@vuetify/nightly 3.5.7-master.2024-03-05 → 3.5.8-dev.2024-03-13

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 (101) hide show
  1. package/CHANGELOG.md +11 -7
  2. package/dist/json/attributes.json +229 -77
  3. package/dist/json/importMap-labs.json +4 -0
  4. package/dist/json/importMap.json +136 -136
  5. package/dist/json/tags.json +43 -0
  6. package/dist/json/web-types.json +539 -144
  7. package/dist/vuetify-labs.css +4771 -4747
  8. package/dist/vuetify-labs.d.ts +787 -147
  9. package/dist/vuetify-labs.esm.js +168 -76
  10. package/dist/vuetify-labs.esm.js.map +1 -1
  11. package/dist/vuetify-labs.js +167 -75
  12. package/dist/vuetify-labs.min.css +2 -2
  13. package/dist/vuetify.css +586 -570
  14. package/dist/vuetify.d.ts +264 -186
  15. package/dist/vuetify.esm.js +119 -74
  16. package/dist/vuetify.esm.js.map +1 -1
  17. package/dist/vuetify.js +118 -73
  18. package/dist/vuetify.js.map +1 -1
  19. package/dist/vuetify.min.css +2 -2
  20. package/dist/vuetify.min.js +931 -927
  21. package/dist/vuetify.min.js.map +1 -1
  22. package/lib/blueprints/index.d.mts +5 -2
  23. package/lib/blueprints/md1.d.mts +5 -2
  24. package/lib/blueprints/md2.d.mts +5 -2
  25. package/lib/blueprints/md3.d.mts +5 -2
  26. package/lib/components/VApp/VApp.mjs +5 -2
  27. package/lib/components/VApp/VApp.mjs.map +1 -1
  28. package/lib/components/VApp/index.d.mts +6 -6
  29. package/lib/components/VAppBar/VAppBar.mjs +5 -5
  30. package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
  31. package/lib/components/VAppBar/index.d.mts +2 -2
  32. package/lib/components/VBottomNavigation/VBottomNavigation.mjs +5 -3
  33. package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
  34. package/lib/components/VBottomNavigation/index.d.mts +2 -2
  35. package/lib/components/VDatePicker/VDatePickerMonth.mjs +1 -1
  36. package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
  37. package/lib/components/VFooter/VFooter.mjs +3 -2
  38. package/lib/components/VFooter/VFooter.mjs.map +1 -1
  39. package/lib/components/VForm/index.d.mts +21 -0
  40. package/lib/components/VInput/VInput.sass +1 -1
  41. package/lib/components/VInput/_variables.scss +1 -0
  42. package/lib/components/VLabel/VLabel.sass +1 -1
  43. package/lib/components/VLabel/_variables.scss +1 -0
  44. package/lib/components/VLayout/VLayout.mjs +5 -2
  45. package/lib/components/VLayout/VLayout.mjs.map +1 -1
  46. package/lib/components/VLayout/VLayoutItem.mjs +6 -4
  47. package/lib/components/VLayout/VLayoutItem.mjs.map +1 -1
  48. package/lib/components/VLayout/index.d.mts +9 -9
  49. package/lib/components/VMain/VMain.mjs +3 -2
  50. package/lib/components/VMain/VMain.mjs.map +1 -1
  51. package/lib/components/VMain/index.d.mts +2 -2
  52. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +7 -7
  53. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
  54. package/lib/components/VSnackbar/VSnackbar.mjs +4 -2
  55. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  56. package/lib/components/VSnackbar/index.d.mts +147 -119
  57. package/lib/components/index.d.mts +207 -140
  58. package/lib/components/transitions/createTransition.mjs +4 -2
  59. package/lib/components/transitions/createTransition.mjs.map +1 -1
  60. package/lib/components/transitions/index.d.mts +18 -0
  61. package/lib/composables/date/DateAdapter.mjs.map +1 -1
  62. package/lib/composables/date/adapters/vuetify.mjs +39 -3
  63. package/lib/composables/date/adapters/vuetify.mjs.map +1 -1
  64. package/lib/composables/form.mjs +3 -1
  65. package/lib/composables/form.mjs.map +1 -1
  66. package/lib/composables/icons.mjs +2 -1
  67. package/lib/composables/icons.mjs.map +1 -1
  68. package/lib/composables/layout.mjs +14 -37
  69. package/lib/composables/layout.mjs.map +1 -1
  70. package/lib/composables/transition.mjs +7 -5
  71. package/lib/composables/transition.mjs.map +1 -1
  72. package/lib/composables/validation.mjs +3 -1
  73. package/lib/composables/validation.mjs.map +1 -1
  74. package/lib/entry-bundler.mjs +1 -1
  75. package/lib/entry-bundler.mjs.map +1 -1
  76. package/lib/framework.mjs +1 -1
  77. package/lib/framework.mjs.map +1 -1
  78. package/lib/index.d.mts +57 -46
  79. package/lib/labs/VCalendar/VCalendarInterval.css +1 -0
  80. package/lib/labs/VCalendar/VCalendarInterval.sass +1 -0
  81. package/lib/labs/VCalendar/VCalendarIntervalEvent.css +6 -0
  82. package/lib/labs/VCalendar/VCalendarIntervalEvent.mjs +5 -2
  83. package/lib/labs/VCalendar/VCalendarIntervalEvent.mjs.map +1 -1
  84. package/lib/labs/VCalendar/VCalendarIntervalEvent.sass +6 -0
  85. package/lib/labs/VFab/VFab.css +1 -1
  86. package/lib/labs/VFab/VFab.sass +1 -1
  87. package/lib/labs/VSpeedDial/VSpeedDial.css +3 -0
  88. package/lib/labs/VSpeedDial/VSpeedDial.mjs +56 -0
  89. package/lib/labs/VSpeedDial/VSpeedDial.mjs.map +1 -0
  90. package/lib/labs/VSpeedDial/VSpeedDial.sass +2 -0
  91. package/lib/labs/VSpeedDial/index.d.mts +649 -0
  92. package/lib/labs/VSpeedDial/index.mjs +2 -0
  93. package/lib/labs/VSpeedDial/index.mjs.map +1 -0
  94. package/lib/labs/components.d.mts +637 -2
  95. package/lib/labs/components.mjs +1 -0
  96. package/lib/labs/components.mjs.map +1 -1
  97. package/lib/styles/main.css +16 -0
  98. package/lib/styles/settings/_utilities.scss +20 -0
  99. package/lib/util/helpers.mjs +11 -1
  100. package/lib/util/helpers.mjs.map +1 -1
  101. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
1
  /*!
2
- * Vuetify v3.5.7-master.2024-03-05
2
+ * Vuetify v3.5.8-dev.2024-03-13
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, unref, warn, ref, provide, shallowRef, inject as inject$1, defineComponent as defineComponent$1, camelize, h, getCurrentInstance as getCurrentInstance$1, onBeforeUnmount, watch, readonly, onDeactivated, onActivated, onMounted, onScopeDispose, effectScope, toRaw, createVNode, TransitionGroup, Transition, mergeProps, isRef, toRef, onBeforeMount, nextTick, withDirectives, resolveDirective, vShow, Text, resolveDynamicComponent, Teleport, cloneVNode, createTextVNode, onUnmounted, onBeforeUpdate, withModifiers, toDisplayString, vModelText } from 'vue';
7
+ import { Fragment, reactive, computed, watchEffect, toRefs, capitalize, isVNode, Comment, shallowRef, readonly, unref, warn, ref, provide, inject as inject$1, defineComponent as defineComponent$1, camelize, h, getCurrentInstance as getCurrentInstance$1, onBeforeUnmount, watch, nextTick, onDeactivated, onActivated, onScopeDispose, effectScope, toRaw, createVNode, Suspense, TransitionGroup, Transition, mergeProps, isRef, toRef, onBeforeMount, withDirectives, resolveDirective, vShow, onMounted, Text, resolveDynamicComponent, markRaw, Teleport, cloneVNode, createTextVNode, onUnmounted, onBeforeUpdate, withModifiers, toDisplayString, vModelText } from 'vue';
8
8
 
9
9
  // Types
10
10
  // eslint-disable-line vue/prefer-import-from-vue
@@ -539,6 +539,16 @@ function defer(timeout, cb) {
539
539
  const timeoutId = window.setTimeout(cb, timeout);
540
540
  return () => window.clearTimeout(timeoutId);
541
541
  }
542
+ function eagerComputed(fn, options) {
543
+ const result = shallowRef();
544
+ watchEffect(() => {
545
+ result.value = fn();
546
+ }, {
547
+ flush: 'sync',
548
+ ...options
549
+ });
550
+ return readonly(result);
551
+ }
542
552
  function isClickInsideElement(event, targetDiv) {
543
553
  const mouseX = event.clientX;
544
554
  const mouseY = event.clientY;
@@ -1613,7 +1623,9 @@ const makeLayoutItemProps = propsFactory({
1613
1623
  function useLayout() {
1614
1624
  const layout = inject$1(VuetifyLayoutKey);
1615
1625
  if (!layout) throw new Error('[Vuetify] Could not find injected layout');
1626
+ const layoutIsReady = nextTick();
1616
1627
  return {
1628
+ layoutIsReady,
1617
1629
  getLayoutItem: layout.getLayoutItem,
1618
1630
  mainRect: layout.mainRect,
1619
1631
  mainStyles: layout.mainStyles
@@ -1630,6 +1642,7 @@ function useLayoutItem(options) {
1630
1642
  const isKeptAlive = shallowRef(false);
1631
1643
  onDeactivated(() => isKeptAlive.value = true);
1632
1644
  onActivated(() => isKeptAlive.value = false);
1645
+ const layoutIsReady = nextTick();
1633
1646
  const {
1634
1647
  layoutItemStyles,
1635
1648
  layoutItemScrimStyles
@@ -1642,7 +1655,8 @@ function useLayoutItem(options) {
1642
1655
  return {
1643
1656
  layoutItemStyles,
1644
1657
  layoutRect: layout.layoutRect,
1645
- layoutItemScrimStyles
1658
+ layoutItemScrimStyles,
1659
+ layoutIsReady
1646
1660
  };
1647
1661
  }
1648
1662
  const generateLayers = (layout, positions, layoutSizes, activeItems) => {
@@ -1688,29 +1702,7 @@ function createLayout(props) {
1688
1702
  resizeRef,
1689
1703
  contentRect: layoutRect
1690
1704
  } = useResizeObserver();
1691
- const computedOverlaps = computed(() => {
1692
- const map = new Map();
1693
- const overlaps = props.overlaps ?? [];
1694
- for (const overlap of overlaps.filter(item => item.includes(':'))) {
1695
- const [top, bottom] = overlap.split(':');
1696
- if (!registered.value.includes(top) || !registered.value.includes(bottom)) continue;
1697
- const topPosition = positions.get(top);
1698
- const bottomPosition = positions.get(bottom);
1699
- const topAmount = layoutSizes.get(top);
1700
- const bottomAmount = layoutSizes.get(bottom);
1701
- if (!topPosition || !bottomPosition || !topAmount || !bottomAmount) continue;
1702
- map.set(bottom, {
1703
- position: topPosition.value,
1704
- amount: parseInt(topAmount.value, 10)
1705
- });
1706
- map.set(top, {
1707
- position: bottomPosition.value,
1708
- amount: -parseInt(bottomAmount.value, 10)
1709
- });
1710
- }
1711
- return map;
1712
- });
1713
- const layers = computed(() => {
1705
+ const layers = eagerComputed(() => {
1714
1706
  const uniquePriorities = [...new Set([...priorities.values()].map(p => p.value))].sort((a, b) => a - b);
1715
1707
  const layout = [];
1716
1708
  for (const p of uniquePriorities) {
@@ -1736,7 +1728,7 @@ function createLayout(props) {
1736
1728
  })
1737
1729
  };
1738
1730
  });
1739
- const items = computed(() => {
1731
+ const items = eagerComputed(() => {
1740
1732
  return layers.value.slice(1).map((_ref, index) => {
1741
1733
  let {
1742
1734
  id
@@ -1758,10 +1750,7 @@ function createLayout(props) {
1758
1750
  return items.value.find(item => item.id === id);
1759
1751
  };
1760
1752
  const rootVm = getCurrentInstance('createLayout');
1761
- const isMounted = shallowRef(false);
1762
- onMounted(() => {
1763
- isMounted.value = true;
1764
- });
1753
+ const layoutIsReady = nextTick();
1765
1754
  provide(VuetifyLayoutKey, {
1766
1755
  register: (vm, _ref2) => {
1767
1756
  let {
@@ -1797,13 +1786,9 @@ function createLayout(props) {
1797
1786
  transition: 'none'
1798
1787
  })
1799
1788
  };
1800
- if (!isMounted.value) return styles;
1789
+ if (index.value < 0) throw new Error(`Layout item "${id}" is missing`);
1801
1790
  const item = items.value[index.value];
1802
1791
  if (!item) throw new Error(`[Vuetify] Could not find layout item "${id}"`);
1803
- const overlap = computedOverlaps.value.get(id);
1804
- if (overlap) {
1805
- item[overlap.position] += overlap.amount;
1806
- }
1807
1792
  return {
1808
1793
  ...styles,
1809
1794
  height: isHorizontal ? `calc(100% - ${item.top}px - ${item.bottom}px)` : elementSize.value ? `${elementSize.value}px` : undefined,
@@ -1836,7 +1821,8 @@ function createLayout(props) {
1836
1821
  getLayoutItem,
1837
1822
  items,
1838
1823
  layoutRect,
1839
- rootZIndex
1824
+ rootZIndex,
1825
+ layoutIsReady
1840
1826
  });
1841
1827
  const layoutClasses = computed(() => ['v-layout', {
1842
1828
  'v-layout--full-height': props.fullHeight
@@ -1852,6 +1838,7 @@ function createLayout(props) {
1852
1838
  getLayoutItem,
1853
1839
  items,
1854
1840
  layoutRect,
1841
+ layoutIsReady,
1855
1842
  layoutRef: resizeRef
1856
1843
  };
1857
1844
  }
@@ -2546,7 +2533,9 @@ const VApp = genericComponent()({
2546
2533
  "style": [props.style]
2547
2534
  }, [createVNode("div", {
2548
2535
  "class": "v-application__wrap"
2549
- }, [slots.default?.()])]));
2536
+ }, [createVNode(Suspense, null, {
2537
+ default: () => [createVNode(Fragment, null, [slots.default?.()])]
2538
+ })])]));
2550
2539
  return {
2551
2540
  getLayoutItem,
2552
2541
  items,
@@ -2689,14 +2678,16 @@ function createJavascriptTransition(name, functions) {
2689
2678
  type: String,
2690
2679
  default: mode
2691
2680
  },
2692
- disabled: Boolean
2681
+ disabled: Boolean,
2682
+ group: Boolean
2693
2683
  },
2694
2684
  setup(props, _ref2) {
2695
2685
  let {
2696
2686
  slots
2697
2687
  } = _ref2;
2688
+ const tag = props.group ? TransitionGroup : Transition;
2698
2689
  return () => {
2699
- return h(Transition, {
2690
+ return h(tag, {
2700
2691
  name: props.disabled ? '' : name,
2701
2692
  css: !props.disabled,
2702
2693
  // mode: props.mode, // TODO: vuejs/vue-next#3104
@@ -3154,17 +3145,19 @@ const MaybeTransition = (props, _ref) => {
3154
3145
  const {
3155
3146
  transition,
3156
3147
  disabled,
3148
+ group,
3157
3149
  ...rest
3158
3150
  } = props;
3159
3151
  const {
3160
- component = Transition,
3152
+ component = group ? TransitionGroup : Transition,
3161
3153
  ...customProps
3162
3154
  } = typeof transition === 'object' ? transition : {};
3163
3155
  return h(component, mergeProps(typeof transition === 'string' ? {
3164
3156
  name: disabled ? '' : transition
3165
- } : customProps, rest, {
3166
- disabled
3167
- }), slots);
3157
+ } : customProps, typeof transition === 'string' ? {} : {
3158
+ disabled,
3159
+ group
3160
+ }, rest), slots);
3168
3161
  };
3169
3162
 
3170
3163
  // Utilities
@@ -3883,9 +3876,8 @@ const VAppBar = genericComponent()({
3883
3876
  const isFlat = computed(() => props.flat || scrollBehavior.value.elevate && (scrollBehavior.value.inverted ? currentScroll.value > 0 : currentScroll.value === 0));
3884
3877
  const opacity = computed(() => scrollBehavior.value.fadeImage ? scrollBehavior.value.inverted ? 1 - scrollRatio.value : scrollRatio.value : undefined);
3885
3878
  const height = computed(() => {
3886
- if (scrollBehavior.value.hide && scrollBehavior.value.inverted) return 0;
3887
- const height = vToolbarRef.value?.contentHeight ?? 0;
3888
- const extensionHeight = vToolbarRef.value?.extensionHeight ?? 0;
3879
+ const height = Number(vToolbarRef.value?.contentHeight ?? props.height);
3880
+ const extensionHeight = Number(vToolbarRef.value?.extensionHeight ?? 0);
3889
3881
  return height + extensionHeight;
3890
3882
  });
3891
3883
  useToggleScope(computed(() => !!props.scrollBehavior), () => {
@@ -3905,7 +3897,8 @@ const VAppBar = genericComponent()({
3905
3897
  ssrBootStyles
3906
3898
  } = useSsrBoot();
3907
3899
  const {
3908
- layoutItemStyles
3900
+ layoutItemStyles,
3901
+ layoutIsReady
3909
3902
  } = useLayoutItem({
3910
3903
  id: props.name,
3911
3904
  order: computed(() => parseInt(props.order, 10)),
@@ -3933,7 +3926,7 @@ const VAppBar = genericComponent()({
3933
3926
  "flat": isFlat.value
3934
3927
  }), slots);
3935
3928
  });
3936
- return {};
3929
+ return layoutIsReady;
3937
3930
  }
3938
3931
  });
3939
3932
 
@@ -4480,7 +4473,8 @@ function createIcons(options) {
4480
4473
  ...aliases,
4481
4474
  /* eslint-disable max-len */
4482
4475
  vuetify: ['M8.2241 14.2009L12 21L22 3H14.4459L8.2241 14.2009Z', ['M7.26303 12.4733L7.00113 12L2 3H12.5261C12.5261 3 12.5261 3 12.5261 3L7.26303 12.4733Z', 0.6]],
4483
- 'vuetify-outline': 'svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z'
4476
+ 'vuetify-outline': 'svg:M7.26 12.47 12.53 3H2L7.26 12.47ZM14.45 3 8.22 14.2 12 21 22 3H14.45ZM18.6 5 12 16.88 10.51 14.2 15.62 5ZM7.26 8.35 5.4 5H9.13L7.26 8.35Z',
4477
+ 'vuetify-play': ['m6.376 13.184-4.11-7.192C1.505 4.66 2.467 3 4.003 3h8.532l-.953 1.576-.006.01-.396.677c-.429.732-.214 1.507.194 2.015.404.503 1.092.878 1.869.806a3.72 3.72 0 0 1 1.005.022c.276.053.434.143.523.237.138.146.38.635-.25 2.09-.893 1.63-1.553 1.722-1.847 1.677-.213-.033-.468-.158-.756-.406a4.95 4.95 0 0 1-.8-.927c-.39-.564-1.04-.84-1.66-.846-.625-.006-1.316.27-1.693.921l-.478.826-.911 1.506Z', ['M9.093 11.552c.046-.079.144-.15.32-.148a.53.53 0 0 1 .43.207c.285.414.636.847 1.046 1.2.405.35.914.662 1.516.754 1.334.205 2.502-.698 3.48-2.495l.014-.028.013-.03c.687-1.574.774-2.852-.005-3.675-.37-.391-.861-.586-1.333-.676a5.243 5.243 0 0 0-1.447-.044c-.173.016-.393-.073-.54-.257-.145-.18-.127-.316-.082-.392l.393-.672L14.287 3h5.71c1.536 0 2.499 1.659 1.737 2.992l-7.997 13.996c-.768 1.344-2.706 1.344-3.473 0l-3.037-5.314 1.377-2.278.004-.006.004-.007.481-.831Z', 0.6]]
4484
4478
  /* eslint-enable max-len */
4485
4479
  }
4486
4480
  }, options);
@@ -6486,6 +6480,7 @@ function createForm(props) {
6486
6480
  register: _ref => {
6487
6481
  let {
6488
6482
  id,
6483
+ vm,
6489
6484
  validate,
6490
6485
  reset,
6491
6486
  resetValidation
@@ -6498,6 +6493,7 @@ function createForm(props) {
6498
6493
  validate,
6499
6494
  reset,
6500
6495
  resetValidation,
6496
+ vm: markRaw(vm),
6501
6497
  isValid: null,
6502
6498
  errorMessages: []
6503
6499
  });
@@ -6612,10 +6608,12 @@ function useValidation(props) {
6612
6608
  [`${name}--readonly`]: isReadonly.value
6613
6609
  };
6614
6610
  });
6611
+ const vm = getCurrentInstance('validation');
6615
6612
  const uid = computed(() => props.name ?? unref(id));
6616
6613
  onBeforeMount(() => {
6617
6614
  form?.register({
6618
6615
  id: uid.value,
6616
+ vm,
6619
6617
  validate,
6620
6618
  reset,
6621
6619
  resetValidation
@@ -12953,9 +12951,10 @@ const VBottomNavigation = genericComponent()({
12953
12951
  ssrBootStyles
12954
12952
  } = useSsrBoot();
12955
12953
  const height = computed(() => Number(props.height) - (props.density === 'comfortable' ? 8 : 0) - (props.density === 'compact' ? 16 : 0));
12956
- const isActive = toRef(props, 'active');
12954
+ const isActive = useProxiedModel(props, 'modelValue', props.modelValue);
12957
12955
  const {
12958
- layoutItemStyles
12956
+ layoutItemStyles,
12957
+ layoutIsReady
12959
12958
  } = useLayoutItem({
12960
12959
  id: props.name,
12961
12960
  order: computed(() => parseInt(props.order, 10)),
@@ -12993,7 +12992,7 @@ const VBottomNavigation = genericComponent()({
12993
12992
  }, [slots.default()])]
12994
12993
  });
12995
12994
  });
12996
- return {};
12995
+ return layoutIsReady;
12997
12996
  }
12998
12997
  });
12999
12998
 
@@ -17329,6 +17328,9 @@ function getMonth(date) {
17329
17328
  function getNextMonth(date) {
17330
17329
  return new Date(date.getFullYear(), date.getMonth() + 1, 1);
17331
17330
  }
17331
+ function getPreviousMonth(date) {
17332
+ return new Date(date.getFullYear(), date.getMonth() - 1, 1);
17333
+ }
17332
17334
  function getHours(date) {
17333
17335
  return date.getHours();
17334
17336
  }
@@ -17351,6 +17353,9 @@ function isValid(date) {
17351
17353
  function isAfter(date, comparing) {
17352
17354
  return date.getTime() > comparing.getTime();
17353
17355
  }
17356
+ function isAfterDay(date, comparing) {
17357
+ return isAfter(startOfDay(date), startOfDay(comparing));
17358
+ }
17354
17359
  function isBefore(date, comparing) {
17355
17360
  return date.getTime() < comparing.getTime();
17356
17361
  }
@@ -17363,13 +17368,34 @@ function isSameDay(date, comparing) {
17363
17368
  function isSameMonth(date, comparing) {
17364
17369
  return date.getMonth() === comparing.getMonth() && date.getFullYear() === comparing.getFullYear();
17365
17370
  }
17371
+ function isSameYear(date, comparing) {
17372
+ return date.getFullYear() === comparing.getFullYear();
17373
+ }
17366
17374
  function getDiff(date, comparing, unit) {
17367
17375
  const d = new Date(date);
17368
17376
  const c = new Date(comparing);
17369
- if (unit === 'month') {
17370
- return d.getMonth() - c.getMonth() + (d.getFullYear() - c.getFullYear()) * 12;
17377
+ switch (unit) {
17378
+ case 'years':
17379
+ return d.getFullYear() - c.getFullYear();
17380
+ case 'quarters':
17381
+ return Math.floor((d.getMonth() - c.getMonth() + (d.getFullYear() - c.getFullYear()) * 12) / 4);
17382
+ case 'months':
17383
+ return d.getMonth() - c.getMonth() + (d.getFullYear() - c.getFullYear()) * 12;
17384
+ case 'weeks':
17385
+ return Math.floor((d.getTime() - c.getTime()) / (1000 * 60 * 60 * 24 * 7));
17386
+ case 'days':
17387
+ return Math.floor((d.getTime() - c.getTime()) / (1000 * 60 * 60 * 24));
17388
+ case 'hours':
17389
+ return Math.floor((d.getTime() - c.getTime()) / (1000 * 60 * 60));
17390
+ case 'minutes':
17391
+ return Math.floor((d.getTime() - c.getTime()) / (1000 * 60));
17392
+ case 'seconds':
17393
+ return Math.floor((d.getTime() - c.getTime()) / 1000);
17394
+ default:
17395
+ {
17396
+ return d.getTime() - c.getTime();
17397
+ }
17371
17398
  }
17372
- return Math.floor((d.getTime() - c.getTime()) / (1000 * 60 * 60 * 24));
17373
17399
  }
17374
17400
  function setHours(date, count) {
17375
17401
  const d = new Date(date);
@@ -17459,6 +17485,9 @@ class VuetifyDateAdapter {
17459
17485
  isAfter(date, comparing) {
17460
17486
  return isAfter(date, comparing);
17461
17487
  }
17488
+ isAfterDay(date, comparing) {
17489
+ return isAfterDay(date, comparing);
17490
+ }
17462
17491
  isBefore(date, comparing) {
17463
17492
  return !isAfter(date, comparing) && !isEqual(date, comparing);
17464
17493
  }
@@ -17468,6 +17497,9 @@ class VuetifyDateAdapter {
17468
17497
  isSameMonth(date, comparing) {
17469
17498
  return isSameMonth(date, comparing);
17470
17499
  }
17500
+ isSameYear(date, comparing) {
17501
+ return isSameYear(date, comparing);
17502
+ }
17471
17503
  setMinutes(date, count) {
17472
17504
  return setMinutes(date, count);
17473
17505
  }
@@ -17495,6 +17527,9 @@ class VuetifyDateAdapter {
17495
17527
  getNextMonth(date) {
17496
17528
  return getNextMonth(date);
17497
17529
  }
17530
+ getPreviousMonth(date) {
17531
+ return getPreviousMonth(date);
17532
+ }
17498
17533
  getHours(date) {
17499
17534
  return getHours(date);
17500
17535
  }
@@ -20564,7 +20599,7 @@ const VDatePickerMonth = genericComponent()({
20564
20599
  } else {
20565
20600
  rangeStop.value = _value;
20566
20601
  }
20567
- const diff = adapter.getDiff(rangeStop.value, rangeStart.value);
20602
+ const diff = adapter.getDiff(rangeStop.value, rangeStart.value, 'days');
20568
20603
  const datesInRange = [rangeStart.value];
20569
20604
  for (let i = 1; i < diff; i++) {
20570
20605
  const nextDate = adapter.addDays(rangeStart.value, i);
@@ -21615,7 +21650,8 @@ const VFooter = genericComponent()({
21615
21650
  });
21616
21651
  const height = computed(() => props.height === 'auto' ? autoHeight.value : parseInt(props.height, 10));
21617
21652
  const {
21618
- layoutItemStyles
21653
+ layoutItemStyles,
21654
+ layoutIsReady
21619
21655
  } = useLayoutItem({
21620
21656
  id: props.name,
21621
21657
  order: computed(() => parseInt(props.order, 10)),
@@ -21632,7 +21668,7 @@ const VFooter = genericComponent()({
21632
21668
  height: convertToUnit(props.height)
21633
21669
  }, props.style]
21634
21670
  }, slots));
21635
- return {};
21671
+ return props.app ? layoutIsReady : {};
21636
21672
  }
21637
21673
  });
21638
21674
 
@@ -22055,7 +22091,9 @@ const VLayout = genericComponent()({
22055
22091
  "ref": layoutRef,
22056
22092
  "class": [layoutClasses.value, props.class],
22057
22093
  "style": [layoutStyles.value, props.style]
22058
- }, [slots.default?.()]));
22094
+ }, [createVNode(Suspense, null, {
22095
+ default: () => [createVNode(Fragment, null, [slots.default?.()])]
22096
+ })]));
22059
22097
  return {
22060
22098
  getLayoutItem,
22061
22099
  items
@@ -22086,7 +22124,8 @@ const VLayoutItem = genericComponent()({
22086
22124
  slots
22087
22125
  } = _ref;
22088
22126
  const {
22089
- layoutItemStyles
22127
+ layoutItemStyles,
22128
+ layoutIsReady
22090
22129
  } = useLayoutItem({
22091
22130
  id: props.name,
22092
22131
  order: computed(() => parseInt(props.order, 10)),
@@ -22096,10 +22135,11 @@ const VLayoutItem = genericComponent()({
22096
22135
  active: toRef(props, 'modelValue'),
22097
22136
  absolute: toRef(props, 'absolute')
22098
22137
  });
22099
- return () => createVNode("div", {
22138
+ useRender(() => createVNode("div", {
22100
22139
  "class": ['v-layout-item', props.class],
22101
22140
  "style": [layoutItemStyles.value, props.style]
22102
- }, [slots.default?.()]);
22141
+ }, [slots.default?.()]));
22142
+ return layoutIsReady;
22103
22143
  }
22104
22144
  });
22105
22145
 
@@ -22206,7 +22246,8 @@ const VMain = genericComponent()({
22206
22246
  slots
22207
22247
  } = _ref;
22208
22248
  const {
22209
- mainStyles
22249
+ mainStyles,
22250
+ layoutIsReady
22210
22251
  } = useLayout();
22211
22252
  const {
22212
22253
  ssrBootStyles
@@ -22221,7 +22262,7 @@ const VMain = genericComponent()({
22221
22262
  "class": "v-main__scroller"
22222
22263
  }, [slots.default?.()]) : slots.default?.()]
22223
22264
  }));
22224
- return {};
22265
+ return layoutIsReady;
22225
22266
  }
22226
22267
  });
22227
22268
 
@@ -22646,10 +22687,9 @@ const VNavigationDrawer = genericComponent()({
22646
22687
  watch(() => props.permanent, val => {
22647
22688
  if (val) isActive.value = true;
22648
22689
  });
22649
- onBeforeMount(() => {
22650
- if (props.modelValue != null || isTemporary.value) return;
22690
+ if (props.modelValue == null && !isTemporary.value) {
22651
22691
  isActive.value = props.permanent || !mobile.value;
22652
- });
22692
+ }
22653
22693
  const {
22654
22694
  isDragging,
22655
22695
  dragProgress,
@@ -22667,7 +22707,8 @@ const VNavigationDrawer = genericComponent()({
22667
22707
  });
22668
22708
  const {
22669
22709
  layoutItemStyles,
22670
- layoutItemScrimStyles
22710
+ layoutItemScrimStyles,
22711
+ layoutIsReady
22671
22712
  } = useLayoutItem({
22672
22713
  id: props.name,
22673
22714
  order: computed(() => parseInt(props.order, 10)),
@@ -22751,9 +22792,9 @@ const VNavigationDrawer = genericComponent()({
22751
22792
  }, scopeId), null)]
22752
22793
  })]);
22753
22794
  });
22754
- return {
22795
+ return layoutIsReady.then(() => ({
22755
22796
  isStuck
22756
- };
22797
+ }));
22757
22798
  }
22758
22799
  });
22759
22800
 
@@ -23753,6 +23794,8 @@ const VSlideGroupItem = genericComponent()({
23753
23794
  }
23754
23795
  });
23755
23796
 
23797
+ // Types
23798
+
23756
23799
  function useCountdown(milliseconds) {
23757
23800
  const time = shallowRef(milliseconds);
23758
23801
  let timer = -1;
@@ -23920,7 +23963,9 @@ const VSnackbar = genericComponent()({
23920
23963
  }, {
23921
23964
  default: () => [createVNode("div", {
23922
23965
  "class": "v-snackbar__actions"
23923
- }, [slots.actions()])]
23966
+ }, [slots.actions({
23967
+ isActive
23968
+ })])]
23924
23969
  })],
23925
23970
  activator: slots.activator
23926
23971
  });
@@ -25753,7 +25798,7 @@ function createVuetify$1() {
25753
25798
  goTo
25754
25799
  };
25755
25800
  }
25756
- const version$1 = "3.5.7-master.2024-03-05";
25801
+ const version$1 = "3.5.8-dev.2024-03-13";
25757
25802
  createVuetify$1.version = version$1;
25758
25803
 
25759
25804
  // Vue's inject() can only be used in setup
@@ -25778,7 +25823,7 @@ const createVuetify = function () {
25778
25823
  ...options
25779
25824
  });
25780
25825
  };
25781
- const version = "3.5.7-master.2024-03-05";
25826
+ const version = "3.5.8-dev.2024-03-13";
25782
25827
  createVuetify.version = version;
25783
25828
 
25784
25829
  export { components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };