@guiexpert/table 1.1.28 → 1.1.29
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 +15 -15
- package/index.d.ts +3 -0
- package/index.js +232 -203
- package/lib/common/debounce.d.ts +1 -0
- package/lib/common/throttle.d.ts +1 -0
- package/lib/table/resize-handler.d.ts +6 -0
- package/lib/table/table-scope.d.ts +2 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
|
-
function
|
|
1
|
+
function ot(c, e = 500) {
|
|
2
|
+
let t = null, o = 0;
|
|
3
|
+
return function(...i) {
|
|
4
|
+
const s = Date.now(), r = e - (s - o);
|
|
5
|
+
r <= 0 ? (c.apply(this, i), o = s) : t || (t = window.setTimeout(() => {
|
|
6
|
+
c.apply(this, i), o = Date.now(), t = null;
|
|
7
|
+
}, r));
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
function ye(c, e = 500) {
|
|
11
|
+
let t = null;
|
|
12
|
+
return function(...o) {
|
|
13
|
+
t && window.clearTimeout(t), t = window.setTimeout(() => {
|
|
14
|
+
c.apply(this, o), t = null;
|
|
15
|
+
}, e);
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
function it(c = 500) {
|
|
2
19
|
return function(e, t, o) {
|
|
3
20
|
let i = 0;
|
|
4
21
|
const s = o.value;
|
|
@@ -39,7 +56,7 @@ function H(c) {
|
|
|
39
56
|
function K(c) {
|
|
40
57
|
return c && c.type === "AreaModelTree";
|
|
41
58
|
}
|
|
42
|
-
function
|
|
59
|
+
function ve(c) {
|
|
43
60
|
return c && c.type === "CheckboxColumnDef";
|
|
44
61
|
}
|
|
45
62
|
class Q {
|
|
@@ -62,25 +79,25 @@ class Q {
|
|
|
62
79
|
);
|
|
63
80
|
}
|
|
64
81
|
}
|
|
65
|
-
class
|
|
82
|
+
class F {
|
|
66
83
|
constructor(e = ">", t = "", o = []) {
|
|
67
84
|
this.content = e, this.style = t, this.classes = o;
|
|
68
85
|
}
|
|
69
86
|
}
|
|
70
87
|
class fe {
|
|
71
|
-
constructor(e = new
|
|
88
|
+
constructor(e = new F(
|
|
72
89
|
">",
|
|
73
90
|
"transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
|
|
74
91
|
["gt-table-tree-arrow-expanded"]
|
|
75
|
-
), t = new
|
|
92
|
+
), t = new F(
|
|
76
93
|
">",
|
|
77
94
|
"",
|
|
78
95
|
["ge-table-tree-arrow-collapsed"]
|
|
79
|
-
), o = new
|
|
96
|
+
), o = new F(
|
|
80
97
|
">",
|
|
81
98
|
"color:transparent;",
|
|
82
99
|
["gt-table-tree-arrow-hidden"]
|
|
83
|
-
), i = new
|
|
100
|
+
), i = new F(
|
|
84
101
|
"↕",
|
|
85
102
|
"",
|
|
86
103
|
["gt-table-tree-arrow-expanded-all"]
|
|
@@ -89,11 +106,11 @@ class fe {
|
|
|
89
106
|
}
|
|
90
107
|
}
|
|
91
108
|
class me {
|
|
92
|
-
constructor(e = new
|
|
109
|
+
constructor(e = new F("↑", "", ["ge-header-sorted-asc"]), t = new F("↓", "", ["ge-header-sorted-desc"]), o = new F("↑", "color:transparent;", [])) {
|
|
93
110
|
this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = o;
|
|
94
111
|
}
|
|
95
112
|
}
|
|
96
|
-
class
|
|
113
|
+
class Re {
|
|
97
114
|
constructor(e) {
|
|
98
115
|
this.domService = e;
|
|
99
116
|
}
|
|
@@ -276,7 +293,7 @@ class ve {
|
|
|
276
293
|
}
|
|
277
294
|
}
|
|
278
295
|
const Z = (c) => c === "header" ? "header" : c === "footer" ? "footer" : "body";
|
|
279
|
-
class
|
|
296
|
+
class Ae {
|
|
280
297
|
constructor(e, t) {
|
|
281
298
|
if (this.rowIdx = -1, this.colIdx = -1, this.action = null, this.inputType = null, this.className = "", e !== null && (e instanceof HTMLDivElement || e instanceof HTMLSpanElement || e instanceof HTMLInputElement)) {
|
|
282
299
|
this.className = e.className, this.action = e.getAttribute("data-ge-action"), this.inputType = e.getAttribute("data-input-type"), this.rowIdx = Number(e.getAttribute("data-row-index")), this.colIdx = Number(e.getAttribute("data-col-index"));
|
|
@@ -288,7 +305,7 @@ class Re {
|
|
|
288
305
|
}
|
|
289
306
|
}
|
|
290
307
|
}
|
|
291
|
-
class
|
|
308
|
+
class Me {
|
|
292
309
|
constructor(e) {
|
|
293
310
|
this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
|
|
294
311
|
(t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
|
|
@@ -318,7 +335,7 @@ class Ae {
|
|
|
318
335
|
if (t - this.lastClicked < this.doubleClickDelay)
|
|
319
336
|
return;
|
|
320
337
|
this.lastClicked = t;
|
|
321
|
-
const o = new
|
|
338
|
+
const o = new Ae(e.target, this.tableScope);
|
|
322
339
|
if (o.action === "toggleExpandCollapseAll")
|
|
323
340
|
this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
|
|
324
341
|
else if (o.action === "toggleHeaderGroup")
|
|
@@ -420,7 +437,7 @@ class Ae {
|
|
|
420
437
|
}
|
|
421
438
|
}
|
|
422
439
|
}
|
|
423
|
-
class
|
|
440
|
+
class Ee {
|
|
424
441
|
constructor(e) {
|
|
425
442
|
this.tableScope = e;
|
|
426
443
|
}
|
|
@@ -683,7 +700,7 @@ class ee {
|
|
|
683
700
|
// }
|
|
684
701
|
// }
|
|
685
702
|
}
|
|
686
|
-
class
|
|
703
|
+
class Ie extends ee {
|
|
687
704
|
constructor(e) {
|
|
688
705
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
689
706
|
}
|
|
@@ -705,14 +722,14 @@ class Ee extends ee {
|
|
|
705
722
|
}
|
|
706
723
|
}
|
|
707
724
|
}
|
|
708
|
-
class
|
|
725
|
+
class ke {
|
|
709
726
|
constructor(e = "collapsed", t = [], o = !1, i = !1) {
|
|
710
727
|
this.mode = e, this.rowIds = t, this.allCollapsed = o, this.allExpanded = i;
|
|
711
728
|
}
|
|
712
729
|
}
|
|
713
|
-
class
|
|
730
|
+
class Te extends ee {
|
|
714
731
|
constructor(e) {
|
|
715
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
732
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new ke(), this.load();
|
|
716
733
|
}
|
|
717
734
|
collapsedExpandedStateGet() {
|
|
718
735
|
return this.collapsedExpandedState;
|
|
@@ -744,7 +761,7 @@ class ke extends ee {
|
|
|
744
761
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
745
762
|
}
|
|
746
763
|
}
|
|
747
|
-
class
|
|
764
|
+
class De extends ee {
|
|
748
765
|
constructor(e) {
|
|
749
766
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
750
767
|
}
|
|
@@ -765,14 +782,14 @@ class Te extends ee {
|
|
|
765
782
|
}
|
|
766
783
|
}
|
|
767
784
|
}
|
|
768
|
-
class
|
|
785
|
+
class O {
|
|
769
786
|
constructor(e = 0, t = 0, o = 0, i = 0, s) {
|
|
770
787
|
this.left = e, this.width = t, this.height = o, this.top = i, this.index = s;
|
|
771
788
|
}
|
|
772
789
|
}
|
|
773
|
-
class
|
|
790
|
+
class _e {
|
|
774
791
|
constructor(e, t, o, i) {
|
|
775
|
-
this.hostElement = e, this.tableModel = t, this.dom = o, this.tableOptions = i, this.scrollTop = 0, this.areaBodyWestGeo = new
|
|
792
|
+
this.hostElement = e, this.tableModel = t, this.dom = o, this.tableOptions = i, this.scrollTop = 0, this.areaBodyWestGeo = new O(), this.areaBodyCenterGeo = new O(), this.areaBodyEastGeo = new O();
|
|
776
793
|
const s = this.hostElement;
|
|
777
794
|
s.innerText = "", this.dom.setAttribute(s, "tabindex", "0"), this.dom.setStyle(
|
|
778
795
|
this.dom.addClass("ge-table", s),
|
|
@@ -976,7 +993,7 @@ class A {
|
|
|
976
993
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
977
994
|
}
|
|
978
995
|
}
|
|
979
|
-
class
|
|
996
|
+
class Oe {
|
|
980
997
|
constructor(e, t) {
|
|
981
998
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
982
999
|
}
|
|
@@ -1014,7 +1031,7 @@ class T {
|
|
|
1014
1031
|
this.header = e, this.body = t, this.footer = o;
|
|
1015
1032
|
}
|
|
1016
1033
|
}
|
|
1017
|
-
class Fe extends
|
|
1034
|
+
class Fe extends _e {
|
|
1018
1035
|
constructor(e, t, o, i) {
|
|
1019
1036
|
var r, l;
|
|
1020
1037
|
super(e, t, o, i), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
|
|
@@ -1024,7 +1041,7 @@ class Fe extends De {
|
|
|
1024
1041
|
}, this.tree = !1, this.colAndRowspanModels = new T(), 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), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), K(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
1025
1042
|
(n) => {
|
|
1026
1043
|
var a;
|
|
1027
|
-
this.colAndRowspanModels[n] = new
|
|
1044
|
+
this.colAndRowspanModels[n] = new Oe(t, t.getAreaModel(n)), (a = this.colAndRowspanModels[n]) == null || a.init();
|
|
1028
1045
|
}
|
|
1029
1046
|
);
|
|
1030
1047
|
}
|
|
@@ -1110,19 +1127,19 @@ class Fe extends De {
|
|
|
1110
1127
|
for (const t of this.removables)
|
|
1111
1128
|
t.remove();
|
|
1112
1129
|
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(
|
|
1113
|
-
new
|
|
1130
|
+
new O(0, this.hostElement.clientWidth, 1, 0),
|
|
1114
1131
|
this.hostElement,
|
|
1115
1132
|
"ge-table-border"
|
|
1116
1133
|
)), this.tableOptions.tableBottomBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
1117
|
-
new
|
|
1134
|
+
new O(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
|
|
1118
1135
|
this.hostElement,
|
|
1119
1136
|
"ge-table-border"
|
|
1120
1137
|
)), this.tableModel.getFixedLeftColumnCount() > 0 && this.removables.push(this.dom.addVerticalBorder(
|
|
1121
|
-
new
|
|
1138
|
+
new O(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
|
|
1122
1139
|
this.hostElement,
|
|
1123
1140
|
"ge-table-body-west-vertical-border"
|
|
1124
1141
|
)), ((e = this.tableModel.getAreaModel("header")) == null ? void 0 : e.getRowCount()) > 0 && this.removables.push(this.dom.addHorizontalBorder(
|
|
1125
|
-
new
|
|
1142
|
+
new O(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
|
|
1126
1143
|
this.hostElement,
|
|
1127
1144
|
"ge-table-body-west-vertical-border"
|
|
1128
1145
|
));
|
|
@@ -1337,7 +1354,7 @@ class Fe extends De {
|
|
|
1337
1354
|
})), e === "header" && this.tree && p === h - 1) {
|
|
1338
1355
|
const M = this.dom.applyStyle(
|
|
1339
1356
|
this.dom.setAttribute(
|
|
1340
|
-
this.dom.addDiv(S, new
|
|
1357
|
+
this.dom.addDiv(S, new O(16, 20, 20, 8)),
|
|
1341
1358
|
"data-ge-action",
|
|
1342
1359
|
"toggleExpandCollapseAll"
|
|
1343
1360
|
),
|
|
@@ -1515,7 +1532,7 @@ class Fe extends De {
|
|
|
1515
1532
|
if (b = b + C, b > this.areaBodyCenterGeo.width)
|
|
1516
1533
|
break;
|
|
1517
1534
|
}
|
|
1518
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new
|
|
1535
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new O(b - 1, 1, i.height, 0), s);
|
|
1519
1536
|
}
|
|
1520
1537
|
/**
|
|
1521
1538
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -1908,7 +1925,7 @@ class $e {
|
|
|
1908
1925
|
this.columnIndex = e, this.sortState = t;
|
|
1909
1926
|
}
|
|
1910
1927
|
}
|
|
1911
|
-
class
|
|
1928
|
+
class Pe {
|
|
1912
1929
|
constructor(e) {
|
|
1913
1930
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
1914
1931
|
}
|
|
@@ -1930,7 +1947,7 @@ class Oe {
|
|
|
1930
1947
|
}
|
|
1931
1948
|
}
|
|
1932
1949
|
}
|
|
1933
|
-
class
|
|
1950
|
+
class Le {
|
|
1934
1951
|
constructor(e = -1, t = -1) {
|
|
1935
1952
|
this.rowIndex = e, this.columnIndex = t;
|
|
1936
1953
|
}
|
|
@@ -1940,10 +1957,10 @@ class te {
|
|
|
1940
1957
|
this.cells = e;
|
|
1941
1958
|
}
|
|
1942
1959
|
static createSingle(e, t) {
|
|
1943
|
-
return new te([new
|
|
1960
|
+
return new te([new Le(e, t)]);
|
|
1944
1961
|
}
|
|
1945
1962
|
}
|
|
1946
|
-
class
|
|
1963
|
+
class He {
|
|
1947
1964
|
constructor(e) {
|
|
1948
1965
|
var t, o;
|
|
1949
1966
|
this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (o = this.tableScope.tableOptions) != null && o.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
|
|
@@ -1984,7 +2001,7 @@ class Le {
|
|
|
1984
2001
|
});
|
|
1985
2002
|
}
|
|
1986
2003
|
}
|
|
1987
|
-
class
|
|
2004
|
+
class Be {
|
|
1988
2005
|
get() {
|
|
1989
2006
|
return {
|
|
1990
2007
|
f2: "START_EDITING",
|
|
@@ -2004,7 +2021,7 @@ class He {
|
|
|
2004
2021
|
};
|
|
2005
2022
|
}
|
|
2006
2023
|
}
|
|
2007
|
-
class
|
|
2024
|
+
class Ve {
|
|
2008
2025
|
get() {
|
|
2009
2026
|
return {
|
|
2010
2027
|
f2: "START_EDITING",
|
|
@@ -2026,7 +2043,7 @@ class Be {
|
|
|
2026
2043
|
};
|
|
2027
2044
|
}
|
|
2028
2045
|
}
|
|
2029
|
-
class
|
|
2046
|
+
class We {
|
|
2030
2047
|
constructor(e) {
|
|
2031
2048
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
2032
2049
|
}
|
|
@@ -2047,7 +2064,7 @@ class Ve {
|
|
|
2047
2064
|
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));
|
|
2048
2065
|
}
|
|
2049
2066
|
assignPredefinedSystemShortcutMappings() {
|
|
2050
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
2067
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Ve().get()) : Object.assign(this.shortcutActionIdMapping, new Be().get());
|
|
2051
2068
|
}
|
|
2052
2069
|
isMacintosh() {
|
|
2053
2070
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -2119,7 +2136,7 @@ class re {
|
|
|
2119
2136
|
onFocusChanged(e) {
|
|
2120
2137
|
}
|
|
2121
2138
|
}
|
|
2122
|
-
class
|
|
2139
|
+
class Ge {
|
|
2123
2140
|
setStyle(e, t, o) {
|
|
2124
2141
|
return e.style[t] = o, e;
|
|
2125
2142
|
}
|
|
@@ -2146,7 +2163,7 @@ class We {
|
|
|
2146
2163
|
e.setAttribute(t, o);
|
|
2147
2164
|
}
|
|
2148
2165
|
}
|
|
2149
|
-
class
|
|
2166
|
+
class ze {
|
|
2150
2167
|
render(e, t, o, i, s, r, l) {
|
|
2151
2168
|
if (s.isEditable(t, o)) {
|
|
2152
2169
|
l.addClass(e, "ge-table-row-input-div");
|
|
@@ -2287,11 +2304,11 @@ class Ne {
|
|
|
2287
2304
|
}
|
|
2288
2305
|
}
|
|
2289
2306
|
class oe {
|
|
2290
|
-
constructor(e = new
|
|
2307
|
+
constructor(e = new F(
|
|
2291
2308
|
"❯",
|
|
2292
2309
|
"",
|
|
2293
2310
|
["gt-table-icon-expanded"]
|
|
2294
|
-
), t = new
|
|
2311
|
+
), t = new F(
|
|
2295
2312
|
"❯",
|
|
2296
2313
|
"transform: rotate(180deg) translate(-100%, -100%); transform-origin: 0 0;",
|
|
2297
2314
|
["ge-table-icon-collapsed"]
|
|
@@ -2300,14 +2317,14 @@ class oe {
|
|
|
2300
2317
|
}
|
|
2301
2318
|
// `⊖ `, `⊕ `;
|
|
2302
2319
|
}
|
|
2303
|
-
const
|
|
2320
|
+
const je = new we(), Xe = new Ne("cell");
|
|
2304
2321
|
class U {
|
|
2305
2322
|
constructor() {
|
|
2306
2323
|
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 = {
|
|
2307
2324
|
header: 34,
|
|
2308
2325
|
body: 34,
|
|
2309
2326
|
footer: 34
|
|
2310
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new fe(), this.headerGroupOptions = new oe(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new me(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new
|
|
2327
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new fe(), this.headerGroupOptions = new oe(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new me(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new ze(), this.getSelectionModel = () => je, this.getFocusModel = () => Xe;
|
|
2311
2328
|
}
|
|
2312
2329
|
}
|
|
2313
2330
|
const L = class L {
|
|
@@ -2394,15 +2411,24 @@ const L = class L {
|
|
|
2394
2411
|
};
|
|
2395
2412
|
L.columnSeparatorChar = " ", L.rowSeparatorChar = `
|
|
2396
2413
|
`;
|
|
2397
|
-
let
|
|
2414
|
+
let z = L;
|
|
2415
|
+
class Ye {
|
|
2416
|
+
constructor(e) {
|
|
2417
|
+
this.tableScope = e, new ResizeObserver(ye(this.handleResize.bind(this), 500)).observe(this.tableScope.hostElement);
|
|
2418
|
+
}
|
|
2419
|
+
handleResize(e) {
|
|
2420
|
+
const t = e[0], { width: o } = t.contentRect;
|
|
2421
|
+
this.tableScope.recalcColumnWidths(o);
|
|
2422
|
+
}
|
|
2423
|
+
}
|
|
2398
2424
|
class Se extends Fe {
|
|
2399
|
-
constructor(e, t, o, i, s, r = new
|
|
2425
|
+
constructor(e, t, o, i, s, r = new z()) {
|
|
2400
2426
|
var a;
|
|
2401
|
-
if (super(e, t, new
|
|
2427
|
+
if (super(e, t, new Re(o), i), this.eventListener = s, this.copyService = r, this.licenseManager = P.getInstance(), this.selectionService = new He(this), this.api = new Ee(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, s || (this.eventListener = new re()), (a = this.tableOptions) != null && a.autoRestoreOptions) {
|
|
2402
2428
|
const d = this.tableOptions.autoRestoreOptions, h = d.getStorageKeyFn;
|
|
2403
|
-
h && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new
|
|
2429
|
+
h && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Ie(h)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new Te(h)), d.autoRestoreSortingState && (this.storeSortingService = new De(h)));
|
|
2404
2430
|
}
|
|
2405
|
-
this.mouseHandler = new
|
|
2431
|
+
this.mouseHandler = new Me(this), this.inputHandler = new Pe(this), this.resizeHandler = new Ye(this), this.shortcutService = new We(this), this.shortcutService.addListener(this.selectionService);
|
|
2406
2432
|
const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
2407
2433
|
l && l.addEventSelectionChangedListener(this);
|
|
2408
2434
|
const n = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
@@ -2420,7 +2446,7 @@ class Se extends Fe {
|
|
|
2420
2446
|
*
|
|
2421
2447
|
* @return {TableScope} - The newly created TableScope instance.
|
|
2422
2448
|
*/
|
|
2423
|
-
static create(e, t, o = new U(), i = new re(), s = new
|
|
2449
|
+
static create(e, t, o = new U(), i = new re(), s = new Ge(), r = new z()) {
|
|
2424
2450
|
return new Se(e, t, s, o, i, r);
|
|
2425
2451
|
}
|
|
2426
2452
|
/**
|
|
@@ -2784,9 +2810,9 @@ class Se extends Fe {
|
|
|
2784
2810
|
}
|
|
2785
2811
|
}
|
|
2786
2812
|
}
|
|
2787
|
-
const
|
|
2813
|
+
const N = class N {
|
|
2788
2814
|
};
|
|
2789
|
-
|
|
2815
|
+
N.themes = ["light", "combat", "paper", "blackboard"], N.vars = {
|
|
2790
2816
|
light: `html[data-theme="light"] {
|
|
2791
2817
|
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
2792
2818
|
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
@@ -3020,7 +3046,7 @@ z.themes = ["light", "combat", "paper", "blackboard"], z.vars = {
|
|
|
3020
3046
|
--ge-table-drop-zone-bg: #758129;
|
|
3021
3047
|
}`
|
|
3022
3048
|
};
|
|
3023
|
-
let ne =
|
|
3049
|
+
let ne = N;
|
|
3024
3050
|
class le {
|
|
3025
3051
|
constructor(e, t = !0, o, i, s = 0, r = !1, l = !1) {
|
|
3026
3052
|
this.data = e, this.expanded = t, this.children = o, this.parent = i, this.deep = s, this.checked = r, this.keep = l, this.type = "TreeRow";
|
|
@@ -3062,7 +3088,7 @@ class w {
|
|
|
3062
3088
|
this.value = e, this.unit = t;
|
|
3063
3089
|
}
|
|
3064
3090
|
}
|
|
3065
|
-
const
|
|
3091
|
+
const Ke = () => !0, ae = () => !1;
|
|
3066
3092
|
class V {
|
|
3067
3093
|
constructor(e, t, o = new w(100, "px"), i = new T(), s = new T(), r = new w(100, "px"), l = new w(100, "px"), n, a, d, h, u, m, b, f, g = () => this.visible) {
|
|
3068
3094
|
this.property = e, this.headerLabel = t, this.width = o, this.classes = i, this.rendererMap = s, this.minWidth = r, this.maxWidth = l, this.sortable = n, this.sortComparator = a, this.sortState = d, this.sortStatesOrder = h, this.sortIconVisible = u, this.editable = m, this.getEditRenderer = b, this.editInputPipe = f, this.isVisible = g, this.visible = !0, o.unit !== "px" && (this.minWidth = new w(0, "px"), this.maxWidth = new w(1e5, "px"));
|
|
@@ -3083,7 +3109,7 @@ class V {
|
|
|
3083
3109
|
e.headerClasses,
|
|
3084
3110
|
e.bodyClasses,
|
|
3085
3111
|
e.footerClasses
|
|
3086
|
-
), i = e.sortIconVisible ?? e.sortable ?? ae, s = e.editable ?? e.editable ?? ae, r = e.isVisible ?? e.isVisible ??
|
|
3112
|
+
), i = e.sortIconVisible ?? e.sortable ?? ae, s = e.editable ?? e.editable ?? ae, r = e.isVisible ?? e.isVisible ?? Ke;
|
|
3087
3113
|
return new V(
|
|
3088
3114
|
e.property ?? "",
|
|
3089
3115
|
e.headerLabel ?? "",
|
|
@@ -3104,7 +3130,7 @@ class V {
|
|
|
3104
3130
|
);
|
|
3105
3131
|
}
|
|
3106
3132
|
}
|
|
3107
|
-
const
|
|
3133
|
+
const st = new w(300, "px"), rt = new w(290, "px"), nt = new w(280, "px"), lt = new w(270, "px"), at = new w(260, "px"), dt = new w(250, "px"), ht = new w(240, "px"), ct = new w(230, "px"), ut = new w(220, "px"), gt = new w(210, "px"), de = new w(200, "px"), pt = new w(190, "px"), bt = new w(180, "px"), ft = new w(170, "px"), mt = new w(160, "px"), wt = new w(150, "px"), St = new w(140, "px"), xt = new w(130, "px"), Ct = new w(120, "px"), yt = new w(110, "px"), vt = new w(100, "px"), Rt = new w(90, "px"), At = new w(80, "px"), Mt = new w(70, "px"), Et = new w(60, "px"), It = new w(50, "px"), kt = new w(40, "px"), Tt = new w(30, "px"), Dt = new w(20, "px"), _t = new w(10, "px"), Ot = new w(0, "px");
|
|
3108
3134
|
class ie {
|
|
3109
3135
|
constructor(e, t = [], o = -1) {
|
|
3110
3136
|
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = o, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((i) => i.rendererMap[e]);
|
|
@@ -3301,7 +3327,7 @@ class _ {
|
|
|
3301
3327
|
changeColumnOrder(e, t) {
|
|
3302
3328
|
}
|
|
3303
3329
|
}
|
|
3304
|
-
class
|
|
3330
|
+
class Ue {
|
|
3305
3331
|
flattenTree(e, t = []) {
|
|
3306
3332
|
var o;
|
|
3307
3333
|
for (const i of e)
|
|
@@ -3332,7 +3358,7 @@ class xe {
|
|
|
3332
3358
|
}
|
|
3333
3359
|
class he extends ie {
|
|
3334
3360
|
constructor(e, t, o, i = []) {
|
|
3335
|
-
super(e, i, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = i, this.type = "AreaModelTree", this.sorterService = new xe(), this.service = new
|
|
3361
|
+
super(e, i, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = i, this.type = "AreaModelTree", this.sorterService = new xe(), this.service = new Ue(), this.properties = i.map((s) => s.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
|
|
3336
3362
|
}
|
|
3337
3363
|
changeColumnOrder(e, t) {
|
|
3338
3364
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
@@ -3499,7 +3525,7 @@ class ue {
|
|
|
3499
3525
|
this.top = e, this.right = t, this.bottom = o, this.left = i;
|
|
3500
3526
|
}
|
|
3501
3527
|
}
|
|
3502
|
-
class
|
|
3528
|
+
class qe {
|
|
3503
3529
|
constructor() {
|
|
3504
3530
|
this.checkedRows = [];
|
|
3505
3531
|
}
|
|
@@ -3534,7 +3560,7 @@ class Y {
|
|
|
3534
3560
|
constructor(e, t, o, i = 0, s = 0, r = !1, l = new B(), n = [], a = [], d = -1, h = 0, u = 400, m = () => {
|
|
3535
3561
|
}) {
|
|
3536
3562
|
var b, f, g, p;
|
|
3537
|
-
this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = o, this.fixedLeftColumnCount = i, this.fixedRightColumnCount = s, this.rowCheckboxVisible = r, this.defaultRowHeights = l, this.columnDefs = n, this.columnSizes = a, this.overridingColumnWidth = d, this.columnCount = h, this.parentSize = u, this.getSelectionModel = m, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ue(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", o.areaIdent = "footer", this.columnCount || ((b = this.columnDefs) != null && b.length ? this.columnCount = this.columnDefs.length : (f = this.columnSizes) != null && f.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (p = this.columnDefs) != null && p.length &&
|
|
3563
|
+
this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = o, this.fixedLeftColumnCount = i, this.fixedRightColumnCount = s, this.rowCheckboxVisible = r, this.defaultRowHeights = l, this.columnDefs = n, this.columnSizes = a, this.overridingColumnWidth = d, this.columnCount = h, this.parentSize = u, this.getSelectionModel = m, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ue(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", o.areaIdent = "footer", this.columnCount || ((b = this.columnDefs) != null && b.length ? this.columnCount = this.columnDefs.length : (f = this.columnSizes) != null && f.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (p = this.columnDefs) != null && p.length && ve(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new qe());
|
|
3538
3564
|
}
|
|
3539
3565
|
init() {
|
|
3540
3566
|
this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
|
|
@@ -3914,7 +3940,7 @@ class Y {
|
|
|
3914
3940
|
this.xPositions[t + 1] = this.getColumnWidth(t) + this.xPositions[t];
|
|
3915
3941
|
}
|
|
3916
3942
|
}
|
|
3917
|
-
class
|
|
3943
|
+
class Je extends ie {
|
|
3918
3944
|
constructor(e, t, o, i = []) {
|
|
3919
3945
|
super(e, i, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = i, this.sorterService = new xe(), this.filteredRows = [...t], this.properties = i.map((s) => s.property);
|
|
3920
3946
|
}
|
|
@@ -3969,7 +3995,7 @@ class Ue extends ie {
|
|
|
3969
3995
|
return i && t.length ? this.getPropertyValue(i, t) : i;
|
|
3970
3996
|
}
|
|
3971
3997
|
}
|
|
3972
|
-
class ge extends
|
|
3998
|
+
class ge extends Je {
|
|
3973
3999
|
constructor(e, t, o, i) {
|
|
3974
4000
|
super(
|
|
3975
4001
|
e,
|
|
@@ -3979,7 +4005,7 @@ class ge extends Ue {
|
|
|
3979
4005
|
), this.areaIdent = e, this.rows = t, this.columnDefs = o, this.defaultRowHeight = i;
|
|
3980
4006
|
}
|
|
3981
4007
|
}
|
|
3982
|
-
class
|
|
4008
|
+
class $ {
|
|
3983
4009
|
static createTableModel(e) {
|
|
3984
4010
|
var t, o, i, s, r, l, n, a, d, h, u, m, b, f;
|
|
3985
4011
|
if (e.defaultRowHeights === void 0)
|
|
@@ -4054,7 +4080,7 @@ class O {
|
|
|
4054
4080
|
);
|
|
4055
4081
|
}
|
|
4056
4082
|
static buildByTypedRowsParam(e) {
|
|
4057
|
-
return
|
|
4083
|
+
return $.buildByTypedRows(
|
|
4058
4084
|
e.rows ?? [],
|
|
4059
4085
|
e.columnDefs,
|
|
4060
4086
|
e.tableOptions ?? new U(),
|
|
@@ -4071,7 +4097,7 @@ class O {
|
|
|
4071
4097
|
r.body,
|
|
4072
4098
|
t
|
|
4073
4099
|
);
|
|
4074
|
-
return (l || o.showCheckboxWihoutExtraColumn) && (a.rowSelectionModel = new ce(n)),
|
|
4100
|
+
return (l || o.showCheckboxWihoutExtraColumn) && (a.rowSelectionModel = new ce(n)), $.createByAreaModelsParam({
|
|
4075
4101
|
headerAreaModel: new D("header", [t.map((d) => d.headerLabel)], r.header),
|
|
4076
4102
|
bodyAreaModel: a,
|
|
4077
4103
|
footerAreaModel: new D("footer", [], r.footer),
|
|
@@ -4085,7 +4111,7 @@ class O {
|
|
|
4085
4111
|
overridingColumnWidth: -1
|
|
4086
4112
|
});
|
|
4087
4113
|
}
|
|
4088
|
-
return
|
|
4114
|
+
return $.createByObjectArrayParam({
|
|
4089
4115
|
rows: e,
|
|
4090
4116
|
columnDefs: t,
|
|
4091
4117
|
fixedLeftColumnCount: i,
|
|
@@ -4095,7 +4121,7 @@ class O {
|
|
|
4095
4121
|
}
|
|
4096
4122
|
static createByObjectArrayParam(e) {
|
|
4097
4123
|
const t = e.rowCheckboxVisible !== void 0 ? e.rowCheckboxVisible : !1;
|
|
4098
|
-
return
|
|
4124
|
+
return $.createByObjectArray(
|
|
4099
4125
|
e.rows,
|
|
4100
4126
|
e.header ?? [],
|
|
4101
4127
|
e.footer ?? [],
|
|
@@ -4123,7 +4149,7 @@ class O {
|
|
|
4123
4149
|
);
|
|
4124
4150
|
}
|
|
4125
4151
|
static createByAreaModelsParam(e) {
|
|
4126
|
-
return
|
|
4152
|
+
return $.createByAreaModels(
|
|
4127
4153
|
e.headerAreaModel ?? new _(),
|
|
4128
4154
|
e.bodyAreaModel,
|
|
4129
4155
|
e.footerAreaModel ?? new _(),
|
|
@@ -4154,7 +4180,7 @@ class O {
|
|
|
4154
4180
|
);
|
|
4155
4181
|
}
|
|
4156
4182
|
}
|
|
4157
|
-
const
|
|
4183
|
+
const Ft = [
|
|
4158
4184
|
"COPY_2_CLIPBOARD",
|
|
4159
4185
|
"START_EDITING",
|
|
4160
4186
|
"TOGGLE_SELECTION",
|
|
@@ -4172,17 +4198,17 @@ const Dt = [
|
|
|
4172
4198
|
// "PAGEUP_PRESSED",
|
|
4173
4199
|
// "PAGEDOWN_PRESSED"
|
|
4174
4200
|
];
|
|
4175
|
-
class
|
|
4201
|
+
class $t {
|
|
4176
4202
|
constructor(e, t) {
|
|
4177
4203
|
this.tableModel = e, this.tableOptions = t;
|
|
4178
4204
|
}
|
|
4179
4205
|
}
|
|
4180
|
-
class
|
|
4206
|
+
class Qe {
|
|
4181
4207
|
constructor(e, t, o, i, s, r, l) {
|
|
4182
4208
|
this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = o, this.filter = i, this.sorting = s, this.startIndex = r, this.endIndex = l;
|
|
4183
4209
|
}
|
|
4184
4210
|
}
|
|
4185
|
-
class
|
|
4211
|
+
class Pt extends Qe {
|
|
4186
4212
|
constructor(e, t, o, i, s, r, l, n) {
|
|
4187
4213
|
super(
|
|
4188
4214
|
e,
|
|
@@ -4195,25 +4221,25 @@ class Ft extends qe {
|
|
|
4195
4221
|
), this.rows = n;
|
|
4196
4222
|
}
|
|
4197
4223
|
}
|
|
4198
|
-
class
|
|
4224
|
+
class Ze {
|
|
4199
4225
|
constructor(e, t) {
|
|
4200
4226
|
this.value = e, this.label = t;
|
|
4201
4227
|
}
|
|
4202
4228
|
}
|
|
4203
|
-
class
|
|
4229
|
+
class Lt {
|
|
4204
4230
|
constructor(e, t) {
|
|
4205
4231
|
this.index = e, this.px = t;
|
|
4206
4232
|
}
|
|
4207
4233
|
}
|
|
4208
|
-
const
|
|
4234
|
+
const Ht = { body: ["ge-table-text-align-left"] }, Bt = { body: ["ge-table-text-align-center"] }, Vt = { body: ["ge-table-text-align-right"] }, Wt = {
|
|
4209
4235
|
header: ["ge-table-text-align-left"],
|
|
4210
4236
|
body: ["ge-table-text-align-left"],
|
|
4211
4237
|
footer: ["ge-table-text-align-left"]
|
|
4212
|
-
},
|
|
4238
|
+
}, Gt = {
|
|
4213
4239
|
header: ["ge-table-text-align-center"],
|
|
4214
4240
|
body: ["ge-table-text-align-center"],
|
|
4215
4241
|
footer: ["ge-table-text-align-center"]
|
|
4216
|
-
},
|
|
4242
|
+
}, zt = {
|
|
4217
4243
|
header: ["ge-table-text-align-right"],
|
|
4218
4244
|
body: ["ge-table-text-align-right"],
|
|
4219
4245
|
footer: ["ge-table-text-align-right"]
|
|
@@ -4236,7 +4262,7 @@ class pe {
|
|
|
4236
4262
|
}
|
|
4237
4263
|
}
|
|
4238
4264
|
}
|
|
4239
|
-
class
|
|
4265
|
+
class Nt {
|
|
4240
4266
|
constructor() {
|
|
4241
4267
|
this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new w(50, "px"), this.minWidth = new w(50, "px"), this.maxWidth = new w(100, "px"), this.rendererMap = new T(new pe(), new pe(), void 0), this.classes = new T(
|
|
4242
4268
|
[],
|
|
@@ -4245,7 +4271,7 @@ class Wt {
|
|
|
4245
4271
|
);
|
|
4246
4272
|
}
|
|
4247
4273
|
}
|
|
4248
|
-
class
|
|
4274
|
+
class jt {
|
|
4249
4275
|
/**
|
|
4250
4276
|
* A factory that creates a new AreaObjectMap with the given body renderer.
|
|
4251
4277
|
*
|
|
@@ -4260,17 +4286,17 @@ class Gt {
|
|
|
4260
4286
|
);
|
|
4261
4287
|
}
|
|
4262
4288
|
}
|
|
4263
|
-
class
|
|
4289
|
+
class Xt {
|
|
4264
4290
|
constructor(e = "down", t) {
|
|
4265
4291
|
this.status = e, this.originalEvent = t;
|
|
4266
4292
|
}
|
|
4267
4293
|
}
|
|
4268
|
-
class
|
|
4294
|
+
class Yt {
|
|
4269
4295
|
constructor(e, t, o, i, s = {}) {
|
|
4270
4296
|
this.area = e, this.rowIndex = t, this.columnIndex = o, this.value = i, this.cssClasses = s;
|
|
4271
4297
|
}
|
|
4272
4298
|
}
|
|
4273
|
-
class
|
|
4299
|
+
class Kt {
|
|
4274
4300
|
constructor() {
|
|
4275
4301
|
this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, o) => {
|
|
4276
4302
|
if (e && t && o.getRowId) {
|
|
@@ -4295,12 +4321,12 @@ class jt {
|
|
|
4295
4321
|
};
|
|
4296
4322
|
}
|
|
4297
4323
|
}
|
|
4298
|
-
class
|
|
4324
|
+
class et {
|
|
4299
4325
|
constructor(e, t, o, i = !1, s = "normal", r = void 0) {
|
|
4300
4326
|
this.data = e, this.property = t, this.toggle = o, this.closed = i, this.visibility = s, this.children = r, this.impl = "CellGroup";
|
|
4301
4327
|
}
|
|
4302
4328
|
}
|
|
4303
|
-
class
|
|
4329
|
+
class tt extends et {
|
|
4304
4330
|
constructor(e, t = 0, o = 0, i) {
|
|
4305
4331
|
super(
|
|
4306
4332
|
e.data,
|
|
@@ -4425,7 +4451,7 @@ class I {
|
|
|
4425
4451
|
static buildGroupExts(e, t = [], o = 0, i) {
|
|
4426
4452
|
let s;
|
|
4427
4453
|
for (let r = 0; r < e.length; r++) {
|
|
4428
|
-
const l = e[r], n = new
|
|
4454
|
+
const l = e[r], n = new tt(l, o, r, i);
|
|
4429
4455
|
s && (n.leftNeighbour = s, s.rightNeighbour = n), t.push(n), l.children && (n.children = I.buildGroupExts(l.children, [], o + 1, n)), s = n;
|
|
4430
4456
|
}
|
|
4431
4457
|
return t;
|
|
@@ -4467,7 +4493,7 @@ class I {
|
|
|
4467
4493
|
e.push(i.data + " rowIndex:" + i.rowIndex), (o = i.children) != null && o.length && I.iterateThrowColumns(e, i.children);
|
|
4468
4494
|
}
|
|
4469
4495
|
}
|
|
4470
|
-
class
|
|
4496
|
+
class Ut {
|
|
4471
4497
|
constructor() {
|
|
4472
4498
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
4473
4499
|
}
|
|
@@ -4578,7 +4604,7 @@ const j = class j {
|
|
|
4578
4604
|
};
|
|
4579
4605
|
j.toggleHeaderGroup = "toggleHeaderGroup";
|
|
4580
4606
|
let J = j;
|
|
4581
|
-
class
|
|
4607
|
+
class qt {
|
|
4582
4608
|
constructor(e = "header", t, o = [], i, s = new oe()) {
|
|
4583
4609
|
this.areaIdent = e, this.groups = t, this.columnDefs = o, this.defaultRowHeight = i, this.headerGroupOptions = s, this.gammaCells = !0, this.arr = [], this.groupExts = [], this.cellGroupExtCellRenderer = new J(this.headerGroupOptions), this.groupExts = I.buildGroupExts(t), this.init();
|
|
4584
4610
|
}
|
|
@@ -4678,7 +4704,7 @@ class Yt {
|
|
|
4678
4704
|
return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()), I.buildColumnDefs(this.groupExts);
|
|
4679
4705
|
}
|
|
4680
4706
|
}
|
|
4681
|
-
class
|
|
4707
|
+
class Jt {
|
|
4682
4708
|
filterPredict(e, t, o = this.objectToString.bind(this)) {
|
|
4683
4709
|
if (!e)
|
|
4684
4710
|
return !1;
|
|
@@ -4732,12 +4758,12 @@ class Kt {
|
|
|
4732
4758
|
return t.join(" ").toLowerCase();
|
|
4733
4759
|
}
|
|
4734
4760
|
}
|
|
4735
|
-
class
|
|
4761
|
+
class Qt {
|
|
4736
4762
|
static bodyRenderer(e) {
|
|
4737
4763
|
return new T(void 0, e, void 0);
|
|
4738
4764
|
}
|
|
4739
4765
|
}
|
|
4740
|
-
class
|
|
4766
|
+
class Zt {
|
|
4741
4767
|
constructor(e, t = !0, o = !1) {
|
|
4742
4768
|
this.property = e, this.skipCheckableCheck = t, this.readonly = o;
|
|
4743
4769
|
}
|
|
@@ -4762,12 +4788,12 @@ class qt {
|
|
|
4762
4788
|
}
|
|
4763
4789
|
}
|
|
4764
4790
|
}
|
|
4765
|
-
class
|
|
4791
|
+
class eo {
|
|
4766
4792
|
render(e, t, o, i, s, r, l) {
|
|
4767
4793
|
r && (e.innerText = new Date(r).toISOString());
|
|
4768
4794
|
}
|
|
4769
4795
|
}
|
|
4770
|
-
class
|
|
4796
|
+
class to {
|
|
4771
4797
|
constructor() {
|
|
4772
4798
|
this.formatter = new Intl.DateTimeFormat("de-DE", {
|
|
4773
4799
|
year: "numeric",
|
|
@@ -4790,17 +4816,17 @@ class Qt {
|
|
|
4790
4816
|
}
|
|
4791
4817
|
}
|
|
4792
4818
|
}
|
|
4793
|
-
class
|
|
4819
|
+
class oo {
|
|
4794
4820
|
render(e, t, o, i, s, r, l) {
|
|
4795
4821
|
r && (e.innerText = new Date(r).toLocaleDateString());
|
|
4796
4822
|
}
|
|
4797
4823
|
}
|
|
4798
|
-
class
|
|
4824
|
+
class io {
|
|
4799
4825
|
render(e, t, o, i, s, r, l) {
|
|
4800
4826
|
r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
|
|
4801
4827
|
}
|
|
4802
4828
|
}
|
|
4803
|
-
class
|
|
4829
|
+
class so {
|
|
4804
4830
|
constructor(e = 100, t = !1) {
|
|
4805
4831
|
this.maxValue = e, this.labelVisible = t;
|
|
4806
4832
|
}
|
|
@@ -4830,17 +4856,17 @@ class to {
|
|
|
4830
4856
|
}
|
|
4831
4857
|
}
|
|
4832
4858
|
}
|
|
4833
|
-
class
|
|
4859
|
+
class ro {
|
|
4834
4860
|
render(e, t, o, i, s, r, l) {
|
|
4835
4861
|
r === "true" || r === !0 ? e.innerHTML = '<span class="ge-true-text-color">✅</span>' : r === "false" || r === !1 ? e.innerHTML = '<span class="ge-false-text-color">❌</span>' : e.innerText = "";
|
|
4836
4862
|
}
|
|
4837
4863
|
}
|
|
4838
|
-
class
|
|
4864
|
+
class no {
|
|
4839
4865
|
render(e, t, o, i, s, r, l) {
|
|
4840
4866
|
r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
|
|
4841
4867
|
}
|
|
4842
4868
|
}
|
|
4843
|
-
class
|
|
4869
|
+
class lo {
|
|
4844
4870
|
constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
4845
4871
|
this.min = e, this.max = t;
|
|
4846
4872
|
}
|
|
@@ -4848,7 +4874,7 @@ class so {
|
|
|
4848
4874
|
r && (e.innerText = r, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && l.addClass(e, "ge-cell-error"));
|
|
4849
4875
|
}
|
|
4850
4876
|
}
|
|
4851
|
-
class
|
|
4877
|
+
class ao {
|
|
4852
4878
|
constructor(e) {
|
|
4853
4879
|
this.property = e;
|
|
4854
4880
|
}
|
|
@@ -4867,7 +4893,7 @@ class ro {
|
|
|
4867
4893
|
}
|
|
4868
4894
|
}
|
|
4869
4895
|
}
|
|
4870
|
-
class
|
|
4896
|
+
class ho {
|
|
4871
4897
|
constructor(e, t = 100, o = !1) {
|
|
4872
4898
|
this.property = e, this.maxValue = t, this.labelVisible = o;
|
|
4873
4899
|
}
|
|
@@ -4899,7 +4925,7 @@ class no {
|
|
|
4899
4925
|
}
|
|
4900
4926
|
}
|
|
4901
4927
|
}
|
|
4902
|
-
class
|
|
4928
|
+
class co {
|
|
4903
4929
|
render(e, t, o, i, s, r, l) {
|
|
4904
4930
|
if (r) {
|
|
4905
4931
|
e.innerHTML = `
|
|
@@ -4919,7 +4945,7 @@ class lo {
|
|
|
4919
4945
|
}
|
|
4920
4946
|
}
|
|
4921
4947
|
}
|
|
4922
|
-
const
|
|
4948
|
+
const uo = function(c, e, t) {
|
|
4923
4949
|
return c ? Number(c) : "";
|
|
4924
4950
|
};
|
|
4925
4951
|
class Ce {
|
|
@@ -4928,7 +4954,7 @@ class Ce {
|
|
|
4928
4954
|
}
|
|
4929
4955
|
static create(e) {
|
|
4930
4956
|
return new Ce(
|
|
4931
|
-
e.map((t) => new
|
|
4957
|
+
e.map((t) => new Ze(t, t))
|
|
4932
4958
|
);
|
|
4933
4959
|
}
|
|
4934
4960
|
render(e, t, o, i, s, r, l) {
|
|
@@ -4956,7 +4982,7 @@ class Ce {
|
|
|
4956
4982
|
}
|
|
4957
4983
|
}
|
|
4958
4984
|
}
|
|
4959
|
-
class
|
|
4985
|
+
class go extends we {
|
|
4960
4986
|
constructor(e) {
|
|
4961
4987
|
super("row", "multi"), this.model = e;
|
|
4962
4988
|
}
|
|
@@ -5039,7 +5065,7 @@ class ho extends we {
|
|
|
5039
5065
|
this.isSelected(e, 0) ? this.unselectRow(e) : this.selectRow(e);
|
|
5040
5066
|
}
|
|
5041
5067
|
}
|
|
5042
|
-
class
|
|
5068
|
+
class po {
|
|
5043
5069
|
constructor(e, t, o) {
|
|
5044
5070
|
this.r = e, this.g = t, this.b = o;
|
|
5045
5071
|
}
|
|
@@ -5061,146 +5087,149 @@ class G {
|
|
|
5061
5087
|
return e < t.middleValue ? G.getTwoColorGradientRGB(e, new be(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? G.getTwoColorGradientRGB(e, new be(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
|
|
5062
5088
|
}
|
|
5063
5089
|
}
|
|
5064
|
-
class
|
|
5090
|
+
class bo {
|
|
5065
5091
|
constructor(e, t, o, i, s, r) {
|
|
5066
5092
|
this.minValue = e, this.minColor = t, this.middleValue = o, this.middleColor = i, this.maxValue = s, this.maxColor = r;
|
|
5067
5093
|
}
|
|
5068
5094
|
}
|
|
5069
5095
|
export {
|
|
5070
5096
|
ie as AbstractAreaModel,
|
|
5071
|
-
|
|
5072
|
-
|
|
5097
|
+
jt as AreaMapFactory,
|
|
5098
|
+
Ut as AreaModel,
|
|
5073
5099
|
D as AreaModelArrayOfArrays,
|
|
5074
|
-
|
|
5100
|
+
qt as AreaModelCellGroups,
|
|
5075
5101
|
_ as AreaModelHidden,
|
|
5076
|
-
|
|
5102
|
+
Je as AreaModelObjectArray,
|
|
5077
5103
|
ge as AreaModelObjectArrayWithColumndefs,
|
|
5078
5104
|
he as AreaModelTree,
|
|
5079
5105
|
T as AreaObjectMap,
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5106
|
+
Kt as AutoRestoreOptions,
|
|
5107
|
+
it as AvoidDoubleExecution,
|
|
5108
|
+
et as CellGroup,
|
|
5109
|
+
tt as CellGroupExt,
|
|
5084
5110
|
J as CellGroupExtCellRenderer,
|
|
5085
5111
|
A as CellRange,
|
|
5086
5112
|
I as CellgroupFactory,
|
|
5087
|
-
|
|
5113
|
+
Zt as CheckboxBooleanPropertyCellRenderer,
|
|
5088
5114
|
pe as CheckboxCellRenderer,
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5115
|
+
Nt as CheckboxColumnDef,
|
|
5116
|
+
qe as CheckboxModel,
|
|
5117
|
+
Pt as ChunkData,
|
|
5118
|
+
Oe as ColAndRowspanModel,
|
|
5119
|
+
ke as CollapsedExpandedData,
|
|
5120
|
+
po as ColorRgb,
|
|
5095
5121
|
V as ColumnDef,
|
|
5096
|
-
|
|
5097
|
-
|
|
5122
|
+
Re as ConvenienceDomService,
|
|
5123
|
+
z as CopyService,
|
|
5098
5124
|
ne as CssVars,
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5125
|
+
to as DateToIntlDDMMYYYYCellRenderer,
|
|
5126
|
+
eo as DateToIsoCellRenderer,
|
|
5127
|
+
oo as DateToLocaleDateCellRenderer,
|
|
5128
|
+
no as DateToTecCellRenderer,
|
|
5103
5129
|
B as DefaultRowHeights,
|
|
5104
|
-
|
|
5130
|
+
_e as EleScope,
|
|
5105
5131
|
re as EventAdapter,
|
|
5106
5132
|
ae as FalseFn,
|
|
5107
5133
|
Ne as FocusModel,
|
|
5108
|
-
|
|
5134
|
+
Le as GeCellIndices,
|
|
5109
5135
|
G as GeCssColorUtil,
|
|
5110
|
-
|
|
5111
|
-
|
|
5136
|
+
Jt as GeFilterService,
|
|
5137
|
+
Xt as GeKeyEvent,
|
|
5112
5138
|
te as GeModelChangeEvent,
|
|
5113
5139
|
Q as GeMouseEvent,
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5140
|
+
O as GeoData,
|
|
5141
|
+
F as Icon,
|
|
5142
|
+
Lt as IndexAndPx,
|
|
5143
|
+
ze as InputCellRenderer,
|
|
5144
|
+
Pe as InputHandler,
|
|
5119
5145
|
P as LicenseManager,
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5146
|
+
io as MaleFemaleToIconCellRenderer,
|
|
5147
|
+
Me as MouseHandler,
|
|
5148
|
+
Ae as MouseTargetData,
|
|
5149
|
+
go as MultiRowsSelectionModel,
|
|
5150
|
+
so as NumberCellProgressBarCellRenderer,
|
|
5151
|
+
lo as NumberCellRenderer,
|
|
5152
|
+
Ve as OsxShortcutActionIdMapping,
|
|
5127
5153
|
ue as Padding,
|
|
5128
|
-
|
|
5129
|
-
|
|
5154
|
+
co as PositiveAndNegativeNumberRenderer,
|
|
5155
|
+
ho as ProgressBarCellRenderer,
|
|
5130
5156
|
Fe as RenderScope,
|
|
5131
|
-
|
|
5132
|
-
|
|
5157
|
+
Qt as Renderer,
|
|
5158
|
+
Qe as RequestChunk,
|
|
5159
|
+
Ye as ResizeHandler,
|
|
5133
5160
|
Ce as SelectCellRenderer,
|
|
5134
5161
|
we as SelectionModel,
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5162
|
+
He as SelectionService,
|
|
5163
|
+
We as ShortcutService,
|
|
5164
|
+
Ge as SimpleDomService,
|
|
5138
5165
|
w as Size,
|
|
5139
5166
|
$e as SortItem,
|
|
5140
5167
|
me as SortedOptions,
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5168
|
+
ao as StarRatingCellRenderer,
|
|
5169
|
+
Te as StoreStateCollapsedExpandService,
|
|
5170
|
+
Ie as StoreStateScrollPosService,
|
|
5171
|
+
De as StoreStateSortingService,
|
|
5172
|
+
Ee as TableApi,
|
|
5173
|
+
Yt as TableCellUpdateEvent,
|
|
5174
|
+
$ as TableFactory,
|
|
5148
5175
|
Y as TableModel,
|
|
5149
|
-
|
|
5176
|
+
$t as TableModelAndOptions,
|
|
5150
5177
|
U as TableOptions,
|
|
5151
5178
|
Se as TableScope,
|
|
5152
|
-
|
|
5179
|
+
bo as ThreeColorGradientArg,
|
|
5153
5180
|
ce as TreeCheckboxModel,
|
|
5154
5181
|
q as TreeFactory,
|
|
5155
5182
|
fe as TreeOptions,
|
|
5156
5183
|
le as TreeRow,
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5184
|
+
Ue as TreeRowService,
|
|
5185
|
+
ro as TrueFalseCellRenderer,
|
|
5186
|
+
Ke as TrueFn,
|
|
5160
5187
|
be as TwoColorGradientArg,
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5188
|
+
Ze as ValueLabel,
|
|
5189
|
+
Be as WindowsShortcutActionIdMapping,
|
|
5190
|
+
Ft as actionIds,
|
|
5191
|
+
Gt as allCenter,
|
|
5192
|
+
Wt as allLeft,
|
|
5193
|
+
zt as allRight,
|
|
5194
|
+
Bt as bodyCenter,
|
|
5195
|
+
Ht as bodyLeft,
|
|
5196
|
+
Vt as bodyRight,
|
|
5197
|
+
ye as debounce,
|
|
5198
|
+
uo as editInputPipeForNumber,
|
|
5171
5199
|
Z as getAreaIdentByString,
|
|
5172
5200
|
K as isAreaModelTree,
|
|
5173
|
-
|
|
5201
|
+
ve as isCheckboxColumnDef,
|
|
5174
5202
|
H as isTreeRow,
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5203
|
+
Ot as px0,
|
|
5204
|
+
_t as px10,
|
|
5205
|
+
vt as px100,
|
|
5206
|
+
yt as px110,
|
|
5207
|
+
Ct as px120,
|
|
5208
|
+
xt as px130,
|
|
5209
|
+
St as px140,
|
|
5210
|
+
wt as px150,
|
|
5211
|
+
mt as px160,
|
|
5212
|
+
ft as px170,
|
|
5213
|
+
bt as px180,
|
|
5214
|
+
pt as px190,
|
|
5215
|
+
Dt as px20,
|
|
5188
5216
|
de as px200,
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5217
|
+
gt as px210,
|
|
5218
|
+
ut as px220,
|
|
5219
|
+
ct as px230,
|
|
5220
|
+
ht as px240,
|
|
5221
|
+
dt as px250,
|
|
5222
|
+
at as px260,
|
|
5223
|
+
lt as px270,
|
|
5224
|
+
nt as px280,
|
|
5225
|
+
rt as px290,
|
|
5226
|
+
Tt as px30,
|
|
5227
|
+
st as px300,
|
|
5228
|
+
kt as px40,
|
|
5229
|
+
It as px50,
|
|
5230
|
+
Et as px60,
|
|
5231
|
+
Mt as px70,
|
|
5232
|
+
At as px80,
|
|
5233
|
+
Rt as px90,
|
|
5234
|
+
ot as throttle
|
|
5206
5235
|
};
|