@guiexpert/table 1.1.4 → 1.1.7

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
@@ -1,18 +1,43 @@
1
- function P(h) {
1
+ class P {
2
+ // The constructor is private to prevent direct construction calls
3
+ // with the `new` operator
4
+ constructor() {
5
+ this.alreadySet = !1;
6
+ }
7
+ static getInstance() {
8
+ return P.instance || (P.instance = new P()), P.instance;
9
+ }
10
+ /**
11
+ * Method to set the license key for the application.
12
+ * A 'meta' element is created with content as 'guiexperttable=<license key>'
13
+ * and appended into the head section of the document
14
+ *
15
+ * @param {string} key - The license key to set for the application.
16
+ *
17
+ * @return {void} - This method does not return anything
18
+ */
19
+ setLicenseKey(e) {
20
+ if (e && !this.alreadySet) {
21
+ const t = document.createElement("meta");
22
+ t.content = "license=" + e, t.name = "guiexperttable", document.getElementsByTagName("head")[0].appendChild(t), this.alreadySet = !0;
23
+ }
24
+ }
25
+ }
26
+ function O(h) {
2
27
  return h && h.type === "TreeRow";
3
28
  }
4
- function N(h) {
29
+ function z(h) {
5
30
  return h && h.type === "AreaModelTree";
6
31
  }
7
- function pe(h) {
32
+ function fe(h) {
8
33
  return h && h.type === "CheckboxColumnDef";
9
34
  }
10
- class X {
35
+ class K {
11
36
  constructor(e = -1, t = -1, o = -1, s = -1, i, r, l, n = 0, d = 0, a = 0, c = "") {
12
37
  this.rowIndex = e, this.rowTop = t, this.columnIndex = o, this.columnLeft = s, this.areaIdent = i, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX = d, this.draggingY = a, this.action = c;
13
38
  }
14
39
  clone() {
15
- return new X(
40
+ return new K(
16
41
  this.rowIndex,
17
42
  this.rowTop,
18
43
  this.columnIndex,
@@ -32,7 +57,7 @@ class F {
32
57
  this.content = e, this.style = t, this.classes = o;
33
58
  }
34
59
  }
35
- class de {
60
+ class he {
36
61
  constructor(e = new F(
37
62
  ">",
38
63
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
@@ -53,12 +78,12 @@ class de {
53
78
  this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = o, this.arrowExpandCollapseAll = s;
54
79
  }
55
80
  }
56
- class he {
81
+ class ce {
57
82
  constructor(e = new F("↑", "", ["ge-header-sorted-asc"]), t = new F("↓", "", ["ge-header-sorted-desc"]), o = new F("↑", "color:transparent;", [])) {
58
83
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = o;
59
84
  }
60
85
  }
61
- class fe {
86
+ class me {
62
87
  constructor(e) {
63
88
  this.domService = e;
64
89
  }
@@ -178,7 +203,7 @@ class fe {
178
203
  }
179
204
  return this.domService.appendChild(e, l), l;
180
205
  }
181
- addSortedIcon(e, t = "", o = new he(), s = -1) {
206
+ addSortedIcon(e, t = "", o = new ce(), s = -1) {
182
207
  const i = this.domService.createElement("div");
183
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");
184
209
  let r;
@@ -189,7 +214,7 @@ class fe {
189
214
  this.domService.addClass(i, d);
190
215
  return this.domService.appendChild(e, i), i;
191
216
  }
192
- addArrowDiv(e, t = "none", o = new de(), s = -1, i = -1, r = "body") {
217
+ addArrowDiv(e, t = "none", o = new he(), s = -1, i = -1, r = "body") {
193
218
  const l = this.domService.createElement("div");
194
219
  this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${s}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
195
220
  let n;
@@ -216,8 +241,9 @@ class fe {
216
241
  return this.domService.addClass(s, o), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${e.left}px`), this.domService.setStyle(s, "top", `${e.top}px`), this.domService.setStyle(s, "width", `${e.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.appendChild(t, s), s;
217
242
  }
218
243
  addFocusBorderDivs(e, t, o) {
244
+ t = { ...t, width: t.width + 1, height: t.height + 1 };
219
245
  let s = this.domService.createElement("div");
220
- return this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.applyStyle(s, o), this.domService.appendChild(e, s), e;
246
+ return this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), e;
221
247
  }
222
248
  addVerticalBorder(e, t, o = "ge-table-body-center-vertical-border") {
223
249
  const s = this.domService.createElement("div");
@@ -240,7 +266,7 @@ class fe {
240
266
  }
241
267
  }
242
268
  const Y = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
243
- class me {
269
+ class we {
244
270
  constructor(e, t) {
245
271
  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)) {
246
272
  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"));
@@ -252,9 +278,9 @@ class me {
252
278
  }
253
279
  }
254
280
  }
255
- class we {
281
+ class Se {
256
282
  constructor(e) {
257
- this.tableScope = e, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, 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(
283
+ 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(
258
284
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
259
285
  );
260
286
  }
@@ -278,22 +304,26 @@ class we {
278
304
  * @return {void}
279
305
  */
280
306
  onHostElementClicked(e) {
281
- const t = new me(e.target, this.tableScope);
282
- if (t.action === "toggleExpandCollapseAll")
307
+ const t = Date.now();
308
+ if (t - this.lastClicked < this.doubleClickDelay)
309
+ return;
310
+ this.lastClicked = t;
311
+ const o = new we(e.target, this.tableScope);
312
+ if (o.action === "toggleExpandCollapseAll")
283
313
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
284
- else if (t.inputType === "checkbox" && t.areaIdent)
285
- this.tableScope.toggleRowCheckbox(t.rowIdx, t.colIdx, t.areaIdent), e.preventDefault(), e.stopPropagation();
286
- else if (P(t.row) && t.areaModel) {
287
- const o = t.colIdx === this.getArrowColumnIndex() && e.altKey, s = t.className.includes("ge-table-tree-arrow-div");
288
- if (console.info(s, o), o || s) {
314
+ else if (o.inputType === "checkbox" && o.areaIdent)
315
+ this.tableScope.toggleRowCheckbox(o.rowIdx, o.colIdx, o.areaIdent), e.preventDefault(), e.stopPropagation();
316
+ else if (O(o.row) && o.areaModel) {
317
+ const s = o.colIdx === this.getArrowColumnIndex() && e.altKey, i = o.className.includes("ge-table-tree-arrow-div");
318
+ if (console.info(i, s), s || i) {
289
319
  e.preventDefault(), e.stopPropagation();
290
- const i = t.row;
291
- i.expanded = !i.expanded, "recalcVisibleTreeRows" in t.areaModel && t.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(i);
320
+ const r = o.row;
321
+ r.expanded = !r.expanded, "recalcVisibleTreeRows" in o.areaModel && o.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(r);
292
322
  }
293
323
  }
294
- if (t.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
295
- const o = this.tableScope.tableOptions.getFocusModel();
296
- o == null || o.clear(), o == null || o.setFocus(t.rowIdx, t.colIdx);
324
+ if (o.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
325
+ const s = this.tableScope.tableOptions.getFocusModel();
326
+ s == null || s.clear(), s == null || s.setFocus(o.rowIdx, o.colIdx);
297
327
  }
298
328
  this.publishGeMouseEvent(e, 1);
299
329
  }
@@ -304,13 +334,13 @@ class we {
304
334
  * @param {MouseEvent} event - The double click event.
305
335
  */
306
336
  onHostElementDblClicked(e) {
307
- if (e.target instanceof HTMLElement) {
337
+ if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
308
338
  const t = e.target, o = t.getAttribute("data-area"), s = Y(o), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(s);
309
339
  if (o && s === "header")
310
340
  this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
311
341
  else if (t.getAttribute("data-row-index")) {
312
342
  const n = l.getRowByIndex(i);
313
- if (o && s === "body" && l.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), P(n) && r === this.getArrowColumnIndex()) {
343
+ if (o && s === "body" && l.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), O(n) && r === this.getArrowColumnIndex()) {
314
344
  e.preventDefault(), e.stopPropagation();
315
345
  const d = n;
316
346
  d.expanded = !d.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(d);
@@ -329,7 +359,7 @@ class we {
329
359
  */
330
360
  publishGeMouseEvent(e, t) {
331
361
  var o;
332
- this.mouseEvent = e, this.geMouseEventOld = (o = this.geMouseEvent) == null ? void 0 : o.clone(), this.geMouseEvent = this.tableScope.createGeMouseEvent(e), this.geMouseEvent && (this.geMouseEvent.clickCount = t), this.tableScope.onMouseClicked(this.geMouseEvent, this.geMouseEventOld);
362
+ this.mouseEvent = e, this.geMouseEventOld = (o = this.geMouseEvent) == null ? void 0 : o.clone(), this.geMouseEvent = this.tableScope.createGeMouseEvent(e), this.geMouseEvent && (this.geMouseEvent.clickCount = t), this.tableScope.onMouseClicked(this.geMouseEvent, this.geMouseEventOld), this.tableScope.publishGeMouseEvent(this.geMouseEvent), t === 1 && this.tableScope.debounceRepaint();
333
363
  }
334
364
  /**
335
365
  * Update the collapsed/expanded state of a tree row.
@@ -378,7 +408,7 @@ class we {
378
408
  }
379
409
  }
380
410
  }
381
- class Se {
411
+ class xe {
382
412
  constructor(e) {
383
413
  this.tableScope = e;
384
414
  }
@@ -484,8 +514,28 @@ class Se {
484
514
  repaint() {
485
515
  this.tableScope.repaint();
486
516
  }
517
+ /**
518
+ * Clears the current selection of the table.
519
+ * The table will be rendered automatically.
520
+ *
521
+ * @returns {void}
522
+ */
523
+ clearSelection() {
524
+ this.tableScope.clearSelection(!0);
525
+ }
526
+ /**
527
+ * Sets the selection model for the table scope.
528
+ *
529
+ * @param {SelectionModel} sm - The selection model to be set.
530
+ * @param {boolean} [repaint=true] - Indicates whether the table should be repainted after setting the selection model. Default value is true.
531
+ *
532
+ * @return {void}
533
+ */
534
+ setSelectionModel(e, t = !0) {
535
+ this.tableScope.setSelectionModel(e, t);
536
+ }
487
537
  }
488
- class K {
538
+ class U {
489
539
  constructor(e) {
490
540
  this.getStorageKeyFn = e;
491
541
  }
@@ -560,7 +610,7 @@ class K {
560
610
  // }
561
611
  // }
562
612
  }
563
- class xe extends K {
613
+ class ye extends U {
564
614
  constructor(e) {
565
615
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
566
616
  }
@@ -582,14 +632,14 @@ class xe extends K {
582
632
  }
583
633
  }
584
634
  }
585
- class ye {
635
+ class Ce {
586
636
  constructor(e = "collapsed", t = [], o = !1, s = !1) {
587
637
  this.mode = e, this.rowIds = t, this.allCollapsed = o, this.allExpanded = s;
588
638
  }
589
639
  }
590
- class Ce extends K {
640
+ class ve extends U {
591
641
  constructor(e) {
592
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new ye(), this.load();
642
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new Ce(), this.load();
593
643
  }
594
644
  collapsedExpandedStateGet() {
595
645
  return this.collapsedExpandedState;
@@ -621,7 +671,7 @@ class Ce extends K {
621
671
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
622
672
  }
623
673
  }
624
- class ve extends K {
674
+ class Re extends U {
625
675
  constructor(e) {
626
676
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
627
677
  }
@@ -648,7 +698,7 @@ class $ {
648
698
  this.left = e, this.width = t, this.height = o, this.top = s, this.index = i;
649
699
  }
650
700
  }
651
- class Re {
701
+ class Ae {
652
702
  constructor(e, t, o, s) {
653
703
  this.hostElement = e, this.tableModel = t, this.dom = o, this.tableOptions = s, this.scrollTop = 0, this.areaBodyWestGeo = new $(), this.areaBodyCenterGeo = new $(), this.areaBodyEastGeo = new $();
654
704
  const i = this.hostElement;
@@ -799,7 +849,7 @@ class Re {
799
849
  this.dom.setStyle(this.contentWrapperDiv, "width", e), this.dom.setStyle(this.contentWrapperDiv, "height", t);
800
850
  }
801
851
  }
802
- class M {
852
+ class R {
803
853
  /**
804
854
  * Represents a constructor for a class.
805
855
  * @constructor
@@ -813,7 +863,7 @@ class M {
813
863
  this.r1 = e, this.c1 = t, this.r2 = o, this.c2 = s, this.gammaRange = i;
814
864
  }
815
865
  static create(e) {
816
- return e.gammaRange === void 0 && (e.gammaRange = !1), new M(
866
+ return e.gammaRange === void 0 && (e.gammaRange = !1), new R(
817
867
  e.rowIndex1,
818
868
  e.columnIndex1,
819
869
  e.rowIndex2,
@@ -822,19 +872,19 @@ class M {
822
872
  );
823
873
  }
824
874
  static singleCell(e, t) {
825
- return new M(e, t, e, t);
875
+ return new R(e, t, e, t);
826
876
  }
827
877
  static singleRow(e) {
828
- return new M(e, 0, e, Number.MAX_SAFE_INTEGER);
878
+ return new R(e, 0, e, Number.MAX_SAFE_INTEGER);
829
879
  }
830
880
  static singleColumn(e) {
831
- return new M(0, e, Number.MAX_SAFE_INTEGER, e);
881
+ return new R(0, e, Number.MAX_SAFE_INTEGER, e);
832
882
  }
833
883
  isInRange(e, t) {
834
884
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
835
885
  }
836
886
  }
837
- class Ae {
887
+ class Ee {
838
888
  constructor(e, t) {
839
889
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
840
890
  }
@@ -850,7 +900,7 @@ class Ae {
850
900
  i === 0 && (i = 1), r === 0 && (r = 1);
851
901
  const l = this.areaModel.hasOwnProperty("gammaCells");
852
902
  this.colAndRowspanRanges.push(
853
- new M(o, s, o + r - 1, s + i - 1, l)
903
+ new R(o, s, o + r - 1, s + i - 1, l)
854
904
  );
855
905
  }
856
906
  }
@@ -872,17 +922,17 @@ class T {
872
922
  this.header = e, this.body = t, this.footer = o;
873
923
  }
874
924
  }
875
- class Ee extends Re {
925
+ class Me extends Ae {
876
926
  constructor(e, t, o, s) {
877
927
  var r, l;
878
928
  super(e, t, o, s), this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
879
929
  header: [],
880
930
  body: [],
881
931
  footer: []
882
- }, 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), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), N(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
932
+ }, 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), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), z(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
883
933
  (n) => {
884
934
  var d;
885
- this.colAndRowspanModels[n] = new Ae(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
935
+ this.colAndRowspanModels[n] = new Ee(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
886
936
  }
887
937
  );
888
938
  }
@@ -892,10 +942,17 @@ class Ee extends Re {
892
942
  resetEditorRenderer() {
893
943
  this.editorRenderer = void 0, this.editorRendererRow = -1, this.editorRendererColumn = -1, this.editing = !1;
894
944
  }
895
- clearSelection() {
945
+ /**
946
+ * Clears the selection in the component.
947
+ *
948
+ * @param {boolean} rerender - Indicates whether to rerender the component after clearing the selection. Default value is false.
949
+ *
950
+ * @return {void}
951
+ */
952
+ clearSelection(e = !1) {
896
953
  if (this.getSelectionModel) {
897
- const e = this.getSelectionModel();
898
- e == null || e.clear();
954
+ const t = this.getSelectionModel();
955
+ t == null || t.clear(), e && this.repaint();
899
956
  }
900
957
  }
901
958
  initRenderEditor(e, t) {
@@ -1012,11 +1069,11 @@ class Ee extends Re {
1012
1069
  let u = t;
1013
1070
  const m = this.tableModel.getColumnCount(), b = this.tableModel.getFixedRightColumnCount(), w = this.tableModel.getFixedLeftColumnCount();
1014
1071
  for (let p = 0; p < c; p++) {
1015
- const R = u, C = p === c - 1, v = this.tableModel.getRowHeight(e, p);
1016
- if (R + v > 0) {
1072
+ const A = u, C = p === c - 1, v = this.tableModel.getRowHeight(e, p);
1073
+ if (A + v > 0) {
1017
1074
  this.firstVisibleRowIndex = p;
1018
- let x = { left: l, width: n, height: v, top: R, index: p }, y = this.dom.addRowDiv(s, x, p, e, "center");
1019
- const A = w;
1075
+ let x = { left: l, width: n, height: v, top: A, index: p }, y = this.dom.addRowDiv(s, x, p, e, "center");
1076
+ const E = w;
1020
1077
  if (this.adjustColumnsToRowParent({
1021
1078
  areaIdent: e,
1022
1079
  sideIdent: "center",
@@ -1024,11 +1081,11 @@ class Ee extends Re {
1024
1081
  geo: x,
1025
1082
  parent: y,
1026
1083
  rowIndex: p,
1027
- columnIndexStart: A,
1084
+ columnIndexStart: E,
1028
1085
  columnIndexEnd: m - b - 1,
1029
1086
  verticalFixed: !1,
1030
1087
  lastRowOfModel: C
1031
- }), d.left > 0 && (x = { left: l, width: this.areaBodyWestGeo.width, height: v, top: R, index: p }, y = this.dom.addRowDiv(o, x, p, e, "west"), this.adjustColumnsToRowParent({
1088
+ }), d.left > 0 && (x = { left: l, width: this.areaBodyWestGeo.width, height: v, top: A, index: p }, y = this.dom.addRowDiv(o, x, p, e, "west"), this.adjustColumnsToRowParent({
1032
1089
  areaIdent: e,
1033
1090
  sideIdent: "west",
1034
1091
  areaModel: a,
@@ -1036,10 +1093,10 @@ class Ee extends Re {
1036
1093
  parent: y,
1037
1094
  rowIndex: p,
1038
1095
  columnIndexStart: 0,
1039
- columnIndexEnd: A - 1,
1096
+ columnIndexEnd: E - 1,
1040
1097
  verticalFixed: !0,
1041
1098
  lastRowOfModel: C
1042
- })), d.right > 0 && (x = { left: l, width: this.areaBodyEastGeo.width, height: v, top: R, index: p }, y = this.dom.addRowDiv(i, x, p, e, "east"), this.adjustColumnsToRowParent({
1099
+ })), d.right > 0 && (x = { left: l, width: this.areaBodyEastGeo.width, height: v, top: A, index: p }, y = this.dom.addRowDiv(i, x, p, e, "east"), this.adjustColumnsToRowParent({
1043
1100
  areaIdent: e,
1044
1101
  sideIdent: "east",
1045
1102
  areaModel: a,
@@ -1051,7 +1108,7 @@ class Ee extends Re {
1051
1108
  verticalFixed: !0,
1052
1109
  lastRowOfModel: C
1053
1110
  })), e === "header" && this.tree && p === c - 1) {
1054
- const E = this.dom.applyStyle(
1111
+ const M = this.dom.applyStyle(
1055
1112
  this.dom.setAttribute(
1056
1113
  this.dom.addDiv(y, new $(16, 20, 20, 8)),
1057
1114
  "data-ge-action",
@@ -1060,8 +1117,8 @@ class Ee extends Re {
1060
1117
  { cursor: "pointer" }
1061
1118
  ), k = this.tableOptions.treeOptions.arrowExpandCollapseAll;
1062
1119
  if (k) {
1063
- const H = this.dom.domService.createText(k.content);
1064
- this.dom.domService.appendChild(E, H), k.style && this.dom.applyStyleString(E, k.style);
1120
+ const B = this.dom.domService.createText(k.content);
1121
+ this.dom.domService.appendChild(M, B), k.style && this.dom.applyStyleString(M, k.style);
1065
1122
  }
1066
1123
  }
1067
1124
  }
@@ -1071,17 +1128,17 @@ class Ee extends Re {
1071
1128
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1072
1129
  const p = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
1073
1130
  if (p.length)
1074
- for (const R of p) {
1131
+ for (const A of p) {
1075
1132
  let C = 0, v = s.child, x = "center";
1076
- if (R.c1 < w)
1133
+ if (A.c1 < w)
1077
1134
  v = o.child, x = "west";
1078
- else if (b > 0 && R.c1 >= m - b)
1135
+ else if (b > 0 && A.c1 >= m - b)
1079
1136
  v = i.child, x = "east";
1080
1137
  else {
1081
1138
  const y = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1082
1139
  C = this.scrollFactorX * y - this.areaBodyWestGeo.width, x = "center";
1083
1140
  }
1084
- this.drawBigCell(R, C, t, a, v, x);
1141
+ this.drawBigCell(A, C, t, a, v, x);
1085
1142
  }
1086
1143
  }
1087
1144
  }
@@ -1173,21 +1230,21 @@ class Ee extends Re {
1173
1230
  const u = 0, m = !!(e === "body" && t);
1174
1231
  let b = c;
1175
1232
  for (let g = l; g <= n; g++) {
1176
- const p = b, R = this.tableModel.getColumnWidth(g);
1177
- if (R > 0 && p + R > 0) {
1233
+ const p = b, A = this.tableModel.getColumnWidth(g);
1234
+ if (A > 0 && p + A > 0) {
1178
1235
  let C = s.height;
1179
1236
  const v = o.getRowspanAt(r, g), x = o.getColspanAt(r, g);
1180
- v > 1 && (C = this.getRowHeights(r, r + v - 1, o).reduce((E, k) => E + k, 0));
1181
- let y = R;
1182
- x > 1 && (y = this.getColumnWidths(g, g + x - 1).reduce((E, k) => E + k, 0));
1183
- let A = !1;
1184
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (w = this.colAndRowspanModels[e]) != null && w.isInRange(r, g) && (A = !0), this.draggingTargetColumnIndex === g && e !== "header") {
1237
+ v > 1 && (C = this.getRowHeights(r, r + v - 1, o).reduce((M, k) => M + k, 0));
1238
+ let y = A;
1239
+ x > 1 && (y = this.getColumnWidths(g, g + x - 1).reduce((M, k) => M + k, 0));
1240
+ let E = !1;
1241
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (w = this.colAndRowspanModels[e]) != null && w.isInRange(r, g) && (E = !0), this.draggingTargetColumnIndex === g && e !== "header") {
1185
1242
  this.renderDragTargetDiv(i, p, u, y, C);
1186
- const E = { left: p, top: u, width: y, height: C };
1187
- this.dom.addColumnBorderDivs(this.tableOptions, i, E, e, t);
1243
+ const M = { left: p, top: u, width: y, height: C };
1244
+ this.dom.addColumnBorderDivs(this.tableOptions, i, M, e, t);
1188
1245
  } else {
1189
- const E = this.renderSelectedBackgroundDiv(A, m, t, o, r, g, i, p, u, y, C);
1190
- A || this.renderCell({
1246
+ const M = this.renderSelectedBackgroundDiv(E, m, t, o, r, g, i, p, u, y, C);
1247
+ E || this.renderCell({
1191
1248
  areaModel: o,
1192
1249
  areaIdent: e,
1193
1250
  sideIdent: t,
@@ -1198,7 +1255,7 @@ class Ee extends Re {
1198
1255
  width: y,
1199
1256
  height: C,
1200
1257
  parent: i,
1201
- cellSelected: E,
1258
+ cellSelected: M,
1202
1259
  lastRowOfModel: a,
1203
1260
  gammaRange: !0
1204
1261
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
@@ -1212,7 +1269,7 @@ class Ee extends Re {
1212
1269
  });
1213
1270
  }
1214
1271
  }
1215
- if (b = b + R, b > this.areaBodyCenterGeo.width)
1272
+ if (b = b + A, b > this.areaBodyCenterGeo.width)
1216
1273
  break;
1217
1274
  }
1218
1275
  this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new $(b - 1, 1, s.height, 0), i);
@@ -1234,19 +1291,19 @@ class Ee extends Re {
1234
1291
  lastRowOfModel: c,
1235
1292
  gammaRange: u
1236
1293
  }) {
1237
- var Q;
1294
+ var Z;
1238
1295
  const b = this.editorRenderer && this.editorRendererRow === s && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(s, i), w = { left: r, width: l, height: n, top: d, index: i }, g = e.getRowByIndex(s);
1239
1296
  let p = "none";
1240
- if (i === this.getTreeArrowColumnIndex() && P(g)) {
1297
+ if (i === this.getTreeArrowColumnIndex() && O(g)) {
1241
1298
  const S = g;
1242
- (Q = S.children) != null && Q.length ? S.expanded ? p = "expanded" : p = "collapsed" : p = "hidden";
1299
+ (Z = S.children) != null && Z.length ? S.expanded ? p = "expanded" : p = "collapsed" : p = "hidden";
1243
1300
  }
1244
1301
  let C;
1245
1302
  if (t === "header") {
1246
1303
  const S = this.tableModel.getColumnDef(i);
1247
1304
  (!(S != null && S.sortIconVisible) || S != null && S.sortIconVisible()) && (C = S == null ? void 0 : S.sortState);
1248
1305
  }
1249
- const v = e.getValueAt(s, i), x = b ? "" : `${v}`, y = e.isRowChecked(s), A = this.dom.addColumnDiv(
1306
+ const v = e.getValueAt(s, i), x = b ? "" : `${v}`, y = e.isRowChecked(s), E = this.dom.addColumnDiv(
1250
1307
  a,
1251
1308
  w,
1252
1309
  s,
@@ -1258,23 +1315,23 @@ class Ee extends Re {
1258
1315
  this.tableOptions,
1259
1316
  y,
1260
1317
  C
1261
- ), E = e.getTooltipAt(s, i);
1262
- E && this.dom.setAttribute(A, "title", E);
1318
+ ), M = e.getTooltipAt(s, i);
1319
+ M && this.dom.setAttribute(E, "title", M);
1263
1320
  const k = this.tableModel.getColumnDef(i);
1264
- k && k.classes[t] && this.dom.addClasses(k.classes[t], A);
1265
- let H;
1266
- b && (H = b.render(A, s, i, t, e, v, this.dom.domService));
1267
- const J = e.getCustomClassesAt(s, i);
1268
- if (J.length && this.dom.addClasses(J, A), this.dom.addColumnBorderDivs(this.tableOptions, a, w, t, o), c && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: d + n }, a), this.getFocusModel && t === "body") {
1321
+ k && k.classes[t] && this.dom.addClasses(k.classes[t], E);
1322
+ let B;
1323
+ b && (B = b.render(E, s, i, t, e, v, this.dom.domService));
1324
+ const Q = e.getCustomClassesAt(s, i);
1325
+ if (Q.length && this.dom.addClasses(Q, E), this.dom.addColumnBorderDivs(this.tableOptions, a, w, t, o), c && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: d + n }, a), this.getFocusModel && t === "body") {
1269
1326
  const S = this.getFocusModel();
1270
1327
  S != null && S.hasFocus(s, i) && this.dom.addFocusBorderDivs(a, w, {});
1271
1328
  }
1272
- t === "header" && this.dom.setAttribute(A, "data-ge-action", "drag-column");
1273
- const W = e.getCustomStyleAt(s, i);
1274
- if (W)
1275
- for (const S in W)
1276
- this.dom.setStyle(A, S, W[S]);
1277
- return [A, H];
1329
+ t === "header" && this.dom.setAttribute(E, "data-ge-action", "drag-column");
1330
+ const G = e.getCustomStyleAt(s, i);
1331
+ if (G)
1332
+ for (const S in G)
1333
+ this.dom.setStyle(E, S, G[S]);
1334
+ return [E, B];
1278
1335
  }
1279
1336
  applyCssClasses(e, t = {}) {
1280
1337
  e && Object.entries(t).forEach(([o, s]) => {
@@ -1411,12 +1468,12 @@ class Ee extends Re {
1411
1468
  n.setAttribute(a, "data-col-index", `${t}`), n.setAttribute(a, "data-row-index", `${e}`), n.setAttribute(a, "data-area", "header"), n.setAttribute(a, "data-ge-action", "resize-column"), n.addClass(a, "ge-table-column-resize-handle"), n.setStyle(a, "display", "clip"), n.setStyle(a, "position", "absolute"), n.setStyle(a, "cursor", "col-resize"), n.setStyle(a, "left", `${o + i - d}px`), n.setStyle(a, "top", `${s}px`), n.setStyle(a, "width", `${d}px`), n.setStyle(a, "height", `${r}px`), n.appendChild(l, a);
1412
1469
  }
1413
1470
  }
1414
- class Me {
1471
+ class ke {
1415
1472
  constructor(e, t) {
1416
1473
  this.columnIndex = e, this.sortState = t;
1417
1474
  }
1418
1475
  }
1419
- class ke {
1476
+ class Ie {
1420
1477
  constructor(e) {
1421
1478
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
1422
1479
  }
@@ -1438,20 +1495,20 @@ class ke {
1438
1495
  }
1439
1496
  }
1440
1497
  }
1441
- class Ie {
1498
+ class Te {
1442
1499
  constructor(e = -1, t = -1) {
1443
1500
  this.rowIndex = e, this.columnIndex = t;
1444
1501
  }
1445
1502
  }
1446
- class U {
1503
+ class q {
1447
1504
  constructor(e) {
1448
1505
  this.cells = e;
1449
1506
  }
1450
1507
  static createSingle(e, t) {
1451
- return new U([new Ie(e, t)]);
1508
+ return new q([new Te(e, t)]);
1452
1509
  }
1453
1510
  }
1454
- class Te {
1511
+ class De {
1455
1512
  constructor(e) {
1456
1513
  var t, o;
1457
1514
  this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (o = this.tableScope.tableOptions) != null && o.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
@@ -1461,7 +1518,7 @@ class Te {
1461
1518
  let o = !1, s = !1;
1462
1519
  if (this.getSelectionModel && this.getFocusModel) {
1463
1520
  const u = this.getSelectionModel(), m = this.getFocusModel();
1464
- u && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), o = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), s = !0, o = !0) : (l = e.originalEvent) != null && l.ctrlKey || (n = e.originalEvent) != null && n.metaKey ? (u.addSelection(M.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (d = e.originalEvent) != null && d.altKey && ((a = e.originalEvent) != null && a.ctrlKey || (c = e.originalEvent) != null && c.metaKey) && (u.removeSelection(M.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0));
1521
+ u && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), o = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), s = !0, o = !0) : (l = e.originalEvent) != null && l.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (d = e.originalEvent) != null && d.metaKey) ? (u.removeSelection(R.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (a = e.originalEvent) != null && a.ctrlKey || (c = e.originalEvent) != null && c.metaKey ? (u.addSelection(R.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (u.firstClick(e.rowIndex, e.columnIndex), o = !0));
1465
1522
  }
1466
1523
  return s ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), o;
1467
1524
  }
@@ -1484,7 +1541,7 @@ class Te {
1484
1541
  createRangeByEvents(e, t) {
1485
1542
  t || (t = e);
1486
1543
  const o = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), s = 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);
1487
- return M.create({
1544
+ return R.create({
1488
1545
  rowIndex1: o,
1489
1546
  columnIndex1: i,
1490
1547
  rowIndex2: s,
@@ -1510,7 +1567,7 @@ class _e {
1510
1567
  };
1511
1568
  }
1512
1569
  }
1513
- class De {
1570
+ class $e {
1514
1571
  get() {
1515
1572
  return {
1516
1573
  f2: "START_EDITING",
@@ -1530,7 +1587,7 @@ class De {
1530
1587
  };
1531
1588
  }
1532
1589
  }
1533
- class $e {
1590
+ class Fe {
1534
1591
  constructor(e) {
1535
1592
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
1536
1593
  }
@@ -1538,7 +1595,7 @@ class $e {
1538
1595
  this.listener.includes(e) || this.listener.push(e);
1539
1596
  }
1540
1597
  init() {
1541
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new De().get()) : Object.assign(this.shortcutActionIdMapping, new _e().get()), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
1598
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new $e().get()) : Object.assign(this.shortcutActionIdMapping, new _e().get()), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
1542
1599
  }
1543
1600
  isMacintosh() {
1544
1601
  return navigator.platform.indexOf("Mac") > -1;
@@ -1564,7 +1621,7 @@ class $e {
1564
1621
  const t = this.getTokenByEvent(e);
1565
1622
  this.isDebug() && console.debug("ShortcutService tokens:", t);
1566
1623
  for (const o in this.shortcutActionIdMapping) {
1567
- const s = o.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[\+ ]/g).sort();
1624
+ const s = o.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[+ ]/g).sort();
1568
1625
  if (this.areTokensEquals(t, s))
1569
1626
  return this.shortcutActionIdMapping[o];
1570
1627
  }
@@ -1582,7 +1639,7 @@ class $e {
1582
1639
  return e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.ctrlKey && t.push("ctrl"), e.metaKey && t.push("meta"), e.code && t.push(e.code.toLowerCase().replace(/key/g, "")), t.sort();
1583
1640
  }
1584
1641
  }
1585
- class Z {
1642
+ class ee {
1586
1643
  onCheckboxChanged(e) {
1587
1644
  }
1588
1645
  onContextmenu(e) {
@@ -1598,7 +1655,7 @@ class Z {
1598
1655
  onMouseMoved(e) {
1599
1656
  }
1600
1657
  }
1601
- class Fe {
1658
+ class Le {
1602
1659
  setStyle(e, t, o) {
1603
1660
  return e.style[t] = o, e;
1604
1661
  }
@@ -1625,7 +1682,7 @@ class Fe {
1625
1682
  e.setAttribute(t, o);
1626
1683
  }
1627
1684
  }
1628
- class Le {
1685
+ class Pe {
1629
1686
  render(e, t, o, s, i, r, l) {
1630
1687
  if (i.isEditable(t, o)) {
1631
1688
  l.addClass(e, "ge-table-row-input-div");
@@ -1646,10 +1703,13 @@ class Le {
1646
1703
  }
1647
1704
  }
1648
1705
  }
1649
- class Pe {
1706
+ class Oe {
1650
1707
  constructor(e = "none", t = "single") {
1651
1708
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
1652
1709
  }
1710
+ firstClick(e, t) {
1711
+ this.selectionType === "row" ? this.addRange(R.singleRow(e)) : this.selectionType === "column" && this.addRange(R.singleColumn(t));
1712
+ }
1653
1713
  getSelectionCount(e, t) {
1654
1714
  let o = 0;
1655
1715
  for (const s of this.ranges)
@@ -1681,16 +1741,16 @@ class Pe {
1681
1741
  if (this.selectionType === "none")
1682
1742
  return;
1683
1743
  let t = e;
1684
- this.selectionType === "row" ? t = M.singleRow(e.r1) : this.selectionType === "column" && (t = M.singleColumn(e.c1)), this.negativeRanges.push(t);
1744
+ this.selectionType === "row" ? t = R.singleRow(e.r1) : this.selectionType === "column" && (t = R.singleColumn(e.c1)), this.negativeRanges.push(t);
1685
1745
  }
1686
1746
  togglePoint(e, t) {
1687
- this.getSelectionCount(e, t) > 0 ? this.removeSelection(M.singleCell(e, t)) : this.addSelection(M.singleCell(e, t));
1747
+ this.getSelectionCount(e, t) > 0 ? this.removeSelection(R.singleCell(e, t)) : this.addSelection(R.singleCell(e, t));
1688
1748
  }
1689
1749
  addRange(e) {
1690
1750
  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));
1691
1751
  }
1692
1752
  }
1693
- class Oe {
1753
+ class He {
1694
1754
  constructor(e = "none") {
1695
1755
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1;
1696
1756
  }
@@ -1713,29 +1773,29 @@ class Oe {
1713
1773
  return [this.rowIndex, this.columnIndex];
1714
1774
  }
1715
1775
  }
1716
- const Ve = new Pe(), He = new Oe("cell");
1717
- class z {
1776
+ const Ve = new Oe(), Be = new He("cell");
1777
+ class j {
1718
1778
  constructor() {
1719
1779
  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 = {
1720
1780
  header: 34,
1721
1781
  body: 34,
1722
1782
  footer: 34
1723
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new de(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new he(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new Le(), this.getSelectionModel = () => Ve, this.getFocusModel = () => He;
1783
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new he(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new ce(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new Pe(), this.getSelectionModel = () => Ve, this.getFocusModel = () => Be;
1724
1784
  }
1725
1785
  }
1726
- class ce extends Ee {
1786
+ class ue extends Me {
1727
1787
  constructor(e, t, o, s, i) {
1728
1788
  var r;
1729
1789
  if (super(
1730
1790
  e,
1731
1791
  t,
1732
- new fe(o),
1792
+ new me(o),
1733
1793
  s
1734
- ), this.eventListener = i, this.selectionService = new Te(this), this.api = new Se(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, i || (this.eventListener = new Z()), (r = this.tableOptions) != null && r.autoRestoreOptions) {
1794
+ ), this.eventListener = i, this.licenseManager = P.getInstance(), this.selectionService = new De(this), this.api = new xe(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, i || (this.eventListener = new ee()), (r = this.tableOptions) != null && r.autoRestoreOptions) {
1735
1795
  const l = this.tableOptions.autoRestoreOptions, n = l.getStorageKeyFn;
1736
- n && (l.autoRestoreScrollPosition && (this.storeScrollPosStateService = new xe(n)), l.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new Ce(n)), l.autoRestoreSortingState && (this.storeSortingService = new ve(n)));
1796
+ n && (l.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ye(n)), l.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ve(n)), l.autoRestoreSortingState && (this.storeSortingService = new Re(n)));
1737
1797
  }
1738
- this.mouseHandler = new we(this), this.inputHandler = new ke(this), this.shortcutService = new $e(this), this.shortcutService.addListener(this.selectionService);
1798
+ this.mouseHandler = new Se(this), this.inputHandler = new Ie(this), this.shortcutService = new Fe(this), this.shortcutService.addListener(this.selectionService);
1739
1799
  }
1740
1800
  /**
1741
1801
  * Creates a TableScope instance.
@@ -1748,8 +1808,8 @@ class ce extends Ee {
1748
1808
  *
1749
1809
  * @return {TableScope} - The newly created TableScope instance.
1750
1810
  */
1751
- static create(e, t, o = new z(), s = new Z(), i = new Fe()) {
1752
- return new ce(
1811
+ static create(e, t, o = new j(), s = new ee(), i = new Le()) {
1812
+ return new ue(
1753
1813
  e,
1754
1814
  t,
1755
1815
  i,
@@ -1771,7 +1831,7 @@ class ce extends Ee {
1771
1831
  return !1;
1772
1832
  }
1773
1833
  updateModelValueAfterEdit(e, t, o, s) {
1774
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, o, s) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(U.createSingle(t, o)), this.hostElement.focus());
1834
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, o, s) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(q.createSingle(t, o)), this.hostElement.focus());
1775
1835
  }
1776
1836
  /**
1777
1837
  * Retrieves the TableApi object.
@@ -1800,7 +1860,7 @@ class ce extends Ee {
1800
1860
  * @return {GeMouseEvent} - The created GeMouseEvent object.
1801
1861
  */
1802
1862
  createGeMouseEvent(e) {
1803
- const t = new X();
1863
+ const t = new K();
1804
1864
  if (t.originalEvent = e, e) {
1805
1865
  const o = e.target;
1806
1866
  if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(o), t.rowIndex = this.getNumberByAttr(o, "data-row-index"), t.columnIndex = this.getNumberByAttr(o, "data-col-index"), t.action = this.getStringByAttr(o, "data-ge-action"), t.areaIdent) {
@@ -1869,7 +1929,7 @@ class ce extends Ee {
1869
1929
  toggleExpandCollapseAll(e = !0) {
1870
1930
  var o;
1871
1931
  const t = this.tableModel.getBodyModel();
1872
- N(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (o = this.storeStateCollapsedExpandService) == null || o.collapsedStateAll(e));
1932
+ z(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (o = this.storeStateCollapsedExpandService) == null || o.collapsedStateAll(e));
1873
1933
  }
1874
1934
  /**
1875
1935
  * Toggles the checkbox state of a specific row in a table.
@@ -1897,10 +1957,17 @@ class ce extends Ee {
1897
1957
  onMouseClicked(e, t) {
1898
1958
  let o = this.selectionService.onMouseClicked(e, t);
1899
1959
  if (!o && this.getFocusModel) {
1960
+ this.resetEditorRenderer();
1900
1961
  const s = this.getFocusModel();
1901
- s && (o = s.hasChanged(), s.clearChanged(), o && this.resetEditorRenderer());
1962
+ s && (o = s.hasChanged(), s.clearChanged());
1902
1963
  }
1903
- this.eventListener.onMouseClicked(e), o && this.debounce(this.repaint.bind(this), 10);
1964
+ return o;
1965
+ }
1966
+ debounceRepaint() {
1967
+ this.debounce(this.repaint.bind(this), 1);
1968
+ }
1969
+ publishGeMouseEvent(e) {
1970
+ this.eventListener.onMouseClicked(e);
1904
1971
  }
1905
1972
  /**
1906
1973
  * Updates the table (repaint) when an external filter is changed.
@@ -1926,7 +1993,7 @@ class ce extends Ee {
1926
1993
  const s = this.tableModel.getColumnDef(o);
1927
1994
  if (s != null && s.sortable && s.sortable()) {
1928
1995
  e.preventDefault(), e.stopPropagation();
1929
- const l = s.sortStatesOrder ? s.sortStatesOrder : this.tableOptions.sortOrder, n = s.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], a = new Me(o, d);
1996
+ const l = s.sortStatesOrder ? s.sortStatesOrder : this.tableOptions.sortOrder, n = s.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], a = new ke(o, d);
1930
1997
  this.tableModel.doSort([a]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((u) => u.sortState = ""), s.sortState = d), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([a]);
1931
1998
  }
1932
1999
  }
@@ -1971,8 +2038,6 @@ class ce extends Ee {
1971
2038
  /**
1972
2039
  * Restores the scroll position of the table if auto restore options are enabled.
1973
2040
  *
1974
- * @private
1975
- * @memberof ClassName
1976
2041
  *
1977
2042
  * @returns {void}
1978
2043
  */
@@ -2016,7 +2081,7 @@ class ce extends Ee {
2016
2081
  const o = this.tableOptions.autoRestoreOptions, s = o.getRowId;
2017
2082
  if (o.autoRestoreCollapsedExpandedState && s) {
2018
2083
  const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
2019
- if (N(r)) {
2084
+ if (z(r)) {
2020
2085
  const l = r, n = r.getRowCount();
2021
2086
  for (let d = 0; d < n; d++) {
2022
2087
  const a = r.getRowByIndex(d);
@@ -2057,11 +2122,23 @@ class ce extends Ee {
2057
2122
  const s = this.tableModel.getAreaModel("body").getYPosByRowIndex(t);
2058
2123
  this.scrollToPixel(0, s);
2059
2124
  }
2125
+ /**
2126
+ * Sets the selection model for the table.
2127
+ *
2128
+ * @param {SelectionModel} sm - The selection model to be set.
2129
+ * @param {boolean} rerender - Optional parameter indicating whether to rerender the table after setting the selection model. Default value is false.
2130
+ *
2131
+ * @return {void} - This method does not return any value.
2132
+ */
2133
+ setSelectionModel(e, t = !1) {
2134
+ const o = () => e;
2135
+ this.tableOptions.getSelectionModel = o, this.getSelectionModel = o, this.selectionService.getSelectionModel = o, t && this.repaint();
2136
+ }
2060
2137
  }
2061
- class ue {
2138
+ class ge {
2062
2139
  }
2063
- ue.themes = ["light", "combat", "paper", "blackboard"];
2064
- ue.vars = {
2140
+ ge.themes = ["light", "combat", "paper", "blackboard"];
2141
+ ge.vars = {
2065
2142
  light: `html[data-theme="light"] {
2066
2143
  --ge-table-bg: rgba(255,255,255, 0.5);
2067
2144
  --ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
@@ -2295,27 +2372,27 @@ ue.vars = {
2295
2372
  --ge-table-drop-zone-bg: #758129;
2296
2373
  }`
2297
2374
  };
2298
- class ee {
2375
+ class te {
2299
2376
  constructor(e, t = !0, o, s, i = 0, r = !1, l = !1) {
2300
2377
  this.data = e, this.expanded = t, this.children = o, this.parent = s, this.deep = i, this.checked = r, this.keep = l, this.type = "TreeRow";
2301
2378
  }
2302
2379
  }
2303
- class j {
2380
+ class X {
2304
2381
  static buildTreeRows(e, t = "children", o = 12) {
2305
2382
  const s = [];
2306
2383
  for (const i of e)
2307
- s.push(j.buildTreeRow(i, t, void 0, 0, o));
2384
+ s.push(X.buildTreeRow(i, t, void 0, 0, o));
2308
2385
  return s;
2309
2386
  }
2310
- static buildTreeRow(e, t = "children", o = new ee(e, !0, [], void 0, 0), s = 0, i = 12) {
2387
+ static buildTreeRow(e, t = "children", o = new te(e, !0, [], void 0, 0), s = 0, i = 12) {
2311
2388
  var l;
2312
2389
  if (s > i)
2313
2390
  return console.warn("Max deep limit reached: ", s), o;
2314
2391
  const r = e[t];
2315
2392
  if (r)
2316
2393
  for (const n of r) {
2317
- const d = new ee(n, !0, [], o, s + 1);
2318
- if ((l = o.children) == null || l.push(d), j.buildTreeRow(
2394
+ const d = new te(n, !0, [], o, s + 1);
2395
+ if ((l = o.children) == null || l.push(d), X.buildTreeRow(
2319
2396
  n,
2320
2397
  t,
2321
2398
  d,
@@ -2326,7 +2403,7 @@ class j {
2326
2403
  return o;
2327
2404
  }
2328
2405
  }
2329
- class O {
2406
+ class H {
2330
2407
  constructor(e = 34, t = 34, o = 34) {
2331
2408
  this.header = e, this.body = t, this.footer = o;
2332
2409
  }
@@ -2336,7 +2413,7 @@ class f {
2336
2413
  this.value = e, this.unit = t;
2337
2414
  }
2338
2415
  }
2339
- const Be = () => !0, te = () => !1;
2416
+ const We = () => !0, oe = () => !1;
2340
2417
  class V {
2341
2418
  constructor(e, t, o = new f(100, "px"), s = new T(), i = new T(), r = new f(100, "px"), l = new f(100, "px"), n, d, a, c, u, m, b, w, g = () => this.visible) {
2342
2419
  this.property = e, this.headerLabel = t, this.width = o, this.classes = s, this.rendererMap = i, this.minWidth = r, this.maxWidth = l, this.sortable = n, this.sortComparator = d, this.sortState = a, this.sortStatesOrder = c, this.sortIconVisible = u, this.editable = m, this.getEditRenderer = b, this.editInputPipe = w, this.isVisible = g, this.visible = !0;
@@ -2357,7 +2434,7 @@ class V {
2357
2434
  e.headerClasses,
2358
2435
  e.bodyClasses,
2359
2436
  e.footerClasses
2360
- ), s = e.sortIconVisible ?? e.sortable ?? te, i = e.editable ?? e.editable ?? te, r = e.isVisible ?? e.isVisible ?? Be;
2437
+ ), s = e.sortIconVisible ?? e.sortable ?? oe, i = e.editable ?? e.editable ?? oe, r = e.isVisible ?? e.isVisible ?? We;
2361
2438
  return new V(
2362
2439
  e.property ?? "",
2363
2440
  e.headerLabel ?? "",
@@ -2378,8 +2455,8 @@ class V {
2378
2455
  );
2379
2456
  }
2380
2457
  }
2381
- const Ue = new f(300, "px"), qe = new f(290, "px"), Je = new f(280, "px"), Qe = new f(270, "px"), Ze = new f(260, "px"), et = new f(250, "px"), tt = new f(240, "px"), ot = new f(230, "px"), st = new f(220, "px"), it = new f(210, "px"), oe = new f(200, "px"), rt = new f(190, "px"), lt = new f(180, "px"), nt = new f(170, "px"), at = new f(160, "px"), dt = new f(150, "px"), ht = new f(140, "px"), ct = new f(130, "px"), ut = new f(120, "px"), gt = new f(110, "px"), bt = new f(100, "px"), pt = new f(90, "px"), ft = new f(80, "px"), mt = new f(70, "px"), wt = new f(60, "px"), St = new f(50, "px"), xt = new f(40, "px"), yt = new f(30, "px"), Ct = new f(20, "px"), vt = new f(10, "px"), Rt = new f(0, "px");
2382
- class q {
2458
+ const qe = new f(300, "px"), Je = new f(290, "px"), Qe = new f(280, "px"), Ze = new f(270, "px"), et = new f(260, "px"), tt = new f(250, "px"), ot = new f(240, "px"), st = new f(230, "px"), it = new f(220, "px"), rt = new f(210, "px"), se = new f(200, "px"), lt = new f(190, "px"), nt = new f(180, "px"), at = new f(170, "px"), dt = new f(160, "px"), ht = new f(150, "px"), ct = new f(140, "px"), ut = new f(130, "px"), gt = new f(120, "px"), bt = new f(110, "px"), pt = new f(100, "px"), ft = new f(90, "px"), mt = new f(80, "px"), wt = new f(70, "px"), St = new f(60, "px"), xt = new f(50, "px"), yt = new f(40, "px"), Ct = new f(30, "px"), vt = new f(20, "px"), Rt = new f(10, "px"), At = new f(0, "px");
2459
+ class J {
2383
2460
  constructor(e, t = [], o = -1) {
2384
2461
  this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = o, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((s) => s.rendererMap[e]);
2385
2462
  }
@@ -2470,7 +2547,7 @@ class q {
2470
2547
  this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
2471
2548
  }
2472
2549
  }
2473
- class _ extends q {
2550
+ class D extends J {
2474
2551
  constructor(e, t, o, s = []) {
2475
2552
  super(e, s, o), this.areaIdent = e, this.arr = t, this.defaultRowHeight = o, this.columnDefs = s, this.filteredArr = [...t];
2476
2553
  }
@@ -2498,7 +2575,7 @@ class _ extends q {
2498
2575
  this.filteredArr.forEach((o) => this.arrayMove(o, e, t)), super.changeColumnOrder(e, t);
2499
2576
  }
2500
2577
  }
2501
- class D {
2578
+ class _ {
2502
2579
  constructor(e = "body") {
2503
2580
  this.areaIdent = e, this.rowSelectionModel = void 0;
2504
2581
  }
@@ -2567,7 +2644,7 @@ class D {
2567
2644
  changeColumnOrder(e, t) {
2568
2645
  }
2569
2646
  }
2570
- class We {
2647
+ class Ge {
2571
2648
  flattenTree(e, t = []) {
2572
2649
  var o;
2573
2650
  for (const s of e)
@@ -2578,7 +2655,7 @@ class We {
2578
2655
  return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
2579
2656
  }
2580
2657
  }
2581
- class ge {
2658
+ class be {
2582
2659
  genericSortComparator(e, t, o) {
2583
2660
  if (typeof e == "number" && typeof t == "number")
2584
2661
  return o * (e - t);
@@ -2596,9 +2673,9 @@ class ge {
2596
2673
  return o * ("" + e).localeCompare("" + t);
2597
2674
  }
2598
2675
  }
2599
- class se extends q {
2676
+ class ie extends J {
2600
2677
  constructor(e, t, o, s = []) {
2601
- super(e, s, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = s, this.type = "AreaModelTree", this.sorterService = new ge(), this.service = new We(), this.properties = s.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
2678
+ super(e, s, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = s, this.type = "AreaModelTree", this.sorterService = new be(), this.service = new Ge(), this.properties = s.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
2602
2679
  }
2603
2680
  changeColumnOrder(e, t) {
2604
2681
  this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
@@ -2700,7 +2777,7 @@ class se extends q {
2700
2777
  s.children && this.treeSort(s.children, t, o);
2701
2778
  }
2702
2779
  }
2703
- class ie {
2780
+ class re {
2704
2781
  constructor(e = []) {
2705
2782
  this.allRootNodes = e;
2706
2783
  }
@@ -2760,12 +2837,12 @@ class ie {
2760
2837
  o.checked && t.push(o), o.children && this.addSelectedRecursive(o.children, t);
2761
2838
  }
2762
2839
  }
2763
- class re {
2840
+ class le {
2764
2841
  constructor(e = 0, t = 0, o = 0, s = 0) {
2765
2842
  this.top = e, this.right = t, this.bottom = o, this.left = s;
2766
2843
  }
2767
2844
  }
2768
- class Ge {
2845
+ class Ne {
2769
2846
  constructor() {
2770
2847
  this.checkedRows = [];
2771
2848
  }
@@ -2796,11 +2873,11 @@ class Ge {
2796
2873
  }
2797
2874
  }
2798
2875
  }
2799
- class G {
2800
- constructor(e, t, o, s = 0, i = 0, r = !1, l = new O(), n = [], d = [], a = -1, c = 0, u = 400, m = () => {
2876
+ class N {
2877
+ constructor(e, t, o, s = 0, i = 0, r = !1, l = new H(), n = [], d = [], a = -1, c = 0, u = 400, m = () => {
2801
2878
  }) {
2802
2879
  var b, w, g, p;
2803
- this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = o, this.fixedLeftColumnCount = s, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = l, this.columnDefs = n, this.columnSizes = d, this.overridingColumnWidth = a, this.columnCount = c, this.parentSize = u, this.getSelectionModel = m, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new re(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", o.areaIdent = "footer", this.columnCount || ((b = this.columnDefs) != null && b.length ? this.columnCount = this.columnDefs.length : (w = this.columnSizes) != null && w.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (p = this.columnDefs) != null && p.length && pe(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Ge());
2880
+ this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = o, this.fixedLeftColumnCount = s, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = l, this.columnDefs = n, this.columnSizes = d, this.overridingColumnWidth = a, this.columnCount = c, this.parentSize = u, this.getSelectionModel = m, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new le(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", o.areaIdent = "footer", this.columnCount || ((b = this.columnDefs) != null && b.length ? this.columnCount = this.columnDefs.length : (w = this.columnSizes) != null && w.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (p = this.columnDefs) != null && p.length && fe(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Ne());
2804
2881
  }
2805
2882
  init() {
2806
2883
  this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
@@ -2881,7 +2958,7 @@ class G {
2881
2958
  */
2882
2959
  recalcPadding() {
2883
2960
  const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), o = this.getAreaHeight("header"), s = this.getAreaHeight("footer");
2884
- this.padding = new re(
2961
+ this.padding = new le(
2885
2962
  o,
2886
2963
  t,
2887
2964
  s,
@@ -3145,9 +3222,9 @@ class G {
3145
3222
  this.xPositions[t + 1] = this.getColumnWidth(t) + this.xPositions[t];
3146
3223
  }
3147
3224
  }
3148
- class Ne extends q {
3225
+ class ze extends J {
3149
3226
  constructor(e, t, o, s = []) {
3150
- super(e, s, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = s, this.sorterService = new ge(), this.filteredRows = [...t], this.properties = s.map((i) => i.property);
3227
+ super(e, s, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = s, this.sorterService = new be(), this.filteredRows = [...t], this.properties = s.map((i) => i.property);
3151
3228
  }
3152
3229
  getRowCount() {
3153
3230
  var e;
@@ -3156,7 +3233,7 @@ class Ne extends q {
3156
3233
  getValueAt(e, t) {
3157
3234
  const o = this.properties[t];
3158
3235
  let s = this.filteredRows[e];
3159
- return P(s) && (s = s.data), s ? this.getValueByT(s, o) : "";
3236
+ return O(s) && (s = s.data), s ? this.getValueByT(s, o) : "";
3160
3237
  }
3161
3238
  getFilteredRows() {
3162
3239
  return this.filteredRows;
@@ -3198,7 +3275,7 @@ class Ne extends q {
3198
3275
  return s && t.length ? this.getPropertyValue(s, t) : s;
3199
3276
  }
3200
3277
  }
3201
- class le extends Ne {
3278
+ class ne extends ze {
3202
3279
  constructor(e, t, o, s) {
3203
3280
  super(
3204
3281
  e,
@@ -3215,7 +3292,7 @@ class L {
3215
3292
  if ((t = e.tableOptions) != null && t.defaultRowHeights)
3216
3293
  e.defaultRowHeights = e.tableOptions.defaultRowHeights;
3217
3294
  else {
3218
- if (e.defaultRowHeights = new O(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
3295
+ if (e.defaultRowHeights = new H(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
3219
3296
  const g = e.headerAreaModel.defaultRowHeight;
3220
3297
  g > -1 && (e.defaultRowHeights.header = g);
3221
3298
  }
@@ -3228,45 +3305,45 @@ class L {
3228
3305
  g > -1 && (e.defaultRowHeights.footer = g);
3229
3306
  }
3230
3307
  }
3231
- if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new V(g, g.toUpperCase(), oe)) : (s = e.rows) != null && s.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new V(g, g.toUpperCase(), oe)) : 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 : (l = e.columnSizes) != null && l.length ? e.columnCount = (n = e.columnSizes) == null ? void 0 : n.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 _(
3308
+ if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new V(g, g.toUpperCase(), se)) : (s = e.rows) != null && s.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new V(g, g.toUpperCase(), se)) : 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 : (l = e.columnSizes) != null && l.length ? e.columnCount = (n = e.columnSizes) == null ? void 0 : n.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(
3232
3309
  "header",
3233
3310
  e.headerData,
3234
3311
  e.defaultRowHeights.header,
3235
3312
  e.columnDefs
3236
- ) : (a = e.columnDefs) != null && a.length ? e.headerAreaModel = new _(
3313
+ ) : (a = e.columnDefs) != null && a.length ? e.headerAreaModel = new D(
3237
3314
  "header",
3238
3315
  [e.columnDefs.map((g) => g.headerLabel)],
3239
3316
  e.defaultRowHeights.header,
3240
3317
  e.columnDefs
3241
- ) : e.headerAreaModel = new D("header")), e.footerAreaModel || ((c = e.footerData) != null && c.length ? e.footerAreaModel = new _(
3318
+ ) : e.headerAreaModel = new _("header")), e.footerAreaModel || ((c = e.footerData) != null && c.length ? e.footerAreaModel = new D(
3242
3319
  "footer",
3243
3320
  e.footerData,
3244
3321
  e.defaultRowHeights.footer,
3245
3322
  e.columnDefs
3246
- ) : e.footerAreaModel = new D("footer")), !e.bodyAreaModel)
3323
+ ) : e.footerAreaModel = new _("footer")), !e.bodyAreaModel)
3247
3324
  if (e.rows)
3248
- if ((u = e.rows) != null && u.length && P(e.rows[0])) {
3325
+ if ((u = e.rows) != null && u.length && O(e.rows[0])) {
3249
3326
  const g = e.rows;
3250
- e.bodyAreaModel = new se(
3327
+ e.bodyAreaModel = new ie(
3251
3328
  "body",
3252
3329
  g,
3253
3330
  e.defaultRowHeights.body,
3254
3331
  e.columnDefs
3255
- ), (e.columnDefs[0].property === "CheckboxColumn" || (m = e.tableOptions) != null && m.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new ie(g));
3332
+ ), (e.columnDefs[0].property === "CheckboxColumn" || (m = e.tableOptions) != null && m.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new re(g));
3256
3333
  } else
3257
- e.bodyAreaModel = new le(
3334
+ e.bodyAreaModel = new ne(
3258
3335
  "body",
3259
3336
  e.rows,
3260
3337
  e.columnDefs,
3261
3338
  e.defaultRowHeights.body
3262
3339
  );
3263
3340
  else
3264
- e.bodyData ? e.bodyAreaModel = new _(
3341
+ e.bodyData ? e.bodyAreaModel = new D(
3265
3342
  "body",
3266
3343
  e.bodyData,
3267
3344
  e.defaultRowHeights.body
3268
- ) : e.bodyAreaModel = new D("body");
3269
- 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 && ((b = e.tableOptions) != null && b.getSelectionModel) && (e.getSelectionModel = (w = e.tableOptions) == null ? void 0 : w.getSelectionModel), new G(
3345
+ ) : e.bodyAreaModel = new _("body");
3346
+ 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 && ((b = e.tableOptions) != null && b.getSelectionModel) && (e.getSelectionModel = (w = e.tableOptions) == null ? void 0 : w.getSelectionModel), new N(
3270
3347
  e.headerAreaModel,
3271
3348
  e.bodyAreaModel,
3272
3349
  e.footerAreaModel,
@@ -3286,24 +3363,24 @@ class L {
3286
3363
  return L.buildByTypedRows(
3287
3364
  e.rows ?? [],
3288
3365
  e.columnDefs,
3289
- e.tableOptions ?? new z(),
3366
+ e.tableOptions ?? new j(),
3290
3367
  e.fixedLeftColumnCount ?? 0,
3291
3368
  e.fixedRightColumnCount ?? 0
3292
3369
  );
3293
3370
  }
3294
- static buildByTypedRows(e, t, o = new z(), s = 0, i = 0) {
3371
+ static buildByTypedRows(e, t, o = new j(), s = 0, i = 0) {
3295
3372
  const r = o.defaultRowHeights, l = t[0].property === "CheckboxColumn";
3296
- if (e != null && e.length && P(e[0])) {
3297
- const n = e, d = new se(
3373
+ if (e != null && e.length && O(e[0])) {
3374
+ const n = e, d = new ie(
3298
3375
  "body",
3299
3376
  n,
3300
3377
  r.body,
3301
3378
  t
3302
3379
  );
3303
- return (l || o.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new ie(n)), L.createByAreaModelsParam({
3304
- headerAreaModel: new _("header", [t.map((a) => a.headerLabel)], r.header),
3380
+ return (l || o.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new re(n)), L.createByAreaModelsParam({
3381
+ headerAreaModel: new D("header", [t.map((a) => a.headerLabel)], r.header),
3305
3382
  bodyAreaModel: d,
3306
- footerAreaModel: new _("footer", [], r.footer),
3383
+ footerAreaModel: new D("footer", [], r.footer),
3307
3384
  columnDefs: t,
3308
3385
  fixedLeftColumnCount: s,
3309
3386
  fixedRightColumnCount: i,
@@ -3331,13 +3408,13 @@ class L {
3331
3408
  e.fixedLeftColumnCount ?? 0,
3332
3409
  e.fixedRightColumnCount ?? 0,
3333
3410
  t,
3334
- e.defaultRowHeights ?? new O(),
3411
+ e.defaultRowHeights ?? new H(),
3335
3412
  e.columnDefs ?? [],
3336
3413
  e.columnSizes ?? []
3337
3414
  );
3338
3415
  }
3339
- static createByAreaModels(e = new D(), t, o = new D(), s = 0, i = 0, r = !1, l = new O(), n, d = [], a = -1, c) {
3340
- return new G(
3416
+ static createByAreaModels(e = new _(), t, o = new _(), s = 0, i = 0, r = !1, l = new H(), n, d = [], a = -1, c) {
3417
+ return new N(
3341
3418
  e,
3342
3419
  t,
3343
3420
  o,
@@ -3353,9 +3430,9 @@ class L {
3353
3430
  }
3354
3431
  static createByAreaModelsParam(e) {
3355
3432
  return L.createByAreaModels(
3356
- e.headerAreaModel ?? new D(),
3433
+ e.headerAreaModel ?? new _(),
3357
3434
  e.bodyAreaModel,
3358
- e.footerAreaModel ?? new D(),
3435
+ e.footerAreaModel ?? new _(),
3359
3436
  e.fixedLeftColumnCount ?? 0,
3360
3437
  e.fixedRightColumnCount ?? 0,
3361
3438
  e.rowCheckboxVisible === void 0 ? !1 : e.rowCheckboxVisible,
@@ -3366,11 +3443,11 @@ class L {
3366
3443
  e.columnCount ?? 0
3367
3444
  );
3368
3445
  }
3369
- static createByObjectArray(e, t = [], o = [], s = 0, i = 0, r = !1, l = new O(), n, d = []) {
3446
+ static createByObjectArray(e, t = [], o = [], s = 0, i = 0, r = !1, l = new H(), n, d = []) {
3370
3447
  let a;
3371
- t != null && t.length ? a = new _("header", t, l.header, n) : n != null && n.length ? a = new _("header", [n.map((m) => m.headerLabel)], l.header, n) : a = new D();
3372
- const c = o ? new _("footer", o, l.footer, n) : new D(), u = new le("body", e, n, l.body);
3373
- return new G(
3448
+ t != null && t.length ? a = new D("header", t, l.header, n) : n != null && n.length ? a = new D("header", [n.map((m) => m.headerLabel)], l.header, n) : a = new _();
3449
+ const c = o ? new D("footer", o, l.footer, n) : new _(), u = new ne("body", e, n, l.body);
3450
+ return new N(
3374
3451
  a,
3375
3452
  u,
3376
3453
  c,
@@ -3383,7 +3460,7 @@ class L {
3383
3460
  );
3384
3461
  }
3385
3462
  }
3386
- const At = [
3463
+ const Et = [
3387
3464
  //"COPY_2_CLIPBOARD",
3388
3465
  "START_EDITING",
3389
3466
  "TOGGLE_SELECTION",
@@ -3401,17 +3478,17 @@ const At = [
3401
3478
  // "PAGEUP_PRESSED",
3402
3479
  // "PAGEDOWN_PRESSED"
3403
3480
  ];
3404
- class Et {
3481
+ class Mt {
3405
3482
  constructor(e, t) {
3406
3483
  this.tableModel = e, this.tableOptions = t;
3407
3484
  }
3408
3485
  }
3409
- class ze {
3486
+ class je {
3410
3487
  constructor(e, t, o, s, i, r, l) {
3411
3488
  this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = o, this.filter = s, this.sorting = i, this.startIndex = r, this.endIndex = l;
3412
3489
  }
3413
3490
  }
3414
- class Mt extends ze {
3491
+ class kt extends je {
3415
3492
  constructor(e, t, o, s, i, r, l, n) {
3416
3493
  super(
3417
3494
  e,
@@ -3424,30 +3501,30 @@ class Mt extends ze {
3424
3501
  ), this.rows = n;
3425
3502
  }
3426
3503
  }
3427
- class je {
3504
+ class Xe {
3428
3505
  constructor(e, t) {
3429
3506
  this.value = e, this.label = t;
3430
3507
  }
3431
3508
  }
3432
- class kt {
3509
+ class It {
3433
3510
  constructor(e, t) {
3434
3511
  this.index = e, this.px = t;
3435
3512
  }
3436
3513
  }
3437
- const It = { body: ["ge-table-text-align-left"] }, Tt = { body: ["ge-table-text-align-center"] }, _t = { body: ["ge-table-text-align-right"] }, Dt = {
3514
+ const Tt = { body: ["ge-table-text-align-left"] }, Dt = { body: ["ge-table-text-align-center"] }, _t = { body: ["ge-table-text-align-right"] }, $t = {
3438
3515
  header: ["ge-table-text-align-left"],
3439
3516
  body: ["ge-table-text-align-left"],
3440
3517
  footer: ["ge-table-text-align-left"]
3441
- }, $t = {
3518
+ }, Ft = {
3442
3519
  header: ["ge-table-text-align-center"],
3443
3520
  body: ["ge-table-text-align-center"],
3444
3521
  footer: ["ge-table-text-align-center"]
3445
- }, Ft = {
3522
+ }, Lt = {
3446
3523
  header: ["ge-table-text-align-right"],
3447
3524
  body: ["ge-table-text-align-right"],
3448
3525
  footer: ["ge-table-text-align-right"]
3449
3526
  };
3450
- class ne {
3527
+ class ae {
3451
3528
  render(e, t, o, s, i, r, l) {
3452
3529
  if (i.isRowCheckable(t)) {
3453
3530
  l.addClass(e, "ge-table-row-checkbox-div");
@@ -3465,16 +3542,16 @@ class ne {
3465
3542
  }
3466
3543
  }
3467
3544
  }
3468
- class Lt {
3545
+ class Pt {
3469
3546
  constructor() {
3470
- this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new f(50, "px"), this.minWidth = new f(50, "px"), this.maxWidth = new f(100, "px"), this.rendererMap = new T(new ne(), new ne(), void 0), this.classes = new T(
3547
+ this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new f(50, "px"), this.minWidth = new f(50, "px"), this.maxWidth = new f(100, "px"), this.rendererMap = new T(new ae(), new ae(), void 0), this.classes = new T(
3471
3548
  [],
3472
3549
  ["ge-table-text-align-left"],
3473
3550
  []
3474
3551
  );
3475
3552
  }
3476
3553
  }
3477
- class Pt {
3554
+ class Ot {
3478
3555
  /**
3479
3556
  * A factory that creates a new AreaObjectMap with the given body renderer.
3480
3557
  *
@@ -3489,7 +3566,7 @@ class Pt {
3489
3566
  );
3490
3567
  }
3491
3568
  }
3492
- class Ot {
3569
+ class Ht {
3493
3570
  constructor(e = "down", t) {
3494
3571
  this.status = e, this.originalEvent = t;
3495
3572
  }
@@ -3499,7 +3576,7 @@ class Vt {
3499
3576
  this.area = e, this.rowIndex = t, this.columnIndex = o, this.value = s, this.cssClasses = i;
3500
3577
  }
3501
3578
  }
3502
- class Ht {
3579
+ class Bt {
3503
3580
  constructor() {
3504
3581
  this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, o) => {
3505
3582
  if (e && t && o.getRowId) {
@@ -3524,12 +3601,12 @@ class Ht {
3524
3601
  };
3525
3602
  }
3526
3603
  }
3527
- class Xe {
3604
+ class Ke {
3528
3605
  constructor(e, t, o, s = !1, i = "normal", r = void 0) {
3529
3606
  this.data = e, this.property = t, this.toggle = o, this.closed = s, this.visibility = i, this.children = r, this.impl = "CellGroup";
3530
3607
  }
3531
3608
  }
3532
- class Ye extends Xe {
3609
+ class Ye extends Ke {
3533
3610
  constructor(e, t = 0, o = 0, s) {
3534
3611
  super(
3535
3612
  e.data,
@@ -3694,7 +3771,7 @@ class I {
3694
3771
  e.push(s.data + " rowIndex:" + s.rowIndex), (o = s.children) != null && o.length && I.iterateThrowColumns(e, s.children);
3695
3772
  }
3696
3773
  }
3697
- class Bt {
3774
+ class Wt {
3698
3775
  constructor() {
3699
3776
  this.areaIdent = "body", this.rowSelectionModel = void 0;
3700
3777
  }
@@ -3761,16 +3838,16 @@ class Bt {
3761
3838
  return !1;
3762
3839
  }
3763
3840
  }
3764
- class Ke {
3841
+ class Ue {
3765
3842
  render(e, t, o, s, i, r, l) {
3766
3843
  const n = r != null && r.data ? r.data : "";
3767
3844
  e.innerHTML = `${n}`;
3768
3845
  }
3769
3846
  }
3770
- class Wt {
3847
+ class Gt {
3771
3848
  constructor(e = "header", t, o = [], s) {
3772
3849
  var i;
3773
- this.areaIdent = e, this.groups = t, this.columnDefs = o, this.defaultRowHeight = s, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new Ke(), this.groupExts = I.buildGroupExts(t), console.info(this.groupExts), console.info(this.getAllLeafs()), console.info(this.getMaxRowCount());
3850
+ this.areaIdent = e, this.groups = t, this.columnDefs = o, this.defaultRowHeight = s, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new Ue(), this.groupExts = I.buildGroupExts(t), console.info(this.groupExts), console.info(this.getAllLeafs()), console.info(this.getMaxRowCount());
3774
3851
  for (const r of this.groupExts)
3775
3852
  r.log(this.getMaxRowCount());
3776
3853
  this.arr = this.buildArray(), !((i = this.columnDefs) != null && i.length) && e === "header" && (this.columnDefs = I.buildColumnDefs(t)), console.info("this.columnDefs", this.columnDefs), console.info("this.arr", this.arr);
@@ -3865,7 +3942,7 @@ class Wt {
3865
3942
  return !1;
3866
3943
  }
3867
3944
  }
3868
- class Gt {
3945
+ class Nt {
3869
3946
  filterPredict(e, t, o = this.objectToString.bind(this)) {
3870
3947
  if (!e)
3871
3948
  return !1;
@@ -3919,12 +3996,12 @@ class Gt {
3919
3996
  return t.join(" ").toLowerCase();
3920
3997
  }
3921
3998
  }
3922
- class Nt {
3999
+ class zt {
3923
4000
  static bodyRenderer(e) {
3924
4001
  return new T(void 0, e, void 0);
3925
4002
  }
3926
4003
  }
3927
- class zt {
4004
+ class jt {
3928
4005
  constructor(e, t = !0, o = !1) {
3929
4006
  this.property = e, this.skipCheckableCheck = t, this.readonly = o;
3930
4007
  }
@@ -3949,12 +4026,12 @@ class zt {
3949
4026
  }
3950
4027
  }
3951
4028
  }
3952
- class jt {
4029
+ class Xt {
3953
4030
  render(e, t, o, s, i, r, l) {
3954
4031
  r && (e.innerText = new Date(r).toISOString());
3955
4032
  }
3956
4033
  }
3957
- class Xt {
4034
+ class Kt {
3958
4035
  constructor() {
3959
4036
  this.formatter = new Intl.DateTimeFormat("de-DE", {
3960
4037
  year: "numeric",
@@ -3982,12 +4059,12 @@ class Yt {
3982
4059
  r && (e.innerText = new Date(r).toLocaleDateString());
3983
4060
  }
3984
4061
  }
3985
- class Kt {
4062
+ class Ut {
3986
4063
  render(e, t, o, s, i, r, l) {
3987
4064
  r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
3988
4065
  }
3989
4066
  }
3990
- class Ut {
4067
+ class qt {
3991
4068
  constructor(e = 100, t = !1) {
3992
4069
  this.maxValue = e, this.labelVisible = t;
3993
4070
  }
@@ -4017,17 +4094,17 @@ class Ut {
4017
4094
  }
4018
4095
  }
4019
4096
  }
4020
- class qt {
4097
+ class Jt {
4021
4098
  render(e, t, o, s, i, r, l) {
4022
4099
  r === "true" || r === !0 ? e.innerHTML = '<span class="ge-true-text-color">✅</span>' : r === "false" || r === !1 ? e.innerHTML = '<span class="ge-false-text-color">❌</span>' : e.innerText = "";
4023
4100
  }
4024
4101
  }
4025
- class Jt {
4102
+ class Qt {
4026
4103
  render(e, t, o, s, i, r, l) {
4027
4104
  r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
4028
4105
  }
4029
4106
  }
4030
- class Qt {
4107
+ class Zt {
4031
4108
  constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
4032
4109
  this.min = e, this.max = t;
4033
4110
  }
@@ -4035,7 +4112,7 @@ class Qt {
4035
4112
  r && (e.innerText = r, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && l.addClass(e, "ge-cell-error"));
4036
4113
  }
4037
4114
  }
4038
- class Zt {
4115
+ class eo {
4039
4116
  constructor(e) {
4040
4117
  this.property = e;
4041
4118
  }
@@ -4054,7 +4131,7 @@ class Zt {
4054
4131
  }
4055
4132
  }
4056
4133
  }
4057
- class eo {
4134
+ class to {
4058
4135
  constructor(e, t = 100, o = !1) {
4059
4136
  this.property = e, this.maxValue = t, this.labelVisible = o;
4060
4137
  }
@@ -4086,16 +4163,36 @@ class eo {
4086
4163
  }
4087
4164
  }
4088
4165
  }
4089
- const to = function(h, e, t) {
4166
+ class oo {
4167
+ render(e, t, o, s, i, r, l) {
4168
+ if (r) {
4169
+ e.innerHTML = `
4170
+ <div
4171
+ class="ge-table-label-div"
4172
+ data-row-index=${t}"
4173
+ data-col-index="${o}"
4174
+ data-area="${s}"
4175
+ style="position: relative; background: transparent; width: 100%; height: 100%;">
4176
+ <div
4177
+ class="ge-table-label"
4178
+ data-row-index="${t}"
4179
+ data-col-index="${o}"
4180
+ data-area="${s}">${r}</div></div>`;
4181
+ const n = Number(r);
4182
+ n > 0 ? l.addClass(e, "ge-positive-text-color") : n < 0 && l.addClass(e, "ge-negative-text-color");
4183
+ }
4184
+ }
4185
+ }
4186
+ const so = function(h, e, t) {
4090
4187
  return h ? Number(h) : "";
4091
4188
  };
4092
- class be {
4189
+ class pe {
4093
4190
  constructor(e) {
4094
4191
  this.options = e;
4095
4192
  }
4096
4193
  static create(e) {
4097
- return new be(
4098
- e.map((t) => new je(t, t))
4194
+ return new pe(
4195
+ e.map((t) => new Xe(t, t))
4099
4196
  );
4100
4197
  }
4101
4198
  render(e, t, o, s, i, r, l) {
@@ -4123,163 +4220,165 @@ class be {
4123
4220
  }
4124
4221
  }
4125
4222
  }
4126
- class oo {
4223
+ class io {
4127
4224
  constructor(e, t, o) {
4128
4225
  this.r = e, this.g = t, this.b = o;
4129
4226
  }
4130
4227
  }
4131
- class ae {
4228
+ class de {
4132
4229
  constructor(e, t, o, s) {
4133
4230
  this.minValue = e, this.minColor = t, this.maxValue = o, this.maxColor = s;
4134
4231
  }
4135
4232
  }
4136
- class B {
4233
+ class W {
4137
4234
  static normalize(e, t, o, s = 0, i = 1) {
4138
4235
  return (e - t) / (o - t) * (i - s) + s;
4139
4236
  }
4140
4237
  static getTwoColorGradientRGB(e, t) {
4141
- const o = B.normalize(e, t.minValue, t.maxValue, 0, 1), s = t.maxColor.r - t.minColor.r, i = t.maxColor.g - t.minColor.g, r = t.maxColor.b - t.minColor.b, l = s * o + t.minColor.r, n = i * o + t.minColor.g, d = r * o + t.minColor.b;
4238
+ const o = W.normalize(e, t.minValue, t.maxValue, 0, 1), s = t.maxColor.r - t.minColor.r, i = t.maxColor.g - t.minColor.g, r = t.maxColor.b - t.minColor.b, l = s * o + t.minColor.r, n = i * o + t.minColor.g, d = r * o + t.minColor.b;
4142
4239
  return `rgb(${Math.round(l)}, ${Math.round(n)}, ${Math.round(d)})`;
4143
4240
  }
4144
4241
  static getThreeColorGradientRGB(e, t) {
4145
- return e < t.middleValue ? B.getTwoColorGradientRGB(e, new ae(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? B.getTwoColorGradientRGB(e, new ae(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
4242
+ return e < t.middleValue ? W.getTwoColorGradientRGB(e, new de(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? W.getTwoColorGradientRGB(e, new de(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
4146
4243
  }
4147
4244
  }
4148
- class so {
4245
+ class ro {
4149
4246
  constructor(e, t, o, s, i, r) {
4150
4247
  this.minValue = e, this.minColor = t, this.middleValue = o, this.middleColor = s, this.maxValue = i, this.maxColor = r;
4151
4248
  }
4152
4249
  }
4153
4250
  export {
4154
- q as AbstractAreaModel,
4155
- Pt as AreaMapFactory,
4156
- Bt as AreaModel,
4157
- _ as AreaModelArrayOfArrays,
4158
- Wt as AreaModelCellGroups,
4159
- D as AreaModelHidden,
4160
- le as AreaModelObjectArrayWithColumndefs,
4161
- Ne as AreaModelObjectyArray,
4162
- se as AreaModelTree,
4251
+ J as AbstractAreaModel,
4252
+ Ot as AreaMapFactory,
4253
+ Wt as AreaModel,
4254
+ D as AreaModelArrayOfArrays,
4255
+ Gt as AreaModelCellGroups,
4256
+ _ as AreaModelHidden,
4257
+ ne as AreaModelObjectArrayWithColumndefs,
4258
+ ze as AreaModelObjectyArray,
4259
+ ie as AreaModelTree,
4163
4260
  T as AreaObjectMap,
4164
- Ht as AutoRestoreOptions,
4165
- Xe as CellGroup,
4261
+ Bt as AutoRestoreOptions,
4262
+ Ke as CellGroup,
4166
4263
  Ye as CellGroupExt,
4167
- Ke as CellGroupExtCellRenderer,
4168
- M as CellRange,
4264
+ Ue as CellGroupExtCellRenderer,
4265
+ R as CellRange,
4169
4266
  I as CellgroupFactory,
4170
- zt as CheckboxBooleanPropertyCellRenderer,
4171
- ne as CheckboxCellRenderer,
4172
- Lt as CheckboxColumnDef,
4173
- Ge as CheckboxModel,
4174
- Mt as ChunkData,
4175
- Ae as ColAndRowspanModel,
4176
- ye as CollapsedExpandedData,
4177
- oo as ColorRgb,
4267
+ jt as CheckboxBooleanPropertyCellRenderer,
4268
+ ae as CheckboxCellRenderer,
4269
+ Pt as CheckboxColumnDef,
4270
+ Ne as CheckboxModel,
4271
+ kt as ChunkData,
4272
+ Ee as ColAndRowspanModel,
4273
+ Ce as CollapsedExpandedData,
4274
+ io as ColorRgb,
4178
4275
  V as ColumnDef,
4179
- fe as ConvenienceDomService,
4180
- ue as CssVars,
4181
- Xt as DateToIntlDDMMYYYYCellRenderer,
4182
- jt as DateToIsoCellRenderer,
4276
+ me as ConvenienceDomService,
4277
+ ge as CssVars,
4278
+ Kt as DateToIntlDDMMYYYYCellRenderer,
4279
+ Xt as DateToIsoCellRenderer,
4183
4280
  Yt as DateToLocaleDateCellRenderer,
4184
- Jt as DateToTecCellRenderer,
4185
- O as DefaultRowHeights,
4186
- Re as EleScope,
4187
- Z as EventAdapter,
4188
- te as FalseFn,
4189
- Oe as FocusModel,
4190
- Ie as GeCellIndices,
4191
- B as GeCssColorUtil,
4192
- Gt as GeFilterService,
4193
- Ot as GeKeyEvent,
4194
- U as GeModelChangeEvent,
4195
- X as GeMouseEvent,
4281
+ Qt as DateToTecCellRenderer,
4282
+ H as DefaultRowHeights,
4283
+ Ae as EleScope,
4284
+ ee as EventAdapter,
4285
+ oe as FalseFn,
4286
+ He as FocusModel,
4287
+ Te as GeCellIndices,
4288
+ W as GeCssColorUtil,
4289
+ Nt as GeFilterService,
4290
+ Ht as GeKeyEvent,
4291
+ q as GeModelChangeEvent,
4292
+ K as GeMouseEvent,
4196
4293
  $ as GeoData,
4197
4294
  F as Icon,
4198
- kt as IndexAndPx,
4199
- Le as InputCellRenderer,
4200
- ke as InputHandler,
4201
- Kt as MaleFemaleToIconCellRenderer,
4202
- we as MouseHandler,
4203
- me as MouseTargetData,
4204
- Ut as NumberCellProgressBarCellRenderer,
4205
- Qt as NumberCellRenderer,
4206
- De as OsxShortcutActionIdMapping,
4207
- re as Padding,
4208
- eo as ProgressBarCellRenderer,
4209
- Ee as RenderScope,
4210
- Nt as Renderer,
4211
- ze as RequestChunk,
4212
- be as SelectCellRenderer,
4213
- Pe as SelectionModel,
4214
- Te as SelectionService,
4215
- $e as ShortcutService,
4216
- Fe as SimpleDomService,
4295
+ It as IndexAndPx,
4296
+ Pe as InputCellRenderer,
4297
+ Ie as InputHandler,
4298
+ P as LicenseManager,
4299
+ Ut as MaleFemaleToIconCellRenderer,
4300
+ Se as MouseHandler,
4301
+ we as MouseTargetData,
4302
+ qt as NumberCellProgressBarCellRenderer,
4303
+ Zt as NumberCellRenderer,
4304
+ $e as OsxShortcutActionIdMapping,
4305
+ le as Padding,
4306
+ oo as PositiveAndNegativeNumberRenderer,
4307
+ to as ProgressBarCellRenderer,
4308
+ Me as RenderScope,
4309
+ zt as Renderer,
4310
+ je as RequestChunk,
4311
+ pe as SelectCellRenderer,
4312
+ Oe as SelectionModel,
4313
+ De as SelectionService,
4314
+ Fe as ShortcutService,
4315
+ Le as SimpleDomService,
4217
4316
  f as Size,
4218
- Me as SortItem,
4219
- he as SortedOptions,
4220
- Zt as StarRatingCellRenderer,
4221
- Ce as StoreStateCollapsedExpandService,
4222
- xe as StoreStateScrollPosService,
4223
- ve as StoreStateSortingService,
4224
- Se as TableApi,
4317
+ ke as SortItem,
4318
+ ce as SortedOptions,
4319
+ eo as StarRatingCellRenderer,
4320
+ ve as StoreStateCollapsedExpandService,
4321
+ ye as StoreStateScrollPosService,
4322
+ Re as StoreStateSortingService,
4323
+ xe as TableApi,
4225
4324
  Vt as TableCellUpdateEvent,
4226
4325
  L as TableFactory,
4227
- G as TableModel,
4228
- Et as TableModelAndOptions,
4229
- z as TableOptions,
4230
- ce as TableScope,
4231
- so as ThreeColorGradientArg,
4232
- ie as TreeCheckboxModel,
4233
- j as TreeFactory,
4234
- de as TreeOptions,
4235
- ee as TreeRow,
4236
- We as TreeRowService,
4237
- qt as TrueFalseCellRenderer,
4238
- Be as TrueFn,
4239
- ae as TwoColorGradientArg,
4240
- je as ValueLabel,
4326
+ N as TableModel,
4327
+ Mt as TableModelAndOptions,
4328
+ j as TableOptions,
4329
+ ue as TableScope,
4330
+ ro as ThreeColorGradientArg,
4331
+ re as TreeCheckboxModel,
4332
+ X as TreeFactory,
4333
+ he as TreeOptions,
4334
+ te as TreeRow,
4335
+ Ge as TreeRowService,
4336
+ Jt as TrueFalseCellRenderer,
4337
+ We as TrueFn,
4338
+ de as TwoColorGradientArg,
4339
+ Xe as ValueLabel,
4241
4340
  _e as WindowsShortcutActionIdMapping,
4242
- At as actionIds,
4243
- $t as allCenter,
4244
- Dt as allLeft,
4245
- Ft as allRight,
4246
- Tt as bodyCenter,
4247
- It as bodyLeft,
4341
+ Et as actionIds,
4342
+ Ft as allCenter,
4343
+ $t as allLeft,
4344
+ Lt as allRight,
4345
+ Dt as bodyCenter,
4346
+ Tt as bodyLeft,
4248
4347
  _t as bodyRight,
4249
- to as editInputPipeForNumber,
4348
+ so as editInputPipeForNumber,
4250
4349
  Y as getAreaIdentByString,
4251
- N as isAreaModelTree,
4252
- pe as isCheckboxColumnDef,
4253
- P as isTreeRow,
4254
- Rt as px0,
4255
- vt as px10,
4256
- bt as px100,
4257
- gt as px110,
4258
- ut as px120,
4259
- ct as px130,
4260
- ht as px140,
4261
- dt as px150,
4262
- at as px160,
4263
- nt as px170,
4264
- lt as px180,
4265
- rt as px190,
4266
- Ct as px20,
4267
- oe as px200,
4268
- it as px210,
4269
- st as px220,
4270
- ot as px230,
4271
- tt as px240,
4272
- et as px250,
4273
- Ze as px260,
4274
- Qe as px270,
4275
- Je as px280,
4276
- qe as px290,
4277
- yt as px30,
4278
- Ue as px300,
4279
- xt as px40,
4280
- St as px50,
4281
- wt as px60,
4282
- mt as px70,
4283
- ft as px80,
4284
- pt as px90
4350
+ z as isAreaModelTree,
4351
+ fe as isCheckboxColumnDef,
4352
+ O as isTreeRow,
4353
+ At as px0,
4354
+ Rt as px10,
4355
+ pt as px100,
4356
+ bt as px110,
4357
+ gt as px120,
4358
+ ut as px130,
4359
+ ct as px140,
4360
+ ht as px150,
4361
+ dt as px160,
4362
+ at as px170,
4363
+ nt as px180,
4364
+ lt as px190,
4365
+ vt as px20,
4366
+ se as px200,
4367
+ rt as px210,
4368
+ it as px220,
4369
+ st as px230,
4370
+ ot as px240,
4371
+ tt as px250,
4372
+ et as px260,
4373
+ Ze as px270,
4374
+ Qe as px280,
4375
+ Je as px290,
4376
+ Ct as px30,
4377
+ qe as px300,
4378
+ yt as px40,
4379
+ xt as px50,
4380
+ St as px60,
4381
+ wt as px70,
4382
+ mt as px80,
4383
+ ft as px90
4285
4384
  };