@vuetify/nightly 3.6.5-master.2024-05-12 → 3.6.5-master.2024-05-14

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.
@@ -76076,7 +76076,7 @@ declare const VDateInput: {
76076
76076
  type VDateInput = InstanceType<typeof VDateInput>;
76077
76077
 
76078
76078
  type ControlSlot = {
76079
- click: () => void;
76079
+ click: (e: MouseEvent) => void;
76080
76080
  };
76081
76081
  type ControlVariant = 'default' | 'stacked' | 'split';
76082
76082
  declare const VNumberInput: {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.6.5-master.2024-05-12
2
+ * Vuetify v3.6.5-master.2024-05-14
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -11138,6 +11138,7 @@ const VMenu = genericComponent()({
11138
11138
  function onKeydown(e) {
11139
11139
  if (props.disabled) return;
11140
11140
  if (e.key === 'Tab' || e.key === 'Enter' && !props.closeOnContentClick) {
11141
+ if (e.key === 'Enter' && e.target instanceof HTMLTextAreaElement) return;
11141
11142
  if (e.key === 'Enter') e.preventDefault();
11142
11143
  const nextElement = getNextElement(focusableChildren(overlay.value?.contentEl, false), e.shiftKey ? 'prev' : 'next', el => el.tabIndex >= 0);
11143
11144
  if (!nextElement) {
@@ -26172,6 +26173,7 @@ const VSwitch = genericComponent()({
26172
26173
  blur
26173
26174
  } = useFocus(props);
26174
26175
  const control = ref();
26176
+ const isForcedColorsModeActive = IN_BROWSER && window.matchMedia('(forced-colors: active)').matches;
26175
26177
  const loaderColor = computed(() => {
26176
26178
  return typeof props.loading === 'string' && props.loading !== '' ? props.loading : props.color;
26177
26179
  });
@@ -26240,7 +26242,7 @@ const VSwitch = genericComponent()({
26240
26242
  backgroundColorStyles
26241
26243
  } = _ref3;
26242
26244
  return createVNode("div", {
26243
- "class": ['v-switch__track', ...backgroundColorClasses.value],
26245
+ "class": ['v-switch__track', !isForcedColorsModeActive ? backgroundColorClasses.value : undefined],
26244
26246
  "style": backgroundColorStyles.value,
26245
26247
  "onClick": onTrackClick
26246
26248
  }, [slots['track-true'] && createVNode("div", {
@@ -26261,7 +26263,7 @@ const VSwitch = genericComponent()({
26261
26263
  return createVNode(Fragment, null, [inputNode, createVNode("div", {
26262
26264
  "class": ['v-switch__thumb', {
26263
26265
  'v-switch__thumb--filled': icon || props.loading
26264
- }, props.inset ? undefined : backgroundColorClasses.value],
26266
+ }, props.inset || isForcedColorsModeActive ? undefined : backgroundColorClasses.value],
26265
26267
  "style": props.inset ? undefined : backgroundColorStyles.value
26266
26268
  }, [slots.thumb ? createVNode(VDefaultsProvider, {
26267
26269
  "defaults": {
@@ -27965,10 +27967,12 @@ const VNumberInput = genericComponent()({
27965
27967
  if (canDecrease.value) model.value = +(model.value - props.step).toFixed(decimals);
27966
27968
  }
27967
27969
  }
27968
- function onClickUp() {
27970
+ function onClickUp(e) {
27971
+ e.stopPropagation();
27969
27972
  toggleUpDown();
27970
27973
  }
27971
- function onClickDown() {
27974
+ function onClickDown(e) {
27975
+ e.stopPropagation();
27972
27976
  toggleUpDown(false);
27973
27977
  }
27974
27978
  function onKeydown(e) {
@@ -27992,6 +27996,9 @@ const VNumberInput = genericComponent()({
27992
27996
  function onModelUpdate(v) {
27993
27997
  model.value = v ? +v : undefined;
27994
27998
  }
27999
+ function onControlMousedown(e) {
28000
+ e.stopPropagation();
28001
+ }
27995
28002
  useRender(() => {
27996
28003
  const {
27997
28004
  modelValue: _,
@@ -28010,7 +28017,8 @@ const VNumberInput = genericComponent()({
28010
28017
  "icon": "$expand",
28011
28018
  "size": "small",
28012
28019
  "tabindex": "-1",
28013
- "onClick": onClickDown
28020
+ "onClick": onClickDown,
28021
+ "onMousedown": onControlMousedown
28014
28022
  }, null) : createVNode(VDefaultsProvider, {
28015
28023
  "key": "decrement-defaults",
28016
28024
  "defaults": {
@@ -28034,6 +28042,7 @@ const VNumberInput = genericComponent()({
28034
28042
  "name": "increment-btn",
28035
28043
  "icon": "$collapse",
28036
28044
  "onClick": onClickUp,
28045
+ "onMousedown": onControlMousedown,
28037
28046
  "size": "small",
28038
28047
  "tabindex": "-1"
28039
28048
  }, null) : createVNode(VDefaultsProvider, {
@@ -28066,7 +28075,8 @@ const VNumberInput = genericComponent()({
28066
28075
  "icon": "$plus",
28067
28076
  "tile": true,
28068
28077
  "tabindex": "-1",
28069
- "onClick": onClickUp
28078
+ "onClick": onClickUp,
28079
+ "onMousedown": onControlMousedown
28070
28080
  }, null)]) : !props.reverse ? createVNode(Fragment, null, [dividerNode(), controlNode()]) : undefined;
28071
28081
  const hasAppendInner = slots['append-inner'] || appendInnerControl;
28072
28082
  const prependInnerControl = controlVariant.value === 'split' ? createVNode("div", {
@@ -28077,7 +28087,8 @@ const VNumberInput = genericComponent()({
28077
28087
  "icon": "$minus",
28078
28088
  "tile": true,
28079
28089
  "tabindex": "-1",
28080
- "onClick": onClickDown
28090
+ "onClick": onClickDown,
28091
+ "onMousedown": onControlMousedown
28081
28092
  }, null), createVNode(VDivider, {
28082
28093
  "vertical": true
28083
28094
  }, null)]) : props.reverse ? createVNode(Fragment, null, [controlNode(), dividerNode()]) : undefined;
@@ -28095,7 +28106,8 @@ const VNumberInput = genericComponent()({
28095
28106
  'v-number-input--stacked': controlVariant.value === 'stacked'
28096
28107
  }, props.class]
28097
28108
  }, textFieldProps, {
28098
- "style": props.style
28109
+ "style": props.style,
28110
+ "inputmode": "decimal"
28099
28111
  }), {
28100
28112
  ...slots,
28101
28113
  'append-inner': hasAppendInner ? function () {
@@ -30072,7 +30084,7 @@ function createVuetify$1() {
30072
30084
  goTo
30073
30085
  };
30074
30086
  }
30075
- const version$1 = "3.6.5-master.2024-05-12";
30087
+ const version$1 = "3.6.5-master.2024-05-14";
30076
30088
  createVuetify$1.version = version$1;
30077
30089
 
30078
30090
  // Vue's inject() can only be used in setup
@@ -30325,7 +30337,7 @@ var index = /*#__PURE__*/Object.freeze({
30325
30337
 
30326
30338
  /* eslint-disable local-rules/sort-imports */
30327
30339
 
30328
- const version = "3.6.5-master.2024-05-12";
30340
+ const version = "3.6.5-master.2024-05-14";
30329
30341
 
30330
30342
  /* eslint-disable local-rules/sort-imports */
30331
30343