@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.
- package/dist/json/attributes.json +8 -0
- package/dist/json/importMap-labs.json +28 -28
- package/dist/json/importMap.json +118 -118
- package/dist/json/tags.json +2 -0
- package/dist/json/web-types.json +21 -2
- package/dist/vuetify-labs.css +3545 -3545
- package/dist/vuetify-labs.d.ts +190 -106
- package/dist/vuetify-labs.esm.js +30 -13
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +30 -13
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +2151 -2151
- package/dist/vuetify.d.ts +231 -147
- package/dist/vuetify.esm.js +30 -13
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +30 -13
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +43 -43
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +42 -24
- package/lib/components/VCombobox/index.d.mts +42 -24
- package/lib/components/VDialog/index.d.mts +3 -3
- package/lib/components/VList/VListItem.mjs +1 -1
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VMenu/VMenu.mjs +19 -3
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/index.d.mts +27 -12
- package/lib/components/VOverlay/VOverlay.mjs +5 -4
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/useActivator.mjs +3 -2
- package/lib/components/VOverlay/useActivator.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +42 -24
- package/lib/components/VSnackbar/index.d.mts +3 -3
- package/lib/components/VSpeedDial/index.d.mts +28 -13
- package/lib/components/VTooltip/index.d.mts +3 -3
- package/lib/components/index.d.mts +190 -106
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +41 -41
- package/lib/labs/VSnackbarQueue/index.d.mts +3 -3
- package/lib/labs/components.d.mts +3 -3
- package/package.json +1 -1
package/dist/vuetify.esm.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.7.0-beta.1-dev.2024-07-
|
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
|
*/
|
@@ -9191,7 +9191,7 @@ const VListItem = genericComponent()({
|
|
9191
9191
|
function onKeyDown(e) {
|
9192
9192
|
if (e.key === 'Enter' || e.key === ' ') {
|
9193
9193
|
e.preventDefault();
|
9194
|
-
|
9194
|
+
e.target.dispatchEvent(new MouseEvent('click', e));
|
9195
9195
|
}
|
9196
9196
|
}
|
9197
9197
|
useRender(() => {
|
@@ -10508,7 +10508,8 @@ const makeActivatorProps = propsFactory({
|
|
10508
10508
|
function useActivator(props, _ref) {
|
10509
10509
|
let {
|
10510
10510
|
isActive,
|
10511
|
-
isTop
|
10511
|
+
isTop,
|
10512
|
+
contentEl
|
10512
10513
|
} = _ref;
|
10513
10514
|
const vm = getCurrentInstance('useActivator');
|
10514
10515
|
const activatorEl = ref();
|
@@ -10625,7 +10626,7 @@ function useActivator(props, _ref) {
|
|
10625
10626
|
return events;
|
10626
10627
|
});
|
10627
10628
|
watch(isTop, val => {
|
10628
|
-
if (val && (props.openOnHover && !isHovered && (!openOnFocus.value || !isFocused) || openOnFocus.value && !isFocused && (!props.openOnHover || !isHovered))) {
|
10629
|
+
if (val && (props.openOnHover && !isHovered && (!openOnFocus.value || !isFocused) || openOnFocus.value && !isFocused && (!props.openOnHover || !isHovered)) && !contentEl.value?.contains(document.activeElement)) {
|
10629
10630
|
isActive.value = false;
|
10630
10631
|
}
|
10631
10632
|
});
|
@@ -11031,6 +11032,9 @@ const VOverlay = genericComponent()({
|
|
11031
11032
|
attrs,
|
11032
11033
|
emit
|
11033
11034
|
} = _ref;
|
11035
|
+
const root = ref();
|
11036
|
+
const scrimEl = ref();
|
11037
|
+
const contentEl = ref();
|
11034
11038
|
const model = useProxiedModel(props, 'modelValue');
|
11035
11039
|
const isActive = computed({
|
11036
11040
|
get: () => model.value,
|
@@ -11068,7 +11072,8 @@ const VOverlay = genericComponent()({
|
|
11068
11072
|
scrimEvents
|
11069
11073
|
} = useActivator(props, {
|
11070
11074
|
isActive,
|
11071
|
-
isTop: localTop
|
11075
|
+
isTop: localTop,
|
11076
|
+
contentEl
|
11072
11077
|
});
|
11073
11078
|
const {
|
11074
11079
|
teleportTarget
|
@@ -11089,9 +11094,6 @@ const VOverlay = genericComponent()({
|
|
11089
11094
|
watch(() => props.disabled, v => {
|
11090
11095
|
if (v) isActive.value = false;
|
11091
11096
|
});
|
11092
|
-
const root = ref();
|
11093
|
-
const scrimEl = ref();
|
11094
|
-
const contentEl = ref();
|
11095
11097
|
const {
|
11096
11098
|
contentStyles,
|
11097
11099
|
updateLocation
|
@@ -11342,10 +11344,12 @@ const makeVMenuProps = propsFactory({
|
|
11342
11344
|
// TODO
|
11343
11345
|
// disableKeys: Boolean,
|
11344
11346
|
id: String,
|
11347
|
+
submenu: Boolean,
|
11345
11348
|
...omit(makeVOverlayProps({
|
11346
11349
|
closeDelay: 250,
|
11347
11350
|
closeOnContentClick: true,
|
11348
11351
|
locationStrategy: 'connected',
|
11352
|
+
location: undefined,
|
11349
11353
|
openDelay: 300,
|
11350
11354
|
scrim: false,
|
11351
11355
|
scrollStrategy: 'reposition',
|
@@ -11368,6 +11372,9 @@ const VMenu = genericComponent()({
|
|
11368
11372
|
const {
|
11369
11373
|
scopeId
|
11370
11374
|
} = useScopeId();
|
11375
|
+
const {
|
11376
|
+
isRtl
|
11377
|
+
} = useRtl();
|
11371
11378
|
const uid = getUid();
|
11372
11379
|
const id = computed(() => props.id || `v-menu-${uid}`);
|
11373
11380
|
const overlay = ref();
|
@@ -11430,9 +11437,9 @@ const VMenu = genericComponent()({
|
|
11430
11437
|
isActive.value = false;
|
11431
11438
|
overlay.value?.activatorEl?.focus();
|
11432
11439
|
}
|
11433
|
-
} else if (
|
11440
|
+
} else if (props.submenu && e.key === (isRtl.value ? 'ArrowRight' : 'ArrowLeft')) {
|
11434
11441
|
isActive.value = false;
|
11435
|
-
|
11442
|
+
overlay.value?.activatorEl?.focus();
|
11436
11443
|
}
|
11437
11444
|
}
|
11438
11445
|
function onActivatorKeydown(e) {
|
@@ -11441,12 +11448,21 @@ const VMenu = genericComponent()({
|
|
11441
11448
|
if (el && isActive.value) {
|
11442
11449
|
if (e.key === 'ArrowDown') {
|
11443
11450
|
e.preventDefault();
|
11451
|
+
e.stopImmediatePropagation();
|
11444
11452
|
focusChild(el, 'next');
|
11445
11453
|
} else if (e.key === 'ArrowUp') {
|
11446
11454
|
e.preventDefault();
|
11455
|
+
e.stopImmediatePropagation();
|
11447
11456
|
focusChild(el, 'prev');
|
11457
|
+
} else if (props.submenu) {
|
11458
|
+
if (e.key === (isRtl.value ? 'ArrowRight' : 'ArrowLeft')) {
|
11459
|
+
isActive.value = false;
|
11460
|
+
} else if (e.key === (isRtl.value ? 'ArrowLeft' : 'ArrowRight')) {
|
11461
|
+
e.preventDefault();
|
11462
|
+
focusChild(el, 'first');
|
11463
|
+
}
|
11448
11464
|
}
|
11449
|
-
} else if (['ArrowDown', 'ArrowUp'].includes(e.key)) {
|
11465
|
+
} else if (props.submenu ? e.key === (isRtl.value ? 'ArrowLeft' : 'ArrowRight') : ['ArrowDown', 'ArrowUp'].includes(e.key)) {
|
11450
11466
|
isActive.value = true;
|
11451
11467
|
e.preventDefault();
|
11452
11468
|
setTimeout(() => setTimeout(() => onActivatorKeydown(e)));
|
@@ -11470,6 +11486,7 @@ const VMenu = genericComponent()({
|
|
11470
11486
|
"onUpdate:modelValue": $event => isActive.value = $event,
|
11471
11487
|
"absolute": true,
|
11472
11488
|
"activatorProps": activatorProps.value,
|
11489
|
+
"location": props.location ?? (props.submenu ? 'end' : 'bottom'),
|
11473
11490
|
"onClick:outside": onClickOutside,
|
11474
11491
|
"onKeydown": onKeydown
|
11475
11492
|
}, scopeId), {
|
@@ -28175,7 +28192,7 @@ function createVuetify$1() {
|
|
28175
28192
|
goTo
|
28176
28193
|
};
|
28177
28194
|
}
|
28178
|
-
const version$1 = "3.7.0-beta.1-dev.2024-07-
|
28195
|
+
const version$1 = "3.7.0-beta.1-dev.2024-07-30";
|
28179
28196
|
createVuetify$1.version = version$1;
|
28180
28197
|
|
28181
28198
|
// Vue's inject() can only be used in setup
|
@@ -28200,7 +28217,7 @@ const createVuetify = function () {
|
|
28200
28217
|
...options
|
28201
28218
|
});
|
28202
28219
|
};
|
28203
|
-
const version = "3.7.0-beta.1-dev.2024-07-
|
28220
|
+
const version = "3.7.0-beta.1-dev.2024-07-30";
|
28204
28221
|
createVuetify.version = version;
|
28205
28222
|
|
28206
28223
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|