/** * calendar-month-view.component */ import { AfterContentInit, ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { CalendarCell, OwlCalendarBodyComponent } from './calendar-body.component'; import { DateTimeAdapter } from './adapter/date-time-adapter.class'; import { OwlDateTimeFormats } from './adapter/date-time-format.class'; import { SelectMode } from './date-time.class'; export declare class OwlMonthViewComponent implements OnInit, AfterContentInit, OnDestroy { private cdRef; private dateTimeAdapter; private dateTimeFormats; /** * Whether to hide dates in other months at the start or end of the current month. * */ hideOtherMonths: boolean; /** * Define the first day of a week * Sunday: 0 ~ Saturday: 6 * */ private _firstDayOfWeek; firstDayOfWeek: number; /** * The select mode of the picker; * */ private _selectMode; selectMode: SelectMode; /** The currently selected date. */ private _selected; selected: T | null; private _selecteds; selecteds: T[]; private _pickerMoment; pickerMoment: T; /** * A function used to filter which dates are selectable * */ private _dateFilter; dateFilter: (date: T) => boolean; /** The minimum selectable date. */ private _minDate; minDate: T | null; /** The maximum selectable date. */ private _maxDate; maxDate: T | null; /** The maximum selectable range. */ private _maxRange; maxRange: number | null; private _weekdays; readonly weekdays: { long: string; short: string; narrow: string; }[]; private _days; readonly days: CalendarCell[][]; readonly activeCell: number; readonly isInSingleMode: boolean; readonly isInRangeMode: boolean; private firstDateOfMonth; private localeSub; private initiated; private dateNames; /** * The date of the month that today falls on. * */ todayDate: number | null; /** * An array to hold all selectedDates' value * the value is the day number in current month * */ selectedDates: number[]; firstRowOffset: number; /** * Callback to invoke when a new date is selected * */ readonly selectedChange: EventEmitter; /** * Callback to invoke when any date is selected. * */ readonly userSelection: EventEmitter; /** Emits when any date is activated. */ readonly pickerMomentChange: EventEmitter; /** The body of calendar table */ calendarBodyElm: OwlCalendarBodyComponent; readonly owlDTCalendarView: boolean; constructor(cdRef: ChangeDetectorRef, dateTimeAdapter: DateTimeAdapter, dateTimeFormats: OwlDateTimeFormats); ngOnInit(): void; ngAfterContentInit(): void; ngOnDestroy(): void; /** * Handle a calendarCell selected */ selectCalendarCell(cell: CalendarCell): void; /** * Handle a new date selected */ private selectDate; /** * Handle keydown event on calendar body */ handleCalendarKeydown(event: KeyboardEvent): void; /** * Generate the calendar weekdays array * */ private generateWeekDays; /** * Generate the calendar days array * */ private generateCalendar; /** * Creates CalendarCell for days. */ private createDateCell; /** * Check if the date is valid */ private isDateEnabled; private dateDifferenceInDays; /** * Get a valid date object */ private getValidDate; /** * Check if the give dates are none-null and in the same month */ isSameMonth(dateLeft: T, dateRight: T): boolean; /** * Set the selectedDates value. * In single mode, it has only one value which represent the selected date * In range mode, it would has two values, one for the fromValue and the other for the toValue * */ private setSelectedDates; private focusActiveCell; }