@guiexpert/table 1.1.9 → 1.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -78,7 +78,7 @@ class ge {
78
78
  this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = o, this.arrowExpandCollapseAll = s;
79
79
  }
80
80
  }
81
- class be {
81
+ class pe {
82
82
  constructor(e = new O("↑", "", ["ge-header-sorted-asc"]), t = new O("↓", "", ["ge-header-sorted-desc"]), o = new O("↑", "color:transparent;", [])) {
83
83
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = o;
84
84
  }
@@ -169,14 +169,14 @@ class Ce {
169
169
  return this.domService.appendChild(e.child, l), l;
170
170
  }
171
171
  addColumnDiv(e) {
172
- const { parent: t, geo: o, rowIndex: s = -1, columnIndex: i = -1, areaIdent: r, sideIdent: n, text: l = "", treeArrow: d, tableOptions: a, checkedType: h = void 0, sortState: u } = e, w = a == null ? void 0 : a.treeOptions, f = a == null ? void 0 : a.showCheckboxWihoutExtraColumn, p = this.domService.createElement("div");
173
- this.domService.addClass(p, "ge-table-col-div"), this.domService.addClass(p, `ge-table-col-div-${o.index}`), this.domService.setAttribute(p, "data-col-index", `${o.index}`), this.domService.setAttribute(p, "data-row-index", `${s}`), this.domService.setAttribute(p, "data-area", `${r}`);
172
+ const { parent: t, geo: o, rowIndex: s = -1, columnIndex: i = -1, areaIdent: r, sideIdent: n, text: l = "", treeArrow: d, tableOptions: a, checkedType: h = void 0, sortState: u } = e, w = a == null ? void 0 : a.treeOptions, f = a == null ? void 0 : a.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
173
+ this.domService.addClass(b, "ge-table-col-div"), this.domService.addClass(b, `ge-table-col-div-${o.index}`), this.domService.setAttribute(b, "data-col-index", `${o.index}`), this.domService.setAttribute(b, "data-row-index", `${s}`), this.domService.setAttribute(b, "data-area", `${r}`);
174
174
  const g = ((o == null ? void 0 : o.index) ?? 0) % 2 === 0 ? "even" : "odd";
175
- if (r === "body" && n === "center" && this.domService.addClass(p, `ge-table-column-${g}`), this.domService.setStyle(p, "display", "clip"), this.domService.setStyle(p, "position", "absolute"), this.domService.setStyle(p, "left", `${o.left}px`), this.domService.setStyle(p, "top", `${o.top}px`), this.domService.setStyle(p, "width", `${o.width}px`), this.domService.setStyle(p, "height", `${o.height}px`), d && d !== "none" && (this.domService.addClass(p, "ge-table-col-tree"), this.addArrowDiv(p, d, w, s, i, r)), f && i === 0 && h && this.addCheckboxToDiv(p, h, r, s), l) {
176
- const b = d !== "none" && i === 0;
177
- this.addLabelDiv(p, l, b, s, i, r);
175
+ if (r === "body" && n === "center" && this.domService.addClass(b, `ge-table-column-${g}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${o.left}px`), this.domService.setStyle(b, "top", `${o.top}px`), this.domService.setStyle(b, "width", `${o.width}px`), this.domService.setStyle(b, "height", `${o.height}px`), d && d !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, d, w, s, i, r)), f && i === 0 && h && this.addCheckboxToDiv(b, h, r, s), l) {
176
+ const p = d !== "none" && i === 0;
177
+ this.addLabelDiv(b, l, p, s, i, r);
178
178
  }
179
- return u && this.addSortedIcon(p, u, a == null ? void 0 : a.sortedOptions, i), this.domService.appendChild(t, p), p;
179
+ return u && this.addSortedIcon(b, u, a == null ? void 0 : a.sortedOptions, i), this.domService.appendChild(t, b), b;
180
180
  }
181
181
  addCheckboxToDiv(e, t, o, s) {
182
182
  const i = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
@@ -203,7 +203,7 @@ class Ce {
203
203
  }
204
204
  return this.domService.appendChild(e, n), n;
205
205
  }
206
- addSortedIcon(e, t = "", o = new be(), s = -1) {
206
+ addSortedIcon(e, t = "", o = new pe(), s = -1) {
207
207
  const i = this.domService.createElement("div");
208
208
  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", `${s}`), this.domService.setAttribute(i, "data-area", "header");
209
209
  let r;
@@ -381,19 +381,19 @@ class Re {
381
381
  return this.tableScope.tableModel.isRowCheckboxVisible() ? 1 : 0;
382
382
  }
383
383
  onMouseDown(e) {
384
- this.mouseEvent = e, this.startMouseEvent = this.tableScope.createGeMouseEvent(this.mouseEvent), this.tableScope.onMouseDown(this.startMouseEvent), this.mouseDown = !0;
384
+ this.dragging || (this.mouseEvent = e, this.startMouseEvent = this.tableScope.createGeMouseEvent(this.mouseEvent), this.tableScope.onMouseDown(this.startMouseEvent), this.mouseDown = !0);
385
385
  }
386
386
  onMouseMove(e) {
387
- this.mouseEvent = e, this.mouseDown ? (this.dragging = !0, requestAnimationFrame(this.mouseDraggingOnFrame.bind(this))) : requestAnimationFrame(this.mouseMoveOnFrame.bind(this));
387
+ this.mouseEvent = e, this.mouseDown ? (this.dragging || (this.dragging = !0, this.tableScope.setDragging(!0)), requestAnimationFrame(this.mouseDraggingOnFrame.bind(this))) : requestAnimationFrame(this.mouseMoveOnFrame.bind(this));
388
388
  }
389
389
  onMouseUp(e) {
390
- this.mouseEvent = e, this.dragging && requestAnimationFrame(this.mouseDraggingEndOnFrame.bind(this)), this.mouseDown = !1, this.dragging = !1;
390
+ this.mouseEvent = e, this.dragging && requestAnimationFrame(this.mouseDraggingEndOnFrame.bind(this)), this.mouseDown = !1, this.dragging = !1, this.tableScope.setDragging(!1);
391
391
  }
392
392
  mouseDraggingOnFrame() {
393
393
  var e;
394
394
  if (this.mouseEvent) {
395
395
  const t = this.tableScope.createGeMouseEvent(this.mouseEvent);
396
- (e = this.startMouseEvent) != null && e.originalEvent && (t.draggingX = this.mouseEvent.clientX - this.startMouseEvent.originalEvent.clientX, t.draggingY = this.mouseEvent.clientY - this.startMouseEvent.originalEvent.clientY), this.tableScope.mouseDraggingOnFrame(t);
396
+ (e = this.startMouseEvent) != null && e.originalEvent && (t.draggingX = this.mouseEvent.clientX - this.startMouseEvent.originalEvent.clientX, t.draggingY = this.mouseEvent.clientY - this.startMouseEvent.originalEvent.clientY), this.tableScope.mouseDraggingOnFrame(t, this.startMouseEvent);
397
397
  }
398
398
  }
399
399
  mouseDraggingEndOnFrame() {
@@ -742,6 +742,8 @@ class Te {
742
742
  o.createDivWithClass("ge-table-hover-row", i)
743
743
  ), this.hoverColumn = o.applyStylePosistionAbsolute(
744
744
  o.createDivWithClass("ge-table-hover-column", i)
745
+ ), this.draggingColumn = o.applyStylePosistionAbsolute(
746
+ o.createDivWithClass("ge-table-dragging-column", i)
745
747
  ), this.areaHeaderWest = o.appendRelativeChildDiv(
746
748
  o.applyStylePosistionAbsolute(
747
749
  o.createAreaDivWithClass("ge-table-header ge-table-header-west", i, "header", "west")
@@ -916,7 +918,7 @@ class R {
916
918
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
917
919
  }
918
920
  }
919
- class _e {
921
+ class De {
920
922
  constructor(e, t) {
921
923
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
922
924
  }
@@ -954,17 +956,17 @@ class T {
954
956
  this.header = e, this.body = t, this.footer = o;
955
957
  }
956
958
  }
957
- class De extends Te {
959
+ class _e extends Te {
958
960
  constructor(e, t, o, s) {
959
961
  var r, n;
960
- super(e, t, o, s), this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
962
+ super(e, t, o, s), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
961
963
  header: [],
962
964
  body: [],
963
965
  footer: []
964
- }, this.tree = !1, this.colAndRowspanModels = new T(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.editing = !1, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (n = this.tableOptions) != null && n.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), z(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
966
+ }, this.tree = !1, this.colAndRowspanModels = new T(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (n = this.tableOptions) != null && n.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), z(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
965
967
  (l) => {
966
968
  var d;
967
- this.colAndRowspanModels[l] = new _e(t, t.getAreaModel(l)), (d = this.colAndRowspanModels[l]) == null || d.init();
969
+ this.colAndRowspanModels[l] = new De(t, t.getAreaModel(l)), (d = this.colAndRowspanModels[l]) == null || d.init();
968
970
  }
969
971
  );
970
972
  }
@@ -1034,6 +1036,10 @@ class De extends Te {
1034
1036
  }
1035
1037
  ), t && this.repaint();
1036
1038
  }
1039
+ storeColumnWidths() {
1040
+ const e = this.tableModel.getColumnDefs();
1041
+ e != null && e.length && (this.storedColumnWidths = e.map((t, o) => this.tableModel.getColumnWidth(o)));
1042
+ }
1037
1043
  getAreaAndSideIdentByAttr(e) {
1038
1044
  if (e) {
1039
1045
  const t = this.getStringByAttr(e, "data-area"), o = this.getStringByAttr(e, "data-side");
@@ -1094,52 +1100,52 @@ class De extends Te {
1094
1100
  const o = this.getArea(e, "west"), s = this.getArea(e, "center"), i = this.getArea(e, "east"), r = s.child.clientHeight;
1095
1101
  o.child.innerText = "", s.child.innerText = "", i.child.innerText = "";
1096
1102
  const n = 0, l = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), a = this.tableModel.getAreaModel(e), h = a.getRowCount();
1097
- for (e === "header" && console.info("rowCount", h); this.cleanupFunctions[e].length; ) {
1098
- const b = this.cleanupFunctions[e].shift();
1099
- b && b();
1103
+ for (; this.cleanupFunctions[e].length; ) {
1104
+ const p = this.cleanupFunctions[e].shift();
1105
+ p && p();
1100
1106
  }
1101
1107
  let u = t;
1102
- const w = this.tableModel.getColumnCount(), f = this.tableModel.getFixedRightColumnCount(), p = this.tableModel.getFixedLeftColumnCount();
1103
- for (let b = 0; b < h; b++) {
1104
- const C = u, v = b === h - 1, A = this.tableModel.getRowHeight(e, b);
1108
+ const w = this.tableModel.getColumnCount(), f = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
1109
+ for (let p = 0; p < h; p++) {
1110
+ const C = u, v = p === h - 1, A = this.tableModel.getRowHeight(e, p);
1105
1111
  if (C + A > 0) {
1106
- this.firstVisibleRowIndex = b;
1107
- let y = { left: n, width: l, height: A, top: C, index: b }, S = this.dom.addRowDiv(s, y, b, e, "center");
1108
- const k = p;
1112
+ this.firstVisibleRowIndex = p;
1113
+ let y = { left: n, width: l, height: A, top: C, index: p }, S = this.dom.addRowDiv(s, y, p, e, "center");
1114
+ const k = b;
1109
1115
  if (this.adjustColumnsToRowParent({
1110
1116
  areaIdent: e,
1111
1117
  sideIdent: "center",
1112
1118
  areaModel: a,
1113
1119
  geo: y,
1114
1120
  parent: S,
1115
- rowIndex: b,
1121
+ rowIndex: p,
1116
1122
  columnIndexStart: k,
1117
1123
  columnIndexEnd: w - f - 1,
1118
1124
  verticalFixed: !1,
1119
1125
  lastRowOfModel: v
1120
- }), d.left > 0 && (y = { left: n, width: this.areaBodyWestGeo.width, height: A, top: C, index: b }, S = this.dom.addRowDiv(o, y, b, e, "west"), this.adjustColumnsToRowParent({
1126
+ }), d.left > 0 && (y = { left: n, width: this.areaBodyWestGeo.width, height: A, top: C, index: p }, S = this.dom.addRowDiv(o, y, p, e, "west"), this.adjustColumnsToRowParent({
1121
1127
  areaIdent: e,
1122
1128
  sideIdent: "west",
1123
1129
  areaModel: a,
1124
1130
  geo: y,
1125
1131
  parent: S,
1126
- rowIndex: b,
1132
+ rowIndex: p,
1127
1133
  columnIndexStart: 0,
1128
1134
  columnIndexEnd: k - 1,
1129
1135
  verticalFixed: !0,
1130
1136
  lastRowOfModel: v
1131
- })), d.right > 0 && (y = { left: n, width: this.areaBodyEastGeo.width, height: A, top: C, index: b }, S = this.dom.addRowDiv(i, y, b, e, "east"), this.adjustColumnsToRowParent({
1137
+ })), d.right > 0 && (y = { left: n, width: this.areaBodyEastGeo.width, height: A, top: C, index: p }, S = this.dom.addRowDiv(i, y, p, e, "east"), this.adjustColumnsToRowParent({
1132
1138
  areaIdent: e,
1133
1139
  sideIdent: "east",
1134
1140
  areaModel: a,
1135
1141
  geo: y,
1136
1142
  parent: S,
1137
- rowIndex: b,
1143
+ rowIndex: p,
1138
1144
  columnIndexStart: w - f,
1139
1145
  columnIndexEnd: w - 1,
1140
1146
  verticalFixed: !0,
1141
1147
  lastRowOfModel: v
1142
- })), e === "header" && this.tree && b === h - 1) {
1148
+ })), e === "header" && this.tree && p === h - 1) {
1143
1149
  const M = this.dom.applyStyle(
1144
1150
  this.dom.setAttribute(
1145
1151
  this.dom.addDiv(S, new $(16, 20, 20, 8)),
@@ -1158,11 +1164,11 @@ class De extends Te {
1158
1164
  break;
1159
1165
  }
1160
1166
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1161
- const b = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
1162
- if (b.length)
1163
- for (const C of b) {
1167
+ const p = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
1168
+ if (p.length)
1169
+ for (const C of p) {
1164
1170
  let v = 0, A = s.child, y = "center";
1165
- if (C.c1 < p)
1171
+ if (C.c1 < b)
1166
1172
  A = o.child, y = "west";
1167
1173
  else if (f > 0 && C.c1 >= w - f)
1168
1174
  A = i.child, y = "east";
@@ -1185,13 +1191,13 @@ class De extends Te {
1185
1191
  * @protected
1186
1192
  */
1187
1193
  drawBigCell(e, t, o, s, i, r) {
1188
- const n = o + this.getRowHeights(0, e.r1 - 1, s).reduce((g, b) => g + b, 0), l = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
1194
+ const n = o + this.getRowHeights(0, e.r1 - 1, s).reduce((g, p) => g + p, 0), l = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
1189
1195
  let a = 0;
1190
1196
  d > 0 && e.c1 >= l - d && (a = l - d);
1191
- const h = t + this.getColumnWidths(a, e.c1 - 1).reduce((g, b) => g + b, 0), u = this.getRowHeights(e.r1, e.r2, s).reduce((g, b) => g + b, 0), w = this.getColumnWidths(e.c1, e.c2).reduce((g, b) => g + b, 0);
1197
+ const h = t + this.getColumnWidths(a, e.c1 - 1).reduce((g, p) => g + p, 0), u = this.getRowHeights(e.r1, e.r2, s).reduce((g, p) => g + p, 0), w = this.getColumnWidths(e.c1, e.c2).reduce((g, p) => g + p, 0);
1192
1198
  let f = !1;
1193
- const p = this.getSelectionModel ? this.getSelectionModel() : void 0;
1194
- p && (f = p.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
1199
+ const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
1200
+ b && (f = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
1195
1201
  areaModel: s,
1196
1202
  areaIdent: s.areaIdent,
1197
1203
  sideIdent: r,
@@ -1252,7 +1258,7 @@ class De extends Te {
1252
1258
  verticalFixed: d = !1,
1253
1259
  lastRowOfModel: a = !1
1254
1260
  }) {
1255
- var p;
1261
+ var b;
1256
1262
  this.scrollViewportLeft = this.scrollViewport.scrollLeft;
1257
1263
  let h = 0;
1258
1264
  if (!d) {
@@ -1262,27 +1268,27 @@ class De extends Te {
1262
1268
  const u = 0, w = !!(e === "body" && t);
1263
1269
  let f = h;
1264
1270
  for (let g = n; g <= l; g++) {
1265
- const b = f, C = this.tableModel.getColumnWidth(g);
1266
- if (C > 0 && b + C > 0) {
1271
+ const p = f, C = this.tableModel.getColumnWidth(g);
1272
+ if (C > 0 && p + C > 0) {
1267
1273
  let v = s.height;
1268
1274
  const A = o.getRowspanAt(r, g), y = o.getColspanAt(r, g);
1269
1275
  A > 1 && (v = this.getRowHeights(r, r + A - 1, o).reduce((M, E) => M + E, 0));
1270
1276
  let S = C;
1271
1277
  y > 1 && (S = this.getColumnWidths(g, g + y - 1).reduce((M, E) => M + E, 0));
1272
1278
  let k = !1;
1273
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (p = this.colAndRowspanModels[e]) != null && p.isInRange(r, g) && (k = !0), this.draggingTargetColumnIndex === g && e !== "header") {
1274
- this.renderDragTargetDiv(i, b, u, S, v);
1275
- const M = { left: b, top: u, width: S, height: v };
1279
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, g) && (k = !0), this.draggingTargetColumnIndex === g && e !== "header") {
1280
+ this.renderDragTargetDiv(i, p, u, S, v);
1281
+ const M = { left: p, top: u, width: S, height: v };
1276
1282
  this.dom.addColumnBorderDivs(this.tableOptions, i, M, e, t);
1277
1283
  } else {
1278
- const M = this.renderSelectedBackgroundDiv(k, w, t, o, r, g, i, b, u, S, v);
1284
+ const M = this.renderSelectedBackgroundDiv(k, w, t, o, r, g, i, p, u, S, v);
1279
1285
  "gammaCells" in o && o.getValueAt(r, g) && (k = !1), k || this.renderCell({
1280
1286
  areaModel: o,
1281
1287
  areaIdent: e,
1282
1288
  sideIdent: t,
1283
1289
  rowIndex: r,
1284
1290
  columnIndex: g,
1285
- left: b,
1291
+ left: p,
1286
1292
  top: u,
1287
1293
  width: S,
1288
1294
  height: v,
@@ -1293,7 +1299,7 @@ class De extends Te {
1293
1299
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1294
1300
  rowIndex: r,
1295
1301
  columnIndex: g,
1296
- cellLeft: b,
1302
+ cellLeft: p,
1297
1303
  cellTop: u,
1298
1304
  cellWidth: S,
1299
1305
  cellHeight: v,
@@ -1323,10 +1329,10 @@ class De extends Te {
1323
1329
  lastRowOfModel: h
1324
1330
  }) {
1325
1331
  var te;
1326
- const w = this.editorRenderer && this.editorRendererRow === s && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(s, i), f = { left: r, width: n, height: l, top: d, index: i }, p = e.getRowByIndex(s);
1332
+ const w = this.editorRenderer && this.editorRendererRow === s && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(s, i), f = { left: r, width: n, height: l, top: d, index: i }, b = e.getRowByIndex(s);
1327
1333
  let g = "none";
1328
- if (i === this.getTreeArrowColumnIndex() && L(p)) {
1329
- const x = p;
1334
+ if (i === this.getTreeArrowColumnIndex() && L(b)) {
1335
+ const x = b;
1330
1336
  (te = x.children) != null && te.length ? x.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
1331
1337
  }
1332
1338
  let C;
@@ -1441,6 +1447,29 @@ class De extends Te {
1441
1447
  debounce(e, t = 1e3) {
1442
1448
  this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(e.bind(this), t);
1443
1449
  }
1450
+ adjustDraggingColumn(e, t) {
1451
+ var o, s;
1452
+ if (this.dragging) {
1453
+ const i = this.hostElement.clientHeight, r = this.tableModel.getColumnWidth(t);
1454
+ if ((o = e.originalEvent) != null && o.clientX) {
1455
+ const n = ((s = e.originalEvent) == null ? void 0 : s.clientX) - r / 2;
1456
+ this.dom.applyStyle(this.draggingColumn, {
1457
+ background: "rgba(128,128,128,0.2)",
1458
+ left: n + "px",
1459
+ top: "0px",
1460
+ width: r + "px",
1461
+ height: i + "px",
1462
+ display: "block"
1463
+ });
1464
+ }
1465
+ } else
1466
+ this.hideDraggingColumn();
1467
+ }
1468
+ hideDraggingColumn() {
1469
+ this.dom.applyStyle(this.draggingColumn, {
1470
+ display: "none"
1471
+ });
1472
+ }
1444
1473
  renderDragTargetDiv(e, t, o, s, i) {
1445
1474
  const r = this.dom.applyStylePosistionAbsolute(
1446
1475
  this.dom.createDivWithClass("ge-table-drop-zone", e)
@@ -1454,7 +1483,7 @@ class De extends Te {
1454
1483
  if (w) {
1455
1484
  const f = w.getSelectionCount(i, r);
1456
1485
  u = f > 0;
1457
- for (let p = 0; p < f; p++) {
1486
+ for (let b = 0; b < f; b++) {
1458
1487
  const g = this.dom.applyStylePosistionAbsolute(
1459
1488
  // ge-table-body-west-selected-range
1460
1489
  this.dom.createDivWithClass(`ge-table-${s.areaIdent}-${o}-selected-range`, n)
@@ -1853,7 +1882,7 @@ class j {
1853
1882
  header: 34,
1854
1883
  body: 34,
1855
1884
  footer: 34
1856
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ge(), this.headerGroupOptions = new Q(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new be(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new We(), this.getSelectionModel = () => ze, this.getFocusModel = () => je;
1885
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ge(), this.headerGroupOptions = new Q(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new pe(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new We(), this.getSelectionModel = () => ze, this.getFocusModel = () => je;
1857
1886
  }
1858
1887
  }
1859
1888
  const Z = class X {
@@ -1942,7 +1971,7 @@ Z.columnSeparatorChar = " ";
1942
1971
  Z.rowSeparatorChar = `
1943
1972
  `;
1944
1973
  let se = Z;
1945
- class pe extends De {
1974
+ class be extends _e {
1946
1975
  constructor(e, t, o, s, i, r = new se()) {
1947
1976
  var n;
1948
1977
  if (super(
@@ -1950,7 +1979,7 @@ class pe extends De {
1950
1979
  t,
1951
1980
  new Ce(o),
1952
1981
  s
1953
- ), this.eventListener = i, this.copyService = r, this.licenseManager = F.getInstance(), this.selectionService = new Fe(this), this.api = new Ae(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, i || (this.eventListener = new oe()), (n = this.tableOptions) != null && n.autoRestoreOptions) {
1982
+ ), this.eventListener = i, this.copyService = r, this.licenseManager = F.getInstance(), this.selectionService = new Fe(this), this.api = new Ae(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, i || (this.eventListener = new oe()), (n = this.tableOptions) != null && n.autoRestoreOptions) {
1954
1983
  const l = this.tableOptions.autoRestoreOptions, d = l.getStorageKeyFn;
1955
1984
  d && (l.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Me(d)), l.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new Ie(d)), l.autoRestoreSortingState && (this.storeSortingService = new ke(d)));
1956
1985
  }
@@ -1968,7 +1997,7 @@ class pe extends De {
1968
1997
  * @return {TableScope} - The newly created TableScope instance.
1969
1998
  */
1970
1999
  static create(e, t, o = new j(), s = new oe(), i = new Be(), r = new se()) {
1971
- return new pe(
2000
+ return new be(
1972
2001
  e,
1973
2002
  t,
1974
2003
  i,
@@ -2059,9 +2088,10 @@ class pe extends De {
2059
2088
  * Handles mouse dragging on the frame.
2060
2089
  *
2061
2090
  * @param {GeMouseEvent} mouseEvent - The mouse event object.
2091
+ * @param startMouseEvent
2062
2092
  */
2063
- mouseDraggingOnFrame(e) {
2064
- this.eventListener.onMouseDragging(e), this.mouseEvent = e, this.mouseStartColumnIndex > -1 && this.mouseStartAction === "resize-column" && this.tableOptions.columnsResizable ? this.resizeColumn(e) : this.mouseStartAction === "drag-column" && e.columnIndex > -1 && this.tableOptions.columnsDraggable && (this.draggingTargetColumnIndex = e.columnIndex, this.dragTo = this.draggingTargetColumnIndex, this.dragFrom > -1 && this.dragTo > -1 && this.dragFrom !== this.dragTo && (this.tableModel.changeColumnOrder(this.dragFrom, this.dragTo), this.dragFrom = this.dragTo, this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows()), this.repaint());
2093
+ mouseDraggingOnFrame(e, t) {
2094
+ this.eventListener.onMouseDragging(e), this.mouseEvent = e, this.mouseStartColumnIndex > -1 && this.mouseStartAction === "resize-column" && this.tableOptions.columnsResizable ? this.resizeColumn(e) : this.mouseStartAction === "drag-column" && e.columnIndex > -1 && this.tableOptions.columnsDraggable && (this.draggingTargetColumnIndex = e.columnIndex, this.dragTo = this.draggingTargetColumnIndex, this.dragFrom > -1 && this.dragTo > -1 && this.dragFrom !== this.dragTo && (this.lastDragFrom === this.dragTo && this.lastDragTo === this.dragFrom || (this.tableModel.changeColumnOrder(this.dragFrom, this.dragTo), this.lastDragFrom = this.dragFrom, this.lastDragTo = this.dragTo, this.dragFrom = this.dragTo, this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows())), t && this.adjustDraggingColumn(e, t.columnIndex), this.repaint());
2065
2095
  }
2066
2096
  /**
2067
2097
  * Handles the end of mouse dragging event on a frame.
@@ -2071,7 +2101,7 @@ class pe extends De {
2071
2101
  * @returns {void}
2072
2102
  */
2073
2103
  mouseDraggingEndOnFrame(e) {
2074
- this.eventListener.onMouseDraggingEnd(e), this.draggingTargetColumnIndex = -1, this.mouseStartAction === "resize-column" ? this.resizeColumn(e) : this.mouseStartAction === "drag-column" && this.repaint(), this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.mouseStartAction = "";
2104
+ this.eventListener.onMouseDraggingEnd(e), this.draggingTargetColumnIndex = -1, this.mouseStartAction === "resize-column" ? this.resizeColumn(e) : this.mouseStartAction === "drag-column" && (this.hideDraggingColumn(), this.repaint()), this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.mouseStartAction = "";
2075
2105
  }
2076
2106
  /**
2077
2107
  * Handles the mouse move event.
@@ -2224,6 +2254,9 @@ class pe extends De {
2224
2254
  if (this != null && this.getFocusModel)
2225
2255
  return this.getFocusModel();
2226
2256
  }
2257
+ setDragging(e) {
2258
+ this.dragging = e, this.dragging ? (this.storeColumnWidths(), this.lastDragFrom = -1, this.lastDragTo = -1) : this.storedColumnWidths = [];
2259
+ }
2227
2260
  /**
2228
2261
  * Changes the focus cell using the specified deltas.
2229
2262
  *
@@ -2608,8 +2641,8 @@ class m {
2608
2641
  }
2609
2642
  const Xe = () => !0, re = () => !1;
2610
2643
  class V {
2611
- constructor(e, t, o = new m(100, "px"), s = new T(), i = new T(), r = new m(100, "px"), n = new m(100, "px"), l, d, a, h, u, w, f, p, g = () => this.visible) {
2612
- this.property = e, this.headerLabel = t, this.width = o, this.classes = s, this.rendererMap = i, this.minWidth = r, this.maxWidth = n, this.sortable = l, this.sortComparator = d, this.sortState = a, this.sortStatesOrder = h, this.sortIconVisible = u, this.editable = w, this.getEditRenderer = f, this.editInputPipe = p, this.isVisible = g, this.visible = !0;
2644
+ constructor(e, t, o = new m(100, "px"), s = new T(), i = new T(), r = new m(100, "px"), n = new m(100, "px"), l, d, a, h, u, w, f, b, g = () => this.visible) {
2645
+ this.property = e, this.headerLabel = t, this.width = o, this.classes = s, this.rendererMap = i, this.minWidth = r, this.maxWidth = n, this.sortable = l, this.sortComparator = d, this.sortState = a, this.sortStatesOrder = h, this.sortIconVisible = u, this.editable = w, this.getEditRenderer = f, this.editInputPipe = b, this.isVisible = g, this.visible = !0;
2613
2646
  }
2614
2647
  static bodyRenderer(e) {
2615
2648
  return new T(
@@ -2648,7 +2681,7 @@ class V {
2648
2681
  );
2649
2682
  }
2650
2683
  }
2651
- const tt = new m(300, "px"), ot = new m(290, "px"), st = new m(280, "px"), it = new m(270, "px"), rt = new m(260, "px"), lt = new m(250, "px"), nt = new m(240, "px"), at = new m(230, "px"), dt = new m(220, "px"), ht = new m(210, "px"), le = new m(200, "px"), ct = new m(190, "px"), ut = new m(180, "px"), gt = new m(170, "px"), bt = new m(160, "px"), pt = new m(150, "px"), ft = new m(140, "px"), mt = new m(130, "px"), wt = new m(120, "px"), St = new m(110, "px"), xt = new m(100, "px"), yt = new m(90, "px"), Ct = new m(80, "px"), vt = new m(70, "px"), Rt = new m(60, "px"), At = new m(50, "px"), Mt = new m(40, "px"), Et = new m(30, "px"), It = new m(20, "px"), kt = new m(10, "px"), Tt = new m(0, "px");
2684
+ const tt = new m(300, "px"), ot = new m(290, "px"), st = new m(280, "px"), it = new m(270, "px"), rt = new m(260, "px"), lt = new m(250, "px"), nt = new m(240, "px"), at = new m(230, "px"), dt = new m(220, "px"), ht = new m(210, "px"), le = new m(200, "px"), ct = new m(190, "px"), ut = new m(180, "px"), gt = new m(170, "px"), pt = new m(160, "px"), bt = new m(150, "px"), ft = new m(140, "px"), mt = new m(130, "px"), wt = new m(120, "px"), St = new m(110, "px"), xt = new m(100, "px"), yt = new m(90, "px"), Ct = new m(80, "px"), vt = new m(70, "px"), Rt = new m(60, "px"), At = new m(50, "px"), Mt = new m(40, "px"), Et = new m(30, "px"), It = new m(20, "px"), kt = new m(10, "px"), Tt = new m(0, "px");
2652
2685
  class ee {
2653
2686
  constructor(e, t = [], o = -1) {
2654
2687
  this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = o, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((s) => s.rendererMap[e]);
@@ -2709,7 +2742,9 @@ class ee {
2709
2742
  return !1;
2710
2743
  }
2711
2744
  isEditable(e, t) {
2712
- return this.columnDefs && t < this.columnDefs.length && this.columnDefs[t].editable ? this.columnDefs[t].editable() : !1;
2745
+ var s, i;
2746
+ const o = (s = this.columnDefs) == null ? void 0 : s[t];
2747
+ return ((i = o == null ? void 0 : o.editable) == null ? void 0 : i.call(o)) ?? !1;
2713
2748
  }
2714
2749
  setValue(e, t, o) {
2715
2750
  var n;
@@ -2727,7 +2762,7 @@ class ee {
2727
2762
  setPropertyValue(e, t, o) {
2728
2763
  const s = t.shift();
2729
2764
  if (s) {
2730
- let i = e[s];
2765
+ const i = e[s];
2731
2766
  return i && t.length ? this.setPropertyValue(i, t, o) : (e[s] = o, !0);
2732
2767
  }
2733
2768
  return !1;
@@ -2743,7 +2778,7 @@ class ee {
2743
2778
  this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
2744
2779
  }
2745
2780
  }
2746
- class _ extends ee {
2781
+ class D extends ee {
2747
2782
  constructor(e, t, o, s = []) {
2748
2783
  super(e, s, o), this.areaIdent = e, this.arr = t, this.defaultRowHeight = o, this.columnDefs = s, this.filteredArr = [...t];
2749
2784
  }
@@ -2771,7 +2806,7 @@ class _ extends ee {
2771
2806
  this.filteredArr.forEach((o) => this.arrayMove(o, e, t)), super.changeColumnOrder(e, t);
2772
2807
  }
2773
2808
  }
2774
- class D {
2809
+ class _ {
2775
2810
  constructor(e = "body") {
2776
2811
  this.areaIdent = e, this.rowSelectionModel = void 0;
2777
2812
  }
@@ -3075,8 +3110,8 @@ class Ke {
3075
3110
  class N {
3076
3111
  constructor(e, t, o, s = 0, i = 0, r = !1, n = new H(), l = [], d = [], a = -1, h = 0, u = 400, w = () => {
3077
3112
  }) {
3078
- var f, p, g, b;
3079
- this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = o, this.fixedLeftColumnCount = s, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = n, this.columnDefs = l, this.columnSizes = d, this.overridingColumnWidth = a, this.columnCount = h, this.parentSize = u, this.getSelectionModel = w, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new de(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", o.areaIdent = "footer", this.columnCount || ((f = this.columnDefs) != null && f.length ? this.columnCount = this.columnDefs.length : (p = this.columnSizes) != null && p.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (b = this.columnDefs) != null && b.length && ye(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Ke());
3113
+ var f, b, g, p;
3114
+ this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = o, this.fixedLeftColumnCount = s, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = n, this.columnDefs = l, this.columnSizes = d, this.overridingColumnWidth = a, this.columnCount = h, this.parentSize = u, this.getSelectionModel = w, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new de(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", o.areaIdent = "footer", this.columnCount || ((f = this.columnDefs) != null && f.length ? this.columnCount = this.columnDefs.length : (b = this.columnSizes) != null && b.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (p = this.columnDefs) != null && p.length && ye(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Ke());
3080
3115
  }
3081
3116
  init() {
3082
3117
  this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
@@ -3375,7 +3410,13 @@ class N {
3375
3410
  * @returns {boolean} - `true` if the column is sortable, `false` otherwise.
3376
3411
  */
3377
3412
  isSortable(e) {
3378
- return this.columnDefs && e < this.columnDefs.length && this.columnDefs[e].sortable ? this.columnDefs[e].sortable() : !1;
3413
+ var t;
3414
+ if (this.columnDefs && e < this.columnDefs.length) {
3415
+ const o = (t = this.columnDefs[e]) == null ? void 0 : t.sortable;
3416
+ if (typeof o == "function")
3417
+ return o();
3418
+ }
3419
+ return !1;
3379
3420
  }
3380
3421
  /**
3381
3422
  * Moves a column in the column order.
@@ -3395,11 +3436,11 @@ class N {
3395
3436
  if (i.width.unit === "%" && e) {
3396
3437
  let r = Math.floor(i.width.value * e / 100);
3397
3438
  if (i.minWidth) {
3398
- let n = i.minWidth.unit === "px" ? i.minWidth.value : Math.floor(i.minWidth.value * e / 100);
3439
+ const n = i.minWidth.unit === "px" ? i.minWidth.value : Math.floor(i.minWidth.value * e / 100);
3399
3440
  r = Math.max(n, r);
3400
3441
  }
3401
3442
  if (i.maxWidth) {
3402
- let n = i.maxWidth.unit === "px" ? i.maxWidth.value : Math.floor(i.maxWidth.value * e / 100);
3443
+ const n = i.maxWidth.unit === "px" ? i.maxWidth.value : Math.floor(i.maxWidth.value * e / 100);
3403
3444
  r = Math.min(n, r);
3404
3445
  }
3405
3446
  return r;
@@ -3486,7 +3527,7 @@ class he extends Ue {
3486
3527
  }
3487
3528
  class P {
3488
3529
  static createTableModel(e) {
3489
- var t, o, s, i, r, n, l, d, a, h, u, w, f, p;
3530
+ var t, o, s, i, r, n, l, d, a, h, u, w, f, b;
3490
3531
  if (e.defaultRowHeights === void 0)
3491
3532
  if ((t = e.tableOptions) != null && t.defaultRowHeights)
3492
3533
  e.defaultRowHeights = e.tableOptions.defaultRowHeights;
@@ -3504,22 +3545,22 @@ class P {
3504
3545
  g > -1 && (e.defaultRowHeights.footer = g);
3505
3546
  }
3506
3547
  }
3507
- if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new V(g, g.toUpperCase(), le)) : (s = e.rows) != null && s.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new V(g, g.toUpperCase(), le)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (n = e.columnSizes) != null && n.length ? e.columnCount = (l = e.columnSizes) == null ? void 0 : l.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((d = e.headerData) != null && d.length ? e.headerAreaModel = new _(
3548
+ if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new V(g, g.toUpperCase(), le)) : (s = e.rows) != null && s.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new V(g, g.toUpperCase(), le)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (n = e.columnSizes) != null && n.length ? e.columnCount = (l = e.columnSizes) == null ? void 0 : l.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((d = e.headerData) != null && d.length ? e.headerAreaModel = new D(
3508
3549
  "header",
3509
3550
  e.headerData,
3510
3551
  e.defaultRowHeights.header,
3511
3552
  e.columnDefs
3512
- ) : (a = e.columnDefs) != null && a.length ? e.headerAreaModel = new _(
3553
+ ) : (a = e.columnDefs) != null && a.length ? e.headerAreaModel = new D(
3513
3554
  "header",
3514
3555
  [e.columnDefs.map((g) => g.headerLabel)],
3515
3556
  e.defaultRowHeights.header,
3516
3557
  e.columnDefs
3517
- ) : e.headerAreaModel = new D("header")), e.footerAreaModel || ((h = e.footerData) != null && h.length ? e.footerAreaModel = new _(
3558
+ ) : e.headerAreaModel = new _("header")), e.footerAreaModel || ((h = e.footerData) != null && h.length ? e.footerAreaModel = new D(
3518
3559
  "footer",
3519
3560
  e.footerData,
3520
3561
  e.defaultRowHeights.footer,
3521
3562
  e.columnDefs
3522
- ) : e.footerAreaModel = new D("footer")), !e.bodyAreaModel)
3563
+ ) : e.footerAreaModel = new _("footer")), !e.bodyAreaModel)
3523
3564
  if (e.rows)
3524
3565
  if ((u = e.rows) != null && u.length && L(e.rows[0])) {
3525
3566
  const g = e.rows;
@@ -3537,12 +3578,12 @@ class P {
3537
3578
  e.defaultRowHeights.body
3538
3579
  );
3539
3580
  else
3540
- e.bodyData ? e.bodyAreaModel = new _(
3581
+ e.bodyData ? e.bodyAreaModel = new D(
3541
3582
  "body",
3542
3583
  e.bodyData,
3543
3584
  e.defaultRowHeights.body
3544
- ) : e.bodyAreaModel = new D("body");
3545
- return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((f = e.tableOptions) != null && f.getSelectionModel) && (e.getSelectionModel = (p = e.tableOptions) == null ? void 0 : p.getSelectionModel), new N(
3585
+ ) : e.bodyAreaModel = new _("body");
3586
+ return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((f = e.tableOptions) != null && f.getSelectionModel) && (e.getSelectionModel = (b = e.tableOptions) == null ? void 0 : b.getSelectionModel), new N(
3546
3587
  e.headerAreaModel,
3547
3588
  e.bodyAreaModel,
3548
3589
  e.footerAreaModel,
@@ -3577,9 +3618,9 @@ class P {
3577
3618
  t
3578
3619
  );
3579
3620
  return (n || o.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new ae(l)), P.createByAreaModelsParam({
3580
- headerAreaModel: new _("header", [t.map((a) => a.headerLabel)], r.header),
3621
+ headerAreaModel: new D("header", [t.map((a) => a.headerLabel)], r.header),
3581
3622
  bodyAreaModel: d,
3582
- footerAreaModel: new _("footer", [], r.footer),
3623
+ footerAreaModel: new D("footer", [], r.footer),
3583
3624
  columnDefs: t,
3584
3625
  fixedLeftColumnCount: s,
3585
3626
  fixedRightColumnCount: i,
@@ -3612,7 +3653,7 @@ class P {
3612
3653
  e.columnSizes ?? []
3613
3654
  );
3614
3655
  }
3615
- static createByAreaModels(e = new D(), t, o = new D(), s = 0, i = 0, r = !1, n = new H(), l, d = [], a = -1, h) {
3656
+ static createByAreaModels(e = new _(), t, o = new _(), s = 0, i = 0, r = !1, n = new H(), l, d = [], a = -1, h) {
3616
3657
  return new N(
3617
3658
  e,
3618
3659
  t,
@@ -3629,9 +3670,9 @@ class P {
3629
3670
  }
3630
3671
  static createByAreaModelsParam(e) {
3631
3672
  return P.createByAreaModels(
3632
- e.headerAreaModel ?? new D(),
3673
+ e.headerAreaModel ?? new _(),
3633
3674
  e.bodyAreaModel,
3634
- e.footerAreaModel ?? new D(),
3675
+ e.footerAreaModel ?? new _(),
3635
3676
  e.fixedLeftColumnCount ?? 0,
3636
3677
  e.fixedRightColumnCount ?? 0,
3637
3678
  e.rowCheckboxVisible === void 0 ? !1 : e.rowCheckboxVisible,
@@ -3644,8 +3685,8 @@ class P {
3644
3685
  }
3645
3686
  static createByObjectArray(e, t = [], o = [], s = 0, i = 0, r = !1, n = new H(), l, d = []) {
3646
3687
  let a;
3647
- t != null && t.length ? a = new _("header", t, n.header, l) : l != null && l.length ? a = new _("header", [l.map((w) => w.headerLabel)], n.header, l) : a = new D();
3648
- const h = o ? new _("footer", o, n.footer, l) : new D(), u = new he("body", e, l, n.body);
3688
+ t != null && t.length ? a = new D("header", t, n.header, l) : l != null && l.length ? a = new D("header", [l.map((w) => w.headerLabel)], n.header, l) : a = new _();
3689
+ const h = o ? new D("footer", o, n.footer, l) : new _(), u = new he("body", e, l, n.body);
3649
3690
  return new N(
3650
3691
  a,
3651
3692
  u,
@@ -3659,7 +3700,7 @@ class P {
3659
3700
  );
3660
3701
  }
3661
3702
  }
3662
- const _t = [
3703
+ const Dt = [
3663
3704
  "COPY_2_CLIPBOARD",
3664
3705
  "START_EDITING",
3665
3706
  "TOGGLE_SELECTION",
@@ -3677,7 +3718,7 @@ const _t = [
3677
3718
  // "PAGEUP_PRESSED",
3678
3719
  // "PAGEDOWN_PRESSED"
3679
3720
  ];
3680
- class Dt {
3721
+ class _t {
3681
3722
  constructor(e, t) {
3682
3723
  this.tableModel = e, this.tableOptions = t;
3683
3724
  }
@@ -4091,7 +4132,7 @@ class Yt {
4091
4132
  var e;
4092
4133
  for (const t of this.groupExts)
4093
4134
  t.log(this.getMaxRowCount());
4094
- this.arr = this.buildArray(), !((e = this.columnDefs) != null && e.length) && this.areaIdent === "header" && (this.columnDefs = I.buildColumnDefs(this.groups)), console.info("this.arr", this.arr);
4135
+ this.arr = this.buildArray(), !((e = this.columnDefs) != null && e.length) && this.areaIdent === "header" && (this.columnDefs = I.buildColumnDefs(this.groups));
4095
4136
  }
4096
4137
  getAllLeafs() {
4097
4138
  return I.flattenGroupExts(this.groupExts).filter((t) => !t.children);
@@ -4492,9 +4533,9 @@ export {
4492
4533
  ee as AbstractAreaModel,
4493
4534
  Gt as AreaMapFactory,
4494
4535
  Xt as AreaModel,
4495
- _ as AreaModelArrayOfArrays,
4536
+ D as AreaModelArrayOfArrays,
4496
4537
  Yt as AreaModelCellGroups,
4497
- D as AreaModelHidden,
4538
+ _ as AreaModelHidden,
4498
4539
  he as AreaModelObjectArrayWithColumndefs,
4499
4540
  Ue as AreaModelObjectyArray,
4500
4541
  ne as AreaModelTree,
@@ -4510,7 +4551,7 @@ export {
4510
4551
  Wt as CheckboxColumnDef,
4511
4552
  Ke as CheckboxModel,
4512
4553
  $t as ChunkData,
4513
- _e as ColAndRowspanModel,
4554
+ De as ColAndRowspanModel,
4514
4555
  Ee as CollapsedExpandedData,
4515
4556
  ho as ColorRgb,
4516
4557
  V as ColumnDef,
@@ -4547,7 +4588,7 @@ export {
4547
4588
  de as Padding,
4548
4589
  no as PositiveAndNegativeNumberRenderer,
4549
4590
  lo as ProgressBarCellRenderer,
4550
- De as RenderScope,
4591
+ _e as RenderScope,
4551
4592
  Ut as Renderer,
4552
4593
  qe as RequestChunk,
4553
4594
  xe as SelectCellRenderer,
@@ -4557,7 +4598,7 @@ export {
4557
4598
  Be as SimpleDomService,
4558
4599
  m as Size,
4559
4600
  $e as SortItem,
4560
- be as SortedOptions,
4601
+ pe as SortedOptions,
4561
4602
  ro as StarRatingCellRenderer,
4562
4603
  Ie as StoreStateCollapsedExpandService,
4563
4604
  Me as StoreStateScrollPosService,
@@ -4566,9 +4607,9 @@ export {
4566
4607
  zt as TableCellUpdateEvent,
4567
4608
  P as TableFactory,
4568
4609
  N as TableModel,
4569
- Dt as TableModelAndOptions,
4610
+ _t as TableModelAndOptions,
4570
4611
  j as TableOptions,
4571
- pe as TableScope,
4612
+ be as TableScope,
4572
4613
  co as ThreeColorGradientArg,
4573
4614
  ae as TreeCheckboxModel,
4574
4615
  Y as TreeFactory,
@@ -4580,7 +4621,7 @@ export {
4580
4621
  ue as TwoColorGradientArg,
4581
4622
  Je as ValueLabel,
4582
4623
  Le as WindowsShortcutActionIdMapping,
4583
- _t as actionIds,
4624
+ Dt as actionIds,
4584
4625
  Vt as allCenter,
4585
4626
  Ht as allLeft,
4586
4627
  Bt as allRight,
@@ -4599,8 +4640,8 @@ export {
4599
4640
  wt as px120,
4600
4641
  mt as px130,
4601
4642
  ft as px140,
4602
- pt as px150,
4603
- bt as px160,
4643
+ bt as px150,
4644
+ pt as px160,
4604
4645
  gt as px170,
4605
4646
  ut as px180,
4606
4647
  ct as px190,