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