@vuetify/nightly 3.6.3-master.2024-05-06 → 3.6.4-master.2024-05-08
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 +2 -11
- package/dist/json/attributes.json +178 -38
- package/dist/json/importMap-labs.json +16 -16
- package/dist/json/importMap.json +96 -96
- package/dist/json/tags.json +36 -1
- package/dist/json/web-types.json +495 -85
- package/dist/vuetify-labs.css +5373 -5349
- package/dist/vuetify-labs.d.ts +1626 -1283
- package/dist/vuetify-labs.esm.js +150 -147
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +149 -146
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +2102 -2082
- package/dist/vuetify.d.ts +1195 -1208
- package/dist/vuetify.esm.js +97 -72
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +96 -71
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +981 -977
- package/dist/vuetify.min.js.map +1 -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/VBottomSheet/index.d.mts +42 -42
- package/lib/components/VCarousel/index.d.mts +6 -6
- 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.sass +2 -1
- package/lib/components/VDataTable/VDataTableHeaders.mjs +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.mjs.map +1 -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 +10 -5
- 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/VFileInput/VFileInput.mjs +1 -1
- 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.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/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/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.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/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/VTabs/VTabsWindow.mjs +2 -1
- package/lib/components/VTabs/VTabsWindow.mjs.map +1 -1
- package/lib/components/VTooltip/index.d.mts +126 -126
- package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs.map +1 -1
- package/lib/components/index.d.mts +1162 -1175
- package/lib/composables/component.mjs +1 -1
- package/lib/composables/component.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 +33 -33
- 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/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +88 -64
- package/lib/labs/components.d.mts +620 -235
- package/lib/util/helpers.mjs +16 -0
- package/lib/util/helpers.mjs.map +1 -1
- package/package.json +2 -2
package/dist/vuetify.esm.js
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.6.
|
2
|
+
* Vuetify v3.6.4-master.2024-05-08
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
6
6
|
|
7
|
-
import { Fragment, reactive, computed, watchEffect, toRefs, capitalize, isVNode, Comment,
|
7
|
+
import { shallowRef, Fragment, reactive, computed, watchEffect, toRefs, capitalize, isVNode, Comment, readonly, unref, warn, ref, provide, inject as inject$1, defineComponent as defineComponent$1, camelize, h, getCurrentInstance as getCurrentInstance$1, createVNode, mergeProps, onBeforeUnmount, watch, nextTick, onDeactivated, onActivated, onScopeDispose, effectScope, toRaw, Suspense, TransitionGroup, Transition, isRef, toRef, onBeforeMount, withDirectives, resolveDirective, vShow, onMounted, onUpdated, Text, resolveDynamicComponent, markRaw, Teleport, cloneVNode, createTextVNode, onUnmounted, onBeforeUpdate, withModifiers, toDisplayString, vModelText, resolveComponent, render } from 'vue';
|
8
8
|
|
9
9
|
const IN_BROWSER = typeof window !== 'undefined';
|
10
10
|
const SUPPORTS_INTERSECTION = IN_BROWSER && 'IntersectionObserver' in window;
|
@@ -480,6 +480,22 @@ function isClickInsideElement(event, targetDiv) {
|
|
480
480
|
const divBottom = divRect.bottom;
|
481
481
|
return mouseX >= divLeft && mouseX <= divRight && mouseY >= divTop && mouseY <= divBottom;
|
482
482
|
}
|
483
|
+
function templateRef() {
|
484
|
+
const el = shallowRef();
|
485
|
+
const fn = target => {
|
486
|
+
el.value = target;
|
487
|
+
};
|
488
|
+
Object.defineProperty(fn, 'value', {
|
489
|
+
enumerable: true,
|
490
|
+
get: () => el.value,
|
491
|
+
set: val => el.value = val
|
492
|
+
});
|
493
|
+
Object.defineProperty(fn, 'el', {
|
494
|
+
enumerable: true,
|
495
|
+
get: () => refElement(el.value)
|
496
|
+
});
|
497
|
+
return fn;
|
498
|
+
}
|
483
499
|
|
484
500
|
// Utilities
|
485
501
|
const block = ['top', 'bottom'];
|
@@ -1222,7 +1238,7 @@ function propsFactory(props, source) {
|
|
1222
1238
|
|
1223
1239
|
// Composables
|
1224
1240
|
const makeComponentProps = propsFactory({
|
1225
|
-
class: [String, Array],
|
1241
|
+
class: [String, Array, Object],
|
1226
1242
|
style: {
|
1227
1243
|
type: [String, Array, Object],
|
1228
1244
|
default: null
|
@@ -2005,7 +2021,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
2005
2021
|
|
2006
2022
|
function useResizeObserver(callback) {
|
2007
2023
|
let box = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'content';
|
2008
|
-
const resizeRef =
|
2024
|
+
const resizeRef = templateRef();
|
2009
2025
|
const contentRect = ref();
|
2010
2026
|
if (IN_BROWSER) {
|
2011
2027
|
const observer = new ResizeObserver(entries => {
|
@@ -2020,12 +2036,12 @@ function useResizeObserver(callback) {
|
|
2020
2036
|
onBeforeUnmount(() => {
|
2021
2037
|
observer.disconnect();
|
2022
2038
|
});
|
2023
|
-
watch(resizeRef, (newValue, oldValue) => {
|
2039
|
+
watch(() => resizeRef.el, (newValue, oldValue) => {
|
2024
2040
|
if (oldValue) {
|
2025
|
-
observer.unobserve(
|
2041
|
+
observer.unobserve(oldValue);
|
2026
2042
|
contentRect.value = undefined;
|
2027
2043
|
}
|
2028
|
-
if (newValue) observer.observe(
|
2044
|
+
if (newValue) observer.observe(newValue);
|
2029
2045
|
}, {
|
2030
2046
|
flush: 'post'
|
2031
2047
|
});
|
@@ -3441,7 +3457,7 @@ function useAspectStyles(props) {
|
|
3441
3457
|
}
|
3442
3458
|
const makeVResponsiveProps = propsFactory({
|
3443
3459
|
aspectRatio: [String, Number],
|
3444
|
-
contentClass:
|
3460
|
+
contentClass: null,
|
3445
3461
|
inline: Boolean,
|
3446
3462
|
...makeComponentProps(),
|
3447
3463
|
...makeDimensionProps()
|
@@ -7617,7 +7633,7 @@ const VSlideGroup = genericComponent()({
|
|
7617
7633
|
const goTo = useGoTo();
|
7618
7634
|
const goToOptions = computed(() => {
|
7619
7635
|
return {
|
7620
|
-
container: containerRef.
|
7636
|
+
container: containerRef.el,
|
7621
7637
|
duration: 200,
|
7622
7638
|
easing: 'easeOutQuart'
|
7623
7639
|
};
|
@@ -7641,9 +7657,9 @@ const VSlideGroup = genericComponent()({
|
|
7641
7657
|
contentSize.value = contentRect.value[sizeProperty];
|
7642
7658
|
isOverflowing.value = containerSize.value + 1 < contentSize.value;
|
7643
7659
|
}
|
7644
|
-
if (firstSelectedIndex.value >= 0 && contentRef.
|
7660
|
+
if (firstSelectedIndex.value >= 0 && contentRef.el) {
|
7645
7661
|
// TODO: Is this too naive? Should we store element references in group composable?
|
7646
|
-
const selectedElement = contentRef.
|
7662
|
+
const selectedElement = contentRef.el.children[lastSelectedIndex.value];
|
7647
7663
|
scrollToChildren(selectedElement, props.centerActive);
|
7648
7664
|
}
|
7649
7665
|
});
|
@@ -7654,13 +7670,13 @@ const VSlideGroup = genericComponent()({
|
|
7654
7670
|
let target = 0;
|
7655
7671
|
if (center) {
|
7656
7672
|
target = calculateCenteredTarget({
|
7657
|
-
containerElement: containerRef.
|
7673
|
+
containerElement: containerRef.el,
|
7658
7674
|
isHorizontal: isHorizontal.value,
|
7659
7675
|
selectedElement: children
|
7660
7676
|
});
|
7661
7677
|
} else {
|
7662
7678
|
target = calculateUpdatedTarget({
|
7663
|
-
containerElement: containerRef.
|
7679
|
+
containerElement: containerRef.el,
|
7664
7680
|
isHorizontal: isHorizontal.value,
|
7665
7681
|
isRtl: isRtl.value,
|
7666
7682
|
selectedElement: children
|
@@ -7669,18 +7685,18 @@ const VSlideGroup = genericComponent()({
|
|
7669
7685
|
scrollToPosition(target);
|
7670
7686
|
}
|
7671
7687
|
function scrollToPosition(newPosition) {
|
7672
|
-
if (!IN_BROWSER || !containerRef.
|
7673
|
-
const offsetSize = getOffsetSize(isHorizontal.value, containerRef.
|
7674
|
-
const scrollPosition = getScrollPosition(isHorizontal.value, isRtl.value, containerRef.
|
7675
|
-
const scrollSize = getScrollSize(isHorizontal.value, containerRef.
|
7688
|
+
if (!IN_BROWSER || !containerRef.el) return;
|
7689
|
+
const offsetSize = getOffsetSize(isHorizontal.value, containerRef.el);
|
7690
|
+
const scrollPosition = getScrollPosition(isHorizontal.value, isRtl.value, containerRef.el);
|
7691
|
+
const scrollSize = getScrollSize(isHorizontal.value, containerRef.el);
|
7676
7692
|
if (scrollSize <= offsetSize ||
|
7677
7693
|
// Prevent scrolling by only a couple of pixels, which doesn't look smooth
|
7678
7694
|
Math.abs(newPosition - scrollPosition) < 16) return;
|
7679
|
-
if (isHorizontal.value && isRtl.value && containerRef.
|
7695
|
+
if (isHorizontal.value && isRtl.value && containerRef.el) {
|
7680
7696
|
const {
|
7681
7697
|
scrollWidth,
|
7682
7698
|
offsetWidth: containerWidth
|
7683
|
-
} = containerRef.
|
7699
|
+
} = containerRef.el;
|
7684
7700
|
newPosition = scrollWidth - containerWidth - newPosition;
|
7685
7701
|
}
|
7686
7702
|
if (isHorizontal.value) {
|
@@ -7698,12 +7714,12 @@ const VSlideGroup = genericComponent()({
|
|
7698
7714
|
}
|
7699
7715
|
function onFocusin(e) {
|
7700
7716
|
isFocused.value = true;
|
7701
|
-
if (!isOverflowing.value || !contentRef.
|
7717
|
+
if (!isOverflowing.value || !contentRef.el) return;
|
7702
7718
|
|
7703
7719
|
// Focused element is likely to be the root of an item, so a
|
7704
7720
|
// breadth-first search will probably find it in the first iteration
|
7705
7721
|
for (const el of e.composedPath()) {
|
7706
|
-
for (const item of contentRef.
|
7722
|
+
for (const item of contentRef.el.children) {
|
7707
7723
|
if (item === el) {
|
7708
7724
|
scrollToChildren(item);
|
7709
7725
|
return;
|
@@ -7718,14 +7734,14 @@ const VSlideGroup = genericComponent()({
|
|
7718
7734
|
// Affix clicks produce onFocus that we have to ignore to avoid extra scrollToChildren
|
7719
7735
|
let ignoreFocusEvent = false;
|
7720
7736
|
function onFocus(e) {
|
7721
|
-
if (!ignoreFocusEvent && !isFocused.value && !(e.relatedTarget && contentRef.
|
7737
|
+
if (!ignoreFocusEvent && !isFocused.value && !(e.relatedTarget && contentRef.el?.contains(e.relatedTarget))) focus();
|
7722
7738
|
ignoreFocusEvent = false;
|
7723
7739
|
}
|
7724
7740
|
function onFocusAffixes() {
|
7725
7741
|
ignoreFocusEvent = true;
|
7726
7742
|
}
|
7727
7743
|
function onKeydown(e) {
|
7728
|
-
if (!contentRef.
|
7744
|
+
if (!contentRef.el) return;
|
7729
7745
|
function toFocus(location) {
|
7730
7746
|
e.preventDefault();
|
7731
7747
|
focus(location);
|
@@ -7750,21 +7766,21 @@ const VSlideGroup = genericComponent()({
|
|
7750
7766
|
}
|
7751
7767
|
}
|
7752
7768
|
function focus(location) {
|
7753
|
-
if (!contentRef.
|
7769
|
+
if (!contentRef.el) return;
|
7754
7770
|
let el;
|
7755
7771
|
if (!location) {
|
7756
|
-
const focusable = focusableChildren(contentRef.
|
7772
|
+
const focusable = focusableChildren(contentRef.el);
|
7757
7773
|
el = focusable[0];
|
7758
7774
|
} else if (location === 'next') {
|
7759
|
-
el = contentRef.
|
7775
|
+
el = contentRef.el.querySelector(':focus')?.nextElementSibling;
|
7760
7776
|
if (!el) return focus('first');
|
7761
7777
|
} else if (location === 'prev') {
|
7762
|
-
el = contentRef.
|
7778
|
+
el = contentRef.el.querySelector(':focus')?.previousElementSibling;
|
7763
7779
|
if (!el) return focus('last');
|
7764
7780
|
} else if (location === 'first') {
|
7765
|
-
el = contentRef.
|
7781
|
+
el = contentRef.el.firstElementChild;
|
7766
7782
|
} else if (location === 'last') {
|
7767
|
-
el = contentRef.
|
7783
|
+
el = contentRef.el.lastElementChild;
|
7768
7784
|
}
|
7769
7785
|
if (el) {
|
7770
7786
|
el.focus({
|
@@ -7778,11 +7794,11 @@ const VSlideGroup = genericComponent()({
|
|
7778
7794
|
let newPosition = scrollOffset.value + offsetStep;
|
7779
7795
|
|
7780
7796
|
// TODO: improve it
|
7781
|
-
if (isHorizontal.value && isRtl.value && containerRef.
|
7797
|
+
if (isHorizontal.value && isRtl.value && containerRef.el) {
|
7782
7798
|
const {
|
7783
7799
|
scrollWidth,
|
7784
7800
|
offsetWidth: containerWidth
|
7785
|
-
} = containerRef.
|
7801
|
+
} = containerRef.el;
|
7786
7802
|
newPosition += scrollWidth - containerWidth;
|
7787
7803
|
}
|
7788
7804
|
scrollToPosition(newPosition);
|
@@ -7825,8 +7841,8 @@ const VSlideGroup = genericComponent()({
|
|
7825
7841
|
});
|
7826
7842
|
const hasNext = computed(() => {
|
7827
7843
|
if (!containerRef.value) return false;
|
7828
|
-
const scrollSize = getScrollSize(isHorizontal.value, containerRef.
|
7829
|
-
const clientSize = getClientSize(isHorizontal.value, containerRef.
|
7844
|
+
const scrollSize = getScrollSize(isHorizontal.value, containerRef.el);
|
7845
|
+
const clientSize = getClientSize(isHorizontal.value, containerRef.el);
|
7830
7846
|
const scrollSizeMax = scrollSize - clientSize;
|
7831
7847
|
|
7832
7848
|
// 1 pixel in reserve, may be lost after rounding
|
@@ -8250,14 +8266,16 @@ const independentActiveStrategy = mandatory => {
|
|
8250
8266
|
},
|
8251
8267
|
in: (v, children, parents) => {
|
8252
8268
|
let set = new Set();
|
8253
|
-
|
8254
|
-
|
8255
|
-
|
8256
|
-
|
8257
|
-
|
8258
|
-
|
8259
|
-
|
8260
|
-
|
8269
|
+
if (v != null) {
|
8270
|
+
for (const id of wrapInArray(v)) {
|
8271
|
+
set = strategy.activate({
|
8272
|
+
id,
|
8273
|
+
value: true,
|
8274
|
+
activated: new Set(set),
|
8275
|
+
children,
|
8276
|
+
parents
|
8277
|
+
});
|
8278
|
+
}
|
8261
8279
|
}
|
8262
8280
|
return set;
|
8263
8281
|
},
|
@@ -8286,8 +8304,11 @@ const independentSingleActiveStrategy = mandatory => {
|
|
8286
8304
|
},
|
8287
8305
|
in: (v, children, parents) => {
|
8288
8306
|
let set = new Set();
|
8289
|
-
if (v
|
8290
|
-
|
8307
|
+
if (v != null) {
|
8308
|
+
const arr = wrapInArray(v);
|
8309
|
+
if (arr.length) {
|
8310
|
+
set = parentStrategy.in(arr.slice(0, 1), children, parents);
|
8311
|
+
}
|
8291
8312
|
}
|
8292
8313
|
return set;
|
8293
8314
|
},
|
@@ -8631,12 +8652,12 @@ const emptyNested = {
|
|
8631
8652
|
const makeNestedProps = propsFactory({
|
8632
8653
|
activatable: Boolean,
|
8633
8654
|
selectable: Boolean,
|
8634
|
-
activeStrategy: [String, Function],
|
8635
|
-
selectStrategy: [String, Function],
|
8655
|
+
activeStrategy: [String, Function, Object],
|
8656
|
+
selectStrategy: [String, Function, Object],
|
8636
8657
|
openStrategy: [String, Object],
|
8637
|
-
opened:
|
8638
|
-
activated:
|
8639
|
-
selected:
|
8658
|
+
opened: null,
|
8659
|
+
activated: null,
|
8660
|
+
selected: null,
|
8640
8661
|
mandatory: Boolean
|
8641
8662
|
}, 'nested');
|
8642
8663
|
const useNested = props => {
|
@@ -8646,6 +8667,7 @@ const useNested = props => {
|
|
8646
8667
|
const opened = useProxiedModel(props, 'opened', props.opened, v => new Set(v), v => [...v.values()]);
|
8647
8668
|
const activeStrategy = computed(() => {
|
8648
8669
|
if (typeof props.activeStrategy === 'object') return props.activeStrategy;
|
8670
|
+
if (typeof props.activeStrategy === 'function') return props.activeStrategy(props.mandatory);
|
8649
8671
|
switch (props.activeStrategy) {
|
8650
8672
|
case 'leaf':
|
8651
8673
|
return leafActiveStrategy(props.mandatory);
|
@@ -8660,6 +8682,7 @@ const useNested = props => {
|
|
8660
8682
|
});
|
8661
8683
|
const selectStrategy = computed(() => {
|
8662
8684
|
if (typeof props.selectStrategy === 'object') return props.selectStrategy;
|
8685
|
+
if (typeof props.selectStrategy === 'function') return props.selectStrategy(props.mandatory);
|
8663
8686
|
switch (props.selectStrategy) {
|
8664
8687
|
case 'single-leaf':
|
8665
8688
|
return leafSingleSelectStrategy(props.mandatory);
|
@@ -8988,7 +9011,7 @@ const makeVListItemProps = propsFactory({
|
|
8988
9011
|
appendIcon: IconValue,
|
8989
9012
|
baseColor: String,
|
8990
9013
|
disabled: Boolean,
|
8991
|
-
lines: String,
|
9014
|
+
lines: [Boolean, String],
|
8992
9015
|
link: {
|
8993
9016
|
type: Boolean,
|
8994
9017
|
default: undefined
|
@@ -9099,8 +9122,9 @@ const VListItem = genericComponent()({
|
|
9099
9122
|
}));
|
9100
9123
|
function onClick(e) {
|
9101
9124
|
emit('click', e);
|
9102
|
-
if (
|
9125
|
+
if (!isClickable.value) return;
|
9103
9126
|
link.navigate?.(e);
|
9127
|
+
if (isGroupActivator) return;
|
9104
9128
|
if (root.activatable.value) {
|
9105
9129
|
activate(!isActivated.value, e);
|
9106
9130
|
} else if (root.selectable.value) {
|
@@ -10559,17 +10583,17 @@ function useActivator(props, _ref) {
|
|
10559
10583
|
}, {
|
10560
10584
|
flush: 'post'
|
10561
10585
|
});
|
10562
|
-
const activatorRef =
|
10586
|
+
const activatorRef = templateRef();
|
10563
10587
|
watchEffect(() => {
|
10564
10588
|
if (!activatorRef.value) return;
|
10565
10589
|
nextTick(() => {
|
10566
|
-
activatorEl.value =
|
10590
|
+
activatorEl.value = activatorRef.el;
|
10567
10591
|
});
|
10568
10592
|
});
|
10569
|
-
const targetRef =
|
10593
|
+
const targetRef = templateRef();
|
10570
10594
|
const target = computed(() => {
|
10571
10595
|
if (props.target === 'cursor' && cursorTarget.value) return cursorTarget.value;
|
10572
|
-
if (targetRef.value) return
|
10596
|
+
if (targetRef.value) return targetRef.el;
|
10573
10597
|
return getTarget(props.target, vm) || activatorEl.value;
|
10574
10598
|
});
|
10575
10599
|
const targetEl = computed(() => {
|
@@ -10914,10 +10938,7 @@ const makeVOverlayProps = propsFactory({
|
|
10914
10938
|
disabled: Boolean,
|
10915
10939
|
opacity: [Number, String],
|
10916
10940
|
noClickAnimation: Boolean,
|
10917
|
-
modelValue:
|
10918
|
-
type: Boolean,
|
10919
|
-
default: null
|
10920
|
-
},
|
10941
|
+
modelValue: Boolean,
|
10921
10942
|
persistent: Boolean,
|
10922
10943
|
scrim: {
|
10923
10944
|
type: [Boolean, String],
|
@@ -10960,7 +10981,7 @@ const VOverlay = genericComponent()({
|
|
10960
10981
|
} = _ref;
|
10961
10982
|
const model = useProxiedModel(props, 'modelValue');
|
10962
10983
|
const isActive = computed({
|
10963
|
-
get: () =>
|
10984
|
+
get: () => model.value,
|
10964
10985
|
set: v => {
|
10965
10986
|
if (!(v && props.disabled)) model.value = v;
|
10966
10987
|
}
|
@@ -13197,7 +13218,7 @@ const VAutocomplete = genericComponent()({
|
|
13197
13218
|
select(displayItems.value[0]);
|
13198
13219
|
}
|
13199
13220
|
menu.value = false;
|
13200
|
-
search.value = '';
|
13221
|
+
if (props.multiple || hasSelectionSlot.value) search.value = '';
|
13201
13222
|
selectionIndex.value = -1;
|
13202
13223
|
}
|
13203
13224
|
});
|
@@ -15041,7 +15062,7 @@ const VColorPickerCanvas = defineComponent({
|
|
15041
15062
|
const {
|
15042
15063
|
resizeRef
|
15043
15064
|
} = useResizeObserver(entries => {
|
15044
|
-
if (!resizeRef.
|
15065
|
+
if (!resizeRef.el?.offsetParent) return;
|
15045
15066
|
const {
|
15046
15067
|
width,
|
15047
15068
|
height
|
@@ -18664,6 +18685,7 @@ function provideSelection(props, _ref9) {
|
|
18664
18685
|
});
|
18665
18686
|
return !!items.length && isSelected(items);
|
18666
18687
|
});
|
18688
|
+
const showSelectAll = computed(() => selectStrategy.value.showSelectAll);
|
18667
18689
|
const data = {
|
18668
18690
|
toggleSelect,
|
18669
18691
|
select,
|
@@ -18672,7 +18694,7 @@ function provideSelection(props, _ref9) {
|
|
18672
18694
|
isSomeSelected,
|
18673
18695
|
someSelected,
|
18674
18696
|
allSelected,
|
18675
|
-
showSelectAll
|
18697
|
+
showSelectAll
|
18676
18698
|
};
|
18677
18699
|
provide(VDataTableSelectionSymbol, data);
|
18678
18700
|
return data;
|
@@ -19943,7 +19965,7 @@ const VDataTableHeaders = genericComponent()({
|
|
19943
19965
|
};
|
19944
19966
|
if (slots[columnSlotName]) return slots[columnSlotName](columnSlotProps);
|
19945
19967
|
if (column.key === 'data-table-select') {
|
19946
|
-
return slots['header.data-table-select']?.(columnSlotProps) ?? (showSelectAll && createVNode(VCheckboxBtn, {
|
19968
|
+
return slots['header.data-table-select']?.(columnSlotProps) ?? (showSelectAll.value && createVNode(VCheckboxBtn, {
|
19947
19969
|
"modelValue": allSelected.value,
|
19948
19970
|
"indeterminate": someSelected.value && !allSelected.value,
|
19949
19971
|
"onUpdate:modelValue": selectAll
|
@@ -21912,10 +21934,10 @@ const VDatePickerYears = genericComponent()({
|
|
21912
21934
|
watchEffect(() => {
|
21913
21935
|
model.value = model.value ?? adapter.getYear(adapter.date());
|
21914
21936
|
});
|
21915
|
-
const yearRef =
|
21937
|
+
const yearRef = templateRef();
|
21916
21938
|
onMounted(async () => {
|
21917
21939
|
await nextTick();
|
21918
|
-
yearRef.
|
21940
|
+
yearRef.el?.scrollIntoView({
|
21919
21941
|
block: 'center'
|
21920
21942
|
});
|
21921
21943
|
});
|
@@ -22792,7 +22814,7 @@ const VFileInput = genericComponent()({
|
|
22792
22814
|
const {
|
22793
22815
|
t
|
22794
22816
|
} = useLocale();
|
22795
|
-
const model = useProxiedModel(props, 'modelValue', props.modelValue, val => wrapInArray(val), val => props.multiple || Array.isArray(props.modelValue) ? val : val[0]);
|
22817
|
+
const model = useProxiedModel(props, 'modelValue', props.modelValue, val => wrapInArray(val), val => props.multiple || Array.isArray(props.modelValue) ? val : val[0] ?? null);
|
22796
22818
|
const {
|
22797
22819
|
isFocused,
|
22798
22820
|
focus,
|
@@ -23241,7 +23263,7 @@ const VInfiniteScroll = genericComponent()({
|
|
23241
23263
|
function intersecting(side) {
|
23242
23264
|
if (props.mode !== 'manual' && !isIntersecting.value) return;
|
23243
23265
|
const status = getStatus(side);
|
23244
|
-
if (!rootEl.value ||
|
23266
|
+
if (!rootEl.value || ['empty', 'loading'].includes(status)) return;
|
23245
23267
|
previousScrollSize = getScrollSize();
|
23246
23268
|
setStatus(side, 'loading');
|
23247
23269
|
function done(status) {
|
@@ -26136,7 +26158,8 @@ const VStepperWindow = genericComponent()({
|
|
26136
26158
|
}, windowProps, {
|
26137
26159
|
"modelValue": model.value,
|
26138
26160
|
"onUpdate:modelValue": $event => model.value = $event,
|
26139
|
-
"class":
|
26161
|
+
"class": ['v-stepper-window', props.class],
|
26162
|
+
"style": props.style,
|
26140
26163
|
"mandatory": false,
|
26141
26164
|
"touch": false
|
26142
26165
|
}), slots);
|
@@ -26160,7 +26183,8 @@ const VStepperWindowItem = genericComponent()({
|
|
26160
26183
|
return createVNode(VWindowItem, mergeProps({
|
26161
26184
|
"_as": "VStepperWindowItem"
|
26162
26185
|
}, windowItemProps, {
|
26163
|
-
"class":
|
26186
|
+
"class": ['v-stepper-window-item', props.class],
|
26187
|
+
"style": props.style
|
26164
26188
|
}), slots);
|
26165
26189
|
});
|
26166
26190
|
return {};
|
@@ -26659,7 +26683,8 @@ const VTabsWindow = genericComponent()({
|
|
26659
26683
|
}, windowProps, {
|
26660
26684
|
"modelValue": model.value,
|
26661
26685
|
"onUpdate:modelValue": $event => model.value = $event,
|
26662
|
-
"class":
|
26686
|
+
"class": ['v-tabs-window', props.class],
|
26687
|
+
"style": props.style,
|
26663
26688
|
"mandatory": false,
|
26664
26689
|
"touch": false
|
26665
26690
|
}), slots);
|
@@ -27928,7 +27953,7 @@ function createVuetify$1() {
|
|
27928
27953
|
goTo
|
27929
27954
|
};
|
27930
27955
|
}
|
27931
|
-
const version$1 = "3.6.
|
27956
|
+
const version$1 = "3.6.4-master.2024-05-08";
|
27932
27957
|
createVuetify$1.version = version$1;
|
27933
27958
|
|
27934
27959
|
// Vue's inject() can only be used in setup
|
@@ -27953,7 +27978,7 @@ const createVuetify = function () {
|
|
27953
27978
|
...options
|
27954
27979
|
});
|
27955
27980
|
};
|
27956
|
-
const version = "3.6.
|
27981
|
+
const version = "3.6.4-master.2024-05-08";
|
27957
27982
|
createVuetify.version = version;
|
27958
27983
|
|
27959
27984
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|