vuetify 3.7.2 → 3.7.4

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 (104) hide show
  1. package/dist/json/attributes.json +5843 -5795
  2. package/dist/json/importMap-labs.json +16 -16
  3. package/dist/json/importMap.json +150 -150
  4. package/dist/json/tags.json +14 -1
  5. package/dist/json/web-types.json +10397 -10309
  6. package/dist/vuetify-labs.css +2362 -2362
  7. package/dist/vuetify-labs.d.ts +196 -195
  8. package/dist/vuetify-labs.esm.js +68 -45
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +68 -45
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +2822 -2822
  13. package/dist/vuetify.d.ts +212 -211
  14. package/dist/vuetify.esm.js +38 -17
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +38 -17
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +28 -28
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VAutocomplete/index.d.mts +22 -22
  22. package/lib/components/VBottomSheet/VBottomSheet.sass +2 -1
  23. package/lib/components/VBottomSheet/index.d.mts +4 -4
  24. package/lib/components/VBtn/VBtn.css +2 -2
  25. package/lib/components/VBtn/VBtn.sass +7 -8
  26. package/lib/components/VBtnToggle/VBtnToggle.css +3 -0
  27. package/lib/components/VBtnToggle/VBtnToggle.sass +3 -0
  28. package/lib/components/VCarousel/index.d.mts +2 -2
  29. package/lib/components/VCheckbox/index.d.mts +2 -2
  30. package/lib/components/VChip/VChip.mjs +2 -1
  31. package/lib/components/VChip/VChip.mjs.map +1 -1
  32. package/lib/components/VCode/index.mjs +1 -1
  33. package/lib/components/VCode/index.mjs.map +1 -1
  34. package/lib/components/VColorPicker/VColorPicker.mjs +2 -2
  35. package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
  36. package/lib/components/VCombobox/index.d.mts +22 -22
  37. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs +87 -0
  38. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs.map +1 -0
  39. package/lib/components/VDataTable/VDataTableFooter.mjs.map +1 -1
  40. package/lib/components/VDataTable/composables/paginate.mjs +4 -2
  41. package/lib/components/VDataTable/composables/paginate.mjs.map +1 -1
  42. package/lib/components/VDataTable/index.d.mts +7 -6
  43. package/lib/components/VDatePicker/index.d.mts +2 -2
  44. package/lib/components/VDialog/VDialog.css +3 -7
  45. package/lib/components/VDialog/VDialog.mjs +8 -1
  46. package/lib/components/VDialog/VDialog.mjs.map +1 -1
  47. package/lib/components/VDialog/VDialog.sass +6 -7
  48. package/lib/components/VDialog/index.d.mts +22 -22
  49. package/lib/components/VField/_variables.scss +2 -1
  50. package/lib/components/VFileInput/__tests__/text.txt +1 -0
  51. package/lib/components/VFileInput/index.d.mts +3 -3
  52. package/lib/components/VInput/index.d.mts +2 -2
  53. package/lib/components/VKbd/index.mjs +1 -1
  54. package/lib/components/VKbd/index.mjs.map +1 -1
  55. package/lib/components/VList/VListItem.css +8 -7
  56. package/lib/components/VList/VListItem.mjs +1 -0
  57. package/lib/components/VList/VListItem.mjs.map +1 -1
  58. package/lib/components/VList/VListItem.sass +16 -10
  59. package/lib/components/VList/_variables.scss +0 -11
  60. package/lib/components/VMenu/VMenu.mjs +15 -6
  61. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  62. package/lib/components/VMenu/index.d.mts +20 -20
  63. package/lib/components/VMessages/index.d.mts +8 -8
  64. package/lib/components/VNavigationDrawer/index.d.mts +7 -7
  65. package/lib/components/VOverflowBtn/VOverflowBtn.sass +6 -5
  66. package/lib/components/VOverlay/index.d.mts +4 -4
  67. package/lib/components/VProgressLinear/_variables.scss +2 -1
  68. package/lib/components/VRadioGroup/index.d.mts +2 -2
  69. package/lib/components/VSelect/index.d.mts +22 -22
  70. package/lib/components/VSnackbar/index.d.mts +31 -31
  71. package/lib/components/VSpeedDial/index.d.mts +2 -2
  72. package/lib/components/VSwitch/index.d.mts +2 -2
  73. package/lib/components/VTable/_mixins.scss +2 -2
  74. package/lib/components/VTabs/VTabs.sass +1 -1
  75. package/lib/components/VTextField/index.d.mts +3 -3
  76. package/lib/components/VTextarea/index.d.mts +3 -3
  77. package/lib/components/VTooltip/index.d.mts +24 -24
  78. package/lib/components/VWindow/index.d.mts +2 -2
  79. package/lib/components/index.d.mts +158 -157
  80. package/lib/composables/directiveComponent.mjs +4 -3
  81. package/lib/composables/directiveComponent.mjs.map +1 -1
  82. package/lib/composables/nested/nested.mjs +2 -2
  83. package/lib/composables/nested/nested.mjs.map +1 -1
  84. package/lib/directives/ripple/index.mjs.map +1 -1
  85. package/lib/entry-bundler.mjs +1 -1
  86. package/lib/framework.mjs +1 -1
  87. package/lib/index.d.mts +53 -53
  88. package/lib/labs/VNumberInput/index.d.mts +9 -9
  89. package/lib/labs/VSnackbarQueue/index.d.mts +52 -52
  90. package/lib/labs/VTreeview/VTreeview.mjs +2 -1
  91. package/lib/labs/VTreeview/VTreeview.mjs.map +1 -1
  92. package/lib/labs/VTreeview/VTreeviewChildren.mjs +29 -28
  93. package/lib/labs/VTreeview/VTreeviewChildren.mjs.map +1 -1
  94. package/lib/labs/VTreeview/index.d.mts +7 -7
  95. package/lib/labs/components.d.mts +68 -68
  96. package/lib/locale/el.mjs +0 -0
  97. package/lib/locale/index.mjs +0 -0
  98. package/lib/styles/settings/_colors.scss +257 -256
  99. package/lib/styles/utilities/_display.sass +2 -1
  100. package/lib/styles/utilities/_elevation.scss +2 -1
  101. package/lib/styles/utilities/_screenreaders.sass +2 -1
  102. package/package.json +23 -16
  103. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.cy.mjs +0 -74
  104. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.cy.mjs.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.7.2
2
+ * Vuetify v3.7.4
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -8276,7 +8276,8 @@ const VChip = genericComponent()({
8276
8276
  }, slots.append)]), hasClose && createVNode("button", mergeProps({
8277
8277
  "key": "close",
8278
8278
  "class": "v-chip__close",
8279
- "type": "button"
8279
+ "type": "button",
8280
+ "data-testid": "close-chip"
8280
8281
  }, closeProps.value), [!slots.close ? createVNode(VIcon, {
8281
8282
  "key": "close-icon",
8282
8283
  "icon": props.closeIcon,
@@ -8818,8 +8819,8 @@ const useNested = props => {
8818
8819
  }),
8819
8820
  register: (id, parentId, isGroup) => {
8820
8821
  if (nodeIds.has(id)) {
8821
- const path = getPath(id).join(' -> ');
8822
- const newPath = getPath(parentId).concat(id).join(' -> ');
8822
+ const path = getPath(id).map(String).join(' -> ');
8823
+ const newPath = getPath(parentId).concat(id).map(String).join(' -> ');
8823
8824
  consoleError(`Multiple nodes with the same ID\n\t${path}\n\t${newPath}`);
8824
8825
  return;
8825
8826
  } else {
@@ -9253,6 +9254,7 @@ const VListItem = genericComponent()({
9253
9254
  }, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, lineClasses.value, roundedClasses.value, variantClasses.value, props.class],
9254
9255
  "style": [colorStyles.value, dimensionStyles.value, props.style],
9255
9256
  "tabindex": isClickable.value ? list ? -2 : 0 : undefined,
9257
+ "aria-selected": root.activatable.value ? isActivated.value : isSelected.value,
9256
9258
  "onClick": onClick,
9257
9259
  "onKeydown": isClickable.value && !isLink.value && onKeyDown
9258
9260
  }, link.linkProps), {
@@ -11440,7 +11442,10 @@ const VMenu = genericComponent()({
11440
11442
  }, 40);
11441
11443
  }
11442
11444
  });
11443
- onBeforeUnmount(() => parent?.unregister());
11445
+ onBeforeUnmount(() => {
11446
+ parent?.unregister();
11447
+ document.removeEventListener('focusin', onFocusIn);
11448
+ });
11444
11449
  onDeactivated(() => isActive.value = false);
11445
11450
  async function onFocusIn(e) {
11446
11451
  const before = e.relatedTarget;
@@ -11460,13 +11465,19 @@ const VMenu = genericComponent()({
11460
11465
  watch(isActive, val => {
11461
11466
  if (val) {
11462
11467
  parent?.register();
11463
- document.addEventListener('focusin', onFocusIn, {
11464
- once: true
11465
- });
11468
+ if (IN_BROWSER) {
11469
+ document.addEventListener('focusin', onFocusIn, {
11470
+ once: true
11471
+ });
11472
+ }
11466
11473
  } else {
11467
11474
  parent?.unregister();
11468
- document.removeEventListener('focusin', onFocusIn);
11475
+ if (IN_BROWSER) {
11476
+ document.removeEventListener('focusin', onFocusIn);
11477
+ }
11469
11478
  }
11479
+ }, {
11480
+ immediate: true
11470
11481
  });
11471
11482
  function onClickOutside(e) {
11472
11483
  parent?.closeParents(e);
@@ -13982,6 +13993,9 @@ const VDialog = genericComponent()({
13982
13993
  }
13983
13994
  }
13984
13995
  }
13996
+ onBeforeUnmount(() => {
13997
+ document.removeEventListener('focusin', onFocusin);
13998
+ });
13985
13999
  if (IN_BROWSER) {
13986
14000
  watch(() => isActive.value && props.retainFocus, val => {
13987
14001
  val ? document.addEventListener('focusin', onFocusin) : document.removeEventListener('focusin', onFocusin);
@@ -14029,6 +14043,10 @@ const VDialog = genericComponent()({
14029
14043
  "aria-modal": "true",
14030
14044
  "activatorProps": activatorProps,
14031
14045
  "contentProps": contentProps,
14046
+ "height": !props.fullscreen ? props.height : undefined,
14047
+ "width": !props.fullscreen ? props.width : undefined,
14048
+ "maxHeight": !props.fullscreen ? props.maxHeight : undefined,
14049
+ "maxWidth": !props.fullscreen ? props.maxWidth : undefined,
14032
14050
  "role": "dialog",
14033
14051
  "onAfterEnter": onAfterEnter,
14034
14052
  "onAfterLeave": onAfterLeave
@@ -15125,7 +15143,7 @@ const VCarouselItem = genericComponent()({
15125
15143
  });
15126
15144
 
15127
15145
  // Styles
15128
- const VCode = createSimpleFunctional('v-code');
15146
+ const VCode = createSimpleFunctional('v-code', 'code');
15129
15147
 
15130
15148
  // Types
15131
15149
 
@@ -16862,7 +16880,7 @@ const VColorPicker = defineComponent({
16862
16880
  hue.value = hsva.h;
16863
16881
  model.value = hsva;
16864
16882
  };
16865
- onMounted(() => {
16883
+ onBeforeMount(() => {
16866
16884
  if (!props.modes.includes(mode.value)) mode.value = props.modes[0];
16867
16885
  });
16868
16886
  provideDefaults({
@@ -18621,7 +18639,9 @@ function providePagination(options) {
18621
18639
  if (itemsPerPage.value === -1 || itemsLength.value === 0) return 1;
18622
18640
  return Math.ceil(itemsLength.value / itemsPerPage.value);
18623
18641
  });
18624
- watchEffect(() => {
18642
+
18643
+ // Don't run immediately, items may not have been loaded yet: #17966
18644
+ watch([page, pageCount], () => {
18625
18645
  if (page.value > pageCount.value) {
18626
18646
  page.value = pageCount.value;
18627
18647
  }
@@ -23692,7 +23712,7 @@ const VItem = genericComponent()({
23692
23712
  });
23693
23713
 
23694
23714
  // Styles
23695
- const VKbd = createSimpleFunctional('v-kbd');
23715
+ const VKbd = createSimpleFunctional('v-kbd', 'kbd');
23696
23716
 
23697
23717
  const makeVLayoutProps = propsFactory({
23698
23718
  ...makeComponentProps(),
@@ -28087,7 +28107,7 @@ function findComponentParent(vnode, root) {
28087
28107
  const walk = children => {
28088
28108
  for (const child of children) {
28089
28109
  if (!child) continue;
28090
- if (child === vnode) {
28110
+ if (child === vnode || child.el && vnode.el && child.el === vnode.el) {
28091
28111
  return true;
28092
28112
  }
28093
28113
  stack.add(child);
@@ -28107,7 +28127,8 @@ function findComponentParent(vnode, root) {
28107
28127
  return false;
28108
28128
  };
28109
28129
  if (!walk([root.subTree])) {
28110
- throw new Error('Could not find original vnode');
28130
+ consoleError('Could not find original vnode, component will not inherit provides');
28131
+ return root;
28111
28132
  }
28112
28133
 
28113
28134
  // Return the first component parent
@@ -28233,7 +28254,7 @@ function createVuetify$1() {
28233
28254
  goTo
28234
28255
  };
28235
28256
  }
28236
- const version$1 = "3.7.2";
28257
+ const version$1 = "3.7.4";
28237
28258
  createVuetify$1.version = version$1;
28238
28259
 
28239
28260
  // Vue's inject() can only be used in setup
@@ -28258,7 +28279,7 @@ const createVuetify = function () {
28258
28279
  ...options
28259
28280
  });
28260
28281
  };
28261
- const version = "3.7.2";
28282
+ const version = "3.7.4";
28262
28283
  createVuetify.version = version;
28263
28284
 
28264
28285
  export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };