vuetify 3.1.5 → 3.1.7
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/dist/json/attributes.json +562 -34
- package/dist/json/importMap.json +36 -36
- package/dist/json/tags.json +136 -2
- package/dist/json/web-types.json +2163 -85
- package/dist/vuetify-labs.css +30 -25
- package/dist/vuetify-labs.d.ts +3455 -146
- package/dist/vuetify-labs.esm.js +123 -73
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +123 -73
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +89 -84
- package/dist/vuetify.d.ts +1928 -77
- package/dist/vuetify.esm.js +102 -63
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +102 -63
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +674 -669
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/index.d.ts +22 -0
- package/lib/components/VApp/index.d.ts +6 -0
- package/lib/components/VAppBar/index.d.ts +36 -0
- package/lib/components/VAutocomplete/index.d.ts +117 -6
- package/lib/components/VAvatar/index.d.ts +6 -0
- package/lib/components/VBadge/index.d.ts +8 -0
- package/lib/components/VBanner/index.d.ts +24 -0
- package/lib/components/VBottomNavigation/index.d.ts +6 -0
- package/lib/components/VBreadcrumbs/index.d.ts +28 -4
- package/lib/components/VBtn/index.d.ts +12 -0
- package/lib/components/VBtnGroup/index.d.ts +6 -0
- package/lib/components/VBtnToggle/index.d.ts +6 -0
- package/lib/components/VCard/index.d.ts +60 -0
- package/lib/components/VCarousel/index.d.ts +60 -0
- package/lib/components/VCheckbox/index.d.ts +38 -0
- package/lib/components/VChip/index.d.ts +12 -0
- package/lib/components/VChipGroup/index.d.ts +6 -0
- package/lib/components/VCode/index.d.ts +6 -0
- package/lib/components/VColorPicker/VColorPicker.mjs +9 -1
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.css +2 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs +36 -18
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.sass +2 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs +4 -4
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.mjs +2 -2
- package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
- package/lib/components/VColorPicker/util/index.mjs +2 -5
- package/lib/components/VColorPicker/util/index.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.ts +117 -6
- package/lib/components/VCounter/index.d.ts +24 -0
- package/lib/components/VDefaultsProvider/index.d.ts +6 -0
- package/lib/components/VDialog/index.d.ts +64 -1
- package/lib/components/VDivider/index.d.ts +6 -0
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.ts +49 -12
- package/lib/components/VField/index.d.ts +20 -6
- package/lib/components/VFileInput/index.d.ts +43 -1
- package/lib/components/VFooter/index.d.ts +7 -1
- package/lib/components/VForm/index.d.ts +6 -0
- package/lib/components/VGrid/index.d.ts +24 -0
- package/lib/components/VHover/index.d.ts +12 -0
- package/lib/components/VIcon/index.d.ts +12 -0
- package/lib/components/VImg/index.d.ts +12 -0
- package/lib/components/VInput/index.d.ts +12 -0
- package/lib/components/VItemGroup/index.d.ts +12 -0
- package/lib/components/VKbd/index.d.ts +6 -0
- package/lib/components/VLabel/index.d.ts +6 -0
- package/lib/components/VLayout/index.d.ts +12 -0
- package/lib/components/VLazy/index.d.ts +6 -0
- package/lib/components/VList/index.d.ts +77 -6
- package/lib/components/VLocaleProvider/index.d.ts +6 -0
- package/lib/components/VMain/index.d.ts +6 -0
- package/lib/components/VMenu/index.d.ts +64 -1
- package/lib/components/VMessages/index.d.ts +24 -0
- package/lib/components/VNavigationDrawer/index.d.ts +12 -0
- package/lib/components/VNoSsr/index.d.ts +6 -0
- package/lib/components/VOverlay/index.d.ts +18 -0
- package/lib/components/VOverlay/scrollStrategies.mjs +1 -1
- package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
- package/lib/components/VPagination/index.d.ts +14 -0
- package/lib/components/VParallax/index.d.ts +12 -0
- package/lib/components/VProgressCircular/index.d.ts +6 -0
- package/lib/components/VProgressLinear/index.d.ts +12 -0
- package/lib/components/VRadio/index.d.ts +16 -0
- package/lib/components/VRadioGroup/index.d.ts +22 -0
- package/lib/components/VRangeSlider/index.d.ts +16 -0
- package/lib/components/VRating/index.d.ts +8 -0
- package/lib/components/VResponsive/index.d.ts +8 -0
- package/lib/components/VSelect/index.d.ts +183 -6
- package/lib/components/VSelectionControl/index.d.ts +14 -6
- package/lib/components/VSelectionControlGroup/index.d.ts +6 -0
- package/lib/components/VSheet/VSheet.mjs +22 -12
- package/lib/components/VSheet/VSheet.mjs.map +1 -1
- package/lib/components/VSheet/index.d.ts +7 -1
- package/lib/components/VSlideGroup/index.d.ts +26 -0
- package/lib/components/VSlider/index.d.ts +16 -0
- package/lib/components/VSnackbar/index.d.ts +44 -1
- package/lib/components/VSwitch/index.d.ts +22 -0
- package/lib/components/VSystemBar/VSystemBar.css +5 -1
- package/lib/components/VSystemBar/VSystemBar.sass +5 -1
- package/lib/components/VSystemBar/_variables.scss +4 -1
- package/lib/components/VSystemBar/index.d.ts +6 -0
- package/lib/components/VTable/index.d.ts +12 -0
- package/lib/components/VTabs/index.d.ts +12 -0
- package/lib/components/VTextField/index.d.ts +54 -6
- package/lib/components/VTextarea/index.d.ts +39 -1
- package/lib/components/VThemeProvider/index.d.ts +6 -0
- package/lib/components/VTimeline/index.d.ts +16 -0
- package/lib/components/VToolbar/index.d.ts +30 -0
- package/lib/components/VTooltip/index.d.ts +46 -1
- package/lib/components/VValidation/index.d.ts +6 -0
- package/lib/components/VWindow/index.d.ts +34 -0
- package/lib/components/index.d.ts +1918 -67
- package/lib/components/transitions/index.d.ts +96 -0
- package/lib/composables/nested/nested.mjs +2 -2
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/nested/selectStrategies.mjs +7 -1
- package/lib/composables/nested/selectStrategies.mjs.map +1 -1
- package/lib/composables/proxiedModel.mjs +1 -1
- package/lib/composables/proxiedModel.mjs.map +1 -1
- package/lib/composables/resizeObserver.mjs.map +1 -1
- package/lib/composables/theme.mjs +21 -13
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.ts +9 -9
- package/lib/labs/VDataTable/VDataTableRows.mjs +4 -6
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs +2 -2
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/index.d.ts +1503 -48
- package/lib/labs/VVirtualScroll/VVirtualScroll.mjs +18 -5
- package/lib/labs/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
- package/lib/labs/VVirtualScroll/index.d.ts +9 -6
- package/lib/labs/components.d.ts +1512 -54
- package/lib/util/colorUtils.mjs +4 -5
- package/lib/util/colorUtils.mjs.map +1 -1
- package/lib/util/defineComponent.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -62,7 +62,7 @@ declare const VBreadcrumbs: {
|
|
|
62
62
|
type: PropType<BreadcrumbItem[]>;
|
|
63
63
|
default: () => never[];
|
|
64
64
|
};
|
|
65
|
-
}, "$children" | "v-slot:default" | "
|
|
65
|
+
}, "$children" | "v-slot:default" | "$slots" | "v-slots" | "items" | "v-slot:title" | "v-slot:prepend" | "v-slot:divider">>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "disabled" | "tag" | "rounded" | "density" | "divider">;
|
|
66
66
|
$attrs: {
|
|
67
67
|
[x: string]: unknown;
|
|
68
68
|
};
|
|
@@ -107,7 +107,7 @@ declare const VBreadcrumbs: {
|
|
|
107
107
|
type: PropType<BreadcrumbItem[]>;
|
|
108
108
|
default: () => never[];
|
|
109
109
|
};
|
|
110
|
-
}, "$children" | "v-slot:default" | "
|
|
110
|
+
}, "$children" | "v-slot:default" | "$slots" | "v-slots" | "items" | "v-slot:title" | "v-slot:prepend" | "v-slot:divider">>>, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "$children" | "v-slot:default" | "$slots" | "v-slots" | "items" | "v-slot:title" | "v-slot:prepend" | "v-slot:divider">, string, {
|
|
111
111
|
disabled: boolean;
|
|
112
112
|
tag: string;
|
|
113
113
|
rounded: string | number | boolean;
|
|
@@ -164,7 +164,7 @@ declare const VBreadcrumbs: {
|
|
|
164
164
|
type: PropType<BreadcrumbItem[]>;
|
|
165
165
|
default: () => never[];
|
|
166
166
|
};
|
|
167
|
-
}, "$children" | "v-slot:default" | "
|
|
167
|
+
}, "$children" | "v-slot:default" | "$slots" | "v-slots" | "items" | "v-slot:title" | "v-slot:prepend" | "v-slot:divider">>> & vue.ShallowUnwrapRef<{}> & {} & vue.ComponentCustomProperties & {};
|
|
168
168
|
__isFragment?: undefined;
|
|
169
169
|
__isTeleport?: undefined;
|
|
170
170
|
__isSuspense?: undefined;
|
|
@@ -199,7 +199,7 @@ declare const VBreadcrumbs: {
|
|
|
199
199
|
type: PropType<BreadcrumbItem[]>;
|
|
200
200
|
default: () => never[];
|
|
201
201
|
};
|
|
202
|
-
}, "$children" | "v-slot:default" | "
|
|
202
|
+
}, "$children" | "v-slot:default" | "$slots" | "v-slots" | "items" | "v-slot:title" | "v-slot:prepend" | "v-slot:divider">>>, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<Record<string, any>, "$children" | "v-slot:default" | "$slots" | "v-slots" | "items" | "v-slot:title" | "v-slot:prepend" | "v-slot:divider">, string, {
|
|
203
203
|
disabled: boolean;
|
|
204
204
|
tag: string;
|
|
205
205
|
rounded: string | number | boolean;
|
|
@@ -221,6 +221,18 @@ declare const VBreadcrumbs: {
|
|
|
221
221
|
}) => vue.VNodeChild) | undefined;
|
|
222
222
|
default?: (() => vue.VNodeChild) | undefined;
|
|
223
223
|
};
|
|
224
|
+
$slots?: {
|
|
225
|
+
prepend?: (() => vue.VNodeChild) | undefined;
|
|
226
|
+
title?: ((args_0: {
|
|
227
|
+
item: T_1;
|
|
228
|
+
index: number;
|
|
229
|
+
}) => vue.VNodeChild) | undefined;
|
|
230
|
+
divider?: ((args_0: {
|
|
231
|
+
item: T_1;
|
|
232
|
+
index: number;
|
|
233
|
+
}) => vue.VNodeChild) | undefined;
|
|
234
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
235
|
+
} | undefined;
|
|
224
236
|
'v-slots'?: {
|
|
225
237
|
prepend?: false | (() => vue.VNodeChild) | undefined;
|
|
226
238
|
title?: false | ((args_0: {
|
|
@@ -265,6 +277,9 @@ declare const VBreadcrumbsItem: vue.DefineComponent<{
|
|
|
265
277
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
266
278
|
default?: (() => vue.VNodeChild) | undefined;
|
|
267
279
|
};
|
|
280
|
+
$slots?: {
|
|
281
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
282
|
+
} | undefined;
|
|
268
283
|
'v-slots'?: {
|
|
269
284
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
270
285
|
} | undefined;
|
|
@@ -287,6 +302,9 @@ declare const VBreadcrumbsItem: vue.DefineComponent<{
|
|
|
287
302
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
288
303
|
default?: (() => vue.VNodeChild) | undefined;
|
|
289
304
|
};
|
|
305
|
+
$slots?: {
|
|
306
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
307
|
+
} | undefined;
|
|
290
308
|
'v-slots'?: {
|
|
291
309
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
292
310
|
} | undefined;
|
|
@@ -307,6 +325,9 @@ declare const VBreadcrumbsDivider: vue.DefineComponent<{} & {
|
|
|
307
325
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
308
326
|
default?: (() => vue.VNodeChild) | undefined;
|
|
309
327
|
};
|
|
328
|
+
$slots?: {
|
|
329
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
330
|
+
} | undefined;
|
|
310
331
|
'v-slots'?: {
|
|
311
332
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
312
333
|
} | undefined;
|
|
@@ -318,6 +339,9 @@ declare const VBreadcrumbsDivider: vue.DefineComponent<{} & {
|
|
|
318
339
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
319
340
|
default?: (() => vue.VNodeChild) | undefined;
|
|
320
341
|
};
|
|
342
|
+
$slots?: {
|
|
343
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
344
|
+
} | undefined;
|
|
321
345
|
'v-slots'?: {
|
|
322
346
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
323
347
|
} | undefined;
|
|
@@ -57,6 +57,12 @@ declare const VBtn: vue.DefineComponent<{
|
|
|
57
57
|
append?: (() => vue.VNodeChild) | undefined;
|
|
58
58
|
loader?: (() => vue.VNodeChild) | undefined;
|
|
59
59
|
};
|
|
60
|
+
$slots?: {
|
|
61
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
62
|
+
prepend?: (() => vue.VNodeChild) | undefined;
|
|
63
|
+
append?: (() => vue.VNodeChild) | undefined;
|
|
64
|
+
loader?: (() => vue.VNodeChild) | undefined;
|
|
65
|
+
} | undefined;
|
|
60
66
|
'v-slots'?: {
|
|
61
67
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
62
68
|
prepend?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -115,6 +121,12 @@ declare const VBtn: vue.DefineComponent<{
|
|
|
115
121
|
append?: (() => vue.VNodeChild) | undefined;
|
|
116
122
|
loader?: (() => vue.VNodeChild) | undefined;
|
|
117
123
|
};
|
|
124
|
+
$slots?: {
|
|
125
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
126
|
+
prepend?: (() => vue.VNodeChild) | undefined;
|
|
127
|
+
append?: (() => vue.VNodeChild) | undefined;
|
|
128
|
+
loader?: (() => vue.VNodeChild) | undefined;
|
|
129
|
+
} | undefined;
|
|
118
130
|
'v-slots'?: {
|
|
119
131
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
120
132
|
prepend?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -17,6 +17,9 @@ declare const VBtnGroup: vue.DefineComponent<{
|
|
|
17
17
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
18
18
|
default?: (() => vue.VNodeChild) | undefined;
|
|
19
19
|
};
|
|
20
|
+
$slots?: {
|
|
21
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
22
|
+
} | undefined;
|
|
20
23
|
'v-slots'?: {
|
|
21
24
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
22
25
|
} | undefined;
|
|
@@ -37,6 +40,9 @@ declare const VBtnGroup: vue.DefineComponent<{
|
|
|
37
40
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
38
41
|
default?: (() => vue.VNodeChild) | undefined;
|
|
39
42
|
};
|
|
43
|
+
$slots?: {
|
|
44
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
45
|
+
} | undefined;
|
|
40
46
|
'v-slots'?: {
|
|
41
47
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
42
48
|
} | undefined;
|
|
@@ -50,6 +50,9 @@ declare const VBtnToggle: vue.DefineComponent<{
|
|
|
50
50
|
$children?: vue.VNodeChild | ((args_0: DefaultBtnToggleSlot) => vue.VNodeChild) | {
|
|
51
51
|
default?: ((args_0: DefaultBtnToggleSlot) => vue.VNodeChild) | undefined;
|
|
52
52
|
};
|
|
53
|
+
$slots?: {
|
|
54
|
+
default?: ((args_0: DefaultBtnToggleSlot) => vue.VNodeChild) | undefined;
|
|
55
|
+
} | undefined;
|
|
53
56
|
'v-slots'?: {
|
|
54
57
|
default?: false | ((args_0: DefaultBtnToggleSlot) => vue.VNodeChild) | undefined;
|
|
55
58
|
} | undefined;
|
|
@@ -82,6 +85,9 @@ declare const VBtnToggle: vue.DefineComponent<{
|
|
|
82
85
|
$children?: vue.VNodeChild | ((args_0: DefaultBtnToggleSlot) => vue.VNodeChild) | {
|
|
83
86
|
default?: ((args_0: DefaultBtnToggleSlot) => vue.VNodeChild) | undefined;
|
|
84
87
|
};
|
|
88
|
+
$slots?: {
|
|
89
|
+
default?: ((args_0: DefaultBtnToggleSlot) => vue.VNodeChild) | undefined;
|
|
90
|
+
} | undefined;
|
|
85
91
|
'v-slots'?: {
|
|
86
92
|
default?: false | ((args_0: DefaultBtnToggleSlot) => vue.VNodeChild) | undefined;
|
|
87
93
|
} | undefined;
|
|
@@ -62,6 +62,17 @@ declare const VCard: vue.DefineComponent<{
|
|
|
62
62
|
prepend?: (() => vue.VNodeChild) | undefined;
|
|
63
63
|
append?: (() => vue.VNodeChild) | undefined;
|
|
64
64
|
};
|
|
65
|
+
$slots?: {
|
|
66
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
67
|
+
actions?: (() => vue.VNodeChild) | undefined;
|
|
68
|
+
title?: (() => vue.VNodeChild) | undefined;
|
|
69
|
+
subtitle?: (() => vue.VNodeChild) | undefined;
|
|
70
|
+
text?: (() => vue.VNodeChild) | undefined;
|
|
71
|
+
loader?: (() => vue.VNodeChild) | undefined;
|
|
72
|
+
image?: (() => vue.VNodeChild) | undefined;
|
|
73
|
+
prepend?: (() => vue.VNodeChild) | undefined;
|
|
74
|
+
append?: (() => vue.VNodeChild) | undefined;
|
|
75
|
+
} | undefined;
|
|
65
76
|
'v-slots'?: {
|
|
66
77
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
67
78
|
actions?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -131,6 +142,17 @@ declare const VCard: vue.DefineComponent<{
|
|
|
131
142
|
prepend?: (() => vue.VNodeChild) | undefined;
|
|
132
143
|
append?: (() => vue.VNodeChild) | undefined;
|
|
133
144
|
};
|
|
145
|
+
$slots?: {
|
|
146
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
147
|
+
actions?: (() => vue.VNodeChild) | undefined;
|
|
148
|
+
title?: (() => vue.VNodeChild) | undefined;
|
|
149
|
+
subtitle?: (() => vue.VNodeChild) | undefined;
|
|
150
|
+
text?: (() => vue.VNodeChild) | undefined;
|
|
151
|
+
loader?: (() => vue.VNodeChild) | undefined;
|
|
152
|
+
image?: (() => vue.VNodeChild) | undefined;
|
|
153
|
+
prepend?: (() => vue.VNodeChild) | undefined;
|
|
154
|
+
append?: (() => vue.VNodeChild) | undefined;
|
|
155
|
+
} | undefined;
|
|
134
156
|
'v-slots'?: {
|
|
135
157
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
136
158
|
actions?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -171,6 +193,9 @@ declare const VCardActions: vue.DefineComponent<{
|
|
|
171
193
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
172
194
|
default?: (() => vue.VNodeChild) | undefined;
|
|
173
195
|
};
|
|
196
|
+
$slots?: {
|
|
197
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
198
|
+
} | undefined;
|
|
174
199
|
'v-slots'?: {
|
|
175
200
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
176
201
|
} | undefined;
|
|
@@ -180,6 +205,9 @@ declare const VCardActions: vue.DefineComponent<{
|
|
|
180
205
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
181
206
|
default?: (() => vue.VNodeChild) | undefined;
|
|
182
207
|
};
|
|
208
|
+
$slots?: {
|
|
209
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
210
|
+
} | undefined;
|
|
183
211
|
'v-slots'?: {
|
|
184
212
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
185
213
|
} | undefined;
|
|
@@ -205,6 +233,13 @@ declare const VCardItem: vue.DefineComponent<{
|
|
|
205
233
|
title?: (() => vue.VNodeChild) | undefined;
|
|
206
234
|
subtitle?: (() => vue.VNodeChild) | undefined;
|
|
207
235
|
};
|
|
236
|
+
$slots?: {
|
|
237
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
238
|
+
prepend?: (() => vue.VNodeChild) | undefined;
|
|
239
|
+
append?: (() => vue.VNodeChild) | undefined;
|
|
240
|
+
title?: (() => vue.VNodeChild) | undefined;
|
|
241
|
+
subtitle?: (() => vue.VNodeChild) | undefined;
|
|
242
|
+
} | undefined;
|
|
208
243
|
'v-slots'?: {
|
|
209
244
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
210
245
|
prepend?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -235,6 +270,13 @@ declare const VCardItem: vue.DefineComponent<{
|
|
|
235
270
|
title?: (() => vue.VNodeChild) | undefined;
|
|
236
271
|
subtitle?: (() => vue.VNodeChild) | undefined;
|
|
237
272
|
};
|
|
273
|
+
$slots?: {
|
|
274
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
275
|
+
prepend?: (() => vue.VNodeChild) | undefined;
|
|
276
|
+
append?: (() => vue.VNodeChild) | undefined;
|
|
277
|
+
title?: (() => vue.VNodeChild) | undefined;
|
|
278
|
+
subtitle?: (() => vue.VNodeChild) | undefined;
|
|
279
|
+
} | undefined;
|
|
238
280
|
'v-slots'?: {
|
|
239
281
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
240
282
|
prepend?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -259,6 +301,9 @@ declare const VCardSubtitle: vue.DefineComponent<{
|
|
|
259
301
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
260
302
|
default?: (() => vue.VNodeChild) | undefined;
|
|
261
303
|
};
|
|
304
|
+
$slots?: {
|
|
305
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
306
|
+
} | undefined;
|
|
262
307
|
'v-slots'?: {
|
|
263
308
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
264
309
|
} | undefined;
|
|
@@ -272,6 +317,9 @@ declare const VCardSubtitle: vue.DefineComponent<{
|
|
|
272
317
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
273
318
|
default?: (() => vue.VNodeChild) | undefined;
|
|
274
319
|
};
|
|
320
|
+
$slots?: {
|
|
321
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
322
|
+
} | undefined;
|
|
275
323
|
'v-slots'?: {
|
|
276
324
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
277
325
|
} | undefined;
|
|
@@ -288,6 +336,9 @@ declare const VCardText: vue.DefineComponent<{
|
|
|
288
336
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
289
337
|
default?: (() => vue.VNodeChild) | undefined;
|
|
290
338
|
};
|
|
339
|
+
$slots?: {
|
|
340
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
341
|
+
} | undefined;
|
|
291
342
|
'v-slots'?: {
|
|
292
343
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
293
344
|
} | undefined;
|
|
@@ -301,6 +352,9 @@ declare const VCardText: vue.DefineComponent<{
|
|
|
301
352
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
302
353
|
default?: (() => vue.VNodeChild) | undefined;
|
|
303
354
|
};
|
|
355
|
+
$slots?: {
|
|
356
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
357
|
+
} | undefined;
|
|
304
358
|
'v-slots'?: {
|
|
305
359
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
306
360
|
} | undefined;
|
|
@@ -317,6 +371,9 @@ declare const VCardTitle: vue.DefineComponent<{
|
|
|
317
371
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
318
372
|
default?: (() => vue.VNodeChild) | undefined;
|
|
319
373
|
};
|
|
374
|
+
$slots?: {
|
|
375
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
376
|
+
} | undefined;
|
|
320
377
|
'v-slots'?: {
|
|
321
378
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
322
379
|
} | undefined;
|
|
@@ -330,6 +387,9 @@ declare const VCardTitle: vue.DefineComponent<{
|
|
|
330
387
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
331
388
|
default?: (() => vue.VNodeChild) | undefined;
|
|
332
389
|
};
|
|
390
|
+
$slots?: {
|
|
391
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
392
|
+
} | undefined;
|
|
333
393
|
'v-slots'?: {
|
|
334
394
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
335
395
|
} | undefined;
|
|
@@ -65,6 +65,30 @@ declare const VCarousel: vue.DefineComponent<{
|
|
|
65
65
|
};
|
|
66
66
|
}) => vue.VNodeChild) | undefined;
|
|
67
67
|
};
|
|
68
|
+
$slots?: {
|
|
69
|
+
default?: ((args_0: {
|
|
70
|
+
group: GroupProvide;
|
|
71
|
+
}) => vue.VNodeChild) | undefined;
|
|
72
|
+
additional?: ((args_0: {
|
|
73
|
+
group: GroupProvide;
|
|
74
|
+
}) => vue.VNodeChild) | undefined;
|
|
75
|
+
prev?: ((args_0: {
|
|
76
|
+
props: {
|
|
77
|
+
icon: IconValue;
|
|
78
|
+
class: string;
|
|
79
|
+
onClick: () => void;
|
|
80
|
+
ariaLabel: string;
|
|
81
|
+
};
|
|
82
|
+
}) => vue.VNodeChild) | undefined;
|
|
83
|
+
next?: ((args_0: {
|
|
84
|
+
props: {
|
|
85
|
+
icon: IconValue;
|
|
86
|
+
class: string;
|
|
87
|
+
onClick: () => void;
|
|
88
|
+
ariaLabel: string;
|
|
89
|
+
};
|
|
90
|
+
}) => vue.VNodeChild) | undefined;
|
|
91
|
+
} | undefined;
|
|
68
92
|
'v-slots'?: {
|
|
69
93
|
default?: false | ((args_0: {
|
|
70
94
|
group: GroupProvide;
|
|
@@ -152,6 +176,30 @@ declare const VCarousel: vue.DefineComponent<{
|
|
|
152
176
|
};
|
|
153
177
|
}) => vue.VNodeChild) | undefined;
|
|
154
178
|
};
|
|
179
|
+
$slots?: {
|
|
180
|
+
default?: ((args_0: {
|
|
181
|
+
group: GroupProvide;
|
|
182
|
+
}) => vue.VNodeChild) | undefined;
|
|
183
|
+
additional?: ((args_0: {
|
|
184
|
+
group: GroupProvide;
|
|
185
|
+
}) => vue.VNodeChild) | undefined;
|
|
186
|
+
prev?: ((args_0: {
|
|
187
|
+
props: {
|
|
188
|
+
icon: IconValue;
|
|
189
|
+
class: string;
|
|
190
|
+
onClick: () => void;
|
|
191
|
+
ariaLabel: string;
|
|
192
|
+
};
|
|
193
|
+
}) => vue.VNodeChild) | undefined;
|
|
194
|
+
next?: ((args_0: {
|
|
195
|
+
props: {
|
|
196
|
+
icon: IconValue;
|
|
197
|
+
class: string;
|
|
198
|
+
onClick: () => void;
|
|
199
|
+
ariaLabel: string;
|
|
200
|
+
};
|
|
201
|
+
}) => vue.VNodeChild) | undefined;
|
|
202
|
+
} | undefined;
|
|
155
203
|
'v-slots'?: {
|
|
156
204
|
default?: false | ((args_0: {
|
|
157
205
|
group: GroupProvide;
|
|
@@ -221,6 +269,12 @@ declare const VCarouselItem: vue.DefineComponent<{} & {
|
|
|
221
269
|
error?: (() => vue.VNodeChild) | undefined;
|
|
222
270
|
sources?: (() => vue.VNodeChild) | undefined;
|
|
223
271
|
};
|
|
272
|
+
$slots?: {
|
|
273
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
274
|
+
placeholder?: (() => vue.VNodeChild) | undefined;
|
|
275
|
+
error?: (() => vue.VNodeChild) | undefined;
|
|
276
|
+
sources?: (() => vue.VNodeChild) | undefined;
|
|
277
|
+
} | undefined;
|
|
224
278
|
'v-slots'?: {
|
|
225
279
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
226
280
|
placeholder?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -241,6 +295,12 @@ declare const VCarouselItem: vue.DefineComponent<{} & {
|
|
|
241
295
|
error?: (() => vue.VNodeChild) | undefined;
|
|
242
296
|
sources?: (() => vue.VNodeChild) | undefined;
|
|
243
297
|
};
|
|
298
|
+
$slots?: {
|
|
299
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
300
|
+
placeholder?: (() => vue.VNodeChild) | undefined;
|
|
301
|
+
error?: (() => vue.VNodeChild) | undefined;
|
|
302
|
+
sources?: (() => vue.VNodeChild) | undefined;
|
|
303
|
+
} | undefined;
|
|
244
304
|
'v-slots'?: {
|
|
245
305
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
246
306
|
placeholder?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -87,6 +87,17 @@ declare const VCheckbox: vue.DefineComponent<{
|
|
|
87
87
|
}) => vue.VNodeChild) | undefined;
|
|
88
88
|
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
89
89
|
};
|
|
90
|
+
$slots?: {
|
|
91
|
+
default?: (((args_0: VInputSlot) => vue.VNodeChild) & (() => vue.VNodeChild)) | undefined;
|
|
92
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
93
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
94
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
95
|
+
label?: ((args_0: {
|
|
96
|
+
label: string | undefined;
|
|
97
|
+
props: Record<string, unknown>;
|
|
98
|
+
}) => vue.VNodeChild) | undefined;
|
|
99
|
+
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
100
|
+
} | undefined;
|
|
90
101
|
'v-slots'?: {
|
|
91
102
|
default?: false | (((args_0: VInputSlot) => vue.VNodeChild) & (() => vue.VNodeChild)) | undefined;
|
|
92
103
|
prepend?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -159,6 +170,17 @@ declare const VCheckbox: vue.DefineComponent<{
|
|
|
159
170
|
}) => vue.VNodeChild) | undefined;
|
|
160
171
|
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
161
172
|
};
|
|
173
|
+
$slots?: {
|
|
174
|
+
default?: (((args_0: VInputSlot) => vue.VNodeChild) & (() => vue.VNodeChild)) | undefined;
|
|
175
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
176
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
177
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
178
|
+
label?: ((args_0: {
|
|
179
|
+
label: string | undefined;
|
|
180
|
+
props: Record<string, unknown>;
|
|
181
|
+
}) => vue.VNodeChild) | undefined;
|
|
182
|
+
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
183
|
+
} | undefined;
|
|
162
184
|
'v-slots'?: {
|
|
163
185
|
default?: false | (((args_0: VInputSlot) => vue.VNodeChild) & (() => vue.VNodeChild)) | undefined;
|
|
164
186
|
prepend?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -237,6 +259,14 @@ declare const VCheckboxBtn: vue.DefineComponent<{
|
|
|
237
259
|
}) => vue.VNodeChild) | undefined;
|
|
238
260
|
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
239
261
|
};
|
|
262
|
+
$slots?: {
|
|
263
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
264
|
+
label?: ((args_0: {
|
|
265
|
+
label: string | undefined;
|
|
266
|
+
props: Record<string, unknown>;
|
|
267
|
+
}) => vue.VNodeChild) | undefined;
|
|
268
|
+
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
269
|
+
} | undefined;
|
|
240
270
|
'v-slots'?: {
|
|
241
271
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
242
272
|
label?: false | ((args_0: {
|
|
@@ -288,6 +318,14 @@ declare const VCheckboxBtn: vue.DefineComponent<{
|
|
|
288
318
|
}) => vue.VNodeChild) | undefined;
|
|
289
319
|
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
290
320
|
};
|
|
321
|
+
$slots?: {
|
|
322
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
323
|
+
label?: ((args_0: {
|
|
324
|
+
label: string | undefined;
|
|
325
|
+
props: Record<string, unknown>;
|
|
326
|
+
}) => vue.VNodeChild) | undefined;
|
|
327
|
+
input?: ((args_0: SelectionControlSlot) => vue.VNodeChild) | undefined;
|
|
328
|
+
} | undefined;
|
|
291
329
|
'v-slots'?: {
|
|
292
330
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
293
331
|
label?: false | ((args_0: {
|
|
@@ -55,6 +55,12 @@ declare const VChip: vue.DefineComponent<{
|
|
|
55
55
|
prepend?: (() => vue.VNodeChild) | undefined;
|
|
56
56
|
append?: (() => vue.VNodeChild) | undefined;
|
|
57
57
|
};
|
|
58
|
+
$slots?: {
|
|
59
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
60
|
+
label?: (() => vue.VNodeChild) | undefined;
|
|
61
|
+
prepend?: (() => vue.VNodeChild) | undefined;
|
|
62
|
+
append?: (() => vue.VNodeChild) | undefined;
|
|
63
|
+
} | undefined;
|
|
58
64
|
'v-slots'?: {
|
|
59
65
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
60
66
|
label?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -117,6 +123,12 @@ declare const VChip: vue.DefineComponent<{
|
|
|
117
123
|
prepend?: (() => vue.VNodeChild) | undefined;
|
|
118
124
|
append?: (() => vue.VNodeChild) | undefined;
|
|
119
125
|
};
|
|
126
|
+
$slots?: {
|
|
127
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
128
|
+
label?: (() => vue.VNodeChild) | undefined;
|
|
129
|
+
prepend?: (() => vue.VNodeChild) | undefined;
|
|
130
|
+
append?: (() => vue.VNodeChild) | undefined;
|
|
131
|
+
} | undefined;
|
|
120
132
|
'v-slots'?: {
|
|
121
133
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
122
134
|
label?: false | (() => vue.VNodeChild) | undefined;
|
|
@@ -21,6 +21,9 @@ declare const VChipGroup: vue.DefineComponent<{
|
|
|
21
21
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
22
22
|
default?: (() => vue.VNodeChild) | undefined;
|
|
23
23
|
};
|
|
24
|
+
$slots?: {
|
|
25
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
26
|
+
} | undefined;
|
|
24
27
|
'v-slots'?: {
|
|
25
28
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
26
29
|
} | undefined;
|
|
@@ -47,6 +50,9 @@ declare const VChipGroup: vue.DefineComponent<{
|
|
|
47
50
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
48
51
|
default?: (() => vue.VNodeChild) | undefined;
|
|
49
52
|
};
|
|
53
|
+
$slots?: {
|
|
54
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
55
|
+
} | undefined;
|
|
50
56
|
'v-slots'?: {
|
|
51
57
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
52
58
|
} | undefined;
|
|
@@ -6,6 +6,9 @@ declare const VCode: vue.DefineComponent<{
|
|
|
6
6
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
7
7
|
default?: (() => vue.VNodeChild) | undefined;
|
|
8
8
|
};
|
|
9
|
+
$slots?: {
|
|
10
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
11
|
+
} | undefined;
|
|
9
12
|
'v-slots'?: {
|
|
10
13
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
11
14
|
} | undefined;
|
|
@@ -19,6 +22,9 @@ declare const VCode: vue.DefineComponent<{
|
|
|
19
22
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
20
23
|
default?: (() => vue.VNodeChild) | undefined;
|
|
21
24
|
};
|
|
25
|
+
$slots?: {
|
|
26
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
27
|
+
} | undefined;
|
|
22
28
|
'v-slots'?: {
|
|
23
29
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
24
30
|
} | undefined;
|
|
@@ -11,7 +11,8 @@ import { VSheet } from "../VSheet/index.mjs"; // Composables
|
|
|
11
11
|
import { makeElevationProps } from "../../composables/elevation.mjs";
|
|
12
12
|
import { makeRoundedProps } from "../../composables/rounded.mjs";
|
|
13
13
|
import { makeThemeProps } from "../../composables/theme.mjs";
|
|
14
|
-
import { useProxiedModel } from "../../composables/proxiedModel.mjs";
|
|
14
|
+
import { useProxiedModel } from "../../composables/proxiedModel.mjs";
|
|
15
|
+
import { provideDefaults } from "../../composables/defaults.mjs"; // Utilities
|
|
15
16
|
import { defineComponent, HSVtoCSS, useRender } from "../../util/index.mjs";
|
|
16
17
|
import { extractColor, modes, nullColor, parseColor } from "./util/index.mjs";
|
|
17
18
|
import { onMounted, ref } from 'vue';
|
|
@@ -89,6 +90,13 @@ export const VColorPicker = defineComponent({
|
|
|
89
90
|
onMounted(() => {
|
|
90
91
|
if (!props.modes.includes(mode.value)) mode.value = props.modes[0];
|
|
91
92
|
});
|
|
93
|
+
provideDefaults({
|
|
94
|
+
VSlider: {
|
|
95
|
+
color: undefined,
|
|
96
|
+
trackColor: undefined,
|
|
97
|
+
trackFillColor: undefined
|
|
98
|
+
}
|
|
99
|
+
});
|
|
92
100
|
useRender(() => _createVNode(VSheet, {
|
|
93
101
|
"rounded": props.rounded,
|
|
94
102
|
"elevation": props.elevation,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VColorPicker.mjs","names":["VColorPickerCanvas","VColorPickerEdit","VColorPickerPreview","VColorPickerSwatches","VSheet","makeElevationProps","makeRoundedProps","makeThemeProps","useProxiedModel","defineComponent","HSVtoCSS","useRender","extractColor","modes","nullColor","parseColor","onMounted","ref","VColorPicker","name","props","canvasHeight","type","String","Number","default","disabled","Boolean","dotSize","hideCanvas","hideSliders","hideInputs","mode","validator","v","Object","keys","includes","Array","isArray","every","m","showSwatches","swatches","swatchesMaxHeight","modelValue","width","emits","color","setup","lastPickedColor","currentColor","undefined","c","value","h","updateColor","hsva","rounded","elevation","theme","a","endsWith"],"sources":["../../../src/components/VColorPicker/VColorPicker.tsx"],"sourcesContent":["// Styles\nimport './VColorPicker.sass'\n\n// Components\nimport { VColorPickerCanvas } from './VColorPickerCanvas'\nimport { VColorPickerEdit } from './VColorPickerEdit'\nimport { VColorPickerPreview } from './VColorPickerPreview'\nimport { VColorPickerSwatches } from './VColorPickerSwatches'\nimport { VSheet } from '@/components/VSheet'\n\n// Composables\nimport { makeElevationProps } from '@/composables/elevation'\nimport { makeRoundedProps } from '@/composables/rounded'\nimport { makeThemeProps } from '@/composables/theme'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { defineComponent, HSVtoCSS, useRender } from '@/util'\nimport { extractColor, modes, nullColor, parseColor } from './util'\nimport { onMounted, ref } from 'vue'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { HSV } from '@/util'\n\nexport const VColorPicker = defineComponent({\n name: 'VColorPicker',\n\n props: {\n canvasHeight: {\n type: [String, Number],\n default: 150,\n },\n disabled: Boolean,\n dotSize: {\n type: [Number, String],\n default: 10,\n },\n hideCanvas: Boolean,\n hideSliders: Boolean,\n hideInputs: Boolean,\n mode: {\n type: String,\n default: 'rgba',\n validator: (v: string) => Object.keys(modes).includes(v),\n },\n modes: {\n type: Array as PropType<string[]>,\n default: () => Object.keys(modes),\n validator: (v: any) => Array.isArray(v) && v.every(m => Object.keys(modes).includes(m)),\n },\n showSwatches: Boolean,\n swatches: Array as PropType<string[][]>,\n swatchesMaxHeight: {\n type: [Number, String],\n default: 150,\n },\n modelValue: {\n type: [Object, String] as PropType<Record<string, unknown> | string | undefined | null>,\n },\n width: {\n type: [Number, String],\n default: 300,\n },\n\n ...makeElevationProps(),\n ...makeRoundedProps(),\n ...makeThemeProps(),\n },\n\n emits: {\n 'update:modelValue': (color: any) => true,\n 'update:mode': (mode: string) => true,\n },\n\n setup (props) {\n const mode = useProxiedModel(props, 'mode')\n const lastPickedColor = ref<HSV | null>(null)\n const currentColor = useProxiedModel(\n props,\n 'modelValue',\n undefined,\n v => {\n let c = parseColor(v)\n\n if (!c) return null\n\n if (lastPickedColor.value) {\n c = { ...c, h: lastPickedColor.value.h }\n lastPickedColor.value = null\n }\n\n return c\n },\n v => {\n if (!v) return null\n\n return extractColor(v, props.modelValue)\n }\n )\n\n const updateColor = (hsva: HSV) => {\n currentColor.value = hsva\n lastPickedColor.value = hsva\n }\n\n onMounted(() => {\n if (!props.modes.includes(mode.value)) mode.value = props.modes[0]\n })\n\n useRender(() => (\n <VSheet\n rounded={ props.rounded }\n elevation={ props.elevation }\n theme={ props.theme }\n class={[\n 'v-color-picker',\n ]}\n style={{\n '--v-color-picker-color-hsv': HSVtoCSS({ ...(currentColor.value ?? nullColor), a: 1 }),\n }}\n maxWidth={ props.width }\n >\n { !props.hideCanvas && (\n <VColorPickerCanvas\n key=\"canvas\"\n color={ currentColor.value }\n onUpdate:color={ updateColor }\n disabled={ props.disabled }\n dotSize={ props.dotSize }\n width={ props.width }\n height={ props.canvasHeight }\n />\n ) }\n\n { (!props.hideSliders || !props.hideInputs) && (\n <div key=\"controls\" class=\"v-color-picker__controls\">\n { !props.hideSliders && (\n <VColorPickerPreview\n key=\"preview\"\n color={ currentColor.value }\n onUpdate:color={ updateColor }\n hideAlpha={ !mode.value.endsWith('a') }\n disabled={ props.disabled }\n />\n ) }\n\n { !props.hideInputs && (\n <VColorPickerEdit\n key=\"edit\"\n modes={ props.modes }\n mode={ mode.value }\n onUpdate:mode={ m => mode.value = m }\n color={ currentColor.value }\n onUpdate:color={ updateColor }\n disabled={ props.disabled }\n />\n ) }\n </div>\n ) }\n\n { props.showSwatches && (\n <VColorPickerSwatches\n key=\"swatches\"\n color={ currentColor.value }\n onUpdate:color={ updateColor }\n maxHeight={ props.swatchesMaxHeight }\n swatches={ props.swatches }\n disabled={ props.disabled }\n />\n ) }\n </VSheet>\n ))\n\n return {}\n },\n})\n\nexport type VColorPicker = InstanceType<typeof VColorPicker>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,kBAAkB;AAAA,SAClBC,gBAAgB;AAAA,SAChBC,mBAAmB;AAAA,SACnBC,oBAAoB;AAAA,SACpBC,MAAM,+BAEf;AAAA,SACSC,kBAAkB;AAAA,SAClBC,gBAAgB;AAAA,SAChBC,cAAc;AAAA,SACdC,eAAe,
|
|
1
|
+
{"version":3,"file":"VColorPicker.mjs","names":["VColorPickerCanvas","VColorPickerEdit","VColorPickerPreview","VColorPickerSwatches","VSheet","makeElevationProps","makeRoundedProps","makeThemeProps","useProxiedModel","provideDefaults","defineComponent","HSVtoCSS","useRender","extractColor","modes","nullColor","parseColor","onMounted","ref","VColorPicker","name","props","canvasHeight","type","String","Number","default","disabled","Boolean","dotSize","hideCanvas","hideSliders","hideInputs","mode","validator","v","Object","keys","includes","Array","isArray","every","m","showSwatches","swatches","swatchesMaxHeight","modelValue","width","emits","color","setup","lastPickedColor","currentColor","undefined","c","value","h","updateColor","hsva","VSlider","trackColor","trackFillColor","rounded","elevation","theme","a","endsWith"],"sources":["../../../src/components/VColorPicker/VColorPicker.tsx"],"sourcesContent":["// Styles\nimport './VColorPicker.sass'\n\n// Components\nimport { VColorPickerCanvas } from './VColorPickerCanvas'\nimport { VColorPickerEdit } from './VColorPickerEdit'\nimport { VColorPickerPreview } from './VColorPickerPreview'\nimport { VColorPickerSwatches } from './VColorPickerSwatches'\nimport { VSheet } from '@/components/VSheet'\n\n// Composables\nimport { makeElevationProps } from '@/composables/elevation'\nimport { makeRoundedProps } from '@/composables/rounded'\nimport { makeThemeProps } from '@/composables/theme'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { provideDefaults } from '@/composables/defaults'\n\n// Utilities\nimport { defineComponent, HSVtoCSS, useRender } from '@/util'\nimport { extractColor, modes, nullColor, parseColor } from './util'\nimport { onMounted, ref } from 'vue'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { HSV } from '@/util'\n\nexport const VColorPicker = defineComponent({\n name: 'VColorPicker',\n\n props: {\n canvasHeight: {\n type: [String, Number],\n default: 150,\n },\n disabled: Boolean,\n dotSize: {\n type: [Number, String],\n default: 10,\n },\n hideCanvas: Boolean,\n hideSliders: Boolean,\n hideInputs: Boolean,\n mode: {\n type: String,\n default: 'rgba',\n validator: (v: string) => Object.keys(modes).includes(v),\n },\n modes: {\n type: Array as PropType<string[]>,\n default: () => Object.keys(modes),\n validator: (v: any) => Array.isArray(v) && v.every(m => Object.keys(modes).includes(m)),\n },\n showSwatches: Boolean,\n swatches: Array as PropType<string[][]>,\n swatchesMaxHeight: {\n type: [Number, String],\n default: 150,\n },\n modelValue: {\n type: [Object, String] as PropType<Record<string, unknown> | string | undefined | null>,\n },\n width: {\n type: [Number, String],\n default: 300,\n },\n\n ...makeElevationProps(),\n ...makeRoundedProps(),\n ...makeThemeProps(),\n },\n\n emits: {\n 'update:modelValue': (color: any) => true,\n 'update:mode': (mode: string) => true,\n },\n\n setup (props) {\n const mode = useProxiedModel(props, 'mode')\n const lastPickedColor = ref<HSV | null>(null)\n const currentColor = useProxiedModel(\n props,\n 'modelValue',\n undefined,\n v => {\n let c = parseColor(v)\n\n if (!c) return null\n\n if (lastPickedColor.value) {\n c = { ...c, h: lastPickedColor.value.h }\n lastPickedColor.value = null\n }\n\n return c\n },\n v => {\n if (!v) return null\n\n return extractColor(v, props.modelValue)\n }\n )\n\n const updateColor = (hsva: HSV) => {\n currentColor.value = hsva\n lastPickedColor.value = hsva\n }\n\n onMounted(() => {\n if (!props.modes.includes(mode.value)) mode.value = props.modes[0]\n })\n\n provideDefaults({\n VSlider: {\n color: undefined,\n trackColor: undefined,\n trackFillColor: undefined,\n },\n })\n\n useRender(() => (\n <VSheet\n rounded={ props.rounded }\n elevation={ props.elevation }\n theme={ props.theme }\n class={[\n 'v-color-picker',\n ]}\n style={{\n '--v-color-picker-color-hsv': HSVtoCSS({ ...(currentColor.value ?? nullColor), a: 1 }),\n }}\n maxWidth={ props.width }\n >\n { !props.hideCanvas && (\n <VColorPickerCanvas\n key=\"canvas\"\n color={ currentColor.value }\n onUpdate:color={ updateColor }\n disabled={ props.disabled }\n dotSize={ props.dotSize }\n width={ props.width }\n height={ props.canvasHeight }\n />\n ) }\n\n { (!props.hideSliders || !props.hideInputs) && (\n <div key=\"controls\" class=\"v-color-picker__controls\">\n { !props.hideSliders && (\n <VColorPickerPreview\n key=\"preview\"\n color={ currentColor.value }\n onUpdate:color={ updateColor }\n hideAlpha={ !mode.value.endsWith('a') }\n disabled={ props.disabled }\n />\n ) }\n\n { !props.hideInputs && (\n <VColorPickerEdit\n key=\"edit\"\n modes={ props.modes }\n mode={ mode.value }\n onUpdate:mode={ m => mode.value = m }\n color={ currentColor.value }\n onUpdate:color={ updateColor }\n disabled={ props.disabled }\n />\n ) }\n </div>\n ) }\n\n { props.showSwatches && (\n <VColorPickerSwatches\n key=\"swatches\"\n color={ currentColor.value }\n onUpdate:color={ updateColor }\n maxHeight={ props.swatchesMaxHeight }\n swatches={ props.swatches }\n disabled={ props.disabled }\n />\n ) }\n </VSheet>\n ))\n\n return {}\n },\n})\n\nexport type VColorPicker = InstanceType<typeof VColorPicker>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,kBAAkB;AAAA,SAClBC,gBAAgB;AAAA,SAChBC,mBAAmB;AAAA,SACnBC,oBAAoB;AAAA,SACpBC,MAAM,+BAEf;AAAA,SACSC,kBAAkB;AAAA,SAClBC,gBAAgB;AAAA,SAChBC,cAAc;AAAA,SACdC,eAAe;AAAA,SACfC,eAAe,0CAExB;AAAA,SACSC,eAAe,EAAEC,QAAQ,EAAEC,SAAS;AAAA,SACpCC,YAAY,EAAEC,KAAK,EAAEC,SAAS,EAAEC,UAAU;AACnD,SAASC,SAAS,EAAEC,GAAG,QAAQ,KAAK;;AAEpC;;AAIA,OAAO,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