UNPKG

ng2-date-picker-pda-forked

Version:
18 lines (17 loc) 944 B
import { Moment } from 'moment'; import { UtilsService } from '../common/services/utils/utils.service'; import { IMonth } from './month.model'; import { IMonthCalendarConfig } from './month-calendar-config'; export declare class MonthCalendarService { private utilsService; readonly DEFAULT_CONFIG: IMonthCalendarConfig; constructor(utilsService: UtilsService); getConfig(config: IMonthCalendarConfig): IMonthCalendarConfig; generateYear(year: Moment, selected?: Moment[]): IMonth[][]; isMonthDisabled(month: IMonth, config: IMonthCalendarConfig): boolean; shouldShowLeft(min: Moment, currentMonthView: Moment): boolean; shouldShowRight(max: Moment, currentMonthView: Moment): boolean; getHeaderLabel(config: IMonthCalendarConfig, year: Moment): string; getMonthBtnText(config: IMonthCalendarConfig, month: Moment): string; getMonthBtnCssClass(config: IMonthCalendarConfig, month: Moment): string; }