@quidgest/ui 0.10.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +59 -20
- package/dist/ui.css +51 -0
- package/dist/ui.esm.js +282 -258
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +1 -1
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.css +1 -1
- package/dist/ui.min.js +44 -43
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +61 -2
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Ue, computed as k, ref as
|
|
1
|
+
import { getCurrentInstance as Ue, computed as k, ref as V, provide as Pe, inject as Ne, watch as W, defineComponent as L, openBlock as u, createElementBlock as m, normalizeClass as C, normalizeStyle as ie, withModifiers as ue, createVNode as Q, unref as b, createCommentVNode as q, createElementVNode as le, Fragment as ae, createTextVNode as me, toDisplayString as R, renderSlot as h, toRef as Ee, mergeModels as X, useModel as te, createBlock as D, withCtx as w, renderList as qe, resolveDynamicComponent as He, h as De, normalizeProps as se, mergeProps as ce, reactive as Ae, nextTick as j, onMounted as Ke, onBeforeUnmount as Xe, Teleport as Ye, Transition as Ze, withKeys as Je, createSlots as we, withDirectives as et, vModelDynamic as tt, guardReactiveProps as fe } from "vue";
|
|
2
2
|
function Ie(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
|
}
|
|
@@ -37,7 +37,7 @@ function ot() {
|
|
|
37
37
|
function Ge(t) {
|
|
38
38
|
if (Ie(t))
|
|
39
39
|
return;
|
|
40
|
-
const o = We(), e =
|
|
40
|
+
const o = We(), e = V(t), n = k(() => Ie(e.value) ? o.value : xe(o.value, e.value));
|
|
41
41
|
Pe(Le, n);
|
|
42
42
|
}
|
|
43
43
|
function We() {
|
|
@@ -53,9 +53,9 @@ function nt() {
|
|
|
53
53
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
54
54
|
return t;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function No(t) {
|
|
57
57
|
const o = nt(), e = {
|
|
58
|
-
activeTheme:
|
|
58
|
+
activeTheme: V(t),
|
|
59
59
|
themes: o.themes
|
|
60
60
|
};
|
|
61
61
|
return Pe(ve, e), e;
|
|
@@ -168,13 +168,13 @@ function rt(t) {
|
|
|
168
168
|
function Me(t) {
|
|
169
169
|
return t ? `--q-theme-${je(t)}` : "";
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Ho(t = {}) {
|
|
172
172
|
return { install: (e) => {
|
|
173
173
|
const n = t.components || {};
|
|
174
174
|
for (const s in n)
|
|
175
175
|
e.component(s, n[s]);
|
|
176
176
|
const l = t.defaults || {};
|
|
177
|
-
e.provide(Le,
|
|
177
|
+
e.provide(Le, V(l)), dt(e, t.themes);
|
|
178
178
|
} };
|
|
179
179
|
}
|
|
180
180
|
function dt(t, o) {
|
|
@@ -197,7 +197,7 @@ function dt(t, o) {
|
|
|
197
197
|
}
|
|
198
198
|
if (n) {
|
|
199
199
|
const l = {
|
|
200
|
-
activeTheme:
|
|
200
|
+
activeTheme: V(n),
|
|
201
201
|
themes: e
|
|
202
202
|
};
|
|
203
203
|
rt(e), W(l.activeTheme, ut, { immediate: !0 }), t.provide(ve, l);
|
|
@@ -217,9 +217,9 @@ const ct = /* @__PURE__ */ L({
|
|
|
217
217
|
const o = t, e = k(() => ({
|
|
218
218
|
"font-size": o.size !== 48 ? `${o.size}px` : void 0
|
|
219
219
|
}));
|
|
220
|
-
return (n, l) => (
|
|
221
|
-
class:
|
|
222
|
-
style:
|
|
220
|
+
return (n, l) => (u(), m("div", {
|
|
221
|
+
class: C(["q-spinner-loader", o.class]),
|
|
222
|
+
style: ie(e.value)
|
|
223
223
|
}, null, 6));
|
|
224
224
|
}
|
|
225
225
|
});
|
|
@@ -228,7 +228,7 @@ function ft(t, o) {
|
|
|
228
228
|
const e = je(o);
|
|
229
229
|
return e ? typeof ((n = t.props) == null ? void 0 : n[e]) < "u" : !1;
|
|
230
230
|
}
|
|
231
|
-
function
|
|
231
|
+
function S(t) {
|
|
232
232
|
const o = t.setup;
|
|
233
233
|
return o && (t.setup = (e, n) => {
|
|
234
234
|
const l = ot();
|
|
@@ -238,16 +238,16 @@ function V(t) {
|
|
|
238
238
|
if (s === null)
|
|
239
239
|
return o(e, n);
|
|
240
240
|
const i = new Proxy(e, {
|
|
241
|
-
get(a,
|
|
241
|
+
get(a, c) {
|
|
242
242
|
var x;
|
|
243
|
-
const v = Reflect.get(a,
|
|
244
|
-
return typeof
|
|
243
|
+
const v = Reflect.get(a, c), $ = (x = l.value) == null ? void 0 : x[c];
|
|
244
|
+
return typeof c == "string" && !ft(s.vnode, c) ? $ ?? v : v;
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
return o(i, n);
|
|
248
248
|
}), t;
|
|
249
249
|
}
|
|
250
|
-
const Se =
|
|
250
|
+
const Se = S(ct), pt = ["disabled"], mt = {
|
|
251
251
|
key: 0,
|
|
252
252
|
class: "q-btn__spinner"
|
|
253
253
|
}, vt = { class: "q-btn__content" }, ht = /* @__PURE__ */ L({
|
|
@@ -287,27 +287,27 @@ const Se = V(ct), pt = ["disabled"], mt = {
|
|
|
287
287
|
e.class
|
|
288
288
|
];
|
|
289
289
|
});
|
|
290
|
-
return (a,
|
|
290
|
+
return (a, c) => (u(), m("button", {
|
|
291
291
|
type: "button",
|
|
292
|
-
class:
|
|
292
|
+
class: C(i.value),
|
|
293
293
|
disabled: l.value,
|
|
294
294
|
onClick: ue(s, ["stop", "prevent"])
|
|
295
295
|
}, [
|
|
296
|
-
a.loading ? (
|
|
296
|
+
a.loading ? (u(), m("div", mt, [
|
|
297
297
|
Q(b(Se), { size: 20 })
|
|
298
298
|
])) : q("", !0),
|
|
299
|
-
|
|
300
|
-
a.iconOnRight ? (
|
|
299
|
+
le("span", vt, [
|
|
300
|
+
a.iconOnRight ? (u(), m(ae, { key: 0 }, [
|
|
301
301
|
me(R(e.label), 1)
|
|
302
302
|
], 64)) : q("", !0),
|
|
303
303
|
h(a.$slots, "default"),
|
|
304
|
-
a.iconOnRight ? q("", !0) : (
|
|
304
|
+
a.iconOnRight ? q("", !0) : (u(), m(ae, { key: 1 }, [
|
|
305
305
|
me(R(e.label), 1)
|
|
306
306
|
], 64))
|
|
307
307
|
])
|
|
308
308
|
], 10, pt));
|
|
309
309
|
}
|
|
310
|
-
}), he =
|
|
310
|
+
}), he = S(ht), yt = /* @__PURE__ */ L({
|
|
311
311
|
__name: "QButtonGroup",
|
|
312
312
|
props: {
|
|
313
313
|
disabled: { type: Boolean },
|
|
@@ -324,8 +324,8 @@ const Se = V(ct), pt = ["disabled"], mt = {
|
|
|
324
324
|
borderless: Ee(o, "borderless"),
|
|
325
325
|
elevated: !1
|
|
326
326
|
}
|
|
327
|
-
}), (e, n) => (
|
|
328
|
-
class:
|
|
327
|
+
}), (e, n) => (u(), m("div", {
|
|
328
|
+
class: C([
|
|
329
329
|
"q-btn-group",
|
|
330
330
|
{
|
|
331
331
|
"q-btn-group--elevated": o.elevated
|
|
@@ -336,7 +336,7 @@ const Se = V(ct), pt = ["disabled"], mt = {
|
|
|
336
336
|
h(e.$slots, "default")
|
|
337
337
|
], 2));
|
|
338
338
|
}
|
|
339
|
-
}), bt =
|
|
339
|
+
}), bt = S(yt), gt = /* @__PURE__ */ L({
|
|
340
340
|
__name: "QButtonToggle",
|
|
341
341
|
props: /* @__PURE__ */ X({
|
|
342
342
|
options: {},
|
|
@@ -355,15 +355,15 @@ const Se = V(ct), pt = ["disabled"], mt = {
|
|
|
355
355
|
function n(l) {
|
|
356
356
|
e.value === l.key && !o.required ? e.value = void 0 : e.value = l.key;
|
|
357
357
|
}
|
|
358
|
-
return (l, s) => (
|
|
358
|
+
return (l, s) => (u(), D(b(bt), {
|
|
359
359
|
"b-style": "secondary",
|
|
360
|
-
class:
|
|
360
|
+
class: C(o.class),
|
|
361
361
|
disabled: o.disabled,
|
|
362
362
|
borderless: o.borderless,
|
|
363
363
|
elevated: o.elevated
|
|
364
364
|
}, {
|
|
365
365
|
default: w(() => [
|
|
366
|
-
(
|
|
366
|
+
(u(!0), m(ae, null, qe(o.options, (i) => (u(), D(b(he), {
|
|
367
367
|
key: i.key,
|
|
368
368
|
title: i.title,
|
|
369
369
|
label: i.label,
|
|
@@ -379,7 +379,7 @@ const Se = V(ct), pt = ["disabled"], mt = {
|
|
|
379
379
|
_: 3
|
|
380
380
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
381
381
|
}
|
|
382
|
-
}),
|
|
382
|
+
}), Ko = S(gt), _t = /* @__PURE__ */ L({
|
|
383
383
|
__name: "QIcon",
|
|
384
384
|
props: {
|
|
385
385
|
icon: {},
|
|
@@ -400,13 +400,13 @@ const Se = V(ct), pt = ["disabled"], mt = {
|
|
|
400
400
|
return;
|
|
401
401
|
}
|
|
402
402
|
});
|
|
403
|
-
return (n, l) => (
|
|
404
|
-
class:
|
|
403
|
+
return (n, l) => (u(), D(He(e.value), {
|
|
404
|
+
class: C(o.class),
|
|
405
405
|
icon: o.icon,
|
|
406
406
|
size: o.size
|
|
407
407
|
}, null, 8, ["class", "icon", "size"]));
|
|
408
408
|
}
|
|
409
|
-
}),
|
|
409
|
+
}), kt = /* @__PURE__ */ L({
|
|
410
410
|
__name: "QIconFont",
|
|
411
411
|
props: {
|
|
412
412
|
icon: {},
|
|
@@ -419,12 +419,12 @@ const Se = V(ct), pt = ["disabled"], mt = {
|
|
|
419
419
|
const o = t, e = k(() => o.variant ? `${o.library}-${o.variant}` : o.library), n = k(() => o.library && o.icon ? `${o.library}-${o.icon}` : o.icon), l = k(() => ({
|
|
420
420
|
"font-size": o.size !== void 0 ? `${o.size}px` : void 0
|
|
421
421
|
}));
|
|
422
|
-
return (s, i) => (
|
|
423
|
-
class:
|
|
424
|
-
style:
|
|
422
|
+
return (s, i) => (u(), m("i", {
|
|
423
|
+
class: C(["q-icon", "q-icon__font", e.value, n.value, o.class]),
|
|
424
|
+
style: ie(l.value)
|
|
425
425
|
}, null, 6));
|
|
426
426
|
}
|
|
427
|
-
}),
|
|
427
|
+
}), wt = ["src"], $t = /* @__PURE__ */ L({
|
|
428
428
|
__name: "QIconImg",
|
|
429
429
|
props: {
|
|
430
430
|
icon: {},
|
|
@@ -435,11 +435,11 @@ const Se = V(ct), pt = ["disabled"], mt = {
|
|
|
435
435
|
const o = t, e = k(() => ({
|
|
436
436
|
"font-size": o.size !== void 0 ? `${o.size}px` : void 0
|
|
437
437
|
}));
|
|
438
|
-
return (n, l) => (
|
|
438
|
+
return (n, l) => (u(), m("img", {
|
|
439
439
|
src: o.icon,
|
|
440
|
-
class:
|
|
441
|
-
style:
|
|
442
|
-
}, null, 14,
|
|
440
|
+
class: C(["q-icon", "q-icon__img", o.class]),
|
|
441
|
+
style: ie(e.value)
|
|
442
|
+
}, null, 14, wt));
|
|
443
443
|
}
|
|
444
444
|
}), pe = {}, qt = L({
|
|
445
445
|
name: "InlineSvg",
|
|
@@ -595,16 +595,16 @@ const Lt = /* @__PURE__ */ L({
|
|
|
595
595
|
function i() {
|
|
596
596
|
n("unloaded");
|
|
597
597
|
}
|
|
598
|
-
return (a,
|
|
599
|
-
class:
|
|
598
|
+
return (a, c) => (u(), D(b(qt), {
|
|
599
|
+
class: C(["q-icon", "q-icon__svg", e.class]),
|
|
600
600
|
src: e.bundle,
|
|
601
601
|
symbol: e.icon,
|
|
602
|
-
style:
|
|
602
|
+
style: ie(l.value),
|
|
603
603
|
onLoaded: s,
|
|
604
604
|
onUnloaded: i
|
|
605
605
|
}, null, 8, ["class", "src", "symbol", "style"]));
|
|
606
606
|
}
|
|
607
|
-
}), ne =
|
|
607
|
+
}), ne = S(_t), St = S(kt), Bt = S($t), Vt = S(Lt), Ct = /* @__PURE__ */ L({
|
|
608
608
|
__name: "QList",
|
|
609
609
|
props: /* @__PURE__ */ X({
|
|
610
610
|
highlighted: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -622,10 +622,10 @@ const Lt = /* @__PURE__ */ L({
|
|
|
622
622
|
}),
|
|
623
623
|
emits: ["update:modelValue"],
|
|
624
624
|
setup(t, { expose: o }) {
|
|
625
|
-
const e = t, n = te(t, "modelValue"), l =
|
|
625
|
+
const e = t, n = te(t, "modelValue"), l = V(!1), s = k(() => i.value.length > 1 ? "div" : "ul"), i = k(() => e.groups.length ? e.groups.filter(
|
|
626
626
|
(f) => e.items.some((g) => g.group === f.id)
|
|
627
|
-
) : [{ id: "", title: "" }]), a =
|
|
628
|
-
function
|
|
627
|
+
) : [{ id: "", title: "" }]), a = V(null);
|
|
628
|
+
function c(f) {
|
|
629
629
|
n.value = f;
|
|
630
630
|
}
|
|
631
631
|
function v() {
|
|
@@ -646,20 +646,20 @@ const Lt = /* @__PURE__ */ L({
|
|
|
646
646
|
function z(f) {
|
|
647
647
|
switch (["ArrowDown", "ArrowUp", "Home", "End"].includes(f.key) && f.preventDefault(), f.key) {
|
|
648
648
|
case "ArrowDown":
|
|
649
|
-
|
|
649
|
+
T("next");
|
|
650
650
|
break;
|
|
651
651
|
case "ArrowUp":
|
|
652
|
-
|
|
652
|
+
T("prev");
|
|
653
653
|
break;
|
|
654
654
|
case "Home":
|
|
655
|
-
|
|
655
|
+
T("first");
|
|
656
656
|
break;
|
|
657
657
|
case "End":
|
|
658
|
-
|
|
658
|
+
T("last");
|
|
659
659
|
break;
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
function
|
|
662
|
+
function T(f) {
|
|
663
663
|
switch (f) {
|
|
664
664
|
case "next":
|
|
665
665
|
case "prev":
|
|
@@ -675,25 +675,25 @@ const Lt = /* @__PURE__ */ L({
|
|
|
675
675
|
}
|
|
676
676
|
function I(f, g = !1) {
|
|
677
677
|
var p;
|
|
678
|
-
(p =
|
|
678
|
+
(p = B()[f]) == null || p.focus({ preventScroll: g });
|
|
679
679
|
}
|
|
680
|
-
function
|
|
680
|
+
function B() {
|
|
681
681
|
var g;
|
|
682
682
|
const f = (g = a.value) == null ? void 0 : g.querySelectorAll("li");
|
|
683
683
|
return f ? Array.from(f) : [];
|
|
684
684
|
}
|
|
685
685
|
function K(f) {
|
|
686
|
-
return
|
|
686
|
+
return B()[f];
|
|
687
687
|
}
|
|
688
688
|
function Y() {
|
|
689
|
-
return
|
|
689
|
+
return B().indexOf(document.activeElement);
|
|
690
690
|
}
|
|
691
691
|
function H() {
|
|
692
|
-
const f =
|
|
692
|
+
const f = B(), g = f.find((d) => A(d));
|
|
693
693
|
return g ? f.indexOf(g) : -1;
|
|
694
694
|
}
|
|
695
695
|
function M() {
|
|
696
|
-
const f =
|
|
696
|
+
const f = B(), g = [...f].reverse().find((d) => A(d));
|
|
697
697
|
return g ? f.indexOf(g) : -1;
|
|
698
698
|
}
|
|
699
699
|
function Z(f, g, d) {
|
|
@@ -704,7 +704,7 @@ const Lt = /* @__PURE__ */ L({
|
|
|
704
704
|
return J(g, f);
|
|
705
705
|
}
|
|
706
706
|
function J(f, g) {
|
|
707
|
-
const d =
|
|
707
|
+
const d = B();
|
|
708
708
|
if (Z(f, g, d))
|
|
709
709
|
return f;
|
|
710
710
|
let p = f + (g === "next" ? 1 : -1);
|
|
@@ -727,10 +727,10 @@ const Lt = /* @__PURE__ */ L({
|
|
|
727
727
|
getAdjacentItemIndex: J,
|
|
728
728
|
getFirstFocusableItemIndex: H,
|
|
729
729
|
getLastFocusableItemIndex: M
|
|
730
|
-
}), (f, g) => (
|
|
730
|
+
}), (f, g) => (u(), D(He(s.value), {
|
|
731
731
|
ref_key: "listRef",
|
|
732
732
|
ref: a,
|
|
733
|
-
class:
|
|
733
|
+
class: C(["q-list", { "q-list--disabled": e.disabled }, e.class]),
|
|
734
734
|
role: "listbox",
|
|
735
735
|
tabindex: e.disabled ? -1 : 0,
|
|
736
736
|
onFocus: x,
|
|
@@ -739,21 +739,21 @@ const Lt = /* @__PURE__ */ L({
|
|
|
739
739
|
onKeydown: z
|
|
740
740
|
}, {
|
|
741
741
|
default: w(() => [
|
|
742
|
-
(
|
|
742
|
+
(u(!0), m(ae, null, qe(i.value, (d) => (u(), D(b(Ut), {
|
|
743
743
|
key: d.id,
|
|
744
|
-
|
|
745
|
-
|
|
744
|
+
id: d.id,
|
|
745
|
+
title: i.value.length === 1 ? void 0 : d.title
|
|
746
746
|
}, {
|
|
747
747
|
default: w(() => [
|
|
748
|
-
(
|
|
748
|
+
(u(!0), m(ae, null, qe(G(d.id), (p) => (u(), D(b(Ot), {
|
|
749
749
|
key: p[e.itemValue],
|
|
750
750
|
value: p[e.itemValue],
|
|
751
751
|
label: p[e.itemLabel],
|
|
752
752
|
icon: p.icon,
|
|
753
|
-
disabled: e.disabled || p.disabled,
|
|
753
|
+
disabled: e.disabled || d.disabled || p.disabled,
|
|
754
754
|
highlighted: e.highlighted === p[e.itemValue],
|
|
755
755
|
selected: n.value === p[e.itemValue],
|
|
756
|
-
onSelect:
|
|
756
|
+
onSelect: c
|
|
757
757
|
}, {
|
|
758
758
|
default: w(() => [
|
|
759
759
|
h(f.$slots, "item", { item: p })
|
|
@@ -762,7 +762,7 @@ const Lt = /* @__PURE__ */ L({
|
|
|
762
762
|
}, 1032, ["value", "label", "icon", "disabled", "highlighted", "selected"]))), 128))
|
|
763
763
|
]),
|
|
764
764
|
_: 2
|
|
765
|
-
}, 1032, ["
|
|
765
|
+
}, 1032, ["id", "title"]))), 128))
|
|
766
766
|
]),
|
|
767
767
|
_: 3
|
|
768
768
|
}, 40, ["class", "tabindex"]));
|
|
@@ -796,12 +796,12 @@ const Et = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Dt = {
|
|
|
796
796
|
function i(a) {
|
|
797
797
|
a.key === "Tab" && s(), (a.key === "Enter" || a.key === " ") && (a.preventDefault(), a.stopPropagation(), s());
|
|
798
798
|
}
|
|
799
|
-
return (a,
|
|
799
|
+
return (a, c) => (u(), m("li", {
|
|
800
800
|
id: b(l),
|
|
801
801
|
"data-key": e.value,
|
|
802
802
|
role: "option",
|
|
803
803
|
tabindex: e.disabled ? void 0 : -2,
|
|
804
|
-
class:
|
|
804
|
+
class: C([
|
|
805
805
|
"q-list-item",
|
|
806
806
|
{
|
|
807
807
|
"q-list-item--disabled": e.disabled,
|
|
@@ -815,28 +815,29 @@ const Et = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Dt = {
|
|
|
815
815
|
onClick: ue(s, ["stop", "prevent"])
|
|
816
816
|
}, [
|
|
817
817
|
h(a.$slots, "default", {}, () => [
|
|
818
|
-
e.icon ? (
|
|
818
|
+
e.icon ? (u(), D(b(ne), se(ce({ key: 0 }, e.icon)), null, 16)) : q("", !0),
|
|
819
819
|
me(" " + R(e.label), 1)
|
|
820
820
|
]),
|
|
821
|
-
|
|
822
|
-
e.selected ? (
|
|
821
|
+
le("div", Dt, [
|
|
822
|
+
e.selected ? (u(), D(b(ne), ce({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : q("", !0)
|
|
823
823
|
])
|
|
824
824
|
], 42, Et));
|
|
825
825
|
}
|
|
826
|
-
}), Qt = ["aria-labelledby"], Mt = ["id"], Ft = /* @__PURE__ */ L({
|
|
826
|
+
}), Qt = ["data-key", "aria-labelledby"], Mt = ["id"], Ft = /* @__PURE__ */ L({
|
|
827
827
|
__name: "QListItemGroup",
|
|
828
828
|
props: {
|
|
829
|
-
|
|
830
|
-
|
|
829
|
+
id: {},
|
|
830
|
+
title: { default: "" }
|
|
831
831
|
},
|
|
832
832
|
setup(t) {
|
|
833
833
|
const o = t, e = ye();
|
|
834
|
-
return (n, l) => (
|
|
834
|
+
return (n, l) => (u(), m("ul", {
|
|
835
835
|
class: "q-list-item-group",
|
|
836
836
|
role: "group",
|
|
837
|
+
"data-key": o.id,
|
|
837
838
|
"aria-labelledby": o.title ? b(e) : void 0
|
|
838
839
|
}, [
|
|
839
|
-
o.title ? (
|
|
840
|
+
o.title ? (u(), m("li", {
|
|
840
841
|
key: 0,
|
|
841
842
|
id: b(e),
|
|
842
843
|
class: "q-list-item-group__title",
|
|
@@ -845,16 +846,16 @@ const Et = ["id", "data-key", "tabindex", "aria-label", "aria-selected"], Dt = {
|
|
|
845
846
|
h(n.$slots, "default")
|
|
846
847
|
], 8, Qt));
|
|
847
848
|
}
|
|
848
|
-
}), Re =
|
|
849
|
+
}), Re = S(Ct), Ot = S(zt), Ut = S(Ft), _e = 8;
|
|
849
850
|
function Pt(t, o, e, n) {
|
|
850
|
-
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(),
|
|
851
|
-
let
|
|
851
|
+
const l = (n == null ? void 0 : n.offset) ?? 0, s = (n == null ? void 0 : n.placement) ?? "bottom", i = t.getBoundingClientRect(), a = o.getBoundingClientRect(), c = e == null ? void 0 : e.getBoundingClientRect(), v = Nt(i, a, s, l), $ = Wt(i, a, v), x = Kt($, v, l), z = Ht(x, a, v);
|
|
852
|
+
let T;
|
|
852
853
|
if (n != null && n.arrow) {
|
|
853
|
-
if (!
|
|
854
|
+
if (!c)
|
|
854
855
|
throw new Error("[Quidgest UI] The arrow element must exist to compute its position");
|
|
855
|
-
|
|
856
|
+
T = Gt(z, i, a, c, v);
|
|
856
857
|
}
|
|
857
|
-
return { overlayCoords: z, arrowCoords:
|
|
858
|
+
return { overlayCoords: z, arrowCoords: T, placement: v };
|
|
858
859
|
}
|
|
859
860
|
function Nt(t, o, e, n) {
|
|
860
861
|
const l = Fe(t, o, e, n);
|
|
@@ -864,13 +865,13 @@ function Nt(t, o, e, n) {
|
|
|
864
865
|
bottom: "top",
|
|
865
866
|
left: "right",
|
|
866
867
|
right: "left"
|
|
867
|
-
}[s],
|
|
868
|
+
}[s], c = Fe(
|
|
868
869
|
t,
|
|
869
870
|
o,
|
|
870
871
|
a,
|
|
871
872
|
n
|
|
872
873
|
);
|
|
873
|
-
if (Oe(
|
|
874
|
+
if (Oe(c))
|
|
874
875
|
return e;
|
|
875
876
|
const v = Xt(e);
|
|
876
877
|
return v ? `${a}-${v}` : a;
|
|
@@ -878,7 +879,7 @@ function Nt(t, o, e, n) {
|
|
|
878
879
|
return e;
|
|
879
880
|
}
|
|
880
881
|
function Ht(t, o, e) {
|
|
881
|
-
const n =
|
|
882
|
+
const n = ke(e), l = (i, a, c) => Math.min(Math.max(i, a), c), s = { ...t };
|
|
882
883
|
return n === "x" ? s.x = l(t.x, _e, window.innerWidth - o.width - _e) : s.y = l(t.y, _e, window.innerHeight - o.height - _e), s;
|
|
883
884
|
}
|
|
884
885
|
function Kt(t, o, e) {
|
|
@@ -889,14 +890,14 @@ function Kt(t, o, e) {
|
|
|
889
890
|
};
|
|
890
891
|
}
|
|
891
892
|
function Gt(t, o, e, n, l) {
|
|
892
|
-
if (
|
|
893
|
-
const i = o.top + o.height / 2, a = t.y + e.height / 2,
|
|
893
|
+
if (ke(l) === "y") {
|
|
894
|
+
const i = o.top + o.height / 2, a = t.y + e.height / 2, c = a - i, v = e.height / 2 - c - n.height / 2 + 2;
|
|
894
895
|
if (v > 0 && v < e.height - n.height)
|
|
895
896
|
return {
|
|
896
897
|
y: v
|
|
897
898
|
};
|
|
898
899
|
} else {
|
|
899
|
-
const i = o.left + o.width / 2, a = t.x + e.width / 2,
|
|
900
|
+
const i = o.left + o.width / 2, a = t.x + e.width / 2, c = a - i, v = e.width / 2 - c - n.width / 2 + 2;
|
|
900
901
|
if (v > 0 && v < e.width - n.width)
|
|
901
902
|
return {
|
|
902
903
|
x: v
|
|
@@ -924,7 +925,7 @@ function Wt(t, o, e) {
|
|
|
924
925
|
}
|
|
925
926
|
if (!l)
|
|
926
927
|
return a;
|
|
927
|
-
const v =
|
|
928
|
+
const v = ke(e) === "y" ? "height" : "width", $ = ke(e), x = t[v] / 2 - o[v] / 2;
|
|
928
929
|
switch (l) {
|
|
929
930
|
case "start":
|
|
930
931
|
a[$] -= x;
|
|
@@ -965,7 +966,7 @@ function Rt(t) {
|
|
|
965
966
|
const o = be(t);
|
|
966
967
|
return ["left", "right"].includes(o) ? "x" : "y";
|
|
967
968
|
}
|
|
968
|
-
function
|
|
969
|
+
function ke(t) {
|
|
969
970
|
return jt(Rt(t));
|
|
970
971
|
}
|
|
971
972
|
function be(t) {
|
|
@@ -1022,7 +1023,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1022
1023
|
left: 0,
|
|
1023
1024
|
width: 0,
|
|
1024
1025
|
placement: e.placement
|
|
1025
|
-
}),
|
|
1026
|
+
}), c = Ae({
|
|
1026
1027
|
top: void 0,
|
|
1027
1028
|
left: void 0,
|
|
1028
1029
|
hidden: !0
|
|
@@ -1031,7 +1032,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1031
1032
|
const $ = k(() => {
|
|
1032
1033
|
if (e.anchor === void 0)
|
|
1033
1034
|
return;
|
|
1034
|
-
const y = A(),
|
|
1035
|
+
const y = A(), re = e.width === "anchor", N = re ? y == null ? void 0 : y.getBoundingClientRect().width : void 0;
|
|
1035
1036
|
return {
|
|
1036
1037
|
top: `${a.top}px`,
|
|
1037
1038
|
left: `${a.left}px`,
|
|
@@ -1040,33 +1041,33 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1040
1041
|
}), x = k(() => {
|
|
1041
1042
|
if (e.arrow)
|
|
1042
1043
|
return {
|
|
1043
|
-
top:
|
|
1044
|
-
left:
|
|
1045
|
-
opacity:
|
|
1044
|
+
top: c.top !== void 0 ? `${c.top}px` : void 0,
|
|
1045
|
+
left: c.left !== void 0 ? `${c.left}px` : void 0,
|
|
1046
|
+
opacity: c.hidden ? 0 : 1
|
|
1046
1047
|
};
|
|
1047
|
-
}), z =
|
|
1048
|
+
}), z = V(null), T = V(null);
|
|
1048
1049
|
function I() {
|
|
1049
1050
|
const y = A();
|
|
1050
|
-
if (!y || !
|
|
1051
|
+
if (!y || !T.value)
|
|
1051
1052
|
return;
|
|
1052
|
-
const
|
|
1053
|
+
const re = {
|
|
1053
1054
|
placement: e.placement,
|
|
1054
1055
|
width: e.width,
|
|
1055
1056
|
offset: e.offset,
|
|
1056
1057
|
arrow: e.arrow
|
|
1057
1058
|
}, N = Pt(
|
|
1058
1059
|
y,
|
|
1059
|
-
|
|
1060
|
+
T.value,
|
|
1060
1061
|
(z == null ? void 0 : z.value) ?? void 0,
|
|
1061
|
-
|
|
1062
|
+
re
|
|
1062
1063
|
);
|
|
1063
|
-
a.left = N.overlayCoords.x, a.top = N.overlayCoords.y, a.placement = N.placement,
|
|
1064
|
+
a.left = N.overlayCoords.x, a.top = N.overlayCoords.y, a.placement = N.placement, c.hidden = N.arrowCoords === void 0, N.arrowCoords && (c.top = N.arrowCoords.y, c.left = N.arrowCoords.x);
|
|
1064
1065
|
}
|
|
1065
1066
|
W(
|
|
1066
1067
|
() => e.placement,
|
|
1067
1068
|
() => j(I)
|
|
1068
1069
|
);
|
|
1069
|
-
let
|
|
1070
|
+
let B;
|
|
1070
1071
|
function K() {
|
|
1071
1072
|
H(0);
|
|
1072
1073
|
}
|
|
@@ -1074,12 +1075,12 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1074
1075
|
H(e.delay);
|
|
1075
1076
|
}
|
|
1076
1077
|
function H(y) {
|
|
1077
|
-
|
|
1078
|
+
B || (B = window.setTimeout(() => {
|
|
1078
1079
|
l.value = !0;
|
|
1079
1080
|
}, y));
|
|
1080
1081
|
}
|
|
1081
1082
|
function M() {
|
|
1082
|
-
if (clearTimeout(
|
|
1083
|
+
if (clearTimeout(B), B = void 0, l.value = !1, e.anchor && e.trigger === "click") {
|
|
1083
1084
|
const y = A();
|
|
1084
1085
|
y == null || y.focus();
|
|
1085
1086
|
}
|
|
@@ -1138,7 +1139,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1138
1139
|
function P() {
|
|
1139
1140
|
d(), e.spy ? ee() : I(), e.scrollLock && document.body.classList.add("no-scroll"), (e.anchor === void 0 || e.trigger === "click") && j(() => {
|
|
1140
1141
|
var y;
|
|
1141
|
-
return (y =
|
|
1142
|
+
return (y = T.value) == null ? void 0 : y.focus();
|
|
1142
1143
|
});
|
|
1143
1144
|
}
|
|
1144
1145
|
function oe() {
|
|
@@ -1157,13 +1158,13 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1157
1158
|
j(() => y ? P() : oe());
|
|
1158
1159
|
},
|
|
1159
1160
|
{ immediate: !0 }
|
|
1160
|
-
), (y,
|
|
1161
|
+
), (y, re) => (u(), D(Ye, {
|
|
1161
1162
|
disabled: !l.value && !a.animating || !e.attach,
|
|
1162
1163
|
to: e.attach
|
|
1163
1164
|
}, [
|
|
1164
|
-
i.value ? (
|
|
1165
|
+
i.value ? (u(), m("div", {
|
|
1165
1166
|
key: 0,
|
|
1166
|
-
class:
|
|
1167
|
+
class: C([
|
|
1167
1168
|
"q-overlay__underlay",
|
|
1168
1169
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1169
1170
|
])
|
|
@@ -1174,28 +1175,28 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1174
1175
|
onLeave: J
|
|
1175
1176
|
}, {
|
|
1176
1177
|
default: w(() => [
|
|
1177
|
-
l.value ? (
|
|
1178
|
+
l.value ? (u(), m("div", {
|
|
1178
1179
|
key: 0,
|
|
1179
|
-
class:
|
|
1180
|
-
style:
|
|
1180
|
+
class: C(s.value),
|
|
1181
|
+
style: ie($.value)
|
|
1181
1182
|
}, [
|
|
1182
|
-
|
|
1183
|
+
le("div", ce({
|
|
1183
1184
|
class: "q-overlay__content",
|
|
1184
1185
|
ref_key: "overlayRef",
|
|
1185
|
-
ref:
|
|
1186
|
+
ref: T,
|
|
1186
1187
|
tabindex: "-1",
|
|
1187
1188
|
role: i.value ? "dialog" : void 0
|
|
1188
1189
|
}, y.$attrs, {
|
|
1189
1190
|
onKeydown: Je(ge, ["escape"]),
|
|
1190
1191
|
onBlur: ge
|
|
1191
1192
|
}), [
|
|
1192
|
-
e.arrow ? (
|
|
1193
|
+
e.arrow ? (u(), m("div", {
|
|
1193
1194
|
key: 0,
|
|
1194
1195
|
ref_key: "arrowRef",
|
|
1195
1196
|
ref: z,
|
|
1196
1197
|
role: "presentation",
|
|
1197
1198
|
class: "q-overlay__arrow",
|
|
1198
|
-
style:
|
|
1199
|
+
style: ie(x.value)
|
|
1199
1200
|
}, null, 4)) : q("", !0),
|
|
1200
1201
|
h(y.$slots, "default")
|
|
1201
1202
|
], 16, Zt)
|
|
@@ -1205,7 +1206,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1205
1206
|
}, 8, ["name"])
|
|
1206
1207
|
], 8, ["disabled", "to"]));
|
|
1207
1208
|
}
|
|
1208
|
-
}), $e =
|
|
1209
|
+
}), $e = S(Jt), eo = ["id"], to = {
|
|
1209
1210
|
key: 0,
|
|
1210
1211
|
class: "q-field__label"
|
|
1211
1212
|
}, oo = ["for"], no = {
|
|
@@ -1231,12 +1232,12 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1231
1232
|
class: { default: void 0 }
|
|
1232
1233
|
},
|
|
1233
1234
|
setup(t, { expose: o }) {
|
|
1234
|
-
const e = t, n = ye(e.id), l =
|
|
1235
|
+
const e = t, n = ye(e.id), l = V(null), s = k(() => e.required && !e.readonly && !e.disabled);
|
|
1235
1236
|
return o({
|
|
1236
1237
|
fieldRef: l
|
|
1237
|
-
}), (i, a) => (
|
|
1238
|
+
}), (i, a) => (u(), m("div", {
|
|
1238
1239
|
id: b(n),
|
|
1239
|
-
class:
|
|
1240
|
+
class: C([
|
|
1240
1241
|
"q-field",
|
|
1241
1242
|
`q-field--${e.size}`,
|
|
1242
1243
|
{
|
|
@@ -1247,34 +1248,34 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1247
1248
|
e.class
|
|
1248
1249
|
])
|
|
1249
1250
|
}, [
|
|
1250
|
-
e.label ? (
|
|
1251
|
+
e.label ? (u(), m("div", to, [
|
|
1251
1252
|
h(i.$slots, "label.prepend"),
|
|
1252
|
-
|
|
1253
|
+
le("label", {
|
|
1253
1254
|
for: e.for
|
|
1254
1255
|
}, R(e.label), 9, oo),
|
|
1255
1256
|
h(i.$slots, "label.append")
|
|
1256
1257
|
])) : q("", !0),
|
|
1257
1258
|
h(i.$slots, "control", {}, () => [
|
|
1258
|
-
|
|
1259
|
+
le("div", ce({
|
|
1259
1260
|
class: "q-field__control",
|
|
1260
1261
|
ref_key: "fieldRef",
|
|
1261
1262
|
ref: l
|
|
1262
1263
|
}, i.$attrs), [
|
|
1263
|
-
i.$slots.prepend ? (
|
|
1264
|
+
i.$slots.prepend ? (u(), m("div", no, [
|
|
1264
1265
|
h(i.$slots, "prepend")
|
|
1265
1266
|
])) : q("", !0),
|
|
1266
1267
|
h(i.$slots, "default"),
|
|
1267
|
-
i.$slots.append ? (
|
|
1268
|
+
i.$slots.append ? (u(), m("div", lo, [
|
|
1268
1269
|
h(i.$slots, "append")
|
|
1269
1270
|
])) : q("", !0)
|
|
1270
1271
|
], 16)
|
|
1271
1272
|
]),
|
|
1272
|
-
i.$slots.extras ? (
|
|
1273
|
+
i.$slots.extras ? (u(), m("div", ao, [
|
|
1273
1274
|
h(i.$slots, "extras")
|
|
1274
1275
|
])) : q("", !0)
|
|
1275
1276
|
], 10, eo));
|
|
1276
1277
|
}
|
|
1277
|
-
}), Be =
|
|
1278
|
+
}), Be = S(so), io = ["id", "type", "role", "required", "placeholder", "readonly", "disabled", "maxlength"], ro = /* @__PURE__ */ L({
|
|
1278
1279
|
inheritAttrs: !1,
|
|
1279
1280
|
__name: "QTextField",
|
|
1280
1281
|
props: /* @__PURE__ */ X({
|
|
@@ -1295,34 +1296,34 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1295
1296
|
}),
|
|
1296
1297
|
emits: ["update:modelValue"],
|
|
1297
1298
|
setup(t, { expose: o }) {
|
|
1298
|
-
const e = t, n = te(t, "modelValue"), l = ye(e.id), s =
|
|
1299
|
+
const e = t, n = te(t, "modelValue"), l = ye(e.id), s = V(null), i = V(null), a = k(
|
|
1299
1300
|
() => e.readonly || e.disabled ? "" : e.placeholder
|
|
1300
1301
|
);
|
|
1301
1302
|
return o({
|
|
1302
1303
|
fieldRef: k(() => {
|
|
1303
|
-
var
|
|
1304
|
-
return (
|
|
1304
|
+
var c;
|
|
1305
|
+
return (c = s.value) == null ? void 0 : c.fieldRef;
|
|
1305
1306
|
}),
|
|
1306
1307
|
inputRef: i
|
|
1307
|
-
}), (
|
|
1308
|
+
}), (c, v) => (u(), D(b(Be), {
|
|
1308
1309
|
ref_key: "fieldRef",
|
|
1309
1310
|
ref: s,
|
|
1310
|
-
class:
|
|
1311
|
+
class: C(["q-text-field", e.class]),
|
|
1311
1312
|
for: b(l),
|
|
1312
1313
|
label: e.label,
|
|
1313
1314
|
size: e.size,
|
|
1314
1315
|
readonly: e.readonly,
|
|
1315
1316
|
disabled: e.disabled,
|
|
1316
1317
|
required: e.required
|
|
1317
|
-
},
|
|
1318
|
+
}, we({
|
|
1318
1319
|
"label.prepend": w(() => [
|
|
1319
|
-
h(
|
|
1320
|
+
h(c.$slots, "label.prepend")
|
|
1320
1321
|
]),
|
|
1321
1322
|
"label.append": w(() => [
|
|
1322
|
-
h(
|
|
1323
|
+
h(c.$slots, "label.append")
|
|
1323
1324
|
]),
|
|
1324
1325
|
default: w(() => [
|
|
1325
|
-
et(
|
|
1326
|
+
et(le("input", ce({
|
|
1326
1327
|
"onUpdate:modelValue": v[0] || (v[0] = ($) => n.value = $),
|
|
1327
1328
|
ref_key: "inputRef",
|
|
1328
1329
|
ref: i,
|
|
@@ -1335,36 +1336,36 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1335
1336
|
readonly: e.readonly,
|
|
1336
1337
|
disabled: e.disabled,
|
|
1337
1338
|
maxlength: e.maxLength
|
|
1338
|
-
},
|
|
1339
|
+
}, c.$attrs), null, 16, io), [
|
|
1339
1340
|
[tt, n.value]
|
|
1340
1341
|
])
|
|
1341
1342
|
]),
|
|
1342
1343
|
_: 2
|
|
1343
1344
|
}, [
|
|
1344
|
-
|
|
1345
|
+
c.$slots.prepend ? {
|
|
1345
1346
|
name: "prepend",
|
|
1346
1347
|
fn: w(() => [
|
|
1347
|
-
h(
|
|
1348
|
+
h(c.$slots, "prepend")
|
|
1348
1349
|
]),
|
|
1349
1350
|
key: "0"
|
|
1350
1351
|
} : void 0,
|
|
1351
|
-
|
|
1352
|
+
c.$slots.append ? {
|
|
1352
1353
|
name: "append",
|
|
1353
1354
|
fn: w(() => [
|
|
1354
|
-
h(
|
|
1355
|
+
h(c.$slots, "append")
|
|
1355
1356
|
]),
|
|
1356
1357
|
key: "1"
|
|
1357
1358
|
} : void 0,
|
|
1358
|
-
|
|
1359
|
+
c.$slots.extras ? {
|
|
1359
1360
|
name: "extras",
|
|
1360
1361
|
fn: w(() => [
|
|
1361
|
-
h(
|
|
1362
|
+
h(c.$slots, "extras")
|
|
1362
1363
|
]),
|
|
1363
1364
|
key: "2"
|
|
1364
1365
|
} : void 0
|
|
1365
1366
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1366
1367
|
}
|
|
1367
|
-
}), uo =
|
|
1368
|
+
}), uo = S(ro), co = ["data-key"], fo = {
|
|
1368
1369
|
key: 0,
|
|
1369
1370
|
class: "q-select__loader"
|
|
1370
1371
|
}, po = {
|
|
@@ -1413,68 +1414,68 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1413
1414
|
}),
|
|
1414
1415
|
emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue", "update:open", "update:search"]),
|
|
1415
1416
|
setup(t, { expose: o, emit: e }) {
|
|
1416
|
-
const n = t, l = e, s = te(t, "modelValue"), i = te(t, "open"), a = te(t, "search"),
|
|
1417
|
+
const n = t, l = e, s = te(t, "modelValue"), i = te(t, "open"), a = te(t, "search"), c = V(void 0), v = V(null), $ = V(null), x = V(null), z = V(null);
|
|
1417
1418
|
Ke(U);
|
|
1418
|
-
const
|
|
1419
|
+
const T = k(() => n.clearable && !n.readonly && !n.disabled), I = k(() => {
|
|
1419
1420
|
var r;
|
|
1420
1421
|
return n.filterMode === "manual" || !M.value ? n.items : (r = n.items) == null ? void 0 : r.filter(
|
|
1421
1422
|
(_) => _[n.itemLabel].toLowerCase().startsWith(a.value.toLowerCase())
|
|
1422
1423
|
);
|
|
1423
|
-
}),
|
|
1424
|
+
}), B = k(() => {
|
|
1424
1425
|
var r;
|
|
1425
1426
|
return (r = n.items) == null ? void 0 : r.find((_) => _[n.itemValue] === s.value);
|
|
1426
|
-
}), K = k(() =>
|
|
1427
|
-
const r =
|
|
1427
|
+
}), K = k(() => B.value === void 0), Y = k(() => {
|
|
1428
|
+
const r = c.value;
|
|
1428
1429
|
if (r !== void 0 && I.value[r])
|
|
1429
1430
|
return I.value[r];
|
|
1430
1431
|
}), H = k(() => {
|
|
1431
1432
|
var _;
|
|
1432
|
-
if (
|
|
1433
|
+
if (c.value === void 0)
|
|
1433
1434
|
return;
|
|
1434
|
-
const r = (_ = $.value) == null ? void 0 : _.getItem(
|
|
1435
|
+
const r = (_ = $.value) == null ? void 0 : _.getItem(c.value);
|
|
1435
1436
|
return r == null ? void 0 : r.id;
|
|
1436
1437
|
}), M = k(() => {
|
|
1437
1438
|
var r;
|
|
1438
|
-
return a.value.length > 0 && a.value !== ((r =
|
|
1439
|
+
return a.value.length > 0 && a.value !== ((r = B.value) == null ? void 0 : r[n.itemLabel]);
|
|
1439
1440
|
});
|
|
1440
1441
|
function Z(r) {
|
|
1441
1442
|
s.value = r, A();
|
|
1442
1443
|
}
|
|
1443
1444
|
function U() {
|
|
1444
1445
|
var _;
|
|
1445
|
-
const r = ((_ =
|
|
1446
|
+
const r = ((_ = B.value) == null ? void 0 : _[n.itemLabel]) || "";
|
|
1446
1447
|
a.value !== r && (a.value = r);
|
|
1447
1448
|
}
|
|
1448
1449
|
function J() {
|
|
1449
1450
|
i.value || n.readonly || n.disabled || (l("before-show"), i.value = !0, oe());
|
|
1450
1451
|
}
|
|
1451
1452
|
function A() {
|
|
1452
|
-
i.value && (l("before-hide"), i.value = !1,
|
|
1453
|
+
i.value && (l("before-hide"), i.value = !1, c.value = void 0);
|
|
1453
1454
|
}
|
|
1454
1455
|
function G() {
|
|
1455
1456
|
i.value ? A() : g();
|
|
1456
1457
|
}
|
|
1457
1458
|
function f() {
|
|
1458
|
-
|
|
1459
|
+
T.value && (s.value = n.emptyValue, c.value = void 0, oe());
|
|
1459
1460
|
}
|
|
1460
1461
|
function g() {
|
|
1461
|
-
if (J(),
|
|
1462
|
-
const r = I.value.indexOf(
|
|
1462
|
+
if (J(), B.value !== void 0) {
|
|
1463
|
+
const r = I.value.indexOf(B.value);
|
|
1463
1464
|
r !== -1 && j(() => N(r));
|
|
1464
1465
|
}
|
|
1465
1466
|
}
|
|
1466
1467
|
function d(r) {
|
|
1467
|
-
var _,
|
|
1468
|
+
var _, E;
|
|
1468
1469
|
if (!(!r.key || n.readonly || n.disabled))
|
|
1469
1470
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(r.key) && (r.preventDefault(), r.stopPropagation()), r.key === "Escape")
|
|
1470
1471
|
U(), i.value && A();
|
|
1471
1472
|
else if (["ArrowDown", "ArrowUp"].includes(r.key))
|
|
1472
1473
|
i.value ? j(() => {
|
|
1473
|
-
if (
|
|
1474
|
+
if (c.value === void 0)
|
|
1474
1475
|
p();
|
|
1475
1476
|
else {
|
|
1476
1477
|
const O = r.key === "ArrowDown" ? "next" : "prev";
|
|
1477
|
-
ee(
|
|
1478
|
+
ee(c.value, O);
|
|
1478
1479
|
}
|
|
1479
1480
|
}) : (J(), j(() => {
|
|
1480
1481
|
r.key === "ArrowDown" ? p() : F();
|
|
@@ -1484,35 +1485,35 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1484
1485
|
return;
|
|
1485
1486
|
Z(Y.value[n.itemValue]);
|
|
1486
1487
|
} else
|
|
1487
|
-
r.key === "Home" ?
|
|
1488
|
+
r.key === "Home" ? c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex() : r.key === "End" ? c.value = (E = $.value) == null ? void 0 : E.getLastFocusableItemIndex() : (/^[a-z]$/i.test(r.key) || r.key === "Backspace") && J();
|
|
1488
1489
|
}
|
|
1489
1490
|
function p() {
|
|
1490
1491
|
var r, _;
|
|
1491
1492
|
if (K.value)
|
|
1492
|
-
|
|
1493
|
+
c.value = (_ = $.value) == null ? void 0 : _.getFirstFocusableItemIndex();
|
|
1493
1494
|
else {
|
|
1494
|
-
const
|
|
1495
|
+
const E = I.value.findIndex(
|
|
1495
1496
|
(O) => O[n.itemValue] === s.value
|
|
1496
1497
|
);
|
|
1497
|
-
|
|
1498
|
+
E === -1 ? c.value = (r = $.value) == null ? void 0 : r.getFirstFocusableItemIndex() : c.value = E;
|
|
1498
1499
|
}
|
|
1499
1500
|
}
|
|
1500
1501
|
function F() {
|
|
1501
1502
|
var r;
|
|
1502
|
-
|
|
1503
|
+
c.value = (r = $.value) == null ? void 0 : r.getLastFocusableItemIndex();
|
|
1503
1504
|
}
|
|
1504
1505
|
function ee(r, _) {
|
|
1505
|
-
var
|
|
1506
|
-
|
|
1506
|
+
var E;
|
|
1507
|
+
c.value = (E = $.value) == null ? void 0 : E.getAdjacentItemIndex(r, _);
|
|
1507
1508
|
}
|
|
1508
1509
|
function P(r) {
|
|
1509
|
-
var
|
|
1510
|
-
const _ = ((
|
|
1511
|
-
if (_ || O ||
|
|
1510
|
+
var de, Ve, Ce, Te;
|
|
1511
|
+
const _ = ((de = x == null ? void 0 : x.value) == null ? void 0 : de.$el) === r.relatedTarget, E = (Ce = (Ve = v == null ? void 0 : v.value) == null ? void 0 : Ve.$el) == null ? void 0 : Ce.contains(r.relatedTarget), O = (Te = z == null ? void 0 : z.value) == null ? void 0 : Te.contains(r.relatedTarget);
|
|
1512
|
+
if (_ || O || E) {
|
|
1512
1513
|
r.preventDefault(), r.stopPropagation();
|
|
1513
1514
|
return;
|
|
1514
1515
|
}
|
|
1515
|
-
A(),
|
|
1516
|
+
A(), T.value && !a.value && (s.value = n.emptyValue), U();
|
|
1516
1517
|
}
|
|
1517
1518
|
function oe() {
|
|
1518
1519
|
var r, _;
|
|
@@ -1524,24 +1525,24 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1524
1525
|
function y() {
|
|
1525
1526
|
l("show");
|
|
1526
1527
|
}
|
|
1527
|
-
function
|
|
1528
|
+
function re() {
|
|
1528
1529
|
l("hide");
|
|
1529
1530
|
}
|
|
1530
1531
|
function N(r) {
|
|
1531
|
-
var
|
|
1532
|
-
const _ = (
|
|
1532
|
+
var E;
|
|
1533
|
+
const _ = (E = $.value) == null ? void 0 : E.getItem(r);
|
|
1533
1534
|
$.value && ($.value.$el.scrollTop = _ == null ? void 0 : _.offsetTop);
|
|
1534
1535
|
}
|
|
1535
1536
|
return W(s, U), W(
|
|
1536
1537
|
() => n.items,
|
|
1537
1538
|
(r, _) => {
|
|
1538
1539
|
if (!K.value) {
|
|
1539
|
-
const
|
|
1540
|
-
a.value === (
|
|
1540
|
+
const E = _.find((O) => O[n.itemValue] === s.value);
|
|
1541
|
+
a.value === (E == null ? void 0 : E[n.itemLabel]) && U();
|
|
1541
1542
|
}
|
|
1542
1543
|
},
|
|
1543
1544
|
{ deep: !0 }
|
|
1544
|
-
), W(
|
|
1545
|
+
), W(c, (r) => {
|
|
1545
1546
|
r !== void 0 && N(r);
|
|
1546
1547
|
}), W(a, (r) => {
|
|
1547
1548
|
r && i.value && n.selectionMode === "automatic" && j(p);
|
|
@@ -1553,8 +1554,8 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1553
1554
|
), o({
|
|
1554
1555
|
triggerEl: v
|
|
1555
1556
|
}), (r, _) => {
|
|
1556
|
-
var
|
|
1557
|
-
return
|
|
1557
|
+
var E;
|
|
1558
|
+
return u(), m(ae, null, [
|
|
1558
1559
|
Q(b(uo), {
|
|
1559
1560
|
modelValue: a.value,
|
|
1560
1561
|
"onUpdate:modelValue": _[0] || (_[0] = (O) => a.value = O),
|
|
@@ -1565,7 +1566,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1565
1566
|
ref: v,
|
|
1566
1567
|
role: "combobox",
|
|
1567
1568
|
placeholder: n.placeholder,
|
|
1568
|
-
class:
|
|
1569
|
+
class: C([
|
|
1569
1570
|
"q-combobox",
|
|
1570
1571
|
{
|
|
1571
1572
|
"q-combobox--readonly": n.readonly,
|
|
@@ -1586,7 +1587,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1586
1587
|
onClick: g,
|
|
1587
1588
|
onFocusout: P,
|
|
1588
1589
|
onKeydown: ue(d, ["stop"])
|
|
1589
|
-
},
|
|
1590
|
+
}, we({
|
|
1590
1591
|
"label.prepend": w(() => [
|
|
1591
1592
|
h(r.$slots, "label.prepend")
|
|
1592
1593
|
]),
|
|
@@ -1595,7 +1596,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1595
1596
|
]),
|
|
1596
1597
|
append: w(() => [
|
|
1597
1598
|
h(r.$slots, "append"),
|
|
1598
|
-
|
|
1599
|
+
T.value && a.value ? (u(), D(b(he), {
|
|
1599
1600
|
key: 0,
|
|
1600
1601
|
class: "q-combobox__clear",
|
|
1601
1602
|
"b-style": "plain",
|
|
@@ -1604,11 +1605,11 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1604
1605
|
onClick: f
|
|
1605
1606
|
}, {
|
|
1606
1607
|
default: w(() => [
|
|
1607
|
-
Q(b(ne),
|
|
1608
|
+
Q(b(ne), se(fe(n.icons.clear)), null, 16)
|
|
1608
1609
|
]),
|
|
1609
1610
|
_: 1
|
|
1610
1611
|
})) : q("", !0),
|
|
1611
|
-
n.readonly ? q("", !0) : (
|
|
1612
|
+
n.readonly ? q("", !0) : (u(), D(b(he), {
|
|
1612
1613
|
key: 1,
|
|
1613
1614
|
ref_key: "toggleRef",
|
|
1614
1615
|
ref: x,
|
|
@@ -1620,7 +1621,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1620
1621
|
onMousedown: ue(G, ["stop", "prevent"])
|
|
1621
1622
|
}, {
|
|
1622
1623
|
default: w(() => [
|
|
1623
|
-
Q(b(ne),
|
|
1624
|
+
Q(b(ne), se(fe(n.icons.chevron)), null, 16)
|
|
1624
1625
|
]),
|
|
1625
1626
|
_: 1
|
|
1626
1627
|
}, 8, ["disabled"]))
|
|
@@ -1651,14 +1652,14 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1651
1652
|
placement: "bottom-start",
|
|
1652
1653
|
width: "anchor",
|
|
1653
1654
|
offset: 4,
|
|
1654
|
-
anchor: (
|
|
1655
|
+
anchor: (E = v.value) == null ? void 0 : E.$el,
|
|
1655
1656
|
onEnter: y,
|
|
1656
|
-
onLeave:
|
|
1657
|
+
onLeave: re
|
|
1657
1658
|
}, {
|
|
1658
1659
|
default: w(() => {
|
|
1659
1660
|
var O;
|
|
1660
1661
|
return [
|
|
1661
|
-
|
|
1662
|
+
le("div", {
|
|
1662
1663
|
ref_key: "contentRef",
|
|
1663
1664
|
ref: z,
|
|
1664
1665
|
class: "q-select__body",
|
|
@@ -1667,16 +1668,16 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1667
1668
|
onFocusout: P
|
|
1668
1669
|
}, [
|
|
1669
1670
|
h(r.$slots, "body.prepend"),
|
|
1670
|
-
n.loading ? (
|
|
1671
|
+
n.loading ? (u(), m("div", fo, [
|
|
1671
1672
|
Q(b(Se), { size: 24 })
|
|
1672
|
-
])) : I.value.length ? (
|
|
1673
|
+
])) : I.value.length ? (u(), D(b(Re), {
|
|
1673
1674
|
key: 1,
|
|
1674
1675
|
ref_key: "listRef",
|
|
1675
1676
|
ref: $,
|
|
1676
1677
|
class: "q-select__items",
|
|
1677
1678
|
modelValue: s.value,
|
|
1678
1679
|
"onUpdate:modelValue": [
|
|
1679
|
-
_[1] || (_[1] = (
|
|
1680
|
+
_[1] || (_[1] = (de) => s.value = de),
|
|
1680
1681
|
Z
|
|
1681
1682
|
],
|
|
1682
1683
|
highlighted: (O = Y.value) == null ? void 0 : O[n.itemValue],
|
|
@@ -1686,11 +1687,11 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1686
1687
|
"item-value": n.itemValue,
|
|
1687
1688
|
onMouseup: ge
|
|
1688
1689
|
}, {
|
|
1689
|
-
item: w(({ item:
|
|
1690
|
-
h(r.$slots, "item", { item:
|
|
1690
|
+
item: w(({ item: de }) => [
|
|
1691
|
+
h(r.$slots, "item", { item: de })
|
|
1691
1692
|
]),
|
|
1692
1693
|
_: 3
|
|
1693
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (
|
|
1694
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), m("div", po, R(r.texts.noData), 1)),
|
|
1694
1695
|
h(r.$slots, "body.append")
|
|
1695
1696
|
], 40, co)
|
|
1696
1697
|
];
|
|
@@ -1700,13 +1701,13 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1700
1701
|
], 64);
|
|
1701
1702
|
};
|
|
1702
1703
|
}
|
|
1703
|
-
}),
|
|
1704
|
+
}), Go = S(ho), yo = {
|
|
1704
1705
|
key: 0,
|
|
1705
1706
|
class: "q-input-group__prepend"
|
|
1706
1707
|
}, bo = { key: 0 }, go = {
|
|
1707
1708
|
key: 1,
|
|
1708
1709
|
class: "q-input-group__append"
|
|
1709
|
-
}, _o = { key: 0 },
|
|
1710
|
+
}, _o = { key: 0 }, ko = /* @__PURE__ */ L({
|
|
1710
1711
|
__name: "QInputGroup",
|
|
1711
1712
|
props: {
|
|
1712
1713
|
id: { default: void 0 },
|
|
@@ -1723,24 +1724,24 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1723
1724
|
QField: {
|
|
1724
1725
|
size: "block"
|
|
1725
1726
|
}
|
|
1726
|
-
}), (e, n) => (
|
|
1727
|
+
}), (e, n) => (u(), D(b(Be), {
|
|
1727
1728
|
id: o.id,
|
|
1728
|
-
class:
|
|
1729
|
+
class: C(["q-input-group", o.class]),
|
|
1729
1730
|
label: o.label,
|
|
1730
1731
|
required: o.required,
|
|
1731
1732
|
size: o.size
|
|
1732
|
-
},
|
|
1733
|
+
}, we({
|
|
1733
1734
|
default: w(() => [
|
|
1734
|
-
e.$slots.prepend || o.prependIcon ? (
|
|
1735
|
-
o.prependIcon ? (
|
|
1736
|
-
Q(b(ne),
|
|
1735
|
+
e.$slots.prepend || o.prependIcon ? (u(), m("div", yo, [
|
|
1736
|
+
o.prependIcon ? (u(), m("span", bo, [
|
|
1737
|
+
Q(b(ne), se(fe(o.prependIcon)), null, 16)
|
|
1737
1738
|
])) : q("", !0),
|
|
1738
1739
|
h(e.$slots, "prepend")
|
|
1739
1740
|
])) : q("", !0),
|
|
1740
1741
|
h(e.$slots, "default"),
|
|
1741
|
-
e.$slots.append || o.appendIcon ? (
|
|
1742
|
-
o.appendIcon ? (
|
|
1743
|
-
Q(b(ne),
|
|
1742
|
+
e.$slots.append || o.appendIcon ? (u(), m("div", go, [
|
|
1743
|
+
o.appendIcon ? (u(), m("span", _o, [
|
|
1744
|
+
Q(b(ne), se(fe(o.appendIcon)), null, 16)
|
|
1744
1745
|
])) : q("", !0),
|
|
1745
1746
|
h(e.$slots, "append")
|
|
1746
1747
|
])) : q("", !0)
|
|
@@ -1756,18 +1757,18 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1756
1757
|
} : void 0
|
|
1757
1758
|
]), 1032, ["id", "class", "label", "required", "size"]));
|
|
1758
1759
|
}
|
|
1759
|
-
}),
|
|
1760
|
+
}), Wo = S(ko), wo = /* @__PURE__ */ L({
|
|
1760
1761
|
__name: "QLineLoader",
|
|
1761
1762
|
props: {
|
|
1762
1763
|
class: { default: void 0 }
|
|
1763
1764
|
},
|
|
1764
1765
|
setup(t) {
|
|
1765
1766
|
const o = t;
|
|
1766
|
-
return (e, n) => (
|
|
1767
|
-
class:
|
|
1767
|
+
return (e, n) => (u(), m("div", {
|
|
1768
|
+
class: C(["q-line-loader", o.class])
|
|
1768
1769
|
}, null, 2));
|
|
1769
1770
|
}
|
|
1770
|
-
}),
|
|
1771
|
+
}), jo = S(wo), $o = {
|
|
1771
1772
|
key: 0,
|
|
1772
1773
|
class: "q-popover__header"
|
|
1773
1774
|
}, qo = {
|
|
@@ -1792,7 +1793,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1792
1793
|
emits: ["update:modelValue"],
|
|
1793
1794
|
setup(t) {
|
|
1794
1795
|
const o = t, e = te(t, "modelValue");
|
|
1795
|
-
return (n, l) => (
|
|
1796
|
+
return (n, l) => (u(), D(b($e), {
|
|
1796
1797
|
"model-value": e.value,
|
|
1797
1798
|
class: "q-popover",
|
|
1798
1799
|
trigger: "click",
|
|
@@ -1803,22 +1804,22 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1803
1804
|
placement: o.placement
|
|
1804
1805
|
}, {
|
|
1805
1806
|
default: w(() => [
|
|
1806
|
-
o.title || n.$slots.header ? (
|
|
1807
|
+
o.title || n.$slots.header ? (u(), m("h3", $o, [
|
|
1807
1808
|
me(R(o.title) + " ", 1),
|
|
1808
1809
|
h(n.$slots, "header")
|
|
1809
1810
|
])) : q("", !0),
|
|
1810
|
-
o.text || n.$slots.body ? (
|
|
1811
|
-
o.html ? (
|
|
1811
|
+
o.text || n.$slots.body ? (u(), m("div", qo, [
|
|
1812
|
+
o.html ? (u(), m("span", {
|
|
1812
1813
|
key: 0,
|
|
1813
1814
|
innerHTML: o.text
|
|
1814
|
-
}, null, 8, Io)) : (
|
|
1815
|
+
}, null, 8, Io)) : (u(), m("span", xo, R(o.text), 1)),
|
|
1815
1816
|
h(n.$slots, "body")
|
|
1816
1817
|
])) : q("", !0)
|
|
1817
1818
|
]),
|
|
1818
1819
|
_: 3
|
|
1819
1820
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
|
|
1820
1821
|
}
|
|
1821
|
-
}),
|
|
1822
|
+
}), Ro = S(Lo), So = {
|
|
1822
1823
|
key: 0,
|
|
1823
1824
|
class: "q-select__value"
|
|
1824
1825
|
}, Bo = {
|
|
@@ -1863,21 +1864,21 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1863
1864
|
}),
|
|
1864
1865
|
emits: /* @__PURE__ */ X(["before-show", "before-hide", "show", "hide"], ["update:modelValue"]),
|
|
1865
1866
|
setup(t, { emit: o }) {
|
|
1866
|
-
const e = t, n = o, l = te(t, "modelValue"), s =
|
|
1867
|
+
const e = t, n = o, l = te(t, "modelValue"), s = V(!1), i = V(""), a = V(null), c = V(null), v = V(null), $ = k(() => x.value === void 0), x = k(
|
|
1867
1868
|
() => {
|
|
1868
1869
|
var d;
|
|
1869
1870
|
return (d = e.items) == null ? void 0 : d.find((p) => p[e.itemValue] === l.value);
|
|
1870
1871
|
}
|
|
1871
1872
|
), z = k(
|
|
1872
1873
|
() => x.value ? x.value[e.itemLabel] : ""
|
|
1873
|
-
),
|
|
1874
|
+
), T = k(
|
|
1874
1875
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1875
1876
|
);
|
|
1876
1877
|
function I(d) {
|
|
1877
1878
|
l.value = d, H();
|
|
1878
1879
|
}
|
|
1879
|
-
function
|
|
1880
|
-
|
|
1880
|
+
function B() {
|
|
1881
|
+
T.value && I(e.emptyValue);
|
|
1881
1882
|
}
|
|
1882
1883
|
function K(d) {
|
|
1883
1884
|
var p, F, ee;
|
|
@@ -1895,7 +1896,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1895
1896
|
let Z;
|
|
1896
1897
|
function U(d) {
|
|
1897
1898
|
if (!(!d.key || e.readonly || e.disabled)) {
|
|
1898
|
-
if (window.clearTimeout(Z), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (s.value = !0), ["Escape", "Tab"].includes(d.key) && (s.value ? s.value = !1 :
|
|
1899
|
+
if (window.clearTimeout(Z), ["Enter", " ", "ArrowDown", "ArrowUp", "Home", "End"].includes(d.key) && (d.preventDefault(), d.stopPropagation()), ["Enter", " "].includes(d.key) && (s.value = !0), ["Escape", "Tab"].includes(d.key) && (s.value ? s.value = !1 : T.value && d.key === "Escape" && B()), d.key === "Delete" && e.clearable && B(), /^[a-z]$/i.test(d.key)) {
|
|
1899
1900
|
i.value += d.key.toLowerCase();
|
|
1900
1901
|
for (let p = 0; p < e.items.length; p++)
|
|
1901
1902
|
if (e.items[p][e.itemLabel].toLowerCase().startsWith(i.value)) {
|
|
@@ -1921,11 +1922,11 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1921
1922
|
}
|
|
1922
1923
|
function f() {
|
|
1923
1924
|
var d;
|
|
1924
|
-
(d =
|
|
1925
|
+
(d = c.value) == null || d.$el.focus();
|
|
1925
1926
|
}
|
|
1926
1927
|
function g(d) {
|
|
1927
1928
|
var p;
|
|
1928
|
-
(p =
|
|
1929
|
+
(p = c.value) == null || p.focusItem(d);
|
|
1929
1930
|
}
|
|
1930
1931
|
return W(
|
|
1931
1932
|
() => e.loading,
|
|
@@ -1934,7 +1935,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1934
1935
|
}
|
|
1935
1936
|
), (d, p) => {
|
|
1936
1937
|
var F, ee;
|
|
1937
|
-
return
|
|
1938
|
+
return u(), m(ae, null, [
|
|
1938
1939
|
Q(b(Be), {
|
|
1939
1940
|
id: e.id,
|
|
1940
1941
|
label: e.label,
|
|
@@ -1943,7 +1944,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1943
1944
|
ref: a,
|
|
1944
1945
|
role: "combobox",
|
|
1945
1946
|
tabindex: e.disabled ? -1 : 0,
|
|
1946
|
-
class:
|
|
1947
|
+
class: C([
|
|
1947
1948
|
"q-select",
|
|
1948
1949
|
{
|
|
1949
1950
|
"q-select--readonly": e.readonly,
|
|
@@ -1960,23 +1961,23 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1960
1961
|
size: e.size,
|
|
1961
1962
|
onClick: M,
|
|
1962
1963
|
onKeydown: ue(U, ["stop"])
|
|
1963
|
-
},
|
|
1964
|
+
}, we({
|
|
1964
1965
|
append: w(() => [
|
|
1965
1966
|
h(d.$slots, "append"),
|
|
1966
|
-
|
|
1967
|
+
T.value && l.value ? (u(), D(b(he), {
|
|
1967
1968
|
key: 0,
|
|
1968
1969
|
class: "q-select__clear",
|
|
1969
1970
|
"b-style": "plain",
|
|
1970
1971
|
borderless: "",
|
|
1971
1972
|
tabindex: "-1",
|
|
1972
|
-
onClick:
|
|
1973
|
+
onClick: B
|
|
1973
1974
|
}, {
|
|
1974
1975
|
default: w(() => [
|
|
1975
|
-
Q(b(ne),
|
|
1976
|
+
Q(b(ne), se(fe(e.icons.clear)), null, 16)
|
|
1976
1977
|
]),
|
|
1977
1978
|
_: 1
|
|
1978
1979
|
})) : q("", !0),
|
|
1979
|
-
e.readonly ? q("", !0) : (
|
|
1980
|
+
e.readonly ? q("", !0) : (u(), D(b(he), {
|
|
1980
1981
|
key: 1,
|
|
1981
1982
|
class: "q-select__chevron",
|
|
1982
1983
|
"b-style": "plain",
|
|
@@ -1986,17 +1987,17 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
1986
1987
|
onClick: M
|
|
1987
1988
|
}, {
|
|
1988
1989
|
default: w(() => [
|
|
1989
|
-
Q(b(ne),
|
|
1990
|
+
Q(b(ne), se(fe(e.icons.chevron)), null, 16)
|
|
1990
1991
|
]),
|
|
1991
1992
|
_: 1
|
|
1992
1993
|
}, 8, ["disabled"]))
|
|
1993
1994
|
]),
|
|
1994
1995
|
default: w(() => [
|
|
1995
|
-
$.value ? (
|
|
1996
|
-
!e.readonly && !e.disabled ? (
|
|
1996
|
+
$.value ? (u(), m("span", Bo, [
|
|
1997
|
+
!e.readonly && !e.disabled ? (u(), m(ae, { key: 0 }, [
|
|
1997
1998
|
me(R(d.texts.placeholder), 1)
|
|
1998
1999
|
], 64)) : q("", !0)
|
|
1999
|
-
])) : (
|
|
2000
|
+
])) : (u(), m("span", So, R(z.value), 1))
|
|
2000
2001
|
]),
|
|
2001
2002
|
_: 2
|
|
2002
2003
|
}, [
|
|
@@ -2006,7 +2007,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
2006
2007
|
var P, oe;
|
|
2007
2008
|
return [
|
|
2008
2009
|
h(d.$slots, "prepend"),
|
|
2009
|
-
(P = x.value) != null && P.icon ? (
|
|
2010
|
+
(P = x.value) != null && P.icon ? (u(), D(b(ne), se(ce({ key: 0 }, (oe = x.value) == null ? void 0 : oe.icon)), null, 16)) : q("", !0)
|
|
2010
2011
|
];
|
|
2011
2012
|
}),
|
|
2012
2013
|
key: "0"
|
|
@@ -2033,7 +2034,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
2033
2034
|
onLeave: A
|
|
2034
2035
|
}, {
|
|
2035
2036
|
default: w(() => [
|
|
2036
|
-
|
|
2037
|
+
le("div", {
|
|
2037
2038
|
ref_key: "contentRef",
|
|
2038
2039
|
ref: v,
|
|
2039
2040
|
"data-testid": "combobox-dropdown",
|
|
@@ -2044,12 +2045,12 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
2044
2045
|
onKeydown: ue(U, ["stop"])
|
|
2045
2046
|
}, [
|
|
2046
2047
|
h(d.$slots, "body.prepend"),
|
|
2047
|
-
e.loading ? (
|
|
2048
|
+
e.loading ? (u(), m("div", Co, [
|
|
2048
2049
|
Q(b(Se), { size: 24 })
|
|
2049
|
-
])) : (
|
|
2050
|
+
])) : (u(), D(b(Re), {
|
|
2050
2051
|
key: 1,
|
|
2051
2052
|
ref_key: "listRef",
|
|
2052
|
-
ref:
|
|
2053
|
+
ref: c,
|
|
2053
2054
|
class: "q-select__items",
|
|
2054
2055
|
modelValue: l.value,
|
|
2055
2056
|
"onUpdate:modelValue": [
|
|
@@ -2074,20 +2075,42 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
2074
2075
|
], 64);
|
|
2075
2076
|
};
|
|
2076
2077
|
}
|
|
2077
|
-
}),
|
|
2078
|
+
}), Xo = S(Do), Ao = /* @__PURE__ */ le("div", { class: "q-skeleton-loader__bone" }, null, -1), zo = [
|
|
2079
|
+
Ao
|
|
2080
|
+
], Qo = /* @__PURE__ */ L({
|
|
2081
|
+
__name: "QSkeletonLoader",
|
|
2082
|
+
props: {
|
|
2083
|
+
type: { default: void 0 },
|
|
2084
|
+
width: { default: void 0 },
|
|
2085
|
+
height: { default: void 0 }
|
|
2086
|
+
},
|
|
2087
|
+
setup(t) {
|
|
2088
|
+
const o = t, e = k(() => o.type ? `q-skeleton-loader--${o.type}` : void 0), n = k(() => {
|
|
2089
|
+
const l = typeof o.width == "number" ? `${o.width}px` : o.width, s = typeof o.height == "number" ? `${o.height}px` : o.height;
|
|
2090
|
+
return {
|
|
2091
|
+
width: l,
|
|
2092
|
+
height: s
|
|
2093
|
+
};
|
|
2094
|
+
});
|
|
2095
|
+
return (l, s) => (u(), m("div", {
|
|
2096
|
+
class: C(["q-skeleton-loader", e.value]),
|
|
2097
|
+
style: ie(n.value)
|
|
2098
|
+
}, zo, 6));
|
|
2099
|
+
}
|
|
2100
|
+
}), Yo = S(Qo), Mo = /* @__PURE__ */ L({
|
|
2078
2101
|
__name: "QThemeProvider",
|
|
2079
2102
|
props: {
|
|
2080
2103
|
theme: {}
|
|
2081
2104
|
},
|
|
2082
2105
|
setup(t) {
|
|
2083
2106
|
const o = t;
|
|
2084
|
-
return (e, n) => (
|
|
2085
|
-
class:
|
|
2107
|
+
return (e, n) => (u(), m("div", {
|
|
2108
|
+
class: C(["q-theme-provider", `q-theme--${o.theme}`])
|
|
2086
2109
|
}, [
|
|
2087
2110
|
h(e.$slots, "default")
|
|
2088
2111
|
], 2));
|
|
2089
2112
|
}
|
|
2090
|
-
}),
|
|
2113
|
+
}), Zo = S(Mo), Fo = ["innerHTML"], Oo = { key: 1 }, Uo = /* @__PURE__ */ L({
|
|
2091
2114
|
__name: "QTooltip",
|
|
2092
2115
|
props: /* @__PURE__ */ X({
|
|
2093
2116
|
id: { default: void 0 },
|
|
@@ -2109,7 +2132,7 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
2109
2132
|
emits: ["update:modelValue"],
|
|
2110
2133
|
setup(t) {
|
|
2111
2134
|
const o = t, e = te(t, "modelValue"), n = ye(o.id);
|
|
2112
|
-
return (l, s) => (
|
|
2135
|
+
return (l, s) => (u(), m(ae, null, [
|
|
2113
2136
|
h(l.$slots, "anchor", {
|
|
2114
2137
|
props: { "aria-describedby": b(n) }
|
|
2115
2138
|
}),
|
|
@@ -2122,49 +2145,50 @@ const Zt = ["role"], Jt = /* @__PURE__ */ L({
|
|
|
2122
2145
|
appearance: o.appearance,
|
|
2123
2146
|
arrow: o.arrow,
|
|
2124
2147
|
attach: o.attach,
|
|
2125
|
-
class:
|
|
2148
|
+
class: C(["q-tooltip", o.class]),
|
|
2126
2149
|
delay: o.delay,
|
|
2127
2150
|
disabled: o.disabled,
|
|
2128
2151
|
placement: o.placement,
|
|
2129
2152
|
trigger: o.trigger
|
|
2130
2153
|
}, {
|
|
2131
2154
|
default: w(() => [
|
|
2132
|
-
o.html ? (
|
|
2155
|
+
o.html ? (u(), m("span", {
|
|
2133
2156
|
key: 0,
|
|
2134
2157
|
innerHTML: o.text
|
|
2135
|
-
}, null, 8,
|
|
2158
|
+
}, null, 8, Fo)) : (u(), m("span", Oo, R(o.text), 1))
|
|
2136
2159
|
]),
|
|
2137
2160
|
_: 1
|
|
2138
2161
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
2139
2162
|
], 64));
|
|
2140
2163
|
}
|
|
2141
|
-
}),
|
|
2164
|
+
}), Jo = S(Uo);
|
|
2142
2165
|
export {
|
|
2143
2166
|
he as QButton,
|
|
2144
2167
|
bt as QButtonGroup,
|
|
2145
|
-
|
|
2146
|
-
|
|
2168
|
+
Ko as QButtonToggle,
|
|
2169
|
+
Go as QCombobox,
|
|
2147
2170
|
Be as QField,
|
|
2148
2171
|
ne as QIcon,
|
|
2149
2172
|
St as QIconFont,
|
|
2150
2173
|
Bt as QIconImg,
|
|
2151
2174
|
Vt as QIconSvg,
|
|
2152
|
-
|
|
2153
|
-
|
|
2175
|
+
Wo as QInputGroup,
|
|
2176
|
+
jo as QLineLoader,
|
|
2154
2177
|
Re as QList,
|
|
2155
2178
|
Ot as QListItem,
|
|
2156
2179
|
Ut as QListItemGroup,
|
|
2157
2180
|
$e as QOverlay,
|
|
2158
|
-
|
|
2159
|
-
|
|
2181
|
+
Ro as QPopover,
|
|
2182
|
+
Xo as QSelect,
|
|
2183
|
+
Yo as QSkeletonLoader,
|
|
2160
2184
|
Se as QSpinnerLoader,
|
|
2161
2185
|
uo as QTextField,
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2186
|
+
Zo as QThemeProvider,
|
|
2187
|
+
Jo as QTooltip,
|
|
2188
|
+
Ho as createFramework,
|
|
2165
2189
|
lt as defaultDarkColorScheme,
|
|
2166
2190
|
Qe as defaultLightColorScheme,
|
|
2167
|
-
|
|
2191
|
+
No as provideTheme,
|
|
2168
2192
|
nt as useTheme
|
|
2169
2193
|
};
|
|
2170
2194
|
//# sourceMappingURL=ui.esm.js.map
|