import { EventEmitter } from "../../stencil-public-runtime"; import { StzhAppointment, StzhAppointmentsChangeEvent, StzhLocaleAdapter } from "../../index"; import { StzhAppointmentsLocalizedText } from "./stzh-appointments.localization"; /** * @slot heading - Slot for the heading */ export declare class StzhAppointments { /** Translation strings */ localization: StzhAppointmentsLocalizedText; /** Hides the sort dropdown when true */ disableSort: boolean; /** Sort by */ sortBy: "start" | "place"; private _sortBy; /** Initial selectable appointments */ appointments: StzhAppointment[] | string; private _appointments; private appointmentsShown; /** Current selected date (if undefined, earliest appointment date in list is taken or current selected one by value) */ currentDate: Date | string; private _currentDate; /** Selected appointment by value. * If omitted, the first available appointment is selected automatically. * If null, no appointment is selected automatically. */ value?: string | null; name: string; /** Nr of items shown */ showItems: number; private _initialShowItems; /** Nr of items shown when more link is clicked */ stepItems: number; /** Overwrite default calendar title */ calendarTitle: string; /** Overwrite default appointments title */ appointmentsTitle: string; /** * Date adapter, for custom parsing/formatting. * Must be an object with a `parse` function which accepts a `string` and returns a `Date`, * and a `format` function which accepts a `Date` and returns a `string`. */ dateAdapter: StzhLocaleAdapter; element: HTMLStzhAppointmentsElement; /** Appointments change event */ stzhChange: EventEmitter; dateAdapterWatcher(newValue: StzhLocaleAdapter): void; currentDateWatcher(newValue: Date | string): void; sortByWatcher(): void; valueWatcher(): void; appointmentsWatcher(newValue: StzhAppointment[] | string): void; private dateByValue; private earliestDate; private latestDate; private nextDate; private showMoreLink; private moreItemsLeft; private showCalendar; private showSort; private showSortStart; private showSortPlace; private showAppointmentsTitle; private allAppointsmentOnSameDay; private sortOptions; private inputElement; private datepickerElement; private datepickerElementMedium; /** Whether the first appointment is automatically set as value. */ private shouldAutoSelectAppointment; private normalizeAppointments; private convertToDate; private updateDateByValue; private getCurrentDateAppointments; private setValueToFirstAppointmentOfCurrentDate; private isDateDisabled; private onNextActiveDateClick; private onMoreClick; private onDropdownChange; private onDatepickerChange; private onRadioChange; componentWillLoad(): Promise; componentWillRender(): void; componentDidRender(): void; render(): any; }