@quidgest/ui 0.9.0 → 0.9.1
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/index.d.ts +3603 -1897
- package/dist/ui.css +2 -1
- package/dist/ui.esm.js +525 -516
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +4 -4
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +15 -14
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +3 -2
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
function
|
|
1
|
+
import { getCurrentInstance as De, computed as w, ref as T, provide as ze, inject as Ce, watch as P, defineComponent as S, openBlock as u, createElementBlock as p, normalizeClass as E, normalizeStyle as pe, createElementVNode as Y, withModifiers as de, createVNode as A, unref as v, createCommentVNode as I, Fragment as ne, createTextVNode as ue, toDisplayString as N, renderSlot as m, toRef as Le, mergeModels as H, useModel as X, createBlock as V, withCtx as _, renderList as ye, resolveDynamicComponent as Qe, h as Se, normalizeProps as oe, mergeProps as se, reactive as He, onBeforeUnmount as Ke, onMounted as Ae, nextTick as U, Teleport as Ge, Transition as We, withKeys as je, createSlots as _e, withDirectives as Pe, vModelDynamic as Xe, guardReactiveProps as ie } from "vue";
|
|
2
|
+
function ge(t) {
|
|
3
3
|
return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function xe(t) {
|
|
6
6
|
return t !== null && typeof t == "object" && !Array.isArray(t);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function ke(t = {}, n = {}) {
|
|
9
9
|
const e = {};
|
|
10
10
|
for (const o in t)
|
|
11
11
|
e[o] = t[o];
|
|
12
12
|
for (const o in n) {
|
|
13
13
|
const a = t[o], r = n[o];
|
|
14
|
-
if (
|
|
15
|
-
e[o] =
|
|
14
|
+
if (xe(a) && xe(r)) {
|
|
15
|
+
e[o] = ke(
|
|
16
16
|
a,
|
|
17
17
|
r
|
|
18
18
|
);
|
|
@@ -22,45 +22,45 @@ function ge(t = {}, n = {}) {
|
|
|
22
22
|
}
|
|
23
23
|
return e;
|
|
24
24
|
}
|
|
25
|
-
const
|
|
26
|
-
function
|
|
25
|
+
const we = "q-defaults";
|
|
26
|
+
function Ye() {
|
|
27
27
|
var r, d;
|
|
28
|
-
const t =
|
|
28
|
+
const t = De();
|
|
29
29
|
if (!t)
|
|
30
30
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
31
31
|
const n = t.type.name ?? t.type.__name;
|
|
32
32
|
if (!n)
|
|
33
33
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
34
|
-
const e =
|
|
35
|
-
return w(() =>
|
|
34
|
+
const e = Me(), o = (r = e.value) == null ? void 0 : r.Global, a = (d = e.value) == null ? void 0 : d[n];
|
|
35
|
+
return w(() => ke(o, a));
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
if (
|
|
37
|
+
function Fe(t) {
|
|
38
|
+
if (ge(t))
|
|
39
39
|
return;
|
|
40
|
-
const n =
|
|
41
|
-
|
|
40
|
+
const n = Me(), e = T(t), o = w(() => ge(e.value) ? n.value : ke(n.value, e.value));
|
|
41
|
+
ze(we, o);
|
|
42
42
|
}
|
|
43
|
-
function
|
|
44
|
-
const t =
|
|
43
|
+
function Me() {
|
|
44
|
+
const t = Ce(we, void 0);
|
|
45
45
|
if (!t)
|
|
46
46
|
throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
47
47
|
return t;
|
|
48
48
|
}
|
|
49
|
-
const
|
|
50
|
-
function
|
|
51
|
-
const t =
|
|
49
|
+
const ce = "q-theme";
|
|
50
|
+
function Ze() {
|
|
51
|
+
const t = Ce(ce);
|
|
52
52
|
if (!t)
|
|
53
53
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
54
54
|
return t;
|
|
55
55
|
}
|
|
56
56
|
function xn(t) {
|
|
57
|
-
const n =
|
|
57
|
+
const n = Ze(), e = {
|
|
58
58
|
activeTheme: T(t),
|
|
59
59
|
themes: n.themes
|
|
60
60
|
};
|
|
61
|
-
return
|
|
61
|
+
return ze(ce, e), e;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const Be = {
|
|
64
64
|
primary: "#008ad2",
|
|
65
65
|
primaryLight: "#cde5ff",
|
|
66
66
|
primaryDark: "#006398",
|
|
@@ -91,7 +91,7 @@ const xe = {
|
|
|
91
91
|
onWarning: "#fff",
|
|
92
92
|
onDanger: "#fff",
|
|
93
93
|
onInfo: "#fff"
|
|
94
|
-
},
|
|
94
|
+
}, Je = {
|
|
95
95
|
primary: "#009ff5",
|
|
96
96
|
primaryLight: "#ade2ff",
|
|
97
97
|
primaryDark: "#164965",
|
|
@@ -123,26 +123,26 @@ const xe = {
|
|
|
123
123
|
onDanger: "#fff",
|
|
124
124
|
onInfo: "#fff"
|
|
125
125
|
};
|
|
126
|
-
function
|
|
126
|
+
function et(t) {
|
|
127
127
|
return /^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/.test(t);
|
|
128
128
|
}
|
|
129
|
-
function
|
|
130
|
-
if (!
|
|
129
|
+
function tt(t) {
|
|
130
|
+
if (!et(t))
|
|
131
131
|
throw new Error("Invalid color format");
|
|
132
132
|
t.length === 4 && (t = "#" + t[1] + t[1] + t[2] + t[2] + t[3] + t[3]);
|
|
133
133
|
const n = parseInt(t.slice(1, 3), 16), e = parseInt(t.slice(3, 5), 16), o = parseInt(t.slice(5, 7), 16);
|
|
134
134
|
return { r: n, g: e, b: o };
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function Re(t) {
|
|
137
137
|
return t.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/([0-9])([A-Za-z])/g, "$1-$2").replace(/([A-Za-z])([0-9])/g, "$1-$2").toLowerCase();
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function nt() {
|
|
140
140
|
let t = document.getElementById(
|
|
141
|
-
|
|
141
|
+
ce
|
|
142
142
|
);
|
|
143
|
-
return t || (t = document.createElement("style"), t.id =
|
|
143
|
+
return t || (t = document.createElement("style"), t.id = ce, document.head.appendChild(t)), t;
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function ot(t) {
|
|
146
146
|
let n = "";
|
|
147
147
|
for (const o of t) {
|
|
148
148
|
n += `.q-theme--${o.name} {
|
|
@@ -152,21 +152,21 @@ function nt(t) {
|
|
|
152
152
|
for (r in a) {
|
|
153
153
|
const d = a[r];
|
|
154
154
|
if (d) {
|
|
155
|
-
n += ` ${
|
|
155
|
+
n += ` ${Ve(r)}: ${d};
|
|
156
156
|
`;
|
|
157
|
-
const i =
|
|
158
|
-
n += ` ${
|
|
157
|
+
const i = tt(d);
|
|
158
|
+
n += ` ${Ve(r)}-rgb: ${i.r} ${i.g} ${i.b};
|
|
159
159
|
`;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
n += `}
|
|
163
163
|
`;
|
|
164
164
|
}
|
|
165
|
-
const e =
|
|
165
|
+
const e = nt();
|
|
166
166
|
e.textContent = n;
|
|
167
167
|
}
|
|
168
|
-
function
|
|
169
|
-
return t ? `--q-theme-${
|
|
168
|
+
function Ve(t) {
|
|
169
|
+
return t ? `--q-theme-${Re(t)}` : "";
|
|
170
170
|
}
|
|
171
171
|
function Bn(t = {}) {
|
|
172
172
|
return { install: (e) => {
|
|
@@ -174,21 +174,21 @@ function Bn(t = {}) {
|
|
|
174
174
|
for (const r in o)
|
|
175
175
|
e.component(r, o[r]);
|
|
176
176
|
const a = t.defaults || {};
|
|
177
|
-
e.provide(
|
|
177
|
+
e.provide(we, T(a)), lt(e, t.themes);
|
|
178
178
|
} };
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function lt(t, n) {
|
|
181
181
|
const e = [];
|
|
182
182
|
let o;
|
|
183
183
|
if (!n)
|
|
184
184
|
o = "default", e.push({
|
|
185
185
|
name: o,
|
|
186
186
|
mode: "light",
|
|
187
|
-
scheme:
|
|
187
|
+
scheme: Be
|
|
188
188
|
});
|
|
189
189
|
else
|
|
190
190
|
for (const a of n.themes) {
|
|
191
|
-
const d = { ...a.mode === "light" ?
|
|
191
|
+
const d = { ...a.mode === "light" ? Be : Je, ...a.colors };
|
|
192
192
|
e.push({
|
|
193
193
|
name: a.name,
|
|
194
194
|
mode: a.mode,
|
|
@@ -200,14 +200,14 @@ function ot(t, n) {
|
|
|
200
200
|
activeTheme: T(o),
|
|
201
201
|
themes: e
|
|
202
202
|
};
|
|
203
|
-
|
|
203
|
+
ot(e), P(a.activeTheme, at, { immediate: !0 }), t.provide(ce, a);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
|
-
function
|
|
206
|
+
function at(t) {
|
|
207
207
|
const n = document.documentElement, o = Array.from(n.classList).filter((a) => !a.startsWith("q-theme"));
|
|
208
208
|
n.className = o.join(" "), n.classList.add(`q-theme--${t}`);
|
|
209
209
|
}
|
|
210
|
-
const
|
|
210
|
+
const st = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
|
|
211
211
|
/* @__PURE__ */ Y("circle", {
|
|
212
212
|
class: "path",
|
|
213
213
|
cx: "50",
|
|
@@ -218,9 +218,9 @@ const at = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
|
|
|
218
218
|
"stroke-width": "5",
|
|
219
219
|
"stroke-miterlimit": "10"
|
|
220
220
|
})
|
|
221
|
-
], -1),
|
|
222
|
-
|
|
223
|
-
],
|
|
221
|
+
], -1), it = [
|
|
222
|
+
st
|
|
223
|
+
], rt = /* @__PURE__ */ S({
|
|
224
224
|
__name: "QSpinnerLoader",
|
|
225
225
|
props: {
|
|
226
226
|
size: { default: 48 },
|
|
@@ -232,38 +232,38 @@ const at = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
|
|
|
232
232
|
}));
|
|
233
233
|
return (o, a) => (u(), p("div", {
|
|
234
234
|
class: E(["q-spinner-loader", n.class]),
|
|
235
|
-
style:
|
|
236
|
-
},
|
|
235
|
+
style: pe(e.value)
|
|
236
|
+
}, it, 6));
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
|
-
function
|
|
239
|
+
function dt(t, n) {
|
|
240
240
|
var o;
|
|
241
|
-
const e =
|
|
241
|
+
const e = Re(n);
|
|
242
242
|
return e ? typeof ((o = t.props) == null ? void 0 : o[e]) < "u" : !1;
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function B(t) {
|
|
245
245
|
const n = t.setup;
|
|
246
246
|
return n && (t.setup = (e, o) => {
|
|
247
|
-
const a =
|
|
248
|
-
if (
|
|
247
|
+
const a = Ye();
|
|
248
|
+
if (ge(a.value))
|
|
249
249
|
return n(e, o);
|
|
250
|
-
const r =
|
|
250
|
+
const r = De();
|
|
251
251
|
if (r === null)
|
|
252
252
|
return n(e, o);
|
|
253
253
|
const d = new Proxy(e, {
|
|
254
254
|
get(i, c) {
|
|
255
255
|
var g;
|
|
256
256
|
const q = Reflect.get(i, c), k = (g = a.value) == null ? void 0 : g[c];
|
|
257
|
-
return typeof c == "string" && !
|
|
257
|
+
return typeof c == "string" && !dt(r.vnode, c) ? k ?? q : q;
|
|
258
258
|
}
|
|
259
259
|
});
|
|
260
260
|
return n(d, o);
|
|
261
261
|
}), t;
|
|
262
262
|
}
|
|
263
|
-
const
|
|
263
|
+
const $e = B(rt), ut = ["disabled"], ct = {
|
|
264
264
|
key: 0,
|
|
265
265
|
class: "q-btn__spinner"
|
|
266
|
-
},
|
|
266
|
+
}, ft = { class: "q-btn__content" }, pt = /* @__PURE__ */ S({
|
|
267
267
|
__name: "QButton",
|
|
268
268
|
props: {
|
|
269
269
|
active: { type: Boolean },
|
|
@@ -304,23 +304,23 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
304
304
|
type: "button",
|
|
305
305
|
class: E(d.value),
|
|
306
306
|
disabled: a.value,
|
|
307
|
-
onClick:
|
|
307
|
+
onClick: de(r, ["stop", "prevent"])
|
|
308
308
|
}, [
|
|
309
|
-
i.loading ? (u(), p("div",
|
|
310
|
-
A(v(
|
|
311
|
-
])) :
|
|
312
|
-
Y("span",
|
|
313
|
-
i.iconOnRight ? (u(), p(
|
|
314
|
-
|
|
315
|
-
], 64)) :
|
|
309
|
+
i.loading ? (u(), p("div", ct, [
|
|
310
|
+
A(v($e), { size: 20 })
|
|
311
|
+
])) : I("", !0),
|
|
312
|
+
Y("span", ft, [
|
|
313
|
+
i.iconOnRight ? (u(), p(ne, { key: 0 }, [
|
|
314
|
+
ue(N(e.label), 1)
|
|
315
|
+
], 64)) : I("", !0),
|
|
316
316
|
m(i.$slots, "default"),
|
|
317
|
-
i.iconOnRight ?
|
|
318
|
-
|
|
317
|
+
i.iconOnRight ? I("", !0) : (u(), p(ne, { key: 1 }, [
|
|
318
|
+
ue(N(e.label), 1)
|
|
319
319
|
], 64))
|
|
320
320
|
])
|
|
321
|
-
], 10,
|
|
321
|
+
], 10, ut));
|
|
322
322
|
}
|
|
323
|
-
}),
|
|
323
|
+
}), fe = B(pt), mt = /* @__PURE__ */ S({
|
|
324
324
|
__name: "QButtonGroup",
|
|
325
325
|
props: {
|
|
326
326
|
disabled: { type: Boolean },
|
|
@@ -330,11 +330,11 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
330
330
|
},
|
|
331
331
|
setup(t) {
|
|
332
332
|
const n = t;
|
|
333
|
-
return
|
|
333
|
+
return Fe({
|
|
334
334
|
QButton: {
|
|
335
335
|
bStyle: "secondary",
|
|
336
|
-
disabled:
|
|
337
|
-
borderless:
|
|
336
|
+
disabled: Le(n, "disabled"),
|
|
337
|
+
borderless: Le(n, "borderless"),
|
|
338
338
|
elevated: !1
|
|
339
339
|
}
|
|
340
340
|
}), (e, o) => (u(), p("div", {
|
|
@@ -349,9 +349,9 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
349
349
|
m(e.$slots, "default")
|
|
350
350
|
], 2));
|
|
351
351
|
}
|
|
352
|
-
}),
|
|
352
|
+
}), vt = B(mt), ht = /* @__PURE__ */ S({
|
|
353
353
|
__name: "QButtonToggle",
|
|
354
|
-
props: /* @__PURE__ */
|
|
354
|
+
props: /* @__PURE__ */ H({
|
|
355
355
|
options: {},
|
|
356
356
|
disabled: { type: Boolean },
|
|
357
357
|
borderless: { type: Boolean },
|
|
@@ -368,7 +368,7 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
368
368
|
function o(a) {
|
|
369
369
|
e.value === a.key && !n.required ? e.value = void 0 : e.value = a.key;
|
|
370
370
|
}
|
|
371
|
-
return (a, r) => (u(), V(v(
|
|
371
|
+
return (a, r) => (u(), V(v(vt), {
|
|
372
372
|
"b-style": "secondary",
|
|
373
373
|
class: E(n.class),
|
|
374
374
|
disabled: n.disabled,
|
|
@@ -376,7 +376,7 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
376
376
|
elevated: n.elevated
|
|
377
377
|
}, {
|
|
378
378
|
default: _(() => [
|
|
379
|
-
(u(!0), p(
|
|
379
|
+
(u(!0), p(ne, null, ye(n.options, (d) => (u(), V(v(fe), {
|
|
380
380
|
key: d.key,
|
|
381
381
|
title: d.title,
|
|
382
382
|
label: d.label,
|
|
@@ -392,7 +392,7 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
392
392
|
_: 3
|
|
393
393
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
394
394
|
}
|
|
395
|
-
}),
|
|
395
|
+
}), Vn = B(ht), bt = /* @__PURE__ */ S({
|
|
396
396
|
__name: "QIcon",
|
|
397
397
|
props: {
|
|
398
398
|
icon: {},
|
|
@@ -404,22 +404,22 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
404
404
|
const n = t, e = w(() => {
|
|
405
405
|
switch (n.type) {
|
|
406
406
|
case "svg":
|
|
407
|
-
return
|
|
407
|
+
return St;
|
|
408
408
|
case "font":
|
|
409
|
-
return qt;
|
|
410
|
-
case "img":
|
|
411
409
|
return It;
|
|
410
|
+
case "img":
|
|
411
|
+
return Lt;
|
|
412
412
|
default:
|
|
413
413
|
return;
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
|
-
return (o, a) => (u(), V(
|
|
416
|
+
return (o, a) => (u(), V(Qe(e.value), {
|
|
417
417
|
class: E(n.class),
|
|
418
418
|
icon: n.icon,
|
|
419
419
|
size: n.size
|
|
420
420
|
}, null, 8, ["class", "icon", "size"]));
|
|
421
421
|
}
|
|
422
|
-
}),
|
|
422
|
+
}), yt = /* @__PURE__ */ S({
|
|
423
423
|
__name: "QIconFont",
|
|
424
424
|
props: {
|
|
425
425
|
icon: {},
|
|
@@ -434,10 +434,10 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
434
434
|
}));
|
|
435
435
|
return (r, d) => (u(), p("i", {
|
|
436
436
|
class: E(["q-icon", "q-icon__font", e.value, o.value, n.class]),
|
|
437
|
-
style:
|
|
437
|
+
style: pe(a.value)
|
|
438
438
|
}, null, 6));
|
|
439
439
|
}
|
|
440
|
-
}),
|
|
440
|
+
}), gt = ["src"], _t = /* @__PURE__ */ S({
|
|
441
441
|
__name: "QIconImg",
|
|
442
442
|
props: {
|
|
443
443
|
icon: {},
|
|
@@ -451,10 +451,10 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
451
451
|
return (o, a) => (u(), p("img", {
|
|
452
452
|
src: n.icon,
|
|
453
453
|
class: E(["q-icon", "q-icon__img", n.class]),
|
|
454
|
-
style:
|
|
455
|
-
}, null, 14,
|
|
454
|
+
style: pe(e.value)
|
|
455
|
+
}, null, 14, gt));
|
|
456
456
|
}
|
|
457
|
-
}),
|
|
457
|
+
}), re = {}, kt = S({
|
|
458
458
|
name: "InlineSvg",
|
|
459
459
|
emits: {
|
|
460
460
|
loaded: (t) => typeof t == "object",
|
|
@@ -467,9 +467,9 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
467
467
|
return null;
|
|
468
468
|
const t = this.getSvgContent(this.svgElSource);
|
|
469
469
|
if (!t)
|
|
470
|
-
return
|
|
470
|
+
return Se("div", this.$attrs);
|
|
471
471
|
const n = {};
|
|
472
|
-
return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML,
|
|
472
|
+
return this.copySvgAttrs(n, this.svgElSource), this.copySvgAttrs(n, t), this.copyComponentAttrs(n, this.$attrs), n.innerHTML = t.innerHTML, Se("svg", n);
|
|
473
473
|
},
|
|
474
474
|
props: {
|
|
475
475
|
/**
|
|
@@ -531,7 +531,7 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
531
531
|
o !== !1 && o !== null && o !== void 0 && (t[e] = o);
|
|
532
532
|
},
|
|
533
533
|
getSvgContent(t) {
|
|
534
|
-
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)),
|
|
534
|
+
return this.symbol && (t = t.getElementById(this.symbol), !t) ? null : (this.transformSource && (t = t.cloneNode(!0), t = this.transformSource(t)), this.title && (this.transformSource || (t = t.cloneNode(!0)), wt(t, this.title)), t);
|
|
535
535
|
},
|
|
536
536
|
/**
|
|
537
537
|
* Get svgElSource
|
|
@@ -539,11 +539,11 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
539
539
|
*/
|
|
540
540
|
async getSource(t) {
|
|
541
541
|
try {
|
|
542
|
-
|
|
543
|
-
const n = await
|
|
542
|
+
re[t] || (re[t] = $t(this.download(t))), this.svgElSource && re[t].getIsPending() && !this.keepDuringLoading && (this.svgElSource = null, this.$emit("unloaded"));
|
|
543
|
+
const n = await re[t];
|
|
544
544
|
this.svgElSource = n, await this.$nextTick(), this.$emit("loaded", this.$el);
|
|
545
545
|
} catch (n) {
|
|
546
|
-
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete
|
|
546
|
+
this.svgElSource && (this.svgElSource = null, this.$emit("unloaded")), delete re[t], this.$emit("error", n);
|
|
547
547
|
}
|
|
548
548
|
},
|
|
549
549
|
/**
|
|
@@ -568,7 +568,7 @@ const ke = S(it), dt = ["disabled"], ut = {
|
|
|
568
568
|
},
|
|
569
569
|
expose: []
|
|
570
570
|
});
|
|
571
|
-
function
|
|
571
|
+
function wt(t, n) {
|
|
572
572
|
const e = t.getElementsByTagName("title");
|
|
573
573
|
if (e.length)
|
|
574
574
|
e[0].textContent = n;
|
|
@@ -577,7 +577,7 @@ function kt(t, n) {
|
|
|
577
577
|
o.textContent = n, t.insertBefore(o, t.firstChild);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
function
|
|
580
|
+
function $t(t) {
|
|
581
581
|
if (t.getIsPending)
|
|
582
582
|
return t;
|
|
583
583
|
let n = !0;
|
|
@@ -589,7 +589,7 @@ function wt(t) {
|
|
|
589
589
|
);
|
|
590
590
|
return e.getIsPending = () => n, e;
|
|
591
591
|
}
|
|
592
|
-
const
|
|
592
|
+
const qt = /* @__PURE__ */ S({
|
|
593
593
|
__name: "QIconSvg",
|
|
594
594
|
props: {
|
|
595
595
|
icon: {},
|
|
@@ -608,18 +608,18 @@ const $t = /* @__PURE__ */ B({
|
|
|
608
608
|
function d() {
|
|
609
609
|
o("unloaded");
|
|
610
610
|
}
|
|
611
|
-
return (i, c) => (u(), V(v(
|
|
611
|
+
return (i, c) => (u(), V(v(kt), {
|
|
612
612
|
class: E(["q-icon", "q-icon__svg", e.class]),
|
|
613
613
|
src: e.bundle,
|
|
614
614
|
symbol: e.icon,
|
|
615
|
-
style:
|
|
615
|
+
style: pe(a.value),
|
|
616
616
|
onLoaded: r,
|
|
617
617
|
onUnloaded: d
|
|
618
618
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
619
619
|
}
|
|
620
|
-
}),
|
|
620
|
+
}), te = B(bt), It = B(yt), Lt = B(_t), St = B(qt), xt = /* @__PURE__ */ S({
|
|
621
621
|
__name: "QList",
|
|
622
|
-
props: /* @__PURE__ */
|
|
622
|
+
props: /* @__PURE__ */ H({
|
|
623
623
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
624
624
|
items: {},
|
|
625
625
|
groups: { default: () => [] },
|
|
@@ -628,7 +628,9 @@ const $t = /* @__PURE__ */ B({
|
|
|
628
628
|
disabled: { type: Boolean },
|
|
629
629
|
class: { default: void 0 }
|
|
630
630
|
}, {
|
|
631
|
-
modelValue: {
|
|
631
|
+
modelValue: {
|
|
632
|
+
type: [String, Number, Boolean, Symbol]
|
|
633
|
+
},
|
|
632
634
|
modelModifiers: {}
|
|
633
635
|
}),
|
|
634
636
|
emits: ["update:modelValue"],
|
|
@@ -648,7 +650,7 @@ const $t = /* @__PURE__ */ B({
|
|
|
648
650
|
if ((l = i.value) != null && l.contains(f.relatedTarget))
|
|
649
651
|
return;
|
|
650
652
|
let b;
|
|
651
|
-
o.value ? b = e.items.findIndex((h) => h[e.itemValue] === o.value) : b =
|
|
653
|
+
o.value ? b = e.items.findIndex((h) => h[e.itemValue] === o.value) : b = G();
|
|
652
654
|
const $ = a.value;
|
|
653
655
|
z(b, $);
|
|
654
656
|
}
|
|
@@ -672,10 +674,10 @@ const $t = /* @__PURE__ */ B({
|
|
|
672
674
|
switch (f) {
|
|
673
675
|
case "next":
|
|
674
676
|
case "prev":
|
|
675
|
-
z(
|
|
677
|
+
z(W(f));
|
|
676
678
|
break;
|
|
677
679
|
case "first":
|
|
678
|
-
z(
|
|
680
|
+
z(G());
|
|
679
681
|
break;
|
|
680
682
|
case "last":
|
|
681
683
|
z(C());
|
|
@@ -684,36 +686,36 @@ const $t = /* @__PURE__ */ B({
|
|
|
684
686
|
}
|
|
685
687
|
function z(f, b = !1) {
|
|
686
688
|
var l;
|
|
687
|
-
(l =
|
|
689
|
+
(l = L()[f]) == null || l.focus({ preventScroll: b });
|
|
688
690
|
}
|
|
689
|
-
function
|
|
691
|
+
function L() {
|
|
690
692
|
var b;
|
|
691
693
|
const f = (b = i.value) == null ? void 0 : b.querySelectorAll("li");
|
|
692
694
|
return f ? Array.from(f) : [];
|
|
693
695
|
}
|
|
694
|
-
function
|
|
695
|
-
return
|
|
696
|
+
function K(f) {
|
|
697
|
+
return L()[f];
|
|
696
698
|
}
|
|
697
|
-
function
|
|
698
|
-
return
|
|
699
|
+
function le() {
|
|
700
|
+
return L().indexOf(document.activeElement);
|
|
699
701
|
}
|
|
700
|
-
function
|
|
701
|
-
const f =
|
|
702
|
+
function G() {
|
|
703
|
+
const f = L(), b = f.find(($) => Z($));
|
|
702
704
|
return b ? f.indexOf(b) : -1;
|
|
703
705
|
}
|
|
704
706
|
function C() {
|
|
705
|
-
const f =
|
|
707
|
+
const f = L(), b = [...f].reverse().find(($) => Z($));
|
|
706
708
|
return b ? f.indexOf(b) : -1;
|
|
707
709
|
}
|
|
708
710
|
function M(f, b, $) {
|
|
709
711
|
return b === "prev" && f === 0 || b === "next" && f === $.length - 1;
|
|
710
712
|
}
|
|
711
|
-
function
|
|
712
|
-
const b =
|
|
713
|
+
function W(f) {
|
|
714
|
+
const b = le();
|
|
713
715
|
return R(b, f);
|
|
714
716
|
}
|
|
715
717
|
function R(f, b) {
|
|
716
|
-
const $ =
|
|
718
|
+
const $ = L();
|
|
717
719
|
if (M(f, b, $))
|
|
718
720
|
return f;
|
|
719
721
|
let l = f + (b === "next" ? 1 : -1);
|
|
@@ -732,11 +734,11 @@ const $t = /* @__PURE__ */ B({
|
|
|
732
734
|
}
|
|
733
735
|
return n({
|
|
734
736
|
focusItem: z,
|
|
735
|
-
getItem:
|
|
737
|
+
getItem: K,
|
|
736
738
|
getAdjacentItemIndex: R,
|
|
737
|
-
getFirstFocusableItemIndex:
|
|
739
|
+
getFirstFocusableItemIndex: G,
|
|
738
740
|
getLastFocusableItemIndex: C
|
|
739
|
-
}), (f, b) => (u(), V(
|
|
741
|
+
}), (f, b) => (u(), V(Qe(r.value), {
|
|
740
742
|
ref_key: "listRef",
|
|
741
743
|
ref: i,
|
|
742
744
|
class: E(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
@@ -748,13 +750,13 @@ const $t = /* @__PURE__ */ B({
|
|
|
748
750
|
onKeydown: F
|
|
749
751
|
}, {
|
|
750
752
|
default: _(() => [
|
|
751
|
-
(u(!0), p(
|
|
753
|
+
(u(!0), p(ne, null, ye(d.value, ($) => (u(), V(v(Ft), {
|
|
752
754
|
key: $.id,
|
|
753
755
|
title: d.value.length === 1 ? void 0 : $.title,
|
|
754
756
|
disabled: $.disabled
|
|
755
757
|
}, {
|
|
756
758
|
default: _(() => [
|
|
757
|
-
(u(!0), p(
|
|
759
|
+
(u(!0), p(ne, null, ye(J($.id), (l) => (u(), V(v(At), {
|
|
758
760
|
key: l[e.itemValue],
|
|
759
761
|
value: l[e.itemValue],
|
|
760
762
|
label: l[e.itemLabel],
|
|
@@ -778,14 +780,14 @@ const $t = /* @__PURE__ */ B({
|
|
|
778
780
|
}
|
|
779
781
|
});
|
|
780
782
|
let Bt = 0;
|
|
781
|
-
function
|
|
783
|
+
function me(t) {
|
|
782
784
|
return t || `uid-${++Bt}`;
|
|
783
785
|
}
|
|
784
|
-
const
|
|
786
|
+
const Vt = ["id", "tabindex", "aria-label", "aria-selected"], Et = { class: "q-list-item__check-container" }, Tt = {
|
|
785
787
|
check: {
|
|
786
788
|
icon: "check"
|
|
787
789
|
}
|
|
788
|
-
},
|
|
790
|
+
}, Dt = /* @__PURE__ */ S({
|
|
789
791
|
__name: "QListItem",
|
|
790
792
|
props: {
|
|
791
793
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -793,12 +795,12 @@ const St = ["id", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-l
|
|
|
793
795
|
icon: { default: void 0 },
|
|
794
796
|
selected: { type: Boolean },
|
|
795
797
|
highlighted: { type: Boolean },
|
|
796
|
-
icons: { default: () =>
|
|
798
|
+
icons: { default: () => Tt },
|
|
797
799
|
disabled: { type: Boolean }
|
|
798
800
|
},
|
|
799
801
|
emits: ["select"],
|
|
800
802
|
setup(t, { emit: n }) {
|
|
801
|
-
const e = t, o = n, a =
|
|
803
|
+
const e = t, o = n, a = me();
|
|
802
804
|
function r() {
|
|
803
805
|
e.disabled || o("select", e.value);
|
|
804
806
|
}
|
|
@@ -820,25 +822,25 @@ const St = ["id", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-l
|
|
|
820
822
|
"aria-label": e.label,
|
|
821
823
|
"aria-selected": e.disabled ? void 0 : e.selected,
|
|
822
824
|
onKeydown: d,
|
|
823
|
-
onClick:
|
|
825
|
+
onClick: de(r, ["stop", "prevent"])
|
|
824
826
|
}, [
|
|
825
827
|
m(i.$slots, "default", {}, () => [
|
|
826
|
-
e.icon ? (u(), V(v(
|
|
827
|
-
|
|
828
|
+
e.icon ? (u(), V(v(te), oe(se({ key: 0 }, e.icon)), null, 16)) : I("", !0),
|
|
829
|
+
ue(" " + N(e.label), 1)
|
|
828
830
|
]),
|
|
829
|
-
Y("div",
|
|
830
|
-
e.selected ? (u(), V(v(
|
|
831
|
+
Y("div", Et, [
|
|
832
|
+
e.selected ? (u(), V(v(te), se({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
|
|
831
833
|
])
|
|
832
|
-
], 42,
|
|
834
|
+
], 42, Vt));
|
|
833
835
|
}
|
|
834
|
-
}),
|
|
836
|
+
}), zt = ["aria-labelledby"], Ct = ["id"], Qt = /* @__PURE__ */ S({
|
|
835
837
|
__name: "QListItemGroup",
|
|
836
838
|
props: {
|
|
837
839
|
title: { default: "" },
|
|
838
840
|
disabled: { type: Boolean }
|
|
839
841
|
},
|
|
840
842
|
setup(t) {
|
|
841
|
-
const n = t, e =
|
|
843
|
+
const n = t, e = me();
|
|
842
844
|
return (o, a) => (u(), p("ul", {
|
|
843
845
|
class: "q-list-item-group",
|
|
844
846
|
role: "group",
|
|
@@ -849,15 +851,15 @@ const St = ["id", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-l
|
|
|
849
851
|
id: v(e),
|
|
850
852
|
class: "q-list-item-group__title",
|
|
851
853
|
role: "presentation"
|
|
852
|
-
},
|
|
854
|
+
}, N(n.title), 9, Ct)) : I("", !0),
|
|
853
855
|
m(o.$slots, "default")
|
|
854
|
-
], 8,
|
|
856
|
+
], 8, zt));
|
|
855
857
|
}
|
|
856
|
-
}),
|
|
857
|
-
function
|
|
858
|
+
}), Oe = B(xt), At = B(Dt), Ft = B(Qt);
|
|
859
|
+
function Mt(t, n, e = "right", o) {
|
|
858
860
|
const a = t.getBoundingClientRect(), r = a.x + window.scrollX, d = a.y + window.scrollY, i = n == null ? void 0 : n.getBoundingClientRect(), c = (i == null ? void 0 : i.width) ?? 0, q = (i == null ? void 0 : i.height) ?? 0;
|
|
859
861
|
let k = e;
|
|
860
|
-
i && !
|
|
862
|
+
i && !Ue(a, i, k) && (k = Rt(a, i, k));
|
|
861
863
|
const g = { x: 0, y: 0, placement: k };
|
|
862
864
|
switch (k) {
|
|
863
865
|
case "top":
|
|
@@ -875,31 +877,31 @@ function Ft(t, n, e = "right", o) {
|
|
|
875
877
|
}
|
|
876
878
|
return o === "anchor" && a.width >= c && (g.width = a.width), g;
|
|
877
879
|
}
|
|
878
|
-
function
|
|
880
|
+
function Ue(t, n, e) {
|
|
879
881
|
let o = !1, a = !1;
|
|
880
882
|
switch (e) {
|
|
881
883
|
case "top":
|
|
882
|
-
o =
|
|
884
|
+
o = Te(t, n), a = t.top > n.height;
|
|
883
885
|
break;
|
|
884
886
|
case "bottom":
|
|
885
|
-
o =
|
|
887
|
+
o = Te(t, n), a = window.innerHeight - t.top - t.height > n.height;
|
|
886
888
|
break;
|
|
887
889
|
case "left":
|
|
888
|
-
o = t.left > n.width, a =
|
|
890
|
+
o = t.left > n.width, a = Ee(t, n);
|
|
889
891
|
break;
|
|
890
892
|
case "right":
|
|
891
|
-
o = window.innerWidth - t.left - t.width > n.width, a =
|
|
893
|
+
o = window.innerWidth - t.left - t.width > n.width, a = Ee(t, n);
|
|
892
894
|
break;
|
|
893
895
|
}
|
|
894
896
|
return o && a;
|
|
895
897
|
}
|
|
896
|
-
function
|
|
898
|
+
function Ee(t, n) {
|
|
897
899
|
return window.innerHeight - t.top - t.height / 2 > n.height / 2 && t.top + t.height / 2 > n.height / 2;
|
|
898
900
|
}
|
|
899
|
-
function
|
|
901
|
+
function Te(t, n) {
|
|
900
902
|
return window.innerWidth - t.left - t.width / 2 > n.width / 2 && t.left + t.width / 2 > n.width / 2;
|
|
901
903
|
}
|
|
902
|
-
function
|
|
904
|
+
function Rt(t, n, e) {
|
|
903
905
|
const o = {
|
|
904
906
|
top: ["bottom", "left", "right"],
|
|
905
907
|
bottom: ["top", "left", "right"],
|
|
@@ -907,21 +909,21 @@ function Mt(t, n, e) {
|
|
|
907
909
|
right: ["left", "top", "bottom"]
|
|
908
910
|
};
|
|
909
911
|
for (const a of o[e])
|
|
910
|
-
if (
|
|
912
|
+
if (Ue(t, n, a))
|
|
911
913
|
return a;
|
|
912
914
|
return e;
|
|
913
915
|
}
|
|
914
|
-
function
|
|
915
|
-
return typeof t == "string" ? document.querySelector(t) : t
|
|
916
|
+
function ae(t) {
|
|
917
|
+
return typeof t == "string" ? document.querySelector(t) : t;
|
|
916
918
|
}
|
|
917
|
-
const
|
|
919
|
+
const Ot = ["role"], Ut = {
|
|
918
920
|
key: 0,
|
|
919
921
|
role: "presentation",
|
|
920
922
|
class: "q-overlay__arrow"
|
|
921
|
-
},
|
|
923
|
+
}, Nt = /* @__PURE__ */ S({
|
|
922
924
|
inheritAttrs: !1,
|
|
923
925
|
__name: "QOverlay",
|
|
924
|
-
props: /* @__PURE__ */
|
|
926
|
+
props: /* @__PURE__ */ H({
|
|
925
927
|
anchor: { default: void 0 },
|
|
926
928
|
appearance: { default: "regular" },
|
|
927
929
|
arrow: { type: Boolean },
|
|
@@ -939,7 +941,7 @@ const Rt = ["role"], Ot = {
|
|
|
939
941
|
modelValue: { type: Boolean },
|
|
940
942
|
modelModifiers: {}
|
|
941
943
|
}),
|
|
942
|
-
emits: /* @__PURE__ */
|
|
944
|
+
emits: /* @__PURE__ */ H(["enter", "leave"], ["update:modelValue"]),
|
|
943
945
|
setup(t, { emit: n }) {
|
|
944
946
|
const e = t, o = n, a = X(t, "modelValue"), r = w(() => [
|
|
945
947
|
"q-overlay",
|
|
@@ -948,7 +950,7 @@ const Rt = ["role"], Ot = {
|
|
|
948
950
|
e.class
|
|
949
951
|
]), d = w(
|
|
950
952
|
() => (a.value || i.animating) && e.trigger === "click"
|
|
951
|
-
), i =
|
|
953
|
+
), i = He({
|
|
952
954
|
animating: !1,
|
|
953
955
|
top: 0,
|
|
954
956
|
left: 0,
|
|
@@ -980,9 +982,9 @@ const Rt = ["role"], Ot = {
|
|
|
980
982
|
}), q = T(null);
|
|
981
983
|
function k() {
|
|
982
984
|
if (e.anchor) {
|
|
983
|
-
const l =
|
|
985
|
+
const l = ae(e.anchor);
|
|
984
986
|
if (l) {
|
|
985
|
-
const h =
|
|
987
|
+
const h = Mt(
|
|
986
988
|
l,
|
|
987
989
|
q.value,
|
|
988
990
|
e.placement,
|
|
@@ -1002,49 +1004,49 @@ const Rt = ["role"], Ot = {
|
|
|
1002
1004
|
}
|
|
1003
1005
|
function z(l) {
|
|
1004
1006
|
g || (g = window.setTimeout(() => {
|
|
1005
|
-
a.value = !0,
|
|
1007
|
+
a.value = !0, U(() => {
|
|
1006
1008
|
var h;
|
|
1007
1009
|
e.trigger === "click" && ((h = q.value) == null || h.focus());
|
|
1008
1010
|
});
|
|
1009
1011
|
}, l));
|
|
1010
1012
|
}
|
|
1011
|
-
function
|
|
1012
|
-
clearTimeout(g), g = void 0, a.value = !1,
|
|
1013
|
+
function L() {
|
|
1014
|
+
clearTimeout(g), g = void 0, a.value = !1, U(() => {
|
|
1013
1015
|
if (e.anchor && e.trigger === "click") {
|
|
1014
|
-
const l =
|
|
1016
|
+
const l = ae(e.anchor);
|
|
1015
1017
|
l == null || l.focus();
|
|
1016
1018
|
}
|
|
1017
1019
|
});
|
|
1018
1020
|
}
|
|
1019
|
-
let
|
|
1020
|
-
function
|
|
1021
|
+
let K;
|
|
1022
|
+
function le() {
|
|
1021
1023
|
o("enter");
|
|
1022
1024
|
}
|
|
1023
|
-
function
|
|
1024
|
-
window.clearTimeout(
|
|
1025
|
+
function G() {
|
|
1026
|
+
window.clearTimeout(K), K = window.setTimeout(() => i.animating = !1, 200), o("leave");
|
|
1025
1027
|
}
|
|
1026
1028
|
let C;
|
|
1027
1029
|
function M() {
|
|
1028
|
-
|
|
1030
|
+
U(() => {
|
|
1029
1031
|
if (!e.anchor)
|
|
1030
1032
|
return;
|
|
1031
|
-
const l =
|
|
1033
|
+
const l = ae(e.anchor);
|
|
1032
1034
|
if (l)
|
|
1033
1035
|
switch (e.trigger) {
|
|
1034
1036
|
case "click":
|
|
1035
1037
|
l.addEventListener("click", F);
|
|
1036
1038
|
break;
|
|
1037
1039
|
case "hover":
|
|
1038
|
-
l.addEventListener("mouseenter", D), l.addEventListener("mouseleave",
|
|
1040
|
+
l.addEventListener("mouseenter", D), l.addEventListener("mouseleave", L), l.addEventListener("focusin", F), l.addEventListener("focusout", L);
|
|
1039
1041
|
break;
|
|
1040
1042
|
}
|
|
1041
1043
|
});
|
|
1042
1044
|
}
|
|
1043
|
-
function
|
|
1044
|
-
|
|
1045
|
+
function W() {
|
|
1046
|
+
U(() => {
|
|
1045
1047
|
if (!e.anchor)
|
|
1046
1048
|
return;
|
|
1047
|
-
const l =
|
|
1049
|
+
const l = ae(e.anchor);
|
|
1048
1050
|
l && (window.addEventListener("resize", k), C = new MutationObserver(k), C.observe(l, {
|
|
1049
1051
|
attributes: !1,
|
|
1050
1052
|
childList: !0,
|
|
@@ -1056,14 +1058,14 @@ const Rt = ["role"], Ot = {
|
|
|
1056
1058
|
function R() {
|
|
1057
1059
|
if (!e.anchor)
|
|
1058
1060
|
return;
|
|
1059
|
-
const l =
|
|
1061
|
+
const l = ae(e.anchor);
|
|
1060
1062
|
if (l)
|
|
1061
1063
|
switch (e.trigger) {
|
|
1062
1064
|
case "click":
|
|
1063
1065
|
l.removeEventListener("click", F);
|
|
1064
1066
|
break;
|
|
1065
1067
|
case "hover":
|
|
1066
|
-
l.removeEventListener("mouseenter", D), l.removeEventListener("mouseleave",
|
|
1068
|
+
l.removeEventListener("mouseenter", D), l.removeEventListener("mouseleave", L), l.removeEventListener("focusin", F), l.removeEventListener("focusout", L);
|
|
1067
1069
|
break;
|
|
1068
1070
|
}
|
|
1069
1071
|
}
|
|
@@ -1074,18 +1076,18 @@ const Rt = ["role"], Ot = {
|
|
|
1074
1076
|
function f() {
|
|
1075
1077
|
if (!e.anchor)
|
|
1076
1078
|
return;
|
|
1077
|
-
|
|
1079
|
+
ae(e.anchor) ? (k(), J = window.setTimeout(f, 100)) : L();
|
|
1078
1080
|
}
|
|
1079
1081
|
function b() {
|
|
1080
|
-
|
|
1082
|
+
W(), e.spy && f(), e.anchor && document.addEventListener("scroll", L);
|
|
1081
1083
|
}
|
|
1082
1084
|
function $() {
|
|
1083
|
-
Z(), e.spy && (clearTimeout(J), J = void 0), document.removeEventListener("scroll",
|
|
1085
|
+
Z(), e.spy && (clearTimeout(J), J = void 0), document.removeEventListener("scroll", L);
|
|
1084
1086
|
}
|
|
1085
|
-
return
|
|
1087
|
+
return Ke(() => {
|
|
1086
1088
|
R(), $();
|
|
1087
|
-
}),
|
|
1088
|
-
|
|
1089
|
+
}), Ae(() => {
|
|
1090
|
+
U(() => {
|
|
1089
1091
|
M(), k();
|
|
1090
1092
|
});
|
|
1091
1093
|
}), P(
|
|
@@ -1094,7 +1096,7 @@ const Rt = ["role"], Ot = {
|
|
|
1094
1096
|
l ? b() : $();
|
|
1095
1097
|
},
|
|
1096
1098
|
{ immediate: !0 }
|
|
1097
|
-
), (l, h) => (u(), V(
|
|
1099
|
+
), (l, h) => (u(), V(Ge, {
|
|
1098
1100
|
disabled: !a.value && !i.animating || !e.attach,
|
|
1099
1101
|
to: e.attach
|
|
1100
1102
|
}, [
|
|
@@ -1104,51 +1106,51 @@ const Rt = ["role"], Ot = {
|
|
|
1104
1106
|
"q-overlay__underlay",
|
|
1105
1107
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1106
1108
|
])
|
|
1107
|
-
}, null, 2)) :
|
|
1108
|
-
A(
|
|
1109
|
+
}, null, 2)) : I("", !0),
|
|
1110
|
+
A(We, {
|
|
1109
1111
|
name: e.transition,
|
|
1110
1112
|
appear: "",
|
|
1111
|
-
onEnter:
|
|
1112
|
-
onLeave:
|
|
1113
|
+
onEnter: le,
|
|
1114
|
+
onLeave: G
|
|
1113
1115
|
}, {
|
|
1114
1116
|
default: _(() => [
|
|
1115
1117
|
a.value ? (u(), p("div", {
|
|
1116
1118
|
key: 0,
|
|
1117
1119
|
class: E(r.value),
|
|
1118
|
-
style:
|
|
1120
|
+
style: pe(c.value)
|
|
1119
1121
|
}, [
|
|
1120
|
-
Y("div",
|
|
1122
|
+
Y("div", se({
|
|
1121
1123
|
class: "q-overlay__content",
|
|
1122
1124
|
ref_key: "overlayRef",
|
|
1123
1125
|
ref: q,
|
|
1124
1126
|
tabindex: "-1",
|
|
1125
1127
|
role: d.value ? "dialog" : void 0
|
|
1126
1128
|
}, l.$attrs, {
|
|
1127
|
-
onKeydown:
|
|
1128
|
-
onBlur:
|
|
1129
|
+
onKeydown: je(L, ["escape"]),
|
|
1130
|
+
onBlur: L
|
|
1129
1131
|
}), [
|
|
1130
|
-
e.arrow ? (u(), p("div",
|
|
1132
|
+
e.arrow ? (u(), p("div", Ut)) : I("", !0),
|
|
1131
1133
|
m(l.$slots, "default")
|
|
1132
|
-
], 16,
|
|
1133
|
-
], 6)) :
|
|
1134
|
+
], 16, Ot)
|
|
1135
|
+
], 6)) : I("", !0)
|
|
1134
1136
|
]),
|
|
1135
1137
|
_: 3
|
|
1136
1138
|
}, 8, ["name"])
|
|
1137
1139
|
], 8, ["disabled", "to"]));
|
|
1138
1140
|
}
|
|
1139
|
-
}),
|
|
1141
|
+
}), he = B(Nt), Ht = ["id"], Kt = {
|
|
1140
1142
|
key: 0,
|
|
1141
1143
|
class: "q-field__label"
|
|
1142
|
-
},
|
|
1144
|
+
}, Gt = ["for"], Wt = {
|
|
1143
1145
|
key: 0,
|
|
1144
1146
|
class: "q-field__prepend"
|
|
1145
|
-
},
|
|
1147
|
+
}, jt = {
|
|
1146
1148
|
key: 1,
|
|
1147
1149
|
class: "q-field__append"
|
|
1148
|
-
},
|
|
1150
|
+
}, Pt = {
|
|
1149
1151
|
key: 1,
|
|
1150
1152
|
class: "q-field__extras"
|
|
1151
|
-
},
|
|
1153
|
+
}, Xt = /* @__PURE__ */ S({
|
|
1152
1154
|
inheritAttrs: !1,
|
|
1153
1155
|
__name: "QField",
|
|
1154
1156
|
props: {
|
|
@@ -1162,7 +1164,7 @@ const Rt = ["role"], Ot = {
|
|
|
1162
1164
|
class: { default: void 0 }
|
|
1163
1165
|
},
|
|
1164
1166
|
setup(t, { expose: n }) {
|
|
1165
|
-
const e = t, o =
|
|
1167
|
+
const e = t, o = me(e.id), a = T(null), r = w(() => e.required && !e.readonly && !e.disabled);
|
|
1166
1168
|
return n({
|
|
1167
1169
|
fieldRef: a
|
|
1168
1170
|
}), (d, i) => (u(), p("div", {
|
|
@@ -1178,37 +1180,37 @@ const Rt = ["role"], Ot = {
|
|
|
1178
1180
|
e.class
|
|
1179
1181
|
])
|
|
1180
1182
|
}, [
|
|
1181
|
-
e.label ? (u(), p("div",
|
|
1183
|
+
e.label ? (u(), p("div", Kt, [
|
|
1182
1184
|
m(d.$slots, "label.prepend"),
|
|
1183
1185
|
Y("label", {
|
|
1184
1186
|
for: e.for
|
|
1185
|
-
},
|
|
1187
|
+
}, N(e.label), 9, Gt),
|
|
1186
1188
|
m(d.$slots, "label.append")
|
|
1187
|
-
])) :
|
|
1189
|
+
])) : I("", !0),
|
|
1188
1190
|
m(d.$slots, "control", {}, () => [
|
|
1189
|
-
Y("div",
|
|
1191
|
+
Y("div", se({
|
|
1190
1192
|
class: "q-field__control",
|
|
1191
1193
|
ref_key: "fieldRef",
|
|
1192
1194
|
ref: a
|
|
1193
1195
|
}, d.$attrs), [
|
|
1194
|
-
d.$slots.prepend ? (u(), p("div",
|
|
1196
|
+
d.$slots.prepend ? (u(), p("div", Wt, [
|
|
1195
1197
|
m(d.$slots, "prepend")
|
|
1196
|
-
])) :
|
|
1198
|
+
])) : I("", !0),
|
|
1197
1199
|
m(d.$slots, "default"),
|
|
1198
|
-
d.$slots.append ? (u(), p("div",
|
|
1200
|
+
d.$slots.append ? (u(), p("div", jt, [
|
|
1199
1201
|
m(d.$slots, "append")
|
|
1200
|
-
])) :
|
|
1202
|
+
])) : I("", !0)
|
|
1201
1203
|
], 16)
|
|
1202
1204
|
]),
|
|
1203
|
-
d.$slots.extras ? (u(), p("div",
|
|
1205
|
+
d.$slots.extras ? (u(), p("div", Pt, [
|
|
1204
1206
|
m(d.$slots, "extras")
|
|
1205
|
-
])) :
|
|
1206
|
-
], 10,
|
|
1207
|
+
])) : I("", !0)
|
|
1208
|
+
], 10, Ht));
|
|
1207
1209
|
}
|
|
1208
|
-
}),
|
|
1210
|
+
}), qe = B(Xt), Yt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Zt = /* @__PURE__ */ S({
|
|
1209
1211
|
inheritAttrs: !1,
|
|
1210
1212
|
__name: "QTextField",
|
|
1211
|
-
props: /* @__PURE__ */
|
|
1213
|
+
props: /* @__PURE__ */ H({
|
|
1212
1214
|
id: { default: void 0 },
|
|
1213
1215
|
placeholder: { default: "" },
|
|
1214
1216
|
label: { default: "" },
|
|
@@ -1226,7 +1228,7 @@ const Rt = ["role"], Ot = {
|
|
|
1226
1228
|
}),
|
|
1227
1229
|
emits: ["update:modelValue"],
|
|
1228
1230
|
setup(t, { expose: n }) {
|
|
1229
|
-
const e = t, o = X(t, "modelValue"), a =
|
|
1231
|
+
const e = t, o = X(t, "modelValue"), a = me(e.id), r = T(null), d = T(null), i = w(
|
|
1230
1232
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1231
1233
|
);
|
|
1232
1234
|
return n({
|
|
@@ -1235,7 +1237,7 @@ const Rt = ["role"], Ot = {
|
|
|
1235
1237
|
return (c = r.value) == null ? void 0 : c.fieldRef;
|
|
1236
1238
|
}),
|
|
1237
1239
|
inputRef: d
|
|
1238
|
-
}), (c, q) => (u(), V(v(
|
|
1240
|
+
}), (c, q) => (u(), V(v(qe), {
|
|
1239
1241
|
ref_key: "fieldRef",
|
|
1240
1242
|
ref: r,
|
|
1241
1243
|
class: E(["q-text-field", e.class]),
|
|
@@ -1245,7 +1247,7 @@ const Rt = ["role"], Ot = {
|
|
|
1245
1247
|
readonly: e.readonly,
|
|
1246
1248
|
disabled: e.disabled,
|
|
1247
1249
|
required: e.required
|
|
1248
|
-
},
|
|
1250
|
+
}, _e({
|
|
1249
1251
|
"label.prepend": _(() => [
|
|
1250
1252
|
m(c.$slots, "label.prepend")
|
|
1251
1253
|
]),
|
|
@@ -1253,7 +1255,7 @@ const Rt = ["role"], Ot = {
|
|
|
1253
1255
|
m(c.$slots, "label.append")
|
|
1254
1256
|
]),
|
|
1255
1257
|
default: _(() => [
|
|
1256
|
-
|
|
1258
|
+
Pe(Y("input", se({
|
|
1257
1259
|
"onUpdate:modelValue": q[0] || (q[0] = (k) => o.value = k),
|
|
1258
1260
|
ref_key: "inputRef",
|
|
1259
1261
|
ref: d,
|
|
@@ -1266,8 +1268,8 @@ const Rt = ["role"], Ot = {
|
|
|
1266
1268
|
readonly: e.readonly,
|
|
1267
1269
|
disabled: e.disabled,
|
|
1268
1270
|
maxlength: e.maxLength
|
|
1269
|
-
}, c.$attrs), null, 16,
|
|
1270
|
-
[
|
|
1271
|
+
}, c.$attrs), null, 16, Yt), [
|
|
1272
|
+
[Xe, o.value]
|
|
1271
1273
|
])
|
|
1272
1274
|
]),
|
|
1273
1275
|
_: 2
|
|
@@ -1295,24 +1297,24 @@ const Rt = ["role"], Ot = {
|
|
|
1295
1297
|
} : void 0
|
|
1296
1298
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1297
1299
|
}
|
|
1298
|
-
}),
|
|
1300
|
+
}), Jt = B(Zt), en = {
|
|
1299
1301
|
key: 0,
|
|
1300
1302
|
class: "q-select__loader"
|
|
1301
|
-
},
|
|
1303
|
+
}, tn = {
|
|
1302
1304
|
key: 2,
|
|
1303
1305
|
class: "q-select__loader"
|
|
1304
|
-
}, tn = {
|
|
1305
|
-
noData: "No data available"
|
|
1306
1306
|
}, nn = {
|
|
1307
|
+
noData: "No data available"
|
|
1308
|
+
}, on = {
|
|
1307
1309
|
chevron: {
|
|
1308
1310
|
icon: "chevron-down"
|
|
1309
1311
|
},
|
|
1310
1312
|
clear: {
|
|
1311
1313
|
icon: "close"
|
|
1312
1314
|
}
|
|
1313
|
-
},
|
|
1315
|
+
}, ln = /* @__PURE__ */ S({
|
|
1314
1316
|
__name: "QCombobox",
|
|
1315
|
-
props: /* @__PURE__ */
|
|
1317
|
+
props: /* @__PURE__ */ H({
|
|
1316
1318
|
id: { default: void 0 },
|
|
1317
1319
|
placeholder: { default: "" },
|
|
1318
1320
|
selectionMode: { default: "automatic" },
|
|
@@ -1329,40 +1331,42 @@ const Rt = ["role"], Ot = {
|
|
|
1329
1331
|
itemLabel: { default: "label" },
|
|
1330
1332
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1331
1333
|
size: { default: void 0 },
|
|
1332
|
-
texts: { default: () =>
|
|
1333
|
-
icons: { default: () =>
|
|
1334
|
+
texts: { default: () => nn },
|
|
1335
|
+
icons: { default: () => on },
|
|
1334
1336
|
class: { default: void 0 }
|
|
1335
1337
|
}, {
|
|
1336
|
-
modelValue: {
|
|
1338
|
+
modelValue: {
|
|
1339
|
+
type: [String, Number, Boolean, Symbol]
|
|
1340
|
+
},
|
|
1337
1341
|
modelModifiers: {},
|
|
1338
1342
|
open: { type: Boolean },
|
|
1339
1343
|
openModifiers: {},
|
|
1340
1344
|
search: { default: "" },
|
|
1341
1345
|
searchModifiers: {}
|
|
1342
1346
|
}),
|
|
1343
|
-
emits: /* @__PURE__ */
|
|
1347
|
+
emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1344
1348
|
setup(t, { expose: n, emit: e }) {
|
|
1345
1349
|
const o = t, a = e, r = X(t, "modelValue"), d = X(t, "open"), i = X(t, "search"), c = T(void 0), q = T(null), k = T(null), g = T(null);
|
|
1346
|
-
|
|
1350
|
+
Ae(M);
|
|
1347
1351
|
const F = w(() => o.clearable && !o.readonly && !o.disabled), D = w(() => {
|
|
1348
1352
|
var s;
|
|
1349
|
-
return o.filterMode === "manual" || !
|
|
1353
|
+
return o.filterMode === "manual" || !G.value ? o.items : (s = o.items) == null ? void 0 : s.filter(
|
|
1350
1354
|
(y) => y[o.itemLabel].toLowerCase().startsWith(i.value.toLowerCase())
|
|
1351
1355
|
);
|
|
1352
1356
|
}), z = w(() => {
|
|
1353
1357
|
var s;
|
|
1354
1358
|
return (s = o.items) == null ? void 0 : s.find((y) => y[o.itemValue] === r.value);
|
|
1355
|
-
}),
|
|
1359
|
+
}), L = w(() => z.value === void 0), K = w(() => {
|
|
1356
1360
|
const s = c.value;
|
|
1357
1361
|
if (s !== void 0 && D.value[s])
|
|
1358
1362
|
return D.value[s];
|
|
1359
|
-
}),
|
|
1363
|
+
}), le = w(() => {
|
|
1360
1364
|
var y;
|
|
1361
1365
|
if (c.value === void 0)
|
|
1362
1366
|
return;
|
|
1363
1367
|
const s = (y = k.value) == null ? void 0 : y.getItem(c.value);
|
|
1364
1368
|
return s == null ? void 0 : s.id;
|
|
1365
|
-
}),
|
|
1369
|
+
}), G = w(() => {
|
|
1366
1370
|
var s;
|
|
1367
1371
|
return i.value.length > 0 && i.value !== ((s = z.value) == null ? void 0 : s[o.itemLabel]);
|
|
1368
1372
|
});
|
|
@@ -1373,8 +1377,8 @@ const Rt = ["role"], Ot = {
|
|
|
1373
1377
|
var s;
|
|
1374
1378
|
i.value = ((s = z.value) == null ? void 0 : s[o.itemLabel]) || "";
|
|
1375
1379
|
}
|
|
1376
|
-
function
|
|
1377
|
-
d.value || o.readonly || o.disabled || (a("before-show"), d.value = !0,
|
|
1380
|
+
function W() {
|
|
1381
|
+
d.value || o.readonly || o.disabled || (a("before-show"), d.value = !0, ee());
|
|
1378
1382
|
}
|
|
1379
1383
|
function R() {
|
|
1380
1384
|
d.value && (a("before-hide"), d.value = !1, c.value = void 0);
|
|
@@ -1383,46 +1387,46 @@ const Rt = ["role"], Ot = {
|
|
|
1383
1387
|
d.value ? R() : f();
|
|
1384
1388
|
}
|
|
1385
1389
|
function J() {
|
|
1386
|
-
F.value && (r.value = o.emptyValue, c.value = void 0,
|
|
1390
|
+
F.value && (r.value = o.emptyValue, c.value = void 0, ee());
|
|
1387
1391
|
}
|
|
1388
1392
|
function f() {
|
|
1389
|
-
if (
|
|
1393
|
+
if (W(), z.value !== void 0) {
|
|
1390
1394
|
const s = D.value.indexOf(z.value);
|
|
1391
|
-
s !== -1 &&
|
|
1395
|
+
s !== -1 && U(() => Ie(s));
|
|
1392
1396
|
}
|
|
1393
1397
|
}
|
|
1394
1398
|
function b(s) {
|
|
1395
|
-
var y,
|
|
1399
|
+
var y, x;
|
|
1396
1400
|
if (!(!s.key || o.readonly || o.disabled))
|
|
1397
1401
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key) && (s.preventDefault(), s.stopPropagation()), s.key === "Escape")
|
|
1398
1402
|
M(), d.value && R();
|
|
1399
1403
|
else if (["ArrowDown", "ArrowUp"].includes(s.key))
|
|
1400
|
-
d.value ?
|
|
1404
|
+
d.value ? U(() => {
|
|
1401
1405
|
if (c.value === void 0)
|
|
1402
1406
|
$();
|
|
1403
1407
|
else {
|
|
1404
|
-
const
|
|
1405
|
-
h(c.value,
|
|
1408
|
+
const Q = s.key === "ArrowDown" ? "next" : "prev";
|
|
1409
|
+
h(c.value, Q);
|
|
1406
1410
|
}
|
|
1407
|
-
}) : (
|
|
1411
|
+
}) : (W(), U(() => {
|
|
1408
1412
|
s.key === "ArrowDown" ? $() : l();
|
|
1409
1413
|
}));
|
|
1410
1414
|
else if (s.key === "Enter") {
|
|
1411
|
-
if (
|
|
1415
|
+
if (K.value === void 0)
|
|
1412
1416
|
return;
|
|
1413
|
-
C(
|
|
1417
|
+
C(K.value[o.itemValue]);
|
|
1414
1418
|
} else
|
|
1415
|
-
s.key === "Home" ? c.value = (y = k.value) == null ? void 0 : y.getFirstFocusableItemIndex() : s.key === "End" ? c.value = (
|
|
1419
|
+
s.key === "Home" ? c.value = (y = k.value) == null ? void 0 : y.getFirstFocusableItemIndex() : s.key === "End" ? c.value = (x = k.value) == null ? void 0 : x.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && W();
|
|
1416
1420
|
}
|
|
1417
1421
|
function $() {
|
|
1418
1422
|
var s, y;
|
|
1419
|
-
if (
|
|
1423
|
+
if (L.value)
|
|
1420
1424
|
c.value = (y = k.value) == null ? void 0 : y.getFirstFocusableItemIndex();
|
|
1421
1425
|
else {
|
|
1422
|
-
const
|
|
1423
|
-
(
|
|
1426
|
+
const x = D.value.findIndex(
|
|
1427
|
+
(Q) => Q[o.itemValue] === r.value
|
|
1424
1428
|
);
|
|
1425
|
-
|
|
1429
|
+
x === -1 ? c.value = (s = k.value) == null ? void 0 : s.getFirstFocusableItemIndex() : c.value = x;
|
|
1426
1430
|
}
|
|
1427
1431
|
}
|
|
1428
1432
|
function l() {
|
|
@@ -1430,197 +1434,200 @@ const Rt = ["role"], Ot = {
|
|
|
1430
1434
|
c.value = (s = k.value) == null ? void 0 : s.getLastFocusableItemIndex();
|
|
1431
1435
|
}
|
|
1432
1436
|
function h(s, y) {
|
|
1433
|
-
var
|
|
1434
|
-
c.value = (
|
|
1437
|
+
var x;
|
|
1438
|
+
c.value = (x = k.value) == null ? void 0 : x.getAdjacentItemIndex(s, y);
|
|
1435
1439
|
}
|
|
1436
1440
|
function O(s) {
|
|
1437
|
-
var y,
|
|
1438
|
-
!((y = g.value) != null && y.contains(s.relatedTarget)) && !((
|
|
1441
|
+
var y, x, Q;
|
|
1442
|
+
!((y = g.value) != null && y.contains(s.relatedTarget)) && !((Q = (x = q.value) == null ? void 0 : x.fieldRef) != null && Q.contains(s.relatedTarget)) ? (R(), F.value && !i.value && (r.value = o.emptyValue), M()) : (s.preventDefault(), s.stopPropagation());
|
|
1439
1443
|
}
|
|
1440
|
-
function
|
|
1444
|
+
function ee() {
|
|
1441
1445
|
var s, y;
|
|
1442
1446
|
(y = (s = q.value) == null ? void 0 : s.inputRef) == null || y.focus();
|
|
1443
1447
|
}
|
|
1444
|
-
function
|
|
1445
|
-
|
|
1448
|
+
function j() {
|
|
1449
|
+
ee();
|
|
1446
1450
|
}
|
|
1447
|
-
function
|
|
1451
|
+
function ve() {
|
|
1448
1452
|
a("show");
|
|
1449
1453
|
}
|
|
1450
|
-
function
|
|
1454
|
+
function Ne() {
|
|
1451
1455
|
a("hide");
|
|
1452
1456
|
}
|
|
1453
|
-
function
|
|
1454
|
-
var
|
|
1455
|
-
const y = (
|
|
1457
|
+
function Ie(s) {
|
|
1458
|
+
var x;
|
|
1459
|
+
const y = (x = k.value) == null ? void 0 : x.getItem(s);
|
|
1456
1460
|
y == null || y.scrollIntoView({ block: "nearest", inline: "start" });
|
|
1457
1461
|
}
|
|
1458
1462
|
return P(r, M), P(
|
|
1459
1463
|
() => o.items,
|
|
1460
1464
|
(s, y) => {
|
|
1461
|
-
if (!
|
|
1462
|
-
const
|
|
1463
|
-
i.value === (
|
|
1465
|
+
if (!L.value) {
|
|
1466
|
+
const x = y.find((Q) => Q[o.itemValue] === r.value);
|
|
1467
|
+
i.value === (x == null ? void 0 : x[o.itemLabel]) && M();
|
|
1464
1468
|
}
|
|
1465
1469
|
},
|
|
1466
1470
|
{ deep: !0 }
|
|
1467
1471
|
), P(c, (s) => {
|
|
1468
|
-
s !== void 0 &&
|
|
1472
|
+
s !== void 0 && Ie(s);
|
|
1469
1473
|
}), P(i, (s) => {
|
|
1470
|
-
s && d.value && o.selectionMode === "automatic" &&
|
|
1474
|
+
s && d.value && o.selectionMode === "automatic" && U($);
|
|
1471
1475
|
}), P(
|
|
1472
1476
|
() => o.loading,
|
|
1473
1477
|
(s) => {
|
|
1474
|
-
!s && d.value &&
|
|
1478
|
+
!s && d.value && U($);
|
|
1475
1479
|
}
|
|
1476
1480
|
), n({
|
|
1477
1481
|
triggerEl: q
|
|
1478
|
-
}), (s, y) =>
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
"q-combobox
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
disabled: o.disabled,
|
|
1500
|
-
autocomplete: "off",
|
|
1501
|
-
"aria-expanded": d.value,
|
|
1502
|
-
"aria-haspopup": "listbox",
|
|
1503
|
-
"aria-autocomplete": "list",
|
|
1504
|
-
"aria-activedescendant": oe.value,
|
|
1505
|
-
size: o.size,
|
|
1506
|
-
onClick: f,
|
|
1507
|
-
onFocusout: O,
|
|
1508
|
-
onKeydown: re(b, ["stop"])
|
|
1509
|
-
}, ye({
|
|
1510
|
-
"label.prepend": _(() => [
|
|
1511
|
-
m(s.$slots, "label.prepend")
|
|
1512
|
-
]),
|
|
1513
|
-
"label.append": _(() => [
|
|
1514
|
-
m(s.$slots, "label.append")
|
|
1515
|
-
]),
|
|
1516
|
-
append: _(() => [
|
|
1517
|
-
m(s.$slots, "append"),
|
|
1518
|
-
F.value && i.value ? (u(), V(v(ce), {
|
|
1519
|
-
key: 0,
|
|
1520
|
-
class: "q-combobox__clear",
|
|
1521
|
-
"b-style": "plain",
|
|
1522
|
-
borderless: "",
|
|
1523
|
-
tabindex: "-1",
|
|
1524
|
-
onClick: J
|
|
1525
|
-
}, {
|
|
1526
|
-
default: _(() => [
|
|
1527
|
-
A(v(ee), ne(se(o.icons.clear)), null, 16)
|
|
1528
|
-
]),
|
|
1529
|
-
_: 1
|
|
1530
|
-
})) : L("", !0),
|
|
1531
|
-
o.readonly ? L("", !0) : (u(), V(v(ce), {
|
|
1532
|
-
key: 1,
|
|
1533
|
-
class: "q-combobox__chevron",
|
|
1534
|
-
"b-style": "plain",
|
|
1535
|
-
borderless: "",
|
|
1536
|
-
tabindex: "-1",
|
|
1537
|
-
disabled: o.disabled,
|
|
1538
|
-
onClick: Z
|
|
1539
|
-
}, {
|
|
1540
|
-
default: _(() => [
|
|
1541
|
-
A(v(ee), ne(se(o.icons.chevron)), null, 16)
|
|
1542
|
-
]),
|
|
1543
|
-
_: 1
|
|
1544
|
-
}, 8, ["disabled"]))
|
|
1545
|
-
]),
|
|
1546
|
-
_: 2
|
|
1547
|
-
}, [
|
|
1548
|
-
s.$slots.prepend ? {
|
|
1549
|
-
name: "prepend",
|
|
1550
|
-
fn: _(() => [
|
|
1551
|
-
m(s.$slots, "prepend")
|
|
1482
|
+
}), (s, y) => {
|
|
1483
|
+
var x;
|
|
1484
|
+
return u(), p(ne, null, [
|
|
1485
|
+
A(v(Jt), {
|
|
1486
|
+
modelValue: i.value,
|
|
1487
|
+
"onUpdate:modelValue": y[0] || (y[0] = (Q) => i.value = Q),
|
|
1488
|
+
id: o.id,
|
|
1489
|
+
label: o.label,
|
|
1490
|
+
required: o.required,
|
|
1491
|
+
ref_key: "triggerEl",
|
|
1492
|
+
ref: q,
|
|
1493
|
+
role: "combobox",
|
|
1494
|
+
placeholder: o.placeholder,
|
|
1495
|
+
class: E([
|
|
1496
|
+
"q-combobox",
|
|
1497
|
+
{
|
|
1498
|
+
"q-combobox--readonly": o.readonly,
|
|
1499
|
+
"q-combobox--disabled": o.disabled,
|
|
1500
|
+
"q-combobox--expanded": d.value
|
|
1501
|
+
},
|
|
1502
|
+
o.class
|
|
1552
1503
|
]),
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1504
|
+
readonly: o.readonly,
|
|
1505
|
+
disabled: o.disabled,
|
|
1506
|
+
autocomplete: "off",
|
|
1507
|
+
"aria-expanded": d.value,
|
|
1508
|
+
"aria-haspopup": "listbox",
|
|
1509
|
+
"aria-autocomplete": "list",
|
|
1510
|
+
"aria-activedescendant": le.value,
|
|
1511
|
+
size: o.size,
|
|
1512
|
+
onClick: f,
|
|
1513
|
+
onFocusout: O,
|
|
1514
|
+
onKeydown: de(b, ["stop"])
|
|
1515
|
+
}, _e({
|
|
1516
|
+
"label.prepend": _(() => [
|
|
1517
|
+
m(s.$slots, "label.prepend")
|
|
1559
1518
|
]),
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1519
|
+
"label.append": _(() => [
|
|
1520
|
+
m(s.$slots, "label.append")
|
|
1521
|
+
]),
|
|
1522
|
+
append: _(() => [
|
|
1523
|
+
m(s.$slots, "append"),
|
|
1524
|
+
F.value && i.value ? (u(), V(v(fe), {
|
|
1525
|
+
key: 0,
|
|
1526
|
+
class: "q-combobox__clear",
|
|
1527
|
+
"b-style": "plain",
|
|
1528
|
+
borderless: "",
|
|
1529
|
+
tabindex: "-1",
|
|
1530
|
+
onClick: J
|
|
1531
|
+
}, {
|
|
1532
|
+
default: _(() => [
|
|
1533
|
+
A(v(te), oe(ie(o.icons.clear)), null, 16)
|
|
1534
|
+
]),
|
|
1535
|
+
_: 1
|
|
1536
|
+
})) : I("", !0),
|
|
1537
|
+
o.readonly ? I("", !0) : (u(), V(v(fe), {
|
|
1538
|
+
key: 1,
|
|
1539
|
+
class: "q-combobox__chevron",
|
|
1540
|
+
"b-style": "plain",
|
|
1541
|
+
borderless: "",
|
|
1542
|
+
tabindex: "-1",
|
|
1543
|
+
disabled: o.disabled,
|
|
1544
|
+
onClick: Z
|
|
1545
|
+
}, {
|
|
1546
|
+
default: _(() => [
|
|
1547
|
+
A(v(te), oe(ie(o.icons.chevron)), null, 16)
|
|
1548
|
+
]),
|
|
1549
|
+
_: 1
|
|
1550
|
+
}, 8, ["disabled"]))
|
|
1551
|
+
]),
|
|
1552
|
+
_: 2
|
|
1553
|
+
}, [
|
|
1554
|
+
s.$slots.prepend ? {
|
|
1555
|
+
name: "prepend",
|
|
1556
|
+
fn: _(() => [
|
|
1557
|
+
m(s.$slots, "prepend")
|
|
1558
|
+
]),
|
|
1559
|
+
key: "0"
|
|
1560
|
+
} : void 0,
|
|
1561
|
+
s.$slots.extras ? {
|
|
1562
|
+
name: "extras",
|
|
1563
|
+
fn: _(() => [
|
|
1564
|
+
m(s.$slots, "extras")
|
|
1565
|
+
]),
|
|
1566
|
+
key: "1"
|
|
1567
|
+
} : void 0
|
|
1568
|
+
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1569
|
+
A(v(he), {
|
|
1570
|
+
modelValue: d.value,
|
|
1571
|
+
"onUpdate:modelValue": y[2] || (y[2] = (Q) => d.value = Q),
|
|
1572
|
+
spy: "",
|
|
1573
|
+
trigger: "manual",
|
|
1574
|
+
placement: "bottom",
|
|
1575
|
+
width: "anchor",
|
|
1576
|
+
offset: 4,
|
|
1577
|
+
anchor: (x = q.value) == null ? void 0 : x.$el,
|
|
1578
|
+
onEnter: ve,
|
|
1579
|
+
onLeave: Ne
|
|
1580
|
+
}, {
|
|
1581
|
+
default: _(() => {
|
|
1582
|
+
var Q;
|
|
1583
|
+
return [
|
|
1584
|
+
Y("div", {
|
|
1585
|
+
ref_key: "contentRef",
|
|
1586
|
+
ref: g,
|
|
1587
|
+
class: "q-select__body",
|
|
1588
|
+
onFocusout: O
|
|
1589
|
+
}, [
|
|
1590
|
+
m(s.$slots, "body.prepend"),
|
|
1591
|
+
o.loading ? (u(), p("div", en, [
|
|
1592
|
+
A(v($e), { size: 24 })
|
|
1593
|
+
])) : D.value.length ? (u(), V(v(Oe), {
|
|
1594
|
+
key: 1,
|
|
1595
|
+
ref_key: "listRef",
|
|
1596
|
+
ref: k,
|
|
1597
|
+
class: "q-select__items",
|
|
1598
|
+
modelValue: r.value,
|
|
1599
|
+
"onUpdate:modelValue": [
|
|
1600
|
+
y[1] || (y[1] = (be) => r.value = be),
|
|
1601
|
+
C
|
|
1602
|
+
],
|
|
1603
|
+
highlighted: (Q = K.value) == null ? void 0 : Q[o.itemValue],
|
|
1604
|
+
items: D.value,
|
|
1605
|
+
groups: s.groups,
|
|
1606
|
+
"item-label": o.itemLabel,
|
|
1607
|
+
"item-value": o.itemValue,
|
|
1608
|
+
onMouseup: j
|
|
1609
|
+
}, {
|
|
1610
|
+
item: _(({ item: be }) => [
|
|
1611
|
+
m(s.$slots, "item", { item: be })
|
|
1612
|
+
]),
|
|
1613
|
+
_: 3
|
|
1614
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), p("div", tn, N(s.texts.noData), 1)),
|
|
1615
|
+
m(s.$slots, "body.append")
|
|
1616
|
+
], 544)
|
|
1617
|
+
];
|
|
1618
|
+
}),
|
|
1619
|
+
_: 3
|
|
1620
|
+
}, 8, ["modelValue", "anchor"])
|
|
1621
|
+
], 64);
|
|
1622
|
+
};
|
|
1616
1623
|
}
|
|
1617
|
-
}),
|
|
1624
|
+
}), En = B(ln), an = {
|
|
1618
1625
|
key: 0,
|
|
1619
1626
|
class: "q-input-group__prepend"
|
|
1620
|
-
},
|
|
1627
|
+
}, sn = { key: 0 }, rn = {
|
|
1621
1628
|
key: 1,
|
|
1622
1629
|
class: "q-input-group__append"
|
|
1623
|
-
},
|
|
1630
|
+
}, dn = { key: 0 }, un = /* @__PURE__ */ S({
|
|
1624
1631
|
__name: "QInputGroup",
|
|
1625
1632
|
props: {
|
|
1626
1633
|
id: { default: void 0 },
|
|
@@ -1633,11 +1640,11 @@ const Rt = ["role"], Ot = {
|
|
|
1633
1640
|
},
|
|
1634
1641
|
setup(t) {
|
|
1635
1642
|
const n = t;
|
|
1636
|
-
return
|
|
1643
|
+
return Fe({
|
|
1637
1644
|
QField: {
|
|
1638
1645
|
size: "block"
|
|
1639
1646
|
}
|
|
1640
|
-
}), (e, o) => (u(), V(v(
|
|
1647
|
+
}), (e, o) => (u(), V(v(qe), {
|
|
1641
1648
|
id: n.id,
|
|
1642
1649
|
class: E(["q-input-group", n.class]),
|
|
1643
1650
|
label: n.label,
|
|
@@ -1645,24 +1652,24 @@ const Rt = ["role"], Ot = {
|
|
|
1645
1652
|
size: n.size
|
|
1646
1653
|
}, {
|
|
1647
1654
|
default: _(() => [
|
|
1648
|
-
e.$slots.prepend || n.prependIcon ? (u(), p("div",
|
|
1649
|
-
n.prependIcon ? (u(), p("span",
|
|
1650
|
-
A(v(
|
|
1651
|
-
])) :
|
|
1655
|
+
e.$slots.prepend || n.prependIcon ? (u(), p("div", an, [
|
|
1656
|
+
n.prependIcon ? (u(), p("span", sn, [
|
|
1657
|
+
A(v(te), oe(ie(n.prependIcon)), null, 16)
|
|
1658
|
+
])) : I("", !0),
|
|
1652
1659
|
m(e.$slots, "prepend")
|
|
1653
|
-
])) :
|
|
1660
|
+
])) : I("", !0),
|
|
1654
1661
|
m(e.$slots, "default"),
|
|
1655
|
-
e.$slots.append || n.appendIcon ? (u(), p("div",
|
|
1656
|
-
n.appendIcon ? (u(), p("span",
|
|
1657
|
-
A(v(
|
|
1658
|
-
])) :
|
|
1662
|
+
e.$slots.append || n.appendIcon ? (u(), p("div", rn, [
|
|
1663
|
+
n.appendIcon ? (u(), p("span", dn, [
|
|
1664
|
+
A(v(te), oe(ie(n.appendIcon)), null, 16)
|
|
1665
|
+
])) : I("", !0),
|
|
1659
1666
|
m(e.$slots, "append")
|
|
1660
|
-
])) :
|
|
1667
|
+
])) : I("", !0)
|
|
1661
1668
|
]),
|
|
1662
1669
|
_: 3
|
|
1663
1670
|
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1664
1671
|
}
|
|
1665
|
-
}),
|
|
1672
|
+
}), Tn = B(un), cn = /* @__PURE__ */ S({
|
|
1666
1673
|
__name: "QLineLoader",
|
|
1667
1674
|
props: {
|
|
1668
1675
|
class: { default: void 0 }
|
|
@@ -1673,16 +1680,16 @@ const Rt = ["role"], Ot = {
|
|
|
1673
1680
|
class: E(["q-line-loader", n.class])
|
|
1674
1681
|
}, null, 2));
|
|
1675
1682
|
}
|
|
1676
|
-
}),
|
|
1683
|
+
}), Dn = B(cn), fn = {
|
|
1677
1684
|
key: 0,
|
|
1678
1685
|
class: "q-popover__header"
|
|
1679
|
-
},
|
|
1686
|
+
}, pn = {
|
|
1680
1687
|
key: 1,
|
|
1681
1688
|
class: "q-popover__body"
|
|
1682
|
-
},
|
|
1689
|
+
}, mn = ["innerHTML"], vn = { key: 1 }, hn = /* @__PURE__ */ S({
|
|
1683
1690
|
inheritAttrs: !1,
|
|
1684
1691
|
__name: "QPopover",
|
|
1685
|
-
props: /* @__PURE__ */
|
|
1692
|
+
props: /* @__PURE__ */ H({
|
|
1686
1693
|
anchor: {},
|
|
1687
1694
|
arrow: { type: Boolean, default: !0 },
|
|
1688
1695
|
attach: { default: "body" },
|
|
@@ -1698,7 +1705,7 @@ const Rt = ["role"], Ot = {
|
|
|
1698
1705
|
emits: ["update:modelValue"],
|
|
1699
1706
|
setup(t) {
|
|
1700
1707
|
const n = t, e = X(t, "modelValue");
|
|
1701
|
-
return (o, a) => (u(), V(v(
|
|
1708
|
+
return (o, a) => (u(), V(v(he), {
|
|
1702
1709
|
"model-value": e.value,
|
|
1703
1710
|
class: "q-popover",
|
|
1704
1711
|
trigger: "click",
|
|
@@ -1709,42 +1716,42 @@ const Rt = ["role"], Ot = {
|
|
|
1709
1716
|
placement: n.placement
|
|
1710
1717
|
}, {
|
|
1711
1718
|
default: _(() => [
|
|
1712
|
-
n.title || o.$slots.header ? (u(), p("h3",
|
|
1713
|
-
|
|
1719
|
+
n.title || o.$slots.header ? (u(), p("h3", fn, [
|
|
1720
|
+
ue(N(n.title) + " ", 1),
|
|
1714
1721
|
m(o.$slots, "header")
|
|
1715
|
-
])) :
|
|
1716
|
-
n.text || o.$slots.body ? (u(), p("div",
|
|
1722
|
+
])) : I("", !0),
|
|
1723
|
+
n.text || o.$slots.body ? (u(), p("div", pn, [
|
|
1717
1724
|
n.html ? (u(), p("span", {
|
|
1718
1725
|
key: 0,
|
|
1719
1726
|
innerHTML: n.text
|
|
1720
|
-
}, null, 8,
|
|
1727
|
+
}, null, 8, mn)) : (u(), p("span", vn, N(n.text), 1)),
|
|
1721
1728
|
m(o.$slots, "body")
|
|
1722
|
-
])) :
|
|
1729
|
+
])) : I("", !0)
|
|
1723
1730
|
]),
|
|
1724
1731
|
_: 3
|
|
1725
1732
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
|
|
1726
1733
|
}
|
|
1727
|
-
}),
|
|
1734
|
+
}), zn = B(hn), bn = {
|
|
1728
1735
|
key: 0,
|
|
1729
1736
|
class: "q-select__value"
|
|
1730
|
-
},
|
|
1737
|
+
}, yn = {
|
|
1731
1738
|
key: 1,
|
|
1732
1739
|
class: "q-select__placeholder"
|
|
1733
|
-
},
|
|
1740
|
+
}, gn = {
|
|
1734
1741
|
key: 0,
|
|
1735
1742
|
class: "q-select__loader"
|
|
1736
|
-
}, gn = {
|
|
1737
|
-
placeholder: "Choose..."
|
|
1738
1743
|
}, _n = {
|
|
1744
|
+
placeholder: "Choose..."
|
|
1745
|
+
}, kn = {
|
|
1739
1746
|
chevron: {
|
|
1740
1747
|
icon: "chevron-down"
|
|
1741
1748
|
},
|
|
1742
1749
|
clear: {
|
|
1743
1750
|
icon: "close"
|
|
1744
1751
|
}
|
|
1745
|
-
},
|
|
1752
|
+
}, wn = /* @__PURE__ */ S({
|
|
1746
1753
|
__name: "QSelect",
|
|
1747
|
-
props: /* @__PURE__ */
|
|
1754
|
+
props: /* @__PURE__ */ H({
|
|
1748
1755
|
id: { default: void 0 },
|
|
1749
1756
|
label: { default: "" },
|
|
1750
1757
|
clearable: { type: Boolean },
|
|
@@ -1752,20 +1759,22 @@ const Rt = ["role"], Ot = {
|
|
|
1752
1759
|
disabled: { type: Boolean },
|
|
1753
1760
|
required: { type: Boolean },
|
|
1754
1761
|
loading: { type: Boolean },
|
|
1755
|
-
icons: { default: () =>
|
|
1762
|
+
icons: { default: () => kn },
|
|
1756
1763
|
items: {},
|
|
1757
1764
|
groups: { default: () => [] },
|
|
1758
1765
|
itemValue: { default: "key" },
|
|
1759
1766
|
itemLabel: { default: "label" },
|
|
1760
1767
|
emptyValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
1761
1768
|
size: { default: void 0 },
|
|
1762
|
-
texts: { default: () =>
|
|
1769
|
+
texts: { default: () => _n },
|
|
1763
1770
|
class: { default: "" }
|
|
1764
1771
|
}, {
|
|
1765
|
-
modelValue: {
|
|
1772
|
+
modelValue: {
|
|
1773
|
+
type: [String, Number, Boolean, Symbol]
|
|
1774
|
+
},
|
|
1766
1775
|
modelModifiers: {}
|
|
1767
1776
|
}),
|
|
1768
|
-
emits: /* @__PURE__ */
|
|
1777
|
+
emits: /* @__PURE__ */ H(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
1769
1778
|
setup(t, { emit: n }) {
|
|
1770
1779
|
const e = t, o = n, a = X(t, "modelValue"), r = T(!1), d = T(""), i = T(null), c = T(null), q = T(null), k = w(() => g.value === void 0), g = w(
|
|
1771
1780
|
() => {
|
|
@@ -1780,29 +1789,29 @@ const Rt = ["role"], Ot = {
|
|
|
1780
1789
|
function z(l) {
|
|
1781
1790
|
a.value = l, C();
|
|
1782
1791
|
}
|
|
1783
|
-
function
|
|
1792
|
+
function L() {
|
|
1784
1793
|
D.value && z(e.emptyValue);
|
|
1785
1794
|
}
|
|
1786
|
-
function
|
|
1787
|
-
e.readonly || e.disabled || (r.value ? C() :
|
|
1795
|
+
function K() {
|
|
1796
|
+
e.readonly || e.disabled || (r.value ? C() : G());
|
|
1788
1797
|
}
|
|
1789
|
-
function
|
|
1790
|
-
var h, O,
|
|
1791
|
-
!((h = q.value) != null && h.contains(l.relatedTarget)) && !((
|
|
1798
|
+
function le(l) {
|
|
1799
|
+
var h, O, ee;
|
|
1800
|
+
!((h = q.value) != null && h.contains(l.relatedTarget)) && !((ee = (O = i.value) == null ? void 0 : O.fieldRef) != null && ee.contains(l.relatedTarget)) && C();
|
|
1792
1801
|
}
|
|
1793
|
-
function
|
|
1802
|
+
function G() {
|
|
1794
1803
|
r.value || (o("before-show"), r.value = !0);
|
|
1795
1804
|
}
|
|
1796
1805
|
function C() {
|
|
1797
1806
|
r.value && (o("before-hide"), r.value = !1);
|
|
1798
1807
|
}
|
|
1799
1808
|
function M() {
|
|
1800
|
-
r.value ? C() :
|
|
1809
|
+
r.value ? C() : G();
|
|
1801
1810
|
}
|
|
1802
|
-
let
|
|
1811
|
+
let W;
|
|
1803
1812
|
function R(l) {
|
|
1804
1813
|
if (!(!l.key || e.readonly || e.disabled)) {
|
|
1805
|
-
if (window.clearTimeout(
|
|
1814
|
+
if (window.clearTimeout(W), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(l.key) && (l.preventDefault(), l.stopPropagation()), ["Enter", " "].includes(l.key) && (r.value = !0), ["Escape", "Tab"].includes(l.key) && (r.value ? r.value = !1 : D.value && l.key === "Escape" && L()), l.key === "Delete" && e.clearable && L(), /^[a-z]$/i.test(l.key)) {
|
|
1806
1815
|
d.value += l.key.toLowerCase();
|
|
1807
1816
|
for (let h = 0; h < e.items.length; h++)
|
|
1808
1817
|
if (e.items[h][e.itemLabel].toLowerCase().startsWith(d.value)) {
|
|
@@ -1810,7 +1819,7 @@ const Rt = ["role"], Ot = {
|
|
|
1810
1819
|
break;
|
|
1811
1820
|
}
|
|
1812
1821
|
}
|
|
1813
|
-
|
|
1822
|
+
W = window.setTimeout(function() {
|
|
1814
1823
|
d.value = "";
|
|
1815
1824
|
}, 500);
|
|
1816
1825
|
}
|
|
@@ -1837,12 +1846,12 @@ const Rt = ["role"], Ot = {
|
|
|
1837
1846
|
return P(
|
|
1838
1847
|
() => e.loading,
|
|
1839
1848
|
(l) => {
|
|
1840
|
-
!l && r.value &&
|
|
1849
|
+
!l && r.value && U(b);
|
|
1841
1850
|
}
|
|
1842
1851
|
), (l, h) => {
|
|
1843
|
-
var O;
|
|
1844
|
-
return u(), p(
|
|
1845
|
-
A(v(
|
|
1852
|
+
var O, ee;
|
|
1853
|
+
return u(), p(ne, null, [
|
|
1854
|
+
A(v(qe), {
|
|
1846
1855
|
id: e.id,
|
|
1847
1856
|
label: e.label,
|
|
1848
1857
|
required: e.required,
|
|
@@ -1864,25 +1873,25 @@ const Rt = ["role"], Ot = {
|
|
|
1864
1873
|
"aria-expanded": r.value,
|
|
1865
1874
|
"aria-haspopup": "listbox",
|
|
1866
1875
|
size: e.size,
|
|
1867
|
-
onClick:
|
|
1868
|
-
onKeydown:
|
|
1869
|
-
},
|
|
1876
|
+
onClick: K,
|
|
1877
|
+
onKeydown: de(R, ["stop"])
|
|
1878
|
+
}, _e({
|
|
1870
1879
|
append: _(() => [
|
|
1871
1880
|
m(l.$slots, "append"),
|
|
1872
|
-
D.value && a.value ? (u(), V(v(
|
|
1881
|
+
D.value && a.value ? (u(), V(v(fe), {
|
|
1873
1882
|
key: 0,
|
|
1874
1883
|
class: "q-select__clear",
|
|
1875
1884
|
"b-style": "plain",
|
|
1876
1885
|
borderless: "",
|
|
1877
1886
|
tabindex: "-1",
|
|
1878
|
-
onClick:
|
|
1887
|
+
onClick: L
|
|
1879
1888
|
}, {
|
|
1880
1889
|
default: _(() => [
|
|
1881
|
-
A(v(
|
|
1890
|
+
A(v(te), oe(ie(e.icons.clear)), null, 16)
|
|
1882
1891
|
]),
|
|
1883
1892
|
_: 1
|
|
1884
|
-
})) :
|
|
1885
|
-
e.readonly ?
|
|
1893
|
+
})) : I("", !0),
|
|
1894
|
+
e.readonly ? I("", !0) : (u(), V(v(fe), {
|
|
1886
1895
|
key: 1,
|
|
1887
1896
|
class: "q-select__chevron",
|
|
1888
1897
|
"b-style": "plain",
|
|
@@ -1892,27 +1901,27 @@ const Rt = ["role"], Ot = {
|
|
|
1892
1901
|
onClick: M
|
|
1893
1902
|
}, {
|
|
1894
1903
|
default: _(() => [
|
|
1895
|
-
A(v(
|
|
1904
|
+
A(v(te), oe(ie(e.icons.chevron)), null, 16)
|
|
1896
1905
|
]),
|
|
1897
1906
|
_: 1
|
|
1898
1907
|
}, 8, ["disabled"]))
|
|
1899
1908
|
]),
|
|
1900
1909
|
default: _(() => [
|
|
1901
|
-
k.value ? (u(), p("span",
|
|
1902
|
-
!e.readonly && !e.disabled ? (u(), p(
|
|
1903
|
-
|
|
1904
|
-
], 64)) :
|
|
1905
|
-
])) : (u(), p("span",
|
|
1910
|
+
k.value ? (u(), p("span", yn, [
|
|
1911
|
+
!e.readonly && !e.disabled ? (u(), p(ne, { key: 0 }, [
|
|
1912
|
+
ue(N(l.texts.placeholder), 1)
|
|
1913
|
+
], 64)) : I("", !0)
|
|
1914
|
+
])) : (u(), p("span", bn, N(F.value), 1))
|
|
1906
1915
|
]),
|
|
1907
1916
|
_: 2
|
|
1908
1917
|
}, [
|
|
1909
1918
|
(O = g.value) != null && O.icon || l.$slots.prepend ? {
|
|
1910
1919
|
name: "prepend",
|
|
1911
1920
|
fn: _(() => {
|
|
1912
|
-
var
|
|
1921
|
+
var j, ve;
|
|
1913
1922
|
return [
|
|
1914
1923
|
m(l.$slots, "prepend"),
|
|
1915
|
-
(
|
|
1924
|
+
(j = g.value) != null && j.icon ? (u(), V(v(te), oe(se({ key: 0 }, (ve = g.value) == null ? void 0 : ve.icon)), null, 16)) : I("", !0)
|
|
1916
1925
|
];
|
|
1917
1926
|
}),
|
|
1918
1927
|
key: "0"
|
|
@@ -1925,14 +1934,14 @@ const Rt = ["role"], Ot = {
|
|
|
1925
1934
|
key: "1"
|
|
1926
1935
|
} : void 0
|
|
1927
1936
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1928
|
-
A(v(
|
|
1937
|
+
A(v(he), {
|
|
1929
1938
|
modelValue: r.value,
|
|
1930
|
-
"onUpdate:modelValue": h[1] || (h[1] = (
|
|
1939
|
+
"onUpdate:modelValue": h[1] || (h[1] = (j) => r.value = j),
|
|
1931
1940
|
spy: "",
|
|
1932
1941
|
trigger: "manual",
|
|
1933
1942
|
placement: "bottom",
|
|
1934
1943
|
width: "anchor",
|
|
1935
|
-
anchor: i.value,
|
|
1944
|
+
anchor: (ee = i.value) == null ? void 0 : ee.$el,
|
|
1936
1945
|
offset: 2,
|
|
1937
1946
|
onEnter: Z,
|
|
1938
1947
|
onLeave: J
|
|
@@ -1943,20 +1952,20 @@ const Rt = ["role"], Ot = {
|
|
|
1943
1952
|
ref: q,
|
|
1944
1953
|
class: "q-select__body",
|
|
1945
1954
|
tabindex: "-1",
|
|
1946
|
-
onFocusout:
|
|
1947
|
-
onKeydown:
|
|
1955
|
+
onFocusout: le,
|
|
1956
|
+
onKeydown: de(R, ["stop"])
|
|
1948
1957
|
}, [
|
|
1949
1958
|
m(l.$slots, "body.prepend"),
|
|
1950
|
-
e.loading ? (u(), p("div",
|
|
1951
|
-
A(v(
|
|
1952
|
-
])) : (u(), V(v(
|
|
1959
|
+
e.loading ? (u(), p("div", gn, [
|
|
1960
|
+
A(v($e), { size: 24 })
|
|
1961
|
+
])) : (u(), V(v(Oe), {
|
|
1953
1962
|
key: 1,
|
|
1954
1963
|
ref_key: "listRef",
|
|
1955
1964
|
ref: c,
|
|
1956
1965
|
class: "q-select__items",
|
|
1957
1966
|
modelValue: a.value,
|
|
1958
1967
|
"onUpdate:modelValue": [
|
|
1959
|
-
h[0] || (h[0] = (
|
|
1968
|
+
h[0] || (h[0] = (j) => a.value = j),
|
|
1960
1969
|
z
|
|
1961
1970
|
],
|
|
1962
1971
|
items: e.items,
|
|
@@ -1964,8 +1973,8 @@ const Rt = ["role"], Ot = {
|
|
|
1964
1973
|
"item-label": e.itemLabel,
|
|
1965
1974
|
"item-value": e.itemValue
|
|
1966
1975
|
}, {
|
|
1967
|
-
item: _(({ item:
|
|
1968
|
-
m(l.$slots, "item", { item:
|
|
1976
|
+
item: _(({ item: j }) => [
|
|
1977
|
+
m(l.$slots, "item", { item: j })
|
|
1969
1978
|
]),
|
|
1970
1979
|
_: 3
|
|
1971
1980
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
@@ -1977,7 +1986,7 @@ const Rt = ["role"], Ot = {
|
|
|
1977
1986
|
], 64);
|
|
1978
1987
|
};
|
|
1979
1988
|
}
|
|
1980
|
-
}),
|
|
1989
|
+
}), Cn = B(wn), $n = /* @__PURE__ */ S({
|
|
1981
1990
|
__name: "QThemeProvider",
|
|
1982
1991
|
props: {
|
|
1983
1992
|
theme: {}
|
|
@@ -1990,9 +1999,9 @@ const Rt = ["role"], Ot = {
|
|
|
1990
1999
|
m(e.$slots, "default")
|
|
1991
2000
|
], 2));
|
|
1992
2001
|
}
|
|
1993
|
-
}),
|
|
2002
|
+
}), Qn = B($n), qn = ["innerHTML"], In = { key: 1 }, Ln = /* @__PURE__ */ S({
|
|
1994
2003
|
__name: "QTooltip",
|
|
1995
|
-
props: /* @__PURE__ */
|
|
2004
|
+
props: /* @__PURE__ */ H({
|
|
1996
2005
|
id: { default: void 0 },
|
|
1997
2006
|
anchor: {},
|
|
1998
2007
|
appearance: { default: "inverted" },
|
|
@@ -2011,12 +2020,12 @@ const Rt = ["role"], Ot = {
|
|
|
2011
2020
|
}),
|
|
2012
2021
|
emits: ["update:modelValue"],
|
|
2013
2022
|
setup(t) {
|
|
2014
|
-
const n = t, e = X(t, "modelValue"), o =
|
|
2015
|
-
return (a, r) => (u(), p(
|
|
2023
|
+
const n = t, e = X(t, "modelValue"), o = me(n.id);
|
|
2024
|
+
return (a, r) => (u(), p(ne, null, [
|
|
2016
2025
|
m(a.$slots, "anchor", {
|
|
2017
2026
|
props: { "aria-describedby": v(o) }
|
|
2018
2027
|
}),
|
|
2019
|
-
A(v(
|
|
2028
|
+
A(v(he), {
|
|
2020
2029
|
"model-value": e.value,
|
|
2021
2030
|
anchor: n.anchor,
|
|
2022
2031
|
role: "tooltip",
|
|
@@ -2034,39 +2043,39 @@ const Rt = ["role"], Ot = {
|
|
|
2034
2043
|
n.html ? (u(), p("span", {
|
|
2035
2044
|
key: 0,
|
|
2036
2045
|
innerHTML: n.text
|
|
2037
|
-
}, null, 8,
|
|
2046
|
+
}, null, 8, qn)) : (u(), p("span", In, N(n.text), 1))
|
|
2038
2047
|
]),
|
|
2039
2048
|
_: 1
|
|
2040
2049
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
2041
2050
|
], 64));
|
|
2042
2051
|
}
|
|
2043
|
-
}),
|
|
2052
|
+
}), An = B(Ln);
|
|
2044
2053
|
export {
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2054
|
+
fe as QButton,
|
|
2055
|
+
vt as QButtonGroup,
|
|
2056
|
+
Vn as QButtonToggle,
|
|
2057
|
+
En as QCombobox,
|
|
2058
|
+
qe as QField,
|
|
2059
|
+
te as QIcon,
|
|
2060
|
+
It as QIconFont,
|
|
2061
|
+
Lt as QIconImg,
|
|
2062
|
+
St as QIconSvg,
|
|
2063
|
+
Tn as QInputGroup,
|
|
2064
|
+
Dn as QLineLoader,
|
|
2065
|
+
Oe as QList,
|
|
2066
|
+
At as QListItem,
|
|
2067
|
+
Ft as QListItemGroup,
|
|
2068
|
+
he as QOverlay,
|
|
2069
|
+
zn as QPopover,
|
|
2070
|
+
Cn as QSelect,
|
|
2071
|
+
$e as QSpinnerLoader,
|
|
2072
|
+
Jt as QTextField,
|
|
2073
|
+
Qn as QThemeProvider,
|
|
2074
|
+
An as QTooltip,
|
|
2066
2075
|
Bn as createFramework,
|
|
2067
|
-
|
|
2068
|
-
|
|
2076
|
+
Je as defaultDarkColorScheme,
|
|
2077
|
+
Be as defaultLightColorScheme,
|
|
2069
2078
|
xn as provideTheme,
|
|
2070
|
-
|
|
2079
|
+
Ze as useTheme
|
|
2071
2080
|
};
|
|
2072
2081
|
//# sourceMappingURL=ui.esm.js.map
|