@guiexpert/table 1.1.58 → 1.1.60

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
@@ -7,7 +7,7 @@ function $t(h, e = 500) {
7
7
  }, r));
8
8
  };
9
9
  }
10
- function We(h, e = 500) {
10
+ function Ne(h, e = 500) {
11
11
  let t = null;
12
12
  return function(...s) {
13
13
  t && window.clearTimeout(t), t = window.setTimeout(() => {
@@ -36,22 +36,22 @@ class te {
36
36
  this.propertyName = e, this.type = z;
37
37
  }
38
38
  }
39
- class Ne {
39
+ class Ge {
40
40
  constructor(e) {
41
41
  this.propertyName = e, this.type = ke;
42
42
  }
43
43
  }
44
- class Ge {
44
+ class ze {
45
45
  constructor(e) {
46
46
  this.propertyName = e, this.type = De;
47
47
  }
48
48
  }
49
- class ze {
49
+ class je {
50
50
  constructor(e) {
51
51
  this.propertyName = e, this.type = ae;
52
52
  }
53
53
  }
54
- class je {
54
+ class Ue {
55
55
  constructor(e) {
56
56
  this.propertyName = e, this.type = ce;
57
57
  }
@@ -260,7 +260,7 @@ class be {
260
260
  return s;
261
261
  }
262
262
  }
263
- class Ue {
263
+ class Ye {
264
264
  constructor() {
265
265
  this.property = "", this.value = "", this.path = "", this.propertyItem = new Le("", [new Fe("")]);
266
266
  }
@@ -270,11 +270,11 @@ class Ue {
270
270
  }
271
271
  }
272
272
  const ye = "Entity";
273
- function Ye(h) {
274
- let e = Ke(Xe(h));
273
+ function Ke(h) {
274
+ let e = Xe(Je(h));
275
275
  return e.includes(ye) || (e = e + ye), e;
276
276
  }
277
- function Ke(h) {
277
+ function Xe(h) {
278
278
  if (!h || h.length === 0) return h;
279
279
  const e = ["Array", "Arr", "List", "s"];
280
280
  for (const t of e)
@@ -282,7 +282,7 @@ function Ke(h) {
282
282
  return h.slice(0, -t.length);
283
283
  return h;
284
284
  }
285
- function Xe(h) {
285
+ function Je(h) {
286
286
  return !h || h.length === 0 ? "" : h[0].toUpperCase() + h.slice(1);
287
287
  }
288
288
  class Ht {
@@ -578,7 +578,7 @@ class Ht {
578
578
  }
579
579
  extractValueInfos(e, t) {
580
580
  const s = [], o = (i, r, n) => {
581
- const l = new Ue();
581
+ const l = new Ye();
582
582
  let a = r.split("/").pop() || "";
583
583
  if (a === "[]" ? a = n : a === "root" && (a = t), l.property = a, l.value = i, l.path = r, l.propertyItem = this.createPropertyItem(i, l.property), s.push(l), i && typeof i === j && !Array.isArray(i)) {
584
584
  for (const c in i)
@@ -599,7 +599,7 @@ class Ht {
599
599
  ]);
600
600
  }
601
601
  createPropertyType(e, t) {
602
- return e === null ? new Ne(t) : e === void 0 ? new te(t) : typeof e === De ? new Ge(t) : typeof e === ae && !isNaN(e) ? new ze(t) : typeof e === ce ? new je(t) : Array.isArray(e) ? new B(t) : typeof e === j ? new D(t, Ye(t)) : new te(t);
602
+ return e === null ? new Ge(t) : e === void 0 ? new te(t) : typeof e === De ? new ze(t) : typeof e === ae && !isNaN(e) ? new je(t) : typeof e === ce ? new Ue(t) : Array.isArray(e) ? new B(t) : typeof e === j ? new D(t, Ke(t)) : new te(t);
603
603
  }
604
604
  }
605
605
  class Vt {
@@ -698,7 +698,7 @@ function N(h) {
698
698
  function ie(h) {
699
699
  return h && h.type === "AreaModelTree";
700
700
  }
701
- function Je(h) {
701
+ function qe(h) {
702
702
  return h && h.type === "CheckboxColumnDef";
703
703
  }
704
704
  class de {
@@ -752,7 +752,7 @@ class $e {
752
752
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
753
753
  }
754
754
  }
755
- class qe {
755
+ class Ze {
756
756
  constructor(e) {
757
757
  this.domService = e;
758
758
  }
@@ -935,7 +935,7 @@ class qe {
935
935
  }
936
936
  }
937
937
  const Q = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
938
- class Ze {
938
+ class Qe {
939
939
  constructor(e, t) {
940
940
  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)) {
941
941
  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"));
@@ -947,7 +947,7 @@ class Ze {
947
947
  }
948
948
  }
949
949
  }
950
- class Qe {
950
+ class et {
951
951
  constructor(e) {
952
952
  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(
953
953
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -977,7 +977,7 @@ class Qe {
977
977
  if (t - this.lastClicked < this.doubleClickDelay)
978
978
  return;
979
979
  this.lastClicked = t;
980
- const s = new Ze(e.target, this.tableScope);
980
+ const s = new Qe(e.target, this.tableScope);
981
981
  if (s.action === "toggleExpandCollapseAll")
982
982
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
983
983
  else if (s.action === "toggleHeaderGroup")
@@ -1079,7 +1079,180 @@ class Qe {
1079
1079
  }
1080
1080
  }
1081
1081
  }
1082
- class et {
1082
+ class he {
1083
+ constructor(e, t = [], s = -1) {
1084
+ this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
1085
+ }
1086
+ getTextValueAt(e, t) {
1087
+ return "" + this.getValueAt(e, t);
1088
+ }
1089
+ getTooltipAt(e, t) {
1090
+ return "";
1091
+ }
1092
+ getCellRenderer(e, t) {
1093
+ if (t < this.cellRenderers.length)
1094
+ return this.cellRenderers[t];
1095
+ }
1096
+ getColspanAt(e, t) {
1097
+ return 0;
1098
+ }
1099
+ getCustomClassesAt(e, t) {
1100
+ return [];
1101
+ }
1102
+ getCustomStyleAt(e, t) {
1103
+ }
1104
+ getRowspanAt(e, t) {
1105
+ return 0;
1106
+ }
1107
+ getRowByIndex(e) {
1108
+ }
1109
+ isRowCheckable(e) {
1110
+ return !0;
1111
+ }
1112
+ isRowChecked(e) {
1113
+ var s;
1114
+ const t = this.getRowByIndex(e);
1115
+ return (s = this.rowSelectionModel) == null ? void 0 : s.isRowChecked(t);
1116
+ }
1117
+ setRowChecked(e, t) {
1118
+ if (this.rowSelectionModel) {
1119
+ const s = this.getRowByIndex(e);
1120
+ this.rowSelectionModel.checkRow(s, t);
1121
+ }
1122
+ }
1123
+ getMaxColspan() {
1124
+ return 31;
1125
+ }
1126
+ getMaxRowspan() {
1127
+ return 31;
1128
+ }
1129
+ getYPosByRowIndex(e) {
1130
+ return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
1131
+ }
1132
+ init() {
1133
+ !this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
1134
+ }
1135
+ isFilterable() {
1136
+ return this.areaIdent === "body";
1137
+ }
1138
+ doSort(e) {
1139
+ return !1;
1140
+ }
1141
+ isEditable(e, t) {
1142
+ var o, i;
1143
+ const s = (o = this.columnDefs) == null ? void 0 : o[t];
1144
+ return ((i = s == null ? void 0 : s.editable) == null ? void 0 : i.call(s)) ?? !1;
1145
+ }
1146
+ setValue(e, t, s) {
1147
+ var n;
1148
+ const o = (n = this.columnDefs[t]) == null ? void 0 : n.editInputPipe;
1149
+ o && (s = o(s, e, t));
1150
+ const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
1151
+ return r.includes(".") ? this.setPropertyValue(i, r.split("."), s) : (i[r] = s, !0);
1152
+ }
1153
+ isSelectable(e, t) {
1154
+ return !0;
1155
+ }
1156
+ changeColumnOrder(e, t) {
1157
+ this.arrayMove(this.cellRenderers, e, t);
1158
+ }
1159
+ setPropertyValue(e, t, s) {
1160
+ const o = t.shift();
1161
+ if (o) {
1162
+ const i = e[o];
1163
+ return i && t.length ? this.setPropertyValue(i, t, s) : (e[o] = s, !0);
1164
+ }
1165
+ return !1;
1166
+ }
1167
+ arrayMove(e, t, s) {
1168
+ const o = e.splice(t, 1)[0];
1169
+ return e.splice(s, 0, o), e;
1170
+ }
1171
+ calcYPositions() {
1172
+ const e = this.getRowCount();
1173
+ this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
1174
+ for (let t = 0; t < e; t++)
1175
+ this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
1176
+ }
1177
+ }
1178
+ class _e {
1179
+ genericSortComparator(e, t, s) {
1180
+ if (typeof e == "number" && typeof t == "number")
1181
+ return s * (e - t);
1182
+ if (typeof e == "string" && typeof t == "string")
1183
+ return s * e.localeCompare(t);
1184
+ if (typeof e == "boolean" && typeof t == "boolean")
1185
+ return s * ((e ? -1 : 1) - (t ? -1 : 1));
1186
+ if (e instanceof Date && t instanceof Date)
1187
+ return s * (e.getTime() - t.getTime());
1188
+ if (e instanceof Array && t instanceof Array) {
1189
+ const o = e, i = t;
1190
+ if (o.length && i.length)
1191
+ return this.genericSortComparator(o[0], i[0], s);
1192
+ }
1193
+ return s * ("" + e).localeCompare("" + t);
1194
+ }
1195
+ }
1196
+ class Be extends he {
1197
+ constructor(e, t, s, o = []) {
1198
+ super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new _e(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
1199
+ }
1200
+ setRows(e) {
1201
+ this.rows = e, this.filteredRows = [...e];
1202
+ }
1203
+ filterRowsByPredict(e) {
1204
+ this.rows = this.rows.filter(e), this.filteredRows = this.filteredRows.filter(e);
1205
+ }
1206
+ getRowCount() {
1207
+ var e;
1208
+ return ((e = this.filteredRows) == null ? void 0 : e.length) ?? 0;
1209
+ }
1210
+ getValueAt(e, t) {
1211
+ const s = this.properties[t];
1212
+ let o = this.filteredRows[e];
1213
+ return N(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
1214
+ }
1215
+ getFilteredRows() {
1216
+ return this.filteredRows;
1217
+ }
1218
+ getAllRows() {
1219
+ return this.rows;
1220
+ }
1221
+ getRowHeight(e) {
1222
+ return this.defaultRowHeight;
1223
+ }
1224
+ getRowByIndex(e) {
1225
+ return this.filteredRows[e];
1226
+ }
1227
+ externalFilterChanged(e) {
1228
+ this.filteredRows = this.rows ? this.rows.filter(e) : [];
1229
+ }
1230
+ doSort(e) {
1231
+ for (const t of e) {
1232
+ const { columnIndex: s, sortState: o } = t, i = o === "asc" ? 1 : o === "desc" ? -1 : 0, r = this.properties[s];
1233
+ this.filteredRows = this.filteredRows.sort(this.genericFlatTableSortComparator(r, i));
1234
+ }
1235
+ return !0;
1236
+ }
1237
+ getValueByT(e, t) {
1238
+ return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
1239
+ }
1240
+ changeColumnOrder(e, t) {
1241
+ this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
1242
+ }
1243
+ genericFlatTableSortComparator(e, t) {
1244
+ const s = this.columnDefs.find((o) => o.property === e);
1245
+ return (o, i) => {
1246
+ const r = this.getValueByT(o, e), n = this.getValueByT(i, e);
1247
+ return s != null && s.sortComparator ? t * s.sortComparator(r, n, o, i, t) : this.sorterService.genericSortComparator(r, n, t);
1248
+ };
1249
+ }
1250
+ getPropertyValue(e, t) {
1251
+ const s = t.shift(), o = e[s];
1252
+ return o && t.length ? this.getPropertyValue(o, t) : o;
1253
+ }
1254
+ }
1255
+ class tt {
1083
1256
  constructor(e) {
1084
1257
  this.tableScope = e;
1085
1258
  }
@@ -1305,11 +1478,18 @@ class et {
1305
1478
  getTableModel() {
1306
1479
  return this.tableScope.tableModel;
1307
1480
  }
1481
+ getBodyModel() {
1482
+ return this.tableScope.tableModel.getBodyModel();
1483
+ }
1484
+ setRows(e) {
1485
+ const t = this.getBodyModel();
1486
+ t instanceof Be ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t);
1487
+ }
1308
1488
  reSort() {
1309
1489
  this.tableScope.reSort();
1310
1490
  }
1311
1491
  }
1312
- class he {
1492
+ class ue {
1313
1493
  constructor(e) {
1314
1494
  this.getStorageKeyFn = e;
1315
1495
  }
@@ -1376,7 +1556,7 @@ class he {
1376
1556
  // }
1377
1557
  // }
1378
1558
  }
1379
- class tt extends he {
1559
+ class st extends ue {
1380
1560
  constructor(e) {
1381
1561
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
1382
1562
  }
@@ -1398,14 +1578,14 @@ class tt extends he {
1398
1578
  }
1399
1579
  }
1400
1580
  }
1401
- class st {
1581
+ class ot {
1402
1582
  constructor(e = "collapsed", t = [], s = !1, o = !1) {
1403
1583
  this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
1404
1584
  }
1405
1585
  }
1406
- class ot extends he {
1586
+ class it extends ue {
1407
1587
  constructor(e) {
1408
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new st(), this.load();
1588
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new ot(), this.load();
1409
1589
  }
1410
1590
  collapsedExpandedStateGet() {
1411
1591
  return this.collapsedExpandedState;
@@ -1437,7 +1617,7 @@ class ot extends he {
1437
1617
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
1438
1618
  }
1439
1619
  }
1440
- class it extends he {
1620
+ class rt extends ue {
1441
1621
  constructor(e) {
1442
1622
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
1443
1623
  }
@@ -1463,7 +1643,7 @@ class L {
1463
1643
  this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
1464
1644
  }
1465
1645
  }
1466
- class rt {
1646
+ class nt {
1467
1647
  constructor(e, t, s, o) {
1468
1648
  this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new L(), this.areaBodyCenterGeo = new L(), this.areaBodyEastGeo = new L();
1469
1649
  const i = this.hostElement;
@@ -1669,7 +1849,7 @@ class R {
1669
1849
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
1670
1850
  }
1671
1851
  }
1672
- class nt {
1852
+ class lt {
1673
1853
  constructor(e, t) {
1674
1854
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
1675
1855
  }
@@ -1707,7 +1887,7 @@ class I {
1707
1887
  this.header = e, this.body = t, this.footer = s;
1708
1888
  }
1709
1889
  }
1710
- class lt extends rt {
1890
+ class at extends nt {
1711
1891
  constructor(e, t, s, o) {
1712
1892
  var r, n;
1713
1893
  super(e, t, s, o), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
@@ -1717,7 +1897,7 @@ class lt extends rt {
1717
1897
  }, this.tree = !1, this.colAndRowspanModels = new I(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (n = this.tableOptions) != null && n.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), ie(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1718
1898
  (l) => {
1719
1899
  var a;
1720
- this.colAndRowspanModels[l] = new nt(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
1900
+ this.colAndRowspanModels[l] = new lt(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
1721
1901
  }
1722
1902
  );
1723
1903
  }
@@ -2586,12 +2766,12 @@ class lt extends rt {
2586
2766
  l.setAttribute(c, "data-col-index", `${t}`), l.setAttribute(c, "data-row-index", `${e}`), l.setAttribute(c, "data-area", "header"), l.setAttribute(c, "data-ge-action", "resize-column"), l.addClass(c, "ge-table-column-resize-handle"), l.setStyle(c, "display", "clip"), l.setStyle(c, "position", "absolute"), l.setStyle(c, "cursor", "col-resize"), l.setStyle(c, "left", `${s + i - a}px`), l.setStyle(c, "top", `${o}px`), l.setStyle(c, "width", `${a}px`), l.setStyle(c, "height", `${r}px`), l.appendChild(n, c);
2587
2767
  }
2588
2768
  }
2589
- class at {
2769
+ class ct {
2590
2770
  constructor(e, t) {
2591
2771
  this.columnIndex = e, this.sortState = t;
2592
2772
  }
2593
2773
  }
2594
- class ct {
2774
+ class dt {
2595
2775
  constructor(e) {
2596
2776
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
2597
2777
  }
@@ -2613,20 +2793,20 @@ class ct {
2613
2793
  }
2614
2794
  }
2615
2795
  }
2616
- class dt {
2796
+ class ht {
2617
2797
  constructor(e = -1, t = -1) {
2618
2798
  this.rowIndex = e, this.columnIndex = t;
2619
2799
  }
2620
2800
  }
2621
- class ue {
2801
+ class pe {
2622
2802
  constructor(e) {
2623
2803
  this.cells = e;
2624
2804
  }
2625
2805
  static createSingle(e, t) {
2626
- return new ue([new dt(e, t)]);
2806
+ return new pe([new ht(e, t)]);
2627
2807
  }
2628
2808
  }
2629
- class ht {
2809
+ class ut {
2630
2810
  constructor(e) {
2631
2811
  var t, s;
2632
2812
  this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (s = this.tableScope.tableOptions) != null && s.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
@@ -2667,7 +2847,7 @@ class ht {
2667
2847
  });
2668
2848
  }
2669
2849
  }
2670
- class ut {
2850
+ class pt {
2671
2851
  get() {
2672
2852
  return {
2673
2853
  f2: "START_EDITING",
@@ -2687,7 +2867,7 @@ class ut {
2687
2867
  };
2688
2868
  }
2689
2869
  }
2690
- class pt {
2870
+ class gt {
2691
2871
  get() {
2692
2872
  return {
2693
2873
  f2: "START_EDITING",
@@ -2709,7 +2889,7 @@ class pt {
2709
2889
  };
2710
2890
  }
2711
2891
  }
2712
- class gt {
2892
+ class ft {
2713
2893
  constructor(e) {
2714
2894
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
2715
2895
  }
@@ -2730,7 +2910,7 @@ class gt {
2730
2910
  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));
2731
2911
  }
2732
2912
  assignPredefinedSystemShortcutMappings() {
2733
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new pt().get()) : Object.assign(this.shortcutActionIdMapping, new ut().get());
2913
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new gt().get()) : Object.assign(this.shortcutActionIdMapping, new pt().get());
2734
2914
  }
2735
2915
  isMacintosh() {
2736
2916
  return navigator.platform.indexOf("Mac") > -1;
@@ -2802,7 +2982,7 @@ class re {
2802
2982
  onFocusChanged(e) {
2803
2983
  }
2804
2984
  }
2805
- class ft {
2985
+ class mt {
2806
2986
  setStyle(e, t, s) {
2807
2987
  return e.style[t] = s, e;
2808
2988
  }
@@ -2829,7 +3009,7 @@ class ft {
2829
3009
  e.setAttribute(t, s);
2830
3010
  }
2831
3011
  }
2832
- class mt {
3012
+ class bt {
2833
3013
  render(e, t, s, o, i, r, n) {
2834
3014
  if (i.isEditable(t, s)) {
2835
3015
  n.addClass(e, "ge-table-row-input-div");
@@ -2850,7 +3030,7 @@ class mt {
2850
3030
  }
2851
3031
  }
2852
3032
  }
2853
- class pe {
3033
+ class ge {
2854
3034
  constructor(e = "none", t = "single") {
2855
3035
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
2856
3036
  }
@@ -2932,7 +3112,7 @@ class pe {
2932
3112
  this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e), this.fireChangeEvent());
2933
3113
  }
2934
3114
  }
2935
- class bt {
3115
+ class yt {
2936
3116
  constructor(e = "none") {
2937
3117
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2938
3118
  }
@@ -2969,7 +3149,7 @@ class bt {
2969
3149
  return [this.rowIndex, this.columnIndex];
2970
3150
  }
2971
3151
  }
2972
- class ge {
3152
+ class fe {
2973
3153
  constructor(e = new O(
2974
3154
  "❯",
2975
3155
  "",
@@ -2983,14 +3163,14 @@ class ge {
2983
3163
  }
2984
3164
  // `⊖ `, `⊕ `;
2985
3165
  }
2986
- const yt = new pe(), xt = new bt("cell");
3166
+ const xt = new ge(), wt = new yt("cell");
2987
3167
  class X {
2988
3168
  constructor() {
2989
3169
  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 = {
2990
3170
  header: 34,
2991
3171
  body: 34,
2992
3172
  footer: 34
2993
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Oe(), this.headerGroupOptions = new ge(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new $e(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new mt(), this.getSelectionModel = () => yt, this.getFocusModel = () => xt;
3173
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Oe(), this.headerGroupOptions = new fe(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new $e(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new bt(), this.getSelectionModel = () => xt, this.getFocusModel = () => wt;
2994
3174
  }
2995
3175
  }
2996
3176
  const W = class W {
@@ -3078,16 +3258,16 @@ const W = class W {
3078
3258
  W.columnSeparatorChar = " ", W.rowSeparatorChar = `
3079
3259
  `;
3080
3260
  let J = W;
3081
- class wt {
3261
+ class St {
3082
3262
  constructor(e, t = 500) {
3083
- this.tableScope = e, this.debounceDelay = t, new ResizeObserver(We(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
3263
+ this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Ne(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
3084
3264
  }
3085
3265
  handleResize(e) {
3086
3266
  const t = e[0], { width: s } = t.contentRect;
3087
3267
  this.tableScope.recalcColumnWidths(s);
3088
3268
  }
3089
3269
  }
3090
- class St {
3270
+ class Ct {
3091
3271
  /**
3092
3272
  * Downloads a matrix data as an Excel file.
3093
3273
  *
@@ -3193,14 +3373,14 @@ class St {
3193
3373
  return this.createZip(s);
3194
3374
  }
3195
3375
  }
3196
- class _e extends lt {
3197
- constructor(e, t, s, o, i, r = new J(), n = new St()) {
3376
+ class He extends at {
3377
+ constructor(e, t, s, o, i, r = new J(), n = new Ct()) {
3198
3378
  var c;
3199
- if (super(e, t, new qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = V.getInstance(), this.selectionService = new ht(this), this.api = new et(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new re()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
3379
+ if (super(e, t, new Ze(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = V.getInstance(), this.selectionService = new ut(this), this.api = new tt(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new re()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
3200
3380
  const d = this.tableOptions.autoRestoreOptions, u = d.getStorageKeyFn;
3201
- u && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new tt(u)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ot(u)), d.autoRestoreSortingState && (this.storeSortingService = new it(u)));
3381
+ u && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new st(u)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new it(u)), d.autoRestoreSortingState && (this.storeSortingService = new rt(u)));
3202
3382
  }
3203
- this.mouseHandler = new Qe(this), this.inputHandler = new ct(this), this.resizeHandler = new wt(this, o.resizeEventDebounceDelay), this.shortcutService = new gt(this), this.shortcutService.addListener(this.selectionService);
3383
+ this.mouseHandler = new et(this), this.inputHandler = new dt(this), this.resizeHandler = new St(this, o.resizeEventDebounceDelay), this.shortcutService = new ft(this), this.shortcutService.addListener(this.selectionService);
3204
3384
  const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
3205
3385
  l && l.addEventSelectionChangedListener(this);
3206
3386
  const a = this.getFocusModel ? this.getFocusModel() : void 0;
@@ -3218,8 +3398,8 @@ class _e extends lt {
3218
3398
  *
3219
3399
  * @return {TableScope} - The newly created TableScope instance.
3220
3400
  */
3221
- static create(e, t, s = new X(), o = new re(), i = new ft(), r = new J()) {
3222
- return new _e(e, t, i, s, o, r);
3401
+ static create(e, t, s = new X(), o = new re(), i = new mt(), r = new J()) {
3402
+ return new He(e, t, i, s, o, r);
3223
3403
  }
3224
3404
  /**
3225
3405
  * Triggers an action based on the provided actionId.
@@ -3247,7 +3427,7 @@ class _e extends lt {
3247
3427
  return !1;
3248
3428
  }
3249
3429
  updateModelValueAfterEdit(e, t, s, o) {
3250
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(ue.createSingle(t, s)), this.hostElement.focus());
3430
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(pe.createSingle(t, s)), this.hostElement.focus());
3251
3431
  }
3252
3432
  /**
3253
3433
  * Retrieves the TableApi object.
@@ -3416,7 +3596,7 @@ class _e extends lt {
3416
3596
  const o = this.tableModel.getColumnDef(s);
3417
3597
  if (o != null && o.sortable && o.sortable()) {
3418
3598
  e.preventDefault(), e.stopPropagation();
3419
- const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", a = n[(n.indexOf(l) + 1) % n.length], c = new at(s, a);
3599
+ const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", a = n[(n.indexOf(l) + 1) % n.length], c = new ct(s, a);
3420
3600
  this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((u) => u.sortState = ""), o.sortState = a), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
3421
3601
  }
3422
3602
  }
@@ -3898,7 +4078,7 @@ class y {
3898
4078
  this.value = e, this.unit = t;
3899
4079
  }
3900
4080
  }
3901
- const Ct = () => !0, Se = () => !1;
4081
+ const vt = () => !0, Se = () => !1;
3902
4082
  class H {
3903
4083
  constructor(e, t, s = new y(100, "px"), o = new I(), i = new I(), r = new y(100, "px"), n = new y(100, "px"), l, a, c, d, u, f, p, m, g = () => this.visible) {
3904
4084
  this.property = e, this.headerLabel = t, this.width = s, this.classes = o, this.rendererMap = i, this.minWidth = r, this.maxWidth = n, this.sortable = l, this.sortComparator = a, this.sortState = c, this.sortStatesOrder = d, this.sortIconVisible = u, this.editable = f, this.getEditRenderer = p, this.editInputPipe = m, this.isVisible = g, this.visible = !0, s.unit !== "px" && (this.minWidth = new y(0, "px"), this.maxWidth = new y(1e5, "px"));
@@ -3919,7 +4099,7 @@ class H {
3919
4099
  e.headerClasses,
3920
4100
  e.bodyClasses,
3921
4101
  e.footerClasses
3922
- ), o = e.sortIconVisible ?? e.sortable ?? Se, i = e.editable ?? e.editable ?? Se, r = e.isVisible ?? e.isVisible ?? Ct;
4102
+ ), o = e.sortIconVisible ?? e.sortable ?? Se, i = e.editable ?? e.editable ?? Se, r = e.isVisible ?? e.isVisible ?? vt;
3923
4103
  return new H(
3924
4104
  e.property ?? "",
3925
4105
  e.headerLabel ?? "",
@@ -3940,104 +4120,8 @@ class H {
3940
4120
  );
3941
4121
  }
3942
4122
  }
3943
- const Nt = new y(500, "px"), Gt = new y(400, "px"), vt = new y(300, "px"), zt = new y(290, "px"), jt = new y(280, "px"), Ut = new y(270, "px"), Yt = new y(260, "px"), Kt = new y(250, "px"), Xt = new y(240, "px"), Jt = new y(230, "px"), qt = new y(220, "px"), Zt = new y(210, "px"), Ce = new y(200, "px"), Qt = new y(190, "px"), es = new y(180, "px"), ts = new y(170, "px"), ss = new y(160, "px"), os = new y(150, "px"), is = new y(140, "px"), rs = new y(130, "px"), ns = new y(120, "px"), ls = new y(110, "px"), as = new y(100, "px"), cs = new y(90, "px"), ds = new y(80, "px"), hs = new y(70, "px"), us = new y(60, "px"), ps = new y(50, "px"), gs = new y(40, "px"), fs = new y(30, "px"), ms = new y(20, "px"), bs = new y(10, "px"), ys = new y(0, "px");
3944
- class fe {
3945
- constructor(e, t = [], s = -1) {
3946
- this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
3947
- }
3948
- getTextValueAt(e, t) {
3949
- return "" + this.getValueAt(e, t);
3950
- }
3951
- getTooltipAt(e, t) {
3952
- return "";
3953
- }
3954
- getCellRenderer(e, t) {
3955
- if (t < this.cellRenderers.length)
3956
- return this.cellRenderers[t];
3957
- }
3958
- getColspanAt(e, t) {
3959
- return 0;
3960
- }
3961
- getCustomClassesAt(e, t) {
3962
- return [];
3963
- }
3964
- getCustomStyleAt(e, t) {
3965
- }
3966
- getRowspanAt(e, t) {
3967
- return 0;
3968
- }
3969
- getRowByIndex(e) {
3970
- }
3971
- isRowCheckable(e) {
3972
- return !0;
3973
- }
3974
- isRowChecked(e) {
3975
- var s;
3976
- const t = this.getRowByIndex(e);
3977
- return (s = this.rowSelectionModel) == null ? void 0 : s.isRowChecked(t);
3978
- }
3979
- setRowChecked(e, t) {
3980
- if (this.rowSelectionModel) {
3981
- const s = this.getRowByIndex(e);
3982
- this.rowSelectionModel.checkRow(s, t);
3983
- }
3984
- }
3985
- getMaxColspan() {
3986
- return 31;
3987
- }
3988
- getMaxRowspan() {
3989
- return 31;
3990
- }
3991
- getYPosByRowIndex(e) {
3992
- return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
3993
- }
3994
- init() {
3995
- !this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
3996
- }
3997
- isFilterable() {
3998
- return this.areaIdent === "body";
3999
- }
4000
- doSort(e) {
4001
- return !1;
4002
- }
4003
- isEditable(e, t) {
4004
- var o, i;
4005
- const s = (o = this.columnDefs) == null ? void 0 : o[t];
4006
- return ((i = s == null ? void 0 : s.editable) == null ? void 0 : i.call(s)) ?? !1;
4007
- }
4008
- setValue(e, t, s) {
4009
- var n;
4010
- const o = (n = this.columnDefs[t]) == null ? void 0 : n.editInputPipe;
4011
- o && (s = o(s, e, t));
4012
- const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
4013
- return r.includes(".") ? this.setPropertyValue(i, r.split("."), s) : (i[r] = s, !0);
4014
- }
4015
- isSelectable(e, t) {
4016
- return !0;
4017
- }
4018
- changeColumnOrder(e, t) {
4019
- this.arrayMove(this.cellRenderers, e, t);
4020
- }
4021
- setPropertyValue(e, t, s) {
4022
- const o = t.shift();
4023
- if (o) {
4024
- const i = e[o];
4025
- return i && t.length ? this.setPropertyValue(i, t, s) : (e[o] = s, !0);
4026
- }
4027
- return !1;
4028
- }
4029
- arrayMove(e, t, s) {
4030
- const o = e.splice(t, 1)[0];
4031
- return e.splice(s, 0, o), e;
4032
- }
4033
- calcYPositions() {
4034
- const e = this.getRowCount();
4035
- this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
4036
- for (let t = 0; t < e; t++)
4037
- this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
4038
- }
4039
- }
4040
- class P extends fe {
4123
+ const Nt = new y(500, "px"), Gt = new y(400, "px"), At = new y(300, "px"), zt = new y(290, "px"), jt = new y(280, "px"), Ut = new y(270, "px"), Yt = new y(260, "px"), Kt = new y(250, "px"), Xt = new y(240, "px"), Jt = new y(230, "px"), qt = new y(220, "px"), Zt = new y(210, "px"), Ce = new y(200, "px"), Qt = new y(190, "px"), es = new y(180, "px"), ts = new y(170, "px"), ss = new y(160, "px"), os = new y(150, "px"), is = new y(140, "px"), rs = new y(130, "px"), ns = new y(120, "px"), ls = new y(110, "px"), as = new y(100, "px"), cs = new y(90, "px"), ds = new y(80, "px"), hs = new y(70, "px"), us = new y(60, "px"), ps = new y(50, "px"), gs = new y(40, "px"), fs = new y(30, "px"), ms = new y(20, "px"), bs = new y(10, "px"), ys = new y(0, "px");
4124
+ class P extends he {
4041
4125
  constructor(e, t, s, o = []) {
4042
4126
  super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
4043
4127
  }
@@ -4137,7 +4221,7 @@ class F {
4137
4221
  changeColumnOrder(e, t) {
4138
4222
  }
4139
4223
  }
4140
- class At {
4224
+ class Rt {
4141
4225
  flattenTree(e, t = []) {
4142
4226
  var s;
4143
4227
  for (const o of e)
@@ -4148,27 +4232,9 @@ class At {
4148
4232
  return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
4149
4233
  }
4150
4234
  }
4151
- class Be {
4152
- genericSortComparator(e, t, s) {
4153
- if (typeof e == "number" && typeof t == "number")
4154
- return s * (e - t);
4155
- if (typeof e == "string" && typeof t == "string")
4156
- return s * e.localeCompare(t);
4157
- if (typeof e == "boolean" && typeof t == "boolean")
4158
- return s * ((e ? -1 : 1) - (t ? -1 : 1));
4159
- if (e instanceof Date && t instanceof Date)
4160
- return s * (e.getTime() - t.getTime());
4161
- if (e instanceof Array && t instanceof Array) {
4162
- const o = e, i = t;
4163
- if (o.length && i.length)
4164
- return this.genericSortComparator(o[0], i[0], s);
4165
- }
4166
- return s * ("" + e).localeCompare("" + t);
4167
- }
4168
- }
4169
- class ve extends fe {
4235
+ class ve extends he {
4170
4236
  constructor(e, t, s, o = []) {
4171
- super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new Be(), this.service = new At(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
4237
+ super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new _e(), this.service = new Rt(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
4172
4238
  }
4173
4239
  changeColumnOrder(e, t) {
4174
4240
  this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
@@ -4336,7 +4402,7 @@ class Re {
4336
4402
  this.top = e, this.right = t, this.bottom = s, this.left = o;
4337
4403
  }
4338
4404
  }
4339
- class Rt {
4405
+ class Et {
4340
4406
  constructor() {
4341
4407
  this.checkedRows = [];
4342
4408
  }
@@ -4371,7 +4437,7 @@ class se {
4371
4437
  constructor(e, t, s, o = 0, i = 0, r = !1, n = new G(), l = [], a = [], c = -1, d = 0, u = 400, f = () => {
4372
4438
  }) {
4373
4439
  var p, m, g, b;
4374
- this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = s, this.fixedLeftColumnCount = o, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = n, this.columnDefs = l, this.columnSizes = a, this.overridingColumnWidth = c, this.columnCount = d, this.parentSize = u, this.getSelectionModel = f, 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", s.areaIdent = "footer", this.columnCount || ((p = this.columnDefs) != null && p.length ? this.columnCount = this.columnDefs.length : (m = this.columnSizes) != null && m.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (b = this.columnDefs) != null && b.length && Je(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Rt());
4440
+ this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = s, this.fixedLeftColumnCount = o, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = n, this.columnDefs = l, this.columnSizes = a, this.overridingColumnWidth = c, this.columnCount = d, this.parentSize = u, this.getSelectionModel = f, 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", s.areaIdent = "footer", this.columnCount || ((p = this.columnDefs) != null && p.length ? this.columnCount = this.columnDefs.length : (m = this.columnSizes) != null && m.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (b = this.columnDefs) != null && b.length && qe(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Et());
4375
4441
  }
4376
4442
  init() {
4377
4443
  this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
@@ -4757,66 +4823,7 @@ class se {
4757
4823
  return this.tableScope;
4758
4824
  }
4759
4825
  }
4760
- class Et extends fe {
4761
- constructor(e, t, s, o = []) {
4762
- super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new Be(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
4763
- }
4764
- setRows(e) {
4765
- this.rows = e, this.filteredRows = [...e];
4766
- }
4767
- filterRowsByPredict(e) {
4768
- this.rows = this.rows.filter(e), this.filteredRows = this.filteredRows.filter(e);
4769
- }
4770
- getRowCount() {
4771
- var e;
4772
- return ((e = this.filteredRows) == null ? void 0 : e.length) ?? 0;
4773
- }
4774
- getValueAt(e, t) {
4775
- const s = this.properties[t];
4776
- let o = this.filteredRows[e];
4777
- return N(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
4778
- }
4779
- getFilteredRows() {
4780
- return this.filteredRows;
4781
- }
4782
- getAllRows() {
4783
- return this.rows;
4784
- }
4785
- getRowHeight(e) {
4786
- return this.defaultRowHeight;
4787
- }
4788
- getRowByIndex(e) {
4789
- return this.filteredRows[e];
4790
- }
4791
- externalFilterChanged(e) {
4792
- this.filteredRows = this.rows ? this.rows.filter(e) : [];
4793
- }
4794
- doSort(e) {
4795
- for (const t of e) {
4796
- const { columnIndex: s, sortState: o } = t, i = o === "asc" ? 1 : o === "desc" ? -1 : 0, r = this.properties[s];
4797
- this.filteredRows = this.filteredRows.sort(this.genericFlatTableSortComparator(r, i));
4798
- }
4799
- return !0;
4800
- }
4801
- getValueByT(e, t) {
4802
- return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
4803
- }
4804
- changeColumnOrder(e, t) {
4805
- this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
4806
- }
4807
- genericFlatTableSortComparator(e, t) {
4808
- const s = this.columnDefs.find((o) => o.property === e);
4809
- return (o, i) => {
4810
- const r = this.getValueByT(o, e), n = this.getValueByT(i, e);
4811
- return s != null && s.sortComparator ? t * s.sortComparator(r, n, o, i, t) : this.sorterService.genericSortComparator(r, n, t);
4812
- };
4813
- }
4814
- getPropertyValue(e, t) {
4815
- const s = t.shift(), o = e[s];
4816
- return o && t.length ? this.getPropertyValue(o, t) : o;
4817
- }
4818
- }
4819
- class Ee extends Et {
4826
+ class Ee extends Be {
4820
4827
  constructor(e, t, s, o) {
4821
4828
  super(
4822
4829
  e,
@@ -5642,7 +5649,7 @@ class Fs {
5642
5649
  }
5643
5650
  }
5644
5651
  const Z = class Z {
5645
- constructor(e = new ge()) {
5652
+ constructor(e = new fe()) {
5646
5653
  this.headerGroupOptions = e;
5647
5654
  }
5648
5655
  render(e, t, s, o, i, r, n) {
@@ -5683,7 +5690,7 @@ const Z = class Z {
5683
5690
  Z.toggleHeaderGroup = "toggleHeaderGroup";
5684
5691
  let le = Z;
5685
5692
  class Ls {
5686
- constructor(e = "header", t, s = [], o, i = new ge()) {
5693
+ constructor(e = "header", t, s = [], o, i = new fe()) {
5687
5694
  this.areaIdent = e, this.groups = t, this.columnDefs = s, this.defaultRowHeight = o, this.headerGroupOptions = i, this.gammaCells = !0, this.arr = [], this.groupExts = [], this.cellGroupExtCellRenderer = new le(this.headerGroupOptions), this.groupExts = T.buildGroupExts(t), this.init();
5688
5695
  }
5689
5696
  init() {
@@ -6039,7 +6046,7 @@ class Xs {
6039
6046
  }
6040
6047
  }
6041
6048
  }
6042
- class He {
6049
+ class Ve {
6043
6050
  constructor(e, t, s, o, i, r) {
6044
6051
  this.action = e, this.area = t, this.areaModel = s, this.rowIndex = o, this.columnIndex = i, this.id = r;
6045
6052
  }
@@ -6106,7 +6113,7 @@ class Pt {
6106
6113
  const s = e.getAttribute("data-area"), o = e.getAttribute("data-row-index"), i = e.getAttribute("data-col-index"), r = e.getAttribute("data-action") ?? "unknown", n = e.getAttribute("data-id") ?? "unknown";
6107
6114
  if (s && o && i) {
6108
6115
  const l = Q(s), a = Number(o), c = Number(i);
6109
- return new He(r, l, t, a, c, n);
6116
+ return new Ve(r, l, t, a, c, n);
6110
6117
  }
6111
6118
  return null;
6112
6119
  }
@@ -6117,12 +6124,12 @@ class Pt {
6117
6124
  const Js = function(h, e, t) {
6118
6125
  return h ? Number(h) : "";
6119
6126
  };
6120
- class Ve {
6127
+ class We {
6121
6128
  constructor(e) {
6122
6129
  this.options = e;
6123
6130
  }
6124
6131
  static create(e) {
6125
- return new Ve(
6132
+ return new We(
6126
6133
  e.map((t) => new It(t, t))
6127
6134
  );
6128
6135
  }
@@ -6149,7 +6156,7 @@ class Ve {
6149
6156
  }
6150
6157
  }
6151
6158
  }
6152
- class qs extends pe {
6159
+ class qs extends ge {
6153
6160
  constructor(e) {
6154
6161
  super("row", "multi"), this.model = e;
6155
6162
  }
@@ -6474,7 +6481,7 @@ class eo {
6474
6481
  this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
6475
6482
  var r, n, l, a;
6476
6483
  if (t.rows = i, i != null && i.length) {
6477
- const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((x) => x.property) : this.extractProperties(i[0]), d = new pe("row", "multi"), u = () => d;
6484
+ const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((x) => x.property) : this.extractProperties(i[0]), d = new ge("row", "multi"), u = () => d;
6478
6485
  this.tableOptions = {
6479
6486
  ...new X(),
6480
6487
  ...t.tableOptions,
@@ -6491,7 +6498,7 @@ class eo {
6491
6498
  let x = new H(
6492
6499
  "id",
6493
6500
  "Actions",
6494
- vt,
6501
+ At,
6495
6502
  new I(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
6496
6503
  );
6497
6504
  x.rendererMap = new I(
@@ -6515,7 +6522,7 @@ class eo {
6515
6522
  }
6516
6523
  openDialogForCreate() {
6517
6524
  if (this.bodyModel) {
6518
- const e = new He("CREATE", "body", this.bodyModel, -1, -1, null);
6525
+ const e = new Ve("CREATE", "body", this.bodyModel, -1, -1, null);
6519
6526
  this.onActionEvent(e);
6520
6527
  }
6521
6528
  }
@@ -6610,8 +6617,8 @@ class to {
6610
6617
  }
6611
6618
  }
6612
6619
  export {
6613
- fe as AbstractAreaModel,
6614
- He as ActionEvent,
6620
+ he as AbstractAreaModel,
6621
+ Ve as ActionEvent,
6615
6622
  Pt as ActionsCellRenderer,
6616
6623
  Fe as AnyPropertyType,
6617
6624
  Is as AreaMapFactory,
@@ -6619,14 +6626,14 @@ export {
6619
6626
  P as AreaModelArrayOfArrays,
6620
6627
  Ls as AreaModelCellGroups,
6621
6628
  F as AreaModelHidden,
6622
- Et as AreaModelObjectArray,
6629
+ Be as AreaModelObjectArray,
6623
6630
  Ee as AreaModelObjectArrayWithColumndefs,
6624
6631
  ve as AreaModelTree,
6625
6632
  I as AreaObjectMap,
6626
6633
  B as ArrayPropertyType,
6627
6634
  Ps as AutoRestoreOptions,
6628
6635
  _t as AvoidDoubleExecution,
6629
- je as BooleanPropertyType,
6636
+ Ue as BooleanPropertyType,
6630
6637
  kt as CellGroup,
6631
6638
  Dt as CellGroupExt,
6632
6639
  le as CellGroupExtCellRenderer,
@@ -6635,15 +6642,15 @@ export {
6635
6642
  _s as CheckboxBooleanPropertyCellRenderer,
6636
6643
  Me as CheckboxCellRenderer,
6637
6644
  Ts as CheckboxColumnDef,
6638
- Rt as CheckboxModel,
6645
+ Et as CheckboxModel,
6639
6646
  ws as ChunkData,
6640
- nt as ColAndRowspanModel,
6641
- st as CollapsedExpandedData,
6647
+ lt as ColAndRowspanModel,
6648
+ ot as CollapsedExpandedData,
6642
6649
  Zs as ColorRgb,
6643
6650
  H as ColumnDef,
6644
6651
  Bt as ColumnDefGenerator,
6645
6652
  Ft as ColumnWidths,
6646
- qe as ConvenienceDomService,
6653
+ Ze as ConvenienceDomService,
6647
6654
  J as CopyService,
6648
6655
  $ as CrudAction,
6649
6656
  oe as CrudObjectEdit,
@@ -6656,35 +6663,35 @@ export {
6656
6663
  Vs as DateToLocaleDateCellRenderer,
6657
6664
  zs as DateToTecCellRenderer,
6658
6665
  G as DefaultRowHeights,
6659
- rt as EleScope,
6666
+ nt as EleScope,
6660
6667
  re as EventAdapter,
6661
6668
  Wt as EventCheckboxChangedHandler,
6662
- St as ExcelService,
6669
+ Ct as ExcelService,
6663
6670
  Se as FalseFn,
6664
- bt as FocusModel,
6665
- dt as GeCellIndices,
6671
+ yt as FocusModel,
6672
+ ht as GeCellIndices,
6666
6673
  Y as GeCssColorUtil,
6667
6674
  Os as GeFilterService,
6668
6675
  ks as GeKeyEvent,
6669
- ue as GeModelChangeEvent,
6676
+ pe as GeModelChangeEvent,
6670
6677
  de as GeMouseEvent,
6671
6678
  L as GeoData,
6672
6679
  O as Icon,
6673
6680
  Ss as IndexAndPx,
6674
- mt as InputCellRenderer,
6675
- ct as InputHandler,
6681
+ bt as InputCellRenderer,
6682
+ dt as InputHandler,
6676
6683
  be as JsonService,
6677
6684
  V as LicenseManager,
6678
6685
  Ws as MaleFemaleToIconCellRenderer,
6679
- Qe as MouseHandler,
6680
- Ze as MouseTargetData,
6686
+ et as MouseHandler,
6687
+ Qe as MouseTargetData,
6681
6688
  qs as MultiRowsSelectionModel,
6682
- Ne as NullPropertyType,
6689
+ Ge as NullPropertyType,
6683
6690
  Ns as NumberCellProgressBarCellRenderer,
6684
6691
  js as NumberCellRenderer,
6685
- ze as NumberPropertyType,
6692
+ je as NumberPropertyType,
6686
6693
  D as ObjectPropertyType,
6687
- pt as OsxShortcutActionIdMapping,
6694
+ gt as OsxShortcutActionIdMapping,
6688
6695
  Ie as PROPERTY_TYPE_KEY_ANY,
6689
6696
  Pe as PROPERTY_TYPE_KEY_ARRAY,
6690
6697
  ce as PROPERTY_TYPE_KEY_BOOLEAN,
@@ -6698,47 +6705,47 @@ export {
6698
6705
  Ks as ProgressBarCellRenderer,
6699
6706
  Le as PropertyItem,
6700
6707
  Ht as PropertyTypeService,
6701
- lt as RenderScope,
6708
+ at as RenderScope,
6702
6709
  $s as Renderer,
6703
6710
  Tt as RequestChunk,
6704
- wt as ResizeHandler,
6711
+ St as ResizeHandler,
6705
6712
  Vt as SchemeGenerator,
6706
- Ve as SelectCellRenderer,
6707
- pe as SelectionModel,
6708
- ht as SelectionService,
6709
- gt as ShortcutService,
6713
+ We as SelectCellRenderer,
6714
+ ge as SelectionModel,
6715
+ ut as SelectionService,
6716
+ ft as ShortcutService,
6710
6717
  Ys as SimpleArrayCellRenderer,
6711
- ft as SimpleDomService,
6718
+ mt as SimpleDomService,
6712
6719
  y as Size,
6713
- at as SortItem,
6720
+ ct as SortItem,
6714
6721
  $e as SortedOptions,
6715
6722
  Us as StarRatingCellRenderer,
6716
- ot as StoreStateCollapsedExpandService,
6717
- tt as StoreStateScrollPosService,
6718
- it as StoreStateSortingService,
6719
- Ge as StringPropertyType,
6720
- et as TableApi,
6723
+ it as StoreStateCollapsedExpandService,
6724
+ st as StoreStateScrollPosService,
6725
+ rt as StoreStateSortingService,
6726
+ ze as StringPropertyType,
6727
+ tt as TableApi,
6721
6728
  Ds as TableCellUpdateEvent,
6722
6729
  _ as TableFactory,
6723
6730
  se as TableModel,
6724
6731
  Mt as TableModelAndOptions,
6725
6732
  X as TableOptions,
6726
- _e as TableScope,
6733
+ He as TableScope,
6727
6734
  Qs as ThreeColorGradientArg,
6728
6735
  Ae as TreeCheckboxModel,
6729
6736
  ne as TreeFactory,
6730
6737
  Oe as TreeOptions,
6731
6738
  we as TreeRow,
6732
- At as TreeRowService,
6739
+ Rt as TreeRowService,
6733
6740
  Gs as TrueFalseCellRenderer,
6734
- Ct as TrueFn,
6741
+ vt as TrueFn,
6735
6742
  Te as TwoColorGradientArg,
6736
6743
  K as UNIMPORTANT_TYPES,
6737
6744
  te as UndefinedPropertyType,
6738
6745
  to as UrlInfo,
6739
- Ue as ValueInfo,
6746
+ Ye as ValueInfo,
6740
6747
  It as ValueLabel,
6741
- ut as WindowsShortcutActionIdMapping,
6748
+ pt as WindowsShortcutActionIdMapping,
6742
6749
  xs as actionIds,
6743
6750
  Es as allCenter,
6744
6751
  Rs as allLeft,
@@ -6746,14 +6753,14 @@ export {
6746
6753
  vs as bodyCenter,
6747
6754
  Cs as bodyLeft,
6748
6755
  As as bodyRight,
6749
- We as debounce,
6756
+ Ne as debounce,
6750
6757
  Js as editInputPipeForNumber,
6751
6758
  ye as entitySuffix,
6752
- Xe as firstLetterUppercase,
6759
+ Je as firstLetterUppercase,
6753
6760
  Q as getAreaIdentByString,
6754
- Ye as getEntityName,
6761
+ Ke as getEntityName,
6755
6762
  ie as isAreaModelTree,
6756
- Je as isCheckboxColumnDef,
6763
+ qe as isCheckboxColumnDef,
6757
6764
  N as isTreeRow,
6758
6765
  ys as px0,
6759
6766
  bs as px10,
@@ -6779,7 +6786,7 @@ export {
6779
6786
  jt as px280,
6780
6787
  zt as px290,
6781
6788
  fs as px30,
6782
- vt as px300,
6789
+ At as px300,
6783
6790
  gs as px40,
6784
6791
  Gt as px400,
6785
6792
  ps as px50,
@@ -6789,5 +6796,5 @@ export {
6789
6796
  ds as px80,
6790
6797
  cs as px90,
6791
6798
  $t as throttle,
6792
- Ke as trimArraySuffixes
6799
+ Xe as trimArraySuffixes
6793
6800
  };