@vuetify/nightly 3.0.2-next-20221120.0 → 3.0.2

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 (37) hide show
  1. package/CHANGELOG.md +2 -10
  2. package/dist/json/importMap.json +110 -110
  3. package/dist/vuetify.css +3970 -3968
  4. package/dist/vuetify.d.ts +45 -45
  5. package/dist/vuetify.esm.js +42 -37
  6. package/dist/vuetify.esm.js.map +1 -1
  7. package/dist/vuetify.js +41 -36
  8. package/dist/vuetify.js.map +1 -1
  9. package/dist/vuetify.min.css +2 -2
  10. package/dist/vuetify.min.js +328 -325
  11. package/dist/vuetify.min.js.map +1 -1
  12. package/lib/components/VCard/VCardItem.mjs +1 -2
  13. package/lib/components/VCard/VCardItem.mjs.map +1 -1
  14. package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs +1 -1
  15. package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs.map +1 -1
  16. package/lib/components/VOverlay/scrollStrategies.mjs +4 -0
  17. package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
  18. package/lib/components/VOverlay/useActivator.mjs +4 -0
  19. package/lib/components/VOverlay/useActivator.mjs.map +1 -1
  20. package/lib/components/VRating/VRating.mjs +7 -6
  21. package/lib/components/VRating/VRating.mjs.map +1 -1
  22. package/lib/components/VRating/index.d.ts +14 -14
  23. package/lib/components/VSlideGroup/VSlideGroup.css +1 -0
  24. package/lib/components/VSlideGroup/VSlideGroup.sass +1 -0
  25. package/lib/components/VToolbar/VToolbar.css +1 -0
  26. package/lib/components/VToolbar/VToolbar.sass +1 -0
  27. package/lib/components/index.d.ts +14 -14
  28. package/lib/composables/toggleScope.mjs +6 -2
  29. package/lib/composables/toggleScope.mjs.map +1 -1
  30. package/lib/entry-bundler.mjs +1 -1
  31. package/lib/entry-bundler.mjs.map +1 -1
  32. package/lib/framework.mjs +1 -1
  33. package/lib/framework.mjs.map +1 -1
  34. package/lib/index.d.ts +31 -31
  35. package/lib/util/defineComponent.mjs +8 -13
  36. package/lib/util/defineComponent.mjs.map +1 -1
  37. package/package.json +1 -1
package/dist/vuetify.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.0.2-next-20221120.0
2
+ * Vuetify v3.0.2
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -931,6 +931,26 @@
931
931
  return newDefaults;
932
932
  }
933
933
 
934
+ function useToggleScope(source, cb) {
935
+ let scope;
936
+ vue.watch(source, active => {
937
+ if (active && !scope) {
938
+ scope = vue.effectScope();
939
+ scope.run(cb);
940
+ } else if (!active) {
941
+ var _scope;
942
+ (_scope = scope) == null ? void 0 : _scope.stop();
943
+ scope = undefined;
944
+ }
945
+ }, {
946
+ immediate: true
947
+ });
948
+ vue.onScopeDispose(() => {
949
+ var _scope2;
950
+ (_scope2 = scope) == null ? void 0 : _scope2.stop();
951
+ });
952
+ }
953
+
934
954
  /**
935
955
  * Creates a factory function for props definitions.
936
956
  * This is used to define props in a composable then override
@@ -1023,17 +1043,9 @@
1023
1043
  }
1024
1044
  });
1025
1045
  const setupBindings = options._setup(_props, ctx);
1026
- let scope;
1027
- vue.watch(_subcomponentDefaults, (val, oldVal) => {
1028
- if (!val && scope) scope.stop();else if (val && !oldVal) {
1029
- scope = vue.effectScope();
1030
- scope.run(() => {
1031
- var _injectSelf;
1032
- provideDefaults(mergeDeep(((_injectSelf = injectSelf(DefaultsSymbol)) == null ? void 0 : _injectSelf.value) ?? {}, val));
1033
- });
1034
- }
1035
- }, {
1036
- immediate: true
1046
+ useToggleScope(_subcomponentDefaults, () => {
1047
+ var _injectSelf;
1048
+ provideDefaults(mergeDeep(((_injectSelf = injectSelf(DefaultsSymbol)) == null ? void 0 : _injectSelf.value) ?? {}, _subcomponentDefaults.value));
1037
1049
  });
1038
1050
  return setupBindings;
1039
1051
  };
@@ -1780,22 +1792,6 @@
1780
1792
  return variables;
1781
1793
  }
1782
1794
 
1783
- function useToggleScope(source, cb) {
1784
- let scope;
1785
- vue.watch(source, active => {
1786
- if (active && !scope) {
1787
- scope = vue.effectScope();
1788
- scope.run(cb);
1789
- } else {
1790
- var _scope;
1791
- (_scope = scope) == null ? void 0 : _scope.stop();
1792
- scope = undefined;
1793
- }
1794
- }, {
1795
- immediate: true
1796
- });
1797
- }
1798
-
1799
1795
  // Utilities
1800
1796
 
1801
1797
  // Types
@@ -8351,6 +8347,10 @@
8351
8347
  flush: 'post',
8352
8348
  immediate: true
8353
8349
  });
8350
+ vue.onScopeDispose(() => {
8351
+ var _scope;
8352
+ (_scope = scope) == null ? void 0 : _scope.stop();
8353
+ });
8354
8354
  return {
8355
8355
  activatorEl,
8356
8356
  activatorRef,
@@ -8934,6 +8934,10 @@
8934
8934
  }
8935
8935
  });
8936
8936
  });
8937
+ vue.onScopeDispose(() => {
8938
+ var _scope2;
8939
+ (_scope2 = scope) == null ? void 0 : _scope2.stop();
8940
+ });
8937
8941
  }
8938
8942
  function closeScrollStrategy(data) {
8939
8943
  function onScroll(e) {
@@ -10788,7 +10792,7 @@
10788
10792
 
10789
10793
  const VCardTitle = createSimpleFunctional('v-card-title');
10790
10794
 
10791
- const VCardItem = vue.defineComponent({
10795
+ const VCardItem = defineComponent({
10792
10796
  name: 'VCardItem',
10793
10797
  props: {
10794
10798
  appendAvatar: String,
@@ -16118,7 +16122,7 @@
16118
16122
  },
16119
16123
  readonly: Boolean,
16120
16124
  modelValue: {
16121
- type: Number,
16125
+ type: [Number, String],
16122
16126
  default: 0
16123
16127
  },
16124
16128
  itemLabels: Array,
@@ -16147,6 +16151,7 @@
16147
16151
  themeClasses
16148
16152
  } = provideTheme(props);
16149
16153
  const rating = useProxiedModel(props, 'modelValue');
16154
+ const normalizedValue = vue.computed(() => clamp(parseFloat(rating.value), 0, +props.length));
16150
16155
  const range = vue.computed(() => createRange(Number(props.length), 1));
16151
16156
  const increments = vue.computed(() => range.value.flatMap(v => props.halfIncrements ? [v - 0.5, v] : [v]));
16152
16157
  const hoverIndex = vue.ref(-1);
@@ -16155,7 +16160,7 @@
16155
16160
  let isClicking = false;
16156
16161
  const itemState = vue.computed(() => increments.value.map(value => {
16157
16162
  const isHovering = props.hover && hoverIndex.value > -1;
16158
- const isFilled = rating.value >= value;
16163
+ const isFilled = normalizedValue.value >= value;
16159
16164
  const isHovered = hoverIndex.value >= value;
16160
16165
  const isFullIcon = isHovering ? isHovered : isFilled;
16161
16166
  const icon = isFullIcon ? props.fullIcon : props.emptyIcon;
@@ -16176,7 +16181,7 @@
16176
16181
  hoverIndex.value = -1;
16177
16182
  }
16178
16183
  function onFocus() {
16179
- if (value === 0 && rating.value === 0) {
16184
+ if (value === 0 && normalizedValue.value === 0) {
16180
16185
  var _firstRef$value;
16181
16186
  (_firstRef$value = firstRef.value) == null ? void 0 : _firstRef$value.focus();
16182
16187
  } else {
@@ -16188,7 +16193,7 @@
16188
16193
  }
16189
16194
  function onClick() {
16190
16195
  if (props.disabled || props.readonly) return;
16191
- rating.value = rating.value === value && props.clearable ? 0 : value;
16196
+ rating.value = normalizedValue.value === value && props.clearable ? 0 : value;
16192
16197
  }
16193
16198
  return {
16194
16199
  onMouseenter: props.hover ? onMouseenter : undefined,
@@ -16253,7 +16258,7 @@
16253
16258
  "id": id,
16254
16259
  "type": "radio",
16255
16260
  "value": value,
16256
- "checked": rating.value === value,
16261
+ "checked": normalizedValue.value === value,
16257
16262
  "onClick": onClick,
16258
16263
  "onFocus": onFocus,
16259
16264
  "onBlur": onBlur,
@@ -18162,7 +18167,7 @@
18162
18167
  locale
18163
18168
  };
18164
18169
  }
18165
- const version$1 = "3.0.2-next-20221120.0";
18170
+ const version$1 = "3.0.2";
18166
18171
  createVuetify$1.version = version$1;
18167
18172
 
18168
18173
  // Vue's inject() can only be used in setup
@@ -18183,7 +18188,7 @@
18183
18188
  ...options
18184
18189
  });
18185
18190
  };
18186
- const version = "3.0.2-next-20221120.0";
18191
+ const version = "3.0.2";
18187
18192
  createVuetify.version = version;
18188
18193
 
18189
18194
  exports.components = components;