@vuetify/nightly 4.0.0-dev-20230421.0 → 4.0.0-dev-20230422.0

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 v4.0.0-dev-20230421.0
2
+ * Vuetify v4.0.0-dev-20230422.0
3
3
  * Forged by John Leider
4
4
  * Released under the MIT License.
5
5
  */
@@ -207,6 +207,10 @@
207
207
  let max = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 1;
208
208
  return Math.max(min, Math.min(max, value));
209
209
  }
210
+ function getDecimals(value) {
211
+ const trimmedStr = value.toString().trim();
212
+ return trimmedStr.includes('.') ? trimmedStr.length - trimmedStr.indexOf('.') - 1 : 0;
213
+ }
210
214
  function padEnd(str, length) {
211
215
  let char = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '0';
212
216
  return str + char.repeat(Math.max(0, length - str.length));
@@ -12618,10 +12622,7 @@
12618
12622
  const min = vue.computed(() => parseFloat(props.min));
12619
12623
  const max = vue.computed(() => parseFloat(props.max));
12620
12624
  const step = vue.computed(() => +props.step > 0 ? parseFloat(props.step) : 0);
12621
- const decimals = vue.computed(() => {
12622
- const trimmedStep = step.value.toString().trim();
12623
- return trimmedStep.includes('.') ? trimmedStep.length - trimmedStep.indexOf('.') - 1 : 0;
12624
- });
12625
+ const decimals = vue.computed(() => Math.max(getDecimals(step.value), getDecimals(min.value)));
12625
12626
  function roundValue(value) {
12626
12627
  if (step.value <= 0) return value;
12627
12628
  const clamped = clamp(value, min.value, max.value);
@@ -21126,7 +21127,7 @@
21126
21127
  date
21127
21128
  };
21128
21129
  }
21129
- const version$1 = "4.0.0-dev-20230421.0";
21130
+ const version$1 = "4.0.0-dev-20230422.0";
21130
21131
  createVuetify$1.version = version$1;
21131
21132
 
21132
21133
  // Vue's inject() can only be used in setup
@@ -21138,7 +21139,7 @@
21138
21139
  }
21139
21140
  }
21140
21141
 
21141
- const version = "4.0.0-dev-20230421.0";
21142
+ const version = "4.0.0-dev-20230422.0";
21142
21143
 
21143
21144
  const createVuetify = function () {
21144
21145
  let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};