@vuetify/nightly 3.6.7-master.2024-05-25 → 3.6.7-master.2024-05-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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Vuetify v3.6.7-master.2024-05-25
2
+ * Vuetify v3.6.7-master.2024-05-28
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -27979,15 +27979,20 @@
27979
27979
  const model = useProxiedModel(props, 'modelValue');
27980
27980
  const stepDecimals = vue.computed(() => getDecimals(props.step));
27981
27981
  const modelDecimals = vue.computed(() => model.value != null ? getDecimals(model.value) : 0);
27982
+ const form = useForm();
27983
+ const controlsDisabled = vue.computed(() => props.disabled || props.readonly || form?.isReadonly.value);
27982
27984
  const canIncrease = vue.computed(() => {
27985
+ if (controlsDisabled.value) return false;
27983
27986
  if (model.value == null) return true;
27984
27987
  return model.value + props.step <= props.max;
27985
27988
  });
27986
27989
  const canDecrease = vue.computed(() => {
27990
+ if (controlsDisabled.value) return false;
27987
27991
  if (model.value == null) return true;
27988
27992
  return model.value - props.step >= props.min;
27989
27993
  });
27990
27994
  vue.watchEffect(() => {
27995
+ if (controlsDisabled.value) return;
27991
27996
  if (model.value != null && (model.value < props.min || model.value > props.max)) {
27992
27997
  model.value = clamp(model.value, props.min, props.max);
27993
27998
  }
@@ -28003,6 +28008,7 @@
28003
28008
  }));
28004
28009
  function toggleUpDown() {
28005
28010
  let increment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
28011
+ if (controlsDisabled.value) return;
28006
28012
  if (model.value == null) {
28007
28013
  model.value = 0;
28008
28014
  return;
@@ -30133,7 +30139,7 @@
30133
30139
  goTo
30134
30140
  };
30135
30141
  }
30136
- const version$1 = "3.6.7-master.2024-05-25";
30142
+ const version$1 = "3.6.7-master.2024-05-28";
30137
30143
  createVuetify$1.version = version$1;
30138
30144
 
30139
30145
  // Vue's inject() can only be used in setup
@@ -30386,7 +30392,7 @@
30386
30392
 
30387
30393
  /* eslint-disable local-rules/sort-imports */
30388
30394
 
30389
- const version = "3.6.7-master.2024-05-25";
30395
+ const version = "3.6.7-master.2024-05-28";
30390
30396
 
30391
30397
  /* eslint-disable local-rules/sort-imports */
30392
30398