@quidgest/ui 0.8.10 → 0.8.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.esm.js +332 -324
- 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.js +4 -3
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +1 -1
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
1
|
+
import { getCurrentInstance as Ve, computed as k, ref as q, provide as Be, inject as Ee, watch as z, defineComponent as S, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as X, withModifiers as ie, createVNode as C, unref as b, createCommentVNode as L, Fragment as ee, createTextVNode as re, toDisplayString as W, renderSlot as h, toRef as we, createBlock as B, withCtx as _, renderList as me, resolveDynamicComponent as Te, h as $e, normalizeProps as te, mergeProps as oe, reactive as Ne, onBeforeUnmount as Me, onMounted as De, nextTick as G, Teleport as He, Transition as Ke, withKeys as Ge, createSlots as he, withDirectives as We, vModelDynamic as je, guardReactiveProps as ae } from "vue";
|
|
2
2
|
function ve(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
|
}
|
|
@@ -25,20 +25,20 @@ function be(t = {}, l = {}) {
|
|
|
25
25
|
const ye = "q-defaults";
|
|
26
26
|
function Pe() {
|
|
27
27
|
var d, s;
|
|
28
|
-
const t =
|
|
28
|
+
const t = Ve();
|
|
29
29
|
if (!t)
|
|
30
30
|
throw new Error("[Quidgest UI] useDefaults must be called from inside a setup function");
|
|
31
31
|
const l = t.type.name ?? t.type.__name;
|
|
32
32
|
if (!l)
|
|
33
33
|
throw new Error("[Quidgest UI] Could not determine component name");
|
|
34
34
|
const o = Ce(), e = (d = o.value) == null ? void 0 : d.Global, n = (s = o.value) == null ? void 0 : s[l];
|
|
35
|
-
return
|
|
35
|
+
return k(() => be(e, n));
|
|
36
36
|
}
|
|
37
37
|
function ze(t) {
|
|
38
38
|
if (ve(t))
|
|
39
39
|
return;
|
|
40
|
-
const l = Ce(), o = q(t), e =
|
|
41
|
-
|
|
40
|
+
const l = Ce(), o = q(t), e = k(() => ve(o.value) ? l.value : be(l.value, o.value));
|
|
41
|
+
Be(ye, e);
|
|
42
42
|
}
|
|
43
43
|
function Ce() {
|
|
44
44
|
const t = Ee(ye, void 0);
|
|
@@ -58,7 +58,7 @@ function Il(t) {
|
|
|
58
58
|
activeTheme: q(t),
|
|
59
59
|
themes: l.themes
|
|
60
60
|
};
|
|
61
|
-
return
|
|
61
|
+
return Be(de, o), o;
|
|
62
62
|
}
|
|
63
63
|
const Ie = {
|
|
64
64
|
primary: "#008ad2",
|
|
@@ -200,15 +200,15 @@ function lt(t, l) {
|
|
|
200
200
|
activeTheme: q(e),
|
|
201
201
|
themes: o
|
|
202
202
|
};
|
|
203
|
-
tt(o),
|
|
203
|
+
tt(o), z(n.activeTheme, nt, { immediate: !0 }), t.provide(de, n);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
function nt(t) {
|
|
207
207
|
const l = document.documentElement, e = Array.from(l.classList).filter((n) => !n.startsWith("q-theme"));
|
|
208
208
|
l.className = e.join(" "), l.classList.add(`q-theme--${t}`);
|
|
209
209
|
}
|
|
210
|
-
const ot = /* @__PURE__ */
|
|
211
|
-
/* @__PURE__ */
|
|
210
|
+
const ot = /* @__PURE__ */ X("svg", { viewBox: "25 25 50 50" }, [
|
|
211
|
+
/* @__PURE__ */ X("circle", {
|
|
212
212
|
class: "path",
|
|
213
213
|
cx: "50",
|
|
214
214
|
cy: "50",
|
|
@@ -220,14 +220,14 @@ const ot = /* @__PURE__ */ Y("svg", { viewBox: "25 25 50 50" }, [
|
|
|
220
220
|
})
|
|
221
221
|
], -1), at = [
|
|
222
222
|
ot
|
|
223
|
-
], st = /* @__PURE__ */
|
|
223
|
+
], st = /* @__PURE__ */ S({
|
|
224
224
|
__name: "QSpinnerLoader",
|
|
225
225
|
props: {
|
|
226
226
|
size: { default: 48 },
|
|
227
227
|
class: { default: void 0 }
|
|
228
228
|
},
|
|
229
229
|
setup(t) {
|
|
230
|
-
const l = t, o =
|
|
230
|
+
const l = t, o = k(() => ({
|
|
231
231
|
"font-size": l.size !== 48 ? `${l.size}px` : void 0
|
|
232
232
|
}));
|
|
233
233
|
return (e, n) => (c(), v("div", {
|
|
@@ -247,7 +247,7 @@ function x(t) {
|
|
|
247
247
|
const n = Pe();
|
|
248
248
|
if (ve(n.value))
|
|
249
249
|
return l(o, e);
|
|
250
|
-
const d =
|
|
250
|
+
const d = Ve();
|
|
251
251
|
if (d === null)
|
|
252
252
|
return l(o, e);
|
|
253
253
|
const s = new Proxy(o, {
|
|
@@ -263,7 +263,7 @@ function x(t) {
|
|
|
263
263
|
const ge = x(st), rt = ["disabled"], dt = {
|
|
264
264
|
key: 0,
|
|
265
265
|
class: "q-btn__spinner"
|
|
266
|
-
}, ut = { class: "q-btn__content" }, ct = /* @__PURE__ */
|
|
266
|
+
}, ut = { class: "q-btn__content" }, ct = /* @__PURE__ */ S({
|
|
267
267
|
__name: "QButton",
|
|
268
268
|
props: {
|
|
269
269
|
active: { type: Boolean },
|
|
@@ -280,11 +280,11 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
280
280
|
},
|
|
281
281
|
emits: ["click"],
|
|
282
282
|
setup(t, { emit: l }) {
|
|
283
|
-
const o = l, e = t, n =
|
|
283
|
+
const o = l, e = t, n = k(() => e.disabled || e.loading);
|
|
284
284
|
function d(u) {
|
|
285
285
|
n.value || o("click", u);
|
|
286
286
|
}
|
|
287
|
-
const s =
|
|
287
|
+
const s = k(() => {
|
|
288
288
|
const u = e.size !== "regular" ? `q-btn--${e.size}` : void 0;
|
|
289
289
|
return [
|
|
290
290
|
"q-btn",
|
|
@@ -307,20 +307,20 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
307
307
|
onClick: ie(d, ["stop", "prevent"])
|
|
308
308
|
}, [
|
|
309
309
|
u.loading ? (c(), v("div", dt, [
|
|
310
|
-
|
|
311
|
-
])) :
|
|
312
|
-
|
|
310
|
+
C(b(ge), { size: 20 })
|
|
311
|
+
])) : L("", !0),
|
|
312
|
+
X("span", ut, [
|
|
313
313
|
u.iconOnRight ? (c(), v(ee, { key: 0 }, [
|
|
314
|
-
re(
|
|
315
|
-
], 64)) :
|
|
314
|
+
re(W(e.label), 1)
|
|
315
|
+
], 64)) : L("", !0),
|
|
316
316
|
h(u.$slots, "default"),
|
|
317
|
-
u.iconOnRight ?
|
|
318
|
-
re(
|
|
317
|
+
u.iconOnRight ? L("", !0) : (c(), v(ee, { key: 1 }, [
|
|
318
|
+
re(W(e.label), 1)
|
|
319
319
|
], 64))
|
|
320
320
|
])
|
|
321
321
|
], 10, rt));
|
|
322
322
|
}
|
|
323
|
-
}), ue = x(ct), ft = /* @__PURE__ */
|
|
323
|
+
}), ue = x(ct), ft = /* @__PURE__ */ S({
|
|
324
324
|
__name: "QButtonGroup",
|
|
325
325
|
props: {
|
|
326
326
|
disabled: { type: Boolean },
|
|
@@ -349,7 +349,7 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
349
349
|
h(o.$slots, "default")
|
|
350
350
|
], 2));
|
|
351
351
|
}
|
|
352
|
-
}), pt = x(ft), mt = /* @__PURE__ */
|
|
352
|
+
}), pt = x(ft), mt = /* @__PURE__ */ S({
|
|
353
353
|
__name: "QButtonToggle",
|
|
354
354
|
props: {
|
|
355
355
|
modelValue: {},
|
|
@@ -363,11 +363,11 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
363
363
|
emits: ["update:modelValue"],
|
|
364
364
|
setup(t, { emit: l }) {
|
|
365
365
|
const o = l, e = t, n = q(e.modelValue);
|
|
366
|
-
|
|
366
|
+
z(
|
|
367
367
|
() => e.modelValue,
|
|
368
368
|
(u) => n.value = u
|
|
369
369
|
);
|
|
370
|
-
const d =
|
|
370
|
+
const d = k({
|
|
371
371
|
get() {
|
|
372
372
|
return n.value;
|
|
373
373
|
},
|
|
@@ -378,22 +378,22 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
378
378
|
function s(u) {
|
|
379
379
|
d.value === u.key && !e.required ? d.value = void 0 : d.value = u.key;
|
|
380
380
|
}
|
|
381
|
-
return (u, p) => (c(),
|
|
381
|
+
return (u, p) => (c(), B(b(pt), {
|
|
382
382
|
"b-style": "secondary",
|
|
383
383
|
class: E(e.class),
|
|
384
384
|
disabled: e.disabled,
|
|
385
385
|
borderless: e.borderless,
|
|
386
386
|
elevated: e.elevated
|
|
387
387
|
}, {
|
|
388
|
-
default:
|
|
389
|
-
(c(!0), v(ee, null, me(e.options, (y) => (c(),
|
|
388
|
+
default: _(() => [
|
|
389
|
+
(c(!0), v(ee, null, me(e.options, (y) => (c(), B(b(ue), {
|
|
390
390
|
key: y.key,
|
|
391
391
|
title: y.title,
|
|
392
392
|
label: y.label,
|
|
393
393
|
active: d.value === y.key,
|
|
394
394
|
onClick: () => s(y)
|
|
395
395
|
}, {
|
|
396
|
-
default:
|
|
396
|
+
default: _(() => [
|
|
397
397
|
h(u.$slots, y.key)
|
|
398
398
|
]),
|
|
399
399
|
_: 2
|
|
@@ -402,7 +402,7 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
402
402
|
_: 3
|
|
403
403
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
404
404
|
}
|
|
405
|
-
}), Sl = x(mt), vt = /* @__PURE__ */
|
|
405
|
+
}), Sl = x(mt), vt = /* @__PURE__ */ S({
|
|
406
406
|
__name: "QIcon",
|
|
407
407
|
props: {
|
|
408
408
|
icon: {},
|
|
@@ -411,7 +411,7 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
411
411
|
class: { default: void 0 }
|
|
412
412
|
},
|
|
413
413
|
setup(t) {
|
|
414
|
-
const l = t, o =
|
|
414
|
+
const l = t, o = k(() => {
|
|
415
415
|
switch (l.type) {
|
|
416
416
|
case "svg":
|
|
417
417
|
return It;
|
|
@@ -423,13 +423,13 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
return (e, n) => (c(),
|
|
426
|
+
return (e, n) => (c(), B(Te(o.value), {
|
|
427
427
|
class: E(l.class),
|
|
428
428
|
icon: l.icon,
|
|
429
429
|
size: l.size
|
|
430
430
|
}, null, 8, ["class", "icon", "size"]));
|
|
431
431
|
}
|
|
432
|
-
}), ht = /* @__PURE__ */
|
|
432
|
+
}), ht = /* @__PURE__ */ S({
|
|
433
433
|
__name: "QIconFont",
|
|
434
434
|
props: {
|
|
435
435
|
icon: {},
|
|
@@ -439,7 +439,7 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
439
439
|
class: { default: void 0 }
|
|
440
440
|
},
|
|
441
441
|
setup(t) {
|
|
442
|
-
const l = t, o =
|
|
442
|
+
const l = t, o = k(() => l.variant ? `${l.library}-${l.variant}` : l.library), e = k(() => l.library && l.icon ? `${l.library}-${l.icon}` : l.icon), n = k(() => ({
|
|
443
443
|
"font-size": l.size !== void 0 ? `${l.size}px` : void 0
|
|
444
444
|
}));
|
|
445
445
|
return (d, s) => (c(), v("i", {
|
|
@@ -447,7 +447,7 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
447
447
|
style: ce(n.value)
|
|
448
448
|
}, null, 6));
|
|
449
449
|
}
|
|
450
|
-
}), bt = ["src"], yt = /* @__PURE__ */
|
|
450
|
+
}), bt = ["src"], yt = /* @__PURE__ */ S({
|
|
451
451
|
__name: "QIconImg",
|
|
452
452
|
props: {
|
|
453
453
|
icon: {},
|
|
@@ -455,7 +455,7 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
455
455
|
class: {}
|
|
456
456
|
},
|
|
457
457
|
setup(t) {
|
|
458
|
-
const l = t, o =
|
|
458
|
+
const l = t, o = k(() => ({
|
|
459
459
|
"font-size": l.size !== void 0 ? `${l.size}px` : void 0
|
|
460
460
|
}));
|
|
461
461
|
return (e, n) => (c(), v("img", {
|
|
@@ -464,7 +464,7 @@ const ge = x(st), rt = ["disabled"], dt = {
|
|
|
464
464
|
style: ce(o.value)
|
|
465
465
|
}, null, 14, bt));
|
|
466
466
|
}
|
|
467
|
-
}), se = {}, gt =
|
|
467
|
+
}), se = {}, gt = S({
|
|
468
468
|
name: "InlineSvg",
|
|
469
469
|
emits: {
|
|
470
470
|
loaded: (t) => typeof t == "object",
|
|
@@ -599,7 +599,7 @@ function kt(t) {
|
|
|
599
599
|
);
|
|
600
600
|
return o.getIsPending = () => l, o;
|
|
601
601
|
}
|
|
602
|
-
const wt = /* @__PURE__ */
|
|
602
|
+
const wt = /* @__PURE__ */ S({
|
|
603
603
|
__name: "QIconSvg",
|
|
604
604
|
props: {
|
|
605
605
|
icon: {},
|
|
@@ -609,7 +609,7 @@ const wt = /* @__PURE__ */ L({
|
|
|
609
609
|
},
|
|
610
610
|
emits: ["loaded", "unloaded"],
|
|
611
611
|
setup(t, { emit: l }) {
|
|
612
|
-
const o = l, e = t, n =
|
|
612
|
+
const o = l, e = t, n = k(() => ({
|
|
613
613
|
"font-size": e.size !== void 0 ? `${e.size}px` : void 0
|
|
614
614
|
}));
|
|
615
615
|
function d(u) {
|
|
@@ -618,7 +618,7 @@ const wt = /* @__PURE__ */ L({
|
|
|
618
618
|
function s() {
|
|
619
619
|
o("unloaded");
|
|
620
620
|
}
|
|
621
|
-
return (u, p) => (c(),
|
|
621
|
+
return (u, p) => (c(), B(b(gt), {
|
|
622
622
|
class: E(["q-icon", "q-icon__svg", e.class]),
|
|
623
623
|
src: e.bundle,
|
|
624
624
|
symbol: e.icon,
|
|
@@ -627,7 +627,7 @@ const wt = /* @__PURE__ */ L({
|
|
|
627
627
|
onUnloaded: s
|
|
628
628
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
629
629
|
}
|
|
630
|
-
}), J = x(vt), $t = x(ht), qt = x(yt), It = x(wt), Lt = /* @__PURE__ */
|
|
630
|
+
}), J = x(vt), $t = x(ht), qt = x(yt), It = x(wt), Lt = /* @__PURE__ */ S({
|
|
631
631
|
__name: "QList",
|
|
632
632
|
props: {
|
|
633
633
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -641,14 +641,14 @@ const wt = /* @__PURE__ */ L({
|
|
|
641
641
|
},
|
|
642
642
|
emits: ["update:modelValue"],
|
|
643
643
|
setup(t, { expose: l, emit: o }) {
|
|
644
|
-
const e = o, n = t, d = q(n.modelValue), s = q(!1), u =
|
|
644
|
+
const e = o, n = t, d = q(n.modelValue), s = q(!1), u = k(() => p.value.length > 1 ? "div" : "ul"), p = k(() => n.groups.length ? n.groups : [{ id: "", title: "" }]), y = q(null);
|
|
645
645
|
function w(i) {
|
|
646
646
|
d.value = i, e("update:modelValue", i);
|
|
647
647
|
}
|
|
648
648
|
function f() {
|
|
649
649
|
s.value = !0;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
651
|
+
function Q() {
|
|
652
652
|
s.value = !1;
|
|
653
653
|
}
|
|
654
654
|
function T(i) {
|
|
@@ -656,11 +656,11 @@ const wt = /* @__PURE__ */ L({
|
|
|
656
656
|
if (($ = y.value) != null && $.contains(i.relatedTarget))
|
|
657
657
|
return;
|
|
658
658
|
let a;
|
|
659
|
-
d.value ? a = n.items.findIndex((D) => D[n.itemValue] === d.value) : a =
|
|
659
|
+
d.value ? a = n.items.findIndex((D) => D[n.itemValue] === d.value) : a = j();
|
|
660
660
|
const m = s.value;
|
|
661
|
-
|
|
661
|
+
R(a, m);
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function V(i) {
|
|
664
664
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key) && i.preventDefault(), i.key) {
|
|
665
665
|
case "ArrowDown":
|
|
666
666
|
A("next");
|
|
@@ -680,17 +680,17 @@ const wt = /* @__PURE__ */ L({
|
|
|
680
680
|
switch (i) {
|
|
681
681
|
case "next":
|
|
682
682
|
case "prev":
|
|
683
|
-
|
|
683
|
+
R(M(i));
|
|
684
684
|
break;
|
|
685
685
|
case "first":
|
|
686
|
-
|
|
686
|
+
R(j());
|
|
687
687
|
break;
|
|
688
688
|
case "last":
|
|
689
|
-
F(
|
|
689
|
+
R(F());
|
|
690
690
|
break;
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
|
-
function
|
|
693
|
+
function R(i, a = !1) {
|
|
694
694
|
var $;
|
|
695
695
|
($ = O()[i]) == null || $.focus({ preventScroll: a });
|
|
696
696
|
}
|
|
@@ -702,54 +702,54 @@ const wt = /* @__PURE__ */ L({
|
|
|
702
702
|
function U(i) {
|
|
703
703
|
return O()[i];
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function N() {
|
|
706
706
|
return O().indexOf(document.activeElement);
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
const i = O(), a = i.find((m) =>
|
|
708
|
+
function j() {
|
|
709
|
+
const i = O(), a = i.find((m) => Z(m));
|
|
710
710
|
return a ? i.indexOf(a) : -1;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
const i = O(), a = [...i].reverse().find((m) =>
|
|
712
|
+
function F() {
|
|
713
|
+
const i = O(), a = [...i].reverse().find((m) => Z(m));
|
|
714
714
|
return a ? i.indexOf(a) : -1;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
716
|
+
function K(i, a, m) {
|
|
717
717
|
return a === "prev" && i === 0 || a === "next" && i === m.length - 1;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
720
|
-
const a =
|
|
721
|
-
return
|
|
719
|
+
function M(i) {
|
|
720
|
+
const a = N();
|
|
721
|
+
return Y(a, i);
|
|
722
722
|
}
|
|
723
|
-
function
|
|
723
|
+
function Y(i, a) {
|
|
724
724
|
const m = O();
|
|
725
|
-
if (
|
|
725
|
+
if (K(i, a, m))
|
|
726
726
|
return i;
|
|
727
727
|
let $ = i + (a === "next" ? 1 : -1);
|
|
728
|
-
for (; !
|
|
729
|
-
if (
|
|
728
|
+
for (; !Z(m[$]); ) {
|
|
729
|
+
if (K($, a, m))
|
|
730
730
|
return i;
|
|
731
731
|
$ += a === "next" ? 1 : -1;
|
|
732
732
|
}
|
|
733
733
|
return $;
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function Z(i) {
|
|
736
736
|
return i.tabIndex === -2;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function P(i) {
|
|
739
739
|
return i ? n.items.filter((a) => a.group === i) : n.items;
|
|
740
740
|
}
|
|
741
|
-
return
|
|
741
|
+
return z(
|
|
742
742
|
() => n.modelValue,
|
|
743
743
|
(i) => {
|
|
744
744
|
d.value = i;
|
|
745
745
|
}
|
|
746
746
|
), l({
|
|
747
|
-
focusItem:
|
|
747
|
+
focusItem: R,
|
|
748
748
|
getItem: U,
|
|
749
|
-
getAdjacentItemIndex:
|
|
750
|
-
getFirstFocusableItemIndex:
|
|
751
|
-
getLastFocusableItemIndex:
|
|
752
|
-
}), (i, a) => (c(),
|
|
749
|
+
getAdjacentItemIndex: Y,
|
|
750
|
+
getFirstFocusableItemIndex: j,
|
|
751
|
+
getLastFocusableItemIndex: F
|
|
752
|
+
}), (i, a) => (c(), B(Te(u.value), {
|
|
753
753
|
ref_key: "listRef",
|
|
754
754
|
ref: y,
|
|
755
755
|
class: E(["q-list", { "q-list--disabled": n.disabled }, n.class]),
|
|
@@ -757,17 +757,17 @@ const wt = /* @__PURE__ */ L({
|
|
|
757
757
|
tabindex: n.disabled ? -1 : 0,
|
|
758
758
|
onFocus: T,
|
|
759
759
|
onMousedown: f,
|
|
760
|
-
onMouseup:
|
|
761
|
-
onKeydown:
|
|
760
|
+
onMouseup: Q,
|
|
761
|
+
onKeydown: V
|
|
762
762
|
}, {
|
|
763
|
-
default:
|
|
764
|
-
(c(!0), v(ee, null, me(p.value, (m) => (c(),
|
|
763
|
+
default: _(() => [
|
|
764
|
+
(c(!0), v(ee, null, me(p.value, (m) => (c(), B(b(Qt), {
|
|
765
765
|
key: m.id,
|
|
766
766
|
title: p.value.length === 1 ? void 0 : m.title,
|
|
767
767
|
disabled: m.disabled
|
|
768
768
|
}, {
|
|
769
|
-
default:
|
|
770
|
-
(c(!0), v(ee, null, me(
|
|
769
|
+
default: _(() => [
|
|
770
|
+
(c(!0), v(ee, null, me(P(m.id), ($) => (c(), B(b(Ct), {
|
|
771
771
|
key: $[n.itemValue],
|
|
772
772
|
value: $[n.itemValue],
|
|
773
773
|
label: $[n.itemLabel],
|
|
@@ -777,7 +777,7 @@ const wt = /* @__PURE__ */ L({
|
|
|
777
777
|
selected: d.value === $[n.itemValue],
|
|
778
778
|
onSelect: w
|
|
779
779
|
}, {
|
|
780
|
-
default:
|
|
780
|
+
default: _(() => [
|
|
781
781
|
h(i.$slots, "item", { item: $ })
|
|
782
782
|
]),
|
|
783
783
|
_: 2
|
|
@@ -794,11 +794,11 @@ let St = 0;
|
|
|
794
794
|
function fe(t) {
|
|
795
795
|
return t || `uid-${++St}`;
|
|
796
796
|
}
|
|
797
|
-
const xt = ["id", "tabindex", "aria-label", "aria-selected"],
|
|
797
|
+
const xt = ["id", "tabindex", "aria-label", "aria-selected"], Vt = { class: "q-list-item__check-container" }, Bt = {
|
|
798
798
|
check: {
|
|
799
799
|
icon: "check"
|
|
800
800
|
}
|
|
801
|
-
}, Et = /* @__PURE__ */
|
|
801
|
+
}, Et = /* @__PURE__ */ S({
|
|
802
802
|
__name: "QListItem",
|
|
803
803
|
props: {
|
|
804
804
|
value: { type: [String, Number, Boolean, Symbol] },
|
|
@@ -806,7 +806,7 @@ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
|
|
|
806
806
|
icon: { default: void 0 },
|
|
807
807
|
selected: { type: Boolean },
|
|
808
808
|
highlighted: { type: Boolean },
|
|
809
|
-
icons: { default: () =>
|
|
809
|
+
icons: { default: () => Bt },
|
|
810
810
|
disabled: { type: Boolean }
|
|
811
811
|
},
|
|
812
812
|
emits: ["select"],
|
|
@@ -836,15 +836,15 @@ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
|
|
|
836
836
|
onClick: ie(d, ["stop", "prevent"])
|
|
837
837
|
}, [
|
|
838
838
|
h(u.$slots, "default", {}, () => [
|
|
839
|
-
e.icon ? (c(),
|
|
840
|
-
re(" " +
|
|
839
|
+
e.icon ? (c(), B(b(J), te(oe({ key: 0 }, e.icon)), null, 16)) : L("", !0),
|
|
840
|
+
re(" " + W(e.label), 1)
|
|
841
841
|
]),
|
|
842
|
-
|
|
843
|
-
e.selected ? (c(),
|
|
842
|
+
X("div", Vt, [
|
|
843
|
+
e.selected ? (c(), B(b(J), oe({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
|
|
844
844
|
])
|
|
845
845
|
], 42, xt));
|
|
846
846
|
}
|
|
847
|
-
}), Tt = ["aria-labelledby"], Dt = ["id"], zt = /* @__PURE__ */
|
|
847
|
+
}), Tt = ["aria-labelledby"], Dt = ["id"], zt = /* @__PURE__ */ S({
|
|
848
848
|
__name: "QListItemGroup",
|
|
849
849
|
props: {
|
|
850
850
|
title: { default: "" },
|
|
@@ -862,7 +862,7 @@ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
|
|
|
862
862
|
id: b(o),
|
|
863
863
|
class: "q-list-item-group__title",
|
|
864
864
|
role: "presentation"
|
|
865
|
-
},
|
|
865
|
+
}, W(l.title), 9, Dt)) : L("", !0),
|
|
866
866
|
h(e.$slots, "default")
|
|
867
867
|
], 8, Tt));
|
|
868
868
|
}
|
|
@@ -931,7 +931,7 @@ const Rt = ["role"], Ot = {
|
|
|
931
931
|
key: 0,
|
|
932
932
|
role: "presentation",
|
|
933
933
|
class: "q-overlay__arrow"
|
|
934
|
-
}, Ut = /* @__PURE__ */
|
|
934
|
+
}, Ut = /* @__PURE__ */ S({
|
|
935
935
|
inheritAttrs: !1,
|
|
936
936
|
__name: "QOverlay",
|
|
937
937
|
props: {
|
|
@@ -952,12 +952,12 @@ const Rt = ["role"], Ot = {
|
|
|
952
952
|
},
|
|
953
953
|
emits: ["update:modelValue", "enter", "leave"],
|
|
954
954
|
setup(t, { emit: l }) {
|
|
955
|
-
const o = l, e = t, n =
|
|
955
|
+
const o = l, e = t, n = k(() => [
|
|
956
956
|
"q-overlay",
|
|
957
957
|
`q-overlay--${s.placement}`,
|
|
958
958
|
{ "q-overlay--inverted": e.appearance === "inverted" },
|
|
959
959
|
e.class
|
|
960
|
-
]), d =
|
|
960
|
+
]), d = k(
|
|
961
961
|
() => (s.visible || s.animating) && e.trigger === "click"
|
|
962
962
|
), s = Ne({
|
|
963
963
|
visible: e.modelValue,
|
|
@@ -967,14 +967,14 @@ const Rt = ["role"], Ot = {
|
|
|
967
967
|
width: 0,
|
|
968
968
|
placement: e.placement
|
|
969
969
|
});
|
|
970
|
-
|
|
970
|
+
z(
|
|
971
971
|
() => e.modelValue,
|
|
972
972
|
() => s.visible = e.modelValue
|
|
973
|
-
),
|
|
973
|
+
), z(
|
|
974
974
|
() => s.visible,
|
|
975
975
|
() => s.animating = !0
|
|
976
976
|
);
|
|
977
|
-
const u =
|
|
977
|
+
const u = k(() => {
|
|
978
978
|
let i = 0, a = 0;
|
|
979
979
|
switch (s.placement) {
|
|
980
980
|
case "top":
|
|
@@ -1010,24 +1010,24 @@ const Rt = ["role"], Ot = {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
|
|
1013
|
+
z([() => s.visible, () => e.placement], y);
|
|
1014
1014
|
let w;
|
|
1015
1015
|
function f() {
|
|
1016
1016
|
T(0);
|
|
1017
1017
|
}
|
|
1018
|
-
function
|
|
1018
|
+
function Q() {
|
|
1019
1019
|
T(e.delay);
|
|
1020
1020
|
}
|
|
1021
1021
|
function T(i) {
|
|
1022
1022
|
w || (w = window.setTimeout(() => {
|
|
1023
|
-
s.visible = !0,
|
|
1023
|
+
s.visible = !0, G(() => {
|
|
1024
1024
|
var a;
|
|
1025
1025
|
e.trigger === "click" && ((a = p.value) == null || a.focus());
|
|
1026
1026
|
});
|
|
1027
1027
|
}, i));
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1030
|
-
clearTimeout(w), w = void 0, s.visible = !1,
|
|
1029
|
+
function V() {
|
|
1030
|
+
clearTimeout(w), w = void 0, s.visible = !1, G(() => {
|
|
1031
1031
|
if (e.anchor && e.trigger === "click") {
|
|
1032
1032
|
const i = ne(e.anchor);
|
|
1033
1033
|
i == null || i.focus();
|
|
@@ -1035,15 +1035,15 @@ const Rt = ["role"], Ot = {
|
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
1037
|
let A;
|
|
1038
|
-
function
|
|
1038
|
+
function R() {
|
|
1039
1039
|
o("enter");
|
|
1040
1040
|
}
|
|
1041
1041
|
function O() {
|
|
1042
1042
|
window.clearTimeout(A), A = window.setTimeout(() => s.animating = !1, 200), o("leave");
|
|
1043
1043
|
}
|
|
1044
1044
|
let U;
|
|
1045
|
-
function
|
|
1046
|
-
|
|
1045
|
+
function N() {
|
|
1046
|
+
G(() => {
|
|
1047
1047
|
if (!e.anchor)
|
|
1048
1048
|
return;
|
|
1049
1049
|
const i = ne(e.anchor);
|
|
@@ -1053,13 +1053,13 @@ const Rt = ["role"], Ot = {
|
|
|
1053
1053
|
i.addEventListener("click", f);
|
|
1054
1054
|
break;
|
|
1055
1055
|
case "hover":
|
|
1056
|
-
i.addEventListener("mouseenter",
|
|
1056
|
+
i.addEventListener("mouseenter", Q), i.addEventListener("mouseleave", V), i.addEventListener("focusin", f), i.addEventListener("focusout", V);
|
|
1057
1057
|
break;
|
|
1058
1058
|
}
|
|
1059
1059
|
});
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1062
|
-
|
|
1061
|
+
function j() {
|
|
1062
|
+
G(() => {
|
|
1063
1063
|
if (!e.anchor)
|
|
1064
1064
|
return;
|
|
1065
1065
|
const i = ne(e.anchor);
|
|
@@ -1071,7 +1071,7 @@ const Rt = ["role"], Ot = {
|
|
|
1071
1071
|
}), y());
|
|
1072
1072
|
});
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function F() {
|
|
1075
1075
|
if (!e.anchor)
|
|
1076
1076
|
return;
|
|
1077
1077
|
const i = ne(e.anchor);
|
|
@@ -1081,38 +1081,38 @@ const Rt = ["role"], Ot = {
|
|
|
1081
1081
|
i.removeEventListener("click", f);
|
|
1082
1082
|
break;
|
|
1083
1083
|
case "hover":
|
|
1084
|
-
i.removeEventListener("mouseenter",
|
|
1084
|
+
i.removeEventListener("mouseenter", Q), i.removeEventListener("mouseleave", V), i.removeEventListener("focusin", f), i.removeEventListener("focusout", V);
|
|
1085
1085
|
break;
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function K() {
|
|
1089
1089
|
window.removeEventListener("resize", y), U == null || U.disconnect();
|
|
1090
1090
|
}
|
|
1091
|
-
let
|
|
1092
|
-
function
|
|
1091
|
+
let M;
|
|
1092
|
+
function Y() {
|
|
1093
1093
|
if (!e.anchor)
|
|
1094
1094
|
return;
|
|
1095
|
-
ne(e.anchor) ? (y(),
|
|
1095
|
+
ne(e.anchor) ? (y(), M = window.setTimeout(Y, 100)) : V();
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
|
|
1097
|
+
function Z() {
|
|
1098
|
+
j(), e.spy && Y(), e.anchor && document.addEventListener("scroll", V);
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
|
|
1100
|
+
function P() {
|
|
1101
|
+
K(), e.spy && (clearTimeout(M), M = void 0), document.removeEventListener("scroll", V);
|
|
1102
1102
|
}
|
|
1103
1103
|
return Me(() => {
|
|
1104
|
-
|
|
1104
|
+
F(), P();
|
|
1105
1105
|
}), De(() => {
|
|
1106
|
-
|
|
1107
|
-
|
|
1106
|
+
G(() => {
|
|
1107
|
+
N(), y();
|
|
1108
1108
|
});
|
|
1109
|
-
}),
|
|
1109
|
+
}), z(
|
|
1110
1110
|
() => s.visible,
|
|
1111
1111
|
(i) => {
|
|
1112
|
-
i ?
|
|
1112
|
+
i ? Z() : P(), o("update:modelValue", i);
|
|
1113
1113
|
},
|
|
1114
1114
|
{ immediate: !0 }
|
|
1115
|
-
), (i, a) => (c(),
|
|
1115
|
+
), (i, a) => (c(), B(He, {
|
|
1116
1116
|
disabled: !s.visible && !s.animating || !e.attach,
|
|
1117
1117
|
to: e.attach
|
|
1118
1118
|
}, [
|
|
@@ -1122,33 +1122,33 @@ const Rt = ["role"], Ot = {
|
|
|
1122
1122
|
"q-overlay__underlay",
|
|
1123
1123
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1124
1124
|
])
|
|
1125
|
-
}, null, 2)) :
|
|
1126
|
-
|
|
1125
|
+
}, null, 2)) : L("", !0),
|
|
1126
|
+
C(Ke, {
|
|
1127
1127
|
name: e.transition,
|
|
1128
1128
|
appear: "",
|
|
1129
|
-
onEnter:
|
|
1129
|
+
onEnter: R,
|
|
1130
1130
|
onLeave: O
|
|
1131
1131
|
}, {
|
|
1132
|
-
default:
|
|
1132
|
+
default: _(() => [
|
|
1133
1133
|
s.visible ? (c(), v("div", {
|
|
1134
1134
|
key: 0,
|
|
1135
1135
|
class: E(n.value),
|
|
1136
1136
|
style: ce(u.value)
|
|
1137
1137
|
}, [
|
|
1138
|
-
|
|
1138
|
+
X("div", oe({
|
|
1139
1139
|
class: "q-overlay__content",
|
|
1140
1140
|
ref_key: "overlayRef",
|
|
1141
1141
|
ref: p,
|
|
1142
1142
|
tabindex: "-1",
|
|
1143
1143
|
role: d.value ? "dialog" : void 0
|
|
1144
1144
|
}, i.$attrs, {
|
|
1145
|
-
onKeydown: Ge(
|
|
1146
|
-
onBlur:
|
|
1145
|
+
onKeydown: Ge(V, ["escape"]),
|
|
1146
|
+
onBlur: V
|
|
1147
1147
|
}), [
|
|
1148
|
-
e.arrow ? (c(), v("div", Ot)) :
|
|
1148
|
+
e.arrow ? (c(), v("div", Ot)) : L("", !0),
|
|
1149
1149
|
h(i.$slots, "default")
|
|
1150
1150
|
], 16, Rt)
|
|
1151
|
-
], 6)) :
|
|
1151
|
+
], 6)) : L("", !0)
|
|
1152
1152
|
]),
|
|
1153
1153
|
_: 3
|
|
1154
1154
|
}, 8, ["name"])
|
|
@@ -1166,7 +1166,7 @@ const Rt = ["role"], Ot = {
|
|
|
1166
1166
|
}, Wt = {
|
|
1167
1167
|
key: 1,
|
|
1168
1168
|
class: "q-field__extras"
|
|
1169
|
-
}, jt = /* @__PURE__ */
|
|
1169
|
+
}, jt = /* @__PURE__ */ S({
|
|
1170
1170
|
inheritAttrs: !1,
|
|
1171
1171
|
__name: "QField",
|
|
1172
1172
|
props: {
|
|
@@ -1180,7 +1180,7 @@ const Rt = ["role"], Ot = {
|
|
|
1180
1180
|
class: { default: void 0 }
|
|
1181
1181
|
},
|
|
1182
1182
|
setup(t, { expose: l }) {
|
|
1183
|
-
const o = t, e = fe(o.id), n = q(null), d =
|
|
1183
|
+
const o = t, e = fe(o.id), n = q(null), d = k(() => o.required && !o.readonly && !o.disabled);
|
|
1184
1184
|
return l({
|
|
1185
1185
|
fieldRef: n
|
|
1186
1186
|
}), (s, u) => (c(), v("div", {
|
|
@@ -1198,32 +1198,32 @@ const Rt = ["role"], Ot = {
|
|
|
1198
1198
|
}, [
|
|
1199
1199
|
o.label ? (c(), v("div", Mt, [
|
|
1200
1200
|
h(s.$slots, "label.prepend"),
|
|
1201
|
-
|
|
1201
|
+
X("label", {
|
|
1202
1202
|
for: o.for
|
|
1203
|
-
},
|
|
1203
|
+
}, W(o.label), 9, Ht),
|
|
1204
1204
|
h(s.$slots, "label.append")
|
|
1205
|
-
])) :
|
|
1205
|
+
])) : L("", !0),
|
|
1206
1206
|
h(s.$slots, "control", {}, () => [
|
|
1207
|
-
|
|
1207
|
+
X("div", oe({
|
|
1208
1208
|
class: "q-field__control",
|
|
1209
1209
|
ref_key: "fieldRef",
|
|
1210
1210
|
ref: n
|
|
1211
1211
|
}, s.$attrs), [
|
|
1212
1212
|
s.$slots.prepend ? (c(), v("div", Kt, [
|
|
1213
1213
|
h(s.$slots, "prepend")
|
|
1214
|
-
])) :
|
|
1214
|
+
])) : L("", !0),
|
|
1215
1215
|
h(s.$slots, "default"),
|
|
1216
1216
|
s.$slots.append ? (c(), v("div", Gt, [
|
|
1217
1217
|
h(s.$slots, "append")
|
|
1218
|
-
])) :
|
|
1218
|
+
])) : L("", !0)
|
|
1219
1219
|
], 16)
|
|
1220
1220
|
]),
|
|
1221
1221
|
s.$slots.extras ? (c(), v("div", Wt, [
|
|
1222
1222
|
h(s.$slots, "extras")
|
|
1223
|
-
])) :
|
|
1223
|
+
])) : L("", !0)
|
|
1224
1224
|
], 10, Nt));
|
|
1225
1225
|
}
|
|
1226
|
-
}), _e = x(jt), Pt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */
|
|
1226
|
+
}), _e = x(jt), Pt = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], Xt = /* @__PURE__ */ S({
|
|
1227
1227
|
inheritAttrs: !1,
|
|
1228
1228
|
__name: "QTextField",
|
|
1229
1229
|
props: {
|
|
@@ -1242,26 +1242,26 @@ const Rt = ["role"], Ot = {
|
|
|
1242
1242
|
},
|
|
1243
1243
|
emits: ["update:modelValue"],
|
|
1244
1244
|
setup(t, { expose: l, emit: o }) {
|
|
1245
|
-
const e = o, n = t, d = fe(n.id), s = q(n.modelValue), u = q(null), p = q(null), y =
|
|
1245
|
+
const e = o, n = t, d = fe(n.id), s = q(n.modelValue), u = q(null), p = q(null), y = k({
|
|
1246
1246
|
get() {
|
|
1247
1247
|
return s.value;
|
|
1248
1248
|
},
|
|
1249
1249
|
set(f) {
|
|
1250
1250
|
s.value = f, e("update:modelValue", f);
|
|
1251
1251
|
}
|
|
1252
|
-
}), w =
|
|
1252
|
+
}), w = k(
|
|
1253
1253
|
() => n.readonly || n.disabled ? "" : n.placeholder
|
|
1254
1254
|
);
|
|
1255
|
-
return
|
|
1255
|
+
return z(
|
|
1256
1256
|
() => n.modelValue,
|
|
1257
1257
|
(f) => s.value = f
|
|
1258
1258
|
), l({
|
|
1259
|
-
fieldRef:
|
|
1259
|
+
fieldRef: k(() => {
|
|
1260
1260
|
var f;
|
|
1261
1261
|
return (f = u.value) == null ? void 0 : f.fieldRef;
|
|
1262
1262
|
}),
|
|
1263
1263
|
inputRef: p
|
|
1264
|
-
}), (f,
|
|
1264
|
+
}), (f, Q) => (c(), B(b(_e), {
|
|
1265
1265
|
ref_key: "fieldRef",
|
|
1266
1266
|
ref: u,
|
|
1267
1267
|
class: E(["q-text-field", n.class]),
|
|
@@ -1272,15 +1272,15 @@ const Rt = ["role"], Ot = {
|
|
|
1272
1272
|
disabled: n.disabled,
|
|
1273
1273
|
required: n.required
|
|
1274
1274
|
}, he({
|
|
1275
|
-
"label.prepend":
|
|
1275
|
+
"label.prepend": _(() => [
|
|
1276
1276
|
h(f.$slots, "label.prepend")
|
|
1277
1277
|
]),
|
|
1278
|
-
"label.append":
|
|
1278
|
+
"label.append": _(() => [
|
|
1279
1279
|
h(f.$slots, "label.append")
|
|
1280
1280
|
]),
|
|
1281
|
-
default:
|
|
1282
|
-
We(
|
|
1283
|
-
"onUpdate:modelValue":
|
|
1281
|
+
default: _(() => [
|
|
1282
|
+
We(X("input", oe({
|
|
1283
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (T) => y.value = T),
|
|
1284
1284
|
ref_key: "inputRef",
|
|
1285
1285
|
ref: p,
|
|
1286
1286
|
id: b(d),
|
|
@@ -1300,21 +1300,21 @@ const Rt = ["role"], Ot = {
|
|
|
1300
1300
|
}, [
|
|
1301
1301
|
f.$slots.prepend ? {
|
|
1302
1302
|
name: "prepend",
|
|
1303
|
-
fn:
|
|
1303
|
+
fn: _(() => [
|
|
1304
1304
|
h(f.$slots, "prepend")
|
|
1305
1305
|
]),
|
|
1306
1306
|
key: "0"
|
|
1307
1307
|
} : void 0,
|
|
1308
1308
|
f.$slots.append ? {
|
|
1309
1309
|
name: "append",
|
|
1310
|
-
fn:
|
|
1310
|
+
fn: _(() => [
|
|
1311
1311
|
h(f.$slots, "append")
|
|
1312
1312
|
]),
|
|
1313
1313
|
key: "1"
|
|
1314
1314
|
} : void 0,
|
|
1315
1315
|
f.$slots.extras ? {
|
|
1316
1316
|
name: "extras",
|
|
1317
|
-
fn:
|
|
1317
|
+
fn: _(() => [
|
|
1318
1318
|
h(f.$slots, "extras")
|
|
1319
1319
|
]),
|
|
1320
1320
|
key: "2"
|
|
@@ -1336,7 +1336,7 @@ const Rt = ["role"], Ot = {
|
|
|
1336
1336
|
clear: {
|
|
1337
1337
|
icon: "close"
|
|
1338
1338
|
}
|
|
1339
|
-
}, ll = /* @__PURE__ */
|
|
1339
|
+
}, ll = /* @__PURE__ */ S({
|
|
1340
1340
|
__name: "QCombobox",
|
|
1341
1341
|
props: {
|
|
1342
1342
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1363,106 +1363,106 @@ const Rt = ["role"], Ot = {
|
|
|
1363
1363
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
1364
1364
|
setup(t, { expose: l, emit: o }) {
|
|
1365
1365
|
const e = o, n = t, d = q(n.modelValue), s = q(!1), u = q(""), p = q(void 0), y = q(null), w = q(null), f = q(null);
|
|
1366
|
-
De(
|
|
1367
|
-
const
|
|
1366
|
+
De(F);
|
|
1367
|
+
const Q = k(() => n.clearable && !n.readonly && !n.disabled), T = k(() => {
|
|
1368
1368
|
var r;
|
|
1369
1369
|
return n.filterMode === "manual" || !U.value ? n.items : (r = n.items) == null ? void 0 : r.filter(
|
|
1370
|
-
(
|
|
1370
|
+
(g) => g[n.itemLabel].toLowerCase().startsWith(u.value.toLowerCase())
|
|
1371
1371
|
);
|
|
1372
|
-
}),
|
|
1372
|
+
}), V = k(() => {
|
|
1373
1373
|
var r;
|
|
1374
|
-
return (r = n.items) == null ? void 0 : r.find((
|
|
1375
|
-
}), A =
|
|
1374
|
+
return (r = n.items) == null ? void 0 : r.find((g) => g[n.itemValue] === d.value);
|
|
1375
|
+
}), A = k(() => V.value === void 0), R = k(() => {
|
|
1376
1376
|
const r = p.value;
|
|
1377
1377
|
if (r !== void 0 && T.value[r])
|
|
1378
1378
|
return T.value[r];
|
|
1379
|
-
}), O =
|
|
1380
|
-
var
|
|
1379
|
+
}), O = k(() => {
|
|
1380
|
+
var g;
|
|
1381
1381
|
if (p.value === void 0)
|
|
1382
1382
|
return;
|
|
1383
|
-
const r = (
|
|
1383
|
+
const r = (g = w.value) == null ? void 0 : g.getItem(p.value);
|
|
1384
1384
|
return r == null ? void 0 : r.id;
|
|
1385
|
-
}), U =
|
|
1385
|
+
}), U = k(() => {
|
|
1386
1386
|
var r;
|
|
1387
|
-
return u.value.length > 0 && u.value !== ((r =
|
|
1387
|
+
return u.value.length > 0 && u.value !== ((r = V.value) == null ? void 0 : r[n.itemLabel]);
|
|
1388
1388
|
});
|
|
1389
|
-
function
|
|
1390
|
-
d.value = r,
|
|
1389
|
+
function N(r) {
|
|
1390
|
+
d.value = r, F(), e("update:modelValue", r);
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1393
|
-
|
|
1392
|
+
function j(r) {
|
|
1393
|
+
N(r), M();
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function F() {
|
|
1396
1396
|
var r;
|
|
1397
|
-
u.value = ((r =
|
|
1397
|
+
u.value = ((r = V.value) == null ? void 0 : r[n.itemLabel]) || "";
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function K() {
|
|
1400
1400
|
s.value || n.readonly || n.disabled || (e("before-show"), s.value = !0, le());
|
|
1401
1401
|
}
|
|
1402
|
-
function
|
|
1402
|
+
function M() {
|
|
1403
1403
|
s.value && (e("before-hide"), s.value = !1, p.value = void 0);
|
|
1404
1404
|
}
|
|
1405
|
-
function
|
|
1406
|
-
s.value ?
|
|
1405
|
+
function Y() {
|
|
1406
|
+
s.value ? M() : P();
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1409
|
-
|
|
1408
|
+
function Z() {
|
|
1409
|
+
Q.value && (N(n.emptyValue), p.value = void 0, le());
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1412
|
-
if (
|
|
1413
|
-
const r = T.value.indexOf(
|
|
1414
|
-
r !== -1 &&
|
|
1411
|
+
function P() {
|
|
1412
|
+
if (K(), V.value !== void 0) {
|
|
1413
|
+
const r = T.value.indexOf(V.value);
|
|
1414
|
+
r !== -1 && G(() => ke(r));
|
|
1415
1415
|
}
|
|
1416
1416
|
}
|
|
1417
1417
|
function i(r) {
|
|
1418
|
-
var
|
|
1418
|
+
var g, I;
|
|
1419
1419
|
if (!(!r.key || n.readonly || n.disabled))
|
|
1420
1420
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && (r.preventDefault(), r.stopPropagation()), r.key === "Escape")
|
|
1421
|
-
|
|
1421
|
+
F(), s.value && M();
|
|
1422
1422
|
else if (["ArrowDown", "ArrowUp"].includes(r.key))
|
|
1423
|
-
s.value ?
|
|
1423
|
+
s.value ? G(() => {
|
|
1424
1424
|
if (p.value === void 0)
|
|
1425
1425
|
a();
|
|
1426
1426
|
else {
|
|
1427
|
-
const
|
|
1428
|
-
$(p.value,
|
|
1427
|
+
const H = r.key === "ArrowDown" ? "next" : "prev";
|
|
1428
|
+
$(p.value, H);
|
|
1429
1429
|
}
|
|
1430
|
-
}) : (
|
|
1430
|
+
}) : (K(), G(() => {
|
|
1431
1431
|
r.key === "ArrowDown" ? a() : m();
|
|
1432
1432
|
}));
|
|
1433
1433
|
else if (r.key === "Enter") {
|
|
1434
|
-
if (
|
|
1434
|
+
if (R.value === void 0)
|
|
1435
1435
|
return;
|
|
1436
|
-
|
|
1436
|
+
j(R.value[n.itemValue]);
|
|
1437
1437
|
} else
|
|
1438
|
-
r.key === "Home" ? p.value = (
|
|
1438
|
+
r.key === "Home" ? p.value = (g = w.value) == null ? void 0 : g.getFirstFocusableItemIndex() : r.key === "End" ? p.value = (I = w.value) == null ? void 0 : I.getLastFocusableItemIndex() : (/^[a-z]$/i.test(r.key) || r.key === "Backspace") && K();
|
|
1439
1439
|
}
|
|
1440
1440
|
function a() {
|
|
1441
|
-
var r,
|
|
1441
|
+
var r, g;
|
|
1442
1442
|
if (A.value)
|
|
1443
|
-
p.value = (
|
|
1443
|
+
p.value = (g = w.value) == null ? void 0 : g.getFirstFocusableItemIndex();
|
|
1444
1444
|
else {
|
|
1445
|
-
const
|
|
1446
|
-
(
|
|
1445
|
+
const I = T.value.findIndex(
|
|
1446
|
+
(H) => H[n.itemValue] === d.value
|
|
1447
1447
|
);
|
|
1448
|
-
|
|
1448
|
+
I === -1 ? p.value = (r = w.value) == null ? void 0 : r.getFirstFocusableItemIndex() : p.value = I;
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
1451
|
function m() {
|
|
1452
1452
|
var r;
|
|
1453
1453
|
p.value = (r = w.value) == null ? void 0 : r.getLastFocusableItemIndex();
|
|
1454
1454
|
}
|
|
1455
|
-
function $(r,
|
|
1456
|
-
var
|
|
1457
|
-
p.value = (
|
|
1455
|
+
function $(r, g) {
|
|
1456
|
+
var I;
|
|
1457
|
+
p.value = (I = w.value) == null ? void 0 : I.getAdjacentItemIndex(r, g);
|
|
1458
1458
|
}
|
|
1459
1459
|
function D(r) {
|
|
1460
|
-
var
|
|
1461
|
-
!((
|
|
1460
|
+
var g, I, H;
|
|
1461
|
+
!((g = f.value) != null && g.contains(r.relatedTarget)) && !((H = (I = y.value) == null ? void 0 : I.fieldRef) != null && H.contains(r.relatedTarget)) ? (M(), Q.value && !u.value && N(n.emptyValue), F()) : (r.preventDefault(), r.stopPropagation());
|
|
1462
1462
|
}
|
|
1463
1463
|
function le() {
|
|
1464
|
-
var r,
|
|
1465
|
-
(
|
|
1464
|
+
var r, g;
|
|
1465
|
+
(g = (r = y.value) == null ? void 0 : r.inputRef) == null || g.focus();
|
|
1466
1466
|
}
|
|
1467
1467
|
function Re() {
|
|
1468
1468
|
le();
|
|
@@ -1474,31 +1474,39 @@ const Rt = ["role"], Ot = {
|
|
|
1474
1474
|
e("hide");
|
|
1475
1475
|
}
|
|
1476
1476
|
function ke(r) {
|
|
1477
|
-
var
|
|
1478
|
-
const
|
|
1479
|
-
|
|
1477
|
+
var I;
|
|
1478
|
+
const g = (I = w.value) == null ? void 0 : I.getItem(r);
|
|
1479
|
+
g == null || g.scrollIntoView({ block: "nearest", inline: "start" });
|
|
1480
1480
|
}
|
|
1481
|
-
return
|
|
1481
|
+
return z(
|
|
1482
1482
|
() => n.modelValue,
|
|
1483
1483
|
(r) => {
|
|
1484
1484
|
d.value = r;
|
|
1485
1485
|
}
|
|
1486
|
-
),
|
|
1486
|
+
), z(d, F), z(
|
|
1487
1487
|
() => n.items,
|
|
1488
|
-
() => {
|
|
1489
|
-
A.value
|
|
1488
|
+
(r, g) => {
|
|
1489
|
+
if (!A.value) {
|
|
1490
|
+
const I = g.find((H) => H[n.itemValue] === d.value);
|
|
1491
|
+
u.value === (I == null ? void 0 : I[n.itemLabel]) && F();
|
|
1492
|
+
}
|
|
1490
1493
|
},
|
|
1491
1494
|
{ deep: !0 }
|
|
1492
|
-
),
|
|
1495
|
+
), z(p, (r) => {
|
|
1493
1496
|
r !== void 0 && ke(r);
|
|
1494
|
-
}),
|
|
1495
|
-
|
|
1496
|
-
}),
|
|
1497
|
+
}), z(u, (r) => {
|
|
1498
|
+
r && s.value && n.selectionMode === "automatic" && G(a), e("update:inputValue", r);
|
|
1499
|
+
}), z(
|
|
1500
|
+
() => n.loading,
|
|
1501
|
+
(r) => {
|
|
1502
|
+
!r && s.value && G(a);
|
|
1503
|
+
}
|
|
1504
|
+
), l({
|
|
1497
1505
|
triggerEl: y
|
|
1498
|
-
}), (r,
|
|
1499
|
-
|
|
1506
|
+
}), (r, g) => (c(), v(ee, null, [
|
|
1507
|
+
C(b(Yt), {
|
|
1500
1508
|
modelValue: u.value,
|
|
1501
|
-
"onUpdate:modelValue":
|
|
1509
|
+
"onUpdate:modelValue": g[0] || (g[0] = (I) => u.value = I),
|
|
1502
1510
|
id: n.id,
|
|
1503
1511
|
label: n.label,
|
|
1504
1512
|
required: n.required,
|
|
@@ -1523,42 +1531,42 @@ const Rt = ["role"], Ot = {
|
|
|
1523
1531
|
"aria-autocomplete": "list",
|
|
1524
1532
|
"aria-activedescendant": O.value,
|
|
1525
1533
|
size: n.size,
|
|
1526
|
-
onClick:
|
|
1534
|
+
onClick: P,
|
|
1527
1535
|
onFocusout: D,
|
|
1528
1536
|
onKeydown: ie(i, ["stop"])
|
|
1529
1537
|
}, he({
|
|
1530
|
-
"label.prepend":
|
|
1538
|
+
"label.prepend": _(() => [
|
|
1531
1539
|
h(r.$slots, "label.prepend")
|
|
1532
1540
|
]),
|
|
1533
|
-
"label.append":
|
|
1541
|
+
"label.append": _(() => [
|
|
1534
1542
|
h(r.$slots, "label.append")
|
|
1535
1543
|
]),
|
|
1536
|
-
append:
|
|
1544
|
+
append: _(() => [
|
|
1537
1545
|
h(r.$slots, "append"),
|
|
1538
|
-
|
|
1546
|
+
Q.value && u.value ? (c(), B(b(ue), {
|
|
1539
1547
|
key: 0,
|
|
1540
1548
|
class: "q-combobox__clear",
|
|
1541
1549
|
"b-style": "plain",
|
|
1542
1550
|
borderless: "",
|
|
1543
1551
|
tabindex: "-1",
|
|
1544
|
-
onClick:
|
|
1552
|
+
onClick: Z
|
|
1545
1553
|
}, {
|
|
1546
|
-
default:
|
|
1547
|
-
|
|
1554
|
+
default: _(() => [
|
|
1555
|
+
C(b(J), te(ae(n.icons.clear)), null, 16)
|
|
1548
1556
|
]),
|
|
1549
1557
|
_: 1
|
|
1550
|
-
})) :
|
|
1551
|
-
n.readonly ?
|
|
1558
|
+
})) : L("", !0),
|
|
1559
|
+
n.readonly ? L("", !0) : (c(), B(b(ue), {
|
|
1552
1560
|
key: 1,
|
|
1553
1561
|
class: "q-combobox__chevron",
|
|
1554
1562
|
"b-style": "plain",
|
|
1555
1563
|
borderless: "",
|
|
1556
1564
|
tabindex: "-1",
|
|
1557
1565
|
disabled: n.disabled,
|
|
1558
|
-
onClick:
|
|
1566
|
+
onClick: Y
|
|
1559
1567
|
}, {
|
|
1560
|
-
default:
|
|
1561
|
-
|
|
1568
|
+
default: _(() => [
|
|
1569
|
+
C(b(J), te(ae(n.icons.chevron)), null, 16)
|
|
1562
1570
|
]),
|
|
1563
1571
|
_: 1
|
|
1564
1572
|
}, 8, ["disabled"]))
|
|
@@ -1567,22 +1575,22 @@ const Rt = ["role"], Ot = {
|
|
|
1567
1575
|
}, [
|
|
1568
1576
|
r.$slots.prepend ? {
|
|
1569
1577
|
name: "prepend",
|
|
1570
|
-
fn:
|
|
1578
|
+
fn: _(() => [
|
|
1571
1579
|
h(r.$slots, "prepend")
|
|
1572
1580
|
]),
|
|
1573
1581
|
key: "0"
|
|
1574
1582
|
} : void 0,
|
|
1575
1583
|
r.$slots.extras ? {
|
|
1576
1584
|
name: "extras",
|
|
1577
|
-
fn:
|
|
1585
|
+
fn: _(() => [
|
|
1578
1586
|
h(r.$slots, "extras")
|
|
1579
1587
|
]),
|
|
1580
1588
|
key: "1"
|
|
1581
1589
|
} : void 0
|
|
1582
1590
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1583
|
-
|
|
1591
|
+
C(b(pe), {
|
|
1584
1592
|
modelValue: s.value,
|
|
1585
|
-
"onUpdate:modelValue":
|
|
1593
|
+
"onUpdate:modelValue": g[2] || (g[2] = (I) => s.value = I),
|
|
1586
1594
|
spy: "",
|
|
1587
1595
|
trigger: "manual",
|
|
1588
1596
|
placement: "bottom",
|
|
@@ -1592,10 +1600,10 @@ const Rt = ["role"], Ot = {
|
|
|
1592
1600
|
onEnter: Oe,
|
|
1593
1601
|
onLeave: Ue
|
|
1594
1602
|
}, {
|
|
1595
|
-
default:
|
|
1596
|
-
var
|
|
1603
|
+
default: _(() => {
|
|
1604
|
+
var I;
|
|
1597
1605
|
return [
|
|
1598
|
-
|
|
1606
|
+
X("div", {
|
|
1599
1607
|
ref_key: "contentRef",
|
|
1600
1608
|
ref: f,
|
|
1601
1609
|
class: "q-select__body",
|
|
@@ -1603,29 +1611,29 @@ const Rt = ["role"], Ot = {
|
|
|
1603
1611
|
}, [
|
|
1604
1612
|
h(r.$slots, "body.prepend"),
|
|
1605
1613
|
n.loading ? (c(), v("div", Zt, [
|
|
1606
|
-
|
|
1607
|
-
])) : T.value.length ? (c(),
|
|
1614
|
+
C(b(ge), { size: 24 })
|
|
1615
|
+
])) : T.value.length ? (c(), B(b(Ae), {
|
|
1608
1616
|
key: 1,
|
|
1609
1617
|
ref_key: "listRef",
|
|
1610
1618
|
ref: w,
|
|
1611
1619
|
class: "q-select__items",
|
|
1612
1620
|
modelValue: d.value,
|
|
1613
1621
|
"onUpdate:modelValue": [
|
|
1614
|
-
|
|
1615
|
-
|
|
1622
|
+
g[1] || (g[1] = (H) => d.value = H),
|
|
1623
|
+
j
|
|
1616
1624
|
],
|
|
1617
|
-
highlighted: (
|
|
1625
|
+
highlighted: (I = R.value) == null ? void 0 : I[n.itemValue],
|
|
1618
1626
|
items: T.value,
|
|
1619
1627
|
groups: r.groups,
|
|
1620
1628
|
"item-label": n.itemLabel,
|
|
1621
1629
|
"item-value": n.itemValue,
|
|
1622
1630
|
onMouseup: Re
|
|
1623
1631
|
}, {
|
|
1624
|
-
item:
|
|
1625
|
-
h(r.$slots, "item", { item:
|
|
1632
|
+
item: _(({ item: H }) => [
|
|
1633
|
+
h(r.$slots, "item", { item: H })
|
|
1626
1634
|
]),
|
|
1627
1635
|
_: 3
|
|
1628
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), v("div", Jt,
|
|
1636
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), v("div", Jt, W(r.texts.noData), 1)),
|
|
1629
1637
|
h(r.$slots, "body.append")
|
|
1630
1638
|
], 544)
|
|
1631
1639
|
];
|
|
@@ -1640,7 +1648,7 @@ const Rt = ["role"], Ot = {
|
|
|
1640
1648
|
}, ol = { key: 0 }, al = {
|
|
1641
1649
|
key: 1,
|
|
1642
1650
|
class: "q-input-group__append"
|
|
1643
|
-
}, sl = { key: 0 }, il = /* @__PURE__ */
|
|
1651
|
+
}, sl = { key: 0 }, il = /* @__PURE__ */ S({
|
|
1644
1652
|
__name: "QInputGroup",
|
|
1645
1653
|
props: {
|
|
1646
1654
|
id: { default: void 0 },
|
|
@@ -1657,32 +1665,32 @@ const Rt = ["role"], Ot = {
|
|
|
1657
1665
|
QField: {
|
|
1658
1666
|
size: "block"
|
|
1659
1667
|
}
|
|
1660
|
-
}), (o, e) => (c(),
|
|
1668
|
+
}), (o, e) => (c(), B(b(_e), {
|
|
1661
1669
|
id: l.id,
|
|
1662
1670
|
class: E(["q-input-group", l.class]),
|
|
1663
1671
|
label: l.label,
|
|
1664
1672
|
required: l.required,
|
|
1665
1673
|
size: l.size
|
|
1666
1674
|
}, {
|
|
1667
|
-
default:
|
|
1675
|
+
default: _(() => [
|
|
1668
1676
|
o.$slots.prepend || l.prependIcon ? (c(), v("div", nl, [
|
|
1669
1677
|
l.prependIcon ? (c(), v("span", ol, [
|
|
1670
|
-
|
|
1671
|
-
])) :
|
|
1678
|
+
C(b(J), te(ae(l.prependIcon)), null, 16)
|
|
1679
|
+
])) : L("", !0),
|
|
1672
1680
|
h(o.$slots, "prepend")
|
|
1673
|
-
])) :
|
|
1681
|
+
])) : L("", !0),
|
|
1674
1682
|
h(o.$slots, "default"),
|
|
1675
1683
|
o.$slots.append || l.appendIcon ? (c(), v("div", al, [
|
|
1676
1684
|
l.appendIcon ? (c(), v("span", sl, [
|
|
1677
|
-
|
|
1678
|
-
])) :
|
|
1685
|
+
C(b(J), te(ae(l.appendIcon)), null, 16)
|
|
1686
|
+
])) : L("", !0),
|
|
1679
1687
|
h(o.$slots, "append")
|
|
1680
|
-
])) :
|
|
1688
|
+
])) : L("", !0)
|
|
1681
1689
|
]),
|
|
1682
1690
|
_: 3
|
|
1683
1691
|
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1684
1692
|
}
|
|
1685
|
-
}),
|
|
1693
|
+
}), Vl = x(il), rl = /* @__PURE__ */ S({
|
|
1686
1694
|
__name: "QLineLoader",
|
|
1687
1695
|
props: {
|
|
1688
1696
|
class: { default: void 0 }
|
|
@@ -1693,13 +1701,13 @@ const Rt = ["role"], Ot = {
|
|
|
1693
1701
|
class: E(["q-line-loader", l.class])
|
|
1694
1702
|
}, null, 2));
|
|
1695
1703
|
}
|
|
1696
|
-
}),
|
|
1704
|
+
}), Bl = x(rl), dl = {
|
|
1697
1705
|
key: 0,
|
|
1698
1706
|
class: "q-popover__header"
|
|
1699
1707
|
}, ul = {
|
|
1700
1708
|
key: 1,
|
|
1701
1709
|
class: "q-popover__body"
|
|
1702
|
-
}, cl = ["innerHTML"], fl = { key: 1 }, pl = /* @__PURE__ */
|
|
1710
|
+
}, cl = ["innerHTML"], fl = { key: 1 }, pl = /* @__PURE__ */ S({
|
|
1703
1711
|
inheritAttrs: !1,
|
|
1704
1712
|
__name: "QPopover",
|
|
1705
1713
|
props: {
|
|
@@ -1715,7 +1723,7 @@ const Rt = ["role"], Ot = {
|
|
|
1715
1723
|
},
|
|
1716
1724
|
setup(t) {
|
|
1717
1725
|
const l = t;
|
|
1718
|
-
return (o, e) => (c(),
|
|
1726
|
+
return (o, e) => (c(), B(b(pe), {
|
|
1719
1727
|
"model-value": l.modelValue,
|
|
1720
1728
|
class: "q-popover",
|
|
1721
1729
|
trigger: "click",
|
|
@@ -1725,18 +1733,18 @@ const Rt = ["role"], Ot = {
|
|
|
1725
1733
|
disabled: l.disabled,
|
|
1726
1734
|
placement: l.placement
|
|
1727
1735
|
}, {
|
|
1728
|
-
default:
|
|
1736
|
+
default: _(() => [
|
|
1729
1737
|
l.title || o.$slots.header ? (c(), v("h3", dl, [
|
|
1730
|
-
re(
|
|
1738
|
+
re(W(l.title) + " ", 1),
|
|
1731
1739
|
h(o.$slots, "header")
|
|
1732
|
-
])) :
|
|
1740
|
+
])) : L("", !0),
|
|
1733
1741
|
l.text || o.$slots.body ? (c(), v("div", ul, [
|
|
1734
1742
|
l.html ? (c(), v("span", {
|
|
1735
1743
|
key: 0,
|
|
1736
1744
|
innerHTML: l.text
|
|
1737
|
-
}, null, 8, cl)) : (c(), v("span", fl,
|
|
1745
|
+
}, null, 8, cl)) : (c(), v("span", fl, W(l.text), 1)),
|
|
1738
1746
|
h(o.$slots, "body")
|
|
1739
|
-
])) :
|
|
1747
|
+
])) : L("", !0)
|
|
1740
1748
|
]),
|
|
1741
1749
|
_: 3
|
|
1742
1750
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
|
|
@@ -1759,7 +1767,7 @@ const Rt = ["role"], Ot = {
|
|
|
1759
1767
|
clear: {
|
|
1760
1768
|
icon: "close"
|
|
1761
1769
|
}
|
|
1762
|
-
}, gl = /* @__PURE__ */
|
|
1770
|
+
}, gl = /* @__PURE__ */ S({
|
|
1763
1771
|
__name: "QSelect",
|
|
1764
1772
|
props: {
|
|
1765
1773
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1782,42 +1790,42 @@ const Rt = ["role"], Ot = {
|
|
|
1782
1790
|
},
|
|
1783
1791
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
1784
1792
|
setup(t, { emit: l }) {
|
|
1785
|
-
const o = l, e = t, n = q(e.modelValue), d = q(!1), s = q(""), u = q(null), p = q(null), y = q(null), w =
|
|
1793
|
+
const o = l, e = t, n = q(e.modelValue), d = q(!1), s = q(""), u = q(null), p = q(null), y = q(null), w = k(() => f.value === void 0), f = k(
|
|
1786
1794
|
() => {
|
|
1787
1795
|
var a;
|
|
1788
1796
|
return (a = e.items) == null ? void 0 : a.find((m) => m[e.itemValue] === n.value);
|
|
1789
1797
|
}
|
|
1790
|
-
),
|
|
1798
|
+
), Q = k(
|
|
1791
1799
|
() => f.value ? f.value[e.itemLabel] : ""
|
|
1792
|
-
), T =
|
|
1800
|
+
), T = k(
|
|
1793
1801
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1794
1802
|
);
|
|
1795
|
-
function
|
|
1796
|
-
n.value = a, o("update:modelValue", a),
|
|
1803
|
+
function V(a) {
|
|
1804
|
+
n.value = a, o("update:modelValue", a), N();
|
|
1797
1805
|
}
|
|
1798
1806
|
function A() {
|
|
1799
|
-
T.value &&
|
|
1807
|
+
T.value && V(e.emptyValue);
|
|
1800
1808
|
}
|
|
1801
|
-
function
|
|
1802
|
-
e.readonly || e.disabled || (d.value ?
|
|
1809
|
+
function R() {
|
|
1810
|
+
e.readonly || e.disabled || (d.value ? N() : U());
|
|
1803
1811
|
}
|
|
1804
1812
|
function O(a) {
|
|
1805
1813
|
var m, $, D;
|
|
1806
|
-
!((m = y.value) != null && m.contains(a.relatedTarget)) && !((D = ($ = u.value) == null ? void 0 : $.fieldRef) != null && D.contains(a.relatedTarget)) &&
|
|
1814
|
+
!((m = y.value) != null && m.contains(a.relatedTarget)) && !((D = ($ = u.value) == null ? void 0 : $.fieldRef) != null && D.contains(a.relatedTarget)) && N();
|
|
1807
1815
|
}
|
|
1808
1816
|
function U() {
|
|
1809
1817
|
d.value || (o("before-show"), d.value = !0);
|
|
1810
1818
|
}
|
|
1811
|
-
function
|
|
1819
|
+
function N() {
|
|
1812
1820
|
d.value && (o("before-hide"), d.value = !1);
|
|
1813
1821
|
}
|
|
1814
|
-
function
|
|
1815
|
-
d.value ?
|
|
1822
|
+
function j() {
|
|
1823
|
+
d.value ? N() : U();
|
|
1816
1824
|
}
|
|
1817
|
-
let
|
|
1818
|
-
function
|
|
1825
|
+
let F;
|
|
1826
|
+
function K(a) {
|
|
1819
1827
|
if (!(!a.key || e.readonly || e.disabled)) {
|
|
1820
|
-
if (window.clearTimeout(
|
|
1828
|
+
if (window.clearTimeout(F), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(a.key) && (a.preventDefault(), a.stopPropagation()), ["Enter", " "].includes(a.key) && (d.value = !0), ["Escape", "Tab"].includes(a.key) && (d.value ? d.value = !1 : T.value && a.key === "Escape" && A()), a.key === "Delete" && e.clearable && A(), /^[a-z]$/i.test(a.key)) {
|
|
1821
1829
|
s.value += a.key.toLowerCase();
|
|
1822
1830
|
for (let m = 0; m < e.items.length; m++)
|
|
1823
1831
|
if (e.items[m][e.itemLabel].toLowerCase().startsWith(s.value)) {
|
|
@@ -1825,23 +1833,23 @@ const Rt = ["role"], Ot = {
|
|
|
1825
1833
|
break;
|
|
1826
1834
|
}
|
|
1827
1835
|
}
|
|
1828
|
-
|
|
1836
|
+
F = window.setTimeout(function() {
|
|
1829
1837
|
s.value = "";
|
|
1830
1838
|
}, 500);
|
|
1831
1839
|
}
|
|
1832
1840
|
}
|
|
1833
|
-
function
|
|
1841
|
+
function M() {
|
|
1834
1842
|
var a;
|
|
1835
|
-
e.loading ? (a = y.value) == null || a.focus() :
|
|
1843
|
+
e.loading ? (a = y.value) == null || a.focus() : P(), o("show");
|
|
1836
1844
|
}
|
|
1837
|
-
function
|
|
1838
|
-
|
|
1845
|
+
function Y() {
|
|
1846
|
+
Z(), o("hide");
|
|
1839
1847
|
}
|
|
1840
|
-
function
|
|
1848
|
+
function Z() {
|
|
1841
1849
|
var a, m;
|
|
1842
1850
|
(m = (a = u.value) == null ? void 0 : a.fieldRef) == null || m.focus();
|
|
1843
1851
|
}
|
|
1844
|
-
function
|
|
1852
|
+
function P() {
|
|
1845
1853
|
var a;
|
|
1846
1854
|
(a = p.value) == null || a.$el.focus();
|
|
1847
1855
|
}
|
|
@@ -1849,20 +1857,20 @@ const Rt = ["role"], Ot = {
|
|
|
1849
1857
|
var m;
|
|
1850
1858
|
(m = p.value) == null || m.focusItem(a);
|
|
1851
1859
|
}
|
|
1852
|
-
return
|
|
1860
|
+
return z(
|
|
1853
1861
|
() => e.modelValue,
|
|
1854
1862
|
(a) => {
|
|
1855
1863
|
n.value = a;
|
|
1856
1864
|
}
|
|
1857
|
-
),
|
|
1865
|
+
), z(
|
|
1858
1866
|
() => e.loading,
|
|
1859
1867
|
(a) => {
|
|
1860
|
-
!a && d.value &&
|
|
1868
|
+
!a && d.value && G(P);
|
|
1861
1869
|
}
|
|
1862
1870
|
), (a, m) => {
|
|
1863
1871
|
var $;
|
|
1864
1872
|
return c(), v(ee, null, [
|
|
1865
|
-
|
|
1873
|
+
C(b(_e), {
|
|
1866
1874
|
id: e.id,
|
|
1867
1875
|
label: e.label,
|
|
1868
1876
|
required: e.required,
|
|
@@ -1884,12 +1892,12 @@ const Rt = ["role"], Ot = {
|
|
|
1884
1892
|
"aria-expanded": d.value,
|
|
1885
1893
|
"aria-haspopup": "listbox",
|
|
1886
1894
|
size: e.size,
|
|
1887
|
-
onClick:
|
|
1888
|
-
onKeydown: ie(
|
|
1895
|
+
onClick: R,
|
|
1896
|
+
onKeydown: ie(K, ["stop"])
|
|
1889
1897
|
}, he({
|
|
1890
|
-
append:
|
|
1898
|
+
append: _(() => [
|
|
1891
1899
|
h(a.$slots, "append"),
|
|
1892
|
-
T.value && n.value ? (c(),
|
|
1900
|
+
T.value && n.value ? (c(), B(b(ue), {
|
|
1893
1901
|
key: 0,
|
|
1894
1902
|
class: "q-select__clear",
|
|
1895
1903
|
"b-style": "plain",
|
|
@@ -1897,55 +1905,55 @@ const Rt = ["role"], Ot = {
|
|
|
1897
1905
|
tabindex: "-1",
|
|
1898
1906
|
onClick: A
|
|
1899
1907
|
}, {
|
|
1900
|
-
default:
|
|
1901
|
-
|
|
1908
|
+
default: _(() => [
|
|
1909
|
+
C(b(J), te(ae(e.icons.clear)), null, 16)
|
|
1902
1910
|
]),
|
|
1903
1911
|
_: 1
|
|
1904
|
-
})) :
|
|
1905
|
-
e.readonly ?
|
|
1912
|
+
})) : L("", !0),
|
|
1913
|
+
e.readonly ? L("", !0) : (c(), B(b(ue), {
|
|
1906
1914
|
key: 1,
|
|
1907
1915
|
class: "q-select__chevron",
|
|
1908
1916
|
"b-style": "plain",
|
|
1909
1917
|
borderless: "",
|
|
1910
1918
|
tabindex: "-1",
|
|
1911
1919
|
disabled: e.disabled,
|
|
1912
|
-
onClick:
|
|
1920
|
+
onClick: j
|
|
1913
1921
|
}, {
|
|
1914
|
-
default:
|
|
1915
|
-
|
|
1922
|
+
default: _(() => [
|
|
1923
|
+
C(b(J), te(ae(e.icons.chevron)), null, 16)
|
|
1916
1924
|
]),
|
|
1917
1925
|
_: 1
|
|
1918
1926
|
}, 8, ["disabled"]))
|
|
1919
1927
|
]),
|
|
1920
|
-
default:
|
|
1928
|
+
default: _(() => [
|
|
1921
1929
|
w.value ? (c(), v("span", vl, [
|
|
1922
1930
|
!e.readonly && !e.disabled ? (c(), v(ee, { key: 0 }, [
|
|
1923
|
-
re(
|
|
1924
|
-
], 64)) :
|
|
1925
|
-
])) : (c(), v("span", ml,
|
|
1931
|
+
re(W(a.texts.placeholder), 1)
|
|
1932
|
+
], 64)) : L("", !0)
|
|
1933
|
+
])) : (c(), v("span", ml, W(Q.value), 1))
|
|
1926
1934
|
]),
|
|
1927
1935
|
_: 2
|
|
1928
1936
|
}, [
|
|
1929
1937
|
($ = f.value) != null && $.icon || a.$slots.prepend ? {
|
|
1930
1938
|
name: "prepend",
|
|
1931
|
-
fn:
|
|
1939
|
+
fn: _(() => {
|
|
1932
1940
|
var D, le;
|
|
1933
1941
|
return [
|
|
1934
1942
|
h(a.$slots, "prepend"),
|
|
1935
|
-
(D = f.value) != null && D.icon ? (c(),
|
|
1943
|
+
(D = f.value) != null && D.icon ? (c(), B(b(J), te(oe({ key: 0 }, (le = f.value) == null ? void 0 : le.icon)), null, 16)) : L("", !0)
|
|
1936
1944
|
];
|
|
1937
1945
|
}),
|
|
1938
1946
|
key: "0"
|
|
1939
1947
|
} : void 0,
|
|
1940
1948
|
a.$slots.extras ? {
|
|
1941
1949
|
name: "extras",
|
|
1942
|
-
fn:
|
|
1950
|
+
fn: _(() => [
|
|
1943
1951
|
h(a.$slots, "extras")
|
|
1944
1952
|
]),
|
|
1945
1953
|
key: "1"
|
|
1946
1954
|
} : void 0
|
|
1947
1955
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1948
|
-
|
|
1956
|
+
C(b(pe), {
|
|
1949
1957
|
modelValue: d.value,
|
|
1950
1958
|
"onUpdate:modelValue": m[1] || (m[1] = (D) => d.value = D),
|
|
1951
1959
|
spy: "",
|
|
@@ -1954,22 +1962,22 @@ const Rt = ["role"], Ot = {
|
|
|
1954
1962
|
width: "anchor",
|
|
1955
1963
|
anchor: u.value,
|
|
1956
1964
|
offset: 2,
|
|
1957
|
-
onEnter:
|
|
1958
|
-
onLeave:
|
|
1965
|
+
onEnter: M,
|
|
1966
|
+
onLeave: Y
|
|
1959
1967
|
}, {
|
|
1960
|
-
default:
|
|
1961
|
-
|
|
1968
|
+
default: _(() => [
|
|
1969
|
+
X("div", {
|
|
1962
1970
|
ref_key: "contentRef",
|
|
1963
1971
|
ref: y,
|
|
1964
1972
|
class: "q-select__body",
|
|
1965
1973
|
tabindex: "-1",
|
|
1966
1974
|
onFocusout: O,
|
|
1967
|
-
onKeydown: ie(
|
|
1975
|
+
onKeydown: ie(K, ["stop"])
|
|
1968
1976
|
}, [
|
|
1969
1977
|
h(a.$slots, "body.prepend"),
|
|
1970
1978
|
e.loading ? (c(), v("div", hl, [
|
|
1971
|
-
|
|
1972
|
-
])) : (c(),
|
|
1979
|
+
C(b(ge), { size: 24 })
|
|
1980
|
+
])) : (c(), B(b(Ae), {
|
|
1973
1981
|
key: 1,
|
|
1974
1982
|
ref_key: "listRef",
|
|
1975
1983
|
ref: p,
|
|
@@ -1977,14 +1985,14 @@ const Rt = ["role"], Ot = {
|
|
|
1977
1985
|
modelValue: n.value,
|
|
1978
1986
|
"onUpdate:modelValue": [
|
|
1979
1987
|
m[0] || (m[0] = (D) => n.value = D),
|
|
1980
|
-
|
|
1988
|
+
V
|
|
1981
1989
|
],
|
|
1982
1990
|
items: e.items,
|
|
1983
1991
|
groups: a.groups,
|
|
1984
1992
|
"item-label": e.itemLabel,
|
|
1985
1993
|
"item-value": e.itemValue
|
|
1986
1994
|
}, {
|
|
1987
|
-
item:
|
|
1995
|
+
item: _(({ item: D }) => [
|
|
1988
1996
|
h(a.$slots, "item", { item: D })
|
|
1989
1997
|
]),
|
|
1990
1998
|
_: 3
|
|
@@ -1997,7 +2005,7 @@ const Rt = ["role"], Ot = {
|
|
|
1997
2005
|
], 64);
|
|
1998
2006
|
};
|
|
1999
2007
|
}
|
|
2000
|
-
}), Tl = x(gl), _l = /* @__PURE__ */
|
|
2008
|
+
}), Tl = x(gl), _l = /* @__PURE__ */ S({
|
|
2001
2009
|
__name: "QThemeProvider",
|
|
2002
2010
|
props: {
|
|
2003
2011
|
theme: {}
|
|
@@ -2010,7 +2018,7 @@ const Rt = ["role"], Ot = {
|
|
|
2010
2018
|
h(o.$slots, "default")
|
|
2011
2019
|
], 2));
|
|
2012
2020
|
}
|
|
2013
|
-
}), Dl = x(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */
|
|
2021
|
+
}), Dl = x(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */ S({
|
|
2014
2022
|
__name: "QTooltip",
|
|
2015
2023
|
props: {
|
|
2016
2024
|
modelValue: { type: Boolean },
|
|
@@ -2033,7 +2041,7 @@ const Rt = ["role"], Ot = {
|
|
|
2033
2041
|
h(e.$slots, "anchor", {
|
|
2034
2042
|
props: { "aria-describedby": b(o) }
|
|
2035
2043
|
}),
|
|
2036
|
-
|
|
2044
|
+
C(b(pe), {
|
|
2037
2045
|
"model-value": l.modelValue,
|
|
2038
2046
|
anchor: l.anchor,
|
|
2039
2047
|
role: "tooltip",
|
|
@@ -2047,11 +2055,11 @@ const Rt = ["role"], Ot = {
|
|
|
2047
2055
|
placement: l.placement,
|
|
2048
2056
|
trigger: l.trigger
|
|
2049
2057
|
}, {
|
|
2050
|
-
default:
|
|
2058
|
+
default: _(() => [
|
|
2051
2059
|
l.html ? (c(), v("span", {
|
|
2052
2060
|
key: 0,
|
|
2053
2061
|
innerHTML: l.text
|
|
2054
|
-
}, null, 8, kl)) : (c(), v("span", wl,
|
|
2062
|
+
}, null, 8, kl)) : (c(), v("span", wl, W(l.text), 1))
|
|
2055
2063
|
]),
|
|
2056
2064
|
_: 1
|
|
2057
2065
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
@@ -2068,8 +2076,8 @@ export {
|
|
|
2068
2076
|
$t as QIconFont,
|
|
2069
2077
|
qt as QIconImg,
|
|
2070
2078
|
It as QIconSvg,
|
|
2071
|
-
|
|
2072
|
-
|
|
2079
|
+
Vl as QInputGroup,
|
|
2080
|
+
Bl as QLineLoader,
|
|
2073
2081
|
Ae as QList,
|
|
2074
2082
|
Ct as QListItem,
|
|
2075
2083
|
Qt as QListItemGroup,
|