import { IBaseForm } from '../baseForm' import { paramsInterfaceValidKey } from '../../../script/index' interface ShortcutsInterface { text: string value: Function } export interface DatePickerInterface extends IBaseForm { startPlaceholder?: string endPlaceholder?: string dateType?: Function popperClass?: string format?: Function valueFormat?: Function initMethods?: boolean focusMethod?: Function shortcuts?: ShortcutsInterface[] disabledDate?: Function disabledHours?: Function disabledMinutes?: Function disabledSeconds?: Function cellClassName?: Function teleported?: Boolean } export class DatePickerConfig implements DatePickerInterface { startPlaceholder = 'startTime' endPlaceholder = 'endTime' type = 'infoDatePicker' label = '' model = 'time' popperClass = '' initMethods = false size = '' teleported = true shortcuts: ShortcutsInterface[] = [] cellClassName = (): void => {} methods = (): void => {} disabledDate = (): void => {} disabled = (): boolean => false focusMethod = (): void => {} valueFormat = (): string => 'YYYY-MM-DD' format = (): string => 'YYYY-MM-DD' dateType = (): string => 'daterange' constructor (params: DatePickerInterface) { paramsInterfaceValidKey(this, params) } }