slick-table 1.1.56 → 1.1.57

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.
Files changed (25) hide show
  1. package/dist/index.cjs.js +23 -23
  2. package/dist/index.es.js +189 -189
  3. package/dist/types/entities/popup-summary/ui/PopupSummary.d.ts +5 -1
  4. package/dist/types/entities/popup-summary/ui/PopupSummary.d.ts.map +1 -1
  5. package/dist/types/features/column-filters/lib/hooks/useSubscribeToEvent.d.ts +1 -1
  6. package/dist/types/features/column-filters/lib/hooks/useSubscribeToEvent.d.ts.map +1 -1
  7. package/dist/types/features/column-filters/ui/ColumnFilters.d.ts +5 -1
  8. package/dist/types/features/column-filters/ui/ColumnFilters.d.ts.map +1 -1
  9. package/dist/types/features/context-menu/lib/hooks/useSubscribeToEvent.d.ts +1 -1
  10. package/dist/types/features/context-menu/lib/hooks/useSubscribeToEvent.d.ts.map +1 -1
  11. package/dist/types/features/context-menu/ui/ContextMenu.d.ts +5 -1
  12. package/dist/types/features/context-menu/ui/ContextMenu.d.ts.map +1 -1
  13. package/dist/types/features/header-context-menu/lib/hooks/useSubscribeToEvent.d.ts +1 -1
  14. package/dist/types/features/header-context-menu/lib/hooks/useSubscribeToEvent.d.ts.map +1 -1
  15. package/dist/types/features/header-context-menu/ui/HeaderContextMenu.d.ts +5 -1
  16. package/dist/types/features/header-context-menu/ui/HeaderContextMenu.d.ts.map +1 -1
  17. package/package.json +1 -1
  18. package/src/entities/popup-summary/ui/PopupSummary.tsx +8 -3
  19. package/src/features/column-filters/lib/hooks/useSubscribeToEvent.ts +3 -1
  20. package/src/features/column-filters/ui/ColumnFilters.tsx +6 -2
  21. package/src/features/context-menu/lib/hooks/useSubscribeToEvent.ts +4 -2
  22. package/src/features/context-menu/ui/ContextMenu.tsx +6 -2
  23. package/src/features/header-context-menu/lib/hooks/useSubscribeToEvent.ts +4 -2
  24. package/src/features/header-context-menu/ui/HeaderContextMenu.tsx +6 -2
  25. package/src/shared/lib/slickgrid/ui/SlickgridTable/ui/SlickgridTable.tsx +5 -5
package/dist/index.es.js CHANGED
@@ -2984,7 +2984,7 @@ function Sg(e) {
2984
2984
  t[n] = Sg(e[n]);
2985
2985
  }), t;
2986
2986
  }
2987
- function wn(e, t, n = {
2987
+ function Cn(e, t, n = {
2988
2988
  clone: !0
2989
2989
  }) {
2990
2990
  const o = n.clone ? {
@@ -2992,7 +2992,7 @@ function wn(e, t, n = {
2992
2992
  } : e;
2993
2993
  return To(e) && To(t) && Object.keys(t).forEach((r) => {
2994
2994
  /* @__PURE__ */ T.isValidElement(t[r]) || xl.isValidElementType(t[r]) ? o[r] = t[r] : To(t[r]) && // Avoid prototype pollution
2995
- Object.prototype.hasOwnProperty.call(e, r) && To(e[r]) ? o[r] = wn(e[r], t[r], n) : n.clone ? o[r] = To(t[r]) ? Sg(t[r]) : t[r] : o[r] = t[r];
2995
+ Object.prototype.hasOwnProperty.call(e, r) && To(e[r]) ? o[r] = Cn(e[r], t[r], n) : n.clone ? o[r] = To(t[r]) ? Sg(t[r]) : t[r] : o[r] = t[r];
2996
2996
  }), o;
2997
2997
  }
2998
2998
  const T_ = (e) => {
@@ -3100,7 +3100,7 @@ const M_ = {
3100
3100
  borderRadius: 4
3101
3101
  }, Sr = process.env.NODE_ENV !== "production" ? s.oneOfType([s.number, s.string, s.object, s.array]) : {};
3102
3102
  function Di(e, t) {
3103
- return t ? wn(e, t, {
3103
+ return t ? Cn(e, t, {
3104
3104
  clone: !1
3105
3105
  // No need to clone deep, it's way faster.
3106
3106
  }) : e;
@@ -3836,7 +3836,7 @@ function Iu(e = {}, ...t) {
3836
3836
  shape: i = {},
3837
3837
  ...a
3838
3838
  } = e, l = k_(n), d = xg(r);
3839
- let u = wn({
3839
+ let u = Cn({
3840
3840
  breakpoints: l,
3841
3841
  direction: "ltr",
3842
3842
  components: {},
@@ -3851,7 +3851,7 @@ function Iu(e = {}, ...t) {
3851
3851
  ...i
3852
3852
  }
3853
3853
  }, a);
3854
- return u = O_(u), u.applyStyles = Sx, u = t.reduce((h, p) => wn(h, p), u), u.unstable_sxConfig = {
3854
+ return u = O_(u), u.applyStyles = Sx, u = t.reduce((h, p) => Cn(h, p), u), u.unstable_sxConfig = {
3855
3855
  ...ua,
3856
3856
  ...a?.unstable_sxConfig
3857
3857
  }, u.unstable_sx = function(p) {
@@ -4522,11 +4522,11 @@ function Oi(e, t) {
4522
4522
  e.type.muiName ?? e.type?._payload?.value?.muiName
4523
4523
  ) !== -1;
4524
4524
  }
4525
- function Cn(e) {
4525
+ function Sn(e) {
4526
4526
  return e && e.ownerDocument || document;
4527
4527
  }
4528
4528
  function nr(e) {
4529
- return Cn(e).defaultView || window;
4529
+ return Sn(e).defaultView || window;
4530
4530
  }
4531
4531
  function vp(e, t) {
4532
4532
  typeof e == "function" ? e(t) : e && (e.current = t);
@@ -4913,7 +4913,7 @@ function fR(e, t = {}) {
4913
4913
  css: O,
4914
4914
  varsWithDefaults: I
4915
4915
  } = pd(S, t);
4916
- y = wn(y, I), w[_] = {
4916
+ y = Cn(y, I), w[_] = {
4917
4917
  css: O,
4918
4918
  vars: C
4919
4919
  };
@@ -4923,7 +4923,7 @@ function fR(e, t = {}) {
4923
4923
  vars: S,
4924
4924
  varsWithDefaults: C
4925
4925
  } = pd(b, t);
4926
- y = wn(y, C), w[l] = {
4926
+ y = Cn(y, C), w[l] = {
4927
4927
  css: _,
4928
4928
  vars: S
4929
4929
  };
@@ -4951,7 +4951,7 @@ function fR(e, t = {}) {
4951
4951
  return Object.entries(w).forEach(([, {
4952
4952
  vars: S
4953
4953
  }]) => {
4954
- _ = wn(_, S);
4954
+ _ = Cn(_, S);
4955
4955
  }), _;
4956
4956
  },
4957
4957
  generateStyleSheets: () => {
@@ -5191,7 +5191,7 @@ const theme2 = createTheme({ palette: {
5191
5191
  return Tp(m, "light", E, o), Tp(m, "dark", _, o), m.contrastText || (m.contrastText = p(m.main)), m;
5192
5192
  };
5193
5193
  let w;
5194
- return t === "light" ? w = Gg() : t === "dark" && (w = Kg()), process.env.NODE_ENV !== "production" && (w || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), wn({
5194
+ return t === "light" ? w = Gg() : t === "dark" && (w = Kg()), process.env.NODE_ENV !== "production" && (w || console.error(`MUI: The palette mode \`${t}\` is not supported.`)), Cn({
5195
5195
  // A collection of common colors.
5196
5196
  common: {
5197
5197
  ...Vi
@@ -5333,7 +5333,7 @@ function RR(e, t) {
5333
5333
  letterSpacing: "inherit"
5334
5334
  }
5335
5335
  };
5336
- return wn({
5336
+ return Cn({
5337
5337
  htmlFontSize: d,
5338
5338
  pxToRem: w,
5339
5339
  fontFamily: n,
@@ -5462,7 +5462,7 @@ function Zd(e = {}, ...t) {
5462
5462
  if (e.vars)
5463
5463
  throw new Error(process.env.NODE_ENV !== "production" ? "MUI: `vars` is a private field used for CSS variables support.\nPlease use another name." : Oo(20));
5464
5464
  const h = Au(i), p = Iu(e);
5465
- let y = wn(p, {
5465
+ let y = Cn(p, {
5466
5466
  mixins: _R(p.breakpoints, o),
5467
5467
  palette: h,
5468
5468
  // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.
@@ -5473,7 +5473,7 @@ function Zd(e = {}, ...t) {
5473
5473
  ...NR
5474
5474
  }
5475
5475
  });
5476
- if (y = wn(y, u), y = t.reduce((w, b) => wn(w, b), y), process.env.NODE_ENV !== "production") {
5476
+ if (y = Cn(y, u), y = t.reduce((w, b) => Cn(w, b), y), process.env.NODE_ENV !== "production") {
5477
5477
  const w = ["active", "checked", "completed", "disabled", "error", "expanded", "focused", "focusVisible", "required", "selected"], b = (m, v) => {
5478
5478
  let P;
5479
5479
  for (P in m) {
@@ -5706,7 +5706,7 @@ function zR(e = {}, ...t) {
5706
5706
  const G = R[K];
5707
5707
  G && typeof G == "object" && (G.main && ue(R[K], "mainChannel", Ti(ki(G.main))), G.light && ue(R[K], "lightChannel", Ti(ki(G.light))), G.dark && ue(R[K], "darkChannel", Ti(ki(G.dark))), G.contrastText && ue(R[K], "contrastTextChannel", Ti(ki(G.contrastText))), K === "text" && (Ho(R[K], "primary"), Ho(R[K], "secondary")), K === "action" && (G.active && Ho(R[K], "active"), G.selected && Ho(R[K], "selected")));
5708
5708
  });
5709
- }), S = t.reduce((z, R) => wn(z, R), S);
5709
+ }), S = t.reduce((z, R) => Cn(z, R), S);
5710
5710
  const C = {
5711
5711
  prefix: i,
5712
5712
  disableCssColorScheme: r,
@@ -8554,7 +8554,7 @@ const Vp = Pe("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "sub
8554
8554
  body1: "p",
8555
8555
  body2: "p",
8556
8556
  inherit: "p"
8557
- }, vn = /* @__PURE__ */ T.forwardRef(function(t, n) {
8557
+ }, bn = /* @__PURE__ */ T.forwardRef(function(t, n) {
8558
8558
  const {
8559
8559
  color: o,
8560
8560
  ...r
@@ -8602,7 +8602,7 @@ const Vp = Pe("MuiTypography", ["root", "h1", "h2", "h3", "h4", "h5", "h6", "sub
8602
8602
  }
8603
8603
  });
8604
8604
  });
8605
- process.env.NODE_ENV !== "production" && (vn.propTypes = {
8605
+ process.env.NODE_ENV !== "production" && (bn.propTypes = {
8606
8606
  // ┌────────────────────────────── Warning ──────────────────────────────┐
8607
8607
  // │ These PropTypes are generated from the TypeScript type definitions. │
8608
8608
  // │ To update them, edit the d.ts file and run `pnpm proptypes`. │
@@ -9800,7 +9800,7 @@ const sE = (e) => {
9800
9800
  I = i;
9801
9801
  else if (o) {
9802
9802
  const R = Ol(o);
9803
- I = R && dc(R) ? Cn(R).body : Cn(null).body;
9803
+ I = R && dc(R) ? Sn(R).body : Sn(null).body;
9804
9804
  }
9805
9805
  const F = !h && d && (!m || _) ? "none" : void 0, z = m ? {
9806
9806
  in: h,
@@ -12734,7 +12734,7 @@ process.env.NODE_ENV !== "production" && (yc.propTypes = {
12734
12734
  value: s.any
12735
12735
  });
12736
12736
  function GE(e) {
12737
- const t = Cn(e);
12737
+ const t = Sn(e);
12738
12738
  return t.body === e ? nr(e).innerWidth > t.documentElement.clientWidth : e.scrollHeight > e.clientHeight;
12739
12739
  }
12740
12740
  function Ni(e, t) {
@@ -12768,7 +12768,7 @@ function XE(e, t) {
12768
12768
  property: "padding-right",
12769
12769
  el: o
12770
12770
  }), o.style.paddingRight = `${em(o) + a}px`;
12771
- const l = Cn(o).querySelectorAll(".mui-fixed");
12771
+ const l = Sn(o).querySelectorAll(".mui-fixed");
12772
12772
  [].forEach.call(l, (d) => {
12773
12773
  n.push({
12774
12774
  value: d.style.paddingRight,
@@ -12779,7 +12779,7 @@ function XE(e, t) {
12779
12779
  }
12780
12780
  let i;
12781
12781
  if (o.parentNode instanceof DocumentFragment)
12782
- i = Cn(o).body;
12782
+ i = Sn(o).body;
12783
12783
  else {
12784
12784
  const a = o.parentElement, l = nr(o);
12785
12785
  i = a?.nodeName === "HTML" && l.getComputedStyle(a).overflowY === "scroll" ? a : o;
@@ -12898,7 +12898,7 @@ function Zi(e) {
12898
12898
  }, [n, l]), T.useEffect(() => {
12899
12899
  if (!l || !b.current)
12900
12900
  return;
12901
- const _ = Cn(b.current);
12901
+ const _ = Sn(b.current);
12902
12902
  return b.current.contains(_.activeElement) || (b.current.hasAttribute("tabIndex") || (process.env.NODE_ENV !== "production" && console.error(["MUI: The modal content node does not accept focus.", 'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
12903
12903
  `)), b.current.setAttribute("tabIndex", "-1")), w.current && b.current.focus()), () => {
12904
12904
  r || (p.current && p.current.focus && (d.current = !0, p.current.focus()), p.current = null);
@@ -12906,7 +12906,7 @@ function Zi(e) {
12906
12906
  }, [l]), T.useEffect(() => {
12907
12907
  if (!l || !b.current)
12908
12908
  return;
12909
- const _ = Cn(b.current), S = (I) => {
12909
+ const _ = Sn(b.current), S = (I) => {
12910
12910
  v.current = I, !(o || !a() || I.key !== "Tab") && _.activeElement === b.current && I.shiftKey && (d.current = !0, h.current && h.current.focus());
12911
12911
  }, C = () => {
12912
12912
  const I = b.current;
@@ -13040,7 +13040,7 @@ function aP(e) {
13040
13040
  } = e, p = T.useRef({}), y = T.useRef(null), w = T.useRef(null), b = lt(w, h), [m, v] = T.useState(!u), P = iP(l);
13041
13041
  let E = !0;
13042
13042
  (e["aria-hidden"] === "false" || e["aria-hidden"] === !1) && (E = !1);
13043
- const _ = () => Cn(y.current), S = () => (p.current.modalRef = w.current, p.current.mount = y.current, p.current), C = () => {
13043
+ const _ = () => Sn(y.current), S = () => (p.current.modalRef = w.current, p.current.mount = y.current, p.current), C = () => {
13044
13044
  Za.mount(S(), {
13045
13045
  disableScrollLock: o
13046
13046
  }), w.current && (w.current.scrollTop = 0);
@@ -14050,7 +14050,7 @@ const kP = (e) => {
14050
14050
  // forward classes to the Typography
14051
14051
  ...o
14052
14052
  };
14053
- }, EP = ie(vn, {
14053
+ }, EP = ie(bn, {
14054
14054
  shouldForwardProp: (e) => Rn(e) || e === "classes",
14055
14055
  name: "MuiDialogContentText",
14056
14056
  slot: "Root",
@@ -14104,7 +14104,7 @@ const PP = (e) => {
14104
14104
  return Ie({
14105
14105
  root: ["root"]
14106
14106
  }, SP, t);
14107
- }, DP = ie(vn, {
14107
+ }, DP = ie(bn, {
14108
14108
  name: "MuiDialogTitle",
14109
14109
  slot: "Root",
14110
14110
  overridesResolver: (e, t) => t.root
@@ -14722,7 +14722,7 @@ const AP = (e) => {
14722
14722
  input: {
14723
14723
  ownerState: m
14724
14724
  }
14725
- }, E = p ?? a ? wn(P, p ?? a) : P, _ = y.root ?? i.Root ?? FP, S = y.input ?? i.Input ?? LP;
14725
+ }, E = p ?? a ? Cn(P, p ?? a) : P, _ = y.root ?? i.Root ?? FP, S = y.input ?? i.Input ?? LP;
14726
14726
  return /* @__PURE__ */ k.jsx(gc, {
14727
14727
  slots: {
14728
14728
  root: _,
@@ -15294,12 +15294,12 @@ const Pi = Pe("MuiFormControlLabel", ["root", "labelPlacementStart", "labelPlace
15294
15294
  ...P
15295
15295
  }
15296
15296
  }, [K, G] = Pn("typography", {
15297
- elementType: vn,
15297
+ elementType: bn,
15298
15298
  externalForwardedProps: $,
15299
15299
  ownerState: z
15300
15300
  });
15301
15301
  let q = p;
15302
- return q != null && q.type !== vn && !u && (q = /* @__PURE__ */ k.jsx(K, {
15302
+ return q != null && q.type !== bn && !u && (q = /* @__PURE__ */ k.jsx(K, {
15303
15303
  component: "span",
15304
15304
  ...G,
15305
15305
  className: Se(R.label, G?.className),
@@ -16131,7 +16131,7 @@ const n1 = (e) => {
16131
16131
  disableUnderline: r
16132
16132
  }
16133
16133
  }
16134
- }, P = h ?? a ? wn(h ?? a, v) : v, E = p.root ?? i.Root ?? o1, _ = p.input ?? i.Input ?? r1;
16134
+ }, P = h ?? a ? Cn(h ?? a, v) : v, E = p.root ?? i.Root ?? o1, _ = p.input ?? i.Input ?? r1;
16135
16135
  return /* @__PURE__ */ k.jsx(gc, {
16136
16136
  slots: {
16137
16137
  root: E,
@@ -16430,7 +16430,7 @@ const i1 = (e, t) => {
16430
16430
  className: Se(m.root, i),
16431
16431
  ref: n,
16432
16432
  ...p,
16433
- children: typeof r == "string" && !d ? /* @__PURE__ */ k.jsx(vn, {
16433
+ children: typeof r == "string" && !d ? /* @__PURE__ */ k.jsx(bn, {
16434
16434
  color: "textSecondary",
16435
16435
  children: r
16436
16436
  }) : /* @__PURE__ */ k.jsxs(T.Fragment, {
@@ -17359,13 +17359,13 @@ const _s = Pe("MuiListItemText", ["root", "multiline", "dense", "inset", "primar
17359
17359
  secondary: !!m,
17360
17360
  dense: w
17361
17361
  }, P = R1(v);
17362
- return b != null && b.type !== vn && !a && (b = /* @__PURE__ */ k.jsx(vn, {
17362
+ return b != null && b.type !== bn && !a && (b = /* @__PURE__ */ k.jsx(bn, {
17363
17363
  variant: w ? "body2" : "body1",
17364
17364
  className: P.primary,
17365
17365
  component: u?.variant ? void 0 : "span",
17366
17366
  ...u,
17367
17367
  children: b
17368
- })), m != null && m.type !== vn && !a && (m = /* @__PURE__ */ k.jsx(vn, {
17368
+ })), m != null && m.type !== bn && !a && (m = /* @__PURE__ */ k.jsx(bn, {
17369
17369
  variant: "body2",
17370
17370
  className: P.secondary,
17371
17371
  color: "textSecondary",
@@ -17501,7 +17501,7 @@ const Py = /* @__PURE__ */ T.forwardRef(function(t, n) {
17501
17501
  h && h(_);
17502
17502
  return;
17503
17503
  }
17504
- const I = Cn(S).activeElement;
17504
+ const I = Sn(S).activeElement;
17505
17505
  if (C === "ArrowDown")
17506
17506
  _.preventDefault(), ui(S, I, u, d, wd);
17507
17507
  else if (C === "ArrowUp")
@@ -17683,7 +17683,7 @@ const E1 = (e) => {
17683
17683
  }, K = E1($), G = T.useCallback(() => {
17684
17684
  if (d === "anchorPosition")
17685
17685
  return process.env.NODE_ENV !== "production" && (l || console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')), l;
17686
- const le = yl(i), he = le && le.nodeType === 1 ? le : Cn(R.current).body, W = he.getBoundingClientRect();
17686
+ const le = yl(i), he = le && le.nodeType === 1 ? le : Sn(R.current).body, W = he.getBoundingClientRect();
17687
17687
  if (process.env.NODE_ENV !== "production") {
17688
17688
  const re = he.getBoundingClientRect();
17689
17689
  process.env.NODE_ENV !== "test" && re.top === 0 && re.left === 0 && re.right === 0 && re.bottom === 0 && console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.", "The anchor element should be part of the document layout.", "Make sure the element is present in the document or that it's not display none."].join(`
@@ -17761,7 +17761,7 @@ const E1 = (e) => {
17761
17761
  }, [i, b, A]);
17762
17762
  let B = S;
17763
17763
  S === "auto" && !_.muiSupportAuto && (B = void 0);
17764
- const ne = p || (i ? Cn(yl(i)).body : void 0), oe = {
17764
+ const ne = p || (i ? Sn(yl(i)).body : void 0), oe = {
17765
17765
  slots: v,
17766
17766
  slotProps: {
17767
17767
  ...P,
@@ -19378,7 +19378,7 @@ const nD = (e) => {
19378
19378
  }, [i]), T.useEffect(() => {
19379
19379
  if (!v)
19380
19380
  return;
19381
- const Oe = Cn(oe.current).getElementById(v);
19381
+ const Oe = Sn(oe.current).getElementById(v);
19382
19382
  if (Oe) {
19383
19383
  const je = () => {
19384
19384
  getSelection().isCollapsed && oe.current.focus();
@@ -19806,7 +19806,7 @@ const oD = (e) => {
19806
19806
  }
19807
19807
  },
19808
19808
  ...w,
19809
- classes: w ? wn(ae, w.classes) : ae,
19809
+ classes: w ? Cn(ae, w.classes) : ae,
19810
19810
  ...y ? y.props.inputProps : {}
19811
19811
  },
19812
19812
  ...(P && E || u) && G === "outlined" ? {
@@ -21871,7 +21871,7 @@ function JD(e, t, n) {
21871
21871
  function Rc(e) {
21872
21872
  return e % 4 === 0 && e % 100 !== 0 || e % 400 === 0;
21873
21873
  }
21874
- var Sn = 0, Ko = 1, ko = 2, sn = 3, uo = 4, Xo = 5, Vr = 6, eO = 7, tO = 8;
21874
+ var _n = 0, Ko = 1, ko = 2, sn = 3, uo = 4, Xo = 5, Vr = 6, eO = 7, tO = 8;
21875
21875
  Le("Y", 0, 0, function() {
21876
21876
  var e = this.year();
21877
21877
  return e <= 9999 ? Io(e, 4) : "+" + e;
@@ -21887,15 +21887,15 @@ De("YY", Nt, Hn);
21887
21887
  De("YYYY", fh, hh);
21888
21888
  De("YYYYY", Sc, wc);
21889
21889
  De("YYYYYY", Sc, wc);
21890
- kt(["YYYYY", "YYYYYY"], Sn);
21890
+ kt(["YYYYY", "YYYYYY"], _n);
21891
21891
  kt("YYYY", function(e, t) {
21892
- t[Sn] = e.length === 2 ? xe.parseTwoDigitYear(e) : tt(e);
21892
+ t[_n] = e.length === 2 ? xe.parseTwoDigitYear(e) : tt(e);
21893
21893
  });
21894
21894
  kt("YY", function(e, t) {
21895
- t[Sn] = xe.parseTwoDigitYear(e);
21895
+ t[_n] = xe.parseTwoDigitYear(e);
21896
21896
  });
21897
21897
  kt("Y", function(e, t) {
21898
- t[Sn] = parseInt(e, 10);
21898
+ t[_n] = parseInt(e, 10);
21899
21899
  });
21900
21900
  function Li(e) {
21901
21901
  return Rc(e) ? 366 : 365;
@@ -22482,7 +22482,7 @@ function XO() {
22482
22482
  }
22483
22483
  function wh(e) {
22484
22484
  var t, n = e._a;
22485
- return n && Ue(e).overflow === -2 && (t = n[Ko] < 0 || n[Ko] > 11 ? Ko : n[ko] < 1 || n[ko] > mh(n[Sn], n[Ko]) ? ko : n[sn] < 0 || n[sn] > 24 || n[sn] === 24 && (n[uo] !== 0 || n[Xo] !== 0 || n[Vr] !== 0) ? sn : n[uo] < 0 || n[uo] > 59 ? uo : n[Xo] < 0 || n[Xo] > 59 ? Xo : n[Vr] < 0 || n[Vr] > 999 ? Vr : -1, Ue(e)._overflowDayOfYear && (t < Sn || t > ko) && (t = ko), Ue(e)._overflowWeeks && t === -1 && (t = eO), Ue(e)._overflowWeekday && t === -1 && (t = tO), Ue(e).overflow = t), e;
22485
+ return n && Ue(e).overflow === -2 && (t = n[Ko] < 0 || n[Ko] > 11 ? Ko : n[ko] < 1 || n[ko] > mh(n[_n], n[Ko]) ? ko : n[sn] < 0 || n[sn] > 24 || n[sn] === 24 && (n[uo] !== 0 || n[Xo] !== 0 || n[Vr] !== 0) ? sn : n[uo] < 0 || n[uo] > 59 ? uo : n[Xo] < 0 || n[Xo] > 59 ? Xo : n[Vr] < 0 || n[Vr] > 999 ? Vr : -1, Ue(e)._overflowDayOfYear && (t < _n || t > ko) && (t = ko), Ue(e)._overflowWeeks && t === -1 && (t = eO), Ue(e)._overflowWeekday && t === -1 && (t = tO), Ue(e).overflow = t), e;
22486
22486
  }
22487
22487
  var ZO = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, QO = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, JO = /Z|[+-]\d\d(?::?\d\d)?/, tl = [
22488
22488
  ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
@@ -22647,7 +22647,7 @@ function cM(e) {
22647
22647
  function Ch(e) {
22648
22648
  var t, n, o = [], r, i, a;
22649
22649
  if (!e._d) {
22650
- for (r = cM(e), e._w && e._a[ko] == null && e._a[Ko] == null && dM(e), e._dayOfYear != null && (a = ws(e._a[Sn], r[Sn]), (e._dayOfYear > Li(a) || e._dayOfYear === 0) && (Ue(e)._overflowDayOfYear = !0), n = ta(a, 0, e._dayOfYear), e._a[Ko] = n.getUTCMonth(), e._a[ko] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
22650
+ for (r = cM(e), e._w && e._a[ko] == null && e._a[Ko] == null && dM(e), e._dayOfYear != null && (a = ws(e._a[_n], r[_n]), (e._dayOfYear > Li(a) || e._dayOfYear === 0) && (Ue(e)._overflowDayOfYear = !0), n = ta(a, 0, e._dayOfYear), e._a[Ko] = n.getUTCMonth(), e._a[ko] = n.getUTCDate()), t = 0; t < 3 && e._a[t] == null; ++t)
22651
22651
  e._a[t] = o[t] = r[t];
22652
22652
  for (; t < 7; t++)
22653
22653
  e._a[t] = o[t] = e._a[t] == null ? t === 2 ? 1 : 0 : e._a[t];
@@ -22661,9 +22661,9 @@ function dM(e) {
22661
22661
  var t, n, o, r, i, a, l, d, u;
22662
22662
  t = e._w, t.GG != null || t.W != null || t.E != null ? (i = 1, a = 4, n = ws(
22663
22663
  t.GG,
22664
- e._a[Sn],
22664
+ e._a[_n],
22665
22665
  na(Mt(), 1, 4).year
22666
- ), o = ws(t.W, 1), r = ws(t.E, 1), (r < 1 || r > 7) && (d = !0)) : (i = e._locale._week.dow, a = e._locale._week.doy, u = na(Mt(), i, a), n = ws(t.gg, e._a[Sn], u.year), o = ws(t.w, u.week), t.d != null ? (r = t.d, (r < 0 || r > 6) && (d = !0)) : t.e != null ? (r = t.e + i, (t.e < 0 || t.e > 6) && (d = !0)) : r = i), o < 1 || o > Jo(n, i, a) ? Ue(e)._overflowWeeks = !0 : d != null ? Ue(e)._overflowWeekday = !0 : (l = nv(n, o, r, i, a), e._a[Sn] = l.year, e._dayOfYear = l.dayOfYear);
22666
+ ), o = ws(t.W, 1), r = ws(t.E, 1), (r < 1 || r > 7) && (d = !0)) : (i = e._locale._week.dow, a = e._locale._week.doy, u = na(Mt(), i, a), n = ws(t.gg, e._a[_n], u.year), o = ws(t.w, u.week), t.d != null ? (r = t.d, (r < 0 || r > 6) && (d = !0)) : t.e != null ? (r = t.e + i, (t.e < 0 || t.e > 6) && (d = !0)) : r = i), o < 1 || o > Jo(n, i, a) ? Ue(e)._overflowWeeks = !0 : d != null ? Ue(e)._overflowWeekday = !0 : (l = nv(n, o, r, i, a), e._a[_n] = l.year, e._dayOfYear = l.dayOfYear);
22667
22667
  }
22668
22668
  xe.ISO_8601 = function() {
22669
22669
  };
@@ -22688,7 +22688,7 @@ function Sh(e) {
22688
22688
  e._locale,
22689
22689
  e._a[sn],
22690
22690
  e._meridiem
22691
- ), u = Ue(e).era, u !== null && (e._a[Sn] = e._locale.erasConvertYear(u, e._a[Sn])), Ch(e), wh(e);
22691
+ ), u = Ue(e).era, u !== null && (e._a[_n] = e._locale.erasConvertYear(u, e._a[_n])), Ch(e), wh(e);
22692
22692
  }
22693
22693
  function uM(e, t, n) {
22694
22694
  var o;
@@ -23339,10 +23339,10 @@ De("yy", Xs);
23339
23339
  De("yyy", Xs);
23340
23340
  De("yyyy", Xs);
23341
23341
  De("yo", II);
23342
- kt(["y", "yy", "yyy", "yyyy"], Sn);
23342
+ kt(["y", "yy", "yyy", "yyyy"], _n);
23343
23343
  kt(["yo"], function(e, t, n, o) {
23344
23344
  var r;
23345
- n._locale._eraYearOrdinalRegex && (r = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[Sn] = n._locale.eraYearOrdinalParse(e, r) : t[Sn] = parseInt(e, 10);
23345
+ n._locale._eraYearOrdinalRegex && (r = e.match(n._locale._eraYearOrdinalRegex)), n._locale.eraYearOrdinalParse ? t[_n] = n._locale.eraYearOrdinalParse(e, r) : t[_n] = parseInt(e, 10);
23346
23346
  });
23347
23347
  function CI(e, t) {
23348
23348
  var n, o, r, i = this._eras || lr("en")._eras;
@@ -24211,7 +24211,7 @@ class AN extends _a {
24211
24211
  super(...arguments), this.columnId = "", this.group = pn.Text, this.target = null, this.x = 0, this.y = 0;
24212
24212
  }
24213
24213
  }
24214
- const xn = new AN();
24214
+ const vn = new AN();
24215
24215
  class FN {
24216
24216
  highlightAllColumns(t, n) {
24217
24217
  const o = document.getElementById(n);
@@ -24244,7 +24244,7 @@ class FN {
24244
24244
  const sr = new FN();
24245
24245
  function LN(e) {
24246
24246
  return sr.highlightAllColumns(e.filter.args, e.id), function(t, n) {
24247
- t.preventDefault(), xn.columnId = n.column.id || "", xn.group = n.command, xn.table = e, xn.target = t.target, xn.x = t.x || 0, xn.y = t.y || 0, xn.notify();
24247
+ t.preventDefault(), vn.columnId = n.column.id || "", vn.group = n.command, vn.table = e, vn.target = t.target, vn.x = t.x || 0, vn.y = t.y || 0, vn.notify();
24248
24248
  };
24249
24249
  }
24250
24250
  function $N(e) {
@@ -24332,39 +24332,41 @@ const Ov = ie(_y)({
24332
24332
  Dialog: WN,
24333
24333
  DialogTitle: HN,
24334
24334
  List: zN
24335
- }, UN = () => {
24336
- const [e, t] = fo(0), [n, o] = fo(!1), [r, i] = fo({});
24337
- function a() {
24335
+ }, UN = ({ tableId: e }) => {
24336
+ const [t, n] = fo(0), [o, r] = fo(!1), [i, a] = fo({});
24337
+ function l() {
24338
24338
  Go.open = !1;
24339
24339
  }
24340
24340
  return Vn(() => {
24341
- function l() {
24342
- const d = Go.open;
24343
- if (d) {
24344
- const u = Go.table, h = u?.grid;
24345
- t(h?.getSelectedRows().length || 0), i($N(u));
24341
+ function d() {
24342
+ const { open: u, table: h } = Go;
24343
+ if (h?.id === e) {
24344
+ if (u) {
24345
+ const p = Go.table, y = p?.grid;
24346
+ n(y?.getSelectedRows().length || 0), a($N(p));
24347
+ }
24348
+ r(u);
24346
24349
  }
24347
- o(d);
24348
24350
  }
24349
- return Go.subscribe(l), () => {
24350
- Go.unsubscribe(l);
24351
+ return Go.subscribe(d), () => {
24352
+ Go.unsubscribe(d);
24351
24353
  };
24352
- }, []), n ? /* @__PURE__ */ k.jsxs(nl.Dialog, { open: n, onClose: a, children: [
24354
+ }, [e]), o ? /* @__PURE__ */ k.jsxs(nl.Dialog, { open: o, onClose: l, children: [
24353
24355
  /* @__PURE__ */ k.jsx(nl.DialogTitle, { children: "Selected rows summary" }),
24354
24356
  /* @__PURE__ */ k.jsx(Qu, { children: /* @__PURE__ */ k.jsxs(nl.List, { children: [
24355
- /* @__PURE__ */ k.jsx(Ov, { children: `Number of selected rows: ${e}` }),
24356
- Object.entries(r).map(
24357
- ([l, { label: d, total: u, totalFormatted: h }]) => /* @__PURE__ */ k.jsx(Wn, { children: /* @__PURE__ */ k.jsx(
24357
+ /* @__PURE__ */ k.jsx(Ov, { children: `Number of selected rows: ${t}` }),
24358
+ Object.entries(i).map(
24359
+ ([d, { label: u, total: h, totalFormatted: p }]) => /* @__PURE__ */ k.jsx(Wn, { children: /* @__PURE__ */ k.jsx(
24358
24360
  BN,
24359
24361
  {
24360
- label: d,
24361
- total: u,
24362
- totalFormatted: h
24362
+ label: u,
24363
+ total: h,
24364
+ totalFormatted: p
24363
24365
  }
24364
- ) }, l)
24366
+ ) }, d)
24365
24367
  )
24366
24368
  ] }) }),
24367
- /* @__PURE__ */ k.jsx(Zu, { children: /* @__PURE__ */ k.jsx(nl.Button, { variant: "outlined", onClick: a, children: "Close" }) })
24369
+ /* @__PURE__ */ k.jsx(Zu, { children: /* @__PURE__ */ k.jsx(nl.Button, { variant: "outlined", onClick: l, children: "Close" }) })
24368
24370
  ] }) : null;
24369
24371
  };
24370
24372
  function Eh(e, t, n) {
@@ -24410,7 +24412,7 @@ function Mv(e, t = 300) {
24410
24412
  };
24411
24413
  }
24412
24414
  function ZN(e) {
24413
- const { columnId: t, table: n } = xn;
24415
+ const { columnId: t, table: n } = vn;
24414
24416
  if (!t || !n) return;
24415
24417
  const o = n.filter.args;
24416
24418
  o.columnFilters && (n.filter.args = {
@@ -24452,7 +24454,7 @@ function JN(e, t, n) {
24452
24454
  if (!e) return;
24453
24455
  const o = document.getElementById(Iv);
24454
24456
  if (!o) return;
24455
- const { columnId: r, group: i, table: a, x: l, y: d } = xn;
24457
+ const { columnId: r, group: i, table: a, x: l, y: d } = vn;
24456
24458
  if (!a?.grid) return;
24457
24459
  const h = a.filter.args;
24458
24460
  Eh(o, l, d);
@@ -24470,15 +24472,15 @@ function JN(e, t, n) {
24470
24472
  }, t(w), n(b);
24471
24473
  }, [e]);
24472
24474
  }
24473
- function eA(e) {
24475
+ function eA(e, t) {
24474
24476
  Vn(() => {
24475
- function t() {
24476
- e(!0);
24477
+ function n() {
24478
+ vn.table?.id === t && e(!0);
24477
24479
  }
24478
- return xn.subscribe(t), () => {
24479
- xn.unsubscribe(t);
24480
+ return vn.subscribe(n), () => {
24481
+ vn.unsubscribe(n);
24480
24482
  };
24481
- }, []);
24483
+ }, [t]);
24482
24484
  }
24483
24485
  function yu(e) {
24484
24486
  return {
@@ -24493,7 +24495,7 @@ const tA = ie(Eo)({
24493
24495
  Button: tA
24494
24496
  }, oA = ({ setIsOpened: e, setValue: t, value: n }) => {
24495
24497
  function o() {
24496
- const { columnId: r, table: i } = xn;
24498
+ const { columnId: r, table: i } = vn;
24497
24499
  if (!i || !i.grid) return;
24498
24500
  const l = i.filter.args;
24499
24501
  delete l.columnFilters?.[r], i.filter.args = l, sr.resetColumn(i, r), t(Hs), e(!1);
@@ -25519,7 +25521,7 @@ const $A = ["children", "className", "toolbarTitle", "hidden", "titleId", "isLan
25519
25521
  className: Se(p.root, i),
25520
25522
  ownerState: h
25521
25523
  }, u, {
25522
- children: [/* @__PURE__ */ k.jsx(vn, {
25524
+ children: [/* @__PURE__ */ k.jsx(bn, {
25523
25525
  color: "text.secondary",
25524
25526
  variant: "overline",
25525
25527
  id: d,
@@ -25547,7 +25549,7 @@ const zA = ["value", "isLandscape", "onChange", "toolbarFormat", "toolbarPlaceho
25547
25549
  name: "MuiDatePickerToolbar",
25548
25550
  slot: "Root",
25549
25551
  overridesResolver: (e, t) => t.root
25550
- })({}), qA = ie(vn, {
25552
+ })({}), qA = ie(bn, {
25551
25553
  name: "MuiDatePickerToolbar",
25552
25554
  slot: "Title",
25553
25555
  overridesResolver: (e, t) => t.title
@@ -25800,7 +25802,7 @@ function lF(e, t) {
25800
25802
  return;
25801
25803
  const u = o.current;
25802
25804
  o.current = !1;
25803
- const h = Cn(r.current);
25805
+ const h = Sn(r.current);
25804
25806
  if (!r.current || // is a TouchEvent?
25805
25807
  "clientX" in d && aF(d, h))
25806
25808
  return;
@@ -25815,7 +25817,7 @@ function lF(e, t) {
25815
25817
  };
25816
25818
  return T.useEffect(() => {
25817
25819
  if (e) {
25818
- const d = Cn(r.current), u = () => {
25820
+ const d = Sn(r.current), u = () => {
25819
25821
  n.current = !0;
25820
25822
  };
25821
25823
  return d.addEventListener("touchstart", a), d.addEventListener("touchmove", u), () => {
@@ -25824,7 +25826,7 @@ function lF(e, t) {
25824
25826
  }
25825
25827
  }, [e, a]), T.useEffect(() => {
25826
25828
  if (e) {
25827
- const d = Cn(r.current);
25829
+ const d = Sn(r.current);
25828
25830
  return d.addEventListener("click", a), () => {
25829
25831
  d.removeEventListener("click", a), o.current = !1;
25830
25832
  };
@@ -30631,7 +30633,7 @@ const d$ = ["parentProps", "day", "focusableDay", "selectedDays", "isDateDisable
30631
30633
  display: "flex",
30632
30634
  justifyContent: "center",
30633
30635
  alignItems: "center"
30634
- }), m$ = ie(vn, {
30636
+ }), m$ = ie(bn, {
30635
30637
  name: "MuiDayCalendar",
30636
30638
  slot: "WeekDayLabel",
30637
30639
  overridesResolver: (e, t) => t.weekDayLabel
@@ -30646,7 +30648,7 @@ const d$ = ["parentProps", "day", "focusableDay", "selectedDays", "isDateDisable
30646
30648
  justifyContent: "center",
30647
30649
  alignItems: "center",
30648
30650
  color: (e.vars || e).palette.text.secondary
30649
- })), g$ = ie(vn, {
30651
+ })), g$ = ie(bn, {
30650
30652
  name: "MuiDayCalendar",
30651
30653
  slot: "WeekNumberLabel",
30652
30654
  overridesResolver: (e, t) => t.weekNumberLabel
@@ -30661,7 +30663,7 @@ const d$ = ["parentProps", "day", "focusableDay", "selectedDays", "isDateDisable
30661
30663
  justifyContent: "center",
30662
30664
  alignItems: "center",
30663
30665
  color: e.palette.text.disabled
30664
- })), y$ = ie(vn, {
30666
+ })), y$ = ie(bn, {
30665
30667
  name: "MuiDayCalendar",
30666
30668
  slot: "WeekNumber",
30667
30669
  overridesResolver: (e, t) => t.weekNumber
@@ -31855,7 +31857,7 @@ const K$ = ["children", "className", "slots", "slotProps", "isNextDisabled", "is
31855
31857
  }, E, {
31856
31858
  children: [/* @__PURE__ */ k.jsx(I, Q({}, F, {
31857
31859
  children: o ? /* @__PURE__ */ k.jsx(q, Q({}, H)) : /* @__PURE__ */ k.jsx($, Q({}, G))
31858
- })), i ? /* @__PURE__ */ k.jsx(vn, {
31860
+ })), i ? /* @__PURE__ */ k.jsx(bn, {
31859
31861
  variant: "subtitle1",
31860
31862
  component: "span",
31861
31863
  id: P,
@@ -33882,7 +33884,7 @@ const bu = ie(Wn)({
33882
33884
  ) }) });
33883
33885
  }, jm = { label: "", options: [] };
33884
33886
  function TV() {
33885
- const { columnId: e, table: t } = xn, n = t?.grid;
33887
+ const { columnId: e, table: t } = vn, n = t?.grid;
33886
33888
  if (!n) return jm;
33887
33889
  const o = n?.getColumns().find(({ id: p }) => p === e);
33888
33890
  if (!o) return jm;
@@ -34121,9 +34123,9 @@ const EV = ie(yc)({
34121
34123
  YV
34122
34124
  ]
34123
34125
  }, qV = ({ filterId: e, setFilterId: t }) => {
34124
- const n = UV[xn.group], o = n.some(({ id: i }) => i === e) ? e : n[0]?.id;
34126
+ const n = UV[vn.group], o = n.some(({ id: i }) => i === e) ? e : n[0]?.id;
34125
34127
  function r(i) {
34126
- const { columnId: a, table: l } = xn;
34128
+ const { columnId: a, table: l } = vn;
34127
34129
  if (!a || !l) return;
34128
34130
  const d = l.filter.args, u = i.target.value;
34129
34131
  d.columnFilters && (l.filter.args = {
@@ -34155,40 +34157,39 @@ const EV = ie(yc)({
34155
34157
  width: "12em"
34156
34158
  }), KV = {
34157
34159
  Wrapper: GV
34158
- }, XV = () => {
34159
- const [e, t] = fo(Hs), [n, o] = fo(
34160
+ }, XV = ({ tableId: e }) => {
34161
+ const [t, n] = fo(Hs), [o, r] = fo(
34160
34162
  We.TextContain
34161
- ), [r, i] = fo(!1);
34162
- return eA(i), JN(r, o, t), r ? /* @__PURE__ */ k.jsxs(zr, { children: [
34163
- /* @__PURE__ */ k.jsx(Ph, { setIsOpened: i }),
34163
+ ), [i, a] = fo(!1);
34164
+ return eA(a, e), JN(i, r, n), i ? /* @__PURE__ */ k.jsxs(zr, { children: [
34165
+ /* @__PURE__ */ k.jsx(Ph, { setIsOpened: a }),
34164
34166
  /* @__PURE__ */ k.jsx(Dh, { id: Iv, children: /* @__PURE__ */ k.jsxs(KV.Wrapper, { children: [
34165
- /* @__PURE__ */ k.jsx(qV, { filterId: n, setFilterId: o }),
34166
- /* @__PURE__ */ k.jsx(OV, { filterId: n, setValue: t, value: e }),
34167
+ /* @__PURE__ */ k.jsx(qV, { filterId: o, setFilterId: r }),
34168
+ /* @__PURE__ */ k.jsx(OV, { filterId: o, setValue: n, value: t }),
34167
34169
  /* @__PURE__ */ k.jsx(
34168
34170
  oA,
34169
34171
  {
34170
- setIsOpened: i,
34171
- setValue: t,
34172
- value: e
34172
+ setIsOpened: a,
34173
+ setValue: n,
34174
+ value: t
34173
34175
  }
34174
34176
  )
34175
34177
  ] }) })
34176
34178
  ] }) : null;
34177
34179
  }, wb = "context_menu";
34178
- function ZV(e) {
34180
+ function ZV(e, t) {
34179
34181
  Vn(() => {
34180
- function t() {
34181
- e(!0), setTimeout(() => {
34182
- const n = document.getElementById(wb);
34183
- if (!n) return;
34184
- const { x: o, y: r } = bn;
34185
- Eh(n, o, r);
34186
- }, 0);
34187
- }
34188
- return bn.subscribe(t), () => {
34189
- bn.unsubscribe(t);
34182
+ function n() {
34183
+ const { table: o, x: r, y: i } = wn;
34184
+ o?.id === t && (e(!0), setTimeout(() => {
34185
+ const a = document.getElementById(wb);
34186
+ a && Eh(a, r, i);
34187
+ }, 0));
34188
+ }
34189
+ return wn.subscribe(n), () => {
34190
+ wn.unsubscribe(n);
34190
34191
  };
34191
- }, []);
34192
+ }, [t]);
34192
34193
  }
34193
34194
  const QV = ie("ul")({
34194
34195
  display: "flex",
@@ -34212,7 +34213,7 @@ const QV = ie("ul")({
34212
34213
  Icon: ej
34213
34214
  }, tj = ({ setIsOpened: e }) => {
34214
34215
  const t = () => {
34215
- const { clientId: n, clientName: o, table: r } = bn, i = r?.grid;
34216
+ const { clientId: n, clientName: o, table: r } = wn, i = r?.grid;
34216
34217
  if (!r || !i) {
34217
34218
  e(!1);
34218
34219
  return;
@@ -34224,7 +34225,7 @@ const QV = ie("ul")({
34224
34225
  "Download as CSV"
34225
34226
  ] });
34226
34227
  }, nj = ({ setIsOpened: e }) => {
34227
- const t = bn.table;
34228
+ const t = wn.table;
34228
34229
  function n() {
34229
34230
  t && (t.grouping = { isGrouped: !0 }, e(!1));
34230
34231
  }
@@ -34239,7 +34240,7 @@ function oj(e) {
34239
34240
  ) : !1;
34240
34241
  }
34241
34242
  const rj = ({ setIsOpened: e }) => {
34242
- const t = bn.table;
34243
+ const t = wn.table;
34243
34244
  function n() {
34244
34245
  if (!t) {
34245
34246
  e(!1);
@@ -34256,7 +34257,7 @@ const rj = ({ setIsOpened: e }) => {
34256
34257
  ] })
34257
34258
  ] }) : null;
34258
34259
  }, sj = ({ setIsOpened: e }) => {
34259
- const t = bn.table, o = t?.grid?.getSelectedRows();
34260
+ const t = wn.table, o = t?.grid?.getSelectedRows();
34260
34261
  function r() {
34261
34262
  t && (e(!1), Go.table = t, Go.open = !0);
34262
34263
  }
@@ -34270,7 +34271,7 @@ const rj = ({ setIsOpened: e }) => {
34270
34271
  "Summary"
34271
34272
  ] });
34272
34273
  }, ij = ({ setIsOpened: e }) => {
34273
- const t = bn.table;
34274
+ const t = wn.table;
34274
34275
  function n() {
34275
34276
  t && (t.grouping = { isGrouped: !1 }, e(!1));
34276
34277
  }
@@ -34279,7 +34280,7 @@ const rj = ({ setIsOpened: e }) => {
34279
34280
  "Ungroup"
34280
34281
  ] }) : null;
34281
34282
  }, aj = ({ setIsOpened: e }) => {
34282
- const t = bn.table;
34283
+ const t = wn.table;
34283
34284
  function n() {
34284
34285
  const o = t?.grid;
34285
34286
  if (!o) return;
@@ -34291,7 +34292,7 @@ const rj = ({ setIsOpened: e }) => {
34291
34292
  ] }) : null;
34292
34293
  }, lj = ({ setIsOpened: e }) => {
34293
34294
  function t() {
34294
- const n = bn.table, o = n?.grid;
34295
+ const n = wn.table, o = n?.grid;
34295
34296
  if (!o || !n) {
34296
34297
  e(!1);
34297
34298
  return;
@@ -34305,7 +34306,7 @@ const rj = ({ setIsOpened: e }) => {
34305
34306
  "Copy to clipboard"
34306
34307
  ] });
34307
34308
  }, cj = ({ setIsOpened: e }) => {
34308
- const t = bn.table;
34309
+ const t = wn.table;
34309
34310
  function n() {
34310
34311
  const o = t?.grid;
34311
34312
  if (!o) return;
@@ -34317,44 +34318,43 @@ const rj = ({ setIsOpened: e }) => {
34317
34318
  ] }) : null;
34318
34319
  }, dj = ({ setIsOpened: e }) => {
34319
34320
  function t() {
34320
- const { clientId: n, clientName: o, table: r } = bn;
34321
+ const { clientId: n, clientName: o, table: r } = wn;
34321
34322
  r?.printer.print(r, n, o), e(!1);
34322
34323
  }
34323
34324
  return /* @__PURE__ */ k.jsxs(ln.Li, { onClick: t, children: [
34324
34325
  /* @__PURE__ */ k.jsx(ln.Icon, { className: "sgi sgi-printer" }),
34325
34326
  "Print"
34326
34327
  ] });
34327
- }, uj = () => {
34328
- const [e, t] = fo(!1);
34329
- return ZV(t), e ? /* @__PURE__ */ k.jsxs(zr, { children: [
34330
- /* @__PURE__ */ k.jsx(Ph, { setIsOpened: t }),
34328
+ }, uj = ({ tableId: e }) => {
34329
+ const [t, n] = fo(!1);
34330
+ return ZV(n, e), t ? /* @__PURE__ */ k.jsxs(zr, { children: [
34331
+ /* @__PURE__ */ k.jsx(Ph, { setIsOpened: n }),
34331
34332
  /* @__PURE__ */ k.jsx(Dh, { id: wb, children: /* @__PURE__ */ k.jsxs(ln.Ul, { children: [
34332
- /* @__PURE__ */ k.jsx(dj, { setIsOpened: t }),
34333
- /* @__PURE__ */ k.jsx(lj, { setIsOpened: t }),
34334
- /* @__PURE__ */ k.jsx(tj, { setIsOpened: t }),
34335
- /* @__PURE__ */ k.jsx(rj, { setIsOpened: t }),
34336
- /* @__PURE__ */ k.jsx(ij, { setIsOpened: t }),
34337
- /* @__PURE__ */ k.jsx(nj, { setIsOpened: t }),
34338
- /* @__PURE__ */ k.jsx(cj, { setIsOpened: t }),
34339
- /* @__PURE__ */ k.jsx(aj, { setIsOpened: t }),
34340
- /* @__PURE__ */ k.jsx(sj, { setIsOpened: t })
34333
+ /* @__PURE__ */ k.jsx(dj, { setIsOpened: n }),
34334
+ /* @__PURE__ */ k.jsx(lj, { setIsOpened: n }),
34335
+ /* @__PURE__ */ k.jsx(tj, { setIsOpened: n }),
34336
+ /* @__PURE__ */ k.jsx(rj, { setIsOpened: n }),
34337
+ /* @__PURE__ */ k.jsx(ij, { setIsOpened: n }),
34338
+ /* @__PURE__ */ k.jsx(nj, { setIsOpened: n }),
34339
+ /* @__PURE__ */ k.jsx(cj, { setIsOpened: n }),
34340
+ /* @__PURE__ */ k.jsx(aj, { setIsOpened: n }),
34341
+ /* @__PURE__ */ k.jsx(sj, { setIsOpened: n })
34341
34342
  ] }) })
34342
34343
  ] }) : null;
34343
34344
  }, Cb = "header-context-menu";
34344
- function hj(e) {
34345
+ function hj(e, t) {
34345
34346
  Vn(() => {
34346
- function t() {
34347
- e(!0), setTimeout(() => {
34348
- const n = document.getElementById(Cb);
34349
- if (!n) return;
34350
- const { x: o, y: r } = ho;
34351
- Eh(n, o, r);
34352
- }, 0);
34353
- }
34354
- return ho.subscribe(t), () => {
34355
- ho.unsubscribe(t);
34347
+ function n() {
34348
+ const { table: o, x: r, y: i } = ho;
34349
+ o?.id === t && (e(!0), setTimeout(() => {
34350
+ const a = document.getElementById(Cb);
34351
+ a && Eh(a, r, i);
34352
+ }, 0));
34353
+ }
34354
+ return ho.subscribe(n), () => {
34355
+ ho.unsubscribe(n);
34356
34356
  };
34357
- }, []);
34357
+ }, [t]);
34358
34358
  }
34359
34359
  function Yh(e) {
34360
34360
  const t = ho.table;
@@ -34442,32 +34442,32 @@ const fj = ({ setChecked: e }) => {
34442
34442
  }), Sj = ie(Wn)({
34443
34443
  maxHeight: "35em",
34444
34444
  overflowY: "auto"
34445
- }), Ym = { ButtonsGroup: Cj, ItemsGroup: Sj }, _j = () => {
34446
- const [e, t] = fo([]), [n, o] = fo(!1);
34447
- if (hj(o), Vn(() => {
34448
- if (!n) return;
34449
- const i = ho.table;
34450
- i?.columnPicker && t([...i.columnPicker.visibleColumnIds]);
34451
- }, [n]), !n) return null;
34452
- const r = ho.table;
34453
- return r?.columnPicker ? /* @__PURE__ */ k.jsxs(zr, { children: [
34454
- /* @__PURE__ */ k.jsx(Ph, { setIsOpened: o }),
34445
+ }), Ym = { ButtonsGroup: Cj, ItemsGroup: Sj }, _j = ({ tableId: e }) => {
34446
+ const [t, n] = fo([]), [o, r] = fo(!1);
34447
+ if (hj(r, e), Vn(() => {
34448
+ if (!o) return;
34449
+ const a = ho.table;
34450
+ a?.columnPicker && n([...a.columnPicker.visibleColumnIds]);
34451
+ }, [o]), !o) return null;
34452
+ const i = ho.table;
34453
+ return i?.columnPicker ? /* @__PURE__ */ k.jsxs(zr, { children: [
34454
+ /* @__PURE__ */ k.jsx(Ph, { setIsOpened: r }),
34455
34455
  /* @__PURE__ */ k.jsxs(Dh, { id: Cb, children: [
34456
34456
  /* @__PURE__ */ k.jsx(wj, {}),
34457
- /* @__PURE__ */ k.jsx(Ym.ItemsGroup, { children: r.columnPicker.initialColumns.filter(
34458
- ({ id: i }) => i !== "_checkbox_selector" && i !== "isEdited"
34459
- ).map(({ id: i, name: a }) => /* @__PURE__ */ k.jsx(zr, { children: /* @__PURE__ */ k.jsx(
34457
+ /* @__PURE__ */ k.jsx(Ym.ItemsGroup, { children: i.columnPicker.initialColumns.filter(
34458
+ ({ id: a }) => a !== "_checkbox_selector" && a !== "isEdited"
34459
+ ).map(({ id: a, name: l }) => /* @__PURE__ */ k.jsx(zr, { children: /* @__PURE__ */ k.jsx(
34460
34460
  yj,
34461
34461
  {
34462
- checked: e,
34463
- columnId: i,
34464
- columnName: a,
34465
- setChecked: t
34462
+ checked: t,
34463
+ columnId: a,
34464
+ columnName: l,
34465
+ setChecked: n
34466
34466
  }
34467
- ) }, i)) }),
34467
+ ) }, a)) }),
34468
34468
  /* @__PURE__ */ k.jsxs(Ym.ButtonsGroup, { className: "header-context-menu-footer", children: [
34469
- /* @__PURE__ */ k.jsx(fj, { setChecked: t }),
34470
- /* @__PURE__ */ k.jsx(pj, { checked: e, setChecked: t })
34469
+ /* @__PURE__ */ k.jsx(fj, { setChecked: n }),
34470
+ /* @__PURE__ */ k.jsx(pj, { checked: t, setChecked: n })
34471
34471
  ] })
34472
34472
  ] })
34473
34473
  ] }) : null;
@@ -41368,7 +41368,7 @@ const Jm = Ys`
41368
41368
  onSelectedRowsChanged: P,
41369
41369
  options: E,
41370
41370
  table: _
41371
- }) => d ? /* @__PURE__ */ k.jsx(eg.Skeleton, { animation: "wave", variant: "rectangular" }) : /* @__PURE__ */ k.jsxs(eg.Wrapper, { id: "slick-table", children: [
41371
+ }) => d ? /* @__PURE__ */ k.jsx(eg.Skeleton, { animation: "wave", variant: "rectangular" }) : /* @__PURE__ */ k.jsxs(eg.Wrapper, { className: "slick-table", children: [
41372
41372
  /* @__PURE__ */ k.jsx(
41373
41373
  xB,
41374
41374
  {
@@ -41393,10 +41393,10 @@ const Jm = Ys`
41393
41393
  table: _
41394
41394
  }
41395
41395
  ),
41396
- /* @__PURE__ */ k.jsx(_j, {}),
41397
- /* @__PURE__ */ k.jsx(XV, {}),
41398
- /* @__PURE__ */ k.jsx(uj, {}),
41399
- /* @__PURE__ */ k.jsx(UN, {})
41396
+ /* @__PURE__ */ k.jsx(_j, { tableId: _.id }),
41397
+ /* @__PURE__ */ k.jsx(XV, { tableId: _.id }),
41398
+ /* @__PURE__ */ k.jsx(uj, { tableId: _.id }),
41399
+ /* @__PURE__ */ k.jsx(UN, { tableId: _.id })
41400
41400
  ] }), MW = {
41401
41401
  id: lu,
41402
41402
  field: lu
@@ -42305,8 +42305,8 @@ Arguments: ` + Array.prototype.slice.call(x).join("") + `
42305
42305
  return this._weekdaysParseExact ? (l(this, "_weekdaysRegex") || zc.call(this), c ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (l(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = rw), this._weekdaysMinStrictRegex && c ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
42306
42306
  }
42307
42307
  function zc() {
42308
- function c(_n, Wo) {
42309
- return Wo.length - _n.length;
42308
+ function c(xn, Wo) {
42309
+ return Wo.length - xn.length;
42310
42310
  }
42311
42311
  var f = [], g = [], x = [], N = [], X, de, Ee, He, st;
42312
42312
  for (X = 0; X < 7; X++)
@@ -42521,7 +42521,7 @@ Arguments: ` + Array.prototype.slice.call(x).join("") + `
42521
42521
  PST: -8 * 60
42522
42522
  };
42523
42523
  function lf(c) {
42524
- var f, g, x = c._i, N = Tw.exec(x) || kw.exec(x), X, de, Ee, He, st = Da.length, _n = Gc.length;
42524
+ var f, g, x = c._i, N = Tw.exec(x) || kw.exec(x), X, de, Ee, He, st = Da.length, xn = Gc.length;
42525
42525
  if (N) {
42526
42526
  for (v(c).iso = !0, f = 0, g = st; f < g; f++)
42527
42527
  if (Da[f][1].exec(N[1])) {
@@ -42533,7 +42533,7 @@ Arguments: ` + Array.prototype.slice.call(x).join("") + `
42533
42533
  return;
42534
42534
  }
42535
42535
  if (N[3]) {
42536
- for (f = 0, g = _n; f < g; f++)
42536
+ for (f = 0, g = xn; f < g; f++)
42537
42537
  if (Gc[f][1].exec(N[3])) {
42538
42538
  Ee = (N[2] || " ") + Gc[f][0];
42539
42539
  break;
@@ -42678,8 +42678,8 @@ Arguments: ` + Array.prototype.slice.call(x).join("") + `
42678
42678
  return;
42679
42679
  }
42680
42680
  c._a = [], v(c).empty = !0;
42681
- var f = "" + c._i, g, x, N, X, de, Ee = f.length, He = 0, st, _n;
42682
- for (N = ce(c._f, c._locale).match(B) || [], _n = N.length, g = 0; g < _n; g++)
42681
+ var f = "" + c._i, g, x, N, X, de, Ee = f.length, He = 0, st, xn;
42682
+ for (N = ce(c._f, c._locale).match(B) || [], xn = N.length, g = 0; g < xn; g++)
42683
42683
  X = N[g], x = (f.match(Vc(X, c)) || [])[0], x && (de = f.substr(0, f.indexOf(x)), de.length > 0 && v(c).unusedInput.push(de), f = f.slice(
42684
42684
  f.indexOf(x) + x.length
42685
42685
  ), He += x.length), se[X] ? (x ? v(c).empty = !1 : v(c).unusedTokens.push(X), jc(X, x, c)) : c._strict && !x && v(c).unusedTokens.push(X);
@@ -42797,8 +42797,8 @@ Arguments: ` + Array.prototype.slice.call(x).join("") + `
42797
42797
  return ao(NaN);
42798
42798
  }
42799
42799
  function Oa(c) {
42800
- var f = Qe(c), g = f.year || 0, x = f.quarter || 0, N = f.month || 0, X = f.week || f.isoWeek || 0, de = f.day || 0, Ee = f.hour || 0, He = f.minute || 0, st = f.second || 0, _n = f.millisecond || 0;
42801
- this._isValid = Xw(f), this._milliseconds = +_n + st * 1e3 + // 1000
42800
+ var f = Qe(c), g = f.year || 0, x = f.quarter || 0, N = f.month || 0, X = f.week || f.isoWeek || 0, de = f.day || 0, Ee = f.hour || 0, He = f.minute || 0, st = f.second || 0, xn = f.millisecond || 0;
42801
+ this._isValid = Xw(f), this._milliseconds = +xn + st * 1e3 + // 1000
42802
42802
  He * 6e4 + // 1000 * 60
42803
42803
  Ee * 1e3 * 60 * 60, this._days = +de + X * 7, this._months = +N + x * 3 + g * 12, this._data = {}, this._locale = $o(), this._bubble();
42804
42804
  }
@@ -43733,8 +43733,8 @@ Arguments: ` + Array.prototype.slice.call(x).join("") + `
43733
43733
  return N.relativeTime(f || 1, !!g, c, x);
43734
43734
  }
43735
43735
  function t0(c, f, g, x) {
43736
- var N = ao(c).abs(), X = Bo(N.as("s")), de = Bo(N.as("m")), Ee = Bo(N.as("h")), He = Bo(N.as("d")), st = Bo(N.as("M")), _n = Bo(N.as("w")), Wo = Bo(N.as("y")), pr = X <= g.ss && ["s", X] || X < g.s && ["ss", X] || de <= 1 && ["m"] || de < g.m && ["mm", de] || Ee <= 1 && ["h"] || Ee < g.h && ["hh", Ee] || He <= 1 && ["d"] || He < g.d && ["dd", He];
43737
- return g.w != null && (pr = pr || _n <= 1 && ["w"] || _n < g.w && ["ww", _n]), pr = pr || st <= 1 && ["M"] || st < g.M && ["MM", st] || Wo <= 1 && ["y"] || ["yy", Wo], pr[2] = f, pr[3] = +c > 0, pr[4] = x, e0.apply(null, pr);
43736
+ var N = ao(c).abs(), X = Bo(N.as("s")), de = Bo(N.as("m")), Ee = Bo(N.as("h")), He = Bo(N.as("d")), st = Bo(N.as("M")), xn = Bo(N.as("w")), Wo = Bo(N.as("y")), pr = X <= g.ss && ["s", X] || X < g.s && ["ss", X] || de <= 1 && ["m"] || de < g.m && ["mm", de] || Ee <= 1 && ["h"] || Ee < g.h && ["hh", Ee] || He <= 1 && ["d"] || He < g.d && ["dd", He];
43737
+ return g.w != null && (pr = pr || xn <= 1 && ["w"] || xn < g.w && ["ww", xn]), pr = pr || st <= 1 && ["M"] || st < g.M && ["MM", st] || Wo <= 1 && ["y"] || ["yy", Wo], pr[2] = f, pr[3] = +c > 0, pr[4] = x, e0.apply(null, pr);
43738
43738
  }
43739
43739
  function n0(c) {
43740
43740
  return c === void 0 ? Bo : typeof c == "function" ? (Bo = c, !0) : !1;
@@ -43755,8 +43755,8 @@ Arguments: ` + Array.prototype.slice.call(x).join("") + `
43755
43755
  function $a() {
43756
43756
  if (!this.isValid())
43757
43757
  return this.localeData().invalidDate();
43758
- var c = sd(this._milliseconds) / 1e3, f = sd(this._days), g = sd(this._months), x, N, X, de, Ee = this.asSeconds(), He, st, _n, Wo;
43759
- return Ee ? (x = Tn(c / 60), N = Tn(x / 60), c %= 60, x %= 60, X = Tn(g / 12), g %= 12, de = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", He = Ee < 0 ? "-" : "", st = ls(this._months) !== ls(Ee) ? "-" : "", _n = ls(this._days) !== ls(Ee) ? "-" : "", Wo = ls(this._milliseconds) !== ls(Ee) ? "-" : "", He + "P" + (X ? st + X + "Y" : "") + (g ? st + g + "M" : "") + (f ? _n + f + "D" : "") + (N || x || c ? "T" : "") + (N ? Wo + N + "H" : "") + (x ? Wo + x + "M" : "") + (c ? Wo + de + "S" : "")) : "P0D";
43758
+ var c = sd(this._milliseconds) / 1e3, f = sd(this._days), g = sd(this._months), x, N, X, de, Ee = this.asSeconds(), He, st, xn, Wo;
43759
+ return Ee ? (x = Tn(c / 60), N = Tn(x / 60), c %= 60, x %= 60, X = Tn(g / 12), g %= 12, de = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", He = Ee < 0 ? "-" : "", st = ls(this._months) !== ls(Ee) ? "-" : "", xn = ls(this._days) !== ls(Ee) ? "-" : "", Wo = ls(this._milliseconds) !== ls(Ee) ? "-" : "", He + "P" + (X ? st + X + "Y" : "") + (g ? st + g + "M" : "") + (f ? xn + f + "D" : "") + (N || x || c ? "T" : "") + (N ? Wo + N + "H" : "") + (x ? Wo + x + "M" : "") + (c ? Wo + de + "S" : "")) : "P0D";
43760
43760
  }
43761
43761
  var at = Oa.prototype;
43762
43762
  at.isValid = Zw, at.abs = DS, at.add = OS, at.subtract = MS, at.as = NS, at.asMilliseconds = If, at.asSeconds = AS, at.asMinutes = FS, at.asHours = LS, at.asDays = $S, at.asWeeks = VS, at.asMonths = jS, at.asQuarters = BS, at.asYears = WS, at.valueOf = HS, at._bubble = IS, at.clone = zS, at.get = YS, at.milliseconds = US, at.seconds = qS, at.minutes = GS, at.hours = KS, at.days = XS, at.weeks = JS, at.months = ZS, at.years = QS, at.humanize = r0, at.toISOString = $a, at.toString = $a, at.toJSON = $a, at.locale = bf, at.localeData = Cf, at.toIsoString = R(
@@ -44018,7 +44018,7 @@ class LB extends _a {
44018
44018
  super(...arguments), this.clientId = 0, this.clientName = "", this.x = 0, this.y = 0;
44019
44019
  }
44020
44020
  }
44021
- const bn = new LB();
44021
+ const wn = new LB();
44022
44022
  class $B extends _a {
44023
44023
  constructor() {
44024
44024
  super(...arguments), this.x = 0, this.y = 0;
@@ -44106,7 +44106,7 @@ const Kh = (e) => {
44106
44106
  };
44107
44107
  function qB(e) {
44108
44108
  return function(t) {
44109
- t.preventDefault(), Pb(), bn.table = e, bn.x = t.pageX || 0, bn.y = t.pageY || 0, bn.notify();
44109
+ t.preventDefault(), Pb(), wn.table = e, wn.x = t.pageX || 0, wn.y = t.pageY || 0, wn.notify();
44110
44110
  };
44111
44111
  }
44112
44112
  function GB(e) {
@@ -45599,7 +45599,7 @@ export {
45599
45599
  IW as columnIsEdited,
45600
45600
  Pb as commitCurrentEdit,
45601
45601
  YB as copySelectedRows,
45602
- bn as eventContextMenu,
45602
+ wn as eventContextMenu,
45603
45603
  Nb as formatNumber,
45604
45604
  $W as formatterCheckMark,
45605
45605
  jW as formatterGroupTotals,