@rotki/ui-library 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.es.js +166 -166
- package/dist/icons/icons_10.d.ts +0 -3
- package/dist/icons/icons_10.es.js +277 -289
- package/dist/icons/icons_7.d.ts +4 -4
- package/dist/icons/icons_7.es.js +890 -890
- package/dist/icons/icons_8.d.ts +3 -3
- package/dist/icons/icons_8.es.js +1005 -1005
- package/dist/icons/icons_9.d.ts +3 -3
- package/dist/icons/icons_9.es.js +1005 -1005
- package/dist/icons/index.d.ts +1 -1
- package/dist/icons/index.es.js +1529 -1532
- package/dist/index.es.js +1528 -1531
- package/dist/style.css +1 -1
- package/dist/web-types.json +1 -1
- package/package.json +1 -1
|
@@ -91,7 +91,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
91
91
|
), $ = A(
|
|
92
92
|
() => +t(f) * 32 / +t(h)
|
|
93
93
|
), M = A(() => 40 + t($));
|
|
94
|
-
return (m,
|
|
94
|
+
return (m, B) => (s(), _("div", {
|
|
95
95
|
class: p([
|
|
96
96
|
m.$style.wrapper,
|
|
97
97
|
m.circular ? "inline-flex" : "w-full",
|
|
@@ -553,7 +553,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
553
553
|
successMessages: M,
|
|
554
554
|
persistent: m
|
|
555
555
|
} = pe(l), {
|
|
556
|
-
reference:
|
|
556
|
+
reference: B,
|
|
557
557
|
popper: H,
|
|
558
558
|
open: O,
|
|
559
559
|
popperEnter: g,
|
|
@@ -561,9 +561,9 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
561
561
|
onLeavePending: E,
|
|
562
562
|
onOpen: I,
|
|
563
563
|
onClose: U,
|
|
564
|
-
onPopperLeave:
|
|
564
|
+
onPopperLeave: R,
|
|
565
565
|
updatePopper: J
|
|
566
|
-
} = is(c, y, h, f), { width: K } = zt(
|
|
566
|
+
} = is(c, y, h, f), { width: K } = zt(B), V = W(!1);
|
|
567
567
|
function C(x) {
|
|
568
568
|
t(O) && (U(), w(V, !1));
|
|
569
569
|
}
|
|
@@ -576,7 +576,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
576
576
|
d("update:model-value", x);
|
|
577
577
|
}), cs(H, () => {
|
|
578
578
|
t(O) && !t(m) && C();
|
|
579
|
-
}, { ignore: [
|
|
579
|
+
}, { ignore: [B] });
|
|
580
580
|
const Q = A(() => {
|
|
581
581
|
if (t(y))
|
|
582
582
|
return {};
|
|
@@ -601,7 +601,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
601
601
|
}, [
|
|
602
602
|
S("div", {
|
|
603
603
|
ref_key: "activator",
|
|
604
|
-
ref:
|
|
604
|
+
ref: B,
|
|
605
605
|
class: p([x.$style.wrapper, x.wrapperClass, { "w-full": x.fullWidth }]),
|
|
606
606
|
"data-menu-disabled": e(y)
|
|
607
607
|
}, [
|
|
@@ -631,7 +631,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
631
631
|
"leave-from-class": "opacity-100 translate-y-0",
|
|
632
632
|
"leave-to-class": "opacity-0 translate-y-1",
|
|
633
633
|
onBeforeEnter: ze[0] || (ze[0] = (_e) => e(J)()),
|
|
634
|
-
onAfterLeave: ze[1] || (ze[1] = (_e) => e(F) ? e(
|
|
634
|
+
onAfterLeave: ze[1] || (ze[1] = (_e) => e(F) ? e(R)() : void 0),
|
|
635
635
|
onBeforeLeave: ze[2] || (ze[2] = (_e) => e(E)())
|
|
636
636
|
}, {
|
|
637
637
|
default: N(() => [
|
|
@@ -716,12 +716,12 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
716
716
|
emits: ["update:modelValue", "update:searchInput"],
|
|
717
717
|
setup(z, { expose: a }) {
|
|
718
718
|
st((v) => ({
|
|
719
|
-
|
|
719
|
+
b10b00fa: e(ze)
|
|
720
720
|
}));
|
|
721
721
|
const l = Qe(z, "modelValue"), d = Qe(z, "searchInput"), u = z, f = Je(), { dense: h, disabled: c, options: y } = pe(u), { getText: r, getIdentifier: i } = Rs({
|
|
722
722
|
keyAttr: u.keyAttr,
|
|
723
723
|
textAttr: u.textAttr
|
|
724
|
-
}), n = W(), $ = W(), M = W(), m = W(), { focused:
|
|
724
|
+
}), n = W(), $ = W(), M = W(), m = W(), { focused: B } = Zt($), { focused: H } = Zt(m), { focused: O } = Ht(n), g = ht(B, H), F = Dt(g, 100), E = ht(F, g), I = W([]), U = A(() => t(I).slice(0, Math.min(5, t(Me).length)).reduce((q, ue) => q + ue.$el.offsetHeight, 0)), R = A(() => Array.isArray(t(l))), J = A(() => !(f.selection || t(R) || u.chips)), K = W(""), V = Dt(K, 100);
|
|
725
725
|
ge(d, (v) => {
|
|
726
726
|
w(K, v);
|
|
727
727
|
}, { immediate: !0 });
|
|
@@ -742,7 +742,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
742
742
|
}
|
|
743
743
|
function fe(v) {
|
|
744
744
|
const q = u.keyAttr, ue = q && !u.returnObject ? v.map((ie) => ie[q]) : v;
|
|
745
|
-
return t(
|
|
745
|
+
return t(R) ? Q(ue) : ue.length === 0 ? Q(void 0) : Q(ue[0]);
|
|
746
746
|
}
|
|
747
747
|
const ne = A({
|
|
748
748
|
get: () => {
|
|
@@ -817,14 +817,14 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
817
817
|
w(ye, !0), ce(q), w(C, !1);
|
|
818
818
|
}
|
|
819
819
|
async function Oe(v, q, ue = !1) {
|
|
820
|
-
if (Mt(q) && w(He, q), t(
|
|
820
|
+
if (Mt(q) && w(He, q), t(R)) {
|
|
821
821
|
const ie = [...t(ne)], oe = xe(v);
|
|
822
822
|
oe === -1 ? (ce(), ie.push(v)) : ie.splice(oe, 1), w(ne, ie);
|
|
823
823
|
} else
|
|
824
824
|
await Ye(() => {
|
|
825
825
|
w(ye, !1);
|
|
826
826
|
}), t(J) ? ce(r(v)) : ce(), w(ne, [v]);
|
|
827
|
-
ue
|
|
827
|
+
!ue && t(R) && w(O, !0);
|
|
828
828
|
}
|
|
829
829
|
async function ot() {
|
|
830
830
|
await Ye(() => {
|
|
@@ -838,13 +838,13 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
838
838
|
ge(ne, () => {
|
|
839
839
|
w(Se, -1);
|
|
840
840
|
}), ge(Se, async (v) => {
|
|
841
|
-
v === -1 || !t(
|
|
841
|
+
v === -1 || !t(R) || await Ye(() => {
|
|
842
842
|
const q = t($).querySelector(`[data-index="${v}"]`);
|
|
843
843
|
q == null || q.focus();
|
|
844
844
|
});
|
|
845
845
|
});
|
|
846
846
|
function Xe(v, q) {
|
|
847
|
-
if (!t(
|
|
847
|
+
if (!t(R) || t(K).length > 0)
|
|
848
848
|
return;
|
|
849
849
|
v.preventDefault();
|
|
850
850
|
const ue = t(ne).length;
|
|
@@ -885,7 +885,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
885
885
|
}
|
|
886
886
|
function St() {
|
|
887
887
|
const v = t(ne).length;
|
|
888
|
-
!t(K) && v > 0 && (t(
|
|
888
|
+
!t(K) && v > 0 && (t(R) ? w(Se, v - 1) : vt());
|
|
889
889
|
}
|
|
890
890
|
function ut(v, q) {
|
|
891
891
|
return {
|
|
@@ -904,10 +904,10 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
904
904
|
};
|
|
905
905
|
}
|
|
906
906
|
function gt(v) {
|
|
907
|
-
t(te).length > 0 && t(He) > -1 && t(ye) ? (X(), v.preventDefault()) : t(y).length > 0 && u.customValue ? (At(), t(
|
|
907
|
+
t(te).length > 0 && t(He) > -1 && t(ye) ? (X(), v.preventDefault()) : t(y).length > 0 && u.customValue ? (At(), t(R) || w(ye, !1), v.preventDefault()) : !t(ye) && t(ne).length === 0 && (w(ye, !0), v.preventDefault());
|
|
908
908
|
}
|
|
909
909
|
function ft(v) {
|
|
910
|
-
t(ye) && t(te).length > 0 && t(He) > -1 && !t(
|
|
910
|
+
t(ye) && t(te).length > 0 && t(He) > -1 && !t(R) && (X(), v.preventDefault());
|
|
911
911
|
}
|
|
912
912
|
function kt(v, q) {
|
|
913
913
|
var ue, ie;
|
|
@@ -1031,12 +1031,12 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1031
1031
|
])
|
|
1032
1032
|
]),
|
|
1033
1033
|
_: 2
|
|
1034
|
-
}, 1040, ["size", "class"])) : e(
|
|
1034
|
+
}, 1040, ["size", "class"])) : e(R) || !e(O) && (e(f)["selection.prepend"] || e(f).selection) ? (s(), _("div", Jo, [
|
|
1035
1035
|
D(v.$slots, "selection.prepend", G({
|
|
1036
1036
|
index: T,
|
|
1037
1037
|
ref_for: !0
|
|
1038
1038
|
}, { item: b })),
|
|
1039
|
-
e(
|
|
1039
|
+
e(R) || e(f).selection ? D(v.$slots, "selection", G({
|
|
1040
1040
|
key: 0,
|
|
1041
1041
|
index: T,
|
|
1042
1042
|
ref_for: !0
|
|
@@ -1221,8 +1221,8 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1221
1221
|
return g.flatMap((F) => F.type === he && Array.isArray(F.children) && F.children.length > 0 ? n(F.children.filter(Pt)) : [F]).flat();
|
|
1222
1222
|
}
|
|
1223
1223
|
const $ = A(() => {
|
|
1224
|
-
var
|
|
1225
|
-
const g = t(c), F = t(y), E = t(f), I = ((
|
|
1224
|
+
var R;
|
|
1225
|
+
const g = t(c), F = t(y), E = t(f), I = ((R = u.default) == null ? void 0 : R.call(u)) ?? [];
|
|
1226
1226
|
return n(I).map((J, K) => {
|
|
1227
1227
|
var C;
|
|
1228
1228
|
const V = (C = J.props) == null ? void 0 : C["model-value"];
|
|
@@ -1242,24 +1242,24 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1242
1242
|
I >= 0 ? (!E || F.length !== 1) && F.splice(I, 1) : F.push(g), d("update:modelValue", F);
|
|
1243
1243
|
} else E ? d("update:modelValue", g) : d("update:modelValue", M(g, F) ? void 0 : g);
|
|
1244
1244
|
}
|
|
1245
|
-
const
|
|
1246
|
-
() => l.variant ?
|
|
1245
|
+
const B = Xt(), H = A(() => l.color ? B[l.color] : void 0), O = A(
|
|
1246
|
+
() => l.variant ? B[l.variant] : void 0
|
|
1247
1247
|
);
|
|
1248
1248
|
return (g, F) => (s(), _("div", G({
|
|
1249
1249
|
class: [
|
|
1250
|
-
e(
|
|
1250
|
+
e(B).wrapper,
|
|
1251
1251
|
e(H),
|
|
1252
1252
|
e(O),
|
|
1253
1253
|
{
|
|
1254
|
-
[e(
|
|
1255
|
-
[e(
|
|
1256
|
-
[e(
|
|
1254
|
+
[e(B).wrapper__vertical]: g.vertical,
|
|
1255
|
+
[e(B).separated]: !!g.gap,
|
|
1256
|
+
[e(B)[`separated__${g.gap}`]]: !!g.gap
|
|
1257
1257
|
}
|
|
1258
1258
|
]
|
|
1259
1259
|
}, g.$attrs), [
|
|
1260
1260
|
(s(!0), _(he, null, ke(e($), (E, I) => (s(), P(lt(E), {
|
|
1261
1261
|
key: I,
|
|
1262
|
-
class: p(e(
|
|
1262
|
+
class: p(e(B).button),
|
|
1263
1263
|
size: e(i),
|
|
1264
1264
|
variant: e(r),
|
|
1265
1265
|
"onUpdate:modelValue": (U) => m(U ?? I)
|
|
@@ -1319,12 +1319,12 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1319
1319
|
y
|
|
1320
1320
|
);
|
|
1321
1321
|
return ge(h, (m) => {
|
|
1322
|
-
const
|
|
1323
|
-
|
|
1322
|
+
const B = t(r);
|
|
1323
|
+
B && (B.checked = !m, m ? B.value = "off" : B.value = "on");
|
|
1324
1324
|
}), ge(i, (m) => {
|
|
1325
|
-
const
|
|
1326
|
-
|
|
1327
|
-
}), (m,
|
|
1325
|
+
const B = t(r);
|
|
1326
|
+
B && B.checked !== m && (B.checked = m);
|
|
1327
|
+
}), (m, B) => (s(), _("div", be($e(e(Ze)(m.$attrs))), [
|
|
1328
1328
|
S("label", G({
|
|
1329
1329
|
class: [
|
|
1330
1330
|
m.$style.wrapper,
|
|
@@ -1337,7 +1337,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1337
1337
|
qt(S("input", G({
|
|
1338
1338
|
ref_key: "el",
|
|
1339
1339
|
ref: r,
|
|
1340
|
-
"onUpdate:modelValue":
|
|
1340
|
+
"onUpdate:modelValue": B[0] || (B[0] = (H) => tt(i) ? i.value = H : null),
|
|
1341
1341
|
type: "checkbox",
|
|
1342
1342
|
class: m.$style.input,
|
|
1343
1343
|
disabled: m.disabled
|
|
@@ -1533,7 +1533,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1533
1533
|
},
|
|
1534
1534
|
emits: ["update:model-value"],
|
|
1535
1535
|
setup(z, { emit: a }) {
|
|
1536
|
-
st((
|
|
1536
|
+
st((R) => ({
|
|
1537
1537
|
"24cfa32b": e(I),
|
|
1538
1538
|
"4e8a697c": e(E),
|
|
1539
1539
|
"3f1edc84": e(m),
|
|
@@ -1543,98 +1543,98 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1543
1543
|
get() {
|
|
1544
1544
|
return t(u);
|
|
1545
1545
|
},
|
|
1546
|
-
set(
|
|
1547
|
-
d("update:model-value",
|
|
1546
|
+
set(R) {
|
|
1547
|
+
d("update:model-value", R);
|
|
1548
1548
|
}
|
|
1549
1549
|
}), M = A(() => {
|
|
1550
|
-
const
|
|
1551
|
-
return [Math.round((t(u) -
|
|
1550
|
+
const R = t(h), J = t(c), V = (t(f) - R) / J;
|
|
1551
|
+
return [Math.round((t(u) - R) / J), V];
|
|
1552
1552
|
}), m = A(() => {
|
|
1553
|
-
const [
|
|
1554
|
-
return `${Math.min(100, Math.max(0, Math.round(
|
|
1555
|
-
}), { hasError:
|
|
1553
|
+
const [R, J] = t(M);
|
|
1554
|
+
return `${Math.min(100, Math.max(0, Math.round(R / J * 100)))}%`;
|
|
1555
|
+
}), { hasError: B, hasSuccess: H } = rt(
|
|
1556
1556
|
y,
|
|
1557
1557
|
r
|
|
1558
1558
|
), O = W(), { width: g, height: F } = ps(O), E = A(() => `${t(g)}px`), I = A(() => `${t(F)}px`), U = A(() => `${t(n)}px`);
|
|
1559
|
-
return (
|
|
1559
|
+
return (R, J) => (s(), _("div", be($e(e(Ze)(R.$attrs))), [
|
|
1560
1560
|
S("label", {
|
|
1561
1561
|
class: p([
|
|
1562
|
-
|
|
1562
|
+
R.$style.wrapper,
|
|
1563
1563
|
{
|
|
1564
|
-
[
|
|
1565
|
-
[
|
|
1566
|
-
[
|
|
1567
|
-
[
|
|
1568
|
-
[
|
|
1569
|
-
[
|
|
1570
|
-
[
|
|
1564
|
+
[R.$style.disabled]: R.disabled,
|
|
1565
|
+
[R.$style.vertical]: e(i),
|
|
1566
|
+
[R.$style[R.color]]: R.color,
|
|
1567
|
+
[R.$style["hide-track"]]: R.hideTrack,
|
|
1568
|
+
[R.$style["big-tick"]]: e(n) > 4,
|
|
1569
|
+
[R.$style["with-error"]]: e(B),
|
|
1570
|
+
[R.$style["with-success"]]: e(H) && !e(B)
|
|
1571
1571
|
}
|
|
1572
1572
|
])
|
|
1573
1573
|
}, [
|
|
1574
|
-
|
|
1574
|
+
R.label ? (s(), _("div", {
|
|
1575
1575
|
key: 0,
|
|
1576
|
-
class: p([
|
|
1577
|
-
}, se(
|
|
1576
|
+
class: p([R.$style.label, "text-body-1"])
|
|
1577
|
+
}, se(R.label), 3)) : k("", !0),
|
|
1578
1578
|
S("div", {
|
|
1579
1579
|
ref_key: "outer",
|
|
1580
1580
|
ref: O,
|
|
1581
|
-
class: p(
|
|
1581
|
+
class: p(R.$style.outer)
|
|
1582
1582
|
}, [
|
|
1583
1583
|
S("div", {
|
|
1584
|
-
class: p(
|
|
1584
|
+
class: p(R.$style.inner)
|
|
1585
1585
|
}, [
|
|
1586
1586
|
qt(S("input", G({
|
|
1587
1587
|
"onUpdate:modelValue": J[0] || (J[0] = (K) => tt($) ? $.value = K : null),
|
|
1588
|
-
class:
|
|
1588
|
+
class: R.$style.input,
|
|
1589
1589
|
type: "range",
|
|
1590
1590
|
max: e(f),
|
|
1591
1591
|
min: e(h),
|
|
1592
1592
|
step: e(c),
|
|
1593
|
-
disabled:
|
|
1594
|
-
}, e(nt)(
|
|
1593
|
+
disabled: R.disabled
|
|
1594
|
+
}, e(nt)(R.$attrs)), null, 16, vl), [
|
|
1595
1595
|
[ls, e($)]
|
|
1596
1596
|
]),
|
|
1597
1597
|
S("div", {
|
|
1598
|
-
class: p(
|
|
1598
|
+
class: p(R.$style.slider)
|
|
1599
1599
|
}, [
|
|
1600
1600
|
S("div", {
|
|
1601
|
-
class: p(
|
|
1601
|
+
class: p(R.$style.slider__inner)
|
|
1602
1602
|
}, [
|
|
1603
1603
|
S("div", {
|
|
1604
|
-
class: p([
|
|
1604
|
+
class: p([R.$style.slider__container, R.sliderClass])
|
|
1605
1605
|
}, [
|
|
1606
|
-
|
|
1606
|
+
R.hideTrack ? k("", !0) : (s(), _("div", {
|
|
1607
1607
|
key: 0,
|
|
1608
|
-
class: p(
|
|
1608
|
+
class: p(R.$style.slider__container__track)
|
|
1609
1609
|
}, null, 2)),
|
|
1610
|
-
|
|
1610
|
+
R.showTicks && !R.disabled ? (s(), _("div", {
|
|
1611
1611
|
key: 1,
|
|
1612
|
-
class: p(
|
|
1612
|
+
class: p(R.$style.slider__ticks)
|
|
1613
1613
|
}, [
|
|
1614
1614
|
(s(!0), _(he, null, ke(e(M)[1] + 1, (K) => (s(), _("span", {
|
|
1615
1615
|
key: K,
|
|
1616
|
-
class: p(
|
|
1616
|
+
class: p(R.hideTrack ? [R.tickClass] : { [R.$style.highlighted]: K - 1 <= e(M)[0], [R.tickClass]: K - 1 > e(M)[0] })
|
|
1617
1617
|
}, null, 2))), 128))
|
|
1618
1618
|
], 2)) : k("", !0)
|
|
1619
1619
|
], 2),
|
|
1620
1620
|
S("div", {
|
|
1621
|
-
class: p(
|
|
1621
|
+
class: p(R.$style.slider__thumb)
|
|
1622
1622
|
}, null, 2),
|
|
1623
|
-
|
|
1623
|
+
R.showThumbLabel && !R.disabled ? (s(), _("div", {
|
|
1624
1624
|
key: 0,
|
|
1625
|
-
class: p(
|
|
1625
|
+
class: p(R.$style.slider__thumb_label)
|
|
1626
1626
|
}, se(e(u)), 3)) : k("", !0)
|
|
1627
1627
|
], 2)
|
|
1628
1628
|
], 2)
|
|
1629
1629
|
], 2)
|
|
1630
1630
|
], 2)
|
|
1631
1631
|
], 2),
|
|
1632
|
-
|
|
1632
|
+
R.hideDetails ? k("", !0) : (s(), P(it, {
|
|
1633
1633
|
key: 0,
|
|
1634
1634
|
class: "pt-1",
|
|
1635
1635
|
"error-messages": e(y),
|
|
1636
1636
|
"success-messages": e(r),
|
|
1637
|
-
hint:
|
|
1637
|
+
hint: R.hint
|
|
1638
1638
|
}, null, 8, ["error-messages", "success-messages", "hint"]))
|
|
1639
1639
|
], 16));
|
|
1640
1640
|
}
|
|
@@ -1805,8 +1805,8 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1805
1805
|
{ [r.$style["icon-top"]]: r.iconTop, [r.$style.custom]: e(l) }
|
|
1806
1806
|
], "no-scrollbar overflow-auto"])
|
|
1807
1807
|
}, [
|
|
1808
|
-
(s(!0), _(he, null, ke(e(c), ({ title: n, description: $, state: M, loading: m },
|
|
1809
|
-
|
|
1808
|
+
(s(!0), _(he, null, ke(e(c), ({ title: n, description: $, state: M, loading: m }, B) => (s(), _(he, { key: B }, [
|
|
1809
|
+
B > 0 ? (s(), _("hr", {
|
|
1810
1810
|
key: 0,
|
|
1811
1811
|
class: p(r.$style.divider)
|
|
1812
1812
|
}, null, 2)) : k("", !0),
|
|
@@ -1819,15 +1819,15 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1819
1819
|
}
|
|
1820
1820
|
])
|
|
1821
1821
|
}, [
|
|
1822
|
-
D(r.$slots, "icon", G({ ref_for: !0 }, { state: M, index:
|
|
1822
|
+
D(r.$slots, "icon", G({ ref_for: !0 }, { state: M, index: B + 1 }), () => [
|
|
1823
1823
|
S("div", rr, [
|
|
1824
1824
|
e(l) ? (s(), P(lr, {
|
|
1825
1825
|
key: 0,
|
|
1826
|
-
index:
|
|
1826
|
+
index: B + 1,
|
|
1827
1827
|
state: M
|
|
1828
1828
|
}, null, 8, ["index", "state"])) : (s(), P(xl, {
|
|
1829
1829
|
key: 1,
|
|
1830
|
-
index:
|
|
1830
|
+
index: B + 1,
|
|
1831
1831
|
state: M
|
|
1832
1832
|
}, null, 8, ["index", "state"])),
|
|
1833
1833
|
m ? (s(), P(_t, {
|
|
@@ -1912,7 +1912,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1912
1912
|
setup(z, { emit: a }) {
|
|
1913
1913
|
st((Z) => ({
|
|
1914
1914
|
e6416b32: e(J),
|
|
1915
|
-
"0b4c229d": e(
|
|
1915
|
+
"0b4c229d": e(R),
|
|
1916
1916
|
"275d1172": e(I)
|
|
1917
1917
|
}));
|
|
1918
1918
|
const l = Qe(z, "modelValue"), d = z, u = a, {
|
|
@@ -1926,16 +1926,16 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1926
1926
|
noResize: $,
|
|
1927
1927
|
rowHeight: M,
|
|
1928
1928
|
errorMessages: m,
|
|
1929
|
-
successMessages:
|
|
1929
|
+
successMessages: B
|
|
1930
1930
|
} = pe(d), H = W(), O = W(), g = W(), F = W(), E = Xt(), I = A(() => t(f) ? `' ${t(f)} '` : '"\\200B"'), U = A(() => {
|
|
1931
1931
|
const Z = Number(t(M)), _e = Number(t(i)), Me = Number(t(n)), ye = {
|
|
1932
1932
|
minHeight: `${_e * Z + 0.75}rem`
|
|
1933
1933
|
};
|
|
1934
1934
|
return Me && (ye.maxHeight = `${Me * Z + 0.75}rem`), ye;
|
|
1935
|
-
}),
|
|
1935
|
+
}), R = W("0px"), J = W("0px");
|
|
1936
1936
|
Vt(H, (Z) => {
|
|
1937
1937
|
const [_e] = Z, { width: Me, left: ye } = _e.contentRect;
|
|
1938
|
-
w(
|
|
1938
|
+
w(R, `${Me + ye + 24}px`);
|
|
1939
1939
|
}), Vt(O, (Z) => {
|
|
1940
1940
|
const [_e] = Z, { width: Me, right: ye } = _e.contentRect;
|
|
1941
1941
|
w(J, `${Me + ye + 24}px`);
|
|
@@ -1947,7 +1947,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
1947
1947
|
Rt(r)
|
|
1948
1948
|
), { hasError: C, hasSuccess: te, hasMessages: Q } = rt(
|
|
1949
1949
|
m,
|
|
1950
|
-
|
|
1950
|
+
B
|
|
1951
1951
|
);
|
|
1952
1952
|
function fe() {
|
|
1953
1953
|
w(l, ""), u("click:clear");
|
|
@@ -2065,7 +2065,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
2065
2065
|
key: 0,
|
|
2066
2066
|
class: "pt-1 px-3",
|
|
2067
2067
|
"error-messages": e(m),
|
|
2068
|
-
"success-messages": e(
|
|
2068
|
+
"success-messages": e(B),
|
|
2069
2069
|
hint: Z.hint
|
|
2070
2070
|
}, null, 8, ["error-messages", "success-messages", "hint"]))
|
|
2071
2071
|
], 16));
|
|
@@ -2156,7 +2156,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
2156
2156
|
const $ = A(() => {
|
|
2157
2157
|
const C = t(f);
|
|
2158
2158
|
return C ? `' ${C} '` : '"\\200B"';
|
|
2159
|
-
}), M = W(), m = W(),
|
|
2159
|
+
}), M = W(), m = W(), B = W(), H = W(), O = W("0px"), g = W("0px"), { width: F } = ps(B);
|
|
2160
2160
|
Vt(M, (C) => {
|
|
2161
2161
|
const [te] = C, { width: Q, left: fe } = te.contentRect;
|
|
2162
2162
|
w(O, `${Q + fe}px`);
|
|
@@ -2167,7 +2167,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
2167
2167
|
const { hasError: E, hasSuccess: I, hasMessages: U } = rt(
|
|
2168
2168
|
r,
|
|
2169
2169
|
i
|
|
2170
|
-
), { focused:
|
|
2170
|
+
), { focused: R } = Ht(H), J = Dt(R, 500), K = Ot(
|
|
2171
2171
|
h,
|
|
2172
2172
|
l,
|
|
2173
2173
|
Rt(c),
|
|
@@ -2207,7 +2207,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
2207
2207
|
], 2)) : k("", !0),
|
|
2208
2208
|
S("div", {
|
|
2209
2209
|
ref_key: "innerWrapper",
|
|
2210
|
-
ref:
|
|
2210
|
+
ref: B,
|
|
2211
2211
|
class: "flex flex-1 overflow-hidden",
|
|
2212
2212
|
onClick: te[3] || (te[3] = (Q) => u("focus-input", Q))
|
|
2213
2213
|
}, [
|
|
@@ -2347,17 +2347,17 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
2347
2347
|
return a({
|
|
2348
2348
|
onOpen: n,
|
|
2349
2349
|
onClose: $
|
|
2350
|
-
}), (
|
|
2350
|
+
}), (B, H) => {
|
|
2351
2351
|
var O;
|
|
2352
2352
|
return s(), _("div", {
|
|
2353
2353
|
ref_key: "activator",
|
|
2354
2354
|
ref: c,
|
|
2355
|
-
class: p(
|
|
2355
|
+
class: p(B.$style.wrapper),
|
|
2356
2356
|
"data-tooltip-disabled": e(h),
|
|
2357
2357
|
onMouseover: H[4] || (H[4] = (g) => e(n)()),
|
|
2358
2358
|
onMouseleave: H[5] || (H[5] = (g) => e($)())
|
|
2359
2359
|
}, [
|
|
2360
|
-
D(
|
|
2360
|
+
D(B.$slots, "activator", {
|
|
2361
2361
|
open: e(r),
|
|
2362
2362
|
close: e($)
|
|
2363
2363
|
}),
|
|
@@ -2370,9 +2370,9 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
2370
2370
|
ref_key: "tooltip",
|
|
2371
2371
|
ref: y,
|
|
2372
2372
|
class: p([
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2373
|
+
B.$style.tooltip,
|
|
2374
|
+
B.tooltipClass,
|
|
2375
|
+
B.$style[`tooltip__${((O = e(f)) == null ? void 0 : O.strategy) ?? "absolute"}`]
|
|
2376
2376
|
]),
|
|
2377
2377
|
role: "tooltip"
|
|
2378
2378
|
}, [
|
|
@@ -2389,18 +2389,18 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
2389
2389
|
default: N(() => [
|
|
2390
2390
|
e(r) ? (s(), _("div", {
|
|
2391
2391
|
key: "tooltip",
|
|
2392
|
-
class: p(
|
|
2392
|
+
class: p(B.$style.base),
|
|
2393
2393
|
role: "tooltip-content",
|
|
2394
|
-
onMouseover: H[0] || (H[0] = (g) =>
|
|
2395
|
-
onMouseleave: H[1] || (H[1] = (g) =>
|
|
2394
|
+
onMouseover: H[0] || (H[0] = (g) => B.persistOnTooltipHover && e(n)()),
|
|
2395
|
+
onMouseleave: H[1] || (H[1] = (g) => B.persistOnTooltipHover && e($)())
|
|
2396
2396
|
}, [
|
|
2397
|
-
D(
|
|
2398
|
-
Ae(se(
|
|
2397
|
+
D(B.$slots, "default", {}, () => [
|
|
2398
|
+
Ae(se(B.text), 1)
|
|
2399
2399
|
])
|
|
2400
2400
|
], 34)) : k("", !0),
|
|
2401
|
-
|
|
2401
|
+
B.hideArrow ? k("", !0) : (s(), _("span", {
|
|
2402
2402
|
key: 1,
|
|
2403
|
-
class: p([
|
|
2403
|
+
class: p([B.$style.arrow, { [B.$style.arrow__open]: e(r) }]),
|
|
2404
2404
|
"data-popper-arrow": ""
|
|
2405
2405
|
}, null, 2))
|
|
2406
2406
|
]),
|
|
@@ -2586,7 +2586,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
2586
2586
|
const g = !t(y);
|
|
2587
2587
|
w(y, g), i(g);
|
|
2588
2588
|
}
|
|
2589
|
-
})),
|
|
2589
|
+
})), B = A(() => t(c) ? {
|
|
2590
2590
|
enterFromClass: "translate-y-full",
|
|
2591
2591
|
enterActiveClass: "ease-out duration-150",
|
|
2592
2592
|
enterToClass: "translate-y-0",
|
|
@@ -2636,7 +2636,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
2636
2636
|
]),
|
|
2637
2637
|
_: 1
|
|
2638
2638
|
}),
|
|
2639
|
-
L(pt, be($e(e(
|
|
2639
|
+
L(pt, be($e(e(B))), {
|
|
2640
2640
|
default: N(() => [
|
|
2641
2641
|
e(r) && e(y) ? (s(), _("div", {
|
|
2642
2642
|
key: 0,
|
|
@@ -3253,7 +3253,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3253
3253
|
renderedData: $,
|
|
3254
3254
|
isOpen: M,
|
|
3255
3255
|
menuWidth: m,
|
|
3256
|
-
getText:
|
|
3256
|
+
getText: B,
|
|
3257
3257
|
getIdentifier: H,
|
|
3258
3258
|
isActiveItem: O,
|
|
3259
3259
|
highlightedIndex: g,
|
|
@@ -3269,7 +3269,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3269
3269
|
value: y,
|
|
3270
3270
|
menuRef: f,
|
|
3271
3271
|
autoSelectFirst: l.autoSelectFirst
|
|
3272
|
-
}), I = A(() => l.variant === "outlined"), U = A(() => (t(M) || !!t(y)) && t(I)),
|
|
3272
|
+
}), I = A(() => l.variant === "outlined"), U = A(() => (t(M) || !!t(y)) && t(I)), R = A(() => ({
|
|
3273
3273
|
style: i.style,
|
|
3274
3274
|
ref: i.ref
|
|
3275
3275
|
}));
|
|
@@ -3347,7 +3347,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3347
3347
|
}, [
|
|
3348
3348
|
D(V.$slots, "selection.prepend", be($e({ item: e(y) }))),
|
|
3349
3349
|
D(V.$slots, "selection", be($e({ item: e(y) })), () => [
|
|
3350
|
-
Ae(se(e(
|
|
3350
|
+
Ae(se(e(B)(e(y))), 1)
|
|
3351
3351
|
])
|
|
3352
3352
|
], 2)) : k("", !0),
|
|
3353
3353
|
V.clearable && e(y) && !V.disabled ? (s(), _("span", {
|
|
@@ -3398,7 +3398,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3398
3398
|
key: 0,
|
|
3399
3399
|
class: [V.$style.menu, V.menuClass],
|
|
3400
3400
|
style: { width: `${te}px`, minWidth: e(m) }
|
|
3401
|
-
}, e(
|
|
3401
|
+
}, e(R), {
|
|
3402
3402
|
onScroll: C[3] || (C[3] = //@ts-ignore
|
|
3403
3403
|
(...Q) => e(i).onScroll && e(i).onScroll(...Q)),
|
|
3404
3404
|
onKeydown: [
|
|
@@ -3431,7 +3431,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3431
3431
|
]),
|
|
3432
3432
|
default: N(() => [
|
|
3433
3433
|
D(V.$slots, "item", G({ ref_for: !0 }, { disabled: V.disabled, item: Q, active: e(O)(Q) }), () => [
|
|
3434
|
-
Ae(se(e(
|
|
3434
|
+
Ae(se(e(B)(Q)), 1)
|
|
3435
3435
|
])
|
|
3436
3436
|
]),
|
|
3437
3437
|
_: 2
|
|
@@ -3496,7 +3496,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3496
3496
|
}), r = A(() => {
|
|
3497
3497
|
const I = [];
|
|
3498
3498
|
for (let U = 1; U <= t(y); U++)
|
|
3499
|
-
I.push({ page: U, text:
|
|
3499
|
+
I.push({ page: U, text: B(U) });
|
|
3500
3500
|
return I;
|
|
3501
3501
|
}), i = A(() => {
|
|
3502
3502
|
const { total: I } = t(u);
|
|
@@ -3514,10 +3514,10 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3514
3514
|
page: I
|
|
3515
3515
|
});
|
|
3516
3516
|
}
|
|
3517
|
-
function
|
|
3518
|
-
const { limit: U, total:
|
|
3517
|
+
function B(I) {
|
|
3518
|
+
const { limit: U, total: R } = t(u);
|
|
3519
3519
|
return `${Ft((I - 1) * U + 1)} - ${Ft(
|
|
3520
|
-
Math.min(I * U,
|
|
3520
|
+
Math.min(I * U, R)
|
|
3521
3521
|
)}`;
|
|
3522
3522
|
}
|
|
3523
3523
|
function H(I) {
|
|
@@ -3546,7 +3546,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3546
3546
|
}, "Rows per page:", 2),
|
|
3547
3547
|
L(ns, {
|
|
3548
3548
|
modelValue: e(c),
|
|
3549
|
-
"onUpdate:modelValue": U[0] || (U[0] = (
|
|
3549
|
+
"onUpdate:modelValue": U[0] || (U[0] = (R) => tt(c) ? c.value = R : null),
|
|
3550
3550
|
options: e(h),
|
|
3551
3551
|
disabled: I.loading || I.disablePerPage,
|
|
3552
3552
|
"label-class": "!text-xs !min-h-8",
|
|
@@ -3566,7 +3566,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3566
3566
|
e(r).length > 0 ? (s(), P(ns, {
|
|
3567
3567
|
key: 0,
|
|
3568
3568
|
modelValue: e(n),
|
|
3569
|
-
"onUpdate:modelValue": U[1] || (U[1] = (
|
|
3569
|
+
"onUpdate:modelValue": U[1] || (U[1] = (R) => tt(n) ? n.value = R : null),
|
|
3570
3570
|
options: e(r),
|
|
3571
3571
|
disabled: I.loading,
|
|
3572
3572
|
"label-class": "!text-xs !min-h-8",
|
|
@@ -3588,7 +3588,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3588
3588
|
disabled: !e($) || I.loading,
|
|
3589
3589
|
variant: "text",
|
|
3590
3590
|
icon: "",
|
|
3591
|
-
onClick: U[2] || (U[2] = (
|
|
3591
|
+
onClick: U[2] || (U[2] = (R) => F())
|
|
3592
3592
|
}, {
|
|
3593
3593
|
default: N(() => [
|
|
3594
3594
|
L(ee, { name: "lu-chevrons-left" })
|
|
@@ -3600,7 +3600,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3600
3600
|
disabled: !e($) || I.loading,
|
|
3601
3601
|
variant: "text",
|
|
3602
3602
|
icon: "",
|
|
3603
|
-
onClick: U[3] || (U[3] = (
|
|
3603
|
+
onClick: U[3] || (U[3] = (R) => O())
|
|
3604
3604
|
}, {
|
|
3605
3605
|
default: N(() => [
|
|
3606
3606
|
L(ee, { name: "lu-chevron-left" })
|
|
@@ -3612,7 +3612,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3612
3612
|
disabled: !e(M) || I.loading,
|
|
3613
3613
|
variant: "text",
|
|
3614
3614
|
icon: "",
|
|
3615
|
-
onClick: U[4] || (U[4] = (
|
|
3615
|
+
onClick: U[4] || (U[4] = (R) => g())
|
|
3616
3616
|
}, {
|
|
3617
3617
|
default: N(() => [
|
|
3618
3618
|
L(ee, { name: "lu-chevron-right" })
|
|
@@ -3624,7 +3624,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3624
3624
|
disabled: !e(M) || I.loading,
|
|
3625
3625
|
variant: "text",
|
|
3626
3626
|
icon: "",
|
|
3627
|
-
onClick: U[5] || (U[5] = (
|
|
3627
|
+
onClick: U[5] || (U[5] = (R) => E())
|
|
3628
3628
|
}, {
|
|
3629
3629
|
default: N(() => [
|
|
3630
3630
|
L(ee, { name: "lu-chevrons-right" })
|
|
@@ -3889,7 +3889,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3889
3889
|
function $(o) {
|
|
3890
3890
|
return o.startsWith("header.");
|
|
3891
3891
|
}
|
|
3892
|
-
const { stick: M, table: m, tableScroller:
|
|
3892
|
+
const { stick: M, table: m, tableScroller: B } = Bs(
|
|
3893
3893
|
f,
|
|
3894
3894
|
t(i)
|
|
3895
3895
|
), H = A(() => l.expanded && u["expanded-item"]), O = A(
|
|
@@ -3897,7 +3897,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
3897
3897
|
), g = A(() => l.globalItemsPerPage !== void 0 ? l.globalItemsPerPage : t(r.globalItemsPerPage)), F = (o) => Object.keys(o), E = A(() => {
|
|
3898
3898
|
const o = l.group;
|
|
3899
3899
|
return o ? Array.isArray(o) ? o : [o] : [];
|
|
3900
|
-
}), I = A(() => t(E).join(":")), U = A(() => !!t(I)),
|
|
3900
|
+
}), I = A(() => t(E).join(":")), U = A(() => !!t(I)), R = A(() => {
|
|
3901
3901
|
const o = l.cols ?? F(l.rows[0] ?? {}).map(
|
|
3902
3902
|
(j) => ({
|
|
3903
3903
|
key: j,
|
|
@@ -4041,7 +4041,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4041
4041
|
const o = t(K);
|
|
4042
4042
|
return o ? o.length > 0 && !t(xe) : !1;
|
|
4043
4043
|
}), We = A(() => t(qe).length === 0), X = A(() => {
|
|
4044
|
-
let o = t(
|
|
4044
|
+
let o = t(R).length;
|
|
4045
4045
|
return t(K) && o++, o;
|
|
4046
4046
|
}), re = (o) => o in t(ze);
|
|
4047
4047
|
function me(o) {
|
|
@@ -4246,7 +4246,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4246
4246
|
}, null, 8, ["modelValue", "dense", "loading", "disable-per-page"])) : k("", !0),
|
|
4247
4247
|
S("div", {
|
|
4248
4248
|
ref_key: "tableScroller",
|
|
4249
|
-
ref:
|
|
4249
|
+
ref: B,
|
|
4250
4250
|
class: p(o.$style.scroller)
|
|
4251
4251
|
}, [
|
|
4252
4252
|
S("table", {
|
|
@@ -4261,7 +4261,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4261
4261
|
"capitalize-headers": !o.cols,
|
|
4262
4262
|
colspan: e(X),
|
|
4263
4263
|
"column-attr": o.columnAttr,
|
|
4264
|
-
columns: e(
|
|
4264
|
+
columns: e(R),
|
|
4265
4265
|
dense: o.dense,
|
|
4266
4266
|
"disable-check-all": !((T = e(qe)) != null && T.length),
|
|
4267
4267
|
"is-all-selected": e(xe),
|
|
@@ -4287,7 +4287,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4287
4287
|
"capitalize-headers": !o.cols,
|
|
4288
4288
|
colspan: e(X),
|
|
4289
4289
|
"column-attr": o.columnAttr,
|
|
4290
|
-
columns: e(
|
|
4290
|
+
columns: e(R),
|
|
4291
4291
|
dense: o.dense,
|
|
4292
4292
|
"no-data": e(We),
|
|
4293
4293
|
selectable: !!e(K),
|
|
@@ -4338,7 +4338,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4338
4338
|
onClick: (ae) => v(ae, j[e(C)], de)
|
|
4339
4339
|
}, null, 8, ["data-cy", "model-value", "disabled", "size", "onUpdate:modelValue", "onClick"])
|
|
4340
4340
|
], 2)) : k("", !0),
|
|
4341
|
-
(s(!0), _(he, null, ke(e(
|
|
4341
|
+
(s(!0), _(he, null, ke(e(R), (ae, Te) => (s(), _("td", {
|
|
4342
4342
|
key: Te,
|
|
4343
4343
|
class: p([
|
|
4344
4344
|
o.$style.td,
|
|
@@ -4719,12 +4719,12 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4719
4719
|
emits: ["update:modelValue"],
|
|
4720
4720
|
setup(z, { emit: a }) {
|
|
4721
4721
|
const l = z, d = a, { color: u, grow: f, modelValue: h, disabled: c, vertical: y, align: r, indicatorPosition: i } = pe(l), n = W(), $ = W(), M = W(), m = W(!1);
|
|
4722
|
-
function
|
|
4723
|
-
return X.flatMap((re) => re.type === he && Array.isArray(re.children) && re.children.length > 0 ?
|
|
4722
|
+
function B(X) {
|
|
4723
|
+
return X.flatMap((re) => re.type === he && Array.isArray(re.children) && re.children.length > 0 ? B(re.children.filter(Pt)) : [re]).flat();
|
|
4724
4724
|
}
|
|
4725
4725
|
const H = Je(), O = A(() => {
|
|
4726
4726
|
var Re;
|
|
4727
|
-
const X = ((Re = H.default) == null ? void 0 : Re.call(H)) ?? [], re =
|
|
4727
|
+
const X = ((Re = H.default) == null ? void 0 : Re.call(H)) ?? [], re = B(X), me = t(n), Ce = {
|
|
4728
4728
|
color: t(u),
|
|
4729
4729
|
grow: t(f),
|
|
4730
4730
|
disabled: t(c),
|
|
@@ -4782,7 +4782,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4782
4782
|
});
|
|
4783
4783
|
}
|
|
4784
4784
|
const U = Os();
|
|
4785
|
-
function
|
|
4785
|
+
function R(X = !1) {
|
|
4786
4786
|
const re = t(O).filter(
|
|
4787
4787
|
(me) => !me.props.disabled
|
|
4788
4788
|
);
|
|
@@ -4798,9 +4798,9 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4798
4798
|
I();
|
|
4799
4799
|
}
|
|
4800
4800
|
bt(() => {
|
|
4801
|
-
t(h) === void 0 &&
|
|
4801
|
+
t(h) === void 0 && R();
|
|
4802
4802
|
}), ge(F, () => {
|
|
4803
|
-
|
|
4803
|
+
R(!0);
|
|
4804
4804
|
});
|
|
4805
4805
|
const { width: J, height: K } = zt($), { width: V, height: C } = zt(M), { arrivedState: te, x: Q, y: fe } = js($, { behavior: "smooth" }), { top: ne, bottom: x, left: ze, right: Z } = pe(te), { trigger: _e, stop: Me } = xt(
|
|
4806
4806
|
[V, J],
|
|
@@ -4938,7 +4938,7 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4938
4938
|
},
|
|
4939
4939
|
emits: ["click"],
|
|
4940
4940
|
setup(z, { emit: a }) {
|
|
4941
|
-
const l = z, d = a, u = Je(), { target: f, grow: h, active: c, activeClass: y, disabled: r, vertical: i, align: n, value: $, indicatorPosition: M } = pe(l), m = Xt(),
|
|
4941
|
+
const l = z, d = a, u = Je(), { target: f, grow: h, active: c, activeClass: y, disabled: r, vertical: i, align: n, value: $, indicatorPosition: M } = pe(l), m = Xt(), B = A(() => t(f) === "_self"), H = A(() => [
|
|
4942
4942
|
m.tab,
|
|
4943
4943
|
m[`tab--${t(n)}`],
|
|
4944
4944
|
m[`tab-indicator--${t(M)}`],
|
|
@@ -4963,8 +4963,8 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4963
4963
|
}, g.$attrs), Ke({ _: 2 }, [
|
|
4964
4964
|
ke(u, (I, U) => ({
|
|
4965
4965
|
name: U,
|
|
4966
|
-
fn: N((
|
|
4967
|
-
D(g.$slots, U, be($e(
|
|
4966
|
+
fn: N((R) => [
|
|
4967
|
+
D(g.$slots, U, be($e(R)))
|
|
4968
4968
|
])
|
|
4969
4969
|
}))
|
|
4970
4970
|
]), 1040, ["class"])) : g.link ? (s(), P(E, {
|
|
@@ -4974,23 +4974,23 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
4974
4974
|
"exact-path": g.exactPath,
|
|
4975
4975
|
custom: ""
|
|
4976
4976
|
}, {
|
|
4977
|
-
default: N(({ href: I, navigate: U, isActive:
|
|
4977
|
+
default: N(({ href: I, navigate: U, isActive: R, isExactActive: J }) => [
|
|
4978
4978
|
L(we, G({
|
|
4979
4979
|
class: [
|
|
4980
4980
|
...e(H),
|
|
4981
4981
|
{
|
|
4982
|
-
[`${e(m)["tab--active"]} active-tab-link`]: g.exact ? J :
|
|
4982
|
+
[`${e(m)["tab--active"]} active-tab-link`]: g.exact ? J : R
|
|
4983
4983
|
}
|
|
4984
4984
|
],
|
|
4985
|
-
color: e(c) || (g.exact ? J :
|
|
4986
|
-
href: e(
|
|
4985
|
+
color: e(c) || (g.exact ? J : R) ? g.color : void 0,
|
|
4986
|
+
href: e(B) ? void 0 : I,
|
|
4987
4987
|
target: e(f),
|
|
4988
4988
|
role: "tab",
|
|
4989
4989
|
tag: "a"
|
|
4990
4990
|
}, g.$attrs, {
|
|
4991
4991
|
variant: "text",
|
|
4992
4992
|
onClick: (K) => {
|
|
4993
|
-
O(), e(
|
|
4993
|
+
O(), e(B) && U(K);
|
|
4994
4994
|
}
|
|
4995
4995
|
}), Ke({ _: 2 }, [
|
|
4996
4996
|
ke(u, (K, V) => ({
|
|
@@ -5013,8 +5013,8 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
5013
5013
|
}), Ke({ _: 2 }, [
|
|
5014
5014
|
ke(u, (I, U) => ({
|
|
5015
5015
|
name: U,
|
|
5016
|
-
fn: N((
|
|
5017
|
-
D(g.$slots, U, be($e(
|
|
5016
|
+
fn: N((R) => [
|
|
5017
|
+
D(g.$slots, U, be($e(R)))
|
|
5018
5018
|
])
|
|
5019
5019
|
}))
|
|
5020
5020
|
]), 1040, ["class", "color"]));
|
|
@@ -5055,8 +5055,8 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
5055
5055
|
return n.flatMap(($) => $.type === he && Array.isArray($.children) && $.children.length > 0 ? h($.children.filter(Pt)) : [$]).flat();
|
|
5056
5056
|
}
|
|
5057
5057
|
const c = A(() => {
|
|
5058
|
-
var
|
|
5059
|
-
const n = ((
|
|
5058
|
+
var B;
|
|
5059
|
+
const n = ((B = l.default) == null ? void 0 : B.call(l)) ?? [], $ = h(n);
|
|
5060
5060
|
let M = !1;
|
|
5061
5061
|
const m = $.map((H, O) => {
|
|
5062
5062
|
var E;
|
|
@@ -5213,8 +5213,8 @@ const Ls = ["height", "width"], Ns = /* @__PURE__ */ Y({
|
|
|
5213
5213
|
const l = z, d = a, { modelValue: u, multiple: f } = pe(l), h = W(), c = Je(), y = A(() => {
|
|
5214
5214
|
var M;
|
|
5215
5215
|
const i = ((M = c.default) == null ? void 0 : M.call(c)) ?? [], n = t(h), $ = t(f);
|
|
5216
|
-
return i.map((m,
|
|
5217
|
-
const H = $ && Array.isArray(n) ? n.includes(
|
|
5216
|
+
return i.map((m, B) => {
|
|
5217
|
+
const H = $ && Array.isArray(n) ? n.includes(B) : n === B;
|
|
5218
5218
|
return {
|
|
5219
5219
|
...m,
|
|
5220
5220
|
props: {
|
|
@@ -5454,8 +5454,8 @@ const M0 = /* @__PURE__ */ Y({
|
|
|
5454
5454
|
emits: ["update:board"],
|
|
5455
5455
|
setup(z, { emit: a }) {
|
|
5456
5456
|
const l = z, d = a;
|
|
5457
|
-
function u(
|
|
5458
|
-
return new Kt({ h:
|
|
5457
|
+
function u(B) {
|
|
5458
|
+
return new Kt({ h: B, s: 1, v: 1 }).hexString;
|
|
5459
5459
|
}
|
|
5460
5460
|
const f = Yt({
|
|
5461
5461
|
hexString: u(l.color.hue),
|
|
@@ -5472,43 +5472,43 @@ const M0 = /* @__PURE__ */ Y({
|
|
|
5472
5472
|
handleClick: $,
|
|
5473
5473
|
onMouseDown: M
|
|
5474
5474
|
} = bs(m);
|
|
5475
|
-
function m(
|
|
5475
|
+
function m(B, H) {
|
|
5476
5476
|
if (!n)
|
|
5477
5477
|
return;
|
|
5478
5478
|
const O = n.vnode.el, g = O == null ? void 0 : O.getBoundingClientRect();
|
|
5479
5479
|
if (!g)
|
|
5480
5480
|
return;
|
|
5481
5481
|
const { width: F, height: E, left: I, top: U } = g;
|
|
5482
|
-
let
|
|
5483
|
-
|
|
5484
|
-
const K =
|
|
5485
|
-
w(c,
|
|
5482
|
+
let R = B - I, J = H - U;
|
|
5483
|
+
R = mt(R, 0, F), J = mt(J, 0, E);
|
|
5484
|
+
const K = R / F, V = mt(-(J / E) + 1, 0, 1);
|
|
5485
|
+
w(c, R / F), w(h, J / E), f.saturation = K, f.brightness = V, d("update:board", { saturation: K, brightness: V });
|
|
5486
5486
|
}
|
|
5487
5487
|
return bt(() => {
|
|
5488
5488
|
i();
|
|
5489
5489
|
}), Jt(
|
|
5490
5490
|
() => l.color,
|
|
5491
|
-
(
|
|
5492
|
-
f.hexString = u(
|
|
5491
|
+
(B) => {
|
|
5492
|
+
f.hexString = u(B.hue), f.saturation = B.saturation, f.brightness = B.brightness, i();
|
|
5493
5493
|
},
|
|
5494
5494
|
{ deep: !0 }
|
|
5495
|
-
), (
|
|
5495
|
+
), (B, H) => (s(), _("div", G({
|
|
5496
5496
|
ref_key: "wrapper",
|
|
5497
5497
|
ref: r,
|
|
5498
|
-
class: ["rui-color-board",
|
|
5499
|
-
},
|
|
5498
|
+
class: ["rui-color-board", B.$style.saturation]
|
|
5499
|
+
}, B.$attrs, {
|
|
5500
5500
|
style: { backgroundColor: e(f).hexString },
|
|
5501
5501
|
onClick: H[0] || (H[0] = (O) => e($)(O)),
|
|
5502
5502
|
onMousedown: H[1] || (H[1] = (O) => e(M)(O))
|
|
5503
5503
|
}), [
|
|
5504
5504
|
S("div", {
|
|
5505
|
-
class: p(
|
|
5505
|
+
class: p(B.$style.saturation__white)
|
|
5506
5506
|
}, null, 2),
|
|
5507
5507
|
S("div", {
|
|
5508
|
-
class: p(
|
|
5508
|
+
class: p(B.$style.saturation__black)
|
|
5509
5509
|
}, null, 2),
|
|
5510
5510
|
S("div", {
|
|
5511
|
-
class: p(
|
|
5511
|
+
class: p(B.$style.cursor),
|
|
5512
5512
|
style: Ge(e(y))
|
|
5513
5513
|
}, null, 6)
|
|
5514
5514
|
], 16));
|
|
@@ -5532,8 +5532,8 @@ const M0 = /* @__PURE__ */ Y({
|
|
|
5532
5532
|
setup(z) {
|
|
5533
5533
|
const a = Qe(z, "modelValue"), l = W();
|
|
5534
5534
|
function d($) {
|
|
5535
|
-
const M = D0 / 2, m = $ - M,
|
|
5536
|
-
return { lowerLimit: M, upperLimit: m, availableWidth:
|
|
5535
|
+
const M = D0 / 2, m = $ - M, B = m - M;
|
|
5536
|
+
return { lowerLimit: M, upperLimit: m, availableWidth: B };
|
|
5537
5537
|
}
|
|
5538
5538
|
const u = W("");
|
|
5539
5539
|
function f() {
|
|
@@ -5548,8 +5548,8 @@ const M0 = /* @__PURE__ */ Y({
|
|
|
5548
5548
|
const $ = c.vnode.el, M = $ == null ? void 0 : $.getBoundingClientRect();
|
|
5549
5549
|
if (!M)
|
|
5550
5550
|
return 0;
|
|
5551
|
-
const m = M.width, { lowerLimit:
|
|
5552
|
-
return `calc(${Ve(g / 360 * (H / m) * 100)}% + ${
|
|
5551
|
+
const m = M.width, { lowerLimit: B, availableWidth: H } = d(m), O = t(a), g = O === 360 ? 360 : O % 360;
|
|
5552
|
+
return `calc(${Ve(g / 360 * (H / m) * 100)}% + ${B}px)`;
|
|
5553
5553
|
}
|
|
5554
5554
|
function r($) {
|
|
5555
5555
|
if (!c)
|
|
@@ -5557,9 +5557,9 @@ const M0 = /* @__PURE__ */ Y({
|
|
|
5557
5557
|
const M = c.vnode.el, m = M == null ? void 0 : M.getBoundingClientRect();
|
|
5558
5558
|
if (!m)
|
|
5559
5559
|
return;
|
|
5560
|
-
let
|
|
5560
|
+
let B = $ - m.left;
|
|
5561
5561
|
const { lowerLimit: H, upperLimit: O, availableWidth: g } = d(m.width);
|
|
5562
|
-
|
|
5562
|
+
B = mt(B, H, O), w(a, Math.round((B - H) / g * 360));
|
|
5563
5563
|
}
|
|
5564
5564
|
const {
|
|
5565
5565
|
handleClick: i,
|
|
@@ -5874,7 +5874,7 @@ const M0 = /* @__PURE__ */ Y({
|
|
|
5874
5874
|
w(r, m), y(m);
|
|
5875
5875
|
}
|
|
5876
5876
|
}));
|
|
5877
|
-
return (m,
|
|
5877
|
+
return (m, B) => (s(), _("div", null, [
|
|
5878
5878
|
D(m.$slots, "activator", be($e({ open: r.value, attrs: e(M) }))),
|
|
5879
5879
|
(s(), P(Bt, { to: "body" }, [
|
|
5880
5880
|
m.overlay ? (s(), P(pt, {
|
|
@@ -5890,7 +5890,7 @@ const M0 = /* @__PURE__ */ Y({
|
|
|
5890
5890
|
r.value ? (s(), _("div", {
|
|
5891
5891
|
key: 0,
|
|
5892
5892
|
class: p(m.$style.overlay),
|
|
5893
|
-
onClick:
|
|
5893
|
+
onClick: B[0] || (B[0] = Ie((H) => i(), ["stop"]))
|
|
5894
5894
|
}, null, 2)) : k("", !0)
|
|
5895
5895
|
]),
|
|
5896
5896
|
_: 1
|