import { EventEmitter, ElementRef, OnInit, OnChanges, AfterViewInit, SimpleChanges } from '@angular/core'; import { XotbDatepickerInput } from './input/datepicker-input'; import { XotbDatepickerConfig } from './config'; import { XotbInternalDate } from './util'; import { XotbDatepickerMonth } from './month'; export declare class XotbDatepicker implements OnInit, OnChanges, AfterViewInit { private dtInput; private element; readonly monthNames: string[]; readonly dayNamesShort: string[]; readonly dayNamesLong: string[]; dateDisabled: (date: Date) => boolean | null; _date: XotbInternalDate; current: XotbInternalDate; date: Date; dateChange: EventEmitter<{}>; readonly showToday: boolean; readonly firstDayOfWeek: number; /** * Offset of year from current year, that can be the minimum option in the year selection dropdown. */ readonly relativeYearFrom: number; /** * Offset of year from current year, that can be the maximum option in the year selection dropdown. */ readonly relativeYearTo: number; /** * The minimum date that can be selected. */ readonly min: Date; /** * The maximum date that can be selected. */ readonly max: Date; /** * Label of shortcut to select current date. */ readonly todayLabel: string; /** * Label for button to go to the previous month. */ readonly previousMonthLabel: string; /** * Label for button to go to the next month. */ readonly nextMonthLabel: string; weeks: XotbInternalDate[]; uid: string; monthLabel: string; minDate: XotbInternalDate; maxDate: XotbInternalDate; monthView: XotbDatepickerMonth; constructor(dtInput: XotbDatepickerInput, defaultConfig: XotbDatepickerConfig, locale: string, element: ElementRef); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; moveYear(year: string | number): void; moveMonth(diff: number): void; keyboardHandler(evt: KeyboardEvent): void; select(date: XotbInternalDate): void; selectToday(): void; ngAfterViewInit(): void; /** Whether the previous period button is disabled. */ previousDisabled(): boolean; /** Whether the next period button is disabled. */ nextDisabled(): boolean; private focusActiveDay; private moveCalendar; private setCurrent; private render; /** Date filter for the month */ private isDisabledDate; private setMinMaxDates; }