vectis-ui 0.15.0 → 0.16.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.
- package/dist/components/VAccordion/VAccordion.css +1 -1
- package/dist/components/VAccordion/VAccordion.d.ts +0 -6
- package/dist/components/VAccordion/VAccordion.js.map +1 -1
- package/dist/components/VAccordion/VAccordion.vue_vue_type_script_setup_true_lang.js +3 -8
- package/dist/components/VAccordion/VAccordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAccordion/context.js.map +1 -1
- package/dist/components/VAvatar/VAvatar.d.ts +0 -3
- package/dist/components/VAvatar/VAvatar.js.map +1 -1
- package/dist/components/VAvatar/VAvatar.vue_vue_type_script_setup_true_lang.js +21 -27
- package/dist/components/VAvatar/VAvatar.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAvatar/VAvatarGroup.d.ts +0 -6
- package/dist/components/VAvatar/VAvatarGroup.js.map +1 -1
- package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js +5 -19
- package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VAvatar/context.d.ts +0 -1
- package/dist/components/VAvatar/context.js.map +1 -1
- package/dist/components/VButton/VButton.d.ts +0 -6
- package/dist/components/VButton/VButton.js.map +1 -1
- package/dist/components/VButton/VButton.vue_vue_type_script_setup_true_lang.js +11 -17
- package/dist/components/VButton/VButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VButton/VButtonGroup.d.ts +0 -6
- package/dist/components/VButton/VButtonGroup.js.map +1 -1
- package/dist/components/VButton/VButtonGroup.vue_vue_type_script_setup_true_lang.js +0 -7
- package/dist/components/VButton/VButtonGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VButton/context.d.ts +0 -2
- package/dist/components/VButton/context.js.map +1 -1
- package/dist/components/VChip/VChip.d.ts +0 -3
- package/dist/components/VChip/VChip.js.map +1 -1
- package/dist/components/VChip/VChip.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VChip/VChip.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VColorInput/VColorInput.d.ts +0 -3
- package/dist/components/VColorInput/VColorInput.js.map +1 -1
- package/dist/components/VColorInput/VColorInput.vue_vue_type_script_setup_true_lang.js +60 -66
- package/dist/components/VColorInput/VColorInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VCombobox/VCombobox.d.ts +0 -3
- package/dist/components/VCombobox/VCombobox.js.map +1 -1
- package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js +127 -138
- package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VContextMenu/VContextMenu.d.ts +0 -3
- package/dist/components/VContextMenu/VContextMenu.js.map +1 -1
- package/dist/components/VContextMenu/VContextMenu.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VContextMenu/VContextMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDataTable/VDataTable.css +1 -1
- package/dist/components/VDataTable/VDataTable.d.ts +0 -2
- package/dist/components/VDataTable/VDataTable.js.map +1 -1
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js +69 -84
- package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VDateInput/VDateInput.d.ts +0 -3
- package/dist/components/VDateInput/VDateInput.js.map +1 -1
- package/dist/components/VDateInput/VDateInput.vue_vue_type_script_setup_true_lang.js +32 -37
- package/dist/components/VDateInput/VDateInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VFileInput/VFileInput.d.ts +0 -5
- package/dist/components/VFileInput/VFileInput.js.map +1 -1
- package/dist/components/VFileInput/VFileInput.vue_vue_type_script_setup_true_lang.js +75 -86
- package/dist/components/VFileInput/VFileInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VHotkeys/VHotkeys.d.ts +0 -3
- package/dist/components/VHotkeys/VHotkeys.js.map +1 -1
- package/dist/components/VHotkeys/VHotkeys.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VHotkeys/VHotkeys.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VIconButton/VIconButton.d.ts +0 -3
- package/dist/components/VIconButton/VIconButton.js.map +1 -1
- package/dist/components/VIconButton/VIconButton.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VIconButton/VIconButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VInput/VInput.css +1 -1
- package/dist/components/VInput/VInput.d.ts +0 -3
- package/dist/components/VInput/VInput.js.map +1 -1
- package/dist/components/VInput/VInput.vue_vue_type_script_setup_true_lang.js +18 -24
- package/dist/components/VInput/VInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VInput/VInputGroup.d.ts +0 -3
- package/dist/components/VInput/VInputGroup.js.map +1 -1
- package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js +0 -7
- package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VInput/context.d.ts +0 -2
- package/dist/components/VInput/context.js.map +1 -1
- package/dist/components/VInputOTP/VInputOTP.d.ts +0 -3
- package/dist/components/VInputOTP/VInputOTP.js.map +1 -1
- package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VListbox/VListboxPanel.d.ts +0 -3
- package/dist/components/VListbox/VListboxPanel.js.map +1 -1
- package/dist/components/VListbox/VListboxPanel.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VListbox/VListboxPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VListbox/VListboxValues.js.map +1 -1
- package/dist/components/VListbox/VListboxValues.vue_vue_type_script_setup_true_lang.js +4 -14
- package/dist/components/VListbox/VListboxValues.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenu.d.ts +0 -3
- package/dist/components/VMenu/VMenu.js.map +1 -1
- package/dist/components/VMenu/VMenu.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VMenu/VMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VMenu/VMenuPanel.d.ts +0 -3
- package/dist/components/VMenu/VMenuPanel.js.map +1 -1
- package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VNumberInput/VNumberInput.d.ts +0 -3
- package/dist/components/VNumberInput/VNumberInput.js.map +1 -1
- package/dist/components/VNumberInput/VNumberInput.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VNumberInput/VNumberInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VPagination/VPagination.d.ts +0 -3
- package/dist/components/VPagination/VPagination.js.map +1 -1
- package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSelect/VSelect.d.ts +0 -3
- package/dist/components/VSelect/VSelect.js.map +1 -1
- package/dist/components/VSelect/VSelect.vue_vue_type_script_setup_true_lang.js +114 -123
- package/dist/components/VSelect/VSelect.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigation.d.ts +0 -6
- package/dist/components/VSideNavigation/VSideNavigation.js.map +1 -1
- package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js +1 -10
- package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSideNavigation/context.js.map +1 -1
- package/dist/components/VSkeletonLoader/VSkeletonLoader.d.ts +0 -3
- package/dist/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/dist/components/VSkeletonLoader/VSkeletonLoader.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VSkeletonLoader/VSkeletonLoader.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSlider/VSlider.js.map +1 -1
- package/dist/components/VSlider/VSlider.vue_vue_type_script_setup_true_lang.js +115 -120
- package/dist/components/VSlider/VSlider.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VSplitButton/VSplitButton.d.ts +0 -3
- package/dist/components/VSplitButton/VSplitButton.js.map +1 -1
- package/dist/components/VSplitButton/VSplitButton.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VSplitButton/VSplitButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/VTab.js.map +1 -1
- package/dist/components/VTabs/VTab.vue_vue_type_script_setup_true_lang.js +0 -2
- package/dist/components/VTabs/VTab.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/VTabs.css +1 -1
- package/dist/components/VTabs/VTabs.d.ts +0 -3
- package/dist/components/VTabs/VTabs.js.map +1 -1
- package/dist/components/VTabs/VTabs.vue_vue_type_script_setup_true_lang.js +2 -15
- package/dist/components/VTabs/VTabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTabs/context.d.ts +0 -2
- package/dist/components/VTabs/context.js.map +1 -1
- package/dist/components/VTextarea/VTextarea.d.ts +0 -6
- package/dist/components/VTextarea/VTextarea.js.map +1 -1
- package/dist/components/VTextarea/VTextarea.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VTextarea/VTextarea.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VTimeInput/VTimeInput.d.ts +0 -3
- package/dist/components/VTimeInput/VTimeInput.js.map +1 -1
- package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js +211 -218
- package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToggle/VToggle.d.ts +0 -3
- package/dist/components/VToggle/VToggle.js.map +1 -1
- package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js +0 -6
- package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/components/VToggle/VToggleItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
- package/dist/composables/useControlShape.d.ts +1 -5
- package/dist/composables/useControlShape.js +0 -1
- package/dist/composables/useControlShape.js.map +1 -1
- package/dist/composables/useListbox.d.ts +0 -1
- package/dist/composables/useListbox.js +1 -1
- package/dist/composables/useListbox.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/tokens/index.d.ts +3 -0
- package/dist/tokens/semantic.d.ts +3 -0
- package/dist/tokens/semantic.js +6 -5
- package/dist/tokens/semantic.js.map +1 -1
- package/dist/tokens.json +12 -5
- package/dist/types.d.ts +0 -2
- package/dist/utils/chip.d.ts +4 -6
- package/dist/utils/chip.js +8 -5
- package/dist/utils/chip.js.map +1 -1
- package/package.json +1 -1
|
@@ -20,26 +20,25 @@ import { useFocusoutDismiss as me } from "../../composables/useFocusoutDismiss.j
|
|
|
20
20
|
import { useInfiniteScroll as he } from "../../composables/useInfiniteScroll.js";
|
|
21
21
|
import { selectionOf as ge, useListbox as _e } from "../../composables/useListbox.js";
|
|
22
22
|
import { useDebouncedSearch as ve } from "../../composables/useDebouncedSearch.js";
|
|
23
|
-
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createVNode as d, defineComponent as f, guardReactiveProps as p, inject as ye, mergeModels as m, mergeProps as be, normalizeClass as xe, normalizeProps as h, normalizeStyle as Se, openBlock as g, ref as _, renderSlot as v, toDisplayString as
|
|
23
|
+
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createSlots as u, createVNode as d, defineComponent as f, guardReactiveProps as p, inject as ye, mergeModels as m, mergeProps as be, normalizeClass as xe, normalizeProps as h, normalizeStyle as Se, openBlock as g, ref as _, renderSlot as v, toDisplayString as Ce, unref as y, useId as we, useModel as Te, watch as b, withCtx as x } from "vue";
|
|
24
24
|
//#region src/components/VCombobox/VCombobox.vue?vue&type=script&setup=true&lang.ts
|
|
25
|
-
var
|
|
25
|
+
var Ee = [
|
|
26
26
|
"data-size",
|
|
27
|
-
"data-compact",
|
|
28
27
|
"data-multiple",
|
|
29
28
|
"data-collapsed",
|
|
30
29
|
"data-open"
|
|
31
|
-
],
|
|
30
|
+
], De = {
|
|
32
31
|
key: 0,
|
|
33
32
|
class: "v-combobox-state",
|
|
34
33
|
"aria-hidden": "true"
|
|
35
|
-
},
|
|
34
|
+
}, Oe = {
|
|
36
35
|
key: 1,
|
|
37
36
|
class: "v-combobox-state",
|
|
38
37
|
"aria-hidden": "true"
|
|
39
|
-
},
|
|
38
|
+
}, ke = {
|
|
40
39
|
class: "v-visually-hidden",
|
|
41
40
|
role: "status"
|
|
42
|
-
},
|
|
41
|
+
}, S = /*@__PURE__*/ f({
|
|
43
42
|
inheritAttrs: !1,
|
|
44
43
|
__name: "VCombobox",
|
|
45
44
|
props: /*@__PURE__*/ m({
|
|
@@ -67,10 +66,6 @@ var Te = [
|
|
|
67
66
|
},
|
|
68
67
|
labelPosition: { default: "top" },
|
|
69
68
|
size: { default: "md" },
|
|
70
|
-
compact: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: !1
|
|
73
|
-
},
|
|
74
69
|
placeholder: { default: void 0 },
|
|
75
70
|
disabled: {
|
|
76
71
|
type: Boolean,
|
|
@@ -123,170 +118,167 @@ var Te = [
|
|
|
123
118
|
"click:icon-start"
|
|
124
119
|
], ["update:modelValue"]),
|
|
125
120
|
setup(i, { expose: f, emit: m }) {
|
|
126
|
-
let
|
|
127
|
-
...
|
|
128
|
-
...
|
|
129
|
-
})),
|
|
130
|
-
items: () =>
|
|
121
|
+
let S = i, C = e(), w = a(() => S.emptyText ?? C.value.combobox.empty), Ae = a(() => S.clearLabel ?? C.value.combobox.clear), T = a(() => S.loadingText ?? C.value.common.loading), E = m, je = ye(ae, null), { size: D, disabled: O } = t(S, je), k = a(() => pe(D.value)), A = Te(i, "modelValue"), { rootClass: Me, rootStyle: Ne, forwardedAttrs: Pe } = r(), Fe = re((e) => E("click:icon-start", e)), Ie = a(() => ({
|
|
122
|
+
...Pe.value,
|
|
123
|
+
...Fe
|
|
124
|
+
})), j = _(null), M = _(null), N = we(), P = _(!1), F = _(""), I = _(!1), L = _(!1), R = a(() => ge(A.value, S.multiple)), Le = ee(), Re = (e) => Le(e, e.label), z = a(() => L.value ? F.value.trim() : ""), B = _(null), V = _(null), { allOptions: H, visible: U, optionOf: ze, labelOf: W, remember: Be, activeIndex: G, optionId: Ve, highlightFirst: K, highlightSelected: He, move: q, hover: Ue, blocks: We, measureRow: Ge } = _e({
|
|
125
|
+
items: () => S.options,
|
|
131
126
|
filter: (e) => {
|
|
132
|
-
let t =
|
|
127
|
+
let t = S.filter;
|
|
133
128
|
if (t === !1) return e;
|
|
134
|
-
let n =
|
|
129
|
+
let n = B.value ?? z.value;
|
|
135
130
|
if (!n) return e;
|
|
136
131
|
if (typeof t == "function") return e.filter((e) => t(e, n));
|
|
137
132
|
let r = te(n);
|
|
138
|
-
return e.filter((e) =>
|
|
133
|
+
return e.filter((e) => Re(e).includes(r));
|
|
139
134
|
},
|
|
140
|
-
selected: () =>
|
|
141
|
-
open: () =>
|
|
142
|
-
id:
|
|
143
|
-
panelEl: () =>
|
|
144
|
-
virtual: () =>
|
|
145
|
-
hasMore: () =>
|
|
146
|
-
size: () =>
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
report: (e) => D("search", e)
|
|
135
|
+
selected: () => R.value,
|
|
136
|
+
open: () => P.value,
|
|
137
|
+
id: N,
|
|
138
|
+
panelEl: () => V.value?.el ?? null,
|
|
139
|
+
virtual: () => S.virtual,
|
|
140
|
+
hasMore: () => S.hasMore,
|
|
141
|
+
size: () => D.value
|
|
142
|
+
}), Ke = a(() => !P.value || U.value.length > 0 ? "" : S.loading ? T.value : w.value), { request: J, cancel: qe } = ve({
|
|
143
|
+
delay: () => S.searchDebounce,
|
|
144
|
+
active: () => P.value,
|
|
145
|
+
report: (e) => E("search", e)
|
|
152
146
|
});
|
|
153
|
-
|
|
154
|
-
|
|
147
|
+
b(z, (e) => {
|
|
148
|
+
P.value && (K(), Xe.restart(), J(e));
|
|
155
149
|
});
|
|
156
|
-
function
|
|
157
|
-
let e =
|
|
158
|
-
return e === void 0 ? "" :
|
|
150
|
+
function Y() {
|
|
151
|
+
let e = S.multiple ? void 0 : R.value[0];
|
|
152
|
+
return e === void 0 ? "" : W(e);
|
|
159
153
|
}
|
|
160
|
-
|
|
161
|
-
|
|
154
|
+
F.value = Y(), b([H, R], () => {
|
|
155
|
+
S.multiple || P.value || L.value || (F.value = Y());
|
|
162
156
|
}, { flush: "post" });
|
|
163
|
-
let
|
|
157
|
+
let X = a(() => S.multiple && S.display === "text"), Z = a(() => S.multiple && R.value.length > 0 && (!I.value || X.value && S.readonly)), Je = a(() => ie(S, O.value, R.value.length > 0 || F.value.length > 0));
|
|
164
158
|
function Q() {
|
|
165
|
-
|
|
159
|
+
O.value || S.readonly || P.value || (B.value = null, P.value = !0, He(), J(z.value, !0));
|
|
166
160
|
}
|
|
167
|
-
let
|
|
168
|
-
sentinelEl:
|
|
161
|
+
let Ye = _(null), Xe = he({
|
|
162
|
+
sentinelEl: Ye,
|
|
169
163
|
root: (e) => e.closest("[role=\"listbox\"]"),
|
|
170
|
-
canLoad: () =>
|
|
171
|
-
loaded: () =>
|
|
172
|
-
onLoadMore: () =>
|
|
164
|
+
canLoad: () => P.value && S.hasMore && !S.loading,
|
|
165
|
+
loaded: () => H.value,
|
|
166
|
+
onLoadMore: () => E("load-more")
|
|
173
167
|
});
|
|
174
|
-
function $(e =
|
|
175
|
-
|
|
168
|
+
function $(e = Y()) {
|
|
169
|
+
P.value && (qe(), Xe.reset(), B.value = z.value, P.value = !1, G.value = -1, L.value = !1, F.value = e);
|
|
176
170
|
}
|
|
177
|
-
|
|
171
|
+
b(() => S.readonly || O.value, (e) => {
|
|
178
172
|
e && $();
|
|
179
173
|
});
|
|
180
|
-
let
|
|
174
|
+
let Ze = me(j, () => $());
|
|
175
|
+
function Qe() {
|
|
176
|
+
L.value = !0, Q();
|
|
177
|
+
}
|
|
181
178
|
function $e() {
|
|
182
|
-
|
|
179
|
+
!S.multiple && F.value && M.value?.select();
|
|
183
180
|
}
|
|
184
181
|
function et() {
|
|
185
|
-
|
|
182
|
+
I.value = !0, $e();
|
|
186
183
|
}
|
|
187
|
-
|
|
188
|
-
|
|
184
|
+
let tt = (e) => e.target instanceof Element && e.target.closest(".v-combobox-chevron, .v-combobox-spinner") !== null;
|
|
185
|
+
function nt(e) {
|
|
186
|
+
tt(e) && e.preventDefault();
|
|
189
187
|
}
|
|
190
|
-
let nt = (e) => e.target instanceof Element && e.target.closest(".v-combobox-chevron, .v-combobox-spinner") !== null;
|
|
191
188
|
function rt(e) {
|
|
192
|
-
|
|
189
|
+
O.value || (M.value?.focus(), P.value && tt(e) ? $() : (Q(), $e()));
|
|
193
190
|
}
|
|
194
191
|
function it(e) {
|
|
195
|
-
|
|
192
|
+
e.disabled || S.readonly || O.value || (Be(e), S.multiple ? (L.value = !1, A.value = ne(R.value, e.value), F.value = "", M.value?.focus()) : (A.value = e.value, $(e.label)));
|
|
196
193
|
}
|
|
197
194
|
function at(e) {
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
function ot(e) {
|
|
201
|
-
!C.multiple || C.readonly || A.value || (M.value = B.value.filter((t) => t !== e), P.value?.focus());
|
|
195
|
+
!S.multiple || S.readonly || O.value || (A.value = R.value.filter((t) => t !== e), M.value?.focus());
|
|
202
196
|
}
|
|
203
|
-
function
|
|
204
|
-
|
|
197
|
+
function ot() {
|
|
198
|
+
A.value = S.multiple ? [] : "", L.value = !1, P.value ? K() : G.value = -1, E("clear");
|
|
205
199
|
}
|
|
206
|
-
function
|
|
200
|
+
function st(e) {
|
|
207
201
|
switch (e.key) {
|
|
208
202
|
case "ArrowDown":
|
|
209
|
-
e.preventDefault(),
|
|
203
|
+
e.preventDefault(), P.value ? q(1) : Q();
|
|
210
204
|
break;
|
|
211
205
|
case "ArrowUp":
|
|
212
|
-
e.preventDefault(),
|
|
206
|
+
e.preventDefault(), P.value ? q(-1) : Q();
|
|
213
207
|
break;
|
|
214
208
|
case "Enter":
|
|
215
|
-
if (
|
|
209
|
+
if (P.value && G.value >= 0) {
|
|
216
210
|
e.preventDefault();
|
|
217
|
-
let t =
|
|
218
|
-
t &&
|
|
211
|
+
let t = U.value[G.value];
|
|
212
|
+
t && it(t);
|
|
219
213
|
}
|
|
220
214
|
break;
|
|
221
215
|
case "Escape":
|
|
222
|
-
|
|
216
|
+
P.value && (e.preventDefault(), $());
|
|
223
217
|
break;
|
|
224
218
|
case "Tab":
|
|
225
219
|
$();
|
|
226
220
|
break;
|
|
227
|
-
case "Backspace": if (
|
|
228
|
-
let e =
|
|
229
|
-
e !== void 0 &&
|
|
221
|
+
case "Backspace": if (S.multiple && !F.value) {
|
|
222
|
+
let e = R.value.at(-1);
|
|
223
|
+
e !== void 0 && at(e);
|
|
230
224
|
}
|
|
231
225
|
}
|
|
232
226
|
}
|
|
233
227
|
return f({
|
|
234
|
-
focus: (e) =>
|
|
235
|
-
select: () =>
|
|
236
|
-
el: a(() =>
|
|
228
|
+
focus: (e) => M.value?.focus(e),
|
|
229
|
+
select: () => M.value?.select(),
|
|
230
|
+
el: a(() => M.value?.el ?? null)
|
|
237
231
|
}), (e, t) => (g(), c("div", {
|
|
238
232
|
ref_key: "rootEl",
|
|
239
|
-
ref:
|
|
240
|
-
class: xe(["v-combobox",
|
|
241
|
-
style: Se([{ "--chip-height":
|
|
242
|
-
"data-size":
|
|
243
|
-
"data-compact": b(k) ? "" : void 0,
|
|
233
|
+
ref: j,
|
|
234
|
+
class: xe(["v-combobox", y(Me)]),
|
|
235
|
+
style: Se([{ "--chip-height": k.value.height }, y(Ne)]),
|
|
236
|
+
"data-size": y(D),
|
|
244
237
|
"data-multiple": i.multiple ? "" : void 0,
|
|
245
|
-
"data-collapsed":
|
|
246
|
-
"data-open":
|
|
247
|
-
onFocusout: t[3] ||= (...e) =>
|
|
238
|
+
"data-collapsed": Z.value ? "" : void 0,
|
|
239
|
+
"data-open": P.value ? "" : void 0,
|
|
240
|
+
onFocusout: t[3] ||= (...e) => y(Ze) && y(Ze)(...e)
|
|
248
241
|
}, [
|
|
249
242
|
l("div", {
|
|
250
243
|
class: "v-combobox-control",
|
|
251
|
-
onMousedown:
|
|
252
|
-
onClick:
|
|
244
|
+
onMousedown: nt,
|
|
245
|
+
onClick: rt
|
|
253
246
|
}, [d(oe, be({
|
|
254
247
|
ref_key: "inputRef",
|
|
255
|
-
ref:
|
|
256
|
-
modelValue:
|
|
257
|
-
"onUpdate:modelValue": t[0] ||= (e) =>
|
|
258
|
-
class: ["v-input-end-pinned", { "v-input-chips": i.multiple && !
|
|
248
|
+
ref: M,
|
|
249
|
+
modelValue: F.value,
|
|
250
|
+
"onUpdate:modelValue": t[0] ||= (e) => F.value = e,
|
|
251
|
+
class: ["v-input-end-pinned", { "v-input-chips": i.multiple && !X.value }],
|
|
259
252
|
role: "combobox",
|
|
260
253
|
"aria-haspopup": "listbox",
|
|
261
254
|
"aria-autocomplete": "list",
|
|
262
|
-
"aria-expanded":
|
|
263
|
-
"aria-controls":
|
|
264
|
-
},
|
|
255
|
+
"aria-expanded": P.value,
|
|
256
|
+
"aria-controls": y(N)
|
|
257
|
+
}, Ie.value, {
|
|
265
258
|
label: i.label,
|
|
266
259
|
hint: i.hint,
|
|
267
260
|
error: i.error,
|
|
268
261
|
required: i.required,
|
|
269
262
|
"hide-label": i.hideLabel,
|
|
270
263
|
"label-position": i.labelPosition,
|
|
271
|
-
size:
|
|
272
|
-
compact: b(k),
|
|
264
|
+
size: y(D),
|
|
273
265
|
invalid: i.invalid,
|
|
274
|
-
disabled:
|
|
266
|
+
disabled: y(O),
|
|
275
267
|
readonly: i.readonly,
|
|
276
268
|
"icon-start": i.iconStart,
|
|
277
269
|
"icon-start-label": i.iconStartLabel,
|
|
278
270
|
clearable: i.clearable,
|
|
279
|
-
"clear-visible":
|
|
280
|
-
"clear-label":
|
|
281
|
-
placeholder:
|
|
282
|
-
"aria-activedescendant":
|
|
283
|
-
onInput:
|
|
284
|
-
onKeydown:
|
|
285
|
-
onFocus:
|
|
286
|
-
onBlur: t[1] ||= (e) =>
|
|
287
|
-
onClear:
|
|
271
|
+
"clear-visible": Je.value,
|
|
272
|
+
"clear-label": Ae.value,
|
|
273
|
+
placeholder: R.value.length === 0 ? i.placeholder : void 0,
|
|
274
|
+
"aria-activedescendant": P.value && y(G) >= 0 ? y(Ve)(y(G)) : void 0,
|
|
275
|
+
onInput: Qe,
|
|
276
|
+
onKeydown: st,
|
|
277
|
+
onFocus: et,
|
|
278
|
+
onBlur: t[1] ||= (e) => I.value = !1,
|
|
279
|
+
onClear: ot
|
|
288
280
|
}), u({
|
|
289
|
-
end:
|
|
281
|
+
end: x(() => [i.loading ? (g(), o(n, {
|
|
290
282
|
key: 0,
|
|
291
283
|
class: "v-combobox-spinner v-input-icon-end",
|
|
292
284
|
"aria-hidden": "true"
|
|
@@ -294,31 +286,31 @@ var Te = [
|
|
|
294
286
|
key: 1,
|
|
295
287
|
class: "v-combobox-chevron",
|
|
296
288
|
icon: i.expandIcon,
|
|
297
|
-
open:
|
|
289
|
+
open: P.value
|
|
298
290
|
}, null, 8, ["icon", "open"]))]),
|
|
299
291
|
_: 2
|
|
300
292
|
}, [i.multiple || e.$slots.start ? {
|
|
301
293
|
name: "start",
|
|
302
|
-
fn:
|
|
294
|
+
fn: x(() => [i.multiple ? (g(), o(fe, {
|
|
303
295
|
key: 0,
|
|
304
|
-
values:
|
|
296
|
+
values: R.value,
|
|
305
297
|
display: i.display,
|
|
306
298
|
max: i.max,
|
|
307
|
-
collapsed:
|
|
299
|
+
collapsed: Z.value,
|
|
308
300
|
"overflow-text": i.overflowText,
|
|
309
|
-
scale:
|
|
301
|
+
scale: k.value,
|
|
310
302
|
removable: !i.readonly,
|
|
311
|
-
disabled:
|
|
312
|
-
"label-of":
|
|
313
|
-
"option-of":
|
|
314
|
-
onRemove:
|
|
303
|
+
disabled: y(O),
|
|
304
|
+
"label-of": y(W),
|
|
305
|
+
"option-of": y(ze),
|
|
306
|
+
onRemove: at
|
|
315
307
|
}, u({ _: 2 }, [e.$slots.chip ? {
|
|
316
308
|
name: "chip",
|
|
317
|
-
fn:
|
|
309
|
+
fn: x((t) => [v(e.$slots, "chip", h(p(t)))]),
|
|
318
310
|
key: "0"
|
|
319
311
|
} : void 0, e.$slots.overflow ? {
|
|
320
312
|
name: "overflow",
|
|
321
|
-
fn:
|
|
313
|
+
fn: x((t) => [v(e.$slots, "overflow", h(p(t)))]),
|
|
322
314
|
key: "1"
|
|
323
315
|
} : void 0]), 1032, [
|
|
324
316
|
"values",
|
|
@@ -335,7 +327,7 @@ var Te = [
|
|
|
335
327
|
key: "0"
|
|
336
328
|
} : void 0, e.$slots["value-end"] ? {
|
|
337
329
|
name: "value-end",
|
|
338
|
-
fn:
|
|
330
|
+
fn: x(() => [v(e.$slots, "value-end")]),
|
|
339
331
|
key: "1"
|
|
340
332
|
} : void 0]), 1040, [
|
|
341
333
|
"modelValue",
|
|
@@ -349,7 +341,6 @@ var Te = [
|
|
|
349
341
|
"hide-label",
|
|
350
342
|
"label-position",
|
|
351
343
|
"size",
|
|
352
|
-
"compact",
|
|
353
344
|
"invalid",
|
|
354
345
|
"disabled",
|
|
355
346
|
"readonly",
|
|
@@ -362,60 +353,58 @@ var Te = [
|
|
|
362
353
|
"aria-activedescendant"
|
|
363
354
|
])], 32),
|
|
364
355
|
d(de, {
|
|
365
|
-
id:
|
|
356
|
+
id: y(N),
|
|
366
357
|
ref_key: "panelRef",
|
|
367
|
-
ref:
|
|
368
|
-
open:
|
|
369
|
-
"onUpdate:open": t[2] ||= (e) =>
|
|
358
|
+
ref: V,
|
|
359
|
+
open: P.value,
|
|
360
|
+
"onUpdate:open": t[2] ||= (e) => P.value = e,
|
|
370
361
|
anchor: "--combobox-anchor",
|
|
371
362
|
placement: i.placement,
|
|
372
363
|
class: "v-combobox-panel",
|
|
373
|
-
size:
|
|
374
|
-
compact: b(k),
|
|
364
|
+
size: y(D),
|
|
375
365
|
multiple: i.multiple,
|
|
376
366
|
virtual: i.virtual,
|
|
377
|
-
blocks:
|
|
378
|
-
measure:
|
|
379
|
-
onSelect:
|
|
380
|
-
onHighlight:
|
|
367
|
+
blocks: y(We),
|
|
368
|
+
measure: y(Ge),
|
|
369
|
+
onSelect: it,
|
|
370
|
+
onHighlight: y(Ue)
|
|
381
371
|
}, u({
|
|
382
|
-
default:
|
|
372
|
+
default: x(() => [i.loading && y(U).length === 0 ? (g(), c("div", De, [v(e.$slots, "loading", {}, () => [d(n, { label: T.value }, null, 8, ["label"]), l("span", null, Ce(T.value), 1)])])) : y(U).length === 0 ? (g(), c("div", Oe, [v(e.$slots, "empty", { query: z.value }, () => [d(se, {
|
|
383
373
|
size: "sm",
|
|
384
374
|
class: "v-combobox-empty",
|
|
385
|
-
icon:
|
|
386
|
-
title:
|
|
375
|
+
icon: z.value ? y(le) : y(ce),
|
|
376
|
+
title: w.value
|
|
387
377
|
}, null, 8, ["icon", "title"])])])) : s("", !0), i.hasMore ? (g(), c("div", {
|
|
388
378
|
key: 2,
|
|
389
379
|
ref_key: "sentinelEl",
|
|
390
|
-
ref:
|
|
380
|
+
ref: Ye,
|
|
391
381
|
class: "v-combobox-more",
|
|
392
382
|
"aria-hidden": "true"
|
|
393
383
|
}, [i.loading ? (g(), o(n, {
|
|
394
384
|
key: 0,
|
|
395
|
-
label:
|
|
385
|
+
label: T.value
|
|
396
386
|
}, null, 8, ["label"])) : s("", !0)], 512)) : s("", !0)]),
|
|
397
387
|
_: 2
|
|
398
388
|
}, [e.$slots.option ? {
|
|
399
389
|
name: "option",
|
|
400
|
-
fn:
|
|
390
|
+
fn: x((t) => [v(e.$slots, "option", h(p(t)))]),
|
|
401
391
|
key: "0"
|
|
402
392
|
} : void 0]), 1032, [
|
|
403
393
|
"id",
|
|
404
394
|
"open",
|
|
405
395
|
"placement",
|
|
406
396
|
"size",
|
|
407
|
-
"compact",
|
|
408
397
|
"multiple",
|
|
409
398
|
"virtual",
|
|
410
399
|
"blocks",
|
|
411
400
|
"measure",
|
|
412
401
|
"onHighlight"
|
|
413
402
|
]),
|
|
414
|
-
l("span",
|
|
415
|
-
], 46,
|
|
403
|
+
l("span", ke, Ce(Ke.value), 1)
|
|
404
|
+
], 46, Ee));
|
|
416
405
|
}
|
|
417
406
|
});
|
|
418
407
|
//#endregion
|
|
419
|
-
export {
|
|
408
|
+
export { S as default };
|
|
420
409
|
|
|
421
410
|
//# sourceMappingURL=VCombobox.vue_vue_type_script_setup_true_lang.js.map
|