import type { TWidgetView } from '../../../models/TWidgetView' import type { IDatepickerData } from './IDatepickerData' import type { IDatepickerOptions } from './IDatepickerOptions' import type { IDatepickerLegend } from './IDatepickerLegend' export interface IDatepickerBaseOptions { widgetView: TWidgetView locale: string containerSize: { width: number; height: number } | null options: Partial defaultRange: Date | Date[] | null datepickerData: IDatepickerData[] | [] initialPreset: string availablePresets: EnumDatepickerPresets[] withoutPresets: boolean disabled: boolean placeholder: string inputLabel?: string inputValidation?: string showLegend?: boolean legend?: IDatepickerLegend dataTestId: string } export enum EnumDatepickerPresets { CUSTOM = 'custom', LAST_7_DAYS = 'last7days', THIS_WEEK = 'thisWeek', LAST_WEEK = 'lastWeek', THIS_MONTH = 'thisMonth', LAST_MONTH = 'lastMonth', LAST_30_DAYS = 'last30days', LAST_90_DAYS = 'last90days', LAST_365_DAYS = 'last365days', LAST_3_MONTH = 'last3months', NEXT_7_DAYS = 'next7days', NEXT_30_DAYS = 'next30days', NEXT_90_DAYS = 'next90days', THIS_QUARTER = 'thisQuarter', LAST_QUARTER = 'lastQuarter', NEXT_365_DAYS = 'next365days', ALL_TIME_PAST = 'allTimePast', ALL_TIME_FUTURE = 'allTimeFuture', }