@squirrel-cloud/ui-vue 0.3.3 → 0.3.4
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/squirrel-cloud-ui-vue.js +158 -156
- package/dist/squirrel-cloud-ui-vue.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -565,14 +565,14 @@ le.prototype.parse = function(u, e) {
|
|
|
565
565
|
if (!h) {
|
|
566
566
|
const d = this.hostname.split(/\./);
|
|
567
567
|
for (let x = 0, _ = d.length; x < _; x++) {
|
|
568
|
-
const
|
|
569
|
-
if (
|
|
568
|
+
const C = d[x];
|
|
569
|
+
if (C && !C.match(xt)) {
|
|
570
570
|
let k = "";
|
|
571
|
-
for (let E = 0,
|
|
572
|
-
|
|
571
|
+
for (let E = 0, v = C.length; E < v; E++)
|
|
572
|
+
C.charCodeAt(E) > 127 ? k += "x" : k += C[E];
|
|
573
573
|
if (!k.match(xt)) {
|
|
574
|
-
const E = d.slice(0, x),
|
|
575
|
-
w && (E.push(w[1]),
|
|
574
|
+
const E = d.slice(0, x), v = d.slice(x + 1), w = C.match(Jn);
|
|
575
|
+
w && (E.push(w[1]), v.unshift(w[2])), v.length && (o = v.join(".") + o), this.hostname = E.join(".");
|
|
576
576
|
break;
|
|
577
577
|
}
|
|
578
578
|
}
|
|
@@ -1444,17 +1444,17 @@ function Ir(u) {
|
|
|
1444
1444
|
continue;
|
|
1445
1445
|
let _ = a[h].text;
|
|
1446
1446
|
a[h].schema ? a[h].schema === "mailto:" && !/^mailto:/i.test(_) ? _ = u.md.normalizeLinkText("mailto:" + _).replace(/^mailto:/, "") : _ = u.md.normalizeLinkText(_) : _ = u.md.normalizeLinkText("http://" + _).replace(/^http:\/\//, "");
|
|
1447
|
-
const
|
|
1448
|
-
if (
|
|
1447
|
+
const C = a[h].index;
|
|
1448
|
+
if (C > p) {
|
|
1449
1449
|
const w = new u.Token("text", "", 0);
|
|
1450
|
-
w.content = s.slice(p,
|
|
1450
|
+
w.content = s.slice(p, C), w.level = f, l.push(w);
|
|
1451
1451
|
}
|
|
1452
1452
|
const k = new u.Token("link_open", "a", 1);
|
|
1453
1453
|
k.attrs = [["href", x]], k.level = f++, k.markup = "linkify", k.info = "auto", l.push(k);
|
|
1454
1454
|
const E = new u.Token("text", "", 0);
|
|
1455
1455
|
E.content = _, E.level = f, l.push(E);
|
|
1456
|
-
const
|
|
1457
|
-
|
|
1456
|
+
const v = new u.Token("link_close", "a", -1);
|
|
1457
|
+
v.level = --f, v.markup = "linkify", v.info = "auto", l.push(v), p = a[h].lastIndex;
|
|
1458
1458
|
}
|
|
1459
1459
|
if (p < s.length) {
|
|
1460
1460
|
const h = new u.Token("text", "", 0);
|
|
@@ -1534,24 +1534,24 @@ function Wr(u, e) {
|
|
|
1534
1534
|
x = u[t].content.charCodeAt(0);
|
|
1535
1535
|
break;
|
|
1536
1536
|
}
|
|
1537
|
-
const _ = Ju(d) || Gu(String.fromCharCode(d)),
|
|
1538
|
-
if (E ? f = !1 :
|
|
1537
|
+
const _ = Ju(d) || Gu(String.fromCharCode(d)), C = Ju(x) || Gu(String.fromCharCode(x)), k = Wu(d), E = Wu(x);
|
|
1538
|
+
if (E ? f = !1 : C && (k || _ || (f = !1)), k ? p = !1 : _ && (E || C || (p = !1)), x === 34 && l[0] === '"' && d >= 48 && d <= 57 && (p = f = !1), f && p && (f = _, p = C), !f && !p) {
|
|
1539
1539
|
h && (o.content = ie(o.content, l.index, vt));
|
|
1540
1540
|
continue;
|
|
1541
1541
|
}
|
|
1542
1542
|
if (p)
|
|
1543
1543
|
for (t = n.length - 1; t >= 0; t--) {
|
|
1544
|
-
let
|
|
1544
|
+
let v = n[t];
|
|
1545
1545
|
if (n[t].level < c)
|
|
1546
1546
|
break;
|
|
1547
|
-
if (
|
|
1548
|
-
|
|
1547
|
+
if (v.single === h && n[t].level === c) {
|
|
1548
|
+
v = n[t];
|
|
1549
1549
|
let w, q;
|
|
1550
|
-
h ? (w = e.md.options.quotes[2], q = e.md.options.quotes[3]) : (w = e.md.options.quotes[0], q = e.md.options.quotes[1]), o.content = ie(o.content, l.index, q), u[
|
|
1551
|
-
u[
|
|
1552
|
-
|
|
1550
|
+
h ? (w = e.md.options.quotes[2], q = e.md.options.quotes[3]) : (w = e.md.options.quotes[0], q = e.md.options.quotes[1]), o.content = ie(o.content, l.index, q), u[v.token].content = ie(
|
|
1551
|
+
u[v.token].content,
|
|
1552
|
+
v.pos,
|
|
1553
1553
|
w
|
|
1554
|
-
), s += q.length - 1,
|
|
1554
|
+
), s += q.length - 1, v.token === r && (s += w.length - 1), i = o.content, a = i.length, n.length = t;
|
|
1555
1555
|
continue u;
|
|
1556
1556
|
}
|
|
1557
1557
|
}
|
|
@@ -1711,17 +1711,17 @@ function Qr(u, e, t, n) {
|
|
|
1711
1711
|
if (i !== 124 && i !== 45 && i !== 58 && !P(i) || c === 45 && P(i))
|
|
1712
1712
|
return !1;
|
|
1713
1713
|
for (; o < u.eMarks[r]; ) {
|
|
1714
|
-
const
|
|
1715
|
-
if (
|
|
1714
|
+
const v = u.src.charCodeAt(o);
|
|
1715
|
+
if (v !== 124 && v !== 45 && v !== 58 && !P(v))
|
|
1716
1716
|
return !1;
|
|
1717
1717
|
o++;
|
|
1718
1718
|
}
|
|
1719
1719
|
let s = ze(u, e + 1), a = s.split("|");
|
|
1720
1720
|
const l = [];
|
|
1721
|
-
for (let
|
|
1722
|
-
const w = a[
|
|
1721
|
+
for (let v = 0; v < a.length; v++) {
|
|
1722
|
+
const w = a[v].trim();
|
|
1723
1723
|
if (!w) {
|
|
1724
|
-
if (
|
|
1724
|
+
if (v === 0 || v === a.length - 1)
|
|
1725
1725
|
continue;
|
|
1726
1726
|
return !1;
|
|
1727
1727
|
}
|
|
@@ -1743,24 +1743,24 @@ function Qr(u, e, t, n) {
|
|
|
1743
1743
|
d.map = x;
|
|
1744
1744
|
const _ = u.push("thead_open", "thead", 1);
|
|
1745
1745
|
_.map = [e, e + 1];
|
|
1746
|
-
const
|
|
1747
|
-
|
|
1748
|
-
for (let
|
|
1746
|
+
const C = u.push("tr_open", "tr", 1);
|
|
1747
|
+
C.map = [e, e + 1];
|
|
1748
|
+
for (let v = 0; v < a.length; v++) {
|
|
1749
1749
|
const w = u.push("th_open", "th", 1);
|
|
1750
|
-
l[
|
|
1750
|
+
l[v] && (w.attrs = [["style", "text-align:" + l[v]]]);
|
|
1751
1751
|
const q = u.push("inline", "", 0);
|
|
1752
|
-
q.content = a[
|
|
1752
|
+
q.content = a[v].trim(), q.children = [], u.push("th_close", "th", -1);
|
|
1753
1753
|
}
|
|
1754
1754
|
u.push("tr_close", "tr", -1), u.push("thead_close", "thead", -1);
|
|
1755
1755
|
let k, E = 0;
|
|
1756
1756
|
for (r = e + 2; r < t && !(u.sCount[r] < u.blkIndent); r++) {
|
|
1757
|
-
let
|
|
1757
|
+
let v = !1;
|
|
1758
1758
|
for (let q = 0, $ = h.length; q < $; q++)
|
|
1759
1759
|
if (h[q](u, r, t, !0)) {
|
|
1760
|
-
|
|
1760
|
+
v = !0;
|
|
1761
1761
|
break;
|
|
1762
1762
|
}
|
|
1763
|
-
if (
|
|
1763
|
+
if (v || (s = ze(u, r).trim(), !s) || u.sCount[r] - u.blkIndent >= 4 || (a = yt(s), a.length && a[0] === "" && a.shift(), a.length && a[a.length - 1] === "" && a.pop(), E += f - a.length, E > Xr))
|
|
1764
1764
|
break;
|
|
1765
1765
|
if (r === e + 2) {
|
|
1766
1766
|
const q = u.push("tbody_open", "tbody", 1);
|
|
@@ -1844,9 +1844,9 @@ function uo(u, e, t, n) {
|
|
|
1844
1844
|
u.src.charCodeAt(r) === 32 ? (r++, w++, $ = !1, q = !0) : u.src.charCodeAt(r) === 9 ? (q = !0, (u.bsCount[d] + w) % 4 === 3 ? (r++, w++, $ = !1) : $ = !0) : q = !1;
|
|
1845
1845
|
let N = w;
|
|
1846
1846
|
for (i.push(u.bMarks[d]), u.bMarks[d] = r; r < o; ) {
|
|
1847
|
-
const
|
|
1848
|
-
if (P(
|
|
1849
|
-
|
|
1847
|
+
const y = u.src.charCodeAt(r);
|
|
1848
|
+
if (P(y))
|
|
1849
|
+
y === 9 ? N += 4 - (N + u.bsCount[d] + ($ ? 1 : 0)) % 4 : N++;
|
|
1850
1850
|
else
|
|
1851
1851
|
break;
|
|
1852
1852
|
r++;
|
|
@@ -1856,13 +1856,13 @@ function uo(u, e, t, n) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
if (h)
|
|
1858
1858
|
break;
|
|
1859
|
-
let
|
|
1859
|
+
let v = !1;
|
|
1860
1860
|
for (let w = 0, q = f.length; w < q; w++)
|
|
1861
1861
|
if (f[w](u, d, t, !0)) {
|
|
1862
|
-
|
|
1862
|
+
v = !0;
|
|
1863
1863
|
break;
|
|
1864
1864
|
}
|
|
1865
|
-
if (
|
|
1865
|
+
if (v) {
|
|
1866
1866
|
u.lineMax = d, u.blkIndent !== 0 && (i.push(u.bMarks[d]), s.push(u.bsCount[d]), l.push(u.tShift[d]), a.push(u.sCount[d]), u.sCount[d] -= u.blkIndent);
|
|
1867
1867
|
break;
|
|
1868
1868
|
}
|
|
@@ -1872,10 +1872,10 @@ function uo(u, e, t, n) {
|
|
|
1872
1872
|
u.blkIndent = 0;
|
|
1873
1873
|
const _ = u.push("blockquote_open", "blockquote", 1);
|
|
1874
1874
|
_.markup = ">";
|
|
1875
|
-
const
|
|
1876
|
-
_.map =
|
|
1875
|
+
const C = [e, 0];
|
|
1876
|
+
_.map = C, u.md.block.tokenize(u, e, d);
|
|
1877
1877
|
const k = u.push("blockquote_close", "blockquote", -1);
|
|
1878
|
-
k.markup = ">", u.lineMax = c, u.parentType = p,
|
|
1878
|
+
k.markup = ">", u.lineMax = c, u.parentType = p, C[1] = u.line;
|
|
1879
1879
|
for (let E = 0; E < l.length; E++)
|
|
1880
1880
|
u.bMarks[E + e] = i[E], u.tShift[E + e] = l[E], u.sCount[E + e] = a[E], u.bsCount[E + e] = s[E];
|
|
1881
1881
|
return u.blkIndent = x, !0;
|
|
@@ -1964,12 +1964,12 @@ function no(u, e, t, n) {
|
|
|
1964
1964
|
f ? (i = u.push("ordered_list_open", "ol", 1), p !== 1 && (i.attrs = [["start", p]])) : i = u.push("bullet_list_open", "ul", 1);
|
|
1965
1965
|
const _ = [s, 0];
|
|
1966
1966
|
i.map = _, i.markup = String.fromCharCode(d);
|
|
1967
|
-
let
|
|
1967
|
+
let C = !1;
|
|
1968
1968
|
const k = u.md.block.ruler.getRules("list"), E = u.parentType;
|
|
1969
1969
|
for (u.parentType = "list"; s < t; ) {
|
|
1970
1970
|
o = h, r = u.eMarks[s];
|
|
1971
|
-
const
|
|
1972
|
-
let w =
|
|
1971
|
+
const v = u.sCount[s] + h - (u.bMarks[s] + u.tShift[s]);
|
|
1972
|
+
let w = v;
|
|
1973
1973
|
for (; o < r; ) {
|
|
1974
1974
|
const Z = u.src.charCodeAt(o);
|
|
1975
1975
|
if (Z === 9)
|
|
@@ -1982,13 +1982,13 @@ function no(u, e, t, n) {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
const q = o;
|
|
1984
1984
|
let $;
|
|
1985
|
-
q >= r ? $ = 1 : $ = w -
|
|
1986
|
-
const N =
|
|
1985
|
+
q >= r ? $ = 1 : $ = w - v, $ > 4 && ($ = 1);
|
|
1986
|
+
const N = v + $;
|
|
1987
1987
|
i = u.push("list_item_open", "li", 1), i.markup = String.fromCharCode(d);
|
|
1988
|
-
const
|
|
1989
|
-
i.map =
|
|
1988
|
+
const y = [s, 0];
|
|
1989
|
+
i.map = y, f && (i.info = u.src.slice(c, h - 1));
|
|
1990
1990
|
const S = u.tight, m = u.tShift[s], z = u.sCount[s], B = u.listIndent;
|
|
1991
|
-
if (u.listIndent = u.blkIndent, u.blkIndent = N, u.tight = !0, u.tShift[s] = q - u.bMarks[s], u.sCount[s] = w, q >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight ||
|
|
1991
|
+
if (u.listIndent = u.blkIndent, u.blkIndent = N, u.tight = !0, u.tShift[s] = q - u.bMarks[s], u.sCount[s] = w, q >= r && u.isEmpty(s + 1) ? u.line = Math.min(u.line + 2, t) : u.md.block.tokenize(u, s, t, !0), (!u.tight || C) && (a = !1), C = u.line - s > 1 && u.isEmpty(u.line - 1), u.blkIndent = u.listIndent, u.listIndent = B, u.tShift[s] = m, u.sCount[s] = z, u.tight = S, i = u.push("list_item_close", "li", -1), i.markup = String.fromCharCode(d), s = u.line, y[1] = s, s >= t || u.sCount[s] < u.blkIndent || u.sCount[s] - u.blkIndent >= 4)
|
|
1992
1992
|
break;
|
|
1993
1993
|
let I = !1;
|
|
1994
1994
|
for (let Z = 0, J = k.length; Z < J; Z++)
|
|
@@ -2017,17 +2017,17 @@ function ro(u, e, t, n) {
|
|
|
2017
2017
|
const E = u.lineMax;
|
|
2018
2018
|
if (k >= E || u.isEmpty(k))
|
|
2019
2019
|
return null;
|
|
2020
|
-
let
|
|
2021
|
-
if (u.sCount[k] - u.blkIndent > 3 && (
|
|
2020
|
+
let v = !1;
|
|
2021
|
+
if (u.sCount[k] - u.blkIndent > 3 && (v = !0), u.sCount[k] < 0 && (v = !0), !v) {
|
|
2022
2022
|
const $ = u.md.block.ruler.getRules("reference"), N = u.parentType;
|
|
2023
2023
|
u.parentType = "reference";
|
|
2024
|
-
let
|
|
2024
|
+
let y = !1;
|
|
2025
2025
|
for (let S = 0, m = $.length; S < m; S++)
|
|
2026
2026
|
if ($[S](u, k, E, !0)) {
|
|
2027
|
-
|
|
2027
|
+
y = !0;
|
|
2028
2028
|
break;
|
|
2029
2029
|
}
|
|
2030
|
-
if (u.parentType = N,
|
|
2030
|
+
if (u.parentType = N, y)
|
|
2031
2031
|
return null;
|
|
2032
2032
|
}
|
|
2033
2033
|
const w = u.bMarks[k] + u.tShift[k], q = u.eMarks[k];
|
|
@@ -2097,8 +2097,8 @@ function ro(u, e, t, n) {
|
|
|
2097
2097
|
}
|
|
2098
2098
|
if (r < o && s.charCodeAt(r) !== 10)
|
|
2099
2099
|
return !1;
|
|
2100
|
-
const
|
|
2101
|
-
return
|
|
2100
|
+
const C = ke(s.slice(1, a));
|
|
2101
|
+
return C ? (n || (typeof u.env.references > "u" && (u.env.references = {}), typeof u.env.references[C] > "u" && (u.env.references[C] = { title: _, href: f }), u.line = c), !0) : !1;
|
|
2102
2102
|
}
|
|
2103
2103
|
const oo = [
|
|
2104
2104
|
"address",
|
|
@@ -2666,8 +2666,8 @@ function Lo(u, e) {
|
|
|
2666
2666
|
u.env,
|
|
2667
2667
|
x
|
|
2668
2668
|
);
|
|
2669
|
-
const _ = u.push("image", "img", 0),
|
|
2670
|
-
_.attrs =
|
|
2669
|
+
const _ = u.push("image", "img", 0), C = [["src", l], ["alt", ""]];
|
|
2670
|
+
_.attrs = C, _.children = x, _.content = n, s && C.push(["title", s]);
|
|
2671
2671
|
}
|
|
2672
2672
|
return u.pos = o, u.posMax = p, !0;
|
|
2673
2673
|
}
|
|
@@ -3492,7 +3492,7 @@ function wc() {
|
|
|
3492
3492
|
const c = [], i = { children: [] };
|
|
3493
3493
|
let s = i;
|
|
3494
3494
|
return r.forEach((a) => {
|
|
3495
|
-
var _,
|
|
3495
|
+
var _, C, k, E, v, w, q, $, N, y, S;
|
|
3496
3496
|
const { type: l, children: f, content: p, attrs: h, tag: d, hidden: x } = a;
|
|
3497
3497
|
switch (l) {
|
|
3498
3498
|
case "heading_open":
|
|
@@ -3527,7 +3527,7 @@ function wc() {
|
|
|
3527
3527
|
children: [],
|
|
3528
3528
|
attrs: { class: "sq-article-table" }
|
|
3529
3529
|
};
|
|
3530
|
-
(
|
|
3530
|
+
(C = s.children) == null || C.push(z), c.push(s), s = z;
|
|
3531
3531
|
}
|
|
3532
3532
|
(k = s.children) == null || k.push(m), c.push(s), s = m;
|
|
3533
3533
|
break;
|
|
@@ -3563,7 +3563,7 @@ function wc() {
|
|
|
3563
3563
|
case "inline": {
|
|
3564
3564
|
if (f) {
|
|
3565
3565
|
const m = n(f, o);
|
|
3566
|
-
(
|
|
3566
|
+
(v = s.children) == null || v.push(...m ?? []);
|
|
3567
3567
|
} else
|
|
3568
3568
|
(w = s.children) == null || w.push(p);
|
|
3569
3569
|
break;
|
|
@@ -3588,7 +3588,7 @@ function wc() {
|
|
|
3588
3588
|
}
|
|
3589
3589
|
case "input": {
|
|
3590
3590
|
const m = h ? Object.fromEntries(h) : {}, z = m.type ?? "text", B = `${d}-${z}`;
|
|
3591
|
-
(
|
|
3591
|
+
(y = s.children) == null || y.push({
|
|
3592
3592
|
tag: (o == null ? void 0 : o[B]) ?? d,
|
|
3593
3593
|
children: [],
|
|
3594
3594
|
attrs: m
|
|
@@ -4287,75 +4287,75 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4287
4287
|
})
|
|
4288
4288
|
);
|
|
4289
4289
|
const c = j({}), i = j([]), s = j({}), a = D(() => {
|
|
4290
|
-
const
|
|
4291
|
-
return o.size !== "md" &&
|
|
4290
|
+
const y = [];
|
|
4291
|
+
return o.size !== "md" && y.push(`sq-form--${o.size}`), o.requiredMark !== "hidden" && y.push(`required-${o.requiredMark}`), y.push(`is-${o.layout}`), y;
|
|
4292
4292
|
}), l = D(() => ({
|
|
4293
4293
|
"--form-label-width": o.labelWidth
|
|
4294
4294
|
})), f = D(() => {
|
|
4295
|
-
const
|
|
4296
|
-
return
|
|
4295
|
+
const y = o.step;
|
|
4296
|
+
return y === void 0 ? o.items : o.items.filter((S) => S.step === void 0 ? S : Array.isArray(S.step) ? S.step.includes(y) : S.step === y);
|
|
4297
4297
|
});
|
|
4298
4298
|
vu(() => {
|
|
4299
4299
|
n = structuredClone($u(o.formData));
|
|
4300
4300
|
});
|
|
4301
|
-
function p(
|
|
4301
|
+
function p(y) {
|
|
4302
4302
|
var S;
|
|
4303
|
-
return (S =
|
|
4303
|
+
return (S = y.rule) == null ? void 0 : S.required;
|
|
4304
4304
|
}
|
|
4305
|
-
function h(
|
|
4306
|
-
if (s.value[
|
|
4307
|
-
if (i.value.includes(
|
|
4308
|
-
if (c.value[
|
|
4305
|
+
function h(y) {
|
|
4306
|
+
if (s.value[y]) return ge;
|
|
4307
|
+
if (i.value.includes(y)) return We;
|
|
4308
|
+
if (c.value[y])
|
|
4309
4309
|
return o.invalidStatus === "error" ? Ge : Je;
|
|
4310
4310
|
}
|
|
4311
|
-
async function d(
|
|
4311
|
+
async function d(y, S, m, z = !0) {
|
|
4312
4312
|
if (!m) return;
|
|
4313
4313
|
const B = m.trigger ?? "change", I = Array.isArray(B) ? "array" : "string";
|
|
4314
4314
|
if (S) {
|
|
4315
4315
|
if (I === "array" && !B.includes(S)) return;
|
|
4316
4316
|
if (I === "string" && B !== S) return;
|
|
4317
4317
|
}
|
|
4318
|
-
i.value = i.value.filter((R) => R !==
|
|
4319
|
-
const Z = o.formData[
|
|
4318
|
+
i.value = i.value.filter((R) => R !== y), q(y), s.value[y] = new AbortController(), await q0();
|
|
4319
|
+
const Z = o.formData[y];
|
|
4320
4320
|
let J = !1;
|
|
4321
4321
|
const M = m.validateType ?? "string";
|
|
4322
|
-
return m.validateFunc ? J = await _(
|
|
4322
|
+
return m.validateFunc ? J = await _(y, Z, m, S) : M === "string" ? J = C(y, Z, m) : M === "boolean" ? J = k(y, Z, m) : M === "list" && (J = E(y, Z, m)), z && r("validate", y, J, $u(i.value)), s.value[y].signal.aborted || q(y), J;
|
|
4323
4323
|
}
|
|
4324
|
-
function x(
|
|
4325
|
-
if (c.value[
|
|
4324
|
+
function x(y) {
|
|
4325
|
+
if (c.value[y]) return o.invalidStatus;
|
|
4326
4326
|
}
|
|
4327
|
-
async function _(
|
|
4328
|
-
const B = s.value[
|
|
4327
|
+
async function _(y, S, m, z) {
|
|
4328
|
+
const B = s.value[y].signal, I = await m.validateFunc(S, B, z);
|
|
4329
4329
|
if (I === void 0) {
|
|
4330
|
-
i.value = i.value.filter((Z) => Z !==
|
|
4330
|
+
i.value = i.value.filter((Z) => Z !== y), delete c.value[y];
|
|
4331
4331
|
return;
|
|
4332
4332
|
}
|
|
4333
|
-
return I === !0 ? w(
|
|
4333
|
+
return I === !0 ? w(y) : I === !1 ? v(y, "字段验证失败") : I ? v(y, I) : w(y), I === !0 || typeof I == "string" && !I;
|
|
4334
4334
|
}
|
|
4335
|
-
function y
|
|
4336
|
-
return m.required && !S ? (
|
|
4335
|
+
function C(y, S, m) {
|
|
4336
|
+
return m.required && !S ? (v(y, m.requiredText ?? "字段必填"), !1) : m.pattern && S && !m.pattern.test(S) ? (v(y, m.patternText ?? "字段验证失败"), !1) : (w(y), !0);
|
|
4337
4337
|
}
|
|
4338
|
-
function k(
|
|
4339
|
-
return m.required && S === void 0 ? (
|
|
4338
|
+
function k(y, S, m) {
|
|
4339
|
+
return m.required && S === void 0 ? (v(y, m.requiredText ?? "字段必填"), !1) : (w(y), !0);
|
|
4340
4340
|
}
|
|
4341
|
-
function E(
|
|
4342
|
-
return m.required && (!S || !S.length) ? (
|
|
4341
|
+
function E(y, S, m) {
|
|
4342
|
+
return m.required && (!S || !S.length) ? (v(y, m.requiredText ?? "字段必填"), !1) : m.pattern && S && S.map((I) => I.toString()).map((I) => m.pattern.test(I)).includes(!1) ? (v(y, m.patternText ?? "字段验证失败"), !1) : (w(y), !0);
|
|
4343
4343
|
}
|
|
4344
|
-
function
|
|
4345
|
-
i.value = i.value.filter((m) => m !==
|
|
4344
|
+
function v(y, S) {
|
|
4345
|
+
i.value = i.value.filter((m) => m !== y), c.value[y] = S;
|
|
4346
4346
|
}
|
|
4347
|
-
function w(
|
|
4348
|
-
i.value.push(
|
|
4347
|
+
function w(y) {
|
|
4348
|
+
i.value.push(y), delete c.value[y];
|
|
4349
4349
|
}
|
|
4350
|
-
function q(
|
|
4350
|
+
function q(y) {
|
|
4351
4351
|
var S;
|
|
4352
|
-
(S = s.value[
|
|
4352
|
+
(S = s.value[y]) == null || S.abort(), delete s.value[y];
|
|
4353
4353
|
}
|
|
4354
4354
|
function $() {
|
|
4355
4355
|
r("update:formData", structuredClone(n)), c.value = {}, i.value = [], r("validate", "SQFORM", !1, $u(i.value));
|
|
4356
4356
|
}
|
|
4357
|
-
function N(
|
|
4358
|
-
const m = (
|
|
4357
|
+
function N(y = !0) {
|
|
4358
|
+
const m = (y ? o.items : f.value).filter(
|
|
4359
4359
|
(z) => z.type !== "custom" && z.rule && !i.value.includes(z.binding)
|
|
4360
4360
|
).map((z) => {
|
|
4361
4361
|
const B = z;
|
|
@@ -4363,7 +4363,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4363
4363
|
});
|
|
4364
4364
|
return Promise.all(m).then((z) => (r("validate", "SQFORM", !z.includes(!1), $u(i.value)), z));
|
|
4365
4365
|
}
|
|
4366
|
-
return e({ resetFields: $, validate: N }), (
|
|
4366
|
+
return e({ resetFields: $, validate: N }), (y, S) => (g(), A("form", {
|
|
4367
4367
|
class: V(["sq-form", a.value]),
|
|
4368
4368
|
style: eu(l.value),
|
|
4369
4369
|
onSubmit: S[0] || (S[0] = Nt(() => {
|
|
@@ -4417,7 +4417,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4417
4417
|
checked: o.formData[m.binding],
|
|
4418
4418
|
"onUpdate:checked": (B) => o.formData[m.binding] = B,
|
|
4419
4419
|
onChange: (B) => d(m.binding, "change", m.rule)
|
|
4420
|
-
}), null, 16, ["name", "loading", "checked", "onUpdate:checked", "onChange"])) : H(
|
|
4420
|
+
}), null, 16, ["name", "loading", "checked", "onUpdate:checked", "onChange"])) : H(y.$slots, m.slot, { key: 4 })
|
|
4421
4421
|
]),
|
|
4422
4422
|
_: 2
|
|
4423
4423
|
}, 1032, ["class", "type", "label-width", "label", "show-label", "is-required", "error-msg"]))), 128))
|
|
@@ -4540,11 +4540,11 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4540
4540
|
const n = Ze(), r = t, o = u, { inputSize: c, inputRound: i, inputDisabled: s, inputReadonly: a, id: l } = Pc(o), f = pu(u, "value"), p = j(!1), h = j(!1), d = Zu(null), x = D(() => {
|
|
4541
4541
|
const M = [], R = b(c), U = b(i), Fe = b(N);
|
|
4542
4542
|
return R !== "md" && M.push(`sq-input--${R}`), o.status && M.push(`is-${o.status}`), U && M.push("is-round"), Fe && M.push("is-disabled"), M;
|
|
4543
|
-
}), _ = D(() => b(h) ? gn : Bn),
|
|
4543
|
+
}), _ = D(() => b(h) ? gn : Bn), C = D(() => b(h) ? "text" : o.type), k = D(() => n.prefix || o.prefixIcon), E = D(() => b(p) && b(f).length), v = D(
|
|
4544
4544
|
() => o.type === "password" && b(E)
|
|
4545
4545
|
), w = D(() => o.clearable && b(E)), q = D(() => o.loading ? ge : o.suffixIcon), $ = D(
|
|
4546
|
-
() => b(
|
|
4547
|
-
), N = D(() => o.loading || b(s)),
|
|
4546
|
+
() => b(v) || b(w) || b(q) || n.suffix
|
|
4547
|
+
), N = D(() => o.loading || b(s)), y = D(() => {
|
|
4548
4548
|
if (o.type === "textarea")
|
|
4549
4549
|
return b(N) || b(a) ? "none" : o.resize;
|
|
4550
4550
|
});
|
|
@@ -4588,7 +4588,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4588
4588
|
disabled: N.value,
|
|
4589
4589
|
readonly: b(a),
|
|
4590
4590
|
placeholder: o.placeholder,
|
|
4591
|
-
type:
|
|
4591
|
+
type: C.value,
|
|
4592
4592
|
maxlength: o.maxlength,
|
|
4593
4593
|
minlength: o.minlength,
|
|
4594
4594
|
autocomplete: o.autocomplete,
|
|
@@ -4607,13 +4607,13 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4607
4607
|
]) : fu((g(), A("textarea", {
|
|
4608
4608
|
key: 2,
|
|
4609
4609
|
class: "sq-input-inner",
|
|
4610
|
-
style: eu({ resize:
|
|
4610
|
+
style: eu({ resize: y.value }),
|
|
4611
4611
|
"onUpdate:modelValue": R[3] || (R[3] = (U) => f.value = U),
|
|
4612
4612
|
id: b(l),
|
|
4613
4613
|
disabled: N.value,
|
|
4614
4614
|
readonly: b(a),
|
|
4615
4615
|
placeholder: o.placeholder,
|
|
4616
|
-
type:
|
|
4616
|
+
type: C.value,
|
|
4617
4617
|
maxlength: o.maxlength,
|
|
4618
4618
|
minlength: o.minlength,
|
|
4619
4619
|
autocomplete: o.autocomplete,
|
|
@@ -4633,7 +4633,7 @@ const Hc = ["disabled", "form", "type"], Uc = "sq-button", he = /* @__PURE__ */
|
|
|
4633
4633
|
[B0, f.value]
|
|
4634
4634
|
]),
|
|
4635
4635
|
fu(F("span", yi, [
|
|
4636
|
-
|
|
4636
|
+
v.value ? (g(), T(ku(_.value), {
|
|
4637
4637
|
key: 0,
|
|
4638
4638
|
class: "sq-input-suffix-pwd",
|
|
4639
4639
|
onMousedown: I
|
|
@@ -5106,13 +5106,13 @@ const ns = async (u, e, t) => {
|
|
|
5106
5106
|
for (let x = 0; x < i.length; x++) {
|
|
5107
5107
|
const {
|
|
5108
5108
|
name: _,
|
|
5109
|
-
fn:
|
|
5109
|
+
fn: C
|
|
5110
5110
|
} = i[x], {
|
|
5111
5111
|
x: k,
|
|
5112
5112
|
y: E,
|
|
5113
|
-
data:
|
|
5113
|
+
data: v,
|
|
5114
5114
|
reset: w
|
|
5115
|
-
} = await
|
|
5115
|
+
} = await C({
|
|
5116
5116
|
x: l,
|
|
5117
5117
|
y: f,
|
|
5118
5118
|
initialPlacement: n,
|
|
@@ -5130,7 +5130,7 @@ const ns = async (u, e, t) => {
|
|
|
5130
5130
|
...h,
|
|
5131
5131
|
[_]: {
|
|
5132
5132
|
...h[_],
|
|
5133
|
-
...
|
|
5133
|
+
...v
|
|
5134
5134
|
}
|
|
5135
5135
|
}, w && d <= 50 && (d++, typeof w == "object" && (w.placement && (p = w.placement), w.rects && (a = w.rects === !0 ? await c.getElementRects({
|
|
5136
5136
|
reference: u,
|
|
@@ -5165,7 +5165,7 @@ async function rs(u, e) {
|
|
|
5165
5165
|
elementContext: f = "floating",
|
|
5166
5166
|
altBoundary: p = !1,
|
|
5167
5167
|
padding: h = 0
|
|
5168
|
-
} = ct(e, u), d = ts(h), _ = i[p ? f === "floating" ? "reference" : "floating" : f],
|
|
5168
|
+
} = ct(e, u), d = ts(h), _ = i[p ? f === "floating" ? "reference" : "floating" : f], C = me(await o.getClippingRect({
|
|
5169
5169
|
element: (t = await (o.isElement == null ? void 0 : o.isElement(_))) == null || t ? _ : _.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(i.floating)),
|
|
5170
5170
|
boundary: a,
|
|
5171
5171
|
rootBoundary: l,
|
|
@@ -5175,7 +5175,7 @@ async function rs(u, e) {
|
|
|
5175
5175
|
y: r,
|
|
5176
5176
|
width: c.floating.width,
|
|
5177
5177
|
height: c.floating.height
|
|
5178
|
-
} : c.reference, E = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)),
|
|
5178
|
+
} : c.reference, E = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(i.floating)), v = await (o.isElement == null ? void 0 : o.isElement(E)) ? await (o.getScale == null ? void 0 : o.getScale(E)) || {
|
|
5179
5179
|
x: 1,
|
|
5180
5180
|
y: 1
|
|
5181
5181
|
} : {
|
|
@@ -5188,10 +5188,10 @@ async function rs(u, e) {
|
|
|
5188
5188
|
strategy: s
|
|
5189
5189
|
}) : k);
|
|
5190
5190
|
return {
|
|
5191
|
-
top: (
|
|
5192
|
-
bottom: (w.bottom -
|
|
5193
|
-
left: (
|
|
5194
|
-
right: (w.right -
|
|
5191
|
+
top: (C.top - w.top + d.top) / v.y,
|
|
5192
|
+
bottom: (w.bottom - C.bottom + d.bottom) / v.y,
|
|
5193
|
+
left: (C.left - w.left + d.left) / v.x,
|
|
5194
|
+
right: (w.right - C.right + d.right) / v.x
|
|
5195
5195
|
};
|
|
5196
5196
|
}
|
|
5197
5197
|
const os = function(u) {
|
|
@@ -5218,18 +5218,18 @@ const os = function(u) {
|
|
|
5218
5218
|
} = ct(u, e);
|
|
5219
5219
|
if ((t = o.arrow) != null && t.alignmentOffset)
|
|
5220
5220
|
return {};
|
|
5221
|
-
const
|
|
5222
|
-
!p && q && w.push(...us(i, x, d,
|
|
5223
|
-
const $ = [i, ...w], N = await rs(e, _),
|
|
5221
|
+
const C = Pu(r), k = Su(i), E = Pu(i) === i, v = await (s.isRTL == null ? void 0 : s.isRTL(a.floating)), w = p || (E || !x ? [be(i)] : Xi(i)), q = d !== "none";
|
|
5222
|
+
!p && q && w.push(...us(i, x, d, v));
|
|
5223
|
+
const $ = [i, ...w], N = await rs(e, _), y = [];
|
|
5224
5224
|
let S = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
5225
|
-
if (l &&
|
|
5226
|
-
const I = Ji(r, c,
|
|
5227
|
-
|
|
5225
|
+
if (l && y.push(N[C]), f) {
|
|
5226
|
+
const I = Ji(r, c, v);
|
|
5227
|
+
y.push(N[I[0]], N[I[1]]);
|
|
5228
5228
|
}
|
|
5229
5229
|
if (S = [...S, {
|
|
5230
5230
|
placement: r,
|
|
5231
|
-
overflows:
|
|
5232
|
-
}], !
|
|
5231
|
+
overflows: y
|
|
5232
|
+
}], !y.every((I) => I <= 0)) {
|
|
5233
5233
|
var m, z;
|
|
5234
5234
|
const I = (((m = o.flip) == null ? void 0 : m.index) || 0) + 1, Z = $[I];
|
|
5235
5235
|
if (Z && (!(f === "alignment" ? k !== Su(Z) : !1) || // We leave the current main axis only if every placement on that axis
|
|
@@ -5490,8 +5490,8 @@ function qu(u, e, t, n) {
|
|
|
5490
5490
|
const p = uu(o), h = n && iu(n) ? uu(n) : n;
|
|
5491
5491
|
let d = p, x = Ve(d);
|
|
5492
5492
|
for (; x && n && h !== d; ) {
|
|
5493
|
-
const _ = Ru(x),
|
|
5494
|
-
s *= _.x, a *= _.y, l *= _.x, f *= _.y, s += E, a +=
|
|
5493
|
+
const _ = Ru(x), C = x.getBoundingClientRect(), k = su(x), E = C.left + (x.clientLeft + parseFloat(k.paddingLeft)) * _.x, v = C.top + (x.clientTop + parseFloat(k.paddingTop)) * _.y;
|
|
5494
|
+
s *= _.x, a *= _.y, l *= _.x, f *= _.y, s += E, a += v, d = uu(x), x = Ve(d);
|
|
5495
5495
|
}
|
|
5496
5496
|
}
|
|
5497
5497
|
return me({
|
|
@@ -5748,21 +5748,21 @@ function Ts(u, e) {
|
|
|
5748
5748
|
} = a;
|
|
5749
5749
|
if (i || e(), !p || !h)
|
|
5750
5750
|
return;
|
|
5751
|
-
const d = ae(f), x = ae(r.clientWidth - (l + p)), _ = ae(r.clientHeight - (f + h)),
|
|
5752
|
-
rootMargin: -d + "px " + -x + "px " + -_ + "px " + -
|
|
5751
|
+
const d = ae(f), x = ae(r.clientWidth - (l + p)), _ = ae(r.clientHeight - (f + h)), C = ae(l), E = {
|
|
5752
|
+
rootMargin: -d + "px " + -x + "px " + -_ + "px " + -C + "px",
|
|
5753
5753
|
threshold: Mu(0, He(1, s)) || 1
|
|
5754
5754
|
};
|
|
5755
|
-
let
|
|
5755
|
+
let v = !0;
|
|
5756
5756
|
function w(q) {
|
|
5757
5757
|
const $ = q[0].intersectionRatio;
|
|
5758
5758
|
if ($ !== s) {
|
|
5759
|
-
if (!
|
|
5759
|
+
if (!v)
|
|
5760
5760
|
return c();
|
|
5761
5761
|
$ ? c(!1, $) : n = setTimeout(() => {
|
|
5762
5762
|
c(!1, 1e-7);
|
|
5763
5763
|
}, 1e3);
|
|
5764
5764
|
}
|
|
5765
|
-
$ === 1 && !F0(a, u.getBoundingClientRect()) && c(),
|
|
5765
|
+
$ === 1 && !F0(a, u.getBoundingClientRect()) && c(), v = !1;
|
|
5766
5766
|
}
|
|
5767
5767
|
try {
|
|
5768
5768
|
t = new IntersectionObserver(w, {
|
|
@@ -5786,15 +5786,15 @@ function $s(u, e, t, n) {
|
|
|
5786
5786
|
layoutShift: i = typeof IntersectionObserver == "function",
|
|
5787
5787
|
animationFrame: s = !1
|
|
5788
5788
|
} = n, a = at(u), l = r || o ? [...a ? Qu(a) : [], ...Qu(e)] : [];
|
|
5789
|
-
l.forEach((
|
|
5790
|
-
r &&
|
|
5789
|
+
l.forEach((C) => {
|
|
5790
|
+
r && C.addEventListener("scroll", t, {
|
|
5791
5791
|
passive: !0
|
|
5792
|
-
}), o &&
|
|
5792
|
+
}), o && C.addEventListener("resize", t);
|
|
5793
5793
|
});
|
|
5794
5794
|
const f = a && i ? Ts(a, t) : null;
|
|
5795
5795
|
let p = -1, h = null;
|
|
5796
|
-
c && (h = new ResizeObserver((
|
|
5797
|
-
let [k] =
|
|
5796
|
+
c && (h = new ResizeObserver((C) => {
|
|
5797
|
+
let [k] = C;
|
|
5798
5798
|
k && k.target === a && h && (h.unobserve(e), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
5799
5799
|
var E;
|
|
5800
5800
|
(E = h) == null || E.observe(e);
|
|
@@ -5803,14 +5803,14 @@ function $s(u, e, t, n) {
|
|
|
5803
5803
|
let d, x = s ? qu(u) : null;
|
|
5804
5804
|
s && _();
|
|
5805
5805
|
function _() {
|
|
5806
|
-
const
|
|
5807
|
-
x && !F0(x,
|
|
5806
|
+
const C = qu(u);
|
|
5807
|
+
x && !F0(x, C) && t(), x = C, d = requestAnimationFrame(_);
|
|
5808
5808
|
}
|
|
5809
5809
|
return t(), () => {
|
|
5810
|
-
var
|
|
5810
|
+
var C;
|
|
5811
5811
|
l.forEach((k) => {
|
|
5812
5812
|
r && k.removeEventListener("scroll", t), o && k.removeEventListener("resize", t);
|
|
5813
|
-
}), f == null || f(), (
|
|
5813
|
+
}), f == null || f(), (C = h) == null || C.disconnect(), h = null, s && cancelAnimationFrame(d);
|
|
5814
5814
|
};
|
|
5815
5815
|
}
|
|
5816
5816
|
const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
@@ -5847,8 +5847,8 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5847
5847
|
const { nextZIndex: e } = Ht();
|
|
5848
5848
|
let t, n;
|
|
5849
5849
|
const r = u, o = pu(u, "visible"), c = j(0), i = j({}), s = Zu(null), a = Zu(null);
|
|
5850
|
-
Eu(o, (
|
|
5851
|
-
|
|
5850
|
+
Eu(o, (C) => {
|
|
5851
|
+
C ? (c.value = e(), x(), n = $s(
|
|
5852
5852
|
s.value.$el,
|
|
5853
5853
|
a.value,
|
|
5854
5854
|
x
|
|
@@ -5868,20 +5868,22 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5868
5868
|
d();
|
|
5869
5869
|
}, r.hideAfter));
|
|
5870
5870
|
}
|
|
5871
|
-
function p(
|
|
5872
|
-
r.trigger === "click" && !r.disabled && !o.value && (
|
|
5871
|
+
function p(C) {
|
|
5872
|
+
r.trigger === "click" && !r.disabled && !o.value && (C.stopPropagation(), h());
|
|
5873
5873
|
}
|
|
5874
|
-
function h(
|
|
5875
|
-
o.value = !0,
|
|
5874
|
+
function h(C = !0) {
|
|
5875
|
+
o.value = !0, C && document.addEventListener("click", d);
|
|
5876
5876
|
}
|
|
5877
5877
|
function d() {
|
|
5878
5878
|
o.value = !1, document.removeEventListener("click", d);
|
|
5879
5879
|
}
|
|
5880
5880
|
async function x() {
|
|
5881
|
-
|
|
5881
|
+
var v;
|
|
5882
|
+
if (!((v = s.value) != null && v.$el) || !a.value) return;
|
|
5883
|
+
const C = await Rs(s.value.$el, a.value, {
|
|
5882
5884
|
placement: r.placement,
|
|
5883
5885
|
middleware: [Ls(r.offset), Ms()]
|
|
5884
|
-
}), { x: k, y: E } =
|
|
5886
|
+
}), { x: k, y: E } = C;
|
|
5885
5887
|
i.value = {
|
|
5886
5888
|
left: `${k}px`,
|
|
5887
5889
|
top: `${E}px`
|
|
@@ -5890,10 +5892,10 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5890
5892
|
function _() {
|
|
5891
5893
|
t && (clearTimeout(t), t = void 0);
|
|
5892
5894
|
}
|
|
5893
|
-
return (
|
|
5895
|
+
return (C, k) => (g(), A(bu, null, [
|
|
5894
5896
|
wu(b(Ui), {
|
|
5895
|
-
class: V(["sq-popover-trigger",
|
|
5896
|
-
style: eu(
|
|
5897
|
+
class: V(["sq-popover-trigger", C.$attrs.class]),
|
|
5898
|
+
style: eu(C.$attrs.style),
|
|
5897
5899
|
ref_key: "triggerRef",
|
|
5898
5900
|
ref: s,
|
|
5899
5901
|
onMouseenter: l,
|
|
@@ -5901,7 +5903,7 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5901
5903
|
onClick: p
|
|
5902
5904
|
}, {
|
|
5903
5905
|
default: Q(() => [
|
|
5904
|
-
H(
|
|
5906
|
+
H(C.$slots, "reference")
|
|
5905
5907
|
]),
|
|
5906
5908
|
_: 3
|
|
5907
5909
|
}, 8, ["class", "style"]),
|
|
@@ -5914,14 +5916,14 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
5914
5916
|
}, {
|
|
5915
5917
|
default: Q(() => [
|
|
5916
5918
|
fu(F("div", {
|
|
5917
|
-
class: V(["sq-popover",
|
|
5919
|
+
class: V(["sq-popover", C.popoverClass]),
|
|
5918
5920
|
style: eu({ ...i.value, zIndex: c.value }),
|
|
5919
5921
|
ref_key: "popverRef",
|
|
5920
5922
|
ref: a,
|
|
5921
5923
|
onClick: k[0] || (k[0] = Nt(() => {
|
|
5922
5924
|
}, ["stop"]))
|
|
5923
5925
|
}, [
|
|
5924
|
-
H(
|
|
5926
|
+
H(C.$slots, "default")
|
|
5925
5927
|
], 6), [
|
|
5926
5928
|
[Ku, o.value]
|
|
5927
5929
|
])
|
|
@@ -6037,8 +6039,8 @@ const Ls = ss, Ms = os, Rs = (u, e, t) => {
|
|
|
6037
6039
|
radioVariant: s,
|
|
6038
6040
|
groupContext: a
|
|
6039
6041
|
} = Nc(n), l = j(), f = pu(u, "checked"), p = D(() => {
|
|
6040
|
-
const d = [], x = b(r), _ = b(o),
|
|
6041
|
-
return x !== "md" && d.push(`sq-selection--${x}`), h.value && d.push("is-checked"), _ && d.push("is-disabled"),
|
|
6042
|
+
const d = [], x = b(r), _ = b(o), C = b(s);
|
|
6043
|
+
return x !== "md" && d.push(`sq-selection--${x}`), h.value && d.push("is-checked"), _ && d.push("is-disabled"), C && d.push(`is-${C}`), d;
|
|
6042
6044
|
}), h = D(() => n.label && a ? b(b(a)).checked === n.label : f.value);
|
|
6043
6045
|
return Eu(l, (d) => {
|
|
6044
6046
|
n.label ? f.value = d === n.label : f.value = d === "on";
|