import { type FieldMessage } from '../shared/field.js'; import { UiElement } from '../shared/element.js'; /** * One text box of ui-date-picker: label, text input, hidden OS date input, status icon, optional * clear button, calendar icon and message. The icon is decorative as in Carbon (`cds--date-picker__icon`, * pointer-events none): a click on it is a click on the text box, and it is not a Tab stop. Purely presentational — the picker owns the text, * the value and every rule; this element just renders what it is given and reports clicks. * * Native `input`, `keydown` and `pointerdown` events bubble out composed; the picker checks * `event.composedPath()[0] === field.input` to tell the text box from the × button. Focus moves * *inside* this shadow root (text box → ×) are invisible to the picker — the DOM * drops a focus event whose target and relatedTarget retarget to the same host — so the text box's * focus changes are re-dispatched as `ui-focus` / `ui-blur` with the real relatedTarget in `detail`. * * @fires ui-focus - detail `{ from }`: the text box gained focus from `from` (may be null) * @fires ui-blur - detail `{ next }`: the text box lost focus to `next` (may be null) * @fires ui-clear - The clear (×) button was pressed * @fires ui-native-change - detail `{ iso }`, the OS date picker chose a day * @csspart base - The field box * @csspart label - The label * @csspart input - The text box * @csspart clear-button - The × button * @csspart toggle - The calendar icon (decorative) */ export declare class UiDateField extends UiElement { static readonly shadowRootOptions: ShadowRootInit; /** `data-fluid` (set by the picker): Carbon `FluidDatePicker` box. */ static readonly styles: import("lit").CSSResult[]; /** Id of the text input (the picker keeps ids unique across its fields). */ inputId: string; /** Visible label text; the `label` slot replaces it when markup is needed. */ label: string; /** The date picker's name from outside (`aria-label`, a `