@guiexpert/table 1.1.57 → 1.1.59

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,8 +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
+ }
1488
+ reSort() {
1489
+ this.tableScope.reSort();
1490
+ }
1308
1491
  }
1309
- class he {
1492
+ class ue {
1310
1493
  constructor(e) {
1311
1494
  this.getStorageKeyFn = e;
1312
1495
  }
@@ -1373,7 +1556,7 @@ class he {
1373
1556
  // }
1374
1557
  // }
1375
1558
  }
1376
- class tt extends he {
1559
+ class st extends ue {
1377
1560
  constructor(e) {
1378
1561
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
1379
1562
  }
@@ -1395,14 +1578,14 @@ class tt extends he {
1395
1578
  }
1396
1579
  }
1397
1580
  }
1398
- class st {
1581
+ class ot {
1399
1582
  constructor(e = "collapsed", t = [], s = !1, o = !1) {
1400
1583
  this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
1401
1584
  }
1402
1585
  }
1403
- class ot extends he {
1586
+ class it extends ue {
1404
1587
  constructor(e) {
1405
- 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();
1406
1589
  }
1407
1590
  collapsedExpandedStateGet() {
1408
1591
  return this.collapsedExpandedState;
@@ -1434,7 +1617,7 @@ class ot extends he {
1434
1617
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
1435
1618
  }
1436
1619
  }
1437
- class it extends he {
1620
+ class rt extends ue {
1438
1621
  constructor(e) {
1439
1622
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
1440
1623
  }
@@ -1460,7 +1643,7 @@ class L {
1460
1643
  this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
1461
1644
  }
1462
1645
  }
1463
- class rt {
1646
+ class nt {
1464
1647
  constructor(e, t, s, o) {
1465
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();
1466
1649
  const i = this.hostElement;
@@ -1666,7 +1849,7 @@ class R {
1666
1849
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
1667
1850
  }
1668
1851
  }
1669
- class nt {
1852
+ class lt {
1670
1853
  constructor(e, t) {
1671
1854
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
1672
1855
  }
@@ -1704,7 +1887,7 @@ class I {
1704
1887
  this.header = e, this.body = t, this.footer = s;
1705
1888
  }
1706
1889
  }
1707
- class lt extends rt {
1890
+ class at extends nt {
1708
1891
  constructor(e, t, s, o) {
1709
1892
  var r, n;
1710
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 = {
@@ -1714,7 +1897,7 @@ class lt extends rt {
1714
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(
1715
1898
  (l) => {
1716
1899
  var a;
1717
- 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();
1718
1901
  }
1719
1902
  );
1720
1903
  }
@@ -2583,12 +2766,12 @@ class lt extends rt {
2583
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);
2584
2767
  }
2585
2768
  }
2586
- class at {
2769
+ class ct {
2587
2770
  constructor(e, t) {
2588
2771
  this.columnIndex = e, this.sortState = t;
2589
2772
  }
2590
2773
  }
2591
- class ct {
2774
+ class dt {
2592
2775
  constructor(e) {
2593
2776
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
2594
2777
  }
@@ -2610,20 +2793,20 @@ class ct {
2610
2793
  }
2611
2794
  }
2612
2795
  }
2613
- class dt {
2796
+ class ht {
2614
2797
  constructor(e = -1, t = -1) {
2615
2798
  this.rowIndex = e, this.columnIndex = t;
2616
2799
  }
2617
2800
  }
2618
- class ue {
2801
+ class pe {
2619
2802
  constructor(e) {
2620
2803
  this.cells = e;
2621
2804
  }
2622
2805
  static createSingle(e, t) {
2623
- return new ue([new dt(e, t)]);
2806
+ return new pe([new ht(e, t)]);
2624
2807
  }
2625
2808
  }
2626
- class ht {
2809
+ class ut {
2627
2810
  constructor(e) {
2628
2811
  var t, s;
2629
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);
@@ -2664,7 +2847,7 @@ class ht {
2664
2847
  });
2665
2848
  }
2666
2849
  }
2667
- class ut {
2850
+ class pt {
2668
2851
  get() {
2669
2852
  return {
2670
2853
  f2: "START_EDITING",
@@ -2684,7 +2867,7 @@ class ut {
2684
2867
  };
2685
2868
  }
2686
2869
  }
2687
- class pt {
2870
+ class gt {
2688
2871
  get() {
2689
2872
  return {
2690
2873
  f2: "START_EDITING",
@@ -2706,7 +2889,7 @@ class pt {
2706
2889
  };
2707
2890
  }
2708
2891
  }
2709
- class gt {
2892
+ class ft {
2710
2893
  constructor(e) {
2711
2894
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
2712
2895
  }
@@ -2727,7 +2910,7 @@ class gt {
2727
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));
2728
2911
  }
2729
2912
  assignPredefinedSystemShortcutMappings() {
2730
- 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());
2731
2914
  }
2732
2915
  isMacintosh() {
2733
2916
  return navigator.platform.indexOf("Mac") > -1;
@@ -2799,7 +2982,7 @@ class re {
2799
2982
  onFocusChanged(e) {
2800
2983
  }
2801
2984
  }
2802
- class ft {
2985
+ class mt {
2803
2986
  setStyle(e, t, s) {
2804
2987
  return e.style[t] = s, e;
2805
2988
  }
@@ -2826,7 +3009,7 @@ class ft {
2826
3009
  e.setAttribute(t, s);
2827
3010
  }
2828
3011
  }
2829
- class mt {
3012
+ class bt {
2830
3013
  render(e, t, s, o, i, r, n) {
2831
3014
  if (i.isEditable(t, s)) {
2832
3015
  n.addClass(e, "ge-table-row-input-div");
@@ -2847,7 +3030,7 @@ class mt {
2847
3030
  }
2848
3031
  }
2849
3032
  }
2850
- class pe {
3033
+ class ge {
2851
3034
  constructor(e = "none", t = "single") {
2852
3035
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
2853
3036
  }
@@ -2929,7 +3112,7 @@ class pe {
2929
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());
2930
3113
  }
2931
3114
  }
2932
- class bt {
3115
+ class yt {
2933
3116
  constructor(e = "none") {
2934
3117
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2935
3118
  }
@@ -2966,7 +3149,7 @@ class bt {
2966
3149
  return [this.rowIndex, this.columnIndex];
2967
3150
  }
2968
3151
  }
2969
- class ge {
3152
+ class fe {
2970
3153
  constructor(e = new O(
2971
3154
  "❯",
2972
3155
  "",
@@ -2980,14 +3163,14 @@ class ge {
2980
3163
  }
2981
3164
  // `⊖ `, `⊕ `;
2982
3165
  }
2983
- const yt = new pe(), xt = new bt("cell");
3166
+ const xt = new ge(), wt = new yt("cell");
2984
3167
  class X {
2985
3168
  constructor() {
2986
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 = {
2987
3170
  header: 34,
2988
3171
  body: 34,
2989
3172
  footer: 34
2990
- }, 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;
2991
3174
  }
2992
3175
  }
2993
3176
  const W = class W {
@@ -3075,16 +3258,16 @@ const W = class W {
3075
3258
  W.columnSeparatorChar = " ", W.rowSeparatorChar = `
3076
3259
  `;
3077
3260
  let J = W;
3078
- class wt {
3261
+ class St {
3079
3262
  constructor(e, t = 500) {
3080
- 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);
3081
3264
  }
3082
3265
  handleResize(e) {
3083
3266
  const t = e[0], { width: s } = t.contentRect;
3084
3267
  this.tableScope.recalcColumnWidths(s);
3085
3268
  }
3086
3269
  }
3087
- class St {
3270
+ class Ct {
3088
3271
  /**
3089
3272
  * Downloads a matrix data as an Excel file.
3090
3273
  *
@@ -3190,14 +3373,14 @@ class St {
3190
3373
  return this.createZip(s);
3191
3374
  }
3192
3375
  }
3193
- class _e extends lt {
3194
- 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()) {
3195
3378
  var c;
3196
- 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) {
3197
3380
  const d = this.tableOptions.autoRestoreOptions, u = d.getStorageKeyFn;
3198
- 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)));
3199
3382
  }
3200
- 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);
3201
3384
  const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
3202
3385
  l && l.addEventSelectionChangedListener(this);
3203
3386
  const a = this.getFocusModel ? this.getFocusModel() : void 0;
@@ -3215,8 +3398,8 @@ class _e extends lt {
3215
3398
  *
3216
3399
  * @return {TableScope} - The newly created TableScope instance.
3217
3400
  */
3218
- static create(e, t, s = new X(), o = new re(), i = new ft(), r = new J()) {
3219
- 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);
3220
3403
  }
3221
3404
  /**
3222
3405
  * Triggers an action based on the provided actionId.
@@ -3244,7 +3427,7 @@ class _e extends lt {
3244
3427
  return !1;
3245
3428
  }
3246
3429
  updateModelValueAfterEdit(e, t, s, o) {
3247
- 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());
3248
3431
  }
3249
3432
  /**
3250
3433
  * Retrieves the TableApi object.
@@ -3413,7 +3596,7 @@ class _e extends lt {
3413
3596
  const o = this.tableModel.getColumnDef(s);
3414
3597
  if (o != null && o.sortable && o.sortable()) {
3415
3598
  e.preventDefault(), e.stopPropagation();
3416
- 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);
3417
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]);
3418
3601
  }
3419
3602
  }
@@ -3604,6 +3787,11 @@ class _e extends lt {
3604
3787
  recalcWrappers() {
3605
3788
  this.tableModel.recalcPadding(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows();
3606
3789
  }
3790
+ reSort() {
3791
+ var t;
3792
+ let e = ((t = this.storeSortingService) == null ? void 0 : t.getSortItems()) ?? [];
3793
+ this.tableModel.doSort(e);
3794
+ }
3607
3795
  }
3608
3796
  class Wt extends re {
3609
3797
  constructor(e) {
@@ -3890,7 +4078,7 @@ class y {
3890
4078
  this.value = e, this.unit = t;
3891
4079
  }
3892
4080
  }
3893
- const Ct = () => !0, Se = () => !1;
4081
+ const vt = () => !0, Se = () => !1;
3894
4082
  class H {
3895
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) {
3896
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"));
@@ -3911,7 +4099,7 @@ class H {
3911
4099
  e.headerClasses,
3912
4100
  e.bodyClasses,
3913
4101
  e.footerClasses
3914
- ), 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;
3915
4103
  return new H(
3916
4104
  e.property ?? "",
3917
4105
  e.headerLabel ?? "",
@@ -3932,104 +4120,8 @@ class H {
3932
4120
  );
3933
4121
  }
3934
4122
  }
3935
- 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");
3936
- class fe {
3937
- constructor(e, t = [], s = -1) {
3938
- this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
3939
- }
3940
- getTextValueAt(e, t) {
3941
- return "" + this.getValueAt(e, t);
3942
- }
3943
- getTooltipAt(e, t) {
3944
- return "";
3945
- }
3946
- getCellRenderer(e, t) {
3947
- if (t < this.cellRenderers.length)
3948
- return this.cellRenderers[t];
3949
- }
3950
- getColspanAt(e, t) {
3951
- return 0;
3952
- }
3953
- getCustomClassesAt(e, t) {
3954
- return [];
3955
- }
3956
- getCustomStyleAt(e, t) {
3957
- }
3958
- getRowspanAt(e, t) {
3959
- return 0;
3960
- }
3961
- getRowByIndex(e) {
3962
- }
3963
- isRowCheckable(e) {
3964
- return !0;
3965
- }
3966
- isRowChecked(e) {
3967
- var s;
3968
- const t = this.getRowByIndex(e);
3969
- return (s = this.rowSelectionModel) == null ? void 0 : s.isRowChecked(t);
3970
- }
3971
- setRowChecked(e, t) {
3972
- if (this.rowSelectionModel) {
3973
- const s = this.getRowByIndex(e);
3974
- this.rowSelectionModel.checkRow(s, t);
3975
- }
3976
- }
3977
- getMaxColspan() {
3978
- return 31;
3979
- }
3980
- getMaxRowspan() {
3981
- return 31;
3982
- }
3983
- getYPosByRowIndex(e) {
3984
- return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
3985
- }
3986
- init() {
3987
- !this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
3988
- }
3989
- isFilterable() {
3990
- return this.areaIdent === "body";
3991
- }
3992
- doSort(e) {
3993
- return !1;
3994
- }
3995
- isEditable(e, t) {
3996
- var o, i;
3997
- const s = (o = this.columnDefs) == null ? void 0 : o[t];
3998
- return ((i = s == null ? void 0 : s.editable) == null ? void 0 : i.call(s)) ?? !1;
3999
- }
4000
- setValue(e, t, s) {
4001
- var n;
4002
- const o = (n = this.columnDefs[t]) == null ? void 0 : n.editInputPipe;
4003
- o && (s = o(s, e, t));
4004
- const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
4005
- return r.includes(".") ? this.setPropertyValue(i, r.split("."), s) : (i[r] = s, !0);
4006
- }
4007
- isSelectable(e, t) {
4008
- return !0;
4009
- }
4010
- changeColumnOrder(e, t) {
4011
- this.arrayMove(this.cellRenderers, e, t);
4012
- }
4013
- setPropertyValue(e, t, s) {
4014
- const o = t.shift();
4015
- if (o) {
4016
- const i = e[o];
4017
- return i && t.length ? this.setPropertyValue(i, t, s) : (e[o] = s, !0);
4018
- }
4019
- return !1;
4020
- }
4021
- arrayMove(e, t, s) {
4022
- const o = e.splice(t, 1)[0];
4023
- return e.splice(s, 0, o), e;
4024
- }
4025
- calcYPositions() {
4026
- const e = this.getRowCount();
4027
- this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
4028
- for (let t = 0; t < e; t++)
4029
- this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
4030
- }
4031
- }
4032
- 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 {
4033
4125
  constructor(e, t, s, o = []) {
4034
4126
  super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
4035
4127
  }
@@ -4129,7 +4221,7 @@ class F {
4129
4221
  changeColumnOrder(e, t) {
4130
4222
  }
4131
4223
  }
4132
- class At {
4224
+ class Rt {
4133
4225
  flattenTree(e, t = []) {
4134
4226
  var s;
4135
4227
  for (const o of e)
@@ -4140,27 +4232,9 @@ class At {
4140
4232
  return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
4141
4233
  }
4142
4234
  }
4143
- class Be {
4144
- genericSortComparator(e, t, s) {
4145
- if (typeof e == "number" && typeof t == "number")
4146
- return s * (e - t);
4147
- if (typeof e == "string" && typeof t == "string")
4148
- return s * e.localeCompare(t);
4149
- if (typeof e == "boolean" && typeof t == "boolean")
4150
- return s * ((e ? -1 : 1) - (t ? -1 : 1));
4151
- if (e instanceof Date && t instanceof Date)
4152
- return s * (e.getTime() - t.getTime());
4153
- if (e instanceof Array && t instanceof Array) {
4154
- const o = e, i = t;
4155
- if (o.length && i.length)
4156
- return this.genericSortComparator(o[0], i[0], s);
4157
- }
4158
- return s * ("" + e).localeCompare("" + t);
4159
- }
4160
- }
4161
- class ve extends fe {
4235
+ class ve extends he {
4162
4236
  constructor(e, t, s, o = []) {
4163
- 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];
4164
4238
  }
4165
4239
  changeColumnOrder(e, t) {
4166
4240
  this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
@@ -4328,7 +4402,7 @@ class Re {
4328
4402
  this.top = e, this.right = t, this.bottom = s, this.left = o;
4329
4403
  }
4330
4404
  }
4331
- class Rt {
4405
+ class Et {
4332
4406
  constructor() {
4333
4407
  this.checkedRows = [];
4334
4408
  }
@@ -4363,7 +4437,7 @@ class se {
4363
4437
  constructor(e, t, s, o = 0, i = 0, r = !1, n = new G(), l = [], a = [], c = -1, d = 0, u = 400, f = () => {
4364
4438
  }) {
4365
4439
  var p, m, g, b;
4366
- 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());
4367
4441
  }
4368
4442
  init() {
4369
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();
@@ -4749,66 +4823,7 @@ class se {
4749
4823
  return this.tableScope;
4750
4824
  }
4751
4825
  }
4752
- class Et extends fe {
4753
- constructor(e, t, s, o = []) {
4754
- 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);
4755
- }
4756
- setRows(e) {
4757
- this.rows = e, this.filteredRows = [...e];
4758
- }
4759
- filterRowsByPredict(e) {
4760
- this.rows = this.rows.filter(e), this.filteredRows = this.filteredRows.filter(e);
4761
- }
4762
- getRowCount() {
4763
- var e;
4764
- return ((e = this.filteredRows) == null ? void 0 : e.length) ?? 0;
4765
- }
4766
- getValueAt(e, t) {
4767
- const s = this.properties[t];
4768
- let o = this.filteredRows[e];
4769
- return N(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
4770
- }
4771
- getFilteredRows() {
4772
- return this.filteredRows;
4773
- }
4774
- getAllRows() {
4775
- return this.rows;
4776
- }
4777
- getRowHeight(e) {
4778
- return this.defaultRowHeight;
4779
- }
4780
- getRowByIndex(e) {
4781
- return this.filteredRows[e];
4782
- }
4783
- externalFilterChanged(e) {
4784
- this.filteredRows = this.rows ? this.rows.filter(e) : [];
4785
- }
4786
- doSort(e) {
4787
- for (const t of e) {
4788
- const { columnIndex: s, sortState: o } = t, i = o === "asc" ? 1 : o === "desc" ? -1 : 0, r = this.properties[s];
4789
- this.filteredRows = this.filteredRows.sort(this.genericFlatTableSortComparator(r, i));
4790
- }
4791
- return !0;
4792
- }
4793
- getValueByT(e, t) {
4794
- return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
4795
- }
4796
- changeColumnOrder(e, t) {
4797
- this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
4798
- }
4799
- genericFlatTableSortComparator(e, t) {
4800
- const s = this.columnDefs.find((o) => o.property === e);
4801
- return (o, i) => {
4802
- const r = this.getValueByT(o, e), n = this.getValueByT(i, e);
4803
- return s != null && s.sortComparator ? t * s.sortComparator(r, n, o, i, t) : this.sorterService.genericSortComparator(r, n, t);
4804
- };
4805
- }
4806
- getPropertyValue(e, t) {
4807
- const s = t.shift(), o = e[s];
4808
- return o && t.length ? this.getPropertyValue(o, t) : o;
4809
- }
4810
- }
4811
- class Ee extends Et {
4826
+ class Ee extends Be {
4812
4827
  constructor(e, t, s, o) {
4813
4828
  super(
4814
4829
  e,
@@ -5634,7 +5649,7 @@ class Fs {
5634
5649
  }
5635
5650
  }
5636
5651
  const Z = class Z {
5637
- constructor(e = new ge()) {
5652
+ constructor(e = new fe()) {
5638
5653
  this.headerGroupOptions = e;
5639
5654
  }
5640
5655
  render(e, t, s, o, i, r, n) {
@@ -5675,7 +5690,7 @@ const Z = class Z {
5675
5690
  Z.toggleHeaderGroup = "toggleHeaderGroup";
5676
5691
  let le = Z;
5677
5692
  class Ls {
5678
- constructor(e = "header", t, s = [], o, i = new ge()) {
5693
+ constructor(e = "header", t, s = [], o, i = new fe()) {
5679
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();
5680
5695
  }
5681
5696
  init() {
@@ -6031,7 +6046,7 @@ class Xs {
6031
6046
  }
6032
6047
  }
6033
6048
  }
6034
- class He {
6049
+ class Ve {
6035
6050
  constructor(e, t, s, o, i, r) {
6036
6051
  this.action = e, this.area = t, this.areaModel = s, this.rowIndex = o, this.columnIndex = i, this.id = r;
6037
6052
  }
@@ -6098,7 +6113,7 @@ class Pt {
6098
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";
6099
6114
  if (s && o && i) {
6100
6115
  const l = Q(s), a = Number(o), c = Number(i);
6101
- return new He(r, l, t, a, c, n);
6116
+ return new Ve(r, l, t, a, c, n);
6102
6117
  }
6103
6118
  return null;
6104
6119
  }
@@ -6109,12 +6124,12 @@ class Pt {
6109
6124
  const Js = function(h, e, t) {
6110
6125
  return h ? Number(h) : "";
6111
6126
  };
6112
- class Ve {
6127
+ class We {
6113
6128
  constructor(e) {
6114
6129
  this.options = e;
6115
6130
  }
6116
6131
  static create(e) {
6117
- return new Ve(
6132
+ return new We(
6118
6133
  e.map((t) => new It(t, t))
6119
6134
  );
6120
6135
  }
@@ -6141,7 +6156,7 @@ class Ve {
6141
6156
  }
6142
6157
  }
6143
6158
  }
6144
- class qs extends pe {
6159
+ class qs extends ge {
6145
6160
  constructor(e) {
6146
6161
  super("row", "multi"), this.model = e;
6147
6162
  }
@@ -6466,7 +6481,7 @@ class eo {
6466
6481
  this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
6467
6482
  var r, n, l, a;
6468
6483
  if (t.rows = i, i != null && i.length) {
6469
- 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;
6470
6485
  this.tableOptions = {
6471
6486
  ...new X(),
6472
6487
  ...t.tableOptions,
@@ -6483,7 +6498,7 @@ class eo {
6483
6498
  let x = new H(
6484
6499
  "id",
6485
6500
  "Actions",
6486
- vt,
6501
+ At,
6487
6502
  new I(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
6488
6503
  );
6489
6504
  x.rendererMap = new I(
@@ -6507,7 +6522,7 @@ class eo {
6507
6522
  }
6508
6523
  openDialogForCreate() {
6509
6524
  if (this.bodyModel) {
6510
- const e = new He("CREATE", "body", this.bodyModel, -1, -1, null);
6525
+ const e = new Ve("CREATE", "body", this.bodyModel, -1, -1, null);
6511
6526
  this.onActionEvent(e);
6512
6527
  }
6513
6528
  }
@@ -6602,8 +6617,8 @@ class to {
6602
6617
  }
6603
6618
  }
6604
6619
  export {
6605
- fe as AbstractAreaModel,
6606
- He as ActionEvent,
6620
+ he as AbstractAreaModel,
6621
+ Ve as ActionEvent,
6607
6622
  Pt as ActionsCellRenderer,
6608
6623
  Fe as AnyPropertyType,
6609
6624
  Is as AreaMapFactory,
@@ -6611,14 +6626,14 @@ export {
6611
6626
  P as AreaModelArrayOfArrays,
6612
6627
  Ls as AreaModelCellGroups,
6613
6628
  F as AreaModelHidden,
6614
- Et as AreaModelObjectArray,
6629
+ Be as AreaModelObjectArray,
6615
6630
  Ee as AreaModelObjectArrayWithColumndefs,
6616
6631
  ve as AreaModelTree,
6617
6632
  I as AreaObjectMap,
6618
6633
  B as ArrayPropertyType,
6619
6634
  Ps as AutoRestoreOptions,
6620
6635
  _t as AvoidDoubleExecution,
6621
- je as BooleanPropertyType,
6636
+ Ue as BooleanPropertyType,
6622
6637
  kt as CellGroup,
6623
6638
  Dt as CellGroupExt,
6624
6639
  le as CellGroupExtCellRenderer,
@@ -6627,15 +6642,15 @@ export {
6627
6642
  _s as CheckboxBooleanPropertyCellRenderer,
6628
6643
  Me as CheckboxCellRenderer,
6629
6644
  Ts as CheckboxColumnDef,
6630
- Rt as CheckboxModel,
6645
+ Et as CheckboxModel,
6631
6646
  ws as ChunkData,
6632
- nt as ColAndRowspanModel,
6633
- st as CollapsedExpandedData,
6647
+ lt as ColAndRowspanModel,
6648
+ ot as CollapsedExpandedData,
6634
6649
  Zs as ColorRgb,
6635
6650
  H as ColumnDef,
6636
6651
  Bt as ColumnDefGenerator,
6637
6652
  Ft as ColumnWidths,
6638
- qe as ConvenienceDomService,
6653
+ Ze as ConvenienceDomService,
6639
6654
  J as CopyService,
6640
6655
  $ as CrudAction,
6641
6656
  oe as CrudObjectEdit,
@@ -6648,35 +6663,35 @@ export {
6648
6663
  Vs as DateToLocaleDateCellRenderer,
6649
6664
  zs as DateToTecCellRenderer,
6650
6665
  G as DefaultRowHeights,
6651
- rt as EleScope,
6666
+ nt as EleScope,
6652
6667
  re as EventAdapter,
6653
6668
  Wt as EventCheckboxChangedHandler,
6654
- St as ExcelService,
6669
+ Ct as ExcelService,
6655
6670
  Se as FalseFn,
6656
- bt as FocusModel,
6657
- dt as GeCellIndices,
6671
+ yt as FocusModel,
6672
+ ht as GeCellIndices,
6658
6673
  Y as GeCssColorUtil,
6659
6674
  Os as GeFilterService,
6660
6675
  ks as GeKeyEvent,
6661
- ue as GeModelChangeEvent,
6676
+ pe as GeModelChangeEvent,
6662
6677
  de as GeMouseEvent,
6663
6678
  L as GeoData,
6664
6679
  O as Icon,
6665
6680
  Ss as IndexAndPx,
6666
- mt as InputCellRenderer,
6667
- ct as InputHandler,
6681
+ bt as InputCellRenderer,
6682
+ dt as InputHandler,
6668
6683
  be as JsonService,
6669
6684
  V as LicenseManager,
6670
6685
  Ws as MaleFemaleToIconCellRenderer,
6671
- Qe as MouseHandler,
6672
- Ze as MouseTargetData,
6686
+ et as MouseHandler,
6687
+ Qe as MouseTargetData,
6673
6688
  qs as MultiRowsSelectionModel,
6674
- Ne as NullPropertyType,
6689
+ Ge as NullPropertyType,
6675
6690
  Ns as NumberCellProgressBarCellRenderer,
6676
6691
  js as NumberCellRenderer,
6677
- ze as NumberPropertyType,
6692
+ je as NumberPropertyType,
6678
6693
  D as ObjectPropertyType,
6679
- pt as OsxShortcutActionIdMapping,
6694
+ gt as OsxShortcutActionIdMapping,
6680
6695
  Ie as PROPERTY_TYPE_KEY_ANY,
6681
6696
  Pe as PROPERTY_TYPE_KEY_ARRAY,
6682
6697
  ce as PROPERTY_TYPE_KEY_BOOLEAN,
@@ -6690,47 +6705,47 @@ export {
6690
6705
  Ks as ProgressBarCellRenderer,
6691
6706
  Le as PropertyItem,
6692
6707
  Ht as PropertyTypeService,
6693
- lt as RenderScope,
6708
+ at as RenderScope,
6694
6709
  $s as Renderer,
6695
6710
  Tt as RequestChunk,
6696
- wt as ResizeHandler,
6711
+ St as ResizeHandler,
6697
6712
  Vt as SchemeGenerator,
6698
- Ve as SelectCellRenderer,
6699
- pe as SelectionModel,
6700
- ht as SelectionService,
6701
- gt as ShortcutService,
6713
+ We as SelectCellRenderer,
6714
+ ge as SelectionModel,
6715
+ ut as SelectionService,
6716
+ ft as ShortcutService,
6702
6717
  Ys as SimpleArrayCellRenderer,
6703
- ft as SimpleDomService,
6718
+ mt as SimpleDomService,
6704
6719
  y as Size,
6705
- at as SortItem,
6720
+ ct as SortItem,
6706
6721
  $e as SortedOptions,
6707
6722
  Us as StarRatingCellRenderer,
6708
- ot as StoreStateCollapsedExpandService,
6709
- tt as StoreStateScrollPosService,
6710
- it as StoreStateSortingService,
6711
- Ge as StringPropertyType,
6712
- et as TableApi,
6723
+ it as StoreStateCollapsedExpandService,
6724
+ st as StoreStateScrollPosService,
6725
+ rt as StoreStateSortingService,
6726
+ ze as StringPropertyType,
6727
+ tt as TableApi,
6713
6728
  Ds as TableCellUpdateEvent,
6714
6729
  _ as TableFactory,
6715
6730
  se as TableModel,
6716
6731
  Mt as TableModelAndOptions,
6717
6732
  X as TableOptions,
6718
- _e as TableScope,
6733
+ He as TableScope,
6719
6734
  Qs as ThreeColorGradientArg,
6720
6735
  Ae as TreeCheckboxModel,
6721
6736
  ne as TreeFactory,
6722
6737
  Oe as TreeOptions,
6723
6738
  we as TreeRow,
6724
- At as TreeRowService,
6739
+ Rt as TreeRowService,
6725
6740
  Gs as TrueFalseCellRenderer,
6726
- Ct as TrueFn,
6741
+ vt as TrueFn,
6727
6742
  Te as TwoColorGradientArg,
6728
6743
  K as UNIMPORTANT_TYPES,
6729
6744
  te as UndefinedPropertyType,
6730
6745
  to as UrlInfo,
6731
- Ue as ValueInfo,
6746
+ Ye as ValueInfo,
6732
6747
  It as ValueLabel,
6733
- ut as WindowsShortcutActionIdMapping,
6748
+ pt as WindowsShortcutActionIdMapping,
6734
6749
  xs as actionIds,
6735
6750
  Es as allCenter,
6736
6751
  Rs as allLeft,
@@ -6738,14 +6753,14 @@ export {
6738
6753
  vs as bodyCenter,
6739
6754
  Cs as bodyLeft,
6740
6755
  As as bodyRight,
6741
- We as debounce,
6756
+ Ne as debounce,
6742
6757
  Js as editInputPipeForNumber,
6743
6758
  ye as entitySuffix,
6744
- Xe as firstLetterUppercase,
6759
+ Je as firstLetterUppercase,
6745
6760
  Q as getAreaIdentByString,
6746
- Ye as getEntityName,
6761
+ Ke as getEntityName,
6747
6762
  ie as isAreaModelTree,
6748
- Je as isCheckboxColumnDef,
6763
+ qe as isCheckboxColumnDef,
6749
6764
  N as isTreeRow,
6750
6765
  ys as px0,
6751
6766
  bs as px10,
@@ -6771,7 +6786,7 @@ export {
6771
6786
  jt as px280,
6772
6787
  zt as px290,
6773
6788
  fs as px30,
6774
- vt as px300,
6789
+ At as px300,
6775
6790
  gs as px40,
6776
6791
  Gt as px400,
6777
6792
  ps as px50,
@@ -6781,5 +6796,5 @@ export {
6781
6796
  ds as px80,
6782
6797
  cs as px90,
6783
6798
  $t as throttle,
6784
- Ke as trimArraySuffixes
6799
+ Xe as trimArraySuffixes
6785
6800
  };