vuetify 3.6.12 → 3.6.13

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 (78) hide show
  1. package/dist/json/attributes.json +30 -22
  2. package/dist/json/importMap-labs.json +16 -16
  3. package/dist/json/importMap.json +140 -140
  4. package/dist/json/tags.json +2 -0
  5. package/dist/json/web-types.json +53 -42
  6. package/dist/vuetify-labs.css +1513 -1515
  7. package/dist/vuetify-labs.d.ts +287 -178
  8. package/dist/vuetify-labs.esm.js +59 -28
  9. package/dist/vuetify-labs.esm.js.map +1 -1
  10. package/dist/vuetify-labs.js +59 -28
  11. package/dist/vuetify-labs.min.css +2 -2
  12. package/dist/vuetify.css +858 -860
  13. package/dist/vuetify.d.ts +322 -233
  14. package/dist/vuetify.esm.js +51 -24
  15. package/dist/vuetify.esm.js.map +1 -1
  16. package/dist/vuetify.js +51 -24
  17. package/dist/vuetify.js.map +1 -1
  18. package/dist/vuetify.min.css +2 -2
  19. package/dist/vuetify.min.js +40 -40
  20. package/dist/vuetify.min.js.map +1 -1
  21. package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
  22. package/lib/components/VAppBar/index.d.mts +6 -6
  23. package/lib/components/VAutocomplete/index.d.mts +12 -6
  24. package/lib/components/VBtn/VBtn.css +3 -0
  25. package/lib/components/VBtn/VBtn.sass +3 -0
  26. package/lib/components/VCheckbox/index.d.mts +8 -2
  27. package/lib/components/VCombobox/index.d.mts +12 -6
  28. package/lib/components/VDataIterator/index.d.mts +1 -0
  29. package/lib/components/VDataTable/VDataTable.mjs +10 -3
  30. package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
  31. package/lib/components/VDataTable/VDataTableServer.mjs +6 -2
  32. package/lib/components/VDataTable/VDataTableServer.mjs.map +1 -1
  33. package/lib/components/VDataTable/VDataTableVirtual.mjs +10 -3
  34. package/lib/components/VDataTable/VDataTableVirtual.mjs.map +1 -1
  35. package/lib/components/VDataTable/composables/group.mjs +2 -1
  36. package/lib/components/VDataTable/composables/group.mjs.map +1 -1
  37. package/lib/components/VDataTable/composables/sort.mjs +4 -4
  38. package/lib/components/VDataTable/composables/sort.mjs.map +1 -1
  39. package/lib/components/VDataTable/index.d.mts +22 -21
  40. package/lib/components/VDatePicker/VDatePickerMonth.mjs +3 -0
  41. package/lib/components/VDatePicker/VDatePickerMonth.mjs.map +1 -1
  42. package/lib/components/VField/VField.css +6 -11
  43. package/lib/components/VField/VField.mjs +7 -5
  44. package/lib/components/VField/VField.mjs.map +1 -1
  45. package/lib/components/VField/VField.sass +2 -6
  46. package/lib/components/VField/index.d.mts +12 -6
  47. package/lib/components/VFileInput/index.d.mts +12 -6
  48. package/lib/components/VInput/VInput.css +5 -5
  49. package/lib/components/VInput/VInput.mjs +4 -1
  50. package/lib/components/VInput/VInput.mjs.map +1 -1
  51. package/lib/components/VInput/VInput.sass +1 -1
  52. package/lib/components/VInput/index.d.mts +8 -2
  53. package/lib/components/VOtpInput/VOtpInput.mjs +1 -1
  54. package/lib/components/VOtpInput/VOtpInput.mjs.map +1 -1
  55. package/lib/components/VRadioGroup/index.d.mts +8 -2
  56. package/lib/components/VRangeSlider/index.d.mts +8 -2
  57. package/lib/components/VSelect/index.d.mts +12 -6
  58. package/lib/components/VSlider/index.d.mts +8 -2
  59. package/lib/components/VSwitch/index.d.mts +8 -2
  60. package/lib/components/VTextField/VTextField.mjs +1 -1
  61. package/lib/components/VTextField/VTextField.mjs.map +1 -1
  62. package/lib/components/VTextField/index.d.mts +24 -18
  63. package/lib/components/VTextarea/VTextarea.mjs +5 -5
  64. package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  65. package/lib/components/VTextarea/index.d.mts +87 -72
  66. package/lib/components/index.d.mts +247 -159
  67. package/lib/entry-bundler.mjs +1 -1
  68. package/lib/framework.mjs +1 -1
  69. package/lib/index.d.mts +75 -74
  70. package/lib/labs/VDateInput/VDateInput.mjs +6 -3
  71. package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
  72. package/lib/labs/VDateInput/index.d.mts +12 -6
  73. package/lib/labs/VNumberInput/index.d.mts +12 -6
  74. package/lib/labs/VTimePicker/VTimePickerControls.mjs +2 -1
  75. package/lib/labs/VTimePicker/VTimePickerControls.mjs.map +1 -1
  76. package/lib/labs/VTimePicker/index.d.mts +16 -7
  77. package/lib/labs/components.d.mts +40 -19
  78. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.6.12
2
+ * Vuetify v3.6.13
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -6807,7 +6807,10 @@ function useValidation(props) {
6807
6807
  const makeVInputProps = propsFactory({
6808
6808
  id: String,
6809
6809
  appendIcon: IconValue,
6810
- centerAffix: Boolean,
6810
+ centerAffix: {
6811
+ type: Boolean,
6812
+ default: true
6813
+ },
6811
6814
  prependIcon: IconValue,
6812
6815
  hideDetails: [Boolean, String],
6813
6816
  hideSpinButtons: Boolean,
@@ -11322,7 +11325,10 @@ const makeVFieldProps = propsFactory({
11322
11325
  default: '$clear'
11323
11326
  },
11324
11327
  active: Boolean,
11325
- centerAffix: Boolean,
11328
+ centerAffix: {
11329
+ type: Boolean,
11330
+ default: undefined
11331
+ },
11326
11332
  color: String,
11327
11333
  baseColor: String,
11328
11334
  dirty: Boolean,
@@ -11389,9 +11395,8 @@ const VField = genericComponent()({
11389
11395
  const {
11390
11396
  rtlClasses
11391
11397
  } = useRtl();
11392
- const isSingleLine = computed(() => props.singleLine || props.centerAffix);
11393
11398
  const isActive = computed(() => props.dirty || props.active);
11394
- const hasLabel = computed(() => !isSingleLine.value && !!(props.label || slots.label));
11399
+ const hasLabel = computed(() => !props.singleLine && !!(props.label || slots.label));
11395
11400
  const uid = getUid();
11396
11401
  const id = computed(() => props.id || `input-${uid}`);
11397
11402
  const messagesId = computed(() => `${id.value}-messages`);
@@ -11480,7 +11485,7 @@ const VField = genericComponent()({
11480
11485
  "class": ['v-field', {
11481
11486
  'v-field--active': isActive.value,
11482
11487
  'v-field--appended': hasAppend,
11483
- 'v-field--center-affix': props.centerAffix,
11488
+ 'v-field--center-affix': props.centerAffix ?? !isPlainOrUnderlined.value,
11484
11489
  'v-field--disabled': props.disabled,
11485
11490
  'v-field--dirty': props.dirty,
11486
11491
  'v-field--error': props.error,
@@ -11489,7 +11494,7 @@ const VField = genericComponent()({
11489
11494
  'v-field--persistent-clear': props.persistentClear,
11490
11495
  'v-field--prepended': hasPrepend,
11491
11496
  'v-field--reverse': props.reverse,
11492
- 'v-field--single-line': isSingleLine.value,
11497
+ 'v-field--single-line': props.singleLine,
11493
11498
  'v-field--no-label': !label(),
11494
11499
  [`v-field--variant-${props.variant}`]: true
11495
11500
  }, themeClasses.value, backgroundColorClasses.value, focusClasses.value, loaderClasses.value, roundedClasses.value, rtlClasses.value, props.class],
@@ -11724,6 +11729,7 @@ const VTextField = genericComponent()({
11724
11729
  }, props.class],
11725
11730
  "style": props.style
11726
11731
  }, rootAttrs, inputProps, {
11732
+ "centerAffix": !isPlainOrUnderlined.value,
11727
11733
  "focused": isFocused.value
11728
11734
  }), {
11729
11735
  ...slots,
@@ -11749,7 +11755,6 @@ const VTextField = genericComponent()({
11749
11755
  "dirty": isDirty.value || props.dirty,
11750
11756
  "disabled": isDisabled.value,
11751
11757
  "focused": isFocused.value,
11752
- "centerAffix": props.centerAffix,
11753
11758
  "error": isValid.value === false
11754
11759
  }), {
11755
11760
  ...slots,
@@ -18090,6 +18095,7 @@ function createGroupBy(props) {
18090
18095
  }
18091
18096
  function provideGroupBy(options) {
18092
18097
  const {
18098
+ disableSort,
18093
18099
  groupBy,
18094
18100
  sortBy
18095
18101
  } = options;
@@ -18098,7 +18104,7 @@ function provideGroupBy(options) {
18098
18104
  return groupBy.value.map(val => ({
18099
18105
  ...val,
18100
18106
  order: val.order ?? false
18101
- })).concat(sortBy.value);
18107
+ })).concat(disableSort?.value ? [] : sortBy.value);
18102
18108
  });
18103
18109
  function isGroupOpen(group) {
18104
18110
  return opened.value.has(group.id);
@@ -18607,7 +18613,7 @@ function useSort() {
18607
18613
  function useSortedItems(props, items, sortBy, options) {
18608
18614
  const locale = useLocale();
18609
18615
  const sortedItems = computed(() => {
18610
- if (!sortBy.value.length || props.disableSort) return items.value;
18616
+ if (!sortBy.value.length) return items.value;
18611
18617
  return sortItems(items.value, sortBy.value, locale.current.value, {
18612
18618
  transform: options?.transform,
18613
18619
  sortFunctions: {
@@ -18633,8 +18639,8 @@ function sortItems(items, sortByItems, locale, options) {
18633
18639
  const sortKey = sortByItems[i].key;
18634
18640
  const sortOrder = sortByItems[i].order ?? 'asc';
18635
18641
  if (sortOrder === false) continue;
18636
- let sortA = a[1][sortKey];
18637
- let sortB = b[1][sortKey];
18642
+ let sortA = getObjectValueByPath(a[1], sortKey);
18643
+ let sortB = getObjectValueByPath(b[1], sortKey);
18638
18644
  let sortARaw = a[0].raw;
18639
18645
  let sortBRaw = b[0].raw;
18640
18646
  if (sortOrder === 'desc') {
@@ -20359,6 +20365,9 @@ const VDataTable = genericComponent()({
20359
20365
  page,
20360
20366
  itemsPerPage
20361
20367
  } = createPagination(props);
20368
+ const {
20369
+ disableSort
20370
+ } = toRefs(props);
20362
20371
  const {
20363
20372
  columns,
20364
20373
  headers,
@@ -20396,12 +20405,16 @@ const VDataTable = genericComponent()({
20396
20405
  toggleGroup
20397
20406
  } = provideGroupBy({
20398
20407
  groupBy,
20399
- sortBy
20408
+ sortBy,
20409
+ disableSort
20400
20410
  });
20401
20411
  const {
20402
20412
  sortedItems
20403
20413
  } = useSortedItems(props, filteredItems, sortByWithGroups, {
20404
- transform: item => item.columns,
20414
+ transform: item => ({
20415
+ ...item.raw,
20416
+ ...item.columns
20417
+ }),
20405
20418
  sortFunctions,
20406
20419
  sortRawFunctions
20407
20420
  });
@@ -20539,6 +20552,9 @@ const VDataTableVirtual = genericComponent()({
20539
20552
  multiSort,
20540
20553
  mustSort
20541
20554
  } = createSort(props);
20555
+ const {
20556
+ disableSort
20557
+ } = toRefs(props);
20542
20558
  const {
20543
20559
  columns,
20544
20560
  headers,
@@ -20575,12 +20591,16 @@ const VDataTableVirtual = genericComponent()({
20575
20591
  toggleGroup
20576
20592
  } = provideGroupBy({
20577
20593
  groupBy,
20578
- sortBy
20594
+ sortBy,
20595
+ disableSort
20579
20596
  });
20580
20597
  const {
20581
20598
  sortedItems
20582
20599
  } = useSortedItems(props, filteredItems, sortByWithGroups, {
20583
- transform: item => item.columns,
20600
+ transform: item => ({
20601
+ ...item.raw,
20602
+ ...item.columns
20603
+ }),
20584
20604
  sortFunctions,
20585
20605
  sortRawFunctions
20586
20606
  });
@@ -20764,6 +20784,9 @@ const VDataTableServer = genericComponent()({
20764
20784
  page,
20765
20785
  itemsPerPage
20766
20786
  } = createPagination(props);
20787
+ const {
20788
+ disableSort
20789
+ } = toRefs(props);
20767
20790
  const itemsLength = computed(() => parseInt(props.itemsLength, 10));
20768
20791
  const {
20769
20792
  columns,
@@ -20791,7 +20814,8 @@ const VDataTableServer = genericComponent()({
20791
20814
  extractRows
20792
20815
  } = provideGroupBy({
20793
20816
  groupBy,
20794
- sortBy
20817
+ sortBy,
20818
+ disableSort
20795
20819
  });
20796
20820
  const {
20797
20821
  pageCount,
@@ -21551,6 +21575,9 @@ const VDatePickerMonth = genericComponent()({
21551
21575
  const _value = adapter.startOfDay(value);
21552
21576
  if (model.value.length === 0) {
21553
21577
  rangeStart.value = undefined;
21578
+ } else if (model.value.length === 1) {
21579
+ rangeStart.value = model.value[0];
21580
+ rangeStop.value = undefined;
21554
21581
  }
21555
21582
  if (!rangeStart.value) {
21556
21583
  rangeStart.value = _value;
@@ -24231,7 +24258,7 @@ const VOtpInput = genericComponent()({
24231
24258
  function onPaste(index, e) {
24232
24259
  e.preventDefault();
24233
24260
  e.stopPropagation();
24234
- const clipboardText = e?.clipboardData?.getData('Text') ?? '';
24261
+ const clipboardText = e?.clipboardData?.getData('Text').slice(0, length.value) ?? '';
24235
24262
  if (isValidNumber(clipboardText)) return;
24236
24263
  model.value = clipboardText.split('');
24237
24264
  inputRef.value?.[index].blur();
@@ -26776,8 +26803,8 @@ const makeVTextareaProps = propsFactory({
26776
26803
  },
26777
26804
  suffix: String,
26778
26805
  modelModifiers: Object,
26779
- ...omit(makeVInputProps(), ['centerAffix']),
26780
- ...omit(makeVFieldProps(), ['centerAffix'])
26806
+ ...makeVInputProps(),
26807
+ ...makeVFieldProps()
26781
26808
  }, 'VTextarea');
26782
26809
  const VTextarea = genericComponent()({
26783
26810
  name: 'VTextarea',
@@ -26916,7 +26943,7 @@ const VTextarea = genericComponent()({
26916
26943
  }, props.class],
26917
26944
  "style": props.style
26918
26945
  }, rootAttrs, inputProps, {
26919
- "centerAffix": false,
26946
+ "centerAffix": rows.value === 1 && !isPlainOrUnderlined.value,
26920
26947
  "focused": isFocused.value
26921
26948
  }), {
26922
26949
  ...slots,
@@ -26941,7 +26968,7 @@ const VTextarea = genericComponent()({
26941
26968
  }, fieldProps, {
26942
26969
  "id": id.value,
26943
26970
  "active": isActive.value || isDirty.value,
26944
- "centerAffix": false,
26971
+ "centerAffix": rows.value === 1 && !isPlainOrUnderlined.value,
26945
26972
  "dirty": isDirty.value || props.dirty,
26946
26973
  "disabled": isDisabled.value,
26947
26974
  "focused": isFocused.value,
@@ -27932,6 +27959,7 @@ const VDateInput = genericComponent()({
27932
27959
  }
27933
27960
  return adapter.isValid(model.value) ? adapter.format(model.value, 'keyboardDate') : '';
27934
27961
  });
27962
+ const isInteractive = computed(() => !props.disabled && !props.readonly);
27935
27963
  function onKeydown(e) {
27936
27964
  if (e.key !== 'Enter') return;
27937
27965
  if (!menu.value || !isFocused.value) {
@@ -27954,13 +27982,15 @@ const VDateInput = genericComponent()({
27954
27982
  const datePickerProps = VDatePicker.filterProps(omit(props, ['active']));
27955
27983
  const textFieldProps = VTextField.filterProps(props);
27956
27984
  return createVNode(VTextField, mergeProps(textFieldProps, {
27985
+ "class": props.class,
27986
+ "style": props.style,
27957
27987
  "modelValue": display.value,
27958
- "onKeydown": onKeydown,
27988
+ "onKeydown": isInteractive.value ? onKeydown : undefined,
27959
27989
  "focused": menu.value || isFocused.value,
27960
27990
  "onFocus": focus,
27961
27991
  "onBlur": blur,
27962
- "onClick:control": onClick,
27963
- "onClick:prepend": onClick
27992
+ "onClick:control": isInteractive.value ? onClick : undefined,
27993
+ "onClick:prepend": isInteractive.value ? onClick : undefined
27964
27994
  }), {
27965
27995
  default: () => [createVNode(VMenu, {
27966
27996
  "modelValue": menu.value,
@@ -28981,6 +29011,7 @@ var SelectingTimes = /*#__PURE__*/function (SelectingTimes) {
28981
29011
 
28982
29012
  const makeVTimePickerControlsProps = propsFactory({
28983
29013
  ampm: Boolean,
29014
+ ampmInTitle: Boolean,
28984
29015
  ampmReadonly: Boolean,
28985
29016
  color: String,
28986
29017
  disabled: Boolean,
@@ -29065,7 +29096,7 @@ const VTimePickerControls = genericComponent()({
29065
29096
  },
29066
29097
  "disabled": props.disabled,
29067
29098
  "text": props.second == null ? '--' : pad(props.second)
29068
- }, null), props.ampm && createVNode("div", {
29099
+ }, null), props.ampm && props.ampmInTitle && createVNode("div", {
29069
29100
  "class": ['v-time-picker-controls__ampm', {
29070
29101
  'v-time-picker-controls__ampm--readonly': props.ampmReadonly
29071
29102
  }]
@@ -30269,7 +30300,7 @@ function createVuetify$1() {
30269
30300
  goTo
30270
30301
  };
30271
30302
  }
30272
- const version$1 = "3.6.12";
30303
+ const version$1 = "3.6.13";
30273
30304
  createVuetify$1.version = version$1;
30274
30305
 
30275
30306
  // Vue's inject() can only be used in setup
@@ -30522,7 +30553,7 @@ var index = /*#__PURE__*/Object.freeze({
30522
30553
 
30523
30554
  /* eslint-disable local-rules/sort-imports */
30524
30555
 
30525
- const version = "3.6.12";
30556
+ const version = "3.6.13";
30526
30557
 
30527
30558
  /* eslint-disable local-rules/sort-imports */
30528
30559