UNPKG

v-calendar-fixed

Version:

A calendar and date picker plugin for Vue.js.

1,060 lines 121 kB
import { type ExtractPropTypes, type PropType, type SetupContext } from 'vue'; import { Attribute } from '../utils/attribute'; import { type DateSource } from '../utils/date/helpers'; import { type DateRangeCell, DateRangeContext } from '../utils/date/range'; import { type CustomElement } from '../utils/helpers'; import { type CalendarDay, type CalendarWeek, type Page, type PageAddress, type TitlePosition } from '../utils/page'; import { type PopoverVisibility } from '../utils/popovers'; export type CalendarView = 'daily' | 'weekly' | 'monthly'; export type MoveTarget = DateSource | PageAddress; export type MoveTransition = 'none' | 'fade' | 'slide-v' | 'slide-h'; export interface MoveOptions { position: number; view: CalendarView; transition: MoveTransition; force: boolean; fromPage: PageAddress; toPage: PageAddress; } export interface RefreshOptions { page: PageAddress; position: number; force: boolean; transition: MoveTransition; } export type DayCells = Record<number, { day: CalendarDay; cells: DateRangeCell<Attribute>[]; }>; export type CalendarProps = Readonly<ExtractPropTypes<typeof propsDef>>; type IContainer = Pick<Element, 'querySelector'> & CustomElement; export type CalendarContext = ReturnType<typeof createCalendar>; export declare const propsDef: { view: { type: PropType<CalendarView>; default: string; validator(value: string): boolean; }; rows: { type: NumberConstructor; default: number; }; columns: { type: NumberConstructor; default: number; }; step: NumberConstructor; titlePosition: { type: PropType<TitlePosition>; default: () => TitlePosition; }; navVisibility: { type: PropType<PopoverVisibility>; default: () => PopoverVisibility; }; showWeeknumbers: (BooleanConstructor | StringConstructor)[]; showIsoWeeknumbers: (BooleanConstructor | StringConstructor)[]; expanded: BooleanConstructor; borderless: BooleanConstructor; transparent: BooleanConstructor; initialPage: PropType<PageAddress>; initialPagePosition: { type: NumberConstructor; default: number; }; minPage: PropType<PageAddress>; maxPage: PropType<PageAddress>; transition: PropType<MoveTransition>; attributes: PropType<Partial<{ key: string | number; hashcode: string; content: import("../utils/glyph").ContentConfig; highlight: import("../utils/glyph").HighlightConfig; dot: import("../utils/glyph").DotConfig; bar: import("../utils/glyph").BarConfig; popover: Partial<{ label: string; visibility: PopoverVisibility; placement: import("@popperjs/core").Placement; hideIndicator: boolean; isInteractive: boolean; }>; event: Partial<{ label: string; }>; dates: import("../utils/date/range").DateRangeSource[]; customData: any; order: number; pinPage: boolean; }>[]>; trimWeeks: BooleanConstructor; disablePageSwipe: BooleanConstructor; color: { type: StringConstructor; default: () => any; }; isDark: { type: PropType<boolean | "system" | import("vue-screen-utils").DarkModeClassConfig>; default: () => any; }; firstDayOfWeek: PropType<import("../utils/date/helpers").DayOfWeek>; masks: ObjectConstructor; locale: PropType<string | Record<string, any> | import("../utils/locale").default>; timezone: StringConstructor; minDate: null; maxDate: null; disabledDates: null; }; export declare const emitsDef: string[]; export declare function createCalendar(props: CalendarProps, { slots, emit }: Pick<SetupContext, 'slots' | 'emit'>): { emit: ((event: string, ...args: any[]) => void) | ((event: string, ...args: any[]) => void); containerRef: import("vue").Ref<{ querySelector: { <K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null; <K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): SVGElementTagNameMap[K_1] | null; <E extends Element = Element>(selectors: string): E | null; }; addEventListener: Function; removeEventListener: Function; dispatchEvent: Function; } | null, IContainer | { querySelector: { <K extends keyof HTMLElementTagNameMap>(selectors: K): HTMLElementTagNameMap[K] | null; <K_1 extends keyof SVGElementTagNameMap>(selectors: K_1): SVGElementTagNameMap[K_1] | null; <E extends Element = Element>(selectors: string): E | null; }; addEventListener: Function; removeEventListener: Function; dispatchEvent: Function; } | null>; focusedDay: import("vue").Ref<{ id: string; position: number; label: string; ariaLabel: string; weekdayPosition: number; weekdayPositionFromEnd: number; weekPosition: number; isoWeeknumber: number; startDate: Date; noonDate: Date; endDate: Date; isToday: boolean; isFirstDay: boolean; isLastDay: boolean; isDisabled: boolean; isFocusable: boolean; isFocused: boolean; inMonth: boolean; inPrevMonth: boolean; inNextMonth: boolean; onTop: boolean; onBottom: boolean; onLeft: boolean; onRight: boolean; classes: (string | Object)[]; locale: { id: any; daysInWeek: number; firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; masks: any; timezone: string | undefined; hourLabels: string[]; dayNames: string[]; dayNamesShort: string[]; dayNamesShorter: string[]; dayNamesNarrow: string[]; monthNames: string[]; monthNamesShort: string[]; relativeTimeNames: { day?: string | undefined; week?: string | undefined; month?: string | undefined; year?: string | undefined; days?: string | undefined; weeks?: string | undefined; seconds?: string | undefined; minutes?: string | undefined; hours?: string | undefined; months?: string | undefined; years?: string | undefined; quarter?: string | undefined; quarters?: string | undefined; hour?: string | undefined; minute?: string | undefined; second?: string | undefined; }; amPm: [string, string]; monthCache: { keys: string[]; store: Record<string, import("../utils/date/helpers").MonthParts>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/date/helpers").MonthParts; get: (...args: any[]) => import("../utils/date/helpers").MonthParts; getOrSet: (...args: any[]) => import("../utils/date/helpers").MonthParts; }; pageCache: { keys: string[]; store: Record<string, import("../utils/page").CachedPage>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/page").CachedPage; get: (...args: any[]) => import("../utils/page").CachedPage; getOrSet: (...args: any[]) => import("../utils/page").CachedPage; }; formatDate: (date: Date, masks: string | string[]) => string; parseDate: (dateString: string, mask: string | string[]) => Date; toDate: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date; toDateOrNull: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date | null; fromDate: (date: Date | null, { type, mask }?: Partial<import("../utils/date/helpers").DateOptions>) => string | number | Date | import("../utils/date/helpers").DateParts | null; range: (source: import("../utils/date/range").DateRangeSource) => import("../utils/date/range").DateRange; ranges: (ranges: import("../utils/date/range").DateRangeSource | import("../utils/date/range").DateRangeSource[]) => import("../utils/date/range").DateRange[]; getDateParts: (date: Date) => import("../utils/date/helpers").DateParts; getDateFromParts: (parts: Partial<import("../utils/date/helpers").SimpleDateParts>) => Date; getDateFromParams: (year: number, month: number, day: number, hours: number, minutes: number, seconds: number, milliseconds: number) => Date; getPage: (config: import("../utils/page").PageConfig) => Page; getMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getThisMonthParts: () => import("../utils/date/helpers").MonthParts; getPrevMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getNextMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getHourLabels: () => string[]; getDayId: (date: Date) => string; }; dayIndex: number; day: number; dayFromEnd: number; weekday: number; weekdayOrdinal: number; weekdayOrdinalFromEnd: number; week: number; weekFromEnd: number; weeknumber: number; month: number; year: number; date: Date; } | null, CalendarDay | { id: string; position: number; label: string; ariaLabel: string; weekdayPosition: number; weekdayPositionFromEnd: number; weekPosition: number; isoWeeknumber: number; startDate: Date; noonDate: Date; endDate: Date; isToday: boolean; isFirstDay: boolean; isLastDay: boolean; isDisabled: boolean; isFocusable: boolean; isFocused: boolean; inMonth: boolean; inPrevMonth: boolean; inNextMonth: boolean; onTop: boolean; onBottom: boolean; onLeft: boolean; onRight: boolean; classes: (string | Object)[]; locale: { id: any; daysInWeek: number; firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; masks: any; timezone: string | undefined; hourLabels: string[]; dayNames: string[]; dayNamesShort: string[]; dayNamesShorter: string[]; dayNamesNarrow: string[]; monthNames: string[]; monthNamesShort: string[]; relativeTimeNames: { day?: string | undefined; week?: string | undefined; month?: string | undefined; year?: string | undefined; days?: string | undefined; weeks?: string | undefined; seconds?: string | undefined; minutes?: string | undefined; hours?: string | undefined; months?: string | undefined; years?: string | undefined; quarter?: string | undefined; quarters?: string | undefined; hour?: string | undefined; minute?: string | undefined; second?: string | undefined; }; amPm: [string, string]; monthCache: { keys: string[]; store: Record<string, import("../utils/date/helpers").MonthParts>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/date/helpers").MonthParts; get: (...args: any[]) => import("../utils/date/helpers").MonthParts; getOrSet: (...args: any[]) => import("../utils/date/helpers").MonthParts; }; pageCache: { keys: string[]; store: Record<string, import("../utils/page").CachedPage>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/page").CachedPage; get: (...args: any[]) => import("../utils/page").CachedPage; getOrSet: (...args: any[]) => import("../utils/page").CachedPage; }; formatDate: (date: Date, masks: string | string[]) => string; parseDate: (dateString: string, mask: string | string[]) => Date; toDate: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date; toDateOrNull: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date | null; fromDate: (date: Date | null, { type, mask }?: Partial<import("../utils/date/helpers").DateOptions>) => string | number | Date | import("../utils/date/helpers").DateParts | null; range: (source: import("../utils/date/range").DateRangeSource) => import("../utils/date/range").DateRange; ranges: (ranges: import("../utils/date/range").DateRangeSource | import("../utils/date/range").DateRangeSource[]) => import("../utils/date/range").DateRange[]; getDateParts: (date: Date) => import("../utils/date/helpers").DateParts; getDateFromParts: (parts: Partial<import("../utils/date/helpers").SimpleDateParts>) => Date; getDateFromParams: (year: number, month: number, day: number, hours: number, minutes: number, seconds: number, milliseconds: number) => Date; getPage: (config: import("../utils/page").PageConfig) => Page; getMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getThisMonthParts: () => import("../utils/date/helpers").MonthParts; getPrevMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getNextMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getHourLabels: () => string[]; getDayId: (date: Date) => string; }; dayIndex: number; day: number; dayFromEnd: number; weekday: number; weekdayOrdinal: number; weekdayOrdinalFromEnd: number; week: number; weekFromEnd: number; weeknumber: number; month: number; year: number; date: Date; } | null>; inTransition: import("vue").Ref<boolean, boolean>; navPopoverId: import("vue").Ref<symbol, symbol>; dayPopoverId: import("vue").Ref<symbol, symbol>; view: import("vue").Ref<CalendarView, CalendarView>; pages: import("vue").Ref<{ id: string; day?: number | undefined; week?: number | undefined; month: number; year: number; view: import("../utils/page").PageView; trimWeeks: boolean; position: number; row: number; rowFromEnd: number; column: number; columnFromEnd: number; showWeeknumbers: boolean; showIsoWeeknumbers: boolean; weeknumberPosition: string; monthTitle: string; weekTitle?: string | undefined; dayTitle?: string | undefined; title: string; titlePosition: TitlePosition; shortMonthLabel: string; monthLabel: string; shortYearLabel: string; yearLabel: string; monthComps: { firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; firstDayOfMonth: Date; inLeapYear: boolean; firstWeekday: number; numDays: number; numWeeks: number; month: number; year: number; weeknumbers: number[]; isoWeeknumbers: number[]; }; prevMonthComps: { firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; firstDayOfMonth: Date; inLeapYear: boolean; firstWeekday: number; numDays: number; numWeeks: number; month: number; year: number; weeknumbers: number[]; isoWeeknumbers: number[]; }; nextMonthComps: { firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; firstDayOfMonth: Date; inLeapYear: boolean; firstWeekday: number; numDays: number; numWeeks: number; month: number; year: number; weeknumbers: number[]; isoWeeknumbers: number[]; }; days: { id: string; position: number; label: string; ariaLabel: string; weekdayPosition: number; weekdayPositionFromEnd: number; weekPosition: number; isoWeeknumber: number; startDate: Date; noonDate: Date; endDate: Date; isToday: boolean; isFirstDay: boolean; isLastDay: boolean; isDisabled: boolean; isFocusable: boolean; isFocused: boolean; inMonth: boolean; inPrevMonth: boolean; inNextMonth: boolean; onTop: boolean; onBottom: boolean; onLeft: boolean; onRight: boolean; classes: (string | Object)[]; locale: { id: any; daysInWeek: number; firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; masks: any; timezone: string | undefined; hourLabels: string[]; dayNames: string[]; dayNamesShort: string[]; dayNamesShorter: string[]; dayNamesNarrow: string[]; monthNames: string[]; monthNamesShort: string[]; relativeTimeNames: { day?: string | undefined; week?: string | undefined; month?: string | undefined; year?: string | undefined; days?: string | undefined; weeks?: string | undefined; seconds?: string | undefined; minutes?: string | undefined; hours?: string | undefined; months?: string | undefined; years?: string | undefined; quarter?: string | undefined; quarters?: string | undefined; hour?: string | undefined; minute?: string | undefined; second?: string | undefined; }; amPm: [string, string]; monthCache: { keys: string[]; store: Record<string, import("../utils/date/helpers").MonthParts>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/date/helpers").MonthParts; get: (...args: any[]) => import("../utils/date/helpers").MonthParts; getOrSet: (...args: any[]) => import("../utils/date/helpers").MonthParts; }; pageCache: { keys: string[]; store: Record<string, import("../utils/page").CachedPage>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/page").CachedPage; get: (...args: any[]) => import("../utils/page").CachedPage; getOrSet: (...args: any[]) => import("../utils/page").CachedPage; }; formatDate: (date: Date, masks: string | string[]) => string; parseDate: (dateString: string, mask: string | string[]) => Date; toDate: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date; toDateOrNull: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date | null; fromDate: (date: Date | null, { type, mask }?: Partial<import("../utils/date/helpers").DateOptions>) => string | number | Date | import("../utils/date/helpers").DateParts | null; range: (source: import("../utils/date/range").DateRangeSource) => import("../utils/date/range").DateRange; ranges: (ranges: import("../utils/date/range").DateRangeSource | import("../utils/date/range").DateRangeSource[]) => import("../utils/date/range").DateRange[]; getDateParts: (date: Date) => import("../utils/date/helpers").DateParts; getDateFromParts: (parts: Partial<import("../utils/date/helpers").SimpleDateParts>) => Date; getDateFromParams: (year: number, month: number, day: number, hours: number, minutes: number, seconds: number, milliseconds: number) => Date; getPage: (config: import("../utils/page").PageConfig) => Page; getMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getThisMonthParts: () => import("../utils/date/helpers").MonthParts; getPrevMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getNextMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getHourLabels: () => string[]; getDayId: (date: Date) => string; }; dayIndex: number; day: number; dayFromEnd: number; weekday: number; weekdayOrdinal: number; weekdayOrdinalFromEnd: number; week: number; weekFromEnd: number; weeknumber: number; month: number; year: number; date: Date; }[]; weeks: { id: string; week: number; weekPosition: number; weeknumber: number; isoWeeknumber: number; weeknumberDisplay?: number | undefined; days: { id: string; position: number; label: string; ariaLabel: string; weekdayPosition: number; weekdayPositionFromEnd: number; weekPosition: number; isoWeeknumber: number; startDate: Date; noonDate: Date; endDate: Date; isToday: boolean; isFirstDay: boolean; isLastDay: boolean; isDisabled: boolean; isFocusable: boolean; isFocused: boolean; inMonth: boolean; inPrevMonth: boolean; inNextMonth: boolean; onTop: boolean; onBottom: boolean; onLeft: boolean; onRight: boolean; classes: (string | Object)[]; locale: { id: any; daysInWeek: number; firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; masks: any; timezone: string | undefined; hourLabels: string[]; dayNames: string[]; dayNamesShort: string[]; dayNamesShorter: string[]; dayNamesNarrow: string[]; monthNames: string[]; monthNamesShort: string[]; relativeTimeNames: { day?: string | undefined; week?: string | undefined; month?: string | undefined; year?: string | undefined; days?: string | undefined; weeks?: string | undefined; seconds?: string | undefined; minutes?: string | undefined; hours?: string | undefined; months?: string | undefined; years?: string | undefined; quarter?: string | undefined; quarters?: string | undefined; hour?: string | undefined; minute?: string | undefined; second?: string | undefined; }; amPm: [string, string]; monthCache: { keys: string[]; store: Record<string, import("../utils/date/helpers").MonthParts>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/date/helpers").MonthParts; get: (...args: any[]) => import("../utils/date/helpers").MonthParts; getOrSet: (...args: any[]) => import("../utils/date/helpers").MonthParts; }; pageCache: { keys: string[]; store: Record<string, import("../utils/page").CachedPage>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/page").CachedPage; get: (...args: any[]) => import("../utils/page").CachedPage; getOrSet: (...args: any[]) => import("../utils/page").CachedPage; }; formatDate: (date: Date, masks: string | string[]) => string; parseDate: (dateString: string, mask: string | string[]) => Date; toDate: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date; toDateOrNull: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date | null; fromDate: (date: Date | null, { type, mask }?: Partial<import("../utils/date/helpers").DateOptions>) => string | number | Date | import("../utils/date/helpers").DateParts | null; range: (source: import("../utils/date/range").DateRangeSource) => import("../utils/date/range").DateRange; ranges: (ranges: import("../utils/date/range").DateRangeSource | import("../utils/date/range").DateRangeSource[]) => import("../utils/date/range").DateRange[]; getDateParts: (date: Date) => import("../utils/date/helpers").DateParts; getDateFromParts: (parts: Partial<import("../utils/date/helpers").SimpleDateParts>) => Date; getDateFromParams: (year: number, month: number, day: number, hours: number, minutes: number, seconds: number, milliseconds: number) => Date; getPage: (config: import("../utils/page").PageConfig) => Page; getMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getThisMonthParts: () => import("../utils/date/helpers").MonthParts; getPrevMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getNextMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getHourLabels: () => string[]; getDayId: (date: Date) => string; }; dayIndex: number; day: number; dayFromEnd: number; weekday: number; weekdayOrdinal: number; weekdayOrdinalFromEnd: number; week: number; weekFromEnd: number; weeknumber: number; month: number; year: number; date: Date; }[]; title: string; }[]; weekdays: { weekday: number; label: string; }[]; viewDays: { id: string; position: number; label: string; ariaLabel: string; weekdayPosition: number; weekdayPositionFromEnd: number; weekPosition: number; isoWeeknumber: number; startDate: Date; noonDate: Date; endDate: Date; isToday: boolean; isFirstDay: boolean; isLastDay: boolean; isDisabled: boolean; isFocusable: boolean; isFocused: boolean; inMonth: boolean; inPrevMonth: boolean; inNextMonth: boolean; onTop: boolean; onBottom: boolean; onLeft: boolean; onRight: boolean; classes: (string | Object)[]; locale: { id: any; daysInWeek: number; firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; masks: any; timezone: string | undefined; hourLabels: string[]; dayNames: string[]; dayNamesShort: string[]; dayNamesShorter: string[]; dayNamesNarrow: string[]; monthNames: string[]; monthNamesShort: string[]; relativeTimeNames: { day?: string | undefined; week?: string | undefined; month?: string | undefined; year?: string | undefined; days?: string | undefined; weeks?: string | undefined; seconds?: string | undefined; minutes?: string | undefined; hours?: string | undefined; months?: string | undefined; years?: string | undefined; quarter?: string | undefined; quarters?: string | undefined; hour?: string | undefined; minute?: string | undefined; second?: string | undefined; }; amPm: [string, string]; monthCache: { keys: string[]; store: Record<string, import("../utils/date/helpers").MonthParts>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/date/helpers").MonthParts; get: (...args: any[]) => import("../utils/date/helpers").MonthParts; getOrSet: (...args: any[]) => import("../utils/date/helpers").MonthParts; }; pageCache: { keys: string[]; store: Record<string, import("../utils/page").CachedPage>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/page").CachedPage; get: (...args: any[]) => import("../utils/page").CachedPage; getOrSet: (...args: any[]) => import("../utils/page").CachedPage; }; formatDate: (date: Date, masks: string | string[]) => string; parseDate: (dateString: string, mask: string | string[]) => Date; toDate: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date; toDateOrNull: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date | null; fromDate: (date: Date | null, { type, mask }?: Partial<import("../utils/date/helpers").DateOptions>) => string | number | Date | import("../utils/date/helpers").DateParts | null; range: (source: import("../utils/date/range").DateRangeSource) => import("../utils/date/range").DateRange; ranges: (ranges: import("../utils/date/range").DateRangeSource | import("../utils/date/range").DateRangeSource[]) => import("../utils/date/range").DateRange[]; getDateParts: (date: Date) => import("../utils/date/helpers").DateParts; getDateFromParts: (parts: Partial<import("../utils/date/helpers").SimpleDateParts>) => Date; getDateFromParams: (year: number, month: number, day: number, hours: number, minutes: number, seconds: number, milliseconds: number) => Date; getPage: (config: import("../utils/page").PageConfig) => Page; getMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getThisMonthParts: () => import("../utils/date/helpers").MonthParts; getPrevMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getNextMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getHourLabels: () => string[]; getDayId: (date: Date) => string; }; dayIndex: number; day: number; dayFromEnd: number; weekday: number; weekdayOrdinal: number; weekdayOrdinalFromEnd: number; week: number; weekFromEnd: number; weeknumber: number; month: number; year: number; date: Date; }[]; viewWeeks: { id: string; week: number; weekPosition: number; weeknumber: number; isoWeeknumber: number; weeknumberDisplay?: number | undefined; days: { id: string; position: number; label: string; ariaLabel: string; weekdayPosition: number; weekdayPositionFromEnd: number; weekPosition: number; isoWeeknumber: number; startDate: Date; noonDate: Date; endDate: Date; isToday: boolean; isFirstDay: boolean; isLastDay: boolean; isDisabled: boolean; isFocusable: boolean; isFocused: boolean; inMonth: boolean; inPrevMonth: boolean; inNextMonth: boolean; onTop: boolean; onBottom: boolean; onLeft: boolean; onRight: boolean; classes: (string | Object)[]; locale: { id: any; daysInWeek: number; firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; masks: any; timezone: string | undefined; hourLabels: string[]; dayNames: string[]; dayNamesShort: string[]; dayNamesShorter: string[]; dayNamesNarrow: string[]; monthNames: string[]; monthNamesShort: string[]; relativeTimeNames: { day?: string | undefined; week?: string | undefined; month?: string | undefined; year?: string | undefined; days?: string | undefined; weeks?: string | undefined; seconds?: string | undefined; minutes?: string | undefined; hours?: string | undefined; months?: string | undefined; years?: string | undefined; quarter?: string | undefined; quarters?: string | undefined; hour?: string | undefined; minute?: string | undefined; second?: string | undefined; }; amPm: [string, string]; monthCache: { keys: string[]; store: Record<string, import("../utils/date/helpers").MonthParts>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/date/helpers").MonthParts; get: (...args: any[]) => import("../utils/date/helpers").MonthParts; getOrSet: (...args: any[]) => import("../utils/date/helpers").MonthParts; }; pageCache: { keys: string[]; store: Record<string, import("../utils/page").CachedPage>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/page").CachedPage; get: (...args: any[]) => import("../utils/page").CachedPage; getOrSet: (...args: any[]) => import("../utils/page").CachedPage; }; formatDate: (date: Date, masks: string | string[]) => string; parseDate: (dateString: string, mask: string | string[]) => Date; toDate: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date; toDateOrNull: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date | null; fromDate: (date: Date | null, { type, mask }?: Partial<import("../utils/date/helpers").DateOptions>) => string | number | Date | import("../utils/date/helpers").DateParts | null; range: (source: import("../utils/date/range").DateRangeSource) => import("../utils/date/range").DateRange; ranges: (ranges: import("../utils/date/range").DateRangeSource | import("../utils/date/range").DateRangeSource[]) => import("../utils/date/range").DateRange[]; getDateParts: (date: Date) => import("../utils/date/helpers").DateParts; getDateFromParts: (parts: Partial<import("../utils/date/helpers").SimpleDateParts>) => Date; getDateFromParams: (year: number, month: number, day: number, hours: number, minutes: number, seconds: number, milliseconds: number) => Date; getPage: (config: import("../utils/page").PageConfig) => Page; getMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getThisMonthParts: () => import("../utils/date/helpers").MonthParts; getPrevMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getNextMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getHourLabels: () => string[]; getDayId: (date: Date) => string; }; dayIndex: number; day: number; dayFromEnd: number; weekday: number; weekdayOrdinal: number; weekdayOrdinalFromEnd: number; week: number; weekFromEnd: number; weeknumber: number; month: number; year: number; date: Date; }[]; title: string; }[]; }[], Page[] | { id: string; day?: number | undefined; week?: number | undefined; month: number; year: number; view: import("../utils/page").PageView; trimWeeks: boolean; position: number; row: number; rowFromEnd: number; column: number; columnFromEnd: number; showWeeknumbers: boolean; showIsoWeeknumbers: boolean; weeknumberPosition: string; monthTitle: string; weekTitle?: string | undefined; dayTitle?: string | undefined; title: string; titlePosition: TitlePosition; shortMonthLabel: string; monthLabel: string; shortYearLabel: string; yearLabel: string; monthComps: { firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; firstDayOfMonth: Date; inLeapYear: boolean; firstWeekday: number; numDays: number; numWeeks: number; month: number; year: number; weeknumbers: number[]; isoWeeknumbers: number[]; }; prevMonthComps: { firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; firstDayOfMonth: Date; inLeapYear: boolean; firstWeekday: number; numDays: number; numWeeks: number; month: number; year: number; weeknumbers: number[]; isoWeeknumbers: number[]; }; nextMonthComps: { firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; firstDayOfMonth: Date; inLeapYear: boolean; firstWeekday: number; numDays: number; numWeeks: number; month: number; year: number; weeknumbers: number[]; isoWeeknumbers: number[]; }; days: { id: string; position: number; label: string; ariaLabel: string; weekdayPosition: number; weekdayPositionFromEnd: number; weekPosition: number; isoWeeknumber: number; startDate: Date; noonDate: Date; endDate: Date; isToday: boolean; isFirstDay: boolean; isLastDay: boolean; isDisabled: boolean; isFocusable: boolean; isFocused: boolean; inMonth: boolean; inPrevMonth: boolean; inNextMonth: boolean; onTop: boolean; onBottom: boolean; onLeft: boolean; onRight: boolean; classes: (string | Object)[]; locale: { id: any; daysInWeek: number; firstDayOfWeek: import("../utils/date/helpers").DayOfWeek; masks: any; timezone: string | undefined; hourLabels: string[]; dayNames: string[]; dayNamesShort: string[]; dayNamesShorter: string[]; dayNamesNarrow: string[]; monthNames: string[]; monthNamesShort: string[]; relativeTimeNames: { day?: string | undefined; week?: string | undefined; month?: string | undefined; year?: string | undefined; days?: string | undefined; weeks?: string | undefined; seconds?: string | undefined; minutes?: string | undefined; hours?: string | undefined; months?: string | undefined; years?: string | undefined; quarter?: string | undefined; quarters?: string | undefined; hour?: string | undefined; minute?: string | undefined; second?: string | undefined; }; amPm: [string, string]; monthCache: { keys: string[]; store: Record<string, import("../utils/date/helpers").MonthParts>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/date/helpers").MonthParts; get: (...args: any[]) => import("../utils/date/helpers").MonthParts; getOrSet: (...args: any[]) => import("../utils/date/helpers").MonthParts; }; pageCache: { keys: string[]; store: Record<string, import("../utils/page").CachedPage>; size: number; createKey: (...args: any[]) => string; createItem: (...args: any[]) => import("../utils/page").CachedPage; get: (...args: any[]) => import("../utils/page").CachedPage; getOrSet: (...args: any[]) => import("../utils/page").CachedPage; }; formatDate: (date: Date, masks: string | string[]) => string; parseDate: (dateString: string, mask: string | string[]) => Date; toDate: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date; toDateOrNull: (d: Partial<import("../utils/date/helpers").SimpleDateParts> | DateSource, opts?: Partial<import("../utils/date/helpers").DateOptions>) => Date | null; fromDate: (date: Date | null, { type, mask }?: Partial<import("../utils/date/helpers").DateOptions>) => string | number | Date | import("../utils/date/helpers").DateParts | null; range: (source: import("../utils/date/range").DateRangeSource) => import("../utils/date/range").DateRange; ranges: (ranges: import("../utils/date/range").DateRangeSource | import("../utils/date/range").DateRangeSource[]) => import("../utils/date/range").DateRange[]; getDateParts: (date: Date) => import("../utils/date/helpers").DateParts; getDateFromParts: (parts: Partial<import("../utils/date/helpers").SimpleDateParts>) => Date; getDateFromParams: (year: number, month: number, day: number, hours: number, minutes: number, seconds: number, milliseconds: number) => Date; getPage: (config: import("../utils/page").PageConfig) => Page; getMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getThisMonthParts: () => import("../utils/date/helpers").MonthParts; getPrevMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getNextMonthParts: (month: number, year: number) => import("../utils/date/helpers").MonthParts; getHourLabels: () => string[]; getDayId: (date: Date) => string; }; dayIndex: number; day: number; dayFromEnd: number; weekday: number; weekdayOrdinal: number; weekdayOrdinalFromEnd: number; week: number; weekFromEnd: number; weeknumber: number; month: number; year: number; date: Date; }[]; weeks: { id: string; week: number; weekPosition: number; weeknumber: number; isoWeeknumber: number; weeknumberDisplay?: number | undefined; days: { id: string; position: number; label: string; ariaLabel: string; weekdayPosition: number; weekdayPositionFromEnd: number; weekPosition: number; isoWeeknumber: number; startDate: Date; noonDate: Date; endDate: Date; isToday: boolean; isFirstDay: boolean; isLastDay: boolean; isDisabled: boolean; isFocusable: boolean; isFocused: boolean; inMonth: boolean; inPrevMonth: boolean; inNextMonth: boolean; onTop: boolean; onBottom: boolean; onLeft: boolean; onRight: boolean; classes: (string | Object)[]; locale: { id: a