@vuetify/nightly 3.0.4 → 3.0.5-dev-20221212.0

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 (59) hide show
  1. package/CHANGELOG.md +13 -2
  2. package/dist/json/importMap.json +12 -12
  3. package/dist/vuetify.css +65 -66
  4. package/dist/vuetify.d.ts +201 -159
  5. package/dist/vuetify.esm.js +39 -23
  6. package/dist/vuetify.esm.js.map +1 -1
  7. package/dist/vuetify.js +39 -23
  8. package/dist/vuetify.js.map +1 -1
  9. package/dist/vuetify.min.css +2 -2
  10. package/dist/vuetify.min.js +26 -26
  11. package/dist/vuetify.min.js.map +1 -1
  12. package/lib/components/VAlert/index.d.ts +1 -1
  13. package/lib/components/VAutocomplete/index.d.ts +21 -24
  14. package/lib/components/VBtn/index.d.ts +2 -3
  15. package/lib/components/VCard/index.d.ts +2 -3
  16. package/lib/components/VChip/VChip.mjs +1 -1
  17. package/lib/components/VChip/VChip.mjs.map +1 -1
  18. package/lib/components/VChip/index.d.ts +1 -1
  19. package/lib/components/VChipGroup/index.d.ts +1 -1
  20. package/lib/components/VCombobox/index.d.ts +21 -24
  21. package/lib/components/VDialog/index.d.ts +21 -6
  22. package/lib/components/VExpansionPanel/index.d.ts +1 -1
  23. package/lib/components/VField/VField.mjs +1 -1
  24. package/lib/components/VField/VField.mjs.map +1 -1
  25. package/lib/components/VField/index.d.ts +5 -8
  26. package/lib/components/VFileInput/index.d.ts +3 -4
  27. package/lib/components/VMenu/index.d.ts +21 -6
  28. package/lib/components/VOverlay/VOverlay.mjs +5 -2
  29. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  30. package/lib/components/VOverlay/index.d.ts +8 -1
  31. package/lib/components/VPagination/index.d.ts +1 -1
  32. package/lib/components/VSelect/index.d.ts +21 -24
  33. package/lib/components/VSnackbar/index.d.ts +25 -10
  34. package/lib/components/VTabs/VTab.css +1 -2
  35. package/lib/components/VTabs/VTab.sass +4 -3
  36. package/lib/components/VTextField/index.d.ts +20 -29
  37. package/lib/components/VTextarea/index.d.ts +2 -3
  38. package/lib/components/VToolbar/VToolbar.mjs +6 -0
  39. package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
  40. package/lib/components/VTooltip/VTooltip.mjs +2 -1
  41. package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
  42. package/lib/components/VTooltip/index.d.ts +21 -6
  43. package/lib/components/index.d.ts +198 -156
  44. package/lib/composables/loader.mjs +1 -1
  45. package/lib/composables/loader.mjs.map +1 -1
  46. package/lib/composables/stack.mjs +16 -9
  47. package/lib/composables/stack.mjs.map +1 -1
  48. package/lib/composables/validation.mjs +2 -2
  49. package/lib/composables/validation.mjs.map +1 -1
  50. package/lib/entry-bundler.mjs +1 -1
  51. package/lib/entry-bundler.mjs.map +1 -1
  52. package/lib/framework.mjs +1 -1
  53. package/lib/framework.mjs.map +1 -1
  54. package/lib/index.d.ts +3 -3
  55. package/lib/services/goto/util.mjs +1 -1
  56. package/lib/services/goto/util.mjs.map +1 -1
  57. package/lib/util/console.mjs +3 -3
  58. package/lib/util/console.mjs.map +1 -1
  59. package/package.json +1 -1
package/dist/vuetify.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.0.4
2
+ * Vuetify v3.0.5-dev-20221212.0
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -513,7 +513,7 @@
513
513
 
514
514
  if (parent) {
515
515
  vm = {
516
- _isVue: true,
516
+ __isVue: true,
517
517
  $parent: parent,
518
518
  $options: vm
519
519
  };
@@ -545,7 +545,7 @@
545
545
  if (vm.$root === vm) {
546
546
  return '<Root>';
547
547
  }
548
- const options = typeof vm === 'function' && vm.cid != null ? vm.options : vm._isVue ? vm.$options || vm.constructor.options : vm || {};
548
+ const options = typeof vm === 'function' && vm.cid != null ? vm.options : vm.__isVue ? vm.$options || vm.constructor.options : vm || {};
549
549
  let name = options.name || options._componentTag;
550
550
  const file = options.__file;
551
551
  if (!name && file) {
@@ -555,7 +555,7 @@
555
555
  return (name ? `<${classify(name)}>` : `<Anonymous>`) + (file && includeFile !== false ? ` at ${file}` : '');
556
556
  }
557
557
  function generateComponentTrace(vm) {
558
- if (vm._isVue && vm.$parent) {
558
+ if (vm.__isVue && vm.$parent) {
559
559
  const tree = [];
560
560
  let currentRecursiveSequence = 0;
561
561
  while (vm) {
@@ -3147,6 +3147,11 @@
3147
3147
  const isExtended = vue.ref(!!(props.extended || (_slots$extension = slots.extension) != null && _slots$extension.call(slots)));
3148
3148
  const contentHeight = vue.computed(() => parseInt(Number(props.height) + (props.density === 'prominent' ? Number(props.height) : 0) - (props.density === 'comfortable' ? 8 : 0) - (props.density === 'compact' ? 16 : 0), 10));
3149
3149
  const extensionHeight = vue.computed(() => isExtended.value ? parseInt(Number(props.extensionHeight) + (props.density === 'prominent' ? Number(props.extensionHeight) : 0) - (props.density === 'comfortable' ? 4 : 0) - (props.density === 'compact' ? 8 : 0), 10) : 0);
3150
+ provideDefaults({
3151
+ VBtn: {
3152
+ variant: 'text'
3153
+ }
3154
+ });
3150
3155
  useRender(() => {
3151
3156
  var _slots$extension2, _slots$image, _slots$prepend, _slots$default, _slots$append;
3152
3157
  const hasTitle = !!(props.title || slots.title);
@@ -4531,7 +4536,7 @@
4531
4536
 
4532
4537
  // Composables
4533
4538
  const makeLoaderProps = propsFactory({
4534
- loading: Boolean
4539
+ loading: [Boolean, String]
4535
4540
  }, 'loader');
4536
4541
  function useLoader(props) {
4537
4542
  let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
@@ -5409,7 +5414,7 @@
5409
5414
  "class": "v-field__overlay"
5410
5415
  }, null), vue.createVNode(LoaderSlot, {
5411
5416
  "name": "v-field",
5412
- "active": props.loading,
5417
+ "active": !!props.loading,
5413
5418
  "color": props.error ? 'error' : props.color
5414
5419
  }, {
5415
5420
  default: slots.loader
@@ -5702,7 +5707,7 @@
5702
5707
  const isDisabled = vue.computed(() => !!(props.disabled || form != null && form.isDisabled.value));
5703
5708
  const isReadonly = vue.computed(() => !!(props.readonly || form != null && form.isReadonly.value));
5704
5709
  const errorMessages = vue.computed(() => {
5705
- return props.errorMessages.length ? wrapInArray(props.errorMessages.slice(0, Math.max(0, +props.maxErrors))) : internalErrorMessages.value;
5710
+ return props.errorMessages.length ? wrapInArray(props.errorMessages).slice(0, Math.max(0, +props.maxErrors)) : internalErrorMessages.value;
5706
5711
  });
5707
5712
  const isValid = vue.computed(() => {
5708
5713
  if (props.error || errorMessages.value.length) return false;
@@ -5766,7 +5771,7 @@
5766
5771
  const results = [];
5767
5772
  isValidating.value = true;
5768
5773
  for (const rule of props.rules) {
5769
- if (results.length >= (props.maxErrors || 1)) {
5774
+ if (results.length >= (props.maxErrors ?? 1)) {
5770
5775
  break;
5771
5776
  }
5772
5777
  const handler = typeof rule === 'function' ? rule : () => rule;
@@ -6799,7 +6804,7 @@
6799
6804
  "class": ['v-chip', {
6800
6805
  'v-chip--disabled': props.disabled,
6801
6806
  'v-chip--label': props.label,
6802
- 'v-chip--link': isClickable,
6807
+ 'v-chip--link': isClickable.value,
6803
6808
  'v-chip--filter': hasFilter,
6804
6809
  'v-chip--pill': props.pill
6805
6810
  }, themeClasses.value, borderClasses.value, hasColor ? colorClasses.value : undefined, densityClasses.value, elevationClasses.value, roundedClasses.value, sizeClasses.value, variantClasses.value, group == null ? void 0 : group.selectedClass.value],
@@ -9059,8 +9064,9 @@
9059
9064
 
9060
9065
  const StackSymbol = Symbol.for('vuetify:stack');
9061
9066
  const globalStack = vue.reactive([]);
9062
- function useStack(isActive, zIndex) {
9067
+ function useStack(isActive, zIndex, disableGlobalStack) {
9063
9068
  const vm = getCurrentInstance('useStack');
9069
+ const createStackEntry = !disableGlobalStack;
9064
9070
  const parent = vue.inject(StackSymbol, undefined);
9065
9071
  const stack = vue.reactive({
9066
9072
  activeChildren: new Set()
@@ -9071,20 +9077,26 @@
9071
9077
  var _globalStack$at;
9072
9078
  const lastZIndex = (_globalStack$at = globalStack.at(-1)) == null ? void 0 : _globalStack$at[1];
9073
9079
  _zIndex.value = lastZIndex ? lastZIndex + 10 : +zIndex.value;
9074
- globalStack.push([vm.uid, _zIndex.value]);
9080
+ if (createStackEntry) {
9081
+ globalStack.push([vm.uid, _zIndex.value]);
9082
+ }
9075
9083
  parent == null ? void 0 : parent.activeChildren.add(vm.uid);
9076
9084
  vue.onScopeDispose(() => {
9077
- const idx = globalStack.findIndex(v => v[0] === vm.uid);
9078
- globalStack.splice(idx, 1);
9085
+ if (createStackEntry) {
9086
+ const idx = globalStack.findIndex(v => v[0] === vm.uid);
9087
+ globalStack.splice(idx, 1);
9088
+ }
9079
9089
  parent == null ? void 0 : parent.activeChildren.delete(vm.uid);
9080
9090
  });
9081
9091
  });
9082
9092
  const globalTop = vue.ref(true);
9083
- vue.watchEffect(() => {
9084
- var _globalStack$at2;
9085
- const _isTop = ((_globalStack$at2 = globalStack.at(-1)) == null ? void 0 : _globalStack$at2[0]) === vm.uid;
9086
- setTimeout(() => globalTop.value = _isTop);
9087
- });
9093
+ if (createStackEntry) {
9094
+ vue.watchEffect(() => {
9095
+ var _globalStack$at2;
9096
+ const _isTop = ((_globalStack$at2 = globalStack.at(-1)) == null ? void 0 : _globalStack$at2[0]) === vm.uid;
9097
+ setTimeout(() => globalTop.value = _isTop);
9098
+ });
9099
+ }
9088
9100
  const localTop = vue.computed(() => !stack.activeChildren.size);
9089
9101
  return {
9090
9102
  globalTop: vue.readonly(globalTop),
@@ -9263,7 +9275,10 @@
9263
9275
  ClickOutside
9264
9276
  },
9265
9277
  inheritAttrs: false,
9266
- props: makeVOverlayProps(),
9278
+ props: {
9279
+ _disableGlobalStack: Boolean,
9280
+ ...makeVOverlayProps()
9281
+ },
9267
9282
  emits: {
9268
9283
  'click:outside': e => true,
9269
9284
  'update:modelValue': value => true,
@@ -9303,7 +9318,7 @@
9303
9318
  globalTop,
9304
9319
  localTop,
9305
9320
  stackStyles
9306
- } = useStack(isActive, vue.toRef(props, 'zIndex'));
9321
+ } = useStack(isActive, vue.toRef(props, 'zIndex'), props._disableGlobalStack);
9307
9322
  const {
9308
9323
  activatorEl,
9309
9324
  activatorRef,
@@ -17815,7 +17830,8 @@
17815
17830
  "eager": true,
17816
17831
  "activatorProps": vue.mergeProps({
17817
17832
  'aria-describedby': id.value
17818
- }, props.activatorProps)
17833
+ }, props.activatorProps),
17834
+ "_disableGlobalStack": true
17819
17835
  }, scopeId), {
17820
17836
  activator: slots.activator,
17821
17837
  default: function () {
@@ -18198,7 +18214,7 @@
18198
18214
  locale
18199
18215
  };
18200
18216
  }
18201
- const version$1 = "3.0.4";
18217
+ const version$1 = "3.0.5-dev-20221212.0";
18202
18218
  createVuetify$1.version = version$1;
18203
18219
 
18204
18220
  // Vue's inject() can only be used in setup
@@ -18219,7 +18235,7 @@
18219
18235
  ...options
18220
18236
  });
18221
18237
  };
18222
- const version = "3.0.4";
18238
+ const version = "3.0.5-dev-20221212.0";
18223
18239
  createVuetify.version = version;
18224
18240
 
18225
18241
  exports.components = components;