@vuetify/nightly 3.9.0-master.2025-07-09 → 3.9.0-next.2025-07-09
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/CHANGELOG.md +20 -9
- package/dist/json/attributes.json +3539 -3539
- package/dist/json/importMap-labs.json +14 -14
- package/dist/json/importMap.json +130 -130
- package/dist/json/web-types.json +6434 -6398
- package/dist/vuetify-labs.cjs +55 -36
- package/dist/vuetify-labs.css +26440 -28193
- package/dist/vuetify-labs.d.ts +197 -590
- package/dist/vuetify-labs.esm.js +55 -36
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +55 -36
- package/dist/vuetify-labs.min.css +3 -4
- package/dist/vuetify.cjs +47 -28
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +22837 -24587
- package/dist/vuetify.d.ts +197 -590
- package/dist/vuetify.esm.js +47 -28
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +47 -28
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +3 -4
- package/dist/vuetify.min.js +18 -18
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +211 -220
- package/lib/components/VApp/VApp.css +16 -15
- package/lib/components/VAppBar/VAppBar.css +14 -12
- package/lib/components/VAutocomplete/VAutocomplete.css +85 -84
- package/lib/components/VAutocomplete/VAutocomplete.d.ts +18 -9
- package/lib/components/VAutocomplete/VAutocomplete.js +6 -3
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VAvatar/VAvatar.css +108 -106
- package/lib/components/VBadge/VBadge.css +77 -77
- package/lib/components/VBanner/VBanner.css +161 -166
- package/lib/components/VBottomNavigation/VBottomNavigation.css +65 -64
- package/lib/components/VBottomSheet/VBottomSheet.css +34 -31
- package/lib/components/VBreadcrumbs/VBreadcrumbs.css +54 -57
- package/lib/components/VBtn/VBtn.css +400 -436
- package/lib/components/VBtn/VBtn.sass +10 -23
- package/lib/components/VBtn/_variables.scss +1 -1
- package/lib/components/VBtnGroup/VBtnGroup.css +87 -88
- package/lib/components/VBtnToggle/VBtnToggle.css +16 -14
- package/lib/components/VCard/VCard.css +294 -302
- package/lib/components/VCarousel/VCarousel.css +62 -64
- package/lib/components/VCarousel/VCarousel.sass +1 -1
- package/lib/components/VCheckbox/VCheckbox.css +7 -5
- package/lib/components/VChip/VChip.css +378 -411
- package/lib/components/VChipGroup/VChipGroup.css +19 -18
- package/lib/components/VCode/VCode.css +13 -11
- package/lib/components/VColorPicker/VColorPicker.css +23 -23
- package/lib/components/VColorPicker/VColorPickerCanvas.css +24 -22
- package/lib/components/VColorPicker/VColorPickerEdit.css +29 -28
- package/lib/components/VColorPicker/VColorPickerPreview.css +69 -67
- package/lib/components/VColorPicker/VColorPickerPreview.sass +4 -2
- package/lib/components/VColorPicker/VColorPickerSwatches.css +34 -34
- package/lib/components/VCombobox/VCombobox.css +85 -84
- package/lib/components/VCombobox/VCombobox.d.ts +18 -9
- package/lib/components/VCombobox/VCombobox.js +6 -3
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VCounter/VCounter.css +7 -5
- package/lib/components/VDataTable/VDataTable.css +202 -200
- package/lib/components/VDataTable/VDataTable.sass +20 -10
- package/lib/components/VDataTable/VDataTableFooter.css +33 -31
- package/lib/components/VDataTable/VDataTableFooter.js +7 -7
- package/lib/components/VDataTable/VDataTableFooter.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.css +8 -6
- package/lib/components/VDatePicker/VDatePickerControls.css +56 -58
- package/lib/components/VDatePicker/VDatePickerHeader.css +56 -60
- package/lib/components/VDatePicker/VDatePickerMonth.css +46 -50
- package/lib/components/VDatePicker/VDatePickerMonths.css +20 -19
- package/lib/components/VDatePicker/VDatePickerYears.css +16 -15
- package/lib/components/VDialog/VDialog.css +98 -98
- package/lib/components/VDivider/VDivider.css +52 -52
- package/lib/components/VEmptyState/VEmptyState.css +62 -67
- package/lib/components/VExpansionPanel/VExpansionPanel.css +203 -209
- package/lib/components/VExpansionPanel/VExpansionPanel.sass +27 -25
- package/lib/components/VFab/VFab.css +78 -73
- package/lib/components/VFab/VFab.sass +5 -4
- package/lib/components/VField/VField.css +541 -589
- package/lib/components/VField/VField.sass +4 -11
- package/lib/components/VField/_variables.scss +1 -1
- package/lib/components/VFileInput/VFileInput.css +34 -32
- package/lib/components/VFileInput/VFileInput.js +1 -1
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VFooter/VFooter.css +38 -36
- package/lib/components/VForm/VForm.d.ts +111 -531
- package/lib/components/VForm/VForm.js +11 -1
- package/lib/components/VForm/VForm.js.map +1 -1
- package/lib/components/VGrid/VGrid.css +565 -592
- package/lib/components/VIcon/VIcon.css +52 -53
- package/lib/components/VImg/VImg.css +50 -51
- package/lib/components/VInfiniteScroll/VInfiniteScroll.css +36 -37
- package/lib/components/VInput/VInput.css +136 -147
- package/lib/components/VItemGroup/VItemGroup.css +7 -5
- package/lib/components/VKbd/VKbd.css +33 -31
- package/lib/components/VLabel/VLabel.css +16 -15
- package/lib/components/VLayout/VLayout.css +10 -8
- package/lib/components/VLayout/VLayoutItem.css +8 -7
- package/lib/components/VList/VList.css +104 -108
- package/lib/components/VList/VList.sass +1 -1
- package/lib/components/VList/VListItem.css +442 -454
- package/lib/components/VList/VListItem.sass +2 -1
- package/lib/components/VLocaleProvider/VLocaleProvider.css +4 -2
- package/lib/components/VMain/VMain.css +32 -30
- package/lib/components/VMenu/VMenu.css +21 -19
- package/lib/components/VMessages/VMessages.css +17 -15
- package/lib/components/VNavigationDrawer/VNavigationDrawer.css +102 -104
- package/lib/components/VNumberInput/VNumberInput.css +59 -57
- package/lib/components/VOtpInput/VOtpInput.css +56 -58
- package/lib/components/VOtpInput/VOtpInput.js +2 -2
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.css +61 -64
- package/lib/components/VOverlay/VOverlay.sass +14 -13
- package/lib/components/VPagination/VPagination.css +10 -8
- package/lib/components/VParallax/VParallax.css +8 -6
- package/lib/components/VProgressCircular/VProgressCircular.css +95 -101
- package/lib/components/VProgressLinear/VProgressLinear.css +209 -222
- package/lib/components/VRadioGroup/VRadioGroup.css +14 -12
- package/lib/components/VRating/VRating.css +52 -53
- package/lib/components/VResponsive/VResponsive.css +25 -26
- package/lib/components/VSelect/VSelect.css +59 -57
- package/lib/components/VSelect/VSelect.d.ts +18 -9
- package/lib/components/VSelect/VSelect.js +6 -3
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.css +98 -100
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.css +10 -8
- package/lib/components/VSheet/VSheet.css +38 -36
- package/lib/components/VSkeletonLoader/VSkeletonLoader.css +225 -224
- package/lib/components/VSlideGroup/VSlideGroup.css +53 -55
- package/lib/components/VSlider/VSlider.css +53 -57
- package/lib/components/VSlider/VSliderThumb.css +142 -153
- package/lib/components/VSlider/VSliderTrack.css +155 -174
- package/lib/components/VSnackbar/VSnackbar.css +140 -140
- package/lib/components/VSnackbar/VSnackbar.js +1 -1
- package/lib/components/VSnackbar/VSnackbar.js.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.css +43 -41
- package/lib/components/VStepper/VStepper.css +55 -56
- package/lib/components/VStepper/VStepperItem.css +112 -115
- package/lib/components/VSwitch/VSwitch.css +129 -139
- package/lib/components/VSystemBar/VSystemBar.css +45 -43
- package/lib/components/VTable/VTable.css +142 -143
- package/lib/components/VTable/VTable.sass +4 -2
- package/lib/components/VTabs/VTab.css +30 -29
- package/lib/components/VTabs/VTabs.css +59 -65
- package/lib/components/VTextField/VTextField.css +77 -85
- package/lib/components/VTextarea/VTextarea.css +48 -40
- package/lib/components/VTextarea/VTextarea.sass +4 -2
- package/lib/components/VThemeProvider/VThemeProvider.css +5 -3
- package/lib/components/VTimePicker/VTimePicker.css +4 -2
- package/lib/components/VTimePicker/VTimePickerClock.css +127 -130
- package/lib/components/VTimePicker/VTimePickerControls.css +103 -104
- package/lib/components/VTimeline/VTimeline.css +388 -427
- package/lib/components/VToolbar/VToolbar.css +137 -144
- package/lib/components/VTooltip/VTooltip.css +27 -23
- package/lib/components/VTooltip/VTooltip.sass +8 -6
- package/lib/components/VTreeview/VTreeview.js +1 -1
- package/lib/components/VTreeview/VTreeview.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewItem.css +83 -85
- package/lib/components/VVirtualScroll/VVirtualScroll.css +11 -9
- package/lib/components/VWindow/VWindow.css +88 -85
- package/lib/composables/theme.js +3 -3
- package/lib/composables/theme.js.map +1 -1
- package/lib/directives/ripple/VRipple.css +38 -36
- package/lib/entry-bundler.js +1 -1
- package/lib/entry-bundler.js.map +1 -1
- package/lib/framework.d.ts +45 -45
- package/lib/framework.js +1 -1
- package/lib/framework.js.map +1 -1
- package/lib/labs/VCalendar/VCalendar.css +219 -225
- package/lib/labs/VCalendar/VCalendarDay.css +40 -41
- package/lib/labs/VCalendar/VCalendarHeader.css +13 -13
- package/lib/labs/VCalendar/VCalendarInterval.css +43 -42
- package/lib/labs/VCalendar/VCalendarIntervalEvent.css +7 -5
- package/lib/labs/VCalendar/VCalendarMonthDay.css +61 -58
- package/lib/labs/VCalendar/VCalendarMonthDay.sass +3 -2
- package/lib/labs/VColorInput/VColorInput.css +5 -3
- package/lib/labs/VColorInput/VColorInput.js +1 -1
- package/lib/labs/VColorInput/VColorInput.js.map +1 -1
- package/lib/labs/VDateInput/VDateInput.js +1 -1
- package/lib/labs/VDateInput/VDateInput.js.map +1 -1
- package/lib/labs/VFileUpload/VFileUpload.css +74 -77
- package/lib/labs/VFileUpload/VFileUpload.js +1 -1
- package/lib/labs/VFileUpload/VFileUpload.js.map +1 -1
- package/lib/labs/VHotkey/VHotkey.css +242 -241
- package/lib/labs/VIconBtn/VIconBtn.css +162 -164
- package/lib/labs/VPicker/VPicker.css +62 -67
- package/lib/labs/VStepperVertical/VStepperVertical.js +4 -4
- package/lib/labs/VStepperVertical/VStepperVertical.js.map +1 -1
- package/lib/labs/VStepperVertical/VStepperVerticalItem.js +1 -1
- package/lib/labs/VStepperVertical/VStepperVerticalItem.js.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 +13 -1
- package/lib/styles/generic/_reset.scss +0 -1
- package/lib/styles/generic/_transitions.scss +32 -32
- package/lib/styles/main.css +14677 -16153
- package/lib/styles/settings/_utilities.scss +0 -5
- package/lib/styles/settings/_variables.scss +2 -3
- package/lib/styles/tools/_border.sass +4 -4
- package/lib/styles/tools/_display.sass +0 -10
- package/lib/styles/tools/_elevation.sass +2 -2
- package/lib/styles/tools/_index.sass +0 -2
- package/lib/styles/tools/_layer.scss +4 -2
- package/lib/styles/tools/_position.sass +2 -2
- package/lib/styles/tools/_rounded.sass +2 -2
- package/lib/styles/tools/_utilities.sass +1 -5
- package/lib/styles/utilities/_elevation.scss +1 -1
- package/package.json +1 -1
- package/lib/styles/tools/_bootable.sass +0 -3
- package/lib/styles/tools/_radius.sass +0 -10
@@ -1,145 +1,138 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
border
|
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
|
-
.v-toolbar__content,
|
55
|
-
.v-toolbar__extension {
|
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
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
}
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
.v-toolbar-items {
|
139
|
-
display: flex;
|
140
|
-
height: inherit;
|
141
|
-
align-self: stretch;
|
142
|
-
}
|
143
|
-
.v-toolbar-items > .v-btn {
|
144
|
-
border-radius: 0;
|
1
|
+
@layer vuetify.components {
|
2
|
+
.v-toolbar {
|
3
|
+
align-items: flex-start;
|
4
|
+
display: flex;
|
5
|
+
flex: none;
|
6
|
+
flex-direction: column;
|
7
|
+
justify-content: space-between;
|
8
|
+
max-width: 100%;
|
9
|
+
position: relative;
|
10
|
+
transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
11
|
+
transition-property: height, width, transform, max-width, left, right, top, bottom, box-shadow;
|
12
|
+
width: 100%;
|
13
|
+
}
|
14
|
+
.v-toolbar {
|
15
|
+
border-color: rgba(var(--v-border-color), var(--v-border-opacity));
|
16
|
+
border-style: solid;
|
17
|
+
border-width: 0;
|
18
|
+
}
|
19
|
+
.v-toolbar--border {
|
20
|
+
border-width: thin;
|
21
|
+
box-shadow: none;
|
22
|
+
}
|
23
|
+
.v-toolbar {
|
24
|
+
box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
|
25
|
+
}
|
26
|
+
.v-toolbar {
|
27
|
+
border-radius: 0;
|
28
|
+
}
|
29
|
+
.v-toolbar {
|
30
|
+
background: rgb(var(--v-theme-surface-light));
|
31
|
+
color: rgba(var(--v-theme-on-surface-light), var(--v-high-emphasis-opacity));
|
32
|
+
}
|
33
|
+
.v-toolbar--absolute {
|
34
|
+
position: absolute;
|
35
|
+
}
|
36
|
+
.v-toolbar--collapse {
|
37
|
+
max-width: 112px;
|
38
|
+
overflow: hidden;
|
39
|
+
border-end-end-radius: 24px;
|
40
|
+
}
|
41
|
+
.v-toolbar--collapse .v-toolbar-title {
|
42
|
+
display: none;
|
43
|
+
}
|
44
|
+
.v-toolbar--flat {
|
45
|
+
box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-ambient-opacity, rgba(0, 0, 0, 0.12));
|
46
|
+
}
|
47
|
+
.v-toolbar--floating {
|
48
|
+
display: inline-flex;
|
49
|
+
width: auto;
|
50
|
+
}
|
51
|
+
.v-toolbar--rounded {
|
52
|
+
border-radius: 4px;
|
53
|
+
}
|
54
|
+
.v-toolbar__content,
|
55
|
+
.v-toolbar__extension {
|
56
|
+
align-items: center;
|
57
|
+
display: flex;
|
58
|
+
flex: 0 0 auto;
|
59
|
+
position: relative;
|
60
|
+
transition: inherit;
|
61
|
+
width: 100%;
|
62
|
+
}
|
63
|
+
.v-toolbar__content {
|
64
|
+
overflow: hidden;
|
65
|
+
}
|
66
|
+
.v-toolbar__content > .v-btn:first-child {
|
67
|
+
margin-inline-start: 4px;
|
68
|
+
}
|
69
|
+
.v-toolbar__content > .v-btn:last-child {
|
70
|
+
margin-inline-end: 4px;
|
71
|
+
}
|
72
|
+
.v-toolbar__content > .v-toolbar-title {
|
73
|
+
margin-inline-start: 20px;
|
74
|
+
}
|
75
|
+
.v-toolbar--density-prominent .v-toolbar__content {
|
76
|
+
align-items: flex-start;
|
77
|
+
}
|
78
|
+
.v-toolbar__image {
|
79
|
+
display: flex;
|
80
|
+
opacity: var(--v-toolbar-image-opacity, 1);
|
81
|
+
transition-property: opacity;
|
82
|
+
}
|
83
|
+
.v-toolbar__image {
|
84
|
+
position: absolute;
|
85
|
+
top: 0;
|
86
|
+
left: 0;
|
87
|
+
width: 100%;
|
88
|
+
height: 100%;
|
89
|
+
}
|
90
|
+
.v-toolbar__prepend,
|
91
|
+
.v-toolbar__append {
|
92
|
+
align-items: center;
|
93
|
+
align-self: stretch;
|
94
|
+
display: flex;
|
95
|
+
}
|
96
|
+
.v-toolbar__prepend {
|
97
|
+
margin-inline: 4px auto;
|
98
|
+
}
|
99
|
+
.v-toolbar__append {
|
100
|
+
margin-inline: auto 4px;
|
101
|
+
}
|
102
|
+
.v-toolbar-title {
|
103
|
+
flex: 1 1;
|
104
|
+
font-size: 1.25rem;
|
105
|
+
min-width: 0;
|
106
|
+
}
|
107
|
+
.v-toolbar-title {
|
108
|
+
font-size: 1.25rem;
|
109
|
+
font-weight: 400;
|
110
|
+
letter-spacing: 0;
|
111
|
+
line-height: 1.75rem;
|
112
|
+
text-transform: none;
|
113
|
+
}
|
114
|
+
.v-toolbar--density-prominent .v-toolbar-title {
|
115
|
+
align-self: flex-end;
|
116
|
+
padding-bottom: 6px;
|
117
|
+
}
|
118
|
+
.v-toolbar--density-prominent .v-toolbar-title {
|
119
|
+
font-size: 1.5rem;
|
120
|
+
font-weight: 400;
|
121
|
+
letter-spacing: 0;
|
122
|
+
line-height: 2.25rem;
|
123
|
+
text-transform: none;
|
124
|
+
}
|
125
|
+
.v-toolbar-title__placeholder {
|
126
|
+
overflow: hidden;
|
127
|
+
text-overflow: ellipsis;
|
128
|
+
white-space: nowrap;
|
129
|
+
}
|
130
|
+
.v-toolbar-items {
|
131
|
+
display: flex;
|
132
|
+
height: inherit;
|
133
|
+
align-self: stretch;
|
134
|
+
}
|
135
|
+
.v-toolbar-items > .v-btn {
|
136
|
+
border-radius: 0;
|
137
|
+
}
|
145
138
|
}
|
@@ -1,25 +1,29 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
1
|
+
@layer vuetify.components {
|
2
|
+
.v-tooltip > .v-overlay__content {
|
3
|
+
background: rgb(var(--v-theme-surface-variant));
|
4
|
+
color: rgb(var(--v-theme-on-surface-variant));
|
5
|
+
border-radius: 4px;
|
6
|
+
font-size: 0.875rem;
|
7
|
+
line-height: 1.6;
|
8
|
+
display: inline-block;
|
9
|
+
padding: 5px 16px;
|
10
|
+
text-transform: initial;
|
11
|
+
width: auto;
|
12
|
+
opacity: 1;
|
13
|
+
transition-property: opacity, transform;
|
14
|
+
overflow-wrap: break-word;
|
15
|
+
}
|
14
16
|
}
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
17
|
+
@layer vuetify.overrides {
|
18
|
+
.v-tooltip > .v-overlay__content[class*=enter-active] {
|
19
|
+
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
20
|
+
transition-duration: 150ms;
|
21
|
+
}
|
22
|
+
.v-tooltip > .v-overlay__content[class*=leave-active] {
|
23
|
+
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
24
|
+
transition-duration: 75ms;
|
25
|
+
}
|
26
|
+
.v-tooltip > .v-overlay__content:not(.v-tooltip--interactive) > .v-overlay__content {
|
27
|
+
pointer-events: none;
|
28
|
+
}
|
25
29
|
}
|
@@ -18,13 +18,15 @@
|
|
18
18
|
transition-property: opacity, transform
|
19
19
|
overflow-wrap: $tooltip-overflow-wrap
|
20
20
|
|
21
|
-
|
22
|
-
|
23
|
-
|
21
|
+
@include tools.layer('overrides')
|
22
|
+
.v-tooltip > .v-overlay__content
|
23
|
+
&[class*="enter-active"]
|
24
|
+
transition-timing-function: settings.$decelerated-easing
|
25
|
+
transition-duration: $tooltip-transition-enter-duration
|
24
26
|
|
25
|
-
|
26
|
-
|
27
|
-
|
27
|
+
&[class*="leave-active"]
|
28
|
+
transition-timing-function: settings.$accelerated-easing
|
29
|
+
transition-duration: $tooltip-transition-leave-duration
|
28
30
|
|
29
31
|
&:not(.v-tooltip--interactive)
|
30
32
|
> .v-overlay__content
|
@@ -133,7 +133,7 @@ export const VTreeview = genericComponent()({
|
|
133
133
|
"class": ['v-treeview', {
|
134
134
|
'v-treeview--fluid': props.fluid
|
135
135
|
}, props.class],
|
136
|
-
"
|
136
|
+
"open-strategy": "multiple",
|
137
137
|
"style": props.style,
|
138
138
|
"opened": opened.value,
|
139
139
|
"activated": activated.value,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VTreeview.js","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","fluid","Boolean","openAll","indentLines","String","search","filterKeys","collapseIcon","expandIcon","slim","modelValue","Array","VTreeview","name","props","emits","val","value","setup","_ref","slots","emit","activeColor","baseColor","color","activated","_selected","selected","get","set","vListRef","opened","flatItems","filteredItems","visibleIds","getPath","Set","flatMap","itemVal","returnObject","raw","getChildren","map","id","arr","queue","slice","child","shift","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","indentLinesVariant","_createVNode","_mergeProps","class","style","$event","default"],"sources":["../../../src/components/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 type { PropType } from 'vue'\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, IndentLinesVariant } 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 fluid: Boolean,\n openAll: Boolean,\n indentLines: [Boolean, String] as PropType<boolean | IndentLinesVariant>,\n search: String,\n\n ...makeFilterProps({ filterKeys: ['title'] }),\n ...omit(makeVTreeviewChildrenProps(), [\n 'index',\n 'path',\n 'indentLinesVariant',\n 'parentIndentLines',\n 'isLastGroup',\n ]),\n ...omit(makeVListProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand',\n slim: true,\n }), ['nav', 'openStrategy']),\n\n modelValue: Array,\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, emit }) {\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 selected = computed({\n get: () => props.modelValue ?? _selected.value,\n set (val) {\n _selected.value = val\n emit('update:modelValue', 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) return null\n const getPath = vListRef.value?.getPath\n if (!getPath) return null\n return new Set(filteredItems.value.flatMap(item => {\n const itemVal = props.returnObject ? item.raw : item.props.value\n return [\n ...getPath(itemVal),\n ...getChildren(itemVal),\n ].map(toRaw)\n }))\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 const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n const indentLinesVariant = typeof props.indentLines === 'boolean' ? 'default' : props.indentLines\n\n return (\n <VList\n ref={ vListRef }\n { ...listProps }\n class={[\n 'v-treeview',\n {\n 'v-treeview--fluid': props.fluid,\n },\n props.class,\n ]}\n openStrategy=\"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 density={ props.density }\n returnObject={ props.returnObject }\n items={ items.value }\n parentIndentLines={ props.indentLines ? [] : undefined }\n indentLinesVariant={ indentLinesVariant }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return { }\n },\n})\n\nexport type VTreeview = InstanceType<typeof VTreeview>\n"],"mappings":";AAAA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,cAAc,EAAEC,YAAY,EAAEC,KAAK,6BAE5C;AAAA,SACSC,eAAe;AAAA,SACfC,eAAe,EAAEC,SAAS;AAAA,SAC1BC,eAAe,6CAExB;AACA,SAASC,QAAQ,EAAEC,OAAO,EAAEC,GAAG,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjDC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,+BAExD;AAAA,SAESC,eAAe;AAMxB,SAASC,OAAOA,CAAEC,KAAiB,EAAy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,WAAW,CAAC9C,KAAK,CAAC;MAC1C,MAAM+C,qBAAqB,GAAGzF,iBAAiB,CAACwF,WAAW,CAAC9C,KAAK,CAAC;MAClE,MAAMgD,kBAAkB,GAAG,OAAOhD,KAAK,CAACX,WAAW,KAAK,SAAS,GAAG,SAAS,GAAGW,KAAK,CAACX,WAAW;MAEjG,OAAA4D,YAAA,CAAAxF,KAAA,EAAAyF,WAAA;QAAA,OAEUlC;MAAQ,GACT6B,SAAS;QAAA,SACP,CACL,YAAY,EACZ;UACE,mBAAmB,EAAE7C,KAAK,CAACd;QAC7B,CAAC,EACDc,KAAK,CAACmD,KAAK,CACZ;QAAA;QAAA,SAEOnD,KAAK,CAACoD,KAAK;QAAA,UACVnC,MAAM,CAACd,KAAK;QAAA,aACDQ,SAAS,CAACR,KAAK;QAAA,sBAAAkD,MAAA,IAAf1C,SAAS,CAACR,KAAK,GAAAkD,MAAA;QAAA,YAChBxC,QAAQ,CAACV,KAAK;QAAA,qBAAAkD,MAAA,IAAdxC,QAAQ,CAACV,KAAK,GAAAkD;MAAA;QAAAC,OAAA,EAAAA,CAAA,MAAAL,YAAA,CAAA3F,iBAAA,EAAA4F,WAAA,CAG1BH,qBAAqB;UAAA,WAChB/C,KAAK,CAACyC,OAAO;UAAA,gBACRzC,KAAK,CAACyB,YAAY;UAAA,SACzBhD,KAAK,CAAC0B,KAAK;UAAA,qBACCH,KAAK,CAACX,WAAW,GAAG,EAAE,GAAGR,SAAS;UAAA,sBACjCmE;QAAkB,IAC7B1C,KAAK;MAAA;IAIvB,CAAC,CAAC;IAEF,OAAO,CAAE,CAAC;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VTreeview.js","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","fluid","Boolean","openAll","indentLines","String","search","filterKeys","collapseIcon","expandIcon","slim","modelValue","Array","VTreeview","name","props","emits","val","value","setup","_ref","slots","emit","activeColor","baseColor","color","activated","_selected","selected","get","set","vListRef","opened","flatItems","filteredItems","visibleIds","getPath","Set","flatMap","itemVal","returnObject","raw","getChildren","map","id","arr","queue","slice","child","shift","ids","i","concat","VTreeviewGroup","VTreeviewItem","activeClass","density","disabled","lines","variant","listProps","filterProps","treeviewChildrenProps","indentLinesVariant","_createVNode","_mergeProps","class","style","$event","default"],"sources":["../../../src/components/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 type { PropType } from 'vue'\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, IndentLinesVariant } 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 fluid: Boolean,\n openAll: Boolean,\n indentLines: [Boolean, String] as PropType<boolean | IndentLinesVariant>,\n search: String,\n\n ...makeFilterProps({ filterKeys: ['title'] }),\n ...omit(makeVTreeviewChildrenProps(), [\n 'index',\n 'path',\n 'indentLinesVariant',\n 'parentIndentLines',\n 'isLastGroup',\n ]),\n ...omit(makeVListProps({\n collapseIcon: '$treeviewCollapse',\n expandIcon: '$treeviewExpand',\n slim: true,\n }), ['nav', 'openStrategy']),\n\n modelValue: Array,\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, emit }) {\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 selected = computed({\n get: () => props.modelValue ?? _selected.value,\n set (val) {\n _selected.value = val\n emit('update:modelValue', 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) return null\n const getPath = vListRef.value?.getPath\n if (!getPath) return null\n return new Set(filteredItems.value.flatMap(item => {\n const itemVal = props.returnObject ? item.raw : item.props.value\n return [\n ...getPath(itemVal),\n ...getChildren(itemVal),\n ].map(toRaw)\n }))\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 const treeviewChildrenProps = VTreeviewChildren.filterProps(props)\n const indentLinesVariant = typeof props.indentLines === 'boolean' ? 'default' : props.indentLines\n\n return (\n <VList\n ref={ vListRef }\n { ...listProps }\n class={[\n 'v-treeview',\n {\n 'v-treeview--fluid': props.fluid,\n },\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 density={ props.density }\n returnObject={ props.returnObject }\n items={ items.value }\n parentIndentLines={ props.indentLines ? [] : undefined }\n indentLinesVariant={ indentLinesVariant }\n v-slots={ slots }\n ></VTreeviewChildren>\n </VList>\n )\n })\n\n return { }\n },\n})\n\nexport type VTreeview = InstanceType<typeof VTreeview>\n"],"mappings":";AAAA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,cAAc,EAAEC,YAAY,EAAEC,KAAK,6BAE5C;AAAA,SACSC,eAAe;AAAA,SACfC,eAAe,EAAEC,SAAS;AAAA,SAC1BC,eAAe,6CAExB;AACA,SAASC,QAAQ,EAAEC,OAAO,EAAEC,GAAG,EAAEC,KAAK,EAAEC,KAAK,QAAQ,KAAK;AAAA,SACjDC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,+BAExD;AAAA,SAESC,eAAe;AAMxB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v-list {
|
15
|
-
|
16
|
-
}
|
17
|
-
.v-treeview.v-list--disabled .v-list-item__prepend {
|
18
|
-
|
19
|
-
}
|
20
|
-
.v-treeview .v-list-item--slim > .v-list-item__prepend > .v-icon ~ .v-list-item__spacer {
|
21
|
-
|
22
|
-
}
|
23
|
-
.v-treeview .v-list-item--slim > .v-list-item__prepend:not(:has(.v-list-item-action)) > .v-icon {
|
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
|
-
.v-treeview-group.v-list-group {
|
79
|
-
|
80
|
-
}
|
81
|
-
.v-treeview-group.v-list-group
|
82
|
-
|
83
|
-
}
|
84
|
-
.v-treeview-group.v-list-group .v-list-group__items .v-list-item {
|
85
|
-
padding-inline-start: calc(var(--indent-padding)) !important;
|
1
|
+
@layer vuetify.components {
|
2
|
+
.v-treeview-item {
|
3
|
+
--list-indent-size: 28px;
|
4
|
+
}
|
5
|
+
.v-treeview-item.v-treeview-item--filtered {
|
6
|
+
display: none;
|
7
|
+
}
|
8
|
+
.v-treeview-item__level {
|
9
|
+
width: 28px;
|
10
|
+
}
|
11
|
+
.v-treeview--fluid .v-treeview-item__level {
|
12
|
+
width: 0;
|
13
|
+
}
|
14
|
+
.v-treeview.v-list {
|
15
|
+
--indent-padding: 16px;
|
16
|
+
}
|
17
|
+
.v-treeview.v-list--disabled .v-list-item__prepend {
|
18
|
+
pointer-events: auto;
|
19
|
+
}
|
20
|
+
.v-treeview .v-list-item--slim > .v-list-item__prepend > .v-icon ~ .v-list-item__spacer {
|
21
|
+
width: 10px;
|
22
|
+
}
|
23
|
+
.v-treeview .v-list-item--slim > .v-list-item__prepend:not(:has(.v-list-item-action)) > .v-icon {
|
24
|
+
margin-inline-start: -6px;
|
25
|
+
}
|
26
|
+
.v-treeview-indent-lines {
|
27
|
+
position: absolute;
|
28
|
+
left: 0;
|
29
|
+
height: 100%;
|
30
|
+
display: grid;
|
31
|
+
padding-left: 8px;
|
32
|
+
padding-block: 0;
|
33
|
+
grid-template-columns: repeat(var(--v-indent-parts, 1), var(--prepend-width));
|
34
|
+
opacity: 0.4;
|
35
|
+
pointer-events: none;
|
36
|
+
}
|
37
|
+
.v-treeview-indent-line, .v-treeview-indent-line::before {
|
38
|
+
border: 0px solid rgb(var(--v-theme-on-surface));
|
39
|
+
}
|
40
|
+
.v-treeview-indent-line--leaf, .v-treeview-indent-line--line {
|
41
|
+
border-left-width: 1px;
|
42
|
+
height: 100%;
|
43
|
+
width: calc(50% + 1px);
|
44
|
+
justify-self: end;
|
45
|
+
}
|
46
|
+
.v-treeview-indent-line--leaf {
|
47
|
+
position: relative;
|
48
|
+
}
|
49
|
+
.v-treeview-indent-line--leaf::before {
|
50
|
+
content: "";
|
51
|
+
position: absolute;
|
52
|
+
border-bottom-width: 1px;
|
53
|
+
height: calc(50% + 1px);
|
54
|
+
width: 100%;
|
55
|
+
}
|
56
|
+
.v-treeview-indent-line--leaf:last-child::before {
|
57
|
+
width: calc(100% - 4px);
|
58
|
+
}
|
59
|
+
.v-treeview-indent-line--leaf-link {
|
60
|
+
border-bottom-width: 1px;
|
61
|
+
height: calc(50% + 1px);
|
62
|
+
margin-left: 0;
|
63
|
+
margin-right: 6px;
|
64
|
+
}
|
65
|
+
.v-treeview-indent-line--last-leaf {
|
66
|
+
border-left-width: 1px;
|
67
|
+
border-bottom-width: 1px;
|
68
|
+
height: calc(50% + 1px);
|
69
|
+
margin-left: calc(50% - 1px);
|
70
|
+
border-bottom-left-radius: 4px;
|
71
|
+
}
|
72
|
+
.v-treeview-indent-line--last-leaf:last-child {
|
73
|
+
margin-right: 4px;
|
74
|
+
}
|
75
|
+
.v-treeview-group.v-list-group {
|
76
|
+
--list-indent-size: 0px;
|
77
|
+
}
|
78
|
+
.v-treeview-group.v-list-group > .v-treeview-item__level {
|
79
|
+
width: 0px;
|
80
|
+
}
|
81
|
+
.v-treeview-group.v-list-group .v-list-group__items .v-list-item {
|
82
|
+
padding-inline-start: calc(var(--indent-padding)) !important;
|
83
|
+
}
|
86
84
|
}
|
@@ -1,10 +1,12 @@
|
|
1
|
-
.
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
@layer vuetify.components {
|
2
|
+
.v-virtual-scroll {
|
3
|
+
display: block;
|
4
|
+
flex: 1 1 auto;
|
5
|
+
max-width: 100%;
|
6
|
+
overflow: auto;
|
7
|
+
position: relative;
|
8
|
+
}
|
9
|
+
.v-virtual-scroll__container {
|
10
|
+
display: block;
|
11
|
+
}
|
10
12
|
}
|