@guiexpert/table 1.1.7 → 1.1.8

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,11 +1,11 @@
1
- class P {
1
+ class F {
2
2
  // The constructor is private to prevent direct construction calls
3
3
  // with the `new` operator
4
4
  constructor() {
5
5
  this.alreadySet = !1;
6
6
  }
7
7
  static getInstance() {
8
- return P.instance || (P.instance = new P()), P.instance;
8
+ return F.instance || (F.instance = new F()), F.instance;
9
9
  }
10
10
  /**
11
11
  * Method to set the license key for the application.
@@ -29,7 +29,7 @@ function O(h) {
29
29
  function z(h) {
30
30
  return h && h.type === "AreaModelTree";
31
31
  }
32
- function fe(h) {
32
+ function we(h) {
33
33
  return h && h.type === "CheckboxColumnDef";
34
34
  }
35
35
  class K {
@@ -52,25 +52,25 @@ class K {
52
52
  );
53
53
  }
54
54
  }
55
- class F {
55
+ class P {
56
56
  constructor(e = ">", t = "", o = []) {
57
57
  this.content = e, this.style = t, this.classes = o;
58
58
  }
59
59
  }
60
- class he {
61
- constructor(e = new F(
60
+ class ge {
61
+ constructor(e = new P(
62
62
  ">",
63
63
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
64
64
  ["gt-table-tree-arrow-expanded"]
65
- ), t = new F(
65
+ ), t = new P(
66
66
  ">",
67
67
  "",
68
68
  ["ge-table-tree-arrow-collapsed"]
69
- ), o = new F(
69
+ ), o = new P(
70
70
  ">",
71
71
  "color:transparent;",
72
72
  ["gt-table-tree-arrow-hidden"]
73
- ), s = new F(
73
+ ), s = new P(
74
74
  "↕",
75
75
  "",
76
76
  ["gt-table-tree-arrow-expanded-all"]
@@ -78,12 +78,12 @@ class he {
78
78
  this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = o, this.arrowExpandCollapseAll = s;
79
79
  }
80
80
  }
81
- class ce {
82
- constructor(e = new F("↑", "", ["ge-header-sorted-asc"]), t = new F("↓", "", ["ge-header-sorted-desc"]), o = new F("↑", "color:transparent;", [])) {
81
+ class be {
82
+ constructor(e = new P("↑", "", ["ge-header-sorted-asc"]), t = new P("↓", "", ["ge-header-sorted-desc"]), o = new P("↑", "color:transparent;", [])) {
83
83
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = o;
84
84
  }
85
85
  }
86
- class me {
86
+ class xe {
87
87
  constructor(e) {
88
88
  this.domService = e;
89
89
  }
@@ -171,8 +171,8 @@ class me {
171
171
  addColumnDiv(e, t, o = -1, s = -1, i, r, l = "", n, d, a = void 0, c) {
172
172
  const u = d == null ? void 0 : d.treeOptions, m = d == null ? void 0 : d.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
173
173
  this.domService.addClass(b, "ge-table-col-div"), this.domService.addClass(b, `ge-table-col-div-${t.index}`), this.domService.setAttribute(b, "data-col-index", `${t.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${i}`);
174
- const w = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
175
- if (i === "body" && r === "center" && this.domService.addClass(b, `ge-table-column-${w}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${t.left}px`), this.domService.setStyle(b, "top", `${t.top}px`), this.domService.setStyle(b, "width", `${t.width}px`), this.domService.setStyle(b, "height", `${t.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, u, o, s, i)), m && s === 0 && a && this.addCheckboxToDiv(b, a, i, o), l) {
174
+ const S = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
175
+ if (i === "body" && r === "center" && this.domService.addClass(b, `ge-table-column-${S}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${t.left}px`), this.domService.setStyle(b, "top", `${t.top}px`), this.domService.setStyle(b, "width", `${t.width}px`), this.domService.setStyle(b, "height", `${t.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, u, o, s, i)), m && s === 0 && a && this.addCheckboxToDiv(b, a, i, o), l) {
176
176
  const g = n !== "none" && s === 0;
177
177
  this.addLabelDiv(b, l, g, o, s, i);
178
178
  }
@@ -203,7 +203,7 @@ class me {
203
203
  }
204
204
  return this.domService.appendChild(e, l), l;
205
205
  }
206
- addSortedIcon(e, t = "", o = new ce(), s = -1) {
206
+ addSortedIcon(e, t = "", o = new be(), 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;
@@ -214,7 +214,7 @@ class me {
214
214
  this.domService.addClass(i, d);
215
215
  return this.domService.appendChild(e, i), i;
216
216
  }
217
- addArrowDiv(e, t = "none", o = new he(), s = -1, i = -1, r = "body") {
217
+ addArrowDiv(e, t = "none", o = new ge(), s = -1, i = -1, r = "body") {
218
218
  const l = this.domService.createElement("div");
219
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}`);
220
220
  let n;
@@ -265,20 +265,20 @@ class me {
265
265
  return o ? (o.innerText = "", o) : (o = this.domService.createElement("div"), t.cache[e] = o, o);
266
266
  }
267
267
  }
268
- const Y = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
269
- class we {
268
+ const U = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
269
+ class ye {
270
270
  constructor(e, t) {
271
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)) {
272
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"));
273
273
  const o = e.getAttribute("data-area");
274
- if (o && (this.areaIdent = Y(o), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
274
+ if (o && (this.areaIdent = U(o), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
275
275
  const s = e;
276
276
  this.value = s.value;
277
277
  }
278
278
  }
279
279
  }
280
280
  }
281
- class Se {
281
+ class Ce {
282
282
  constructor(e) {
283
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(
284
284
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -308,7 +308,7 @@ class Se {
308
308
  if (t - this.lastClicked < this.doubleClickDelay)
309
309
  return;
310
310
  this.lastClicked = t;
311
- const o = new we(e.target, this.tableScope);
311
+ const o = new ye(e.target, this.tableScope);
312
312
  if (o.action === "toggleExpandCollapseAll")
313
313
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
314
314
  else if (o.inputType === "checkbox" && o.areaIdent)
@@ -335,7 +335,7 @@ class Se {
335
335
  */
336
336
  onHostElementDblClicked(e) {
337
337
  if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
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);
338
+ const t = e.target, o = t.getAttribute("data-area"), s = U(o), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(s);
339
339
  if (o && s === "header")
340
340
  this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
341
341
  else if (t.getAttribute("data-row-index")) {
@@ -408,7 +408,7 @@ class Se {
408
408
  }
409
409
  }
410
410
  }
411
- class xe {
411
+ class ve {
412
412
  constructor(e) {
413
413
  this.tableScope = e;
414
414
  }
@@ -534,8 +534,26 @@ class xe {
534
534
  setSelectionModel(e, t = !0) {
535
535
  this.tableScope.setSelectionModel(e, t);
536
536
  }
537
+ /**
538
+ * Triggers the action with the given action ID.
539
+ * This function can be invoked programmatically.
540
+ *
541
+ * @param {ActionId} actionId - The ID of the action to trigger.
542
+ * @return {void}
543
+ */
544
+ triggerAction(e) {
545
+ this.tableScope.onActionTriggered(e);
546
+ }
547
+ /**
548
+ * Retrieves the mapping of shortcuts to corresponding action in the current table scope.
549
+ *
550
+ * @return {ShortcutActionIdMapping} The mapping of shortcuts to corresponding action.
551
+ */
552
+ getShortcutActionMapping() {
553
+ return this.tableScope.shortcutService.getShortcutActionMapping();
554
+ }
537
555
  }
538
- class U {
556
+ class q {
539
557
  constructor(e) {
540
558
  this.getStorageKeyFn = e;
541
559
  }
@@ -610,7 +628,7 @@ class U {
610
628
  // }
611
629
  // }
612
630
  }
613
- class ye extends U {
631
+ class Re extends q {
614
632
  constructor(e) {
615
633
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
616
634
  }
@@ -632,14 +650,14 @@ class ye extends U {
632
650
  }
633
651
  }
634
652
  }
635
- class Ce {
653
+ class Ae {
636
654
  constructor(e = "collapsed", t = [], o = !1, s = !1) {
637
655
  this.mode = e, this.rowIds = t, this.allCollapsed = o, this.allExpanded = s;
638
656
  }
639
657
  }
640
- class ve extends U {
658
+ class Ee extends q {
641
659
  constructor(e) {
642
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new Ce(), this.load();
660
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new Ae(), this.load();
643
661
  }
644
662
  collapsedExpandedStateGet() {
645
663
  return this.collapsedExpandedState;
@@ -671,7 +689,7 @@ class ve extends U {
671
689
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
672
690
  }
673
691
  }
674
- class Re extends U {
692
+ class Me extends q {
675
693
  constructor(e) {
676
694
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
677
695
  }
@@ -698,7 +716,7 @@ class $ {
698
716
  this.left = e, this.width = t, this.height = o, this.top = s, this.index = i;
699
717
  }
700
718
  }
701
- class Ae {
719
+ class ke {
702
720
  constructor(e, t, o, s) {
703
721
  this.hostElement = e, this.tableModel = t, this.dom = o, this.tableOptions = s, this.scrollTop = 0, this.areaBodyWestGeo = new $(), this.areaBodyCenterGeo = new $(), this.areaBodyEastGeo = new $();
704
722
  const i = this.hostElement;
@@ -849,7 +867,7 @@ class Ae {
849
867
  this.dom.setStyle(this.contentWrapperDiv, "width", e), this.dom.setStyle(this.contentWrapperDiv, "height", t);
850
868
  }
851
869
  }
852
- class R {
870
+ class v {
853
871
  /**
854
872
  * Represents a constructor for a class.
855
873
  * @constructor
@@ -863,7 +881,7 @@ class R {
863
881
  this.r1 = e, this.c1 = t, this.r2 = o, this.c2 = s, this.gammaRange = i;
864
882
  }
865
883
  static create(e) {
866
- return e.gammaRange === void 0 && (e.gammaRange = !1), new R(
884
+ return e.gammaRange === void 0 && (e.gammaRange = !1), new v(
867
885
  e.rowIndex1,
868
886
  e.columnIndex1,
869
887
  e.rowIndex2,
@@ -872,19 +890,19 @@ class R {
872
890
  );
873
891
  }
874
892
  static singleCell(e, t) {
875
- return new R(e, t, e, t);
893
+ return new v(e, t, e, t);
876
894
  }
877
895
  static singleRow(e) {
878
- return new R(e, 0, e, Number.MAX_SAFE_INTEGER);
896
+ return new v(e, 0, e, Number.MAX_SAFE_INTEGER);
879
897
  }
880
898
  static singleColumn(e) {
881
- return new R(0, e, Number.MAX_SAFE_INTEGER, e);
899
+ return new v(0, e, Number.MAX_SAFE_INTEGER, e);
882
900
  }
883
901
  isInRange(e, t) {
884
902
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
885
903
  }
886
904
  }
887
- class Ee {
905
+ class Ie {
888
906
  constructor(e, t) {
889
907
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
890
908
  }
@@ -900,7 +918,7 @@ class Ee {
900
918
  i === 0 && (i = 1), r === 0 && (r = 1);
901
919
  const l = this.areaModel.hasOwnProperty("gammaCells");
902
920
  this.colAndRowspanRanges.push(
903
- new R(o, s, o + r - 1, s + i - 1, l)
921
+ new v(o, s, o + r - 1, s + i - 1, l)
904
922
  );
905
923
  }
906
924
  }
@@ -922,7 +940,7 @@ class T {
922
940
  this.header = e, this.body = t, this.footer = o;
923
941
  }
924
942
  }
925
- class Me extends Ae {
943
+ class Te extends ke {
926
944
  constructor(e, t, o, s) {
927
945
  var r, l;
928
946
  super(e, t, o, s), this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
@@ -932,7 +950,7 @@ class Me extends Ae {
932
950
  }, 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(
933
951
  (n) => {
934
952
  var d;
935
- this.colAndRowspanModels[n] = new Ee(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
953
+ this.colAndRowspanModels[n] = new Ie(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
936
954
  }
937
955
  );
938
956
  }
@@ -1067,13 +1085,13 @@ class Me extends Ae {
1067
1085
  p && p();
1068
1086
  }
1069
1087
  let u = t;
1070
- const m = this.tableModel.getColumnCount(), b = this.tableModel.getFixedRightColumnCount(), w = this.tableModel.getFixedLeftColumnCount();
1088
+ const m = this.tableModel.getColumnCount(), b = this.tableModel.getFixedRightColumnCount(), S = this.tableModel.getFixedLeftColumnCount();
1071
1089
  for (let p = 0; p < c; p++) {
1072
- const A = u, C = p === c - 1, v = this.tableModel.getRowHeight(e, p);
1073
- if (A + v > 0) {
1090
+ const A = u, C = p === c - 1, R = this.tableModel.getRowHeight(e, p);
1091
+ if (A + R > 0) {
1074
1092
  this.firstVisibleRowIndex = p;
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;
1093
+ let x = { left: l, width: n, height: R, top: A, index: p }, y = this.dom.addRowDiv(s, x, p, e, "center");
1094
+ const E = S;
1077
1095
  if (this.adjustColumnsToRowParent({
1078
1096
  areaIdent: e,
1079
1097
  sideIdent: "center",
@@ -1085,7 +1103,7 @@ class Me extends Ae {
1085
1103
  columnIndexEnd: m - b - 1,
1086
1104
  verticalFixed: !1,
1087
1105
  lastRowOfModel: C
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({
1106
+ }), d.left > 0 && (x = { left: l, width: this.areaBodyWestGeo.width, height: R, top: A, index: p }, y = this.dom.addRowDiv(o, x, p, e, "west"), this.adjustColumnsToRowParent({
1089
1107
  areaIdent: e,
1090
1108
  sideIdent: "west",
1091
1109
  areaModel: a,
@@ -1096,7 +1114,7 @@ class Me extends Ae {
1096
1114
  columnIndexEnd: E - 1,
1097
1115
  verticalFixed: !0,
1098
1116
  lastRowOfModel: C
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({
1117
+ })), d.right > 0 && (x = { left: l, width: this.areaBodyEastGeo.width, height: R, top: A, index: p }, y = this.dom.addRowDiv(i, x, p, e, "east"), this.adjustColumnsToRowParent({
1100
1118
  areaIdent: e,
1101
1119
  sideIdent: "east",
1102
1120
  areaModel: a,
@@ -1117,28 +1135,28 @@ class Me extends Ae {
1117
1135
  { cursor: "pointer" }
1118
1136
  ), k = this.tableOptions.treeOptions.arrowExpandCollapseAll;
1119
1137
  if (k) {
1120
- const B = this.dom.domService.createText(k.content);
1121
- this.dom.domService.appendChild(M, B), k.style && this.dom.applyStyleString(M, k.style);
1138
+ const H = this.dom.domService.createText(k.content);
1139
+ this.dom.domService.appendChild(M, H), k.style && this.dom.applyStyleString(M, k.style);
1122
1140
  }
1123
1141
  }
1124
1142
  }
1125
- if (u = u + v, u > r)
1143
+ if (u = u + R, u > r)
1126
1144
  break;
1127
1145
  }
1128
1146
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1129
1147
  const p = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
1130
1148
  if (p.length)
1131
1149
  for (const A of p) {
1132
- let C = 0, v = s.child, x = "center";
1133
- if (A.c1 < w)
1134
- v = o.child, x = "west";
1150
+ let C = 0, R = s.child, x = "center";
1151
+ if (A.c1 < S)
1152
+ R = o.child, x = "west";
1135
1153
  else if (b > 0 && A.c1 >= m - b)
1136
- v = i.child, x = "east";
1154
+ R = i.child, x = "east";
1137
1155
  else {
1138
1156
  const y = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1139
1157
  C = this.scrollFactorX * y - this.areaBodyWestGeo.width, x = "center";
1140
1158
  }
1141
- this.drawBigCell(A, C, t, a, v, x);
1159
+ this.drawBigCell(A, C, t, a, R, x);
1142
1160
  }
1143
1161
  }
1144
1162
  }
@@ -1158,8 +1176,8 @@ class Me extends Ae {
1158
1176
  d > 0 && e.c1 >= n - d && (a = n - d);
1159
1177
  const c = 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), m = this.getColumnWidths(e.c1, e.c2).reduce((g, p) => g + p, 0);
1160
1178
  let b = !1;
1161
- const w = this.getSelectionModel ? this.getSelectionModel() : void 0;
1162
- w && (b = w.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? (console.info("TODO here", e), this.renderCell({
1179
+ const S = this.getSelectionModel ? this.getSelectionModel() : void 0;
1180
+ S && (b = S.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? (console.info("TODO here", e), this.renderCell({
1163
1181
  areaModel: s,
1164
1182
  areaIdent: s.areaIdent,
1165
1183
  sideIdent: r,
@@ -1220,7 +1238,7 @@ class Me extends Ae {
1220
1238
  verticalFixed: d = !1,
1221
1239
  lastRowOfModel: a = !1
1222
1240
  }) {
1223
- var w;
1241
+ var S;
1224
1242
  this.scrollViewportLeft = this.scrollViewport.scrollLeft;
1225
1243
  let c = 0;
1226
1244
  if (!d) {
@@ -1233,12 +1251,12 @@ class Me extends Ae {
1233
1251
  const p = b, A = this.tableModel.getColumnWidth(g);
1234
1252
  if (A > 0 && p + A > 0) {
1235
1253
  let C = s.height;
1236
- const v = o.getRowspanAt(r, g), x = o.getColspanAt(r, g);
1237
- v > 1 && (C = this.getRowHeights(r, r + v - 1, o).reduce((M, k) => M + k, 0));
1254
+ const R = o.getRowspanAt(r, g), x = o.getColspanAt(r, g);
1255
+ R > 1 && (C = this.getRowHeights(r, r + R - 1, o).reduce((M, k) => M + k, 0));
1238
1256
  let y = A;
1239
1257
  x > 1 && (y = this.getColumnWidths(g, g + x - 1).reduce((M, k) => M + k, 0));
1240
1258
  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") {
1259
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (S = this.colAndRowspanModels[e]) != null && S.isInRange(r, g) && (E = !0), this.draggingTargetColumnIndex === g && e !== "header") {
1242
1260
  this.renderDragTargetDiv(i, p, u, y, C);
1243
1261
  const M = { left: p, top: u, width: y, height: C };
1244
1262
  this.dom.addColumnBorderDivs(this.tableOptions, i, M, e, t);
@@ -1291,21 +1309,21 @@ class Me extends Ae {
1291
1309
  lastRowOfModel: c,
1292
1310
  gammaRange: u
1293
1311
  }) {
1294
- var Z;
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);
1312
+ var te;
1313
+ const b = this.editorRenderer && this.editorRendererRow === s && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(s, i), S = { left: r, width: l, height: n, top: d, index: i }, g = e.getRowByIndex(s);
1296
1314
  let p = "none";
1297
1315
  if (i === this.getTreeArrowColumnIndex() && O(g)) {
1298
- const S = g;
1299
- (Z = S.children) != null && Z.length ? S.expanded ? p = "expanded" : p = "collapsed" : p = "hidden";
1316
+ const w = g;
1317
+ (te = w.children) != null && te.length ? w.expanded ? p = "expanded" : p = "collapsed" : p = "hidden";
1300
1318
  }
1301
1319
  let C;
1302
1320
  if (t === "header") {
1303
- const S = this.tableModel.getColumnDef(i);
1304
- (!(S != null && S.sortIconVisible) || S != null && S.sortIconVisible()) && (C = S == null ? void 0 : S.sortState);
1321
+ const w = this.tableModel.getColumnDef(i);
1322
+ (!(w != null && w.sortIconVisible) || w != null && w.sortIconVisible()) && (C = w == null ? void 0 : w.sortState);
1305
1323
  }
1306
- const v = e.getValueAt(s, i), x = b ? "" : `${v}`, y = e.isRowChecked(s), E = this.dom.addColumnDiv(
1324
+ const R = e.getValueAt(s, i), x = b ? "" : `${R}`, y = e.isRowChecked(s), E = this.dom.addColumnDiv(
1307
1325
  a,
1308
- w,
1326
+ S,
1309
1327
  s,
1310
1328
  i,
1311
1329
  t,
@@ -1319,19 +1337,19 @@ class Me extends Ae {
1319
1337
  M && this.dom.setAttribute(E, "title", M);
1320
1338
  const k = this.tableModel.getColumnDef(i);
1321
1339
  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") {
1326
- const S = this.getFocusModel();
1327
- S != null && S.hasFocus(s, i) && this.dom.addFocusBorderDivs(a, w, {});
1340
+ let H;
1341
+ b && (H = b.render(E, s, i, t, e, R, this.dom.domService));
1342
+ const ee = e.getCustomClassesAt(s, i);
1343
+ if (ee.length && this.dom.addClasses(ee, E), this.dom.addColumnBorderDivs(this.tableOptions, a, S, t, o), c && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: d + n }, a), this.getFocusModel && t === "body") {
1344
+ const w = this.getFocusModel();
1345
+ w != null && w.hasFocus(s, i) && this.dom.addFocusBorderDivs(a, S, {});
1328
1346
  }
1329
1347
  t === "header" && this.dom.setAttribute(E, "data-ge-action", "drag-column");
1330
1348
  const G = e.getCustomStyleAt(s, i);
1331
1349
  if (G)
1332
- for (const S in G)
1333
- this.dom.setStyle(E, S, G[S]);
1334
- return [E, B];
1350
+ for (const w in G)
1351
+ this.dom.setStyle(E, w, G[w]);
1352
+ return [E, H];
1335
1353
  }
1336
1354
  applyCssClasses(e, t = {}) {
1337
1355
  e && Object.entries(t).forEach(([o, s]) => {
@@ -1421,7 +1439,7 @@ class Me extends Ae {
1421
1439
  if (m) {
1422
1440
  const b = m.getSelectionCount(i, r);
1423
1441
  u = b > 0;
1424
- for (let w = 0; w < b; w++) {
1442
+ for (let S = 0; S < b; S++) {
1425
1443
  const g = this.dom.applyStylePosistionAbsolute(
1426
1444
  // ge-table-body-west-selected-range
1427
1445
  this.dom.createDivWithClass(`ge-table-${s.areaIdent}-${o}-selected-range`, l)
@@ -1447,7 +1465,7 @@ class Me extends Ae {
1447
1465
  lastRowOfModel: u,
1448
1466
  gammaRange: m
1449
1467
  }) {
1450
- const [b, w] = this.addAndRenderCellDiv({
1468
+ const [b, S] = this.addAndRenderCellDiv({
1451
1469
  areaModel: e,
1452
1470
  areaIdent: t,
1453
1471
  sideIdent: o,
@@ -1461,19 +1479,19 @@ class Me extends Ae {
1461
1479
  lastRowOfModel: u,
1462
1480
  gammaRange: m
1463
1481
  });
1464
- c && this.dom.addClass(`ge-table-${t}-${o}-selected-range`, b), w && this.cleanupFunctions[t].push(w);
1482
+ c && this.dom.addClass(`ge-table-${t}-${o}-selected-range`, b), S && this.cleanupFunctions[t].push(S);
1465
1483
  }
1466
1484
  renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: o, cellTop: s, cellWidth: i, cellHeight: r, parent: l }) {
1467
1485
  const n = this.dom.domService, d = this.tableOptions.columnResizeHandleWidthInPx ?? 2, a = n.createElement("div");
1468
1486
  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);
1469
1487
  }
1470
1488
  }
1471
- class ke {
1489
+ class _e {
1472
1490
  constructor(e, t) {
1473
1491
  this.columnIndex = e, this.sortState = t;
1474
1492
  }
1475
1493
  }
1476
- class Ie {
1494
+ class De {
1477
1495
  constructor(e) {
1478
1496
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
1479
1497
  }
@@ -1489,26 +1507,26 @@ class Ie {
1489
1507
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
1490
1508
  const t = e.target, o = t.getAttribute("data-area"), s = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
1491
1509
  if (o && s && i) {
1492
- const r = Y(o), l = Number(s), n = Number(i);
1510
+ const r = U(o), l = Number(s), n = Number(i);
1493
1511
  this.tableScope.updateModelValueAfterEdit(r, l, n, t.value);
1494
1512
  }
1495
1513
  }
1496
1514
  }
1497
1515
  }
1498
- class Te {
1516
+ class $e {
1499
1517
  constructor(e = -1, t = -1) {
1500
1518
  this.rowIndex = e, this.columnIndex = t;
1501
1519
  }
1502
1520
  }
1503
- class q {
1521
+ class J {
1504
1522
  constructor(e) {
1505
1523
  this.cells = e;
1506
1524
  }
1507
1525
  static createSingle(e, t) {
1508
- return new q([new Te(e, t)]);
1526
+ return new J([new $e(e, t)]);
1509
1527
  }
1510
1528
  }
1511
- class De {
1529
+ class Pe {
1512
1530
  constructor(e) {
1513
1531
  var t, o;
1514
1532
  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);
@@ -1518,7 +1536,7 @@ class De {
1518
1536
  let o = !1, s = !1;
1519
1537
  if (this.getSelectionModel && this.getFocusModel) {
1520
1538
  const u = this.getSelectionModel(), m = this.getFocusModel();
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));
1539
+ 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(v.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (a = e.originalEvent) != null && a.ctrlKey || (c = e.originalEvent) != null && c.metaKey ? (u.addSelection(v.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (u.firstClick(e.rowIndex, e.columnIndex), o = !0));
1522
1540
  }
1523
1541
  return s ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), o;
1524
1542
  }
@@ -1541,7 +1559,7 @@ class De {
1541
1559
  createRangeByEvents(e, t) {
1542
1560
  t || (t = e);
1543
1561
  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);
1544
- return R.create({
1562
+ return v.create({
1545
1563
  rowIndex1: o,
1546
1564
  columnIndex1: i,
1547
1565
  rowIndex2: s,
@@ -1549,7 +1567,7 @@ class De {
1549
1567
  });
1550
1568
  }
1551
1569
  }
1552
- class _e {
1570
+ class Le {
1553
1571
  get() {
1554
1572
  return {
1555
1573
  f2: "START_EDITING",
@@ -1559,43 +1577,60 @@ class _e {
1559
1577
  "ctrl+shift+a": "DESELECT_ALL",
1560
1578
  "ctrl+x": "DESELECT_ALL",
1561
1579
  "ctrl+num_subtract": "DESELECT_ALL",
1562
- "cmd -": "DESELECT_ALL",
1580
+ "meta -": "DESELECT_ALL",
1563
1581
  arrowup: "NAVIGATE_UP",
1564
1582
  arrowdown: "NAVIGATE_DOWN",
1565
1583
  arrowleft: "NAVIGATE_LEFT",
1566
- arrowright: "NAVIGATE_RIGHT"
1584
+ arrowright: "NAVIGATE_RIGHT",
1585
+ "meta+c": "COPY_2_CLIPBOARD",
1586
+ "ctrl+c": "COPY_2_CLIPBOARD"
1567
1587
  };
1568
1588
  }
1569
1589
  }
1570
- class $e {
1590
+ class Fe {
1571
1591
  get() {
1572
1592
  return {
1573
1593
  f2: "START_EDITING",
1574
1594
  space: "TOGGLE_SELECTION",
1575
1595
  "ctrl+num_add": "SELECT_ALL",
1576
- "cmd+a": "SELECT_ALL",
1596
+ "meta+a": "SELECT_ALL",
1577
1597
  "ctrl+a": "SELECT_ALL",
1578
- "cmd+x": "DESELECT_ALL",
1579
- "cmd+shift+a": "DESELECT_ALL",
1598
+ "meta+x": "DESELECT_ALL",
1599
+ "meta+shift+a": "DESELECT_ALL",
1580
1600
  "ctrl+shift+a": "DESELECT_ALL",
1581
1601
  "ctrl+num_subtract": "DESELECT_ALL",
1582
1602
  "ctrl -": "DESELECT_ALL",
1583
1603
  arrowup: "NAVIGATE_UP",
1584
1604
  arrowdown: "NAVIGATE_DOWN",
1585
1605
  arrowleft: "NAVIGATE_LEFT",
1586
- arrowright: "NAVIGATE_RIGHT"
1606
+ arrowright: "NAVIGATE_RIGHT",
1607
+ "meta+c": "COPY_2_CLIPBOARD",
1608
+ "ctrl+c": "COPY_2_CLIPBOARD"
1587
1609
  };
1588
1610
  }
1589
1611
  }
1590
- class Fe {
1612
+ class Oe {
1591
1613
  constructor(e) {
1592
1614
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
1593
1615
  }
1616
+ /**
1617
+ * Adds a listener to the list of listeners.
1618
+ *
1619
+ * @param {OnActionTriggeredIf} listener - The listener to be added.
1620
+ * @returns {void}
1621
+ */
1594
1622
  addListener(e) {
1595
1623
  this.listener.includes(e) || this.listener.push(e);
1596
1624
  }
1625
+ /**
1626
+ * Initializes the ShortcutService by assigning shortcut action id mappings based on the current operating system.
1627
+ * Also adds key down event listener to the table host element.
1628
+ */
1597
1629
  init() {
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));
1630
+ this.assignPredefinedSystemShortcutMappings(), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
1631
+ }
1632
+ assignPredefinedSystemShortcutMappings() {
1633
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Fe().get()) : Object.assign(this.shortcutActionIdMapping, new Le().get());
1599
1634
  }
1600
1635
  isMacintosh() {
1601
1636
  return navigator.platform.indexOf("Mac") > -1;
@@ -1607,19 +1642,19 @@ class Fe {
1607
1642
  return location.hostname === "localhost" || location.hostname === "127.0.0.1";
1608
1643
  }
1609
1644
  onKeyDown(e) {
1610
- const t = this.findEnty(e);
1645
+ const t = this.findEntity(e);
1611
1646
  t && this.emit(t) && (e.preventDefault(), e.stopPropagation());
1612
1647
  }
1613
1648
  emit(e) {
1614
- this.isDebug() && console.debug("ShortcutService emit:", e);
1649
+ this.isDebug() && console.debug("ShortcutService emit :", e);
1615
1650
  let t = !1;
1616
1651
  for (const o of this.listener)
1617
1652
  o.onActionTriggered(e) && (t = !0);
1618
1653
  return t;
1619
1654
  }
1620
- findEnty(e) {
1655
+ findEntity(e) {
1621
1656
  const t = this.getTokenByEvent(e);
1622
- this.isDebug() && console.debug("ShortcutService tokens:", t);
1657
+ this.isDebug() && console.debug("ShortcutService tokens :", t);
1623
1658
  for (const o in this.shortcutActionIdMapping) {
1624
1659
  const s = o.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[+ ]/g).sort();
1625
1660
  if (this.areTokensEquals(t, s))
@@ -1638,8 +1673,16 @@ class Fe {
1638
1673
  const t = [];
1639
1674
  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();
1640
1675
  }
1676
+ /**
1677
+ * Retrieves the shortcut action mapping object.
1678
+ *
1679
+ * @returns {ShortcutActionIdMapping} - The shortcut action mapping object.
1680
+ */
1681
+ getShortcutActionMapping() {
1682
+ return this.shortcutActionIdMapping;
1683
+ }
1641
1684
  }
1642
- class ee {
1685
+ class oe {
1643
1686
  onCheckboxChanged(e) {
1644
1687
  }
1645
1688
  onContextmenu(e) {
@@ -1655,7 +1698,7 @@ class ee {
1655
1698
  onMouseMoved(e) {
1656
1699
  }
1657
1700
  }
1658
- class Le {
1701
+ class Ve {
1659
1702
  setStyle(e, t, o) {
1660
1703
  return e.style[t] = o, e;
1661
1704
  }
@@ -1682,7 +1725,7 @@ class Le {
1682
1725
  e.setAttribute(t, o);
1683
1726
  }
1684
1727
  }
1685
- class Pe {
1728
+ class Be {
1686
1729
  render(e, t, o, s, i, r, l) {
1687
1730
  if (i.isEditable(t, o)) {
1688
1731
  l.addClass(e, "ge-table-row-input-div");
@@ -1703,12 +1746,12 @@ class Pe {
1703
1746
  }
1704
1747
  }
1705
1748
  }
1706
- class Oe {
1749
+ class He {
1707
1750
  constructor(e = "none", t = "single") {
1708
1751
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
1709
1752
  }
1710
1753
  firstClick(e, t) {
1711
- this.selectionType === "row" ? this.addRange(R.singleRow(e)) : this.selectionType === "column" && this.addRange(R.singleColumn(t));
1754
+ this.selectionType === "row" ? this.addRange(v.singleRow(e)) : this.selectionType === "column" && this.addRange(v.singleColumn(t));
1712
1755
  }
1713
1756
  getSelectionCount(e, t) {
1714
1757
  let o = 0;
@@ -1741,16 +1784,19 @@ class Oe {
1741
1784
  if (this.selectionType === "none")
1742
1785
  return;
1743
1786
  let t = e;
1744
- this.selectionType === "row" ? t = R.singleRow(e.r1) : this.selectionType === "column" && (t = R.singleColumn(e.c1)), this.negativeRanges.push(t);
1787
+ this.selectionType === "row" ? t = v.singleRow(e.r1) : this.selectionType === "column" && (t = v.singleColumn(e.c1)), this.negativeRanges.push(t);
1745
1788
  }
1746
1789
  togglePoint(e, t) {
1747
- this.getSelectionCount(e, t) > 0 ? this.removeSelection(R.singleCell(e, t)) : this.addSelection(R.singleCell(e, t));
1790
+ this.getSelectionCount(e, t) > 0 ? this.removeSelection(v.singleCell(e, t)) : this.addSelection(v.singleCell(e, t));
1791
+ }
1792
+ isSelected(e, t) {
1793
+ return this.getSelectionCount(e, t) > 0;
1748
1794
  }
1749
1795
  addRange(e) {
1750
1796
  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));
1751
1797
  }
1752
1798
  }
1753
- class He {
1799
+ class We {
1754
1800
  constructor(e = "none") {
1755
1801
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1;
1756
1802
  }
@@ -1773,29 +1819,69 @@ class He {
1773
1819
  return [this.rowIndex, this.columnIndex];
1774
1820
  }
1775
1821
  }
1776
- const Ve = new Oe(), Be = new He("cell");
1822
+ const Ge = new He(), Ne = new We("cell");
1777
1823
  class j {
1778
1824
  constructor() {
1779
1825
  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 = {
1780
1826
  header: 34,
1781
1827
  body: 34,
1782
1828
  footer: 34
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;
1829
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ge(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new be(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new Be(), this.getSelectionModel = () => Ge, this.getFocusModel = () => Ne;
1784
1830
  }
1785
1831
  }
1786
- class ue extends Me {
1787
- constructor(e, t, o, s, i) {
1788
- var r;
1832
+ const Q = class X {
1833
+ createContent(e, t, o) {
1834
+ return new Promise((s, i) => {
1835
+ if (t != null && t.hasSelection()) {
1836
+ const r = this.mergeRanges(t.getRanges());
1837
+ if (r) {
1838
+ r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
1839
+ const l = [];
1840
+ for (let n = r.r1; n <= r.r2; n++) {
1841
+ const d = [];
1842
+ for (let a = r.c1; a <= r.c2; a++) {
1843
+ const c = t.isSelected(n, a) ? e.getBodyModel().getTextValueAt(n, a) : "";
1844
+ d.push(c);
1845
+ }
1846
+ l.push(d.join(X.columnSeparatorChar));
1847
+ }
1848
+ return s(l.join(X.rowSeparatorChar));
1849
+ }
1850
+ }
1851
+ if (o) {
1852
+ const [r, l] = o.getFocus(), n = e.getBodyModel().getTextValueAt(r, l);
1853
+ return s(n);
1854
+ }
1855
+ i("Cannot copy, neither selection nor focus defined.");
1856
+ });
1857
+ }
1858
+ copyContent(e) {
1859
+ return navigator.clipboard.writeText(e);
1860
+ }
1861
+ mergeRanges(e) {
1862
+ let t;
1863
+ for (const o of e)
1864
+ t ? (t.r1 = Math.min(t.r1, o.r1), t.c1 = Math.min(t.c1, o.c1), t.r2 = Math.max(t.r2, o.r2), t.c2 = Math.max(t.c2, o.c2)) : t = new v(o.r1, o.c1, o.r2, o.c2);
1865
+ return t;
1866
+ }
1867
+ };
1868
+ Q.columnSeparatorChar = " ";
1869
+ Q.rowSeparatorChar = `
1870
+ `;
1871
+ let se = Q;
1872
+ class pe extends Te {
1873
+ constructor(e, t, o, s, i, r = new se()) {
1874
+ var l;
1789
1875
  if (super(
1790
1876
  e,
1791
1877
  t,
1792
- new me(o),
1878
+ new xe(o),
1793
1879
  s
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) {
1795
- const l = this.tableOptions.autoRestoreOptions, n = l.getStorageKeyFn;
1796
- n && (l.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ye(n)), l.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ve(n)), l.autoRestoreSortingState && (this.storeSortingService = new Re(n)));
1880
+ ), this.eventListener = i, this.copyService = r, this.licenseManager = F.getInstance(), this.selectionService = new Pe(this), this.api = new ve(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, i || (this.eventListener = new oe()), (l = this.tableOptions) != null && l.autoRestoreOptions) {
1881
+ const n = this.tableOptions.autoRestoreOptions, d = n.getStorageKeyFn;
1882
+ d && (n.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Re(d)), n.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new Ee(d)), n.autoRestoreSortingState && (this.storeSortingService = new Me(d)));
1797
1883
  }
1798
- this.mouseHandler = new Se(this), this.inputHandler = new Ie(this), this.shortcutService = new Fe(this), this.shortcutService.addListener(this.selectionService);
1884
+ this.mouseHandler = new Ce(this), this.inputHandler = new De(this), this.shortcutService = new Oe(this), this.shortcutService.addListener(this.selectionService);
1799
1885
  }
1800
1886
  /**
1801
1887
  * Creates a TableScope instance.
@@ -1808,15 +1894,24 @@ class ue extends Me {
1808
1894
  *
1809
1895
  * @return {TableScope} - The newly created TableScope instance.
1810
1896
  */
1811
- static create(e, t, o = new j(), s = new ee(), i = new Le()) {
1812
- return new ue(
1897
+ static create(e, t, o = new j(), s = new oe(), i = new Ve(), r = new se()) {
1898
+ return new pe(
1813
1899
  e,
1814
1900
  t,
1815
1901
  i,
1816
1902
  o,
1817
- s
1903
+ s,
1904
+ r
1818
1905
  );
1819
1906
  }
1907
+ /**
1908
+ * Triggers an action based on the provided actionId.
1909
+ *
1910
+ * This function can be invoked manually via the table API or by keyboard shortcuts.
1911
+ *
1912
+ * @param {ActionId} actionId - The identifier of the action to be triggered.
1913
+ * @return {boolean} - Returns true if the action was triggered successfully, false otherwise.
1914
+ */
1820
1915
  onActionTriggered(e) {
1821
1916
  if (e === "NAVIGATE_DOWN" && this.changeFocusCell(0, 1) || e === "NAVIGATE_UP" && this.changeFocusCell(0, -1) || e === "NAVIGATE_LEFT" && this.changeFocusCell(-1, 0) || e === "NAVIGATE_RIGHT" && this.changeFocusCell(1, 0))
1822
1917
  return !0;
@@ -1828,10 +1923,14 @@ class ue extends Me {
1828
1923
  }
1829
1924
  return !0;
1830
1925
  }
1926
+ if (e === "COPY_2_CLIPBOARD") {
1927
+ const t = this.getSelectionModel ? this.getSelectionModel() : void 0, o = this.getFocusModel ? this.getFocusModel() : void 0;
1928
+ this.copyService.createContent(this.tableModel, t, o).then((s) => this.copyService.copyContent(s));
1929
+ }
1831
1930
  return !1;
1832
1931
  }
1833
1932
  updateModelValueAfterEdit(e, t, o, s) {
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());
1933
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, o, s) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(J.createSingle(t, o)), this.hostElement.focus());
1835
1934
  }
1836
1935
  /**
1837
1936
  * Retrieves the TableApi object.
@@ -1993,7 +2092,7 @@ class ue extends Me {
1993
2092
  const s = this.tableModel.getColumnDef(o);
1994
2093
  if (s != null && s.sortable && s.sortable()) {
1995
2094
  e.preventDefault(), e.stopPropagation();
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);
2095
+ const l = s.sortStatesOrder ? s.sortStatesOrder : this.tableOptions.sortOrder, n = s.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], a = new _e(o, d);
1997
2096
  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]);
1998
2097
  }
1999
2098
  }
@@ -2135,10 +2234,10 @@ class ue extends Me {
2135
2234
  this.tableOptions.getSelectionModel = o, this.getSelectionModel = o, this.selectionService.getSelectionModel = o, t && this.repaint();
2136
2235
  }
2137
2236
  }
2138
- class ge {
2237
+ class fe {
2139
2238
  }
2140
- ge.themes = ["light", "combat", "paper", "blackboard"];
2141
- ge.vars = {
2239
+ fe.themes = ["light", "combat", "paper", "blackboard"];
2240
+ fe.vars = {
2142
2241
  light: `html[data-theme="light"] {
2143
2242
  --ge-table-bg: rgba(255,255,255, 0.5);
2144
2243
  --ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
@@ -2372,27 +2471,27 @@ ge.vars = {
2372
2471
  --ge-table-drop-zone-bg: #758129;
2373
2472
  }`
2374
2473
  };
2375
- class te {
2474
+ class ie {
2376
2475
  constructor(e, t = !0, o, s, i = 0, r = !1, l = !1) {
2377
2476
  this.data = e, this.expanded = t, this.children = o, this.parent = s, this.deep = i, this.checked = r, this.keep = l, this.type = "TreeRow";
2378
2477
  }
2379
2478
  }
2380
- class X {
2479
+ class Y {
2381
2480
  static buildTreeRows(e, t = "children", o = 12) {
2382
2481
  const s = [];
2383
2482
  for (const i of e)
2384
- s.push(X.buildTreeRow(i, t, void 0, 0, o));
2483
+ s.push(Y.buildTreeRow(i, t, void 0, 0, o));
2385
2484
  return s;
2386
2485
  }
2387
- static buildTreeRow(e, t = "children", o = new te(e, !0, [], void 0, 0), s = 0, i = 12) {
2486
+ static buildTreeRow(e, t = "children", o = new ie(e, !0, [], void 0, 0), s = 0, i = 12) {
2388
2487
  var l;
2389
2488
  if (s > i)
2390
2489
  return console.warn("Max deep limit reached: ", s), o;
2391
2490
  const r = e[t];
2392
2491
  if (r)
2393
2492
  for (const n of r) {
2394
- const d = new te(n, !0, [], o, s + 1);
2395
- if ((l = o.children) == null || l.push(d), X.buildTreeRow(
2493
+ const d = new ie(n, !0, [], o, s + 1);
2494
+ if ((l = o.children) == null || l.push(d), Y.buildTreeRow(
2396
2495
  n,
2397
2496
  t,
2398
2497
  d,
@@ -2403,7 +2502,7 @@ class X {
2403
2502
  return o;
2404
2503
  }
2405
2504
  }
2406
- class H {
2505
+ class V {
2407
2506
  constructor(e = 34, t = 34, o = 34) {
2408
2507
  this.header = e, this.body = t, this.footer = o;
2409
2508
  }
@@ -2413,10 +2512,10 @@ class f {
2413
2512
  this.value = e, this.unit = t;
2414
2513
  }
2415
2514
  }
2416
- const We = () => !0, oe = () => !1;
2417
- class V {
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) {
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;
2515
+ const ze = () => !0, re = () => !1;
2516
+ class B {
2517
+ 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, S, g = () => this.visible) {
2518
+ 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 = S, this.isVisible = g, this.visible = !0;
2420
2519
  }
2421
2520
  static bodyRenderer(e) {
2422
2521
  return new T(
@@ -2434,8 +2533,8 @@ class V {
2434
2533
  e.headerClasses,
2435
2534
  e.bodyClasses,
2436
2535
  e.footerClasses
2437
- ), s = e.sortIconVisible ?? e.sortable ?? oe, i = e.editable ?? e.editable ?? oe, r = e.isVisible ?? e.isVisible ?? We;
2438
- return new V(
2536
+ ), s = e.sortIconVisible ?? e.sortable ?? re, i = e.editable ?? e.editable ?? re, r = e.isVisible ?? e.isVisible ?? ze;
2537
+ return new B(
2439
2538
  e.property ?? "",
2440
2539
  e.headerLabel ?? "",
2441
2540
  e.width ?? new f(100, "px"),
@@ -2455,11 +2554,14 @@ class V {
2455
2554
  );
2456
2555
  }
2457
2556
  }
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 {
2557
+ const Ze = new f(300, "px"), et = new f(290, "px"), tt = new f(280, "px"), ot = new f(270, "px"), st = new f(260, "px"), it = new f(250, "px"), rt = new f(240, "px"), lt = new f(230, "px"), nt = new f(220, "px"), at = new f(210, "px"), le = new f(200, "px"), dt = new f(190, "px"), ht = new f(180, "px"), ct = new f(170, "px"), ut = new f(160, "px"), gt = new f(150, "px"), bt = new f(140, "px"), pt = new f(130, "px"), ft = new f(120, "px"), mt = new f(110, "px"), St = new f(100, "px"), wt = new f(90, "px"), xt = new f(80, "px"), yt = new f(70, "px"), Ct = new f(60, "px"), vt = new f(50, "px"), Rt = new f(40, "px"), At = new f(30, "px"), Et = new f(20, "px"), Mt = new f(10, "px"), kt = new f(0, "px");
2558
+ class Z {
2460
2559
  constructor(e, t = [], o = -1) {
2461
2560
  this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = o, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((s) => s.rendererMap[e]);
2462
2561
  }
2562
+ getTextValueAt(e, t) {
2563
+ return "" + this.getValueAt(e, t);
2564
+ }
2463
2565
  getTooltipAt(e, t) {
2464
2566
  return "";
2465
2567
  }
@@ -2547,7 +2649,7 @@ class J {
2547
2649
  this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
2548
2650
  }
2549
2651
  }
2550
- class D extends J {
2652
+ class _ extends Z {
2551
2653
  constructor(e, t, o, s = []) {
2552
2654
  super(e, s, o), this.areaIdent = e, this.arr = t, this.defaultRowHeight = o, this.columnDefs = s, this.filteredArr = [...t];
2553
2655
  }
@@ -2575,7 +2677,7 @@ class D extends J {
2575
2677
  this.filteredArr.forEach((o) => this.arrayMove(o, e, t)), super.changeColumnOrder(e, t);
2576
2678
  }
2577
2679
  }
2578
- class _ {
2680
+ class D {
2579
2681
  constructor(e = "body") {
2580
2682
  this.areaIdent = e, this.rowSelectionModel = void 0;
2581
2683
  }
@@ -2585,6 +2687,9 @@ class _ {
2585
2687
  getValueAt(e, t) {
2586
2688
  return "";
2587
2689
  }
2690
+ getTextValueAt(e, t) {
2691
+ return "";
2692
+ }
2588
2693
  getCellRenderer(e, t) {
2589
2694
  }
2590
2695
  getRowHeight(e) {
@@ -2644,7 +2749,7 @@ class _ {
2644
2749
  changeColumnOrder(e, t) {
2645
2750
  }
2646
2751
  }
2647
- class Ge {
2752
+ class je {
2648
2753
  flattenTree(e, t = []) {
2649
2754
  var o;
2650
2755
  for (const s of e)
@@ -2655,7 +2760,7 @@ class Ge {
2655
2760
  return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
2656
2761
  }
2657
2762
  }
2658
- class be {
2763
+ class me {
2659
2764
  genericSortComparator(e, t, o) {
2660
2765
  if (typeof e == "number" && typeof t == "number")
2661
2766
  return o * (e - t);
@@ -2673,9 +2778,9 @@ class be {
2673
2778
  return o * ("" + e).localeCompare("" + t);
2674
2779
  }
2675
2780
  }
2676
- class ie extends J {
2781
+ class ne extends Z {
2677
2782
  constructor(e, t, o, s = []) {
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];
2783
+ super(e, s, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = s, this.type = "AreaModelTree", this.sorterService = new me(), this.service = new je(), this.properties = s.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
2679
2784
  }
2680
2785
  changeColumnOrder(e, t) {
2681
2786
  this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
@@ -2777,7 +2882,7 @@ class ie extends J {
2777
2882
  s.children && this.treeSort(s.children, t, o);
2778
2883
  }
2779
2884
  }
2780
- class re {
2885
+ class ae {
2781
2886
  constructor(e = []) {
2782
2887
  this.allRootNodes = e;
2783
2888
  }
@@ -2837,12 +2942,12 @@ class re {
2837
2942
  o.checked && t.push(o), o.children && this.addSelectedRecursive(o.children, t);
2838
2943
  }
2839
2944
  }
2840
- class le {
2945
+ class de {
2841
2946
  constructor(e = 0, t = 0, o = 0, s = 0) {
2842
2947
  this.top = e, this.right = t, this.bottom = o, this.left = s;
2843
2948
  }
2844
2949
  }
2845
- class Ne {
2950
+ class Xe {
2846
2951
  constructor() {
2847
2952
  this.checkedRows = [];
2848
2953
  }
@@ -2874,10 +2979,10 @@ class Ne {
2874
2979
  }
2875
2980
  }
2876
2981
  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 = () => {
2982
+ constructor(e, t, o, s = 0, i = 0, r = !1, l = new V(), n = [], d = [], a = -1, c = 0, u = 400, m = () => {
2878
2983
  }) {
2879
- var b, w, g, p;
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());
2984
+ var b, S, g, p;
2985
+ 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 de(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 : (S = this.columnSizes) != null && S.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (p = this.columnDefs) != null && p.length && we(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Xe());
2881
2986
  }
2882
2987
  init() {
2883
2988
  this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
@@ -2958,7 +3063,7 @@ class N {
2958
3063
  */
2959
3064
  recalcPadding() {
2960
3065
  const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), o = this.getAreaHeight("header"), s = this.getAreaHeight("footer");
2961
- this.padding = new le(
3066
+ this.padding = new de(
2962
3067
  o,
2963
3068
  t,
2964
3069
  s,
@@ -3222,9 +3327,9 @@ class N {
3222
3327
  this.xPositions[t + 1] = this.getColumnWidth(t) + this.xPositions[t];
3223
3328
  }
3224
3329
  }
3225
- class ze extends J {
3330
+ class Ye extends Z {
3226
3331
  constructor(e, t, o, s = []) {
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);
3332
+ super(e, s, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = s, this.sorterService = new me(), this.filteredRows = [...t], this.properties = s.map((i) => i.property);
3228
3333
  }
3229
3334
  getRowCount() {
3230
3335
  var e;
@@ -3275,7 +3380,7 @@ class ze extends J {
3275
3380
  return s && t.length ? this.getPropertyValue(s, t) : s;
3276
3381
  }
3277
3382
  }
3278
- class ne extends ze {
3383
+ class he extends Ye {
3279
3384
  constructor(e, t, o, s) {
3280
3385
  super(
3281
3386
  e,
@@ -3287,12 +3392,12 @@ class ne extends ze {
3287
3392
  }
3288
3393
  class L {
3289
3394
  static createTableModel(e) {
3290
- var t, o, s, i, r, l, n, d, a, c, u, m, b, w;
3395
+ var t, o, s, i, r, l, n, d, a, c, u, m, b, S;
3291
3396
  if (e.defaultRowHeights === void 0)
3292
3397
  if ((t = e.tableOptions) != null && t.defaultRowHeights)
3293
3398
  e.defaultRowHeights = e.tableOptions.defaultRowHeights;
3294
3399
  else {
3295
- if (e.defaultRowHeights = new H(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
3400
+ if (e.defaultRowHeights = new V(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
3296
3401
  const g = e.headerAreaModel.defaultRowHeight;
3297
3402
  g > -1 && (e.defaultRowHeights.header = g);
3298
3403
  }
@@ -3305,45 +3410,45 @@ class L {
3305
3410
  g > -1 && (e.defaultRowHeights.footer = g);
3306
3411
  }
3307
3412
  }
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(
3413
+ if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new B(g, g.toUpperCase(), le)) : (s = e.rows) != null && s.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new B(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 : (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 _(
3309
3414
  "header",
3310
3415
  e.headerData,
3311
3416
  e.defaultRowHeights.header,
3312
3417
  e.columnDefs
3313
- ) : (a = e.columnDefs) != null && a.length ? e.headerAreaModel = new D(
3418
+ ) : (a = e.columnDefs) != null && a.length ? e.headerAreaModel = new _(
3314
3419
  "header",
3315
3420
  [e.columnDefs.map((g) => g.headerLabel)],
3316
3421
  e.defaultRowHeights.header,
3317
3422
  e.columnDefs
3318
- ) : e.headerAreaModel = new _("header")), e.footerAreaModel || ((c = e.footerData) != null && c.length ? e.footerAreaModel = new D(
3423
+ ) : e.headerAreaModel = new D("header")), e.footerAreaModel || ((c = e.footerData) != null && c.length ? e.footerAreaModel = new _(
3319
3424
  "footer",
3320
3425
  e.footerData,
3321
3426
  e.defaultRowHeights.footer,
3322
3427
  e.columnDefs
3323
- ) : e.footerAreaModel = new _("footer")), !e.bodyAreaModel)
3428
+ ) : e.footerAreaModel = new D("footer")), !e.bodyAreaModel)
3324
3429
  if (e.rows)
3325
3430
  if ((u = e.rows) != null && u.length && O(e.rows[0])) {
3326
3431
  const g = e.rows;
3327
- e.bodyAreaModel = new ie(
3432
+ e.bodyAreaModel = new ne(
3328
3433
  "body",
3329
3434
  g,
3330
3435
  e.defaultRowHeights.body,
3331
3436
  e.columnDefs
3332
- ), (e.columnDefs[0].property === "CheckboxColumn" || (m = e.tableOptions) != null && m.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new re(g));
3437
+ ), (e.columnDefs[0].property === "CheckboxColumn" || (m = e.tableOptions) != null && m.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new ae(g));
3333
3438
  } else
3334
- e.bodyAreaModel = new ne(
3439
+ e.bodyAreaModel = new he(
3335
3440
  "body",
3336
3441
  e.rows,
3337
3442
  e.columnDefs,
3338
3443
  e.defaultRowHeights.body
3339
3444
  );
3340
3445
  else
3341
- e.bodyData ? e.bodyAreaModel = new D(
3446
+ e.bodyData ? e.bodyAreaModel = new _(
3342
3447
  "body",
3343
3448
  e.bodyData,
3344
3449
  e.defaultRowHeights.body
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(
3450
+ ) : e.bodyAreaModel = new D("body");
3451
+ 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 = (S = e.tableOptions) == null ? void 0 : S.getSelectionModel), new N(
3347
3452
  e.headerAreaModel,
3348
3453
  e.bodyAreaModel,
3349
3454
  e.footerAreaModel,
@@ -3371,16 +3476,16 @@ class L {
3371
3476
  static buildByTypedRows(e, t, o = new j(), s = 0, i = 0) {
3372
3477
  const r = o.defaultRowHeights, l = t[0].property === "CheckboxColumn";
3373
3478
  if (e != null && e.length && O(e[0])) {
3374
- const n = e, d = new ie(
3479
+ const n = e, d = new ne(
3375
3480
  "body",
3376
3481
  n,
3377
3482
  r.body,
3378
3483
  t
3379
3484
  );
3380
- return (l || o.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new re(n)), L.createByAreaModelsParam({
3381
- headerAreaModel: new D("header", [t.map((a) => a.headerLabel)], r.header),
3485
+ return (l || o.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new ae(n)), L.createByAreaModelsParam({
3486
+ headerAreaModel: new _("header", [t.map((a) => a.headerLabel)], r.header),
3382
3487
  bodyAreaModel: d,
3383
- footerAreaModel: new D("footer", [], r.footer),
3488
+ footerAreaModel: new _("footer", [], r.footer),
3384
3489
  columnDefs: t,
3385
3490
  fixedLeftColumnCount: s,
3386
3491
  fixedRightColumnCount: i,
@@ -3408,12 +3513,12 @@ class L {
3408
3513
  e.fixedLeftColumnCount ?? 0,
3409
3514
  e.fixedRightColumnCount ?? 0,
3410
3515
  t,
3411
- e.defaultRowHeights ?? new H(),
3516
+ e.defaultRowHeights ?? new V(),
3412
3517
  e.columnDefs ?? [],
3413
3518
  e.columnSizes ?? []
3414
3519
  );
3415
3520
  }
3416
- static createByAreaModels(e = new _(), t, o = new _(), s = 0, i = 0, r = !1, l = new H(), n, d = [], a = -1, c) {
3521
+ static createByAreaModels(e = new D(), t, o = new D(), s = 0, i = 0, r = !1, l = new V(), n, d = [], a = -1, c) {
3417
3522
  return new N(
3418
3523
  e,
3419
3524
  t,
@@ -3430,9 +3535,9 @@ class L {
3430
3535
  }
3431
3536
  static createByAreaModelsParam(e) {
3432
3537
  return L.createByAreaModels(
3433
- e.headerAreaModel ?? new _(),
3538
+ e.headerAreaModel ?? new D(),
3434
3539
  e.bodyAreaModel,
3435
- e.footerAreaModel ?? new _(),
3540
+ e.footerAreaModel ?? new D(),
3436
3541
  e.fixedLeftColumnCount ?? 0,
3437
3542
  e.fixedRightColumnCount ?? 0,
3438
3543
  e.rowCheckboxVisible === void 0 ? !1 : e.rowCheckboxVisible,
@@ -3443,10 +3548,10 @@ class L {
3443
3548
  e.columnCount ?? 0
3444
3549
  );
3445
3550
  }
3446
- static createByObjectArray(e, t = [], o = [], s = 0, i = 0, r = !1, l = new H(), n, d = []) {
3551
+ static createByObjectArray(e, t = [], o = [], s = 0, i = 0, r = !1, l = new V(), n, d = []) {
3447
3552
  let a;
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);
3553
+ 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();
3554
+ const c = o ? new _("footer", o, l.footer, n) : new D(), u = new he("body", e, n, l.body);
3450
3555
  return new N(
3451
3556
  a,
3452
3557
  u,
@@ -3460,8 +3565,8 @@ class L {
3460
3565
  );
3461
3566
  }
3462
3567
  }
3463
- const Et = [
3464
- //"COPY_2_CLIPBOARD",
3568
+ const It = [
3569
+ "COPY_2_CLIPBOARD",
3465
3570
  "START_EDITING",
3466
3571
  "TOGGLE_SELECTION",
3467
3572
  "SELECT_ALL",
@@ -3478,17 +3583,17 @@ const Et = [
3478
3583
  // "PAGEUP_PRESSED",
3479
3584
  // "PAGEDOWN_PRESSED"
3480
3585
  ];
3481
- class Mt {
3586
+ class Tt {
3482
3587
  constructor(e, t) {
3483
3588
  this.tableModel = e, this.tableOptions = t;
3484
3589
  }
3485
3590
  }
3486
- class je {
3591
+ class Ke {
3487
3592
  constructor(e, t, o, s, i, r, l) {
3488
3593
  this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = o, this.filter = s, this.sorting = i, this.startIndex = r, this.endIndex = l;
3489
3594
  }
3490
3595
  }
3491
- class kt extends je {
3596
+ class _t extends Ke {
3492
3597
  constructor(e, t, o, s, i, r, l, n) {
3493
3598
  super(
3494
3599
  e,
@@ -3501,30 +3606,30 @@ class kt extends je {
3501
3606
  ), this.rows = n;
3502
3607
  }
3503
3608
  }
3504
- class Xe {
3609
+ class Ue {
3505
3610
  constructor(e, t) {
3506
3611
  this.value = e, this.label = t;
3507
3612
  }
3508
3613
  }
3509
- class It {
3614
+ class Dt {
3510
3615
  constructor(e, t) {
3511
3616
  this.index = e, this.px = t;
3512
3617
  }
3513
3618
  }
3514
- const Tt = { body: ["ge-table-text-align-left"] }, Dt = { body: ["ge-table-text-align-center"] }, _t = { body: ["ge-table-text-align-right"] }, $t = {
3619
+ const $t = { body: ["ge-table-text-align-left"] }, Pt = { body: ["ge-table-text-align-center"] }, Lt = { body: ["ge-table-text-align-right"] }, Ft = {
3515
3620
  header: ["ge-table-text-align-left"],
3516
3621
  body: ["ge-table-text-align-left"],
3517
3622
  footer: ["ge-table-text-align-left"]
3518
- }, Ft = {
3623
+ }, Ot = {
3519
3624
  header: ["ge-table-text-align-center"],
3520
3625
  body: ["ge-table-text-align-center"],
3521
3626
  footer: ["ge-table-text-align-center"]
3522
- }, Lt = {
3627
+ }, Vt = {
3523
3628
  header: ["ge-table-text-align-right"],
3524
3629
  body: ["ge-table-text-align-right"],
3525
3630
  footer: ["ge-table-text-align-right"]
3526
3631
  };
3527
- class ae {
3632
+ class ce {
3528
3633
  render(e, t, o, s, i, r, l) {
3529
3634
  if (i.isRowCheckable(t)) {
3530
3635
  l.addClass(e, "ge-table-row-checkbox-div");
@@ -3542,16 +3647,16 @@ class ae {
3542
3647
  }
3543
3648
  }
3544
3649
  }
3545
- class Pt {
3650
+ class Bt {
3546
3651
  constructor() {
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(
3652
+ 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 ce(), new ce(), void 0), this.classes = new T(
3548
3653
  [],
3549
3654
  ["ge-table-text-align-left"],
3550
3655
  []
3551
3656
  );
3552
3657
  }
3553
3658
  }
3554
- class Ot {
3659
+ class Ht {
3555
3660
  /**
3556
3661
  * A factory that creates a new AreaObjectMap with the given body renderer.
3557
3662
  *
@@ -3566,17 +3671,17 @@ class Ot {
3566
3671
  );
3567
3672
  }
3568
3673
  }
3569
- class Ht {
3674
+ class Wt {
3570
3675
  constructor(e = "down", t) {
3571
3676
  this.status = e, this.originalEvent = t;
3572
3677
  }
3573
3678
  }
3574
- class Vt {
3679
+ class Gt {
3575
3680
  constructor(e, t, o, s, i = {}) {
3576
3681
  this.area = e, this.rowIndex = t, this.columnIndex = o, this.value = s, this.cssClasses = i;
3577
3682
  }
3578
3683
  }
3579
- class Bt {
3684
+ class Nt {
3580
3685
  constructor() {
3581
3686
  this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, o) => {
3582
3687
  if (e && t && o.getRowId) {
@@ -3601,12 +3706,12 @@ class Bt {
3601
3706
  };
3602
3707
  }
3603
3708
  }
3604
- class Ke {
3709
+ class qe {
3605
3710
  constructor(e, t, o, s = !1, i = "normal", r = void 0) {
3606
3711
  this.data = e, this.property = t, this.toggle = o, this.closed = s, this.visibility = i, this.children = r, this.impl = "CellGroup";
3607
3712
  }
3608
3713
  }
3609
- class Ye extends Ke {
3714
+ class Je extends qe {
3610
3715
  constructor(e, t = 0, o = 0, s) {
3611
3716
  super(
3612
3717
  e.data,
@@ -3700,7 +3805,7 @@ class I {
3700
3805
  static buildColumnDefs(e, t = []) {
3701
3806
  for (const o of e)
3702
3807
  o.property && t.push(
3703
- V.create({
3808
+ B.create({
3704
3809
  property: o.property,
3705
3810
  headerLabel: o.data ? o.data : o.property,
3706
3811
  isVisible: () => typeof o.isVisible == "function" ? o.isVisible() : !0
@@ -3729,7 +3834,7 @@ class I {
3729
3834
  static buildGroupExts(e, t = [], o = 0, s) {
3730
3835
  let i;
3731
3836
  for (let r = 0; r < e.length; r++) {
3732
- const l = e[r], n = new Ye(l, o, r, s);
3837
+ const l = e[r], n = new Je(l, o, r, s);
3733
3838
  i && (n.leftNeighbour = i, i.rightNeighbour = n), t.push(n), l.children && (n.children = I.buildGroupExts(l.children, [], o + 1, n)), i = n;
3734
3839
  }
3735
3840
  return t;
@@ -3771,7 +3876,7 @@ class I {
3771
3876
  e.push(s.data + " rowIndex:" + s.rowIndex), (o = s.children) != null && o.length && I.iterateThrowColumns(e, s.children);
3772
3877
  }
3773
3878
  }
3774
- class Wt {
3879
+ class zt {
3775
3880
  constructor() {
3776
3881
  this.areaIdent = "body", this.rowSelectionModel = void 0;
3777
3882
  }
@@ -3813,6 +3918,9 @@ class Wt {
3813
3918
  }
3814
3919
  getValueAt(e, t) {
3815
3920
  }
3921
+ getTextValueAt(e, t) {
3922
+ return "";
3923
+ }
3816
3924
  getYPosByRowIndex(e) {
3817
3925
  return 0;
3818
3926
  }
@@ -3838,16 +3946,16 @@ class Wt {
3838
3946
  return !1;
3839
3947
  }
3840
3948
  }
3841
- class Ue {
3949
+ class Qe {
3842
3950
  render(e, t, o, s, i, r, l) {
3843
3951
  const n = r != null && r.data ? r.data : "";
3844
3952
  e.innerHTML = `${n}`;
3845
3953
  }
3846
3954
  }
3847
- class Gt {
3955
+ class jt {
3848
3956
  constructor(e = "header", t, o = [], s) {
3849
3957
  var i;
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());
3958
+ this.areaIdent = e, this.groups = t, this.columnDefs = o, this.defaultRowHeight = s, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new Qe(), this.groupExts = I.buildGroupExts(t), console.info(this.groupExts), console.info(this.getAllLeafs()), console.info(this.getMaxRowCount());
3851
3959
  for (const r of this.groupExts)
3852
3960
  r.log(this.getMaxRowCount());
3853
3961
  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);
@@ -3914,6 +4022,9 @@ class Gt {
3914
4022
  getValueAt(e, t) {
3915
4023
  return this.arr[e][t];
3916
4024
  }
4025
+ getTextValueAt(e, t) {
4026
+ return "" + this.getValueAt(e, t);
4027
+ }
3917
4028
  getYPosByRowIndex(e) {
3918
4029
  return 0;
3919
4030
  }
@@ -3942,7 +4053,7 @@ class Gt {
3942
4053
  return !1;
3943
4054
  }
3944
4055
  }
3945
- class Nt {
4056
+ class Xt {
3946
4057
  filterPredict(e, t, o = this.objectToString.bind(this)) {
3947
4058
  if (!e)
3948
4059
  return !1;
@@ -3996,12 +4107,12 @@ class Nt {
3996
4107
  return t.join(" ").toLowerCase();
3997
4108
  }
3998
4109
  }
3999
- class zt {
4110
+ class Yt {
4000
4111
  static bodyRenderer(e) {
4001
4112
  return new T(void 0, e, void 0);
4002
4113
  }
4003
4114
  }
4004
- class jt {
4115
+ class Kt {
4005
4116
  constructor(e, t = !0, o = !1) {
4006
4117
  this.property = e, this.skipCheckableCheck = t, this.readonly = o;
4007
4118
  }
@@ -4026,12 +4137,12 @@ class jt {
4026
4137
  }
4027
4138
  }
4028
4139
  }
4029
- class Xt {
4140
+ class Ut {
4030
4141
  render(e, t, o, s, i, r, l) {
4031
4142
  r && (e.innerText = new Date(r).toISOString());
4032
4143
  }
4033
4144
  }
4034
- class Kt {
4145
+ class qt {
4035
4146
  constructor() {
4036
4147
  this.formatter = new Intl.DateTimeFormat("de-DE", {
4037
4148
  year: "numeric",
@@ -4054,17 +4165,17 @@ class Kt {
4054
4165
  }
4055
4166
  }
4056
4167
  }
4057
- class Yt {
4168
+ class Jt {
4058
4169
  render(e, t, o, s, i, r, l) {
4059
4170
  r && (e.innerText = new Date(r).toLocaleDateString());
4060
4171
  }
4061
4172
  }
4062
- class Ut {
4173
+ class Qt {
4063
4174
  render(e, t, o, s, i, r, l) {
4064
4175
  r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
4065
4176
  }
4066
4177
  }
4067
- class qt {
4178
+ class Zt {
4068
4179
  constructor(e = 100, t = !1) {
4069
4180
  this.maxValue = e, this.labelVisible = t;
4070
4181
  }
@@ -4094,17 +4205,17 @@ class qt {
4094
4205
  }
4095
4206
  }
4096
4207
  }
4097
- class Jt {
4208
+ class eo {
4098
4209
  render(e, t, o, s, i, r, l) {
4099
4210
  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 = "";
4100
4211
  }
4101
4212
  }
4102
- class Qt {
4213
+ class to {
4103
4214
  render(e, t, o, s, i, r, l) {
4104
4215
  r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
4105
4216
  }
4106
4217
  }
4107
- class Zt {
4218
+ class oo {
4108
4219
  constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
4109
4220
  this.min = e, this.max = t;
4110
4221
  }
@@ -4112,7 +4223,7 @@ class Zt {
4112
4223
  r && (e.innerText = r, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && l.addClass(e, "ge-cell-error"));
4113
4224
  }
4114
4225
  }
4115
- class eo {
4226
+ class so {
4116
4227
  constructor(e) {
4117
4228
  this.property = e;
4118
4229
  }
@@ -4131,7 +4242,7 @@ class eo {
4131
4242
  }
4132
4243
  }
4133
4244
  }
4134
- class to {
4245
+ class io {
4135
4246
  constructor(e, t = 100, o = !1) {
4136
4247
  this.property = e, this.maxValue = t, this.labelVisible = o;
4137
4248
  }
@@ -4163,7 +4274,7 @@ class to {
4163
4274
  }
4164
4275
  }
4165
4276
  }
4166
- class oo {
4277
+ class ro {
4167
4278
  render(e, t, o, s, i, r, l) {
4168
4279
  if (r) {
4169
4280
  e.innerHTML = `
@@ -4183,16 +4294,16 @@ class oo {
4183
4294
  }
4184
4295
  }
4185
4296
  }
4186
- const so = function(h, e, t) {
4297
+ const lo = function(h, e, t) {
4187
4298
  return h ? Number(h) : "";
4188
4299
  };
4189
- class pe {
4300
+ class Se {
4190
4301
  constructor(e) {
4191
4302
  this.options = e;
4192
4303
  }
4193
4304
  static create(e) {
4194
- return new pe(
4195
- e.map((t) => new Xe(t, t))
4305
+ return new Se(
4306
+ e.map((t) => new Ue(t, t))
4196
4307
  );
4197
4308
  }
4198
4309
  render(e, t, o, s, i, r, l) {
@@ -4220,12 +4331,12 @@ class pe {
4220
4331
  }
4221
4332
  }
4222
4333
  }
4223
- class io {
4334
+ class no {
4224
4335
  constructor(e, t, o) {
4225
4336
  this.r = e, this.g = t, this.b = o;
4226
4337
  }
4227
4338
  }
4228
- class de {
4339
+ class ue {
4229
4340
  constructor(e, t, o, s) {
4230
4341
  this.minValue = e, this.minColor = t, this.maxValue = o, this.maxColor = s;
4231
4342
  }
@@ -4239,146 +4350,147 @@ class W {
4239
4350
  return `rgb(${Math.round(l)}, ${Math.round(n)}, ${Math.round(d)})`;
4240
4351
  }
4241
4352
  static getThreeColorGradientRGB(e, t) {
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})`;
4353
+ return e < t.middleValue ? W.getTwoColorGradientRGB(e, new ue(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? W.getTwoColorGradientRGB(e, new ue(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
4243
4354
  }
4244
4355
  }
4245
- class ro {
4356
+ class ao {
4246
4357
  constructor(e, t, o, s, i, r) {
4247
4358
  this.minValue = e, this.minColor = t, this.middleValue = o, this.middleColor = s, this.maxValue = i, this.maxColor = r;
4248
4359
  }
4249
4360
  }
4250
4361
  export {
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,
4362
+ Z as AbstractAreaModel,
4363
+ Ht as AreaMapFactory,
4364
+ zt as AreaModel,
4365
+ _ as AreaModelArrayOfArrays,
4366
+ jt as AreaModelCellGroups,
4367
+ D as AreaModelHidden,
4368
+ he as AreaModelObjectArrayWithColumndefs,
4369
+ Ye as AreaModelObjectyArray,
4370
+ ne as AreaModelTree,
4260
4371
  T as AreaObjectMap,
4261
- Bt as AutoRestoreOptions,
4262
- Ke as CellGroup,
4263
- Ye as CellGroupExt,
4264
- Ue as CellGroupExtCellRenderer,
4265
- R as CellRange,
4372
+ Nt as AutoRestoreOptions,
4373
+ qe as CellGroup,
4374
+ Je as CellGroupExt,
4375
+ Qe as CellGroupExtCellRenderer,
4376
+ v as CellRange,
4266
4377
  I as CellgroupFactory,
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,
4275
- V as ColumnDef,
4276
- me as ConvenienceDomService,
4277
- ge as CssVars,
4278
- Kt as DateToIntlDDMMYYYYCellRenderer,
4279
- Xt as DateToIsoCellRenderer,
4280
- Yt as DateToLocaleDateCellRenderer,
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,
4378
+ Kt as CheckboxBooleanPropertyCellRenderer,
4379
+ ce as CheckboxCellRenderer,
4380
+ Bt as CheckboxColumnDef,
4381
+ Xe as CheckboxModel,
4382
+ _t as ChunkData,
4383
+ Ie as ColAndRowspanModel,
4384
+ Ae as CollapsedExpandedData,
4385
+ no as ColorRgb,
4386
+ B as ColumnDef,
4387
+ xe as ConvenienceDomService,
4388
+ se as CopyService,
4389
+ fe as CssVars,
4390
+ qt as DateToIntlDDMMYYYYCellRenderer,
4391
+ Ut as DateToIsoCellRenderer,
4392
+ Jt as DateToLocaleDateCellRenderer,
4393
+ to as DateToTecCellRenderer,
4394
+ V as DefaultRowHeights,
4395
+ ke as EleScope,
4396
+ oe as EventAdapter,
4397
+ re as FalseFn,
4398
+ We as FocusModel,
4399
+ $e as GeCellIndices,
4288
4400
  W as GeCssColorUtil,
4289
- Nt as GeFilterService,
4290
- Ht as GeKeyEvent,
4291
- q as GeModelChangeEvent,
4401
+ Xt as GeFilterService,
4402
+ Wt as GeKeyEvent,
4403
+ J as GeModelChangeEvent,
4292
4404
  K as GeMouseEvent,
4293
4405
  $ as GeoData,
4294
- F as Icon,
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,
4406
+ P as Icon,
4407
+ Dt as IndexAndPx,
4408
+ Be as InputCellRenderer,
4409
+ De as InputHandler,
4410
+ F as LicenseManager,
4411
+ Qt as MaleFemaleToIconCellRenderer,
4412
+ Ce as MouseHandler,
4413
+ ye as MouseTargetData,
4414
+ Zt as NumberCellProgressBarCellRenderer,
4415
+ oo as NumberCellRenderer,
4416
+ Fe as OsxShortcutActionIdMapping,
4417
+ de as Padding,
4418
+ ro as PositiveAndNegativeNumberRenderer,
4419
+ io as ProgressBarCellRenderer,
4420
+ Te as RenderScope,
4421
+ Yt as Renderer,
4422
+ Ke as RequestChunk,
4423
+ Se as SelectCellRenderer,
4424
+ He as SelectionModel,
4425
+ Pe as SelectionService,
4426
+ Oe as ShortcutService,
4427
+ Ve as SimpleDomService,
4316
4428
  f as Size,
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,
4324
- Vt as TableCellUpdateEvent,
4429
+ _e as SortItem,
4430
+ be as SortedOptions,
4431
+ so as StarRatingCellRenderer,
4432
+ Ee as StoreStateCollapsedExpandService,
4433
+ Re as StoreStateScrollPosService,
4434
+ Me as StoreStateSortingService,
4435
+ ve as TableApi,
4436
+ Gt as TableCellUpdateEvent,
4325
4437
  L as TableFactory,
4326
4438
  N as TableModel,
4327
- Mt as TableModelAndOptions,
4439
+ Tt as TableModelAndOptions,
4328
4440
  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,
4340
- _e as WindowsShortcutActionIdMapping,
4341
- Et as actionIds,
4342
- Ft as allCenter,
4343
- $t as allLeft,
4344
- Lt as allRight,
4345
- Dt as bodyCenter,
4346
- Tt as bodyLeft,
4347
- _t as bodyRight,
4348
- so as editInputPipeForNumber,
4349
- Y as getAreaIdentByString,
4441
+ pe as TableScope,
4442
+ ao as ThreeColorGradientArg,
4443
+ ae as TreeCheckboxModel,
4444
+ Y as TreeFactory,
4445
+ ge as TreeOptions,
4446
+ ie as TreeRow,
4447
+ je as TreeRowService,
4448
+ eo as TrueFalseCellRenderer,
4449
+ ze as TrueFn,
4450
+ ue as TwoColorGradientArg,
4451
+ Ue as ValueLabel,
4452
+ Le as WindowsShortcutActionIdMapping,
4453
+ It as actionIds,
4454
+ Ot as allCenter,
4455
+ Ft as allLeft,
4456
+ Vt as allRight,
4457
+ Pt as bodyCenter,
4458
+ $t as bodyLeft,
4459
+ Lt as bodyRight,
4460
+ lo as editInputPipeForNumber,
4461
+ U as getAreaIdentByString,
4350
4462
  z as isAreaModelTree,
4351
- fe as isCheckboxColumnDef,
4463
+ we as isCheckboxColumnDef,
4352
4464
  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
4465
+ kt as px0,
4466
+ Mt as px10,
4467
+ St as px100,
4468
+ mt as px110,
4469
+ ft as px120,
4470
+ pt as px130,
4471
+ bt as px140,
4472
+ gt as px150,
4473
+ ut as px160,
4474
+ ct as px170,
4475
+ ht as px180,
4476
+ dt as px190,
4477
+ Et as px20,
4478
+ le as px200,
4479
+ at as px210,
4480
+ nt as px220,
4481
+ lt as px230,
4482
+ rt as px240,
4483
+ it as px250,
4484
+ st as px260,
4485
+ ot as px270,
4486
+ tt as px280,
4487
+ et as px290,
4488
+ At as px30,
4489
+ Ze as px300,
4490
+ Rt as px40,
4491
+ vt as px50,
4492
+ Ct as px60,
4493
+ yt as px70,
4494
+ xt as px80,
4495
+ wt as px90
4384
4496
  };