@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
@@ -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
  */
@@ -509,7 +509,7 @@ function createMessage(message, vm, parent) {
509
509
 
510
510
  if (parent) {
511
511
  vm = {
512
- _isVue: true,
512
+ __isVue: true,
513
513
  $parent: parent,
514
514
  $options: vm
515
515
  };
@@ -541,7 +541,7 @@ function formatComponentName(vm, includeFile) {
541
541
  if (vm.$root === vm) {
542
542
  return '<Root>';
543
543
  }
544
- const options = typeof vm === 'function' && vm.cid != null ? vm.options : vm._isVue ? vm.$options || vm.constructor.options : vm || {};
544
+ const options = typeof vm === 'function' && vm.cid != null ? vm.options : vm.__isVue ? vm.$options || vm.constructor.options : vm || {};
545
545
  let name = options.name || options._componentTag;
546
546
  const file = options.__file;
547
547
  if (!name && file) {
@@ -551,7 +551,7 @@ function formatComponentName(vm, includeFile) {
551
551
  return (name ? `<${classify(name)}>` : `<Anonymous>`) + (file && includeFile !== false ? ` at ${file}` : '');
552
552
  }
553
553
  function generateComponentTrace(vm) {
554
- if (vm._isVue && vm.$parent) {
554
+ if (vm.__isVue && vm.$parent) {
555
555
  const tree = [];
556
556
  let currentRecursiveSequence = 0;
557
557
  while (vm) {
@@ -3143,6 +3143,11 @@ const VToolbar = genericComponent()({
3143
3143
  const isExtended = ref(!!(props.extended || (_slots$extension = slots.extension) != null && _slots$extension.call(slots)));
3144
3144
  const contentHeight = computed(() => parseInt(Number(props.height) + (props.density === 'prominent' ? Number(props.height) : 0) - (props.density === 'comfortable' ? 8 : 0) - (props.density === 'compact' ? 16 : 0), 10));
3145
3145
  const extensionHeight = 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);
3146
+ provideDefaults({
3147
+ VBtn: {
3148
+ variant: 'text'
3149
+ }
3150
+ });
3146
3151
  useRender(() => {
3147
3152
  var _slots$extension2, _slots$image, _slots$prepend, _slots$default, _slots$append;
3148
3153
  const hasTitle = !!(props.title || slots.title);
@@ -4527,7 +4532,7 @@ const VProgressLinear = defineComponent({
4527
4532
 
4528
4533
  // Composables
4529
4534
  const makeLoaderProps = propsFactory({
4530
- loading: Boolean
4535
+ loading: [Boolean, String]
4531
4536
  }, 'loader');
4532
4537
  function useLoader(props) {
4533
4538
  let name = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : getCurrentInstanceName();
@@ -5405,7 +5410,7 @@ const VField = genericComponent()({
5405
5410
  "class": "v-field__overlay"
5406
5411
  }, null), createVNode(LoaderSlot, {
5407
5412
  "name": "v-field",
5408
- "active": props.loading,
5413
+ "active": !!props.loading,
5409
5414
  "color": props.error ? 'error' : props.color
5410
5415
  }, {
5411
5416
  default: slots.loader
@@ -5698,7 +5703,7 @@ function useValidation(props) {
5698
5703
  const isDisabled = computed(() => !!(props.disabled || form != null && form.isDisabled.value));
5699
5704
  const isReadonly = computed(() => !!(props.readonly || form != null && form.isReadonly.value));
5700
5705
  const errorMessages = computed(() => {
5701
- return props.errorMessages.length ? wrapInArray(props.errorMessages.slice(0, Math.max(0, +props.maxErrors))) : internalErrorMessages.value;
5706
+ return props.errorMessages.length ? wrapInArray(props.errorMessages).slice(0, Math.max(0, +props.maxErrors)) : internalErrorMessages.value;
5702
5707
  });
5703
5708
  const isValid = computed(() => {
5704
5709
  if (props.error || errorMessages.value.length) return false;
@@ -5762,7 +5767,7 @@ function useValidation(props) {
5762
5767
  const results = [];
5763
5768
  isValidating.value = true;
5764
5769
  for (const rule of props.rules) {
5765
- if (results.length >= (props.maxErrors || 1)) {
5770
+ if (results.length >= (props.maxErrors ?? 1)) {
5766
5771
  break;
5767
5772
  }
5768
5773
  const handler = typeof rule === 'function' ? rule : () => rule;
@@ -6795,7 +6800,7 @@ const VChip = defineComponent({
6795
6800
  "class": ['v-chip', {
6796
6801
  'v-chip--disabled': props.disabled,
6797
6802
  'v-chip--label': props.label,
6798
- 'v-chip--link': isClickable,
6803
+ 'v-chip--link': isClickable.value,
6799
6804
  'v-chip--filter': hasFilter,
6800
6805
  'v-chip--pill': props.pill
6801
6806
  }, 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],
@@ -9055,8 +9060,9 @@ function useHydration() {
9055
9060
 
9056
9061
  const StackSymbol = Symbol.for('vuetify:stack');
9057
9062
  const globalStack = reactive([]);
9058
- function useStack(isActive, zIndex) {
9063
+ function useStack(isActive, zIndex, disableGlobalStack) {
9059
9064
  const vm = getCurrentInstance('useStack');
9065
+ const createStackEntry = !disableGlobalStack;
9060
9066
  const parent = inject$1(StackSymbol, undefined);
9061
9067
  const stack = reactive({
9062
9068
  activeChildren: new Set()
@@ -9067,20 +9073,26 @@ function useStack(isActive, zIndex) {
9067
9073
  var _globalStack$at;
9068
9074
  const lastZIndex = (_globalStack$at = globalStack.at(-1)) == null ? void 0 : _globalStack$at[1];
9069
9075
  _zIndex.value = lastZIndex ? lastZIndex + 10 : +zIndex.value;
9070
- globalStack.push([vm.uid, _zIndex.value]);
9076
+ if (createStackEntry) {
9077
+ globalStack.push([vm.uid, _zIndex.value]);
9078
+ }
9071
9079
  parent == null ? void 0 : parent.activeChildren.add(vm.uid);
9072
9080
  onScopeDispose(() => {
9073
- const idx = globalStack.findIndex(v => v[0] === vm.uid);
9074
- globalStack.splice(idx, 1);
9081
+ if (createStackEntry) {
9082
+ const idx = globalStack.findIndex(v => v[0] === vm.uid);
9083
+ globalStack.splice(idx, 1);
9084
+ }
9075
9085
  parent == null ? void 0 : parent.activeChildren.delete(vm.uid);
9076
9086
  });
9077
9087
  });
9078
9088
  const globalTop = ref(true);
9079
- watchEffect(() => {
9080
- var _globalStack$at2;
9081
- const _isTop = ((_globalStack$at2 = globalStack.at(-1)) == null ? void 0 : _globalStack$at2[0]) === vm.uid;
9082
- setTimeout(() => globalTop.value = _isTop);
9083
- });
9089
+ if (createStackEntry) {
9090
+ watchEffect(() => {
9091
+ var _globalStack$at2;
9092
+ const _isTop = ((_globalStack$at2 = globalStack.at(-1)) == null ? void 0 : _globalStack$at2[0]) === vm.uid;
9093
+ setTimeout(() => globalTop.value = _isTop);
9094
+ });
9095
+ }
9084
9096
  const localTop = computed(() => !stack.activeChildren.size);
9085
9097
  return {
9086
9098
  globalTop: readonly(globalTop),
@@ -9259,7 +9271,10 @@ const VOverlay = genericComponent()({
9259
9271
  ClickOutside
9260
9272
  },
9261
9273
  inheritAttrs: false,
9262
- props: makeVOverlayProps(),
9274
+ props: {
9275
+ _disableGlobalStack: Boolean,
9276
+ ...makeVOverlayProps()
9277
+ },
9263
9278
  emits: {
9264
9279
  'click:outside': e => true,
9265
9280
  'update:modelValue': value => true,
@@ -9299,7 +9314,7 @@ const VOverlay = genericComponent()({
9299
9314
  globalTop,
9300
9315
  localTop,
9301
9316
  stackStyles
9302
- } = useStack(isActive, toRef(props, 'zIndex'));
9317
+ } = useStack(isActive, toRef(props, 'zIndex'), props._disableGlobalStack);
9303
9318
  const {
9304
9319
  activatorEl,
9305
9320
  activatorRef,
@@ -17811,7 +17826,8 @@ const VTooltip = genericComponent()({
17811
17826
  "eager": true,
17812
17827
  "activatorProps": mergeProps({
17813
17828
  'aria-describedby': id.value
17814
- }, props.activatorProps)
17829
+ }, props.activatorProps),
17830
+ "_disableGlobalStack": true
17815
17831
  }, scopeId), {
17816
17832
  activator: slots.activator,
17817
17833
  default: function () {
@@ -18194,7 +18210,7 @@ function createVuetify$1() {
18194
18210
  locale
18195
18211
  };
18196
18212
  }
18197
- const version$1 = "3.0.4";
18213
+ const version$1 = "3.0.5-dev-20221212.0";
18198
18214
  createVuetify$1.version = version$1;
18199
18215
 
18200
18216
  // Vue's inject() can only be used in setup
@@ -18215,7 +18231,7 @@ const createVuetify = function () {
18215
18231
  ...options
18216
18232
  });
18217
18233
  };
18218
- const version = "3.0.4";
18234
+ const version = "3.0.5-dev-20221212.0";
18219
18235
  createVuetify.version = version;
18220
18236
 
18221
18237
  export { components, createVuetify, directives, useDisplay, useLayout, useLocale, useRtl, useTheme, version };