@abdellatifui/react 3.2.128 → 3.2.129

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 CHANGED
@@ -4,7 +4,7 @@ import * as Wr from "@radix-ui/react-tooltip";
4
4
  import { createPortal as Bo } from "react-dom";
5
5
  import * as ct from "@radix-ui/react-alert-dialog";
6
6
  import { Slot as gf } from "@radix-ui/react-slot";
7
- import de from "jquery";
7
+ import ce from "jquery";
8
8
  import { ClickAwayListener as yf, MenuItem as vf, TableContainer as bf, Paper as xf, Table as Cf, TableHead as wf, TableRow as wa, TableCell as io, TableBody as Sf } from "@mui/material";
9
9
  import { MapboxOverlay as kf } from "@deck.gl/mapbox";
10
10
  import Ef from "maplibre-gl";
@@ -645,7 +645,7 @@ const wp = (e, n) => {
645
645
  g,
646
646
  ie,
647
647
  se
648
- ], X = () => ["none", me, ie, se], J = () => ["none", me, ie, se], ce = () => [me, ie, se], ee = () => [Mn, "full", ...E()];
648
+ ], X = () => ["none", me, ie, se], J = () => ["none", me, ie, se], ue = () => [me, ie, se], ee = () => [Mn, "full", ...E()];
649
649
  return {
650
650
  cacheSize: 500,
651
651
  theme: {
@@ -2653,21 +2653,21 @@ const wp = (e, n) => {
2653
2653
  * @see https://tailwindcss.com/docs/skew
2654
2654
  */
2655
2655
  skew: [{
2656
- skew: ce()
2656
+ skew: ue()
2657
2657
  }],
2658
2658
  /**
2659
2659
  * Skew X
2660
2660
  * @see https://tailwindcss.com/docs/skew
2661
2661
  */
2662
2662
  "skew-x": [{
2663
- "skew-x": ce()
2663
+ "skew-x": ue()
2664
2664
  }],
2665
2665
  /**
2666
2666
  * Skew Y
2667
2667
  * @see https://tailwindcss.com/docs/skew
2668
2668
  */
2669
2669
  "skew-y": [{
2670
- "skew-y": ce()
2670
+ "skew-y": ue()
2671
2671
  }],
2672
2672
  /**
2673
2673
  * Transform
@@ -6066,13 +6066,13 @@ const ah = Ce("flex items-center justify-center z-1 css-iuur1", {
6066
6066
  windowMode: T = !1
6067
6067
  } = e, z = { open: n, ref: k, container: R, children: w, props: e, _children: a, id: r }, q = oe((L) => {
6068
6068
  W({ ...z, event: L }), setTimeout(() => {
6069
- de(i.current).addClass("opacity-0"), i.current?.addEventListener("transitionend", (X) => {
6070
- de(R?.current).removeClass("overflow-hidden"), t(!1), l(null), L?.callback?.({ ...z, open: !1 }), P({ ...z, event: L });
6069
+ ce(i.current).addClass("opacity-0"), i.current?.addEventListener("transitionend", (X) => {
6070
+ ce(R?.current).removeClass("overflow-hidden"), t(!1), l(null), L?.callback?.({ ...z, open: !1 }), P({ ...z, event: L });
6071
6071
  });
6072
6072
  }, U);
6073
6073
  }, [n, R, U]), V = oe((L) => {
6074
- O({ ...z, open: !0, event: L }), de(R?.current).addClass("overflow-hidden"), t(!0), setTimeout(() => {
6075
- de(i.current).removeClass("opacity-0");
6074
+ O({ ...z, open: !0, event: L }), ce(R?.current).addClass("overflow-hidden"), t(!0), setTimeout(() => {
6075
+ ce(i.current).removeClass("opacity-0");
6076
6076
  }, 50);
6077
6077
  }, [n, R, i]);
6078
6078
  Y(() => {
@@ -6341,10 +6341,10 @@ function fh() {
6341
6341
  function J(ee) {
6342
6342
  return k(ee) === o;
6343
6343
  }
6344
- function ce(ee) {
6344
+ function ue(ee) {
6345
6345
  return k(ee) === p;
6346
6346
  }
6347
- xe.AsyncMode = v, xe.ConcurrentMode = N, xe.ContextConsumer = A, xe.ContextProvider = E, xe.Element = $, xe.ForwardRef = F, xe.Fragment = R, xe.Lazy = b, xe.Memo = O, xe.Portal = P, xe.Profiler = W, xe.StrictMode = D, xe.Suspense = U, xe.isAsyncMode = K, xe.isConcurrentMode = _, xe.isContextConsumer = T, xe.isContextProvider = z, xe.isElement = q, xe.isForwardRef = V, xe.isFragment = te, xe.isLazy = re, xe.isMemo = G, xe.isPortal = L, xe.isProfiler = X, xe.isStrictMode = J, xe.isSuspense = ce, xe.isValidElementType = C, xe.typeOf = k;
6347
+ xe.AsyncMode = v, xe.ConcurrentMode = N, xe.ContextConsumer = A, xe.ContextProvider = E, xe.Element = $, xe.ForwardRef = F, xe.Fragment = R, xe.Lazy = b, xe.Memo = O, xe.Portal = P, xe.Profiler = W, xe.StrictMode = D, xe.Suspense = U, xe.isAsyncMode = K, xe.isConcurrentMode = _, xe.isContextConsumer = T, xe.isContextProvider = z, xe.isElement = q, xe.isForwardRef = V, xe.isFragment = te, xe.isLazy = re, xe.isMemo = G, xe.isPortal = L, xe.isProfiler = X, xe.isStrictMode = J, xe.isSuspense = ue, xe.isValidElementType = C, xe.typeOf = k;
6348
6348
  })()), xe;
6349
6349
  }
6350
6350
  var Ga;
@@ -6512,8 +6512,8 @@ function hh() {
6512
6512
  function x(_) {
6513
6513
  if (process.env.NODE_ENV !== "production")
6514
6514
  var T = {}, z = 0;
6515
- function q(te, re, G, L, X, J, ce) {
6516
- if (L = L || m, J = J || G, ce !== t) {
6515
+ function q(te, re, G, L, X, J, ue) {
6516
+ if (L = L || m, J = J || G, ue !== t) {
6517
6517
  if (l) {
6518
6518
  var ee = new Error(
6519
6519
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
@@ -6608,7 +6608,7 @@ function hh() {
6608
6608
  for (var G = z[q], L = 0; L < _.length; L++)
6609
6609
  if (g(G, _[L]))
6610
6610
  return null;
6611
- var X = JSON.stringify(_, function(ce, ee) {
6611
+ var X = JSON.stringify(_, function(ue, ee) {
6612
6612
  var Be = U(ee);
6613
6613
  return Be === "symbol" ? String(ee) : ee;
6614
6614
  });
@@ -6645,7 +6645,7 @@ function hh() {
6645
6645
  }
6646
6646
  function q(V, te, re, G, L) {
6647
6647
  for (var X = [], J = 0; J < _.length; J++) {
6648
- var ce = _[J], ee = ce(V, te, re, G, L, t);
6648
+ var ue = _[J], ee = ue(V, te, re, G, L, t);
6649
6649
  if (ee == null)
6650
6650
  return null;
6651
6651
  ee.data && r(ee.data, "expectedType") && X.push(ee.data.expectedType);
@@ -6675,9 +6675,9 @@ function hh() {
6675
6675
  var J = _[X];
6676
6676
  if (typeof J != "function")
6677
6677
  return R(V, te, re, X, U(J));
6678
- var ce = J(G, X, V, te, re + "." + X, t);
6679
- if (ce)
6680
- return ce;
6678
+ var ue = J(G, X, V, te, re + "." + X, t);
6679
+ if (ue)
6680
+ return ue;
6681
6681
  }
6682
6682
  return null;
6683
6683
  }
@@ -6690,15 +6690,15 @@ function hh() {
6690
6690
  return new d("Invalid " + te + " `" + re + "` of type `" + L + "` " + ("supplied to `" + V + "`, expected `object`."));
6691
6691
  var X = n({}, z[q], _);
6692
6692
  for (var J in X) {
6693
- var ce = _[J];
6694
- if (r(_, J) && typeof ce != "function")
6695
- return R(V, te, re, J, U(ce));
6696
- if (!ce)
6693
+ var ue = _[J];
6694
+ if (r(_, J) && typeof ue != "function")
6695
+ return R(V, te, re, J, U(ue));
6696
+ if (!ue)
6697
6697
  return new d(
6698
6698
  "Invalid " + te + " `" + re + "` key `" + J + "` supplied to `" + V + "`.\nBad object: " + JSON.stringify(z[q], null, " ") + `
6699
6699
  Valid keys: ` + JSON.stringify(Object.keys(_), null, " ")
6700
6700
  );
6701
- var ee = ce(G, J, V, te, re + "." + J, t);
6701
+ var ee = ue(G, J, V, te, re + "." + J, t);
6702
6702
  if (ee)
6703
6703
  return ee;
6704
6704
  }
@@ -8944,8 +8944,8 @@ function Iy(e) {
8944
8944
  }
8945
8945
  }, v = (L) => {
8946
8946
  var X;
8947
- const J = L.split("-"), ce = J[1], ee = J[2];
8948
- return C(L, (X = k[ce]) == null ? void 0 : X[ee]);
8947
+ const J = L.split("-"), ue = J[1], ee = J[2];
8948
+ return C(L, (X = k[ue]) == null ? void 0 : X[ee]);
8949
8949
  }, N = (L) => ({
8950
8950
  plainColor: v(`palette-${L}-500`),
8951
8951
  plainHoverBg: v(`palette-${L}-100`),
@@ -9261,7 +9261,7 @@ function Iy(e) {
9261
9261
  theme: X
9262
9262
  }) => {
9263
9263
  var J;
9264
- const ce = L.instanceFontSize;
9264
+ const ue = L.instanceFontSize;
9265
9265
  return Q({
9266
9266
  margin: "var(--Icon-margin)"
9267
9267
  }, L.fontSize && L.fontSize !== "inherit" && {
@@ -9270,8 +9270,8 @@ function Iy(e) {
9270
9270
  color: `var(--Icon-color, ${z.vars.palette.text.icon})`
9271
9271
  }, L.color && L.color !== "inherit" && X.vars.palette[L.color] && {
9272
9272
  color: `rgba(${(J = X.vars.palette[L.color]) == null ? void 0 : J.mainChannel} / 1)`
9273
- }), ce && ce !== "inherit" && {
9274
- "--Icon-fontSize": X.vars.fontSize[ce]
9273
+ }), ue && ue !== "inherit" && {
9274
+ "--Icon-fontSize": X.vars.fontSize[ue]
9275
9275
  });
9276
9276
  }
9277
9277
  }
@@ -9283,12 +9283,12 @@ function Iy(e) {
9283
9283
  });
9284
9284
  function q(L, X) {
9285
9285
  Object.keys(X).forEach((J) => {
9286
- const ce = {
9286
+ const ue = {
9287
9287
  main: "500",
9288
9288
  light: "200",
9289
9289
  dark: "700"
9290
9290
  };
9291
- L === "dark" && (ce.main = 400), !X[J].mainChannel && X[J][ce.main] && (X[J].mainChannel = vn(X[J][ce.main])), !X[J].lightChannel && X[J][ce.light] && (X[J].lightChannel = vn(X[J][ce.light])), !X[J].darkChannel && X[J][ce.dark] && (X[J].darkChannel = vn(X[J][ce.dark]));
9291
+ L === "dark" && (ue.main = 400), !X[J].mainChannel && X[J][ue.main] && (X[J].mainChannel = vn(X[J][ue.main])), !X[J].lightChannel && X[J][ue.light] && (X[J].lightChannel = vn(X[J][ue.light])), !X[J].darkChannel && X[J][ue.dark] && (X[J].darkChannel = vn(X[J][ue.dark]));
9292
9292
  });
9293
9293
  }
9294
9294
  Object.entries(z.colorSchemes).forEach(([L, X]) => {
@@ -10079,14 +10079,14 @@ const Jy = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
10079
10079
  checked: te,
10080
10080
  disabled: re,
10081
10081
  focusVisible: G
10082
- } = rg(q), L = te || w, ce = L ? O || "solid" : O || "outlined", ee = n.color || (K != null && K.error ? "danger" : (a = K?.color) != null ? a : b), it = Q({}, l, {
10082
+ } = rg(q), L = te || w, ue = L ? O || "solid" : O || "outlined", ee = n.color || (K != null && K.error ? "danger" : (a = K?.color) != null ? a : b), it = Q({}, l, {
10083
10083
  checked: te,
10084
10084
  disabled: re,
10085
10085
  disableIcon: d,
10086
10086
  overlay: x,
10087
10087
  focusVisible: G,
10088
10088
  color: L ? ee || "primary" : ee || "neutral",
10089
- variant: ce,
10089
+ variant: ue,
10090
10090
  size: T
10091
10091
  }), pe = Zy(it), Ye = Q({}, M, {
10092
10092
  component: W,
@@ -10103,7 +10103,7 @@ const Jy = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
10103
10103
  elementType: tv,
10104
10104
  externalForwardedProps: Ye,
10105
10105
  ownerState: it
10106
- }), [ue, Rn] = ht("action", {
10106
+ }), [de, Rn] = ht("action", {
10107
10107
  className: pe.action,
10108
10108
  elementType: nv,
10109
10109
  externalForwardedProps: Ye,
@@ -10138,7 +10138,7 @@ const Jy = ["checked", "uncheckedIcon", "checkedIcon", "label", "defaultChecked"
10138
10138
  let pt = f;
10139
10139
  return d ? pt = null : w ? pt = C : te && (pt = p), /* @__PURE__ */ c.jsxs(at, Q({}, Ot, {
10140
10140
  children: [/* @__PURE__ */ c.jsxs(ye, Q({}, Ft, {
10141
- children: [/* @__PURE__ */ c.jsx(ue, Q({}, Rn, {
10141
+ children: [/* @__PURE__ */ c.jsx(de, Q({}, Rn, {
10142
10142
  children: /* @__PURE__ */ c.jsx(Ct, Q({}, pn))
10143
10143
  })), pt]
10144
10144
  })), m && /* @__PURE__ */ c.jsx(Oo.Provider, {
@@ -14230,23 +14230,23 @@ const cx = An("MuiButtonBase", ["root", "disabled", "focusVisible"]), ux = (e) =
14230
14230
  j.useEffect(() => {
14231
14231
  T && m && !f && K.pulsate();
14232
14232
  }, [f, m, T, K]);
14233
- const V = Ut(K, "start", A, p), te = Ut(K, "stop", S, p), re = Ut(K, "stop", w, p), G = Ut(K, "stop", $, p), L = Ut(K, "stop", (ue) => {
14234
- T && ue.preventDefault(), E && E(ue);
14235
- }, p), X = Ut(K, "start", b, p), J = Ut(K, "stop", F, p), ce = Ut(K, "stop", R, p), ee = Ut(K, "stop", (ue) => {
14236
- ql(ue.target) || z(!1), d && d(ue);
14237
- }, !1), Be = To((ue) => {
14238
- M.current || (M.current = ue.currentTarget), ql(ue.target) && (z(!0), k && k(ue)), C && C(ue);
14233
+ const V = Ut(K, "start", A, p), te = Ut(K, "stop", S, p), re = Ut(K, "stop", w, p), G = Ut(K, "stop", $, p), L = Ut(K, "stop", (de) => {
14234
+ T && de.preventDefault(), E && E(de);
14235
+ }, p), X = Ut(K, "start", b, p), J = Ut(K, "stop", F, p), ue = Ut(K, "stop", R, p), ee = Ut(K, "stop", (de) => {
14236
+ ql(de.target) || z(!1), d && d(de);
14237
+ }, !1), Be = To((de) => {
14238
+ M.current || (M.current = de.currentTarget), ql(de.target) && (z(!0), k && k(de)), C && C(de);
14239
14239
  }), ft = () => {
14240
- const ue = M.current;
14241
- return l && l !== "button" && !(ue.tagName === "A" && ue.href);
14242
- }, it = To((ue) => {
14243
- m && !ue.repeat && T && ue.key === " " && K.stop(ue, () => {
14244
- K.start(ue);
14245
- }), ue.target === ue.currentTarget && ft() && ue.key === " " && ue.preventDefault(), v && v(ue), ue.target === ue.currentTarget && ft() && ue.key === "Enter" && !u && (ue.preventDefault(), x && x(ue));
14246
- }), pe = To((ue) => {
14247
- m && ue.key === " " && T && !ue.defaultPrevented && K.stop(ue, () => {
14248
- K.pulsate(ue);
14249
- }), N && N(ue), x && ue.target === ue.currentTarget && ft() && ue.key === " " && !ue.defaultPrevented && x(ue);
14240
+ const de = M.current;
14241
+ return l && l !== "button" && !(de.tagName === "A" && de.href);
14242
+ }, it = To((de) => {
14243
+ m && !de.repeat && T && de.key === " " && K.stop(de, () => {
14244
+ K.start(de);
14245
+ }), de.target === de.currentTarget && ft() && de.key === " " && de.preventDefault(), v && v(de), de.target === de.currentTarget && ft() && de.key === "Enter" && !u && (de.preventDefault(), x && x(de));
14246
+ }), pe = To((de) => {
14247
+ m && de.key === " " && T && !de.defaultPrevented && K.stop(de, () => {
14248
+ K.pulsate(de);
14249
+ }), N && N(de), x && de.target === de.currentTarget && ft() && de.key === " " && !de.defaultPrevented && x(de);
14250
14250
  });
14251
14251
  let Ye = l;
14252
14252
  Ye === "button" && (U.href || U.to) && (Ye = g);
@@ -14278,7 +14278,7 @@ const cx = An("MuiButtonBase", ["root", "disabled", "focusVisible"]), ux = (e) =
14278
14278
  onMouseUp: G,
14279
14279
  onDragLeave: re,
14280
14280
  onTouchEnd: J,
14281
- onTouchMove: ce,
14281
+ onTouchMove: ue,
14282
14282
  onTouchStart: X,
14283
14283
  ref: Ot,
14284
14284
  tabIndex: u ? -1 : O,
@@ -15928,18 +15928,19 @@ const Qx = (e) => {
15928
15928
  draggable: a
15929
15929
  } = e, l = ze(), [u, f] = I(!1);
15930
15930
  function p() {
15931
- de(".abui-window-box").attr("data-ontop", "false"), de(".abui-window-box-content").attr("data-ontop", "false"), de(n.current).parent().attr("data-ontop", "true"), de(n.current).attr("data-ontop", "true");
15931
+ ce(".abui-window-box").attr("data-ontop", "false"), ce(".abui-window-box-content").attr("data-ontop", "false"), ce(n.current).parent().attr("data-ontop", "true"), ce(n.current).attr("data-ontop", "true");
15932
15932
  }
15933
- const m = (h) => {
15934
- p();
15935
- };
15936
- return /* @__PURE__ */ c.jsx(
15933
+ return Y(() => (p(), ce(document).on("bringtofront", (m, h) => {
15934
+ h === s && p();
15935
+ }), () => {
15936
+ ce(document).off("bringtofront");
15937
+ }), []), /* @__PURE__ */ c.jsx(
15937
15938
  zi,
15938
15939
  {
15939
- defaultClassName: "group absolute z-auto abui-window-box data-[ontop=true]:z-50",
15940
+ defaultClassName: "group absolute z-auto abui-window-box data-[ontop=true]:z-50 pointer-events-auto",
15940
15941
  handle: ".abui-window-box-dragger",
15941
- onClick: m,
15942
- onStart: m,
15942
+ onClick: p,
15943
+ onStart: p,
15943
15944
  disabled: !a,
15944
15945
  defaultPosition: {
15945
15946
  y: i * 25,
@@ -15952,8 +15953,8 @@ const Qx = (e) => {
15952
15953
  ref: n,
15953
15954
  "data-window-id": s,
15954
15955
  className: "abui-window-box-content relative data-[ontop=true]:shadow",
15955
- onClick: m,
15956
- onDragStart: m,
15956
+ onClick: p,
15957
+ onDragStart: p,
15957
15958
  children: [
15958
15959
  /* @__PURE__ */ c.jsx("div", { className: B(
15959
15960
  "abui-window-box-dragger z-51 w-full absolute top-0 left-0 h-3",
@@ -16018,7 +16019,10 @@ const Qx = (e) => {
16018
16019
  $([]);
16019
16020
  }), [p]);
16020
16021
  function U(_, T, z = {}) {
16021
- if (g.find((te) => te.id === _)) return;
16022
+ if (g.find((te) => te.id === _)) {
16023
+ ce(document).trigger("bringtofront", [_]);
16024
+ return;
16025
+ }
16022
16026
  const {
16023
16027
  draggable: V = !0
16024
16028
  } = z;
@@ -16077,7 +16081,7 @@ const Qx = (e) => {
16077
16081
  updateTriggerApi: D
16078
16082
  }, children: [
16079
16083
  /* @__PURE__ */ c.jsx(Zx, { onLoad: O }),
16080
- /* @__PURE__ */ c.jsx("div", { className: "fixed top-0 flex items-center justify-center left-0 w-screen h-screen bg-amber-50 abui-context-root", children: g.length > 0 && g.map((_) => _.portal) }),
16084
+ /* @__PURE__ */ c.jsx("div", { className: "fixed top-0 pointer-events-none z-50 flex items-center justify-center left-0 w-screen h-screen abui-context-root", children: g.length > 0 && g.map((_) => _.portal) }),
16081
16085
  /* @__PURE__ */ c.jsxs(Mr, { children: [
16082
16086
  !u && t && t,
16083
16087
  p && u && n
@@ -16088,7 +16092,7 @@ function ar(e, n = {}) {
16088
16092
  const {
16089
16093
  returnUpdate: t = !1
16090
16094
  } = n, [r, o] = I({ y: 0, x: 0, width: 0, height: 0 }), s = () => {
16091
- const i = de(e?.current).height(), a = de(e?.current).width();
16095
+ const i = ce(e?.current).height(), a = ce(e?.current).width();
16092
16096
  o({ y: i, x: a, width: a, height: i });
16093
16097
  };
16094
16098
  return Y(() => {
@@ -16279,7 +16283,7 @@ const lC = (e) => {
16279
16283
  k(P), O?.source != "default " && t(O, P);
16280
16284
  }, [n]), b = oe(() => {
16281
16285
  C && setTimeout(() => {
16282
- const O = "_" + btoa(C).replaceAll("=", ""), P = de("." + O).get(0);
16286
+ const O = "_" + btoa(C).replaceAll("=", ""), P = ce("." + O).get(0);
16283
16287
  P && P.scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" });
16284
16288
  }, 100);
16285
16289
  }, [C]);
@@ -16587,7 +16591,7 @@ const pC = ({
16587
16591
  });
16588
16592
  function yC(e) {
16589
16593
  const [n, t] = I({ y: 0, x: 0, width: 0, height: 0 }), r = () => {
16590
- const o = de(e).height(), s = de(e).width(), i = e.getBoundingClientRect();
16594
+ const o = ce(e).height(), s = ce(e).width(), i = e.getBoundingClientRect();
16591
16595
  t({ y: o, x: s, width: s, height: o, clientRect: i });
16592
16596
  };
16593
16597
  return Y(() => {
@@ -17490,7 +17494,7 @@ const HC = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAA1CAYAAADh5qNwAA
17490
17494
  },
17491
17495
  onMouseEnter: (V) => {
17492
17496
  V?.originalEvent?.stopPropagation(), w(!0), console.log(a);
17493
- const te = de(a?.current?.element?.current).height(), re = de(a?.current?.element?.current).width(), G = N?.current?._pos?.y, L = te - G;
17497
+ const te = ce(a?.current?.element?.current).height(), re = ce(a?.current?.element?.current).width(), G = N?.current?._pos?.y, L = te - G;
17494
17498
  S({
17495
17499
  event: V,
17496
17500
  data: o,
@@ -18929,7 +18933,7 @@ const yc = [
18929
18933
  nodeIconMapperParentClassName: L = "",
18930
18934
  mapStyle: X = yc?.[1],
18931
18935
  isolateNonSelectedLinksOnNodeClick: J = !1,
18932
- showLinkCount: ce = !0,
18936
+ showLinkCount: ue = !0,
18933
18937
  debug: ee = !1,
18934
18938
  className: Be = "",
18935
18939
  customNavigateButtonsClassName: ft = "",
@@ -18941,7 +18945,7 @@ const yc = [
18941
18945
  ne();
18942
18946
  const Ot = st(4, !0, !1), ye = ne({});
18943
18947
  ne();
18944
- const Ft = ne(), [ue, Rn] = I([]), [Ct, pn] = I([]), [Xr, jn] = I([]), [pt, Lt] = I(), [On, Qr] = I(null), [lr, mn] = I(null), [$t, hn] = I({}), [Jt, Bt] = I({}), [Pt, gn] = I(!1), [cr, ur] = I({ connections: [], nodes: [], countBoxes: [] }), [ha, $n] = I({}), [ga, Jr] = I(!1), [Es, dr] = I(!1), [Zr, Ts] = I(t), [ya, fr] = I(), [eo, pr] = I(0), [to, rt] = I([]), [It, no] = I([]), [Ns, va] = I(!0), [mr, In] = I(!1), [ro, oo] = I("full"), hr = ne();
18948
+ const Ft = ne(), [de, Rn] = I([]), [Ct, pn] = I([]), [Xr, jn] = I([]), [pt, Lt] = I(), [On, Qr] = I(null), [lr, mn] = I(null), [$t, hn] = I({}), [Jt, Bt] = I({}), [Pt, gn] = I(!1), [cr, ur] = I({ connections: [], nodes: [], countBoxes: [] }), [ha, $n] = I({}), [ga, Jr] = I(!1), [Es, dr] = I(!1), [Zr, Ts] = I(t), [ya, fr] = I(), [eo, pr] = I(0), [to, rt] = I([]), [It, no] = I([]), [Ns, va] = I(!0), [mr, In] = I(!1), [ro, oo] = I("full"), hr = ne();
18945
18949
  Y(() => {
18946
18950
  ee && console.log(e);
18947
18951
  }, [ee]);
@@ -19007,13 +19011,13 @@ const yc = [
19007
19011
  mapStyle: X,
19008
19012
  draggingMode: z,
19009
19013
  isolateNonSelectedLinksOnNodeClick: J,
19010
- showLinkCount: ce,
19014
+ showLinkCount: ue,
19011
19015
  maxZoomOutForLinkCount: v,
19012
19016
  nodeSizeScaler: N,
19013
19017
  pathCurvature: Ye,
19014
19018
  pathThikness: at
19015
19019
  }));
19016
- }, [h, at, Ye, l, v, ce, ye?.current, J, z, re, X?.name, U, s, o, i, D, K, a, v, N]);
19020
+ }, [h, at, Ye, l, v, ue, ye?.current, J, z, re, X?.name, U, s, o, i, D, K, a, v, N]);
19017
19021
  const js = le(() => {
19018
19022
  const Z = Zr / t;
19019
19023
  return Fw * Z - 0.3;
@@ -19084,8 +19088,8 @@ const yc = [
19084
19088
  Y(() => {
19085
19089
  ye.current && (yr(n, r), pr((Z) => Z + 1));
19086
19090
  }, [r, n, ye?.current]), Y(() => {
19087
- ue?.length > 0 && vr(null, "moveend");
19088
- }, [ue]);
19091
+ de?.length > 0 && vr(null, "moveend");
19092
+ }, [de]);
19089
19093
  const ae = oe(() => {
19090
19094
  localStorage.setItem(`network_map_options_${A}`, JSON.stringify(Ve));
19091
19095
  }, [A, Ve]), ge = oe(() => {
@@ -19125,7 +19129,7 @@ const yc = [
19125
19129
  Z.u_id = ze(), Rn((ve) => [...ve, Z]);
19126
19130
  }
19127
19131
  function Os(Z) {
19128
- const ve = ue?.filter((Ke) => Ke?.id != Z);
19132
+ const ve = de?.filter((Ke) => Ke?.id != Z);
19129
19133
  Rn(ve);
19130
19134
  }
19131
19135
  function $s(Z) {
@@ -19353,7 +19357,7 @@ const yc = [
19353
19357
  mapApi: pe,
19354
19358
  nodes: Ct,
19355
19359
  selectedNode: Jt,
19356
- connections: ue,
19360
+ connections: de,
19357
19361
  setNodeContextMenuEvent: mn,
19358
19362
  setSupressLinkHover: In,
19359
19363
  nodeIconMapperParentClassName: L
@@ -19511,12 +19515,12 @@ const $d = ln({}), rk = (e) => {
19511
19515
  function S() {
19512
19516
  const w = t.current.dataset.state != "open", C = { ...e, open: w, ref: t, refTrigger: o };
19513
19517
  w && (u(C), setTimeout(() => {
19514
- de(r.current).find("div").first().removeClass("css-opacity-0");
19518
+ ce(r.current).find("div").first().removeClass("css-opacity-0");
19515
19519
  }, h)), w || f(C), g((k) => ({ ...k, ...C }));
19516
19520
  }
19517
19521
  return Y(() => {
19518
19522
  p && o?.current && setTimeout(() => {
19519
- de(o.current).click();
19523
+ ce(o.current).click();
19520
19524
  }, 100);
19521
19525
  }, [p]), /* @__PURE__ */ c.jsxs(
19522
19526
  sa,
@@ -19845,7 +19849,7 @@ const Qw = (e) => {
19845
19849
  /* @__PURE__ */ c.jsx(Hf, {})
19846
19850
  ]), S = () => {
19847
19851
  console.log(g);
19848
- const w = de(p?.current)?.closest(".abui-panel")?.parent().attr("data-window-id");
19852
+ const w = ce(p?.current)?.closest(".abui-panel")?.parent().attr("data-window-id");
19849
19853
  g?.removeHtmlElement?.(w), h?.();
19850
19854
  };
19851
19855
  return Y(() => {
@@ -19868,8 +19872,8 @@ const Qw = (e) => {
19868
19872
  tooltip1: "Maximize",
19869
19873
  tooltip2: "Minimize",
19870
19874
  onClick: () => {
19871
- const w = de(p?.current).attr("data-size");
19872
- de(p?.current).attr("data-size", w === "default" ? "maximized" : "default"), de(p.current).toggleClass("w-screen h-screen fixed top-0 left-0");
19875
+ const w = ce(p?.current).attr("data-size");
19876
+ ce(p?.current).attr("data-size", w === "default" ? "maximized" : "default"), ce(p.current).toggleClass("w-screen h-screen fixed top-0 left-0"), u && (ce(p?.current)?.closest(".abui-window-box").toggleClass("top-0 left-0 transform-none!"), ce(p?.current)?.closest(".abui-context-root").toggleClass("z-600!"));
19873
19877
  }
19874
19878
  }
19875
19879
  ),
@@ -19882,7 +19886,7 @@ const Qw = (e) => {
19882
19886
  tooltip1: a[0],
19883
19887
  tooltip2: a[1],
19884
19888
  onClick: () => {
19885
- de(p.current).find(".css-i231").toggle();
19889
+ ce(p.current).find(".css-i231").toggle();
19886
19890
  }
19887
19891
  }
19888
19892
  )
@@ -19917,12 +19921,12 @@ const Qw = (e) => {
19917
19921
  /* @__PURE__ */ c.jsx(Ms, { size: 16 }),
19918
19922
  /* @__PURE__ */ c.jsx(wo, { size: 16 })
19919
19923
  ]), [v, N] = I([]), A = oe(() => {
19920
- p ? (de(w.current).find(".css-i231").hide(), k([/* @__PURE__ */ c.jsx(wo, { size: 16 }), /* @__PURE__ */ c.jsx(Ms, { size: 16 })]), N(["Hide", "Show"])) : p || (de(w.current).find(".css-i231").show(), k([/* @__PURE__ */ c.jsx(Ms, { size: 16 }), /* @__PURE__ */ c.jsx(wo, { size: 16 })]), N(["Show", "Hide"]));
19924
+ p ? (ce(w.current).find(".css-i231").hide(), k([/* @__PURE__ */ c.jsx(wo, { size: 16 }), /* @__PURE__ */ c.jsx(Ms, { size: 16 })]), N(["Hide", "Show"])) : p || (ce(w.current).find(".css-i231").show(), k([/* @__PURE__ */ c.jsx(Ms, { size: 16 }), /* @__PURE__ */ c.jsx(wo, { size: 16 })]), N(["Show", "Hide"]));
19921
19925
  }, [p]);
19922
19926
  Y(() => {
19923
19927
  A();
19924
19928
  }, [p]);
19925
- const E = le(() => de(w?.current)?.closest(".abui-panel")?.parent().hasClass("abui-window-box-content"), [w?.current]);
19929
+ const E = le(() => ce(w?.current)?.closest(".abui-panel")?.parent().hasClass("abui-window-box-content"), [w?.current]);
19926
19930
  return /* @__PURE__ */ c.jsx(
19927
19931
  zi,
19928
19932
  {
@@ -19935,7 +19939,7 @@ const Qw = (e) => {
19935
19939
  ref: w,
19936
19940
  style: d,
19937
19941
  className: B(
19938
- "relative bg-accent border p-1 rounded",
19942
+ "relative bg-accent border p-1 rounded transition-all duration-100 ease-in-out",
19939
19943
  m
19940
19944
  ),
19941
19945
  "data-size": "default",
@@ -20121,7 +20125,7 @@ function r1(e, n, t) {
20121
20125
  const [r, o] = I({ x: null, y: null, top: null, left: null, right: null });
20122
20126
  return Y(() => {
20123
20127
  e && setTimeout(() => {
20124
- const s = { x: e.pageX, y: e.pageY }, i = n.current, a = window.innerWidth, l = window.innerHeight, u = de(i).width(), f = de(i).height(), p = a - (s.x + u), m = l - (s.y + f);
20128
+ const s = { x: e.pageX, y: e.pageY }, i = n.current, a = window.innerWidth, l = window.innerHeight, u = ce(i).width(), f = ce(i).height(), p = a - (s.x + u), m = l - (s.y + f);
20125
20129
  p <= 20 && (s.x = s.x + p - 5), m <= 20 && (s.y = s.y + m - 5), o(s);
20126
20130
  }, 10);
20127
20131
  }, [e]), [r, o];
@@ -20838,10 +20842,10 @@ const ti = Ce(
20838
20842
  $(
20839
20843
  X == "valid" ? /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-green-600", children: J }) : /* @__PURE__ */ c.jsx("p", { className: "font-aptos text-blue-600", children: J })
20840
20844
  ), F && clearTimeout(F);
20841
- const ce = setTimeout(() => {
20845
+ const ue = setTimeout(() => {
20842
20846
  $(r);
20843
20847
  }, 15e3);
20844
- R(ce);
20848
+ R(ue);
20845
20849
  }
20846
20850
  }
20847
20851
  function re(X) {
@@ -20851,15 +20855,15 @@ const ti = Ce(
20851
20855
  }
20852
20856
  }
20853
20857
  const G = oe((X, J) => {
20854
- const ce = de(`#${O}`).val();
20855
- a === "email" && re(J || ce);
20858
+ const ue = ce(`#${O}`).val();
20859
+ a === "email" && re(J || ue);
20856
20860
  }, [C?.current, O]), L = (X) => {
20857
- const J = X.target, ce = J.value;
20861
+ const J = X.target, ue = J.value;
20858
20862
  if (u) {
20859
20863
  const ee = J.scrollHeight, Be = J.scrollTop;
20860
20864
  Be > 0 && (J.style.height = ee + Be + "px");
20861
20865
  }
20862
- e?.readOnly || W(ce);
20866
+ e?.readOnly || W(ue);
20863
20867
  };
20864
20868
  return Y(() => {
20865
20869
  if (z == 0) {
@@ -21203,20 +21207,20 @@ const fk = Oe((e, n) => {
21203
21207
  const p = a?.states?.rowHeightInt, [m, h] = I(0);
21204
21208
  Y(() => {
21205
21209
  if (n?.current)
21206
- return de(n?.current).on(`expandrow-${o}`, (d, x) => {
21210
+ return ce(n?.current).on(`expandrow-${o}`, (d, x) => {
21207
21211
  i(x);
21208
21212
  }), () => {
21209
- de(n?.current).off(`expandrow-${o}`), i(null);
21213
+ ce(n?.current).off(`expandrow-${o}`), i(null);
21210
21214
  };
21211
21215
  }, [o]);
21212
21216
  const g = oe((d) => {
21213
- const x = d.node.rowTop, S = d.node.rowHeight, C = de(a?.tref?.current).find(".ag-body-viewport").height() - 1 - (x + S);
21217
+ const x = d.node.rowTop, S = d.node.rowHeight, C = ce(a?.tref?.current).find(".ag-body-viewport").height() - 1 - (x + S);
21214
21218
  return r({ ...d, remainingBodyHeight: C, size: f });
21215
21219
  }, [r]);
21216
21220
  return Y(() => {
21217
21221
  if (!l.current || f.y == 0 || !s?.node) return;
21218
21222
  const d = s?.expanded ? f?.y + p + 2 : p, x = s?.expanded ? "visible" : "", S = s?.expanded ? 30 : null, w = s?.expanded ? 1 : 0;
21219
- de(l.current).closest(".ag-row").css("overflow", x), de(l.current).closest(".ag-row").css("z-index", S), s.node.setRowHeight(d), s.api.onRowHeightChanged(), de(l.current).css("opacity", w);
21223
+ ce(l.current).closest(".ag-row").css("overflow", x), ce(l.current).closest(".ag-row").css("z-index", S), s.node.setRowHeight(d), s.api.onRowHeightChanged(), ce(l.current).css("opacity", w);
21220
21224
  }, [f?.y, s?.expanded]), /* @__PURE__ */ c.jsx(
21221
21225
  "div",
21222
21226
  {
@@ -21625,10 +21629,10 @@ const j1 = (e) => /* @__PURE__ */ c.jsx(k1, { ...e }), O1 = (e) => {
21625
21629
  cellGrid: m
21626
21630
  } = e, { valueFormatted: h, data: g, context: d, colDef: x, node: S, value: w } = l, C = ne(), k = ne(null), v = ne(null), N = h == "[object Object]" && !h?.$$typeof ? w : h, [A, E] = I(N || w), { supressCellRefresh: $ } = je(er);
21627
21631
  le(() => ({
21628
- rowZIndex: de(C?.current)?.closest(".ag-row")?.css("z-index"),
21629
- cellZIndex: de(C?.current)?.closest(".ag-cell")?.css("z-index"),
21630
- rowOverflow: de(C?.current)?.closest(".ag-row")?.css("overflow"),
21631
- cellOverflow: de(C?.current)?.closest(".ag-cell")?.css("overflow")
21632
+ rowZIndex: ce(C?.current)?.closest(".ag-row")?.css("z-index"),
21633
+ cellZIndex: ce(C?.current)?.closest(".ag-cell")?.css("z-index"),
21634
+ rowOverflow: ce(C?.current)?.closest(".ag-row")?.css("overflow"),
21635
+ cellOverflow: ce(C?.current)?.closest(".ag-cell")?.css("overflow")
21632
21636
  }), [C]);
21633
21637
  const F = le(() => n ? "" : A === "true" || A === !0 ? /* @__PURE__ */ c.jsx(
21634
21638
  E1,
@@ -21666,13 +21670,13 @@ const j1 = (e) => /* @__PURE__ */ c.jsx(k1, { ...e }), O1 = (e) => {
21666
21670
  }, [n]);
21667
21671
  const R = () => {
21668
21672
  O && (s((P) => P + 1), v.current && clearTimeout(v.current), v.current = setTimeout(() => {
21669
- const P = de(C?.current)?.closest(".ag-row"), W = de(C?.current)?.closest(".ag-cell");
21673
+ const P = ce(C?.current)?.closest(".ag-row"), W = ce(C?.current)?.closest(".ag-cell");
21670
21674
  P.addClass("arr-visible"), W.addClass("arr-visible"), t(!0);
21671
21675
  }, 0));
21672
21676
  }, b = () => {
21673
21677
  if (!O) return;
21674
21678
  v.current && clearTimeout(v.current);
21675
- const P = de(C?.current)?.closest(".ag-row"), W = de(C?.current)?.closest(".ag-cell");
21679
+ const P = ce(C?.current)?.closest(".ag-row"), W = ce(C?.current)?.closest(".ag-cell");
21676
21680
  P.removeClass("arr-visible"), W.removeClass("arr-visible"), t(!1), a(0);
21677
21681
  }, O = le(() => Array?.isArray(w), [w]);
21678
21682
  return /* @__PURE__ */ c.jsxs(
@@ -21688,7 +21692,7 @@ const j1 = (e) => /* @__PURE__ */ c.jsx(k1, { ...e }), O1 = (e) => {
21688
21692
  "div",
21689
21693
  {
21690
21694
  style: {
21691
- maxHeight: 0.7 * de(r.current).height(),
21695
+ maxHeight: 0.7 * ce(r.current).height(),
21692
21696
  transform: `translateY(-${i}px)`
21693
21697
  },
21694
21698
  ref: k,
@@ -21732,7 +21736,7 @@ const j1 = (e) => /* @__PURE__ */ c.jsx(k1, { ...e }), O1 = (e) => {
21732
21736
  enableAdvancedFilter: w
21733
21737
  }) => {
21734
21738
  const [C, k] = I([]), v = ["view", ...r], N = (R) => {
21735
- de(u?.current).trigger(`expandrow-${R?.node?.rowIndex}`, R);
21739
+ ce(u?.current).trigger(`expandrow-${R?.node?.rowIndex}`, R);
21736
21740
  }, A = {
21737
21741
  filter: w ? {
21738
21742
  component: P1
@@ -22350,10 +22354,10 @@ const er = ln({}), X1 = (e) => {
22350
22354
  supressCellRefresh: L = !1,
22351
22355
  rowSelectionBgColor: X,
22352
22356
  api: J = {},
22353
- fontFamily: ce,
22357
+ fontFamily: ue,
22354
22358
  tableTheme: ee,
22355
22359
  enableAdvancedFilter: Be = !0
22356
- } = e, [ft, it] = I([]), pe = ne(), Ye = ne(), at = ne({}), [Ot, ye] = I([]), [Ft, ue] = I({}), [Rn, Ct] = I([]), [pn, Xr] = I(), jn = ne(!1), pt = ne(), Lt = ar(pt, { returnUpdate: !1 })?.x, [On] = I1({
22360
+ } = e, [ft, it] = I([]), pe = ne(), Ye = ne(), at = ne({}), [Ot, ye] = I([]), [Ft, de] = I({}), [Rn, Ct] = I([]), [pn, Xr] = I(), jn = ne(!1), pt = ne(), Lt = ar(pt, { returnUpdate: !1 })?.x, [On] = I1({
22357
22361
  data: r,
22358
22362
  mapper: E,
22359
22363
  hidden: $,
@@ -22369,7 +22373,7 @@ const er = ln({}), X1 = (e) => {
22369
22373
  enableExpand: D,
22370
22374
  tid: n,
22371
22375
  columnProps: h,
22372
- fontFamily: ce,
22376
+ fontFamily: ue,
22373
22377
  enableRowStream: l,
22374
22378
  cellGrid: i,
22375
22379
  enableAdvancedFilter: Be
@@ -22434,7 +22438,7 @@ const er = ln({}), X1 = (e) => {
22434
22438
  }, [v]);
22435
22439
  const oo = oe(
22436
22440
  (ae, ge) => {
22437
- ue((Je) => ({ ...Je, [ae]: ge }));
22441
+ de((Je) => ({ ...Je, [ae]: ge }));
22438
22442
  },
22439
22443
  [mn, hn]
22440
22444
  ), hr = oe(
@@ -22757,7 +22761,7 @@ const Qd = ln({ name: "", onChange: () => {
22757
22761
  children: i,
22758
22762
  source: "contextmenu"
22759
22763
  };
22760
- de(r.current).click(), v.preventDefault(), p(N);
22764
+ ce(r.current).click(), v.preventDefault(), p(N);
22761
22765
  };
22762
22766
  return /* @__PURE__ */ c.jsxs(
22763
22767
  "label",
@@ -22799,7 +22803,7 @@ const Qd = ln({ name: "", onChange: () => {
22799
22803
  style: i
22800
22804
  } = e, a = ze(), [l, u] = I();
22801
22805
  Y(() => {
22802
- l && l.ref.current && (de("#" + a + " *").removeClass("css-c-233"), l.ref.current.classList.add("css-c-233"), r(l.event, l.checked, l));
22806
+ l && l.ref.current && (ce("#" + a + " *").removeClass("css-c-233"), l.ref.current.classList.add("css-c-233"), r(l.event, l.checked, l));
22803
22807
  }, [l]);
22804
22808
  const f = (p) => {
22805
22809
  p.preventDefault(), o(l.event, l.checked, l);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@abdellatifui/react",
3
3
  "private": false,
4
- "version": "3.2.128",
4
+ "version": "3.2.129",
5
5
  "type": "module",
6
6
  "types": "dist/nextgen.d.ts",
7
7
  "files": [