@vuetify/nightly 3.7.2-master.2024-10-15 → 3.7.3-dev.2024-10-17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/json/attributes.json +99 -99
- package/dist/json/importMap-labs.json +12 -12
- package/dist/json/importMap.json +112 -112
- package/dist/json/web-types.json +193 -193
- package/dist/vuetify-labs.css +3258 -3258
- package/dist/vuetify-labs.esm.js +34 -31
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +34 -31
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +3265 -3265
- package/dist/vuetify.d.ts +39 -39
- package/dist/vuetify.esm.js +6 -4
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +6 -4
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +4 -4
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.sass +2 -1
- package/lib/components/VDataTable/composables/paginate.mjs +4 -2
- package/lib/components/VDataTable/composables/paginate.mjs.map +1 -1
- package/lib/components/VField/_variables.scss +2 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.sass +6 -5
- package/lib/components/VProgressLinear/_variables.scss +2 -1
- package/lib/components/VTable/_mixins.scss +2 -2
- package/lib/components/VTabs/VTabs.sass +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 +39 -39
- package/lib/labs/VTreeview/VTreeviewChildren.mjs +29 -28
- package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
- package/lib/styles/settings/_colors.scss +257 -256
- package/lib/styles/utilities/_display.sass +2 -1
- package/lib/styles/utilities/_elevation.scss +2 -1
- package/lib/styles/utilities/_screenreaders.sass +2 -1
- package/package.json +1 -1
package/dist/vuetify-labs.esm.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.7.
|
2
|
+
* Vuetify v3.7.3-dev.2024-10-17
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -18390,7 +18390,9 @@ function providePagination(options) {
|
|
18390
18390
|
if (itemsPerPage.value === -1 || itemsLength.value === 0) return 1;
|
18391
18391
|
return Math.ceil(itemsLength.value / itemsPerPage.value);
|
18392
18392
|
});
|
18393
|
-
|
18393
|
+
|
18394
|
+
// Don't run immediately, items may not have been loaded yet: #17966
|
18395
|
+
watch([page, pageCount], () => {
|
18394
18396
|
if (page.value > pageCount.value) {
|
18395
18397
|
page.value = pageCount.value;
|
18396
18398
|
}
|
@@ -29648,36 +29650,32 @@ const VTreeviewChildren = genericComponent()({
|
|
29648
29650
|
props: makeVTreeviewChildrenProps(),
|
29649
29651
|
setup(props, _ref) {
|
29650
29652
|
let {
|
29651
|
-
emit,
|
29652
29653
|
slots
|
29653
29654
|
} = _ref;
|
29654
|
-
const isLoading =
|
29655
|
+
const isLoading = reactive(new Set());
|
29655
29656
|
const isClickOnOpen = computed(() => props.openOnClick != null ? props.openOnClick : props.selectable);
|
29656
|
-
function checkChildren(item) {
|
29657
|
-
|
29658
|
-
if (!props.items?.length || !props.loadChildren) return
|
29657
|
+
async function checkChildren(item) {
|
29658
|
+
try {
|
29659
|
+
if (!props.items?.length || !props.loadChildren) return;
|
29659
29660
|
if (item?.children?.length === 0) {
|
29660
|
-
isLoading.
|
29661
|
-
props.loadChildren(item
|
29662
|
-
return;
|
29661
|
+
isLoading.add(item.value);
|
29662
|
+
await props.loadChildren(item.raw);
|
29663
29663
|
}
|
29664
|
-
|
29665
|
-
|
29666
|
-
|
29667
|
-
});
|
29664
|
+
} finally {
|
29665
|
+
isLoading.delete(item.value);
|
29666
|
+
}
|
29668
29667
|
}
|
29669
29668
|
function selectItem(select, isSelected) {
|
29670
29669
|
if (props.selectable) {
|
29671
29670
|
select(!isSelected);
|
29672
29671
|
}
|
29673
29672
|
}
|
29674
|
-
return () => slots.default?.() ?? props.items?.map(
|
29675
|
-
|
29673
|
+
return () => slots.default?.() ?? props.items?.map(item => {
|
29674
|
+
const {
|
29676
29675
|
children,
|
29677
|
-
props: itemProps
|
29678
|
-
|
29679
|
-
|
29680
|
-
const loading = isLoading.value === item.value;
|
29676
|
+
props: itemProps
|
29677
|
+
} = item;
|
29678
|
+
const loading = isLoading.has(item.value);
|
29681
29679
|
const slotsWithItem = {
|
29682
29680
|
prepend: slotProps => createVNode(Fragment, null, [props.selectable && (!children || children && !['leaf', 'single-leaf'].includes(props.selectStrategy)) && createVNode("div", null, [createVNode(VCheckboxBtn, {
|
29683
29681
|
"key": item.value,
|
@@ -29696,26 +29694,29 @@ const VTreeviewChildren = genericComponent()({
|
|
29696
29694
|
}
|
29697
29695
|
}, null)]), slots.prepend?.({
|
29698
29696
|
...slotProps,
|
29699
|
-
item
|
29697
|
+
item: item.raw,
|
29698
|
+
internalItem: item
|
29700
29699
|
})]),
|
29701
29700
|
append: slots.append ? slotProps => slots.append?.({
|
29702
29701
|
...slotProps,
|
29703
|
-
item
|
29702
|
+
item: item.raw,
|
29703
|
+
internalItem: item
|
29704
29704
|
}) : undefined,
|
29705
29705
|
title: slots.title ? slotProps => slots.title?.({
|
29706
29706
|
...slotProps,
|
29707
|
-
item
|
29707
|
+
item: item.raw,
|
29708
|
+
internalItem: item
|
29708
29709
|
}) : undefined
|
29709
29710
|
};
|
29710
29711
|
const treeviewGroupProps = VTreeviewGroup.filterProps(itemProps);
|
29711
29712
|
const treeviewChildrenProps = VTreeviewChildren.filterProps(props);
|
29712
29713
|
return children ? createVNode(VTreeviewGroup, mergeProps(treeviewGroupProps, {
|
29713
|
-
"value": props.returnObject ? item : treeviewGroupProps?.value
|
29714
|
+
"value": props.returnObject ? item.raw : treeviewGroupProps?.value
|
29714
29715
|
}), {
|
29715
|
-
activator:
|
29716
|
+
activator: _ref2 => {
|
29716
29717
|
let {
|
29717
29718
|
props: activatorProps
|
29718
|
-
} =
|
29719
|
+
} = _ref2;
|
29719
29720
|
const listItemProps = {
|
29720
29721
|
...itemProps,
|
29721
29722
|
...activatorProps,
|
@@ -29724,7 +29725,7 @@ const VTreeviewChildren = genericComponent()({
|
|
29724
29725
|
onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] : undefined
|
29725
29726
|
};
|
29726
29727
|
return createVNode(VTreeviewItem, mergeProps(listItemProps, {
|
29727
|
-
"value": props.returnObject ? toRaw(item) : itemProps.value,
|
29728
|
+
"value": props.returnObject ? toRaw(item.raw) : itemProps.value,
|
29728
29729
|
"loading": loading
|
29729
29730
|
}), slotsWithItem);
|
29730
29731
|
},
|
@@ -29733,9 +29734,11 @@ const VTreeviewChildren = genericComponent()({
|
|
29733
29734
|
"returnObject": props.returnObject
|
29734
29735
|
}), slots)
|
29735
29736
|
}) : slots.item?.({
|
29736
|
-
props: itemProps
|
29737
|
+
props: itemProps,
|
29738
|
+
item: item.raw,
|
29739
|
+
internalItem: item
|
29737
29740
|
}) ?? createVNode(VTreeviewItem, mergeProps(itemProps, {
|
29738
|
-
"value": props.returnObject ? toRaw(item) : itemProps.value
|
29741
|
+
"value": props.returnObject ? toRaw(item.raw) : itemProps.value
|
29739
29742
|
}), slotsWithItem);
|
29740
29743
|
});
|
29741
29744
|
}
|
@@ -30378,7 +30381,7 @@ function createVuetify$1() {
|
|
30378
30381
|
goTo
|
30379
30382
|
};
|
30380
30383
|
}
|
30381
|
-
const version$1 = "3.7.
|
30384
|
+
const version$1 = "3.7.3-dev.2024-10-17";
|
30382
30385
|
createVuetify$1.version = version$1;
|
30383
30386
|
|
30384
30387
|
// Vue's inject() can only be used in setup
|
@@ -30631,7 +30634,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
30631
30634
|
|
30632
30635
|
/* eslint-disable local-rules/sort-imports */
|
30633
30636
|
|
30634
|
-
const version = "3.7.
|
30637
|
+
const version = "3.7.3-dev.2024-10-17";
|
30635
30638
|
|
30636
30639
|
/* eslint-disable local-rules/sort-imports */
|
30637
30640
|
|