@guiexpert/table 1.1.62 → 1.1.63

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
@@ -1194,8 +1194,8 @@ class Be {
1194
1194
  }
1195
1195
  }
1196
1196
  class He 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.focusedRowIndex = 0, this.sorterService = new Be(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
1197
+ constructor(e, t, s, o = [], i = "ge-selected-row", r = "ge-focused-row") {
1198
+ super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.focusedRowIndex = 0, this.sorterService = new Be(), this.filteredRows = [...t], this.properties = o.map((n) => n.property);
1199
1199
  }
1200
1200
  setRows(e) {
1201
1201
  this.rows = e, this.filteredRows = [...e];
@@ -1203,6 +1203,9 @@ class He extends he {
1203
1203
  filterRowsByPredict(e) {
1204
1204
  this.rows = this.rows.filter(e), this.filteredRows = this.filteredRows.filter(e);
1205
1205
  }
1206
+ /**
1207
+ * return row count of filtered rows
1208
+ */
1206
1209
  getRowCount() {
1207
1210
  var e;
1208
1211
  return ((e = this.filteredRows) == null ? void 0 : e.length) ?? 0;
@@ -1248,7 +1251,7 @@ class He extends he {
1248
1251
  }
1249
1252
  getCustomClassesAt(e, t) {
1250
1253
  const s = super.getCustomClassesAt(e, t);
1251
- return this.getRowByIndex(e).selected && s.push("ge-selected-row"), this.focusedRowIndex === e && s.push("ge-focused-row"), s;
1254
+ return this.getRowByIndex(e).selected && s.push(this.selectedRowClass), this.focusedRowIndex === e && s.push(this.focusedRowClass), s;
1252
1255
  }
1253
1256
  genericFlatTableSortComparator(e, t) {
1254
1257
  const s = this.columnDefs.find((o) => o.property === e);
@@ -1498,6 +1501,9 @@ class st {
1498
1501
  reSort() {
1499
1502
  this.tableScope.reSort();
1500
1503
  }
1504
+ getDisplayedRowCount() {
1505
+ return this.tableScope.getDisplayedRowCount();
1506
+ }
1501
1507
  }
1502
1508
  class ue {
1503
1509
  constructor(e) {
@@ -1824,7 +1830,7 @@ class lt {
1824
1830
  this.dom.setStyle(this.contentWrapperDiv, "width", e), this.dom.setStyle(this.contentWrapperDiv, "height", t);
1825
1831
  }
1826
1832
  }
1827
- class R {
1833
+ class A {
1828
1834
  /**
1829
1835
  * Represents a constructor for a class.
1830
1836
  * @constructor
@@ -1838,7 +1844,7 @@ class R {
1838
1844
  this.r1 = e, this.c1 = t, this.r2 = s, this.c2 = o, this.gammaRange = i;
1839
1845
  }
1840
1846
  static create(e) {
1841
- return e.gammaRange === void 0 && (e.gammaRange = !1), new R(
1847
+ return e.gammaRange === void 0 && (e.gammaRange = !1), new A(
1842
1848
  e.rowIndex1,
1843
1849
  e.columnIndex1,
1844
1850
  e.rowIndex2,
@@ -1847,13 +1853,13 @@ class R {
1847
1853
  );
1848
1854
  }
1849
1855
  static singleCell(e, t) {
1850
- return new R(e, t, e, t);
1856
+ return new A(e, t, e, t);
1851
1857
  }
1852
1858
  static singleRow(e) {
1853
- return new R(e, 0, e, Number.MAX_SAFE_INTEGER);
1859
+ return new A(e, 0, e, Number.MAX_SAFE_INTEGER);
1854
1860
  }
1855
1861
  static singleColumn(e) {
1856
- return new R(0, e, Number.MAX_SAFE_INTEGER, e);
1862
+ return new A(0, e, Number.MAX_SAFE_INTEGER, e);
1857
1863
  }
1858
1864
  isInRange(e, t) {
1859
1865
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
@@ -1875,7 +1881,7 @@ class at {
1875
1881
  i === 0 && (i = 1), r === 0 && (r = 1);
1876
1882
  const n = "gammaCells" in this.areaModel;
1877
1883
  this.colAndRowspanRanges.push(
1878
- new R(s, o, s + r - 1, o + i - 1, n)
1884
+ new A(s, o, s + r - 1, o + i - 1, n)
1879
1885
  );
1880
1886
  }
1881
1887
  }
@@ -1904,7 +1910,7 @@ class ct extends lt {
1904
1910
  header: [],
1905
1911
  body: [],
1906
1912
  footer: []
1907
- }, 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(
1913
+ }, this.tree = !1, this.colAndRowspanModels = new I(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.displayedRowCount = 0, 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(
1908
1914
  (l) => {
1909
1915
  var a;
1910
1916
  this.colAndRowspanModels[l] = new at(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
@@ -2169,39 +2175,39 @@ class ct extends lt {
2169
2175
  let u = t;
2170
2176
  const f = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), m = this.tableModel.getFixedLeftColumnCount();
2171
2177
  for (let b = 0; b < h; b++) {
2172
- const x = u, S = b === h - 1, A = this.tableModel.getRowHeight(e, b);
2173
- if (x + A > 0) {
2178
+ const w = u, S = b === h - 1, R = this.tableModel.getRowHeight(e, b);
2179
+ if (w + R > 0) {
2174
2180
  this.firstVisibleRowIndex = b;
2175
- let C = { left: n, width: l, height: A, top: x, index: b }, w = this.dom.addRowDiv(o, C, b, e, "center");
2181
+ let C = { left: n, width: l, height: R, top: w, index: b }, x = this.dom.addRowDiv(o, C, b, e, "center");
2176
2182
  const k = m;
2177
2183
  if (this.adjustColumnsToRowParent({
2178
2184
  areaIdent: e,
2179
2185
  sideIdent: "center",
2180
2186
  areaModel: c,
2181
2187
  geo: C,
2182
- parent: w,
2188
+ parent: x,
2183
2189
  rowIndex: b,
2184
2190
  columnIndexStart: k,
2185
2191
  columnIndexEnd: f - p - 1,
2186
2192
  verticalFixed: !1,
2187
2193
  lastRowOfModel: S
2188
- }), a.left > 0 && (C = { left: n, width: this.areaBodyWestGeo.width, height: A, top: x, index: b }, w = this.dom.addRowDiv(s, C, b, e, "west"), this.adjustColumnsToRowParent({
2194
+ }), a.left > 0 && (C = { left: n, width: this.areaBodyWestGeo.width, height: R, top: w, index: b }, x = this.dom.addRowDiv(s, C, b, e, "west"), this.adjustColumnsToRowParent({
2189
2195
  areaIdent: e,
2190
2196
  sideIdent: "west",
2191
2197
  areaModel: c,
2192
2198
  geo: C,
2193
- parent: w,
2199
+ parent: x,
2194
2200
  rowIndex: b,
2195
2201
  columnIndexStart: 0,
2196
2202
  columnIndexEnd: k - 1,
2197
2203
  verticalFixed: !0,
2198
2204
  lastRowOfModel: S
2199
- })), a.right > 0 && (C = { left: n, width: this.areaBodyEastGeo.width, height: A, top: x, index: b }, w = this.dom.addRowDiv(i, C, b, e, "east"), this.adjustColumnsToRowParent({
2205
+ })), a.right > 0 && (C = { left: n, width: this.areaBodyEastGeo.width, height: R, top: w, index: b }, x = this.dom.addRowDiv(i, C, b, e, "east"), this.adjustColumnsToRowParent({
2200
2206
  areaIdent: e,
2201
2207
  sideIdent: "east",
2202
2208
  areaModel: c,
2203
2209
  geo: C,
2204
- parent: w,
2210
+ parent: x,
2205
2211
  rowIndex: b,
2206
2212
  columnIndexStart: f - p,
2207
2213
  columnIndexEnd: f - 1,
@@ -2210,7 +2216,7 @@ class ct extends lt {
2210
2216
  })), e === "header" && this.tree && b === h - 1) {
2211
2217
  const E = this.dom.applyStyle(
2212
2218
  this.dom.setAttribute(
2213
- this.dom.addDiv(w, new L(16, 20, 20, 8)),
2219
+ this.dom.addDiv(x, new L(16, 20, 20, 8)),
2214
2220
  "data-ge-action",
2215
2221
  "toggleExpandCollapseAll"
2216
2222
  ),
@@ -2222,23 +2228,25 @@ class ct extends lt {
2222
2228
  }
2223
2229
  }
2224
2230
  }
2225
- if (u = u + A, u > r)
2231
+ if (u = u + R, u > r) {
2232
+ e === "body" && (this.displayedRowCount = this.firstVisibleRowIndex - b);
2226
2233
  break;
2234
+ }
2227
2235
  }
2228
2236
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
2229
2237
  const b = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
2230
2238
  if (b.length)
2231
- for (const x of b) {
2232
- let S = 0, A = o.child, C = "center";
2233
- if (x.c1 < m)
2234
- A = s.child, C = "west";
2235
- else if (p > 0 && x.c1 >= f - p)
2236
- A = i.child, C = "east";
2239
+ for (const w of b) {
2240
+ let S = 0, R = o.child, C = "center";
2241
+ if (w.c1 < m)
2242
+ R = s.child, C = "west";
2243
+ else if (p > 0 && w.c1 >= f - p)
2244
+ R = i.child, C = "east";
2237
2245
  else {
2238
- const w = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
2239
- S = this.scrollFactorX * w - this.areaBodyWestGeo.width, C = "center";
2246
+ const x = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
2247
+ S = this.scrollFactorX * x - this.areaBodyWestGeo.width, C = "center";
2240
2248
  }
2241
- this.drawBigCell(x, S, t, c, A, C);
2249
+ this.drawBigCell(w, S, t, c, R, C);
2242
2250
  }
2243
2251
  }
2244
2252
  }
@@ -2346,20 +2354,20 @@ class ct extends lt {
2346
2354
  const u = 0, f = !!(e === "body" && t);
2347
2355
  let p = h;
2348
2356
  for (let g = n; g <= l; g++) {
2349
- const b = p, x = this.tableModel.getColumnWidth(g);
2350
- if (x > 0 && b + x > 0) {
2357
+ const b = p, w = this.tableModel.getColumnWidth(g);
2358
+ if (w > 0 && b + w > 0) {
2351
2359
  let S = o.height;
2352
- const A = s.getRowspanAt(r, g), C = s.getColspanAt(r, g);
2353
- A > 1 && (S = this.getRowHeights(r, r + A - 1, s).reduce((E, M) => E + M, 0));
2354
- let w = x;
2355
- C > 1 && (w = this.getColumnWidths(g, g + C - 1).reduce((E, M) => E + M, 0));
2360
+ const R = s.getRowspanAt(r, g), C = s.getColspanAt(r, g);
2361
+ R > 1 && (S = this.getRowHeights(r, r + R - 1, s).reduce((E, M) => E + M, 0));
2362
+ let x = w;
2363
+ C > 1 && (x = this.getColumnWidths(g, g + C - 1).reduce((E, M) => E + M, 0));
2356
2364
  let k = !1;
2357
2365
  if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r, g) && (k = !0), this.draggingTargetColumnIndex === g && e !== "header") {
2358
- this.renderDragTargetDiv(i, b, u, w, S);
2359
- const E = { left: b, top: u, width: w, height: S };
2366
+ this.renderDragTargetDiv(i, b, u, x, S);
2367
+ const E = { left: b, top: u, width: x, height: S };
2360
2368
  this.dom.addColumnBorderDivs(this.tableOptions, i, E, e, t);
2361
2369
  } else {
2362
- const E = this.renderSelectedBackgroundDiv(k, f, t, s, r, g, i, b, u, w, S);
2370
+ const E = this.renderSelectedBackgroundDiv(k, f, t, s, r, g, i, b, u, x, S);
2363
2371
  "gammaCells" in s && s.getValueAt(r, g) && (k = !1), k || this.renderCell({
2364
2372
  areaModel: s,
2365
2373
  areaIdent: e,
@@ -2368,7 +2376,7 @@ class ct extends lt {
2368
2376
  columnIndex: g,
2369
2377
  left: b,
2370
2378
  top: u,
2371
- width: w,
2379
+ width: x,
2372
2380
  height: S,
2373
2381
  parent: i,
2374
2382
  cellSelected: E,
@@ -2379,13 +2387,13 @@ class ct extends lt {
2379
2387
  columnIndex: g,
2380
2388
  cellLeft: b,
2381
2389
  cellTop: u,
2382
- cellWidth: w,
2390
+ cellWidth: x,
2383
2391
  cellHeight: S,
2384
2392
  parent: i
2385
2393
  });
2386
2394
  }
2387
2395
  }
2388
- if (p = p + x, p > this.areaBodyCenterGeo.width)
2396
+ if (p = p + w, p > this.areaBodyCenterGeo.width)
2389
2397
  break;
2390
2398
  }
2391
2399
  this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new L(p - 1, 1, o.height, 0), i);
@@ -2422,12 +2430,12 @@ class ct extends lt {
2422
2430
  const v = m;
2423
2431
  (me = v.children) != null && me.length ? v.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
2424
2432
  }
2425
- let x;
2433
+ let w;
2426
2434
  if (t === "header") {
2427
2435
  const v = this.tableModel.getColumnDef(i);
2428
- (!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (x = v == null ? void 0 : v.sortState);
2436
+ (!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (w = v == null ? void 0 : v.sortState);
2429
2437
  }
2430
- const S = e.getValueAt(o, i), A = f ? "" : `${S}`, C = e.isRowChecked(o), w = this.dom.addColumnDiv(
2438
+ const S = e.getValueAt(o, i), R = f ? "" : `${S}`, C = e.isRowChecked(o), x = this.dom.addColumnDiv(
2431
2439
  {
2432
2440
  parent: c,
2433
2441
  geo: p,
@@ -2435,29 +2443,29 @@ class ct extends lt {
2435
2443
  columnIndex: i,
2436
2444
  areaIdent: t,
2437
2445
  sideIdent: s,
2438
- text: A,
2446
+ text: R,
2439
2447
  treeArrow: g,
2440
2448
  tableOptions: this.tableOptions,
2441
2449
  checkedType: C,
2442
- sortState: x
2450
+ sortState: w
2443
2451
  }
2444
2452
  ), k = e.getTooltipAt(o, i);
2445
- k && this.dom.setAttribute(w, "title", k);
2453
+ k && this.dom.setAttribute(x, "title", k);
2446
2454
  const E = this.tableModel.getColumnDef(i);
2447
- E && E.classes[t] && this.dom.addClasses(E.classes[t], w);
2455
+ E && E.classes[t] && this.dom.addClasses(E.classes[t], x);
2448
2456
  let M;
2449
- f && (M = f.render(w, o, i, t, e, S, this.dom.domService));
2457
+ f && (M = f.render(x, o, i, t, e, S, this.dom.domService));
2450
2458
  const U = e.getCustomClassesAt(o, i);
2451
- if (U.length && this.dom.addClasses(U, w), this.dom.addColumnBorderDivs(this.tableOptions, c, p, t, s), h && this.dom.addHorizontalBorder({ left: r, width: n, height: l, top: a + l }, c), this.getFocusModel && t === "body") {
2459
+ if (U.length && this.dom.addClasses(U, x), this.dom.addColumnBorderDivs(this.tableOptions, c, p, t, s), h && this.dom.addHorizontalBorder({ left: r, width: n, height: l, top: a + l }, c), this.getFocusModel && t === "body") {
2452
2460
  const v = this.getFocusModel();
2453
2461
  v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
2454
2462
  }
2455
- t === "header" && this.dom.setAttribute(w, "data-ge-action", "drag-column");
2463
+ t === "header" && this.dom.setAttribute(x, "data-ge-action", "drag-column");
2456
2464
  const ee = e.getCustomStyleAt(o, i);
2457
2465
  if (ee)
2458
2466
  for (const v in ee)
2459
- this.dom.setStyle(w, v, ee[v]);
2460
- return [w, M];
2467
+ this.dom.setStyle(x, v, ee[v]);
2468
+ return [x, M];
2461
2469
  }
2462
2470
  /**
2463
2471
  * Applies CSS classes to an HTML element.
@@ -2632,16 +2640,16 @@ class ct extends lt {
2632
2640
  sideIdent: o,
2633
2641
  text: m
2634
2642
  }, b = this.dom.addColumnDiv(g);
2635
- let x;
2636
- p && (x = p.render(b, a, n, t, i, f, this.dom.domService), x && this.cleanupFunctions[t].push(x));
2643
+ let w;
2644
+ p && (w = p.render(b, a, n, t, i, f, this.dom.domService), w && this.cleanupFunctions[t].push(w));
2637
2645
  const S = i.getCustomClassesAt(a, n);
2638
2646
  S.length && this.dom.addClasses(S, b);
2639
- const A = this.tableModel.getColumnDef(n);
2640
- A && A.classes[t] && this.dom.addClasses(A.classes[t], b), this.dom.addColumnBorderDivs(this.tableOptions, l, u, t, o);
2647
+ const R = this.tableModel.getColumnDef(n);
2648
+ R && R.classes[t] && this.dom.addClasses(R.classes[t], b), this.dom.addColumnBorderDivs(this.tableOptions, l, u, t, o);
2641
2649
  const C = i.getCustomStyleAt(a, n);
2642
2650
  if (C)
2643
- for (const w in C)
2644
- this.dom.setStyle(b, w, C[w]);
2651
+ for (const x in C)
2652
+ this.dom.setStyle(b, x, C[x]);
2645
2653
  s = s + h;
2646
2654
  }
2647
2655
  }
@@ -2826,7 +2834,7 @@ class pt {
2826
2834
  let s = !1, o = !1;
2827
2835
  if (this.getSelectionModel && this.getFocusModel) {
2828
2836
  const u = this.getSelectionModel(), f = this.getFocusModel();
2829
- u && f && (f.hasFocus(e.rowIndex, e.columnIndex) || (f.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(f), s = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (n = e.originalEvent) != null && n.altKey && ((l = e.originalEvent) != null && l.ctrlKey || (a = e.originalEvent) != null && a.metaKey) ? (u.removeSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (u.addSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (u.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(u));
2837
+ u && f && (f.hasFocus(e.rowIndex, e.columnIndex) || (f.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(f), s = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (n = e.originalEvent) != null && n.altKey && ((l = e.originalEvent) != null && l.ctrlKey || (a = e.originalEvent) != null && a.metaKey) ? (u.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (u.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (u.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(u));
2830
2838
  }
2831
2839
  return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
2832
2840
  }
@@ -2849,7 +2857,7 @@ class pt {
2849
2857
  createRangeByEvents(e, t) {
2850
2858
  t || (t = e);
2851
2859
  const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
2852
- return R.create({
2860
+ return A.create({
2853
2861
  rowIndex1: s,
2854
2862
  columnIndex1: i,
2855
2863
  rowIndex2: o,
@@ -2905,7 +2913,7 @@ function mt(d) {
2905
2913
  return o !== i ? o - i : e.localeCompare(t);
2906
2914
  }).join(" ");
2907
2915
  }
2908
- function xe(d) {
2916
+ function we(d) {
2909
2917
  let e = d.key.toLowerCase();
2910
2918
  if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" && d.code === "Delete" && (e = "delete"), e === "backspace" && (e = "backspace"), e === "escape" && (e = "esc"), e === "return" && (e = "enter"), d.code.startsWith("Numpad")) {
2911
2919
  const s = d.code.replace("Numpad", "").toLowerCase();
@@ -2960,10 +2968,10 @@ class bt {
2960
2968
  return t;
2961
2969
  }
2962
2970
  findEntity(e) {
2963
- const t = xe(e);
2971
+ const t = we(e);
2964
2972
  this.isDebug() && console.debug("ShortcutService shortcut :", t);
2965
2973
  for (const s in this.shortcutActionIdMapping)
2966
- if (xe(e) === t)
2974
+ if (we(e) === t)
2967
2975
  return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
2968
2976
  }
2969
2977
  // private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
@@ -3057,7 +3065,7 @@ class yt {
3057
3065
  e.setAttribute(t, s);
3058
3066
  }
3059
3067
  }
3060
- class xt {
3068
+ class wt {
3061
3069
  render(e, t, s, o, i, r, n) {
3062
3070
  if (i.isEditable(t, s)) {
3063
3071
  n.addClass(e, "ge-table-row-input-div");
@@ -3097,7 +3105,7 @@ class ge {
3097
3105
  this.silent || this.listenerArr.forEach((e) => e.onSelectionChanged(this));
3098
3106
  }
3099
3107
  firstClick(e, t) {
3100
- this.selectionType === "row" ? this.addRange(R.singleRow(e)) : this.selectionType === "column" && this.addRange(R.singleColumn(t));
3108
+ this.selectionType === "row" ? this.addRange(A.singleRow(e)) : this.selectionType === "column" && this.addRange(A.singleColumn(t));
3101
3109
  }
3102
3110
  getSelectionCount(e, t) {
3103
3111
  let s = 0;
@@ -3148,10 +3156,10 @@ class ge {
3148
3156
  if (this.selectionType === "none")
3149
3157
  return;
3150
3158
  let t = e;
3151
- this.selectionType === "row" ? t = R.singleRow(e.r1) : this.selectionType === "column" && (t = R.singleColumn(e.c1)), this.negativeRanges.push(t), this.fireChangeEvent();
3159
+ this.selectionType === "row" ? t = A.singleRow(e.r1) : this.selectionType === "column" && (t = A.singleColumn(e.c1)), this.negativeRanges.push(t), this.fireChangeEvent();
3152
3160
  }
3153
3161
  togglePoint(e, t) {
3154
- this.getSelectionCount(e, t) > 0 ? this.removeSelection(R.singleCell(e, t)) : this.addSelection(R.singleCell(e, t));
3162
+ this.getSelectionCount(e, t) > 0 ? this.removeSelection(A.singleCell(e, t)) : this.addSelection(A.singleCell(e, t));
3155
3163
  }
3156
3164
  isSelected(e, t) {
3157
3165
  return this.getSelectionCount(e, t) > 0;
@@ -3160,7 +3168,7 @@ class ge {
3160
3168
  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());
3161
3169
  }
3162
3170
  }
3163
- class wt {
3171
+ class xt {
3164
3172
  constructor(e = "none") {
3165
3173
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
3166
3174
  }
@@ -3211,14 +3219,14 @@ class fe {
3211
3219
  }
3212
3220
  // `⊖ `, `⊕ `;
3213
3221
  }
3214
- const St = new ge(), Ct = new wt("cell");
3222
+ const St = new ge(), Ct = new xt("cell");
3215
3223
  class X {
3216
3224
  constructor() {
3217
3225
  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 = {
3218
3226
  header: 34,
3219
3227
  body: 34,
3220
3228
  footer: 34
3221
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new $e(), this.headerGroupOptions = new fe(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new _e(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new xt(), this.getSelectionModel = () => St, this.getFocusModel = () => Ct;
3229
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new $e(), this.headerGroupOptions = new fe(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new _e(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new wt(), this.getSelectionModel = () => St, this.getFocusModel = () => Ct;
3222
3230
  }
3223
3231
  }
3224
3232
  const W = class W {
@@ -3299,7 +3307,7 @@ const W = class W {
3299
3307
  mergeRanges(e) {
3300
3308
  let t;
3301
3309
  for (const s of e)
3302
- t ? (t.r1 = Math.min(t.r1, s.r1), t.c1 = Math.min(t.c1, s.c1), t.r2 = Math.max(t.r2, s.r2), t.c2 = Math.max(t.c2, s.c2)) : t = new R(s.r1, s.c1, s.r2, s.c2);
3310
+ t ? (t.r1 = Math.min(t.r1, s.r1), t.c1 = Math.min(t.c1, s.c1), t.r2 = Math.max(t.r2, s.r2), t.c2 = Math.max(t.c2, s.c2)) : t = new A(s.r1, s.c1, s.r2, s.c2);
3303
3311
  return t;
3304
3312
  }
3305
3313
  };
@@ -3315,7 +3323,7 @@ class vt {
3315
3323
  this.tableScope.recalcColumnWidths(s);
3316
3324
  }
3317
3325
  }
3318
- class At {
3326
+ class Rt {
3319
3327
  /**
3320
3328
  * Downloads a matrix data as an Excel file.
3321
3329
  *
@@ -3422,7 +3430,7 @@ class At {
3422
3430
  }
3423
3431
  }
3424
3432
  class Ve extends ct {
3425
- constructor(e, t, s, o, i, r = new J(), n = new At()) {
3433
+ constructor(e, t, s, o, i, r = new J(), n = new Rt()) {
3426
3434
  var c;
3427
3435
  if (super(e, t, new Qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = V.getInstance(), this.selectionService = new pt(this), this.api = new st(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), i || (this.eventListener = new re()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
3428
3436
  const h = this.tableOptions.autoRestoreOptions, u = h.getStorageKeyFn;
@@ -3846,6 +3854,9 @@ class Ve extends ct {
3846
3854
  let e = ((t = this.storeSortingService) == null ? void 0 : t.getSortItems()) ?? [];
3847
3855
  this.tableModel.doSort(e);
3848
3856
  }
3857
+ getDisplayedRowCount() {
3858
+ return this.displayedRowCount;
3859
+ }
3849
3860
  }
3850
3861
  class Gt extends re {
3851
3862
  constructor(e) {
@@ -4090,7 +4101,7 @@ q.themes = ["light", "combat", "paper", "blackboard"], q.vars = {
4090
4101
  --ge-table-drop-zone-bg: #758129;
4091
4102
  }`
4092
4103
  };
4093
- let we = q;
4104
+ let xe = q;
4094
4105
  class Se {
4095
4106
  constructor(e, t = !0, s, o, i = 0, r = !1, n = !1) {
4096
4107
  this.data = e, this.expanded = t, this.children = s, this.parent = o, this.deep = i, this.checked = r, this.keep = n, this.type = "TreeRow";
@@ -4132,7 +4143,7 @@ class y {
4132
4143
  this.value = e, this.unit = t;
4133
4144
  }
4134
4145
  }
4135
- const Rt = () => !0, Ce = () => !1;
4146
+ const At = () => !0, Ce = () => !1;
4136
4147
  class H {
4137
4148
  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, h, u, f, p, m, g = () => this.visible) {
4138
4149
  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 = h, 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"));
@@ -4153,7 +4164,7 @@ class H {
4153
4164
  e.headerClasses,
4154
4165
  e.bodyClasses,
4155
4166
  e.footerClasses
4156
- ), o = e.sortIconVisible ?? e.sortable ?? Ce, i = e.editable ?? e.editable ?? Ce, r = e.isVisible ?? e.isVisible ?? Rt;
4167
+ ), o = e.sortIconVisible ?? e.sortable ?? Ce, i = e.editable ?? e.editable ?? Ce, r = e.isVisible ?? e.isVisible ?? At;
4157
4168
  return new H(
4158
4169
  e.property ?? "",
4159
4170
  e.headerLabel ?? "",
@@ -4174,7 +4185,7 @@ class H {
4174
4185
  );
4175
4186
  }
4176
4187
  }
4177
- const zt = new y(500, "px"), jt = new y(400, "px"), Et = new y(300, "px"), Ut = new y(290, "px"), Yt = new y(280, "px"), Kt = new y(270, "px"), Xt = new y(260, "px"), Jt = new y(250, "px"), qt = new y(240, "px"), Zt = new y(230, "px"), Qt = new y(220, "px"), es = new y(210, "px"), ve = new y(200, "px"), ts = new y(190, "px"), ss = new y(180, "px"), os = new y(170, "px"), is = new y(160, "px"), rs = new y(150, "px"), ns = new y(140, "px"), ls = new y(130, "px"), as = new y(120, "px"), cs = new y(110, "px"), ds = new y(100, "px"), hs = new y(90, "px"), us = new y(80, "px"), ps = new y(70, "px"), gs = new y(60, "px"), fs = new y(50, "px"), ms = new y(40, "px"), bs = new y(30, "px"), ys = new y(20, "px"), xs = new y(10, "px"), ws = new y(0, "px");
4188
+ const zt = new y(500, "px"), jt = new y(400, "px"), Et = new y(300, "px"), Ut = new y(290, "px"), Yt = new y(280, "px"), Kt = new y(270, "px"), Xt = new y(260, "px"), Jt = new y(250, "px"), qt = new y(240, "px"), Zt = new y(230, "px"), Qt = new y(220, "px"), es = new y(210, "px"), ve = new y(200, "px"), ts = new y(190, "px"), ss = new y(180, "px"), os = new y(170, "px"), is = new y(160, "px"), rs = new y(150, "px"), ns = new y(140, "px"), ls = new y(130, "px"), as = new y(120, "px"), cs = new y(110, "px"), ds = new y(100, "px"), hs = new y(90, "px"), us = new y(80, "px"), ps = new y(70, "px"), gs = new y(60, "px"), fs = new y(50, "px"), ms = new y(40, "px"), bs = new y(30, "px"), ys = new y(20, "px"), ws = new y(10, "px"), xs = new y(0, "px");
4178
4189
  class P extends he {
4179
4190
  constructor(e, t, s, o = []) {
4180
4191
  super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
@@ -4286,7 +4297,7 @@ class Mt {
4286
4297
  return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
4287
4298
  }
4288
4299
  }
4289
- class Ae extends he {
4300
+ class Re extends he {
4290
4301
  constructor(e, t, s, o = []) {
4291
4302
  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 Mt(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
4292
4303
  }
@@ -4391,7 +4402,7 @@ class Ae extends he {
4391
4402
  o.children && this.treeSort(o.children, t, s);
4392
4403
  }
4393
4404
  }
4394
- class Re {
4405
+ class Ae {
4395
4406
  constructor(e = []) {
4396
4407
  this.allRootNodes = e;
4397
4408
  }
@@ -4878,12 +4889,14 @@ class se {
4878
4889
  }
4879
4890
  }
4880
4891
  class Me extends He {
4881
- constructor(e, t, s, o) {
4892
+ constructor(e, t, s, o, i = "ge-selected-row", r = "ge-focused-row") {
4882
4893
  super(
4883
4894
  e,
4884
4895
  t,
4885
4896
  o,
4886
- s
4897
+ s,
4898
+ i,
4899
+ r
4887
4900
  ), this.areaIdent = e, this.rows = t, this.columnDefs = s, this.defaultRowHeight = o;
4888
4901
  }
4889
4902
  }
@@ -4962,12 +4975,12 @@ class _ {
4962
4975
  if (e.rows)
4963
4976
  if ((u = e.rows) != null && u.length && N(e.rows[0])) {
4964
4977
  const g = e.rows;
4965
- e.bodyAreaModel = new Ae(
4978
+ e.bodyAreaModel = new Re(
4966
4979
  "body",
4967
4980
  g,
4968
4981
  e.defaultRowHeights.body,
4969
4982
  e.columnDefs
4970
- ), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Re(g));
4983
+ ), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Ae(g));
4971
4984
  } else
4972
4985
  e.bodyAreaModel = new Me(
4973
4986
  "body",
@@ -5061,13 +5074,13 @@ class _ {
5061
5074
  static buildByTypedRows(e, t, s = new X(), o = 0, i = 0) {
5062
5075
  const r = s.defaultRowHeights, n = t[0].property === "CheckboxColumn";
5063
5076
  if (e != null && e.length && N(e[0])) {
5064
- const a = e, c = new Ae(
5077
+ const a = e, c = new Re(
5065
5078
  "body",
5066
5079
  a,
5067
5080
  r.body,
5068
5081
  t
5069
5082
  );
5070
- return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Re(a)), _.createByAreaModelsParam({
5083
+ return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Ae(a)), _.createByAreaModelsParam({
5071
5084
  headerAreaModel: new P("header", [t.map((h) => h.headerLabel)], r.header),
5072
5085
  bodyAreaModel: c,
5073
5086
  footerAreaModel: new P("footer", [], r.footer),
@@ -5370,7 +5383,7 @@ class vs {
5370
5383
  this.index = e, this.px = t;
5371
5384
  }
5372
5385
  }
5373
- const As = { body: ["ge-table-text-align-left"] }, Rs = { body: ["ge-table-text-align-center"] }, Es = { body: ["ge-table-text-align-right"] }, Ms = {
5386
+ const Rs = { body: ["ge-table-text-align-left"] }, As = { body: ["ge-table-text-align-center"] }, Es = { body: ["ge-table-text-align-right"] }, Ms = {
5374
5387
  header: ["ge-table-text-align-left"],
5375
5388
  body: ["ge-table-text-align-left"],
5376
5389
  footer: ["ge-table-text-align-left"]
@@ -6230,7 +6243,7 @@ class Qs extends ge {
6230
6243
  * @param {number} rowIndex - The index of the row to be selected.
6231
6244
  */
6232
6245
  selectRow(e) {
6233
- this.addRange(R.singleRow(e));
6246
+ this.addRange(A.singleRow(e));
6234
6247
  }
6235
6248
  /**
6236
6249
  * Unselects the specified row.
@@ -6239,7 +6252,7 @@ class Qs extends ge {
6239
6252
  * @return {void}
6240
6253
  */
6241
6254
  unselectRow(e) {
6242
- this.removeSelection(R.singleRow(e));
6255
+ this.removeSelection(A.singleRow(e));
6243
6256
  }
6244
6257
  /**
6245
6258
  * Toggles the selection of items based on current selection state.
@@ -6535,31 +6548,31 @@ class so {
6535
6548
  this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
6536
6549
  var r, n, l, a;
6537
6550
  if (t.rows = i, i != null && i.length) {
6538
- const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((x) => x.property) : this.extractProperties(i[0]), h = new ge("row", "multi"), u = () => h;
6551
+ const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((w) => w.property) : this.extractProperties(i[0]), h = new ge("row", "multi"), u = () => h;
6539
6552
  this.tableOptions = {
6540
6553
  ...new X(),
6541
6554
  ...t.tableOptions,
6542
6555
  hoverColumnVisible: !1,
6543
6556
  getSelectionModel: u
6544
6557
  };
6545
- const f = this.calcAutoColumnWidths(i, c), p = (n = t.columnDefs) != null && n.length ? t.columnDefs : c.map((x, S) => new H(x, x.toUpperCase(), new y(f[S], "px")));
6558
+ const f = this.calcAutoColumnWidths(i, c), p = (n = t.columnDefs) != null && n.length ? t.columnDefs : c.map((w, S) => new H(w, w.toUpperCase(), new y(f[S], "px")));
6546
6559
  if ((l = e == null ? void 0 : e.columnWidths) != null && l.autoCalc)
6547
- for (let x = 0; x < p.length; x++) {
6548
- const S = p[x];
6549
- S.width = new y(f[x], "px");
6560
+ for (let w = 0; w < p.length; w++) {
6561
+ const S = p[w];
6562
+ S.width = new y(f[w], "px");
6550
6563
  }
6551
6564
  if (e.autoAddActionColumn) {
6552
- let x = new H(
6565
+ let w = new H(
6553
6566
  "id",
6554
6567
  "Actions",
6555
6568
  Et,
6556
6569
  new I(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
6557
6570
  );
6558
- x.rendererMap = new I(
6571
+ w.rendererMap = new I(
6559
6572
  void 0,
6560
6573
  new Lt(this, e.singleRowActions),
6561
6574
  void 0
6562
- ), p.push(x);
6575
+ ), p.push(w);
6563
6576
  }
6564
6577
  const m = 0, g = e.calcFixedRightColumnCount(p.length);
6565
6578
  this.tableModel = _.buildByTypedRowsParam({
@@ -6682,7 +6695,7 @@ export {
6682
6695
  F as AreaModelHidden,
6683
6696
  He as AreaModelObjectArray,
6684
6697
  Me as AreaModelObjectArrayWithColumndefs,
6685
- Ae as AreaModelTree,
6698
+ Re as AreaModelTree,
6686
6699
  I as AreaObjectMap,
6687
6700
  B as ArrayPropertyType,
6688
6701
  Ls as AutoRestoreOptions,
@@ -6691,7 +6704,7 @@ export {
6691
6704
  Pt as CellGroup,
6692
6705
  Ft as CellGroupExt,
6693
6706
  le as CellGroupExtCellRenderer,
6694
- R as CellRange,
6707
+ A as CellRange,
6695
6708
  T as CellgroupFactory,
6696
6709
  Hs as CheckboxBooleanPropertyCellRenderer,
6697
6710
  Te as CheckboxCellRenderer,
@@ -6711,7 +6724,7 @@ export {
6711
6724
  $t as CrudObjectView,
6712
6725
  _t as CrudOptions,
6713
6726
  so as CrudTableModelFactory,
6714
- we as CssVars,
6727
+ xe as CssVars,
6715
6728
  Ws as DateToIntlDDMMYYYYCellRenderer,
6716
6729
  Vs as DateToIsoCellRenderer,
6717
6730
  Ns as DateToLocaleDateCellRenderer,
@@ -6720,9 +6733,9 @@ export {
6720
6733
  lt as EleScope,
6721
6734
  re as EventAdapter,
6722
6735
  Gt as EventCheckboxChangedHandler,
6723
- At as ExcelService,
6736
+ Rt as ExcelService,
6724
6737
  Ce as FalseFn,
6725
- wt as FocusModel,
6738
+ xt as FocusModel,
6726
6739
  ut as GeCellIndices,
6727
6740
  Y as GeCssColorUtil,
6728
6741
  _s as GeFilterService,
@@ -6732,7 +6745,7 @@ export {
6732
6745
  L as GeoData,
6733
6746
  O as Icon,
6734
6747
  vs as IndexAndPx,
6735
- xt as InputCellRenderer,
6748
+ wt as InputCellRenderer,
6736
6749
  ht as InputHandler,
6737
6750
  be as JsonService,
6738
6751
  V as LicenseManager,
@@ -6786,13 +6799,13 @@ export {
6786
6799
  X as TableOptions,
6787
6800
  Ve as TableScope,
6788
6801
  to as ThreeColorGradientArg,
6789
- Re as TreeCheckboxModel,
6802
+ Ae as TreeCheckboxModel,
6790
6803
  ne as TreeFactory,
6791
6804
  $e as TreeOptions,
6792
6805
  Se as TreeRow,
6793
6806
  Mt as TreeRowService,
6794
6807
  js as TrueFalseCellRenderer,
6795
- Rt as TrueFn,
6808
+ At as TrueFn,
6796
6809
  Ie as TwoColorGradientArg,
6797
6810
  K as UNIMPORTANT_TYPES,
6798
6811
  te as UndefinedPropertyType,
@@ -6804,10 +6817,10 @@ export {
6804
6817
  Ts as allCenter,
6805
6818
  Ms as allLeft,
6806
6819
  Is as allRight,
6807
- Rs as bodyCenter,
6808
- As as bodyLeft,
6820
+ As as bodyCenter,
6821
+ Rs as bodyLeft,
6809
6822
  Es as bodyRight,
6810
- xe as createHarmonizedShortcutByKeyboardEvent,
6823
+ we as createHarmonizedShortcutByKeyboardEvent,
6811
6824
  Ge as debounce,
6812
6825
  Zs as editInputPipeForNumber,
6813
6826
  ye as entitySuffix,
@@ -6818,8 +6831,8 @@ export {
6818
6831
  ie as isAreaModelTree,
6819
6832
  Ze as isCheckboxColumnDef,
6820
6833
  N as isTreeRow,
6821
- ws as px0,
6822
- xs as px10,
6834
+ xs as px0,
6835
+ ws as px10,
6823
6836
  ds as px100,
6824
6837
  cs as px110,
6825
6838
  as as px120,