import { LitElement } from 'lit'; import '@material/web/field/outlined-field'; import '@material/web/icon/icon'; import '@material/web/iconbutton/icon-button'; /** * A date input the works in Firefox, Safari and Chrome * * @element titanium-date-input * */ export declare class TitaniumDateInput extends LitElement { constructor(); static readonly formAssociated = true; private readonly onInvalid; attributeChangedCallback(attribute: string, newValue: string | null, oldValue: string | null): void; connectedCallback(): void; disconnectedCallback(): void; /** * Whether or not the input should be disabled */ accessor disabled: boolean; /** * Gets or sets whether or not the text field is in a visually invalid state. * * This error state overrides the error state controlled by * `reportValidity()`. */ accessor error: boolean; /** * The error message that replaces supporting text when `error` is true. If * `errorText` is an empty string, then the supporting text will continue to * show. * * This error message overrides the error message displayed by * `reportValidity()`. */ accessor errorText: string; accessor label: string; accessor required: boolean; /** * The current value of the text field. It is always a string. */ accessor value: string; /** * An optional prefix to display before the input value. */ accessor prefixText: string; /** * An optional suffix to display after the input value. */ accessor suffixText: string; /** * Whether or not the text field has a leading icon. Used for SSR. */ accessor hasLeadingIcon: boolean; /** * Whether or not the text field has a trailing icon. Used for SSR. */ accessor hasTrailingIcon: boolean; /** * Defines the greatest value in the range of permitted values. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#max */ accessor max: string; /** * The maximum number of characters a user can enter into the text field. Set * to -1 for none. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#maxlength */ accessor maxLength: number; /** * Defines the most negative value in the range of permitted values. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#min */ accessor min: string; /** * Conveys additional information below the text field, such as how it should * be used. */ accessor supportingText: string; accessor placeholder: string; accessor type: 'date' | 'datetime-local'; /** * Returns true when the text field has been interacted with. Native * validation errors only display in response to user interactions. */ private accessor dirty; private accessor focused; /** * Whether or not a native error has been reported via `reportValidity()`. */ private accessor nativeError; /** * The validation message displayed from a native error via * `reportValidity()`. */ private accessor nativeErrorText; /** * Describes what, if any, type of autocomplete functionality the input * should provide. * * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete */ accessor autocomplete: string; private accessor input; private accessor field; private accessor leadingIcons; private accessor trailingIcons; private isCheckingValidity; private isReportingValidity; private hasCustomValidityError; private internals_; checkValidity(): boolean; reportValidity(): boolean; get validationMessage(): string; /** * Returns a `ValidityState` object that represents the validity states of the * text field. * * https://developer.mozilla.org/en-US/docs/Web/API/ValidityState */ get validity(): ValidityState; private syncValidity; private handleIconChange; private getErrorText; private showErrorMessage; /** * Selects all the text in the text field. * * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/select */ select(): void; setCustomValidity(error: string): void; reset(): void; static styles: import("lit").CSSResult; protected render(): import("lit-html").TemplateResult<1>; } //# sourceMappingURL=date-input.d.ts.map