@opencloud-eu/design-system
Version:
OpenCloud Design System is used to design OpenCloud UI components
41 lines (40 loc) • 1.19 kB
TypeScript
import { DateTime } from 'luxon';
export interface Props {
/**
* @docs Label of the date picker.
*/
label: string;
/**
* @docs Current date which acts as the pre-filled date.
*/
currentDate?: DateTime;
/**
* @docs Determines if the date picker is clearable.
*/
isClearable?: boolean;
/**
* @docs Minimum date that can be selected. Dates before this date will be disabled.
*/
minDate?: DateTime;
}
export interface Emits {
/**
* @docs Emitted when the date has been changed.
*/
(e: 'dateChanged', data: {
date: DateTime | null;
error: boolean;
}): void;
}
declare const _default: import('vue').DefineComponent<Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
dateChanged: (data: {
date: DateTime | null;
error: boolean;
}) => any;
}, string, import('vue').PublicProps, Readonly<Props> & Readonly<{
onDateChanged?: (data: {
date: DateTime | null;
error: boolean;
}) => any;
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
export default _default;