@guiexpert/table 1.1.77 → 1.1.79
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 +69 -66
- package/index.js +141 -113
- package/lib/table/render-scope.d.ts +12 -2
- package/lib/table/table-api.d.ts +5 -0
- package/lib/table/table-scope.d.ts +0 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function Vt(d, e = 500) {
|
|
2
2
|
let t = null, s = 0;
|
|
3
3
|
return function(...o) {
|
|
4
4
|
const i = Date.now(), r = e - (i - s);
|
|
@@ -15,7 +15,7 @@ function Ge(d, e = 500) {
|
|
|
15
15
|
}, e);
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Bt(d = 500) {
|
|
19
19
|
return function(e, t, s) {
|
|
20
20
|
let o = 0;
|
|
21
21
|
const i = s.value;
|
|
@@ -25,8 +25,8 @@ function Vt(d = 500) {
|
|
|
25
25
|
}, s;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const De = "any", j = "undefined",
|
|
29
|
-
class
|
|
28
|
+
const De = "any", j = "undefined", Fe = "null", Pe = "string", ce = "number", de = "boolean", Le = "Array", U = "object", X = [Fe, j, De];
|
|
29
|
+
class Oe {
|
|
30
30
|
constructor(e) {
|
|
31
31
|
this.propertyName = e, this.type = De;
|
|
32
32
|
}
|
|
@@ -38,12 +38,12 @@ class se {
|
|
|
38
38
|
}
|
|
39
39
|
class ze {
|
|
40
40
|
constructor(e) {
|
|
41
|
-
this.propertyName = e, this.type =
|
|
41
|
+
this.propertyName = e, this.type = Fe;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
class je {
|
|
45
45
|
constructor(e) {
|
|
46
|
-
this.propertyName = e, this.type =
|
|
46
|
+
this.propertyName = e, this.type = Pe;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
class Ue {
|
|
@@ -56,9 +56,9 @@ class Ye {
|
|
|
56
56
|
this.propertyName = e, this.type = de;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
class
|
|
59
|
+
class B {
|
|
60
60
|
constructor(e, t = []) {
|
|
61
|
-
this.propertyName = e, this.items = t, this.type =
|
|
61
|
+
this.propertyName = e, this.items = t, this.type = Le;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
class _e {
|
|
@@ -100,7 +100,7 @@ class Ht {
|
|
|
100
100
|
const s = [];
|
|
101
101
|
if (!this.rootPropertyType)
|
|
102
102
|
return s;
|
|
103
|
-
if (e instanceof
|
|
103
|
+
if (e instanceof B) {
|
|
104
104
|
const o = e.items.find((i) => i.type === U);
|
|
105
105
|
if (o && o instanceof D) {
|
|
106
106
|
const i = o.properties;
|
|
@@ -119,13 +119,13 @@ class Ht {
|
|
|
119
119
|
this.iteratePropertyItems(e, n.properties, l);
|
|
120
120
|
else {
|
|
121
121
|
let a = "";
|
|
122
|
-
if (n instanceof
|
|
122
|
+
if (n instanceof B) {
|
|
123
123
|
const p = n.items.find((m) => m.type === U);
|
|
124
124
|
p && p instanceof D && (a = p.className);
|
|
125
125
|
}
|
|
126
126
|
const c = this.getReadableColumnLabel(l);
|
|
127
127
|
let h = 100, u = "", g = "ge-table-text-align-left";
|
|
128
|
-
if (n.type ===
|
|
128
|
+
if (n.type === Le) {
|
|
129
129
|
if (this.allowCustomRenderer && a) {
|
|
130
130
|
const p = `${a}ArrayCellRenderer`;
|
|
131
131
|
u = ` bodyRenderer: new ${p}(),`, g = "", this.renderCumstomCellRenderer(a, p);
|
|
@@ -262,7 +262,7 @@ class ye {
|
|
|
262
262
|
}
|
|
263
263
|
class Ke {
|
|
264
264
|
constructor() {
|
|
265
|
-
this.property = "", this.value = "", this.path = "", this.propertyItem = new _e("", [new
|
|
265
|
+
this.property = "", this.value = "", this.path = "", this.propertyItem = new _e("", [new Oe("")]);
|
|
266
266
|
}
|
|
267
267
|
toString() {
|
|
268
268
|
var e;
|
|
@@ -515,7 +515,7 @@ class Wt {
|
|
|
515
515
|
const l = r.propertyItem.types.filter((a) => !X.includes(a.type));
|
|
516
516
|
if (l.length === 1) {
|
|
517
517
|
const a = l[0];
|
|
518
|
-
if (a instanceof
|
|
518
|
+
if (a instanceof B) {
|
|
519
519
|
n = !0;
|
|
520
520
|
for (const c of o.propertyItem.types)
|
|
521
521
|
a.items.push(c);
|
|
@@ -527,7 +527,7 @@ class Wt {
|
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
return t || new
|
|
530
|
+
return t || new Oe("");
|
|
531
531
|
}
|
|
532
532
|
logValueInfos(e) {
|
|
533
533
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -599,7 +599,7 @@ class Wt {
|
|
|
599
599
|
]);
|
|
600
600
|
}
|
|
601
601
|
createPropertyType(e, t) {
|
|
602
|
-
return e === null ? new ze(t) : e === void 0 ? new se(t) : typeof e ===
|
|
602
|
+
return e === null ? new ze(t) : e === void 0 ? new se(t) : typeof e === Pe ? new je(t) : typeof e === ce && !isNaN(e) ? new Ue(t) : typeof e === de ? new Ye(t) : Array.isArray(e) ? new B(t) : typeof e === U ? new D(t, Xe(t)) : new se(t);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
class Nt {
|
|
@@ -620,7 +620,7 @@ class Nt {
|
|
|
620
620
|
}
|
|
621
621
|
renderTypeScriptInterfacesRecursive(e = this.rootPropertyType, t = [], s = this.rootName) {
|
|
622
622
|
if (!e) return t;
|
|
623
|
-
if (e instanceof
|
|
623
|
+
if (e instanceof B) {
|
|
624
624
|
for (const o of e.items)
|
|
625
625
|
if (this.renderTypeScriptInterfacesRecursive(o, t, s), o instanceof D) {
|
|
626
626
|
const i = o;
|
|
@@ -638,7 +638,7 @@ class Nt {
|
|
|
638
638
|
for (const a of r.types)
|
|
639
639
|
if (a instanceof D)
|
|
640
640
|
a !== this.rootPropertyType && this.renderTypeScriptInterfacesFifo.push(a);
|
|
641
|
-
else if (a instanceof
|
|
641
|
+
else if (a instanceof B)
|
|
642
642
|
for (const c of a.items)
|
|
643
643
|
c instanceof D && this.renderTypeScriptInterfacesFifo.push(c);
|
|
644
644
|
}
|
|
@@ -655,7 +655,7 @@ class Nt {
|
|
|
655
655
|
return t.includes(this.orOperator) ? "(" + t + ")" : t;
|
|
656
656
|
}
|
|
657
657
|
renderType(e, t) {
|
|
658
|
-
if (e instanceof
|
|
658
|
+
if (e instanceof B) {
|
|
659
659
|
const s = e.items.map((o) => this.renderType(o, t)).join(this.orOperator);
|
|
660
660
|
return s.includes(this.orOperator) ? `(${s})[]` : `${s}[]`;
|
|
661
661
|
}
|
|
@@ -747,7 +747,7 @@ class $e {
|
|
|
747
747
|
this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
class
|
|
750
|
+
class Ve {
|
|
751
751
|
constructor(e = new _("↑", "", ["ge-header-sorted-asc"]), t = new _("↓", "", ["ge-header-sorted-desc"]), s = new _("↑", "color:transparent;", [])) {
|
|
752
752
|
this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
|
|
753
753
|
}
|
|
@@ -872,7 +872,7 @@ class Qe {
|
|
|
872
872
|
}
|
|
873
873
|
return this.domService.appendChild(e, n), n;
|
|
874
874
|
}
|
|
875
|
-
addSortedIcon(e, t = "", s = new
|
|
875
|
+
addSortedIcon(e, t = "", s = new Ve(), o = -1) {
|
|
876
876
|
const i = this.domService.createElement("div");
|
|
877
877
|
this.domService.addClass(i, "ge-table-sorted-icon-div"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "top", "0"), this.domService.setStyle(i, "right", "0"), this.domService.setStyle(i, "width", "20px"), this.domService.setStyle(i, "background", "transparent"), this.domService.setStyle(i, "cursor", "pointer"), this.domService.setAttribute(i, "data-col-index", `${o}`), this.domService.setAttribute(i, "data-area", "header");
|
|
878
878
|
let r;
|
|
@@ -1179,7 +1179,7 @@ class ue {
|
|
|
1179
1179
|
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
-
class
|
|
1182
|
+
class Be {
|
|
1183
1183
|
genericSortComparator(e, t, s) {
|
|
1184
1184
|
if (typeof e == "number" && typeof t == "number")
|
|
1185
1185
|
return s * (e - t);
|
|
@@ -1197,9 +1197,9 @@ class Ve {
|
|
|
1197
1197
|
return s * ("" + e).localeCompare("" + t);
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
class
|
|
1200
|
+
class L extends ue {
|
|
1201
1201
|
constructor(e, t, s, o = [], i = "ge-selected-row", r = "ge-focused-row") {
|
|
1202
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.sorterService = new
|
|
1202
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.sorterService = new Be(), this._focusedRowIndex = 0, this.filteredRows = [...t], this.properties = o.map((n) => n.property);
|
|
1203
1203
|
}
|
|
1204
1204
|
getFocusedRowIndex() {
|
|
1205
1205
|
return this._focusedRowIndex;
|
|
@@ -1583,7 +1583,7 @@ class st {
|
|
|
1583
1583
|
*/
|
|
1584
1584
|
setRows(e) {
|
|
1585
1585
|
const t = this.getBodyModel();
|
|
1586
|
-
t instanceof
|
|
1586
|
+
t instanceof L ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
|
|
1587
1587
|
}
|
|
1588
1588
|
/**
|
|
1589
1589
|
* Adds new rows to the end of the table body.
|
|
@@ -1601,7 +1601,7 @@ class st {
|
|
|
1601
1601
|
*/
|
|
1602
1602
|
addRows(e) {
|
|
1603
1603
|
const t = this.getBodyModel();
|
|
1604
|
-
if (t instanceof
|
|
1604
|
+
if (t instanceof L) {
|
|
1605
1605
|
const s = t;
|
|
1606
1606
|
let o = s.getAllRows();
|
|
1607
1607
|
s.setRows([...o, ...e]);
|
|
@@ -1626,7 +1626,7 @@ class st {
|
|
|
1626
1626
|
*/
|
|
1627
1627
|
addRowsAt(e, t) {
|
|
1628
1628
|
const s = this.getBodyModel();
|
|
1629
|
-
if (s instanceof
|
|
1629
|
+
if (s instanceof L) {
|
|
1630
1630
|
const o = s;
|
|
1631
1631
|
let i = o.getAllRows();
|
|
1632
1632
|
o.setRows([...i.slice(0, t), ...e, ...i.slice(t)]);
|
|
@@ -1652,7 +1652,7 @@ class st {
|
|
|
1652
1652
|
*/
|
|
1653
1653
|
removeRows(e, t = (s, o) => s === o) {
|
|
1654
1654
|
const s = this.getBodyModel();
|
|
1655
|
-
if (s instanceof
|
|
1655
|
+
if (s instanceof L) {
|
|
1656
1656
|
const o = s, i = o.getAllRows().filter((r) => !e.some((n) => t(r, n)));
|
|
1657
1657
|
o.setRows(i);
|
|
1658
1658
|
} else
|
|
@@ -1693,7 +1693,7 @@ class st {
|
|
|
1693
1693
|
*/
|
|
1694
1694
|
findRows(e, t = (s, o) => s === o) {
|
|
1695
1695
|
const s = this.getBodyModel();
|
|
1696
|
-
return s instanceof
|
|
1696
|
+
return s instanceof L ? s.getAllRows().filter((i) => e.some((r) => t(i, r))) : (console.warn("findRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s), []);
|
|
1697
1697
|
}
|
|
1698
1698
|
/**
|
|
1699
1699
|
* Searches through the filtered rows of the table to find a row that matches specific criteria.
|
|
@@ -1750,7 +1750,7 @@ class st {
|
|
|
1750
1750
|
*/
|
|
1751
1751
|
findRowFromFilteredRowsByAllCriteria(e, t) {
|
|
1752
1752
|
const s = this.getBodyModel();
|
|
1753
|
-
if (s instanceof
|
|
1753
|
+
if (s instanceof L)
|
|
1754
1754
|
return s.getFilteredRows().find((i) => t(e, i));
|
|
1755
1755
|
console.warn("findRowFromFilteredRowsByAllCriteria(...) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1756
1756
|
}
|
|
@@ -1797,7 +1797,7 @@ class st {
|
|
|
1797
1797
|
*/
|
|
1798
1798
|
findRowFromAllRowsByAllCriteria(e, t) {
|
|
1799
1799
|
const s = this.getBodyModel();
|
|
1800
|
-
if (s instanceof
|
|
1800
|
+
if (s instanceof L)
|
|
1801
1801
|
return s.getAllRows().find((i) => t(e, i));
|
|
1802
1802
|
console.warn("findRowFromAllRowsByAllCriteria(...) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1803
1803
|
}
|
|
@@ -1822,7 +1822,7 @@ class st {
|
|
|
1822
1822
|
*/
|
|
1823
1823
|
updateRows(e, t = (s, o) => s === o) {
|
|
1824
1824
|
const s = this.getBodyModel();
|
|
1825
|
-
if (s instanceof
|
|
1825
|
+
if (s instanceof L) {
|
|
1826
1826
|
let i = s.getAllRows();
|
|
1827
1827
|
for (const r of i)
|
|
1828
1828
|
for (const n of e)
|
|
@@ -1991,6 +1991,21 @@ class st {
|
|
|
1991
1991
|
getFirstVisibleRowIndex() {
|
|
1992
1992
|
return this.tableScope.getFirstVisibleRowIndex();
|
|
1993
1993
|
}
|
|
1994
|
+
getFirstFullVisibleRowIndex() {
|
|
1995
|
+
return this.tableScope.getFirstFullVisibleRowIndex();
|
|
1996
|
+
}
|
|
1997
|
+
getLastVisibleRowIndex() {
|
|
1998
|
+
return this.tableScope.getLastVisibleRowIndex();
|
|
1999
|
+
}
|
|
2000
|
+
getLastFullVisibleRowIndex() {
|
|
2001
|
+
return this.tableScope.getLastFullVisibleRowIndex();
|
|
2002
|
+
}
|
|
2003
|
+
setLoggingActive(e) {
|
|
2004
|
+
this.tableScope.loggingActive = e;
|
|
2005
|
+
}
|
|
2006
|
+
isLoggingActive() {
|
|
2007
|
+
return this.tableScope.loggingActive;
|
|
2008
|
+
}
|
|
1994
2009
|
}
|
|
1995
2010
|
class pe {
|
|
1996
2011
|
constructor(e) {
|
|
@@ -2141,14 +2156,14 @@ class nt extends pe {
|
|
|
2141
2156
|
}
|
|
2142
2157
|
}
|
|
2143
2158
|
}
|
|
2144
|
-
class
|
|
2159
|
+
class O {
|
|
2145
2160
|
constructor(e = 0, t = 0, s = 0, o = 0, i) {
|
|
2146
2161
|
this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
|
|
2147
2162
|
}
|
|
2148
2163
|
}
|
|
2149
2164
|
class lt {
|
|
2150
2165
|
constructor(e, t, s, o) {
|
|
2151
|
-
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new
|
|
2166
|
+
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new O(), this.areaBodyCenterGeo = new O(), this.areaBodyEastGeo = new O();
|
|
2152
2167
|
const i = this.hostElement;
|
|
2153
2168
|
i.innerText = "", this.dom.setAttribute(i, "tabindex", "0"), this.dom.setStyle(
|
|
2154
2169
|
this.dom.addClass("ge-table", i),
|
|
@@ -2393,11 +2408,11 @@ class I {
|
|
|
2393
2408
|
class ct extends lt {
|
|
2394
2409
|
constructor(e, t, s, o) {
|
|
2395
2410
|
var r, n;
|
|
2396
|
-
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 = {
|
|
2411
|
+
super(e, t, s, o), this.firstVisibleRowIndex = -1, this.lastVisibleRowIndex = -1, this.firstFullVisibleRowIndex = -1, this.lastFullVisibleRowIndex = -1, this.displayedRowCount = 0, this.pixelLimitForFullVisible = 5, this.loggingActive = !1, this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
|
|
2397
2412
|
header: [],
|
|
2398
2413
|
body: [],
|
|
2399
2414
|
footer: []
|
|
2400
|
-
}, this.tree = !1, this.colAndRowspanModels = new I(), this.
|
|
2415
|
+
}, this.tree = !1, this.colAndRowspanModels = new I(), 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), re(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
2401
2416
|
(l) => {
|
|
2402
2417
|
var a;
|
|
2403
2418
|
this.colAndRowspanModels[l] = new at(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
|
|
@@ -2486,19 +2501,19 @@ class ct extends lt {
|
|
|
2486
2501
|
for (const t of this.removables)
|
|
2487
2502
|
t.remove();
|
|
2488
2503
|
this.hideHoverRow(), this.hideHoverColumn(), this.scrollTop = this.scrollViewport.scrollTop, this.scrollLeft = this.scrollViewport.scrollLeft, this.debounce(this.checkForScrollPosSaving.bind(this)), this.scrollFactorY = this.scrollTop / (this.scrollViewport.scrollHeight - this.scrollViewport.clientHeight), this.scrollFactorX = this.scrollLeft / (this.scrollViewport.scrollWidth - this.scrollViewport.clientWidth), isNaN(this.scrollFactorY) && (this.scrollFactorY = 0), isNaN(this.scrollFactorX) && (this.scrollFactorX = 0), this.adjustBody(), this.adjustArea("footer"), this.adjustArea("header"), this.tableOptions.tableTopBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
2489
|
-
new
|
|
2504
|
+
new O(0, this.hostElement.clientWidth, 1, 0),
|
|
2490
2505
|
this.hostElement,
|
|
2491
2506
|
"ge-table-border"
|
|
2492
2507
|
)), this.tableOptions.tableBottomBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
2493
|
-
new
|
|
2508
|
+
new O(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
|
|
2494
2509
|
this.hostElement,
|
|
2495
2510
|
"ge-table-border"
|
|
2496
2511
|
)), this.tableModel.getFixedLeftColumnCount() > 0 && this.removables.push(this.dom.addVerticalBorder(
|
|
2497
|
-
new
|
|
2512
|
+
new O(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
|
|
2498
2513
|
this.hostElement,
|
|
2499
2514
|
"ge-table-body-west-vertical-border"
|
|
2500
2515
|
)), ((e = this.tableModel.getAreaModel("header")) == null ? void 0 : e.getRowCount()) > 0 && this.removables.push(this.dom.addHorizontalBorder(
|
|
2501
|
-
new
|
|
2516
|
+
new O(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
|
|
2502
2517
|
this.hostElement,
|
|
2503
2518
|
"ge-table-body-west-vertical-border"
|
|
2504
2519
|
));
|
|
@@ -2556,6 +2571,21 @@ class ct extends lt {
|
|
|
2556
2571
|
this.dom.setStyle(l, p, g[p]);
|
|
2557
2572
|
}
|
|
2558
2573
|
}
|
|
2574
|
+
getFirstVisibleRowIndex() {
|
|
2575
|
+
return this.firstVisibleRowIndex;
|
|
2576
|
+
}
|
|
2577
|
+
getLastVisibleRowIndex() {
|
|
2578
|
+
return this.lastVisibleRowIndex;
|
|
2579
|
+
}
|
|
2580
|
+
getFirstFullVisibleRowIndex() {
|
|
2581
|
+
return this.firstFullVisibleRowIndex;
|
|
2582
|
+
}
|
|
2583
|
+
getLastFullVisibleRowIndex() {
|
|
2584
|
+
return this.lastFullVisibleRowIndex;
|
|
2585
|
+
}
|
|
2586
|
+
getDisplayedRowCount() {
|
|
2587
|
+
return this.displayedRowCount;
|
|
2588
|
+
}
|
|
2559
2589
|
/**
|
|
2560
2590
|
* Stores the widths of all columns in the table.
|
|
2561
2591
|
*
|
|
@@ -2661,10 +2691,11 @@ class ct extends lt {
|
|
|
2661
2691
|
}
|
|
2662
2692
|
let u = t;
|
|
2663
2693
|
const g = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), m = this.tableModel.getFixedLeftColumnCount();
|
|
2694
|
+
e === "body" && (this.firstVisibleRowIndex = -1, this.firstFullVisibleRowIndex = -1, this.lastVisibleRowIndex = -1, this.lastFullVisibleRowIndex = -1);
|
|
2664
2695
|
for (let b = 0; b < h; b++) {
|
|
2665
2696
|
const w = u, S = b === h - 1, R = this.tableModel.getRowHeight(e, b);
|
|
2666
2697
|
if (w + R > 0) {
|
|
2667
|
-
this.firstVisibleRowIndex = b;
|
|
2698
|
+
e === "body" && this.firstVisibleRowIndex === -1 && (this.firstVisibleRowIndex = b, this.firstFullVisibleRowIndex = w < -this.pixelLimitForFullVisible ? this.firstVisibleRowIndex + 1 : this.firstVisibleRowIndex);
|
|
2668
2699
|
let C = { left: n, width: l, height: R, top: w, index: b }, x = this.dom.addRowDiv(o, C, b, e, "center");
|
|
2669
2700
|
const k = m;
|
|
2670
2701
|
if (this.adjustColumnsToRowParent({
|
|
@@ -2703,7 +2734,7 @@ class ct extends lt {
|
|
|
2703
2734
|
})), e === "header" && this.tree && b === h - 1) {
|
|
2704
2735
|
const E = this.dom.applyStyle(
|
|
2705
2736
|
this.dom.setAttribute(
|
|
2706
|
-
this.dom.addDiv(x, new
|
|
2737
|
+
this.dom.addDiv(x, new O(16, 20, 20, 8)),
|
|
2707
2738
|
"data-ge-action",
|
|
2708
2739
|
"toggleExpandCollapseAll"
|
|
2709
2740
|
),
|
|
@@ -2716,11 +2747,14 @@ class ct extends lt {
|
|
|
2716
2747
|
}
|
|
2717
2748
|
}
|
|
2718
2749
|
if (u = u + R, u > r) {
|
|
2719
|
-
e === "body" && (this.displayedRowCount = this.
|
|
2750
|
+
e === "body" && (this.lastVisibleRowIndex = b, this.lastFullVisibleRowIndex = r - u < -this.pixelLimitForFullVisible ? b - 1 : b, this.displayedRowCount = this.lastFullVisibleRowIndex - this.firstFullVisibleRowIndex + 1);
|
|
2720
2751
|
break;
|
|
2721
2752
|
}
|
|
2722
2753
|
}
|
|
2723
|
-
if (this.
|
|
2754
|
+
if (this.loggingActive && e === "body" && console.log("render scope: this.firstVisibleRowIndex <- " + this.firstVisibleRowIndex + `
|
|
2755
|
+
render scope: this.firstFullVisibleRowIndex <- ` + this.firstFullVisibleRowIndex + `
|
|
2756
|
+
render scope: this.lastVisibleRowIndex <- ` + this.lastVisibleRowIndex + `
|
|
2757
|
+
render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex), this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
2724
2758
|
const b = ((f = this.colAndRowspanModels[e]) == null ? void 0 : f.getRanges()) ?? [];
|
|
2725
2759
|
if (b.length)
|
|
2726
2760
|
for (const w of b) {
|
|
@@ -2883,7 +2917,7 @@ class ct extends lt {
|
|
|
2883
2917
|
if (p = p + w, p > this.areaBodyCenterGeo.width)
|
|
2884
2918
|
break;
|
|
2885
2919
|
}
|
|
2886
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new
|
|
2920
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new O(p - 1, 1, o.height, 0), i);
|
|
2887
2921
|
}
|
|
2888
2922
|
/**
|
|
2889
2923
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -3713,7 +3747,7 @@ class J {
|
|
|
3713
3747
|
header: 34,
|
|
3714
3748
|
body: 34,
|
|
3715
3749
|
footer: 34
|
|
3716
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new $e(), this.headerGroupOptions = new me(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new
|
|
3750
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new $e(), this.headerGroupOptions = new me(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Ve(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new wt(), this.getSelectionModel = () => St, this.getFocusModel = () => Ct;
|
|
3717
3751
|
}
|
|
3718
3752
|
}
|
|
3719
3753
|
const N = class N {
|
|
@@ -4344,9 +4378,6 @@ class He extends ct {
|
|
|
4344
4378
|
sort(e) {
|
|
4345
4379
|
this.tableModel.sort(e);
|
|
4346
4380
|
}
|
|
4347
|
-
getDisplayedRowCount() {
|
|
4348
|
-
return this.displayedRowCount;
|
|
4349
|
-
}
|
|
4350
4381
|
/**
|
|
4351
4382
|
* Ensures that a specific row is visible in the viewport by scrolling if necessary.
|
|
4352
4383
|
* This method checks if the target row is within the currently visible range and
|
|
@@ -4399,11 +4430,8 @@ class He extends ct {
|
|
|
4399
4430
|
* @see {@link getDisplayedRowCount} - Related method for getting visible row count
|
|
4400
4431
|
*/
|
|
4401
4432
|
ensureRowIsVisible(e) {
|
|
4402
|
-
const t = this.
|
|
4403
|
-
return e < t ? (this.scrollToIndex(0, e
|
|
4404
|
-
}
|
|
4405
|
-
getFirstVisibleRowIndex() {
|
|
4406
|
-
return this.firstVisibleRowIndex;
|
|
4433
|
+
const t = this.getFirstFullVisibleRowIndex(), s = this.getLastFullVisibleRowIndex(), o = this.getDisplayedRowCount();
|
|
4434
|
+
return e < t ? (this.scrollToIndex(0, e), !0) : e > s ? (this.scrollToIndex(0, e - o + 1), !0) : !1;
|
|
4407
4435
|
}
|
|
4408
4436
|
}
|
|
4409
4437
|
class Gt extends ne {
|
|
@@ -4734,7 +4762,7 @@ class H {
|
|
|
4734
4762
|
}
|
|
4735
4763
|
}
|
|
4736
4764
|
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"), Re = 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"), fs = new y(60, "px"), gs = 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");
|
|
4737
|
-
class
|
|
4765
|
+
class F extends ue {
|
|
4738
4766
|
constructor(e, t, s, o = []) {
|
|
4739
4767
|
super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
|
|
4740
4768
|
}
|
|
@@ -4762,7 +4790,7 @@ class P extends ue {
|
|
|
4762
4790
|
this.filteredArr.forEach((s) => this.arrayMove(s, e, t)), super.changeColumnOrder(e, t);
|
|
4763
4791
|
}
|
|
4764
4792
|
}
|
|
4765
|
-
class
|
|
4793
|
+
class P {
|
|
4766
4794
|
constructor(e = "body") {
|
|
4767
4795
|
this.areaIdent = e, this.rowSelectionModel = void 0;
|
|
4768
4796
|
}
|
|
@@ -4849,7 +4877,7 @@ class Mt {
|
|
|
4849
4877
|
}
|
|
4850
4878
|
class Ae extends ue {
|
|
4851
4879
|
constructor(e, t, s, o = []) {
|
|
4852
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new
|
|
4880
|
+
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];
|
|
4853
4881
|
}
|
|
4854
4882
|
changeColumnOrder(e, t) {
|
|
4855
4883
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
@@ -5442,7 +5470,7 @@ class oe {
|
|
|
5442
5470
|
return this.tableScope;
|
|
5443
5471
|
}
|
|
5444
5472
|
}
|
|
5445
|
-
class Te extends
|
|
5473
|
+
class Te extends L {
|
|
5446
5474
|
constructor(e, t, s, o, i = "ge-selected-row", r = "ge-focused-row") {
|
|
5447
5475
|
super(
|
|
5448
5476
|
e,
|
|
@@ -5454,7 +5482,7 @@ class Te extends O {
|
|
|
5454
5482
|
), this.areaIdent = e, this.rows = t, this.columnDefs = s, this.defaultRowHeight = o;
|
|
5455
5483
|
}
|
|
5456
5484
|
}
|
|
5457
|
-
class
|
|
5485
|
+
class V {
|
|
5458
5486
|
/**
|
|
5459
5487
|
* TableFactory
|
|
5460
5488
|
*
|
|
@@ -5510,22 +5538,22 @@ class B {
|
|
|
5510
5538
|
f > -1 && (e.defaultRowHeights.footer = f);
|
|
5511
5539
|
}
|
|
5512
5540
|
}
|
|
5513
|
-
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((f) => new H(f, f.toUpperCase(), Re)) : (o = e.rows) != null && o.length ? e.columnDefs = Object.keys(e.rows[0]).map((f) => new H(f, f.toUpperCase(), Re)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (n = e.columnSizes) != null && n.length ? e.columnCount = (l = e.columnSizes) == null ? void 0 : l.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((a = e.headerData) != null && a.length ? e.headerAreaModel = new
|
|
5541
|
+
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((f) => new H(f, f.toUpperCase(), Re)) : (o = e.rows) != null && o.length ? e.columnDefs = Object.keys(e.rows[0]).map((f) => new H(f, f.toUpperCase(), Re)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (n = e.columnSizes) != null && n.length ? e.columnCount = (l = e.columnSizes) == null ? void 0 : l.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((a = e.headerData) != null && a.length ? e.headerAreaModel = new F(
|
|
5514
5542
|
"header",
|
|
5515
5543
|
e.headerData,
|
|
5516
5544
|
e.defaultRowHeights.header,
|
|
5517
5545
|
e.columnDefs
|
|
5518
|
-
) : (c = e.columnDefs) != null && c.length ? e.headerAreaModel = new
|
|
5546
|
+
) : (c = e.columnDefs) != null && c.length ? e.headerAreaModel = new F(
|
|
5519
5547
|
"header",
|
|
5520
5548
|
[e.columnDefs.map((f) => f.headerLabel)],
|
|
5521
5549
|
e.defaultRowHeights.header,
|
|
5522
5550
|
e.columnDefs
|
|
5523
|
-
) : e.headerAreaModel = new
|
|
5551
|
+
) : e.headerAreaModel = new P("header")), e.footerAreaModel || ((h = e.footerData) != null && h.length ? e.footerAreaModel = new F(
|
|
5524
5552
|
"footer",
|
|
5525
5553
|
e.footerData,
|
|
5526
5554
|
e.defaultRowHeights.footer,
|
|
5527
5555
|
e.columnDefs
|
|
5528
|
-
) : e.footerAreaModel = new
|
|
5556
|
+
) : e.footerAreaModel = new P("footer")), !e.bodyAreaModel)
|
|
5529
5557
|
if (e.rows)
|
|
5530
5558
|
if ((u = e.rows) != null && u.length && G(e.rows[0])) {
|
|
5531
5559
|
const f = e.rows;
|
|
@@ -5542,11 +5570,11 @@ class B {
|
|
|
5542
5570
|
e.columnDefs,
|
|
5543
5571
|
e.defaultRowHeights.body
|
|
5544
5572
|
);
|
|
5545
|
-
else e.bodyData ? e.bodyAreaModel = new
|
|
5573
|
+
else e.bodyData ? e.bodyAreaModel = new F(
|
|
5546
5574
|
"body",
|
|
5547
5575
|
e.bodyData,
|
|
5548
5576
|
e.defaultRowHeights.body
|
|
5549
|
-
) : e.bodyAreaModel = new
|
|
5577
|
+
) : e.bodyAreaModel = new P("body");
|
|
5550
5578
|
return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((p = e.tableOptions) != null && p.getSelectionModel) && (e.getSelectionModel = (m = e.tableOptions) == null ? void 0 : m.getSelectionModel), new oe(
|
|
5551
5579
|
e.headerAreaModel,
|
|
5552
5580
|
e.bodyAreaModel,
|
|
@@ -5581,7 +5609,7 @@ class B {
|
|
|
5581
5609
|
* @method
|
|
5582
5610
|
*/
|
|
5583
5611
|
static buildByTypedRowsParam(e) {
|
|
5584
|
-
return
|
|
5612
|
+
return V.buildByTypedRows(
|
|
5585
5613
|
e.rows ?? [],
|
|
5586
5614
|
e.columnDefs,
|
|
5587
5615
|
e.tableOptions ?? new J(),
|
|
@@ -5634,10 +5662,10 @@ class B {
|
|
|
5634
5662
|
r.body,
|
|
5635
5663
|
t
|
|
5636
5664
|
);
|
|
5637
|
-
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Ee(a)),
|
|
5638
|
-
headerAreaModel: new
|
|
5665
|
+
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Ee(a)), V.createByAreaModelsParam({
|
|
5666
|
+
headerAreaModel: new F("header", [t.map((h) => h.headerLabel)], r.header),
|
|
5639
5667
|
bodyAreaModel: c,
|
|
5640
|
-
footerAreaModel: new
|
|
5668
|
+
footerAreaModel: new F("footer", [], r.footer),
|
|
5641
5669
|
columnDefs: t,
|
|
5642
5670
|
fixedLeftColumnCount: o,
|
|
5643
5671
|
fixedRightColumnCount: i,
|
|
@@ -5648,7 +5676,7 @@ class B {
|
|
|
5648
5676
|
overridingColumnWidth: -1
|
|
5649
5677
|
});
|
|
5650
5678
|
}
|
|
5651
|
-
return
|
|
5679
|
+
return V.createByObjectArrayParam({
|
|
5652
5680
|
rows: e,
|
|
5653
5681
|
columnDefs: t,
|
|
5654
5682
|
fixedLeftColumnCount: o,
|
|
@@ -5702,7 +5730,7 @@ class B {
|
|
|
5702
5730
|
*/
|
|
5703
5731
|
static createByObjectArrayParam(e) {
|
|
5704
5732
|
const t = e.rowCheckboxVisible !== void 0 ? e.rowCheckboxVisible : !1;
|
|
5705
|
-
return
|
|
5733
|
+
return V.createByObjectArray(
|
|
5706
5734
|
e.rows,
|
|
5707
5735
|
e.header ?? [],
|
|
5708
5736
|
e.footer ?? [],
|
|
@@ -5755,7 +5783,7 @@ class B {
|
|
|
5755
5783
|
* @return A new instance of `TableModel` is created using the provided parameters.
|
|
5756
5784
|
* If a parameter isn't provided, the default value is used.
|
|
5757
5785
|
*/
|
|
5758
|
-
static createByAreaModels(e = new
|
|
5786
|
+
static createByAreaModels(e = new P(), t, s = new P(), o = 0, i = 0, r = !1, n = new z(), l, a = [], c = -1, h) {
|
|
5759
5787
|
return new oe(
|
|
5760
5788
|
e,
|
|
5761
5789
|
t,
|
|
@@ -5807,10 +5835,10 @@ class B {
|
|
|
5807
5835
|
* });
|
|
5808
5836
|
*/
|
|
5809
5837
|
static createByAreaModelsParam(e) {
|
|
5810
|
-
return
|
|
5811
|
-
e.headerAreaModel ?? new
|
|
5838
|
+
return V.createByAreaModels(
|
|
5839
|
+
e.headerAreaModel ?? new P(),
|
|
5812
5840
|
e.bodyAreaModel,
|
|
5813
|
-
e.footerAreaModel ?? new
|
|
5841
|
+
e.footerAreaModel ?? new P(),
|
|
5814
5842
|
e.fixedLeftColumnCount ?? 0,
|
|
5815
5843
|
e.fixedRightColumnCount ?? 0,
|
|
5816
5844
|
e.rowCheckboxVisible === void 0 ? !1 : e.rowCheckboxVisible,
|
|
@@ -5871,8 +5899,8 @@ class B {
|
|
|
5871
5899
|
*/
|
|
5872
5900
|
static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new z(), l, a = []) {
|
|
5873
5901
|
let c;
|
|
5874
|
-
t != null && t.length ? c = new
|
|
5875
|
-
const h = s ? new
|
|
5902
|
+
t != null && t.length ? c = new F("header", t, n.header, l) : l != null && l.length ? c = new F("header", [l.map((g) => g.headerLabel)], n.header, l) : c = new P();
|
|
5903
|
+
const h = s ? new F("footer", s, n.footer, l) : new P(), u = new Te("body", e, l, n.body);
|
|
5876
5904
|
return new oe(
|
|
5877
5905
|
c,
|
|
5878
5906
|
u,
|
|
@@ -5992,17 +6020,17 @@ class Ds {
|
|
|
5992
6020
|
);
|
|
5993
6021
|
}
|
|
5994
6022
|
}
|
|
5995
|
-
class
|
|
6023
|
+
class Fs {
|
|
5996
6024
|
constructor(e = "down", t) {
|
|
5997
6025
|
this.status = e, this.originalEvent = t;
|
|
5998
6026
|
}
|
|
5999
6027
|
}
|
|
6000
|
-
class
|
|
6028
|
+
class Ps {
|
|
6001
6029
|
constructor(e, t, s, o, i = {}) {
|
|
6002
6030
|
this.area = e, this.rowIndex = t, this.columnIndex = s, this.value = o, this.cssClasses = i;
|
|
6003
6031
|
}
|
|
6004
6032
|
}
|
|
6005
|
-
class
|
|
6033
|
+
class Ls {
|
|
6006
6034
|
constructor() {
|
|
6007
6035
|
this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, s) => {
|
|
6008
6036
|
if (e && t && s.getRowId) {
|
|
@@ -6027,12 +6055,12 @@ class Os {
|
|
|
6027
6055
|
};
|
|
6028
6056
|
}
|
|
6029
6057
|
}
|
|
6030
|
-
class
|
|
6058
|
+
class Ft {
|
|
6031
6059
|
constructor(e, t, s, o = !1, i = "normal", r = void 0) {
|
|
6032
6060
|
this.data = e, this.property = t, this.toggle = s, this.closed = o, this.visibility = i, this.children = r, this.impl = "CellGroup";
|
|
6033
6061
|
}
|
|
6034
6062
|
}
|
|
6035
|
-
class
|
|
6063
|
+
class Pt extends Ft {
|
|
6036
6064
|
constructor(e, t = 0, s = 0, o) {
|
|
6037
6065
|
super(
|
|
6038
6066
|
e.data,
|
|
@@ -6157,7 +6185,7 @@ class T {
|
|
|
6157
6185
|
static buildGroupExts(e, t = [], s = 0, o) {
|
|
6158
6186
|
let i;
|
|
6159
6187
|
for (let r = 0; r < e.length; r++) {
|
|
6160
|
-
const n = e[r], l = new
|
|
6188
|
+
const n = e[r], l = new Pt(n, s, r, o);
|
|
6161
6189
|
i && (l.leftNeighbour = i, i.rightNeighbour = l), t.push(l), n.children && (l.children = T.buildGroupExts(n.children, [], s + 1, l)), i = l;
|
|
6162
6190
|
}
|
|
6163
6191
|
return t;
|
|
@@ -6199,7 +6227,7 @@ class T {
|
|
|
6199
6227
|
e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length && T.iterateThrowColumns(e, o.children);
|
|
6200
6228
|
}
|
|
6201
6229
|
}
|
|
6202
|
-
class
|
|
6230
|
+
class Os {
|
|
6203
6231
|
constructor() {
|
|
6204
6232
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
6205
6233
|
}
|
|
@@ -6468,12 +6496,12 @@ class $s {
|
|
|
6468
6496
|
return t.join(" ").toLowerCase();
|
|
6469
6497
|
}
|
|
6470
6498
|
}
|
|
6471
|
-
class
|
|
6499
|
+
class Vs {
|
|
6472
6500
|
static bodyRenderer(e) {
|
|
6473
6501
|
return new I(void 0, e, void 0);
|
|
6474
6502
|
}
|
|
6475
6503
|
}
|
|
6476
|
-
class
|
|
6504
|
+
class Bs {
|
|
6477
6505
|
constructor(e, t = !0, s = !1) {
|
|
6478
6506
|
this.property = e, this.skipCheckableCheck = t, this.readonly = s;
|
|
6479
6507
|
}
|
|
@@ -6681,7 +6709,7 @@ class $ {
|
|
|
6681
6709
|
this.action = e, this.label = t, this.icon = s, this.elementClass = o, this.elementType = i, this.enabled = r;
|
|
6682
6710
|
}
|
|
6683
6711
|
}
|
|
6684
|
-
class
|
|
6712
|
+
class Lt {
|
|
6685
6713
|
constructor(e, t) {
|
|
6686
6714
|
this.actionEventListener = e, this.crudActions = t;
|
|
6687
6715
|
}
|
|
@@ -6891,7 +6919,7 @@ class to {
|
|
|
6891
6919
|
this.minValue = e, this.minColor = t, this.middleValue = s, this.middleColor = o, this.maxValue = i, this.maxColor = r;
|
|
6892
6920
|
}
|
|
6893
6921
|
}
|
|
6894
|
-
class
|
|
6922
|
+
class Ot {
|
|
6895
6923
|
constructor(e = !0, t = !0, s = (r, n) => r * 10 + 10, o = 50, i = 450) {
|
|
6896
6924
|
this.autoCalc = e, this.takeHeaderLabelsIntoAccount = t, this.charCountToWidth = s, this.minWidth = o, this.maxWidth = i;
|
|
6897
6925
|
}
|
|
@@ -7044,7 +7072,7 @@ class $t {
|
|
|
7044
7072
|
], this.tableActions = [
|
|
7045
7073
|
new $("CREATE", "Create", "", "", "button"),
|
|
7046
7074
|
new $("DELETE_SELECTED", "Delete Selected", "", "", "button")
|
|
7047
|
-
], this.autoAddActionColumn = !0, this.columnWidths = new
|
|
7075
|
+
], this.autoAddActionColumn = !0, this.columnWidths = new Ot(), this.calcFixedRightColumnCount = (e) => e > 6 ? 1 : 0, this.getHeadersInit = () => ({}), this.getIdKey = () => "id", this.getIdByObject = (e) => (this.getIdKey() ?? "id") in e ? e.id : e, this.fetchList = (e) => {
|
|
7048
7076
|
const t = e.getHeadersInit ? e.getHeadersInit() : {};
|
|
7049
7077
|
let s = e.urls.list.url, o = e.urls.list.method ?? "GET";
|
|
7050
7078
|
return fetch(s, {
|
|
@@ -7128,12 +7156,12 @@ class so {
|
|
|
7128
7156
|
);
|
|
7129
7157
|
w.rendererMap = new I(
|
|
7130
7158
|
void 0,
|
|
7131
|
-
new
|
|
7159
|
+
new Lt(this, e.singleRowActions),
|
|
7132
7160
|
void 0
|
|
7133
7161
|
), p.push(w);
|
|
7134
7162
|
}
|
|
7135
7163
|
const m = 0, f = e.calcFixedRightColumnCount(p.length);
|
|
7136
|
-
this.tableModel =
|
|
7164
|
+
this.tableModel = V.buildByTypedRowsParam({
|
|
7137
7165
|
rows: i,
|
|
7138
7166
|
columnDefs: p,
|
|
7139
7167
|
tableOptions: this.tableOptions,
|
|
@@ -7244,27 +7272,27 @@ class oo {
|
|
|
7244
7272
|
export {
|
|
7245
7273
|
ue as AbstractAreaModel,
|
|
7246
7274
|
We as ActionEvent,
|
|
7247
|
-
|
|
7248
|
-
|
|
7275
|
+
Lt as ActionsCellRenderer,
|
|
7276
|
+
Oe as AnyPropertyType,
|
|
7249
7277
|
Ds as AreaMapFactory,
|
|
7250
|
-
|
|
7251
|
-
|
|
7278
|
+
Os as AreaModel,
|
|
7279
|
+
F as AreaModelArrayOfArrays,
|
|
7252
7280
|
_s as AreaModelCellGroups,
|
|
7253
|
-
|
|
7254
|
-
|
|
7281
|
+
P as AreaModelHidden,
|
|
7282
|
+
L as AreaModelObjectArray,
|
|
7255
7283
|
Te as AreaModelObjectArrayWithColumndefs,
|
|
7256
7284
|
Ae as AreaModelTree,
|
|
7257
7285
|
I as AreaObjectMap,
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7286
|
+
B as ArrayPropertyType,
|
|
7287
|
+
Ls as AutoRestoreOptions,
|
|
7288
|
+
Bt as AvoidDoubleExecution,
|
|
7261
7289
|
Ye as BooleanPropertyType,
|
|
7262
|
-
|
|
7263
|
-
|
|
7290
|
+
Ft as CellGroup,
|
|
7291
|
+
Pt as CellGroupExt,
|
|
7264
7292
|
ae as CellGroupExtCellRenderer,
|
|
7265
7293
|
A as CellRange,
|
|
7266
7294
|
T as CellgroupFactory,
|
|
7267
|
-
|
|
7295
|
+
Bs as CheckboxBooleanPropertyCellRenderer,
|
|
7268
7296
|
Ie as CheckboxCellRenderer,
|
|
7269
7297
|
ks as CheckboxColumnDef,
|
|
7270
7298
|
Tt as CheckboxModel,
|
|
@@ -7274,7 +7302,7 @@ export {
|
|
|
7274
7302
|
eo as ColorRgb,
|
|
7275
7303
|
H as ColumnDef,
|
|
7276
7304
|
Ht as ColumnDefGenerator,
|
|
7277
|
-
|
|
7305
|
+
Ot as ColumnWidths,
|
|
7278
7306
|
Qe as ConvenienceDomService,
|
|
7279
7307
|
q as CopyService,
|
|
7280
7308
|
$ as CrudAction,
|
|
@@ -7297,10 +7325,10 @@ export {
|
|
|
7297
7325
|
ut as GeCellIndices,
|
|
7298
7326
|
K as GeCssColorUtil,
|
|
7299
7327
|
$s as GeFilterService,
|
|
7300
|
-
|
|
7328
|
+
Fs as GeKeyEvent,
|
|
7301
7329
|
fe as GeModelChangeEvent,
|
|
7302
7330
|
he as GeMouseEvent,
|
|
7303
|
-
|
|
7331
|
+
O as GeoData,
|
|
7304
7332
|
_ as Icon,
|
|
7305
7333
|
vs as IndexAndPx,
|
|
7306
7334
|
wt as InputCellRenderer,
|
|
@@ -7318,12 +7346,12 @@ export {
|
|
|
7318
7346
|
D as ObjectPropertyType,
|
|
7319
7347
|
gt as OsxShortcutActionIdMapping,
|
|
7320
7348
|
De as PROPERTY_TYPE_KEY_ANY,
|
|
7321
|
-
|
|
7349
|
+
Le as PROPERTY_TYPE_KEY_ARRAY,
|
|
7322
7350
|
de as PROPERTY_TYPE_KEY_BOOLEAN,
|
|
7323
|
-
|
|
7351
|
+
Fe as PROPERTY_TYPE_KEY_NULL,
|
|
7324
7352
|
ce as PROPERTY_TYPE_KEY_NUMBER,
|
|
7325
7353
|
U as PROPERTY_TYPE_KEY_OBJECT,
|
|
7326
|
-
|
|
7354
|
+
Pe as PROPERTY_TYPE_KEY_STRING,
|
|
7327
7355
|
j as PROPERTY_TYPE_KEY_UNDEFINED,
|
|
7328
7356
|
Me as Padding,
|
|
7329
7357
|
qs as PositiveAndNegativeNumberRenderer,
|
|
@@ -7331,7 +7359,7 @@ export {
|
|
|
7331
7359
|
_e as PropertyItem,
|
|
7332
7360
|
Wt as PropertyTypeService,
|
|
7333
7361
|
ct as RenderScope,
|
|
7334
|
-
|
|
7362
|
+
Vs as Renderer,
|
|
7335
7363
|
kt as RequestChunk,
|
|
7336
7364
|
vt as ResizeHandler,
|
|
7337
7365
|
Nt as SchemeGenerator,
|
|
@@ -7343,15 +7371,15 @@ export {
|
|
|
7343
7371
|
yt as SimpleDomService,
|
|
7344
7372
|
y as Size,
|
|
7345
7373
|
dt as SortItem,
|
|
7346
|
-
|
|
7374
|
+
Ve as SortedOptions,
|
|
7347
7375
|
Ks as StarRatingCellRenderer,
|
|
7348
7376
|
rt as StoreStateCollapsedExpandService,
|
|
7349
7377
|
ot as StoreStateScrollPosService,
|
|
7350
7378
|
nt as StoreStateSortingService,
|
|
7351
7379
|
je as StringPropertyType,
|
|
7352
7380
|
st as TableApi,
|
|
7353
|
-
|
|
7354
|
-
|
|
7381
|
+
Ps as TableCellUpdateEvent,
|
|
7382
|
+
V as TableFactory,
|
|
7355
7383
|
oe as TableModel,
|
|
7356
7384
|
It as TableModelAndOptions,
|
|
7357
7385
|
J as TableOptions,
|
|
@@ -7422,6 +7450,6 @@ export {
|
|
|
7422
7450
|
ps as px70,
|
|
7423
7451
|
us as px80,
|
|
7424
7452
|
hs as px90,
|
|
7425
|
-
|
|
7453
|
+
Vt as throttle,
|
|
7426
7454
|
Je as trimArraySuffixes
|
|
7427
7455
|
};
|