@vuetify/nightly 3.6.7-master.2024-05-27 → 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.
- package/CHANGELOG.md +3 -2
- package/dist/json/importMap-labs.json +8 -8
- package/dist/json/importMap.json +148 -148
- package/dist/json/web-types.json +3 -3
- package/dist/vuetify-labs.css +2596 -2596
- package/dist/vuetify-labs.esm.js +9 -3
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +9 -3
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +626 -626
- package/dist/vuetify.d.ts +43 -43
- package/dist/vuetify.esm.js +3 -3
- package/dist/vuetify.js +3 -3
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +3 -3
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +43 -43
- package/lib/labs/VNumberInput/VNumberInput.mjs +7 -0
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/package.json +1 -1
package/dist/vuetify-labs.esm.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.6.7-master.2024-05-
|
2
|
+
* Vuetify v3.6.7-master.2024-05-28
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -27975,15 +27975,20 @@ const VNumberInput = genericComponent()({
|
|
27975
27975
|
const model = useProxiedModel(props, 'modelValue');
|
27976
27976
|
const stepDecimals = computed(() => getDecimals(props.step));
|
27977
27977
|
const modelDecimals = computed(() => model.value != null ? getDecimals(model.value) : 0);
|
27978
|
+
const form = useForm();
|
27979
|
+
const controlsDisabled = computed(() => props.disabled || props.readonly || form?.isReadonly.value);
|
27978
27980
|
const canIncrease = computed(() => {
|
27981
|
+
if (controlsDisabled.value) return false;
|
27979
27982
|
if (model.value == null) return true;
|
27980
27983
|
return model.value + props.step <= props.max;
|
27981
27984
|
});
|
27982
27985
|
const canDecrease = computed(() => {
|
27986
|
+
if (controlsDisabled.value) return false;
|
27983
27987
|
if (model.value == null) return true;
|
27984
27988
|
return model.value - props.step >= props.min;
|
27985
27989
|
});
|
27986
27990
|
watchEffect(() => {
|
27991
|
+
if (controlsDisabled.value) return;
|
27987
27992
|
if (model.value != null && (model.value < props.min || model.value > props.max)) {
|
27988
27993
|
model.value = clamp(model.value, props.min, props.max);
|
27989
27994
|
}
|
@@ -27999,6 +28004,7 @@ const VNumberInput = genericComponent()({
|
|
27999
28004
|
}));
|
28000
28005
|
function toggleUpDown() {
|
28001
28006
|
let increment = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
28007
|
+
if (controlsDisabled.value) return;
|
28002
28008
|
if (model.value == null) {
|
28003
28009
|
model.value = 0;
|
28004
28010
|
return;
|
@@ -30129,7 +30135,7 @@ function createVuetify$1() {
|
|
30129
30135
|
goTo
|
30130
30136
|
};
|
30131
30137
|
}
|
30132
|
-
const version$1 = "3.6.7-master.2024-05-
|
30138
|
+
const version$1 = "3.6.7-master.2024-05-28";
|
30133
30139
|
createVuetify$1.version = version$1;
|
30134
30140
|
|
30135
30141
|
// Vue's inject() can only be used in setup
|
@@ -30382,7 +30388,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
30382
30388
|
|
30383
30389
|
/* eslint-disable local-rules/sort-imports */
|
30384
30390
|
|
30385
|
-
const version = "3.6.7-master.2024-05-
|
30391
|
+
const version = "3.6.7-master.2024-05-28";
|
30386
30392
|
|
30387
30393
|
/* eslint-disable local-rules/sort-imports */
|
30388
30394
|
|