@vuetify/nightly 3.8.5-master.2025-05-14 → 3.8.5-master.2025-05-15

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 (49) hide show
  1. package/CHANGELOG.md +10 -3
  2. package/dist/json/attributes.json +3103 -3103
  3. package/dist/json/importMap-labs.json +6 -6
  4. package/dist/json/importMap.json +140 -140
  5. package/dist/json/web-types.json +5966 -5966
  6. package/dist/vuetify-labs.cjs +13 -31
  7. package/dist/vuetify-labs.css +3666 -3666
  8. package/dist/vuetify-labs.d.ts +590 -587
  9. package/dist/vuetify-labs.esm.js +13 -31
  10. package/dist/vuetify-labs.esm.js.map +1 -1
  11. package/dist/vuetify-labs.js +13 -31
  12. package/dist/vuetify-labs.min.css +2 -2
  13. package/dist/vuetify.cjs +13 -31
  14. package/dist/vuetify.cjs.map +1 -1
  15. package/dist/vuetify.css +2923 -2923
  16. package/dist/vuetify.d.ts +502 -499
  17. package/dist/vuetify.esm.js +13 -31
  18. package/dist/vuetify.esm.js.map +1 -1
  19. package/dist/vuetify.js +13 -31
  20. package/dist/vuetify.js.map +1 -1
  21. package/dist/vuetify.min.css +2 -2
  22. package/dist/vuetify.min.js +570 -568
  23. package/dist/vuetify.min.js.map +1 -1
  24. package/lib/components/VAutocomplete/VAutocomplete.d.ts +84 -84
  25. package/lib/components/VCheckbox/VCheckbox.d.ts +12 -12
  26. package/lib/components/VCombobox/VCombobox.d.ts +84 -84
  27. package/lib/components/VFileInput/VFileInput.d.ts +30 -30
  28. package/lib/components/VInput/VInput.d.ts +12 -12
  29. package/lib/components/VNumberInput/VNumberInput.d.ts +80 -80
  30. package/lib/components/VRadioGroup/VRadioGroup.d.ts +12 -12
  31. package/lib/components/VRangeSlider/VRangeSlider.d.ts +12 -12
  32. package/lib/components/VSelect/VSelect.d.ts +84 -84
  33. package/lib/components/VSlider/VSlider.d.ts +12 -12
  34. package/lib/components/VSwitch/VSwitch.d.ts +12 -12
  35. package/lib/components/VTextField/VTextField.d.ts +30 -30
  36. package/lib/components/VTextarea/VTextarea.d.ts +30 -30
  37. package/lib/components/VValidation/VValidation.d.ts +8 -8
  38. package/lib/composables/validation.d.ts +6 -5
  39. package/lib/composables/validation.js +4 -29
  40. package/lib/composables/validation.js.map +1 -1
  41. package/lib/entry-bundler.js +1 -1
  42. package/lib/framework.d.ts +44 -44
  43. package/lib/framework.js +1 -1
  44. package/lib/labs/VColorInput/VColorInput.d.ts +12 -12
  45. package/lib/labs/VDateInput/VDateInput.d.ts +84 -84
  46. package/lib/labs/rules/rules.d.ts +9 -5
  47. package/lib/labs/rules/rules.js +73 -51
  48. package/lib/labs/rules/rules.js.map +1 -1
  49. package/package.json +1 -1
package/dist/vuetify.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.8.5-master.2025-05-14
2
+ * Vuetify v3.8.5-master.2025-05-15
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -7039,13 +7039,18 @@
7039
7039
  };
7040
7040
  }
7041
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
+
7042
7050
  // Composables
7043
7051
 
7044
7052
  // Types
7045
7053
 
7046
- // type ValidationRuleParams = [any, string?]
7047
- // type ValidationAlias = string | [string, ...ValidationRuleParams]
7048
-
7049
7054
  const makeValidationProps = propsFactory({
7050
7055
  disabled: {
7051
7056
  type: Boolean,
@@ -7068,7 +7073,6 @@
7068
7073
  },
7069
7074
  rules: {
7070
7075
  type: Array,
7071
- // type: Array as PropType<readonly (ValidationRule | ValidationAlias)[]>,
7072
7076
  default: () => []
7073
7077
  },
7074
7078
  modelValue: null,
@@ -7082,7 +7086,7 @@
7082
7086
  const model = useProxiedModel(props, 'modelValue');
7083
7087
  const validationModel = vue.computed(() => props.validationValue === undefined ? model.value : props.validationValue);
7084
7088
  const form = useForm(props);
7085
- // const rules = useRules()
7089
+ const rules = useRules(() => props.rules);
7086
7090
  const internalErrorMessages = vue.ref([]);
7087
7091
  const isPristine = vue.shallowRef(true);
7088
7092
  const isDirty = vue.computed(() => !!(wrapInArray(model.value === '' ? null : model.value).length || wrapInArray(validationModel.value === '' ? null : validationModel.value).length));
@@ -7122,28 +7126,6 @@
7122
7126
  });
7123
7127
  const vm = getCurrentInstance('validation');
7124
7128
  const uid = vue.computed(() => props.name ?? vue.unref(id));
7125
-
7126
- // const resolvedRules = computed(() => props.rules.map(rule => {
7127
- // let ruleName: string | null = null
7128
- // let ruleParams: ValidationRuleParams = [undefined]
7129
- // if (Array.isArray(rule)) {
7130
- // ruleName = rule[0]
7131
- // ruleParams = rule.slice(1) as ValidationRuleParams
7132
- // } else if (typeof rule === 'string') {
7133
- // ruleName = rule
7134
- // }
7135
-
7136
- // if (ruleName !== null) {
7137
- // if (ruleName.startsWith('$')) {
7138
- // ruleName = ruleName.slice(1)
7139
- // }
7140
-
7141
- // return rules?.[ruleName]?.(...ruleParams)
7142
- // } else {
7143
- // return rule
7144
- // }
7145
- // }))
7146
-
7147
7129
  vue.onBeforeMount(() => {
7148
7130
  form.register?.({
7149
7131
  id: uid.value,
@@ -7199,7 +7181,7 @@
7199
7181
  let silent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
7200
7182
  const results = [];
7201
7183
  isValidating.value = true;
7202
- for (const rule of props.rules) {
7184
+ for (const rule of rules.value) {
7203
7185
  if (results.length >= Number(props.maxErrors ?? 1)) {
7204
7186
  break;
7205
7187
  }
@@ -29238,7 +29220,7 @@
29238
29220
  };
29239
29221
  });
29240
29222
  }
29241
- const version$1 = "3.8.5-master.2025-05-14";
29223
+ const version$1 = "3.8.5-master.2025-05-15";
29242
29224
  createVuetify$1.version = version$1;
29243
29225
 
29244
29226
  // Vue's inject() can only be used in setup
@@ -29263,7 +29245,7 @@
29263
29245
  ...options
29264
29246
  });
29265
29247
  };
29266
- const version = "3.8.5-master.2025-05-14";
29248
+ const version = "3.8.5-master.2025-05-15";
29267
29249
  createVuetify.version = version;
29268
29250
 
29269
29251
  exports.blueprints = index;