@abdellatifui/react 3.2.70 → 3.2.72
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/nextgen.js +17 -13
- package/package.json +1 -1
package/dist/nextgen.js
CHANGED
|
@@ -5938,7 +5938,7 @@ const ih = ve("flex items-center justify-center z-1 css-iuur1", {
|
|
|
5938
5938
|
closeDelay: v = 0,
|
|
5939
5939
|
animationDuration: E = 0.2
|
|
5940
5940
|
} = e, A = oe((x) => {
|
|
5941
|
-
C({ open: t, ref: n, container: b, children: l, props: e, _children: i, id: o, event: x }), setTimeout(() => {
|
|
5941
|
+
console.log(x), C({ open: t, ref: n, container: b, children: l, props: e, _children: i, id: o, event: x }), setTimeout(() => {
|
|
5942
5942
|
pe(s.current).addClass("opacity-0"), s.current?.addEventListener("transitionend", (O) => {
|
|
5943
5943
|
pe(b?.current).removeClass("overflow-hidden"), r(!1), a(null), window.__model_on_screen = !1;
|
|
5944
5944
|
});
|
|
@@ -5987,7 +5987,7 @@ const ih = ve("flex items-center justify-center z-1 css-iuur1", {
|
|
|
5987
5987
|
vf,
|
|
5988
5988
|
{
|
|
5989
5989
|
onClickAway: (x) => {
|
|
5990
|
-
k({ event: x, open: t, ref: n, container: b, children: l, props: e, _children: i, id: o }), u && A();
|
|
5990
|
+
console.log(x), k({ event: x, open: t, ref: n, container: b, children: l, props: e, _children: i, id: o }), u && A();
|
|
5991
5991
|
},
|
|
5992
5992
|
children: i || l
|
|
5993
5993
|
}
|
|
@@ -15864,7 +15864,6 @@ const Jx = (e) => {
|
|
|
15864
15864
|
notifyReady: p,
|
|
15865
15865
|
notifyArray: h,
|
|
15866
15866
|
setNotifyReady: m,
|
|
15867
|
-
setReady: f,
|
|
15868
15867
|
restApi: o,
|
|
15869
15868
|
useAuthorization: r,
|
|
15870
15869
|
useNotify: E,
|
|
@@ -20904,25 +20903,30 @@ const uk = ye((e, n) => {
|
|
|
20904
20903
|
children: C1
|
|
20905
20904
|
}
|
|
20906
20905
|
) })), w1 = (e) => {
|
|
20907
|
-
const { gridRef: n, node: t, apiOnExpandToGetChilds: r } = e, { rowIndex: o } = t, [s, i] = I({}), a = ze(er), l = te(), [u, f] = Nn(l, { returnUpdate: !0 }), p = Nn(n, { returnUpdate: !1 })?.x, m = a?.states?.rowHeightInt;
|
|
20908
|
-
|
|
20906
|
+
const { gridRef: n, node: t, apiOnExpandToGetChilds: r } = e, { rowIndex: o } = t, [s, i] = I({}), a = ze(er), l = te(), [u, f] = Nn(l, { returnUpdate: !0 }), p = Nn(n, { returnUpdate: !1 })?.x, m = a?.states?.rowHeightInt, [h, g] = I(0);
|
|
20907
|
+
Y(() => {
|
|
20909
20908
|
if (n?.current)
|
|
20910
|
-
return pe(n?.current).on(`expandrow-${o}`, (
|
|
20911
|
-
i(
|
|
20909
|
+
return pe(n?.current).on(`expandrow-${o}`, (b, w) => {
|
|
20910
|
+
i(w);
|
|
20912
20911
|
}), () => {
|
|
20913
20912
|
pe(n?.current).off(`expandrow-${o}`), i(null);
|
|
20914
20913
|
};
|
|
20915
|
-
}, [o])
|
|
20914
|
+
}, [o]);
|
|
20915
|
+
const d = oe((b) => {
|
|
20916
|
+
const w = b.node.rowTop, S = b.node.rowHeight, k = pe(a?.tref?.current).find(".ag-body-viewport").height() - 2 - (w + S);
|
|
20917
|
+
return r({ ...b, remainingBodyHeight: k });
|
|
20918
|
+
}, [r]);
|
|
20919
|
+
return Y(() => {
|
|
20916
20920
|
if (!l.current || u.y == 0 || !s?.node) return;
|
|
20917
|
-
const
|
|
20918
|
-
pe(l.current).closest(".ag-row").css("overflow",
|
|
20921
|
+
const b = s?.expanded ? u?.y + m + 2 : m, w = s?.expanded ? "visible" : "", S = s?.expanded ? 30 : null, C = s?.expanded ? 1 : 0;
|
|
20922
|
+
pe(l.current).closest(".ag-row").css("overflow", w), pe(l.current).closest(".ag-row").css("z-index", S), s.node.setRowHeight(b), s.api.onRowHeightChanged(), pe(l.current).css("opacity", C);
|
|
20919
20923
|
}, [u?.y, s?.expanded]), /* @__PURE__ */ c.jsx(
|
|
20920
20924
|
"div",
|
|
20921
20925
|
{
|
|
20922
20926
|
ref: l,
|
|
20923
20927
|
className: "absolute left-0 opacity-0 transition-opacity duration-300 ease-linear",
|
|
20924
|
-
style: { width: p, marginTop: m },
|
|
20925
|
-
children: s?.expanded &&
|
|
20928
|
+
style: { width: p - 10, marginTop: m },
|
|
20929
|
+
children: s?.expanded && d(s) || null
|
|
20926
20930
|
}
|
|
20927
20931
|
);
|
|
20928
20932
|
}, S1 = de(w1), k1 = (e) => {
|
|
@@ -21278,7 +21282,7 @@ function P1(e, n, t) {
|
|
|
21278
21282
|
}
|
|
21279
21283
|
const j1 = (e) => /* @__PURE__ */ c.jsx(S1, { ...e }), R1 = (e) => {
|
|
21280
21284
|
const [n, t] = I(!1), [r, o] = I(0), { OnCellExpand: s } = e, { lastExpandedRow: i, setLastExpandedRow: a } = ze(er), l = te(), u = () => {
|
|
21281
|
-
|
|
21285
|
+
o(n ? 0 : 90);
|
|
21282
21286
|
const f = {
|
|
21283
21287
|
...e,
|
|
21284
21288
|
expanded: !n,
|