@vuetify/nightly 3.6.14-master.2024-08-04 → 3.6.14-master.2024-08-13
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 +7 -11
- package/dist/json/importMap-labs.json +30 -30
- package/dist/json/importMap.json +144 -144
- package/dist/json/tags.json +0 -1
- package/dist/json/web-types.json +8 -18
- package/dist/vuetify-labs.css +2162 -2162
- package/dist/vuetify-labs.d.ts +33122 -39828
- package/dist/vuetify-labs.esm.js +17 -9
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +17 -9
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1025 -1025
- package/dist/vuetify.d.ts +32674 -39040
- package/dist/vuetify.esm.js +16 -8
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +16 -8
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +22 -22
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/index.d.mts +50 -73
- package/lib/components/VApp/index.d.mts +9 -11
- package/lib/components/VAppBar/index.d.mts +92 -128
- package/lib/components/VAutocomplete/index.d.mts +4771 -3230
- package/lib/components/VAvatar/index.d.mts +23 -22
- package/lib/components/VBadge/index.d.mts +53 -59
- package/lib/components/VBanner/index.d.mts +44 -66
- package/lib/components/VBottomNavigation/index.d.mts +25 -32
- package/lib/components/VBottomSheet/index.d.mts +125 -135
- package/lib/components/VBreadcrumbs/index.d.mts +35 -78
- package/lib/components/VBtn/index.d.mts +49 -53
- package/lib/components/VBtnGroup/index.d.mts +14 -13
- package/lib/components/VBtnToggle/index.d.mts +21 -23
- package/lib/components/VCard/index.d.mts +104 -168
- package/lib/components/VCarousel/index.d.mts +59 -96
- package/lib/components/VCheckbox/index.d.mts +132 -155
- package/lib/components/VChip/index.d.mts +47 -59
- package/lib/components/VChipGroup/index.d.mts +39 -41
- package/lib/components/VCode/index.d.mts +9 -11
- package/lib/components/VColorPicker/index.d.mts +58 -133
- package/lib/components/VCombobox/index.d.mts +4785 -3244
- package/lib/components/VConfirmEdit/index.d.mts +11 -19
- package/lib/components/VCounter/index.d.mts +40 -42
- package/lib/components/VDataIterator/index.d.mts +171 -185
- package/lib/components/VDataTable/index.d.mts +480 -1204
- package/lib/components/VDatePicker/index.d.mts +120 -158
- package/lib/components/VDefaultsProvider/index.d.mts +5 -9
- package/lib/components/VDialog/index.d.mts +243 -277
- package/lib/components/VDivider/index.d.mts +9 -11
- package/lib/components/VEmptyState/index.d.mts +30 -52
- package/lib/components/VExpansionPanel/index.d.mts +60 -85
- package/lib/components/VFab/index.d.mts +81 -73
- package/lib/components/VField/index.d.mts +35 -62
- package/lib/components/VFileInput/VFileInput.mjs +1 -1
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.mts +172 -259
- package/lib/components/VFooter/index.d.mts +9 -11
- package/lib/components/VForm/index.d.mts +105 -77
- package/lib/components/VGrid/index.d.mts +41 -52
- package/lib/components/VHover/index.d.mts +5 -9
- package/lib/components/VIcon/index.d.mts +23 -29
- package/lib/components/VImg/index.d.mts +28 -42
- package/lib/components/VInfiniteScroll/index.d.mts +17 -37
- package/lib/components/VInput/index.d.mts +48 -50
- package/lib/components/VItemGroup/index.d.mts +21 -30
- package/lib/components/VKbd/index.d.mts +9 -11
- package/lib/components/VLabel/index.d.mts +9 -11
- package/lib/components/VLayout/index.d.mts +18 -24
- package/lib/components/VLazy/index.d.mts +42 -44
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/index.d.mts +210 -329
- package/lib/components/VLocaleProvider/index.d.mts +9 -11
- package/lib/components/VMain/index.d.mts +9 -11
- package/lib/components/VMenu/index.d.mts +272 -306
- package/lib/components/VMessages/index.d.mts +49 -51
- package/lib/components/VNavigationDrawer/index.d.mts +27 -40
- package/lib/components/VOtpInput/index.d.mts +22 -28
- package/lib/components/VOverlay/VOverlay.mjs +4 -3
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.mts +53 -63
- package/lib/components/VPagination/index.d.mts +31 -46
- package/lib/components/VParallax/index.d.mts +15 -29
- package/lib/components/VProgressCircular/index.d.mts +9 -11
- package/lib/components/VProgressLinear/index.d.mts +22 -24
- package/lib/components/VRadio/index.d.mts +49 -52
- package/lib/components/VRadioGroup/index.d.mts +66 -66
- package/lib/components/VRangeSlider/index.d.mts +58 -69
- package/lib/components/VRating/index.d.mts +13 -19
- package/lib/components/VResponsive/index.d.mts +11 -17
- package/lib/components/VSelect/index.d.mts +4762 -3221
- package/lib/components/VSelectionControl/index.d.mts +38 -44
- package/lib/components/VSelectionControlGroup/index.d.mts +34 -34
- package/lib/components/VSheet/index.d.mts +15 -17
- package/lib/components/VSkeletonLoader/index.d.mts +41 -11
- package/lib/components/VSlideGroup/index.d.mts +112 -129
- package/lib/components/VSlider/index.d.mts +58 -69
- package/lib/components/VSnackbar/VSnackbar.mjs +5 -1
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/index.d.mts +231 -270
- package/lib/components/VSparkline/index.d.mts +11 -19
- package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.mjs.map +1 -1
- package/lib/components/VSpeedDial/index.d.mts +179 -189
- package/lib/components/VStepper/index.d.mts +105 -180
- package/lib/components/VSwitch/index.d.mts +78 -98
- package/lib/components/VSystemBar/index.d.mts +13 -15
- package/lib/components/VTable/index.d.mts +15 -29
- package/lib/components/VTabs/index.d.mts +213 -297
- package/lib/components/VTextField/index.d.mts +253 -408
- package/lib/components/VTextarea/index.d.mts +157 -236
- package/lib/components/VThemeProvider/index.d.mts +9 -11
- package/lib/components/VTimeline/index.d.mts +29 -43
- package/lib/components/VToolbar/index.d.mts +49 -80
- package/lib/components/VTooltip/index.d.mts +282 -316
- package/lib/components/VValidation/index.d.mts +16 -23
- package/lib/components/VVirtualScroll/index.d.mts +14 -23
- package/lib/components/VWindow/index.d.mts +29 -50
- package/lib/components/index.d.mts +31169 -37524
- package/lib/components/transitions/index.d.mts +84 -148
- package/lib/composables/location.mjs.map +1 -1
- package/lib/directives/click-outside/index.mjs +3 -0
- package/lib/directives/click-outside/index.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +60 -60
- package/lib/labs/VCalendar/index.d.mts +146 -166
- package/lib/labs/VDateInput/index.d.mts +83 -62
- package/lib/labs/VNumberInput/index.d.mts +61 -88
- package/lib/labs/VPicker/index.d.mts +28 -46
- package/lib/labs/VPullToRefresh/index.d.mts +7 -15
- package/lib/labs/VSnackbarQueue/index.d.mts +311 -369
- package/lib/labs/VStepperVertical/index.d.mts +109 -184
- package/lib/labs/VTimePicker/index.d.mts +35 -53
- package/lib/labs/VTreeview/VTreeview.mjs +1 -1
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +200 -292
- package/lib/labs/components.d.mts +905 -1246
- package/lib/util/propsFactory.mjs.map +1 -1
- package/package.json +3 -3
@@ -1,6 +1,8 @@
|
|
1
1
|
import * as vue from 'vue';
|
2
2
|
import { ComponentPropsOptions, ExtractPropTypes, PropType } from 'vue';
|
3
3
|
|
4
|
+
type ClassValue = any;
|
5
|
+
|
4
6
|
declare const block: readonly ["top", "bottom"];
|
5
7
|
declare const inline: readonly ["start", "end", "left", "right"];
|
6
8
|
type Tblock = typeof block[number];
|
@@ -29,7 +31,7 @@ declare const VTimePicker: {
|
|
29
31
|
useSeconds: boolean;
|
30
32
|
} & {
|
31
33
|
max?: string | undefined;
|
32
|
-
location?: Anchor | undefined;
|
34
|
+
location?: Anchor | null | undefined;
|
33
35
|
height?: string | number | undefined;
|
34
36
|
width?: string | number | undefined;
|
35
37
|
min?: string | undefined;
|
@@ -90,7 +92,7 @@ declare const VTimePicker: {
|
|
90
92
|
useSeconds: boolean;
|
91
93
|
} & {
|
92
94
|
max?: string | undefined;
|
93
|
-
location?: Anchor | undefined;
|
95
|
+
location?: Anchor | null | undefined;
|
94
96
|
height?: string | number | undefined;
|
95
97
|
width?: string | number | undefined;
|
96
98
|
min?: string | undefined;
|
@@ -145,15 +147,9 @@ declare const VTimePicker: {
|
|
145
147
|
ampmInTitle: boolean;
|
146
148
|
useSeconds: boolean;
|
147
149
|
}, true, {}, vue.SlotsType<Partial<{
|
148
|
-
default: () => vue.VNode
|
149
|
-
|
150
|
-
|
151
|
-
title: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
152
|
-
[key: string]: any;
|
153
|
-
}>[];
|
154
|
-
actions: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
155
|
-
[key: string]: any;
|
156
|
-
}>[];
|
150
|
+
default: () => vue.VNode[];
|
151
|
+
title: () => vue.VNode[];
|
152
|
+
actions: () => vue.VNode[];
|
157
153
|
}>>, {
|
158
154
|
P: {};
|
159
155
|
B: {};
|
@@ -175,7 +171,7 @@ declare const VTimePicker: {
|
|
175
171
|
useSeconds: boolean;
|
176
172
|
} & {
|
177
173
|
max?: string | undefined;
|
178
|
-
location?: Anchor | undefined;
|
174
|
+
location?: Anchor | null | undefined;
|
179
175
|
height?: string | number | undefined;
|
180
176
|
width?: string | number | undefined;
|
181
177
|
min?: string | undefined;
|
@@ -230,9 +226,9 @@ declare const VTimePicker: {
|
|
230
226
|
ampmInTitle: boolean;
|
231
227
|
useSeconds: boolean;
|
232
228
|
}>;
|
233
|
-
__isFragment?:
|
234
|
-
__isTeleport?:
|
235
|
-
__isSuspense?:
|
229
|
+
__isFragment?: never;
|
230
|
+
__isTeleport?: never;
|
231
|
+
__isSuspense?: never;
|
236
232
|
} & vue.ComponentOptionsBase<{
|
237
233
|
style: vue.StyleValue;
|
238
234
|
title: string;
|
@@ -247,7 +243,7 @@ declare const VTimePicker: {
|
|
247
243
|
useSeconds: boolean;
|
248
244
|
} & {
|
249
245
|
max?: string | undefined;
|
250
|
-
location?: Anchor | undefined;
|
246
|
+
location?: Anchor | null | undefined;
|
251
247
|
height?: string | number | undefined;
|
252
248
|
width?: string | number | undefined;
|
253
249
|
min?: string | undefined;
|
@@ -308,17 +304,11 @@ declare const VTimePicker: {
|
|
308
304
|
ampmInTitle: boolean;
|
309
305
|
useSeconds: boolean;
|
310
306
|
}, {}, string, vue.SlotsType<Partial<{
|
311
|
-
default: () => vue.VNode
|
312
|
-
|
313
|
-
|
314
|
-
title: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
315
|
-
[key: string]: any;
|
316
|
-
}>[];
|
317
|
-
actions: () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
318
|
-
[key: string]: any;
|
319
|
-
}>[];
|
307
|
+
default: () => vue.VNode[];
|
308
|
+
title: () => vue.VNode[];
|
309
|
+
actions: () => vue.VNode[];
|
320
310
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
321
|
-
location: PropType<Anchor>;
|
311
|
+
location: PropType<Anchor | null>;
|
322
312
|
height: (StringConstructor | NumberConstructor)[];
|
323
313
|
width: (StringConstructor | NumberConstructor)[];
|
324
314
|
border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
@@ -339,7 +329,7 @@ declare const VTimePicker: {
|
|
339
329
|
type: PropType<string>;
|
340
330
|
default: string;
|
341
331
|
};
|
342
|
-
class: PropType<
|
332
|
+
class: PropType<ClassValue>;
|
343
333
|
tag: {
|
344
334
|
type: StringConstructor;
|
345
335
|
default: string;
|
@@ -356,9 +346,9 @@ declare const VTimePicker: {
|
|
356
346
|
tile: BooleanConstructor;
|
357
347
|
bgColor: StringConstructor;
|
358
348
|
hideHeader: BooleanConstructor;
|
359
|
-
allowedHours: PropType<number[]
|
360
|
-
allowedMinutes: PropType<number[]
|
361
|
-
allowedSeconds: PropType<number[]
|
349
|
+
allowedHours: PropType<AllowFunction | number[]>;
|
350
|
+
allowedMinutes: PropType<AllowFunction | number[]>;
|
351
|
+
allowedSeconds: PropType<AllowFunction | number[]>;
|
362
352
|
ampmInTitle: BooleanConstructor;
|
363
353
|
disabled: BooleanConstructor;
|
364
354
|
format: {
|
@@ -372,7 +362,7 @@ declare const VTimePicker: {
|
|
372
362
|
scrollable: BooleanConstructor;
|
373
363
|
useSeconds: BooleanConstructor;
|
374
364
|
}, vue.ExtractPropTypes<{
|
375
|
-
location: PropType<Anchor>;
|
365
|
+
location: PropType<Anchor | null>;
|
376
366
|
height: (StringConstructor | NumberConstructor)[];
|
377
367
|
width: (StringConstructor | NumberConstructor)[];
|
378
368
|
border: (StringConstructor | BooleanConstructor | NumberConstructor)[];
|
@@ -393,7 +383,7 @@ declare const VTimePicker: {
|
|
393
383
|
type: PropType<string>;
|
394
384
|
default: string;
|
395
385
|
};
|
396
|
-
class: PropType<
|
386
|
+
class: PropType<ClassValue>;
|
397
387
|
tag: {
|
398
388
|
type: StringConstructor;
|
399
389
|
default: string;
|
@@ -410,9 +400,9 @@ declare const VTimePicker: {
|
|
410
400
|
tile: BooleanConstructor;
|
411
401
|
bgColor: StringConstructor;
|
412
402
|
hideHeader: BooleanConstructor;
|
413
|
-
allowedHours: PropType<number[]
|
414
|
-
allowedMinutes: PropType<number[]
|
415
|
-
allowedSeconds: PropType<number[]
|
403
|
+
allowedHours: PropType<AllowFunction | number[]>;
|
404
|
+
allowedMinutes: PropType<AllowFunction | number[]>;
|
405
|
+
allowedSeconds: PropType<AllowFunction | number[]>;
|
416
406
|
ampmInTitle: BooleanConstructor;
|
417
407
|
disabled: BooleanConstructor;
|
418
408
|
format: {
|
@@ -498,9 +488,7 @@ declare const VTimePickerClock: {
|
|
498
488
|
scrollable: boolean;
|
499
489
|
ampm: boolean;
|
500
490
|
}, true, {}, vue.SlotsType<Partial<{
|
501
|
-
default: () => vue.VNode
|
502
|
-
[key: string]: any;
|
503
|
-
}>[];
|
491
|
+
default: () => vue.VNode[];
|
504
492
|
}>>, {
|
505
493
|
P: {};
|
506
494
|
B: {};
|
@@ -546,9 +534,9 @@ declare const VTimePickerClock: {
|
|
546
534
|
scrollable: boolean;
|
547
535
|
ampm: boolean;
|
548
536
|
}>;
|
549
|
-
__isFragment?:
|
550
|
-
__isTeleport?:
|
551
|
-
__isSuspense?:
|
537
|
+
__isFragment?: never;
|
538
|
+
__isTeleport?: never;
|
539
|
+
__isSuspense?: never;
|
552
540
|
} & vue.ComponentOptionsBase<{
|
553
541
|
max: number;
|
554
542
|
min: number;
|
@@ -590,9 +578,7 @@ declare const VTimePickerClock: {
|
|
590
578
|
scrollable: boolean;
|
591
579
|
ampm: boolean;
|
592
580
|
}, {}, string, vue.SlotsType<Partial<{
|
593
|
-
default: () => vue.VNode
|
594
|
-
[key: string]: any;
|
595
|
-
}>[];
|
581
|
+
default: () => vue.VNode[];
|
596
582
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
597
583
|
allowedValues: PropType<(value: number) => boolean>;
|
598
584
|
ampm: BooleanConstructor;
|
@@ -727,9 +713,7 @@ declare const VTimePickerControls: {
|
|
727
713
|
ampmReadonly: boolean;
|
728
714
|
useSeconds: boolean;
|
729
715
|
}, true, {}, vue.SlotsType<Partial<{
|
730
|
-
default: () => vue.VNode
|
731
|
-
[key: string]: any;
|
732
|
-
}>[];
|
716
|
+
default: () => vue.VNode[];
|
733
717
|
}>>, {
|
734
718
|
P: {};
|
735
719
|
B: {};
|
@@ -772,9 +756,9 @@ declare const VTimePickerControls: {
|
|
772
756
|
ampmReadonly: boolean;
|
773
757
|
useSeconds: boolean;
|
774
758
|
}>;
|
775
|
-
__isFragment?:
|
776
|
-
__isTeleport?:
|
777
|
-
__isSuspense?:
|
759
|
+
__isFragment?: never;
|
760
|
+
__isTeleport?: never;
|
761
|
+
__isSuspense?: never;
|
778
762
|
} & vue.ComponentOptionsBase<{
|
779
763
|
disabled: boolean;
|
780
764
|
readonly: boolean;
|
@@ -813,9 +797,7 @@ declare const VTimePickerControls: {
|
|
813
797
|
ampmReadonly: boolean;
|
814
798
|
useSeconds: boolean;
|
815
799
|
}, {}, string, vue.SlotsType<Partial<{
|
816
|
-
default: () => vue.VNode
|
817
|
-
[key: string]: any;
|
818
|
-
}>[];
|
800
|
+
default: () => vue.VNode[];
|
819
801
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
820
802
|
ampm: BooleanConstructor;
|
821
803
|
ampmInTitle: BooleanConstructor;
|
@@ -27,7 +27,7 @@ export const makeVTreeviewProps = propsFactory({
|
|
27
27
|
collapseIcon: '$treeviewCollapse',
|
28
28
|
expandIcon: '$treeviewExpand',
|
29
29
|
slim: true
|
30
|
-
}), ['nav'])
|
30
|
+
}), ['itemType', 'nav'])
|
31
31
|
}, 'VTreeview');
|
32
32
|
export const VTreeview = genericComponent()({
|
33
33
|
name: 'VTreeview',
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRef","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","slim","VTreeview","name","props","emits","val","value","setup","_ref","slots","activeColor","baseColor","color","activated","selected","vListRef","opened","flatItems","filteredItems","visibleIds","Set","flatMap","getPath","getChildren","id","path","parent","unshift","parents","get","arr","queue","slice","child","shift","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event","default"],"sources":["../../../src/labs/VTreeview/VTreeview.tsx"],"sourcesContent":["// Components\nimport { makeVTreeviewChildrenProps, VTreeviewChildren } from './VTreeviewChildren'\nimport { makeVListProps, useListItems, VList } from '@/components/VList/VList'\n\n// Composables\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeFilterProps, useFilter } from '@/composables/filter'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, provide, ref, toRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { VListChildrenSlots } from '@/components/VList/VListChildren'\nimport type { ListItem } from '@/composables/list-items'\nimport type { GenericProps } from '@/util'\n\nfunction flatten (items: ListItem[], flat: ListItem[] = []) {\n for (const item of items) {\n flat.push(item)\n if (item.children) flatten(item.children, flat)\n }\n return flat\n}\n\nexport const makeVTreeviewProps = propsFactory({\n openAll: Boolean,\n search: String,\n\n ...makeFilterProps({ filterKeys: ['title'] }),\n ...makeVTreeviewChildrenProps(),\n ...omit(makeVListProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand',\n slim: true,\n }), ['nav']),\n}, 'VTreeview')\n\nexport const VTreeview = genericComponent<new <T>(\n props: {\n items?: T[]\n },\n slots: VListChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeview',\n\n props: makeVTreeviewProps(),\n\n emits: {\n 'update:opened': (val: unknown) => true,\n 'update:activated': (val: unknown) => true,\n 'update:selected': (val: unknown) => true,\n 'click:open': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n 'click:select': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n },\n\n setup (props, { slots }) {\n const { items } = useListItems(props)\n const activeColor = toRef(props, 'activeColor')\n const baseColor = toRef(props, 'baseColor')\n const color = toRef(props, 'color')\n const activated = useProxiedModel(props, 'activated')\n const selected = useProxiedModel(props, 'selected')\n\n const vListRef = ref<VList>()\n\n const opened = computed(() => props.openAll ? openAll(items.value) : props.opened)\n const flatItems = computed(() => flatten(items.value))\n const search = toRef(props, 'search')\n const { filteredItems } = useFilter(props, flatItems, search)\n const visibleIds = computed(() => {\n if (!search.value) {\n return null\n }\n return new Set(filteredItems.value.flatMap(item => {\n return [...getPath(item.props.value), ...getChildren(item.props.value)]\n }))\n })\n\n function getPath (id: unknown) {\n const path: unknown[] = []\n let parent: unknown = id\n while (parent != null) {\n path.unshift(parent)\n parent = vListRef.value?.parents.get(parent)\n }\n return path\n }\n\n function getChildren (id: unknown) {\n const arr: unknown[] = []\n const queue = ((vListRef.value?.children.get(id) ?? []).slice())\n while (queue.length) {\n const child = queue.shift()\n if (!child) continue\n arr.push(child)\n queue.push(...((vListRef.value?.children.get(child) ?? []).slice()))\n }\n return arr\n }\n\n function openAll (item: any) {\n let ids: number[] = []\n\n for (const i of item) {\n if (!i.children) continue\n\n ids.push(i.value)\n\n if (i.children) {\n ids = ids.concat(openAll(i.children))\n }\n }\n\n return ids\n }\n\n provide(VTreeviewSymbol, { visibleIds })\n\n provideDefaults({\n VTreeviewGroup: {\n activeColor,\n baseColor,\n color,\n collapseIcon: toRef(props, 'collapseIcon'),\n expandIcon: toRef(props, 'expandIcon'),\n },\n VTreeviewItem: {\n activeClass: toRef(props, 'activeClass'),\n activeColor,\n baseColor,\n color,\n density: toRef(props, 'density'),\n disabled: toRef(props, 'disabled'),\n lines: toRef(props, 'lines'),\n variant: toRef(props, 'variant'),\n },\n })\n\n useRender(() => {\n const listProps = VList.filterProps(props)\n\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n\n return (\n <VList\n ref={ vListRef }\n { ...listProps }\n class={[\n 'v-treeview',\n props.class,\n ]}\n style={ props.style }\n opened={ opened.value }\n v-model:activated={ activated.value }\n v-model:selected={ selected.value }\n >\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ items.value }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return { }\n },\n})\n\nexport type VTreeview = InstanceType<typeof VTreeview>\n"],"mappings":";AAAA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,cAAc,EAAEC,YAAY,EAAEC,KAAK,4CAE5C;AAAA,SACSC,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V,KAAK;QAAA,aACDO,SAAS,CAACP,KAAK;QAAA,sBAAA8C,MAAA,IAAfvC,SAAS,CAACP,KAAK,GAAA8C,MAAA;QAAA,YAChBtC,QAAQ,CAACR,KAAK;QAAA,qBAAA8C,MAAA,IAAdtC,QAAQ,CAACR,KAAK,GAAA8C;MAAA;QAAAC,OAAA,EAAAA,CAAA,MAAAL,YAAA,CAAAlF,iBAAA,EAAAmF,WAAA,CAG1BF,qBAAqB;UAAA,SAClB/D,KAAK,CAACsB;QAAK,IACTG,KAAK;MAAA;IAIvB,CAAC,CAAC;IAEF,OAAO,CAAE,CAAC;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRef","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","slim","VTreeview","name","props","emits","val","value","setup","_ref","slots","activeColor","baseColor","color","activated","selected","vListRef","opened","flatItems","filteredItems","visibleIds","Set","flatMap","getPath","getChildren","id","path","parent","unshift","parents","get","arr","queue","slice","child","shift","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event","default"],"sources":["../../../src/labs/VTreeview/VTreeview.tsx"],"sourcesContent":["// Components\nimport { makeVTreeviewChildrenProps, VTreeviewChildren } from './VTreeviewChildren'\nimport { makeVListProps, useListItems, VList } from '@/components/VList/VList'\n\n// Composables\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeFilterProps, useFilter } from '@/composables/filter'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, provide, ref, toRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { VListChildrenSlots } from '@/components/VList/VListChildren'\nimport type { ListItem } from '@/composables/list-items'\nimport type { GenericProps } from '@/util'\n\nfunction flatten (items: ListItem[], flat: ListItem[] = []) {\n for (const item of items) {\n flat.push(item)\n if (item.children) flatten(item.children, flat)\n }\n return flat\n}\n\nexport const makeVTreeviewProps = propsFactory({\n openAll: Boolean,\n search: String,\n\n ...makeFilterProps({ filterKeys: ['title'] }),\n ...makeVTreeviewChildrenProps(),\n ...omit(makeVListProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand',\n slim: true,\n }), ['itemType', 'nav']),\n}, 'VTreeview')\n\nexport const VTreeview = genericComponent<new <T>(\n props: {\n items?: T[]\n },\n slots: VListChildrenSlots<T>\n) => GenericProps<typeof props, typeof slots>>()({\n name: 'VTreeview',\n\n props: makeVTreeviewProps(),\n\n emits: {\n 'update:opened': (val: unknown) => true,\n 'update:activated': (val: unknown) => true,\n 'update:selected': (val: unknown) => true,\n 'click:open': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n 'click:select': (value: { id: unknown, value: boolean, path: unknown[] }) => true,\n },\n\n setup (props, { slots }) {\n const { items } = useListItems(props)\n const activeColor = toRef(props, 'activeColor')\n const baseColor = toRef(props, 'baseColor')\n const color = toRef(props, 'color')\n const activated = useProxiedModel(props, 'activated')\n const selected = useProxiedModel(props, 'selected')\n\n const vListRef = ref<VList>()\n\n const opened = computed(() => props.openAll ? openAll(items.value) : props.opened)\n const flatItems = computed(() => flatten(items.value))\n const search = toRef(props, 'search')\n const { filteredItems } = useFilter(props, flatItems, search)\n const visibleIds = computed(() => {\n if (!search.value) {\n return null\n }\n return new Set(filteredItems.value.flatMap(item => {\n return [...getPath(item.props.value), ...getChildren(item.props.value)]\n }))\n })\n\n function getPath (id: unknown) {\n const path: unknown[] = []\n let parent: unknown = id\n while (parent != null) {\n path.unshift(parent)\n parent = vListRef.value?.parents.get(parent)\n }\n return path\n }\n\n function getChildren (id: unknown) {\n const arr: unknown[] = []\n const queue = ((vListRef.value?.children.get(id) ?? []).slice())\n while (queue.length) {\n const child = queue.shift()\n if (!child) continue\n arr.push(child)\n queue.push(...((vListRef.value?.children.get(child) ?? []).slice()))\n }\n return arr\n }\n\n function openAll (item: any) {\n let ids: number[] = []\n\n for (const i of item) {\n if (!i.children) continue\n\n ids.push(i.value)\n\n if (i.children) {\n ids = ids.concat(openAll(i.children))\n }\n }\n\n return ids\n }\n\n provide(VTreeviewSymbol, { visibleIds })\n\n provideDefaults({\n VTreeviewGroup: {\n activeColor,\n baseColor,\n color,\n collapseIcon: toRef(props, 'collapseIcon'),\n expandIcon: toRef(props, 'expandIcon'),\n },\n VTreeviewItem: {\n activeClass: toRef(props, 'activeClass'),\n activeColor,\n baseColor,\n color,\n density: toRef(props, 'density'),\n disabled: toRef(props, 'disabled'),\n lines: toRef(props, 'lines'),\n variant: toRef(props, 'variant'),\n },\n })\n\n useRender(() => {\n const listProps = VList.filterProps(props)\n\n const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n\n return (\n <VList\n ref={ vListRef }\n { ...listProps }\n class={[\n 'v-treeview',\n props.class,\n ]}\n style={ props.style }\n opened={ opened.value }\n v-model:activated={ activated.value }\n v-model:selected={ selected.value }\n >\n <VTreeviewChildren\n { ...treeviewChildrenProps }\n items={ items.value }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return { }\n },\n})\n\nexport type VTreeview = InstanceType<typeof VTreeview>\n"],"mappings":";AAAA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,cAAc,EAAEC,YAAY,EAAEC,KAAK,4CAE5C;AAAA,SACSC,eAAe;AAAA,SACfC,eAAe,EAAEC,SAAS;AAAA,SAC1BC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,OAAO,EAAEC,GAAG,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC1CC,gBAAgB,EAAEC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