@guiexpert/table 1.1.61 → 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.cjs +4 -4
- package/index.js +134 -110
- package/lib/table/data/options/table-options.d.ts +1 -0
- package/lib/table/data/options/table-options.if.d.ts +1 -0
- package/lib/table/data/tablemodel/areamodel/area-model-object-array-with-columndefs.d.ts +1 -1
- package/lib/table/data/tablemodel/areamodel/area-model-object-array.d.ts +20 -7
- package/lib/table/render-scope.d.ts +1 -0
- package/lib/table/table-api.d.ts +1 -0
- package/lib/table/table-scope.d.ts +1 -0
- package/package.json +1 -1
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.sorterService = new Be(), this.filteredRows = [...t], this.properties = o.map((
|
|
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;
|
|
@@ -1212,6 +1215,12 @@ class He extends he {
|
|
|
1212
1215
|
let o = this.filteredRows[e];
|
|
1213
1216
|
return N(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
|
|
1214
1217
|
}
|
|
1218
|
+
/**
|
|
1219
|
+
* Retrieves the filtered and sorted rows from the dataset.
|
|
1220
|
+
* These rows are used for rendering the table.
|
|
1221
|
+
*
|
|
1222
|
+
* @return {T[]} An array containing the filtered (and sorted) rows.
|
|
1223
|
+
*/
|
|
1215
1224
|
getFilteredRows() {
|
|
1216
1225
|
return this.filteredRows;
|
|
1217
1226
|
}
|
|
@@ -1240,6 +1249,10 @@ class He extends he {
|
|
|
1240
1249
|
changeColumnOrder(e, t) {
|
|
1241
1250
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
1242
1251
|
}
|
|
1252
|
+
getCustomClassesAt(e, t) {
|
|
1253
|
+
const s = super.getCustomClassesAt(e, t);
|
|
1254
|
+
return this.getRowByIndex(e).selected && s.push(this.selectedRowClass), this.focusedRowIndex === e && s.push(this.focusedRowClass), s;
|
|
1255
|
+
}
|
|
1243
1256
|
genericFlatTableSortComparator(e, t) {
|
|
1244
1257
|
const s = this.columnDefs.find((o) => o.property === e);
|
|
1245
1258
|
return (o, i) => {
|
|
@@ -1488,6 +1501,9 @@ class st {
|
|
|
1488
1501
|
reSort() {
|
|
1489
1502
|
this.tableScope.reSort();
|
|
1490
1503
|
}
|
|
1504
|
+
getDisplayedRowCount() {
|
|
1505
|
+
return this.tableScope.getDisplayedRowCount();
|
|
1506
|
+
}
|
|
1491
1507
|
}
|
|
1492
1508
|
class ue {
|
|
1493
1509
|
constructor(e) {
|
|
@@ -1814,7 +1830,7 @@ class lt {
|
|
|
1814
1830
|
this.dom.setStyle(this.contentWrapperDiv, "width", e), this.dom.setStyle(this.contentWrapperDiv, "height", t);
|
|
1815
1831
|
}
|
|
1816
1832
|
}
|
|
1817
|
-
class
|
|
1833
|
+
class A {
|
|
1818
1834
|
/**
|
|
1819
1835
|
* Represents a constructor for a class.
|
|
1820
1836
|
* @constructor
|
|
@@ -1828,7 +1844,7 @@ class R {
|
|
|
1828
1844
|
this.r1 = e, this.c1 = t, this.r2 = s, this.c2 = o, this.gammaRange = i;
|
|
1829
1845
|
}
|
|
1830
1846
|
static create(e) {
|
|
1831
|
-
return e.gammaRange === void 0 && (e.gammaRange = !1), new
|
|
1847
|
+
return e.gammaRange === void 0 && (e.gammaRange = !1), new A(
|
|
1832
1848
|
e.rowIndex1,
|
|
1833
1849
|
e.columnIndex1,
|
|
1834
1850
|
e.rowIndex2,
|
|
@@ -1837,13 +1853,13 @@ class R {
|
|
|
1837
1853
|
);
|
|
1838
1854
|
}
|
|
1839
1855
|
static singleCell(e, t) {
|
|
1840
|
-
return new
|
|
1856
|
+
return new A(e, t, e, t);
|
|
1841
1857
|
}
|
|
1842
1858
|
static singleRow(e) {
|
|
1843
|
-
return new
|
|
1859
|
+
return new A(e, 0, e, Number.MAX_SAFE_INTEGER);
|
|
1844
1860
|
}
|
|
1845
1861
|
static singleColumn(e) {
|
|
1846
|
-
return new
|
|
1862
|
+
return new A(0, e, Number.MAX_SAFE_INTEGER, e);
|
|
1847
1863
|
}
|
|
1848
1864
|
isInRange(e, t) {
|
|
1849
1865
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
@@ -1865,7 +1881,7 @@ class at {
|
|
|
1865
1881
|
i === 0 && (i = 1), r === 0 && (r = 1);
|
|
1866
1882
|
const n = "gammaCells" in this.areaModel;
|
|
1867
1883
|
this.colAndRowspanRanges.push(
|
|
1868
|
-
new
|
|
1884
|
+
new A(s, o, s + r - 1, o + i - 1, n)
|
|
1869
1885
|
);
|
|
1870
1886
|
}
|
|
1871
1887
|
}
|
|
@@ -1894,7 +1910,7 @@ class ct extends lt {
|
|
|
1894
1910
|
header: [],
|
|
1895
1911
|
body: [],
|
|
1896
1912
|
footer: []
|
|
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(
|
|
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(
|
|
1898
1914
|
(l) => {
|
|
1899
1915
|
var a;
|
|
1900
1916
|
this.colAndRowspanModels[l] = new at(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
|
|
@@ -2159,39 +2175,39 @@ class ct extends lt {
|
|
|
2159
2175
|
let u = t;
|
|
2160
2176
|
const f = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), m = this.tableModel.getFixedLeftColumnCount();
|
|
2161
2177
|
for (let b = 0; b < h; b++) {
|
|
2162
|
-
const
|
|
2163
|
-
if (
|
|
2178
|
+
const w = u, S = b === h - 1, R = this.tableModel.getRowHeight(e, b);
|
|
2179
|
+
if (w + R > 0) {
|
|
2164
2180
|
this.firstVisibleRowIndex = b;
|
|
2165
|
-
let C = { left: n, width: l, height:
|
|
2181
|
+
let C = { left: n, width: l, height: R, top: w, index: b }, x = this.dom.addRowDiv(o, C, b, e, "center");
|
|
2166
2182
|
const k = m;
|
|
2167
2183
|
if (this.adjustColumnsToRowParent({
|
|
2168
2184
|
areaIdent: e,
|
|
2169
2185
|
sideIdent: "center",
|
|
2170
2186
|
areaModel: c,
|
|
2171
2187
|
geo: C,
|
|
2172
|
-
parent:
|
|
2188
|
+
parent: x,
|
|
2173
2189
|
rowIndex: b,
|
|
2174
2190
|
columnIndexStart: k,
|
|
2175
2191
|
columnIndexEnd: f - p - 1,
|
|
2176
2192
|
verticalFixed: !1,
|
|
2177
2193
|
lastRowOfModel: S
|
|
2178
|
-
}), a.left > 0 && (C = { left: n, width: this.areaBodyWestGeo.width, height:
|
|
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({
|
|
2179
2195
|
areaIdent: e,
|
|
2180
2196
|
sideIdent: "west",
|
|
2181
2197
|
areaModel: c,
|
|
2182
2198
|
geo: C,
|
|
2183
|
-
parent:
|
|
2199
|
+
parent: x,
|
|
2184
2200
|
rowIndex: b,
|
|
2185
2201
|
columnIndexStart: 0,
|
|
2186
2202
|
columnIndexEnd: k - 1,
|
|
2187
2203
|
verticalFixed: !0,
|
|
2188
2204
|
lastRowOfModel: S
|
|
2189
|
-
})), a.right > 0 && (C = { left: n, width: this.areaBodyEastGeo.width, height:
|
|
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({
|
|
2190
2206
|
areaIdent: e,
|
|
2191
2207
|
sideIdent: "east",
|
|
2192
2208
|
areaModel: c,
|
|
2193
2209
|
geo: C,
|
|
2194
|
-
parent:
|
|
2210
|
+
parent: x,
|
|
2195
2211
|
rowIndex: b,
|
|
2196
2212
|
columnIndexStart: f - p,
|
|
2197
2213
|
columnIndexEnd: f - 1,
|
|
@@ -2200,7 +2216,7 @@ class ct extends lt {
|
|
|
2200
2216
|
})), e === "header" && this.tree && b === h - 1) {
|
|
2201
2217
|
const E = this.dom.applyStyle(
|
|
2202
2218
|
this.dom.setAttribute(
|
|
2203
|
-
this.dom.addDiv(
|
|
2219
|
+
this.dom.addDiv(x, new L(16, 20, 20, 8)),
|
|
2204
2220
|
"data-ge-action",
|
|
2205
2221
|
"toggleExpandCollapseAll"
|
|
2206
2222
|
),
|
|
@@ -2212,23 +2228,25 @@ class ct extends lt {
|
|
|
2212
2228
|
}
|
|
2213
2229
|
}
|
|
2214
2230
|
}
|
|
2215
|
-
if (u = u +
|
|
2231
|
+
if (u = u + R, u > r) {
|
|
2232
|
+
e === "body" && (this.displayedRowCount = this.firstVisibleRowIndex - b);
|
|
2216
2233
|
break;
|
|
2234
|
+
}
|
|
2217
2235
|
}
|
|
2218
2236
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
2219
2237
|
const b = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
|
|
2220
2238
|
if (b.length)
|
|
2221
|
-
for (const
|
|
2222
|
-
let S = 0,
|
|
2223
|
-
if (
|
|
2224
|
-
|
|
2225
|
-
else if (p > 0 &&
|
|
2226
|
-
|
|
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";
|
|
2227
2245
|
else {
|
|
2228
|
-
const
|
|
2229
|
-
S = this.scrollFactorX *
|
|
2246
|
+
const x = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
2247
|
+
S = this.scrollFactorX * x - this.areaBodyWestGeo.width, C = "center";
|
|
2230
2248
|
}
|
|
2231
|
-
this.drawBigCell(
|
|
2249
|
+
this.drawBigCell(w, S, t, c, R, C);
|
|
2232
2250
|
}
|
|
2233
2251
|
}
|
|
2234
2252
|
}
|
|
@@ -2336,20 +2354,20 @@ class ct extends lt {
|
|
|
2336
2354
|
const u = 0, f = !!(e === "body" && t);
|
|
2337
2355
|
let p = h;
|
|
2338
2356
|
for (let g = n; g <= l; g++) {
|
|
2339
|
-
const b = p,
|
|
2340
|
-
if (
|
|
2357
|
+
const b = p, w = this.tableModel.getColumnWidth(g);
|
|
2358
|
+
if (w > 0 && b + w > 0) {
|
|
2341
2359
|
let S = o.height;
|
|
2342
|
-
const
|
|
2343
|
-
|
|
2344
|
-
let
|
|
2345
|
-
C > 1 && (
|
|
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));
|
|
2346
2364
|
let k = !1;
|
|
2347
2365
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r, g) && (k = !0), this.draggingTargetColumnIndex === g && e !== "header") {
|
|
2348
|
-
this.renderDragTargetDiv(i, b, u,
|
|
2349
|
-
const E = { left: b, top: u, width:
|
|
2366
|
+
this.renderDragTargetDiv(i, b, u, x, S);
|
|
2367
|
+
const E = { left: b, top: u, width: x, height: S };
|
|
2350
2368
|
this.dom.addColumnBorderDivs(this.tableOptions, i, E, e, t);
|
|
2351
2369
|
} else {
|
|
2352
|
-
const E = this.renderSelectedBackgroundDiv(k, f, t, s, r, g, i, b, u,
|
|
2370
|
+
const E = this.renderSelectedBackgroundDiv(k, f, t, s, r, g, i, b, u, x, S);
|
|
2353
2371
|
"gammaCells" in s && s.getValueAt(r, g) && (k = !1), k || this.renderCell({
|
|
2354
2372
|
areaModel: s,
|
|
2355
2373
|
areaIdent: e,
|
|
@@ -2358,7 +2376,7 @@ class ct extends lt {
|
|
|
2358
2376
|
columnIndex: g,
|
|
2359
2377
|
left: b,
|
|
2360
2378
|
top: u,
|
|
2361
|
-
width:
|
|
2379
|
+
width: x,
|
|
2362
2380
|
height: S,
|
|
2363
2381
|
parent: i,
|
|
2364
2382
|
cellSelected: E,
|
|
@@ -2369,13 +2387,13 @@ class ct extends lt {
|
|
|
2369
2387
|
columnIndex: g,
|
|
2370
2388
|
cellLeft: b,
|
|
2371
2389
|
cellTop: u,
|
|
2372
|
-
cellWidth:
|
|
2390
|
+
cellWidth: x,
|
|
2373
2391
|
cellHeight: S,
|
|
2374
2392
|
parent: i
|
|
2375
2393
|
});
|
|
2376
2394
|
}
|
|
2377
2395
|
}
|
|
2378
|
-
if (p = p +
|
|
2396
|
+
if (p = p + w, p > this.areaBodyCenterGeo.width)
|
|
2379
2397
|
break;
|
|
2380
2398
|
}
|
|
2381
2399
|
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new L(p - 1, 1, o.height, 0), i);
|
|
@@ -2412,12 +2430,12 @@ class ct extends lt {
|
|
|
2412
2430
|
const v = m;
|
|
2413
2431
|
(me = v.children) != null && me.length ? v.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
|
|
2414
2432
|
}
|
|
2415
|
-
let
|
|
2433
|
+
let w;
|
|
2416
2434
|
if (t === "header") {
|
|
2417
2435
|
const v = this.tableModel.getColumnDef(i);
|
|
2418
|
-
(!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (
|
|
2436
|
+
(!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (w = v == null ? void 0 : v.sortState);
|
|
2419
2437
|
}
|
|
2420
|
-
const S = e.getValueAt(o, i),
|
|
2438
|
+
const S = e.getValueAt(o, i), R = f ? "" : `${S}`, C = e.isRowChecked(o), x = this.dom.addColumnDiv(
|
|
2421
2439
|
{
|
|
2422
2440
|
parent: c,
|
|
2423
2441
|
geo: p,
|
|
@@ -2425,29 +2443,29 @@ class ct extends lt {
|
|
|
2425
2443
|
columnIndex: i,
|
|
2426
2444
|
areaIdent: t,
|
|
2427
2445
|
sideIdent: s,
|
|
2428
|
-
text:
|
|
2446
|
+
text: R,
|
|
2429
2447
|
treeArrow: g,
|
|
2430
2448
|
tableOptions: this.tableOptions,
|
|
2431
2449
|
checkedType: C,
|
|
2432
|
-
sortState:
|
|
2450
|
+
sortState: w
|
|
2433
2451
|
}
|
|
2434
2452
|
), k = e.getTooltipAt(o, i);
|
|
2435
|
-
k && this.dom.setAttribute(
|
|
2453
|
+
k && this.dom.setAttribute(x, "title", k);
|
|
2436
2454
|
const E = this.tableModel.getColumnDef(i);
|
|
2437
|
-
E && E.classes[t] && this.dom.addClasses(E.classes[t],
|
|
2455
|
+
E && E.classes[t] && this.dom.addClasses(E.classes[t], x);
|
|
2438
2456
|
let M;
|
|
2439
|
-
f && (M = f.render(
|
|
2457
|
+
f && (M = f.render(x, o, i, t, e, S, this.dom.domService));
|
|
2440
2458
|
const U = e.getCustomClassesAt(o, i);
|
|
2441
|
-
if (U.length && this.dom.addClasses(U,
|
|
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") {
|
|
2442
2460
|
const v = this.getFocusModel();
|
|
2443
2461
|
v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
|
|
2444
2462
|
}
|
|
2445
|
-
t === "header" && this.dom.setAttribute(
|
|
2463
|
+
t === "header" && this.dom.setAttribute(x, "data-ge-action", "drag-column");
|
|
2446
2464
|
const ee = e.getCustomStyleAt(o, i);
|
|
2447
2465
|
if (ee)
|
|
2448
2466
|
for (const v in ee)
|
|
2449
|
-
this.dom.setStyle(
|
|
2450
|
-
return [
|
|
2467
|
+
this.dom.setStyle(x, v, ee[v]);
|
|
2468
|
+
return [x, M];
|
|
2451
2469
|
}
|
|
2452
2470
|
/**
|
|
2453
2471
|
* Applies CSS classes to an HTML element.
|
|
@@ -2622,16 +2640,16 @@ class ct extends lt {
|
|
|
2622
2640
|
sideIdent: o,
|
|
2623
2641
|
text: m
|
|
2624
2642
|
}, b = this.dom.addColumnDiv(g);
|
|
2625
|
-
let
|
|
2626
|
-
p && (
|
|
2643
|
+
let w;
|
|
2644
|
+
p && (w = p.render(b, a, n, t, i, f, this.dom.domService), w && this.cleanupFunctions[t].push(w));
|
|
2627
2645
|
const S = i.getCustomClassesAt(a, n);
|
|
2628
2646
|
S.length && this.dom.addClasses(S, b);
|
|
2629
|
-
const
|
|
2630
|
-
|
|
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);
|
|
2631
2649
|
const C = i.getCustomStyleAt(a, n);
|
|
2632
2650
|
if (C)
|
|
2633
|
-
for (const
|
|
2634
|
-
this.dom.setStyle(b,
|
|
2651
|
+
for (const x in C)
|
|
2652
|
+
this.dom.setStyle(b, x, C[x]);
|
|
2635
2653
|
s = s + h;
|
|
2636
2654
|
}
|
|
2637
2655
|
}
|
|
@@ -2816,7 +2834,7 @@ class pt {
|
|
|
2816
2834
|
let s = !1, o = !1;
|
|
2817
2835
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2818
2836
|
const u = this.getSelectionModel(), f = this.getFocusModel();
|
|
2819
|
-
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(
|
|
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));
|
|
2820
2838
|
}
|
|
2821
2839
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2822
2840
|
}
|
|
@@ -2839,7 +2857,7 @@ class pt {
|
|
|
2839
2857
|
createRangeByEvents(e, t) {
|
|
2840
2858
|
t || (t = e);
|
|
2841
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);
|
|
2842
|
-
return
|
|
2860
|
+
return A.create({
|
|
2843
2861
|
rowIndex1: s,
|
|
2844
2862
|
columnIndex1: i,
|
|
2845
2863
|
rowIndex2: o,
|
|
@@ -2895,7 +2913,7 @@ function mt(d) {
|
|
|
2895
2913
|
return o !== i ? o - i : e.localeCompare(t);
|
|
2896
2914
|
}).join(" ");
|
|
2897
2915
|
}
|
|
2898
|
-
function
|
|
2916
|
+
function we(d) {
|
|
2899
2917
|
let e = d.key.toLowerCase();
|
|
2900
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")) {
|
|
2901
2919
|
const s = d.code.replace("Numpad", "").toLowerCase();
|
|
@@ -2923,7 +2941,8 @@ class bt {
|
|
|
2923
2941
|
* Also adds key down event listener to the table host element.
|
|
2924
2942
|
*/
|
|
2925
2943
|
init() {
|
|
2926
|
-
|
|
2944
|
+
var e, t;
|
|
2945
|
+
(t = (e = this.tableScope) == null ? void 0 : e.tableOptions) != null && t.shortcutActionsDisabled ? this.isDebug() && console.debug("ShortcutService skipped.") : (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)));
|
|
2927
2946
|
}
|
|
2928
2947
|
assignPredefinedSystemShortcutMappings() {
|
|
2929
2948
|
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new ft().get()) : Object.assign(this.shortcutActionIdMapping, new gt().get());
|
|
@@ -2949,10 +2968,10 @@ class bt {
|
|
|
2949
2968
|
return t;
|
|
2950
2969
|
}
|
|
2951
2970
|
findEntity(e) {
|
|
2952
|
-
const t =
|
|
2971
|
+
const t = we(e);
|
|
2953
2972
|
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
2954
2973
|
for (const s in this.shortcutActionIdMapping)
|
|
2955
|
-
if (
|
|
2974
|
+
if (we(e) === t)
|
|
2956
2975
|
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
2957
2976
|
}
|
|
2958
2977
|
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
@@ -3046,7 +3065,7 @@ class yt {
|
|
|
3046
3065
|
e.setAttribute(t, s);
|
|
3047
3066
|
}
|
|
3048
3067
|
}
|
|
3049
|
-
class
|
|
3068
|
+
class wt {
|
|
3050
3069
|
render(e, t, s, o, i, r, n) {
|
|
3051
3070
|
if (i.isEditable(t, s)) {
|
|
3052
3071
|
n.addClass(e, "ge-table-row-input-div");
|
|
@@ -3086,7 +3105,7 @@ class ge {
|
|
|
3086
3105
|
this.silent || this.listenerArr.forEach((e) => e.onSelectionChanged(this));
|
|
3087
3106
|
}
|
|
3088
3107
|
firstClick(e, t) {
|
|
3089
|
-
this.selectionType === "row" ? this.addRange(
|
|
3108
|
+
this.selectionType === "row" ? this.addRange(A.singleRow(e)) : this.selectionType === "column" && this.addRange(A.singleColumn(t));
|
|
3090
3109
|
}
|
|
3091
3110
|
getSelectionCount(e, t) {
|
|
3092
3111
|
let s = 0;
|
|
@@ -3137,10 +3156,10 @@ class ge {
|
|
|
3137
3156
|
if (this.selectionType === "none")
|
|
3138
3157
|
return;
|
|
3139
3158
|
let t = e;
|
|
3140
|
-
this.selectionType === "row" ? t =
|
|
3159
|
+
this.selectionType === "row" ? t = A.singleRow(e.r1) : this.selectionType === "column" && (t = A.singleColumn(e.c1)), this.negativeRanges.push(t), this.fireChangeEvent();
|
|
3141
3160
|
}
|
|
3142
3161
|
togglePoint(e, t) {
|
|
3143
|
-
this.getSelectionCount(e, t) > 0 ? this.removeSelection(
|
|
3162
|
+
this.getSelectionCount(e, t) > 0 ? this.removeSelection(A.singleCell(e, t)) : this.addSelection(A.singleCell(e, t));
|
|
3144
3163
|
}
|
|
3145
3164
|
isSelected(e, t) {
|
|
3146
3165
|
return this.getSelectionCount(e, t) > 0;
|
|
@@ -3149,7 +3168,7 @@ class ge {
|
|
|
3149
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());
|
|
3150
3169
|
}
|
|
3151
3170
|
}
|
|
3152
|
-
class
|
|
3171
|
+
class xt {
|
|
3153
3172
|
constructor(e = "none") {
|
|
3154
3173
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
3155
3174
|
}
|
|
@@ -3200,14 +3219,14 @@ class fe {
|
|
|
3200
3219
|
}
|
|
3201
3220
|
// `⊖ `, `⊕ `;
|
|
3202
3221
|
}
|
|
3203
|
-
const St = new ge(), Ct = new
|
|
3222
|
+
const St = new ge(), Ct = new xt("cell");
|
|
3204
3223
|
class X {
|
|
3205
3224
|
constructor() {
|
|
3206
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 = {
|
|
3207
3226
|
header: 34,
|
|
3208
3227
|
body: 34,
|
|
3209
3228
|
footer: 34
|
|
3210
|
-
}, 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.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new
|
|
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;
|
|
3211
3230
|
}
|
|
3212
3231
|
}
|
|
3213
3232
|
const W = class W {
|
|
@@ -3288,7 +3307,7 @@ const W = class W {
|
|
|
3288
3307
|
mergeRanges(e) {
|
|
3289
3308
|
let t;
|
|
3290
3309
|
for (const s of e)
|
|
3291
|
-
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
|
|
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);
|
|
3292
3311
|
return t;
|
|
3293
3312
|
}
|
|
3294
3313
|
};
|
|
@@ -3304,7 +3323,7 @@ class vt {
|
|
|
3304
3323
|
this.tableScope.recalcColumnWidths(s);
|
|
3305
3324
|
}
|
|
3306
3325
|
}
|
|
3307
|
-
class
|
|
3326
|
+
class Rt {
|
|
3308
3327
|
/**
|
|
3309
3328
|
* Downloads a matrix data as an Excel file.
|
|
3310
3329
|
*
|
|
@@ -3411,7 +3430,7 @@ class At {
|
|
|
3411
3430
|
}
|
|
3412
3431
|
}
|
|
3413
3432
|
class Ve extends ct {
|
|
3414
|
-
constructor(e, t, s, o, i, r = new J(), n = new
|
|
3433
|
+
constructor(e, t, s, o, i, r = new J(), n = new Rt()) {
|
|
3415
3434
|
var c;
|
|
3416
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) {
|
|
3417
3436
|
const h = this.tableOptions.autoRestoreOptions, u = h.getStorageKeyFn;
|
|
@@ -3835,6 +3854,9 @@ class Ve extends ct {
|
|
|
3835
3854
|
let e = ((t = this.storeSortingService) == null ? void 0 : t.getSortItems()) ?? [];
|
|
3836
3855
|
this.tableModel.doSort(e);
|
|
3837
3856
|
}
|
|
3857
|
+
getDisplayedRowCount() {
|
|
3858
|
+
return this.displayedRowCount;
|
|
3859
|
+
}
|
|
3838
3860
|
}
|
|
3839
3861
|
class Gt extends re {
|
|
3840
3862
|
constructor(e) {
|
|
@@ -4079,7 +4101,7 @@ q.themes = ["light", "combat", "paper", "blackboard"], q.vars = {
|
|
|
4079
4101
|
--ge-table-drop-zone-bg: #758129;
|
|
4080
4102
|
}`
|
|
4081
4103
|
};
|
|
4082
|
-
let
|
|
4104
|
+
let xe = q;
|
|
4083
4105
|
class Se {
|
|
4084
4106
|
constructor(e, t = !0, s, o, i = 0, r = !1, n = !1) {
|
|
4085
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";
|
|
@@ -4121,7 +4143,7 @@ class y {
|
|
|
4121
4143
|
this.value = e, this.unit = t;
|
|
4122
4144
|
}
|
|
4123
4145
|
}
|
|
4124
|
-
const
|
|
4146
|
+
const At = () => !0, Ce = () => !1;
|
|
4125
4147
|
class H {
|
|
4126
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) {
|
|
4127
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"));
|
|
@@ -4142,7 +4164,7 @@ class H {
|
|
|
4142
4164
|
e.headerClasses,
|
|
4143
4165
|
e.bodyClasses,
|
|
4144
4166
|
e.footerClasses
|
|
4145
|
-
), o = e.sortIconVisible ?? e.sortable ?? Ce, i = e.editable ?? e.editable ?? Ce, r = e.isVisible ?? e.isVisible ??
|
|
4167
|
+
), o = e.sortIconVisible ?? e.sortable ?? Ce, i = e.editable ?? e.editable ?? Ce, r = e.isVisible ?? e.isVisible ?? At;
|
|
4146
4168
|
return new H(
|
|
4147
4169
|
e.property ?? "",
|
|
4148
4170
|
e.headerLabel ?? "",
|
|
@@ -4163,7 +4185,7 @@ class H {
|
|
|
4163
4185
|
);
|
|
4164
4186
|
}
|
|
4165
4187
|
}
|
|
4166
|
-
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"),
|
|
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");
|
|
4167
4189
|
class P extends he {
|
|
4168
4190
|
constructor(e, t, s, o = []) {
|
|
4169
4191
|
super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
|
|
@@ -4275,7 +4297,7 @@ class Mt {
|
|
|
4275
4297
|
return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
|
|
4276
4298
|
}
|
|
4277
4299
|
}
|
|
4278
|
-
class
|
|
4300
|
+
class Re extends he {
|
|
4279
4301
|
constructor(e, t, s, o = []) {
|
|
4280
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];
|
|
4281
4303
|
}
|
|
@@ -4380,7 +4402,7 @@ class Ae extends he {
|
|
|
4380
4402
|
o.children && this.treeSort(o.children, t, s);
|
|
4381
4403
|
}
|
|
4382
4404
|
}
|
|
4383
|
-
class
|
|
4405
|
+
class Ae {
|
|
4384
4406
|
constructor(e = []) {
|
|
4385
4407
|
this.allRootNodes = e;
|
|
4386
4408
|
}
|
|
@@ -4867,12 +4889,14 @@ class se {
|
|
|
4867
4889
|
}
|
|
4868
4890
|
}
|
|
4869
4891
|
class Me extends He {
|
|
4870
|
-
constructor(e, t, s, o) {
|
|
4892
|
+
constructor(e, t, s, o, i = "ge-selected-row", r = "ge-focused-row") {
|
|
4871
4893
|
super(
|
|
4872
4894
|
e,
|
|
4873
4895
|
t,
|
|
4874
4896
|
o,
|
|
4875
|
-
s
|
|
4897
|
+
s,
|
|
4898
|
+
i,
|
|
4899
|
+
r
|
|
4876
4900
|
), this.areaIdent = e, this.rows = t, this.columnDefs = s, this.defaultRowHeight = o;
|
|
4877
4901
|
}
|
|
4878
4902
|
}
|
|
@@ -4951,12 +4975,12 @@ class _ {
|
|
|
4951
4975
|
if (e.rows)
|
|
4952
4976
|
if ((u = e.rows) != null && u.length && N(e.rows[0])) {
|
|
4953
4977
|
const g = e.rows;
|
|
4954
|
-
e.bodyAreaModel = new
|
|
4978
|
+
e.bodyAreaModel = new Re(
|
|
4955
4979
|
"body",
|
|
4956
4980
|
g,
|
|
4957
4981
|
e.defaultRowHeights.body,
|
|
4958
4982
|
e.columnDefs
|
|
4959
|
-
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new
|
|
4983
|
+
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Ae(g));
|
|
4960
4984
|
} else
|
|
4961
4985
|
e.bodyAreaModel = new Me(
|
|
4962
4986
|
"body",
|
|
@@ -5050,13 +5074,13 @@ class _ {
|
|
|
5050
5074
|
static buildByTypedRows(e, t, s = new X(), o = 0, i = 0) {
|
|
5051
5075
|
const r = s.defaultRowHeights, n = t[0].property === "CheckboxColumn";
|
|
5052
5076
|
if (e != null && e.length && N(e[0])) {
|
|
5053
|
-
const a = e, c = new
|
|
5077
|
+
const a = e, c = new Re(
|
|
5054
5078
|
"body",
|
|
5055
5079
|
a,
|
|
5056
5080
|
r.body,
|
|
5057
5081
|
t
|
|
5058
5082
|
);
|
|
5059
|
-
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new
|
|
5083
|
+
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Ae(a)), _.createByAreaModelsParam({
|
|
5060
5084
|
headerAreaModel: new P("header", [t.map((h) => h.headerLabel)], r.header),
|
|
5061
5085
|
bodyAreaModel: c,
|
|
5062
5086
|
footerAreaModel: new P("footer", [], r.footer),
|
|
@@ -5359,7 +5383,7 @@ class vs {
|
|
|
5359
5383
|
this.index = e, this.px = t;
|
|
5360
5384
|
}
|
|
5361
5385
|
}
|
|
5362
|
-
const
|
|
5386
|
+
const Rs = { body: ["ge-table-text-align-left"] }, As = { body: ["ge-table-text-align-center"] }, Es = { body: ["ge-table-text-align-right"] }, Ms = {
|
|
5363
5387
|
header: ["ge-table-text-align-left"],
|
|
5364
5388
|
body: ["ge-table-text-align-left"],
|
|
5365
5389
|
footer: ["ge-table-text-align-left"]
|
|
@@ -6219,7 +6243,7 @@ class Qs extends ge {
|
|
|
6219
6243
|
* @param {number} rowIndex - The index of the row to be selected.
|
|
6220
6244
|
*/
|
|
6221
6245
|
selectRow(e) {
|
|
6222
|
-
this.addRange(
|
|
6246
|
+
this.addRange(A.singleRow(e));
|
|
6223
6247
|
}
|
|
6224
6248
|
/**
|
|
6225
6249
|
* Unselects the specified row.
|
|
@@ -6228,7 +6252,7 @@ class Qs extends ge {
|
|
|
6228
6252
|
* @return {void}
|
|
6229
6253
|
*/
|
|
6230
6254
|
unselectRow(e) {
|
|
6231
|
-
this.removeSelection(
|
|
6255
|
+
this.removeSelection(A.singleRow(e));
|
|
6232
6256
|
}
|
|
6233
6257
|
/**
|
|
6234
6258
|
* Toggles the selection of items based on current selection state.
|
|
@@ -6524,31 +6548,31 @@ class so {
|
|
|
6524
6548
|
this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
|
|
6525
6549
|
var r, n, l, a;
|
|
6526
6550
|
if (t.rows = i, i != null && i.length) {
|
|
6527
|
-
const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((
|
|
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;
|
|
6528
6552
|
this.tableOptions = {
|
|
6529
6553
|
...new X(),
|
|
6530
6554
|
...t.tableOptions,
|
|
6531
6555
|
hoverColumnVisible: !1,
|
|
6532
6556
|
getSelectionModel: u
|
|
6533
6557
|
};
|
|
6534
|
-
const f = this.calcAutoColumnWidths(i, c), p = (n = t.columnDefs) != null && n.length ? t.columnDefs : c.map((
|
|
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")));
|
|
6535
6559
|
if ((l = e == null ? void 0 : e.columnWidths) != null && l.autoCalc)
|
|
6536
|
-
for (let
|
|
6537
|
-
const S = p[
|
|
6538
|
-
S.width = new y(f[
|
|
6560
|
+
for (let w = 0; w < p.length; w++) {
|
|
6561
|
+
const S = p[w];
|
|
6562
|
+
S.width = new y(f[w], "px");
|
|
6539
6563
|
}
|
|
6540
6564
|
if (e.autoAddActionColumn) {
|
|
6541
|
-
let
|
|
6565
|
+
let w = new H(
|
|
6542
6566
|
"id",
|
|
6543
6567
|
"Actions",
|
|
6544
6568
|
Et,
|
|
6545
6569
|
new I(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
|
|
6546
6570
|
);
|
|
6547
|
-
|
|
6571
|
+
w.rendererMap = new I(
|
|
6548
6572
|
void 0,
|
|
6549
6573
|
new Lt(this, e.singleRowActions),
|
|
6550
6574
|
void 0
|
|
6551
|
-
), p.push(
|
|
6575
|
+
), p.push(w);
|
|
6552
6576
|
}
|
|
6553
6577
|
const m = 0, g = e.calcFixedRightColumnCount(p.length);
|
|
6554
6578
|
this.tableModel = _.buildByTypedRowsParam({
|
|
@@ -6671,7 +6695,7 @@ export {
|
|
|
6671
6695
|
F as AreaModelHidden,
|
|
6672
6696
|
He as AreaModelObjectArray,
|
|
6673
6697
|
Me as AreaModelObjectArrayWithColumndefs,
|
|
6674
|
-
|
|
6698
|
+
Re as AreaModelTree,
|
|
6675
6699
|
I as AreaObjectMap,
|
|
6676
6700
|
B as ArrayPropertyType,
|
|
6677
6701
|
Ls as AutoRestoreOptions,
|
|
@@ -6680,7 +6704,7 @@ export {
|
|
|
6680
6704
|
Pt as CellGroup,
|
|
6681
6705
|
Ft as CellGroupExt,
|
|
6682
6706
|
le as CellGroupExtCellRenderer,
|
|
6683
|
-
|
|
6707
|
+
A as CellRange,
|
|
6684
6708
|
T as CellgroupFactory,
|
|
6685
6709
|
Hs as CheckboxBooleanPropertyCellRenderer,
|
|
6686
6710
|
Te as CheckboxCellRenderer,
|
|
@@ -6700,7 +6724,7 @@ export {
|
|
|
6700
6724
|
$t as CrudObjectView,
|
|
6701
6725
|
_t as CrudOptions,
|
|
6702
6726
|
so as CrudTableModelFactory,
|
|
6703
|
-
|
|
6727
|
+
xe as CssVars,
|
|
6704
6728
|
Ws as DateToIntlDDMMYYYYCellRenderer,
|
|
6705
6729
|
Vs as DateToIsoCellRenderer,
|
|
6706
6730
|
Ns as DateToLocaleDateCellRenderer,
|
|
@@ -6709,9 +6733,9 @@ export {
|
|
|
6709
6733
|
lt as EleScope,
|
|
6710
6734
|
re as EventAdapter,
|
|
6711
6735
|
Gt as EventCheckboxChangedHandler,
|
|
6712
|
-
|
|
6736
|
+
Rt as ExcelService,
|
|
6713
6737
|
Ce as FalseFn,
|
|
6714
|
-
|
|
6738
|
+
xt as FocusModel,
|
|
6715
6739
|
ut as GeCellIndices,
|
|
6716
6740
|
Y as GeCssColorUtil,
|
|
6717
6741
|
_s as GeFilterService,
|
|
@@ -6721,7 +6745,7 @@ export {
|
|
|
6721
6745
|
L as GeoData,
|
|
6722
6746
|
O as Icon,
|
|
6723
6747
|
vs as IndexAndPx,
|
|
6724
|
-
|
|
6748
|
+
wt as InputCellRenderer,
|
|
6725
6749
|
ht as InputHandler,
|
|
6726
6750
|
be as JsonService,
|
|
6727
6751
|
V as LicenseManager,
|
|
@@ -6775,13 +6799,13 @@ export {
|
|
|
6775
6799
|
X as TableOptions,
|
|
6776
6800
|
Ve as TableScope,
|
|
6777
6801
|
to as ThreeColorGradientArg,
|
|
6778
|
-
|
|
6802
|
+
Ae as TreeCheckboxModel,
|
|
6779
6803
|
ne as TreeFactory,
|
|
6780
6804
|
$e as TreeOptions,
|
|
6781
6805
|
Se as TreeRow,
|
|
6782
6806
|
Mt as TreeRowService,
|
|
6783
6807
|
js as TrueFalseCellRenderer,
|
|
6784
|
-
|
|
6808
|
+
At as TrueFn,
|
|
6785
6809
|
Ie as TwoColorGradientArg,
|
|
6786
6810
|
K as UNIMPORTANT_TYPES,
|
|
6787
6811
|
te as UndefinedPropertyType,
|
|
@@ -6793,10 +6817,10 @@ export {
|
|
|
6793
6817
|
Ts as allCenter,
|
|
6794
6818
|
Ms as allLeft,
|
|
6795
6819
|
Is as allRight,
|
|
6796
|
-
|
|
6797
|
-
|
|
6820
|
+
As as bodyCenter,
|
|
6821
|
+
Rs as bodyLeft,
|
|
6798
6822
|
Es as bodyRight,
|
|
6799
|
-
|
|
6823
|
+
we as createHarmonizedShortcutByKeyboardEvent,
|
|
6800
6824
|
Ge as debounce,
|
|
6801
6825
|
Zs as editInputPipeForNumber,
|
|
6802
6826
|
ye as entitySuffix,
|
|
@@ -6807,8 +6831,8 @@ export {
|
|
|
6807
6831
|
ie as isAreaModelTree,
|
|
6808
6832
|
Ze as isCheckboxColumnDef,
|
|
6809
6833
|
N as isTreeRow,
|
|
6810
|
-
|
|
6811
|
-
|
|
6834
|
+
xs as px0,
|
|
6835
|
+
ws as px10,
|
|
6812
6836
|
ds as px100,
|
|
6813
6837
|
cs as px110,
|
|
6814
6838
|
as as px120,
|