@opencorestack/opengridx 2.0.1 → 2.0.3

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.
@@ -1,6 +1,6 @@
1
- import xe, { useMemo as ue, useState as ne, useCallback as H, useRef as J, useEffect as re, useLayoutEffect as Me, useId as Zt, useReducer as Go } from "react";
1
+ import xe, { useMemo as de, useState as ne, useCallback as H, useRef as J, useEffect as re, useLayoutEffect as Me, useId as en, useReducer as Go } from "react";
2
2
  import Ze from "react-dom";
3
- var Yt = { exports: {} }, Pt = {};
3
+ var qt = { exports: {} }, Pt = {};
4
4
  var Gn;
5
5
  function Vo() {
6
6
  if (Gn) return Pt;
@@ -133,15 +133,15 @@ function Uo() {
133
133
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
134
134
  )), v = this.props.ref, v !== void 0 ? v : null;
135
135
  }
136
- function f(v, E, L, F, B, K) {
137
- var V = L.ref;
136
+ function f(v, E, L, F, B, V) {
137
+ var U = L.ref;
138
138
  return v = {
139
139
  $$typeof: x,
140
140
  type: v,
141
141
  key: E,
142
142
  props: L,
143
143
  _owner: F
144
- }, (V !== void 0 ? V : null) !== null ? Object.defineProperty(v, "ref", {
144
+ }, (U !== void 0 ? U : null) !== null ? Object.defineProperty(v, "ref", {
145
145
  enumerable: !1,
146
146
  get: d
147
147
  }) : Object.defineProperty(v, "ref", { enumerable: !1, value: null }), v._store = {}, Object.defineProperty(v._store, "validated", {
@@ -163,28 +163,28 @@ function Uo() {
163
163
  configurable: !1,
164
164
  enumerable: !1,
165
165
  writable: !0,
166
- value: K
166
+ value: V
167
167
  }), Object.freeze && (Object.freeze(v.props), Object.freeze(v)), v;
168
168
  }
169
- function h(v, E, L, F, B, K) {
170
- var V = E.children;
171
- if (V !== void 0)
169
+ function h(v, E, L, F, B, V) {
170
+ var U = E.children;
171
+ if (U !== void 0)
172
172
  if (F)
173
- if (W(V)) {
174
- for (F = 0; F < V.length; F++)
175
- w(V[F]);
176
- Object.freeze && Object.freeze(V);
173
+ if (W(U)) {
174
+ for (F = 0; F < U.length; F++)
175
+ w(U[F]);
176
+ Object.freeze && Object.freeze(U);
177
177
  } else
178
178
  console.error(
179
179
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
180
180
  );
181
- else w(V);
181
+ else w(U);
182
182
  if (M.call(E, "key")) {
183
- V = n(v);
183
+ U = n(v);
184
184
  var le = Object.keys(E).filter(function(ie) {
185
185
  return ie !== "key";
186
186
  });
187
- F = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", U[V + F] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
187
+ F = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", K[U + F] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
188
188
  `A props object containing a "key" prop is being spread into JSX:
189
189
  let props = %s;
190
190
  <%s {...props} />
@@ -192,26 +192,26 @@ React keys must be passed directly to JSX without using spread:
192
192
  let props = %s;
193
193
  <%s key={someKey} {...props} />`,
194
194
  F,
195
- V,
195
+ U,
196
196
  le,
197
- V
198
- ), U[V + F] = !0);
197
+ U
198
+ ), K[U + F] = !0);
199
199
  }
200
- if (V = null, L !== void 0 && (e(L), V = "" + L), s(E) && (e(E.key), V = "" + E.key), "key" in E) {
200
+ if (U = null, L !== void 0 && (e(L), U = "" + L), s(E) && (e(E.key), U = "" + E.key), "key" in E) {
201
201
  L = {};
202
202
  for (var se in E)
203
203
  se !== "key" && (L[se] = E[se]);
204
204
  } else L = E;
205
- return V && a(
205
+ return U && a(
206
206
  L,
207
207
  typeof v == "function" ? v.displayName || v.name || "Unknown" : v
208
208
  ), f(
209
209
  v,
210
- V,
210
+ U,
211
211
  L,
212
212
  i(),
213
213
  B,
214
- K
214
+ V
215
215
  );
216
216
  }
217
217
  function w(v) {
@@ -231,7 +231,7 @@ React keys must be passed directly to JSX without using spread:
231
231
  var D, O = {}, $ = u.react_stack_bottom_frame.bind(
232
232
  u,
233
233
  l
234
- )(), Y = A(o(l)), U = {};
234
+ )(), Y = A(o(l)), K = {};
235
235
  It.Fragment = _, It.jsx = function(v, E, L) {
236
236
  var F = 1e4 > P.recentlyCreatedOwnerStacks++;
237
237
  return h(
@@ -257,7 +257,7 @@ React keys must be passed directly to JSX without using spread:
257
257
  }
258
258
  var Un;
259
259
  function Ko() {
260
- return Un || (Un = 1, process.env.NODE_ENV === "production" ? Yt.exports = Vo() : Yt.exports = Uo()), Yt.exports;
260
+ return Un || (Un = 1, process.env.NODE_ENV === "production" ? qt.exports = Vo() : qt.exports = Uo()), qt.exports;
261
261
  }
262
262
  var r = Ko();
263
263
  function Lt(n, t) {
@@ -276,7 +276,7 @@ function Yo(n, t) {
276
276
  return a - d;
277
277
  }), { left: e, center: o, right: i }) : { left: e, center: n, right: i };
278
278
  }
279
- function _n(n, t, e, o, i, l, s, a) {
279
+ function yn(n, t, e, o, i, l, s, a) {
280
280
  const d = {};
281
281
  if (!e) return d;
282
282
  const f = Yo(n, e);
@@ -292,13 +292,13 @@ function _n(n, t, e, o, i, l, s, a) {
292
292
  d[m.field] = w, w += u;
293
293
  }), d;
294
294
  }
295
- function Cn(n, t) {
295
+ function Sn(n, t) {
296
296
  return t ? t.top?.includes(n) ? "top" : t.bottom?.includes(n) ? "bottom" : null : null;
297
297
  }
298
298
  function qo(n, t) {
299
299
  const e = [], o = [], i = [];
300
300
  return t ? (n.forEach((l) => {
301
- const s = Cn(l.id, t);
301
+ const s = Sn(l.id, t);
302
302
  s === "top" ? e.push(l) : s === "bottom" ? i.push(l) : o.push(l);
303
303
  }), t.top && e.sort((l, s) => {
304
304
  const a = t.top.indexOf(l.id), d = t.top.indexOf(s.id);
@@ -308,7 +308,7 @@ function qo(n, t) {
308
308
  return a - d;
309
309
  }), { top: e, center: o, bottom: i }) : { top: e, center: n, bottom: i };
310
310
  }
311
- function ht(n) {
311
+ function pt(n) {
312
312
  if (n === void 0) return { type: "auto", value: 0 };
313
313
  if (typeof n == "number") return { type: "fixed", value: n };
314
314
  if (typeof n == "string") {
@@ -341,7 +341,7 @@ function Xo(n) {
341
341
  isLoading: R,
342
342
  pageSize: b
343
343
  } = n;
344
- return ue(() => {
344
+ return de(() => {
345
345
  const S = e ? o : i, j = S.map((z, Z) => {
346
346
  let ee = t;
347
347
  if (l.has(z.id)) {
@@ -355,38 +355,38 @@ function Xo(n) {
355
355
  Z === "left" ? T.push(z) : Z === "right" ? C.push(z) : P.push(z);
356
356
  });
357
357
  const W = (u ? 48 : 0) + (x ? 48 : 0) + (p ? 48 : 0), A = (z) => w[z.field] ?? z.width, D = T.reduce((z, Z) => {
358
- const ee = ht(A(Z));
358
+ const ee = pt(A(Z));
359
359
  return z + (ee.type === "fixed" ? ee.value : 100);
360
360
  }, 0), O = C.reduce((z, Z) => {
361
- const ee = ht(A(Z));
361
+ const ee = pt(A(Z));
362
362
  return z + (ee.type === "fixed" ? ee.value : 100);
363
363
  }, 0), $ = P.reduce((z, Z) => {
364
364
  if (!Object.prototype.hasOwnProperty.call(w, Z.field) && Z.flex && Z.flex > 0) {
365
- const he = Z.minWidth ?? 150, Pe = typeof Z.width == "number" ? Z.width : 150;
366
- return z + (he || Pe);
365
+ const fe = Z.minWidth ?? 150, Pe = typeof Z.width == "number" ? Z.width : 150;
366
+ return z + (fe || Pe);
367
367
  }
368
- const me = ht(A(Z));
368
+ const me = pt(A(Z));
369
369
  return me.type === "fixed" ? z + me.value : me.type === "percentage" ? z + 100 : z + (Z.minWidth ?? 150);
370
370
  }, 0), Y = Math.max(
371
371
  m - W - D - O,
372
372
  $
373
- ), U = [], v = [], E = [];
373
+ ), K = [], v = [], E = [];
374
374
  P.forEach((z) => {
375
- const Z = Object.prototype.hasOwnProperty.call(w, z.field), ee = ht(A(z));
375
+ const Z = Object.prototype.hasOwnProperty.call(w, z.field), ee = pt(A(z));
376
376
  if (!Z && z.flex && z.flex > 0) {
377
377
  E.push({ col: z, flex: z.flex });
378
378
  return;
379
379
  }
380
- ee.type === "fixed" ? U.push({ col: z, width: ee.value }) : ee.type === "percentage" ? v.push({ col: z, percentage: ee.value }) : E.push({ col: z, flex: 1 });
380
+ ee.type === "fixed" ? K.push({ col: z, width: ee.value }) : ee.type === "percentage" ? v.push({ col: z, percentage: ee.value }) : E.push({ col: z, flex: 1 });
381
381
  });
382
- const L = U.reduce((z, { width: Z }) => z + Z, 0);
382
+ const L = K.reduce((z, { width: Z }) => z + Z, 0);
383
383
  let F = Math.max(0, Y - L);
384
384
  const B = /* @__PURE__ */ new Map();
385
385
  v.forEach(({ col: z, percentage: Z }) => {
386
386
  const ee = Z / 100 * F;
387
387
  B.set(z.field, ee), F -= ee;
388
388
  }), F = Math.max(0, F);
389
- const K = /* @__PURE__ */ new Map(), V = E.map((z) => ({
389
+ const V = /* @__PURE__ */ new Map(), U = E.map((z) => ({
390
390
  ...z,
391
391
  minWidth: z.col.minWidth ?? 50,
392
392
  maxWidth: z.col.maxWidth ?? 1 / 0,
@@ -395,12 +395,12 @@ function Xo(n) {
395
395
  }));
396
396
  (() => {
397
397
  let z = 0;
398
- const Z = V.length * 2;
398
+ const Z = U.length * 2;
399
399
  for (; z < Z; ) {
400
400
  z++;
401
- const ee = V.filter((te) => !te.frozen);
401
+ const ee = U.filter((te) => !te.frozen);
402
402
  if (ee.length === 0) break;
403
- const me = ee.reduce((te, je) => te + je.flex, 0), he = V.reduce((te, je) => je.frozen ? te + je.computedWidth : te, 0), Pe = Math.max(0, F - he);
403
+ const me = ee.reduce((te, je) => te + je.flex, 0), fe = U.reduce((te, je) => je.frozen ? te + je.computedWidth : te, 0), Pe = Math.max(0, F - fe);
404
404
  if (me <= 0) {
405
405
  ee.forEach((te) => {
406
406
  te.computedWidth = te.minWidth, te.frozen = !0;
@@ -427,36 +427,36 @@ function Xo(n) {
427
427
  te.computedWidth = te.maxWidth, te.frozen = !0;
428
428
  }));
429
429
  }
430
- })(), V.forEach((z) => K.set(z.col.field, z.computedWidth));
430
+ })(), U.forEach((z) => V.set(z.col.field, z.computedWidth));
431
431
  const se = /* @__PURE__ */ new Map();
432
432
  P.forEach((z) => {
433
433
  let Z;
434
- if (K.has(z.field))
435
- Z = K.get(z.field);
434
+ if (V.has(z.field))
435
+ Z = V.get(z.field);
436
436
  else {
437
- const ee = U.find((he) => he.col.field === z.field), me = v.find((he) => he.col.field === z.field);
437
+ const ee = K.find((fe) => fe.col.field === z.field), me = v.find((fe) => fe.col.field === z.field);
438
438
  if (ee)
439
439
  Z = ee.width;
440
440
  else if (me) {
441
- const he = B.get(z.field) || 0;
442
- Z = Math.max(z.minWidth ?? 50, he || 100);
441
+ const fe = B.get(z.field) || 0;
442
+ Z = Math.max(z.minWidth ?? 50, fe || 100);
443
443
  } else
444
444
  Z = 100;
445
445
  }
446
446
  M.push(Z), se.set(z.field, Z);
447
447
  });
448
448
  const ie = P.map((z) => {
449
- const Z = V.find((ee) => ee.col.field === z.field);
449
+ const Z = U.find((ee) => ee.col.field === z.field);
450
450
  return {
451
451
  ...z,
452
452
  width: se.get(z.field) ?? (typeof z.width == "number" ? z.width : 100),
453
453
  flex: Z ? Z.flex : z.flex
454
454
  };
455
- }), I = 11, de = T.map((z, Z) => {
456
- const ee = ht(A(z));
455
+ }), I = 11, ce = T.map((z, Z) => {
456
+ const ee = pt(A(z));
457
457
  return { ...z, width: ee.type === "fixed" ? ee.value : 100, zIndex: I + Z };
458
458
  }), oe = 11, ae = C.map((z, Z) => {
459
- const ee = ht(A(z));
459
+ const ee = pt(A(z));
460
460
  return {
461
461
  ...z,
462
462
  width: ee.type === "fixed" ? ee.value : 100,
@@ -469,7 +469,7 @@ function Xo(n) {
469
469
  unpinnedRowsHeight: c,
470
470
  pinnedTopHeight: k,
471
471
  pinnedBottomHeight: N,
472
- leftPinnedCols: de,
472
+ leftPinnedCols: ce,
473
473
  rightPinnedCols: ae,
474
474
  unpinnedColsWithWidth: ie,
475
475
  unpinnedColWidths: M,
@@ -538,7 +538,7 @@ function Jo(n) {
538
538
  g.preventDefault();
539
539
  const O = e.find(($) => $.field === c);
540
540
  if (O && O.sortable !== !1) {
541
- const $ = f.find((U) => U.field === c);
541
+ const $ = f.find((K) => K.field === c);
542
542
  let Y = "asc";
543
543
  $ && (Y = $.sort === "asc" ? "desc" : null), h(c, Y);
544
544
  }
@@ -570,31 +570,31 @@ function Jo(n) {
570
570
  if (k && g.key !== "Tab") return;
571
571
  const N = y === "HEADER", T = N ? -1 : t.findIndex((O) => O.id === y), C = e.findIndex((O) => O.field === c);
572
572
  if (!N && T === -1 || C === -1) return;
573
- const P = (O, $, Y, U, v, E = !1) => {
574
- let L = O + Y, F = $ + U;
575
- return v && U !== 0 && (U > 0 && F >= e.length ? (F = 0, L++) : U < 0 && F < 0 && (F = e.length - 1, L--)), !v && (F < 0 || F >= e.length) || L < (E ? -1 : 0) || L >= t.length ? null : { r: L, c: F };
576
- }, M = (O, $, Y, U, v, E = !1) => {
573
+ const P = (O, $, Y, K, v, E = !1) => {
574
+ let L = O + Y, F = $ + K;
575
+ return v && K !== 0 && (K > 0 && F >= e.length ? (F = 0, L++) : K < 0 && F < 0 && (F = e.length - 1, L--)), !v && (F < 0 || F >= e.length) || L < (E ? -1 : 0) || L >= t.length ? null : { r: L, c: F };
576
+ }, M = (O, $, Y, K, v, E = !1) => {
577
577
  let L = O, F = $, B = 0;
578
- const K = t.length * e.length + e.length;
579
- for (; B < K; ) {
580
- if (B++, L += Y, F += U, U !== 0)
581
- U > 0 ? F >= e.length && (F = 0, L++) : F < 0 && (F = e.length - 1, L--);
578
+ const V = t.length * e.length + e.length;
579
+ for (; B < V; ) {
580
+ if (B++, L += Y, F += K, K !== 0)
581
+ K > 0 ? F >= e.length && (F = 0, L++) : F < 0 && (F = e.length - 1, L--);
582
582
  else if (F < 0 || F >= e.length) return null;
583
583
  if (L < -1 || L >= t.length) return null;
584
584
  if (L === -1) {
585
585
  if (!E) continue;
586
- const I = e[F], de = I.sortable !== !1;
587
- if (["__checkbox_col__"].includes(I.field) || de) return { r: L, c: F };
586
+ const I = e[F], ce = I.sortable !== !1;
587
+ if (["__checkbox_col__"].includes(I.field) || ce) return { r: L, c: F };
588
588
  continue;
589
589
  }
590
- const V = t[L], le = e[F], se = ["__checkbox_col__", "__expand_col__", "__reorder_col__"].includes(le.field);
590
+ const U = t[L], le = e[F], se = ["__checkbox_col__", "__expand_col__", "__reorder_col__"].includes(le.field);
591
591
  let ie = le.editable || se;
592
592
  if (w && !se)
593
593
  try {
594
594
  ie = w({
595
- row: V,
595
+ row: U,
596
596
  field: le.field,
597
- value: V[le.field],
597
+ value: U[le.field],
598
598
  colDef: le,
599
599
  rowIndex: L,
600
600
  colIndex: F
@@ -636,14 +636,14 @@ function Jo(n) {
636
636
  R(W === -1 ? { id: "HEADER", field: O.field } : { id: t[W].id, field: O.field });
637
637
  const $ = p.current;
638
638
  if ($) {
639
- const { cumulativeHeights: Y, pinnedTopHeight: U, columnMetrics: v } = x, { clientHeight: E, clientWidth: L, scrollTop: F, scrollLeft: B } = $, K = W <= 0 ? 0 : Y[W - 1], V = Y[W], le = F + U, se = F + E;
639
+ const { cumulativeHeights: Y, pinnedTopHeight: K, columnMetrics: v } = x, { clientHeight: E, clientWidth: L, scrollTop: F, scrollLeft: B } = $, V = W <= 0 ? 0 : Y[W - 1], U = Y[W], le = F + K, se = F + E;
640
640
  let ie = F;
641
- if (K < le ? ie = Math.max(0, K - U) : V > se && (ie = V - E), ie !== F && ($.scrollTop = ie), v) {
642
- const { leftPinnedWidth: I, rightPinnedWidth: de, unpinnedAccWidths: oe, unpinnedCols: ae, totalSpecialsWidth: q, pinnedSpecialsWidth: Q } = v, ge = ae.findIndex((z) => z.field === O.field);
641
+ if (V < le ? ie = Math.max(0, V - K) : U > se && (ie = U - E), ie !== F && ($.scrollTop = ie), v) {
642
+ const { leftPinnedWidth: I, rightPinnedWidth: ce, unpinnedAccWidths: oe, unpinnedCols: ae, totalSpecialsWidth: q, pinnedSpecialsWidth: Q } = v, ge = ae.findIndex((z) => z.field === O.field);
643
643
  if (ge !== -1) {
644
- const z = q + I + (ge > 0 ? oe[ge - 1] : 0), Z = q + I + oe[ge], ee = B + Q + I, me = B + L - de;
645
- let he = B;
646
- z < ee ? he = Math.max(0, z - Q - I) : Z > me && (he = Z - L + de), he !== B && ($.scrollLeft = he);
644
+ const z = q + I + (ge > 0 ? oe[ge - 1] : 0), Z = q + I + oe[ge], ee = B + Q + I, me = B + L - ce;
645
+ let fe = B;
646
+ z < ee ? fe = Math.max(0, z - Q - I) : Z > me && (fe = Z - L + ce), fe !== B && ($.scrollLeft = fe);
647
647
  }
648
648
  }
649
649
  }
@@ -699,13 +699,13 @@ function Zo(n) {
699
699
  P || W(I), d?.(I);
700
700
  }, [P, d]), [O, $] = ne(
701
701
  () => f ?? Qo
702
- ), Y = f ?? O, U = H((I) => {
702
+ ), Y = f ?? O, K = H((I) => {
703
703
  $(I), h?.(I);
704
704
  }, [h]), v = w !== void 0, [E, L] = ne(
705
705
  () => t?.pagination?.paginationModel ?? w ?? { page: 0, pageSize: 100 }
706
706
  ), F = v ? w : E, B = H((I) => {
707
707
  v || L(I), m?.(I);
708
- }, [v, m]), K = u !== void 0, [V, le] = ne([]), se = K ? u : V, ie = ue(() => new Set(se), [se]);
708
+ }, [v, m]), V = u !== void 0, [U, le] = ne([]), se = V ? u : U, ie = de(() => new Set(se), [se]);
709
709
  return {
710
710
  sortModel: R,
711
711
  isSortControlled: _,
@@ -717,12 +717,12 @@ function Zo(n) {
717
717
  pinnedColumns: A,
718
718
  handlePinnedColumnsChange: D,
719
719
  currentPivotModel: Y,
720
- handlePivotModelChange: U,
720
+ handlePivotModelChange: K,
721
721
  effectivePaginationModel: F,
722
722
  handlePaginationModelChange: B,
723
723
  rowSelectionModel: se,
724
724
  selectedRowIds: ie,
725
- isSelectionControlled: K,
725
+ isSelectionControlled: V,
726
726
  setInternalRowSelectionModel: le
727
727
  };
728
728
  }
@@ -780,7 +780,7 @@ function nr(n, t) {
780
780
  return Object.values(n).some((i) => i == null ? !1 : String(i).toLowerCase().includes(o));
781
781
  });
782
782
  }
783
- function yn(n, t) {
783
+ function kn(n, t) {
784
784
  const e = t.items ?? [], o = t.logicOperator ?? "and", i = ("quickFilterValues" in t ? t.quickFilterValues : void 0) ?? [];
785
785
  if (i.length > 0 && !nr(n, i))
786
786
  return !1;
@@ -798,7 +798,7 @@ function yn(n, t) {
798
798
  function or(n, t) {
799
799
  if (!t) return n;
800
800
  const { items: e = [], quickFilterValues: o = [] } = t;
801
- return e.length === 0 && (!o || o.length === 0) ? n : n.filter((i) => yn(i, t));
801
+ return e.length === 0 && (!o || o.length === 0) ? n : n.filter((i) => kn(i, t));
802
802
  }
803
803
  function rr(n) {
804
804
  switch (n) {
@@ -814,7 +814,7 @@ function rr(n) {
814
814
  return ["contains", "equals", "startsWith", "endsWith", "isEmpty", "isNotEmpty"];
815
815
  }
816
816
  }
817
- function Sn(n, t, e) {
817
+ function Rn(n, t, e) {
818
818
  if (n == null && t == null) return 0;
819
819
  if (n == null) return e === "asc" ? 1 : -1;
820
820
  if (t == null) return e === "asc" ? -1 : 1;
@@ -831,7 +831,7 @@ function ir(n, t) {
831
831
  const e = [...n];
832
832
  return e.sort((o, i) => {
833
833
  for (const l of t) {
834
- const s = o[l.field], a = i[l.field], d = Sn(s, a, l.sort);
834
+ const s = o[l.field], a = i[l.field], d = Rn(s, a, l.sort);
835
835
  if (d !== 0)
836
836
  return d;
837
837
  }
@@ -853,11 +853,11 @@ function lr(n) {
853
853
  pinnedRows: w,
854
854
  isLoading: m,
855
855
  pageSize: u
856
- } = n, x = ue(() => e ? e.getVisibleRows() || [] : o === "server" && l ? t : or(t, i), [t, i, e, o, l]), { top: p, center: _, bottom: R } = ue(() => e ? { top: [], center: x, bottom: [] } : qo(x, w), [x, w, e]), b = ue(() => e || a === "server" && l ? _ : ir(_, s), [_, s, e, a, l]), S = ue(() => {
856
+ } = n, x = de(() => e ? e.getVisibleRows() || [] : o === "server" && l ? t : or(t, i), [t, i, e, o, l]), { top: p, center: _, bottom: R } = de(() => e ? { top: [], center: x, bottom: [] } : qo(x, w), [x, w, e]), b = de(() => e || a === "server" && l ? _ : ir(_, s), [_, s, e, a, l]), S = de(() => {
857
857
  if (!d || f === "server" && l) return b;
858
858
  const g = h.page * h.pageSize;
859
859
  return b.slice(g, g + h.pageSize);
860
- }, [b, d, h.page, h.pageSize, f, l]), j = ue(() => {
860
+ }, [b, d, h.page, h.pageSize, f, l]), j = de(() => {
861
861
  if (e) return _;
862
862
  const g = d ? S : b, y = [...p, ...g, ...R];
863
863
  if (f === "infinite" && m && y.length > 0) {
@@ -904,7 +904,7 @@ function ar(n) {
904
904
  pinCheckboxColumn: h,
905
905
  pinExpandColumn: w
906
906
  } = n;
907
- return ue(() => {
907
+ return de(() => {
908
908
  const {
909
909
  unpinnedAccWidths: m,
910
910
  unpinnedColsWithWidth: u,
@@ -935,28 +935,28 @@ function ar(n) {
935
935
  }
936
936
  O = Math.min(u.length - 1, oe + M);
937
937
  }
938
- const U = D > 0 ? m[D - 1] : 0, v = S - m[O], E = [
938
+ const K = D > 0 ? m[D - 1] : 0, v = S - m[O], E = [
939
939
  ...x,
940
- ...U > 0 ? [{ field: "__spacer_left__", width: U, isSpacer: !0 }] : [],
940
+ ...K > 0 ? [{ field: "__spacer_left__", width: K, isSpacer: !0 }] : [],
941
941
  ...u.slice(D, O + 1),
942
942
  ...v > 0 ? [{ field: "__spacer_right__", width: v, isSpacer: !0 }] : [],
943
943
  ...p
944
- ], F = C > 0 && _ > C ? 16 : 0, B = y + k + c + F + 2, K = 5;
945
- let V = 0, le = T - 1, se = 0, ie = 0, I = g.length - 1;
944
+ ], F = C > 0 && _ > C ? 16 : 0, B = y + k + c + F + 2, V = 5;
945
+ let U = 0, le = T - 1, se = 0, ie = 0, I = g.length - 1;
946
946
  for (; ie <= I; ) {
947
947
  const oe = ie + I >>> 1;
948
948
  g[oe] < e ? ie = oe + 1 : I = oe - 1;
949
949
  }
950
- V = Math.max(0, ie - K), se = V > 0 ? g[V - 1] : 0;
951
- for (let oe = V; oe < g.length; oe++)
950
+ U = Math.max(0, ie - V), se = U > 0 ? g[U - 1] : 0;
951
+ for (let oe = U; oe < g.length; oe++)
952
952
  if (g[oe] >= e + P) {
953
- le = Math.min(T - 1, oe + K);
953
+ le = Math.min(T - 1, oe + V);
954
954
  break;
955
955
  }
956
- const de = (a ? 48 : 0) + (d && w ? 48 : 0) + (f && h ? 48 : 0);
956
+ const ce = (a ? 48 : 0) + (d && w ? 48 : 0) + (f && h ? 48 : 0);
957
957
  return {
958
958
  renderContext: {
959
- firstRowIndex: V,
959
+ firstRowIndex: U,
960
960
  lastRowIndex: le,
961
961
  firstColumnIndex: D,
962
962
  lastColumnIndex: O
@@ -976,7 +976,7 @@ function ar(n) {
976
976
  unpinnedAccWidths: m,
977
977
  unpinnedCols: u,
978
978
  totalSpecialsWidth: j,
979
- pinnedSpecialsWidth: de
979
+ pinnedSpecialsWidth: ce
980
980
  }
981
981
  };
982
982
  }, [
@@ -1131,19 +1131,19 @@ function dr(n) {
1131
1131
  rowReordering: u,
1132
1132
  initialState: x,
1133
1133
  setColumns: p
1134
- } = n, _ = ue(() => e ? t.map((C, P) => P === 0 ? {
1134
+ } = n, _ = de(() => e ? t.map((C, P) => P === 0 ? {
1135
1135
  ...C,
1136
1136
  renderCell: (M) => {
1137
- const W = M.rowMeta, A = W?.treeDepth ?? 0, D = !!W?.hasChildren, O = !!W?.isExpanded, $ = W?.groupingField, Y = W?.groupingValue, U = W?.descendantCount, v = !!W?.isGroupRow;
1137
+ const W = M.rowMeta, A = W?.treeDepth ?? 0, D = !!W?.hasChildren, O = !!W?.isExpanded, $ = W?.groupingField, Y = W?.groupingValue, K = W?.descendantCount, v = !!W?.isGroupRow;
1138
1138
  let E = C.renderCell ? C.renderCell(M) : M.value;
1139
1139
  if (i && D && v && (E = /* @__PURE__ */ r.jsxs("div", { className: "ogx__group-cell-content", children: [
1140
1140
  M.value,
1141
- U !== void 0 && U > 0 ? ` (${U})` : ""
1141
+ K !== void 0 && K > 0 ? ` (${K})` : ""
1142
1142
  ] })), o && D && $) {
1143
1143
  const L = W?.groupLabel ?? `${$}: ${String(Y)}`;
1144
1144
  E = /* @__PURE__ */ r.jsxs("div", { className: "ogx__group-cell-content", children: [
1145
1145
  L,
1146
- U !== void 0 ? ` (${U})` : ""
1146
+ K !== void 0 ? ` (${K})` : ""
1147
1147
  ] });
1148
1148
  }
1149
1149
  return /* @__PURE__ */ r.jsxs("div", { style: { display: "flex", alignItems: "center", paddingLeft: A * 24, width: "100%", height: "100%" }, children: [
@@ -1189,14 +1189,14 @@ function dr(n) {
1189
1189
  }, [t, p]), re(() => {
1190
1190
  h && g(t.map((C) => C.field));
1191
1191
  }, [h, t]);
1192
- const c = ue(() => {
1192
+ const c = de(() => {
1193
1193
  if (f) return _;
1194
1194
  const C = new Map(y.map((P, M) => [P, M]));
1195
1195
  return [..._].sort((P, M) => {
1196
1196
  const W = C.get(P.field) ?? _.indexOf(P), A = C.get(M.field) ?? _.indexOf(M);
1197
1197
  return W - A;
1198
1198
  });
1199
- }, [_, y, f]), k = ue(
1199
+ }, [_, y, f]), k = de(
1200
1200
  () => c.filter((C) => s[C.field] !== !1),
1201
1201
  [c, s]
1202
1202
  ), N = sr({
@@ -1206,7 +1206,7 @@ function dr(n) {
1206
1206
  W.splice(M, 0, A), a || g(W), d?.(C);
1207
1207
  }, [y, a, d]),
1208
1208
  disableColumnReorder: f
1209
- }), T = ue(() => {
1209
+ }), T = de(() => {
1210
1210
  const C = [];
1211
1211
  return u && C.push({ field: "__reorder_col__" }), m && C.push({ field: "__expand_col__" }), w && C.push({ field: "__checkbox_col__" }), [...C, ...c];
1212
1212
  }, [c, w, m, u]);
@@ -1231,7 +1231,7 @@ function cr(n) {
1231
1231
  sortedUnpinnedRows: l,
1232
1232
  pagination: s
1233
1233
  } = n;
1234
- return ue(() => {
1234
+ return de(() => {
1235
1235
  const { firstRowIndex: a, lastRowIndex: d } = t, f = s ? i : l, h = e.length, w = e.map((b, S) => ({ row: b, rowIndex: S })), m = o.map((b, S) => ({
1236
1236
  row: b,
1237
1237
  rowIndex: h + f.length + S
@@ -1329,10 +1329,10 @@ function hr(n) {
1329
1329
  filterModel: s,
1330
1330
  sortModel: a,
1331
1331
  serverAggregationResults: d
1332
- } = n, f = ue(() => {
1332
+ } = n, f = de(() => {
1333
1333
  const j = /* @__PURE__ */ new Map();
1334
1334
  return (e ?? []).forEach((g) => j.set(g.field, g)), j;
1335
- }, [e]), h = ue(() => {
1335
+ }, [e]), h = de(() => {
1336
1336
  if (i || Object.keys(o).length === 0) return {};
1337
1337
  const j = {};
1338
1338
  for (const [g, y] of Object.entries(o)) {
@@ -1368,7 +1368,7 @@ function hr(n) {
1368
1368
  }, [l, o, s, a]);
1369
1369
  return re(() => {
1370
1370
  i && l?.getAggregations && !d && b();
1371
- }, [b, i, l, d]), { aggregationResult: ue(() => i ? d && Object.keys(d).length > 0 ? d : w : h, [i, h, d, w]), isLoading: u, error: p };
1371
+ }, [b, i, l, d]), { aggregationResult: de(() => i ? d && Object.keys(d).length > 0 ? d : w : h, [i, h, d, w]), isLoading: u, error: p };
1372
1372
  }
1373
1373
  function pr({
1374
1374
  columns: n,
@@ -1381,8 +1381,8 @@ function pr({
1381
1381
  rowReordering: a,
1382
1382
  pinnedColumns: d
1383
1383
  }) {
1384
- const f = ue(
1385
- () => _n(
1384
+ const f = de(
1385
+ () => yn(
1386
1386
  n,
1387
1387
  o,
1388
1388
  d,
@@ -1467,7 +1467,7 @@ function mr({ error: n }) {
1467
1467
  )
1468
1468
  ] });
1469
1469
  }
1470
- const Qt = ({
1470
+ const Zt = ({
1471
1471
  indeterminate: n = !1,
1472
1472
  label: t,
1473
1473
  className: e = "",
@@ -1539,10 +1539,10 @@ function wr(n) {
1539
1539
  }
1540
1540
  );
1541
1541
  }
1542
- function pt() {
1542
+ function xt() {
1543
1543
  return /* @__PURE__ */ r.jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "currentColor", children: /* @__PURE__ */ r.jsx("circle", { cx: "4", cy: "4", r: "4" }) });
1544
1544
  }
1545
- function xt() {
1545
+ function mt() {
1546
1546
  return /* @__PURE__ */ r.jsx("svg", { width: "8", height: "8", viewBox: "0 0 8 8", fill: "none", stroke: "currentColor", strokeWidth: "1.5", children: /* @__PURE__ */ r.jsx("circle", { cx: "4", cy: "4", r: "3" }) });
1547
1547
  }
1548
1548
  function vr() {
@@ -1636,7 +1636,7 @@ function jr({ colDef: n, sortModel: t, onSort: e, onHide: o, onPin: i, pinnedCol
1636
1636
  role: "menuitemradio",
1637
1637
  "aria-checked": p === "asc",
1638
1638
  children: [
1639
- /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: p === "asc" ? /* @__PURE__ */ r.jsx(pt, {}) : /* @__PURE__ */ r.jsx(xt, {}) }),
1639
+ /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: p === "asc" ? /* @__PURE__ */ r.jsx(xt, {}) : /* @__PURE__ */ r.jsx(mt, {}) }),
1640
1640
  /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(br, {}) }),
1641
1641
  "Sort Ascending"
1642
1642
  ]
@@ -1650,7 +1650,7 @@ function jr({ colDef: n, sortModel: t, onSort: e, onHide: o, onPin: i, pinnedCol
1650
1650
  role: "menuitemradio",
1651
1651
  "aria-checked": p === "desc",
1652
1652
  children: [
1653
- /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: p === "desc" ? /* @__PURE__ */ r.jsx(pt, {}) : /* @__PURE__ */ r.jsx(xt, {}) }),
1653
+ /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: p === "desc" ? /* @__PURE__ */ r.jsx(xt, {}) : /* @__PURE__ */ r.jsx(mt, {}) }),
1654
1654
  /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(_r, {}) }),
1655
1655
  "Sort Descending"
1656
1656
  ]
@@ -1664,7 +1664,7 @@ function jr({ colDef: n, sortModel: t, onSort: e, onHide: o, onPin: i, pinnedCol
1664
1664
  role: "menuitemradio",
1665
1665
  "aria-checked": _,
1666
1666
  children: [
1667
- /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: _ ? /* @__PURE__ */ r.jsx(pt, {}) : /* @__PURE__ */ r.jsx(xt, {}) }),
1667
+ /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: _ ? /* @__PURE__ */ r.jsx(xt, {}) : /* @__PURE__ */ r.jsx(mt, {}) }),
1668
1668
  /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(Cr, {}) }),
1669
1669
  "Unsort"
1670
1670
  ]
@@ -1682,7 +1682,7 @@ function jr({ colDef: n, sortModel: t, onSort: e, onHide: o, onPin: i, pinnedCol
1682
1682
  "aria-checked": R,
1683
1683
  "aria-label": "Pin to left",
1684
1684
  children: [
1685
- /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: R ? /* @__PURE__ */ r.jsx(pt, {}) : /* @__PURE__ */ r.jsx(xt, {}) }),
1685
+ /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: R ? /* @__PURE__ */ r.jsx(xt, {}) : /* @__PURE__ */ r.jsx(mt, {}) }),
1686
1686
  /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(Sr, {}) }),
1687
1687
  "Pin to Left"
1688
1688
  ]
@@ -1697,7 +1697,7 @@ function jr({ colDef: n, sortModel: t, onSort: e, onHide: o, onPin: i, pinnedCol
1697
1697
  "aria-checked": b,
1698
1698
  "aria-label": "Pin to right",
1699
1699
  children: [
1700
- /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: b ? /* @__PURE__ */ r.jsx(pt, {}) : /* @__PURE__ */ r.jsx(xt, {}) }),
1700
+ /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: b ? /* @__PURE__ */ r.jsx(xt, {}) : /* @__PURE__ */ r.jsx(mt, {}) }),
1701
1701
  /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(kr, {}) }),
1702
1702
  "Pin to Right"
1703
1703
  ]
@@ -1712,7 +1712,7 @@ function jr({ colDef: n, sortModel: t, onSort: e, onHide: o, onPin: i, pinnedCol
1712
1712
  "aria-checked": S,
1713
1713
  "aria-label": "Unpin column",
1714
1714
  children: [
1715
- /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: S ? /* @__PURE__ */ r.jsx(pt, {}) : /* @__PURE__ */ r.jsx(xt, {}) }),
1715
+ /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__indicator", "aria-hidden": "true", children: S ? /* @__PURE__ */ r.jsx(xt, {}) : /* @__PURE__ */ r.jsx(mt, {}) }),
1716
1716
  /* @__PURE__ */ r.jsx("span", { className: "ogx-menu-item__icon", "aria-hidden": "true", children: /* @__PURE__ */ r.jsx(Rr, {}) }),
1717
1717
  "Unpin"
1718
1718
  ]
@@ -1821,9 +1821,9 @@ function Ir(n) {
1821
1821
  onHideColumn: P,
1822
1822
  onPinColumn: M,
1823
1823
  onManageColumns: W
1824
- } = n, A = Zt(), D = xe.useRef({}), [O, $] = xe.useState(null), Y = (I) => (de) => {
1825
- de.stopPropagation(), $({ colDef: I, anchorEl: de.currentTarget });
1826
- }, U = () => {
1824
+ } = n, A = en(), D = xe.useRef({}), [O, $] = xe.useState(null), Y = (I) => (ce) => {
1825
+ ce.stopPropagation(), $({ colDef: I, anchorEl: ce.currentTarget });
1826
+ }, K = () => {
1827
1827
  $(null);
1828
1828
  };
1829
1829
  xe.useLayoutEffect(() => {
@@ -1832,17 +1832,17 @@ function Ir(n) {
1832
1832
  I && I.focus();
1833
1833
  }
1834
1834
  }, [k]);
1835
- const v = (I) => (de) => {
1835
+ const v = (I) => (ce) => {
1836
1836
  if (I.sortable === !1) return;
1837
1837
  const oe = f.find((q) => q.field === I.field);
1838
1838
  let ae = "asc";
1839
- oe && (oe.sort === "asc" ? ae = "desc" : ae = null), (de.shiftKey || C) && T ? T(I.field, ae) : d && d(I.field, ae);
1839
+ oe && (oe.sort === "asc" ? ae = "desc" : ae = null), (ce.shiftKey || C) && T ? T(I.field, ae) : d && d(I.field, ae);
1840
1840
  }, E = (I) => {
1841
- const de = f.find((ae) => ae.field === I);
1842
- if (!de) return null;
1843
- const oe = f.length > 1 ? f.indexOf(de) + 1 : null;
1844
- return /* @__PURE__ */ r.jsx("span", { className: `ogx__sort-icon ogx__sort-icon--${de.sort}`, "aria-hidden": "true", children: oe !== null && /* @__PURE__ */ r.jsx("span", { className: "ogx__sort-badge", children: oe }) });
1845
- }, L = xe.useMemo(() => _n(
1841
+ const ce = f.find((ae) => ae.field === I);
1842
+ if (!ce) return null;
1843
+ const oe = f.length > 1 ? f.indexOf(ce) + 1 : null;
1844
+ return /* @__PURE__ */ r.jsx("span", { className: `ogx__sort-icon ogx__sort-icon--${ce.sort}`, "aria-hidden": "true", children: oe !== null && /* @__PURE__ */ r.jsx("span", { className: "ogx__sort-badge", children: oe }) });
1845
+ }, L = xe.useMemo(() => yn(
1846
1846
  t,
1847
1847
  w,
1848
1848
  m,
@@ -1851,7 +1851,7 @@ function Ir(n) {
1851
1851
  u,
1852
1852
  p,
1853
1853
  _
1854
- ), [t, w, m, i, x, u, p, _]), F = o ? Mr(o) : 0, K = (e ?? t).filter((I) => !I.isSpacer).map((I) => ({
1854
+ ), [t, w, m, i, x, u, p, _]), F = o ? Mr(o) : 0, V = (e ?? t).filter((I) => !I.isSpacer).map((I) => ({
1855
1855
  field: I.field,
1856
1856
  width: w[I.field] ?? I.width ?? 100
1857
1857
  })), ie = (_ ? 48 : 0) + (u ? 48 : 0) + (i ? 48 : 0);
@@ -1859,11 +1859,11 @@ function Ir(n) {
1859
1859
  // Outer sticky wrapper — both group rows AND column header row live here
1860
1860
  // so they ALL stay sticky together and scroll horizontally as one unit.
1861
1861
  /* @__PURE__ */ r.jsxs("div", { className: "ogx__header-wrap", children: [
1862
- F > 0 && Array.from({ length: F }, (I, de) => {
1862
+ F > 0 && Array.from({ length: F }, (I, ce) => {
1863
1863
  const oe = Pr(
1864
1864
  o,
1865
- K,
1866
- de
1865
+ V,
1866
+ ce
1867
1867
  );
1868
1868
  return /* @__PURE__ */ r.jsxs("div", { className: "ogx-col-group-row", role: "row", children: [
1869
1869
  ie > 0 && /* @__PURE__ */ r.jsx(
@@ -1885,7 +1885,7 @@ function Ir(n) {
1885
1885
  },
1886
1886
  ae.key
1887
1887
  ))
1888
- ] }, `ogx-grp-${de}`);
1888
+ ] }, `ogx-grp-${ce}`);
1889
1889
  }),
1890
1890
  /* @__PURE__ */ r.jsxs("div", { className: "ogx__header", role: "row", children: [
1891
1891
  _ && /* @__PURE__ */ r.jsx(
@@ -1929,7 +1929,7 @@ function Ir(n) {
1929
1929
  left: x ? (_ ? 48 : 0) + (u && p ? 48 : 0) : void 0
1930
1930
  },
1931
1931
  children: /* @__PURE__ */ r.jsx(
1932
- Qt,
1932
+ Zt,
1933
1933
  {
1934
1934
  id: A,
1935
1935
  name: A,
@@ -1946,7 +1946,7 @@ function Ir(n) {
1946
1946
  )
1947
1947
  }
1948
1948
  ),
1949
- t.map((I, de) => {
1949
+ t.map((I, ce) => {
1950
1950
  if (I.isSpacer)
1951
1951
  return /* @__PURE__ */ r.jsx(
1952
1952
  "div",
@@ -1967,7 +1967,7 @@ function Ir(n) {
1967
1967
  Z && "ogx__header-cell--drag-over",
1968
1968
  k?.id === "HEADER" && k.field === I.field && "ogx__header-cell--focused",
1969
1969
  I.headerClassName
1970
- ].filter(Boolean).join(" "), me = w[I.field] ?? I.width ?? 100, he = {
1970
+ ].filter(Boolean).join(" "), me = w[I.field] ?? I.width ?? 100, fe = {
1971
1971
  width: me,
1972
1972
  minWidth: I.minWidth,
1973
1973
  maxWidth: I.maxWidth,
@@ -1981,9 +1981,9 @@ function Ir(n) {
1981
1981
  };
1982
1982
  if (ge && Q) {
1983
1983
  const te = L[I.field];
1984
- Q === "left" ? he.left = te : he.right = te;
1984
+ Q === "left" ? fe.left = te : fe.right = te;
1985
1985
  }
1986
- const Pe = I.renderHeader ? I.renderHeader({ field: I.field, colDef: I, colIndex: de }) : I.headerName || I.field, We = (te) => {
1986
+ const Pe = I.renderHeader ? I.renderHeader({ field: I.field, colDef: I, colIndex: ce }) : I.headerName || I.field, We = (te) => {
1987
1987
  if (te.target.closest(".ogx-column-resize-handle")) {
1988
1988
  te.stopPropagation();
1989
1989
  return;
@@ -1994,7 +1994,7 @@ function Ir(n) {
1994
1994
  "div",
1995
1995
  {
1996
1996
  className: ee,
1997
- style: he,
1997
+ style: fe,
1998
1998
  title: I.description,
1999
1999
  onClick: We,
2000
2000
  role: "columnheader",
@@ -2004,7 +2004,7 @@ function Ir(n) {
2004
2004
  onDragEnd: y,
2005
2005
  onDrop: Ge,
2006
2006
  "aria-sort": oe ? ae ? f.find((te) => te.field === I.field)?.sort === "asc" ? "ascending" : "descending" : "none" : void 0,
2007
- "aria-colindex": de + 1 + (i ? 1 : 0),
2007
+ "aria-colindex": ce + 1 + (i ? 1 : 0),
2008
2008
  "data-field": I.field,
2009
2009
  tabIndex: -1,
2010
2010
  ref: (te) => {
@@ -2055,7 +2055,7 @@ function Ir(n) {
2055
2055
  onPin: M,
2056
2056
  pinnedColumns: m,
2057
2057
  onManageColumns: W,
2058
- onClose: U,
2058
+ onClose: K,
2059
2059
  anchorEl: O.anchorEl
2060
2060
  }
2061
2061
  )
@@ -2063,7 +2063,7 @@ function Ir(n) {
2063
2063
  ] })
2064
2064
  );
2065
2065
  }
2066
- const qt = ({
2066
+ const Xt = ({
2067
2067
  variant: n = "text",
2068
2068
  size: t = "medium",
2069
2069
  color: e = "default",
@@ -2091,7 +2091,7 @@ const qt = ({
2091
2091
  );
2092
2092
  };
2093
2093
  function to(n) {
2094
- const t = Zt(), {
2094
+ const t = en(), {
2095
2095
  page: e,
2096
2096
  pageSize: o,
2097
2097
  rowCount: i,
@@ -2131,7 +2131,7 @@ function to(n) {
2131
2131
  /* @__PURE__ */ r.jsx("div", { className: "ogx-pagination__info", "aria-live": "polite", "aria-atomic": "true", children: R }),
2132
2132
  /* @__PURE__ */ r.jsxs("div", { className: "ogx-pagination__actions", children: [
2133
2133
  d && /* @__PURE__ */ r.jsx(
2134
- qt,
2134
+ Xt,
2135
2135
  {
2136
2136
  variant: "text",
2137
2137
  size: "small",
@@ -2143,7 +2143,7 @@ function to(n) {
2143
2143
  }
2144
2144
  ),
2145
2145
  /* @__PURE__ */ r.jsx(
2146
- qt,
2146
+ Xt,
2147
2147
  {
2148
2148
  variant: "text",
2149
2149
  size: "small",
@@ -2156,7 +2156,7 @@ function to(n) {
2156
2156
  ),
2157
2157
  /* @__PURE__ */ r.jsx("div", { className: "ogx-pagination__page-info", "aria-current": "page", children: b }),
2158
2158
  /* @__PURE__ */ r.jsx(
2159
- qt,
2159
+ Xt,
2160
2160
  {
2161
2161
  variant: "text",
2162
2162
  size: "small",
@@ -2168,7 +2168,7 @@ function to(n) {
2168
2168
  }
2169
2169
  ),
2170
2170
  f && /* @__PURE__ */ r.jsx(
2171
- qt,
2171
+ Xt,
2172
2172
  {
2173
2173
  variant: "text",
2174
2174
  size: "small",
@@ -2476,7 +2476,7 @@ function Wr(n) {
2476
2476
  filterModel: s,
2477
2477
  sortModel: a,
2478
2478
  onRowExpansionChange: d
2479
- } = n, { treeNodes: f, rootIds: h, groupingRows: w } = ue(() => {
2479
+ } = n, { treeNodes: f, rootIds: h, groupingRows: w } = de(() => {
2480
2480
  if (!i || !o)
2481
2481
  return {
2482
2482
  treeNodes: /* @__PURE__ */ new Map(),
@@ -2516,12 +2516,12 @@ function Wr(n) {
2516
2516
  children: [],
2517
2517
  label: Y
2518
2518
  }), k.set(O, $);
2519
- const U = {
2519
+ const K = {
2520
2520
  id: $,
2521
2521
  name: Y,
2522
2522
  _isGroupRow: !0
2523
2523
  };
2524
- c.push(U), D.length === 1 && y.push($), M(D);
2524
+ c.push(K), D.length === 1 && y.push($), M(D);
2525
2525
  }
2526
2526
  return $;
2527
2527
  }, W = M(P);
@@ -2542,7 +2542,7 @@ function Wr(n) {
2542
2542
  }
2543
2543
  }
2544
2544
  }), { treeNodes: g, rootIds: y, groupingRows: c };
2545
- }, [t, o, i, e]), m = ue(() => {
2545
+ }, [t, o, i, e]), m = de(() => {
2546
2546
  if (!i) return /* @__PURE__ */ new Set();
2547
2547
  const g = /* @__PURE__ */ new Set();
2548
2548
  return f.forEach((y) => {
@@ -2565,7 +2565,7 @@ function Wr(n) {
2565
2565
  if (!i) return null;
2566
2566
  const g = /* @__PURE__ */ new Map();
2567
2567
  t.forEach((M) => g.set(e(M), M)), w.forEach((M) => g.set(M.id, M));
2568
- const y = (M) => yn(M, s), c = /* @__PURE__ */ new Map(), k = (M) => {
2568
+ const y = (M) => kn(M, s), c = /* @__PURE__ */ new Map(), k = (M) => {
2569
2569
  if (c.has(M)) return c.get(M);
2570
2570
  const W = g.get(M);
2571
2571
  if (!W) return !1;
@@ -2578,8 +2578,8 @@ function Wr(n) {
2578
2578
  const A = g.get(M), D = g.get(W);
2579
2579
  if (!A || !D) return 0;
2580
2580
  for (const O of a) {
2581
- const $ = A[O.field], Y = D[O.field], U = Sn($, Y, O.sort);
2582
- if (U !== 0) return U;
2581
+ const $ = A[O.field], Y = D[O.field], K = Rn($, Y, O.sort);
2582
+ if (K !== 0) return K;
2583
2583
  }
2584
2584
  return 0;
2585
2585
  }, T = [], C = /* @__PURE__ */ new Set(), P = (M) => {
@@ -2610,7 +2610,7 @@ function Wr(n) {
2610
2610
  y.unshift(k.groupingKey), c = k.parentId;
2611
2611
  }
2612
2612
  return y;
2613
- }, [f]), j = ue(() => {
2613
+ }, [f]), j = de(() => {
2614
2614
  const g = /* @__PURE__ */ new Map(), y = new Set(w.map((c) => c.id));
2615
2615
  return f.forEach((c, k) => {
2616
2616
  g.set(k, {
@@ -2622,7 +2622,7 @@ function Wr(n) {
2622
2622
  });
2623
2623
  }), g;
2624
2624
  }, [f, w, u]);
2625
- return ue(() => ({
2625
+ return de(() => ({
2626
2626
  treeNodes: f,
2627
2627
  groupingRows: w,
2628
2628
  toggleExpansion: p,
@@ -2645,10 +2645,10 @@ function Br(n) {
2645
2645
  filterModel: a,
2646
2646
  sortModel: d,
2647
2647
  getAggregationPosition: f = Ar
2648
- } = n, h = ue(() => {
2648
+ } = n, h = de(() => {
2649
2649
  const g = /* @__PURE__ */ new Map();
2650
2650
  return (o ?? []).forEach((y) => g.set(y.field, y)), g;
2651
- }, [o]), [w, m] = ne(/* @__PURE__ */ new Set()), { treeNodes: u, rootIds: x, groupingRows: p } = ue(() => {
2651
+ }, [o]), [w, m] = ne(/* @__PURE__ */ new Set()), { treeNodes: u, rootIds: x, groupingRows: p } = de(() => {
2652
2652
  const g = /* @__PURE__ */ new Map(), y = /* @__PURE__ */ new Map(), c = [];
2653
2653
  if (i.length === 0)
2654
2654
  return { treeNodes: g, rootIds: c, groupingRows: y };
@@ -2669,8 +2669,8 @@ function Br(n) {
2669
2669
  return N(C, P + 1, M);
2670
2670
  const D = /* @__PURE__ */ new Map();
2671
2671
  C.forEach(($) => {
2672
- const Y = $[W], U = String(Y);
2673
- D.has(U) || D.set(U, []), D.get(U).push($);
2672
+ const Y = $[W], K = String(Y);
2673
+ D.has(K) || D.set(K, []), D.get(K).push($);
2674
2674
  });
2675
2675
  const O = [];
2676
2676
  return D.forEach(($, Y) => {
@@ -2680,13 +2680,13 @@ function Br(n) {
2680
2680
  l && Object.entries(l).forEach(([le, se]) => {
2681
2681
  const ie = $.map((I) => I[le]);
2682
2682
  if (se === "sum")
2683
- L[le] = ie.reduce((I, de) => I + (Number(de) || 0), 0);
2683
+ L[le] = ie.reduce((I, ce) => I + (Number(ce) || 0), 0);
2684
2684
  else if (se === "min")
2685
2685
  L[le] = Math.min(...ie.map((I) => Number(I) || 0));
2686
2686
  else if (se === "max")
2687
2687
  L[le] = Math.max(...ie.map((I) => Number(I) || 0));
2688
2688
  else if (se === "avg") {
2689
- const I = ie.reduce((de, oe) => de + (Number(oe) || 0), 0);
2689
+ const I = ie.reduce((ce, oe) => ce + (Number(oe) || 0), 0);
2690
2690
  L[le] = ie.length ? I / ie.length : 0;
2691
2691
  } else se === "count" && (L[le] = ie.length);
2692
2692
  });
@@ -2709,10 +2709,10 @@ function Br(n) {
2709
2709
  label: A?.groupingValueFormatter ? A.groupingValueFormatter({ field: W, value: v }) : `${W}: ${String(v)}`
2710
2710
  };
2711
2711
  B.aggregationPosition = f(B), g.set(E, B);
2712
- const K = N($, P + 1, E);
2713
- g.get(E).children = K;
2714
- const V = $.length;
2715
- g.get(E).descendantCount = V;
2712
+ const V = N($, P + 1, E);
2713
+ g.get(E).children = V;
2714
+ const U = $.length;
2715
+ g.get(E).descendantCount = U;
2716
2716
  }), O;
2717
2717
  }, T = N(t, 0, null);
2718
2718
  return c.push(...T), { treeNodes: g, rootIds: c, groupingRows: y };
@@ -2745,7 +2745,7 @@ function Br(n) {
2745
2745
  if (!P) return !1;
2746
2746
  if (!P.children || P.children.length === 0) {
2747
2747
  const M = c.get(C);
2748
- return !(!M || a && !yn(M, a));
2748
+ return !(!M || a && !kn(M, a));
2749
2749
  }
2750
2750
  return P.children.some((M) => k(M));
2751
2751
  }, N = (C) => {
@@ -2754,8 +2754,8 @@ function Br(n) {
2754
2754
  const A = p.get(M) || c.get(M), D = p.get(W) || c.get(W);
2755
2755
  if (!A || !D) return 0;
2756
2756
  for (const O of d) {
2757
- const $ = A[O.field], Y = D[O.field], U = Sn($, Y, O.sort);
2758
- if (U !== 0) return U;
2757
+ const $ = A[O.field], Y = D[O.field], K = Rn($, Y, O.sort);
2758
+ if (K !== 0) return K;
2759
2759
  }
2760
2760
  return 0;
2761
2761
  }), P.forEach((M) => {
@@ -2777,7 +2777,7 @@ function Br(n) {
2777
2777
  });
2778
2778
  }, T = w;
2779
2779
  return N(x), g;
2780
- }, [t, e, u, x, p, a, d, w, i]), S = H((g) => u.get(g), [u]), j = ue(() => {
2780
+ }, [t, e, u, x, p, a, d, w, i]), S = H((g) => u.get(g), [u]), j = de(() => {
2781
2781
  const g = /* @__PURE__ */ new Map();
2782
2782
  return u.forEach((y, c) => {
2783
2783
  const k = !!(y.children && y.children.length > 0);
@@ -2793,7 +2793,7 @@ function Br(n) {
2793
2793
  });
2794
2794
  }), g;
2795
2795
  }, [u, w]);
2796
- return ue(() => ({
2796
+ return de(() => ({
2797
2797
  treeNodes: u,
2798
2798
  groupingRows: p,
2799
2799
  toggleExpansion: _,
@@ -2887,7 +2887,7 @@ function Hr(n, t, e) {
2887
2887
  } else
2888
2888
  c = y.colSpan;
2889
2889
  if (c <= 1) {
2890
- mt(j, p, y.field, {
2890
+ wt(j, p, y.field, {
2891
2891
  spannedByColSpan: !1,
2892
2892
  cellProps: { colSpan: 1, width: e[y.field] || 100 }
2893
2893
  });
@@ -2897,13 +2897,13 @@ function Hr(n, t, e) {
2897
2897
  for (let N = 1; N < c; N++)
2898
2898
  if (g + N < S) {
2899
2899
  const T = t[g + N];
2900
- T && (k += e[T.field] || 100, mt(j, p, T.field, {
2900
+ T && (k += e[T.field] || 100, wt(j, p, T.field, {
2901
2901
  spannedByColSpan: !0,
2902
2902
  leftVisibleCellIndex: g,
2903
2903
  rightVisibleCellIndex: Math.min(g + c - 1, t.length - 1)
2904
2904
  }));
2905
2905
  }
2906
- mt(j, p, y.field, {
2906
+ wt(j, p, y.field, {
2907
2907
  spannedByColSpan: !1,
2908
2908
  cellProps: { colSpan: c, width: k }
2909
2909
  }), g += c - 1;
@@ -2976,7 +2976,7 @@ function Hr(n, t, e) {
2976
2976
  c = y.colSpan;
2977
2977
  if (c <= 1) {
2978
2978
  const N = e[y.field] || (typeof y.width == "number" ? y.width : 100);
2979
- mt(p, S.id, y.field, {
2979
+ wt(p, S.id, y.field, {
2980
2980
  spannedByColSpan: !1,
2981
2981
  cellProps: { colSpan: 1, width: N }
2982
2982
  });
@@ -2988,14 +2988,14 @@ function Hr(n, t, e) {
2988
2988
  const T = t[g + N];
2989
2989
  if (T) {
2990
2990
  const C = e[T.field] || (typeof T.width == "number" ? T.width : 100);
2991
- k += C, mt(p, S.id, T.field, {
2991
+ k += C, wt(p, S.id, T.field, {
2992
2992
  spannedByColSpan: !0,
2993
2993
  leftVisibleCellIndex: g,
2994
2994
  rightVisibleCellIndex: Math.min(g + c - 1, t.length - 1)
2995
2995
  });
2996
2996
  }
2997
2997
  }
2998
- mt(p, S.id, y.field, {
2998
+ wt(p, S.id, y.field, {
2999
2999
  spannedByColSpan: !1,
3000
3000
  cellProps: { colSpan: c, width: k }
3001
3001
  }), g += c - 1;
@@ -3050,7 +3050,7 @@ function Hr(n, t, e) {
3050
3050
  getHiddenCellOriginMap: x
3051
3051
  };
3052
3052
  }
3053
- function mt(n, t, e, o) {
3053
+ function wt(n, t, e, o) {
3054
3054
  let i = n.get(t);
3055
3055
  i || (i = {}, n.set(t, i)), i[e] = o;
3056
3056
  }
@@ -3170,30 +3170,30 @@ function Vr(n, t) {
3170
3170
  return Math.max(...e);
3171
3171
  }
3172
3172
  }
3173
- function Xt(n, t) {
3173
+ function Jt(n, t) {
3174
3174
  return t.map((e) => String(n[e] ?? "")).join(no);
3175
3175
  }
3176
- function vn(n, t, e, o) {
3176
+ function _n(n, t, e, o) {
3177
3177
  return o ? `${n}${Tt}${t}${Tt}${e}` : `${t}${Tt}${e}`;
3178
3178
  }
3179
3179
  function Ur(n, t, e, o) {
3180
- return ue(() => {
3180
+ return de(() => {
3181
3181
  const i = { pivotRows: [], pivotColumns: [], colKeys: [], isValid: !1 };
3182
3182
  if (!o) return i;
3183
3183
  const { rowFields: l, columnFields: s, valueFields: a } = e;
3184
3184
  if (l.length === 0 || a.length === 0) return i;
3185
3185
  const d = s.length > 0, f = new Map(t.map((b) => [b.field, b])), h = /* @__PURE__ */ new Set();
3186
3186
  for (const b of n)
3187
- h.add(Xt(b, s));
3187
+ h.add(Jt(b, s));
3188
3188
  const w = Array.from(h).sort(), m = /* @__PURE__ */ new Map();
3189
3189
  for (const b of n) {
3190
- const S = Xt(b, l);
3190
+ const S = Jt(b, l);
3191
3191
  if (!m.has(S)) {
3192
3192
  const c = {};
3193
3193
  for (const k of l) c[k] = b[k];
3194
3194
  m.set(S, { labelValues: c, bucket: /* @__PURE__ */ new Map() });
3195
3195
  }
3196
- const j = m.get(S), g = Xt(b, s);
3196
+ const j = m.get(S), g = Jt(b, s);
3197
3197
  j.bucket.has(g) || j.bucket.set(g, /* @__PURE__ */ new Map());
3198
3198
  const y = j.bucket.get(g);
3199
3199
  for (const c of a) {
@@ -3208,7 +3208,7 @@ function Ur(n, t, e, o) {
3208
3208
  for (const j of w) {
3209
3209
  const g = b.bucket.get(j);
3210
3210
  for (const y of a) {
3211
- const c = vn(j, y.field, y.aggFn, d), k = g?.get(y.field) ?? [];
3211
+ const c = _n(j, y.field, y.aggFn, d), k = g?.get(y.field) ?? [];
3212
3212
  S[c] = k.length > 0 ? Vr(k, y.aggFn) : null;
3213
3213
  }
3214
3214
  }
@@ -3216,7 +3216,7 @@ function Ur(n, t, e, o) {
3216
3216
  }
3217
3217
  const p = /* @__PURE__ */ new Map();
3218
3218
  for (const b of n) {
3219
- const S = Xt(b, s);
3219
+ const S = Jt(b, s);
3220
3220
  for (const j of a) {
3221
3221
  if (j.aggFn !== "avg" && j.aggFn !== "min" && j.aggFn !== "max") continue;
3222
3222
  const g = `${S}${Tt}${j.field}`;
@@ -3230,7 +3230,7 @@ function Ur(n, t, e, o) {
3230
3230
  _[l[b]] = b === 0 ? "Grand Total" : "";
3231
3231
  for (const b of w)
3232
3232
  for (const S of a) {
3233
- const j = vn(b, S.field, S.aggFn, d), g = x.map((c) => c[j]).filter((c) => c != null && !isNaN(Number(c))).map(Number);
3233
+ const j = _n(b, S.field, S.aggFn, d), g = x.map((c) => c[j]).filter((c) => c != null && !isNaN(Number(c))).map(Number);
3234
3234
  if (g.length === 0) {
3235
3235
  _[j] = null;
3236
3236
  continue;
@@ -3271,7 +3271,7 @@ function Ur(n, t, e, o) {
3271
3271
  return y?.headerName ? `${y.headerName}: ${j}` : j;
3272
3272
  }).join(" / ") : "";
3273
3273
  for (const j of a) {
3274
- const g = f.get(j.field), y = vn(b, j.field, j.aggFn, d), c = j.headerName ?? g?.headerName ?? j.field, k = S ? `${S} — ${c} (${j.aggFn})` : `${c} (${j.aggFn})`;
3274
+ const g = f.get(j.field), y = _n(b, j.field, j.aggFn, d), c = j.headerName ?? g?.headerName ?? j.field, k = S ? `${S} — ${c} (${j.aggFn})` : `${c} (${j.aggFn})`;
3275
3275
  R.push({
3276
3276
  field: y,
3277
3277
  headerName: k,
@@ -3693,7 +3693,7 @@ function li(n) {
3693
3693
  R && "ogx__cell--editing",
3694
3694
  y && y > 1 && "ogx__cell--spanned",
3695
3695
  C
3696
- ].filter(Boolean).join(" "), O = g?.cellProps?.colSpan || 1, $ = y || 1, Y = g?.cellProps?.width ?? w ?? s.width ?? 100, U = {
3696
+ ].filter(Boolean).join(" "), O = g?.cellProps?.colSpan || 1, $ = y || 1, Y = g?.cellProps?.width ?? w ?? s.width ?? 100, K = {
3697
3697
  width: "var(--width)",
3698
3698
  "--width": typeof Y == "number" ? `${Y}px` : Y,
3699
3699
  flexGrow: s.flex ?? 0,
@@ -3706,12 +3706,12 @@ function li(n) {
3706
3706
  zIndex: s.zIndex ?? (A ? 3 : void 0),
3707
3707
  padding: R ? 0 : void 0
3708
3708
  };
3709
- return $ > 1 && (U.height = `calc(var(--height) * ${$} - var(--border-width, 1px))`, U.zIndex = 10, A && (U.zIndex = 40)), A && u !== void 0 && (m === "left" ? U.left = u : U.right = u), /* @__PURE__ */ r.jsx(
3709
+ return $ > 1 && (K.height = `calc(var(--height) * ${$} - var(--border-width, 1px))`, K.zIndex = 10, A && (K.zIndex = 40)), A && u !== void 0 && (m === "left" ? K.left = u : K.right = u), /* @__PURE__ */ r.jsx(
3710
3710
  "div",
3711
3711
  {
3712
3712
  ref: P,
3713
3713
  className: D,
3714
- style: U,
3714
+ style: K,
3715
3715
  onClick: M,
3716
3716
  onDoubleClick: W,
3717
3717
  role: "gridcell",
@@ -3782,7 +3782,7 @@ function di(n) {
3782
3782
  };
3783
3783
  return /* @__PURE__ */ r.jsx("div", { className: "ogx__detail-panel", style: i, children: /* @__PURE__ */ r.jsx("div", { className: "ogx__detail-panel-content", children: t }) });
3784
3784
  }
3785
- function bn(n) {
3785
+ function Cn(n) {
3786
3786
  const {
3787
3787
  row: t,
3788
3788
  columns: e,
@@ -3819,11 +3819,11 @@ function bn(n) {
3819
3819
  rowSpanningCaches: O,
3820
3820
  rowHeight: $ = 52,
3821
3821
  rowMeta: Y
3822
- } = n, U = Zt(), v = xe.useRef(null), E = xe.useRef(null);
3822
+ } = n, K = en(), v = xe.useRef(null), E = xe.useRef(null);
3823
3823
  xe.useLayoutEffect(() => {
3824
3824
  W === "__expand_col__" && v.current && v.current.focus({ preventScroll: !0 }), W === "__checkbox_col__" && E.current && E.current.focus({ preventScroll: !0 });
3825
3825
  }, [W]);
3826
- const L = xe.useMemo(() => _n(
3826
+ const L = xe.useMemo(() => yn(
3827
3827
  e,
3828
3828
  f,
3829
3829
  h,
@@ -3834,9 +3834,9 @@ function bn(n) {
3834
3834
  S
3835
3835
  ), [e, f, h, l, R, m, b, S]), F = Y?.hasChildren === !0, B = xe.useCallback((q, Q) => {
3836
3836
  F || C?.({ id: t.id, field: q, value: Q });
3837
- }, [F, t.id, C]), K = xe.useCallback((q, Q) => {
3837
+ }, [F, t.id, C]), V = xe.useCallback((q, Q) => {
3838
3838
  M?.({ id: t.id, field: q, value: Q });
3839
- }, [M, t.id]), V = xe.useCallback((q) => {
3839
+ }, [M, t.id]), U = xe.useCallback((q) => {
3840
3840
  P?.({ cancel: q });
3841
3841
  }, [P]);
3842
3842
  if (t._isSkeleton) {
@@ -3858,12 +3858,12 @@ function bn(n) {
3858
3858
  q.stopPropagation(), d?.(t.id, q.target.checked);
3859
3859
  }, ie = (q) => {
3860
3860
  q.stopPropagation(), x?.(t.id);
3861
- }, I = Cn(t.id, w), de = I === "top", oe = I === "bottom", ae = [
3861
+ }, I = Sn(t.id, w), ce = I === "top", oe = I === "bottom", ae = [
3862
3862
  "ogx__row",
3863
3863
  i && "ogx__row--selected",
3864
3864
  o % 2 === 0 && "ogx__row--even",
3865
3865
  o % 2 === 1 && "ogx__row--odd",
3866
- de && "ogx__row--pinned-top",
3866
+ ce && "ogx__row--pinned-top",
3867
3867
  oe && "ogx__row--pinned-bottom",
3868
3868
  k && "ogx__row--dragging",
3869
3869
  N && "ogx__row--drag-over",
@@ -3963,9 +3963,9 @@ function bn(n) {
3963
3963
  });
3964
3964
  },
3965
3965
  children: /* @__PURE__ */ r.jsx(
3966
- Qt,
3966
+ Zt,
3967
3967
  {
3968
- id: U,
3968
+ id: K,
3969
3969
  name: `ogx-select-row-${t.id}`,
3970
3970
  checked: i,
3971
3971
  onChange: se,
@@ -3987,11 +3987,11 @@ function bn(n) {
3987
3987
  },
3988
3988
  q.field
3989
3989
  );
3990
- const ge = q.valueGetter ? q.valueGetter({ row: t, field: q.field, value: t[q.field] }) : t[q.field], z = f[q.field] ?? q.width, Z = Lt(q.field, h), ee = Z ? L[q.field] : void 0, me = T?.id === t.id && T?.field === q.field, he = me ? T?.value : ge, Pe = D?.get(t.id)?.[q.field], We = O?.spannedCells[t.id]?.[q.field], Fe = O?.hiddenCells[t.id]?.[q.field] || !1;
3990
+ const ge = q.valueGetter ? q.valueGetter({ row: t, field: q.field, value: t[q.field] }) : t[q.field], z = f[q.field] ?? q.width, Z = Lt(q.field, h), ee = Z ? L[q.field] : void 0, me = T?.id === t.id && T?.field === q.field, fe = me ? T?.value : ge, Pe = D?.get(t.id)?.[q.field], We = O?.spannedCells[t.id]?.[q.field], Fe = O?.hiddenCells[t.id]?.[q.field] || !1;
3991
3991
  return /* @__PURE__ */ r.jsx(
3992
3992
  ai,
3993
3993
  {
3994
- value: he,
3994
+ value: fe,
3995
3995
  row: t,
3996
3996
  colDef: q,
3997
3997
  rowIndex: o,
@@ -4006,8 +4006,8 @@ function bn(n) {
4006
4006
  isEditable: q.editable,
4007
4007
  isEditing: me,
4008
4008
  onCellEditStart: B,
4009
- onEditStop: V,
4010
- onCellValueChange: K,
4009
+ onEditStop: U,
4010
+ onCellValueChange: V,
4011
4011
  colSpanInfo: Pe,
4012
4012
  rowSpan: We,
4013
4013
  isHiddenByRowSpan: Fe,
@@ -4058,7 +4058,7 @@ function Kn({
4058
4058
  rowMetaMap: y
4059
4059
  }) {
4060
4060
  return n.length === 0 ? null : /* @__PURE__ */ r.jsx("div", { className: `ogx__pinned-rows ogx__pinned-rows--${t}`, role: "rowgroup", children: n.map((c, k) => /* @__PURE__ */ r.jsx(
4061
- bn,
4061
+ Cn,
4062
4062
  {
4063
4063
  row: c,
4064
4064
  columns: e,
@@ -4201,7 +4201,7 @@ function ui({
4201
4201
  headerName: "",
4202
4202
  width: E
4203
4203
  }));
4204
- })(), U = o.filter(({ row: v }) => !Cn(v.id, w)).filter(
4204
+ })(), K = o.filter(({ row: v }) => !Sn(v.id, w)).filter(
4205
4205
  (v, E, L) => E === L.findIndex((F) => F.row.id === v.row.id)
4206
4206
  );
4207
4207
  return /* @__PURE__ */ r.jsx(
@@ -4227,8 +4227,8 @@ function ui({
4227
4227
  rowReordering: f
4228
4228
  },
4229
4229
  `skeleton-${E}`
4230
- )) : U.map(({ row: v, rowIndex: E }) => /* @__PURE__ */ r.jsx(
4231
- bn,
4230
+ )) : K.map(({ row: v, rowIndex: E }) => /* @__PURE__ */ r.jsx(
4231
+ Cn,
4232
4232
  {
4233
4233
  row: v,
4234
4234
  columns: l,
@@ -4268,7 +4268,7 @@ function ui({
4268
4268
  v.id
4269
4269
  )),
4270
4270
  M === "infinite" && W && A > 0 && /* @__PURE__ */ r.jsx("div", { className: "ogx__skeleton-group", children: Array.from({ length: D }).map((v, E) => /* @__PURE__ */ r.jsx(
4271
- bn,
4271
+ Cn,
4272
4272
  {
4273
4273
  row: { id: `__skeleton_${E}__`, _isSkeleton: !0 },
4274
4274
  columns: l,
@@ -4310,7 +4310,7 @@ function fi() {
4310
4310
  );
4311
4311
  }
4312
4312
  function oo(n) {
4313
- const { columns: t, visibleColumns: e, onVisibilityChange: o, onShowAll: i, onHideAll: l, onColumnReorder: s, onColumnOrderReset: a, showNonHideableColumns: d } = n, [f, h] = ne(""), [w, m] = ne(null), u = J(null), x = ue(() => t.filter((c) => c.hideable !== !1), [t]), p = x.every((c) => e.has(c.field)), _ = ue(() => {
4313
+ const { columns: t, visibleColumns: e, onVisibilityChange: o, onShowAll: i, onHideAll: l, onColumnReorder: s, onColumnOrderReset: a, showNonHideableColumns: d } = n, [f, h] = ne(""), [w, m] = ne(null), u = J(null), x = de(() => t.filter((c) => c.hideable !== !1), [t]), p = x.every((c) => e.has(c.field)), _ = de(() => {
4314
4314
  const c = d ? t : x;
4315
4315
  if (!f) return c;
4316
4316
  const k = f.toLowerCase();
@@ -4379,7 +4379,7 @@ function oo(n) {
4379
4379
  style: { display: "flex", alignItems: "center", gap: "var(--ogx-spacing-md)", flex: 1, cursor: N ? "pointer" : "not-allowed" },
4380
4380
  children: [
4381
4381
  /* @__PURE__ */ r.jsx(
4382
- Qt,
4382
+ Zt,
4383
4383
  {
4384
4384
  checked: k,
4385
4385
  onChange: (P) => o(c.field, P.target.checked),
@@ -4398,7 +4398,7 @@ function oo(n) {
4398
4398
  /* @__PURE__ */ r.jsxs("div", { className: "ogx-column-visibility-panel__footer", children: [
4399
4399
  /* @__PURE__ */ r.jsxs("label", { className: "ogx-column-visibility-panel__item", children: [
4400
4400
  /* @__PURE__ */ r.jsx(
4401
- Qt,
4401
+ Zt,
4402
4402
  {
4403
4403
  checked: p,
4404
4404
  onChange: R
@@ -4558,19 +4558,19 @@ function Vi(n) {
4558
4558
  columnOrder: O,
4559
4559
  onColumnOrderChange: $,
4560
4560
  height: Y,
4561
- rowReordering: U = !1,
4561
+ rowReordering: K = !1,
4562
4562
  onRowOrderChange: v,
4563
4563
  loading: E = !1,
4564
4564
  treeData: L = !1,
4565
4565
  getTreeDataPath: F,
4566
4566
  defaultGroupingExpansionDepth: B,
4567
- groupingColDef: K,
4568
- rowGroupingModel: V,
4567
+ groupingColDef: V,
4568
+ rowGroupingModel: U,
4569
4569
  aggregationModel: le,
4570
4570
  onAggregationModelChange: se,
4571
4571
  getAggregationPosition: ie,
4572
4572
  isCellEditable: I,
4573
- processRowUpdate: de,
4573
+ processRowUpdate: ce,
4574
4574
  onProcessRowUpdateError: oe,
4575
4575
  dataSource: ae,
4576
4576
  multiSort: q = !1,
@@ -4580,7 +4580,7 @@ function Vi(n) {
4580
4580
  rowCount: Z,
4581
4581
  slots: ee,
4582
4582
  slotProps: me,
4583
- pivotMode: he = !1,
4583
+ pivotMode: fe = !1,
4584
4584
  pivotModel: Pe,
4585
4585
  onPivotModelChange: We,
4586
4586
  className: Fe = "",
@@ -4593,15 +4593,15 @@ function Vi(n) {
4593
4593
  columnVisibilityModel: so,
4594
4594
  onColumnVisibilityModelChange: co,
4595
4595
  listView: Ft = !1,
4596
- listViewColumn: Rn,
4596
+ listViewColumn: En,
4597
4597
  columnGroupingModel: qe,
4598
4598
  noRowsLabel: uo = "No Data",
4599
4599
  localeText: $e,
4600
- apiRef: en
4601
- } = n, tn = $e?.noRowsLabel ?? uo, go = ue(() => ({ items: [] }), []), Ie = p || go, fo = ue(() => [], []), nn = V || fo, jn = J(ee?.toolbar);
4602
- jn.current = ee?.toolbar;
4600
+ apiRef: tn
4601
+ } = n, nn = $e?.noRowsLabel ?? uo, go = de(() => ({ items: [] }), []), Ie = p || go, fo = de(() => [], []), on = U || fo, Nn = J(ee?.toolbar);
4602
+ Nn.current = ee?.toolbar;
4603
4603
  const ho = J((G) => {
4604
- const X = jn.current;
4604
+ const X = Nn.current;
4605
4605
  return X ? X(G) : null;
4606
4606
  }).current, po = Zo({
4607
4607
  initialState: je,
@@ -4622,42 +4622,42 @@ function Vi(n) {
4622
4622
  isSortControlled: Ot,
4623
4623
  setInternalSortModel: Wt,
4624
4624
  aggregationModel: Te,
4625
- handleAggregationModelChange: En,
4625
+ handleAggregationModelChange: Mn,
4626
4626
  columnVisibilityModel: Xe,
4627
4627
  handleColumnVisibilityModelChange: At,
4628
- pinnedColumns: wt,
4629
- handlePinnedColumnsChange: on,
4630
- currentPivotModel: rn,
4631
- handlePivotModelChange: Nn,
4628
+ pinnedColumns: et,
4629
+ handlePinnedColumnsChange: rn,
4630
+ currentPivotModel: ln,
4631
+ handlePivotModelChange: Pn,
4632
4632
  effectivePaginationModel: Ee,
4633
- handlePaginationModelChange: ln,
4633
+ handlePaginationModelChange: an,
4634
4634
  selectedRowIds: Se,
4635
- isSelectionControlled: et,
4636
- setInternalRowSelectionModel: tt
4637
- } = po, nt = m, $t = Ur(t, e, rn, he), Ve = a === "compact" ? 32 : a === "comfortable" ? 72 : i, Mn = he && $t.isValid ? $t.pivotRows : t, Pn = he && $t.isValid ? $t.pivotColumns : e, In = !!(V && V.length > 0), Je = K && In && !he ? { ...wt, left: ["__group__", ...(wt?.left ?? []).filter((G) => G !== "__group__")] } : wt, vt = K && In && !he ? [
4635
+ isSelectionControlled: tt,
4636
+ setInternalRowSelectionModel: nt
4637
+ } = po, ot = m, $t = Ur(t, e, ln, fe), Ve = a === "compact" ? 32 : a === "comfortable" ? 72 : i, In = fe && $t.isValid ? $t.pivotRows : t, sn = fe && $t.isValid ? $t.pivotColumns : e, zt = !!(U && U.length > 0), Je = de(() => V && zt && !fe ? { ...et, left: ["__group__", ...(et?.left ?? []).filter((G) => G !== "__group__")] } : et, [V, zt, fe, et]), vt = de(() => V && zt && !fe ? [
4638
4638
  {
4639
4639
  headerName: "Group",
4640
4640
  width: 220,
4641
- ...K,
4641
+ ...V,
4642
4642
  field: "__group__",
4643
4643
  hideable: !1,
4644
4644
  sortable: !1,
4645
4645
  pinnable: !1,
4646
4646
  exportable: !1
4647
4647
  },
4648
- ...Pn
4649
- ] : Pn, [xo, Tn] = ne(null);
4648
+ ...sn
4649
+ ] : sn, [V, zt, fe, sn]), [xo, Tn] = ne(null);
4650
4650
  re(() => {
4651
4651
  Tn(null);
4652
4652
  }, [Te]);
4653
- const ot = J(null), mo = J(null), zt = J(null), wo = H((G) => G.id, []), rt = o || wo, an = ue(
4654
- () => Mn.map((G) => {
4655
- const X = rt(G);
4653
+ const rt = J(null), mo = J(null), Bt = J(null), wo = H((G) => G.id, []), it = o || wo, dn = de(
4654
+ () => In.map((G) => {
4655
+ const X = it(G);
4656
4656
  return X === G.id ? G : { ...G, id: X };
4657
4657
  }),
4658
- [Mn, rt]
4659
- ), it = H((G) => {
4660
- mn.current?.classList.toggle("ogx--kb", G);
4658
+ [In, it]
4659
+ ), lt = H((G) => {
4660
+ vn.current?.classList.toggle("ogx--kb", G);
4661
4661
  }, []), Ln = J(ae);
4662
4662
  Ln.current = ae;
4663
4663
  const Fn = J(null), On = J(null), vo = H((G) => {
@@ -4666,7 +4666,7 @@ function Vi(n) {
4666
4666
  Fn.current?.(G.id, X);
4667
4667
  }
4668
4668
  }, [L]), ke = Fr({
4669
- rows: an,
4669
+ rows: dn,
4670
4670
  columns: vt,
4671
4671
  rowHeight: Ve,
4672
4672
  headerHeight: l,
@@ -4675,8 +4675,8 @@ function Vi(n) {
4675
4675
  initialState: n.initialState
4676
4676
  }), {
4677
4677
  state: ve,
4678
- apiRef: lt,
4679
- setRows: sn,
4678
+ apiRef: at,
4679
+ setRows: cn,
4680
4680
  setColumns: bo,
4681
4681
  setDimensions: Wn,
4682
4682
  setDataSourceLoading: _o,
@@ -4684,20 +4684,20 @@ function Vi(n) {
4684
4684
  setRowCount: yo
4685
4685
  } = ke, { scrollTop: So, scrollLeft: ko, handleScroll: Ro } = ur({ onRowsScrollEnd: Ge });
4686
4686
  re(() => {
4687
- en && (en.current = lt.current);
4688
- }, [en, lt]);
4687
+ tn && (tn.current = at.current);
4688
+ }, [tn, at]);
4689
4689
  const { copySelectedRows: An } = qr({
4690
4690
  selectedRowIds: Se,
4691
4691
  columns: vt,
4692
- getVisibleRows: () => lt.current.getVisibleRows(),
4693
- getRowId: rt
4692
+ getVisibleRows: () => at.current.getVisibleRows(),
4693
+ getRowId: it
4694
4694
  });
4695
4695
  re(() => {
4696
- lt.current.copySelectedRows = An, lt.current.getSelectedRows = () => Array.from(Se);
4697
- }, [An, Se, lt]);
4698
- const jo = ve.dataSource.loading, bt = E || jo, at = ue(() => ve.rows.allRows.map((G) => ve.rows.idRowsLookup.get(G)), [ve.rows]), _t = Wr({
4699
- rows: at,
4700
- getRowId: rt,
4696
+ at.current.copySelectedRows = An, at.current.getSelectedRows = () => Array.from(Se);
4697
+ }, [An, Se, at]);
4698
+ const jo = ve.dataSource.loading, bt = E || jo, st = de(() => ve.rows.allRows.map((G) => ve.rows.idRowsLookup.get(G)), [ve.rows]), _t = Wr({
4699
+ rows: st,
4700
+ getRowId: it,
4701
4701
  getTreeDataPath: F,
4702
4702
  treeData: L,
4703
4703
  defaultGroupingExpansionDepth: B,
@@ -4709,43 +4709,43 @@ function Vi(n) {
4709
4709
  On.current = _t;
4710
4710
  }, [_t]);
4711
4711
  const Ct = Br({
4712
- rows: at,
4713
- getRowId: rt,
4712
+ rows: st,
4713
+ getRowId: it,
4714
4714
  columns: vt,
4715
- rowGroupingModel: nn,
4715
+ rowGroupingModel: on,
4716
4716
  aggregationModel: Te,
4717
4717
  defaultGroupingExpansionDepth: B,
4718
4718
  filterModel: Ie,
4719
4719
  sortModel: Oe,
4720
4720
  getAggregationPosition: ie
4721
- }), st = Dr({
4722
- rows: at,
4723
- getRowId: rt,
4724
- processRowUpdate: de,
4721
+ }), dt = Dr({
4722
+ rows: st,
4723
+ getRowId: it,
4724
+ processRowUpdate: ce,
4725
4725
  onProcessRowUpdateError: oe,
4726
4726
  onRowChange: (G) => {
4727
- const { dispatch: X } = ke, fe = Array.from(ke.state.rows.idRowsLookup.values()).map(
4727
+ const { dispatch: X } = ke, he = Array.from(ke.state.rows.idRowsLookup.values()).map(
4728
4728
  (pe) => pe.id === G.id ? G : pe
4729
4729
  );
4730
- X({ type: "SET_ROWS", payload: fe });
4730
+ X({ type: "SET_ROWS", payload: he });
4731
4731
  }
4732
- }), yt = L, Ue = !!(nn && nn.length > 0), dn = yt || Ue, Bt = yt ? _t : Ue ? Ct : null, St = ue(() => yt ? _t.rowMetaMap : Ue ? Ct.rowMetaMap : pi, [yt, _t.rowMetaMap, Ue, Ct.rowMetaMap]), ze = S && !Ue, Dt = H((G) => {
4733
- const { row: X, id: ce } = G;
4734
- if (dn && St.get(X.id)?.hasChildren) {
4735
- Bt?.toggleExpansion(ce);
4732
+ }), yt = L, Ue = !!(on && on.length > 0), un = yt || Ue, Dt = yt ? _t : Ue ? Ct : null, St = de(() => yt ? _t.rowMetaMap : Ue ? Ct.rowMetaMap : pi, [yt, _t.rowMetaMap, Ue, Ct.rowMetaMap]), ze = S && !Ue, Ht = H((G) => {
4733
+ const { row: X, id: ue } = G;
4734
+ if (un && St.get(X.id)?.hasChildren) {
4735
+ Dt?.toggleExpansion(ue);
4736
4736
  return;
4737
4737
  }
4738
4738
  if (u?.(G), !f) {
4739
- let fe;
4739
+ let he;
4740
4740
  if (h)
4741
- fe = Se.has(ce) ? [] : [ce];
4741
+ he = Se.has(ue) ? [] : [ue];
4742
4742
  else {
4743
4743
  const pe = new Set(Se);
4744
- pe.has(ce) ? pe.delete(ce) : pe.add(ce), fe = Array.from(pe);
4744
+ pe.has(ue) ? pe.delete(ue) : pe.add(ue), he = Array.from(pe);
4745
4745
  }
4746
- et || tt(fe), nt?.(fe);
4746
+ tt || nt(he), ot?.(he);
4747
4747
  }
4748
- }, [dn, Bt, u, St, f, h, Se, et, tt, nt]), cn = Gr({
4748
+ }, [un, Dt, u, St, f, h, Se, tt, nt, ot]), gn = Gr({
4749
4749
  dataSource: ae,
4750
4750
  sortModel: Oe,
4751
4751
  filterModel: Ie,
@@ -4754,44 +4754,44 @@ function Vi(n) {
4754
4754
  sortingMode: Q,
4755
4755
  filterMode: ge,
4756
4756
  aggregationModel: Te,
4757
- setRows: sn,
4757
+ setRows: cn,
4758
4758
  setRowCount: yo,
4759
4759
  setDataSourceLoading: _o,
4760
4760
  setDataSourceError: Co,
4761
4761
  onAggregationResults: Tn
4762
4762
  });
4763
4763
  re(() => {
4764
- cn.fetchChildren && (Fn.current = cn.fetchChildren);
4765
- }, [cn.fetchChildren]), re(() => {
4766
- ae || sn(an);
4767
- }, [an, sn, ae]);
4768
- const Be = !!T, [Eo, No] = ne(/* @__PURE__ */ new Set()), dt = P ?? Eo, Ht = H((G) => {
4769
- const X = new Set(dt);
4764
+ gn.fetchChildren && (Fn.current = gn.fetchChildren);
4765
+ }, [gn.fetchChildren]), re(() => {
4766
+ ae || cn(dn);
4767
+ }, [dn, cn, ae]);
4768
+ const Be = !!T, [Eo, No] = ne(/* @__PURE__ */ new Set()), ct = P ?? Eo, Gt = H((G) => {
4769
+ const X = new Set(ct);
4770
4770
  X.has(G) ? X.delete(G) : X.add(G), P === void 0 && No(X), M?.(X);
4771
- }, [dt, P, M]), {
4771
+ }, [ct, P, M]), {
4772
4772
  effectiveColumns: Ke,
4773
- orderedColumns: un,
4773
+ orderedColumns: fn,
4774
4774
  visibleOrderedColumns: Mo,
4775
4775
  navigationColumns: $n,
4776
4776
  columnWidths: De,
4777
- effectiveColumnOrder: Gt,
4778
- setInternalColumnOrder: Vt,
4779
- columnReorderHandlers: ct,
4777
+ effectiveColumnOrder: Vt,
4778
+ setInternalColumnOrder: Ut,
4779
+ columnReorderHandlers: ut,
4780
4780
  handleColumnResize: Po
4781
4781
  } = dr({
4782
4782
  activeColumns: vt,
4783
- isHierarchyEnabled: dn,
4783
+ isHierarchyEnabled: un,
4784
4784
  isRowGrouping: Ue,
4785
4785
  isTreeData: yt,
4786
- activeHierarchyHandlers: Bt,
4786
+ activeHierarchyHandlers: Dt,
4787
4787
  columnVisibilityModel: Xe,
4788
4788
  columnOrder: O,
4789
4789
  onColumnOrderChange: $,
4790
4790
  disableColumnReorder: D,
4791
- pivotMode: he,
4791
+ pivotMode: fe,
4792
4792
  checkboxSelection: d,
4793
4793
  hasDetailPanel: Be,
4794
- rowReordering: U,
4794
+ rowReordering: K,
4795
4795
  initialState: je,
4796
4796
  setColumns: bo
4797
4797
  });
@@ -4801,13 +4801,13 @@ function Vi(n) {
4801
4801
  filterModel: Ie,
4802
4802
  effectivePaginationModel: Ee,
4803
4803
  columnWidths: De,
4804
- effectiveColumnOrder: Gt,
4804
+ effectiveColumnOrder: Vt,
4805
4805
  columnVisibilityModel: Xe,
4806
4806
  pinnedColumns: Je
4807
4807
  });
4808
- const ut = lr({
4809
- effectiveRows: at,
4810
- activeHierarchyHandlers: Bt,
4808
+ const gt = lr({
4809
+ effectiveRows: st,
4810
+ activeHierarchyHandlers: Dt,
4811
4811
  filterMode: ge,
4812
4812
  filterModel: Ie,
4813
4813
  dataSource: ae,
@@ -4819,7 +4819,7 @@ function Vi(n) {
4819
4819
  pinnedRows: N,
4820
4820
  isLoading: ve.dataSource.loading,
4821
4821
  pageSize: Ee.pageSize
4822
- }), Qe = ut.filteredRows, gn = ut.pinnedTopRows, fn = ut.pinnedBottomRows, He = ut.sortedUnpinnedRows, kt = ut.paginatedUnpinnedRows, hn = ut.allRenderableRows;
4822
+ }), Qe = gt.filteredRows, hn = gt.pinnedTopRows, pn = gt.pinnedBottomRows, He = gt.sortedUnpinnedRows, kt = gt.paginatedUnpinnedRows, xn = gt.allRenderableRows;
4823
4823
  re(() => {
4824
4824
  ke.apiRef.current.getVisibleRows = () => ze ? kt : He, ke.apiRef.current.getAllFilteredRows = () => He, ke.apiRef.current.getVisibleColumns = () => Ke;
4825
4825
  }, [He, kt, ze, Ke, ke.apiRef]);
@@ -4827,9 +4827,9 @@ function Vi(n) {
4827
4827
  rows: ze ? kt : He,
4828
4828
  getRowId: (G) => G.id,
4829
4829
  onRowOrderChange: v,
4830
- rowReordering: U
4831
- }), gt = Hr(
4832
- hn,
4830
+ rowReordering: K
4831
+ }), ft = Hr(
4832
+ xn,
4833
4833
  $n,
4834
4834
  De
4835
4835
  ), { aggregationResult: Rt } = hr({
@@ -4841,23 +4841,23 @@ function Vi(n) {
4841
4841
  filterModel: Ie,
4842
4842
  sortModel: Oe,
4843
4843
  serverAggregationResults: xo
4844
- }), ft = Object.keys(Te).length > 0;
4844
+ }), ht = Object.keys(Te).length > 0;
4845
4845
  re(() => {
4846
- ke.apiRef.current.getAggregationResult = () => ft ? Rt : null, ke.apiRef.current.getAggregationModel = () => ft ? Te : null, ke.apiRef.current.getGroupedExportRows = () => {
4846
+ ke.apiRef.current.getAggregationResult = () => ht ? Rt : null, ke.apiRef.current.getAggregationModel = () => ht ? Te : null, ke.apiRef.current.getGroupedExportRows = () => {
4847
4847
  if (!Ue) return null;
4848
- const { treeNodes: G, groupingRows: X } = Ct, ce = /* @__PURE__ */ new Map();
4849
- He.forEach((we) => ce.set(we.id, we));
4850
- const fe = [], pe = (we) => {
4848
+ const { treeNodes: G, groupingRows: X } = Ct, ue = /* @__PURE__ */ new Map();
4849
+ He.forEach((we) => ue.set(we.id, we));
4850
+ const he = [], pe = (we) => {
4851
4851
  we.forEach((_e) => {
4852
4852
  const Ce = G.get(_e);
4853
4853
  if (!Ce) return;
4854
4854
  if (!!(Ce.children && Ce.children.length > 0))
4855
- fe.push({
4855
+ he.push({
4856
4856
  type: "group-header",
4857
4857
  depth: Ce.depth,
4858
4858
  groupField: Ce.groupingField,
4859
4859
  groupValue: Ce.groupingValue
4860
- }), pe(Ce.children), ft && Ce.aggregatedValues && fe.push({
4860
+ }), pe(Ce.children), ht && Ce.aggregatedValues && he.push({
4861
4861
  type: "group-subtotal",
4862
4862
  depth: Ce.depth,
4863
4863
  groupField: Ce.groupingField,
@@ -4865,34 +4865,34 @@ function Vi(n) {
4865
4865
  aggregatedValues: Ce.aggregatedValues
4866
4866
  });
4867
4867
  else {
4868
- const Mt = ce.get(_e) ?? X.get(_e);
4869
- Mt && fe.push({ type: "leaf", depth: Ce.depth, row: Mt });
4868
+ const Mt = ue.get(_e) ?? X.get(_e);
4869
+ Mt && he.push({ type: "leaf", depth: Ce.depth, row: Mt });
4870
4870
  }
4871
4871
  });
4872
4872
  };
4873
- return pe(Array.from(G.keys()).filter((we) => G.get(we)?.parentId === null)), ft && Rt && fe.push({ type: "grand-total", depth: 0, aggregatedValues: Rt }), fe;
4873
+ return pe(Array.from(G.keys()).filter((we) => G.get(we)?.parentId === null)), ht && Rt && he.push({ type: "grand-total", depth: 0, aggregatedValues: Rt }), he;
4874
4874
  };
4875
- }, [Rt, Te, ft, ke.apiRef, Ue, Ct, He]);
4875
+ }, [Rt, Te, ht, ke.apiRef, Ue, Ct, He]);
4876
4876
  const be = Xo({
4877
4877
  rowHeight: Ve,
4878
4878
  pagination: ze,
4879
4879
  paginatedUnpinnedRows: kt,
4880
4880
  sortedUnpinnedRows: He,
4881
- expandedRowIds: dt,
4881
+ expandedRowIds: ct,
4882
4882
  getDetailPanelHeight: C,
4883
- pinnedTopRowsLength: gn.length,
4884
- pinnedBottomRowsLength: fn.length,
4883
+ pinnedTopRowsLength: hn.length,
4884
+ pinnedBottomRowsLength: pn.length,
4885
4885
  visibleOrderedColumns: Mo,
4886
4886
  pinnedColumns: Je,
4887
4887
  columnWidths: De,
4888
4888
  viewportWidth: ve.dimensions.viewportWidth || 1e3,
4889
4889
  checkboxSelection: d,
4890
4890
  hasDetailPanel: Be,
4891
- rowReordering: U,
4891
+ rowReordering: K,
4892
4892
  paginationMode: z,
4893
4893
  isLoading: ve.dataSource.loading,
4894
4894
  pageSize: Ee.pageSize
4895
- }), To = ue(() => {
4895
+ }), To = de(() => {
4896
4896
  const G = {};
4897
4897
  for (const X of [...be.leftPinnedCols, ...be.unpinnedColsWithWidth, ...be.rightPinnedCols])
4898
4898
  X.isSpacer || (G[X.field] = X.width);
@@ -4900,23 +4900,23 @@ function Vi(n) {
4900
4900
  }, [be.leftPinnedCols, be.unpinnedColsWithWidth, be.rightPinnedCols, De]);
4901
4901
  re(() => {
4902
4902
  ke.apiRef.current.scrollToIndexes = ({ rowIndex: G, colIndex: X }) => {
4903
- const ce = ot.current;
4904
- if (ce) {
4903
+ const ue = rt.current;
4904
+ if (ue) {
4905
4905
  if (G !== void 0 && G >= 0) {
4906
- const fe = G > 0 ? be.cumulativeHeights[G - 1] : 0, pe = be.cumulativeHeights[G] ?? fe, { scrollTop: we, clientHeight: _e } = ce;
4907
- fe < we ? ce.scrollTop = fe : pe > we + _e && (ce.scrollTop = pe - _e);
4906
+ const he = G > 0 ? be.cumulativeHeights[G - 1] : 0, pe = be.cumulativeHeights[G] ?? he, { scrollTop: we, clientHeight: _e } = ue;
4907
+ he < we ? ue.scrollTop = he : pe > we + _e && (ue.scrollTop = pe - _e);
4908
4908
  }
4909
4909
  if (X !== void 0 && X >= 0) {
4910
4910
  const pe = [...be.leftPinnedCols, ...be.unpinnedColsWithWidth, ...be.rightPinnedCols][X];
4911
4911
  if (!pe) return;
4912
4912
  const we = be.unpinnedColsWithWidth.findIndex((Ho) => Ho.field === pe.field);
4913
4913
  if (we === -1) return;
4914
- const _e = we > 0 ? be.unpinnedAccWidths[we - 1] : 0, Ce = be.unpinnedAccWidths[we] ?? _e, Nt = be.leftWidth + Ce, { scrollLeft: Mt, clientWidth: Hn } = ce;
4915
- _e < Mt ? ce.scrollLeft = _e : Nt > Mt + Hn && (ce.scrollLeft = Nt - Hn);
4914
+ const _e = we > 0 ? be.unpinnedAccWidths[we - 1] : 0, Ce = be.unpinnedAccWidths[we] ?? _e, Nt = be.leftWidth + Ce, { scrollLeft: Mt, clientWidth: Hn } = ue;
4915
+ _e < Mt ? ue.scrollLeft = _e : Nt > Mt + Hn && (ue.scrollLeft = Nt - Hn);
4916
4916
  }
4917
4917
  }
4918
4918
  };
4919
- }, [be, ot, ke.apiRef]);
4919
+ }, [be, rt, ke.apiRef]);
4920
4920
  const Ne = ar({
4921
4921
  layout: be,
4922
4922
  scrollTop: So,
@@ -4924,116 +4924,116 @@ function Vi(n) {
4924
4924
  viewportWidth: ve.dimensions.viewportWidth,
4925
4925
  viewportHeight: ve.dimensions.viewportHeight,
4926
4926
  autoHeight: s,
4927
- rowReordering: U,
4927
+ rowReordering: K,
4928
4928
  hasDetailPanel: Be,
4929
4929
  checkboxSelection: d,
4930
4930
  pinCheckboxColumn: W,
4931
4931
  pinExpandColumn: A
4932
4932
  });
4933
4933
  re(() => {
4934
- if (!ot.current) return;
4934
+ if (!rt.current) return;
4935
4935
  const G = new ResizeObserver((X) => {
4936
- for (const ce of X) {
4937
- const { width: fe, height: pe } = ce.contentRect;
4938
- Wn(fe, pe);
4936
+ for (const ue of X) {
4937
+ const { width: he, height: pe } = ue.contentRect;
4938
+ Wn(he, pe);
4939
4939
  }
4940
4940
  });
4941
- return G.observe(ot.current), () => {
4941
+ return G.observe(rt.current), () => {
4942
4942
  G.disconnect();
4943
4943
  };
4944
4944
  }, [Wn]);
4945
4945
  const jt = H((G, X) => {
4946
- const ce = new Set(Se);
4947
- X ? ce.add(G) : ce.delete(G);
4948
- const fe = Array.from(ce);
4949
- et || tt(fe), nt?.(fe);
4950
- }, [Se, et, nt, tt]), Lo = H((G) => {
4946
+ const ue = new Set(Se);
4947
+ X ? ue.add(G) : ue.delete(G);
4948
+ const he = Array.from(ue);
4949
+ tt || nt(he), ot?.(he);
4950
+ }, [Se, tt, ot, nt]), Lo = H((G) => {
4951
4951
  let X = [];
4952
- G && (X = at.map((ce) => ce.id)), et || tt(X), nt?.(X);
4953
- }, [at, et, nt, tt]), zn = H((G, X) => {
4954
- const ce = X ? [{ field: G, sort: X }] : [];
4955
- Ot || Wt(ce), b?.(ce);
4952
+ G && (X = st.map((ue) => ue.id)), tt || nt(X), ot?.(X);
4953
+ }, [st, tt, ot, nt]), zn = H((G, X) => {
4954
+ const ue = X ? [{ field: G, sort: X }] : [];
4955
+ Ot || Wt(ue), b?.(ue);
4956
4956
  }, [Ot, b, Wt]), Fo = H((G, X) => {
4957
- const ce = Oe.filter((pe) => pe.field !== G), fe = X ? [...ce, { field: G, sort: X }] : ce;
4958
- Ot || Wt(fe), b?.(fe);
4959
- }, [Oe, Ot, b, Wt]), { focusedCell: Ut, setFocusedCell: pn, handleFocus: Oo, handleBlur: Wo, handleKeyDown: Ao } = Jo({
4960
- allRenderableRows: hn,
4957
+ const ue = Oe.filter((pe) => pe.field !== G), he = X ? [...ue, { field: G, sort: X }] : ue;
4958
+ Ot || Wt(he), b?.(he);
4959
+ }, [Oe, Ot, b, Wt]), { focusedCell: Kt, setFocusedCell: mn, handleFocus: Oo, handleBlur: Wo, handleKeyDown: Ao } = Jo({
4960
+ allRenderableRows: xn,
4961
4961
  navigationColumns: $n,
4962
4962
  checkboxSelection: d,
4963
4963
  selectedRowIds: Se,
4964
4964
  handleSelectionChange: jt,
4965
- handleDetailPanelToggle: Ht,
4966
- editingHandlers: st,
4967
- setKeyboardMode: it,
4965
+ handleDetailPanelToggle: Gt,
4966
+ editingHandlers: dt,
4967
+ setKeyboardMode: lt,
4968
4968
  sortModel: Oe,
4969
4969
  handleSort: zn,
4970
4970
  isCellEditable: I,
4971
4971
  pagination: ze,
4972
4972
  pageSize: Ee.pageSize,
4973
4973
  virtualization: Ne,
4974
- viewportRef: ot
4975
- }), xn = H((G) => {
4976
- it(!1), pn({ id: G.row.id, field: G.field }), zt.current?.focus({ preventScroll: !0 }), x?.(G);
4977
- }, [x, it, pn]), Bn = J(st.editingCell);
4974
+ viewportRef: rt
4975
+ }), wn = H((G) => {
4976
+ lt(!1), mn({ id: G.row.id, field: G.field }), Bt.current?.focus({ preventScroll: !0 }), x?.(G);
4977
+ }, [x, lt, mn]), Bn = J(dt.editingCell);
4978
4978
  re(() => {
4979
- const G = !!Bn.current, X = !!st.editingCell;
4980
- G && !X && zt.current?.focus({ preventScroll: !0 }), Bn.current = st.editingCell;
4981
- }, [st.editingCell]);
4979
+ const G = !!Bn.current, X = !!dt.editingCell;
4980
+ G && !X && Bt.current?.focus({ preventScroll: !0 }), Bn.current = dt.editingCell;
4981
+ }, [dt.editingCell]);
4982
4982
  const $o = cr({
4983
4983
  renderContext: Ne.renderContext,
4984
- pinnedTopRows: gn,
4985
- pinnedBottomRows: fn,
4984
+ pinnedTopRows: hn,
4985
+ pinnedBottomRows: pn,
4986
4986
  paginatedUnpinnedRows: kt,
4987
4987
  sortedUnpinnedRows: He,
4988
4988
  pagination: ze
4989
- }), zo = t.length > 0 && Se.size === t.length, Bo = Se.size > 0 && Se.size < t.length, Do = xe.useMemo(() => Ke.some((G) => !!G.rowSpan), [Ke]), [Et, Kt] = xe.useState(!1), mn = xe.useRef(null), wn = xe.useRef(null), Dn = xe.useMemo(() => {
4989
+ }), zo = t.length > 0 && Se.size === t.length, Bo = Se.size > 0 && Se.size < t.length, Do = xe.useMemo(() => Ke.some((G) => !!G.rowSpan), [Ke]), [Et, Yt] = xe.useState(!1), vn = xe.useRef(null), bn = xe.useRef(null), Dn = xe.useMemo(() => {
4990
4990
  if (!ee?.toolbar) return null;
4991
- const G = D ? void 0 : (X, ce) => {
4992
- const fe = [...Gt], pe = fe.indexOf(X), we = fe.indexOf(ce);
4991
+ const G = D ? void 0 : (X, ue) => {
4992
+ const he = [...Vt], pe = he.indexOf(X), we = he.indexOf(ue);
4993
4993
  if (pe === -1 || we === -1) return;
4994
- const _e = [...fe];
4995
- _e.splice(pe, 1), _e.splice(we, 0, X), O || Vt(_e);
4994
+ const _e = [...he];
4995
+ _e.splice(pe, 1), _e.splice(we, 0, X), O || Ut(_e);
4996
4996
  const Ce = Ke.find((Nt) => Nt.field === X);
4997
4997
  Ce && $?.({ oldIndex: pe, targetIndex: we, column: Ce });
4998
4998
  };
4999
4999
  return {
5000
5000
  apiRef: ke.apiRef,
5001
- columns: un,
5001
+ columns: fn,
5002
5002
  baseColumns: e,
5003
5003
  aggregationModel: Te,
5004
- onAggregationModelChange: En,
5005
- ...he || Pe || We ? {
5006
- pivotModel: rn,
5007
- onPivotModelChange: Nn
5004
+ onAggregationModelChange: Mn,
5005
+ ...fe || Pe || We ? {
5006
+ pivotModel: ln,
5007
+ onPivotModelChange: Pn
5008
5008
  } : {},
5009
5009
  filterModel: Ie,
5010
5010
  onFilterModelChange: _,
5011
5011
  columnVisibilityModel: Xe,
5012
5012
  onColumnVisibilityModelChange: At,
5013
5013
  onColumnReorder: G,
5014
- onColumnOrderReset: D ? void 0 : () => Vt(e.map((X) => X.field)),
5014
+ onColumnOrderReset: D ? void 0 : () => Ut(e.map((X) => X.field)),
5015
5015
  forceColumnsOpen: Et,
5016
- onColumnsPanelClose: () => Kt(!1),
5016
+ onColumnsPanelClose: () => Yt(!1),
5017
5017
  ...me?.toolbar
5018
5018
  };
5019
5019
  }, [
5020
5020
  ee?.toolbar,
5021
5021
  D,
5022
- Gt,
5023
- un,
5022
+ Vt,
5023
+ fn,
5024
5024
  Ke,
5025
5025
  O,
5026
5026
  $,
5027
- Vt,
5027
+ Ut,
5028
5028
  ke.apiRef,
5029
5029
  e,
5030
5030
  Te,
5031
- En,
5032
- he,
5031
+ Mn,
5032
+ fe,
5033
5033
  Pe,
5034
5034
  We,
5035
- rn,
5036
- Nn,
5035
+ ln,
5036
+ Pn,
5037
5037
  Ie,
5038
5038
  _,
5039
5039
  Xe,
@@ -5044,13 +5044,13 @@ function Vi(n) {
5044
5044
  return re(() => {
5045
5045
  if (!Et || ee?.toolbar) return;
5046
5046
  function G(X) {
5047
- wn.current && !wn.current.contains(X.target) && Kt(!1);
5047
+ bn.current && !bn.current.contains(X.target) && Yt(!1);
5048
5048
  }
5049
5049
  return document.addEventListener("mousedown", G), () => document.removeEventListener("mousedown", G);
5050
5050
  }, [Et, ee?.toolbar]), /* @__PURE__ */ r.jsxs(
5051
5051
  "div",
5052
5052
  {
5053
- ref: mn,
5053
+ ref: vn,
5054
5054
  className: ["ogx", Fe, s && "ogx--auto-height", Do && "ogx--row-spanning", Ft && "ogx--list-view"].filter(Boolean).join(" "),
5055
5055
  style: {
5056
5056
  ...Ae,
@@ -5065,31 +5065,31 @@ function Vi(n) {
5065
5065
  hi,
5066
5066
  {
5067
5067
  isOpen: Et,
5068
- containerRef: mn,
5069
- panelRef: wn,
5068
+ containerRef: vn,
5069
+ panelRef: bn,
5070
5070
  effectiveColumns: Ke,
5071
5071
  columnVisibilityModel: Xe,
5072
- effectiveColumnOrder: Gt,
5072
+ effectiveColumnOrder: Vt,
5073
5073
  columnOrder: O,
5074
5074
  disableColumnReorder: D,
5075
- onClose: () => Kt(!1),
5075
+ onClose: () => Yt(!1),
5076
5076
  onColumnVisibilityChange: At,
5077
5077
  onColumnOrderChange: $,
5078
- setInternalColumnOrder: Vt
5078
+ setInternalColumnOrder: Ut
5079
5079
  }
5080
5080
  ),
5081
- Ft && Rn && /* @__PURE__ */ r.jsx(
5081
+ Ft && En && /* @__PURE__ */ r.jsx(
5082
5082
  Jr,
5083
5083
  {
5084
5084
  ariaLabel: te,
5085
- allRenderableRows: hn,
5085
+ allRenderableRows: xn,
5086
5086
  filteredRows: Qe,
5087
5087
  pagination: ze,
5088
5088
  effectivePaginationModel: Ee,
5089
5089
  pageSizeOptions: y,
5090
5090
  selectedRowIds: Se,
5091
- listViewColumn: Rn,
5092
- noRowsLabel: tn,
5091
+ listViewColumn: En,
5092
+ noRowsLabel: nn,
5093
5093
  rowHeight: Ve,
5094
5094
  checkboxSelection: d,
5095
5095
  paginationMode: z,
@@ -5102,30 +5102,30 @@ function Vi(n) {
5102
5102
  paginationOf: $e.paginationOf,
5103
5103
  paginationPage: $e.paginationPage
5104
5104
  } : void 0,
5105
- onRowClick: Dt,
5105
+ onRowClick: Ht,
5106
5106
  onSelectionChange: jt,
5107
- onPaginationModelChange: ln
5107
+ onPaginationModelChange: an
5108
5108
  }
5109
5109
  ),
5110
5110
  !Ft && /* @__PURE__ */ r.jsx(
5111
5111
  "div",
5112
5112
  {
5113
5113
  ref: (G) => {
5114
- ot.current = G, zt.current = G;
5114
+ rt.current = G, Bt.current = G;
5115
5115
  },
5116
5116
  className: "ogx__viewport",
5117
5117
  onScroll: Ro,
5118
5118
  role: "grid",
5119
5119
  "aria-label": te || "Data grid",
5120
5120
  "aria-rowcount": Qe.length + 1,
5121
- "aria-colcount": e.length + (d ? 1 : 0) + (Be ? 1 : 0) + (U ? 1 : 0),
5121
+ "aria-colcount": e.length + (d ? 1 : 0) + (Be ? 1 : 0) + (K ? 1 : 0),
5122
5122
  "aria-busy": bt,
5123
5123
  tabIndex: 0,
5124
5124
  onKeyDownCapture: () => {
5125
- it(!0);
5125
+ lt(!0);
5126
5126
  },
5127
5127
  onMouseDownCapture: () => {
5128
- it(!1);
5128
+ lt(!1);
5129
5129
  },
5130
5130
  onKeyDown: Ao,
5131
5131
  onFocus: Oo,
@@ -5157,17 +5157,17 @@ function Vi(n) {
5157
5157
  onColumnResize: Po,
5158
5158
  columnWidths: De,
5159
5159
  pinnedColumns: Je,
5160
- focusedCell: Ut,
5160
+ focusedCell: Kt,
5161
5161
  onHeaderClick: (G) => {
5162
- pn({ id: "HEADER", field: G }), it(!1), zt.current?.focus({ preventScroll: !0 });
5162
+ mn({ id: "HEADER", field: G }), lt(!1), Bt.current?.focus({ preventScroll: !0 });
5163
5163
  },
5164
- onDragStart: qe ? void 0 : ct.onDragStart,
5165
- onDragOver: qe ? void 0 : ct.onDragOver,
5166
- onDragEnd: qe ? void 0 : ct.onDragEnd,
5167
- onDrop: qe ? void 0 : ct.onDrop,
5168
- draggedColumn: qe ? void 0 : ct.draggedColumn,
5169
- dragOverColumn: qe ? void 0 : ct.dragOverColumn,
5170
- rowReordering: U,
5164
+ onDragStart: qe ? void 0 : ut.onDragStart,
5165
+ onDragOver: qe ? void 0 : ut.onDragOver,
5166
+ onDragEnd: qe ? void 0 : ut.onDragEnd,
5167
+ onDrop: qe ? void 0 : ut.onDrop,
5168
+ draggedColumn: qe ? void 0 : ut.draggedColumn,
5169
+ dragOverColumn: qe ? void 0 : ut.dragOverColumn,
5170
+ rowReordering: K,
5171
5171
  hasDetailPanel: Be,
5172
5172
  pinCheckboxColumn: W,
5173
5173
  pinExpandColumn: A,
@@ -5178,38 +5178,38 @@ function Vi(n) {
5178
5178
  [G]: !1
5179
5179
  });
5180
5180
  },
5181
- onManageColumns: () => Kt(!0),
5181
+ onManageColumns: () => Yt(!0),
5182
5182
  onPinColumn: (G, X) => {
5183
- const ce = [...wt?.left ?? []], fe = [...wt?.right ?? []], pe = ce.filter((_e) => _e !== G), we = fe.filter((_e) => _e !== G);
5184
- on(X === "left" ? { left: [...pe, G], right: we } : X === "right" ? { left: pe, right: [...we, G] } : { left: pe, right: we });
5183
+ const ue = [...et?.left ?? []], he = [...et?.right ?? []], pe = ue.filter((_e) => _e !== G), we = he.filter((_e) => _e !== G);
5184
+ rn(X === "left" ? { left: [...pe, G], right: we } : X === "right" ? { left: pe, right: [...we, G] } : { left: pe, right: we });
5185
5185
  }
5186
5186
  }
5187
5187
  ),
5188
- !bt && !ve.dataSource.error && Qe.length === 0 && /* @__PURE__ */ r.jsx(xr, { noRowsLabel: tn, width: Ne.totalWidth }),
5188
+ !bt && !ve.dataSource.error && Qe.length === 0 && /* @__PURE__ */ r.jsx(xr, { noRowsLabel: nn, width: Ne.totalWidth }),
5189
5189
  /* @__PURE__ */ r.jsx(
5190
5190
  Kn,
5191
5191
  {
5192
- rows: gn,
5192
+ rows: hn,
5193
5193
  position: "top",
5194
5194
  columns: Ne.virtualColumns,
5195
5195
  selectedRowIds: Se,
5196
5196
  checkboxSelection: d,
5197
- onRowClick: Dt,
5198
- onCellClick: xn,
5197
+ onRowClick: Ht,
5198
+ onCellClick: wn,
5199
5199
  onSelectionChange: jt,
5200
5200
  columnWidths: De,
5201
5201
  pinnedColumns: Je,
5202
5202
  pinnedRows: N,
5203
5203
  hasDetailPanel: Be,
5204
- expandedRowIds: dt,
5204
+ expandedRowIds: ct,
5205
5205
  getDetailPanelContent: T,
5206
5206
  getDetailPanelHeight: C,
5207
- onDetailPanelToggle: Ht,
5207
+ onDetailPanelToggle: Gt,
5208
5208
  pinCheckboxColumn: W,
5209
5209
  pinExpandColumn: A,
5210
- focusedCell: Ut,
5211
- colspanMap: gt.colspanMap,
5212
- rowSpanningCaches: gt.rowSpanningState.caches,
5210
+ focusedCell: Kt,
5211
+ colspanMap: ft.colspanMap,
5212
+ rowSpanningCaches: ft.rowSpanningState.caches,
5213
5213
  rowHeight: Ve,
5214
5214
  rowMetaMap: St
5215
5215
  }
@@ -5226,26 +5226,26 @@ function Vi(n) {
5226
5226
  viewportWidth: ve.dimensions.viewportWidth,
5227
5227
  checkboxSelection: d,
5228
5228
  hasDetailPanel: Be,
5229
- rowReordering: U,
5229
+ rowReordering: K,
5230
5230
  rowHeight: Ve,
5231
5231
  pinnedRows: N,
5232
5232
  selectedRowIds: Se,
5233
- onRowClick: Dt,
5234
- onCellClick: xn,
5233
+ onRowClick: Ht,
5234
+ onCellClick: wn,
5235
5235
  onSelectionChange: jt,
5236
5236
  columnWidths: De,
5237
5237
  pinnedColumns: Je,
5238
- expandedRowIds: dt,
5238
+ expandedRowIds: ct,
5239
5239
  getDetailPanelContent: T,
5240
5240
  getDetailPanelHeight: C,
5241
- onDetailPanelToggle: Ht,
5241
+ onDetailPanelToggle: Gt,
5242
5242
  pinCheckboxColumn: W,
5243
5243
  pinExpandColumn: A,
5244
5244
  rowReorderHandlers: Io,
5245
- editingHandlers: st,
5246
- focusedCell: Ut,
5247
- colspanMap: gt.colspanMap,
5248
- rowSpanningCaches: gt.rowSpanningState.caches,
5245
+ editingHandlers: dt,
5246
+ focusedCell: Kt,
5247
+ colspanMap: ft.colspanMap,
5248
+ rowSpanningCaches: ft.rowSpanningState.caches,
5249
5249
  paginationMode: z,
5250
5250
  dataSourceLoading: ve.dataSource.loading,
5251
5251
  sortedUnpinnedRowCount: He.length,
@@ -5257,42 +5257,42 @@ function Vi(n) {
5257
5257
  /* @__PURE__ */ r.jsx(
5258
5258
  Kn,
5259
5259
  {
5260
- rows: fn,
5260
+ rows: pn,
5261
5261
  position: "bottom",
5262
5262
  columns: Ne.virtualColumns,
5263
5263
  selectedRowIds: Se,
5264
5264
  checkboxSelection: d,
5265
- onRowClick: Dt,
5266
- onCellClick: xn,
5265
+ onRowClick: Ht,
5266
+ onCellClick: wn,
5267
5267
  onSelectionChange: jt,
5268
5268
  columnWidths: De,
5269
5269
  pinnedColumns: Je,
5270
5270
  pinnedRows: N,
5271
5271
  hasDetailPanel: Be,
5272
- expandedRowIds: dt,
5272
+ expandedRowIds: ct,
5273
5273
  getDetailPanelContent: T,
5274
5274
  getDetailPanelHeight: C,
5275
- onDetailPanelToggle: Ht,
5275
+ onDetailPanelToggle: Gt,
5276
5276
  pinCheckboxColumn: W,
5277
5277
  pinExpandColumn: A,
5278
- focusedCell: Ut,
5279
- colspanMap: gt.colspanMap,
5280
- rowSpanningCaches: gt.rowSpanningState.caches,
5278
+ focusedCell: Kt,
5279
+ colspanMap: ft.colspanMap,
5280
+ rowSpanningCaches: ft.rowSpanningState.caches,
5281
5281
  rowHeight: Ve,
5282
5282
  rowMetaMap: St
5283
5283
  }
5284
5284
  ),
5285
- ft && !he && /* @__PURE__ */ r.jsx(
5285
+ ht && !fe && /* @__PURE__ */ r.jsx(
5286
5286
  pr,
5287
5287
  {
5288
- columns: un,
5288
+ columns: fn,
5289
5289
  aggregationModel: Te,
5290
5290
  aggregationResult: Rt,
5291
5291
  columnWidths: To,
5292
5292
  rowHeight: Ve,
5293
5293
  checkboxSelection: d,
5294
5294
  hasDetailPanel: Be,
5295
- rowReordering: U,
5295
+ rowReordering: K,
5296
5296
  pinnedColumns: Je
5297
5297
  }
5298
5298
  )
@@ -5310,8 +5310,8 @@ function Vi(n) {
5310
5310
  pageSize: Ee.pageSize,
5311
5311
  rowCount: ve.pagination.rowCount,
5312
5312
  pageSizeOptions: y,
5313
- onPageChange: (X) => ln({ ...Ee, page: X }),
5314
- onPageSizeChange: (X) => ln({ ...Ee, pageSize: X, page: 0 }),
5313
+ onPageChange: (X) => an({ ...Ee, page: X }),
5314
+ onPageSizeChange: (X) => an({ ...Ee, pageSize: X, page: 0 }),
5315
5315
  localeText: $e ? {
5316
5316
  paginationRowsPerPage: $e.paginationRowsPerPage,
5317
5317
  paginationOf: $e.paginationOf,
@@ -5324,7 +5324,7 @@ function Vi(n) {
5324
5324
  /* @__PURE__ */ r.jsxs("div", { className: "ogx-aria-live-status", role: "status", "aria-live": "polite", children: [
5325
5325
  bt ? "Loading data..." : "",
5326
5326
  ve.dataSource.error ? `Error: ${ve.dataSource.error instanceof Error ? ve.dataSource.error.message : "Unknown error"}` : "",
5327
- !E && !ve.dataSource.error && (Qe.length === 0 ? tn : Ie && ((Ie.quickFilterValues?.length || 0) > 0 || (Ie.items?.length || 0) > 0) ? `${Qe.length} ${Qe.length === 1 ? "row" : "rows"} found` : "")
5327
+ !E && !ve.dataSource.error && (Qe.length === 0 ? nn : Ie && ((Ie.quickFilterValues?.length || 0) > 0 || (Ie.items?.length || 0) > 0) ? `${Qe.length} ${Qe.length === 1 ? "row" : "rows"} found` : "")
5328
5328
  ] }),
5329
5329
  /* @__PURE__ */ r.jsx(mr, { error: ve.dataSource.error })
5330
5330
  ]
@@ -5339,7 +5339,7 @@ function xi(n, t) {
5339
5339
  return n.find((e) => "field" in e && e.field === t);
5340
5340
  }
5341
5341
  const mi = ({ col: n, item: t, onChange: e }) => {
5342
- const o = Zt(), i = rr(n.type), l = !!t, s = t?.operator ?? i[0], [a, d] = ne(t?.value != null ? String(t.value) : ""), f = J(e), h = J(t), w = J(n.field), m = J(s);
5342
+ const o = en(), i = rr(n.type), l = !!t, s = t?.operator ?? i[0], [a, d] = ne(t?.value != null ? String(t.value) : ""), f = J(e), h = J(t), w = J(n.field), m = J(s);
5343
5343
  Me(() => {
5344
5344
  f.current = e, h.current = t, w.current = n.field, m.current = s;
5345
5345
  });
@@ -5432,7 +5432,7 @@ const mi = ({ col: n, item: t, onChange: e }) => {
5432
5432
  ] })
5433
5433
  ] });
5434
5434
  }, wi = ({ filterModel: n, columns: t, onFilterModelChange: e }) => {
5435
- const o = ue(() => n.items ?? [], [n.items]), i = n.logicOperator ?? "and", l = H((d, f) => {
5435
+ const o = de(() => n.items ?? [], [n.items]), i = n.logicOperator ?? "and", l = H((d, f) => {
5436
5436
  const h = o.filter((m) => "field" in m && m.field !== d), w = f ? [...h, f] : h;
5437
5437
  e({ ...n, items: w });
5438
5438
  }, [o, n, e]), s = H((d) => {
@@ -5726,7 +5726,7 @@ function yi({ value: n = "", onChange: t, placeholder: e = "Search...", debounce
5726
5726
  }
5727
5727
  );
5728
5728
  }
5729
- function Jt({
5729
+ function Qt({
5730
5730
  title: n,
5731
5731
  children: t,
5732
5732
  placement: e = "top",
@@ -6082,11 +6082,11 @@ function Ki({
6082
6082
  re(() => {
6083
6083
  m && (M(!0), N(!1), C(!1), A(!1));
6084
6084
  }, [m]);
6085
- const D = J(null), O = J(null), $ = J(null), Y = J(null), U = J(null), v = J(null), E = J(null), L = i ?? Ni, F = L.rowFields.length > 0 || L.columnFields.length > 0 || L.valueFields.length > 0, B = n.filter(
6085
+ const D = J(null), O = J(null), $ = J(null), Y = J(null), K = J(null), v = J(null), E = J(null), L = i ?? Ni, F = L.rowFields.length > 0 || L.columnFields.length > 0 || L.valueFields.length > 0, B = n.filter(
6086
6086
  (Q) => Q.aggregable !== !1 && (Q.type === "number" || Q.aggregable === !0)
6087
- ), K = Object.keys(e).filter(
6087
+ ), V = Object.keys(e).filter(
6088
6088
  (Q) => e[Q] && e[Q] !== "none"
6089
- ).length, V = H(
6089
+ ).length, U = H(
6090
6090
  (Q, ge) => {
6091
6091
  if (!o) return;
6092
6092
  const z = { ...e };
@@ -6103,7 +6103,7 @@ function Ki({
6103
6103
  items: s?.items || []
6104
6104
  };
6105
6105
  a(z);
6106
- }, [s, a]), ie = s?.quickFilterValues?.[0] || "", I = s?.items?.length || 0, de = new Set(
6106
+ }, [s, a]), ie = s?.quickFilterValues?.[0] || "", I = s?.items?.length || 0, ce = new Set(
6107
6107
  n.filter((Q) => d[Q.field] !== !1).map((Q) => Q.field)
6108
6108
  ), oe = H((Q, ge) => {
6109
6109
  if (!f) return;
@@ -6134,14 +6134,14 @@ function Ki({
6134
6134
  placeholder: "Search..."
6135
6135
  }
6136
6136
  ) }),
6137
- f && /* @__PURE__ */ r.jsxs("div", { ref: U, className: "ogx-toolbar__dropdown-wrapper", style: { marginRight: 4 }, children: [
6137
+ f && /* @__PURE__ */ r.jsxs("div", { ref: K, className: "ogx-toolbar__dropdown-wrapper", style: { marginRight: 4 }, children: [
6138
6138
  R ? R({
6139
6139
  onClick: () => {
6140
6140
  M((Q) => !Q), N(!1), C(!1), A(!1);
6141
6141
  },
6142
6142
  isOpen: P,
6143
- activeCount: n.length - de.size
6144
- }) : /* @__PURE__ */ r.jsx(Jt, { title: "Columns", children: /* @__PURE__ */ r.jsx(
6143
+ activeCount: n.length - ce.size
6144
+ }) : /* @__PURE__ */ r.jsx(Qt, { title: "Columns", children: /* @__PURE__ */ r.jsx(
6145
6145
  "button",
6146
6146
  {
6147
6147
  ref: $,
@@ -6156,9 +6156,9 @@ function Ki({
6156
6156
  P && /* @__PURE__ */ r.jsx(
6157
6157
  ji,
6158
6158
  {
6159
- anchorRef: R ? U : $,
6159
+ anchorRef: R ? K : $,
6160
6160
  columns: n,
6161
- visibleColumns: de,
6161
+ visibleColumns: ce,
6162
6162
  onVisibilityChange: oe,
6163
6163
  onShowAll: ae,
6164
6164
  onHideAll: q,
@@ -6178,7 +6178,7 @@ function Ki({
6178
6178
  },
6179
6179
  isOpen: W,
6180
6180
  activeCount: I
6181
- }) : /* @__PURE__ */ r.jsx(Jt, { title: "Filters", children: /* @__PURE__ */ r.jsxs(
6181
+ }) : /* @__PURE__ */ r.jsx(Qt, { title: "Filters", children: /* @__PURE__ */ r.jsxs(
6182
6182
  "button",
6183
6183
  {
6184
6184
  ref: Y,
@@ -6205,7 +6205,7 @@ function Ki({
6205
6205
  )
6206
6206
  ] }),
6207
6207
  l && /* @__PURE__ */ r.jsxs("div", { className: "ogx-toolbar__dropdown-wrapper", style: { marginRight: 4 }, children: [
6208
- /* @__PURE__ */ r.jsx(Jt, { title: "Pivot", children: /* @__PURE__ */ r.jsxs(
6208
+ /* @__PURE__ */ r.jsx(Qt, { title: "Pivot", children: /* @__PURE__ */ r.jsxs(
6209
6209
  "button",
6210
6210
  {
6211
6211
  ref: O,
@@ -6240,8 +6240,8 @@ function Ki({
6240
6240
  N((Q) => !Q), C(!1), M(!1), A(!1);
6241
6241
  },
6242
6242
  isOpen: k,
6243
- activeCount: K
6244
- }) : /* @__PURE__ */ r.jsx(Jt, { title: "Summaries", children: /* @__PURE__ */ r.jsxs(
6243
+ activeCount: V
6244
+ }) : /* @__PURE__ */ r.jsx(Qt, { title: "Summaries", children: /* @__PURE__ */ r.jsxs(
6245
6245
  "button",
6246
6246
  {
6247
6247
  ref: D,
@@ -6253,7 +6253,7 @@ function Ki({
6253
6253
  },
6254
6254
  children: [
6255
6255
  /* @__PURE__ */ r.jsx(io, {}),
6256
- K > 0 && /* @__PURE__ */ r.jsx("span", { className: "ogx-toolbar__dot", "aria-label": `${K} active summaries` })
6256
+ V > 0 && /* @__PURE__ */ r.jsx("span", { className: "ogx-toolbar__dot", "aria-label": `${V} active summaries` })
6257
6257
  ]
6258
6258
  }
6259
6259
  ) }),
@@ -6263,10 +6263,10 @@ function Ki({
6263
6263
  anchorRef: S ? E : D,
6264
6264
  aggregationModel: e,
6265
6265
  aggregableColumns: B,
6266
- onFunctionChange: V,
6266
+ onFunctionChange: U,
6267
6267
  onClearAll: le,
6268
6268
  onClose: () => N(!1),
6269
- activeCount: K
6269
+ activeCount: V
6270
6270
  }
6271
6271
  )
6272
6272
  ] }),
@@ -6392,31 +6392,31 @@ async function Xi(n, t, e = {}) {
6392
6392
  R.forEach((E) => {
6393
6393
  if (E.type === "group-header") {
6394
6394
  const F = `${" ".repeat(E.depth * 2)}${E.groupField ?? ""}: ${String(E.groupValue ?? "")}`;
6395
- C.push(c.map((B, K) => K === 0 ? F : ""));
6395
+ C.push(c.map((B, V) => V === 0 ? F : ""));
6396
6396
  } else if (E.type === "leaf" && E.row) {
6397
6397
  const L = E.row, F = " ".repeat(E.depth * 2);
6398
- C.push(c.map((B, K) => (K === 0 ? F : "") + Xn(L, B)));
6398
+ C.push(c.map((B, V) => (V === 0 ? F : "") + Xn(L, B)));
6399
6399
  } else if (E.type === "group-subtotal" && E.aggregatedValues) {
6400
6400
  const L = " ".repeat(E.depth * 2);
6401
6401
  C.push(c.map((F, B) => {
6402
6402
  if (B === 0) return `${L}Subtotal`;
6403
- const K = E.aggregatedValues[F.field];
6404
- if (K == null) return "";
6405
- let V = K;
6406
- return F.valueFormatter ? V = F.valueFormatter({ value: K, row: {}, field: F.field }) : v[F.field] && (V = Re(K, v[F.field])), String(V);
6403
+ const V = E.aggregatedValues[F.field];
6404
+ if (V == null) return "";
6405
+ let U = V;
6406
+ return F.valueFormatter ? U = F.valueFormatter({ value: V, row: {}, field: F.field }) : v[F.field] && (U = Re(V, v[F.field])), String(U);
6407
6407
  }));
6408
6408
  } else E.type === "grand-total" && E.aggregatedValues && (P = [c.map((F, B) => {
6409
6409
  if (B === 0) return "Grand Total";
6410
- const K = E.aggregatedValues[F.field];
6411
- if (K == null) return "";
6412
- let V = K;
6413
- return F.valueFormatter ? V = F.valueFormatter({ value: K, row: {}, field: F.field }) : v[F.field] && (V = Re(K, v[F.field])), String(V);
6410
+ const V = E.aggregatedValues[F.field];
6411
+ if (V == null) return "";
6412
+ let U = V;
6413
+ return F.valueFormatter ? U = F.valueFormatter({ value: V, row: {}, field: F.field }) : v[F.field] && (U = Re(V, v[F.field])), String(U);
6414
6414
  })]);
6415
6415
  });
6416
6416
  } else
6417
6417
  C = k.map((v) => c.map((E) => Xn(v, E))), h && w && (P = [c.map((E, L) => {
6418
6418
  if (L === 0)
6419
- return c.some((V) => w[V.field]) ? "TOTAL" : "";
6419
+ return c.some((U) => w[U.field]) ? "TOTAL" : "";
6420
6420
  const F = h[E.field];
6421
6421
  if (F == null) return "";
6422
6422
  let B = F;
@@ -6441,10 +6441,10 @@ async function Xi(n, t, e = {}) {
6441
6441
  showHead: "everyPage",
6442
6442
  margin: { top: g, left: g, right: g, bottom: g + 6 }
6443
6443
  });
6444
- const U = b.getNumberOfPages();
6445
- for (let v = 1; v <= U; v++)
6444
+ const K = b.getNumberOfPages();
6445
+ for (let v = 1; v <= K; v++)
6446
6446
  b.setPage(v), b.setFontSize(8), b.setTextColor(150, 150, 150), b.text(
6447
- `Page ${v} of ${U}`,
6447
+ `Page ${v} of ${K}`,
6448
6448
  S - g,
6449
6449
  j - 8,
6450
6450
  { align: "right" }
@@ -6530,7 +6530,7 @@ function Ji(n, t, e = {}) {
6530
6530
  `;
6531
6531
  }
6532
6532
  }
6533
- kn(f, o, "text/csv;charset=utf-8;");
6533
+ jn(f, o, "text/csv;charset=utf-8;");
6534
6534
  }
6535
6535
  function Le(n) {
6536
6536
  return n.includes(",") || n.includes('"') || n.includes(`
@@ -6600,7 +6600,7 @@ function Qi(n, t, e = {}) {
6600
6600
  }), h += "</tr>";
6601
6601
  }
6602
6602
  }
6603
- h += "</tbody></table></body></html>", kn(h, o, "application/vnd.ms-excel");
6603
+ h += "</tbody></table></body></html>", jn(h, o, "application/vnd.ms-excel");
6604
6604
  }
6605
6605
  function ye(n) {
6606
6606
  return n.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
@@ -6663,7 +6663,7 @@ function Zi(n, t, e = {}) {
6663
6663
  } else
6664
6664
  d = h;
6665
6665
  }
6666
- kn(i ? JSON.stringify(d, null, 2) : JSON.stringify(d), o, "application/json;charset=utf-8;");
6666
+ jn(i ? JSON.stringify(d, null, 2) : JSON.stringify(d), o, "application/json;charset=utf-8;");
6667
6667
  }
6668
6668
  async function el(n, t, e) {
6669
6669
  const o = window.open("", "_blank");
@@ -6781,7 +6781,7 @@ async function el(n, t, e) {
6781
6781
  }
6782
6782
  }
6783
6783
  }
6784
- function kn(n, t, e) {
6784
+ function jn(n, t, e) {
6785
6785
  const o = new Blob([n], { type: e }), i = URL.createObjectURL(o), l = document.createElement("a");
6786
6786
  l.href = i, l.download = t, document.body.appendChild(l), l.click(), document.body.removeChild(l), URL.revokeObjectURL(i);
6787
6787
  }
@@ -6853,10 +6853,10 @@ async function tl(n, t, e = {}) {
6853
6853
  }), p.forEach((L) => {
6854
6854
  const F = w[L.field], B = h[L.field];
6855
6855
  if (F == null || B == null) return;
6856
- let K = B;
6857
- L.valueFormatter ? K = L.valueFormatter({ value: B, row: {}, field: L.field }) : K = Re(B, F);
6858
- const V = v.addRow([L.headerName ?? L.field, F.toUpperCase(), K]);
6859
- V.getCell(3).alignment = { horizontal: "right" }, V.getCell(3).font = { bold: !0, size: f };
6856
+ let V = B;
6857
+ L.valueFormatter ? V = L.valueFormatter({ value: B, row: {}, field: L.field }) : V = Re(B, F);
6858
+ const U = v.addRow([L.headerName ?? L.field, F.toUpperCase(), V]);
6859
+ U.getCell(3).alignment = { horizontal: "right" }, U.getCell(3).font = { bold: !0, size: f };
6860
6860
  }), v.getColumn(1).width = 20, v.getColumn(2).width = 12, v.getColumn(3).width = 18;
6861
6861
  continue;
6862
6862
  }
@@ -6878,9 +6878,9 @@ async function tl(n, t, e = {}) {
6878
6878
  });
6879
6879
  }), v.length > 0) {
6880
6880
  const L = await Wi(v);
6881
- for (const [F, { buffer: B, extension: K }] of L) {
6882
- const V = x.addImage({ buffer: B, extension: K });
6883
- S.set(F, V);
6881
+ for (const [F, { buffer: B, extension: V }] of L) {
6882
+ const U = x.addImage({ buffer: B, extension: V });
6883
+ S.set(F, U);
6884
6884
  }
6885
6885
  }
6886
6886
  }
@@ -6904,34 +6904,34 @@ async function tl(n, t, e = {}) {
6904
6904
  to: { row: 1, column: p.length }
6905
6905
  }), A ? Y.views = [{ state: "frozen", ySplit: 1, showGridLines: !1 }] : Y.views = [{ showGridLines: !1 }];
6906
6906
  }
6907
- let U = P ? 1 : 0;
6907
+ let K = P ? 1 : 0;
6908
6908
  if (O.forEach((v, E) => {
6909
6909
  const L = p.map((B) => {
6910
6910
  if (l[B.field]?.embedImage) return "";
6911
- let K = v[B.field];
6912
- return B.valueGetter && (K = B.valueGetter({ row: v, field: B.field, value: K })), Ti(B, K) === "string" && B.valueFormatter && K != null && (K = B.valueFormatter({ value: K, row: v, field: B.field })), K;
6911
+ let V = v[B.field];
6912
+ return B.valueGetter && (V = B.valueGetter({ row: v, field: B.field, value: V })), Ti(B, V) === "string" && B.valueFormatter && V != null && (V = B.valueFormatter({ value: V, row: v, field: B.field })), V;
6913
6913
  }), F = Y.addRow(L);
6914
6914
  if (F.font = { size: f }, D && E % 2 === 1 && F.eachCell((B) => {
6915
6915
  B.fill = { type: "pattern", pattern: "solid", fgColor: { argb: Ye(D) } };
6916
- }), F.eachCell((B, K) => {
6917
- const V = p[K - 1];
6918
- V && (B.alignment = {
6919
- horizontal: l[V.field]?.alignment ?? (V.type === "number" ? "right" : "left"),
6916
+ }), F.eachCell((B, V) => {
6917
+ const U = p[V - 1];
6918
+ U && (B.alignment = {
6919
+ horizontal: l[U.field]?.alignment ?? (U.type === "number" ? "right" : "left"),
6920
6920
  vertical: "middle"
6921
6921
  }, B.border = { bottom: { style: "thin", color: { argb: "FFf1f5f9" } } });
6922
6922
  }), $.length > 0) {
6923
- const B = $.reduce((le, se) => Math.max(le, l[se.field]?.imageHeight ?? 40), 0), K = Math.ceil(B / 1.333), V = K * 1.333;
6924
- F.height = K, $.forEach((le) => {
6923
+ const B = $.reduce((le, se) => Math.max(le, l[se.field]?.imageHeight ?? 40), 0), V = Math.ceil(B / 1.333), U = V * 1.333;
6924
+ F.height = V, $.forEach((le) => {
6925
6925
  const se = p.indexOf(le), ie = v[le.field], I = typeof ie == "string" ? S.get(ie) : void 0;
6926
6926
  if (I === void 0) {
6927
6927
  F.getCell(se + 1).value = typeof ie == "string" ? ie : "";
6928
6928
  return;
6929
6929
  }
6930
- const de = l[le.field], oe = de?.imageWidth ?? 40, ae = de?.imageHeight ?? 40, Q = (Y.getColumn(se + 1).width ?? 8) * 7 + 5, ge = Math.max(0, Q - oe) / 2, z = Math.max(0, V - ae) / 2;
6930
+ const ce = l[le.field], oe = ce?.imageWidth ?? 40, ae = ce?.imageHeight ?? 40, Q = (Y.getColumn(se + 1).width ?? 8) * 7 + 5, ge = Math.max(0, Q - oe) / 2, z = Math.max(0, U - ae) / 2;
6931
6931
  Y.addImage(I, {
6932
6932
  tl: {
6933
6933
  col: se,
6934
- row: U,
6934
+ row: K,
6935
6935
  nativeColOff: Math.floor(ge * 9525),
6936
6936
  nativeRowOff: Math.floor(z * 9525)
6937
6937
  },
@@ -6941,18 +6941,18 @@ async function tl(n, t, e = {}) {
6941
6941
  });
6942
6942
  } else
6943
6943
  F.height = 16;
6944
- U++;
6944
+ K++;
6945
6945
  }), M && h && w) {
6946
6946
  const v = p.map((B) => {
6947
- const K = w[B.field];
6948
- return K ? K.toUpperCase() : "";
6947
+ const V = w[B.field];
6948
+ return V ? V.toUpperCase() : "";
6949
6949
  }), E = Y.addRow(v);
6950
6950
  E.height = 16, E.font = { size: f - 1, italic: !0, color: { argb: "FF94a3b8" } }, E.eachCell((B) => {
6951
6951
  B.alignment = { horizontal: "right", vertical: "middle" }, B.border = { top: { style: "thin", color: { argb: "FFcbd5e1" } } };
6952
6952
  });
6953
6953
  const L = p.map((B) => {
6954
- const K = w[B.field], V = h[B.field];
6955
- return K == null || V == null ? "" : B.valueFormatter ? B.valueFormatter({ value: V, row: {}, field: B.field }) : Re(V, K);
6954
+ const V = w[B.field], U = h[B.field];
6955
+ return V == null || U == null ? "" : B.valueFormatter ? B.valueFormatter({ value: U, row: {}, field: B.field }) : Re(U, V);
6956
6956
  }), F = Y.addRow(L);
6957
6957
  F.height = 18, F.font = { bold: !0, size: f, color: { argb: Ye(a) } }, F.eachCell((B) => {
6958
6958
  B.fill = { type: "pattern", pattern: "solid", fgColor: { argb: Ye(s) } }, B.alignment = { horizontal: "right", vertical: "middle" }, B.border = Ai();
@@ -7276,7 +7276,7 @@ function sl(n) {
7276
7276
  debounceMs: o = 300,
7277
7277
  include: i,
7278
7278
  storage: l = typeof window < "u" ? window.localStorage : void 0
7279
- } = t, s = ue(() => {
7279
+ } = t, s = de(() => {
7280
7280
  if (l)
7281
7281
  return Bi(e, l);
7282
7282
  }, [e, l]), a = J(null), d = J(null), f = H(() => {
@@ -7296,17 +7296,17 @@ function sl(n) {
7296
7296
  return { initialState: s, onStateChange: h, clearState: w };
7297
7297
  }
7298
7298
  export {
7299
- qt as Button,
7299
+ Xt as Button,
7300
7300
  ai as Cell,
7301
- Qt as Checkbox,
7301
+ Zt as Checkbox,
7302
7302
  Vi as DataGrid,
7303
7303
  nl as DataGridThemeProvider,
7304
7304
  wi as FilterPanel,
7305
7305
  Ki as GridToolbar,
7306
- Jt as GridTooltip,
7306
+ Qt as GridTooltip,
7307
7307
  Ir as Header,
7308
7308
  qi as Input,
7309
- bn as Row,
7309
+ Cn as Row,
7310
7310
  Ui as Skeleton,
7311
7311
  ll as amberTheme,
7312
7312
  al as compactTheme,