@vuetify/nightly 3.7.4-master.2024-11-28 → 3.7.4-master.2024-12-02
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 +3174 -3174
- package/dist/json/importMap-labs.json +12 -12
- package/dist/json/importMap.json +152 -152
- package/dist/json/web-types.json +5850 -5850
- package/dist/vuetify-labs.css +3322 -3322
- 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 +1273 -1273
- package/dist/vuetify.d.ts +50 -50
- 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 +50 -50
- 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-
|
2
|
+
* Vuetify v3.7.4-master.2024-12-02
|
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-
|
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-
|
2102
|
+
if(a&&e in a)return a[e]}sf.version="3.7.4-master.2024-12-02"
|
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-12-02"
|
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-
|
19
|
+
export const version = "3.7.4-master.2024-12-02";
|
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,46 @@ declare module 'vue' {
|
|
486
486
|
$children?: VNodeChild
|
487
487
|
}
|
488
488
|
export interface GlobalComponents {
|
489
|
-
VApp: typeof import('vuetify/components')['VApp']
|
490
489
|
VAlert: typeof import('vuetify/components')['VAlert']
|
491
490
|
VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
|
492
491
|
VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
|
493
|
-
VAvatar: typeof import('vuetify/components')['VAvatar']
|
494
492
|
VAppBar: typeof import('vuetify/components')['VAppBar']
|
495
493
|
VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
|
496
494
|
VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
|
497
|
-
|
495
|
+
VAvatar: typeof import('vuetify/components')['VAvatar']
|
498
496
|
VBadge: typeof import('vuetify/components')['VBadge']
|
499
|
-
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
500
497
|
VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
|
501
|
-
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
502
|
-
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
503
|
-
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
504
498
|
VBanner: typeof import('vuetify/components')['VBanner']
|
505
499
|
VBannerActions: typeof import('vuetify/components')['VBannerActions']
|
506
500
|
VBannerText: typeof import('vuetify/components')['VBannerText']
|
507
501
|
VBtn: typeof import('vuetify/components')['VBtn']
|
508
502
|
VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
|
509
|
-
|
510
|
-
|
503
|
+
VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
|
504
|
+
VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
|
505
|
+
VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
|
511
506
|
VCarousel: typeof import('vuetify/components')['VCarousel']
|
512
507
|
VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
|
513
|
-
VCombobox: typeof import('vuetify/components')['VCombobox']
|
514
508
|
VCard: typeof import('vuetify/components')['VCard']
|
515
509
|
VCardActions: typeof import('vuetify/components')['VCardActions']
|
516
510
|
VCardItem: typeof import('vuetify/components')['VCardItem']
|
517
511
|
VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
|
518
512
|
VCardText: typeof import('vuetify/components')['VCardText']
|
519
513
|
VCardTitle: typeof import('vuetify/components')['VCardTitle']
|
520
|
-
|
514
|
+
VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
|
521
515
|
VChip: typeof import('vuetify/components')['VChip']
|
516
|
+
VCheckbox: typeof import('vuetify/components')['VCheckbox']
|
517
|
+
VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
|
518
|
+
VChipGroup: typeof import('vuetify/components')['VChipGroup']
|
522
519
|
VColorPicker: typeof import('vuetify/components')['VColorPicker']
|
523
520
|
VCode: typeof import('vuetify/components')['VCode']
|
521
|
+
VCombobox: typeof import('vuetify/components')['VCombobox']
|
522
|
+
VCounter: typeof import('vuetify/components')['VCounter']
|
524
523
|
VDatePicker: typeof import('vuetify/components')['VDatePicker']
|
525
524
|
VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
|
526
525
|
VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
|
527
526
|
VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
|
528
527
|
VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
|
529
528
|
VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
|
530
|
-
VCounter: typeof import('vuetify/components')['VCounter']
|
531
529
|
VDataTable: typeof import('vuetify/components')['VDataTable']
|
532
530
|
VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
|
533
531
|
VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
|
@@ -535,29 +533,28 @@ declare module 'vue' {
|
|
535
533
|
VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
|
536
534
|
VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
|
537
535
|
VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
|
536
|
+
VDivider: typeof import('vuetify/components')['VDivider']
|
538
537
|
VDialog: typeof import('vuetify/components')['VDialog']
|
539
538
|
VEmptyState: typeof import('vuetify/components')['VEmptyState']
|
540
|
-
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
541
|
-
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
542
|
-
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
543
|
-
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
544
|
-
VDivider: typeof import('vuetify/components')['VDivider']
|
545
|
-
VFooter: typeof import('vuetify/components')['VFooter']
|
546
539
|
VFab: typeof import('vuetify/components')['VFab']
|
547
540
|
VField: typeof import('vuetify/components')['VField']
|
548
541
|
VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
|
542
|
+
VFooter: typeof import('vuetify/components')['VFooter']
|
549
543
|
VFileInput: typeof import('vuetify/components')['VFileInput']
|
544
|
+
VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
|
545
|
+
VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
|
546
|
+
VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
|
547
|
+
VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
|
548
|
+
VImg: typeof import('vuetify/components')['VImg']
|
549
|
+
VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
|
550
550
|
VIcon: typeof import('vuetify/components')['VIcon']
|
551
551
|
VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
|
552
552
|
VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
|
553
553
|
VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
|
554
554
|
VClassIcon: typeof import('vuetify/components')['VClassIcon']
|
555
|
-
|
556
|
-
VKbd: typeof import('vuetify/components')['VKbd']
|
557
|
-
VImg: typeof import('vuetify/components')['VImg']
|
555
|
+
VInput: typeof import('vuetify/components')['VInput']
|
558
556
|
VItemGroup: typeof import('vuetify/components')['VItemGroup']
|
559
557
|
VItem: typeof import('vuetify/components')['VItem']
|
560
|
-
VInput: typeof import('vuetify/components')['VInput']
|
561
558
|
VLabel: typeof import('vuetify/components')['VLabel']
|
562
559
|
VList: typeof import('vuetify/components')['VList']
|
563
560
|
VListGroup: typeof import('vuetify/components')['VListGroup']
|
@@ -568,70 +565,71 @@ declare module 'vue' {
|
|
568
565
|
VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
|
569
566
|
VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
|
570
567
|
VListSubheader: typeof import('vuetify/components')['VListSubheader']
|
571
|
-
VMessages: typeof import('vuetify/components')['VMessages']
|
572
|
-
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
573
568
|
VMain: typeof import('vuetify/components')['VMain']
|
569
|
+
VKbd: typeof import('vuetify/components')['VKbd']
|
570
|
+
VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
|
571
|
+
VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
|
574
572
|
VMenu: typeof import('vuetify/components')['VMenu']
|
573
|
+
VApp: typeof import('vuetify/components')['VApp']
|
575
574
|
VOtpInput: typeof import('vuetify/components')['VOtpInput']
|
576
575
|
VOverlay: typeof import('vuetify/components')['VOverlay']
|
576
|
+
VPagination: typeof import('vuetify/components')['VPagination']
|
577
577
|
VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
|
578
578
|
VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
|
579
|
-
|
579
|
+
VSelect: typeof import('vuetify/components')['VSelect']
|
580
580
|
VRating: typeof import('vuetify/components')['VRating']
|
581
|
-
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
582
581
|
VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
|
583
|
-
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
584
582
|
VSheet: typeof import('vuetify/components')['VSheet']
|
585
|
-
|
586
|
-
|
583
|
+
VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
|
584
|
+
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
587
585
|
VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
|
588
586
|
VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
|
589
587
|
VSnackbar: typeof import('vuetify/components')['VSnackbar']
|
590
|
-
|
591
|
-
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
592
|
-
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
593
|
-
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
594
|
-
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
595
|
-
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
596
|
-
VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
|
588
|
+
VMessages: typeof import('vuetify/components')['VMessages']
|
597
589
|
VSwitch: typeof import('vuetify/components')['VSwitch']
|
598
|
-
|
599
|
-
VTable: typeof import('vuetify/components')['VTable']
|
600
|
-
VTextField: typeof import('vuetify/components')['VTextField']
|
590
|
+
VSlider: typeof import('vuetify/components')['VSlider']
|
601
591
|
VTab: typeof import('vuetify/components')['VTab']
|
602
592
|
VTabs: typeof import('vuetify/components')['VTabs']
|
603
593
|
VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
|
604
594
|
VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
|
605
|
-
|
606
|
-
|
595
|
+
VTable: typeof import('vuetify/components')['VTable']
|
596
|
+
VSystemBar: typeof import('vuetify/components')['VSystemBar']
|
607
597
|
VTextarea: typeof import('vuetify/components')['VTextarea']
|
598
|
+
VTextField: typeof import('vuetify/components')['VTextField']
|
608
599
|
VToolbar: typeof import('vuetify/components')['VToolbar']
|
609
600
|
VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
|
610
601
|
VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
|
611
602
|
VTooltip: typeof import('vuetify/components')['VTooltip']
|
603
|
+
VTimeline: typeof import('vuetify/components')['VTimeline']
|
604
|
+
VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
|
612
605
|
VWindow: typeof import('vuetify/components')['VWindow']
|
613
606
|
VWindowItem: typeof import('vuetify/components')['VWindowItem']
|
614
|
-
|
607
|
+
VStepper: typeof import('vuetify/components')['VStepper']
|
608
|
+
VStepperActions: typeof import('vuetify/components')['VStepperActions']
|
609
|
+
VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
|
610
|
+
VStepperItem: typeof import('vuetify/components')['VStepperItem']
|
611
|
+
VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
|
612
|
+
VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
|
615
613
|
VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
|
614
|
+
VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
|
615
|
+
VDataIterator: typeof import('vuetify/components')['VDataIterator']
|
616
616
|
VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
|
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
|
+
VRadio: typeof import('vuetify/components')['VRadio']
|
628
628
|
VParallax: typeof import('vuetify/components')['VParallax']
|
629
629
|
VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
|
630
|
-
VRadio: typeof import('vuetify/components')['VRadio']
|
631
630
|
VResponsive: typeof import('vuetify/components')['VResponsive']
|
632
631
|
VSparkline: typeof import('vuetify/components')['VSparkline']
|
633
632
|
VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
|
634
|
-
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
635
633
|
VValidation: typeof import('vuetify/components')['VValidation']
|
636
634
|
VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
|
637
635
|
VFabTransition: typeof import('vuetify/components')['VFabTransition']
|
@@ -650,6 +648,8 @@ declare module 'vue' {
|
|
650
648
|
VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
|
651
649
|
VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
|
652
650
|
VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
|
651
|
+
VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
|
652
|
+
VNoSsr: typeof import('vuetify/components')['VNoSsr']
|
653
653
|
VCalendar: typeof import('vuetify/labs/components')['VCalendar']
|
654
654
|
VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
|
655
655
|
VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
|
@@ -658,6 +658,9 @@ declare module 'vue' {
|
|
658
658
|
VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
|
659
659
|
VPicker: typeof import('vuetify/labs/components')['VPicker']
|
660
660
|
VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
|
661
|
+
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
662
|
+
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
663
|
+
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
661
664
|
VNumberInput: typeof import('vuetify/labs/components')['VNumberInput']
|
662
665
|
VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
|
663
666
|
VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
|
@@ -665,9 +668,6 @@ declare module 'vue' {
|
|
665
668
|
VTreeview: typeof import('vuetify/labs/components')['VTreeview']
|
666
669
|
VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
|
667
670
|
VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
|
668
|
-
VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
|
669
|
-
VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
|
670
|
-
VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
|
671
671
|
VDateInput: typeof import('vuetify/labs/components')['VDateInput']
|
672
672
|
VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
|
673
673
|
VSnackbarQueue: typeof import('vuetify/labs/components')['VSnackbarQueue']
|
@@ -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;AAA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