v-calendar-3 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +142 -0
  3. package/dist/cjs/index.css +1133 -0
  4. package/dist/cjs/index.js +10699 -0
  5. package/dist/cjs/index.js.map +1 -0
  6. package/dist/cjs/package.json +1 -0
  7. package/dist/es/index.js +10678 -0
  8. package/dist/es/index.js.map +1 -0
  9. package/dist/es/style.css +1134 -0
  10. package/dist/iife/index.js +2 -0
  11. package/dist/iife/index.js.map +1 -0
  12. package/dist/mjs/index.mjs +10678 -0
  13. package/dist/mjs/index.mjs.map +1 -0
  14. package/dist/mjs/style.css +1134 -0
  15. package/dist/style.css +1134 -0
  16. package/dist/types/components/BaseIcon/BaseIcon.vue.d.ts +41 -0
  17. package/dist/types/components/BaseIcon/icons/IconChevronDown.vue.d.ts +3 -0
  18. package/dist/types/components/BaseIcon/icons/IconChevronLeft.vue.d.ts +3 -0
  19. package/dist/types/components/BaseIcon/icons/IconChevronRight.vue.d.ts +3 -0
  20. package/dist/types/components/BaseIcon/icons/IconClock.vue.d.ts +3 -0
  21. package/dist/types/components/BaseIcon/icons/index.d.ts +4 -0
  22. package/dist/types/components/BaseSelect/BaseSelect.vue.d.ts +26 -0
  23. package/dist/types/components/Calendar/Calendar.vue.d.ts +2526 -0
  24. package/dist/types/components/Calendar/CalendarDay.vue.d.ts +83 -0
  25. package/dist/types/components/Calendar/CalendarDayPopover.vue.d.ts +3 -0
  26. package/dist/types/components/Calendar/CalendarHeader.vue.d.ts +13 -0
  27. package/dist/types/components/Calendar/CalendarNav.vue.d.ts +4 -0
  28. package/dist/types/components/Calendar/CalendarNavPopover.vue.d.ts +3 -0
  29. package/dist/types/components/Calendar/CalendarPage.vue.d.ts +3 -0
  30. package/dist/types/components/Calendar/CalendarPageProvider.vue.d.ts +17 -0
  31. package/dist/types/components/Calendar/CalendarSlot.vue.d.ts +15 -0
  32. package/dist/types/components/Calendar/CalendarTitleSelect.vue.d.ts +15 -0
  33. package/dist/types/components/CalendarGrid/CalendarCell.vue.d.ts +9 -0
  34. package/dist/types/components/CalendarGrid/CalendarCellPopover.vue.d.ts +209 -0
  35. package/dist/types/components/CalendarGrid/CalendarDayCell.vue.d.ts +8 -0
  36. package/dist/types/components/CalendarGrid/CalendarEventDetails.vue.d.ts +15 -0
  37. package/dist/types/components/CalendarGrid/CalendarEventEdit.vue.d.ts +26 -0
  38. package/dist/types/components/CalendarGrid/CalendarGrid.vue.d.ts +134 -0
  39. package/dist/types/components/CalendarGrid/CalendarGridWeek.vue.d.ts +8 -0
  40. package/dist/types/components/CalendarGrid/CalendarViewSelect.vue.d.ts +3 -0
  41. package/dist/types/components/CalendarGrid/CalendarWeekCell.vue.d.ts +10 -0
  42. package/dist/types/components/CalendarGrid/Constraints.d.ts +16 -0
  43. package/dist/types/components/DatePicker/DatePicker.vue.d.ts +15251 -0
  44. package/dist/types/components/DatePicker/DatePickerBase.vue.d.ts +3 -0
  45. package/dist/types/components/DatePicker/DatePickerPopover.vue.d.ts +3 -0
  46. package/dist/types/components/DatePicker/TimePicker.vue.d.ts +10089 -0
  47. package/dist/types/components/Popover/Popover.vue.d.ts +72 -0
  48. package/dist/types/components/Popover/PopoverRow.vue.d.ts +17 -0
  49. package/dist/types/components/index.d.ts +4 -0
  50. package/dist/types/index.d.cts +40981 -0
  51. package/dist/types/index.d.mts +40981 -0
  52. package/dist/types/index.d.ts +40981 -0
  53. package/dist/types/use/base.d.ts +67 -0
  54. package/dist/types/use/calendar.d.ts +2422 -0
  55. package/dist/types/use/calendarGrid.d.ts +9370 -0
  56. package/dist/types/use/datePicker.d.ts +20210 -0
  57. package/dist/types/use/page.d.ts +20 -0
  58. package/dist/types/use/slots.d.ts +5 -0
  59. package/dist/types/use/timePicker.d.ts +10089 -0
  60. package/dist/types/utils/attribute.d.ts +49 -0
  61. package/dist/types/utils/cache.d.ts +10 -0
  62. package/dist/types/utils/calendar/event.d.ts +111 -0
  63. package/dist/types/utils/config/index.d.ts +5 -0
  64. package/dist/types/utils/date/helpers.d.ts +161 -0
  65. package/dist/types/utils/date/range.d.ts +74 -0
  66. package/dist/types/utils/date/repeat.d.ts +34 -0
  67. package/dist/types/utils/date/rules.d.ts +82 -0
  68. package/dist/types/utils/defaults/index.d.ts +30 -0
  69. package/dist/types/utils/defaults/locales.d.ts +9 -0
  70. package/dist/types/utils/glyph.d.ts +58 -0
  71. package/dist/types/utils/helpers.d.ts +49 -0
  72. package/dist/types/utils/locale.d.ts +48 -0
  73. package/dist/types/utils/page.d.ts +95 -0
  74. package/dist/types/utils/plugins/index.d.ts +4 -0
  75. package/dist/types/utils/popovers.d.ts +47 -0
  76. package/dist/types/utils/theme.d.ts +17 -0
  77. package/dist/types/utils/touch.d.ts +8 -0
  78. package/dist/types/utils/useDisplayMode.d.ts +12 -0
  79. package/dist/types/utils/watchers.d.ts +6 -0
  80. package/package.json +115 -0
  81. package/src/components/BaseIcon/BaseIcon.vue +29 -0
  82. package/src/components/BaseIcon/icons/IconChevronDown.vue +5 -0
  83. package/src/components/BaseIcon/icons/IconChevronLeft.vue +5 -0
  84. package/src/components/BaseIcon/icons/IconChevronRight.vue +5 -0
  85. package/src/components/BaseIcon/icons/IconClock.vue +11 -0
  86. package/src/components/BaseIcon/icons/index.ts +4 -0
  87. package/src/components/BaseSelect/BaseSelect.vue +136 -0
  88. package/src/components/Calendar/Calendar.vue +116 -0
  89. package/src/components/Calendar/CalendarDay.vue +422 -0
  90. package/src/components/Calendar/CalendarDayPopover.vue +44 -0
  91. package/src/components/Calendar/CalendarHeader.vue +203 -0
  92. package/src/components/Calendar/CalendarNav.vue +325 -0
  93. package/src/components/Calendar/CalendarNavPopover.vue +24 -0
  94. package/src/components/Calendar/CalendarPage.vue +140 -0
  95. package/src/components/Calendar/CalendarPageProvider.vue +15 -0
  96. package/src/components/Calendar/CalendarSlot.vue +36 -0
  97. package/src/components/Calendar/CalendarTitleSelect.vue +72 -0
  98. package/src/components/CalendarGrid/CalendarCell.vue +112 -0
  99. package/src/components/CalendarGrid/CalendarCellPopover.vue +93 -0
  100. package/src/components/CalendarGrid/CalendarDayCell.vue +57 -0
  101. package/src/components/CalendarGrid/CalendarEventDetails.vue +71 -0
  102. package/src/components/CalendarGrid/CalendarEventEdit.vue +195 -0
  103. package/src/components/CalendarGrid/CalendarGrid.vue +715 -0
  104. package/src/components/CalendarGrid/CalendarGridWeek.vue +60 -0
  105. package/src/components/CalendarGrid/CalendarViewSelect.vue +34 -0
  106. package/src/components/CalendarGrid/CalendarWeekCell.vue +52 -0
  107. package/src/components/CalendarGrid/Constraints.ts +40 -0
  108. package/src/components/DatePicker/DatePicker.vue +27 -0
  109. package/src/components/DatePicker/DatePickerBase.vue +53 -0
  110. package/src/components/DatePicker/DatePickerPopover.vue +37 -0
  111. package/src/components/DatePicker/TimePicker.vue +167 -0
  112. package/src/components/Popover/Popover.vue +572 -0
  113. package/src/components/Popover/PopoverRow.vue +94 -0
  114. package/src/components/index.ts +4 -0
  115. package/src/index.ts +24 -0
  116. package/src/styles/index.css +48 -0
  117. package/src/styles/theme.css +322 -0
  118. package/src/styles/transitions.css +77 -0
  119. package/src/use/base.ts +144 -0
  120. package/src/use/calendar.ts +796 -0
  121. package/src/use/calendarGrid.ts +954 -0
  122. package/src/use/datePicker.ts +909 -0
  123. package/src/use/page.ts +78 -0
  124. package/src/use/slots.ts +17 -0
  125. package/src/use/timePicker.ts +194 -0
  126. package/src/utils/attribute.ts +107 -0
  127. package/src/utils/cache.ts +30 -0
  128. package/src/utils/calendar/event.ts +335 -0
  129. package/src/utils/config/index.ts +11 -0
  130. package/src/utils/date/helpers.ts +1039 -0
  131. package/src/utils/date/range.ts +274 -0
  132. package/src/utils/date/repeat.ts +135 -0
  133. package/src/utils/date/rules.ts +290 -0
  134. package/src/utils/defaults/index.ts +77 -0
  135. package/src/utils/defaults/locales.ts +123 -0
  136. package/src/utils/defaults/masks.json +15 -0
  137. package/src/utils/defaults/touch.json +5 -0
  138. package/src/utils/glyph.ts +305 -0
  139. package/src/utils/helpers.ts +181 -0
  140. package/src/utils/locale.ts +275 -0
  141. package/src/utils/page.ts +608 -0
  142. package/src/utils/plugins/index.ts +24 -0
  143. package/src/utils/popovers.ts +216 -0
  144. package/src/utils/theme.ts +58 -0
  145. package/src/utils/touch.ts +72 -0
  146. package/src/utils/useDisplayMode.ts +198 -0
  147. package/src/utils/watchers.ts +26 -0
@@ -0,0 +1,83 @@
1
+ import { type PropType } from 'vue';
2
+ import type { Attribute } from '../../utils/attribute';
3
+ import type { DateRangeCell } from '../../utils/date/range';
4
+ import type { CalendarDay } from '../../utils/page';
5
+ declare const _default: typeof __VLS_export;
6
+ export default _default;
7
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
8
+ day: {
9
+ type: PropType<CalendarDay>;
10
+ required: true;
11
+ };
12
+ }>, {
13
+ attributes: import("vue").ComputedRef<Attribute[]>;
14
+ attributeCells: import("vue").ComputedRef<DateRangeCell<any>[]>;
15
+ bars: import("vue").ComputedRef<import("../../utils/glyph").Glyph[] | undefined>;
16
+ dayClasses: import("vue").ComputedRef<(string | object)[]>;
17
+ dayContentProps: import("vue").ComputedRef<{
18
+ class: (string | any[] | {
19
+ 'vc-disabled': boolean;
20
+ } | undefined)[];
21
+ style: {
22
+ [x: string]: any;
23
+ };
24
+ tabindex: string;
25
+ 'aria-label': string;
26
+ 'aria-disabled': boolean;
27
+ role: string;
28
+ }>;
29
+ dayContentEvents: import("vue").ComputedRef<{
30
+ click(event: MouseEvent): void;
31
+ mouseenter(event: MouseEvent): void;
32
+ mouseleave(event: MouseEvent): void;
33
+ focusin(event: FocusEvent): void;
34
+ focusout(event: FocusEvent): void;
35
+ keydown(event: KeyboardEvent): void;
36
+ }>;
37
+ dayPopover: import("vue").ComputedRef<any>;
38
+ glyphs: import("vue").ComputedRef<{
39
+ popovers: never[];
40
+ highlights?: import("../../utils/glyph").Highlight[] | undefined;
41
+ dots?: import("../../utils/glyph").Glyph[] | undefined;
42
+ bars?: import("../../utils/glyph").Glyph[] | undefined;
43
+ content?: import("../../utils/glyph").Glyph[] | undefined;
44
+ }>;
45
+ dots: import("vue").ComputedRef<import("../../utils/glyph").Glyph[] | undefined>;
46
+ hasDots: import("vue").ComputedRef<boolean>;
47
+ hasBars: import("vue").ComputedRef<boolean>;
48
+ highlights: import("vue").ComputedRef<import("../../utils/glyph").Highlight[] | undefined>;
49
+ hasHighlights: import("vue").ComputedRef<boolean>;
50
+ locale: import("vue").ComputedRef<import("../../utils/locale").default>;
51
+ popovers: import("vue").ComputedRef<never[]>;
52
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
53
+ day: {
54
+ type: PropType<CalendarDay>;
55
+ required: true;
56
+ };
57
+ }>> & Readonly<{}>, {}, {}, {
58
+ CalendarSlot: {
59
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
60
+ name: import("./CalendarSlot.vue").CalendarSlotName;
61
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
62
+ P: {};
63
+ B: {};
64
+ D: {};
65
+ C: {};
66
+ M: {};
67
+ Defaults: {};
68
+ }, Readonly<{
69
+ name: import("./CalendarSlot.vue").CalendarSlotName;
70
+ }> & Readonly<{}>, {}, {}, {}, {}, {}>;
71
+ __isFragment?: never;
72
+ __isTeleport?: never;
73
+ __isSuspense?: never;
74
+ } & import("vue").ComponentOptionsBase<Readonly<{
75
+ name: import("./CalendarSlot.vue").CalendarSlotName;
76
+ }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
77
+ $slots: {
78
+ default?: (props: {}) => any;
79
+ };
80
+ });
81
+ }, {
82
+ popover: import("vue").Directive;
83
+ }, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { Page } from '../../utils/page';
2
+ type __VLS_Props = {
3
+ page: Page;
4
+ layout?: string;
5
+ isLg?: boolean;
6
+ isXl?: boolean;
7
+ is2xl?: boolean;
8
+ hideTitle?: boolean;
9
+ hideArrows?: boolean;
10
+ };
11
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
+ declare const _default: typeof __VLS_export;
13
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export type IQuerySelector = Pick<HTMLElement, 'querySelector'>;
2
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,17 @@
1
+ import type { Page } from '../../utils/page';
2
+ type __VLS_Props = {
3
+ page: Page;
4
+ };
5
+ declare var __VLS_1: {};
6
+ type __VLS_Slots = {} & {
7
+ default?: (props: typeof __VLS_1) => any;
8
+ };
9
+ declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
10
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ type __VLS_WithSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,15 @@
1
+ export type CalendarSlotName = 'day-content' | 'day-popover' | 'dp-footer' | 'footer' | 'header-title-wrapper' | 'header-title' | 'header-prev-button' | 'header-next-button' | 'nav' | 'nav-prev-button' | 'nav-next-button' | 'page' | 'time-header';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: __VLS_WithSlots<import("vue").DefineComponent<{
5
+ name: CalendarSlotName;
6
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
7
+ name: CalendarSlotName;
8
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
9
+ default?: (props: {}) => any;
10
+ }>;
11
+ type __VLS_WithSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,15 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
+ monthFormat: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
7
+ monthFormat: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
11
+ }>> & Readonly<{}>, {
12
+ monthFormat: string;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import type { Event } from '../../utils/calendar/event';
2
+ import type { DateRangeCell } from '../../utils/date/range';
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import("vue").DefineComponent<{
6
+ cell: DateRangeCell<Event>;
7
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
8
+ cell: DateRangeCell<Event>;
9
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,209 @@
1
+ import type { Event } from '../../utils/calendar/event';
2
+ import { type PopoverOptions } from '../../utils/popovers';
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ popoverId: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ }>, {
11
+ displayMode: import("vue").ComputedRef<"dark" | "light">;
12
+ color: import("vue").ComputedRef<string>;
13
+ show: (event: Event) => void;
14
+ update: (event: Event) => void;
15
+ hide: () => void;
16
+ isVisible: () => boolean;
17
+ onAfterHide(): void;
18
+ event: import("vue").Ref<{
19
+ refSelector: string;
20
+ isMultiDay: boolean;
21
+ isWeekly: boolean;
22
+ durationMs: number;
23
+ durationMinutes: number;
24
+ startDate: Date;
25
+ startDateTime: number;
26
+ startTimeLabel: string;
27
+ endDate: Date;
28
+ endDateTime: number;
29
+ endTimeLabel: string;
30
+ timeLabel: string;
31
+ isSolid: boolean;
32
+ dragIsDirty: boolean;
33
+ formatDate: (date: Date, mask: string) => string;
34
+ formatTime: (date: Date) => string;
35
+ resizeToConstraints: () => void;
36
+ startResize: (day: import("../../utils/page").CalendarDay, isStart: boolean) => void;
37
+ updateResize: (offset: import("../../use/calendarGrid").ResizeOffset) => void;
38
+ stopResize: () => void;
39
+ startDrag: (day: import("../../utils/page").CalendarDay) => void;
40
+ updateDrag: (offset: import("../../use/calendarGrid").DragOffset) => void;
41
+ stopDrag: () => false | undefined;
42
+ compareTo: (b: Event) => number;
43
+ key: any;
44
+ summary: string;
45
+ description: string;
46
+ range: import("../../utils/date/range").DateRange;
47
+ allDay: boolean;
48
+ color: string;
49
+ fill: string;
50
+ selected: boolean;
51
+ draggable: boolean;
52
+ dragging: boolean;
53
+ resizable: boolean;
54
+ resizing: boolean;
55
+ editing: boolean;
56
+ order: number;
57
+ snapMinutes: number;
58
+ minDurationMinutes: number;
59
+ maxDurationMinutes: number;
60
+ popover: Partial<PopoverOptions> | null;
61
+ resizeOrigin: import("../../utils/calendar/event").ResizeOrigin | null;
62
+ dragOrigin: import("../../utils/calendar/event").DragOrigin | null;
63
+ } | null, {
64
+ refSelector: string;
65
+ isMultiDay: boolean;
66
+ isWeekly: boolean;
67
+ durationMs: number;
68
+ durationMinutes: number;
69
+ startDate: Date;
70
+ startDateTime: number;
71
+ startTimeLabel: string;
72
+ endDate: Date;
73
+ endDateTime: number;
74
+ endTimeLabel: string;
75
+ timeLabel: string;
76
+ isSolid: boolean;
77
+ dragIsDirty: boolean;
78
+ formatDate: (date: Date, mask: string) => string;
79
+ formatTime: (date: Date) => string;
80
+ resizeToConstraints: () => void;
81
+ startResize: (day: import("../../utils/page").CalendarDay, isStart: boolean) => void;
82
+ updateResize: (offset: import("../../use/calendarGrid").ResizeOffset) => void;
83
+ stopResize: () => void;
84
+ startDrag: (day: import("../../utils/page").CalendarDay) => void;
85
+ updateDrag: (offset: import("../../use/calendarGrid").DragOffset) => void;
86
+ stopDrag: () => false | undefined;
87
+ compareTo: (b: Event) => number;
88
+ key: any;
89
+ summary: string;
90
+ description: string;
91
+ range: import("../../utils/date/range").DateRange;
92
+ allDay: boolean;
93
+ color: string;
94
+ fill: string;
95
+ selected: boolean;
96
+ draggable: boolean;
97
+ dragging: boolean;
98
+ resizable: boolean;
99
+ resizing: boolean;
100
+ editing: boolean;
101
+ order: number;
102
+ snapMinutes: number;
103
+ minDurationMinutes: number;
104
+ maxDurationMinutes: number;
105
+ popover: Partial<PopoverOptions> | null;
106
+ resizeOrigin: import("../../utils/calendar/event").ResizeOrigin | null;
107
+ dragOrigin: import("../../utils/calendar/event").DragOrigin | null;
108
+ } | null>;
109
+ popoverRef: import("vue").Ref<null, null>;
110
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
111
+ popoverId: {
112
+ type: StringConstructor;
113
+ default: string;
114
+ };
115
+ }>> & Readonly<{}>, {
116
+ popoverId: string;
117
+ }, {}, {
118
+ Popover: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
119
+ id: {
120
+ type: (SymbolConstructor | StringConstructor | NumberConstructor)[];
121
+ required: true;
122
+ };
123
+ showDelay: {
124
+ type: NumberConstructor;
125
+ default: number;
126
+ };
127
+ hideDelay: {
128
+ type: NumberConstructor;
129
+ default: number;
130
+ };
131
+ boundarySelector: {
132
+ type: StringConstructor;
133
+ };
134
+ }>, {
135
+ popoverRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
136
+ alignment: import("vue").ComputedRef<"center" | "left" | "right" | "top" | "bottom" | "middle">;
137
+ hide: (opts?: Partial<PopoverOptions>) => void;
138
+ setupPopper: () => void;
139
+ beforeEnter: (el: Element) => void;
140
+ afterEnter: (el: Element) => void;
141
+ beforeLeave: (el: Element) => void;
142
+ afterLeave: (el: Element) => void;
143
+ onClick: (e: MouseEvent) => void;
144
+ onMouseOver: () => void;
145
+ onMouseLeave: () => void;
146
+ onFocusIn: () => void;
147
+ onFocusOut: (e: FocusEvent) => void;
148
+ isVisible: import("vue").Ref<boolean, boolean>;
149
+ target: import("vue").Ref<unknown, unknown>;
150
+ data: import("vue").Ref<any, any>;
151
+ transition: import("vue").Ref<string, string>;
152
+ placement: import("vue").Ref<import("@popperjs/core").Placement, import("@popperjs/core").Placement>;
153
+ direction: import("vue").Ref<string, string>;
154
+ positionFixed: import("vue").Ref<false, false>;
155
+ modifiers: import("vue").Ref<any[], any[]>;
156
+ isInteractive: import("vue").Ref<boolean, boolean>;
157
+ visibility: import("vue").Ref<import("../../utils/popovers").PopoverVisibility, import("../../utils/popovers").PopoverVisibility>;
158
+ isHovered: import("vue").Ref<boolean, boolean>;
159
+ isFocused: import("vue").Ref<boolean, boolean>;
160
+ autoHide: import("vue").Ref<boolean, boolean>;
161
+ force: import("vue").Ref<boolean, boolean>;
162
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("before-show" | "after-show" | "before-hide" | "after-hide")[], "before-show" | "after-show" | "before-hide" | "after-hide", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
163
+ id: {
164
+ type: (SymbolConstructor | StringConstructor | NumberConstructor)[];
165
+ required: true;
166
+ };
167
+ showDelay: {
168
+ type: NumberConstructor;
169
+ default: number;
170
+ };
171
+ hideDelay: {
172
+ type: NumberConstructor;
173
+ default: number;
174
+ };
175
+ boundarySelector: {
176
+ type: StringConstructor;
177
+ };
178
+ }>> & Readonly<{
179
+ "onBefore-show"?: ((...args: any[]) => any) | undefined;
180
+ "onAfter-show"?: ((...args: any[]) => any) | undefined;
181
+ "onBefore-hide"?: ((...args: any[]) => any) | undefined;
182
+ "onAfter-hide"?: ((...args: any[]) => any) | undefined;
183
+ }>, {
184
+ showDelay: number;
185
+ hideDelay: number;
186
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
187
+ CalendarEventEdit: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
188
+ event: {
189
+ type: import("vue").PropType<Event>;
190
+ required: true;
191
+ };
192
+ }>, {
193
+ onRemove(): void;
194
+ onToggleEditing(): void;
195
+ onSave(): void;
196
+ onCancel(): void;
197
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
198
+ event: {
199
+ type: import("vue").PropType<Event>;
200
+ required: true;
201
+ };
202
+ }>> & Readonly<{
203
+ onClose?: ((...args: any[]) => any) | undefined;
204
+ }>, {}, {}, {}, {
205
+ focus: {
206
+ mounted(el: any): void;
207
+ };
208
+ }, string, import("vue").ComponentProvideOptions, true, {}, any>;
209
+ }, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,8 @@
1
+ import { Event } from '../../utils/calendar/event';
2
+ import { DateRangeCell } from '../../utils/date/range';
3
+ type __VLS_Props = {
4
+ cell: DateRangeCell<Event>;
5
+ };
6
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
7
+ declare const _default: typeof __VLS_export;
8
+ export default _default;
@@ -0,0 +1,15 @@
1
+ import { type PropType } from 'vue';
2
+ import { Event } from '../../utils/calendar/event';
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ events: {
5
+ type: PropType<Event[]>;
6
+ required: true;
7
+ };
8
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
9
+ events: {
10
+ type: PropType<Event[]>;
11
+ required: true;
12
+ };
13
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -0,0 +1,26 @@
1
+ import { PropType } from 'vue';
2
+ import { Event } from '../../utils/calendar/event';
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ event: {
7
+ type: PropType<Event>;
8
+ required: true;
9
+ };
10
+ }>, {
11
+ onRemove(): void;
12
+ onToggleEditing(): void;
13
+ onSave(): void;
14
+ onCancel(): void;
15
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ event: {
17
+ type: PropType<Event>;
18
+ required: true;
19
+ };
20
+ }>> & Readonly<{
21
+ onClose?: ((...args: any[]) => any) | undefined;
22
+ }>, {}, {}, {}, {
23
+ focus: {
24
+ mounted(el: any): void;
25
+ };
26
+ }, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,134 @@
1
+ declare const _default: typeof __VLS_export;
2
+ export default _default;
3
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ events: {
5
+ type: import("vue").PropType<import("../../utils/calendar/event").EventConfig[]>;
6
+ default: () => never[];
7
+ };
8
+ view: {
9
+ type: import("vue").PropType<import("../../use/calendar.js").CalendarView>;
10
+ default: string;
11
+ validator(value: string): boolean;
12
+ };
13
+ rows: {
14
+ type: NumberConstructor;
15
+ default: number;
16
+ };
17
+ columns: {
18
+ type: NumberConstructor;
19
+ default: number;
20
+ };
21
+ step: NumberConstructor;
22
+ titlePosition: {
23
+ type: import("vue").PropType<import("../../utils/page.js").TitlePosition>;
24
+ default: () => import("../../utils/page.js").TitlePosition;
25
+ };
26
+ navVisibility: {
27
+ type: import("vue").PropType<import("../../utils/popovers.js").PopoverVisibility>;
28
+ default: () => import("../../utils/popovers.js").PopoverVisibility;
29
+ };
30
+ showWeeknumbers: (StringConstructor | BooleanConstructor)[];
31
+ showIsoWeeknumbers: (StringConstructor | BooleanConstructor)[];
32
+ expanded: BooleanConstructor;
33
+ borderless: BooleanConstructor;
34
+ transparent: BooleanConstructor;
35
+ initialPage: import("vue").PropType<import("../../utils/page.js").PageAddress>;
36
+ initialPagePosition: {
37
+ type: NumberConstructor;
38
+ default: number;
39
+ };
40
+ minPage: import("vue").PropType<import("../../utils/page.js").PageAddress>;
41
+ maxPage: import("vue").PropType<import("../../utils/page.js").PageAddress>;
42
+ transition: import("vue").PropType<import("../../use/calendar.js").MoveTransition>;
43
+ attributes: import("vue").PropType<Array<import("../../utils/attribute.js").AttributeConfig>>;
44
+ trimWeeks: BooleanConstructor;
45
+ disablePageSwipe: BooleanConstructor;
46
+ color: {
47
+ type: StringConstructor;
48
+ default: () => any;
49
+ };
50
+ isDark: {
51
+ type: import("vue").PropType<boolean | "system" | import("../../utils/useDisplayMode.js").DarkModeClassConfig>;
52
+ default: () => any;
53
+ };
54
+ firstDayOfWeek: import("vue").PropType<import("../../utils/date/helpers.js").DayOfWeek>;
55
+ masks: ObjectConstructor;
56
+ locale: import("vue").PropType<string | Record<string, any> | import("../../utils/locale.js").default>;
57
+ timezone: StringConstructor;
58
+ minDate: null;
59
+ maxDate: null;
60
+ disabledDates: null;
61
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
62
+ events: {
63
+ type: import("vue").PropType<import("../../utils/calendar/event").EventConfig[]>;
64
+ default: () => never[];
65
+ };
66
+ view: {
67
+ type: import("vue").PropType<import("../../use/calendar.js").CalendarView>;
68
+ default: string;
69
+ validator(value: string): boolean;
70
+ };
71
+ rows: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
75
+ columns: {
76
+ type: NumberConstructor;
77
+ default: number;
78
+ };
79
+ step: NumberConstructor;
80
+ titlePosition: {
81
+ type: import("vue").PropType<import("../../utils/page.js").TitlePosition>;
82
+ default: () => import("../../utils/page.js").TitlePosition;
83
+ };
84
+ navVisibility: {
85
+ type: import("vue").PropType<import("../../utils/popovers.js").PopoverVisibility>;
86
+ default: () => import("../../utils/popovers.js").PopoverVisibility;
87
+ };
88
+ showWeeknumbers: (StringConstructor | BooleanConstructor)[];
89
+ showIsoWeeknumbers: (StringConstructor | BooleanConstructor)[];
90
+ expanded: BooleanConstructor;
91
+ borderless: BooleanConstructor;
92
+ transparent: BooleanConstructor;
93
+ initialPage: import("vue").PropType<import("../../utils/page.js").PageAddress>;
94
+ initialPagePosition: {
95
+ type: NumberConstructor;
96
+ default: number;
97
+ };
98
+ minPage: import("vue").PropType<import("../../utils/page.js").PageAddress>;
99
+ maxPage: import("vue").PropType<import("../../utils/page.js").PageAddress>;
100
+ transition: import("vue").PropType<import("../../use/calendar.js").MoveTransition>;
101
+ attributes: import("vue").PropType<Array<import("../../utils/attribute.js").AttributeConfig>>;
102
+ trimWeeks: BooleanConstructor;
103
+ disablePageSwipe: BooleanConstructor;
104
+ color: {
105
+ type: StringConstructor;
106
+ default: () => any;
107
+ };
108
+ isDark: {
109
+ type: import("vue").PropType<boolean | "system" | import("../../utils/useDisplayMode.js").DarkModeClassConfig>;
110
+ default: () => any;
111
+ };
112
+ firstDayOfWeek: import("vue").PropType<import("../../utils/date/helpers.js").DayOfWeek>;
113
+ masks: ObjectConstructor;
114
+ locale: import("vue").PropType<string | Record<string, any> | import("../../utils/locale.js").default>;
115
+ timezone: StringConstructor;
116
+ minDate: null;
117
+ maxDate: null;
118
+ disabledDates: null;
119
+ }>> & Readonly<{}>, {
120
+ view: import("../../use/calendar.js").CalendarView;
121
+ trimWeeks: boolean;
122
+ titlePosition: import("../../utils/page.js").TitlePosition;
123
+ color: string;
124
+ isDark: boolean | import("../../utils/useDisplayMode.js").DarkModeClassConfig | "system";
125
+ navVisibility: import("../../utils/popovers.js").PopoverVisibility;
126
+ rows: number;
127
+ columns: number;
128
+ expanded: boolean;
129
+ borderless: boolean;
130
+ transparent: boolean;
131
+ initialPagePosition: number;
132
+ disablePageSwipe: boolean;
133
+ events: import("../../utils/calendar/event").EventConfig[];
134
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,8 @@
1
+ import { CalendarDay } from '../../utils/page';
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
4
+ declare const __VLS_export: import("vue").DefineComponent<{
5
+ days: CalendarDay[];
6
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
7
+ days: CalendarDay[];
8
+ }> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,10 @@
1
+ import { Event } from '../../utils/calendar/event';
2
+ import { DateRangeCell } from '../../utils/date/range';
3
+ type __VLS_Props = {
4
+ cell: DateRangeCell<Event>;
5
+ minDayIndex: number;
6
+ maxDayIndex: number;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,16 @@
1
+ type ConstraintType = 'MIN_DURATION' | 'MAX_DURATION' | 'BEFORE_DAY' | 'AFTER_DAY' | 'OUTSIDE_DAY';
2
+ type ConstraintRecovery = false | 'RESIZE';
3
+ interface ConstraintOptions {
4
+ durationMinutes?: number;
5
+ recover: ConstraintRecovery;
6
+ }
7
+ export interface Constraint {
8
+ type: ConstraintType;
9
+ options?: ConstraintOptions;
10
+ }
11
+ export declare class Constraints {
12
+ constraints: Constraint[];
13
+ constructor(constraints: Constraint[]);
14
+ validConstraint(constraint: Constraint): false | undefined;
15
+ }
16
+ export {};