@quidgest/ui 0.12.1 → 0.12.2
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/ui.esm.js +461 -477
- package/dist/ui.js +5 -5
- package/dist/ui.min.js +95 -106
- package/dist/ui.scss +1 -1
- package/esm/components/QButton/QButton.vue.js +14 -15
- package/esm/components/QButton/index.d.ts +196 -2
- package/esm/components/QButton/index.d.ts.map +1 -1
- package/esm/components/QButton/index.js +6 -0
- package/esm/components/QButtonGroup/index.d.ts +79 -2
- package/esm/components/QButtonGroup/index.d.ts.map +1 -1
- package/esm/components/QButtonGroup/index.js +6 -0
- package/esm/components/QButtonToggle/QButtonToggle.vue.js +17 -17
- package/esm/components/QButtonToggle/index.d.ts +115 -2
- package/esm/components/QButtonToggle/index.d.ts.map +1 -1
- package/esm/components/QButtonToggle/index.js +6 -0
- package/esm/components/QCombobox/QCombobox.vue.js +106 -111
- package/esm/components/QCombobox/index.d.ts +1083 -2
- package/esm/components/QCombobox/index.d.ts.map +1 -1
- package/esm/components/QCombobox/index.js +6 -0
- package/esm/components/QField/index.d.ts +168 -1
- package/esm/components/QField/index.d.ts.map +1 -1
- package/esm/components/QField/index.js +2 -2
- package/esm/components/QIcon/QIcon.vue.js +9 -12
- package/esm/components/QIcon/index.d.ts +156 -4
- package/esm/components/QIcon/index.d.ts.map +1 -1
- package/esm/components/QIcon/index.js +8 -11
- package/esm/components/QInputGroup/QInputGroup.vue.js +25 -27
- package/esm/components/QInputGroup/index.d.ts +153 -2
- package/esm/components/QInputGroup/index.d.ts.map +1 -1
- package/esm/components/QInputGroup/index.js +6 -0
- package/esm/components/QLineLoader/index.d.ts +13 -2
- package/esm/components/QLineLoader/index.d.ts.map +1 -1
- package/esm/components/QLineLoader/index.js +6 -0
- package/esm/components/QList/QList.vue.js +43 -45
- package/esm/components/QList/QListItem.vue.js +9 -10
- package/esm/components/QList/index.d.ts +418 -3
- package/esm/components/QList/index.d.ts.map +1 -1
- package/esm/components/QList/index.js +8 -10
- package/esm/components/QOverlay/index.d.ts +320 -2
- package/esm/components/QOverlay/index.d.ts.map +1 -1
- package/esm/components/QOverlay/index.js +4 -4
- package/esm/components/QPopover/QPopover.vue.js +11 -12
- package/esm/components/QPopover/index.d.ts +180 -2
- package/esm/components/QPopover/index.d.ts.map +1 -1
- package/esm/components/QPopover/index.js +6 -0
- package/esm/components/QSelect/QSelect.vue.js +68 -73
- package/esm/components/QSelect/index.d.ts +377 -2
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/QSelect/index.js +6 -0
- package/esm/components/QSkeletonLoader/index.d.ts +31 -2
- package/esm/components/QSkeletonLoader/index.d.ts.map +1 -1
- package/esm/components/QSkeletonLoader/index.js +6 -0
- package/esm/components/QSpinnerLoader/index.d.ts +22 -2
- package/esm/components/QSpinnerLoader/index.d.ts.map +1 -1
- package/esm/components/QSpinnerLoader/index.js +4 -4
- package/esm/components/QTextField/QTextField.vue.js +7 -8
- package/esm/components/QTextField/index.d.ts +229 -2
- package/esm/components/QTextField/index.d.ts.map +1 -1
- package/esm/components/QTextField/index.js +2 -2
- package/esm/components/QThemeProvider/index.d.ts +37 -2
- package/esm/components/QThemeProvider/index.d.ts.map +1 -1
- package/esm/components/QThemeProvider/index.js +6 -0
- package/esm/components/QTooltip/QTooltip.vue.js +8 -9
- package/esm/components/QTooltip/index.d.ts +259 -2
- package/esm/components/QTooltip/index.d.ts.map +1 -1
- package/esm/components/QTooltip/index.js +6 -0
- package/esm/components/index.js +39 -44
- package/esm/composables/defaults.js +5 -5
- package/package.json +1 -1
|
@@ -1,33 +1,28 @@
|
|
|
1
|
-
import { defineComponent as re, mergeModels as
|
|
2
|
-
import G from "../QButton/
|
|
3
|
-
import "../QIcon/index.js";
|
|
4
|
-
import "../QList/index.js";
|
|
5
|
-
import "../QOverlay/index.js";
|
|
6
|
-
import "../QSpinnerLoader/index.js";
|
|
7
|
-
import "../QTextField/index.js";
|
|
8
|
-
|
|
9
|
-
import J from "../QIcon/QIcon.vue.js";
|
|
10
|
-
import he from "../QOverlay/QOverlay.vue.js";
|
|
11
|
-
import ge from "../QSpinnerLoader/QSpinnerLoader.vue.js";
|
|
12
|
-
import ke from "../QList/QList.vue.js";
|
|
13
|
-
const Ie = ["data-key"], we = {
|
|
1
|
+
import { defineComponent as re, mergeModels as H, useModel as T, ref as I, onMounted as ce, computed as m, watch as k, nextTick as w, openBlock as y, createElementBlock as _, Fragment as ve, createVNode as x, unref as c, normalizeClass as fe, withModifiers as K, createSlots as me, withCtx as r, renderSlot as v, createBlock as C, normalizeProps as j, guardReactiveProps as W, createCommentVNode as X, createElementVNode as pe, toDisplayString as be } from "vue";
|
|
2
|
+
import { QButton as G } from "../QButton/index.js";
|
|
3
|
+
import { QIcon as J } from "../QIcon/index.js";
|
|
4
|
+
import { QList as ye } from "../QList/index.js";
|
|
5
|
+
import { QOverlay as he } from "../QOverlay/index.js";
|
|
6
|
+
import { QSpinnerLoader as ge } from "../QSpinnerLoader/index.js";
|
|
7
|
+
import { QTextField as Ie } from "../QTextField/index.js";
|
|
8
|
+
const ke = ["data-key"], we = {
|
|
14
9
|
key: 0,
|
|
15
10
|
class: "q-select__loader"
|
|
16
|
-
},
|
|
11
|
+
}, xe = {
|
|
17
12
|
key: 2,
|
|
18
13
|
class: "q-select__loader"
|
|
19
|
-
},
|
|
14
|
+
}, Ve = {
|
|
20
15
|
noData: "No data available"
|
|
21
|
-
},
|
|
16
|
+
}, Le = {
|
|
22
17
|
chevron: {
|
|
23
18
|
icon: "chevron-down"
|
|
24
19
|
},
|
|
25
20
|
clear: {
|
|
26
21
|
icon: "close"
|
|
27
22
|
}
|
|
28
|
-
},
|
|
23
|
+
}, Se = /* @__PURE__ */ re({
|
|
29
24
|
__name: "QCombobox",
|
|
30
|
-
props: /* @__PURE__ */
|
|
25
|
+
props: /* @__PURE__ */ H({
|
|
31
26
|
id: { default: void 0 },
|
|
32
27
|
placeholder: { default: "" },
|
|
33
28
|
selectionMode: { default: "automatic" },
|
|
@@ -44,8 +39,8 @@ const Ie = ["data-key"], we = {
|
|
|
44
39
|
itemLabel: { default: "label" },
|
|
45
40
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
46
41
|
size: { default: void 0 },
|
|
47
|
-
texts: { default: () =>
|
|
48
|
-
icons: { default: () =>
|
|
42
|
+
texts: { default: () => Ve },
|
|
43
|
+
icons: { default: () => Le },
|
|
49
44
|
class: { default: void 0 }
|
|
50
45
|
}, {
|
|
51
46
|
modelValue: {
|
|
@@ -57,164 +52,164 @@ const Ie = ["data-key"], we = {
|
|
|
57
52
|
search: { default: "" },
|
|
58
53
|
searchModifiers: {}
|
|
59
54
|
}),
|
|
60
|
-
emits: /* @__PURE__ */
|
|
61
|
-
setup(
|
|
62
|
-
const l =
|
|
55
|
+
emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
56
|
+
setup(V, { expose: Y, emit: Z }) {
|
|
57
|
+
const l = V, L = Z, d = T(V, "modelValue"), i = T(V, "open"), u = T(V, "search"), t = I(void 0), f = I(null), s = I(null), F = I(null), $ = I(null);
|
|
63
58
|
ce(g);
|
|
64
|
-
const
|
|
59
|
+
const B = m(() => l.clearable && !l.readonly && !l.disabled), p = m(() => {
|
|
65
60
|
var e;
|
|
66
61
|
return l.filterMode === "manual" || !le.value ? l.items : (e = l.items) == null ? void 0 : e.filter(
|
|
67
|
-
(o) => o[l.itemLabel].toLowerCase().startsWith(
|
|
62
|
+
(o) => o[l.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
|
|
68
63
|
);
|
|
69
|
-
}), h =
|
|
64
|
+
}), h = m(() => {
|
|
70
65
|
var e;
|
|
71
66
|
return (e = l.items) == null ? void 0 : e.find((o) => o[l.itemValue] === d.value);
|
|
72
|
-
}), A =
|
|
67
|
+
}), A = m(() => h.value === void 0), D = m(() => {
|
|
73
68
|
const e = t.value;
|
|
74
69
|
if (e !== void 0 && p.value[e])
|
|
75
70
|
return p.value[e];
|
|
76
|
-
}), ee =
|
|
71
|
+
}), ee = m(() => {
|
|
77
72
|
var o;
|
|
78
73
|
if (t.value === void 0)
|
|
79
74
|
return;
|
|
80
|
-
const e = (o =
|
|
75
|
+
const e = (o = s.value) == null ? void 0 : o.getItem(t.value);
|
|
81
76
|
return e == null ? void 0 : e.id;
|
|
82
|
-
}), le =
|
|
77
|
+
}), le = m(() => {
|
|
83
78
|
var e;
|
|
84
|
-
return
|
|
79
|
+
return u.value.length > 0 && u.value !== ((e = h.value) == null ? void 0 : e[l.itemLabel]);
|
|
85
80
|
});
|
|
86
81
|
function z(e) {
|
|
87
|
-
d.value = e,
|
|
82
|
+
d.value = e, q();
|
|
88
83
|
}
|
|
89
84
|
function g() {
|
|
90
85
|
var o;
|
|
91
86
|
const e = ((o = h.value) == null ? void 0 : o[l.itemLabel]) || "";
|
|
92
|
-
|
|
87
|
+
u.value !== e && (u.value = e);
|
|
93
88
|
}
|
|
94
|
-
function
|
|
95
|
-
i.value || l.readonly || l.disabled || (
|
|
89
|
+
function E() {
|
|
90
|
+
i.value || l.readonly || l.disabled || (L("before-show"), i.value = !0, S());
|
|
96
91
|
}
|
|
97
|
-
function
|
|
98
|
-
i.value && (
|
|
92
|
+
function q() {
|
|
93
|
+
i.value && (L("before-hide"), i.value = !1, t.value = void 0);
|
|
99
94
|
}
|
|
100
95
|
function oe() {
|
|
101
|
-
i.value ?
|
|
96
|
+
i.value ? q() : N();
|
|
102
97
|
}
|
|
103
98
|
function ae() {
|
|
104
|
-
|
|
99
|
+
B.value && (d.value = l.emptyValue, t.value = void 0, S());
|
|
105
100
|
}
|
|
106
101
|
function N() {
|
|
107
|
-
if (
|
|
102
|
+
if (E(), h.value !== void 0) {
|
|
108
103
|
const e = p.value.indexOf(h.value);
|
|
109
|
-
e !== -1 && w(() =>
|
|
104
|
+
e !== -1 && w(() => Q(e));
|
|
110
105
|
}
|
|
111
106
|
}
|
|
112
107
|
function te(e) {
|
|
113
108
|
var o, a;
|
|
114
109
|
if (!(!e.key || l.readonly || l.disabled))
|
|
115
110
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(e.key) && (e.preventDefault(), e.stopPropagation()), e.key === "Escape")
|
|
116
|
-
g(), i.value &&
|
|
111
|
+
g(), i.value && q();
|
|
117
112
|
else if (["ArrowDown", "ArrowUp"].includes(e.key))
|
|
118
113
|
i.value ? w(() => {
|
|
119
114
|
if (t.value === void 0)
|
|
120
|
-
|
|
115
|
+
M();
|
|
121
116
|
else {
|
|
122
117
|
const n = e.key === "ArrowDown" ? "next" : "prev";
|
|
123
118
|
ie(t.value, n);
|
|
124
119
|
}
|
|
125
|
-
}) : (
|
|
126
|
-
e.key === "ArrowDown" ?
|
|
120
|
+
}) : (E(), w(() => {
|
|
121
|
+
e.key === "ArrowDown" ? M() : ne();
|
|
127
122
|
}));
|
|
128
123
|
else if (e.key === "Enter") {
|
|
129
124
|
if (D.value === void 0)
|
|
130
125
|
return;
|
|
131
126
|
z(D.value[l.itemValue]);
|
|
132
127
|
} else
|
|
133
|
-
e.key === "Home" ? t.value = (o =
|
|
128
|
+
e.key === "Home" ? t.value = (o = s.value) == null ? void 0 : o.getFirstFocusableItemIndex() : e.key === "End" ? t.value = (a = s.value) == null ? void 0 : a.getLastFocusableItemIndex() : (/^[a-z]$/i.test(e.key) || e.key === "Backspace") && E();
|
|
134
129
|
}
|
|
135
|
-
function
|
|
130
|
+
function M() {
|
|
136
131
|
var e, o;
|
|
137
132
|
if (A.value)
|
|
138
|
-
t.value = (o =
|
|
133
|
+
t.value = (o = s.value) == null ? void 0 : o.getFirstFocusableItemIndex();
|
|
139
134
|
else {
|
|
140
135
|
const a = p.value.findIndex(
|
|
141
136
|
(n) => n[l.itemValue] === d.value
|
|
142
137
|
);
|
|
143
|
-
a === -1 ? t.value = (e =
|
|
138
|
+
a === -1 ? t.value = (e = s.value) == null ? void 0 : e.getFirstFocusableItemIndex() : t.value = a;
|
|
144
139
|
}
|
|
145
140
|
}
|
|
146
141
|
function ne() {
|
|
147
142
|
var e;
|
|
148
|
-
t.value = (e =
|
|
143
|
+
t.value = (e = s.value) == null ? void 0 : e.getLastFocusableItemIndex();
|
|
149
144
|
}
|
|
150
145
|
function ie(e, o) {
|
|
151
146
|
var a;
|
|
152
|
-
t.value = (a =
|
|
147
|
+
t.value = (a = s.value) == null ? void 0 : a.getAdjacentItemIndex(e, o);
|
|
153
148
|
}
|
|
154
149
|
function U(e) {
|
|
155
|
-
var b, P, R
|
|
156
|
-
const o = ((b =
|
|
150
|
+
var b, O, P, R;
|
|
151
|
+
const o = ((b = F == null ? void 0 : F.value) == null ? void 0 : b.$el) === e.relatedTarget, a = (P = (O = f == null ? void 0 : f.value) == null ? void 0 : O.$el) == null ? void 0 : P.contains(e.relatedTarget), n = (R = $ == null ? void 0 : $.value) == null ? void 0 : R.contains(e.relatedTarget);
|
|
157
152
|
if (o || n || a) {
|
|
158
153
|
e.preventDefault(), e.stopPropagation();
|
|
159
154
|
return;
|
|
160
155
|
}
|
|
161
|
-
|
|
156
|
+
q(), B.value && !u.value && (d.value = l.emptyValue), g();
|
|
162
157
|
}
|
|
163
|
-
function
|
|
158
|
+
function S() {
|
|
164
159
|
var e, o;
|
|
165
|
-
(o = (e =
|
|
166
|
-
}
|
|
167
|
-
function se() {
|
|
168
|
-
E();
|
|
160
|
+
(o = (e = f.value) == null ? void 0 : e.inputRef) == null || o.focus();
|
|
169
161
|
}
|
|
170
162
|
function ue() {
|
|
171
|
-
|
|
163
|
+
S();
|
|
164
|
+
}
|
|
165
|
+
function se() {
|
|
166
|
+
L("show");
|
|
172
167
|
}
|
|
173
168
|
function de() {
|
|
174
|
-
|
|
169
|
+
L("hide");
|
|
175
170
|
}
|
|
176
|
-
function
|
|
171
|
+
function Q(e) {
|
|
177
172
|
var a;
|
|
178
|
-
const o = (a =
|
|
179
|
-
|
|
173
|
+
const o = (a = s.value) == null ? void 0 : a.getItem(e);
|
|
174
|
+
s.value && (s.value.$el.scrollTop = o == null ? void 0 : o.offsetTop);
|
|
180
175
|
}
|
|
181
|
-
return
|
|
176
|
+
return k(d, g), k(
|
|
182
177
|
() => l.items,
|
|
183
178
|
(e, o) => {
|
|
184
179
|
if (!A.value) {
|
|
185
180
|
const a = o.find((n) => n[l.itemValue] === d.value);
|
|
186
|
-
|
|
181
|
+
u.value === (a == null ? void 0 : a[l.itemLabel]) && g();
|
|
187
182
|
}
|
|
188
183
|
},
|
|
189
184
|
{ deep: !0 }
|
|
190
|
-
),
|
|
191
|
-
e !== void 0 &&
|
|
192
|
-
}),
|
|
193
|
-
e && i.value && l.selectionMode === "automatic" && w(
|
|
194
|
-
}),
|
|
185
|
+
), k(t, (e) => {
|
|
186
|
+
e !== void 0 && Q(e);
|
|
187
|
+
}), k(u, (e) => {
|
|
188
|
+
e && i.value && l.selectionMode === "automatic" && w(M);
|
|
189
|
+
}), k(
|
|
195
190
|
() => l.loading,
|
|
196
191
|
(e) => {
|
|
197
|
-
!e && i.value && w(
|
|
192
|
+
!e && i.value && w(M);
|
|
198
193
|
}
|
|
199
194
|
), Y({
|
|
200
|
-
triggerEl:
|
|
195
|
+
triggerEl: f
|
|
201
196
|
}), (e, o) => {
|
|
202
197
|
var a;
|
|
203
|
-
return y(),
|
|
204
|
-
|
|
198
|
+
return y(), _(
|
|
199
|
+
ve,
|
|
205
200
|
null,
|
|
206
201
|
[
|
|
207
|
-
|
|
208
|
-
modelValue:
|
|
209
|
-
"onUpdate:modelValue": o[0] || (o[0] = (n) =>
|
|
202
|
+
x(c(Ie), {
|
|
203
|
+
modelValue: u.value,
|
|
204
|
+
"onUpdate:modelValue": o[0] || (o[0] = (n) => u.value = n),
|
|
210
205
|
id: l.id,
|
|
211
206
|
label: l.label,
|
|
212
207
|
required: l.required,
|
|
213
208
|
ref_key: "triggerEl",
|
|
214
|
-
ref:
|
|
209
|
+
ref: f,
|
|
215
210
|
role: "combobox",
|
|
216
211
|
placeholder: l.placeholder,
|
|
217
|
-
class:
|
|
212
|
+
class: fe([
|
|
218
213
|
"q-combobox",
|
|
219
214
|
{
|
|
220
215
|
"q-combobox--readonly": l.readonly,
|
|
@@ -234,17 +229,17 @@ const Ie = ["data-key"], we = {
|
|
|
234
229
|
size: l.size,
|
|
235
230
|
onClick: N,
|
|
236
231
|
onFocusout: U,
|
|
237
|
-
onKeydown:
|
|
238
|
-
},
|
|
232
|
+
onKeydown: K(te, ["stop"])
|
|
233
|
+
}, me({
|
|
239
234
|
"label.prepend": r(() => [
|
|
240
|
-
|
|
235
|
+
v(e.$slots, "label.prepend")
|
|
241
236
|
]),
|
|
242
237
|
"label.append": r(() => [
|
|
243
|
-
|
|
238
|
+
v(e.$slots, "label.append")
|
|
244
239
|
]),
|
|
245
240
|
append: r(() => [
|
|
246
|
-
|
|
247
|
-
|
|
241
|
+
v(e.$slots, "append"),
|
|
242
|
+
B.value && u.value ? (y(), C(c(G), {
|
|
248
243
|
key: 0,
|
|
249
244
|
class: "q-combobox__clear",
|
|
250
245
|
"b-style": "plain",
|
|
@@ -253,9 +248,9 @@ const Ie = ["data-key"], we = {
|
|
|
253
248
|
onClick: ae
|
|
254
249
|
}, {
|
|
255
250
|
default: r(() => [
|
|
256
|
-
|
|
251
|
+
x(
|
|
257
252
|
c(J),
|
|
258
|
-
|
|
253
|
+
j(W(l.icons.clear)),
|
|
259
254
|
null,
|
|
260
255
|
16
|
|
261
256
|
/* FULL_PROPS */
|
|
@@ -264,21 +259,21 @@ const Ie = ["data-key"], we = {
|
|
|
264
259
|
_: 1
|
|
265
260
|
/* STABLE */
|
|
266
261
|
})) : X("v-if", !0),
|
|
267
|
-
l.readonly ? X("v-if", !0) : (y(),
|
|
262
|
+
l.readonly ? X("v-if", !0) : (y(), C(c(G), {
|
|
268
263
|
key: 1,
|
|
269
264
|
ref_key: "toggleRef",
|
|
270
|
-
ref:
|
|
265
|
+
ref: F,
|
|
271
266
|
class: "q-combobox__chevron",
|
|
272
267
|
"b-style": "plain",
|
|
273
268
|
borderless: "",
|
|
274
269
|
tabindex: "-1",
|
|
275
270
|
disabled: l.disabled,
|
|
276
|
-
onMousedown:
|
|
271
|
+
onMousedown: K(oe, ["stop", "prevent"])
|
|
277
272
|
}, {
|
|
278
273
|
default: r(() => [
|
|
279
|
-
|
|
274
|
+
x(
|
|
280
275
|
c(J),
|
|
281
|
-
|
|
276
|
+
j(W(l.icons.chevron)),
|
|
282
277
|
null,
|
|
283
278
|
16
|
|
284
279
|
/* FULL_PROPS */
|
|
@@ -294,19 +289,19 @@ const Ie = ["data-key"], we = {
|
|
|
294
289
|
e.$slots.prepend ? {
|
|
295
290
|
name: "prepend",
|
|
296
291
|
fn: r(() => [
|
|
297
|
-
|
|
292
|
+
v(e.$slots, "prepend")
|
|
298
293
|
]),
|
|
299
294
|
key: "0"
|
|
300
295
|
} : void 0,
|
|
301
296
|
e.$slots.extras ? {
|
|
302
297
|
name: "extras",
|
|
303
298
|
fn: r(() => [
|
|
304
|
-
|
|
299
|
+
v(e.$slots, "extras")
|
|
305
300
|
]),
|
|
306
301
|
key: "1"
|
|
307
302
|
} : void 0
|
|
308
303
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "data-loading", "aria-expanded", "aria-activedescendant", "size"]),
|
|
309
|
-
|
|
304
|
+
x(c(he), {
|
|
310
305
|
modelValue: i.value,
|
|
311
306
|
"onUpdate:modelValue": o[2] || (o[2] = (n) => i.value = n),
|
|
312
307
|
spy: "",
|
|
@@ -315,8 +310,8 @@ const Ie = ["data-key"], we = {
|
|
|
315
310
|
placement: "bottom-start",
|
|
316
311
|
width: "anchor",
|
|
317
312
|
offset: 4,
|
|
318
|
-
anchor: (a =
|
|
319
|
-
onEnter:
|
|
313
|
+
anchor: (a = f.value) == null ? void 0 : a.$el,
|
|
314
|
+
onEnter: se,
|
|
320
315
|
onLeave: de
|
|
321
316
|
}, {
|
|
322
317
|
default: r(() => {
|
|
@@ -324,19 +319,19 @@ const Ie = ["data-key"], we = {
|
|
|
324
319
|
return [
|
|
325
320
|
pe("div", {
|
|
326
321
|
ref_key: "contentRef",
|
|
327
|
-
ref:
|
|
322
|
+
ref: $,
|
|
328
323
|
class: "q-select__body",
|
|
329
324
|
"data-testid": "combobox-dropdown",
|
|
330
325
|
"data-key": l.id,
|
|
331
326
|
onFocusout: U
|
|
332
327
|
}, [
|
|
333
|
-
|
|
334
|
-
l.loading ? (y(),
|
|
335
|
-
|
|
336
|
-
])) : p.value.length ? (y(),
|
|
328
|
+
v(e.$slots, "body.prepend"),
|
|
329
|
+
l.loading ? (y(), _("div", we, [
|
|
330
|
+
x(c(ge), { size: 24 })
|
|
331
|
+
])) : p.value.length ? (y(), C(c(ye), {
|
|
337
332
|
key: 1,
|
|
338
333
|
ref_key: "listRef",
|
|
339
|
-
ref:
|
|
334
|
+
ref: s,
|
|
340
335
|
class: "q-select__items",
|
|
341
336
|
modelValue: d.value,
|
|
342
337
|
"onUpdate:modelValue": [
|
|
@@ -348,22 +343,22 @@ const Ie = ["data-key"], we = {
|
|
|
348
343
|
groups: e.groups,
|
|
349
344
|
"item-label": l.itemLabel,
|
|
350
345
|
"item-value": l.itemValue,
|
|
351
|
-
onMouseup:
|
|
346
|
+
onMouseup: ue
|
|
352
347
|
}, {
|
|
353
348
|
item: r(({ item: b }) => [
|
|
354
|
-
|
|
349
|
+
v(e.$slots, "item", { item: b })
|
|
355
350
|
]),
|
|
356
351
|
_: 3
|
|
357
352
|
/* FORWARDED */
|
|
358
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (y(),
|
|
353
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (y(), _(
|
|
359
354
|
"div",
|
|
360
|
-
|
|
355
|
+
xe,
|
|
361
356
|
be(e.texts.noData),
|
|
362
357
|
1
|
|
363
358
|
/* TEXT */
|
|
364
359
|
)),
|
|
365
|
-
|
|
366
|
-
], 40,
|
|
360
|
+
v(e.$slots, "body.append")
|
|
361
|
+
], 40, ke)
|
|
367
362
|
];
|
|
368
363
|
}),
|
|
369
364
|
_: 3
|
|
@@ -377,5 +372,5 @@ const Ie = ["data-key"], we = {
|
|
|
377
372
|
}
|
|
378
373
|
});
|
|
379
374
|
export {
|
|
380
|
-
|
|
375
|
+
Se as default
|
|
381
376
|
};
|