@ishibashi0112/spreadsheet-grid 1.5.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -6,9 +6,9 @@ import { arePropsEqualWithStyleKeys as T, mergeStyles as E, resolveSlotFromSigna
6
6
  import { resolveGridHeightLayout as A } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/gridHeight";
7
7
  import { createPortal as te } from "react-dom";
8
8
  import { createGridEngine as j } from "@ishibashi0112/spreadsheet-grid-core/internal/engine/createGridEngine";
9
- import { createCellCommands as ne, writeCellValueTo as re } from "@ishibashi0112/spreadsheet-grid-core/internal/engine/cellCommands";
10
- import { GRID_DENSITY_DIMENSIONS as M } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/density";
11
- import { isActiveCellRendered as N, placementRectInPane as P, resolveCellPlacement as ie, resolveColumnHoverRect as ae, resolvePaneBandRect as oe, resolvePaneSegmentRects as se } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/cellPlacement";
9
+ import { createCellCommands as M, writeCellValueTo as ne } from "@ishibashi0112/spreadsheet-grid-core/internal/engine/cellCommands";
10
+ import { GRID_DENSITY_DIMENSIONS as N } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/density";
11
+ import { isActiveCellRendered as P, placementRectInPane as re, resolveCellPlacement as ie, resolveColumnHoverRect as ae, resolvePaneBandRect as oe, resolvePaneSegmentRects as se } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/cellPlacement";
12
12
  import { GRID_POPUP_SELECTOR as ce, createEscapeClaimController as F, isClearableSelection as le, isEscapeClaimedByGrid as I } from "@ishibashi0112/spreadsheet-grid-core/internal/controllers/escapeClaimController";
13
13
  import { IME_INPUT_ATTRIBUTE as ue, isFromRenderHeaderControl as de, isImeComposingKeyEvent as fe, syncRenderHeaderControlHover as pe } from "@ishibashi0112/spreadsheet-grid-core/internal/logic/domGuards";
14
14
  import { gridActions as me } from "@ishibashi0112/spreadsheet-grid-core/internal/model/gridActions";
@@ -378,31 +378,31 @@ function $r({ ariaLabel: e, options: i, value: a, onCommit: o, onCancel: s, onRe
378
378
  highlight: t.index ?? e,
379
379
  typeahead: t.state
380
380
  };
381
- }), k = b(ee.typeahead), [A, j] = x(ee.highlight), [ne, re] = x(null), [M] = x(Ke);
382
- t(D, ne !== null, d, { layout: ne });
383
- let N = c(ne !== null), [P, ie] = x(null), [ae, oe] = x(null), se = m((e) => {
384
- E.current = e, e && (e.focus(), re(Ve(e.getBoundingClientRect(), i.length, window.innerWidth, window.innerHeight, M)));
385
- }, [i.length, M]);
381
+ }), k = b(ee.typeahead), [A, j] = x(ee.highlight), [M, ne] = x(null), [N] = x(Ke);
382
+ t(D, M !== null, d, { layout: M });
383
+ let P = c(M !== null), [re, ie] = x(null), [ae, oe] = x(null), se = m((e) => {
384
+ E.current = e, e && (e.focus(), ne(Ve(e.getBoundingClientRect(), i.length, window.innerWidth, window.innerHeight, N)));
385
+ }, [i.length, N]);
386
386
  g(() => {
387
387
  let e = () => {
388
388
  let e = E.current;
389
- e && re(Ve(e.getBoundingClientRect(), i.length, window.innerWidth, window.innerHeight, M));
389
+ e && ne(Ve(e.getBoundingClientRect(), i.length, window.innerWidth, window.innerHeight, N));
390
390
  };
391
391
  return window.addEventListener("resize", e), window.addEventListener("scroll", e, !0), () => {
392
392
  window.removeEventListener("resize", e), window.removeEventListener("scroll", e, !0);
393
393
  };
394
- }, [i.length, M]);
394
+ }, [i.length, N]);
395
395
  let ce = b(null);
396
396
  n(() => {
397
397
  let e = `${S}:${C}`, t = ce.current;
398
398
  ce.current = e;
399
399
  let n = E.current;
400
- t === null || t === e || !n || re(Ve(n.getBoundingClientRect(), i.length, window.innerWidth, window.innerHeight, M));
400
+ t === null || t === e || !n || ne(Ve(n.getBoundingClientRect(), i.length, window.innerWidth, window.innerHeight, N));
401
401
  }, [
402
402
  S,
403
403
  C,
404
404
  i.length,
405
- M
405
+ N
406
406
  ]), g(() => {
407
407
  let e = D.current;
408
408
  e && e.children[A]?.scrollIntoView?.({ block: "nearest" });
@@ -474,15 +474,15 @@ function $r({ ariaLabel: e, options: i, value: a, onCommit: o, onCancel: s, onRe
474
474
  onBlur: () => s(),
475
475
  role: "combobox",
476
476
  "aria-label": e,
477
- "aria-expanded": ne !== null,
478
- "aria-controls": ne === null ? void 0 : O,
479
- "aria-activedescendant": ne !== null && ue ? `${O}-${A}` : void 0,
480
- "aria-invalid": P !== null || void 0,
481
- className: w("ssg-cell-editor-input ssg-cell-editor-input--select", P !== null && "ssg-cell-editor-input--invalid"),
477
+ "aria-expanded": M !== null,
478
+ "aria-controls": M === null ? void 0 : O,
479
+ "aria-activedescendant": M !== null && ue ? `${O}-${A}` : void 0,
480
+ "aria-invalid": re !== null || void 0,
481
+ className: w("ssg-cell-editor-input ssg-cell-editor-input--select", re !== null && "ssg-cell-editor-input--invalid"),
482
482
  style: u ? { textAlign: u } : void 0
483
483
  }),
484
- P === null ? null : /* @__PURE__ */ R(Jr, { message: P }),
485
- ne && N ? te(/* @__PURE__ */ R("div", {
484
+ re === null ? null : /* @__PURE__ */ R(Jr, { message: re }),
485
+ M && P ? te(/* @__PURE__ */ R("div", {
486
486
  ref: D,
487
487
  role: "listbox",
488
488
  id: O,
@@ -490,10 +490,10 @@ function $r({ ariaLabel: e, options: i, value: a, onCommit: o, onCancel: s, onRe
490
490
  className: w("ssg-select-editor-popover", d, f?.className),
491
491
  style: {
492
492
  ...f?.style,
493
- left: ne.left,
494
- top: ne.top,
495
- width: ne.width,
496
- maxHeight: ne.maxHeight
493
+ left: M.left,
494
+ top: M.top,
495
+ width: M.width,
496
+ maxHeight: M.maxHeight
497
497
  },
498
498
  onPointerDown: (e) => e.preventDefault(),
499
499
  children: i.length === 0 ? /* @__PURE__ */ R("div", {
@@ -508,7 +508,7 @@ function $r({ ariaLabel: e, options: i, value: a, onCommit: o, onCancel: s, onRe
508
508
  onPointerEnter: () => j(t),
509
509
  children: e.label
510
510
  }, `${e.value}-${t}`))
511
- }), N) : null
511
+ }), P) : null
512
512
  ] });
513
513
  }
514
514
  //#endregion
@@ -1089,8 +1089,8 @@ function Si({ derivedSummary: e, globalFilterText: t, setGlobalFilterText: n, sh
1089
1089
  //#endregion
1090
1090
  //#region src/view/gridBarHelpers.ts
1091
1091
  var Ci = (e, t, n) => e ? e(t) : n, wi = 80;
1092
- function Ti({ pane: e, ownsRowHeader: t, leadingWidth: n, rowIndex: i, rowKey: a, sourceRowIndex: o, activeCellDomId: s, cellEditorDomId: c, rowNumber: l, ariaRowOffset: u = 0, row: d, top: f, renderEntries: p, rowHeight: m, autoHeight: h, showCellOverflowTooltip: g, showValidationMarks: _, conditionalFormatStats: v, conditionalFormatResolvers: y, autoHeightMinHeight: b, verticalAlign: x, rowHeaderCellStyle: S, isRowHovered: C, isWholeGridSelected: T, isRowSelected: E, showRowCheckbox: D, isRowChecked: O, activeColInRow: k, editingColInRow: A, selectedColStart: te, selectedColEnd: j, readOnly: ne, canEditCell: re, onRowHeaderPointerDown: M, onRowHeaderPointerEnter: N, onRowHeaderPointerLeave: P, onCellPointerDown: ie, onCellPointerEnter: ae, onCellClick: oe, onCellDoubleClick: se, renderCellContent: ce, rowClassName: F, rowStyle: le, slots: I }) {
1093
- let ue = r(), de = re ? {
1092
+ function Ti({ pane: e, ownsRowHeader: t, leadingWidth: n, rowIndex: i, rowKey: a, sourceRowIndex: o, activeCellDomId: s, cellEditorDomId: c, rowNumber: l, ariaRowOffset: u = 0, row: d, top: f, renderEntries: p, rowHeight: m, autoHeight: h, showCellOverflowTooltip: g, showValidationMarks: _, conditionalFormatStats: v, conditionalFormatResolvers: y, autoHeightMinHeight: b, verticalAlign: x, rowHeaderCellStyle: S, isRowHovered: C, isWholeGridSelected: T, isRowSelected: E, showRowCheckbox: D, isRowChecked: O, activeColInRow: k, editingColInRow: A, selectedColStart: te, selectedColEnd: j, readOnly: M, canEditCell: ne, onRowHeaderPointerDown: N, onRowHeaderPointerEnter: P, onRowHeaderPointerLeave: re, onCellPointerDown: ie, onCellPointerEnter: ae, onCellClick: oe, onCellDoubleClick: se, renderCellContent: ce, rowClassName: F, rowStyle: le, slots: I }) {
1093
+ let ue = r(), de = ne ? {
1094
1094
  sourceRowIndex: o,
1095
1095
  rowKey: a
1096
1096
  } : void 0;
@@ -1111,9 +1111,9 @@ function Ti({ pane: e, ownsRowHeader: t, leadingWidth: n, rowIndex: i, rowKey: a
1111
1111
  children: [t && /* @__PURE__ */ R("div", {
1112
1112
  role: "rowheader",
1113
1113
  "aria-colindex": 1,
1114
- onPointerDown: (e) => M(i, e),
1115
- onPointerEnter: (e) => N(i, e),
1116
- onPointerLeave: () => P(i),
1114
+ onPointerDown: (e) => N(i, e),
1115
+ onPointerEnter: (e) => P(i, e),
1116
+ onPointerLeave: () => re(i),
1117
1117
  className: w("ssg-header-cell", "ssg-row-header-cell", D && "ssg-row-header-cell--checkbox", (T || E) && "ssg-header-cell--selected", C && "ssg-header-cell--hovered", F, I?.rowHeaderCell?.className),
1118
1118
  style: {
1119
1119
  ...I?.rowHeaderCell?.style,
@@ -1129,9 +1129,9 @@ function Ti({ pane: e, ownsRowHeader: t, leadingWidth: n, rowIndex: i, rowKey: a
1129
1129
  }), p.map((e) => {
1130
1130
  if (!e) return null;
1131
1131
  let t = e.logicalIndex, r = e.column, l = n + e.paneLocalStart, u = e.paneLocalSize, f = t === k, p = t === A, S = E || te >= 0 && t >= te && t <= j, T = !Kt({
1132
- readOnly: ne,
1133
- canEditCell: re
1134
- }, i, t, d, r, de), D = h && r.autoHeight === !0, O = r.verticalAlign ?? x ?? (D ? "top" : "center"), M = h && m > b && O === "top", N = r.cellClassName, P = r.cellNote, fe = typeof N == "function" || P ? {
1132
+ readOnly: M,
1133
+ canEditCell: ne
1134
+ }, i, t, d, r, de), D = h && r.autoHeight === !0, O = r.verticalAlign ?? x ?? (D ? "top" : "center"), N = h && m > b && O === "top", P = r.cellClassName, re = r.cellNote, fe = typeof P == "function" || re ? {
1135
1135
  row: d,
1136
1136
  rowIndex: i,
1137
1137
  sourceRowIndex: o,
@@ -1144,13 +1144,13 @@ function Ti({ pane: e, ownsRowHeader: t, leadingWidth: n, rowIndex: i, rowKey: a
1144
1144
  isEditing: p,
1145
1145
  readOnly: T
1146
1146
  } : null, pe;
1147
- pe = typeof N == "function" ? fe ? N(fe) : void 0 : N;
1147
+ pe = typeof P == "function" ? fe ? P(fe) : void 0 : P;
1148
1148
  let me = ee(pe), he = y ? r.conditionalFormat : void 0, ge = null, _e = null;
1149
1149
  if (y && he && (he.dataBar || he.colorScale)) {
1150
1150
  let e = v.get(r.key), t = fe ? fe.value : Gt(d, r);
1151
1151
  he.dataBar && (ge = y.resolveDataBar(he.dataBar, t, e)), he.colorScale && (_e = y.resolveColorScaleBackground(he.colorScale, t, e));
1152
1152
  }
1153
- let ve = ge ? ge.negative ? he?.dataBar?.negativeColor : he?.dataBar?.color : void 0, ye = _ && en(r) ? $t(r, d, Gt(d, r), ue) : null, be = P && fe ? tn(P(fe)) : null, xe = nn(ye, be), Se = w("ssg-body-cell", r.align === "center" && "ssg-body-cell--align-center", r.align === "right" && "ssg-body-cell--align-right", D && "ssg-body-cell--autoheight", M && "ssg-body-cell--valign-top", T && !S && "ssg-body-cell--readonly", ye !== null && "ssg-body-cell--invalid", be !== null && "ssg-body-cell--has-note", ge !== null && "ssg-body-cell--cf-bar", _e !== null && "ssg-body-cell--cf-scale", he?.chips !== void 0 && u < wi && "ssg-body-cell--chip-compact", C && "ssg-body-cell--row-hovered", F, me.className, I?.bodyCell?.className), Ce = {};
1153
+ let ve = ge ? ge.negative ? he?.dataBar?.negativeColor : he?.dataBar?.color : void 0, ye = _ && en(r) ? $t(r, d, Gt(d, r), ue) : null, be = re && fe ? tn(re(fe)) : null, xe = nn(ye, be), Se = w("ssg-body-cell", r.align === "center" && "ssg-body-cell--align-center", r.align === "right" && "ssg-body-cell--align-right", D && "ssg-body-cell--autoheight", N && "ssg-body-cell--valign-top", T && !S && "ssg-body-cell--readonly", ye !== null && "ssg-body-cell--invalid", be !== null && "ssg-body-cell--has-note", ge !== null && "ssg-body-cell--cf-bar", _e !== null && "ssg-body-cell--cf-scale", he?.chips !== void 0 && u < wi && "ssg-body-cell--chip-compact", C && "ssg-body-cell--row-hovered", F, me.className, I?.bodyCell?.className), Ce = {};
1154
1154
  r.wordBreak !== void 0 && (Ce.wordBreak = r.wordBreak), r.lineBreak !== void 0 && (Ce.lineBreak = r.lineBreak);
1155
1155
  let L = Qt({
1156
1156
  enabled: g,
@@ -1298,7 +1298,7 @@ function ki({ pane: e, ownsRowHeader: t, leadingWidth: n, rowIndex: r, top: i, r
1298
1298
  });
1299
1299
  }
1300
1300
  var Ai = /* @__PURE__ */ p(ki);
1301
- function ji({ pane: e, ownsRowHeader: t, leadingWidth: n, rowModel: r, virtualRows: i, virtualRowIndexes: a, renderEntries: o, rowHeight: s, autoHeight: c = !1, verticalAlign: l, showCellOverflowTooltip: u = !1, showValidationMarks: d = !0, conditionalFormatStats: f = rn, conditionalFormatResolvers: p, isServerSide: m = !1, collapsedGroupKeys: h, onGroupToggle: g, GroupRow: _, labelRowLayer: v, labelViewIndexes: y, rowHeaderCellStyle: b, ariaRowOffset: x = 0, hoveredRowIndex: S, isWholeGridSelected: C, enableRowSelection: w, rowSelectionState: T, activeCell: E, editingCell: D, selectionSnapshot: O, readOnly: k, canEditCell: A, onRowHeaderPointerDown: te, onRowHeaderPointerEnter: j, onRowHeaderPointerLeave: ne, onCellPointerDown: re, onCellPointerEnter: M, onCellClick: N, onCellDoubleClick: P, renderCellContent: ie, getRowClassName: ae, slots: oe, activeCellDomId: se, cellEditorDomId: ce }) {
1301
+ function ji({ pane: e, ownsRowHeader: t, leadingWidth: n, rowModel: r, virtualRows: i, virtualRowIndexes: a, renderEntries: o, rowHeight: s, autoHeight: c = !1, verticalAlign: l, showCellOverflowTooltip: u = !1, showValidationMarks: d = !0, conditionalFormatStats: f = rn, conditionalFormatResolvers: p, isServerSide: m = !1, collapsedGroupKeys: h, onGroupToggle: g, GroupRow: _, labelRowLayer: v, labelViewIndexes: y, rowHeaderCellStyle: b, ariaRowOffset: x = 0, hoveredRowIndex: S, isWholeGridSelected: C, enableRowSelection: w, rowSelectionState: T, activeCell: E, editingCell: D, selectionSnapshot: O, readOnly: k, canEditCell: A, onRowHeaderPointerDown: te, onRowHeaderPointerEnter: j, onRowHeaderPointerLeave: M, onCellPointerDown: ne, onCellPointerEnter: N, onCellClick: P, onCellDoubleClick: re, renderCellContent: ie, getRowClassName: ae, slots: oe, activeCellDomId: se, cellEditorDomId: ce }) {
1302
1302
  return /* @__PURE__ */ R(L, { children: i.map((i) => {
1303
1303
  let F = i.index;
1304
1304
  if (!a.has(F)) return null;
@@ -1319,9 +1319,9 @@ function ji({ pane: e, ownsRowHeader: t, leadingWidth: n, rowModel: r, virtualRo
1319
1319
  isCollapsed: h?.has(I.groupKey) === !0,
1320
1320
  onGroupToggle: g,
1321
1321
  onRowHeaderPointerEnter: j,
1322
- onRowHeaderPointerLeave: ne,
1323
- onCellPointerDown: re,
1324
- onCellPointerEnter: M,
1322
+ onRowHeaderPointerLeave: M,
1323
+ onCellPointerDown: ne,
1324
+ onCellPointerEnter: N,
1325
1325
  slots: oe
1326
1326
  }, String(Zt(I)));
1327
1327
  let ue = r.getLabelRow?.(F);
@@ -1360,9 +1360,9 @@ function ji({ pane: e, ownsRowHeader: t, leadingWidth: n, rowModel: r, virtualRo
1360
1360
  showRowCheckbox: w,
1361
1361
  onRowHeaderPointerDown: te,
1362
1362
  onRowHeaderPointerEnter: j,
1363
- onRowHeaderPointerLeave: ne,
1364
- onCellPointerDown: re,
1365
- onCellPointerEnter: M,
1363
+ onRowHeaderPointerLeave: M,
1364
+ onCellPointerDown: ne,
1365
+ onCellPointerEnter: N,
1366
1366
  slots: oe
1367
1367
  }, `__ssg_skeleton__:${F}`) : null;
1368
1368
  let fe = r.getRowKey(F) ?? F, pe = r.getSourceIndex(F) ?? F, me = w ? Ut(T, fe) : !1, he = O.kind === "row" && F >= O.startRow && F <= O.endRow, ge = O.kind === "cell" && F >= O.startRow && F <= O.endRow, _e = O.kind === "col" || ge ? O.startCol : -1, ve = O.kind === "col" || ge ? O.endCol : -1, ye = E && E.row === F ? E.col : -1, be = D && D.row === F ? D.col : -1, xe = ee(ae?.(de, F, {
@@ -1408,11 +1408,11 @@ function ji({ pane: e, ownsRowHeader: t, leadingWidth: n, rowModel: r, virtualRo
1408
1408
  canEditCell: A,
1409
1409
  onRowHeaderPointerDown: te,
1410
1410
  onRowHeaderPointerEnter: j,
1411
- onRowHeaderPointerLeave: ne,
1412
- onCellPointerDown: re,
1413
- onCellPointerEnter: M,
1414
- onCellClick: N,
1415
- onCellDoubleClick: P,
1411
+ onRowHeaderPointerLeave: M,
1412
+ onCellPointerDown: ne,
1413
+ onCellPointerEnter: N,
1414
+ onCellClick: P,
1415
+ onCellDoubleClick: re,
1416
1416
  renderCellContent: ie,
1417
1417
  rowClassName: xe.className,
1418
1418
  rowStyle: xe.style,
@@ -1483,8 +1483,8 @@ function Pi({ entries: e, mode: t, paneWidth: n, cardStickyLeft: r, cardWidth: i
1483
1483
  }, e.rowKey);
1484
1484
  }) });
1485
1485
  }
1486
- var Fi = /* @__PURE__ */ p(Pi), Y = 120;
1487
- function Ii({ isActive: e, title: t, ariaLabel: n, className: r, style: i, onPointerDown: a, onClick: o, children: s }) {
1486
+ var Fi = /* @__PURE__ */ p(Pi), Ii = 120;
1487
+ function Y({ isActive: e, title: t, ariaLabel: n, className: r, style: i, onPointerDown: a, onClick: o, children: s }) {
1488
1488
  return /* @__PURE__ */ R("button", {
1489
1489
  type: "button",
1490
1490
  tabIndex: -1,
@@ -1531,7 +1531,7 @@ function Li({ pane: e, ownsRowHeader: t, leadingWidth: n, headerHeight: i, rowHe
1531
1531
  }) : "#"
1532
1532
  }), p.map((e) => {
1533
1533
  if (!e) return null;
1534
- let t = e.logicalIndex, r = e.column, a = n + e.paneLocalStart, s = e.paneLocalSize, l = fn(g[r.key]), u = h.kind === "col" && t >= h.startCol && t <= h.endCol, d = _.findIndex((e) => e.columnKey === r.key), f = d === -1 ? null : _[d], p = O === r.key, v = At(r.key), y = r.key === Et || r.key === zt, b = D && !v, ne = r.headerAlign ?? r.align;
1534
+ let t = e.logicalIndex, r = e.column, a = n + e.paneLocalStart, s = e.paneLocalSize, l = fn(g[r.key]), u = h.kind === "col" && t >= h.startCol && t <= h.endCol, d = _.findIndex((e) => e.columnKey === r.key), f = d === -1 ? null : _[d], p = O === r.key, v = At(r.key), y = r.key === Et || r.key === zt, b = D && !v, M = r.headerAlign ?? r.align;
1535
1535
  return /* @__PURE__ */ z("div", {
1536
1536
  "data-ssg-col-key": r.key,
1537
1537
  role: "columnheader",
@@ -1552,7 +1552,7 @@ function Li({ pane: e, ownsRowHeader: t, leadingWidth: n, headerHeight: i, rowHe
1552
1552
  }
1553
1553
  A(r, e);
1554
1554
  },
1555
- className: w("ssg-header-cell", (c || u) && "ssg-header-cell--selected", m === t && "ssg-header-cell--hovered", ne === "center" && "ssg-header-cell--align-center", ne === "right" && "ssg-header-cell--align-right", s >= Y && "ssg-header-cell--inline-actions", o?.headerCell?.className),
1555
+ className: w("ssg-header-cell", (c || u) && "ssg-header-cell--selected", m === t && "ssg-header-cell--hovered", M === "center" && "ssg-header-cell--align-center", M === "right" && "ssg-header-cell--align-right", s >= Ii && "ssg-header-cell--inline-actions", o?.headerCell?.className),
1556
1556
  style: {
1557
1557
  ...o?.headerCell?.style,
1558
1558
  left: a,
@@ -1647,7 +1647,7 @@ function Li({ pane: e, ownsRowHeader: t, leadingWidth: n, headerHeight: i, rowHe
1647
1647
  })
1648
1648
  ]
1649
1649
  })
1650
- }), b && /* @__PURE__ */ R(Ii, {
1650
+ }), b && /* @__PURE__ */ R(Y, {
1651
1651
  title: j.columnMenu,
1652
1652
  ariaLabel: Ce(j.columnMenuFor, { column: r.title?.trim() || r.key }),
1653
1653
  isActive: p,
@@ -1671,7 +1671,7 @@ var Ri = /* @__PURE__ */ p(Li), zi = [], Bi = {}, Vi = [], Hi = () => null, Ui =
1671
1671
  e.has(t) || (e.add(t), console.warn(n));
1672
1672
  };
1673
1673
  function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSideRefetch: s, onServerSideLoadError: c, onServerSideWriteError: f, columns: p, onRowsChange: C, onColumnsChange: T, rowKeyGetter: D, isRowExportable: O, createRow: k, createOverflowColumn: te, onPasteSkipped: de, pasteFillsSelection: fe, rowHeight: pe, autoHeight: he = !1, estimateRowHeight: ve, verticalAlign: ye, headerHeight: Te, density: Ee = "standard", theme: De = "light", motion: Oe = "auto", popupContainer: ke = "auto", animateRows: Ae = !0, showCopyRange: je = !0, hoverHighlight: Me = "row", highlightChanges: Ne = !1, showSaveStatus: Pe = !0, rowDragMotion: Fe = "ghost", columnDragMotion: Ie = "ghost", find: Le = !1, onFindChange: Re, rowHeaderWidth: ze = 56, height: Be, maxHeight: Ve, readOnly: He = !1, dimReadOnlyCells: Ue = !1, canEditCell: We, enableUndoRedo: Ge = !0, enableClearOnDelete: Ke = !0, editorEnterMove: qe = "down", imeDirectInput: Je = !1, undoHistoryLimit: Ye = 100, onUndoRedoStateChange: Xe, enableRangeSelection: Ze = !0, enableRowSelection: Qe = !1, rowSelectionMode: $e = "multiple", enableSelectAllRows: et, rowSelection: nt, selectedRowKeys: rt, onRowSelectionChange: it, enableGlobalFilter: at = !0, globalFilterMatch: ot = "value", enableColumnFilter: lt = !0, renderFilterDateInput: ut, getFilterOptions: dt, enableSorting: pt = !0, manualFiltering: Mt = !1, manualSorting: Nt = !1, enableColumnResize: Pt = !0, autoSizeColumns: It = !1, showCellOverflowTooltip: Lt = !1, showValidationMarks: Rt = !0, enableRowHover: Ut = !0, enableColumnHeaderHover: Kt = !0, hoveredRowIndex: Jt, onHoveredRowChange: Yt, onCellClick: Xt, onCellDoubleClick: Zt, onActiveCellChange: Qt, enableColumnMenu: $t = !0, noMatchingRowsText: en, noRowsText: tn, ariaLabel: nn, showTopBar: rn = !0, showBottomBar: an = !0, showTopBarSummary: on = !0, showTopBarFilter: sn = !0, globalFilterPlaceholder: cn, globalFilterIcon: ln, localeText: un, showTopBarCounts: dn = !0, showBottomBarCounts: fn = !0, showSelectionAggregates: pn = !0, showFilterChipBar: mn = !1, renderTopBar: hn, renderBottomBar: gn, className: _n, style: yn, classNames: bn, getRowClassName: xn, detailRow: Sn, onExpandedDetailRowKeysChange: Cn, labelRow: wn, totalRow: Tn, pinnedTopRows: En, pinnedBottomRows: Dn, pinnedBottomRowsPlacement: On = "aboveTotal", fillHandle: kn, enableRowDrag: An = !1, isRowDraggable: jn, onRowMove: Mn, canDropRow: Nn, enableContextMenu: Pn = !1, getContextMenuItems: Fn, onContextMenuOpen: In, scrollHint: Ln, ref: Rn, onStateChange: zn, initialState: Bn, includeGroupingInState: Vn = !1, activeCellFollows: Hn = "position", onFiltersChange: Un, onSortChange: Wn, onScroll: Gn }, B) {
1674
- let V = r == null ? t : zi, Kn = p, [qn] = x(() => Se(a(B))), Jn = y(() => qn(un), [qn, un]), Yn = pe ?? M[Ee].rowHeight, Xn = Te ?? M[Ee].headerHeight, Zn = B.scrollHint?.resolveScrollHintOptions, Qn = B.scrollHint?.ScrollHint, $n = y(() => Zn ? Zn(Ln) : null, [Zn, Ln]), H = b(null), er = m(() => xe(H.current, ke), [ke]);
1674
+ let V = r == null ? t : zi, Kn = p, [qn] = x(() => Se(a(B))), Jn = y(() => qn(un), [qn, un]), Yn = pe ?? N[Ee].rowHeight, Xn = Te ?? N[Ee].headerHeight, Zn = B.scrollHint?.resolveScrollHintOptions, Qn = B.scrollHint?.ScrollHint, $n = y(() => Zn ? Zn(Ln) : null, [Zn, Ln]), H = b(null), er = m(() => xe(H.current, ke), [ke]);
1675
1675
  n(() => {
1676
1676
  let e = H.current;
1677
1677
  return be([e, e?.closest(".ssg-root")], er);
@@ -1707,88 +1707,88 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
1707
1707
  An,
1708
1708
  C,
1709
1709
  lr
1710
- ]), gr = y(() => D ?? ((e, t) => t), [D]), K = r != null, _r = hi(Oe), vr = _r === "off" ? ft : void 0, yr = pt, br = lt, xr = at, Sr = U.store, [q, J] = Hr(Sr), [{ scrollTop: Cr, viewportWidth: wr, viewportHeight: Tr, hoveredRowIndex: Er, hoveredColumnIndex: Dr, isCornerHovered: Or, copiedRange: kr, editorInitialValue: Ar = "" }, { setScrollTop: jr, setHoveredRowIndex: Mr, setHoveredColumnIndex: Nr, setIsCornerHovered: Pr, setEditorInitialValue: Fr }] = Ur(Sr), Ir = Jt !== void 0;
1710
+ ]), gr = y(() => D ?? ((e, t) => t), [D]), K = r != null, _r = hi(Oe), vr = _r === "off" ? ft : void 0, yr = pt, br = lt, xr = at, Sr = U.store, [q, J] = Hr(Sr), [{ scrollTop: Cr, viewportWidth: wr, viewportHeight: Tr, hoveredRowIndex: Er, hoveredColumnIndex: Dr, isCornerHovered: Or, copiedRange: kr, editorInitialValue: Ar = "", maxBodyPx: jr }, { setScrollTop: Mr, setHoveredRowIndex: Nr, setHoveredColumnIndex: Pr, setIsCornerHovered: Fr, setEditorInitialValue: Ir }] = Ur(Sr), Lr = Jt !== void 0;
1711
1711
  u(U.hoverRowNotifier, {
1712
1712
  enableRowHover: Ut,
1713
- isHoverControlled: Ir,
1713
+ isHoverControlled: Lr,
1714
1714
  onHoveredRowChange: Yt,
1715
- setHoveredRowIndex: Mr
1715
+ setHoveredRowIndex: Nr
1716
1716
  });
1717
- let Lr = U.hoverRowNotifier.applyHoveredRowChange, Rr = Ut ? Jt === void 0 ? Er : Jt : null;
1717
+ let Rr = U.hoverRowNotifier.applyHoveredRowChange, zr = Ut ? Jt === void 0 ? Er : Jt : null;
1718
1718
  u(U.detailKeysNotifier, {
1719
1719
  expandedKeys: q.expandedDetailRowKeys,
1720
1720
  onChange: Cn
1721
1721
  }, "passive");
1722
- let zr = Sn != null;
1722
+ let qr = Sn != null;
1723
1723
  u(U.detailKeysPruner, {
1724
- enabled: zr && !K,
1724
+ enabled: qr && !K,
1725
1725
  rows: V,
1726
1726
  expandedKeys: q.expandedDetailRowKeys,
1727
1727
  keyOf: gr,
1728
1728
  setExpandedKeys: (e) => J(me.setExpandedDetailRowKeys(e))
1729
1729
  });
1730
- let qr = U.detailIndexCache, [Jr] = x(_e), Yr = wn?.isLabelRow, Xr = wn?.getLabel, Zr = wn?.render, Qr = wn?.className, $r = wn?.height, ei = wn?.sortMode ?? "section", ti = wn?.sticky === !0, ni = wn?.exportText, ri = wn?.keepEmptySections ?? !1, oi = B.labelRow, gi = oi?.StickyLabelLayer, _i = Yr != null && Xr != null && oi !== void 0, bi = typeof Tn == "object" && Tn ? Tn : null, xi = B.totalRow, wi = (Tn === !0 || bi !== null) && xi !== void 0, Ti = bi?.label ?? Jn.totalRowLabel, Ei = bi?.values, Di = bi?.renderCell, Oi = wi ? Math.max(0, bi?.height ?? Yn) : 0, ki = B.pinnedRows?.PinnedRows, Ai = ki && En && En.length > 0 ? En : null, Mi = ki && Dn && Dn.length > 0 ? Dn : null, Ni = Ai?.length ?? 0, Pi = Mi?.length ?? 0, Y = Xn + Ni * Yn, Ii = Oi + Pi * Yn, Li = On === "belowTotal" && Mi !== null && wi, Wi = Ni > 0 ? Y : 0, Gi = y(() => we(q.selection), [q.selection]), { resolvePaneLayout: Ki } = U, { effectiveColumnWidths: qi, paneLayout: Ji, hasLeftPane: Yi, hasRightPane: Xi, centerOwnsRowHeader: Zi, leftLeadingWidth: Qi, centerLeadingWidth: $i, rightLeadingWidth: ea, leftPaneTotalWidth: ta, rightPaneTotalWidth: na, centerContentWidth: ra, totalScrollWidth: ia } = y(() => Ki({
1730
+ let Jr = U.detailIndexCache, [Yr] = x(_e), Xr = wn?.isLabelRow, Zr = wn?.getLabel, Qr = wn?.render, $r = wn?.className, ei = wn?.height, ti = wn?.sortMode ?? "section", ni = wn?.sticky === !0, ri = wn?.exportText, oi = wn?.keepEmptySections ?? !1, gi = B.labelRow, _i = gi?.StickyLabelLayer, bi = Xr != null && Zr != null && gi !== void 0, xi = typeof Tn == "object" && Tn ? Tn : null, wi = B.totalRow, Ti = (Tn === !0 || xi !== null) && wi !== void 0, Ei = xi?.label ?? Jn.totalRowLabel, Di = xi?.values, Oi = xi?.renderCell, ki = Ti ? Math.max(0, xi?.height ?? Yn) : 0, Ai = B.pinnedRows?.PinnedRows, Mi = Ai && En && En.length > 0 ? En : null, Ni = Ai && Dn && Dn.length > 0 ? Dn : null, Pi = Mi?.length ?? 0, Ii = Ni?.length ?? 0, Y = Xn + Pi * Yn, Li = ki + Ii * Yn, Wi = On === "belowTotal" && Ni !== null && Ti, Gi = Pi > 0 ? Y : 0, Ki = y(() => we(q.selection), [q.selection]), { resolvePaneLayout: qi } = U, { effectiveColumnWidths: Ji, paneLayout: Yi, hasLeftPane: Xi, hasRightPane: Zi, centerOwnsRowHeader: Qi, leftLeadingWidth: $i, centerLeadingWidth: ea, rightLeadingWidth: ta, leftPaneTotalWidth: na, rightPaneTotalWidth: ra, centerContentWidth: ia, totalScrollWidth: aa } = y(() => qi({
1731
1731
  orderedColumns: G,
1732
1732
  columnWidths: q.columnWidths,
1733
1733
  viewportWidth: wr,
1734
1734
  rowHeaderWidth: ze
1735
1735
  }), [
1736
- Ki,
1736
+ qi,
1737
1737
  G,
1738
1738
  q.columnWidths,
1739
1739
  wr,
1740
1740
  ze
1741
- ]), aa = pr ? dr : Vi, oa = B.filtering.useFilterPopover({
1741
+ ]), oa = pr ? dr : Vi, sa = B.filtering.useFilterPopover({
1742
1742
  visibleColumns: W,
1743
1743
  columnFilters: q.filters.columnFilters,
1744
1744
  columnFilterEnabled: br,
1745
1745
  gridRootRef: H,
1746
1746
  isServerSide: K,
1747
1747
  rows: V,
1748
- isLabelRow: _i ? Yr : void 0,
1749
- groupColumns: aa
1750
- }), { filterPopoverRef: sa, isFilterPopoverOpen: ca, openedFilterColumn: la, openColumnFilterPopover: ua, closeColumnFilterPopover: da } = oa, { available: fa, columnMenuLayout: pa, columnMenuRef: ma, isColumnMenuOpen: ha, openedMenuColumnKey: ga, openedMenuColumn: _a, openColumnMenuFromButton: va, openColumnMenuFromButtonClick: ya, openColumnMenuFromContextMenu: ba, openColumnMenuFromKeyboard: xa, closeColumnMenu: Sa } = B.columnMenu.useColumnMenu({
1748
+ isLabelRow: bi ? Xr : void 0,
1749
+ groupColumns: oa
1750
+ }), { filterPopoverRef: ca, isFilterPopoverOpen: la, openedFilterColumn: ua, openColumnFilterPopover: da, closeColumnFilterPopover: fa } = sa, { available: pa, columnMenuLayout: ma, columnMenuRef: ha, isColumnMenuOpen: ga, openedMenuColumnKey: _a, openedMenuColumn: va, openColumnMenuFromButton: ya, openColumnMenuFromButtonClick: ba, openColumnMenuFromContextMenu: xa, openColumnMenuFromKeyboard: Sa, closeColumnMenu: Ca } = B.columnMenu.useColumnMenu({
1751
1751
  visibleColumns: W,
1752
1752
  enableColumnMenu: $t,
1753
1753
  gridRootRef: H
1754
- }), Ca = $t && fa, wa = m((e, t) => {
1755
- ca && t.button === 0 && da(), va(e, t);
1754
+ }), wa = $t && pa, Ta = m((e, t) => {
1755
+ la && t.button === 0 && fa(), ya(e, t);
1756
1756
  }, [
1757
- ca,
1758
- da,
1759
- va
1760
- ]), { available: Ta, activeToolPanelTab: Ea, availableToolPanelTabs: Da, toolPanelLayout: Oa, toolPanelFlashTick: ka, toolPanelRef: Aa, openToolPanel: ja, closeToolPanel: Ma, moveToolPanel: Na } = B.toolPanel.useToolPanel({
1757
+ la,
1758
+ fa,
1759
+ ya
1760
+ ]), { available: Ea, activeToolPanelTab: Da, availableToolPanelTabs: Oa, toolPanelLayout: ka, toolPanelFlashTick: Aa, toolPanelRef: ja, openToolPanel: Ma, closeToolPanel: Na, moveToolPanel: Pa } = B.toolPanel.useToolPanel({
1761
1761
  canUseFilterTab: br,
1762
1762
  canUseColumnsTab: $t,
1763
1763
  canUseSortTab: yr,
1764
1764
  gridRootRef: H,
1765
- alliedRef: sa,
1766
- suppressEscape: ca,
1767
- onSuppressedEscape: da
1768
- }), Pa = B.filtering.useFilterPopoverViews({
1769
- needed: la !== null,
1770
- prefetch: br && (fa || Ta) && W.some((e) => !!e.filterType),
1771
- onLoadError: da
1772
- }), Fa = B.toolPanel.useToolPanelViews({
1773
- needed: Ea !== null,
1774
- prefetch: Da.length > 0,
1765
+ alliedRef: ca,
1766
+ suppressEscape: la,
1767
+ onSuppressedEscape: fa
1768
+ }), Fa = B.filtering.useFilterPopoverViews({
1769
+ needed: ua !== null,
1770
+ prefetch: br && (pa || Ea) && W.some((e) => !!e.filterType),
1771
+ onLoadError: fa
1772
+ }), Ia = B.toolPanel.useToolPanelViews({
1773
+ needed: Da !== null,
1774
+ prefetch: Oa.length > 0,
1775
1775
  retainAfterNeeded: !0,
1776
- onLoadError: Ma
1777
- }), { isContextMenuOpen: Ia, openContextMenu: La, renderContextMenuPopover: Ra } = B.contextMenu.useCellContextMenu({
1776
+ onLoadError: Na
1777
+ }), { isContextMenuOpen: La, openContextMenu: Ra, renderContextMenuPopover: za } = B.contextMenu.useCellContextMenu({
1778
1778
  gridRootRef: H,
1779
1779
  localeTexts: Jn
1780
- }), za = B.contextMenu.buildBodyContextMenuParams, Ba = B.contextMenu.buildCellContextMenuParams, Va = b(null), Ha = b(null);
1780
+ }), Ba = B.contextMenu.buildBodyContextMenuParams, Va = B.contextMenu.buildCellContextMenuParams, Ha = b(null), Ua = b(null);
1781
1781
  g(() => {
1782
- J(me.reconcileColumnWidths(Ha.current, Kn)), Ha.current = Kn;
1782
+ J(me.reconcileColumnWidths(Ua.current, Kn)), Ua.current = Kn;
1783
1783
  }, [Kn, J]);
1784
- let Ua = q.filters.globalText, Wa = q.filters.columnFilters, Ga = mt(q.filters), Ka = h(Wa), qa = Ga ? Wa : Ka, { rowPipeline: Ja } = U, Ya = y(() => Ja.resolveLabelRowLayout(V, K ? void 0 : Yr), [
1785
- Ja,
1784
+ let Wa = q.filters.globalText, Ga = q.filters.columnFilters, Ka = mt(q.filters), qa = h(Ga), Ja = Ka ? Ga : qa, { rowPipeline: Ya } = U, Xa = y(() => Ya.resolveLabelRowLayout(V, K ? void 0 : Xr), [
1785
+ Ya,
1786
1786
  V,
1787
1787
  K,
1788
- Yr
1789
- ]), Xa = y(() => {
1790
- if (!Ya) return V;
1791
- let e = Ya.labelIndexes, t = [], n = 0;
1788
+ Xr
1789
+ ]), Za = y(() => {
1790
+ if (!Xa) return V;
1791
+ let e = Xa.labelIndexes, t = [], n = 0;
1792
1792
  for (let r = 0; r < V.length; r += 1) {
1793
1793
  if (n < e.length && e[n] === r) {
1794
1794
  n += 1;
@@ -1797,67 +1797,67 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
1797
1797
  t.push(V[r]);
1798
1798
  }
1799
1799
  return t;
1800
- }, [V, Ya]), Za = y(() => Ja.resolveBaseOrder(V.length, Ya), [
1801
- Ja,
1800
+ }, [V, Xa]), Qa = y(() => Ya.resolveBaseOrder(V.length, Xa), [
1801
+ Ya,
1802
1802
  V.length,
1803
- Ya
1804
- ]), Qa = y(() => pr && dr.length > 0 ? [...W, ...dr] : W, [
1803
+ Xa
1804
+ ]), $a = y(() => pr && dr.length > 0 ? [...W, ...dr] : W, [
1805
1805
  pr,
1806
1806
  dr,
1807
1807
  W
1808
- ]), { globalFilteredOrder: $a, globalFilterStatus: eo, globalFilterProgress: to, relativeDateKey: no, available: ro = !0 } = B.filtering.useFilterOrder({
1808
+ ]), { globalFilteredOrder: eo, globalFilterStatus: to, globalFilterProgress: no, relativeDateKey: ro, available: io = !0 } = B.filtering.useFilterOrder({
1809
1809
  rows: V,
1810
- baseOrder: Za,
1811
- visibleColumns: Qa,
1810
+ baseOrder: Qa,
1811
+ visibleColumns: $a,
1812
1812
  effectiveColumns: hr,
1813
- globalFilterText: Ua,
1813
+ globalFilterText: Wa,
1814
1814
  globalFilterMatch: ot,
1815
- globalFilterUrgent: Ga,
1815
+ globalFilterUrgent: Ka,
1816
1816
  globalFilterEnabled: xr,
1817
1817
  columnFilterEnabled: br,
1818
- columnFilters: Wa,
1819
- deferredColumnFilters: qa,
1818
+ columnFilters: Ga,
1819
+ deferredColumnFilters: Ja,
1820
1820
  manualFiltering: Mt,
1821
1821
  isServerSide: K,
1822
1822
  dateRollover: U.dateRollover
1823
- }), { order: io, rowDragOperable: ao } = y(() => Ja.resolveOrder({
1823
+ }), { order: ao, rowDragOperable: oo } = y(() => Ya.resolveOrder({
1824
1824
  rows: V,
1825
- labelLayout: Ya,
1825
+ labelLayout: Xa,
1826
1826
  filterSortColumns: hr,
1827
- columnFilters: qa,
1828
- globalFilteredOrder: $a,
1827
+ columnFilters: Ja,
1828
+ globalFilteredOrder: eo,
1829
1829
  sort: q.sort,
1830
1830
  rowDragAvailable: mr,
1831
1831
  manualFiltering: Mt,
1832
1832
  manualSorting: Nt,
1833
- relativeDateKey: no
1833
+ relativeDateKey: ro
1834
1834
  }), [
1835
- Ja,
1836
- V,
1837
1835
  Ya,
1836
+ V,
1837
+ Xa,
1838
1838
  hr,
1839
- qa,
1840
- $a,
1839
+ Ja,
1840
+ eo,
1841
1841
  q.sort,
1842
1842
  mr,
1843
1843
  Mt,
1844
1844
  Nt,
1845
- no
1845
+ ro
1846
1846
  ]);
1847
1847
  g(() => {
1848
1848
  process.env.NODE_ENV !== "production" && K && dr.length > 0 && console.warn("[SpreadsheetGrid] serverSide(dataSource)では行グルーピング(rowGroup)は未対応です。rowGroup 指定を無視して通常表示します。\n[SpreadsheetGrid] Row grouping (rowGroup) is not supported with serverSide (dataSource). rowGroup is ignored and rows are shown ungrouped.");
1849
1849
  }, [K, dr.length]), g(() => {
1850
- process.env.NODE_ENV !== "production" && pr && _i && console.warn("[SpreadsheetGrid] 行グルーピング(rowGroup)とラベル行(labelRow)は併用できません。rowGroup 有効中はラベル行を表示しません。\n[SpreadsheetGrid] Row grouping (rowGroup) cannot be combined with label rows (labelRow). Label rows are hidden while rows are grouped.");
1851
- }, [pr, _i]);
1852
- let oo = !Nt && q.sort.length > 0, so = Ua.trim().length > 0 || Object.keys(q.filters.columnFilters).length > 0, co = Mt && so, { groupTree: lo, groupedDisplay: uo, labelDisplay: fo, rowModel: po } = y(() => Ja.resolveClientSideRowModel({
1850
+ process.env.NODE_ENV !== "production" && pr && bi && console.warn("[SpreadsheetGrid] 行グルーピング(rowGroup)とラベル行(labelRow)は併用できません。rowGroup 有効中はラベル行を表示しません。\n[SpreadsheetGrid] Row grouping (rowGroup) cannot be combined with label rows (labelRow). Label rows are hidden while rows are grouped.");
1851
+ }, [pr, bi]);
1852
+ let so = !Nt && q.sort.length > 0, co = Wa.trim().length > 0 || Object.keys(q.filters.columnFilters).length > 0, lo = Mt && co, { groupTree: uo, groupedDisplay: fo, labelDisplay: po, rowModel: mo } = y(() => Ya.resolveClientSideRowModel({
1853
1853
  rows: V,
1854
- order: io,
1854
+ order: ao,
1855
1855
  rowGroupingActive: pr,
1856
- labelLayout: Ya,
1857
- labelSortMode: ei,
1858
- keepEmptySections: ri,
1859
- sortActive: oo,
1860
- getLabel: Xr,
1856
+ labelLayout: Xa,
1857
+ labelSortMode: ti,
1858
+ keepEmptySections: oi,
1859
+ sortActive: so,
1860
+ getLabel: Zr,
1861
1861
  groupColumns: dr,
1862
1862
  aggColumns: fr,
1863
1863
  collapsedGroupKeys: q.collapsedGroupKeys,
@@ -1865,72 +1865,72 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
1865
1865
  sort: q.sort,
1866
1866
  manualSorting: Nt
1867
1867
  }), [
1868
- Ja,
1868
+ Ya,
1869
1869
  V,
1870
- io,
1870
+ ao,
1871
1871
  pr,
1872
- Ya,
1873
- ei,
1874
- ri,
1875
- oo,
1876
- Xr,
1872
+ Xa,
1873
+ ti,
1874
+ oi,
1875
+ so,
1876
+ Zr,
1877
1877
  dr,
1878
1878
  fr,
1879
1879
  q.collapsedGroupKeys,
1880
1880
  gr,
1881
1881
  q.sort,
1882
1882
  Nt
1883
- ]), mo = B.grouping?.BodyGroupRow, ho = m((e) => {
1883
+ ]), ho = B.grouping?.BodyGroupRow, go = m((e) => {
1884
1884
  J(me.toggleGroupCollapsed(e));
1885
- }, [J]), go = y(() => Ja.resolveServerSideQuery({
1885
+ }, [J]), _o = y(() => Ya.resolveServerSideQuery({
1886
1886
  isServerSide: K,
1887
1887
  globalFilterEnabled: xr,
1888
- globalText: Ua,
1888
+ globalText: Wa,
1889
1889
  columnFilterEnabled: br,
1890
- columnFilters: Wa,
1890
+ columnFilters: Ga,
1891
1891
  sortingEnabled: yr,
1892
1892
  sort: q.sort,
1893
- relativeDateKey: no
1893
+ relativeDateKey: ro
1894
1894
  }), [
1895
- Ja,
1895
+ Ya,
1896
1896
  K,
1897
1897
  xr,
1898
- Ua,
1899
- br,
1900
1898
  Wa,
1899
+ br,
1900
+ Ga,
1901
1901
  yr,
1902
1902
  q.sort,
1903
- no
1904
- ]), _o = U.serverSideQueryStore;
1905
- u(_o, {
1906
- value: go,
1903
+ ro
1904
+ ]), vo = U.serverSideQueryStore;
1905
+ u(vo, {
1906
+ value: _o,
1907
1907
  enabled: K
1908
1908
  });
1909
- let { query: vo, queryKey: yo } = S(_o.subscribe, _o.getSnapshot, _o.getSnapshot), bo = B.serverSide.useServerSide({
1909
+ let { query: yo, queryKey: bo } = S(vo.subscribe, vo.getSnapshot, vo.getSnapshot), xo = B.serverSide.useServerSide({
1910
1910
  dataSource: r,
1911
1911
  rowKeyGetter: gr,
1912
- query: vo,
1913
- queryKey: yo,
1912
+ query: yo,
1913
+ queryKey: bo,
1914
1914
  refreshToken: i,
1915
1915
  refetch: s,
1916
1916
  onLoadError: c,
1917
1917
  onWriteError: f,
1918
1918
  onWriteStateChange: U.saveStatus.handle
1919
- }), xo = bo.requestRange, So = K && bo.refetching, Co = He || So, wo = bo.rowModel, X = y(() => K ? Yr && Xr && oi ? oi.wrapRowModelWithLabelRows(wo, Yr, Xr) : wo : po, [
1919
+ }), So = xo.requestRange, Co = K && xo.refetching, wo = He || Co, To = xo.rowModel, X = y(() => K ? Xr && Zr && gi ? gi.wrapRowModelWithLabelRows(To, Xr, Zr) : To : mo, [
1920
1920
  K,
1921
- po,
1922
- wo,
1923
- Yr,
1921
+ mo,
1922
+ To,
1924
1923
  Xr,
1925
- oi
1926
- ]), To = y(() => K && !bo.canUpdateRows ? () => !1 : We, [
1924
+ Zr,
1925
+ gi
1926
+ ]), Eo = y(() => K && !xo.canUpdateRows ? () => !1 : We, [
1927
1927
  K,
1928
- bo.canUpdateRows,
1928
+ xo.canUpdateRows,
1929
1929
  We
1930
- ]), Eo = K && bo.canUpdateRows ? bo.applyCellEdits : void 0, Do = m((e) => {
1930
+ ]), Do = K && xo.canUpdateRows ? xo.applyCellEdits : void 0, Oo = m((e) => {
1931
1931
  let t = H.current, n = G[e.col];
1932
1932
  if (!Pn || !Fn || !t || !n) return !1;
1933
- let r = Array.from(t.querySelectorAll(`[data-row-index="${e.row}"] [data-ssg-col-key]`)).find((e) => e.dataset.ssgColKey === n.key && !kt(t, e)), i = (r ?? t).getBoundingClientRect(), a = Ba({
1933
+ let r = Array.from(t.querySelectorAll(`[data-row-index="${e.row}"] [data-ssg-col-key]`)).find((e) => e.dataset.ssgColKey === n.key && !kt(t, e)), i = (r ?? t).getBoundingClientRect(), a = Va({
1934
1934
  cell: e,
1935
1935
  clientX: i.left,
1936
1936
  clientY: r ? i.bottom : i.top,
@@ -1941,20 +1941,20 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
1941
1941
  });
1942
1942
  if (!a) return !1;
1943
1943
  let o = Fn(a);
1944
- return !o || o.length === 0 ? !1 : (In?.(a), La(a, o, { focus: "firstItem" }), !0);
1944
+ return !o || o.length === 0 ? !1 : (In?.(a), Ra(a, o, { focus: "firstItem" }), !0);
1945
1945
  }, [
1946
1946
  Pn,
1947
1947
  Fn,
1948
1948
  In,
1949
- Ba,
1949
+ Va,
1950
1950
  X,
1951
1951
  G,
1952
1952
  q.selection,
1953
1953
  q.activeCell,
1954
- La
1955
- ]), Oo = m((e) => {
1956
- let t = Do(e);
1957
- if (Va.current = {
1954
+ Ra
1955
+ ]), ko = m((e) => {
1956
+ let t = Oo(e);
1957
+ if (Ha.current = {
1958
1958
  at: performance.now(),
1959
1959
  opened: t
1960
1960
  }, t && typeof window < "u") {
@@ -1966,19 +1966,19 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
1966
1966
  window.addEventListener("contextmenu", t, !0), window.addEventListener("keydown", e, !0), window.addEventListener("pointerdown", e, !0);
1967
1967
  }
1968
1968
  return t;
1969
- }, [Do]), ko = m((e) => {
1969
+ }, [Oo]), Ao = m((e) => {
1970
1970
  if (!Pn || !Fn) return;
1971
1971
  let t = e.target instanceof Element ? e.target : null, n = t !== null && (t === e.currentTarget || t.hasAttribute(ue));
1972
1972
  if (e.nativeEvent.button !== 2 && n) {
1973
- let t = Va.current;
1973
+ let t = Ha.current;
1974
1974
  if (t && performance.now() - t.at < 1e3) {
1975
1975
  t.opened && e.preventDefault();
1976
1976
  return;
1977
1977
  }
1978
- q.activeCell && Do(q.activeCell) && e.preventDefault();
1978
+ q.activeCell && Oo(q.activeCell) && e.preventDefault();
1979
1979
  return;
1980
1980
  }
1981
- let r = za({
1981
+ let r = Ba({
1982
1982
  event: e,
1983
1983
  rowModel: X,
1984
1984
  orderedColumns: G,
@@ -1987,64 +1987,64 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
1987
1987
  });
1988
1988
  if (!r) return;
1989
1989
  let i = Fn(r);
1990
- !i || i.length === 0 || (e.preventDefault(), In?.(r), La(r, i));
1990
+ !i || i.length === 0 || (e.preventDefault(), In?.(r), Ra(r, i));
1991
1991
  }, [
1992
1992
  Pn,
1993
1993
  Fn,
1994
1994
  In,
1995
- za,
1995
+ Ba,
1996
1996
  X,
1997
1997
  G,
1998
1998
  q.selection,
1999
1999
  q.activeCell,
2000
- La,
2001
- Do
2002
- ]), Ao = y(() => wi ? U.resolveTotalRowCells({
2000
+ Ra,
2001
+ Oo
2002
+ ]), jo = y(() => Ti ? U.resolveTotalRowCells({
2003
2003
  rows: V,
2004
- order: K ? null : io,
2004
+ order: K ? null : ao,
2005
2005
  columns: G,
2006
- values: Ei
2006
+ values: Di
2007
2007
  }) : vn, [
2008
2008
  U,
2009
- wi,
2009
+ Ti,
2010
2010
  V,
2011
2011
  K,
2012
- io,
2012
+ ao,
2013
2013
  G,
2014
- Ei
2015
- ]), jo = y(() => xi ? xi.resolveTotalRowLabelColumnKey(G, Ao) : null, [
2016
- xi,
2014
+ Di
2015
+ ]), Mo = y(() => wi ? wi.resolveTotalRowLabelColumnKey(G, jo) : null, [
2016
+ wi,
2017
2017
  G,
2018
- Ao
2019
- ]), Mo = y(() => {
2020
- if (!wi || !xi) return;
2021
- let { formatTotalRowCellText: e, resolveTotalRowCaption: t } = xi, n = /* @__PURE__ */ new Map();
2018
+ jo
2019
+ ]), No = y(() => {
2020
+ if (!Ti || !wi) return;
2021
+ let { formatTotalRowCellText: e, resolveTotalRowCaption: t } = wi, n = /* @__PURE__ */ new Map();
2022
2022
  for (let r of G) {
2023
- let i = Ao.get(r.key);
2023
+ let i = jo.get(r.key);
2024
2024
  if (i) {
2025
2025
  let a = e(r, i);
2026
2026
  n.set(r.key, {
2027
2027
  text: a,
2028
2028
  caption: a === "" ? void 0 : t(i.kind, Jn)
2029
2029
  });
2030
- } else r.key === jo && n.set(r.key, { text: Ti });
2030
+ } else r.key === Mo && n.set(r.key, { text: Ei });
2031
2031
  }
2032
2032
  return n;
2033
2033
  }, [
2034
+ Ti,
2034
2035
  wi,
2035
- xi,
2036
2036
  G,
2037
- Ao,
2038
2037
  jo,
2039
- Ti,
2038
+ Mo,
2039
+ Ei,
2040
2040
  Jn
2041
- ]), No = y(() => Ai || Mi ? [...Ai ?? [], ...Mi ?? []] : void 0, [Ai, Mi]), Po = B.conditionalFormat, Fo = y(() => {
2042
- if (Po) return (e, t, n) => {
2041
+ ]), Po = y(() => Mi || Ni ? [...Mi ?? [], ...Ni ?? []] : void 0, [Mi, Ni]), Fo = B.conditionalFormat, Io = y(() => {
2042
+ if (Fo) return (e, t, n) => {
2043
2043
  let r = t.conditionalFormat?.chips;
2044
2044
  if (!r) return null;
2045
2045
  let i = G.findIndex((e) => e.key === t.key), a = Gt(e, t);
2046
2046
  if (n < 0) {
2047
- let o = -1 - n, s = o < Ni ? "top" : "bottom", c = s === "top" ? o : o - Ni, l = Po.resolveChipSpec(r, {
2047
+ let o = -1 - n, s = o < Pi ? "top" : "bottom", c = s === "top" ? o : o - Pi, l = Fo.resolveChipSpec(r, {
2048
2048
  row: e,
2049
2049
  rowIndex: c,
2050
2050
  sourceRowIndex: c,
@@ -2063,7 +2063,7 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2063
2063
  icon: l.icon !== !1
2064
2064
  } : null;
2065
2065
  }
2066
- let o = Po.resolveChipSpec(r, {
2066
+ let o = Fo.resolveChipSpec(r, {
2067
2067
  row: e,
2068
2068
  rowIndex: n,
2069
2069
  sourceRowIndex: X.getSourceIndex(n) ?? n,
@@ -2082,100 +2082,102 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2082
2082
  } : null;
2083
2083
  };
2084
2084
  }, [
2085
- Po,
2085
+ Fo,
2086
2086
  X,
2087
2087
  G,
2088
- Ni,
2088
+ Pi,
2089
2089
  gr
2090
- ]), Io = B.columnAutosize.useColumnAutosize({
2090
+ ]), Lo = B.columnAutosize.useColumnAutosize({
2091
2091
  rowModel: X,
2092
2092
  gridRootRef: H,
2093
- columnWidths: qi,
2093
+ columnWidths: Ji,
2094
2094
  dispatch: J,
2095
- totalRowTexts: Mo,
2096
- chipOf: Fo,
2097
- pinnedRows: No
2098
- }), { isAutosizing: Lo, runAutosize: Ro } = Io;
2095
+ totalRowTexts: No,
2096
+ chipOf: Io,
2097
+ pinnedRows: Po
2098
+ }), { isAutosizing: Ro, runAutosize: zo } = Lo;
2099
2099
  u(U.autoSizeOnData, {
2100
2100
  mode: It,
2101
2101
  isServerSide: K,
2102
2102
  rows: V,
2103
2103
  visibleColumns: W,
2104
- runAutosize: Ro,
2104
+ runAutosize: zo,
2105
2105
  gridRootRef: H
2106
2106
  }, "passive");
2107
- let Z = X.getRowCount(), zo = G.length;
2107
+ let Z = X.getRowCount(), Bo = G.length;
2108
2108
  g(() => {
2109
- J(me.clampSelectionToRowCount(Z, zo));
2109
+ J(me.clampSelectionToRowCount(Z, Bo));
2110
2110
  }, [
2111
2111
  Z,
2112
- zo,
2112
+ Bo,
2113
2113
  J
2114
2114
  ]);
2115
- let Bo = uo || fo ? io.length : Z, Vo = $n !== null && Z >= $n.minRows ? $n : null, Ho = y(() => {
2115
+ let Vo = fo || po ? ao.length : Z, Ho = $n !== null && Z >= $n.minRows ? $n : null, Uo = y(() => {
2116
2116
  let e = null;
2117
- return () => e ??= Array.from(io, (e) => V[e]);
2118
- }, [io, V]), Uo = y(() => vt(W, qi), [W, qi]), Wo = U.scrollSync;
2119
- u(Wo, {
2117
+ return () => e ??= Array.from(ao, (e) => V[e]);
2118
+ }, [ao, V]), Wo = y(() => vt(W, Ji), [W, Ji]), Go = U.scrollSync;
2119
+ u(Go, {
2120
2120
  scrollContainerRef: ar,
2121
2121
  setViewState: Sr.setViewState,
2122
2122
  onScroll: Gn,
2123
- footerHeight: Ii
2123
+ footerHeight: Li
2124
2124
  });
2125
- let Go = Ji.center.entries, Ko = d({
2125
+ let Ko = Yi.center.entries, qo = d({
2126
2126
  horizontal: !0,
2127
- count: Go.length,
2127
+ count: Ko.length,
2128
2128
  getScrollElement: () => ar.current,
2129
- estimateSize: (e) => Go[e]?.paneLocalSize ?? Go[e]?.column.width ?? 120,
2129
+ estimateSize: (e) => Ko[e]?.paneLocalSize ?? Ko[e]?.column.width ?? 120,
2130
2130
  overscan: 8,
2131
2131
  useFlushSync: !1,
2132
- scrollMargin: ta
2133
- }), qo = Ko.getVirtualItems(), Jo = U.autoHeightMeasurer, { version: Yo, nonce: Xo } = S(Jo.subscribe, Jo.getSnapshot, Jo.getSnapshot), Zo = ve ?? Yn, Qo = Sn?.height ?? Tt, $o = Sn?.isExpandable, { resolveVerticalLayout: es } = U, { hasAutoHeightColumn: ts, autoHeightActive: ns, rowHeightStore: rs, baseRowMetrics: is, detailExtras: as, detailActive: os, rowMetrics: Q, virtualRows: ss, virtualRowIndexes: cs, detailEntries: ls, windowFirstRow: us, windowLastRow: ds, physicalBodyHeight: fs, bodyLayerTransform: ps, verticalScaleFactor: ms, overlayBaseOffset: hs } = y(() => es({
2132
+ scrollMargin: na
2133
+ }), Jo = qo.getVirtualItems(), Yo = U.autoHeightMeasurer, { version: Xo, nonce: Zo } = S(Yo.subscribe, Yo.getSnapshot, Yo.getSnapshot), Qo = ve ?? Yn, $o = Sn?.height ?? Tt, es = Sn?.isExpandable, { resolveVerticalLayout: ts } = U, { hasAutoHeightColumn: ns, autoHeightActive: rs, rowHeightStore: is, baseRowMetrics: as, detailExtras: os, detailActive: ss, rowMetrics: Q, virtualRows: cs, virtualRowIndexes: ls, detailEntries: us, windowFirstRow: ds, windowLastRow: fs, physicalBodyHeight: ps, bodyLayerTransform: ms, verticalScaleFactor: hs, overlayBaseOffset: gs } = y(() => ts({
2134
2134
  isServerSide: K,
2135
2135
  autoHeight: he,
2136
2136
  visibleColumns: W,
2137
2137
  viewRowCount: Z,
2138
- estimateRowHeight: Zo,
2138
+ estimateRowHeight: Qo,
2139
2139
  rowHeight: Yn,
2140
2140
  headerHeight: Y,
2141
2141
  viewportHeight: Tr,
2142
2142
  scrollTop: Cr,
2143
2143
  rowModel: X,
2144
- measuredHeights: Jo.measuredHeights,
2145
- autoHeightVersion: Yo,
2146
- detailRowEnabled: zr,
2144
+ measuredHeights: Yo.measuredHeights,
2145
+ autoHeightVersion: Xo,
2146
+ detailRowEnabled: qr,
2147
2147
  expandedDetailRowKeys: q.expandedDetailRowKeys,
2148
- detailHeight: Qo,
2149
- detailIsExpandable: $o,
2150
- detailIndexCacheRef: qr,
2151
- labelDisplay: fo,
2152
- labelRowHeight: $r
2148
+ detailHeight: $o,
2149
+ detailIsExpandable: es,
2150
+ detailIndexCacheRef: Jr,
2151
+ labelDisplay: po,
2152
+ labelRowHeight: ei,
2153
+ maxBodyPx: jr
2153
2154
  }), [
2154
- es,
2155
+ ts,
2155
2156
  K,
2156
2157
  he,
2157
2158
  W,
2158
2159
  Z,
2159
- Zo,
2160
+ Qo,
2160
2161
  Yn,
2161
2162
  Y,
2162
2163
  Tr,
2163
2164
  Cr,
2164
2165
  X,
2165
- Jo,
2166
2166
  Yo,
2167
- zr,
2167
+ Xo,
2168
+ qr,
2168
2169
  q.expandedDetailRowKeys,
2169
- Qo,
2170
2170
  $o,
2171
- qr,
2172
- fo,
2173
- $r
2174
- ]), gs = is.totalBodyHeight <= St, _s = Ae && _r === "on" && !ns && !K;
2171
+ es,
2172
+ Jr,
2173
+ po,
2174
+ ei,
2175
+ jr
2176
+ ]), _s = jr ?? St, vs = as.totalBodyHeight <= _s, ys = Ae && _r === "on" && !rs && !K;
2175
2177
  u(U.rowEnter, {
2176
2178
  scrollContainerRef: ar,
2177
2179
  skeletonEnter: K && _r === "on",
2178
- mountEnter: _s
2180
+ mountEnter: ys
2179
2181
  }), u(U.changeHighlight, {
2180
2182
  enabled: Ne && !K && _r === "on",
2181
2183
  rows: V,
@@ -2188,29 +2190,30 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2188
2190
  enabled: Pe && K,
2189
2191
  failedText: Jn.saveFailedCell
2190
2192
  });
2191
- let vs = b(null);
2193
+ let bs = b(null);
2192
2194
  g(() => {
2193
- if (!(process.env.NODE_ENV === "production" || !he || !ts)) {
2194
- if (vs.current ??= /* @__PURE__ */ new Set(), K) {
2195
- Ui(vs.current, "autoHeightServerSide", "[SpreadsheetGrid] serverSide(dataSource)では auto-height は未対応です(未ロード行の高さが不明なため)。uniform 行高にフォールバックします。\n[SpreadsheetGrid] auto-height is not supported with serverSide (dataSource) because rows that are not loaded have no height. Falling back to a uniform row height.");
2195
+ if (!(process.env.NODE_ENV === "production" || !he || !ns)) {
2196
+ if (bs.current ??= /* @__PURE__ */ new Set(), K) {
2197
+ Ui(bs.current, "autoHeightServerSide", "[SpreadsheetGrid] serverSide(dataSource)では auto-height は未対応です(未ロード行の高さが不明なため)。uniform 行高にフォールバックします。\n[SpreadsheetGrid] auto-height is not supported with serverSide (dataSource) because rows that are not loaded have no height. Falling back to a uniform row height.");
2196
2198
  return;
2197
2199
  }
2198
- Z > xt && Ui(vs.current, "autoHeightMaxRows", `[SpreadsheetGrid] auto-height は ${xt} 行までです(現在 ${Z} 行)。uniform 行高にフォールバックします。\n[SpreadsheetGrid] auto-height supports up to ${xt} rows (currently ${Z}). Falling back to a uniform row height.`);
2200
+ Z > xt && Ui(bs.current, "autoHeightMaxRows", `[SpreadsheetGrid] auto-height は ${xt} 行までです(現在 ${Z} 行)。uniform 行高にフォールバックします。\n[SpreadsheetGrid] auto-height supports up to ${xt} rows (currently ${Z}). Falling back to a uniform row height.`);
2199
2201
  }
2200
2202
  }, [
2201
2203
  he,
2202
- ts,
2204
+ ns,
2203
2205
  Z,
2204
2206
  K
2205
2207
  ]), g(() => {
2206
- process.env.NODE_ENV === "production" || !zr || as.length > 0 && !os && (vs.current ??= /* @__PURE__ */ new Set(), Ui(vs.current, "detailMaxBody", `[SpreadsheetGrid] 展開行は論理全高(行高合計 + 帯高)が ${St}px 以内のときだけ描画します(行数上限超過)。展開状態は保持されますが帯は描かれません。\n[SpreadsheetGrid] Detail rows are drawn only while the total height (rows + details) is at most ${St}px (too many rows). The expanded state is kept, but the details are not drawn.`));
2208
+ process.env.NODE_ENV === "production" || !qr || os.length > 0 && !ss && (bs.current ??= /* @__PURE__ */ new Set(), Ui(bs.current, "detailMaxBody", `[SpreadsheetGrid] 展開行は論理全高(行高合計 + 帯高)が ${_s}px 以内のときだけ描画します(行数上限超過)。展開状態は保持されますが帯は描かれません。\n[SpreadsheetGrid] Detail rows are drawn only while the total height (rows + details) is at most ${_s}px (too many rows). The expanded state is kept, but the details are not drawn.`));
2207
2209
  }, [
2208
- zr,
2209
- as,
2210
- os
2210
+ qr,
2211
+ os,
2212
+ ss,
2213
+ _s
2211
2214
  ]);
2212
- let ys = Sn?.render, bs = m((e) => {
2213
- if (!ys) return null;
2215
+ let xs = Sn?.render, Ss = m((e) => {
2216
+ if (!xs) return null;
2214
2217
  let t = e.virtualRow.index, n = X.getRow(t);
2215
2218
  if (n === void 0) return null;
2216
2219
  let r = {
@@ -2218,14 +2221,14 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2218
2221
  rowKey: e.rowKey,
2219
2222
  rowIndex: t,
2220
2223
  sourceRowIndex: X.getSourceIndex(t) ?? t,
2221
- collapse: () => Jr.setExpandedAt(e.rowKey, t, !1)
2224
+ collapse: () => Yr.setExpandedAt(e.rowKey, t, !1)
2222
2225
  };
2223
- return ys(r);
2226
+ return xs(r);
2224
2227
  }, [
2225
- ys,
2228
+ xs,
2226
2229
  X,
2227
- Jr
2228
- ]), xs = ta + $i, Ss = Math.max(Math.min(wr - xs - na, Ji.center.totalWidth), 0), Cs = m((e, t, n) => Zr ? Zr({
2230
+ Yr
2231
+ ]), Cs = na + ea, ws = Math.max(Math.min(wr - Cs - ra, Yi.center.totalWidth), 0), Ts = m((e, t, n) => Qr ? Qr({
2229
2232
  row: e.row,
2230
2233
  rowKey: n,
2231
2234
  rowIndex: t,
@@ -2238,32 +2241,32 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2238
2241
  className: "ssg-label-row-text",
2239
2242
  children: e.label
2240
2243
  })
2241
- }), [Zr]), ws = m((e) => typeof Qr == "function" ? Qr(e.row) : Qr, [Qr]), Ts = y(() => _i && oi ? {
2242
- Row: oi.BodyLabelRow,
2243
- renderContent: Cs,
2244
- contentStickyLeft: xs,
2245
- contentWidth: Ss,
2246
- resolveRowSlot: ws
2244
+ }), [Qr]), Es = m((e) => typeof $r == "function" ? $r(e.row) : $r, [$r]), Ds = y(() => bi && gi ? {
2245
+ Row: gi.BodyLabelRow,
2246
+ renderContent: Ts,
2247
+ contentStickyLeft: Cs,
2248
+ contentWidth: ws,
2249
+ resolveRowSlot: Es
2247
2250
  } : void 0, [
2248
- _i,
2249
- oi,
2251
+ bi,
2252
+ gi,
2253
+ Ts,
2250
2254
  Cs,
2251
- xs,
2252
- Ss,
2253
- ws
2254
- ]), Es = y(() => _i && oi ? {
2255
- Row: oi.BodyLabelRow,
2255
+ ws,
2256
+ Es
2257
+ ]), Os = y(() => bi && gi ? {
2258
+ Row: gi.BodyLabelRow,
2256
2259
  renderContent: null,
2257
2260
  contentStickyLeft: 0,
2258
2261
  contentWidth: 0,
2259
- resolveRowSlot: ws
2262
+ resolveRowSlot: Es
2260
2263
  } : void 0, [
2261
- _i,
2262
- oi,
2263
- ws
2264
- ]), Ds = y(() => {
2265
- if (!ti || !fo || fo.labelViewIndexes.length === 0 || !oi) return null;
2266
- let e = oi.resolveStickyLabel(fo.labelViewIndexes, Q, Ct(Cr, ms));
2264
+ bi,
2265
+ gi,
2266
+ Es
2267
+ ]), ks = y(() => {
2268
+ if (!ni || !po || po.labelViewIndexes.length === 0 || !gi) return null;
2269
+ let e = gi.resolveStickyLabel(po.labelViewIndexes, Q, Ct(Cr, hs));
2267
2270
  if (!e) return null;
2268
2271
  let t = X.getLabelRow?.(e.labelViewIndex);
2269
2272
  return t ? {
@@ -2274,188 +2277,188 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2274
2277
  pushOffset: e.pushOffset
2275
2278
  } : null;
2276
2279
  }, [
2277
- ti,
2278
- fo,
2279
- oi,
2280
+ ni,
2281
+ po,
2282
+ gi,
2280
2283
  Q,
2281
2284
  Cr,
2282
- ms,
2285
+ hs,
2283
2286
  X
2284
- ]), Os = y(() => {
2285
- if (!ti || !fo || fo.labelViewIndexes.length === 0 || !oi) return;
2286
- let { labelViewIndexes: e } = fo;
2287
+ ]), As = y(() => {
2288
+ if (!ni || !po || po.labelViewIndexes.length === 0 || !gi) return;
2289
+ let { labelViewIndexes: e } = po;
2287
2290
  return {
2288
2291
  visibleAt: (t) => {
2289
- let n = oi.resolveStickyLabel(e, Q, t);
2292
+ let n = gi.resolveStickyLabel(e, Q, t);
2290
2293
  return n ? Math.max(n.height - n.pushOffset, 0) : 0;
2291
2294
  },
2292
- coveringRowAt: (t) => oi.resolveStickyLabel(e, Q, t)?.height ?? 0
2295
+ coveringRowAt: (t) => gi.resolveStickyLabel(e, Q, t)?.height ?? 0
2293
2296
  };
2294
2297
  }, [
2295
- ti,
2296
- fo,
2297
- oi,
2298
+ ni,
2299
+ po,
2300
+ gi,
2298
2301
  Q
2299
- ]), ks = y(() => _i ? {
2300
- isLabelRow: Yr,
2301
- getLabel: Xr,
2302
- exportText: ni
2302
+ ]), js = y(() => bi ? {
2303
+ isLabelRow: Xr,
2304
+ getLabel: Zr,
2305
+ exportText: ri
2303
2306
  } : void 0, [
2304
- _i,
2305
- Yr,
2307
+ bi,
2306
2308
  Xr,
2307
- ni
2308
- ]), As = y(() => ee(Ds ? ws(Ds.labelRow) : void 0), [Ds, ws]), js = b(null), Ms = b(null);
2309
+ Zr,
2310
+ ri
2311
+ ]), Ms = y(() => ee(ks ? Es(ks.labelRow) : void 0), [ks, Es]), Ns = b(null), Ps = b(null);
2309
2312
  g(() => {
2310
2313
  if (!K) {
2311
- js.current = null;
2314
+ Ns.current = null;
2312
2315
  return;
2313
2316
  }
2314
- let e = js.current;
2315
- if (js.current = yo, e === yo) return;
2317
+ let e = Ns.current;
2318
+ if (Ns.current = bo, e === bo) return;
2316
2319
  let t = ar.current;
2317
- t && (t.scrollTop = 0), jr(0);
2320
+ t && (t.scrollTop = 0), Mr(0);
2318
2321
  }, [
2319
2322
  K,
2320
- yo,
2321
- jr
2323
+ bo,
2324
+ Mr
2322
2325
  ]), g(() => {
2323
- if (!K || !zr) {
2324
- Ms.current = null;
2326
+ if (!K || !qr) {
2327
+ Ps.current = null;
2325
2328
  return;
2326
2329
  }
2327
- let e = Ms.current;
2328
- Ms.current = yo, e !== yo && (qr.reset(), J(me.setExpandedDetailRowKeys(/* @__PURE__ */ new Set())));
2330
+ let e = Ps.current;
2331
+ Ps.current = bo, e !== bo && (Jr.reset(), J(me.setExpandedDetailRowKeys(/* @__PURE__ */ new Set())));
2329
2332
  }, [
2330
2333
  K,
2331
- zr,
2332
- yo,
2334
+ qr,
2335
+ bo,
2333
2336
  J,
2334
- qr
2337
+ Jr
2335
2338
  ]), g(() => {
2336
- K && (ds < us || xo(us, ds + 1));
2339
+ K && (fs < ds || So(ds, fs + 1));
2337
2340
  }, [
2338
2341
  K,
2339
- us,
2340
2342
  ds,
2341
- xo,
2342
- yo
2343
- ]), u(Jo, {
2343
+ fs,
2344
+ So,
2345
+ bo
2346
+ ]), u(Yo, {
2344
2347
  scrollContainerRef: ar,
2345
- autoHeightActive: ns,
2348
+ autoHeightActive: rs,
2346
2349
  minRowHeight: Yn,
2347
- rowHeightStore: rs,
2350
+ rowHeightStore: is,
2348
2351
  rowMetrics: Q,
2349
2352
  rowModel: X,
2350
- virtualRows: ss,
2353
+ virtualRows: cs,
2351
2354
  viewportHeight: Tr,
2352
- version: Yo,
2353
- nonce: Xo
2355
+ version: Xo,
2356
+ nonce: Zo
2354
2357
  });
2355
- let Ns = y(() => qo.map((e) => Go[e.index]).filter((e) => !!e), [qo, Go]), Ps = Ji.left.entries, Fs = Ji.right.entries, Is = _(), Ls = `${Is}-active-cell`, Rs = `${Is}-cell-editor`, zs = q.activeCell, Bs = y(() => N(zs, cs, X, [
2356
- Ps,
2357
- Ns,
2358
- Fs
2359
- ]) ? Ls : void 0, [
2360
- zs,
2361
- cs,
2362
- X,
2363
- Ps,
2364
- Ns,
2358
+ let Fs = y(() => Jo.map((e) => Ko[e.index]).filter((e) => !!e), [Jo, Ko]), Is = Yi.left.entries, Ls = Yi.right.entries, Rs = _(), zs = `${Rs}-active-cell`, Bs = `${Rs}-cell-editor`, Vs = q.activeCell, Hs = y(() => P(Vs, ls, X, [
2359
+ Is,
2365
2360
  Fs,
2366
2361
  Ls
2367
- ]), Vs = y(() => ie(q.activeCell, Z, Ji, Q), [
2362
+ ]) ? zs : void 0, [
2363
+ Vs,
2364
+ ls,
2365
+ X,
2366
+ Is,
2367
+ Fs,
2368
+ Ls,
2369
+ zs
2370
+ ]), Us = y(() => ie(q.activeCell, Z, Yi, Q), [
2368
2371
  q.activeCell,
2369
2372
  Z,
2370
- Ji,
2373
+ Yi,
2371
2374
  Q
2372
- ]), Hs = y(() => ie(q.editingCell, Z, Ji, Q), [
2375
+ ]), Ws = y(() => ie(q.editingCell, Z, Yi, Q), [
2373
2376
  q.editingCell,
2374
2377
  Z,
2375
- Ji,
2378
+ Yi,
2376
2379
  Q
2377
- ]), Us = m((e) => P(Vs, e), [Vs]), Ws = m((e) => P(Hs, e), [Hs]), Gs = mi(De), Ks = w(Gs, vr) || void 0, $ = Br(bn), qs = Vr(Sn?.className), Js = Vr(bi?.className), Ys = m(() => Lr(null), [Lr]);
2380
+ ]), Gs = m((e) => re(Us, e), [Us]), Ks = m((e) => re(Ws, e), [Ws]), qs = mi(De), Js = w(qs, vr) || void 0, $ = Br(bn), Ys = Vr(Sn?.className), Xs = Vr(xi?.className), Zs = m(() => Rr(null), [Rr]);
2378
2381
  pi($.tooltip, H);
2379
- let Xs = q.activeCell?.row, Zs = q.activeCell?.col, Qs = q.editingCell !== null;
2382
+ let Qs = q.activeCell?.row, $s = q.activeCell?.col, ec = q.editingCell !== null;
2380
2383
  g(() => {
2381
- if (Xs === void 0 || Zs === void 0 || Qs) {
2384
+ if (Qs === void 0 || $s === void 0 || ec) {
2382
2385
  st(H.current);
2383
2386
  return;
2384
2387
  }
2385
- return ct(Ls, H.current);
2388
+ return ct(zs, H.current);
2386
2389
  }, [
2387
- Xs,
2388
- Zs,
2389
2390
  Qs,
2390
- Ls
2391
+ $s,
2392
+ ec,
2393
+ zs
2391
2394
  ]);
2392
- let $s = fi({
2395
+ let tc = fi({
2393
2396
  scrollRef: ar,
2394
2397
  onScrollTopAnchored: (e) => {
2395
- Wo.markApiScroll(), Sr.setViewState({ scrollTop: e });
2398
+ Go.markApiScroll(), Sr.setViewState({ scrollTop: e });
2396
2399
  },
2397
- columnVirtualizer: Ko,
2398
- columnMeasurements: Uo,
2399
- totalScrollWidth: ia,
2400
- physicalBodyHeight: fs,
2400
+ columnVirtualizer: qo,
2401
+ columnMeasurements: Wo,
2402
+ totalScrollWidth: aa,
2403
+ physicalBodyHeight: ps,
2401
2404
  headerHeight: Y,
2402
- leftPaneWidth: ta,
2403
- rightPaneWidth: na,
2404
- centerLeadingWidth: $i,
2405
- activeCellRect: Vs?.rect ?? null,
2405
+ leftPaneWidth: na,
2406
+ rightPaneWidth: ra,
2407
+ centerLeadingWidth: ea,
2408
+ activeCellRect: Us?.rect ?? null,
2406
2409
  isRowFollowMove: U.activeRowFollow.isFollowMove,
2407
- activeCellPinned: Vs !== null && Vs.pane !== "center",
2410
+ activeCellPinned: Us !== null && Us.pane !== "center",
2408
2411
  activeCell: q.activeCell,
2409
- verticalScaleFactor: ms,
2410
- footerHeight: Ii,
2411
- stickyTopInset: Os
2412
- }), ec = y(() => {
2412
+ verticalScaleFactor: hs,
2413
+ footerHeight: Li,
2414
+ stickyTopInset: As
2415
+ }), nc = y(() => {
2413
2416
  if (nt !== void 0) return nt;
2414
2417
  if (rt !== void 0) return {
2415
2418
  type: "include",
2416
2419
  rowKeys: rt
2417
2420
  };
2418
- }, [nt, rt]), tc = et ?? (Qe && $e === "multiple"), nc = q.rowSelection, rc = y(() => !K && io.length < Za.length ? {
2421
+ }, [nt, rt]), rc = et ?? (Qe && $e === "multiple"), ic = q.rowSelection, ac = y(() => !K && ao.length < Qa.length ? {
2419
2422
  rows: V,
2420
- order: io,
2423
+ order: ao,
2421
2424
  rowKeyGetter: gr
2422
2425
  } : null, [
2423
2426
  K,
2424
- io,
2425
- Za.length,
2427
+ ao,
2428
+ Qa.length,
2426
2429
  V,
2427
2430
  gr
2428
- ]), [ic] = x(Vt), ac = y(() => rc && Qe ? Wt(ic(nc, rc.rows, rc.order, rc.rowKeyGetter), rc.order.length) : Ht(nc, Bo), [
2429
- rc,
2431
+ ]), [oc] = x(Vt), sc = y(() => ac && Qe ? Wt(oc(ic, ac.rows, ac.order, ac.rowKeyGetter), ac.order.length) : Ht(ic, Vo), [
2432
+ ac,
2430
2433
  Qe,
2431
- nc,
2432
- Bo,
2433
- ic
2434
- ]), oc = U.rowSelectionCommands;
2435
- u(oc, {
2434
+ ic,
2435
+ Vo,
2436
+ oc
2437
+ ]), cc = U.rowSelectionCommands;
2438
+ u(cc, {
2436
2439
  rowModel: X,
2437
- rowSelectionState: nc,
2440
+ rowSelectionState: ic,
2438
2441
  rowSelectionMode: $e,
2439
2442
  onRowSelectionChange: it,
2440
- controlledRowSelectionModel: ec,
2441
- leafRowCount: Bo,
2442
- filteredDataRows: rc,
2443
+ controlledRowSelectionModel: nc,
2444
+ leafRowCount: Vo,
2445
+ filteredDataRows: ac,
2443
2446
  sourceRows: K ? void 0 : {
2444
2447
  rows: V,
2445
2448
  rowKeyGetter: gr
2446
2449
  },
2447
2450
  dispatch: J
2448
2451
  });
2449
- let { handleGutterRowSelect: sc, handleGutterRowSelectDrag: cc, handleToggleSelectAllRows: lc } = oc;
2452
+ let { handleGutterRowSelect: lc, handleGutterRowSelectDrag: uc, handleToggleSelectAllRows: dc } = cc;
2450
2453
  u(U.cellEventNotifier, {
2451
2454
  rowModel: X,
2452
2455
  orderedColumns: G,
2453
2456
  onCellClick: Xt,
2454
2457
  onCellDoubleClick: Zt
2455
2458
  });
2456
- let uc = U.cellEventNotifier.handleCellClick, dc = Hn === "row" && !K;
2459
+ let fc = U.cellEventNotifier.handleCellClick, pc = Hn === "row" && !K;
2457
2460
  u(U.activeRowFollow, {
2458
- enabled: dc,
2461
+ enabled: pc,
2459
2462
  activeCell: q.activeCell,
2460
2463
  selection: q.selection,
2461
2464
  rowModel: X,
@@ -2468,14 +2471,14 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2468
2471
  rowModel: X,
2469
2472
  orderedColumns: G,
2470
2473
  onActiveCellChange: Qt,
2471
- followsRow: dc,
2474
+ followsRow: pc,
2472
2475
  isRowFollowPending: U.activeRowFollow.isFollowPending
2473
2476
  }, "passive");
2474
- let fc = b(() => {}), [pc] = x(() => tt()), { getCellCoordFromClientPoint: mc, updateSelectionFromPointer: hc, handleCellPointerDown: gc, handleCellDoubleClick: _c, handleCellPointerEnter: vc, handleNativeDragStart: yc, handleRowHeaderPointerDown: bc, handleRowHeaderPointerEnter: xc, handleColumnHeaderPointerDown: Sc, handleColumnHeaderPointerEnter: Cc } = di({
2477
+ let mc = b(() => {}), [hc] = x(() => tt()), { getCellCoordFromClientPoint: gc, updateSelectionFromPointer: _c, handleCellPointerDown: vc, handleCellDoubleClick: yc, handleCellPointerEnter: bc, handleNativeDragStart: xc, handleRowHeaderPointerDown: Sc, handleRowHeaderPointerEnter: Cc, handleColumnHeaderPointerDown: wc, handleColumnHeaderPointerEnter: Tc } = di({
2475
2478
  gridRootRef: H,
2476
2479
  bodyScrollRef: rr,
2477
- onCellDoubleClickRef: fc,
2478
- endEditLeftOpen: pc.endEditLeftOpen,
2480
+ onCellDoubleClickRef: mc,
2481
+ endEditLeftOpen: hc.endEditLeftOpen,
2479
2482
  scrollContainerRef: ar,
2480
2483
  leftPaneScrollRef: sr,
2481
2484
  rightPaneScrollRef: cr,
@@ -2490,47 +2493,47 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2490
2493
  resolveFirstDataCell: () => ge(X, W),
2491
2494
  filteredRowsLength: Z,
2492
2495
  visibleColumnsLength: W.length,
2493
- paneLayout: Ji,
2494
- leftLeadingWidth: Qi,
2495
- centerLeadingWidth: $i,
2496
- rightLeadingWidth: ea,
2496
+ paneLayout: Yi,
2497
+ leftLeadingWidth: $i,
2498
+ centerLeadingWidth: ea,
2499
+ rightLeadingWidth: ta,
2497
2500
  headerHeight: Y,
2498
- footerHeight: Ii,
2499
- stickyTopHeight: Wi,
2501
+ footerHeight: Li,
2502
+ stickyTopHeight: Gi,
2500
2503
  rowMetrics: Q,
2501
- verticalScaleFactor: ms,
2502
- setHoveredRowIndex: Lr,
2503
- setHoveredColumnIndex: Nr,
2504
+ verticalScaleFactor: hs,
2505
+ setHoveredRowIndex: Rr,
2506
+ setHoveredColumnIndex: Pr,
2504
2507
  enableRowHover: Ut,
2505
2508
  enableColumnHeaderHover: Kt,
2506
2509
  enableColumnHover: Me === "cross",
2507
2510
  enableRowSelection: Qe,
2508
- onGutterRowSelect: sc,
2509
- onGutterRowSelectDrag: cc
2510
- }), wc = U.gridApi, Tc = m((e) => {
2511
+ onGutterRowSelect: lc,
2512
+ onGutterRowSelectDrag: uc
2513
+ }), Ec = U.gridApi, Dc = m((e) => {
2511
2514
  e && requestAnimationFrame(() => {
2512
- wc.scrollToCellInternal(e.row, e.col, "auto");
2515
+ Ec.scrollToCellInternal(e.row, e.col, "auto");
2513
2516
  });
2514
- }, [wc]), Ec = Ge && !He && !K, { handleRowsChange: Dc, amendRowsChange: Oc, applyRows: kc, undo: Ac, redo: jc, canUndo: Mc, canRedo: Nc, clearHistory: Pc } = li({
2517
+ }, [Ec]), Oc = Ge && !He && !K, { handleRowsChange: kc, amendRowsChange: Ac, applyRows: jc, undo: Mc, redo: Nc, canUndo: Pc, canRedo: Fc, clearHistory: Ic } = li({
2515
2518
  rows: V,
2516
2519
  selection: q.selection,
2517
2520
  activeCell: q.activeCell,
2518
2521
  onRowsChange: C,
2519
2522
  dispatch: J,
2520
- enabled: Ec,
2523
+ enabled: Oc,
2521
2524
  limit: Ye,
2522
2525
  onUndoRedoStateChange: Xe,
2523
- onAfterRestore: Tc,
2526
+ onAfterRestore: Dc,
2524
2527
  rowKeyGetter: D
2525
- }), [Fc] = x(ne), { clearSelectedCells: Ic, selectEntireGrid: Lc, toggleCheckbox: Rc, tryStartEdit: zc } = Fc, Bc = y(() => G.map((e) => e.key).join("\0"), [G]), { isWholeGridSelected: Vc, handleCopy: Hc, handlePaste: Uc } = ai({
2528
+ }), [Lc] = x(M), { clearSelectedCells: Rc, selectEntireGrid: zc, toggleCheckbox: Bc, tryStartEdit: Vc } = Lc, Hc = y(() => G.map((e) => e.key).join("\0"), [G]), { isWholeGridSelected: Uc, handleCopy: Wc, handlePaste: Gc } = ai({
2526
2529
  rows: V,
2527
2530
  rowModel: X,
2528
2531
  columns: Kn,
2529
2532
  visibleColumns: G,
2530
2533
  uiState: q,
2531
2534
  getUiState: Sr.getState,
2532
- readOnly: Co,
2533
- canEditCell: To,
2535
+ readOnly: wo,
2536
+ canEditCell: Eo,
2534
2537
  rowKeyGetter: gr,
2535
2538
  onCopied: (e) => Sr.setViewState({ copiedRange: {
2536
2539
  selection: e,
@@ -2539,7 +2542,7 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2539
2542
  filters: q.filters,
2540
2543
  collapsedGroupKeys: q.collapsedGroupKeys,
2541
2544
  viewRowCount: Z,
2542
- columns: Bc
2545
+ columns: Hc
2543
2546
  }
2544
2547
  } }),
2545
2548
  createRow: k,
@@ -2547,97 +2550,97 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2547
2550
  onPasteSkipped: de,
2548
2551
  localeTexts: Jn,
2549
2552
  pasteFillsSelection: fe,
2550
- onRowsChange: Dc,
2553
+ onRowsChange: kc,
2551
2554
  onColumnsChange: T,
2552
- applyServerSideCellEdits: Eo,
2555
+ applyServerSideCellEdits: Do,
2553
2556
  isRowExportable: O,
2554
2557
  dispatch: J
2555
- }), Wc = B.fillHandle.useFillHandle({
2558
+ }), Kc = B.fillHandle.useFillHandle({
2556
2559
  fillHandle: kn,
2557
- readOnly: Co,
2560
+ readOnly: wo,
2558
2561
  isServerSide: K,
2559
2562
  rows: V,
2560
2563
  rowModel: X,
2561
2564
  orderedColumns: G,
2562
2565
  uiState: q,
2563
- serverSideQueryKey: yo,
2566
+ serverSideQueryKey: bo,
2564
2567
  serverSideRefreshToken: i,
2565
- canEditCell: To,
2568
+ canEditCell: Eo,
2566
2569
  dispatch: J,
2567
- getCellCoordFromClientPoint: mc,
2570
+ getCellCoordFromClientPoint: gc,
2568
2571
  scrollContainerRef: ar,
2569
2572
  gridRootRef: H,
2570
- footerHeight: Ii,
2571
- stickyTopHeight: Wi,
2572
- handleRowsChange: Dc,
2573
- amendRowsChange: Oc,
2574
- applyServerSideCellEdits: Eo,
2573
+ footerHeight: Li,
2574
+ stickyTopHeight: Gi,
2575
+ handleRowsChange: kc,
2576
+ amendRowsChange: Ac,
2577
+ applyServerSideCellEdits: Do,
2575
2578
  viewRowCount: Z,
2576
- paneLayout: Ji,
2579
+ paneLayout: Yi,
2577
2580
  rowMetrics: Q,
2578
- windowFirstRow: us,
2579
- windowLastRow: ds,
2580
- detailActive: os,
2581
- detailExtras: as,
2581
+ windowFirstRow: ds,
2582
+ windowLastRow: fs,
2583
+ detailActive: ss,
2584
+ detailExtras: os,
2582
2585
  viewportHeight: Tr,
2583
2586
  scrollTop: Cr,
2584
- verticalScaleFactor: ms,
2587
+ verticalScaleFactor: hs,
2585
2588
  headerHeight: Y,
2586
- overlayBaseOffset: hs,
2587
- portalClassName: Ks
2588
- }), Gc = B.conditionalFormat, Kc = y(() => U.resolveConditionalFormatStats(X, G), [
2589
+ overlayBaseOffset: gs,
2590
+ portalClassName: Js
2591
+ }), qc = B.conditionalFormat, Jc = y(() => U.resolveConditionalFormatStats(X, G), [
2589
2592
  U,
2590
2593
  X,
2591
2594
  G
2592
- ]), qc = y(() => wi ? {
2593
- cells: Ao,
2594
- label: Ti
2595
+ ]), Yc = y(() => Ti ? {
2596
+ cells: jo,
2597
+ label: Ei
2595
2598
  } : void 0, [
2596
- wi,
2597
- Ao,
2598
- Ti
2599
- ]), Jc = y(() => Ai || Mi ? {
2600
- top: Ai ?? [],
2601
- bottom: Mi ?? [],
2602
- bottomAfterTotal: Li
2599
+ Ti,
2600
+ jo,
2601
+ Ei
2602
+ ]), Xc = y(() => Mi || Ni ? {
2603
+ top: Mi ?? [],
2604
+ bottom: Ni ?? [],
2605
+ bottomAfterTotal: Wi
2603
2606
  } : void 0, [
2604
- Ai,
2605
2607
  Mi,
2606
- Li
2607
- ]), Yc = Le !== !1 && Le !== void 0 && B.find !== void 0, Xc = typeof Le == "object" ? Le : null, Zc = Yc && (Xc?.shortcut ?? !0), Qc = Xc?.caseSensitive ?? !1, $c = B.find?.FindBar, el = B.find?.splitTextByFindRanges, tl = S(U.find.subscribe, U.find.getSnapshot, U.find.getSnapshot), nl = tl.index, rl = tl.currentIndex, il = m(() => {
2608
+ Ni,
2609
+ Wi
2610
+ ]), Zc = Le !== !1 && Le !== void 0 && B.find !== void 0, Qc = typeof Le == "object" ? Le : null, $c = Zc && (Qc?.shortcut ?? !0), el = Qc?.caseSensitive ?? !1, tl = B.find?.FindBar, nl = B.find?.splitTextByFindRanges, rl = S(U.find.subscribe, U.find.getSnapshot, U.find.getSnapshot), il = rl.index, al = rl.currentIndex, ol = m(() => {
2608
2611
  U.find.open();
2609
2612
  }, [U]);
2610
2613
  u(U.find, {
2611
- enabled: Yc,
2614
+ enabled: Zc,
2612
2615
  rowModel: X,
2613
2616
  columns: G,
2614
- caseSensitive: Qc,
2617
+ caseSensitive: el,
2615
2618
  conditionalFormat: B.conditionalFormat !== void 0,
2616
2619
  onNavigate: (e, t) => {
2617
- wc.handle.selectCell(e, t, { scrollIntoView: !0 });
2620
+ Ec.handle.selectCell(e, t, { scrollIntoView: !0 });
2618
2621
  },
2619
2622
  onChange: Re
2620
2623
  });
2621
- let al = m(() => {
2624
+ let sl = m(() => {
2622
2625
  U.find.close(), H.current?.focus({ preventScroll: !0 });
2623
- }, [U]), ol = zr && ls.length > 0;
2624
- u(Jr, {
2626
+ }, [U]), cl = qr && us.length > 0;
2627
+ u(Yr, {
2625
2628
  rowModel: X,
2626
2629
  orderedColumns: G,
2627
- hasCards: ol,
2628
- drawable: gs,
2629
- isExpandable: $o,
2630
- detailIndexCache: qr,
2630
+ hasCards: cl,
2631
+ drawable: vs,
2632
+ isExpandable: es,
2633
+ detailIndexCache: Jr,
2631
2634
  getUiState: Sr.getState,
2632
2635
  dispatch: J,
2633
2636
  scrollContainerRef: ar,
2634
2637
  gridRootRef: H,
2635
2638
  tableExitRef: or,
2636
- scrollCellIntoView: Tc
2639
+ scrollCellIntoView: Dc
2637
2640
  });
2638
- let sl = m((e, t) => Jr.handleCardKeyDown(e.nativeEvent, e.currentTarget, t), [Jr]), cl = m((e) => Jr.handleTableExitFocus(e.relatedTarget), [Jr]), ll = m((e) => {
2639
- e.target === e.currentTarget && (H.current?.focus({ preventScroll: !0 }), pc.endEditLeftOpen());
2640
- }, [pc]), ul = m((e, t) => {
2641
+ let ll = m((e, t) => Yr.handleCardKeyDown(e.nativeEvent, e.currentTarget, t), [Yr]), ul = m((e) => Yr.handleTableExitFocus(e.relatedTarget), [Yr]), dl = m((e) => {
2642
+ e.target === e.currentTarget && (H.current?.focus({ preventScroll: !0 }), hc.endEditLeftOpen());
2643
+ }, [hc]), fl = m((e, t) => {
2641
2644
  let n = Math.max(Tr - Y, Yn);
2642
2645
  return wt(Q, e, t, n);
2643
2646
  }, [
@@ -2645,77 +2648,77 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2645
2648
  Tr,
2646
2649
  Y,
2647
2650
  Yn
2648
- ]), dl = m((e) => {
2651
+ ]), pl = m((e) => {
2649
2652
  let t = G[e], n = H.current;
2650
2653
  if (!t || !n || At(t.key)) return !1;
2651
2654
  let r = Array.from(n.querySelectorAll(".ssg-header-cell[data-ssg-col-key]")).find((e) => e.dataset.ssgColKey === t.key);
2652
- return r ? (xa(t, r), !0) : !1;
2655
+ return r ? (Sa(t, r), !0) : !1;
2653
2656
  }, [
2654
2657
  G,
2655
2658
  H,
2656
- xa
2657
- ]), { handleKeyDown: fl } = ui({
2659
+ Sa
2660
+ ]), { handleKeyDown: ml } = ui({
2658
2661
  uiState: q,
2659
2662
  scrollContainerRef: ar,
2660
2663
  getUiState: Sr.getState,
2661
2664
  rowModel: X,
2662
2665
  visibleColumns: G,
2663
- readOnly: Co,
2664
- canEditCell: To,
2665
- setEditorInitialValue: Fr,
2666
+ readOnly: wo,
2667
+ canEditCell: Eo,
2668
+ setEditorInitialValue: Ir,
2666
2669
  dispatch: J,
2667
- handleCopy: Hc,
2668
- openFind: Zc ? il : void 0,
2669
- handleCellDoubleClick: zc,
2670
- isWholeGridSelected: Vc,
2671
- selectEntireGrid: Lc,
2672
- onUndo: Ac,
2673
- onRedo: jc,
2674
- onClearSelection: Ic,
2670
+ handleCopy: Wc,
2671
+ openFind: $c ? ol : void 0,
2672
+ handleCellDoubleClick: Vc,
2673
+ isWholeGridSelected: Uc,
2674
+ selectEntireGrid: zc,
2675
+ onUndo: Mc,
2676
+ onRedo: Nc,
2677
+ onClearSelection: Rc,
2675
2678
  enableClearOnDelete: Ke,
2676
- onToggleCheckboxCell: Rc,
2677
- onToggleGroup: ho,
2678
- onToggleDetailRow: zr ? Jr.toggleFromKeyboard : void 0,
2679
- resolvePageRow: ul,
2680
- openColumnMenu: Ca ? dl : void 0,
2681
- openContextMenu: Pn && Fn ? Oo : void 0,
2682
- onTabPastLastColumn: Jr.handleTabPastLastColumn
2683
- }), pl = m((e) => {
2684
- fl(e), Jr.handleRootKeyDownAfter(e.nativeEvent);
2685
- }, [fl, Jr]), { startEditWithValue: ml, commitEdit: hl, cancelEdit: gl, registerDraftFlush: _l } = ci({
2679
+ onToggleCheckboxCell: Bc,
2680
+ onToggleGroup: go,
2681
+ onToggleDetailRow: qr ? Yr.toggleFromKeyboard : void 0,
2682
+ resolvePageRow: fl,
2683
+ openColumnMenu: wa ? pl : void 0,
2684
+ openContextMenu: Pn && Fn ? ko : void 0,
2685
+ onTabPastLastColumn: Yr.handleTabPastLastColumn
2686
+ }), hl = m((e) => {
2687
+ ml(e), Yr.handleRootKeyDownAfter(e.nativeEvent);
2688
+ }, [ml, Yr]), { startEditWithValue: gl, commitEdit: _l, cancelEdit: vl, registerDraftFlush: yl } = ci({
2686
2689
  uiState: q,
2687
2690
  rows: V,
2688
2691
  visibleColumns: G,
2689
2692
  rowModel: X,
2690
- setEditorInitialValue: Fr,
2691
- onRowsChange: Dc,
2692
- applyServerSideCellEdits: Eo,
2693
+ setEditorInitialValue: Ir,
2694
+ onRowsChange: kc,
2695
+ applyServerSideCellEdits: Do,
2693
2696
  dispatch: J,
2694
2697
  gridRootRef: H,
2695
2698
  editorActionGuardRef: ir,
2696
- readOnly: Co,
2697
- canEditCell: To,
2699
+ readOnly: wo,
2700
+ canEditCell: Eo,
2698
2701
  localeTexts: Jn,
2699
- followsRow: dc,
2702
+ followsRow: pc,
2700
2703
  getUiState: Sr.getState,
2701
2704
  rowKeyGetter: gr
2702
- }, pc);
2703
- u(Fc, {
2705
+ }, hc);
2706
+ u(Lc, {
2704
2707
  rows: V,
2705
2708
  rowModel: X,
2706
2709
  orderedColumns: G,
2707
2710
  uiState: q,
2708
2711
  getUiState: Sr.getState,
2709
- readOnly: Co,
2710
- canEditCell: To,
2711
- handleRowsChange: Dc,
2712
- applyServerSideCellEdits: Eo,
2713
- startEditWithValue: ml,
2712
+ readOnly: wo,
2713
+ canEditCell: Eo,
2714
+ handleRowsChange: kc,
2715
+ applyServerSideCellEdits: Do,
2716
+ startEditWithValue: gl,
2714
2717
  dispatch: J
2715
2718
  });
2716
- let vl = B.imeDirectInput, yl = Je && vl !== void 0;
2719
+ let bl = B.imeDirectInput, xl = Je && bl !== void 0;
2717
2720
  u(U.imeInput, {
2718
- enabled: yl,
2721
+ enabled: xl,
2719
2722
  gridRootRef: H,
2720
2723
  editing: q.editingCell !== null,
2721
2724
  activeCell: q.activeCell,
@@ -2726,177 +2729,177 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2726
2729
  align: t.align
2727
2730
  } : null;
2728
2731
  },
2729
- canStartEdit: (e) => vl?.canStartImeEdit({
2732
+ canStartEdit: (e) => bl?.canStartImeEdit({
2730
2733
  rowModel: X,
2731
2734
  columns: G,
2732
- readOnly: Co,
2733
- canEditCell: To
2735
+ readOnly: wo,
2736
+ canEditCell: Eo
2734
2737
  }, e) === !0,
2735
- startEdit: ml,
2736
- resolveEditText: (e, t) => vl ? vl.resolveImeEditText(G, e, t) : t
2738
+ startEdit: gl,
2739
+ resolveEditText: (e, t) => bl ? bl.resolveImeEditText(G, e, t) : t
2737
2740
  });
2738
- let bl = m((e) => U.imeInput.attach(e), [U]), xl = q.editingCell ? G[q.editingCell.col] : void 0, Sl = xl !== void 0 && Hs !== null && ns && Hs.rect.height > Yn && (xl.verticalAlign ?? ye ?? (xl.autoHeight === !0 ? "top" : "center")) === "top", Cl = q.editingCell ? X.getRow(q.editingCell.row) : void 0, wl = q.editingCell && xl && Cl ? {
2739
- row: Cl,
2741
+ let Sl = m((e) => U.imeInput.attach(e), [U]), Cl = q.editingCell ? G[q.editingCell.col] : void 0, wl = Cl !== void 0 && Ws !== null && rs && Ws.rect.height > Yn && (Cl.verticalAlign ?? ye ?? (Cl.autoHeight === !0 ? "top" : "center")) === "top", Tl = q.editingCell ? X.getRow(q.editingCell.row) : void 0, El = q.editingCell && Cl && Tl ? {
2742
+ row: Tl,
2740
2743
  rowIndex: q.editingCell.row,
2741
2744
  sourceRowIndex: X.getSourceIndex(q.editingCell.row) ?? q.editingCell.row,
2742
2745
  rowKey: X.getRowKey(q.editingCell.row) ?? q.editingCell.row,
2743
2746
  colIndex: q.editingCell.col,
2744
- column: xl,
2745
- value: Gt(Cl, xl)
2746
- } : null, Tl = m(() => {
2747
+ column: Cl,
2748
+ value: Gt(Tl, Cl)
2749
+ } : null, Dl = m(() => {
2747
2750
  H.current?.focus({ preventScroll: !0 });
2748
- }, []), El = m((e, t) => {
2749
- U.cellEventNotifier.notifyCellDoubleClick(e, t) || zc(e);
2750
- }, [U, zc]);
2751
+ }, []), Ol = m((e, t) => {
2752
+ U.cellEventNotifier.notifyCellDoubleClick(e, t) || Vc(e);
2753
+ }, [U, Vc]);
2751
2754
  g(() => {
2752
- fc.current = El;
2753
- }, [El]);
2754
- let Dl = y(() => _t(q.selection, Ji, Z), [
2755
+ mc.current = Ol;
2756
+ }, [Ol]);
2757
+ let kl = y(() => _t(q.selection, Yi, Z), [
2755
2758
  q.selection,
2756
- Ji,
2759
+ Yi,
2757
2760
  Z
2758
- ]), Ol = y(() => ht(Dl, us, ds, Q), [
2759
- Dl,
2761
+ ]), Al = y(() => ht(kl, ds, fs, Q), [
2762
+ kl,
2760
2763
  Q,
2761
- us,
2762
- ds
2763
- ]), kl = y(() => gt(os, Dl, us, ds, Q, as), [
2764
- os,
2765
- Dl,
2764
+ ds,
2765
+ fs
2766
+ ]), jl = y(() => gt(ss, kl, ds, fs, Q, os), [
2767
+ ss,
2768
+ kl,
2766
2769
  Q,
2767
- as,
2768
- us,
2769
- ds
2770
- ]), Al = B.motionExtras?.CopyRangeOverlay, jl = B.motionExtras?.ColumnHoverOverlay, Ml = je && kr && kr.view.sort === q.sort && kr.view.filters === q.filters && kr.view.collapsedGroupKeys === q.collapsedGroupKeys && kr.view.viewRowCount === Z && kr.view.columns === Bc ? kr.selection : null, Nl = y(() => _t(Ml, Ji, Z), [
2771
- Ml,
2772
- Ji,
2770
+ os,
2771
+ ds,
2772
+ fs
2773
+ ]), Ml = B.motionExtras?.CopyRangeOverlay, Nl = B.motionExtras?.ColumnHoverOverlay, Pl = je && kr && kr.view.sort === q.sort && kr.view.filters === q.filters && kr.view.collapsedGroupKeys === q.collapsedGroupKeys && kr.view.viewRowCount === Z && kr.view.columns === Hc ? kr.selection : null, Fl = y(() => _t(Pl, Yi, Z), [
2774
+ Pl,
2775
+ Yi,
2773
2776
  Z
2774
- ]), Pl = y(() => ht(Nl, us, ds, Q), [
2775
- Nl,
2777
+ ]), Il = y(() => ht(Fl, ds, fs, Q), [
2778
+ Fl,
2776
2779
  Q,
2777
- us,
2778
- ds
2779
- ]), Fl = y(() => gt(os, Nl, us, ds, Q, as), [
2780
- os,
2781
- Nl,
2780
+ ds,
2781
+ fs
2782
+ ]), Ll = y(() => gt(ss, Fl, ds, fs, Q, os), [
2783
+ ss,
2784
+ Fl,
2782
2785
  Q,
2783
- as,
2784
- us,
2785
- ds
2786
- ]), Il = m((e) => {
2787
- if (Fl) return se(Nl, Fl, e) ?? [];
2788
- let t = oe(Nl, Pl, e);
2786
+ os,
2787
+ ds,
2788
+ fs
2789
+ ]), Rl = m((e) => {
2790
+ if (Ll) return se(Fl, Ll, e) ?? [];
2791
+ let t = oe(Fl, Il, e);
2789
2792
  return t ? [t] : [];
2790
2793
  }, [
2791
- Nl,
2792
- Pl,
2793
- Fl
2794
- ]), Ll = m((e) => oe(Dl, Ol, e), [Dl, Ol]), Rl = m((e) => se(Dl, kl, e), [kl, Dl]), zl = m((e) => Me === "cross" ? ae(Dr, e, Ji, Q, us, ds) : null, [
2794
+ Fl,
2795
+ Il,
2796
+ Ll
2797
+ ]), zl = m((e) => oe(kl, Al, e), [kl, Al]), Bl = m((e) => se(kl, jl, e), [jl, kl]), Vl = m((e) => Me === "cross" ? ae(Dr, e, Yi, Q, ds, fs) : null, [
2795
2798
  Me,
2796
2799
  Dr,
2797
- Ji,
2800
+ Yi,
2798
2801
  Q,
2799
- us,
2800
- ds
2801
- ]), Bl = m((e) => {
2802
+ ds,
2803
+ fs
2804
+ ]), Hl = m((e) => {
2802
2805
  if (e.preventDefault(), e.button === 0 && !(Z === 0 || W.length === 0)) {
2803
- if (H.current?.focus({ preventScroll: !0 }), pc.endEditLeftOpen(), tc) {
2804
- lc();
2806
+ if (H.current?.focus({ preventScroll: !0 }), hc.endEditLeftOpen(), rc) {
2807
+ dc();
2805
2808
  return;
2806
2809
  }
2807
- if (Vc) {
2810
+ if (Uc) {
2808
2811
  J(me.clearSelection()), J(me.activateCell(null));
2809
2812
  return;
2810
2813
  }
2811
- Lc();
2814
+ zc();
2812
2815
  }
2813
2816
  }, [
2814
2817
  J,
2815
2818
  Z,
2816
- Vc,
2817
- Lc,
2819
+ Uc,
2820
+ zc,
2818
2821
  W.length,
2819
- tc,
2820
- lc,
2821
- pc
2822
- ]), Vl = m((e) => {
2823
- Lr((t) => t === e ? null : t);
2824
- }, [Lr]), Hl = m((e) => {
2825
- Nr((t) => t === e ? null : t);
2826
- }, [Nr]), Ul = m(() => {
2827
- Pr(!0);
2828
- }, [Pr]), Wl = m(() => {
2829
- Pr(!1);
2830
- }, [Pr]), Gl = U.columnCommands;
2831
- u(Gl, {
2822
+ rc,
2823
+ dc,
2824
+ hc
2825
+ ]), Ul = m((e) => {
2826
+ Rr((t) => t === e ? null : t);
2827
+ }, [Rr]), Wl = m((e) => {
2828
+ Pr((t) => t === e ? null : t);
2829
+ }, [Pr]), Gl = m(() => {
2830
+ Fr(!0);
2831
+ }, [Fr]), Kl = m(() => {
2832
+ Fr(!1);
2833
+ }, [Fr]), ql = U.columnCommands;
2834
+ u(ql, {
2832
2835
  columns: Kn,
2833
2836
  visibleColumns: W,
2834
2837
  orderedColumns: G,
2835
- columnWidths: qi,
2838
+ columnWidths: Ji,
2836
2839
  onColumnsChange: T,
2837
2840
  dispatch: J,
2838
2841
  getUiState: Sr.getState,
2839
2842
  enableSorting: pt,
2840
2843
  sort: q.sort,
2841
- globalFilterText: Ua,
2842
- closeColumnMenu: Sa,
2843
- openToolPanel: ja,
2844
- openColumnFilterPopover: ua,
2845
- runAutosize: Io.available ? Ro : void 0
2844
+ globalFilterText: Wa,
2845
+ closeColumnMenu: Ca,
2846
+ openToolPanel: Ma,
2847
+ openColumnFilterPopover: da,
2848
+ runAutosize: Lo.available ? zo : void 0
2846
2849
  });
2847
- let { handleColumnMenuPinnedChange: Kl, handleColumnMenuAutosizeColumn: ql, handleColumnMenuAutosizeAllColumns: Jl, handleColumnMenuOpenChooser: Yl, handleColumnMenuOpenSortManager: Xl, handleColumnMenuOpenFilter: Zl, handleColumnMenuOpenFilterManager: Ql, handleColumnMenuResetColumns: $l, handleColumnMenuSortChange: eu, handleColumnMenuGroupBy: tu, handleColumnMenuUngroup: nu, handleFilterManagerClearFilter: ru, handleFilterManagerClearAll: iu, handleFilterManagerClearGlobal: au, handleColumnChooserToggleVisibility: ou, handleColumnChooserShowAll: su, handleColumnChooserHideAll: cu, handleColumnChooserReorder: lu, handleColumnChooserReset: uu, applyColumnOrderAndPin: du, handleSortManagerAddLevel: fu, handleSortManagerChangeDirection: pu, handleSortManagerChangeColumn: mu, handleSortManagerRemoveLevel: hu, handleSortManagerClearAll: gu, handleSortManagerMove: _u, handleColumnResizePointerDown: vu } = Gl, yu = y(() => Kn.map((e) => ({
2850
+ let { handleColumnMenuPinnedChange: Jl, handleColumnMenuAutosizeColumn: Yl, handleColumnMenuAutosizeAllColumns: Xl, handleColumnMenuOpenChooser: Zl, handleColumnMenuOpenSortManager: Ql, handleColumnMenuOpenFilter: $l, handleColumnMenuOpenFilterManager: eu, handleColumnMenuResetColumns: tu, handleColumnMenuSortChange: nu, handleColumnMenuGroupBy: ru, handleColumnMenuUngroup: iu, handleFilterManagerClearFilter: au, handleFilterManagerClearAll: ou, handleFilterManagerClearGlobal: su, handleColumnChooserToggleVisibility: cu, handleColumnChooserShowAll: lu, handleColumnChooserHideAll: uu, handleColumnChooserReorder: du, handleColumnChooserReset: fu, applyColumnOrderAndPin: pu, handleSortManagerAddLevel: mu, handleSortManagerChangeDirection: hu, handleSortManagerChangeColumn: gu, handleSortManagerRemoveLevel: _u, handleSortManagerClearAll: vu, handleSortManagerMove: yu, handleColumnResizePointerDown: bu } = ql, xu = y(() => Kn.map((e) => ({
2848
2851
  key: e.key,
2849
2852
  title: e.title || e.key,
2850
2853
  visible: e.visible !== !1,
2851
2854
  pane: bt(e),
2852
2855
  grouped: pr && e.rowGroup === !0 ? !0 : void 0
2853
- })), [Kn, pr]), bu = y(() => [...W, ...pr ? dr : []].filter((e) => !At(e.key)).map((e) => ({
2856
+ })), [Kn, pr]), Su = y(() => [...W, ...pr ? dr : []].filter((e) => !At(e.key)).map((e) => ({
2854
2857
  key: e.key,
2855
2858
  title: e.title || e.key
2856
2859
  })), [
2857
2860
  W,
2858
2861
  pr,
2859
2862
  dr
2860
- ]), { filterManagerEntries: xu, filterManagerAddableColumns: Su, jumpToColumnFilter: Cu } = B.filtering.useFilterManagement({
2863
+ ]), { filterManagerEntries: Cu, filterManagerAddableColumns: wu, jumpToColumnFilter: Tu } = B.filtering.useFilterManagement({
2861
2864
  columns: Kn,
2862
2865
  orderedColumns: G,
2863
2866
  visibleColumns: W,
2864
- columnFilters: Wa,
2867
+ columnFilters: Ga,
2865
2868
  scrollContainerRef: ar,
2866
2869
  gridRootRef: H,
2867
- paneLayout: Ji,
2868
- leftPaneTotalWidth: ta,
2869
- centerLeadingWidth: $i,
2870
- rightPaneTotalWidth: na,
2871
- openColumnFilterPopover: ua,
2872
- groupColumns: aa,
2870
+ paneLayout: Yi,
2871
+ leftPaneTotalWidth: na,
2872
+ centerLeadingWidth: ea,
2873
+ rightPaneTotalWidth: ra,
2874
+ openColumnFilterPopover: da,
2875
+ groupColumns: oa,
2873
2876
  localeTexts: Jn
2874
- }), wu = m(() => {
2875
- Ea === "filter" ? Ma() : ja("filter");
2877
+ }), Eu = m(() => {
2878
+ Da === "filter" ? Na() : Ma("filter");
2876
2879
  }, [
2877
- Ea,
2878
- Ma,
2879
- ja
2880
- ]), Tu = B.columnReorder.useColumnReorder({
2880
+ Da,
2881
+ Na,
2882
+ Ma
2883
+ ]), Du = B.columnReorder.useColumnReorder({
2881
2884
  enabled: !!T,
2882
2885
  columns: Kn,
2883
- paneLayout: Ji,
2886
+ paneLayout: Yi,
2884
2887
  leftPaneScrollRef: sr,
2885
2888
  rightPaneScrollRef: cr,
2886
2889
  bodyScrollRef: rr,
2887
2890
  scrollContainerRef: ar,
2888
- leftLeadingWidth: Qi,
2889
- centerLeadingWidth: $i,
2890
- rightLeadingWidth: ea,
2891
- applyColumnOrderAndPin: du,
2891
+ leftLeadingWidth: $i,
2892
+ centerLeadingWidth: ea,
2893
+ rightLeadingWidth: ta,
2894
+ applyColumnOrderAndPin: pu,
2892
2895
  ghostSlot: $.dragGhost,
2893
2896
  motion: _r === "off" ? "ghost" : Ie
2894
- }), Eu = m((e, t) => {
2895
- if (!Dc) return !1;
2897
+ }), Ou = m((e, t) => {
2898
+ if (!kc) return !1;
2896
2899
  let n = Bt(V, e, t);
2897
2900
  if (n === V) return !1;
2898
2901
  let r = V[e], i = n;
2899
- return Dc(i), Mn?.({
2902
+ return kc(i), Mn?.({
2900
2903
  rowKey: gr(r, e),
2901
2904
  fromIndex: e,
2902
2905
  toIndex: t,
@@ -2904,29 +2907,29 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2904
2907
  }), !0;
2905
2908
  }, [
2906
2909
  V,
2907
- Dc,
2910
+ kc,
2908
2911
  Mn,
2909
2912
  gr
2910
- ]), Du = m((e, t) => {
2913
+ ]), ku = m((e, t) => {
2911
2914
  if (K) {
2912
2915
  process.env.NODE_ENV !== "production" && console.warn("[SpreadsheetGrid] moveRow() は clientSide(rows + onRowsChange)専用です。serverSide では無効です。\n[SpreadsheetGrid] moveRow() works only with clientSide rows (rows + onRowsChange). It does nothing with serverSide.");
2913
2916
  return;
2914
2917
  }
2915
2918
  let n = V.findIndex((t, n) => gr(t, n) === e);
2916
- n < 0 || Eu(n, t);
2919
+ n < 0 || Ou(n, t);
2917
2920
  }, [
2918
2921
  K,
2919
2922
  V,
2920
2923
  gr,
2921
- Eu
2922
- ]), Ou = m((e, t) => {
2923
- let n = Eu(e, t);
2924
- Lr(null);
2924
+ Ou
2925
+ ]), Au = m((e, t) => {
2926
+ let n = Ou(e, t);
2927
+ Rr(null);
2925
2928
  let r = (e) => {
2926
2929
  let t = G[e];
2927
2930
  return t !== void 0 && !Dt(t.key);
2928
2931
  }, i = (e) => {
2929
- let t = yt(Ji, e), n = ar.current;
2932
+ let t = yt(Yi, e), n = ar.current;
2930
2933
  if (!t || t.pane !== "center" || !n) return t === null ? {
2931
2934
  visible: 0,
2932
2935
  whole: !1
@@ -2934,7 +2937,7 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2934
2937
  visible: t.extent.width,
2935
2938
  whole: !0
2936
2939
  };
2937
- let r = ta + $i + t.extent.start, i = r + t.extent.width, a = n.scrollLeft + ta, o = n.scrollLeft + n.clientWidth - na;
2940
+ let r = na + ea + t.extent.start, i = r + t.extent.width, a = n.scrollLeft + na, o = n.scrollLeft + n.clientWidth - ra;
2938
2941
  return {
2939
2942
  visible: Math.max(0, Math.min(i, o) - Math.max(r, a)),
2940
2943
  whole: r >= a && i <= o
@@ -2949,31 +2952,31 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2949
2952
  }
2950
2953
  n >= 0 ? o = n : e >= 0 && t > i(o).visible && (o = e);
2951
2954
  }
2952
- wc.handle.selectCell(n ? t : e, o);
2955
+ Ec.handle.selectCell(n ? t : e, o);
2953
2956
  }, [
2954
- Eu,
2955
- Lr,
2957
+ Ou,
2958
+ Rr,
2956
2959
  Sr,
2957
2960
  G,
2958
- wc,
2959
- Ji,
2961
+ Ec,
2962
+ Yi,
2960
2963
  ar,
2961
- ta,
2962
2964
  na,
2963
- $i
2964
- ]), { renderHandleCell: ku, renderDropIndicator: Au } = B.rowDrag.useRowDrag({
2965
- enabled: ao,
2965
+ ra,
2966
+ ea
2967
+ ]), { renderHandleCell: ju, renderDropIndicator: Mu } = B.rowDrag.useRowDrag({
2968
+ enabled: oo,
2966
2969
  rowMetrics: Q,
2967
2970
  headerHeight: Y,
2968
- footerHeight: Ii,
2969
- stickyTopHeight: Wi,
2970
- verticalScaleFactor: ms,
2971
- windowBaseOffsetPx: hs,
2971
+ footerHeight: Li,
2972
+ stickyTopHeight: Gi,
2973
+ verticalScaleFactor: hs,
2974
+ windowBaseOffsetPx: gs,
2972
2975
  scrollContainerRef: ar,
2973
2976
  bodyScrollRef: rr,
2974
2977
  gridRootRef: H,
2975
- endEditLeftOpen: pc.endEditLeftOpen,
2976
- commitRowMove: Ou,
2978
+ endEditLeftOpen: hc.endEditLeftOpen,
2979
+ commitRowMove: Au,
2977
2980
  hasRowKeys: D !== void 0,
2978
2981
  ghostSlot: $.dragGhost,
2979
2982
  motion: _r === "off" ? "ghost" : Fe,
@@ -2984,43 +2987,43 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
2984
2987
  rows: V,
2985
2988
  resolveRowKey: gr,
2986
2989
  localeTexts: Jn
2987
- }), ju = T ? Tu.onColumnDragHandlePointerDown : void 0, Mu = {
2990
+ }), Nu = T ? Du.onColumnDragHandlePointerDown : void 0, Pu = {
2988
2991
  position: "absolute",
2989
2992
  top: 0,
2990
- height: Y + fs + Ii,
2993
+ height: Y + ps + Li,
2991
2994
  transform: "translateX(-1px)",
2992
2995
  pointerEvents: "none",
2993
2996
  zIndex: 8,
2994
2997
  display: "none"
2995
- }, Nu = B.filtering.useFilterPopoverContent({
2996
- filterPopover: oa,
2997
- views: Pa,
2998
- rows: Xa,
2998
+ }, Fu = B.filtering.useFilterPopoverContent({
2999
+ filterPopover: sa,
3000
+ views: Fa,
3001
+ rows: Za,
2999
3002
  columnFilters: q.filters.columnFilters,
3000
- globalFilterText: Ua,
3003
+ globalFilterText: Wa,
3001
3004
  getFilterOptions: dt,
3002
3005
  isServerSide: K,
3003
3006
  dispatch: J,
3004
3007
  renderFilterDateInput: ut,
3005
3008
  popoverSlot: $.popover,
3006
- portalClassName: Ks,
3009
+ portalClassName: Js,
3007
3010
  localeTexts: Jn
3008
- }), Pu = q.expandedDetailRowKeys, Fu = m((e, t, n, r, i) => {
3011
+ }), Iu = q.expandedDetailRowKeys, Lu = m((e, t, n, r, i) => {
3009
3012
  let a = Gt(e, n);
3010
- if (n.key === zt) return ku(e, t);
3013
+ if (n.key === zt) return ju(e, t);
3011
3014
  if (n.renderCell) {
3012
- let o = X.getSourceIndex(t) ?? t, s = X.getRowKey(t) ?? t, c = zr ? {
3013
- expanded: Pu.has(s),
3014
- expandable: Ot(gs, $o, e, s, o),
3015
- toggle: () => Jr.toggleAt(s, t),
3016
- setExpanded: (e) => Jr.setExpandedAt(s, t, e)
3015
+ let o = X.getSourceIndex(t) ?? t, s = X.getRowKey(t) ?? t, c = qr ? {
3016
+ expanded: Iu.has(s),
3017
+ expandable: Ot(vs, es, e, s, o),
3018
+ toggle: () => Yr.toggleAt(s, t),
3019
+ setExpanded: (e) => Yr.setExpandedAt(s, t, e)
3017
3020
  } : void 0;
3018
3021
  if (n.key === Et) {
3019
- let e = fo?.labelViewIndexes;
3022
+ let e = po?.labelViewIndexes;
3020
3023
  return c?.expandable ? /* @__PURE__ */ R(Wr, {
3021
3024
  detail: c,
3022
3025
  rowNumber: e ? Ft(e, t) : t + 1,
3023
- onPress: pc.endEditLeftOpen
3026
+ onPress: hc.endEditLeftOpen
3024
3027
  }) : null;
3025
3028
  }
3026
3029
  return n.renderCell({
@@ -3036,11 +3039,11 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3036
3039
  isSelected: i.isSelected,
3037
3040
  isEditing: i.isEditing,
3038
3041
  readOnly: i.readOnly,
3039
- setValue: (r) => re({
3042
+ setValue: (r) => ne({
3040
3043
  rows: V,
3041
3044
  rowModel: X,
3042
- handleRowsChange: Dc,
3043
- applyServerSideCellEdits: Eo
3045
+ handleRowsChange: kc,
3046
+ applyServerSideCellEdits: Do
3044
3047
  }, t, e, n, r)
3045
3048
  });
3046
3049
  }
@@ -3049,7 +3052,7 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3049
3052
  label: n.title || n.key,
3050
3053
  checked: qt(a, n.editor),
3051
3054
  readOnly: i.readOnly,
3052
- onToggle: () => Rc({
3055
+ onToggle: () => Bc({
3053
3056
  row: t,
3054
3057
  col: r
3055
3058
  })
@@ -3058,14 +3061,14 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3058
3061
  value: a,
3059
3062
  row: e,
3060
3063
  column: n
3061
- }) : String(a ?? ""), s = Gc ? n.conditionalFormat : void 0;
3064
+ }) : String(a ?? ""), s = qc ? n.conditionalFormat : void 0;
3062
3065
  if (s?.dataBar?.showValue === !1) return null;
3063
- let c = nl.get(t)?.get(r), l = (e) => c && c.length > 0 && el ? el(e, c).map((e, t) => e.range ? /* @__PURE__ */ R("mark", {
3064
- className: w("ssg-find-mark", e.range.matchIndex === rl && "ssg-find-mark--current"),
3066
+ let c = il.get(t)?.get(r), l = (e) => c && c.length > 0 && nl ? nl(e, c).map((e, t) => e.range ? /* @__PURE__ */ R("mark", {
3067
+ className: w("ssg-find-mark", e.range.matchIndex === al && "ssg-find-mark--current"),
3065
3068
  children: e.text
3066
3069
  }, t) : e.text) : e, u = l(o);
3067
- if (Gc && s?.chips) {
3068
- let c = Gc.resolveChipSpec(s.chips, {
3070
+ if (qc && s?.chips) {
3071
+ let c = qc.resolveChipSpec(s.chips, {
3069
3072
  row: e,
3070
3073
  rowIndex: t,
3071
3074
  sourceRowIndex: X.getSourceIndex(t) ?? t,
@@ -3078,7 +3081,7 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3078
3081
  isEditing: i.isEditing,
3079
3082
  readOnly: i.readOnly
3080
3083
  });
3081
- if (c) return /* @__PURE__ */ R(Gc.GridChip, {
3084
+ if (c) return /* @__PURE__ */ R(qc.GridChip, {
3082
3085
  spec: c,
3083
3086
  children: c.label === void 0 || c.label === o ? u : l(c.label)
3084
3087
  });
@@ -3089,94 +3092,94 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3089
3092
  });
3090
3093
  }, [
3091
3094
  X,
3092
- Dc,
3095
+ kc,
3093
3096
  V,
3097
+ il,
3098
+ al,
3094
3099
  nl,
3095
- rl,
3096
- el,
3097
- Gc,
3098
- Rc,
3100
+ qc,
3101
+ Bc,
3099
3102
  $.checkbox,
3100
- Eo,
3101
- zr,
3102
- Pu,
3103
- $o,
3104
- gs,
3105
- Jr,
3106
- ku,
3107
- fo,
3108
- pc
3109
- ]), Iu = m((e) => {
3103
+ Do,
3104
+ qr,
3105
+ Iu,
3106
+ es,
3107
+ vs,
3108
+ Yr,
3109
+ ju,
3110
+ po,
3111
+ hc
3112
+ ]), Ru = m((e) => {
3110
3113
  J(me.setGlobalFilter(e));
3111
- }, [J]), Lu = B.selectionAggregates.useSelectionAggregates({
3114
+ }, [J]), zu = B.selectionAggregates.useSelectionAggregates({
3112
3115
  enabled: pn && (an || rn && hn !== void 0),
3113
3116
  selection: q.selection,
3114
3117
  viewRowCount: Z,
3115
3118
  orderedColumns: G,
3116
3119
  rowModel: X
3117
- }), { slotContext: Ru } = si({
3120
+ }), { slotContext: Bu } = si({
3118
3121
  rows: V,
3119
3122
  localeTexts: Jn,
3120
- viewRowCount: Bo,
3121
- totalRowCount: K ? Z : Ya ? Ya.dataRowCount : void 0,
3122
- getFilteredRows: Ho,
3123
+ viewRowCount: Vo,
3124
+ totalRowCount: K ? Z : Xa ? Xa.dataRowCount : void 0,
3125
+ getFilteredRows: Uo,
3123
3126
  columns: Kn,
3124
3127
  visibleColumns: W,
3125
3128
  orderedColumns: G,
3126
- labelViewIndexes: fo?.labelViewIndexes,
3129
+ labelViewIndexes: po?.labelViewIndexes,
3127
3130
  uiState: q,
3128
- setGlobalFilterText: Iu,
3129
- globalFilterStatus: eo,
3130
- globalFilterProgress: to,
3131
- selectionAggregates: Lu,
3132
- filtersApplied: ro
3133
- }), zu = ro ? q.filters.columnFilters : Bi, Bu = y(() => ({
3131
+ setGlobalFilterText: Ru,
3132
+ globalFilterStatus: to,
3133
+ globalFilterProgress: no,
3134
+ selectionAggregates: zu,
3135
+ filtersApplied: io
3136
+ }), Vu = io ? q.filters.columnFilters : Bi, Hu = y(() => ({
3134
3137
  width: ze,
3135
3138
  minWidth: ze
3136
- }), [ze]), Vu = Z === 0, Hu = xi?.TotalRow, Uu = (e, t, n, r) => wi && Hu ? /* @__PURE__ */ R(Hu, {
3139
+ }), [ze]), Uu = Z === 0, Wu = wi?.TotalRow, Gu = (e, t, n, r) => Ti && Wu ? /* @__PURE__ */ R(Wu, {
3137
3140
  pane: e,
3138
3141
  ownsRowHeader: t,
3139
3142
  leadingWidth: n,
3140
- bodyHeight: Mi && !Li ? 0 : fs,
3141
- stickyBottom: Li ? Pi * Yn : 0,
3142
- height: Oi,
3143
+ bodyHeight: Ni && !Wi ? 0 : ps,
3144
+ stickyBottom: Wi ? Ii * Yn : 0,
3145
+ height: ki,
3143
3146
  renderEntries: r,
3144
- cells: Ao,
3145
- label: Ti,
3146
- labelColumnKey: jo,
3147
- ariaRowIndex: Z + 2 + Ni + (Li ? 0 : Pi),
3148
- rowHeaderCellStyle: Bu,
3149
- renderCell: Di,
3150
- rowClassName: Js.className,
3151
- rowStyle: Js.style,
3147
+ cells: jo,
3148
+ label: Ei,
3149
+ labelColumnKey: Mo,
3150
+ ariaRowIndex: Z + 2 + Pi + (Wi ? 0 : Ii),
3151
+ rowHeaderCellStyle: Hu,
3152
+ renderCell: Oi,
3153
+ rowClassName: Xs.className,
3154
+ rowStyle: Xs.style,
3152
3155
  slots: $,
3153
- onPointerEnter: Ys
3154
- }) : null, Wu = (e, t, n, r, i) => {
3155
- let a = e === "top" ? Ai : Mi;
3156
- return a && ki ? /* @__PURE__ */ R(ki, {
3156
+ onPointerEnter: Zs
3157
+ }) : null, Ku = (e, t, n, r, i) => {
3158
+ let a = e === "top" ? Mi : Ni;
3159
+ return a && Ai ? /* @__PURE__ */ R(Ai, {
3157
3160
  pane: t,
3158
3161
  position: e,
3159
3162
  ownsRowHeader: n,
3160
3163
  leadingWidth: r,
3161
3164
  rows: a,
3162
3165
  rowHeight: Yn,
3163
- stickyOffset: e === "top" ? Xn : Li ? 0 : Oi,
3164
- bodyHeight: e === "top" || Li ? 0 : fs,
3166
+ stickyOffset: e === "top" ? Xn : Wi ? 0 : ki,
3167
+ bodyHeight: e === "top" || Wi ? 0 : ps,
3165
3168
  renderEntries: i,
3166
3169
  rowKeyGetter: gr,
3167
- ariaRowIndexStart: e === "top" ? 2 : Z + 2 + Ni + +!!Li,
3168
- rowHeaderCellStyle: Bu,
3170
+ ariaRowIndexStart: e === "top" ? 2 : Z + 2 + Pi + +!!Wi,
3171
+ rowHeaderCellStyle: Hu,
3169
3172
  getRowClassName: xn,
3170
3173
  showCellOverflowTooltip: Lt,
3171
- conditionalFormat: Gc,
3172
- conditionalFormatStats: Kc,
3174
+ conditionalFormat: qc,
3175
+ conditionalFormatStats: Jc,
3173
3176
  slots: $,
3174
- onPointerEnter: Ys
3177
+ onPointerEnter: Zs
3175
3178
  }) : null;
3176
- }, Gu = (e, t, n, r) => {
3177
- let i = Wu("bottom", e, t, n, r), a = Uu(e, t, n, r);
3178
- return Li ? /* @__PURE__ */ z(L, { children: [a, i] }) : /* @__PURE__ */ z(L, { children: [i, a] });
3179
- }, Ku = (e, t, n) => ({
3179
+ }, qu = (e, t, n, r) => {
3180
+ let i = Ku("bottom", e, t, n, r), a = Gu(e, t, n, r);
3181
+ return Wi ? /* @__PURE__ */ z(L, { children: [a, i] }) : /* @__PURE__ */ z(L, { children: [i, a] });
3182
+ }, Ju = (e, t, n) => ({
3180
3183
  position: "sticky",
3181
3184
  ...e === "left" ? { left: 0 } : { right: 0 },
3182
3185
  width: t,
@@ -3191,37 +3194,37 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3191
3194
  borderLeft: "1px solid var(--ssg-pane-border)",
3192
3195
  boxShadow: "var(--ssg-pane-shadow-right)"
3193
3196
  } : {}
3194
- }), qu = B.grouping !== void 0 && !K && !_i && T !== void 0 && Kn.some((e) => e.rowGroup !== void 0), Ju = _a ? /* @__PURE__ */ R(B.columnMenu.ColumnMenuPopover, {
3197
+ }), Yu = B.grouping !== void 0 && !K && !bi && T !== void 0 && Kn.some((e) => e.rowGroup !== void 0), Xu = va ? /* @__PURE__ */ R(B.columnMenu.ColumnMenuPopover, {
3195
3198
  slots: $,
3196
- themeClassName: Ks,
3197
- isOpen: ha,
3198
- title: _a.title || _a.key,
3199
- columnKey: _a.key,
3200
- canFilter: br && !!_a.filterType,
3201
- onOpenFilter: () => Zl(_a),
3199
+ themeClassName: Js,
3200
+ isOpen: ga,
3201
+ title: va.title || va.key,
3202
+ columnKey: va.key,
3203
+ canFilter: br && !!va.filterType,
3204
+ onOpenFilter: () => $l(va),
3202
3205
  canSort: yr,
3203
- sortDirection: q.sort.find((e) => e.columnKey === _a.key)?.direction ?? null,
3204
- onSortChange: (e) => eu(_a.key, e),
3205
- onOpenSortManager: Ta ? Xl : void 0,
3206
+ sortDirection: q.sort.find((e) => e.columnKey === va.key)?.direction ?? null,
3207
+ onSortChange: (e) => nu(va.key, e),
3208
+ onOpenSortManager: Ea ? Ql : void 0,
3206
3209
  canManageFilters: br,
3207
- onOpenFilterManager: Ta ? Ql : void 0,
3208
- pinned: _a.pinned,
3210
+ onOpenFilterManager: Ea ? eu : void 0,
3211
+ pinned: va.pinned,
3209
3212
  canChangePinned: !!T,
3210
- layout: pa,
3211
- popoverRef: ma,
3212
- onPinnedChange: Kl,
3213
- onAutosizeColumn: Io.available ? ql : void 0,
3214
- onAutosizeAllColumns: Io.available ? Jl : void 0,
3215
- onOpenColumnChooser: Ta ? Yl : void 0,
3213
+ layout: ma,
3214
+ popoverRef: ha,
3215
+ onPinnedChange: Jl,
3216
+ onAutosizeColumn: Lo.available ? Yl : void 0,
3217
+ onAutosizeAllColumns: Lo.available ? Xl : void 0,
3218
+ onOpenColumnChooser: Ea ? Zl : void 0,
3216
3219
  canResetColumns: !!T,
3217
- onResetColumns: $l,
3218
- onGroupByColumn: qu && _a.aggFunc == null && _a.rowGroup !== !0 && W.some((e) => e.key !== _a.key && e.rowGroup !== !0 && !At(e.key)) ? () => tu(_a.key) : void 0,
3219
- onUngroup: qu && pr ? nu : void 0,
3220
- onRequestClose: Sa
3221
- }) : null, Yu = xr && Ua.trim().length > 0, Xu = xu.length + +!!Yu, Zu = Da.map((e) => e === "filter" ? {
3220
+ onResetColumns: tu,
3221
+ onGroupByColumn: Yu && va.aggFunc == null && va.rowGroup !== !0 && W.some((e) => e.key !== va.key && e.rowGroup !== !0 && !At(e.key)) ? () => ru(va.key) : void 0,
3222
+ onUngroup: Yu && pr ? iu : void 0,
3223
+ onRequestClose: Ca
3224
+ }) : null, Zu = xr && Wa.trim().length > 0, Qu = Cu.length + +!!Zu, $u = Oa.map((e) => e === "filter" ? {
3222
3225
  tab: e,
3223
3226
  label: Jn.toolPanelFilters,
3224
- badge: Xu
3227
+ badge: Qu
3225
3228
  } : e === "sort" ? {
3226
3229
  tab: e,
3227
3230
  label: Jn.toolPanelSort,
@@ -3229,149 +3232,149 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3229
3232
  } : {
3230
3233
  tab: e,
3231
3234
  label: Jn.toolPanelColumns
3232
- }), Qu = Fa ? /* @__PURE__ */ R(Fa.ToolPanel, {
3235
+ }), ed = Ia ? /* @__PURE__ */ R(Ia.ToolPanel, {
3233
3236
  popoverSlot: $.popover,
3234
- themeClassName: Ks,
3235
- activeTab: Ea,
3236
- flashTick: ka,
3237
- tabs: Zu,
3238
- layout: Oa,
3239
- panelRef: Aa,
3240
- onSelectTab: ja,
3241
- onRequestClose: Ma,
3242
- onPanelMove: Na,
3243
- children: Ea === null ? null : {
3237
+ themeClassName: Js,
3238
+ activeTab: Da,
3239
+ flashTick: Aa,
3240
+ tabs: $u,
3241
+ layout: ka,
3242
+ panelRef: ja,
3243
+ onSelectTab: Ma,
3244
+ onRequestClose: Na,
3245
+ onPanelMove: Pa,
3246
+ children: Da === null ? null : {
3244
3247
  filter: ({ FilterManagementPanel: e }) => /* @__PURE__ */ R(e, {
3245
- entries: xu,
3246
- addableColumns: Su,
3247
- showGlobalFilterRow: Yu,
3248
- globalFilterText: Ua,
3248
+ entries: Cu,
3249
+ addableColumns: wu,
3250
+ showGlobalFilterRow: Zu,
3251
+ globalFilterText: Wa,
3249
3252
  canFilter: br,
3250
- onEditFilter: Cu,
3251
- onAddFilter: Cu,
3252
- onClearFilter: ru,
3253
- onClearAllFilters: iu,
3254
- onClearGlobalFilter: au
3253
+ onEditFilter: Tu,
3254
+ onAddFilter: Tu,
3255
+ onClearFilter: au,
3256
+ onClearAllFilters: ou,
3257
+ onClearGlobalFilter: su
3255
3258
  }),
3256
3259
  columns: ({ ColumnChooserPanel: e }) => /* @__PURE__ */ R(e, {
3257
- items: yu,
3260
+ items: xu,
3258
3261
  canToggle: !!T,
3259
- onToggleColumnVisibility: ou,
3260
- onShowAllColumns: su,
3261
- onHideAllColumns: cu,
3262
- onResetColumns: uu,
3263
- onReorderColumns: lu
3262
+ onToggleColumnVisibility: cu,
3263
+ onShowAllColumns: lu,
3264
+ onHideAllColumns: uu,
3265
+ onResetColumns: fu,
3266
+ onReorderColumns: du
3264
3267
  }),
3265
3268
  sort: ({ SortManagementPanel: e }) => /* @__PURE__ */ R(e, {
3266
3269
  entries: q.sort,
3267
- columns: bu,
3270
+ columns: Su,
3268
3271
  canSort: yr,
3269
- onAddLevel: fu,
3270
- onChangeDirection: pu,
3271
- onChangeColumn: mu,
3272
- onRemoveLevel: hu,
3273
- onClearAll: gu,
3274
- onMove: _u
3272
+ onAddLevel: mu,
3273
+ onChangeDirection: hu,
3274
+ onChangeColumn: gu,
3275
+ onRemoveLevel: _u,
3276
+ onClearAll: vu,
3277
+ onMove: yu
3275
3278
  })
3276
- }[Ea](Fa)
3277
- }) : null, $u = Ra($, Ks), ed = ca || ha || Ea !== null || Ia, [td] = x(F);
3278
- u(td, {
3279
+ }[Da](Ia)
3280
+ }) : null, td = za($, Js), nd = la || ga || Da !== null || La, [rd] = x(F);
3281
+ u(rd, {
3279
3282
  gridRootRef: H,
3280
3283
  isClaimedTarget: (e, t) => {
3281
3284
  let n = Sr.getState();
3282
3285
  if (!t.contains(e)) {
3283
- if (e.closest(ce) !== null) return ed || n.editingCell !== null;
3286
+ if (e.closest(ce) !== null) return nd || n.editingCell !== null;
3284
3287
  let t = e.ownerDocument;
3285
- return ed && (e === t.body || e === t.documentElement);
3288
+ return nd && (e === t.body || e === t.documentElement);
3286
3289
  }
3287
- return e.closest(".ssg-cell-editor, [data-ssg-find-bar]") === null ? e === t || e.hasAttribute("data-ssg-ime-input") ? n.editingCell !== null || le(n.selection) || Ml !== null : !1 : !0;
3290
+ return e.closest(".ssg-cell-editor, [data-ssg-find-bar]") === null ? e === t || e.hasAttribute("data-ssg-ime-input") ? n.editingCell !== null || le(n.selection) || Pl !== null : !1 : !0;
3288
3291
  }
3289
3292
  });
3290
- let nd = m((e) => {
3291
- ed || pl(e), I(e.nativeEvent) && e.stopPropagation();
3292
- }, [ed, pl]), rd = on, id = sn && xr, ad = rd || id ? /* @__PURE__ */ R(Si, {
3293
+ let id = m((e) => {
3294
+ nd || hl(e), I(e.nativeEvent) && e.stopPropagation();
3295
+ }, [nd, hl]), ad = on, od = sn && xr, sd = ad || od ? /* @__PURE__ */ R(Si, {
3293
3296
  slot: $.toolbar,
3294
- derivedSummary: Ru.derivedSummary,
3295
- globalFilterText: Ru.globalFilterText,
3296
- setGlobalFilterText: Ru.setGlobalFilterText,
3297
- showSummary: rd,
3298
- showFilter: id,
3297
+ derivedSummary: Bu.derivedSummary,
3298
+ globalFilterText: Bu.globalFilterText,
3299
+ setGlobalFilterText: Bu.setGlobalFilterText,
3300
+ showSummary: ad,
3301
+ showFilter: od,
3299
3302
  showCounts: dn,
3300
3303
  globalFilterPlaceholder: cn,
3301
3304
  globalFilterIcon: ln,
3302
- onFilterSummaryClick: br && Ta ? wu : void 0,
3303
- filterPanelOpen: Ea === "filter"
3304
- }) : null, od = rn ? Ci(hn, Ru, ad) : null, sd = an ? Ci(gn, Ru, /* @__PURE__ */ R(yi, {
3305
+ onFilterSummaryClick: br && Ea ? Eu : void 0,
3306
+ filterPanelOpen: Da === "filter"
3307
+ }) : null, cd = rn ? Ci(hn, Bu, sd) : null, ld = an ? Ci(gn, Bu, /* @__PURE__ */ R(yi, {
3305
3308
  slot: $.statusBar,
3306
- derivedSummary: Ru.derivedSummary,
3307
- selectionAggregates: Ru.selectionAggregates,
3309
+ derivedSummary: Bu.derivedSummary,
3310
+ selectionAggregates: Bu.selectionAggregates,
3308
3311
  showCounts: fn,
3309
3312
  localeTexts: Jn,
3310
3313
  SelectionAggregates: B.selectionAggregates.SelectionAggregates
3311
- })) : null, cd = A(Be, Ve), ld = cd.scrollContainerStyle;
3312
- u(wc, {
3314
+ })) : null, ud = A(Be, Ve), dd = ud.scrollContainerStyle;
3315
+ u(Ec, {
3313
3316
  scrollContainerRef: ar,
3314
3317
  dispatch: J,
3315
3318
  rowModel: X,
3316
3319
  viewRowCount: Z,
3317
- leafRowCount: Bo,
3318
- groupTree: lo,
3320
+ leafRowCount: Vo,
3321
+ groupTree: uo,
3319
3322
  rowMetrics: Q,
3320
- paneLayout: Ji,
3323
+ paneLayout: Yi,
3321
3324
  orderedColumns: G,
3322
3325
  columns: Kn,
3323
3326
  onColumnsChange: T,
3324
3327
  includeGroupingInState: Vn,
3325
3328
  uiState: q,
3326
3329
  getUiState: Sr.getState,
3327
- focusGrid: Tl,
3328
- beforeDetailRowsCollapse: Jr.returnFocusFromCards,
3329
- startEditCell: zc,
3330
+ focusGrid: Dl,
3331
+ beforeDetailRowsCollapse: Yr.returnFocusFromCards,
3332
+ startEditCell: Vc,
3330
3333
  headerHeight: Y,
3331
- verticalScaleFactor: ms,
3332
- leftPaneTotalWidth: ta,
3333
- rightPaneTotalWidth: na,
3334
- centerLeadingWidth: $i,
3335
- windowFirstRow: us,
3336
- windowLastRow: ds,
3337
- physicalBodyHeight: fs,
3338
- measuredRowHeights: ns || os,
3334
+ verticalScaleFactor: hs,
3335
+ leftPaneTotalWidth: na,
3336
+ rightPaneTotalWidth: ra,
3337
+ centerLeadingWidth: ea,
3338
+ windowFirstRow: ds,
3339
+ windowLastRow: fs,
3340
+ physicalBodyHeight: ps,
3341
+ measuredRowHeights: rs || ss,
3339
3342
  rows: V,
3340
3343
  isServerSide: K,
3341
- serverSideRefresh: bo.refresh,
3342
- serverSideRetryFailed: bo.retryFailedBlocks,
3344
+ serverSideRefresh: xo.refresh,
3345
+ serverSideRetryFailed: xo.retryFailedBlocks,
3343
3346
  resolvedRowKeyGetter: gr,
3344
3347
  isRowExportable: O,
3345
- labelRowExport: ks,
3348
+ labelRowExport: js,
3346
3349
  localeTexts: Jn,
3347
- labelViewIndexes: fo?.labelViewIndexes,
3348
- totalRowExport: qc,
3349
- pinnedRowsExport: Jc,
3350
- footerHeight: Ii,
3351
- stickyTopInset: Os,
3352
- activeToolPanelTab: Ea,
3353
- openToolPanel: ja,
3354
- closeToolPanel: Ma,
3350
+ labelViewIndexes: po?.labelViewIndexes,
3351
+ totalRowExport: Yc,
3352
+ pinnedRowsExport: Xc,
3353
+ footerHeight: Li,
3354
+ stickyTopInset: As,
3355
+ activeToolPanelTab: Da,
3356
+ openToolPanel: Ma,
3357
+ closeToolPanel: Na,
3355
3358
  find: {
3356
3359
  open: U.find.open,
3357
3360
  close: U.find.close,
3358
3361
  next: U.find.next,
3359
3362
  prev: U.find.prev
3360
3363
  },
3361
- undoRows: Ac,
3362
- redoRows: jc,
3363
- canUndoRows: Mc,
3364
- canRedoRows: Nc,
3365
- clearUndoHistory: Pc,
3366
- applyRowsChange: kc,
3367
- detailRowEnabled: zr,
3368
- detailIsExpandable: $o,
3369
- detailIndexCacheRef: qr,
3370
- moveRowByKey: Du,
3371
- commitRowSelection: oc.commitRowSelection,
3372
- pendingRowSelection: oc.pendingRowSelection,
3373
- markApiScroll: () => ($s(), Wo.markApiScroll())
3374
- }), v(Rn, () => wc.handle, [wc]), u(U.stateChangeNotifier, {
3364
+ undoRows: Mc,
3365
+ redoRows: Nc,
3366
+ canUndoRows: Pc,
3367
+ canRedoRows: Fc,
3368
+ clearUndoHistory: Ic,
3369
+ applyRowsChange: jc,
3370
+ detailRowEnabled: qr,
3371
+ detailIsExpandable: es,
3372
+ detailIndexCacheRef: Jr,
3373
+ moveRowByKey: ku,
3374
+ commitRowSelection: cc.commitRowSelection,
3375
+ pendingRowSelection: cc.pendingRowSelection,
3376
+ markApiScroll: () => (tc(), Go.markApiScroll())
3377
+ }), v(Rn, () => Ec.handle, [Ec]), u(U.stateChangeNotifier, {
3375
3378
  columnWidths: q.columnWidths,
3376
3379
  filters: q.filters,
3377
3380
  sort: q.sort,
@@ -3383,127 +3386,127 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3383
3386
  onFiltersChange: Un,
3384
3387
  onSortChange: Wn
3385
3388
  }, "passive");
3386
- let ud = /* @__PURE__ */ z("div", {
3387
- className: w("ssg-root", Ee !== "standard" && `ssg-root--density-${Ee}`, Gs, vr, q.dragState?.type === "selection" && "ssg-root--selecting", Wc.filling && "ssg-root--filling", _s && "ssg-root--animate-rows", Me === "cross" && "ssg-root--hover-cross", Ue && "ssg-root--dim-readonly", So && "ssg-root--refetching", cd.fillParent && "ssg-root--fill-height", _n, $.root?.className),
3388
- style: E(cd.rootStyle, $.root?.style, yn),
3389
+ let fd = /* @__PURE__ */ z("div", {
3390
+ className: w("ssg-root", Ee !== "standard" && `ssg-root--density-${Ee}`, qs, vr, q.dragState?.type === "selection" && "ssg-root--selecting", Kc.filling && "ssg-root--filling", ys && "ssg-root--animate-rows", Me === "cross" && "ssg-root--hover-cross", Ue && "ssg-root--dim-readonly", Co && "ssg-root--refetching", ud.fillParent && "ssg-root--fill-height", _n, $.root?.className),
3391
+ style: E(ud.rootStyle, $.root?.style, yn),
3389
3392
  children: [
3390
- od,
3393
+ cd,
3391
3394
  mn && /* @__PURE__ */ R(B.filtering.FilterChipBar, {
3392
3395
  slot: $.filterChipBar,
3393
- entries: xu,
3396
+ entries: Cu,
3394
3397
  canFilter: br,
3395
- onEditFilter: Cu,
3396
- onClearFilter: ru,
3397
- onClearAllFilters: iu
3398
+ onEditFilter: Tu,
3399
+ onClearFilter: au,
3400
+ onClearAllFilters: ou
3398
3401
  }),
3399
3402
  /* @__PURE__ */ z("div", {
3400
3403
  ref: H,
3401
3404
  className: "ssg-shell",
3402
- style: { cursor: Lo ? "progress" : void 0 },
3403
- onDragStart: yc,
3405
+ style: { cursor: Ro ? "progress" : void 0 },
3406
+ onDragStart: xc,
3404
3407
  onPointerLeave: () => {
3405
- Lr(null), Me === "cross" && Nr(null);
3408
+ Rr(null), Me === "cross" && Pr(null);
3406
3409
  },
3407
3410
  onPointerOver: (e) => {
3408
- e.target instanceof Element && e.target.closest("[data-ssg-label-row], [data-ssg-sticky-label]") !== null && (Lr(null), Me === "cross" && Nr(null));
3411
+ e.target instanceof Element && e.target.closest("[data-ssg-label-row], [data-ssg-sticky-label]") !== null && (Rr(null), Me === "cross" && Pr(null));
3409
3412
  },
3410
3413
  onPointerMoveCapture: (e) => {
3411
3414
  tr.current = {
3412
3415
  x: e.clientX,
3413
3416
  y: e.clientY
3414
- }, hc(e.clientX, e.clientY);
3417
+ }, _c(e.clientX, e.clientY);
3415
3418
  },
3416
3419
  onPointerDownCapture: (e) => e.currentTarget.setAttribute("data-ssg-pointer", ""),
3417
3420
  onKeyDownCapture: (e) => e.currentTarget.removeAttribute("data-ssg-pointer"),
3418
3421
  onBlur: (e) => {
3419
3422
  !e.currentTarget.contains(e.relatedTarget) && document.hasFocus() && e.currentTarget.removeAttribute("data-ssg-pointer");
3420
3423
  },
3421
- tabIndex: ed ? -1 : 0,
3424
+ tabIndex: nd ? -1 : 0,
3422
3425
  role: "group",
3423
- "aria-activedescendant": Bs,
3426
+ "aria-activedescendant": Hs,
3424
3427
  "data-ssg-has-active-cell": q.activeCell === null ? void 0 : "",
3425
- onKeyDown: nd,
3426
- onPaste: ed ? void 0 : Uc,
3427
- onContextMenu: ko,
3428
+ onKeyDown: id,
3429
+ onPaste: nd ? void 0 : Gc,
3430
+ onContextMenu: Ao,
3428
3431
  children: [
3429
3432
  /* @__PURE__ */ z("div", {
3430
3433
  ref: ar,
3431
3434
  tabIndex: -1,
3432
- onFocus: ll,
3435
+ onFocus: dl,
3433
3436
  role: "grid",
3434
3437
  "aria-label": nn,
3435
- "aria-rowcount": Z + 1 + Ni + Pi + +!!wi,
3438
+ "aria-rowcount": Z + 1 + Pi + Ii + +!!Ti,
3436
3439
  "aria-colcount": G.length + 1,
3437
3440
  "aria-multiselectable": Ze || void 0,
3438
3441
  "aria-readonly": He || void 0,
3439
- "aria-busy": So || void 0,
3440
- className: w("ssg-scroll-container", Vo?.scrollbar === !0 && "ssg-scroll-container--custom-scrollbar"),
3441
- style: ld,
3442
+ "aria-busy": Co || void 0,
3443
+ className: w("ssg-scroll-container", Ho?.scrollbar === !0 && "ssg-scroll-container--custom-scrollbar"),
3444
+ style: dd,
3442
3445
  children: [/* @__PURE__ */ z("div", {
3443
3446
  className: "ssg-inner-row",
3444
3447
  style: {
3445
- width: ia,
3446
- minWidth: ia,
3447
- height: Y + fs + Ii
3448
+ width: aa,
3449
+ minWidth: aa,
3450
+ height: Y + ps + Li
3448
3451
  },
3449
3452
  children: [
3450
3453
  /* @__PURE__ */ z("div", {
3451
3454
  ref: sr,
3452
- style: Ku("left", ta, Ji.left.entries.length > 0),
3453
- children: [Yi && /* @__PURE__ */ z("div", {
3455
+ style: Ju("left", na, Yi.left.entries.length > 0),
3456
+ children: [Xi && /* @__PURE__ */ z("div", {
3454
3457
  style: {
3455
3458
  position: "relative",
3456
3459
  overflow: "clip",
3457
- width: ta,
3458
- minWidth: ta,
3459
- height: Y + fs + Ii
3460
+ width: na,
3461
+ minWidth: na,
3462
+ height: Y + ps + Li
3460
3463
  },
3461
3464
  children: [
3462
3465
  /* @__PURE__ */ R(Ri, {
3463
3466
  pane: "left",
3464
3467
  ownsRowHeader: !0,
3465
- leadingWidth: Qi,
3468
+ leadingWidth: $i,
3466
3469
  headerHeight: Xn,
3467
- rowHeaderCellStyle: Bu,
3470
+ rowHeaderCellStyle: Hu,
3468
3471
  slots: $,
3469
3472
  isCornerHovered: Or,
3470
- isWholeGridSelected: Vc,
3471
- showSelectAllCheckbox: tc,
3472
- selectAllState: ac,
3473
+ isWholeGridSelected: Uc,
3474
+ showSelectAllCheckbox: rc,
3475
+ selectAllState: sc,
3473
3476
  filteredRowsLength: Z,
3474
3477
  visibleColumnsLength: W.length,
3475
- renderEntries: Ps,
3478
+ renderEntries: Is,
3476
3479
  hoveredColumnIndex: Dr,
3477
- selectionSnapshot: Gi,
3478
- columnFilterValues: zu,
3480
+ selectionSnapshot: Ki,
3481
+ columnFilterValues: Vu,
3479
3482
  sortState: q.sort,
3480
- onCornerPointerDown: Bl,
3481
- onCornerPointerEnter: Ul,
3482
- onCornerPointerLeave: Wl,
3483
- onColumnHeaderPointerDown: Sc,
3484
- onColumnHeaderPointerEnter: Cc,
3485
- onColumnHeaderPointerLeave: Hl,
3486
- onColumnResizePointerDown: vu,
3487
- enableColumnMenu: Ca,
3483
+ onCornerPointerDown: Hl,
3484
+ onCornerPointerEnter: Gl,
3485
+ onCornerPointerLeave: Kl,
3486
+ onColumnHeaderPointerDown: wc,
3487
+ onColumnHeaderPointerEnter: Tc,
3488
+ onColumnHeaderPointerLeave: Wl,
3489
+ onColumnResizePointerDown: bu,
3490
+ enableColumnMenu: wa,
3488
3491
  enableColumnResize: Pt,
3489
- openedMenuColumnKey: ga,
3490
- onColumnMenuButtonPointerDown: wa,
3491
- onColumnMenuButtonClick: ya,
3492
- onColumnHeaderContextMenu: ba,
3493
- onColumnDragHandlePointerDown: ju
3492
+ openedMenuColumnKey: _a,
3493
+ onColumnMenuButtonPointerDown: Ta,
3494
+ onColumnMenuButtonClick: ba,
3495
+ onColumnHeaderContextMenu: xa,
3496
+ onColumnDragHandlePointerDown: Nu
3494
3497
  }),
3495
- Wu("top", "left", !0, Qi, Ps),
3496
- gi && /* @__PURE__ */ R(gi, {
3498
+ Ku("top", "left", !0, $i, Is),
3499
+ _i && /* @__PURE__ */ R(_i, {
3497
3500
  pane: "left",
3498
3501
  ownsRowHeader: !0,
3499
- entry: Ds,
3502
+ entry: ks,
3500
3503
  headerHeight: Y,
3501
- rowHeaderCellStyle: Bu,
3504
+ rowHeaderCellStyle: Hu,
3502
3505
  renderContent: null,
3503
3506
  contentStickyLeft: 0,
3504
3507
  contentWidth: 0,
3505
- rowClassName: As.className,
3506
- rowStyle: As.style,
3508
+ rowClassName: Ms.className,
3509
+ rowStyle: Ms.style,
3507
3510
  slots: $
3508
3511
  }),
3509
3512
  /* @__PURE__ */ z("div", {
@@ -3511,180 +3514,180 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3511
3514
  position: "absolute",
3512
3515
  top: 0,
3513
3516
  left: 0,
3514
- width: ta,
3515
- height: Y + fs,
3516
- transform: ps
3517
+ width: na,
3518
+ height: Y + ps,
3519
+ transform: ms
3517
3520
  },
3518
3521
  children: [
3519
- (Rl("left") ?? [Ll("left")]).map((e, t) => /* @__PURE__ */ R(Gr, {
3522
+ (Bl("left") ?? [zl("left")]).map((e, t) => /* @__PURE__ */ R(Gr, {
3520
3523
  slot: $.selectionOverlay,
3521
3524
  rect: e,
3522
3525
  headerHeight: Y,
3523
- baseOffset: hs,
3524
- leadingWidth: Qi
3526
+ baseOffset: gs,
3527
+ leadingWidth: $i
3525
3528
  }, t)),
3526
- Al && Il("left").map((e, t) => /* @__PURE__ */ R(Al, {
3529
+ Ml && Rl("left").map((e, t) => /* @__PURE__ */ R(Ml, {
3527
3530
  slot: $.copyRangeOverlay,
3528
3531
  rect: e,
3529
3532
  headerHeight: Y,
3530
- baseOffset: hs,
3531
- leadingWidth: Qi
3533
+ baseOffset: gs,
3534
+ leadingWidth: $i
3532
3535
  }, t)),
3533
- jl && /* @__PURE__ */ R(jl, {
3534
- rect: zl("left"),
3536
+ Nl && /* @__PURE__ */ R(Nl, {
3537
+ rect: Vl("left"),
3535
3538
  headerHeight: Y,
3536
- baseOffset: hs,
3537
- leadingWidth: Qi
3539
+ baseOffset: gs,
3540
+ leadingWidth: $i
3538
3541
  }),
3539
3542
  /* @__PURE__ */ R(Kr, {
3540
3543
  slot: $.activeCellOverlay,
3541
- rect: Us("left"),
3544
+ rect: Gs("left"),
3542
3545
  headerHeight: Y,
3543
- baseOffset: hs,
3544
- leadingWidth: Qi
3546
+ baseOffset: gs,
3547
+ leadingWidth: $i
3545
3548
  }),
3546
- Wc.renderLayer("left", Qi),
3549
+ Kc.renderLayer("left", $i),
3547
3550
  /* @__PURE__ */ R(ii, {
3548
3551
  slots: $,
3549
- rect: Ws("left"),
3552
+ rect: Ks("left"),
3550
3553
  headerHeight: Y,
3551
- baseOffset: hs,
3552
- leadingWidth: Qi,
3554
+ baseOffset: gs,
3555
+ leadingWidth: $i,
3553
3556
  initialValue: Ar,
3554
- editor: xl?.editor,
3555
- editorSession: wl,
3556
- themeClassName: Ks,
3557
- onCommit: hl,
3558
- onCancel: gl,
3559
- onRegisterFlush: _l,
3560
- onRegisterLateCommit: pc.registerLateCommitReceiver,
3561
- align: xl?.align,
3557
+ editor: Cl?.editor,
3558
+ editorSession: El,
3559
+ themeClassName: Js,
3560
+ onCommit: _l,
3561
+ onCancel: vl,
3562
+ onRegisterFlush: yl,
3563
+ onRegisterLateCommit: hc.registerLateCommitReceiver,
3564
+ align: Cl?.align,
3562
3565
  enterMove: qe,
3563
- domId: Rs,
3564
- alignTop: Sl
3566
+ domId: Bs,
3567
+ alignTop: wl
3565
3568
  }),
3566
3569
  /* @__PURE__ */ R(ji, {
3567
- activeCellDomId: Ls,
3568
- cellEditorDomId: Rs,
3570
+ activeCellDomId: zs,
3571
+ cellEditorDomId: Bs,
3569
3572
  pane: "left",
3570
3573
  ownsRowHeader: !0,
3571
- leadingWidth: Qi,
3574
+ leadingWidth: $i,
3572
3575
  rowModel: X,
3573
- virtualRows: ss,
3574
- virtualRowIndexes: cs,
3575
- renderEntries: Ps,
3576
+ virtualRows: cs,
3577
+ virtualRowIndexes: ls,
3578
+ renderEntries: Is,
3576
3579
  rowHeight: Yn,
3577
- autoHeight: ns,
3580
+ autoHeight: rs,
3578
3581
  verticalAlign: ye,
3579
3582
  showCellOverflowTooltip: Lt,
3580
3583
  showValidationMarks: Rt,
3581
- conditionalFormatStats: Kc,
3582
- conditionalFormatResolvers: Gc,
3584
+ conditionalFormatStats: Jc,
3585
+ conditionalFormatResolvers: qc,
3583
3586
  isServerSide: K,
3584
3587
  collapsedGroupKeys: q.collapsedGroupKeys,
3585
- onGroupToggle: ho,
3586
- GroupRow: mo,
3587
- rowHeaderCellStyle: Bu,
3588
- ariaRowOffset: Ni,
3589
- hoveredRowIndex: Rr,
3590
- isWholeGridSelected: Vc,
3588
+ onGroupToggle: go,
3589
+ GroupRow: ho,
3590
+ rowHeaderCellStyle: Hu,
3591
+ ariaRowOffset: Pi,
3592
+ hoveredRowIndex: zr,
3593
+ isWholeGridSelected: Uc,
3591
3594
  enableRowSelection: Qe,
3592
- rowSelectionState: nc,
3595
+ rowSelectionState: ic,
3593
3596
  activeCell: q.activeCell,
3594
3597
  editingCell: q.editingCell,
3595
- selectionSnapshot: Gi,
3598
+ selectionSnapshot: Ki,
3596
3599
  readOnly: He,
3597
- canEditCell: To,
3598
- onRowHeaderPointerDown: bc,
3599
- onRowHeaderPointerEnter: xc,
3600
- onRowHeaderPointerLeave: Vl,
3601
- onCellPointerDown: gc,
3602
- onCellPointerEnter: vc,
3603
- onCellClick: uc,
3604
- onCellDoubleClick: _c,
3605
- renderCellContent: Fu,
3600
+ canEditCell: Eo,
3601
+ onRowHeaderPointerDown: Sc,
3602
+ onRowHeaderPointerEnter: Cc,
3603
+ onRowHeaderPointerLeave: Ul,
3604
+ onCellPointerDown: vc,
3605
+ onCellPointerEnter: bc,
3606
+ onCellClick: fc,
3607
+ onCellDoubleClick: yc,
3608
+ renderCellContent: Lu,
3606
3609
  getRowClassName: xn,
3607
- labelRowLayer: Es,
3608
- labelViewIndexes: fo?.labelViewIndexes,
3610
+ labelRowLayer: Os,
3611
+ labelViewIndexes: po?.labelViewIndexes,
3609
3612
  slots: $
3610
3613
  }),
3611
3614
  /* @__PURE__ */ R(Fi, {
3612
3615
  slots: $,
3613
- entries: ls,
3616
+ entries: us,
3614
3617
  mode: "band",
3615
- paneWidth: ta,
3618
+ paneWidth: na,
3616
3619
  cardStickyLeft: 0,
3617
3620
  cardWidth: 0,
3618
- renderCard: bs
3621
+ renderCard: Ss
3619
3622
  }),
3620
- mr && Au("left", "ssg-row-drop-indicator ssg-row-drop-indicator--cap")
3623
+ mr && Mu("left", "ssg-row-drop-indicator ssg-row-drop-indicator--cap")
3621
3624
  ]
3622
3625
  }),
3623
- Gu("left", !0, Qi, Ps)
3626
+ qu("left", !0, $i, Is)
3624
3627
  ]
3625
- }), Tu.renderDropIndicator("left", Mu)]
3628
+ }), Du.renderDropIndicator("left", Pu)]
3626
3629
  }),
3627
3630
  /* @__PURE__ */ R("div", {
3628
3631
  ref: rr,
3629
3632
  className: "ssg-center-pane",
3630
3633
  style: {
3631
- width: ra,
3632
- minWidth: ra
3634
+ width: ia,
3635
+ minWidth: ia
3633
3636
  },
3634
3637
  children: /* @__PURE__ */ z("div", {
3635
3638
  style: {
3636
3639
  position: "relative",
3637
3640
  overflow: "clip",
3638
- width: ra,
3639
- minWidth: ra,
3640
- height: Y + fs + Ii
3641
+ width: ia,
3642
+ minWidth: ia,
3643
+ height: Y + ps + Li
3641
3644
  },
3642
3645
  children: [
3643
3646
  /* @__PURE__ */ R(Ri, {
3644
3647
  pane: "center",
3645
- ownsRowHeader: Zi,
3646
- leadingWidth: $i,
3648
+ ownsRowHeader: Qi,
3649
+ leadingWidth: ea,
3647
3650
  headerHeight: Xn,
3648
- rowHeaderCellStyle: Bu,
3651
+ rowHeaderCellStyle: Hu,
3649
3652
  slots: $,
3650
3653
  isCornerHovered: Or,
3651
- isWholeGridSelected: Vc,
3652
- showSelectAllCheckbox: tc,
3653
- selectAllState: ac,
3654
+ isWholeGridSelected: Uc,
3655
+ showSelectAllCheckbox: rc,
3656
+ selectAllState: sc,
3654
3657
  filteredRowsLength: Z,
3655
3658
  visibleColumnsLength: W.length,
3656
- renderEntries: Ns,
3659
+ renderEntries: Fs,
3657
3660
  hoveredColumnIndex: Dr,
3658
- selectionSnapshot: Gi,
3659
- columnFilterValues: zu,
3661
+ selectionSnapshot: Ki,
3662
+ columnFilterValues: Vu,
3660
3663
  sortState: q.sort,
3661
- onCornerPointerDown: Bl,
3662
- onCornerPointerEnter: Ul,
3663
- onCornerPointerLeave: Wl,
3664
- onColumnHeaderPointerDown: Sc,
3665
- onColumnHeaderPointerEnter: Cc,
3666
- onColumnHeaderPointerLeave: Hl,
3667
- onColumnResizePointerDown: vu,
3668
- enableColumnMenu: Ca,
3664
+ onCornerPointerDown: Hl,
3665
+ onCornerPointerEnter: Gl,
3666
+ onCornerPointerLeave: Kl,
3667
+ onColumnHeaderPointerDown: wc,
3668
+ onColumnHeaderPointerEnter: Tc,
3669
+ onColumnHeaderPointerLeave: Wl,
3670
+ onColumnResizePointerDown: bu,
3671
+ enableColumnMenu: wa,
3669
3672
  enableColumnResize: Pt,
3670
- openedMenuColumnKey: ga,
3671
- onColumnMenuButtonPointerDown: wa,
3672
- onColumnMenuButtonClick: ya,
3673
- onColumnHeaderContextMenu: ba,
3674
- onColumnDragHandlePointerDown: ju
3673
+ openedMenuColumnKey: _a,
3674
+ onColumnMenuButtonPointerDown: Ta,
3675
+ onColumnMenuButtonClick: ba,
3676
+ onColumnHeaderContextMenu: xa,
3677
+ onColumnDragHandlePointerDown: Nu
3675
3678
  }),
3676
- Wu("top", "center", Zi, $i, Ns),
3677
- gi && /* @__PURE__ */ R(gi, {
3679
+ Ku("top", "center", Qi, ea, Fs),
3680
+ _i && /* @__PURE__ */ R(_i, {
3678
3681
  pane: "center",
3679
- ownsRowHeader: Zi,
3680
- entry: Ds,
3682
+ ownsRowHeader: Qi,
3683
+ entry: ks,
3681
3684
  headerHeight: Y,
3682
- rowHeaderCellStyle: Bu,
3683
- renderContent: Cs,
3684
- contentStickyLeft: xs,
3685
- contentWidth: Ss,
3686
- rowClassName: As.className,
3687
- rowStyle: As.style,
3685
+ rowHeaderCellStyle: Hu,
3686
+ renderContent: Ts,
3687
+ contentStickyLeft: Cs,
3688
+ contentWidth: ws,
3689
+ rowClassName: Ms.className,
3690
+ rowStyle: Ms.style,
3688
3691
  slots: $
3689
3692
  }),
3690
3693
  /* @__PURE__ */ z("div", {
@@ -3692,180 +3695,180 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3692
3695
  position: "absolute",
3693
3696
  top: 0,
3694
3697
  left: 0,
3695
- width: ra,
3696
- height: Y + fs,
3697
- transform: ps
3698
+ width: ia,
3699
+ height: Y + ps,
3700
+ transform: ms
3698
3701
  },
3699
3702
  children: [
3700
- (Rl("center") ?? [Ll("center")]).map((e, t) => /* @__PURE__ */ R(Gr, {
3703
+ (Bl("center") ?? [zl("center")]).map((e, t) => /* @__PURE__ */ R(Gr, {
3701
3704
  slot: $.selectionOverlay,
3702
3705
  rect: e,
3703
3706
  headerHeight: Y,
3704
- baseOffset: hs,
3705
- leadingWidth: $i
3707
+ baseOffset: gs,
3708
+ leadingWidth: ea
3706
3709
  }, t)),
3707
- Al && Il("center").map((e, t) => /* @__PURE__ */ R(Al, {
3710
+ Ml && Rl("center").map((e, t) => /* @__PURE__ */ R(Ml, {
3708
3711
  slot: $.copyRangeOverlay,
3709
3712
  rect: e,
3710
3713
  headerHeight: Y,
3711
- baseOffset: hs,
3712
- leadingWidth: $i
3714
+ baseOffset: gs,
3715
+ leadingWidth: ea
3713
3716
  }, t)),
3714
- jl && /* @__PURE__ */ R(jl, {
3715
- rect: zl("center"),
3717
+ Nl && /* @__PURE__ */ R(Nl, {
3718
+ rect: Vl("center"),
3716
3719
  headerHeight: Y,
3717
- baseOffset: hs,
3718
- leadingWidth: $i
3720
+ baseOffset: gs,
3721
+ leadingWidth: ea
3719
3722
  }),
3720
3723
  /* @__PURE__ */ R(Kr, {
3721
3724
  slot: $.activeCellOverlay,
3722
- rect: Us("center"),
3725
+ rect: Gs("center"),
3723
3726
  headerHeight: Y,
3724
- baseOffset: hs,
3725
- leadingWidth: $i
3727
+ baseOffset: gs,
3728
+ leadingWidth: ea
3726
3729
  }),
3727
- Wc.renderLayer("center", $i),
3730
+ Kc.renderLayer("center", ea),
3728
3731
  /* @__PURE__ */ R(ii, {
3729
3732
  slots: $,
3730
- rect: Ws("center"),
3733
+ rect: Ks("center"),
3731
3734
  headerHeight: Y,
3732
- baseOffset: hs,
3733
- leadingWidth: $i,
3735
+ baseOffset: gs,
3736
+ leadingWidth: ea,
3734
3737
  initialValue: Ar,
3735
- editor: xl?.editor,
3736
- editorSession: wl,
3737
- themeClassName: Ks,
3738
- onCommit: hl,
3739
- onCancel: gl,
3740
- onRegisterFlush: _l,
3741
- onRegisterLateCommit: pc.registerLateCommitReceiver,
3742
- align: xl?.align,
3738
+ editor: Cl?.editor,
3739
+ editorSession: El,
3740
+ themeClassName: Js,
3741
+ onCommit: _l,
3742
+ onCancel: vl,
3743
+ onRegisterFlush: yl,
3744
+ onRegisterLateCommit: hc.registerLateCommitReceiver,
3745
+ align: Cl?.align,
3743
3746
  enterMove: qe,
3744
- domId: Rs,
3745
- alignTop: Sl
3747
+ domId: Bs,
3748
+ alignTop: wl
3746
3749
  }),
3747
3750
  /* @__PURE__ */ R(ji, {
3748
- activeCellDomId: Ls,
3749
- cellEditorDomId: Rs,
3751
+ activeCellDomId: zs,
3752
+ cellEditorDomId: Bs,
3750
3753
  pane: "center",
3751
- ownsRowHeader: Zi,
3752
- leadingWidth: $i,
3754
+ ownsRowHeader: Qi,
3755
+ leadingWidth: ea,
3753
3756
  rowModel: X,
3754
- virtualRows: ss,
3755
- virtualRowIndexes: cs,
3756
- renderEntries: Ns,
3757
+ virtualRows: cs,
3758
+ virtualRowIndexes: ls,
3759
+ renderEntries: Fs,
3757
3760
  rowHeight: Yn,
3758
- autoHeight: ns,
3761
+ autoHeight: rs,
3759
3762
  verticalAlign: ye,
3760
3763
  showCellOverflowTooltip: Lt,
3761
3764
  showValidationMarks: Rt,
3762
- conditionalFormatStats: Kc,
3763
- conditionalFormatResolvers: Gc,
3765
+ conditionalFormatStats: Jc,
3766
+ conditionalFormatResolvers: qc,
3764
3767
  isServerSide: K,
3765
3768
  collapsedGroupKeys: q.collapsedGroupKeys,
3766
- onGroupToggle: ho,
3767
- GroupRow: mo,
3768
- rowHeaderCellStyle: Bu,
3769
- ariaRowOffset: Ni,
3770
- hoveredRowIndex: Rr,
3771
- isWholeGridSelected: Vc,
3769
+ onGroupToggle: go,
3770
+ GroupRow: ho,
3771
+ rowHeaderCellStyle: Hu,
3772
+ ariaRowOffset: Pi,
3773
+ hoveredRowIndex: zr,
3774
+ isWholeGridSelected: Uc,
3772
3775
  enableRowSelection: Qe,
3773
- rowSelectionState: nc,
3776
+ rowSelectionState: ic,
3774
3777
  activeCell: q.activeCell,
3775
3778
  editingCell: q.editingCell,
3776
- selectionSnapshot: Gi,
3779
+ selectionSnapshot: Ki,
3777
3780
  readOnly: He,
3778
- canEditCell: To,
3779
- onRowHeaderPointerDown: bc,
3780
- onRowHeaderPointerEnter: xc,
3781
- onRowHeaderPointerLeave: Vl,
3782
- onCellPointerDown: gc,
3783
- onCellPointerEnter: vc,
3784
- onCellClick: uc,
3785
- onCellDoubleClick: _c,
3786
- renderCellContent: Fu,
3781
+ canEditCell: Eo,
3782
+ onRowHeaderPointerDown: Sc,
3783
+ onRowHeaderPointerEnter: Cc,
3784
+ onRowHeaderPointerLeave: Ul,
3785
+ onCellPointerDown: vc,
3786
+ onCellPointerEnter: bc,
3787
+ onCellClick: fc,
3788
+ onCellDoubleClick: yc,
3789
+ renderCellContent: Lu,
3787
3790
  getRowClassName: xn,
3788
- labelRowLayer: Ts,
3789
- labelViewIndexes: fo?.labelViewIndexes,
3791
+ labelRowLayer: Ds,
3792
+ labelViewIndexes: po?.labelViewIndexes,
3790
3793
  slots: $
3791
3794
  }),
3792
3795
  /* @__PURE__ */ R(Fi, {
3793
3796
  slots: $,
3794
- entries: ls,
3795
- onCardKeyDown: sl,
3796
- onCardFocusLost: Jr.handleCardFocusLost,
3797
+ entries: us,
3798
+ onCardKeyDown: ll,
3799
+ onCardFocusLost: Yr.handleCardFocusLost,
3797
3800
  mode: "center",
3798
- paneWidth: ra,
3799
- cardStickyLeft: xs,
3800
- cardWidth: Ss,
3801
- cardSlot: qs,
3802
- renderCard: bs
3801
+ paneWidth: ia,
3802
+ cardStickyLeft: Cs,
3803
+ cardWidth: ws,
3804
+ cardSlot: Ys,
3805
+ renderCard: Ss
3803
3806
  }),
3804
- mr && Au("center", w("ssg-row-drop-indicator", Zi && "ssg-row-drop-indicator--cap"))
3807
+ mr && Mu("center", w("ssg-row-drop-indicator", Qi && "ssg-row-drop-indicator--cap"))
3805
3808
  ]
3806
3809
  }),
3807
- Gu("center", Zi, $i, Ns),
3808
- Tu.renderDropIndicator("center", Mu)
3810
+ qu("center", Qi, ea, Fs),
3811
+ Du.renderDropIndicator("center", Pu)
3809
3812
  ]
3810
3813
  })
3811
3814
  }),
3812
3815
  /* @__PURE__ */ z("div", {
3813
3816
  ref: cr,
3814
- style: Ku("right", na, Xi),
3815
- children: [Xi && /* @__PURE__ */ z("div", {
3817
+ style: Ju("right", ra, Zi),
3818
+ children: [Zi && /* @__PURE__ */ z("div", {
3816
3819
  style: {
3817
3820
  position: "relative",
3818
3821
  overflow: "clip",
3819
- width: na,
3820
- minWidth: na,
3821
- height: Y + fs + Ii
3822
+ width: ra,
3823
+ minWidth: ra,
3824
+ height: Y + ps + Li
3822
3825
  },
3823
3826
  children: [
3824
3827
  /* @__PURE__ */ R(Ri, {
3825
3828
  pane: "right",
3826
3829
  ownsRowHeader: !1,
3827
- leadingWidth: ea,
3830
+ leadingWidth: ta,
3828
3831
  headerHeight: Xn,
3829
- rowHeaderCellStyle: Bu,
3832
+ rowHeaderCellStyle: Hu,
3830
3833
  slots: $,
3831
3834
  isCornerHovered: Or,
3832
- isWholeGridSelected: Vc,
3833
- showSelectAllCheckbox: tc,
3834
- selectAllState: ac,
3835
+ isWholeGridSelected: Uc,
3836
+ showSelectAllCheckbox: rc,
3837
+ selectAllState: sc,
3835
3838
  filteredRowsLength: Z,
3836
3839
  visibleColumnsLength: W.length,
3837
- renderEntries: Fs,
3840
+ renderEntries: Ls,
3838
3841
  hoveredColumnIndex: Dr,
3839
- selectionSnapshot: Gi,
3840
- columnFilterValues: zu,
3842
+ selectionSnapshot: Ki,
3843
+ columnFilterValues: Vu,
3841
3844
  sortState: q.sort,
3842
- onCornerPointerDown: Bl,
3843
- onCornerPointerEnter: Ul,
3844
- onCornerPointerLeave: Wl,
3845
- onColumnHeaderPointerDown: Sc,
3846
- onColumnHeaderPointerEnter: Cc,
3847
- onColumnHeaderPointerLeave: Hl,
3848
- onColumnResizePointerDown: vu,
3849
- enableColumnMenu: Ca,
3845
+ onCornerPointerDown: Hl,
3846
+ onCornerPointerEnter: Gl,
3847
+ onCornerPointerLeave: Kl,
3848
+ onColumnHeaderPointerDown: wc,
3849
+ onColumnHeaderPointerEnter: Tc,
3850
+ onColumnHeaderPointerLeave: Wl,
3851
+ onColumnResizePointerDown: bu,
3852
+ enableColumnMenu: wa,
3850
3853
  enableColumnResize: Pt,
3851
- openedMenuColumnKey: ga,
3852
- onColumnMenuButtonPointerDown: wa,
3853
- onColumnMenuButtonClick: ya,
3854
- onColumnHeaderContextMenu: ba,
3855
- onColumnDragHandlePointerDown: ju
3854
+ openedMenuColumnKey: _a,
3855
+ onColumnMenuButtonPointerDown: Ta,
3856
+ onColumnMenuButtonClick: ba,
3857
+ onColumnHeaderContextMenu: xa,
3858
+ onColumnDragHandlePointerDown: Nu
3856
3859
  }),
3857
- Wu("top", "right", !1, ea, Fs),
3858
- gi && /* @__PURE__ */ R(gi, {
3860
+ Ku("top", "right", !1, ta, Ls),
3861
+ _i && /* @__PURE__ */ R(_i, {
3859
3862
  pane: "right",
3860
3863
  ownsRowHeader: !1,
3861
- entry: Ds,
3864
+ entry: ks,
3862
3865
  headerHeight: Y,
3863
- rowHeaderCellStyle: Bu,
3866
+ rowHeaderCellStyle: Hu,
3864
3867
  renderContent: null,
3865
3868
  contentStickyLeft: 0,
3866
3869
  contentWidth: 0,
3867
- rowClassName: As.className,
3868
- rowStyle: As.style,
3870
+ rowClassName: Ms.className,
3871
+ rowStyle: Ms.style,
3869
3872
  slots: $
3870
3873
  }),
3871
3874
  /* @__PURE__ */ z("div", {
@@ -3873,154 +3876,154 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
3873
3876
  position: "absolute",
3874
3877
  top: 0,
3875
3878
  left: 0,
3876
- width: na,
3877
- height: Y + fs,
3878
- transform: ps
3879
+ width: ra,
3880
+ height: Y + ps,
3881
+ transform: ms
3879
3882
  },
3880
3883
  children: [
3881
- (Rl("right") ?? [Ll("right")]).map((e, t) => /* @__PURE__ */ R(Gr, {
3884
+ (Bl("right") ?? [zl("right")]).map((e, t) => /* @__PURE__ */ R(Gr, {
3882
3885
  slot: $.selectionOverlay,
3883
3886
  rect: e,
3884
3887
  headerHeight: Y,
3885
- baseOffset: hs,
3886
- leadingWidth: ea
3888
+ baseOffset: gs,
3889
+ leadingWidth: ta
3887
3890
  }, t)),
3888
- Al && Il("right").map((e, t) => /* @__PURE__ */ R(Al, {
3891
+ Ml && Rl("right").map((e, t) => /* @__PURE__ */ R(Ml, {
3889
3892
  slot: $.copyRangeOverlay,
3890
3893
  rect: e,
3891
3894
  headerHeight: Y,
3892
- baseOffset: hs,
3893
- leadingWidth: ea
3895
+ baseOffset: gs,
3896
+ leadingWidth: ta
3894
3897
  }, t)),
3895
- jl && /* @__PURE__ */ R(jl, {
3896
- rect: zl("right"),
3898
+ Nl && /* @__PURE__ */ R(Nl, {
3899
+ rect: Vl("right"),
3897
3900
  headerHeight: Y,
3898
- baseOffset: hs,
3899
- leadingWidth: ea
3901
+ baseOffset: gs,
3902
+ leadingWidth: ta
3900
3903
  }),
3901
3904
  /* @__PURE__ */ R(Kr, {
3902
3905
  slot: $.activeCellOverlay,
3903
- rect: Us("right"),
3906
+ rect: Gs("right"),
3904
3907
  headerHeight: Y,
3905
- baseOffset: hs,
3906
- leadingWidth: ea
3908
+ baseOffset: gs,
3909
+ leadingWidth: ta
3907
3910
  }),
3908
- Wc.renderLayer("right", ea),
3911
+ Kc.renderLayer("right", ta),
3909
3912
  /* @__PURE__ */ R(ii, {
3910
3913
  slots: $,
3911
- rect: Ws("right"),
3914
+ rect: Ks("right"),
3912
3915
  headerHeight: Y,
3913
- baseOffset: hs,
3914
- leadingWidth: ea,
3916
+ baseOffset: gs,
3917
+ leadingWidth: ta,
3915
3918
  initialValue: Ar,
3916
- editor: xl?.editor,
3917
- editorSession: wl,
3918
- themeClassName: Ks,
3919
- onCommit: hl,
3920
- onCancel: gl,
3921
- onRegisterFlush: _l,
3922
- onRegisterLateCommit: pc.registerLateCommitReceiver,
3923
- align: xl?.align,
3919
+ editor: Cl?.editor,
3920
+ editorSession: El,
3921
+ themeClassName: Js,
3922
+ onCommit: _l,
3923
+ onCancel: vl,
3924
+ onRegisterFlush: yl,
3925
+ onRegisterLateCommit: hc.registerLateCommitReceiver,
3926
+ align: Cl?.align,
3924
3927
  enterMove: qe,
3925
- domId: Rs,
3926
- alignTop: Sl
3928
+ domId: Bs,
3929
+ alignTop: wl
3927
3930
  }),
3928
3931
  /* @__PURE__ */ R(ji, {
3929
- activeCellDomId: Ls,
3930
- cellEditorDomId: Rs,
3932
+ activeCellDomId: zs,
3933
+ cellEditorDomId: Bs,
3931
3934
  pane: "right",
3932
3935
  ownsRowHeader: !1,
3933
- leadingWidth: ea,
3936
+ leadingWidth: ta,
3934
3937
  rowModel: X,
3935
- virtualRows: ss,
3936
- virtualRowIndexes: cs,
3937
- renderEntries: Fs,
3938
+ virtualRows: cs,
3939
+ virtualRowIndexes: ls,
3940
+ renderEntries: Ls,
3938
3941
  rowHeight: Yn,
3939
- autoHeight: ns,
3942
+ autoHeight: rs,
3940
3943
  verticalAlign: ye,
3941
3944
  showCellOverflowTooltip: Lt,
3942
3945
  showValidationMarks: Rt,
3943
- conditionalFormatStats: Kc,
3944
- conditionalFormatResolvers: Gc,
3946
+ conditionalFormatStats: Jc,
3947
+ conditionalFormatResolvers: qc,
3945
3948
  isServerSide: K,
3946
3949
  collapsedGroupKeys: q.collapsedGroupKeys,
3947
- onGroupToggle: ho,
3948
- GroupRow: mo,
3949
- rowHeaderCellStyle: Bu,
3950
- ariaRowOffset: Ni,
3951
- hoveredRowIndex: Rr,
3952
- isWholeGridSelected: Vc,
3950
+ onGroupToggle: go,
3951
+ GroupRow: ho,
3952
+ rowHeaderCellStyle: Hu,
3953
+ ariaRowOffset: Pi,
3954
+ hoveredRowIndex: zr,
3955
+ isWholeGridSelected: Uc,
3953
3956
  enableRowSelection: Qe,
3954
- rowSelectionState: nc,
3957
+ rowSelectionState: ic,
3955
3958
  activeCell: q.activeCell,
3956
3959
  editingCell: q.editingCell,
3957
- selectionSnapshot: Gi,
3960
+ selectionSnapshot: Ki,
3958
3961
  readOnly: He,
3959
- canEditCell: To,
3960
- onRowHeaderPointerDown: bc,
3961
- onRowHeaderPointerEnter: xc,
3962
- onRowHeaderPointerLeave: Vl,
3963
- onCellPointerDown: gc,
3964
- onCellPointerEnter: vc,
3965
- onCellClick: uc,
3966
- onCellDoubleClick: _c,
3967
- renderCellContent: Fu,
3962
+ canEditCell: Eo,
3963
+ onRowHeaderPointerDown: Sc,
3964
+ onRowHeaderPointerEnter: Cc,
3965
+ onRowHeaderPointerLeave: Ul,
3966
+ onCellPointerDown: vc,
3967
+ onCellPointerEnter: bc,
3968
+ onCellClick: fc,
3969
+ onCellDoubleClick: yc,
3970
+ renderCellContent: Lu,
3968
3971
  getRowClassName: xn,
3969
- labelRowLayer: Es,
3970
- labelViewIndexes: fo?.labelViewIndexes,
3972
+ labelRowLayer: Os,
3973
+ labelViewIndexes: po?.labelViewIndexes,
3971
3974
  slots: $
3972
3975
  }),
3973
3976
  /* @__PURE__ */ R(Fi, {
3974
3977
  slots: $,
3975
- entries: ls,
3978
+ entries: us,
3976
3979
  mode: "band",
3977
- paneWidth: na,
3980
+ paneWidth: ra,
3978
3981
  cardStickyLeft: 0,
3979
3982
  cardWidth: 0,
3980
- renderCard: bs
3983
+ renderCard: Ss
3981
3984
  }),
3982
- mr && Au("right", "ssg-row-drop-indicator")
3985
+ mr && Mu("right", "ssg-row-drop-indicator")
3983
3986
  ]
3984
3987
  }),
3985
- Gu("right", !1, ea, Fs)
3988
+ qu("right", !1, ta, Ls)
3986
3989
  ]
3987
- }), Tu.renderDropIndicator("right", Mu)]
3990
+ }), Du.renderDropIndicator("right", Pu)]
3988
3991
  })
3989
3992
  ]
3990
- }), Vu && /* @__PURE__ */ R("div", {
3993
+ }), Uu && /* @__PURE__ */ R("div", {
3991
3994
  className: w("ssg-empty-state", $.emptyState?.className),
3992
3995
  style: $.emptyState?.style,
3993
- children: (K ? !so : V.length === 0 && !co) ? tn ?? Jn.noRows : en ?? Jn.noMatchingRows
3996
+ children: (K ? !co : V.length === 0 && !lo) ? tn ?? Jn.noRows : en ?? Jn.noMatchingRows
3994
3997
  })]
3995
3998
  }),
3996
3999
  /* @__PURE__ */ R("span", {
3997
4000
  ref: or,
3998
4001
  className: "ssg-tab-exit",
3999
- tabIndex: ol ? 0 : -1,
4000
- "aria-hidden": ol ? void 0 : "true",
4001
- onFocus: cl
4002
+ tabIndex: cl ? 0 : -1,
4003
+ "aria-hidden": cl ? void 0 : "true",
4004
+ onFocus: ul
4002
4005
  }),
4003
- Vo !== null && Qn && /* @__PURE__ */ R(Qn, {
4006
+ Ho !== null && Qn && /* @__PURE__ */ R(Qn, {
4004
4007
  slot: $.scrollHint,
4005
- options: Vo,
4008
+ options: Ho,
4006
4009
  scrollContainerRef: ar,
4007
4010
  scrollTop: Cr,
4008
4011
  viewportHeight: Tr,
4009
4012
  headerHeight: Y,
4010
- physicalBodyHeight: fs,
4011
- verticalScaleFactor: ms,
4013
+ physicalBodyHeight: ps,
4014
+ verticalScaleFactor: hs,
4012
4015
  rowMetrics: Q,
4013
4016
  rowModel: X,
4014
- labelViewIndexes: fo?.labelViewIndexes
4017
+ labelViewIndexes: po?.labelViewIndexes
4015
4018
  }),
4016
- Lo && /* @__PURE__ */ R("div", {
4019
+ Ro && /* @__PURE__ */ R("div", {
4017
4020
  className: "ssg-autosize-overlay",
4018
4021
  children: /* @__PURE__ */ R("span", {
4019
4022
  className: "ssg-autosize-pill",
4020
4023
  children: Jn.sizingColumns
4021
4024
  })
4022
4025
  }),
4023
- eo === "filtering" && /* @__PURE__ */ R("div", {
4026
+ to === "filtering" && /* @__PURE__ */ R("div", {
4024
4027
  className: "ssg-filter-overlay",
4025
4028
  children: /* @__PURE__ */ z("span", {
4026
4029
  className: "ssg-filter-overlay-chip",
@@ -4031,21 +4034,21 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
4031
4034
  "aria-hidden": "true"
4032
4035
  }), /* @__PURE__ */ R("span", {
4033
4036
  className: "ssg-filter-overlay-text",
4034
- children: Ce(Jn.applyingFilter, { percent: Math.round(to * 100) })
4037
+ children: Ce(Jn.applyingFilter, { percent: Math.round(no * 100) })
4035
4038
  })]
4036
4039
  })
4037
4040
  }),
4038
- tl.open && $c && /* @__PURE__ */ R($c, {
4039
- snapshot: tl,
4041
+ rl.open && tl && /* @__PURE__ */ R(tl, {
4042
+ snapshot: rl,
4040
4043
  headerHeight: Y,
4041
4044
  onQueryChange: U.find.setQuery,
4042
4045
  onNext: U.find.next,
4043
4046
  onPrev: U.find.prev,
4044
- onClose: al,
4047
+ onClose: sl,
4045
4048
  slot: $.findBar
4046
4049
  }),
4047
- K && bo.renderErrorBars($.errorBar, Jn),
4048
- So && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
4050
+ K && xo.renderErrorBars($.errorBar, Jn),
4051
+ Co && /* @__PURE__ */ z(L, { children: [/* @__PURE__ */ R("div", {
4049
4052
  className: "ssg-refetch-veil",
4050
4053
  "aria-hidden": "true",
4051
4054
  style: {
@@ -4061,8 +4064,8 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
4061
4064
  width: wr > 0 ? wr : void 0
4062
4065
  }
4063
4066
  })] }),
4064
- yl ? /* @__PURE__ */ R("input", {
4065
- ref: bl,
4067
+ xl ? /* @__PURE__ */ R("input", {
4068
+ ref: Sl,
4066
4069
  [ue]: "",
4067
4070
  className: "ssg-ime-input",
4068
4071
  type: "text",
@@ -4075,12 +4078,12 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
4075
4078
  }) : null
4076
4079
  ]
4077
4080
  }),
4078
- sd,
4079
- Nu,
4080
- Ju,
4081
- Qu,
4082
- $u,
4083
- Wc.renderPortals()
4081
+ ld,
4082
+ Fu,
4083
+ Xu,
4084
+ ed,
4085
+ td,
4086
+ Kc.renderPortals()
4084
4087
  ]
4085
4088
  });
4086
4089
  return /* @__PURE__ */ R(o.Provider, {
@@ -4089,7 +4092,7 @@ function Wi({ rows: t = zi, dataSource: r, serverSideRefreshToken: i, serverSide
4089
4092
  value: er,
4090
4093
  children: /* @__PURE__ */ R(l.Provider, {
4091
4094
  value: Jn,
4092
- children: ud
4095
+ children: fd
4093
4096
  })
4094
4097
  })
4095
4098
  });
@@ -4141,27 +4144,27 @@ var Gi = {
4141
4144
  label: "menuPinRight"
4142
4145
  }
4143
4146
  ], Xi = 180, Zi = 4, Qi = 8, $i = "pin", ea = 500, ta = 24, na = (e, t) => e !== null && t.detail > 0 && t.timeStamp - e.at < ea && Math.abs(t.clientX - e.x) <= ta && Math.abs(t.clientY - e.y) <= ta;
4144
- function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, canFilter: l, onOpenFilter: u, canSort: d, sortDirection: f, onSortChange: p, onOpenSortManager: m, canManageFilters: h, onOpenFilterManager: v, pinned: y, canChangePinned: S, layout: C, popoverRef: T, onPinnedChange: E, onAutosizeColumn: D, onAutosizeAllColumns: O, onOpenColumnChooser: ee, canResetColumns: k, onResetColumns: A, onGroupByColumn: j, onUngroup: ne, onRequestClose: re }) {
4145
- let M = s(), [N, P] = x(null);
4147
+ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, canFilter: l, onOpenFilter: u, canSort: d, sortDirection: f, onSortChange: p, onOpenSortManager: m, canManageFilters: h, onOpenFilterManager: v, pinned: y, canChangePinned: S, layout: C, popoverRef: T, onPinnedChange: E, onAutosizeColumn: D, onAutosizeAllColumns: O, onOpenColumnChooser: ee, canResetColumns: k, onResetColumns: A, onGroupByColumn: j, onUngroup: M, onRequestClose: ne }) {
4148
+ let N = s(), [P, re] = x(null);
4146
4149
  g(() => {
4147
- P(null);
4150
+ re(null);
4148
4151
  }, [o, e]), n(() => {
4149
4152
  let e = T.current;
4150
4153
  e && (e.scrollTop = 0);
4151
4154
  }, [o, T]), t(T, e && C !== null, r, { layout: C });
4152
4155
  let ie = b(null);
4153
- t(ie, e && C !== null && N === $i && C.maxHeight === void 0, r, { origin: !1 });
4156
+ t(ie, e && C !== null && P === $i && C.maxHeight === void 0, r, { origin: !1 });
4154
4157
  let ae = c(e && C !== null), oe = b(null), se = b(null), ce = _(), F = b(!1), le = () => {
4155
4158
  let e = ie.current?.querySelector(".ssg-menu-item:not(:disabled)");
4156
4159
  return e?.focus(), e != null;
4157
4160
  };
4158
4161
  if (g(() => {
4159
- if (N !== $i) return;
4162
+ if (P !== $i) return;
4160
4163
  let e = ie.current;
4161
4164
  e?.classList.contains("ssg-menu-subgroup") && typeof e.scrollIntoView == "function" && e.scrollIntoView({ block: "nearest" }), F.current && (F.current = !1, le());
4162
- }, [N]), !e || !C || !ae) return null;
4163
- let I = N === $i, ue = C.maxHeight !== void 0, de = () => {
4164
- ue || P(null);
4165
+ }, [P]), !e || !C || !ae) return null;
4166
+ let I = P === $i, ue = C.maxHeight !== void 0, de = () => {
4167
+ ue || re(null);
4165
4168
  }, fe = C.left + C.width + Zi + Xi > window.innerWidth - Qi, pe = fe && C.left - Zi - Xi < Qi ? Math.max(Qi, Math.min(window.innerWidth - Qi - Xi, C.left - Zi - Xi)) - (C.left + 9) : void 0, me = {
4166
4169
  position: "fixed",
4167
4170
  top: C.top,
@@ -4215,7 +4218,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4215
4218
  style: i?.menuItem?.style,
4216
4219
  children: [/* @__PURE__ */ R("span", { className: "ssg-menu-icon" }), /* @__PURE__ */ R("span", {
4217
4220
  className: "ssg-menu-label",
4218
- children: M.menuFilter
4221
+ children: N.menuFilter
4219
4222
  })]
4220
4223
  }), /* @__PURE__ */ R("div", {
4221
4224
  role: "separator",
@@ -4238,7 +4241,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4238
4241
  children: f === "asc" ? "✓" : "↑"
4239
4242
  }), /* @__PURE__ */ R("span", {
4240
4243
  className: w("ssg-menu-label", f === "asc" && "ssg-menu-label--sorted"),
4241
- children: M.menuSortAscending
4244
+ children: N.menuSortAscending
4242
4245
  })]
4243
4246
  }),
4244
4247
  /* @__PURE__ */ z("button", {
@@ -4257,7 +4260,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4257
4260
  children: f === "desc" ? "✓" : "↓"
4258
4261
  }), /* @__PURE__ */ R("span", {
4259
4262
  className: w("ssg-menu-label", f === "desc" && "ssg-menu-label--sorted"),
4260
- children: M.menuSortDescending
4263
+ children: N.menuSortDescending
4261
4264
  })]
4262
4265
  }),
4263
4266
  m && /* @__PURE__ */ z("button", {
@@ -4271,7 +4274,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4271
4274
  style: i?.menuItem?.style,
4272
4275
  children: [/* @__PURE__ */ R("span", { className: "ssg-menu-icon" }), /* @__PURE__ */ R("span", {
4273
4276
  className: "ssg-menu-label",
4274
- children: M.menuManageSort
4277
+ children: N.menuManageSort
4275
4278
  })]
4276
4279
  })
4277
4280
  ] }),
@@ -4286,7 +4289,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4286
4289
  style: i?.menuItem?.style,
4287
4290
  children: [/* @__PURE__ */ R("span", { className: "ssg-menu-icon" }), /* @__PURE__ */ R("span", {
4288
4291
  className: "ssg-menu-label",
4289
- children: M.menuManageFilters
4292
+ children: N.menuManageFilters
4290
4293
  })]
4291
4294
  }),
4292
4295
  (d || h && v !== void 0) && /* @__PURE__ */ R("div", {
@@ -4304,24 +4307,24 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4304
4307
  style: i?.menuItem?.style,
4305
4308
  children: [/* @__PURE__ */ R("span", { className: "ssg-menu-icon" }), /* @__PURE__ */ R("span", {
4306
4309
  className: "ssg-menu-label",
4307
- children: M.menuGroupBy
4310
+ children: N.menuGroupBy
4308
4311
  })]
4309
4312
  }),
4310
- ne && /* @__PURE__ */ z("button", {
4313
+ M && /* @__PURE__ */ z("button", {
4311
4314
  type: "button",
4312
4315
  role: "menuitem",
4313
4316
  onPointerEnter: de,
4314
4317
  onClick: () => {
4315
- ne();
4318
+ M();
4316
4319
  },
4317
4320
  className: w("ssg-menu-item", i?.menuItem?.className),
4318
4321
  style: i?.menuItem?.style,
4319
4322
  children: [/* @__PURE__ */ R("span", { className: "ssg-menu-icon" }), /* @__PURE__ */ R("span", {
4320
4323
  className: "ssg-menu-label",
4321
- children: M.menuUngroup
4324
+ children: N.menuUngroup
4322
4325
  })]
4323
4326
  }),
4324
- (j || ne) && /* @__PURE__ */ R("div", {
4327
+ (j || M) && /* @__PURE__ */ R("div", {
4325
4328
  role: "separator",
4326
4329
  className: "ssg-menu-separator"
4327
4330
  }),
@@ -4335,31 +4338,31 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4335
4338
  "aria-haspopup": "menu",
4336
4339
  "aria-expanded": I,
4337
4340
  onPointerEnter: (e) => {
4338
- e.pointerType === "mouse" && !ue && P($i);
4341
+ e.pointerType === "mouse" && !ue && re($i);
4339
4342
  },
4340
4343
  onClick: (e) => {
4341
4344
  if (e.detail === 0) {
4342
4345
  if (I) {
4343
- !le() && ue && P(null);
4346
+ !le() && ue && re(null);
4344
4347
  return;
4345
4348
  }
4346
4349
  F.current = !0;
4347
4350
  } else if (ue && I) {
4348
- P(null);
4351
+ re(null);
4349
4352
  return;
4350
4353
  }
4351
4354
  se.current = e.detail > 0 ? {
4352
4355
  x: e.clientX,
4353
4356
  y: e.clientY,
4354
4357
  at: e.timeStamp
4355
- } : null, P($i);
4358
+ } : null, re($i);
4356
4359
  },
4357
4360
  onKeyDown: (e) => {
4358
4361
  if (e.key === "ArrowLeft" && ue && I) {
4359
- e.preventDefault(), P(null);
4362
+ e.preventDefault(), re(null);
4360
4363
  return;
4361
4364
  }
4362
- e.key === "ArrowRight" && (e.preventDefault(), I ? le() : (F.current = !0, P($i)));
4365
+ e.key === "ArrowRight" && (e.preventDefault(), I ? le() : (F.current = !0, re($i)));
4363
4366
  },
4364
4367
  className: w("ssg-menu-item", I && "ssg-menu-item--active", i?.menuItem?.className),
4365
4368
  style: i?.menuItem?.style,
@@ -4367,7 +4370,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4367
4370
  /* @__PURE__ */ R("span", { className: "ssg-menu-icon" }),
4368
4371
  /* @__PURE__ */ R("span", {
4369
4372
  className: "ssg-menu-label",
4370
- children: M.menuPin
4373
+ children: N.menuPin
4371
4374
  }),
4372
4375
  /* @__PURE__ */ R("span", {
4373
4376
  className: "ssg-menu-caret",
@@ -4378,14 +4381,14 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4378
4381
  }), I && /* @__PURE__ */ z("div", {
4379
4382
  ref: ie,
4380
4383
  role: "menu",
4381
- "aria-label": M.menuPin,
4384
+ "aria-label": N.menuPin,
4382
4385
  className: ue ? "ssg-menu-subgroup" : w("ssg-menu-panel", r, i?.popover?.className),
4383
4386
  style: ue ? void 0 : {
4384
4387
  ...i?.popover?.style,
4385
4388
  ...he
4386
4389
  },
4387
4390
  onKeyDown: (e) => {
4388
- e.key === "ArrowLeft" && (e.preventDefault(), P(null), oe.current?.focus());
4391
+ e.key === "ArrowLeft" && (e.preventDefault(), re(null), oe.current?.focus());
4389
4392
  },
4390
4393
  children: [Yi.map((e) => {
4391
4394
  let t = y === e.value;
@@ -4406,14 +4409,14 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4406
4409
  children: "✓"
4407
4410
  }), /* @__PURE__ */ R("span", {
4408
4411
  className: "ssg-menu-label",
4409
- children: M[e.label]
4412
+ children: N[e.label]
4410
4413
  })]
4411
4414
  }, e.label);
4412
4415
  }), !S && /* @__PURE__ */ R("div", {
4413
4416
  id: ce,
4414
4417
  role: "none",
4415
4418
  className: "ssg-menu-note",
4416
- children: M.menuPinUnavailable
4419
+ children: N.menuPinUnavailable
4417
4420
  })]
4418
4421
  })]
4419
4422
  }),
@@ -4428,7 +4431,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4428
4431
  style: i?.menuItem?.style,
4429
4432
  children: [/* @__PURE__ */ R("span", { className: "ssg-menu-icon" }), /* @__PURE__ */ R("span", {
4430
4433
  className: "ssg-menu-label",
4431
- children: M.menuAutosize
4434
+ children: N.menuAutosize
4432
4435
  })]
4433
4436
  }), /* @__PURE__ */ z("button", {
4434
4437
  type: "button",
@@ -4441,7 +4444,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4441
4444
  style: i?.menuItem?.style,
4442
4445
  children: [/* @__PURE__ */ R("span", { className: "ssg-menu-icon" }), /* @__PURE__ */ R("span", {
4443
4446
  className: "ssg-menu-label",
4444
- children: M.menuAutosizeAll
4447
+ children: N.menuAutosizeAll
4445
4448
  })]
4446
4449
  })] }),
4447
4450
  ee && /* @__PURE__ */ z("button", {
@@ -4455,7 +4458,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4455
4458
  style: i?.menuItem?.style,
4456
4459
  children: [/* @__PURE__ */ R("span", { className: "ssg-menu-icon" }), /* @__PURE__ */ R("span", {
4457
4460
  className: "ssg-menu-label",
4458
- children: M.menuColumns
4461
+ children: N.menuColumns
4459
4462
  })]
4460
4463
  }),
4461
4464
  /* @__PURE__ */ z("button", {
@@ -4463,7 +4466,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4463
4466
  role: "menuitem",
4464
4467
  "aria-disabled": !k,
4465
4468
  tabIndex: k ? 0 : -1,
4466
- "data-ssg-tooltip": k ? M.resetColumnsHint : M.menuResetUnavailable,
4469
+ "data-ssg-tooltip": k ? N.resetColumnsHint : N.menuResetUnavailable,
4467
4470
  onPointerEnter: de,
4468
4471
  onClick: () => {
4469
4472
  k && A();
@@ -4472,7 +4475,7 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4472
4475
  style: i?.menuItem?.style,
4473
4476
  children: [/* @__PURE__ */ R("span", { className: "ssg-menu-icon" }), /* @__PURE__ */ R("span", {
4474
4477
  className: "ssg-menu-label",
4475
- children: M.menuResetColumns
4478
+ children: N.menuResetColumns
4476
4479
  })]
4477
4480
  }),
4478
4481
  /* @__PURE__ */ R("div", {
@@ -4481,9 +4484,9 @@ function ra({ isOpen: e, themeClassName: r, slots: i, title: a, columnKey: o, ca
4481
4484
  children: /* @__PURE__ */ R("button", {
4482
4485
  type: "button",
4483
4486
  role: "menuitem",
4484
- onClick: re,
4487
+ onClick: ne,
4485
4488
  className: "ssg-menu-close-btn",
4486
- children: M.close
4489
+ children: N.close
4487
4490
  })
4488
4491
  })
4489
4492
  ]
@@ -4832,8 +4835,8 @@ var Ca = (e) => {
4832
4835
  };
4833
4836
  }, wa = {
4834
4837
  useFillHandle: ({ fillHandle: e, readOnly: t, isServerSide: n, rows: r, rowModel: i, orderedColumns: a, uiState: o, serverSideQueryKey: s, serverSideRefreshToken: c, canEditCell: l, dispatch: u, getCellCoordFromClientPoint: d, scrollContainerRef: f, gridRootRef: p, footerHeight: h, stickyTopHeight: g, handleRowsChange: _, amendRowsChange: v, applyServerSideCellEdits: b, viewRowCount: x, paneLayout: S, rowMetrics: C, windowFirstRow: w, windowLastRow: T, detailActive: E, detailExtras: D, viewportHeight: O, scrollTop: ee, verticalScaleFactor: k, headerHeight: A, overlayBaseOffset: te, portalClassName: j }) => {
4835
- let ne = typeof e == "object" ? e : void 0, re = !!e && !t && (n ? b !== void 0 : _ !== void 0), { fillController: M, fillSnapshot: N, fillChipRef: P, fillMenuRef: ie } = Ca({
4836
- enabled: re,
4838
+ let M = typeof e == "object" ? e : void 0, ne = !!e && !t && (n ? b !== void 0 : _ !== void 0), { fillController: N, fillSnapshot: P, fillChipRef: re, fillMenuRef: ie } = Ca({
4839
+ enabled: ne,
4837
4840
  isServerSide: n,
4838
4841
  rows: r,
4839
4842
  rowModel: i,
@@ -4850,7 +4853,7 @@ var Ca = (e) => {
4850
4853
  ],
4851
4854
  readOnly: t,
4852
4855
  canEditCell: l,
4853
- getFillValue: ne?.getFillValue,
4856
+ getFillValue: M?.getFillValue,
4854
4857
  dispatch: u,
4855
4858
  hitTest: d,
4856
4859
  scrollContainerRef: f,
@@ -4861,11 +4864,11 @@ var Ca = (e) => {
4861
4864
  amendRowsChange: v,
4862
4865
  applyServerSideCellEdits: b
4863
4866
  }), ae = y(() => {
4864
- if (!re || o.editingCell || o.dragState?.type === "selection") return null;
4867
+ if (!ne || o.editingCell || o.dragState?.type === "selection") return null;
4865
4868
  let e = Jn(o.selection, o.activeCell, x, a.length);
4866
4869
  return !e || !V(e, i, a) ? null : Kn(e, S, C, w, T);
4867
4870
  }, [
4868
- re,
4871
+ ne,
4869
4872
  o.editingCell,
4870
4873
  o.dragState,
4871
4874
  o.selection,
@@ -4878,8 +4881,8 @@ var Ca = (e) => {
4878
4881
  w,
4879
4882
  T
4880
4883
  ]), oe = y(() => {
4881
- if (N.status !== "dragging" || N.target === null) return null;
4882
- let { source: e, target: t } = N;
4884
+ if (P.status !== "dragging" || P.target === null) return null;
4885
+ let { source: e, target: t } = P;
4883
4886
  return {
4884
4887
  type: "cell",
4885
4888
  range: {
@@ -4893,7 +4896,7 @@ var Ca = (e) => {
4893
4896
  }
4894
4897
  }
4895
4898
  };
4896
- }, [N]), se = y(() => {
4899
+ }, [P]), se = y(() => {
4897
4900
  let e = _t(oe, S, x), t = gt(E, e, w, T, C, D), n = t ? null : ht(e, w, T, C);
4898
4901
  return (r) => {
4899
4902
  let i = e?.extents[r];
@@ -4919,14 +4922,14 @@ var Ca = (e) => {
4919
4922
  C,
4920
4923
  D
4921
4924
  ]), ce = y(() => {
4922
- if (N.status !== "filled") return null;
4923
- let e = Kn(N.range, S, C, w, T), t = O > 0 ? Ct(ee, k) + O - A : Infinity;
4925
+ if (P.status !== "filled") return null;
4926
+ let e = Kn(P.range, S, C, w, T), t = O > 0 ? Ct(ee, k) + O - A : Infinity;
4924
4927
  return e ? {
4925
4928
  pane: e.pane,
4926
4929
  position: qn(e, C.totalBodyHeight, t)
4927
4930
  } : null;
4928
4931
  }, [
4929
- N,
4932
+ P,
4930
4933
  S,
4931
4934
  C,
4932
4935
  w,
@@ -4935,9 +4938,9 @@ var Ca = (e) => {
4935
4938
  ee,
4936
4939
  k,
4937
4940
  A
4938
- ]), F = m((e) => M.handlePointerDown(e), [M]);
4941
+ ]), F = m((e) => N.handlePointerDown(e), [N]);
4939
4942
  return {
4940
- filling: N.status === "dragging",
4943
+ filling: P.status === "dragging",
4941
4944
  renderLayer: (e, t) => /* @__PURE__ */ z(L, { children: [
4942
4945
  se(e).map((e, n) => /* @__PURE__ */ R(ga, {
4943
4946
  rect: e,
@@ -4952,28 +4955,28 @@ var Ca = (e) => {
4952
4955
  leadingWidth: t,
4953
4956
  onPointerDown: F
4954
4957
  }),
4955
- N.status === "filled" && /* @__PURE__ */ R(_a, {
4958
+ P.status === "filled" && /* @__PURE__ */ R(_a, {
4956
4959
  position: ce?.pane === e ? ce.position : null,
4957
4960
  headerHeight: A,
4958
4961
  baseOffset: te,
4959
4962
  leadingWidth: t,
4960
- kind: N.kind,
4961
- menuOpen: N.menu !== null,
4962
- chipRef: P,
4963
- controller: M
4963
+ kind: P.kind,
4964
+ menuOpen: P.menu !== null,
4965
+ chipRef: re,
4966
+ controller: N
4964
4967
  })
4965
4968
  ] }),
4966
- renderPortals: () => /* @__PURE__ */ z(L, { children: [N.status === "filled" && N.menu !== null && /* @__PURE__ */ R(ya, {
4967
- layout: N.menu,
4968
- kind: N.kind,
4969
- seriesAvailable: N.seriesAvailable,
4969
+ renderPortals: () => /* @__PURE__ */ z(L, { children: [P.status === "filled" && P.menu !== null && /* @__PURE__ */ R(ya, {
4970
+ layout: P.menu,
4971
+ kind: P.kind,
4972
+ seriesAvailable: P.seriesAvailable,
4970
4973
  themeClassName: j,
4971
4974
  panelRef: ie,
4972
- controller: M
4973
- }), N.status === "dragging" && N.previewText !== null && /* @__PURE__ */ R(Sa, {
4974
- text: N.previewText,
4975
+ controller: N
4976
+ }), P.status === "dragging" && P.previewText !== null && /* @__PURE__ */ R(Sa, {
4977
+ text: P.previewText,
4975
4978
  themeClassName: j,
4976
- controller: M
4979
+ controller: N
4977
4980
  })] })
4978
4981
  };
4979
4982
  },
@@ -5199,7 +5202,7 @@ var La = ({ rows: e, baseOrder: t, visibleColumns: n, effectiveColumns: r, globa
5199
5202
  key: ee,
5200
5203
  rows: n
5201
5204
  }) : te = k.rows;
5202
- let j = C === "dateSet", ne = m((e) => {
5205
+ let j = C === "dateSet", M = m((e) => {
5203
5206
  if (!S) return;
5204
5207
  let t = Gt(te[e], S);
5205
5208
  return j ? gn(t) : t;
@@ -5207,28 +5210,28 @@ var La = ({ rows: e, baseOrder: t, visibleColumns: n, effectiveColumns: r, globa
5207
5210
  te,
5208
5211
  S,
5209
5212
  j
5210
- ]), re = o != null && S != null && H(C) && !(S.filterOptions && S.filterOptions.length > 0), M = Da({
5211
- columnKey: re ? S.key : null,
5212
- column: re ? S : null,
5213
+ ]), ne = o != null && S != null && H(C) && !(S.filterOptions && S.filterOptions.length > 0), N = Da({
5214
+ columnKey: ne ? S.key : null,
5215
+ column: ne ? S : null,
5213
5216
  columnFilters: r,
5214
5217
  globalText: a,
5215
5218
  fetch: o ?? null
5216
- }), N = Oa({
5217
- column: re ? null : S,
5219
+ }), P = Oa({
5220
+ column: ne ? null : S,
5218
5221
  rowCount: te.length,
5219
- getRawValueAt: ne,
5222
+ getRawValueAt: M,
5220
5223
  numeric: C === "numberSet"
5221
- }), { options: P, allValues: ie, status: ae, progress: oe, truncated: se, errorMessage: ce } = re ? M.result : N, [F] = x(Zn), le = y(() => F({
5224
+ }), { options: re, allValues: ie, status: ae, progress: oe, truncated: se, errorMessage: ce } = ne ? N.result : P, [F] = x(Zn), le = y(() => F({
5222
5225
  openedFilterColumn: S,
5223
5226
  openedFilterType: C,
5224
- openedFilterSelectOptions: P,
5227
+ openedFilterSelectOptions: re,
5225
5228
  openedFilterAllValues: ie,
5226
5229
  columnFilters: r
5227
5230
  }), [
5228
5231
  F,
5229
5232
  S,
5230
5233
  C,
5231
- P,
5234
+ re,
5232
5235
  ie,
5233
5236
  r
5234
5237
  ]), { openedPopoverSelectOptions: I, openedSetFilterValue: ue, openedSetSelection: de } = le, { handleSetFilterValueToggle: fe, handleSetFilterSelectAllChange: pe, handleSetFilterReplaceSelection: me, clearSetFilterPopoverValue: he, handleNumberConditionDraftChange: ge, handleTextConditionDraftChange: _e, handleDateConditionDraftChange: ve, handleComboConditionClear: ye, handleComboSelectionClear: be, applyFilterPopoverValue: xe, clearFilterPopoverValue: Se } = i(() => Xn(), {
@@ -5257,7 +5260,7 @@ var La = ({ rows: e, baseOrder: t, visibleColumns: n, effectiveColumns: r, globa
5257
5260
  isOpen: !!h,
5258
5261
  title: S.title || S.key,
5259
5262
  filterType: C ?? "text",
5260
- isServerSide: s && !re,
5263
+ isServerSide: s && !ne,
5261
5264
  draftValue: h?.draftValue ?? "",
5262
5265
  numberConditionDraft: h?.numberDraft ?? null,
5263
5266
  onNumberConditionDraftChange: ge,
@@ -5281,7 +5284,7 @@ var La = ({ rows: e, baseOrder: t, visibleColumns: n, effectiveColumns: r, globa
5281
5284
  optionsProgress: oe,
5282
5285
  optionsTruncated: se,
5283
5286
  optionsErrorMessage: ce,
5284
- onOptionsRetry: re ? M.retry : void 0,
5287
+ onOptionsRetry: ne ? N.retry : void 0,
5285
5288
  popoverRef: _,
5286
5289
  textInputRef: v,
5287
5290
  selectRef: b,
@@ -5991,7 +5994,7 @@ function yo({ options: e, scrollContainerRef: t, scrollTop: n, viewportHeight: r
5991
5994
  contentHeight: i + a,
5992
5995
  viewportHeight: r,
5993
5996
  trackHeight: te
5994
- }), ne = j !== null && c.rowCount > 0;
5997
+ }), M = j !== null && c.rowCount > 0;
5995
5998
  g(() => {
5996
5999
  let n = t.current;
5997
6000
  if (!n) return;
@@ -6011,7 +6014,7 @@ function yo({ options: e, scrollContainerRef: t, scrollTop: n, viewportHeight: r
6011
6014
  n.removeEventListener("scroll", r), n.removeEventListener("pointerenter", i), n.removeEventListener("pointerleave", a), n.removeEventListener("pointermove", o), s.disconnect(), O.current !== null && (window.clearTimeout(O.current), O.current = null);
6012
6015
  };
6013
6016
  }, [t, e.scrollbar]), g(() => {
6014
- if (!e.scrollbar || !ne) return;
6017
+ if (!e.scrollbar || !M) return;
6015
6018
  let n = k.current, r = t.current;
6016
6019
  if (!n || !r) return;
6017
6020
  let i = (e) => {
@@ -6023,16 +6026,16 @@ function yo({ options: e, scrollContainerRef: t, scrollTop: n, viewportHeight: r
6023
6026
  }, [
6024
6027
  t,
6025
6028
  e.scrollbar,
6026
- ne
6029
+ M
6027
6030
  ]);
6028
- let re = Math.max(r - i, 0), M = d?.length ?? 0, N = Math.max(c.rowCount - M, 0), P = (e) => d && M > 0 ? Ft(d, e) : e + 1, ie = y(() => e.ruler ? q({
6029
- rowCount: N,
6030
- rulerHeight: re,
6031
+ let ne = Math.max(r - i, 0), N = d?.length ?? 0, P = Math.max(c.rowCount - N, 0), re = (e) => d && N > 0 ? Ft(d, e) : e + 1, ie = y(() => e.ruler ? q({
6032
+ rowCount: P,
6033
+ rulerHeight: ne,
6031
6034
  tenThousands: f.scrollHintTenThousands
6032
6035
  }) : [], [
6033
6036
  e.ruler,
6034
- N,
6035
- re,
6037
+ P,
6038
+ ne,
6036
6039
  f.scrollHintTenThousands
6037
6040
  ]);
6038
6041
  if (j === null || c.rowCount <= 0) return null;
@@ -6086,7 +6089,7 @@ function yo({ options: e, scrollContainerRef: t, scrollTop: n, viewportHeight: r
6086
6089
  },
6087
6090
  children: ie.map((e) => /* @__PURE__ */ R("div", {
6088
6091
  className: "ssg-scroll-hint-ruler-tick",
6089
- style: { top: Math.min(Math.max(e.y, 6), Math.max(re - 6, 6)) },
6092
+ style: { top: Math.min(Math.max(e.y, 6), Math.max(ne - 6, 6)) },
6090
6093
  children: /* @__PURE__ */ R("span", {
6091
6094
  className: "ssg-scroll-hint-ruler-label",
6092
6095
  children: e.label
@@ -6101,7 +6104,7 @@ function yo({ options: e, scrollContainerRef: t, scrollTop: n, viewportHeight: r
6101
6104
  },
6102
6105
  children: /* @__PURE__ */ z("span", {
6103
6106
  className: w("ssg-scroll-hint-jumpline-label", I.lineY < i + vo && "ssg-scroll-hint-jumpline-label--below"),
6104
- children: [Ce(f.scrollHintJump, { row: P(I.rowIndex).toLocaleString() }), I.detail !== null && /* @__PURE__ */ z("span", {
6107
+ children: [Ce(f.scrollHintJump, { row: re(I.rowIndex).toLocaleString() }), I.detail !== null && /* @__PURE__ */ z("span", {
6105
6108
  className: "ssg-scroll-hint-jumpline-detail",
6106
6109
  children: [` ${f.scrollHintJumpSeparator} `, I.detail]
6107
6110
  })]
@@ -6115,12 +6118,12 @@ function yo({ options: e, scrollContainerRef: t, scrollTop: n, viewportHeight: r
6115
6118
  },
6116
6119
  children: [/* @__PURE__ */ z("span", {
6117
6120
  className: "ssg-scroll-hint-bubble-main",
6118
- children: [Ce(f.scrollHintRow, { row: P(F).toLocaleString() }), /* @__PURE__ */ z("span", {
6121
+ children: [Ce(f.scrollHintRow, { row: re(F).toLocaleString() }), /* @__PURE__ */ z("span", {
6119
6122
  className: "ssg-scroll-hint-bubble-total",
6120
6123
  children: [
6121
6124
  " ",
6122
6125
  "/ ",
6123
- N.toLocaleString()
6126
+ P.toLocaleString()
6124
6127
  ]
6125
6128
  })]
6126
6129
  }), le !== null && /* @__PURE__ */ R("span", {
@@ -6275,7 +6278,7 @@ function wo(e) {
6275
6278
  refetching: n.refetching
6276
6279
  };
6277
6280
  }
6278
- var X = {
6281
+ var To = {
6279
6282
  createSaveStatusController: Mr,
6280
6283
  useServerSide: (e) => {
6281
6284
  let t = wo(e), [n, r] = x(null), [i, a] = x(null), o = (e, o) => (t.loadError !== null && t.loadError !== n || t.writeError !== null && t.writeError !== i) && /* @__PURE__ */ z("div", {
@@ -6336,7 +6339,7 @@ var X = {
6336
6339
  };
6337
6340
  },
6338
6341
  localeText: zn
6339
- }, To = (e) => {
6342
+ }, X = (e) => {
6340
6343
  let t = i(Pr, e), n = S(t.subscribe, t.getSnapshot, t.getSnapshot), { canUseFilterTab: r, canUseColumnsTab: a, canUseSortTab: o } = e, s = y(() => Ir({
6341
6344
  canUseFilterTab: r,
6342
6345
  canUseColumnsTab: a,
@@ -6359,7 +6362,7 @@ var X = {
6359
6362
  }, Eo = {
6360
6363
  useToolPanel: (e) => ({
6361
6364
  available: !0,
6362
- ...To(e)
6365
+ ...X(e)
6363
6366
  }),
6364
6367
  useToolPanelViews: (e) => Fa(Aa, e)
6365
6368
  };
@@ -6460,7 +6463,7 @@ var Oo = /* @__PURE__ */ new Set(["rowStyle", "rowHeaderCellStyle"]), ko = {
6460
6463
  toolPanel: Eo,
6461
6464
  autoHeight: Gi,
6462
6465
  filtering: Va,
6463
- serverSide: X,
6466
+ serverSide: To,
6464
6467
  labelRow: to,
6465
6468
  grouping: qa
6466
6469
  }, Ao = (e) => {