@quidgest/ui 0.7.14 → 0.7.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.css +14 -14
- package/dist/ui.esm.js +95 -97
- 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 +8 -8
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +24 -22
- package/package.json +2 -2
package/dist/ui.css
CHANGED
|
@@ -521,16 +521,6 @@ body *::-webkit-scrollbar-track {
|
|
|
521
521
|
height: 1em;
|
|
522
522
|
}
|
|
523
523
|
|
|
524
|
-
.q-input-group {
|
|
525
|
-
display: flex;
|
|
526
|
-
align-items: flex-end;
|
|
527
|
-
height: auto;
|
|
528
|
-
border-width: 0;
|
|
529
|
-
padding: 0;
|
|
530
|
-
}
|
|
531
|
-
.q-input-group:focus-within {
|
|
532
|
-
outline: none;
|
|
533
|
-
}
|
|
534
524
|
.q-input-group__prepend > :first-child {
|
|
535
525
|
border-top-left-radius: 0.25rem;
|
|
536
526
|
border-bottom-left-radius: 0.25rem;
|
|
@@ -565,18 +555,28 @@ body *::-webkit-scrollbar-track {
|
|
|
565
555
|
.q-input-group__prepend > * + *, .q-input-group__append > * + * {
|
|
566
556
|
margin-left: -1px;
|
|
567
557
|
}
|
|
568
|
-
.q-input-group >
|
|
558
|
+
.q-input-group > .q-field__control {
|
|
559
|
+
display: flex;
|
|
560
|
+
align-items: flex-end;
|
|
561
|
+
height: auto;
|
|
562
|
+
border-width: 0;
|
|
563
|
+
padding: 0;
|
|
564
|
+
}
|
|
565
|
+
.q-input-group > .q-field__control:focus-within {
|
|
566
|
+
outline: none;
|
|
567
|
+
}
|
|
568
|
+
.q-input-group > .q-field__control > * {
|
|
569
569
|
border-radius: 0;
|
|
570
570
|
}
|
|
571
|
-
.q-input-group > :first-child {
|
|
571
|
+
.q-input-group > .q-field__control > :first-child {
|
|
572
572
|
border-top-left-radius: 0.25rem;
|
|
573
573
|
border-bottom-left-radius: 0.25rem;
|
|
574
574
|
}
|
|
575
|
-
.q-input-group > :last-child {
|
|
575
|
+
.q-input-group > .q-field__control > :last-child {
|
|
576
576
|
border-top-right-radius: 0.25rem;
|
|
577
577
|
border-bottom-right-radius: 0.25rem;
|
|
578
578
|
}
|
|
579
|
-
.q-input-group > * + * {
|
|
579
|
+
.q-input-group > .q-field__control > * + * {
|
|
580
580
|
margin-left: -1px;
|
|
581
581
|
}
|
|
582
582
|
|
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Ve, computed as g, ref as q, provide as Ne, inject as De, watch as C, defineComponent as x, openBlock as d, createElementBlock as v, normalizeClass as D, normalizeStyle as ae, createElementVNode as
|
|
1
|
+
import { getCurrentInstance as Ve, computed as g, ref as q, provide as Ne, inject as De, watch as C, defineComponent as x, openBlock as d, createElementBlock as v, normalizeClass as D, normalizeStyle as ae, createElementVNode as G, withModifiers as ee, createVNode as te, unref as k, createCommentVNode as S, Fragment as Z, createTextVNode as re, toDisplayString as N, renderSlot as y, toRef as pe, createBlock as B, withCtx as $, renderList as ve, resolveDynamicComponent as Te, h as $e, normalizeProps as de, mergeProps as ne, reactive as He, onBeforeUnmount as Ke, onMounted as Ee, Teleport as We, Transition as Ge, nextTick as J, createSlots as be, withDirectives as je, vModelDynamic as Xe, guardReactiveProps as he } from "vue";
|
|
2
2
|
function ye(n) {
|
|
3
3
|
return n == null ? !0 : typeof n == "string" || Array.isArray(n) ? n.length === 0 : typeof n == "object" ? Object.keys(n).length === 0 : !1;
|
|
4
4
|
}
|
|
@@ -182,7 +182,7 @@ function me(n, t, o) {
|
|
|
182
182
|
return o < 0 && (o += 1), o > 1 && (o -= 1), o < 1 / 6 ? n + (t - n) * 6 * o : o < 1 / 2 ? t : o < 2 / 3 ? n + (t - n) * (2 / 3 - o) * 6 : n;
|
|
183
183
|
}
|
|
184
184
|
const ue = "q-theme";
|
|
185
|
-
function
|
|
185
|
+
function wn() {
|
|
186
186
|
const n = De(ue);
|
|
187
187
|
if (!n)
|
|
188
188
|
throw new Error("[Quidgest UI] Could not find theme instance");
|
|
@@ -256,7 +256,7 @@ function nt(n) {
|
|
|
256
256
|
function Le(n) {
|
|
257
257
|
return n ? `--q-theme-${n.replace(/([A-Z])/g, "-$1").replace(/^-/, "").toLowerCase()}` : "";
|
|
258
258
|
}
|
|
259
|
-
function
|
|
259
|
+
function $n(n = {}) {
|
|
260
260
|
return { install: (o) => {
|
|
261
261
|
const e = n.components || {};
|
|
262
262
|
for (const a in e)
|
|
@@ -265,8 +265,8 @@ function In(n = {}) {
|
|
|
265
265
|
o.provide(ge, q(l)), et(o, n.themes);
|
|
266
266
|
} };
|
|
267
267
|
}
|
|
268
|
-
const lt = /* @__PURE__ */
|
|
269
|
-
/* @__PURE__ */
|
|
268
|
+
const lt = /* @__PURE__ */ G("svg", { viewBox: "25 25 50 50" }, [
|
|
269
|
+
/* @__PURE__ */ G("circle", {
|
|
270
270
|
class: "path",
|
|
271
271
|
cx: "50",
|
|
272
272
|
cy: "50",
|
|
@@ -366,13 +366,13 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
366
366
|
i.loading ? (d(), v("div", rt, [
|
|
367
367
|
te(k(_e), { size: 23 })
|
|
368
368
|
])) : S("", !0),
|
|
369
|
-
|
|
369
|
+
G("span", dt, [
|
|
370
370
|
i.iconOnRight ? (d(), v(Z, { key: 0 }, [
|
|
371
|
-
re(
|
|
371
|
+
re(N(e.label), 1)
|
|
372
372
|
], 64)) : S("", !0),
|
|
373
373
|
y(i.$slots, "default"),
|
|
374
374
|
i.iconOnRight ? S("", !0) : (d(), v(Z, { key: 1 }, [
|
|
375
|
-
re(
|
|
375
|
+
re(N(e.label), 1)
|
|
376
376
|
], 64))
|
|
377
377
|
])
|
|
378
378
|
], 10, it));
|
|
@@ -460,7 +460,7 @@ const _e = V(at), it = ["disabled"], rt = {
|
|
|
460
460
|
_: 3
|
|
461
461
|
}, 8, ["class", "disabled", "borderless", "elevated"]));
|
|
462
462
|
}
|
|
463
|
-
}),
|
|
463
|
+
}), In = V(mt), vt = /* @__PURE__ */ x({
|
|
464
464
|
__name: "QIcon",
|
|
465
465
|
props: {
|
|
466
466
|
icon: {},
|
|
@@ -692,7 +692,7 @@ const wt = /* @__PURE__ */ x({
|
|
|
692
692
|
if ((L = p.value) != null && L.contains(r.relatedTarget))
|
|
693
693
|
return;
|
|
694
694
|
let h;
|
|
695
|
-
a.value ? h = l.items.findIndex((
|
|
695
|
+
a.value ? h = l.items.findIndex((W) => W[l.itemValue] === a.value) : h = Q();
|
|
696
696
|
const I = u.value;
|
|
697
697
|
O(h, I);
|
|
698
698
|
}
|
|
@@ -735,7 +735,7 @@ const wt = /* @__PURE__ */ x({
|
|
|
735
735
|
const r = (h = p.value) == null ? void 0 : h.querySelectorAll("li");
|
|
736
736
|
return r ? Array.from(r) : [];
|
|
737
737
|
}
|
|
738
|
-
function
|
|
738
|
+
function H(r) {
|
|
739
739
|
return E()[r];
|
|
740
740
|
}
|
|
741
741
|
function j() {
|
|
@@ -754,9 +754,9 @@ const wt = /* @__PURE__ */ x({
|
|
|
754
754
|
}
|
|
755
755
|
function X(r) {
|
|
756
756
|
const h = j();
|
|
757
|
-
return
|
|
757
|
+
return K(h, r);
|
|
758
758
|
}
|
|
759
|
-
function
|
|
759
|
+
function K(r, h) {
|
|
760
760
|
const I = E();
|
|
761
761
|
if (U(r, h, I))
|
|
762
762
|
return r;
|
|
@@ -781,8 +781,8 @@ const wt = /* @__PURE__ */ x({
|
|
|
781
781
|
}
|
|
782
782
|
), t({
|
|
783
783
|
focusItem: O,
|
|
784
|
-
getItem:
|
|
785
|
-
getAdjacentItemIndex:
|
|
784
|
+
getItem: H,
|
|
785
|
+
getAdjacentItemIndex: K,
|
|
786
786
|
getFirstFocusableItemIndex: Q,
|
|
787
787
|
getLastFocusableItemIndex: M
|
|
788
788
|
}), (r, h) => (d(), B(Te(i.value), {
|
|
@@ -873,9 +873,9 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
|
|
|
873
873
|
}, [
|
|
874
874
|
y(i.$slots, "default", {}, () => [
|
|
875
875
|
e.icon ? (d(), B(k(P), de(ne({ key: 0 }, e.icon)), null, 16)) : S("", !0),
|
|
876
|
-
re(" " +
|
|
876
|
+
re(" " + N(e.label), 1)
|
|
877
877
|
]),
|
|
878
|
-
|
|
878
|
+
G("div", xt, [
|
|
879
879
|
e.selected ? (d(), B(k(P), ne({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : S("", !0)
|
|
880
880
|
])
|
|
881
881
|
], 42, Bt));
|
|
@@ -898,7 +898,7 @@ const Bt = ["id", "tabindex", "aria-label", "aria-selected"], xt = { class: "q-l
|
|
|
898
898
|
id: k(o),
|
|
899
899
|
class: "q-list-item-group__title",
|
|
900
900
|
role: "presentation"
|
|
901
|
-
},
|
|
901
|
+
}, N(t.title), 9, Et)) : S("", !0),
|
|
902
902
|
y(e.$slots, "default")
|
|
903
903
|
], 8, Tt));
|
|
904
904
|
}
|
|
@@ -1056,7 +1056,7 @@ const Rt = {
|
|
|
1056
1056
|
window.clearTimeout(A), A = window.setTimeout(() => a.animating = !1, 200), o("leave");
|
|
1057
1057
|
}
|
|
1058
1058
|
let E;
|
|
1059
|
-
function
|
|
1059
|
+
function H() {
|
|
1060
1060
|
J(() => {
|
|
1061
1061
|
const b = ie(e.anchor);
|
|
1062
1062
|
if (b)
|
|
@@ -1091,19 +1091,19 @@ const Rt = {
|
|
|
1091
1091
|
function X() {
|
|
1092
1092
|
j(), e.spy && U();
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function K() {
|
|
1095
1095
|
Q(), e.spy && (clearTimeout(M), M = void 0);
|
|
1096
1096
|
}
|
|
1097
|
-
return Ke(
|
|
1097
|
+
return Ke(K), Ee(p), C(
|
|
1098
1098
|
() => e.disabled,
|
|
1099
1099
|
(b) => {
|
|
1100
|
-
b ||
|
|
1100
|
+
b || H();
|
|
1101
1101
|
},
|
|
1102
1102
|
{ immediate: !0 }
|
|
1103
1103
|
), C(
|
|
1104
1104
|
() => u.value,
|
|
1105
1105
|
(b) => {
|
|
1106
|
-
b ? X() :
|
|
1106
|
+
b ? X() : K();
|
|
1107
1107
|
},
|
|
1108
1108
|
{ immediate: !0 }
|
|
1109
1109
|
), (b, c) => (d(), v(Z, null, [
|
|
@@ -1125,7 +1125,7 @@ const Rt = {
|
|
|
1125
1125
|
class: D(l.value),
|
|
1126
1126
|
style: ae(i.value)
|
|
1127
1127
|
}, [
|
|
1128
|
-
|
|
1128
|
+
G("div", {
|
|
1129
1129
|
class: "q-overlay__content",
|
|
1130
1130
|
ref_key: "overlay",
|
|
1131
1131
|
ref: f
|
|
@@ -1183,13 +1183,13 @@ const Rt = {
|
|
|
1183
1183
|
}, [
|
|
1184
1184
|
o.label ? (d(), v("div", Ut, [
|
|
1185
1185
|
y(a.$slots, "label.prepend"),
|
|
1186
|
-
|
|
1186
|
+
G("label", {
|
|
1187
1187
|
for: o.id
|
|
1188
|
-
},
|
|
1188
|
+
}, N(o.label), 9, Nt),
|
|
1189
1189
|
y(a.$slots, "label.append")
|
|
1190
1190
|
])) : S("", !0),
|
|
1191
1191
|
y(a.$slots, "control", {}, () => [
|
|
1192
|
-
|
|
1192
|
+
G("div", ne({
|
|
1193
1193
|
class: "q-field__control",
|
|
1194
1194
|
ref_key: "fieldRef",
|
|
1195
1195
|
ref: e
|
|
@@ -1264,7 +1264,7 @@ const Rt = {
|
|
|
1264
1264
|
y(m.$slots, "label.append")
|
|
1265
1265
|
]),
|
|
1266
1266
|
default: $(() => [
|
|
1267
|
-
je(
|
|
1267
|
+
je(G("input", ne({
|
|
1268
1268
|
"onUpdate:modelValue": w[0] || (w[0] = (z) => f.value = z),
|
|
1269
1269
|
ref_key: "inputRef",
|
|
1270
1270
|
ref: i,
|
|
@@ -1365,11 +1365,11 @@ const Rt = {
|
|
|
1365
1365
|
var s;
|
|
1366
1366
|
return i.value.length > 0 && i.value !== ((s = A.value) == null ? void 0 : s[l.itemLabel]);
|
|
1367
1367
|
});
|
|
1368
|
-
function
|
|
1368
|
+
function H(s) {
|
|
1369
1369
|
a.value = s, Q(), e("update:modelValue", s);
|
|
1370
1370
|
}
|
|
1371
1371
|
function j(s) {
|
|
1372
|
-
|
|
1372
|
+
H(s), U();
|
|
1373
1373
|
}
|
|
1374
1374
|
function Q() {
|
|
1375
1375
|
var s;
|
|
@@ -1382,9 +1382,9 @@ const Rt = {
|
|
|
1382
1382
|
u.value && (e("before-hide"), u.value = !1, f.value = void 0);
|
|
1383
1383
|
}
|
|
1384
1384
|
function X() {
|
|
1385
|
-
|
|
1385
|
+
H(void 0), f.value = void 0;
|
|
1386
1386
|
}
|
|
1387
|
-
function
|
|
1387
|
+
function K() {
|
|
1388
1388
|
if (M(), A.value !== void 0) {
|
|
1389
1389
|
const s = F.value.indexOf(A.value);
|
|
1390
1390
|
s !== -1 && J(() => we(s));
|
|
@@ -1439,7 +1439,7 @@ const Rt = {
|
|
|
1439
1439
|
var s, _;
|
|
1440
1440
|
(_ = (s = p.value) == null ? void 0 : s.inputRef) == null || _.focus();
|
|
1441
1441
|
}
|
|
1442
|
-
function
|
|
1442
|
+
function W() {
|
|
1443
1443
|
e("show");
|
|
1444
1444
|
}
|
|
1445
1445
|
function Ue() {
|
|
@@ -1482,7 +1482,7 @@ const Rt = {
|
|
|
1482
1482
|
"aria-autocomplete": "list",
|
|
1483
1483
|
"aria-activedescendant": O.value,
|
|
1484
1484
|
size: l.size,
|
|
1485
|
-
onClick:
|
|
1485
|
+
onClick: K,
|
|
1486
1486
|
onFocusout: I,
|
|
1487
1487
|
onKeydown: ee(b, ["stop"])
|
|
1488
1488
|
}, be({
|
|
@@ -1529,13 +1529,13 @@ const Rt = {
|
|
|
1529
1529
|
width: "anchor",
|
|
1530
1530
|
offset: 4,
|
|
1531
1531
|
anchor: (Y = p.value) == null ? void 0 : Y.fieldRef,
|
|
1532
|
-
onEnter:
|
|
1532
|
+
onEnter: W,
|
|
1533
1533
|
onLeave: Ue
|
|
1534
1534
|
}, {
|
|
1535
1535
|
default: $(() => {
|
|
1536
1536
|
var se;
|
|
1537
1537
|
return [
|
|
1538
|
-
|
|
1538
|
+
G("div", {
|
|
1539
1539
|
ref_key: "contentRef",
|
|
1540
1540
|
ref: w,
|
|
1541
1541
|
class: "q-select__body",
|
|
@@ -1567,7 +1567,7 @@ const Rt = {
|
|
|
1567
1567
|
y(s.$slots, "item", { item: fe })
|
|
1568
1568
|
]),
|
|
1569
1569
|
_: 3
|
|
1570
|
-
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (d(), v("div", Pt,
|
|
1570
|
+
}, 8, ["modelValue", "highlighted", "items", "groups", "item-label", "item-value"])) : (d(), v("div", Pt, N(s.texts.noData), 1)),
|
|
1571
1571
|
y(s.$slots, "body.append")
|
|
1572
1572
|
], 544)
|
|
1573
1573
|
];
|
|
@@ -1577,13 +1577,13 @@ const Rt = {
|
|
|
1577
1577
|
], 64);
|
|
1578
1578
|
};
|
|
1579
1579
|
}
|
|
1580
|
-
}),
|
|
1580
|
+
}), qn = V(en), tn = {
|
|
1581
1581
|
key: 0,
|
|
1582
1582
|
class: "q-input-group__prepend"
|
|
1583
|
-
},
|
|
1583
|
+
}, nn = { key: 0 }, ln = {
|
|
1584
1584
|
key: 1,
|
|
1585
1585
|
class: "q-input-group__append"
|
|
1586
|
-
},
|
|
1586
|
+
}, on = { key: 0 }, an = /* @__PURE__ */ x({
|
|
1587
1587
|
__name: "QInputGroup",
|
|
1588
1588
|
props: {
|
|
1589
1589
|
id: { default: () => le() },
|
|
@@ -1604,34 +1604,32 @@ const Rt = {
|
|
|
1604
1604
|
}
|
|
1605
1605
|
}), (o, e) => (d(), B(k(ke), {
|
|
1606
1606
|
id: t.id,
|
|
1607
|
-
class: D(t.class),
|
|
1607
|
+
class: D(["q-input-group", t.class]),
|
|
1608
1608
|
label: t.label,
|
|
1609
1609
|
readonly: t.readonly,
|
|
1610
1610
|
disabled: t.disabled,
|
|
1611
1611
|
required: t.required,
|
|
1612
1612
|
size: t.size
|
|
1613
1613
|
}, {
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
te(k(P), de(he(t.prependIcon)), null, 16)
|
|
1619
|
-
])) : S("", !0),
|
|
1620
|
-
y(o.$slots, "prepend")
|
|
1614
|
+
default: $(() => [
|
|
1615
|
+
o.$slots.prepend || t.prependIcon ? (d(), v("div", tn, [
|
|
1616
|
+
t.prependIcon ? (d(), v("span", nn, [
|
|
1617
|
+
te(k(P), de(he(t.prependIcon)), null, 16)
|
|
1621
1618
|
])) : S("", !0),
|
|
1622
|
-
y(o.$slots, "
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
])) : S("", !0)
|
|
1629
|
-
|
|
1619
|
+
y(o.$slots, "prepend")
|
|
1620
|
+
])) : S("", !0),
|
|
1621
|
+
y(o.$slots, "default"),
|
|
1622
|
+
o.$slots.append || t.appendIcon ? (d(), v("div", ln, [
|
|
1623
|
+
t.appendIcon ? (d(), v("span", on, [
|
|
1624
|
+
te(k(P), de(he(t.appendIcon)), null, 16)
|
|
1625
|
+
])) : S("", !0),
|
|
1626
|
+
y(o.$slots, "append")
|
|
1627
|
+
])) : S("", !0)
|
|
1630
1628
|
]),
|
|
1631
1629
|
_: 3
|
|
1632
1630
|
}, 8, ["id", "class", "label", "readonly", "disabled", "required", "size"]));
|
|
1633
1631
|
}
|
|
1634
|
-
}),
|
|
1632
|
+
}), Sn = V(an), sn = /* @__PURE__ */ x({
|
|
1635
1633
|
__name: "QLineLoader",
|
|
1636
1634
|
props: {
|
|
1637
1635
|
class: { default: void 0 }
|
|
@@ -1642,13 +1640,13 @@ const Rt = {
|
|
|
1642
1640
|
class: D(["q-line-loader", t.class])
|
|
1643
1641
|
}, null, 2));
|
|
1644
1642
|
}
|
|
1645
|
-
}),
|
|
1643
|
+
}), Ln = V(sn), rn = {
|
|
1646
1644
|
key: 0,
|
|
1647
1645
|
class: "q-popover__header"
|
|
1648
|
-
},
|
|
1646
|
+
}, dn = {
|
|
1649
1647
|
key: 1,
|
|
1650
1648
|
class: "q-popover__body"
|
|
1651
|
-
},
|
|
1649
|
+
}, un = ["innerHTML"], cn = { key: 1 }, fn = /* @__PURE__ */ x({
|
|
1652
1650
|
inheritAttrs: !1,
|
|
1653
1651
|
__name: "QPopover",
|
|
1654
1652
|
props: {
|
|
@@ -1677,37 +1675,37 @@ const Rt = {
|
|
|
1677
1675
|
spy: t.spy
|
|
1678
1676
|
}, {
|
|
1679
1677
|
default: $(() => [
|
|
1680
|
-
t.title || o.$slots.header ? (d(), v("h3",
|
|
1681
|
-
re(
|
|
1678
|
+
t.title || o.$slots.header ? (d(), v("h3", rn, [
|
|
1679
|
+
re(N(t.title) + " ", 1),
|
|
1682
1680
|
y(o.$slots, "header")
|
|
1683
1681
|
])) : S("", !0),
|
|
1684
|
-
t.text || o.$slots.body ? (d(), v("div",
|
|
1682
|
+
t.text || o.$slots.body ? (d(), v("div", dn, [
|
|
1685
1683
|
t.html ? (d(), v("span", {
|
|
1686
1684
|
key: 0,
|
|
1687
1685
|
innerHTML: t.text
|
|
1688
|
-
}, null, 8,
|
|
1686
|
+
}, null, 8, un)) : (d(), v("span", cn, N(t.text), 1)),
|
|
1689
1687
|
y(o.$slots, "body")
|
|
1690
1688
|
])) : S("", !0)
|
|
1691
1689
|
]),
|
|
1692
1690
|
_: 3
|
|
1693
1691
|
}, 8, ["model-value", "anchor", "arrow", "attach", "disabled", "placement", "spy"]));
|
|
1694
1692
|
}
|
|
1695
|
-
}),
|
|
1693
|
+
}), Bn = V(fn), pn = {
|
|
1696
1694
|
key: 0,
|
|
1697
1695
|
class: "q-select__value"
|
|
1698
|
-
},
|
|
1696
|
+
}, mn = {
|
|
1699
1697
|
key: 1,
|
|
1700
1698
|
class: "q-select__placeholder"
|
|
1701
|
-
},
|
|
1699
|
+
}, vn = {
|
|
1702
1700
|
placeholder: "Choose..."
|
|
1703
|
-
},
|
|
1701
|
+
}, hn = {
|
|
1704
1702
|
chevron: {
|
|
1705
1703
|
icon: "chevron-down"
|
|
1706
1704
|
},
|
|
1707
1705
|
clear: {
|
|
1708
1706
|
icon: "close"
|
|
1709
1707
|
}
|
|
1710
|
-
},
|
|
1708
|
+
}, yn = /* @__PURE__ */ x({
|
|
1711
1709
|
__name: "QSelect",
|
|
1712
1710
|
props: {
|
|
1713
1711
|
modelValue: { type: [String, Number, Boolean, Symbol], default: void 0 },
|
|
@@ -1718,13 +1716,13 @@ const Rt = {
|
|
|
1718
1716
|
disabled: { type: Boolean },
|
|
1719
1717
|
required: { type: Boolean },
|
|
1720
1718
|
loading: { type: Boolean },
|
|
1721
|
-
icons: { default: () =>
|
|
1719
|
+
icons: { default: () => hn },
|
|
1722
1720
|
items: {},
|
|
1723
1721
|
groups: { default: () => [] },
|
|
1724
1722
|
itemValue: { default: "key" },
|
|
1725
1723
|
itemLabel: { default: "label" },
|
|
1726
1724
|
size: { default: void 0 },
|
|
1727
|
-
texts: { default: () =>
|
|
1725
|
+
texts: { default: () => vn },
|
|
1728
1726
|
class: { default: "" }
|
|
1729
1727
|
},
|
|
1730
1728
|
emits: ["update:modelValue", "before-show", "before-hide", "show", "hide"],
|
|
@@ -1740,22 +1738,22 @@ const Rt = {
|
|
|
1740
1738
|
() => e.clearable && !e.readonly && !e.disabled && !e.loading
|
|
1741
1739
|
);
|
|
1742
1740
|
function F(c) {
|
|
1743
|
-
l.value = c, o("update:modelValue", c),
|
|
1741
|
+
l.value = c, o("update:modelValue", c), H();
|
|
1744
1742
|
}
|
|
1745
1743
|
function A() {
|
|
1746
1744
|
z.value && F(void 0);
|
|
1747
1745
|
}
|
|
1748
1746
|
function R() {
|
|
1749
|
-
e.readonly || e.disabled || (a.value ?
|
|
1747
|
+
e.readonly || e.disabled || (a.value ? H() : E());
|
|
1750
1748
|
}
|
|
1751
1749
|
function O(c) {
|
|
1752
1750
|
var r, h, I;
|
|
1753
|
-
!((r = p.value) != null && r.contains(c.relatedTarget)) && !((I = (h = i.value) == null ? void 0 : h.fieldRef) != null && I.contains(c.relatedTarget)) &&
|
|
1751
|
+
!((r = p.value) != null && r.contains(c.relatedTarget)) && !((I = (h = i.value) == null ? void 0 : h.fieldRef) != null && I.contains(c.relatedTarget)) && H();
|
|
1754
1752
|
}
|
|
1755
1753
|
function E() {
|
|
1756
1754
|
a.value || (o("before-show"), a.value = !0);
|
|
1757
1755
|
}
|
|
1758
|
-
function
|
|
1756
|
+
function H() {
|
|
1759
1757
|
a.value && (o("before-hide"), a.value = !1);
|
|
1760
1758
|
}
|
|
1761
1759
|
let j;
|
|
@@ -1776,7 +1774,7 @@ const Rt = {
|
|
|
1776
1774
|
}
|
|
1777
1775
|
function M() {
|
|
1778
1776
|
var c;
|
|
1779
|
-
e.loading ? (c = p.value) == null || c.focus() :
|
|
1777
|
+
e.loading ? (c = p.value) == null || c.focus() : K(), o("show");
|
|
1780
1778
|
}
|
|
1781
1779
|
function U() {
|
|
1782
1780
|
X(), o("hide");
|
|
@@ -1785,7 +1783,7 @@ const Rt = {
|
|
|
1785
1783
|
var c, r;
|
|
1786
1784
|
(r = (c = i.value) == null ? void 0 : c.fieldRef) == null || r.focus();
|
|
1787
1785
|
}
|
|
1788
|
-
function
|
|
1786
|
+
function K() {
|
|
1789
1787
|
var c;
|
|
1790
1788
|
(c = f.value) == null || c.$el.focus();
|
|
1791
1789
|
}
|
|
@@ -1801,7 +1799,7 @@ const Rt = {
|
|
|
1801
1799
|
), C(
|
|
1802
1800
|
() => e.loading,
|
|
1803
1801
|
(c) => {
|
|
1804
|
-
!c && a.value && J(
|
|
1802
|
+
!c && a.value && J(K);
|
|
1805
1803
|
}
|
|
1806
1804
|
), (c, r) => {
|
|
1807
1805
|
var h, I, L;
|
|
@@ -1839,16 +1837,16 @@ const Rt = {
|
|
|
1839
1837
|
e.readonly ? S("", !0) : (d(), B(k(P), ne({ key: 1 }, e.icons.chevron, { class: "q-select__chevron" }), null, 16))
|
|
1840
1838
|
]),
|
|
1841
1839
|
default: $(() => [
|
|
1842
|
-
l.value ? (d(), v("span",
|
|
1840
|
+
l.value ? (d(), v("span", pn, N(w.value), 1)) : !e.readonly && !e.disabled ? (d(), v("span", mn, N(c.texts.placeholder), 1)) : S("", !0)
|
|
1843
1841
|
]),
|
|
1844
1842
|
_: 2
|
|
1845
1843
|
}, [
|
|
1846
1844
|
(h = m.value) != null && h.icon ? {
|
|
1847
1845
|
name: "prepend",
|
|
1848
1846
|
fn: $(() => {
|
|
1849
|
-
var
|
|
1847
|
+
var W;
|
|
1850
1848
|
return [
|
|
1851
|
-
te(k(P), de(he((
|
|
1849
|
+
te(k(P), de(he((W = m.value) == null ? void 0 : W.icon)), null, 16)
|
|
1852
1850
|
];
|
|
1853
1851
|
}),
|
|
1854
1852
|
key: "0"
|
|
@@ -1867,7 +1865,7 @@ const Rt = {
|
|
|
1867
1865
|
onLeave: U
|
|
1868
1866
|
}, {
|
|
1869
1867
|
default: $(() => [
|
|
1870
|
-
|
|
1868
|
+
G("div", {
|
|
1871
1869
|
ref_key: "contentRef",
|
|
1872
1870
|
ref: p,
|
|
1873
1871
|
class: "q-select__body",
|
|
@@ -1887,7 +1885,7 @@ const Rt = {
|
|
|
1887
1885
|
class: "q-select__items",
|
|
1888
1886
|
modelValue: l.value,
|
|
1889
1887
|
"onUpdate:modelValue": [
|
|
1890
|
-
r[0] || (r[0] = (
|
|
1888
|
+
r[0] || (r[0] = (W) => l.value = W),
|
|
1891
1889
|
F
|
|
1892
1890
|
],
|
|
1893
1891
|
items: e.items,
|
|
@@ -1895,8 +1893,8 @@ const Rt = {
|
|
|
1895
1893
|
"item-label": e.itemLabel,
|
|
1896
1894
|
"item-value": e.itemValue
|
|
1897
1895
|
}, {
|
|
1898
|
-
item: $(({ item:
|
|
1899
|
-
y(c.$slots, "item", { item:
|
|
1896
|
+
item: $(({ item: W }) => [
|
|
1897
|
+
y(c.$slots, "item", { item: W })
|
|
1900
1898
|
]),
|
|
1901
1899
|
_: 3
|
|
1902
1900
|
}, 8, ["modelValue", "items", "groups", "item-label", "item-value"])),
|
|
@@ -1908,7 +1906,7 @@ const Rt = {
|
|
|
1908
1906
|
], 64);
|
|
1909
1907
|
};
|
|
1910
1908
|
}
|
|
1911
|
-
}),
|
|
1909
|
+
}), xn = V(yn), bn = ["innerHTML"], gn = { key: 1 }, _n = /* @__PURE__ */ x({
|
|
1912
1910
|
__name: "QTooltip",
|
|
1913
1911
|
props: {
|
|
1914
1912
|
modelValue: { type: Boolean },
|
|
@@ -1942,36 +1940,36 @@ const Rt = {
|
|
|
1942
1940
|
t.html ? (d(), v("span", {
|
|
1943
1941
|
key: 0,
|
|
1944
1942
|
innerHTML: t.text
|
|
1945
|
-
}, null, 8,
|
|
1943
|
+
}, null, 8, bn)) : (d(), v("span", gn, N(t.text), 1))
|
|
1946
1944
|
]),
|
|
1947
1945
|
_: 1
|
|
1948
1946
|
}, 8, ["model-value", "anchor", "appearance", "arrow", "attach", "class", "delay", "disabled", "placement", "trigger"]));
|
|
1949
1947
|
}
|
|
1950
|
-
}),
|
|
1948
|
+
}), Vn = V(_n);
|
|
1951
1949
|
export {
|
|
1952
1950
|
ct as QButton,
|
|
1953
1951
|
pt as QButtonGroup,
|
|
1954
|
-
|
|
1955
|
-
|
|
1952
|
+
In as QButtonToggle,
|
|
1953
|
+
qn as QCombobox,
|
|
1956
1954
|
ke as QField,
|
|
1957
1955
|
P as QIcon,
|
|
1958
1956
|
$t as QIconFont,
|
|
1959
1957
|
It as QIconImg,
|
|
1960
1958
|
qt as QIconSvg,
|
|
1961
|
-
|
|
1962
|
-
|
|
1959
|
+
Sn as QInputGroup,
|
|
1960
|
+
Ln as QLineLoader,
|
|
1963
1961
|
Me as QList,
|
|
1964
1962
|
Ct as QListItem,
|
|
1965
1963
|
Ft as QListItemGroup,
|
|
1966
1964
|
ce as QOverlay,
|
|
1967
|
-
|
|
1968
|
-
|
|
1965
|
+
Bn as QPopover,
|
|
1966
|
+
xn as QSelect,
|
|
1969
1967
|
_e as QSpinnerLoader,
|
|
1970
1968
|
Yt as QTextField,
|
|
1971
|
-
|
|
1972
|
-
|
|
1969
|
+
Vn as QTooltip,
|
|
1970
|
+
$n as createFramework,
|
|
1973
1971
|
Pe as defaultDarkColorScheme,
|
|
1974
1972
|
qe as defaultLightColorScheme,
|
|
1975
|
-
|
|
1973
|
+
wn as useTheme
|
|
1976
1974
|
};
|
|
1977
1975
|
//# sourceMappingURL=ui.esm.js.map
|