import { ComponentInterface, EventEmitter } from "../../stencil-public-runtime"; import { DaysOfWeek } from "../../utils/date-utils"; import { StzhCalendarChangeEvent } from "../../index"; import { StzhCalendarDateDisabledPredicate } from "../../index"; import { StzhCalendarLocalizedText } from "./stzh-calendar.localization"; export declare class StzhCalendar implements ComponentInterface { /** Date value. Must be in IS0-8601 format: YYYY-MM-DD. */ value: string; /** * Minimum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD. * This setting can be used alone or together with the max property. */ min: string; /** * Maximum date allowed to be picked. Must be in IS0-8601 format: YYYY-MM-DD. * This setting can be used alone or together with the min property. */ max: string; /** * Which day is considered first day of the week? `0` for Sunday, `1` for Monday, etc. * Default is Monday. */ firstDayOfWeek: DaysOfWeek; /** Day names, month names, etc, used for localization. */ localization: StzhCalendarLocalizedText; /** * Controls which days are disabled and therefore disallowed. * For example, this can be used to disallow selection of weekends. */ isDateDisabled: StzhCalendarDateDisabledPredicate; /** * For Adobe Analytics. * Will be rendered as value of `s-object-id` attribute to the previous month button element. * Default value will be taken from translations. */ prevMonthAnalyticsId: string; /** * For Adobe Analytics. * Will be rendered as value of `s-object-id` attribute to the next month button element. * Default value will be taken from translations. */ nextMonthAnalyticsId: string; activeFocus: boolean; focusedDay: Date; /** Event emitted when a date is selected. */ stzhChange: EventEmitter; createDateFormatters(): void; valueWatcher(newValue: string): void; /** Set focused day element by a JS Date object */ setFocusedDay(day: Date): Promise; /** Set value by a JS Date object */ setDate(date: Date): Promise; element: HTMLStzhCalendarElement; private readonly uid; private bodyElement; private readonly getPopoverContainment; private initialTouchX; private initialTouchY; /** * To format dates exclusively for the benefit of screen readers. * * We prefer DateTimeFormat over date.toLocaleDateString, as the former has * better performance when formatting large number of dates. See: * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString#Performance */ private dateFormatShort; private enableActiveFocus; private disableActiveFocus; private addDays; private addMonths; private addYears; private startOfWeek; private endOfWeek; private setMonth; private setYear; private handleTouchStart; private handleTouchEnd; private handleNextMonthClick; private handlePreviousMonthClick; private handleKeyboardNavigation; private handleDaySelect; private handleMonthSelect; private handleYearSelect; private processFocusedDayNode; componentWillLoad(): Promise; connectedCallback(): void; render(): any; }