@vuetify/nightly 3.8.10-dev.2025-06-18 → 3.8.10-master.2025-06-18
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/CHANGELOG.md +3 -54
- package/dist/json/attributes.json +1259 -1655
- package/dist/json/importMap-labs.json +22 -26
- package/dist/json/importMap.json +160 -160
- package/dist/json/tags.json +2 -106
- package/dist/json/web-types.json +2705 -4334
- package/dist/vuetify-labs.cjs +180 -750
- package/dist/vuetify-labs.css +4655 -4700
- package/dist/vuetify-labs.d.ts +3083 -10404
- package/dist/vuetify-labs.esm.js +181 -751
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +180 -750
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +166 -478
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +3324 -3369
- package/dist/vuetify.d.ts +2088 -2790
- package/dist/vuetify.esm.js +167 -479
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +166 -478
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +1232 -1254
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +1 -6
- package/lib/components/VAlert/VAlert.d.ts +0 -35
- package/lib/components/VAlert/VAlert.js +10 -15
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VAlert/VAlert.sass +1 -7
- package/lib/components/VAppBar/VAppBar.d.ts +3 -15
- package/lib/components/VAppBar/VAppBarNavIcon.d.ts +10 -20
- package/lib/components/VAutocomplete/VAutocomplete.d.ts +110 -175
- package/lib/components/VAutocomplete/VAutocomplete.js +3 -21
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VBadge/VBadge.d.ts +0 -60
- package/lib/components/VBadge/VBadge.js +2 -7
- package/lib/components/VBadge/VBadge.js.map +1 -1
- package/lib/components/VBtn/VBtn.d.ts +10 -20
- package/lib/components/VBtnGroup/VBtnGroup.css +7 -30
- package/lib/components/VBtnGroup/VBtnGroup.d.ts +32 -58
- package/lib/components/VBtnGroup/VBtnGroup.js +3 -7
- package/lib/components/VBtnGroup/VBtnGroup.js.map +1 -1
- package/lib/components/VBtnGroup/VBtnGroup.sass +17 -44
- package/lib/components/VBtnToggle/VBtnToggle.d.ts +0 -25
- package/lib/components/VCard/VCard.d.ts +10 -20
- package/lib/components/VCheckbox/VCheckbox.d.ts +13 -23
- package/lib/components/VCheckbox/VCheckboxBtn.d.ts +10 -20
- package/lib/components/VChip/VChip.d.ts +10 -20
- package/lib/components/VChipGroup/VChipGroup.d.ts +0 -10
- package/lib/components/VCombobox/VCombobox.d.ts +110 -175
- package/lib/components/VCombobox/VCombobox.js +3 -22
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.d.ts +0 -60
- package/lib/components/VDataTable/VDataTableHeaders.d.ts +0 -13
- package/lib/components/VDataTable/VDataTableHeaders.js +2 -4
- package/lib/components/VDataTable/VDataTableHeaders.js.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.d.ts +0 -42
- package/lib/components/VDataTable/VDataTableVirtual.d.ts +0 -42
- package/lib/components/VDatePicker/VDatePicker.d.ts +5 -80
- package/lib/components/VDatePicker/VDatePicker.js +4 -10
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.d.ts +0 -10
- package/lib/components/VDatePicker/VDatePickerMonth.js +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.d.ts +10 -20
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.d.ts +10 -20
- package/lib/components/VExpansionPanel/VExpansionPanels.d.ts +10 -20
- package/lib/components/VFab/VFab.d.ts +10 -20
- package/lib/components/VField/VField.d.ts +3 -3
- package/lib/components/VFileInput/VFileInput.d.ts +15 -15
- package/lib/components/VInfiniteScroll/VInfiniteScroll.d.ts +3 -9
- package/lib/components/VInfiniteScroll/VInfiniteScroll.js +0 -29
- package/lib/components/VInfiniteScroll/VInfiniteScroll.js.map +1 -1
- package/lib/components/VInput/VInput.d.ts +4 -4
- package/lib/components/VKbd/VKbd.css +2 -13
- package/lib/components/VKbd/VKbd.sass +1 -2
- package/lib/components/VKbd/_variables.scss +1 -12
- package/lib/components/VKbd/index.d.ts +95 -1
- package/lib/components/VKbd/index.js +4 -1
- package/lib/components/VKbd/index.js.map +1 -1
- package/lib/components/VList/VList.d.ts +0 -13
- package/lib/components/VList/VList.js +1 -4
- package/lib/components/VList/VList.js.map +1 -1
- package/lib/components/VList/VListChildren.js.map +1 -1
- package/lib/components/VList/VListItem.d.ts +10 -28
- package/lib/components/VList/VListItem.js +3 -7
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/list.d.ts +2 -9
- package/lib/components/VList/list.js +0 -7
- package/lib/components/VList/list.js.map +1 -1
- package/lib/components/VMenu/VMenu.d.ts +0 -13
- package/lib/components/VMenu/VMenu.js +1 -2
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VNumberInput/VNumberInput.d.ts +89 -114
- package/lib/components/VNumberInput/VNumberInput.js +20 -43
- package/lib/components/VNumberInput/VNumberInput.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +1 -2
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.css +1 -1
- package/lib/components/VOverlay/_variables.scss +1 -1
- package/lib/components/VRadio/VRadio.d.ts +10 -20
- package/lib/components/VRadioGroup/VRadioGroup.d.ts +13 -23
- package/lib/components/VRangeSlider/VRangeSlider.d.ts +3 -3
- package/lib/components/VSelect/VSelect.d.ts +118 -204
- package/lib/components/VSelect/VSelect.js +3 -21
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.d.ts +10 -20
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.d.ts +14 -28
- package/lib/components/VSlideGroup/VSlideGroup.d.ts +0 -10
- package/lib/components/VSlideGroup/VSlideGroup.js +1 -2
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VSlider/VSlider.d.ts +3 -3
- package/lib/components/VSlider/VSliderThumb.d.ts +10 -20
- package/lib/components/VSpeedDial/VSpeedDial.d.ts +0 -13
- package/lib/components/VStepper/VStepperItem.d.ts +14 -28
- package/lib/components/VSwitch/VSwitch.d.ts +13 -23
- package/lib/components/VTable/VTable.css +0 -6
- package/lib/components/VTable/VTable.d.ts +24 -55
- package/lib/components/VTable/VTable.js +2 -9
- package/lib/components/VTable/VTable.js.map +1 -1
- package/lib/components/VTable/VTable.sass +0 -14
- package/lib/components/VTable/_variables.scss +0 -1
- package/lib/components/VTabs/VTab.d.ts +28 -56
- package/lib/components/VTabs/VTabs.d.ts +0 -10
- package/lib/components/VTextField/VTextField.d.ts +27 -27
- package/lib/components/VTextarea/VTextarea.d.ts +15 -15
- package/lib/components/VToolbar/VToolbar.d.ts +3 -15
- package/lib/components/VToolbar/VToolbar.js +3 -6
- package/lib/components/VToolbar/VToolbar.js.map +1 -1
- package/lib/composables/calendar.d.ts +0 -5
- package/lib/composables/calendar.js +1 -2
- package/lib/composables/calendar.js.map +1 -1
- package/lib/composables/date/DateAdapter.d.ts +3 -3
- package/lib/composables/date/DateAdapter.js.map +1 -1
- package/lib/composables/date/adapters/vuetify.d.ts +1 -1
- package/lib/composables/date/adapters/vuetify.js +4 -4
- package/lib/composables/date/adapters/vuetify.js.map +1 -1
- package/lib/composables/date/date.d.ts +3 -3
- package/lib/composables/date/index.d.ts +0 -1
- package/lib/composables/date/index.js +0 -1
- package/lib/composables/date/index.js.map +1 -1
- package/lib/composables/filter.js +0 -3
- package/lib/composables/filter.js.map +1 -1
- package/lib/composables/locale.d.ts +1 -5
- package/lib/composables/locale.js.map +1 -1
- package/lib/composables/theme.d.ts +1 -6
- package/lib/composables/theme.js +29 -97
- package/lib/composables/theme.js.map +1 -1
- package/lib/composables/virtual.js +1 -6
- package/lib/composables/virtual.js.map +1 -1
- package/lib/directives/ripple/index.d.ts +1 -2
- package/lib/directives/ripple/index.js +7 -12
- package/lib/directives/ripple/index.js.map +1 -1
- package/lib/entry-bundler.d.ts +3 -4
- package/lib/entry-bundler.js +1 -1
- package/lib/entry-bundler.js.map +1 -1
- package/lib/framework.d.ts +67 -86
- package/lib/framework.js +1 -1
- package/lib/framework.js.map +1 -1
- package/lib/labs/VCalendar/VCalendar.d.ts +0 -10
- package/lib/labs/VColorInput/VColorInput.d.ts +3 -3
- package/lib/labs/VDateInput/VDateInput.d.ts +87 -97
- package/lib/labs/VFileUpload/VFileUpload.d.ts +3 -3
- package/lib/labs/VFileUpload/VFileUploadItem.d.ts +10 -20
- package/lib/labs/VIconBtn/VIconBtn.d.ts +29 -29
- package/lib/labs/VIconBtn/VIconBtn.js +11 -7
- package/lib/labs/VIconBtn/VIconBtn.js.map +1 -1
- package/lib/labs/VStepperVertical/VStepperVertical.d.ts +10 -20
- package/lib/labs/VStepperVertical/VStepperVerticalItem.d.ts +10 -20
- package/lib/labs/VTreeview/VTreeview.d.ts +38 -51
- package/lib/labs/VTreeview/VTreeview.js +1 -1
- package/lib/labs/VTreeview/VTreeview.js.map +1 -1
- package/lib/labs/VTreeview/VTreeviewChildren.d.ts +0 -35
- package/lib/labs/VTreeview/VTreeviewChildren.js +2 -19
- package/lib/labs/VTreeview/VTreeviewChildren.js.map +1 -1
- package/lib/labs/VTreeview/VTreeviewItem.d.ts +10 -20
- package/lib/labs/components.d.ts +0 -1
- package/lib/labs/components.js +0 -1
- package/lib/labs/components.js.map +1 -1
- package/lib/labs/entry-bundler.d.ts +3 -4
- package/lib/locale/adapters/vue-i18n.js +1 -6
- package/lib/locale/adapters/vue-i18n.js.map +1 -1
- package/lib/locale/adapters/vuetify.js +1 -7
- package/lib/locale/adapters/vuetify.js.map +1 -1
- package/lib/util/globals.d.ts +0 -1
- package/lib/util/globals.js +0 -1
- package/lib/util/globals.js.map +1 -1
- package/lib/util/helpers.d.ts +1 -2
- package/lib/util/helpers.js +7 -12
- package/lib/util/helpers.js.map +1 -1
- package/package.json +1 -3
- package/lib/components/VKbd/VKbd.d.ts +0 -221
- package/lib/components/VKbd/VKbd.js +0 -55
- package/lib/components/VKbd/VKbd.js.map +0 -1
- package/lib/composables/date/adapters/string.d.ts +0 -54
- package/lib/composables/date/adapters/string.js +0 -153
- package/lib/composables/date/adapters/string.js.map +0 -1
- package/lib/composables/iconSizes.d.ts +0 -28
- package/lib/composables/iconSizes.js +0 -23
- package/lib/composables/iconSizes.js.map +0 -1
- package/lib/composables/mask.d.ts +0 -38
- package/lib/composables/mask.js +0 -183
- package/lib/composables/mask.js.map +0 -1
- package/lib/labs/VMaskInput/VMaskInput.d.ts +0 -6993
- package/lib/labs/VMaskInput/VMaskInput.js +0 -67
- package/lib/labs/VMaskInput/VMaskInput.js.map +0 -1
- package/lib/labs/VMaskInput/index.d.ts +0 -1
- package/lib/labs/VMaskInput/index.js +0 -2
- package/lib/labs/VMaskInput/index.js.map +0 -1
@@ -1,221 +0,0 @@
|
|
1
|
-
export declare const makeVKbdProps: <Defaults extends {
|
2
|
-
color?: unknown;
|
3
|
-
elevation?: unknown;
|
4
|
-
theme?: unknown;
|
5
|
-
tag?: unknown;
|
6
|
-
rounded?: unknown;
|
7
|
-
tile?: unknown;
|
8
|
-
class?: unknown;
|
9
|
-
style?: unknown;
|
10
|
-
border?: unknown;
|
11
|
-
} = {}>(defaults?: Defaults | undefined) => {
|
12
|
-
color: unknown extends Defaults["color"] ? StringConstructor : {
|
13
|
-
type: import("vue").PropType<unknown extends Defaults["color"] ? string : string | Defaults["color"]>;
|
14
|
-
default: unknown extends Defaults["color"] ? string : string | Defaults["color"];
|
15
|
-
};
|
16
|
-
elevation: unknown extends Defaults["elevation"] ? {
|
17
|
-
type: (StringConstructor | NumberConstructor)[];
|
18
|
-
validator(v: any): boolean;
|
19
|
-
} : Omit<{
|
20
|
-
type: (StringConstructor | NumberConstructor)[];
|
21
|
-
validator(v: any): boolean;
|
22
|
-
}, "type" | "default"> & {
|
23
|
-
type: import("vue").PropType<unknown extends Defaults["elevation"] ? string | number : string | number | Defaults["elevation"]>;
|
24
|
-
default: unknown extends Defaults["elevation"] ? string | number : NonNullable<string | number> | Defaults["elevation"];
|
25
|
-
};
|
26
|
-
theme: unknown extends Defaults["theme"] ? StringConstructor : {
|
27
|
-
type: import("vue").PropType<unknown extends Defaults["theme"] ? string : string | Defaults["theme"]>;
|
28
|
-
default: unknown extends Defaults["theme"] ? string : string | Defaults["theme"];
|
29
|
-
};
|
30
|
-
tag: unknown extends Defaults["tag"] ? Omit<{
|
31
|
-
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
32
|
-
default: string;
|
33
|
-
}, "type" | "default"> & {
|
34
|
-
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
35
|
-
default: NonNullable<string | import("../../util/index.js").JSXComponent>;
|
36
|
-
} : Omit<Omit<{
|
37
|
-
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
38
|
-
default: string;
|
39
|
-
}, "type" | "default"> & {
|
40
|
-
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
41
|
-
default: NonNullable<string | import("../../util/index.js").JSXComponent>;
|
42
|
-
}, "type" | "default"> & {
|
43
|
-
type: import("vue").PropType<unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : string | import("../../util/index.js").JSXComponent | Defaults["tag"]>;
|
44
|
-
default: unknown extends Defaults["tag"] ? string | import("../../util/index.js").JSXComponent : NonNullable<string | import("../../util/index.js").JSXComponent> | Defaults["tag"];
|
45
|
-
};
|
46
|
-
rounded: unknown extends Defaults["rounded"] ? {
|
47
|
-
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
48
|
-
default: undefined;
|
49
|
-
} : Omit<{
|
50
|
-
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
51
|
-
default: undefined;
|
52
|
-
}, "type" | "default"> & {
|
53
|
-
type: import("vue").PropType<unknown extends Defaults["rounded"] ? string | number | boolean : string | number | boolean | Defaults["rounded"]>;
|
54
|
-
default: unknown extends Defaults["rounded"] ? string | number | boolean : NonNullable<string | number | boolean> | Defaults["rounded"];
|
55
|
-
};
|
56
|
-
tile: unknown extends Defaults["tile"] ? BooleanConstructor : {
|
57
|
-
type: import("vue").PropType<unknown extends Defaults["tile"] ? boolean : boolean | Defaults["tile"]>;
|
58
|
-
default: unknown extends Defaults["tile"] ? boolean : boolean | Defaults["tile"];
|
59
|
-
};
|
60
|
-
class: unknown extends Defaults["class"] ? import("vue").PropType<any> : {
|
61
|
-
type: import("vue").PropType<unknown extends Defaults["class"] ? any : any>;
|
62
|
-
default: unknown extends Defaults["class"] ? any : any;
|
63
|
-
};
|
64
|
-
style: unknown extends Defaults["style"] ? {
|
65
|
-
type: import("vue").PropType<import("vue").StyleValue>;
|
66
|
-
default: null;
|
67
|
-
} : Omit<{
|
68
|
-
type: import("vue").PropType<import("vue").StyleValue>;
|
69
|
-
default: null;
|
70
|
-
}, "type" | "default"> & {
|
71
|
-
type: import("vue").PropType<unknown extends Defaults["style"] ? import("vue").StyleValue : import("vue").StyleValue | Defaults["style"]>;
|
72
|
-
default: unknown extends Defaults["style"] ? import("vue").StyleValue : NonNullable<import("vue").StyleValue> | Defaults["style"];
|
73
|
-
};
|
74
|
-
border: unknown extends Defaults["border"] ? (StringConstructor | BooleanConstructor | NumberConstructor)[] : {
|
75
|
-
type: import("vue").PropType<unknown extends Defaults["border"] ? string | number | boolean : string | number | boolean | Defaults["border"]>;
|
76
|
-
default: unknown extends Defaults["border"] ? string | number | boolean : NonNullable<string | number | boolean> | Defaults["border"];
|
77
|
-
};
|
78
|
-
};
|
79
|
-
export declare const VKbd: {
|
80
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<{
|
81
|
-
style: import("vue").StyleValue;
|
82
|
-
tag: string | import("../../util/index.js").JSXComponent;
|
83
|
-
tile: boolean;
|
84
|
-
} & {
|
85
|
-
border?: string | number | boolean | undefined;
|
86
|
-
color?: string | undefined;
|
87
|
-
class?: any;
|
88
|
-
theme?: string | undefined;
|
89
|
-
elevation?: string | number | undefined;
|
90
|
-
rounded?: string | number | boolean | undefined;
|
91
|
-
} & {
|
92
|
-
$children?: import("vue").VNodeChild | {
|
93
|
-
default?: (() => import("vue").VNodeChild) | undefined;
|
94
|
-
} | (() => import("vue").VNodeChild);
|
95
|
-
'v-slots'?: {
|
96
|
-
default?: false | (() => import("vue").VNodeChild) | undefined;
|
97
|
-
} | undefined;
|
98
|
-
} & {
|
99
|
-
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
|
100
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, {
|
101
|
-
style: import("vue").StyleValue;
|
102
|
-
tag: string | import("../../util/index.js").JSXComponent;
|
103
|
-
rounded: string | number | boolean;
|
104
|
-
tile: boolean;
|
105
|
-
}, true, {}, import("vue").SlotsType<Partial<{
|
106
|
-
default: () => import("vue").VNode[];
|
107
|
-
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
108
|
-
P: {};
|
109
|
-
B: {};
|
110
|
-
D: {};
|
111
|
-
C: {};
|
112
|
-
M: {};
|
113
|
-
Defaults: {};
|
114
|
-
}, {
|
115
|
-
style: import("vue").StyleValue;
|
116
|
-
tag: string | import("../../util/index.js").JSXComponent;
|
117
|
-
tile: boolean;
|
118
|
-
} & {
|
119
|
-
border?: string | number | boolean | undefined;
|
120
|
-
color?: string | undefined;
|
121
|
-
class?: any;
|
122
|
-
theme?: string | undefined;
|
123
|
-
elevation?: string | number | undefined;
|
124
|
-
rounded?: string | number | boolean | undefined;
|
125
|
-
} & {
|
126
|
-
$children?: import("vue").VNodeChild | {
|
127
|
-
default?: (() => import("vue").VNodeChild) | undefined;
|
128
|
-
} | (() => import("vue").VNodeChild);
|
129
|
-
'v-slots'?: {
|
130
|
-
default?: false | (() => import("vue").VNodeChild) | undefined;
|
131
|
-
} | undefined;
|
132
|
-
} & {
|
133
|
-
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
|
134
|
-
}, {}, {}, {}, {}, {
|
135
|
-
style: import("vue").StyleValue;
|
136
|
-
tag: string | import("../../util/index.js").JSXComponent;
|
137
|
-
rounded: string | number | boolean;
|
138
|
-
tile: boolean;
|
139
|
-
}>;
|
140
|
-
__isFragment?: never;
|
141
|
-
__isTeleport?: never;
|
142
|
-
__isSuspense?: never;
|
143
|
-
} & import("vue").ComponentOptionsBase<{
|
144
|
-
style: import("vue").StyleValue;
|
145
|
-
tag: string | import("../../util/index.js").JSXComponent;
|
146
|
-
tile: boolean;
|
147
|
-
} & {
|
148
|
-
border?: string | number | boolean | undefined;
|
149
|
-
color?: string | undefined;
|
150
|
-
class?: any;
|
151
|
-
theme?: string | undefined;
|
152
|
-
elevation?: string | number | undefined;
|
153
|
-
rounded?: string | number | boolean | undefined;
|
154
|
-
} & {
|
155
|
-
$children?: import("vue").VNodeChild | {
|
156
|
-
default?: (() => import("vue").VNodeChild) | undefined;
|
157
|
-
} | (() => import("vue").VNodeChild);
|
158
|
-
'v-slots'?: {
|
159
|
-
default?: false | (() => import("vue").VNodeChild) | undefined;
|
160
|
-
} | undefined;
|
161
|
-
} & {
|
162
|
-
"v-slot:default"?: false | (() => import("vue").VNodeChild) | undefined;
|
163
|
-
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
164
|
-
style: import("vue").StyleValue;
|
165
|
-
tag: string | import("../../util/index.js").JSXComponent;
|
166
|
-
rounded: string | number | boolean;
|
167
|
-
tile: boolean;
|
168
|
-
}, {}, string, import("vue").SlotsType<Partial<{
|
169
|
-
default: () => import("vue").VNode[];
|
170
|
-
}>>, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("../../util/index.js").FilterPropsOptions<{
|
171
|
-
color: StringConstructor;
|
172
|
-
elevation: {
|
173
|
-
type: (StringConstructor | NumberConstructor)[];
|
174
|
-
validator(v: any): boolean;
|
175
|
-
};
|
176
|
-
theme: StringConstructor;
|
177
|
-
tag: Omit<{
|
178
|
-
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
179
|
-
default: string;
|
180
|
-
}, "type" | "default"> & {
|
181
|
-
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
182
|
-
default: NonNullable<string | import("../../util/index.js").JSXComponent>;
|
183
|
-
};
|
184
|
-
rounded: {
|
185
|
-
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
186
|
-
default: undefined;
|
187
|
-
};
|
188
|
-
tile: BooleanConstructor;
|
189
|
-
class: import("vue").PropType<import("../../composables/component.js").ClassValue>;
|
190
|
-
style: {
|
191
|
-
type: import("vue").PropType<import("vue").StyleValue>;
|
192
|
-
default: null;
|
193
|
-
};
|
194
|
-
border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
195
|
-
}, import("vue").ExtractPropTypes<{
|
196
|
-
color: StringConstructor;
|
197
|
-
elevation: {
|
198
|
-
type: (StringConstructor | NumberConstructor)[];
|
199
|
-
validator(v: any): boolean;
|
200
|
-
};
|
201
|
-
theme: StringConstructor;
|
202
|
-
tag: Omit<{
|
203
|
-
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
204
|
-
default: string;
|
205
|
-
}, "type" | "default"> & {
|
206
|
-
type: import("vue").PropType<string | import("../../util/index.js").JSXComponent>;
|
207
|
-
default: NonNullable<string | import("../../util/index.js").JSXComponent>;
|
208
|
-
};
|
209
|
-
rounded: {
|
210
|
-
type: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
211
|
-
default: undefined;
|
212
|
-
};
|
213
|
-
tile: BooleanConstructor;
|
214
|
-
class: import("vue").PropType<import("../../composables/component.js").ClassValue>;
|
215
|
-
style: {
|
216
|
-
type: import("vue").PropType<import("vue").StyleValue>;
|
217
|
-
default: null;
|
218
|
-
};
|
219
|
-
border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
220
|
-
}>>;
|
221
|
-
export type VKbd = InstanceType<typeof VKbd>;
|
@@ -1,55 +0,0 @@
|
|
1
|
-
import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createVNode as _createVNode } from "vue";
|
2
|
-
// Styles
|
3
|
-
import "./VKbd.css";
|
4
|
-
|
5
|
-
// Composables
|
6
|
-
import { makeBorderProps, useBorder } from "../../composables/border.js";
|
7
|
-
import { useBackgroundColor } from "../../composables/color.js";
|
8
|
-
import { makeComponentProps } from "../../composables/component.js";
|
9
|
-
import { makeElevationProps, useElevation } from "../../composables/elevation.js";
|
10
|
-
import { makeRoundedProps, useRounded } from "../../composables/rounded.js";
|
11
|
-
import { makeTagProps } from "../../composables/tag.js";
|
12
|
-
import { makeThemeProps, provideTheme } from "../../composables/theme.js"; // Utilities
|
13
|
-
import { genericComponent, propsFactory, useRender } from "../../util/index.js";
|
14
|
-
export const makeVKbdProps = propsFactory({
|
15
|
-
...makeBorderProps(),
|
16
|
-
...makeComponentProps(),
|
17
|
-
...makeRoundedProps(),
|
18
|
-
...makeTagProps({
|
19
|
-
tag: 'kbd'
|
20
|
-
}),
|
21
|
-
...makeThemeProps(),
|
22
|
-
...makeElevationProps(),
|
23
|
-
color: String
|
24
|
-
}, 'VKbd');
|
25
|
-
export const VKbd = genericComponent()({
|
26
|
-
name: 'VKbd',
|
27
|
-
props: makeVKbdProps(),
|
28
|
-
setup(props, _ref) {
|
29
|
-
let {
|
30
|
-
slots
|
31
|
-
} = _ref;
|
32
|
-
const {
|
33
|
-
themeClasses
|
34
|
-
} = provideTheme(props);
|
35
|
-
const {
|
36
|
-
borderClasses
|
37
|
-
} = useBorder(props);
|
38
|
-
const {
|
39
|
-
roundedClasses
|
40
|
-
} = useRounded(props);
|
41
|
-
const {
|
42
|
-
backgroundColorClasses,
|
43
|
-
backgroundColorStyles
|
44
|
-
} = useBackgroundColor(() => props.color);
|
45
|
-
const {
|
46
|
-
elevationClasses
|
47
|
-
} = useElevation(props);
|
48
|
-
useRender(() => _createVNode(props.tag, {
|
49
|
-
"class": _normalizeClass(['v-kbd', themeClasses.value, backgroundColorClasses.value, borderClasses.value, elevationClasses.value, roundedClasses.value, props.class]),
|
50
|
-
"style": _normalizeStyle([backgroundColorStyles.value, props.style])
|
51
|
-
}, slots));
|
52
|
-
return {};
|
53
|
-
}
|
54
|
-
});
|
55
|
-
//# sourceMappingURL=VKbd.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"VKbd.js","names":["makeBorderProps","useBorder","useBackgroundColor","makeComponentProps","makeElevationProps","useElevation","makeRoundedProps","useRounded","makeTagProps","makeThemeProps","provideTheme","genericComponent","propsFactory","useRender","makeVKbdProps","tag","color","String","VKbd","name","props","setup","_ref","slots","themeClasses","borderClasses","roundedClasses","backgroundColorClasses","backgroundColorStyles","elevationClasses","_createVNode","_normalizeClass","value","class","_normalizeStyle","style"],"sources":["../../../src/components/VKbd/VKbd.tsx"],"sourcesContent":["// Styles\nimport './VKbd.sass'\n\n// Composables\nimport { makeBorderProps, useBorder } from '@/composables/border'\nimport { useBackgroundColor } from '@/composables/color'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeElevationProps, useElevation } from '@/composables/elevation'\nimport { makeRoundedProps, useRounded } from '@/composables/rounded'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\nexport const makeVKbdProps = propsFactory({\n ...makeBorderProps(),\n ...makeComponentProps(),\n ...makeRoundedProps(),\n ...makeTagProps({ tag: 'kbd' }),\n ...makeThemeProps(),\n ...makeElevationProps(),\n\n color: String,\n}, 'VKbd')\n\nexport const VKbd = genericComponent()({\n name: 'VKbd',\n\n props: makeVKbdProps(),\n\n setup (props, { slots }) {\n const { themeClasses } = provideTheme(props)\n const { borderClasses } = useBorder(props)\n const { roundedClasses } = useRounded(props)\n const { backgroundColorClasses, backgroundColorStyles } = useBackgroundColor(() => props.color)\n const { elevationClasses } = useElevation(props)\n\n useRender(() => (\n <props.tag\n class={[\n 'v-kbd',\n themeClasses.value,\n backgroundColorClasses.value,\n borderClasses.value,\n elevationClasses.value,\n roundedClasses.value,\n props.class,\n ]}\n style={[\n backgroundColorStyles.value,\n props.style,\n ]}\n v-slots={ slots }\n />\n ))\n\n return {}\n },\n})\n\nexport type VKbd = InstanceType<typeof VKbd>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,eAAe,EAAEC,SAAS;AAAA,SAC1BC,kBAAkB;AAAA,SAClBC,kBAAkB;AAAA,SAClBC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,gBAAgB,EAAEC,UAAU;AAAA,SAC5BC,YAAY;AAAA,SACZC,cAAc,EAAEC,YAAY,sCAErC;AAAA,SACSC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS;AAElD,OAAO,MAAMC,aAAa,GAAGF,YAAY,CAAC;EACxC,GAAGZ,eAAe,CAAC,CAAC;EACpB,GAAGG,kBAAkB,CAAC,CAAC;EACvB,GAAGG,gBAAgB,CAAC,CAAC;EACrB,GAAGE,YAAY,CAAC;IAAEO,GAAG,EAAE;EAAM,CAAC,CAAC;EAC/B,GAAGN,cAAc,CAAC,CAAC;EACnB,GAAGL,kBAAkB,CAAC,CAAC;EAEvBY,KAAK,EAAEC;AACT,CAAC,EAAE,MAAM,CAAC;AAEV,OAAO,MAAMC,IAAI,GAAGP,gBAAgB,CAAC,CAAC,CAAC;EACrCQ,IAAI,EAAE,MAAM;EAEZC,KAAK,EAAEN,aAAa,CAAC,CAAC;EAEtBO,KAAKA,CAAED,KAAK,EAAAE,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACrB,MAAM;MAAEE;IAAa,CAAC,GAAGd,YAAY,CAACU,KAAK,CAAC;IAC5C,MAAM;MAAEK;IAAc,CAAC,GAAGxB,SAAS,CAACmB,KAAK,CAAC;IAC1C,MAAM;MAAEM;IAAe,CAAC,GAAGnB,UAAU,CAACa,KAAK,CAAC;IAC5C,MAAM;MAAEO,sBAAsB;MAAEC;IAAsB,CAAC,GAAG1B,kBAAkB,CAAC,MAAMkB,KAAK,CAACJ,KAAK,CAAC;IAC/F,MAAM;MAAEa;IAAiB,CAAC,GAAGxB,YAAY,CAACe,KAAK,CAAC;IAEhDP,SAAS,CAAC,MAAAiB,YAAA,CAAAV,KAAA,CAAAL,GAAA;MAAA,SAAAgB,eAAA,CAEC,CACL,OAAO,EACPP,YAAY,CAACQ,KAAK,EAClBL,sBAAsB,CAACK,KAAK,EAC5BP,aAAa,CAACO,KAAK,EACnBH,gBAAgB,CAACG,KAAK,EACtBN,cAAc,CAACM,KAAK,EACpBZ,KAAK,CAACa,KAAK,CACZ;MAAA,SAAAC,eAAA,CACM,CACLN,qBAAqB,CAACI,KAAK,EAC3BZ,KAAK,CAACe,KAAK,CACZ;IAAA,GACSZ,KAAK,CAElB,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { VuetifyDateAdapter } from "./vuetify.js";
|
2
|
-
import type { DateAdapter } from "../index.js";
|
3
|
-
type CustomDateFormat = Intl.DateTimeFormatOptions | ((date: string, formatString: string, locale: string) => string);
|
4
|
-
export declare class StringDateAdapter implements DateAdapter<string> {
|
5
|
-
base: VuetifyDateAdapter;
|
6
|
-
constructor(options: {
|
7
|
-
locale: string;
|
8
|
-
formats?: Record<string, CustomDateFormat>;
|
9
|
-
});
|
10
|
-
addDays(date: string, amount: number): string;
|
11
|
-
addHours(date: string, amount: number): string;
|
12
|
-
addMinutes(date: string, amount: number): string;
|
13
|
-
addMonths(date: string, amount: number): string;
|
14
|
-
addWeeks(date: string, amount: number): string;
|
15
|
-
date(value?: any): string | null;
|
16
|
-
endOfDay(date: string): string;
|
17
|
-
endOfMonth(date: string): string;
|
18
|
-
endOfWeek(date: string): string;
|
19
|
-
endOfYear(date: string): string;
|
20
|
-
format(date: string, formatString: string): string;
|
21
|
-
getDate(date: string): number;
|
22
|
-
getDiff(date: string, comparing: string, unit?: string): number;
|
23
|
-
getHours(date: string): number;
|
24
|
-
getMinutes(date: string): number;
|
25
|
-
getMonth(date: string): number;
|
26
|
-
getWeek(date: string, firstDayOfWeek?: number | string, firstWeekMinSize?: number): number;
|
27
|
-
getNextMonth(date: string): string;
|
28
|
-
getPreviousMonth(date: string): string;
|
29
|
-
getWeekArray(date: string, firstDayOfWeek?: number | string): string[][];
|
30
|
-
getWeekdays(firstDayOfWeek?: number | string, weekdayFormat?: 'long' | 'short' | 'narrow'): string[];
|
31
|
-
getYear(date: string): number;
|
32
|
-
isAfter(date: string, comparing: string): boolean;
|
33
|
-
isAfterDay(date: string, comparing: string): boolean;
|
34
|
-
isBefore(date: string, comparing: string): boolean;
|
35
|
-
isEqual(date: string, comparing: string): boolean;
|
36
|
-
isSameDay(date: string, comparing: string): boolean;
|
37
|
-
isSameMonth(date: string, comparing: string): boolean;
|
38
|
-
isSameYear(date: string, comparing: string): boolean;
|
39
|
-
isValid(date: any): boolean;
|
40
|
-
isWithinRange(date: string, range: [string, string]): boolean;
|
41
|
-
parseISO(date: string): string;
|
42
|
-
setDate(date: string, day: number): string;
|
43
|
-
setHours(date: string, hours: number): string;
|
44
|
-
setMinutes(date: string, minutes: number): string;
|
45
|
-
setMonth(date: string, month: number): string;
|
46
|
-
setYear(date: string, year: number): string;
|
47
|
-
startOfDay(date: string): string;
|
48
|
-
startOfMonth(date: string): string;
|
49
|
-
startOfWeek(date: string, firstDayOfWeek?: number | string): string;
|
50
|
-
startOfYear(date: string): string;
|
51
|
-
toISO(date: string): string;
|
52
|
-
toJsDate(value: string): Date;
|
53
|
-
}
|
54
|
-
|
@@ -1,153 +0,0 @@
|
|
1
|
-
// Composables
|
2
|
-
import { VuetifyDateAdapter } from "./vuetify.js"; // Types
|
3
|
-
export class StringDateAdapter {
|
4
|
-
constructor(options) {
|
5
|
-
var _this = this;
|
6
|
-
this.base = new VuetifyDateAdapter({
|
7
|
-
locale: options.locale,
|
8
|
-
formats: options.formats && Object.fromEntries(Object.entries(options.formats).map(_ref => {
|
9
|
-
let [k, v] = _ref;
|
10
|
-
return [k, typeof v === 'function' ? function (date) {
|
11
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
12
|
-
args[_key - 1] = arguments[_key];
|
13
|
-
}
|
14
|
-
return v(_this.base.toISO(date), ...args);
|
15
|
-
} : v];
|
16
|
-
}))
|
17
|
-
});
|
18
|
-
}
|
19
|
-
addDays(date, amount) {
|
20
|
-
return this.base.toISO(this.base.addDays(this.base.date(date), amount));
|
21
|
-
}
|
22
|
-
addHours(date, amount) {
|
23
|
-
return this.base.toISO(this.base.addHours(this.base.date(date), amount));
|
24
|
-
}
|
25
|
-
addMinutes(date, amount) {
|
26
|
-
return this.base.toISO(this.base.addMinutes(this.base.date(date), amount));
|
27
|
-
}
|
28
|
-
addMonths(date, amount) {
|
29
|
-
return this.base.toISO(this.base.addMonths(this.base.date(date), amount));
|
30
|
-
}
|
31
|
-
addWeeks(date, amount) {
|
32
|
-
return this.base.toISO(this.base.addWeeks(this.base.date(date), amount));
|
33
|
-
}
|
34
|
-
date(value) {
|
35
|
-
return this.base.toISO(this.base.date(value));
|
36
|
-
}
|
37
|
-
endOfDay(date) {
|
38
|
-
return this.base.toISO(this.base.endOfDay(this.base.date(date)));
|
39
|
-
}
|
40
|
-
endOfMonth(date) {
|
41
|
-
return this.base.toISO(this.base.endOfMonth(this.base.date(date)));
|
42
|
-
}
|
43
|
-
endOfWeek(date) {
|
44
|
-
return this.base.toISO(this.base.endOfWeek(this.base.date(date)));
|
45
|
-
}
|
46
|
-
endOfYear(date) {
|
47
|
-
return this.base.toISO(this.base.endOfYear(this.base.date(date)));
|
48
|
-
}
|
49
|
-
format(date, formatString) {
|
50
|
-
return this.base.format(this.base.date(date), formatString);
|
51
|
-
}
|
52
|
-
getDate(date) {
|
53
|
-
return this.base.getDate(this.base.date(date));
|
54
|
-
}
|
55
|
-
getDiff(date, comparing, unit) {
|
56
|
-
return this.base.getDiff(this.base.date(date), comparing, unit);
|
57
|
-
}
|
58
|
-
getHours(date) {
|
59
|
-
return this.base.getHours(this.base.date(date));
|
60
|
-
}
|
61
|
-
getMinutes(date) {
|
62
|
-
return this.base.getMinutes(this.base.date(date));
|
63
|
-
}
|
64
|
-
getMonth(date) {
|
65
|
-
return this.base.getMonth(this.base.date(date));
|
66
|
-
}
|
67
|
-
getWeek(date, firstDayOfWeek, firstWeekMinSize) {
|
68
|
-
return this.base.getWeek(this.base.date(date), firstDayOfWeek, firstWeekMinSize);
|
69
|
-
}
|
70
|
-
getNextMonth(date) {
|
71
|
-
return this.base.toISO(this.base.getNextMonth(this.base.date(date)));
|
72
|
-
}
|
73
|
-
getPreviousMonth(date) {
|
74
|
-
return this.base.toISO(this.base.getPreviousMonth(this.base.date(date)));
|
75
|
-
}
|
76
|
-
getWeekArray(date, firstDayOfWeek) {
|
77
|
-
return this.base.getWeekArray(this.base.date(date), firstDayOfWeek).map(week => {
|
78
|
-
return week.map(day => {
|
79
|
-
return this.base.toISO(day);
|
80
|
-
});
|
81
|
-
});
|
82
|
-
}
|
83
|
-
getWeekdays(firstDayOfWeek, weekdayFormat) {
|
84
|
-
return this.base.getWeekdays(firstDayOfWeek, weekdayFormat);
|
85
|
-
}
|
86
|
-
getYear(date) {
|
87
|
-
return this.base.getYear(this.base.date(date));
|
88
|
-
}
|
89
|
-
isAfter(date, comparing) {
|
90
|
-
return this.base.isAfter(this.base.date(date), this.base.date(comparing));
|
91
|
-
}
|
92
|
-
isAfterDay(date, comparing) {
|
93
|
-
return this.base.isAfterDay(this.base.date(date), this.base.date(comparing));
|
94
|
-
}
|
95
|
-
isBefore(date, comparing) {
|
96
|
-
return this.base.isBefore(this.base.date(date), this.base.date(comparing));
|
97
|
-
}
|
98
|
-
isEqual(date, comparing) {
|
99
|
-
return this.base.isEqual(this.base.date(date), this.base.date(comparing));
|
100
|
-
}
|
101
|
-
isSameDay(date, comparing) {
|
102
|
-
return this.base.isSameDay(this.base.date(date), this.base.date(comparing));
|
103
|
-
}
|
104
|
-
isSameMonth(date, comparing) {
|
105
|
-
return this.base.isSameMonth(this.base.date(date), this.base.date(comparing));
|
106
|
-
}
|
107
|
-
isSameYear(date, comparing) {
|
108
|
-
return this.base.isSameYear(this.base.date(date), this.base.date(comparing));
|
109
|
-
}
|
110
|
-
isValid(date) {
|
111
|
-
return this.base.isValid(date);
|
112
|
-
}
|
113
|
-
isWithinRange(date, range) {
|
114
|
-
return this.base.isWithinRange(this.base.date(date), [this.base.date(range[0]), this.base.date(range[1])]);
|
115
|
-
}
|
116
|
-
parseISO(date) {
|
117
|
-
return this.base.toISO(this.base.parseISO(date));
|
118
|
-
}
|
119
|
-
setDate(date, day) {
|
120
|
-
return this.base.toISO(this.base.setDate(this.base.date(date), day));
|
121
|
-
}
|
122
|
-
setHours(date, hours) {
|
123
|
-
return this.base.toISO(this.base.setHours(this.base.date(date), hours));
|
124
|
-
}
|
125
|
-
setMinutes(date, minutes) {
|
126
|
-
return this.base.toISO(this.base.setMinutes(this.base.date(date), minutes));
|
127
|
-
}
|
128
|
-
setMonth(date, month) {
|
129
|
-
return this.base.toISO(this.base.setMonth(this.base.date(date), month));
|
130
|
-
}
|
131
|
-
setYear(date, year) {
|
132
|
-
return this.base.toISO(this.base.setYear(this.base.date(date), year));
|
133
|
-
}
|
134
|
-
startOfDay(date) {
|
135
|
-
return this.base.toISO(this.base.startOfDay(this.base.date(date)));
|
136
|
-
}
|
137
|
-
startOfMonth(date) {
|
138
|
-
return this.base.toISO(this.base.startOfMonth(this.base.date(date)));
|
139
|
-
}
|
140
|
-
startOfWeek(date, firstDayOfWeek) {
|
141
|
-
return this.base.toISO(this.base.startOfWeek(this.base.date(date), firstDayOfWeek));
|
142
|
-
}
|
143
|
-
startOfYear(date) {
|
144
|
-
return this.base.toISO(this.base.startOfYear(this.base.date(date)));
|
145
|
-
}
|
146
|
-
toISO(date) {
|
147
|
-
return this.base.toISO(this.base.date(date));
|
148
|
-
}
|
149
|
-
toJsDate(value) {
|
150
|
-
return this.base.date(value);
|
151
|
-
}
|
152
|
-
}
|
153
|
-
//# sourceMappingURL=string.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"string.js","names":["VuetifyDateAdapter","StringDateAdapter","constructor","options","_this","base","locale","formats","Object","fromEntries","entries","map","_ref","k","v","date","_len","arguments","length","args","Array","_key","toISO","addDays","amount","addHours","addMinutes","addMonths","addWeeks","value","endOfDay","endOfMonth","endOfWeek","endOfYear","format","formatString","getDate","getDiff","comparing","unit","getHours","getMinutes","getMonth","getWeek","firstDayOfWeek","firstWeekMinSize","getNextMonth","getPreviousMonth","getWeekArray","week","day","getWeekdays","weekdayFormat","getYear","isAfter","isAfterDay","isBefore","isEqual","isSameDay","isSameMonth","isSameYear","isValid","isWithinRange","range","parseISO","setDate","setHours","hours","setMinutes","minutes","setMonth","month","setYear","year","startOfDay","startOfMonth","startOfWeek","startOfYear","toJsDate"],"sources":["../../../../src/composables/date/adapters/string.ts"],"sourcesContent":["// Composables\nimport { VuetifyDateAdapter } from '@/composables/date/adapters/vuetify'\n\n// Types\nimport type { DateAdapter } from '@/composables/date'\n\ntype CustomDateFormat = Intl.DateTimeFormatOptions | ((date: string, formatString: string, locale: string) => string)\n\nexport class StringDateAdapter implements DateAdapter<string> {\n base: VuetifyDateAdapter\n\n constructor (options: { locale: string, formats?: Record<string, CustomDateFormat> }) {\n this.base = new VuetifyDateAdapter({\n locale: options.locale,\n formats: options.formats && Object.fromEntries(\n Object.entries(options.formats).map(([k, v]) => {\n return [\n k,\n typeof v === 'function'\n ? (date, ...args) => v(this.base.toISO(date), ...args)\n : v,\n ]\n })\n ),\n })\n }\n\n addDays (date: string, amount: number): string {\n return this.base.toISO(\n this.base.addDays(this.base.date(date)!, amount)\n )\n }\n\n addHours (date: string, amount: number): string {\n return this.base.toISO(\n this.base.addHours(this.base.date(date)!, amount)\n )\n }\n\n addMinutes (date: string, amount: number): string {\n return this.base.toISO(\n this.base.addMinutes(this.base.date(date)!, amount)\n )\n }\n\n addMonths (date: string, amount: number): string {\n return this.base.toISO(\n this.base.addMonths(this.base.date(date)!, amount)\n )\n }\n\n addWeeks (date: string, amount: number): string {\n return this.base.toISO(\n this.base.addWeeks(this.base.date(date)!, amount)\n )\n }\n\n date (value?: any): string | null {\n return this.base.toISO(\n this.base.date(value)!\n )\n }\n\n endOfDay (date: string): string {\n return this.base.toISO(\n this.base.endOfDay(this.base.date(date)!)\n )\n }\n\n endOfMonth (date: string): string {\n return this.base.toISO(\n this.base.endOfMonth(this.base.date(date)!)\n )\n }\n\n endOfWeek (date: string): string {\n return this.base.toISO(\n this.base.endOfWeek(this.base.date(date)!)\n )\n }\n\n endOfYear (date: string): string {\n return this.base.toISO(\n this.base.endOfYear(this.base.date(date)!)\n )\n }\n\n format (date: string, formatString: string): string {\n return this.base.format(\n this.base.date(date)!,\n formatString\n )\n }\n\n getDate (date: string): number {\n return this.base.getDate(this.base.date(date)!)\n }\n\n getDiff (date: string, comparing: string, unit?: string): number {\n return this.base.getDiff(this.base.date(date)!, comparing, unit)\n }\n\n getHours (date: string): number {\n return this.base.getHours(this.base.date(date)!)\n }\n\n getMinutes (date: string): number {\n return this.base.getMinutes(this.base.date(date)!)\n }\n\n getMonth (date: string): number {\n return this.base.getMonth(this.base.date(date)!)\n }\n\n getWeek (date: string, firstDayOfWeek?: number | string, firstWeekMinSize?: number): number {\n return this.base.getWeek(this.base.date(date)!, firstDayOfWeek, firstWeekMinSize)\n }\n\n getNextMonth (date: string): string {\n return this.base.toISO(\n this.base.getNextMonth(this.base.date(date)!)\n )\n }\n\n getPreviousMonth (date: string): string {\n return this.base.toISO(\n this.base.getPreviousMonth(this.base.date(date)!)\n )\n }\n\n getWeekArray (date: string, firstDayOfWeek?: number | string): string[][] {\n return this.base.getWeekArray(\n this.base.date(date)!,\n firstDayOfWeek,\n ).map(week => {\n return week.map(day => {\n return this.base.toISO(day)\n })\n })\n }\n\n getWeekdays (firstDayOfWeek?: number | string, weekdayFormat?: 'long' | 'short' | 'narrow'): string[] {\n return this.base.getWeekdays(firstDayOfWeek, weekdayFormat)\n }\n\n getYear (date: string): number {\n return this.base.getYear(this.base.date(date)!)\n }\n\n isAfter (date: string, comparing: string): boolean {\n return this.base.isAfter(\n this.base.date(date)!,\n this.base.date(comparing)!,\n )\n }\n\n isAfterDay (date: string, comparing: string): boolean {\n return this.base.isAfterDay(\n this.base.date(date)!,\n this.base.date(comparing)!,\n )\n }\n\n isBefore (date: string, comparing: string): boolean {\n return this.base.isBefore(\n this.base.date(date)!,\n this.base.date(comparing)!,\n )\n }\n\n isEqual (date: string, comparing: string): boolean {\n return this.base.isEqual(\n this.base.date(date)!,\n this.base.date(comparing)!,\n )\n }\n\n isSameDay (date: string, comparing: string): boolean {\n return this.base.isSameDay(\n this.base.date(date)!,\n this.base.date(comparing)!,\n )\n }\n\n isSameMonth (date: string, comparing: string): boolean {\n return this.base.isSameMonth(\n this.base.date(date)!,\n this.base.date(comparing)!,\n )\n }\n\n isSameYear (date: string, comparing: string): boolean {\n return this.base.isSameYear(\n this.base.date(date)!,\n this.base.date(comparing)!,\n )\n }\n\n isValid (date: any): boolean {\n return this.base.isValid(date)\n }\n\n isWithinRange (date: string, range: [string, string]): boolean {\n return this.base.isWithinRange(\n this.base.date(date)!,\n [this.base.date(range[0])!, this.base.date(range[1])!],\n )\n }\n\n parseISO (date: string): string {\n return this.base.toISO(this.base.parseISO(date))\n }\n\n setDate (date: string, day: number): string {\n return this.base.toISO(\n this.base.setDate(this.base.date(date)!, day)\n )\n }\n\n setHours (date: string, hours: number): string {\n return this.base.toISO(\n this.base.setHours(this.base.date(date)!, hours)\n )\n }\n\n setMinutes (date: string, minutes: number): string {\n return this.base.toISO(\n this.base.setMinutes(this.base.date(date)!, minutes)\n )\n }\n\n setMonth (date: string, month: number): string {\n return this.base.toISO(\n this.base.setMonth(this.base.date(date)!, month)\n )\n }\n\n setYear (date: string, year: number): string {\n return this.base.toISO(\n this.base.setYear(this.base.date(date)!, year)\n )\n }\n\n startOfDay (date: string): string {\n return this.base.toISO(\n this.base.startOfDay(this.base.date(date)!)\n )\n }\n\n startOfMonth (date: string): string {\n return this.base.toISO(\n this.base.startOfMonth(this.base.date(date)!)\n )\n }\n\n startOfWeek (date: string, firstDayOfWeek?: number | string): string {\n return this.base.toISO(\n this.base.startOfWeek(this.base.date(date)!, firstDayOfWeek)\n )\n }\n\n startOfYear (date: string): string {\n return this.base.toISO(\n this.base.startOfYear(this.base.date(date)!)\n )\n }\n\n toISO (date: string): string {\n return this.base.toISO(\n this.base.date(date)!\n )\n }\n\n toJsDate (value: string): Date {\n return this.base.date(value)!\n }\n}\n"],"mappings":"AAAA;AAAA,SACSA,kBAAkB,wBAE3B;AAKA,OAAO,MAAMC,iBAAiB,CAAgC;EAG5DC,WAAWA,CAAEC,OAAuE,EAAE;IAAA,IAAAC,KAAA;IACpF,IAAI,CAACC,IAAI,GAAG,IAAIL,kBAAkB,CAAC;MACjCM,MAAM,EAAEH,OAAO,CAACG,MAAM;MACtBC,OAAO,EAAEJ,OAAO,CAACI,OAAO,IAAIC,MAAM,CAACC,WAAW,CAC5CD,MAAM,CAACE,OAAO,CAACP,OAAO,CAACI,OAAO,CAAC,CAACI,GAAG,CAACC,IAAA,IAAY;QAAA,IAAX,CAACC,CAAC,EAAEC,CAAC,CAAC,GAAAF,IAAA;QACzC,OAAO,CACLC,CAAC,EACD,OAAOC,CAAC,KAAK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,CAAE,CAC7C,CAAC;EACH;EAEAO,KAAKA,CAAEP,IAAY,EAAU;IAC3B,OAAO,IAAI,CAACV,IAAI,CAACiB,KAAK,CACpB,IAAI,CAACjB,IAAI,CAACU,IAAI,CAACA,IAAI,CACrB,CAAC;EACH;EAEA+D,QAAQA,CAAEjD,KAAa,EAAQ;IAC7B,OAAO,IAAI,CAACxB,IAAI,CAACU,IAAI,CAACc,KAAK,CAAC;EAC9B;AACF","ignoreList":[]}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import type { ComputedGetter, PropType } from 'vue';
|
2
|
-
import type { VIconBtnSizes } from "../labs/VIconBtn/VIconBtn.js";
|
3
|
-
export interface IconSizeProps {
|
4
|
-
iconSize?: VIconBtnSizes | number | string;
|
5
|
-
iconSizes: [VIconBtnSizes, number][];
|
6
|
-
}
|
7
|
-
export declare const makeIconSizeProps: <Defaults extends {
|
8
|
-
iconSize?: unknown;
|
9
|
-
iconSizes?: unknown;
|
10
|
-
} = {}>(defaults?: Defaults | undefined) => {
|
11
|
-
iconSize: unknown extends Defaults["iconSize"] ? PropType<string | number> : {
|
12
|
-
type: PropType<unknown extends Defaults["iconSize"] ? string | number : string | number | Defaults["iconSize"]>;
|
13
|
-
default: unknown extends Defaults["iconSize"] ? string | number : NonNullable<string | number> | Defaults["iconSize"];
|
14
|
-
};
|
15
|
-
iconSizes: unknown extends Defaults["iconSizes"] ? {
|
16
|
-
type: PropType<[VIconBtnSizes, number][]>;
|
17
|
-
default: () => (string | number)[][];
|
18
|
-
} : Omit<{
|
19
|
-
type: PropType<[VIconBtnSizes, number][]>;
|
20
|
-
default: () => (string | number)[][];
|
21
|
-
}, "type" | "default"> & {
|
22
|
-
type: PropType<unknown extends Defaults["iconSizes"] ? [VIconBtnSizes, number][] : [VIconBtnSizes, number][] | Defaults["iconSizes"]>;
|
23
|
-
default: unknown extends Defaults["iconSizes"] ? [VIconBtnSizes, number][] : [VIconBtnSizes, number][] | Defaults["iconSizes"];
|
24
|
-
};
|
25
|
-
};
|
26
|
-
export declare function useIconSizes(props: IconSizeProps, fallback: ComputedGetter<VIconBtnSizes | number | string | undefined>): {
|
27
|
-
iconSize: import("vue").ComputedRef<number | VIconBtnSizes | undefined>;
|
28
|
-
};
|
@@ -1,23 +0,0 @@
|
|
1
|
-
// Utilities
|
2
|
-
import { computed } from 'vue';
|
3
|
-
import { propsFactory } from "../util/index.js"; // Types
|
4
|
-
// Types
|
5
|
-
// Composables
|
6
|
-
export const makeIconSizeProps = propsFactory({
|
7
|
-
iconSize: [Number, String],
|
8
|
-
iconSizes: {
|
9
|
-
type: Array,
|
10
|
-
default: () => [['x-small', 10], ['small', 16], ['default', 24], ['large', 28], ['x-large', 32]]
|
11
|
-
}
|
12
|
-
}, 'iconSize');
|
13
|
-
export function useIconSizes(props, fallback) {
|
14
|
-
const iconSize = computed(() => {
|
15
|
-
const iconSizeMap = new Map(props.iconSizes);
|
16
|
-
const _iconSize = props.iconSize ?? fallback() ?? 'default';
|
17
|
-
return iconSizeMap.has(_iconSize) ? iconSizeMap.get(_iconSize) : _iconSize;
|
18
|
-
});
|
19
|
-
return {
|
20
|
-
iconSize
|
21
|
-
};
|
22
|
-
}
|
23
|
-
//# sourceMappingURL=iconSizes.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"iconSizes.js","names":["computed","propsFactory","makeIconSizeProps","iconSize","Number","String","iconSizes","type","Array","default","useIconSizes","props","fallback","iconSizeMap","Map","_iconSize","has","get"],"sources":["../../src/composables/iconSizes.ts"],"sourcesContent":["// Utilities\nimport { computed } from 'vue'\nimport { propsFactory } from '@/util'\n\n// Types\nimport type { ComputedGetter, PropType } from 'vue'\nimport type { VIconBtnSizes } from '@/labs/VIconBtn/VIconBtn'\n\n// Types\nexport interface IconSizeProps {\n iconSize?: VIconBtnSizes | number | string\n iconSizes: [VIconBtnSizes, number][]\n}\n\n// Composables\nexport const makeIconSizeProps = propsFactory({\n iconSize: [Number, String] as PropType<VIconBtnSizes | number | string>,\n iconSizes: {\n type: Array as PropType<[VIconBtnSizes, number][]>,\n default: () => ([\n ['x-small', 10],\n ['small', 16],\n ['default', 24],\n ['large', 28],\n ['x-large', 32],\n ]),\n },\n}, 'iconSize')\n\nexport function useIconSizes (props: IconSizeProps, fallback: ComputedGetter<VIconBtnSizes | number | string | undefined>) {\n const iconSize = computed(() => {\n const iconSizeMap = new Map(props.iconSizes)\n const _iconSize = props.iconSize as VIconBtnSizes ?? fallback() ?? 'default'\n return iconSizeMap.has(_iconSize)\n ? iconSizeMap.get(_iconSize)\n : _iconSize\n })\n\n return { iconSize }\n}\n"],"mappings":"AAAA;AACA,SAASA,QAAQ,QAAQ,KAAK;AAAA,SACrBC,YAAY,4BAErB;AAIA;AAMA;AACA,OAAO,MAAMC,iBAAiB,GAAGD,YAAY,CAAC;EAC5CE,QAAQ,EAAE,CAACC,MAAM,EAAEC,MAAM,CAA8C;EACvEC,SAAS,EAAE;IACTC,IAAI,EAAEC,KAA4C;IAClDC,OAAO,EAAEA,CAAA,KAAO,CACd,CAAC,SAAS,EAAE,EAAE,CAAC,EACf,CAAC,OAAO,EAAE,EAAE,CAAC,EACb,CAAC,SAAS,EAAE,EAAE,CAAC,EACf,CAAC,OAAO,EAAE,EAAE,CAAC,EACb,CAAC,SAAS,EAAE,EAAE,CAAC;EAEnB;AACF,CAAC,EAAE,UAAU,CAAC;AAEd,OAAO,SAASC,YAAYA,CAAEC,KAAoB,EAAEC,QAAqE,EAAE;EACzH,MAAMT,QAAQ,GAAGH,QAAQ,CAAC,MAAM;IAC9B,MAAMa,WAAW,GAAG,IAAIC,GAAG,CAACH,KAAK,CAACL,SAAS,CAAC;IAC5C,MAAMS,SAAS,GAAGJ,KAAK,CAACR,QAAQ,IAAqBS,QAAQ,CAAC,CAAC,IAAI,SAAS;IAC5E,OAAOC,WAAW,CAACG,GAAG,CAACD,SAAS,CAAC,GAC7BF,WAAW,CAACI,GAAG,CAACF,SAAS,CAAC,GAC1BA,SAAS;EACf,CAAC,CAAC;EAEF,OAAO;IAAEZ;EAAS,CAAC;AACrB","ignoreList":[]}
|
@@ -1,38 +0,0 @@
|
|
1
|
-
import type { PropType, Ref } from 'vue';
|
2
|
-
export interface MaskProps {
|
3
|
-
mask: string | MaskOptions | undefined;
|
4
|
-
returnMaskedValue?: Boolean;
|
5
|
-
}
|
6
|
-
export interface MaskOptions {
|
7
|
-
mask: string;
|
8
|
-
tokens: Record<string, MaskItem>;
|
9
|
-
}
|
10
|
-
export declare const makeMaskProps: <Defaults extends {
|
11
|
-
mask?: unknown;
|
12
|
-
returnMaskedValue?: unknown;
|
13
|
-
} = {}>(defaults?: Defaults | undefined) => {
|
14
|
-
mask: unknown extends Defaults["mask"] ? PropType<string | MaskOptions> : {
|
15
|
-
type: PropType<unknown extends Defaults["mask"] ? string | MaskOptions : string | MaskOptions | Defaults["mask"]>;
|
16
|
-
default: unknown extends Defaults["mask"] ? string | MaskOptions : Defaults["mask"] | NonNullable<string | MaskOptions>;
|
17
|
-
};
|
18
|
-
returnMaskedValue: unknown extends Defaults["returnMaskedValue"] ? BooleanConstructor : {
|
19
|
-
type: PropType<unknown extends Defaults["returnMaskedValue"] ? boolean : boolean | Defaults["returnMaskedValue"]>;
|
20
|
-
default: unknown extends Defaults["returnMaskedValue"] ? boolean : boolean | Defaults["returnMaskedValue"];
|
21
|
-
};
|
22
|
-
};
|
23
|
-
export type MaskItem = {
|
24
|
-
convert?: (char: string) => string;
|
25
|
-
} & ({
|
26
|
-
pattern?: never;
|
27
|
-
test: (char: string) => boolean;
|
28
|
-
} | {
|
29
|
-
pattern: RegExp;
|
30
|
-
test?: never;
|
31
|
-
});
|
32
|
-
export declare const defaultDelimiters: RegExp;
|
33
|
-
export declare function isMaskDelimiter(char: string): boolean;
|
34
|
-
export declare function useMask(props: MaskProps, inputRef: Ref<HTMLInputElement | undefined>): {
|
35
|
-
updateRange: () => void;
|
36
|
-
maskText: (text: string | null | undefined) => string;
|
37
|
-
unmaskText: (text: string | null) => string | null;
|
38
|
-
};
|