import { type AfterViewChecked, type ElementRef, EventEmitter, type OnDestroy, type QueryList } from "@angular/core"; import { type TimeView, type TimeWheelColumn, type TimeWheelRow } from "@magicx-eng/ai-autocomplete-vanilla"; import * as i0 from "@angular/core"; /** * The dropdown's time body, rendered in place of the options grid when the * active parameter is a time. Angular analogue of vanilla's `renderTimeWheel` * and React's ``: three wheels — hour, minutes in fives, AM/PM — * whose top rows read as the time, and a Done button. * * The wheels hold no time of their own. `view.minutes` is the time; turning a * wheel emits the new time and the next render scrolls every wheel to it. That * is what lets the keyboard (ArrowUp/ArrowDown in the input, handled by the * core) and the pointer move the same time. * * @internal */ export declare class TimeWheelComponent implements AfterViewChecked, OnDestroy { /** The core's `timeView`: the time on the wheels' top rows. */ view: TimeView | null; /** Accessible name for the wheel ("Time"). */ label: string; /** Text of the button that answers with the time ("Done"). */ doneLabel: string; /** * False for the press window after an answer: the answered pill's wheel is * still on screen and must not take a second answer. */ interactive: boolean; /** The user turned a wheel; the value is the whole new time. Commits nothing. */ readonly timeChange: EventEmitter; /** Done — answer the pill with the time on the wheels. */ readonly commit: EventEmitter; wheelColumns?: QueryList>; readonly columns: readonly TimeWheelColumn[]; private readonly scroll; get valueLabel(): string; rowsOf(column: TimeWheelColumn): readonly TimeWheelRow[]; indexOf(column: TimeWheelColumn): number; /** Scroll each wheel so its chosen row is on top. Idempotent, so cheap to run on every check. */ ngAfterViewChecked(): void; ngOnDestroy(): void; onClick(event: MouseEvent): void; onScroll(column: TimeWheelColumn, event: Event): void; /** Keeps the input focused, which the dropdown's visibility gate depends on. */ preventBlur(event: MouseEvent): void; trackByColumn: (_: number, column: TimeWheelColumn) => string; trackByRow: (_: number, row: TimeWheelRow) => string; private settle; private scrollStateOf; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } //# sourceMappingURL=time-wheel.component.d.ts.map