@starasia/admin 14.4.0 → 14.6.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 +3 -3
- package/dist/index.es.js +103 -87
- package/dist/index.umd.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -421,43 +421,47 @@ function si() {
|
|
|
421
421
|
} };
|
|
422
422
|
}
|
|
423
423
|
let Pt = 0, kt = !1, bn = /* @__PURE__ */ new Set();
|
|
424
|
-
function xo(t) {
|
|
425
|
-
const [
|
|
424
|
+
function xo(t, r) {
|
|
425
|
+
const [n, o] = H(!1), i = oe(null), l = oe(null);
|
|
426
426
|
return at(() => {
|
|
427
|
-
const
|
|
428
|
-
if (!
|
|
429
|
-
let
|
|
430
|
-
const
|
|
431
|
-
|
|
432
|
-
const
|
|
433
|
-
if (!
|
|
434
|
-
const
|
|
435
|
-
|
|
436
|
-
},
|
|
437
|
-
|
|
427
|
+
const c = i.current;
|
|
428
|
+
if (!c) return;
|
|
429
|
+
let s = 0;
|
|
430
|
+
const a = () => {
|
|
431
|
+
s = 0;
|
|
432
|
+
const m = l.current;
|
|
433
|
+
if (!m) return;
|
|
434
|
+
const p = m.scrollWidth > c.clientWidth;
|
|
435
|
+
o((g) => g === p ? g : p);
|
|
436
|
+
}, u = new ResizeObserver(() => {
|
|
437
|
+
s || (s = requestAnimationFrame(a));
|
|
438
438
|
});
|
|
439
|
-
return
|
|
440
|
-
|
|
439
|
+
return u.observe(c), a(), () => {
|
|
440
|
+
s && cancelAnimationFrame(s), u.disconnect();
|
|
441
441
|
};
|
|
442
|
-
}, [t]), { containerRef:
|
|
442
|
+
}, [t, r]), { containerRef: i, textRef: l, truncated: n };
|
|
443
443
|
}
|
|
444
444
|
function xn({
|
|
445
445
|
text: t,
|
|
446
|
-
textStyle: r
|
|
446
|
+
textStyle: r,
|
|
447
|
+
active: n = !1
|
|
447
448
|
}) {
|
|
448
|
-
const { containerRef:
|
|
449
|
+
const { containerRef: o, textRef: i, truncated: l } = xo(
|
|
450
|
+
t,
|
|
451
|
+
n
|
|
452
|
+
), c = /* @__PURE__ */ e(
|
|
449
453
|
C,
|
|
450
454
|
{
|
|
451
|
-
ref:
|
|
455
|
+
ref: i,
|
|
452
456
|
as: "span",
|
|
453
457
|
fontSize: "md",
|
|
454
|
-
fontWeight: "medium",
|
|
458
|
+
fontWeight: n ? "medium" : "normal",
|
|
455
459
|
truncate: !0,
|
|
456
460
|
style: { display: "block", ...r },
|
|
457
461
|
children: t
|
|
458
462
|
}
|
|
459
463
|
);
|
|
460
|
-
return /* @__PURE__ */ e(h, { ref:
|
|
464
|
+
return /* @__PURE__ */ e(h, { ref: o, display: "block", style: { flex: 1, minWidth: 0 }, children: l ? /* @__PURE__ */ e(Ne, { fluid: !0, label: t, position: "top", children: c }) : c });
|
|
461
465
|
}
|
|
462
466
|
const vo = 200, Hr = "var(--app-header-height, 4rem)", vn = "44px", xr = `calc((${Hr} - 2rem) / 2)`, Cn = 16;
|
|
463
467
|
function As({
|
|
@@ -494,18 +498,18 @@ function As({
|
|
|
494
498
|
bn = we;
|
|
495
499
|
}, [we]);
|
|
496
500
|
const pe = oe(null), He = oe(null), Je = oe(null), [ue, Ye] = H(!1), [ht, O] = H(null), K = b && !z && !_, q = (E) => Math.min(Math.max(E, T), V), he = ht ?? X, de = (E) => {
|
|
497
|
-
var Fe, Ae,
|
|
501
|
+
var Fe, Ae, _e;
|
|
498
502
|
if (!K) return;
|
|
499
503
|
E.preventDefault();
|
|
500
504
|
const j = E.clientX, ee = ((Fe = Je.current) == null ? void 0 : Fe.getBoundingClientRect().width) ?? X;
|
|
501
|
-
(
|
|
502
|
-
let
|
|
505
|
+
(_e = (Ae = E.currentTarget).setPointerCapture) == null || _e.call(Ae, E.pointerId), Ye(!0), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
506
|
+
let Se = 0, Be = ee;
|
|
503
507
|
const it = (Wt) => {
|
|
504
|
-
Be = ee + (Wt.clientX - j),
|
|
505
|
-
|
|
508
|
+
Be = ee + (Wt.clientX - j), Se || (Se = requestAnimationFrame(() => {
|
|
509
|
+
Se = 0, O(q(Be));
|
|
506
510
|
}));
|
|
507
511
|
}, Te = () => {
|
|
508
|
-
|
|
512
|
+
Se && cancelAnimationFrame(Se), window.removeEventListener("pointermove", it), window.removeEventListener("pointerup", Te), document.body.style.userSelect = "", document.body.style.cursor = "", O(null), Ye(!1), Be < vo ? P(!0) : re(q(Be));
|
|
509
513
|
};
|
|
510
514
|
window.addEventListener("pointermove", it), window.addEventListener("pointerup", Te);
|
|
511
515
|
}, Me = (E) => {
|
|
@@ -541,17 +545,17 @@ function As({
|
|
|
541
545
|
}));
|
|
542
546
|
}, [k.menus]), Y(() => {
|
|
543
547
|
kt = !0, Oe();
|
|
544
|
-
const E = setTimeout(Oe, 0), j = setTimeout(Oe, 50), ee = setTimeout(Oe, 100),
|
|
548
|
+
const E = setTimeout(Oe, 0), j = setTimeout(Oe, 50), ee = setTimeout(Oe, 100), Se = setTimeout(Oe, 200), Be = setTimeout(() => {
|
|
545
549
|
kt = !1;
|
|
546
550
|
}, 300), it = setTimeout(() => {
|
|
547
551
|
const Te = pe.current, Fe = Te == null ? void 0 : Te.querySelector("[data-menu-active='true']");
|
|
548
552
|
if (Te && Fe) {
|
|
549
|
-
const Ae = Te.getBoundingClientRect(),
|
|
550
|
-
|
|
553
|
+
const Ae = Te.getBoundingClientRect(), _e = Fe.getBoundingClientRect();
|
|
554
|
+
_e.top >= Ae.top && _e.bottom <= Ae.bottom || Fe.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
551
555
|
}
|
|
552
556
|
}, 250);
|
|
553
557
|
return () => {
|
|
554
|
-
clearTimeout(E), clearTimeout(j), clearTimeout(ee), clearTimeout(
|
|
558
|
+
clearTimeout(E), clearTimeout(j), clearTimeout(ee), clearTimeout(Se), clearTimeout(Be), clearTimeout(it);
|
|
555
559
|
};
|
|
556
560
|
}, [w.pathname]), Y(() => {
|
|
557
561
|
He.current && (He.current.scrollTop = 0);
|
|
@@ -574,19 +578,19 @@ function As({
|
|
|
574
578
|
}, nt = (E) => {
|
|
575
579
|
const j = [E.to];
|
|
576
580
|
return E.children && j.push(...E.children.map((ee) => ee.to)), j;
|
|
577
|
-
},
|
|
581
|
+
}, Ee = [
|
|
578
582
|
...k.menus.flatMap((E) => E.items.flatMap(nt)),
|
|
579
583
|
...((xt = k.menuBottom) == null ? void 0 : xt.flatMap(nt)) ?? []
|
|
580
584
|
], Ke = (E) => {
|
|
581
585
|
if (!w.pathname.startsWith(E)) return !1;
|
|
582
|
-
const j =
|
|
586
|
+
const j = Ee.filter((ee) => w.pathname.startsWith(ee)).sort((ee, Se) => Se.length - ee.length)[0];
|
|
583
587
|
return E === j;
|
|
584
588
|
};
|
|
585
589
|
Y(() => {
|
|
586
590
|
var j;
|
|
587
591
|
const E = (ee) => {
|
|
588
|
-
var
|
|
589
|
-
(
|
|
592
|
+
var Se;
|
|
593
|
+
(Se = ee.children) != null && Se.some((Be) => w.pathname.startsWith(Be.to)) && De((Be) => {
|
|
590
594
|
const it = new Set(Be);
|
|
591
595
|
return it.add(ee.id), it;
|
|
592
596
|
});
|
|
@@ -627,12 +631,12 @@ function As({
|
|
|
627
631
|
}
|
|
628
632
|
);
|
|
629
633
|
const bt = (E) => {
|
|
630
|
-
const j = E.children && E.children.length > 0, ee = we.has(E.id),
|
|
634
|
+
const j = E.children && E.children.length > 0, ee = we.has(E.id), Se = j ? E.children.some((Te) => Ke(Te.to)) : Ke(E.to), Be = br(E.badge, I[E.id]), it = !!Be && _ && !z;
|
|
631
635
|
return /* @__PURE__ */ d(
|
|
632
636
|
h,
|
|
633
637
|
{
|
|
634
638
|
display: "block",
|
|
635
|
-
"data-menu-active":
|
|
639
|
+
"data-menu-active": Se || void 0,
|
|
636
640
|
children: [
|
|
637
641
|
/* @__PURE__ */ d(
|
|
638
642
|
h,
|
|
@@ -660,22 +664,27 @@ function As({
|
|
|
660
664
|
paddingInline: _ && !z ? void 0 : "sm",
|
|
661
665
|
paddingBlock: "xs",
|
|
662
666
|
height: "height-32",
|
|
663
|
-
borderRadius:
|
|
667
|
+
borderRadius: Se ? "rounded-sm" : "rounded-md",
|
|
664
668
|
borderWidth: "border",
|
|
665
669
|
borderStyle: "border-solid",
|
|
666
|
-
bg:
|
|
667
|
-
hover:
|
|
670
|
+
bg: Se ? "white" : void 0,
|
|
671
|
+
hover: Se ? void 0 : { bg: "neutral" },
|
|
668
672
|
title: _ && !z ? E.title : void 0,
|
|
669
673
|
style: {
|
|
670
674
|
textAlign: "left",
|
|
671
|
-
|
|
675
|
+
// Non-aktif sengaja diturunkan ke `text-subtle` — sidebar itu
|
|
676
|
+
// permukaan yang di-scan, bukan dibaca. Ikon mewarisi lewat
|
|
677
|
+
// `currentColor`, jadi teks + ikon selalu sewarna. Pola ini sudah
|
|
678
|
+
// dipakai child item; induk sebelumnya selalu `text-primary`,
|
|
679
|
+
// yang membuat seluruh kolom nav tampil sama tebal & sama gelap.
|
|
680
|
+
color: Se ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
|
|
672
681
|
// Border tetap 1px walau tidak aktif supaya baris tidak bergeser
|
|
673
682
|
// saat jadi aktif. `borderColor` SELALU ditulis di sini — bukan
|
|
674
683
|
// separuh lewat prop, separuh lewat style — karena kalau properti
|
|
675
684
|
// ini hilang-muncul antar render, React memperingatkan "Removing a
|
|
676
685
|
// style property during rerender (borderColor) when a conflicting
|
|
677
686
|
// property is set (border)".
|
|
678
|
-
borderColor:
|
|
687
|
+
borderColor: Se ? "var(--sa-border-subtle, #0b120e24)" : "transparent"
|
|
679
688
|
},
|
|
680
689
|
children: [
|
|
681
690
|
/* @__PURE__ */ d(
|
|
@@ -712,6 +721,7 @@ function As({
|
|
|
712
721
|
xn,
|
|
713
722
|
{
|
|
714
723
|
text: E.title,
|
|
724
|
+
active: Se,
|
|
715
725
|
textStyle: { transition: "opacity 0.3s" }
|
|
716
726
|
}
|
|
717
727
|
),
|
|
@@ -796,7 +806,7 @@ function As({
|
|
|
796
806
|
const Ae = br(
|
|
797
807
|
Fe.badge,
|
|
798
808
|
I[Fe.id]
|
|
799
|
-
),
|
|
809
|
+
), _e = Ke(Fe.to);
|
|
800
810
|
return /* @__PURE__ */ d(
|
|
801
811
|
h,
|
|
802
812
|
{
|
|
@@ -810,16 +820,16 @@ function As({
|
|
|
810
820
|
paddingRight: "sm",
|
|
811
821
|
paddingBlock: "xs",
|
|
812
822
|
height: "height-32",
|
|
813
|
-
borderRadius:
|
|
823
|
+
borderRadius: _e ? "rounded-sm" : "rounded-md",
|
|
814
824
|
borderWidth: "border",
|
|
815
825
|
borderStyle: "border-solid",
|
|
816
|
-
bg:
|
|
817
|
-
hover:
|
|
826
|
+
bg: _e ? "white" : void 0,
|
|
827
|
+
hover: _e ? void 0 : { bg: "neutral" },
|
|
818
828
|
style: {
|
|
819
829
|
textAlign: "left",
|
|
820
|
-
color:
|
|
830
|
+
color: _e ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
|
|
821
831
|
// Selalu ditulis — lihat catatan di baris menu induk.
|
|
822
|
-
borderColor:
|
|
832
|
+
borderColor: _e ? "var(--sa-border-subtle, #0b120e24)" : "transparent"
|
|
823
833
|
},
|
|
824
834
|
children: [
|
|
825
835
|
/* @__PURE__ */ e(
|
|
@@ -830,7 +840,13 @@ function As({
|
|
|
830
840
|
style: { flexShrink: 0 }
|
|
831
841
|
}
|
|
832
842
|
),
|
|
833
|
-
/* @__PURE__ */ e(
|
|
843
|
+
/* @__PURE__ */ e(
|
|
844
|
+
xn,
|
|
845
|
+
{
|
|
846
|
+
text: Fe.title,
|
|
847
|
+
active: _e
|
|
848
|
+
}
|
|
849
|
+
),
|
|
834
850
|
Ae && /* @__PURE__ */ e(
|
|
835
851
|
Qt,
|
|
836
852
|
{
|
|
@@ -1475,7 +1491,7 @@ function As({
|
|
|
1475
1491
|
style: {
|
|
1476
1492
|
textAlign: "left",
|
|
1477
1493
|
borderColor: "transparent",
|
|
1478
|
-
color: j ? "var(--sa-text-primary, #292a2e)" : "var(--sa-
|
|
1494
|
+
color: j ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)"
|
|
1479
1495
|
},
|
|
1480
1496
|
children: [
|
|
1481
1497
|
E.icon && /* @__PURE__ */ e(
|
|
@@ -1491,7 +1507,7 @@ function As({
|
|
|
1491
1507
|
{
|
|
1492
1508
|
as: "span",
|
|
1493
1509
|
fontSize: "md",
|
|
1494
|
-
fontWeight: "medium",
|
|
1510
|
+
fontWeight: j ? "medium" : "normal",
|
|
1495
1511
|
whiteSpace: "nowrap",
|
|
1496
1512
|
style: { flex: 1 },
|
|
1497
1513
|
children: E.title
|
|
@@ -5910,9 +5926,9 @@ const Fl = 240, pi = ({
|
|
|
5910
5926
|
var Ke;
|
|
5911
5927
|
const Re = He.current;
|
|
5912
5928
|
if (!Re) return;
|
|
5913
|
-
const nt = ((Ke = t[Re.colIndex]) == null ? void 0 : Ke.minWidth) ?? D,
|
|
5929
|
+
const nt = ((Ke = t[Re.colIndex]) == null ? void 0 : Ke.minWidth) ?? D, Ee = Math.max(nt, Re.startWidth + (Xe.clientX - Re.startX));
|
|
5914
5930
|
pe(
|
|
5915
|
-
(ft) => ft[Re.colIndex] ===
|
|
5931
|
+
(ft) => ft[Re.colIndex] === Ee ? ft : { ...ft, [Re.colIndex]: Ee }
|
|
5916
5932
|
);
|
|
5917
5933
|
}, lt = () => {
|
|
5918
5934
|
document.removeEventListener("mousemove", Oe), document.removeEventListener("mouseup", lt), document.body.style.userSelect = de, document.body.style.cursor = Me, He.current = null, A && pe((Xe) => (A(Xe), Xe));
|
|
@@ -5930,7 +5946,7 @@ const Fl = 240, pi = ({
|
|
|
5930
5946
|
children: /* @__PURE__ */ d(tt, { children: [
|
|
5931
5947
|
t.map((O, K) => {
|
|
5932
5948
|
var Dt, bt;
|
|
5933
|
-
const q = p > 0 && K < p, he = ze[K] ?? 0, de = Ye(O), Oe = K === t.length - 1 && T && w, lt = _(O), Xe = !!O.sortable && !!lt, Re = Xe && (Q == null ? void 0 : Q.key) === lt ? Q.direction : null, nt = O.title || ((Dt = O.accessor) == null ? void 0 : Dt.toString()) || "",
|
|
5949
|
+
const q = p > 0 && K < p, he = ze[K] ?? 0, de = Ye(O), Oe = K === t.length - 1 && T && w, lt = _(O), Xe = !!O.sortable && !!lt, Re = Xe && (Q == null ? void 0 : Q.key) === lt ? Q.direction : null, nt = O.title || ((Dt = O.accessor) == null ? void 0 : Dt.toString()) || "", Ee = (bt = O.headerTooltip) != null && bt.showIcon ? /* @__PURE__ */ e(
|
|
5934
5950
|
M,
|
|
5935
5951
|
{
|
|
5936
5952
|
name: "InfoCircle",
|
|
@@ -5960,13 +5976,13 @@ const Fl = 240, pi = ({
|
|
|
5960
5976
|
},
|
|
5961
5977
|
children: [
|
|
5962
5978
|
Ke,
|
|
5963
|
-
|
|
5979
|
+
Ee,
|
|
5964
5980
|
/* @__PURE__ */ e($l, { direction: Re })
|
|
5965
5981
|
]
|
|
5966
5982
|
}
|
|
5967
5983
|
) : /* @__PURE__ */ d("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
5968
5984
|
Ke,
|
|
5969
|
-
|
|
5985
|
+
Ee
|
|
5970
5986
|
] });
|
|
5971
5987
|
return /* @__PURE__ */ d(
|
|
5972
5988
|
St,
|
|
@@ -6548,14 +6564,14 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6548
6564
|
return [...r].sort(
|
|
6549
6565
|
(L, Z) => Xl(q(y.col, L), q(y.col, Z)) * x
|
|
6550
6566
|
);
|
|
6551
|
-
}, [r, pe, J, ue]), Me = !Ye && !O, Oe = !!s && Me, [lt, Xe] = qi(s ?? ""), Re = Oe ? lt : void 0, nt = oe(null), [
|
|
6567
|
+
}, [r, pe, J, ue]), Me = !Ye && !O, Oe = !!s && Me, [lt, Xe] = qi(s ?? ""), Re = Oe ? lt : void 0, nt = oe(null), [Ee, Ke] = H();
|
|
6552
6568
|
at(() => {
|
|
6553
6569
|
Ke(void 0);
|
|
6554
6570
|
}, [K]), at(() => {
|
|
6555
|
-
if (!Me ||
|
|
6571
|
+
if (!Me || Ee || !nt.current) return;
|
|
6556
6572
|
const y = nt.current.querySelectorAll("th.sa-tl-leaf");
|
|
6557
6573
|
Ke(Array.from(y).map((x) => x.offsetWidth));
|
|
6558
|
-
}, [
|
|
6574
|
+
}, [Ee, Me]);
|
|
6559
6575
|
const [ft, Dt] = H(), [bt, xt] = H(0);
|
|
6560
6576
|
at(() => {
|
|
6561
6577
|
if (!Ye || !nt.current) return;
|
|
@@ -6565,11 +6581,11 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6565
6581
|
const Et = (y, x) => {
|
|
6566
6582
|
if ((Re == null ? void 0 : Re[x]) != null) return Re[x];
|
|
6567
6583
|
if (y.width != null) return y.width;
|
|
6568
|
-
if ((
|
|
6569
|
-
}, E = (y, x) => typeof y.width == "number" ? y.width :
|
|
6570
|
-
const x = ft ??
|
|
6571
|
-
if (!x) return
|
|
6572
|
-
let L =
|
|
6584
|
+
if ((Ee == null ? void 0 : Ee[x]) != null) return Ee[x];
|
|
6585
|
+
}, E = (y, x) => typeof y.width == "number" ? y.width : Ee == null ? void 0 : Ee[x], j = De.frozenKey && !Ye && !O ? ue.findIndex((y) => y.key === De.frozenKey) : -1, ee = (y) => y <= j, Se = z ? It : 0, Be = (y) => {
|
|
6586
|
+
const x = ft ?? Ee;
|
|
6587
|
+
if (!x) return Se;
|
|
6588
|
+
let L = Se;
|
|
6573
6589
|
for (let Z = 0; Z < y; Z++) L += x[Z] ?? 0;
|
|
6574
6590
|
return L;
|
|
6575
6591
|
};
|
|
@@ -6594,7 +6610,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6594
6610
|
return Z.observe(y), y.querySelectorAll("th.sa-tl-leaf").forEach((ie) => Z.observe(ie)), L(), () => {
|
|
6595
6611
|
x && cancelAnimationFrame(x), Z.disconnect();
|
|
6596
6612
|
};
|
|
6597
|
-
}, [K, j, z,
|
|
6613
|
+
}, [K, j, z, Ee, Re]);
|
|
6598
6614
|
const it = oe(null), [Te, Fe] = H("100vh");
|
|
6599
6615
|
at(() => {
|
|
6600
6616
|
if (S !== void 0) return;
|
|
@@ -6608,11 +6624,11 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6608
6624
|
};
|
|
6609
6625
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
6610
6626
|
}, [S]);
|
|
6611
|
-
const Ae = (y, x) => n ? n(y, x) : x,
|
|
6627
|
+
const Ae = (y, x) => n ? n(y, x) : x, _e = U !== void 0, [Wt, Ci] = H(
|
|
6612
6628
|
() => new Set(Q ?? [])
|
|
6613
6629
|
), gt = ve(
|
|
6614
|
-
() =>
|
|
6615
|
-
[
|
|
6630
|
+
() => _e ? new Set(U) : Wt,
|
|
6631
|
+
[_e, U, Wt]
|
|
6616
6632
|
);
|
|
6617
6633
|
Y(() => {
|
|
6618
6634
|
z && !n && process.env.NODE_ENV !== "production" && console.warn(
|
|
@@ -6620,7 +6636,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6620
6636
|
);
|
|
6621
6637
|
}, [z, !n]);
|
|
6622
6638
|
const tn = (y) => {
|
|
6623
|
-
if (
|
|
6639
|
+
if (_e || Ci(y), _) {
|
|
6624
6640
|
const x = de.filter((L, Z) => y.has(Ae(L, Z)));
|
|
6625
6641
|
_(Array.from(y), x);
|
|
6626
6642
|
}
|
|
@@ -7075,7 +7091,7 @@ const Ps = Zl(jl), Tn = 200, Fr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7075
7091
|
);
|
|
7076
7092
|
})
|
|
7077
7093
|
}
|
|
7078
|
-
), Oi = l && Me &&
|
|
7094
|
+
), Oi = l && Me && Ee !== void 0, dn = c === "fixed" && !l && (Me ? Ee !== void 0 : !0), Ti = dn && !Me, _t = D && D.length > 0 ? D.map((y, x) => /* @__PURE__ */ e(tt, { children: y.cells.map((L, Z) => /* @__PURE__ */ e(
|
|
7079
7095
|
Ve,
|
|
7080
7096
|
{
|
|
7081
7097
|
colSpan: L.colSpan,
|
|
@@ -11101,7 +11117,7 @@ function Kr(t) {
|
|
|
11101
11117
|
return null;
|
|
11102
11118
|
}
|
|
11103
11119
|
Kr.displayName = "LayoutDialog.Footer";
|
|
11104
|
-
const
|
|
11120
|
+
const Pe = {
|
|
11105
11121
|
"lyd-root": "_lyd-root_1g78i_1",
|
|
11106
11122
|
"lyd-backdrop": "_lyd-backdrop_1g78i_38",
|
|
11107
11123
|
"lyd-panel": "_lyd-panel_1g78i_47",
|
|
@@ -11136,11 +11152,11 @@ const _e = {
|
|
|
11136
11152
|
}
|
|
11137
11153
|
];
|
|
11138
11154
|
function Vc({ value: t, onChange: r }) {
|
|
11139
|
-
return /* @__PURE__ */ e("div", { className:
|
|
11155
|
+
return /* @__PURE__ */ e("div", { className: Pe["lyd-vm-group"], role: "group", "aria-label": "View mode", children: Tc.map((n) => /* @__PURE__ */ e(
|
|
11140
11156
|
"button",
|
|
11141
11157
|
{
|
|
11142
11158
|
type: "button",
|
|
11143
|
-
className:
|
|
11159
|
+
className: Pe["lyd-vm-btn"],
|
|
11144
11160
|
"data-active": t === n.mode,
|
|
11145
11161
|
"aria-label": `Switch to ${n.label} view`,
|
|
11146
11162
|
"aria-pressed": t === n.mode,
|
|
@@ -11235,10 +11251,10 @@ function _c(t) {
|
|
|
11235
11251
|
);
|
|
11236
11252
|
if (!r) return null;
|
|
11237
11253
|
const U = [
|
|
11238
|
-
|
|
11239
|
-
A === "modal" &&
|
|
11240
|
-
A === "fullscreen" &&
|
|
11241
|
-
A === "sidebar" &&
|
|
11254
|
+
Pe["lyd-panel"],
|
|
11255
|
+
A === "modal" && Pe["lyd-modal"],
|
|
11256
|
+
A === "fullscreen" && Pe["lyd-fullscreen"],
|
|
11257
|
+
A === "sidebar" && Pe["lyd-sidebar"]
|
|
11242
11258
|
].filter(Boolean).join(" "), Q = {
|
|
11243
11259
|
"--lyd-max-w": $c(a),
|
|
11244
11260
|
...u !== void 0 && { "--lyd-aside-w": u }
|
|
@@ -11249,7 +11265,7 @@ function _c(t) {
|
|
|
11249
11265
|
/* @__PURE__ */ d(
|
|
11250
11266
|
"div",
|
|
11251
11267
|
{
|
|
11252
|
-
className:
|
|
11268
|
+
className: Pe["lyd-root"],
|
|
11253
11269
|
style: Q,
|
|
11254
11270
|
role: "dialog",
|
|
11255
11271
|
"aria-modal": "true",
|
|
@@ -11257,21 +11273,21 @@ function _c(t) {
|
|
|
11257
11273
|
/* @__PURE__ */ e(
|
|
11258
11274
|
"div",
|
|
11259
11275
|
{
|
|
11260
|
-
className:
|
|
11276
|
+
className: Pe["lyd-backdrop"],
|
|
11261
11277
|
onClick: _,
|
|
11262
11278
|
"aria-hidden": "true"
|
|
11263
11279
|
}
|
|
11264
11280
|
),
|
|
11265
11281
|
/* @__PURE__ */ d("div", { className: U, children: [
|
|
11266
|
-
/* @__PURE__ */ d("div", { className:
|
|
11267
|
-
/* @__PURE__ */ e("div", { className:
|
|
11268
|
-
/* @__PURE__ */ d("div", { className:
|
|
11282
|
+
/* @__PURE__ */ d("div", { className: Pe["lyd-header"], children: [
|
|
11283
|
+
/* @__PURE__ */ e("div", { className: Pe["lyd-header-content"], children: B }),
|
|
11284
|
+
/* @__PURE__ */ d("div", { className: Pe["lyd-header-actions"], children: [
|
|
11269
11285
|
c && /* @__PURE__ */ e(Vc, { value: W, onChange: D }),
|
|
11270
11286
|
s && /* @__PURE__ */ e(
|
|
11271
11287
|
"button",
|
|
11272
11288
|
{
|
|
11273
11289
|
type: "button",
|
|
11274
|
-
className:
|
|
11290
|
+
className: Pe["lyd-close-btn"],
|
|
11275
11291
|
onClick: n,
|
|
11276
11292
|
"aria-label": "Close dialog",
|
|
11277
11293
|
children: /* @__PURE__ */ e(M, { name: "Cross", size: "md" })
|
|
@@ -11279,11 +11295,11 @@ function _c(t) {
|
|
|
11279
11295
|
)
|
|
11280
11296
|
] })
|
|
11281
11297
|
] }),
|
|
11282
|
-
/* @__PURE__ */ d("div", { className:
|
|
11283
|
-
/* @__PURE__ */ e("div", { className:
|
|
11284
|
-
R && /* @__PURE__ */ e("aside", { className:
|
|
11298
|
+
/* @__PURE__ */ d("div", { className: Pe["lyd-main"], children: [
|
|
11299
|
+
/* @__PURE__ */ e("div", { className: Pe["lyd-body"], children: w }),
|
|
11300
|
+
R && /* @__PURE__ */ e("aside", { className: Pe["lyd-aside"], children: R })
|
|
11285
11301
|
] }),
|
|
11286
|
-
z && /* @__PURE__ */ e("div", { className:
|
|
11302
|
+
z && /* @__PURE__ */ e("div", { className: Pe["lyd-footer"], children: z })
|
|
11287
11303
|
] })
|
|
11288
11304
|
]
|
|
11289
11305
|
}
|