import { EventEmitter } from "../../stencil-public-runtime"; import { IcAriaLive, IcWeekDays, IcDateFormat, IcDateValueFormat, IcSizes, IcInformationStatusOrEmpty, IcThemeMode } from "../../utils/types"; /** * @slot helper-text - Content is set as the helper text for the date picker. */ export declare class DatePicker { private calendarEl?; private inputEl?; private calendarProps; private dateInputProps; private myCalendarButtonClicked; private hostMutationObserver; private showPickerAbove; el: HTMLIcDatePickerElement; calendarOpen: boolean; maxDate: Date | null; minDate: Date | null; monthInView: number; monthPickerVisible: boolean; orderedDaysOfWeek: string[]; selectedDate: Date | null; /** * The format in which the date will be displayed. */ dateFormat: IcDateFormat; /** * If `true`, the disabled state will be set. */ disabled: boolean; watchDisabledHandler(): void; /** * The days of the week to disable. */ disableDays?: IcWeekDays[]; /** * The text to display as the validation message when `disableDays` is `true` and a disabled date is entered. */ disableDaysMessage?: string; /** * If `true`, dates in the future are not allowed. A validation message will appear if a date in the future is entered. */ disableFuture?: boolean; watchDisableFutureHandler(): void; /** * The text to display as the validation message when `disableFuture` is `true` and a date in the future is entered. */ disableFutureMessage?: string; /** * If `true`, dates in the past are not allowed. A validation message will appear if a date in the past is entered. */ disablePast?: boolean; watchDisablePastHandler(): void; /** * The text to display as the validation message when `disablePast` is `true` and a date in the past is entered. */ disablePastMessage?: string; /** * If `true`, every individual input field completed will emit an icChange event. */ emitDatePartChange?: boolean; /** * The helper text that will be displayed for additional field guidance. This will default to the text "Use format" along with the `dateFormat` value. */ helperText?: string; /** * If `true`, the helper text will be visually hidden, but still read out by screenreaders. */ hideHelperText: boolean; /** * If `true`, the label will be visually hidden, but the required label will still be read out by screen readers. */ hideLabel?: boolean; /** * The ID for the input field. The default will be an automatically generated value. */ inputId?: string; /** * The text to display as the validation message when an invalid date is entered. */ invalidDateMessage?: string; /** * The label for the date input. */ label: string; /** * The latest date that will be allowed. The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object. * The value of this prop is ignored if `disableFuture` is set to `true`. */ max: string | Date; watchMaxHandler(): void; /** * The earliest date that will be allowed. The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object. * The value of this prop is ignored if `disablePast` is set to `true`. */ min: string | Date; watchMinHandler(): void; /** * The name of the control, which is submitted with the form data. */ name?: string; /** * The date visible when the calendar opens. Used if no date is currently selected. * The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object. */ openAtDate: string | Date; /** * If `true`, the input will require a value. */ required?: boolean; /** * If `true`, days outside the current month will be visible in the date picker. */ showDaysOutsideMonth?: boolean; /** * If 'true', the 'X' button on the date input will be visible, which clears the field. */ showClearButton?: boolean; /** * If `true`, the `Clear` button on the date picker will be visible. */ showPickerClearButton?: boolean; /** * If `true`, the `Go to today` button on the date picker will be visible. */ showPickerTodayButton?: boolean; /** * The size of the date picker to be displayed. */ size?: IcSizes; /** * The first day of the week. `0` for Sunday, `1` for Monday, etc. * Default is Monday. */ startOfWeek: IcWeekDays; /** * Sets the date picker to the dark or light theme colors. "inherit" will set the color based on the system settings or ic-theme component. */ theme?: IcThemeMode; /** * The value of the `aria-live` attribute on the validation message. */ validationAriaLive: IcAriaLive; /** * The validation status - e.g. 'error' | 'warning' | 'success'. This will override the built-in date validation. */ validationStatus?: IcInformationStatusOrEmpty; /** * The text to display as the validation message. This will override the built-in date validation. */ validationText?: string; /** * The value of the date picker. The value can be in any format supported as `dateFormat`, in ISO 8601 date string format (`yyyy-mm-dd`) or as a JavaScript `Date` object. */ value?: IcDateValueFormat; watchOpenHandler(): void; /** * Emitted when the value has changed. */ icChange: EventEmitter<{ value: Date | null; dateObject?: { day: string | null; month: string | null; year: string | null; }; utcValue: Date | null; }>; disconnectedCallback(): void; componentWillLoad(): void; componentWillRender(): void; componentWillUpdate(): void; localCalendarButtonClickHandler(): void; calendarButtonClickHandler(): void; handleCalendarDaySelect(): void; dateChangeHandler(ev: CustomEvent): void; private updateDate; private handleDocumentClick; private keyDownHandler; private closeButtonClickHandler; private setCalendarProps; private setDateInputProps; render(): any; }