import { PvButtonSize } from '../PvButton/types'; import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue'; /** * Value of a date selection. A single `Date` in `single` selection mode, an array in * `multiple` and `range` modes, where `range` uses `null` for an incomplete endpoint. * * Dates may be supplied as strings so the component can be driven by HTML attributes as * `pv-date-picker`. The unions here are written out rather than aliased because Vue's * macro type resolution has to see `Date` to emit it as a runtime prop type. */ /** * Uses the button's size scale so a date picker can sit next to a button of the same size: * `md` matches `pv-button-small` (20px), `lg` the default button (24px), `xl` `pv-button-large` (32px). */ export type PvDatePickerSize = PvButtonSize; export type PvDatePickerModelValue = Date | string | (Date | string | null)[] | null | undefined; export interface PvDatePickerProps { /** * Defines the quantity of the selection. */ selectionMode?: "single" | "multiple" | "range" | undefined; /** * Format of the date. Defaults to PrimeVue Locale configuration. */ dateFormat?: string | undefined; /** * When enabled, displays the datepicker as inline instead of an overlay. */ inline?: boolean | undefined; /** * Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true. */ selectOtherMonths?: boolean | undefined; /** * Number of months to display. */ numberOfMonths?: number | undefined; /** * Type of view to display. */ view?: "date" | "month" | "year" | undefined; /** * The minimum selectable date. Accepts a `Date` or a parseable date string. */ minDate?: Date | string | undefined; /** * The maximum selectable date. Accepts a `Date` or a parseable date string. */ maxDate?: Date | string | undefined; /** * Dates to disable. Accepts an array of `Date` objects or parseable date strings, or a * JSON array string such as `'["2025-06-18"]'` so it can be set from an attribute. */ disabledDates?: (Date | string)[] | string | undefined; /** * Array with disabled weekday numbers. */ disabledDays?: number[] | undefined; /** * Maximum number of selectable dates in multiple mode. */ maxDateCount?: number | undefined; /** * Whether to display today and clear buttons at the footer. */ showButtonBar?: boolean | undefined; /** * When enabled, datepicker will show week numbers. */ showWeek?: boolean | undefined; /** * Whether to allow entering the date manually via typing. */ manualInput?: boolean | undefined; /** * When present, it specifies that the component should be disabled. */ disabled?: boolean | undefined; /** * When present, it specifies that the component should have invalid state style. */ invalid?: boolean | undefined; /** * When present, it specifies that an input field is read-only. */ readonly?: boolean | undefined; /** * Placeholder text for the input. */ placeholder?: string | undefined; /** * When enabled, displays a button with icon next to input. */ showIcon?: boolean; /** * When input should take 100% width */ fullWidth?: boolean; /** * A valid query selector or an HTMLElement to specify where the overlay gets attached. */ appendTo?: "body" | "self" | undefined; /** * Style class of the datepicker panel. */ panelClass?: string | undefined; /** * Height of the input, on the same scale as `PvButton`'s `size`. Defaults to `xl`, the * height the date picker has always had. */ size?: PvDatePickerSize; } type __VLS_Props = PvDatePickerProps; type __VLS_PublicProps = { modelValue?: PvDatePickerModelValue; } & __VLS_Props; declare const _default: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:modelValue": (value: PvDatePickerModelValue) => any; }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{ "onUpdate:modelValue"?: ((value: PvDatePickerModelValue) => any) | undefined; }>, { size: PvDatePickerSize; appendTo: "body" | "self"; }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>; export default _default;