@vuetify/nightly 3.7.1-master.2024-09-02 → 3.7.1-master.2024-09-03
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/importMap-labs.json +18 -18
- package/dist/json/importMap.json +164 -164
- package/dist/json/web-types.json +1 -1
- package/dist/vuetify-labs.css +2480 -2477
- package/dist/vuetify-labs.esm.js +34 -31
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +34 -31
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +2919 -2916
- package/dist/vuetify.d.ts +53 -53
- package/dist/vuetify.esm.js +34 -31
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +34 -31
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +267 -267
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +3 -5
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
- package/lib/components/VBtn/VBtn.mjs +3 -4
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VCard/VCard.mjs +3 -4
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VChip/VChip.mjs +2 -3
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.css +4 -1
- package/lib/components/VDialog/VDialog.mjs +1 -2
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.sass +2 -1
- package/lib/components/VList/VListItem.mjs +3 -4
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/composables/directiveComponent.mjs +1 -1
- package/lib/composables/directiveComponent.mjs.map +1 -1
- package/lib/composables/router.mjs +19 -9
- package/lib/composables/router.mjs.map +1 -1
- package/lib/directives/tooltip/index.mjs +1 -1
- package/lib/directives/tooltip/index.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +53 -53
- package/package.json +1 -1
package/dist/vuetify-labs.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.7.1-master.2024-09-
|
2
|
+
* Vuetify v3.7.1-master.2024-09-03
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -5160,10 +5160,14 @@
|
|
5160
5160
|
return isLink?.value || hasEvent(attrs, 'click') || hasEvent(props, 'click');
|
5161
5161
|
});
|
5162
5162
|
if (typeof RouterLink === 'string' || !('useLink' in RouterLink)) {
|
5163
|
+
const href = vue.toRef(props, 'href');
|
5163
5164
|
return {
|
5164
5165
|
isLink,
|
5165
5166
|
isClickable,
|
5166
|
-
href
|
5167
|
+
href,
|
5168
|
+
linkProps: vue.reactive({
|
5169
|
+
href
|
5170
|
+
})
|
5167
5171
|
};
|
5168
5172
|
}
|
5169
5173
|
// vue-router useLink `to` prop needs to be reactive and useLink will crash if undefined
|
@@ -5175,18 +5179,24 @@
|
|
5175
5179
|
// Actual link needs to be undefined when to prop is not used
|
5176
5180
|
const link = vue.computed(() => props.to ? routerLink : undefined);
|
5177
5181
|
const route = useRoute();
|
5182
|
+
const isActive = vue.computed(() => {
|
5183
|
+
if (!link.value) return false;
|
5184
|
+
if (!props.exact) return link.value.isActive?.value ?? false;
|
5185
|
+
if (!route.value) return link.value.isExactActive?.value ?? false;
|
5186
|
+
return link.value.isExactActive?.value && deepEqual(link.value.route.value.query, route.value.query);
|
5187
|
+
});
|
5188
|
+
const href = vue.computed(() => props.to ? link.value?.route.value.href : props.href);
|
5178
5189
|
return {
|
5179
5190
|
isLink,
|
5180
5191
|
isClickable,
|
5192
|
+
isActive,
|
5181
5193
|
route: link.value?.route,
|
5182
5194
|
navigate: link.value?.navigate,
|
5183
|
-
|
5184
|
-
|
5185
|
-
|
5186
|
-
|
5187
|
-
|
5188
|
-
}),
|
5189
|
-
href: vue.computed(() => props.to ? link.value?.route.value.href : props.href)
|
5195
|
+
href,
|
5196
|
+
linkProps: vue.reactive({
|
5197
|
+
href,
|
5198
|
+
'aria-current': vue.computed(() => isActive.value ? 'page' : undefined)
|
5199
|
+
})
|
5190
5200
|
};
|
5191
5201
|
}
|
5192
5202
|
const makeRouterProps = propsFactory({
|
@@ -5661,7 +5671,7 @@
|
|
5661
5671
|
const hasPrepend = !!(props.prependIcon || slots.prepend);
|
5662
5672
|
const hasAppend = !!(props.appendIcon || slots.append);
|
5663
5673
|
const hasIcon = !!(props.icon && props.icon !== true);
|
5664
|
-
return vue.withDirectives(vue.createVNode(Tag, {
|
5674
|
+
return vue.withDirectives(vue.createVNode(Tag, vue.mergeProps({
|
5665
5675
|
"type": Tag === 'a' ? undefined : 'button',
|
5666
5676
|
"class": ['v-btn', group?.selectedClass.value, {
|
5667
5677
|
'v-btn--active': isActive.value,
|
@@ -5678,11 +5688,10 @@
|
|
5678
5688
|
"style": [colorStyles.value, dimensionStyles.value, locationStyles.value, sizeStyles.value, props.style],
|
5679
5689
|
"aria-busy": props.loading ? true : undefined,
|
5680
5690
|
"disabled": isDisabled.value || undefined,
|
5681
|
-
"href": link.href.value,
|
5682
5691
|
"tabindex": props.loading || props.readonly ? -1 : undefined,
|
5683
5692
|
"onClick": onClick,
|
5684
5693
|
"value": valueAttr.value
|
5685
|
-
}, {
|
5694
|
+
}, link.linkProps), {
|
5686
5695
|
default: () => [genOverlays(true, 'v-btn'), !props.icon && hasPrepend && vue.createVNode("span", {
|
5687
5696
|
"key": "prepend",
|
5688
5697
|
"class": "v-btn__prepend"
|
@@ -7945,7 +7954,7 @@
|
|
7945
7954
|
const hasPrependMedia = !!(props.prependIcon || props.prependAvatar);
|
7946
7955
|
const hasPrepend = !!(hasPrependMedia || slots.prepend);
|
7947
7956
|
const hasColor = !group || group.isSelected.value;
|
7948
|
-
return isActive.value && vue.withDirectives(vue.createVNode(Tag, {
|
7957
|
+
return isActive.value && vue.withDirectives(vue.createVNode(Tag, vue.mergeProps({
|
7949
7958
|
"class": ['v-chip', {
|
7950
7959
|
'v-chip--disabled': props.disabled,
|
7951
7960
|
'v-chip--label': props.label,
|
@@ -7956,11 +7965,10 @@
|
|
7956
7965
|
"style": [hasColor ? colorStyles.value : undefined, props.style],
|
7957
7966
|
"disabled": props.disabled || undefined,
|
7958
7967
|
"draggable": props.draggable,
|
7959
|
-
"href": link.href.value,
|
7960
7968
|
"tabindex": isClickable.value ? 0 : undefined,
|
7961
7969
|
"onClick": onClick,
|
7962
7970
|
"onKeydown": isClickable.value && !isLink.value && onKeyDown
|
7963
|
-
}, {
|
7971
|
+
}, link.linkProps), {
|
7964
7972
|
default: () => [genOverlays(isClickable.value, 'v-chip'), hasFilter && vue.createVNode(VExpandXTransition, {
|
7965
7973
|
"key": "filter"
|
7966
7974
|
}, {
|
@@ -9005,7 +9013,7 @@
|
|
9005
9013
|
if (props.activeColor) {
|
9006
9014
|
deprecate('active-color', ['color', 'base-color']);
|
9007
9015
|
}
|
9008
|
-
return vue.withDirectives(vue.createVNode(Tag, {
|
9016
|
+
return vue.withDirectives(vue.createVNode(Tag, vue.mergeProps({
|
9009
9017
|
"class": ['v-list-item', {
|
9010
9018
|
'v-list-item--active': isActive.value,
|
9011
9019
|
'v-list-item--disabled': props.disabled,
|
@@ -9016,11 +9024,10 @@
|
|
9016
9024
|
[`${props.activeClass}`]: props.activeClass && isActive.value
|
9017
9025
|
}, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, lineClasses.value, roundedClasses.value, variantClasses.value, props.class],
|
9018
9026
|
"style": [colorStyles.value, dimensionStyles.value, props.style],
|
9019
|
-
"href": link.href.value,
|
9020
9027
|
"tabindex": isClickable.value ? list ? -2 : 0 : undefined,
|
9021
9028
|
"onClick": onClick,
|
9022
9029
|
"onKeydown": isClickable.value && !isLink.value && onKeyDown
|
9023
|
-
}, {
|
9030
|
+
}, link.linkProps), {
|
9024
9031
|
default: () => [genOverlays(isClickable.value || isActive.value, 'v-list-item'), hasPrepend && vue.createVNode("div", {
|
9025
9032
|
"key": "prepend",
|
9026
9033
|
"class": "v-list-item__prepend"
|
@@ -13776,8 +13783,7 @@
|
|
13776
13783
|
useRender(() => {
|
13777
13784
|
const overlayProps = VOverlay.filterProps(props);
|
13778
13785
|
const activatorProps = vue.mergeProps({
|
13779
|
-
'aria-haspopup': 'dialog'
|
13780
|
-
'aria-expanded': String(isActive.value)
|
13786
|
+
'aria-haspopup': 'dialog'
|
13781
13787
|
}, props.activatorProps);
|
13782
13788
|
const contentProps = vue.mergeProps({
|
13783
13789
|
tabindex: -1
|
@@ -13908,12 +13914,10 @@
|
|
13908
13914
|
"style": [textColorStyles.value, props.style],
|
13909
13915
|
"aria-current": isActive.value ? 'page' : undefined
|
13910
13916
|
}, {
|
13911
|
-
default: () => [!link.isLink.value ? slots.default?.() ?? props.title : vue.createVNode("a", {
|
13917
|
+
default: () => [!link.isLink.value ? slots.default?.() ?? props.title : vue.createVNode("a", vue.mergeProps({
|
13912
13918
|
"class": "v-breadcrumbs-item--link",
|
13913
|
-
"href": link.href.value,
|
13914
|
-
"aria-current": isActive.value ? 'page' : undefined,
|
13915
13919
|
"onClick": link.navigate
|
13916
|
-
}, [slots.default?.() ?? props.title])]
|
13920
|
+
}, link.linkProps), [slots.default?.() ?? props.title])]
|
13917
13921
|
});
|
13918
13922
|
});
|
13919
13923
|
return {};
|
@@ -14289,7 +14293,7 @@
|
|
14289
14293
|
const hasImage = !!(slots.image || props.image);
|
14290
14294
|
const hasCardItem = hasHeader || hasPrepend || hasAppend;
|
14291
14295
|
const hasText = !!(slots.text || props.text != null);
|
14292
|
-
return vue.withDirectives(vue.createVNode(Tag, {
|
14296
|
+
return vue.withDirectives(vue.createVNode(Tag, vue.mergeProps({
|
14293
14297
|
"class": ['v-card', {
|
14294
14298
|
'v-card--disabled': props.disabled,
|
14295
14299
|
'v-card--flat': props.flat,
|
@@ -14297,10 +14301,9 @@
|
|
14297
14301
|
'v-card--link': isClickable.value
|
14298
14302
|
}, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, loaderClasses.value, positionClasses.value, roundedClasses.value, variantClasses.value, props.class],
|
14299
14303
|
"style": [colorStyles.value, dimensionStyles.value, locationStyles.value, props.style],
|
14300
|
-
"href": link.href.value,
|
14301
14304
|
"onClick": isClickable.value && link.navigate,
|
14302
14305
|
"tabindex": props.disabled ? -1 : undefined
|
14303
|
-
}, {
|
14306
|
+
}, link.linkProps), {
|
14304
14307
|
default: () => [hasImage && vue.createVNode("div", {
|
14305
14308
|
"key": "image",
|
14306
14309
|
"class": "v-card__image"
|
@@ -30228,7 +30231,7 @@
|
|
30228
30231
|
const value = isObject(binding.value) ? binding.value : {};
|
30229
30232
|
|
30230
30233
|
// Get the children from the props or directive value, or the element's children
|
30231
|
-
const children = () => text ?? el.
|
30234
|
+
const children = () => text ?? el.textContent;
|
30232
30235
|
|
30233
30236
|
// If vnode.ctx is the same as the instance, then we're bound to a plain element
|
30234
30237
|
// and need to find the nearest parent component instance to inherit provides from
|
@@ -30286,7 +30289,7 @@
|
|
30286
30289
|
const Tooltip = useDirectiveComponent(VTooltip, binding => {
|
30287
30290
|
return {
|
30288
30291
|
activator: 'parent',
|
30289
|
-
location: binding.arg?.replace('-', ' ')
|
30292
|
+
location: binding.arg?.replace('-', ' '),
|
30290
30293
|
text: typeof binding.value === 'boolean' ? undefined : binding.value
|
30291
30294
|
};
|
30292
30295
|
});
|
@@ -30392,7 +30395,7 @@
|
|
30392
30395
|
goTo
|
30393
30396
|
};
|
30394
30397
|
}
|
30395
|
-
const version$1 = "3.7.1-master.2024-09-
|
30398
|
+
const version$1 = "3.7.1-master.2024-09-03";
|
30396
30399
|
createVuetify$1.version = version$1;
|
30397
30400
|
|
30398
30401
|
// Vue's inject() can only be used in setup
|
@@ -30645,7 +30648,7 @@
|
|
30645
30648
|
|
30646
30649
|
/* eslint-disable local-rules/sort-imports */
|
30647
30650
|
|
30648
|
-
const version = "3.7.1-master.2024-09-
|
30651
|
+
const version = "3.7.1-master.2024-09-03";
|
30649
30652
|
|
30650
30653
|
/* eslint-disable local-rules/sort-imports */
|
30651
30654
|
|