angular-weblineindia-date-picker
Version:
Date Picker component built in AngularJS to select date and time. Supports Angular 9 version.
30 lines (29 loc) • 1.56 kB
TypeScript
import { Moment } from 'moment';
import { WeekDays } from '../common/types/week-days.type';
import { UtilsService } from '../common/services/utils/utils.service';
import { IDay } from './day.model';
import { IDayCalendarConfig, IDayCalendarConfigInternal } from './day-calendar-config.model';
import { IMonthCalendarConfig } from '../month-calendar/month-calendar-config';
export declare class DayCalendarService {
private utilsService;
readonly DEFAULT_CONFIG: IDayCalendarConfig;
private readonly DAYS;
constructor(utilsService: UtilsService);
getConfig(config: IDayCalendarConfig): IDayCalendarConfigInternal;
generateDaysMap(firstDayOfWeek: WeekDays): {
[key: string]: number;
};
generateMonthArray(config: IDayCalendarConfigInternal, month: Moment, selected: Moment[]): IDay[][];
generateWeekdays(firstDayOfWeek: WeekDays): Moment[];
isDateDisabled(date: Moment, config: IDayCalendarConfigInternal): boolean;
getHeaderLabel(config: IDayCalendarConfigInternal, month: Moment): string;
shouldShowLeft(min: Moment, currentMonthView: Moment): boolean;
shouldShowRight(max: Moment, currentMonthView: Moment): boolean;
generateDaysIndexMap(firstDayOfWeek: WeekDays): {
[key: number]: string;
};
getMonthCalendarConfig(componentConfig: IDayCalendarConfigInternal): IMonthCalendarConfig;
getDayBtnText(config: IDayCalendarConfigInternal, day: Moment): string;
getDayBtnCssClass(config: IDayCalendarConfigInternal, day: Moment): string;
private removeNearMonthWeeks;
}