@guiexpert/vue3-table 3.1.77 → 3.1.79

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 +10 -7
  2. package/index.js +173 -145
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -7,14 +7,14 @@ function ne(d, e = 500) {
7
7
  }, e);
8
8
  };
9
9
  }
10
- class k {
10
+ class I {
11
11
  // The constructor is private to prevent direct construction calls
12
12
  // with the `new` operator
13
13
  constructor() {
14
14
  this.alreadySet = !1;
15
15
  }
16
16
  static getInstance() {
17
- return k.instance || (k.instance = new k()), k.instance;
17
+ return I.instance || (I.instance = new I()), I.instance;
18
18
  }
19
19
  /**
20
20
  * Method to set the license key for the application.
@@ -32,18 +32,18 @@ class k {
32
32
  }
33
33
  }
34
34
  }
35
- function L(d) {
35
+ function O(d) {
36
36
  return d && d.type === "TreeRow";
37
37
  }
38
- function H(d) {
38
+ function $(d) {
39
39
  return d && d.type === "AreaModelTree";
40
40
  }
41
- class V {
41
+ class H {
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 V(
46
+ return new H(
47
47
  this.rowIndex,
48
48
  this.rowTop,
49
49
  this.columnIndex,
@@ -58,25 +58,25 @@ class V {
58
58
  );
59
59
  }
60
60
  }
61
- class D {
61
+ class F {
62
62
  constructor(e = ">", t = "", s = []) {
63
63
  this.content = e, this.style = t, this.classes = s;
64
64
  }
65
65
  }
66
66
  class J {
67
- constructor(e = new D(
67
+ constructor(e = new F(
68
68
  ">",
69
69
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
70
70
  ["gt-table-tree-arrow-expanded"]
71
- ), t = new D(
71
+ ), t = new F(
72
72
  ">",
73
73
  "",
74
74
  ["ge-table-tree-arrow-collapsed"]
75
- ), s = new D(
75
+ ), s = new F(
76
76
  ">",
77
77
  "color:transparent;",
78
78
  ["gt-table-tree-arrow-hidden"]
79
- ), o = new D(
79
+ ), o = new F(
80
80
  "↕",
81
81
  "",
82
82
  ["gt-table-tree-arrow-expanded-all"]
@@ -85,7 +85,7 @@ class J {
85
85
  }
86
86
  }
87
87
  class Z {
88
- constructor(e = new D("↑", "", ["ge-header-sorted-asc"]), t = new D("↓", "", ["ge-header-sorted-desc"]), s = new D("↑", "color:transparent;", [])) {
88
+ constructor(e = new F("↑", "", ["ge-header-sorted-asc"]), t = new F("↓", "", ["ge-header-sorted-desc"]), s = new F("↑", "color:transparent;", [])) {
89
89
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
90
90
  }
91
91
  }
@@ -177,10 +177,10 @@ class ce {
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 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);
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);
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
  }
@@ -323,7 +323,7 @@ class he {
323
323
  this.tableScope.toggleHeaderGroup(s), e.preventDefault(), e.stopPropagation();
324
324
  else if (s.inputType === "checkbox" && s.areaIdent)
325
325
  this.tableScope.toggleRowCheckbox(s.rowIdx, s.colIdx, s.areaIdent), e.preventDefault(), e.stopPropagation();
326
- else if (L(s.row) && s.areaModel) {
326
+ else if (O(s.row) && s.areaModel) {
327
327
  const o = s.colIdx === this.getArrowColumnIndex() && e.altKey, i = s.className.includes("ge-table-tree-arrow-div");
328
328
  if (o || i) {
329
329
  e.preventDefault(), e.stopPropagation();
@@ -350,7 +350,7 @@ class he {
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")) {
352
352
  const l = a.getRowByIndex(i);
353
- if (s && o === "body" && a.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), L(l) && r === this.getArrowColumnIndex()) {
353
+ if (s && o === "body" && a.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), O(l) && r === this.getArrowColumnIndex()) {
354
354
  e.preventDefault(), e.stopPropagation();
355
355
  const n = l;
356
356
  n.expanded = !n.expanded, "recalcVisibleTreeRows" in a && a.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(n);
@@ -534,7 +534,7 @@ class ge {
534
534
  return s * ("" + e).localeCompare("" + t);
535
535
  }
536
536
  }
537
- class F extends pe {
537
+ class D extends pe {
538
538
  constructor(e, t, s, o = [], i = "ge-selected-row", r = "ge-focused-row") {
539
539
  super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.sorterService = new ge(), this._focusedRowIndex = 0, this.filteredRows = [...t], this.properties = o.map((a) => a.property);
540
540
  }
@@ -560,7 +560,7 @@ class F extends pe {
560
560
  getValueAt(e, t) {
561
561
  const s = this.properties[t];
562
562
  let o = this.filteredRows[e];
563
- return L(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
563
+ return O(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
564
564
  }
565
565
  /**
566
566
  * Retrieves the filtered and sorted rows from the dataset.
@@ -638,7 +638,7 @@ class F extends pe {
638
638
  return o && t.length ? this.getPropertyValue(o, t) : o;
639
639
  }
640
640
  }
641
- class fe {
641
+ class ue {
642
642
  constructor(e) {
643
643
  this.tableScope = e;
644
644
  }
@@ -920,7 +920,7 @@ class fe {
920
920
  */
921
921
  setRows(e) {
922
922
  const t = this.getBodyModel();
923
- 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);
923
+ t instanceof D ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
924
924
  }
925
925
  /**
926
926
  * Adds new rows to the end of the table body.
@@ -938,7 +938,7 @@ class fe {
938
938
  */
939
939
  addRows(e) {
940
940
  const t = this.getBodyModel();
941
- if (t instanceof F) {
941
+ if (t instanceof D) {
942
942
  const s = t;
943
943
  let o = s.getAllRows();
944
944
  s.setRows([...o, ...e]);
@@ -963,7 +963,7 @@ class fe {
963
963
  */
964
964
  addRowsAt(e, t) {
965
965
  const s = this.getBodyModel();
966
- if (s instanceof F) {
966
+ if (s instanceof D) {
967
967
  const o = s;
968
968
  let i = o.getAllRows();
969
969
  o.setRows([...i.slice(0, t), ...e, ...i.slice(t)]);
@@ -989,7 +989,7 @@ class fe {
989
989
  */
990
990
  removeRows(e, t = (s, o) => s === o) {
991
991
  const s = this.getBodyModel();
992
- if (s instanceof F) {
992
+ if (s instanceof D) {
993
993
  const o = s, i = o.getAllRows().filter((r) => !e.some((a) => t(r, a)));
994
994
  o.setRows(i);
995
995
  } else
@@ -1030,7 +1030,7 @@ class fe {
1030
1030
  */
1031
1031
  findRows(e, t = (s, o) => s === o) {
1032
1032
  const s = this.getBodyModel();
1033
- 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), []);
1033
+ return s instanceof D ? 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), []);
1034
1034
  }
1035
1035
  /**
1036
1036
  * Searches through the filtered rows of the table to find a row that matches specific criteria.
@@ -1087,7 +1087,7 @@ class fe {
1087
1087
  */
1088
1088
  findRowFromFilteredRowsByAllCriteria(e, t) {
1089
1089
  const s = this.getBodyModel();
1090
- if (s instanceof F)
1090
+ if (s instanceof D)
1091
1091
  return s.getFilteredRows().find((i) => t(e, i));
1092
1092
  console.warn("findRowFromFilteredRowsByAllCriteria(...) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
1093
1093
  }
@@ -1134,7 +1134,7 @@ class fe {
1134
1134
  */
1135
1135
  findRowFromAllRowsByAllCriteria(e, t) {
1136
1136
  const s = this.getBodyModel();
1137
- if (s instanceof F)
1137
+ if (s instanceof D)
1138
1138
  return s.getAllRows().find((i) => t(e, i));
1139
1139
  console.warn("findRowFromAllRowsByAllCriteria(...) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
1140
1140
  }
@@ -1159,7 +1159,7 @@ class fe {
1159
1159
  */
1160
1160
  updateRows(e, t = (s, o) => s === o) {
1161
1161
  const s = this.getBodyModel();
1162
- if (s instanceof F) {
1162
+ if (s instanceof D) {
1163
1163
  let i = s.getAllRows();
1164
1164
  for (const r of i)
1165
1165
  for (const a of e)
@@ -1328,6 +1328,21 @@ class fe {
1328
1328
  getFirstVisibleRowIndex() {
1329
1329
  return this.tableScope.getFirstVisibleRowIndex();
1330
1330
  }
1331
+ getFirstFullVisibleRowIndex() {
1332
+ return this.tableScope.getFirstFullVisibleRowIndex();
1333
+ }
1334
+ getLastVisibleRowIndex() {
1335
+ return this.tableScope.getLastVisibleRowIndex();
1336
+ }
1337
+ getLastFullVisibleRowIndex() {
1338
+ return this.tableScope.getLastFullVisibleRowIndex();
1339
+ }
1340
+ setLoggingActive(e) {
1341
+ this.tableScope.loggingActive = e;
1342
+ }
1343
+ isLoggingActive() {
1344
+ return this.tableScope.loggingActive;
1345
+ }
1331
1346
  }
1332
1347
  class G {
1333
1348
  constructor(e) {
@@ -1396,7 +1411,7 @@ class G {
1396
1411
  // }
1397
1412
  // }
1398
1413
  }
1399
- class ue extends G {
1414
+ class fe extends G {
1400
1415
  constructor(e) {
1401
1416
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
1402
1417
  }
@@ -1730,11 +1745,11 @@ class xe {
1730
1745
  class Ce extends ye {
1731
1746
  constructor(e, t, s, o) {
1732
1747
  var r, a;
1733
- 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 = {
1748
+ super(e, t, s, o), this.firstVisibleRowIndex = -1, this.lastVisibleRowIndex = -1, this.firstFullVisibleRowIndex = -1, this.lastFullVisibleRowIndex = -1, this.displayedRowCount = 0, this.pixelLimitForFullVisible = 5, this.loggingActive = !1, this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
1734
1749
  header: [],
1735
1750
  body: [],
1736
1751
  footer: []
1737
- }, this.tree = !1, this.colAndRowspanModels = new xe(), 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(
1752
+ }, this.tree = !1, this.colAndRowspanModels = new xe(), this.draggingTargetColumnIndex = -1, this.removables = [], 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(
1738
1753
  (l) => {
1739
1754
  var n;
1740
1755
  this.colAndRowspanModels[l] = new we(t, t.getAreaModel(l)), (n = this.colAndRowspanModels[l]) == null || n.init();
@@ -1893,6 +1908,21 @@ class Ce extends ye {
1893
1908
  this.dom.setStyle(l, g, m[g]);
1894
1909
  }
1895
1910
  }
1911
+ getFirstVisibleRowIndex() {
1912
+ return this.firstVisibleRowIndex;
1913
+ }
1914
+ getLastVisibleRowIndex() {
1915
+ return this.lastVisibleRowIndex;
1916
+ }
1917
+ getFirstFullVisibleRowIndex() {
1918
+ return this.firstFullVisibleRowIndex;
1919
+ }
1920
+ getLastFullVisibleRowIndex() {
1921
+ return this.lastFullVisibleRowIndex;
1922
+ }
1923
+ getDisplayedRowCount() {
1924
+ return this.displayedRowCount;
1925
+ }
1896
1926
  /**
1897
1927
  * Stores the widths of all columns in the table.
1898
1928
  *
@@ -1988,21 +2018,22 @@ class Ce extends ye {
1988
2018
  * @protected
1989
2019
  */
1990
2020
  adjustArea(e, t = 0) {
1991
- var f;
2021
+ var u;
1992
2022
  const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
1993
2023
  s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
1994
2024
  const a = 0, l = this.areaBodyCenterGeo.width, n = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), p = c.getRowCount();
1995
2025
  for (; this.cleanupFunctions[e].length; ) {
1996
- const u = this.cleanupFunctions[e].shift();
1997
- u && u();
2026
+ const f = this.cleanupFunctions[e].shift();
2027
+ f && f();
1998
2028
  }
1999
2029
  let h = t;
2000
2030
  const m = this.tableModel.getColumnCount(), g = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
2001
- for (let u = 0; u < p; u++) {
2002
- const w = h, x = u === p - 1, v = this.tableModel.getRowHeight(e, u);
2031
+ e === "body" && (this.firstVisibleRowIndex = -1, this.firstFullVisibleRowIndex = -1, this.lastVisibleRowIndex = -1, this.lastFullVisibleRowIndex = -1);
2032
+ for (let f = 0; f < p; f++) {
2033
+ const w = h, x = f === p - 1, v = this.tableModel.getRowHeight(e, f);
2003
2034
  if (w + v > 0) {
2004
- this.firstVisibleRowIndex = u;
2005
- let y = { left: a, width: l, height: v, top: w, index: u }, S = this.dom.addRowDiv(o, y, u, e, "center");
2035
+ e === "body" && this.firstVisibleRowIndex === -1 && (this.firstVisibleRowIndex = f, this.firstFullVisibleRowIndex = w < -this.pixelLimitForFullVisible ? this.firstVisibleRowIndex + 1 : this.firstVisibleRowIndex);
2036
+ let y = { left: a, width: l, height: v, top: w, index: f }, S = this.dom.addRowDiv(o, y, f, e, "center");
2006
2037
  const M = b;
2007
2038
  if (this.adjustColumnsToRowParent({
2008
2039
  areaIdent: e,
@@ -2010,57 +2041,60 @@ class Ce extends ye {
2010
2041
  areaModel: c,
2011
2042
  geo: y,
2012
2043
  parent: S,
2013
- rowIndex: u,
2044
+ rowIndex: f,
2014
2045
  columnIndexStart: M,
2015
2046
  columnIndexEnd: m - g - 1,
2016
2047
  verticalFixed: !1,
2017
2048
  lastRowOfModel: x
2018
- }), n.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height: v, top: w, index: u }, S = this.dom.addRowDiv(s, y, u, e, "west"), this.adjustColumnsToRowParent({
2049
+ }), n.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height: v, top: w, index: f }, S = this.dom.addRowDiv(s, y, f, e, "west"), this.adjustColumnsToRowParent({
2019
2050
  areaIdent: e,
2020
2051
  sideIdent: "west",
2021
2052
  areaModel: c,
2022
2053
  geo: y,
2023
2054
  parent: S,
2024
- rowIndex: u,
2055
+ rowIndex: f,
2025
2056
  columnIndexStart: 0,
2026
2057
  columnIndexEnd: M - 1,
2027
2058
  verticalFixed: !0,
2028
2059
  lastRowOfModel: x
2029
- })), n.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height: v, top: w, index: u }, S = this.dom.addRowDiv(i, y, u, e, "east"), this.adjustColumnsToRowParent({
2060
+ })), n.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height: v, top: w, index: f }, S = this.dom.addRowDiv(i, y, f, e, "east"), this.adjustColumnsToRowParent({
2030
2061
  areaIdent: e,
2031
2062
  sideIdent: "east",
2032
2063
  areaModel: c,
2033
2064
  geo: y,
2034
2065
  parent: S,
2035
- rowIndex: u,
2066
+ rowIndex: f,
2036
2067
  columnIndexStart: m - g,
2037
2068
  columnIndexEnd: m - 1,
2038
2069
  verticalFixed: !0,
2039
2070
  lastRowOfModel: x
2040
- })), e === "header" && this.tree && u === p - 1) {
2041
- const E = this.dom.applyStyle(
2071
+ })), e === "header" && this.tree && f === p - 1) {
2072
+ const R = this.dom.applyStyle(
2042
2073
  this.dom.setAttribute(
2043
2074
  this.dom.addDiv(S, new T(16, 20, 20, 8)),
2044
2075
  "data-ge-action",
2045
2076
  "toggleExpandCollapseAll"
2046
2077
  ),
2047
2078
  { cursor: "pointer" }
2048
- ), R = this.tableOptions.treeOptions.arrowExpandCollapseAll;
2049
- if (R) {
2050
- const O = this.dom.domService.createText(R.content);
2051
- this.dom.domService.appendChild(E, O), R.style && this.dom.applyStyleString(E, R.style);
2079
+ ), E = this.tableOptions.treeOptions.arrowExpandCollapseAll;
2080
+ if (E) {
2081
+ const L = this.dom.domService.createText(E.content);
2082
+ this.dom.domService.appendChild(R, L), E.style && this.dom.applyStyleString(R, E.style);
2052
2083
  }
2053
2084
  }
2054
2085
  }
2055
2086
  if (h = h + v, h > r) {
2056
- e === "body" && (this.displayedRowCount = this.firstVisibleRowIndex - u);
2087
+ e === "body" && (this.lastVisibleRowIndex = f, this.lastFullVisibleRowIndex = r - h < -this.pixelLimitForFullVisible ? f - 1 : f, this.displayedRowCount = this.lastFullVisibleRowIndex - this.firstFullVisibleRowIndex + 1);
2057
2088
  break;
2058
2089
  }
2059
2090
  }
2060
- if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
2061
- const u = ((f = this.colAndRowspanModels[e]) == null ? void 0 : f.getRanges()) ?? [];
2062
- if (u.length)
2063
- for (const w of u) {
2091
+ if (this.loggingActive && e === "body" && console.log("render scope: this.firstVisibleRowIndex <- " + this.firstVisibleRowIndex + `
2092
+ render scope: this.firstFullVisibleRowIndex <- ` + this.firstFullVisibleRowIndex + `
2093
+ render scope: this.lastVisibleRowIndex <- ` + this.lastVisibleRowIndex + `
2094
+ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex), this.colAndRowspanModels && this.colAndRowspanModels[e]) {
2095
+ const f = ((u = this.colAndRowspanModels[e]) == null ? void 0 : u.getRanges()) ?? [];
2096
+ if (f.length)
2097
+ for (const w of f) {
2064
2098
  let x = 0, v = o.child, y = "center";
2065
2099
  if (w.c1 < b)
2066
2100
  v = s.child, y = "west";
@@ -2085,10 +2119,10 @@ class Ce extends ye {
2085
2119
  * @protected
2086
2120
  */
2087
2121
  drawBigCell(e, t, s, o, i, r) {
2088
- const a = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, u) => f + u, 0), l = this.tableModel.getColumnCount(), n = this.tableModel.getFixedRightColumnCount();
2122
+ const a = s + this.getRowHeights(0, e.r1 - 1, o).reduce((u, f) => u + f, 0), l = this.tableModel.getColumnCount(), n = this.tableModel.getFixedRightColumnCount();
2089
2123
  let c = 0;
2090
2124
  n > 0 && e.c1 >= l - n && (c = l - n);
2091
- 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);
2125
+ 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);
2092
2126
  let g = !1;
2093
2127
  const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
2094
2128
  b && (g = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
@@ -2172,44 +2206,44 @@ class Ce extends ye {
2172
2206
  this.scrollViewportLeft = this.scrollViewport.scrollLeft;
2173
2207
  let p = 0;
2174
2208
  if (!n) {
2175
- const f = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
2176
- p = this.scrollFactorX * f;
2209
+ const u = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
2210
+ p = this.scrollFactorX * u;
2177
2211
  }
2178
2212
  const h = 0, m = !!(e === "body" && t);
2179
2213
  let g = p;
2180
- for (let f = a; f <= l; f++) {
2181
- const u = g, w = this.tableModel.getColumnWidth(f);
2182
- if (w > 0 && u + w > 0) {
2214
+ for (let u = a; u <= l; u++) {
2215
+ const f = g, w = this.tableModel.getColumnWidth(u);
2216
+ if (w > 0 && f + w > 0) {
2183
2217
  let x = o.height;
2184
- const v = s.getRowspanAt(r, f), y = s.getColspanAt(r, f);
2185
- v > 1 && (x = this.getRowHeights(r, r + v - 1, s).reduce((E, R) => E + R, 0));
2218
+ const v = s.getRowspanAt(r, u), y = s.getColspanAt(r, u);
2219
+ v > 1 && (x = this.getRowHeights(r, r + v - 1, s).reduce((R, E) => R + E, 0));
2186
2220
  let S = w;
2187
- y > 1 && (S = this.getColumnWidths(f, f + y - 1).reduce((E, R) => E + R, 0));
2221
+ y > 1 && (S = this.getColumnWidths(u, u + y - 1).reduce((R, E) => R + E, 0));
2188
2222
  let M = !1;
2189
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, f) && (M = !0), this.draggingTargetColumnIndex === f && e !== "header") {
2190
- this.renderDragTargetDiv(i, u, h, S, x);
2191
- const E = { left: u, top: h, width: S, height: x };
2192
- this.dom.addColumnBorderDivs(this.tableOptions, i, E, e, t);
2223
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, u) && (M = !0), this.draggingTargetColumnIndex === u && e !== "header") {
2224
+ this.renderDragTargetDiv(i, f, h, S, x);
2225
+ const R = { left: f, top: h, width: S, height: x };
2226
+ this.dom.addColumnBorderDivs(this.tableOptions, i, R, e, t);
2193
2227
  } else {
2194
- const E = this.renderSelectedBackgroundDiv(M, m, t, s, r, f, i, u, h, S, x);
2195
- "gammaCells" in s && s.getValueAt(r, f) && (M = !1), M || this.renderCell({
2228
+ const R = this.renderSelectedBackgroundDiv(M, m, t, s, r, u, i, f, h, S, x);
2229
+ "gammaCells" in s && s.getValueAt(r, u) && (M = !1), M || this.renderCell({
2196
2230
  areaModel: s,
2197
2231
  areaIdent: e,
2198
2232
  sideIdent: t,
2199
2233
  rowIndex: r,
2200
- columnIndex: f,
2201
- left: u,
2234
+ columnIndex: u,
2235
+ left: f,
2202
2236
  top: h,
2203
2237
  width: S,
2204
2238
  height: x,
2205
2239
  parent: i,
2206
- cellSelected: E,
2240
+ cellSelected: R,
2207
2241
  lastRowOfModel: c,
2208
2242
  gammaRange: !0
2209
2243
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
2210
2244
  rowIndex: r,
2211
- columnIndex: f,
2212
- cellLeft: u,
2245
+ columnIndex: u,
2246
+ cellLeft: f,
2213
2247
  cellTop: h,
2214
2248
  cellWidth: S,
2215
2249
  cellHeight: x,
@@ -2249,10 +2283,10 @@ class Ce extends ye {
2249
2283
  }) {
2250
2284
  var U;
2251
2285
  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);
2252
- let f = "none";
2253
- if (i === this.getTreeArrowColumnIndex() && L(b)) {
2286
+ let u = "none";
2287
+ if (i === this.getTreeArrowColumnIndex() && O(b)) {
2254
2288
  const C = b;
2255
- (U = C.children) != null && U.length ? C.expanded ? f = "expanded" : f = "collapsed" : f = "hidden";
2289
+ (U = C.children) != null && U.length ? C.expanded ? u = "expanded" : u = "collapsed" : u = "hidden";
2256
2290
  }
2257
2291
  let w;
2258
2292
  if (t === "header") {
@@ -2268,28 +2302,28 @@ class Ce extends ye {
2268
2302
  areaIdent: t,
2269
2303
  sideIdent: s,
2270
2304
  text: v,
2271
- treeArrow: f,
2305
+ treeArrow: u,
2272
2306
  tableOptions: this.tableOptions,
2273
2307
  checkedType: y,
2274
2308
  sortState: w
2275
2309
  }
2276
2310
  ), M = e.getTooltipAt(o, i);
2277
2311
  M && this.dom.setAttribute(S, "title", M);
2278
- const E = this.tableModel.getColumnDef(i);
2279
- E && E.classes[t] && this.dom.addClasses(E.classes[t], S);
2280
- let R;
2281
- m && (R = m.render(S, o, i, t, e, x, this.dom.domService));
2282
- const O = e.getCustomClassesAt(o, i);
2283
- 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") {
2312
+ const R = this.tableModel.getColumnDef(i);
2313
+ R && R.classes[t] && this.dom.addClasses(R.classes[t], S);
2314
+ let E;
2315
+ m && (E = m.render(S, o, i, t, e, x, this.dom.domService));
2316
+ const L = e.getCustomClassesAt(o, i);
2317
+ if (L.length && this.dom.addClasses(L, 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") {
2284
2318
  const C = this.getFocusModel();
2285
2319
  C != null && C.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
2286
2320
  }
2287
2321
  t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
2288
- const $ = e.getCustomStyleAt(o, i);
2289
- if ($)
2290
- for (const C in $)
2291
- this.dom.setStyle(S, C, $[C]);
2292
- return [S, R];
2322
+ const W = e.getCustomStyleAt(o, i);
2323
+ if (W)
2324
+ for (const C in W)
2325
+ this.dom.setStyle(S, C, W[C]);
2326
+ return [S, E];
2293
2327
  }
2294
2328
  /**
2295
2329
  * Applies CSS classes to an HTML element.
@@ -2455,7 +2489,7 @@ class Ce extends ye {
2455
2489
  if (r) {
2456
2490
  const a = e.index ?? 0, l = this.draggingColumn;
2457
2491
  for (let n = 0; n < r; n++) {
2458
- 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 = {
2492
+ 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 = {
2459
2493
  parent: l,
2460
2494
  geo: h,
2461
2495
  rowIndex: n,
@@ -2463,17 +2497,17 @@ class Ce extends ye {
2463
2497
  areaIdent: t,
2464
2498
  sideIdent: o,
2465
2499
  text: b
2466
- }, u = this.dom.addColumnDiv(f);
2500
+ }, f = this.dom.addColumnDiv(u);
2467
2501
  let w;
2468
- g && (w = g.render(u, n, a, t, i, m, this.dom.domService), w && this.cleanupFunctions[t].push(w));
2502
+ g && (w = g.render(f, n, a, t, i, m, this.dom.domService), w && this.cleanupFunctions[t].push(w));
2469
2503
  const x = i.getCustomClassesAt(n, a);
2470
- x.length && this.dom.addClasses(x, u);
2504
+ x.length && this.dom.addClasses(x, f);
2471
2505
  const v = this.tableModel.getColumnDef(a);
2472
- v && v.classes[t] && this.dom.addClasses(v.classes[t], u), this.dom.addColumnBorderDivs(this.tableOptions, l, h, t, o);
2506
+ v && v.classes[t] && this.dom.addClasses(v.classes[t], f), this.dom.addColumnBorderDivs(this.tableOptions, l, h, t, o);
2473
2507
  const y = i.getCustomStyleAt(n, a);
2474
2508
  if (y)
2475
2509
  for (const S in y)
2476
- this.dom.setStyle(u, S, y[S]);
2510
+ this.dom.setStyle(f, S, y[S]);
2477
2511
  s = s + p;
2478
2512
  }
2479
2513
  }
@@ -2531,11 +2565,11 @@ class Ce extends ye {
2531
2565
  const g = m.getSelectionCount(i, r);
2532
2566
  h = g > 0;
2533
2567
  for (let b = 0; b < g; b++) {
2534
- const f = this.dom.applyStylePosistionAbsolute(
2568
+ const u = this.dom.applyStylePosistionAbsolute(
2535
2569
  // ge-table-body-west-selected-range
2536
2570
  this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, a)
2537
2571
  );
2538
- 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`);
2572
+ 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`);
2539
2573
  }
2540
2574
  }
2541
2575
  }
@@ -2635,7 +2669,7 @@ class Ae {
2635
2669
  }
2636
2670
  }
2637
2671
  }
2638
- class Ee {
2672
+ class Re {
2639
2673
  constructor(e = -1, t = -1) {
2640
2674
  this.rowIndex = e, this.columnIndex = t;
2641
2675
  }
@@ -2645,10 +2679,10 @@ class z {
2645
2679
  this.cells = e;
2646
2680
  }
2647
2681
  static createSingle(e, t) {
2648
- return new z([new Ee(e, t)]);
2682
+ return new z([new Re(e, t)]);
2649
2683
  }
2650
2684
  }
2651
- class Re {
2685
+ class Ee {
2652
2686
  constructor(e) {
2653
2687
  var t, s;
2654
2688
  this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (s = this.tableScope.tableOptions) != null && s.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
@@ -2731,7 +2765,7 @@ class Te {
2731
2765
  };
2732
2766
  }
2733
2767
  }
2734
- function De(d) {
2768
+ function Fe(d) {
2735
2769
  return d.trim().replace(/\+/g, " ").replace(/ +/g, " ").replace(/⌫/g, "backspace").replace(/↩/g, "enter").replace(/⇧/g, "shift").replace(/⌥/g, "alt").replace(/option/g, "alt").replace(/opt/g, "alt").replace(/⌃/g, "ctrl").replace(/control/g, "ctrl").replace(/command/g, "cmd").replace(/meta/g, "cmd").replace(/escape/g, "esc").replace(/⌘/g, "cmd").replace(/\*/g, "multiply").split(" ").filter((e) => e).filter((e, t, s) => s.indexOf(e) === t).sort((e, t) => {
2736
2770
  const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
2737
2771
  return o !== i ? o - i : e.localeCompare(t);
@@ -2745,9 +2779,9 @@ function X(d) {
2745
2779
  }
2746
2780
  d.code.match(/^F\d+$/) && (e = d.code.toLowerCase()), d.code.match(/^Digit\d+$/) && (e = d.code.replace(/Digit/g, ""));
2747
2781
  let t = "";
2748
- return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"), De(t + " " + e);
2782
+ return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"), Fe(t + " " + e);
2749
2783
  }
2750
- class Fe {
2784
+ class De {
2751
2785
  constructor(e) {
2752
2786
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
2753
2787
  }
@@ -2889,7 +2923,7 @@ class Q {
2889
2923
  e.setAttribute(t, s);
2890
2924
  }
2891
2925
  }
2892
- class ke {
2926
+ class Ie {
2893
2927
  render(e, t, s, o, i, r, a) {
2894
2928
  if (i.isEditable(t, s)) {
2895
2929
  a.addClass(e, "ge-table-row-input-div");
@@ -2910,7 +2944,7 @@ class ke {
2910
2944
  }
2911
2945
  }
2912
2946
  }
2913
- class Ie {
2947
+ class ke {
2914
2948
  constructor(e = "none", t = "single") {
2915
2949
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
2916
2950
  }
@@ -2992,7 +3026,7 @@ class Ie {
2992
3026
  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());
2993
3027
  }
2994
3028
  }
2995
- class Oe {
3029
+ class Le {
2996
3030
  constructor(e = "none") {
2997
3031
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2998
3032
  }
@@ -3030,11 +3064,11 @@ class Oe {
3030
3064
  }
3031
3065
  }
3032
3066
  class ee {
3033
- constructor(e = new D(
3067
+ constructor(e = new F(
3034
3068
  "❯",
3035
3069
  "",
3036
3070
  ["gt-table-icon-expanded"]
3037
- ), t = new D(
3071
+ ), t = new F(
3038
3072
  "❯",
3039
3073
  "transform: rotate(180deg) translate(-100%, -100%); transform-origin: 0 0;",
3040
3074
  ["ge-table-icon-collapsed"]
@@ -3043,17 +3077,17 @@ class ee {
3043
3077
  }
3044
3078
  // `⊖ `, `⊕ `;
3045
3079
  }
3046
- const Le = new Ie(), Be = new Oe("cell");
3080
+ const Oe = new ke(), Be = new Le("cell");
3047
3081
  class te {
3048
3082
  constructor() {
3049
3083
  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 = {
3050
3084
  header: 34,
3051
3085
  body: 34,
3052
3086
  footer: 34
3053
- }, 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 ke(), this.getSelectionModel = () => Le, this.getFocusModel = () => Be;
3087
+ }, 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 Ie(), this.getSelectionModel = () => Oe, this.getFocusModel = () => Be;
3054
3088
  }
3055
3089
  }
3056
- const I = class I {
3090
+ const k = class k {
3057
3091
  /**
3058
3092
  * Returns the content to be copied based on the provided table model, selection model, and focus model.
3059
3093
  *
@@ -3076,9 +3110,9 @@ const I = class I {
3076
3110
  const p = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
3077
3111
  n.push(p);
3078
3112
  }
3079
- a.push(n.join(I.columnSeparatorChar));
3113
+ a.push(n.join(k.columnSeparatorChar));
3080
3114
  }
3081
- return o(a.join(I.rowSeparatorChar));
3115
+ return o(a.join(k.rowSeparatorChar));
3082
3116
  }
3083
3117
  }
3084
3118
  if (s) {
@@ -3135,9 +3169,9 @@ const I = class I {
3135
3169
  return t;
3136
3170
  }
3137
3171
  };
3138
- I.columnSeparatorChar = " ", I.rowSeparatorChar = `
3172
+ k.columnSeparatorChar = " ", k.rowSeparatorChar = `
3139
3173
  `;
3140
- let B = I;
3174
+ let B = k;
3141
3175
  class Pe {
3142
3176
  constructor(e, t = 500) {
3143
3177
  this.tableScope = e, this.debounceDelay = t, new ResizeObserver(ne(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
@@ -3147,7 +3181,7 @@ class Pe {
3147
3181
  this.tableScope.recalcColumnWidths(s);
3148
3182
  }
3149
3183
  }
3150
- class We {
3184
+ class Ve {
3151
3185
  /**
3152
3186
  * Downloads a matrix data as an Excel file.
3153
3187
  *
@@ -3228,8 +3262,8 @@ class We {
3228
3262
  let s = 0;
3229
3263
  const o = [];
3230
3264
  e.forEach((p, h) => {
3231
- const m = new TextEncoder().encode(h), g = new TextEncoder().encode(p), b = new Uint8Array(30 + m.length), f = new DataView(b.buffer);
3232
- 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({
3265
+ const m = new TextEncoder().encode(h), g = new TextEncoder().encode(p), b = new Uint8Array(30 + m.length), u = new DataView(b.buffer);
3266
+ 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({
3233
3267
  path: h,
3234
3268
  offset: s,
3235
3269
  contentSize: g.length
@@ -3254,13 +3288,13 @@ class We {
3254
3288
  }
3255
3289
  }
3256
3290
  class N extends Ce {
3257
- constructor(e, t, s, o, i, r = new B(), a = new We()) {
3291
+ constructor(e, t, s, o, i, r = new B(), a = new Ve()) {
3258
3292
  var c;
3259
- if (super(e, t, new ce(s), o), this.eventListener = i, this.copyService = r, this.excelService = a, this.licenseManager = k.getInstance(), this.selectionService = new Re(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) {
3293
+ if (super(e, t, new ce(s), o), this.eventListener = i, this.copyService = r, this.excelService = a, this.licenseManager = I.getInstance(), this.selectionService = new Ee(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 K()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
3260
3294
  const p = this.tableOptions.autoRestoreOptions, h = p.getStorageKeyFn;
3261
- h && (p.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ue(h)), p.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new be(h)), p.autoRestoreSortingState && (this.storeSortingService = new Se(h)));
3295
+ h && (p.autoRestoreScrollPosition && (this.storeScrollPosStateService = new fe(h)), p.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new be(h)), p.autoRestoreSortingState && (this.storeSortingService = new Se(h)));
3262
3296
  }
3263
- this.mouseHandler = new he(this), this.inputHandler = new Ae(this), this.resizeHandler = new Pe(this, o.resizeEventDebounceDelay), this.shortcutService = new Fe(this), this.shortcutService.addListener(this.selectionService);
3297
+ this.mouseHandler = new he(this), this.inputHandler = new Ae(this), this.resizeHandler = new Pe(this, o.resizeEventDebounceDelay), this.shortcutService = new De(this), this.shortcutService.addListener(this.selectionService);
3264
3298
  const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
3265
3299
  l && l.addEventSelectionChangedListener(this);
3266
3300
  const n = this.getFocusModel ? this.getFocusModel() : void 0;
@@ -3336,7 +3370,7 @@ class N extends Ce {
3336
3370
  * @return {GeMouseEvent} - The created GeMouseEvent object.
3337
3371
  */
3338
3372
  createGeMouseEvent(e) {
3339
- const t = new V();
3373
+ const t = new H();
3340
3374
  if (t.originalEvent = e, e) {
3341
3375
  const s = e.target;
3342
3376
  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) {
@@ -3412,7 +3446,7 @@ class N extends Ce {
3412
3446
  toggleExpandCollapseAll(e = !0) {
3413
3447
  var s;
3414
3448
  const t = this.tableModel.getBodyModel();
3415
- H(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
3449
+ $(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
3416
3450
  }
3417
3451
  /**
3418
3452
  * Toggles the checkbox state of a specific row in a table.
@@ -3628,7 +3662,7 @@ class N extends Ce {
3628
3662
  const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
3629
3663
  if (s.autoRestoreCollapsedExpandedState && o) {
3630
3664
  const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
3631
- if (H(r)) {
3665
+ if ($(r)) {
3632
3666
  const a = r, l = r.getRowCount();
3633
3667
  for (let n = 0; n < l; n++) {
3634
3668
  const c = r.getRowByIndex(n);
@@ -3681,9 +3715,6 @@ class N extends Ce {
3681
3715
  sort(e) {
3682
3716
  this.tableModel.sort(e);
3683
3717
  }
3684
- getDisplayedRowCount() {
3685
- return this.displayedRowCount;
3686
- }
3687
3718
  /**
3688
3719
  * Ensures that a specific row is visible in the viewport by scrolling if necessary.
3689
3720
  * This method checks if the target row is within the currently visible range and
@@ -3736,11 +3767,8 @@ class N extends Ce {
3736
3767
  * @see {@link getDisplayedRowCount} - Related method for getting visible row count
3737
3768
  */
3738
3769
  ensureRowIsVisible(e) {
3739
- const t = this.firstVisibleRowIndex, s = this.firstVisibleRowIndex + this.displayedRowCount - 1;
3740
- return e < t ? (this.scrollToIndex(0, e + 2), !0) : e > s ? (this.scrollToIndex(0, e - 2), !0) : !1;
3741
- }
3742
- getFirstVisibleRowIndex() {
3743
- return this.firstVisibleRowIndex;
3770
+ const t = this.getFirstFullVisibleRowIndex(), s = this.getLastFullVisibleRowIndex(), o = this.getDisplayedRowCount();
3771
+ return e < t ? (this.scrollToIndex(0, e), !0) : e > s ? (this.scrollToIndex(0, e - o + 1), !0) : !1;
3744
3772
  }
3745
3773
  }
3746
3774
  const P = class P {
@@ -3980,14 +4008,14 @@ P.themes = ["light", "combat", "paper", "blackboard"], P.vars = {
3980
4008
  }`
3981
4009
  };
3982
4010
  let Y = P;
3983
- const W = class W {
4011
+ const V = class V {
3984
4012
  constructor(e = new ee()) {
3985
4013
  this.headerGroupOptions = e;
3986
4014
  }
3987
4015
  render(e, t, s, o, i, r, a) {
3988
4016
  const l = r != null && r.data ? r.data : "";
3989
4017
  if (r) {
3990
- const { toggle: n, visibility: c, closed: p } = r, h = n ? W.toggleHeaderGroup : "";
4018
+ const { toggle: n, visibility: c, closed: p } = r, h = n ? V.toggleHeaderGroup : "";
3991
4019
  this.addText(e, o, t, s, l, h), n && c !== "always" && this.addArrowDiv(a, e, !p, t, s, o, h);
3992
4020
  } else
3993
4021
  this.addText(e, o, t, s, l, "");
@@ -4019,9 +4047,9 @@ const W = class W {
4019
4047
  }
4020
4048
  }
4021
4049
  };
4022
- W.toggleHeaderGroup = "toggleHeaderGroup";
4023
- let q = W;
4024
- const $e = se({
4050
+ V.toggleHeaderGroup = "toggleHeaderGroup";
4051
+ let q = V;
4052
+ const We = se({
4025
4053
  inheritAttrs: !1,
4026
4054
  props: {
4027
4055
  tableModel: {
@@ -4095,24 +4123,24 @@ const $e = se({
4095
4123
  };
4096
4124
  return ie(() => {
4097
4125
  t.value && s(t.value);
4098
- }), d.licenseKey && k.getInstance().setLicenseKey(d.licenseKey), {
4126
+ }), d.licenseKey && I.getInstance().setLicenseKey(d.licenseKey), {
4099
4127
  root: t
4100
4128
  };
4101
4129
  }
4102
- }), He = (d, e) => {
4130
+ }), $e = (d, e) => {
4103
4131
  const t = d.__vccOpts || d;
4104
4132
  for (const [s, o] of e)
4105
4133
  t[s] = o;
4106
4134
  return t;
4107
- }, Ve = {
4135
+ }, He = {
4108
4136
  ref: "root",
4109
4137
  class: "container-div",
4110
4138
  style: { width: "100%", height: "100%", "background-color": "transparent", padding: "0", margin: "0" }
4111
4139
  };
4112
4140
  function _e(d, e, t, s, o, i) {
4113
- return ae(), re("div", Ve, null, 512);
4141
+ return ae(), re("div", He, null, 512);
4114
4142
  }
4115
- const Ge = /* @__PURE__ */ He($e, [["render", _e]]);
4143
+ const Ge = /* @__PURE__ */ $e(We, [["render", _e]]);
4116
4144
  class Ne {
4117
4145
  constructor(e, t) {
4118
4146
  this.component = e, this.appContext = t;