@quidgest/ui 0.8.8 → 0.8.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui.esm.js +25 -25
- package/dist/ui.esm.js.map +1 -1
- package/dist/ui.js +2 -2
- package/dist/ui.js.map +1 -1
- package/dist/ui.min.js +1 -1
- package/dist/ui.min.js.map +1 -1
- package/dist/ui.scss +1 -1
- package/package.json +1 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getCurrentInstance as Be, computed as _, ref as q, provide as Ve, inject as Ee, watch as Q, defineComponent as L, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as Y, withModifiers as ie, createVNode as C, unref as b, createCommentVNode as I, Fragment as ee, createTextVNode as re, toDisplayString as G, renderSlot as h, toRef as we, createBlock as V, withCtx as g, renderList as me, resolveDynamicComponent as Te, h as $e, normalizeProps as te, mergeProps as
|
|
1
|
+
import { getCurrentInstance as Be, computed as _, ref as q, provide as Ve, inject as Ee, watch as Q, defineComponent as L, openBlock as c, createElementBlock as v, normalizeClass as E, normalizeStyle as ce, createElementVNode as Y, withModifiers as ie, createVNode as C, unref as b, createCommentVNode as I, Fragment as ee, createTextVNode as re, toDisplayString as G, renderSlot as h, toRef as we, createBlock as V, withCtx as g, renderList as me, resolveDynamicComponent as Te, h as $e, normalizeProps as te, mergeProps as oe, reactive as Ne, onBeforeUnmount as Me, onMounted as De, nextTick as X, Teleport as He, Transition as Ke, withKeys as Ge, createSlots as he, withDirectives as We, vModelDynamic as je, guardReactiveProps as ae } from "vue";
|
|
2
2
|
function ve(t) {
|
|
3
3
|
return t == null ? !0 : typeof t == "string" || Array.isArray(t) ? t.length === 0 : typeof t == "object" ? Object.keys(t).length === 0 : !1;
|
|
4
4
|
}
|
|
@@ -836,11 +836,11 @@ const xt = ["id", "tabindex", "aria-label", "aria-selected"], Bt = { class: "q-l
|
|
|
836
836
|
onClick: ie(d, ["stop", "prevent"])
|
|
837
837
|
}, [
|
|
838
838
|
h(u.$slots, "default", {}, () => [
|
|
839
|
-
e.icon ? (c(), V(b(J), te(
|
|
839
|
+
e.icon ? (c(), V(b(J), te(oe({ key: 0 }, e.icon)), null, 16)) : I("", !0),
|
|
840
840
|
re(" " + G(e.label), 1)
|
|
841
841
|
]),
|
|
842
842
|
Y("div", Bt, [
|
|
843
|
-
e.selected ? (c(), V(b(J),
|
|
843
|
+
e.selected ? (c(), V(b(J), oe({ key: 0 }, e.icons.check, { class: "q-list-item__check" }), null, 16)) : I("", !0)
|
|
844
844
|
])
|
|
845
845
|
], 42, xt));
|
|
846
846
|
}
|
|
@@ -924,7 +924,7 @@ function Ft(t, l, o) {
|
|
|
924
924
|
return n;
|
|
925
925
|
return o;
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function ne(t) {
|
|
928
928
|
return typeof t == "string" ? document.querySelector(t) : t && "$el" in t ? t.$el : t;
|
|
929
929
|
}
|
|
930
930
|
const Rt = ["role"], Ot = {
|
|
@@ -998,7 +998,7 @@ const Rt = ["role"], Ot = {
|
|
|
998
998
|
}), p = q(null);
|
|
999
999
|
function y() {
|
|
1000
1000
|
if (e.anchor) {
|
|
1001
|
-
const i =
|
|
1001
|
+
const i = ne(e.anchor);
|
|
1002
1002
|
if (i) {
|
|
1003
1003
|
const a = At(
|
|
1004
1004
|
i,
|
|
@@ -1029,7 +1029,7 @@ const Rt = ["role"], Ot = {
|
|
|
1029
1029
|
function B() {
|
|
1030
1030
|
clearTimeout(w), w = void 0, s.visible = !1, X(() => {
|
|
1031
1031
|
if (e.anchor && e.trigger === "click") {
|
|
1032
|
-
const i =
|
|
1032
|
+
const i = ne(e.anchor);
|
|
1033
1033
|
i == null || i.focus();
|
|
1034
1034
|
}
|
|
1035
1035
|
});
|
|
@@ -1046,7 +1046,7 @@ const Rt = ["role"], Ot = {
|
|
|
1046
1046
|
X(() => {
|
|
1047
1047
|
if (!e.anchor)
|
|
1048
1048
|
return;
|
|
1049
|
-
const i =
|
|
1049
|
+
const i = ne(e.anchor);
|
|
1050
1050
|
if (i)
|
|
1051
1051
|
switch (e.trigger) {
|
|
1052
1052
|
case "click":
|
|
@@ -1062,7 +1062,7 @@ const Rt = ["role"], Ot = {
|
|
|
1062
1062
|
X(() => {
|
|
1063
1063
|
if (!e.anchor)
|
|
1064
1064
|
return;
|
|
1065
|
-
const i =
|
|
1065
|
+
const i = ne(e.anchor);
|
|
1066
1066
|
i && (window.addEventListener("resize", y), O = new MutationObserver(y), O.observe(i, {
|
|
1067
1067
|
attributes: !1,
|
|
1068
1068
|
childList: !0,
|
|
@@ -1074,7 +1074,7 @@ const Rt = ["role"], Ot = {
|
|
|
1074
1074
|
function U() {
|
|
1075
1075
|
if (!e.anchor)
|
|
1076
1076
|
return;
|
|
1077
|
-
const i =
|
|
1077
|
+
const i = ne(e.anchor);
|
|
1078
1078
|
if (i)
|
|
1079
1079
|
switch (e.trigger) {
|
|
1080
1080
|
case "click":
|
|
@@ -1092,7 +1092,7 @@ const Rt = ["role"], Ot = {
|
|
|
1092
1092
|
function Z() {
|
|
1093
1093
|
if (!e.anchor)
|
|
1094
1094
|
return;
|
|
1095
|
-
|
|
1095
|
+
ne(e.anchor) ? (y(), N = window.setTimeout(Z, 100)) : B();
|
|
1096
1096
|
}
|
|
1097
1097
|
function K() {
|
|
1098
1098
|
W(), e.spy && Z(), e.anchor && document.addEventListener("scroll", B);
|
|
@@ -1135,7 +1135,7 @@ const Rt = ["role"], Ot = {
|
|
|
1135
1135
|
class: E(n.value),
|
|
1136
1136
|
style: ce(u.value)
|
|
1137
1137
|
}, [
|
|
1138
|
-
Y("div",
|
|
1138
|
+
Y("div", oe({
|
|
1139
1139
|
class: "q-overlay__content",
|
|
1140
1140
|
ref_key: "overlayRef",
|
|
1141
1141
|
ref: p,
|
|
@@ -1204,7 +1204,7 @@ const Rt = ["role"], Ot = {
|
|
|
1204
1204
|
h(s.$slots, "label.append")
|
|
1205
1205
|
])) : I("", !0),
|
|
1206
1206
|
h(s.$slots, "control", {}, () => [
|
|
1207
|
-
Y("div",
|
|
1207
|
+
Y("div", oe({
|
|
1208
1208
|
class: "q-field__control",
|
|
1209
1209
|
ref_key: "fieldRef",
|
|
1210
1210
|
ref: n
|
|
@@ -1279,7 +1279,7 @@ const Rt = ["role"], Ot = {
|
|
|
1279
1279
|
h(f.$slots, "label.append")
|
|
1280
1280
|
]),
|
|
1281
1281
|
default: g(() => [
|
|
1282
|
-
We(Y("input",
|
|
1282
|
+
We(Y("input", oe({
|
|
1283
1283
|
"onUpdate:modelValue": z[0] || (z[0] = (T) => y.value = T),
|
|
1284
1284
|
ref_key: "inputRef",
|
|
1285
1285
|
ref: p,
|
|
@@ -1397,7 +1397,7 @@ const Rt = ["role"], Ot = {
|
|
|
1397
1397
|
u.value = ((r = B.value) == null ? void 0 : r[n.itemLabel]) || "";
|
|
1398
1398
|
}
|
|
1399
1399
|
function H() {
|
|
1400
|
-
s.value || n.readonly || n.disabled || (e("before-show"), s.value = !0,
|
|
1400
|
+
s.value || n.readonly || n.disabled || (e("before-show"), s.value = !0, le());
|
|
1401
1401
|
}
|
|
1402
1402
|
function N() {
|
|
1403
1403
|
s.value && (e("before-hide"), s.value = !1, p.value = void 0);
|
|
@@ -1406,7 +1406,7 @@ const Rt = ["role"], Ot = {
|
|
|
1406
1406
|
s.value ? N() : j();
|
|
1407
1407
|
}
|
|
1408
1408
|
function K() {
|
|
1409
|
-
z.value && (M(n.emptyValue), p.value = void 0);
|
|
1409
|
+
z.value && (M(n.emptyValue), p.value = void 0, le());
|
|
1410
1410
|
}
|
|
1411
1411
|
function j() {
|
|
1412
1412
|
if (H(), B.value !== void 0) {
|
|
@@ -1460,12 +1460,12 @@ const Rt = ["role"], Ot = {
|
|
|
1460
1460
|
var k, S, P;
|
|
1461
1461
|
!((k = f.value) != null && k.contains(r.relatedTarget)) && !((P = (S = y.value) == null ? void 0 : S.fieldRef) != null && P.contains(r.relatedTarget)) ? (N(), U()) : (r.preventDefault(), r.stopPropagation());
|
|
1462
1462
|
}
|
|
1463
|
-
function
|
|
1463
|
+
function le() {
|
|
1464
1464
|
var r, k;
|
|
1465
1465
|
(k = (r = y.value) == null ? void 0 : r.inputRef) == null || k.focus();
|
|
1466
1466
|
}
|
|
1467
1467
|
function Re() {
|
|
1468
|
-
|
|
1468
|
+
le();
|
|
1469
1469
|
}
|
|
1470
1470
|
function Oe() {
|
|
1471
1471
|
e("show");
|
|
@@ -1538,7 +1538,7 @@ const Rt = ["role"], Ot = {
|
|
|
1538
1538
|
onClick: K
|
|
1539
1539
|
}, {
|
|
1540
1540
|
default: g(() => [
|
|
1541
|
-
C(b(J), te(
|
|
1541
|
+
C(b(J), te(ae(n.icons.clear)), null, 16)
|
|
1542
1542
|
]),
|
|
1543
1543
|
_: 1
|
|
1544
1544
|
})) : I("", !0),
|
|
@@ -1552,7 +1552,7 @@ const Rt = ["role"], Ot = {
|
|
|
1552
1552
|
onClick: Z
|
|
1553
1553
|
}, {
|
|
1554
1554
|
default: g(() => [
|
|
1555
|
-
C(b(J), te(
|
|
1555
|
+
C(b(J), te(ae(n.icons.chevron)), null, 16)
|
|
1556
1556
|
]),
|
|
1557
1557
|
_: 1
|
|
1558
1558
|
}, 8, ["disabled"]))
|
|
@@ -1661,14 +1661,14 @@ const Rt = ["role"], Ot = {
|
|
|
1661
1661
|
default: g(() => [
|
|
1662
1662
|
o.$slots.prepend || l.prependIcon ? (c(), v("div", nl, [
|
|
1663
1663
|
l.prependIcon ? (c(), v("span", ol, [
|
|
1664
|
-
C(b(J), te(
|
|
1664
|
+
C(b(J), te(ae(l.prependIcon)), null, 16)
|
|
1665
1665
|
])) : I("", !0),
|
|
1666
1666
|
h(o.$slots, "prepend")
|
|
1667
1667
|
])) : I("", !0),
|
|
1668
1668
|
h(o.$slots, "default"),
|
|
1669
1669
|
o.$slots.append || l.appendIcon ? (c(), v("div", al, [
|
|
1670
1670
|
l.appendIcon ? (c(), v("span", sl, [
|
|
1671
|
-
C(b(J), te(
|
|
1671
|
+
C(b(J), te(ae(l.appendIcon)), null, 16)
|
|
1672
1672
|
])) : I("", !0),
|
|
1673
1673
|
h(o.$slots, "append")
|
|
1674
1674
|
])) : I("", !0)
|
|
@@ -1892,7 +1892,7 @@ const Rt = ["role"], Ot = {
|
|
|
1892
1892
|
onClick: A
|
|
1893
1893
|
}, {
|
|
1894
1894
|
default: g(() => [
|
|
1895
|
-
C(b(J), te(
|
|
1895
|
+
C(b(J), te(ae(e.icons.clear)), null, 16)
|
|
1896
1896
|
]),
|
|
1897
1897
|
_: 1
|
|
1898
1898
|
})) : I("", !0),
|
|
@@ -1906,7 +1906,7 @@ const Rt = ["role"], Ot = {
|
|
|
1906
1906
|
onClick: W
|
|
1907
1907
|
}, {
|
|
1908
1908
|
default: g(() => [
|
|
1909
|
-
C(b(J), te(
|
|
1909
|
+
C(b(J), te(ae(e.icons.chevron)), null, 16)
|
|
1910
1910
|
]),
|
|
1911
1911
|
_: 1
|
|
1912
1912
|
}, 8, ["disabled"]))
|
|
@@ -1923,10 +1923,10 @@ const Rt = ["role"], Ot = {
|
|
|
1923
1923
|
($ = f.value) != null && $.icon || a.$slots.prepend ? {
|
|
1924
1924
|
name: "prepend",
|
|
1925
1925
|
fn: g(() => {
|
|
1926
|
-
var D,
|
|
1926
|
+
var D, le;
|
|
1927
1927
|
return [
|
|
1928
1928
|
h(a.$slots, "prepend"),
|
|
1929
|
-
(D = f.value) != null && D.icon ? (c(), V(b(J), te(
|
|
1929
|
+
(D = f.value) != null && D.icon ? (c(), V(b(J), te(oe({ key: 0 }, (le = f.value) == null ? void 0 : le.icon)), null, 16)) : I("", !0)
|
|
1930
1930
|
];
|
|
1931
1931
|
}),
|
|
1932
1932
|
key: "0"
|