@affino/datagrid-vue-app 0.1.50 → 0.1.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { defineComponent as Vn, h as $, inject as Eo, ref as J, computed as v, watch as ee, nextTick as at, openBlock as jt, createElementBlock as On, Fragment as eo, createElementVNode as se, mergeProps as to, unref as w, toDisplayString as ot, createBlock as Po, Teleport as To, renderList as Vo, normalizeClass as zo, createCommentVNode as Ho, onMounted as jo, onBeforeUnmount as no, shallowRef as jl, defineAsyncComponent as Ul, markRaw as Bo, toRaw as Go, onUnmounted as Lo } from "vue";
1
+ import { defineComponent as Vn, h as $, inject as Eo, ref as J, computed as v, watch as ee, nextTick as at, openBlock as jt, createElementBlock as On, Fragment as eo, createElementVNode as se, mergeProps as to, unref as f, toDisplayString as ot, createBlock as Po, Teleport as To, renderList as Vo, normalizeClass as zo, createCommentVNode as Ho, onMounted as jo, onBeforeUnmount as no, shallowRef as jl, defineAsyncComponent as Ul, markRaw as Bo, toRaw as Go, onUnmounted as Lo } from "vue";
2
2
  import { resolveDataGridCellClickAction as $o, invokeDataGridCellInteraction as Ko, toggleDataGridCellValue as No, buildDataGridCellRenderModel as Wo, buildDataGridSelectionProjectionIdentity as lo, collectDataGridSelectionLoadedCoverage as Uo, DATA_GRID_VIRTUAL_SELECTION_MAX_SCAN_ROWS as qo, createDataGridVirtualSelectionMetadata as Yo, buildDataGridAdvancedFilterExpressionFromLegacyFilters as Xo, useDataGridContextMenu as Jo, cloneDataGridFilterSnapshot as So, createClientRowModel as Ol } from "@affino/datagrid-vue";
3
3
  import { useDataGridAppIntentHistory as Qo, createDataGridAppRowHeightMetrics as Zo, useDataGridAppViewport as er, useDataGridAppRowSizing as tr, useDataGridAppCellSelection as nr, useDataGridAppRowPresentation as lr, useDataGridAppClipboard as or, useDataGridAppActiveCellViewport as rr, useDataGridAppInlineEditing as ar, useDataGridAppInteractionController as ir, useDataGridAppHeaderResize as sr, useDataGridAppRuntimeSync as ur, useDataGridAppViewportLifecycle as cr, useDataGridAppColumnLayoutPanel as dr } from "@affino/datagrid-vue/app";
4
- import { useDataGridViewportContextMenuRouter as mr, useDataGridContextMenuAnchor as fr, useDataGridContextMenuActionRouter as wr } from "@affino/datagrid-vue/advanced";
4
+ import { useDataGridViewportContextMenuRouter as mr, useDataGridContextMenuAnchor as wr, useDataGridContextMenuActionRouter as fr } from "@affino/datagrid-vue/advanced";
5
5
  import { D as gr } from "./DataGridQuickFilterInput-TYJI9vo6.js";
6
6
  import { c as vr, q as hr, D as oo, a as ro, s as br } from "./DataGridGanttStageEntry-DQBFS3-m.js";
7
7
  import { usePopoverController as Rr, useFloatingPopover as yr } from "@affino/popover-vue";
@@ -90,7 +90,7 @@ function El(e, l) {
90
90
  moveDown: je(e?.moveDown, Ge.moveDown)
91
91
  });
92
92
  }
93
- function fi(e) {
93
+ function wi(e) {
94
94
  if (typeof e == "boolean") {
95
95
  const a = El(void 0);
96
96
  return {
@@ -155,7 +155,7 @@ const Mr = ["data-datagrid-overlay-dragging"], xr = { class: "datagrid-column-la
155
155
  surfaceId: "column-layout",
156
156
  rootElementRef: s,
157
157
  floating: R
158
- }), _ = v(() => g.getTriggerProps({ role: "dialog" })), D = v(() => g.getContentProps({ role: "dialog", tabIndex: -1 })), U = v(() => g.state.value.open), S = v(() => R.teleportTarget.value), p = v(() => a.labels ?? Ge), F = v(() => typeof a.buttonLabel == "string" && a.buttonLabel.trim().length > 0 ? a.buttonLabel.trim() : p.value.buttonLabel), k = J(null), A = J(null), T = J(null);
158
+ }), _ = v(() => g.getTriggerProps({ role: "dialog" })), D = v(() => g.getContentProps({ role: "dialog", tabIndex: -1 })), U = v(() => g.state.value.open), I = v(() => R.teleportTarget.value), C = v(() => a.labels ?? Ge), F = v(() => typeof a.buttonLabel == "string" && a.buttonLabel.trim().length > 0 ? a.buttonLabel.trim() : C.value.buttonLabel), k = J(null), A = J(null), T = J(null);
159
159
  ee(
160
160
  () => a.isOpen,
161
161
  async (H) => {
@@ -180,7 +180,7 @@ const Mr = ["data-datagrid-overlay-dragging"], xr = { class: "datagrid-column-la
180
180
  function it(H, K) {
181
181
  o("toggle-visibility", { key: H, visible: K });
182
182
  }
183
- function I(H) {
183
+ function M(H) {
184
184
  const O = (H.currentTarget instanceof HTMLElement ? H.currentTarget : null)?.getBoundingClientRect();
185
185
  return !O || O.height <= 0 ? "after" : H.clientY < O.top + O.height / 2 ? "before" : "after";
186
186
  }
@@ -192,9 +192,9 @@ const Mr = ["data-datagrid-overlay-dragging"], xr = { class: "datagrid-column-la
192
192
  A.value = null, T.value = null;
193
193
  return;
194
194
  }
195
- H.preventDefault(), H.dataTransfer && (H.dataTransfer.dropEffect = "move"), A.value = K, T.value = I(H);
195
+ H.preventDefault(), H.dataTransfer && (H.dataTransfer.dropEffect = "move"), A.value = K, T.value = M(H);
196
196
  }
197
- function fe(H, K) {
197
+ function we(H, K) {
198
198
  if (!k.value || k.value === K) {
199
199
  he();
200
200
  return;
@@ -202,7 +202,7 @@ const Mr = ["data-datagrid-overlay-dragging"], xr = { class: "datagrid-column-la
202
202
  H.preventDefault(), o("move-to-position", {
203
203
  key: k.value,
204
204
  targetKey: K,
205
- placement: I(H)
205
+ placement: M(H)
206
206
  }), he();
207
207
  }
208
208
  function he() {
@@ -210,37 +210,37 @@ const Mr = ["data-datagrid-overlay-dragging"], xr = { class: "datagrid-column-la
210
210
  }
211
211
  return (H, K) => (jt(), On(eo, null, [
212
212
  se("button", to({
213
- ref: w(R).triggerRef,
213
+ ref: f(R).triggerRef,
214
214
  type: "button",
215
215
  class: ["datagrid-app-toolbar__button", { "datagrid-app-toolbar__button--active": H.active }],
216
216
  "data-datagrid-toolbar-action": "column-layout",
217
217
  style: d.value
218
218
  }, _.value), ot(F.value), 17),
219
- (jt(), Po(To, { to: S.value }, [
219
+ (jt(), Po(To, { to: I.value }, [
220
220
  U.value ? (jt(), On("section", to({
221
221
  key: 0,
222
- ref: w(R).contentRef,
222
+ ref: f(R).contentRef,
223
223
  class: "datagrid-column-layout",
224
224
  "data-datagrid-overlay-surface": "true",
225
225
  "data-datagrid-overlay-surface-id": "column-layout",
226
- "data-datagrid-overlay-dragging": w(h).dragging.value ? "true" : "false",
227
- style: [w(h).surfaceStyle.value, d.value]
226
+ "data-datagrid-overlay-dragging": f(h).dragging.value ? "true" : "false",
227
+ style: [f(h).surfaceStyle.value, d.value]
228
228
  }, D.value), [
229
229
  se("header", xr, [
230
230
  se("div", {
231
231
  class: "datagrid-overlay-drag-handle",
232
232
  "data-datagrid-overlay-drag-handle": "true",
233
233
  onPointerdown: K[0] || (K[0] = //@ts-ignore
234
- (...O) => w(h).handlePointerDown && w(h).handlePointerDown(...O))
234
+ (...O) => f(h).handlePointerDown && f(h).handlePointerDown(...O))
235
235
  }, [
236
- se("div", Fr, ot(p.value.eyebrow), 1),
237
- se("h3", Ar, ot(p.value.title), 1)
236
+ se("div", Fr, ot(C.value.eyebrow), 1),
237
+ se("h3", Ar, ot(C.value.title), 1)
238
238
  ], 32),
239
239
  se("button", {
240
240
  type: "button",
241
241
  class: "datagrid-column-layout__ghost",
242
242
  onClick: K[1] || (K[1] = (O) => o("cancel"))
243
- }, ot(p.value.close), 1)
243
+ }, ot(C.value.close), 1)
244
244
  ]),
245
245
  se("div", Dr, [
246
246
  (jt(!0), On(eo, null, Vo(H.items, (O) => (jt(), On("div", {
@@ -253,7 +253,7 @@ const Mr = ["data-datagrid-overlay-dragging"], xr = { class: "datagrid-column-la
253
253
  draggable: !0,
254
254
  onDragstart: (re) => V(re, O.key),
255
255
  onDragover: (re) => me(re, O.key),
256
- onDrop: (re) => fe(re, O.key),
256
+ onDrop: (re) => we(re, O.key),
257
257
  onDragend: he
258
258
  }, [
259
259
  se("label", _r, [
@@ -271,16 +271,16 @@ const Mr = ["data-datagrid-overlay-dragging"], xr = { class: "datagrid-column-la
271
271
  type: "button",
272
272
  class: "datagrid-column-layout__icon-button",
273
273
  disabled: !O.canMoveUp,
274
- "aria-label": `${p.value.moveUp}: ${O.label}`,
275
- title: `${p.value.moveUp}: ${O.label}`,
274
+ "aria-label": `${C.value.moveUp}: ${O.label}`,
275
+ title: `${C.value.moveUp}: ${O.label}`,
276
276
  onClick: (re) => o("move-up", O.key)
277
277
  }, " ↑ ", 8, Vr),
278
278
  se("button", {
279
279
  type: "button",
280
280
  class: "datagrid-column-layout__icon-button",
281
281
  disabled: !O.canMoveDown,
282
- "aria-label": `${p.value.moveDown}: ${O.label}`,
283
- title: `${p.value.moveDown}: ${O.label}`,
282
+ "aria-label": `${C.value.moveDown}: ${O.label}`,
283
+ title: `${C.value.moveDown}: ${O.label}`,
284
284
  onClick: (re) => o("move-down", O.key)
285
285
  }, " ↓ ", 8, zr)
286
286
  ])
@@ -291,12 +291,12 @@ const Mr = ["data-datagrid-overlay-dragging"], xr = { class: "datagrid-column-la
291
291
  type: "button",
292
292
  class: "datagrid-column-layout__secondary",
293
293
  onClick: K[2] || (K[2] = (O) => o("cancel"))
294
- }, ot(p.value.cancel), 1),
294
+ }, ot(C.value.cancel), 1),
295
295
  se("button", {
296
296
  type: "button",
297
297
  class: "datagrid-column-layout__primary",
298
298
  onClick: K[3] || (K[3] = (O) => o("apply"))
299
- }, ot(p.value.apply), 1)
299
+ }, ot(C.value.apply), 1)
300
300
  ])
301
301
  ], 16, Mr)) : Ho("", !0)
302
302
  ], 8, ["to"]))
@@ -441,7 +441,7 @@ function $r(e) {
441
441
  });
442
442
  return Object.fromEntries(l);
443
443
  }
444
- function wi(e) {
444
+ function fi(e) {
445
445
  return typeof e == "boolean" ? {
446
446
  enabled: e,
447
447
  trigger: Bl,
@@ -734,143 +734,143 @@ function aa(e) {
734
734
  const l = so(e.headerViewportRef), a = so(e.bodyViewportRef), o = (F) => {
735
735
  e.editingCellValueRef.value = F;
736
736
  }, s = v(() => ({
737
- gridContentStyle: w(e.gridContentStyle),
738
- mainTrackStyle: w(e.mainTrackStyle),
739
- indexColumnStyle: w(e.indexColumnStyle),
740
- stageStyle: w(e.stageStyle),
741
- bodyShellStyle: w(e.bodyShellStyle),
742
- columnStyle: w(e.columnStyle)
737
+ gridContentStyle: f(e.gridContentStyle),
738
+ mainTrackStyle: f(e.mainTrackStyle),
739
+ indexColumnStyle: f(e.indexColumnStyle),
740
+ stageStyle: f(e.stageStyle),
741
+ bodyShellStyle: f(e.bodyShellStyle),
742
+ columnStyle: f(e.columnStyle)
743
743
  })), d = v(() => ({
744
- topSpacerHeight: w(e.topSpacerHeight),
745
- bottomSpacerHeight: w(e.bottomSpacerHeight),
746
- viewportRowStart: w(e.viewportRowStart),
747
- viewportRowEnd: w(e.viewportRowEnd),
748
- virtualRowTotal: w(e.virtualRowTotal),
749
- baseRowHeight: w(e.baseRowHeight),
750
- resolveRowHeight: w(e.resolveRowHeight),
751
- resolveRowOffset: w(e.resolveRowOffset),
752
- columnWindowStart: w(e.columnWindowStart),
753
- leftColumnSpacerWidth: w(e.leftColumnSpacerWidth),
754
- rightColumnSpacerWidth: w(e.rightColumnSpacerWidth),
744
+ topSpacerHeight: f(e.topSpacerHeight),
745
+ bottomSpacerHeight: f(e.bottomSpacerHeight),
746
+ viewportRowStart: f(e.viewportRowStart),
747
+ viewportRowEnd: f(e.viewportRowEnd),
748
+ virtualRowTotal: f(e.virtualRowTotal),
749
+ baseRowHeight: f(e.baseRowHeight),
750
+ resolveRowHeight: f(e.resolveRowHeight),
751
+ resolveRowOffset: f(e.resolveRowOffset),
752
+ columnWindowStart: f(e.columnWindowStart),
753
+ leftColumnSpacerWidth: f(e.leftColumnSpacerWidth),
754
+ rightColumnSpacerWidth: f(e.rightColumnSpacerWidth),
755
755
  headerViewportRef: l,
756
756
  bodyViewportRef: a,
757
- handleHeaderWheel: w(e.handleHeaderWheel),
758
- handleHeaderScroll: w(e.handleHeaderScroll),
759
- handleViewportScroll: w(e.handleViewportScroll),
760
- handleViewportKeydown: w(e.handleViewportKeydown)
757
+ handleHeaderWheel: f(e.handleHeaderWheel),
758
+ handleHeaderScroll: f(e.handleHeaderScroll),
759
+ handleViewportScroll: f(e.handleViewportScroll),
760
+ handleViewportKeydown: f(e.handleViewportKeydown)
761
761
  })), g = v(() => ({
762
- visibleColumns: w(e.visibleColumns),
763
- renderedColumns: w(e.renderedColumns),
764
- columnFilterTextByKey: w(e.columnFilterTextByKey),
765
- reorderColumnsByHeader: w(e.reorderColumnsByHeader),
766
- toggleSortForColumn: w(e.toggleSortForColumn),
767
- handleHeaderColumnClick: w(e.handleHeaderColumnClick),
768
- sortIndicator: w(e.sortIndicator),
769
- setColumnFilterText: w(e.setColumnFilterText),
770
- columnMenuEnabled: w(e.columnMenuEnabled),
771
- columnMenuTrigger: w(e.columnMenuTrigger),
772
- columnMenuValueFilterEnabled: w(e.columnMenuValueFilterEnabled),
773
- columnMenuValueFilterRowLimit: w(e.columnMenuValueFilterRowLimit),
774
- columnMenuMaxFilterValues: w(e.columnMenuMaxFilterValues),
775
- resolveColumnMenuItems: w(e.resolveColumnMenuItems),
776
- resolveColumnMenuDisabledItems: w(e.resolveColumnMenuDisabledItems),
777
- resolveColumnMenuDisabledReasons: w(e.resolveColumnMenuDisabledReasons),
778
- resolveColumnMenuLabels: w(e.resolveColumnMenuLabels),
779
- resolveColumnMenuActionOptions: w(e.resolveColumnMenuActionOptions),
780
- resolveColumnMenuCustomItems: w(e.resolveColumnMenuCustomItems),
781
- isColumnFilterActive: w(e.isColumnFilterActive),
782
- isColumnGrouped: w(e.isColumnGrouped),
783
- resolveColumnGroupOrder: w(e.resolveColumnGroupOrder),
784
- resolveColumnMenuSortDirection: w(e.resolveColumnMenuSortDirection),
785
- resolveColumnMenuSelectedTokens: w(e.resolveColumnMenuSelectedTokens),
786
- resolveColumnMenuValueEntries: w(e.resolveColumnMenuValueEntries),
787
- applyColumnMenuSort: w(e.applyColumnMenuSort),
788
- applyColumnMenuPin: w(e.applyColumnMenuPin),
789
- applyColumnMenuGroupBy: w(e.applyColumnMenuGroupBy),
790
- applyColumnMenuFilter: w(e.applyColumnMenuFilter),
791
- clearColumnMenuFilter: w(e.clearColumnMenuFilter),
792
- startResize: w(e.startResize),
793
- handleResizeDoubleClick: w(e.handleResizeDoubleClick)
762
+ visibleColumns: f(e.visibleColumns),
763
+ renderedColumns: f(e.renderedColumns),
764
+ columnFilterTextByKey: f(e.columnFilterTextByKey),
765
+ reorderColumnsByHeader: f(e.reorderColumnsByHeader),
766
+ toggleSortForColumn: f(e.toggleSortForColumn),
767
+ handleHeaderColumnClick: f(e.handleHeaderColumnClick),
768
+ sortIndicator: f(e.sortIndicator),
769
+ setColumnFilterText: f(e.setColumnFilterText),
770
+ columnMenuEnabled: f(e.columnMenuEnabled),
771
+ columnMenuTrigger: f(e.columnMenuTrigger),
772
+ columnMenuValueFilterEnabled: f(e.columnMenuValueFilterEnabled),
773
+ columnMenuValueFilterRowLimit: f(e.columnMenuValueFilterRowLimit),
774
+ columnMenuMaxFilterValues: f(e.columnMenuMaxFilterValues),
775
+ resolveColumnMenuItems: f(e.resolveColumnMenuItems),
776
+ resolveColumnMenuDisabledItems: f(e.resolveColumnMenuDisabledItems),
777
+ resolveColumnMenuDisabledReasons: f(e.resolveColumnMenuDisabledReasons),
778
+ resolveColumnMenuLabels: f(e.resolveColumnMenuLabels),
779
+ resolveColumnMenuActionOptions: f(e.resolveColumnMenuActionOptions),
780
+ resolveColumnMenuCustomItems: f(e.resolveColumnMenuCustomItems),
781
+ isColumnFilterActive: f(e.isColumnFilterActive),
782
+ isColumnGrouped: f(e.isColumnGrouped),
783
+ resolveColumnGroupOrder: f(e.resolveColumnGroupOrder),
784
+ resolveColumnMenuSortDirection: f(e.resolveColumnMenuSortDirection),
785
+ resolveColumnMenuSelectedTokens: f(e.resolveColumnMenuSelectedTokens),
786
+ resolveColumnMenuValueEntries: f(e.resolveColumnMenuValueEntries),
787
+ applyColumnMenuSort: f(e.applyColumnMenuSort),
788
+ applyColumnMenuPin: f(e.applyColumnMenuPin),
789
+ applyColumnMenuGroupBy: f(e.applyColumnMenuGroupBy),
790
+ applyColumnMenuFilter: f(e.applyColumnMenuFilter),
791
+ clearColumnMenuFilter: f(e.clearColumnMenuFilter),
792
+ startResize: f(e.startResize),
793
+ handleResizeDoubleClick: f(e.handleResizeDoubleClick)
794
794
  })), R = v(() => ({
795
- displayRows: w(e.displayRows),
796
- displayRowsRevision: w(e.displayRowsRevision),
797
- runtimeRevision: w(e.runtimeRevision),
798
- pinnedBottomRows: w(e.pinnedBottomRows),
799
- sourceRows: w(e.sourceRows),
800
- showRowIndex: w(e.showRowIndex),
801
- rowHover: w(e.rowHover),
802
- stripedRows: w(e.stripedRows),
803
- rowClass: w(e.rowClass),
804
- isRowAutosizeProbe: w(e.isRowAutosizeProbe),
805
- rowStyle: w(e.rowStyle),
806
- isRowInPendingClipboardCut: w(e.isRowInPendingClipboardCut),
807
- isRowFocused: w(e.isRowFocused),
808
- isRowCheckboxSelected: w(e.isRowCheckboxSelected),
809
- allVisibleRowsSelected: w(e.allVisibleRowsSelected),
810
- someVisibleRowsSelected: w(e.someVisibleRowsSelected),
811
- handleRowClick: w(e.handleRowClick),
812
- handleRowIndexClick: w(e.handleRowIndexClick),
813
- handleRowIndexKeydown: w(e.handleRowIndexKeydown),
814
- reorderRowsByIndex: w(e.reorderRowsByIndex),
815
- handleToggleAllVisibleRows: w(e.handleToggleAllVisibleRows),
816
- toggleGroupRow: w(e.toggleGroupRow),
817
- rowIndexLabel: w(e.rowIndexLabel),
818
- startRowResize: w(e.startRowResize),
819
- autosizeRow: w(e.autosizeRow)
795
+ displayRows: f(e.displayRows),
796
+ displayRowsRevision: f(e.displayRowsRevision),
797
+ runtimeRevision: f(e.runtimeRevision),
798
+ pinnedBottomRows: f(e.pinnedBottomRows),
799
+ sourceRows: f(e.sourceRows),
800
+ showRowIndex: f(e.showRowIndex),
801
+ rowHover: f(e.rowHover),
802
+ stripedRows: f(e.stripedRows),
803
+ rowClass: f(e.rowClass),
804
+ isRowAutosizeProbe: f(e.isRowAutosizeProbe),
805
+ rowStyle: f(e.rowStyle),
806
+ isRowInPendingClipboardCut: f(e.isRowInPendingClipboardCut),
807
+ isRowFocused: f(e.isRowFocused),
808
+ isRowCheckboxSelected: f(e.isRowCheckboxSelected),
809
+ allVisibleRowsSelected: f(e.allVisibleRowsSelected),
810
+ someVisibleRowsSelected: f(e.someVisibleRowsSelected),
811
+ handleRowClick: f(e.handleRowClick),
812
+ handleRowIndexClick: f(e.handleRowIndexClick),
813
+ handleRowIndexKeydown: f(e.handleRowIndexKeydown),
814
+ reorderRowsByIndex: f(e.reorderRowsByIndex),
815
+ handleToggleAllVisibleRows: f(e.handleToggleAllVisibleRows),
816
+ toggleGroupRow: f(e.toggleGroupRow),
817
+ rowIndexLabel: f(e.rowIndexLabel),
818
+ startRowResize: f(e.startRowResize),
819
+ autosizeRow: f(e.autosizeRow)
820
820
  })), h = v(() => ({
821
- selectionRange: w(e.selectionRange),
822
- selectionRanges: w(e.selectionRanges),
823
- selectionAnchorCell: w(e.selectionAnchorCell),
824
- totalRowCount: w(e.totalRowCount),
825
- fillPreviewRange: w(e.fillPreviewRange),
826
- rangeMovePreviewRange: w(e.rangeMovePreviewRange),
827
- fillHandleEnabled: w(e.fillHandleEnabled),
828
- rangeMoveEnabled: w(e.rangeMoveEnabled),
829
- isFillDragging: w(e.isFillDragging),
830
- isRangeMoving: w(e.isRangeMoving),
831
- fillActionAnchorCell: w(e.fillActionAnchorCell),
832
- fillActionBehavior: w(e.fillActionBehavior),
833
- applyFillActionBehavior: w(e.applyFillActionBehavior),
834
- isFillHandleCell: w(e.isFillHandleCell),
835
- startFillHandleDrag: w(e.startFillHandleDrag),
836
- startFillHandleDoubleClick: w(e.startFillHandleDoubleClick)
821
+ selectionRange: f(e.selectionRange),
822
+ selectionRanges: f(e.selectionRanges),
823
+ selectionAnchorCell: f(e.selectionAnchorCell),
824
+ totalRowCount: f(e.totalRowCount),
825
+ fillPreviewRange: f(e.fillPreviewRange),
826
+ rangeMovePreviewRange: f(e.rangeMovePreviewRange),
827
+ fillHandleEnabled: f(e.fillHandleEnabled),
828
+ rangeMoveEnabled: f(e.rangeMoveEnabled),
829
+ isFillDragging: f(e.isFillDragging),
830
+ isRangeMoving: f(e.isRangeMoving),
831
+ fillActionAnchorCell: f(e.fillActionAnchorCell),
832
+ fillActionBehavior: f(e.fillActionBehavior),
833
+ applyFillActionBehavior: f(e.applyFillActionBehavior),
834
+ isFillHandleCell: f(e.isFillHandleCell),
835
+ startFillHandleDrag: f(e.startFillHandleDrag),
836
+ startFillHandleDoubleClick: f(e.startFillHandleDoubleClick)
837
837
  })), _ = v(() => ({
838
838
  editingCellValue: e.editingCellValueRef.value,
839
- editingCellInitialFilter: w(e.editingCellInitialFilter),
840
- editingCellOpenOnMount: w(e.editingCellOpenOnMount),
841
- isEditingCell: w(e.isEditingCell),
842
- startInlineEdit: w(e.startInlineEdit),
839
+ editingCellInitialFilter: f(e.editingCellInitialFilter),
840
+ editingCellOpenOnMount: f(e.editingCellOpenOnMount),
841
+ isEditingCell: f(e.isEditingCell),
842
+ startInlineEdit: f(e.startInlineEdit),
843
843
  updateEditingCellValue: o,
844
- handleEditorKeydown: w(e.handleEditorKeydown),
845
- handleEditorBlur: w(e.handleEditorBlur),
846
- commitInlineEdit: w(e.commitInlineEdit),
847
- cancelInlineEdit: w(e.cancelInlineEdit)
844
+ handleEditorKeydown: f(e.handleEditorKeydown),
845
+ handleEditorBlur: f(e.handleEditorBlur),
846
+ commitInlineEdit: f(e.commitInlineEdit),
847
+ cancelInlineEdit: f(e.cancelInlineEdit)
848
848
  })), D = v(() => ({
849
- cellClass: w(e.cellClass),
850
- cellStyle: w(e.cellStyle),
851
- isCellSelected: w(e.isCellSelected),
852
- isSelectionAnchorCell: w(e.isSelectionAnchorCell),
853
- shouldHighlightSelectedCell: w(e.shouldHighlightSelectedCell),
854
- isCellOnSelectionEdge: w(e.isCellOnSelectionEdge),
855
- isCellInFillPreview: w(e.isCellInFillPreview),
856
- isCellInPendingClipboardRange: w(e.isCellInPendingClipboardRange),
857
- isCellOnPendingClipboardEdge: w(e.isCellOnPendingClipboardEdge),
858
- isCellEditable: w(e.isCellEditable),
859
- readCell: w(e.readCell),
860
- readDisplayCell: w(e.readDisplayCell)
849
+ cellClass: f(e.cellClass),
850
+ cellStyle: f(e.cellStyle),
851
+ isCellSelected: f(e.isCellSelected),
852
+ isSelectionAnchorCell: f(e.isSelectionAnchorCell),
853
+ shouldHighlightSelectedCell: f(e.shouldHighlightSelectedCell),
854
+ isCellOnSelectionEdge: f(e.isCellOnSelectionEdge),
855
+ isCellInFillPreview: f(e.isCellInFillPreview),
856
+ isCellInPendingClipboardRange: f(e.isCellInPendingClipboardRange),
857
+ isCellOnPendingClipboardEdge: f(e.isCellOnPendingClipboardEdge),
858
+ isCellEditable: f(e.isCellEditable),
859
+ readCell: f(e.readCell),
860
+ readDisplayCell: f(e.readDisplayCell)
861
861
  })), U = v(() => ({
862
- handleCellMouseDown: w(e.handleCellMouseDown),
863
- handleCellClick: w(e.handleCellClick),
864
- handleCellKeydown: w(e.handleCellKeydown)
865
- })), S = v(() => ({
866
- mode: w(e.mode),
867
- rowHeightMode: w(e.rowHeightMode),
868
- layoutMode: w(e.layoutMode),
869
- chromeSignature: w(e.chromeSignature),
870
- customOverlays: w(e.customOverlays),
871
- reportCenterPaneDiagnostics: w(e.reportCenterPaneDiagnostics),
872
- reportFillPlumbingState: w(e.reportFillPlumbingState),
873
- reportFillPlumbingDetail: w(e.reportFillPlumbingDetail),
862
+ handleCellMouseDown: f(e.handleCellMouseDown),
863
+ handleCellClick: f(e.handleCellClick),
864
+ handleCellKeydown: f(e.handleCellKeydown)
865
+ })), I = v(() => ({
866
+ mode: f(e.mode),
867
+ rowHeightMode: f(e.rowHeightMode),
868
+ layoutMode: f(e.layoutMode),
869
+ chromeSignature: f(e.chromeSignature),
870
+ customOverlays: f(e.customOverlays),
871
+ reportCenterPaneDiagnostics: f(e.reportCenterPaneDiagnostics),
872
+ reportFillPlumbingState: f(e.reportFillPlumbingState),
873
+ reportFillPlumbingDetail: f(e.reportFillPlumbingDetail),
874
874
  layout: s.value,
875
875
  viewport: d.value,
876
876
  columns: g.value,
@@ -879,10 +879,10 @@ function aa(e) {
879
879
  editing: _.value,
880
880
  cells: D.value,
881
881
  interaction: U.value
882
- })), p = vr({
883
- mode: v(() => w(e.mode)),
884
- rowHeightMode: v(() => w(e.rowHeightMode)),
885
- layoutMode: v(() => w(e.layoutMode)),
882
+ })), C = vr({
883
+ mode: v(() => f(e.mode)),
884
+ rowHeightMode: v(() => f(e.rowHeightMode)),
885
+ layoutMode: v(() => f(e.layoutMode)),
886
886
  layout: s,
887
887
  viewport: d,
888
888
  columns: g,
@@ -893,8 +893,8 @@ function aa(e) {
893
893
  interaction: U
894
894
  });
895
895
  return {
896
- tableStageProps: S,
897
- tableStageContext: p,
896
+ tableStageProps: I,
897
+ tableStageContext: C,
898
898
  captureHeaderViewportRef: l,
899
899
  captureBodyViewportRef: a,
900
900
  updateEditingCellValue: o
@@ -928,27 +928,27 @@ function ia(e) {
928
928
  }
929
929
  if (U !== "toggle" || d.kind === "group" || d.rowId == null)
930
930
  return;
931
- const S = e.captureHistorySnapshot(), p = e.ensureEditableRowAtIndex?.(_) ?? d;
932
- if (p.kind === "group" || p.rowId == null)
931
+ const I = e.captureHistorySnapshot(), C = e.ensureEditableRowAtIndex?.(_) ?? d;
932
+ if (C.kind === "group" || C.rowId == null)
933
933
  return;
934
- const F = p.data[R.key], k = No({
934
+ const F = C.data[R.key], k = No({
935
935
  column: R.column,
936
- row: p.data
936
+ row: C.data
937
937
  });
938
938
  e.runtime.api.rows.applyEdits([
939
939
  {
940
- rowId: p.rowId,
940
+ rowId: C.rowId,
941
941
  data: {
942
942
  [R.key]: k
943
943
  }
944
944
  }
945
945
  ]), e.onCellEdit?.({
946
- rowId: p.rowId,
946
+ rowId: C.rowId,
947
947
  columnKey: R.key,
948
948
  oldValue: F,
949
949
  newValue: k,
950
950
  patch: {
951
- rowId: p.rowId,
951
+ rowId: C.rowId,
952
952
  data: {
953
953
  [R.key]: k
954
954
  }
@@ -962,7 +962,7 @@ function ia(e) {
962
962
  startColumn: h,
963
963
  endColumn: h
964
964
  }
965
- }, S), e.syncViewport();
965
+ }, I), e.syncViewport();
966
966
  }
967
967
  };
968
968
  }
@@ -987,11 +987,11 @@ function sa(e) {
987
987
  keyboard: ["enter", "space"],
988
988
  role: "checkbox",
989
989
  label: "Toggle row selection",
990
- checked: ({ rowId: p }) => p != null && e.runtime.api.rowSelection.isSelected(p),
991
- onInvoke: ({ rowId: p }) => {
992
- p == null || !e.runtime.api.rowSelection.hasSupport() || e.runtime.api.rowSelection.setSelected(
993
- p,
994
- !e.runtime.api.rowSelection.isSelected(p)
990
+ checked: ({ rowId: C }) => C != null && e.runtime.api.rowSelection.isSelected(C),
991
+ onInvoke: ({ rowId: C }) => {
992
+ C == null || !e.runtime.api.rowSelection.hasSupport() || e.runtime.api.rowSelection.setSelected(
993
+ C,
994
+ !e.runtime.api.rowSelection.isSelected(C)
995
995
  );
996
996
  }
997
997
  },
@@ -1014,27 +1014,27 @@ function sa(e) {
1014
1014
  rowSelection: !0
1015
1015
  }
1016
1016
  }
1017
- } : null), o = (p) => p === Tl, s = (p) => o(p.key), d = v(() => {
1018
- const p = a.value, F = e.visibleColumns.value.filter((T) => T.pin === "left"), k = e.visibleColumns.value.filter((T) => T.pin !== "left" && T.pin !== "right"), A = e.visibleColumns.value.filter((T) => T.pin === "right");
1019
- return p ? [p, ...F, ...k, ...A] : [...F, ...k, ...A];
1020
- }), g = v(() => d.value.filter((p) => p.pin !== "left" && p.pin !== "right")), R = (p) => p.width ?? uo, h = (p) => {
1021
- const F = d.value.find((T) => T.key === p), A = `${F ? R(F) : uo}px`;
1017
+ } : null), o = (C) => C === Tl, s = (C) => o(C.key), d = v(() => {
1018
+ const C = a.value, F = e.visibleColumns.value.filter((T) => T.pin === "left"), k = e.visibleColumns.value.filter((T) => T.pin !== "left" && T.pin !== "right"), A = e.visibleColumns.value.filter((T) => T.pin === "right");
1019
+ return C ? [C, ...F, ...k, ...A] : [...F, ...k, ...A];
1020
+ }), g = v(() => d.value.filter((C) => C.pin !== "left" && C.pin !== "right")), R = (C) => C.width ?? uo, h = (C) => {
1021
+ const F = d.value.find((T) => T.key === C), A = `${F ? R(F) : uo}px`;
1022
1022
  return {
1023
1023
  width: A,
1024
1024
  minWidth: A,
1025
1025
  maxWidth: A
1026
1026
  };
1027
- }, _ = (p) => p.column.capabilities?.editable !== !1, D = (p, F, k) => s(k) ? p.kind !== "group" && p.rowId != null : p.kind === "group" || p.rowId == null || !_(k) ? !1 : e.isCellEditable ? e.isCellEditable({
1028
- row: p.data,
1029
- rowId: p.rowId,
1027
+ }, _ = (C) => C.column.capabilities?.editable !== !1, D = (C, F, k) => s(k) ? C.kind !== "group" && C.rowId != null : C.kind === "group" || C.rowId == null || !_(k) ? !1 : e.isCellEditable ? e.isCellEditable({
1028
+ row: C.data,
1029
+ rowId: C.rowId,
1030
1030
  rowIndex: F,
1031
1031
  column: k.column,
1032
1032
  columnKey: k.key
1033
- }) : !0, U = (p, F) => {
1033
+ }) : !0, U = (C, F) => {
1034
1034
  const k = d.value[F];
1035
- if (k?.key === p)
1035
+ if (k?.key === C)
1036
1036
  return { column: k, columnIndex: F };
1037
- const A = d.value.findIndex((T) => T.key === p);
1037
+ const A = d.value.findIndex((T) => T.key === C);
1038
1038
  return A < 0 ? null : {
1039
1039
  column: d.value[A],
1040
1040
  columnIndex: A
@@ -1048,9 +1048,9 @@ function sa(e) {
1048
1048
  isRowSelectionColumnKey: o,
1049
1049
  isRowSelectionColumn: s,
1050
1050
  isCellEditable: D,
1051
- isCellEditableByKey: (p, F, k, A) => {
1051
+ isCellEditableByKey: (C, F, k, A) => {
1052
1052
  const T = U(k, A);
1053
- return T ? D(p, F, T.column) : !1;
1053
+ return T ? D(C, F, T.column) : !1;
1054
1054
  },
1055
1055
  rowSelectionColumn: a
1056
1056
  };
@@ -1074,16 +1074,16 @@ function ca(e) {
1074
1074
  cloneRowData: e.cloneRowData,
1075
1075
  syncViewport: e.syncViewport,
1076
1076
  maxHistoryDepth: e.maxHistoryDepth
1077
- }), a = () => e.enabled === !1 ? null : e.history ? e.history.captureSnapshot() : l?.captureRowsSnapshot() ?? null, o = (D) => e.enabled === !1 ? null : e.history ? e.history.captureSnapshotForRowIds?.(D) ?? e.history.captureSnapshot() : l?.captureRowsSnapshotByIds(D) ?? null, s = (D, U, S) => {
1077
+ }), a = () => e.enabled === !1 ? null : e.history ? e.history.captureSnapshot() : l?.captureRowsSnapshot() ?? null, o = (D) => e.enabled === !1 ? null : e.history ? e.history.captureSnapshotForRowIds?.(D) ?? e.history.captureSnapshot() : l?.captureRowsSnapshotByIds(D) ?? null, s = (D, U, I) => {
1078
1078
  if (e.enabled !== !1) {
1079
1079
  if (e.history) {
1080
- e.history.recordIntentTransaction(D, U, S);
1080
+ e.history.recordIntentTransaction(D, U, I);
1081
1081
  return;
1082
1082
  }
1083
1083
  l?.recordIntentTransaction(
1084
1084
  D,
1085
1085
  U,
1086
- S
1086
+ I
1087
1087
  );
1088
1088
  }
1089
1089
  }, d = (D) => {
@@ -1105,33 +1105,33 @@ function ca(e) {
1105
1105
  };
1106
1106
  }
1107
1107
  function da(e) {
1108
- const l = e.isPlaceholderRow ?? (() => !1), a = e.applyRowSelectionMutation ?? ((I) => {
1109
- e.runtime.api.rowSelection.hasSupport() && I(e.runtime.api.rowSelection);
1110
- }), o = v(() => new Set(e.rowSelectionSnapshot.value?.selectedRows ?? [])), s = v(() => new Set(e.rowSelectionSnapshot.value?.excludedRows ?? [])), d = v(() => e.rowSelectionSnapshot.value?.mode === "all"), g = v(() => e.runtime.api.rows.getSnapshot().kind === "server"), R = (I) => !l(I) && I.rowId != null && e.rowSelectionSnapshot.value?.focusedRow === I.rowId, h = (I) => l(I) || I.kind === "group" || I.rowId == null ? !1 : d.value ? !s.value.has(I.rowId) : o.value.has(I.rowId), _ = (I) => h(I), D = (I) => _(I) ? "true" : "false", U = (I) => {
1108
+ const l = e.isPlaceholderRow ?? (() => !1), a = e.applyRowSelectionMutation ?? ((M) => {
1109
+ e.runtime.api.rowSelection.hasSupport() && M(e.runtime.api.rowSelection);
1110
+ }), o = v(() => new Set(e.rowSelectionSnapshot.value?.selectedRows ?? [])), s = v(() => new Set(e.rowSelectionSnapshot.value?.excludedRows ?? [])), d = v(() => e.rowSelectionSnapshot.value?.mode === "all"), g = v(() => e.runtime.api.rows.getSnapshot().kind === "server"), R = (M) => !l(M) && M.rowId != null && e.rowSelectionSnapshot.value?.focusedRow === M.rowId, h = (M) => l(M) || M.kind === "group" || M.rowId == null ? !1 : d.value ? !s.value.has(M.rowId) : o.value.has(M.rowId), _ = (M) => h(M), D = (M) => _(M) ? "true" : "false", U = (M) => {
1111
1111
  const V = e.rowSelectionColumn.value?.column;
1112
- return !V || I.kind === "group" || l(I) ? "" : Wo({
1112
+ return !V || M.kind === "group" || l(M) ? "" : Wo({
1113
1113
  column: V,
1114
- value: _(I)
1114
+ value: _(M)
1115
1115
  }).displayValue;
1116
- }, S = v(() => {
1116
+ }, I = v(() => {
1117
1117
  if (g.value)
1118
- return p.value;
1119
- const I = e.runtime.api.rows.getCount(), V = [];
1120
- for (let me = 0; me < I; me += 1) {
1121
- const fe = e.runtime.api.rows.get(me);
1122
- !fe || fe.kind === "group" || fe.rowId == null || V.push(fe.rowId);
1118
+ return C.value;
1119
+ const M = e.runtime.api.rows.getCount(), V = [];
1120
+ for (let me = 0; me < M; me += 1) {
1121
+ const we = e.runtime.api.rows.get(me);
1122
+ !we || we.kind === "group" || we.rowId == null || V.push(we.rowId);
1123
1123
  }
1124
1124
  return V;
1125
- }), p = v(() => {
1126
- const I = [];
1125
+ }), C = v(() => {
1126
+ const M = [];
1127
1127
  for (const V of e.displayRows.value)
1128
- l(V) || V.kind === "group" || V.rowId == null || I.push(V.rowId);
1129
- return I;
1128
+ l(V) || V.kind === "group" || V.rowId == null || M.push(V.rowId);
1129
+ return M;
1130
1130
  }), F = v(() => {
1131
- const I = S.value;
1132
- return I.length > 0 && I.every((V) => d.value ? !s.value.has(V) : o.value.has(V));
1133
- }), k = v(() => S.value.some((V) => d.value ? !s.value.has(V) : o.value.has(V))), A = (I) => {
1134
- l(I) || I.rowId == null || !e.runtime.api.rowSelection.hasSupport() || e.runtime.api.rowSelection.setFocusedRow(I.rowId);
1131
+ const M = I.value;
1132
+ return M.length > 0 && M.every((V) => d.value ? !s.value.has(V) : o.value.has(V));
1133
+ }), k = v(() => I.value.some((V) => d.value ? !s.value.has(V) : o.value.has(V))), A = (M) => {
1134
+ l(M) || M.rowId == null || !e.runtime.api.rowSelection.hasSupport() || e.runtime.api.rowSelection.setFocusedRow(M.rowId);
1135
1135
  };
1136
1136
  return {
1137
1137
  rowSelectionSet: o,
@@ -1142,9 +1142,9 @@ function da(e) {
1142
1142
  areAllVisibleRowsSelected: F,
1143
1143
  areSomeVisibleRowsSelected: k,
1144
1144
  focusRow: A,
1145
- toggleRowCheckboxSelected: (I) => {
1146
- l(I) || I.kind === "group" || I.rowId == null || !e.runtime.api.rowSelection.hasSupport() || a((V) => {
1147
- V.setSelected(I.rowId, !h(I));
1145
+ toggleRowCheckboxSelected: (M) => {
1146
+ l(M) || M.kind === "group" || M.rowId == null || !e.runtime.api.rowSelection.hasSupport() || a((V) => {
1147
+ V.setSelected(M.rowId, !h(M));
1148
1148
  });
1149
1149
  },
1150
1150
  toggleVisibleRowsSelected: () => {
@@ -1165,21 +1165,21 @@ function da(e) {
1165
1165
  });
1166
1166
  return;
1167
1167
  }
1168
- const I = S.value;
1168
+ const M = I.value;
1169
1169
  if (!F.value) {
1170
1170
  a((V) => {
1171
- V.selectRows(I);
1171
+ V.selectRows(M);
1172
1172
  });
1173
1173
  return;
1174
1174
  }
1175
1175
  a((V) => {
1176
- V.deselectRows(I);
1176
+ V.deselectRows(M);
1177
1177
  });
1178
1178
  },
1179
- selectRowRange: (I, V, me) => {
1180
- A(I);
1181
- const fe = e.orderedVisibleColumns.value.length - 1;
1182
- if (fe < 0)
1179
+ selectRowRange: (M, V, me) => {
1180
+ A(M);
1181
+ const we = e.orderedVisibleColumns.value.length - 1;
1182
+ if (we < 0)
1183
1183
  return;
1184
1184
  const he = e.viewportRowStart.value + V;
1185
1185
  if (!me) {
@@ -1187,7 +1187,7 @@ function da(e) {
1187
1187
  startRow: he,
1188
1188
  endRow: he,
1189
1189
  startColumn: 0,
1190
- endColumn: fe
1190
+ endColumn: we
1191
1191
  });
1192
1192
  return;
1193
1193
  }
@@ -1196,7 +1196,7 @@ function da(e) {
1196
1196
  startRow: Math.min(H, he),
1197
1197
  endRow: Math.max(H, he),
1198
1198
  startColumn: 0,
1199
- endColumn: fe
1199
+ endColumn: we
1200
1200
  });
1201
1201
  }
1202
1202
  };
@@ -1227,7 +1227,7 @@ function ma(e) {
1227
1227
  }
1228
1228
  };
1229
1229
  }
1230
- function fa(e) {
1230
+ function wa(e) {
1231
1231
  const l = (d) => d.ctrlKey || d.metaKey || d.altKey ? !1 : d.key.startsWith("Arrow") || d.key === "Home" || d.key === "End" || d.key === "PageUp" || d.key === "PageDown" || d.key === "Tab" || d.key === "Enter" || d.key === " " || d.key === "Spacebar" || d.key === "F2" || d.key === "Escape" || d.key.length === 1, a = (d) => (d.ctrlKey || d.metaKey) && !d.altKey && !d.shiftKey && d.key.toLowerCase() === "a", o = () => {
1232
1232
  const d = e.totalRows.value - 1, g = e.orderedVisibleColumns.value.length - 1;
1233
1233
  d < 0 || g < 0 || e.applySelectionRange({
@@ -1255,71 +1255,71 @@ function fa(e) {
1255
1255
  }
1256
1256
  };
1257
1257
  }
1258
- function wa(e) {
1258
+ function fa(e) {
1259
1259
  const l = v(() => e.interactionSelectionRange.value ?? e.resolveCommittedSelectionRange()), a = v(() => {
1260
- const S = e.interactionSelectionRange.value;
1261
- return S ? [S] : e.resolveCommittedSelectionRanges();
1260
+ const I = e.interactionSelectionRange.value;
1261
+ return I ? [I] : e.resolveCommittedSelectionRanges();
1262
1262
  }), o = () => {
1263
- const S = l.value;
1264
- return S && S.startRow === S.endRow && S.startColumn === S.endColumn ? {
1265
- rowIndex: S.startRow,
1266
- columnIndex: S.startColumn
1263
+ const I = l.value;
1264
+ return I && I.startRow === I.endRow && I.startColumn === I.endColumn ? {
1265
+ rowIndex: I.startRow,
1266
+ columnIndex: I.startColumn
1267
1267
  } : e.selectionAnchorCell.value;
1268
- }, s = () => l.value, d = () => a.value, g = () => e.mode.value === "base" && e.isFillDragging.value && !!e.fillPreviewRange.value, R = (S, p, F) => {
1269
- const k = e.viewportRowStart.value + p;
1270
- return k >= S.startRow && k <= S.endRow && F >= S.startColumn && F <= S.endColumn;
1271
- }, h = (S, p) => {
1268
+ }, s = () => l.value, d = () => a.value, g = () => e.mode.value === "base" && e.isFillDragging.value && !!e.fillPreviewRange.value, R = (I, C, F) => {
1269
+ const k = e.viewportRowStart.value + C;
1270
+ return k >= I.startRow && k <= I.endRow && F >= I.startColumn && F <= I.endColumn;
1271
+ }, h = (I, C) => {
1272
1272
  const F = o();
1273
- return F ? F.rowIndex === e.viewportRowStart.value + S && F.columnIndex === p : e.isCommittedSelectionAnchorCell(S, p);
1273
+ return F ? F.rowIndex === e.viewportRowStart.value + I && F.columnIndex === C : e.isCommittedSelectionAnchorCell(I, C);
1274
1274
  };
1275
1275
  return {
1276
1276
  selectionRange: l,
1277
1277
  selectionRanges: a,
1278
1278
  isSelectionAnchorCell: h,
1279
- isCellSelected: (S, p) => {
1279
+ isCellSelected: (I, C) => {
1280
1280
  if (!g())
1281
- return d().some((k) => R(k, S, p));
1281
+ return d().some((k) => R(k, I, C));
1282
1282
  const F = s();
1283
- return F ? R(F, S, p) : !1;
1283
+ return F ? R(F, I, C) : !1;
1284
1284
  },
1285
- shouldHighlightSelectedCell: (S, p) => {
1285
+ shouldHighlightSelectedCell: (I, C) => {
1286
1286
  if (!g()) {
1287
1287
  const A = d();
1288
- return A.length === 0 || !A.some((T) => R(T, S, p)) || A.length === 1 && A[0] && A[0].startRow === A[0].endRow && A[0].startColumn === A[0].endColumn ? !1 : !h(S, p);
1288
+ return A.length === 0 || !A.some((T) => R(T, I, C)) || A.length === 1 && A[0] && A[0].startRow === A[0].endRow && A[0].startColumn === A[0].endColumn ? !1 : !h(I, C);
1289
1289
  }
1290
1290
  const F = s();
1291
- return !F || !R(F, S, p) || F.startRow === F.endRow && F.startColumn === F.endColumn ? !1 : !h(S, p);
1291
+ return !F || !R(F, I, C) || F.startRow === F.endRow && F.startColumn === F.endColumn ? !1 : !h(I, C);
1292
1292
  },
1293
- isCellOnSelectionEdge: (S, p, F) => {
1293
+ isCellOnSelectionEdge: (I, C, F) => {
1294
1294
  if (!g())
1295
1295
  return d().some((T) => {
1296
- if (!R(T, S, p))
1296
+ if (!R(T, I, C))
1297
1297
  return !1;
1298
- const ve = e.viewportRowStart.value + S;
1298
+ const ve = e.viewportRowStart.value + I;
1299
1299
  switch (F) {
1300
1300
  case "top":
1301
1301
  return ve === T.startRow;
1302
1302
  case "right":
1303
- return p === T.endColumn;
1303
+ return C === T.endColumn;
1304
1304
  case "bottom":
1305
1305
  return ve === T.endRow;
1306
1306
  case "left":
1307
- return p === T.startColumn;
1307
+ return C === T.startColumn;
1308
1308
  }
1309
1309
  });
1310
1310
  const k = s();
1311
- if (!k || !R(k, S, p))
1311
+ if (!k || !R(k, I, C))
1312
1312
  return !1;
1313
- const A = e.viewportRowStart.value + S;
1313
+ const A = e.viewportRowStart.value + I;
1314
1314
  switch (F) {
1315
1315
  case "top":
1316
1316
  return A === k.startRow;
1317
1317
  case "right":
1318
- return p === k.endColumn;
1318
+ return C === k.endColumn;
1319
1319
  case "bottom":
1320
1320
  return A === k.endRow;
1321
1321
  case "left":
1322
- return p === k.startColumn;
1322
+ return C === k.startColumn;
1323
1323
  }
1324
1324
  }
1325
1325
  };
@@ -1373,15 +1373,15 @@ function Ra(e) {
1373
1373
  showRowSelection: e.showRowSelection,
1374
1374
  isCellEditable: e.isCellEditable
1375
1375
  }), {
1376
- orderedVisibleColumns: S,
1377
- centerColumns: p,
1376
+ orderedVisibleColumns: I,
1377
+ centerColumns: C,
1378
1378
  resolveColumnWidth: F,
1379
1379
  isRowSelectionColumnKey: k,
1380
1380
  isRowSelectionColumn: A,
1381
1381
  isCellEditable: T,
1382
1382
  isCellEditableByKey: ve,
1383
1383
  rowSelectionColumn: it
1384
- } = U, I = Zo({
1384
+ } = U, M = Zo({
1385
1385
  totalRows: () => h.value,
1386
1386
  resolveBaseRowHeight: () => e.normalizedBaseRowHeight.value,
1387
1387
  resolveRowHeightOverride: (i) => e.runtime.api.view.getRowHeightOverride(i),
@@ -1390,17 +1390,17 @@ function Ra(e) {
1390
1390
  resolveRowHeightOverridesSnapshot: () => e.runtime.api.view.getRowHeightOverridesSnapshot?.() ?? null,
1391
1391
  resolveLastRowHeightMutation: () => e.runtime.api.view.getLastRowHeightMutation?.() ?? null
1392
1392
  }), V = (i) => {
1393
- const f = Math.max(0, Math.trunc(i));
1394
- if (f <= 0)
1393
+ const w = Math.max(0, Math.trunc(i));
1394
+ if (w <= 0)
1395
1395
  return 0;
1396
- const y = I.resolveTotalHeight();
1397
- return f <= g.value ? I.resolveRowOffset(f) : y + (f - g.value) * e.normalizedBaseRowHeight.value;
1396
+ const y = M.resolveTotalHeight();
1397
+ return w <= g.value ? M.resolveRowOffset(w) : y + (w - g.value) * e.normalizedBaseRowHeight.value;
1398
1398
  }, me = v(() => {
1399
1399
  if (e.layoutMode.value !== "auto-height")
1400
1400
  return null;
1401
- let i = I.resolveTotalHeight();
1401
+ let i = M.resolveTotalHeight();
1402
1402
  return e.minRows.value !== null && (i = Math.max(i, V(e.minRows.value))), e.maxRows.value !== null && (i = Math.min(i, V(e.maxRows.value))), Math.max(0, Math.trunc(i));
1403
- }), fe = v(() => e.layoutMode.value !== "auto-height" ? {} : {
1403
+ }), we = v(() => e.layoutMode.value !== "auto-height" ? {} : {
1404
1404
  height: "auto"
1405
1405
  }), he = v(() => {
1406
1406
  if (e.layoutMode.value !== "auto-height")
@@ -1433,7 +1433,7 @@ function Ra(e) {
1433
1433
  columnStyle: Wn,
1434
1434
  handleViewportScroll: $t,
1435
1435
  syncRenderedRowsInRange: Un,
1436
- syncViewportFromDom: we,
1436
+ syncViewportFromDom: fe,
1437
1437
  scheduleViewportSync: Ne,
1438
1438
  cancelScheduledViewportSync: te
1439
1439
  } = er({
@@ -1443,8 +1443,8 @@ function Ra(e) {
1443
1443
  rowVirtualizationEnabled: v(() => e.virtualization.value.rows),
1444
1444
  columnVirtualizationEnabled: v(() => e.virtualization.value.columns),
1445
1445
  totalRows: h,
1446
- visibleColumns: p,
1447
- sizingColumns: S,
1446
+ visibleColumns: C,
1447
+ sizingColumns: I,
1448
1448
  normalizedBaseRowHeight: e.normalizedBaseRowHeight,
1449
1449
  resolveColumnWidth: F,
1450
1450
  defaultColumnWidth: Vl,
@@ -1453,31 +1453,31 @@ function Ra(e) {
1453
1453
  rowOverscan: v(() => e.virtualization.value.rowOverscan),
1454
1454
  columnOverscan: v(() => e.virtualization.value.columnOverscan),
1455
1455
  measureVisibleRowHeights: () => yt(),
1456
- resolveRowHeight: I.resolveRowHeight,
1457
- resolveRowOffset: I.resolveRowOffset,
1458
- resolveRowIndexAtOffset: I.resolveRowIndexAtOffset,
1459
- resolveTotalRowHeight: I.resolveTotalHeight
1456
+ resolveRowHeight: M.resolveRowHeight,
1457
+ resolveRowOffset: M.resolveRowOffset,
1458
+ resolveRowIndexAtOffset: M.resolveRowIndexAtOffset,
1459
+ resolveTotalRowHeight: M.resolveTotalHeight
1460
1460
  }), Je = v(() => (e.rowVersion.value, e.runtime.rowPartition.value, e.runtimeRowModel?.getSnapshot?.().revision ?? e.runtime.api.rows.getSnapshot().revision ?? null)), Qe = (i) => {
1461
1461
  if ("renderedViewport" in i && i.renderedViewport && (s.value = {
1462
1462
  startRow: Math.max(0, Math.trunc(i.renderedViewport.start)),
1463
1463
  endRow: Math.max(Math.max(0, Math.trunc(i.renderedViewport.start)), Math.trunc(i.renderedViewport.end))
1464
- }, e.reportFillPlumbingDetail?.("centerPaneStoredRenderedViewport", wt(s.value))), typeof i.debugJson == "string" && i.debugJson.length > 0)
1464
+ }, e.reportFillPlumbingDetail?.("centerPaneStoredRenderedViewport", ft(s.value))), typeof i.debugJson == "string" && i.debugJson.length > 0)
1465
1465
  try {
1466
- const f = JSON.parse(i.debugJson), y = f.renderedViewport?.start, x = f.renderedViewport?.end;
1466
+ const w = JSON.parse(i.debugJson), y = w.renderedViewport?.start, x = w.renderedViewport?.end;
1467
1467
  s.value == null && Number.isFinite(y) && Number.isFinite(x) && (s.value = {
1468
1468
  startRow: Math.max(0, Math.trunc(y)),
1469
1469
  endRow: Math.max(Math.max(0, Math.trunc(y)), Math.trunc(x))
1470
- }, e.reportFillPlumbingDetail?.("centerPaneStoredRenderedViewport", wt(s.value)));
1470
+ }, e.reportFillPlumbingDetail?.("centerPaneStoredRenderedViewport", ft(s.value)));
1471
1471
  } catch {
1472
1472
  }
1473
1473
  e.reportCenterPaneDiagnostics?.(i);
1474
1474
  }, Kt = (i) => Wn(i), G = R.visualRuntime, Ze = G.resolveBodyRowIndexById, Nt = (i) => {
1475
1475
  if (!Number.isFinite(i))
1476
1476
  return null;
1477
- const f = Math.max(0, Math.trunc(i));
1478
- if (f < h.value)
1479
- return G.getBodyRowAtIndex(f);
1480
- const y = f - h.value;
1477
+ const w = Math.max(0, Math.trunc(i));
1478
+ if (w < h.value)
1479
+ return G.getBodyRowAtIndex(w);
1480
+ const y = w - h.value;
1481
1481
  return e.runtime.rowPartition.value.pinnedBottomRows[y] ?? null;
1482
1482
  }, {
1483
1483
  rowStyle: Wt,
@@ -1495,7 +1495,7 @@ function Ra(e) {
1495
1495
  bodyViewportRef: O,
1496
1496
  runtime: e.runtime,
1497
1497
  minRowHeight: ba,
1498
- syncViewport: () => we()
1498
+ syncViewport: () => fe()
1499
1499
  }), et = nr({
1500
1500
  mode: e.mode,
1501
1501
  runtime: {
@@ -1503,22 +1503,22 @@ function Ra(e) {
1503
1503
  getBodyRowAtIndex: Nt
1504
1504
  },
1505
1505
  totalRows: _,
1506
- visibleColumns: S,
1506
+ visibleColumns: I,
1507
1507
  viewportRowStart: Q,
1508
1508
  resolveRowIndex: (i) => {
1509
- const f = re.value[i];
1510
- return f && Number.isFinite(f.displayIndex) ? Math.max(0, Math.trunc(f.displayIndex)) : Q.value + i;
1509
+ const w = re.value[i];
1510
+ return w && Number.isFinite(w.displayIndex) ? Math.max(0, Math.trunc(w.displayIndex)) : Q.value + i;
1511
1511
  },
1512
1512
  selectionSnapshot: e.selectionSnapshot,
1513
1513
  selectionAnchor: e.selectionAnchor,
1514
- isEditingCell: (i, f) => H(i, f),
1514
+ isEditingCell: (i, w) => H(i, w),
1515
1515
  isVirtualSelectionMode: () => {
1516
- const i = e.runtimeRowModel?.getSnapshot?.() ?? G.api.rows.getSnapshot(), f = e.runtime.rowModel?.getSparseRowModelDiagnostics?.();
1517
- return i.kind === "server" || f != null;
1516
+ const i = e.runtimeRowModel?.getSnapshot?.() ?? G.api.rows.getSnapshot(), w = e.runtime.rowModel?.getSparseRowModelDiagnostics?.();
1517
+ return i.kind === "server" || w != null;
1518
1518
  },
1519
1519
  isRowLoadedAtIndex: (i) => {
1520
- const f = G.getBodyRowAtIndex(i);
1521
- return !!f && !R.isPlaceholderRow(f);
1520
+ const w = G.getBodyRowAtIndex(i);
1521
+ return !!w && !R.isPlaceholderRow(w);
1522
1522
  },
1523
1523
  resolveProjectionIdentity: () => {
1524
1524
  const i = e.runtimeRowModel?.getSnapshot?.() ?? G.api.rows.getSnapshot();
@@ -1535,11 +1535,11 @@ function Ra(e) {
1535
1535
  setCellSelection: Zt,
1536
1536
  clearCellSelection: ut,
1537
1537
  isCellSelected: en
1538
- } = et, Xn = et.isSelectionAnchorCell ?? (() => !1), Jn = et.shouldHighlightSelectedCell ?? ((i, f) => en(i, f)), Qn = et.isCellOnSelectionEdge ?? (() => !1), Zn = () => {
1538
+ } = et, Xn = et.isSelectionAnchorCell ?? (() => !1), Jn = et.shouldHighlightSelectedCell ?? ((i, w) => en(i, w)), Qn = et.isCellOnSelectionEdge ?? (() => !1), Zn = () => {
1539
1539
  const i = e.selectionSnapshot.value;
1540
1540
  if (!i?.ranges.some((E) => E.virtual))
1541
1541
  return;
1542
- const f = lo(
1542
+ const w = lo(
1543
1543
  e.runtimeRowModel?.getSnapshot?.() ?? G.api.rows.getSnapshot()
1544
1544
  );
1545
1545
  let y = !1;
@@ -1553,7 +1553,7 @@ function Ra(e) {
1553
1553
  return !!Z && !R.isPlaceholderRow(Z);
1554
1554
  },
1555
1555
  getRowIdAtIndex: (ie) => G.getBodyRowAtIndex(ie)?.rowId ?? null
1556
- }), B = E.virtual.projectionIdentity ?? f, W = E.virtual.projectionStale === !0 || E.virtual.projectionIdentity != null && f != null && !tn(E.virtual.projectionIdentity, f), Y = Yo({
1556
+ }), B = E.virtual.projectionIdentity ?? w, W = E.virtual.projectionStale === !0 || E.virtual.projectionIdentity != null && w != null && !tn(E.virtual.projectionIdentity, w), Y = Yo({
1557
1557
  range: E,
1558
1558
  anchorCell: E.anchor,
1559
1559
  focusCell: E.focus,
@@ -1578,30 +1578,30 @@ function Ra(e) {
1578
1578
  ee(Gt, () => {
1579
1579
  Zn();
1580
1580
  });
1581
- function tn(i, f) {
1582
- return i?.rowModelKind === f?.rowModelKind && i?.revision === f?.revision && i?.datasetVersion === f?.datasetVersion && i?.projectionKey === f?.projectionKey;
1581
+ function tn(i, w) {
1582
+ return i?.rowModelKind === w?.rowModelKind && i?.revision === w?.revision && i?.datasetVersion === w?.datasetVersion && i?.projectionKey === w?.projectionKey;
1583
1583
  }
1584
- function el(i, f) {
1585
- return i.isFullyLoaded === f.isFullyLoaded && i.loadedRowCount === f.loadedRowCount && i.totalRowCount === f.totalRowCount && i.scanLimited === f.scanLimited && nl(i.missingIntervals, f.missingIntervals) && ll(i.rowIds, f.rowIds);
1584
+ function el(i, w) {
1585
+ return i.isFullyLoaded === w.isFullyLoaded && i.loadedRowCount === w.loadedRowCount && i.totalRowCount === w.totalRowCount && i.scanLimited === w.scanLimited && nl(i.missingIntervals, w.missingIntervals) && ll(i.rowIds, w.rowIds);
1586
1586
  }
1587
- function tl(i, f) {
1588
- return i.startRowIndex === f.startRowIndex && i.endRowIndex === f.endRowIndex && i.startColumnIndex === f.startColumnIndex && i.endColumnIndex === f.endColumnIndex && i.isVirtualSelection === f.isVirtualSelection && i.projectionStale === f.projectionStale && i.staleReason === f.staleReason && i.datasetVersion === f.datasetVersion && i.anchorCell.rowIndex === f.anchorCell.rowIndex && i.anchorCell.colIndex === f.anchorCell.colIndex && i.anchorCell.rowId === f.anchorCell.rowId && i.focusCell.rowIndex === f.focusCell.rowIndex && i.focusCell.colIndex === f.focusCell.colIndex && i.focusCell.rowId === f.focusCell.rowId && tn(i.projectionIdentity ?? null, f.projectionIdentity ?? null) && el(i.coverage, f.coverage);
1587
+ function tl(i, w) {
1588
+ return i.startRowIndex === w.startRowIndex && i.endRowIndex === w.endRowIndex && i.startColumnIndex === w.startColumnIndex && i.endColumnIndex === w.endColumnIndex && i.isVirtualSelection === w.isVirtualSelection && i.projectionStale === w.projectionStale && i.staleReason === w.staleReason && i.datasetVersion === w.datasetVersion && i.anchorCell.rowIndex === w.anchorCell.rowIndex && i.anchorCell.colIndex === w.anchorCell.colIndex && i.anchorCell.rowId === w.anchorCell.rowId && i.focusCell.rowIndex === w.focusCell.rowIndex && i.focusCell.colIndex === w.focusCell.colIndex && i.focusCell.rowId === w.focusCell.rowId && tn(i.projectionIdentity ?? null, w.projectionIdentity ?? null) && el(i.coverage, w.coverage);
1589
1589
  }
1590
- function nl(i, f) {
1591
- if (i.length !== f.length)
1590
+ function nl(i, w) {
1591
+ if (i.length !== w.length)
1592
1592
  return !1;
1593
1593
  for (let y = 0; y < i.length; y += 1) {
1594
- const x = i[y], j = f[y];
1594
+ const x = i[y], j = w[y];
1595
1595
  if (!x || !j || x.startRow !== j.startRow || x.endRow !== j.endRow)
1596
1596
  return !1;
1597
1597
  }
1598
1598
  return !0;
1599
1599
  }
1600
- function ll(i, f) {
1601
- if (i.length !== f.length)
1600
+ function ll(i, w) {
1601
+ if (i.length !== w.length)
1602
1602
  return !1;
1603
1603
  for (let y = 0; y < i.length; y += 1) {
1604
- const x = i[y], j = f[y];
1604
+ const x = i[y], j = w[y];
1605
1605
  if (!x || !j || x.rowIndex !== j.rowIndex || x.rowId !== j.rowId)
1606
1606
  return !1;
1607
1607
  }
@@ -1611,7 +1611,7 @@ function Ra(e) {
1611
1611
  const i = e.selectionSnapshot.value;
1612
1612
  if (!i || i.ranges.length === 0)
1613
1613
  return null;
1614
- const f = i.activeRangeIndex ?? 0, y = i.ranges[f]?.anchor ?? i.ranges[0]?.anchor ?? null;
1614
+ const w = i.activeRangeIndex ?? 0, y = i.ranges[w]?.anchor ?? i.ranges[0]?.anchor ?? null;
1615
1615
  return !y || typeof y.rowIndex != "number" || typeof y.colIndex != "number" || !Number.isFinite(y.rowIndex) || !Number.isFinite(y.colIndex) ? null : {
1616
1616
  rowIndex: Math.trunc(y.rowIndex),
1617
1617
  columnIndex: Math.trunc(y.colIndex)
@@ -1620,7 +1620,7 @@ function Ra(e) {
1620
1620
  runtime: e.runtime,
1621
1621
  isPlaceholderRow: R.isPlaceholderRow,
1622
1622
  rowSelectionColumn: it,
1623
- orderedVisibleColumns: S,
1623
+ orderedVisibleColumns: I,
1624
1624
  displayRows: re,
1625
1625
  rowSelectionSnapshot: o,
1626
1626
  applyRowSelectionMutation: (i) => {
@@ -1644,7 +1644,7 @@ function Ra(e) {
1644
1644
  }), dt = ca({
1645
1645
  runtime: e.runtime,
1646
1646
  cloneRowData: e.cloneRowData,
1647
- syncViewport: () => we(),
1647
+ syncViewport: () => fe(),
1648
1648
  enabled: e.historyEnabled?.value !== !1,
1649
1649
  maxHistoryDepth: e.historyMaxDepth?.value,
1650
1650
  history: e.history
@@ -1694,18 +1694,18 @@ function Ra(e) {
1694
1694
  captureHistorySnapshot: Ee,
1695
1695
  captureHistorySnapshotForRowIds: tt,
1696
1696
  recordHistoryIntentTransaction: We,
1697
- syncViewport: () => we()
1697
+ syncViewport: () => fe()
1698
1698
  }), {
1699
1699
  readStageCell: xt
1700
- } = Mt, un = (i, f, y) => R.isPlaceholderRow(i) ? R.isPlaceholderCellEditable(f) : y(), Te = (i, f, y, x) => un(
1700
+ } = Mt, un = (i, w, y) => R.isPlaceholderRow(i) ? R.isPlaceholderCellEditable(w) : y(), Te = (i, w, y, x) => un(
1701
1701
  i,
1702
- S.value[x],
1703
- () => ve(i, f, y, x)
1702
+ I.value[x],
1703
+ () => ve(i, w, y, x)
1704
1704
  ), nt = or({
1705
1705
  mode: e.mode,
1706
1706
  runtime: G,
1707
1707
  totalRows: h,
1708
- visibleColumns: S,
1708
+ visibleColumns: I,
1709
1709
  viewportRowStart: Q,
1710
1710
  resolveSelectionRange: de,
1711
1711
  resolveSelectionRanges: pt,
@@ -1714,19 +1714,19 @@ function Ra(e) {
1714
1714
  clearCellSelection: ut,
1715
1715
  captureRowsSnapshot: Ee,
1716
1716
  captureRowsSnapshotForRowIds: tt,
1717
- recordEditTransaction: (i, f, y) => {
1717
+ recordEditTransaction: (i, w, y) => {
1718
1718
  We({
1719
1719
  intent: "edit",
1720
1720
  label: y ?? "Cell edit"
1721
- }, i, f);
1721
+ }, i, w);
1722
1722
  },
1723
- readCell: (i, f) => xt(i, f),
1724
- readClipboardCell: e.readClipboardCell ? (i, f) => e.readClipboardCell?.(i, f) ?? "" : void 0,
1723
+ readCell: (i, w) => xt(i, w),
1724
+ readClipboardCell: e.readClipboardCell ? (i, w) => e.readClipboardCell?.(i, w) ?? "" : void 0,
1725
1725
  setLastAction: (i) => {
1726
1726
  e.reportFillWarning?.(i);
1727
1727
  },
1728
1728
  isCellEditable: Te,
1729
- syncViewport: () => we(),
1729
+ syncViewport: () => fe(),
1730
1730
  applyClipboardEdits: e.applyClipboardEdits,
1731
1731
  buildFillMatrixFromRange: e.buildFillMatrixFromRange,
1732
1732
  buildPasteSpecialMatrixFromRange: e.buildPasteSpecialMatrixFromRange,
@@ -1743,23 +1743,23 @@ function Ra(e) {
1743
1743
  isCellInPendingClipboardRange: Dt,
1744
1744
  isCellOnPendingClipboardEdge: cl
1745
1745
  } = nt, {
1746
- ensureKeyboardActiveCellVisible: fn,
1747
- revealCellInComfortZone: wn
1746
+ ensureKeyboardActiveCellVisible: wn,
1747
+ revealCellInComfortZone: fn
1748
1748
  } = rr({
1749
1749
  bodyViewportRef: O,
1750
- visibleColumns: S,
1750
+ visibleColumns: I,
1751
1751
  resolveColumnWidth: F,
1752
1752
  normalizedBaseRowHeight: e.normalizedBaseRowHeight,
1753
- resolveRowHeight: I.resolveRowHeight,
1754
- resolveRowOffset: I.resolveRowOffset,
1753
+ resolveRowHeight: M.resolveRowHeight,
1754
+ resolveRowOffset: M.resolveRowOffset,
1755
1755
  indexColumnWidth: D.value,
1756
1756
  defaultColumnWidth: Vl,
1757
- syncViewport: () => we()
1757
+ syncViewport: () => fe()
1758
1758
  }), {
1759
1759
  editingCell: gn,
1760
1760
  editingCellValue: Ae,
1761
1761
  editingCellInitialFilter: Ue,
1762
- editingCellOpenOnMount: ft,
1762
+ editingCellOpenOnMount: wt,
1763
1763
  isEditingCell: Ce,
1764
1764
  startInlineEdit: Ve,
1765
1765
  appendInlineEditTextInput: kt,
@@ -1770,25 +1770,25 @@ function Ra(e) {
1770
1770
  } = ar({
1771
1771
  mode: e.mode,
1772
1772
  bodyViewportRef: O,
1773
- visibleColumns: S,
1773
+ visibleColumns: I,
1774
1774
  totalRows: h,
1775
1775
  runtime: G,
1776
- readCell: (i, f) => xt(i, f),
1776
+ readCell: (i, w) => xt(i, w),
1777
1777
  resolveRowIndexById: Ze,
1778
1778
  applyCellSelection: (i) => {
1779
1779
  Qt(i, !1);
1780
1780
  },
1781
- ensureActiveCellVisible: (i, f) => {
1782
- fn(i, f);
1781
+ ensureActiveCellVisible: (i, w) => {
1782
+ wn(i, w);
1783
1783
  },
1784
1784
  isCellEditable: Te,
1785
1785
  captureRowsSnapshot: Ee,
1786
1786
  captureRowsSnapshotForRowIds: tt,
1787
- recordEditTransaction: (i, f, y) => {
1787
+ recordEditTransaction: (i, w, y) => {
1788
1788
  We({
1789
1789
  intent: "edit",
1790
1790
  label: y ?? "Cell edit"
1791
- }, i, f);
1791
+ }, i, w);
1792
1792
  },
1793
1793
  ensureEditableRowAtIndex: (i) => R.ensureMaterializedRowAt(i, "edit"),
1794
1794
  onCellEdit: e.onCellEdit
@@ -1822,11 +1822,11 @@ function Ra(e) {
1822
1822
  const i = e.runtimeRowModel?.getSnapshot?.();
1823
1823
  if (!i)
1824
1824
  return "none";
1825
- const f = i.viewportRange;
1825
+ const w = i.viewportRange;
1826
1826
  return [
1827
1827
  `rowCount=${i.rowCount}`,
1828
1828
  `loading=${i.loading ? "yes" : "no"}`,
1829
- `viewport=${f.start}..${f.end}`,
1829
+ `viewport=${w.start}..${w.end}`,
1830
1830
  `revision=${i.revision ?? "none"}`
1831
1831
  ].join(" ");
1832
1832
  }
@@ -1840,7 +1840,7 @@ function Ra(e) {
1840
1840
  const i = re.value;
1841
1841
  if (i.length === 0)
1842
1842
  return null;
1843
- const f = i[0], y = i[i.length - 1], x = f && Number.isFinite(f.displayIndex) ? Math.max(0, Math.trunc(f.displayIndex)) : null, j = y && Number.isFinite(y.displayIndex) ? Math.max(0, Math.trunc(y.displayIndex)) : null, E = x ?? Q.value, ae = j != null ? Math.max(E, j) : Math.max(E, E + i.length - 1);
1843
+ const w = i[0], y = i[i.length - 1], x = w && Number.isFinite(w.displayIndex) ? Math.max(0, Math.trunc(w.displayIndex)) : null, j = y && Number.isFinite(y.displayIndex) ? Math.max(0, Math.trunc(y.displayIndex)) : null, E = x ?? Q.value, ae = j != null ? Math.max(E, j) : Math.max(E, E + i.length - 1);
1844
1844
  return {
1845
1845
  startRow: E,
1846
1846
  endRow: ae,
@@ -1872,7 +1872,7 @@ function Ra(e) {
1872
1872
  ].join(" ")), e.reportFillPlumbingDetail?.("source_sync_row1", De(W)), e.reportFillPlumbingState?.("runtime_redraw_happened", !0), e.reportFillPlumbingDetail?.("runtime_redraw_reason", i);
1873
1873
  }
1874
1874
  async function Ot(i = null) {
1875
- const f = (n) => n != null && typeof n == "object" && "kind" in n, y = e.runtimeRowModel, x = e.runtime.api.rows, j = s.value ? {
1875
+ const w = (n) => n != null && typeof n == "object" && "kind" in n, y = e.runtimeRowModel, x = e.runtime.api.rows, j = s.value ? {
1876
1876
  startRow: s.value.startRow,
1877
1877
  endRow: s.value.endRow,
1878
1878
  endColumn: Math.max(0, e.visibleColumns.value.length - 1)
@@ -1884,8 +1884,8 @@ function Ra(e) {
1884
1884
  startRow: Q.value,
1885
1885
  endRow: oe.value,
1886
1886
  endColumn: Math.max(0, e.visibleColumns.value.length - 1)
1887
- }, W = i != null && !f(i) ? Et(i) : f(i) && i.kind === "range" ? Et(i.range) : null, Y = f(i) && i.kind === "rows" ? i.rowIds : null;
1888
- e.reportFillPlumbingDetail?.("server_fill_latest_rendered_viewport", wt(s.value)), e.reportFillPlumbingDetail?.("server_fill_runtime_rendered_viewport", _e(E)), e.reportFillPlumbingDetail?.("server_fill_displayrows_rendered_viewport", _e(ae)), e.reportFillPlumbingDetail?.("server_fill_selected_rendered_viewport", _e(B)), e.reportFillPlumbingDetail?.("server_fill_refresh_used_stored_rendered", j ? "yes" : "no");
1887
+ }, W = i != null && !w(i) ? Et(i) : w(i) && i.kind === "range" ? Et(i.range) : null, Y = w(i) && i.kind === "rows" ? i.rowIds : null;
1888
+ e.reportFillPlumbingDetail?.("server_fill_latest_rendered_viewport", ft(s.value)), e.reportFillPlumbingDetail?.("server_fill_runtime_rendered_viewport", _e(E)), e.reportFillPlumbingDetail?.("server_fill_displayrows_rendered_viewport", _e(ae)), e.reportFillPlumbingDetail?.("server_fill_selected_rendered_viewport", _e(B)), e.reportFillPlumbingDetail?.("server_fill_refresh_used_stored_rendered", j ? "yes" : "no");
1889
1889
  const ie = Et({
1890
1890
  startRow: B.startRow,
1891
1891
  endRow: B.endRow
@@ -1901,9 +1901,9 @@ function Ra(e) {
1901
1901
  e.reportFillPlumbingState?.("server_fill_invalidation_called", L), e.reportFillPlumbingDetail?.("server_fill_cache_row1_before_invalidation", vt ? "yes" : "no"), e.reportFillPlumbingDetail?.("server_fill_cache_row1_after_invalidation", t ? "yes" : "no"), e.reportFillPlumbingState?.("server_fill_invalidation_applied", L), !L && typeof x.refresh == "function" && await x.refresh(), B ? Un({
1902
1902
  start: B.startRow,
1903
1903
  end: B.endRow
1904
- }) : we(), await at(), qe("server-fill-refresh");
1904
+ }) : fe(), await at(), qe("server-fill-refresh");
1905
1905
  }
1906
- function wt(i) {
1906
+ function ft(i) {
1907
1907
  return i ? `${i.startRow}..${i.endRow}` : "none";
1908
1908
  }
1909
1909
  function _e(i) {
@@ -1912,7 +1912,7 @@ function Ra(e) {
1912
1912
  function Et(i) {
1913
1913
  if (!i)
1914
1914
  return null;
1915
- const f = i, y = Number.isFinite(f.startRow) ? f.startRow : f.start, x = Number.isFinite(f.endRow) ? f.endRow : f.end, j = Number(y), E = Number(x ?? y);
1915
+ const w = i, y = Number.isFinite(w.startRow) ? w.startRow : w.start, x = Number.isFinite(w.endRow) ? w.endRow : w.end, j = Number(y), E = Number(x ?? y);
1916
1916
  return !Number.isFinite(j) || !Number.isFinite(E) ? null : {
1917
1917
  start: Math.max(0, Math.trunc(j)),
1918
1918
  end: Math.max(Math.max(0, Math.trunc(j)), Math.trunc(E))
@@ -1921,13 +1921,13 @@ function Ra(e) {
1921
1921
  function ml(i) {
1922
1922
  return i ? i.endRow >= Q.value && i.startRow <= oe.value : !1;
1923
1923
  }
1924
- function fl() {
1925
- const i = e.runtimeRowModel?.getSnapshot?.() ?? e.runtime.api.rows.getSnapshot(), f = e.runtime.rowModel?.getSparseRowModelDiagnostics?.();
1926
- return i.kind === "server" || f != null;
1924
+ function wl() {
1925
+ const i = e.runtimeRowModel?.getSnapshot?.() ?? e.runtime.api.rows.getSnapshot(), w = e.runtime.rowModel?.getSparseRowModelDiagnostics?.();
1926
+ return i.kind === "server" || w != null;
1927
1927
  }
1928
1928
  function pn(i) {
1929
- for (let f = i.startRow; f <= i.endRow; f += 1) {
1930
- const y = G.getBodyRowAtIndex(f);
1929
+ for (let w = i.startRow; w <= i.endRow; w += 1) {
1930
+ const y = G.getBodyRowAtIndex(w);
1931
1931
  if (!y || R.isPlaceholderRow(y))
1932
1932
  return !1;
1933
1933
  }
@@ -1947,11 +1947,11 @@ function Ra(e) {
1947
1947
  });
1948
1948
  }
1949
1949
  return rn(i);
1950
- }, Mn = async (i, f) => {
1951
- const y = Ft(i), x = Ft(f);
1950
+ }, Mn = async (i, w) => {
1951
+ const y = Ft(i), x = Ft(w);
1952
1952
  if (!y || !x || cn(y, x))
1953
1953
  return !1;
1954
- if (fl() && (!pn(y) || !pn(x)))
1954
+ if (wl() && (!pn(y) || !pn(x)))
1955
1955
  return e.reportFillWarning?.("Range move includes unloaded rows. Load the full source and target ranges before moving."), !1;
1956
1956
  const j = dn(y), E = y.endRow - y.startRow + 1, ae = y.endColumn - y.startColumn + 1, B = /* @__PURE__ */ new Map();
1957
1957
  for (let L = 0; L < E; L += 1) {
@@ -1976,7 +1976,7 @@ function Ra(e) {
1976
1976
  const t = G.getBodyRowAtIndex(L);
1977
1977
  if (!(!t || t.kind === "group" || t.rowId == null || R.isPlaceholderRow(t)))
1978
1978
  for (let n = y.startColumn; n <= y.endColumn; n += 1) {
1979
- const r = S.value[n]?.key;
1979
+ const r = I.value[n]?.key;
1980
1980
  !r || k(r) || (vt(t.rowId)[r] = "");
1981
1981
  }
1982
1982
  }
@@ -1984,7 +1984,7 @@ function Ra(e) {
1984
1984
  let t = G.getBodyRowAtIndex(L);
1985
1985
  R.isPlaceholderRow(t) && B.get(L) === !0 && (t = R.ensureMaterializedRowAt(L, "paste"));
1986
1986
  for (let n = x.startColumn; n <= x.endColumn; n += 1) {
1987
- const r = S.value[n]?.key;
1987
+ const r = I.value[n]?.key;
1988
1988
  if (!r || k(r))
1989
1989
  continue;
1990
1990
  const u = L - x.startRow, c = n - x.startColumn, b = j[u]?.[c] ?? "";
@@ -2002,21 +2002,21 @@ function Ra(e) {
2002
2002
  intent: "move",
2003
2003
  label: ie > 0 ? `Move ${Z} cells (blocked ${ie})` : `Move ${Z} cells`,
2004
2004
  affectedRange: x
2005
- }, W), we(), !0);
2005
+ }, W), fe(), !0);
2006
2006
  }, xn = {
2007
2007
  mode: e.mode,
2008
2008
  enableFillHandle: e.enableFillHandle,
2009
2009
  enableRangeMove: e.enableRangeMove,
2010
2010
  runtime: G,
2011
2011
  totalRows: h,
2012
- visibleColumns: S,
2012
+ visibleColumns: I,
2013
2013
  viewportRowStart: Q,
2014
2014
  selectionSnapshot: e.selectionSnapshot,
2015
2015
  bodyViewportRef: O,
2016
2016
  indexColumnWidth: D.value,
2017
2017
  resolveColumnWidth: F,
2018
- resolveRowHeight: I.resolveRowHeight,
2019
- resolveRowIndexAtOffset: I.resolveRowIndexAtOffset,
2018
+ resolveRowHeight: M.resolveRowHeight,
2019
+ resolveRowIndexAtOffset: M.resolveRowIndexAtOffset,
2020
2020
  normalizeRowId: Ct,
2021
2021
  normalizeCellCoord: Xt,
2022
2022
  resolveSelectionRange: de,
@@ -2024,20 +2024,20 @@ function Ra(e) {
2024
2024
  applyCellSelectionByCoord: Qt,
2025
2025
  setCellSelection: Zt,
2026
2026
  clearCellSelection: ut,
2027
- readCell: (i, f) => xt(i, f),
2027
+ readCell: (i, w) => xt(i, w),
2028
2028
  isCellEditable: Te,
2029
2029
  cloneRowData: e.cloneRowData,
2030
2030
  resolveRowIndexById: Ze,
2031
2031
  isRowMaterializedAtIndex: (i) => {
2032
- const f = G.getBodyRowAtIndex(i);
2033
- return !!f && f.__placeholder !== !0;
2032
+ const w = G.getBodyRowAtIndex(i);
2033
+ return !!w && w.__placeholder !== !0;
2034
2034
  },
2035
2035
  resolveFillBoundary: (() => {
2036
- const f = e.runtimeRowModel?.dataSource?.resolveFillBoundary;
2037
- if (e.reportFillPlumbingState?.("stage_runtime_rowmodel", typeof f == "function"), typeof f == "function")
2036
+ const w = e.runtimeRowModel?.dataSource?.resolveFillBoundary;
2037
+ if (e.reportFillPlumbingState?.("stage_runtime_rowmodel", typeof w == "function"), typeof w == "function")
2038
2038
  return async (y) => {
2039
2039
  const x = e.runtime.api.rows.getSnapshot();
2040
- return f({
2040
+ return w({
2041
2041
  ...y,
2042
2042
  projection: {
2043
2043
  sortModel: x.sortModel ?? [],
@@ -2067,8 +2067,8 @@ function Ra(e) {
2067
2067
  ensureEditableRowAtIndex: (i) => R.ensureMaterializedRowAt(i, "toggle"),
2068
2068
  captureRowsSnapshot: Ee,
2069
2069
  captureRowsSnapshotForRowIds: tt,
2070
- recordIntentTransaction: (i, f, y) => {
2071
- Pe.value = null, ye.value = null, We(i, f, y);
2070
+ recordIntentTransaction: (i, w, y) => {
2071
+ Pe.value = null, ye.value = null, We(i, w, y);
2072
2072
  },
2073
2073
  recordServerFillTransaction: (i) => {
2074
2074
  if (dt.recordServerFillTransaction(i), In()) {
@@ -2093,7 +2093,7 @@ function Ra(e) {
2093
2093
  buildFillMatrixFromRange: dn,
2094
2094
  applyRangeMove: e.applyRangeMove ?? Mn,
2095
2095
  refreshServerFillViewport: Ot,
2096
- syncViewport: () => we(),
2096
+ syncViewport: () => fe(),
2097
2097
  editingCell: yn,
2098
2098
  startInlineEdit: Ve,
2099
2099
  appendInlineEditTextInput: kt,
@@ -2102,7 +2102,7 @@ function Ra(e) {
2102
2102
  canUndo: Sn,
2103
2103
  canRedo: Pt,
2104
2104
  runHistoryAction: Tt,
2105
- ensureKeyboardActiveCellVisible: fn,
2105
+ ensureKeyboardActiveCellVisible: wn,
2106
2106
  isContextMenuVisible: e.isContextMenuVisible,
2107
2107
  closeContextMenu: e.closeContextMenu,
2108
2108
  openContextMenuFromCurrentCell: e.openContextMenuFromCurrentCell,
@@ -2112,7 +2112,7 @@ function Ra(e) {
2112
2112
  isFillDragging: ze,
2113
2113
  fillPreviewRange: lt,
2114
2114
  lastAppliedFill: Ye,
2115
- isRangeMoving: wl,
2115
+ isRangeMoving: fl,
2116
2116
  selectionRange: gl,
2117
2117
  rangeMovePreviewRange: vl,
2118
2118
  stopPointerSelection: hl,
@@ -2133,11 +2133,11 @@ function Ra(e) {
2133
2133
  rowModel: e.runtimeRowModel,
2134
2134
  fallbackRows: e.sourceRows?.value ?? e.rows.value,
2135
2135
  sampleLimit: co
2136
- }))), Sl = fa({
2136
+ }))), Sl = wa({
2137
2137
  runtime: G,
2138
2138
  selectionSnapshot: e.selectionSnapshot,
2139
2139
  totalRows: h,
2140
- orderedVisibleColumns: S,
2140
+ orderedVisibleColumns: I,
2141
2141
  viewportRowStart: Q,
2142
2142
  applySelectionRange: xe,
2143
2143
  handleCellKeydown: gt
@@ -2149,10 +2149,10 @@ function Ra(e) {
2149
2149
  stopColumnResize: kn,
2150
2150
  dispose: Fl
2151
2151
  } = sr({
2152
- visibleColumns: S,
2152
+ visibleColumns: I,
2153
2153
  rows: zt,
2154
- persistColumnWidth: (i, f) => {
2155
- e.runtime.api.columns.setWidth(i, f);
2154
+ persistColumnWidth: (i, w) => {
2155
+ e.runtime.api.columns.setWidth(i, w);
2156
2156
  },
2157
2157
  defaultColumnWidth: Vl,
2158
2158
  minColumnWidth: ha,
@@ -2168,11 +2168,11 @@ function Ra(e) {
2168
2168
  stopDragSelection: () => {
2169
2169
  hl();
2170
2170
  },
2171
- readCellText: (i, f) => {
2172
- const y = i[f];
2171
+ readCellText: (i, w) => {
2172
+ const y = i[w];
2173
2173
  return y == null ? "" : String(y);
2174
2174
  }
2175
- }), Xe = wa({
2175
+ }), Xe = fa({
2176
2176
  mode: e.mode,
2177
2177
  viewportRowStart: Q,
2178
2178
  selectionAnchorCell: ct,
@@ -2213,7 +2213,7 @@ function Ra(e) {
2213
2213
  rowHeightMode: e.rowHeightMode,
2214
2214
  layoutMode: e.layoutMode,
2215
2215
  chromeSignature: e.chromeSignature,
2216
- visibleColumns: S,
2216
+ visibleColumns: I,
2217
2217
  renderedColumns: jn,
2218
2218
  displayRows: re,
2219
2219
  displayRowsRevision: Gt,
@@ -2227,7 +2227,7 @@ function Ra(e) {
2227
2227
  gridContentStyle: $n,
2228
2228
  mainTrackStyle: Kn,
2229
2229
  indexColumnStyle: il,
2230
- stageStyle: fe,
2230
+ stageStyle: we,
2231
2231
  bodyShellStyle: he,
2232
2232
  topSpacerHeight: Bn,
2233
2233
  bottomSpacerHeight: Gn,
@@ -2235,14 +2235,14 @@ function Ra(e) {
2235
2235
  viewportRowEnd: oe,
2236
2236
  virtualRowTotal: h,
2237
2237
  baseRowHeight: e.normalizedBaseRowHeight,
2238
- resolveRowHeight: I.resolveRowHeight,
2239
- resolveRowOffset: I.resolveRowOffset,
2238
+ resolveRowHeight: M.resolveRowHeight,
2239
+ resolveRowOffset: M.resolveRowOffset,
2240
2240
  columnWindowStart: Lt,
2241
2241
  leftColumnSpacerWidth: st,
2242
2242
  rightColumnSpacerWidth: Ln,
2243
2243
  editingCellValueRef: Ae,
2244
2244
  editingCellInitialFilter: Ue,
2245
- editingCellOpenOnMount: ft,
2245
+ editingCellOpenOnMount: wt,
2246
2246
  selectionRange: Ht,
2247
2247
  selectionRanges: Al,
2248
2248
  selectionAnchorCell: ct,
@@ -2254,7 +2254,7 @@ function Ra(e) {
2254
2254
  fillHandleEnabled: v(() => e.enableFillHandle.value),
2255
2255
  rangeMoveEnabled: v(() => e.enableRangeMove.value),
2256
2256
  isFillDragging: ze,
2257
- isRangeMoving: wl,
2257
+ isRangeMoving: fl,
2258
2258
  headerViewportRef: K,
2259
2259
  bodyViewportRef: O,
2260
2260
  columnStyle: Kt,
@@ -2316,10 +2316,10 @@ function Ra(e) {
2316
2316
  isCellInPendingClipboardRange: Dt,
2317
2317
  isCellOnPendingClipboardEdge: cl,
2318
2318
  isEditingCell: Ce,
2319
- isCellEditable: (i, f, y, x) => un(
2319
+ isCellEditable: (i, w, y, x) => un(
2320
2320
  i,
2321
2321
  y,
2322
- () => T(i, Q.value + f, y)
2322
+ () => T(i, Q.value + w, y)
2323
2323
  ),
2324
2324
  handleCellMouseDown: yl,
2325
2325
  handleCellClick: N.cellIo.handleCellClick,
@@ -2337,15 +2337,15 @@ function Ra(e) {
2337
2337
  cancelInlineEdit: hn,
2338
2338
  readCell: N.cellIo.readStageCell,
2339
2339
  readDisplayCell: N.cellIo.readStageDisplayCell,
2340
- cellClass: e.cellClass ? (i, f, y, x) => e.cellClass?.(
2340
+ cellClass: e.cellClass ? (i, w, y, x) => e.cellClass?.(
2341
2341
  i,
2342
- Q.value + f,
2342
+ Q.value + w,
2343
2343
  y,
2344
2344
  x
2345
2345
  ) : void 0,
2346
- cellStyle: e.cellStyle ? (i, f, y, x) => e.cellStyle?.(
2346
+ cellStyle: e.cellStyle ? (i, w, y, x) => e.cellStyle?.(
2347
2347
  i,
2348
- Q.value + f,
2348
+ Q.value + w,
2349
2349
  y,
2350
2350
  x
2351
2351
  ) : void 0
@@ -2360,19 +2360,19 @@ function Ra(e) {
2360
2360
  normalizedBaseRowHeight: e.normalizedBaseRowHeight,
2361
2361
  syncSelectionSnapshotFromRuntime: e.syncSelectionSnapshotFromRuntime,
2362
2362
  syncRowSelectionSnapshotFromRuntime: l,
2363
- syncViewport: we,
2363
+ syncViewport: fe,
2364
2364
  scheduleViewportSync: Ne,
2365
2365
  measureVisibleRowHeights: yt,
2366
2366
  applyRowHeightSettings: e.applyRowHeightSettings
2367
2367
  }), cr({
2368
2368
  bodyViewportRef: O,
2369
- syncViewport: we,
2369
+ syncViewport: fe,
2370
2370
  handleWindowMouseMove: N.scrollSync.handleWindowMouseMove,
2371
2371
  handleWindowMouseUp: N.scrollSync.handleWindowMouseUp,
2372
2372
  cancelScheduledViewportSync: te,
2373
2373
  onAfterMount: () => {
2374
2374
  e.syncSelectionSnapshotFromRuntime(), l(), at(() => {
2375
- e.applyRowHeightSettings(), we();
2375
+ e.applyRowHeightSettings(), fe();
2376
2376
  });
2377
2377
  },
2378
2378
  dispose: [
@@ -2389,7 +2389,7 @@ function Ra(e) {
2389
2389
  canRedo: Pt,
2390
2390
  runHistoryAction: Tt
2391
2391
  },
2392
- syncViewportFromDom: we,
2392
+ syncViewportFromDom: fe,
2393
2393
  copySelectedCells: At,
2394
2394
  pasteSelectedCells: mn,
2395
2395
  cutSelectedCells: mt,
@@ -2397,7 +2397,7 @@ function Ra(e) {
2397
2397
  captureHistorySnapshot: Ee,
2398
2398
  captureHistorySnapshotForRowIds: tt,
2399
2399
  recordHistoryIntentTransaction: We,
2400
- revealCellInComfortZone: wn
2400
+ revealCellInComfortZone: fn
2401
2401
  };
2402
2402
  }
2403
2403
  function Ll(e) {
@@ -2490,7 +2490,7 @@ function mo(e) {
2490
2490
  join: g === 0 ? Ll("and") : d.join
2491
2491
  }));
2492
2492
  }
2493
- const pa = Ul(() => import("./DataGridAdvancedFilterPopover-C_MjEKFo.js")), Sa = Ul(() => import("./DataGridAggregationsPopover-C8kdwv0O.js")), Ia = Ul(() => import("./DataGridFindReplacePopover-Dou8Fsm3.js")), Ma = "__AFFINO_DATAGRID_PERF__", fo = 50;
2493
+ const pa = Ul(() => import("./DataGridAdvancedFilterPopover-C_MjEKFo.js")), Sa = Ul(() => import("./DataGridAggregationsPopover-C8kdwv0O.js")), Ia = Ul(() => import("./DataGridFindReplacePopover-Dou8Fsm3.js")), Ma = "__AFFINO_DATAGRID_PERF__", wo = 50;
2494
2494
  function xa(e) {
2495
2495
  return {
2496
2496
  ...e,
@@ -2508,7 +2508,7 @@ function Fa(e) {
2508
2508
  function rt() {
2509
2509
  return typeof performance < "u" && typeof performance.now == "function" ? performance.now() : Date.now();
2510
2510
  }
2511
- function wo(e) {
2511
+ function fo(e) {
2512
2512
  if (typeof window > "u")
2513
2513
  return;
2514
2514
  window[Ma]?.push?.(e);
@@ -3058,12 +3058,12 @@ const La = {
3058
3058
  ].join("|");
3059
3059
  };
3060
3060
  D = U();
3061
- const S = e.runtimeRowModel.subscribe(() => {
3061
+ const I = e.runtimeRowModel.subscribe(() => {
3062
3062
  const t = U();
3063
3063
  t !== D && (D = t, o.value += 1);
3064
3064
  });
3065
3065
  no(() => {
3066
- S(), Ee();
3066
+ I(), Ee();
3067
3067
  }), ee(
3068
3068
  () => e.sortModel,
3069
3069
  (t) => {
@@ -3083,18 +3083,18 @@ const La = {
3083
3083
  },
3084
3084
  { immediate: !0 }
3085
3085
  );
3086
- const p = v(() => e.mode), F = v(() => e.rows), k = v(() => (o.value, e.runtime.api.rows.getSnapshot().rowCount)), A = v(() => e.runtime.columnSnapshot.value.visibleColumns), T = v(() => e.runtime.columnSnapshot.value.columns ?? []), ve = v(() => A.value.filter((t) => t.visible !== !1).map((t) => ({
3086
+ const C = v(() => e.mode), F = v(() => e.rows), k = v(() => (o.value, e.runtime.api.rows.getSnapshot().rowCount)), A = v(() => e.runtime.columnSnapshot.value.visibleColumns), T = v(() => e.runtime.columnSnapshot.value.columns ?? []), ve = v(() => A.value.filter((t) => t.visible !== !1).map((t) => ({
3087
3087
  key: t.key,
3088
3088
  label: t.column.label ?? t.key
3089
3089
  }))), it = v(() => T.value.map((t) => ({
3090
3090
  key: t.key,
3091
3091
  label: t.column.label ?? t.key,
3092
3092
  visible: t.visible !== !1
3093
- }))), I = v(() => T.value.filter((t) => t.column.capabilities?.aggregatable === !0).map((t) => ({
3093
+ }))), M = v(() => T.value.filter((t) => t.column.capabilities?.aggregatable === !0).map((t) => ({
3094
3094
  key: t.key,
3095
3095
  label: t.column.label ?? t.key,
3096
3096
  allowedOps: Ga(t.column.dataType)
3097
- }))), V = J(e.rowHeightMode), me = v(() => ka(e.baseRowHeight)), fe = v(() => A.value[0]?.key ?? "name"), he = v(() => {
3097
+ }))), V = J(e.rowHeightMode), me = v(() => ka(e.baseRowHeight)), we = v(() => A.value[0]?.key ?? "name"), he = v(() => {
3098
3098
  const t = /* @__PURE__ */ new Map();
3099
3099
  for (const n of T.value)
3100
3100
  t.set(n.key, n.column.label ?? n.key);
@@ -3152,13 +3152,13 @@ const La = {
3152
3152
  oe.value?.cancelAdvancedFilterPanel();
3153
3153
  }, Un = () => {
3154
3154
  oe.value?.applyAdvancedFilterPanel();
3155
- }, we = () => {
3155
+ }, fe = () => {
3156
3156
  oe.value?.clearAdvancedFilterPanel();
3157
3157
  }, Ne = J(!1), te = J(null), Je = v(() => !!e.groupBy?.fields?.length), Qe = v(() => (o.value, Bt(e.runtime.api.rows.getAggregationModel()))), Kt = v(() => (o.value, Pa(e.runtime.api.rows.getSnapshot().groupBy))), G = v(() => {
3158
3158
  const t = new Map(
3159
3159
  (te.value?.columns ?? []).map((n) => [n.key, n.op])
3160
3160
  );
3161
- return I.value.map((n) => {
3161
+ return M.value.map((n) => {
3162
3162
  const r = n.allowedOps[0] ?? "count", u = t.get(n.key), c = u && n.allowedOps.includes(u) ? u : r;
3163
3163
  return {
3164
3164
  key: n.key,
@@ -3198,31 +3198,31 @@ const La = {
3198
3198
  }, yt = (t) => Do(e.columnMenu, t), Ut = (t) => Kr(e.columnMenu, t), qt = (t) => Wr(e.columnMenu, t), Yn = (t) => Nr(e.columnMenu, t), Yt = (t) => Ur(e.columnMenu, t), et = (t) => qr(e.columnMenu, t), Ct = (t) => {
3199
3199
  const n = Kt.value?.fields.findIndex((r) => r === t) ?? -1;
3200
3200
  return n >= 0 ? n : null;
3201
- }, Xt = (t) => Ct(t) !== null, de = () => {
3202
- const t = s.value.map((M) => ({
3203
- key: M.key,
3204
- direction: M.direction
3205
- })), n = h.value.advancedExpression ?? null, r = e.advancedFilter.enabled ? {
3206
- ...h.value,
3201
+ }, Xt = (t) => Ct(t) !== null, de = (t = h.value) => {
3202
+ const n = s.value.map((z) => ({
3203
+ key: z.key,
3204
+ direction: z.direction
3205
+ })), r = t.advancedExpression ?? null, u = e.advancedFilter.enabled ? {
3206
+ ...t,
3207
3207
  advancedFilters: {},
3208
- advancedExpression: n
3208
+ advancedExpression: r
3209
3209
  } : {
3210
- ...h.value,
3211
- advancedExpression: n
3212
- }, u = rt();
3210
+ ...t,
3211
+ advancedExpression: r
3212
+ }, c = rt();
3213
3213
  e.runtime.api.rows.setSortAndFilterModel({
3214
- sortModel: t,
3215
- filterModel: _a(r)
3214
+ sortModel: n,
3215
+ filterModel: _a(u)
3216
3216
  });
3217
- const c = rt(), b = e.runtime.api.rows.getSnapshot(), m = b.projection, C = m?.performance?.stageTimes ?? {};
3217
+ const b = rt(), m = e.runtime.api.rows.getSnapshot(), p = m.projection, S = p?.performance?.stageTimes ?? {};
3218
3218
  return {
3219
- setSortModelMs: Math.max(0, c - u),
3220
- projectionRebuildMs: Number.isFinite(m?.performance?.totalTime) ? Math.max(0, Number(m?.performance?.totalTime)) : 0,
3221
- projectionSortMs: Number.isFinite(C.sort) ? Math.max(0, Number(C.sort)) : 0,
3222
- projectionFilterMs: Number.isFinite(C.filter) ? Math.max(0, Number(C.filter)) : 0,
3223
- projectionGroupMs: Number.isFinite(C.group) ? Math.max(0, Number(C.group)) : 0,
3224
- recomputeVersion: Number.isFinite(m?.recomputeVersion) ? Number(m?.recomputeVersion) : 0,
3225
- rowCount: b.rowCount
3219
+ setSortModelMs: Math.max(0, b - c),
3220
+ projectionRebuildMs: Number.isFinite(p?.performance?.totalTime) ? Math.max(0, Number(p?.performance?.totalTime)) : 0,
3221
+ projectionSortMs: Number.isFinite(S.sort) ? Math.max(0, Number(S.sort)) : 0,
3222
+ projectionFilterMs: Number.isFinite(S.filter) ? Math.max(0, Number(S.filter)) : 0,
3223
+ projectionGroupMs: Number.isFinite(S.group) ? Math.max(0, Number(S.group)) : 0,
3224
+ recomputeVersion: Number.isFinite(p?.recomputeVersion) ? Number(p?.recomputeVersion) : 0,
3225
+ rowCount: m.rowCount
3226
3226
  };
3227
3227
  }, pt = () => {
3228
3228
  Ln(mo(h.value));
@@ -3240,7 +3240,7 @@ const La = {
3240
3240
  n
3241
3241
  )), xe.value && r.push(`Quick ${xe.value}`), Object.freeze(r);
3242
3242
  }), ut = v(() => Zt.value.length > 0), en = () => {
3243
- h.value = $l(), we(), de();
3243
+ h.value = $l(), fe(), de();
3244
3244
  }, Xn = (t) => {
3245
3245
  const n = Be(h.value), r = t.trim();
3246
3246
  if (!r)
@@ -3253,12 +3253,12 @@ const La = {
3253
3253
  mode: e.quickFilter.mode ?? u?.mode ?? "contains"
3254
3254
  };
3255
3255
  }
3256
- h.value = n, de();
3256
+ h.value = n, de(n);
3257
3257
  }, Jn = () => {
3258
3258
  if (!h.value.quickFilter)
3259
3259
  return;
3260
3260
  const t = Be(h.value);
3261
- delete t.quickFilter, h.value = t, de();
3261
+ delete t.quickFilter, h.value = t, de(t);
3262
3262
  };
3263
3263
  ee(
3264
3264
  h,
@@ -3328,12 +3328,12 @@ const La = {
3328
3328
  columns: te.value?.columns ?? []
3329
3329
  };
3330
3330
  }, rl = (t, n) => {
3331
- const r = I.value.find((m) => m.key === t);
3331
+ const r = M.value.find((m) => m.key === t);
3332
3332
  if (!r)
3333
3333
  return;
3334
3334
  const u = te.value?.columns ?? [];
3335
3335
  if (!n) {
3336
- const m = u.filter((C) => C.key !== t);
3336
+ const m = u.filter((p) => p.key !== t);
3337
3337
  te.value = m.length > 0 ? { basis: Ze.value, columns: m } : null;
3338
3338
  return;
3339
3339
  }
@@ -3349,7 +3349,7 @@ const La = {
3349
3349
  ]
3350
3350
  };
3351
3351
  }, al = (t, n) => {
3352
- const r = I.value.find((c) => c.key === t);
3352
+ const r = M.value.find((c) => c.key === t);
3353
3353
  if (!r || !r.allowedOps.includes(n))
3354
3354
  return;
3355
3355
  const u = (te.value?.columns ?? []).map((c) => c.key !== t ? c : {
@@ -3372,17 +3372,17 @@ const La = {
3372
3372
  return;
3373
3373
  const b = rt();
3374
3374
  s.value = n.nextSortState;
3375
- const m = de(), C = rt(), M = m.setSortModelMs, z = M > fo;
3376
- if (wo({
3375
+ const m = de(), p = rt(), S = m.setSortModelMs, z = S > wo;
3376
+ if (fo({
3377
3377
  scope: "columnMenuSortApply",
3378
3378
  ts: Date.now(),
3379
- totalMs: Math.max(0, C - r),
3379
+ totalMs: Math.max(0, p - r),
3380
3380
  columnKey: n.columnKey,
3381
3381
  direction: n.direction ?? "clear",
3382
3382
  handlerMs: Math.max(0, u - r),
3383
3383
  scheduleDelayMs: Math.max(0, b - c),
3384
3384
  handlerToApplyStartMs: Math.max(0, b - r),
3385
- setSortModelMs: M,
3385
+ setSortModelMs: S,
3386
3386
  projectionRebuildMs: m.projectionRebuildMs,
3387
3387
  projectionSortMs: m.projectionSortMs,
3388
3388
  projectionFilterMs: m.projectionFilterMs,
@@ -3390,9 +3390,9 @@ const La = {
3390
3390
  recomputeVersion: m.recomputeVersion,
3391
3391
  rowCount: m.rowCount,
3392
3392
  slowSort: z ? 1 : 0,
3393
- thresholdMs: fo,
3393
+ thresholdMs: wo,
3394
3394
  applyStartMs: b,
3395
- setSortModelEndMs: C
3395
+ setSortModelEndMs: p
3396
3396
  }), !z) {
3397
3397
  d.value = null;
3398
3398
  return;
@@ -3413,7 +3413,7 @@ const La = {
3413
3413
  if (!u || u.column.capabilities?.sortable === !1)
3414
3414
  return;
3415
3415
  const c = n === null ? s.value.filter((m) => m.key !== t) : [{ key: t, direction: n }], b = rt();
3416
- wo({
3416
+ fo({
3417
3417
  scope: "columnMenuSortRequest",
3418
3418
  ts: Date.now(),
3419
3419
  totalMs: Math.max(0, b - r),
@@ -3503,7 +3503,7 @@ const La = {
3503
3503
  const b = Te(n, c.startCol), m = Te(n, c.endCol);
3504
3504
  if (!b || !m)
3505
3505
  return null;
3506
- const C = Te(n, c.anchor?.colIndex ?? c.startCol) ?? b, M = Te(n, c.focus?.colIndex ?? c.endCol) ?? m;
3506
+ const p = Te(n, c.anchor?.colIndex ?? c.startCol) ?? b, S = Te(n, c.focus?.colIndex ?? c.endCol) ?? m;
3507
3507
  return {
3508
3508
  startRow: c.startRow,
3509
3509
  endRow: c.endRow,
@@ -3514,12 +3514,12 @@ const La = {
3514
3514
  anchor: {
3515
3515
  rowIndex: c.anchor?.rowIndex ?? c.startRow,
3516
3516
  rowId: nt(c.anchor?.rowId),
3517
- columnKey: C
3517
+ columnKey: p
3518
3518
  },
3519
3519
  focus: {
3520
3520
  rowIndex: c.focus?.rowIndex ?? c.endRow,
3521
3521
  rowId: nt(c.focus?.rowId),
3522
- columnKey: M
3522
+ columnKey: S
3523
3523
  }
3524
3524
  };
3525
3525
  }).filter((c) => c != null);
@@ -3541,12 +3541,12 @@ const La = {
3541
3541
  return null;
3542
3542
  const r = [];
3543
3543
  for (const m of t.ranges) {
3544
- const C = n.indexOf(m.startColumnKey), M = n.indexOf(m.endColumnKey), z = n.indexOf(m.anchor.columnKey), P = n.indexOf(m.focus.columnKey);
3545
- C < 0 || M < 0 || z < 0 || P < 0 || r.push({
3544
+ const p = n.indexOf(m.startColumnKey), S = n.indexOf(m.endColumnKey), z = n.indexOf(m.anchor.columnKey), P = n.indexOf(m.focus.columnKey);
3545
+ p < 0 || S < 0 || z < 0 || P < 0 || r.push({
3546
3546
  startRow: m.startRow,
3547
3547
  endRow: m.endRow,
3548
- startCol: C,
3549
- endCol: M,
3548
+ startCol: p,
3549
+ endCol: S,
3550
3550
  startRowId: m.startRowId,
3551
3551
  endRowId: m.endRowId,
3552
3552
  anchor: {
@@ -3609,7 +3609,7 @@ const La = {
3609
3609
  const r = A.value.length - 1;
3610
3610
  if (t.length === 0 || r < 0)
3611
3611
  return null;
3612
- const u = t.map((C) => ({ rowId: C, rowIndex: e.runtime.resolveBodyRowIndexById(C) })).filter((C) => C.rowIndex >= 0).sort((C, M) => C.rowIndex - M.rowIndex);
3612
+ const u = t.map((p) => ({ rowId: p, rowIndex: e.runtime.resolveBodyRowIndexById(p) })).filter((p) => p.rowIndex >= 0).sort((p, S) => p.rowIndex - S.rowIndex);
3613
3613
  if (u.length === 0)
3614
3614
  return null;
3615
3615
  const c = u[0] ?? null, b = e.runtime.resolveBodyRowIndexById(n), m = b >= 0 ? { rowId: n, rowIndex: b } : c;
@@ -3693,16 +3693,16 @@ const La = {
3693
3693
  } catch {
3694
3694
  return !1;
3695
3695
  }
3696
- }, fn = async () => {
3696
+ }, wn = async () => {
3697
3697
  try {
3698
3698
  return globalThis.navigator?.clipboard?.readText ? await globalThis.navigator.clipboard.readText() : "";
3699
3699
  } catch {
3700
3700
  return "";
3701
3701
  }
3702
- }, wn = async () => {
3702
+ }, fn = async () => {
3703
3703
  if (ue.value?.rows.length)
3704
3704
  return ue.value.rows.map((n) => Me(n));
3705
- const t = (await fn()).trim();
3705
+ const t = (await wn()).trim();
3706
3706
  if (!t)
3707
3707
  return null;
3708
3708
  try {
@@ -3724,7 +3724,7 @@ const La = {
3724
3724
  };
3725
3725
  const c = Ea(u);
3726
3726
  return c && await cl(c), !0;
3727
- }, Ae = () => e.runtime.api.rows.hasInsertSupport(), Ue = () => e.runtime.api.rows.hasDataMutationSupport(), ft = (t) => !t || typeof t != "object" ? !1 : "data" in t || "row" in t || "kind" in t || "state" in t || "sourceIndex" in t || "originalIndex" in t || "displayIndex" in t, Ce = (t) => {
3727
+ }, Ae = () => e.runtime.api.rows.hasInsertSupport(), Ue = () => e.runtime.api.rows.hasDataMutationSupport(), wt = (t) => !t || typeof t != "object" ? !1 : "data" in t || "row" in t || "kind" in t || "state" in t || "sourceIndex" in t || "originalIndex" in t || "displayIndex" in t, Ce = (t) => {
3728
3728
  const n = t;
3729
3729
  return n.rowId != null ? String(n.rowId) : n.id != null ? String(n.id) : null;
3730
3730
  }, Ve = (t) => {
@@ -3732,14 +3732,14 @@ const La = {
3732
3732
  if (!n || typeof n != "object")
3733
3733
  continue;
3734
3734
  const r = n;
3735
- if ((r.rowId != null ? String(r.rowId) : r.rowKey != null ? String(r.rowKey) : null) === t && ft(r))
3735
+ if ((r.rowId != null ? String(r.rowId) : r.rowKey != null ? String(r.rowKey) : null) === t && wt(r))
3736
3736
  return r;
3737
3737
  }
3738
3738
  for (const n of e.rows) {
3739
3739
  if (!n || typeof n != "object")
3740
3740
  continue;
3741
3741
  const r = n;
3742
- if (ft(r))
3742
+ if (wt(r))
3743
3743
  return r;
3744
3744
  }
3745
3745
  return null;
@@ -3758,7 +3758,7 @@ const La = {
3758
3758
  }
3759
3759
  return !("id" in r) && !("rowId" in r) && (r.id = n), r;
3760
3760
  }, bn = (t, n, r) => {
3761
- const u = kt(), c = r === "clone" ? Me(t) : Object.entries(t).reduce((m, [C, M]) => (m[C] = typeof M == "number" ? null : "", m), {});
3761
+ const u = kt(), c = r === "clone" ? Me(t) : Object.entries(t).reduce((m, [p, S]) => (m[p] = typeof S == "number" ? null : "", m), {});
3762
3762
  ("id" in c || !("rowId" in c) && !("id" in c)) && (c.id = u), "rowId" in c && (c.rowId = u), "rowKey" in c && (c.rowKey = u);
3763
3763
  const b = typeof n.state == "object" && n.state != null ? n.state : null;
3764
3764
  return {
@@ -3775,7 +3775,7 @@ const La = {
3775
3775
  data: c,
3776
3776
  row: Me(c)
3777
3777
  };
3778
- }, Rn = (t, n = null) => n && ft(n) ? bn(t, n, "clone") : vn(t), yn = (t, n = null) => n && ft(n) ? bn(t, n, "blank") : hn(t), _t = (t, n, r) => {
3778
+ }, Rn = (t, n = null) => n && wt(n) ? bn(t, n, "clone") : vn(t), yn = (t, n = null) => n && wt(n) ? bn(t, n, "blank") : hn(t), _t = (t, n, r) => {
3779
3779
  if (!e.placeholderRows.enabled || !e.placeholderRows.createRowAt)
3780
3780
  return null;
3781
3781
  const u = e.placeholderRows.createRowAt({
@@ -3825,20 +3825,20 @@ const La = {
3825
3825
  return n;
3826
3826
  }, De = (t) => {
3827
3827
  const n = (m) => {
3828
- const C = e.runtime.resolveBodyRowIndexById(m);
3829
- if (C < 0 || C >= e.runtime.api.rows.getCount())
3828
+ const p = e.runtime.resolveBodyRowIndexById(m);
3829
+ if (p < 0 || p >= e.runtime.api.rows.getCount())
3830
3830
  return !1;
3831
- const M = e.runtime.getBodyRowAtIndex(C);
3832
- return M != null && M.kind !== "group" && !br(M);
3831
+ const S = e.runtime.getBodyRowAtIndex(p);
3832
+ return S != null && S.kind !== "group" && !br(S);
3833
3833
  }, u = (e.rowSelectionSnapshot.value?.selectedRows ?? []).map((m) => String(m)).filter((m) => m.length > 0 && n(m));
3834
3834
  if (u.length > 0)
3835
3835
  return u;
3836
3836
  const c = St(), b = A.value.length - 1;
3837
3837
  if (c && b >= 0) {
3838
- const m = Math.min(c.startColumn, c.endColumn), C = Math.max(c.startColumn, c.endColumn), M = Math.min(c.startRow, c.endRow), z = Math.max(c.startRow, c.endRow), P = t.length > 0 ? e.runtime.resolveBodyRowIndexById(t) : -1;
3839
- if (m === 0 && C === b && (P < 0 || P >= M && P <= z)) {
3838
+ const m = Math.min(c.startColumn, c.endColumn), p = Math.max(c.startColumn, c.endColumn), S = Math.min(c.startRow, c.endRow), z = Math.max(c.startRow, c.endRow), P = t.length > 0 ? e.runtime.resolveBodyRowIndexById(t) : -1;
3839
+ if (m === 0 && p === b && (P < 0 || P >= S && P <= z)) {
3840
3840
  const X = [];
3841
- for (let ne = M; ne <= z; ne += 1) {
3841
+ for (let ne = S; ne <= z; ne += 1) {
3842
3842
  const be = e.runtime.getBodyRowAtIndex(ne);
3843
3843
  if (!be || be.kind === "group" || be.rowId == null)
3844
3844
  continue;
@@ -3870,7 +3870,7 @@ const La = {
3870
3870
  const u = Ce(r);
3871
3871
  return u != null && n.has(u);
3872
3872
  });
3873
- }, wt = (t) => {
3873
+ }, ft = (t) => {
3874
3874
  if (!Ue() || t.length === 0)
3875
3875
  return !1;
3876
3876
  const n = new Set(t), r = ke().filter((u) => {
@@ -3881,15 +3881,15 @@ const La = {
3881
3881
  }, _e = (t, n) => {
3882
3882
  if (!Ue() || t.length === 0)
3883
3883
  return !1;
3884
- const r = ke(), u = new Set(t.map((C) => String(C))), c = r.filter((C) => {
3885
- const M = Ce(C);
3886
- return M != null && u.has(M);
3884
+ const r = ke(), u = new Set(t.map((p) => String(p))), c = r.filter((p) => {
3885
+ const S = Ce(p);
3886
+ return S != null && u.has(S);
3887
3887
  });
3888
3888
  if (c.length === 0)
3889
3889
  return !1;
3890
- const b = r.filter((C) => {
3891
- const M = Ce(C);
3892
- return M == null || !u.has(M);
3890
+ const b = r.filter((p) => {
3891
+ const S = Ce(p);
3892
+ return S == null || !u.has(S);
3893
3893
  }), m = Number.isFinite(n) ? Math.max(0, Math.min(b.length, Math.trunc(n))) : b.length;
3894
3894
  return e.runtime.api.rows.replaceData([
3895
3895
  ...b.slice(0, m),
@@ -3903,8 +3903,8 @@ const La = {
3903
3903
  if (r.has(String(n)))
3904
3904
  return !1;
3905
3905
  const b = ke().filter((m) => {
3906
- const C = Ce(m);
3907
- return C == null || !r.has(C);
3906
+ const p = Ce(m);
3907
+ return p == null || !r.has(p);
3908
3908
  }).findIndex((m) => Ce(m) === n);
3909
3909
  return b < 0 ? !1 : _e(t, b + 1);
3910
3910
  }, ml = (t) => {
@@ -3916,31 +3916,31 @@ const La = {
3916
3916
  const u = qe(De(n)), c = u.includes(n) ? u : qe([n]);
3917
3917
  if (c.length === 0 || c.includes(r))
3918
3918
  return !1;
3919
- const b = ke(), m = new Set(c), M = b.filter((X) => {
3919
+ const b = ke(), m = new Set(c), S = b.filter((X) => {
3920
3920
  const ne = Ce(X);
3921
3921
  return ne == null || !m.has(ne);
3922
3922
  }).findIndex((X) => Ce(X) === r);
3923
- if (M < 0)
3923
+ if (S < 0)
3924
3924
  return !1;
3925
3925
  const z = pe(), P = _e(
3926
3926
  c,
3927
- t.placement === "after" ? M + 1 : M
3927
+ t.placement === "after" ? S + 1 : S
3928
3928
  );
3929
3929
  return P && (mn(c), Se(z, c.length > 1 ? `Move ${c.length} rows` : "Move row")), P;
3930
- }, fl = (t) => {
3930
+ }, wl = (t) => {
3931
3931
  const n = String(t.sourceColumnKey), r = String(t.targetColumnKey);
3932
3932
  if (!n || !r || n === r)
3933
3933
  return !1;
3934
3934
  const u = T.value, c = u.find((le) => le.key === n), b = u.find((le) => le.key === r);
3935
3935
  if (!c || !b)
3936
3936
  return !1;
3937
- const m = u.map((le) => le.key), C = m.indexOf(n), M = m.indexOf(r);
3938
- if (C < 0 || M < 0)
3937
+ const m = u.map((le) => le.key), p = m.indexOf(n), S = m.indexOf(r);
3938
+ if (p < 0 || S < 0)
3939
3939
  return !1;
3940
- const z = m[C];
3940
+ const z = m[p];
3941
3941
  if (!z)
3942
3942
  return !1;
3943
- m.splice(C, 1);
3943
+ m.splice(p, 1);
3944
3944
  const P = m.indexOf(r);
3945
3945
  if (P < 0)
3946
3946
  return !1;
@@ -3968,7 +3968,7 @@ const La = {
3968
3968
  tableStageProps: ze,
3969
3969
  tableStageContext: lt,
3970
3970
  historyController: Ye,
3971
- copySelectedCells: wl,
3971
+ copySelectedCells: fl,
3972
3972
  pasteSelectedCells: gl,
3973
3973
  cutSelectedCells: vl,
3974
3974
  clearSelectedCells: hl,
@@ -3977,7 +3977,7 @@ const La = {
3977
3977
  recordHistoryIntentTransaction: An,
3978
3978
  revealCellInComfortZone: Rl
3979
3979
  } = Ra({
3980
- mode: p,
3980
+ mode: C,
3981
3981
  layoutMode: v(() => e.layoutMode),
3982
3982
  minRows: v(() => e.minRows),
3983
3983
  maxRows: v(() => e.maxRows),
@@ -4012,7 +4012,7 @@ const La = {
4012
4012
  reportCenterPaneDiagnostics: e.reportCenterPaneDiagnostics,
4013
4013
  reportFillPlumbingState: e.reportFillPlumbingState,
4014
4014
  reportFillPlumbingDetail: e.reportFillPlumbingDetail,
4015
- firstColumnKey: fe,
4015
+ firstColumnKey: we,
4016
4016
  columnFilterTextByKey: _,
4017
4017
  virtualization: v(() => e.virtualization),
4018
4018
  toggleSortForColumn: tn,
@@ -4052,7 +4052,7 @@ const La = {
4052
4052
  Mn();
4053
4053
  },
4054
4054
  runRowIndexKeyboardAction: (t, n) => Vt(t, n),
4055
- reorderColumnsByHeader: e.columnReorder.enabled ? fl : void 0,
4055
+ reorderColumnsByHeader: e.columnReorder.enabled ? wl : void 0,
4056
4056
  reorderRowsByIndex: e.rowReorder.enabled ? ml : void 0,
4057
4057
  cellClass: (t, n, r, u) => {
4058
4058
  const c = xn.value, b = !c || t.kind === "group" || t.rowId == null || t.rowId !== c.rowId || r.key !== c.columnKey ? null : {
@@ -4188,7 +4188,7 @@ const La = {
4188
4188
  closeContextMenu: He,
4189
4189
  isColumnContextEnabled: (t) => e.cellMenu.enabled ? Pn(e.cellMenu, t).length > 0 : !1,
4190
4190
  isRowIndexContextEnabled: () => e.rowIndexMenu.enabled && e.showRowIndex
4191
- }), Ml = fr({
4191
+ }), Ml = wr({
4192
4192
  resolveCurrentCellCoord: It,
4193
4193
  resolveViewportElement: () => Fe.value,
4194
4194
  resolveRowAtIndex: (t) => e.runtime.getBodyRowAtIndex(t) ?? void 0,
@@ -4238,22 +4238,22 @@ const La = {
4238
4238
  if (t === "delete-selected-rows") {
4239
4239
  if (b.length === 0)
4240
4240
  return !1;
4241
- const C = pe(), M = wt(b);
4242
- return M && Se(C, b.length > 1 ? `Delete ${b.length} rows` : "Delete row"), M;
4241
+ const p = pe(), S = ft(b);
4242
+ return S && Se(p, b.length > 1 ? `Delete ${b.length} rows` : "Delete row"), S;
4243
4243
  }
4244
4244
  if (t === "insert-row-above") {
4245
- const C = pe(), M = Cn(
4245
+ const p = pe(), S = Cn(
4246
4246
  u,
4247
4247
  u
4248
4248
  );
4249
- return M && Se(C, "Insert row above"), M;
4249
+ return S && Se(p, "Insert row above"), S;
4250
4250
  }
4251
4251
  if (t === "insert-row-below") {
4252
- const C = pe(), M = Cn(
4252
+ const p = pe(), S = Cn(
4253
4253
  u + 1,
4254
4254
  u + 1
4255
4255
  );
4256
- return M && Se(C, "Insert row below"), M;
4256
+ return S && Se(p, "Insert row below"), S;
4257
4257
  }
4258
4258
  return !1;
4259
4259
  }
@@ -4262,26 +4262,26 @@ const La = {
4262
4262
  if (t === "delete-selected-rows") {
4263
4263
  if (b.length === 0)
4264
4264
  return !1;
4265
- const C = pe(), M = wt(b);
4266
- return M && Se(C, b.length > 1 ? `Delete ${b.length} rows` : "Delete row"), M;
4265
+ const p = pe(), S = ft(b);
4266
+ return S && Se(p, b.length > 1 ? `Delete ${b.length} rows` : "Delete row"), S;
4267
4267
  }
4268
4268
  if (t === "insert-row-above") {
4269
4269
  if (!Ae())
4270
4270
  return !1;
4271
- const C = pe(), M = e.runtime.api.rows.insertDataBefore(
4271
+ const p = pe(), S = e.runtime.api.rows.insertDataBefore(
4272
4272
  n,
4273
4273
  [yn(c.data, Ve(r))]
4274
4274
  );
4275
- return M && Se(C, "Insert row above"), M;
4275
+ return S && Se(p, "Insert row above"), S;
4276
4276
  }
4277
4277
  if (t === "insert-row-below") {
4278
4278
  if (!Ae())
4279
4279
  return !1;
4280
- const C = pe(), M = e.runtime.api.rows.insertDataAfter(
4280
+ const p = pe(), S = e.runtime.api.rows.insertDataAfter(
4281
4281
  n,
4282
4282
  [yn(c.data, Ve(r))]
4283
4283
  );
4284
- return M && Se(C, "Insert row below"), M;
4284
+ return S && Se(p, "Insert row below"), S;
4285
4285
  }
4286
4286
  return !1;
4287
4287
  }
@@ -4296,21 +4296,21 @@ const La = {
4296
4296
  if (t === "paste-row") {
4297
4297
  if (!Ae())
4298
4298
  return !1;
4299
- const b = await wn();
4299
+ const b = await fn();
4300
4300
  if (!b || b.length === 0)
4301
4301
  return !1;
4302
- const m = pe(), C = ue.value?.operation === "cut" ? ue.value.sourceRowIds : [];
4302
+ const m = pe(), p = ue.value?.operation === "cut" ? ue.value.sourceRowIds : [];
4303
4303
  if (!dl(u + 1))
4304
4304
  return !1;
4305
4305
  const z = Math.max(0, u + 1), P = Ve(
4306
- C[0] ?? r
4307
- ) ?? Ve(r), X = C.length > 0 ? _e(C, z) : e.runtime.api.rows.insertDataAt(
4306
+ p[0] ?? r
4307
+ ) ?? Ve(r), X = p.length > 0 ? _e(p, z) : e.runtime.api.rows.insertDataAt(
4308
4308
  z,
4309
4309
  b.map((ne) => Rn(ne, P))
4310
4310
  );
4311
4311
  return X && ue.value?.operation === "cut" && (ue.value = null), X && Se(
4312
4312
  m,
4313
- C.length > 0 ? C.length > 1 ? `Move ${C.length} rows` : "Move row" : b.length > 1 ? `Paste ${b.length} rows` : "Paste row"
4313
+ p.length > 0 ? p.length > 1 ? `Move ${p.length} rows` : "Move row" : b.length > 1 ? `Paste ${b.length} rows` : "Paste row"
4314
4314
  ), X;
4315
4315
  }
4316
4316
  return !1;
@@ -4337,23 +4337,23 @@ const La = {
4337
4337
  if (t === "paste-row") {
4338
4338
  if (!Ae())
4339
4339
  return !1;
4340
- const b = await wn();
4340
+ const b = await fn();
4341
4341
  if (!b || b.length === 0)
4342
4342
  return !1;
4343
- const m = pe(), C = ue.value?.operation === "cut" ? ue.value.sourceRowIds : [], M = Ve(
4344
- C[0] ?? r
4345
- ) ?? Ve(r), z = C.length > 0 ? Et(C, r) : e.runtime.api.rows.insertDataAfter(
4343
+ const m = pe(), p = ue.value?.operation === "cut" ? ue.value.sourceRowIds : [], S = Ve(
4344
+ p[0] ?? r
4345
+ ) ?? Ve(r), z = p.length > 0 ? Et(p, r) : e.runtime.api.rows.insertDataAfter(
4346
4346
  n,
4347
- b.map((P) => Rn(P, M))
4347
+ b.map((P) => Rn(P, S))
4348
4348
  );
4349
4349
  return z && ue.value?.operation === "cut" && (ue.value = null), z && Se(
4350
4350
  m,
4351
- C.length > 0 ? C.length > 1 ? `Move ${C.length} rows` : "Move row" : b.length > 1 ? `Paste ${b.length} rows` : "Paste row"
4351
+ p.length > 0 ? p.length > 1 ? `Move ${p.length} rows` : "Move row" : b.length > 1 ? `Paste ${b.length} rows` : "Paste row"
4352
4352
  ), z;
4353
4353
  }
4354
4354
  return !1;
4355
4355
  };
4356
- const Fl = wr({
4356
+ const Fl = fr({
4357
4357
  resolveContextMenuState: () => ({
4358
4358
  zone: ge.value.zone,
4359
4359
  columnKey: ge.value.columnKey,
@@ -4361,7 +4361,7 @@ const La = {
4361
4361
  }),
4362
4362
  runHeaderContextAction: () => !1,
4363
4363
  runRowIndexContextAction: Vt,
4364
- copySelection: wl,
4364
+ copySelection: fl,
4365
4365
  pasteSelection: gl,
4366
4366
  cutSelection: vl,
4367
4367
  clearCurrentSelection: hl,
@@ -4378,12 +4378,12 @@ const La = {
4378
4378
  const m = c[n === "paste-values" ? "pasteValues" : n];
4379
4379
  if (m?.hidden)
4380
4380
  return null;
4381
- const C = r.has(t) || m?.disabled === !0;
4381
+ const p = r.has(t) || m?.disabled === !0;
4382
4382
  return {
4383
4383
  kind: "action",
4384
4384
  id: n,
4385
4385
  label: m?.label ?? bo[n],
4386
- disabled: C,
4386
+ disabled: p,
4387
4387
  title: m?.disabledReason ?? u[t],
4388
4388
  actionId: n
4389
4389
  };
@@ -4392,9 +4392,9 @@ const La = {
4392
4392
  return null;
4393
4393
  const u = n.length > 0 ? `${n}/${t.key}` : t.key, c = `custom:${u}`, b = t.disabledReason?.trim() || void 0;
4394
4394
  if (t.kind === "submenu") {
4395
- const m = t.items.flatMap((C) => {
4396
- const M = N(C, u, r);
4397
- return M ? [M] : [];
4395
+ const m = t.items.flatMap((p) => {
4396
+ const S = N(p, u, r);
4397
+ return S ? [S] : [];
4398
4398
  });
4399
4399
  return m.length === 0 ? null : {
4400
4400
  kind: "submenu",
@@ -4421,11 +4421,11 @@ const La = {
4421
4421
  }
4422
4422
  };
4423
4423
  }, _l = (t, n, r) => {
4424
- const u = /* @__PURE__ */ new Map(), c = (m, C) => {
4425
- if (!C)
4424
+ const u = /* @__PURE__ */ new Map(), c = (m, p) => {
4425
+ if (!p)
4426
4426
  return;
4427
- const M = u.get(m) ?? [];
4428
- M.push([C]), u.set(m, M);
4427
+ const S = u.get(m) ?? [];
4428
+ S.push([p]), u.set(m, S);
4429
4429
  };
4430
4430
  for (const m of n)
4431
4431
  c(m.placement ?? "end", N(m, "", r));
@@ -4443,7 +4443,7 @@ const La = {
4443
4443
  const n = ge.value.columnKey ?? "";
4444
4444
  if (!e.cellMenu.enabled || !n)
4445
4445
  return [];
4446
- const r = Pn(e.cellMenu, n), u = new Set(Jr(e.cellMenu, n)), c = Zr(e.cellMenu, n), b = Qr(e.cellMenu, n), m = ea(e.cellMenu, n), C = ta(e.cellMenu, n), M = [];
4446
+ const r = Pn(e.cellMenu, n), u = new Set(Jr(e.cellMenu, n)), c = Zr(e.cellMenu, n), b = Qr(e.cellMenu, n), m = ea(e.cellMenu, n), p = ta(e.cellMenu, n), S = [];
4447
4447
  for (const z of r) {
4448
4448
  const X = (La[z] ?? []).flatMap((ne) => {
4449
4449
  const be = kl(z, ne, u, c, m);
@@ -4452,7 +4452,7 @@ const La = {
4452
4452
  if (X.length !== 0) {
4453
4453
  if (z === "pasteSpecial") {
4454
4454
  const ne = u.has(z) || X.every((be) => be.disabled);
4455
- M.push({
4455
+ S.push({
4456
4456
  itemKey: z,
4457
4457
  entries: [{
4458
4458
  kind: "submenu",
@@ -4465,13 +4465,13 @@ const La = {
4465
4465
  });
4466
4466
  continue;
4467
4467
  }
4468
- M.push({
4468
+ S.push({
4469
4469
  itemKey: z,
4470
4470
  entries: X
4471
4471
  });
4472
4472
  }
4473
4473
  }
4474
- return _l(M, C, {
4474
+ return _l(S, p, {
4475
4475
  zone: t,
4476
4476
  columnKey: n,
4477
4477
  rowId: ge.value.rowId
@@ -4481,12 +4481,12 @@ const La = {
4481
4481
  if (!e.rowIndexMenu.enabled)
4482
4482
  return [];
4483
4483
  const n = Dt(ge.value.rowId ?? ""), r = na(e.rowIndexMenu), u = new Set(la(e.rowIndexMenu)), c = oa(e.rowIndexMenu), b = ra(e.rowIndexMenu), m = [];
4484
- for (const C of r) {
4485
- const z = ($a[C] ?? []).flatMap((P) => {
4484
+ for (const p of r) {
4485
+ const z = ($a[p] ?? []).flatMap((P) => {
4486
4486
  const ne = b[P === "insert-row-above" ? "insertAbove" : P === "insert-row-below" ? "insertBelow" : P === "copy-row" ? "copy" : P === "paste-row" ? "paste" : P === "delete-selected-rows" ? "deleteSelected" : "cut"];
4487
4487
  if (ne?.hidden)
4488
4488
  return [];
4489
- let Ie = u.has(C) || ne?.disabled === !0, le = ne?.disabledReason ?? c[C];
4489
+ let Ie = u.has(p) || ne?.disabled === !0, le = ne?.disabledReason ?? c[p];
4490
4490
  return n != null && P !== "delete-selected-rows" && P !== "insert-row-above" && P !== "insert-row-below" && P !== "paste-row" && (Ie = !0, le = le ?? "Placeholder rows must be materialized before this action is available"), (P === "insert-row-above" || P === "insert-row-below") && !Ae() && !Pt() && (Ie = !0, le = le ?? "Row insertion is not supported by the current row model"), P === "paste-row" && !Ae() && (Ie = !0, le = le ?? "Row insertion is not supported by the current row model"), P === "cut-row" && !Ue() && (Ie = !0, le = le ?? "Row deletion is not supported by the current row model"), P === "delete-selected-rows" && !Ue() && !Pt() && (Ie = !0, le = le ?? "Row deletion is not supported by the current row model"), P === "delete-selected-rows" && qe(
4491
4491
  De(ge.value.rowId ?? "")
4492
4492
  ).length === 0 && (Ie = !0, le = le ?? "No deletable rows are selected"), [{
@@ -4505,20 +4505,20 @@ const La = {
4505
4505
  return [];
4506
4506
  }), i = (t) => {
4507
4507
  Il.dispatchViewportContextMenu(t);
4508
- }, f = () => {
4508
+ }, w = () => {
4509
4509
  Fe.value?.querySelector(".grid-body-viewport")?.focus({ preventScroll: !0 });
4510
4510
  }, y = () => {
4511
4511
  at(() => {
4512
4512
  if (typeof window < "u") {
4513
4513
  window.requestAnimationFrame(() => {
4514
- f();
4514
+ w();
4515
4515
  });
4516
4516
  return;
4517
4517
  }
4518
- f();
4518
+ w();
4519
4519
  });
4520
4520
  }, x = async (t) => {
4521
- await Fl.runContextMenuAction(t) && (f(), He(), y());
4521
+ await Fl.runContextMenuAction(t) && (w(), He(), y());
4522
4522
  }, j = async (t) => {
4523
4523
  if (!t.disabled && t.kind !== "submenu") {
4524
4524
  if (t.actionId) {
@@ -4586,7 +4586,7 @@ const La = {
4586
4586
  onKeydown: (t) => {
4587
4587
  Sl(t, {
4588
4588
  onEscape: () => {
4589
- f();
4589
+ w();
4590
4590
  }
4591
4591
  });
4592
4592
  }
@@ -4932,16 +4932,16 @@ function yi(e) {
4932
4932
  if (!l && a)
4933
4933
  return a;
4934
4934
  if (l && a) {
4935
- let S = Ro.get(l);
4936
- S || (S = /* @__PURE__ */ new WeakMap(), Ro.set(l, S));
4937
- const p = S.get(a);
4938
- if (p)
4939
- return p;
4935
+ let I = Ro.get(l);
4936
+ I || (I = /* @__PURE__ */ new WeakMap(), Ro.set(l, I));
4937
+ const C = I.get(a);
4938
+ if (C)
4939
+ return C;
4940
4940
  const F = {
4941
4941
  ...l,
4942
4942
  ...a
4943
4943
  };
4944
- return S.set(
4944
+ return I.set(
4945
4945
  a,
4946
4946
  F
4947
4947
  ), F;
@@ -5079,10 +5079,10 @@ export {
5079
5079
  Si as d,
5080
5080
  aa as e,
5081
5081
  Ra as f,
5082
- wi as g,
5082
+ fi as g,
5083
5083
  gi as h,
5084
5084
  vi as i,
5085
- fi as j,
5085
+ wi as j,
5086
5086
  Ri as k,
5087
5087
  bi as l,
5088
5088
  Ci as r,