import type { CSSResultGroup } from 'lit'; import DSAButton from '../button/button'; import DSACalendar from '../calendar/calendar'; import DSAIconButton from '../icon-button/icon-button'; import DSAIcon from '../icon/icon'; import '../../internal/components/date-field/date-field'; import type DSAInternalDateField from '../../internal/components/date-field/date-field'; import { FilterBase } from '../../internal/components/filter-base/filter-base'; /** * @summary Filter date allow you to pick a date to filter. * @documentation https://dsa.service-public-autonomie.fr/latest/librairie-webcomponents/filter-filtre/filter-date-filtre-date/web-Zftw6qGi * * @dependency dsa-popup * @dependency dsa-icon-button * @dependency dsa-calendar * @dependency dsa-button * @dependency dsa-icon * * @event dsa-after-hide - Emitted after the filter panel closes and all animations are complete. * @event dsa-after-show - Emitted after the filter panel opens and all animations are complete. * @event dsa-blur - Emitted when the control loses focus. * @event dsa-change - Emitted when an alteration to the control's value is committed by the user. * @event dsa-focus - Emitted when the control gains focus. * @event dsa-hide - Emitted when the filter panel closes. * @event dsa-input - Emitted when the control receives input (when the temporary value changes). * @event dsa-show - Emitted when the filter panel opens. */ export default class DSAFilterDate extends FilterBase { static styles: CSSResultGroup; static dependencies: { 'dsa-icon-button': typeof DSAIconButton; 'dsa-calendar': typeof DSACalendar; 'dsa-button': typeof DSAButton; 'dsa-icon': typeof DSAIcon; 'dsa-popup': typeof import("../popup/popup").default; 'dsa-filter-button': typeof import("../filter-button/filter-button").default; }; isIconButtonFocused: boolean; calendar: DSACalendar; filterInputStart: DSAInternalDateField; filterInputEnd: DSAInternalDateField; filterTrigger: DSAIconButton; drawerFilter: DSAFilterDate; private currentLocale; private isStartDateValid; private isEndDateValid; /** The current value of the filter date. The required format for the value is YYYY-MM-DD. */ value: string; /** The descriptive label used for optimal accessibility on datepicker open/close button. */ buttonLabel: string; range: boolean; lang: string; /** Placeholder text to show as a hint when the input is empty. */ placeholder: string; /** The filter's minimum value (yyyy-mm-dd). */ min: string; /** The filter's maximum value (yyyy-mm-dd). */ max: string; calendarStartDate: string; hideCalendarButton: boolean; connectedCallback(): void; firstUpdated(): void; private handleSelectedDate; protected addOpenListeners(): void; protected removeOpenListeners(): void; private handleChange; private handleChangeInDrawer; private handleIconButtonFocus; private handleIconButtonBlur; private handleReset; private getFullDateFromISO; private getDescriptionText; private shouldDisableDate; handleFilterDateOpenChange(): void; handleLangChange(): void; handleHideCalendarButtonChange(): void; protected renderTrigger(): import("lit").TemplateResult<1>; private renderDrawerPanelContent; protected renderPanelContent(): import("lit").TemplateResult<1>; } declare global { interface HTMLElementTagNameMap { 'dsa-filter-date': DSAFilterDate; } }