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.
- package/LICENSE +9 -0
- package/README.md +142 -0
- package/dist/cjs/index.css +1133 -0
- package/dist/cjs/index.js +10699 -0
- package/dist/cjs/index.js.map +1 -0
- package/dist/cjs/package.json +1 -0
- package/dist/es/index.js +10678 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/style.css +1134 -0
- package/dist/iife/index.js +2 -0
- package/dist/iife/index.js.map +1 -0
- package/dist/mjs/index.mjs +10678 -0
- package/dist/mjs/index.mjs.map +1 -0
- package/dist/mjs/style.css +1134 -0
- package/dist/style.css +1134 -0
- package/dist/types/components/BaseIcon/BaseIcon.vue.d.ts +41 -0
- package/dist/types/components/BaseIcon/icons/IconChevronDown.vue.d.ts +3 -0
- package/dist/types/components/BaseIcon/icons/IconChevronLeft.vue.d.ts +3 -0
- package/dist/types/components/BaseIcon/icons/IconChevronRight.vue.d.ts +3 -0
- package/dist/types/components/BaseIcon/icons/IconClock.vue.d.ts +3 -0
- package/dist/types/components/BaseIcon/icons/index.d.ts +4 -0
- package/dist/types/components/BaseSelect/BaseSelect.vue.d.ts +26 -0
- package/dist/types/components/Calendar/Calendar.vue.d.ts +2526 -0
- package/dist/types/components/Calendar/CalendarDay.vue.d.ts +83 -0
- package/dist/types/components/Calendar/CalendarDayPopover.vue.d.ts +3 -0
- package/dist/types/components/Calendar/CalendarHeader.vue.d.ts +13 -0
- package/dist/types/components/Calendar/CalendarNav.vue.d.ts +4 -0
- package/dist/types/components/Calendar/CalendarNavPopover.vue.d.ts +3 -0
- package/dist/types/components/Calendar/CalendarPage.vue.d.ts +3 -0
- package/dist/types/components/Calendar/CalendarPageProvider.vue.d.ts +17 -0
- package/dist/types/components/Calendar/CalendarSlot.vue.d.ts +15 -0
- package/dist/types/components/Calendar/CalendarTitleSelect.vue.d.ts +15 -0
- package/dist/types/components/CalendarGrid/CalendarCell.vue.d.ts +9 -0
- package/dist/types/components/CalendarGrid/CalendarCellPopover.vue.d.ts +209 -0
- package/dist/types/components/CalendarGrid/CalendarDayCell.vue.d.ts +8 -0
- package/dist/types/components/CalendarGrid/CalendarEventDetails.vue.d.ts +15 -0
- package/dist/types/components/CalendarGrid/CalendarEventEdit.vue.d.ts +26 -0
- package/dist/types/components/CalendarGrid/CalendarGrid.vue.d.ts +134 -0
- package/dist/types/components/CalendarGrid/CalendarGridWeek.vue.d.ts +8 -0
- package/dist/types/components/CalendarGrid/CalendarViewSelect.vue.d.ts +3 -0
- package/dist/types/components/CalendarGrid/CalendarWeekCell.vue.d.ts +10 -0
- package/dist/types/components/CalendarGrid/Constraints.d.ts +16 -0
- package/dist/types/components/DatePicker/DatePicker.vue.d.ts +15251 -0
- package/dist/types/components/DatePicker/DatePickerBase.vue.d.ts +3 -0
- package/dist/types/components/DatePicker/DatePickerPopover.vue.d.ts +3 -0
- package/dist/types/components/DatePicker/TimePicker.vue.d.ts +10089 -0
- package/dist/types/components/Popover/Popover.vue.d.ts +72 -0
- package/dist/types/components/Popover/PopoverRow.vue.d.ts +17 -0
- package/dist/types/components/index.d.ts +4 -0
- package/dist/types/index.d.cts +40981 -0
- package/dist/types/index.d.mts +40981 -0
- package/dist/types/index.d.ts +40981 -0
- package/dist/types/use/base.d.ts +67 -0
- package/dist/types/use/calendar.d.ts +2422 -0
- package/dist/types/use/calendarGrid.d.ts +9370 -0
- package/dist/types/use/datePicker.d.ts +20210 -0
- package/dist/types/use/page.d.ts +20 -0
- package/dist/types/use/slots.d.ts +5 -0
- package/dist/types/use/timePicker.d.ts +10089 -0
- package/dist/types/utils/attribute.d.ts +49 -0
- package/dist/types/utils/cache.d.ts +10 -0
- package/dist/types/utils/calendar/event.d.ts +111 -0
- package/dist/types/utils/config/index.d.ts +5 -0
- package/dist/types/utils/date/helpers.d.ts +161 -0
- package/dist/types/utils/date/range.d.ts +74 -0
- package/dist/types/utils/date/repeat.d.ts +34 -0
- package/dist/types/utils/date/rules.d.ts +82 -0
- package/dist/types/utils/defaults/index.d.ts +30 -0
- package/dist/types/utils/defaults/locales.d.ts +9 -0
- package/dist/types/utils/glyph.d.ts +58 -0
- package/dist/types/utils/helpers.d.ts +49 -0
- package/dist/types/utils/locale.d.ts +48 -0
- package/dist/types/utils/page.d.ts +95 -0
- package/dist/types/utils/plugins/index.d.ts +4 -0
- package/dist/types/utils/popovers.d.ts +47 -0
- package/dist/types/utils/theme.d.ts +17 -0
- package/dist/types/utils/touch.d.ts +8 -0
- package/dist/types/utils/useDisplayMode.d.ts +12 -0
- package/dist/types/utils/watchers.d.ts +6 -0
- package/package.json +115 -0
- package/src/components/BaseIcon/BaseIcon.vue +29 -0
- package/src/components/BaseIcon/icons/IconChevronDown.vue +5 -0
- package/src/components/BaseIcon/icons/IconChevronLeft.vue +5 -0
- package/src/components/BaseIcon/icons/IconChevronRight.vue +5 -0
- package/src/components/BaseIcon/icons/IconClock.vue +11 -0
- package/src/components/BaseIcon/icons/index.ts +4 -0
- package/src/components/BaseSelect/BaseSelect.vue +136 -0
- package/src/components/Calendar/Calendar.vue +116 -0
- package/src/components/Calendar/CalendarDay.vue +422 -0
- package/src/components/Calendar/CalendarDayPopover.vue +44 -0
- package/src/components/Calendar/CalendarHeader.vue +203 -0
- package/src/components/Calendar/CalendarNav.vue +325 -0
- package/src/components/Calendar/CalendarNavPopover.vue +24 -0
- package/src/components/Calendar/CalendarPage.vue +140 -0
- package/src/components/Calendar/CalendarPageProvider.vue +15 -0
- package/src/components/Calendar/CalendarSlot.vue +36 -0
- package/src/components/Calendar/CalendarTitleSelect.vue +72 -0
- package/src/components/CalendarGrid/CalendarCell.vue +112 -0
- package/src/components/CalendarGrid/CalendarCellPopover.vue +93 -0
- package/src/components/CalendarGrid/CalendarDayCell.vue +57 -0
- package/src/components/CalendarGrid/CalendarEventDetails.vue +71 -0
- package/src/components/CalendarGrid/CalendarEventEdit.vue +195 -0
- package/src/components/CalendarGrid/CalendarGrid.vue +715 -0
- package/src/components/CalendarGrid/CalendarGridWeek.vue +60 -0
- package/src/components/CalendarGrid/CalendarViewSelect.vue +34 -0
- package/src/components/CalendarGrid/CalendarWeekCell.vue +52 -0
- package/src/components/CalendarGrid/Constraints.ts +40 -0
- package/src/components/DatePicker/DatePicker.vue +27 -0
- package/src/components/DatePicker/DatePickerBase.vue +53 -0
- package/src/components/DatePicker/DatePickerPopover.vue +37 -0
- package/src/components/DatePicker/TimePicker.vue +167 -0
- package/src/components/Popover/Popover.vue +572 -0
- package/src/components/Popover/PopoverRow.vue +94 -0
- package/src/components/index.ts +4 -0
- package/src/index.ts +24 -0
- package/src/styles/index.css +48 -0
- package/src/styles/theme.css +322 -0
- package/src/styles/transitions.css +77 -0
- package/src/use/base.ts +144 -0
- package/src/use/calendar.ts +796 -0
- package/src/use/calendarGrid.ts +954 -0
- package/src/use/datePicker.ts +909 -0
- package/src/use/page.ts +78 -0
- package/src/use/slots.ts +17 -0
- package/src/use/timePicker.ts +194 -0
- package/src/utils/attribute.ts +107 -0
- package/src/utils/cache.ts +30 -0
- package/src/utils/calendar/event.ts +335 -0
- package/src/utils/config/index.ts +11 -0
- package/src/utils/date/helpers.ts +1039 -0
- package/src/utils/date/range.ts +274 -0
- package/src/utils/date/repeat.ts +135 -0
- package/src/utils/date/rules.ts +290 -0
- package/src/utils/defaults/index.ts +77 -0
- package/src/utils/defaults/locales.ts +123 -0
- package/src/utils/defaults/masks.json +15 -0
- package/src/utils/defaults/touch.json +5 -0
- package/src/utils/glyph.ts +305 -0
- package/src/utils/helpers.ts +181 -0
- package/src/utils/locale.ts +275 -0
- package/src/utils/page.ts +608 -0
- package/src/utils/plugins/index.ts +24 -0
- package/src/utils/popovers.ts +216 -0
- package/src/utils/theme.ts +58 -0
- package/src/utils/touch.ts +72 -0
- package/src/utils/useDisplayMode.ts +198 -0
- package/src/utils/watchers.ts +26 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { type ExtractPropTypes, type PropType } from 'vue';
|
|
2
|
+
import { Attribute } from '../utils/attribute';
|
|
3
|
+
import { type DayOfWeek } from '../utils/date/helpers';
|
|
4
|
+
import { default as Locale } from '../utils/locale';
|
|
5
|
+
import { Theme } from '../utils/theme';
|
|
6
|
+
import { type DarkModeClassConfig } from '../utils/useDisplayMode';
|
|
7
|
+
export declare const propsDef: {
|
|
8
|
+
color: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: () => any;
|
|
11
|
+
};
|
|
12
|
+
isDark: {
|
|
13
|
+
type: PropType<boolean | "system" | DarkModeClassConfig>;
|
|
14
|
+
default: () => any;
|
|
15
|
+
};
|
|
16
|
+
firstDayOfWeek: PropType<DayOfWeek>;
|
|
17
|
+
masks: ObjectConstructor;
|
|
18
|
+
locale: PropType<string | Record<string, any> | Locale>;
|
|
19
|
+
timezone: StringConstructor;
|
|
20
|
+
minDate: null;
|
|
21
|
+
maxDate: null;
|
|
22
|
+
disabledDates: null;
|
|
23
|
+
};
|
|
24
|
+
export type BaseProps = Readonly<ExtractPropTypes<typeof propsDef>>;
|
|
25
|
+
export type BaseContext = ReturnType<typeof createBase>;
|
|
26
|
+
export declare function createBase(props: BaseProps): {
|
|
27
|
+
color: import("vue").ComputedRef<string>;
|
|
28
|
+
isDark: import("vue").ComputedRef<boolean | DarkModeClassConfig | "system">;
|
|
29
|
+
displayMode: import("vue").ComputedRef<"dark" | "light">;
|
|
30
|
+
theme: import("vue").ComputedRef<Theme>;
|
|
31
|
+
locale: import("vue").ComputedRef<Locale>;
|
|
32
|
+
masks: import("vue").ComputedRef<any>;
|
|
33
|
+
minDate: import("vue").ComputedRef<any>;
|
|
34
|
+
maxDate: import("vue").ComputedRef<any>;
|
|
35
|
+
normalizedMinDate: import("vue").ComputedRef<Date | null>;
|
|
36
|
+
normalizedMaxDate: import("vue").ComputedRef<Date | null>;
|
|
37
|
+
disabledDates: import("vue").ComputedRef<import("../utils/date/range").DateRange[]>;
|
|
38
|
+
disabledAttribute: import("vue").ComputedRef<Attribute>;
|
|
39
|
+
};
|
|
40
|
+
export declare function useBase(): {
|
|
41
|
+
color: import("vue").ComputedRef<string>;
|
|
42
|
+
isDark: import("vue").ComputedRef<boolean | DarkModeClassConfig | "system">;
|
|
43
|
+
displayMode: import("vue").ComputedRef<"dark" | "light">;
|
|
44
|
+
theme: import("vue").ComputedRef<Theme>;
|
|
45
|
+
locale: import("vue").ComputedRef<Locale>;
|
|
46
|
+
masks: import("vue").ComputedRef<any>;
|
|
47
|
+
minDate: import("vue").ComputedRef<any>;
|
|
48
|
+
maxDate: import("vue").ComputedRef<any>;
|
|
49
|
+
normalizedMinDate: import("vue").ComputedRef<Date | null>;
|
|
50
|
+
normalizedMaxDate: import("vue").ComputedRef<Date | null>;
|
|
51
|
+
disabledDates: import("vue").ComputedRef<import("../utils/date/range").DateRange[]>;
|
|
52
|
+
disabledAttribute: import("vue").ComputedRef<Attribute>;
|
|
53
|
+
};
|
|
54
|
+
export declare function useOrCreateBase(props: BaseProps): {
|
|
55
|
+
color: import("vue").ComputedRef<string>;
|
|
56
|
+
isDark: import("vue").ComputedRef<boolean | DarkModeClassConfig | "system">;
|
|
57
|
+
displayMode: import("vue").ComputedRef<"dark" | "light">;
|
|
58
|
+
theme: import("vue").ComputedRef<Theme>;
|
|
59
|
+
locale: import("vue").ComputedRef<Locale>;
|
|
60
|
+
masks: import("vue").ComputedRef<any>;
|
|
61
|
+
minDate: import("vue").ComputedRef<any>;
|
|
62
|
+
maxDate: import("vue").ComputedRef<any>;
|
|
63
|
+
normalizedMinDate: import("vue").ComputedRef<Date | null>;
|
|
64
|
+
normalizedMaxDate: import("vue").ComputedRef<Date | null>;
|
|
65
|
+
disabledDates: import("vue").ComputedRef<import("../utils/date/range").DateRange[]>;
|
|
66
|
+
disabledAttribute: import("vue").ComputedRef<Attribute>;
|
|
67
|
+
};
|