vuetify 3.8.4 → 3.8.6

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 (85) hide show
  1. package/dist/_component-variables-labs.sass +1 -0
  2. package/dist/json/attributes.json +3300 -2956
  3. package/dist/json/importMap-labs.json +24 -20
  4. package/dist/json/importMap.json +182 -182
  5. package/dist/json/tags.json +91 -0
  6. package/dist/json/web-types.json +6720 -5503
  7. package/dist/vuetify-labs.cjs +294 -51
  8. package/dist/vuetify-labs.css +4169 -4130
  9. package/dist/vuetify-labs.d.ts +2235 -1152
  10. package/dist/vuetify-labs.esm.js +294 -51
  11. package/dist/vuetify-labs.esm.js.map +1 -1
  12. package/dist/vuetify-labs.js +294 -51
  13. package/dist/vuetify-labs.min.css +2 -2
  14. package/dist/vuetify.cjs +22 -42
  15. package/dist/vuetify.cjs.map +1 -1
  16. package/dist/vuetify.css +2580 -2544
  17. package/dist/vuetify.d.ts +532 -526
  18. package/dist/vuetify.esm.js +22 -42
  19. package/dist/vuetify.esm.js.map +1 -1
  20. package/dist/vuetify.js +22 -42
  21. package/dist/vuetify.js.map +1 -1
  22. package/dist/vuetify.min.css +2 -2
  23. package/dist/vuetify.min.js +582 -579
  24. package/dist/vuetify.min.js.map +1 -1
  25. package/lib/components/VAutocomplete/VAutocomplete.d.ts +84 -84
  26. package/lib/components/VAutocomplete/VAutocomplete.js +0 -5
  27. package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
  28. package/lib/components/VBottomSheet/VBottomSheet.css +1 -1
  29. package/lib/components/VBottomSheet/VBottomSheet.sass +1 -1
  30. package/lib/components/VBtn/VBtn.css +25 -0
  31. package/lib/components/VBtn/VBtn.sass +9 -0
  32. package/lib/components/VBtn/_variables.scss +1 -0
  33. package/lib/components/VCheckbox/VCheckbox.d.ts +12 -12
  34. package/lib/components/VCombobox/VCombobox.d.ts +84 -84
  35. package/lib/components/VFileInput/VFileInput.d.ts +30 -30
  36. package/lib/components/VInput/VInput.d.ts +12 -12
  37. package/lib/components/VList/VList.d.ts +3 -3
  38. package/lib/components/VList/VList.js.map +1 -1
  39. package/lib/components/VNumberInput/VNumberInput.css +15 -4
  40. package/lib/components/VNumberInput/VNumberInput.d.ts +80 -80
  41. package/lib/components/VNumberInput/VNumberInput.sass +18 -6
  42. package/lib/components/VRadioGroup/VRadioGroup.d.ts +12 -12
  43. package/lib/components/VRangeSlider/VRangeSlider.d.ts +12 -12
  44. package/lib/components/VSelect/VSelect.d.ts +84 -84
  45. package/lib/components/VSelect/VSelect.js +6 -4
  46. package/lib/components/VSelect/VSelect.js.map +1 -1
  47. package/lib/components/VSlider/VSlider.d.ts +12 -12
  48. package/lib/components/VSnackbarQueue/VSnackbarQueue.d.ts +3 -1
  49. package/lib/components/VSnackbarQueue/VSnackbarQueue.js.map +1 -1
  50. package/lib/components/VSwitch/VSwitch.d.ts +12 -12
  51. package/lib/components/VTextField/VTextField.d.ts +30 -30
  52. package/lib/components/VTextarea/VTextarea.d.ts +30 -30
  53. package/lib/components/VValidation/VValidation.d.ts +8 -8
  54. package/lib/composables/dateFormat.d.ts +24 -0
  55. package/lib/composables/dateFormat.js +112 -0
  56. package/lib/composables/dateFormat.js.map +1 -0
  57. package/lib/composables/validation.d.ts +6 -5
  58. package/lib/composables/validation.js +4 -29
  59. package/lib/composables/validation.js.map +1 -1
  60. package/lib/entry-bundler.js +1 -1
  61. package/lib/framework.d.ts +71 -68
  62. package/lib/framework.js +1 -1
  63. package/lib/iconsets/mdi.js +2 -1
  64. package/lib/iconsets/mdi.js.map +1 -1
  65. package/lib/labs/VColorInput/VColorInput.css +4 -0
  66. package/lib/labs/VColorInput/VColorInput.d.ts +1767 -0
  67. package/lib/labs/VColorInput/VColorInput.js +129 -0
  68. package/lib/labs/VColorInput/VColorInput.js.map +1 -0
  69. package/lib/labs/VColorInput/VColorInput.sass +7 -0
  70. package/lib/labs/VColorInput/_variables.scss +2 -0
  71. package/lib/labs/VColorInput/index.d.ts +1 -0
  72. package/lib/labs/VColorInput/index.js +2 -0
  73. package/lib/labs/VColorInput/index.js.map +1 -0
  74. package/lib/labs/VDateInput/VDateInput.d.ts +130 -105
  75. package/lib/labs/VDateInput/VDateInput.js +43 -10
  76. package/lib/labs/VDateInput/VDateInput.js.map +1 -1
  77. package/lib/labs/components.d.ts +1 -0
  78. package/lib/labs/components.js +1 -0
  79. package/lib/labs/components.js.map +1 -1
  80. package/lib/labs/rules/rules.d.ts +9 -5
  81. package/lib/labs/rules/rules.js +73 -51
  82. package/lib/labs/rules/rules.js.map +1 -1
  83. package/lib/util/helpers.js +1 -1
  84. package/lib/util/helpers.js.map +1 -1
  85. package/package.json +2 -3
package/dist/vuetify.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.8.4
2
+ * Vuetify v3.8.6
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -435,7 +435,7 @@
435
435
  }
436
436
  function focusChild(el, location) {
437
437
  const focusable = focusableChildren(el);
438
- if (!location) {
438
+ if (location == null) {
439
439
  if (el === document.activeElement || !el.contains(document.activeElement)) {
440
440
  focusable[0]?.focus();
441
441
  }
@@ -1773,7 +1773,8 @@
1773
1773
  treeviewCollapse: 'mdi-menu-down',
1774
1774
  treeviewExpand: 'mdi-menu-right',
1775
1775
  eyeDropper: 'mdi-eyedropper',
1776
- upload: 'mdi-cloud-upload'
1776
+ upload: 'mdi-cloud-upload',
1777
+ color: 'mdi-palette'
1777
1778
  };
1778
1779
  const mdi = {
1779
1780
  // Not using mergeProps here, functional components merge props by default (?)
@@ -7038,13 +7039,18 @@
7038
7039
  };
7039
7040
  }
7040
7041
 
7042
+ // Utilities
7043
+ const RulesSymbol = Symbol.for('vuetify:rules');
7044
+ function useRules(fn) {
7045
+ const resolveRules = vue.inject(RulesSymbol, null);
7046
+ if (!resolveRules) return vue.toRef(fn);
7047
+ return resolveRules(fn);
7048
+ }
7049
+
7041
7050
  // Composables
7042
7051
 
7043
7052
  // Types
7044
7053
 
7045
- // type ValidationRuleParams = [any, string?]
7046
- // type ValidationAlias = string | [string, ...ValidationRuleParams]
7047
-
7048
7054
  const makeValidationProps = propsFactory({
7049
7055
  disabled: {
7050
7056
  type: Boolean,
@@ -7067,7 +7073,6 @@
7067
7073
  },
7068
7074
  rules: {
7069
7075
  type: Array,
7070
- // type: Array as PropType<readonly (ValidationRule | ValidationAlias)[]>,
7071
7076
  default: () => []
7072
7077
  },
7073
7078
  modelValue: null,
@@ -7081,7 +7086,7 @@
7081
7086
  const model = useProxiedModel(props, 'modelValue');
7082
7087
  const validationModel = vue.computed(() => props.validationValue === undefined ? model.value : props.validationValue);
7083
7088
  const form = useForm(props);
7084
- // const rules = useRules()
7089
+ const rules = useRules(() => props.rules);
7085
7090
  const internalErrorMessages = vue.ref([]);
7086
7091
  const isPristine = vue.shallowRef(true);
7087
7092
  const isDirty = vue.computed(() => !!(wrapInArray(model.value === '' ? null : model.value).length || wrapInArray(validationModel.value === '' ? null : validationModel.value).length));
@@ -7121,28 +7126,6 @@
7121
7126
  });
7122
7127
  const vm = getCurrentInstance('validation');
7123
7128
  const uid = vue.computed(() => props.name ?? vue.unref(id));
7124
-
7125
- // const resolvedRules = computed(() => props.rules.map(rule => {
7126
- // let ruleName: string | null = null
7127
- // let ruleParams: ValidationRuleParams = [undefined]
7128
- // if (Array.isArray(rule)) {
7129
- // ruleName = rule[0]
7130
- // ruleParams = rule.slice(1) as ValidationRuleParams
7131
- // } else if (typeof rule === 'string') {
7132
- // ruleName = rule
7133
- // }
7134
-
7135
- // if (ruleName !== null) {
7136
- // if (ruleName.startsWith('$')) {
7137
- // ruleName = ruleName.slice(1)
7138
- // }
7139
-
7140
- // return rules?.[ruleName]?.(...ruleParams)
7141
- // } else {
7142
- // return rule
7143
- // }
7144
- // }))
7145
-
7146
7129
  vue.onBeforeMount(() => {
7147
7130
  form.register?.({
7148
7131
  id: uid.value,
@@ -7198,7 +7181,7 @@
7198
7181
  let silent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
7199
7182
  const results = [];
7200
7183
  isValidating.value = true;
7201
- for (const rule of props.rules) {
7184
+ for (const rule of rules.value) {
7202
7185
  if (results.length >= Number(props.maxErrors ?? 1)) {
7203
7186
  break;
7204
7187
  }
@@ -13110,11 +13093,13 @@
13110
13093
  keyboardLookupLastTime = now;
13111
13094
  const item = items.value.find(item => item.title.toLowerCase().startsWith(keyboardLookupPrefix));
13112
13095
  if (item !== undefined) {
13113
- model.value = [item];
13096
+ if (!props.multiple) {
13097
+ model.value = [item];
13098
+ }
13114
13099
  const index = displayItems.value.indexOf(item);
13115
- IN_BROWSER && window.requestAnimationFrame(() => {
13116
- index >= 0 && vVirtualScrollRef.value?.scrollToIndex(index);
13117
- });
13100
+ if (~index && IN_BROWSER) {
13101
+ listRef.value?.focus(index);
13102
+ }
13118
13103
  }
13119
13104
  }
13120
13105
 
@@ -13784,11 +13769,6 @@
13784
13769
  menu.value = true;
13785
13770
  }
13786
13771
  });
13787
- vue.watch(model, value => {
13788
- if (!props.multiple && !hasSelectionSlot.value) {
13789
- search.value = value[0]?.title ?? '';
13790
- }
13791
- });
13792
13772
  useRender(() => {
13793
13773
  const hasList = !!(!props.hideNoData || displayItems.value.length || slots['prepend-item'] || slots['append-item'] || slots['no-data']);
13794
13774
  const isDirty = model.value.length > 0;
@@ -29242,7 +29222,7 @@
29242
29222
  };
29243
29223
  });
29244
29224
  }
29245
- const version$1 = "3.8.4";
29225
+ const version$1 = "3.8.6";
29246
29226
  createVuetify$1.version = version$1;
29247
29227
 
29248
29228
  // Vue's inject() can only be used in setup
@@ -29267,7 +29247,7 @@
29267
29247
  ...options
29268
29248
  });
29269
29249
  };
29270
- const version = "3.8.4";
29250
+ const version = "3.8.6";
29271
29251
  createVuetify.version = version;
29272
29252
 
29273
29253
  exports.blueprints = index;