@quidgest/ui 0.8.9 → 0.8.11
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 +304 -295
- 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 +2 -1
- 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 C, defineComponent as S, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as Y, withModifiers as ie, createVNode as Q, 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 X, 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,7 +200,7 @@ function lt(t, l) {
|
|
|
200
200
|
activeTheme: q(e),
|
|
201
201
|
themes: o
|
|
202
202
|
};
|
|
203
|
-
tt(o),
|
|
203
|
+
tt(o), C(n.activeTheme, nt, { immediate: !0 }), t.provide(de, n);
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
function nt(t) {
|
|
@@ -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
|
-
])) :
|
|
310
|
+
Q(b(ge), { size: 20 })
|
|
311
|
+
])) : L("", !0),
|
|
312
312
|
Y("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
|
+
C(
|
|
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,7 +641,7 @@ 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
|
}
|
|
@@ -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
|
F(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");
|
|
@@ -683,73 +683,73 @@ const wt = /* @__PURE__ */ L({
|
|
|
683
683
|
F(N(i));
|
|
684
684
|
break;
|
|
685
685
|
case "first":
|
|
686
|
-
F(
|
|
686
|
+
F(j());
|
|
687
687
|
break;
|
|
688
688
|
case "last":
|
|
689
|
-
F(
|
|
689
|
+
F(R());
|
|
690
690
|
break;
|
|
691
691
|
}
|
|
692
692
|
}
|
|
693
693
|
function F(i, a = !1) {
|
|
694
694
|
var $;
|
|
695
|
-
($ =
|
|
695
|
+
($ = O()[i]) == null || $.focus({ preventScroll: a });
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function O() {
|
|
698
698
|
var a;
|
|
699
699
|
const i = (a = y.value) == null ? void 0 : a.querySelectorAll("li");
|
|
700
700
|
return i ? Array.from(i) : [];
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
702
|
+
function U(i) {
|
|
703
|
+
return O()[i];
|
|
704
704
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
705
|
+
function H() {
|
|
706
|
+
return O().indexOf(document.activeElement);
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
const i =
|
|
708
|
+
function j() {
|
|
709
|
+
const i = O(), a = i.find((m) => G(m));
|
|
710
710
|
return a ? i.indexOf(a) : -1;
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
const i =
|
|
712
|
+
function R() {
|
|
713
|
+
const i = O(), a = [...i].reverse().find((m) => G(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
719
|
function N(i) {
|
|
720
|
-
const a =
|
|
720
|
+
const a = H();
|
|
721
721
|
return Z(a, i);
|
|
722
722
|
}
|
|
723
723
|
function Z(i, a) {
|
|
724
|
-
const m =
|
|
725
|
-
if (
|
|
724
|
+
const m = O();
|
|
725
|
+
if (K(i, a, m))
|
|
726
726
|
return i;
|
|
727
727
|
let $ = i + (a === "next" ? 1 : -1);
|
|
728
|
-
for (; !
|
|
729
|
-
if (
|
|
728
|
+
for (; !G(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 G(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 C(
|
|
742
742
|
() => n.modelValue,
|
|
743
743
|
(i) => {
|
|
744
744
|
d.value = i;
|
|
745
745
|
}
|
|
746
746
|
), l({
|
|
747
747
|
focusItem: F,
|
|
748
|
-
getItem:
|
|
748
|
+
getItem: U,
|
|
749
749
|
getAdjacentItemIndex: Z,
|
|
750
|
-
getFirstFocusableItemIndex:
|
|
751
|
-
getLastFocusableItemIndex:
|
|
752
|
-
}), (i, a) => (c(),
|
|
750
|
+
getFirstFocusableItemIndex: j,
|
|
751
|
+
getLastFocusableItemIndex: R
|
|
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]),
|
|
@@ -758,16 +758,16 @@ const wt = /* @__PURE__ */ L({
|
|
|
758
758
|
onFocus: T,
|
|
759
759
|
onMousedown: f,
|
|
760
760
|
onMouseup: z,
|
|
761
|
-
onKeydown:
|
|
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
|
-
Y("div",
|
|
843
|
-
e.selected ? (c(),
|
|
842
|
+
Y("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
|
+
C(
|
|
971
971
|
() => e.modelValue,
|
|
972
972
|
() => s.visible = e.modelValue
|
|
973
|
-
),
|
|
973
|
+
), C(
|
|
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,7 +1010,7 @@ const Rt = ["role"], Ot = {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
1012
|
}
|
|
1013
|
-
|
|
1013
|
+
C([() => s.visible, () => e.placement], y);
|
|
1014
1014
|
let w;
|
|
1015
1015
|
function f() {
|
|
1016
1016
|
T(0);
|
|
@@ -1026,7 +1026,7 @@ const Rt = ["role"], Ot = {
|
|
|
1026
1026
|
});
|
|
1027
1027
|
}, i));
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function V() {
|
|
1030
1030
|
clearTimeout(w), w = void 0, s.visible = !1, X(() => {
|
|
1031
1031
|
if (e.anchor && e.trigger === "click") {
|
|
1032
1032
|
const i = ne(e.anchor);
|
|
@@ -1038,11 +1038,11 @@ const Rt = ["role"], Ot = {
|
|
|
1038
1038
|
function F() {
|
|
1039
1039
|
o("enter");
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function O() {
|
|
1042
1042
|
window.clearTimeout(A), A = window.setTimeout(() => s.animating = !1, 200), o("leave");
|
|
1043
1043
|
}
|
|
1044
|
-
let
|
|
1045
|
-
function
|
|
1044
|
+
let U;
|
|
1045
|
+
function H() {
|
|
1046
1046
|
X(() => {
|
|
1047
1047
|
if (!e.anchor)
|
|
1048
1048
|
return;
|
|
@@ -1053,17 +1053,17 @@ const Rt = ["role"], Ot = {
|
|
|
1053
1053
|
i.addEventListener("click", f);
|
|
1054
1054
|
break;
|
|
1055
1055
|
case "hover":
|
|
1056
|
-
i.addEventListener("mouseenter", z), i.addEventListener("mouseleave",
|
|
1056
|
+
i.addEventListener("mouseenter", z), i.addEventListener("mouseleave", V), i.addEventListener("focusin", f), i.addEventListener("focusout", V);
|
|
1057
1057
|
break;
|
|
1058
1058
|
}
|
|
1059
1059
|
});
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function j() {
|
|
1062
1062
|
X(() => {
|
|
1063
1063
|
if (!e.anchor)
|
|
1064
1064
|
return;
|
|
1065
1065
|
const i = ne(e.anchor);
|
|
1066
|
-
i && (window.addEventListener("resize", y),
|
|
1066
|
+
i && (window.addEventListener("resize", y), U = new MutationObserver(y), U.observe(i, {
|
|
1067
1067
|
attributes: !1,
|
|
1068
1068
|
childList: !0,
|
|
1069
1069
|
characterData: !0,
|
|
@@ -1071,7 +1071,7 @@ const Rt = ["role"], Ot = {
|
|
|
1071
1071
|
}), y());
|
|
1072
1072
|
});
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function R() {
|
|
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", z), i.removeEventListener("mouseleave",
|
|
1084
|
+
i.removeEventListener("mouseenter", z), i.removeEventListener("mouseleave", V), i.removeEventListener("focusin", f), i.removeEventListener("focusout", V);
|
|
1085
1085
|
break;
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
window.removeEventListener("resize", y),
|
|
1088
|
+
function K() {
|
|
1089
|
+
window.removeEventListener("resize", y), U == null || U.disconnect();
|
|
1090
1090
|
}
|
|
1091
1091
|
let N;
|
|
1092
1092
|
function Z() {
|
|
1093
1093
|
if (!e.anchor)
|
|
1094
1094
|
return;
|
|
1095
|
-
ne(e.anchor) ? (y(), N = window.setTimeout(Z, 100)) :
|
|
1095
|
+
ne(e.anchor) ? (y(), N = window.setTimeout(Z, 100)) : V();
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1098
|
-
|
|
1097
|
+
function G() {
|
|
1098
|
+
j(), e.spy && Z(), e.anchor && document.addEventListener("scroll", V);
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1101
|
-
|
|
1100
|
+
function P() {
|
|
1101
|
+
K(), e.spy && (clearTimeout(N), N = void 0), document.removeEventListener("scroll", V);
|
|
1102
1102
|
}
|
|
1103
1103
|
return Me(() => {
|
|
1104
|
-
|
|
1104
|
+
R(), P();
|
|
1105
1105
|
}), De(() => {
|
|
1106
1106
|
X(() => {
|
|
1107
|
-
|
|
1107
|
+
H(), y();
|
|
1108
1108
|
});
|
|
1109
|
-
}),
|
|
1109
|
+
}), C(
|
|
1110
1110
|
() => s.visible,
|
|
1111
1111
|
(i) => {
|
|
1112
|
-
i ?
|
|
1112
|
+
i ? G() : 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,14 +1122,14 @@ 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
|
+
Q(Ke, {
|
|
1127
1127
|
name: e.transition,
|
|
1128
1128
|
appear: "",
|
|
1129
1129
|
onEnter: F,
|
|
1130
|
-
onLeave:
|
|
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),
|
|
@@ -1142,13 +1142,13 @@ const Rt = ["role"], Ot = {
|
|
|
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", {
|
|
@@ -1200,9 +1200,9 @@ const Rt = ["role"], Ot = {
|
|
|
1200
1200
|
h(s.$slots, "label.prepend"),
|
|
1201
1201
|
Y("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
|
Y("div", oe({
|
|
1208
1208
|
class: "q-field__control",
|
|
@@ -1211,19 +1211,19 @@ const Rt = ["role"], Ot = {
|
|
|
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 C(
|
|
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, z) => (c(),
|
|
1264
|
+
}), (f, z) => (c(), B(b(_e), {
|
|
1265
1265
|
ref_key: "fieldRef",
|
|
1266
1266
|
ref: u,
|
|
1267
1267
|
class: E(["q-text-field", n.class]),
|
|
@@ -1272,13 +1272,13 @@ 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:
|
|
1281
|
+
default: _(() => [
|
|
1282
1282
|
We(Y("input", oe({
|
|
1283
1283
|
"onUpdate:modelValue": z[0] || (z[0] = (T) => y.value = T),
|
|
1284
1284
|
ref_key: "inputRef",
|
|
@@ -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 z =
|
|
1366
|
+
De(R);
|
|
1367
|
+
const z = k(() => n.clearable && !n.readonly && !n.disabled), T = k(() => {
|
|
1368
1368
|
var r;
|
|
1369
|
-
return n.filterMode === "manual" || !
|
|
1370
|
-
(
|
|
1369
|
+
return n.filterMode === "manual" || !U.value ? n.items : (r = n.items) == null ? void 0 : r.filter(
|
|
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), F = k(() => {
|
|
1376
1376
|
const r = p.value;
|
|
1377
1377
|
if (r !== void 0 && T.value[r])
|
|
1378
1378
|
return T.value[r];
|
|
1379
|
-
}),
|
|
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
|
-
}),
|
|
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 H(r) {
|
|
1390
|
+
d.value = r, R(), e("update:modelValue", r);
|
|
1391
1391
|
}
|
|
1392
|
-
function
|
|
1393
|
-
|
|
1392
|
+
function j(r) {
|
|
1393
|
+
H(r), N();
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1395
|
+
function R() {
|
|
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
1402
|
function N() {
|
|
1403
1403
|
s.value && (e("before-hide"), s.value = !1, p.value = void 0);
|
|
1404
1404
|
}
|
|
1405
1405
|
function Z() {
|
|
1406
|
-
s.value ? N() :
|
|
1406
|
+
s.value ? N() : P();
|
|
1407
1407
|
}
|
|
1408
|
-
function
|
|
1409
|
-
z.value && (
|
|
1408
|
+
function G() {
|
|
1409
|
+
z.value && (H(n.emptyValue), p.value = void 0, le());
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1412
|
-
if (
|
|
1413
|
-
const r = T.value.indexOf(
|
|
1411
|
+
function P() {
|
|
1412
|
+
if (K(), V.value !== void 0) {
|
|
1413
|
+
const r = T.value.indexOf(V.value);
|
|
1414
1414
|
r !== -1 && X(() => 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
|
-
s.value ? N() : z.value &&
|
|
1421
|
+
s.value ? N() : z.value && G();
|
|
1422
1422
|
else if (["ArrowDown", "ArrowUp"].includes(r.key))
|
|
1423
1423
|
s.value ? X(() => {
|
|
1424
1424
|
if (p.value === void 0)
|
|
1425
1425
|
a();
|
|
1426
1426
|
else {
|
|
1427
|
-
const
|
|
1428
|
-
$(p.value,
|
|
1427
|
+
const M = r.key === "ArrowDown" ? "next" : "prev";
|
|
1428
|
+
$(p.value, M);
|
|
1429
1429
|
}
|
|
1430
|
-
}) : (
|
|
1430
|
+
}) : (K(), X(() => {
|
|
1431
1431
|
r.key === "ArrowDown" ? a() : m();
|
|
1432
1432
|
}));
|
|
1433
1433
|
else if (r.key === "Enter") {
|
|
1434
1434
|
if (F.value === void 0)
|
|
1435
1435
|
return;
|
|
1436
|
-
|
|
1436
|
+
j(F.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
|
+
(M) => M[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, M;
|
|
1461
|
+
!((g = f.value) != null && g.contains(r.relatedTarget)) && !((M = (I = y.value) == null ? void 0 : I.fieldRef) != null && M.contains(r.relatedTarget)) ? (N(), R()) : (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,25 +1474,34 @@ 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 C(
|
|
1482
1482
|
() => n.modelValue,
|
|
1483
1483
|
(r) => {
|
|
1484
1484
|
d.value = r;
|
|
1485
1485
|
}
|
|
1486
|
-
),
|
|
1486
|
+
), C(d, R), C(
|
|
1487
|
+
() => n.items,
|
|
1488
|
+
(r, g) => {
|
|
1489
|
+
if (!A.value) {
|
|
1490
|
+
const I = g.find((M) => M[n.itemValue] === d.value);
|
|
1491
|
+
u.value === (I == null ? void 0 : I[n.itemLabel]) && R();
|
|
1492
|
+
}
|
|
1493
|
+
},
|
|
1494
|
+
{ deep: !0 }
|
|
1495
|
+
), C(p, (r) => {
|
|
1487
1496
|
r !== void 0 && ke(r);
|
|
1488
|
-
}),
|
|
1489
|
-
!r && z.value ?
|
|
1497
|
+
}), C(u, (r) => {
|
|
1498
|
+
!r && z.value ? G() : s.value && n.selectionMode === "automatic" && X(a), e("update:inputValue", r);
|
|
1490
1499
|
}), l({
|
|
1491
1500
|
triggerEl: y
|
|
1492
|
-
}), (r,
|
|
1493
|
-
|
|
1501
|
+
}), (r, g) => (c(), v(ee, null, [
|
|
1502
|
+
Q(b(Yt), {
|
|
1494
1503
|
modelValue: u.value,
|
|
1495
|
-
"onUpdate:modelValue":
|
|
1504
|
+
"onUpdate:modelValue": g[0] || (g[0] = (I) => u.value = I),
|
|
1496
1505
|
id: n.id,
|
|
1497
1506
|
label: n.label,
|
|
1498
1507
|
required: n.required,
|
|
@@ -1515,34 +1524,34 @@ const Rt = ["role"], Ot = {
|
|
|
1515
1524
|
"aria-expanded": s.value,
|
|
1516
1525
|
"aria-haspopup": "listbox",
|
|
1517
1526
|
"aria-autocomplete": "list",
|
|
1518
|
-
"aria-activedescendant":
|
|
1527
|
+
"aria-activedescendant": O.value,
|
|
1519
1528
|
size: n.size,
|
|
1520
|
-
onClick:
|
|
1529
|
+
onClick: P,
|
|
1521
1530
|
onFocusout: D,
|
|
1522
1531
|
onKeydown: ie(i, ["stop"])
|
|
1523
1532
|
}, he({
|
|
1524
|
-
"label.prepend":
|
|
1533
|
+
"label.prepend": _(() => [
|
|
1525
1534
|
h(r.$slots, "label.prepend")
|
|
1526
1535
|
]),
|
|
1527
|
-
"label.append":
|
|
1536
|
+
"label.append": _(() => [
|
|
1528
1537
|
h(r.$slots, "label.append")
|
|
1529
1538
|
]),
|
|
1530
|
-
append:
|
|
1539
|
+
append: _(() => [
|
|
1531
1540
|
h(r.$slots, "append"),
|
|
1532
|
-
z.value && u.value ? (c(),
|
|
1541
|
+
z.value && u.value ? (c(), B(b(ue), {
|
|
1533
1542
|
key: 0,
|
|
1534
1543
|
class: "q-combobox__clear",
|
|
1535
1544
|
"b-style": "plain",
|
|
1536
1545
|
borderless: "",
|
|
1537
1546
|
tabindex: "-1",
|
|
1538
|
-
onClick:
|
|
1547
|
+
onClick: G
|
|
1539
1548
|
}, {
|
|
1540
|
-
default:
|
|
1541
|
-
|
|
1549
|
+
default: _(() => [
|
|
1550
|
+
Q(b(J), te(ae(n.icons.clear)), null, 16)
|
|
1542
1551
|
]),
|
|
1543
1552
|
_: 1
|
|
1544
|
-
})) :
|
|
1545
|
-
n.readonly ?
|
|
1553
|
+
})) : L("", !0),
|
|
1554
|
+
n.readonly ? L("", !0) : (c(), B(b(ue), {
|
|
1546
1555
|
key: 1,
|
|
1547
1556
|
class: "q-combobox__chevron",
|
|
1548
1557
|
"b-style": "plain",
|
|
@@ -1551,8 +1560,8 @@ const Rt = ["role"], Ot = {
|
|
|
1551
1560
|
disabled: n.disabled,
|
|
1552
1561
|
onClick: Z
|
|
1553
1562
|
}, {
|
|
1554
|
-
default:
|
|
1555
|
-
|
|
1563
|
+
default: _(() => [
|
|
1564
|
+
Q(b(J), te(ae(n.icons.chevron)), null, 16)
|
|
1556
1565
|
]),
|
|
1557
1566
|
_: 1
|
|
1558
1567
|
}, 8, ["disabled"]))
|
|
@@ -1561,22 +1570,22 @@ const Rt = ["role"], Ot = {
|
|
|
1561
1570
|
}, [
|
|
1562
1571
|
r.$slots.prepend ? {
|
|
1563
1572
|
name: "prepend",
|
|
1564
|
-
fn:
|
|
1573
|
+
fn: _(() => [
|
|
1565
1574
|
h(r.$slots, "prepend")
|
|
1566
1575
|
]),
|
|
1567
1576
|
key: "0"
|
|
1568
1577
|
} : void 0,
|
|
1569
1578
|
r.$slots.extras ? {
|
|
1570
1579
|
name: "extras",
|
|
1571
|
-
fn:
|
|
1580
|
+
fn: _(() => [
|
|
1572
1581
|
h(r.$slots, "extras")
|
|
1573
1582
|
]),
|
|
1574
1583
|
key: "1"
|
|
1575
1584
|
} : void 0
|
|
1576
1585
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1577
|
-
|
|
1586
|
+
Q(b(pe), {
|
|
1578
1587
|
modelValue: s.value,
|
|
1579
|
-
"onUpdate:modelValue":
|
|
1588
|
+
"onUpdate:modelValue": g[2] || (g[2] = (I) => s.value = I),
|
|
1580
1589
|
spy: "",
|
|
1581
1590
|
trigger: "manual",
|
|
1582
1591
|
placement: "bottom",
|
|
@@ -1586,8 +1595,8 @@ const Rt = ["role"], Ot = {
|
|
|
1586
1595
|
onEnter: Oe,
|
|
1587
1596
|
onLeave: Ue
|
|
1588
1597
|
}, {
|
|
1589
|
-
default:
|
|
1590
|
-
var
|
|
1598
|
+
default: _(() => {
|
|
1599
|
+
var I;
|
|
1591
1600
|
return [
|
|
1592
1601
|
Y("div", {
|
|
1593
1602
|
ref_key: "contentRef",
|
|
@@ -1597,29 +1606,29 @@ const Rt = ["role"], Ot = {
|
|
|
1597
1606
|
}, [
|
|
1598
1607
|
h(r.$slots, "body.prepend"),
|
|
1599
1608
|
n.loading ? (c(), v("div", Zt, [
|
|
1600
|
-
|
|
1601
|
-
])) : T.value.length ? (c(),
|
|
1609
|
+
Q(b(ge), { size: 24 })
|
|
1610
|
+
])) : T.value.length ? (c(), B(b(Ae), {
|
|
1602
1611
|
key: 1,
|
|
1603
1612
|
ref_key: "listRef",
|
|
1604
1613
|
ref: w,
|
|
1605
1614
|
class: "q-select__items",
|
|
1606
1615
|
modelValue: d.value,
|
|
1607
1616
|
"onUpdate:modelValue": [
|
|
1608
|
-
|
|
1609
|
-
|
|
1617
|
+
g[1] || (g[1] = (M) => d.value = M),
|
|
1618
|
+
j
|
|
1610
1619
|
],
|
|
1611
|
-
highlighted: (
|
|
1620
|
+
highlighted: (I = F.value) == null ? void 0 : I[n.itemValue],
|
|
1612
1621
|
items: T.value,
|
|
1613
1622
|
groups: r.groups,
|
|
1614
1623
|
"item-label": n.itemLabel,
|
|
1615
1624
|
"item-value": n.itemValue,
|
|
1616
1625
|
onMouseup: Re
|
|
1617
1626
|
}, {
|
|
1618
|
-
item:
|
|
1619
|
-
h(r.$slots, "item", { item:
|
|
1627
|
+
item: _(({ item: M }) => [
|
|
1628
|
+
h(r.$slots, "item", { item: M })
|
|
1620
1629
|
]),
|
|
1621
1630
|
_: 3
|
|
1622
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), v("div", Jt,
|
|
1631
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (c(), v("div", Jt, W(r.texts.noData), 1)),
|
|
1623
1632
|
h(r.$slots, "body.append")
|
|
1624
1633
|
], 544)
|
|
1625
1634
|
];
|
|
@@ -1634,7 +1643,7 @@ const Rt = ["role"], Ot = {
|
|
|
1634
1643
|
}, ol = { key: 0 }, al = {
|
|
1635
1644
|
key: 1,
|
|
1636
1645
|
class: "q-input-group__append"
|
|
1637
|
-
}, sl = { key: 0 }, il = /* @__PURE__ */
|
|
1646
|
+
}, sl = { key: 0 }, il = /* @__PURE__ */ S({
|
|
1638
1647
|
__name: "QInputGroup",
|
|
1639
1648
|
props: {
|
|
1640
1649
|
id: { default: void 0 },
|
|
@@ -1651,32 +1660,32 @@ const Rt = ["role"], Ot = {
|
|
|
1651
1660
|
QField: {
|
|
1652
1661
|
size: "block"
|
|
1653
1662
|
}
|
|
1654
|
-
}), (o, e) => (c(),
|
|
1663
|
+
}), (o, e) => (c(), B(b(_e), {
|
|
1655
1664
|
id: l.id,
|
|
1656
1665
|
class: E(["q-input-group", l.class]),
|
|
1657
1666
|
label: l.label,
|
|
1658
1667
|
required: l.required,
|
|
1659
1668
|
size: l.size
|
|
1660
1669
|
}, {
|
|
1661
|
-
default:
|
|
1670
|
+
default: _(() => [
|
|
1662
1671
|
o.$slots.prepend || l.prependIcon ? (c(), v("div", nl, [
|
|
1663
1672
|
l.prependIcon ? (c(), v("span", ol, [
|
|
1664
|
-
|
|
1665
|
-
])) :
|
|
1673
|
+
Q(b(J), te(ae(l.prependIcon)), null, 16)
|
|
1674
|
+
])) : L("", !0),
|
|
1666
1675
|
h(o.$slots, "prepend")
|
|
1667
|
-
])) :
|
|
1676
|
+
])) : L("", !0),
|
|
1668
1677
|
h(o.$slots, "default"),
|
|
1669
1678
|
o.$slots.append || l.appendIcon ? (c(), v("div", al, [
|
|
1670
1679
|
l.appendIcon ? (c(), v("span", sl, [
|
|
1671
|
-
|
|
1672
|
-
])) :
|
|
1680
|
+
Q(b(J), te(ae(l.appendIcon)), null, 16)
|
|
1681
|
+
])) : L("", !0),
|
|
1673
1682
|
h(o.$slots, "append")
|
|
1674
|
-
])) :
|
|
1683
|
+
])) : L("", !0)
|
|
1675
1684
|
]),
|
|
1676
1685
|
_: 3
|
|
1677
1686
|
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1678
1687
|
}
|
|
1679
|
-
}),
|
|
1688
|
+
}), Vl = x(il), rl = /* @__PURE__ */ S({
|
|
1680
1689
|
__name: "QLineLoader",
|
|
1681
1690
|
props: {
|
|
1682
1691
|
class: { default: void 0 }
|
|
@@ -1687,13 +1696,13 @@ const Rt = ["role"], Ot = {
|
|
|
1687
1696
|
class: E(["q-line-loader", l.class])
|
|
1688
1697
|
}, null, 2));
|
|
1689
1698
|
}
|
|
1690
|
-
}),
|
|
1699
|
+
}), Bl = x(rl), dl = {
|
|
1691
1700
|
key: 0,
|
|
1692
1701
|
class: "q-popover__header"
|
|
1693
1702
|
}, ul = {
|
|
1694
1703
|
key: 1,
|
|
1695
1704
|
class: "q-popover__body"
|
|
1696
|
-
}, cl = ["innerHTML"], fl = { key: 1 }, pl = /* @__PURE__ */
|
|
1705
|
+
}, cl = ["innerHTML"], fl = { key: 1 }, pl = /* @__PURE__ */ S({
|
|
1697
1706
|
inheritAttrs: !1,
|
|
1698
1707
|
__name: "QPopover",
|
|
1699
1708
|
props: {
|
|
@@ -1709,7 +1718,7 @@ const Rt = ["role"], Ot = {
|
|
|
1709
1718
|
},
|
|
1710
1719
|
setup(t) {
|
|
1711
1720
|
const l = t;
|
|
1712
|
-
return (o, e) => (c(),
|
|
1721
|
+
return (o, e) => (c(), B(b(pe), {
|
|
1713
1722
|
"model-value": l.modelValue,
|
|
1714
1723
|
class: "q-popover",
|
|
1715
1724
|
trigger: "click",
|
|
@@ -1719,18 +1728,18 @@ const Rt = ["role"], Ot = {
|
|
|
1719
1728
|
disabled: l.disabled,
|
|
1720
1729
|
placement: l.placement
|
|
1721
1730
|
}, {
|
|
1722
|
-
default:
|
|
1731
|
+
default: _(() => [
|
|
1723
1732
|
l.title || o.$slots.header ? (c(), v("h3", dl, [
|
|
1724
|
-
re(
|
|
1733
|
+
re(W(l.title) + " ", 1),
|
|
1725
1734
|
h(o.$slots, "header")
|
|
1726
|
-
])) :
|
|
1735
|
+
])) : L("", !0),
|
|
1727
1736
|
l.text || o.$slots.body ? (c(), v("div", ul, [
|
|
1728
1737
|
l.html ? (c(), v("span", {
|
|
1729
1738
|
key: 0,
|
|
1730
1739
|
innerHTML: l.text
|
|
1731
|
-
}, null, 8, cl)) : (c(), v("span", fl,
|
|
1740
|
+
}, null, 8, cl)) : (c(), v("span", fl, W(l.text), 1)),
|
|
1732
1741
|
h(o.$slots, "body")
|
|
1733
|
-
])) :
|
|
1742
|
+
])) : L("", !0)
|
|
1734
1743
|
]),
|
|
1735
1744
|
_: 3
|
|
1736
1745
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
|
|
@@ -1753,7 +1762,7 @@ const Rt = ["role"], Ot = {
|
|
|
1753
1762
|
clear: {
|
|
1754
1763
|
icon: "close"
|
|
1755
1764
|
}
|
|
1756
|
-
}, gl = /* @__PURE__ */
|
|
1765
|
+
}, gl = /* @__PURE__ */ S({
|
|
1757
1766
|
__name: "QSelect",
|
|
1758
1767
|
props: {
|
|
1759
1768
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1776,42 +1785,42 @@ const Rt = ["role"], Ot = {
|
|
|
1776
1785
|
},
|
|
1777
1786
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
1778
1787
|
setup(t, { emit: l }) {
|
|
1779
|
-
const o = l, e = t, n = q(e.modelValue), d = q(!1), s = q(""), u = q(null), p = q(null), y = q(null), w =
|
|
1788
|
+
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(
|
|
1780
1789
|
() => {
|
|
1781
1790
|
var a;
|
|
1782
1791
|
return (a = e.items) == null ? void 0 : a.find((m) => m[e.itemValue] === n.value);
|
|
1783
1792
|
}
|
|
1784
|
-
), z =
|
|
1793
|
+
), z = k(
|
|
1785
1794
|
() => f.value ? f.value[e.itemLabel] : ""
|
|
1786
|
-
), T =
|
|
1795
|
+
), T = k(
|
|
1787
1796
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1788
1797
|
);
|
|
1789
|
-
function
|
|
1790
|
-
n.value = a, o("update:modelValue", a),
|
|
1798
|
+
function V(a) {
|
|
1799
|
+
n.value = a, o("update:modelValue", a), H();
|
|
1791
1800
|
}
|
|
1792
1801
|
function A() {
|
|
1793
|
-
T.value &&
|
|
1802
|
+
T.value && V(e.emptyValue);
|
|
1794
1803
|
}
|
|
1795
1804
|
function F() {
|
|
1796
|
-
e.readonly || e.disabled || (d.value ?
|
|
1805
|
+
e.readonly || e.disabled || (d.value ? H() : U());
|
|
1797
1806
|
}
|
|
1798
|
-
function
|
|
1807
|
+
function O(a) {
|
|
1799
1808
|
var m, $, D;
|
|
1800
|
-
!((m = y.value) != null && m.contains(a.relatedTarget)) && !((D = ($ = u.value) == null ? void 0 : $.fieldRef) != null && D.contains(a.relatedTarget)) &&
|
|
1809
|
+
!((m = y.value) != null && m.contains(a.relatedTarget)) && !((D = ($ = u.value) == null ? void 0 : $.fieldRef) != null && D.contains(a.relatedTarget)) && H();
|
|
1801
1810
|
}
|
|
1802
|
-
function
|
|
1811
|
+
function U() {
|
|
1803
1812
|
d.value || (o("before-show"), d.value = !0);
|
|
1804
1813
|
}
|
|
1805
|
-
function
|
|
1814
|
+
function H() {
|
|
1806
1815
|
d.value && (o("before-hide"), d.value = !1);
|
|
1807
1816
|
}
|
|
1808
|
-
function
|
|
1809
|
-
d.value ?
|
|
1817
|
+
function j() {
|
|
1818
|
+
d.value ? H() : U();
|
|
1810
1819
|
}
|
|
1811
|
-
let
|
|
1812
|
-
function
|
|
1820
|
+
let R;
|
|
1821
|
+
function K(a) {
|
|
1813
1822
|
if (!(!a.key || e.readonly || e.disabled)) {
|
|
1814
|
-
if (window.clearTimeout(
|
|
1823
|
+
if (window.clearTimeout(R), ["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)) {
|
|
1815
1824
|
s.value += a.key.toLowerCase();
|
|
1816
1825
|
for (let m = 0; m < e.items.length; m++)
|
|
1817
1826
|
if (e.items[m][e.itemLabel].toLowerCase().startsWith(s.value)) {
|
|
@@ -1819,23 +1828,23 @@ const Rt = ["role"], Ot = {
|
|
|
1819
1828
|
break;
|
|
1820
1829
|
}
|
|
1821
1830
|
}
|
|
1822
|
-
|
|
1831
|
+
R = window.setTimeout(function() {
|
|
1823
1832
|
s.value = "";
|
|
1824
1833
|
}, 500);
|
|
1825
1834
|
}
|
|
1826
1835
|
}
|
|
1827
1836
|
function N() {
|
|
1828
1837
|
var a;
|
|
1829
|
-
e.loading ? (a = y.value) == null || a.focus() :
|
|
1838
|
+
e.loading ? (a = y.value) == null || a.focus() : P(), o("show");
|
|
1830
1839
|
}
|
|
1831
1840
|
function Z() {
|
|
1832
|
-
|
|
1841
|
+
G(), o("hide");
|
|
1833
1842
|
}
|
|
1834
|
-
function
|
|
1843
|
+
function G() {
|
|
1835
1844
|
var a, m;
|
|
1836
1845
|
(m = (a = u.value) == null ? void 0 : a.fieldRef) == null || m.focus();
|
|
1837
1846
|
}
|
|
1838
|
-
function
|
|
1847
|
+
function P() {
|
|
1839
1848
|
var a;
|
|
1840
1849
|
(a = p.value) == null || a.$el.focus();
|
|
1841
1850
|
}
|
|
@@ -1843,20 +1852,20 @@ const Rt = ["role"], Ot = {
|
|
|
1843
1852
|
var m;
|
|
1844
1853
|
(m = p.value) == null || m.focusItem(a);
|
|
1845
1854
|
}
|
|
1846
|
-
return
|
|
1855
|
+
return C(
|
|
1847
1856
|
() => e.modelValue,
|
|
1848
1857
|
(a) => {
|
|
1849
1858
|
n.value = a;
|
|
1850
1859
|
}
|
|
1851
|
-
),
|
|
1860
|
+
), C(
|
|
1852
1861
|
() => e.loading,
|
|
1853
1862
|
(a) => {
|
|
1854
|
-
!a && d.value && X(
|
|
1863
|
+
!a && d.value && X(P);
|
|
1855
1864
|
}
|
|
1856
1865
|
), (a, m) => {
|
|
1857
1866
|
var $;
|
|
1858
1867
|
return c(), v(ee, null, [
|
|
1859
|
-
|
|
1868
|
+
Q(b(_e), {
|
|
1860
1869
|
id: e.id,
|
|
1861
1870
|
label: e.label,
|
|
1862
1871
|
required: e.required,
|
|
@@ -1879,11 +1888,11 @@ const Rt = ["role"], Ot = {
|
|
|
1879
1888
|
"aria-haspopup": "listbox",
|
|
1880
1889
|
size: e.size,
|
|
1881
1890
|
onClick: F,
|
|
1882
|
-
onKeydown: ie(
|
|
1891
|
+
onKeydown: ie(K, ["stop"])
|
|
1883
1892
|
}, he({
|
|
1884
|
-
append:
|
|
1893
|
+
append: _(() => [
|
|
1885
1894
|
h(a.$slots, "append"),
|
|
1886
|
-
T.value && n.value ? (c(),
|
|
1895
|
+
T.value && n.value ? (c(), B(b(ue), {
|
|
1887
1896
|
key: 0,
|
|
1888
1897
|
class: "q-select__clear",
|
|
1889
1898
|
"b-style": "plain",
|
|
@@ -1891,55 +1900,55 @@ const Rt = ["role"], Ot = {
|
|
|
1891
1900
|
tabindex: "-1",
|
|
1892
1901
|
onClick: A
|
|
1893
1902
|
}, {
|
|
1894
|
-
default:
|
|
1895
|
-
|
|
1903
|
+
default: _(() => [
|
|
1904
|
+
Q(b(J), te(ae(e.icons.clear)), null, 16)
|
|
1896
1905
|
]),
|
|
1897
1906
|
_: 1
|
|
1898
|
-
})) :
|
|
1899
|
-
e.readonly ?
|
|
1907
|
+
})) : L("", !0),
|
|
1908
|
+
e.readonly ? L("", !0) : (c(), B(b(ue), {
|
|
1900
1909
|
key: 1,
|
|
1901
1910
|
class: "q-select__chevron",
|
|
1902
1911
|
"b-style": "plain",
|
|
1903
1912
|
borderless: "",
|
|
1904
1913
|
tabindex: "-1",
|
|
1905
1914
|
disabled: e.disabled,
|
|
1906
|
-
onClick:
|
|
1915
|
+
onClick: j
|
|
1907
1916
|
}, {
|
|
1908
|
-
default:
|
|
1909
|
-
|
|
1917
|
+
default: _(() => [
|
|
1918
|
+
Q(b(J), te(ae(e.icons.chevron)), null, 16)
|
|
1910
1919
|
]),
|
|
1911
1920
|
_: 1
|
|
1912
1921
|
}, 8, ["disabled"]))
|
|
1913
1922
|
]),
|
|
1914
|
-
default:
|
|
1923
|
+
default: _(() => [
|
|
1915
1924
|
w.value ? (c(), v("span", vl, [
|
|
1916
1925
|
!e.readonly && !e.disabled ? (c(), v(ee, { key: 0 }, [
|
|
1917
|
-
re(
|
|
1918
|
-
], 64)) :
|
|
1919
|
-
])) : (c(), v("span", ml,
|
|
1926
|
+
re(W(a.texts.placeholder), 1)
|
|
1927
|
+
], 64)) : L("", !0)
|
|
1928
|
+
])) : (c(), v("span", ml, W(z.value), 1))
|
|
1920
1929
|
]),
|
|
1921
1930
|
_: 2
|
|
1922
1931
|
}, [
|
|
1923
1932
|
($ = f.value) != null && $.icon || a.$slots.prepend ? {
|
|
1924
1933
|
name: "prepend",
|
|
1925
|
-
fn:
|
|
1934
|
+
fn: _(() => {
|
|
1926
1935
|
var D, le;
|
|
1927
1936
|
return [
|
|
1928
1937
|
h(a.$slots, "prepend"),
|
|
1929
|
-
(D = f.value) != null && D.icon ? (c(),
|
|
1938
|
+
(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)
|
|
1930
1939
|
];
|
|
1931
1940
|
}),
|
|
1932
1941
|
key: "0"
|
|
1933
1942
|
} : void 0,
|
|
1934
1943
|
a.$slots.extras ? {
|
|
1935
1944
|
name: "extras",
|
|
1936
|
-
fn:
|
|
1945
|
+
fn: _(() => [
|
|
1937
1946
|
h(a.$slots, "extras")
|
|
1938
1947
|
]),
|
|
1939
1948
|
key: "1"
|
|
1940
1949
|
} : void 0
|
|
1941
1950
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1942
|
-
|
|
1951
|
+
Q(b(pe), {
|
|
1943
1952
|
modelValue: d.value,
|
|
1944
1953
|
"onUpdate:modelValue": m[1] || (m[1] = (D) => d.value = D),
|
|
1945
1954
|
spy: "",
|
|
@@ -1951,19 +1960,19 @@ const Rt = ["role"], Ot = {
|
|
|
1951
1960
|
onEnter: N,
|
|
1952
1961
|
onLeave: Z
|
|
1953
1962
|
}, {
|
|
1954
|
-
default:
|
|
1963
|
+
default: _(() => [
|
|
1955
1964
|
Y("div", {
|
|
1956
1965
|
ref_key: "contentRef",
|
|
1957
1966
|
ref: y,
|
|
1958
1967
|
class: "q-select__body",
|
|
1959
1968
|
tabindex: "-1",
|
|
1960
|
-
onFocusout:
|
|
1961
|
-
onKeydown: ie(
|
|
1969
|
+
onFocusout: O,
|
|
1970
|
+
onKeydown: ie(K, ["stop"])
|
|
1962
1971
|
}, [
|
|
1963
1972
|
h(a.$slots, "body.prepend"),
|
|
1964
1973
|
e.loading ? (c(), v("div", hl, [
|
|
1965
|
-
|
|
1966
|
-
])) : (c(),
|
|
1974
|
+
Q(b(ge), { size: 24 })
|
|
1975
|
+
])) : (c(), B(b(Ae), {
|
|
1967
1976
|
key: 1,
|
|
1968
1977
|
ref_key: "listRef",
|
|
1969
1978
|
ref: p,
|
|
@@ -1971,14 +1980,14 @@ const Rt = ["role"], Ot = {
|
|
|
1971
1980
|
modelValue: n.value,
|
|
1972
1981
|
"onUpdate:modelValue": [
|
|
1973
1982
|
m[0] || (m[0] = (D) => n.value = D),
|
|
1974
|
-
|
|
1983
|
+
V
|
|
1975
1984
|
],
|
|
1976
1985
|
items: e.items,
|
|
1977
1986
|
groups: a.groups,
|
|
1978
1987
|
"item-label": e.itemLabel,
|
|
1979
1988
|
"item-value": e.itemValue
|
|
1980
1989
|
}, {
|
|
1981
|
-
item:
|
|
1990
|
+
item: _(({ item: D }) => [
|
|
1982
1991
|
h(a.$slots, "item", { item: D })
|
|
1983
1992
|
]),
|
|
1984
1993
|
_: 3
|
|
@@ -1991,7 +2000,7 @@ const Rt = ["role"], Ot = {
|
|
|
1991
2000
|
], 64);
|
|
1992
2001
|
};
|
|
1993
2002
|
}
|
|
1994
|
-
}), Tl = x(gl), _l = /* @__PURE__ */
|
|
2003
|
+
}), Tl = x(gl), _l = /* @__PURE__ */ S({
|
|
1995
2004
|
__name: "QThemeProvider",
|
|
1996
2005
|
props: {
|
|
1997
2006
|
theme: {}
|
|
@@ -2004,7 +2013,7 @@ const Rt = ["role"], Ot = {
|
|
|
2004
2013
|
h(o.$slots, "default")
|
|
2005
2014
|
], 2));
|
|
2006
2015
|
}
|
|
2007
|
-
}), Dl = x(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */
|
|
2016
|
+
}), Dl = x(_l), kl = ["innerHTML"], wl = { key: 1 }, $l = /* @__PURE__ */ S({
|
|
2008
2017
|
__name: "QTooltip",
|
|
2009
2018
|
props: {
|
|
2010
2019
|
modelValue: { type: Boolean },
|
|
@@ -2027,7 +2036,7 @@ const Rt = ["role"], Ot = {
|
|
|
2027
2036
|
h(e.$slots, "anchor", {
|
|
2028
2037
|
props: { "aria-describedby": b(o) }
|
|
2029
2038
|
}),
|
|
2030
|
-
|
|
2039
|
+
Q(b(pe), {
|
|
2031
2040
|
"model-value": l.modelValue,
|
|
2032
2041
|
anchor: l.anchor,
|
|
2033
2042
|
role: "tooltip",
|
|
@@ -2041,11 +2050,11 @@ const Rt = ["role"], Ot = {
|
|
|
2041
2050
|
placement: l.placement,
|
|
2042
2051
|
trigger: l.trigger
|
|
2043
2052
|
}, {
|
|
2044
|
-
default:
|
|
2053
|
+
default: _(() => [
|
|
2045
2054
|
l.html ? (c(), v("span", {
|
|
2046
2055
|
key: 0,
|
|
2047
2056
|
innerHTML: l.text
|
|
2048
|
-
}, null, 8, kl)) : (c(), v("span", wl,
|
|
2057
|
+
}, null, 8, kl)) : (c(), v("span", wl, W(l.text), 1))
|
|
2049
2058
|
]),
|
|
2050
2059
|
_: 1
|
|
2051
2060
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
@@ -2062,8 +2071,8 @@ export {
|
|
|
2062
2071
|
$t as QIconFont,
|
|
2063
2072
|
qt as QIconImg,
|
|
2064
2073
|
It as QIconSvg,
|
|
2065
|
-
|
|
2066
|
-
|
|
2074
|
+
Vl as QInputGroup,
|
|
2075
|
+
Bl as QLineLoader,
|
|
2067
2076
|
Ae as QList,
|
|
2068
2077
|
Ct as QListItem,
|
|
2069
2078
|
Qt as QListItemGroup,
|