@vuetify/nightly 3.7.4-master.2024-11-24 → 3.7.4-master.2024-11-29
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/dist/json/attributes.json +2905 -2905
- package/dist/json/importMap-labs.json +26 -26
- package/dist/json/importMap.json +158 -158
- package/dist/json/web-types.json +5578 -5578
- package/dist/vuetify-labs.css +3489 -3489
- package/dist/vuetify-labs.d.ts +199 -199
- package/dist/vuetify-labs.esm.js +48 -46
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +48 -46
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +1248 -1248
- package/dist/vuetify.d.ts +182 -182
- package/dist/vuetify.esm.js +42 -39
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +42 -39
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +26 -25
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.mjs +4 -4
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +28 -28
- package/lib/components/VChip/VChip.mjs +1 -1
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.mts +9 -9
- package/lib/components/VCombobox/VCombobox.mjs +4 -4
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +28 -28
- package/lib/components/VDatePicker/VDatePickerHeader.mjs +2 -1
- package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
- package/lib/components/VDatePicker/index.d.mts +6 -6
- package/lib/components/VList/VList.mjs +3 -2
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/index.d.mts +12 -12
- package/lib/components/VSelect/VSelect.mjs +3 -3
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +28 -28
- package/lib/components/VStepper/VStepper.mjs +5 -4
- package/lib/components/VStepper/VStepper.mjs.map +1 -1
- package/lib/components/VStepper/VStepperItem.mjs +5 -4
- package/lib/components/VStepper/VStepperItem.mjs.map +1 -1
- package/lib/components/VStepper/index.d.mts +58 -52
- package/lib/components/index.d.mts +126 -126
- package/lib/composables/form.mjs +7 -2
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/validation.mjs +10 -12
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/index.d.mts +56 -56
- package/lib/labs/VNumberInput/VNumberInput.mjs +3 -3
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/lib/labs/VStepperVertical/index.d.mts +51 -51
- package/lib/labs/VTreeview/VTreeviewItem.mjs +3 -4
- package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
- package/lib/labs/VTreeview/index.d.mts +22 -22
- package/lib/labs/components.d.mts +73 -73
- package/package.json +1 -1
package/dist/vuetify.esm.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Vuetify v3.7.4-master.2024-11-
|
2
|
+
* Vuetify v3.7.4-master.2024-11-29
|
3
3
|
* Forged by John Leider
|
4
4
|
* Released under the MIT License.
|
5
5
|
*/
|
@@ -6901,8 +6901,13 @@ function createForm(props) {
|
|
6901
6901
|
resetValidation
|
6902
6902
|
};
|
6903
6903
|
}
|
6904
|
-
function useForm() {
|
6905
|
-
|
6904
|
+
function useForm(props) {
|
6905
|
+
const form = inject$1(FormKey, null);
|
6906
|
+
return {
|
6907
|
+
...form,
|
6908
|
+
isReadonly: computed(() => !!(props?.readonly ?? form?.isReadonly.value)),
|
6909
|
+
isDisabled: computed(() => !!(props?.disabled ?? form?.isDisabled.value))
|
6910
|
+
};
|
6906
6911
|
}
|
6907
6912
|
|
6908
6913
|
// Composables
|
@@ -6943,17 +6948,15 @@ function useValidation(props) {
|
|
6943
6948
|
let id = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : getUid();
|
6944
6949
|
const model = useProxiedModel(props, 'modelValue');
|
6945
6950
|
const validationModel = computed(() => props.validationValue === undefined ? model.value : props.validationValue);
|
6946
|
-
const form = useForm();
|
6951
|
+
const form = useForm(props);
|
6947
6952
|
const internalErrorMessages = ref([]);
|
6948
6953
|
const isPristine = shallowRef(true);
|
6949
6954
|
const isDirty = computed(() => !!(wrapInArray(model.value === '' ? null : model.value).length || wrapInArray(validationModel.value === '' ? null : validationModel.value).length));
|
6950
|
-
const isDisabled = computed(() => !!(props.disabled ?? form?.isDisabled.value));
|
6951
|
-
const isReadonly = computed(() => !!(props.readonly ?? form?.isReadonly.value));
|
6952
6955
|
const errorMessages = computed(() => {
|
6953
6956
|
return props.errorMessages?.length ? wrapInArray(props.errorMessages).concat(internalErrorMessages.value).slice(0, Math.max(0, +props.maxErrors)) : internalErrorMessages.value;
|
6954
6957
|
});
|
6955
6958
|
const validateOn = computed(() => {
|
6956
|
-
let value = (props.validateOn ?? form?.
|
6959
|
+
let value = (props.validateOn ?? form.validateOn?.value) || 'input';
|
6957
6960
|
if (value === 'lazy') value = 'input lazy';
|
6958
6961
|
if (value === 'eager') value = 'input eager';
|
6959
6962
|
const set = new Set(value?.split(' ') ?? []);
|
@@ -6979,14 +6982,14 @@ function useValidation(props) {
|
|
6979
6982
|
return {
|
6980
6983
|
[`${name}--error`]: isValid.value === false,
|
6981
6984
|
[`${name}--dirty`]: isDirty.value,
|
6982
|
-
[`${name}--disabled`]: isDisabled.value,
|
6983
|
-
[`${name}--readonly`]: isReadonly.value
|
6985
|
+
[`${name}--disabled`]: form.isDisabled.value,
|
6986
|
+
[`${name}--readonly`]: form.isReadonly.value
|
6984
6987
|
};
|
6985
6988
|
});
|
6986
6989
|
const vm = getCurrentInstance('validation');
|
6987
6990
|
const uid = computed(() => props.name ?? unref(id));
|
6988
6991
|
onBeforeMount(() => {
|
6989
|
-
form?.
|
6992
|
+
form.register?.({
|
6990
6993
|
id: uid.value,
|
6991
6994
|
vm,
|
6992
6995
|
validate,
|
@@ -6995,13 +6998,13 @@ function useValidation(props) {
|
|
6995
6998
|
});
|
6996
6999
|
});
|
6997
7000
|
onBeforeUnmount(() => {
|
6998
|
-
form?.
|
7001
|
+
form.unregister?.(uid.value);
|
6999
7002
|
});
|
7000
7003
|
onMounted(async () => {
|
7001
7004
|
if (!validateOn.value.lazy) {
|
7002
7005
|
await validate(!validateOn.value.eager);
|
7003
7006
|
}
|
7004
|
-
form?.
|
7007
|
+
form.update?.(uid.value, isValid.value, errorMessages.value);
|
7005
7008
|
});
|
7006
7009
|
useToggleScope(() => validateOn.value.input || validateOn.value.invalidInput && isValid.value === false, () => {
|
7007
7010
|
watch(validationModel, () => {
|
@@ -7021,7 +7024,7 @@ function useValidation(props) {
|
|
7021
7024
|
});
|
7022
7025
|
});
|
7023
7026
|
watch([isValid, errorMessages], () => {
|
7024
|
-
form?.
|
7027
|
+
form.update?.(uid.value, isValid.value, errorMessages.value);
|
7025
7028
|
});
|
7026
7029
|
async function reset() {
|
7027
7030
|
model.value = null;
|
@@ -7062,8 +7065,8 @@ function useValidation(props) {
|
|
7062
7065
|
return {
|
7063
7066
|
errorMessages,
|
7064
7067
|
isDirty,
|
7065
|
-
isDisabled,
|
7066
|
-
isReadonly,
|
7068
|
+
isDisabled: form.isDisabled,
|
7069
|
+
isReadonly: form.isReadonly,
|
7067
7070
|
isPristine,
|
7068
7071
|
isValid,
|
7069
7072
|
isValidating,
|
@@ -8066,7 +8069,7 @@ const makeVChipProps = propsFactory({
|
|
8066
8069
|
draggable: Boolean,
|
8067
8070
|
filter: Boolean,
|
8068
8071
|
filterIcon: {
|
8069
|
-
type:
|
8072
|
+
type: IconValue,
|
8070
8073
|
default: '$complete'
|
8071
8074
|
},
|
8072
8075
|
label: Boolean,
|
@@ -9672,8 +9675,8 @@ const makeVListProps = propsFactory({
|
|
9672
9675
|
activeClass: String,
|
9673
9676
|
bgColor: String,
|
9674
9677
|
disabled: Boolean,
|
9675
|
-
expandIcon:
|
9676
|
-
collapseIcon:
|
9678
|
+
expandIcon: IconValue,
|
9679
|
+
collapseIcon: IconValue,
|
9677
9680
|
lines: {
|
9678
9681
|
type: [Boolean, String],
|
9679
9682
|
default: 'one'
|
@@ -12673,7 +12676,7 @@ const VSelect = genericComponent()({
|
|
12673
12676
|
const counterValue = computed(() => {
|
12674
12677
|
return typeof props.counterValue === 'function' ? props.counterValue(model.value) : typeof props.counterValue === 'number' ? props.counterValue : model.value.length;
|
12675
12678
|
});
|
12676
|
-
const form = useForm();
|
12679
|
+
const form = useForm(props);
|
12677
12680
|
const selectedValues = computed(() => model.value.map(selection => selection.value));
|
12678
12681
|
const isFocused = shallowRef(false);
|
12679
12682
|
const label = computed(() => menu.value ? props.closeText : props.openText);
|
@@ -12685,7 +12688,7 @@ const VSelect = genericComponent()({
|
|
12685
12688
|
}
|
12686
12689
|
return items.value;
|
12687
12690
|
});
|
12688
|
-
const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length ||
|
12691
|
+
const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length || form.isReadonly.value || form.isDisabled.value);
|
12689
12692
|
const computedMenuProps = computed(() => {
|
12690
12693
|
return {
|
12691
12694
|
...props.menuProps,
|
@@ -12712,7 +12715,7 @@ const VSelect = genericComponent()({
|
|
12712
12715
|
}
|
12713
12716
|
}
|
12714
12717
|
function onKeydown(e) {
|
12715
|
-
if (!e.key ||
|
12718
|
+
if (!e.key || form.isReadonly.value) return;
|
12716
12719
|
if (['Enter', ' ', 'ArrowDown', 'ArrowUp', 'Home', 'End'].includes(e.key)) {
|
12717
12720
|
e.preventDefault();
|
12718
12721
|
}
|
@@ -13190,7 +13193,7 @@ const VAutocomplete = genericComponent()({
|
|
13190
13193
|
const counterValue = computed(() => {
|
13191
13194
|
return typeof props.counterValue === 'function' ? props.counterValue(model.value) : typeof props.counterValue === 'number' ? props.counterValue : model.value.length;
|
13192
13195
|
});
|
13193
|
-
const form = useForm();
|
13196
|
+
const form = useForm(props);
|
13194
13197
|
const {
|
13195
13198
|
filteredItems,
|
13196
13199
|
getMatches
|
@@ -13208,7 +13211,7 @@ const VAutocomplete = genericComponent()({
|
|
13208
13211
|
const selectFirst = props.autoSelectFirst === true || props.autoSelectFirst === 'exact' && search.value === displayItems.value[0]?.title;
|
13209
13212
|
return selectFirst && displayItems.value.length > 0 && !isPristine.value && !listHasFocus.value;
|
13210
13213
|
});
|
13211
|
-
const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length ||
|
13214
|
+
const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length || form.isReadonly.value || form.isDisabled.value);
|
13212
13215
|
const listRef = ref();
|
13213
13216
|
const listEvents = useScrolling(listRef, vTextFieldRef);
|
13214
13217
|
function onClear(e) {
|
@@ -13235,7 +13238,7 @@ const VAutocomplete = genericComponent()({
|
|
13235
13238
|
}
|
13236
13239
|
}
|
13237
13240
|
function onKeydown(e) {
|
13238
|
-
if (
|
13241
|
+
if (form.isReadonly.value) return;
|
13239
13242
|
const selectionStart = vTextFieldRef.value.selectionStart;
|
13240
13243
|
const length = model.value.length;
|
13241
13244
|
if (selectionIndex.value > -1 || ['Enter', 'ArrowDown', 'ArrowUp'].includes(e.key)) {
|
@@ -13412,7 +13415,7 @@ const VAutocomplete = genericComponent()({
|
|
13412
13415
|
'v-autocomplete--selecting-index': selectionIndex.value > -1
|
13413
13416
|
}, props.class],
|
13414
13417
|
"style": props.style,
|
13415
|
-
"readonly":
|
13418
|
+
"readonly": form.isReadonly.value,
|
13416
13419
|
"placeholder": isDirty ? undefined : props.placeholder,
|
13417
13420
|
"onClick:clear": onClear,
|
13418
13421
|
"onMousedown:control": onMousedownControl,
|
@@ -17031,7 +17034,7 @@ const VCombobox = genericComponent()({
|
|
17031
17034
|
const transformed = transformOut(v);
|
17032
17035
|
return props.multiple ? transformed : transformed[0] ?? null;
|
17033
17036
|
});
|
17034
|
-
const form = useForm();
|
17037
|
+
const form = useForm(props);
|
17035
17038
|
const hasChips = computed(() => !!(props.chips || slots.chip));
|
17036
17039
|
const hasSelectionSlot = computed(() => hasChips.value || !!slots.selection);
|
17037
17040
|
const _search = shallowRef(!props.multiple && !hasSelectionSlot.value ? model.value[0]?.title ?? '' : '');
|
@@ -17091,7 +17094,7 @@ const VCombobox = genericComponent()({
|
|
17091
17094
|
const selectFirst = props.autoSelectFirst === true || props.autoSelectFirst === 'exact' && search.value === displayItems.value[0]?.title;
|
17092
17095
|
return selectFirst && displayItems.value.length > 0 && !isPristine.value && !listHasFocus.value;
|
17093
17096
|
});
|
17094
|
-
const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length ||
|
17097
|
+
const menuDisabled = computed(() => props.hideNoData && !displayItems.value.length || form.isReadonly.value || form.isDisabled.value);
|
17095
17098
|
const listRef = ref();
|
17096
17099
|
const listEvents = useScrolling(listRef, vTextFieldRef);
|
17097
17100
|
function onClear(e) {
|
@@ -17119,7 +17122,7 @@ const VCombobox = genericComponent()({
|
|
17119
17122
|
}
|
17120
17123
|
// eslint-disable-next-line complexity
|
17121
17124
|
function onKeydown(e) {
|
17122
|
-
if (isComposingIgnoreKey(e) ||
|
17125
|
+
if (isComposingIgnoreKey(e) || form.isReadonly.value) return;
|
17123
17126
|
const selectionStart = vTextFieldRef.value.selectionStart;
|
17124
17127
|
const length = model.value.length;
|
17125
17128
|
if (selectionIndex.value > -1 || ['Enter', 'ArrowDown', 'ArrowUp'].includes(e.key)) {
|
@@ -17291,7 +17294,7 @@ const VCombobox = genericComponent()({
|
|
17291
17294
|
[`v-combobox--${props.multiple ? 'multiple' : 'single'}`]: true
|
17292
17295
|
}, props.class],
|
17293
17296
|
"style": props.style,
|
17294
|
-
"readonly":
|
17297
|
+
"readonly": form.isReadonly.value,
|
17295
17298
|
"placeholder": isDirty ? undefined : props.placeholder,
|
17296
17299
|
"onClick:clear": onClear,
|
17297
17300
|
"onMousedown:control": onMousedownControl,
|
@@ -21651,7 +21654,7 @@ const VDatePickerControls = genericComponent()({
|
|
21651
21654
|
// Types
|
21652
21655
|
|
21653
21656
|
const makeVDatePickerHeaderProps = propsFactory({
|
21654
|
-
appendIcon:
|
21657
|
+
appendIcon: IconValue,
|
21655
21658
|
color: String,
|
21656
21659
|
header: String,
|
21657
21660
|
transition: String,
|
@@ -26303,20 +26306,20 @@ const makeStepperItemProps = propsFactory({
|
|
26303
26306
|
subtitle: String,
|
26304
26307
|
complete: Boolean,
|
26305
26308
|
completeIcon: {
|
26306
|
-
type:
|
26309
|
+
type: IconValue,
|
26307
26310
|
default: '$complete'
|
26308
26311
|
},
|
26309
26312
|
editable: Boolean,
|
26310
26313
|
editIcon: {
|
26311
|
-
type:
|
26314
|
+
type: IconValue,
|
26312
26315
|
default: '$edit'
|
26313
26316
|
},
|
26314
26317
|
error: Boolean,
|
26315
26318
|
errorIcon: {
|
26316
|
-
type:
|
26319
|
+
type: IconValue,
|
26317
26320
|
default: '$error'
|
26318
26321
|
},
|
26319
|
-
icon:
|
26322
|
+
icon: IconValue,
|
26320
26323
|
ripple: {
|
26321
26324
|
type: [Boolean, Object],
|
26322
26325
|
default: true
|
@@ -26477,10 +26480,10 @@ const VStepperWindowItem = genericComponent()({
|
|
26477
26480
|
const makeStepperProps = propsFactory({
|
26478
26481
|
altLabels: Boolean,
|
26479
26482
|
bgColor: String,
|
26480
|
-
completeIcon:
|
26481
|
-
editIcon:
|
26483
|
+
completeIcon: IconValue,
|
26484
|
+
editIcon: IconValue,
|
26482
26485
|
editable: Boolean,
|
26483
|
-
errorIcon:
|
26486
|
+
errorIcon: IconValue,
|
26484
26487
|
hideActions: Boolean,
|
26485
26488
|
items: {
|
26486
26489
|
type: Array,
|
@@ -28257,7 +28260,7 @@ function createVuetify$1() {
|
|
28257
28260
|
goTo
|
28258
28261
|
};
|
28259
28262
|
}
|
28260
|
-
const version$1 = "3.7.4-master.2024-11-
|
28263
|
+
const version$1 = "3.7.4-master.2024-11-29";
|
28261
28264
|
createVuetify$1.version = version$1;
|
28262
28265
|
|
28263
28266
|
// Vue's inject() can only be used in setup
|
@@ -28282,7 +28285,7 @@ const createVuetify = function () {
|
|
28282
28285
|
...options
|
28283
28286
|
});
|
28284
28287
|
};
|
28285
|
-
const version = "3.7.4-master.2024-11-
|
28288
|
+
const version = "3.7.4-master.2024-11-29";
|
28286
28289
|
createVuetify.version = version;
|
28287
28290
|
|
28288
28291
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|