@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.
Files changed (38) hide show
  1. package/dist/json/attributes.json +99 -99
  2. package/dist/json/importMap-labs.json +12 -12
  3. package/dist/json/importMap.json +112 -112
  4. package/dist/json/web-types.json +193 -193
  5. package/dist/vuetify-labs.css +3258 -3258
  6. package/dist/vuetify-labs.esm.js +34 -31
  7. package/dist/vuetify-labs.esm.js.map +1 -1
  8. package/dist/vuetify-labs.js +34 -31
  9. package/dist/vuetify-labs.min.css +2 -2
  10. package/dist/vuetify.css +3265 -3265
  11. package/dist/vuetify.d.ts +39 -39
  12. package/dist/vuetify.esm.js +6 -4
  13. package/dist/vuetify.esm.js.map +1 -1
  14. package/dist/vuetify.js +6 -4
  15. package/dist/vuetify.js.map +1 -1
  16. package/dist/vuetify.min.css +2 -2
  17. package/dist/vuetify.min.js +4 -4
  18. package/dist/vuetify.min.js.map +1 -1
  19. package/lib/components/VBottomSheet/VBottomSheet.sass +2 -1
  20. package/lib/components/VDataTable/composables/paginate.mjs +4 -2
  21. package/lib/components/VDataTable/composables/paginate.mjs.map +1 -1
  22. package/lib/components/VField/_variables.scss +2 -1
  23. package/lib/components/VOverflowBtn/VOverflowBtn.sass +6 -5
  24. package/lib/components/VProgressLinear/_variables.scss +2 -1
  25. package/lib/components/VTable/_mixins.scss +2 -2
  26. package/lib/components/VTabs/VTabs.sass +1 -1
  27. package/lib/entry-bundler.mjs +1 -1
  28. package/lib/entry-bundler.mjs.map +1 -1
  29. package/lib/framework.mjs +1 -1
  30. package/lib/framework.mjs.map +1 -1
  31. package/lib/index.d.mts +39 -39
  32. package/lib/labs/VTreeview/VTreeviewChildren.mjs +29 -28
  33. package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
  34. package/lib/styles/settings/_colors.scss +257 -256
  35. package/lib/styles/utilities/_display.sass +2 -1
  36. package/lib/styles/utilities/_elevation.scss +2 -1
  37. package/lib/styles/utilities/_screenreaders.sass +2 -1
  38. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.7.2-master.2024-10-15
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
- watchEffect(() => {
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 = shallowRef(null);
29655
+ const isLoading = reactive(new Set());
29655
29656
  const isClickOnOpen = computed(() => props.openOnClick != null ? props.openOnClick : props.selectable);
29656
- function checkChildren(item) {
29657
- return new Promise(resolve => {
29658
- if (!props.items?.length || !props.loadChildren) return resolve();
29657
+ async function checkChildren(item) {
29658
+ try {
29659
+ if (!props.items?.length || !props.loadChildren) return;
29659
29660
  if (item?.children?.length === 0) {
29660
- isLoading.value = item.value;
29661
- props.loadChildren(item).then(resolve);
29662
- return;
29661
+ isLoading.add(item.value);
29662
+ await props.loadChildren(item.raw);
29663
29663
  }
29664
- resolve();
29665
- }).finally(() => {
29666
- isLoading.value = null;
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(_ref2 => {
29675
- let {
29673
+ return () => slots.default?.() ?? props.items?.map(item => {
29674
+ const {
29676
29675
  children,
29677
- props: itemProps,
29678
- raw: item
29679
- } = _ref2;
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: _ref3 => {
29716
+ activator: _ref2 => {
29716
29717
  let {
29717
29718
  props: activatorProps
29718
- } = _ref3;
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.2-master.2024-10-15";
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.2-master.2024-10-15";
30637
+ const version = "3.7.3-dev.2024-10-17";
30635
30638
 
30636
30639
  /* eslint-disable local-rules/sort-imports */
30637
30640