vuetify 3.6.3 → 3.6.5
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/_component-variables-labs.sass +1 -0
- package/dist/json/attributes.json +489 -61
- package/dist/json/importMap-labs.json +30 -18
- package/dist/json/importMap.json +168 -168
- package/dist/json/tags.json +123 -1
- package/dist/json/web-types.json +1915 -198
- package/dist/vuetify-labs.css +3151 -2738
- package/dist/vuetify-labs.d.ts +3424 -1434
- package/dist/vuetify-labs.esm.js +483 -173
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +482 -172
- package/dist/vuetify-labs.min.css +3 -3
- package/dist/vuetify.css +957 -616
- package/dist/vuetify.d.ts +1451 -1380
- package/dist/vuetify.esm.js +171 -99
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +170 -98
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +3 -3
- package/dist/vuetify.min.js +982 -978
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +3 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +187 -158
- package/lib/components/VAvatar/VAvatar.css +3 -1
- package/lib/components/VBanner/index.d.mts +11 -11
- package/lib/components/VBottomSheet/index.d.mts +42 -42
- package/lib/components/VBtn/VBtn.css +3 -1
- package/lib/components/VBtn/index.d.mts +2 -0
- package/lib/components/VCard/VCard.css +3 -1
- package/lib/components/VCarousel/index.d.mts +6 -6
- package/lib/components/VChip/VChip.css +3 -1
- package/lib/components/VChipGroup/index.d.mts +11 -11
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +187 -158
- package/lib/components/VDataIterator/index.d.mts +1 -1
- package/lib/components/VDataTable/VDataTable.css +1 -1
- package/lib/components/VDataTable/VDataTable.mjs +6 -2
- package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTable.sass +2 -1
- package/lib/components/VDataTable/VDataTableHeaders.mjs +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs +3 -2
- package/lib/components/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs +3 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/components/VDataTable/composables/select.mjs +2 -1
- package/lib/components/VDataTable/composables/select.mjs.map +1 -1
- package/lib/components/VDataTable/index.d.mts +130 -71
- package/lib/components/VDatePicker/VDatePickerYears.mjs +4 -4
- package/lib/components/VDatePicker/VDatePickerYears.mjs.map +1 -1
- package/lib/components/VDialog/index.d.mts +126 -126
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs +3 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanels.mjs +15 -4
- package/lib/components/VExpansionPanel/VExpansionPanels.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.mts +82 -27
- package/lib/components/VFileInput/VFileInput.mjs +2 -2
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.mts +9 -9
- package/lib/components/VImg/index.d.mts +6 -6
- package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs +1 -1
- package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs.map +1 -1
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VListItem.css +3 -1
- package/lib/components/VList/VListItem.mjs +3 -2
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/index.d.mts +76 -52
- package/lib/components/VMenu/index.d.mts +126 -126
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +3 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/index.d.mts +19 -13
- package/lib/components/VOverlay/VOverlay.mjs +2 -5
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.mts +42 -42
- package/lib/components/VOverlay/useActivator.mjs +5 -5
- package/lib/components/VOverlay/useActivator.mjs.map +1 -1
- package/lib/components/VResponsive/VResponsive.mjs +1 -1
- package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
- package/lib/components/VResponsive/index.d.mts +6 -6
- package/lib/components/VSelect/index.d.mts +187 -158
- package/lib/components/VSheet/VSheet.css +1 -1
- package/lib/components/VSheet/_variables.scss +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.mjs +25 -25
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/index.d.mts +13 -11
- package/lib/components/VSlider/VSliderThumb.css +5 -0
- package/lib/components/VSlider/VSliderThumb.sass +3 -0
- package/lib/components/VSlider/VSliderTrack.css +15 -0
- package/lib/components/VSlider/VSliderTrack.sass +9 -0
- package/lib/components/VSnackbar/VSnackbar.css +3 -1
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/index.d.mts +126 -126
- package/lib/components/VSpeedDial/index.d.mts +42 -42
- package/lib/components/VStepper/VStepper.mjs +17 -8
- package/lib/components/VStepper/VStepper.mjs.map +1 -1
- package/lib/components/VStepper/VStepperItem.css +47 -0
- package/lib/components/VStepper/VStepperItem.mjs +10 -5
- package/lib/components/VStepper/VStepperItem.mjs.map +1 -1
- package/lib/components/VStepper/VStepperItem.sass +18 -0
- package/lib/components/VStepper/VStepperWindow.mjs +2 -1
- package/lib/components/VStepper/VStepperWindow.mjs.map +1 -1
- package/lib/components/VStepper/VStepperWindowItem.mjs +2 -1
- package/lib/components/VStepper/VStepperWindowItem.mjs.map +1 -1
- package/lib/components/VStepper/index.d.mts +1 -1
- package/lib/components/VTabs/VTabs.mjs +8 -3
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/VTabsWindow.mjs +2 -1
- package/lib/components/VTabs/VTabsWindow.mjs.map +1 -1
- package/lib/components/VTabs/index.d.mts +13 -11
- package/lib/components/VToolbar/VToolbar.css +5 -5
- package/lib/components/VToolbar/_variables.scss +3 -3
- package/lib/components/VTooltip/index.d.mts +126 -126
- package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs.map +1 -1
- package/lib/components/VWindow/index.d.mts +2 -0
- package/lib/components/index.d.mts +1393 -1325
- package/lib/composables/component.mjs +1 -1
- package/lib/composables/component.mjs.map +1 -1
- package/lib/composables/display.mjs +1 -1
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/group.mjs +8 -0
- package/lib/composables/group.mjs.map +1 -1
- package/lib/composables/nested/activeStrategies.mjs +16 -10
- package/lib/composables/nested/activeStrategies.mjs.map +1 -1
- package/lib/composables/nested/nested.mjs +7 -5
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/resizeObserver.mjs +5 -5
- package/lib/composables/resizeObserver.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +58 -55
- package/lib/labs/VCalendar/VCalendar.css +5 -1
- package/lib/labs/VCalendar/VCalendar.sass +3 -2
- package/lib/labs/VCalendar/_variables.scss +8 -0
- package/lib/labs/VNumberInput/VNumberInput.mjs +57 -81
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/lib/labs/VNumberInput/index.d.mts +402 -34
- package/lib/labs/VSnackbarQueue/index.d.mts +138 -138
- package/lib/labs/VStepperVertical/VStepperVertical.mjs +106 -0
- package/lib/labs/VStepperVertical/VStepperVertical.mjs.map +1 -0
- package/lib/labs/VStepperVertical/VStepperVerticalActions.mjs +38 -0
- package/lib/labs/VStepperVertical/VStepperVerticalActions.mjs.map +1 -0
- package/lib/labs/VStepperVertical/VStepperVerticalItem.css +69 -0
- package/lib/labs/VStepperVertical/VStepperVerticalItem.mjs +134 -0
- package/lib/labs/VStepperVertical/VStepperVerticalItem.mjs.map +1 -0
- package/lib/labs/VStepperVertical/VStepperVerticalItem.sass +74 -0
- package/lib/labs/VStepperVertical/_variables.scss +3 -0
- package/lib/labs/VStepperVertical/index.d.mts +1590 -0
- package/lib/labs/VStepperVertical/index.mjs +4 -0
- package/lib/labs/VStepperVertical/index.mjs.map +1 -0
- package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +88 -64
- package/lib/labs/components.d.mts +2303 -339
- package/lib/labs/components.mjs +1 -0
- package/lib/labs/components.mjs.map +1 -1
- package/lib/styles/generic/_colors.scss +1 -0
- package/lib/styles/main.css +260 -0
- package/lib/styles/tools/_variant.sass +3 -1
- package/lib/util/helpers.mjs +16 -0
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as vue from 'vue';
|
|
2
|
-
import { ComponentPropsOptions, ExtractPropTypes, Ref, EffectScope } from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, ComponentPublicInstance, Ref, EffectScope } from 'vue';
|
|
3
3
|
|
|
4
4
|
declare const block: readonly ["top", "bottom"];
|
|
5
5
|
declare const inline: readonly ["start", "end", "left", "right"];
|
|
@@ -28,6 +28,12 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
|
|
|
28
28
|
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): Partial<Pick<T, U>>;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
type TemplateRef = {
|
|
32
|
+
(target: Element | ComponentPublicInstance | null): void;
|
|
33
|
+
value: HTMLElement | ComponentPublicInstance | null | undefined;
|
|
34
|
+
readonly el: HTMLElement | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
31
37
|
interface ScrollStrategyData {
|
|
32
38
|
root: Ref<HTMLElement | undefined>;
|
|
33
39
|
contentEl: Ref<HTMLElement | undefined>;
|
|
@@ -95,7 +101,7 @@ declare const VSpeedDial: {
|
|
|
95
101
|
component: vue.Component;
|
|
96
102
|
}>;
|
|
97
103
|
zIndex: string | number;
|
|
98
|
-
modelValue: boolean
|
|
104
|
+
modelValue: boolean;
|
|
99
105
|
origin: Anchor | "auto" | "overlap";
|
|
100
106
|
minWidth: NonNullable<string | number>;
|
|
101
107
|
eager: boolean;
|
|
@@ -120,13 +126,13 @@ declare const VSpeedDial: {
|
|
|
120
126
|
width?: string | number | undefined;
|
|
121
127
|
height?: string | number | undefined;
|
|
122
128
|
theme?: string | undefined;
|
|
123
|
-
target?: Element | (string & {}) |
|
|
129
|
+
target?: Element | vue.ComponentPublicInstance | (string & {}) | "parent" | "cursor" | [x: number, y: number] | undefined;
|
|
124
130
|
contentClass?: any;
|
|
125
131
|
opacity?: string | number | undefined;
|
|
126
132
|
maxHeight?: string | number | undefined;
|
|
127
133
|
maxWidth?: string | number | undefined;
|
|
128
134
|
minHeight?: string | number | undefined;
|
|
129
|
-
activator?: Element | (string & {}) |
|
|
135
|
+
activator?: Element | vue.ComponentPublicInstance | (string & {}) | "parent" | undefined;
|
|
130
136
|
openOnClick?: boolean | undefined;
|
|
131
137
|
openOnFocus?: boolean | undefined;
|
|
132
138
|
contentProps?: any;
|
|
@@ -139,7 +145,7 @@ declare const VSpeedDial: {
|
|
|
139
145
|
activator?: ((arg: {
|
|
140
146
|
isActive: boolean;
|
|
141
147
|
props: Record<string, any>;
|
|
142
|
-
targetRef:
|
|
148
|
+
targetRef: TemplateRef;
|
|
143
149
|
}) => vue.VNodeChild) | undefined;
|
|
144
150
|
} | ((arg: {
|
|
145
151
|
isActive: vue.Ref<boolean>;
|
|
@@ -151,7 +157,7 @@ declare const VSpeedDial: {
|
|
|
151
157
|
activator?: false | ((arg: {
|
|
152
158
|
isActive: boolean;
|
|
153
159
|
props: Record<string, any>;
|
|
154
|
-
targetRef:
|
|
160
|
+
targetRef: TemplateRef;
|
|
155
161
|
}) => vue.VNodeChild) | undefined;
|
|
156
162
|
} | undefined;
|
|
157
163
|
} & {
|
|
@@ -161,7 +167,7 @@ declare const VSpeedDial: {
|
|
|
161
167
|
"v-slot:activator"?: false | ((arg: {
|
|
162
168
|
isActive: boolean;
|
|
163
169
|
props: Record<string, any>;
|
|
164
|
-
targetRef:
|
|
170
|
+
targetRef: TemplateRef;
|
|
165
171
|
}) => vue.VNodeChild) | undefined;
|
|
166
172
|
} & {
|
|
167
173
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
@@ -177,7 +183,7 @@ declare const VSpeedDial: {
|
|
|
177
183
|
component: vue.Component;
|
|
178
184
|
}>;
|
|
179
185
|
zIndex: string | number;
|
|
180
|
-
modelValue: boolean
|
|
186
|
+
modelValue: boolean;
|
|
181
187
|
origin: Anchor | "auto" | "overlap";
|
|
182
188
|
minWidth: NonNullable<string | number>;
|
|
183
189
|
eager: boolean;
|
|
@@ -202,13 +208,13 @@ declare const VSpeedDial: {
|
|
|
202
208
|
width?: string | number | undefined;
|
|
203
209
|
height?: string | number | undefined;
|
|
204
210
|
theme?: string | undefined;
|
|
205
|
-
target?: Element | (string & {}) |
|
|
211
|
+
target?: Element | vue.ComponentPublicInstance | (string & {}) | "parent" | "cursor" | [x: number, y: number] | undefined;
|
|
206
212
|
contentClass?: any;
|
|
207
213
|
opacity?: string | number | undefined;
|
|
208
214
|
maxHeight?: string | number | undefined;
|
|
209
215
|
maxWidth?: string | number | undefined;
|
|
210
216
|
minHeight?: string | number | undefined;
|
|
211
|
-
activator?: Element | (string & {}) |
|
|
217
|
+
activator?: Element | vue.ComponentPublicInstance | (string & {}) | "parent" | undefined;
|
|
212
218
|
openOnClick?: boolean | undefined;
|
|
213
219
|
openOnFocus?: boolean | undefined;
|
|
214
220
|
contentProps?: any;
|
|
@@ -221,7 +227,7 @@ declare const VSpeedDial: {
|
|
|
221
227
|
activator?: ((arg: {
|
|
222
228
|
isActive: boolean;
|
|
223
229
|
props: Record<string, any>;
|
|
224
|
-
targetRef:
|
|
230
|
+
targetRef: TemplateRef;
|
|
225
231
|
}) => vue.VNodeChild) | undefined;
|
|
226
232
|
} | ((arg: {
|
|
227
233
|
isActive: vue.Ref<boolean>;
|
|
@@ -233,7 +239,7 @@ declare const VSpeedDial: {
|
|
|
233
239
|
activator?: false | ((arg: {
|
|
234
240
|
isActive: boolean;
|
|
235
241
|
props: Record<string, any>;
|
|
236
|
-
targetRef:
|
|
242
|
+
targetRef: TemplateRef;
|
|
237
243
|
}) => vue.VNodeChild) | undefined;
|
|
238
244
|
} | undefined;
|
|
239
245
|
} & {
|
|
@@ -243,7 +249,7 @@ declare const VSpeedDial: {
|
|
|
243
249
|
"v-slot:activator"?: false | ((arg: {
|
|
244
250
|
isActive: boolean;
|
|
245
251
|
props: Record<string, any>;
|
|
246
|
-
targetRef:
|
|
252
|
+
targetRef: TemplateRef;
|
|
247
253
|
}) => vue.VNodeChild) | undefined;
|
|
248
254
|
} & {
|
|
249
255
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
@@ -257,7 +263,7 @@ declare const VSpeedDial: {
|
|
|
257
263
|
component: vue.Component;
|
|
258
264
|
}>;
|
|
259
265
|
zIndex: string | number;
|
|
260
|
-
modelValue: boolean
|
|
266
|
+
modelValue: boolean;
|
|
261
267
|
origin: Anchor | "auto" | "overlap";
|
|
262
268
|
minWidth: NonNullable<string | number>;
|
|
263
269
|
eager: boolean;
|
|
@@ -287,7 +293,7 @@ declare const VSpeedDial: {
|
|
|
287
293
|
activator: (arg: {
|
|
288
294
|
isActive: boolean;
|
|
289
295
|
props: Record<string, any>;
|
|
290
|
-
targetRef:
|
|
296
|
+
targetRef: TemplateRef;
|
|
291
297
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
292
298
|
[key: string]: any;
|
|
293
299
|
}>[];
|
|
@@ -308,7 +314,7 @@ declare const VSpeedDial: {
|
|
|
308
314
|
component: vue.Component;
|
|
309
315
|
}>;
|
|
310
316
|
zIndex: string | number;
|
|
311
|
-
modelValue: boolean
|
|
317
|
+
modelValue: boolean;
|
|
312
318
|
origin: Anchor | "auto" | "overlap";
|
|
313
319
|
minWidth: NonNullable<string | number>;
|
|
314
320
|
eager: boolean;
|
|
@@ -333,13 +339,13 @@ declare const VSpeedDial: {
|
|
|
333
339
|
width?: string | number | undefined;
|
|
334
340
|
height?: string | number | undefined;
|
|
335
341
|
theme?: string | undefined;
|
|
336
|
-
target?: Element | (string & {}) |
|
|
342
|
+
target?: Element | vue.ComponentPublicInstance | (string & {}) | "parent" | "cursor" | [x: number, y: number] | undefined;
|
|
337
343
|
contentClass?: any;
|
|
338
344
|
opacity?: string | number | undefined;
|
|
339
345
|
maxHeight?: string | number | undefined;
|
|
340
346
|
maxWidth?: string | number | undefined;
|
|
341
347
|
minHeight?: string | number | undefined;
|
|
342
|
-
activator?: Element | (string & {}) |
|
|
348
|
+
activator?: Element | vue.ComponentPublicInstance | (string & {}) | "parent" | undefined;
|
|
343
349
|
openOnClick?: boolean | undefined;
|
|
344
350
|
openOnFocus?: boolean | undefined;
|
|
345
351
|
contentProps?: any;
|
|
@@ -352,7 +358,7 @@ declare const VSpeedDial: {
|
|
|
352
358
|
activator?: ((arg: {
|
|
353
359
|
isActive: boolean;
|
|
354
360
|
props: Record<string, any>;
|
|
355
|
-
targetRef:
|
|
361
|
+
targetRef: TemplateRef;
|
|
356
362
|
}) => vue.VNodeChild) | undefined;
|
|
357
363
|
} | ((arg: {
|
|
358
364
|
isActive: vue.Ref<boolean>;
|
|
@@ -364,7 +370,7 @@ declare const VSpeedDial: {
|
|
|
364
370
|
activator?: false | ((arg: {
|
|
365
371
|
isActive: boolean;
|
|
366
372
|
props: Record<string, any>;
|
|
367
|
-
targetRef:
|
|
373
|
+
targetRef: TemplateRef;
|
|
368
374
|
}) => vue.VNodeChild) | undefined;
|
|
369
375
|
} | undefined;
|
|
370
376
|
} & {
|
|
@@ -374,7 +380,7 @@ declare const VSpeedDial: {
|
|
|
374
380
|
"v-slot:activator"?: false | ((arg: {
|
|
375
381
|
isActive: boolean;
|
|
376
382
|
props: Record<string, any>;
|
|
377
|
-
targetRef:
|
|
383
|
+
targetRef: TemplateRef;
|
|
378
384
|
}) => vue.VNodeChild) | undefined;
|
|
379
385
|
} & {
|
|
380
386
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
@@ -388,7 +394,7 @@ declare const VSpeedDial: {
|
|
|
388
394
|
component: vue.Component;
|
|
389
395
|
}>;
|
|
390
396
|
zIndex: string | number;
|
|
391
|
-
modelValue: boolean
|
|
397
|
+
modelValue: boolean;
|
|
392
398
|
origin: Anchor | "auto" | "overlap";
|
|
393
399
|
minWidth: NonNullable<string | number>;
|
|
394
400
|
eager: boolean;
|
|
@@ -423,7 +429,7 @@ declare const VSpeedDial: {
|
|
|
423
429
|
component: vue.Component;
|
|
424
430
|
}>;
|
|
425
431
|
zIndex: string | number;
|
|
426
|
-
modelValue: boolean
|
|
432
|
+
modelValue: boolean;
|
|
427
433
|
origin: Anchor | "auto" | "overlap";
|
|
428
434
|
minWidth: NonNullable<string | number>;
|
|
429
435
|
eager: boolean;
|
|
@@ -448,13 +454,13 @@ declare const VSpeedDial: {
|
|
|
448
454
|
width?: string | number | undefined;
|
|
449
455
|
height?: string | number | undefined;
|
|
450
456
|
theme?: string | undefined;
|
|
451
|
-
target?: Element | (string & {}) |
|
|
457
|
+
target?: Element | vue.ComponentPublicInstance | (string & {}) | "parent" | "cursor" | [x: number, y: number] | undefined;
|
|
452
458
|
contentClass?: any;
|
|
453
459
|
opacity?: string | number | undefined;
|
|
454
460
|
maxHeight?: string | number | undefined;
|
|
455
461
|
maxWidth?: string | number | undefined;
|
|
456
462
|
minHeight?: string | number | undefined;
|
|
457
|
-
activator?: Element | (string & {}) |
|
|
463
|
+
activator?: Element | vue.ComponentPublicInstance | (string & {}) | "parent" | undefined;
|
|
458
464
|
openOnClick?: boolean | undefined;
|
|
459
465
|
openOnFocus?: boolean | undefined;
|
|
460
466
|
contentProps?: any;
|
|
@@ -467,7 +473,7 @@ declare const VSpeedDial: {
|
|
|
467
473
|
activator?: ((arg: {
|
|
468
474
|
isActive: boolean;
|
|
469
475
|
props: Record<string, any>;
|
|
470
|
-
targetRef:
|
|
476
|
+
targetRef: TemplateRef;
|
|
471
477
|
}) => vue.VNodeChild) | undefined;
|
|
472
478
|
} | ((arg: {
|
|
473
479
|
isActive: vue.Ref<boolean>;
|
|
@@ -479,7 +485,7 @@ declare const VSpeedDial: {
|
|
|
479
485
|
activator?: false | ((arg: {
|
|
480
486
|
isActive: boolean;
|
|
481
487
|
props: Record<string, any>;
|
|
482
|
-
targetRef:
|
|
488
|
+
targetRef: TemplateRef;
|
|
483
489
|
}) => vue.VNodeChild) | undefined;
|
|
484
490
|
} | undefined;
|
|
485
491
|
} & {
|
|
@@ -489,7 +495,7 @@ declare const VSpeedDial: {
|
|
|
489
495
|
"v-slot:activator"?: false | ((arg: {
|
|
490
496
|
isActive: boolean;
|
|
491
497
|
props: Record<string, any>;
|
|
492
|
-
targetRef:
|
|
498
|
+
targetRef: TemplateRef;
|
|
493
499
|
}) => vue.VNodeChild) | undefined;
|
|
494
500
|
} & {
|
|
495
501
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
@@ -505,7 +511,7 @@ declare const VSpeedDial: {
|
|
|
505
511
|
component: vue.Component;
|
|
506
512
|
}>;
|
|
507
513
|
zIndex: string | number;
|
|
508
|
-
modelValue: boolean
|
|
514
|
+
modelValue: boolean;
|
|
509
515
|
origin: Anchor | "auto" | "overlap";
|
|
510
516
|
minWidth: NonNullable<string | number>;
|
|
511
517
|
eager: boolean;
|
|
@@ -535,7 +541,7 @@ declare const VSpeedDial: {
|
|
|
535
541
|
activator: (arg: {
|
|
536
542
|
isActive: boolean;
|
|
537
543
|
props: Record<string, any>;
|
|
538
|
-
targetRef:
|
|
544
|
+
targetRef: TemplateRef;
|
|
539
545
|
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
540
546
|
[key: string]: any;
|
|
541
547
|
}>[];
|
|
@@ -548,7 +554,7 @@ declare const VSpeedDial: {
|
|
|
548
554
|
width: (StringConstructor | NumberConstructor)[];
|
|
549
555
|
height: (StringConstructor | NumberConstructor)[];
|
|
550
556
|
theme: StringConstructor;
|
|
551
|
-
target: vue.PropType<Element | (string & {}) |
|
|
557
|
+
target: vue.PropType<Element | vue.ComponentPublicInstance | (string & {}) | "parent" | "cursor" | [x: number, y: number] | undefined>;
|
|
552
558
|
disabled: BooleanConstructor;
|
|
553
559
|
offset: {
|
|
554
560
|
type: vue.PropType<NonNullable<string | number | number[] | undefined>>;
|
|
@@ -587,10 +593,7 @@ declare const VSpeedDial: {
|
|
|
587
593
|
type: (StringConstructor | NumberConstructor)[];
|
|
588
594
|
default: number;
|
|
589
595
|
};
|
|
590
|
-
modelValue:
|
|
591
|
-
type: vue.PropType<boolean | null>;
|
|
592
|
-
default: null;
|
|
593
|
-
};
|
|
596
|
+
modelValue: BooleanConstructor;
|
|
594
597
|
contentClass: null;
|
|
595
598
|
origin: {
|
|
596
599
|
type: vue.PropType<Anchor | "auto" | "overlap">;
|
|
@@ -612,7 +615,7 @@ declare const VSpeedDial: {
|
|
|
612
615
|
type: vue.PropType<NonNullable<Anchor>>;
|
|
613
616
|
default: NonNullable<Anchor>;
|
|
614
617
|
};
|
|
615
|
-
activator: vue.PropType<Element | (string & {}) |
|
|
618
|
+
activator: vue.PropType<Element | vue.ComponentPublicInstance | (string & {}) | "parent" | undefined>;
|
|
616
619
|
locationStrategy: Omit<{
|
|
617
620
|
type: vue.PropType<"static" | ((data: LocationStrategyData, props: StrategyProps, contentStyles: vue.Ref<Record<string, string>>) => {
|
|
618
621
|
updateLocation: (e: Event) => void;
|
|
@@ -692,7 +695,7 @@ declare const VSpeedDial: {
|
|
|
692
695
|
width: (StringConstructor | NumberConstructor)[];
|
|
693
696
|
height: (StringConstructor | NumberConstructor)[];
|
|
694
697
|
theme: StringConstructor;
|
|
695
|
-
target: vue.PropType<Element | (string & {}) |
|
|
698
|
+
target: vue.PropType<Element | vue.ComponentPublicInstance | (string & {}) | "parent" | "cursor" | [x: number, y: number] | undefined>;
|
|
696
699
|
disabled: BooleanConstructor;
|
|
697
700
|
offset: {
|
|
698
701
|
type: vue.PropType<NonNullable<string | number | number[] | undefined>>;
|
|
@@ -731,10 +734,7 @@ declare const VSpeedDial: {
|
|
|
731
734
|
type: (StringConstructor | NumberConstructor)[];
|
|
732
735
|
default: number;
|
|
733
736
|
};
|
|
734
|
-
modelValue:
|
|
735
|
-
type: vue.PropType<boolean | null>;
|
|
736
|
-
default: null;
|
|
737
|
-
};
|
|
737
|
+
modelValue: BooleanConstructor;
|
|
738
738
|
contentClass: null;
|
|
739
739
|
origin: {
|
|
740
740
|
type: vue.PropType<Anchor | "auto" | "overlap">;
|
|
@@ -756,7 +756,7 @@ declare const VSpeedDial: {
|
|
|
756
756
|
type: vue.PropType<NonNullable<Anchor>>;
|
|
757
757
|
default: NonNullable<Anchor>;
|
|
758
758
|
};
|
|
759
|
-
activator: vue.PropType<Element | (string & {}) |
|
|
759
|
+
activator: vue.PropType<Element | vue.ComponentPublicInstance | (string & {}) | "parent" | undefined>;
|
|
760
760
|
locationStrategy: Omit<{
|
|
761
761
|
type: vue.PropType<"static" | ((data: LocationStrategyData, props: StrategyProps, contentStyles: vue.Ref<Record<string, string>>) => {
|
|
762
762
|
updateLocation: (e: Event) => void;
|
|
@@ -15,7 +15,7 @@ import { makeGroupProps, useGroup } from "../../composables/group.mjs"; // Utili
|
|
|
15
15
|
import { computed, toRefs } from 'vue';
|
|
16
16
|
import { genericComponent, getPropertyFromItem, only, propsFactory, useRender } from "../../util/index.mjs"; // Types
|
|
17
17
|
export const VStepperSymbol = Symbol.for('vuetify:v-stepper');
|
|
18
|
-
export const
|
|
18
|
+
export const makeStepperProps = propsFactory({
|
|
19
19
|
altLabels: Boolean,
|
|
20
20
|
bgColor: String,
|
|
21
21
|
editable: Boolean,
|
|
@@ -34,7 +34,10 @@ export const makeVStepperProps = propsFactory({
|
|
|
34
34
|
},
|
|
35
35
|
mobile: Boolean,
|
|
36
36
|
nonLinear: Boolean,
|
|
37
|
-
flat: Boolean
|
|
37
|
+
flat: Boolean
|
|
38
|
+
}, 'Stepper');
|
|
39
|
+
export const makeVStepperProps = propsFactory({
|
|
40
|
+
...makeStepperProps(),
|
|
38
41
|
...makeGroupProps({
|
|
39
42
|
mandatory: 'force',
|
|
40
43
|
selectedClass: 'v-stepper-item--selected'
|
|
@@ -113,12 +116,18 @@ export const VStepper = genericComponent()({
|
|
|
113
116
|
default: () => [hasHeader && _createVNode(VStepperHeader, {
|
|
114
117
|
"key": "stepper-header"
|
|
115
118
|
}, {
|
|
116
|
-
default: () => [items.value.map((
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
119
|
+
default: () => [items.value.map((_ref2, index) => {
|
|
120
|
+
let {
|
|
121
|
+
raw,
|
|
122
|
+
...item
|
|
123
|
+
} = _ref2;
|
|
124
|
+
return _createVNode(_Fragment, null, [!!index && _createVNode(VDivider, null, null), _createVNode(VStepperItem, item, {
|
|
125
|
+
default: slots[`header-item.${item.value}`] ?? slots.header,
|
|
126
|
+
icon: slots.icon,
|
|
127
|
+
title: slots.title,
|
|
128
|
+
subtitle: slots.subtitle
|
|
129
|
+
})]);
|
|
130
|
+
})]
|
|
122
131
|
}), hasWindow && _createVNode(VStepperWindow, {
|
|
123
132
|
"key": "stepper-window"
|
|
124
133
|
}, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VStepper.mjs","names":["makeVStepperActionsProps","VStepperActions","VStepperHeader","VStepperItem","VStepperWindow","VStepperWindowItem","VDivider","makeVSheetProps","VSheet","provideDefaults","makeGroupProps","useGroup","computed","toRefs","genericComponent","getPropertyFromItem","only","propsFactory","useRender","VStepperSymbol","Symbol","for","makeVStepperProps","altLabels","Boolean","bgColor","String","editable","hideActions","items","type","Array","default","itemTitle","itemValue","mobile","nonLinear","flat","mandatory","selectedClass","VStepper","name","props","emits","v","setup","_ref","slots","_items","next","prev","selected","color","prevText","nextText","map","item","index","title","value","raw","activeIndex","findIndex","includes","id","disabled","length","sheetProps","filterProps","hasHeader","header","hasWindow","hasActions","actions","_createVNode","_mergeProps","class","style","_Fragment","icon","subtitle"],"sources":["../../../src/components/VStepper/VStepper.tsx"],"sourcesContent":["// Styles\nimport './VStepper.sass'\n\n// Components\nimport { makeVStepperActionsProps, VStepperActions } from './VStepperActions'\nimport { VStepperHeader } from './VStepperHeader'\nimport { VStepperItem } from './VStepperItem'\nimport { VStepperWindow } from './VStepperWindow'\nimport { VStepperWindowItem } from './VStepperWindowItem'\nimport { VDivider } from '@/components/VDivider'\nimport { makeVSheetProps, VSheet } from '@/components/VSheet/VSheet'\n\n// Composables\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeGroupProps, useGroup } from '@/composables/group'\n\n// Utilities\nimport { computed, toRefs } from 'vue'\nimport { genericComponent, getPropertyFromItem, only, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { InjectionKey, PropType } from 'vue'\nimport type { StepperItemSlot } from './VStepperItem'\nimport type { GroupItemProvide } from '@/composables/group'\n\nexport const VStepperSymbol: InjectionKey<GroupItemProvide> = Symbol.for('vuetify:v-stepper')\n\nexport type StepperItem = string | Record<string, any>\n\nexport type VStepperSlot = {\n prev: () => void\n next: () => void\n}\n\nexport type VStepperSlots = {\n actions: VStepperSlot\n default: VStepperSlot\n header: StepperItem\n 'header-item': StepperItemSlot\n icon: StepperItemSlot\n title: StepperItemSlot\n subtitle: StepperItemSlot\n item: StepperItem\n prev: never\n next: never\n} & {\n [key: `header-item.${string}`]: StepperItemSlot\n [key: `item.${string}`]: StepperItem\n}\n\nexport const makeVStepperProps = propsFactory({\n altLabels: Boolean,\n bgColor: String,\n editable: Boolean,\n hideActions: Boolean,\n items: {\n type: Array as PropType<readonly StepperItem[]>,\n default: () => ([]),\n },\n itemTitle: {\n type: String,\n default: 'title',\n },\n itemValue: {\n type: String,\n default: 'value',\n },\n mobile: Boolean,\n nonLinear: Boolean,\n flat: Boolean,\n\n ...makeGroupProps({\n mandatory: 'force' as const,\n selectedClass: 'v-stepper-item--selected',\n }),\n ...makeVSheetProps(),\n ...only(makeVStepperActionsProps(), ['prevText', 'nextText']),\n}, 'VStepper')\n\nexport const VStepper = genericComponent<VStepperSlots>()({\n name: 'VStepper',\n\n props: makeVStepperProps(),\n\n emits: {\n 'update:modelValue': (v: unknown) => true,\n },\n\n setup (props, { slots }) {\n const { items: _items, next, prev, selected } = useGroup(props, VStepperSymbol)\n const { color, editable, prevText, nextText } = toRefs(props)\n\n const items = computed(() => props.items.map((item, index) => {\n const title = getPropertyFromItem(item, props.itemTitle, item)\n const value = getPropertyFromItem(item, props.itemValue, index + 1)\n\n return {\n title,\n value,\n raw: item,\n }\n }))\n const activeIndex = computed(() => {\n return _items.value.findIndex(item => selected.value.includes(item.id))\n })\n const disabled = computed(() => {\n if (props.disabled) return props.disabled\n if (activeIndex.value === 0) return 'prev'\n if (activeIndex.value === _items.value.length - 1) return 'next'\n\n return false\n })\n\n provideDefaults({\n VStepperItem: {\n editable,\n prevText,\n nextText,\n },\n VStepperActions: {\n color,\n disabled,\n prevText,\n nextText,\n },\n })\n\n useRender(() => {\n const sheetProps = VSheet.filterProps(props)\n\n const hasHeader = !!(slots.header || props.items.length)\n const hasWindow = props.items.length > 0\n const hasActions = !props.hideActions && !!(hasWindow || slots.actions)\n\n return (\n <VSheet\n { ...sheetProps }\n color={ props.bgColor }\n class={[\n 'v-stepper',\n {\n 'v-stepper--alt-labels': props.altLabels,\n 'v-stepper--flat': props.flat,\n 'v-stepper--non-linear': props.nonLinear,\n 'v-stepper--mobile': props.mobile,\n },\n props.class,\n ]}\n style={ props.style }\n >\n { hasHeader && (\n <VStepperHeader key=\"stepper-header\">\n { items.value.map((item, index) => (\n <>\n { !!index && (<VDivider />) }\n\n <VStepperItem\n { ...item }\n v-slots={{\n default: slots[`header-item.${item.value}`] ?? slots.header,\n icon: slots.icon,\n title: slots.title,\n subtitle: slots.subtitle,\n }}\n />\n </>\n ))}\n </VStepperHeader>\n )}\n\n { hasWindow && (\n <VStepperWindow key=\"stepper-window\">\n { items.value.map(item => (\n <VStepperWindowItem\n value={ item.value }\n v-slots={{\n default: () => slots[`item.${item.value}`]?.(item) ?? slots.item?.(item),\n }}\n />\n ))}\n </VStepperWindow>\n )}\n\n { slots.default?.({ prev, next }) }\n\n { hasActions && (\n slots.actions?.({ next, prev }) ?? (\n <VStepperActions\n key=\"stepper-actions\"\n onClick:prev={ prev }\n onClick:next={ next }\n v-slots={ slots }\n />\n )\n )}\n </VSheet>\n )\n })\n\n return {\n prev,\n next,\n }\n },\n})\n\nexport type VStepper = InstanceType<typeof VStepper>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,wBAAwB,EAAEC,eAAe;AAAA,SACzCC,cAAc;AAAA,SACdC,YAAY;AAAA,SACZC,cAAc;AAAA,SACdC,kBAAkB;AAAA,SAClBC,QAAQ;AAAA,SACRC,eAAe,EAAEC,MAAM,gCAEhC;AAAA,SACSC,eAAe;AAAA,SACfC,cAAc,EAAEC,QAAQ,uCAEjC;AACA,SAASC,QAAQ,EAAEC,MAAM,QAAQ,KAAK;AAAA,SAC7BC,gBAAgB,EAAEC,mBAAmB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,gCAE7E;AAKA,OAAO,MAAMC,cAA8C,GAAGC,MAAM,CAACC,GAAG,CAAC,mBAAmB,CAAC;AAyB7F,OAAO,MAAMC,iBAAiB,GAAGL,YAAY,CAAC;EAC5CM,SAAS,EAAEC,OAAO;EAClBC,OAAO,EAAEC,MAAM;EACfC,QAAQ,EAAEH,OAAO;EACjBI,WAAW,EAAEJ,OAAO;EACpBK,KAAK,EAAE;IACLC,IAAI,EAAE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A,KAAMe,KAAK,CAAE,QAAOS,IAAI,CAACG,KAAM,EAAC,CAAC,GAAGH,IAAI,CAAC,IAAIT,KAAK,CAACS,IAAI,GAAGA,IAAI;UACzE,CAAC,CAEJ,CAAC;QAAA,EAEL,EAECT,KAAK,CAACf,OAAO,GAAG;UAAEkB,IAAI;UAAED;QAAK,CAAC,CAAC,EAE/BuB,UAAU,KACVzB,KAAK,CAAC0B,OAAO,GAAG;UAAExB,IAAI;UAAEC;QAAK,CAAC,CAAC,IAAAwB,YAAA,CAAAzE,eAAA;UAAA;UAAA,gBAGZiD,IAAI;UAAA,gBACJD;QAAI,GACTF,KAAK,CAElB,CACF;MAAA;IAGP,CAAC,CAAC;IAEF,OAAO;MACLG,IAAI;MACJD;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"VStepper.mjs","names":["makeVStepperActionsProps","VStepperActions","VStepperHeader","VStepperItem","VStepperWindow","VStepperWindowItem","VDivider","makeVSheetProps","VSheet","provideDefaults","makeGroupProps","useGroup","computed","toRefs","genericComponent","getPropertyFromItem","only","propsFactory","useRender","VStepperSymbol","Symbol","for","makeStepperProps","altLabels","Boolean","bgColor","String","editable","hideActions","items","type","Array","default","itemTitle","itemValue","mobile","nonLinear","flat","makeVStepperProps","mandatory","selectedClass","VStepper","name","props","emits","v","setup","_ref","slots","_items","next","prev","selected","color","prevText","nextText","map","item","index","title","value","raw","activeIndex","findIndex","includes","id","disabled","length","sheetProps","filterProps","hasHeader","header","hasWindow","hasActions","actions","_createVNode","_mergeProps","class","style","_ref2","_Fragment","icon","subtitle"],"sources":["../../../src/components/VStepper/VStepper.tsx"],"sourcesContent":["// Styles\nimport './VStepper.sass'\n\n// Components\nimport { makeVStepperActionsProps, VStepperActions } from './VStepperActions'\nimport { VStepperHeader } from './VStepperHeader'\nimport { VStepperItem } from './VStepperItem'\nimport { VStepperWindow } from './VStepperWindow'\nimport { VStepperWindowItem } from './VStepperWindowItem'\nimport { VDivider } from '@/components/VDivider'\nimport { makeVSheetProps, VSheet } from '@/components/VSheet/VSheet'\n\n// Composables\nimport { provideDefaults } from '@/composables/defaults'\nimport { makeGroupProps, useGroup } from '@/composables/group'\n\n// Utilities\nimport { computed, toRefs } from 'vue'\nimport { genericComponent, getPropertyFromItem, only, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { InjectionKey, PropType } from 'vue'\nimport type { StepperItem, StepperItemSlot } from './VStepperItem'\nimport type { GroupItemProvide } from '@/composables/group'\n\nexport const VStepperSymbol: InjectionKey<GroupItemProvide> = Symbol.for('vuetify:v-stepper')\n\nexport type VStepperSlot = {\n prev: () => void\n next: () => void\n}\n\nexport type VStepperSlots = {\n actions: VStepperSlot\n default: VStepperSlot\n header: StepperItem\n 'header-item': StepperItemSlot\n icon: StepperItemSlot\n title: StepperItemSlot\n subtitle: StepperItemSlot\n item: StepperItem\n prev: never\n next: never\n} & {\n [key: `header-item.${string}`]: StepperItemSlot\n [key: `item.${string}`]: StepperItem\n}\n\nexport const makeStepperProps = propsFactory({\n altLabels: Boolean,\n bgColor: String,\n editable: Boolean,\n hideActions: Boolean,\n items: {\n type: Array as PropType<readonly StepperItem[]>,\n default: () => ([]),\n },\n itemTitle: {\n type: String,\n default: 'title',\n },\n itemValue: {\n type: String,\n default: 'value',\n },\n mobile: Boolean,\n nonLinear: Boolean,\n flat: Boolean,\n}, 'Stepper')\n\nexport const makeVStepperProps = propsFactory({\n ...makeStepperProps(),\n ...makeGroupProps({\n mandatory: 'force' as const,\n selectedClass: 'v-stepper-item--selected',\n }),\n ...makeVSheetProps(),\n ...only(makeVStepperActionsProps(), ['prevText', 'nextText']),\n}, 'VStepper')\n\nexport const VStepper = genericComponent<VStepperSlots>()({\n name: 'VStepper',\n\n props: makeVStepperProps(),\n\n emits: {\n 'update:modelValue': (v: unknown) => true,\n },\n\n setup (props, { slots }) {\n const { items: _items, next, prev, selected } = useGroup(props, VStepperSymbol)\n const { color, editable, prevText, nextText } = toRefs(props)\n\n const items = computed(() => props.items.map((item, index) => {\n const title = getPropertyFromItem(item, props.itemTitle, item)\n const value = getPropertyFromItem(item, props.itemValue, index + 1)\n\n return {\n title,\n value,\n raw: item,\n }\n }))\n const activeIndex = computed(() => {\n return _items.value.findIndex(item => selected.value.includes(item.id))\n })\n const disabled = computed(() => {\n if (props.disabled) return props.disabled\n if (activeIndex.value === 0) return 'prev'\n if (activeIndex.value === _items.value.length - 1) return 'next'\n\n return false\n })\n\n provideDefaults({\n VStepperItem: {\n editable,\n prevText,\n nextText,\n },\n VStepperActions: {\n color,\n disabled,\n prevText,\n nextText,\n },\n })\n\n useRender(() => {\n const sheetProps = VSheet.filterProps(props)\n\n const hasHeader = !!(slots.header || props.items.length)\n const hasWindow = props.items.length > 0\n const hasActions = !props.hideActions && !!(hasWindow || slots.actions)\n\n return (\n <VSheet\n { ...sheetProps }\n color={ props.bgColor }\n class={[\n 'v-stepper',\n {\n 'v-stepper--alt-labels': props.altLabels,\n 'v-stepper--flat': props.flat,\n 'v-stepper--non-linear': props.nonLinear,\n 'v-stepper--mobile': props.mobile,\n },\n props.class,\n ]}\n style={ props.style }\n >\n { hasHeader && (\n <VStepperHeader key=\"stepper-header\">\n { items.value.map(({ raw, ...item }, index) => (\n <>\n { !!index && (<VDivider />) }\n\n <VStepperItem\n { ...item }\n v-slots={{\n default: slots[`header-item.${item.value}`] ?? slots.header,\n icon: slots.icon,\n title: slots.title,\n subtitle: slots.subtitle,\n }}\n />\n </>\n ))}\n </VStepperHeader>\n )}\n\n { hasWindow && (\n <VStepperWindow key=\"stepper-window\">\n { items.value.map(item => (\n <VStepperWindowItem\n value={ item.value }\n v-slots={{\n default: () => slots[`item.${item.value}`]?.(item) ?? slots.item?.(item),\n }}\n />\n ))}\n </VStepperWindow>\n )}\n\n { slots.default?.({ prev, next }) }\n\n { hasActions && (\n slots.actions?.({ next, prev }) ?? (\n <VStepperActions\n key=\"stepper-actions\"\n onClick:prev={ prev }\n onClick:next={ next }\n v-slots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AEC;QAAK,CAAC,CAAC,IAAAwB,YAAA,CAAA1E,eAAA;UAAA;UAAA,gBAGZkD,IAAI;UAAA,gBACJD;QAAI,GACTF,KAAK,CAElB,CACF;MAAA;IAGP,CAAC,CAAC;IAEF,OAAO;MACLG,IAAI;MACJD;IACF,CAAC;EACH;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -3,12 +3,42 @@
|
|
|
3
3
|
align-self: stretch;
|
|
4
4
|
display: inline-flex;
|
|
5
5
|
flex: none;
|
|
6
|
+
outline: none;
|
|
6
7
|
opacity: var(--v-medium-emphasis-opacity);
|
|
7
8
|
padding: 1.5rem;
|
|
9
|
+
position: relative;
|
|
8
10
|
transition-duration: 0.2s;
|
|
9
11
|
transition-property: opacity;
|
|
10
12
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
11
13
|
}
|
|
14
|
+
.v-stepper-item:hover > .v-stepper-item__overlay {
|
|
15
|
+
opacity: calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier));
|
|
16
|
+
}
|
|
17
|
+
.v-stepper-item:focus-visible > .v-stepper-item__overlay {
|
|
18
|
+
opacity: calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier));
|
|
19
|
+
}
|
|
20
|
+
@supports not selector(:focus-visible) {
|
|
21
|
+
.v-stepper-item:focus > .v-stepper-item__overlay {
|
|
22
|
+
opacity: calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
.v-stepper-item--active > .v-stepper-item__overlay, .v-stepper-item[aria-haspopup=menu][aria-expanded=true] > .v-stepper-item__overlay {
|
|
26
|
+
opacity: calc(var(--v-activated-opacity) * var(--v-theme-overlay-multiplier));
|
|
27
|
+
}
|
|
28
|
+
.v-stepper-item--active:hover > .v-stepper-item__overlay, .v-stepper-item[aria-haspopup=menu][aria-expanded=true]:hover > .v-stepper-item__overlay {
|
|
29
|
+
opacity: calc((var(--v-activated-opacity) + var(--v-hover-opacity)) * var(--v-theme-overlay-multiplier));
|
|
30
|
+
}
|
|
31
|
+
.v-stepper-item--active:focus-visible > .v-stepper-item__overlay, .v-stepper-item[aria-haspopup=menu][aria-expanded=true]:focus-visible > .v-stepper-item__overlay {
|
|
32
|
+
opacity: calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier));
|
|
33
|
+
}
|
|
34
|
+
@supports not selector(:focus-visible) {
|
|
35
|
+
.v-stepper-item--active:focus > .v-stepper-item__overlay, .v-stepper-item[aria-haspopup=menu][aria-expanded=true]:focus > .v-stepper-item__overlay {
|
|
36
|
+
opacity: calc((var(--v-activated-opacity) + var(--v-focus-opacity)) * var(--v-theme-overlay-multiplier));
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
.v-stepper--non-linear .v-stepper-item {
|
|
40
|
+
opacity: var(--v-high-emphasis-opacity);
|
|
41
|
+
}
|
|
12
42
|
.v-stepper-item--selected {
|
|
13
43
|
opacity: 1;
|
|
14
44
|
}
|
|
@@ -64,4 +94,21 @@
|
|
|
64
94
|
}
|
|
65
95
|
.v-stepper--mobile .v-stepper-item__subtitle {
|
|
66
96
|
display: none;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.v-stepper-item__overlay {
|
|
100
|
+
background-color: currentColor;
|
|
101
|
+
border-radius: inherit;
|
|
102
|
+
opacity: 0;
|
|
103
|
+
transition: opacity 0.2s ease-in-out;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.v-stepper-item__overlay,
|
|
107
|
+
.v-stepper-item__underlay {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 0;
|
|
110
|
+
left: 0;
|
|
111
|
+
width: 100%;
|
|
112
|
+
height: 100%;
|
|
113
|
+
pointer-events: none;
|
|
67
114
|
}
|
|
@@ -5,12 +5,13 @@ import "./VStepperItem.css";
|
|
|
5
5
|
// Components
|
|
6
6
|
import { VAvatar } from "../VAvatar/VAvatar.mjs";
|
|
7
7
|
import { VIcon } from "../VIcon/VIcon.mjs"; // Composables
|
|
8
|
-
import { makeGroupItemProps, useGroupItem } from "../../composables/group.mjs";
|
|
8
|
+
import { makeGroupItemProps, useGroupItem } from "../../composables/group.mjs";
|
|
9
|
+
import { genOverlays } from "../../composables/variant.mjs"; // Directives
|
|
9
10
|
import { Ripple } from "../../directives/ripple/index.mjs"; // Utilities
|
|
10
11
|
import { computed } from 'vue';
|
|
11
12
|
import { VStepperSymbol } from "./VStepper.mjs";
|
|
12
13
|
import { genericComponent, propsFactory, useRender } from "../../util/index.mjs"; // Types
|
|
13
|
-
export const
|
|
14
|
+
export const makeStepperItemProps = propsFactory({
|
|
14
15
|
color: String,
|
|
15
16
|
title: String,
|
|
16
17
|
subtitle: String,
|
|
@@ -37,7 +38,10 @@ export const makeVStepperItemProps = propsFactory({
|
|
|
37
38
|
rules: {
|
|
38
39
|
type: Array,
|
|
39
40
|
default: () => []
|
|
40
|
-
}
|
|
41
|
+
}
|
|
42
|
+
}, 'StepperItem');
|
|
43
|
+
export const makeVStepperItemProps = propsFactory({
|
|
44
|
+
...makeStepperItemProps(),
|
|
41
45
|
...makeGroupItemProps()
|
|
42
46
|
}, 'VStepperItem');
|
|
43
47
|
export const VStepperItem = genericComponent()({
|
|
@@ -56,13 +60,14 @@ export const VStepperItem = genericComponent()({
|
|
|
56
60
|
const group = useGroupItem(props, VStepperSymbol, true);
|
|
57
61
|
const step = computed(() => group?.value.value ?? props.value);
|
|
58
62
|
const isValid = computed(() => props.rules.every(handler => handler() === true));
|
|
63
|
+
const isClickable = computed(() => !props.disabled && props.editable);
|
|
59
64
|
const canEdit = computed(() => !props.disabled && props.editable);
|
|
60
65
|
const hasError = computed(() => props.error || !isValid.value);
|
|
61
66
|
const hasCompleted = computed(() => props.complete || props.rules.length > 0 && isValid.value);
|
|
62
67
|
const icon = computed(() => {
|
|
63
68
|
if (hasError.value) return props.errorIcon;
|
|
64
69
|
if (hasCompleted.value) return props.completeIcon;
|
|
65
|
-
if (props.editable) return props.editIcon;
|
|
70
|
+
if (group.isSelected.value && props.editable) return props.editIcon;
|
|
66
71
|
return props.icon;
|
|
67
72
|
});
|
|
68
73
|
const slotProps = computed(() => ({
|
|
@@ -89,7 +94,7 @@ export const VStepperItem = genericComponent()({
|
|
|
89
94
|
}, group?.selectedClass.value],
|
|
90
95
|
"disabled": !props.editable,
|
|
91
96
|
"onClick": onClick
|
|
92
|
-
}, [_createVNode(VAvatar, {
|
|
97
|
+
}, [isClickable.value && genOverlays(true, 'v-stepper-item'), _createVNode(VAvatar, {
|
|
93
98
|
"key": "stepper-avatar",
|
|
94
99
|
"class": "v-stepper-item__avatar",
|
|
95
100
|
"color": hasColor ? props.color : undefined,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VStepperItem.mjs","names":["VAvatar","VIcon","makeGroupItemProps","useGroupItem","Ripple","computed","VStepperSymbol","genericComponent","propsFactory","useRender","makeVStepperItemProps","color","String","title","subtitle","complete","Boolean","completeIcon","type","default","editable","editIcon","error","errorIcon","icon","ripple","Object","rules","Array","VStepperItem","name","directives","props","emits","val","setup","_ref","slots","group","step","value","isValid","every","handler","canEdit","disabled","hasError","hasCompleted","length","slotProps","hasColor","isSelected","hasTitle","hasSubtitle","onClick","toggle","_withDirectives","_createVNode","selectedClass","undefined","_resolveDirective"],"sources":["../../../src/components/VStepper/VStepperItem.tsx"],"sourcesContent":["// Styles\nimport './VStepperItem.sass'\n\n// Components\nimport { VAvatar } from '@/components/VAvatar/VAvatar'\nimport { VIcon } from '@/components/VIcon/VIcon'\n\n// Composables\nimport { makeGroupItemProps, useGroupItem } from '@/composables/group'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Utilities\nimport { computed } from 'vue'\nimport { VStepperSymbol } from './VStepper'\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { RippleDirectiveBinding } from '@/directives/ripple'\n\nexport type StepperItemSlot = {\n canEdit: boolean\n hasError: boolean\n hasCompleted: boolean\n title?: string | number\n subtitle?: string | number\n step: any\n}\n\nexport type VStepperItemSlots = {\n default: StepperItemSlot\n icon: StepperItemSlot\n title: StepperItemSlot\n subtitle: StepperItemSlot\n}\n\nexport type ValidationRule = () => string | boolean\n\nexport const makeVStepperItemProps = propsFactory({\n color: String,\n title: String,\n subtitle: String,\n complete: Boolean,\n completeIcon: {\n type: String,\n default: '$complete',\n },\n editable: Boolean,\n editIcon: {\n type: String,\n default: '$edit',\n },\n error: Boolean,\n errorIcon: {\n type: String,\n default: '$error',\n },\n icon: String,\n ripple: {\n type: [Boolean, Object] as PropType<RippleDirectiveBinding['value']>,\n default: true,\n },\n rules: {\n type: Array as PropType<readonly ValidationRule[]>,\n default: () => ([]),\n },\n\n ...makeGroupItemProps(),\n}, 'VStepperItem')\n\nexport const VStepperItem = genericComponent<VStepperItemSlots>()({\n name: 'VStepperItem',\n\n directives: { Ripple },\n\n props: makeVStepperItemProps(),\n\n emits: {\n 'group:selected': (val: { value: boolean }) => true,\n },\n\n setup (props, { slots }) {\n const group = useGroupItem(props, VStepperSymbol, true)\n const step = computed(() => group?.value.value ?? props.value)\n const isValid = computed(() => props.rules.every(handler => handler() === true))\n const canEdit = computed(() => !props.disabled && props.editable)\n const hasError = computed(() => props.error || !isValid.value)\n const hasCompleted = computed(() => props.complete || (props.rules.length > 0 && isValid.value))\n const icon = computed(() => {\n if (hasError.value) return props.errorIcon\n if (hasCompleted.value) return props.completeIcon\n if (props.editable) return props.editIcon\n\n return props.icon\n })\n const slotProps = computed(() => ({\n canEdit: canEdit.value,\n hasError: hasError.value,\n hasCompleted: hasCompleted.value,\n title: props.title,\n subtitle: props.subtitle,\n step: step.value,\n value: props.value,\n }))\n\n useRender(() => {\n const hasColor = (\n !group ||\n group.isSelected.value ||\n hasCompleted.value ||\n canEdit.value\n ) && (\n !hasError.value &&\n !props.disabled\n )\n const hasTitle = !!(props.title != null || slots.title)\n const hasSubtitle = !!(props.subtitle != null || slots.subtitle)\n\n function onClick () {\n group?.toggle()\n }\n\n return (\n <button\n class={[\n 'v-stepper-item',\n {\n 'v-stepper-item--complete': hasCompleted.value,\n 'v-stepper-item--disabled': props.disabled,\n 'v-stepper-item--error': hasError.value,\n },\n group?.selectedClass.value,\n ]}\n disabled={ !props.editable }\n v-ripple={[\n props.ripple && props.editable,\n null,\n null,\n ]}\n onClick={ onClick }\n >\n <VAvatar\n key=\"stepper-avatar\"\n class=\"v-stepper-item__avatar\"\n color={ hasColor ? props.color : undefined }\n size={ 24 }\n >\n { slots.icon?.(slotProps.value) ?? (\n icon.value ? (\n <VIcon icon={ icon.value }></VIcon>\n ) : step.value\n )}\n </VAvatar>\n\n <div class=\"v-stepper-item__content\">\n { hasTitle && (\n <div\n key=\"title\"\n class=\"v-stepper-item__title\"\n >\n { slots.title?.(slotProps.value) ?? props.title }\n </div>\n )}\n\n { hasSubtitle && (\n <div\n key=\"subtitle\"\n class=\"v-stepper-item__subtitle\"\n >\n { slots.subtitle?.(slotProps.value) ?? props.subtitle }\n </div>\n )}\n\n { slots.default?.(slotProps.value) }\n </div>\n </button>\n )\n })\n return {}\n },\n})\n\nexport type VStepperItem = InstanceType<typeof VStepperItem>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,OAAO;AAAA,SACPC,KAAK,8BAEd;AAAA,SACSC,kBAAkB,EAAEC,YAAY,uCAEzC;AAAA,SACSC,MAAM,6CAEf;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,cAAc;AAAA,SACdC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,gCAElD;AAsBA,OAAO,MAAMC,qBAAqB,GAAGF,YAAY,CAAC;EAChDG,KAAK,EAAEC,MAAM;EACbC,KAAK,EAAED,MAAM;EACbE,QAAQ,EAAEF,MAAM;EAChBG,QAAQ,EAAEC,OAAO;EACjBC,YAAY,EAAE;IACZC,IAAI,EAAEN,MAAM;IACZO,OAAO,EAAE;EACX,CAAC;EACDC,QAAQ,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AAK,CAACZ,QAAQ,EAC9B,IAAI;IAyCZ,CAAC,CAAC;IACF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"VStepperItem.mjs","names":["VAvatar","VIcon","makeGroupItemProps","useGroupItem","genOverlays","Ripple","computed","VStepperSymbol","genericComponent","propsFactory","useRender","makeStepperItemProps","color","String","title","subtitle","complete","Boolean","completeIcon","type","default","editable","editIcon","error","errorIcon","icon","ripple","Object","rules","Array","makeVStepperItemProps","VStepperItem","name","directives","props","emits","val","setup","_ref","slots","group","step","value","isValid","every","handler","isClickable","disabled","canEdit","hasError","hasCompleted","length","isSelected","slotProps","hasColor","hasTitle","hasSubtitle","onClick","toggle","_withDirectives","_createVNode","selectedClass","undefined","_resolveDirective"],"sources":["../../../src/components/VStepper/VStepperItem.tsx"],"sourcesContent":["// Styles\nimport './VStepperItem.sass'\n\n// Components\nimport { VAvatar } from '@/components/VAvatar/VAvatar'\nimport { VIcon } from '@/components/VIcon/VIcon'\n\n// Composables\nimport { makeGroupItemProps, useGroupItem } from '@/composables/group'\nimport { genOverlays } from '@/composables/variant'\n\n// Directives\nimport { Ripple } from '@/directives/ripple'\n\n// Utilities\nimport { computed } from 'vue'\nimport { VStepperSymbol } from './VStepper'\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\nimport type { RippleDirectiveBinding } from '@/directives/ripple'\n\nexport type StepperItem = string | Record<string, any>\n\nexport type StepperItemSlot = {\n canEdit: boolean\n hasError: boolean\n hasCompleted: boolean\n title?: string | number\n subtitle?: string | number\n step: any\n}\n\nexport type VStepperItemSlots = {\n default: StepperItemSlot\n icon: StepperItemSlot\n title: StepperItemSlot\n subtitle: StepperItemSlot\n}\n\nexport type ValidationRule = () => string | boolean\n\nexport const makeStepperItemProps = propsFactory({\n color: String,\n title: String,\n subtitle: String,\n complete: Boolean,\n completeIcon: {\n type: String,\n default: '$complete',\n },\n editable: Boolean,\n editIcon: {\n type: String,\n default: '$edit',\n },\n error: Boolean,\n errorIcon: {\n type: String,\n default: '$error',\n },\n icon: String,\n ripple: {\n type: [Boolean, Object] as PropType<RippleDirectiveBinding['value']>,\n default: true,\n },\n rules: {\n type: Array as PropType<readonly ValidationRule[]>,\n default: () => ([]),\n },\n}, 'StepperItem')\n\nexport const makeVStepperItemProps = propsFactory({\n ...makeStepperItemProps(),\n ...makeGroupItemProps(),\n}, 'VStepperItem')\n\nexport const VStepperItem = genericComponent<VStepperItemSlots>()({\n name: 'VStepperItem',\n\n directives: { Ripple },\n\n props: makeVStepperItemProps(),\n\n emits: {\n 'group:selected': (val: { value: boolean }) => true,\n },\n\n setup (props, { slots }) {\n const group = useGroupItem(props, VStepperSymbol, true)\n const step = computed(() => group?.value.value ?? props.value)\n const isValid = computed(() => props.rules.every(handler => handler() === true))\n const isClickable = computed(() => !props.disabled && props.editable)\n const canEdit = computed(() => !props.disabled && props.editable)\n const hasError = computed(() => props.error || !isValid.value)\n const hasCompleted = computed(() => props.complete || (props.rules.length > 0 && isValid.value))\n const icon = computed(() => {\n if (hasError.value) return props.errorIcon\n if (hasCompleted.value) return props.completeIcon\n if (group.isSelected.value && props.editable) return props.editIcon\n\n return props.icon\n })\n const slotProps = computed(() => ({\n canEdit: canEdit.value,\n hasError: hasError.value,\n hasCompleted: hasCompleted.value,\n title: props.title,\n subtitle: props.subtitle,\n step: step.value,\n value: props.value,\n }))\n\n useRender(() => {\n const hasColor = (\n !group ||\n group.isSelected.value ||\n hasCompleted.value ||\n canEdit.value\n ) && (\n !hasError.value &&\n !props.disabled\n )\n const hasTitle = !!(props.title != null || slots.title)\n const hasSubtitle = !!(props.subtitle != null || slots.subtitle)\n\n function onClick () {\n group?.toggle()\n }\n\n return (\n <button\n class={[\n 'v-stepper-item',\n {\n 'v-stepper-item--complete': hasCompleted.value,\n 'v-stepper-item--disabled': props.disabled,\n 'v-stepper-item--error': hasError.value,\n },\n group?.selectedClass.value,\n ]}\n disabled={ !props.editable }\n v-ripple={[\n props.ripple && props.editable,\n null,\n null,\n ]}\n onClick={ onClick }\n >\n { isClickable.value && genOverlays(true, 'v-stepper-item') }\n\n <VAvatar\n key=\"stepper-avatar\"\n class=\"v-stepper-item__avatar\"\n color={ hasColor ? props.color : undefined }\n size={ 24 }\n >\n { slots.icon?.(slotProps.value) ?? (\n icon.value ? (\n <VIcon icon={ icon.value }></VIcon>\n ) : step.value\n )}\n </VAvatar>\n\n <div class=\"v-stepper-item__content\">\n { hasTitle && (\n <div\n key=\"title\"\n class=\"v-stepper-item__title\"\n >\n { slots.title?.(slotProps.value) ?? props.title }\n </div>\n )}\n\n { hasSubtitle && (\n <div\n key=\"subtitle\"\n class=\"v-stepper-item__subtitle\"\n >\n { slots.subtitle?.(slotProps.value) ?? props.subtitle }\n </div>\n )}\n\n { slots.default?.(slotProps.value) }\n </div>\n </button>\n )\n })\n return {}\n },\n})\n\nexport type VStepperItem = InstanceType<typeof VStepperItem>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,OAAO;AAAA,SACPC,KAAK,8BAEd;AAAA,SACSC,kBAAkB,EAAEC,YAAY;AAAA,SAChCC,WAAW,yCAEpB;AAAA,SACSC,MAAM,6CAEf;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,cAAc;AAAA,SACdC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,gCAElD;AAwBA,OAAO,MAAMC,oBAAoB,GAAGF,YAAY,CAAC;EAC/CG,KAAK,EAAEC,MAAM;EACbC,KAAK,EAAED,MAAM;EACbE,QAAQ,EAAEF,MAAM;EAChBG,QAAQ,EAAEC,OAAO;EACjBC,YAAY,EAAE;IACZC,IAAI,EAAEN,MAAM;IACZO,OAAO,EAAE;EACX,CAAC;EACDC,QAAQ,EAAEJ,OAAO;EACjBK,QAAQ,EAAE;IACRH,IAAI,EAAEN,MAAM;IACZO,OAAO,EAAE;EACX,CAAC;EACDG,KAAK,EAAEN,OAAO;EACdO,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AAA,IAKPrB,KAAK,CAACxB,QAAQ,GAAGsC,SAAS,CAACX,KAAK,CAAC,IAAIR,KAAK,CAACnB,QAAQ,EAExD,EAECwB,KAAK,CAACnB,OAAO,GAAGiC,SAAS,CAACX,KAAK,CAAC,QAAAqB,iBAAA,YAxClC7B,KAAK,CAACR,MAAM,IAAIQ,KAAK,CAACb,QAAQ,EAC9B,IAAI;IA2CZ,CAAC,CAAC;IACF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -8,12 +8,19 @@
|
|
|
8
8
|
align-self: stretch
|
|
9
9
|
display: inline-flex
|
|
10
10
|
flex: none
|
|
11
|
+
outline: none
|
|
11
12
|
opacity: $stepper-item-opacity
|
|
12
13
|
padding: $stepper-item-padding
|
|
14
|
+
position: relative
|
|
13
15
|
transition-duration: $stepper-item-transition-duration
|
|
14
16
|
transition-property: $stepper-item-transition-property
|
|
15
17
|
transition-timing-function: $stepper-item-transition-timing-function
|
|
16
18
|
|
|
19
|
+
@include tools.states('.v-stepper-item__overlay')
|
|
20
|
+
|
|
21
|
+
.v-stepper--non-linear &
|
|
22
|
+
opacity: var(--v-high-emphasis-opacity)
|
|
23
|
+
|
|
17
24
|
&--selected
|
|
18
25
|
opacity: 1
|
|
19
26
|
|
|
@@ -71,3 +78,14 @@
|
|
|
71
78
|
|
|
72
79
|
.v-stepper--mobile &
|
|
73
80
|
display: none
|
|
81
|
+
|
|
82
|
+
.v-stepper-item__overlay
|
|
83
|
+
background-color: currentColor
|
|
84
|
+
border-radius: inherit
|
|
85
|
+
opacity: 0
|
|
86
|
+
transition: opacity .2s ease-in-out
|
|
87
|
+
|
|
88
|
+
.v-stepper-item__overlay,
|
|
89
|
+
.v-stepper-item__underlay
|
|
90
|
+
@include tools.absolute()
|
|
91
|
+
pointer-events: none
|
|
@@ -41,7 +41,8 @@ export const VStepperWindow = genericComponent()({
|
|
|
41
41
|
}, windowProps, {
|
|
42
42
|
"modelValue": model.value,
|
|
43
43
|
"onUpdate:modelValue": $event => model.value = $event,
|
|
44
|
-
"class":
|
|
44
|
+
"class": ['v-stepper-window', props.class],
|
|
45
|
+
"style": props.style,
|
|
45
46
|
"mandatory": false,
|
|
46
47
|
"touch": false
|
|
47
48
|
}), slots);
|