@vuetify/nightly 3.7.1-master.2024-09-01 → 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.
Files changed (41) hide show
  1. package/dist/json/importMap-labs.json +12 -12
  2. package/dist/json/importMap.json +144 -144
  3. package/dist/json/web-types.json +1 -1
  4. package/dist/vuetify-labs.css +2674 -2671
  5. package/dist/vuetify-labs.esm.js +34 -31
  6. package/dist/vuetify-labs.esm.js.map +1 -1
  7. package/dist/vuetify-labs.js +34 -31
  8. package/dist/vuetify-labs.min.css +2 -2
  9. package/dist/vuetify.css +3427 -3424
  10. package/dist/vuetify.d.ts +48 -48
  11. package/dist/vuetify.esm.js +34 -31
  12. package/dist/vuetify.esm.js.map +1 -1
  13. package/dist/vuetify.js +34 -31
  14. package/dist/vuetify.js.map +1 -1
  15. package/dist/vuetify.min.css +2 -2
  16. package/dist/vuetify.min.js +267 -267
  17. package/dist/vuetify.min.js.map +1 -1
  18. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +3 -5
  19. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
  20. package/lib/components/VBtn/VBtn.mjs +3 -4
  21. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  22. package/lib/components/VCard/VCard.mjs +3 -4
  23. package/lib/components/VCard/VCard.mjs.map +1 -1
  24. package/lib/components/VChip/VChip.mjs +2 -3
  25. package/lib/components/VChip/VChip.mjs.map +1 -1
  26. package/lib/components/VDialog/VDialog.css +4 -1
  27. package/lib/components/VDialog/VDialog.mjs +1 -2
  28. package/lib/components/VDialog/VDialog.mjs.map +1 -1
  29. package/lib/components/VDialog/VDialog.sass +2 -1
  30. package/lib/components/VList/VListItem.mjs +3 -4
  31. package/lib/components/VList/VListItem.mjs.map +1 -1
  32. package/lib/composables/directiveComponent.mjs +1 -1
  33. package/lib/composables/directiveComponent.mjs.map +1 -1
  34. package/lib/composables/router.mjs +19 -9
  35. package/lib/composables/router.mjs.map +1 -1
  36. package/lib/directives/tooltip/index.mjs +1 -1
  37. package/lib/directives/tooltip/index.mjs.map +1 -1
  38. package/lib/entry-bundler.mjs +1 -1
  39. package/lib/framework.mjs +1 -1
  40. package/lib/index.d.mts +48 -48
  41. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.7.1-master.2024-09-01
2
+ * Vuetify v3.7.1-master.2024-09-03
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -5156,10 +5156,14 @@ function useLink(props, attrs) {
5156
5156
  return isLink?.value || hasEvent(attrs, 'click') || hasEvent(props, 'click');
5157
5157
  });
5158
5158
  if (typeof RouterLink === 'string' || !('useLink' in RouterLink)) {
5159
+ const href = toRef(props, 'href');
5159
5160
  return {
5160
5161
  isLink,
5161
5162
  isClickable,
5162
- href: toRef(props, 'href')
5163
+ href,
5164
+ linkProps: reactive({
5165
+ href
5166
+ })
5163
5167
  };
5164
5168
  }
5165
5169
  // vue-router useLink `to` prop needs to be reactive and useLink will crash if undefined
@@ -5171,18 +5175,24 @@ function useLink(props, attrs) {
5171
5175
  // Actual link needs to be undefined when to prop is not used
5172
5176
  const link = computed(() => props.to ? routerLink : undefined);
5173
5177
  const route = useRoute();
5178
+ const isActive = computed(() => {
5179
+ if (!link.value) return false;
5180
+ if (!props.exact) return link.value.isActive?.value ?? false;
5181
+ if (!route.value) return link.value.isExactActive?.value ?? false;
5182
+ return link.value.isExactActive?.value && deepEqual(link.value.route.value.query, route.value.query);
5183
+ });
5184
+ const href = computed(() => props.to ? link.value?.route.value.href : props.href);
5174
5185
  return {
5175
5186
  isLink,
5176
5187
  isClickable,
5188
+ isActive,
5177
5189
  route: link.value?.route,
5178
5190
  navigate: link.value?.navigate,
5179
- isActive: computed(() => {
5180
- if (!link.value) return false;
5181
- if (!props.exact) return link.value.isActive?.value ?? false;
5182
- if (!route.value) return link.value.isExactActive?.value ?? false;
5183
- return link.value.isExactActive?.value && deepEqual(link.value.route.value.query, route.value.query);
5184
- }),
5185
- href: computed(() => props.to ? link.value?.route.value.href : props.href)
5191
+ href,
5192
+ linkProps: reactive({
5193
+ href,
5194
+ 'aria-current': computed(() => isActive.value ? 'page' : undefined)
5195
+ })
5186
5196
  };
5187
5197
  }
5188
5198
  const makeRouterProps = propsFactory({
@@ -5657,7 +5667,7 @@ const VBtn = genericComponent()({
5657
5667
  const hasPrepend = !!(props.prependIcon || slots.prepend);
5658
5668
  const hasAppend = !!(props.appendIcon || slots.append);
5659
5669
  const hasIcon = !!(props.icon && props.icon !== true);
5660
- return withDirectives(createVNode(Tag, {
5670
+ return withDirectives(createVNode(Tag, mergeProps({
5661
5671
  "type": Tag === 'a' ? undefined : 'button',
5662
5672
  "class": ['v-btn', group?.selectedClass.value, {
5663
5673
  'v-btn--active': isActive.value,
@@ -5674,11 +5684,10 @@ const VBtn = genericComponent()({
5674
5684
  "style": [colorStyles.value, dimensionStyles.value, locationStyles.value, sizeStyles.value, props.style],
5675
5685
  "aria-busy": props.loading ? true : undefined,
5676
5686
  "disabled": isDisabled.value || undefined,
5677
- "href": link.href.value,
5678
5687
  "tabindex": props.loading || props.readonly ? -1 : undefined,
5679
5688
  "onClick": onClick,
5680
5689
  "value": valueAttr.value
5681
- }, {
5690
+ }, link.linkProps), {
5682
5691
  default: () => [genOverlays(true, 'v-btn'), !props.icon && hasPrepend && createVNode("span", {
5683
5692
  "key": "prepend",
5684
5693
  "class": "v-btn__prepend"
@@ -7941,7 +7950,7 @@ const VChip = genericComponent()({
7941
7950
  const hasPrependMedia = !!(props.prependIcon || props.prependAvatar);
7942
7951
  const hasPrepend = !!(hasPrependMedia || slots.prepend);
7943
7952
  const hasColor = !group || group.isSelected.value;
7944
- return isActive.value && withDirectives(createVNode(Tag, {
7953
+ return isActive.value && withDirectives(createVNode(Tag, mergeProps({
7945
7954
  "class": ['v-chip', {
7946
7955
  'v-chip--disabled': props.disabled,
7947
7956
  'v-chip--label': props.label,
@@ -7952,11 +7961,10 @@ const VChip = genericComponent()({
7952
7961
  "style": [hasColor ? colorStyles.value : undefined, props.style],
7953
7962
  "disabled": props.disabled || undefined,
7954
7963
  "draggable": props.draggable,
7955
- "href": link.href.value,
7956
7964
  "tabindex": isClickable.value ? 0 : undefined,
7957
7965
  "onClick": onClick,
7958
7966
  "onKeydown": isClickable.value && !isLink.value && onKeyDown
7959
- }, {
7967
+ }, link.linkProps), {
7960
7968
  default: () => [genOverlays(isClickable.value, 'v-chip'), hasFilter && createVNode(VExpandXTransition, {
7961
7969
  "key": "filter"
7962
7970
  }, {
@@ -9001,7 +9009,7 @@ const VListItem = genericComponent()({
9001
9009
  if (props.activeColor) {
9002
9010
  deprecate('active-color', ['color', 'base-color']);
9003
9011
  }
9004
- return withDirectives(createVNode(Tag, {
9012
+ return withDirectives(createVNode(Tag, mergeProps({
9005
9013
  "class": ['v-list-item', {
9006
9014
  'v-list-item--active': isActive.value,
9007
9015
  'v-list-item--disabled': props.disabled,
@@ -9012,11 +9020,10 @@ const VListItem = genericComponent()({
9012
9020
  [`${props.activeClass}`]: props.activeClass && isActive.value
9013
9021
  }, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, lineClasses.value, roundedClasses.value, variantClasses.value, props.class],
9014
9022
  "style": [colorStyles.value, dimensionStyles.value, props.style],
9015
- "href": link.href.value,
9016
9023
  "tabindex": isClickable.value ? list ? -2 : 0 : undefined,
9017
9024
  "onClick": onClick,
9018
9025
  "onKeydown": isClickable.value && !isLink.value && onKeyDown
9019
- }, {
9026
+ }, link.linkProps), {
9020
9027
  default: () => [genOverlays(isClickable.value || isActive.value, 'v-list-item'), hasPrepend && createVNode("div", {
9021
9028
  "key": "prepend",
9022
9029
  "class": "v-list-item__prepend"
@@ -13772,8 +13779,7 @@ const VDialog = genericComponent()({
13772
13779
  useRender(() => {
13773
13780
  const overlayProps = VOverlay.filterProps(props);
13774
13781
  const activatorProps = mergeProps({
13775
- 'aria-haspopup': 'dialog',
13776
- 'aria-expanded': String(isActive.value)
13782
+ 'aria-haspopup': 'dialog'
13777
13783
  }, props.activatorProps);
13778
13784
  const contentProps = mergeProps({
13779
13785
  tabindex: -1
@@ -13904,12 +13910,10 @@ const VBreadcrumbsItem = genericComponent()({
13904
13910
  "style": [textColorStyles.value, props.style],
13905
13911
  "aria-current": isActive.value ? 'page' : undefined
13906
13912
  }, {
13907
- default: () => [!link.isLink.value ? slots.default?.() ?? props.title : createVNode("a", {
13913
+ default: () => [!link.isLink.value ? slots.default?.() ?? props.title : createVNode("a", mergeProps({
13908
13914
  "class": "v-breadcrumbs-item--link",
13909
- "href": link.href.value,
13910
- "aria-current": isActive.value ? 'page' : undefined,
13911
13915
  "onClick": link.navigate
13912
- }, [slots.default?.() ?? props.title])]
13916
+ }, link.linkProps), [slots.default?.() ?? props.title])]
13913
13917
  });
13914
13918
  });
13915
13919
  return {};
@@ -14285,7 +14289,7 @@ const VCard = genericComponent()({
14285
14289
  const hasImage = !!(slots.image || props.image);
14286
14290
  const hasCardItem = hasHeader || hasPrepend || hasAppend;
14287
14291
  const hasText = !!(slots.text || props.text != null);
14288
- return withDirectives(createVNode(Tag, {
14292
+ return withDirectives(createVNode(Tag, mergeProps({
14289
14293
  "class": ['v-card', {
14290
14294
  'v-card--disabled': props.disabled,
14291
14295
  'v-card--flat': props.flat,
@@ -14293,10 +14297,9 @@ const VCard = genericComponent()({
14293
14297
  'v-card--link': isClickable.value
14294
14298
  }, themeClasses.value, borderClasses.value, colorClasses.value, densityClasses.value, elevationClasses.value, loaderClasses.value, positionClasses.value, roundedClasses.value, variantClasses.value, props.class],
14295
14299
  "style": [colorStyles.value, dimensionStyles.value, locationStyles.value, props.style],
14296
- "href": link.href.value,
14297
14300
  "onClick": isClickable.value && link.navigate,
14298
14301
  "tabindex": props.disabled ? -1 : undefined
14299
- }, {
14302
+ }, link.linkProps), {
14300
14303
  default: () => [hasImage && createVNode("div", {
14301
14304
  "key": "image",
14302
14305
  "class": "v-card__image"
@@ -30224,7 +30227,7 @@ function mountComponent(component, props) {
30224
30227
  const value = isObject(binding.value) ? binding.value : {};
30225
30228
 
30226
30229
  // Get the children from the props or directive value, or the element's children
30227
- const children = () => text ?? el.innerHTML;
30230
+ const children = () => text ?? el.textContent;
30228
30231
 
30229
30232
  // If vnode.ctx is the same as the instance, then we're bound to a plain element
30230
30233
  // and need to find the nearest parent component instance to inherit provides from
@@ -30282,7 +30285,7 @@ function findComponentParent(vnode, root) {
30282
30285
  const Tooltip = useDirectiveComponent(VTooltip, binding => {
30283
30286
  return {
30284
30287
  activator: 'parent',
30285
- location: binding.arg?.replace('-', ' ') ?? 'top',
30288
+ location: binding.arg?.replace('-', ' '),
30286
30289
  text: typeof binding.value === 'boolean' ? undefined : binding.value
30287
30290
  };
30288
30291
  });
@@ -30388,7 +30391,7 @@ function createVuetify$1() {
30388
30391
  goTo
30389
30392
  };
30390
30393
  }
30391
- const version$1 = "3.7.1-master.2024-09-01";
30394
+ const version$1 = "3.7.1-master.2024-09-03";
30392
30395
  createVuetify$1.version = version$1;
30393
30396
 
30394
30397
  // Vue's inject() can only be used in setup
@@ -30641,7 +30644,7 @@ var index = /*#__PURE__*/Object.freeze({
30641
30644
 
30642
30645
  /* eslint-disable local-rules/sort-imports */
30643
30646
 
30644
- const version = "3.7.1-master.2024-09-01";
30647
+ const version = "3.7.1-master.2024-09-03";
30645
30648
 
30646
30649
  /* eslint-disable local-rules/sort-imports */
30647
30650