@datametria/vue-components
Version:
DATAMETRIA Vue.js 3 Component Library with Multi-Brand Theming - 51 components + 10 composables with theming support, WCAG 2.2 AA, dark mode, responsive system
34 lines (33 loc) • 1.24 kB
TypeScript
interface Shortcut {
text: string;
value: Date | [Date, Date];
}
interface Props {
modelValue?: Date | [Date, Date] | null;
type?: 'date' | 'datetime' | 'range';
format?: string;
placeholder?: string;
disabled?: boolean;
readonly?: boolean;
disabledDate?: (date: Date) => boolean;
shortcuts?: Shortcut[];
}
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
"update:modelValue": (value: Date | [Date, Date] | null) => any;
change: (value: Date | [Date, Date] | null) => any;
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
"onUpdate:modelValue"?: ((value: Date | [Date, Date] | null) => any) | undefined;
onChange?: ((value: Date | [Date, Date] | null) => any) | undefined;
}>, {
disabled: boolean;
type: "date" | "datetime" | "range";
modelValue: Date | [Date, Date] | null;
placeholder: string;
readonly: boolean;
format: string;
shortcuts: Shortcut[];
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
inputRef: HTMLInputElement;
dropdownRef: HTMLDivElement;
}, HTMLDivElement>;
export default _default;