@vuetify/nightly 3.7.4-master.2024-11-28 → 3.7.4-master.2024-11-29
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 +2725 -2725
- package/dist/json/importMap-labs.json +16 -16
- package/dist/json/importMap.json +160 -160
- package/dist/json/web-types.json +5145 -5145
- package/dist/vuetify-labs.css +2697 -2697
- package/dist/vuetify-labs.esm.js +6 -7
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +6 -7
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1382 -1382
- package/dist/vuetify.d.ts +51 -51
- package/dist/vuetify.esm.js +3 -3
- package/dist/vuetify.js +3 -3
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +3 -3
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +51 -51
- package/lib/labs/VTreeview/VTreeviewItem.mjs +3 -4
- package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
- package/package.json +1 -1
package/dist/vuetify.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.7.4-master.2024-11-
|
2
|
+
* Vuetify v3.7.4-master.2024-11-29
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -2099,8 +2099,8 @@ if(d.install(e),e.provide(xt,u),e.provide(yn,c),e.provide(wa,d),e.provide(Lt,v),
|
|
2099
2099
|
else{const{mount:a}=e
|
2100
2100
|
e.mount=function(){const l=a(...arguments)
|
2101
2101
|
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
|
2102
|
-
if(a&&e in a)return a[e]}sf.version="3.7.4-master.2024-11-
|
2103
|
-
const cf=function(){return sf({components:Qp,directives:rf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},df="3.7.4-master.2024-11-
|
2102
|
+
if(a&&e in a)return a[e]}sf.version="3.7.4-master.2024-11-29"
|
2103
|
+
const cf=function(){return sf({components:Qp,directives:rf,...arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}})},df="3.7.4-master.2024-11-29"
|
2104
2104
|
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
|
2105
2105
|
const{props:a,provideSubDefaults:l}=_t(e,t)
|
2106
2106
|
return l(),a},e.useDisplay=Nn,e.useGoTo=Bn,e.useLayout=oa,e.useLocale=ya,e.useRtl=Va,e.useTheme=Na,e.version=df}))
|
package/lib/entry-bundler.mjs
CHANGED
@@ -16,7 +16,7 @@ export const createVuetify = function () {
|
|
16
16
|
...options
|
17
17
|
});
|
18
18
|
};
|
19
|
-
export const version = "3.7.4-master.2024-11-
|
19
|
+
export const version = "3.7.4-master.2024-11-29";
|
20
20
|
createVuetify.version = version;
|
21
21
|
export { blueprints, components, directives };
|
22
22
|
export * from "./composables/index.mjs";
|
package/lib/framework.mjs
CHANGED
package/lib/index.d.mts
CHANGED
@@ -486,48 +486,49 @@ declare module 'vue' {
|
|
486
486
|
$children?: VNodeChild
|
487
487
|
}
|
488
488
|
export interface GlobalComponents {
|
489
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
489
490
|
VApp: typeof import('vuetify/components')['VApp']
|
490
491
|
VAlert: typeof import('vuetify/components')['VAlert']
|
491
492
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
493
|
+
VBanner: typeof import('vuetify/components')['VBanner']
|
494
|
+
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
495
|
+
VBannerText: typeof import('vuetify/components')['VBannerText']
|
496
|
+
VBadge: typeof import('vuetify/components')['VBadge']
|
492
497
|
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
493
|
-
VAvatar: typeof import('vuetify/components')['VAvatar']
|
494
498
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
495
499
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
496
500
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
497
|
-
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
498
|
-
VBadge: typeof import('vuetify/components')['VBadge']
|
499
|
-
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
500
501
|
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
501
502
|
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
502
503
|
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
503
504
|
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
504
|
-
VBanner: typeof import('vuetify/components')['VBanner']
|
505
|
-
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
506
|
-
VBannerText: typeof import('vuetify/components')['VBannerText']
|
507
|
-
VBtn: typeof import('vuetify/components')['VBtn']
|
508
505
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
509
|
-
|
510
|
-
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
511
|
-
VCarousel: typeof import('vuetify/components')['VCarousel']
|
512
|
-
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
513
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
506
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
514
507
|
VCard: typeof import('vuetify/components')['VCard']
|
515
508
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
516
509
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
517
510
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
518
511
|
VCardText: typeof import('vuetify/components')['VCardText']
|
519
512
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
520
|
-
|
513
|
+
VBtn: typeof import('vuetify/components')['VBtn']
|
514
|
+
VCarousel: typeof import('vuetify/components')['VCarousel']
|
515
|
+
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
516
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
517
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
521
518
|
VChip: typeof import('vuetify/components')['VChip']
|
522
|
-
|
523
|
-
|
519
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
520
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
521
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
524
522
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
525
523
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
526
524
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
527
525
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
528
526
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
529
527
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
530
|
-
|
528
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
529
|
+
VCode: typeof import('vuetify/components')['VCode']
|
530
|
+
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
531
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
531
532
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
532
533
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
533
534
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -535,30 +536,30 @@ declare module 'vue' {
|
|
535
536
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
536
537
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
537
538
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
538
|
-
VDialog: typeof import('vuetify/components')['VDialog']
|
539
539
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
540
|
+
VFab: typeof import('vuetify/components')['VFab']
|
540
541
|
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
541
542
|
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
542
543
|
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
543
544
|
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
544
|
-
|
545
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
546
|
-
VFab: typeof import('vuetify/components')['VFab']
|
545
|
+
VDialog: typeof import('vuetify/components')['VDialog']
|
547
546
|
VField: typeof import('vuetify/components')['VField']
|
548
547
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
548
|
+
VImg: typeof import('vuetify/components')['VImg']
|
549
549
|
VFileInput: typeof import('vuetify/components')['VFileInput']
|
550
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
550
551
|
VIcon: typeof import('vuetify/components')['VIcon']
|
551
552
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
552
553
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
553
554
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
554
555
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
555
|
-
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
556
|
-
VKbd: typeof import('vuetify/components')['VKbd']
|
557
|
-
VImg: typeof import('vuetify/components')['VImg']
|
558
556
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
559
557
|
VItem: typeof import('vuetify/components')['VItem']
|
558
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
560
559
|
VInput: typeof import('vuetify/components')['VInput']
|
561
560
|
VLabel: typeof import('vuetify/components')['VLabel']
|
561
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
562
|
+
VMenu: typeof import('vuetify/components')['VMenu']
|
562
563
|
VList: typeof import('vuetify/components')['VList']
|
563
564
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
564
565
|
VListImg: typeof import('vuetify/components')['VListImg']
|
@@ -568,72 +569,71 @@ declare module 'vue' {
|
|
568
569
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
569
570
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
570
571
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
572
|
+
VMain: typeof import('vuetify/components')['VMain']
|
573
|
+
VOverlay: typeof import('vuetify/components')['VOverlay']
|
571
574
|
VMessages: typeof import('vuetify/components')['VMessages']
|
575
|
+
VPagination: typeof import('vuetify/components')['VPagination']
|
572
576
|
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
573
|
-
VMain: typeof import('vuetify/components')['VMain']
|
574
|
-
VMenu: typeof import('vuetify/components')['VMenu']
|
575
577
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
576
|
-
VOverlay: typeof import('vuetify/components')['VOverlay']
|
577
578
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
578
579
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
579
|
-
VPagination: typeof import('vuetify/components')['VPagination']
|
580
|
-
VRating: typeof import('vuetify/components')['VRating']
|
581
580
|
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
582
|
-
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
583
|
-
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
584
|
-
VSheet: typeof import('vuetify/components')['VSheet']
|
585
581
|
VSelect: typeof import('vuetify/components')['VSelect']
|
586
|
-
|
582
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
583
|
+
VRating: typeof import('vuetify/components')['VRating']
|
584
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
585
|
+
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
587
586
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
588
587
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
588
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
589
|
+
VSheet: typeof import('vuetify/components')['VSheet']
|
589
590
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
591
|
+
VSwitch: typeof import('vuetify/components')['VSwitch']
|
592
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
590
593
|
VStepper: typeof import('vuetify/components')['VStepper']
|
591
594
|
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
592
595
|
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
593
596
|
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
594
597
|
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
595
598
|
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
596
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
597
|
-
VSwitch: typeof import('vuetify/components')['VSwitch']
|
598
|
-
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
599
|
-
VTable: typeof import('vuetify/components')['VTable']
|
600
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
601
599
|
VTab: typeof import('vuetify/components')['VTab']
|
602
600
|
VTabs: typeof import('vuetify/components')['VTabs']
|
603
601
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
604
602
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
603
|
+
VTable: typeof import('vuetify/components')['VTable']
|
604
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
605
|
+
VTextarea: typeof import('vuetify/components')['VTextarea']
|
605
606
|
VTimeline: typeof import('vuetify/components')['VTimeline']
|
606
607
|
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
607
|
-
VTextarea: typeof import('vuetify/components')['VTextarea']
|
608
|
-
VToolbar: typeof import('vuetify/components')['VToolbar']
|
609
|
-
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
610
|
-
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
611
608
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
612
609
|
VWindow: typeof import('vuetify/components')['VWindow']
|
613
610
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
614
|
-
|
611
|
+
VToolbar: typeof import('vuetify/components')['VToolbar']
|
612
|
+
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
613
|
+
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
615
614
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
616
615
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
616
|
+
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
617
|
+
VForm: typeof import('vuetify/components')['VForm']
|
617
618
|
VContainer: typeof import('vuetify/components')['VContainer']
|
618
619
|
VCol: typeof import('vuetify/components')['VCol']
|
619
620
|
VRow: typeof import('vuetify/components')['VRow']
|
620
621
|
VSpacer: typeof import('vuetify/components')['VSpacer']
|
621
622
|
VHover: typeof import('vuetify/components')['VHover']
|
622
|
-
|
623
|
+
VLazy: typeof import('vuetify/components')['VLazy']
|
623
624
|
VLayout: typeof import('vuetify/components')['VLayout']
|
624
625
|
VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
|
625
|
-
VLazy: typeof import('vuetify/components')['VLazy']
|
626
626
|
VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
|
627
627
|
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
628
628
|
VParallax: typeof import('vuetify/components')['VParallax']
|
629
|
-
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
630
629
|
VRadio: typeof import('vuetify/components')['VRadio']
|
630
|
+
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
631
631
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
632
632
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
633
633
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
634
634
|
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
635
|
-
VValidation: typeof import('vuetify/components')['VValidation']
|
636
635
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
636
|
+
VValidation: typeof import('vuetify/components')['VValidation']
|
637
637
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
638
638
|
VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
|
639
639
|
VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
|
@@ -659,17 +659,17 @@ declare module 'vue' {
|
|
659
659
|
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
660
660
|
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
661
661
|
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
662
|
-
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
663
|
-
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
664
|
-
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
665
662
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
666
663
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
667
664
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
665
|
+
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
666
|
+
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
667
|
+
VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
|
668
668
|
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
669
669
|
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
670
670
|
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
671
|
+
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
671
672
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
672
673
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
673
|
-
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
674
674
|
}
|
675
675
|
}
|
@@ -33,9 +33,8 @@ export const VTreeviewItem = genericComponent()({
|
|
33
33
|
const vListItemRef = ref();
|
34
34
|
const isActivatableGroupActivator = computed(() => vListItemRef.value?.root.activatable.value && vListItemRef.value?.isGroupActivator);
|
35
35
|
const isClickable = computed(() => !props.disabled && props.link !== false && (props.link || link.isClickable.value || props.value != null && !!vListItemRef.value?.list || isActivatableGroupActivator.value));
|
36
|
-
function
|
37
|
-
if (
|
38
|
-
if (vListItemRef.value?.root.activatable.value) {
|
36
|
+
function activateGroupActivator(e) {
|
37
|
+
if (isClickable.value && isActivatableGroupActivator.value) {
|
39
38
|
vListItemRef.value?.activate(!vListItemRef.value?.isActivated, e);
|
40
39
|
}
|
41
40
|
}
|
@@ -54,7 +53,7 @@ export const VTreeviewItem = genericComponent()({
|
|
54
53
|
'v-treeview-item--filtered': visibleIds.value && !visibleIds.value.has(vListItemRef.value?.id)
|
55
54
|
}, props.class],
|
56
55
|
"ripple": false,
|
57
|
-
"onClick": props.onClick ??
|
56
|
+
"onClick": props.onClick ?? activateGroupActivator
|
58
57
|
}), {
|
59
58
|
...slots,
|
60
59
|
prepend: hasPrepend ? slotProps => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VTreeviewItem.mjs","names":["VBtn","VListItemAction","makeVListItemProps","VListItem","VProgressCircular","IconValue","useLink","computed","inject","ref","EventProp","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","makeVTreeviewItemProps","loading","Boolean","onToggleExpand","toggleIcon","slim","VTreeviewItem","name","props","setup","_ref","attrs","slots","emit","link","vListItemRef","isActivatableGroupActivator","value","root","activatable","isGroupActivator","isClickable","disabled","list","
|
1
|
+
{"version":3,"file":"VTreeviewItem.mjs","names":["VBtn","VListItemAction","makeVListItemProps","VListItem","VProgressCircular","IconValue","useLink","computed","inject","ref","EventProp","genericComponent","omit","propsFactory","useRender","VTreeviewSymbol","makeVTreeviewItemProps","loading","Boolean","onToggleExpand","toggleIcon","slim","VTreeviewItem","name","props","setup","_ref","attrs","slots","emit","link","vListItemRef","isActivatableGroupActivator","value","root","activatable","isGroupActivator","isClickable","disabled","list","activateGroupActivator","e","activate","isActivated","visibleIds","listItemProps","filterProps","hasPrepend","prepend","_createVNode","_mergeProps","has","id","class","onClick","slotProps","_Fragment","default","loader","undefined"],"sources":["../../../src/labs/VTreeview/VTreeviewItem.tsx"],"sourcesContent":["// Styles\nimport './VTreeviewItem.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\nimport { VListItemAction } from '@/components/VList'\nimport { makeVListItemProps, VListItem } from '@/components/VList/VListItem'\nimport { VProgressCircular } from '@/components/VProgressCircular'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { useLink } from '@/composables/router'\n\n// Utilities\nimport { computed, inject, ref } from 'vue'\nimport { EventProp, genericComponent, omit, propsFactory, useRender } from '@/util'\n\n// Types\nimport { VTreeviewSymbol } from './shared'\nimport type { VListItemSlots } from '@/components/VList/VListItem'\n\nexport const makeVTreeviewItemProps = propsFactory({\n loading: Boolean,\n onToggleExpand: EventProp<[MouseEvent]>(),\n toggleIcon: IconValue,\n\n ...makeVListItemProps({ slim: true }),\n}, 'VTreeviewItem')\n\nexport const VTreeviewItem = genericComponent<VListItemSlots>()({\n name: 'VTreeviewItem',\n\n props: makeVTreeviewItemProps(),\n\n setup (props, { attrs, slots, emit }) {\n const link = useLink(props, attrs)\n const vListItemRef = ref<VListItem>()\n\n const isActivatableGroupActivator = computed(() =>\n (vListItemRef.value?.root.activatable.value) &&\n vListItemRef.value?.isGroupActivator\n )\n\n const isClickable = computed(() =>\n !props.disabled &&\n props.link !== false &&\n (props.link || link.isClickable.value || (props.value != null && !!vListItemRef.value?.list) || isActivatableGroupActivator.value)\n )\n\n function activateGroupActivator (e: MouseEvent | KeyboardEvent) {\n if (isClickable.value && isActivatableGroupActivator.value) {\n vListItemRef.value?.activate(!vListItemRef.value?.isActivated, e)\n }\n }\n\n const visibleIds = inject(VTreeviewSymbol, { visibleIds: ref() }).visibleIds\n\n useRender(() => {\n const listItemProps = omit(VListItem.filterProps(props), ['onClick'])\n const hasPrepend = slots.prepend || props.toggleIcon\n\n return (\n <VListItem\n ref={ vListItemRef }\n { ...listItemProps }\n active={ vListItemRef.value?.isActivated }\n class={[\n 'v-treeview-item',\n {\n 'v-treeview-item--activatable-group-activator': isActivatableGroupActivator.value,\n 'v-treeview-item--filtered': visibleIds.value && !visibleIds.value.has(vListItemRef.value?.id),\n },\n props.class,\n ]}\n ripple={ false }\n onClick={ props.onClick ?? activateGroupActivator }\n >\n {{\n ...slots,\n prepend: hasPrepend ? slotProps => {\n return (\n <>\n { props.toggleIcon && (\n <VListItemAction start={ false }>\n <VBtn\n density=\"compact\"\n icon={ props.toggleIcon }\n loading={ props.loading }\n variant=\"text\"\n onClick={ props.onToggleExpand }\n >\n {{\n loader () {\n return (\n <VProgressCircular\n indeterminate=\"disable-shrink\"\n size=\"20\"\n width=\"2\"\n />\n )\n },\n }}\n </VBtn>\n </VListItemAction>\n )}\n\n { slots.prepend?.(slotProps) }\n </>\n )\n } : undefined,\n }}\n </VListItem>\n )\n })\n\n return {}\n },\n})\n\nexport type VTreeviewItem = InstanceType<typeof VTreeviewItem>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI;AAAA,SACJC,eAAe;AAAA,SACfC,kBAAkB,EAAEC,SAAS;AAAA,SAC7BC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