vuetify 3.8.4 → 3.8.6
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/_component-variables-labs.sass +1 -0
- package/dist/json/attributes.json +3300 -2956
- package/dist/json/importMap-labs.json +24 -20
- package/dist/json/importMap.json +182 -182
- package/dist/json/tags.json +91 -0
- package/dist/json/web-types.json +6720 -5503
- package/dist/vuetify-labs.cjs +294 -51
- package/dist/vuetify-labs.css +4169 -4130
- package/dist/vuetify-labs.d.ts +2235 -1152
- package/dist/vuetify-labs.esm.js +294 -51
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +294 -51
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.cjs +22 -42
- package/dist/vuetify.cjs.map +1 -1
- package/dist/vuetify.css +2580 -2544
- package/dist/vuetify.d.ts +532 -526
- package/dist/vuetify.esm.js +22 -42
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +22 -42
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +582 -579
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.d.ts +84 -84
- package/lib/components/VAutocomplete/VAutocomplete.js +0 -5
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.css +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.sass +1 -1
- package/lib/components/VBtn/VBtn.css +25 -0
- package/lib/components/VBtn/VBtn.sass +9 -0
- package/lib/components/VBtn/_variables.scss +1 -0
- package/lib/components/VCheckbox/VCheckbox.d.ts +12 -12
- package/lib/components/VCombobox/VCombobox.d.ts +84 -84
- package/lib/components/VFileInput/VFileInput.d.ts +30 -30
- package/lib/components/VInput/VInput.d.ts +12 -12
- package/lib/components/VList/VList.d.ts +3 -3
- package/lib/components/VList/VList.js.map +1 -1
- package/lib/components/VNumberInput/VNumberInput.css +15 -4
- package/lib/components/VNumberInput/VNumberInput.d.ts +80 -80
- package/lib/components/VNumberInput/VNumberInput.sass +18 -6
- package/lib/components/VRadioGroup/VRadioGroup.d.ts +12 -12
- package/lib/components/VRangeSlider/VRangeSlider.d.ts +12 -12
- package/lib/components/VSelect/VSelect.d.ts +84 -84
- package/lib/components/VSelect/VSelect.js +6 -4
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSlider/VSlider.d.ts +12 -12
- package/lib/components/VSnackbarQueue/VSnackbarQueue.d.ts +3 -1
- package/lib/components/VSnackbarQueue/VSnackbarQueue.js.map +1 -1
- package/lib/components/VSwitch/VSwitch.d.ts +12 -12
- package/lib/components/VTextField/VTextField.d.ts +30 -30
- package/lib/components/VTextarea/VTextarea.d.ts +30 -30
- package/lib/components/VValidation/VValidation.d.ts +8 -8
- package/lib/composables/dateFormat.d.ts +24 -0
- package/lib/composables/dateFormat.js +112 -0
- package/lib/composables/dateFormat.js.map +1 -0
- package/lib/composables/validation.d.ts +6 -5
- package/lib/composables/validation.js +4 -29
- package/lib/composables/validation.js.map +1 -1
- package/lib/entry-bundler.js +1 -1
- package/lib/framework.d.ts +71 -68
- package/lib/framework.js +1 -1
- package/lib/iconsets/mdi.js +2 -1
- package/lib/iconsets/mdi.js.map +1 -1
- package/lib/labs/VColorInput/VColorInput.css +4 -0
- package/lib/labs/VColorInput/VColorInput.d.ts +1767 -0
- package/lib/labs/VColorInput/VColorInput.js +129 -0
- package/lib/labs/VColorInput/VColorInput.js.map +1 -0
- package/lib/labs/VColorInput/VColorInput.sass +7 -0
- package/lib/labs/VColorInput/_variables.scss +2 -0
- package/lib/labs/VColorInput/index.d.ts +1 -0
- package/lib/labs/VColorInput/index.js +2 -0
- package/lib/labs/VColorInput/index.js.map +1 -0
- package/lib/labs/VDateInput/VDateInput.d.ts +130 -105
- package/lib/labs/VDateInput/VDateInput.js +43 -10
- package/lib/labs/VDateInput/VDateInput.js.map +1 -1
- package/lib/labs/components.d.ts +1 -0
- package/lib/labs/components.js +1 -0
- package/lib/labs/components.js.map +1 -1
- package/lib/labs/rules/rules.d.ts +9 -5
- package/lib/labs/rules/rules.js +73 -51
- package/lib/labs/rules/rules.js.map +1 -1
- package/lib/util/helpers.js +1 -1
- package/lib/util/helpers.js.map +1 -1
- package/package.json +2 -3
package/dist/vuetify.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.8.
|
|
2
|
+
* Vuetify v3.8.6
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
@@ -435,7 +435,7 @@
|
|
|
435
435
|
}
|
|
436
436
|
function focusChild(el, location) {
|
|
437
437
|
const focusable = focusableChildren(el);
|
|
438
|
-
if (
|
|
438
|
+
if (location == null) {
|
|
439
439
|
if (el === document.activeElement || !el.contains(document.activeElement)) {
|
|
440
440
|
focusable[0]?.focus();
|
|
441
441
|
}
|
|
@@ -1773,7 +1773,8 @@
|
|
|
1773
1773
|
treeviewCollapse: 'mdi-menu-down',
|
|
1774
1774
|
treeviewExpand: 'mdi-menu-right',
|
|
1775
1775
|
eyeDropper: 'mdi-eyedropper',
|
|
1776
|
-
upload: 'mdi-cloud-upload'
|
|
1776
|
+
upload: 'mdi-cloud-upload',
|
|
1777
|
+
color: 'mdi-palette'
|
|
1777
1778
|
};
|
|
1778
1779
|
const mdi = {
|
|
1779
1780
|
// Not using mergeProps here, functional components merge props by default (?)
|
|
@@ -7038,13 +7039,18 @@
|
|
|
7038
7039
|
};
|
|
7039
7040
|
}
|
|
7040
7041
|
|
|
7042
|
+
// Utilities
|
|
7043
|
+
const RulesSymbol = Symbol.for('vuetify:rules');
|
|
7044
|
+
function useRules(fn) {
|
|
7045
|
+
const resolveRules = vue.inject(RulesSymbol, null);
|
|
7046
|
+
if (!resolveRules) return vue.toRef(fn);
|
|
7047
|
+
return resolveRules(fn);
|
|
7048
|
+
}
|
|
7049
|
+
|
|
7041
7050
|
// Composables
|
|
7042
7051
|
|
|
7043
7052
|
// Types
|
|
7044
7053
|
|
|
7045
|
-
// type ValidationRuleParams = [any, string?]
|
|
7046
|
-
// type ValidationAlias = string | [string, ...ValidationRuleParams]
|
|
7047
|
-
|
|
7048
7054
|
const makeValidationProps = propsFactory({
|
|
7049
7055
|
disabled: {
|
|
7050
7056
|
type: Boolean,
|
|
@@ -7067,7 +7073,6 @@
|
|
|
7067
7073
|
},
|
|
7068
7074
|
rules: {
|
|
7069
7075
|
type: Array,
|
|
7070
|
-
// type: Array as PropType<readonly (ValidationRule | ValidationAlias)[]>,
|
|
7071
7076
|
default: () => []
|
|
7072
7077
|
},
|
|
7073
7078
|
modelValue: null,
|
|
@@ -7081,7 +7086,7 @@
|
|
|
7081
7086
|
const model = useProxiedModel(props, 'modelValue');
|
|
7082
7087
|
const validationModel = vue.computed(() => props.validationValue === undefined ? model.value : props.validationValue);
|
|
7083
7088
|
const form = useForm(props);
|
|
7084
|
-
|
|
7089
|
+
const rules = useRules(() => props.rules);
|
|
7085
7090
|
const internalErrorMessages = vue.ref([]);
|
|
7086
7091
|
const isPristine = vue.shallowRef(true);
|
|
7087
7092
|
const isDirty = vue.computed(() => !!(wrapInArray(model.value === '' ? null : model.value).length || wrapInArray(validationModel.value === '' ? null : validationModel.value).length));
|
|
@@ -7121,28 +7126,6 @@
|
|
|
7121
7126
|
});
|
|
7122
7127
|
const vm = getCurrentInstance('validation');
|
|
7123
7128
|
const uid = vue.computed(() => props.name ?? vue.unref(id));
|
|
7124
|
-
|
|
7125
|
-
// const resolvedRules = computed(() => props.rules.map(rule => {
|
|
7126
|
-
// let ruleName: string | null = null
|
|
7127
|
-
// let ruleParams: ValidationRuleParams = [undefined]
|
|
7128
|
-
// if (Array.isArray(rule)) {
|
|
7129
|
-
// ruleName = rule[0]
|
|
7130
|
-
// ruleParams = rule.slice(1) as ValidationRuleParams
|
|
7131
|
-
// } else if (typeof rule === 'string') {
|
|
7132
|
-
// ruleName = rule
|
|
7133
|
-
// }
|
|
7134
|
-
|
|
7135
|
-
// if (ruleName !== null) {
|
|
7136
|
-
// if (ruleName.startsWith('$')) {
|
|
7137
|
-
// ruleName = ruleName.slice(1)
|
|
7138
|
-
// }
|
|
7139
|
-
|
|
7140
|
-
// return rules?.[ruleName]?.(...ruleParams)
|
|
7141
|
-
// } else {
|
|
7142
|
-
// return rule
|
|
7143
|
-
// }
|
|
7144
|
-
// }))
|
|
7145
|
-
|
|
7146
7129
|
vue.onBeforeMount(() => {
|
|
7147
7130
|
form.register?.({
|
|
7148
7131
|
id: uid.value,
|
|
@@ -7198,7 +7181,7 @@
|
|
|
7198
7181
|
let silent = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
7199
7182
|
const results = [];
|
|
7200
7183
|
isValidating.value = true;
|
|
7201
|
-
for (const rule of
|
|
7184
|
+
for (const rule of rules.value) {
|
|
7202
7185
|
if (results.length >= Number(props.maxErrors ?? 1)) {
|
|
7203
7186
|
break;
|
|
7204
7187
|
}
|
|
@@ -13110,11 +13093,13 @@
|
|
|
13110
13093
|
keyboardLookupLastTime = now;
|
|
13111
13094
|
const item = items.value.find(item => item.title.toLowerCase().startsWith(keyboardLookupPrefix));
|
|
13112
13095
|
if (item !== undefined) {
|
|
13113
|
-
|
|
13096
|
+
if (!props.multiple) {
|
|
13097
|
+
model.value = [item];
|
|
13098
|
+
}
|
|
13114
13099
|
const index = displayItems.value.indexOf(item);
|
|
13115
|
-
|
|
13116
|
-
|
|
13117
|
-
}
|
|
13100
|
+
if (~index && IN_BROWSER) {
|
|
13101
|
+
listRef.value?.focus(index);
|
|
13102
|
+
}
|
|
13118
13103
|
}
|
|
13119
13104
|
}
|
|
13120
13105
|
|
|
@@ -13784,11 +13769,6 @@
|
|
|
13784
13769
|
menu.value = true;
|
|
13785
13770
|
}
|
|
13786
13771
|
});
|
|
13787
|
-
vue.watch(model, value => {
|
|
13788
|
-
if (!props.multiple && !hasSelectionSlot.value) {
|
|
13789
|
-
search.value = value[0]?.title ?? '';
|
|
13790
|
-
}
|
|
13791
|
-
});
|
|
13792
13772
|
useRender(() => {
|
|
13793
13773
|
const hasList = !!(!props.hideNoData || displayItems.value.length || slots['prepend-item'] || slots['append-item'] || slots['no-data']);
|
|
13794
13774
|
const isDirty = model.value.length > 0;
|
|
@@ -29242,7 +29222,7 @@
|
|
|
29242
29222
|
};
|
|
29243
29223
|
});
|
|
29244
29224
|
}
|
|
29245
|
-
const version$1 = "3.8.
|
|
29225
|
+
const version$1 = "3.8.6";
|
|
29246
29226
|
createVuetify$1.version = version$1;
|
|
29247
29227
|
|
|
29248
29228
|
// Vue's inject() can only be used in setup
|
|
@@ -29267,7 +29247,7 @@
|
|
|
29267
29247
|
...options
|
|
29268
29248
|
});
|
|
29269
29249
|
};
|
|
29270
|
-
const version = "3.8.
|
|
29250
|
+
const version = "3.8.6";
|
|
29271
29251
|
createVuetify.version = version;
|
|
29272
29252
|
|
|
29273
29253
|
exports.blueprints = index;
|