import type { UiCalendar } from './calendar.js'; import { DatePickerFields, type Field } from './date-picker-fields.js'; /** ``'s calendar popover and bottom sheet: opening, closing, placing, and focus inside it (on `DatePickerFields`). */ export declare class DatePickerPopup extends DatePickerFields { protected readonly calendar: HTMLElement; private readonly sheetDialog; private readonly sheetGrip; /** The calendar opened (or last opened) in the bottom sheet rather than the popover (core/sheet opensAsSheet). */ protected sheet: boolean; protected readonly grid: UiCalendar | null; connectedCallback(): void; disconnectedCallback(): void; /** * Only `picker="native"`. `auto` used to mean the OS picker on touch screens, through showPicker() on a hidden date * input; when a browser accepts that call and shows nothing (iOS can), nothing opened at all. */ protected get useNativePicker(): boolean; /** That tap opened the calendar: the box must not take focus when the finger lifts (onInputTouchEnd). */ protected tapOpened: boolean; /** Opens on a fully typed date, else the field's value, else the start date, else today. */ protected openCalendar(focusGrid: boolean, f?: Field): void; private readonly reposition; protected onOpenChanged(): void; /** The sheet in the overlay stack (Esc reaches the topmost layer; what opens over it knows a modal is open). */ private readonly sheetLayer; private stopSwipe?; private openSheet; /** Closes the sheet's dialog (the page behind is usable again) and lets go of the stack and the page. */ private stopSheet; /** The dialog's own close request (Esc, a close watcher): closed the picker's way, so typed text is committed. */ protected onSheetCancel(event: Event): void; private untrack?; private stopOutside?; private stopTracking; /** Outside click closes (manual popover, so the toggle button can't re-open it on the same click). */ private readonly onDocumentPointerDown; /** * Closes and commits any typed text that wasn't committed yet (flatpickr does the same from * documentClick). Focus inside the calendar goes back to the text box that last had it (Carbon). */ protected close(): void; /** Set while a press inside the calendar is under way (a tap's mouse events and click come well after its touch). */ private pressInCalendar; private pressTimer?; protected readonly onCalendarPress: () => void; /** Focus on the grid's day; after a click or tap, without a keyboard ring in Kanok (shared/quiet-focus). */ protected focusGridDay(): void; protected onCalendarFocusOut(event: FocusEvent): void; private position; /** In the calendar Tab / Shift+Tab go round its controls (Cally, the APG dialog); Esc closes. */ protected onCalendarKeydown(event: KeyboardEvent): void; /** Focus on the calendar's next Tab stop (‹, the year, ›, the day, Today), round from the last to the first. */ private cycleCalendarFocus; }