@starasia/admin 14.31.0 → 14.33.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/index.cjs.js +16 -16
- package/dist/index.es.js +455 -452
- package/dist/index.umd.js +16 -16
- package/dist/types/menu.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -25,13 +25,13 @@ import { searchParamsToObject as yr } from "@starasia/http";
|
|
|
25
25
|
export * from "@starasia/http";
|
|
26
26
|
import { Input as Wt } from "@starasia/input";
|
|
27
27
|
export * from "@starasia/input";
|
|
28
|
-
import { Menu as Ze, MenuButton as Ge, MenuLists as qe, MenuHeading as bo, MenuBody as Ue, MenuItem as
|
|
28
|
+
import { Menu as Ze, MenuButton as Ge, MenuLists as qe, MenuHeading as bo, MenuBody as Ue, MenuItem as Xe, MenuFooter as ln } from "@starasia/menu";
|
|
29
29
|
export * from "@starasia/menu";
|
|
30
30
|
import { Pagination as cn } from "@starasia/pagination";
|
|
31
31
|
export * from "@starasia/pagination";
|
|
32
32
|
import { storage as Ar } from "@starasia/storage";
|
|
33
33
|
export * from "@starasia/storage";
|
|
34
|
-
import { Tr as
|
|
34
|
+
import { Tr as nt, Td as Ve, Table as dr, Thead as vi, Th as Bt, Tbody as Jr, useColumnWidths as xo, Tfoot as vo } from "@starasia/table";
|
|
35
35
|
export * from "@starasia/table";
|
|
36
36
|
export * from "@starasia/tabs";
|
|
37
37
|
import { Textarea as Co } from "@starasia/textarea";
|
|
@@ -424,28 +424,29 @@ const jo = "4.5rem", Zo = "var(--app-header-height, 4rem)", Mi = (t) => t ? jo :
|
|
|
424
424
|
function Hn({
|
|
425
425
|
icon: t,
|
|
426
426
|
label: r,
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
427
|
+
tooltip: n = r,
|
|
428
|
+
active: o = !1,
|
|
429
|
+
badge: i,
|
|
430
|
+
showLabel: l = !0,
|
|
431
|
+
onClick: c
|
|
431
432
|
}) {
|
|
432
|
-
const [
|
|
433
|
-
return /* @__PURE__ */ e(Te, { fluid: !0, label:
|
|
433
|
+
const [s, a] = B(!1);
|
|
434
|
+
return /* @__PURE__ */ e(Te, { fluid: !0, label: n, position: "right", children: /* @__PURE__ */ u(
|
|
434
435
|
h,
|
|
435
436
|
{
|
|
436
437
|
as: "button",
|
|
437
|
-
onClick:
|
|
438
|
-
onMouseEnter: () =>
|
|
439
|
-
onMouseLeave: () =>
|
|
440
|
-
"aria-label":
|
|
441
|
-
"aria-current":
|
|
438
|
+
onClick: c,
|
|
439
|
+
onMouseEnter: () => a(!0),
|
|
440
|
+
onMouseLeave: () => a(!1),
|
|
441
|
+
"aria-label": n,
|
|
442
|
+
"aria-current": o ? "page" : void 0,
|
|
442
443
|
fullWidth: !0,
|
|
443
444
|
direction: "column",
|
|
444
445
|
align: "center",
|
|
445
446
|
gap: "spacing-2",
|
|
446
447
|
paddingBlock: "xs",
|
|
447
448
|
style: {
|
|
448
|
-
color:
|
|
449
|
+
color: o ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)"
|
|
449
450
|
},
|
|
450
451
|
children: [
|
|
451
452
|
/* @__PURE__ */ u(
|
|
@@ -457,17 +458,17 @@ function Hn({
|
|
|
457
458
|
justify: "center",
|
|
458
459
|
width: "width-32",
|
|
459
460
|
height: "height-32",
|
|
460
|
-
borderRadius:
|
|
461
|
+
borderRadius: o ? "rounded-sm" : "rounded-md",
|
|
461
462
|
borderWidth: "border",
|
|
462
463
|
borderStyle: "border-solid",
|
|
463
|
-
bg:
|
|
464
|
+
bg: o ? "white" : s ? "neutral" : void 0,
|
|
464
465
|
style: {
|
|
465
466
|
// Selalu ditulis — lihat catatan borderColor di baris menu AppLayout.
|
|
466
|
-
borderColor:
|
|
467
|
+
borderColor: o ? "var(--sa-border-subtle, #0b120e24)" : "transparent"
|
|
467
468
|
},
|
|
468
469
|
children: [
|
|
469
470
|
/* @__PURE__ */ e(F, { name: t, size: "sm" }),
|
|
470
|
-
|
|
471
|
+
i && !l && // Rail compact hanya 44px — badge angka akan keluar dari rail,
|
|
471
472
|
// jadi diganti dot (nilai lengkap tetap di badge item panel).
|
|
472
473
|
/* @__PURE__ */ e(
|
|
473
474
|
h,
|
|
@@ -484,7 +485,7 @@ function Hn({
|
|
|
484
485
|
children: /* @__PURE__ */ e(gi, { tone: "error", variant: "solid", size: "xs" })
|
|
485
486
|
}
|
|
486
487
|
),
|
|
487
|
-
|
|
488
|
+
i && l && /* @__PURE__ */ e(
|
|
488
489
|
h,
|
|
489
490
|
{
|
|
490
491
|
position: "absolute",
|
|
@@ -493,8 +494,8 @@ function Hn({
|
|
|
493
494
|
children: /* @__PURE__ */ e(
|
|
494
495
|
Zt,
|
|
495
496
|
{
|
|
496
|
-
text: String(
|
|
497
|
-
variant:
|
|
497
|
+
text: String(i.value),
|
|
498
|
+
variant: i.variant ?? "info",
|
|
498
499
|
size: "xs",
|
|
499
500
|
border: !0
|
|
500
501
|
}
|
|
@@ -504,12 +505,12 @@ function Hn({
|
|
|
504
505
|
]
|
|
505
506
|
}
|
|
506
507
|
),
|
|
507
|
-
|
|
508
|
+
l && /* @__PURE__ */ e(
|
|
508
509
|
w,
|
|
509
510
|
{
|
|
510
511
|
as: "span",
|
|
511
512
|
fontSize: "xs",
|
|
512
|
-
fontWeight:
|
|
513
|
+
fontWeight: o ? "medium" : "normal",
|
|
513
514
|
textAlign: "center",
|
|
514
515
|
truncate: !0,
|
|
515
516
|
style: { display: "block", maxWidth: "100%", color: "inherit" },
|
|
@@ -616,6 +617,7 @@ function Go({
|
|
|
616
617
|
{
|
|
617
618
|
icon: g.icon,
|
|
618
619
|
label: g.label,
|
|
620
|
+
tooltip: g.tooltip,
|
|
619
621
|
badge: g.badge,
|
|
620
622
|
showLabel: a,
|
|
621
623
|
active: g.key === n,
|
|
@@ -640,6 +642,7 @@ function Go({
|
|
|
640
642
|
{
|
|
641
643
|
icon: g.icon,
|
|
642
644
|
label: g.label,
|
|
645
|
+
tooltip: g.tooltip,
|
|
643
646
|
badge: g.badge,
|
|
644
647
|
showLabel: a,
|
|
645
648
|
onClick: () => i(g)
|
|
@@ -776,47 +779,47 @@ function La({
|
|
|
776
779
|
rail: D
|
|
777
780
|
}) {
|
|
778
781
|
var Yt, Ft;
|
|
779
|
-
const { useSearchParams: C, useNavigate: I, useLocation: A, Outlet: M } = vt(), [x] = C(), S = x.get("embed") === "true", L = wi(), { badges: R } = zo(), k = I(), z = A(), T = !Ie("md"), [H,
|
|
782
|
+
const { useSearchParams: C, useNavigate: I, useLocation: A, Outlet: M } = vt(), [x] = C(), S = x.get("embed") === "true", L = wi(), { badges: R } = zo(), k = I(), z = A(), T = !Ie("md"), [H, V] = B(!1), {
|
|
780
783
|
collapsed: Z,
|
|
781
784
|
setCollapsed: q,
|
|
782
785
|
width: re,
|
|
783
786
|
setWidth: X,
|
|
784
787
|
resetWidth: K,
|
|
785
|
-
minWidth:
|
|
788
|
+
minWidth: $,
|
|
786
789
|
maxWidth: me,
|
|
787
|
-
mobileOpen:
|
|
790
|
+
mobileOpen: fe,
|
|
788
791
|
setMobileOpen: Re
|
|
789
792
|
} = Oo(), [Qe, Fe] = B(!1), [xe, ve] = B(
|
|
790
793
|
() => new Set(On)
|
|
791
|
-
), [Be,
|
|
794
|
+
), [Be, Ke] = B(null), { selectedGroupId: $e, setSelectedGroupId: ae } = Ri(), ue = !!(D && D.items.length > 0), ye = Z && !T && !ue, De = Z && !T && ue;
|
|
792
795
|
J(() => {
|
|
793
796
|
On = xe;
|
|
794
797
|
}, [xe]);
|
|
795
|
-
const Me = le(null), st = le(null), at = le(null), [O, Y] = B(!1), [U,
|
|
796
|
-
var
|
|
798
|
+
const Me = le(null), st = le(null), at = le(null), [O, Y] = B(!1), [U, he] = B(null), Le = b && !T && !Z, Ce = (E) => Math.min(Math.max(E, $), me), Ne = U ?? re, dt = (E) => {
|
|
799
|
+
var tt, Pe, ot;
|
|
797
800
|
if (!Le) return;
|
|
798
801
|
E.preventDefault();
|
|
799
|
-
const
|
|
802
|
+
const P = E.clientX, Q = ((tt = at.current) == null ? void 0 : tt.getBoundingClientRect().width) ?? re;
|
|
800
803
|
(ot = (Pe = E.currentTarget).setPointerCapture) == null || ot.call(Pe, E.pointerId), Y(!0), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
801
|
-
let
|
|
802
|
-
const ze = (
|
|
803
|
-
ge = Q + (
|
|
804
|
-
|
|
804
|
+
let ce = 0, ge = Q;
|
|
805
|
+
const ze = (Ye) => {
|
|
806
|
+
ge = Q + (Ye.clientX - P), ce || (ce = requestAnimationFrame(() => {
|
|
807
|
+
ce = 0, he(Ce(ge));
|
|
805
808
|
}));
|
|
806
|
-
},
|
|
807
|
-
|
|
809
|
+
}, de = () => {
|
|
810
|
+
ce && cancelAnimationFrame(ce), window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", de), document.body.style.userSelect = "", document.body.style.cursor = "", he(null), Y(!1), ge < Qo ? q(!0) : X(Ce(ge));
|
|
808
811
|
};
|
|
809
|
-
window.addEventListener("pointermove", ze), window.addEventListener("pointerup",
|
|
810
|
-
},
|
|
811
|
-
Le && (E.key === "ArrowLeft" ? (E.preventDefault(), X((
|
|
812
|
+
window.addEventListener("pointermove", ze), window.addEventListener("pointerup", de);
|
|
813
|
+
}, et = (E) => {
|
|
814
|
+
Le && (E.key === "ArrowLeft" ? (E.preventDefault(), X((P) => P - $n)) : E.key === "ArrowRight" ? (E.preventDefault(), X((P) => P + $n)) : E.key === "Home" ? (E.preventDefault(), X($)) : E.key === "End" && (E.preventDefault(), X(me)));
|
|
812
815
|
};
|
|
813
816
|
J(() => {
|
|
814
817
|
const E = Me.current;
|
|
815
818
|
if (!E) return;
|
|
816
|
-
const
|
|
819
|
+
const P = () => {
|
|
817
820
|
It || (rr = E.scrollTop);
|
|
818
821
|
};
|
|
819
|
-
return E.addEventListener("scroll",
|
|
822
|
+
return E.addEventListener("scroll", P), () => E.removeEventListener("scroll", P);
|
|
820
823
|
}, []);
|
|
821
824
|
const Ae = () => {
|
|
822
825
|
const E = Me.current;
|
|
@@ -832,25 +835,25 @@ function La({
|
|
|
832
835
|
return () => clearTimeout(E);
|
|
833
836
|
}, []), mt(() => {
|
|
834
837
|
L.menus.length > 0 && (rr > 0 ? Ae() : requestAnimationFrame(() => {
|
|
835
|
-
var
|
|
836
|
-
const E = (
|
|
838
|
+
var P;
|
|
839
|
+
const E = (P = Me.current) == null ? void 0 : P.querySelector(
|
|
837
840
|
"[data-menu-active='true']"
|
|
838
841
|
);
|
|
839
842
|
E && E.scrollIntoView({ block: "center", behavior: "instant" });
|
|
840
843
|
}));
|
|
841
844
|
}, [L.menus]), J(() => {
|
|
842
845
|
It = !0, Ae();
|
|
843
|
-
const E = setTimeout(Ae, 0),
|
|
846
|
+
const E = setTimeout(Ae, 0), P = setTimeout(Ae, 50), Q = setTimeout(Ae, 100), ce = setTimeout(Ae, 200), ge = setTimeout(() => {
|
|
844
847
|
It = !1;
|
|
845
848
|
}, 300), ze = setTimeout(() => {
|
|
846
|
-
const
|
|
847
|
-
if (
|
|
848
|
-
const Pe =
|
|
849
|
-
ot.top >= Pe.top && ot.bottom <= Pe.bottom ||
|
|
849
|
+
const de = Me.current, tt = de == null ? void 0 : de.querySelector("[data-menu-active='true']");
|
|
850
|
+
if (de && tt) {
|
|
851
|
+
const Pe = de.getBoundingClientRect(), ot = tt.getBoundingClientRect();
|
|
852
|
+
ot.top >= Pe.top && ot.bottom <= Pe.bottom || tt.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
850
853
|
}
|
|
851
854
|
}, 250);
|
|
852
855
|
return () => {
|
|
853
|
-
clearTimeout(E), clearTimeout(
|
|
856
|
+
clearTimeout(E), clearTimeout(P), clearTimeout(Q), clearTimeout(ce), clearTimeout(ge), clearTimeout(ze);
|
|
854
857
|
};
|
|
855
858
|
}, [z.pathname]), J(() => {
|
|
856
859
|
st.current && (st.current.scrollTop = 0);
|
|
@@ -865,81 +868,81 @@ function La({
|
|
|
865
868
|
};
|
|
866
869
|
}, []);
|
|
867
870
|
const Dt = () => {
|
|
868
|
-
|
|
871
|
+
V(!0);
|
|
869
872
|
}, yt = () => {
|
|
870
|
-
|
|
873
|
+
V(!1);
|
|
871
874
|
}, We = () => {
|
|
872
|
-
|
|
875
|
+
V(!1), i();
|
|
873
876
|
}, He = (E) => {
|
|
874
|
-
const
|
|
875
|
-
return E.children &&
|
|
877
|
+
const P = E.slotKey ? [] : [E.to];
|
|
878
|
+
return E.children && P.push(...E.children.map((Q) => Q.to)), P;
|
|
876
879
|
}, Mt = [
|
|
877
880
|
...L.menus.flatMap((E) => E.items.flatMap(He)),
|
|
878
881
|
...((Yt = L.menuBottom) == null ? void 0 : Yt.flatMap(He)) ?? []
|
|
879
882
|
], ut = (E) => {
|
|
880
883
|
if (!z.pathname.startsWith(E)) return !1;
|
|
881
|
-
const
|
|
882
|
-
return E ===
|
|
884
|
+
const P = Mt.filter((Q) => z.pathname.startsWith(Q)).sort((Q, ce) => ce.length - Q.length)[0];
|
|
885
|
+
return E === P;
|
|
883
886
|
}, kt = le(D);
|
|
884
887
|
kt.current = D;
|
|
885
888
|
const St = (E) => {
|
|
886
|
-
const
|
|
887
|
-
if (!
|
|
888
|
-
const Q =
|
|
889
|
-
(
|
|
889
|
+
const P = kt.current;
|
|
890
|
+
if (!P || P.items.length === 0) return null;
|
|
891
|
+
const Q = P.defaultKey ?? P.items[0].key, ce = P.items.find((de) => de.key === E), ge = L.menus.find(
|
|
892
|
+
(de) => de.items.some((tt) => He(tt).some(ut))
|
|
890
893
|
);
|
|
891
|
-
if (!ge) return
|
|
892
|
-
if (
|
|
893
|
-
const ze =
|
|
894
|
-
return (ze == null ? void 0 : ze.key) ?? (
|
|
894
|
+
if (!ge) return ce ? ce.key : Q;
|
|
895
|
+
if (ce && Ir(ce, ge)) return ce.key;
|
|
896
|
+
const ze = P.items.find((de) => de.groupIds && Ir(de, ge)) ?? P.items.find((de) => !de.groupIds);
|
|
897
|
+
return (ze == null ? void 0 : ze.key) ?? (ce == null ? void 0 : ce.key) ?? Q;
|
|
895
898
|
}, [Et, _e] = B(
|
|
896
899
|
() => St(null)
|
|
897
900
|
);
|
|
898
901
|
J(() => {
|
|
899
902
|
_e((E) => St(E));
|
|
900
903
|
}, [z.pathname, L.menus]);
|
|
901
|
-
const
|
|
904
|
+
const Je = ue ? D.items.find((E) => E.key === Et) ?? D.items[0] : void 0, Qt = (E) => {
|
|
902
905
|
_e(E), De && q(!1);
|
|
903
906
|
}, Jt = (E) => {
|
|
904
907
|
E.onClick ? E.onClick() : E.to && k(E.to);
|
|
905
908
|
};
|
|
906
909
|
J(() => {
|
|
907
|
-
var
|
|
910
|
+
var P;
|
|
908
911
|
const E = (Q) => {
|
|
909
912
|
var ge;
|
|
910
|
-
const
|
|
911
|
-
|
|
912
|
-
const
|
|
913
|
-
return
|
|
913
|
+
const ce = Q.defaultExpanded && !Tn.has(Q.id);
|
|
914
|
+
ce && Tn.add(Q.id), (ce || (ge = Q.children) != null && ge.some((ze) => z.pathname.startsWith(ze.to))) && ve((ze) => {
|
|
915
|
+
const de = new Set(ze);
|
|
916
|
+
return de.add(Q.id), de;
|
|
914
917
|
});
|
|
915
918
|
};
|
|
916
919
|
L.menus.forEach((Q) => {
|
|
917
920
|
Q.items.forEach(E);
|
|
918
|
-
}), (
|
|
921
|
+
}), (P = L.menuBottom) == null || P.forEach(E);
|
|
919
922
|
}, [z.pathname, L.menus, L.menuBottom]);
|
|
920
923
|
const Cr = (E) => {
|
|
921
|
-
ve((
|
|
922
|
-
const Q = new Set(
|
|
924
|
+
ve((P) => {
|
|
925
|
+
const Q = new Set(P);
|
|
923
926
|
return Q.has(E) ? Q.delete(E) : Q.add(E), Q;
|
|
924
927
|
});
|
|
925
928
|
};
|
|
926
929
|
J(() => {
|
|
927
|
-
L.menus.length !== 0 && $e !== null && !L.menus.some((E) => E.id === $e) &&
|
|
928
|
-
}, [L.menus, $e,
|
|
930
|
+
L.menus.length !== 0 && $e !== null && !L.menus.some((E) => E.id === $e) && ae(null);
|
|
931
|
+
}, [L.menus, $e, ae]);
|
|
929
932
|
const wr = Ee(() => {
|
|
930
|
-
if (
|
|
931
|
-
return L.menus.filter((ge) => Ir(
|
|
932
|
-
const E = L.menus,
|
|
933
|
-
if (
|
|
933
|
+
if (Je != null && Je.groupIds)
|
|
934
|
+
return L.menus.filter((ge) => Ir(Je, ge));
|
|
935
|
+
const E = L.menus, P = ue ? null : $e;
|
|
936
|
+
if (P !== null)
|
|
934
937
|
return E.filter(
|
|
935
|
-
(ge) => ge.id ===
|
|
938
|
+
(ge) => ge.id === P || ge.parentGroupId === P
|
|
936
939
|
);
|
|
937
|
-
const Q = E.filter((ge) => ge.parentGroupId === void 0),
|
|
938
|
-
return
|
|
940
|
+
const Q = E.filter((ge) => ge.parentGroupId === void 0), ce = E.filter((ge) => ge.parentGroupId !== void 0).flatMap((ge) => ge.items);
|
|
941
|
+
return ce.length === 0 ? Q : [
|
|
939
942
|
...Q,
|
|
940
|
-
{ id: 18, name: "Pengaturan", items:
|
|
943
|
+
{ id: 18, name: "Pengaturan", items: ce, parentGroupId: void 0 }
|
|
941
944
|
];
|
|
942
|
-
}, [L.menus, $e,
|
|
945
|
+
}, [L.menus, $e, Je, ue]);
|
|
943
946
|
if (S)
|
|
944
947
|
return /* @__PURE__ */ e(
|
|
945
948
|
h,
|
|
@@ -952,7 +955,7 @@ function La({
|
|
|
952
955
|
}
|
|
953
956
|
);
|
|
954
957
|
const At = (E) => {
|
|
955
|
-
const
|
|
958
|
+
const P = E.children && E.children.length > 0, Q = !!E.slotKey, ce = P || Q, ge = xe.has(E.id), ze = P ? E.children.some((Pe) => ut(Pe.to)) : Q ? !1 : ut(E.to), de = zr(E.badge, R[E.id]), tt = !!de && ye;
|
|
956
959
|
return /* @__PURE__ */ u(
|
|
957
960
|
h,
|
|
958
961
|
{
|
|
@@ -966,10 +969,10 @@ function La({
|
|
|
966
969
|
onClick: (Pe) => {
|
|
967
970
|
if (Q && ye)
|
|
968
971
|
k(E.to);
|
|
969
|
-
else if (
|
|
972
|
+
else if (ce)
|
|
970
973
|
if (ye) {
|
|
971
974
|
const ot = Pe.currentTarget.getBoundingClientRect();
|
|
972
|
-
|
|
975
|
+
Ke({
|
|
973
976
|
item: E,
|
|
974
977
|
top: ot.top,
|
|
975
978
|
left: ot.right + 8
|
|
@@ -1019,7 +1022,7 @@ function La({
|
|
|
1019
1022
|
style: { alignItems: "center" },
|
|
1020
1023
|
children: [
|
|
1021
1024
|
/* @__PURE__ */ e(F, { name: E.icon, size: "sm", style: { flexShrink: 0 } }),
|
|
1022
|
-
|
|
1025
|
+
tt && /* @__PURE__ */ e(
|
|
1023
1026
|
h,
|
|
1024
1027
|
{
|
|
1025
1028
|
"aria-hidden": "true",
|
|
@@ -1048,16 +1051,16 @@ function La({
|
|
|
1048
1051
|
textStyle: { transition: "opacity 0.3s" }
|
|
1049
1052
|
}
|
|
1050
1053
|
),
|
|
1051
|
-
|
|
1054
|
+
de && /* @__PURE__ */ e(
|
|
1052
1055
|
Zt,
|
|
1053
1056
|
{
|
|
1054
|
-
text: String(
|
|
1055
|
-
variant:
|
|
1057
|
+
text: String(de.value),
|
|
1058
|
+
variant: de.variant ?? "info",
|
|
1056
1059
|
size: "xs",
|
|
1057
1060
|
border: !0
|
|
1058
1061
|
}
|
|
1059
1062
|
),
|
|
1060
|
-
|
|
1063
|
+
ce && /* @__PURE__ */ e(
|
|
1061
1064
|
F,
|
|
1062
1065
|
{
|
|
1063
1066
|
name: "ChevronDown",
|
|
@@ -1073,8 +1076,8 @@ function La({
|
|
|
1073
1076
|
]
|
|
1074
1077
|
}
|
|
1075
1078
|
),
|
|
1076
|
-
|
|
1077
|
-
const Pe = E.children ?? [], ot = Q ? -1 : Pe.findIndex((ct) => ut(ct.to)),
|
|
1079
|
+
ce && !ye && (() => {
|
|
1080
|
+
const Pe = E.children ?? [], ot = Q ? -1 : Pe.findIndex((ct) => ut(ct.to)), Ye = Pe.map((ct) => {
|
|
1078
1081
|
const zt = zr(
|
|
1079
1082
|
ct.badge,
|
|
1080
1083
|
R[ct.id]
|
|
@@ -1186,9 +1189,9 @@ function La({
|
|
|
1186
1189
|
In,
|
|
1187
1190
|
{
|
|
1188
1191
|
slotKey: E.slotKey,
|
|
1189
|
-
fallback:
|
|
1192
|
+
fallback: Ye
|
|
1190
1193
|
}
|
|
1191
|
-
) :
|
|
1194
|
+
) : Ye
|
|
1192
1195
|
]
|
|
1193
1196
|
}
|
|
1194
1197
|
);
|
|
@@ -1209,8 +1212,8 @@ function La({
|
|
|
1209
1212
|
"--app-header-height": Vn,
|
|
1210
1213
|
// Dibaca FloatingFooter & AsideBar untuk offset — di mode rail
|
|
1211
1214
|
// harus mencakup kolom rail + panel.
|
|
1212
|
-
"--app-sidebar-width": T ? "0px" :
|
|
1213
|
-
"--app-footer-zindex": T &&
|
|
1215
|
+
"--app-sidebar-width": T ? "0px" : ue ? `calc(${Mi(D.showLabels ?? !0)} + ${De ? "0px" : `${Ne}px`})` : Z ? en : `${Ne}px`,
|
|
1216
|
+
"--app-footer-zindex": T && fe ? "40" : "998"
|
|
1214
1217
|
},
|
|
1215
1218
|
children: [
|
|
1216
1219
|
T && /* @__PURE__ */ e(
|
|
@@ -1221,19 +1224,19 @@ function La({
|
|
|
1221
1224
|
bg: "black-alpha-a50",
|
|
1222
1225
|
style: {
|
|
1223
1226
|
inset: 0,
|
|
1224
|
-
opacity:
|
|
1225
|
-
pointerEvents:
|
|
1227
|
+
opacity: fe ? 0.5 : 0,
|
|
1228
|
+
pointerEvents: fe ? "auto" : "none",
|
|
1226
1229
|
transition: "opacity 0.3s"
|
|
1227
1230
|
},
|
|
1228
1231
|
onClick: () => Re(!1)
|
|
1229
1232
|
}
|
|
1230
1233
|
),
|
|
1231
|
-
|
|
1234
|
+
ue && !T && /* @__PURE__ */ e(
|
|
1232
1235
|
Go,
|
|
1233
1236
|
{
|
|
1234
1237
|
items: D.items,
|
|
1235
1238
|
bottomItems: D.bottomItems,
|
|
1236
|
-
activeKey:
|
|
1239
|
+
activeKey: Je.key,
|
|
1237
1240
|
onSelect: Qt,
|
|
1238
1241
|
onAction: Jt,
|
|
1239
1242
|
logo: L.logo,
|
|
@@ -1267,7 +1270,7 @@ function La({
|
|
|
1267
1270
|
...T && {
|
|
1268
1271
|
inset: 0,
|
|
1269
1272
|
zIndex: 50,
|
|
1270
|
-
transform:
|
|
1273
|
+
transform: fe ? "translateX(0)" : "translateX(-100%)"
|
|
1271
1274
|
},
|
|
1272
1275
|
transition: O ? "none" : "all 0.3s ease-in-out",
|
|
1273
1276
|
// Flex items default to `min-width: auto` (= content min-content),
|
|
@@ -1296,7 +1299,7 @@ function La({
|
|
|
1296
1299
|
...ye ? { paddingInline: Br } : null
|
|
1297
1300
|
},
|
|
1298
1301
|
children: (() => {
|
|
1299
|
-
const E =
|
|
1302
|
+
const E = ue && !T, P = Je != null && Je.groupIds ? Je.tooltip ?? Je.label : L.appName, Q = !T && Z && !fe && !ue, ce = Q && Qe;
|
|
1300
1303
|
return /* @__PURE__ */ u(ne, { children: [
|
|
1301
1304
|
/* @__PURE__ */ u(
|
|
1302
1305
|
h,
|
|
@@ -1304,12 +1307,12 @@ function La({
|
|
|
1304
1307
|
direction: "row",
|
|
1305
1308
|
align: "center",
|
|
1306
1309
|
gap: "sm",
|
|
1307
|
-
flex:
|
|
1308
|
-
justify:
|
|
1310
|
+
flex: Q ? "1" : void 0,
|
|
1311
|
+
justify: Q ? "center" : void 0,
|
|
1309
1312
|
style: {
|
|
1310
1313
|
transition: "opacity 0.2s",
|
|
1311
|
-
opacity:
|
|
1312
|
-
pointerEvents:
|
|
1314
|
+
opacity: ce ? 0 : 1,
|
|
1315
|
+
pointerEvents: ce ? "none" : "auto"
|
|
1313
1316
|
},
|
|
1314
1317
|
children: [
|
|
1315
1318
|
!E && /* @__PURE__ */ e(
|
|
@@ -1324,7 +1327,7 @@ function La({
|
|
|
1324
1327
|
}
|
|
1325
1328
|
}
|
|
1326
1329
|
),
|
|
1327
|
-
(!Z ||
|
|
1330
|
+
(!Z || fe) && /* @__PURE__ */ e(
|
|
1328
1331
|
w,
|
|
1329
1332
|
{
|
|
1330
1333
|
as: "span",
|
|
@@ -1333,7 +1336,7 @@ function La({
|
|
|
1333
1336
|
color: "primary",
|
|
1334
1337
|
truncate: !0,
|
|
1335
1338
|
style: { transition: "opacity 0.3s" },
|
|
1336
|
-
children: E ?
|
|
1339
|
+
children: E ? P : L.appName
|
|
1337
1340
|
}
|
|
1338
1341
|
)
|
|
1339
1342
|
]
|
|
@@ -1353,7 +1356,7 @@ function La({
|
|
|
1353
1356
|
children: /* @__PURE__ */ e(F, { name: "LayoutLeft", size: "sm" })
|
|
1354
1357
|
}
|
|
1355
1358
|
),
|
|
1356
|
-
|
|
1359
|
+
Q && /* @__PURE__ */ e(
|
|
1357
1360
|
h,
|
|
1358
1361
|
{
|
|
1359
1362
|
as: "button",
|
|
@@ -1375,8 +1378,8 @@ function La({
|
|
|
1375
1378
|
left: "50%",
|
|
1376
1379
|
transform: "translate(-50%, -50%)",
|
|
1377
1380
|
color: "var(--sa-text-primary, #292a2e)",
|
|
1378
|
-
opacity:
|
|
1379
|
-
pointerEvents:
|
|
1381
|
+
opacity: ce ? 1 : 0,
|
|
1382
|
+
pointerEvents: ce ? "auto" : "none",
|
|
1380
1383
|
transition: "opacity 0.2s"
|
|
1381
1384
|
},
|
|
1382
1385
|
children: /* @__PURE__ */ e(F, { name: "LayoutLeft", size: "sm" })
|
|
@@ -1405,15 +1408,15 @@ function La({
|
|
|
1405
1408
|
s && /* @__PURE__ */ e(
|
|
1406
1409
|
Vo,
|
|
1407
1410
|
{
|
|
1408
|
-
collapsed: T ||
|
|
1411
|
+
collapsed: T || ue ? !1 : Z,
|
|
1409
1412
|
children: s
|
|
1410
1413
|
}
|
|
1411
1414
|
),
|
|
1412
|
-
|
|
1415
|
+
ue && T && /* @__PURE__ */ e(
|
|
1413
1416
|
qo,
|
|
1414
1417
|
{
|
|
1415
1418
|
items: D.items,
|
|
1416
|
-
activeKey:
|
|
1419
|
+
activeKey: Je.key,
|
|
1417
1420
|
onSelect: Qt
|
|
1418
1421
|
}
|
|
1419
1422
|
),
|
|
@@ -1483,9 +1486,9 @@ function La({
|
|
|
1483
1486
|
In,
|
|
1484
1487
|
{
|
|
1485
1488
|
slotKey: E.slotKey,
|
|
1486
|
-
fallback: E.items.map((
|
|
1489
|
+
fallback: E.items.map((P) => At(P))
|
|
1487
1490
|
}
|
|
1488
|
-
) : E.items.map((
|
|
1491
|
+
) : E.items.map((P) => At(P))
|
|
1489
1492
|
}
|
|
1490
1493
|
)
|
|
1491
1494
|
] }, E.id))
|
|
@@ -1513,11 +1516,11 @@ function La({
|
|
|
1513
1516
|
"aria-orientation": "vertical",
|
|
1514
1517
|
"aria-label": "Resize sidebar",
|
|
1515
1518
|
"aria-valuenow": re,
|
|
1516
|
-
"aria-valuemin":
|
|
1519
|
+
"aria-valuemin": $,
|
|
1517
1520
|
"aria-valuemax": me,
|
|
1518
1521
|
tabIndex: 0,
|
|
1519
1522
|
onPointerDown: dt,
|
|
1520
|
-
onKeyDown:
|
|
1523
|
+
onKeyDown: et,
|
|
1521
1524
|
onDoubleClick: K,
|
|
1522
1525
|
title: "Drag to resize · double-click to reset",
|
|
1523
1526
|
position: "absolute",
|
|
@@ -1720,19 +1723,19 @@ function La({
|
|
|
1720
1723
|
}
|
|
1721
1724
|
) }),
|
|
1722
1725
|
(f && f.length > 0 || p) && /* @__PURE__ */ u(Ue, { children: [
|
|
1723
|
-
f == null ? void 0 : f.map((E,
|
|
1724
|
-
|
|
1726
|
+
f == null ? void 0 : f.map((E, P) => /* @__PURE__ */ e(
|
|
1727
|
+
Xe,
|
|
1725
1728
|
{
|
|
1726
1729
|
onClick: E.onClick,
|
|
1727
1730
|
startIcon: /* @__PURE__ */ e(F, { name: E.icon, size: "md" }),
|
|
1728
1731
|
children: E.label
|
|
1729
1732
|
},
|
|
1730
|
-
`${E.label}-${
|
|
1733
|
+
`${E.label}-${P}`
|
|
1731
1734
|
)),
|
|
1732
1735
|
p
|
|
1733
1736
|
] }),
|
|
1734
1737
|
g ?? /* @__PURE__ */ e(ln, { children: /* @__PURE__ */ e(
|
|
1735
|
-
|
|
1738
|
+
Xe,
|
|
1736
1739
|
{
|
|
1737
1740
|
intent: "danger",
|
|
1738
1741
|
onClick: Dt,
|
|
@@ -1785,7 +1788,7 @@ function La({
|
|
|
1785
1788
|
/* @__PURE__ */ e(
|
|
1786
1789
|
h,
|
|
1787
1790
|
{
|
|
1788
|
-
onClick: () =>
|
|
1791
|
+
onClick: () => Ke(null),
|
|
1789
1792
|
position: "fixed",
|
|
1790
1793
|
style: { inset: 0, zIndex: 60 }
|
|
1791
1794
|
}
|
|
@@ -1827,7 +1830,7 @@ function La({
|
|
|
1827
1830
|
}
|
|
1828
1831
|
),
|
|
1829
1832
|
(Ft = Be.item.children) == null ? void 0 : Ft.map((E) => {
|
|
1830
|
-
const
|
|
1833
|
+
const P = ut(E.to), Q = zr(
|
|
1831
1834
|
E.badge,
|
|
1832
1835
|
R[E.id]
|
|
1833
1836
|
);
|
|
@@ -1836,7 +1839,7 @@ function La({
|
|
|
1836
1839
|
{
|
|
1837
1840
|
as: "button",
|
|
1838
1841
|
onClick: () => {
|
|
1839
|
-
k(E.to),
|
|
1842
|
+
k(E.to), Ke(null);
|
|
1840
1843
|
},
|
|
1841
1844
|
fullWidth: !0,
|
|
1842
1845
|
direction: "row",
|
|
@@ -1847,12 +1850,12 @@ function La({
|
|
|
1847
1850
|
borderRadius: "rounded-md",
|
|
1848
1851
|
borderWidth: "border",
|
|
1849
1852
|
borderStyle: "border-solid",
|
|
1850
|
-
bg:
|
|
1851
|
-
hover:
|
|
1853
|
+
bg: P ? "primary-inverse" : void 0,
|
|
1854
|
+
hover: P ? void 0 : { bg: "primary-inverse" },
|
|
1852
1855
|
style: {
|
|
1853
1856
|
textAlign: "left",
|
|
1854
1857
|
borderColor: "transparent",
|
|
1855
|
-
color:
|
|
1858
|
+
color: P ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)"
|
|
1856
1859
|
},
|
|
1857
1860
|
children: [
|
|
1858
1861
|
E.icon && /* @__PURE__ */ e(
|
|
@@ -1868,7 +1871,7 @@ function La({
|
|
|
1868
1871
|
{
|
|
1869
1872
|
as: "span",
|
|
1870
1873
|
fontSize: "md",
|
|
1871
|
-
fontWeight:
|
|
1874
|
+
fontWeight: P ? "medium" : "normal",
|
|
1872
1875
|
whiteSpace: "nowrap",
|
|
1873
1876
|
style: { flex: 1 },
|
|
1874
1877
|
children: E.title
|
|
@@ -2241,7 +2244,7 @@ const Xo = (t, r) => {
|
|
|
2241
2244
|
}),
|
|
2242
2245
|
[i, l]
|
|
2243
2246
|
), a = () => typeof r == "string" ? /* @__PURE__ */ e(w, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(w, { color: "primary", fontWeight: "medium", children: t }) : t, f = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(w, { fontWeight: "medium", color: "subtlest", children: n }) : n;
|
|
2244
|
-
return /* @__PURE__ */ u(
|
|
2247
|
+
return /* @__PURE__ */ u(nt, { children: [
|
|
2245
2248
|
/* @__PURE__ */ e(Ve, { style: c, width: o, children: a() }),
|
|
2246
2249
|
n ? /* @__PURE__ */ e(Ve, { style: s, width: 24, children: f() }) : null,
|
|
2247
2250
|
/* @__PURE__ */ e(Ve, { style: c, children: d() })
|
|
@@ -2381,15 +2384,15 @@ const Xo = (t, r) => {
|
|
|
2381
2384
|
if (!p) return null;
|
|
2382
2385
|
if (Yr(p)) return p;
|
|
2383
2386
|
const H = p.filter(
|
|
2384
|
-
(
|
|
2387
|
+
(V) => V && (V.title || V.icon)
|
|
2385
2388
|
);
|
|
2386
|
-
return H.length === 0 ? null : C ? /* @__PURE__ */ e(h, { direction: "row", gap: "md", children: H.map(({ title:
|
|
2389
|
+
return H.length === 0 ? null : C ? /* @__PURE__ */ e(h, { direction: "row", gap: "md", children: H.map(({ title: V, icon: Z, buttonProps: q, onClick: re }, X) => /* @__PURE__ */ e(
|
|
2387
2390
|
N,
|
|
2388
2391
|
{
|
|
2389
2392
|
iconLeft: Z ? /* @__PURE__ */ e(F, { name: Z, size: "md" }) : void 0,
|
|
2390
2393
|
onClick: re,
|
|
2391
2394
|
...q,
|
|
2392
|
-
children:
|
|
2395
|
+
children: V
|
|
2393
2396
|
},
|
|
2394
2397
|
`action-${X}`
|
|
2395
2398
|
)) }) : /* @__PURE__ */ u(Ze, { position: "bottom-right", children: [
|
|
@@ -2407,16 +2410,16 @@ const Xo = (t, r) => {
|
|
|
2407
2410
|
"aria-label": "Actions"
|
|
2408
2411
|
}
|
|
2409
2412
|
) }),
|
|
2410
|
-
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { style: { minWidth: 200 }, children: H.map(({ title:
|
|
2413
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { style: { minWidth: 200 }, children: H.map(({ title: V, icon: Z, buttonProps: q, onClick: re }, X) => {
|
|
2411
2414
|
const K = (q == null ? void 0 : q.tone) === "error" || (q == null ? void 0 : q.danger) === !0;
|
|
2412
2415
|
return /* @__PURE__ */ e(
|
|
2413
|
-
|
|
2416
|
+
Xe,
|
|
2414
2417
|
{
|
|
2415
2418
|
intent: K ? "danger" : void 0,
|
|
2416
2419
|
disabled: q == null ? void 0 : q.disabled,
|
|
2417
2420
|
startIcon: Z ? /* @__PURE__ */ e(F, { name: Z }) : void 0,
|
|
2418
2421
|
onClick: re,
|
|
2419
|
-
children:
|
|
2422
|
+
children: V
|
|
2420
2423
|
},
|
|
2421
2424
|
`action-${X}`
|
|
2422
2425
|
);
|
|
@@ -2434,9 +2437,9 @@ const Xo = (t, r) => {
|
|
|
2434
2437
|
}
|
|
2435
2438
|
) }) : /* @__PURE__ */ e(h, { direction: "row", children: /* @__PURE__ */ e(xr, { onClick: S, children: H }) });
|
|
2436
2439
|
}, k = () => {
|
|
2437
|
-
const H = !!r,
|
|
2440
|
+
const H = !!r, V = Array.isArray(p) && p.length > 0, Z = Yr(p) ? !0 : V;
|
|
2438
2441
|
if (!H && !Z && !x) return null;
|
|
2439
|
-
const re = C || !C &&
|
|
2442
|
+
const re = C || !C && V;
|
|
2440
2443
|
return /* @__PURE__ */ u(
|
|
2441
2444
|
h,
|
|
2442
2445
|
{
|
|
@@ -2491,17 +2494,17 @@ const Xo = (t, r) => {
|
|
|
2491
2494
|
if (!f || f.length === 0) return null;
|
|
2492
2495
|
const H = f.filter((q) => q.show !== !1);
|
|
2493
2496
|
if (H.length === 0) return null;
|
|
2494
|
-
let
|
|
2497
|
+
let V = 0, Z = -1 / 0;
|
|
2495
2498
|
return H.forEach((q, re) => {
|
|
2496
2499
|
const X = q.order ?? 0;
|
|
2497
|
-
X >= Z && (Z = X,
|
|
2498
|
-
}), H.map(({ content: q, order: re, borderBottom: X = !0, keepBottomPadding: K = !1, paddingInline:
|
|
2500
|
+
X >= Z && (Z = X, V = re);
|
|
2501
|
+
}), H.map(({ content: q, order: re, borderBottom: X = !0, keepBottomPadding: K = !1, paddingInline: $ = !0, paddingBlock: me = !0 }, fe) => /* @__PURE__ */ e(
|
|
2499
2502
|
h,
|
|
2500
2503
|
{
|
|
2501
2504
|
direction: "column",
|
|
2502
2505
|
paddingTop: me ? "sm" : "spacing-0",
|
|
2503
|
-
paddingBottom: me && (X || K ||
|
|
2504
|
-
paddingInline:
|
|
2506
|
+
paddingBottom: me && (X || K || fe === V) ? "sm" : "spacing-0",
|
|
2507
|
+
paddingInline: $ ? "md" : "spacing-0",
|
|
2505
2508
|
style: {
|
|
2506
2509
|
// Inset box-shadow (not a real border) so the divider line doesn't
|
|
2507
2510
|
// add 1px to the row height — keeps the sub-header stack from shifting
|
|
@@ -2513,11 +2516,11 @@ const Xo = (t, r) => {
|
|
|
2513
2516
|
},
|
|
2514
2517
|
children: q
|
|
2515
2518
|
},
|
|
2516
|
-
`sub-header-${
|
|
2519
|
+
`sub-header-${fe}`
|
|
2517
2520
|
));
|
|
2518
2521
|
}, G = () => {
|
|
2519
|
-
const H = l ? k() : null,
|
|
2520
|
-
return !H &&
|
|
2522
|
+
const H = l ? k() : null, V = z();
|
|
2523
|
+
return !H && !V ? null : /* @__PURE__ */ u(
|
|
2521
2524
|
h,
|
|
2522
2525
|
{
|
|
2523
2526
|
direction: "column",
|
|
@@ -2538,11 +2541,11 @@ const Xo = (t, r) => {
|
|
|
2538
2541
|
// bottom-most row's own paddingBottom (forced to sm in renderSubHeaders),
|
|
2539
2542
|
// so the last row is sm from the body whether or not it has a border.
|
|
2540
2543
|
// Without any visible subHeaders the header keeps its usual md gap.
|
|
2541
|
-
marginBottom:
|
|
2544
|
+
marginBottom: V ? "var(--sa-spacing-0)" : "var(--sa-spacing-md)"
|
|
2542
2545
|
},
|
|
2543
2546
|
children: [
|
|
2544
2547
|
H,
|
|
2545
|
-
|
|
2548
|
+
V
|
|
2546
2549
|
]
|
|
2547
2550
|
}
|
|
2548
2551
|
);
|
|
@@ -2597,17 +2600,17 @@ const Xo = (t, r) => {
|
|
|
2597
2600
|
onWidthChange: M
|
|
2598
2601
|
}, x) => {
|
|
2599
2602
|
const L = !Ie("md"), R = s ?? d ?? a ?? "357px", k = D ?? [], z = k.length > 1, [G, T] = B(() => {
|
|
2600
|
-
const
|
|
2601
|
-
return
|
|
2602
|
-
}), [H,
|
|
2603
|
-
K.current =
|
|
2604
|
-
}, me = z ? k[G] : R,
|
|
2605
|
-
const
|
|
2606
|
-
|
|
2603
|
+
const ae = k.indexOf(R);
|
|
2604
|
+
return ae >= 0 ? ae : 0;
|
|
2605
|
+
}), [H, V] = B(null), [Z, q] = B(!1), [re, X] = B(!1), K = le(null), $ = (ae) => {
|
|
2606
|
+
K.current = ae, typeof x == "function" ? x(ae) : x && (x.current = ae);
|
|
2607
|
+
}, me = z ? k[G] : R, fe = H != null ? `${H}px` : me, Re = C && !L, Qe = G === k.length - 1, Fe = () => {
|
|
2608
|
+
const ae = (G + 1) % k.length;
|
|
2609
|
+
V(null), T(ae), M == null || M(k[ae]);
|
|
2607
2610
|
}, xe = j(
|
|
2608
|
-
(
|
|
2609
|
-
const
|
|
2610
|
-
return Math.min(Math.max(
|
|
2611
|
+
(ae) => {
|
|
2612
|
+
const ue = A ?? window.innerWidth;
|
|
2613
|
+
return Math.min(Math.max(ae, I), ue);
|
|
2611
2614
|
},
|
|
2612
2615
|
[I, A]
|
|
2613
2616
|
), ve = le(null);
|
|
@@ -2618,8 +2621,8 @@ const Xo = (t, r) => {
|
|
|
2618
2621
|
isShow: r,
|
|
2619
2622
|
position: "right",
|
|
2620
2623
|
onHide: t,
|
|
2621
|
-
ref:
|
|
2622
|
-
size:
|
|
2624
|
+
ref: $,
|
|
2625
|
+
size: fe,
|
|
2623
2626
|
style: o,
|
|
2624
2627
|
flush: !0,
|
|
2625
2628
|
radius: "none",
|
|
@@ -2632,33 +2635,33 @@ const Xo = (t, r) => {
|
|
|
2632
2635
|
"aria-orientation": "vertical",
|
|
2633
2636
|
"aria-label": "Ubah lebar panel",
|
|
2634
2637
|
tabIndex: 0,
|
|
2635
|
-
onPointerDown: (
|
|
2638
|
+
onPointerDown: (ae) => {
|
|
2636
2639
|
if (!Re) return;
|
|
2637
|
-
|
|
2638
|
-
const
|
|
2639
|
-
|
|
2640
|
+
ae.preventDefault();
|
|
2641
|
+
const ue = ae.currentTarget;
|
|
2642
|
+
ue.setPointerCapture(ae.pointerId), q(!0);
|
|
2640
2643
|
const ye = document.body.style.cursor, De = document.body.style.userSelect;
|
|
2641
2644
|
document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
2642
2645
|
let Me = null;
|
|
2643
2646
|
const st = (O) => {
|
|
2644
2647
|
const Y = xe(window.innerWidth - O.clientX);
|
|
2645
2648
|
ve.current = Y, Me == null && (Me = window.requestAnimationFrame(() => {
|
|
2646
|
-
Me = null, ve.current != null &&
|
|
2649
|
+
Me = null, ve.current != null && V(ve.current);
|
|
2647
2650
|
}));
|
|
2648
2651
|
}, at = (O) => {
|
|
2649
|
-
Me != null && window.cancelAnimationFrame(Me), ve.current != null &&
|
|
2652
|
+
Me != null && window.cancelAnimationFrame(Me), ve.current != null && V(ve.current), ue.releasePointerCapture(O.pointerId), ue.removeEventListener("pointermove", st), ue.removeEventListener("pointerup", at), ue.removeEventListener("pointercancel", at), document.body.style.cursor = ye, document.body.style.userSelect = De, q(!1), ve.current != null && (M == null || M(`${ve.current}px`));
|
|
2650
2653
|
};
|
|
2651
|
-
|
|
2654
|
+
ue.addEventListener("pointermove", st), ue.addEventListener("pointerup", at), ue.addEventListener("pointercancel", at);
|
|
2652
2655
|
},
|
|
2653
|
-
onKeyDown: (
|
|
2656
|
+
onKeyDown: (ae) => {
|
|
2654
2657
|
var Me;
|
|
2655
|
-
if (!Re ||
|
|
2656
|
-
|
|
2657
|
-
const
|
|
2658
|
-
|
|
2658
|
+
if (!Re || ae.key !== "ArrowLeft" && ae.key !== "ArrowRight") return;
|
|
2659
|
+
ae.preventDefault();
|
|
2660
|
+
const ue = ae.key === "ArrowLeft" ? Gn : -Gn, ye = H ?? ((Me = K.current) == null ? void 0 : Me.offsetWidth) ?? I, De = xe(ye + ue);
|
|
2661
|
+
V(De), M == null || M(`${De}px`);
|
|
2659
2662
|
},
|
|
2660
2663
|
onDoubleClick: () => {
|
|
2661
|
-
Re && (
|
|
2664
|
+
Re && (V(null), M == null || M(me));
|
|
2662
2665
|
},
|
|
2663
2666
|
title: "Tarik untuk mengubah lebar — klik dua kali untuk reset",
|
|
2664
2667
|
onPointerEnter: () => X(!0),
|
|
@@ -2876,7 +2879,7 @@ const Xo = (t, r) => {
|
|
|
2876
2879
|
Body1: bl,
|
|
2877
2880
|
Body2: xl,
|
|
2878
2881
|
Body3: vl
|
|
2879
|
-
},
|
|
2882
|
+
}, it = () => {
|
|
2880
2883
|
const { useSearchParams: t, useParams: r, useLocation: n } = vt(), [o, i] = t(), l = yr(o.toString()), c = r(), s = n(), a = c.id;
|
|
2881
2884
|
return {
|
|
2882
2885
|
// query params
|
|
@@ -3014,7 +3017,7 @@ const Xo = (t, r) => {
|
|
|
3014
3017
|
pageKey: o,
|
|
3015
3018
|
filters: i
|
|
3016
3019
|
}) => {
|
|
3017
|
-
const { searchParams: l, setSearchParams: c, searchQueries: s } =
|
|
3020
|
+
const { searchParams: l, setSearchParams: c, searchQueries: s } = it(), [a, d] = B({}), f = () => {
|
|
3018
3021
|
l.delete(n || "filter"), c(l);
|
|
3019
3022
|
}, p = (g, b) => {
|
|
3020
3023
|
switch (g.type) {
|
|
@@ -3072,25 +3075,25 @@ const Xo = (t, r) => {
|
|
|
3072
3075
|
withTitleLabels: C = !1
|
|
3073
3076
|
}) => {
|
|
3074
3077
|
const A = (g == null ? void 0 : g.isShowLabel) ?? !0, [M, x] = B(!1), [S, L] = B(0), R = () => {
|
|
3075
|
-
L((
|
|
3076
|
-
}, { searchParams: k, setSearchParams: z, getQueryParam: G } =
|
|
3078
|
+
L(($) => $ + 1);
|
|
3079
|
+
}, { searchParams: k, setSearchParams: z, getQueryParam: G } = it(), T = yr(k.toString()), H = hn(t, k, s) || "", [V, Z] = B(H), q = G(s), X = !!(q && !(() => {
|
|
3077
3080
|
if (q)
|
|
3078
3081
|
try {
|
|
3079
|
-
const
|
|
3080
|
-
return Object.keys(
|
|
3081
|
-
} catch (
|
|
3082
|
-
console.error("Filter parameter is not a valid JSON:",
|
|
3082
|
+
const $ = JSON.parse(q);
|
|
3083
|
+
return Object.keys($).length === 1 && $[t] === "";
|
|
3084
|
+
} catch ($) {
|
|
3085
|
+
console.error("Filter parameter is not a valid JSON:", $);
|
|
3083
3086
|
}
|
|
3084
3087
|
return !1;
|
|
3085
3088
|
})()), K = Ie("md");
|
|
3086
3089
|
return J(() => {
|
|
3087
3090
|
Z(H);
|
|
3088
3091
|
}, [H]), J(() => {
|
|
3089
|
-
if (
|
|
3092
|
+
if (V === H)
|
|
3090
3093
|
return;
|
|
3091
|
-
const
|
|
3094
|
+
const $ = window.setTimeout(() => {
|
|
3092
3095
|
hr({
|
|
3093
|
-
value:
|
|
3096
|
+
value: V,
|
|
3094
3097
|
name: t,
|
|
3095
3098
|
type: "search",
|
|
3096
3099
|
searchQueries: T,
|
|
@@ -3100,10 +3103,10 @@ const Xo = (t, r) => {
|
|
|
3100
3103
|
});
|
|
3101
3104
|
}, 350);
|
|
3102
3105
|
return () => {
|
|
3103
|
-
window.clearTimeout(
|
|
3106
|
+
window.clearTimeout($);
|
|
3104
3107
|
};
|
|
3105
3108
|
}, [
|
|
3106
|
-
|
|
3109
|
+
V,
|
|
3107
3110
|
H,
|
|
3108
3111
|
t,
|
|
3109
3112
|
T,
|
|
@@ -3123,25 +3126,25 @@ const Xo = (t, r) => {
|
|
|
3123
3126
|
N,
|
|
3124
3127
|
{
|
|
3125
3128
|
onClick: () => {
|
|
3126
|
-
const
|
|
3127
|
-
|
|
3129
|
+
const $ = new URLSearchParams(k);
|
|
3130
|
+
$.delete(s), z($), Z(""), R(), f && f();
|
|
3128
3131
|
},
|
|
3129
3132
|
variant: "outline",
|
|
3130
3133
|
tone: "neutral",
|
|
3131
3134
|
children: /* @__PURE__ */ e(w, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
3132
3135
|
}
|
|
3133
3136
|
) }),
|
|
3134
|
-
i == null ? void 0 : i.map(({ minWidth:
|
|
3137
|
+
i == null ? void 0 : i.map(({ minWidth: $, content: me, title: fe, onClickContainer: Re }, Qe) => /* @__PURE__ */ u(
|
|
3135
3138
|
h,
|
|
3136
3139
|
{
|
|
3137
3140
|
direction: "column",
|
|
3138
3141
|
gap: "sm",
|
|
3139
3142
|
onClick: Re,
|
|
3140
3143
|
style: {
|
|
3141
|
-
minWidth:
|
|
3144
|
+
minWidth: $
|
|
3142
3145
|
},
|
|
3143
3146
|
children: [
|
|
3144
|
-
|
|
3147
|
+
fe && /* @__PURE__ */ e(gt.SubH3, { children: fe }),
|
|
3145
3148
|
me
|
|
3146
3149
|
]
|
|
3147
3150
|
},
|
|
@@ -3211,8 +3214,8 @@ const Xo = (t, r) => {
|
|
|
3211
3214
|
})
|
|
3212
3215
|
}
|
|
3213
3216
|
] : [],
|
|
3214
|
-
onChange: (
|
|
3215
|
-
value:
|
|
3217
|
+
onChange: ($) => hr({
|
|
3218
|
+
value: $,
|
|
3216
3219
|
name: r,
|
|
3217
3220
|
type: "dropdown",
|
|
3218
3221
|
searchQueries: T,
|
|
@@ -3244,8 +3247,8 @@ const Xo = (t, r) => {
|
|
|
3244
3247
|
{
|
|
3245
3248
|
placeholder: n,
|
|
3246
3249
|
leftIcon: /* @__PURE__ */ e(F, { name: "Search", width: 20, height: 20 }),
|
|
3247
|
-
onChange: (
|
|
3248
|
-
value:
|
|
3250
|
+
onChange: ($) => Z($.target.value),
|
|
3251
|
+
value: V,
|
|
3249
3252
|
fullWidth: !0
|
|
3250
3253
|
},
|
|
3251
3254
|
S + 1 + s
|
|
@@ -3274,7 +3277,7 @@ function fn({
|
|
|
3274
3277
|
pageKey: o = "page",
|
|
3275
3278
|
searchKey: i = "q"
|
|
3276
3279
|
}) {
|
|
3277
|
-
const { searchParams: l, setSearchParams: c, searchQueries: s } =
|
|
3280
|
+
const { searchParams: l, setSearchParams: c, searchQueries: s } = it(), a = Ee(
|
|
3278
3281
|
() => Object.fromEntries(t.map((S) => [S.key, S])),
|
|
3279
3282
|
[t]
|
|
3280
3283
|
), d = Ee(() => {
|
|
@@ -3503,7 +3506,7 @@ function zl({
|
|
|
3503
3506
|
getColumns: i,
|
|
3504
3507
|
applyColumns: l
|
|
3505
3508
|
}) {
|
|
3506
|
-
const { searchParams: c, setSearchParams: s } =
|
|
3509
|
+
const { searchParams: c, setSearchParams: s } = it(), a = t ? qt.savedViews(t) : void 0, [d, f] = B(
|
|
3507
3510
|
() => a ? r.get(a) || [] : []
|
|
3508
3511
|
), p = j(
|
|
3509
3512
|
(C) => {
|
|
@@ -3567,7 +3570,7 @@ function Bl({
|
|
|
3567
3570
|
searchKey: l = "q",
|
|
3568
3571
|
persistSearch: c = !0
|
|
3569
3572
|
}) {
|
|
3570
|
-
const { searchParams: s } =
|
|
3573
|
+
const { searchParams: s } = it(), a = t && o ? qt.lastState(t) : void 0, d = le(a), f = le(!1);
|
|
3571
3574
|
J(() => {
|
|
3572
3575
|
if (!a) {
|
|
3573
3576
|
d.current = a;
|
|
@@ -3617,7 +3620,7 @@ function Hl({
|
|
|
3617
3620
|
pageSizeOptions: o,
|
|
3618
3621
|
enabled: i = !0
|
|
3619
3622
|
}) {
|
|
3620
|
-
const { searchParams: l } =
|
|
3623
|
+
const { searchParams: l } = it(), c = t && i ? qt.perPage(t) : void 0, s = l.toString(), a = le(c);
|
|
3621
3624
|
J(() => {
|
|
3622
3625
|
if (!c) {
|
|
3623
3626
|
a.current = c;
|
|
@@ -3667,7 +3670,7 @@ function Tl({
|
|
|
3667
3670
|
readSnapshot: o,
|
|
3668
3671
|
readPerPage: i
|
|
3669
3672
|
}) {
|
|
3670
|
-
const { searchParams: l, setSearchParams: c, location: s } =
|
|
3673
|
+
const { searchParams: l, setSearchParams: c, location: s } = it(), a = le(null);
|
|
3671
3674
|
J(() => {
|
|
3672
3675
|
if (!t || a.current === s.pathname) return;
|
|
3673
3676
|
a.current = s.pathname;
|
|
@@ -3728,7 +3731,7 @@ const Nl = ({
|
|
|
3728
3731
|
}
|
|
3729
3732
|
),
|
|
3730
3733
|
children: t.map((l) => /* @__PURE__ */ e(
|
|
3731
|
-
|
|
3734
|
+
Xe,
|
|
3732
3735
|
{
|
|
3733
3736
|
selected: l.locked || r.includes(l.key),
|
|
3734
3737
|
disabled: l.locked,
|
|
@@ -3759,7 +3762,7 @@ const Nl = ({
|
|
|
3759
3762
|
) }),
|
|
3760
3763
|
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ u(Ue, { style: { width: 180 }, children: [
|
|
3761
3764
|
/* @__PURE__ */ e(
|
|
3762
|
-
|
|
3765
|
+
Xe,
|
|
3763
3766
|
{
|
|
3764
3767
|
startIcon: /* @__PURE__ */ e(F, { name: "CrossCircle" }),
|
|
3765
3768
|
onClick: t,
|
|
@@ -3767,7 +3770,7 @@ const Nl = ({
|
|
|
3767
3770
|
}
|
|
3768
3771
|
),
|
|
3769
3772
|
r && /* @__PURE__ */ e(
|
|
3770
|
-
|
|
3773
|
+
Xe,
|
|
3771
3774
|
{
|
|
3772
3775
|
intent: "danger",
|
|
3773
3776
|
startIcon: /* @__PURE__ */ e(F, { name: "Trash1" }),
|
|
@@ -4020,7 +4023,7 @@ const Nl = ({
|
|
|
4020
4023
|
}
|
|
4021
4024
|
) }),
|
|
4022
4025
|
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { style: { width: 200 }, children: r.map((o) => /* @__PURE__ */ e(
|
|
4023
|
-
|
|
4026
|
+
Xe,
|
|
4024
4027
|
{
|
|
4025
4028
|
selected: t === o,
|
|
4026
4029
|
onClick: () => n(o),
|
|
@@ -4115,7 +4118,7 @@ const Nl = ({
|
|
|
4115
4118
|
}
|
|
4116
4119
|
) }),
|
|
4117
4120
|
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { style: { width: 140 }, children: _l.map((s) => /* @__PURE__ */ e(
|
|
4118
|
-
|
|
4121
|
+
Xe,
|
|
4119
4122
|
{
|
|
4120
4123
|
selected: n === s,
|
|
4121
4124
|
endIcon: n === s ? /* @__PURE__ */ e(F, { name: "Check" }) : void 0,
|
|
@@ -4158,7 +4161,7 @@ const Nl = ({
|
|
|
4158
4161
|
}
|
|
4159
4162
|
) }),
|
|
4160
4163
|
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { style: { width: 140 }, children: $l.map((s) => /* @__PURE__ */ e(
|
|
4161
|
-
|
|
4164
|
+
Xe,
|
|
4162
4165
|
{
|
|
4163
4166
|
selected: i === s,
|
|
4164
4167
|
endIcon: i === s ? /* @__PURE__ */ e(F, { name: "Check" }) : void 0,
|
|
@@ -4271,7 +4274,7 @@ const Nl = ({
|
|
|
4271
4274
|
overflow: "overflow-y-auto",
|
|
4272
4275
|
customMaxHeight: "240px",
|
|
4273
4276
|
children: t.isLoading ? /* @__PURE__ */ e(h, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "Loading…" }) }) : g.length === 0 ? /* @__PURE__ */ e(h, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : g.map((A) => /* @__PURE__ */ e(
|
|
4274
|
-
|
|
4277
|
+
Xe,
|
|
4275
4278
|
{
|
|
4276
4279
|
closeOnSelect: !l,
|
|
4277
4280
|
selected: b(A),
|
|
@@ -4354,7 +4357,7 @@ const Nl = ({
|
|
|
4354
4357
|
),
|
|
4355
4358
|
children: [
|
|
4356
4359
|
/* @__PURE__ */ e(
|
|
4357
|
-
|
|
4360
|
+
Xe,
|
|
4358
4361
|
{
|
|
4359
4362
|
closeOnSelect: !1,
|
|
4360
4363
|
selected: s,
|
|
@@ -4370,7 +4373,7 @@ const Nl = ({
|
|
|
4370
4373
|
}
|
|
4371
4374
|
),
|
|
4372
4375
|
t.options.map((g) => /* @__PURE__ */ e(
|
|
4373
|
-
|
|
4376
|
+
Xe,
|
|
4374
4377
|
{
|
|
4375
4378
|
closeOnSelect: !1,
|
|
4376
4379
|
selected: l.has(g.value),
|
|
@@ -4512,7 +4515,7 @@ const Nl = ({
|
|
|
4512
4515
|
showPagination: s = !0
|
|
4513
4516
|
}) => {
|
|
4514
4517
|
var A;
|
|
4515
|
-
const { searchQueries: a, setSearchParams: d, searchParams: f } =
|
|
4518
|
+
const { searchQueries: a, setSearchParams: d, searchParams: f } = it(), p = f.get(n), g = p ? Number(p) : i, b = (M) => {
|
|
4516
4519
|
d({ ...a, [r]: String(M) });
|
|
4517
4520
|
}, D = (M) => {
|
|
4518
4521
|
d({
|
|
@@ -4537,7 +4540,7 @@ const Nl = ({
|
|
|
4537
4540
|
}
|
|
4538
4541
|
) }),
|
|
4539
4542
|
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { children: o.map((M) => /* @__PURE__ */ e(
|
|
4540
|
-
|
|
4543
|
+
Xe,
|
|
4541
4544
|
{
|
|
4542
4545
|
selected: M === g,
|
|
4543
4546
|
onClick: () => D(String(M)),
|
|
@@ -4592,7 +4595,7 @@ const rc = 240, Pi = ({
|
|
|
4592
4595
|
shortcut: i = "/",
|
|
4593
4596
|
collapsible: l = !0
|
|
4594
4597
|
}) => {
|
|
4595
|
-
const { searchParams: c, setSearchParams: s, searchQueries: a } =
|
|
4598
|
+
const { searchParams: c, setSearchParams: s, searchQueries: a } = it(), d = hn(t, c, r) || "", [f, p] = B(!l || !!d), [g, b] = B(l && !d), [D, C] = B(d), I = on(D, 350), A = le(null);
|
|
4596
4599
|
J(() => {
|
|
4597
4600
|
C(d), d && p(!0);
|
|
4598
4601
|
}, [d]), J(() => {
|
|
@@ -4858,7 +4861,7 @@ const rc = 240, Pi = ({
|
|
|
4858
4861
|
direction: "column",
|
|
4859
4862
|
overflow: "overflow-y-auto",
|
|
4860
4863
|
children: t.length === 0 ? /* @__PURE__ */ e(h, { direction: "column", paddingBlock: "sm", children: /* @__PURE__ */ e(w, { fontSize: "sm", color: "subtlest", children: "No saved views yet" }) }) : t.map((s) => /* @__PURE__ */ e(
|
|
4861
|
-
|
|
4864
|
+
Xe,
|
|
4862
4865
|
{
|
|
4863
4866
|
startIcon: /* @__PURE__ */ e(F, { name: "Bookmark" }),
|
|
4864
4867
|
onClick: () => r(s),
|
|
@@ -5115,7 +5118,7 @@ const rc = 240, Pi = ({
|
|
|
5115
5118
|
defaultPerPage: o = 10,
|
|
5116
5119
|
showPageSize: i
|
|
5117
5120
|
}) => {
|
|
5118
|
-
const { searchQueries: l, setSearchParams: c, searchParams: s } =
|
|
5121
|
+
const { searchQueries: l, setSearchParams: c, searchParams: s } = it(), a = s.get(t), d = a ? Number(a) : o, f = (p) => {
|
|
5119
5122
|
c({
|
|
5120
5123
|
...l,
|
|
5121
5124
|
[t]: p,
|
|
@@ -5136,7 +5139,7 @@ const rc = 240, Pi = ({
|
|
|
5136
5139
|
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ u(Ue, { style: { minWidth: 200 }, children: [
|
|
5137
5140
|
/* @__PURE__ */ e(h, { paddingInline: "sm", paddingBlock: "xs", children: /* @__PURE__ */ e(w, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Rows per page" }) }),
|
|
5138
5141
|
n.map((p) => /* @__PURE__ */ e(
|
|
5139
|
-
|
|
5142
|
+
Xe,
|
|
5140
5143
|
{
|
|
5141
5144
|
selected: p === d,
|
|
5142
5145
|
endIcon: p === d ? /* @__PURE__ */ e(F, { name: "Check" }) : void 0,
|
|
@@ -5177,20 +5180,20 @@ const rc = 240, Pi = ({
|
|
|
5177
5180
|
showPageSize: G,
|
|
5178
5181
|
hasColumns: T,
|
|
5179
5182
|
orderedColumns: H,
|
|
5180
|
-
allVisible:
|
|
5183
|
+
allVisible: V,
|
|
5181
5184
|
onToggleVisibility: Z,
|
|
5182
5185
|
onReorder: q,
|
|
5183
5186
|
onSetAllHidden: re,
|
|
5184
5187
|
showSavedViews: X,
|
|
5185
5188
|
savedViews: K,
|
|
5186
|
-
onApplyView:
|
|
5189
|
+
onApplyView: $,
|
|
5187
5190
|
onDeleteView: me,
|
|
5188
|
-
onSaveView:
|
|
5191
|
+
onSaveView: fe,
|
|
5189
5192
|
leadingActions: Re,
|
|
5190
5193
|
trailingActions: Qe
|
|
5191
|
-
} = t, [Fe, xe] = B(!1), { searchQueries: ve, setSearchParams: Be } =
|
|
5194
|
+
} = t, [Fe, xe] = B(!1), { searchQueries: ve, setSearchParams: Be } = it(), Ke = (x == null ? void 0 : x.rangeStart) ?? (((x == null ? void 0 : x.currentPage) || 0) > 1 ? (((x == null ? void 0 : x.currentPage) || 0) - 1) * ((x == null ? void 0 : x.perPage) || 0) + 1 : 1), $e = (x == null ? void 0 : x.rangeEnd) ?? ((x == null ? void 0 : x.totalCurrentPage) !== (x == null ? void 0 : x.perPage) ? x == null ? void 0 : x.totalData : ((x == null ? void 0 : x.currentPage) || 1) * ((x == null ? void 0 : x.totalCurrentPage) || 0)), ae = (Me) => {
|
|
5192
5195
|
Be({ ...ve, [C]: String(Me) });
|
|
5193
|
-
},
|
|
5196
|
+
}, ue = z || k && !!(x != null && x.totalPage), ye = () => {
|
|
5194
5197
|
p(), xe(!1);
|
|
5195
5198
|
};
|
|
5196
5199
|
return /* @__PURE__ */ u(
|
|
@@ -5254,16 +5257,16 @@ const rc = 240, Pi = ({
|
|
|
5254
5257
|
Zi,
|
|
5255
5258
|
{
|
|
5256
5259
|
views: K,
|
|
5257
|
-
onApply:
|
|
5260
|
+
onApply: $,
|
|
5258
5261
|
onDelete: me,
|
|
5259
|
-
onSave:
|
|
5262
|
+
onSave: fe
|
|
5260
5263
|
}
|
|
5261
5264
|
),
|
|
5262
5265
|
T && /* @__PURE__ */ e(
|
|
5263
5266
|
ji,
|
|
5264
5267
|
{
|
|
5265
5268
|
columns: H,
|
|
5266
|
-
allVisible:
|
|
5269
|
+
allVisible: V,
|
|
5267
5270
|
onToggle: Z,
|
|
5268
5271
|
onReorder: q,
|
|
5269
5272
|
onSetAllHidden: re
|
|
@@ -5286,7 +5289,7 @@ const rc = 240, Pi = ({
|
|
|
5286
5289
|
]
|
|
5287
5290
|
}
|
|
5288
5291
|
),
|
|
5289
|
-
|
|
5292
|
+
ue && /* @__PURE__ */ u(
|
|
5290
5293
|
h,
|
|
5291
5294
|
{
|
|
5292
5295
|
direction: "row",
|
|
@@ -5296,7 +5299,7 @@ const rc = 240, Pi = ({
|
|
|
5296
5299
|
gap: "sm",
|
|
5297
5300
|
fullWidth: !0,
|
|
5298
5301
|
children: [
|
|
5299
|
-
z ? /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${
|
|
5302
|
+
z ? /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${Ke}-${$e} of ${((De = x == null ? void 0 : x.totalData) == null ? void 0 : De.toLocaleString()) || 0}` }) : /* @__PURE__ */ e(h, { direction: "column" }),
|
|
5300
5303
|
k && !!(x != null && x.totalPage) && /* @__PURE__ */ e(
|
|
5301
5304
|
cn,
|
|
5302
5305
|
{
|
|
@@ -5305,7 +5308,7 @@ const rc = 240, Pi = ({
|
|
|
5305
5308
|
siblingCount: 0,
|
|
5306
5309
|
currentPage: x != null && x.currentPage ? Number(x.currentPage) : 1,
|
|
5307
5310
|
totalPages: Number(x.totalPage),
|
|
5308
|
-
onPageChange:
|
|
5311
|
+
onPageChange: ae
|
|
5309
5312
|
}
|
|
5310
5313
|
)
|
|
5311
5314
|
]
|
|
@@ -5360,16 +5363,16 @@ const rc = 240, Pi = ({
|
|
|
5360
5363
|
storage: G = Bi,
|
|
5361
5364
|
onReset: T,
|
|
5362
5365
|
leadingActions: H,
|
|
5363
|
-
trailingActions:
|
|
5366
|
+
trailingActions: V
|
|
5364
5367
|
}) => {
|
|
5365
5368
|
const Z = L ?? (R == null ? void 0 : R.scopeId), {
|
|
5366
5369
|
activeKeys: q,
|
|
5367
5370
|
configByKey: re,
|
|
5368
5371
|
hasActiveFilter: X,
|
|
5369
5372
|
toggleFilter: K,
|
|
5370
|
-
removeFilter:
|
|
5373
|
+
removeFilter: $,
|
|
5371
5374
|
getValue: me,
|
|
5372
|
-
setValue:
|
|
5375
|
+
setValue: fe,
|
|
5373
5376
|
clearValue: Re,
|
|
5374
5377
|
clearAll: Qe
|
|
5375
5378
|
} = fn({
|
|
@@ -5413,9 +5416,9 @@ const rc = 240, Pi = ({
|
|
|
5413
5416
|
readSnapshot: ve.read,
|
|
5414
5417
|
readPerPage: Be.read
|
|
5415
5418
|
});
|
|
5416
|
-
const
|
|
5419
|
+
const Ke = s ?? c[0] ?? 25, $e = !!(R != null && R.enabled) && xe.enabled, ae = () => {
|
|
5417
5420
|
Qe(), ve.clear(), T == null || T();
|
|
5418
|
-
},
|
|
5421
|
+
}, ue = Ie("md"), ye = p ? /* @__PURE__ */ e(
|
|
5419
5422
|
Pi,
|
|
5420
5423
|
{
|
|
5421
5424
|
searchKey: g,
|
|
@@ -5426,7 +5429,7 @@ const rc = 240, Pi = ({
|
|
|
5426
5429
|
collapsible: I
|
|
5427
5430
|
}
|
|
5428
5431
|
) : null;
|
|
5429
|
-
return
|
|
5432
|
+
return ue ? /* @__PURE__ */ u(
|
|
5430
5433
|
h,
|
|
5431
5434
|
{
|
|
5432
5435
|
display: "flex",
|
|
@@ -5458,7 +5461,7 @@ const rc = 240, Pi = ({
|
|
|
5458
5461
|
activeKeys: q,
|
|
5459
5462
|
onToggle: K,
|
|
5460
5463
|
hasActiveFilter: X,
|
|
5461
|
-
onReset:
|
|
5464
|
+
onReset: ae
|
|
5462
5465
|
}
|
|
5463
5466
|
),
|
|
5464
5467
|
C === "left" && ye,
|
|
@@ -5478,9 +5481,9 @@ const rc = 240, Pi = ({
|
|
|
5478
5481
|
activeKeys: q,
|
|
5479
5482
|
configByKey: re,
|
|
5480
5483
|
getValue: me,
|
|
5481
|
-
setValue:
|
|
5484
|
+
setValue: fe,
|
|
5482
5485
|
clearValue: Re,
|
|
5483
|
-
removeFilter:
|
|
5486
|
+
removeFilter: $
|
|
5484
5487
|
}
|
|
5485
5488
|
),
|
|
5486
5489
|
X && /* @__PURE__ */ e(
|
|
@@ -5489,7 +5492,7 @@ const rc = 240, Pi = ({
|
|
|
5489
5492
|
variant: "link",
|
|
5490
5493
|
tone: "brand",
|
|
5491
5494
|
size: "sm",
|
|
5492
|
-
onClick:
|
|
5495
|
+
onClick: ae,
|
|
5493
5496
|
children: "Reset"
|
|
5494
5497
|
}
|
|
5495
5498
|
)
|
|
@@ -5508,7 +5511,7 @@ const rc = 240, Pi = ({
|
|
|
5508
5511
|
pageKey: i,
|
|
5509
5512
|
perPageKey: l,
|
|
5510
5513
|
pageSizeOptions: c,
|
|
5511
|
-
defaultPerPage:
|
|
5514
|
+
defaultPerPage: Ke,
|
|
5512
5515
|
showPagination: a,
|
|
5513
5516
|
showResultCount: d,
|
|
5514
5517
|
showPageSize: f
|
|
@@ -5534,7 +5537,7 @@ const rc = 240, Pi = ({
|
|
|
5534
5537
|
onSetAllHidden: Fe.setAllHidden
|
|
5535
5538
|
}
|
|
5536
5539
|
),
|
|
5537
|
-
|
|
5540
|
+
V
|
|
5538
5541
|
] })
|
|
5539
5542
|
]
|
|
5540
5543
|
}
|
|
@@ -5547,11 +5550,11 @@ const rc = 240, Pi = ({
|
|
|
5547
5550
|
configByKey: re,
|
|
5548
5551
|
hasActiveFilter: X,
|
|
5549
5552
|
toggleFilter: K,
|
|
5550
|
-
removeFilter:
|
|
5553
|
+
removeFilter: $,
|
|
5551
5554
|
getValue: me,
|
|
5552
|
-
setValue:
|
|
5555
|
+
setValue: fe,
|
|
5553
5556
|
clearValue: Re,
|
|
5554
|
-
onReset:
|
|
5557
|
+
onReset: ae,
|
|
5555
5558
|
searchable: p,
|
|
5556
5559
|
searchKey: g,
|
|
5557
5560
|
filterKey: n,
|
|
@@ -5562,7 +5565,7 @@ const rc = 240, Pi = ({
|
|
|
5562
5565
|
pagination: A,
|
|
5563
5566
|
perPageKey: l,
|
|
5564
5567
|
pageSizeOptions: c,
|
|
5565
|
-
defaultPerPage:
|
|
5568
|
+
defaultPerPage: Ke,
|
|
5566
5569
|
showPagination: a,
|
|
5567
5570
|
showResultCount: d,
|
|
5568
5571
|
showPageSize: f,
|
|
@@ -5578,7 +5581,7 @@ const rc = 240, Pi = ({
|
|
|
5578
5581
|
onDeleteView: xe.deleteView,
|
|
5579
5582
|
onSaveView: xe.saveView,
|
|
5580
5583
|
leadingActions: H,
|
|
5581
|
-
trailingActions:
|
|
5584
|
+
trailingActions: V
|
|
5582
5585
|
}
|
|
5583
5586
|
);
|
|
5584
5587
|
}, cc = (t) => {
|
|
@@ -5628,7 +5631,7 @@ const rc = 240, Pi = ({
|
|
|
5628
5631
|
activeFilterKey: o,
|
|
5629
5632
|
pageKey: i,
|
|
5630
5633
|
searchKey: c
|
|
5631
|
-
}), { searchParams: C } =
|
|
5634
|
+
}), { searchParams: C } = it(), I = C.toString();
|
|
5632
5635
|
return Ee(() => {
|
|
5633
5636
|
const M = {}, x = {}, S = ri(C.get(i), s), L = ri(C.get(l), a);
|
|
5634
5637
|
M[(d == null ? void 0 : d.page) ?? "page"] = S, M[(d == null ? void 0 : d.perPage) ?? "perPage"] = L;
|
|
@@ -5640,11 +5643,11 @@ const rc = 240, Pi = ({
|
|
|
5640
5643
|
if (!G) continue;
|
|
5641
5644
|
const T = D(G);
|
|
5642
5645
|
x[z] = T;
|
|
5643
|
-
const H = f == null ? void 0 : f[z],
|
|
5644
|
-
if (
|
|
5646
|
+
const H = f == null ? void 0 : f[z], V = H ? H(T) : ac(G, T);
|
|
5647
|
+
if (V == null || Array.isArray(V) && V.length === 0)
|
|
5645
5648
|
continue;
|
|
5646
5649
|
const Z = (d == null ? void 0 : d[z]) ?? z;
|
|
5647
|
-
M[Z] =
|
|
5650
|
+
M[Z] = V, k = !0;
|
|
5648
5651
|
}
|
|
5649
5652
|
return {
|
|
5650
5653
|
params: M,
|
|
@@ -6095,7 +6098,7 @@ const rc = 240, Pi = ({
|
|
|
6095
6098
|
showPagination: i = !0,
|
|
6096
6099
|
totalData: l
|
|
6097
6100
|
}) => {
|
|
6098
|
-
const { searchQueries: c, setSearchParams: s, searchParams: a } =
|
|
6101
|
+
const { searchQueries: c, setSearchParams: s, searchParams: a } = it(), d = a.get(n), f = (D) => {
|
|
6099
6102
|
s({ ...c, [r]: String(D) });
|
|
6100
6103
|
}, p = (D) => {
|
|
6101
6104
|
s({
|
|
@@ -6540,15 +6543,15 @@ const rc = 240, Pi = ({
|
|
|
6540
6543
|
}) => {
|
|
6541
6544
|
const z = S !== void 0, [G, T] = B(
|
|
6542
6545
|
L ?? null
|
|
6543
|
-
), H = z ? S ?? null : G,
|
|
6546
|
+
), H = z ? S ?? null : G, V = (O) => {
|
|
6544
6547
|
if (O.sortKey) return O.sortKey;
|
|
6545
6548
|
if (typeof O.accessor == "string") return O.accessor;
|
|
6546
6549
|
}, Z = (O) => {
|
|
6547
|
-
const Y =
|
|
6550
|
+
const Y = V(O);
|
|
6548
6551
|
if (!Y) return;
|
|
6549
6552
|
let U;
|
|
6550
6553
|
!H || H.key !== Y ? U = { key: Y, direction: "asc" } : H.direction === "asc" ? U = { key: Y, direction: "desc" } : U = null, z || T(U), R == null || R(U);
|
|
6551
|
-
}, re = [n, o, i].filter((O) => O !== void 0).length, X = !!b, K = !!n || !!o || !!i || X,
|
|
6554
|
+
}, re = [n, o, i].filter((O) => O !== void 0).length, X = !!b, K = !!n || !!o || !!i || X, $ = "var(--sa-border-subtle, #0b120e24)", me = `1px solid ${$}`, fe = `inset 1px 0 0 ${$}`, Re = `inset -1px 0 0 ${$}`, Qe = re === 3 ? X ? "178px" : "140px" : re === 2 ? X ? "140px" : "102px" : re === 1 ? X ? "112px" : "74px" : X ? "74px" : "", Fe = (O, Y) => {
|
|
6552
6555
|
if (!Y) return O;
|
|
6553
6556
|
if (typeof Y == "function") return Y(O);
|
|
6554
6557
|
if (typeof Y == "string") return O[Y];
|
|
@@ -6558,7 +6561,7 @@ const rc = 240, Pi = ({
|
|
|
6558
6561
|
const O = f.current;
|
|
6559
6562
|
ve(O.scrollHeight > O.clientHeight);
|
|
6560
6563
|
}, [r, f]);
|
|
6561
|
-
const Be = le(null), [
|
|
6564
|
+
const Be = le(null), [Ke, $e] = B([]), [ae, ue] = B(
|
|
6562
6565
|
() => A ?? {}
|
|
6563
6566
|
), ye = le(null);
|
|
6564
6567
|
mt(() => {
|
|
@@ -6570,37 +6573,37 @@ const rc = 240, Pi = ({
|
|
|
6570
6573
|
Be.current.querySelectorAll("thead tr th")
|
|
6571
6574
|
), Y = [];
|
|
6572
6575
|
let U = 0;
|
|
6573
|
-
O.forEach((
|
|
6574
|
-
Y[Le] = U, Le < p && (U +=
|
|
6576
|
+
O.forEach((he, Le) => {
|
|
6577
|
+
Y[Le] = U, Le < p && (U += he.offsetWidth);
|
|
6575
6578
|
}), $e(Y);
|
|
6576
|
-
}, [p, t, r,
|
|
6579
|
+
}, [p, t, r, ae]);
|
|
6577
6580
|
const De = (O) => {
|
|
6578
6581
|
g && g(O < p ? O : O + 1);
|
|
6579
6582
|
}, Me = (O, Y) => {
|
|
6580
|
-
const U =
|
|
6583
|
+
const U = ae[O];
|
|
6581
6584
|
if (U !== void 0) {
|
|
6582
|
-
const
|
|
6583
|
-
return { width:
|
|
6585
|
+
const he = `${U}px`;
|
|
6586
|
+
return { width: he, minWidth: he, maxWidth: he };
|
|
6584
6587
|
}
|
|
6585
6588
|
return Y ? { width: Y } : {};
|
|
6586
6589
|
}, st = (O) => I && (O.resizable ?? !0), at = (O, Y) => {
|
|
6587
6590
|
O.preventDefault(), O.stopPropagation();
|
|
6588
6591
|
const U = O.currentTarget.closest("th");
|
|
6589
6592
|
if (!U) return;
|
|
6590
|
-
const
|
|
6591
|
-
ye.current = { colIndex: Y, startX: O.clientX, startWidth:
|
|
6593
|
+
const he = Math.round(U.getBoundingClientRect().width);
|
|
6594
|
+
ye.current = { colIndex: Y, startX: O.clientX, startWidth: he };
|
|
6592
6595
|
const Le = document.body.style.userSelect, Ce = document.body.style.cursor;
|
|
6593
6596
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
6594
|
-
const Ne = (
|
|
6597
|
+
const Ne = (et) => {
|
|
6595
6598
|
var We;
|
|
6596
6599
|
const Ae = ye.current;
|
|
6597
6600
|
if (!Ae) return;
|
|
6598
|
-
const Dt = ((We = t[Ae.colIndex]) == null ? void 0 : We.minWidth) ?? x, yt = Math.max(Dt, Ae.startWidth + (
|
|
6599
|
-
|
|
6601
|
+
const Dt = ((We = t[Ae.colIndex]) == null ? void 0 : We.minWidth) ?? x, yt = Math.max(Dt, Ae.startWidth + (et.clientX - Ae.startX));
|
|
6602
|
+
ue(
|
|
6600
6603
|
(He) => He[Ae.colIndex] === yt ? He : { ...He, [Ae.colIndex]: yt }
|
|
6601
6604
|
);
|
|
6602
6605
|
}, dt = () => {
|
|
6603
|
-
document.removeEventListener("mousemove", Ne), document.removeEventListener("mouseup", dt), document.body.style.userSelect = Le, document.body.style.cursor = Ce, ye.current = null, M &&
|
|
6606
|
+
document.removeEventListener("mousemove", Ne), document.removeEventListener("mouseup", dt), document.body.style.userSelect = Le, document.body.style.cursor = Ce, ye.current = null, M && ue((et) => (M(et), et));
|
|
6604
6607
|
};
|
|
6605
6608
|
document.addEventListener("mousemove", Ne), document.addEventListener("mouseup", dt);
|
|
6606
6609
|
};
|
|
@@ -6612,17 +6615,17 @@ const rc = 240, Pi = ({
|
|
|
6612
6615
|
height: "40px",
|
|
6613
6616
|
whiteSpace: "nowrap"
|
|
6614
6617
|
},
|
|
6615
|
-
children: /* @__PURE__ */ u(
|
|
6618
|
+
children: /* @__PURE__ */ u(nt, { children: [
|
|
6616
6619
|
t.map((O, Y) => {
|
|
6617
6620
|
var Mt, ut;
|
|
6618
|
-
const U = p > 0 && Y < p,
|
|
6621
|
+
const U = p > 0 && Y < p, he = Ke[Y] ?? 0, Le = st(O), Ne = Y === t.length - 1 && K && k, dt = V(O), et = !!O.sortable && !!dt, Ae = et && (H == null ? void 0 : H.key) === dt ? H.direction : null, Dt = O.title || ((Mt = O.accessor) == null ? void 0 : Mt.toString()) || "", yt = (ut = O.headerTooltip) != null && ut.showIcon ? /* @__PURE__ */ e(
|
|
6619
6622
|
F,
|
|
6620
6623
|
{
|
|
6621
6624
|
name: "InfoCircle",
|
|
6622
6625
|
size: "xs",
|
|
6623
6626
|
style: { flexShrink: 0, color: "var(--sa-icon-subtle, #8c8f97)", opacity: 0.75 }
|
|
6624
6627
|
}
|
|
6625
|
-
) : null, We = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: Dt }), He =
|
|
6628
|
+
) : null, We = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: Dt }), He = et ? /* @__PURE__ */ u(
|
|
6626
6629
|
"button",
|
|
6627
6630
|
{
|
|
6628
6631
|
type: "button",
|
|
@@ -6659,7 +6662,7 @@ const rc = 240, Pi = ({
|
|
|
6659
6662
|
style: {
|
|
6660
6663
|
position: "sticky",
|
|
6661
6664
|
top: 0,
|
|
6662
|
-
left: U ?
|
|
6665
|
+
left: U ? he : void 0,
|
|
6663
6666
|
zIndex: U ? 4 : 2,
|
|
6664
6667
|
paddingLeft: Y === 0 ? "12px" : "",
|
|
6665
6668
|
borderRight: d && !Ne && !U ? me : void 0,
|
|
@@ -6748,21 +6751,21 @@ const rc = 240, Pi = ({
|
|
|
6748
6751
|
right: 0,
|
|
6749
6752
|
zIndex: 3,
|
|
6750
6753
|
borderBottom: d ? me : void 0,
|
|
6751
|
-
boxShadow: d && k ?
|
|
6754
|
+
boxShadow: d && k ? fe : void 0
|
|
6752
6755
|
}
|
|
6753
6756
|
}
|
|
6754
6757
|
) : null
|
|
6755
6758
|
] })
|
|
6756
6759
|
}
|
|
6757
6760
|
),
|
|
6758
|
-
/* @__PURE__ */ e(Jr, { children: l ? /* @__PURE__ */ e(
|
|
6761
|
+
/* @__PURE__ */ e(Jr, { children: l ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ve, { colSpan: t.length + 1, children: /* @__PURE__ */ u(h, { direction: "column", style: { gap: "16px" }, children: [
|
|
6759
6762
|
/* @__PURE__ */ e(xt, { variant: "list" }),
|
|
6760
6763
|
/* @__PURE__ */ e(xt, { variant: "list" }),
|
|
6761
6764
|
/* @__PURE__ */ e(xt, { variant: "list" }),
|
|
6762
6765
|
/* @__PURE__ */ e(xt, { variant: "list" }),
|
|
6763
6766
|
/* @__PURE__ */ e(xt, { variant: "list" })
|
|
6764
|
-
] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(
|
|
6765
|
-
|
|
6767
|
+
] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ve, { colSpan: t.length + 1, children: C }) }) : r == null ? void 0 : r.map((O, Y) => /* @__PURE__ */ u(
|
|
6768
|
+
nt,
|
|
6766
6769
|
{
|
|
6767
6770
|
style: {
|
|
6768
6771
|
transition: "background-color 0.3s ease",
|
|
@@ -6770,20 +6773,20 @@ const rc = 240, Pi = ({
|
|
|
6770
6773
|
borderBottom: Y === r.length - 1 && xe ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
6771
6774
|
},
|
|
6772
6775
|
onMouseEnter: (U) => {
|
|
6773
|
-
const
|
|
6774
|
-
|
|
6776
|
+
const he = U.currentTarget;
|
|
6777
|
+
he.style.backgroundColor = ni, Array.from(he.querySelectorAll("td")).forEach((Le) => {
|
|
6775
6778
|
Le.style.position === "sticky" && (Le.style.backgroundColor = ni);
|
|
6776
6779
|
});
|
|
6777
6780
|
},
|
|
6778
6781
|
onMouseLeave: (U) => {
|
|
6779
|
-
const
|
|
6780
|
-
|
|
6782
|
+
const he = U.currentTarget;
|
|
6783
|
+
he.style.backgroundColor = "", Array.from(he.querySelectorAll("td")).forEach((Le) => {
|
|
6781
6784
|
Le.style.position === "sticky" && (Le.style.backgroundColor = Pr);
|
|
6782
6785
|
});
|
|
6783
6786
|
},
|
|
6784
6787
|
children: [
|
|
6785
|
-
t.map((U,
|
|
6786
|
-
const Le = U.render ? U.render(O, Y, r) : Fe(O, U.accessor), Ce = p > 0 &&
|
|
6788
|
+
t.map((U, he) => {
|
|
6789
|
+
const Le = U.render ? U.render(O, Y, r) : Fe(O, U.accessor), Ce = p > 0 && he < p, Ne = Ke[he] ?? 0, dt = ae[he] !== void 0, et = Ce && he === p - 1;
|
|
6787
6790
|
return /* @__PURE__ */ e(
|
|
6788
6791
|
Ve,
|
|
6789
6792
|
{
|
|
@@ -6793,14 +6796,14 @@ const rc = 240, Pi = ({
|
|
|
6793
6796
|
zIndex: Ce ? 1 : void 0,
|
|
6794
6797
|
backgroundColor: Ce ? Pr : void 0,
|
|
6795
6798
|
transition: Ce ? "background-color 0.3s ease" : void 0,
|
|
6796
|
-
paddingLeft:
|
|
6799
|
+
paddingLeft: he === 0 ? "12px" : "",
|
|
6797
6800
|
whiteSpace: "nowrap",
|
|
6798
6801
|
overflow: dt ? "hidden" : void 0,
|
|
6799
6802
|
borderLeft: U.showBorderLeft ? me : void 0,
|
|
6800
6803
|
borderRight: U.showBorderRight ? me : void 0,
|
|
6801
|
-
boxShadow:
|
|
6804
|
+
boxShadow: et ? Re : void 0,
|
|
6802
6805
|
textAlign: U.textAlign === "text-right" ? "right" : U.textAlign === "text-center" ? "center" : "left",
|
|
6803
|
-
...Me(
|
|
6806
|
+
...Me(he, U.width)
|
|
6804
6807
|
},
|
|
6805
6808
|
children: typeof Le == "string" ? /* @__PURE__ */ e(
|
|
6806
6809
|
w,
|
|
@@ -6815,7 +6818,7 @@ const rc = 240, Pi = ({
|
|
|
6815
6818
|
}
|
|
6816
6819
|
) : Le
|
|
6817
6820
|
},
|
|
6818
|
-
`row-${Y}-col-${
|
|
6821
|
+
`row-${Y}-col-${he}`
|
|
6819
6822
|
);
|
|
6820
6823
|
}),
|
|
6821
6824
|
K ? /* @__PURE__ */ e(Ve, { style: {
|
|
@@ -6824,11 +6827,11 @@ const rc = 240, Pi = ({
|
|
|
6824
6827
|
right: 0,
|
|
6825
6828
|
zIndex: 1,
|
|
6826
6829
|
backgroundColor: Pr,
|
|
6827
|
-
boxShadow: k ?
|
|
6830
|
+
boxShadow: k ? fe : void 0,
|
|
6828
6831
|
transition: "background-color 0.3s ease"
|
|
6829
6832
|
}, children: /* @__PURE__ */ e(pe, { direction: "row", align: "center", justify: "center", gap: "sm", children: D.map((U) => {
|
|
6830
|
-
const
|
|
6831
|
-
return U === "detail" && n && (a == null ? void 0 : a(O)) !== !1 ? /* @__PURE__ */ e(Te, { label: "Detail", position:
|
|
6833
|
+
const he = Y === r.length - 1 ? "top" : "bottom";
|
|
6834
|
+
return U === "detail" && n && (a == null ? void 0 : a(O)) !== !1 ? /* @__PURE__ */ e(Te, { label: "Detail", position: he, children: /* @__PURE__ */ e(
|
|
6832
6835
|
N,
|
|
6833
6836
|
{
|
|
6834
6837
|
size: "xs",
|
|
@@ -6837,7 +6840,7 @@ const rc = 240, Pi = ({
|
|
|
6837
6840
|
onClick: () => n(O.id, O),
|
|
6838
6841
|
iconLeft: /* @__PURE__ */ e(F, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
6839
6842
|
}
|
|
6840
|
-
) }, "detail") : U === "update" && o && (s == null ? void 0 : s(O)) !== !1 ? /* @__PURE__ */ e(Te, { label: "Update", position:
|
|
6843
|
+
) }, "detail") : U === "update" && o && (s == null ? void 0 : s(O)) !== !1 ? /* @__PURE__ */ e(Te, { label: "Update", position: he, children: /* @__PURE__ */ e(
|
|
6841
6844
|
N,
|
|
6842
6845
|
{
|
|
6843
6846
|
size: "xs",
|
|
@@ -6846,7 +6849,7 @@ const rc = 240, Pi = ({
|
|
|
6846
6849
|
onClick: () => o(O),
|
|
6847
6850
|
iconLeft: /* @__PURE__ */ e(F, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
6848
6851
|
}
|
|
6849
|
-
) }, "update") : U === "delete" && i && (c == null ? void 0 : c(O)) !== !1 ? /* @__PURE__ */ e(Te, { label: "Delete", position:
|
|
6852
|
+
) }, "update") : U === "delete" && i && (c == null ? void 0 : c(O)) !== !1 ? /* @__PURE__ */ e(Te, { label: "Delete", position: he, children: /* @__PURE__ */ e(
|
|
6850
6853
|
N,
|
|
6851
6854
|
{
|
|
6852
6855
|
size: "xs",
|
|
@@ -7238,13 +7241,13 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7238
7241
|
rowActions: G,
|
|
7239
7242
|
rowActionsMode: T = "auto",
|
|
7240
7243
|
selectable: H = !1,
|
|
7241
|
-
selectedKeys:
|
|
7244
|
+
selectedKeys: V,
|
|
7242
7245
|
defaultSelectedKeys: Z,
|
|
7243
7246
|
onSelectionChange: q,
|
|
7244
7247
|
isRowSelectable: re
|
|
7245
7248
|
}) => {
|
|
7246
7249
|
Vc();
|
|
7247
|
-
const K = !Ie(A) && I !== "scroll",
|
|
7250
|
+
const K = !Ie(A) && I !== "scroll", $ = !!(G != null && G.length), me = Mc(), fe = $ && (T === "column" || T === "auto" && me), Re = Math.min((G == null ? void 0 : G.length) ?? 0, jr + 1), Qe = Re > jr ? 1 : Re, Fe = lr * 2 + Qe * Nc + Math.max(0, Qe - 1) * Zr, xe = fe ? Fe : 1, [ve, Be] = B(null);
|
|
7248
7251
|
J(() => {
|
|
7249
7252
|
if (!ve) return;
|
|
7250
7253
|
const y = () => Be(null), v = setTimeout(() => document.addEventListener("click", y), 0);
|
|
@@ -7252,13 +7255,13 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7252
7255
|
clearTimeout(v), document.removeEventListener("click", y);
|
|
7253
7256
|
};
|
|
7254
7257
|
}, [ve]);
|
|
7255
|
-
const [
|
|
7258
|
+
const [Ke, $e] = B(
|
|
7256
7259
|
() => /* @__PURE__ */ new Set()
|
|
7257
|
-
),
|
|
7258
|
-
d == null || d(y),
|
|
7260
|
+
), ae = a !== void 0, [ue, ye] = B({}), De = a ?? ue, Me = (y) => {
|
|
7261
|
+
d == null || d(y), ae || ye(y);
|
|
7259
7262
|
}, st = g !== void 0, [at, O] = B(
|
|
7260
7263
|
b ?? null
|
|
7261
|
-
), Y = st ? g ?? null : at, U = !D,
|
|
7264
|
+
), Y = st ? g ?? null : at, U = !D, he = (y) => {
|
|
7262
7265
|
D == null || D(y), st || O(y);
|
|
7263
7266
|
}, { headerGroups: Le, leafColumns: Ce, hasGroups: Ne } = Ee(() => {
|
|
7264
7267
|
var oe;
|
|
@@ -7275,19 +7278,19 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7275
7278
|
isGroup: !1,
|
|
7276
7279
|
leaves: y.has(Se.key) ? [] : [Se]
|
|
7277
7280
|
};
|
|
7278
|
-
}).filter((ie) => ie.leaves.length > 0),
|
|
7281
|
+
}).filter((ie) => ie.leaves.length > 0), _ = W.some((ie) => ie.isGroup);
|
|
7279
7282
|
let ee = W.flatMap((ie) => ie.leaves);
|
|
7280
|
-
if (!
|
|
7283
|
+
if (!_ && ((oe = De.order) != null && oe.length)) {
|
|
7281
7284
|
const ie = new Map(De.order.map((ke, Se) => [ke, Se]));
|
|
7282
7285
|
ee = [...ee].sort(
|
|
7283
7286
|
(ke, Se) => (ie.get(ke.key) ?? 1 / 0) - (ie.get(Se.key) ?? 1 / 0)
|
|
7284
7287
|
);
|
|
7285
7288
|
}
|
|
7286
|
-
return { headerGroups: W, leafColumns: ee, hasGroups:
|
|
7289
|
+
return { headerGroups: W, leafColumns: ee, hasGroups: _ };
|
|
7287
7290
|
}, [t, De]), dt = Ee(
|
|
7288
7291
|
() => new Map(Ce.map((y, v) => [y.key, v])),
|
|
7289
7292
|
[Ce]
|
|
7290
|
-
),
|
|
7293
|
+
), et = !Ne && Ce.some((y) => (y.col.headerColSpan ?? 1) > 1), Ae = Ce.map((y) => y.key).join("|"), Dt = (y, v) => {
|
|
7291
7294
|
const W = y.sortKey ?? (typeof y.accessor == "string" ? y.accessor : void 0);
|
|
7292
7295
|
return W ? v[W] : void 0;
|
|
7293
7296
|
}, yt = (y) => y.sortable ?? (!!y.sortKey || typeof y.accessor == "string"), We = Ee(() => {
|
|
@@ -7296,15 +7299,15 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7296
7299
|
if (!y) return r;
|
|
7297
7300
|
const v = Y.direction === "asc" ? 1 : -1;
|
|
7298
7301
|
return [...r].sort(
|
|
7299
|
-
(W,
|
|
7302
|
+
(W, _) => Pc(Dt(y.col, W), Dt(y.col, _)) * v
|
|
7300
7303
|
);
|
|
7301
|
-
}, [r, U, Y, Ce]), He = !Ne && !
|
|
7304
|
+
}, [r, U, Y, Ce]), He = !Ne && !et, Mt = !!s && He, [ut, kt] = xo(s ?? ""), St = Mt ? ut : void 0, Et = le(null), [_e, Je] = B();
|
|
7302
7305
|
mt(() => {
|
|
7303
|
-
|
|
7306
|
+
Je(void 0);
|
|
7304
7307
|
}, [Ae]), mt(() => {
|
|
7305
7308
|
if (!He || _e || !Et.current) return;
|
|
7306
7309
|
const y = Et.current.querySelectorAll("th.sa-tl-leaf");
|
|
7307
|
-
|
|
7310
|
+
Je(Array.from(y).map((v) => v.offsetWidth));
|
|
7308
7311
|
}, [_e, He]);
|
|
7309
7312
|
const [Qt, Jt] = B(), [Cr, wr] = B(0);
|
|
7310
7313
|
mt(() => {
|
|
@@ -7316,11 +7319,11 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7316
7319
|
if ((St == null ? void 0 : St[v]) != null) return St[v];
|
|
7317
7320
|
if (y.width != null) return y.width;
|
|
7318
7321
|
if ((_e == null ? void 0 : _e[v]) != null) return _e[v];
|
|
7319
|
-
}, Yt = (y, v) => typeof y.width == "number" ? y.width : _e == null ? void 0 : _e[v], Ft = De.frozenKey && !Ne && !
|
|
7322
|
+
}, Yt = (y, v) => typeof y.width == "number" ? y.width : _e == null ? void 0 : _e[v], Ft = De.frozenKey && !Ne && !et ? Ce.findIndex((y) => y.key === De.frozenKey) : -1, E = (y) => y <= Ft, P = H ? Pt : 0, Q = (y) => {
|
|
7320
7323
|
const v = Qt ?? _e;
|
|
7321
|
-
if (!v) return
|
|
7322
|
-
let W =
|
|
7323
|
-
for (let
|
|
7324
|
+
if (!v) return P;
|
|
7325
|
+
let W = P;
|
|
7326
|
+
for (let _ = 0; _ < y; _++) W += v[_] ?? 0;
|
|
7324
7327
|
return W;
|
|
7325
7328
|
};
|
|
7326
7329
|
mt(() => {
|
|
@@ -7338,19 +7341,19 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7338
7341
|
Jt(
|
|
7339
7342
|
(ie) => ie && ie.length === oe.length && ie.every((ke, Se) => Math.abs(ke - oe[Se]) < 0.5) ? ie : oe
|
|
7340
7343
|
);
|
|
7341
|
-
},
|
|
7344
|
+
}, _ = new ResizeObserver(() => {
|
|
7342
7345
|
v || (v = requestAnimationFrame(W));
|
|
7343
7346
|
});
|
|
7344
|
-
return
|
|
7345
|
-
v && cancelAnimationFrame(v),
|
|
7347
|
+
return _.observe(y), y.querySelectorAll("th.sa-tl-leaf").forEach((ee) => _.observe(ee)), W(), () => {
|
|
7348
|
+
v && cancelAnimationFrame(v), _.disconnect();
|
|
7346
7349
|
};
|
|
7347
7350
|
}, [Ae, Ft, H, _e, St]);
|
|
7348
|
-
const
|
|
7351
|
+
const ce = le(null), [ge, ze] = B("100vh");
|
|
7349
7352
|
mt(() => {
|
|
7350
7353
|
if (C !== void 0) return;
|
|
7351
7354
|
const y = () => {
|
|
7352
|
-
if (
|
|
7353
|
-
const v =
|
|
7355
|
+
if (ce.current) {
|
|
7356
|
+
const v = ce.current.getBoundingClientRect().top;
|
|
7354
7357
|
ze(
|
|
7355
7358
|
`calc(100vh - ${v}px - var(--sa-floating-footer-height, 0px) + 12px)`
|
|
7356
7359
|
);
|
|
@@ -7358,11 +7361,11 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7358
7361
|
};
|
|
7359
7362
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
7360
7363
|
}, [C]);
|
|
7361
|
-
const
|
|
7364
|
+
const de = (y, v) => n ? n(y, v) : v, tt = V !== void 0, [Pe, ot] = B(
|
|
7362
7365
|
() => new Set(Z ?? [])
|
|
7363
|
-
),
|
|
7364
|
-
() =>
|
|
7365
|
-
[
|
|
7366
|
+
), Ye = Ee(
|
|
7367
|
+
() => tt ? new Set(V) : Pe,
|
|
7368
|
+
[tt, V, Pe]
|
|
7366
7369
|
);
|
|
7367
7370
|
J(() => {
|
|
7368
7371
|
H && !n && process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -7370,40 +7373,40 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7370
7373
|
);
|
|
7371
7374
|
}, [H, !n]);
|
|
7372
7375
|
const ct = (y) => {
|
|
7373
|
-
if (
|
|
7374
|
-
const v = We.filter((W,
|
|
7376
|
+
if (tt || ot(y), q) {
|
|
7377
|
+
const v = We.filter((W, _) => y.has(de(W, _)));
|
|
7375
7378
|
q(Array.from(y), v);
|
|
7376
7379
|
}
|
|
7377
7380
|
}, zt = (y, v) => H && (re ? re(y, v) : !0), bt = (y) => {
|
|
7378
|
-
const v = new Set(
|
|
7381
|
+
const v = new Set(Ye);
|
|
7379
7382
|
v.has(y) ? v.delete(y) : v.add(y), ct(v);
|
|
7380
7383
|
}, Ht = Ee(
|
|
7381
|
-
() => H ? We.map((y, v) => ({ row: y, i: v, key:
|
|
7384
|
+
() => H ? We.map((y, v) => ({ row: y, i: v, key: de(y, v) })).filter(
|
|
7382
7385
|
({ row: y, i: v }) => re ? re(y, v) : !0
|
|
7383
7386
|
).map(({ key: y }) => y) : [],
|
|
7384
7387
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7385
7388
|
[H, We, re, n]
|
|
7386
|
-
), Cn = Ht.filter((y) =>
|
|
7387
|
-
const y = new Set(
|
|
7389
|
+
), Cn = Ht.filter((y) => Ye.has(y)), Dr = Ht.length > 0 && Cn.length === Ht.length, wn = Cn.length > 0 && !Dr, Qi = () => {
|
|
7390
|
+
const y = new Set(Ye);
|
|
7388
7391
|
Dr ? Ht.forEach((v) => y.delete(v)) : Ht.forEach((v) => y.add(v)), ct(y);
|
|
7389
7392
|
}, kr = (y, v, W) => {
|
|
7390
|
-
const
|
|
7391
|
-
if (p && !y.render && typeof
|
|
7393
|
+
const _ = y.render ? y.render(v, W, We) : _c(v, y.accessor);
|
|
7394
|
+
if (p && !y.render && typeof _ == "string") {
|
|
7392
7395
|
const ee = y.key ?? (typeof y.accessor == "string" ? y.accessor : void 0), oe = ee ? p[ee] : void 0;
|
|
7393
|
-
if (oe) return /* @__PURE__ */ e(Oc, { text:
|
|
7396
|
+
if (oe) return /* @__PURE__ */ e(Oc, { text: _, query: oe });
|
|
7394
7397
|
}
|
|
7395
|
-
return
|
|
7396
|
-
}, Sr = Ce.length + (H ? 1 : 0) + (
|
|
7398
|
+
return _;
|
|
7399
|
+
}, Sr = Ce.length + (H ? 1 : 0) + ($ ? 1 : 0), Dn = ["80%", "55%", "70%", "45%", "90%", "60%"], Ji = (y, v) => Dn[(y * 7 + v * 3) % Dn.length], Yi = (y, v) => /* @__PURE__ */ e(xt, { height: 14, width: Ji(y, v), borderRadius: "rounded-sm" }), Xi = Array.from({ length: z }, (y, v) => /* @__PURE__ */ u(nt, { children: [
|
|
7397
7400
|
H && /* @__PURE__ */ e(Ve, { style: { width: Pt, padding: 0 }, children: /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(xt, { height: 14, width: 14, borderRadius: "rounded-sm" }) }) }),
|
|
7398
|
-
Ce.map(({ col: W, key:
|
|
7401
|
+
Ce.map(({ col: W, key: _ }, ee) => /* @__PURE__ */ e(
|
|
7399
7402
|
Ve,
|
|
7400
7403
|
{
|
|
7401
7404
|
style: { textAlign: jt(W.align) },
|
|
7402
7405
|
children: Yi(v, ee)
|
|
7403
7406
|
},
|
|
7404
|
-
`sa-tl-sk-${v}-${
|
|
7407
|
+
`sa-tl-sk-${v}-${_}`
|
|
7405
7408
|
)),
|
|
7406
|
-
|
|
7409
|
+
$ && /* @__PURE__ */ e(Ve, { style: { width: xe, padding: 0, border: "none" } })
|
|
7407
7410
|
] }, `sa-tl-sk-${v}`)), Ki = (y, v) => {
|
|
7408
7411
|
v || Me({
|
|
7409
7412
|
...De,
|
|
@@ -7415,7 +7418,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7415
7418
|
}), Xt = (y) => (G ?? []).filter((v) => {
|
|
7416
7419
|
var W;
|
|
7417
7420
|
return !((W = v.hidden) != null && W.call(v, y));
|
|
7418
|
-
}), kn =
|
|
7421
|
+
}), kn = fe ? {
|
|
7419
7422
|
display: "flex",
|
|
7420
7423
|
alignItems: "center",
|
|
7421
7424
|
justifyContent: "flex-end",
|
|
@@ -7434,9 +7437,9 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7434
7437
|
paddingRight: lr,
|
|
7435
7438
|
paddingLeft: 40,
|
|
7436
7439
|
background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
|
|
7437
|
-
}, Kt = (y, v, W,
|
|
7440
|
+
}, Kt = (y, v, W, _) => {
|
|
7438
7441
|
var lt;
|
|
7439
|
-
const ee = (lt = y.disabled) == null ? void 0 : lt.call(y, v), oe = (
|
|
7442
|
+
const ee = (lt = y.disabled) == null ? void 0 : lt.call(y, v), oe = (_ == null ? void 0 : _.showLabel) ?? y.showLabel, ie = (_ == null ? void 0 : _.size) ?? "xs", ke = /* @__PURE__ */ e(
|
|
7440
7443
|
N,
|
|
7441
7444
|
{
|
|
7442
7445
|
size: ie,
|
|
@@ -7453,12 +7456,12 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7453
7456
|
const W = Xt(y);
|
|
7454
7457
|
if (!W.length) return null;
|
|
7455
7458
|
if (W.length > jr) {
|
|
7456
|
-
const ee =
|
|
7459
|
+
const ee = de(y, v), oe = (ve == null ? void 0 : ve.rowKey) === ee;
|
|
7457
7460
|
return /* @__PURE__ */ e(
|
|
7458
7461
|
"div",
|
|
7459
7462
|
{
|
|
7460
7463
|
className: "sa-tl-row-actions",
|
|
7461
|
-
"data-mode":
|
|
7464
|
+
"data-mode": fe ? "column" : "overlay",
|
|
7462
7465
|
style: kn,
|
|
7463
7466
|
onClick: (ie) => ie.stopPropagation(),
|
|
7464
7467
|
children: /* @__PURE__ */ e(Te, { label: "Aksi lainnya", position: "top", children: /* @__PURE__ */ e(
|
|
@@ -7484,20 +7487,20 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7484
7487
|
"div",
|
|
7485
7488
|
{
|
|
7486
7489
|
className: "sa-tl-row-actions",
|
|
7487
|
-
"data-mode":
|
|
7490
|
+
"data-mode": fe ? "column" : "overlay",
|
|
7488
7491
|
style: kn,
|
|
7489
7492
|
children: W.map((ee) => /* @__PURE__ */ e(Ct.Fragment, { children: Kt(ee, y, v) }, ee.key))
|
|
7490
7493
|
}
|
|
7491
7494
|
);
|
|
7492
7495
|
}, ro = (y, v) => {
|
|
7493
7496
|
const W = Xt(y);
|
|
7494
|
-
return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: _t }, children: W.map((
|
|
7497
|
+
return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: _t }, children: W.map((_) => /* @__PURE__ */ e(Ct.Fragment, { children: Kt(_, y, v, { showLabel: !0, size: "sm" }) }, _.key)) }) : null;
|
|
7495
7498
|
}, no = (y, v) => {
|
|
7496
7499
|
const W = Xt(y);
|
|
7497
|
-
return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: W.map((
|
|
7500
|
+
return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: W.map((_) => /* @__PURE__ */ e(Ct.Fragment, { children: Kt(_, y, v, { showLabel: !1 }) }, _.key)) }) : null;
|
|
7498
7501
|
}, Er = (y, v) => {
|
|
7499
7502
|
var Ot;
|
|
7500
|
-
const { col: W, key:
|
|
7503
|
+
const { col: W, key: _ } = y, ee = dt.get(_) ?? 0, oe = E(ee), ie = oe && ee === Ft, ke = (Y == null ? void 0 : Y.key) === _ ? Y.direction : null, Se = f && !W.disableMenu ? /* @__PURE__ */ e(
|
|
7501
7504
|
Ic,
|
|
7502
7505
|
{
|
|
7503
7506
|
active: !!ke || oe || !!W.filterActive,
|
|
@@ -7505,10 +7508,10 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7505
7508
|
canHide: !W.locked,
|
|
7506
7509
|
sortDir: ke,
|
|
7507
7510
|
frozen: oe,
|
|
7508
|
-
onSort: (tr) =>
|
|
7509
|
-
onClearSort: () =>
|
|
7510
|
-
onToggleFreeze: () => eo(
|
|
7511
|
-
onHide: () => Ki(
|
|
7511
|
+
onSort: (tr) => he({ key: _, direction: tr }),
|
|
7512
|
+
onClearSort: () => he(null),
|
|
7513
|
+
onToggleFreeze: () => eo(_),
|
|
7514
|
+
onHide: () => Ki(_, W.locked),
|
|
7512
7515
|
filterSlot: (Ot = W.renderFilter) == null ? void 0 : Ot.call(W),
|
|
7513
7516
|
filterActive: W.filterActive
|
|
7514
7517
|
}
|
|
@@ -7569,12 +7572,12 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7569
7572
|
}
|
|
7570
7573
|
)
|
|
7571
7574
|
},
|
|
7572
|
-
`th-${
|
|
7575
|
+
`th-${_}`
|
|
7573
7576
|
);
|
|
7574
7577
|
}, io = () => {
|
|
7575
7578
|
const y = [];
|
|
7576
7579
|
for (let v = 0; v < Ce.length; ) {
|
|
7577
|
-
const W = Ce[v],
|
|
7580
|
+
const W = Ce[v], _ = W.col.headerColSpan ?? 1, ee = Math.max(1, Math.min(_, Ce.length - v));
|
|
7578
7581
|
y.push(Er(W, ee > 1 ? { colSpan: ee } : void 0)), v += ee;
|
|
7579
7582
|
}
|
|
7580
7583
|
return y;
|
|
@@ -7617,7 +7620,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7617
7620
|
},
|
|
7618
7621
|
"th-select"
|
|
7619
7622
|
), oo = (y, v, W) => {
|
|
7620
|
-
const
|
|
7623
|
+
const _ = de(y, v);
|
|
7621
7624
|
return /* @__PURE__ */ e(
|
|
7622
7625
|
Ve,
|
|
7623
7626
|
{
|
|
@@ -7644,8 +7647,8 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7644
7647
|
Lt,
|
|
7645
7648
|
{
|
|
7646
7649
|
size: "sm",
|
|
7647
|
-
checked:
|
|
7648
|
-
onChange: () => bt(
|
|
7650
|
+
checked: Ye.has(_),
|
|
7651
|
+
onChange: () => bt(_),
|
|
7649
7652
|
"aria-label": "Pilih baris"
|
|
7650
7653
|
}
|
|
7651
7654
|
)
|
|
@@ -7657,7 +7660,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7657
7660
|
}, Fr = Ce.filter((y) => !y.col.hideOnMobile), Lr = Fr.find((y) => y.col.primary) ?? Fr[0], lo = Fr.filter((y) => y !== Lr), co = (y) => $e((v) => {
|
|
7658
7661
|
const W = new Set(v);
|
|
7659
7662
|
return W.has(y) ? W.delete(y) : W.add(y), W;
|
|
7660
|
-
}), En = (y, v) => lo.map(({ col: W, key:
|
|
7663
|
+
}), En = (y, v) => lo.map(({ col: W, key: _ }) => {
|
|
7661
7664
|
const ee = kr(W, y, v), oe = {
|
|
7662
7665
|
minWidth: 0,
|
|
7663
7666
|
overflow: "hidden",
|
|
@@ -7687,7 +7690,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7687
7690
|
ie
|
|
7688
7691
|
]
|
|
7689
7692
|
},
|
|
7690
|
-
|
|
7693
|
+
_
|
|
7691
7694
|
);
|
|
7692
7695
|
}), Wr = (y, v) => {
|
|
7693
7696
|
const W = Lr ? kr(Lr.col, y, v) : null;
|
|
@@ -7730,7 +7733,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7730
7733
|
children: R == null ? void 0 : R.content
|
|
7731
7734
|
}
|
|
7732
7735
|
), ao = k ? so : We.length === 0 ? Fn : I === "expand" ? /* @__PURE__ */ e(h, { style: { display: "flex", flexDirection: "column" }, children: We.map((y, v) => {
|
|
7733
|
-
const W =
|
|
7736
|
+
const W = de(y, v), _ = Ke.has(W), oe = H && Ye.has(W) ? Gr : sr(o == null ? void 0 : o(y, v));
|
|
7734
7737
|
return /* @__PURE__ */ u(
|
|
7735
7738
|
"div",
|
|
7736
7739
|
{
|
|
@@ -7752,7 +7755,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7752
7755
|
Lt,
|
|
7753
7756
|
{
|
|
7754
7757
|
size: "sm",
|
|
7755
|
-
checked:
|
|
7758
|
+
checked: Ye.has(W),
|
|
7756
7759
|
onChange: () => bt(W),
|
|
7757
7760
|
"aria-label": "Pilih baris"
|
|
7758
7761
|
}
|
|
@@ -7784,7 +7787,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7784
7787
|
/* @__PURE__ */ e(
|
|
7785
7788
|
F,
|
|
7786
7789
|
{
|
|
7787
|
-
name:
|
|
7790
|
+
name: _ ? "ChevronUp" : "ChevronDown",
|
|
7788
7791
|
size: "sm",
|
|
7789
7792
|
style: { flexShrink: 0 }
|
|
7790
7793
|
}
|
|
@@ -7792,9 +7795,9 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7792
7795
|
]
|
|
7793
7796
|
}
|
|
7794
7797
|
),
|
|
7795
|
-
|
|
7798
|
+
$ && no(y, v)
|
|
7796
7799
|
] }),
|
|
7797
|
-
|
|
7800
|
+
_ && /* @__PURE__ */ e(
|
|
7798
7801
|
"div",
|
|
7799
7802
|
{
|
|
7800
7803
|
style: {
|
|
@@ -7815,7 +7818,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7815
7818
|
{
|
|
7816
7819
|
style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
|
|
7817
7820
|
children: We.map((y, v) => {
|
|
7818
|
-
const W =
|
|
7821
|
+
const W = de(y, v), _ = H && Ye.has(W);
|
|
7819
7822
|
return /* @__PURE__ */ u(
|
|
7820
7823
|
h,
|
|
7821
7824
|
{
|
|
@@ -7826,7 +7829,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7826
7829
|
display: "flex",
|
|
7827
7830
|
flexDirection: "column",
|
|
7828
7831
|
gap: 6,
|
|
7829
|
-
backgroundColor:
|
|
7832
|
+
backgroundColor: _ ? Gr : sr(o == null ? void 0 : o(y, v))
|
|
7830
7833
|
},
|
|
7831
7834
|
children: [
|
|
7832
7835
|
zt(y, v) ? /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
@@ -7834,7 +7837,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7834
7837
|
Lt,
|
|
7835
7838
|
{
|
|
7836
7839
|
size: "sm",
|
|
7837
|
-
checked:
|
|
7840
|
+
checked: Ye.has(W),
|
|
7838
7841
|
onChange: () => bt(W),
|
|
7839
7842
|
"aria-label": "Pilih baris"
|
|
7840
7843
|
}
|
|
@@ -7845,14 +7848,14 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7845
7848
|
Wr(y, v)
|
|
7846
7849
|
),
|
|
7847
7850
|
En(y, v),
|
|
7848
|
-
|
|
7851
|
+
$ && ro(y, v)
|
|
7849
7852
|
]
|
|
7850
7853
|
},
|
|
7851
7854
|
W
|
|
7852
7855
|
);
|
|
7853
7856
|
})
|
|
7854
7857
|
}
|
|
7855
|
-
), uo = l && He && _e !== void 0, Ln = c === "fixed" && !l && (He ? _e !== void 0 : !0), ho = Ln && !He, er = S && S.length > 0 ? S.map((y, v) => /* @__PURE__ */ e(
|
|
7858
|
+
), uo = l && He && _e !== void 0, Ln = c === "fixed" && !l && (He ? _e !== void 0 : !0), ho = Ln && !He, er = S && S.length > 0 ? S.map((y, v) => /* @__PURE__ */ e(nt, { children: y.cells.map((W, _) => /* @__PURE__ */ e(
|
|
7856
7859
|
Ve,
|
|
7857
7860
|
{
|
|
7858
7861
|
colSpan: W.colSpan,
|
|
@@ -7861,7 +7864,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7861
7864
|
style: { textAlign: jt(W.align) },
|
|
7862
7865
|
children: W.content
|
|
7863
7866
|
},
|
|
7864
|
-
`tl-foot-${v}-${
|
|
7867
|
+
`tl-foot-${v}-${_}`
|
|
7865
7868
|
)) }, `tl-foot-${v}`)) : null, fo = /* @__PURE__ */ u(
|
|
7866
7869
|
dr,
|
|
7867
7870
|
{
|
|
@@ -7875,10 +7878,10 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7875
7878
|
ho && /* @__PURE__ */ u("colgroup", { children: [
|
|
7876
7879
|
H && /* @__PURE__ */ e("col", { style: { width: Pt } }),
|
|
7877
7880
|
Ce.map(({ col: y, key: v }, W) => /* @__PURE__ */ e("col", { style: { width: At(y, W) } }, `col-${v}`)),
|
|
7878
|
-
|
|
7881
|
+
$ && /* @__PURE__ */ e("col", { style: { width: xe } })
|
|
7879
7882
|
] }),
|
|
7880
7883
|
/* @__PURE__ */ e(vi, { ref: Et, children: Ne ? /* @__PURE__ */ u(ne, { children: [
|
|
7881
|
-
/* @__PURE__ */ u(
|
|
7884
|
+
/* @__PURE__ */ u(nt, { children: [
|
|
7882
7885
|
H && Sn({ rowSpan: 2 }),
|
|
7883
7886
|
Le.map(
|
|
7884
7887
|
(y) => y.isGroup ? /* @__PURE__ */ e(
|
|
@@ -7897,7 +7900,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7897
7900
|
`grp-${y.key}`
|
|
7898
7901
|
) : Er(y.leaves[0], { rowSpan: 2 })
|
|
7899
7902
|
),
|
|
7900
|
-
|
|
7903
|
+
$ && /* @__PURE__ */ e(
|
|
7901
7904
|
Bt,
|
|
7902
7905
|
{
|
|
7903
7906
|
rowSpan: 2,
|
|
@@ -7914,13 +7917,13 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7914
7917
|
}
|
|
7915
7918
|
)
|
|
7916
7919
|
] }),
|
|
7917
|
-
/* @__PURE__ */ e(
|
|
7920
|
+
/* @__PURE__ */ e(nt, { children: Le.flatMap(
|
|
7918
7921
|
(y) => y.isGroup ? y.leaves.map((v) => Er(v, { top: Cr })) : []
|
|
7919
7922
|
) })
|
|
7920
|
-
] }) : /* @__PURE__ */ u(
|
|
7923
|
+
] }) : /* @__PURE__ */ u(nt, { children: [
|
|
7921
7924
|
H && Sn(),
|
|
7922
7925
|
io(),
|
|
7923
|
-
|
|
7926
|
+
$ && /* @__PURE__ */ e(
|
|
7924
7927
|
Bt,
|
|
7925
7928
|
{
|
|
7926
7929
|
style: {
|
|
@@ -7936,16 +7939,16 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7936
7939
|
}
|
|
7937
7940
|
)
|
|
7938
7941
|
] }) }),
|
|
7939
|
-
/* @__PURE__ */ e(Jr, { children: k ? Xi : We.length === 0 ? /* @__PURE__ */ e(
|
|
7942
|
+
/* @__PURE__ */ e(Jr, { children: k ? Xi : We.length === 0 ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ve, { colSpan: Sr, children: Fn }) }) : /* @__PURE__ */ u(ne, { children: [
|
|
7940
7943
|
We.map((y, v) => {
|
|
7941
7944
|
const W = M == null ? void 0 : M(
|
|
7942
7945
|
y,
|
|
7943
7946
|
v,
|
|
7944
7947
|
v > 0 ? We[v - 1] : void 0
|
|
7945
|
-
), ee = H &&
|
|
7948
|
+
), ee = H && Ye.has(de(y, v)) ? Gr : sr(o == null ? void 0 : o(y, v));
|
|
7946
7949
|
return /* @__PURE__ */ u(Ct.Fragment, { children: [
|
|
7947
|
-
W != null && W !== !1 && /* @__PURE__ */ e(
|
|
7948
|
-
/* @__PURE__ */ u(
|
|
7950
|
+
W != null && W !== !1 && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ve, { colSpan: Sr, style: { backgroundColor: Tt }, children: W }) }),
|
|
7951
|
+
/* @__PURE__ */ u(nt, { children: [
|
|
7949
7952
|
H && oo(y, v, ee),
|
|
7950
7953
|
Ce.map(({ col: oe, key: ie }, ke) => {
|
|
7951
7954
|
var Wn;
|
|
@@ -7985,10 +7988,10 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7985
7988
|
`tl-cell-${v}-${ie}`
|
|
7986
7989
|
);
|
|
7987
7990
|
}),
|
|
7988
|
-
|
|
7991
|
+
$ && /* @__PURE__ */ e(
|
|
7989
7992
|
Ve,
|
|
7990
7993
|
{
|
|
7991
|
-
className:
|
|
7994
|
+
className: fe ? "sa-tl-frozen" : void 0,
|
|
7992
7995
|
style: {
|
|
7993
7996
|
position: "sticky",
|
|
7994
7997
|
right: 0,
|
|
@@ -7996,7 +7999,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
7996
7999
|
padding: 0,
|
|
7997
8000
|
// Overlay perlu meluber keluar sel selebar 1px;
|
|
7998
8001
|
// kolom nyata tidak — isinya muat di dalamnya.
|
|
7999
|
-
overflow:
|
|
8002
|
+
overflow: fe ? void 0 : "visible",
|
|
8000
8003
|
zIndex: 2,
|
|
8001
8004
|
border: "none"
|
|
8002
8005
|
},
|
|
@@ -8004,19 +8007,19 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
8004
8007
|
}
|
|
8005
8008
|
)
|
|
8006
8009
|
] })
|
|
8007
|
-
] },
|
|
8010
|
+
] }, de(y, v));
|
|
8008
8011
|
}),
|
|
8009
|
-
x != null && /* @__PURE__ */ e(
|
|
8012
|
+
x != null && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ve, { colSpan: Sr, children: x }) })
|
|
8010
8013
|
] }) }),
|
|
8011
8014
|
er && /* @__PURE__ */ e(vo, { className: L ? "sa-tl-sticky-foot" : void 0, children: er })
|
|
8012
8015
|
]
|
|
8013
8016
|
}
|
|
8014
|
-
), Rr = ve ? We.findIndex((y, v) =>
|
|
8017
|
+
), Rr = ve ? We.findIndex((y, v) => de(y, v) === ve.rowKey) : -1, Mr = Rr >= 0 ? We[Rr] : null;
|
|
8015
8018
|
return /* @__PURE__ */ u(ne, { children: [
|
|
8016
8019
|
/* @__PURE__ */ e(
|
|
8017
8020
|
h,
|
|
8018
8021
|
{
|
|
8019
|
-
ref:
|
|
8022
|
+
ref: ce,
|
|
8020
8023
|
className: "sa-tl-scroll",
|
|
8021
8024
|
fullWidth: !0,
|
|
8022
8025
|
style: {
|
|
@@ -8048,7 +8051,7 @@ const oi = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Ac = ({
|
|
|
8048
8051
|
paramKeys: l,
|
|
8049
8052
|
scopeId: c,
|
|
8050
8053
|
storage: s = Bi
|
|
8051
|
-
} = t, { searchParams: a, setSearchParams: d, searchQueries: f } =
|
|
8054
|
+
} = t, { searchParams: a, setSearchParams: d, searchQueries: f } = it(), p = a.toString(), g = c ? qt.tableSort(c) : void 0, b = le(!1);
|
|
8052
8055
|
J(() => {
|
|
8053
8056
|
if (b.current || (b.current = !0, !g) || a.has(r) || a.has(n))
|
|
8054
8057
|
return;
|
|
@@ -9340,18 +9343,18 @@ const si = {
|
|
|
9340
9343
|
r === null && i(null);
|
|
9341
9344
|
}, [r]);
|
|
9342
9345
|
const z = j(
|
|
9343
|
-
(K,
|
|
9344
|
-
k(
|
|
9346
|
+
(K, $) => {
|
|
9347
|
+
k($);
|
|
9345
9348
|
},
|
|
9346
9349
|
[]
|
|
9347
9350
|
), G = (K) => {
|
|
9348
|
-
var
|
|
9349
|
-
const
|
|
9350
|
-
if (
|
|
9351
|
+
var fe;
|
|
9352
|
+
const $ = (fe = K.target.files) == null ? void 0 : fe[0];
|
|
9353
|
+
if (!$) return;
|
|
9351
9354
|
const me = new FileReader();
|
|
9352
9355
|
me.onload = () => {
|
|
9353
9356
|
C(me.result), A(!0);
|
|
9354
|
-
}, me.readAsDataURL(
|
|
9357
|
+
}, me.readAsDataURL($);
|
|
9355
9358
|
}, T = async () => {
|
|
9356
9359
|
if (!(!D || !R))
|
|
9357
9360
|
try {
|
|
@@ -9361,12 +9364,12 @@ const si = {
|
|
|
9361
9364
|
return;
|
|
9362
9365
|
}
|
|
9363
9366
|
t == null || t(K);
|
|
9364
|
-
const
|
|
9365
|
-
i(
|
|
9367
|
+
const $ = URL.createObjectURL(K);
|
|
9368
|
+
i($, K), A(!1);
|
|
9366
9369
|
} catch {
|
|
9367
9370
|
d == null || d("Gagal memproses gambar");
|
|
9368
9371
|
}
|
|
9369
|
-
}, H = le(null),
|
|
9372
|
+
}, H = le(null), V = () => {
|
|
9370
9373
|
H.current && H.current.click();
|
|
9371
9374
|
};
|
|
9372
9375
|
Fo(f, () => ({
|
|
@@ -9447,7 +9450,7 @@ const si = {
|
|
|
9447
9450
|
opacity: g ? 1 : 0,
|
|
9448
9451
|
transition: "opacity 0.3s ease-in-out"
|
|
9449
9452
|
},
|
|
9450
|
-
onClick:
|
|
9453
|
+
onClick: V,
|
|
9451
9454
|
children: [
|
|
9452
9455
|
/* @__PURE__ */ e(
|
|
9453
9456
|
"input",
|
|
@@ -9843,8 +9846,8 @@ const si = {
|
|
|
9843
9846
|
)
|
|
9844
9847
|
}
|
|
9845
9848
|
);
|
|
9846
|
-
},
|
|
9847
|
-
.${
|
|
9849
|
+
}, rt = "sa-sidepanel-item", ai = "sa-sidepanel-item-styles", ps = "inset 3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", ys = "inset -3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", bs = `
|
|
9850
|
+
.${rt} {
|
|
9848
9851
|
display: block;
|
|
9849
9852
|
box-sizing: border-box;
|
|
9850
9853
|
width: 100%;
|
|
@@ -9859,38 +9862,38 @@ const si = {
|
|
|
9859
9862
|
outline: none;
|
|
9860
9863
|
transition: background-color 140ms ease, box-shadow 140ms ease;
|
|
9861
9864
|
}
|
|
9862
|
-
.${
|
|
9865
|
+
.${rt}[data-divider="true"] {
|
|
9863
9866
|
border-bottom: 1px solid var(--sa-border-subtle, #0b120e24);
|
|
9864
9867
|
}
|
|
9865
9868
|
/* The first row also gets a top line so the list is bounded on its own,
|
|
9866
9869
|
without relying on a wrapping container's border. Adjacent rows still
|
|
9867
9870
|
share a single 1px line (only border-bottom), never a doubled 2px one. */
|
|
9868
|
-
.${
|
|
9871
|
+
.${rt}[data-divider="true"]:first-child {
|
|
9869
9872
|
border-top: 1px solid var(--sa-border-subtle, #0b120e24);
|
|
9870
9873
|
}
|
|
9871
|
-
.${
|
|
9874
|
+
.${rt}:hover {
|
|
9872
9875
|
background: var(--sa-background-neutral, #f0f1f2);
|
|
9873
9876
|
}
|
|
9874
|
-
.${
|
|
9875
|
-
.${
|
|
9877
|
+
.${rt}:focus-visible,
|
|
9878
|
+
.${rt}[data-active="true"] {
|
|
9876
9879
|
background: var(--sa-background-brand-subtlest, #e6edf6);
|
|
9877
9880
|
}
|
|
9878
|
-
.${
|
|
9881
|
+
.${rt}:focus-visible {
|
|
9879
9882
|
background: var(--sa-background-neutral, #f0f1f2);
|
|
9880
9883
|
}
|
|
9881
9884
|
/* Accent bar — sign of the offset picks the edge it hugs. */
|
|
9882
|
-
.${
|
|
9883
|
-
.${
|
|
9885
|
+
.${rt}[data-accent="left"]:focus-visible,
|
|
9886
|
+
.${rt}[data-accent="left"][data-active="true"] {
|
|
9884
9887
|
box-shadow: ${ps};
|
|
9885
9888
|
}
|
|
9886
|
-
.${
|
|
9887
|
-
.${
|
|
9889
|
+
.${rt}[data-accent="right"]:focus-visible,
|
|
9890
|
+
.${rt}[data-accent="right"][data-active="true"] {
|
|
9888
9891
|
box-shadow: ${ys};
|
|
9889
9892
|
}
|
|
9890
|
-
.${
|
|
9893
|
+
.${rt}[data-active="true"]:hover {
|
|
9891
9894
|
background: var(--sa-background-brand-subtlest, #e6edf6);
|
|
9892
9895
|
}
|
|
9893
|
-
.${
|
|
9896
|
+
.${rt}:disabled {
|
|
9894
9897
|
cursor: not-allowed;
|
|
9895
9898
|
opacity: 0.55;
|
|
9896
9899
|
}
|
|
@@ -9918,7 +9921,7 @@ const ud = ({
|
|
|
9918
9921
|
"button",
|
|
9919
9922
|
{
|
|
9920
9923
|
type: "button",
|
|
9921
|
-
className: [
|
|
9924
|
+
className: [rt, f].filter(Boolean).join(" "),
|
|
9922
9925
|
"data-active": t ? "true" : "false",
|
|
9923
9926
|
"data-accent": r,
|
|
9924
9927
|
"data-divider": a ? "true" : "false",
|
|
@@ -10009,7 +10012,7 @@ const ud = ({
|
|
|
10009
10012
|
const S = Ie("md"), L = n !== void 0, [R, k] = B(o), z = L ? n : R, G = () => {
|
|
10010
10013
|
const me = !z;
|
|
10011
10014
|
L || k(me), i == null || i(me);
|
|
10012
|
-
}, T = c === "left", H = typeof s == "number" ? `${s}px` : s,
|
|
10015
|
+
}, T = c === "left", H = typeof s == "number" ? `${s}px` : s, V = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${H})`, Z = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, q = f === "center" ? { top: "50%", transform: "translateY(-50%)" } : f === "bottom" ? { bottom: p } : { top: p }, re = z ? T ? "ChevronRight" : "ChevronLeft" : T ? "ChevronLeft" : "ChevronRight", X = I !== void 0 && (A === "mobile" ? !S : A), K = X ? {
|
|
10013
10016
|
position: "absolute",
|
|
10014
10017
|
top: 0,
|
|
10015
10018
|
bottom: 0,
|
|
@@ -10028,10 +10031,10 @@ const ud = ({
|
|
|
10028
10031
|
alignSelf: "flex-start",
|
|
10029
10032
|
width: z ? 0 : l,
|
|
10030
10033
|
flexShrink: 0,
|
|
10031
|
-
height:
|
|
10034
|
+
height: V,
|
|
10032
10035
|
transition: `width ${di}`,
|
|
10033
10036
|
...b
|
|
10034
|
-
},
|
|
10037
|
+
}, $ = /* @__PURE__ */ u(
|
|
10035
10038
|
h,
|
|
10036
10039
|
{
|
|
10037
10040
|
className: C,
|
|
@@ -10109,7 +10112,7 @@ const ud = ({
|
|
|
10109
10112
|
]
|
|
10110
10113
|
}
|
|
10111
10114
|
);
|
|
10112
|
-
return I === void 0 ?
|
|
10115
|
+
return I === void 0 ? $ : /* @__PURE__ */ u(
|
|
10113
10116
|
h,
|
|
10114
10117
|
{
|
|
10115
10118
|
direction: "row",
|
|
@@ -10121,7 +10124,7 @@ const ud = ({
|
|
|
10121
10124
|
...(M == null ? void 0 : M.style) ?? {}
|
|
10122
10125
|
},
|
|
10123
10126
|
children: [
|
|
10124
|
-
!X && T ?
|
|
10127
|
+
!X && T ? $ : null,
|
|
10125
10128
|
/* @__PURE__ */ e(
|
|
10126
10129
|
h,
|
|
10127
10130
|
{
|
|
@@ -10137,7 +10140,7 @@ const ud = ({
|
|
|
10137
10140
|
children: I
|
|
10138
10141
|
}
|
|
10139
10142
|
),
|
|
10140
|
-
!X && !T ?
|
|
10143
|
+
!X && !T ? $ : null,
|
|
10141
10144
|
X && /* @__PURE__ */ u(ne, { children: [
|
|
10142
10145
|
!z && /* @__PURE__ */ e(
|
|
10143
10146
|
"div",
|
|
@@ -10152,7 +10155,7 @@ const ud = ({
|
|
|
10152
10155
|
}
|
|
10153
10156
|
}
|
|
10154
10157
|
),
|
|
10155
|
-
|
|
10158
|
+
$
|
|
10156
10159
|
] })
|
|
10157
10160
|
]
|
|
10158
10161
|
}
|
|
@@ -10725,7 +10728,7 @@ function yd({ onClick: t }) {
|
|
|
10725
10728
|
}
|
|
10726
10729
|
);
|
|
10727
10730
|
}
|
|
10728
|
-
const
|
|
10731
|
+
const se = {
|
|
10729
10732
|
c46F16B: "#46F16B",
|
|
10730
10733
|
c48504C: "#48504C",
|
|
10731
10734
|
c64B5F6: "#64B5F6",
|
|
@@ -10756,14 +10759,14 @@ function Fs({ width: t, height: r }) {
|
|
|
10756
10759
|
fill: "none",
|
|
10757
10760
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10758
10761
|
children: [
|
|
10759
|
-
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill:
|
|
10762
|
+
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: se.cD6EBFD }),
|
|
10760
10763
|
/* @__PURE__ */ e(
|
|
10761
10764
|
"path",
|
|
10762
10765
|
{
|
|
10763
10766
|
fillRule: "evenodd",
|
|
10764
10767
|
clipRule: "evenodd",
|
|
10765
10768
|
d: "M75 238.124V197.28L163.523 63.5H217.029V194.32H240V238.124H217.029V252.5H169.126V238.124H75ZM125.424 194.32L172.487 119.143V194.32H125.424Z",
|
|
10766
|
-
fill:
|
|
10769
|
+
fill: se.cBBDEFB,
|
|
10767
10770
|
fillOpacity: "0.6"
|
|
10768
10771
|
}
|
|
10769
10772
|
),
|
|
@@ -10772,8 +10775,8 @@ function Fs({ width: t, height: r }) {
|
|
|
10772
10775
|
"path",
|
|
10773
10776
|
{
|
|
10774
10777
|
d: "M334.5 274.5C381.168 274.5 419 227.266 419 169C419 110.734 381.168 63.5 334.5 63.5C287.832 63.5 250 110.734 250 169C250 227.266 287.832 274.5 334.5 274.5Z",
|
|
10775
|
-
fill:
|
|
10776
|
-
stroke:
|
|
10778
|
+
fill: se.cEFF3F8,
|
|
10779
|
+
stroke: se.c67AEE6,
|
|
10777
10780
|
strokeWidth: "5"
|
|
10778
10781
|
}
|
|
10779
10782
|
),
|
|
@@ -10781,68 +10784,68 @@ function Fs({ width: t, height: r }) {
|
|
|
10781
10784
|
"path",
|
|
10782
10785
|
{
|
|
10783
10786
|
d: "M413 197.5C411.397 211.835 402.919 230.898 389.361 246.49C375.596 262.32 356.651 274.5 334.496 274.5C311.331 274.5 292.389 261.672 278.878 245.52C265.592 229.638 257.606 210.603 256 197.5H413Z",
|
|
10784
|
-
fill:
|
|
10787
|
+
fill: se.cD5C7BD
|
|
10785
10788
|
}
|
|
10786
10789
|
),
|
|
10787
10790
|
/* @__PURE__ */ e(
|
|
10788
10791
|
"path",
|
|
10789
10792
|
{
|
|
10790
10793
|
d: "M278.887 211.766H391.104L392.583 222.856C392.687 223.635 392.08 224.328 391.294 224.328H277.961C277.14 224.328 276.525 223.577 276.686 222.773L278.887 211.766Z",
|
|
10791
|
-
fill:
|
|
10794
|
+
fill: se.cCABEB1
|
|
10792
10795
|
}
|
|
10793
10796
|
),
|
|
10794
10797
|
/* @__PURE__ */ e(
|
|
10795
10798
|
"path",
|
|
10796
10799
|
{
|
|
10797
10800
|
d: "M287.68 218.884L289.354 213.022H378.961L381.473 218.884H287.68Z",
|
|
10798
|
-
fill:
|
|
10801
|
+
fill: se.cC0B2A2
|
|
10799
10802
|
}
|
|
10800
10803
|
),
|
|
10801
10804
|
/* @__PURE__ */ e(
|
|
10802
10805
|
"path",
|
|
10803
10806
|
{
|
|
10804
10807
|
d: "M381.944 218.803L381.58 212.266H386.385L386.022 218.803H381.944Z",
|
|
10805
|
-
fill:
|
|
10806
|
-
stroke:
|
|
10808
|
+
fill: se.c956847,
|
|
10809
|
+
stroke: se.c48504C
|
|
10807
10810
|
}
|
|
10808
10811
|
),
|
|
10809
10812
|
/* @__PURE__ */ e(
|
|
10810
10813
|
"path",
|
|
10811
10814
|
{
|
|
10812
10815
|
d: "M283.124 218.803L282.768 213.104H287.565L287.209 218.803H283.124Z",
|
|
10813
|
-
fill:
|
|
10814
|
-
stroke:
|
|
10816
|
+
fill: se.c956847,
|
|
10817
|
+
stroke: se.c48504C
|
|
10815
10818
|
}
|
|
10816
10819
|
),
|
|
10817
10820
|
/* @__PURE__ */ e(
|
|
10818
10821
|
"path",
|
|
10819
10822
|
{
|
|
10820
10823
|
d: "M285.902 212.103L284.935 186.306H279.606C278.151 186.306 277.004 187.542 277.113 188.993L278.673 209.79C278.77 211.095 279.857 212.103 281.166 212.103H285.902Z",
|
|
10821
|
-
fill:
|
|
10822
|
-
stroke:
|
|
10824
|
+
fill: se.cC8CEF4,
|
|
10825
|
+
stroke: se.c48504C
|
|
10823
10826
|
}
|
|
10824
10827
|
),
|
|
10825
10828
|
/* @__PURE__ */ e(
|
|
10826
10829
|
"path",
|
|
10827
10830
|
{
|
|
10828
10831
|
d: "M383.256 212.103L384.638 186.306H389.556C391.007 186.306 392.153 187.537 392.05 188.984L390.564 209.782C390.471 211.09 389.382 212.103 388.07 212.103H383.256Z",
|
|
10829
|
-
fill:
|
|
10830
|
-
stroke:
|
|
10832
|
+
fill: se.cC8CEF4,
|
|
10833
|
+
stroke: se.c48504C
|
|
10831
10834
|
}
|
|
10832
10835
|
),
|
|
10833
10836
|
/* @__PURE__ */ e(
|
|
10834
10837
|
"path",
|
|
10835
10838
|
{
|
|
10836
10839
|
d: "M284.497 178.155C284.455 176.194 286.034 174.581 287.996 174.581H381.904C383.895 174.581 385.485 176.24 385.401 178.23L384.066 209.59C383.987 211.463 382.445 212.941 380.569 212.941H288.663C286.759 212.941 285.205 211.419 285.164 209.515L284.497 178.155Z",
|
|
10837
|
-
fill:
|
|
10838
|
-
stroke:
|
|
10840
|
+
fill: se.cC8CEF4,
|
|
10841
|
+
stroke: se.c48504C
|
|
10839
10842
|
}
|
|
10840
10843
|
),
|
|
10841
10844
|
/* @__PURE__ */ e(
|
|
10842
10845
|
"path",
|
|
10843
10846
|
{
|
|
10844
10847
|
d: "M284.845 181.524C284.792 179.279 286.598 177.431 288.844 177.431H380.687C382.948 177.431 384.76 179.304 384.684 181.565L383.774 208.737C383.701 210.893 381.933 212.603 379.776 212.603H289.48C287.307 212.603 285.532 210.869 285.481 208.697L284.845 181.524Z",
|
|
10845
|
-
fill:
|
|
10848
|
+
fill: se.cBBC3F5
|
|
10846
10849
|
}
|
|
10847
10850
|
),
|
|
10848
10851
|
/* @__PURE__ */ e(
|
|
@@ -10859,7 +10862,7 @@ function Fs({ width: t, height: r }) {
|
|
|
10859
10862
|
"path",
|
|
10860
10863
|
{
|
|
10861
10864
|
d: "M301 146.5C301 145.395 301.887 144.5 302.98 144.5H367.02C368.114 144.5 369 145.395 369 146.5V160.411H301V146.5Z",
|
|
10862
|
-
fill:
|
|
10865
|
+
fill: se.cFFFFFF
|
|
10863
10866
|
}
|
|
10864
10867
|
)
|
|
10865
10868
|
}
|
|
@@ -10869,42 +10872,42 @@ function Fs({ width: t, height: r }) {
|
|
|
10869
10872
|
"path",
|
|
10870
10873
|
{
|
|
10871
10874
|
d: "M301 146.191C301 145.257 301.748 144.5 302.671 144.5H356.701C357.624 144.5 358.372 145.257 358.372 146.191V157.949H301V146.191Z",
|
|
10872
|
-
fill:
|
|
10875
|
+
fill: se.cFFFFFF
|
|
10873
10876
|
}
|
|
10874
10877
|
),
|
|
10875
10878
|
/* @__PURE__ */ e(
|
|
10876
10879
|
"path",
|
|
10877
10880
|
{
|
|
10878
10881
|
d: "M301.336 146.607C301.336 145.673 302.08 144.916 302.999 144.916H367.01C367.929 144.916 368.673 145.673 368.673 146.607V152.523H301.336V146.607Z",
|
|
10879
|
-
fill:
|
|
10882
|
+
fill: se.cD6D6D6
|
|
10880
10883
|
}
|
|
10881
10884
|
),
|
|
10882
10885
|
/* @__PURE__ */ e(
|
|
10883
10886
|
"path",
|
|
10884
10887
|
{
|
|
10885
10888
|
d: "M368.673 152.523H301.336V174.5H368.673V152.523Z",
|
|
10886
|
-
fill:
|
|
10889
|
+
fill: se.cF4F4F4
|
|
10887
10890
|
}
|
|
10888
10891
|
),
|
|
10889
10892
|
/* @__PURE__ */ e(
|
|
10890
10893
|
"path",
|
|
10891
10894
|
{
|
|
10892
10895
|
d: "M307.685 150.417C308.607 150.417 309.356 149.66 309.356 148.726C309.356 147.793 308.607 147.036 307.685 147.036C306.762 147.036 306.014 147.793 306.014 148.726C306.014 149.66 306.762 150.417 307.685 150.417Z",
|
|
10893
|
-
fill:
|
|
10896
|
+
fill: se.cEE8080
|
|
10894
10897
|
}
|
|
10895
10898
|
),
|
|
10896
10899
|
/* @__PURE__ */ e(
|
|
10897
10900
|
"path",
|
|
10898
10901
|
{
|
|
10899
10902
|
d: "M313.532 150.417C314.455 150.417 315.203 149.66 315.203 148.726C315.203 147.793 314.455 147.036 313.532 147.036C312.609 147.036 311.861 147.793 311.861 148.726C311.861 149.66 312.609 150.417 313.532 150.417Z",
|
|
10900
|
-
fill:
|
|
10903
|
+
fill: se.cE5EE80
|
|
10901
10904
|
}
|
|
10902
10905
|
),
|
|
10903
10906
|
/* @__PURE__ */ e(
|
|
10904
10907
|
"path",
|
|
10905
10908
|
{
|
|
10906
10909
|
d: "M318.546 150.417C319.469 150.417 320.217 149.66 320.217 148.726C320.217 147.793 319.469 147.036 318.546 147.036C317.623 147.036 316.875 147.793 316.875 148.726C316.875 149.66 317.623 150.417 318.546 150.417Z",
|
|
10907
|
-
fill:
|
|
10910
|
+
fill: se.c46F16B
|
|
10908
10911
|
}
|
|
10909
10912
|
)
|
|
10910
10913
|
] }),
|
|
@@ -10912,14 +10915,14 @@ function Fs({ width: t, height: r }) {
|
|
|
10912
10915
|
"path",
|
|
10913
10916
|
{
|
|
10914
10917
|
d: "M301.16 146C301.16 145.172 301.832 144.5 302.66 144.5H367.33C368.159 144.5 368.83 145.172 368.83 146V174.419H301.16V146Z",
|
|
10915
|
-
stroke:
|
|
10918
|
+
stroke: se.c48504C
|
|
10916
10919
|
}
|
|
10917
10920
|
),
|
|
10918
10921
|
/* @__PURE__ */ e(
|
|
10919
10922
|
"path",
|
|
10920
10923
|
{
|
|
10921
10924
|
d: "M395.29 207.579H423.344M354.255 236.889H369.329M327.038 222.234H347.556M350.905 222.234H358.024M288.097 230.19H304.846M253.344 210.091H272.605M278.467 246.938H295.216M297.309 246.938H303.59M337.088 252.801H354.255",
|
|
10922
|
-
stroke:
|
|
10925
|
+
stroke: se.c86512B,
|
|
10923
10926
|
strokeWidth: "2",
|
|
10924
10927
|
strokeLinecap: "round"
|
|
10925
10928
|
}
|
|
@@ -10929,21 +10932,21 @@ function Fs({ width: t, height: r }) {
|
|
|
10929
10932
|
"path",
|
|
10930
10933
|
{
|
|
10931
10934
|
d: "M430.241 125.78C430.987 105.807 437.521 90.4065 449.841 79.5799C462.161 68.7532 478.867 63.3398 499.961 63.3398C513.961 63.3398 525.907 65.7665 535.801 70.6199C545.881 75.4732 553.441 82.0998 558.481 90.4998C563.707 98.8998 566.321 108.327 566.321 118.78C566.321 131.1 563.241 141.18 557.081 149.02C550.921 156.673 543.734 161.9 535.521 164.7V165.82C546.161 169.367 554.561 175.247 560.721 183.46C566.881 191.673 569.961 202.22 569.961 215.1C569.961 226.673 567.254 236.94 561.841 245.9C560.436 248.258 558.849 250.481 557.081 252.569L443.5 252.662C432.5 241 427.721 230.5 427.721 207.82H474.201C474.387 216.033 476.721 222.567 481.201 227.42C485.681 232.087 492.214 234.42 500.801 234.42C508.081 234.42 513.681 232.367 517.601 228.26C521.707 223.967 523.761 218.367 523.761 211.46C523.761 202.5 520.867 196.06 515.081 192.14C509.481 188.033 500.427 185.98 487.921 185.98H478.961V147.06H487.921C497.441 147.06 505.094 145.473 510.881 142.3C516.854 138.94 519.841 133.06 519.841 124.66C519.841 117.94 517.974 112.713 514.241 108.98C510.507 105.247 505.374 103.38 498.841 103.38C491.747 103.38 486.427 105.527 482.881 109.82C479.521 114.113 477.561 119.433 477.001 125.78H430.241Z",
|
|
10932
|
-
fill:
|
|
10935
|
+
fill: se.cBBDEFB,
|
|
10933
10936
|
fillOpacity: "0.6"
|
|
10934
10937
|
}
|
|
10935
10938
|
),
|
|
10936
|
-
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill:
|
|
10937
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill:
|
|
10938
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill:
|
|
10939
|
-
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill:
|
|
10940
|
-
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill:
|
|
10941
|
-
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill:
|
|
10939
|
+
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill: se.cD6EBFD }),
|
|
10940
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill: se.cD6EBFD }),
|
|
10941
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill: se.cD6EBFD }),
|
|
10942
|
+
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill: se.cD6EBFD }),
|
|
10943
|
+
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill: se.cD6EBFD }),
|
|
10944
|
+
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill: se.cD6EBFD }),
|
|
10942
10945
|
/* @__PURE__ */ e(
|
|
10943
10946
|
"path",
|
|
10944
10947
|
{
|
|
10945
10948
|
d: "M3 255.5L651 255.5",
|
|
10946
|
-
stroke:
|
|
10949
|
+
stroke: se.c64B5F6,
|
|
10947
10950
|
strokeWidth: "5",
|
|
10948
10951
|
strokeLinecap: "round"
|
|
10949
10952
|
}
|
|
@@ -10953,7 +10956,7 @@ function Fs({ width: t, height: r }) {
|
|
|
10953
10956
|
{
|
|
10954
10957
|
width: "179",
|
|
10955
10958
|
height: "192",
|
|
10956
|
-
fill:
|
|
10959
|
+
fill: se.cFFFFFF,
|
|
10957
10960
|
transform: "translate(246 60.5)"
|
|
10958
10961
|
}
|
|
10959
10962
|
) }) })
|
|
@@ -12032,7 +12035,7 @@ function zs(t) {
|
|
|
12032
12035
|
].filter(Boolean).join(" "), H = {
|
|
12033
12036
|
"--lyd-max-w": As(a),
|
|
12034
12037
|
...d !== void 0 && { "--lyd-aside-w": d }
|
|
12035
|
-
},
|
|
12038
|
+
}, V = () => {
|
|
12036
12039
|
p || n();
|
|
12037
12040
|
};
|
|
12038
12041
|
return typeof document > "u" ? null : an(
|
|
@@ -12048,7 +12051,7 @@ function zs(t) {
|
|
|
12048
12051
|
"div",
|
|
12049
12052
|
{
|
|
12050
12053
|
className: je["lyd-backdrop"],
|
|
12051
|
-
onClick:
|
|
12054
|
+
onClick: V,
|
|
12052
12055
|
"aria-hidden": "true"
|
|
12053
12056
|
}
|
|
12054
12057
|
),
|
|
@@ -12701,7 +12704,7 @@ export {
|
|
|
12701
12704
|
Ta as useFilterBarApiParams,
|
|
12702
12705
|
Na as useFilterBarControls,
|
|
12703
12706
|
Ri as useModuleSelection,
|
|
12704
|
-
|
|
12707
|
+
it as useRouteInfo,
|
|
12705
12708
|
Fd as useRouteParams,
|
|
12706
12709
|
vt as useRouterAdapter,
|
|
12707
12710
|
Oo as useSidebar,
|