@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.
@@ -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
  */
@@ -11142,6 +11142,7 @@
11142
11142
  function onKeydown(e) {
11143
11143
  if (props.disabled) return;
11144
11144
  if (e.key === 'Tab' || e.key === 'Enter' && !props.closeOnContentClick) {
11145
+ if (e.key === 'Enter' && e.target instanceof HTMLTextAreaElement) return;
11145
11146
  if (e.key === 'Enter') e.preventDefault();
11146
11147
  const nextElement = getNextElement(focusableChildren(overlay.value?.contentEl, false), e.shiftKey ? 'prev' : 'next', el => el.tabIndex >= 0);
11147
11148
  if (!nextElement) {
@@ -26176,6 +26177,7 @@
26176
26177
  blur
26177
26178
  } = useFocus(props);
26178
26179
  const control = vue.ref();
26180
+ const isForcedColorsModeActive = IN_BROWSER && window.matchMedia('(forced-colors: active)').matches;
26179
26181
  const loaderColor = vue.computed(() => {
26180
26182
  return typeof props.loading === 'string' && props.loading !== '' ? props.loading : props.color;
26181
26183
  });
@@ -26244,7 +26246,7 @@
26244
26246
  backgroundColorStyles
26245
26247
  } = _ref3;
26246
26248
  return vue.createVNode("div", {
26247
- "class": ['v-switch__track', ...backgroundColorClasses.value],
26249
+ "class": ['v-switch__track', !isForcedColorsModeActive ? backgroundColorClasses.value : undefined],
26248
26250
  "style": backgroundColorStyles.value,
26249
26251
  "onClick": onTrackClick
26250
26252
  }, [slots['track-true'] && vue.createVNode("div", {
@@ -26265,7 +26267,7 @@
26265
26267
  return vue.createVNode(vue.Fragment, null, [inputNode, vue.createVNode("div", {
26266
26268
  "class": ['v-switch__thumb', {
26267
26269
  'v-switch__thumb--filled': icon || props.loading
26268
- }, props.inset ? undefined : backgroundColorClasses.value],
26270
+ }, props.inset || isForcedColorsModeActive ? undefined : backgroundColorClasses.value],
26269
26271
  "style": props.inset ? undefined : backgroundColorStyles.value
26270
26272
  }, [slots.thumb ? vue.createVNode(VDefaultsProvider, {
26271
26273
  "defaults": {
@@ -27969,10 +27971,12 @@
27969
27971
  if (canDecrease.value) model.value = +(model.value - props.step).toFixed(decimals);
27970
27972
  }
27971
27973
  }
27972
- function onClickUp() {
27974
+ function onClickUp(e) {
27975
+ e.stopPropagation();
27973
27976
  toggleUpDown();
27974
27977
  }
27975
- function onClickDown() {
27978
+ function onClickDown(e) {
27979
+ e.stopPropagation();
27976
27980
  toggleUpDown(false);
27977
27981
  }
27978
27982
  function onKeydown(e) {
@@ -27996,6 +28000,9 @@
27996
28000
  function onModelUpdate(v) {
27997
28001
  model.value = v ? +v : undefined;
27998
28002
  }
28003
+ function onControlMousedown(e) {
28004
+ e.stopPropagation();
28005
+ }
27999
28006
  useRender(() => {
28000
28007
  const {
28001
28008
  modelValue: _,
@@ -28014,7 +28021,8 @@
28014
28021
  "icon": "$expand",
28015
28022
  "size": "small",
28016
28023
  "tabindex": "-1",
28017
- "onClick": onClickDown
28024
+ "onClick": onClickDown,
28025
+ "onMousedown": onControlMousedown
28018
28026
  }, null) : vue.createVNode(VDefaultsProvider, {
28019
28027
  "key": "decrement-defaults",
28020
28028
  "defaults": {
@@ -28038,6 +28046,7 @@
28038
28046
  "name": "increment-btn",
28039
28047
  "icon": "$collapse",
28040
28048
  "onClick": onClickUp,
28049
+ "onMousedown": onControlMousedown,
28041
28050
  "size": "small",
28042
28051
  "tabindex": "-1"
28043
28052
  }, null) : vue.createVNode(VDefaultsProvider, {
@@ -28070,7 +28079,8 @@
28070
28079
  "icon": "$plus",
28071
28080
  "tile": true,
28072
28081
  "tabindex": "-1",
28073
- "onClick": onClickUp
28082
+ "onClick": onClickUp,
28083
+ "onMousedown": onControlMousedown
28074
28084
  }, null)]) : !props.reverse ? vue.createVNode(vue.Fragment, null, [dividerNode(), controlNode()]) : undefined;
28075
28085
  const hasAppendInner = slots['append-inner'] || appendInnerControl;
28076
28086
  const prependInnerControl = controlVariant.value === 'split' ? vue.createVNode("div", {
@@ -28081,7 +28091,8 @@
28081
28091
  "icon": "$minus",
28082
28092
  "tile": true,
28083
28093
  "tabindex": "-1",
28084
- "onClick": onClickDown
28094
+ "onClick": onClickDown,
28095
+ "onMousedown": onControlMousedown
28085
28096
  }, null), vue.createVNode(VDivider, {
28086
28097
  "vertical": true
28087
28098
  }, null)]) : props.reverse ? vue.createVNode(vue.Fragment, null, [controlNode(), dividerNode()]) : undefined;
@@ -28099,7 +28110,8 @@
28099
28110
  'v-number-input--stacked': controlVariant.value === 'stacked'
28100
28111
  }, props.class]
28101
28112
  }, textFieldProps, {
28102
- "style": props.style
28113
+ "style": props.style,
28114
+ "inputmode": "decimal"
28103
28115
  }), {
28104
28116
  ...slots,
28105
28117
  'append-inner': hasAppendInner ? function () {
@@ -30076,7 +30088,7 @@
30076
30088
  goTo
30077
30089
  };
30078
30090
  }
30079
- const version$1 = "3.6.5-master.2024-05-12";
30091
+ const version$1 = "3.6.5-master.2024-05-14";
30080
30092
  createVuetify$1.version = version$1;
30081
30093
 
30082
30094
  // Vue's inject() can only be used in setup
@@ -30329,7 +30341,7 @@
30329
30341
 
30330
30342
  /* eslint-disable local-rules/sort-imports */
30331
30343
 
30332
- const version = "3.6.5-master.2024-05-12";
30344
+ const version = "3.6.5-master.2024-05-14";
30333
30345
 
30334
30346
  /* eslint-disable local-rules/sort-imports */
30335
30347