@vuetify/nightly 3.7.4-next.2024-11-06 → 3.7.5-dev.2024-12-16
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 +2853 -2845
- package/dist/json/importMap-labs.json +20 -20
- package/dist/json/importMap.json +150 -150
- package/dist/json/tags.json +2 -0
- package/dist/json/web-types.json +5324 -5306
- package/dist/vuetify-labs.css +25135 -23418
- package/dist/vuetify-labs.d.ts +202 -196
- package/dist/vuetify-labs.esm.js +107 -106
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +106 -105
- package/dist/vuetify-labs.min.css +4 -3
- package/dist/vuetify.css +23838 -22118
- package/dist/vuetify.d.ts +191 -185
- package/dist/vuetify.esm.js +96 -96
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +95 -95
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +4 -3
- package/dist/vuetify.min.js +884 -889
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +215 -207
- package/lib/components/VApp/VApp.css +15 -16
- package/lib/components/VAppBar/VAppBar.css +12 -14
- package/lib/components/VAppBar/index.d.mts +6 -6
- package/lib/components/VAutocomplete/VAutocomplete.css +85 -86
- package/lib/components/VAutocomplete/VAutocomplete.mjs +4 -4
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +22 -22
- package/lib/components/VAvatar/VAvatar.css +106 -108
- package/lib/components/VBadge/VBadge.css +77 -73
- package/lib/components/VBadge/VBadge.sass +4 -0
- package/lib/components/VBanner/VBanner.css +166 -161
- package/lib/components/VBottomNavigation/VBottomNavigation.css +63 -64
- package/lib/components/VBottomSheet/VBottomSheet.css +31 -34
- package/lib/components/VBreadcrumbs/VBreadcrumbs.css +57 -54
- package/lib/components/VBtn/VBtn.css +408 -385
- package/lib/components/VBtn/VBtn.sass +4 -4
- package/lib/components/VBtn/index.d.mts +7 -7
- package/lib/components/VBtnGroup/VBtnGroup.css +64 -63
- package/lib/components/VBtnToggle/VBtnToggle.css +14 -16
- package/lib/components/VBtnToggle/index.d.mts +9 -9
- package/lib/components/VCard/VCard.css +302 -294
- package/lib/components/VCarousel/VCarousel.css +65 -63
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/VCarousel.sass +1 -1
- package/lib/components/VCarousel/index.d.mts +9 -9
- package/lib/components/VCheckbox/VCheckbox.css +5 -7
- package/lib/components/VCheckbox/VCheckbox.mjs +3 -3
- package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
- package/lib/components/VChip/VChip.css +411 -378
- package/lib/components/VChip/VChip.mjs +18 -10
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.mts +13 -8
- package/lib/components/VChipGroup/VChipGroup.css +18 -19
- package/lib/components/VChipGroup/VChipGroup.mjs +2 -0
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/index.d.mts +20 -15
- package/lib/components/VCode/VCode.css +8 -10
- package/lib/components/VColorPicker/VColorPicker.css +22 -22
- package/lib/components/VColorPicker/VColorPickerCanvas.css +22 -24
- package/lib/components/VColorPicker/VColorPickerEdit.css +28 -29
- package/lib/components/VColorPicker/VColorPickerPreview.css +67 -69
- package/lib/components/VColorPicker/VColorPickerPreview.sass +2 -4
- package/lib/components/VColorPicker/VColorPickerSwatches.css +34 -34
- package/lib/components/VCombobox/VCombobox.css +85 -86
- package/lib/components/VCombobox/VCombobox.mjs +4 -4
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +22 -22
- package/lib/components/VConfirmEdit/VConfirmEdit.mjs +9 -7
- package/lib/components/VConfirmEdit/VConfirmEdit.mjs.map +1 -1
- package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs +1 -1
- package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs.map +1 -1
- package/lib/components/VConfirmEdit/index.d.mts +3 -7
- package/lib/components/VCounter/VCounter.css +5 -7
- package/lib/components/VDataTable/VDataTable.css +186 -189
- package/lib/components/VDataTable/VDataTable.sass +10 -20
- package/lib/components/VDataTable/VDataTableFooter.css +31 -33
- package/lib/components/VDatePicker/VDatePicker.css +6 -8
- package/lib/components/VDatePicker/VDatePickerControls.css +56 -54
- package/lib/components/VDatePicker/VDatePickerHeader.css +60 -56
- package/lib/components/VDatePicker/VDatePickerHeader.mjs +2 -1
- package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.css +55 -51
- package/lib/components/VDatePicker/VDatePickerMonths.css +19 -20
- package/lib/components/VDatePicker/VDatePickerYears.css +15 -16
- package/lib/components/VDatePicker/index.d.mts +5 -5
- package/lib/components/VDialog/VDialog.css +95 -95
- package/lib/components/VDivider/VDivider.css +52 -52
- package/lib/components/VEmptyState/VEmptyState.css +67 -62
- package/lib/components/VExpansionPanel/VExpansionPanel.css +209 -203
- package/lib/components/VExpansionPanel/VExpansionPanel.sass +25 -27
- package/lib/components/VExpansionPanel/index.d.mts +7 -7
- package/lib/components/VFab/VFab.css +69 -74
- package/lib/components/VFab/VFab.sass +4 -5
- package/lib/components/VFab/index.d.mts +6 -6
- package/lib/components/VField/VField.css +579 -539
- package/lib/components/VField/VField.mjs +5 -4
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VFileInput/VFileInput.css +29 -31
- package/lib/components/VFooter/VFooter.css +36 -38
- package/lib/components/VGrid/VGrid.css +592 -565
- package/lib/components/VIcon/VIcon.css +52 -51
- package/lib/components/VImg/VImg.css +51 -50
- package/lib/components/VInfiniteScroll/VInfiniteScroll.css +37 -36
- package/lib/components/VInput/VInput.css +142 -131
- package/lib/components/VInput/VInput.mjs +3 -3
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.css +5 -7
- package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
- package/lib/components/VItemGroup/index.d.mts +9 -9
- package/lib/components/VKbd/VKbd.css +11 -13
- package/lib/components/VLabel/VLabel.css +15 -16
- package/lib/components/VLayout/VLayout.css +8 -10
- package/lib/components/VLayout/VLayoutItem.css +7 -8
- package/lib/components/VList/VList.css +108 -104
- package/lib/components/VList/VList.mjs +3 -2
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VList.sass +1 -1
- package/lib/components/VList/VListItem.css +452 -440
- package/lib/components/VList/VListItem.mjs +3 -2
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListItem.sass +1 -2
- package/lib/components/VList/index.d.mts +10 -10
- package/lib/components/VLocaleProvider/VLocaleProvider.css +2 -4
- package/lib/components/VMain/VMain.css +30 -32
- package/lib/components/VMenu/VMenu.css +19 -21
- package/lib/components/VMenu/VMenu.mjs +3 -3
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/index.d.mts +6 -6
- package/lib/components/VMessages/VMessages.css +15 -17
- package/lib/components/VNavigationDrawer/VNavigationDrawer.css +108 -106
- package/lib/components/VOtpInput/VOtpInput.css +58 -56
- package/lib/components/VOverlay/VOverlay.css +63 -60
- package/lib/components/VOverlay/VOverlay.sass +13 -14
- package/lib/components/VPagination/VPagination.css +8 -10
- package/lib/components/VParallax/VParallax.css +6 -8
- package/lib/components/VProgressCircular/VProgressCircular.css +101 -95
- package/lib/components/VProgressLinear/VProgressLinear.css +222 -209
- package/lib/components/VRadioGroup/VRadioGroup.css +12 -14
- package/lib/components/VRadioGroup/VRadioGroup.mjs +3 -3
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRating/VRating.css +53 -52
- package/lib/components/VRating/VRating.mjs +4 -3
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VResponsive/VResponsive.css +26 -25
- package/lib/components/VSelect/VSelect.css +52 -54
- package/lib/components/VSelect/VSelect.mjs +3 -3
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +22 -22
- package/lib/components/VSelectionControl/VSelectionControl.css +102 -100
- package/lib/components/VSelectionControl/VSelectionControl.mjs +3 -3
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.css +8 -10
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +3 -3
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -1
- package/lib/components/VSheet/VSheet.css +36 -38
- package/lib/components/VSkeletonLoader/VSkeletonLoader.css +224 -225
- package/lib/components/VSlideGroup/VSlideGroup.css +55 -53
- package/lib/components/VSlideGroup/index.d.mts +10 -10
- package/lib/components/VSlider/VSlider.css +57 -53
- package/lib/components/VSlider/VSliderThumb.css +153 -142
- package/lib/components/VSlider/VSliderTrack.css +174 -155
- package/lib/components/VSnackbar/VSnackbar.css +140 -140
- package/lib/components/VSparkline/VBarline.mjs +3 -3
- package/lib/components/VSparkline/VBarline.mjs.map +1 -1
- package/lib/components/VSparkline/VTrendline.mjs +3 -3
- package/lib/components/VSparkline/VTrendline.mjs.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.css +41 -43
- package/lib/components/VStepper/VStepper.css +56 -55
- package/lib/components/VStepper/VStepper.mjs +5 -4
- package/lib/components/VStepper/VStepper.mjs.map +1 -1
- package/lib/components/VStepper/VStepperItem.css +115 -112
- package/lib/components/VStepper/VStepperItem.mjs +5 -4
- package/lib/components/VStepper/VStepperItem.mjs.map +1 -1
- package/lib/components/VStepper/index.d.mts +51 -45
- package/lib/components/VSwitch/VSwitch.css +139 -129
- package/lib/components/VSwitch/VSwitch.mjs +3 -3
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.css +43 -45
- package/lib/components/VTable/VTable.css +141 -140
- package/lib/components/VTable/VTable.sass +2 -4
- package/lib/components/VTabs/VTab.css +29 -30
- package/lib/components/VTabs/VTabs.css +65 -59
- package/lib/components/VTabs/index.d.mts +7 -7
- package/lib/components/VTextField/VTextField.css +68 -65
- package/lib/components/VTextarea/VTextarea.css +39 -47
- package/lib/components/VTextarea/VTextarea.sass +2 -4
- package/lib/components/VThemeProvider/VThemeProvider.css +3 -5
- package/lib/components/VTimeline/VTimeline.css +418 -379
- package/lib/components/VToolbar/VToolbar.css +143 -136
- package/lib/components/VTooltip/VTooltip.css +21 -25
- package/lib/components/VTooltip/VTooltip.mjs +3 -3
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/VTooltip.sass +6 -8
- package/lib/components/VVirtualScroll/VVirtualScroll.css +9 -11
- package/lib/components/VWindow/VWindow.css +70 -73
- package/lib/components/VWindow/index.d.mts +7 -7
- package/lib/components/index.d.mts +138 -132
- package/lib/composables/form.mjs +7 -2
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/group.mjs +3 -3
- package/lib/composables/group.mjs.map +1 -1
- package/lib/composables/layout.mjs +3 -3
- package/lib/composables/layout.mjs.map +1 -1
- package/lib/composables/nested/nested.mjs +2 -2
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/theme.mjs +4 -4
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/validation.mjs +13 -15
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/directives/ripple/VRipple.css +36 -38
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +2 -3
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.mts +53 -53
- package/lib/labs/VCalendar/VCalendar.css +225 -219
- package/lib/labs/VCalendar/VCalendarDay.css +32 -33
- package/lib/labs/VCalendar/VCalendarHeader.css +13 -13
- package/lib/labs/VCalendar/VCalendarInterval.css +42 -43
- package/lib/labs/VCalendar/VCalendarIntervalEvent.css +5 -7
- package/lib/labs/VCalendar/VCalendarMonthDay.css +58 -61
- package/lib/labs/VCalendar/VCalendarMonthDay.sass +2 -3
- package/lib/labs/VDateInput/VDateInput.mjs +1 -1
- package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
- package/lib/labs/VNumberInput/VNumberInput.css +38 -40
- package/lib/labs/VNumberInput/VNumberInput.mjs +7 -5
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/lib/labs/VPicker/VPicker.css +57 -53
- package/lib/labs/VStepperVertical/index.d.mts +44 -44
- package/lib/labs/VTimePicker/VTimePicker.css +7 -9
- package/lib/labs/VTimePicker/VTimePickerClock.css +129 -126
- package/lib/labs/VTimePicker/VTimePickerControls.css +103 -102
- package/lib/labs/VTreeview/VTreeviewItem.css +15 -17
- package/lib/labs/VTreeview/VTreeviewItem.mjs +3 -4
- package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewItem.sass +1 -2
- package/lib/labs/VTreeview/index.d.mts +20 -20
- package/lib/labs/components.d.mts +64 -64
- package/lib/locale/fr.mjs +1 -1
- package/lib/locale/fr.mjs.map +1 -1
- package/lib/styles/elements/_global.sass +1 -1
- package/lib/styles/generic/_colors.scss +3 -3
- package/lib/styles/generic/_layers.scss +1 -13
- package/lib/styles/generic/_transitions.scss +32 -32
- package/lib/styles/main.css +16139 -14666
- package/lib/styles/settings/_utilities.scss +5 -0
- package/lib/styles/settings/_variables.scss +2 -1
- package/lib/styles/tools/_bootable.sass +3 -0
- package/lib/styles/tools/_border.sass +4 -4
- package/lib/styles/tools/_display.sass +10 -0
- package/lib/styles/tools/_elevation.sass +2 -2
- package/lib/styles/tools/_index.sass +2 -0
- package/lib/styles/tools/_layer.scss +2 -4
- package/lib/styles/tools/_position.sass +2 -2
- package/lib/styles/tools/_radius.sass +10 -0
- package/lib/styles/tools/_rounded.sass +2 -2
- package/lib/styles/tools/_utilities.sass +5 -1
- package/lib/styles/utilities/_elevation.scss +1 -1
- package/lib/util/getCurrentInstance.mjs +1 -15
- package/lib/util/getCurrentInstance.mjs.map +1 -1
- package/package.json +1 -1
@@ -1,103 +1,104 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
1
|
+
.v-time-picker-controls {
|
2
|
+
display: flex;
|
3
|
+
align-items: center;
|
4
|
+
justify-content: center;
|
5
|
+
font-size: 0.875rem;
|
6
|
+
padding-top: 4px;
|
7
|
+
padding-bottom: 4px;
|
8
|
+
margin-bottom: 36px;
|
9
|
+
}
|
10
|
+
.v-time-picker-controls__text {
|
11
|
+
padding-bottom: 12px;
|
12
|
+
}
|
13
|
+
.v-time-picker-controls__time {
|
14
|
+
display: flex;
|
15
|
+
white-space: nowrap;
|
16
|
+
direction: ltr;
|
17
|
+
justify-content: center;
|
18
|
+
}
|
19
|
+
.v-time-picker-controls__time__btn.v-btn--density-default.v-btn {
|
20
|
+
width: 96px;
|
21
|
+
height: 80px;
|
22
|
+
font-size: 56px;
|
23
|
+
}
|
24
|
+
.v-time-picker-controls__time__btn.v-btn--density-default.v-btn__active {
|
25
|
+
background: rgb(var(--v-theme-primary));
|
26
|
+
}
|
27
|
+
.v-time-picker-controls__time__btn.v-btn--density-default.v-btn.v-time-picker-controls__time--with-ampm__btn {
|
28
|
+
width: 96px;
|
29
|
+
height: 80px;
|
30
|
+
}
|
31
|
+
.v-time-picker-controls__time__btn.v-btn--density-default.v-btn.v-time-picker-controls__time--with-seconds__btn {
|
32
|
+
width: 64px;
|
33
|
+
height: 80px;
|
34
|
+
font-size: 40px;
|
35
|
+
}
|
36
|
+
.v-time-picker-controls__time__separator {
|
37
|
+
font-size: 56px;
|
38
|
+
height: 80px;
|
39
|
+
width: 24px;
|
40
|
+
text-align: center;
|
41
|
+
}
|
42
|
+
.v-time-picker-controls__time__separator.v-time-picker-controls--with-seconds__time__separator {
|
43
|
+
height: 80px;
|
44
|
+
font-size: 56px;
|
45
|
+
}
|
46
|
+
|
47
|
+
.v-time-picker-controls__ampm {
|
48
|
+
margin-left: 12px;
|
49
|
+
align-self: flex-end;
|
50
|
+
display: flex;
|
51
|
+
flex-direction: column;
|
52
|
+
font-size: 18px;
|
53
|
+
text-transform: uppercase;
|
54
|
+
}
|
55
|
+
.v-time-picker-controls__ampm--readonly {
|
56
|
+
pointer-events: none;
|
57
|
+
}
|
58
|
+
.v-time-picker-controls__ampm--readonly .v-picker__title__btn.v-picker__title__btn--active {
|
59
|
+
opacity: 0.6;
|
60
|
+
}
|
61
|
+
.v-time-picker-controls__ampm__btn.v-btn.v-btn--density-default {
|
62
|
+
font-size: 18px;
|
63
|
+
padding: 0 8px;
|
64
|
+
min-width: 52px;
|
65
|
+
height: 40px;
|
66
|
+
}
|
67
|
+
.v-time-picker-controls__ampm__btn.v-btn.v-btn--density-default.v-time-picker-controls__ampm__am {
|
68
|
+
border-radius: 4px 4px 0 0;
|
69
|
+
border: 1px solid;
|
70
|
+
}
|
71
|
+
.v-time-picker-controls__ampm__btn.v-btn.v-btn--density-default.v-time-picker-controls__ampm__pm {
|
72
|
+
border-radius: 0 0 4px 4px;
|
73
|
+
border: 1px solid;
|
74
|
+
border-top: none;
|
75
|
+
}
|
76
|
+
.v-time-picker-controls__ampm__btn.v-btn.v-btn--density-default__active {
|
77
|
+
background: rgb(var(--v-theme-primary));
|
78
|
+
}
|
79
|
+
|
80
|
+
.v-picker__title--landscape .v-time-picker-controls {
|
81
|
+
flex-direction: column;
|
82
|
+
justify-content: center;
|
83
|
+
height: 100%;
|
84
|
+
}
|
85
|
+
.v-picker__title--landscape .v-time-picker-controls__time {
|
86
|
+
text-align: right;
|
87
|
+
}
|
88
|
+
.v-picker__title--landscape .v-time-picker-controls__time .v-picker__title__btn,
|
89
|
+
.v-picker__title--landscape .v-time-picker-controls__time span {
|
90
|
+
height: 55px;
|
91
|
+
font-size: 55px;
|
92
|
+
}
|
93
|
+
.v-picker__title--landscape .v-time-picker-controls__ampm {
|
94
|
+
margin: 16px 0 0;
|
95
|
+
align-self: initial;
|
96
|
+
text-align: center;
|
97
|
+
}
|
98
|
+
|
99
|
+
.v-picker--time .v-picker__title--landscape {
|
100
|
+
padding: 0;
|
101
|
+
}
|
102
|
+
.v-picker--time .v-picker__title--landscape .v-time-picker-controls__time {
|
103
|
+
text-align: center;
|
103
104
|
}
|
@@ -1,19 +1,17 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
display: none;
|
4
|
-
}
|
5
|
-
.v-treeview {
|
6
|
-
--indent-padding: 0px;
|
7
|
-
}
|
8
|
-
.v-treeview-group.v-list-group {
|
9
|
-
--list-indent-size: 16px;
|
10
|
-
}
|
11
|
-
.v-list--slim .v-treeview-group.v-list-group {
|
12
|
-
--prepend-width: 16px;
|
13
|
-
}
|
1
|
+
.v-treeview-item.v-treeview-item--filtered {
|
2
|
+
display: none;
|
14
3
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
4
|
+
|
5
|
+
.v-treeview {
|
6
|
+
--indent-padding: 0px;
|
7
|
+
}
|
8
|
+
|
9
|
+
.v-treeview-group.v-list-group {
|
10
|
+
--list-indent-size: 16px;
|
11
|
+
}
|
12
|
+
.v-list--slim .v-treeview-group.v-list-group {
|
13
|
+
--prepend-width: 16px;
|
14
|
+
}
|
15
|
+
.v-treeview-group.v-list-group .v-list-group__items .v-list-item {
|
16
|
+
padding-inline-start: calc(12px + var(--indent-padding)) !important;
|
19
17
|
}
|
@@ -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 }}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oB,OAAO,EAAED,UAAU,GAAGQ,SAAS,IAAI;UACjC,OAAAN,YAAA,CAAAO,SAAA,SAEMhC,KAAK,CAACJ,UAAU,IAAA6B,YAAA,CAAAhD,eAAA;YAAA,SACS;UAAK;YAAAwD,OAAA,EAAAA,CAAA,MAAAR,YAAA,CAAAjD,IAAA;cAAA;cAAA,QAGnBwB,KAAK,CAACJ,UAAU;cAAA,WACbI,KAAK,CAACP,OAAO;cAAA;cAAA,WAEbO,KAAK,CAACL;YAAc;cAG5BuC,MAAMA,CAAA,EAAI;gBACR,OAAAT,YAAA,CAAA7C,iBAAA;kBAAA;kBAAA;kBAAA;gBAAA;cAOF;YAAC;UAAA,EAIR,EAECwB,KAAK,CAACoB,OAAO,GAAGO,SAAS,CAAC;QAGlC,CAAC,GAAGI;MAAS;IAIrB,CAAC,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
@@ -15,5 +15,4 @@
|
|
15
15
|
--prepend-width: #{$treeview-group-list-prepend-width}
|
16
16
|
|
17
17
|
.v-list-group__items .v-list-item
|
18
|
-
|
19
|
-
padding-inline-start: calc(#{$treeview-item-padding-inline-start} + var(--indent-padding))
|
18
|
+
padding-inline-start: calc(#{$treeview-item-padding-inline-start} + var(--indent-padding)) !important
|
@@ -191,8 +191,8 @@ declare const VTreeview: {
|
|
191
191
|
activatable: boolean;
|
192
192
|
selectable: boolean;
|
193
193
|
selectStrategy: SelectStrategyProp;
|
194
|
-
collapseIcon:
|
195
|
-
expandIcon:
|
194
|
+
collapseIcon: IconValue;
|
195
|
+
expandIcon: IconValue;
|
196
196
|
returnObject: boolean;
|
197
197
|
filterMode: FilterMode;
|
198
198
|
noFilter: boolean;
|
@@ -290,8 +290,8 @@ declare const VTreeview: {
|
|
290
290
|
activatable: boolean;
|
291
291
|
selectable: boolean;
|
292
292
|
selectStrategy: SelectStrategyProp;
|
293
|
-
collapseIcon:
|
294
|
-
expandIcon:
|
293
|
+
collapseIcon: IconValue;
|
294
|
+
expandIcon: IconValue;
|
295
295
|
returnObject: boolean;
|
296
296
|
filterMode: FilterMode;
|
297
297
|
noFilter: boolean;
|
@@ -352,8 +352,8 @@ declare const VTreeview: {
|
|
352
352
|
activatable: boolean;
|
353
353
|
selectable: boolean;
|
354
354
|
selectStrategy: SelectStrategyProp;
|
355
|
-
collapseIcon:
|
356
|
-
expandIcon:
|
355
|
+
collapseIcon: IconValue;
|
356
|
+
expandIcon: IconValue;
|
357
357
|
returnObject: boolean;
|
358
358
|
filterMode: FilterMode;
|
359
359
|
noFilter: boolean;
|
@@ -436,8 +436,8 @@ declare const VTreeview: {
|
|
436
436
|
activatable: boolean;
|
437
437
|
selectable: boolean;
|
438
438
|
selectStrategy: SelectStrategyProp;
|
439
|
-
collapseIcon:
|
440
|
-
expandIcon:
|
439
|
+
collapseIcon: IconValue;
|
440
|
+
expandIcon: IconValue;
|
441
441
|
returnObject: boolean;
|
442
442
|
filterMode: FilterMode;
|
443
443
|
noFilter: boolean;
|
@@ -469,8 +469,8 @@ declare const VTreeview: {
|
|
469
469
|
activatable: boolean;
|
470
470
|
selectable: boolean;
|
471
471
|
selectStrategy: SelectStrategyProp;
|
472
|
-
collapseIcon:
|
473
|
-
expandIcon:
|
472
|
+
collapseIcon: IconValue;
|
473
|
+
expandIcon: IconValue;
|
474
474
|
returnObject: boolean;
|
475
475
|
filterMode: FilterMode;
|
476
476
|
noFilter: boolean;
|
@@ -568,8 +568,8 @@ declare const VTreeview: {
|
|
568
568
|
activatable: boolean;
|
569
569
|
selectable: boolean;
|
570
570
|
selectStrategy: SelectStrategyProp;
|
571
|
-
collapseIcon:
|
572
|
-
expandIcon:
|
571
|
+
collapseIcon: IconValue;
|
572
|
+
expandIcon: IconValue;
|
573
573
|
returnObject: boolean;
|
574
574
|
filterMode: FilterMode;
|
575
575
|
noFilter: boolean;
|
@@ -688,12 +688,12 @@ declare const VTreeview: {
|
|
688
688
|
};
|
689
689
|
'onUpdate:opened': vue.PropType<() => void>;
|
690
690
|
collapseIcon: {
|
691
|
-
type: vue.PropType<
|
692
|
-
default:
|
691
|
+
type: vue.PropType<IconValue>;
|
692
|
+
default: NonNullable<IconValue>;
|
693
693
|
};
|
694
694
|
expandIcon: {
|
695
|
-
type: vue.PropType<
|
696
|
-
default:
|
695
|
+
type: vue.PropType<IconValue>;
|
696
|
+
default: NonNullable<IconValue>;
|
697
697
|
};
|
698
698
|
returnObject: BooleanConstructor;
|
699
699
|
itemTitle: {
|
@@ -830,12 +830,12 @@ declare const VTreeview: {
|
|
830
830
|
};
|
831
831
|
'onUpdate:opened': vue.PropType<() => void>;
|
832
832
|
collapseIcon: {
|
833
|
-
type: vue.PropType<
|
834
|
-
default:
|
833
|
+
type: vue.PropType<IconValue>;
|
834
|
+
default: NonNullable<IconValue>;
|
835
835
|
};
|
836
836
|
expandIcon: {
|
837
|
-
type: vue.PropType<
|
838
|
-
default:
|
837
|
+
type: vue.PropType<IconValue>;
|
838
|
+
default: NonNullable<IconValue>;
|
839
839
|
};
|
840
840
|
returnObject: BooleanConstructor;
|
841
841
|
itemTitle: {
|