@vuetify/nightly 3.6.3-master.2024-05-05 → 3.6.3-master.2024-05-07

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 (67) hide show
  1. package/CHANGELOG.md +11 -2
  2. package/dist/json/attributes.json +148 -8
  3. package/dist/json/importMap-labs.json +16 -16
  4. package/dist/json/importMap.json +118 -118
  5. package/dist/json/tags.json +36 -1
  6. package/dist/json/web-types.json +436 -26
  7. package/dist/vuetify-labs.css +2038 -1778
  8. package/dist/vuetify-labs.d.ts +631 -317
  9. package/dist/vuetify-labs.esm.js +72 -92
  10. package/dist/vuetify-labs.esm.js.map +1 -1
  11. package/dist/vuetify-labs.js +72 -92
  12. package/dist/vuetify-labs.min.css +3 -3
  13. package/dist/vuetify.css +2396 -2136
  14. package/dist/vuetify.d.ts +276 -318
  15. package/dist/vuetify.esm.js +19 -17
  16. package/dist/vuetify.esm.js.map +1 -1
  17. package/dist/vuetify.js +19 -17
  18. package/dist/vuetify.js.map +1 -1
  19. package/dist/vuetify.min.css +3 -3
  20. package/dist/vuetify.min.js +15 -15
  21. package/dist/vuetify.min.js.map +1 -1
  22. package/lib/components/VAutocomplete/VAutocomplete.mjs +1 -1
  23. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  24. package/lib/components/VAutocomplete/index.d.mts +18 -18
  25. package/lib/components/VBottomSheet/index.d.mts +9 -15
  26. package/lib/components/VCarousel/index.d.mts +6 -6
  27. package/lib/components/VCombobox/index.d.mts +18 -18
  28. package/lib/components/VDialog/index.d.mts +27 -33
  29. package/lib/components/VFileInput/VFileInput.mjs +1 -1
  30. package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  31. package/lib/components/VFileInput/index.d.mts +9 -9
  32. package/lib/components/VImg/index.d.mts +6 -6
  33. package/lib/components/VList/VListItem.mjs +3 -2
  34. package/lib/components/VList/VListItem.mjs.map +1 -1
  35. package/lib/components/VList/index.d.mts +6 -6
  36. package/lib/components/VMenu/index.d.mts +27 -33
  37. package/lib/components/VOverlay/VOverlay.mjs +2 -5
  38. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  39. package/lib/components/VOverlay/index.d.mts +9 -15
  40. package/lib/components/VResponsive/VResponsive.mjs +1 -1
  41. package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
  42. package/lib/components/VResponsive/index.d.mts +6 -6
  43. package/lib/components/VSelect/index.d.mts +18 -18
  44. package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
  45. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  46. package/lib/components/VSnackbar/index.d.mts +41 -47
  47. package/lib/components/VSpeedDial/index.d.mts +9 -15
  48. package/lib/components/VTabs/VTabs.mjs +8 -3
  49. package/lib/components/VTabs/VTabs.mjs.map +1 -1
  50. package/lib/components/VToolbar/VToolbar.css +5 -5
  51. package/lib/components/VToolbar/_variables.scss +3 -3
  52. package/lib/components/VTooltip/index.d.mts +27 -33
  53. package/lib/components/index.d.mts +236 -278
  54. package/lib/composables/component.mjs +1 -1
  55. package/lib/composables/component.mjs.map +1 -1
  56. package/lib/entry-bundler.mjs +1 -1
  57. package/lib/framework.mjs +1 -1
  58. package/lib/index.d.mts +40 -40
  59. package/lib/labs/VNumberInput/VNumberInput.mjs +57 -81
  60. package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
  61. package/lib/labs/VNumberInput/index.d.mts +402 -34
  62. package/lib/labs/VSnackbarQueue/index.d.mts +41 -47
  63. package/lib/labs/VTreeview/index.d.mts +6 -6
  64. package/lib/labs/components.d.mts +442 -86
  65. package/lib/styles/generic/_colors.scss +1 -0
  66. package/lib/styles/main.css +260 -0
  67. package/package.json +2 -2
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.6.3-master.2024-05-05
2
+ * Vuetify v3.6.3-master.2024-05-07
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -70,7 +70,7 @@ function propsFactory(props, source) {
70
70
 
71
71
  // Composables
72
72
  const makeComponentProps = propsFactory({
73
- class: [String, Array],
73
+ class: [String, Array, Object],
74
74
  style: {
75
75
  type: [String, Array, Object],
76
76
  default: null
@@ -3001,7 +3001,7 @@ function useAspectStyles(props) {
3001
3001
  }
3002
3002
  const makeVResponsiveProps = propsFactory({
3003
3003
  aspectRatio: [String, Number],
3004
- contentClass: String,
3004
+ contentClass: null,
3005
3005
  inline: Boolean,
3006
3006
  ...makeComponentProps(),
3007
3007
  ...makeDimensionProps()
@@ -8755,7 +8755,7 @@ const makeVListItemProps = propsFactory({
8755
8755
  appendIcon: IconValue,
8756
8756
  baseColor: String,
8757
8757
  disabled: Boolean,
8758
- lines: String,
8758
+ lines: [Boolean, String],
8759
8759
  link: {
8760
8760
  type: Boolean,
8761
8761
  default: undefined
@@ -8866,8 +8866,9 @@ const VListItem = genericComponent()({
8866
8866
  }));
8867
8867
  function onClick(e) {
8868
8868
  emit('click', e);
8869
- if (isGroupActivator || !isClickable.value) return;
8869
+ if (!isClickable.value) return;
8870
8870
  link.navigate?.(e);
8871
+ if (isGroupActivator) return;
8871
8872
  if (root.activatable.value) {
8872
8873
  activate(!isActivated.value, e);
8873
8874
  } else if (root.selectable.value) {
@@ -10681,10 +10682,7 @@ const makeVOverlayProps = propsFactory({
10681
10682
  disabled: Boolean,
10682
10683
  opacity: [Number, String],
10683
10684
  noClickAnimation: Boolean,
10684
- modelValue: {
10685
- type: Boolean,
10686
- default: null
10687
- },
10685
+ modelValue: Boolean,
10688
10686
  persistent: Boolean,
10689
10687
  scrim: {
10690
10688
  type: [Boolean, String],
@@ -10727,7 +10725,7 @@ const VOverlay = genericComponent()({
10727
10725
  } = _ref;
10728
10726
  const model = useProxiedModel(props, 'modelValue');
10729
10727
  const isActive = computed({
10730
- get: () => Boolean(model.value),
10728
+ get: () => model.value,
10731
10729
  set: v => {
10732
10730
  if (!(v && props.disabled)) model.value = v;
10733
10731
  }
@@ -12964,7 +12962,7 @@ const VAutocomplete = genericComponent()({
12964
12962
  select(displayItems.value[0]);
12965
12963
  }
12966
12964
  menu.value = false;
12967
- search.value = '';
12965
+ if (props.multiple || hasSelectionSlot.value) search.value = '';
12968
12966
  selectionIndex.value = -1;
12969
12967
  }
12970
12968
  });
@@ -22559,7 +22557,7 @@ const VFileInput = genericComponent()({
22559
22557
  const {
22560
22558
  t
22561
22559
  } = useLocale();
22562
- const model = useProxiedModel(props, 'modelValue', props.modelValue, val => wrapInArray(val), val => props.multiple || Array.isArray(props.modelValue) ? val : val[0]);
22560
+ const model = useProxiedModel(props, 'modelValue', props.modelValue, val => wrapInArray(val), val => props.multiple || Array.isArray(props.modelValue) ? val : val[0] ?? null);
22563
22561
  const {
22564
22562
  isFocused,
22565
22563
  focus,
@@ -26503,6 +26501,7 @@ const VTabs = genericComponent()({
26503
26501
  },
26504
26502
  setup(props, _ref) {
26505
26503
  let {
26504
+ attrs,
26506
26505
  slots
26507
26506
  } = _ref;
26508
26507
  const model = useProxiedModel(props, 'modelValue');
@@ -26514,6 +26513,9 @@ const VTabs = genericComponent()({
26514
26513
  backgroundColorClasses,
26515
26514
  backgroundColorStyles
26516
26515
  } = useBackgroundColor(toRef(props, 'bgColor'));
26516
+ const {
26517
+ scopeId
26518
+ } = useScopeId();
26517
26519
  provideDefaults({
26518
26520
  VTab: {
26519
26521
  color: toRef(props, 'color'),
@@ -26540,7 +26542,7 @@ const VTabs = genericComponent()({
26540
26542
  }, backgroundColorStyles.value, props.style],
26541
26543
  "role": "tablist",
26542
26544
  "symbol": VTabsSymbol
26543
- }), {
26545
+ }, scopeId, attrs), {
26544
26546
  default: () => [slots.default?.() ?? items.value.map(item => slots.tab?.({
26545
26547
  item
26546
26548
  }) ?? createVNode(VTab, mergeProps(item, {
@@ -26551,11 +26553,11 @@ const VTabs = genericComponent()({
26551
26553
  item
26552
26554
  })
26553
26555
  }))]
26554
- }), hasWindow && createVNode(VTabsWindow, {
26556
+ }), hasWindow && createVNode(VTabsWindow, mergeProps({
26555
26557
  "modelValue": model.value,
26556
26558
  "onUpdate:modelValue": $event => model.value = $event,
26557
26559
  "key": "tabs-window"
26558
- }, {
26560
+ }, scopeId), {
26559
26561
  default: () => [items.value.map(item => slots.item?.({
26560
26562
  item
26561
26563
  }) ?? createVNode(VTabsWindowItem, {
@@ -27840,19 +27842,13 @@ const makeVNumberInputProps = propsFactory({
27840
27842
  type: Number,
27841
27843
  default: 1
27842
27844
  },
27843
- ...only(makeVInputProps(), ['density', 'disabled', 'focused', 'hideDetails', 'hint', 'label', 'persistentHint', 'readonly']),
27844
- ...only(makeVFieldProps(), ['baseColor', 'bgColor', 'class', 'color', 'disabled', 'error', 'loading', 'reverse', 'rounded', 'style', 'theme', 'variant']),
27845
- ...makeFocusProps()
27845
+ ...omit(makeVTextFieldProps(), ['appendInnerIcon', 'prependInnerIcon'])
27846
27846
  }, 'VNumberInput');
27847
27847
  const VNumberInput = genericComponent()({
27848
27848
  name: 'VNumberInput',
27849
27849
  inheritAttrs: false,
27850
27850
  props: {
27851
- ...makeVNumberInputProps(),
27852
- modelValue: {
27853
- type: Number,
27854
- default: undefined
27855
- }
27851
+ ...makeVNumberInputProps()
27856
27852
  },
27857
27853
  emits: {
27858
27854
  'update:modelValue': val => true
@@ -27864,12 +27860,6 @@ const VNumberInput = genericComponent()({
27864
27860
  slots
27865
27861
  } = _ref;
27866
27862
  const model = useProxiedModel(props, 'modelValue');
27867
- const {
27868
- isFocused,
27869
- focus,
27870
- blur
27871
- } = useFocus(props);
27872
- const inputRef = ref();
27873
27863
  const stepDecimals = computed(() => getDecimals(props.step));
27874
27864
  const modelDecimals = computed(() => model.value != null ? getDecimals(model.value) : 0);
27875
27865
  const canIncrease = computed(() => {
@@ -27885,9 +27875,6 @@ const VNumberInput = genericComponent()({
27885
27875
  model.value = clamp(model.value, props.min, props.max);
27886
27876
  }
27887
27877
  });
27888
- function onFocus() {
27889
- if (!isFocused.value) focus();
27890
- }
27891
27878
  const controlVariant = computed(() => {
27892
27879
  return props.hideInput ? 'stacked' : props.controlVariant;
27893
27880
  });
@@ -27917,7 +27904,7 @@ const VNumberInput = genericComponent()({
27917
27904
  toggleUpDown(false);
27918
27905
  }
27919
27906
  function onKeydown(e) {
27920
- if (['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace'].includes(e.key) || e.ctrlKey) return;
27907
+ if (['Enter', 'ArrowLeft', 'ArrowRight', 'Backspace', 'Tab'].includes(e.key) || e.ctrlKey) return;
27921
27908
  if (['ArrowDown'].includes(e.key)) {
27922
27909
  e.preventDefault();
27923
27910
  toggleUpDown(false);
@@ -27934,17 +27921,14 @@ const VNumberInput = genericComponent()({
27934
27921
  e.preventDefault();
27935
27922
  }
27936
27923
  }
27937
- function onInput(e) {
27938
- const el = e.target;
27939
- model.value = el.value ? +el.value : undefined;
27924
+ function onModelUpdate(v) {
27925
+ model.value = v ? +v : undefined;
27940
27926
  }
27941
27927
  useRender(() => {
27942
- const fieldProps = filterFieldProps(props);
27943
- const [rootAttrs, inputAttrs] = filterInputAttrs(attrs);
27944
27928
  const {
27945
27929
  modelValue: _,
27946
- ...inputProps
27947
- } = VInput.filterProps(props);
27930
+ ...textFieldProps
27931
+ } = VTextField.filterProps(props);
27948
27932
  function controlNode() {
27949
27933
  const defaultHeight = controlVariant.value === 'stacked' ? 'auto' : '100%';
27950
27934
  return createVNode("div", {
@@ -27957,6 +27941,7 @@ const VNumberInput = genericComponent()({
27957
27941
  "name": "decrement-btn",
27958
27942
  "icon": "$expand",
27959
27943
  "size": "small",
27944
+ "tabindex": "-1",
27960
27945
  "onClick": onClickDown
27961
27946
  }, null) : createVNode(VDefaultsProvider, {
27962
27947
  "key": "decrement-defaults",
@@ -27981,7 +27966,8 @@ const VNumberInput = genericComponent()({
27981
27966
  "name": "increment-btn",
27982
27967
  "icon": "$collapse",
27983
27968
  "onClick": onClickUp,
27984
- "size": "small"
27969
+ "size": "small",
27970
+ "tabindex": "-1"
27985
27971
  }, null) : createVNode(VDefaultsProvider, {
27986
27972
  "key": "increment-defaults",
27987
27973
  "defaults": {
@@ -28002,7 +27988,36 @@ const VNumberInput = genericComponent()({
28002
27988
  "vertical": true
28003
27989
  }, null) : undefined;
28004
27990
  }
28005
- return createVNode(VInput, mergeProps({
27991
+ const appendInnerControl = controlVariant.value === 'split' ? createVNode("div", {
27992
+ "class": "v-number-input__control"
27993
+ }, [createVNode(VDivider, {
27994
+ "vertical": true
27995
+ }, null), createVNode(VBtn, {
27996
+ "flat": true,
27997
+ "height": "100%",
27998
+ "icon": "$plus",
27999
+ "tile": true,
28000
+ "tabindex": "-1",
28001
+ "onClick": onClickUp
28002
+ }, null)]) : !props.reverse ? createVNode(Fragment, null, [dividerNode(), controlNode()]) : undefined;
28003
+ const hasAppendInner = slots['append-inner'] || appendInnerControl;
28004
+ const prependInnerControl = controlVariant.value === 'split' ? createVNode("div", {
28005
+ "class": "v-number-input__control"
28006
+ }, [createVNode(VBtn, {
28007
+ "flat": true,
28008
+ "height": "100%",
28009
+ "icon": "$minus",
28010
+ "tile": true,
28011
+ "tabindex": "-1",
28012
+ "onClick": onClickDown
28013
+ }, null), createVNode(VDivider, {
28014
+ "vertical": true
28015
+ }, null)]) : props.reverse ? createVNode(Fragment, null, [controlNode(), dividerNode()]) : undefined;
28016
+ const hasPrependInner = slots['prepend-inner'] || prependInnerControl;
28017
+ return createVNode(VTextField, mergeProps({
28018
+ "modelValue": model.value,
28019
+ "onUpdate:modelValue": onModelUpdate,
28020
+ "onKeydown": onKeydown,
28006
28021
  "class": ['v-number-input', {
28007
28022
  'v-number-input--default': controlVariant.value === 'default',
28008
28023
  'v-number-input--hide-input': props.hideInput,
@@ -28011,57 +28026,22 @@ const VNumberInput = genericComponent()({
28011
28026
  'v-number-input--split': controlVariant.value === 'split',
28012
28027
  'v-number-input--stacked': controlVariant.value === 'stacked'
28013
28028
  }, props.class]
28014
- }, rootAttrs, inputProps, {
28015
- "focused": isFocused.value,
28029
+ }, textFieldProps, {
28016
28030
  "style": props.style
28017
28031
  }), {
28018
28032
  ...slots,
28019
- default: () => createVNode(VField, mergeProps(fieldProps, {
28020
- "active": true,
28021
- "focused": isFocused.value
28022
- }), {
28023
- ...slots,
28024
- default: _ref2 => {
28025
- let {
28026
- props: {
28027
- class: fieldClass,
28028
- ...slotProps
28029
- }
28030
- } = _ref2;
28031
- return createVNode("input", mergeProps({
28032
- "ref": inputRef,
28033
- "type": "text",
28034
- "value": model.value,
28035
- "onInput": onInput,
28036
- "onKeydown": onKeydown,
28037
- "class": fieldClass,
28038
- "onFocus": onFocus,
28039
- "onBlur": blur
28040
- }, inputAttrs), null);
28041
- },
28042
- 'append-inner': controlVariant.value === 'split' ? () => createVNode("div", {
28043
- "class": "v-number-input__control"
28044
- }, [createVNode(VDivider, {
28045
- "vertical": true
28046
- }, null), createVNode(VBtn, {
28047
- "flat": true,
28048
- "height": "100%",
28049
- "icon": "$plus",
28050
- "tile": true,
28051
- "onClick": onClickUp
28052
- }, null)]) : !props.reverse ? () => createVNode(Fragment, null, [dividerNode(), controlNode()]) : undefined,
28053
- 'prepend-inner': controlVariant.value === 'split' ? () => createVNode("div", {
28054
- "class": "v-number-input__control"
28055
- }, [createVNode(VBtn, {
28056
- "flat": true,
28057
- "height": "100%",
28058
- "icon": "$minus",
28059
- "tile": true,
28060
- "onClick": onClickDown
28061
- }, null), createVNode(VDivider, {
28062
- "vertical": true
28063
- }, null)]) : props.reverse ? () => createVNode(Fragment, null, [controlNode(), dividerNode()]) : undefined
28064
- })
28033
+ 'append-inner': hasAppendInner ? function () {
28034
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
28035
+ args[_key] = arguments[_key];
28036
+ }
28037
+ return createVNode(Fragment, null, [slots['append-inner']?.(...args), appendInnerControl]);
28038
+ } : undefined,
28039
+ 'prepend-inner': hasPrependInner ? function () {
28040
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
28041
+ args[_key2] = arguments[_key2];
28042
+ }
28043
+ return createVNode(Fragment, null, [prependInnerControl, slots['prepend-inner']?.(...args)]);
28044
+ } : undefined
28065
28045
  });
28066
28046
  });
28067
28047
  }
@@ -29764,7 +29744,7 @@ function createVuetify$1() {
29764
29744
  goTo
29765
29745
  };
29766
29746
  }
29767
- const version$1 = "3.6.3-master.2024-05-05";
29747
+ const version$1 = "3.6.3-master.2024-05-07";
29768
29748
  createVuetify$1.version = version$1;
29769
29749
 
29770
29750
  // Vue's inject() can only be used in setup
@@ -30017,7 +29997,7 @@ var index = /*#__PURE__*/Object.freeze({
30017
29997
 
30018
29998
  /* eslint-disable local-rules/sort-imports */
30019
29999
 
30020
- const version = "3.6.3-master.2024-05-05";
30000
+ const version = "3.6.3-master.2024-05-07";
30021
30001
 
30022
30002
  /* eslint-disable local-rules/sort-imports */
30023
30003