import { EventEmitter } from "../../stencil-public-runtime"; import { IcDateFormat, IcDateValueFormat, IcSizes, IcThemeMode, IcWeekDays } from "../../utils/types"; import "../../../../web-components/src/components/ic-button/ic-button"; import "../../../../web-components/src/components/ic-typography/ic-typography"; export declare class Calendar { private clearButtonEl; private daysOfWeek; private dayButtonFocussed; private dayPickerKeyboardNav; private decadeStart; private decadeEnd; private dialogDescription; private focusDay; private focussedYearEl; private liveRegionEl?; private monthButtonEl; private monthNames; private monthInViewUpdateHandled; private parentIsDatePicker; private today; private todayButtonEl; private yearButtonEl; private yearButtonFocussed; el: HTMLIcCalendarElement; clearButtonClicked: boolean; currMonthView: Date[]; currYearPickerView: number[]; decadeView: number[]; focussedDate: Date | null; focussedDay: number; focussedDayEl: HTMLButtonElement; focussedMonth: number; focussedMonthEl: HTMLIcButtonElement; focussedYear: number; maxDate: Date | null; minDate: Date | null; monthInView: number; monthPickerVisible: boolean; orderedDaysOfWeek: string[]; selectedDate: Date | null; yearInView: number; yearPickerVisible: boolean; /** * The format in which the date will be displayed. */ dateFormat: IcDateFormat; /** * If `true`, the disabled state will be set. */ disabled: boolean; watchDisabledHandler(): void; /** * The days of the week to disable. */ disableDays?: IcWeekDays[]; /** * If `true`, dates in the future are not allowed. */ disableFuture?: boolean; watchDisableFutureHandler(): void; /** * If `true`, dates in the past are not allowed. */ disablePast?: boolean; watchDisablePastHandler(): void; /** * The latest date that will be allowed. The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object. * The value of this prop is ignored if `disableFuture` is set to `true`. */ max: string | Date; watchMaxHandler(): void; /** * The earliest date that will be allowed. The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object. * The value of this prop is ignored if `disablePast` is set to `true`. */ min: string | Date; watchMinHandler(): void; /** * The date visible when the calendar opens. Used if no date is currently selected. * The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object. */ openAtDate: string | Date; /** * If `true`, the `Clear` button on the calendar will be visible. */ showClearButton?: boolean; /** * If `true`, days outside the current month will be visible in the calendar. */ showDaysOutsideMonth?: boolean; /** * If `true`, the `Go to today` button on the calendar will be visible. */ showTodayButton?: boolean; /** * The size of the calendar to be displayed. */ size: IcSizes; /** * The first day of the week. `0` for Sunday, `1` for Monday, etc. * Default is Monday. */ startOfWeek: IcWeekDays; watchStartOfWeekHandler(): void; /** * Sets the calendar to the dark or light theme colors. "inherit" will set the color based on the system settings or ic-theme component. */ theme?: IcThemeMode; /** * The value of the calendar and the date visible when the calendar opens. * The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object. */ value?: IcDateValueFormat; valueChanged(newValue: IcDateValueFormat, oldValue: IcDateValueFormat, propName?: string): void; watchFocussedDateHandler(current: Date, previous: Date): void; watchMonthInViewHandler(): void; watchYearInViewHandler(): void; watchYearPickerVisibleHandler(): void; watchMonthPickerVisibleHandler(): void; watchFocussedDayEl(): void; /** * Emitted when the value has changed. */ icChange: EventEmitter<{ value: Date | null; dateObject: { day: string | null; month: string | null; year: string | null; }; utcValue: Date | null; }>; /** * Emitted when the clear button has been clicked. */ icCalendarClearButtonClick: EventEmitter; /** * @internal Emitted when a day is selected. */ icCalendarDaySelect: EventEmitter; /** * Emitted when a month is selected. */ icCalendarMonthSelect: EventEmitter; /** * Emitted when a year is selected. */ icCalendarYearSelect: EventEmitter; componentWillLoad(): void; /** * @internal Clears the dialog description used to provide more context for screen readers. */ clearDialogDescription(): Promise; private isValidDateValue; private isPresent; private setOpenAtDate; private setFocussedDayEl; private setFocussedMonthEl; private setFocussedYearEl; private setFocussedYear; private setFocussedDate; private setSelectedDate; private setDateChangeEventDetail; private setAriaLiveRegionText; private goToPreviousMonth; private goToNextMonth; private goToPreviousYear; private goToNextYear; private moveDays; private moveMonths; private moveYears; private updateFocussedMonth; private updateFocussedYear; private getNextDayToFocus; private focusFirstElement; private focusLastElement; private focusFocussedDay; private monthButtonClickHandler; private yearButtonClickHandler; private todayButtonClickHandler; private clearButtonClickHandler; private monthYearNavClickHandler; private handleCalendarClick; private handleCalendarKeyDown; private monthPickerKeyDownHandler; private yearPickerKeyDownHandler; private monthButtonKeyDownHandler; private yearButtonKeyDownHandler; private todayButtonKeyDownHandler; private clearButtonKeyDownHandler; private calendarTabHandler; private setMonthSelectedLiveRegionText; private setYearSelectedLiveRegionText; private setDecadeView; private getMonthInViewText; private getDecadeInViewText; private isPrevYearAllowed; private isNextYearAllowed; private isYearAllowed; private getMonthView; private isCurrentMonth; private updateMonthInView; private navButtonMouseDownHandler; private handleCalendarMouseDown; private handleSelectDay; private handleSelectMonth; private handleSelectYear; private onDayButtonFocusHandler; private onDayButtonBlurHandler; private onYearButtonFocusHandler; private onYearButtonBlurHandler; private renderMonthYearNavButton; private previousMonthButton; private nextMonthButton; private previousYearButton; private nextYearButton; render(): any; }