@vuetify/nightly 3.7.0-beta.1-dev.2024-08-01 → 3.7.0-beta.1-dev.2024-08-08

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.7.0-beta.1-dev.2024-08-01
2
+ * Vuetify v3.7.0-beta.1-dev.2024-08-08
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -2093,8 +2093,8 @@ if(d.install(e),e.provide(xt,u),e.provide(yn,c),e.provide(wa,d),e.provide(Lt,v),
2093
2093
  else{const{mount:a}=e
2094
2094
  e.mount=function(){const l=a(...arguments)
2095
2095
  return t.nextTick((()=>c.update())),e.mount=a,l}}kt.reset(),("boolean"!=typeof __VUE_OPTIONS_API__||__VUE_OPTIONS_API__)&&e.mixin({computed:{$vuetify(){return t.reactive({defaults:uf.call(this,xt),display:uf.call(this,yn),theme:uf.call(this,wa),icons:uf.call(this,Lt),locale:uf.call(this,ga),date:uf.call(this,gu)})}}})},defaults:u,display:c,theme:d,icons:v,locale:p,date:f,goTo:m}}function uf(e){const t=this.$,a=t.parent?.provides??t.vnode.appContext?.provides
2096
- if(a&&e in a)return a[e]}sf.version="3.7.0-beta.1-dev.2024-08-01"
2097
- const cf=function(){return sf({components:Qp,directives:rf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},df="3.7.0-beta.1-dev.2024-08-01"
2096
+ if(a&&e in a)return a[e]}sf.version="3.7.0-beta.1-dev.2024-08-08"
2097
+ const cf=function(){return sf({components:Qp,directives:rf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},df="3.7.0-beta.1-dev.2024-08-08"
2098
2098
  cf.version=df,e.blueprints=Qt,e.components=Qp,e.createVuetify=cf,e.directives=rf,e.useDate=yu,e.useDefaults=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0
2099
2099
  const{props:a,provideSubDefaults:l}=_t(e,t)
2100
2100
  return l(),a},e.useDisplay=Nn,e.useGoTo=Pn,e.useLayout=oa,e.useLocale=ya,e.useRtl=Va,e.useTheme=Na,e.version=df}))
@@ -16,7 +16,7 @@ export const createVuetify = function () {
16
16
  ...options
17
17
  });
18
18
  };
19
- export const version = "3.7.0-beta.1-dev.2024-08-01";
19
+ export const version = "3.7.0-beta.1-dev.2024-08-08";
20
20
  createVuetify.version = version;
21
21
  export { blueprints, components, directives };
22
22
  export * from "./composables/index.mjs";
package/lib/framework.mjs CHANGED
@@ -97,7 +97,7 @@ export function createVuetify() {
97
97
  goTo
98
98
  };
99
99
  }
100
- export const version = "3.7.0-beta.1-dev.2024-08-01";
100
+ export const version = "3.7.0-beta.1-dev.2024-08-08";
101
101
  createVuetify.version = version;
102
102
 
103
103
  // Vue's inject() can only be used in setup
package/lib/index.d.mts CHANGED
@@ -468,44 +468,37 @@ interface _GlobalComponents {
468
468
  VAvatar: typeof import('vuetify/components')['VAvatar']
469
469
  VAlert: typeof import('vuetify/components')['VAlert']
470
470
  VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
471
- VBadge: typeof import('vuetify/components')['VBadge']
472
471
  VAppBar: typeof import('vuetify/components')['VAppBar']
473
472
  VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
474
473
  VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
474
+ VBadge: typeof import('vuetify/components')['VBadge']
475
+ VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
476
+ VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
475
477
  VBanner: typeof import('vuetify/components')['VBanner']
476
478
  VBannerActions: typeof import('vuetify/components')['VBannerActions']
477
479
  VBannerText: typeof import('vuetify/components')['VBannerText']
478
480
  VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
479
481
  VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
480
482
  VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
481
- VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
482
- VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
483
- VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
484
- VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
485
- VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
486
483
  VBtn: typeof import('vuetify/components')['VBtn']
487
- VCarousel: typeof import('vuetify/components')['VCarousel']
488
- VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
484
+ VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
489
485
  VCard: typeof import('vuetify/components')['VCard']
490
486
  VCardActions: typeof import('vuetify/components')['VCardActions']
491
487
  VCardItem: typeof import('vuetify/components')['VCardItem']
492
488
  VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
493
489
  VCardText: typeof import('vuetify/components')['VCardText']
494
490
  VCardTitle: typeof import('vuetify/components')['VCardTitle']
491
+ VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
495
492
  VCheckbox: typeof import('vuetify/components')['VCheckbox']
496
493
  VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
494
+ VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
497
495
  VChipGroup: typeof import('vuetify/components')['VChipGroup']
498
- VChip: typeof import('vuetify/components')['VChip']
496
+ VCarousel: typeof import('vuetify/components')['VCarousel']
497
+ VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
499
498
  VColorPicker: typeof import('vuetify/components')['VColorPicker']
499
+ VChip: typeof import('vuetify/components')['VChip']
500
500
  VCode: typeof import('vuetify/components')['VCode']
501
501
  VCombobox: typeof import('vuetify/components')['VCombobox']
502
- VDataTable: typeof import('vuetify/components')['VDataTable']
503
- VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
504
- VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
505
- VDataTableRows: typeof import('vuetify/components')['VDataTableRows']
506
- VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
507
- VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
508
- VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
509
502
  VCounter: typeof import('vuetify/components')['VCounter']
510
503
  VDatePicker: typeof import('vuetify/components')['VDatePicker']
511
504
  VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
@@ -513,29 +506,37 @@ interface _GlobalComponents {
513
506
  VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
514
507
  VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
515
508
  VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
516
- VDialog: typeof import('vuetify/components')['VDialog']
509
+ VDataTable: typeof import('vuetify/components')['VDataTable']
510
+ VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
511
+ VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
512
+ VDataTableRows: typeof import('vuetify/components')['VDataTableRows']
513
+ VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
514
+ VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
515
+ VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
517
516
  VDivider: typeof import('vuetify/components')['VDivider']
517
+ VEmptyState: typeof import('vuetify/components')['VEmptyState']
518
518
  VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
519
519
  VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
520
520
  VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
521
521
  VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
522
- VEmptyState: typeof import('vuetify/components')['VEmptyState']
522
+ VDialog: typeof import('vuetify/components')['VDialog']
523
+ VFab: typeof import('vuetify/components')['VFab']
523
524
  VField: typeof import('vuetify/components')['VField']
524
525
  VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
525
- VFab: typeof import('vuetify/components')['VFab']
526
+ VFooter: typeof import('vuetify/components')['VFooter']
527
+ VImg: typeof import('vuetify/components')['VImg']
526
528
  VFileInput: typeof import('vuetify/components')['VFileInput']
529
+ VKbd: typeof import('vuetify/components')['VKbd']
527
530
  VIcon: typeof import('vuetify/components')['VIcon']
528
531
  VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
529
532
  VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
530
533
  VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
531
534
  VClassIcon: typeof import('vuetify/components')['VClassIcon']
532
- VFooter: typeof import('vuetify/components')['VFooter']
533
535
  VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
536
+ VInput: typeof import('vuetify/components')['VInput']
537
+ VLabel: typeof import('vuetify/components')['VLabel']
534
538
  VItemGroup: typeof import('vuetify/components')['VItemGroup']
535
539
  VItem: typeof import('vuetify/components')['VItem']
536
- VImg: typeof import('vuetify/components')['VImg']
537
- VInput: typeof import('vuetify/components')['VInput']
538
- VKbd: typeof import('vuetify/components')['VKbd']
539
540
  VList: typeof import('vuetify/components')['VList']
540
541
  VListGroup: typeof import('vuetify/components')['VListGroup']
541
542
  VListImg: typeof import('vuetify/components')['VListImg']
@@ -545,72 +546,71 @@ interface _GlobalComponents {
545
546
  VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
546
547
  VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
547
548
  VListSubheader: typeof import('vuetify/components')['VListSubheader']
548
- VLabel: typeof import('vuetify/components')['VLabel']
549
- VMain: typeof import('vuetify/components')['VMain']
550
549
  VMenu: typeof import('vuetify/components')['VMenu']
551
- VMessages: typeof import('vuetify/components')['VMessages']
552
550
  VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
551
+ VMessages: typeof import('vuetify/components')['VMessages']
552
+ VMain: typeof import('vuetify/components')['VMain']
553
553
  VOtpInput: typeof import('vuetify/components')['VOtpInput']
554
- VOverlay: typeof import('vuetify/components')['VOverlay']
555
554
  VPagination: typeof import('vuetify/components')['VPagination']
556
- VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
557
555
  VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
556
+ VOverlay: typeof import('vuetify/components')['VOverlay']
558
557
  VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
559
- VRating: typeof import('vuetify/components')['VRating']
558
+ VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
560
559
  VSelect: typeof import('vuetify/components')['VSelect']
561
560
  VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
561
+ VRating: typeof import('vuetify/components')['VRating']
562
562
  VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
563
+ VSheet: typeof import('vuetify/components')['VSheet']
563
564
  VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
564
565
  VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
565
- VSheet: typeof import('vuetify/components')['VSheet']
566
- VSlider: typeof import('vuetify/components')['VSlider']
566
+ VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
567
567
  VSnackbar: typeof import('vuetify/components')['VSnackbar']
568
+ VTab: typeof import('vuetify/components')['VTab']
569
+ VTabs: typeof import('vuetify/components')['VTabs']
570
+ VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
571
+ VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
572
+ VSlider: typeof import('vuetify/components')['VSlider']
568
573
  VStepper: typeof import('vuetify/components')['VStepper']
569
574
  VStepperActions: typeof import('vuetify/components')['VStepperActions']
570
575
  VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
571
576
  VStepperItem: typeof import('vuetify/components')['VStepperItem']
572
577
  VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
573
578
  VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
574
- VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
575
579
  VSwitch: typeof import('vuetify/components')['VSwitch']
576
580
  VSystemBar: typeof import('vuetify/components')['VSystemBar']
577
- VTab: typeof import('vuetify/components')['VTab']
578
- VTabs: typeof import('vuetify/components')['VTabs']
579
- VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
580
- VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
581
581
  VTable: typeof import('vuetify/components')['VTable']
582
582
  VTextarea: typeof import('vuetify/components')['VTextarea']
583
+ VTextField: typeof import('vuetify/components')['VTextField']
583
584
  VTimeline: typeof import('vuetify/components')['VTimeline']
584
585
  VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
585
586
  VToolbar: typeof import('vuetify/components')['VToolbar']
586
587
  VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
587
588
  VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
588
- VTextField: typeof import('vuetify/components')['VTextField']
589
589
  VTooltip: typeof import('vuetify/components')['VTooltip']
590
590
  VWindow: typeof import('vuetify/components')['VWindow']
591
591
  VWindowItem: typeof import('vuetify/components')['VWindowItem']
592
592
  VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
593
593
  VDataIterator: typeof import('vuetify/components')['VDataIterator']
594
594
  VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
595
- VForm: typeof import('vuetify/components')['VForm']
596
595
  VContainer: typeof import('vuetify/components')['VContainer']
597
596
  VCol: typeof import('vuetify/components')['VCol']
598
597
  VRow: typeof import('vuetify/components')['VRow']
599
598
  VSpacer: typeof import('vuetify/components')['VSpacer']
599
+ VForm: typeof import('vuetify/components')['VForm']
600
600
  VHover: typeof import('vuetify/components')['VHover']
601
- VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
602
601
  VLazy: typeof import('vuetify/components')['VLazy']
603
602
  VLayout: typeof import('vuetify/components')['VLayout']
604
603
  VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
604
+ VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
605
605
  VNoSsr: typeof import('vuetify/components')['VNoSsr']
606
- VParallax: typeof import('vuetify/components')['VParallax']
607
606
  VRadio: typeof import('vuetify/components')['VRadio']
607
+ VParallax: typeof import('vuetify/components')['VParallax']
608
608
  VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
609
609
  VResponsive: typeof import('vuetify/components')['VResponsive']
610
- VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
611
610
  VSparkline: typeof import('vuetify/components')['VSparkline']
612
- VValidation: typeof import('vuetify/components')['VValidation']
611
+ VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
613
612
  VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
613
+ VValidation: typeof import('vuetify/components')['VValidation']
614
614
  VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
615
615
  VFabTransition: typeof import('vuetify/components')['VFabTransition']
616
616
  VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
@@ -634,15 +634,15 @@ interface _GlobalComponents {
634
634
  VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
635
635
  VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
636
636
  VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
637
- VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
638
637
  VPicker: typeof import('vuetify/labs/components')['VPicker']
639
638
  VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
640
- VTreeview: typeof import('vuetify/labs/components')['VTreeview']
641
- VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
642
- VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
643
639
  VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
644
640
  VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
645
641
  VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
642
+ VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
643
+ VTreeview: typeof import('vuetify/labs/components')['VTreeview']
644
+ VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
645
+ VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
646
646
  VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
647
647
  VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
648
648
  VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
@@ -27,7 +27,11 @@ export const makeVTreeviewProps = propsFactory({
27
27
  collapseIcon: '$treeviewCollapse',
28
28
  expandIcon: '$treeviewExpand',
29
29
  slim: true
30
- }), ['nav', 'openStrategy'])
30
+ }), ['nav', 'openStrategy']),
31
+ modelValue: {
32
+ type: Array,
33
+ default: () => []
34
+ }
31
35
  }, 'VTreeview');
32
36
  export const VTreeview = genericComponent()({
33
37
  name: 'VTreeview',
@@ -36,6 +40,7 @@ export const VTreeview = genericComponent()({
36
40
  'update:opened': val => true,
37
41
  'update:activated': val => true,
38
42
  'update:selected': val => true,
43
+ 'update:modelValue': val => true,
39
44
  'click:open': value => true,
40
45
  'click:select': value => true
41
46
  },
@@ -50,7 +55,15 @@ export const VTreeview = genericComponent()({
50
55
  const baseColor = toRef(props, 'baseColor');
51
56
  const color = toRef(props, 'color');
52
57
  const activated = useProxiedModel(props, 'activated');
53
- const selected = useProxiedModel(props, 'selected');
58
+ const model = useProxiedModel(props, 'modelValue');
59
+ const _selected = useProxiedModel(props, 'selected', props.modelValue);
60
+ const selected = computed({
61
+ get: () => _selected.value,
62
+ set(val) {
63
+ _selected.value = val;
64
+ model.value = val;
65
+ }
66
+ });
54
67
  const vListRef = ref();
55
68
  const opened = computed(() => props.openAll ? openAll(items.value) : props.opened);
56
69
  const flatItems = computed(() => flatten(items.value));
@@ -1 +1 @@
1
- {"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRaw","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","returnObject","raw","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event","default","open"],"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, toRaw, toRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { InternalListItem } from '@/components/VList/VList'\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', 'openStrategy']),\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 (items: InternalListItem<any>[]) {\n let ids: any[] = []\n\n for (const i of items) {\n if (!i.children) continue\n\n ids.push(props.returnObject ? toRaw(i.raw) : 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 open-strategy=\"multiple\"\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 returnObject={ props.returnObject }\n items={ items.value }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return {\n open,\n }\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,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjDC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAAA,SACSC,eAAe;AAMxB,SAASC,OAAOA,CAAEC,KAAiB,EAAyB;EAAA,IAAvBC,IAAgB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACxD,KAAK,MAAMG,IAAI,IAAIL,KAAK,EAAE;IACxBC,IAAI,CAACK,IAAI,CAACD,IAAI,CAAC;IACf,IAAIA,IAAI,CAACE,QAAQ,EAAER,OAAO,CAACM,IAAI,CAACE,QAAQ,EAAEN,IAAI,CAAC;EACjD;EACA,OAAOA,IAAI;AACb;AAEA,OAAO,MAAMO,kBAAkB,GAAGZ,YAAY,CAAC;EAC7Ca,OAAO,EAAEC,OAAO;EAChBC,MAAM,EAAEC,MA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TC,KAAK;QACL+B,OAAO,EAAElE,KAAK,CAAC0B,KAAK,EAAE,SAAS,CAAC;QAChCyC,QAAQ,EAAEnE,KAAK,CAAC0B,KAAK,EAAE,UAAU,CAAC;QAClC0C,KAAK,EAAEpE,KAAK,CAAC0B,KAAK,EAAE,OAAO,CAAC;QAC5B2C,OAAO,EAAErE,KAAK,CAAC0B,KAAK,EAAE,SAAS;MACjC;IACF,CAAC,CAAC;IAEFtB,SAAS,CAAC,MAAM;MACd,MAAMkE,SAAS,GAAG/E,KAAK,CAACgF,WAAW,CAAC7C,KAAK,CAAC;MAE1C,MAAM8C,qBAAqB,GAAGpF,iBAAiB,CAACmF,WAAW,CAAC7C,KAAK,CAAC;MAElE,OAAA+C,YAAA,CAAAlF,KAAA,EAAAmF,WAAA;QAAA,OAEUpC;MAAQ,GACTgC,SAAS;QAAA,SACP,CACL,YAAY,EACZ5C,KAAK,CAACiD,KAAK,CACZ;QAAA;QAAA,SAEOjD,KAAK,CAACkD,KAAK;QAAA,UACVrC,MAAM,CAACV,KAAK;QAAA,aACDO,SAAS,CAACP,KAAK;QAAA,sBAAAgD,MAAA,IAAfzC,SAAS,CAACP,KAAK,GAAAgD,MAAA;QAAA,YAChBxC,QAAQ,CAACR,KAAK;QAAA,qBAAAgD,MAAA,IAAdxC,QAAQ,CAACR,KAAK,GAAAgD;MAAA;QAAAC,OAAA,EAAAA,CAAA,MAAAL,YAAA,CAAArF,iBAAA,EAAAsF,WAAA,CAG1BF,qBAAqB;UAAA,gBACX9C,KAAK,CAACkC,YAAY;UAAA,SACzBrD,KAAK,CAACsB;QAAK,IACTG,KAAK;MAAA;IAIvB,CAAC,CAAC;IAEF,OAAO;MACL+C;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VTreeview.mjs","names":["makeVTreeviewChildrenProps","VTreeviewChildren","makeVListProps","useListItems","VList","provideDefaults","makeFilterProps","useFilter","useProxiedModel","computed","provide","ref","toRaw","toRef","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","flatten","items","flat","arguments","length","undefined","item","push","children","makeVTreeviewProps","openAll","Boolean","search","String","filterKeys","collapseIcon","expandIcon","slim","modelValue","type","Array","default","VTreeview","name","props","emits","val","value","setup","_ref","slots","activeColor","baseColor","color","activated","model","_selected","selected","get","set","vListRef","opened","flatItems","filteredItems","visibleIds","Set","flatMap","getPath","getChildren","id","path","parent","unshift","parents","arr","queue","slice","child","shift","ids","i","returnObject","raw","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","_createVNode","_mergeProps","class","style","$event","open"],"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, toRaw, toRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { InternalListItem } from '@/components/VList/VList'\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', 'openStrategy']),\n modelValue: {\n type: Array,\n default: () => ([]),\n },\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 'update:modelValue': (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 model = useProxiedModel(props, 'modelValue')\n const _selected = useProxiedModel(props, 'selected', props.modelValue)\n\n const selected = computed({\n get: () => _selected.value,\n set (val) {\n _selected.value = val\n model.value = val\n },\n })\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 (items: InternalListItem<any>[]) {\n let ids: any[] = []\n\n for (const i of items) {\n if (!i.children) continue\n\n ids.push(props.returnObject ? toRaw(i.raw) : 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 open-strategy=\"multiple\"\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 returnObject={ props.returnObject }\n items={ items.value }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return {\n open,\n }\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,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjDC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAExD;AAAA,SACSC,eAAe;AAMxB,SAASC,OAAOA,CAAEC,KAAiB,EAAyB;EAAA,IAAvBC,IAAgB,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,EAAE;EACxD,KAAK,MAAMG,IAAI,IAAIL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;MAAQ,GACT+B,SAAS;QAAA,SACP,CACL,YAAY,EACZ/C,KAAK,CAACoD,KAAK,CACZ;QAAA;QAAA,SAEOpD,KAAK,CAACqD,KAAK;QAAA,UACVpC,MAAM,CAACd,KAAK;QAAA,aACDO,SAAS,CAACP,KAAK;QAAA,sBAAAmD,MAAA,IAAf5C,SAAS,CAACP,KAAK,GAAAmD,MAAA;QAAA,YAChBzC,QAAQ,CAACV,KAAK;QAAA,qBAAAmD,MAAA,IAAdzC,QAAQ,CAACV,KAAK,GAAAmD;MAAA;QAAAzD,OAAA,EAAAA,CAAA,MAAAqD,YAAA,CAAA5F,iBAAA,EAAA6F,WAAA,CAG1BF,qBAAqB;UAAA,gBACXjD,KAAK,CAACqC,YAAY;UAAA,SACzB5D,KAAK,CAAC0B;QAAK,IACTG,KAAK;MAAA;IAIvB,CAAC,CAAC;IAEF,OAAO;MACLiD;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
@@ -153,6 +153,7 @@ declare const VTreeview: {
153
153
  disabled: boolean;
154
154
  tag: string;
155
155
  mandatory: boolean;
156
+ modelValue: unknown[];
156
157
  tile: boolean;
157
158
  density: Density;
158
159
  slim: boolean;
@@ -216,6 +217,7 @@ declare const VTreeview: {
216
217
  selectedColor?: string | undefined;
217
218
  loadChildren?: ((item: unknown) => Promise<void>) | undefined;
218
219
  } & {
220
+ "onUpdate:modelValue"?: ((val: unknown) => any) | undefined;
219
221
  "onUpdate:activated"?: ((val: unknown) => any) | undefined;
220
222
  "onUpdate:selected"?: ((val: unknown) => any) | undefined;
221
223
  "onUpdate:opened"?: ((val: unknown) => any) | undefined;
@@ -235,6 +237,7 @@ declare const VTreeview: {
235
237
  'update:opened': (val: unknown) => boolean;
236
238
  'update:activated': (val: unknown) => boolean;
237
239
  'update:selected': (val: unknown) => boolean;
240
+ 'update:modelValue': (val: unknown) => boolean;
238
241
  'click:open': (value: {
239
242
  id: unknown;
240
243
  value: boolean;
@@ -251,6 +254,7 @@ declare const VTreeview: {
251
254
  disabled: boolean;
252
255
  tag: string;
253
256
  mandatory: boolean;
257
+ modelValue: unknown[];
254
258
  tile: boolean;
255
259
  density: Density;
256
260
  slim: boolean;
@@ -314,6 +318,7 @@ declare const VTreeview: {
314
318
  selectedColor?: string | undefined;
315
319
  loadChildren?: ((item: unknown) => Promise<void>) | undefined;
316
320
  } & {
321
+ "onUpdate:modelValue"?: ((val: unknown) => any) | undefined;
317
322
  "onUpdate:activated"?: ((val: unknown) => any) | undefined;
318
323
  "onUpdate:selected"?: ((val: unknown) => any) | undefined;
319
324
  "onUpdate:opened"?: ((val: unknown) => any) | undefined;
@@ -333,6 +338,7 @@ declare const VTreeview: {
333
338
  disabled: boolean;
334
339
  tag: string;
335
340
  mandatory: boolean;
341
+ modelValue: unknown[];
336
342
  rounded: string | number | boolean;
337
343
  tile: boolean;
338
344
  density: Density;
@@ -430,6 +436,7 @@ declare const VTreeview: {
430
436
  disabled: boolean;
431
437
  tag: string;
432
438
  mandatory: boolean;
439
+ modelValue: unknown[];
433
440
  tile: boolean;
434
441
  density: Density;
435
442
  slim: boolean;
@@ -493,6 +500,7 @@ declare const VTreeview: {
493
500
  selectedColor?: string | undefined;
494
501
  loadChildren?: ((item: unknown) => Promise<void>) | undefined;
495
502
  } & {
503
+ "onUpdate:modelValue"?: ((val: unknown) => any) | undefined;
496
504
  "onUpdate:activated"?: ((val: unknown) => any) | undefined;
497
505
  "onUpdate:selected"?: ((val: unknown) => any) | undefined;
498
506
  "onUpdate:opened"?: ((val: unknown) => any) | undefined;
@@ -514,6 +522,7 @@ declare const VTreeview: {
514
522
  disabled: boolean;
515
523
  tag: string;
516
524
  mandatory: boolean;
525
+ modelValue: unknown[];
517
526
  rounded: string | number | boolean;
518
527
  tile: boolean;
519
528
  density: Density;
@@ -548,6 +557,7 @@ declare const VTreeview: {
548
557
  disabled: boolean;
549
558
  tag: string;
550
559
  mandatory: boolean;
560
+ modelValue: unknown[];
551
561
  tile: boolean;
552
562
  density: Density;
553
563
  slim: boolean;
@@ -611,6 +621,7 @@ declare const VTreeview: {
611
621
  selectedColor?: string | undefined;
612
622
  loadChildren?: ((item: unknown) => Promise<void>) | undefined;
613
623
  } & {
624
+ "onUpdate:modelValue"?: ((val: unknown) => any) | undefined;
614
625
  "onUpdate:activated"?: ((val: unknown) => any) | undefined;
615
626
  "onUpdate:selected"?: ((val: unknown) => any) | undefined;
616
627
  "onUpdate:opened"?: ((val: unknown) => any) | undefined;
@@ -630,6 +641,7 @@ declare const VTreeview: {
630
641
  'update:opened': (val: unknown) => boolean;
631
642
  'update:activated': (val: unknown) => boolean;
632
643
  'update:selected': (val: unknown) => boolean;
644
+ 'update:modelValue': (val: unknown) => boolean;
633
645
  'click:open': (value: {
634
646
  id: unknown;
635
647
  value: boolean;
@@ -646,6 +658,7 @@ declare const VTreeview: {
646
658
  disabled: boolean;
647
659
  tag: string;
648
660
  mandatory: boolean;
661
+ modelValue: unknown[];
649
662
  rounded: string | number | boolean;
650
663
  tile: boolean;
651
664
  density: Density;
@@ -735,6 +748,10 @@ declare const VTreeview: {
735
748
  }, slots: VListChildrenSlots<T>) => GenericProps<{
736
749
  items?: T[] | undefined;
737
750
  }, VListChildrenSlots<T>>) & FilterPropsOptions<{
751
+ modelValue: {
752
+ type: ArrayConstructor;
753
+ default: () => never[];
754
+ };
738
755
  variant: Omit<{
739
756
  type: vue.PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
740
757
  default: string;
@@ -877,6 +894,10 @@ declare const VTreeview: {
877
894
  openAll: BooleanConstructor;
878
895
  search: StringConstructor;
879
896
  }, vue.ExtractPropTypes<{
897
+ modelValue: {
898
+ type: ArrayConstructor;
899
+ default: () => never[];
900
+ };
880
901
  variant: Omit<{
881
902
  type: vue.PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
882
903
  default: string;
@@ -9790,6 +9790,7 @@ declare const VTreeview: {
9790
9790
  disabled: boolean;
9791
9791
  tag: string;
9792
9792
  mandatory: boolean;
9793
+ modelValue: unknown[];
9793
9794
  tile: boolean;
9794
9795
  density: Density;
9795
9796
  slim: boolean;
@@ -9853,6 +9854,7 @@ declare const VTreeview: {
9853
9854
  selectedColor?: string | undefined;
9854
9855
  loadChildren?: ((item: unknown) => Promise<void>) | undefined;
9855
9856
  } & {
9857
+ "onUpdate:modelValue"?: ((val: unknown) => any) | undefined;
9856
9858
  "onUpdate:activated"?: ((val: unknown) => any) | undefined;
9857
9859
  "onUpdate:selected"?: ((val: unknown) => any) | undefined;
9858
9860
  "onUpdate:opened"?: ((val: unknown) => any) | undefined;
@@ -9872,6 +9874,7 @@ declare const VTreeview: {
9872
9874
  'update:opened': (val: unknown) => boolean;
9873
9875
  'update:activated': (val: unknown) => boolean;
9874
9876
  'update:selected': (val: unknown) => boolean;
9877
+ 'update:modelValue': (val: unknown) => boolean;
9875
9878
  'click:open': (value: {
9876
9879
  id: unknown;
9877
9880
  value: boolean;
@@ -9888,6 +9891,7 @@ declare const VTreeview: {
9888
9891
  disabled: boolean;
9889
9892
  tag: string;
9890
9893
  mandatory: boolean;
9894
+ modelValue: unknown[];
9891
9895
  tile: boolean;
9892
9896
  density: Density;
9893
9897
  slim: boolean;
@@ -9951,6 +9955,7 @@ declare const VTreeview: {
9951
9955
  selectedColor?: string | undefined;
9952
9956
  loadChildren?: ((item: unknown) => Promise<void>) | undefined;
9953
9957
  } & {
9958
+ "onUpdate:modelValue"?: ((val: unknown) => any) | undefined;
9954
9959
  "onUpdate:activated"?: ((val: unknown) => any) | undefined;
9955
9960
  "onUpdate:selected"?: ((val: unknown) => any) | undefined;
9956
9961
  "onUpdate:opened"?: ((val: unknown) => any) | undefined;
@@ -9970,6 +9975,7 @@ declare const VTreeview: {
9970
9975
  disabled: boolean;
9971
9976
  tag: string;
9972
9977
  mandatory: boolean;
9978
+ modelValue: unknown[];
9973
9979
  rounded: string | number | boolean;
9974
9980
  tile: boolean;
9975
9981
  density: Density;
@@ -10067,6 +10073,7 @@ declare const VTreeview: {
10067
10073
  disabled: boolean;
10068
10074
  tag: string;
10069
10075
  mandatory: boolean;
10076
+ modelValue: unknown[];
10070
10077
  tile: boolean;
10071
10078
  density: Density;
10072
10079
  slim: boolean;
@@ -10130,6 +10137,7 @@ declare const VTreeview: {
10130
10137
  selectedColor?: string | undefined;
10131
10138
  loadChildren?: ((item: unknown) => Promise<void>) | undefined;
10132
10139
  } & {
10140
+ "onUpdate:modelValue"?: ((val: unknown) => any) | undefined;
10133
10141
  "onUpdate:activated"?: ((val: unknown) => any) | undefined;
10134
10142
  "onUpdate:selected"?: ((val: unknown) => any) | undefined;
10135
10143
  "onUpdate:opened"?: ((val: unknown) => any) | undefined;
@@ -10151,6 +10159,7 @@ declare const VTreeview: {
10151
10159
  disabled: boolean;
10152
10160
  tag: string;
10153
10161
  mandatory: boolean;
10162
+ modelValue: unknown[];
10154
10163
  rounded: string | number | boolean;
10155
10164
  tile: boolean;
10156
10165
  density: Density;
@@ -10185,6 +10194,7 @@ declare const VTreeview: {
10185
10194
  disabled: boolean;
10186
10195
  tag: string;
10187
10196
  mandatory: boolean;
10197
+ modelValue: unknown[];
10188
10198
  tile: boolean;
10189
10199
  density: Density;
10190
10200
  slim: boolean;
@@ -10248,6 +10258,7 @@ declare const VTreeview: {
10248
10258
  selectedColor?: string | undefined;
10249
10259
  loadChildren?: ((item: unknown) => Promise<void>) | undefined;
10250
10260
  } & {
10261
+ "onUpdate:modelValue"?: ((val: unknown) => any) | undefined;
10251
10262
  "onUpdate:activated"?: ((val: unknown) => any) | undefined;
10252
10263
  "onUpdate:selected"?: ((val: unknown) => any) | undefined;
10253
10264
  "onUpdate:opened"?: ((val: unknown) => any) | undefined;
@@ -10267,6 +10278,7 @@ declare const VTreeview: {
10267
10278
  'update:opened': (val: unknown) => boolean;
10268
10279
  'update:activated': (val: unknown) => boolean;
10269
10280
  'update:selected': (val: unknown) => boolean;
10281
+ 'update:modelValue': (val: unknown) => boolean;
10270
10282
  'click:open': (value: {
10271
10283
  id: unknown;
10272
10284
  value: boolean;
@@ -10283,6 +10295,7 @@ declare const VTreeview: {
10283
10295
  disabled: boolean;
10284
10296
  tag: string;
10285
10297
  mandatory: boolean;
10298
+ modelValue: unknown[];
10286
10299
  rounded: string | number | boolean;
10287
10300
  tile: boolean;
10288
10301
  density: Density;
@@ -10372,6 +10385,10 @@ declare const VTreeview: {
10372
10385
  }, slots: VListChildrenSlots<T>) => GenericProps<{
10373
10386
  items?: T[] | undefined;
10374
10387
  }, VListChildrenSlots<T>>) & FilterPropsOptions<{
10388
+ modelValue: {
10389
+ type: ArrayConstructor;
10390
+ default: () => never[];
10391
+ };
10375
10392
  variant: Omit<{
10376
10393
  type: vue.PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
10377
10394
  default: string;
@@ -10514,6 +10531,10 @@ declare const VTreeview: {
10514
10531
  openAll: BooleanConstructor;
10515
10532
  search: StringConstructor;
10516
10533
  }, vue.ExtractPropTypes<{
10534
+ modelValue: {
10535
+ type: ArrayConstructor;
10536
+ default: () => never[];
10537
+ };
10517
10538
  variant: Omit<{
10518
10539
  type: vue.PropType<"flat" | "text" | "elevated" | "tonal" | "outlined" | "plain">;
10519
10540
  default: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vuetify/nightly",
3
3
  "description": "Vue Material Component Framework",
4
- "version": "3.7.0-beta.1-dev.2024-08-01",
4
+ "version": "3.7.0-beta.1-dev.2024-08-08",
5
5
  "author": {
6
6
  "name": "John Leider",
7
7
  "email": "john@vuetifyjs.com"