@affino/datagrid-vue-app 0.1.32 → 0.1.34

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.
@@ -105,7 +105,7 @@ const Tl = gn({
105
105
  surfaceId: "column-layout",
106
106
  rootElementRef: c,
107
107
  floating: b
108
- }), M = w(() => f.getTriggerProps({ role: "dialog" })), A = w(() => f.getContentProps({ role: "dialog", tabIndex: -1 })), $ = w(() => f.state.value.open), p = w(() => b.teleportTarget.value), v = ee(null), I = ee(null), F = ee(null);
108
+ }), M = w(() => f.getTriggerProps({ role: "dialog" })), A = w(() => f.getContentProps({ role: "dialog", tabIndex: -1 })), N = w(() => f.state.value.open), p = w(() => b.teleportTarget.value), v = ee(null), I = ee(null), O = ee(null);
109
109
  Y(
110
110
  () => a.isOpen,
111
111
  async (z) => {
@@ -135,14 +135,14 @@ const Tl = gn({
135
135
  return !E || E.height <= 0 ? "after" : z.clientY < E.top + E.height / 2 ? "before" : "after";
136
136
  }
137
137
  function q(z, P) {
138
- v.value = P, I.value = null, F.value = null, z.dataTransfer && (z.dataTransfer.effectAllowed = "move", z.dataTransfer.setData("text/plain", P));
138
+ v.value = P, I.value = null, O.value = null, z.dataTransfer && (z.dataTransfer.effectAllowed = "move", z.dataTransfer.setData("text/plain", P));
139
139
  }
140
140
  function me(z, P) {
141
141
  if (!v.value || v.value === P) {
142
- I.value = null, F.value = null;
142
+ I.value = null, O.value = null;
143
143
  return;
144
144
  }
145
- z.preventDefault(), z.dataTransfer && (z.dataTransfer.dropEffect = "move"), I.value = P, F.value = H(z);
145
+ z.preventDefault(), z.dataTransfer && (z.dataTransfer.dropEffect = "move"), I.value = P, O.value = H(z);
146
146
  }
147
147
  function Ie(z, P) {
148
148
  if (!v.value || v.value === P) {
@@ -156,7 +156,7 @@ const Tl = gn({
156
156
  }), Ee();
157
157
  }
158
158
  function Ee() {
159
- v.value = null, I.value = null, F.value = null;
159
+ v.value = null, I.value = null, O.value = null;
160
160
  }
161
161
  return (z, P) => (Ct(), dn(Fl, null, [
162
162
  Q("button", Ol({
@@ -167,7 +167,7 @@ const Tl = gn({
167
167
  style: s.value
168
168
  }, M.value), kl(z.buttonLabel), 17),
169
169
  (Ct(), co(mo, { to: p.value }, [
170
- $.value ? (Ct(), dn("section", Ol({
170
+ N.value ? (Ct(), dn("section", Ol({
171
171
  key: 0,
172
172
  ref: m(b).contentRef,
173
173
  class: "datagrid-column-layout",
@@ -194,13 +194,13 @@ const Tl = gn({
194
194
  key: E.key,
195
195
  class: wo(["datagrid-column-layout__row", {
196
196
  "datagrid-column-layout__row--drag-source": v.value === E.key,
197
- "datagrid-column-layout__row--drop-before": I.value === E.key && F.value === "before",
198
- "datagrid-column-layout__row--drop-after": I.value === E.key && F.value === "after"
197
+ "datagrid-column-layout__row--drop-before": I.value === E.key && O.value === "before",
198
+ "datagrid-column-layout__row--drop-after": I.value === E.key && O.value === "after"
199
199
  }]),
200
200
  draggable: !0,
201
- onDragstart: (re) => q(re, E.key),
202
- onDragover: (re) => me(re, E.key),
203
- onDrop: (re) => Ie(re, E.key),
201
+ onDragstart: (ae) => q(ae, E.key),
202
+ onDragover: (ae) => me(ae, E.key),
203
+ onDrop: (ae) => Ie(ae, E.key),
204
204
  onDragend: Ee
205
205
  }, [
206
206
  Q("label", or, [
@@ -209,7 +209,7 @@ const Tl = gn({
209
209
  name: `datagrid-column-layout-visible-${E.key}`,
210
210
  type: "checkbox",
211
211
  checked: E.visible,
212
- onChange: (re) => x(E.key, re.target.checked)
212
+ onChange: (ae) => x(E.key, ae.target.checked)
213
213
  }, null, 40, ar),
214
214
  Q("span", ir, kl(E.label), 1)
215
215
  ]),
@@ -218,13 +218,13 @@ const Tl = gn({
218
218
  type: "button",
219
219
  class: "datagrid-column-layout__icon-button",
220
220
  disabled: !E.canMoveUp,
221
- onClick: (re) => l("move-up", E.key)
221
+ onClick: (ae) => l("move-up", E.key)
222
222
  }, " ↑ ", 8, ur),
223
223
  Q("button", {
224
224
  type: "button",
225
225
  class: "datagrid-column-layout__icon-button",
226
226
  disabled: !E.canMoveDown,
227
- onClick: (re) => l("move-down", E.key)
227
+ onClick: (ae) => l("move-down", E.key)
228
228
  }, " ↓ ", 8, cr)
229
229
  ])
230
230
  ], 42, lr))), 128))
@@ -367,7 +367,7 @@ function vr(e) {
367
367
  });
368
368
  return Object.fromEntries(o);
369
369
  }
370
- function za(e) {
370
+ function _a(e) {
371
371
  return typeof e == "boolean" ? {
372
372
  enabled: e,
373
373
  trigger: il,
@@ -546,7 +546,7 @@ function pr(e) {
546
546
  });
547
547
  return Object.freeze(Object.fromEntries(o));
548
548
  }
549
- function _a(e) {
549
+ function Ha(e) {
550
550
  return typeof e == "boolean" ? {
551
551
  enabled: e,
552
552
  items: [...ue],
@@ -614,7 +614,7 @@ function Fr(e, o) {
614
614
  a.set(l.key, l);
615
615
  return Object.freeze(Array.from(a.values()));
616
616
  }
617
- function Ha(e) {
617
+ function Pa(e) {
618
618
  return typeof e == "boolean" ? {
619
619
  enabled: e,
620
620
  items: [...lt],
@@ -777,7 +777,7 @@ function Tr(e) {
777
777
  isCellEditable: m(e.isCellEditable),
778
778
  readCell: m(e.readCell),
779
779
  readDisplayCell: m(e.readDisplayCell)
780
- })), $ = w(() => ({
780
+ })), N = w(() => ({
781
781
  handleCellMouseDown: m(e.handleCellMouseDown),
782
782
  handleCellClick: m(e.handleCellClick),
783
783
  handleCellKeydown: m(e.handleCellKeydown)
@@ -793,7 +793,7 @@ function Tr(e) {
793
793
  selection: R.value,
794
794
  editing: M.value,
795
795
  cells: A.value,
796
- interaction: $.value
796
+ interaction: N.value
797
797
  })), v = Lo({
798
798
  mode: w(() => m(e.mode)),
799
799
  rowHeightMode: w(() => m(e.rowHeightMode)),
@@ -805,7 +805,7 @@ function Tr(e) {
805
805
  selection: R,
806
806
  editing: M,
807
807
  cells: A,
808
- interaction: $
808
+ interaction: N
809
809
  });
810
810
  return {
811
811
  tableStageProps: p,
@@ -842,7 +842,7 @@ function zr(e) {
842
842
  }
843
843
  if (A !== "toggle" || c.kind === "group" || c.rowId == null)
844
844
  return;
845
- const $ = e.captureHistorySnapshot(), p = e.ensureEditableRowAtIndex?.(R) ?? c;
845
+ const N = e.captureHistorySnapshot(), p = e.ensureEditableRowAtIndex?.(R) ?? c;
846
846
  p.kind === "group" || p.rowId == null || (e.runtime.api.rows.applyEdits([
847
847
  {
848
848
  rowId: p.rowId,
@@ -862,7 +862,7 @@ function zr(e) {
862
862
  startColumn: b,
863
863
  endColumn: b
864
864
  }
865
- }, $), e.syncViewport());
865
+ }, N), e.syncViewport());
866
866
  }
867
867
  };
868
868
  }
@@ -915,8 +915,8 @@ function _r(e) {
915
915
  }
916
916
  }
917
917
  } : null), l = (v) => v === ll, c = (v) => l(v.key), s = w(() => {
918
- const v = a.value, I = e.visibleColumns.value.filter((x) => x.pin === "left"), F = e.visibleColumns.value.filter((x) => x.pin !== "left" && x.pin !== "right"), C = e.visibleColumns.value.filter((x) => x.pin === "right");
919
- return v ? [v, ...I, ...F, ...C] : [...I, ...F, ...C];
918
+ const v = a.value, I = e.visibleColumns.value.filter((x) => x.pin === "left"), O = e.visibleColumns.value.filter((x) => x.pin !== "left" && x.pin !== "right"), C = e.visibleColumns.value.filter((x) => x.pin === "right");
919
+ return v ? [v, ...I, ...O, ...C] : [...I, ...O, ...C];
920
920
  }), f = w(() => s.value.filter((v) => v.pin !== "left" && v.pin !== "right")), b = (v) => v.width ?? Hl, R = (v) => {
921
921
  const I = s.value.find((x) => x.key === v), C = `${I ? b(I) : Hl}px`;
922
922
  return {
@@ -924,16 +924,16 @@ function _r(e) {
924
924
  minWidth: C,
925
925
  maxWidth: C
926
926
  };
927
- }, M = (v) => v.column.capabilities?.editable !== !1, A = (v, I, F) => c(F) ? v.kind !== "group" && v.rowId != null : v.kind === "group" || v.rowId == null || !M(F) ? !1 : e.isCellEditable ? e.isCellEditable({
927
+ }, M = (v) => v.column.capabilities?.editable !== !1, A = (v, I, O) => c(O) ? v.kind !== "group" && v.rowId != null : v.kind === "group" || v.rowId == null || !M(O) ? !1 : e.isCellEditable ? e.isCellEditable({
928
928
  row: v.data,
929
929
  rowId: v.rowId,
930
930
  rowIndex: I,
931
- column: F.column,
932
- columnKey: F.key
933
- }) : !0, $ = (v, I) => {
934
- const F = s.value[I];
935
- if (F?.key === v)
936
- return { column: F, columnIndex: I };
931
+ column: O.column,
932
+ columnKey: O.key
933
+ }) : !0, N = (v, I) => {
934
+ const O = s.value[I];
935
+ if (O?.key === v)
936
+ return { column: O, columnIndex: I };
937
937
  const C = s.value.findIndex((x) => x.key === v);
938
938
  return C < 0 ? null : {
939
939
  column: s.value[C],
@@ -948,8 +948,8 @@ function _r(e) {
948
948
  isRowSelectionColumnKey: l,
949
949
  isRowSelectionColumn: c,
950
950
  isCellEditable: A,
951
- isCellEditableByKey: (v, I, F, C) => {
952
- const x = $(F, C);
951
+ isCellEditableByKey: (v, I, O, C) => {
952
+ const x = N(O, C);
953
953
  return x ? A(v, I, x.column) : !1;
954
954
  },
955
955
  rowSelectionColumn: a
@@ -1019,7 +1019,7 @@ function Vr(e) {
1019
1019
  }), A = w(() => {
1020
1020
  const C = M.value;
1021
1021
  return C.length > 0 && C.every((x) => l.value.has(x));
1022
- }), $ = w(() => M.value.some((x) => l.value.has(x))), p = (C) => {
1022
+ }), N = w(() => M.value.some((x) => l.value.has(x))), p = (C) => {
1023
1023
  o(C) || C.rowId == null || !e.runtime.api.rowSelection.hasSupport() || e.runtime.api.rowSelection.setFocusedRow(C.rowId);
1024
1024
  };
1025
1025
  return {
@@ -1029,7 +1029,7 @@ function Vr(e) {
1029
1029
  readRowSelectionCell: b,
1030
1030
  readRowSelectionDisplayCell: R,
1031
1031
  areAllVisibleRowsSelected: A,
1032
- areSomeVisibleRowsSelected: $,
1032
+ areSomeVisibleRowsSelected: N,
1033
1033
  focusRow: p,
1034
1034
  toggleRowCheckboxSelected: (C) => {
1035
1035
  o(C) || C.kind === "group" || C.rowId == null || !e.runtime.api.rowSelection.hasSupport() || a((x) => {
@@ -1140,8 +1140,8 @@ function Gr(e) {
1140
1140
  columnIndex: p.startColumn
1141
1141
  } : e.selectionAnchorCell.value;
1142
1142
  }, c = () => o.value, s = () => a.value, f = () => e.mode.value === "base" && e.isFillDragging.value && !!e.fillPreviewRange.value, b = (p, v, I) => {
1143
- const F = e.viewportRowStart.value + v;
1144
- return F >= p.startRow && F <= p.endRow && I >= p.startColumn && I <= p.endColumn;
1143
+ const O = e.viewportRowStart.value + v;
1144
+ return O >= p.startRow && O <= p.endRow && I >= p.startColumn && I <= p.endColumn;
1145
1145
  }, R = (p, v) => {
1146
1146
  const I = l();
1147
1147
  return I ? I.rowIndex === e.viewportRowStart.value + p && I.columnIndex === v : e.isCommittedSelectionAnchorCell(p, v);
@@ -1152,7 +1152,7 @@ function Gr(e) {
1152
1152
  isSelectionAnchorCell: R,
1153
1153
  isCellSelected: (p, v) => {
1154
1154
  if (!f())
1155
- return s().some((F) => b(F, p, v));
1155
+ return s().some((O) => b(O, p, v));
1156
1156
  const I = c();
1157
1157
  return I ? b(I, p, v) : !1;
1158
1158
  },
@@ -1181,19 +1181,19 @@ function Gr(e) {
1181
1181
  return v === x.startColumn;
1182
1182
  }
1183
1183
  });
1184
- const F = c();
1185
- if (!F || !b(F, p, v))
1184
+ const O = c();
1185
+ if (!O || !b(O, p, v))
1186
1186
  return !1;
1187
1187
  const C = e.viewportRowStart.value + p;
1188
1188
  switch (I) {
1189
1189
  case "top":
1190
- return C === F.startRow;
1190
+ return C === O.startRow;
1191
1191
  case "right":
1192
- return v === F.endColumn;
1192
+ return v === O.endColumn;
1193
1193
  case "bottom":
1194
- return C === F.endRow;
1194
+ return C === O.endRow;
1195
1195
  case "left":
1196
- return v === F.startColumn;
1196
+ return v === O.startColumn;
1197
1197
  }
1198
1198
  }
1199
1199
  };
@@ -1215,11 +1215,11 @@ function Wr(e) {
1215
1215
  isCellEditable: e.isCellEditable
1216
1216
  }), {
1217
1217
  orderedVisibleColumns: A,
1218
- centerColumns: $,
1218
+ centerColumns: N,
1219
1219
  resolveColumnWidth: p,
1220
1220
  isRowSelectionColumnKey: v,
1221
1221
  isRowSelectionColumn: I,
1222
- isCellEditable: F,
1222
+ isCellEditable: O,
1223
1223
  isCellEditableByKey: C,
1224
1224
  rowSelectionColumn: x
1225
1225
  } = M, H = Ao({
@@ -1231,11 +1231,11 @@ function Wr(e) {
1231
1231
  resolveRowHeightOverridesSnapshot: () => e.runtime.api.view.getRowHeightOverridesSnapshot?.() ?? null,
1232
1232
  resolveLastRowHeightMutation: () => e.runtime.api.view.getLastRowHeightMutation?.() ?? null
1233
1233
  }), q = (h) => {
1234
- const O = Math.max(0, Math.trunc(h));
1235
- if (O <= 0)
1234
+ const F = Math.max(0, Math.trunc(h));
1235
+ if (F <= 0)
1236
1236
  return 0;
1237
1237
  const k = H.resolveTotalHeight();
1238
- return O <= s.value ? H.resolveRowOffset(O) : k + (O - s.value) * e.normalizedBaseRowHeight.value;
1238
+ return F <= s.value ? H.resolveRowOffset(F) : k + (F - s.value) * e.normalizedBaseRowHeight.value;
1239
1239
  }, me = w(() => {
1240
1240
  if (e.layoutMode.value !== "auto-height")
1241
1241
  return null;
@@ -1256,12 +1256,12 @@ function Wr(e) {
1256
1256
  const {
1257
1257
  headerViewportRef: P,
1258
1258
  bodyViewportRef: E,
1259
- displayRows: re,
1259
+ displayRows: ae,
1260
1260
  pinnedBottomRows: bn,
1261
1261
  renderedColumns: yn,
1262
- viewportRowStart: ae,
1262
+ viewportRowStart: ne,
1263
1263
  viewportColumnStart: Cn,
1264
- topSpacerHeight: ne,
1264
+ topSpacerHeight: le,
1265
1265
  bottomSpacerHeight: St,
1266
1266
  leftColumnSpacerWidth: Rn,
1267
1267
  rightColumnSpacerWidth: Sn,
@@ -1280,7 +1280,7 @@ function Wr(e) {
1280
1280
  rowVirtualizationEnabled: w(() => e.virtualization.value.rows),
1281
1281
  columnVirtualizationEnabled: w(() => e.virtualization.value.columns),
1282
1282
  totalRows: b,
1283
- visibleColumns: $,
1283
+ visibleColumns: N,
1284
1284
  sizingColumns: A,
1285
1285
  normalizedBaseRowHeight: e.normalizedBaseRowHeight,
1286
1286
  resolveColumnWidth: p,
@@ -1294,7 +1294,7 @@ function Wr(e) {
1294
1294
  resolveRowOffset: H.resolveRowOffset,
1295
1295
  resolveRowIndexAtOffset: H.resolveRowIndexAtOffset,
1296
1296
  resolveTotalRowHeight: H.resolveTotalHeight
1297
- }), Fn = (h) => xn(h), le = f.visualRuntime, L = le.resolveBodyRowIndexById, {
1297
+ }), Fn = (h) => xn(h), oe = f.visualRuntime, $ = oe.resolveBodyRowIndexById, {
1298
1298
  rowStyle: Ge,
1299
1299
  isRowAutosizeProbe: Ke,
1300
1300
  measureVisibleRowHeights: it,
@@ -1305,20 +1305,20 @@ function Wr(e) {
1305
1305
  mode: e.mode,
1306
1306
  rowHeightMode: e.rowHeightMode,
1307
1307
  normalizedBaseRowHeight: e.normalizedBaseRowHeight,
1308
- viewportRowStart: ae,
1308
+ viewportRowStart: ne,
1309
1309
  bodyViewportRef: E,
1310
1310
  runtime: e.runtime,
1311
1311
  minRowHeight: $r,
1312
1312
  syncViewport: () => ie()
1313
1313
  }), Te = ko({
1314
1314
  mode: e.mode,
1315
- runtime: le,
1315
+ runtime: oe,
1316
1316
  totalRows: b,
1317
1317
  visibleColumns: A,
1318
- viewportRowStart: ae,
1318
+ viewportRowStart: ne,
1319
1319
  selectionSnapshot: e.selectionSnapshot,
1320
1320
  selectionAnchor: e.selectionAnchor,
1321
- isEditingCell: (h, O) => z(h, O)
1321
+ isEditingCell: (h, F) => z(h, F)
1322
1322
  }), {
1323
1323
  normalizeRowId: kn,
1324
1324
  normalizeCellCoord: xt,
@@ -1330,11 +1330,11 @@ function Wr(e) {
1330
1330
  setCellSelection: ct,
1331
1331
  clearCellSelection: dt,
1332
1332
  isCellSelected: ce
1333
- } = Te, At = Te.isSelectionAnchorCell ?? (() => !1), Ft = Te.shouldHighlightSelectedCell ?? ((h, O) => ce(h, O)), Ot = Te.isCellOnSelectionEdge ?? (() => !1), ze = w(() => {
1333
+ } = Te, At = Te.isSelectionAnchorCell ?? (() => !1), Ft = Te.shouldHighlightSelectedCell ?? ((h, F) => ce(h, F)), Ot = Te.isCellOnSelectionEdge ?? (() => !1), ze = w(() => {
1334
1334
  const h = e.selectionSnapshot.value;
1335
1335
  if (!h || h.ranges.length === 0)
1336
1336
  return null;
1337
- const O = h.activeRangeIndex ?? 0, k = h.ranges[O]?.anchor ?? h.ranges[0]?.anchor ?? null;
1337
+ const F = h.activeRangeIndex ?? 0, k = h.ranges[F]?.anchor ?? h.ranges[0]?.anchor ?? null;
1338
1338
  return !k || typeof k.rowIndex != "number" || typeof k.colIndex != "number" || !Number.isFinite(k.rowIndex) || !Number.isFinite(k.colIndex) ? null : {
1339
1339
  rowIndex: Math.trunc(k.rowIndex),
1340
1340
  columnIndex: Math.trunc(k.colIndex)
@@ -1344,12 +1344,12 @@ function Wr(e) {
1344
1344
  isPlaceholderRow: f.isPlaceholderRow,
1345
1345
  rowSelectionColumn: x,
1346
1346
  orderedVisibleColumns: A,
1347
- displayRows: re,
1347
+ displayRows: ae,
1348
1348
  rowSelectionSnapshot: l,
1349
1349
  applyRowSelectionMutation: (h) => {
1350
1350
  e.runtime.api.rowSelection.hasSupport() && (h(e.runtime.api.rowSelection), o(), a());
1351
1351
  },
1352
- viewportRowStart: ae,
1352
+ viewportRowStart: ne,
1353
1353
  selectionAnchorCell: ze,
1354
1354
  applySelectionRange: xe
1355
1355
  }), {
@@ -1387,11 +1387,11 @@ function Wr(e) {
1387
1387
  } = Do({
1388
1388
  mode: e.mode,
1389
1389
  runtime: e.runtime,
1390
- viewportRowStart: ae,
1390
+ viewportRowStart: ne,
1391
1391
  firstColumnKey: e.firstColumnKey
1392
1392
  }), mt = zr({
1393
1393
  runtime: e.runtime,
1394
- viewportRowStart: ae,
1394
+ viewportRowStart: ne,
1395
1395
  ensureEditableRowAtIndex: (h) => f.ensureMaterializedRowAt(h, "toggle"),
1396
1396
  isRowSelectionColumnKey: v,
1397
1397
  isRowSelectionColumn: I,
@@ -1407,16 +1407,16 @@ function Wr(e) {
1407
1407
  syncViewport: () => ie()
1408
1408
  }), {
1409
1409
  readStageCell: Ne
1410
- } = mt, We = (h, O, k) => f.isPlaceholderRow(h) ? f.isPlaceholderCellEditable(O) : k(), de = (h, O, k, N) => We(
1410
+ } = mt, We = (h, F, k) => f.isPlaceholderRow(h) ? f.isPlaceholderCellEditable(F) : k(), de = (h, F, k, G) => We(
1411
1411
  h,
1412
- A.value[N],
1413
- () => C(h, O, k, N)
1412
+ A.value[G],
1413
+ () => C(h, F, k, G)
1414
1414
  ), te = Eo({
1415
1415
  mode: e.mode,
1416
- runtime: le,
1416
+ runtime: oe,
1417
1417
  totalRows: b,
1418
1418
  visibleColumns: A,
1419
- viewportRowStart: ae,
1419
+ viewportRowStart: ne,
1420
1420
  resolveSelectionRange: $e,
1421
1421
  resolveSelectionRanges: st,
1422
1422
  resolveCurrentCellCoord: Mt,
@@ -1430,8 +1430,8 @@ function Wr(e) {
1430
1430
  label: "Cell edit"
1431
1431
  }, h);
1432
1432
  },
1433
- readCell: (h, O) => Ne(h, O),
1434
- readClipboardCell: e.readClipboardCell ? (h, O) => e.readClipboardCell?.(h, O) ?? "" : void 0,
1433
+ readCell: (h, F) => Ne(h, F),
1434
+ readClipboardCell: e.readClipboardCell ? (h, F) => e.readClipboardCell?.(h, F) ?? "" : void 0,
1435
1435
  isCellEditable: de,
1436
1436
  syncViewport: () => ie(),
1437
1437
  applyClipboardEdits: e.applyClipboardEdits,
@@ -1479,14 +1479,14 @@ function Wr(e) {
1479
1479
  bodyViewportRef: E,
1480
1480
  visibleColumns: A,
1481
1481
  totalRows: b,
1482
- runtime: le,
1483
- readCell: (h, O) => Ne(h, O),
1484
- resolveRowIndexById: L,
1482
+ runtime: oe,
1483
+ readCell: (h, F) => Ne(h, F),
1484
+ resolveRowIndexById: $,
1485
1485
  applyCellSelection: (h) => {
1486
1486
  ut(h, !1);
1487
1487
  },
1488
- ensureActiveCellVisible: (h, O) => {
1489
- Gt(h, O);
1488
+ ensureActiveCellVisible: (h, F) => {
1489
+ Gt(h, F);
1490
1490
  },
1491
1491
  isCellEditable: de,
1492
1492
  captureRowsSnapshot: Me,
@@ -1500,19 +1500,19 @@ function Wr(e) {
1500
1500
  ensureEditableRowAtIndex: (h) => f.ensureMaterializedRowAt(h, "edit")
1501
1501
  });
1502
1502
  z = Ye;
1503
- const Fe = w(() => Bn.value), Je = (h, O) => {
1504
- const k = Ue(h), N = Ue(O);
1505
- if (!k || !N || qe(k, N))
1503
+ const Fe = w(() => Bn.value), Je = (h, F) => {
1504
+ const k = Ue(h), G = Ue(F);
1505
+ if (!k || !G || qe(k, G))
1506
1506
  return !1;
1507
- const X = wt(k), ye = k.endRow - k.startRow + 1, G = k.endColumn - k.startColumn + 1, oe = /* @__PURE__ */ new Map();
1507
+ const X = wt(k), ye = k.endRow - k.startRow + 1, K = k.endColumn - k.startColumn + 1, re = /* @__PURE__ */ new Map();
1508
1508
  for (let j = 0; j < ye; j += 1) {
1509
1509
  let B = !1;
1510
- for (let J = 0; J < G; J += 1)
1510
+ for (let J = 0; J < K; J += 1)
1511
1511
  if ((X[j]?.[J] ?? "").length > 0) {
1512
1512
  B = !0;
1513
1513
  break;
1514
1514
  }
1515
- oe.set(N.startRow + j, B);
1515
+ re.set(G.startRow + j, B);
1516
1516
  }
1517
1517
  const on = Me(), nt = /* @__PURE__ */ new Map();
1518
1518
  let we = 0, De = 0;
@@ -1524,21 +1524,21 @@ function Wr(e) {
1524
1524
  return nt.set(j, J), J;
1525
1525
  };
1526
1526
  for (let j = k.startRow; j <= k.endRow; j += 1) {
1527
- const B = le.getBodyRowAtIndex(j);
1527
+ const B = oe.getBodyRowAtIndex(j);
1528
1528
  if (!(!B || B.kind === "group" || B.rowId == null || f.isPlaceholderRow(B)))
1529
1529
  for (let J = k.startColumn; J <= k.endColumn; J += 1) {
1530
1530
  const Z = A.value[J]?.key;
1531
1531
  !Z || v(Z) || (rn(B.rowId)[Z] = "");
1532
1532
  }
1533
1533
  }
1534
- for (let j = N.startRow; j <= N.endRow; j += 1) {
1535
- let B = le.getBodyRowAtIndex(j);
1536
- f.isPlaceholderRow(B) && oe.get(j) === !0 && (B = f.ensureMaterializedRowAt(j, "paste"));
1537
- for (let J = N.startColumn; J <= N.endColumn; J += 1) {
1534
+ for (let j = G.startRow; j <= G.endRow; j += 1) {
1535
+ let B = oe.getBodyRowAtIndex(j);
1536
+ f.isPlaceholderRow(B) && re.get(j) === !0 && (B = f.ensureMaterializedRowAt(j, "paste"));
1537
+ for (let J = G.startColumn; J <= G.endColumn; J += 1) {
1538
1538
  const Z = A.value[J]?.key;
1539
1539
  if (!Z || v(Z))
1540
1540
  continue;
1541
- const an = j - N.startRow, el = J - N.startColumn, Ve = X[an]?.[el] ?? "";
1541
+ const an = j - G.startRow, el = J - G.startColumn, Ve = X[an]?.[el] ?? "";
1542
1542
  if (!B || B.kind === "group" || B.rowId == null || f.isPlaceholderRow(B)) {
1543
1543
  we += 1;
1544
1544
  continue;
@@ -1549,19 +1549,19 @@ function Wr(e) {
1549
1549
  return De <= 0 || nt.size === 0 ? !1 : (e.runtime.api.rows.applyEdits(Array.from(nt.entries()).map(([j, B]) => ({
1550
1550
  rowId: j,
1551
1551
  data: B
1552
- }))), xe(N), Ce({
1552
+ }))), xe(G), Ce({
1553
1553
  intent: "move",
1554
1554
  label: we > 0 ? `Move ${De} cells (blocked ${we})` : `Move ${De} cells`,
1555
- affectedRange: N
1555
+ affectedRange: G
1556
1556
  }, on), ie(), !0);
1557
1557
  }, fe = {
1558
1558
  mode: e.mode,
1559
1559
  enableFillHandle: e.enableFillHandle,
1560
1560
  enableRangeMove: e.enableRangeMove,
1561
- runtime: le,
1561
+ runtime: oe,
1562
1562
  totalRows: b,
1563
1563
  visibleColumns: A,
1564
- viewportRowStart: ae,
1564
+ viewportRowStart: ne,
1565
1565
  selectionSnapshot: e.selectionSnapshot,
1566
1566
  bodyViewportRef: E,
1567
1567
  indexColumnWidth: R.value,
@@ -1575,15 +1575,15 @@ function Wr(e) {
1575
1575
  applyCellSelectionByCoord: ut,
1576
1576
  setCellSelection: ct,
1577
1577
  clearCellSelection: dt,
1578
- readCell: (h, O) => Ne(h, O),
1578
+ readCell: (h, F) => Ne(h, F),
1579
1579
  isCellEditable: de,
1580
1580
  cloneRowData: e.cloneRowData,
1581
- resolveRowIndexById: L,
1581
+ resolveRowIndexById: $,
1582
1582
  ensureEditableRowAtIndex: (h) => f.ensureMaterializedRowAt(h, "toggle"),
1583
1583
  captureRowsSnapshot: Me,
1584
1584
  captureRowsSnapshotForRowIds: _e,
1585
- recordIntentTransaction: (h, O) => {
1586
- Ce(h, O);
1585
+ recordIntentTransaction: (h, F) => {
1586
+ Ce(h, F);
1587
1587
  },
1588
1588
  clearPendingClipboardOperation: Vt,
1589
1589
  clearExternalPendingClipboardOperation: e.clearExternalPendingClipboardOperation,
@@ -1632,11 +1632,11 @@ function Wr(e) {
1632
1632
  clearSelectedCells: qn,
1633
1633
  dispose: Jt
1634
1634
  } = Oe, Zt = w(() => Ze.value ? qt.value : null), Qt = jr({
1635
- runtime: le,
1635
+ runtime: oe,
1636
1636
  selectionSnapshot: e.selectionSnapshot,
1637
1637
  totalRows: b,
1638
1638
  orderedVisibleColumns: A,
1639
- viewportRowStart: ae,
1639
+ viewportRowStart: ne,
1640
1640
  applySelectionRange: xe,
1641
1641
  handleCellKeydown: ht
1642
1642
  }), {
@@ -1649,8 +1649,8 @@ function Wr(e) {
1649
1649
  } = Ho({
1650
1650
  visibleColumns: A,
1651
1651
  rows: e.rows,
1652
- persistColumnWidth: (h, O) => {
1653
- e.runtime.api.columns.setWidth(h, O);
1652
+ persistColumnWidth: (h, F) => {
1653
+ e.runtime.api.columns.setWidth(h, F);
1654
1654
  },
1655
1655
  defaultColumnWidth: ol,
1656
1656
  minColumnWidth: Lr,
@@ -1666,13 +1666,13 @@ function Wr(e) {
1666
1666
  stopDragSelection: () => {
1667
1667
  Yt();
1668
1668
  },
1669
- readCellText: (h, O) => {
1670
- const k = h[O];
1669
+ readCellText: (h, F) => {
1670
+ const k = h[F];
1671
1671
  return k == null ? "" : String(k);
1672
1672
  }
1673
1673
  }), Re = Gr({
1674
1674
  mode: e.mode,
1675
- viewportRowStart: ae,
1675
+ viewportRowStart: ne,
1676
1676
  selectionAnchorCell: ze,
1677
1677
  fillPreviewRange: Nt,
1678
1678
  isFillDragging: Qe,
@@ -1713,7 +1713,7 @@ function Wr(e) {
1713
1713
  chromeSignature: e.chromeSignature,
1714
1714
  visibleColumns: A,
1715
1715
  renderedColumns: yn,
1716
- displayRows: re,
1716
+ displayRows: ae,
1717
1717
  pinnedBottomRows: bn,
1718
1718
  sourceRows: e.sourceRows ?? e.rows,
1719
1719
  showRowIndex: c,
@@ -1725,9 +1725,9 @@ function Wr(e) {
1725
1725
  indexColumnStyle: zn,
1726
1726
  stageStyle: Ie,
1727
1727
  bodyShellStyle: Ee,
1728
- topSpacerHeight: ne,
1728
+ topSpacerHeight: le,
1729
1729
  bottomSpacerHeight: St,
1730
- viewportRowStart: ae,
1730
+ viewportRowStart: ne,
1731
1731
  columnWindowStart: Cn,
1732
1732
  leftColumnSpacerWidth: Rn,
1733
1733
  rightColumnSpacerWidth: Sn,
@@ -1805,10 +1805,10 @@ function Wr(e) {
1805
1805
  isCellInPendingClipboardRange: He,
1806
1806
  isCellOnPendingClipboardEdge: Pn,
1807
1807
  isEditingCell: Ye,
1808
- isCellEditable: (h, O, k, N) => We(
1808
+ isCellEditable: (h, F, k, G) => We(
1809
1809
  h,
1810
1810
  k,
1811
- () => F(h, ae.value + O, k)
1811
+ () => O(h, ne.value + F, k)
1812
1812
  ),
1813
1813
  handleCellMouseDown: Xt,
1814
1814
  handleCellClick: T.cellIo.handleCellClick,
@@ -1826,11 +1826,17 @@ function Wr(e) {
1826
1826
  cancelInlineEdit: gt,
1827
1827
  readCell: T.cellIo.readStageCell,
1828
1828
  readDisplayCell: T.cellIo.readStageDisplayCell,
1829
- cellClass: e.cellClass ? (h, O, k, N) => e.cellClass?.(
1829
+ cellClass: e.cellClass ? (h, F, k, G) => e.cellClass?.(
1830
1830
  h,
1831
- ae.value + O,
1831
+ ne.value + F,
1832
1832
  k,
1833
- N
1833
+ G
1834
+ ) : void 0,
1835
+ cellStyle: e.cellStyle ? (h, F, k, G) => e.cellStyle?.(
1836
+ h,
1837
+ ne.value + F,
1838
+ k,
1839
+ G
1834
1840
  ) : void 0
1835
1841
  });
1836
1842
  return Po({
@@ -1980,7 +1986,30 @@ function Zr(e) {
1980
1986
  component: vo(ho(e.component))
1981
1987
  };
1982
1988
  }
1983
- function Qr(e) {
1989
+ function Qr(e, o) {
1990
+ if (!e)
1991
+ return o ?? null;
1992
+ if (!o)
1993
+ return e;
1994
+ const a = {}, l = (c) => {
1995
+ if (typeof c == "string") {
1996
+ for (const s of c.split(/\s+/).filter(Boolean))
1997
+ a[s] = !0;
1998
+ return;
1999
+ }
2000
+ if (Array.isArray(c)) {
2001
+ for (const s of c)
2002
+ if (typeof s == "string")
2003
+ for (const f of s.split(/\s+/).filter(Boolean))
2004
+ a[f] = !0;
2005
+ return;
2006
+ }
2007
+ for (const [s, f] of Object.entries(c))
2008
+ a[s] = f === !0 || a[s] === !0;
2009
+ };
2010
+ return l(e), l(o), Object.keys(a).length > 0 ? a : null;
2011
+ }
2012
+ function ea(e) {
1984
2013
  return Number.isFinite(e) ? Math.max(24, Math.trunc(e)) : 31;
1985
2014
  }
1986
2015
  function Bl(e) {
@@ -2005,7 +2034,7 @@ function ot(e) {
2005
2034
  function dl(e) {
2006
2035
  return e.startsWith("string:") ? `string:${e.slice(7).toLowerCase()}` : e;
2007
2036
  }
2008
- function ea(e) {
2037
+ function ta(e) {
2009
2038
  const o = {};
2010
2039
  for (const [c, s] of Object.entries(e.columnFilters ?? {})) {
2011
2040
  if (s.kind === "valueSet") {
@@ -2035,7 +2064,7 @@ function ea(e) {
2035
2064
  advancedExpression: l
2036
2065
  };
2037
2066
  }
2038
- function ta(e) {
2067
+ function na(e) {
2039
2068
  const o = {}, a = e?.columnFilters ?? {};
2040
2069
  for (const [l, c] of Object.entries(a))
2041
2070
  c?.kind === "predicate" && typeof c.value == "string" && (o[l] = c.value);
@@ -2080,7 +2109,7 @@ function Ql(e) {
2080
2109
  const o = Object.getPrototypeOf(e);
2081
2110
  return o === Object.prototype || o === null;
2082
2111
  }
2083
- function na(e) {
2112
+ function la(e) {
2084
2113
  const o = /* @__PURE__ */ new WeakSet();
2085
2114
  try {
2086
2115
  return JSON.stringify(e, (a, l) => {
@@ -2101,7 +2130,7 @@ function Rt(e) {
2101
2130
  basis: e.basis === "source" ? "source" : "filtered"
2102
2131
  } : null;
2103
2132
  }
2104
- function la(e) {
2133
+ function oa(e) {
2105
2134
  return e ? {
2106
2135
  fields: [...e.fields],
2107
2136
  expandedByDefault: e.expandedByDefault
@@ -2151,7 +2180,7 @@ function Be(e) {
2151
2180
  return e;
2152
2181
  }
2153
2182
  }
2154
- function oa(e) {
2183
+ function ra(e) {
2155
2184
  const o = String(e ?? "");
2156
2185
  if (o === "null")
2157
2186
  return "(Blanks)";
@@ -2161,10 +2190,10 @@ function oa(e) {
2161
2190
  const l = o.slice(0, a), c = o.slice(a + 1);
2162
2191
  return l === "string" || l === "number" || l === "boolean" || l === "bigint" || l === "date" || l === "repr" || l === "json" ? c : o;
2163
2192
  }
2164
- function ra(e, o) {
2165
- return o.kind === "valueSet" ? o.tokens.length === 1 ? `${e}: ${oa(o.tokens[0] ?? "")}` : `${e}: ${o.tokens.length} values` : o.operator === "between" ? `${e} between ${pe(o.value)} and ${pe(o.value2)}` : o.operator === "isEmpty" || o.operator === "notEmpty" || o.operator === "isNull" || o.operator === "notNull" ? `${e} ${Be(o.operator)}` : `${e} ${Be(o.operator)} ${pe(o.value)}`;
2166
- }
2167
2193
  function aa(e, o) {
2194
+ return o.kind === "valueSet" ? o.tokens.length === 1 ? `${e}: ${ra(o.tokens[0] ?? "")}` : `${e}: ${o.tokens.length} values` : o.operator === "between" ? `${e} between ${pe(o.value)} and ${pe(o.value2)}` : o.operator === "isEmpty" || o.operator === "notEmpty" || o.operator === "isNull" || o.operator === "notNull" ? `${e} ${Be(o.operator)}` : `${e} ${Be(o.operator)} ${pe(o.value)}`;
2195
+ }
2196
+ function ia(e, o) {
2168
2197
  const a = o.clauses.map((l, c) => {
2169
2198
  const s = c === 0 ? "" : `${String(l.join ?? "and").toUpperCase()} `;
2170
2199
  return l.operator === "between" ? `${s}${Be(l.operator)} ${pe(l.value)} and ${pe(l.value2)}` : l.operator === "isEmpty" || l.operator === "notEmpty" || l.operator === "isNull" || l.operator === "notNull" ? `${s}${Be(l.operator)}` : `${s}${Be(l.operator)} ${pe(l.value)}`;
@@ -2178,7 +2207,7 @@ function fl(e, o) {
2178
2207
  }
2179
2208
  return e.kind === "not" ? `NOT (${fl(e.child, o)})` : e.children.map((a) => fl(a, o)).filter((a) => a.length > 0).join(` ${e.operator.toUpperCase()} `);
2180
2209
  }
2181
- const ia = [
2210
+ const sa = [
2182
2211
  "sum",
2183
2212
  "avg",
2184
2213
  "min",
@@ -2187,27 +2216,27 @@ const ia = [
2187
2216
  "countNonNull",
2188
2217
  "first",
2189
2218
  "last"
2190
- ], sa = [
2219
+ ], ua = [
2191
2220
  "min",
2192
2221
  "max",
2193
2222
  "count",
2194
2223
  "countNonNull",
2195
2224
  "first",
2196
2225
  "last"
2197
- ], ua = [
2226
+ ], ca = [
2198
2227
  "count",
2199
2228
  "countNonNull",
2200
2229
  "first",
2201
2230
  "last"
2202
2231
  ];
2203
- function ca(e) {
2204
- return e === "number" || e === "currency" || e === "percent" ? ia : e === "date" || e === "datetime" ? sa : ua;
2232
+ function da(e) {
2233
+ return e === "number" || e === "currency" || e === "percent" ? sa : e === "date" || e === "datetime" ? ua : ca;
2205
2234
  }
2206
- const da = {
2235
+ const ma = {
2207
2236
  clipboard: ["cut", "copy", "paste"],
2208
2237
  pasteSpecial: ["paste-values"],
2209
2238
  edit: ["clear"]
2210
- }, ma = {
2239
+ }, fa = {
2211
2240
  insert: ["insert-row-above", "insert-row-below"],
2212
2241
  clipboard: ["cut-row", "copy-row", "paste-row"],
2213
2242
  selection: ["delete-selected-rows"]
@@ -2228,12 +2257,12 @@ const da = {
2228
2257
  "sort-clear": "Clear sort",
2229
2258
  filter: "Filter column",
2230
2259
  "auto-size": "Auto size column"
2231
- }, fa = {
2260
+ }, wa = {
2232
2261
  "insert-row-above": "Insert / Ctrl/Cmd+I",
2233
2262
  "copy-row": "Ctrl/Cmd+C",
2234
2263
  "paste-row": "Ctrl/Cmd+V",
2235
2264
  "cut-row": "Ctrl/Cmd+X"
2236
- }, Pa = gn({
2265
+ }, Va = gn({
2237
2266
  name: "DataGridDefaultRenderer",
2238
2267
  props: {
2239
2268
  mode: {
@@ -2382,6 +2411,14 @@ const da = {
2382
2411
  type: Function,
2383
2412
  default: void 0
2384
2413
  },
2414
+ cellClass: {
2415
+ type: Function,
2416
+ default: void 0
2417
+ },
2418
+ cellStyle: {
2419
+ type: Function,
2420
+ default: void 0
2421
+ },
2385
2422
  showRowIndex: {
2386
2423
  type: Boolean,
2387
2424
  default: !0
@@ -2410,6 +2447,10 @@ const da = {
2410
2447
  type: Array,
2411
2448
  default: () => []
2412
2449
  },
2450
+ customOverlays: {
2451
+ type: Array,
2452
+ default: void 0
2453
+ },
2413
2454
  history: {
2414
2455
  type: Object,
2415
2456
  required: !0
@@ -2462,7 +2503,7 @@ const da = {
2462
2503
  e.gridLines.body,
2463
2504
  e.gridLines.header,
2464
2505
  e.gridLines.pinnedSeparators ? "sep:1" : "sep:0"
2465
- ].join("|")), l = ee(0), c = ee(jl(e.sortModel)), s = ee(ot(e.filterModel)), f = w(() => ta(s.value));
2506
+ ].join("|")), l = ee(0), c = ee(jl(e.sortModel)), s = ee(ot(e.filterModel)), f = w(() => na(s.value));
2466
2507
  let b = "";
2467
2508
  const R = () => {
2468
2509
  const t = e.runtimeRowModel.getSnapshot();
@@ -2494,7 +2535,7 @@ const da = {
2494
2535
  },
2495
2536
  { deep: !0 }
2496
2537
  );
2497
- const A = w(() => e.mode), $ = w(() => e.rows), p = w(() => (l.value, e.runtime.api.rows.getSnapshot().rowCount)), v = w(() => e.runtime.columnSnapshot.value.visibleColumns), I = w(() => e.runtime.columnSnapshot.value.columns ?? []), F = w(() => v.value.filter((t) => t.visible !== !1).map((t) => ({
2538
+ const A = w(() => e.mode), N = w(() => e.rows), p = w(() => (l.value, e.runtime.api.rows.getSnapshot().rowCount)), v = w(() => e.runtime.columnSnapshot.value.visibleColumns), I = w(() => e.runtime.columnSnapshot.value.columns ?? []), O = w(() => v.value.filter((t) => t.visible !== !1).map((t) => ({
2498
2539
  key: t.key,
2499
2540
  label: t.column.label ?? t.key
2500
2541
  }))), C = w(() => I.value.map((t) => ({
@@ -2504,8 +2545,8 @@ const da = {
2504
2545
  }))), x = w(() => I.value.filter((t) => t.column.capabilities?.aggregatable === !0).map((t) => ({
2505
2546
  key: t.key,
2506
2547
  label: t.column.label ?? t.key,
2507
- allowedOps: ca(t.column.dataType)
2508
- }))), H = ee(e.rowHeightMode), q = w(() => Qr(e.baseRowHeight)), me = w(() => v.value[0]?.key ?? "name"), Ie = w(() => {
2548
+ allowedOps: da(t.column.dataType)
2549
+ }))), H = ee(e.rowHeightMode), q = w(() => ea(e.baseRowHeight)), me = w(() => v.value[0]?.key ?? "name"), Ie = w(() => {
2509
2550
  const t = /* @__PURE__ */ new Map();
2510
2551
  for (const n of I.value)
2511
2552
  t.set(n.key, n.column.label ?? n.key);
@@ -2515,10 +2556,10 @@ const da = {
2515
2556
  columnLayoutPanelItems: z,
2516
2557
  openColumnLayoutPanel: P,
2517
2558
  cancelColumnLayoutPanel: E,
2518
- applyColumnLayoutPanel: re,
2559
+ applyColumnLayoutPanel: ae,
2519
2560
  moveColumnUp: bn,
2520
2561
  moveColumnDown: yn,
2521
- moveColumnToPosition: ae,
2562
+ moveColumnToPosition: ne,
2522
2563
  updateColumnVisibility: Cn
2523
2564
  } = Bo({
2524
2565
  resolveColumns: () => C.value,
@@ -2527,47 +2568,47 @@ const da = {
2527
2568
  for (const [n, r] of Object.entries(t.visibilityByKey))
2528
2569
  e.runtime.api.columns.setVisibility(n, r);
2529
2570
  }
2530
- }), ne = al(null), St = w(() => ne.value?.isAdvancedFilterPanelOpen.value ?? !1), Rn = w(() => ne.value?.advancedFilterDraftClauses.value ?? []), Sn = w(() => ne.value?.appliedAdvancedFilterExpression.value ?? null), je = async () => {
2531
- if (ne.value)
2532
- return ne.value;
2571
+ }), le = al(null), St = w(() => le.value?.isAdvancedFilterPanelOpen.value ?? !1), Rn = w(() => le.value?.advancedFilterDraftClauses.value ?? []), Sn = w(() => le.value?.appliedAdvancedFilterExpression.value ?? null), je = async () => {
2572
+ if (le.value)
2573
+ return le.value;
2533
2574
  const { useDataGridAppAdvancedFilterBuilder: t } = await import("@affino/datagrid-vue/app"), n = t({
2534
- resolveColumns: () => F.value
2575
+ resolveColumns: () => O.value
2535
2576
  });
2536
- return n.hydrateAdvancedFilterClauses(Pl(s.value)), ne.value = n, n;
2577
+ return n.hydrateAdvancedFilterClauses(Pl(s.value)), le.value = n, n;
2537
2578
  }, pn = (t) => {
2538
- ne.value?.hydrateAdvancedFilterClauses(t);
2579
+ le.value?.hydrateAdvancedFilterClauses(t);
2539
2580
  }, In = async () => {
2540
2581
  (await je()).openAdvancedFilterPanel();
2541
2582
  }, xn = async () => {
2542
- const t = ne.value;
2583
+ const t = le.value;
2543
2584
  if (t) {
2544
2585
  t.addAdvancedFilterClause();
2545
2586
  return;
2546
2587
  }
2547
2588
  (await je()).addAdvancedFilterClause();
2548
2589
  }, pt = async (t) => {
2549
- const n = ne.value;
2590
+ const n = le.value;
2550
2591
  if (n) {
2551
2592
  n.removeAdvancedFilterClause(t);
2552
2593
  return;
2553
2594
  }
2554
2595
  (await je()).removeAdvancedFilterClause(t);
2555
2596
  }, ie = async (t) => {
2556
- const n = ne.value;
2597
+ const n = le.value;
2557
2598
  if (n) {
2558
2599
  n.updateAdvancedFilterClause(t);
2559
2600
  return;
2560
2601
  }
2561
2602
  (await je()).updateAdvancedFilterClause(t);
2562
2603
  }, Mn = () => {
2563
- ne.value?.cancelAdvancedFilterPanel();
2604
+ le.value?.cancelAdvancedFilterPanel();
2564
2605
  }, An = () => {
2565
- ne.value?.applyAdvancedFilterPanel();
2606
+ le.value?.applyAdvancedFilterPanel();
2566
2607
  }, Fn = () => {
2567
- ne.value?.clearAdvancedFilterPanel();
2568
- }, le = ee(!1), L = ee(null), Ge = w(() => !!e.groupBy?.fields?.length), Ke = w(() => (l.value, Rt(e.runtime.api.rows.getAggregationModel()))), it = w(() => (l.value, la(e.runtime.api.rows.getSnapshot().groupBy))), On = w(() => {
2608
+ le.value?.clearAdvancedFilterPanel();
2609
+ }, oe = ee(!1), $ = ee(null), Ge = w(() => !!e.groupBy?.fields?.length), Ke = w(() => (l.value, Rt(e.runtime.api.rows.getAggregationModel()))), it = w(() => (l.value, oa(e.runtime.api.rows.getSnapshot().groupBy))), On = w(() => {
2569
2610
  const t = new Map(
2570
- (L.value?.columns ?? []).map((n) => [n.key, n.op])
2611
+ ($.value?.columns ?? []).map((n) => [n.key, n.op])
2571
2612
  );
2572
2613
  return x.value.map((n) => {
2573
2614
  const r = n.allowedOps[0] ?? "count", i = t.get(n.key), u = i && n.allowedOps.includes(i) ? i : r;
@@ -2579,11 +2620,11 @@ const da = {
2579
2620
  allowedOps: n.allowedOps
2580
2621
  };
2581
2622
  });
2582
- }), Le = w(() => L.value?.basis === "source" ? "source" : "filtered");
2623
+ }), Le = w(() => $.value?.basis === "source" ? "source" : "filtered");
2583
2624
  Y(
2584
2625
  Ke,
2585
2626
  (t) => {
2586
- le.value || (L.value = Rt(t));
2627
+ oe.value || ($.value = Rt(t));
2587
2628
  },
2588
2629
  { immediate: !0, deep: !0 }
2589
2630
  ), Y(
@@ -2618,16 +2659,16 @@ const da = {
2618
2659
  };
2619
2660
  e.runtime.api.rows.setSortAndFilterModel({
2620
2661
  sortModel: t,
2621
- filterModel: ea(r)
2662
+ filterModel: ta(r)
2622
2663
  });
2623
2664
  }, At = () => {
2624
2665
  pn(Pl(s.value));
2625
2666
  }, Ft = w(() => s.value.advancedExpression ?? null), Ot = w(() => {
2626
2667
  const t = (r) => Ie.value.get(r) ?? r, n = [];
2627
2668
  for (const [r, i] of Object.entries(s.value.columnFilters ?? {}))
2628
- i && n.push(ra(t(r), i));
2669
+ i && n.push(aa(t(r), i));
2629
2670
  for (const [r, i] of Object.entries(s.value.advancedFilters ?? {}))
2630
- i && n.push(`Advanced: ${aa(t(r), i)}`);
2671
+ i && n.push(`Advanced: ${ia(t(r), i)}`);
2631
2672
  return Ft.value && n.push(`Advanced: ${fl(Ft.value, t)}`), Object.freeze(n);
2632
2673
  }), ze = w(() => Ot.value.length > 0), kt = () => {
2633
2674
  s.value = cl(), Fn(), ce();
@@ -2681,9 +2722,9 @@ const da = {
2681
2722
  }, Me = () => {
2682
2723
  e.runtime.api.view.setRowHeightMode(H.value), e.runtime.api.view.setBaseRowHeight(q.value);
2683
2724
  }, _e = () => {
2684
- L.value = Rt(Ke.value), le.value = !0;
2725
+ $.value = Rt(Ke.value), oe.value = !0;
2685
2726
  }, Ce = () => {
2686
- L.value = Rt(Ke.value), le.value = !1;
2727
+ $.value = Rt(Ke.value), oe.value = !1;
2687
2728
  };
2688
2729
  Y(
2689
2730
  Ge,
@@ -2693,27 +2734,27 @@ const da = {
2693
2734
  { immediate: !0 }
2694
2735
  );
2695
2736
  const Et = () => {
2696
- L.value = null;
2737
+ $.value = null;
2697
2738
  }, Tt = (t) => {
2698
- L.value = {
2739
+ $.value = {
2699
2740
  basis: t,
2700
- columns: L.value?.columns ?? []
2741
+ columns: $.value?.columns ?? []
2701
2742
  };
2702
2743
  }, zt = (t, n) => {
2703
2744
  const r = x.value.find((d) => d.key === t);
2704
2745
  if (!r)
2705
2746
  return;
2706
- const i = L.value?.columns ?? [];
2747
+ const i = $.value?.columns ?? [];
2707
2748
  if (!n) {
2708
2749
  const d = i.filter((y) => y.key !== t);
2709
- L.value = d.length > 0 ? { basis: Le.value, columns: d } : null;
2750
+ $.value = d.length > 0 ? { basis: Le.value, columns: d } : null;
2710
2751
  return;
2711
2752
  }
2712
2753
  const g = i.find((d) => d.key === t) ?? {
2713
2754
  key: t,
2714
2755
  op: r.allowedOps[0] ?? "count"
2715
2756
  };
2716
- L.value = {
2757
+ $.value = {
2717
2758
  basis: Le.value,
2718
2759
  columns: [
2719
2760
  ...i.filter((d) => d.key !== t),
@@ -2724,17 +2765,17 @@ const da = {
2724
2765
  const r = x.value.find((u) => u.key === t);
2725
2766
  if (!r || !r.allowedOps.includes(n))
2726
2767
  return;
2727
- const i = (L.value?.columns ?? []).map((u) => u.key !== t ? u : {
2768
+ const i = ($.value?.columns ?? []).map((u) => u.key !== t ? u : {
2728
2769
  ...u,
2729
2770
  op: n
2730
2771
  });
2731
- L.value = {
2772
+ $.value = {
2732
2773
  basis: Le.value,
2733
2774
  columns: i
2734
2775
  };
2735
2776
  }, Hn = () => {
2736
- const t = L.value && L.value.columns.length > 0 ? L.value : null;
2737
- e.runtime.api.rows.setAggregationModel(t), L.value = Rt(t), le.value = !1;
2777
+ const t = $.value && $.value.columns.length > 0 ? $.value : null;
2778
+ e.runtime.api.rows.setAggregationModel(t), $.value = Rt(t), oe.value = !1;
2738
2779
  }, _t = (t) => c.value.find((n) => n.key === t)?.direction ?? null, Ht = (t, n) => {
2739
2780
  const r = v.value.find((i) => i.key === t);
2740
2781
  !r || r.column.capabilities?.sortable === !1 || (c.value = n === null ? c.value.filter((i) => i.key !== t) : [{ key: t, direction: n }], ce());
@@ -3038,7 +3079,7 @@ const da = {
3038
3079
  operation: n,
3039
3080
  sourceRowIds: r.map((g) => String(g))
3040
3081
  };
3041
- const u = na(i);
3082
+ const u = la(i);
3042
3083
  return u && await Kn(u), !0;
3043
3084
  }, he = () => e.runtime.api.rows.hasInsertSupport(), Fe = () => e.runtime.api.rows.hasDataMutationSupport(), Je = (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, fe = (t) => {
3044
3085
  const n = t;
@@ -3153,16 +3194,16 @@ const da = {
3153
3194
  if (u && g >= 0) {
3154
3195
  const d = Math.min(u.startColumn, u.endColumn), y = Math.max(u.startColumn, u.endColumn), S = Math.min(u.startRow, u.endRow), _ = Math.max(u.startRow, u.endRow), D = t.length > 0 ? e.runtime.resolveBodyRowIndexById(t) : -1;
3155
3196
  if (d === 0 && y === g && (D < 0 || D >= S && D <= _)) {
3156
- const K = [];
3197
+ const L = [];
3157
3198
  for (let W = S; W <= _; W += 1) {
3158
3199
  const se = e.runtime.getBodyRowAtIndex(W);
3159
3200
  if (!se || se.kind === "group" || se.rowId == null)
3160
3201
  continue;
3161
3202
  const ge = String(se.rowId);
3162
- n(ge) && K.push(ge);
3203
+ n(ge) && L.push(ge);
3163
3204
  }
3164
- if (K.length > 0)
3165
- return K;
3205
+ if (L.length > 0)
3206
+ return L;
3166
3207
  }
3167
3208
  }
3168
3209
  return t.length > 0 && n(t) ? [t] : [];
@@ -3232,10 +3273,10 @@ const da = {
3232
3273
  const i = ke(Pe(n)), u = i.includes(n) ? i : ke([n]);
3233
3274
  if (u.length === 0 || u.includes(r))
3234
3275
  return !1;
3235
- const g = be(), d = new Set(u), S = g.filter((K) => {
3236
- const W = fe(K);
3276
+ const g = be(), d = new Set(u), S = g.filter((L) => {
3277
+ const W = fe(L);
3237
3278
  return W == null || !d.has(W);
3238
- }).findIndex((K) => fe(K) === r);
3279
+ }).findIndex((L) => fe(L) === r);
3239
3280
  if (S < 0)
3240
3281
  return !1;
3241
3282
  const _ = T(), D = bt(
@@ -3260,8 +3301,8 @@ const da = {
3260
3301
  const D = d.indexOf(r);
3261
3302
  if (D < 0)
3262
3303
  return !1;
3263
- const K = t.placement === "after" ? D + 1 : D;
3264
- d.splice(K, 0, _);
3304
+ const L = t.placement === "after" ? D + 1 : D;
3305
+ d.splice(L, 0, _);
3265
3306
  const W = Pn(), se = g.pin ?? "none";
3266
3307
  return (u.pin ?? "none") !== se && e.runtime.api.columns.setPin(n, se), e.runtime.api.columns.setOrder(d), Vn(W), !0;
3267
3308
  }, Un = () => te.value ? (te.value = null, !0) : !1, qn = (t) => {
@@ -3278,7 +3319,7 @@ const da = {
3278
3319
  const Yn = (t, n) => {
3279
3320
  if (n)
3280
3321
  return n;
3281
- const r = Gl[t], i = fa[t];
3322
+ const r = Gl[t], i = wa[t];
3282
3323
  return i ? `${r} (${i})` : r;
3283
3324
  }, {
3284
3325
  tableStageProps: et,
@@ -3300,8 +3341,8 @@ const da = {
3300
3341
  placeholderRows: w(() => e.placeholderRows),
3301
3342
  enableFillHandle: w(() => e.fillHandle),
3302
3343
  enableRangeMove: w(() => e.rangeMove),
3303
- rows: $,
3304
- sourceRows: $,
3344
+ rows: N,
3345
+ sourceRows: N,
3305
3346
  runtime: e.runtime,
3306
3347
  rowVersion: l,
3307
3348
  totalRuntimeRows: p,
@@ -3364,14 +3405,18 @@ const da = {
3364
3405
  runRowIndexKeyboardAction: (t, n) => yt(t, n),
3365
3406
  reorderColumnsByHeader: e.columnReorder.enabled ? Wn : void 0,
3366
3407
  reorderRowsByIndex: e.rowReorder.enabled ? Nn : void 0,
3367
- cellClass: (t, n, r) => {
3368
- const i = tn.value;
3369
- return !i || t.kind === "group" || t.rowId == null || t.rowId !== i.rowId || r.key !== i.columnKey ? null : {
3408
+ cellClass: (t, n, r, i) => {
3409
+ const u = tn.value, g = !u || t.kind === "group" || t.rowId == null || t.rowId !== u.rowId || r.key !== u.columnKey ? null : {
3370
3410
  "grid-cell--find-match-active": !0,
3371
- "grid-cell--find-match-flash-a": i.flashPhase === 0,
3372
- "grid-cell--find-match-flash-b": i.flashPhase === 1
3411
+ "grid-cell--find-match-flash-a": u.flashPhase === 0,
3412
+ "grid-cell--find-match-flash-b": u.flashPhase === 1
3373
3413
  };
3374
- }
3414
+ return Qr(
3415
+ g,
3416
+ e.cellClass?.(t, n, r, i)
3417
+ );
3418
+ },
3419
+ cellStyle: e.cellStyle
3375
3420
  });
3376
3421
  Y(
3377
3422
  () => e.registerHistoryController,
@@ -3404,9 +3449,9 @@ const da = {
3404
3449
  ), Dl(() => {
3405
3450
  e.registerHistoryController?.(null), e.registerStructuralRowActionRunner?.(null);
3406
3451
  });
3407
- const O = w(() => et.value.columns.visibleColumns), k = (t) => {
3452
+ const F = w(() => et.value.columns.visibleColumns), k = (t) => {
3408
3453
  e.runtime.api.selection.setSnapshot(jt(t)), e.syncSelectionSnapshotFromRuntime();
3409
- }, N = (t, n, r, i) => t.kind === "group" || t.rowId == null || r.column.capabilities?.editable === !1 ? !1 : e.isCellEditable ? e.isCellEditable({
3454
+ }, G = (t, n, r, i) => t.kind === "group" || t.rowId == null || r.column.capabilities?.editable === !1 ? !1 : e.isCellEditable ? e.isCellEditable({
3410
3455
  row: t.data,
3411
3456
  rowId: t.rowId,
3412
3457
  rowIndex: n,
@@ -3418,17 +3463,17 @@ const da = {
3418
3463
  const { useDataGridAppFindReplace: t } = await import("./useDataGridAppFindReplace-DTSLds4f.js"), n = t({
3419
3464
  runtime: e.runtime,
3420
3465
  visibleColumns: v,
3421
- stageVisibleColumns: O,
3466
+ stageVisibleColumns: F,
3422
3467
  resolveCurrentCellCoord: qe,
3423
3468
  applyActiveCell: k,
3424
3469
  revealCellInComfortZone: h,
3425
3470
  captureRowsSnapshot: T,
3426
3471
  captureRowsSnapshotForRowIds: Qn,
3427
3472
  recordHistoryIntentTransaction: ln,
3428
- isCellEditable: N
3473
+ isCellEditable: G
3429
3474
  });
3430
3475
  return X.value = n, n;
3431
- }, G = {
3476
+ }, K = {
3432
3477
  isPanelOpen: w(() => X.value?.isPanelOpen.value ?? !1),
3433
3478
  findText: w(() => X.value?.findText.value ?? ""),
3434
3479
  replaceText: w(() => X.value?.replaceText.value ?? ""),
@@ -3460,21 +3505,21 @@ const da = {
3460
3505
  replaceAll: async () => (await ye()).replaceAll()
3461
3506
  };
3462
3507
  Y(
3463
- () => G.highlightedCell.value,
3508
+ () => K.highlightedCell.value,
3464
3509
  (t) => {
3465
3510
  tn.value = t;
3466
3511
  },
3467
3512
  { immediate: !0 }
3468
3513
  );
3469
3514
  const {
3470
- contextMenu: oe,
3515
+ contextMenu: re,
3471
3516
  contextMenuRef: on,
3472
3517
  contextMenuStyle: nt,
3473
3518
  closeContextMenu: we,
3474
3519
  openContextMenu: De,
3475
3520
  onContextMenuKeyDown: rn
3476
3521
  } = Io();
3477
- Zt = () => oe.value.visible, Qt = we;
3522
+ Zt = () => re.value.visible, Qt = we;
3478
3523
  const j = jo({
3479
3524
  isInteractionBlocked: () => !1,
3480
3525
  isRangeMoveModifierActive: () => !1,
@@ -3610,14 +3655,14 @@ const da = {
3610
3655
  return !1;
3611
3656
  const _ = Math.max(0, i + 1), D = Oe(
3612
3657
  y[0] ?? r
3613
- ) ?? Oe(r), K = y.length > 0 ? bt(y, _) : e.runtime.api.rows.insertDataAt(
3658
+ ) ?? Oe(r), L = y.length > 0 ? bt(y, _) : e.runtime.api.rows.insertDataAt(
3614
3659
  _,
3615
3660
  g.map((W) => Ut(W, D))
3616
3661
  );
3617
- return K && te.value?.operation === "cut" && (te.value = null), K && Z(
3662
+ return L && te.value?.operation === "cut" && (te.value = null), L && Z(
3618
3663
  d,
3619
3664
  y.length > 0 ? y.length > 1 ? `Move ${y.length} rows` : "Move row" : g.length > 1 ? `Paste ${g.length} rows` : "Paste row"
3620
- ), K;
3665
+ ), L;
3621
3666
  }
3622
3667
  return !1;
3623
3668
  }
@@ -3661,9 +3706,9 @@ const da = {
3661
3706
  };
3662
3707
  const el = Ko({
3663
3708
  resolveContextMenuState: () => ({
3664
- zone: oe.value.zone,
3665
- columnKey: oe.value.columnKey,
3666
- rowId: oe.value.rowId
3709
+ zone: re.value.zone,
3710
+ columnKey: re.value.columnKey,
3711
+ rowId: re.value.rowId
3667
3712
  }),
3668
3713
  runHeaderContextAction: () => !1,
3669
3714
  runRowIndexContextAction: yt,
@@ -3742,22 +3787,22 @@ const da = {
3742
3787
  g.push(...i.get(`before:${d.itemKey}`) ?? []), g.push([...d.entries]), g.push(...i.get(`after:${d.itemKey}`) ?? []);
3743
3788
  return g.push(...i.get("end") ?? []), g.filter((d) => d.length > 0);
3744
3789
  }, Sl = w(() => {
3745
- if (!oe.value.visible)
3790
+ if (!re.value.visible)
3746
3791
  return [];
3747
- const t = oe.value.zone;
3792
+ const t = re.value.zone;
3748
3793
  if (t === "cell" || t === "range") {
3749
- const n = oe.value.columnKey ?? "";
3794
+ const n = re.value.columnKey ?? "";
3750
3795
  if (!e.cellMenu.enabled || !n)
3751
3796
  return [];
3752
3797
  const r = fn(e.cellMenu, n), i = new Set(Ir(e.cellMenu, n)), u = Mr(e.cellMenu, n), g = xr(e.cellMenu, n), d = Ar(e.cellMenu, n), y = Fr(e.cellMenu, n), S = [];
3753
3798
  for (const _ of r) {
3754
- const K = (da[_] ?? []).flatMap((W) => {
3799
+ const L = (ma[_] ?? []).flatMap((W) => {
3755
3800
  const se = no(_, W, i, u, d);
3756
3801
  return se ? [se] : [];
3757
3802
  });
3758
- if (K.length !== 0) {
3803
+ if (L.length !== 0) {
3759
3804
  if (_ === "pasteSpecial") {
3760
- const W = i.has(_) || K.every((se) => se.disabled);
3805
+ const W = i.has(_) || L.every((se) => se.disabled);
3761
3806
  S.push({
3762
3807
  itemKey: _,
3763
3808
  entries: [{
@@ -3765,36 +3810,36 @@ const da = {
3765
3810
  id: "paste-special-submenu",
3766
3811
  label: g.pasteSpecial ?? "Paste special",
3767
3812
  disabled: W,
3768
- title: u[_] ?? (K.length === 1 ? K[0]?.title : void 0),
3769
- entries: K
3813
+ title: u[_] ?? (L.length === 1 ? L[0]?.title : void 0),
3814
+ entries: L
3770
3815
  }]
3771
3816
  });
3772
3817
  continue;
3773
3818
  }
3774
3819
  S.push({
3775
3820
  itemKey: _,
3776
- entries: K
3821
+ entries: L
3777
3822
  });
3778
3823
  }
3779
3824
  }
3780
3825
  return lo(S, y, {
3781
3826
  zone: t,
3782
3827
  columnKey: n,
3783
- rowId: oe.value.rowId
3828
+ rowId: re.value.rowId
3784
3829
  });
3785
3830
  }
3786
3831
  if (t === "row-index") {
3787
3832
  if (!e.rowIndexMenu.enabled)
3788
3833
  return [];
3789
- const n = Xe(oe.value.rowId ?? ""), r = Or(e.rowIndexMenu), i = new Set(kr(e.rowIndexMenu)), u = Dr(e.rowIndexMenu), g = Er(e.rowIndexMenu), d = [];
3834
+ const n = Xe(re.value.rowId ?? ""), r = Or(e.rowIndexMenu), i = new Set(kr(e.rowIndexMenu)), u = Dr(e.rowIndexMenu), g = Er(e.rowIndexMenu), d = [];
3790
3835
  for (const y of r) {
3791
- const _ = (ma[y] ?? []).flatMap((D) => {
3836
+ const _ = (fa[y] ?? []).flatMap((D) => {
3792
3837
  const W = g[D === "insert-row-above" ? "insertAbove" : D === "insert-row-below" ? "insertBelow" : D === "copy-row" ? "copy" : D === "paste-row" ? "paste" : D === "delete-selected-rows" ? "deleteSelected" : "cut"];
3793
3838
  if (W?.hidden)
3794
3839
  return [];
3795
3840
  let ge = i.has(y) || W?.disabled === !0, U = W?.disabledReason ?? u[y];
3796
3841
  return n != null && D !== "delete-selected-rows" && D !== "insert-row-above" && D !== "insert-row-below" && D !== "paste-row" && (ge = !0, U = U ?? "Placeholder rows must be materialized before this action is available"), (D === "insert-row-above" || D === "insert-row-below") && !he() && !Jt() && (ge = !0, U = U ?? "Row insertion is not supported by the current row model"), D === "paste-row" && !he() && (ge = !0, U = U ?? "Row insertion is not supported by the current row model"), D === "cut-row" && !Fe() && (ge = !0, U = U ?? "Row deletion is not supported by the current row model"), D === "delete-selected-rows" && !Fe() && !Jt() && (ge = !0, U = U ?? "Row deletion is not supported by the current row model"), D === "delete-selected-rows" && ke(
3797
- Pe(oe.value.rowId ?? "")
3842
+ Pe(re.value.rowId ?? "")
3798
3843
  ).length === 0 && (ge = !0, U = U ?? "No deletable rows are selected"), [{
3799
3844
  kind: "action",
3800
3845
  id: D,
@@ -3883,7 +3928,7 @@ const da = {
3883
3928
  ao(i);
3884
3929
  }
3885
3930
  }, i.label)];
3886
- }), xl = () => !oe.value.visible || Sl.value.length === 0 ? null : V("div", {
3931
+ }), xl = () => !re.value.visible || Sl.value.length === 0 ? null : V("div", {
3887
3932
  ref: on,
3888
3933
  class: "datagrid-context-menu",
3889
3934
  style: nt.value,
@@ -3904,7 +3949,7 @@ const da = {
3904
3949
  })), r.push(...Il(t)), r;
3905
3950
  }));
3906
3951
  Y(
3907
- () => oe.value.visible,
3952
+ () => re.value.visible,
3908
3953
  (t, n, r) => {
3909
3954
  if (t || (Ve.value = []), !t || typeof window > "u")
3910
3955
  return;
@@ -3921,6 +3966,7 @@ const da = {
3921
3966
  );
3922
3967
  const Ml = w(() => ({
3923
3968
  ...et.value,
3969
+ customOverlays: e.customOverlays,
3924
3970
  columns: {
3925
3971
  ...et.value.columns,
3926
3972
  columnMenuEnabled: e.columnMenu.enabled,
@@ -3982,9 +4028,9 @@ const da = {
3982
4028
  onMoveUp: bn,
3983
4029
  onMoveDown: yn,
3984
4030
  onMoveToPosition: (n) => {
3985
- ae(n.key, n.targetKey, n.placement);
4031
+ ne(n.key, n.targetKey, n.placement);
3986
4032
  },
3987
- onApply: re,
4033
+ onApply: ae,
3988
4034
  onCancel: E
3989
4035
  }
3990
4036
  }), e.advancedFilter.enabled && t.push({
@@ -3993,7 +4039,7 @@ const da = {
3993
4039
  props: {
3994
4040
  isOpen: St.value,
3995
4041
  clauses: Rn.value,
3996
- columns: F.value,
4042
+ columns: O.value,
3997
4043
  appliedFilterSummaryItems: Ot.value,
3998
4044
  hasAnyFilters: ze.value,
3999
4045
  buttonLabel: e.advancedFilter.buttonLabel,
@@ -4011,35 +4057,35 @@ const da = {
4011
4057
  key: "find-replace",
4012
4058
  component: Jr,
4013
4059
  props: {
4014
- isOpen: G.isPanelOpen.value,
4015
- findText: G.findText.value,
4016
- replaceText: G.replaceText.value,
4017
- matchCase: G.matchCase.value,
4018
- statusText: G.statusText.value,
4060
+ isOpen: K.isPanelOpen.value,
4061
+ findText: K.findText.value,
4062
+ replaceText: K.replaceText.value,
4063
+ matchCase: K.matchCase.value,
4064
+ statusText: K.statusText.value,
4019
4065
  buttonLabel: e.findReplace.buttonLabel,
4020
- active: G.active.value,
4021
- canFind: G.canFind.value,
4022
- canReplaceCurrent: G.canReplaceCurrent.value,
4023
- canReplaceAll: G.canReplaceAll.value,
4024
- onOpen: G.openPanel,
4025
- onCancel: G.closePanel,
4026
- onUpdateFindText: G.updateFindText,
4027
- onUpdateReplaceText: G.updateReplaceText,
4028
- onUpdateMatchCase: G.updateMatchCase,
4029
- onFindNext: G.findNext,
4030
- onFindPrevious: G.findPrevious,
4031
- onReplaceCurrent: G.replaceCurrent,
4032
- onReplaceAll: G.replaceAll
4066
+ active: K.active.value,
4067
+ canFind: K.canFind.value,
4068
+ canReplaceCurrent: K.canReplaceCurrent.value,
4069
+ canReplaceAll: K.canReplaceAll.value,
4070
+ onOpen: K.openPanel,
4071
+ onCancel: K.closePanel,
4072
+ onUpdateFindText: K.updateFindText,
4073
+ onUpdateReplaceText: K.updateReplaceText,
4074
+ onUpdateMatchCase: K.updateMatchCase,
4075
+ onFindNext: K.findNext,
4076
+ onFindPrevious: K.findPrevious,
4077
+ onReplaceCurrent: K.replaceCurrent,
4078
+ onReplaceAll: K.replaceAll
4033
4079
  }
4034
4080
  }), e.aggregations.enabled && e.mode !== "pivot" && t.push({
4035
4081
  key: "aggregations",
4036
4082
  component: Xr,
4037
4083
  props: {
4038
- isOpen: le.value,
4084
+ isOpen: oe.value,
4039
4085
  basis: Le.value,
4040
4086
  items: On.value,
4041
4087
  buttonLabel: e.aggregations.buttonLabel,
4042
- active: Ge.value && (le.value || !!Ke.value?.columns.length),
4088
+ active: Ge.value && (oe.value || !!Ke.value?.columns.length),
4043
4089
  disabled: !Ge.value,
4044
4090
  disabledReason: Ge.value ? "" : "Aggregations require an active group-by model.",
4045
4091
  onOpen: _e,
@@ -4142,11 +4188,11 @@ const da = {
4142
4188
  ]);
4143
4189
  }
4144
4190
  });
4145
- function Va() {
4191
+ function Ba() {
4146
4192
  return (e) => e;
4147
4193
  }
4148
4194
  const rl = /* @__PURE__ */ new WeakMap(), Kl = /* @__PURE__ */ new WeakMap();
4149
- function wa(e) {
4195
+ function ga(e) {
4150
4196
  if (!e)
4151
4197
  return;
4152
4198
  const o = rl.get(e);
@@ -4163,16 +4209,16 @@ function wa(e) {
4163
4209
  expandedByDefault: a
4164
4210
  }), rl.set(e, l), l;
4165
4211
  }
4166
- function ga(e) {
4167
- return !e || e.length === 0 ? [] : e.map((o) => ({ ...o }));
4168
- }
4169
4212
  function va(e) {
4170
4213
  return !e || e.length === 0 ? [] : e.map((o) => ({ ...o }));
4171
4214
  }
4172
4215
  function ha(e) {
4173
- return !e || e.length === 0 ? [] : e.map(({ formula: o, ...a }) => ({ ...a }));
4216
+ return !e || e.length === 0 ? [] : e.map((o) => ({ ...o }));
4174
4217
  }
4175
4218
  function ba(e) {
4219
+ return !e || e.length === 0 ? [] : e.map(({ formula: o, ...a }) => ({ ...a }));
4220
+ }
4221
+ function ya(e) {
4176
4222
  return !e || e.length === 0 ? [] : e.flatMap((o) => {
4177
4223
  const a = typeof o.formula == "string" ? o.formula.trim() : "";
4178
4224
  return a ? [{
@@ -4181,24 +4227,24 @@ function ba(e) {
4181
4227
  }] : [];
4182
4228
  });
4183
4229
  }
4184
- function ya(e, o) {
4230
+ function Ca(e, o) {
4185
4231
  const a = /* @__PURE__ */ new Map();
4186
4232
  for (const l of e)
4187
4233
  a.set(l.name, { ...l });
4188
- for (const l of ga(o))
4234
+ for (const l of va(o))
4189
4235
  a.set(l.name, l);
4190
4236
  return Array.from(a.values());
4191
4237
  }
4192
- function Ba(e) {
4193
- return ha(e);
4194
- }
4195
4238
  function ja(e) {
4196
- const o = wa(e.clientRowModelOptions), a = e.enterpriseClientRowModelOptions, l = ba(e.columns), c = e.formulas !== void 0, s = e.computedFields !== void 0, f = e.formulaFunctions !== void 0, b = l.length > 0, R = c || b ? ya(l, e.formulas) : void 0, M = s ? va(e.computedFields) : void 0, A = f ? e.formulaFunctions ?? {} : void 0, $ = !!(b || c || s || f);
4197
- if (!o && !$)
4239
+ return ba(e);
4240
+ }
4241
+ function Ga(e) {
4242
+ const o = ga(e.clientRowModelOptions), a = e.enterpriseClientRowModelOptions, l = ya(e.columns), c = e.formulas !== void 0, s = e.computedFields !== void 0, f = e.formulaFunctions !== void 0, b = l.length > 0, R = c || b ? Ca(l, e.formulas) : void 0, M = s ? ha(e.computedFields) : void 0, A = f ? e.formulaFunctions ?? {} : void 0, N = !!(b || c || s || f);
4243
+ if (!o && !N)
4198
4244
  return a ? {
4199
4245
  ...a
4200
4246
  } : void 0;
4201
- if (!$) {
4247
+ if (!N) {
4202
4248
  if (o && !a)
4203
4249
  return o;
4204
4250
  if (!o && a)
@@ -4229,7 +4275,7 @@ function ja(e) {
4229
4275
  ...a?.formulaColumnCacheMaxColumns !== void 0 ? { formulaColumnCacheMaxColumns: a.formulaColumnCacheMaxColumns } : {}
4230
4276
  };
4231
4277
  }
4232
- const Ca = "comfortable", Ra = {
4278
+ const Ra = "comfortable", Sa = {
4233
4279
  comfortable: {
4234
4280
  toolbarGap: 10,
4235
4281
  workspaceGap: 12
@@ -4239,25 +4285,25 @@ const Ca = "comfortable", Ra = {
4239
4285
  workspaceGap: 8
4240
4286
  }
4241
4287
  };
4242
- function Sa(e) {
4243
- return e === "compact" ? "compact" : Ca;
4244
- }
4245
4288
  function pa(e) {
4289
+ return e === "compact" ? "compact" : Ra;
4290
+ }
4291
+ function Ia(e) {
4246
4292
  return e === "integrated" || e === "hidden" || e === "stacked" ? e : "stacked";
4247
4293
  }
4248
4294
  function Ll(e, o) {
4249
4295
  return Number.isFinite(e) ? Math.max(0, e) : o;
4250
4296
  }
4251
- function Ga(e) {
4252
- const o = typeof e == "object" && e !== null ? e : null, a = Sa(typeof e == "string" ? e : o?.density), l = Ra[a];
4297
+ function Ka(e) {
4298
+ const o = typeof e == "object" && e !== null ? e : null, a = pa(typeof e == "string" ? e : o?.density), l = Sa[a];
4253
4299
  return {
4254
4300
  density: a,
4255
- toolbarPlacement: pa(o?.toolbarPlacement),
4301
+ toolbarPlacement: Ia(o?.toolbarPlacement),
4256
4302
  toolbarGap: Ll(o?.toolbarGap, l.toolbarGap),
4257
4303
  workspaceGap: Ll(o?.workspaceGap, l.workspaceGap)
4258
4304
  };
4259
4305
  }
4260
- function Ka(e) {
4306
+ function La(e) {
4261
4307
  return typeof e == "boolean" ? {
4262
4308
  enabled: e
4263
4309
  } : e ? {
@@ -4266,7 +4312,7 @@ function Ka(e) {
4266
4312
  enabled: !1
4267
4313
  };
4268
4314
  }
4269
- function La(e) {
4315
+ function $a(e) {
4270
4316
  return typeof e == "boolean" ? {
4271
4317
  enabled: e
4272
4318
  } : e ? {
@@ -4279,7 +4325,7 @@ function $l() {
4279
4325
  const e = globalThis.performance;
4280
4326
  return e && typeof e.now == "function" ? e.now() : Date.now();
4281
4327
  }
4282
- const Ia = (e, o) => {
4328
+ const xa = (e, o) => {
4283
4329
  const a = $l();
4284
4330
  return {
4285
4331
  result: o(),
@@ -4288,11 +4334,11 @@ const Ia = (e, o) => {
4288
4334
  };
4289
4335
  function Nl(e) {
4290
4336
  return {
4291
- projectionStageTimer: Ia,
4337
+ projectionStageTimer: xa,
4292
4338
  ...e ?? {}
4293
4339
  };
4294
4340
  }
4295
- function $a(e) {
4341
+ function Na(e) {
4296
4342
  const o = ee(0), a = tl(), l = al(
4297
4343
  e.rowModel.value ? null : tl({
4298
4344
  rows: e.rows.value,
@@ -4344,18 +4390,18 @@ function $a(e) {
4344
4390
  };
4345
4391
  }
4346
4392
  export {
4347
- Pa as D,
4393
+ Va as D,
4348
4394
  Tl as a,
4349
- Ka as b,
4350
- ja as c,
4351
- La as d,
4395
+ La as b,
4396
+ Ga as c,
4397
+ $a as d,
4352
4398
  Tr as e,
4353
4399
  Wr as f,
4354
- za as g,
4355
- _a as h,
4356
- Ha as i,
4357
- Ba as j,
4358
- Va as k,
4359
- Ga as r,
4360
- $a as u
4400
+ _a as g,
4401
+ Ha as h,
4402
+ Pa as i,
4403
+ ja as j,
4404
+ Ba as k,
4405
+ Ka as r,
4406
+ Na as u
4361
4407
  };