@vuetify/nightly 3.2.0-dev-20230214.0 → 3.2.0-dev-20230309.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -17
- package/dist/json/attributes.json +38 -34
- package/dist/json/importMap.json +4 -4
- package/dist/json/tags.json +1 -0
- package/dist/json/web-types.json +993 -90
- package/dist/vuetify-labs.css +1520 -1376
- package/dist/vuetify-labs.d.ts +3476 -180
- package/dist/vuetify-labs.esm.js +249 -177
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +249 -177
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +321 -177
- package/dist/vuetify.d.ts +1939 -101
- package/dist/vuetify.esm.js +213 -162
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +213 -162
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +700 -701
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +1 -1
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/_variables.scss +1 -1
- package/lib/components/VAlert/index.d.ts +22 -0
- package/lib/components/VApp/index.d.ts +6 -0
- package/lib/components/VAppBar/VAppBar.mjs +7 -2
- package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
- package/lib/components/VAppBar/index.d.ts +36 -0
- package/lib/components/VAutocomplete/VAutocomplete.mjs +10 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.ts +120 -15
- package/lib/components/VAvatar/index.d.ts +6 -0
- package/lib/components/VBadge/index.d.ts +8 -0
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBanner/index.d.ts +24 -0
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs +6 -2
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
- package/lib/components/VBottomNavigation/index.d.ts +6 -0
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/index.d.ts +28 -4
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/index.d.ts +12 -0
- package/lib/components/VBtnGroup/index.d.ts +6 -0
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.ts +6 -0
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/VCardItem.mjs.map +1 -1
- package/lib/components/VCard/index.d.ts +60 -0
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/index.d.ts +60 -0
- package/lib/components/VCheckbox/index.d.ts +38 -0
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.ts +12 -0
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- 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/VColorPickerSwatches.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/VCombobox.mjs +10 -1
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.ts +120 -15
- 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/VDivider.mjs.map +1 -1
- package/lib/components/VDivider/index.d.ts +6 -0
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.ts +49 -12
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/index.d.ts +20 -6
- package/lib/components/VFileInput/VFileInput.mjs +1 -0
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- 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/VInput.mjs.map +1 -1
- package/lib/components/VInput/index.d.ts +12 -0
- package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
- 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/VListGroup.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListSubheader.mjs.map +1 -1
- 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/VMenu.mjs +6 -5
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/index.d.ts +65 -1
- package/lib/components/VMessages/VMessages.mjs.map +1 -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/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.ts +18 -0
- package/lib/components/VOverlay/scrollStrategies.mjs +2 -2
- package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
- package/lib/components/VPagination/VPagination.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/VProgressCircular.mjs.map +1 -1
- package/lib/components/VProgressCircular/index.d.ts +6 -0
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/index.d.ts +12 -0
- package/lib/components/VRadio/index.d.ts +16 -0
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/index.d.ts +22 -0
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/index.d.ts +16 -0
- package/lib/components/VRating/VRating.css +0 -4
- package/lib/components/VRating/VRating.mjs +6 -35
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VRating/VRating.sass +0 -5
- package/lib/components/VRating/index.d.ts +9 -0
- package/lib/components/VResponsive/index.d.ts +8 -0
- package/lib/components/VSelect/VSelect.mjs +10 -1
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.ts +186 -15
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- 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/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/index.d.ts +26 -0
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSlider/index.d.ts +16 -0
- package/lib/components/VSnackbar/VSnackbar.css +0 -2
- package/lib/components/VSnackbar/VSnackbar.mjs +6 -8
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.sass +0 -2
- package/lib/components/VSnackbar/index.d.ts +44 -1
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/index.d.ts +22 -0
- package/lib/components/VSystemBar/VSystemBar.css +5 -1
- package/lib/components/VSystemBar/VSystemBar.mjs +6 -2
- package/lib/components/VSystemBar/VSystemBar.mjs.map +1 -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/VTable.mjs.map +1 -1
- package/lib/components/VTable/index.d.ts +12 -0
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/index.d.ts +12 -0
- package/lib/components/VTextField/VTextField.mjs +1 -0
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/index.d.ts +54 -6
- package/lib/components/VTextarea/VTextarea.mjs +1 -0
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/index.d.ts +39 -1
- package/lib/components/VThemeProvider/index.d.ts +6 -0
- package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
- package/lib/components/VTimeline/index.d.ts +16 -0
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
- package/lib/components/VToolbar/index.d.ts +30 -0
- package/lib/components/VTooltip/VTooltip.mjs +2 -2
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/index.d.ts +49 -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 +1954 -116
- package/lib/components/transitions/createTransition.mjs +1 -1
- package/lib/components/transitions/createTransition.mjs.map +1 -1
- package/lib/components/transitions/index.d.ts +96 -0
- package/lib/composables/defaults.mjs +3 -1
- package/lib/composables/defaults.mjs.map +1 -1
- package/lib/composables/display.mjs +13 -10
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/loader.mjs.map +1 -1
- 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/stack.mjs +2 -2
- package/lib/composables/stack.mjs.map +1 -1
- package/lib/composables/theme.mjs +28 -23
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/variant.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/labs/VDataTable/VDataTable.mjs +4 -2
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
- 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/VDataTableVirtual.mjs +4 -2
- package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/options.mjs +7 -1
- package/lib/labs/VDataTable/composables/options.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/locale/index.mjs +1 -1
- package/lib/locale/index.mjs.map +1 -1
- package/lib/styles/elements/_global.sass +0 -4
- package/lib/styles/generic/_index.scss +0 -1
- package/lib/styles/generic/_transitions.scss +111 -9
- package/lib/styles/main.css +312 -167
- package/lib/styles/tools/_sheet.sass +3 -6
- package/lib/styles/utilities/_display.sass +6 -5
- package/lib/styles/utilities/_elevation.scss +13 -0
- package/lib/styles/utilities/_index.sass +3 -2
- package/lib/styles/utilities/_screenreaders.sass +13 -11
- 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 +18 -5
- package/lib/styles/generic/_elevation.scss +0 -10
|
@@ -154,6 +154,9 @@ declare const VSelect: {
|
|
|
154
154
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
155
155
|
default?: (() => vue.VNodeChild) | undefined;
|
|
156
156
|
};
|
|
157
|
+
$slots?: {
|
|
158
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
159
|
+
} | undefined;
|
|
157
160
|
'v-slots'?: {
|
|
158
161
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
159
162
|
} | undefined;
|
|
@@ -165,6 +168,9 @@ declare const VSelect: {
|
|
|
165
168
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
166
169
|
default?: (() => vue.VNodeChild) | undefined;
|
|
167
170
|
};
|
|
171
|
+
$slots?: {
|
|
172
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
173
|
+
} | undefined;
|
|
168
174
|
'v-slots'?: {
|
|
169
175
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
170
176
|
} | undefined;
|
|
@@ -220,6 +226,9 @@ declare const VSelect: {
|
|
|
220
226
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
221
227
|
default?: (() => vue.VNodeChild) | undefined;
|
|
222
228
|
};
|
|
229
|
+
$slots?: {
|
|
230
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
231
|
+
} | undefined;
|
|
223
232
|
'v-slots'?: {
|
|
224
233
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
225
234
|
} | undefined;
|
|
@@ -231,6 +240,9 @@ declare const VSelect: {
|
|
|
231
240
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
232
241
|
default?: (() => vue.VNodeChild) | undefined;
|
|
233
242
|
};
|
|
243
|
+
$slots?: {
|
|
244
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
245
|
+
} | undefined;
|
|
234
246
|
'v-slots'?: {
|
|
235
247
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
236
248
|
} | undefined;
|
|
@@ -247,6 +259,9 @@ declare const VSelect: {
|
|
|
247
259
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
248
260
|
default?: (() => vue.VNodeChild) | undefined;
|
|
249
261
|
};
|
|
262
|
+
$slots?: {
|
|
263
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
264
|
+
} | undefined;
|
|
250
265
|
'v-slots'?: {
|
|
251
266
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
252
267
|
} | undefined;
|
|
@@ -258,6 +273,9 @@ declare const VSelect: {
|
|
|
258
273
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
259
274
|
default?: (() => vue.VNodeChild) | undefined;
|
|
260
275
|
};
|
|
276
|
+
$slots?: {
|
|
277
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
278
|
+
} | undefined;
|
|
261
279
|
'v-slots'?: {
|
|
262
280
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
263
281
|
} | undefined;
|
|
@@ -392,6 +410,9 @@ declare const VSelect: {
|
|
|
392
410
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
393
411
|
default?: (() => vue.VNodeChild) | undefined;
|
|
394
412
|
};
|
|
413
|
+
$slots?: {
|
|
414
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
415
|
+
} | undefined;
|
|
395
416
|
'v-slots'?: {
|
|
396
417
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
397
418
|
} | undefined;
|
|
@@ -403,6 +424,9 @@ declare const VSelect: {
|
|
|
403
424
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
404
425
|
default?: (() => vue.VNodeChild) | undefined;
|
|
405
426
|
};
|
|
427
|
+
$slots?: {
|
|
428
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
429
|
+
} | undefined;
|
|
406
430
|
'v-slots'?: {
|
|
407
431
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
408
432
|
} | undefined;
|
|
@@ -442,6 +466,9 @@ declare const VSelect: {
|
|
|
442
466
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
443
467
|
default?: (() => vue.VNodeChild) | undefined;
|
|
444
468
|
};
|
|
469
|
+
$slots?: {
|
|
470
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
471
|
+
} | undefined;
|
|
445
472
|
'v-slots'?: {
|
|
446
473
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
447
474
|
} | undefined;
|
|
@@ -453,6 +480,9 @@ declare const VSelect: {
|
|
|
453
480
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
454
481
|
default?: (() => vue.VNodeChild) | undefined;
|
|
455
482
|
};
|
|
483
|
+
$slots?: {
|
|
484
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
485
|
+
} | undefined;
|
|
456
486
|
'v-slots'?: {
|
|
457
487
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
458
488
|
} | undefined;
|
|
@@ -504,6 +534,15 @@ declare const VSelect: {
|
|
|
504
534
|
props: Record<string, any>;
|
|
505
535
|
}) => vue.VNodeChild) | undefined;
|
|
506
536
|
};
|
|
537
|
+
$slots?: {
|
|
538
|
+
default?: ((args_0: {
|
|
539
|
+
isActive: vue.Ref<boolean>;
|
|
540
|
+
}) => vue.VNodeChild) | undefined;
|
|
541
|
+
activator?: ((args_0: {
|
|
542
|
+
isActive: boolean;
|
|
543
|
+
props: Record<string, any>;
|
|
544
|
+
}) => vue.VNodeChild) | undefined;
|
|
545
|
+
} | undefined;
|
|
507
546
|
'v-slots'?: {
|
|
508
547
|
default?: false | ((args_0: {
|
|
509
548
|
isActive: vue.Ref<boolean>;
|
|
@@ -535,7 +574,7 @@ declare const VSelect: {
|
|
|
535
574
|
type: PropType<typeof deepEqual>;
|
|
536
575
|
default: typeof deepEqual;
|
|
537
576
|
};
|
|
538
|
-
}, "multiple" | "$children" | "
|
|
577
|
+
}, "multiple" | "$children" | "$slots" | "v-slots" | "items" | "v-slot:append" | "v-slot:prepend" | "modelValue" | "onUpdate:modelValue" | "v-slot:loader" | "v-slot:details" | "v-slot:clear" | "v-slot:label" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">>> & {
|
|
539
578
|
"onUpdate:menu"?: ((val: boolean) => any) | undefined;
|
|
540
579
|
} & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, "reverse" | "type" | "error" | "active" | "direction" | "transition" | "menu" | "autofocus" | "eager" | "disabled" | "readonly" | "noDataText" | "messages" | "density" | "variant" | "clearIcon" | "focused" | "errorMessages" | "maxErrors" | "rules" | "clearable" | "persistentClear" | "singleLine" | "persistentHint" | "persistentPlaceholder" | "persistentCounter" | "valueComparator" | "itemTitle" | "itemValue" | "itemChildren" | "itemProps" | "chips" | "closableChips" | "hideNoData" | "hideSelected" | "menuIcon" | "openOnClear">;
|
|
541
580
|
$attrs: {
|
|
@@ -568,6 +607,9 @@ declare const VSelect: {
|
|
|
568
607
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
569
608
|
default?: (() => vue.VNodeChild) | undefined;
|
|
570
609
|
};
|
|
610
|
+
$slots?: {
|
|
611
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
612
|
+
} | undefined;
|
|
571
613
|
'v-slots'?: {
|
|
572
614
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
573
615
|
} | undefined;
|
|
@@ -579,6 +621,9 @@ declare const VSelect: {
|
|
|
579
621
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
580
622
|
default?: (() => vue.VNodeChild) | undefined;
|
|
581
623
|
};
|
|
624
|
+
$slots?: {
|
|
625
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
626
|
+
} | undefined;
|
|
582
627
|
'v-slots'?: {
|
|
583
628
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
584
629
|
} | undefined;
|
|
@@ -595,6 +640,9 @@ declare const VSelect: {
|
|
|
595
640
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
596
641
|
default?: (() => vue.VNodeChild) | undefined;
|
|
597
642
|
};
|
|
643
|
+
$slots?: {
|
|
644
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
645
|
+
} | undefined;
|
|
598
646
|
'v-slots'?: {
|
|
599
647
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
600
648
|
} | undefined;
|
|
@@ -606,6 +654,9 @@ declare const VSelect: {
|
|
|
606
654
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
607
655
|
default?: (() => vue.VNodeChild) | undefined;
|
|
608
656
|
};
|
|
657
|
+
$slots?: {
|
|
658
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
659
|
+
} | undefined;
|
|
609
660
|
'v-slots'?: {
|
|
610
661
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
611
662
|
} | undefined;
|
|
@@ -740,6 +791,9 @@ declare const VSelect: {
|
|
|
740
791
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
741
792
|
default?: (() => vue.VNodeChild) | undefined;
|
|
742
793
|
};
|
|
794
|
+
$slots?: {
|
|
795
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
796
|
+
} | undefined;
|
|
743
797
|
'v-slots'?: {
|
|
744
798
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
745
799
|
} | undefined;
|
|
@@ -751,6 +805,9 @@ declare const VSelect: {
|
|
|
751
805
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
752
806
|
default?: (() => vue.VNodeChild) | undefined;
|
|
753
807
|
};
|
|
808
|
+
$slots?: {
|
|
809
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
810
|
+
} | undefined;
|
|
754
811
|
'v-slots'?: {
|
|
755
812
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
756
813
|
} | undefined;
|
|
@@ -790,6 +847,9 @@ declare const VSelect: {
|
|
|
790
847
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
791
848
|
default?: (() => vue.VNodeChild) | undefined;
|
|
792
849
|
};
|
|
850
|
+
$slots?: {
|
|
851
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
852
|
+
} | undefined;
|
|
793
853
|
'v-slots'?: {
|
|
794
854
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
795
855
|
} | undefined;
|
|
@@ -801,6 +861,9 @@ declare const VSelect: {
|
|
|
801
861
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
802
862
|
default?: (() => vue.VNodeChild) | undefined;
|
|
803
863
|
};
|
|
864
|
+
$slots?: {
|
|
865
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
866
|
+
} | undefined;
|
|
804
867
|
'v-slots'?: {
|
|
805
868
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
806
869
|
} | undefined;
|
|
@@ -852,6 +915,15 @@ declare const VSelect: {
|
|
|
852
915
|
props: Record<string, any>;
|
|
853
916
|
}) => vue.VNodeChild) | undefined;
|
|
854
917
|
};
|
|
918
|
+
$slots?: {
|
|
919
|
+
default?: ((args_0: {
|
|
920
|
+
isActive: vue.Ref<boolean>;
|
|
921
|
+
}) => vue.VNodeChild) | undefined;
|
|
922
|
+
activator?: ((args_0: {
|
|
923
|
+
isActive: boolean;
|
|
924
|
+
props: Record<string, any>;
|
|
925
|
+
}) => vue.VNodeChild) | undefined;
|
|
926
|
+
} | undefined;
|
|
855
927
|
'v-slots'?: {
|
|
856
928
|
default?: false | ((args_0: {
|
|
857
929
|
isActive: vue.Ref<boolean>;
|
|
@@ -883,17 +955,15 @@ declare const VSelect: {
|
|
|
883
955
|
type: PropType<typeof deepEqual>;
|
|
884
956
|
default: typeof deepEqual;
|
|
885
957
|
};
|
|
886
|
-
}, "multiple" | "$children" | "
|
|
958
|
+
}, "multiple" | "$children" | "$slots" | "v-slots" | "items" | "v-slot:append" | "v-slot:prepend" | "modelValue" | "onUpdate:modelValue" | "v-slot:loader" | "v-slot:details" | "v-slot:clear" | "v-slot:label" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">>> & {
|
|
887
959
|
"onUpdate:menu"?: ((val: boolean) => any) | undefined;
|
|
888
960
|
}, {
|
|
889
|
-
menu: vue.
|
|
890
|
-
readonly externalValue: boolean;
|
|
891
|
-
};
|
|
961
|
+
menu: vue.WritableComputedRef<boolean>;
|
|
892
962
|
select: (item: InternalItem) => void;
|
|
893
963
|
} & Omit<any, string | number | symbol>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
|
894
964
|
'update:modelValue': (val: any) => boolean;
|
|
895
965
|
'update:menu': (val: boolean) => true;
|
|
896
|
-
}, "multiple" | "$children" | "
|
|
966
|
+
}, "multiple" | "$children" | "$slots" | "v-slots" | "items" | "v-slot:append" | "v-slot:prepend" | "modelValue" | "update:modelValue" | "v-slot:loader" | "v-slot:details" | "v-slot:clear" | "v-slot:label" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">, string, {
|
|
897
967
|
reverse: boolean;
|
|
898
968
|
type: string;
|
|
899
969
|
error: boolean;
|
|
@@ -908,6 +978,9 @@ declare const VSelect: {
|
|
|
908
978
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
909
979
|
default?: (() => vue.VNodeChild) | undefined;
|
|
910
980
|
};
|
|
981
|
+
$slots?: {
|
|
982
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
983
|
+
} | undefined;
|
|
911
984
|
'v-slots'?: {
|
|
912
985
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
913
986
|
} | undefined;
|
|
@@ -919,6 +992,9 @@ declare const VSelect: {
|
|
|
919
992
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
920
993
|
default?: (() => vue.VNodeChild) | undefined;
|
|
921
994
|
};
|
|
995
|
+
$slots?: {
|
|
996
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
997
|
+
} | undefined;
|
|
922
998
|
'v-slots'?: {
|
|
923
999
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
924
1000
|
} | undefined;
|
|
@@ -994,6 +1070,9 @@ declare const VSelect: {
|
|
|
994
1070
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
995
1071
|
default?: (() => vue.VNodeChild) | undefined;
|
|
996
1072
|
};
|
|
1073
|
+
$slots?: {
|
|
1074
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1075
|
+
} | undefined;
|
|
997
1076
|
'v-slots'?: {
|
|
998
1077
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
999
1078
|
} | undefined;
|
|
@@ -1005,6 +1084,9 @@ declare const VSelect: {
|
|
|
1005
1084
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1006
1085
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1007
1086
|
};
|
|
1087
|
+
$slots?: {
|
|
1088
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1089
|
+
} | undefined;
|
|
1008
1090
|
'v-slots'?: {
|
|
1009
1091
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1010
1092
|
} | undefined;
|
|
@@ -1021,6 +1103,9 @@ declare const VSelect: {
|
|
|
1021
1103
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1022
1104
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1023
1105
|
};
|
|
1106
|
+
$slots?: {
|
|
1107
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1108
|
+
} | undefined;
|
|
1024
1109
|
'v-slots'?: {
|
|
1025
1110
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1026
1111
|
} | undefined;
|
|
@@ -1032,6 +1117,9 @@ declare const VSelect: {
|
|
|
1032
1117
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1033
1118
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1034
1119
|
};
|
|
1120
|
+
$slots?: {
|
|
1121
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1122
|
+
} | undefined;
|
|
1035
1123
|
'v-slots'?: {
|
|
1036
1124
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1037
1125
|
} | undefined;
|
|
@@ -1166,6 +1254,9 @@ declare const VSelect: {
|
|
|
1166
1254
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1167
1255
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1168
1256
|
};
|
|
1257
|
+
$slots?: {
|
|
1258
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1259
|
+
} | undefined;
|
|
1169
1260
|
'v-slots'?: {
|
|
1170
1261
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1171
1262
|
} | undefined;
|
|
@@ -1177,6 +1268,9 @@ declare const VSelect: {
|
|
|
1177
1268
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1178
1269
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1179
1270
|
};
|
|
1271
|
+
$slots?: {
|
|
1272
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1273
|
+
} | undefined;
|
|
1180
1274
|
'v-slots'?: {
|
|
1181
1275
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1182
1276
|
} | undefined;
|
|
@@ -1216,6 +1310,9 @@ declare const VSelect: {
|
|
|
1216
1310
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1217
1311
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1218
1312
|
};
|
|
1313
|
+
$slots?: {
|
|
1314
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1315
|
+
} | undefined;
|
|
1219
1316
|
'v-slots'?: {
|
|
1220
1317
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1221
1318
|
} | undefined;
|
|
@@ -1227,6 +1324,9 @@ declare const VSelect: {
|
|
|
1227
1324
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1228
1325
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1229
1326
|
};
|
|
1327
|
+
$slots?: {
|
|
1328
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1329
|
+
} | undefined;
|
|
1230
1330
|
'v-slots'?: {
|
|
1231
1331
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1232
1332
|
} | undefined;
|
|
@@ -1278,6 +1378,15 @@ declare const VSelect: {
|
|
|
1278
1378
|
props: Record<string, any>;
|
|
1279
1379
|
}) => vue.VNodeChild) | undefined;
|
|
1280
1380
|
};
|
|
1381
|
+
$slots?: {
|
|
1382
|
+
default?: ((args_0: {
|
|
1383
|
+
isActive: vue.Ref<boolean>;
|
|
1384
|
+
}) => vue.VNodeChild) | undefined;
|
|
1385
|
+
activator?: ((args_0: {
|
|
1386
|
+
isActive: boolean;
|
|
1387
|
+
props: Record<string, any>;
|
|
1388
|
+
}) => vue.VNodeChild) | undefined;
|
|
1389
|
+
} | undefined;
|
|
1281
1390
|
'v-slots'?: {
|
|
1282
1391
|
default?: false | ((args_0: {
|
|
1283
1392
|
isActive: vue.Ref<boolean>;
|
|
@@ -1309,12 +1418,10 @@ declare const VSelect: {
|
|
|
1309
1418
|
type: PropType<typeof deepEqual>;
|
|
1310
1419
|
default: typeof deepEqual;
|
|
1311
1420
|
};
|
|
1312
|
-
}, "multiple" | "$children" | "
|
|
1421
|
+
}, "multiple" | "$children" | "$slots" | "v-slots" | "items" | "v-slot:append" | "v-slot:prepend" | "modelValue" | "onUpdate:modelValue" | "v-slot:loader" | "v-slot:details" | "v-slot:clear" | "v-slot:label" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">>> & {
|
|
1313
1422
|
"onUpdate:menu"?: ((val: boolean) => any) | undefined;
|
|
1314
1423
|
} & vue.ShallowUnwrapRef<{
|
|
1315
|
-
menu: vue.
|
|
1316
|
-
readonly externalValue: boolean;
|
|
1317
|
-
};
|
|
1424
|
+
menu: vue.WritableComputedRef<boolean>;
|
|
1318
1425
|
select: (item: InternalItem) => void;
|
|
1319
1426
|
} & Omit<any, string | number | symbol>> & {} & vue.ComponentCustomProperties & {};
|
|
1320
1427
|
__isFragment?: undefined;
|
|
@@ -1337,6 +1444,9 @@ declare const VSelect: {
|
|
|
1337
1444
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1338
1445
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1339
1446
|
};
|
|
1447
|
+
$slots?: {
|
|
1448
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1449
|
+
} | undefined;
|
|
1340
1450
|
'v-slots'?: {
|
|
1341
1451
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1342
1452
|
} | undefined;
|
|
@@ -1348,6 +1458,9 @@ declare const VSelect: {
|
|
|
1348
1458
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1349
1459
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1350
1460
|
};
|
|
1461
|
+
$slots?: {
|
|
1462
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1463
|
+
} | undefined;
|
|
1351
1464
|
'v-slots'?: {
|
|
1352
1465
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1353
1466
|
} | undefined;
|
|
@@ -1364,6 +1477,9 @@ declare const VSelect: {
|
|
|
1364
1477
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1365
1478
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1366
1479
|
};
|
|
1480
|
+
$slots?: {
|
|
1481
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1482
|
+
} | undefined;
|
|
1367
1483
|
'v-slots'?: {
|
|
1368
1484
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1369
1485
|
} | undefined;
|
|
@@ -1375,6 +1491,9 @@ declare const VSelect: {
|
|
|
1375
1491
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1376
1492
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1377
1493
|
};
|
|
1494
|
+
$slots?: {
|
|
1495
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1496
|
+
} | undefined;
|
|
1378
1497
|
'v-slots'?: {
|
|
1379
1498
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1380
1499
|
} | undefined;
|
|
@@ -1509,6 +1628,9 @@ declare const VSelect: {
|
|
|
1509
1628
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1510
1629
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1511
1630
|
};
|
|
1631
|
+
$slots?: {
|
|
1632
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1633
|
+
} | undefined;
|
|
1512
1634
|
'v-slots'?: {
|
|
1513
1635
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1514
1636
|
} | undefined;
|
|
@@ -1520,6 +1642,9 @@ declare const VSelect: {
|
|
|
1520
1642
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1521
1643
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1522
1644
|
};
|
|
1645
|
+
$slots?: {
|
|
1646
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1647
|
+
} | undefined;
|
|
1523
1648
|
'v-slots'?: {
|
|
1524
1649
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1525
1650
|
} | undefined;
|
|
@@ -1559,6 +1684,9 @@ declare const VSelect: {
|
|
|
1559
1684
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1560
1685
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1561
1686
|
};
|
|
1687
|
+
$slots?: {
|
|
1688
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1689
|
+
} | undefined;
|
|
1562
1690
|
'v-slots'?: {
|
|
1563
1691
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1564
1692
|
} | undefined;
|
|
@@ -1570,6 +1698,9 @@ declare const VSelect: {
|
|
|
1570
1698
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1571
1699
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1572
1700
|
};
|
|
1701
|
+
$slots?: {
|
|
1702
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1703
|
+
} | undefined;
|
|
1573
1704
|
'v-slots'?: {
|
|
1574
1705
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1575
1706
|
} | undefined;
|
|
@@ -1621,6 +1752,15 @@ declare const VSelect: {
|
|
|
1621
1752
|
props: Record<string, any>;
|
|
1622
1753
|
}) => vue.VNodeChild) | undefined;
|
|
1623
1754
|
};
|
|
1755
|
+
$slots?: {
|
|
1756
|
+
default?: ((args_0: {
|
|
1757
|
+
isActive: vue.Ref<boolean>;
|
|
1758
|
+
}) => vue.VNodeChild) | undefined;
|
|
1759
|
+
activator?: ((args_0: {
|
|
1760
|
+
isActive: boolean;
|
|
1761
|
+
props: Record<string, any>;
|
|
1762
|
+
}) => vue.VNodeChild) | undefined;
|
|
1763
|
+
} | undefined;
|
|
1624
1764
|
'v-slots'?: {
|
|
1625
1765
|
default?: false | ((args_0: {
|
|
1626
1766
|
isActive: vue.Ref<boolean>;
|
|
@@ -1652,17 +1792,15 @@ declare const VSelect: {
|
|
|
1652
1792
|
type: PropType<typeof deepEqual>;
|
|
1653
1793
|
default: typeof deepEqual;
|
|
1654
1794
|
};
|
|
1655
|
-
}, "multiple" | "$children" | "
|
|
1795
|
+
}, "multiple" | "$children" | "$slots" | "v-slots" | "items" | "v-slot:append" | "v-slot:prepend" | "modelValue" | "onUpdate:modelValue" | "v-slot:loader" | "v-slot:details" | "v-slot:clear" | "v-slot:label" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">>> & {
|
|
1656
1796
|
"onUpdate:menu"?: ((val: boolean) => any) | undefined;
|
|
1657
1797
|
}, {
|
|
1658
|
-
menu: vue.
|
|
1659
|
-
readonly externalValue: boolean;
|
|
1660
|
-
};
|
|
1798
|
+
menu: vue.WritableComputedRef<boolean>;
|
|
1661
1799
|
select: (item: InternalItem) => void;
|
|
1662
1800
|
} & Omit<any, string | number | symbol>, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Omit<{
|
|
1663
1801
|
'update:modelValue': (val: any) => boolean;
|
|
1664
1802
|
'update:menu': (val: boolean) => true;
|
|
1665
|
-
}, "multiple" | "$children" | "
|
|
1803
|
+
}, "multiple" | "$children" | "$slots" | "v-slots" | "items" | "v-slot:append" | "v-slot:prepend" | "modelValue" | "update:modelValue" | "v-slot:loader" | "v-slot:details" | "v-slot:clear" | "v-slot:label" | "v-slot:prepend-inner" | "v-slot:append-inner" | "v-slot:item" | "returnObject" | "v-slot:chip" | "v-slot:selection" | "v-slot:prepend-item" | "v-slot:append-item" | "v-slot:no-data">, string, {
|
|
1666
1804
|
reverse: boolean;
|
|
1667
1805
|
type: string;
|
|
1668
1806
|
error: boolean;
|
|
@@ -1677,6 +1815,9 @@ declare const VSelect: {
|
|
|
1677
1815
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1678
1816
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1679
1817
|
};
|
|
1818
|
+
$slots?: {
|
|
1819
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1820
|
+
} | undefined;
|
|
1680
1821
|
'v-slots'?: {
|
|
1681
1822
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1682
1823
|
} | undefined;
|
|
@@ -1688,6 +1829,9 @@ declare const VSelect: {
|
|
|
1688
1829
|
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
|
1689
1830
|
default?: (() => vue.VNodeChild) | undefined;
|
|
1690
1831
|
};
|
|
1832
|
+
$slots?: {
|
|
1833
|
+
default?: (() => vue.VNodeChild) | undefined;
|
|
1834
|
+
} | undefined;
|
|
1691
1835
|
'v-slots'?: {
|
|
1692
1836
|
default?: false | (() => vue.VNodeChild) | undefined;
|
|
1693
1837
|
} | undefined;
|
|
@@ -1761,6 +1905,33 @@ declare const VSelect: {
|
|
|
1761
1905
|
'append-item'?: (() => vue.VNodeChild) | undefined;
|
|
1762
1906
|
'no-data'?: (() => vue.VNodeChild) | undefined;
|
|
1763
1907
|
};
|
|
1908
|
+
$slots?: {
|
|
1909
|
+
clear?: (() => vue.VNodeChild) | undefined;
|
|
1910
|
+
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
1911
|
+
label?: ((args_0: DefaultInputSlot & VInputSlot) => vue.VNodeChild) | undefined;
|
|
1912
|
+
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
1913
|
+
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
1914
|
+
loader?: ((args_0: LoaderSlotProps) => vue.VNodeChild) | undefined;
|
|
1915
|
+
'prepend-inner'?: ((args_0: DefaultInputSlot & VInputSlot) => vue.VNodeChild) | undefined;
|
|
1916
|
+
'append-inner'?: ((args_0: DefaultInputSlot & VInputSlot) => vue.VNodeChild) | undefined;
|
|
1917
|
+
item?: ((args_0: {
|
|
1918
|
+
item: InternalItem<T_1>;
|
|
1919
|
+
index: number;
|
|
1920
|
+
props: Record<string, unknown>;
|
|
1921
|
+
}) => vue.VNodeChild) | undefined;
|
|
1922
|
+
chip?: ((args_0: {
|
|
1923
|
+
item: InternalItem<T_1>;
|
|
1924
|
+
index: number;
|
|
1925
|
+
props: Record<string, unknown>;
|
|
1926
|
+
}) => vue.VNodeChild) | undefined;
|
|
1927
|
+
selection?: ((args_0: {
|
|
1928
|
+
item: InternalItem<T_1>;
|
|
1929
|
+
index: number;
|
|
1930
|
+
}) => vue.VNodeChild) | undefined;
|
|
1931
|
+
'prepend-item'?: (() => vue.VNodeChild) | undefined;
|
|
1932
|
+
'append-item'?: (() => vue.VNodeChild) | undefined;
|
|
1933
|
+
'no-data'?: (() => vue.VNodeChild) | undefined;
|
|
1934
|
+
} | undefined;
|
|
1764
1935
|
'v-slots'?: {
|
|
1765
1936
|
clear?: false | (() => vue.VNodeChild) | undefined;
|
|
1766
1937
|
details?: false | ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VSelectionControl.mjs","names":["VIcon","VLabel","makeSelectionControlGroupProps","VSelectionControlGroupSymbol","Ripple","useDensity","useProxiedModel","useTextColor","computed","inject","nextTick","ref","filterInputAttrs","genericComponent","getUid","pick","propsFactory","SUPPORTS_FOCUS_VISIBLE","useRender","wrapInArray","makeSelectionControlProps","label","String","trueValue","falseValue","value","useSelectionControl","props","group","undefined","densityClasses","modelValue","isMultiple","multiple","Array","isArray","model","get","val","some","v","valueComparator","set","readonly","currentValue","newVal","filter","item","textColorClasses","textColorStyles","error","disabled","color","icon","trueIcon","falseIcon","VSelectionControl","name","directives","inheritAttrs","emits","setup","attrs","slots","uid","id","isFocused","isFocusVisible","input","onForceUpdate","checked","onFocus","e","target","matches","onBlur","onInput","forceUpdate","for","rootAttrs","inputAttrs","inline","default","type","ripple","filterControlProps","Object","keys"],"sources":["../../../src/components/VSelectionControl/VSelectionControl.tsx"],"sourcesContent":["// Styles\nimport './VSelectionControl.sass'\n\n// Components\nimport { VIcon } from '@/components/VIcon'\nimport { VLabel } from '@/components/VLabel'\nimport { makeSelectionControlGroupProps, VSelectionControlGroupSymbol } from '@/components/VSelectionControlGroup/VSelectionControlGroup'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Composables\nimport { useDensity } from '@/composables/density'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useTextColor } from '@/composables/color'\n\n// Utilities\nimport { computed, inject, nextTick, ref } from 'vue'\nimport {\n filterInputAttrs,\n genericComponent,\n getUid,\n pick,\n propsFactory,\n SUPPORTS_FOCUS_VISIBLE,\n useRender,\n wrapInArray,\n} from '@/util'\n\n// Types\nimport type { CSSProperties, ExtractPropTypes, Ref, WritableComputedRef } from 'vue'\nimport type { MakeSlots, SlotsToProps } from '@/util'\n\nexport type SelectionControlSlot = {\n model: WritableComputedRef<any>\n textColorClasses: Ref<string[]>\n textColorStyles: Ref<CSSProperties>\n props: {\n onBlur: (e: Event) => void\n onFocus: (e: FocusEvent) => void\n id: string\n }\n}\n\nexport type VSelectionControlSlots = MakeSlots<{\n default: []\n label: [{ label: string | undefined, props: Record<string, unknown> }]\n input: [SelectionControlSlot]\n}>\n\nexport const makeSelectionControlProps = propsFactory({\n label: String,\n trueValue: null,\n falseValue: null,\n value: null,\n\n ...makeSelectionControlGroupProps(),\n}, 'v-selection-control')\n\nexport function useSelectionControl (\n props: ExtractPropTypes<ReturnType<typeof makeSelectionControlProps>> & {\n 'onUpdate:modelValue': ((val: any) => void) | undefined\n }\n) {\n const group = inject(VSelectionControlGroupSymbol, undefined)\n const { densityClasses } = useDensity(props)\n const modelValue = useProxiedModel(props, 'modelValue')\n const trueValue = computed(() => (\n props.trueValue !== undefined ? props.trueValue\n : props.value !== undefined ? props.value\n : true\n ))\n const falseValue = computed(() => props.falseValue !== undefined ? props.falseValue : false)\n const isMultiple = computed(() => (\n !!props.multiple ||\n (props.multiple == null && Array.isArray(modelValue.value))\n ))\n const model = computed({\n get () {\n const val = group ? group.modelValue.value : modelValue.value\n\n return isMultiple.value\n ? val.some((v: any) => props.valueComparator(v, trueValue.value))\n : props.valueComparator(val, trueValue.value)\n },\n set (val: boolean) {\n if (props.readonly) return\n\n const currentValue = val ? trueValue.value : falseValue.value\n\n let newVal = currentValue\n\n if (isMultiple.value) {\n newVal = val\n ? [...wrapInArray(modelValue.value), currentValue]\n : wrapInArray(modelValue.value).filter((item: any) => !props.valueComparator(item, trueValue.value))\n }\n\n if (group) {\n group.modelValue.value = newVal\n } else {\n modelValue.value = newVal\n }\n },\n })\n const { textColorClasses, textColorStyles } = useTextColor(computed(() => {\n return (\n model.value &&\n !props.error &&\n !props.disabled\n ) ? props.color : undefined\n }))\n const icon = computed(() => model.value ? props.trueIcon : props.falseIcon)\n\n return {\n group,\n densityClasses,\n trueValue,\n falseValue,\n model,\n textColorClasses,\n textColorStyles,\n icon,\n }\n}\n\nexport const VSelectionControl = genericComponent<new <T>() => {\n $props: {\n modelValue?: T\n 'onUpdate:modelValue'?: (val: T) => any\n } & SlotsToProps<VSelectionControlSlots>\n}>()({\n name: 'VSelectionControl',\n\n directives: { Ripple },\n\n inheritAttrs: false,\n\n props: makeSelectionControlProps(),\n\n emits: {\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { attrs, slots }) {\n const {\n group,\n densityClasses,\n icon,\n model,\n textColorClasses,\n textColorStyles,\n trueValue,\n } = useSelectionControl(props)\n const uid = getUid()\n const id = computed(() => props.id || `input-${uid}`)\n const isFocused = ref(false)\n const isFocusVisible = ref(false)\n const input = ref<HTMLInputElement>()\n\n group?.onForceUpdate(() => {\n if (input.value) {\n input.value.checked = model.value\n }\n })\n\n function onFocus (e: FocusEvent) {\n isFocused.value = true\n if (\n !SUPPORTS_FOCUS_VISIBLE ||\n (SUPPORTS_FOCUS_VISIBLE && (e.target as HTMLElement).matches(':focus-visible'))\n ) {\n isFocusVisible.value = true\n }\n }\n\n function onBlur () {\n isFocused.value = false\n isFocusVisible.value = false\n }\n\n function onInput (e: Event) {\n if (props.readonly && group) {\n nextTick(() => group.forceUpdate())\n }\n model.value = (e.target as HTMLInputElement).checked\n }\n\n useRender(() => {\n const label = slots.label\n ? slots.label({\n label: props.label,\n props: { for: id.value },\n })\n : props.label\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n\n return (\n <div\n class={[\n 'v-selection-control',\n {\n 'v-selection-control--dirty': model.value,\n 'v-selection-control--disabled': props.disabled,\n 'v-selection-control--error': props.error,\n 'v-selection-control--focused': isFocused.value,\n 'v-selection-control--focus-visible': isFocusVisible.value,\n 'v-selection-control--inline': props.inline,\n },\n densityClasses.value,\n ]}\n { ...rootAttrs }\n >\n <div\n class={[\n 'v-selection-control__wrapper',\n textColorClasses.value,\n ]}\n style={ textColorStyles.value }\n >\n { slots.default?.() }\n\n <div\n class={[\n 'v-selection-control__input',\n ]}\n v-ripple={ props.ripple && [\n !props.disabled && !props.readonly,\n null,\n ['center', 'circle'],\n ]}\n >\n { icon.value && <VIcon key=\"icon\" icon={ icon.value } /> }\n\n <input\n ref={ input }\n checked={ model.value }\n disabled={ props.disabled }\n id={ id.value }\n onBlur={ onBlur }\n onFocus={ onFocus }\n onInput={ onInput }\n aria-disabled={ props.readonly }\n type={ props.type }\n value={ trueValue.value }\n name={ props.name }\n aria-checked={ props.type === 'checkbox' ? model.value : undefined }\n { ...inputAttrs }\n />\n\n { slots.input?.({\n model,\n textColorClasses,\n textColorStyles,\n props: {\n onFocus,\n onBlur,\n id: id.value,\n },\n } as SelectionControlSlot) }\n </div>\n </div>\n\n { label && (\n <VLabel for={ id.value } clickable>\n { label }\n </VLabel>\n ) }\n </div>\n )\n })\n\n return {\n isFocused,\n input,\n }\n },\n})\n\nexport type VSelectionControl = InstanceType<typeof VSelectionControl>\n\nexport function filterControlProps (props: ExtractPropTypes<ReturnType<typeof makeSelectionControlProps>>) {\n return pick(props, Object.keys(VSelectionControl.props) as any)\n}\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,KAAK;AAAA,SACLC,MAAM;AAAA,SACNC,8BAA8B,EAAEC,4BAA4B,gEAErE;AAAA,SACSC,MAAM,6CAEf;AAAA,SACSC,UAAU;AAAA,SACVC,eAAe;AAAA,SACfC,YAAY,uCAErB;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAEnDC,gBAAgB,EAChBC,gBAAgB,EAChBC,MAAM,EACNC,IAAI,EACJC,YAAY,EACZC,sBAAsB,EACtBC,SAAS,EACTC,WAAW,gCAGb;AAqBA,OAAO,MAAMC,yBAAyB,GAAGJ,YAAY,CAAC;EACpDK,KAAK,EAAEC,MAAM;EACbC,SAAS,EAAE,IAAI;EACfC,UAAU,EAAE,IAAI;EAChBC,KAAK,EAAE,IAAI;EAEX,GAAGvB,8BAA8B;AACnC,CAAC,EAAE,qBAAqB,CAAC;AAEzB,OAAO,SAASwB,mBAAmB,CACjCC,KAEC,EACD;EACA,MAAMC,KAAK,GAAGnB,MAAM,CAACN,4BAA4B,EAAE0B,SAAS,CAAC;EAC7D,MAAM;IAAEC;EAAe,CAAC,GAAGz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AK,UAAU,GAAG/C,KAAK,CAACX,KAAK,GAAGI;MAAS,GAC7DmD,UAAU,UAGfjB,KAAK,CAACK,KAAK,GAAG;QACdhC,KAAK;QACLY,gBAAgB;QAChBC,eAAe;QACftB,KAAK,EAAE;UACL4C,OAAO;UACPI,MAAM;UACNV,EAAE,EAAEA,EAAE,CAACxC;QACT;MACF,CAAC,CAAyB,mCAjCfE,KAAK,CAACyD,MAAM,IAAI,CACzB,CAACzD,KAAK,CAACwB,QAAQ,IAAI,CAACxB,KAAK,CAACgB,QAAQ,EAClC,IAAI,EACJ,CAAC,QAAQ,EAAE,QAAQ,CAAC,CACrB,OAiCHtB,KAAK;QAAA,OACS4C,EAAE,CAACxC,KAAK;QAAA;MAAA;QAAA,gBAClBJ,KAAK;MAAA,EAEV;IAGP,CAAC,CAAC;IAEF,OAAO;MACL6C,SAAS;MACTE;IACF,CAAC;EACH;AACF,CAAC,CAAC;AAIF,OAAO,SAASiB,kBAAkB,CAAE1D,KAAqE,EAAE;EACzG,OAAOZ,IAAI,CAACY,KAAK,EAAE2D,MAAM,CAACC,IAAI,CAAC/B,iBAAiB,CAAC7B,KAAK,CAAC,CAAQ;AACjE"}
|
|
1
|
+
{"version":3,"file":"VSelectionControl.mjs","names":["VIcon","VLabel","makeSelectionControlGroupProps","VSelectionControlGroupSymbol","Ripple","useDensity","useProxiedModel","useTextColor","computed","inject","nextTick","ref","filterInputAttrs","genericComponent","getUid","pick","propsFactory","SUPPORTS_FOCUS_VISIBLE","useRender","wrapInArray","makeSelectionControlProps","label","String","trueValue","falseValue","value","useSelectionControl","props","group","undefined","densityClasses","modelValue","isMultiple","multiple","Array","isArray","model","get","val","some","v","valueComparator","set","readonly","currentValue","newVal","filter","item","textColorClasses","textColorStyles","error","disabled","color","icon","trueIcon","falseIcon","VSelectionControl","name","directives","inheritAttrs","emits","setup","attrs","slots","uid","id","isFocused","isFocusVisible","input","onForceUpdate","checked","onFocus","e","target","matches","onBlur","onInput","forceUpdate","for","rootAttrs","inputAttrs","inline","default","type","ripple","filterControlProps","Object","keys"],"sources":["../../../src/components/VSelectionControl/VSelectionControl.tsx"],"sourcesContent":["// Styles\nimport './VSelectionControl.sass'\n\n// Components\nimport { VIcon } from '@/components/VIcon'\nimport { VLabel } from '@/components/VLabel'\nimport { makeSelectionControlGroupProps, VSelectionControlGroupSymbol } from '@/components/VSelectionControlGroup/VSelectionControlGroup'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Composables\nimport { useDensity } from '@/composables/density'\nimport { useProxiedModel } from '@/composables/proxiedModel'\nimport { useTextColor } from '@/composables/color'\n\n// Utilities\nimport { computed, inject, nextTick, ref } from 'vue'\nimport {\n filterInputAttrs,\n genericComponent,\n getUid,\n pick,\n propsFactory,\n SUPPORTS_FOCUS_VISIBLE,\n useRender,\n wrapInArray,\n} from '@/util'\n\n// Types\nimport type { CSSProperties, ExtractPropTypes, Ref, WritableComputedRef } from 'vue'\nimport type { MakeSlots, SlotsToProps } from '@/util'\n\nexport type SelectionControlSlot = {\n model: WritableComputedRef<any>\n textColorClasses: Ref<string[]>\n textColorStyles: Ref<CSSProperties>\n props: {\n onBlur: (e: Event) => void\n onFocus: (e: FocusEvent) => void\n id: string\n }\n}\n\nexport type VSelectionControlSlots = MakeSlots<{\n default: []\n label: [{ label: string | undefined, props: Record<string, unknown> }]\n input: [SelectionControlSlot]\n}>\n\nexport const makeSelectionControlProps = propsFactory({\n label: String,\n trueValue: null,\n falseValue: null,\n value: null,\n\n ...makeSelectionControlGroupProps(),\n}, 'v-selection-control')\n\nexport function useSelectionControl (\n props: ExtractPropTypes<ReturnType<typeof makeSelectionControlProps>> & {\n 'onUpdate:modelValue': ((val: any) => void) | undefined\n }\n) {\n const group = inject(VSelectionControlGroupSymbol, undefined)\n const { densityClasses } = useDensity(props)\n const modelValue = useProxiedModel(props, 'modelValue')\n const trueValue = computed(() => (\n props.trueValue !== undefined ? props.trueValue\n : props.value !== undefined ? props.value\n : true\n ))\n const falseValue = computed(() => props.falseValue !== undefined ? props.falseValue : false)\n const isMultiple = computed(() => (\n !!props.multiple ||\n (props.multiple == null && Array.isArray(modelValue.value))\n ))\n const model = computed({\n get () {\n const val = group ? group.modelValue.value : modelValue.value\n\n return isMultiple.value\n ? val.some((v: any) => props.valueComparator(v, trueValue.value))\n : props.valueComparator(val, trueValue.value)\n },\n set (val: boolean) {\n if (props.readonly) return\n\n const currentValue = val ? trueValue.value : falseValue.value\n\n let newVal = currentValue\n\n if (isMultiple.value) {\n newVal = val\n ? [...wrapInArray(modelValue.value), currentValue]\n : wrapInArray(modelValue.value).filter((item: any) => !props.valueComparator(item, trueValue.value))\n }\n\n if (group) {\n group.modelValue.value = newVal\n } else {\n modelValue.value = newVal\n }\n },\n })\n const { textColorClasses, textColorStyles } = useTextColor(computed(() => {\n return (\n model.value &&\n !props.error &&\n !props.disabled\n ) ? props.color : undefined\n }))\n const icon = computed(() => model.value ? props.trueIcon : props.falseIcon)\n\n return {\n group,\n densityClasses,\n trueValue,\n falseValue,\n model,\n textColorClasses,\n textColorStyles,\n icon,\n }\n}\n\nexport const VSelectionControl = genericComponent<new <T>() => {\n $props: {\n modelValue?: T\n 'onUpdate:modelValue'?: (val: T) => any\n } & SlotsToProps<VSelectionControlSlots>\n}>()({\n name: 'VSelectionControl',\n\n directives: { Ripple },\n\n inheritAttrs: false,\n\n props: makeSelectionControlProps(),\n\n emits: {\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { attrs, slots }) {\n const {\n group,\n densityClasses,\n icon,\n model,\n textColorClasses,\n textColorStyles,\n trueValue,\n } = useSelectionControl(props)\n const uid = getUid()\n const id = computed(() => props.id || `input-${uid}`)\n const isFocused = ref(false)\n const isFocusVisible = ref(false)\n const input = ref<HTMLInputElement>()\n\n group?.onForceUpdate(() => {\n if (input.value) {\n input.value.checked = model.value\n }\n })\n\n function onFocus (e: FocusEvent) {\n isFocused.value = true\n if (\n !SUPPORTS_FOCUS_VISIBLE ||\n (SUPPORTS_FOCUS_VISIBLE && (e.target as HTMLElement).matches(':focus-visible'))\n ) {\n isFocusVisible.value = true\n }\n }\n\n function onBlur () {\n isFocused.value = false\n isFocusVisible.value = false\n }\n\n function onInput (e: Event) {\n if (props.readonly && group) {\n nextTick(() => group.forceUpdate())\n }\n model.value = (e.target as HTMLInputElement).checked\n }\n\n useRender(() => {\n const label = slots.label\n ? slots.label({\n label: props.label,\n props: { for: id.value },\n })\n : props.label\n const [rootAttrs, inputAttrs] = filterInputAttrs(attrs)\n\n return (\n <div\n class={[\n 'v-selection-control',\n {\n 'v-selection-control--dirty': model.value,\n 'v-selection-control--disabled': props.disabled,\n 'v-selection-control--error': props.error,\n 'v-selection-control--focused': isFocused.value,\n 'v-selection-control--focus-visible': isFocusVisible.value,\n 'v-selection-control--inline': props.inline,\n },\n densityClasses.value,\n ]}\n { ...rootAttrs }\n >\n <div\n class={[\n 'v-selection-control__wrapper',\n textColorClasses.value,\n ]}\n style={ textColorStyles.value }\n >\n { slots.default?.() }\n\n <div\n class={[\n 'v-selection-control__input',\n ]}\n v-ripple={ props.ripple && [\n !props.disabled && !props.readonly,\n null,\n ['center', 'circle'],\n ]}\n >\n { icon.value && <VIcon key=\"icon\" icon={ icon.value } /> }\n\n <input\n ref={ input }\n checked={ model.value }\n disabled={ props.disabled }\n id={ id.value }\n onBlur={ onBlur }\n onFocus={ onFocus }\n onInput={ onInput }\n aria-disabled={ props.readonly }\n type={ props.type }\n value={ trueValue.value }\n name={ props.name }\n aria-checked={ props.type === 'checkbox' ? model.value : undefined }\n { ...inputAttrs }\n />\n\n { slots.input?.({\n model,\n textColorClasses,\n textColorStyles,\n props: {\n onFocus,\n onBlur,\n id: id.value,\n },\n } as SelectionControlSlot)}\n </div>\n </div>\n\n { label && (\n <VLabel for={ id.value } clickable>\n { label }\n </VLabel>\n )}\n </div>\n )\n })\n\n return {\n isFocused,\n input,\n }\n },\n})\n\nexport type VSelectionControl = InstanceType<typeof VSelectionControl>\n\nexport function filterControlProps (props: ExtractPropTypes<ReturnType<typeof makeSelectionControlProps>>) {\n return pick(props, Object.keys(VSelectionControl.props) as any)\n}\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,KAAK;AAAA,SACLC,MAAM;AAAA,SACNC,8BAA8B,EAAEC,4BAA4B,gEAErE;AAAA,SACSC,MAAM,6CAEf;AAAA,SACSC,UAAU;AAAA,SACVC,eAAe;AAAA,SACfC,YAAY,uCAErB;AACA,SAASC,QAAQ,EAAEC,MAAM,EAAEC,QAAQ,EAAEC,GAAG,QAAQ,KAAK;AAAA,SAEnDC,gBAAgB,EAChBC,gBAAgB,EAChBC,MAAM,EACNC,IAAI,EACJC,YAAY,EACZC,sBAAsB,EACtBC,SAAS,EACTC,WAAW,gCAGb;AAqBA,OAAO,MAAMC,yBAAyB,GAAGJ,YAAY,CAAC;EACpDK,KAAK,EAAEC,MAAM;EACbC,SAAS,EAAE,IAAI;EACfC,UAAU,EAAE,IAAI;EAChBC,KAAK,EAAE,IAAI;EAEX,GAAGvB,8BAA8B;AACnC,CAAC,EAAE,qBAAqB,CAAC;AAEzB,OAAO,SAASwB,mBAAmB,CACjCC,KAEC,EACD;EACA,MAAMC,KAAK,GAAGnB,MAAM,CAACN,4BAA4B,EAAE0B,SAAS,CAAC;EAC7D,MAAM;IAAEC;EAAe,CAAC,GAAGzB,UAAU,CAACsB,KAAK,CAAC;EAC5C,MAAMI,UAAU,GAAGzB,eAAe,CAACqB,KAAK,EAAE,YAAY,CAAC;EACvD,MAAMJ,SAAS,GAAGf,QAAQ,CAAC,MACzBmB,KAAK,CAACJ,SAAS,KAAKM,SAAS,GAAGF,KAAK,CAACJ,SAAS,GAC7CI,KAAK,CAACF,KAAK,KAAKI,SAAS,GAAGF,KAAK,CAACF,KAAK,GACvC,IACH,CAAC;EACF,MAAMD,UAAU,GAAGhB,QAAQ,CAAC,MAAMmB,KAAK,CAACH,UAAU,KAAKK,SAAS,GAAGF,KAAK,CAACH,UAAU,GAAG,KAAK,CAAC;EAC5F,M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