import { DatePickerDateSlotOptions } from 'primevue/datepicker'; type DateFormatOptions = { day?: "2-digit" | "numeric"; month?: "2-digit" | "numeric" | "short" | "long"; year?: "2-digit" | "numeric"; }; export interface CuiDatePickerProps { /** * Help text displayed below the date picker field * Provides additional context or instructions to the user */ assistiveText?: string; /** * Whether the date picker is disabled * When disabled, user cannot interact with the component */ disabled?: boolean; /** * Whether the date picker is readonly * When readonly, user can view but not modify the value */ readonly?: boolean; /** * Unique identifier for the date picker */ id?: string; /** * Custom instructions for screen readers * Overrides the default instructions when provided */ instructions?: string; /** * Whether the field is required */ required?: boolean; /** * Size variant for the date picker */ size?: "medium" | "large"; /** * Whether to show default instructions for screen readers */ showInstructions?: boolean; /** * Format options for displaying the date * Controls how day, month, and year are formatted */ formatOptions?: DateFormatOptions; /** * The selected date value (v-model support) * Can be a Date object, array of dates (for multiple/range modes), or undefined */ modelValue: Date | Date[] | undefined; /** * Whether to show the calendar inline instead of as a dropdown * Inline mode displays the calendar directly in the layout */ inline?: boolean; /** * Label text displayed above the date picker input * Describes the purpose of the date picker to the user */ label?: string; /** * Application layer to append the floater to * Leave empty if floater is inline or uses default positioning */ layer?: HTMLDivElement | null; /** * Whether the date picker should display a loading spinner * Useful when fetching available dates or processing selections */ loading?: boolean; /** * Locale for date formatting and display * Uses standard locale codes (e.g., 'en-US', 'de-DE') * Falls back to the shared CommonUI config locale */ locale?: string; /** * Minimum selectable date * Dates before this will be disabled in the calendar */ minDate?: Date; /** * Maximum selectable date * Dates after this will be disabled in the calendar */ maxDate?: Date; /** * Selection mode for date picking * - 'single': Select a single date (default) * - 'multiple': Select multiple dates * - 'range': Select a date range (start and end date) * @default 'single' */ selectionMode?: "single" | "multiple" | "range"; /** * Whether to display time picker alongside the date picker * Allows selection of hours, minutes, and optionally seconds * @default false */ showTime?: boolean; /** * Whether to display week numbers in the calendar * Shows ISO week numbers in the leftmost column * @default true */ showWeek?: boolean; /** * Array of dates that should be disabled/unavailable for selection * Users cannot select these dates */ unavailableDates?: Date[]; /** * Error message displayed when validation fails * Shown when an invalid or unavailable date is selected */ validationFailText?: string; /** * Accessible label describing the date picker for screen readers * Required for WCAG compliance */ wcagLabel: string; } type __VLS_Props = CuiDatePickerProps; type __VLS_PublicProps = { modelValue?: CuiDatePickerProps["modelValue"]; } & __VLS_Props; declare function __VLS_template(): { attrs: Partial<{}>; slots: Readonly<{ /** * Custom date slot for rendering individual dates in the calendar * @arg {object} slotProps - The date slot properties * @arg {object} slotProps.date - The date information object * @arg {number} slotProps.date.day - The day number (1-31) * @arg {number} slotProps.date.month - The month (0-11) * @arg {number} slotProps.date.year - The year * @arg {boolean} slotProps.date.today - Whether this date is today * @arg {boolean} slotProps.date.selectable - Whether this date is selectable */ date?: (props: { date: DatePickerDateSlotOptions; }) => any; }> & { /** * Custom date slot for rendering individual dates in the calendar * @arg {object} slotProps - The date slot properties * @arg {object} slotProps.date - The date information object * @arg {number} slotProps.date.day - The day number (1-31) * @arg {number} slotProps.date.month - The month (0-11) * @arg {number} slotProps.date.year - The year * @arg {boolean} slotProps.date.today - Whether this date is today * @arg {boolean} slotProps.date.selectable - Whether this date is selectable */ date?: (props: { date: DatePickerDateSlotOptions; }) => any; }; refs: { datepicker: ({ $: import('vue').ComponentInternalInstance; $data: {}; $props: Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>; $attrs: import('vue').Attrs; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: import('vue').Slot | undefined; }>; $root: import('vue').ComponentPublicInstance | null; $parent: import('vue').ComponentPublicInstance | null; $host: Element | null; $emit: (event: string, ...args: any[]) => void; $el: any; $options: import('vue').ComponentOptionsBase & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]; renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: typeof import('vue').nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle; } & Readonly<{}> & Omit & Readonly<{}>, never> & {} & import('vue').ComponentCustomProperties & {} & { $slots: Partial any>>; }) | null; }; rootEl: any; }; type __VLS_TemplateResult = ReturnType; declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, { /** * Whether the Datepicker is visible. * @returns {boolean} */ isDatePickerVisible: import('vue').ComputedRef; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { select: (date: Date | null, isInvalid: boolean) => any; "update:modelValue": (value: Date | Date[] | undefined) => any; }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ onSelect?: ((date: Date | null, isInvalid: boolean) => any) | undefined; "onUpdate:modelValue"?: ((value: Date | Date[] | undefined) => any) | undefined; }>, { readonly: boolean; label: string; size: "medium" | "large"; disabled: boolean; loading: boolean; showInstructions: boolean; inline: boolean; layer: HTMLDivElement | null; selectionMode: "single" | "multiple" | "range"; assistiveText: string; formatOptions: DateFormatOptions; showTime: boolean; showWeek: boolean; unavailableDates: Date[]; validationFailText: string; }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, { datepicker: ({ $: import('vue').ComponentInternalInstance; $data: {}; $props: Partial<{}> & Omit<{} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>; $attrs: import('vue').Attrs; $refs: { [x: string]: unknown; }; $slots: Readonly<{ [name: string]: import('vue').Slot | undefined; }>; $root: import('vue').ComponentPublicInstance | null; $parent: import('vue').ComponentPublicInstance | null; $host: Element | null; $emit: (event: string, ...args: any[]) => void; $el: any; $options: import('vue').ComponentOptionsBase & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & { beforeCreate?: (() => void) | (() => void)[]; created?: (() => void) | (() => void)[]; beforeMount?: (() => void) | (() => void)[]; mounted?: (() => void) | (() => void)[]; beforeUpdate?: (() => void) | (() => void)[]; updated?: (() => void) | (() => void)[]; activated?: (() => void) | (() => void)[]; deactivated?: (() => void) | (() => void)[]; beforeDestroy?: (() => void) | (() => void)[]; beforeUnmount?: (() => void) | (() => void)[]; destroyed?: (() => void) | (() => void)[]; unmounted?: (() => void) | (() => void)[]; renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]; renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]; errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[]; }; $forceUpdate: () => void; $nextTick: typeof import('vue').nextTick; $watch any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle; } & Readonly<{}> & Omit & Readonly<{}>, never> & {} & import('vue').ComponentCustomProperties & {} & { $slots: Partial any>>; }) | null; }, any>; declare const _default: __VLS_WithTemplateSlots; export default _default; type __VLS_WithTemplateSlots = T & { new (): { $slots: S; }; };