@quidgest/ui 0.7.21 → 0.7.23
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 +3 -8
- package/dist/ui.css +3 -5
- package/dist/ui.esm.js +346 -339
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +38 -38
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +4 -6
- 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 xe, computed as g, ref as q, provide as Oe, inject as Ve, watch as F, defineComponent as x, openBlock as c, createElementBlock as v, normalizeClass as T, normalizeStyle as se, createElementVNode as W, withModifiers as ne, createVNode as Z, unref as $, createCommentVNode as L, Fragment as J, createTextVNode as ae, toDisplayString as N, renderSlot as h, toRef as ce, createBlock as B, withCtx as I, renderList as pe, resolveDynamicComponent as De, h as ke, normalizeProps as ie, mergeProps as P, reactive as Ue, onBeforeUnmount as Ne, onMounted as Te, Teleport as He, Transition as Ke, withKeys as Ge, nextTick as Y, createSlots as ve, withDirectives as We, vModelDynamic as je, guardReactiveProps as we } from "vue";
|
|
2
|
+
function me(n) {
|
|
3
3
|
return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
|
|
4
4
|
}
|
|
5
|
-
function
|
|
5
|
+
function $e(n) {
|
|
6
6
|
return n !== null && typeof n == "object" && !Array.isArray(n);
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function he(n = {}, t = {}) {
|
|
9
9
|
const o = {};
|
|
10
10
|
for (const e in n)
|
|
11
11
|
o[e] = n[e];
|
|
12
12
|
for (const e in t) {
|
|
13
13
|
const l = n[e], a = t[e];
|
|
14
|
-
if (
|
|
15
|
-
o[e] =
|
|
14
|
+
if ($e(l) && $e(a)) {
|
|
15
|
+
o[e] = he(
|
|
16
16
|
l,
|
|
17
17
|
a
|
|
18
18
|
);
|
|
@@ -24,31 +24,29 @@ function Te(n = {}, t = {}) {
|
|
|
24
24
|
}
|
|
25
25
|
const ye = "q-defaults";
|
|
26
26
|
function Xe() {
|
|
27
|
-
|
|
27
|
+
var a, r;
|
|
28
|
+
const n = xe();
|
|
28
29
|
if (!n)
|
|
29
30
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
30
31
|
const t = n.type.name ?? n.type.__name;
|
|
31
32
|
if (!t)
|
|
32
33
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
33
|
-
const o = ze();
|
|
34
|
-
return g(() =>
|
|
35
|
-
var e;
|
|
36
|
-
return (e = o.value) == null ? void 0 : e[t];
|
|
37
|
-
});
|
|
34
|
+
const o = ze(), e = (a = o.value) == null ? void 0 : a.Global, l = (r = o.value) == null ? void 0 : r[t];
|
|
35
|
+
return g(() => he(e, l));
|
|
38
36
|
}
|
|
39
37
|
function Ee(n) {
|
|
40
|
-
if (
|
|
38
|
+
if (me(n))
|
|
41
39
|
return;
|
|
42
|
-
const t = ze(), o = q(n), e = g(() =>
|
|
40
|
+
const t = ze(), o = q(n), e = g(() => me(o.value) ? t.value : he(t.value, o.value));
|
|
43
41
|
Oe(ye, e);
|
|
44
42
|
}
|
|
45
43
|
function ze() {
|
|
46
|
-
const n =
|
|
44
|
+
const n = Ve(ye, void 0);
|
|
47
45
|
if (!n)
|
|
48
46
|
throw new Error("[Quidgest UI] Could not find defaults instance");
|
|
49
47
|
return n;
|
|
50
48
|
}
|
|
51
|
-
const
|
|
49
|
+
const Ie = {
|
|
52
50
|
primary: "#00a1f8",
|
|
53
51
|
primaryLight: "#e5f6ff",
|
|
54
52
|
primaryDark: "#0079ba",
|
|
@@ -132,19 +130,19 @@ function Ze(n, t) {
|
|
|
132
130
|
const o = Fe(n), e = t / 100;
|
|
133
131
|
return o.l = o.l - e * o.l, Ae(o);
|
|
134
132
|
}
|
|
135
|
-
function
|
|
133
|
+
function qe(n) {
|
|
136
134
|
const t = n.r.toString(16).padStart(2, "0"), o = n.g.toString(16).padStart(2, "0"), e = n.b.toString(16).padStart(2, "0");
|
|
137
135
|
return `#${t}${o}${e}`;
|
|
138
136
|
}
|
|
139
137
|
function Fe(n) {
|
|
140
138
|
const t = n.r / 255, o = n.g / 255, e = n.b / 255, l = Math.max(t, o, e), a = Math.min(t, o, e);
|
|
141
139
|
let r = 0, i;
|
|
142
|
-
const
|
|
140
|
+
const p = (l + a) / 2;
|
|
143
141
|
if (l === a)
|
|
144
142
|
r = i = 0;
|
|
145
143
|
else {
|
|
146
144
|
const m = l - a;
|
|
147
|
-
switch (i =
|
|
145
|
+
switch (i = p > 0.5 ? m / (2 - l - a) : m / (l + a), l) {
|
|
148
146
|
case t:
|
|
149
147
|
r = (o - e) / m + (o < e ? 6 : 0);
|
|
150
148
|
break;
|
|
@@ -160,7 +158,7 @@ function Fe(n) {
|
|
|
160
158
|
return {
|
|
161
159
|
h: Math.round(r * 360),
|
|
162
160
|
s: Math.round(i * 100),
|
|
163
|
-
l: Math.round(
|
|
161
|
+
l: Math.round(p * 100)
|
|
164
162
|
};
|
|
165
163
|
}
|
|
166
164
|
function Ae(n) {
|
|
@@ -169,8 +167,8 @@ function Ae(n) {
|
|
|
169
167
|
if (o === 0)
|
|
170
168
|
l = a = r = e;
|
|
171
169
|
else {
|
|
172
|
-
const i = e < 0.5 ? e * (1 + o) : e + o - e * o,
|
|
173
|
-
l = fe(
|
|
170
|
+
const i = e < 0.5 ? e * (1 + o) : e + o - e * o, p = 2 * e - i;
|
|
171
|
+
l = fe(p, i, t + 1 / 3), a = fe(p, i, t), r = fe(p, i, t - 1 / 3);
|
|
174
172
|
}
|
|
175
173
|
return {
|
|
176
174
|
r: Math.round(l * 255),
|
|
@@ -183,7 +181,7 @@ function fe(n, t, o) {
|
|
|
183
181
|
}
|
|
184
182
|
const re = "q-theme";
|
|
185
183
|
function wn() {
|
|
186
|
-
const n =
|
|
184
|
+
const n = Ve(re);
|
|
187
185
|
if (!n)
|
|
188
186
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
189
187
|
return n;
|
|
@@ -192,14 +190,14 @@ function Je(n, t) {
|
|
|
192
190
|
let o = null;
|
|
193
191
|
if (t)
|
|
194
192
|
for (const e of t.themes) {
|
|
195
|
-
const l = e.mode === "light" ?
|
|
193
|
+
const l = e.mode === "light" ? Ie : Ye;
|
|
196
194
|
if (e.colors) {
|
|
197
195
|
let a;
|
|
198
196
|
for (a in e.colors) {
|
|
199
197
|
const r = e.colors[a];
|
|
200
198
|
if (r && !a.startsWith("on") && !a.endsWith("Light") && !a.endsWith("Dark")) {
|
|
201
|
-
const i = Ce(r),
|
|
202
|
-
|
|
199
|
+
const i = Ce(r), p = `${a}Light`, m = `${a}Dark`;
|
|
200
|
+
p in e.colors || (e.colors[p] = qe(Pe(i, 85))), m in e.colors || (e.colors[m] = qe(Ze(i, 25)));
|
|
203
201
|
}
|
|
204
202
|
}
|
|
205
203
|
}
|
|
@@ -210,7 +208,7 @@ function Je(n, t) {
|
|
|
210
208
|
o = {
|
|
211
209
|
name: e,
|
|
212
210
|
mode: "light",
|
|
213
|
-
colors:
|
|
211
|
+
colors: Ie
|
|
214
212
|
}, t = {
|
|
215
213
|
defaultTheme: e,
|
|
216
214
|
themes: [o]
|
|
@@ -244,16 +242,16 @@ function tt(n) {
|
|
|
244
242
|
for (e in n) {
|
|
245
243
|
const l = n[e];
|
|
246
244
|
if (l) {
|
|
247
|
-
o += ` ${
|
|
245
|
+
o += ` ${Se(e)}: ${l};
|
|
248
246
|
`;
|
|
249
247
|
const a = Ce(l);
|
|
250
|
-
o += ` ${
|
|
248
|
+
o += ` ${Se(e)}-rgb: ${a.r} ${a.g} ${a.b};
|
|
251
249
|
`;
|
|
252
250
|
}
|
|
253
251
|
}
|
|
254
252
|
o += "}", t.textContent = o;
|
|
255
253
|
}
|
|
256
|
-
function
|
|
254
|
+
function Se(n) {
|
|
257
255
|
return n ? `--q-theme-${n.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
|
|
258
256
|
}
|
|
259
257
|
function $n(n = {}) {
|
|
@@ -265,8 +263,8 @@ function $n(n = {}) {
|
|
|
265
263
|
o.provide(ye, q(l)), Je(o, n.themes);
|
|
266
264
|
} };
|
|
267
265
|
}
|
|
268
|
-
const nt = /* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
266
|
+
const nt = /* @__PURE__ */ W("svg", { viewBox: "25 25 50 50" }, [
|
|
267
|
+
/* @__PURE__ */ W("circle", {
|
|
270
268
|
class: "path",
|
|
271
269
|
cx: "50",
|
|
272
270
|
cy: "50",
|
|
@@ -278,7 +276,7 @@ const nt = /* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
|
|
|
278
276
|
})
|
|
279
277
|
], -1), lt = [
|
|
280
278
|
nt
|
|
281
|
-
], ot = /* @__PURE__ */
|
|
279
|
+
], ot = /* @__PURE__ */ x({
|
|
282
280
|
__name: "QSpinnerLoader",
|
|
283
281
|
props: {
|
|
284
282
|
size: { default: 48 },
|
|
@@ -290,7 +288,7 @@ const nt = /* @__PURE__ */ j("svg", { viewBox: "25 25 50 50" }, [
|
|
|
290
288
|
}));
|
|
291
289
|
return (e, l) => (c(), v("div", {
|
|
292
290
|
class: T(["q-spinner-loader", t.class]),
|
|
293
|
-
style:
|
|
291
|
+
style: se(o.value)
|
|
294
292
|
}, lt, 6));
|
|
295
293
|
}
|
|
296
294
|
});
|
|
@@ -302,16 +300,16 @@ function V(n) {
|
|
|
302
300
|
const t = n.setup;
|
|
303
301
|
return t && (n.setup = (o, e) => {
|
|
304
302
|
const l = Xe();
|
|
305
|
-
if (
|
|
303
|
+
if (me(l.value))
|
|
306
304
|
return t(o, e);
|
|
307
|
-
const a =
|
|
305
|
+
const a = xe();
|
|
308
306
|
if (a === null)
|
|
309
307
|
return t(o, e);
|
|
310
308
|
const r = new Proxy(o, {
|
|
311
|
-
get(i,
|
|
309
|
+
get(i, p) {
|
|
312
310
|
var _;
|
|
313
|
-
const m = Reflect.get(i,
|
|
314
|
-
return typeof
|
|
311
|
+
const m = Reflect.get(i, p), f = (_ = l.value) == null ? void 0 : _[p];
|
|
312
|
+
return typeof p == "string" && !at(a.vnode, p) ? f ?? m : m;
|
|
315
313
|
}
|
|
316
314
|
});
|
|
317
315
|
return t(r, e);
|
|
@@ -320,7 +318,7 @@ function V(n) {
|
|
|
320
318
|
const be = V(ot), st = ["disabled"], it = {
|
|
321
319
|
key: 0,
|
|
322
320
|
class: "q-btn__spinner"
|
|
323
|
-
}, rt = { class: "q-btn__content" }, dt = /* @__PURE__ */
|
|
321
|
+
}, rt = { class: "q-btn__content" }, dt = /* @__PURE__ */ x({
|
|
324
322
|
__name: "QButton",
|
|
325
323
|
props: {
|
|
326
324
|
active: { type: Boolean },
|
|
@@ -357,27 +355,27 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
357
355
|
e.class
|
|
358
356
|
];
|
|
359
357
|
});
|
|
360
|
-
return (i,
|
|
358
|
+
return (i, p) => (c(), v("button", {
|
|
361
359
|
type: "button",
|
|
362
360
|
class: T(r.value),
|
|
363
361
|
disabled: l.value,
|
|
364
362
|
onClick: ne(a, ["stop", "prevent"])
|
|
365
363
|
}, [
|
|
366
364
|
i.loading ? (c(), v("div", it, [
|
|
367
|
-
|
|
368
|
-
])) :
|
|
369
|
-
|
|
365
|
+
Z($(be), { size: 23 })
|
|
366
|
+
])) : L("", !0),
|
|
367
|
+
W("span", rt, [
|
|
370
368
|
i.iconOnRight ? (c(), v(J, { key: 0 }, [
|
|
371
|
-
|
|
372
|
-
], 64)) :
|
|
373
|
-
|
|
374
|
-
i.iconOnRight ?
|
|
375
|
-
|
|
369
|
+
ae(N(e.label), 1)
|
|
370
|
+
], 64)) : L("", !0),
|
|
371
|
+
h(i.$slots, "default"),
|
|
372
|
+
i.iconOnRight ? L("", !0) : (c(), v(J, { key: 1 }, [
|
|
373
|
+
ae(N(e.label), 1)
|
|
376
374
|
], 64))
|
|
377
375
|
])
|
|
378
376
|
], 10, st));
|
|
379
377
|
}
|
|
380
|
-
}), ut = V(dt), ct = /* @__PURE__ */
|
|
378
|
+
}), ut = V(dt), ct = /* @__PURE__ */ x({
|
|
381
379
|
__name: "QButtonGroup",
|
|
382
380
|
props: {
|
|
383
381
|
bStyle: { default: void 0 },
|
|
@@ -404,10 +402,10 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
404
402
|
t.class
|
|
405
403
|
])
|
|
406
404
|
}, [
|
|
407
|
-
|
|
405
|
+
h(o.$slots, "default")
|
|
408
406
|
], 2));
|
|
409
407
|
}
|
|
410
|
-
}), ft = V(ct), pt = /* @__PURE__ */
|
|
408
|
+
}), ft = V(ct), pt = /* @__PURE__ */ x({
|
|
411
409
|
__name: "QButtonToggle",
|
|
412
410
|
props: {
|
|
413
411
|
modelValue: {},
|
|
@@ -436,7 +434,7 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
436
434
|
function r(i) {
|
|
437
435
|
a.value === i.key && !e.mandatory ? a.value = void 0 : a.value = i.key;
|
|
438
436
|
}
|
|
439
|
-
return (i,
|
|
437
|
+
return (i, p) => (c(), B($(ft), {
|
|
440
438
|
"b-style": "secondary",
|
|
441
439
|
class: T(e.class),
|
|
442
440
|
disabled: e.disabled,
|
|
@@ -444,7 +442,7 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
444
442
|
elevated: e.elevated
|
|
445
443
|
}, {
|
|
446
444
|
default: I(() => [
|
|
447
|
-
(c(!0), v(J, null, pe(e.options, (m) => (c(),
|
|
445
|
+
(c(!0), v(J, null, pe(e.options, (m) => (c(), B($(ut), {
|
|
448
446
|
key: m.key,
|
|
449
447
|
title: m.title,
|
|
450
448
|
label: m.label,
|
|
@@ -452,7 +450,7 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
452
450
|
onClick: () => r(m)
|
|
453
451
|
}, {
|
|
454
452
|
default: I(() => [
|
|
455
|
-
|
|
453
|
+
h(i.$slots, m.key)
|
|
456
454
|
]),
|
|
457
455
|
_: 2
|
|
458
456
|
}, 1032, ["title", "label", "active", "onClick"]))), 128))
|
|
@@ -460,7 +458,7 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
460
458
|
_: 3
|
|
461
459
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
462
460
|
}
|
|
463
|
-
}), In = V(pt), mt = /* @__PURE__ */
|
|
461
|
+
}), In = V(pt), mt = /* @__PURE__ */ x({
|
|
464
462
|
__name: "QIcon",
|
|
465
463
|
props: {
|
|
466
464
|
icon: {},
|
|
@@ -481,13 +479,13 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
481
479
|
return;
|
|
482
480
|
}
|
|
483
481
|
});
|
|
484
|
-
return (e, l) => (c(),
|
|
482
|
+
return (e, l) => (c(), B(De(o.value), {
|
|
485
483
|
class: T(t.class),
|
|
486
484
|
icon: t.icon,
|
|
487
485
|
size: t.size
|
|
488
486
|
}, null, 8, ["class", "icon", "size"]));
|
|
489
487
|
}
|
|
490
|
-
}), vt = /* @__PURE__ */
|
|
488
|
+
}), vt = /* @__PURE__ */ x({
|
|
491
489
|
__name: "QIconFont",
|
|
492
490
|
props: {
|
|
493
491
|
icon: {},
|
|
@@ -502,10 +500,10 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
502
500
|
}));
|
|
503
501
|
return (a, r) => (c(), v("i", {
|
|
504
502
|
class: T(["q-icon", "q-icon__font", o.value, e.value, t.class]),
|
|
505
|
-
style:
|
|
503
|
+
style: se(l.value)
|
|
506
504
|
}, null, 6));
|
|
507
505
|
}
|
|
508
|
-
}), ht = ["src"], yt = /* @__PURE__ */
|
|
506
|
+
}), ht = ["src"], yt = /* @__PURE__ */ x({
|
|
509
507
|
__name: "QIconImg",
|
|
510
508
|
props: {
|
|
511
509
|
icon: {},
|
|
@@ -519,10 +517,10 @@ const be = V(ot), st = ["disabled"], it = {
|
|
|
519
517
|
return (e, l) => (c(), v("img", {
|
|
520
518
|
src: t.icon,
|
|
521
519
|
class: T(["q-icon", "q-icon__img", t.class]),
|
|
522
|
-
style:
|
|
520
|
+
style: se(o.value)
|
|
523
521
|
}, null, 14, ht));
|
|
524
522
|
}
|
|
525
|
-
}), le = {}, bt =
|
|
523
|
+
}), le = {}, bt = x({
|
|
526
524
|
name: "InlineSvg",
|
|
527
525
|
emits: ["loaded", "unloaded", "error"],
|
|
528
526
|
inheritAttrs: !1,
|
|
@@ -635,7 +633,7 @@ function _t(n) {
|
|
|
635
633
|
);
|
|
636
634
|
return o.getIsPending = () => t, o;
|
|
637
635
|
}
|
|
638
|
-
const kt = /* @__PURE__ */
|
|
636
|
+
const kt = /* @__PURE__ */ x({
|
|
639
637
|
__name: "QIconSvg",
|
|
640
638
|
props: {
|
|
641
639
|
icon: {},
|
|
@@ -654,16 +652,16 @@ const kt = /* @__PURE__ */ L({
|
|
|
654
652
|
function r() {
|
|
655
653
|
o("unloaded");
|
|
656
654
|
}
|
|
657
|
-
return (i,
|
|
655
|
+
return (i, p) => (c(), B($(bt), {
|
|
658
656
|
class: T(["q-icon", "q-icon__svg", e.class]),
|
|
659
657
|
src: e.bundle,
|
|
660
658
|
symbol: e.icon,
|
|
661
|
-
style:
|
|
659
|
+
style: se(l.value),
|
|
662
660
|
onLoaded: a,
|
|
663
661
|
onUnloaded: r
|
|
664
662
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
665
663
|
}
|
|
666
|
-
}),
|
|
664
|
+
}), ee = V(mt), wt = V(vt), $t = V(yt), It = V(kt), qt = /* @__PURE__ */ x({
|
|
667
665
|
__name: "QList",
|
|
668
666
|
props: {
|
|
669
667
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -677,8 +675,8 @@ const kt = /* @__PURE__ */ L({
|
|
|
677
675
|
},
|
|
678
676
|
emits: ["update:modelValue"],
|
|
679
677
|
setup(n, { expose: t, emit: o }) {
|
|
680
|
-
const e = o, l = n, a = q(l.modelValue), r = q(!1), i = g(() =>
|
|
681
|
-
function
|
|
678
|
+
const e = o, l = n, a = q(l.modelValue), r = q(!1), i = g(() => p.value.length > 1 ? "div" : "ul"), p = g(() => l.groups.length ? l.groups : [{ id: "", title: "" }]), m = q(null);
|
|
679
|
+
function f(d) {
|
|
682
680
|
a.value = d, e("update:modelValue", d);
|
|
683
681
|
}
|
|
684
682
|
function _() {
|
|
@@ -688,13 +686,13 @@ const kt = /* @__PURE__ */ L({
|
|
|
688
686
|
r.value = !1;
|
|
689
687
|
}
|
|
690
688
|
function E(d) {
|
|
691
|
-
var
|
|
692
|
-
if ((
|
|
689
|
+
var S;
|
|
690
|
+
if ((S = m.value) != null && S.contains(d.relatedTarget))
|
|
693
691
|
return;
|
|
694
|
-
let
|
|
695
|
-
a.value ?
|
|
692
|
+
let b;
|
|
693
|
+
a.value ? b = l.items.findIndex((ue) => ue[l.itemValue] === a.value) : b = Q();
|
|
696
694
|
const k = r.value;
|
|
697
|
-
O(
|
|
695
|
+
O(b, k);
|
|
698
696
|
}
|
|
699
697
|
function A(d) {
|
|
700
698
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && d.preventDefault(), d.key) {
|
|
@@ -716,7 +714,7 @@ const kt = /* @__PURE__ */ L({
|
|
|
716
714
|
switch (d) {
|
|
717
715
|
case "next":
|
|
718
716
|
case "prev":
|
|
719
|
-
O(
|
|
717
|
+
O(X(d));
|
|
720
718
|
break;
|
|
721
719
|
case "first":
|
|
722
720
|
O(Q());
|
|
@@ -726,53 +724,53 @@ const kt = /* @__PURE__ */ L({
|
|
|
726
724
|
break;
|
|
727
725
|
}
|
|
728
726
|
}
|
|
729
|
-
function O(d,
|
|
730
|
-
var
|
|
731
|
-
(
|
|
727
|
+
function O(d, b = !1) {
|
|
728
|
+
var S;
|
|
729
|
+
(S = z()[d]) == null || S.focus({ preventScroll: b });
|
|
732
730
|
}
|
|
733
731
|
function z() {
|
|
734
|
-
var
|
|
735
|
-
const d = (
|
|
732
|
+
var b;
|
|
733
|
+
const d = (b = m.value) == null ? void 0 : b.querySelectorAll("li");
|
|
736
734
|
return d ? Array.from(d) : [];
|
|
737
735
|
}
|
|
738
736
|
function H(d) {
|
|
739
737
|
return z()[d];
|
|
740
738
|
}
|
|
741
|
-
function
|
|
739
|
+
function j() {
|
|
742
740
|
return z().indexOf(document.activeElement);
|
|
743
741
|
}
|
|
744
742
|
function Q() {
|
|
745
|
-
const d = z(),
|
|
746
|
-
return
|
|
743
|
+
const d = z(), b = d.find((k) => y(k));
|
|
744
|
+
return b ? d.indexOf(b) : -1;
|
|
747
745
|
}
|
|
748
746
|
function M() {
|
|
749
|
-
const d = z(),
|
|
750
|
-
return
|
|
747
|
+
const d = z(), b = [...d].reverse().find((k) => y(k));
|
|
748
|
+
return b ? d.indexOf(b) : -1;
|
|
751
749
|
}
|
|
752
|
-
function U(d,
|
|
753
|
-
return
|
|
750
|
+
function U(d, b, k) {
|
|
751
|
+
return b === "prev" && d === 0 || b === "next" && d === k.length - 1;
|
|
754
752
|
}
|
|
755
|
-
function
|
|
756
|
-
const
|
|
757
|
-
return K(
|
|
753
|
+
function X(d) {
|
|
754
|
+
const b = j();
|
|
755
|
+
return K(b, d);
|
|
758
756
|
}
|
|
759
|
-
function K(d,
|
|
757
|
+
function K(d, b) {
|
|
760
758
|
const k = z();
|
|
761
|
-
if (U(d,
|
|
759
|
+
if (U(d, b, k))
|
|
762
760
|
return d;
|
|
763
|
-
let
|
|
764
|
-
for (; !
|
|
765
|
-
if (U(
|
|
761
|
+
let S = d + (b === "next" ? 1 : -1);
|
|
762
|
+
for (; !y(k[S]); ) {
|
|
763
|
+
if (U(S, b, k))
|
|
766
764
|
return d;
|
|
767
|
-
|
|
765
|
+
S += b === "next" ? 1 : -1;
|
|
768
766
|
}
|
|
769
|
-
return
|
|
767
|
+
return S;
|
|
770
768
|
}
|
|
771
|
-
function
|
|
769
|
+
function y(d) {
|
|
772
770
|
return d.tabIndex === -2;
|
|
773
771
|
}
|
|
774
772
|
function u(d) {
|
|
775
|
-
return d ? l.items.filter((
|
|
773
|
+
return d ? l.items.filter((b) => b.group === d) : l.items;
|
|
776
774
|
}
|
|
777
775
|
return F(
|
|
778
776
|
() => l.modelValue,
|
|
@@ -785,7 +783,7 @@ const kt = /* @__PURE__ */ L({
|
|
|
785
783
|
getAdjacentItemIndex: K,
|
|
786
784
|
getFirstFocusableItemIndex: Q,
|
|
787
785
|
getLastFocusableItemIndex: M
|
|
788
|
-
}), (d,
|
|
786
|
+
}), (d, b) => (c(), B(De(i.value), {
|
|
789
787
|
ref_key: "listRef",
|
|
790
788
|
ref: m,
|
|
791
789
|
class: T(["q-list", { "q-list--disabled": l.disabled }, l.class]),
|
|
@@ -797,24 +795,24 @@ const kt = /* @__PURE__ */ L({
|
|
|
797
795
|
onKeydown: A
|
|
798
796
|
}, {
|
|
799
797
|
default: I(() => [
|
|
800
|
-
(c(!0), v(J, null, pe(
|
|
798
|
+
(c(!0), v(J, null, pe(p.value, (k) => (c(), B($(Ct), {
|
|
801
799
|
key: k.id,
|
|
802
|
-
title:
|
|
800
|
+
title: p.value.length === 1 ? void 0 : k.title,
|
|
803
801
|
disabled: k.disabled
|
|
804
802
|
}, {
|
|
805
803
|
default: I(() => [
|
|
806
|
-
(c(!0), v(J, null, pe(u(k.id), (
|
|
807
|
-
key:
|
|
808
|
-
value:
|
|
809
|
-
label:
|
|
810
|
-
icon:
|
|
811
|
-
disabled: l.disabled ||
|
|
812
|
-
highlighted: l.highlighted ===
|
|
813
|
-
selected: a.value ===
|
|
814
|
-
onSelect:
|
|
804
|
+
(c(!0), v(J, null, pe(u(k.id), (S) => (c(), B($(zt), {
|
|
805
|
+
key: S[l.itemValue],
|
|
806
|
+
value: S[l.itemValue],
|
|
807
|
+
label: S[l.itemLabel],
|
|
808
|
+
icon: S.icon,
|
|
809
|
+
disabled: l.disabled || S.disabled,
|
|
810
|
+
highlighted: l.highlighted === S[l.itemValue],
|
|
811
|
+
selected: a.value === S[l.itemValue],
|
|
812
|
+
onSelect: f
|
|
815
813
|
}, {
|
|
816
814
|
default: I(() => [
|
|
817
|
-
|
|
815
|
+
h(d.$slots, "item", { item: S })
|
|
818
816
|
]),
|
|
819
817
|
_: 2
|
|
820
818
|
}, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
@@ -830,11 +828,11 @@ let St = 0;
|
|
|
830
828
|
function te() {
|
|
831
829
|
return `uid-${++St}`;
|
|
832
830
|
}
|
|
833
|
-
const
|
|
831
|
+
const Lt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-list-item__check-container" }, xt = {
|
|
834
832
|
check: {
|
|
835
833
|
icon: "check"
|
|
836
834
|
}
|
|
837
|
-
}, Vt = /* @__PURE__ */
|
|
835
|
+
}, Vt = /* @__PURE__ */ x({
|
|
838
836
|
__name: "QListItem",
|
|
839
837
|
props: {
|
|
840
838
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -854,7 +852,7 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
|
|
|
854
852
|
function r(i) {
|
|
855
853
|
i.key === "Tab" && a(), (i.key === "Enter" || i.key === " ") && (i.preventDefault(), i.stopPropagation(), a());
|
|
856
854
|
}
|
|
857
|
-
return (i,
|
|
855
|
+
return (i, p) => (c(), v("li", {
|
|
858
856
|
id: $(l),
|
|
859
857
|
role: "option",
|
|
860
858
|
tabindex: e.disabled ? void 0 : -2,
|
|
@@ -871,16 +869,16 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
|
|
|
871
869
|
onKeydown: r,
|
|
872
870
|
onClick: ne(a, ["stop", "prevent"])
|
|
873
871
|
}, [
|
|
874
|
-
|
|
875
|
-
e.icon ? (c(),
|
|
876
|
-
|
|
872
|
+
h(i.$slots, "default", {}, () => [
|
|
873
|
+
e.icon ? (c(), B($(ee), ie(P({ key: 0 }, e.icon)), null, 16)) : L("", !0),
|
|
874
|
+
ae(" " + N(e.label), 1)
|
|
877
875
|
]),
|
|
878
|
-
|
|
879
|
-
e.selected ? (c(),
|
|
876
|
+
W("div", Bt, [
|
|
877
|
+
e.selected ? (c(), B($(ee), P({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
|
|
880
878
|
])
|
|
881
|
-
], 42,
|
|
879
|
+
], 42, Lt));
|
|
882
880
|
}
|
|
883
|
-
}), Dt = ["aria-labelledby"], Tt = ["id"], Et = /* @__PURE__ */
|
|
881
|
+
}), Dt = ["aria-labelledby"], Tt = ["id"], Et = /* @__PURE__ */ x({
|
|
884
882
|
__name: "QListItemGroup",
|
|
885
883
|
props: {
|
|
886
884
|
title: { default: "" },
|
|
@@ -898,31 +896,31 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
|
|
|
898
896
|
id: $(o),
|
|
899
897
|
class: "q-list-item-group__title",
|
|
900
898
|
role: "presentation"
|
|
901
|
-
}, N(t.title), 9, Tt)) :
|
|
902
|
-
|
|
899
|
+
}, N(t.title), 9, Tt)) : L("", !0),
|
|
900
|
+
h(e.$slots, "default")
|
|
903
901
|
], 8, Dt));
|
|
904
902
|
}
|
|
905
903
|
}), Qe = V(qt), zt = V(Vt), Ct = V(Et);
|
|
906
904
|
function Ft(n, t, o = "right", e) {
|
|
907
|
-
const l = n.getBoundingClientRect(), a = l.x + window.scrollX, r = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(),
|
|
908
|
-
let
|
|
909
|
-
i && !Re(l, i,
|
|
910
|
-
const _ = { x: 0, y: 0, placement:
|
|
911
|
-
switch (
|
|
905
|
+
const l = n.getBoundingClientRect(), a = l.x + window.scrollX, r = l.y + window.scrollY, i = t == null ? void 0 : t.getBoundingClientRect(), p = (i == null ? void 0 : i.width) ?? 0, m = (i == null ? void 0 : i.height) ?? 0;
|
|
906
|
+
let f = o;
|
|
907
|
+
i && !Re(l, i, f) && (f = At(l, i, f));
|
|
908
|
+
const _ = { x: 0, y: 0, placement: f };
|
|
909
|
+
switch (f) {
|
|
912
910
|
case "top":
|
|
913
|
-
e === "anchor" ? _.x = a : _.x = a + (l.width -
|
|
911
|
+
e === "anchor" ? _.x = a : _.x = a + (l.width - p) / 2, _.y = r - m;
|
|
914
912
|
break;
|
|
915
913
|
case "bottom":
|
|
916
|
-
e === "anchor" ? _.x = a : _.x = a + (l.width -
|
|
914
|
+
e === "anchor" ? _.x = a : _.x = a + (l.width - p) / 2, _.y = r + l.height;
|
|
917
915
|
break;
|
|
918
916
|
case "left":
|
|
919
|
-
_.x = a -
|
|
917
|
+
_.x = a - p, _.y = r + l.height / 2 - m / 2;
|
|
920
918
|
break;
|
|
921
919
|
case "right":
|
|
922
920
|
_.x = a + l.width, _.y = r + l.height / 2 - m / 2;
|
|
923
921
|
break;
|
|
924
922
|
}
|
|
925
|
-
return e === "anchor" && l.width >=
|
|
923
|
+
return e === "anchor" && l.width >= p && (_.width = l.width), _;
|
|
926
924
|
}
|
|
927
925
|
function Re(n, t, o) {
|
|
928
926
|
let e = !1, l = !1;
|
|
@@ -934,15 +932,15 @@ function Re(n, t, o) {
|
|
|
934
932
|
e = Be(n, t), l = window.innerHeight - n.top - n.height > t.height;
|
|
935
933
|
break;
|
|
936
934
|
case "left":
|
|
937
|
-
e = n.left > t.width, l =
|
|
935
|
+
e = n.left > t.width, l = Le(n, t);
|
|
938
936
|
break;
|
|
939
937
|
case "right":
|
|
940
|
-
e = window.innerWidth - n.left - n.width > t.width, l =
|
|
938
|
+
e = window.innerWidth - n.left - n.width > t.width, l = Le(n, t);
|
|
941
939
|
break;
|
|
942
940
|
}
|
|
943
941
|
return e && l;
|
|
944
942
|
}
|
|
945
|
-
function
|
|
943
|
+
function Le(n, t) {
|
|
946
944
|
return window.innerHeight - n.top - n.height / 2 > t.height / 2 && n.top + n.height / 2 > t.height / 2;
|
|
947
945
|
}
|
|
948
946
|
function Be(n, t) {
|
|
@@ -967,7 +965,7 @@ const Qt = ["role"], Rt = {
|
|
|
967
965
|
key: 0,
|
|
968
966
|
role: "presentation",
|
|
969
967
|
class: "q-overlay__arrow"
|
|
970
|
-
}, Mt = /* @__PURE__ */
|
|
968
|
+
}, Mt = /* @__PURE__ */ x({
|
|
971
969
|
inheritAttrs: !1,
|
|
972
970
|
__name: "QOverlay",
|
|
973
971
|
props: {
|
|
@@ -1011,8 +1009,8 @@ const Qt = ["role"], Rt = {
|
|
|
1011
1009
|
() => r.visible,
|
|
1012
1010
|
() => r.animating = !0
|
|
1013
1011
|
);
|
|
1014
|
-
const
|
|
1015
|
-
let
|
|
1012
|
+
const p = g(() => {
|
|
1013
|
+
let y = 0, u = 0;
|
|
1016
1014
|
switch (r.placement) {
|
|
1017
1015
|
case "top":
|
|
1018
1016
|
u = -(e.offset || 0);
|
|
@@ -1021,24 +1019,24 @@ const Qt = ["role"], Rt = {
|
|
|
1021
1019
|
u = e.offset || 0;
|
|
1022
1020
|
break;
|
|
1023
1021
|
case "left":
|
|
1024
|
-
|
|
1022
|
+
y = -(e.offset || 0);
|
|
1025
1023
|
break;
|
|
1026
1024
|
case "right":
|
|
1027
|
-
|
|
1025
|
+
y = e.offset || 0;
|
|
1028
1026
|
break;
|
|
1029
1027
|
}
|
|
1030
1028
|
const d = {
|
|
1031
1029
|
top: `${r.top + u}px`,
|
|
1032
|
-
left: `${r.left +
|
|
1030
|
+
left: `${r.left + y}px`
|
|
1033
1031
|
};
|
|
1034
1032
|
return r.width !== void 0 && ["top", "bottom"].includes(r.placement) && (d.width = `${r.width}px`), d;
|
|
1035
1033
|
}), m = q(null);
|
|
1036
|
-
function
|
|
1034
|
+
function f() {
|
|
1037
1035
|
if (e.anchor) {
|
|
1038
|
-
const
|
|
1039
|
-
if (
|
|
1036
|
+
const y = oe(e.anchor);
|
|
1037
|
+
if (y) {
|
|
1040
1038
|
const u = Ft(
|
|
1041
|
-
|
|
1039
|
+
y,
|
|
1042
1040
|
m.value,
|
|
1043
1041
|
e.placement,
|
|
1044
1042
|
e.width
|
|
@@ -1047,21 +1045,21 @@ const Qt = ["role"], Rt = {
|
|
|
1047
1045
|
}
|
|
1048
1046
|
}
|
|
1049
1047
|
}
|
|
1050
|
-
F([() => i.value, () => e.placement],
|
|
1048
|
+
F([() => i.value, () => e.placement], f);
|
|
1051
1049
|
let _;
|
|
1052
|
-
function C(
|
|
1050
|
+
function C(y) {
|
|
1053
1051
|
_ || (_ = window.setTimeout(() => {
|
|
1054
|
-
r.visible = !0,
|
|
1052
|
+
r.visible = !0, Y(() => {
|
|
1055
1053
|
var u;
|
|
1056
1054
|
e.trigger === "click" && ((u = m.value) == null || u.focus());
|
|
1057
1055
|
});
|
|
1058
|
-
},
|
|
1056
|
+
}, y));
|
|
1059
1057
|
}
|
|
1060
1058
|
function E() {
|
|
1061
|
-
clearTimeout(_), _ = void 0, r.visible = !1,
|
|
1059
|
+
clearTimeout(_), _ = void 0, r.visible = !1, Y(() => {
|
|
1062
1060
|
if (e.anchor && e.trigger === "click") {
|
|
1063
|
-
const
|
|
1064
|
-
|
|
1061
|
+
const y = oe(e.anchor);
|
|
1062
|
+
y == null || y.focus();
|
|
1065
1063
|
}
|
|
1066
1064
|
});
|
|
1067
1065
|
}
|
|
@@ -1074,62 +1072,62 @@ const Qt = ["role"], Rt = {
|
|
|
1074
1072
|
}
|
|
1075
1073
|
let z;
|
|
1076
1074
|
function H() {
|
|
1077
|
-
|
|
1075
|
+
Y(() => {
|
|
1078
1076
|
if (!e.anchor)
|
|
1079
1077
|
return;
|
|
1080
|
-
const
|
|
1081
|
-
if (
|
|
1078
|
+
const y = oe(e.anchor);
|
|
1079
|
+
if (y)
|
|
1082
1080
|
switch (e.trigger) {
|
|
1083
1081
|
case "click":
|
|
1084
|
-
|
|
1082
|
+
y.addEventListener("click", () => C(0));
|
|
1085
1083
|
break;
|
|
1086
1084
|
case "hover":
|
|
1087
|
-
|
|
1085
|
+
y.addEventListener("mouseenter", () => C(e.delay)), y.addEventListener("mouseleave", E), y.addEventListener("focusin", () => C(0)), y.addEventListener("focusout", E);
|
|
1088
1086
|
break;
|
|
1089
1087
|
}
|
|
1090
1088
|
});
|
|
1091
1089
|
}
|
|
1092
|
-
function
|
|
1093
|
-
|
|
1090
|
+
function j() {
|
|
1091
|
+
Y(() => {
|
|
1094
1092
|
if (!e.anchor)
|
|
1095
1093
|
return;
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1094
|
+
const y = oe(e.anchor);
|
|
1095
|
+
y && (window.addEventListener("scroll", f), window.addEventListener("resize", f), z = new MutationObserver(f), z.observe(y, {
|
|
1098
1096
|
attributes: !1,
|
|
1099
1097
|
childList: !0,
|
|
1100
1098
|
characterData: !0,
|
|
1101
1099
|
subtree: !0
|
|
1102
|
-
}),
|
|
1100
|
+
}), f());
|
|
1103
1101
|
});
|
|
1104
1102
|
}
|
|
1105
1103
|
function Q() {
|
|
1106
|
-
window.removeEventListener("scroll",
|
|
1104
|
+
window.removeEventListener("scroll", f), window.removeEventListener("resize", f), z == null || z.disconnect();
|
|
1107
1105
|
}
|
|
1108
1106
|
let M;
|
|
1109
1107
|
function U() {
|
|
1110
1108
|
if (!e.anchor)
|
|
1111
1109
|
return;
|
|
1112
|
-
oe(e.anchor) ? (
|
|
1110
|
+
oe(e.anchor) ? (f(), M = window.setTimeout(U, 100)) : E();
|
|
1113
1111
|
}
|
|
1114
|
-
function
|
|
1115
|
-
|
|
1112
|
+
function X() {
|
|
1113
|
+
j(), e.spy && U();
|
|
1116
1114
|
}
|
|
1117
1115
|
function K() {
|
|
1118
1116
|
Q(), e.spy && (clearTimeout(M), M = void 0);
|
|
1119
1117
|
}
|
|
1120
|
-
return Ne(K),
|
|
1118
|
+
return Ne(K), Te(f), F(
|
|
1121
1119
|
() => e.disabled,
|
|
1122
|
-
(
|
|
1123
|
-
|
|
1120
|
+
(y) => {
|
|
1121
|
+
y || H();
|
|
1124
1122
|
},
|
|
1125
1123
|
{ immediate: !0 }
|
|
1126
1124
|
), F(
|
|
1127
1125
|
() => i.value,
|
|
1128
|
-
(
|
|
1129
|
-
|
|
1126
|
+
(y) => {
|
|
1127
|
+
y ? X() : K();
|
|
1130
1128
|
},
|
|
1131
1129
|
{ immediate: !0 }
|
|
1132
|
-
), (
|
|
1130
|
+
), (y, u) => (c(), B(He, {
|
|
1133
1131
|
disabled: !i.value && !r.animating || !e.attach,
|
|
1134
1132
|
to: e.attach
|
|
1135
1133
|
}, [
|
|
@@ -1139,8 +1137,8 @@ const Qt = ["role"], Rt = {
|
|
|
1139
1137
|
"q-overlay__underlay",
|
|
1140
1138
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1141
1139
|
])
|
|
1142
|
-
}, null, 2)) :
|
|
1143
|
-
|
|
1140
|
+
}, null, 2)) : L("", !0),
|
|
1141
|
+
Z(Ke, {
|
|
1144
1142
|
name: e.transition,
|
|
1145
1143
|
appear: "",
|
|
1146
1144
|
onEnter: R,
|
|
@@ -1150,22 +1148,22 @@ const Qt = ["role"], Rt = {
|
|
|
1150
1148
|
i.value ? (c(), v("div", {
|
|
1151
1149
|
key: 0,
|
|
1152
1150
|
class: T(l.value),
|
|
1153
|
-
style:
|
|
1151
|
+
style: se(p.value)
|
|
1154
1152
|
}, [
|
|
1155
|
-
|
|
1153
|
+
W("div", P({
|
|
1156
1154
|
class: "q-overlay__content",
|
|
1157
1155
|
ref_key: "overlayRef",
|
|
1158
1156
|
ref: m,
|
|
1159
1157
|
tabindex: "-1",
|
|
1160
1158
|
role: a.value ? "dialog" : void 0
|
|
1161
|
-
},
|
|
1162
|
-
onKeydown:
|
|
1159
|
+
}, y.$attrs, {
|
|
1160
|
+
onKeydown: Ge(E, ["escape"]),
|
|
1163
1161
|
onBlur: E
|
|
1164
1162
|
}), [
|
|
1165
|
-
e.arrow ? (c(), v("div", Rt)) :
|
|
1166
|
-
|
|
1163
|
+
e.arrow ? (c(), v("div", Rt)) : L("", !0),
|
|
1164
|
+
h(y.$slots, "default")
|
|
1167
1165
|
], 16, Qt)
|
|
1168
|
-
], 6)) :
|
|
1166
|
+
], 6)) : L("", !0)
|
|
1169
1167
|
]),
|
|
1170
1168
|
_: 3
|
|
1171
1169
|
}, 8, ["name"])
|
|
@@ -1180,10 +1178,10 @@ const Qt = ["role"], Rt = {
|
|
|
1180
1178
|
}, Kt = {
|
|
1181
1179
|
key: 1,
|
|
1182
1180
|
class: "q-field__append"
|
|
1183
|
-
},
|
|
1181
|
+
}, Gt = {
|
|
1184
1182
|
key: 1,
|
|
1185
1183
|
class: "q-field__extras"
|
|
1186
|
-
},
|
|
1184
|
+
}, Wt = /* @__PURE__ */ x({
|
|
1187
1185
|
inheritAttrs: !1,
|
|
1188
1186
|
__name: "QField",
|
|
1189
1187
|
props: {
|
|
@@ -1213,33 +1211,33 @@ const Qt = ["role"], Rt = {
|
|
|
1213
1211
|
])
|
|
1214
1212
|
}, [
|
|
1215
1213
|
o.label ? (c(), v("div", Ut, [
|
|
1216
|
-
|
|
1217
|
-
|
|
1214
|
+
h(a.$slots, "label.prepend"),
|
|
1215
|
+
W("label", {
|
|
1218
1216
|
for: o.id
|
|
1219
1217
|
}, N(o.label), 9, Nt),
|
|
1220
|
-
|
|
1221
|
-
])) :
|
|
1222
|
-
|
|
1223
|
-
|
|
1218
|
+
h(a.$slots, "label.append")
|
|
1219
|
+
])) : L("", !0),
|
|
1220
|
+
h(a.$slots, "control", {}, () => [
|
|
1221
|
+
W("div", P({
|
|
1224
1222
|
class: "q-field__control",
|
|
1225
1223
|
ref_key: "fieldRef",
|
|
1226
1224
|
ref: e
|
|
1227
1225
|
}, a.$attrs), [
|
|
1228
1226
|
a.$slots.prepend ? (c(), v("div", Ht, [
|
|
1229
|
-
|
|
1230
|
-
])) :
|
|
1231
|
-
|
|
1227
|
+
h(a.$slots, "prepend")
|
|
1228
|
+
])) : L("", !0),
|
|
1229
|
+
h(a.$slots, "default"),
|
|
1232
1230
|
a.$slots.append ? (c(), v("div", Kt, [
|
|
1233
|
-
|
|
1234
|
-
])) :
|
|
1231
|
+
h(a.$slots, "append")
|
|
1232
|
+
])) : L("", !0)
|
|
1235
1233
|
], 16)
|
|
1236
1234
|
]),
|
|
1237
|
-
a.$slots.extras ? (c(), v("div",
|
|
1238
|
-
|
|
1239
|
-
])) :
|
|
1235
|
+
a.$slots.extras ? (c(), v("div", Gt, [
|
|
1236
|
+
h(a.$slots, "extras")
|
|
1237
|
+
])) : L("", !0)
|
|
1240
1238
|
], 10, Ot));
|
|
1241
1239
|
}
|
|
1242
|
-
}), ge = V(
|
|
1240
|
+
}), ge = V(Wt), jt = ["type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ x({
|
|
1243
1241
|
inheritAttrs: !1,
|
|
1244
1242
|
__name: "QTextField",
|
|
1245
1243
|
props: {
|
|
@@ -1258,26 +1256,26 @@ const Qt = ["role"], Rt = {
|
|
|
1258
1256
|
},
|
|
1259
1257
|
emits: ["update:modelValue"],
|
|
1260
1258
|
setup(n, { expose: t, emit: o }) {
|
|
1261
|
-
const e = o, l = n, a = q(l.modelValue), r = q(null), i = q(null),
|
|
1259
|
+
const e = o, l = n, a = q(l.modelValue), r = q(null), i = q(null), p = g({
|
|
1262
1260
|
get() {
|
|
1263
1261
|
return a.value;
|
|
1264
1262
|
},
|
|
1265
|
-
set(
|
|
1266
|
-
a.value =
|
|
1263
|
+
set(f) {
|
|
1264
|
+
a.value = f, e("update:modelValue", f);
|
|
1267
1265
|
}
|
|
1268
1266
|
}), m = g(
|
|
1269
1267
|
() => l.readonly || l.disabled ? "" : l.placeholder
|
|
1270
1268
|
);
|
|
1271
1269
|
return F(
|
|
1272
1270
|
() => l.modelValue,
|
|
1273
|
-
(
|
|
1271
|
+
(f) => a.value = f
|
|
1274
1272
|
), t({
|
|
1275
1273
|
fieldRef: g(() => {
|
|
1276
|
-
var
|
|
1277
|
-
return (
|
|
1274
|
+
var f;
|
|
1275
|
+
return (f = r.value) == null ? void 0 : f.fieldRef;
|
|
1278
1276
|
}),
|
|
1279
1277
|
inputRef: i
|
|
1280
|
-
}), (
|
|
1278
|
+
}), (f, _) => (c(), B($(ge), {
|
|
1281
1279
|
ref_key: "fieldRef",
|
|
1282
1280
|
ref: r,
|
|
1283
1281
|
class: T(["q-text-field", l.class]),
|
|
@@ -1287,16 +1285,16 @@ const Qt = ["role"], Rt = {
|
|
|
1287
1285
|
readonly: l.readonly,
|
|
1288
1286
|
disabled: l.disabled,
|
|
1289
1287
|
required: l.required
|
|
1290
|
-
},
|
|
1288
|
+
}, ve({
|
|
1291
1289
|
"label.prepend": I(() => [
|
|
1292
|
-
|
|
1290
|
+
h(f.$slots, "label.prepend")
|
|
1293
1291
|
]),
|
|
1294
1292
|
"label.append": I(() => [
|
|
1295
|
-
|
|
1293
|
+
h(f.$slots, "label.append")
|
|
1296
1294
|
]),
|
|
1297
1295
|
default: I(() => [
|
|
1298
|
-
|
|
1299
|
-
"onUpdate:modelValue": _[0] || (_[0] = (C) =>
|
|
1296
|
+
We(W("input", P({
|
|
1297
|
+
"onUpdate:modelValue": _[0] || (_[0] = (C) => p.value = C),
|
|
1300
1298
|
ref_key: "inputRef",
|
|
1301
1299
|
ref: i,
|
|
1302
1300
|
class: "q-text-field__input",
|
|
@@ -1307,30 +1305,30 @@ const Qt = ["role"], Rt = {
|
|
|
1307
1305
|
readonly: l.readonly,
|
|
1308
1306
|
disabled: l.disabled,
|
|
1309
1307
|
maxlength: l.maxLength
|
|
1310
|
-
},
|
|
1311
|
-
[je,
|
|
1308
|
+
}, f.$attrs), null, 16, jt), [
|
|
1309
|
+
[je, p.value]
|
|
1312
1310
|
])
|
|
1313
1311
|
]),
|
|
1314
1312
|
_: 2
|
|
1315
1313
|
}, [
|
|
1316
|
-
|
|
1314
|
+
f.$slots.prepend ? {
|
|
1317
1315
|
name: "prepend",
|
|
1318
1316
|
fn: I(() => [
|
|
1319
|
-
|
|
1317
|
+
h(f.$slots, "prepend")
|
|
1320
1318
|
]),
|
|
1321
1319
|
key: "0"
|
|
1322
1320
|
} : void 0,
|
|
1323
|
-
|
|
1321
|
+
f.$slots.append ? {
|
|
1324
1322
|
name: "append",
|
|
1325
1323
|
fn: I(() => [
|
|
1326
|
-
|
|
1324
|
+
h(f.$slots, "append")
|
|
1327
1325
|
]),
|
|
1328
1326
|
key: "1"
|
|
1329
1327
|
} : void 0,
|
|
1330
|
-
|
|
1328
|
+
f.$slots.extras ? {
|
|
1331
1329
|
name: "extras",
|
|
1332
1330
|
fn: I(() => [
|
|
1333
|
-
|
|
1331
|
+
h(f.$slots, "extras")
|
|
1334
1332
|
]),
|
|
1335
1333
|
key: "2"
|
|
1336
1334
|
} : void 0
|
|
@@ -1345,7 +1343,7 @@ const Qt = ["role"], Rt = {
|
|
|
1345
1343
|
clear: {
|
|
1346
1344
|
icon: "close"
|
|
1347
1345
|
}
|
|
1348
|
-
}, en = /* @__PURE__ */
|
|
1346
|
+
}, en = /* @__PURE__ */ x({
|
|
1349
1347
|
__name: "QCombobox",
|
|
1350
1348
|
props: {
|
|
1351
1349
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1370,8 +1368,8 @@ const Qt = ["role"], Rt = {
|
|
|
1370
1368
|
},
|
|
1371
1369
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
1372
1370
|
setup(n, { expose: t, emit: o }) {
|
|
1373
|
-
const e = o, l = n, a = q(l.modelValue), r = q(!1), i = q(""),
|
|
1374
|
-
|
|
1371
|
+
const e = o, l = n, a = q(l.modelValue), r = q(!1), i = q(""), p = q(void 0), m = q(null), f = q(null), _ = q(null);
|
|
1372
|
+
Te(Q);
|
|
1375
1373
|
const C = g(
|
|
1376
1374
|
() => l.clearable && !l.readonly && !l.disabled && !l.loading
|
|
1377
1375
|
), E = g(() => {
|
|
@@ -1383,14 +1381,14 @@ const Qt = ["role"], Rt = {
|
|
|
1383
1381
|
var s;
|
|
1384
1382
|
return (s = l.items) == null ? void 0 : s.find((w) => w[l.itemValue] === a.value);
|
|
1385
1383
|
}), R = g(() => {
|
|
1386
|
-
const s =
|
|
1384
|
+
const s = p.value;
|
|
1387
1385
|
if (s !== void 0 && E.value[s])
|
|
1388
1386
|
return E.value[s];
|
|
1389
1387
|
}), O = g(() => {
|
|
1390
1388
|
var w;
|
|
1391
|
-
if (
|
|
1389
|
+
if (p.value === void 0)
|
|
1392
1390
|
return;
|
|
1393
|
-
const s = (w =
|
|
1391
|
+
const s = (w = f.value) == null ? void 0 : w.getItem(p.value);
|
|
1394
1392
|
return s == null ? void 0 : s.id;
|
|
1395
1393
|
}), z = g(() => {
|
|
1396
1394
|
var s;
|
|
@@ -1399,7 +1397,7 @@ const Qt = ["role"], Rt = {
|
|
|
1399
1397
|
function H(s) {
|
|
1400
1398
|
a.value = s, Q(), e("update:modelValue", s);
|
|
1401
1399
|
}
|
|
1402
|
-
function
|
|
1400
|
+
function j(s) {
|
|
1403
1401
|
H(s), U();
|
|
1404
1402
|
}
|
|
1405
1403
|
function Q() {
|
|
@@ -1410,63 +1408,63 @@ const Qt = ["role"], Rt = {
|
|
|
1410
1408
|
r.value || l.readonly || l.disabled || (e("before-show"), r.value = !0);
|
|
1411
1409
|
}
|
|
1412
1410
|
function U() {
|
|
1413
|
-
r.value && (e("before-hide"), r.value = !1,
|
|
1411
|
+
r.value && (e("before-hide"), r.value = !1, p.value = void 0);
|
|
1414
1412
|
}
|
|
1415
|
-
function
|
|
1416
|
-
H(void 0),
|
|
1413
|
+
function X() {
|
|
1414
|
+
H(void 0), p.value = void 0;
|
|
1417
1415
|
}
|
|
1418
1416
|
function K() {
|
|
1419
1417
|
if (M(), A.value !== void 0) {
|
|
1420
1418
|
const s = E.value.indexOf(A.value);
|
|
1421
|
-
s !== -1 &&
|
|
1419
|
+
s !== -1 && Y(() => _e(s));
|
|
1422
1420
|
}
|
|
1423
1421
|
}
|
|
1424
|
-
function
|
|
1422
|
+
function y(s) {
|
|
1425
1423
|
var w, D;
|
|
1426
1424
|
if (!(!s.key || l.readonly || l.disabled))
|
|
1427
1425
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(s.key) && (s.preventDefault(), s.stopPropagation()), s.key === "Escape")
|
|
1428
|
-
r.value ? U() :
|
|
1426
|
+
r.value ? U() : X();
|
|
1429
1427
|
else if (["ArrowDown", "ArrowUp"].includes(s.key))
|
|
1430
|
-
r.value ?
|
|
1431
|
-
if (
|
|
1428
|
+
r.value ? Y(() => {
|
|
1429
|
+
if (p.value === void 0)
|
|
1432
1430
|
u();
|
|
1433
1431
|
else {
|
|
1434
|
-
const
|
|
1435
|
-
|
|
1432
|
+
const G = s.key === "ArrowDown" ? "next" : "prev";
|
|
1433
|
+
b(p.value, G);
|
|
1436
1434
|
}
|
|
1437
|
-
}) : (M(),
|
|
1435
|
+
}) : (M(), Y(() => {
|
|
1438
1436
|
s.key === "ArrowDown" ? u() : d();
|
|
1439
1437
|
}));
|
|
1440
1438
|
else if (s.key === "Enter") {
|
|
1441
1439
|
if (R.value === void 0)
|
|
1442
1440
|
return;
|
|
1443
|
-
|
|
1441
|
+
j(R.value[l.itemValue]);
|
|
1444
1442
|
} else
|
|
1445
|
-
s.key === "Home" ?
|
|
1443
|
+
s.key === "Home" ? p.value = (w = f.value) == null ? void 0 : w.getFirstFocusableItemIndex() : s.key === "End" ? p.value = (D = f.value) == null ? void 0 : D.getLastFocusableItemIndex() : (/^[a-z]$/i.test(s.key) || s.key === "Backspace") && M();
|
|
1446
1444
|
}
|
|
1447
1445
|
function u() {
|
|
1448
1446
|
var s, w;
|
|
1449
1447
|
if (a.value !== void 0) {
|
|
1450
1448
|
const D = E.value.findIndex(
|
|
1451
|
-
(
|
|
1449
|
+
(G) => G[l.itemValue] === a.value
|
|
1452
1450
|
);
|
|
1453
|
-
D === -1 ?
|
|
1451
|
+
D === -1 ? p.value = (s = f.value) == null ? void 0 : s.getFirstFocusableItemIndex() : p.value = D;
|
|
1454
1452
|
} else
|
|
1455
|
-
|
|
1453
|
+
p.value = (w = f.value) == null ? void 0 : w.getFirstFocusableItemIndex();
|
|
1456
1454
|
}
|
|
1457
1455
|
function d() {
|
|
1458
1456
|
var s;
|
|
1459
|
-
|
|
1457
|
+
p.value = (s = f.value) == null ? void 0 : s.getLastFocusableItemIndex();
|
|
1460
1458
|
}
|
|
1461
|
-
function
|
|
1459
|
+
function b(s, w) {
|
|
1462
1460
|
var D;
|
|
1463
|
-
|
|
1461
|
+
p.value = (D = f.value) == null ? void 0 : D.getAdjacentItemIndex(s, w);
|
|
1464
1462
|
}
|
|
1465
1463
|
function k(s) {
|
|
1466
|
-
var w, D,
|
|
1467
|
-
!((w = _.value) != null && w.contains(s.relatedTarget)) && !((
|
|
1464
|
+
var w, D, G;
|
|
1465
|
+
!((w = _.value) != null && w.contains(s.relatedTarget)) && !((G = (D = m.value) == null ? void 0 : D.fieldRef) != null && G.contains(s.relatedTarget)) ? (U(), Q()) : (s.preventDefault(), s.stopPropagation());
|
|
1468
1466
|
}
|
|
1469
|
-
function
|
|
1467
|
+
function S() {
|
|
1470
1468
|
var s, w;
|
|
1471
1469
|
(w = (s = m.value) == null ? void 0 : s.inputRef) == null || w.focus();
|
|
1472
1470
|
}
|
|
@@ -1478,7 +1476,7 @@ const Qt = ["role"], Rt = {
|
|
|
1478
1476
|
}
|
|
1479
1477
|
function _e(s) {
|
|
1480
1478
|
var D;
|
|
1481
|
-
const w = (D =
|
|
1479
|
+
const w = (D = f.value) == null ? void 0 : D.getItem(s);
|
|
1482
1480
|
w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
|
|
1483
1481
|
}
|
|
1484
1482
|
return F(
|
|
@@ -1486,14 +1484,14 @@ const Qt = ["role"], Rt = {
|
|
|
1486
1484
|
(s) => {
|
|
1487
1485
|
a.value = s, Q();
|
|
1488
1486
|
}
|
|
1489
|
-
), F(
|
|
1487
|
+
), F(p, (s) => {
|
|
1490
1488
|
s !== void 0 && _e(s);
|
|
1491
1489
|
}), F(i, (s) => {
|
|
1492
|
-
!s && C.value ?
|
|
1490
|
+
!s && C.value ? X() : r.value && l.selectionMode === "automatic" && Y(u), e("update:inputValue", s);
|
|
1493
1491
|
}), t({
|
|
1494
1492
|
triggerEl: m
|
|
1495
1493
|
}), (s, w) => (c(), v(J, null, [
|
|
1496
|
-
|
|
1494
|
+
Z($(Yt), {
|
|
1497
1495
|
modelValue: i.value,
|
|
1498
1496
|
"onUpdate:modelValue": w[0] || (w[0] = (D) => i.value = D),
|
|
1499
1497
|
id: l.id,
|
|
@@ -1513,43 +1511,43 @@ const Qt = ["role"], Rt = {
|
|
|
1513
1511
|
size: l.size,
|
|
1514
1512
|
onClick: K,
|
|
1515
1513
|
onFocusout: k,
|
|
1516
|
-
onKeydown: ne(
|
|
1517
|
-
},
|
|
1514
|
+
onKeydown: ne(y, ["stop"])
|
|
1515
|
+
}, ve({
|
|
1518
1516
|
"label.prepend": I(() => [
|
|
1519
|
-
|
|
1517
|
+
h(s.$slots, "label.prepend")
|
|
1520
1518
|
]),
|
|
1521
1519
|
"label.append": I(() => [
|
|
1522
|
-
|
|
1520
|
+
h(s.$slots, "label.append")
|
|
1523
1521
|
]),
|
|
1524
1522
|
_: 2
|
|
1525
1523
|
}, [
|
|
1526
1524
|
s.$slots.prepend ? {
|
|
1527
1525
|
name: "prepend",
|
|
1528
1526
|
fn: I(() => [
|
|
1529
|
-
|
|
1527
|
+
h(s.$slots, "prepend")
|
|
1530
1528
|
]),
|
|
1531
1529
|
key: "0"
|
|
1532
1530
|
} : void 0,
|
|
1533
1531
|
C.value && i.value || s.$slots.append ? {
|
|
1534
1532
|
name: "append",
|
|
1535
1533
|
fn: I(() => [
|
|
1536
|
-
C.value && i.value ? (c(),
|
|
1534
|
+
C.value && i.value ? (c(), B($(ee), P({ key: 0 }, l.icons.clear, {
|
|
1537
1535
|
class: "q-combobox__clear",
|
|
1538
|
-
onClick: ne(
|
|
1539
|
-
}), null, 16)) :
|
|
1540
|
-
|
|
1536
|
+
onClick: ne(X, ["stop", "prevent"])
|
|
1537
|
+
}), null, 16)) : L("", !0),
|
|
1538
|
+
h(s.$slots, "append")
|
|
1541
1539
|
]),
|
|
1542
1540
|
key: "1"
|
|
1543
1541
|
} : void 0,
|
|
1544
1542
|
s.$slots.extras ? {
|
|
1545
1543
|
name: "extras",
|
|
1546
1544
|
fn: I(() => [
|
|
1547
|
-
|
|
1545
|
+
h(s.$slots, "extras")
|
|
1548
1546
|
]),
|
|
1549
1547
|
key: "2"
|
|
1550
1548
|
} : void 0
|
|
1551
1549
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1552
|
-
|
|
1550
|
+
Z($(de), {
|
|
1553
1551
|
"model-value": r.value,
|
|
1554
1552
|
spy: "",
|
|
1555
1553
|
trigger: "manual",
|
|
@@ -1563,40 +1561,40 @@ const Qt = ["role"], Rt = {
|
|
|
1563
1561
|
default: I(() => {
|
|
1564
1562
|
var D;
|
|
1565
1563
|
return [
|
|
1566
|
-
|
|
1564
|
+
W("div", {
|
|
1567
1565
|
ref_key: "contentRef",
|
|
1568
1566
|
ref: _,
|
|
1569
1567
|
class: "q-select__body",
|
|
1570
1568
|
onFocusout: k
|
|
1571
1569
|
}, [
|
|
1572
|
-
|
|
1573
|
-
l.loading ? (c(),
|
|
1570
|
+
h(s.$slots, "body.prepend"),
|
|
1571
|
+
l.loading ? (c(), B($(be), {
|
|
1574
1572
|
key: 0,
|
|
1575
1573
|
class: "q-select__loader",
|
|
1576
1574
|
size: 24
|
|
1577
|
-
})) : E.value.length ? (c(),
|
|
1575
|
+
})) : E.value.length ? (c(), B($(Qe), {
|
|
1578
1576
|
key: 1,
|
|
1579
1577
|
ref_key: "listRef",
|
|
1580
|
-
ref:
|
|
1578
|
+
ref: f,
|
|
1581
1579
|
class: "q-select__items",
|
|
1582
1580
|
modelValue: a.value,
|
|
1583
1581
|
"onUpdate:modelValue": [
|
|
1584
|
-
w[1] || (w[1] = (
|
|
1585
|
-
|
|
1582
|
+
w[1] || (w[1] = (G) => a.value = G),
|
|
1583
|
+
j
|
|
1586
1584
|
],
|
|
1587
1585
|
highlighted: (D = R.value) == null ? void 0 : D[l.itemValue],
|
|
1588
1586
|
items: E.value,
|
|
1589
1587
|
groups: s.groups,
|
|
1590
1588
|
"item-label": l.itemLabel,
|
|
1591
1589
|
"item-value": l.itemValue,
|
|
1592
|
-
onMouseup:
|
|
1590
|
+
onMouseup: S
|
|
1593
1591
|
}, {
|
|
1594
|
-
item: I(({ item:
|
|
1595
|
-
|
|
1592
|
+
item: I(({ item: G }) => [
|
|
1593
|
+
h(s.$slots, "item", { item: G })
|
|
1596
1594
|
]),
|
|
1597
1595
|
_: 3
|
|
1598
1596
|
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), v("div", Pt, N(s.texts.noData), 1)),
|
|
1599
|
-
|
|
1597
|
+
h(s.$slots, "body.append")
|
|
1600
1598
|
], 544)
|
|
1601
1599
|
];
|
|
1602
1600
|
}),
|
|
@@ -1610,13 +1608,11 @@ const Qt = ["role"], Rt = {
|
|
|
1610
1608
|
}, nn = { key: 0 }, ln = {
|
|
1611
1609
|
key: 1,
|
|
1612
1610
|
class: "q-input-group__append"
|
|
1613
|
-
}, on = { key: 0 }, an = /* @__PURE__ */
|
|
1611
|
+
}, on = { key: 0 }, an = /* @__PURE__ */ x({
|
|
1614
1612
|
__name: "QInputGroup",
|
|
1615
1613
|
props: {
|
|
1616
1614
|
id: { default: () => te() },
|
|
1617
1615
|
label: { default: "" },
|
|
1618
|
-
readonly: { type: Boolean },
|
|
1619
|
-
disabled: { type: Boolean },
|
|
1620
1616
|
required: { type: Boolean },
|
|
1621
1617
|
prependIcon: { default: void 0 },
|
|
1622
1618
|
appendIcon: { default: void 0 },
|
|
@@ -1629,34 +1625,32 @@ const Qt = ["role"], Rt = {
|
|
|
1629
1625
|
QField: {
|
|
1630
1626
|
size: "block"
|
|
1631
1627
|
}
|
|
1632
|
-
}), (o, e) => (c(),
|
|
1628
|
+
}), (o, e) => (c(), B($(ge), {
|
|
1633
1629
|
id: t.id,
|
|
1634
1630
|
class: T(["q-input-group", t.class]),
|
|
1635
1631
|
label: t.label,
|
|
1636
|
-
readonly: t.readonly,
|
|
1637
|
-
disabled: t.disabled,
|
|
1638
1632
|
required: t.required,
|
|
1639
1633
|
size: t.size
|
|
1640
1634
|
}, {
|
|
1641
1635
|
default: I(() => [
|
|
1642
1636
|
o.$slots.prepend || t.prependIcon ? (c(), v("div", tn, [
|
|
1643
1637
|
t.prependIcon ? (c(), v("span", nn, [
|
|
1644
|
-
|
|
1645
|
-
])) :
|
|
1646
|
-
|
|
1647
|
-
])) :
|
|
1648
|
-
|
|
1638
|
+
Z($(ee), ie(we(t.prependIcon)), null, 16)
|
|
1639
|
+
])) : L("", !0),
|
|
1640
|
+
h(o.$slots, "prepend")
|
|
1641
|
+
])) : L("", !0),
|
|
1642
|
+
h(o.$slots, "default"),
|
|
1649
1643
|
o.$slots.append || t.appendIcon ? (c(), v("div", ln, [
|
|
1650
1644
|
t.appendIcon ? (c(), v("span", on, [
|
|
1651
|
-
|
|
1652
|
-
])) :
|
|
1653
|
-
|
|
1654
|
-
])) :
|
|
1645
|
+
Z($(ee), ie(we(t.appendIcon)), null, 16)
|
|
1646
|
+
])) : L("", !0),
|
|
1647
|
+
h(o.$slots, "append")
|
|
1648
|
+
])) : L("", !0)
|
|
1655
1649
|
]),
|
|
1656
1650
|
_: 3
|
|
1657
|
-
}, 8, ["id", "class", "label", "
|
|
1651
|
+
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1658
1652
|
}
|
|
1659
|
-
}), Sn = V(an), sn = /* @__PURE__ */
|
|
1653
|
+
}), Sn = V(an), sn = /* @__PURE__ */ x({
|
|
1660
1654
|
__name: "QLineLoader",
|
|
1661
1655
|
props: {
|
|
1662
1656
|
class: { default: void 0 }
|
|
@@ -1667,13 +1661,13 @@ const Qt = ["role"], Rt = {
|
|
|
1667
1661
|
class: T(["q-line-loader", t.class])
|
|
1668
1662
|
}, null, 2));
|
|
1669
1663
|
}
|
|
1670
|
-
}),
|
|
1664
|
+
}), Ln = V(sn), rn = {
|
|
1671
1665
|
key: 0,
|
|
1672
1666
|
class: "q-popover__header"
|
|
1673
1667
|
}, dn = {
|
|
1674
1668
|
key: 1,
|
|
1675
1669
|
class: "q-popover__body"
|
|
1676
|
-
}, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */
|
|
1670
|
+
}, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */ x({
|
|
1677
1671
|
inheritAttrs: !1,
|
|
1678
1672
|
__name: "QPopover",
|
|
1679
1673
|
props: {
|
|
@@ -1690,7 +1684,7 @@ const Qt = ["role"], Rt = {
|
|
|
1690
1684
|
},
|
|
1691
1685
|
setup(n) {
|
|
1692
1686
|
const t = n;
|
|
1693
|
-
return (o, e) => (c(),
|
|
1687
|
+
return (o, e) => (c(), B($(de), {
|
|
1694
1688
|
"model-value": t.modelValue,
|
|
1695
1689
|
class: "q-popover",
|
|
1696
1690
|
trigger: "click",
|
|
@@ -1703,21 +1697,21 @@ const Qt = ["role"], Rt = {
|
|
|
1703
1697
|
}, {
|
|
1704
1698
|
default: I(() => [
|
|
1705
1699
|
t.title || o.$slots.header ? (c(), v("h3", rn, [
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
])) :
|
|
1700
|
+
ae(N(t.title) + " ", 1),
|
|
1701
|
+
h(o.$slots, "header")
|
|
1702
|
+
])) : L("", !0),
|
|
1709
1703
|
t.text || o.$slots.body ? (c(), v("div", dn, [
|
|
1710
1704
|
t.html ? (c(), v("span", {
|
|
1711
1705
|
key: 0,
|
|
1712
1706
|
innerHTML: t.text
|
|
1713
1707
|
}, null, 8, un)) : (c(), v("span", cn, N(t.text), 1)),
|
|
1714
|
-
|
|
1715
|
-
])) :
|
|
1708
|
+
h(o.$slots, "body")
|
|
1709
|
+
])) : L("", !0)
|
|
1716
1710
|
]),
|
|
1717
1711
|
_: 3
|
|
1718
1712
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
|
|
1719
1713
|
}
|
|
1720
|
-
}),
|
|
1714
|
+
}), Bn = V(fn), pn = {
|
|
1721
1715
|
key: 0,
|
|
1722
1716
|
class: "q-select__value"
|
|
1723
1717
|
}, mn = {
|
|
@@ -1732,7 +1726,7 @@ const Qt = ["role"], Rt = {
|
|
|
1732
1726
|
clear: {
|
|
1733
1727
|
icon: "close"
|
|
1734
1728
|
}
|
|
1735
|
-
}, yn = /* @__PURE__ */
|
|
1729
|
+
}, yn = /* @__PURE__ */ x({
|
|
1736
1730
|
__name: "QSelect",
|
|
1737
1731
|
props: {
|
|
1738
1732
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1754,13 +1748,13 @@ const Qt = ["role"], Rt = {
|
|
|
1754
1748
|
},
|
|
1755
1749
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
1756
1750
|
setup(n, { emit: t }) {
|
|
1757
|
-
const o = t, e = n, l = q(e.modelValue), a = q(!1), r = q(""), i = q(null),
|
|
1751
|
+
const o = t, e = n, l = q(e.modelValue), a = q(!1), r = q(""), i = q(null), p = q(null), m = q(null), f = g(
|
|
1758
1752
|
() => {
|
|
1759
1753
|
var u;
|
|
1760
1754
|
return (u = e.items) == null ? void 0 : u.find((d) => d[e.itemValue] === l.value);
|
|
1761
1755
|
}
|
|
1762
1756
|
), _ = g(
|
|
1763
|
-
() =>
|
|
1757
|
+
() => f.value ? f.value[e.itemLabel] : ""
|
|
1764
1758
|
), C = g(
|
|
1765
1759
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1766
1760
|
);
|
|
@@ -1774,8 +1768,8 @@ const Qt = ["role"], Rt = {
|
|
|
1774
1768
|
e.readonly || e.disabled || (a.value ? H() : z());
|
|
1775
1769
|
}
|
|
1776
1770
|
function O(u) {
|
|
1777
|
-
var d,
|
|
1778
|
-
!((d = m.value) != null && d.contains(u.relatedTarget)) && !((k = (
|
|
1771
|
+
var d, b, k;
|
|
1772
|
+
!((d = m.value) != null && d.contains(u.relatedTarget)) && !((k = (b = i.value) == null ? void 0 : b.fieldRef) != null && k.contains(u.relatedTarget)) && H();
|
|
1779
1773
|
}
|
|
1780
1774
|
function z() {
|
|
1781
1775
|
a.value || (o("before-show"), a.value = !0);
|
|
@@ -1783,18 +1777,18 @@ const Qt = ["role"], Rt = {
|
|
|
1783
1777
|
function H() {
|
|
1784
1778
|
a.value && (o("before-hide"), a.value = !1);
|
|
1785
1779
|
}
|
|
1786
|
-
let
|
|
1780
|
+
let j;
|
|
1787
1781
|
function Q(u) {
|
|
1788
1782
|
if (!(!u.key || e.readonly || e.disabled)) {
|
|
1789
|
-
if (window.clearTimeout(
|
|
1783
|
+
if (window.clearTimeout(j), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(u.key) && (u.preventDefault(), u.stopPropagation()), ["Enter", " "].includes(u.key) && (a.value = !0), ["Escape", "Tab"].includes(u.key) && (a.value ? a.value = !1 : e.clearable && u.key === "Escape" && A()), u.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(u.key)) {
|
|
1790
1784
|
r.value += u.key.toLowerCase();
|
|
1791
1785
|
for (let d = 0; d < e.items.length; d++)
|
|
1792
1786
|
if (e.items[d][e.itemLabel].toLowerCase().startsWith(r.value)) {
|
|
1793
|
-
|
|
1787
|
+
y(d);
|
|
1794
1788
|
break;
|
|
1795
1789
|
}
|
|
1796
1790
|
}
|
|
1797
|
-
|
|
1791
|
+
j = window.setTimeout(function() {
|
|
1798
1792
|
r.value = "";
|
|
1799
1793
|
}, 500);
|
|
1800
1794
|
}
|
|
@@ -1804,19 +1798,19 @@ const Qt = ["role"], Rt = {
|
|
|
1804
1798
|
e.loading ? (u = m.value) == null || u.focus() : K(), o("show");
|
|
1805
1799
|
}
|
|
1806
1800
|
function U() {
|
|
1807
|
-
|
|
1801
|
+
X(), o("hide");
|
|
1808
1802
|
}
|
|
1809
|
-
function
|
|
1803
|
+
function X() {
|
|
1810
1804
|
var u, d;
|
|
1811
1805
|
(d = (u = i.value) == null ? void 0 : u.fieldRef) == null || d.focus();
|
|
1812
1806
|
}
|
|
1813
1807
|
function K() {
|
|
1814
1808
|
var u;
|
|
1815
|
-
(u =
|
|
1809
|
+
(u = p.value) == null || u.$el.focus();
|
|
1816
1810
|
}
|
|
1817
|
-
function
|
|
1811
|
+
function y(u) {
|
|
1818
1812
|
var d;
|
|
1819
|
-
(d =
|
|
1813
|
+
(d = p.value) == null || d.focusItem(u);
|
|
1820
1814
|
}
|
|
1821
1815
|
return F(
|
|
1822
1816
|
() => e.modelValue,
|
|
@@ -1826,12 +1820,12 @@ const Qt = ["role"], Rt = {
|
|
|
1826
1820
|
), F(
|
|
1827
1821
|
() => e.loading,
|
|
1828
1822
|
(u) => {
|
|
1829
|
-
!u && a.value &&
|
|
1823
|
+
!u && a.value && Y(K);
|
|
1830
1824
|
}
|
|
1831
1825
|
), (u, d) => {
|
|
1832
|
-
var
|
|
1826
|
+
var b;
|
|
1833
1827
|
return c(), v(J, null, [
|
|
1834
|
-
|
|
1828
|
+
Z($(ge), {
|
|
1835
1829
|
id: e.id,
|
|
1836
1830
|
label: e.label,
|
|
1837
1831
|
required: e.required,
|
|
@@ -1855,31 +1849,44 @@ const Qt = ["role"], Rt = {
|
|
|
1855
1849
|
size: e.size,
|
|
1856
1850
|
onClick: R,
|
|
1857
1851
|
onKeydown: ne(Q, ["stop"])
|
|
1858
|
-
},
|
|
1852
|
+
}, ve({
|
|
1859
1853
|
append: I(() => [
|
|
1860
|
-
|
|
1854
|
+
h(u.$slots, "append"),
|
|
1855
|
+
C.value && l.value ? (c(), B($(ee), P({ key: 0 }, e.icons.clear, {
|
|
1861
1856
|
class: "q-select__clear",
|
|
1862
1857
|
onClick: ne(A, ["stop", "prevent"])
|
|
1863
|
-
}), null, 16)) :
|
|
1864
|
-
e.readonly ?
|
|
1858
|
+
}), null, 16)) : L("", !0),
|
|
1859
|
+
e.readonly ? L("", !0) : (c(), B($(ee), P({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
|
|
1865
1860
|
]),
|
|
1866
1861
|
default: I(() => [
|
|
1867
|
-
l.value !== void 0 ? (c(), v("span", pn, N(_.value), 1)) :
|
|
1862
|
+
l.value !== void 0 ? (c(), v("span", pn, N(_.value), 1)) : (c(), v("span", mn, [
|
|
1863
|
+
!e.readonly && !e.disabled ? (c(), v(J, { key: 0 }, [
|
|
1864
|
+
ae(N(u.texts.placeholder), 1)
|
|
1865
|
+
], 64)) : L("", !0)
|
|
1866
|
+
]))
|
|
1868
1867
|
]),
|
|
1869
1868
|
_: 2
|
|
1870
1869
|
}, [
|
|
1871
|
-
(
|
|
1870
|
+
(b = f.value) != null && b.icon || u.$slots.prepend ? {
|
|
1872
1871
|
name: "prepend",
|
|
1873
1872
|
fn: I(() => {
|
|
1874
|
-
var k;
|
|
1873
|
+
var k, S;
|
|
1875
1874
|
return [
|
|
1876
|
-
|
|
1875
|
+
h(u.$slots, "prepend"),
|
|
1876
|
+
(k = f.value) != null && k.icon ? (c(), B($(ee), ie(P({ key: 0 }, (S = f.value) == null ? void 0 : S.icon)), null, 16)) : L("", !0)
|
|
1877
1877
|
];
|
|
1878
1878
|
}),
|
|
1879
1879
|
key: "0"
|
|
1880
|
+
} : void 0,
|
|
1881
|
+
u.$slots.extras ? {
|
|
1882
|
+
name: "extras",
|
|
1883
|
+
fn: I(() => [
|
|
1884
|
+
h(u.$slots, "extras")
|
|
1885
|
+
]),
|
|
1886
|
+
key: "1"
|
|
1880
1887
|
} : void 0
|
|
1881
1888
|
]), 1032, ["id", "label", "required", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1882
|
-
|
|
1889
|
+
Z($(de), {
|
|
1883
1890
|
"model-value": a.value,
|
|
1884
1891
|
spy: "",
|
|
1885
1892
|
trigger: "manual",
|
|
@@ -1891,7 +1898,7 @@ const Qt = ["role"], Rt = {
|
|
|
1891
1898
|
onLeave: U
|
|
1892
1899
|
}, {
|
|
1893
1900
|
default: I(() => [
|
|
1894
|
-
|
|
1901
|
+
W("div", {
|
|
1895
1902
|
ref_key: "contentRef",
|
|
1896
1903
|
ref: m,
|
|
1897
1904
|
class: "q-select__body",
|
|
@@ -1899,15 +1906,15 @@ const Qt = ["role"], Rt = {
|
|
|
1899
1906
|
onFocusout: O,
|
|
1900
1907
|
onKeydown: ne(Q, ["stop"])
|
|
1901
1908
|
}, [
|
|
1902
|
-
|
|
1903
|
-
e.loading ? (c(),
|
|
1909
|
+
h(u.$slots, "body.prepend"),
|
|
1910
|
+
e.loading ? (c(), B($(be), {
|
|
1904
1911
|
key: 0,
|
|
1905
1912
|
class: "q-select__loader",
|
|
1906
1913
|
size: 24
|
|
1907
|
-
})) : (c(),
|
|
1914
|
+
})) : (c(), B($(Qe), {
|
|
1908
1915
|
key: 1,
|
|
1909
1916
|
ref_key: "listRef",
|
|
1910
|
-
ref:
|
|
1917
|
+
ref: p,
|
|
1911
1918
|
class: "q-select__items",
|
|
1912
1919
|
modelValue: l.value,
|
|
1913
1920
|
"onUpdate:modelValue": [
|
|
@@ -1920,11 +1927,11 @@ const Qt = ["role"], Rt = {
|
|
|
1920
1927
|
"item-value": e.itemValue
|
|
1921
1928
|
}, {
|
|
1922
1929
|
item: I(({ item: k }) => [
|
|
1923
|
-
|
|
1930
|
+
h(u.$slots, "item", { item: k })
|
|
1924
1931
|
]),
|
|
1925
1932
|
_: 3
|
|
1926
1933
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
1927
|
-
|
|
1934
|
+
h(u.$slots, "body.append")
|
|
1928
1935
|
], 544)
|
|
1929
1936
|
]),
|
|
1930
1937
|
_: 3
|
|
@@ -1932,7 +1939,7 @@ const Qt = ["role"], Rt = {
|
|
|
1932
1939
|
], 64);
|
|
1933
1940
|
};
|
|
1934
1941
|
}
|
|
1935
|
-
}), xn = V(yn), bn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */
|
|
1942
|
+
}), xn = V(yn), bn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ x({
|
|
1936
1943
|
__name: "QTooltip",
|
|
1937
1944
|
props: {
|
|
1938
1945
|
modelValue: { type: Boolean },
|
|
@@ -1952,10 +1959,10 @@ const Qt = ["role"], Rt = {
|
|
|
1952
1959
|
setup(n) {
|
|
1953
1960
|
const t = n;
|
|
1954
1961
|
return (o, e) => (c(), v(J, null, [
|
|
1955
|
-
|
|
1962
|
+
h(o.$slots, "anchor", {
|
|
1956
1963
|
props: { "aria-describedby": t.id }
|
|
1957
1964
|
}),
|
|
1958
|
-
|
|
1965
|
+
Z($(de), {
|
|
1959
1966
|
"model-value": t.modelValue,
|
|
1960
1967
|
anchor: t.anchor,
|
|
1961
1968
|
role: "tooltip",
|
|
@@ -1986,24 +1993,24 @@ export {
|
|
|
1986
1993
|
In as QButtonToggle,
|
|
1987
1994
|
qn as QCombobox,
|
|
1988
1995
|
ge as QField,
|
|
1989
|
-
|
|
1996
|
+
ee as QIcon,
|
|
1990
1997
|
wt as QIconFont,
|
|
1991
1998
|
$t as QIconImg,
|
|
1992
1999
|
It as QIconSvg,
|
|
1993
2000
|
Sn as QInputGroup,
|
|
1994
|
-
|
|
2001
|
+
Ln as QLineLoader,
|
|
1995
2002
|
Qe as QList,
|
|
1996
2003
|
zt as QListItem,
|
|
1997
2004
|
Ct as QListItemGroup,
|
|
1998
2005
|
de as QOverlay,
|
|
1999
|
-
|
|
2006
|
+
Bn as QPopover,
|
|
2000
2007
|
xn as QSelect,
|
|
2001
2008
|
be as QSpinnerLoader,
|
|
2002
2009
|
Yt as QTextField,
|
|
2003
2010
|
Vn as QTooltip,
|
|
2004
2011
|
$n as createFramework,
|
|
2005
2012
|
Ye as defaultDarkColorScheme,
|
|
2006
|
-
|
|
2013
|
+
Ie as defaultLightColorScheme,
|
|
2007
2014
|
wn as useTheme
|
|
2008
2015
|
};
|
|
2009
2016
|
//# sourceMappingURL=ui.esm.js.map
|