@vuetify/nightly 3.3.10-master.2023-08-01 → 3.3.11-dev.2023-08-07
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 +18 -10
- package/dist/_component-variables-labs.sass +3 -1
- package/dist/json/attributes.json +244 -8
- package/dist/json/importMap-labs.json +28 -0
- package/dist/json/importMap.json +8 -8
- package/dist/json/tags.json +91 -0
- package/dist/json/web-types.json +793 -9
- package/dist/vuetify-labs.css +1403 -200
- package/dist/vuetify-labs.d.ts +2962 -356
- package/dist/vuetify-labs.esm.js +712 -48
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +712 -48
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1055 -11
- package/dist/vuetify.d.ts +232 -83
- package/dist/vuetify.esm.js +131 -47
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +131 -47
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +774 -767
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs +11 -8
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +12 -6
- package/lib/components/VAvatar/VAvatar.mjs +2 -1
- package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
- package/lib/components/VAvatar/index.d.mts +6 -0
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +9 -4
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/index.d.mts +28 -2
- package/lib/components/VCarousel/index.d.mts +24 -10
- package/lib/components/VCheckbox/index.d.mts +12 -0
- package/lib/components/VCombobox/VCombobox.mjs +9 -3
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +12 -6
- package/lib/components/VDialog/VDialog.css +15 -6
- package/lib/components/VDialog/VDialog.sass +41 -35
- package/lib/components/VField/VField.css +6 -2
- package/lib/components/VField/VField.sass +6 -2
- package/lib/components/VField/index.d.mts +4 -4
- package/lib/components/VFileInput/index.d.mts +4 -4
- package/lib/components/VImg/VImg.mjs +7 -1
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/index.d.mts +12 -0
- package/lib/components/VList/index.d.mts +12 -12
- package/lib/components/VMenu/VMenu.mjs +29 -4
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VRadio/index.d.mts +6 -0
- package/lib/components/VRangeSlider/VRangeSlider.mjs +4 -2
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/index.d.mts +14 -0
- package/lib/components/VRating/VRating.mjs +4 -2
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.mjs +10 -3
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +12 -6
- package/lib/components/VSelectionControl/VSelectionControl.mjs +3 -1
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.mts +6 -0
- package/lib/components/VSlider/VSlider.mjs +2 -1
- package/lib/components/VSlider/VSlider.mjs.map +1 -1
- package/lib/components/VSlider/index.d.mts +14 -0
- package/lib/components/VSlider/slider.mjs +5 -1
- package/lib/components/VSlider/slider.mjs.map +1 -1
- package/lib/components/VSwitch/VSwitch.css +3 -0
- package/lib/components/VSwitch/VSwitch.sass +3 -0
- package/lib/components/VSwitch/_variables.scss +1 -0
- package/lib/components/VSwitch/index.d.mts +6 -0
- package/lib/components/VTable/VTable.css +2 -0
- package/lib/components/VTable/VTable.sass +2 -0
- package/lib/components/VTextField/index.d.mts +16 -16
- package/lib/components/VTextarea/index.d.mts +4 -4
- package/lib/components/VTimeline/VTimeline.css +2 -2
- package/lib/components/VTimeline/VTimeline.sass +2 -2
- package/lib/components/VWindow/VWindow.mjs +1 -0
- package/lib/components/VWindow/VWindow.mjs.map +1 -1
- package/lib/components/VWindow/VWindowItem.mjs +3 -1
- package/lib/components/VWindow/VWindowItem.mjs.map +1 -1
- package/lib/components/VWindow/index.d.mts +29 -11
- package/lib/components/index.d.mts +223 -81
- package/lib/composables/group.mjs +1 -1
- package/lib/composables/group.mjs.map +1 -1
- package/lib/composables/theme.mjs +12 -6
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.mts +9 -2
- package/lib/labs/VDateInput/index.d.mts +4 -4
- package/lib/labs/VDateRangePicker/VDateRangePickerHeader.mjs +2 -2
- package/lib/labs/VDateRangePicker/VDateRangePickerHeader.mjs.map +1 -1
- package/lib/labs/VInfiniteScroll/VInfiniteScroll.mjs +0 -1
- package/lib/labs/VInfiniteScroll/VInfiniteScroll.mjs.map +1 -1
- package/lib/labs/VOtpInput/VOtpInput.css +53 -0
- package/lib/labs/VOtpInput/VOtpInput.mjs +215 -0
- package/lib/labs/VOtpInput/VOtpInput.mjs.map +1 -0
- package/lib/labs/VOtpInput/VOtpInput.sass +55 -0
- package/lib/labs/VOtpInput/_variables.scss +2 -0
- package/lib/labs/VOtpInput/index.d.mts +459 -0
- package/lib/labs/VOtpInput/index.mjs +2 -0
- package/lib/labs/VOtpInput/index.mjs.map +1 -0
- package/lib/labs/VStepper/VStepper.css +42 -0
- package/lib/labs/VStepper/VStepper.mjs +150 -0
- package/lib/labs/VStepper/VStepper.mjs.map +1 -0
- package/lib/labs/VStepper/VStepper.sass +44 -0
- package/lib/labs/VStepper/VStepperActions.mjs +61 -0
- package/lib/labs/VStepper/VStepperActions.mjs.map +1 -0
- package/lib/labs/VStepper/VStepperHeader.mjs +4 -0
- package/lib/labs/VStepper/VStepperHeader.mjs.map +1 -0
- package/lib/labs/VStepper/VStepperItem.css +67 -0
- package/lib/labs/VStepper/VStepperItem.mjs +114 -0
- package/lib/labs/VStepper/VStepperItem.mjs.map +1 -0
- package/lib/labs/VStepper/VStepperItem.sass +71 -0
- package/lib/labs/VStepper/VStepperWindow.mjs +50 -0
- package/lib/labs/VStepper/VStepperWindow.mjs.map +1 -0
- package/lib/labs/VStepper/VStepperWindowItem.mjs +24 -0
- package/lib/labs/VStepper/VStepperWindowItem.mjs.map +1 -0
- package/lib/labs/VStepper/_variables.scss +4 -0
- package/lib/labs/VStepper/index.d.mts +2045 -0
- package/lib/labs/VStepper/index.mjs +7 -0
- package/lib/labs/VStepper/index.mjs.map +1 -0
- package/lib/labs/components.d.mts +2745 -267
- package/lib/labs/components.mjs +2 -0
- package/lib/labs/components.mjs.map +1 -1
- package/lib/locale/af.mjs +6 -1
- package/lib/locale/af.mjs.map +1 -1
- package/lib/locale/ar.mjs +6 -1
- package/lib/locale/ar.mjs.map +1 -1
- package/lib/locale/az.mjs +6 -1
- package/lib/locale/az.mjs.map +1 -1
- package/lib/locale/bg.mjs +6 -1
- package/lib/locale/bg.mjs.map +1 -1
- package/lib/locale/ca.mjs +6 -1
- package/lib/locale/ca.mjs.map +1 -1
- package/lib/locale/ckb.mjs +6 -1
- package/lib/locale/ckb.mjs.map +1 -1
- package/lib/locale/cs.mjs +6 -1
- package/lib/locale/cs.mjs.map +1 -1
- package/lib/locale/da.mjs +6 -1
- package/lib/locale/da.mjs.map +1 -1
- package/lib/locale/de.mjs +6 -1
- package/lib/locale/de.mjs.map +1 -1
- package/lib/locale/el.mjs +6 -1
- package/lib/locale/el.mjs.map +1 -1
- package/lib/locale/en.mjs +6 -1
- package/lib/locale/en.mjs.map +1 -1
- package/lib/locale/es.mjs +6 -1
- package/lib/locale/es.mjs.map +1 -1
- package/lib/locale/et.mjs +6 -1
- package/lib/locale/et.mjs.map +1 -1
- package/lib/locale/fa.mjs +6 -1
- package/lib/locale/fa.mjs.map +1 -1
- package/lib/locale/fi.mjs +6 -1
- package/lib/locale/fi.mjs.map +1 -1
- package/lib/locale/fr.mjs +6 -1
- package/lib/locale/fr.mjs.map +1 -1
- package/lib/locale/he.mjs +6 -1
- package/lib/locale/he.mjs.map +1 -1
- package/lib/locale/hr.mjs +6 -1
- package/lib/locale/hr.mjs.map +1 -1
- package/lib/locale/hu.mjs +6 -1
- package/lib/locale/hu.mjs.map +1 -1
- package/lib/locale/id.mjs +6 -1
- package/lib/locale/id.mjs.map +1 -1
- package/lib/locale/index.d.mts +210 -0
- package/lib/locale/it.mjs +6 -1
- package/lib/locale/it.mjs.map +1 -1
- package/lib/locale/ja.mjs +6 -1
- package/lib/locale/ja.mjs.map +1 -1
- package/lib/locale/ko.mjs +6 -1
- package/lib/locale/ko.mjs.map +1 -1
- package/lib/locale/lt.mjs +6 -1
- package/lib/locale/lt.mjs.map +1 -1
- package/lib/locale/lv.mjs +6 -1
- package/lib/locale/lv.mjs.map +1 -1
- package/lib/locale/nl.mjs +6 -1
- package/lib/locale/nl.mjs.map +1 -1
- package/lib/locale/no.mjs +6 -1
- package/lib/locale/no.mjs.map +1 -1
- package/lib/locale/pl.mjs +6 -1
- package/lib/locale/pl.mjs.map +1 -1
- package/lib/locale/pt.mjs +6 -1
- package/lib/locale/pt.mjs.map +1 -1
- package/lib/locale/ro.mjs +23 -18
- package/lib/locale/ro.mjs.map +1 -1
- package/lib/locale/ru.mjs +6 -1
- package/lib/locale/ru.mjs.map +1 -1
- package/lib/locale/sk.mjs +6 -1
- package/lib/locale/sk.mjs.map +1 -1
- package/lib/locale/sl.mjs +6 -1
- package/lib/locale/sl.mjs.map +1 -1
- package/lib/locale/sr-Cyrl.mjs +6 -1
- package/lib/locale/sr-Cyrl.mjs.map +1 -1
- package/lib/locale/sr-Latn.mjs +6 -1
- package/lib/locale/sr-Latn.mjs.map +1 -1
- package/lib/locale/sv.mjs +6 -1
- package/lib/locale/sv.mjs.map +1 -1
- package/lib/locale/th.mjs +6 -1
- package/lib/locale/th.mjs.map +1 -1
- package/lib/locale/tr.mjs +6 -1
- package/lib/locale/tr.mjs.map +1 -1
- package/lib/locale/uk.mjs +6 -1
- package/lib/locale/uk.mjs.map +1 -1
- package/lib/locale/vi.mjs +6 -1
- package/lib/locale/vi.mjs.map +1 -1
- package/lib/locale/zh-Hans.mjs +6 -1
- package/lib/locale/zh-Hans.mjs.map +1 -1
- package/lib/locale/zh-Hant.mjs +6 -1
- package/lib/locale/zh-Hant.mjs.map +1 -1
- package/lib/styles/main.css +1026 -0
- package/lib/styles/settings/_utilities.scss +20 -0
- package/lib/util/helpers.mjs +20 -9
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +1 -1
package/dist/vuetify.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.3.
|
|
2
|
+
* Vuetify v3.3.11-dev.2023-08-07
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -411,12 +411,22 @@
|
|
|
411
411
|
}
|
|
412
412
|
}
|
|
413
413
|
function focusableChildren(el) {
|
|
414
|
-
|
|
414
|
+
let filterByTabIndex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
415
|
+
const targets = ['button', '[href]', 'input:not([type="hidden"])', 'select', 'textarea', '[tabindex]'].map(s => `${s}${filterByTabIndex ? ':not([tabindex="-1"])' : ''}:not([disabled])`).join(', ');
|
|
415
416
|
return [...el.querySelectorAll(targets)];
|
|
416
417
|
}
|
|
418
|
+
function getNextElement(elements, location, condition) {
|
|
419
|
+
let _el;
|
|
420
|
+
let idx = elements.indexOf(document.activeElement);
|
|
421
|
+
const inc = location === 'next' ? 1 : -1;
|
|
422
|
+
do {
|
|
423
|
+
idx += inc;
|
|
424
|
+
_el = elements[idx];
|
|
425
|
+
} while ((!_el || _el.offsetParent == null || !(condition?.(_el) ?? true)) && idx < elements.length && idx >= 0);
|
|
426
|
+
return _el;
|
|
427
|
+
}
|
|
417
428
|
function focusChild(el, location) {
|
|
418
429
|
const focusable = focusableChildren(el);
|
|
419
|
-
const idx = focusable.indexOf(document.activeElement);
|
|
420
430
|
if (!location) {
|
|
421
431
|
if (el === document.activeElement || !el.contains(document.activeElement)) {
|
|
422
432
|
focusable[0]?.focus();
|
|
@@ -425,14 +435,10 @@
|
|
|
425
435
|
focusable[0]?.focus();
|
|
426
436
|
} else if (location === 'last') {
|
|
427
437
|
focusable.at(-1)?.focus();
|
|
438
|
+
} else if (typeof location === 'number') {
|
|
439
|
+
focusable[location]?.focus();
|
|
428
440
|
} else {
|
|
429
|
-
|
|
430
|
-
let idxx = idx;
|
|
431
|
-
const inc = location === 'next' ? 1 : -1;
|
|
432
|
-
do {
|
|
433
|
-
idxx += inc;
|
|
434
|
-
_el = focusable[idxx];
|
|
435
|
-
} while ((!_el || _el.offsetParent == null) && idxx < focusable.length && idxx >= 0);
|
|
441
|
+
const _el = getNextElement(focusable, location);
|
|
436
442
|
if (_el) _el.focus();else focusChild(el, location === 'next' ? 'first' : 'last');
|
|
437
443
|
}
|
|
438
444
|
}
|
|
@@ -1695,7 +1701,8 @@
|
|
|
1695
1701
|
input: {
|
|
1696
1702
|
clear: 'Clear {0}',
|
|
1697
1703
|
prependAction: '{0} prepended action',
|
|
1698
|
-
appendAction: '{0} appended action'
|
|
1704
|
+
appendAction: '{0} appended action',
|
|
1705
|
+
otp: 'Please enter OTP character {0}'
|
|
1699
1706
|
},
|
|
1700
1707
|
fileInput: {
|
|
1701
1708
|
counter: '{0} files',
|
|
@@ -1716,6 +1723,10 @@
|
|
|
1716
1723
|
last: 'Last page'
|
|
1717
1724
|
}
|
|
1718
1725
|
},
|
|
1726
|
+
stepper: {
|
|
1727
|
+
next: 'Next',
|
|
1728
|
+
prev: 'Previous'
|
|
1729
|
+
},
|
|
1719
1730
|
rating: {
|
|
1720
1731
|
ariaLabel: {
|
|
1721
1732
|
item: 'Rating {0} of {1}'
|
|
@@ -2254,9 +2265,11 @@
|
|
|
2254
2265
|
if (head) {
|
|
2255
2266
|
if (head.push) {
|
|
2256
2267
|
const entry = head.push(getHead);
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2268
|
+
if (IN_BROWSER) {
|
|
2269
|
+
vue.watch(styles, () => {
|
|
2270
|
+
entry.patch(getHead);
|
|
2271
|
+
});
|
|
2272
|
+
}
|
|
2260
2273
|
} else {
|
|
2261
2274
|
if (IN_BROWSER) {
|
|
2262
2275
|
head.addHeadObjs(vue.computed(getHead));
|
|
@@ -2267,9 +2280,13 @@
|
|
|
2267
2280
|
}
|
|
2268
2281
|
} else {
|
|
2269
2282
|
let styleEl = IN_BROWSER ? document.getElementById('vuetify-theme-stylesheet') : null;
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2283
|
+
if (IN_BROWSER) {
|
|
2284
|
+
vue.watch(styles, updateStyles, {
|
|
2285
|
+
immediate: true
|
|
2286
|
+
});
|
|
2287
|
+
} else {
|
|
2288
|
+
updateStyles();
|
|
2289
|
+
}
|
|
2273
2290
|
function updateStyles() {
|
|
2274
2291
|
if (typeof document !== 'undefined' && !styleEl) {
|
|
2275
2292
|
const el = document.createElement('style');
|
|
@@ -2967,6 +2984,8 @@
|
|
|
2967
2984
|
type: [String, Object],
|
|
2968
2985
|
default: ''
|
|
2969
2986
|
},
|
|
2987
|
+
crossorigin: String,
|
|
2988
|
+
referrerpolicy: String,
|
|
2970
2989
|
srcset: String,
|
|
2971
2990
|
...makeVResponsiveProps(),
|
|
2972
2991
|
...makeComponentProps(),
|
|
@@ -3091,6 +3110,8 @@
|
|
|
3091
3110
|
"src": normalisedSrc.value.src,
|
|
3092
3111
|
"srcset": normalisedSrc.value.srcset,
|
|
3093
3112
|
"alt": props.alt,
|
|
3113
|
+
"crossorigin": props.crossorigin,
|
|
3114
|
+
"referrerpolicy": props.referrerpolicy,
|
|
3094
3115
|
"sizes": props.sizes,
|
|
3095
3116
|
"ref": image,
|
|
3096
3117
|
"onLoad": onLoad,
|
|
@@ -3112,7 +3133,9 @@
|
|
|
3112
3133
|
default: () => [normalisedSrc.value.lazySrc && state.value !== 'loaded' && vue.createVNode("img", {
|
|
3113
3134
|
"class": ['v-img__img', 'v-img__img--preload', containClasses.value],
|
|
3114
3135
|
"src": normalisedSrc.value.lazySrc,
|
|
3115
|
-
"alt": props.alt
|
|
3136
|
+
"alt": props.alt,
|
|
3137
|
+
"crossorigin": props.crossorigin,
|
|
3138
|
+
"referrerpolicy": props.referrerpolicy
|
|
3116
3139
|
}, null)]
|
|
3117
3140
|
});
|
|
3118
3141
|
const __placeholder = () => {
|
|
@@ -3874,7 +3897,7 @@
|
|
|
3874
3897
|
throw new Error(`[Vuetify] Could not find useGroup injection with symbol ${injectKey.description}`);
|
|
3875
3898
|
}
|
|
3876
3899
|
const value = vue.toRef(props, 'value');
|
|
3877
|
-
const disabled = vue.computed(() => group.disabled.value || props.disabled);
|
|
3900
|
+
const disabled = vue.computed(() => !!(group.disabled.value || props.disabled));
|
|
3878
3901
|
group.register({
|
|
3879
3902
|
id,
|
|
3880
3903
|
value,
|
|
@@ -5721,6 +5744,7 @@
|
|
|
5721
5744
|
|
|
5722
5745
|
const makeVSelectionControlProps = propsFactory({
|
|
5723
5746
|
label: String,
|
|
5747
|
+
baseColor: String,
|
|
5724
5748
|
trueValue: null,
|
|
5725
5749
|
falseValue: null,
|
|
5726
5750
|
value: null,
|
|
@@ -5759,7 +5783,8 @@
|
|
|
5759
5783
|
textColorClasses,
|
|
5760
5784
|
textColorStyles
|
|
5761
5785
|
} = useTextColor(vue.computed(() => {
|
|
5762
|
-
|
|
5786
|
+
if (props.error || props.disabled) return undefined;
|
|
5787
|
+
return model.value ? props.color : props.baseColor;
|
|
5763
5788
|
}));
|
|
5764
5789
|
const icon = vue.computed(() => model.value ? props.trueIcon : props.falseIcon);
|
|
5765
5790
|
return {
|
|
@@ -6539,6 +6564,7 @@
|
|
|
6539
6564
|
end: Boolean,
|
|
6540
6565
|
icon: IconValue,
|
|
6541
6566
|
image: String,
|
|
6567
|
+
text: String,
|
|
6542
6568
|
...makeComponentProps(),
|
|
6543
6569
|
...makeDensityProps(),
|
|
6544
6570
|
...makeRoundedProps(),
|
|
@@ -6589,7 +6615,7 @@
|
|
|
6589
6615
|
}, null) : props.icon ? vue.createVNode(VIcon, {
|
|
6590
6616
|
"key": "icon",
|
|
6591
6617
|
"icon": props.icon
|
|
6592
|
-
}, null) : slots.default?.(), genOverlays(false, 'v-avatar')]
|
|
6618
|
+
}, null) : slots.default?.() ?? props.text, genOverlays(false, 'v-avatar')]
|
|
6593
6619
|
}));
|
|
6594
6620
|
return {};
|
|
6595
6621
|
}
|
|
@@ -9827,8 +9853,30 @@
|
|
|
9827
9853
|
}, 40);
|
|
9828
9854
|
}
|
|
9829
9855
|
});
|
|
9856
|
+
function onFocusIn(e) {
|
|
9857
|
+
const before = e.relatedTarget;
|
|
9858
|
+
const after = e.target;
|
|
9859
|
+
if (before !== after && overlay.value?.contentEl &&
|
|
9860
|
+
// We're the topmost menu
|
|
9861
|
+
overlay.value?.globalTop &&
|
|
9862
|
+
// It isn't the document or the menu body
|
|
9863
|
+
![document, overlay.value.contentEl].includes(after) &&
|
|
9864
|
+
// It isn't inside the menu body
|
|
9865
|
+
!overlay.value.contentEl.contains(after)) {
|
|
9866
|
+
const focusable = focusableChildren(overlay.value.contentEl);
|
|
9867
|
+
focusable[0]?.focus();
|
|
9868
|
+
}
|
|
9869
|
+
}
|
|
9830
9870
|
vue.watch(isActive, val => {
|
|
9831
|
-
|
|
9871
|
+
if (val) {
|
|
9872
|
+
parent?.register();
|
|
9873
|
+
document.addEventListener('focusin', onFocusIn, {
|
|
9874
|
+
once: true
|
|
9875
|
+
});
|
|
9876
|
+
} else {
|
|
9877
|
+
parent?.unregister();
|
|
9878
|
+
document.removeEventListener('focusin', onFocusIn);
|
|
9879
|
+
}
|
|
9832
9880
|
});
|
|
9833
9881
|
function onClickOutside() {
|
|
9834
9882
|
parent?.closeParents();
|
|
@@ -9836,8 +9884,11 @@
|
|
|
9836
9884
|
function onKeydown(e) {
|
|
9837
9885
|
if (props.disabled) return;
|
|
9838
9886
|
if (e.key === 'Tab') {
|
|
9839
|
-
|
|
9840
|
-
|
|
9887
|
+
const nextElement = getNextElement(focusableChildren(overlay.value?.contentEl, false), e.shiftKey ? 'prev' : 'next', el => el.tabIndex >= 0);
|
|
9888
|
+
if (!nextElement) {
|
|
9889
|
+
isActive.value = false;
|
|
9890
|
+
overlay.value?.activatorEl?.focus();
|
|
9891
|
+
}
|
|
9841
9892
|
}
|
|
9842
9893
|
}
|
|
9843
9894
|
function onActivatorKeydown(e) {
|
|
@@ -10751,6 +10802,7 @@
|
|
|
10751
10802
|
type: Function,
|
|
10752
10803
|
default: deepEqual
|
|
10753
10804
|
},
|
|
10805
|
+
itemColor: String,
|
|
10754
10806
|
...makeItemsProps({
|
|
10755
10807
|
itemChildren: false
|
|
10756
10808
|
})
|
|
@@ -10803,7 +10855,12 @@
|
|
|
10803
10855
|
const form = useForm();
|
|
10804
10856
|
const selections = vue.computed(() => {
|
|
10805
10857
|
return model.value.map(v => {
|
|
10806
|
-
return items.value.find(item =>
|
|
10858
|
+
return items.value.find(item => {
|
|
10859
|
+
const itemRawValue = getPropertyFromItem(item.raw, props.itemValue);
|
|
10860
|
+
const modelRawValue = getPropertyFromItem(v.raw, props.itemValue);
|
|
10861
|
+
if (itemRawValue === undefined || modelRawValue === undefined) return false;
|
|
10862
|
+
return props.returnObject ? props.valueComparator(itemRawValue, modelRawValue) : props.valueComparator(item.value, v.value);
|
|
10863
|
+
}) || v;
|
|
10807
10864
|
});
|
|
10808
10865
|
});
|
|
10809
10866
|
const selected = vue.computed(() => selections.value.map(selection => selection.props.value));
|
|
@@ -10959,7 +11016,8 @@
|
|
|
10959
11016
|
"onKeydown": onListKeydown,
|
|
10960
11017
|
"onFocusin": onFocusin,
|
|
10961
11018
|
"onScrollPassive": onListScroll,
|
|
10962
|
-
"tabindex": "-1"
|
|
11019
|
+
"tabindex": "-1",
|
|
11020
|
+
"color": props.itemColor ?? props.color
|
|
10963
11021
|
}, {
|
|
10964
11022
|
default: () => [slots['prepend-item']?.(), !displayItems.value.length && !props.hideNoData && (slots['no-data']?.() ?? vue.createVNode(VListItem, {
|
|
10965
11023
|
"title": t(props.noDataText)
|
|
@@ -11254,7 +11312,12 @@
|
|
|
11254
11312
|
} = useFilter(props, items, () => isPristine.value ? '' : search.value);
|
|
11255
11313
|
const selections = vue.computed(() => {
|
|
11256
11314
|
return model.value.map(v => {
|
|
11257
|
-
return items.value.find(item =>
|
|
11315
|
+
return items.value.find(item => {
|
|
11316
|
+
const itemRawValue = getPropertyFromItem(item.raw, props.itemValue);
|
|
11317
|
+
const modelRawValue = getPropertyFromItem(v.raw, props.itemValue);
|
|
11318
|
+
if (itemRawValue === undefined || modelRawValue === undefined) return false;
|
|
11319
|
+
return props.returnObject ? props.valueComparator(itemRawValue, modelRawValue) : props.valueComparator(item.value, v.value);
|
|
11320
|
+
}) || v;
|
|
11258
11321
|
});
|
|
11259
11322
|
});
|
|
11260
11323
|
const displayItems = vue.computed(() => {
|
|
@@ -11306,11 +11369,8 @@
|
|
|
11306
11369
|
if (['Escape'].includes(e.key)) {
|
|
11307
11370
|
menu.value = false;
|
|
11308
11371
|
}
|
|
11309
|
-
if (['Enter', '
|
|
11310
|
-
|
|
11311
|
-
select(filteredItems.value[0]);
|
|
11312
|
-
}
|
|
11313
|
-
isPristine.value = true;
|
|
11372
|
+
if (highlightFirst.value && ['Enter', 'Tab'].includes(e.key)) {
|
|
11373
|
+
select(filteredItems.value[0]);
|
|
11314
11374
|
}
|
|
11315
11375
|
if (e.key === 'ArrowDown' && highlightFirst.value) {
|
|
11316
11376
|
listRef.value?.focus('next');
|
|
@@ -11476,7 +11536,8 @@
|
|
|
11476
11536
|
"onFocusin": onFocusin,
|
|
11477
11537
|
"onFocusout": onFocusout,
|
|
11478
11538
|
"onScrollPassive": onListScroll,
|
|
11479
|
-
"tabindex": "-1"
|
|
11539
|
+
"tabindex": "-1",
|
|
11540
|
+
"color": props.itemColor ?? props.color
|
|
11480
11541
|
}, {
|
|
11481
11542
|
default: () => [slots['prepend-item']?.(), !displayItems.value.length && !props.hideNoData && (slots['no-data']?.() ?? vue.createVNode(VListItem, {
|
|
11482
11543
|
"title": t(props.noDataText)
|
|
@@ -12097,12 +12158,17 @@
|
|
|
12097
12158
|
item,
|
|
12098
12159
|
raw
|
|
12099
12160
|
} = _ref2;
|
|
12100
|
-
return vue.createVNode(vue.Fragment, null, [
|
|
12101
|
-
|
|
12161
|
+
return vue.createVNode(vue.Fragment, null, [slots.item?.({
|
|
12162
|
+
item,
|
|
12163
|
+
index
|
|
12164
|
+
}) ?? vue.createVNode(VBreadcrumbsItem, vue.mergeProps({
|
|
12165
|
+
"key": index,
|
|
12102
12166
|
"disabled": index >= array.length - 1
|
|
12103
|
-
}, item
|
|
12167
|
+
}, typeof item === 'string' ? {
|
|
12168
|
+
title: item
|
|
12169
|
+
} : item), {
|
|
12104
12170
|
default: slots.title ? () => slots.title?.({
|
|
12105
|
-
item
|
|
12171
|
+
item,
|
|
12106
12172
|
index
|
|
12107
12173
|
}) : undefined
|
|
12108
12174
|
}), index < array.length - 1 && vue.createVNode(VBreadcrumbsDivider, null, {
|
|
@@ -12524,6 +12590,7 @@
|
|
|
12524
12590
|
},
|
|
12525
12591
|
// TODO: mandatory should probably not be exposed but do this for now
|
|
12526
12592
|
mandatory: {
|
|
12593
|
+
type: [Boolean, String],
|
|
12527
12594
|
default: 'force'
|
|
12528
12595
|
},
|
|
12529
12596
|
...makeComponentProps(),
|
|
@@ -12891,7 +12958,9 @@
|
|
|
12891
12958
|
"style": props.style
|
|
12892
12959
|
}, [hasContent.value && slots.default?.()]), [[vue.vShow, groupItem.isSelected.value]])]
|
|
12893
12960
|
}));
|
|
12894
|
-
return {
|
|
12961
|
+
return {
|
|
12962
|
+
groupItem
|
|
12963
|
+
};
|
|
12895
12964
|
}
|
|
12896
12965
|
});
|
|
12897
12966
|
|
|
@@ -13437,7 +13506,11 @@
|
|
|
13437
13506
|
...makeRoundedProps(),
|
|
13438
13507
|
...makeElevationProps({
|
|
13439
13508
|
elevation: 2
|
|
13440
|
-
})
|
|
13509
|
+
}),
|
|
13510
|
+
ripple: {
|
|
13511
|
+
type: Boolean,
|
|
13512
|
+
default: true
|
|
13513
|
+
}
|
|
13441
13514
|
}, 'Slider');
|
|
13442
13515
|
const useSteps = props => {
|
|
13443
13516
|
const min = vue.computed(() => parseFloat(props.min));
|
|
@@ -14044,7 +14117,8 @@
|
|
|
14044
14117
|
"position": trackStop.value,
|
|
14045
14118
|
"elevation": props.elevation,
|
|
14046
14119
|
"onFocus": focus,
|
|
14047
|
-
"onBlur": blur
|
|
14120
|
+
"onBlur": blur,
|
|
14121
|
+
"ripple": props.ripple
|
|
14048
14122
|
}, {
|
|
14049
14123
|
'thumb-label': slots['thumb-label']
|
|
14050
14124
|
})]);
|
|
@@ -14816,7 +14890,12 @@
|
|
|
14816
14890
|
} = useFilter(props, items, () => isPristine.value ? '' : search.value);
|
|
14817
14891
|
const selections = vue.computed(() => {
|
|
14818
14892
|
return model.value.map(v => {
|
|
14819
|
-
return items.value.find(item =>
|
|
14893
|
+
return items.value.find(item => {
|
|
14894
|
+
const itemRawValue = getPropertyFromItem(item.raw, props.itemValue);
|
|
14895
|
+
const modelRawValue = getPropertyFromItem(v.raw, props.itemValue);
|
|
14896
|
+
if (itemRawValue === undefined || modelRawValue === undefined) return false;
|
|
14897
|
+
return props.returnObject ? props.valueComparator(itemRawValue, modelRawValue) : props.valueComparator(item.value, v.value);
|
|
14898
|
+
}) || v;
|
|
14820
14899
|
});
|
|
14821
14900
|
});
|
|
14822
14901
|
const displayItems = vue.computed(() => {
|
|
@@ -15025,7 +15104,8 @@
|
|
|
15025
15104
|
"onFocusin": onFocusin,
|
|
15026
15105
|
"onFocusout": onFocusout,
|
|
15027
15106
|
"onScrollPassive": onListScroll,
|
|
15028
|
-
"tabindex": "-1"
|
|
15107
|
+
"tabindex": "-1",
|
|
15108
|
+
"color": props.itemColor ?? props.color
|
|
15029
15109
|
}, {
|
|
15030
15110
|
default: () => [slots['prepend-item']?.(), !displayItems.value.length && !props.hideNoData && (slots['no-data']?.() ?? vue.createVNode(VListItem, {
|
|
15031
15111
|
"title": t(props.noDataText)
|
|
@@ -17639,7 +17719,8 @@
|
|
|
17639
17719
|
},
|
|
17640
17720
|
"min": min.value,
|
|
17641
17721
|
"max": model.value[1],
|
|
17642
|
-
"position": trackStart.value
|
|
17722
|
+
"position": trackStart.value,
|
|
17723
|
+
"ripple": props.ripple
|
|
17643
17724
|
}, {
|
|
17644
17725
|
'thumb-label': slots['thumb-label']
|
|
17645
17726
|
}), vue.createVNode(VSliderThumb, {
|
|
@@ -17667,7 +17748,8 @@
|
|
|
17667
17748
|
},
|
|
17668
17749
|
"min": model.value[0],
|
|
17669
17750
|
"max": max.value,
|
|
17670
|
-
"position": trackStop.value
|
|
17751
|
+
"position": trackStop.value,
|
|
17752
|
+
"ripple": props.ripple
|
|
17671
17753
|
}, {
|
|
17672
17754
|
'thumb-label': slots['thumb-label']
|
|
17673
17755
|
})]);
|
|
@@ -17814,7 +17896,9 @@
|
|
|
17814
17896
|
value,
|
|
17815
17897
|
index,
|
|
17816
17898
|
rating: normalizedValue.value
|
|
17817
|
-
}) : vue.createVNode(VBtn,
|
|
17899
|
+
}) : vue.createVNode(VBtn, vue.mergeProps({
|
|
17900
|
+
"aria-label": t(props.itemAriaLabel, value, props.length)
|
|
17901
|
+
}, btnProps), null)]), vue.createVNode("input", {
|
|
17818
17902
|
"class": "v-rating__hidden",
|
|
17819
17903
|
"name": name.value,
|
|
17820
17904
|
"id": id,
|
|
@@ -20228,7 +20312,7 @@
|
|
|
20228
20312
|
date
|
|
20229
20313
|
};
|
|
20230
20314
|
}
|
|
20231
|
-
const version$1 = "3.3.
|
|
20315
|
+
const version$1 = "3.3.11-dev.2023-08-07";
|
|
20232
20316
|
createVuetify$1.version = version$1;
|
|
20233
20317
|
|
|
20234
20318
|
// Vue's inject() can only be used in setup
|
|
@@ -20253,7 +20337,7 @@
|
|
|
20253
20337
|
...options
|
|
20254
20338
|
});
|
|
20255
20339
|
};
|
|
20256
|
-
const version = "3.3.
|
|
20340
|
+
const version = "3.3.11-dev.2023-08-07";
|
|
20257
20341
|
createVuetify.version = version;
|
|
20258
20342
|
|
|
20259
20343
|
exports.components = components;
|