import { IMyDayLabels } from './my-day-labels.interface'; import { IMyMonthLabels } from './my-month-labels.interface'; import { IMyDate } from './my-date.interface'; import { IMyDateRange } from './my-date-range.interface'; import { IMyMarkedDates } from './my-marked-dates.interface'; import { IMyMarkedDate } from './my-marked-date.interface'; import { IMyStyles } from './my-styles.interface'; import { DefaultView } from '../enums/default-view.enum'; import { Year } from '../enums/year.enum'; import { IMyShortcuts } from './my-shortcuts.interface'; import { ShowType } from '../enums/show-type.enum'; import { DynamicData } from './dynamic-data-type.interface'; export interface IMyOptions { dateRange?: boolean; showTime?: boolean; showType?: ShowType; dayLabels?: IMyDayLabels; monthLabels?: IMyMonthLabels; yearTxt?: string; dateFormat?: string; defaultView?: DefaultView; /** 每周起始日 可选值 mo:周一, su: 周日,默认为 mo周一 */ firstDayOfWeek?: string; satHighlight?: boolean; sunHighlight?: boolean; highlightDates?: Array; markCurrentDay?: boolean; markCurrentMonth?: boolean; markCurrentYear?: boolean; monthSelector?: boolean; yearSelector?: boolean; disableHeaderButtons?: boolean; showWeekNumbers?: boolean; selectorHeight?: string; selectorWidth?: string; disableUntil?: IMyDate; disableSince?: IMyDate; disableDates?: Array; disableDateRanges?: Array; disableWeekends?: boolean; disableWeekdays?: Array; enableDates?: Array; markDates?: Array; markWeekends?: IMyMarkedDate; closeSelectorOnDateSelect?: boolean; closeSelectorOnDocumentClick?: boolean; minYear?: Year; maxYear?: Year; focusInputOnDateSelect?: boolean; moveFocusByArrowKeys?: boolean; dateRangeDatesDelimiter?: string; inputFieldValidation?: boolean; stylesData?: IMyStyles; ariaLabelPrevMonth?: string; ariaLabelNextMonth?: string; shortcuts?: Array; timeBtnText?: string; dateBtnText?: string; commitBtnText?: string; weekText?: string; returnFormat?: string; placeholder?: string; timeFormat?: string; range?: any; monthRangeValue?: number; message?: any; viewType?: ViewType | string; enableDynamic?: boolean; showDynamicView?: boolean; dynamicValue?: DynamicData; dynamicValueChanged?: (e: { text: string; value: {}; }) => void; /** 动态日期,过去时间最大天数 */ previousMaxDays?: number; /** 动态日期,未来日期最大天数 */ futureMaxDays?: number; /** 动态日期多语资源 */ dynamicLocale?: any; /** 显示今天,本年,本月 按钮 */ showPresent?: boolean; hourStep?: number; minuteStep?: number; secondStep?: number; /** 是否启用多选 */ multiSelect?: boolean; /** 多选分隔符 */ separator?: string; /** 允许最大选择日期数量,默认为0 无限选择 */ maxSelected?: number; /** 选中的日期列表是否进行排序,可选 'none'|'asc'|'desc', 默认为 ‘0‘ 即不启用排序 */ selectedOrderBy?: MultiSelectedOrderBy; /** 日期多选多语资源 */ multiDatesLocale?: any; localeId?: string; } /** 日期与时间展示方式,switch: 要么展现日期,要么展现时间视图;together: 日期与时间一起展现,左侧显示日期,右侧显示时间;默认为 switch */ export declare enum ViewType { Switch = "switch", Together = "together" } export declare type MultiSelectedOrderBy = 'none' | 'asc' | 'desc';