import { EventEmitter } from '../../stencil-public-runtime'; import { ThemeInputVariantType } from "../../type/variant"; import { InputSizeType } from "../../type/input"; import { MdsValidationErrors } from "../../components"; /** * @part input-date - The native date input * @category forms */ export declare class MdsInputDate { private t; host: HTMLMdsInputDateElement; internals: ElementInternals; private formDisabled; private isSlotted; private problem?; private defaultValue; empty: boolean | undefined; isValid: boolean; touched: boolean; /** * The accessible name of the native control: the label a screen reader announces. An * `mds-input-field` around the component passes its own label down here, so the attribute * is only written by hand when the control stands on its own. The placeholder is deliberately * not a fallback: it disappears as soon as the field is filled. */ readonly accessibleName?: string; /** * Specifies the value of the input * @description It's in ISO format (YYYY-MM-DD). * @example '2025-06-15' */ value: string; /** * Is needed to reference the form data after the form is submitted */ readonly name?: string; /** * Sets the variant of the input field */ variant?: ThemeInputVariantType; /** * Specifies the min date of the range, user cannot set dates before this date * @description It's in ISO format (YYYY-MM-DD). * @example '2025-01-01' */ min: string | null; /** * Specifies the max date of the range, user cannot set dates after this date * @description It's in ISO format (YYYY-MM-DD). * @example '2025-12-31' */ max: string | null; /** * Specifies the delay in milliseconds before closing the calendar dropdown, if the value is 0 the dropdown will not close * @description Default is 500 */ readonly delay: number; /** * Specifies the height of the field, the same as `mds-button`: `sm` 28px, `md` 36px, `lg` 48px */ readonly size?: InputSizeType; /** * Hides the highlight on today's date in the calendar. */ readonly hideToday: boolean; /** * If true, the element is displayed as disabled. The calendar button is not shown: the end of * the field is left to the badge of its state */ readonly disabled?: boolean; /** * Specifies that the element is read-only: the date cannot be typed, and the calendar button is * not shown, as on a disabled field */ readonly readonly?: boolean; /** * Specifies that the element must be filled out before submitting the form */ readonly required?: boolean; /** * Emits a boolean event when a input execute validation */ validationEvent: EventEmitter; calendarKey: number; dropdownRef?: HTMLMdsDropdownElement; hasFocus: boolean; /** * Emitted when the selected date value changes. */ valueChange: EventEmitter; handleValue(): void; /** * Checks the value: the validity reported to the form and the required tip follow it at once, * the variant and `mdsInputValidation` only once the field is touched. */ private validateValue; /** * A submit stopped by an invalid date, or a `checkValidity()` of its form, touches the field, so * that it shows what is wrong. */ protected invalidHandler(): void; /** The rule the value breaks, `undefined` when it breaks none. */ private findProblem; /** An ISO date as the page language writes it, for the messages. */ private formatDate; /** * Reports the validity of the value to the form, with the rules that drive the variant: like a * native control, an invalid date stops the submit of its form. */ private updateFormValidity; componentDidRender(): void; /** * Sets focus on the underlying input element. */ focusInput(): Promise; /** * Sets the input value. * @param value the value to set, in ISO format (YYYY-MM-DD) */ setValue(value: string): Promise; /** * Returns the current validation errors, or `null` if the value is valid. * @returns the validation errors, or `null` when valid */ getErrors(): Promise; formDisabledCallback(disabled: boolean): void; private isDisabled; private canEdit; /** * The calendar button, with its dropdown, shown while the user can change the date: a read-only * or disabled field offers no way to change it and leaves its end to the badge of its state, as * the buttons at the end of mds-input do (vittorio 2026-11-11, #1368). A field that locks while * the calendar is open loses the dropdown, which closes as it leaves the page. A field slotted * in mds-input-date-range has none: the range opens its own calendar. */ private hasCalendarButton; /** * Like a native input, a form reset brings back the value of load and forgets the interaction: * the field looks pristine until the user edits or leaves it again. */ formResetCallback(): void; componentWillLoad(): void; /** * Snaps `max` to `min` when the range is reversed. * @returns true when `max` changed */ private clampRange; /** * Validates again when a rule changes after load, as it does with the React wrappers under SSR, * which set the props on an element that has already loaded. */ protected validationRulesChanged(): void; private handleChange; private onBlur; private onFocus; private readonly handleOpenCalendarClick; private readonly handleCalendarChange; render(): any; }