@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
  */
@@ -18394,7 +18394,9 @@
18394
18394
  if (itemsPerPage.value === -1 || itemsLength.value === 0) return 1;
18395
18395
  return Math.ceil(itemsLength.value / itemsPerPage.value);
18396
18396
  });
18397
- vue.watchEffect(() => {
18397
+
18398
+ // Don't run immediately, items may not have been loaded yet: #17966
18399
+ vue.watch([page, pageCount], () => {
18398
18400
  if (page.value > pageCount.value) {
18399
18401
  page.value = pageCount.value;
18400
18402
  }
@@ -29652,36 +29654,32 @@
29652
29654
  props: makeVTreeviewChildrenProps(),
29653
29655
  setup(props, _ref) {
29654
29656
  let {
29655
- emit,
29656
29657
  slots
29657
29658
  } = _ref;
29658
- const isLoading = vue.shallowRef(null);
29659
+ const isLoading = vue.reactive(new Set());
29659
29660
  const isClickOnOpen = vue.computed(() => props.openOnClick != null ? props.openOnClick : props.selectable);
29660
- function checkChildren(item) {
29661
- return new Promise(resolve => {
29662
- if (!props.items?.length || !props.loadChildren) return resolve();
29661
+ async function checkChildren(item) {
29662
+ try {
29663
+ if (!props.items?.length || !props.loadChildren) return;
29663
29664
  if (item?.children?.length === 0) {
29664
- isLoading.value = item.value;
29665
- props.loadChildren(item).then(resolve);
29666
- return;
29665
+ isLoading.add(item.value);
29666
+ await props.loadChildren(item.raw);
29667
29667
  }
29668
- resolve();
29669
- }).finally(() => {
29670
- isLoading.value = null;
29671
- });
29668
+ } finally {
29669
+ isLoading.delete(item.value);
29670
+ }
29672
29671
  }
29673
29672
  function selectItem(select, isSelected) {
29674
29673
  if (props.selectable) {
29675
29674
  select(!isSelected);
29676
29675
  }
29677
29676
  }
29678
- return () => slots.default?.() ?? props.items?.map(_ref2 => {
29679
- let {
29677
+ return () => slots.default?.() ?? props.items?.map(item => {
29678
+ const {
29680
29679
  children,
29681
- props: itemProps,
29682
- raw: item
29683
- } = _ref2;
29684
- const loading = isLoading.value === item.value;
29680
+ props: itemProps
29681
+ } = item;
29682
+ const loading = isLoading.has(item.value);
29685
29683
  const slotsWithItem = {
29686
29684
  prepend: slotProps => vue.createVNode(vue.Fragment, null, [props.selectable && (!children || children && !['leaf', 'single-leaf'].includes(props.selectStrategy)) && vue.createVNode("div", null, [vue.createVNode(VCheckboxBtn, {
29687
29685
  "key": item.value,
@@ -29700,26 +29698,29 @@
29700
29698
  }
29701
29699
  }, null)]), slots.prepend?.({
29702
29700
  ...slotProps,
29703
- item
29701
+ item: item.raw,
29702
+ internalItem: item
29704
29703
  })]),
29705
29704
  append: slots.append ? slotProps => slots.append?.({
29706
29705
  ...slotProps,
29707
- item
29706
+ item: item.raw,
29707
+ internalItem: item
29708
29708
  }) : undefined,
29709
29709
  title: slots.title ? slotProps => slots.title?.({
29710
29710
  ...slotProps,
29711
- item
29711
+ item: item.raw,
29712
+ internalItem: item
29712
29713
  }) : undefined
29713
29714
  };
29714
29715
  const treeviewGroupProps = VTreeviewGroup.filterProps(itemProps);
29715
29716
  const treeviewChildrenProps = VTreeviewChildren.filterProps(props);
29716
29717
  return children ? vue.createVNode(VTreeviewGroup, vue.mergeProps(treeviewGroupProps, {
29717
- "value": props.returnObject ? item : treeviewGroupProps?.value
29718
+ "value": props.returnObject ? item.raw : treeviewGroupProps?.value
29718
29719
  }), {
29719
- activator: _ref3 => {
29720
+ activator: _ref2 => {
29720
29721
  let {
29721
29722
  props: activatorProps
29722
- } = _ref3;
29723
+ } = _ref2;
29723
29724
  const listItemProps = {
29724
29725
  ...itemProps,
29725
29726
  ...activatorProps,
@@ -29728,7 +29729,7 @@
29728
29729
  onClick: isClickOnOpen.value ? [() => checkChildren(item), activatorProps.onClick] : undefined
29729
29730
  };
29730
29731
  return vue.createVNode(VTreeviewItem, vue.mergeProps(listItemProps, {
29731
- "value": props.returnObject ? vue.toRaw(item) : itemProps.value,
29732
+ "value": props.returnObject ? vue.toRaw(item.raw) : itemProps.value,
29732
29733
  "loading": loading
29733
29734
  }), slotsWithItem);
29734
29735
  },
@@ -29737,9 +29738,11 @@
29737
29738
  "returnObject": props.returnObject
29738
29739
  }), slots)
29739
29740
  }) : slots.item?.({
29740
- props: itemProps
29741
+ props: itemProps,
29742
+ item: item.raw,
29743
+ internalItem: item
29741
29744
  }) ?? vue.createVNode(VTreeviewItem, vue.mergeProps(itemProps, {
29742
- "value": props.returnObject ? vue.toRaw(item) : itemProps.value
29745
+ "value": props.returnObject ? vue.toRaw(item.raw) : itemProps.value
29743
29746
  }), slotsWithItem);
29744
29747
  });
29745
29748
  }
@@ -30382,7 +30385,7 @@
30382
30385
  goTo
30383
30386
  };
30384
30387
  }
30385
- const version$1 = "3.7.2-master.2024-10-15";
30388
+ const version$1 = "3.7.3-dev.2024-10-17";
30386
30389
  createVuetify$1.version = version$1;
30387
30390
 
30388
30391
  // Vue's inject() can only be used in setup
@@ -30635,7 +30638,7 @@
30635
30638
 
30636
30639
  /* eslint-disable local-rules/sort-imports */
30637
30640
 
30638
- const version = "3.7.2-master.2024-10-15";
30641
+ const version = "3.7.3-dev.2024-10-17";
30639
30642
 
30640
30643
  /* eslint-disable local-rules/sort-imports */
30641
30644