@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
@@ -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
  */
@@ -6761,13 +6761,18 @@
6761
6761
  };
6762
6762
  }
6763
6763
 
6764
+ // Utilities
6765
+ const RulesSymbol = Symbol.for('vuetify:rules');
6766
+ function useRules(fn) {
6767
+ const resolveRules = vue.inject(RulesSymbol, null);
6768
+ if (!resolveRules) return vue.toRef(fn);
6769
+ return resolveRules(fn);
6770
+ }
6771
+
6764
6772
  // Composables
6765
6773
 
6766
6774
  // Types
6767
6775
 
6768
- // type ValidationRuleParams = [any, string?]
6769
- // type ValidationAlias = string | [string, ...ValidationRuleParams]
6770
-
6771
6776
  const makeValidationProps = propsFactory({
6772
6777
  disabled: {
6773
6778
  type: Boolean,
@@ -6790,7 +6795,6 @@
6790
6795
  },
6791
6796
  rules: {
6792
6797
  type: Array,
6793
- // type: Array as PropType<readonly (ValidationRule | ValidationAlias)[]>,
6794
6798
  default: () => []
6795
6799
  },
6796
6800
  modelValue: null,
@@ -6804,7 +6808,7 @@
6804
6808
  const model = useProxiedModel(props, 'modelValue');
6805
6809
  const validationModel = vue.computed(() => props.validationValue === undefined ? model.value : props.validationValue);
6806
6810
  const form = useForm(props);
6807
- // const rules = useRules()
6811
+ const rules = useRules(() => props.rules);
6808
6812
  const internalErrorMessages = vue.ref([]);
6809
6813
  const isPristine = vue.shallowRef(true);
6810
6814
  const isDirty = vue.computed(() => !!(wrapInArray(model.value === '' ? null : model.value).length || wrapInArray(validationModel.value === '' ? null : validationModel.value).length));
@@ -6844,28 +6848,6 @@
6844
6848
  });
6845
6849
  const vm = getCurrentInstance('validation');
6846
6850
  const uid = vue.computed(() => props.name ?? vue.unref(id));
6847
-
6848
- // const resolvedRules = computed(() => props.rules.map(rule => {
6849
- // let ruleName: string | null = null
6850
- // let ruleParams: ValidationRuleParams = [undefined]
6851
- // if (Array.isArray(rule)) {
6852
- // ruleName = rule[0]
6853
- // ruleParams = rule.slice(1) as ValidationRuleParams
6854
- // } else if (typeof rule === 'string') {
6855
- // ruleName = rule
6856
- // }
6857
-
6858
- // if (ruleName !== null) {
6859
- // if (ruleName.startsWith('$')) {
6860
- // ruleName = ruleName.slice(1)
6861
- // }
6862
-
6863
- // return rules?.[ruleName]?.(...ruleParams)
6864
- // } else {
6865
- // return rule
6866
- // }
6867
- // }))
6868
-
6869
6851
  vue.onBeforeMount(() => {
6870
6852
  form.register?.({
6871
6853
  id: uid.value,
@@ -6921,7 +6903,7 @@
6921
6903
  let silent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
6922
6904
  const results = [];
6923
6905
  isValidating.value = true;
6924
- for (const rule of props.rules) {
6906
+ for (const rule of rules.value) {
6925
6907
  if (results.length >= Number(props.maxErrors ?? 1)) {
6926
6908
  break;
6927
6909
  }
@@ -31933,7 +31915,7 @@
31933
31915
  };
31934
31916
  });
31935
31917
  }
31936
- const version$1 = "3.8.5-master.2025-05-14";
31918
+ const version$1 = "3.8.5-master.2025-05-15";
31937
31919
  createVuetify$1.version = version$1;
31938
31920
 
31939
31921
  // Vue's inject() can only be used in setup
@@ -32231,7 +32213,7 @@
32231
32213
 
32232
32214
  /* eslint-disable local-rules/sort-imports */
32233
32215
 
32234
- const version = "3.8.5-master.2025-05-14";
32216
+ const version = "3.8.5-master.2025-05-15";
32235
32217
 
32236
32218
  /* eslint-disable local-rules/sort-imports */
32237
32219