@antcde/component-library 0.0.4 → 0.0.10
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-library.css +1 -1
- package/dist/index.js +11633 -11114
- package/dist/types/components/BaseAppCard.vue.d.ts +5 -1
- package/node_modules/vuetify/dist/json/attributes.json +2765 -2749
- package/node_modules/vuetify/dist/json/importMap-labs.json +8 -8
- package/node_modules/vuetify/dist/json/importMap.json +158 -158
- package/node_modules/vuetify/dist/json/tags.json +6 -2
- package/node_modules/vuetify/dist/json/web-types.json +5003 -4921
- package/node_modules/vuetify/dist/vuetify-labs.css +2500 -2499
- package/node_modules/vuetify/dist/vuetify-labs.d.ts +509 -229
- package/node_modules/vuetify/dist/vuetify-labs.esm.js +250 -147
- package/node_modules/vuetify/dist/vuetify-labs.esm.js.map +1 -1
- package/node_modules/vuetify/dist/vuetify-labs.js +249 -146
- package/node_modules/vuetify/dist/vuetify-labs.min.css +2 -2
- package/node_modules/vuetify/dist/vuetify.css +2957 -2956
- package/node_modules/vuetify/dist/vuetify.d.ts +417 -234
- package/node_modules/vuetify/dist/vuetify.esm.js +122 -72
- package/node_modules/vuetify/dist/vuetify.esm.js.map +1 -1
- package/node_modules/vuetify/dist/vuetify.js +121 -71
- package/node_modules/vuetify/dist/vuetify.js.map +1 -1
- package/node_modules/vuetify/dist/vuetify.min.css +2 -2
- package/node_modules/vuetify/dist/vuetify.min.js +474 -473
- package/node_modules/vuetify/dist/vuetify.min.js.map +1 -1
- package/node_modules/vuetify/lib/components/VAppBar/index.d.mts +15 -6
- package/node_modules/vuetify/lib/components/VAutocomplete/index.d.mts +23 -8
- package/node_modules/vuetify/lib/components/VBadge/VBadge.mjs +2 -2
- package/node_modules/vuetify/lib/components/VBadge/VBadge.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VBtn/VBtn.mjs +6 -3
- package/node_modules/vuetify/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VBtn/index.d.mts +15 -6
- package/node_modules/vuetify/lib/components/VCard/VCard.mjs +12 -3
- package/node_modules/vuetify/lib/components/VCard/VCard.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VCard/VCardItem.mjs +11 -4
- package/node_modules/vuetify/lib/components/VCard/VCardItem.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VCard/index.d.mts +75 -30
- package/node_modules/vuetify/lib/components/VCarousel/VCarousel.mjs +1 -1
- package/node_modules/vuetify/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VChip/VChip.mjs +6 -3
- package/node_modules/vuetify/lib/components/VChip/VChip.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VChip/index.d.mts +15 -6
- package/node_modules/vuetify/lib/components/VCombobox/index.d.mts +23 -8
- package/node_modules/vuetify/lib/components/VDataIterator/index.d.mts +2 -2
- package/node_modules/vuetify/lib/components/VDataTable/VDataTableRow.mjs +18 -3
- package/node_modules/vuetify/lib/components/VDataTable/VDataTableRow.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VDataTable/composables/headers.mjs +3 -1
- package/node_modules/vuetify/lib/components/VDataTable/composables/headers.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VDataTable/composables/paginate.mjs +2 -2
- package/node_modules/vuetify/lib/components/VDataTable/composables/paginate.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VDataTable/index.d.mts +125 -122
- package/node_modules/vuetify/lib/components/VDataTable/types.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VDatePicker/VDatePicker.mjs +1 -1
- package/node_modules/vuetify/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VDatePicker/VDatePickerControls.mjs +5 -5
- package/node_modules/vuetify/lib/components/VDatePicker/VDatePickerControls.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.browser.mjs +50 -0
- package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.browser.mjs.map +1 -0
- package/node_modules/vuetify/lib/components/VDialog/index.d.mts +21 -6
- package/node_modules/vuetify/lib/components/VFab/index.d.mts +15 -6
- package/node_modules/vuetify/lib/components/VField/VField.mjs +1 -6
- package/node_modules/vuetify/lib/components/VField/VField.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VFileInput/VFileInput.mjs +2 -2
- package/node_modules/vuetify/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VIcon/VIcon.mjs +2 -2
- package/node_modules/vuetify/lib/components/VIcon/VIcon.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VList/VListItem.mjs +11 -5
- package/node_modules/vuetify/lib/components/VList/VListItem.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VList/index.d.mts +32 -14
- package/node_modules/vuetify/lib/components/VMenu/index.d.mts +21 -6
- package/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs +10 -1
- package/node_modules/vuetify/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VOverlay/index.d.mts +6 -0
- package/node_modules/vuetify/lib/components/VPagination/VPagination.mjs +3 -3
- package/node_modules/vuetify/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VParallax/VParallax.mjs +1 -1
- package/node_modules/vuetify/lib/components/VParallax/VParallax.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VRating/VRating.mjs +1 -1
- package/node_modules/vuetify/lib/components/VRating/VRating.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VSelect/index.d.mts +23 -8
- package/node_modules/vuetify/lib/components/VSlider/slider.mjs +1 -1
- package/node_modules/vuetify/lib/components/VSlider/slider.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VSnackbar/index.d.mts +21 -6
- package/node_modules/vuetify/lib/components/VSparkline/VBarline.mjs +1 -1
- package/node_modules/vuetify/lib/components/VSparkline/VBarline.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VTabs/index.d.mts +39 -24
- package/node_modules/vuetify/lib/components/VTextField/VTextField.mjs +2 -2
- package/node_modules/vuetify/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs +4 -4
- package/node_modules/vuetify/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/node_modules/vuetify/lib/components/VToolbar/VToolbar.css +1 -0
- package/node_modules/vuetify/lib/components/VToolbar/VToolbar.sass +1 -0
- package/node_modules/vuetify/lib/components/VTooltip/index.d.mts +21 -6
- package/node_modules/vuetify/lib/components/index.d.mts +365 -182
- package/node_modules/vuetify/lib/composables/calendar.mjs +1 -1
- package/node_modules/vuetify/lib/composables/calendar.mjs.map +1 -1
- package/node_modules/vuetify/lib/composables/stack.mjs +2 -2
- package/node_modules/vuetify/lib/composables/stack.mjs.map +1 -1
- package/node_modules/vuetify/lib/composables/theme.mjs +1 -1
- package/node_modules/vuetify/lib/composables/theme.mjs.map +1 -1
- package/node_modules/vuetify/lib/composables/validation.mjs +2 -2
- package/node_modules/vuetify/lib/composables/validation.mjs.map +1 -1
- package/node_modules/vuetify/lib/entry-bundler.mjs +1 -1
- package/node_modules/vuetify/lib/framework.mjs +1 -1
- package/node_modules/vuetify/lib/index.d.mts +52 -52
- package/node_modules/vuetify/lib/labs/VDateInput/VDateInput.mjs +79 -21
- package/node_modules/vuetify/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
- package/node_modules/vuetify/lib/labs/VDateInput/index.d.mts +53 -10
- package/node_modules/vuetify/lib/labs/VFileUpload/VFileUpload.mjs +3 -2
- package/node_modules/vuetify/lib/labs/VFileUpload/VFileUpload.mjs.map +1 -1
- package/node_modules/vuetify/lib/labs/VFileUpload/index.d.mts +32 -14
- package/node_modules/vuetify/lib/labs/VNumberInput/VNumberInput.mjs +5 -5
- package/node_modules/vuetify/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/node_modules/vuetify/lib/labs/VSnackbarQueue/index.d.mts +21 -6
- package/node_modules/vuetify/lib/labs/VTimePicker/VTimePicker.mjs +30 -31
- package/node_modules/vuetify/lib/labs/VTimePicker/VTimePicker.mjs.map +1 -1
- package/node_modules/vuetify/lib/labs/VTimePicker/VTimePickerControls.mjs +14 -13
- package/node_modules/vuetify/lib/labs/VTimePicker/VTimePickerControls.mjs.map +1 -1
- package/node_modules/vuetify/lib/labs/VTimePicker/index.d.mts +35 -13
- package/node_modules/vuetify/lib/labs/VTimePicker/shared.mjs +2 -0
- package/node_modules/vuetify/lib/labs/VTimePicker/shared.mjs.map +1 -0
- package/node_modules/vuetify/lib/labs/VTreeview/index.d.mts +32 -14
- package/node_modules/vuetify/lib/labs/components.d.mts +171 -59
- package/node_modules/vuetify/lib/locale/adapters/vuetify.mjs +1 -1
- package/node_modules/vuetify/lib/locale/adapters/vuetify.mjs.map +1 -1
- package/node_modules/vuetify/lib/util/animation.mjs +8 -8
- package/node_modules/vuetify/lib/util/animation.mjs.map +1 -1
- package/node_modules/vuetify/lib/util/helpers.mjs +7 -5
- package/node_modules/vuetify/lib/util/helpers.mjs.map +1 -1
- package/node_modules/vuetify/package.json +2 -2
- package/package.json +3 -3
- package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +0 -39
- package/node_modules/vuetify/lib/components/VDialog/__test__/VDialog.spec.cy.mjs.map +0 -1
- package/node_modules/vuetify/lib/labs/VTimePicker/SelectingTimes.mjs +0 -10
- package/node_modules/vuetify/lib/labs/VTimePicker/SelectingTimes.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Vuetify v3.7.
|
|
2
|
+
* Vuetify v3.7.19
|
|
3
3
|
* Forged by John Leider
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { shallowRef, reactive, computed, watchEffect, toRefs, capitalize, unref, Fragment, isVNode, Comment, warn, getCurrentInstance as getCurrentInstance$1, ref, provide, inject as inject$1, defineComponent as defineComponent$1, h, camelize, createVNode, mergeProps, onBeforeUnmount, watch, readonly, onMounted, onDeactivated, onActivated, onScopeDispose, effectScope, toRaw, TransitionGroup, Transition, isRef, toRef, onBeforeMount, nextTick, withDirectives, resolveDirective, vShow, onUpdated, Text, resolveDynamicComponent, markRaw, Teleport, cloneVNode, createTextVNode, onUnmounted, onBeforeUpdate, withModifiers,
|
|
7
|
+
import { shallowRef, reactive, computed, watchEffect, toRefs, capitalize, unref, Fragment, isVNode, Comment, warn, getCurrentInstance as getCurrentInstance$1, ref, provide, inject as inject$1, defineComponent as defineComponent$1, h, camelize, createVNode, mergeProps, onBeforeUnmount, watch, readonly, onMounted, onDeactivated, onActivated, onScopeDispose, effectScope, toRaw, TransitionGroup, Transition, isRef, toRef, onBeforeMount, nextTick, withDirectives, resolveDirective, vShow, onUpdated, Text, resolveDynamicComponent, toDisplayString, markRaw, Teleport, cloneVNode, createTextVNode, onUnmounted, onBeforeUpdate, withModifiers, vModelText, resolveComponent, render } from 'vue';
|
|
8
8
|
|
|
9
9
|
const IN_BROWSER = typeof window !== 'undefined';
|
|
10
10
|
const SUPPORTS_INTERSECTION = IN_BROWSER && 'IntersectionObserver' in window;
|
|
@@ -80,12 +80,14 @@ function convertToUnit(str) {
|
|
|
80
80
|
let unit = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'px';
|
|
81
81
|
if (str == null || str === '') {
|
|
82
82
|
return undefined;
|
|
83
|
-
}
|
|
83
|
+
}
|
|
84
|
+
const num = Number(str);
|
|
85
|
+
if (isNaN(num)) {
|
|
84
86
|
return String(str);
|
|
85
|
-
} else if (!isFinite(
|
|
87
|
+
} else if (!isFinite(num)) {
|
|
86
88
|
return undefined;
|
|
87
89
|
} else {
|
|
88
|
-
return `${
|
|
90
|
+
return `${num}${unit}`;
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
function isObject(obj) {
|
|
@@ -156,7 +158,7 @@ function has(obj, key) {
|
|
|
156
158
|
function pick(obj, paths) {
|
|
157
159
|
const found = {};
|
|
158
160
|
for (const key of paths) {
|
|
159
|
-
if (Object.
|
|
161
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
160
162
|
found[key] = obj[key];
|
|
161
163
|
}
|
|
162
164
|
}
|
|
@@ -613,16 +615,16 @@ function nullifyTransforms(el) {
|
|
|
613
615
|
let ta, sx, sy, dx, dy;
|
|
614
616
|
if (tx.startsWith('matrix3d(')) {
|
|
615
617
|
ta = tx.slice(9, -1).split(/, /);
|
|
616
|
-
sx =
|
|
617
|
-
sy =
|
|
618
|
-
dx =
|
|
619
|
-
dy =
|
|
618
|
+
sx = Number(ta[0]);
|
|
619
|
+
sy = Number(ta[5]);
|
|
620
|
+
dx = Number(ta[12]);
|
|
621
|
+
dy = Number(ta[13]);
|
|
620
622
|
} else if (tx.startsWith('matrix(')) {
|
|
621
623
|
ta = tx.slice(7, -1).split(/, /);
|
|
622
|
-
sx =
|
|
623
|
-
sy =
|
|
624
|
-
dx =
|
|
625
|
-
dy =
|
|
624
|
+
sx = Number(ta[0]);
|
|
625
|
+
sy = Number(ta[3]);
|
|
626
|
+
dx = Number(ta[4]);
|
|
627
|
+
dy = Number(ta[5]);
|
|
626
628
|
} else {
|
|
627
629
|
return new Box(rect);
|
|
628
630
|
}
|
|
@@ -2516,7 +2518,7 @@ var en = {
|
|
|
2516
2518
|
const LANG_PREFIX = '$vuetify.';
|
|
2517
2519
|
const replace = (str, params) => {
|
|
2518
2520
|
return str.replace(/\{(\d+)\}/g, (match, index) => {
|
|
2519
|
-
return String(params[
|
|
2521
|
+
return String(params[Number(index)]);
|
|
2520
2522
|
});
|
|
2521
2523
|
};
|
|
2522
2524
|
const createTranslateFunction = (current, fallback, messages) => {
|
|
@@ -2886,7 +2888,7 @@ function createTheme(options) {
|
|
|
2886
2888
|
function getHead() {
|
|
2887
2889
|
return {
|
|
2888
2890
|
style: [{
|
|
2889
|
-
|
|
2891
|
+
textContent: styles.value,
|
|
2890
2892
|
id: 'vuetify-theme-stylesheet',
|
|
2891
2893
|
nonce: parsedOptions.cspNonce || false
|
|
2892
2894
|
}]
|
|
@@ -4901,7 +4903,7 @@ const VIcon = genericComponent()({
|
|
|
4901
4903
|
const slotIcon = ref();
|
|
4902
4904
|
const {
|
|
4903
4905
|
themeClasses
|
|
4904
|
-
} =
|
|
4906
|
+
} = useTheme();
|
|
4905
4907
|
const {
|
|
4906
4908
|
iconData
|
|
4907
4909
|
} = useIcon(computed(() => slotIcon.value || props.icon));
|
|
@@ -5805,7 +5807,10 @@ const makeVBtnProps = propsFactory({
|
|
|
5805
5807
|
type: [Boolean, Object],
|
|
5806
5808
|
default: true
|
|
5807
5809
|
},
|
|
5808
|
-
text:
|
|
5810
|
+
text: {
|
|
5811
|
+
type: [String, Number, Boolean],
|
|
5812
|
+
default: undefined
|
|
5813
|
+
},
|
|
5809
5814
|
...makeBorderProps(),
|
|
5810
5815
|
...makeComponentProps(),
|
|
5811
5816
|
...makeDensityProps(),
|
|
@@ -5961,7 +5966,7 @@ const VBtn = genericComponent()({
|
|
|
5961
5966
|
}
|
|
5962
5967
|
}
|
|
5963
5968
|
}, {
|
|
5964
|
-
default: () => [slots.default?.() ?? props.text]
|
|
5969
|
+
default: () => [slots.default?.() ?? toDisplayString(props.text)]
|
|
5965
5970
|
})]), !props.icon && hasAppend && createVNode("span", {
|
|
5966
5971
|
"key": "append",
|
|
5967
5972
|
"class": "v-btn__append"
|
|
@@ -6969,7 +6974,7 @@ function useValidation(props) {
|
|
|
6969
6974
|
const isPristine = shallowRef(true);
|
|
6970
6975
|
const isDirty = computed(() => !!(wrapInArray(model.value === '' ? null : model.value).length || wrapInArray(validationModel.value === '' ? null : validationModel.value).length));
|
|
6971
6976
|
const errorMessages = computed(() => {
|
|
6972
|
-
return props.errorMessages?.length ? wrapInArray(props.errorMessages).concat(internalErrorMessages.value).slice(0, Math.max(0,
|
|
6977
|
+
return props.errorMessages?.length ? wrapInArray(props.errorMessages).concat(internalErrorMessages.value).slice(0, Math.max(0, Number(props.maxErrors))) : internalErrorMessages.value;
|
|
6973
6978
|
});
|
|
6974
6979
|
const validateOn = computed(() => {
|
|
6975
6980
|
let value = (props.validateOn ?? form.validateOn?.value) || 'input';
|
|
@@ -7060,7 +7065,7 @@ function useValidation(props) {
|
|
|
7060
7065
|
const results = [];
|
|
7061
7066
|
isValidating.value = true;
|
|
7062
7067
|
for (const rule of props.rules) {
|
|
7063
|
-
if (results.length >=
|
|
7068
|
+
if (results.length >= Number(props.maxErrors ?? 1)) {
|
|
7064
7069
|
break;
|
|
7065
7070
|
}
|
|
7066
7071
|
const handler = typeof rule === 'function' ? rule : () => rule;
|
|
@@ -8121,7 +8126,10 @@ const makeVChipProps = propsFactory({
|
|
|
8121
8126
|
type: [Boolean, Object],
|
|
8122
8127
|
default: true
|
|
8123
8128
|
},
|
|
8124
|
-
text:
|
|
8129
|
+
text: {
|
|
8130
|
+
type: [String, Number, Boolean],
|
|
8131
|
+
default: undefined
|
|
8132
|
+
},
|
|
8125
8133
|
modelValue: {
|
|
8126
8134
|
type: Boolean,
|
|
8127
8135
|
default: true
|
|
@@ -8290,7 +8298,7 @@ const VChip = genericComponent()({
|
|
|
8290
8298
|
toggle: group?.toggle,
|
|
8291
8299
|
value: group?.value.value,
|
|
8292
8300
|
disabled: props.disabled
|
|
8293
|
-
}) ?? props.text]), hasAppend && createVNode("div", {
|
|
8301
|
+
}) ?? toDisplayString(props.text)]), hasAppend && createVNode("div", {
|
|
8294
8302
|
"key": "append",
|
|
8295
8303
|
"class": "v-chip__append"
|
|
8296
8304
|
}, [!slots.append ? createVNode(Fragment, null, [props.appendIcon && createVNode(VIcon, {
|
|
@@ -9169,8 +9177,14 @@ const makeVListItemProps = propsFactory({
|
|
|
9169
9177
|
default: true
|
|
9170
9178
|
},
|
|
9171
9179
|
slim: Boolean,
|
|
9172
|
-
subtitle:
|
|
9173
|
-
|
|
9180
|
+
subtitle: {
|
|
9181
|
+
type: [String, Number, Boolean],
|
|
9182
|
+
default: undefined
|
|
9183
|
+
},
|
|
9184
|
+
title: {
|
|
9185
|
+
type: [String, Number, Boolean],
|
|
9186
|
+
default: undefined
|
|
9187
|
+
},
|
|
9174
9188
|
value: null,
|
|
9175
9189
|
onClick: EventProp(),
|
|
9176
9190
|
onClickOnce: EventProp(),
|
|
@@ -9363,13 +9377,13 @@ const VListItem = genericComponent()({
|
|
|
9363
9377
|
}, {
|
|
9364
9378
|
default: () => [slots.title?.({
|
|
9365
9379
|
title: props.title
|
|
9366
|
-
}) ?? props.title]
|
|
9380
|
+
}) ?? toDisplayString(props.title)]
|
|
9367
9381
|
}), hasSubtitle && createVNode(VListItemSubtitle, {
|
|
9368
9382
|
"key": "subtitle"
|
|
9369
9383
|
}, {
|
|
9370
9384
|
default: () => [slots.subtitle?.({
|
|
9371
9385
|
subtitle: props.subtitle
|
|
9372
|
-
}) ?? props.subtitle]
|
|
9386
|
+
}) ?? toDisplayString(props.subtitle)]
|
|
9373
9387
|
}), slots.default?.(slotProps.value)]), hasAppend && createVNode("div", {
|
|
9374
9388
|
"key": "append",
|
|
9375
9389
|
"class": "v-list-item__append"
|
|
@@ -10970,10 +10984,10 @@ function useStack(isActive, zIndex, disableGlobalStack) {
|
|
|
10970
10984
|
activeChildren: new Set()
|
|
10971
10985
|
});
|
|
10972
10986
|
provide(StackSymbol, stack);
|
|
10973
|
-
const _zIndex = shallowRef(
|
|
10987
|
+
const _zIndex = shallowRef(Number(zIndex.value));
|
|
10974
10988
|
useToggleScope(isActive, () => {
|
|
10975
10989
|
const lastZIndex = globalStack.at(-1)?.[1];
|
|
10976
|
-
_zIndex.value = lastZIndex ? lastZIndex + 10 :
|
|
10990
|
+
_zIndex.value = lastZIndex ? lastZIndex + 10 : Number(zIndex.value);
|
|
10977
10991
|
if (createStackEntry) {
|
|
10978
10992
|
globalStack.push([vm.uid, _zIndex.value]);
|
|
10979
10993
|
}
|
|
@@ -11182,6 +11196,7 @@ const VOverlay = genericComponent()({
|
|
|
11182
11196
|
emits: {
|
|
11183
11197
|
'click:outside': e => true,
|
|
11184
11198
|
'update:modelValue': value => true,
|
|
11199
|
+
keydown: e => true,
|
|
11185
11200
|
afterEnter: () => true,
|
|
11186
11201
|
afterLeave: () => true
|
|
11187
11202
|
},
|
|
@@ -11294,6 +11309,9 @@ const VOverlay = genericComponent()({
|
|
|
11294
11309
|
});
|
|
11295
11310
|
function onKeydown(e) {
|
|
11296
11311
|
if (e.key === 'Escape' && globalTop.value) {
|
|
11312
|
+
if (!contentEl.value?.contains(document.activeElement)) {
|
|
11313
|
+
emit('keydown', e);
|
|
11314
|
+
}
|
|
11297
11315
|
if (!props.persistent) {
|
|
11298
11316
|
isActive.value = false;
|
|
11299
11317
|
if (contentEl.value?.contains(document.activeElement)) {
|
|
@@ -11302,6 +11320,10 @@ const VOverlay = genericComponent()({
|
|
|
11302
11320
|
} else animateClick();
|
|
11303
11321
|
}
|
|
11304
11322
|
}
|
|
11323
|
+
function onKeydownSelf(e) {
|
|
11324
|
+
if (e.key === 'Escape' && !globalTop.value) return;
|
|
11325
|
+
emit('keydown', e);
|
|
11326
|
+
}
|
|
11305
11327
|
const router = useRouter();
|
|
11306
11328
|
useToggleScope(() => props.closeOnBack, () => {
|
|
11307
11329
|
useBackButton(router, next => {
|
|
@@ -11364,7 +11386,8 @@ const VOverlay = genericComponent()({
|
|
|
11364
11386
|
'--v-overlay-opacity': props.opacity,
|
|
11365
11387
|
top: convertToUnit(top.value)
|
|
11366
11388
|
}, props.style],
|
|
11367
|
-
"ref": root
|
|
11389
|
+
"ref": root,
|
|
11390
|
+
"onKeydown": onKeydownSelf
|
|
11368
11391
|
}, scopeId, attrs), [createVNode(Scrim, mergeProps({
|
|
11369
11392
|
"color": scrimColor,
|
|
11370
11393
|
"modelValue": isActive.value && !!props.scrim,
|
|
@@ -12035,11 +12058,6 @@ const VField = genericComponent()({
|
|
|
12035
12058
|
};
|
|
12036
12059
|
}
|
|
12037
12060
|
});
|
|
12038
|
-
// TODO: this is kinda slow, might be better to implicitly inherit props instead
|
|
12039
|
-
function filterFieldProps(attrs) {
|
|
12040
|
-
const keys = Object.keys(VField.props).filter(k => !isOn(k) && k !== 'class' && k !== 'style');
|
|
12041
|
-
return pick(attrs, keys);
|
|
12042
|
-
}
|
|
12043
12061
|
|
|
12044
12062
|
// Types
|
|
12045
12063
|
|
|
@@ -12147,7 +12165,7 @@ const VTextField = genericComponent()({
|
|
|
12147
12165
|
modelValue: _,
|
|
12148
12166
|
...inputProps
|
|
12149
12167
|
} = VInput.filterProps(props);
|
|
12150
|
-
const fieldProps =
|
|
12168
|
+
const fieldProps = VField.filterProps(props);
|
|
12151
12169
|
return createVNode(VInput, mergeProps({
|
|
12152
12170
|
"ref": vInputRef,
|
|
12153
12171
|
"modelValue": model.value,
|
|
@@ -13755,11 +13773,11 @@ const VBadge = genericComponent()({
|
|
|
13755
13773
|
locationStyles
|
|
13756
13774
|
} = useLocation(props, true, side => {
|
|
13757
13775
|
const base = props.floating ? props.dot ? 2 : 4 : props.dot ? 8 : 12;
|
|
13758
|
-
return base + (['top', 'bottom'].includes(side) ?
|
|
13776
|
+
return base + (['top', 'bottom'].includes(side) ? Number(props.offsetY ?? 0) : ['left', 'right'].includes(side) ? Number(props.offsetX ?? 0) : 0);
|
|
13759
13777
|
});
|
|
13760
13778
|
useRender(() => {
|
|
13761
13779
|
const value = Number(props.content);
|
|
13762
|
-
const content = !props.max || isNaN(value) ? props.content : value <=
|
|
13780
|
+
const content = !props.max || isNaN(value) ? props.content : value <= Number(props.max) ? value : `${props.max}+`;
|
|
13763
13781
|
const [badgeAttrs, attrs] = pickWithRest(ctx.attrs, ['aria-atomic', 'aria-label', 'aria-live', 'role', 'title']);
|
|
13764
13782
|
return createVNode(props.tag, mergeProps({
|
|
13765
13783
|
"class": ['v-badge', {
|
|
@@ -14458,8 +14476,14 @@ const makeCardItemProps = propsFactory({
|
|
|
14458
14476
|
appendIcon: IconValue,
|
|
14459
14477
|
prependAvatar: String,
|
|
14460
14478
|
prependIcon: IconValue,
|
|
14461
|
-
subtitle:
|
|
14462
|
-
|
|
14479
|
+
subtitle: {
|
|
14480
|
+
type: [String, Number, Boolean],
|
|
14481
|
+
default: undefined
|
|
14482
|
+
},
|
|
14483
|
+
title: {
|
|
14484
|
+
type: [String, Number, Boolean],
|
|
14485
|
+
default: undefined
|
|
14486
|
+
},
|
|
14463
14487
|
...makeComponentProps(),
|
|
14464
14488
|
...makeDensityProps()
|
|
14465
14489
|
}, 'VCardItem');
|
|
@@ -14509,11 +14533,11 @@ const VCardItem = genericComponent()({
|
|
|
14509
14533
|
}, [hasTitle && createVNode(VCardTitle, {
|
|
14510
14534
|
"key": "title"
|
|
14511
14535
|
}, {
|
|
14512
|
-
default: () => [slots.title?.() ?? props.title]
|
|
14536
|
+
default: () => [slots.title?.() ?? toDisplayString(props.title)]
|
|
14513
14537
|
}), hasSubtitle && createVNode(VCardSubtitle, {
|
|
14514
14538
|
"key": "subtitle"
|
|
14515
14539
|
}, {
|
|
14516
|
-
default: () => [slots.subtitle?.() ?? props.subtitle]
|
|
14540
|
+
default: () => [slots.subtitle?.() ?? toDisplayString(props.subtitle)]
|
|
14517
14541
|
}), slots.default?.()]), hasAppend && createVNode("div", {
|
|
14518
14542
|
"key": "append",
|
|
14519
14543
|
"class": "v-card-item__append"
|
|
@@ -14585,9 +14609,18 @@ const makeVCardProps = propsFactory({
|
|
|
14585
14609
|
type: [Boolean, Object],
|
|
14586
14610
|
default: true
|
|
14587
14611
|
},
|
|
14588
|
-
subtitle:
|
|
14589
|
-
|
|
14590
|
-
|
|
14612
|
+
subtitle: {
|
|
14613
|
+
type: [String, Number, Boolean],
|
|
14614
|
+
default: undefined
|
|
14615
|
+
},
|
|
14616
|
+
text: {
|
|
14617
|
+
type: [String, Number, Boolean],
|
|
14618
|
+
default: undefined
|
|
14619
|
+
},
|
|
14620
|
+
title: {
|
|
14621
|
+
type: [String, Number, Boolean],
|
|
14622
|
+
default: undefined
|
|
14623
|
+
},
|
|
14591
14624
|
...makeBorderProps(),
|
|
14592
14625
|
...makeComponentProps(),
|
|
14593
14626
|
...makeDensityProps(),
|
|
@@ -15056,7 +15089,7 @@ const VCarousel = genericComponent()({
|
|
|
15056
15089
|
onMounted(startTimeout);
|
|
15057
15090
|
function startTimeout() {
|
|
15058
15091
|
if (!props.cycle || !windowRef.value) return;
|
|
15059
|
-
slideTimeout = window.setTimeout(windowRef.value.group.next,
|
|
15092
|
+
slideTimeout = window.setTimeout(windowRef.value.group.next, Number(props.interval) > 0 ? Number(props.interval) : 6000);
|
|
15060
15093
|
}
|
|
15061
15094
|
function restartTimeout() {
|
|
15062
15095
|
window.clearTimeout(slideTimeout);
|
|
@@ -15782,7 +15815,7 @@ const makeSliderProps = propsFactory({
|
|
|
15782
15815
|
const useSteps = props => {
|
|
15783
15816
|
const min = computed(() => parseFloat(props.min));
|
|
15784
15817
|
const max = computed(() => parseFloat(props.max));
|
|
15785
|
-
const step = computed(() =>
|
|
15818
|
+
const step = computed(() => Number(props.step) > 0 ? parseFloat(props.step) : 0);
|
|
15786
15819
|
const decimals = computed(() => Math.max(getDecimals(step.value), getDecimals(min.value)));
|
|
15787
15820
|
function roundValue(value) {
|
|
15788
15821
|
value = parseFloat(value);
|
|
@@ -18737,8 +18770,8 @@ const makeDataTablePaginateProps = propsFactory({
|
|
|
18737
18770
|
}, 'DataTable-paginate');
|
|
18738
18771
|
const VDataTablePaginationSymbol = Symbol.for('vuetify:data-table-pagination');
|
|
18739
18772
|
function createPagination(props) {
|
|
18740
|
-
const page = useProxiedModel(props, 'page', undefined, value =>
|
|
18741
|
-
const itemsPerPage = useProxiedModel(props, 'itemsPerPage', undefined, value =>
|
|
18773
|
+
const page = useProxiedModel(props, 'page', undefined, value => Number(value ?? 1));
|
|
18774
|
+
const itemsPerPage = useProxiedModel(props, 'itemsPerPage', undefined, value => Number(value ?? 10));
|
|
18742
18775
|
return {
|
|
18743
18776
|
page,
|
|
18744
18777
|
itemsPerPage
|
|
@@ -19527,7 +19560,7 @@ const VPagination = genericComponent()({
|
|
|
19527
19560
|
const minButtons = props.showFirstLastPage ? 5 : 3;
|
|
19528
19561
|
return Math.max(0, Math.floor(
|
|
19529
19562
|
// Round to two decimal places to avoid floating point errors
|
|
19530
|
-
|
|
19563
|
+
Number(((totalWidth - itemWidth * minButtons) / itemWidth).toFixed(2))));
|
|
19531
19564
|
}
|
|
19532
19565
|
const range = computed(() => {
|
|
19533
19566
|
if (length.value <= 0 || isNaN(length.value) || length.value > Number.MAX_SAFE_INTEGER) return [];
|
|
@@ -19598,7 +19631,7 @@ const VPagination = genericComponent()({
|
|
|
19598
19631
|
ref,
|
|
19599
19632
|
ellipsis: false,
|
|
19600
19633
|
icon: true,
|
|
19601
|
-
disabled: !!props.disabled ||
|
|
19634
|
+
disabled: !!props.disabled || Number(props.length) < 2,
|
|
19602
19635
|
color: isActive ? props.activeColor : props.color,
|
|
19603
19636
|
'aria-current': isActive,
|
|
19604
19637
|
'aria-label': t(isActive ? props.currentPageAriaLabel : props.pageAriaLabel, item),
|
|
@@ -19647,7 +19680,7 @@ const VPagination = genericComponent()({
|
|
|
19647
19680
|
refs.value[currentIndex]?.$el.focus();
|
|
19648
19681
|
}
|
|
19649
19682
|
function onKeydown(e) {
|
|
19650
|
-
if (e.key === keyValues.left && !props.disabled && page.value >
|
|
19683
|
+
if (e.key === keyValues.left && !props.disabled && page.value > Number(props.start)) {
|
|
19651
19684
|
page.value = page.value - 1;
|
|
19652
19685
|
nextTick(updateFocus);
|
|
19653
19686
|
} else if (e.key === keyValues.right && !props.disabled && page.value < start.value + length.value - 1) {
|
|
@@ -19980,8 +20013,10 @@ function parseFixedColumns(items) {
|
|
|
19980
20013
|
} else {
|
|
19981
20014
|
if (!seenFixed) {
|
|
19982
20015
|
item.lastFixed = true;
|
|
19983
|
-
} else if (isNaN(
|
|
20016
|
+
} else if (isNaN(Number(item.width))) {
|
|
19984
20017
|
consoleError(`Multiple fixed columns should have a static width (key: ${item.key})`);
|
|
20018
|
+
} else {
|
|
20019
|
+
item.minWidth = Math.max(Number(item.width) || 0, Number(item.minWidth) || 0);
|
|
19985
20020
|
}
|
|
19986
20021
|
seenFixed = true;
|
|
19987
20022
|
}
|
|
@@ -20541,22 +20576,37 @@ const VDataTableRow = genericComponent()({
|
|
|
20541
20576
|
"width": !mobile.value ? column.width : undefined
|
|
20542
20577
|
}, cellProps, columnCellProps), {
|
|
20543
20578
|
default: () => {
|
|
20544
|
-
if (slots[slotName] && !mobile.value) return slots[slotName]?.(slotProps);
|
|
20545
20579
|
if (column.key === 'data-table-select') {
|
|
20546
|
-
return slots['item.data-table-select']?.(
|
|
20580
|
+
return slots['item.data-table-select']?.({
|
|
20581
|
+
...slotProps,
|
|
20582
|
+
props: {
|
|
20583
|
+
disabled: !item.selectable,
|
|
20584
|
+
modelValue: isSelected([item]),
|
|
20585
|
+
onClick: withModifiers(() => toggleSelect(item), ['stop'])
|
|
20586
|
+
}
|
|
20587
|
+
}) ?? createVNode(VCheckboxBtn, {
|
|
20547
20588
|
"disabled": !item.selectable,
|
|
20548
20589
|
"modelValue": isSelected([item]),
|
|
20549
20590
|
"onClick": withModifiers(() => toggleSelect(item), ['stop'])
|
|
20550
20591
|
}, null);
|
|
20551
20592
|
}
|
|
20552
20593
|
if (column.key === 'data-table-expand') {
|
|
20553
|
-
return slots['item.data-table-expand']?.(
|
|
20594
|
+
return slots['item.data-table-expand']?.({
|
|
20595
|
+
...slotProps,
|
|
20596
|
+
props: {
|
|
20597
|
+
icon: isExpanded(item) ? '$collapse' : '$expand',
|
|
20598
|
+
size: 'small',
|
|
20599
|
+
variant: 'text',
|
|
20600
|
+
onClick: withModifiers(() => toggleExpand(item), ['stop'])
|
|
20601
|
+
}
|
|
20602
|
+
}) ?? createVNode(VBtn, {
|
|
20554
20603
|
"icon": isExpanded(item) ? '$collapse' : '$expand',
|
|
20555
20604
|
"size": "small",
|
|
20556
20605
|
"variant": "text",
|
|
20557
20606
|
"onClick": withModifiers(() => toggleExpand(item), ['stop'])
|
|
20558
20607
|
}, null);
|
|
20559
20608
|
}
|
|
20609
|
+
if (slots[slotName] && !mobile.value) return slots[slotName](slotProps);
|
|
20560
20610
|
const displayValue = toDisplayString(slotProps.value);
|
|
20561
20611
|
return !mobile.value ? displayValue : createVNode(Fragment, null, [createVNode("div", {
|
|
20562
20612
|
"class": "v-data-table__td-title"
|
|
@@ -21744,30 +21794,30 @@ const VDatePickerControls = genericComponent()({
|
|
|
21744
21794
|
"class": ['v-date-picker-controls']
|
|
21745
21795
|
}, [createVNode(VBtn, {
|
|
21746
21796
|
"class": "v-date-picker-controls__month-btn",
|
|
21797
|
+
"data-testid": "month-btn",
|
|
21747
21798
|
"disabled": disableMonth.value,
|
|
21748
21799
|
"text": props.text,
|
|
21749
21800
|
"variant": "text",
|
|
21750
21801
|
"rounded": true,
|
|
21751
21802
|
"onClick": onClickMonth
|
|
21752
21803
|
}, null), createVNode(VBtn, {
|
|
21753
|
-
"key": "mode-btn",
|
|
21754
21804
|
"class": "v-date-picker-controls__mode-btn",
|
|
21805
|
+
"data-testid": "year-btn",
|
|
21755
21806
|
"disabled": disableYear.value,
|
|
21756
21807
|
"density": "comfortable",
|
|
21757
21808
|
"icon": props.modeIcon,
|
|
21758
21809
|
"variant": "text",
|
|
21759
21810
|
"onClick": onClickYear
|
|
21760
|
-
}, null), createVNode(VSpacer, {
|
|
21761
|
-
"key": "mode-spacer"
|
|
21762
|
-
}, null), createVNode("div", {
|
|
21763
|
-
"key": "month-buttons",
|
|
21811
|
+
}, null), createVNode(VSpacer, null, null), createVNode("div", {
|
|
21764
21812
|
"class": "v-date-picker-controls__month"
|
|
21765
21813
|
}, [createVNode(VBtn, {
|
|
21814
|
+
"data-testid": "prev-month",
|
|
21766
21815
|
"disabled": disablePrev.value,
|
|
21767
21816
|
"icon": props.prevIcon,
|
|
21768
21817
|
"variant": "text",
|
|
21769
21818
|
"onClick": onClickPrev
|
|
21770
21819
|
}, null), createVNode(VBtn, {
|
|
21820
|
+
"data-testid": "next-month",
|
|
21771
21821
|
"disabled": disableNext.value,
|
|
21772
21822
|
"icon": props.nextIcon,
|
|
21773
21823
|
"variant": "text",
|
|
@@ -21885,7 +21935,7 @@ const makeCalendarProps = propsFactory({
|
|
|
21885
21935
|
}, 'calendar');
|
|
21886
21936
|
function useCalendar(props) {
|
|
21887
21937
|
const adapter = useDate();
|
|
21888
|
-
const model = useProxiedModel(props, 'modelValue', [], v => wrapInArray(v));
|
|
21938
|
+
const model = useProxiedModel(props, 'modelValue', [], v => wrapInArray(v).map(i => adapter.date(i)));
|
|
21889
21939
|
const displayValue = computed(() => {
|
|
21890
21940
|
if (props.displayValue) return adapter.date(props.displayValue);
|
|
21891
21941
|
if (model.value.length > 0) return adapter.date(model.value[0]);
|
|
@@ -22466,7 +22516,7 @@ const VDatePicker = genericComponent()({
|
|
|
22466
22516
|
const {
|
|
22467
22517
|
t
|
|
22468
22518
|
} = useLocale();
|
|
22469
|
-
const model = useProxiedModel(props, 'modelValue', undefined, v => wrapInArray(v), v => props.multiple ? v : v[0]);
|
|
22519
|
+
const model = useProxiedModel(props, 'modelValue', undefined, v => wrapInArray(v).map(i => adapter.date(i)), v => props.multiple ? v : v[0]);
|
|
22470
22520
|
const viewMode = useProxiedModel(props, 'viewMode');
|
|
22471
22521
|
// const inputMode = useProxiedModel(props, 'inputMode')
|
|
22472
22522
|
|
|
@@ -23308,7 +23358,7 @@ const VFileInput = genericComponent()({
|
|
|
23308
23358
|
modelValue: _,
|
|
23309
23359
|
...inputProps
|
|
23310
23360
|
} = VInput.filterProps(props);
|
|
23311
|
-
const fieldProps =
|
|
23361
|
+
const fieldProps = VField.filterProps(props);
|
|
23312
23362
|
return createVNode(VInput, mergeProps({
|
|
23313
23363
|
"ref": vInputRef,
|
|
23314
23364
|
"modelValue": props.multiple ? model.value : model.value[0],
|
|
@@ -24927,7 +24977,7 @@ const VParallax = genericComponent()({
|
|
|
24927
24977
|
watch(displayHeight, onScroll);
|
|
24928
24978
|
watch(() => contentRect.value?.height, onScroll);
|
|
24929
24979
|
const scale = computed(() => {
|
|
24930
|
-
return 1 - clamp(
|
|
24980
|
+
return 1 - clamp(Number(props.scale));
|
|
24931
24981
|
});
|
|
24932
24982
|
let frame = -1;
|
|
24933
24983
|
function onScroll() {
|
|
@@ -25348,7 +25398,7 @@ const VRating = genericComponent()({
|
|
|
25348
25398
|
themeClasses
|
|
25349
25399
|
} = provideTheme(props);
|
|
25350
25400
|
const rating = useProxiedModel(props, 'modelValue');
|
|
25351
|
-
const normalizedValue = computed(() => clamp(parseFloat(rating.value), 0,
|
|
25401
|
+
const normalizedValue = computed(() => clamp(parseFloat(rating.value), 0, Number(props.length)));
|
|
25352
25402
|
const range = computed(() => createRange(Number(props.length), 1));
|
|
25353
25403
|
const increments = computed(() => range.value.flatMap(v => props.halfIncrements ? [v - 0.5, v] : [v]));
|
|
25354
25404
|
const hoverIndex = shallowRef(-1);
|
|
@@ -25959,7 +26009,7 @@ const VBarline = genericComponent()({
|
|
|
25959
26009
|
const height = Math.abs(gridY * value);
|
|
25960
26010
|
return {
|
|
25961
26011
|
x: minX + index * gridX,
|
|
25962
|
-
y: horizonY - height +
|
|
26012
|
+
y: horizonY - height + Number(value < 0) * height,
|
|
25963
26013
|
height,
|
|
25964
26014
|
value
|
|
25965
26015
|
};
|
|
@@ -27397,10 +27447,10 @@ const VTextarea = genericComponent()({
|
|
|
27397
27447
|
}
|
|
27398
27448
|
}
|
|
27399
27449
|
const sizerRef = ref();
|
|
27400
|
-
const rows = ref(
|
|
27450
|
+
const rows = ref(Number(props.rows));
|
|
27401
27451
|
const isPlainOrUnderlined = computed(() => ['plain', 'underlined'].includes(props.variant));
|
|
27402
27452
|
watchEffect(() => {
|
|
27403
|
-
if (!props.autoGrow) rows.value =
|
|
27453
|
+
if (!props.autoGrow) rows.value = Number(props.rows);
|
|
27404
27454
|
});
|
|
27405
27455
|
function calculateInputHeight() {
|
|
27406
27456
|
if (!props.autoGrow) return;
|
|
@@ -27443,7 +27493,7 @@ const VTextarea = genericComponent()({
|
|
|
27443
27493
|
modelValue: _,
|
|
27444
27494
|
...inputProps
|
|
27445
27495
|
} = VInput.filterProps(props);
|
|
27446
|
-
const fieldProps =
|
|
27496
|
+
const fieldProps = VField.filterProps(props);
|
|
27447
27497
|
return createVNode(VInput, mergeProps({
|
|
27448
27498
|
"ref": vInputRef,
|
|
27449
27499
|
"modelValue": model.value,
|
|
@@ -28417,7 +28467,7 @@ function createVuetify$1() {
|
|
|
28417
28467
|
goTo
|
|
28418
28468
|
};
|
|
28419
28469
|
}
|
|
28420
|
-
const version$1 = "3.7.
|
|
28470
|
+
const version$1 = "3.7.19";
|
|
28421
28471
|
createVuetify$1.version = version$1;
|
|
28422
28472
|
|
|
28423
28473
|
// Vue's inject() can only be used in setup
|
|
@@ -28442,7 +28492,7 @@ const createVuetify = function () {
|
|
|
28442
28492
|
...options
|
|
28443
28493
|
});
|
|
28444
28494
|
};
|
|
28445
|
-
const version = "3.7.
|
|
28495
|
+
const version = "3.7.19";
|
|
28446
28496
|
createVuetify.version = version;
|
|
28447
28497
|
|
|
28448
28498
|
export { index as blueprints, components, createVuetify, directives, useDate, useDefaults, useDisplay, useGoTo, useLayout, useLocale, useRtl, useTheme, version };
|