import type { FormChildProps } from '../../../../composables/useFormChild'; import type { Dayjs } from 'dayjs'; export declare enum CompareType { PRECEDING_PERIOD = "PRECEDING_PERIOD", PRECEDING_WEEK = "PRECEDING_WEEK", PRECEDING_MONTH = "PRECEDING_MONTH", CUSTOM = "CUSTOM" } export interface FmCalendarPredefinedRange { label: string; value: DateRange; } export interface FmCalendarPredefinedComparison { id: string; label: string; sublabel: string; action: () => void; } export interface InternalDateRange { startDate: Dayjs | null; endDate: Dayjs | null; } export type DateRange = { startDate: string | null; endDate: string | null; }; export interface FmDateRangePickerProps extends Omit { modelValue: DateRange | DateRange[] | null; startLabel?: string; endLabel?: string; disabled?: boolean; showValidBorder?: boolean; showPredefinedRange?: boolean; predefinedRange?: FmCalendarPredefinedRange[]; compare?: boolean; compareLabel?: string; /** The mininmum date shown in matrix */ min?: string; /** The maximum date shown in matrix */ max?: string; /** Z-index of the calendar */ zIndex?: number; locale?: 'en' | 'cn'; }