@quidgest/ui 0.16.38 → 0.16.40
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/json/api.json +2459 -516
- package/dist/manifest/components.json +1 -0
- package/dist/ui.css +121 -2
- package/dist/ui.esm.js +3673 -3643
- package/dist/ui.js +7 -7
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +138 -135
- package/dist/ui.scss +127 -3
- package/esm/components/QBadge/QBadge.d.ts.map +1 -1
- package/esm/components/QBadge/QBadge.vue.js +22 -19
- package/esm/components/QBadge/types.d.ts +6 -0
- package/esm/components/QBadge/types.d.ts.map +1 -1
- package/esm/components/QGrid/QCol.d.ts.map +1 -1
- package/esm/components/QGrid/QCol.vue.js +12 -9
- package/esm/components/QGroupBox/QGroupBox.d.ts +21 -0
- package/esm/components/QGroupBox/QGroupBox.d.ts.map +1 -0
- package/esm/components/QGroupBox/QGroupBox.vue.js +44 -0
- package/esm/components/QGroupBox/QGroupBox.vue2.js +4 -0
- package/esm/components/QGroupBox/index.d.ts +26 -0
- package/esm/components/QGroupBox/index.d.ts.map +1 -0
- package/esm/components/QGroupBox/index.js +6 -0
- package/esm/components/QGroupBox/types.d.ts +32 -0
- package/esm/components/QGroupBox/types.d.ts.map +1 -0
- package/esm/components/QList/QList.d.ts.map +1 -1
- package/esm/components/QList/QList.vue.js +3 -7
- package/esm/components/QSelect/QSelect.d.ts +2 -0
- package/esm/components/QSelect/QSelect.d.ts.map +1 -1
- package/esm/components/QSelect/QSelect.vue.js +163 -169
- package/esm/components/QSelect/index.d.ts +1 -0
- package/esm/components/QSelect/index.d.ts.map +1 -1
- package/esm/components/index.d.ts +1 -0
- package/esm/components/index.d.ts.map +1 -1
- package/esm/components/index.js +70 -68
- package/esm/composables/useGroup/index.js +17 -17
- package/esm/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { DEFAULT_TEXTS as
|
|
3
|
-
import { QBadge as
|
|
4
|
-
import { QButton as
|
|
5
|
-
import { QField as
|
|
6
|
-
import { QIcon as
|
|
7
|
-
import { QList as
|
|
8
|
-
import { QOverlay as
|
|
9
|
-
import { QSpinnerLoader as
|
|
10
|
-
import { QChevron as
|
|
11
|
-
import { QClearButton as
|
|
12
|
-
import { useId as
|
|
13
|
-
import { useGroup as
|
|
14
|
-
const
|
|
1
|
+
import { defineComponent as ce, mergeModels as Z, useModel as fe, toRef as z, ref as ee, useTemplateRef as _, onMounted as me, computed as q, nextTick as O, watch as D, createElementBlock as c, openBlock as a, Fragment as b, createVNode as T, unref as o, normalizeClass as pe, createSlots as ve, withCtx as f, withDirectives as ye, createBlock as m, createCommentVNode as p, renderList as le, createTextVNode as w, mergeProps as B, toDisplayString as g, normalizeProps as te, createElementVNode as ae, vModelText as be, renderSlot as h, withModifiers as ge } from "vue";
|
|
2
|
+
import { DEFAULT_TEXTS as he, DEFAULT_ICONS as ke } from "./constants.js";
|
|
3
|
+
import { QBadge as M } from "../QBadge/index.js";
|
|
4
|
+
import { QButton as _e } from "../QButton/index.js";
|
|
5
|
+
import { QField as qe } from "../QField/index.js";
|
|
6
|
+
import { QIcon as Q } from "../QIcon/index.js";
|
|
7
|
+
import { QList as we } from "../QList/index.js";
|
|
8
|
+
import { QOverlay as Be } from "../QOverlay/index.js";
|
|
9
|
+
import { QSpinnerLoader as Ce } from "../QSpinnerLoader/index.js";
|
|
10
|
+
import { QChevron as Ve } from "../__internal__/QChevron/index.js";
|
|
11
|
+
import { QClearButton as Le } from "../__internal__/QClearButton/index.js";
|
|
12
|
+
import { useId as Ee } from "../../composables/uid.js";
|
|
13
|
+
import { useGroup as $e } from "../../composables/useGroup/index.js";
|
|
14
|
+
const De = {
|
|
15
15
|
key: 0,
|
|
16
16
|
ref: "badgesContainer",
|
|
17
17
|
class: "q-select__badge-container"
|
|
18
|
-
},
|
|
18
|
+
}, Te = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "q-select__value"
|
|
21
|
-
},
|
|
21
|
+
}, Me = {
|
|
22
22
|
key: 1,
|
|
23
23
|
class: "q-select__placeholder"
|
|
24
|
-
},
|
|
24
|
+
}, Qe = ["id", "tabindex", "aria-keyshortcuts"], Re = ["data-key"], Se = {
|
|
25
25
|
key: 0,
|
|
26
26
|
class: "q-select__loader"
|
|
27
|
-
},
|
|
27
|
+
}, Ge = /* @__PURE__ */ ce({
|
|
28
28
|
inheritAttrs: !1,
|
|
29
29
|
__name: "QSelect",
|
|
30
|
-
props: /* @__PURE__ */
|
|
30
|
+
props: /* @__PURE__ */ Z({
|
|
31
31
|
id: {},
|
|
32
32
|
class: {},
|
|
33
33
|
label: {},
|
|
@@ -47,125 +47,119 @@ const Ee = {
|
|
|
47
47
|
emptyValue: {},
|
|
48
48
|
itemValue: { default: "key" },
|
|
49
49
|
itemLabel: { default: "label" },
|
|
50
|
-
icons: { default: () =>
|
|
51
|
-
texts: { default: () =>
|
|
50
|
+
icons: { default: () => ke },
|
|
51
|
+
texts: { default: () => he }
|
|
52
52
|
}, {
|
|
53
53
|
modelValue: {},
|
|
54
54
|
modelModifiers: {}
|
|
55
55
|
}),
|
|
56
|
-
emits: /* @__PURE__ */
|
|
57
|
-
setup(
|
|
58
|
-
const e =
|
|
59
|
-
active:
|
|
60
|
-
required:
|
|
61
|
-
multiple:
|
|
62
|
-
}), d =
|
|
63
|
-
|
|
56
|
+
emits: /* @__PURE__ */ Z(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
57
|
+
setup(F, { emit: oe }) {
|
|
58
|
+
const e = F, C = oe, s = fe(F, "modelValue"), R = Ee(z(e, "id")), { active: K } = $e({
|
|
59
|
+
active: s,
|
|
60
|
+
required: z(e, "required"),
|
|
61
|
+
multiple: z(e, "multiple")
|
|
62
|
+
}), d = ee(!1), V = ee(0), S = _("trigger"), ne = _("list"), U = _("content"), N = _("badgesContainer"), W = _("allBadges");
|
|
63
|
+
me($);
|
|
64
|
+
const P = q(() => r.value.length === 0), r = q(() => {
|
|
65
|
+
var t;
|
|
64
66
|
if (e.multiple)
|
|
65
|
-
return ((
|
|
66
|
-
const l = typeof
|
|
67
|
+
return ((t = s.value) == null ? void 0 : t.map((u) => j(u))) ?? [];
|
|
68
|
+
const l = typeof s.value < "u" ? j(s.value) : void 0;
|
|
67
69
|
return l ? [l] : [];
|
|
68
|
-
}),
|
|
70
|
+
}), H = q(() => {
|
|
71
|
+
var t;
|
|
72
|
+
const l = /* @__PURE__ */ new Map();
|
|
73
|
+
return (t = e.items) == null || t.forEach((u, n) => {
|
|
74
|
+
l.set(u.key, n);
|
|
75
|
+
}), l;
|
|
76
|
+
}), A = q(
|
|
69
77
|
() => {
|
|
70
78
|
var l;
|
|
71
|
-
return (l =
|
|
79
|
+
return (l = r.value) == null ? void 0 : l.map((t) => t[e.itemLabel]).join(", ");
|
|
72
80
|
}
|
|
73
|
-
), k =
|
|
74
|
-
() => e.clearable && !e.readonly && !e.disabled && !e.loading && !
|
|
81
|
+
), k = q(
|
|
82
|
+
() => e.clearable && !e.readonly && !e.disabled && !e.loading && !P.value
|
|
75
83
|
);
|
|
76
|
-
function
|
|
77
|
-
var
|
|
78
|
-
return (
|
|
84
|
+
function j(l) {
|
|
85
|
+
var t;
|
|
86
|
+
return (t = e.items) == null ? void 0 : t.find((u) => u[e.itemValue] === l);
|
|
79
87
|
}
|
|
80
|
-
function
|
|
81
|
-
e.multiple &&
|
|
88
|
+
function ie(l) {
|
|
89
|
+
e.multiple && l < s.value.length && (!e.required || s.value.length > 1) ? K.value = s.value.toSpliced(l, 1) : L();
|
|
82
90
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
91
|
+
function I(l) {
|
|
92
|
+
Array.isArray(l) ? (s.value = l.sort((t, u) => H.value.get(t) - H.value.get(u)), $()) : (s.value = l, E());
|
|
85
93
|
}
|
|
86
|
-
function
|
|
87
|
-
k.value && (
|
|
94
|
+
function L() {
|
|
95
|
+
k.value && (I(e.emptyValue), J());
|
|
88
96
|
}
|
|
89
|
-
function
|
|
90
|
-
var
|
|
91
|
-
!((
|
|
97
|
+
function re(l) {
|
|
98
|
+
var t, u, n;
|
|
99
|
+
!((t = U.value) != null && t.contains(l.relatedTarget)) && !((n = (u = S.value) == null ? void 0 : u.fieldRef) != null && n.contains(l.relatedTarget)) && E();
|
|
92
100
|
}
|
|
93
|
-
function
|
|
94
|
-
d.value || (
|
|
101
|
+
function G() {
|
|
102
|
+
d.value || (C("before-show"), d.value = !0);
|
|
95
103
|
}
|
|
96
|
-
function
|
|
97
|
-
d.value && (
|
|
104
|
+
function E() {
|
|
105
|
+
d.value && (C("before-hide"), d.value = !1);
|
|
98
106
|
}
|
|
99
|
-
function
|
|
100
|
-
e.readonly || e.disabled || (d.value ?
|
|
107
|
+
function X() {
|
|
108
|
+
e.readonly || e.disabled || (d.value ? E() : G());
|
|
101
109
|
}
|
|
102
|
-
function
|
|
103
|
-
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) &&
|
|
110
|
+
function x(l) {
|
|
111
|
+
!l.key || e.readonly || e.disabled || (["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End", "Delete"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " ", "ArrowDown"].includes(l.key) && G(), ["Escape", "Tab"].includes(l.key) && (d.value ? E() : k.value && l.key === "Escape" && L()), k.value && l.key === "Delete" && L());
|
|
104
112
|
}
|
|
105
|
-
function
|
|
106
|
-
l.key.length === 1 && l.preventDefault(),
|
|
113
|
+
function se(l) {
|
|
114
|
+
l.key.length === 1 && l.preventDefault(), x(l);
|
|
107
115
|
}
|
|
108
|
-
function
|
|
116
|
+
function ue() {
|
|
109
117
|
var l;
|
|
110
|
-
e.loading ? (l =
|
|
118
|
+
e.loading ? (l = U.value) == null || l.focus() : Y(), C("show");
|
|
111
119
|
}
|
|
112
|
-
function
|
|
113
|
-
|
|
120
|
+
function de() {
|
|
121
|
+
J(), C("hide");
|
|
114
122
|
}
|
|
115
|
-
function
|
|
116
|
-
var l,
|
|
117
|
-
(
|
|
123
|
+
function J() {
|
|
124
|
+
var l, t;
|
|
125
|
+
(t = (l = S.value) == null ? void 0 : l.fieldRef) == null || t.focus();
|
|
118
126
|
}
|
|
119
|
-
function
|
|
127
|
+
function Y() {
|
|
120
128
|
var l;
|
|
121
|
-
(l =
|
|
129
|
+
(l = ne.value) == null || l.$el.focus();
|
|
122
130
|
}
|
|
123
|
-
async function
|
|
124
|
-
var
|
|
125
|
-
if (await
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
for (const y of
|
|
130
|
-
const v = y.$el.scrollWidth +
|
|
131
|
-
if (
|
|
132
|
-
|
|
131
|
+
async function $() {
|
|
132
|
+
var i;
|
|
133
|
+
if (await O(), !e.multiple || !e.badges || !N.value) return;
|
|
134
|
+
let l = 0, t = 0;
|
|
135
|
+
await O();
|
|
136
|
+
const u = N.value.offsetWidth, n = 4;
|
|
137
|
+
for (const y of W.value ?? []) {
|
|
138
|
+
const v = y.$el.scrollWidth + n;
|
|
139
|
+
if (l + v <= u)
|
|
140
|
+
l += v, t++;
|
|
133
141
|
else break;
|
|
134
142
|
}
|
|
135
|
-
|
|
143
|
+
V.value = (((i = W.value) == null ? void 0 : i.length) ?? 0) - t;
|
|
136
144
|
}
|
|
137
|
-
return
|
|
145
|
+
return D(
|
|
138
146
|
() => e.loading,
|
|
139
147
|
(l) => {
|
|
140
|
-
!l && d.value &&
|
|
148
|
+
!l && d.value && O(Y);
|
|
141
149
|
}
|
|
142
|
-
),
|
|
143
|
-
te,
|
|
144
|
-
(l) => {
|
|
145
|
-
var a;
|
|
146
|
-
if (r.value = l, Array.isArray(r.value)) {
|
|
147
|
-
const u = /* @__PURE__ */ new Map();
|
|
148
|
-
(a = e.items) == null || a.forEach((n, o) => {
|
|
149
|
-
u.set(n.key, o);
|
|
150
|
-
}), r.value = i(
|
|
151
|
-
r.value.sort((n, o) => u.get(n) - u.get(o))
|
|
152
|
-
), M();
|
|
153
|
-
}
|
|
154
|
-
},
|
|
155
|
-
{ deep: !0 }
|
|
156
|
-
), (l, a) => {
|
|
150
|
+
), D(() => e.badges, $), D(() => e.clearable, $), D(K, I), (l, t) => {
|
|
157
151
|
var u;
|
|
158
|
-
return
|
|
152
|
+
return a(), c(
|
|
159
153
|
b,
|
|
160
154
|
null,
|
|
161
155
|
[
|
|
162
|
-
|
|
163
|
-
id:
|
|
156
|
+
T(o(qe), {
|
|
157
|
+
id: o(R),
|
|
164
158
|
ref: "trigger",
|
|
165
159
|
label: e.label,
|
|
166
160
|
required: e.required,
|
|
167
161
|
role: "combobox",
|
|
168
|
-
class:
|
|
162
|
+
class: pe([
|
|
169
163
|
"q-select",
|
|
170
164
|
{
|
|
171
165
|
"q-select--readonly": e.readonly,
|
|
@@ -180,18 +174,18 @@ const Ee = {
|
|
|
180
174
|
"aria-haspopup": "listbox",
|
|
181
175
|
size: e.size,
|
|
182
176
|
invalid: e.invalid,
|
|
183
|
-
onClick:
|
|
184
|
-
onKeydown:
|
|
185
|
-
},
|
|
177
|
+
onClick: X,
|
|
178
|
+
onKeydown: x
|
|
179
|
+
}, ve({
|
|
186
180
|
append: f(() => [
|
|
187
181
|
h(l.$slots, "append"),
|
|
188
|
-
k.value ? (
|
|
182
|
+
k.value ? (a(), m(o(Le), {
|
|
189
183
|
key: 0,
|
|
190
184
|
icons: e.icons,
|
|
191
185
|
texts: e.texts,
|
|
192
|
-
onClick:
|
|
186
|
+
onClick: L
|
|
193
187
|
}, null, 8, ["icons", "texts"])) : p("v-if", !0),
|
|
194
|
-
e.readonly ? p("v-if", !0) : (
|
|
188
|
+
e.readonly ? p("v-if", !0) : (a(), m(o(_e), {
|
|
195
189
|
key: 1,
|
|
196
190
|
class: "q-select__chevron",
|
|
197
191
|
"aria-label": e.texts.showOptions,
|
|
@@ -200,10 +194,10 @@ const Ee = {
|
|
|
200
194
|
borderless: "",
|
|
201
195
|
tabindex: "-1",
|
|
202
196
|
disabled: e.disabled,
|
|
203
|
-
onClick:
|
|
197
|
+
onClick: X
|
|
204
198
|
}, {
|
|
205
199
|
default: f(() => [
|
|
206
|
-
|
|
200
|
+
T(o(Ve), {
|
|
207
201
|
"model-value": d.value,
|
|
208
202
|
icons: e.icons
|
|
209
203
|
}, null, 8, ["model-value", "icons"])
|
|
@@ -213,8 +207,8 @@ const Ee = {
|
|
|
213
207
|
}, 8, ["aria-label", "disabled"]))
|
|
214
208
|
]),
|
|
215
209
|
default: f(() => [
|
|
216
|
-
|
|
217
|
-
!e.readonly && !e.disabled ? (
|
|
210
|
+
P.value ? (a(), c("span", Me, [
|
|
211
|
+
!e.readonly && !e.disabled ? (a(), c(
|
|
218
212
|
b,
|
|
219
213
|
{ key: 0 },
|
|
220
214
|
[
|
|
@@ -227,46 +221,46 @@ const Ee = {
|
|
|
227
221
|
64
|
|
228
222
|
/* STABLE_FRAGMENT */
|
|
229
223
|
)) : p("v-if", !0)
|
|
230
|
-
])) : (
|
|
224
|
+
])) : (a(), c(
|
|
231
225
|
b,
|
|
232
226
|
{ key: 0 },
|
|
233
227
|
[
|
|
234
|
-
e.badges ? (
|
|
228
|
+
e.badges ? (a(), c(
|
|
235
229
|
"span",
|
|
236
|
-
|
|
230
|
+
De,
|
|
237
231
|
[
|
|
238
|
-
e.multiple ? (
|
|
232
|
+
e.multiple ? (a(), c(
|
|
239
233
|
b,
|
|
240
234
|
{ key: 0 },
|
|
241
235
|
[
|
|
242
|
-
(
|
|
236
|
+
(a(!0), c(
|
|
243
237
|
b,
|
|
244
238
|
null,
|
|
245
|
-
|
|
239
|
+
le(s.value, (n, i) => (a(), c(
|
|
246
240
|
b,
|
|
247
|
-
{ key:
|
|
241
|
+
{ key: i },
|
|
248
242
|
[
|
|
249
|
-
|
|
243
|
+
i < s.value.length - V.value ? (a(), m(o(M), {
|
|
250
244
|
key: 0,
|
|
251
245
|
pill: "",
|
|
252
|
-
removable: !e.readonly && !e.disabled && (e.
|
|
253
|
-
"onClick:remove": () =>
|
|
246
|
+
removable: !e.readonly && !e.disabled && (!e.required || s.value.length > 1),
|
|
247
|
+
"onClick:remove": () => ie(i)
|
|
254
248
|
}, {
|
|
255
249
|
default: f(() => {
|
|
256
250
|
var y, v;
|
|
257
251
|
return [
|
|
258
|
-
(y =
|
|
259
|
-
|
|
260
|
-
|
|
252
|
+
(y = r.value[i]) != null && y.icon ? (a(), m(
|
|
253
|
+
o(Q),
|
|
254
|
+
B({
|
|
261
255
|
key: 0,
|
|
262
256
|
ref_for: !0
|
|
263
|
-
},
|
|
257
|
+
}, r.value[i].icon),
|
|
264
258
|
null,
|
|
265
259
|
16
|
|
266
260
|
/* FULL_PROPS */
|
|
267
261
|
)) : p("v-if", !0),
|
|
268
262
|
w(
|
|
269
|
-
" " + g((v =
|
|
263
|
+
" " + g((v = r.value[i]) == null ? void 0 : v[e.itemLabel]),
|
|
270
264
|
1
|
|
271
265
|
/* TEXT */
|
|
272
266
|
)
|
|
@@ -282,14 +276,14 @@ const Ee = {
|
|
|
282
276
|
128
|
|
283
277
|
/* KEYED_FRAGMENT */
|
|
284
278
|
)),
|
|
285
|
-
|
|
279
|
+
V.value > 0 ? (a(), m(o(M), {
|
|
286
280
|
key: 0,
|
|
287
281
|
pill: "",
|
|
288
282
|
class: "q-select__badge-count"
|
|
289
283
|
}, {
|
|
290
284
|
default: f(() => [
|
|
291
285
|
w(
|
|
292
|
-
" +" + g(
|
|
286
|
+
" +" + g(V.value),
|
|
293
287
|
1
|
|
294
288
|
/* TEXT */
|
|
295
289
|
)
|
|
@@ -297,32 +291,32 @@ const Ee = {
|
|
|
297
291
|
_: 1
|
|
298
292
|
/* STABLE */
|
|
299
293
|
})) : p("v-if", !0),
|
|
300
|
-
(
|
|
294
|
+
(a(!0), c(
|
|
301
295
|
b,
|
|
302
296
|
null,
|
|
303
|
-
|
|
304
|
-
key:
|
|
297
|
+
le(s.value, (n, i) => (a(), m(o(M), {
|
|
298
|
+
key: i,
|
|
305
299
|
ref_for: !0,
|
|
306
300
|
ref: "allBadges",
|
|
307
301
|
pill: "",
|
|
308
302
|
class: "q-select__badge-hidden",
|
|
309
|
-
removable: !e.readonly && !e.disabled && (e.
|
|
303
|
+
removable: !e.readonly && !e.disabled && (!e.required || s.value.length > 1)
|
|
310
304
|
}, {
|
|
311
305
|
default: f(() => {
|
|
312
306
|
var y, v;
|
|
313
307
|
return [
|
|
314
|
-
(y =
|
|
315
|
-
|
|
316
|
-
|
|
308
|
+
(y = r.value[i]) != null && y.icon ? (a(), m(
|
|
309
|
+
o(Q),
|
|
310
|
+
B({
|
|
317
311
|
key: 0,
|
|
318
312
|
ref_for: !0
|
|
319
|
-
},
|
|
313
|
+
}, r.value[i].icon),
|
|
320
314
|
null,
|
|
321
315
|
16
|
|
322
316
|
/* FULL_PROPS */
|
|
323
317
|
)) : p("v-if", !0),
|
|
324
318
|
w(
|
|
325
|
-
" " + g((v =
|
|
319
|
+
" " + g((v = r.value[i]) == null ? void 0 : v[e.itemLabel]),
|
|
326
320
|
1
|
|
327
321
|
/* TEXT */
|
|
328
322
|
)
|
|
@@ -337,22 +331,22 @@ const Ee = {
|
|
|
337
331
|
],
|
|
338
332
|
64
|
|
339
333
|
/* STABLE_FRAGMENT */
|
|
340
|
-
)) : (
|
|
334
|
+
)) : (a(), m(o(M), {
|
|
341
335
|
key: 1,
|
|
342
336
|
pill: ""
|
|
343
337
|
}, {
|
|
344
338
|
default: f(() => {
|
|
345
|
-
var n,
|
|
339
|
+
var n, i;
|
|
346
340
|
return [
|
|
347
|
-
(n =
|
|
348
|
-
|
|
349
|
-
|
|
341
|
+
(n = r.value[0]) != null && n.icon ? (a(), m(
|
|
342
|
+
o(Q),
|
|
343
|
+
te(B({ key: 0 }, r.value[0].icon)),
|
|
350
344
|
null,
|
|
351
345
|
16
|
|
352
346
|
/* FULL_PROPS */
|
|
353
347
|
)) : p("v-if", !0),
|
|
354
348
|
w(
|
|
355
|
-
" " + g((
|
|
349
|
+
" " + g((i = r.value[0]) == null ? void 0 : i[e.itemLabel]),
|
|
356
350
|
1
|
|
357
351
|
/* TEXT */
|
|
358
352
|
)
|
|
@@ -364,10 +358,10 @@ const Ee = {
|
|
|
364
358
|
],
|
|
365
359
|
512
|
|
366
360
|
/* NEED_PATCH */
|
|
367
|
-
)) : (
|
|
361
|
+
)) : (a(), c(
|
|
368
362
|
"span",
|
|
369
|
-
|
|
370
|
-
g(
|
|
363
|
+
Te,
|
|
364
|
+
g(A.value),
|
|
371
365
|
1
|
|
372
366
|
/* TEXT */
|
|
373
367
|
))
|
|
@@ -375,31 +369,31 @@ const Ee = {
|
|
|
375
369
|
64
|
|
376
370
|
/* STABLE_FRAGMENT */
|
|
377
371
|
)),
|
|
378
|
-
|
|
379
|
-
id: `${
|
|
372
|
+
ye(ae("input", B({
|
|
373
|
+
id: `${o(R)}_input`
|
|
380
374
|
}, l.$attrs, {
|
|
381
|
-
"onUpdate:modelValue":
|
|
375
|
+
"onUpdate:modelValue": t[0] || (t[0] = (n) => A.value = n),
|
|
382
376
|
class: "q-select__input",
|
|
383
377
|
inputmode: "none",
|
|
384
378
|
type: "text",
|
|
385
379
|
autocomplete: "off",
|
|
386
380
|
tabindex: e.disabled ? -1 : 0,
|
|
387
381
|
"aria-keyshortcuts": k.value ? "Delete" : void 0,
|
|
388
|
-
onKeydown:
|
|
389
|
-
}), null, 16,
|
|
390
|
-
[
|
|
382
|
+
onKeydown: se
|
|
383
|
+
}), null, 16, Qe), [
|
|
384
|
+
[be, A.value]
|
|
391
385
|
])
|
|
392
386
|
]),
|
|
393
387
|
_: 2
|
|
394
388
|
/* DYNAMIC */
|
|
395
389
|
}, [
|
|
396
|
-
|
|
390
|
+
r.value.length === 1 && r.value[0].icon && !e.badges || l.$slots.prepend ? {
|
|
397
391
|
name: "prepend",
|
|
398
392
|
fn: f(() => [
|
|
399
393
|
h(l.$slots, "prepend"),
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
394
|
+
r.value.length === 1 && r.value[0].icon && !e.badges ? (a(), m(
|
|
395
|
+
o(Q),
|
|
396
|
+
te(B({ key: 0 }, r.value[0].icon)),
|
|
403
397
|
null,
|
|
404
398
|
16
|
|
405
399
|
/* FULL_PROPS */
|
|
@@ -415,46 +409,46 @@ const Ee = {
|
|
|
415
409
|
key: "1"
|
|
416
410
|
} : void 0
|
|
417
411
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "data-loading", "aria-expanded", "size", "invalid"]),
|
|
418
|
-
|
|
412
|
+
T(o(Be), {
|
|
419
413
|
modelValue: d.value,
|
|
420
|
-
"onUpdate:modelValue":
|
|
414
|
+
"onUpdate:modelValue": t[1] || (t[1] = (n) => d.value = n),
|
|
421
415
|
spy: "",
|
|
422
416
|
trigger: "manual",
|
|
423
417
|
placement: "bottom-start",
|
|
424
418
|
width: "anchor",
|
|
425
419
|
"scroll-lock": "",
|
|
426
420
|
inline: e.inline,
|
|
427
|
-
anchor: (u =
|
|
421
|
+
anchor: (u = o(S)) == null ? void 0 : u.fieldRef,
|
|
428
422
|
offset: 2,
|
|
429
|
-
onEnter:
|
|
430
|
-
onLeave:
|
|
423
|
+
onEnter: ue,
|
|
424
|
+
onLeave: de
|
|
431
425
|
}, {
|
|
432
426
|
default: f(() => [
|
|
433
|
-
|
|
427
|
+
ae("div", {
|
|
434
428
|
ref: "content",
|
|
435
429
|
"data-testid": "combobox-dropdown",
|
|
436
|
-
"data-key":
|
|
430
|
+
"data-key": o(R),
|
|
437
431
|
class: "q-select__body",
|
|
438
432
|
tabindex: "-1",
|
|
439
|
-
onFocusout:
|
|
440
|
-
onKeydown:
|
|
433
|
+
onFocusout: re,
|
|
434
|
+
onKeydown: ge(x, ["stop"])
|
|
441
435
|
}, [
|
|
442
436
|
h(l.$slots, "body.prepend"),
|
|
443
|
-
e.loading ? (
|
|
444
|
-
|
|
445
|
-
])) : (
|
|
437
|
+
e.loading ? (a(), c("div", Se, [
|
|
438
|
+
T(o(Ce), { size: 24 })
|
|
439
|
+
])) : (a(), m(o(we), {
|
|
446
440
|
key: 1,
|
|
447
441
|
ref: "list",
|
|
448
442
|
class: "q-select__items",
|
|
449
443
|
selectable: "",
|
|
450
444
|
required: e.required,
|
|
451
445
|
multiple: e.multiple,
|
|
452
|
-
"model-value":
|
|
446
|
+
"model-value": s.value,
|
|
453
447
|
items: e.items,
|
|
454
448
|
groups: l.groups,
|
|
455
449
|
"item-label": e.itemLabel,
|
|
456
450
|
"item-value": e.itemValue,
|
|
457
|
-
"onUpdate:modelValue":
|
|
451
|
+
"onUpdate:modelValue": I
|
|
458
452
|
}, {
|
|
459
453
|
item: f(({ item: n }) => [
|
|
460
454
|
h(l.$slots, "item", { item: n })
|
|
@@ -463,7 +457,7 @@ const Ee = {
|
|
|
463
457
|
/* FORWARDED */
|
|
464
458
|
}, 8, ["required", "multiple", "model-value", "items", "groups", "item-label", "item-value"])),
|
|
465
459
|
h(l.$slots, "body.append")
|
|
466
|
-
], 40,
|
|
460
|
+
], 40, Re)
|
|
467
461
|
]),
|
|
468
462
|
_: 3
|
|
469
463
|
/* FORWARDED */
|
|
@@ -476,5 +470,5 @@ const Ee = {
|
|
|
476
470
|
}
|
|
477
471
|
});
|
|
478
472
|
export {
|
|
479
|
-
|
|
473
|
+
Ge as default
|
|
480
474
|
};
|
|
@@ -124,6 +124,7 @@ declare const QSelect: {
|
|
|
124
124
|
readonly color?: string | undefined;
|
|
125
125
|
readonly pill?: boolean | undefined;
|
|
126
126
|
readonly size?: import('..').QBadgeSize | undefined;
|
|
127
|
+
readonly disabled?: boolean | undefined;
|
|
127
128
|
readonly removable?: boolean | undefined;
|
|
128
129
|
readonly icons?: typeof import('../QBadge/constants').DEFAULT_ICONS | undefined;
|
|
129
130
|
readonly texts?: typeof import('../QBadge/constants').DEFAULT_TEXTS | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO8tzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/QSelect/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAO8tzB,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gDAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAAtH,GAAG,8CAA8C,GAAG,yBAAyB,GAAG,6DAAmC,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAPxzzB,CAAA;AAGzC,OAAO,EAAE,OAAO,EAAE,CAAA;AAGlB,cAAc,SAAS,CAAA"}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