@vuetify/nightly 3.7.4-master.2024-11-24 → 3.7.4-master.2024-11-28

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 (56) hide show
  1. package/dist/json/attributes.json +2929 -2929
  2. package/dist/json/importMap-labs.json +18 -18
  3. package/dist/json/importMap.json +144 -144
  4. package/dist/json/web-types.json +5611 -5611
  5. package/dist/vuetify-labs.css +2603 -2603
  6. package/dist/vuetify-labs.d.ts +199 -199
  7. package/dist/vuetify-labs.esm.js +45 -42
  8. package/dist/vuetify-labs.esm.js.map +1 -1
  9. package/dist/vuetify-labs.js +45 -42
  10. package/dist/vuetify-labs.min.css +2 -2
  11. package/dist/vuetify.css +1011 -1011
  12. package/dist/vuetify.d.ts +177 -177
  13. package/dist/vuetify.esm.js +42 -39
  14. package/dist/vuetify.esm.js.map +1 -1
  15. package/dist/vuetify.js +42 -39
  16. package/dist/vuetify.js.map +1 -1
  17. package/dist/vuetify.min.css +2 -2
  18. package/dist/vuetify.min.js +26 -25
  19. package/dist/vuetify.min.js.map +1 -1
  20. package/lib/components/VAutocomplete/VAutocomplete.mjs +4 -4
  21. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  22. package/lib/components/VAutocomplete/index.d.mts +28 -28
  23. package/lib/components/VChip/VChip.mjs +1 -1
  24. package/lib/components/VChip/VChip.mjs.map +1 -1
  25. package/lib/components/VChip/index.d.mts +9 -9
  26. package/lib/components/VCombobox/VCombobox.mjs +4 -4
  27. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  28. package/lib/components/VCombobox/index.d.mts +28 -28
  29. package/lib/components/VDatePicker/VDatePickerHeader.mjs +2 -1
  30. package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
  31. package/lib/components/VDatePicker/index.d.mts +6 -6
  32. package/lib/components/VList/VList.mjs +3 -2
  33. package/lib/components/VList/VList.mjs.map +1 -1
  34. package/lib/components/VList/index.d.mts +12 -12
  35. package/lib/components/VSelect/VSelect.mjs +3 -3
  36. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  37. package/lib/components/VSelect/index.d.mts +28 -28
  38. package/lib/components/VStepper/VStepper.mjs +5 -4
  39. package/lib/components/VStepper/VStepper.mjs.map +1 -1
  40. package/lib/components/VStepper/VStepperItem.mjs +5 -4
  41. package/lib/components/VStepper/VStepperItem.mjs.map +1 -1
  42. package/lib/components/VStepper/index.d.mts +58 -52
  43. package/lib/components/index.d.mts +126 -126
  44. package/lib/composables/form.mjs +7 -2
  45. package/lib/composables/form.mjs.map +1 -1
  46. package/lib/composables/validation.mjs +10 -12
  47. package/lib/composables/validation.mjs.map +1 -1
  48. package/lib/entry-bundler.mjs +1 -1
  49. package/lib/framework.mjs +1 -1
  50. package/lib/index.d.mts +51 -51
  51. package/lib/labs/VNumberInput/VNumberInput.mjs +3 -3
  52. package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  53. package/lib/labs/VStepperVertical/index.d.mts +51 -51
  54. package/lib/labs/VTreeview/index.d.mts +22 -22
  55. package/lib/labs/components.d.mts +73 -73
  56. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.7.4-master.2024-11-24
2
+ * Vuetify v3.7.4-master.2024-11-28
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -6901,8 +6901,13 @@ function createForm(props) {
6901
6901
  resetValidation
6902
6902
  };
6903
6903
  }
6904
- function useForm() {
6905
- return inject$1(FormKey, null);
6904
+ function useForm(props) {
6905
+ const form = inject$1(FormKey, null);
6906
+ return {
6907
+ ...form,
6908
+ isReadonly: computed(() => !!(props?.readonly ?? form?.isReadonly.value)),
6909
+ isDisabled: computed(() => !!(props?.disabled ?? form?.isDisabled.value))
6910
+ };
6906
6911
  }
6907
6912
 
6908
6913
  // Composables
@@ -6943,17 +6948,15 @@ function useValidation(props) {
6943
6948
  let id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : getUid();
6944
6949
  const model = useProxiedModel(props, 'modelValue');
6945
6950
  const validationModel = computed(() => props.validationValue === undefined ? model.value : props.validationValue);
6946
- const form = useForm();
6951
+ const form = useForm(props);
6947
6952
  const internalErrorMessages = ref([]);
6948
6953
  const isPristine = shallowRef(true);
6949
6954
  const isDirty = computed(() => !!(wrapInArray(model.value === '' ? null : model.value).length || wrapInArray(validationModel.value === '' ? null : validationModel.value).length));
6950
- const isDisabled = computed(() => !!(props.disabled ?? form?.isDisabled.value));
6951
- const isReadonly = computed(() => !!(props.readonly ?? form?.isReadonly.value));
6952
6955
  const errorMessages = computed(() => {
6953
6956
  return props.errorMessages?.length ? wrapInArray(props.errorMessages).concat(internalErrorMessages.value).slice(0, Math.max(0, +props.maxErrors)) : internalErrorMessages.value;
6954
6957
  });
6955
6958
  const validateOn = computed(() => {
6956
- let value = (props.validateOn ?? form?.validateOn.value) || 'input';
6959
+ let value = (props.validateOn ?? form.validateOn?.value) || 'input';
6957
6960
  if (value === 'lazy') value = 'input lazy';
6958
6961
  if (value === 'eager') value = 'input eager';
6959
6962
  const set = new Set(value?.split(' ') ?? []);
@@ -6979,14 +6982,14 @@ function useValidation(props) {
6979
6982
  return {
6980
6983
  [`${name}--error`]: isValid.value === false,
6981
6984
  [`${name}--dirty`]: isDirty.value,
6982
- [`${name}--disabled`]: isDisabled.value,
6983
- [`${name}--readonly`]: isReadonly.value
6985
+ [`${name}--disabled`]: form.isDisabled.value,
6986
+ [`${name}--readonly`]: form.isReadonly.value
6984
6987
  };
6985
6988
  });
6986
6989
  const vm = getCurrentInstance('validation');
6987
6990
  const uid = computed(() => props.name ?? unref(id));
6988
6991
  onBeforeMount(() => {
6989
- form?.register({
6992
+ form.register?.({
6990
6993
  id: uid.value,
6991
6994
  vm,
6992
6995
  validate,
@@ -6995,13 +6998,13 @@ function useValidation(props) {
6995
6998
  });
6996
6999
  });
6997
7000
  onBeforeUnmount(() => {
6998
- form?.unregister(uid.value);
7001
+ form.unregister?.(uid.value);
6999
7002
  });
7000
7003
  onMounted(async () => {
7001
7004
  if (!validateOn.value.lazy) {
7002
7005
  await validate(!validateOn.value.eager);
7003
7006
  }
7004
- form?.update(uid.value, isValid.value, errorMessages.value);
7007
+ form.update?.(uid.value, isValid.value, errorMessages.value);
7005
7008
  });
7006
7009
  useToggleScope(() => validateOn.value.input || validateOn.value.invalidInput && isValid.value === false, () => {
7007
7010
  watch(validationModel, () => {
@@ -7021,7 +7024,7 @@ function useValidation(props) {
7021
7024
  });
7022
7025
  });
7023
7026
  watch([isValid, errorMessages], () => {
7024
- form?.update(uid.value, isValid.value, errorMessages.value);
7027
+ form.update?.(uid.value, isValid.value, errorMessages.value);
7025
7028
  });
7026
7029
  async function reset() {
7027
7030
  model.value = null;
@@ -7062,8 +7065,8 @@ function useValidation(props) {
7062
7065
  return {
7063
7066
  errorMessages,
7064
7067
  isDirty,
7065
- isDisabled,
7066
- isReadonly,
7068
+ isDisabled: form.isDisabled,
7069
+ isReadonly: form.isReadonly,
7067
7070
  isPristine,
7068
7071
  isValid,
7069
7072
  isValidating,
@@ -8066,7 +8069,7 @@ const makeVChipProps = propsFactory({
8066
8069
  draggable: Boolean,
8067
8070
  filter: Boolean,
8068
8071
  filterIcon: {
8069
- type: String,
8072
+ type: IconValue,
8070
8073
  default: '$complete'
8071
8074
  },
8072
8075
  label: Boolean,
@@ -9672,8 +9675,8 @@ const makeVListProps = propsFactory({
9672
9675
  activeClass: String,
9673
9676
  bgColor: String,
9674
9677
  disabled: Boolean,
9675
- expandIcon: String,
9676
- collapseIcon: String,
9678
+ expandIcon: IconValue,
9679
+ collapseIcon: IconValue,
9677
9680
  lines: {
9678
9681
  type: [Boolean, String],
9679
9682
  default: 'one'
@@ -12673,7 +12676,7 @@ const VSelect = genericComponent()({
12673
12676
  const counterValue = computed(() => {
12674
12677
  return typeof props.counterValue === 'function' ? props.counterValue(model.value) : typeof props.counterValue === 'number' ? props.counterValue : model.value.length;
12675
12678
  });
12676
- const form = useForm();
12679
+ const form = useForm(props);
12677
12680
  const selectedValues = computed(() => model.value.map(selection => selection.value));
12678
12681
  const isFocused = shallowRef(false);
12679
12682
  const label = computed(() => menu.value ? props.closeText : props.openText);
@@ -12685,7 +12688,7 @@ const VSelect = genericComponent()({
12685
12688
  }
12686
12689
  return items.value;
12687
12690
  });
12688
- const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length || props.readonly || form?.isReadonly.value);
12691
+ const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length || form.isReadonly.value || form.isDisabled.value);
12689
12692
  const computedMenuProps = computed(() => {
12690
12693
  return {
12691
12694
  ...props.menuProps,
@@ -12712,7 +12715,7 @@ const VSelect = genericComponent()({
12712
12715
  }
12713
12716
  }
12714
12717
  function onKeydown(e) {
12715
- if (!e.key || props.readonly || form?.isReadonly.value) return;
12718
+ if (!e.key || form.isReadonly.value) return;
12716
12719
  if (['Enter', ' ', 'ArrowDown', 'ArrowUp', 'Home', 'End'].includes(e.key)) {
12717
12720
  e.preventDefault();
12718
12721
  }
@@ -13190,7 +13193,7 @@ const VAutocomplete = genericComponent()({
13190
13193
  const counterValue = computed(() => {
13191
13194
  return typeof props.counterValue === 'function' ? props.counterValue(model.value) : typeof props.counterValue === 'number' ? props.counterValue : model.value.length;
13192
13195
  });
13193
- const form = useForm();
13196
+ const form = useForm(props);
13194
13197
  const {
13195
13198
  filteredItems,
13196
13199
  getMatches
@@ -13208,7 +13211,7 @@ const VAutocomplete = genericComponent()({
13208
13211
  const selectFirst = props.autoSelectFirst === true || props.autoSelectFirst === 'exact' && search.value === displayItems.value[0]?.title;
13209
13212
  return selectFirst && displayItems.value.length > 0 && !isPristine.value && !listHasFocus.value;
13210
13213
  });
13211
- const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length || props.readonly || form?.isReadonly.value);
13214
+ const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length || form.isReadonly.value || form.isDisabled.value);
13212
13215
  const listRef = ref();
13213
13216
  const listEvents = useScrolling(listRef, vTextFieldRef);
13214
13217
  function onClear(e) {
@@ -13235,7 +13238,7 @@ const VAutocomplete = genericComponent()({
13235
13238
  }
13236
13239
  }
13237
13240
  function onKeydown(e) {
13238
- if (props.readonly || form?.isReadonly.value) return;
13241
+ if (form.isReadonly.value) return;
13239
13242
  const selectionStart = vTextFieldRef.value.selectionStart;
13240
13243
  const length = model.value.length;
13241
13244
  if (selectionIndex.value > -1 || ['Enter', 'ArrowDown', 'ArrowUp'].includes(e.key)) {
@@ -13412,7 +13415,7 @@ const VAutocomplete = genericComponent()({
13412
13415
  'v-autocomplete--selecting-index': selectionIndex.value > -1
13413
13416
  }, props.class],
13414
13417
  "style": props.style,
13415
- "readonly": props.readonly,
13418
+ "readonly": form.isReadonly.value,
13416
13419
  "placeholder": isDirty ? undefined : props.placeholder,
13417
13420
  "onClick:clear": onClear,
13418
13421
  "onMousedown:control": onMousedownControl,
@@ -17031,7 +17034,7 @@ const VCombobox = genericComponent()({
17031
17034
  const transformed = transformOut(v);
17032
17035
  return props.multiple ? transformed : transformed[0] ?? null;
17033
17036
  });
17034
- const form = useForm();
17037
+ const form = useForm(props);
17035
17038
  const hasChips = computed(() => !!(props.chips || slots.chip));
17036
17039
  const hasSelectionSlot = computed(() => hasChips.value || !!slots.selection);
17037
17040
  const _search = shallowRef(!props.multiple && !hasSelectionSlot.value ? model.value[0]?.title ?? '' : '');
@@ -17091,7 +17094,7 @@ const VCombobox = genericComponent()({
17091
17094
  const selectFirst = props.autoSelectFirst === true || props.autoSelectFirst === 'exact' && search.value === displayItems.value[0]?.title;
17092
17095
  return selectFirst && displayItems.value.length > 0 && !isPristine.value && !listHasFocus.value;
17093
17096
  });
17094
- const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length || props.readonly || form?.isReadonly.value);
17097
+ const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length || form.isReadonly.value || form.isDisabled.value);
17095
17098
  const listRef = ref();
17096
17099
  const listEvents = useScrolling(listRef, vTextFieldRef);
17097
17100
  function onClear(e) {
@@ -17119,7 +17122,7 @@ const VCombobox = genericComponent()({
17119
17122
  }
17120
17123
  // eslint-disable-next-line complexity
17121
17124
  function onKeydown(e) {
17122
- if (isComposingIgnoreKey(e) || props.readonly || form?.isReadonly.value) return;
17125
+ if (isComposingIgnoreKey(e) || form.isReadonly.value) return;
17123
17126
  const selectionStart = vTextFieldRef.value.selectionStart;
17124
17127
  const length = model.value.length;
17125
17128
  if (selectionIndex.value > -1 || ['Enter', 'ArrowDown', 'ArrowUp'].includes(e.key)) {
@@ -17291,7 +17294,7 @@ const VCombobox = genericComponent()({
17291
17294
  [`v-combobox--${props.multiple ? 'multiple' : 'single'}`]: true
17292
17295
  }, props.class],
17293
17296
  "style": props.style,
17294
- "readonly": props.readonly,
17297
+ "readonly": form.isReadonly.value,
17295
17298
  "placeholder": isDirty ? undefined : props.placeholder,
17296
17299
  "onClick:clear": onClear,
17297
17300
  "onMousedown:control": onMousedownControl,
@@ -21651,7 +21654,7 @@ const VDatePickerControls = genericComponent()({
21651
21654
  // Types
21652
21655
 
21653
21656
  const makeVDatePickerHeaderProps = propsFactory({
21654
- appendIcon: String,
21657
+ appendIcon: IconValue,
21655
21658
  color: String,
21656
21659
  header: String,
21657
21660
  transition: String,
@@ -26303,20 +26306,20 @@ const makeStepperItemProps = propsFactory({
26303
26306
  subtitle: String,
26304
26307
  complete: Boolean,
26305
26308
  completeIcon: {
26306
- type: String,
26309
+ type: IconValue,
26307
26310
  default: '$complete'
26308
26311
  },
26309
26312
  editable: Boolean,
26310
26313
  editIcon: {
26311
- type: String,
26314
+ type: IconValue,
26312
26315
  default: '$edit'
26313
26316
  },
26314
26317
  error: Boolean,
26315
26318
  errorIcon: {
26316
- type: String,
26319
+ type: IconValue,
26317
26320
  default: '$error'
26318
26321
  },
26319
- icon: String,
26322
+ icon: IconValue,
26320
26323
  ripple: {
26321
26324
  type: [Boolean, Object],
26322
26325
  default: true
@@ -26477,10 +26480,10 @@ const VStepperWindowItem = genericComponent()({
26477
26480
  const makeStepperProps = propsFactory({
26478
26481
  altLabels: Boolean,
26479
26482
  bgColor: String,
26480
- completeIcon: String,
26481
- editIcon: String,
26483
+ completeIcon: IconValue,
26484
+ editIcon: IconValue,
26482
26485
  editable: Boolean,
26483
- errorIcon: String,
26486
+ errorIcon: IconValue,
26484
26487
  hideActions: Boolean,
26485
26488
  items: {
26486
26489
  type: Array,
@@ -28257,7 +28260,7 @@ function createVuetify$1() {
28257
28260
  goTo
28258
28261
  };
28259
28262
  }
28260
- const version$1 = "3.7.4-master.2024-11-24";
28263
+ const version$1 = "3.7.4-master.2024-11-28";
28261
28264
  createVuetify$1.version = version$1;
28262
28265
 
28263
28266
  // Vue's inject() can only be used in setup
@@ -28282,7 +28285,7 @@ const createVuetify = function () {
28282
28285
  ...options
28283
28286
  });
28284
28287
  };
28285
- const version = "3.7.4-master.2024-11-24";
28288
+ const version = "3.7.4-master.2024-11-28";
28286
28289
  createVuetify.version = version;
28287
28290
 
28288
28291
  export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };