@quidgest/ui 0.8.1 → 0.8.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3 -6
- package/dist/ui.esm.js +168 -166
- 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.js +18 -18
- 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 Be, computed as k, ref as q, provide as Se, inject as xe, watch as F, defineComponent as B, openBlock as u, createElementBlock as v, normalizeClass as
|
|
1
|
+
import { getCurrentInstance as Be, computed as k, ref as q, provide as Se, inject as xe, watch as F, defineComponent as B, openBlock as u, createElementBlock as v, normalizeClass as x, normalizeStyle as se, createElementVNode as P, withModifiers as te, createVNode as M, unref as y, createCommentVNode as L, Fragment as J, createTextVNode as oe, toDisplayString as N, renderSlot as b, toRef as ge, createBlock as E, withCtx as $, renderList as ce, resolveDynamicComponent as Ve, h as _e, normalizeProps as re, mergeProps as Z, reactive as Fe, onBeforeUnmount as Re, onMounted as Ee, nextTick as j, Teleport as Oe, Transition as Ue, withKeys as Me, createSlots as pe, withDirectives as Ne, vModelDynamic as He, guardReactiveProps as ke } from "vue";
|
|
2
2
|
function fe(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
|
}
|
|
@@ -53,7 +53,7 @@ function Ge() {
|
|
|
53
53
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
54
54
|
return t;
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function $n(t) {
|
|
57
57
|
const n = Ge(), o = {
|
|
58
58
|
activeTheme: q(t),
|
|
59
59
|
themes: n.themes
|
|
@@ -168,7 +168,7 @@ function Ye(t) {
|
|
|
168
168
|
function qe(t) {
|
|
169
169
|
return t ? `--q-theme-${ze(t)}` : "";
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function qn(t = {}) {
|
|
172
172
|
return { install: (o) => {
|
|
173
173
|
const e = t.components || {};
|
|
174
174
|
for (const r in e)
|
|
@@ -231,7 +231,7 @@ const et = /* @__PURE__ */ P("svg", { viewBox: "25 25 50 50" }, [
|
|
|
231
231
|
"font-size": n.size !== 48 ? `${n.size}px` : void 0
|
|
232
232
|
}));
|
|
233
233
|
return (e, l) => (u(), v("div", {
|
|
234
|
-
class:
|
|
234
|
+
class: x(["q-spinner-loader", n.class]),
|
|
235
235
|
style: se(o.value)
|
|
236
236
|
}, tt, 6));
|
|
237
237
|
}
|
|
@@ -302,20 +302,20 @@ const he = S(nt), ot = ["disabled"], at = {
|
|
|
302
302
|
});
|
|
303
303
|
return (d, m) => (u(), v("button", {
|
|
304
304
|
type: "button",
|
|
305
|
-
class:
|
|
305
|
+
class: x(s.value),
|
|
306
306
|
disabled: l.value,
|
|
307
307
|
onClick: te(r, ["stop", "prevent"])
|
|
308
308
|
}, [
|
|
309
309
|
d.loading ? (u(), v("div", at, [
|
|
310
|
-
|
|
310
|
+
M(y(he), { size: 20 })
|
|
311
311
|
])) : L("", !0),
|
|
312
312
|
P("span", st, [
|
|
313
313
|
d.iconOnRight ? (u(), v(J, { key: 0 }, [
|
|
314
|
-
oe(
|
|
314
|
+
oe(N(e.label), 1)
|
|
315
315
|
], 64)) : L("", !0),
|
|
316
316
|
b(d.$slots, "default"),
|
|
317
317
|
d.iconOnRight ? L("", !0) : (u(), v(J, { key: 1 }, [
|
|
318
|
-
oe(
|
|
318
|
+
oe(N(e.label), 1)
|
|
319
319
|
], 64))
|
|
320
320
|
])
|
|
321
321
|
], 10, ot));
|
|
@@ -338,7 +338,7 @@ const he = S(nt), ot = ["disabled"], at = {
|
|
|
338
338
|
elevated: !1
|
|
339
339
|
}
|
|
340
340
|
}), (o, e) => (u(), v("div", {
|
|
341
|
-
class:
|
|
341
|
+
class: x([
|
|
342
342
|
"q-btn-group",
|
|
343
343
|
{
|
|
344
344
|
"q-btn-group--elevated": n.elevated
|
|
@@ -378,15 +378,15 @@ const he = S(nt), ot = ["disabled"], at = {
|
|
|
378
378
|
function s(d) {
|
|
379
379
|
r.value === d.key && !e.required ? r.value = void 0 : r.value = d.key;
|
|
380
380
|
}
|
|
381
|
-
return (d, m) => (u(),
|
|
381
|
+
return (d, m) => (u(), E(y(ut), {
|
|
382
382
|
"b-style": "secondary",
|
|
383
|
-
class:
|
|
383
|
+
class: x(e.class),
|
|
384
384
|
disabled: e.disabled,
|
|
385
385
|
borderless: e.borderless,
|
|
386
386
|
elevated: e.elevated
|
|
387
387
|
}, {
|
|
388
388
|
default: $(() => [
|
|
389
|
-
(u(!0), v(J, null, ce(e.options, (h) => (u(),
|
|
389
|
+
(u(!0), v(J, null, ce(e.options, (h) => (u(), E(y(rt), {
|
|
390
390
|
key: h.key,
|
|
391
391
|
title: h.title,
|
|
392
392
|
label: h.label,
|
|
@@ -402,7 +402,7 @@ const he = S(nt), ot = ["disabled"], at = {
|
|
|
402
402
|
_: 3
|
|
403
403
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
404
404
|
}
|
|
405
|
-
}),
|
|
405
|
+
}), In = S(ct), ft = /* @__PURE__ */ B({
|
|
406
406
|
__name: "QIcon",
|
|
407
407
|
props: {
|
|
408
408
|
icon: {},
|
|
@@ -423,8 +423,8 @@ const he = S(nt), ot = ["disabled"], at = {
|
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
425
|
});
|
|
426
|
-
return (e, l) => (u(),
|
|
427
|
-
class:
|
|
426
|
+
return (e, l) => (u(), E(Ve(o.value), {
|
|
427
|
+
class: x(n.class),
|
|
428
428
|
icon: n.icon,
|
|
429
429
|
size: n.size
|
|
430
430
|
}, null, 8, ["class", "icon", "size"]));
|
|
@@ -443,7 +443,7 @@ const he = S(nt), ot = ["disabled"], at = {
|
|
|
443
443
|
"font-size": n.size !== void 0 ? `${n.size}px` : void 0
|
|
444
444
|
}));
|
|
445
445
|
return (r, s) => (u(), v("i", {
|
|
446
|
-
class:
|
|
446
|
+
class: x(["q-icon", "q-icon__font", o.value, e.value, n.class]),
|
|
447
447
|
style: se(l.value)
|
|
448
448
|
}, null, 6));
|
|
449
449
|
}
|
|
@@ -460,7 +460,7 @@ const he = S(nt), ot = ["disabled"], at = {
|
|
|
460
460
|
}));
|
|
461
461
|
return (e, l) => (u(), v("img", {
|
|
462
462
|
src: n.icon,
|
|
463
|
-
class:
|
|
463
|
+
class: x(["q-icon", "q-icon__img", n.class]),
|
|
464
464
|
style: se(o.value)
|
|
465
465
|
}, null, 14, mt));
|
|
466
466
|
}
|
|
@@ -596,8 +596,8 @@ const gt = /* @__PURE__ */ B({
|
|
|
596
596
|
function s() {
|
|
597
597
|
o("unloaded");
|
|
598
598
|
}
|
|
599
|
-
return (d, m) => (u(),
|
|
600
|
-
class:
|
|
599
|
+
return (d, m) => (u(), E(y(ht), {
|
|
600
|
+
class: x(["q-icon", "q-icon__svg", e.class]),
|
|
601
601
|
src: e.bundle,
|
|
602
602
|
symbol: e.icon,
|
|
603
603
|
style: se(l.value),
|
|
@@ -664,7 +664,7 @@ const gt = /* @__PURE__ */ B({
|
|
|
664
664
|
O(A());
|
|
665
665
|
break;
|
|
666
666
|
case "last":
|
|
667
|
-
O(
|
|
667
|
+
O(H());
|
|
668
668
|
break;
|
|
669
669
|
}
|
|
670
670
|
}
|
|
@@ -687,24 +687,24 @@ const gt = /* @__PURE__ */ B({
|
|
|
687
687
|
const a = R(), f = a.find((g) => Y(g));
|
|
688
688
|
return f ? a.indexOf(f) : -1;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function H() {
|
|
691
691
|
const a = R(), f = [...a].reverse().find((g) => Y(g));
|
|
692
692
|
return f ? a.indexOf(f) : -1;
|
|
693
693
|
}
|
|
694
|
-
function
|
|
694
|
+
function K(a, f, g) {
|
|
695
695
|
return f === "prev" && a === 0 || f === "next" && a === g.length - 1;
|
|
696
696
|
}
|
|
697
697
|
function U(a) {
|
|
698
698
|
const f = X();
|
|
699
|
-
return
|
|
699
|
+
return G(f, a);
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function G(a, f) {
|
|
702
702
|
const g = R();
|
|
703
|
-
if (
|
|
703
|
+
if (K(a, f, g))
|
|
704
704
|
return a;
|
|
705
705
|
let I = a + (f === "next" ? 1 : -1);
|
|
706
706
|
for (; !Y(g[I]); ) {
|
|
707
|
-
if (
|
|
707
|
+
if (K(I, f, g))
|
|
708
708
|
return a;
|
|
709
709
|
I += f === "next" ? 1 : -1;
|
|
710
710
|
}
|
|
@@ -724,13 +724,13 @@ const gt = /* @__PURE__ */ B({
|
|
|
724
724
|
), n({
|
|
725
725
|
focusItem: O,
|
|
726
726
|
getItem: C,
|
|
727
|
-
getAdjacentItemIndex:
|
|
727
|
+
getAdjacentItemIndex: G,
|
|
728
728
|
getFirstFocusableItemIndex: A,
|
|
729
|
-
getLastFocusableItemIndex:
|
|
730
|
-
}), (a, f) => (u(),
|
|
729
|
+
getLastFocusableItemIndex: H
|
|
730
|
+
}), (a, f) => (u(), E(Ve(d.value), {
|
|
731
731
|
ref_key: "listRef",
|
|
732
732
|
ref: h,
|
|
733
|
-
class:
|
|
733
|
+
class: x(["q-list", { "q-list--disabled": l.disabled }, l.class]),
|
|
734
734
|
role: "listbox",
|
|
735
735
|
tabindex: l.disabled ? -1 : 0,
|
|
736
736
|
onFocus: T,
|
|
@@ -739,13 +739,13 @@ const gt = /* @__PURE__ */ B({
|
|
|
739
739
|
onKeydown: D
|
|
740
740
|
}, {
|
|
741
741
|
default: $(() => [
|
|
742
|
-
(u(!0), v(J, null, ce(m.value, (g) => (u(),
|
|
742
|
+
(u(!0), v(J, null, ce(m.value, (g) => (u(), E(y(Tt), {
|
|
743
743
|
key: g.id,
|
|
744
744
|
title: m.value.length === 1 ? void 0 : g.title,
|
|
745
745
|
disabled: g.disabled
|
|
746
746
|
}, {
|
|
747
747
|
default: $(() => [
|
|
748
|
-
(u(!0), v(J, null, ce(c(g.id), (I) => (u(),
|
|
748
|
+
(u(!0), v(J, null, ce(c(g.id), (I) => (u(), E(y(Dt), {
|
|
749
749
|
key: I[l.itemValue],
|
|
750
750
|
value: I[l.itemValue],
|
|
751
751
|
label: I[l.itemLabel],
|
|
@@ -800,7 +800,7 @@ const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
|
|
|
800
800
|
id: y(l),
|
|
801
801
|
role: "option",
|
|
802
802
|
tabindex: e.disabled ? void 0 : -2,
|
|
803
|
-
class:
|
|
803
|
+
class: x([
|
|
804
804
|
"q-list-item",
|
|
805
805
|
{
|
|
806
806
|
"q-list-item--disabled": e.disabled,
|
|
@@ -814,11 +814,11 @@ const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
|
|
|
814
814
|
onClick: te(r, ["stop", "prevent"])
|
|
815
815
|
}, [
|
|
816
816
|
b(d.$slots, "default", {}, () => [
|
|
817
|
-
e.icon ? (u(),
|
|
818
|
-
oe(" " +
|
|
817
|
+
e.icon ? (u(), E(y(ee), re(Z({ key: 0 }, e.icon)), null, 16)) : L("", !0),
|
|
818
|
+
oe(" " + N(e.label), 1)
|
|
819
819
|
]),
|
|
820
820
|
P("div", Lt, [
|
|
821
|
-
e.selected ? (u(),
|
|
821
|
+
e.selected ? (u(), E(y(ee), Z({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : L("", !0)
|
|
822
822
|
])
|
|
823
823
|
], 42, It));
|
|
824
824
|
}
|
|
@@ -840,7 +840,7 @@ const It = ["id", "tabindex", "aria-label", "aria-selected"], Lt = { class: "q-l
|
|
|
840
840
|
id: y(o),
|
|
841
841
|
class: "q-list-item-group__title",
|
|
842
842
|
role: "presentation"
|
|
843
|
-
},
|
|
843
|
+
}, N(n.title), 9, Vt)) : L("", !0),
|
|
844
844
|
b(e.$slots, "default")
|
|
845
845
|
], 8, xt));
|
|
846
846
|
}
|
|
@@ -998,14 +998,14 @@ const Qt = ["role"], At = {
|
|
|
998
998
|
}
|
|
999
999
|
function T(a) {
|
|
1000
1000
|
_ || (_ = window.setTimeout(() => {
|
|
1001
|
-
s.visible = !0,
|
|
1001
|
+
s.visible = !0, j(() => {
|
|
1002
1002
|
var f;
|
|
1003
1003
|
e.trigger === "click" && ((f = m.value) == null || f.focus());
|
|
1004
1004
|
});
|
|
1005
1005
|
}, a));
|
|
1006
1006
|
}
|
|
1007
1007
|
function D() {
|
|
1008
|
-
clearTimeout(_), _ = void 0, s.visible = !1,
|
|
1008
|
+
clearTimeout(_), _ = void 0, s.visible = !1, j(() => {
|
|
1009
1009
|
if (e.anchor && e.trigger === "click") {
|
|
1010
1010
|
const a = ne(e.anchor);
|
|
1011
1011
|
a == null || a.focus();
|
|
@@ -1021,7 +1021,7 @@ const Qt = ["role"], At = {
|
|
|
1021
1021
|
}
|
|
1022
1022
|
let C;
|
|
1023
1023
|
function X() {
|
|
1024
|
-
|
|
1024
|
+
j(() => {
|
|
1025
1025
|
if (!e.anchor)
|
|
1026
1026
|
return;
|
|
1027
1027
|
const a = ne(e.anchor);
|
|
@@ -1037,7 +1037,7 @@ const Qt = ["role"], At = {
|
|
|
1037
1037
|
});
|
|
1038
1038
|
}
|
|
1039
1039
|
function A() {
|
|
1040
|
-
|
|
1040
|
+
j(() => {
|
|
1041
1041
|
if (!e.anchor)
|
|
1042
1042
|
return;
|
|
1043
1043
|
const a = ne(e.anchor);
|
|
@@ -1049,7 +1049,7 @@ const Qt = ["role"], At = {
|
|
|
1049
1049
|
}), h());
|
|
1050
1050
|
});
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function H() {
|
|
1053
1053
|
if (!e.anchor)
|
|
1054
1054
|
return;
|
|
1055
1055
|
const a = ne(e.anchor);
|
|
@@ -1063,25 +1063,25 @@ const Qt = ["role"], At = {
|
|
|
1063
1063
|
break;
|
|
1064
1064
|
}
|
|
1065
1065
|
}
|
|
1066
|
-
function
|
|
1066
|
+
function K() {
|
|
1067
1067
|
window.removeEventListener("scroll", h), window.removeEventListener("resize", h), C == null || C.disconnect();
|
|
1068
1068
|
}
|
|
1069
1069
|
let U;
|
|
1070
|
-
function
|
|
1070
|
+
function G() {
|
|
1071
1071
|
if (!e.anchor)
|
|
1072
1072
|
return;
|
|
1073
|
-
ne(e.anchor) ? (h(), U = window.setTimeout(
|
|
1073
|
+
ne(e.anchor) ? (h(), U = window.setTimeout(G, 100)) : D();
|
|
1074
1074
|
}
|
|
1075
1075
|
function Y() {
|
|
1076
|
-
A(), e.spy &&
|
|
1076
|
+
A(), e.spy && G();
|
|
1077
1077
|
}
|
|
1078
1078
|
function c() {
|
|
1079
|
-
|
|
1079
|
+
K(), e.spy && (clearTimeout(U), U = void 0);
|
|
1080
1080
|
}
|
|
1081
1081
|
return Re(() => {
|
|
1082
|
-
|
|
1082
|
+
H(), c();
|
|
1083
1083
|
}), Ee(() => {
|
|
1084
|
-
|
|
1084
|
+
j(() => {
|
|
1085
1085
|
X(), h();
|
|
1086
1086
|
});
|
|
1087
1087
|
}), F(
|
|
@@ -1090,18 +1090,18 @@ const Qt = ["role"], At = {
|
|
|
1090
1090
|
a ? Y() : c();
|
|
1091
1091
|
},
|
|
1092
1092
|
{ immediate: !0 }
|
|
1093
|
-
), (a, f) => (u(),
|
|
1093
|
+
), (a, f) => (u(), E(Oe, {
|
|
1094
1094
|
disabled: !s.visible && !s.animating || !e.attach,
|
|
1095
1095
|
to: e.attach
|
|
1096
1096
|
}, [
|
|
1097
1097
|
r.value ? (u(), v("div", {
|
|
1098
1098
|
key: 0,
|
|
1099
|
-
class:
|
|
1099
|
+
class: x([
|
|
1100
1100
|
"q-overlay__underlay",
|
|
1101
1101
|
{ "q-overlay__underlay--blur": e.backdropBlur }
|
|
1102
1102
|
])
|
|
1103
1103
|
}, null, 2)) : L("", !0),
|
|
1104
|
-
|
|
1104
|
+
M(Ue, {
|
|
1105
1105
|
name: e.transition,
|
|
1106
1106
|
appear: "",
|
|
1107
1107
|
onEnter: O,
|
|
@@ -1110,7 +1110,7 @@ const Qt = ["role"], At = {
|
|
|
1110
1110
|
default: $(() => [
|
|
1111
1111
|
s.visible ? (u(), v("div", {
|
|
1112
1112
|
key: 0,
|
|
1113
|
-
class:
|
|
1113
|
+
class: x(l.value),
|
|
1114
1114
|
style: se(d.value)
|
|
1115
1115
|
}, [
|
|
1116
1116
|
P("div", Z({
|
|
@@ -1163,7 +1163,7 @@ const Qt = ["role"], At = {
|
|
|
1163
1163
|
fieldRef: l
|
|
1164
1164
|
}), (s, d) => (u(), v("div", {
|
|
1165
1165
|
id: y(e),
|
|
1166
|
-
class:
|
|
1166
|
+
class: x([
|
|
1167
1167
|
"q-field",
|
|
1168
1168
|
`q-field--${o.size}`,
|
|
1169
1169
|
{
|
|
@@ -1178,7 +1178,7 @@ const Qt = ["role"], At = {
|
|
|
1178
1178
|
b(s.$slots, "label.prepend"),
|
|
1179
1179
|
P("label", {
|
|
1180
1180
|
for: o.for
|
|
1181
|
-
},
|
|
1181
|
+
}, N(o.label), 9, Ut),
|
|
1182
1182
|
b(s.$slots, "label.append")
|
|
1183
1183
|
])) : L("", !0),
|
|
1184
1184
|
b(s.$slots, "control", {}, () => [
|
|
@@ -1239,10 +1239,10 @@ const Qt = ["role"], At = {
|
|
|
1239
1239
|
return (p = d.value) == null ? void 0 : p.fieldRef;
|
|
1240
1240
|
}),
|
|
1241
1241
|
inputRef: m
|
|
1242
|
-
}), (p, z) => (u(),
|
|
1242
|
+
}), (p, z) => (u(), E(y(be), {
|
|
1243
1243
|
ref_key: "fieldRef",
|
|
1244
1244
|
ref: d,
|
|
1245
|
-
class:
|
|
1245
|
+
class: x(["q-text-field", l.class]),
|
|
1246
1246
|
for: y(r),
|
|
1247
1247
|
label: l.label,
|
|
1248
1248
|
size: l.size,
|
|
@@ -1300,15 +1300,18 @@ const Qt = ["role"], At = {
|
|
|
1300
1300
|
]), 1032, ["class", "for", "label", "size", "readonly", "disabled", "required"]));
|
|
1301
1301
|
}
|
|
1302
1302
|
}), jt = S(Wt), Pt = {
|
|
1303
|
-
key:
|
|
1303
|
+
key: 0,
|
|
1304
1304
|
class: "q-select__loader"
|
|
1305
1305
|
}, Xt = {
|
|
1306
|
-
|
|
1306
|
+
key: 2,
|
|
1307
|
+
class: "q-select__loader"
|
|
1307
1308
|
}, Yt = {
|
|
1309
|
+
noData: "No data available"
|
|
1310
|
+
}, Zt = {
|
|
1308
1311
|
clear: {
|
|
1309
1312
|
icon: "close"
|
|
1310
1313
|
}
|
|
1311
|
-
},
|
|
1314
|
+
}, Jt = /* @__PURE__ */ B({
|
|
1312
1315
|
__name: "QCombobox",
|
|
1313
1316
|
props: {
|
|
1314
1317
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1327,8 +1330,8 @@ const Qt = ["role"], At = {
|
|
|
1327
1330
|
itemValue: { default: "key" },
|
|
1328
1331
|
itemLabel: { default: "label" },
|
|
1329
1332
|
size: { default: void 0 },
|
|
1330
|
-
texts: { default: () =>
|
|
1331
|
-
icons: { default: () =>
|
|
1333
|
+
texts: { default: () => Yt },
|
|
1334
|
+
icons: { default: () => Zt },
|
|
1332
1335
|
class: { default: void 0 }
|
|
1333
1336
|
},
|
|
1334
1337
|
emits: ["update:modelValue", "update:inputValue", "before-show", "before-hide", "show", "hide"],
|
|
@@ -1363,41 +1366,41 @@ const Qt = ["role"], At = {
|
|
|
1363
1366
|
r.value = i, A(), e("update:modelValue", i);
|
|
1364
1367
|
}
|
|
1365
1368
|
function X(i) {
|
|
1366
|
-
C(i),
|
|
1369
|
+
C(i), K();
|
|
1367
1370
|
}
|
|
1368
1371
|
function A() {
|
|
1369
1372
|
var i;
|
|
1370
1373
|
d.value = ((i = D.value) == null ? void 0 : i[l.itemLabel]) || "";
|
|
1371
1374
|
}
|
|
1372
|
-
function
|
|
1375
|
+
function H() {
|
|
1373
1376
|
s.value || l.readonly || l.disabled || (e("before-show"), s.value = !0);
|
|
1374
1377
|
}
|
|
1375
|
-
function
|
|
1378
|
+
function K() {
|
|
1376
1379
|
s.value && (e("before-hide"), s.value = !1, m.value = void 0);
|
|
1377
1380
|
}
|
|
1378
1381
|
function U() {
|
|
1379
1382
|
C(void 0), m.value = void 0;
|
|
1380
1383
|
}
|
|
1381
|
-
function
|
|
1382
|
-
if (
|
|
1384
|
+
function G() {
|
|
1385
|
+
if (H(), D.value !== void 0) {
|
|
1383
1386
|
const i = T.value.indexOf(D.value);
|
|
1384
|
-
i !== -1 &&
|
|
1387
|
+
i !== -1 && j(() => ye(i));
|
|
1385
1388
|
}
|
|
1386
1389
|
}
|
|
1387
1390
|
function Y(i) {
|
|
1388
|
-
var w,
|
|
1391
|
+
var w, V;
|
|
1389
1392
|
if (!(!i.key || l.readonly || l.disabled))
|
|
1390
1393
|
if (["ArrowDown", "ArrowUp", "Home", "End"].includes(i.key) && (i.preventDefault(), i.stopPropagation()), i.key === "Escape")
|
|
1391
|
-
s.value ?
|
|
1394
|
+
s.value ? K() : U();
|
|
1392
1395
|
else if (["ArrowDown", "ArrowUp"].includes(i.key))
|
|
1393
|
-
s.value ?
|
|
1396
|
+
s.value ? j(() => {
|
|
1394
1397
|
if (m.value === void 0)
|
|
1395
1398
|
c();
|
|
1396
1399
|
else {
|
|
1397
|
-
const
|
|
1398
|
-
f(m.value,
|
|
1400
|
+
const W = i.key === "ArrowDown" ? "next" : "prev";
|
|
1401
|
+
f(m.value, W);
|
|
1399
1402
|
}
|
|
1400
|
-
}) : (
|
|
1403
|
+
}) : (H(), j(() => {
|
|
1401
1404
|
i.key === "ArrowDown" ? c() : a();
|
|
1402
1405
|
}));
|
|
1403
1406
|
else if (i.key === "Enter") {
|
|
@@ -1405,15 +1408,15 @@ const Qt = ["role"], At = {
|
|
|
1405
1408
|
return;
|
|
1406
1409
|
X(Q.value[l.itemValue]);
|
|
1407
1410
|
} else
|
|
1408
|
-
i.key === "Home" ? m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex() : i.key === "End" ? m.value = (
|
|
1411
|
+
i.key === "Home" ? m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex() : i.key === "End" ? m.value = (V = _.value) == null ? void 0 : V.getLastFocusableItemIndex() : (/^[a-z]$/i.test(i.key) || i.key === "Backspace") && H();
|
|
1409
1412
|
}
|
|
1410
1413
|
function c() {
|
|
1411
1414
|
var i, w;
|
|
1412
1415
|
if (r.value !== void 0) {
|
|
1413
|
-
const
|
|
1414
|
-
(
|
|
1416
|
+
const V = T.value.findIndex(
|
|
1417
|
+
(W) => W[l.itemValue] === r.value
|
|
1415
1418
|
);
|
|
1416
|
-
|
|
1419
|
+
V === -1 ? m.value = (i = _.value) == null ? void 0 : i.getFirstFocusableItemIndex() : m.value = V;
|
|
1417
1420
|
} else
|
|
1418
1421
|
m.value = (w = _.value) == null ? void 0 : w.getFirstFocusableItemIndex();
|
|
1419
1422
|
}
|
|
@@ -1422,12 +1425,12 @@ const Qt = ["role"], At = {
|
|
|
1422
1425
|
m.value = (i = _.value) == null ? void 0 : i.getLastFocusableItemIndex();
|
|
1423
1426
|
}
|
|
1424
1427
|
function f(i, w) {
|
|
1425
|
-
var
|
|
1426
|
-
m.value = (
|
|
1428
|
+
var V;
|
|
1429
|
+
m.value = (V = _.value) == null ? void 0 : V.getAdjacentItemIndex(i, w);
|
|
1427
1430
|
}
|
|
1428
1431
|
function g(i) {
|
|
1429
|
-
var w,
|
|
1430
|
-
!((w = p.value) != null && w.contains(i.relatedTarget)) && !((
|
|
1432
|
+
var w, V, W;
|
|
1433
|
+
!((w = p.value) != null && w.contains(i.relatedTarget)) && !((W = (V = h.value) == null ? void 0 : V.fieldRef) != null && W.contains(i.relatedTarget)) ? (K(), A()) : (i.preventDefault(), i.stopPropagation());
|
|
1431
1434
|
}
|
|
1432
1435
|
function I() {
|
|
1433
1436
|
var i, w;
|
|
@@ -1440,8 +1443,8 @@ const Qt = ["role"], At = {
|
|
|
1440
1443
|
e("hide");
|
|
1441
1444
|
}
|
|
1442
1445
|
function ye(i) {
|
|
1443
|
-
var
|
|
1444
|
-
const w = (
|
|
1446
|
+
var V;
|
|
1447
|
+
const w = (V = _.value) == null ? void 0 : V.getItem(i);
|
|
1445
1448
|
w == null || w.scrollIntoView({ block: "nearest", inline: "start" });
|
|
1446
1449
|
}
|
|
1447
1450
|
return F(
|
|
@@ -1452,13 +1455,13 @@ const Qt = ["role"], At = {
|
|
|
1452
1455
|
), F(m, (i) => {
|
|
1453
1456
|
i !== void 0 && ye(i);
|
|
1454
1457
|
}), F(d, (i) => {
|
|
1455
|
-
!i && z.value ? U() : s.value && l.selectionMode === "automatic" &&
|
|
1458
|
+
!i && z.value ? U() : s.value && l.selectionMode === "automatic" && j(c), e("update:inputValue", i);
|
|
1456
1459
|
}), n({
|
|
1457
1460
|
triggerEl: h
|
|
1458
1461
|
}), (i, w) => (u(), v(J, null, [
|
|
1459
|
-
|
|
1462
|
+
M(y(jt), {
|
|
1460
1463
|
modelValue: d.value,
|
|
1461
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
1464
|
+
"onUpdate:modelValue": w[0] || (w[0] = (V) => d.value = V),
|
|
1462
1465
|
id: l.id,
|
|
1463
1466
|
label: l.label,
|
|
1464
1467
|
required: l.required,
|
|
@@ -1466,15 +1469,16 @@ const Qt = ["role"], At = {
|
|
|
1466
1469
|
ref: h,
|
|
1467
1470
|
role: "combobox",
|
|
1468
1471
|
placeholder: l.placeholder,
|
|
1469
|
-
class:
|
|
1472
|
+
class: x(["q-combobox", l.class]),
|
|
1470
1473
|
readonly: l.readonly,
|
|
1471
1474
|
disabled: l.disabled,
|
|
1475
|
+
autocomplete: "off",
|
|
1472
1476
|
"aria-expanded": s.value,
|
|
1473
1477
|
"aria-haspopup": "listbox",
|
|
1474
1478
|
"aria-autocomplete": "list",
|
|
1475
1479
|
"aria-activedescendant": O.value,
|
|
1476
1480
|
size: l.size,
|
|
1477
|
-
onClick:
|
|
1481
|
+
onClick: G,
|
|
1478
1482
|
onFocusout: g,
|
|
1479
1483
|
onKeydown: te(Y, ["stop"])
|
|
1480
1484
|
}, pe({
|
|
@@ -1496,7 +1500,7 @@ const Qt = ["role"], At = {
|
|
|
1496
1500
|
z.value && d.value || i.$slots.append ? {
|
|
1497
1501
|
name: "append",
|
|
1498
1502
|
fn: $(() => [
|
|
1499
|
-
z.value && d.value ? (u(),
|
|
1503
|
+
z.value && d.value ? (u(), E(y(ee), Z({ key: 0 }, l.icons.clear, {
|
|
1500
1504
|
class: "q-combobox__clear",
|
|
1501
1505
|
onClick: te(U, ["stop", "prevent"])
|
|
1502
1506
|
}), null, 16)) : L("", !0),
|
|
@@ -1512,7 +1516,7 @@ const Qt = ["role"], At = {
|
|
|
1512
1516
|
key: "2"
|
|
1513
1517
|
} : void 0
|
|
1514
1518
|
]), 1032, ["modelValue", "id", "label", "required", "placeholder", "class", "readonly", "disabled", "aria-expanded", "aria-activedescendant", "size"]),
|
|
1515
|
-
|
|
1519
|
+
M(y(de), {
|
|
1516
1520
|
"model-value": s.value,
|
|
1517
1521
|
spy: "",
|
|
1518
1522
|
trigger: "manual",
|
|
@@ -1524,7 +1528,7 @@ const Qt = ["role"], At = {
|
|
|
1524
1528
|
onLeave: Ae
|
|
1525
1529
|
}, {
|
|
1526
1530
|
default: $(() => {
|
|
1527
|
-
var
|
|
1531
|
+
var V;
|
|
1528
1532
|
return [
|
|
1529
1533
|
P("div", {
|
|
1530
1534
|
ref_key: "contentRef",
|
|
@@ -1533,32 +1537,30 @@ const Qt = ["role"], At = {
|
|
|
1533
1537
|
onFocusout: g
|
|
1534
1538
|
}, [
|
|
1535
1539
|
b(i.$slots, "body.prepend"),
|
|
1536
|
-
l.loading ? (u(),
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
size: 24
|
|
1540
|
-
})) : T.value.length ? (u(), x(y(Ce), {
|
|
1540
|
+
l.loading ? (u(), v("div", Pt, [
|
|
1541
|
+
M(y(he), { size: 24 })
|
|
1542
|
+
])) : T.value.length ? (u(), E(y(Ce), {
|
|
1541
1543
|
key: 1,
|
|
1542
1544
|
ref_key: "listRef",
|
|
1543
1545
|
ref: _,
|
|
1544
1546
|
class: "q-select__items",
|
|
1545
1547
|
modelValue: r.value,
|
|
1546
1548
|
"onUpdate:modelValue": [
|
|
1547
|
-
w[1] || (w[1] = (
|
|
1549
|
+
w[1] || (w[1] = (W) => r.value = W),
|
|
1548
1550
|
X
|
|
1549
1551
|
],
|
|
1550
|
-
highlighted: (
|
|
1552
|
+
highlighted: (V = Q.value) == null ? void 0 : V[l.itemValue],
|
|
1551
1553
|
items: T.value,
|
|
1552
1554
|
groups: i.groups,
|
|
1553
1555
|
"item-label": l.itemLabel,
|
|
1554
1556
|
"item-value": l.itemValue,
|
|
1555
1557
|
onMouseup: I
|
|
1556
1558
|
}, {
|
|
1557
|
-
item: $(({ item:
|
|
1558
|
-
b(i.$slots, "item", { item:
|
|
1559
|
+
item: $(({ item: W }) => [
|
|
1560
|
+
b(i.$slots, "item", { item: W })
|
|
1559
1561
|
]),
|
|
1560
1562
|
_: 3
|
|
1561
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div",
|
|
1563
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (u(), v("div", Xt, N(i.texts.noData), 1)),
|
|
1562
1564
|
b(i.$slots, "body.append")
|
|
1563
1565
|
], 544)
|
|
1564
1566
|
];
|
|
@@ -1567,13 +1569,13 @@ const Qt = ["role"], At = {
|
|
|
1567
1569
|
}, 8, ["model-value", "anchor"])
|
|
1568
1570
|
], 64));
|
|
1569
1571
|
}
|
|
1570
|
-
}),
|
|
1572
|
+
}), Ln = S(Jt), en = {
|
|
1571
1573
|
key: 0,
|
|
1572
1574
|
class: "q-input-group__prepend"
|
|
1573
|
-
},
|
|
1575
|
+
}, tn = { key: 0 }, nn = {
|
|
1574
1576
|
key: 1,
|
|
1575
1577
|
class: "q-input-group__append"
|
|
1576
|
-
},
|
|
1578
|
+
}, ln = { key: 0 }, on = /* @__PURE__ */ B({
|
|
1577
1579
|
__name: "QInputGroup",
|
|
1578
1580
|
props: {
|
|
1579
1581
|
id: { default: void 0 },
|
|
@@ -1590,24 +1592,24 @@ const Qt = ["role"], At = {
|
|
|
1590
1592
|
QField: {
|
|
1591
1593
|
size: "block"
|
|
1592
1594
|
}
|
|
1593
|
-
}), (o, e) => (u(),
|
|
1595
|
+
}), (o, e) => (u(), E(y(be), {
|
|
1594
1596
|
id: n.id,
|
|
1595
|
-
class:
|
|
1597
|
+
class: x(["q-input-group", n.class]),
|
|
1596
1598
|
label: n.label,
|
|
1597
1599
|
required: n.required,
|
|
1598
1600
|
size: n.size
|
|
1599
1601
|
}, {
|
|
1600
1602
|
default: $(() => [
|
|
1601
|
-
o.$slots.prepend || n.prependIcon ? (u(), v("div",
|
|
1602
|
-
n.prependIcon ? (u(), v("span",
|
|
1603
|
-
|
|
1603
|
+
o.$slots.prepend || n.prependIcon ? (u(), v("div", en, [
|
|
1604
|
+
n.prependIcon ? (u(), v("span", tn, [
|
|
1605
|
+
M(y(ee), re(ke(n.prependIcon)), null, 16)
|
|
1604
1606
|
])) : L("", !0),
|
|
1605
1607
|
b(o.$slots, "prepend")
|
|
1606
1608
|
])) : L("", !0),
|
|
1607
1609
|
b(o.$slots, "default"),
|
|
1608
|
-
o.$slots.append || n.appendIcon ? (u(), v("div",
|
|
1609
|
-
n.appendIcon ? (u(), v("span",
|
|
1610
|
-
|
|
1610
|
+
o.$slots.append || n.appendIcon ? (u(), v("div", nn, [
|
|
1611
|
+
n.appendIcon ? (u(), v("span", ln, [
|
|
1612
|
+
M(y(ee), re(ke(n.appendIcon)), null, 16)
|
|
1611
1613
|
])) : L("", !0),
|
|
1612
1614
|
b(o.$slots, "append")
|
|
1613
1615
|
])) : L("", !0)
|
|
@@ -1615,7 +1617,7 @@ const Qt = ["role"], At = {
|
|
|
1615
1617
|
_: 3
|
|
1616
1618
|
}, 8, ["id", "class", "label", "required", "size"]));
|
|
1617
1619
|
}
|
|
1618
|
-
}),
|
|
1620
|
+
}), Bn = S(on), an = /* @__PURE__ */ B({
|
|
1619
1621
|
__name: "QLineLoader",
|
|
1620
1622
|
props: {
|
|
1621
1623
|
class: { default: void 0 }
|
|
@@ -1623,16 +1625,16 @@ const Qt = ["role"], At = {
|
|
|
1623
1625
|
setup(t) {
|
|
1624
1626
|
const n = t;
|
|
1625
1627
|
return (o, e) => (u(), v("div", {
|
|
1626
|
-
class:
|
|
1628
|
+
class: x(["q-line-loader", n.class])
|
|
1627
1629
|
}, null, 2));
|
|
1628
1630
|
}
|
|
1629
|
-
}),
|
|
1631
|
+
}), Sn = S(an), sn = {
|
|
1630
1632
|
key: 0,
|
|
1631
1633
|
class: "q-popover__header"
|
|
1632
|
-
},
|
|
1634
|
+
}, rn = {
|
|
1633
1635
|
key: 1,
|
|
1634
1636
|
class: "q-popover__body"
|
|
1635
|
-
},
|
|
1637
|
+
}, dn = ["innerHTML"], un = { key: 1 }, cn = /* @__PURE__ */ B({
|
|
1636
1638
|
inheritAttrs: !1,
|
|
1637
1639
|
__name: "QPopover",
|
|
1638
1640
|
props: {
|
|
@@ -1648,7 +1650,7 @@ const Qt = ["role"], At = {
|
|
|
1648
1650
|
},
|
|
1649
1651
|
setup(t) {
|
|
1650
1652
|
const n = t;
|
|
1651
|
-
return (o, e) => (u(),
|
|
1653
|
+
return (o, e) => (u(), E(y(de), {
|
|
1652
1654
|
"model-value": n.modelValue,
|
|
1653
1655
|
class: "q-popover",
|
|
1654
1656
|
trigger: "click",
|
|
@@ -1659,40 +1661,40 @@ const Qt = ["role"], At = {
|
|
|
1659
1661
|
placement: n.placement
|
|
1660
1662
|
}, {
|
|
1661
1663
|
default: $(() => [
|
|
1662
|
-
n.title || o.$slots.header ? (u(), v("h3",
|
|
1663
|
-
oe(
|
|
1664
|
+
n.title || o.$slots.header ? (u(), v("h3", sn, [
|
|
1665
|
+
oe(N(n.title) + " ", 1),
|
|
1664
1666
|
b(o.$slots, "header")
|
|
1665
1667
|
])) : L("", !0),
|
|
1666
|
-
n.text || o.$slots.body ? (u(), v("div",
|
|
1668
|
+
n.text || o.$slots.body ? (u(), v("div", rn, [
|
|
1667
1669
|
n.html ? (u(), v("span", {
|
|
1668
1670
|
key: 0,
|
|
1669
1671
|
innerHTML: n.text
|
|
1670
|
-
}, null, 8,
|
|
1672
|
+
}, null, 8, dn)) : (u(), v("span", un, N(n.text), 1)),
|
|
1671
1673
|
b(o.$slots, "body")
|
|
1672
1674
|
])) : L("", !0)
|
|
1673
1675
|
]),
|
|
1674
1676
|
_: 3
|
|
1675
1677
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement"]));
|
|
1676
1678
|
}
|
|
1677
|
-
}),
|
|
1679
|
+
}), xn = S(cn), fn = {
|
|
1678
1680
|
key: 0,
|
|
1679
1681
|
class: "q-select__value"
|
|
1680
|
-
},
|
|
1682
|
+
}, pn = {
|
|
1681
1683
|
key: 1,
|
|
1682
1684
|
class: "q-select__placeholder"
|
|
1683
|
-
},
|
|
1685
|
+
}, mn = {
|
|
1684
1686
|
key: 0,
|
|
1685
1687
|
class: "q-select__loader"
|
|
1686
|
-
}, mn = {
|
|
1687
|
-
placeholder: "Choose..."
|
|
1688
1688
|
}, vn = {
|
|
1689
|
+
placeholder: "Choose..."
|
|
1690
|
+
}, hn = {
|
|
1689
1691
|
chevron: {
|
|
1690
1692
|
icon: "chevron-down"
|
|
1691
1693
|
},
|
|
1692
1694
|
clear: {
|
|
1693
1695
|
icon: "close"
|
|
1694
1696
|
}
|
|
1695
|
-
},
|
|
1697
|
+
}, bn = /* @__PURE__ */ B({
|
|
1696
1698
|
__name: "QSelect",
|
|
1697
1699
|
props: {
|
|
1698
1700
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1703,13 +1705,13 @@ const Qt = ["role"], At = {
|
|
|
1703
1705
|
disabled: { type: Boolean },
|
|
1704
1706
|
required: { type: Boolean },
|
|
1705
1707
|
loading: { type: Boolean },
|
|
1706
|
-
icons: { default: () =>
|
|
1708
|
+
icons: { default: () => hn },
|
|
1707
1709
|
items: {},
|
|
1708
1710
|
groups: { default: () => [] },
|
|
1709
1711
|
itemValue: { default: "key" },
|
|
1710
1712
|
itemLabel: { default: "label" },
|
|
1711
1713
|
size: { default: void 0 },
|
|
1712
|
-
texts: { default: () =>
|
|
1714
|
+
texts: { default: () => vn },
|
|
1713
1715
|
class: { default: "" }
|
|
1714
1716
|
},
|
|
1715
1717
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
@@ -1759,18 +1761,18 @@ const Qt = ["role"], At = {
|
|
|
1759
1761
|
}, 500);
|
|
1760
1762
|
}
|
|
1761
1763
|
}
|
|
1762
|
-
function
|
|
1764
|
+
function H() {
|
|
1763
1765
|
var c;
|
|
1764
|
-
e.loading ? (c = h.value) == null || c.focus() :
|
|
1766
|
+
e.loading ? (c = h.value) == null || c.focus() : G(), o("show");
|
|
1765
1767
|
}
|
|
1766
|
-
function
|
|
1768
|
+
function K() {
|
|
1767
1769
|
U(), o("hide");
|
|
1768
1770
|
}
|
|
1769
1771
|
function U() {
|
|
1770
1772
|
var c, a;
|
|
1771
1773
|
(a = (c = d.value) == null ? void 0 : c.fieldRef) == null || a.focus();
|
|
1772
1774
|
}
|
|
1773
|
-
function
|
|
1775
|
+
function G() {
|
|
1774
1776
|
var c;
|
|
1775
1777
|
(c = m.value) == null || c.$el.focus();
|
|
1776
1778
|
}
|
|
@@ -1786,12 +1788,12 @@ const Qt = ["role"], At = {
|
|
|
1786
1788
|
), F(
|
|
1787
1789
|
() => e.loading,
|
|
1788
1790
|
(c) => {
|
|
1789
|
-
!c && r.value &&
|
|
1791
|
+
!c && r.value && j(G);
|
|
1790
1792
|
}
|
|
1791
1793
|
), (c, a) => {
|
|
1792
1794
|
var f;
|
|
1793
1795
|
return u(), v(J, null, [
|
|
1794
|
-
|
|
1796
|
+
M(y(be), {
|
|
1795
1797
|
id: e.id,
|
|
1796
1798
|
label: e.label,
|
|
1797
1799
|
required: e.required,
|
|
@@ -1799,7 +1801,7 @@ const Qt = ["role"], At = {
|
|
|
1799
1801
|
ref: d,
|
|
1800
1802
|
role: "combobox",
|
|
1801
1803
|
tabindex: e.disabled ? -1 : 0,
|
|
1802
|
-
class:
|
|
1804
|
+
class: x([
|
|
1803
1805
|
"q-select",
|
|
1804
1806
|
{
|
|
1805
1807
|
"q-select--readonly": e.readonly,
|
|
@@ -1818,16 +1820,16 @@ const Qt = ["role"], At = {
|
|
|
1818
1820
|
}, pe({
|
|
1819
1821
|
append: $(() => [
|
|
1820
1822
|
b(c.$slots, "append"),
|
|
1821
|
-
z.value && l.value ? (u(),
|
|
1823
|
+
z.value && l.value ? (u(), E(y(ee), Z({ key: 0 }, e.icons.clear, {
|
|
1822
1824
|
class: "q-select__clear",
|
|
1823
1825
|
onClick: te(D, ["stop", "prevent"])
|
|
1824
1826
|
}), null, 16)) : L("", !0),
|
|
1825
|
-
e.readonly ? L("", !0) : (u(),
|
|
1827
|
+
e.readonly ? L("", !0) : (u(), E(y(ee), Z({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
|
|
1826
1828
|
]),
|
|
1827
1829
|
default: $(() => [
|
|
1828
|
-
l.value !== void 0 ? (u(), v("span",
|
|
1830
|
+
l.value !== void 0 ? (u(), v("span", fn, N(p.value), 1)) : (u(), v("span", pn, [
|
|
1829
1831
|
!e.readonly && !e.disabled ? (u(), v(J, { key: 0 }, [
|
|
1830
|
-
oe(
|
|
1832
|
+
oe(N(c.texts.placeholder), 1)
|
|
1831
1833
|
], 64)) : L("", !0)
|
|
1832
1834
|
]))
|
|
1833
1835
|
]),
|
|
@@ -1839,7 +1841,7 @@ const Qt = ["role"], At = {
|
|
|
1839
1841
|
var g, I;
|
|
1840
1842
|
return [
|
|
1841
1843
|
b(c.$slots, "prepend"),
|
|
1842
|
-
(g = _.value) != null && g.icon ? (u(),
|
|
1844
|
+
(g = _.value) != null && g.icon ? (u(), E(y(ee), re(Z({ key: 0 }, (I = _.value) == null ? void 0 : I.icon)), null, 16)) : L("", !0)
|
|
1843
1845
|
];
|
|
1844
1846
|
}),
|
|
1845
1847
|
key: "0"
|
|
@@ -1852,7 +1854,7 @@ const Qt = ["role"], At = {
|
|
|
1852
1854
|
key: "1"
|
|
1853
1855
|
} : void 0
|
|
1854
1856
|
]), 1032, ["id", "label", "required", "tabindex", "class", "readonly", "disabled", "aria-expanded", "size"]),
|
|
1855
|
-
|
|
1857
|
+
M(y(de), {
|
|
1856
1858
|
"model-value": r.value,
|
|
1857
1859
|
spy: "",
|
|
1858
1860
|
trigger: "manual",
|
|
@@ -1860,8 +1862,8 @@ const Qt = ["role"], At = {
|
|
|
1860
1862
|
width: "anchor",
|
|
1861
1863
|
anchor: d.value,
|
|
1862
1864
|
offset: 2,
|
|
1863
|
-
onEnter:
|
|
1864
|
-
onLeave:
|
|
1865
|
+
onEnter: H,
|
|
1866
|
+
onLeave: K
|
|
1865
1867
|
}, {
|
|
1866
1868
|
default: $(() => [
|
|
1867
1869
|
P("div", {
|
|
@@ -1873,9 +1875,9 @@ const Qt = ["role"], At = {
|
|
|
1873
1875
|
onKeydown: te(A, ["stop"])
|
|
1874
1876
|
}, [
|
|
1875
1877
|
b(c.$slots, "body.prepend"),
|
|
1876
|
-
e.loading ? (u(), v("div",
|
|
1877
|
-
|
|
1878
|
-
])) : (u(),
|
|
1878
|
+
e.loading ? (u(), v("div", mn, [
|
|
1879
|
+
M(y(he), { size: 24 })
|
|
1880
|
+
])) : (u(), E(y(Ce), {
|
|
1879
1881
|
key: 1,
|
|
1880
1882
|
ref_key: "listRef",
|
|
1881
1883
|
ref: m,
|
|
@@ -1903,7 +1905,7 @@ const Qt = ["role"], At = {
|
|
|
1903
1905
|
], 64);
|
|
1904
1906
|
};
|
|
1905
1907
|
}
|
|
1906
|
-
}),
|
|
1908
|
+
}), Vn = S(bn), yn = /* @__PURE__ */ B({
|
|
1907
1909
|
__name: "QThemeProvider",
|
|
1908
1910
|
props: {
|
|
1909
1911
|
theme: {}
|
|
@@ -1911,12 +1913,12 @@ const Qt = ["role"], At = {
|
|
|
1911
1913
|
setup(t) {
|
|
1912
1914
|
const n = t;
|
|
1913
1915
|
return (o, e) => (u(), v("div", {
|
|
1914
|
-
class:
|
|
1916
|
+
class: x(["q-theme-provider", `q-theme--${n.theme}`])
|
|
1915
1917
|
}, [
|
|
1916
1918
|
b(o.$slots, "default")
|
|
1917
1919
|
], 2));
|
|
1918
1920
|
}
|
|
1919
|
-
}),
|
|
1921
|
+
}), En = S(yn), gn = ["innerHTML"], _n = { key: 1 }, kn = /* @__PURE__ */ B({
|
|
1920
1922
|
__name: "QTooltip",
|
|
1921
1923
|
props: {
|
|
1922
1924
|
modelValue: { type: Boolean },
|
|
@@ -1939,7 +1941,7 @@ const Qt = ["role"], At = {
|
|
|
1939
1941
|
b(e.$slots, "anchor", {
|
|
1940
1942
|
props: { "aria-describedby": y(o) }
|
|
1941
1943
|
}),
|
|
1942
|
-
|
|
1944
|
+
M(y(de), {
|
|
1943
1945
|
"model-value": n.modelValue,
|
|
1944
1946
|
anchor: n.anchor,
|
|
1945
1947
|
role: "tooltip",
|
|
@@ -1947,7 +1949,7 @@ const Qt = ["role"], At = {
|
|
|
1947
1949
|
appearance: n.appearance,
|
|
1948
1950
|
arrow: n.arrow,
|
|
1949
1951
|
attach: n.attach,
|
|
1950
|
-
class:
|
|
1952
|
+
class: x(["q-tooltip", n.class]),
|
|
1951
1953
|
delay: n.delay,
|
|
1952
1954
|
disabled: n.disabled,
|
|
1953
1955
|
placement: n.placement,
|
|
@@ -1957,39 +1959,39 @@ const Qt = ["role"], At = {
|
|
|
1957
1959
|
n.html ? (u(), v("span", {
|
|
1958
1960
|
key: 0,
|
|
1959
1961
|
innerHTML: n.text
|
|
1960
|
-
}, null, 8,
|
|
1962
|
+
}, null, 8, gn)) : (u(), v("span", _n, N(n.text), 1))
|
|
1961
1963
|
]),
|
|
1962
1964
|
_: 1
|
|
1963
1965
|
}, 8, ["model-value", "anchor", "id", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"])
|
|
1964
1966
|
], 64));
|
|
1965
1967
|
}
|
|
1966
|
-
}),
|
|
1968
|
+
}), Dn = S(kn);
|
|
1967
1969
|
export {
|
|
1968
1970
|
rt as QButton,
|
|
1969
1971
|
ut as QButtonGroup,
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
+
In as QButtonToggle,
|
|
1973
|
+
Ln as QCombobox,
|
|
1972
1974
|
be as QField,
|
|
1973
1975
|
ee as QIcon,
|
|
1974
1976
|
_t as QIconFont,
|
|
1975
1977
|
kt as QIconImg,
|
|
1976
1978
|
wt as QIconSvg,
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
+
Bn as QInputGroup,
|
|
1980
|
+
Sn as QLineLoader,
|
|
1979
1981
|
Ce as QList,
|
|
1980
1982
|
Dt as QListItem,
|
|
1981
1983
|
Tt as QListItemGroup,
|
|
1982
1984
|
de as QOverlay,
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
+
xn as QPopover,
|
|
1986
|
+
Vn as QSelect,
|
|
1985
1987
|
he as QSpinnerLoader,
|
|
1986
1988
|
jt as QTextField,
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1989
|
+
En as QThemeProvider,
|
|
1990
|
+
Dn as QTooltip,
|
|
1991
|
+
qn as createFramework,
|
|
1990
1992
|
We as defaultDarkColorScheme,
|
|
1991
1993
|
$e as defaultLightColorScheme,
|
|
1992
|
-
|
|
1994
|
+
$n as provideTheme,
|
|
1993
1995
|
Ge as useTheme
|
|
1994
1996
|
};
|
|
1995
1997
|
//# sourceMappingURL=ui.esm.js.map
|