@blackpurl/bp-react-components 1.0.9 → 1.0.10
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.js +78 -72
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2147,7 +2147,7 @@ var ou = /* @__PURE__ */ (function() {
|
|
|
2147
2147
|
return (i = o.parentNode) == null ? void 0 : i.removeChild(o);
|
|
2148
2148
|
}), this.tags = [], this.ctr = 0;
|
|
2149
2149
|
}, e;
|
|
2150
|
-
})(),
|
|
2150
|
+
})(), yt = "-ms-", Si = "-moz-", De = "-webkit-", nu = "comm", ks = "rule", Rs = "decl", ih = "@import", iu = "@keyframes", ah = "@layer", sh = Math.abs, Ji = String.fromCharCode, lh = Object.assign;
|
|
2151
2151
|
function ch(e, t) {
|
|
2152
2152
|
return ht(e, 0) ^ 45 ? (((t << 2 ^ ht(e, 0)) << 2 ^ ht(e, 1)) << 2 ^ ht(e, 2)) << 2 ^ ht(e, 3) : 0;
|
|
2153
2153
|
}
|
|
@@ -2540,32 +2540,32 @@ function du(e, t) {
|
|
|
2540
2540
|
case 4810:
|
|
2541
2541
|
case 6968:
|
|
2542
2542
|
case 2756:
|
|
2543
|
-
return De + e + Si + e +
|
|
2543
|
+
return De + e + Si + e + yt + e + e;
|
|
2544
2544
|
// flex, flex-direction
|
|
2545
2545
|
case 6828:
|
|
2546
2546
|
case 4268:
|
|
2547
|
-
return De + e +
|
|
2547
|
+
return De + e + yt + e + e;
|
|
2548
2548
|
// order
|
|
2549
2549
|
case 6165:
|
|
2550
|
-
return De + e +
|
|
2550
|
+
return De + e + yt + "flex-" + e + e;
|
|
2551
2551
|
// align-items
|
|
2552
2552
|
case 5187:
|
|
2553
|
-
return De + e + je(e, /(\w+).+(:[^]+)/, De + "box-$1$2" +
|
|
2553
|
+
return De + e + je(e, /(\w+).+(:[^]+)/, De + "box-$1$2" + yt + "flex-$1$2") + e;
|
|
2554
2554
|
// align-self
|
|
2555
2555
|
case 5443:
|
|
2556
|
-
return De + e +
|
|
2556
|
+
return De + e + yt + "flex-item-" + je(e, /flex-|-self/, "") + e;
|
|
2557
2557
|
// align-content
|
|
2558
2558
|
case 4675:
|
|
2559
|
-
return De + e +
|
|
2559
|
+
return De + e + yt + "flex-line-pack" + je(e, /align-content|flex-|-self/, "") + e;
|
|
2560
2560
|
// flex-shrink
|
|
2561
2561
|
case 5548:
|
|
2562
|
-
return De + e +
|
|
2562
|
+
return De + e + yt + je(e, "shrink", "negative") + e;
|
|
2563
2563
|
// flex-basis
|
|
2564
2564
|
case 5292:
|
|
2565
|
-
return De + e +
|
|
2565
|
+
return De + e + yt + je(e, "basis", "preferred-size") + e;
|
|
2566
2566
|
// flex-grow
|
|
2567
2567
|
case 6060:
|
|
2568
|
-
return De + "box-" + je(e, "-grow", "") + De + e +
|
|
2568
|
+
return De + "box-" + je(e, "-grow", "") + De + e + yt + je(e, "grow", "positive") + e;
|
|
2569
2569
|
// transition
|
|
2570
2570
|
case 4554:
|
|
2571
2571
|
return De + je(e, /([^-])(transform)/g, "$1" + De + "$2") + e;
|
|
@@ -2578,7 +2578,7 @@ function du(e, t) {
|
|
|
2578
2578
|
return je(e, /(image-set\([^]*)/, De + "$1$`$1");
|
|
2579
2579
|
// justify-content
|
|
2580
2580
|
case 4968:
|
|
2581
|
-
return je(je(e, /(.+:)(flex-)?(.*)/, De + "box-pack:$3" +
|
|
2581
|
+
return je(je(e, /(.+:)(flex-)?(.*)/, De + "box-pack:$3" + yt + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + De + e + e;
|
|
2582
2582
|
// (margin|padding)-inline-(start|end)
|
|
2583
2583
|
case 4095:
|
|
2584
2584
|
case 3583:
|
|
@@ -2621,7 +2621,7 @@ function du(e, t) {
|
|
|
2621
2621
|
return je(e, ":", ":" + De) + e;
|
|
2622
2622
|
// (inline-)?fl(e)x
|
|
2623
2623
|
case 101:
|
|
2624
|
-
return je(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + De + (ht(e, 14) === 45 ? "inline-" : "") + "box$3$1" + De + "$2$3$1" +
|
|
2624
|
+
return je(e, /(.+:)([^;!]+)(;|!.+)?/, "$1" + De + (ht(e, 14) === 45 ? "inline-" : "") + "box$3$1" + De + "$2$3$1" + yt + "$2box$3") + e;
|
|
2625
2625
|
}
|
|
2626
2626
|
break;
|
|
2627
2627
|
// writing-mode
|
|
@@ -2629,15 +2629,15 @@ function du(e, t) {
|
|
|
2629
2629
|
switch (ht(e, t + 11)) {
|
|
2630
2630
|
// vertical-l(r)
|
|
2631
2631
|
case 114:
|
|
2632
|
-
return De + e +
|
|
2632
|
+
return De + e + yt + je(e, /[svh]\w+-[tblr]{2}/, "tb") + e;
|
|
2633
2633
|
// vertical-r(l)
|
|
2634
2634
|
case 108:
|
|
2635
|
-
return De + e +
|
|
2635
|
+
return De + e + yt + je(e, /[svh]\w+-[tblr]{2}/, "tb-rl") + e;
|
|
2636
2636
|
// horizontal(-)tb
|
|
2637
2637
|
case 45:
|
|
2638
|
-
return De + e +
|
|
2638
|
+
return De + e + yt + je(e, /[svh]\w+-[tblr]{2}/, "lr") + e;
|
|
2639
2639
|
}
|
|
2640
|
-
return De + e +
|
|
2640
|
+
return De + e + yt + e + e;
|
|
2641
2641
|
}
|
|
2642
2642
|
return e;
|
|
2643
2643
|
}
|
|
@@ -2666,7 +2666,7 @@ var Rh = function(t, r, o, i) {
|
|
|
2666
2666
|
}), Yo(t, {
|
|
2667
2667
|
props: [je(a, /:(plac\w+)/, ":" + Si + "$1")]
|
|
2668
2668
|
}), Yo(t, {
|
|
2669
|
-
props: [je(a, /:(plac\w+)/,
|
|
2669
|
+
props: [je(a, /:(plac\w+)/, yt + "input-$1")]
|
|
2670
2670
|
})], i);
|
|
2671
2671
|
}
|
|
2672
2672
|
return "";
|
|
@@ -3961,10 +3961,10 @@ function Cg(e) {
|
|
|
3961
3961
|
else {
|
|
3962
3962
|
const Ie = xe.replace("%s", pe).match(/\[([^\]]+)\]/);
|
|
3963
3963
|
if (Ie) {
|
|
3964
|
-
const [Re,
|
|
3965
|
-
|
|
3964
|
+
const [Re, mt] = Ie[1].split("=");
|
|
3965
|
+
mt || X.forEach(($e) => {
|
|
3966
3966
|
j.removeAttribute(Re.replace(pe, $e));
|
|
3967
|
-
}), j.setAttribute(Re,
|
|
3967
|
+
}), j.setAttribute(Re, mt ? mt.replace(/"|'/g, "") : "");
|
|
3968
3968
|
} else
|
|
3969
3969
|
j.setAttribute(xe, pe);
|
|
3970
3970
|
}
|
|
@@ -5744,13 +5744,13 @@ function Im({
|
|
|
5744
5744
|
...t
|
|
5745
5745
|
});
|
|
5746
5746
|
}
|
|
5747
|
-
const Dm = ue("MuiBox", ["root"]), jm = Bo(),
|
|
5747
|
+
const Dm = ue("MuiBox", ["root"]), jm = Bo(), gt = _h({
|
|
5748
5748
|
themeId: hr,
|
|
5749
5749
|
defaultTheme: jm,
|
|
5750
5750
|
defaultClassName: Dm.root,
|
|
5751
5751
|
generateClassName: gu.generate
|
|
5752
5752
|
});
|
|
5753
|
-
process.env.NODE_ENV !== "production" && (
|
|
5753
|
+
process.env.NODE_ENV !== "production" && (gt.propTypes = {
|
|
5754
5754
|
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
5755
5755
|
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
5756
5756
|
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
@@ -8998,7 +8998,7 @@ const qb = "data:image/svg+xml,%3csvg%20width='120'%20height='120'%20viewBox='0%
|
|
|
8998
8998
|
function Sc({ sx: e, imgUrl: t, action: r, filled: o, slotProps: i, description: a, title: s = "No data", ...l }) {
|
|
8999
8999
|
return /* @__PURE__ */ g.jsxs(Kb, { filled: o, sx: e, ...l, children: [
|
|
9000
9000
|
/* @__PURE__ */ g.jsx(
|
|
9001
|
-
|
|
9001
|
+
gt,
|
|
9002
9002
|
{
|
|
9003
9003
|
component: "img",
|
|
9004
9004
|
alt: "Empty content",
|
|
@@ -13685,7 +13685,7 @@ const g2 = /* @__PURE__ */ Of(function(t) {
|
|
|
13685
13685
|
droppableRects: H,
|
|
13686
13686
|
droppableContainers: $,
|
|
13687
13687
|
pointerCoordinates: rt
|
|
13688
|
-
}) : null,
|
|
13688
|
+
}) : null, mt = g1(Re, "id"), [$e, wt] = ze(null), vt = ce ? ae : Oo(ae, qe), Tt = v1(vt, (a = $e?.rect) != null ? a : null, U), jt = Ue(null), At = Ke(
|
|
13689
13689
|
(Xe, nt) => {
|
|
13690
13690
|
let {
|
|
13691
13691
|
sensor: it,
|
|
@@ -13722,15 +13722,15 @@ const g2 = /* @__PURE__ */ Of(function(t) {
|
|
|
13722
13722
|
return;
|
|
13723
13723
|
const {
|
|
13724
13724
|
onDragPending: Ct
|
|
13725
|
-
} = _.current,
|
|
13725
|
+
} = _.current, bt = {
|
|
13726
13726
|
id: te,
|
|
13727
13727
|
constraint: ye,
|
|
13728
13728
|
initialCoordinates: be,
|
|
13729
13729
|
offset: Oe
|
|
13730
13730
|
};
|
|
13731
|
-
Ct?.(
|
|
13731
|
+
Ct?.(bt), I({
|
|
13732
13732
|
type: "onDragPending",
|
|
13733
|
-
event:
|
|
13733
|
+
event: bt
|
|
13734
13734
|
});
|
|
13735
13735
|
},
|
|
13736
13736
|
onStart(te) {
|
|
@@ -13779,29 +13779,29 @@ const g2 = /* @__PURE__ */ Of(function(t) {
|
|
|
13779
13779
|
over: ut,
|
|
13780
13780
|
scrollAdjustedTranslate: Ct
|
|
13781
13781
|
} = V.current;
|
|
13782
|
-
let
|
|
13782
|
+
let bt = null;
|
|
13783
13783
|
if (be && Ct) {
|
|
13784
13784
|
const {
|
|
13785
13785
|
cancelDrop: Qt
|
|
13786
13786
|
} = _.current;
|
|
13787
|
-
|
|
13787
|
+
bt = {
|
|
13788
13788
|
activatorEvent: le,
|
|
13789
13789
|
active: be,
|
|
13790
13790
|
collisions: Oe,
|
|
13791
13791
|
delta: Ct,
|
|
13792
13792
|
over: ut
|
|
13793
|
-
}, te === lt.DragEnd && typeof Qt == "function" && await Promise.resolve(Qt(
|
|
13793
|
+
}, te === lt.DragEnd && typeof Qt == "function" && await Promise.resolve(Qt(bt)) && (te = lt.DragCancel);
|
|
13794
13794
|
}
|
|
13795
13795
|
R.current = null, Fn(() => {
|
|
13796
13796
|
E({
|
|
13797
13797
|
type: te
|
|
13798
13798
|
}), x(Dr.Uninitialized), wt(null), P(null), L(null), jt.current = null;
|
|
13799
13799
|
const Qt = te === lt.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
13800
|
-
if (
|
|
13800
|
+
if (bt) {
|
|
13801
13801
|
const ar = _.current[Qt];
|
|
13802
|
-
ar?.(
|
|
13802
|
+
ar?.(bt), I({
|
|
13803
13803
|
type: Qt,
|
|
13804
|
-
event:
|
|
13804
|
+
event: bt
|
|
13805
13805
|
});
|
|
13806
13806
|
}
|
|
13807
13807
|
});
|
|
@@ -13872,7 +13872,7 @@ const g2 = /* @__PURE__ */ Of(function(t) {
|
|
|
13872
13872
|
return;
|
|
13873
13873
|
const {
|
|
13874
13874
|
onDragOver: le
|
|
13875
|
-
} = _.current, _e = xt.get(
|
|
13875
|
+
} = _.current, _e = xt.get(mt), ee = _e && _e.rect.current ? {
|
|
13876
13876
|
id: _e.id,
|
|
13877
13877
|
rect: _e.rect.current,
|
|
13878
13878
|
data: _e.data,
|
|
@@ -13895,7 +13895,7 @@ const g2 = /* @__PURE__ */ Of(function(t) {
|
|
|
13895
13895
|
});
|
|
13896
13896
|
},
|
|
13897
13897
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
13898
|
-
[
|
|
13898
|
+
[mt]
|
|
13899
13899
|
), br(() => {
|
|
13900
13900
|
V.current = {
|
|
13901
13901
|
activatorEvent: F,
|
|
@@ -14481,7 +14481,7 @@ function L2({ id: e, isDragging: t, children: r }) {
|
|
|
14481
14481
|
opacity: t ? 0.95 : 1
|
|
14482
14482
|
};
|
|
14483
14483
|
return /* @__PURE__ */ g.jsxs(
|
|
14484
|
-
|
|
14484
|
+
gt,
|
|
14485
14485
|
{
|
|
14486
14486
|
ref: a,
|
|
14487
14487
|
...o,
|
|
@@ -14499,13 +14499,13 @@ function L2({ id: e, isDragging: t, children: r }) {
|
|
|
14499
14499
|
},
|
|
14500
14500
|
children: [
|
|
14501
14501
|
/* @__PURE__ */ g.jsx(
|
|
14502
|
-
|
|
14502
|
+
gt,
|
|
14503
14503
|
{
|
|
14504
14504
|
...i,
|
|
14505
14505
|
className: "drag-icon",
|
|
14506
14506
|
sx: {
|
|
14507
14507
|
position: "absolute",
|
|
14508
|
-
left: "
|
|
14508
|
+
left: "4px",
|
|
14509
14509
|
top: "50%",
|
|
14510
14510
|
transform: "translateY(-50%)",
|
|
14511
14511
|
display: "flex",
|
|
@@ -14522,12 +14522,12 @@ function L2({ id: e, isDragging: t, children: r }) {
|
|
|
14522
14522
|
}
|
|
14523
14523
|
),
|
|
14524
14524
|
/* @__PURE__ */ g.jsx(
|
|
14525
|
-
|
|
14525
|
+
gt,
|
|
14526
14526
|
{
|
|
14527
14527
|
sx: {
|
|
14528
14528
|
width: "100%",
|
|
14529
14529
|
minWidth: 0,
|
|
14530
|
-
pl: "
|
|
14530
|
+
pl: "20px",
|
|
14531
14531
|
// reserve left area for drag icon
|
|
14532
14532
|
overflow: "hidden",
|
|
14533
14533
|
textOverflow: "ellipsis",
|
|
@@ -16539,8 +16539,8 @@ const fl = /* @__PURE__ */ O.forwardRef(function(t, r) {
|
|
|
16539
16539
|
x: le.clientX,
|
|
16540
16540
|
y: le.clientY
|
|
16541
16541
|
}, xe.current && xe.current.update();
|
|
16542
|
-
}, Re = {},
|
|
16543
|
-
d ? (Re.title = !V &&
|
|
16542
|
+
}, Re = {}, mt = typeof B == "string";
|
|
16543
|
+
d ? (Re.title = !V && mt && !p ? B : null, Re["aria-describedby"] = V ? ie : null) : (Re["aria-label"] = mt ? B : null, Re["aria-labelledby"] = V && !mt ? ie : null);
|
|
16544
16544
|
const $e = {
|
|
16545
16545
|
...Re,
|
|
16546
16546
|
...P,
|
|
@@ -16855,7 +16855,7 @@ const ix = ({ children: e }) => {
|
|
|
16855
16855
|
const a = i.scrollWidth > i.clientWidth;
|
|
16856
16856
|
o(a);
|
|
16857
16857
|
}, [e]), /* @__PURE__ */ g.jsx(fl, { title: r ? e : "", arrow: !0, disableHoverListener: !r, children: /* @__PURE__ */ g.jsx(
|
|
16858
|
-
|
|
16858
|
+
gt,
|
|
16859
16859
|
{
|
|
16860
16860
|
ref: t,
|
|
16861
16861
|
sx: {
|
|
@@ -17967,7 +17967,7 @@ const Wp = /* @__PURE__ */ O.forwardRef(function(t, r) {
|
|
|
17967
17967
|
shouldForwardComponentProp: !0,
|
|
17968
17968
|
externalForwardedProps: pe,
|
|
17969
17969
|
ownerState: A
|
|
17970
|
-
}),
|
|
17970
|
+
}), mt = O.useCallback((ee) => {
|
|
17971
17971
|
Ie?.(ee), ne({
|
|
17972
17972
|
overflow: null,
|
|
17973
17973
|
scrollbarWidth: ee
|
|
@@ -17992,7 +17992,7 @@ const Wp = /* @__PURE__ */ O.forwardRef(function(t, r) {
|
|
|
17992
17992
|
const ee = {};
|
|
17993
17993
|
ee.scrollbarSizeListener = B ? /* @__PURE__ */ g.jsx(xe, {
|
|
17994
17994
|
...Re,
|
|
17995
|
-
onChange:
|
|
17995
|
+
onChange: mt
|
|
17996
17996
|
}) : null;
|
|
17997
17997
|
const ye = B && (I === "auto" && (Z || U) || I === !0);
|
|
17998
17998
|
return ee.scrollButtonStart = ye ? /* @__PURE__ */ g.jsx($e, {
|
|
@@ -18034,10 +18034,10 @@ const Wp = /* @__PURE__ */ O.forwardRef(function(t, r) {
|
|
|
18034
18034
|
let te;
|
|
18035
18035
|
const ye = (ut) => {
|
|
18036
18036
|
ut.forEach((Ct) => {
|
|
18037
|
-
Ct.removedNodes.forEach((
|
|
18038
|
-
te?.unobserve(
|
|
18039
|
-
}), Ct.addedNodes.forEach((
|
|
18040
|
-
te?.observe(
|
|
18037
|
+
Ct.removedNodes.forEach((bt) => {
|
|
18038
|
+
te?.unobserve(bt);
|
|
18039
|
+
}), Ct.addedNodes.forEach((bt) => {
|
|
18040
|
+
te?.observe(bt);
|
|
18041
18041
|
});
|
|
18042
18042
|
}), ee(), jt();
|
|
18043
18043
|
}, be = mr(ce.current);
|
|
@@ -18060,9 +18060,9 @@ const Wp = /* @__PURE__ */ O.forwardRef(function(t, r) {
|
|
|
18060
18060
|
Q(!ar[0].isIntersecting);
|
|
18061
18061
|
}, Ct = new IntersectionObserver(ut, Oe);
|
|
18062
18062
|
Ct.observe(ye);
|
|
18063
|
-
const
|
|
18063
|
+
const bt = (ar) => {
|
|
18064
18064
|
J(!ar[0].isIntersecting);
|
|
18065
|
-
}, Qt = new IntersectionObserver(
|
|
18065
|
+
}, Qt = new IntersectionObserver(bt, Oe);
|
|
18066
18066
|
return Qt.observe(be), () => {
|
|
18067
18067
|
Ct.disconnect(), Qt.disconnect();
|
|
18068
18068
|
};
|
|
@@ -21728,7 +21728,7 @@ function zC({ open: e, canReset: t, onClose: r, filterGroups: o, onFilterChange:
|
|
|
21728
21728
|
i(u);
|
|
21729
21729
|
}, l = () => /* @__PURE__ */ g.jsxs(g.Fragment, { children: [
|
|
21730
21730
|
/* @__PURE__ */ g.jsxs(
|
|
21731
|
-
|
|
21731
|
+
gt,
|
|
21732
21732
|
{
|
|
21733
21733
|
sx: {
|
|
21734
21734
|
py: 2,
|
|
@@ -21806,7 +21806,7 @@ function zC({ open: e, canReset: t, onClose: r, filterGroups: o, onFilterChange:
|
|
|
21806
21806
|
] })
|
|
21807
21807
|
}
|
|
21808
21808
|
),
|
|
21809
|
-
/* @__PURE__ */ g.jsx(nf, { sx: { px: 0, pt: 1, pb: 0, backgroundColor: "transparent" }, children: d?.length > 0 ? /* @__PURE__ */ g.jsx(
|
|
21809
|
+
/* @__PURE__ */ g.jsx(nf, { sx: { px: 0, pt: 1, pb: 0, backgroundColor: "transparent" }, children: d?.length > 0 ? /* @__PURE__ */ g.jsx(gt, { sx: { display: "flex", flexDirection: "column" }, children: d?.map((f) => /* @__PURE__ */ g.jsx(tf, { sx: { ml: 0.5 }, control: /* @__PURE__ */ g.jsx(ef, { checked: f.isSelected, onChange: () => a(f.Value, u) }), label: f.Value }, f.Value)) }) : /* @__PURE__ */ g.jsx(Rr, { variant: "body2", color: "text.disabled", children: "No options available" }) })
|
|
21810
21810
|
]
|
|
21811
21811
|
}
|
|
21812
21812
|
);
|
|
@@ -22062,14 +22062,14 @@ process.env.NODE_ENV !== "production" && (lf.propTypes = {
|
|
|
22062
22062
|
});
|
|
22063
22063
|
function YC({ rowCount: e = 8, cellCount: t = 6 }) {
|
|
22064
22064
|
return /* @__PURE__ */ g.jsx(
|
|
22065
|
-
|
|
22065
|
+
gt,
|
|
22066
22066
|
{
|
|
22067
22067
|
sx: {
|
|
22068
22068
|
width: "100%",
|
|
22069
22069
|
p: 2
|
|
22070
22070
|
},
|
|
22071
22071
|
children: Array.from({ length: e }).map((r, o) => /* @__PURE__ */ g.jsx(
|
|
22072
|
-
|
|
22072
|
+
gt,
|
|
22073
22073
|
{
|
|
22074
22074
|
sx: {
|
|
22075
22075
|
display: "flex",
|
|
@@ -22079,7 +22079,7 @@ function YC({ rowCount: e = 8, cellCount: t = 6 }) {
|
|
|
22079
22079
|
px: 1
|
|
22080
22080
|
},
|
|
22081
22081
|
children: Array.from({ length: t }).map((i, a) => /* @__PURE__ */ g.jsx(
|
|
22082
|
-
|
|
22082
|
+
gt,
|
|
22083
22083
|
{
|
|
22084
22084
|
sx: {
|
|
22085
22085
|
flex: 1,
|
|
@@ -22957,7 +22957,7 @@ function lS({
|
|
|
22957
22957
|
const J = Pe(() => t.filter((re) => !re.Additionalfilter), [t]), V = Em(), [ie, he] = ze([]), [ne, Ce] = ze("all");
|
|
22958
22958
|
we(() => {
|
|
22959
22959
|
const re = J.map((ge) => ge.accessorKey);
|
|
22960
|
-
|
|
22960
|
+
mt((ge) => ge?.length ? ge : re);
|
|
22961
22961
|
}, [J]);
|
|
22962
22962
|
const ce = {
|
|
22963
22963
|
density: "standard",
|
|
@@ -22980,7 +22980,7 @@ function lS({
|
|
|
22980
22980
|
const Se = Pe(() => t.filter((re) => re.isFilterable).map((re) => ({
|
|
22981
22981
|
id: re.accessorKey,
|
|
22982
22982
|
label: re.header || re.accessorKey
|
|
22983
|
-
})), [t]), [fe, ae] = ze(pe.density), [rt, st] = ze(pe.paginationModel), [ft, qe] = ze(pe.columnVisibilityModel), [xe, Ie] = ze(!1), [Re,
|
|
22983
|
+
})), [t]), [fe, ae] = ze(pe.density), [rt, st] = ze(pe.paginationModel), [ft, qe] = ze(pe.columnVisibilityModel), [xe, Ie] = ze(!1), [Re, mt] = ze(() => pe.columnOrder), [$e, wt] = ze(() => pe.sortModel?.length ? pe.sortModel : G?.length ? G : []), [vt, Tt] = ze(null), [jt, At] = ze(null), [Jt, Et] = ze(null), [ir, xr] = ze(!1), Cr = Ue(null), Xe = Ue(!1), nt = Pe(() => {
|
|
22984
22984
|
const re = new Map(J.map((ge) => [ge.accessorKey, ge]));
|
|
22985
22985
|
return Re.map((ge) => re.get(ge)).filter(Boolean);
|
|
22986
22986
|
}, [J, Re]);
|
|
@@ -23056,7 +23056,7 @@ function lS({
|
|
|
23056
23056
|
st((re) => re.page === 0 ? re : { ...re, page: 0 });
|
|
23057
23057
|
}, [W]);
|
|
23058
23058
|
const Oe = ({ active: re, over: ge }) => {
|
|
23059
|
-
!ge || re.id === ge.id ||
|
|
23059
|
+
!ge || re.id === ge.id || mt((Ze) => {
|
|
23060
23060
|
const Ot = Ze.indexOf(re.id), Sr = Ze.indexOf(ge.id);
|
|
23061
23061
|
return nl(Ze, Ot, Sr);
|
|
23062
23062
|
});
|
|
@@ -23076,8 +23076,8 @@ function lS({
|
|
|
23076
23076
|
getSelectedFilters: () => W
|
|
23077
23077
|
});
|
|
23078
23078
|
}, [T, W]);
|
|
23079
|
-
const Ct = Pe(() => fe !== ce.density || rt.page !== ce.paginationModel.page || rt.pageSize !== ce.paginationModel.pageSize || JSON.stringify(Re) !== JSON.stringify(ce.columnOrder) || JSON.stringify(ft) !== JSON.stringify(ce.columnVisibilityModel) || JSON.stringify($e) !== JSON.stringify(ce.sortModel), [fe, rt, Re, ft, $e, ce]),
|
|
23080
|
-
E && (localStorage.removeItem(`${E}-state`), ae(ce.density), st(ce.paginationModel),
|
|
23079
|
+
const Ct = Pe(() => fe !== ce.density || rt.page !== ce.paginationModel.page || rt.pageSize !== ce.paginationModel.pageSize || JSON.stringify(Re) !== JSON.stringify(ce.columnOrder) || JSON.stringify(ft) !== JSON.stringify(ce.columnVisibilityModel) || JSON.stringify($e) !== JSON.stringify(ce.sortModel), [fe, rt, Re, ft, $e, ce]), bt = () => {
|
|
23080
|
+
E && (localStorage.removeItem(`${E}-state`), ae(ce.density), st(ce.paginationModel), mt(ce.columnOrder), qe(ce.columnVisibilityModel), wt(ce.sortModel), yc.success("Table preferences reset"));
|
|
23081
23081
|
}, Qt = Ke((re) => {
|
|
23082
23082
|
if (!re || !Cr.current) return;
|
|
23083
23083
|
const ge = Cr.current, Ze = ge.querySelector(`[data-field="${re}"]`), Ot = ge.querySelector(".MuiDataGrid-columnHeaders"), Sr = ge.querySelector(".MuiDataGrid-virtualScroller");
|
|
@@ -23089,13 +23089,17 @@ function lS({
|
|
|
23089
23089
|
width: bl.width,
|
|
23090
23090
|
height: yl ? yl.bottom - ma.top : kt.height - (ma.top - kt.top)
|
|
23091
23091
|
});
|
|
23092
|
-
}, []), ar = /* @__PURE__ */ g.jsxs(
|
|
23092
|
+
}, []), ar = /* @__PURE__ */ g.jsxs(gt, { sx: { height: "calc(100vh - 180px)" }, children: [
|
|
23093
23093
|
/* @__PURE__ */ g.jsx(
|
|
23094
23094
|
Pf,
|
|
23095
23095
|
{
|
|
23096
23096
|
styles: {
|
|
23097
23097
|
".MuiCheckbox-root .MuiSvgIcon-root": {
|
|
23098
23098
|
fontSize: "20px"
|
|
23099
|
+
},
|
|
23100
|
+
"&::-webkit-scrollbar": {
|
|
23101
|
+
display: "none"
|
|
23102
|
+
// Chrome, Safari
|
|
23099
23103
|
}
|
|
23100
23104
|
}
|
|
23101
23105
|
}
|
|
@@ -23142,7 +23146,7 @@ function lS({
|
|
|
23142
23146
|
toolbar: cS,
|
|
23143
23147
|
loadingOverlay: () => /* @__PURE__ */ g.jsx(YC, { rowCount: rt.pageSize, cellCount: Qe.length }),
|
|
23144
23148
|
noRowsOverlay: () => _ ? /* @__PURE__ */ g.jsx(
|
|
23145
|
-
|
|
23149
|
+
gt,
|
|
23146
23150
|
{
|
|
23147
23151
|
sx: {
|
|
23148
23152
|
width: "100%",
|
|
@@ -23189,7 +23193,7 @@ function lS({
|
|
|
23189
23193
|
externalSearchValue: X,
|
|
23190
23194
|
onSearchChange: Z,
|
|
23191
23195
|
isSearchDisabled: !it?.length,
|
|
23192
|
-
onResetTableState:
|
|
23196
|
+
onResetTableState: bt,
|
|
23193
23197
|
isTableModified: Ct
|
|
23194
23198
|
},
|
|
23195
23199
|
columnsManagement: { getTogglableColumns: _e }
|
|
@@ -23199,6 +23203,8 @@ function lS({
|
|
|
23199
23203
|
[`& .${Lf.cell}`]: {
|
|
23200
23204
|
alignItems: "center",
|
|
23201
23205
|
display: "flex",
|
|
23206
|
+
paddingLeft: "20px",
|
|
23207
|
+
paddingRight: "8px",
|
|
23202
23208
|
py: fe === "compact" ? 0.5 : fe === "comfortable" ? 1.5 : 1
|
|
23203
23209
|
},
|
|
23204
23210
|
cursor: "pointer",
|
|
@@ -23263,7 +23269,7 @@ function lS({
|
|
|
23263
23269
|
}
|
|
23264
23270
|
},
|
|
23265
23271
|
"& .MuiDataGrid-columnHeader": {
|
|
23266
|
-
pl: 0,
|
|
23272
|
+
pl: y ? 0 : "20px",
|
|
23267
23273
|
transition: "transform 220ms cubic-bezier(0.25, 0.1, 0.25, 1)"
|
|
23268
23274
|
},
|
|
23269
23275
|
"& .MuiDataGrid-row": {
|
|
@@ -23340,10 +23346,10 @@ function lS({
|
|
|
23340
23346
|
onDragCancel: () => {
|
|
23341
23347
|
Tt(null), At(null), Et(null), xr(!1);
|
|
23342
23348
|
},
|
|
23343
|
-
children: /* @__PURE__ */ g.jsx(R2, { items: Re, strategy: O2, children: /* @__PURE__ */ g.jsxs(
|
|
23349
|
+
children: /* @__PURE__ */ g.jsx(R2, { items: Re, strategy: O2, children: /* @__PURE__ */ g.jsxs(gt, { ref: Cr, sx: { position: "relative" }, children: [
|
|
23344
23350
|
ar,
|
|
23345
23351
|
y && vt && jt && Jt && /* @__PURE__ */ g.jsx(
|
|
23346
|
-
|
|
23352
|
+
gt,
|
|
23347
23353
|
{
|
|
23348
23354
|
sx: {
|
|
23349
23355
|
position: "absolute",
|
|
@@ -23494,7 +23500,7 @@ function cS({
|
|
|
23494
23500
|
y && y,
|
|
23495
23501
|
u && R(),
|
|
23496
23502
|
/* @__PURE__ */ g.jsxs(
|
|
23497
|
-
|
|
23503
|
+
gt,
|
|
23498
23504
|
{
|
|
23499
23505
|
sx: {
|
|
23500
23506
|
gap: 1,
|
|
@@ -23586,7 +23592,7 @@ function cS({
|
|
|
23586
23592
|
]
|
|
23587
23593
|
}
|
|
23588
23594
|
),
|
|
23589
|
-
h && /* @__PURE__ */ g.jsx(
|
|
23595
|
+
h && /* @__PURE__ */ g.jsx(gt, { sx: { width: "100%", mt: -2 }, children: h }),
|
|
23590
23596
|
B()
|
|
23591
23597
|
] });
|
|
23592
23598
|
}
|
|
@@ -25656,7 +25662,7 @@ const p4 = {
|
|
|
25656
25662
|
borderWidth: 0,
|
|
25657
25663
|
scrollbarWidth: "thin",
|
|
25658
25664
|
scrollbarColor: `${K(e.vars.palette.text.disabledChannel, 0.4)} ${K(e.vars.palette.text.disabledChannel, 0.08)}`,
|
|
25659
|
-
"& .MuiDataGrid-filler > div": { borderTopStyle: "
|
|
25665
|
+
"& .MuiDataGrid-filler > div": { borderTopStyle: "none" },
|
|
25660
25666
|
"& .MuiDataGrid-topContainer::after": { height: 0 },
|
|
25661
25667
|
"& .MuiDataGrid-virtualScrollerContent": {
|
|
25662
25668
|
"& .MuiDataGrid-row": {
|
|
@@ -25750,7 +25756,7 @@ const p4 = {
|
|
|
25750
25756
|
/**
|
|
25751
25757
|
* Footer
|
|
25752
25758
|
*/
|
|
25753
|
-
footerContainer: { minHeight: "auto", borderTopStyle: "
|
|
25759
|
+
footerContainer: { minHeight: "auto", borderTopStyle: "none" },
|
|
25754
25760
|
selectedRowCount: { display: "none", whiteSpace: "nowrap" },
|
|
25755
25761
|
overlay: ({ theme: e }) => ({
|
|
25756
25762
|
[`& .${fb.root}`]: { color: e.vars.palette.text.primary }
|
|
@@ -25771,7 +25777,7 @@ const p4 = {
|
|
|
25771
25777
|
[`& .${eo.root}`]: { gap: 4, marginLeft: 0 }
|
|
25772
25778
|
}),
|
|
25773
25779
|
columnsManagementFooter: ({ theme: e }) => ({
|
|
25774
|
-
borderTopStyle: "
|
|
25780
|
+
borderTopStyle: "none",
|
|
25775
25781
|
padding: e.spacing(1.5),
|
|
25776
25782
|
[`& .${eo.root}`]: { gap: 4, marginLeft: 0 }
|
|
25777
25783
|
}),
|