@guiexpert/vue3-table 3.1.67 → 3.1.68

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +7 -7
  2. package/index.js +217 -175
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { defineComponent as te, ref as se, onMounted as oe, createElementBlock as ie, openBlock as re, createVNode as ae, render as U } from "vue";
2
- function le(d, e = 500) {
1
+ import { defineComponent as se, ref as oe, onMounted as ie, createElementBlock as re, openBlock as ae, createVNode as le, render as j } from "vue";
2
+ function ne(d, e = 500) {
3
3
  let t = null;
4
4
  return function(...s) {
5
5
  t && window.clearTimeout(t), t = window.setTimeout(() => {
@@ -35,15 +35,15 @@ class k {
35
35
  function L(d) {
36
36
  return d && d.type === "TreeRow";
37
37
  }
38
- function $(d) {
38
+ function H(d) {
39
39
  return d && d.type === "AreaModelTree";
40
40
  }
41
- class H {
41
+ class V {
42
42
  constructor(e = -1, t = -1, s = -1, o = -1, i, r, a, l = 0, n = 0, c = 0, p = "") {
43
43
  this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = a, this.clickCount = l, this.draggingX = n, this.draggingY = c, this.action = p;
44
44
  }
45
45
  clone() {
46
- return new H(
46
+ return new V(
47
47
  this.rowIndex,
48
48
  this.rowTop,
49
49
  this.columnIndex,
@@ -63,7 +63,7 @@ class D {
63
63
  this.content = e, this.style = t, this.classes = s;
64
64
  }
65
65
  }
66
- class q {
66
+ class J {
67
67
  constructor(e = new D(
68
68
  ">",
69
69
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
@@ -84,12 +84,12 @@ class q {
84
84
  this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
85
85
  }
86
86
  }
87
- class J {
87
+ class Z {
88
88
  constructor(e = new D("↑", "", ["ge-header-sorted-asc"]), t = new D("↓", "", ["ge-header-sorted-desc"]), s = new D("↑", "color:transparent;", [])) {
89
89
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
90
90
  }
91
91
  }
92
- class ne {
92
+ class ce {
93
93
  constructor(e) {
94
94
  this.domService = e;
95
95
  }
@@ -177,10 +177,10 @@ class ne {
177
177
  addColumnDiv(e) {
178
178
  const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: a, text: l = "", treeArrow: n, tableOptions: c, checkedType: p = void 0, sortState: h } = e, m = c == null ? void 0 : c.treeOptions, g = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
179
179
  this.domService.addClass(b, "ge-table-col-div"), g && this.domService.addClass(b, "ge-with-checkbox"), this.domService.addClass(b, `ge-table-col-div-${s.index}`), this.domService.setAttribute(b, "data-col-index", `${s.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${r}`);
180
- const u = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
181
- if (r === "body" && a === "center" && this.domService.addClass(b, `ge-table-column-${u}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, m, o, i, r)), g && i === 0 && p && this.addCheckboxToDiv(b, p, r, o), l) {
182
- const f = n !== "none" && i === 0;
183
- this.addLabelDiv(b, l, f, o, i, r);
180
+ const f = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
181
+ if (r === "body" && a === "center" && this.domService.addClass(b, `ge-table-column-${f}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, m, o, i, r)), g && i === 0 && p && this.addCheckboxToDiv(b, p, r, o), l) {
182
+ const u = n !== "none" && i === 0;
183
+ this.addLabelDiv(b, l, u, o, i, r);
184
184
  }
185
185
  return h && this.addSortedIcon(b, h, c == null ? void 0 : c.sortedOptions, i), this.domService.appendChild(t, b), b;
186
186
  }
@@ -209,7 +209,7 @@ class ne {
209
209
  }
210
210
  return this.domService.appendChild(e, a), a;
211
211
  }
212
- addSortedIcon(e, t = "", s = new J(), o = -1) {
212
+ addSortedIcon(e, t = "", s = new Z(), o = -1) {
213
213
  const i = this.domService.createElement("div");
214
214
  this.domService.addClass(i, "ge-table-sorted-icon-div"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "top", "0"), this.domService.setStyle(i, "right", "0"), this.domService.setStyle(i, "width", "20px"), this.domService.setStyle(i, "background", "transparent"), this.domService.setStyle(i, "cursor", "pointer"), this.domService.setAttribute(i, "data-col-index", `${o}`), this.domService.setAttribute(i, "data-area", "header");
215
215
  let r;
@@ -220,7 +220,7 @@ class ne {
220
220
  this.domService.addClass(i, n);
221
221
  return this.domService.appendChild(e, i), i;
222
222
  }
223
- addArrowDiv(e, t = "none", s = new q(), o = -1, i = -1, r = "body") {
223
+ addArrowDiv(e, t = "none", s = new J(), o = -1, i = -1, r = "body") {
224
224
  const a = this.domService.createElement("div");
225
225
  this.domService.addClass(a, "ge-table-tree-arrow-div"), this.domService.setStyle(a, "display", "inline-block"), this.domService.setStyle(a, "position", ""), this.domService.setStyle(a, "width", "20px"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "cursor", "pointer"), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`);
226
226
  let l;
@@ -271,20 +271,20 @@ class ne {
271
271
  return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
272
272
  }
273
273
  }
274
- const V = (d) => d === "header" ? "header" : d === "footer" ? "footer" : "body";
275
- class ce {
274
+ const _ = (d) => d === "header" ? "header" : d === "footer" ? "footer" : "body";
275
+ class de {
276
276
  constructor(e, t) {
277
277
  if (this.rowIdx = -1, this.colIdx = -1, this.action = null, this.inputType = null, this.className = "", e !== null && (e instanceof HTMLDivElement || e instanceof HTMLSpanElement || e instanceof HTMLInputElement)) {
278
278
  this.className = e.className, this.action = e.getAttribute("data-ge-action"), this.inputType = e.getAttribute("data-input-type"), this.rowIdx = Number(e.getAttribute("data-row-index")), this.colIdx = Number(e.getAttribute("data-col-index"));
279
279
  const s = e.getAttribute("data-area");
280
- if (s && (this.areaIdent = V(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
280
+ if (s && (this.areaIdent = _(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
281
281
  const o = e;
282
282
  this.value = o.value;
283
283
  }
284
284
  }
285
285
  }
286
286
  }
287
- class de {
287
+ class he {
288
288
  constructor(e) {
289
289
  this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
290
290
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -316,7 +316,7 @@ class de {
316
316
  return;
317
317
  }
318
318
  this.lastClicked = t;
319
- const s = new ce(e.target, this.tableScope);
319
+ const s = new de(e.target, this.tableScope);
320
320
  if (s.action === "toggleExpandCollapseAll")
321
321
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
322
322
  else if (s.action === "toggleHeaderGroup")
@@ -345,7 +345,7 @@ class de {
345
345
  */
346
346
  onHostElementDblClicked(e) {
347
347
  if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
348
- const t = e.target, s = t.getAttribute("data-area"), o = V(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), a = this.tableScope.tableModel.getAreaModel(o);
348
+ const t = e.target, s = t.getAttribute("data-area"), o = _(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), a = this.tableScope.tableModel.getAreaModel(o);
349
349
  if (s && o === "header")
350
350
  this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
351
351
  else if (t.getAttribute("data-row-index")) {
@@ -418,7 +418,7 @@ class de {
418
418
  }
419
419
  }
420
420
  }
421
- class he {
421
+ class pe {
422
422
  constructor(e, t = [], s = -1) {
423
423
  this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
424
424
  }
@@ -514,7 +514,7 @@ class he {
514
514
  this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
515
515
  }
516
516
  }
517
- class pe {
517
+ class ge {
518
518
  genericSortComparator(e, t, s) {
519
519
  if (typeof e == "number" && typeof t == "number")
520
520
  return s * (e - t);
@@ -532,9 +532,9 @@ class pe {
532
532
  return s * ("" + e).localeCompare("" + t);
533
533
  }
534
534
  }
535
- class ge extends he {
535
+ class F extends pe {
536
536
  constructor(e, t, s, o = [], i = "ge-selected-row", r = "ge-focused-row") {
537
- super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.focusedRowIndex = 0, this.sorterService = new pe(), this.filteredRows = [...t], this.properties = o.map((a) => a.property);
537
+ super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.focusedRowIndex = 0, this.sorterService = new ge(), this.filteredRows = [...t], this.properties = o.map((a) => a.property);
538
538
  }
539
539
  setRows(e) {
540
540
  this.rows = e, this.filteredRows = [...e];
@@ -604,7 +604,7 @@ class ge extends he {
604
604
  return o && t.length ? this.getPropertyValue(o, t) : o;
605
605
  }
606
606
  }
607
- class ue {
607
+ class fe {
608
608
  constructor(e) {
609
609
  this.tableScope = e;
610
610
  }
@@ -835,7 +835,49 @@ class ue {
835
835
  }
836
836
  setRows(e) {
837
837
  const t = this.getBodyModel();
838
- t instanceof ge ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t);
838
+ t instanceof F ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
839
+ }
840
+ addRows(e) {
841
+ const t = this.getBodyModel();
842
+ if (t instanceof F) {
843
+ const s = t;
844
+ let o = s.getAllRows();
845
+ s.setRows([...o, ...e]);
846
+ } else
847
+ console.warn("addRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
848
+ }
849
+ addRowsAt(e, t) {
850
+ const s = this.getBodyModel();
851
+ if (s instanceof F) {
852
+ const o = s;
853
+ let i = o.getAllRows();
854
+ o.setRows([...i.slice(0, t), ...e, ...i.slice(t)]);
855
+ } else
856
+ console.warn("addRowsAt<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
857
+ }
858
+ removeRows(e, t = (s, o) => s === o) {
859
+ const s = this.getBodyModel();
860
+ if (s instanceof F) {
861
+ const o = s, i = o.getAllRows().filter((r) => !e.some((a) => t(r, a)));
862
+ o.setRows(i);
863
+ } else
864
+ console.warn("removeRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
865
+ }
866
+ findRows(e, t = (s, o) => s === o) {
867
+ const s = this.getBodyModel();
868
+ return s instanceof F ? s.getAllRows().filter((i) => !e.some((r) => t(i, r))) : (console.warn("findRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s), []);
869
+ }
870
+ updateRows(e, t = (s, o) => s === o) {
871
+ const s = this.getBodyModel();
872
+ if (s instanceof F) {
873
+ let i = s.getAllRows();
874
+ for (const r of i)
875
+ for (const a of e)
876
+ if (t(r, a))
877
+ for (const l of Object.keys(a))
878
+ r[l] = a[l];
879
+ } else
880
+ console.warn("updateRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
839
881
  }
840
882
  reSort() {
841
883
  this.tableScope.reSort();
@@ -844,7 +886,7 @@ class ue {
844
886
  return this.tableScope.getDisplayedRowCount();
845
887
  }
846
888
  }
847
- class _ {
889
+ class G {
848
890
  constructor(e) {
849
891
  this.getStorageKeyFn = e;
850
892
  }
@@ -911,7 +953,7 @@ class _ {
911
953
  // }
912
954
  // }
913
955
  }
914
- class fe extends _ {
956
+ class ue extends G {
915
957
  constructor(e) {
916
958
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
917
959
  }
@@ -938,7 +980,7 @@ class me {
938
980
  this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
939
981
  }
940
982
  }
941
- class be extends _ {
983
+ class be extends G {
942
984
  constructor(e) {
943
985
  super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new me(), this.load();
944
986
  }
@@ -972,7 +1014,7 @@ class be extends _ {
972
1014
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
973
1015
  }
974
1016
  }
975
- class Se extends _ {
1017
+ class Se extends G {
976
1018
  constructor(e) {
977
1019
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
978
1020
  }
@@ -1169,7 +1211,7 @@ class ye {
1169
1211
  this.dom.setStyle(this.contentWrapperDiv, "width", e), this.dom.setStyle(this.contentWrapperDiv, "height", t);
1170
1212
  }
1171
1213
  }
1172
- class E {
1214
+ class A {
1173
1215
  /**
1174
1216
  * Represents a constructor for a class.
1175
1217
  * @constructor
@@ -1183,7 +1225,7 @@ class E {
1183
1225
  this.r1 = e, this.c1 = t, this.r2 = s, this.c2 = o, this.gammaRange = i;
1184
1226
  }
1185
1227
  static create(e) {
1186
- return e.gammaRange === void 0 && (e.gammaRange = !1), new E(
1228
+ return e.gammaRange === void 0 && (e.gammaRange = !1), new A(
1187
1229
  e.rowIndex1,
1188
1230
  e.columnIndex1,
1189
1231
  e.rowIndex2,
@@ -1192,13 +1234,13 @@ class E {
1192
1234
  );
1193
1235
  }
1194
1236
  static singleCell(e, t) {
1195
- return new E(e, t, e, t);
1237
+ return new A(e, t, e, t);
1196
1238
  }
1197
1239
  static singleRow(e) {
1198
- return new E(e, 0, e, Number.MAX_SAFE_INTEGER);
1240
+ return new A(e, 0, e, Number.MAX_SAFE_INTEGER);
1199
1241
  }
1200
1242
  static singleColumn(e) {
1201
- return new E(0, e, Number.MAX_SAFE_INTEGER, e);
1243
+ return new A(0, e, Number.MAX_SAFE_INTEGER, e);
1202
1244
  }
1203
1245
  isInRange(e, t) {
1204
1246
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
@@ -1220,7 +1262,7 @@ class xe {
1220
1262
  i === 0 && (i = 1), r === 0 && (r = 1);
1221
1263
  const a = "gammaCells" in this.areaModel;
1222
1264
  this.colAndRowspanRanges.push(
1223
- new E(s, o, s + r - 1, o + i - 1, a)
1265
+ new A(s, o, s + r - 1, o + i - 1, a)
1224
1266
  );
1225
1267
  }
1226
1268
  }
@@ -1237,19 +1279,19 @@ class xe {
1237
1279
  return !1;
1238
1280
  }
1239
1281
  }
1240
- class Ce {
1282
+ class we {
1241
1283
  constructor(e, t, s) {
1242
1284
  this.header = e, this.body = t, this.footer = s;
1243
1285
  }
1244
1286
  }
1245
- class we extends ye {
1287
+ class Ce extends ye {
1246
1288
  constructor(e, t, s, o) {
1247
1289
  var r, a;
1248
1290
  super(e, t, s, o), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
1249
1291
  header: [],
1250
1292
  body: [],
1251
1293
  footer: []
1252
- }, this.tree = !1, this.colAndRowspanModels = new Ce(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.displayedRowCount = 0, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (a = this.tableOptions) != null && a.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), $(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1294
+ }, this.tree = !1, this.colAndRowspanModels = new we(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.displayedRowCount = 0, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (a = this.tableOptions) != null && a.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), H(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1253
1295
  (l) => {
1254
1296
  var n;
1255
1297
  this.colAndRowspanModels[l] = new xe(t, t.getAreaModel(l)), (n = this.colAndRowspanModels[l]) == null || n.init();
@@ -1503,21 +1545,21 @@ class we extends ye {
1503
1545
  * @protected
1504
1546
  */
1505
1547
  adjustArea(e, t = 0) {
1506
- var u;
1548
+ var f;
1507
1549
  const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
1508
1550
  s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
1509
1551
  const a = 0, l = this.areaBodyCenterGeo.width, n = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), p = c.getRowCount();
1510
1552
  for (; this.cleanupFunctions[e].length; ) {
1511
- const f = this.cleanupFunctions[e].shift();
1512
- f && f();
1553
+ const u = this.cleanupFunctions[e].shift();
1554
+ u && u();
1513
1555
  }
1514
1556
  let h = t;
1515
1557
  const m = this.tableModel.getColumnCount(), g = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
1516
- for (let f = 0; f < p; f++) {
1517
- const x = h, C = f === p - 1, v = this.tableModel.getRowHeight(e, f);
1558
+ for (let u = 0; u < p; u++) {
1559
+ const x = h, w = u === p - 1, v = this.tableModel.getRowHeight(e, u);
1518
1560
  if (x + v > 0) {
1519
- this.firstVisibleRowIndex = f;
1520
- let y = { left: a, width: l, height: v, top: x, index: f }, S = this.dom.addRowDiv(o, y, f, e, "center");
1561
+ this.firstVisibleRowIndex = u;
1562
+ let y = { left: a, width: l, height: v, top: x, index: u }, S = this.dom.addRowDiv(o, y, u, e, "center");
1521
1563
  const R = b;
1522
1564
  if (this.adjustColumnsToRowParent({
1523
1565
  areaIdent: e,
@@ -1525,35 +1567,35 @@ class we extends ye {
1525
1567
  areaModel: c,
1526
1568
  geo: y,
1527
1569
  parent: S,
1528
- rowIndex: f,
1570
+ rowIndex: u,
1529
1571
  columnIndexStart: R,
1530
1572
  columnIndexEnd: m - g - 1,
1531
1573
  verticalFixed: !1,
1532
- lastRowOfModel: C
1533
- }), n.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height: v, top: x, index: f }, S = this.dom.addRowDiv(s, y, f, e, "west"), this.adjustColumnsToRowParent({
1574
+ lastRowOfModel: w
1575
+ }), n.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height: v, top: x, index: u }, S = this.dom.addRowDiv(s, y, u, e, "west"), this.adjustColumnsToRowParent({
1534
1576
  areaIdent: e,
1535
1577
  sideIdent: "west",
1536
1578
  areaModel: c,
1537
1579
  geo: y,
1538
1580
  parent: S,
1539
- rowIndex: f,
1581
+ rowIndex: u,
1540
1582
  columnIndexStart: 0,
1541
1583
  columnIndexEnd: R - 1,
1542
1584
  verticalFixed: !0,
1543
- lastRowOfModel: C
1544
- })), n.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height: v, top: x, index: f }, S = this.dom.addRowDiv(i, y, f, e, "east"), this.adjustColumnsToRowParent({
1585
+ lastRowOfModel: w
1586
+ })), n.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height: v, top: x, index: u }, S = this.dom.addRowDiv(i, y, u, e, "east"), this.adjustColumnsToRowParent({
1545
1587
  areaIdent: e,
1546
1588
  sideIdent: "east",
1547
1589
  areaModel: c,
1548
1590
  geo: y,
1549
1591
  parent: S,
1550
- rowIndex: f,
1592
+ rowIndex: u,
1551
1593
  columnIndexStart: m - g,
1552
1594
  columnIndexEnd: m - 1,
1553
1595
  verticalFixed: !0,
1554
- lastRowOfModel: C
1555
- })), e === "header" && this.tree && f === p - 1) {
1556
- const A = this.dom.applyStyle(
1596
+ lastRowOfModel: w
1597
+ })), e === "header" && this.tree && u === p - 1) {
1598
+ const E = this.dom.applyStyle(
1557
1599
  this.dom.setAttribute(
1558
1600
  this.dom.addDiv(S, new T(16, 20, 20, 8)),
1559
1601
  "data-ge-action",
@@ -1562,30 +1604,30 @@ class we extends ye {
1562
1604
  { cursor: "pointer" }
1563
1605
  ), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
1564
1606
  if (M) {
1565
- const I = this.dom.domService.createText(M.content);
1566
- this.dom.domService.appendChild(A, I), M.style && this.dom.applyStyleString(A, M.style);
1607
+ const O = this.dom.domService.createText(M.content);
1608
+ this.dom.domService.appendChild(E, O), M.style && this.dom.applyStyleString(E, M.style);
1567
1609
  }
1568
1610
  }
1569
1611
  }
1570
1612
  if (h = h + v, h > r) {
1571
- e === "body" && (this.displayedRowCount = this.firstVisibleRowIndex - f);
1613
+ e === "body" && (this.displayedRowCount = this.firstVisibleRowIndex - u);
1572
1614
  break;
1573
1615
  }
1574
1616
  }
1575
1617
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1576
- const f = ((u = this.colAndRowspanModels[e]) == null ? void 0 : u.getRanges()) ?? [];
1577
- if (f.length)
1578
- for (const x of f) {
1579
- let C = 0, v = o.child, y = "center";
1618
+ const u = ((f = this.colAndRowspanModels[e]) == null ? void 0 : f.getRanges()) ?? [];
1619
+ if (u.length)
1620
+ for (const x of u) {
1621
+ let w = 0, v = o.child, y = "center";
1580
1622
  if (x.c1 < b)
1581
1623
  v = s.child, y = "west";
1582
1624
  else if (g > 0 && x.c1 >= m - g)
1583
1625
  v = i.child, y = "east";
1584
1626
  else {
1585
1627
  const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1586
- C = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
1628
+ w = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
1587
1629
  }
1588
- this.drawBigCell(x, C, t, c, v, y);
1630
+ this.drawBigCell(x, w, t, c, v, y);
1589
1631
  }
1590
1632
  }
1591
1633
  }
@@ -1600,10 +1642,10 @@ class we extends ye {
1600
1642
  * @protected
1601
1643
  */
1602
1644
  drawBigCell(e, t, s, o, i, r) {
1603
- const a = s + this.getRowHeights(0, e.r1 - 1, o).reduce((u, f) => u + f, 0), l = this.tableModel.getColumnCount(), n = this.tableModel.getFixedRightColumnCount();
1645
+ const a = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, u) => f + u, 0), l = this.tableModel.getColumnCount(), n = this.tableModel.getFixedRightColumnCount();
1604
1646
  let c = 0;
1605
1647
  n > 0 && e.c1 >= l - n && (c = l - n);
1606
- const p = t + this.getColumnWidths(c, e.c1 - 1).reduce((u, f) => u + f, 0), h = this.getRowHeights(e.r1, e.r2, o).reduce((u, f) => u + f, 0), m = this.getColumnWidths(e.c1, e.c2).reduce((u, f) => u + f, 0);
1648
+ const p = t + this.getColumnWidths(c, e.c1 - 1).reduce((f, u) => f + u, 0), h = this.getRowHeights(e.r1, e.r2, o).reduce((f, u) => f + u, 0), m = this.getColumnWidths(e.c1, e.c2).reduce((f, u) => f + u, 0);
1607
1649
  let g = !1;
1608
1650
  const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
1609
1651
  b && (g = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
@@ -1687,47 +1729,47 @@ class we extends ye {
1687
1729
  this.scrollViewportLeft = this.scrollViewport.scrollLeft;
1688
1730
  let p = 0;
1689
1731
  if (!n) {
1690
- const u = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1691
- p = this.scrollFactorX * u;
1732
+ const f = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1733
+ p = this.scrollFactorX * f;
1692
1734
  }
1693
1735
  const h = 0, m = !!(e === "body" && t);
1694
1736
  let g = p;
1695
- for (let u = a; u <= l; u++) {
1696
- const f = g, x = this.tableModel.getColumnWidth(u);
1697
- if (x > 0 && f + x > 0) {
1698
- let C = o.height;
1699
- const v = s.getRowspanAt(r, u), y = s.getColspanAt(r, u);
1700
- v > 1 && (C = this.getRowHeights(r, r + v - 1, s).reduce((A, M) => A + M, 0));
1737
+ for (let f = a; f <= l; f++) {
1738
+ const u = g, x = this.tableModel.getColumnWidth(f);
1739
+ if (x > 0 && u + x > 0) {
1740
+ let w = o.height;
1741
+ const v = s.getRowspanAt(r, f), y = s.getColspanAt(r, f);
1742
+ v > 1 && (w = this.getRowHeights(r, r + v - 1, s).reduce((E, M) => E + M, 0));
1701
1743
  let S = x;
1702
- y > 1 && (S = this.getColumnWidths(u, u + y - 1).reduce((A, M) => A + M, 0));
1744
+ y > 1 && (S = this.getColumnWidths(f, f + y - 1).reduce((E, M) => E + M, 0));
1703
1745
  let R = !1;
1704
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, u) && (R = !0), this.draggingTargetColumnIndex === u && e !== "header") {
1705
- this.renderDragTargetDiv(i, f, h, S, C);
1706
- const A = { left: f, top: h, width: S, height: C };
1707
- this.dom.addColumnBorderDivs(this.tableOptions, i, A, e, t);
1746
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, f) && (R = !0), this.draggingTargetColumnIndex === f && e !== "header") {
1747
+ this.renderDragTargetDiv(i, u, h, S, w);
1748
+ const E = { left: u, top: h, width: S, height: w };
1749
+ this.dom.addColumnBorderDivs(this.tableOptions, i, E, e, t);
1708
1750
  } else {
1709
- const A = this.renderSelectedBackgroundDiv(R, m, t, s, r, u, i, f, h, S, C);
1710
- "gammaCells" in s && s.getValueAt(r, u) && (R = !1), R || this.renderCell({
1751
+ const E = this.renderSelectedBackgroundDiv(R, m, t, s, r, f, i, u, h, S, w);
1752
+ "gammaCells" in s && s.getValueAt(r, f) && (R = !1), R || this.renderCell({
1711
1753
  areaModel: s,
1712
1754
  areaIdent: e,
1713
1755
  sideIdent: t,
1714
1756
  rowIndex: r,
1715
- columnIndex: u,
1716
- left: f,
1757
+ columnIndex: f,
1758
+ left: u,
1717
1759
  top: h,
1718
1760
  width: S,
1719
- height: C,
1761
+ height: w,
1720
1762
  parent: i,
1721
- cellSelected: A,
1763
+ cellSelected: E,
1722
1764
  lastRowOfModel: c,
1723
1765
  gammaRange: !0
1724
1766
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1725
1767
  rowIndex: r,
1726
- columnIndex: u,
1727
- cellLeft: f,
1768
+ columnIndex: f,
1769
+ cellLeft: u,
1728
1770
  cellTop: h,
1729
1771
  cellWidth: S,
1730
- cellHeight: C,
1772
+ cellHeight: w,
1731
1773
  parent: i
1732
1774
  });
1733
1775
  }
@@ -1762,19 +1804,19 @@ class we extends ye {
1762
1804
  parent: c,
1763
1805
  lastRowOfModel: p
1764
1806
  }) {
1765
- var N;
1807
+ var U;
1766
1808
  const m = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: a, height: l, top: n, index: i }, b = e.getRowByIndex(o);
1767
- let u = "none";
1809
+ let f = "none";
1768
1810
  if (i === this.getTreeArrowColumnIndex() && L(b)) {
1769
- const w = b;
1770
- (N = w.children) != null && N.length ? w.expanded ? u = "expanded" : u = "collapsed" : u = "hidden";
1811
+ const C = b;
1812
+ (U = C.children) != null && U.length ? C.expanded ? f = "expanded" : f = "collapsed" : f = "hidden";
1771
1813
  }
1772
1814
  let x;
1773
1815
  if (t === "header") {
1774
- const w = this.tableModel.getColumnDef(i);
1775
- (!(w != null && w.sortIconVisible) || w != null && w.sortIconVisible()) && (x = w == null ? void 0 : w.sortState);
1816
+ const C = this.tableModel.getColumnDef(i);
1817
+ (!(C != null && C.sortIconVisible) || C != null && C.sortIconVisible()) && (x = C == null ? void 0 : C.sortState);
1776
1818
  }
1777
- const C = e.getValueAt(o, i), v = m ? "" : `${C}`, y = e.isRowChecked(o), S = this.dom.addColumnDiv(
1819
+ const w = e.getValueAt(o, i), v = m ? "" : `${w}`, y = e.isRowChecked(o), S = this.dom.addColumnDiv(
1778
1820
  {
1779
1821
  parent: c,
1780
1822
  geo: g,
@@ -1783,27 +1825,27 @@ class we extends ye {
1783
1825
  areaIdent: t,
1784
1826
  sideIdent: s,
1785
1827
  text: v,
1786
- treeArrow: u,
1828
+ treeArrow: f,
1787
1829
  tableOptions: this.tableOptions,
1788
1830
  checkedType: y,
1789
1831
  sortState: x
1790
1832
  }
1791
1833
  ), R = e.getTooltipAt(o, i);
1792
1834
  R && this.dom.setAttribute(S, "title", R);
1793
- const A = this.tableModel.getColumnDef(i);
1794
- A && A.classes[t] && this.dom.addClasses(A.classes[t], S);
1835
+ const E = this.tableModel.getColumnDef(i);
1836
+ E && E.classes[t] && this.dom.addClasses(E.classes[t], S);
1795
1837
  let M;
1796
- m && (M = m.render(S, o, i, t, e, C, this.dom.domService));
1797
- const I = e.getCustomClassesAt(o, i);
1798
- if (I.length && this.dom.addClasses(I, S), this.dom.addColumnBorderDivs(this.tableOptions, c, g, t, s), p && this.dom.addHorizontalBorder({ left: r, width: a, height: l, top: n + l }, c), this.getFocusModel && t === "body") {
1799
- const w = this.getFocusModel();
1800
- w != null && w.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
1838
+ m && (M = m.render(S, o, i, t, e, w, this.dom.domService));
1839
+ const O = e.getCustomClassesAt(o, i);
1840
+ if (O.length && this.dom.addClasses(O, S), this.dom.addColumnBorderDivs(this.tableOptions, c, g, t, s), p && this.dom.addHorizontalBorder({ left: r, width: a, height: l, top: n + l }, c), this.getFocusModel && t === "body") {
1841
+ const C = this.getFocusModel();
1842
+ C != null && C.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
1801
1843
  }
1802
1844
  t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
1803
- const W = e.getCustomStyleAt(o, i);
1804
- if (W)
1805
- for (const w in W)
1806
- this.dom.setStyle(S, w, W[w]);
1845
+ const $ = e.getCustomStyleAt(o, i);
1846
+ if ($)
1847
+ for (const C in $)
1848
+ this.dom.setStyle(S, C, $[C]);
1807
1849
  return [S, M];
1808
1850
  }
1809
1851
  /**
@@ -1970,7 +2012,7 @@ class we extends ye {
1970
2012
  if (r) {
1971
2013
  const a = e.index ?? 0, l = this.draggingColumn;
1972
2014
  for (let n = 0; n < r; n++) {
1973
- const c = s, p = i.getRowHeight(n), h = { left: 0, width: e.width, height: p, top: c, index: n }, m = i.getValueAt(n, a), g = i.getCellRenderer(n, a), b = g ? "" : `${m}`, u = {
2015
+ const c = s, p = i.getRowHeight(n), h = { left: 0, width: e.width, height: p, top: c, index: n }, m = i.getValueAt(n, a), g = i.getCellRenderer(n, a), b = g ? "" : `${m}`, f = {
1974
2016
  parent: l,
1975
2017
  geo: h,
1976
2018
  rowIndex: n,
@@ -1978,17 +2020,17 @@ class we extends ye {
1978
2020
  areaIdent: t,
1979
2021
  sideIdent: o,
1980
2022
  text: b
1981
- }, f = this.dom.addColumnDiv(u);
2023
+ }, u = this.dom.addColumnDiv(f);
1982
2024
  let x;
1983
- g && (x = g.render(f, n, a, t, i, m, this.dom.domService), x && this.cleanupFunctions[t].push(x));
1984
- const C = i.getCustomClassesAt(n, a);
1985
- C.length && this.dom.addClasses(C, f);
2025
+ g && (x = g.render(u, n, a, t, i, m, this.dom.domService), x && this.cleanupFunctions[t].push(x));
2026
+ const w = i.getCustomClassesAt(n, a);
2027
+ w.length && this.dom.addClasses(w, u);
1986
2028
  const v = this.tableModel.getColumnDef(a);
1987
- v && v.classes[t] && this.dom.addClasses(v.classes[t], f), this.dom.addColumnBorderDivs(this.tableOptions, l, h, t, o);
2029
+ v && v.classes[t] && this.dom.addClasses(v.classes[t], u), this.dom.addColumnBorderDivs(this.tableOptions, l, h, t, o);
1988
2030
  const y = i.getCustomStyleAt(n, a);
1989
2031
  if (y)
1990
2032
  for (const S in y)
1991
- this.dom.setStyle(f, S, y[S]);
2033
+ this.dom.setStyle(u, S, y[S]);
1992
2034
  s = s + p;
1993
2035
  }
1994
2036
  }
@@ -2046,11 +2088,11 @@ class we extends ye {
2046
2088
  const g = m.getSelectionCount(i, r);
2047
2089
  h = g > 0;
2048
2090
  for (let b = 0; b < g; b++) {
2049
- const u = this.dom.applyStylePosistionAbsolute(
2091
+ const f = this.dom.applyStylePosistionAbsolute(
2050
2092
  // ge-table-body-west-selected-range
2051
2093
  this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, a)
2052
2094
  );
2053
- this.dom.setStyle(u, "left", `${l}px`), this.dom.setStyle(u, "top", `${n}px`), this.dom.setStyle(u, "width", `${c}px`), this.dom.setStyle(u, "height", `${p}px`);
2095
+ this.dom.setStyle(f, "left", `${l}px`), this.dom.setStyle(f, "top", `${n}px`), this.dom.setStyle(f, "width", `${c}px`), this.dom.setStyle(f, "height", `${p}px`);
2054
2096
  }
2055
2097
  }
2056
2098
  }
@@ -2128,7 +2170,7 @@ class ve {
2128
2170
  this.columnIndex = e, this.sortState = t;
2129
2171
  }
2130
2172
  }
2131
- class Ee {
2173
+ class Ae {
2132
2174
  constructor(e) {
2133
2175
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
2134
2176
  }
@@ -2144,23 +2186,23 @@ class Ee {
2144
2186
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
2145
2187
  const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
2146
2188
  if (s && o && i) {
2147
- const r = V(s), a = Number(o), l = Number(i);
2189
+ const r = _(s), a = Number(o), l = Number(i);
2148
2190
  this.tableScope.updateModelValueAfterEdit(r, a, l, t.value);
2149
2191
  }
2150
2192
  }
2151
2193
  }
2152
2194
  }
2153
- class Ae {
2195
+ class Ee {
2154
2196
  constructor(e = -1, t = -1) {
2155
2197
  this.rowIndex = e, this.columnIndex = t;
2156
2198
  }
2157
2199
  }
2158
- class G {
2200
+ class z {
2159
2201
  constructor(e) {
2160
2202
  this.cells = e;
2161
2203
  }
2162
2204
  static createSingle(e, t) {
2163
- return new G([new Ae(e, t)]);
2205
+ return new z([new Ee(e, t)]);
2164
2206
  }
2165
2207
  }
2166
2208
  class Me {
@@ -2173,7 +2215,7 @@ class Me {
2173
2215
  let s = !1, o = !1;
2174
2216
  if (this.getSelectionModel && this.getFocusModel) {
2175
2217
  const h = this.getSelectionModel(), m = this.getFocusModel();
2176
- h && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(m), s = !0), (i = e.originalEvent) != null && i.shiftKey || h.hasSelection() && (h.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (h.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (a = e.originalEvent) != null && a.altKey && ((l = e.originalEvent) != null && l.ctrlKey || (n = e.originalEvent) != null && n.metaKey) ? (h.removeSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (p = e.originalEvent) != null && p.metaKey ? (h.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (h.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(h));
2218
+ h && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(m), s = !0), (i = e.originalEvent) != null && i.shiftKey || h.hasSelection() && (h.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (h.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (a = e.originalEvent) != null && a.altKey && ((l = e.originalEvent) != null && l.ctrlKey || (n = e.originalEvent) != null && n.metaKey) ? (h.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (p = e.originalEvent) != null && p.metaKey ? (h.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (h.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(h));
2177
2219
  }
2178
2220
  return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
2179
2221
  }
@@ -2196,7 +2238,7 @@ class Me {
2196
2238
  createRangeByEvents(e, t) {
2197
2239
  t || (t = e);
2198
2240
  const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
2199
- return E.create({
2241
+ return A.create({
2200
2242
  rowIndex1: s,
2201
2243
  columnIndex1: i,
2202
2244
  rowIndex2: o,
@@ -2252,7 +2294,7 @@ function De(d) {
2252
2294
  return o !== i ? o - i : e.localeCompare(t);
2253
2295
  }).join(" ");
2254
2296
  }
2255
- function j(d) {
2297
+ function X(d) {
2256
2298
  let e = d.key.toLowerCase();
2257
2299
  if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" && d.code === "Delete" && (e = "delete"), e === "backspace" && (e = "backspace"), e === "escape" && (e = "esc"), e === "return" && (e = "enter"), d.code.startsWith("Numpad")) {
2258
2300
  const s = d.code.replace("Numpad", "").toLowerCase();
@@ -2307,10 +2349,10 @@ class ke {
2307
2349
  return t;
2308
2350
  }
2309
2351
  findEntity(e) {
2310
- const t = j(e);
2352
+ const t = X(e);
2311
2353
  this.isDebug() && console.debug("ShortcutService shortcut :", t);
2312
2354
  for (const s in this.shortcutActionIdMapping)
2313
- if (j(e) === t)
2355
+ if (X(e) === t)
2314
2356
  return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
2315
2357
  }
2316
2358
  // private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
@@ -2357,7 +2399,7 @@ class ke {
2357
2399
  return this.shortcutActionIdMapping;
2358
2400
  }
2359
2401
  }
2360
- class X {
2402
+ class K {
2361
2403
  onCheckboxChanged(e) {
2362
2404
  }
2363
2405
  onContextmenu(e) {
@@ -2377,7 +2419,7 @@ class X {
2377
2419
  onFocusChanged(e) {
2378
2420
  }
2379
2421
  }
2380
- class Z {
2422
+ class Q {
2381
2423
  setStyle(e, t, s) {
2382
2424
  return e.style[t] = s, e;
2383
2425
  }
@@ -2444,7 +2486,7 @@ class Ie {
2444
2486
  this.silent || this.listenerArr.forEach((e) => e.onSelectionChanged(this));
2445
2487
  }
2446
2488
  firstClick(e, t) {
2447
- this.selectionType === "row" ? this.addRange(E.singleRow(e)) : this.selectionType === "column" && this.addRange(E.singleColumn(t));
2489
+ this.selectionType === "row" ? this.addRange(A.singleRow(e)) : this.selectionType === "column" && this.addRange(A.singleColumn(t));
2448
2490
  }
2449
2491
  getSelectionCount(e, t) {
2450
2492
  let s = 0;
@@ -2495,10 +2537,10 @@ class Ie {
2495
2537
  if (this.selectionType === "none")
2496
2538
  return;
2497
2539
  let t = e;
2498
- this.selectionType === "row" ? t = E.singleRow(e.r1) : this.selectionType === "column" && (t = E.singleColumn(e.c1)), this.negativeRanges.push(t), this.fireChangeEvent();
2540
+ this.selectionType === "row" ? t = A.singleRow(e.r1) : this.selectionType === "column" && (t = A.singleColumn(e.c1)), this.negativeRanges.push(t), this.fireChangeEvent();
2499
2541
  }
2500
2542
  togglePoint(e, t) {
2501
- this.getSelectionCount(e, t) > 0 ? this.removeSelection(E.singleCell(e, t)) : this.addSelection(E.singleCell(e, t));
2543
+ this.getSelectionCount(e, t) > 0 ? this.removeSelection(A.singleCell(e, t)) : this.addSelection(A.singleCell(e, t));
2502
2544
  }
2503
2545
  isSelected(e, t) {
2504
2546
  return this.getSelectionCount(e, t) > 0;
@@ -2507,7 +2549,7 @@ class Ie {
2507
2549
  this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e), this.fireChangeEvent());
2508
2550
  }
2509
2551
  }
2510
- class Le {
2552
+ class Oe {
2511
2553
  constructor(e = "none") {
2512
2554
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2513
2555
  }
@@ -2544,7 +2586,7 @@ class Le {
2544
2586
  return [this.rowIndex, this.columnIndex];
2545
2587
  }
2546
2588
  }
2547
- class Q {
2589
+ class ee {
2548
2590
  constructor(e = new D(
2549
2591
  "❯",
2550
2592
  "",
@@ -2558,17 +2600,17 @@ class Q {
2558
2600
  }
2559
2601
  // `⊖ `, `⊕ `;
2560
2602
  }
2561
- const Oe = new Ie(), Be = new Le("cell");
2562
- class ee {
2603
+ const Le = new Ie(), Be = new Oe("cell");
2604
+ class te {
2563
2605
  constructor() {
2564
2606
  this.overflowX = "auto", this.overflowY = "auto", this.horizontalBorderVisible = !0, this.verticalBorderVisible = !0, this.footerSeparatorBorderVisible = !0, this.headerSeparatorBorderVisible = !0, this.fixedEastSeparatorBorderVisible = !0, this.fixedWestSeparatorBorderVisible = !0, this.tableTopBorderVisible = !0, this.tableBottomBorderVisible = !0, this.hoverRowVisible = !0, this.hoverColumnVisible = !0, this.columnsResizable = !0, this.columnsDraggable = !0, this.columnResizeHandleWidthInPx = 4, this.defaultRowHeights = {
2565
2607
  header: 34,
2566
2608
  body: 34,
2567
2609
  footer: 34
2568
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new q(), this.headerGroupOptions = new Q(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new J(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new Fe(), this.getSelectionModel = () => Oe, this.getFocusModel = () => Be;
2610
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new J(), this.headerGroupOptions = new ee(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Z(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new Fe(), this.getSelectionModel = () => Le, this.getFocusModel = () => Be;
2569
2611
  }
2570
2612
  }
2571
- const F = class F {
2613
+ const I = class I {
2572
2614
  /**
2573
2615
  * Returns the content to be copied based on the provided table model, selection model, and focus model.
2574
2616
  *
@@ -2591,9 +2633,9 @@ const F = class F {
2591
2633
  const p = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
2592
2634
  n.push(p);
2593
2635
  }
2594
- a.push(n.join(F.columnSeparatorChar));
2636
+ a.push(n.join(I.columnSeparatorChar));
2595
2637
  }
2596
- return o(a.join(F.rowSeparatorChar));
2638
+ return o(a.join(I.rowSeparatorChar));
2597
2639
  }
2598
2640
  }
2599
2641
  if (s) {
@@ -2646,16 +2688,16 @@ const F = class F {
2646
2688
  mergeRanges(e) {
2647
2689
  let t;
2648
2690
  for (const s of e)
2649
- t ? (t.r1 = Math.min(t.r1, s.r1), t.c1 = Math.min(t.c1, s.c1), t.r2 = Math.max(t.r2, s.r2), t.c2 = Math.max(t.c2, s.c2)) : t = new E(s.r1, s.c1, s.r2, s.c2);
2691
+ t ? (t.r1 = Math.min(t.r1, s.r1), t.c1 = Math.min(t.c1, s.c1), t.r2 = Math.max(t.r2, s.r2), t.c2 = Math.max(t.c2, s.c2)) : t = new A(s.r1, s.c1, s.r2, s.c2);
2650
2692
  return t;
2651
2693
  }
2652
2694
  };
2653
- F.columnSeparatorChar = " ", F.rowSeparatorChar = `
2695
+ I.columnSeparatorChar = " ", I.rowSeparatorChar = `
2654
2696
  `;
2655
- let O = F;
2697
+ let B = I;
2656
2698
  class Pe {
2657
2699
  constructor(e, t = 500) {
2658
- this.tableScope = e, this.debounceDelay = t, new ResizeObserver(le(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
2700
+ this.tableScope = e, this.debounceDelay = t, new ResizeObserver(ne(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
2659
2701
  }
2660
2702
  handleResize(e) {
2661
2703
  const t = e[0], { width: s } = t.contentRect;
@@ -2743,8 +2785,8 @@ class We {
2743
2785
  let s = 0;
2744
2786
  const o = [];
2745
2787
  e.forEach((p, h) => {
2746
- const m = new TextEncoder().encode(h), g = new TextEncoder().encode(p), b = new Uint8Array(30 + m.length), u = new DataView(b.buffer);
2747
- b.set([80, 75, 3, 4], 0), u.setUint16(4, 20, !0), u.setUint16(6, 0, !0), u.setUint16(8, 0, !0), u.setUint16(10, 0, !0), u.setUint16(12, 0, !0), u.setUint32(14, 0, !0), u.setUint32(18, g.length, !0), u.setUint32(22, g.length, !0), u.setUint16(26, m.length, !0), u.setUint16(28, 0, !0), b.set(m, 30), t.push(b, g), o.push({
2788
+ const m = new TextEncoder().encode(h), g = new TextEncoder().encode(p), b = new Uint8Array(30 + m.length), f = new DataView(b.buffer);
2789
+ b.set([80, 75, 3, 4], 0), f.setUint16(4, 20, !0), f.setUint16(6, 0, !0), f.setUint16(8, 0, !0), f.setUint16(10, 0, !0), f.setUint16(12, 0, !0), f.setUint32(14, 0, !0), f.setUint32(18, g.length, !0), f.setUint32(22, g.length, !0), f.setUint16(26, m.length, !0), f.setUint16(28, 0, !0), b.set(m, 30), t.push(b, g), o.push({
2748
2790
  path: h,
2749
2791
  offset: s,
2750
2792
  contentSize: g.length
@@ -2768,14 +2810,14 @@ class We {
2768
2810
  return this.createZip(s);
2769
2811
  }
2770
2812
  }
2771
- class z extends we {
2772
- constructor(e, t, s, o, i, r = new O(), a = new We()) {
2813
+ class N extends Ce {
2814
+ constructor(e, t, s, o, i, r = new B(), a = new We()) {
2773
2815
  var c;
2774
- if (super(e, t, new ne(s), o), this.eventListener = i, this.copyService = r, this.excelService = a, this.licenseManager = k.getInstance(), this.selectionService = new Me(this), this.api = new ue(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), i || (this.eventListener = new X()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
2816
+ if (super(e, t, new ce(s), o), this.eventListener = i, this.copyService = r, this.excelService = a, this.licenseManager = k.getInstance(), this.selectionService = new Me(this), this.api = new fe(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), i || (this.eventListener = new K()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
2775
2817
  const p = this.tableOptions.autoRestoreOptions, h = p.getStorageKeyFn;
2776
- h && (p.autoRestoreScrollPosition && (this.storeScrollPosStateService = new fe(h)), p.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new be(h)), p.autoRestoreSortingState && (this.storeSortingService = new Se(h)));
2818
+ h && (p.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ue(h)), p.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new be(h)), p.autoRestoreSortingState && (this.storeSortingService = new Se(h)));
2777
2819
  }
2778
- this.mouseHandler = new de(this), this.inputHandler = new Ee(this), this.resizeHandler = new Pe(this, o.resizeEventDebounceDelay), this.shortcutService = new ke(this), this.shortcutService.addListener(this.selectionService);
2820
+ this.mouseHandler = new he(this), this.inputHandler = new Ae(this), this.resizeHandler = new Pe(this, o.resizeEventDebounceDelay), this.shortcutService = new ke(this), this.shortcutService.addListener(this.selectionService);
2779
2821
  const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
2780
2822
  l && l.addEventSelectionChangedListener(this);
2781
2823
  const n = this.getFocusModel ? this.getFocusModel() : void 0;
@@ -2793,8 +2835,8 @@ class z extends we {
2793
2835
  *
2794
2836
  * @return {TableScope} - The newly created TableScope instance.
2795
2837
  */
2796
- static create(e, t, s = new ee(), o = new X(), i = new Z(), r = new O()) {
2797
- return new z(e, t, i, s, o, r);
2838
+ static create(e, t, s = new te(), o = new K(), i = new Q(), r = new B()) {
2839
+ return new N(e, t, i, s, o, r);
2798
2840
  }
2799
2841
  /**
2800
2842
  * Triggers an action based on the provided actionId.
@@ -2822,7 +2864,7 @@ class z extends we {
2822
2864
  return !1;
2823
2865
  }
2824
2866
  updateModelValueAfterEdit(e, t, s, o) {
2825
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(G.createSingle(t, s)), this.hostElement.focus());
2867
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(z.createSingle(t, s)), this.hostElement.focus());
2826
2868
  }
2827
2869
  /**
2828
2870
  * Retrieves the TableApi object.
@@ -2851,7 +2893,7 @@ class z extends we {
2851
2893
  * @return {GeMouseEvent} - The created GeMouseEvent object.
2852
2894
  */
2853
2895
  createGeMouseEvent(e) {
2854
- const t = new H();
2896
+ const t = new V();
2855
2897
  if (t.originalEvent = e, e) {
2856
2898
  const s = e.target;
2857
2899
  if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(s), t.rowIndex = this.getNumberByAttr(s, "data-row-index"), t.columnIndex = this.getNumberByAttr(s, "data-col-index"), t.action = this.getStringByAttr(s, "data-ge-action"), t.areaIdent) {
@@ -2927,7 +2969,7 @@ class z extends we {
2927
2969
  toggleExpandCollapseAll(e = !0) {
2928
2970
  var s;
2929
2971
  const t = this.tableModel.getBodyModel();
2930
- $(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
2972
+ H(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
2931
2973
  }
2932
2974
  /**
2933
2975
  * Toggles the checkbox state of a specific row in a table.
@@ -3143,7 +3185,7 @@ class z extends we {
3143
3185
  const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
3144
3186
  if (s.autoRestoreCollapsedExpandedState && o) {
3145
3187
  const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
3146
- if ($(r)) {
3188
+ if (H(r)) {
3147
3189
  const a = r, l = r.getRowCount();
3148
3190
  for (let n = 0; n < l; n++) {
3149
3191
  const c = r.getRowByIndex(n);
@@ -3197,9 +3239,9 @@ class z extends we {
3197
3239
  return this.displayedRowCount;
3198
3240
  }
3199
3241
  }
3200
- const B = class B {
3242
+ const P = class P {
3201
3243
  };
3202
- B.themes = ["light", "combat", "paper", "blackboard"], B.vars = {
3244
+ P.themes = ["light", "combat", "paper", "blackboard"], P.vars = {
3203
3245
  light: `html[data-theme="light"] {
3204
3246
  --ge-table-bg: rgba(255,255,255, 0.5);
3205
3247
  --ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
@@ -3433,15 +3475,15 @@ B.themes = ["light", "combat", "paper", "blackboard"], B.vars = {
3433
3475
  --ge-table-drop-zone-bg: #758129;
3434
3476
  }`
3435
3477
  };
3436
- let K = B;
3437
- const P = class P {
3438
- constructor(e = new Q()) {
3478
+ let Y = P;
3479
+ const W = class W {
3480
+ constructor(e = new ee()) {
3439
3481
  this.headerGroupOptions = e;
3440
3482
  }
3441
3483
  render(e, t, s, o, i, r, a) {
3442
3484
  const l = r != null && r.data ? r.data : "";
3443
3485
  if (r) {
3444
- const { toggle: n, visibility: c, closed: p } = r, h = n ? P.toggleHeaderGroup : "";
3486
+ const { toggle: n, visibility: c, closed: p } = r, h = n ? W.toggleHeaderGroup : "";
3445
3487
  this.addText(e, o, t, s, l, h), n && c !== "always" && this.addArrowDiv(a, e, !p, t, s, o, h);
3446
3488
  } else
3447
3489
  this.addText(e, o, t, s, l, "");
@@ -3473,9 +3515,9 @@ const P = class P {
3473
3515
  }
3474
3516
  }
3475
3517
  };
3476
- P.toggleHeaderGroup = "toggleHeaderGroup";
3477
- let Y = P;
3478
- const $e = te({
3518
+ W.toggleHeaderGroup = "toggleHeaderGroup";
3519
+ let q = W;
3520
+ const $e = se({
3479
3521
  inheritAttrs: !1,
3480
3522
  props: {
3481
3523
  tableModel: {
@@ -3484,7 +3526,7 @@ const $e = te({
3484
3526
  },
3485
3527
  tableOptions: {
3486
3528
  required: !1,
3487
- default: new ee(),
3529
+ default: new te(),
3488
3530
  type: Object
3489
3531
  },
3490
3532
  debounceMouseClickDelay: {
@@ -3509,7 +3551,7 @@ const $e = te({
3509
3551
  "mouseMoved"
3510
3552
  ],
3511
3553
  setup(d, { emit: e }) {
3512
- const t = se(null), s = (o) => {
3554
+ const t = oe(null), s = (o) => {
3513
3555
  const i = {
3514
3556
  onSelectionChanged: (a) => {
3515
3557
  e("selectionChanged", a);
@@ -3538,16 +3580,16 @@ const $e = te({
3538
3580
  onMouseMoved: (a) => {
3539
3581
  e("mouseMoved", a);
3540
3582
  }
3541
- }, r = new z(
3583
+ }, r = new N(
3542
3584
  o,
3543
3585
  d.tableModel,
3544
- new Z(),
3586
+ new Q(),
3545
3587
  d.tableOptions,
3546
3588
  i
3547
3589
  );
3548
3590
  r.firstInit(), e("tableReady", r.getApi());
3549
3591
  };
3550
- return oe(() => {
3592
+ return ie(() => {
3551
3593
  t.value && s(t.value);
3552
3594
  }), d.licenseKey && k.getInstance().setLicenseKey(d.licenseKey), {
3553
3595
  root: t
@@ -3564,7 +3606,7 @@ const $e = te({
3564
3606
  style: { width: "100%", height: "100%", "background-color": "transparent", padding: "0", margin: "0" }
3565
3607
  };
3566
3608
  function _e(d, e, t, s, o, i) {
3567
- return re(), ie("div", Ve, null, 512);
3609
+ return ae(), re("div", Ve, null, 512);
3568
3610
  }
3569
3611
  const Ge = /* @__PURE__ */ He($e, [["render", _e]]);
3570
3612
  class Ne {
@@ -3587,9 +3629,9 @@ class Ne {
3587
3629
  );
3588
3630
  }
3589
3631
  mount(e, t, s, o) {
3590
- let i = ae(e, t);
3591
- return i.appContext = s, U(i, o), () => {
3592
- o && U(null, o);
3632
+ let i = le(e, t);
3633
+ return i.appContext = s, j(i, o), () => {
3634
+ o && j(null, o);
3593
3635
  };
3594
3636
  }
3595
3637
  }