@vuetify/nightly 3.7.0-beta.1-dev.2024-07-29 → 3.7.0-beta.1-dev.2024-07-30

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 (43) hide show
  1. package/dist/json/attributes.json +8 -0
  2. package/dist/json/importMap-labs.json +28 -28
  3. package/dist/json/importMap.json +118 -118
  4. package/dist/json/tags.json +2 -0
  5. package/dist/json/web-types.json +21 -2
  6. package/dist/vuetify-labs.css +3545 -3545
  7. package/dist/vuetify-labs.d.ts +190 -106
  8. package/dist/vuetify-labs.esm.js +30 -13
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +30 -13
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +2151 -2151
  13. package/dist/vuetify.d.ts +231 -147
  14. package/dist/vuetify.esm.js +30 -13
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +30 -13
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +43 -43
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VAutocomplete/index.d.mts +42 -24
  22. package/lib/components/VCombobox/index.d.mts +42 -24
  23. package/lib/components/VDialog/index.d.mts +3 -3
  24. package/lib/components/VList/VListItem.mjs +1 -1
  25. package/lib/components/VList/VListItem.mjs.map +1 -1
  26. package/lib/components/VMenu/VMenu.mjs +19 -3
  27. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  28. package/lib/components/VMenu/index.d.mts +27 -12
  29. package/lib/components/VOverlay/VOverlay.mjs +5 -4
  30. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  31. package/lib/components/VOverlay/useActivator.mjs +3 -2
  32. package/lib/components/VOverlay/useActivator.mjs.map +1 -1
  33. package/lib/components/VSelect/index.d.mts +42 -24
  34. package/lib/components/VSnackbar/index.d.mts +3 -3
  35. package/lib/components/VSpeedDial/index.d.mts +28 -13
  36. package/lib/components/VTooltip/index.d.mts +3 -3
  37. package/lib/components/index.d.mts +190 -106
  38. package/lib/entry-bundler.mjs +1 -1
  39. package/lib/framework.mjs +1 -1
  40. package/lib/index.d.mts +41 -41
  41. package/lib/labs/VSnackbarQueue/index.d.mts +3 -3
  42. package/lib/labs/components.d.mts +3 -3
  43. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.7.0-beta.1-dev.2024-07-29
2
+ * Vuetify v3.7.0-beta.1-dev.2024-07-30
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -8958,7 +8958,7 @@ const VListItem = genericComponent()({
8958
8958
  function onKeyDown(e) {
8959
8959
  if (e.key === 'Enter' || e.key === ' ') {
8960
8960
  e.preventDefault();
8961
- onClick(e);
8961
+ e.target.dispatchEvent(new MouseEvent('click', e));
8962
8962
  }
8963
8963
  }
8964
8964
  useRender(() => {
@@ -10275,7 +10275,8 @@ const makeActivatorProps = propsFactory({
10275
10275
  function useActivator(props, _ref) {
10276
10276
  let {
10277
10277
  isActive,
10278
- isTop
10278
+ isTop,
10279
+ contentEl
10279
10280
  } = _ref;
10280
10281
  const vm = getCurrentInstance('useActivator');
10281
10282
  const activatorEl = ref();
@@ -10392,7 +10393,7 @@ function useActivator(props, _ref) {
10392
10393
  return events;
10393
10394
  });
10394
10395
  watch(isTop, val => {
10395
- if (val && (props.openOnHover && !isHovered && (!openOnFocus.value || !isFocused) || openOnFocus.value && !isFocused && (!props.openOnHover || !isHovered))) {
10396
+ if (val && (props.openOnHover && !isHovered && (!openOnFocus.value || !isFocused) || openOnFocus.value && !isFocused && (!props.openOnHover || !isHovered)) && !contentEl.value?.contains(document.activeElement)) {
10396
10397
  isActive.value = false;
10397
10398
  }
10398
10399
  });
@@ -10798,6 +10799,9 @@ const VOverlay = genericComponent()({
10798
10799
  attrs,
10799
10800
  emit
10800
10801
  } = _ref;
10802
+ const root = ref();
10803
+ const scrimEl = ref();
10804
+ const contentEl = ref();
10801
10805
  const model = useProxiedModel(props, 'modelValue');
10802
10806
  const isActive = computed({
10803
10807
  get: () => model.value,
@@ -10835,7 +10839,8 @@ const VOverlay = genericComponent()({
10835
10839
  scrimEvents
10836
10840
  } = useActivator(props, {
10837
10841
  isActive,
10838
- isTop: localTop
10842
+ isTop: localTop,
10843
+ contentEl
10839
10844
  });
10840
10845
  const {
10841
10846
  teleportTarget
@@ -10856,9 +10861,6 @@ const VOverlay = genericComponent()({
10856
10861
  watch(() => props.disabled, v => {
10857
10862
  if (v) isActive.value = false;
10858
10863
  });
10859
- const root = ref();
10860
- const scrimEl = ref();
10861
- const contentEl = ref();
10862
10864
  const {
10863
10865
  contentStyles,
10864
10866
  updateLocation
@@ -11109,10 +11111,12 @@ const makeVMenuProps = propsFactory({
11109
11111
  // TODO
11110
11112
  // disableKeys: Boolean,
11111
11113
  id: String,
11114
+ submenu: Boolean,
11112
11115
  ...omit(makeVOverlayProps({
11113
11116
  closeDelay: 250,
11114
11117
  closeOnContentClick: true,
11115
11118
  locationStrategy: 'connected',
11119
+ location: undefined,
11116
11120
  openDelay: 300,
11117
11121
  scrim: false,
11118
11122
  scrollStrategy: 'reposition',
@@ -11135,6 +11139,9 @@ const VMenu = genericComponent()({
11135
11139
  const {
11136
11140
  scopeId
11137
11141
  } = useScopeId();
11142
+ const {
11143
+ isRtl
11144
+ } = useRtl();
11138
11145
  const uid = getUid();
11139
11146
  const id = computed(() => props.id || `v-menu-${uid}`);
11140
11147
  const overlay = ref();
@@ -11197,9 +11204,9 @@ const VMenu = genericComponent()({
11197
11204
  isActive.value = false;
11198
11205
  overlay.value?.activatorEl?.focus();
11199
11206
  }
11200
- } else if (['Enter', ' '].includes(e.key) && props.closeOnContentClick) {
11207
+ } else if (props.submenu && e.key === (isRtl.value ? 'ArrowRight' : 'ArrowLeft')) {
11201
11208
  isActive.value = false;
11202
- parent?.closeParents();
11209
+ overlay.value?.activatorEl?.focus();
11203
11210
  }
11204
11211
  }
11205
11212
  function onActivatorKeydown(e) {
@@ -11208,12 +11215,21 @@ const VMenu = genericComponent()({
11208
11215
  if (el && isActive.value) {
11209
11216
  if (e.key === 'ArrowDown') {
11210
11217
  e.preventDefault();
11218
+ e.stopImmediatePropagation();
11211
11219
  focusChild(el, 'next');
11212
11220
  } else if (e.key === 'ArrowUp') {
11213
11221
  e.preventDefault();
11222
+ e.stopImmediatePropagation();
11214
11223
  focusChild(el, 'prev');
11224
+ } else if (props.submenu) {
11225
+ if (e.key === (isRtl.value ? 'ArrowRight' : 'ArrowLeft')) {
11226
+ isActive.value = false;
11227
+ } else if (e.key === (isRtl.value ? 'ArrowLeft' : 'ArrowRight')) {
11228
+ e.preventDefault();
11229
+ focusChild(el, 'first');
11230
+ }
11215
11231
  }
11216
- } else if (['ArrowDown', 'ArrowUp'].includes(e.key)) {
11232
+ } else if (props.submenu ? e.key === (isRtl.value ? 'ArrowLeft' : 'ArrowRight') : ['ArrowDown', 'ArrowUp'].includes(e.key)) {
11217
11233
  isActive.value = true;
11218
11234
  e.preventDefault();
11219
11235
  setTimeout(() => setTimeout(() => onActivatorKeydown(e)));
@@ -11237,6 +11253,7 @@ const VMenu = genericComponent()({
11237
11253
  "onUpdate:modelValue": $event => isActive.value = $event,
11238
11254
  "absolute": true,
11239
11255
  "activatorProps": activatorProps.value,
11256
+ "location": props.location ?? (props.submenu ? 'end' : 'bottom'),
11240
11257
  "onClick:outside": onClickOutside,
11241
11258
  "onKeydown": onKeydown
11242
11259
  }, scopeId), {
@@ -30308,7 +30325,7 @@ function createVuetify$1() {
30308
30325
  goTo
30309
30326
  };
30310
30327
  }
30311
- const version$1 = "3.7.0-beta.1-dev.2024-07-29";
30328
+ const version$1 = "3.7.0-beta.1-dev.2024-07-30";
30312
30329
  createVuetify$1.version = version$1;
30313
30330
 
30314
30331
  // Vue's inject() can only be used in setup
@@ -30561,7 +30578,7 @@ var index = /*#__PURE__*/Object.freeze({
30561
30578
 
30562
30579
  /* eslint-disable local-rules/sort-imports */
30563
30580
 
30564
- const version = "3.7.0-beta.1-dev.2024-07-29";
30581
+ const version = "3.7.0-beta.1-dev.2024-07-30";
30565
30582
 
30566
30583
  /* eslint-disable local-rules/sort-imports */
30567
30584