@guiexpert/table 1.1.27 → 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 +20 -20
- package/index.d.ts +4 -0
- package/index.js +433 -361
- package/lib/common/debounce.d.ts +1 -0
- package/lib/common/throttle.d.ts +1 -0
- package/lib/table/data/common/size-unit.type.d.ts +9 -0
- package/lib/table/data/common/size.d.ts +3 -2
- package/lib/table/data/common/size.if.d.ts +3 -3
- package/lib/table/data/tablemodel/table-model.d.ts +12 -2
- package/lib/table/data/tablemodel/table-model.if.d.ts +8 -0
- package/lib/table/render-scope.d.ts +8 -0
- package/lib/table/resize-handler.d.ts +6 -0
- package/lib/table/table-api.d.ts +1 -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;
|
|
@@ -8,14 +25,14 @@ function et(c = 500) {
|
|
|
8
25
|
}, o;
|
|
9
26
|
};
|
|
10
27
|
}
|
|
11
|
-
class
|
|
28
|
+
class P {
|
|
12
29
|
// The constructor is private to prevent direct construction calls
|
|
13
30
|
// with the `new` operator
|
|
14
31
|
constructor() {
|
|
15
32
|
this.alreadySet = !1;
|
|
16
33
|
}
|
|
17
34
|
static getInstance() {
|
|
18
|
-
return
|
|
35
|
+
return P.instance || (P.instance = new P()), P.instance;
|
|
19
36
|
}
|
|
20
37
|
/**
|
|
21
38
|
* Method to set the license key for the application.
|
|
@@ -39,12 +56,12 @@ 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 {
|
|
46
|
-
constructor(e = -1, t = -1, o = -1, i = -1, s, r, l, n = 0,
|
|
47
|
-
this.rowIndex = e, this.rowTop = t, this.columnIndex = o, this.columnLeft = i, this.areaIdent = s, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX =
|
|
63
|
+
constructor(e = -1, t = -1, o = -1, i = -1, s, r, l, n = 0, a = 0, d = 0, h = "") {
|
|
64
|
+
this.rowIndex = e, this.rowTop = t, this.columnIndex = o, this.columnLeft = i, this.areaIdent = s, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX = a, this.draggingY = d, this.action = h;
|
|
48
65
|
}
|
|
49
66
|
clone() {
|
|
50
67
|
return new 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
|
}
|
|
@@ -169,24 +186,24 @@ class ve {
|
|
|
169
186
|
addRowDiv(e, t, o = -1, i, s, r = "") {
|
|
170
187
|
const l = t.index ?? -1, n = this.getDivOrCreateDiv(l, e);
|
|
171
188
|
if (this.domService.addClass(n, "ge-table-row-div"), this.domService.addClass(n, `ge-table-row-div-${t.index}`), i === "body" && s === "center") {
|
|
172
|
-
const
|
|
173
|
-
this.domService.addClass(n, `ge-table-row-${
|
|
189
|
+
const a = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
190
|
+
this.domService.addClass(n, `ge-table-row-${a}`);
|
|
174
191
|
}
|
|
175
192
|
if (this.domService.setStyle(n, "display", "clip"), this.domService.setStyle(n, "position", "absolute"), this.domService.setStyle(n, "left", `${t.left}px`), this.domService.setStyle(n, "top", `${t.top}px`), this.domService.setStyle(n, "width", `${t.width}px`), this.domService.setStyle(n, "height", `${t.height}px`), this.domService.setAttribute(n, "data-row-index", `${o}`), this.domService.setAttribute(n, "data-area", `${i}`), r) {
|
|
176
|
-
const
|
|
177
|
-
this.domService.appendChild(n,
|
|
193
|
+
const a = this.domService.createText(r);
|
|
194
|
+
this.domService.appendChild(n, a);
|
|
178
195
|
}
|
|
179
196
|
return this.domService.appendChild(e.child, n), n;
|
|
180
197
|
}
|
|
181
198
|
addColumnDiv(e) {
|
|
182
|
-
const { parent: t, geo: o, rowIndex: i = -1, columnIndex: s = -1, areaIdent: r, sideIdent: l, text: n = "", treeArrow:
|
|
199
|
+
const { parent: t, geo: o, rowIndex: i = -1, columnIndex: s = -1, areaIdent: r, sideIdent: l, text: n = "", treeArrow: a, tableOptions: d, checkedType: h = void 0, sortState: u } = e, m = d == null ? void 0 : d.treeOptions, b = d == null ? void 0 : d.showCheckboxWihoutExtraColumn, f = this.domService.createElement("div");
|
|
183
200
|
this.domService.addClass(f, "ge-table-col-div"), b && this.domService.addClass(f, "ge-with-checkbox"), this.domService.addClass(f, `ge-table-col-div-${o.index}`), this.domService.setAttribute(f, "data-col-index", `${o.index}`), this.domService.setAttribute(f, "data-row-index", `${i}`), this.domService.setAttribute(f, "data-area", `${r}`);
|
|
184
201
|
const g = ((o == null ? void 0 : o.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
185
|
-
if (r === "body" && l === "center" && this.domService.addClass(f, `ge-table-column-${g}`), this.domService.setStyle(f, "display", "clip"), this.domService.setStyle(f, "position", "absolute"), this.domService.setStyle(f, "left", `${o.left}px`), this.domService.setStyle(f, "top", `${o.top}px`), this.domService.setStyle(f, "width", `${o.width}px`), this.domService.setStyle(f, "height", `${o.height}px`),
|
|
186
|
-
const p =
|
|
202
|
+
if (r === "body" && l === "center" && this.domService.addClass(f, `ge-table-column-${g}`), this.domService.setStyle(f, "display", "clip"), this.domService.setStyle(f, "position", "absolute"), this.domService.setStyle(f, "left", `${o.left}px`), this.domService.setStyle(f, "top", `${o.top}px`), this.domService.setStyle(f, "width", `${o.width}px`), this.domService.setStyle(f, "height", `${o.height}px`), a && a !== "none" && (this.domService.addClass(f, "ge-table-col-tree"), this.addArrowDiv(f, a, m, i, s, r)), b && s === 0 && h && this.addCheckboxToDiv(f, h, r, i), n) {
|
|
203
|
+
const p = a !== "none" && s === 0;
|
|
187
204
|
this.addLabelDiv(f, n, p, i, s, r);
|
|
188
205
|
}
|
|
189
|
-
return u && this.addSortedIcon(f, u,
|
|
206
|
+
return u && this.addSortedIcon(f, u, d == null ? void 0 : d.sortedOptions, s), this.domService.appendChild(t, f), f;
|
|
190
207
|
}
|
|
191
208
|
addCheckboxToDiv(e, t, o, i) {
|
|
192
209
|
const s = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
|
|
@@ -208,8 +225,8 @@ class ve {
|
|
|
208
225
|
} else {
|
|
209
226
|
const n = this.domService.createElement("div");
|
|
210
227
|
this.domService.appendChild(l, n);
|
|
211
|
-
const
|
|
212
|
-
this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n,
|
|
228
|
+
const a = this.domService.createText(t);
|
|
229
|
+
this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n, a), this.domService.setAttribute(n, "data-row-index", `${i}`), this.domService.setAttribute(n, "data-col-index", `${s}`), this.domService.setAttribute(n, "data-area", `${r}`);
|
|
213
230
|
}
|
|
214
231
|
return this.domService.appendChild(e, l), l;
|
|
215
232
|
}
|
|
@@ -220,8 +237,8 @@ class ve {
|
|
|
220
237
|
t === "asc" ? r = o.iconAsc : t === "desc" ? r = o.iconDesc : r = o.iconPlaceholder;
|
|
221
238
|
const l = r.content, n = this.domService.createText(l);
|
|
222
239
|
this.domService.appendChild(s, n), r.style && this.applyStyleString(s, r.style);
|
|
223
|
-
for (const
|
|
224
|
-
this.domService.addClass(s,
|
|
240
|
+
for (const a of r.classes)
|
|
241
|
+
this.domService.addClass(s, a);
|
|
225
242
|
return this.domService.appendChild(e, s), s;
|
|
226
243
|
}
|
|
227
244
|
addArrowDiv(e, t = "none", o = new fe(), i = -1, s = -1, r = "body") {
|
|
@@ -229,8 +246,8 @@ class ve {
|
|
|
229
246
|
this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${i}`), this.domService.setAttribute(l, "data-col-index", `${s}`), this.domService.setAttribute(l, "data-area", `${r}`);
|
|
230
247
|
let n;
|
|
231
248
|
t === "expanded" ? n = o.arrowExpanded : t === "collapsed" ? n = o.arrowCollapsed : n = o.arrowPlaceholder;
|
|
232
|
-
const
|
|
233
|
-
this.domService.appendChild(l,
|
|
249
|
+
const a = n.content, d = this.domService.createText(a);
|
|
250
|
+
this.domService.appendChild(l, d), n.style && this.applyStyleString(l, n.style);
|
|
234
251
|
for (const h of n.classes)
|
|
235
252
|
this.domService.addClass(l, h);
|
|
236
253
|
return this.domService.appendChild(e, l), l;
|
|
@@ -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")
|
|
@@ -354,8 +371,8 @@ class Ae {
|
|
|
354
371
|
const n = l.getRowByIndex(s);
|
|
355
372
|
if (o && i === "body" && l.isEditable(s, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(s, r)), H(n) && r === this.getArrowColumnIndex()) {
|
|
356
373
|
e.preventDefault(), e.stopPropagation();
|
|
357
|
-
const
|
|
358
|
-
|
|
374
|
+
const a = n;
|
|
375
|
+
a.expanded = !a.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(a);
|
|
359
376
|
}
|
|
360
377
|
}
|
|
361
378
|
}
|
|
@@ -383,8 +400,8 @@ class Ae {
|
|
|
383
400
|
var o, i, s, r, l;
|
|
384
401
|
const t = (i = (o = this.tableScope.tableOptions) == null ? void 0 : o.autoRestoreOptions) == null ? void 0 : i.getRowId;
|
|
385
402
|
if (t) {
|
|
386
|
-
const n = (s = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : s.collapsedExpandedStateGet().mode,
|
|
387
|
-
|
|
403
|
+
const n = (s = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : s.collapsedExpandedStateGet().mode, a = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, d = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded, h = t(e.data);
|
|
404
|
+
a ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : d && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(h));
|
|
388
405
|
}
|
|
389
406
|
}
|
|
390
407
|
getArrowColumnIndex() {
|
|
@@ -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
|
}
|
|
@@ -537,6 +554,9 @@ class Me {
|
|
|
537
554
|
repaintHard() {
|
|
538
555
|
this.tableScope.repaintHard();
|
|
539
556
|
}
|
|
557
|
+
recalcColumnWidths(e) {
|
|
558
|
+
this.tableScope.recalcColumnWidths(e);
|
|
559
|
+
}
|
|
540
560
|
/**
|
|
541
561
|
* Clears the current selection of the table.
|
|
542
562
|
* The table will be rendered automatically.
|
|
@@ -680,7 +700,7 @@ class ee {
|
|
|
680
700
|
// }
|
|
681
701
|
// }
|
|
682
702
|
}
|
|
683
|
-
class
|
|
703
|
+
class Ie extends ee {
|
|
684
704
|
constructor(e) {
|
|
685
705
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
686
706
|
}
|
|
@@ -702,14 +722,14 @@ class Ee extends ee {
|
|
|
702
722
|
}
|
|
703
723
|
}
|
|
704
724
|
}
|
|
705
|
-
class
|
|
725
|
+
class ke {
|
|
706
726
|
constructor(e = "collapsed", t = [], o = !1, i = !1) {
|
|
707
727
|
this.mode = e, this.rowIds = t, this.allCollapsed = o, this.allExpanded = i;
|
|
708
728
|
}
|
|
709
729
|
}
|
|
710
|
-
class
|
|
730
|
+
class Te extends ee {
|
|
711
731
|
constructor(e) {
|
|
712
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
732
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new ke(), this.load();
|
|
713
733
|
}
|
|
714
734
|
collapsedExpandedStateGet() {
|
|
715
735
|
return this.collapsedExpandedState;
|
|
@@ -741,7 +761,7 @@ class ke extends ee {
|
|
|
741
761
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
742
762
|
}
|
|
743
763
|
}
|
|
744
|
-
class
|
|
764
|
+
class De extends ee {
|
|
745
765
|
constructor(e) {
|
|
746
766
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
747
767
|
}
|
|
@@ -762,14 +782,14 @@ class Te extends ee {
|
|
|
762
782
|
}
|
|
763
783
|
}
|
|
764
784
|
}
|
|
765
|
-
class
|
|
785
|
+
class O {
|
|
766
786
|
constructor(e = 0, t = 0, o = 0, i = 0, s) {
|
|
767
787
|
this.left = e, this.width = t, this.height = o, this.top = i, this.index = s;
|
|
768
788
|
}
|
|
769
789
|
}
|
|
770
|
-
class
|
|
790
|
+
class _e {
|
|
771
791
|
constructor(e, t, o, i) {
|
|
772
|
-
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();
|
|
773
793
|
const s = this.hostElement;
|
|
774
794
|
s.innerText = "", this.dom.setAttribute(s, "tabindex", "0"), this.dom.setStyle(
|
|
775
795
|
this.dom.addClass("ge-table", s),
|
|
@@ -973,7 +993,7 @@ class A {
|
|
|
973
993
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
974
994
|
}
|
|
975
995
|
}
|
|
976
|
-
class
|
|
996
|
+
class Oe {
|
|
977
997
|
constructor(e, t) {
|
|
978
998
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
979
999
|
}
|
|
@@ -1011,7 +1031,7 @@ class T {
|
|
|
1011
1031
|
this.header = e, this.body = t, this.footer = o;
|
|
1012
1032
|
}
|
|
1013
1033
|
}
|
|
1014
|
-
class Fe extends
|
|
1034
|
+
class Fe extends _e {
|
|
1015
1035
|
constructor(e, t, o, i) {
|
|
1016
1036
|
var r, l;
|
|
1017
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 = {
|
|
@@ -1020,8 +1040,8 @@ class Fe extends De {
|
|
|
1020
1040
|
footer: []
|
|
1021
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(
|
|
1022
1042
|
(n) => {
|
|
1023
|
-
var
|
|
1024
|
-
this.colAndRowspanModels[n] = new
|
|
1043
|
+
var a;
|
|
1044
|
+
this.colAndRowspanModels[n] = new Oe(t, t.getAreaModel(n)), (a = this.colAndRowspanModels[n]) == null || a.init();
|
|
1025
1045
|
}
|
|
1026
1046
|
);
|
|
1027
1047
|
}
|
|
@@ -1087,6 +1107,17 @@ class Fe extends De {
|
|
|
1087
1107
|
repaintHard() {
|
|
1088
1108
|
this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows(), this.adjustAfterScrolling();
|
|
1089
1109
|
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Recalculates the column widths of the table.
|
|
1112
|
+
*
|
|
1113
|
+
* @param {number} [clientWidth] - The client width of the table. If not provided, the client width of the scroll viewport will be used.
|
|
1114
|
+
*
|
|
1115
|
+
* @return {undefined}
|
|
1116
|
+
*/
|
|
1117
|
+
recalcColumnWidths(e) {
|
|
1118
|
+
let t = e || this.scrollViewport.clientWidth;
|
|
1119
|
+
this.tableModel.setParentWidth(t), this.tableModel.init(), this.repaintHard();
|
|
1120
|
+
}
|
|
1090
1121
|
/**
|
|
1091
1122
|
* Adjusts the table after scrolling. This method performs various adjustments
|
|
1092
1123
|
* to the table's appearance and behavior after a scroll event occurs.
|
|
@@ -1096,19 +1127,19 @@ class Fe extends De {
|
|
|
1096
1127
|
for (const t of this.removables)
|
|
1097
1128
|
t.remove();
|
|
1098
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(
|
|
1099
|
-
new
|
|
1130
|
+
new O(0, this.hostElement.clientWidth, 1, 0),
|
|
1100
1131
|
this.hostElement,
|
|
1101
1132
|
"ge-table-border"
|
|
1102
1133
|
)), this.tableOptions.tableBottomBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
1103
|
-
new
|
|
1134
|
+
new O(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
|
|
1104
1135
|
this.hostElement,
|
|
1105
1136
|
"ge-table-border"
|
|
1106
1137
|
)), this.tableModel.getFixedLeftColumnCount() > 0 && this.removables.push(this.dom.addVerticalBorder(
|
|
1107
|
-
new
|
|
1138
|
+
new O(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
|
|
1108
1139
|
this.hostElement,
|
|
1109
1140
|
"ge-table-body-west-vertical-border"
|
|
1110
1141
|
)), ((e = this.tableModel.getAreaModel("header")) == null ? void 0 : e.getRowCount()) > 0 && this.removables.push(this.dom.addHorizontalBorder(
|
|
1111
|
-
new
|
|
1142
|
+
new O(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
|
|
1112
1143
|
this.hostElement,
|
|
1113
1144
|
"ge-table-body-west-vertical-border"
|
|
1114
1145
|
));
|
|
@@ -1149,10 +1180,10 @@ class Fe extends De {
|
|
|
1149
1180
|
rerenderCellContent({ area: e, rowIndex: t, columnIndex: o, value: i, cssClasses: s }) {
|
|
1150
1181
|
const r = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + o + '"][data-row-index="' + t + '"][data-area="' + e + '"]', n = document.querySelector(l);
|
|
1151
1182
|
if (n) {
|
|
1152
|
-
let
|
|
1183
|
+
let a;
|
|
1153
1184
|
const h = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === o ? this.editorRenderer : r.getCellRenderer(t, o);
|
|
1154
1185
|
if (n.innerText = "", this.applyCssClasses(n, s), h)
|
|
1155
|
-
|
|
1186
|
+
a = h.render(n, t, o, e, r, i, this.dom.domService), a && this.cleanupFunctions[e].push(a);
|
|
1156
1187
|
else {
|
|
1157
1188
|
const b = `${i}`;
|
|
1158
1189
|
this.dom.addLabelDiv(n, b, !1, t, o, e);
|
|
@@ -1274,7 +1305,7 @@ class Fe extends De {
|
|
|
1274
1305
|
var g;
|
|
1275
1306
|
const o = this.getArea(e, "west"), i = this.getArea(e, "center"), s = this.getArea(e, "east"), r = i.child.clientHeight;
|
|
1276
1307
|
o.child.innerText = "", i.child.innerText = "", s.child.innerText = "";
|
|
1277
|
-
const l = 0, n = this.areaBodyCenterGeo.width,
|
|
1308
|
+
const l = 0, n = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), d = this.tableModel.getAreaModel(e), h = d.getRowCount();
|
|
1278
1309
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1279
1310
|
const p = this.cleanupFunctions[e].shift();
|
|
1280
1311
|
p && p();
|
|
@@ -1290,7 +1321,7 @@ class Fe extends De {
|
|
|
1290
1321
|
if (this.adjustColumnsToRowParent({
|
|
1291
1322
|
areaIdent: e,
|
|
1292
1323
|
sideIdent: "center",
|
|
1293
|
-
areaModel:
|
|
1324
|
+
areaModel: d,
|
|
1294
1325
|
geo: x,
|
|
1295
1326
|
parent: S,
|
|
1296
1327
|
rowIndex: p,
|
|
@@ -1298,10 +1329,10 @@ class Fe extends De {
|
|
|
1298
1329
|
columnIndexEnd: m - b - 1,
|
|
1299
1330
|
verticalFixed: !1,
|
|
1300
1331
|
lastRowOfModel: y
|
|
1301
|
-
}),
|
|
1332
|
+
}), a.left > 0 && (x = { left: l, width: this.areaBodyWestGeo.width, height: R, top: C, index: p }, S = this.dom.addRowDiv(o, x, p, e, "west"), this.adjustColumnsToRowParent({
|
|
1302
1333
|
areaIdent: e,
|
|
1303
1334
|
sideIdent: "west",
|
|
1304
|
-
areaModel:
|
|
1335
|
+
areaModel: d,
|
|
1305
1336
|
geo: x,
|
|
1306
1337
|
parent: S,
|
|
1307
1338
|
rowIndex: p,
|
|
@@ -1309,10 +1340,10 @@ class Fe extends De {
|
|
|
1309
1340
|
columnIndexEnd: k - 1,
|
|
1310
1341
|
verticalFixed: !0,
|
|
1311
1342
|
lastRowOfModel: y
|
|
1312
|
-
})),
|
|
1343
|
+
})), a.right > 0 && (x = { left: l, width: this.areaBodyEastGeo.width, height: R, top: C, index: p }, S = this.dom.addRowDiv(s, x, p, e, "east"), this.adjustColumnsToRowParent({
|
|
1313
1344
|
areaIdent: e,
|
|
1314
1345
|
sideIdent: "east",
|
|
1315
|
-
areaModel:
|
|
1346
|
+
areaModel: d,
|
|
1316
1347
|
geo: x,
|
|
1317
1348
|
parent: S,
|
|
1318
1349
|
rowIndex: p,
|
|
@@ -1323,7 +1354,7 @@ class Fe extends De {
|
|
|
1323
1354
|
})), e === "header" && this.tree && p === h - 1) {
|
|
1324
1355
|
const M = this.dom.applyStyle(
|
|
1325
1356
|
this.dom.setAttribute(
|
|
1326
|
-
this.dom.addDiv(S, new
|
|
1357
|
+
this.dom.addDiv(S, new O(16, 20, 20, 8)),
|
|
1327
1358
|
"data-ge-action",
|
|
1328
1359
|
"toggleExpandCollapseAll"
|
|
1329
1360
|
),
|
|
@@ -1351,7 +1382,7 @@ class Fe extends De {
|
|
|
1351
1382
|
const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1352
1383
|
y = this.scrollFactorX * S - this.areaBodyWestGeo.width, x = "center";
|
|
1353
1384
|
}
|
|
1354
|
-
this.drawBigCell(C, y, t,
|
|
1385
|
+
this.drawBigCell(C, y, t, d, R, x);
|
|
1355
1386
|
}
|
|
1356
1387
|
}
|
|
1357
1388
|
}
|
|
@@ -1366,10 +1397,10 @@ class Fe extends De {
|
|
|
1366
1397
|
* @protected
|
|
1367
1398
|
*/
|
|
1368
1399
|
drawBigCell(e, t, o, i, s, r) {
|
|
1369
|
-
const l = o + this.getRowHeights(0, e.r1 - 1, i).reduce((g, p) => g + p, 0), n = this.tableModel.getColumnCount(),
|
|
1370
|
-
let
|
|
1371
|
-
|
|
1372
|
-
const h = t + this.getColumnWidths(
|
|
1400
|
+
const l = o + this.getRowHeights(0, e.r1 - 1, i).reduce((g, p) => g + p, 0), n = this.tableModel.getColumnCount(), a = this.tableModel.getFixedRightColumnCount();
|
|
1401
|
+
let d = 0;
|
|
1402
|
+
a > 0 && e.c1 >= n - a && (d = n - a);
|
|
1403
|
+
const h = t + this.getColumnWidths(d, e.c1 - 1).reduce((g, p) => g + p, 0), u = this.getRowHeights(e.r1, e.r2, i).reduce((g, p) => g + p, 0), m = this.getColumnWidths(e.c1, e.c2).reduce((g, p) => g + p, 0);
|
|
1373
1404
|
let b = !1;
|
|
1374
1405
|
const f = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
1375
1406
|
f && (b = f.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
@@ -1446,13 +1477,13 @@ class Fe extends De {
|
|
|
1446
1477
|
rowIndex: r,
|
|
1447
1478
|
columnIndexStart: l,
|
|
1448
1479
|
columnIndexEnd: n,
|
|
1449
|
-
verticalFixed:
|
|
1450
|
-
lastRowOfModel:
|
|
1480
|
+
verticalFixed: a = !1,
|
|
1481
|
+
lastRowOfModel: d = !1
|
|
1451
1482
|
}) {
|
|
1452
1483
|
var f;
|
|
1453
1484
|
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
1454
1485
|
let h = 0;
|
|
1455
|
-
if (!
|
|
1486
|
+
if (!a) {
|
|
1456
1487
|
const g = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1457
1488
|
h = this.scrollFactorX * g;
|
|
1458
1489
|
}
|
|
@@ -1485,7 +1516,7 @@ class Fe extends De {
|
|
|
1485
1516
|
height: y,
|
|
1486
1517
|
parent: s,
|
|
1487
1518
|
cellSelected: M,
|
|
1488
|
-
lastRowOfModel:
|
|
1519
|
+
lastRowOfModel: d,
|
|
1489
1520
|
gammaRange: !0
|
|
1490
1521
|
}), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
1491
1522
|
rowIndex: r,
|
|
@@ -1501,7 +1532,7 @@ class Fe extends De {
|
|
|
1501
1532
|
if (b = b + C, b > this.areaBodyCenterGeo.width)
|
|
1502
1533
|
break;
|
|
1503
1534
|
}
|
|
1504
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new
|
|
1535
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new O(b - 1, 1, i.height, 0), s);
|
|
1505
1536
|
}
|
|
1506
1537
|
/**
|
|
1507
1538
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -1524,12 +1555,12 @@ class Fe extends De {
|
|
|
1524
1555
|
left: r,
|
|
1525
1556
|
width: l,
|
|
1526
1557
|
height: n,
|
|
1527
|
-
top:
|
|
1528
|
-
parent:
|
|
1558
|
+
top: a,
|
|
1559
|
+
parent: d,
|
|
1529
1560
|
lastRowOfModel: h
|
|
1530
1561
|
}) {
|
|
1531
1562
|
var se;
|
|
1532
|
-
const m = this.editorRenderer && this.editorRendererRow === i && this.editorRendererColumn === s ? this.editorRenderer : e.getCellRenderer(i, s), b = { left: r, width: l, height: n, top:
|
|
1563
|
+
const m = this.editorRenderer && this.editorRendererRow === i && this.editorRendererColumn === s ? this.editorRenderer : e.getCellRenderer(i, s), b = { left: r, width: l, height: n, top: a, index: s }, f = e.getRowByIndex(i);
|
|
1533
1564
|
let g = "none";
|
|
1534
1565
|
if (s === this.getTreeArrowColumnIndex() && H(f)) {
|
|
1535
1566
|
const v = f;
|
|
@@ -1542,7 +1573,7 @@ class Fe extends De {
|
|
|
1542
1573
|
}
|
|
1543
1574
|
const y = e.getValueAt(i, s), R = m ? "" : `${y}`, x = e.isRowChecked(i), S = this.dom.addColumnDiv(
|
|
1544
1575
|
{
|
|
1545
|
-
parent:
|
|
1576
|
+
parent: d,
|
|
1546
1577
|
geo: b,
|
|
1547
1578
|
rowIndex: i,
|
|
1548
1579
|
columnIndex: s,
|
|
@@ -1561,9 +1592,9 @@ class Fe extends De {
|
|
|
1561
1592
|
let E;
|
|
1562
1593
|
m && (E = m.render(S, i, s, t, e, y, this.dom.domService));
|
|
1563
1594
|
const W = e.getCustomClassesAt(i, s);
|
|
1564
|
-
if (W.length && this.dom.addClasses(W, S), this.dom.addColumnBorderDivs(this.tableOptions,
|
|
1595
|
+
if (W.length && this.dom.addClasses(W, S), this.dom.addColumnBorderDivs(this.tableOptions, d, b, t, o), h && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: a + n }, d), this.getFocusModel && t === "body") {
|
|
1565
1596
|
const v = this.getFocusModel();
|
|
1566
|
-
v != null && v.hasFocus(i, s) && this.dom.addFocusBorderDivs(
|
|
1597
|
+
v != null && v.hasFocus(i, s) && this.dom.addFocusBorderDivs(d, b, {});
|
|
1567
1598
|
}
|
|
1568
1599
|
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
1569
1600
|
const X = e.getCustomStyleAt(i, s);
|
|
@@ -1702,12 +1733,12 @@ class Fe extends De {
|
|
|
1702
1733
|
if (this.dragging) {
|
|
1703
1734
|
const r = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
|
|
1704
1735
|
if ((i = e.originalEvent) != null && i.clientX) {
|
|
1705
|
-
const
|
|
1736
|
+
const d = { left: ((s = e.originalEvent) == null ? void 0 : s.clientX) - l / 2, width: l, height: r, top: 0, index: t };
|
|
1706
1737
|
this.dom.applyStyle(this.draggingColumn, {
|
|
1707
1738
|
background: "rgba(128,128,128,0.2)",
|
|
1708
1739
|
display: "block",
|
|
1709
1740
|
overfllow: "clip"
|
|
1710
|
-
}), this.dom.applyStyleInPx(this.draggingColumn,
|
|
1741
|
+
}), this.dom.applyStyleInPx(this.draggingColumn, d), o && this.renderContentOfDraggingColumn(d);
|
|
1711
1742
|
}
|
|
1712
1743
|
} else
|
|
1713
1744
|
this.hideDraggingColumn();
|
|
@@ -1735,23 +1766,23 @@ class Fe extends De {
|
|
|
1735
1766
|
const i = "center", s = this.tableModel.getAreaModel(t), r = s == null ? void 0 : s.getRowCount();
|
|
1736
1767
|
if (r) {
|
|
1737
1768
|
const l = e.index ?? 0, n = this.draggingColumn;
|
|
1738
|
-
for (let
|
|
1739
|
-
const
|
|
1769
|
+
for (let a = 0; a < r; a++) {
|
|
1770
|
+
const d = o, h = s.getRowHeight(a), u = { left: 0, width: e.width, height: h, top: d, index: a }, m = s.getValueAt(a, l), b = s.getCellRenderer(a, l), f = b ? "" : `${m}`, g = {
|
|
1740
1771
|
parent: n,
|
|
1741
1772
|
geo: u,
|
|
1742
|
-
rowIndex:
|
|
1773
|
+
rowIndex: a,
|
|
1743
1774
|
columnIndex: l,
|
|
1744
1775
|
areaIdent: t,
|
|
1745
1776
|
sideIdent: i,
|
|
1746
1777
|
text: f
|
|
1747
1778
|
}, p = this.dom.addColumnDiv(g);
|
|
1748
1779
|
let C;
|
|
1749
|
-
b && (C = b.render(p,
|
|
1750
|
-
const y = s.getCustomClassesAt(
|
|
1780
|
+
b && (C = b.render(p, a, l, t, s, m, this.dom.domService), C && this.cleanupFunctions[t].push(C));
|
|
1781
|
+
const y = s.getCustomClassesAt(a, l);
|
|
1751
1782
|
y.length && this.dom.addClasses(y, p);
|
|
1752
1783
|
const R = this.tableModel.getColumnDef(l);
|
|
1753
1784
|
R && R.classes[t] && this.dom.addClasses(R.classes[t], p), this.dom.addColumnBorderDivs(this.tableOptions, n, u, t, i);
|
|
1754
|
-
const x = s.getCustomStyleAt(
|
|
1785
|
+
const x = s.getCustomStyleAt(a, l);
|
|
1755
1786
|
if (x)
|
|
1756
1787
|
for (const S in x)
|
|
1757
1788
|
this.dom.setStyle(p, S, x[S]);
|
|
@@ -1804,7 +1835,7 @@ class Fe extends De {
|
|
|
1804
1835
|
* @param {number} height - The height of the div.
|
|
1805
1836
|
* @returns {boolean} - Whether the cell is selected.
|
|
1806
1837
|
*/
|
|
1807
|
-
renderSelectedBackgroundDiv(e, t, o, i, s, r, l, n,
|
|
1838
|
+
renderSelectedBackgroundDiv(e, t, o, i, s, r, l, n, a, d, h) {
|
|
1808
1839
|
let u = !1;
|
|
1809
1840
|
if (!e && t && i.isSelectable(s, r) && this.getSelectionModel) {
|
|
1810
1841
|
const m = this.getSelectionModel();
|
|
@@ -1816,7 +1847,7 @@ class Fe extends De {
|
|
|
1816
1847
|
// ge-table-body-west-selected-range
|
|
1817
1848
|
this.dom.createDivWithClass(`ge-table-${i.areaIdent}-${o}-selected-range`, l)
|
|
1818
1849
|
);
|
|
1819
|
-
this.dom.setStyle(g, "left", `${n}px`), this.dom.setStyle(g, "top", `${
|
|
1850
|
+
this.dom.setStyle(g, "left", `${n}px`), this.dom.setStyle(g, "top", `${a}px`), this.dom.setStyle(g, "width", `${d}px`), this.dom.setStyle(g, "height", `${h}px`);
|
|
1820
1851
|
}
|
|
1821
1852
|
}
|
|
1822
1853
|
}
|
|
@@ -1850,8 +1881,8 @@ class Fe extends De {
|
|
|
1850
1881
|
left: r,
|
|
1851
1882
|
top: l,
|
|
1852
1883
|
width: n,
|
|
1853
|
-
height:
|
|
1854
|
-
parent:
|
|
1884
|
+
height: a,
|
|
1885
|
+
parent: d,
|
|
1855
1886
|
cellSelected: h,
|
|
1856
1887
|
lastRowOfModel: u
|
|
1857
1888
|
}) {
|
|
@@ -1863,9 +1894,9 @@ class Fe extends De {
|
|
|
1863
1894
|
index: s,
|
|
1864
1895
|
left: r,
|
|
1865
1896
|
width: n,
|
|
1866
|
-
height:
|
|
1897
|
+
height: a,
|
|
1867
1898
|
top: l,
|
|
1868
|
-
parent:
|
|
1899
|
+
parent: d,
|
|
1869
1900
|
lastRowOfModel: u
|
|
1870
1901
|
});
|
|
1871
1902
|
h && this.dom.addClass(`ge-table-${t}-${o}-selected-range`, m), b && this.cleanupFunctions[t].push(b);
|
|
@@ -1885,8 +1916,8 @@ class Fe extends De {
|
|
|
1885
1916
|
* @return {void}
|
|
1886
1917
|
*/
|
|
1887
1918
|
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: o, cellTop: i, cellWidth: s, cellHeight: r, parent: l }) {
|
|
1888
|
-
const n = this.dom.domService,
|
|
1889
|
-
n.setAttribute(
|
|
1919
|
+
const n = this.dom.domService, a = this.tableOptions.columnResizeHandleWidthInPx ?? 2, d = n.createElement("div");
|
|
1920
|
+
n.setAttribute(d, "data-col-index", `${t}`), n.setAttribute(d, "data-row-index", `${e}`), n.setAttribute(d, "data-area", "header"), n.setAttribute(d, "data-ge-action", "resize-column"), n.addClass(d, "ge-table-column-resize-handle"), n.setStyle(d, "display", "clip"), n.setStyle(d, "position", "absolute"), n.setStyle(d, "cursor", "col-resize"), n.setStyle(d, "left", `${o + s - a}px`), n.setStyle(d, "top", `${i}px`), n.setStyle(d, "width", `${a}px`), n.setStyle(d, "height", `${r}px`), n.appendChild(l, d);
|
|
1890
1921
|
}
|
|
1891
1922
|
}
|
|
1892
1923
|
class $e {
|
|
@@ -1894,7 +1925,7 @@ class $e {
|
|
|
1894
1925
|
this.columnIndex = e, this.sortState = t;
|
|
1895
1926
|
}
|
|
1896
1927
|
}
|
|
1897
|
-
class
|
|
1928
|
+
class Pe {
|
|
1898
1929
|
constructor(e) {
|
|
1899
1930
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
1900
1931
|
}
|
|
@@ -1929,17 +1960,17 @@ class te {
|
|
|
1929
1960
|
return new te([new Le(e, t)]);
|
|
1930
1961
|
}
|
|
1931
1962
|
}
|
|
1932
|
-
class
|
|
1963
|
+
class He {
|
|
1933
1964
|
constructor(e) {
|
|
1934
1965
|
var t, o;
|
|
1935
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);
|
|
1936
1967
|
}
|
|
1937
1968
|
onMouseClicked(e, t) {
|
|
1938
|
-
var s, r, l, n,
|
|
1969
|
+
var s, r, l, n, a, d, h;
|
|
1939
1970
|
let o = !1, i = !1;
|
|
1940
1971
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
1941
1972
|
const u = this.getSelectionModel(), m = this.getFocusModel();
|
|
1942
|
-
u && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(m), o = !0), (s = e.originalEvent) != null && s.shiftKey || u.hasSelection() && (u.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), i = !0, o = !0) : (l = e.originalEvent) != null && l.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (
|
|
1973
|
+
u && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(m), o = !0), (s = e.originalEvent) != null && s.shiftKey || u.hasSelection() && (u.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), i = !0, o = !0) : (l = e.originalEvent) != null && l.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (a = e.originalEvent) != null && a.metaKey) ? (u.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), i = !0, o = !0) : (d = e.originalEvent) != null && d.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (u.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), i = !0, o = !0) : (u.firstClick(e.rowIndex, e.columnIndex), o = !0), this.tableScope.onSelectionChanged(u));
|
|
1943
1974
|
}
|
|
1944
1975
|
return i ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), o;
|
|
1945
1976
|
}
|
|
@@ -1970,7 +2001,7 @@ class Pe {
|
|
|
1970
2001
|
});
|
|
1971
2002
|
}
|
|
1972
2003
|
}
|
|
1973
|
-
class
|
|
2004
|
+
class Be {
|
|
1974
2005
|
get() {
|
|
1975
2006
|
return {
|
|
1976
2007
|
f2: "START_EDITING",
|
|
@@ -1990,7 +2021,7 @@ class He {
|
|
|
1990
2021
|
};
|
|
1991
2022
|
}
|
|
1992
2023
|
}
|
|
1993
|
-
class
|
|
2024
|
+
class Ve {
|
|
1994
2025
|
get() {
|
|
1995
2026
|
return {
|
|
1996
2027
|
f2: "START_EDITING",
|
|
@@ -2012,7 +2043,7 @@ class Be {
|
|
|
2012
2043
|
};
|
|
2013
2044
|
}
|
|
2014
2045
|
}
|
|
2015
|
-
class
|
|
2046
|
+
class We {
|
|
2016
2047
|
constructor(e) {
|
|
2017
2048
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
2018
2049
|
}
|
|
@@ -2033,7 +2064,7 @@ class Ve {
|
|
|
2033
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));
|
|
2034
2065
|
}
|
|
2035
2066
|
assignPredefinedSystemShortcutMappings() {
|
|
2036
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
2067
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Ve().get()) : Object.assign(this.shortcutActionIdMapping, new Be().get());
|
|
2037
2068
|
}
|
|
2038
2069
|
isMacintosh() {
|
|
2039
2070
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -2105,7 +2136,7 @@ class re {
|
|
|
2105
2136
|
onFocusChanged(e) {
|
|
2106
2137
|
}
|
|
2107
2138
|
}
|
|
2108
|
-
class
|
|
2139
|
+
class Ge {
|
|
2109
2140
|
setStyle(e, t, o) {
|
|
2110
2141
|
return e.style[t] = o, e;
|
|
2111
2142
|
}
|
|
@@ -2132,7 +2163,7 @@ class We {
|
|
|
2132
2163
|
e.setAttribute(t, o);
|
|
2133
2164
|
}
|
|
2134
2165
|
}
|
|
2135
|
-
class
|
|
2166
|
+
class ze {
|
|
2136
2167
|
render(e, t, o, i, s, r, l) {
|
|
2137
2168
|
if (s.isEditable(t, o)) {
|
|
2138
2169
|
l.addClass(e, "ge-table-row-input-div");
|
|
@@ -2273,11 +2304,11 @@ class Ne {
|
|
|
2273
2304
|
}
|
|
2274
2305
|
}
|
|
2275
2306
|
class oe {
|
|
2276
|
-
constructor(e = new
|
|
2307
|
+
constructor(e = new F(
|
|
2277
2308
|
"❯",
|
|
2278
2309
|
"",
|
|
2279
2310
|
["gt-table-icon-expanded"]
|
|
2280
|
-
), t = new
|
|
2311
|
+
), t = new F(
|
|
2281
2312
|
"❯",
|
|
2282
2313
|
"transform: rotate(180deg) translate(-100%, -100%); transform-origin: 0 0;",
|
|
2283
2314
|
["ge-table-icon-collapsed"]
|
|
@@ -2286,17 +2317,17 @@ class oe {
|
|
|
2286
2317
|
}
|
|
2287
2318
|
// `⊖ `, `⊕ `;
|
|
2288
2319
|
}
|
|
2289
|
-
const
|
|
2320
|
+
const je = new we(), Xe = new Ne("cell");
|
|
2290
2321
|
class U {
|
|
2291
2322
|
constructor() {
|
|
2292
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 = {
|
|
2293
2324
|
header: 34,
|
|
2294
2325
|
body: 34,
|
|
2295
2326
|
footer: 34
|
|
2296
|
-
}, 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;
|
|
2297
2328
|
}
|
|
2298
2329
|
}
|
|
2299
|
-
const
|
|
2330
|
+
const L = class L {
|
|
2300
2331
|
/**
|
|
2301
2332
|
* Returns the content to be copied based on the provided table model, selection model, and focus model.
|
|
2302
2333
|
*
|
|
@@ -2314,14 +2345,14 @@ const P = class P {
|
|
|
2314
2345
|
r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
|
|
2315
2346
|
const l = [];
|
|
2316
2347
|
for (let n = r.r1; n <= r.r2; n++) {
|
|
2317
|
-
const
|
|
2318
|
-
for (let
|
|
2319
|
-
const h = t.isSelected(n,
|
|
2320
|
-
|
|
2348
|
+
const a = [];
|
|
2349
|
+
for (let d = r.c1; d <= r.c2; d++) {
|
|
2350
|
+
const h = t.isSelected(n, d) ? e.getBodyModel().getTextValueAt(n, d) : "";
|
|
2351
|
+
a.push(h);
|
|
2321
2352
|
}
|
|
2322
|
-
l.push(
|
|
2353
|
+
l.push(a.join(L.columnSeparatorChar));
|
|
2323
2354
|
}
|
|
2324
|
-
return i(l.join(
|
|
2355
|
+
return i(l.join(L.rowSeparatorChar));
|
|
2325
2356
|
}
|
|
2326
2357
|
}
|
|
2327
2358
|
if (o) {
|
|
@@ -2378,17 +2409,26 @@ const P = class P {
|
|
|
2378
2409
|
return t;
|
|
2379
2410
|
}
|
|
2380
2411
|
};
|
|
2381
|
-
|
|
2412
|
+
L.columnSeparatorChar = " ", L.rowSeparatorChar = `
|
|
2382
2413
|
`;
|
|
2383
|
-
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
|
+
}
|
|
2384
2424
|
class Se extends Fe {
|
|
2385
|
-
constructor(e, t, o, i, s, r = new
|
|
2386
|
-
var
|
|
2387
|
-
if (super(e, t, new
|
|
2388
|
-
const
|
|
2389
|
-
h && (
|
|
2425
|
+
constructor(e, t, o, i, s, r = new z()) {
|
|
2426
|
+
var a;
|
|
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) {
|
|
2428
|
+
const d = this.tableOptions.autoRestoreOptions, h = d.getStorageKeyFn;
|
|
2429
|
+
h && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Ie(h)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new Te(h)), d.autoRestoreSortingState && (this.storeSortingService = new De(h)));
|
|
2390
2430
|
}
|
|
2391
|
-
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);
|
|
2392
2432
|
const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
2393
2433
|
l && l.addEventSelectionChangedListener(this);
|
|
2394
2434
|
const n = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
@@ -2406,7 +2446,7 @@ class Se extends Fe {
|
|
|
2406
2446
|
*
|
|
2407
2447
|
* @return {TableScope} - The newly created TableScope instance.
|
|
2408
2448
|
*/
|
|
2409
|
-
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()) {
|
|
2410
2450
|
return new Se(e, t, s, o, i, r);
|
|
2411
2451
|
}
|
|
2412
2452
|
/**
|
|
@@ -2604,8 +2644,8 @@ class Se extends Fe {
|
|
|
2604
2644
|
const i = this.tableModel.getColumnDef(o);
|
|
2605
2645
|
if (i != null && i.sortable && i.sortable()) {
|
|
2606
2646
|
e.preventDefault(), e.stopPropagation();
|
|
2607
|
-
const l = i.sortStatesOrder ? i.sortStatesOrder : this.tableOptions.sortOrder, n = i.sortState ?? "",
|
|
2608
|
-
this.tableModel.doSort([
|
|
2647
|
+
const l = i.sortStatesOrder ? i.sortStatesOrder : this.tableOptions.sortOrder, n = i.sortState ?? "", a = l[(l.indexOf(n) + 1) % l.length], d = new $e(o, a);
|
|
2648
|
+
this.tableModel.doSort([d]) && ((s = this.tableModel.getColumnDefs()) == null || s.forEach((u) => u.sortState = ""), i.sortState = a), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([d]);
|
|
2609
2649
|
}
|
|
2610
2650
|
}
|
|
2611
2651
|
/**
|
|
@@ -2752,16 +2792,16 @@ class Se extends Fe {
|
|
|
2752
2792
|
const s = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
2753
2793
|
if (K(r)) {
|
|
2754
2794
|
const l = r, n = r.getRowCount();
|
|
2755
|
-
for (let
|
|
2756
|
-
const
|
|
2757
|
-
if (
|
|
2795
|
+
for (let a = 0; a < n; a++) {
|
|
2796
|
+
const d = r.getRowByIndex(a);
|
|
2797
|
+
if (d)
|
|
2758
2798
|
if (s.allExpanded)
|
|
2759
|
-
|
|
2799
|
+
d.expanded = !0;
|
|
2760
2800
|
else if (s.allCollapsed)
|
|
2761
|
-
|
|
2801
|
+
d.expanded = !1;
|
|
2762
2802
|
else {
|
|
2763
|
-
const h = i(
|
|
2764
|
-
s.mode === "expanded" ?
|
|
2803
|
+
const h = i(d.data);
|
|
2804
|
+
s.mode === "expanded" ? d.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : s.mode === "collapsed" && (d.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
|
|
2765
2805
|
}
|
|
2766
2806
|
}
|
|
2767
2807
|
l.recalcVisibleTreeRows();
|
|
@@ -2770,9 +2810,9 @@ class Se extends Fe {
|
|
|
2770
2810
|
}
|
|
2771
2811
|
}
|
|
2772
2812
|
}
|
|
2773
|
-
const
|
|
2813
|
+
const N = class N {
|
|
2774
2814
|
};
|
|
2775
|
-
|
|
2815
|
+
N.themes = ["light", "combat", "paper", "blackboard"], N.vars = {
|
|
2776
2816
|
light: `html[data-theme="light"] {
|
|
2777
2817
|
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
2778
2818
|
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
@@ -3006,7 +3046,7 @@ z.themes = ["light", "combat", "paper", "blackboard"], z.vars = {
|
|
|
3006
3046
|
--ge-table-drop-zone-bg: #758129;
|
|
3007
3047
|
}`
|
|
3008
3048
|
};
|
|
3009
|
-
let ne =
|
|
3049
|
+
let ne = N;
|
|
3010
3050
|
class le {
|
|
3011
3051
|
constructor(e, t = !0, o, i, s = 0, r = !1, l = !1) {
|
|
3012
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";
|
|
@@ -3026,11 +3066,11 @@ class q {
|
|
|
3026
3066
|
const r = e[t];
|
|
3027
3067
|
if (r)
|
|
3028
3068
|
for (const n of r) {
|
|
3029
|
-
const
|
|
3030
|
-
if ((l = o.children) == null || l.push(
|
|
3069
|
+
const a = new le(n, !0, [], o, i + 1);
|
|
3070
|
+
if ((l = o.children) == null || l.push(a), q.buildTreeRow(
|
|
3031
3071
|
n,
|
|
3032
3072
|
t,
|
|
3033
|
-
|
|
3073
|
+
a,
|
|
3034
3074
|
i + 1
|
|
3035
3075
|
), i > s)
|
|
3036
3076
|
return console.warn("Max deep limit reached: ", i), o;
|
|
@@ -3048,10 +3088,10 @@ class w {
|
|
|
3048
3088
|
this.value = e, this.unit = t;
|
|
3049
3089
|
}
|
|
3050
3090
|
}
|
|
3051
|
-
const
|
|
3091
|
+
const Ke = () => !0, ae = () => !1;
|
|
3052
3092
|
class V {
|
|
3053
|
-
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,
|
|
3054
|
-
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 =
|
|
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) {
|
|
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"));
|
|
3055
3095
|
}
|
|
3056
3096
|
static bodyRenderer(e) {
|
|
3057
3097
|
return new T(
|
|
@@ -3069,7 +3109,7 @@ class V {
|
|
|
3069
3109
|
e.headerClasses,
|
|
3070
3110
|
e.bodyClasses,
|
|
3071
3111
|
e.footerClasses
|
|
3072
|
-
), 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;
|
|
3073
3113
|
return new V(
|
|
3074
3114
|
e.property ?? "",
|
|
3075
3115
|
e.headerLabel ?? "",
|
|
@@ -3090,7 +3130,7 @@ class V {
|
|
|
3090
3130
|
);
|
|
3091
3131
|
}
|
|
3092
3132
|
}
|
|
3093
|
-
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");
|
|
3094
3134
|
class ie {
|
|
3095
3135
|
constructor(e, t = [], o = -1) {
|
|
3096
3136
|
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = o, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((i) => i.rendererMap[e]);
|
|
@@ -3287,7 +3327,7 @@ class _ {
|
|
|
3287
3327
|
changeColumnOrder(e, t) {
|
|
3288
3328
|
}
|
|
3289
3329
|
}
|
|
3290
|
-
class
|
|
3330
|
+
class Ue {
|
|
3291
3331
|
flattenTree(e, t = []) {
|
|
3292
3332
|
var o;
|
|
3293
3333
|
for (const i of e)
|
|
@@ -3318,7 +3358,7 @@ class xe {
|
|
|
3318
3358
|
}
|
|
3319
3359
|
class he extends ie {
|
|
3320
3360
|
constructor(e, t, o, i = []) {
|
|
3321
|
-
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];
|
|
3322
3362
|
}
|
|
3323
3363
|
changeColumnOrder(e, t) {
|
|
3324
3364
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
@@ -3485,7 +3525,7 @@ class ue {
|
|
|
3485
3525
|
this.top = e, this.right = t, this.bottom = o, this.left = i;
|
|
3486
3526
|
}
|
|
3487
3527
|
}
|
|
3488
|
-
class
|
|
3528
|
+
class qe {
|
|
3489
3529
|
constructor() {
|
|
3490
3530
|
this.checkedRows = [];
|
|
3491
3531
|
}
|
|
@@ -3517,14 +3557,17 @@ class Ke {
|
|
|
3517
3557
|
}
|
|
3518
3558
|
}
|
|
3519
3559
|
class Y {
|
|
3520
|
-
constructor(e, t, o, i = 0, s = 0, r = !1, l = new B(), n = [],
|
|
3560
|
+
constructor(e, t, o, i = 0, s = 0, r = !1, l = new B(), n = [], a = [], d = -1, h = 0, u = 400, m = () => {
|
|
3521
3561
|
}) {
|
|
3522
3562
|
var b, f, g, p;
|
|
3523
|
-
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 =
|
|
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());
|
|
3524
3564
|
}
|
|
3525
3565
|
init() {
|
|
3526
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();
|
|
3527
3567
|
}
|
|
3568
|
+
setParentWidth(e) {
|
|
3569
|
+
this.parentSize = e;
|
|
3570
|
+
}
|
|
3528
3571
|
/**
|
|
3529
3572
|
* Retrieves the count of columns in the current instance.
|
|
3530
3573
|
*
|
|
@@ -3572,7 +3615,7 @@ class Y {
|
|
|
3572
3615
|
* @return {void} - This method does not return a value.
|
|
3573
3616
|
*/
|
|
3574
3617
|
recalcSize(e) {
|
|
3575
|
-
this.
|
|
3618
|
+
this.recalcColumnWidths(e), this.recalcHeightAndPadding();
|
|
3576
3619
|
}
|
|
3577
3620
|
/**
|
|
3578
3621
|
* Recalculates the height and padding for the body area.
|
|
@@ -3839,23 +3882,49 @@ class Y {
|
|
|
3839
3882
|
var o, i, s;
|
|
3840
3883
|
this.arrayMove(this.columnDefs, e, t), this.arrayMove(this.columnSizes, e, t), (o = this.headerAreaModel) == null || o.changeColumnOrder(e, t), (i = this.bodyAreaModel) == null || i.changeColumnOrder(e, t), (s = this.footerAreaModel) == null || s.changeColumnOrder(e, t), this.calcXPositions();
|
|
3841
3884
|
}
|
|
3842
|
-
|
|
3885
|
+
recalcColumnWidths(e) {
|
|
3843
3886
|
var t, o, i;
|
|
3844
|
-
!((t = this.columnDefs) != null && t.length) && !((o = this.columnSizes) != null && o.length) && (this.columnSizes = new Array(this.getColumnCount()).fill(this.overridingColumnWidth)), (i = this.columnDefs) != null && i.length
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3848
|
-
|
|
3849
|
-
|
|
3850
|
-
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3887
|
+
if (!((t = this.columnDefs) != null && t.length) && !((o = this.columnSizes) != null && o.length) && (this.columnSizes = new Array(this.getColumnCount()).fill(this.overridingColumnWidth)), (i = this.columnDefs) != null && i.length) {
|
|
3888
|
+
const s = this.columnDefs.filter((n) => {
|
|
3889
|
+
var a;
|
|
3890
|
+
return ((a = n.width) == null ? void 0 : a.unit) === "weight";
|
|
3891
|
+
});
|
|
3892
|
+
this.columnSizes = this.columnDefs.map((n) => {
|
|
3893
|
+
if (n.width.unit === "%" && e) {
|
|
3894
|
+
let a = Math.floor(n.width.value * e / 100);
|
|
3895
|
+
if (n.minWidth) {
|
|
3896
|
+
const d = this.sizeToPixel(n.minWidth, e);
|
|
3897
|
+
a = Math.max(d, a);
|
|
3898
|
+
}
|
|
3899
|
+
if (n.maxWidth) {
|
|
3900
|
+
const d = this.sizeToPixel(n.maxWidth, e);
|
|
3901
|
+
a = Math.min(d, a);
|
|
3902
|
+
}
|
|
3903
|
+
return a;
|
|
3904
|
+
} else if (n.width.unit === "px" && e)
|
|
3905
|
+
return n.width.value;
|
|
3906
|
+
return 0;
|
|
3907
|
+
});
|
|
3908
|
+
const r = this.columnSizes.reduce((n, a) => n + a), l = e - r;
|
|
3909
|
+
if (l > 0 && s.length) {
|
|
3910
|
+
const n = s.map((a) => a.width.value).reduce((a, d) => a + d);
|
|
3911
|
+
for (let a = 0; a < this.columnDefs.length; a++) {
|
|
3912
|
+
const d = this.columnDefs[a];
|
|
3913
|
+
d.width.unit === "weight" && (this.columnSizes[a] = d.width.value * l / n);
|
|
3854
3914
|
}
|
|
3855
|
-
return r;
|
|
3856
3915
|
}
|
|
3857
|
-
|
|
3858
|
-
|
|
3916
|
+
}
|
|
3917
|
+
}
|
|
3918
|
+
/**
|
|
3919
|
+
* Converts the given `SizeIf` object to pixel units based on the provided `clientWidth`.
|
|
3920
|
+
* The given `SizeIf` must have the uniit '%' or 'px'.
|
|
3921
|
+
*
|
|
3922
|
+
* @param {SizeIf} width - The size object to be converted.
|
|
3923
|
+
* @param {number} clientWidth - The width of the client area in pixels.
|
|
3924
|
+
* @return {number} - The converted size value in pixels. returns -1 if unit is not '%' or 'px'.
|
|
3925
|
+
*/
|
|
3926
|
+
sizeToPixel(e, t) {
|
|
3927
|
+
return e.unit === "px" ? e.value : e.unit === "%" ? Math.floor(e.value * t / 100) : -1;
|
|
3859
3928
|
}
|
|
3860
3929
|
arrayMove(e, t, o) {
|
|
3861
3930
|
const i = e.splice(t, 1)[0];
|
|
@@ -3871,7 +3940,7 @@ class Y {
|
|
|
3871
3940
|
this.xPositions[t + 1] = this.getColumnWidth(t) + this.xPositions[t];
|
|
3872
3941
|
}
|
|
3873
3942
|
}
|
|
3874
|
-
class
|
|
3943
|
+
class Je extends ie {
|
|
3875
3944
|
constructor(e, t, o, i = []) {
|
|
3876
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);
|
|
3877
3946
|
}
|
|
@@ -3926,7 +3995,7 @@ class Ue extends ie {
|
|
|
3926
3995
|
return i && t.length ? this.getPropertyValue(i, t) : i;
|
|
3927
3996
|
}
|
|
3928
3997
|
}
|
|
3929
|
-
class ge extends
|
|
3998
|
+
class ge extends Je {
|
|
3930
3999
|
constructor(e, t, o, i) {
|
|
3931
4000
|
super(
|
|
3932
4001
|
e,
|
|
@@ -3936,9 +4005,9 @@ class ge extends Ue {
|
|
|
3936
4005
|
), this.areaIdent = e, this.rows = t, this.columnDefs = o, this.defaultRowHeight = i;
|
|
3937
4006
|
}
|
|
3938
4007
|
}
|
|
3939
|
-
class
|
|
4008
|
+
class $ {
|
|
3940
4009
|
static createTableModel(e) {
|
|
3941
|
-
var t, o, i, s, r, l, n,
|
|
4010
|
+
var t, o, i, s, r, l, n, a, d, h, u, m, b, f;
|
|
3942
4011
|
if (e.defaultRowHeights === void 0)
|
|
3943
4012
|
if ((t = e.tableOptions) != null && t.defaultRowHeights)
|
|
3944
4013
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
@@ -3956,12 +4025,12 @@ class O {
|
|
|
3956
4025
|
g > -1 && (e.defaultRowHeights.footer = g);
|
|
3957
4026
|
}
|
|
3958
4027
|
}
|
|
3959
|
-
if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new V(g, g.toUpperCase(), de)) : (i = e.rows) != null && i.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new V(g, g.toUpperCase(), de)) : e.columnDefs = []), e.columnCount === void 0 && ((s = e.columnDefs) != null && s.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (l = e.columnSizes) != null && l.length ? e.columnCount = (n = e.columnSizes) == null ? void 0 : n.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((
|
|
4028
|
+
if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new V(g, g.toUpperCase(), de)) : (i = e.rows) != null && i.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new V(g, g.toUpperCase(), de)) : e.columnDefs = []), e.columnCount === void 0 && ((s = e.columnDefs) != null && s.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (l = e.columnSizes) != null && l.length ? e.columnCount = (n = e.columnSizes) == null ? void 0 : n.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 D(
|
|
3960
4029
|
"header",
|
|
3961
4030
|
e.headerData,
|
|
3962
4031
|
e.defaultRowHeights.header,
|
|
3963
4032
|
e.columnDefs
|
|
3964
|
-
) : (
|
|
4033
|
+
) : (d = e.columnDefs) != null && d.length ? e.headerAreaModel = new D(
|
|
3965
4034
|
"header",
|
|
3966
4035
|
[e.columnDefs.map((g) => g.headerLabel)],
|
|
3967
4036
|
e.defaultRowHeights.header,
|
|
@@ -4011,7 +4080,7 @@ class O {
|
|
|
4011
4080
|
);
|
|
4012
4081
|
}
|
|
4013
4082
|
static buildByTypedRowsParam(e) {
|
|
4014
|
-
return
|
|
4083
|
+
return $.buildByTypedRows(
|
|
4015
4084
|
e.rows ?? [],
|
|
4016
4085
|
e.columnDefs,
|
|
4017
4086
|
e.tableOptions ?? new U(),
|
|
@@ -4022,15 +4091,15 @@ class O {
|
|
|
4022
4091
|
static buildByTypedRows(e, t, o = new U(), i = 0, s = 0) {
|
|
4023
4092
|
const r = o.defaultRowHeights, l = t[0].property === "CheckboxColumn";
|
|
4024
4093
|
if (e != null && e.length && H(e[0])) {
|
|
4025
|
-
const n = e,
|
|
4094
|
+
const n = e, a = new he(
|
|
4026
4095
|
"body",
|
|
4027
4096
|
n,
|
|
4028
4097
|
r.body,
|
|
4029
4098
|
t
|
|
4030
4099
|
);
|
|
4031
|
-
return (l || o.showCheckboxWihoutExtraColumn) && (
|
|
4032
|
-
headerAreaModel: new D("header", [t.map((
|
|
4033
|
-
bodyAreaModel:
|
|
4100
|
+
return (l || o.showCheckboxWihoutExtraColumn) && (a.rowSelectionModel = new ce(n)), $.createByAreaModelsParam({
|
|
4101
|
+
headerAreaModel: new D("header", [t.map((d) => d.headerLabel)], r.header),
|
|
4102
|
+
bodyAreaModel: a,
|
|
4034
4103
|
footerAreaModel: new D("footer", [], r.footer),
|
|
4035
4104
|
columnDefs: t,
|
|
4036
4105
|
fixedLeftColumnCount: i,
|
|
@@ -4042,7 +4111,7 @@ class O {
|
|
|
4042
4111
|
overridingColumnWidth: -1
|
|
4043
4112
|
});
|
|
4044
4113
|
}
|
|
4045
|
-
return
|
|
4114
|
+
return $.createByObjectArrayParam({
|
|
4046
4115
|
rows: e,
|
|
4047
4116
|
columnDefs: t,
|
|
4048
4117
|
fixedLeftColumnCount: i,
|
|
@@ -4052,7 +4121,7 @@ class O {
|
|
|
4052
4121
|
}
|
|
4053
4122
|
static createByObjectArrayParam(e) {
|
|
4054
4123
|
const t = e.rowCheckboxVisible !== void 0 ? e.rowCheckboxVisible : !1;
|
|
4055
|
-
return
|
|
4124
|
+
return $.createByObjectArray(
|
|
4056
4125
|
e.rows,
|
|
4057
4126
|
e.header ?? [],
|
|
4058
4127
|
e.footer ?? [],
|
|
@@ -4064,7 +4133,7 @@ class O {
|
|
|
4064
4133
|
e.columnSizes ?? []
|
|
4065
4134
|
);
|
|
4066
4135
|
}
|
|
4067
|
-
static createByAreaModels(e = new _(), t, o = new _(), i = 0, s = 0, r = !1, l = new B(), n,
|
|
4136
|
+
static createByAreaModels(e = new _(), t, o = new _(), i = 0, s = 0, r = !1, l = new B(), n, a = [], d = -1, h) {
|
|
4068
4137
|
return new Y(
|
|
4069
4138
|
e,
|
|
4070
4139
|
t,
|
|
@@ -4074,13 +4143,13 @@ class O {
|
|
|
4074
4143
|
r,
|
|
4075
4144
|
l,
|
|
4076
4145
|
n,
|
|
4077
|
-
d,
|
|
4078
4146
|
a,
|
|
4147
|
+
d,
|
|
4079
4148
|
h
|
|
4080
4149
|
);
|
|
4081
4150
|
}
|
|
4082
4151
|
static createByAreaModelsParam(e) {
|
|
4083
|
-
return
|
|
4152
|
+
return $.createByAreaModels(
|
|
4084
4153
|
e.headerAreaModel ?? new _(),
|
|
4085
4154
|
e.bodyAreaModel,
|
|
4086
4155
|
e.footerAreaModel ?? new _(),
|
|
@@ -4094,12 +4163,12 @@ class O {
|
|
|
4094
4163
|
e.columnCount ?? 0
|
|
4095
4164
|
);
|
|
4096
4165
|
}
|
|
4097
|
-
static createByObjectArray(e, t = [], o = [], i = 0, s = 0, r = !1, l = new B(), n,
|
|
4098
|
-
let
|
|
4099
|
-
t != null && t.length ?
|
|
4166
|
+
static createByObjectArray(e, t = [], o = [], i = 0, s = 0, r = !1, l = new B(), n, a = []) {
|
|
4167
|
+
let d;
|
|
4168
|
+
t != null && t.length ? d = new D("header", t, l.header, n) : n != null && n.length ? d = new D("header", [n.map((m) => m.headerLabel)], l.header, n) : d = new _();
|
|
4100
4169
|
const h = o ? new D("footer", o, l.footer, n) : new _(), u = new ge("body", e, n, l.body);
|
|
4101
4170
|
return new Y(
|
|
4102
|
-
|
|
4171
|
+
d,
|
|
4103
4172
|
u,
|
|
4104
4173
|
h,
|
|
4105
4174
|
i,
|
|
@@ -4107,11 +4176,11 @@ class O {
|
|
|
4107
4176
|
r,
|
|
4108
4177
|
l,
|
|
4109
4178
|
n,
|
|
4110
|
-
|
|
4179
|
+
a
|
|
4111
4180
|
);
|
|
4112
4181
|
}
|
|
4113
4182
|
}
|
|
4114
|
-
const
|
|
4183
|
+
const Ft = [
|
|
4115
4184
|
"COPY_2_CLIPBOARD",
|
|
4116
4185
|
"START_EDITING",
|
|
4117
4186
|
"TOGGLE_SELECTION",
|
|
@@ -4129,17 +4198,17 @@ const Dt = [
|
|
|
4129
4198
|
// "PAGEUP_PRESSED",
|
|
4130
4199
|
// "PAGEDOWN_PRESSED"
|
|
4131
4200
|
];
|
|
4132
|
-
class
|
|
4201
|
+
class $t {
|
|
4133
4202
|
constructor(e, t) {
|
|
4134
4203
|
this.tableModel = e, this.tableOptions = t;
|
|
4135
4204
|
}
|
|
4136
4205
|
}
|
|
4137
|
-
class
|
|
4206
|
+
class Qe {
|
|
4138
4207
|
constructor(e, t, o, i, s, r, l) {
|
|
4139
4208
|
this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = o, this.filter = i, this.sorting = s, this.startIndex = r, this.endIndex = l;
|
|
4140
4209
|
}
|
|
4141
4210
|
}
|
|
4142
|
-
class
|
|
4211
|
+
class Pt extends Qe {
|
|
4143
4212
|
constructor(e, t, o, i, s, r, l, n) {
|
|
4144
4213
|
super(
|
|
4145
4214
|
e,
|
|
@@ -4152,25 +4221,25 @@ class Ft extends qe {
|
|
|
4152
4221
|
), this.rows = n;
|
|
4153
4222
|
}
|
|
4154
4223
|
}
|
|
4155
|
-
class
|
|
4224
|
+
class Ze {
|
|
4156
4225
|
constructor(e, t) {
|
|
4157
4226
|
this.value = e, this.label = t;
|
|
4158
4227
|
}
|
|
4159
4228
|
}
|
|
4160
|
-
class
|
|
4229
|
+
class Lt {
|
|
4161
4230
|
constructor(e, t) {
|
|
4162
4231
|
this.index = e, this.px = t;
|
|
4163
4232
|
}
|
|
4164
4233
|
}
|
|
4165
|
-
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 = {
|
|
4166
4235
|
header: ["ge-table-text-align-left"],
|
|
4167
4236
|
body: ["ge-table-text-align-left"],
|
|
4168
4237
|
footer: ["ge-table-text-align-left"]
|
|
4169
|
-
},
|
|
4238
|
+
}, Gt = {
|
|
4170
4239
|
header: ["ge-table-text-align-center"],
|
|
4171
4240
|
body: ["ge-table-text-align-center"],
|
|
4172
4241
|
footer: ["ge-table-text-align-center"]
|
|
4173
|
-
},
|
|
4242
|
+
}, zt = {
|
|
4174
4243
|
header: ["ge-table-text-align-right"],
|
|
4175
4244
|
body: ["ge-table-text-align-right"],
|
|
4176
4245
|
footer: ["ge-table-text-align-right"]
|
|
@@ -4179,7 +4248,7 @@ class pe {
|
|
|
4179
4248
|
render(e, t, o, i, s, r, l) {
|
|
4180
4249
|
if (s.isRowCheckable(t)) {
|
|
4181
4250
|
l.addClass(e, "ge-table-row-checkbox-div");
|
|
4182
|
-
const n = s.isRowChecked(t),
|
|
4251
|
+
const n = s.isRowChecked(t), a = n === "full" ? "checked" : "", d = n === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
|
|
4183
4252
|
e.innerHTML = `
|
|
4184
4253
|
<input
|
|
4185
4254
|
type="checkbox"
|
|
@@ -4187,13 +4256,13 @@ class pe {
|
|
|
4187
4256
|
data-row-index="${t}"
|
|
4188
4257
|
data-col-index="${o}"
|
|
4189
4258
|
data-input-type="checkbox"
|
|
4190
|
-
${
|
|
4259
|
+
${a}
|
|
4191
4260
|
class="ge-table-row-checkbox">
|
|
4192
|
-
${
|
|
4261
|
+
${d} `;
|
|
4193
4262
|
}
|
|
4194
4263
|
}
|
|
4195
4264
|
}
|
|
4196
|
-
class
|
|
4265
|
+
class Nt {
|
|
4197
4266
|
constructor() {
|
|
4198
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(
|
|
4199
4268
|
[],
|
|
@@ -4202,7 +4271,7 @@ class Wt {
|
|
|
4202
4271
|
);
|
|
4203
4272
|
}
|
|
4204
4273
|
}
|
|
4205
|
-
class
|
|
4274
|
+
class jt {
|
|
4206
4275
|
/**
|
|
4207
4276
|
* A factory that creates a new AreaObjectMap with the given body renderer.
|
|
4208
4277
|
*
|
|
@@ -4217,17 +4286,17 @@ class Gt {
|
|
|
4217
4286
|
);
|
|
4218
4287
|
}
|
|
4219
4288
|
}
|
|
4220
|
-
class
|
|
4289
|
+
class Xt {
|
|
4221
4290
|
constructor(e = "down", t) {
|
|
4222
4291
|
this.status = e, this.originalEvent = t;
|
|
4223
4292
|
}
|
|
4224
4293
|
}
|
|
4225
|
-
class
|
|
4294
|
+
class Yt {
|
|
4226
4295
|
constructor(e, t, o, i, s = {}) {
|
|
4227
4296
|
this.area = e, this.rowIndex = t, this.columnIndex = o, this.value = i, this.cssClasses = s;
|
|
4228
4297
|
}
|
|
4229
4298
|
}
|
|
4230
|
-
class
|
|
4299
|
+
class Kt {
|
|
4231
4300
|
constructor() {
|
|
4232
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) => {
|
|
4233
4302
|
if (e && t && o.getRowId) {
|
|
@@ -4252,12 +4321,12 @@ class jt {
|
|
|
4252
4321
|
};
|
|
4253
4322
|
}
|
|
4254
4323
|
}
|
|
4255
|
-
class
|
|
4324
|
+
class et {
|
|
4256
4325
|
constructor(e, t, o, i = !1, s = "normal", r = void 0) {
|
|
4257
4326
|
this.data = e, this.property = t, this.toggle = o, this.closed = i, this.visibility = s, this.children = r, this.impl = "CellGroup";
|
|
4258
4327
|
}
|
|
4259
4328
|
}
|
|
4260
|
-
class
|
|
4329
|
+
class tt extends et {
|
|
4261
4330
|
constructor(e, t = 0, o = 0, i) {
|
|
4262
4331
|
super(
|
|
4263
4332
|
e.data,
|
|
@@ -4382,7 +4451,7 @@ class I {
|
|
|
4382
4451
|
static buildGroupExts(e, t = [], o = 0, i) {
|
|
4383
4452
|
let s;
|
|
4384
4453
|
for (let r = 0; r < e.length; r++) {
|
|
4385
|
-
const l = e[r], n = new
|
|
4454
|
+
const l = e[r], n = new tt(l, o, r, i);
|
|
4386
4455
|
s && (n.leftNeighbour = s, s.rightNeighbour = n), t.push(n), l.children && (n.children = I.buildGroupExts(l.children, [], o + 1, n)), s = n;
|
|
4387
4456
|
}
|
|
4388
4457
|
return t;
|
|
@@ -4424,7 +4493,7 @@ class I {
|
|
|
4424
4493
|
e.push(i.data + " rowIndex:" + i.rowIndex), (o = i.children) != null && o.length && I.iterateThrowColumns(e, i.children);
|
|
4425
4494
|
}
|
|
4426
4495
|
}
|
|
4427
|
-
class
|
|
4496
|
+
class Ut {
|
|
4428
4497
|
constructor() {
|
|
4429
4498
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
4430
4499
|
}
|
|
@@ -4501,8 +4570,8 @@ const j = class j {
|
|
|
4501
4570
|
render(e, t, o, i, s, r, l) {
|
|
4502
4571
|
const n = r != null && r.data ? r.data : "";
|
|
4503
4572
|
if (r) {
|
|
4504
|
-
const { toggle:
|
|
4505
|
-
this.addText(e, i, t, o, n, u),
|
|
4573
|
+
const { toggle: a, visibility: d, closed: h } = r, u = a ? j.toggleHeaderGroup : "";
|
|
4574
|
+
this.addText(e, i, t, o, n, u), a && d !== "always" && this.addArrowDiv(l, e, !h, t, o, i, u);
|
|
4506
4575
|
} else
|
|
4507
4576
|
this.addText(e, i, t, o, n, "");
|
|
4508
4577
|
}
|
|
@@ -4517,11 +4586,11 @@ const j = class j {
|
|
|
4517
4586
|
addArrowDiv(e, t, o = !0, i = -1, s = -1, r = "header", l) {
|
|
4518
4587
|
const n = e.createElement("div");
|
|
4519
4588
|
e.addClass(n, "ge-table-toggle-icon-div"), e.setStyle(n, "display", "inline-block"), e.setStyle(n, "position", ""), e.setStyle(n, "width", "20px"), e.setStyle(n, "background", "transparent"), e.setStyle(n, "cursor", "pointer"), e.setAttribute(n, "data-row-index", `${i}`), e.setAttribute(n, "data-col-index", `${s}`), e.setAttribute(n, "data-area", `${r}`), e.setAttribute(n, "data-ge-action", `${l}`);
|
|
4520
|
-
let
|
|
4521
|
-
o ?
|
|
4522
|
-
const
|
|
4523
|
-
e.appendChild(n, h),
|
|
4524
|
-
for (const u of
|
|
4589
|
+
let a;
|
|
4590
|
+
o ? a = this.headerGroupOptions.iconExpanded : a = this.headerGroupOptions.iconCollapsed;
|
|
4591
|
+
const d = a.content, h = e.createText(d);
|
|
4592
|
+
e.appendChild(n, h), a.style && this.applyStyleString(e, n, a.style);
|
|
4593
|
+
for (const u of a.classes)
|
|
4525
4594
|
e.addClass(n, u);
|
|
4526
4595
|
return e.appendChild(t, n), n;
|
|
4527
4596
|
}
|
|
@@ -4535,7 +4604,7 @@ const j = class j {
|
|
|
4535
4604
|
};
|
|
4536
4605
|
j.toggleHeaderGroup = "toggleHeaderGroup";
|
|
4537
4606
|
let J = j;
|
|
4538
|
-
class
|
|
4607
|
+
class qt {
|
|
4539
4608
|
constructor(e = "header", t, o = [], i, s = new oe()) {
|
|
4540
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();
|
|
4541
4610
|
}
|
|
@@ -4635,24 +4704,24 @@ class Yt {
|
|
|
4635
4704
|
return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()), I.buildColumnDefs(this.groupExts);
|
|
4636
4705
|
}
|
|
4637
4706
|
}
|
|
4638
|
-
class
|
|
4707
|
+
class Jt {
|
|
4639
4708
|
filterPredict(e, t, o = this.objectToString.bind(this)) {
|
|
4640
4709
|
if (!e)
|
|
4641
4710
|
return !1;
|
|
4642
4711
|
if (!t)
|
|
4643
4712
|
return !0;
|
|
4644
4713
|
t = t.toLowerCase();
|
|
4645
|
-
const i = "+", s = "-", r = t.toLowerCase().split(" ").filter((h) => h !== i && h !== s && h !== ""), l = r.filter((h) => !h.startsWith(i) && !h.startsWith(s)), n = r.filter((h) => h.startsWith(i)).map((h) => h.replace(/\+/g, "")),
|
|
4646
|
-
let
|
|
4714
|
+
const i = "+", s = "-", r = t.toLowerCase().split(" ").filter((h) => h !== i && h !== s && h !== ""), l = r.filter((h) => !h.startsWith(i) && !h.startsWith(s)), n = r.filter((h) => h.startsWith(i)).map((h) => h.replace(/\+/g, "")), a = r.filter((h) => h.startsWith(s)).map((h) => h.replace(/-/g, ""));
|
|
4715
|
+
let d = !l.length;
|
|
4647
4716
|
for (let h = 0; h < l.length; h++)
|
|
4648
|
-
(
|
|
4649
|
-
if (!
|
|
4717
|
+
(d || o(e).includes(l[h])) && (d = !0);
|
|
4718
|
+
if (!d)
|
|
4650
4719
|
return !1;
|
|
4651
4720
|
for (let h = 0; h < n.length; h++)
|
|
4652
4721
|
if (!o(e).includes(n[h]))
|
|
4653
4722
|
return !1;
|
|
4654
|
-
for (let h = 0; h <
|
|
4655
|
-
if (o(e).includes(
|
|
4723
|
+
for (let h = 0; h < a.length; h++)
|
|
4724
|
+
if (o(e).includes(a[h]))
|
|
4656
4725
|
return !1;
|
|
4657
4726
|
return !0;
|
|
4658
4727
|
}
|
|
@@ -4662,18 +4731,18 @@ class Kt {
|
|
|
4662
4731
|
if (!t)
|
|
4663
4732
|
return [...e];
|
|
4664
4733
|
t = t.toLowerCase();
|
|
4665
|
-
const i = "+", s = "-", r = t.toLowerCase().split(" ").filter((
|
|
4666
|
-
return e == null ? void 0 : e.filter((
|
|
4734
|
+
const i = "+", s = "-", r = t.toLowerCase().split(" ").filter((d) => d !== i && d !== s && d !== ""), l = r.filter((d) => !d.startsWith(i) && !d.startsWith(s)), n = r.filter((d) => d.startsWith(i)).map((d) => d.replace(/\+/g, "")), a = r.filter((d) => d.startsWith(s)).map((d) => d.replace(/-/g, ""));
|
|
4735
|
+
return e == null ? void 0 : e.filter((d) => {
|
|
4667
4736
|
let h = !l.length;
|
|
4668
4737
|
for (let u = 0; u < l.length; u++)
|
|
4669
|
-
(h || o(
|
|
4738
|
+
(h || o(d).includes(l[u])) && (h = !0);
|
|
4670
4739
|
if (!h)
|
|
4671
4740
|
return !1;
|
|
4672
4741
|
for (let u = 0; u < n.length; u++)
|
|
4673
|
-
if (!o(
|
|
4742
|
+
if (!o(d).includes(n[u]))
|
|
4674
4743
|
return !1;
|
|
4675
|
-
for (let u = 0; u <
|
|
4676
|
-
if (o(
|
|
4744
|
+
for (let u = 0; u < a.length; u++)
|
|
4745
|
+
if (o(d).includes(a[u]))
|
|
4677
4746
|
return !1;
|
|
4678
4747
|
return !0;
|
|
4679
4748
|
});
|
|
@@ -4689,19 +4758,19 @@ class Kt {
|
|
|
4689
4758
|
return t.join(" ").toLowerCase();
|
|
4690
4759
|
}
|
|
4691
4760
|
}
|
|
4692
|
-
class
|
|
4761
|
+
class Qt {
|
|
4693
4762
|
static bodyRenderer(e) {
|
|
4694
4763
|
return new T(void 0, e, void 0);
|
|
4695
4764
|
}
|
|
4696
4765
|
}
|
|
4697
|
-
class
|
|
4766
|
+
class Zt {
|
|
4698
4767
|
constructor(e, t = !0, o = !1) {
|
|
4699
4768
|
this.property = e, this.skipCheckableCheck = t, this.readonly = o;
|
|
4700
4769
|
}
|
|
4701
4770
|
render(e, t, o, i, s, r, l) {
|
|
4702
4771
|
if (this.readonly || this.skipCheckableCheck || s.isRowCheckable(t)) {
|
|
4703
4772
|
l.addClass(e, "ge-table-row-checkbox-div");
|
|
4704
|
-
const n = s.getRowByIndex(t),
|
|
4773
|
+
const n = s.getRowByIndex(t), d = s.getValueByT(n, this.property) === !0 ? "checked" : "", h = this.readonly ? " readonly " : "";
|
|
4705
4774
|
if (l.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
|
|
4706
4775
|
<input
|
|
4707
4776
|
type="checkbox"
|
|
@@ -4710,7 +4779,7 @@ class qt {
|
|
|
4710
4779
|
data-col-index="${o}"
|
|
4711
4780
|
data-property-index="${this.property}"
|
|
4712
4781
|
data-input-type="checkbox"
|
|
4713
|
-
${
|
|
4782
|
+
${d}
|
|
4714
4783
|
${h}
|
|
4715
4784
|
class="ge-input-checkbox">`, !this.readonly) {
|
|
4716
4785
|
const u = e.querySelector(".ge-input-checkbox");
|
|
@@ -4719,12 +4788,12 @@ class qt {
|
|
|
4719
4788
|
}
|
|
4720
4789
|
}
|
|
4721
4790
|
}
|
|
4722
|
-
class
|
|
4791
|
+
class eo {
|
|
4723
4792
|
render(e, t, o, i, s, r, l) {
|
|
4724
4793
|
r && (e.innerText = new Date(r).toISOString());
|
|
4725
4794
|
}
|
|
4726
4795
|
}
|
|
4727
|
-
class
|
|
4796
|
+
class to {
|
|
4728
4797
|
constructor() {
|
|
4729
4798
|
this.formatter = new Intl.DateTimeFormat("de-DE", {
|
|
4730
4799
|
year: "numeric",
|
|
@@ -4747,29 +4816,29 @@ class Qt {
|
|
|
4747
4816
|
}
|
|
4748
4817
|
}
|
|
4749
4818
|
}
|
|
4750
|
-
class
|
|
4819
|
+
class oo {
|
|
4751
4820
|
render(e, t, o, i, s, r, l) {
|
|
4752
4821
|
r && (e.innerText = new Date(r).toLocaleDateString());
|
|
4753
4822
|
}
|
|
4754
4823
|
}
|
|
4755
|
-
class
|
|
4824
|
+
class io {
|
|
4756
4825
|
render(e, t, o, i, s, r, l) {
|
|
4757
4826
|
r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
|
|
4758
4827
|
}
|
|
4759
4828
|
}
|
|
4760
|
-
class
|
|
4829
|
+
class so {
|
|
4761
4830
|
constructor(e = 100, t = !1) {
|
|
4762
4831
|
this.maxValue = e, this.labelVisible = t;
|
|
4763
4832
|
}
|
|
4764
4833
|
render(e, t, o, i, s, r, l) {
|
|
4765
4834
|
if (l.addClass(e, "ge-progressbar-div"), !isNaN(r)) {
|
|
4766
|
-
const
|
|
4835
|
+
const a = Number(r) * 100 / this.maxValue, d = this.labelVisible ? Math.round(a) + "%" : "";
|
|
4767
4836
|
e.innerHTML = `
|
|
4768
4837
|
<div class="ge-table-label-div"
|
|
4769
4838
|
data-row-index="${t}"
|
|
4770
4839
|
data-col-index="${o}"
|
|
4771
4840
|
data-area="${i}"
|
|
4772
|
-
title="${
|
|
4841
|
+
title="${d}"
|
|
4773
4842
|
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
4774
4843
|
<div class="ge-table-progress-container"
|
|
4775
4844
|
style="width:100%;height:50%;padding:0;margin-top:6px;"
|
|
@@ -4777,7 +4846,7 @@ class to {
|
|
|
4777
4846
|
data-col-index="${o}"
|
|
4778
4847
|
data-area="${i}">
|
|
4779
4848
|
<div class="ge-table-progress-bar"
|
|
4780
|
-
style="width:${
|
|
4849
|
+
style="width:${a}%;height:100%;padding:0;margin:0;"
|
|
4781
4850
|
data-row-index="${t}"
|
|
4782
4851
|
data-col-index="${o}"
|
|
4783
4852
|
data-area="${i}">
|
|
@@ -4787,17 +4856,17 @@ class to {
|
|
|
4787
4856
|
}
|
|
4788
4857
|
}
|
|
4789
4858
|
}
|
|
4790
|
-
class
|
|
4859
|
+
class ro {
|
|
4791
4860
|
render(e, t, o, i, s, r, l) {
|
|
4792
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 = "";
|
|
4793
4862
|
}
|
|
4794
4863
|
}
|
|
4795
|
-
class
|
|
4864
|
+
class no {
|
|
4796
4865
|
render(e, t, o, i, s, r, l) {
|
|
4797
4866
|
r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
|
|
4798
4867
|
}
|
|
4799
4868
|
}
|
|
4800
|
-
class
|
|
4869
|
+
class lo {
|
|
4801
4870
|
constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
4802
4871
|
this.min = e, this.max = t;
|
|
4803
4872
|
}
|
|
@@ -4805,18 +4874,18 @@ class so {
|
|
|
4805
4874
|
r && (e.innerText = r, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && l.addClass(e, "ge-cell-error"));
|
|
4806
4875
|
}
|
|
4807
4876
|
}
|
|
4808
|
-
class
|
|
4877
|
+
class ao {
|
|
4809
4878
|
constructor(e) {
|
|
4810
4879
|
this.property = e;
|
|
4811
4880
|
}
|
|
4812
4881
|
render(e, t, o, i, s, r, l) {
|
|
4813
4882
|
l.addClass(e, "ge-star-rating-div");
|
|
4814
|
-
const n = s.getRowByIndex(t),
|
|
4815
|
-
if (!isNaN(
|
|
4816
|
-
const
|
|
4817
|
-
for (let u = 0; u <
|
|
4818
|
-
|
|
4819
|
-
const h =
|
|
4883
|
+
const n = s.getRowByIndex(t), a = +("" + s.getValueByT(n, this.property));
|
|
4884
|
+
if (!isNaN(a)) {
|
|
4885
|
+
const d = [];
|
|
4886
|
+
for (let u = 0; u < a; u++)
|
|
4887
|
+
d.push("★");
|
|
4888
|
+
const h = d.join(" ");
|
|
4820
4889
|
e.innerHTML = `
|
|
4821
4890
|
<div class="ge-table-label-div" data-row-index="${t}" data-col-index="${o}" data-area="${i}" style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
4822
4891
|
<div class="ge-table-label" data-row-index="${t}" data-col-index="${o}" data-area="${i}">${h}</div>
|
|
@@ -4824,15 +4893,15 @@ class ro {
|
|
|
4824
4893
|
}
|
|
4825
4894
|
}
|
|
4826
4895
|
}
|
|
4827
|
-
class
|
|
4896
|
+
class ho {
|
|
4828
4897
|
constructor(e, t = 100, o = !1) {
|
|
4829
4898
|
this.property = e, this.maxValue = t, this.labelVisible = o;
|
|
4830
4899
|
}
|
|
4831
4900
|
render(e, t, o, i, s, r, l) {
|
|
4832
4901
|
l.addClass(e, "ge-star-rating-div");
|
|
4833
|
-
const n = s.getRowByIndex(t),
|
|
4834
|
-
if (!isNaN(
|
|
4835
|
-
const
|
|
4902
|
+
const n = s.getRowByIndex(t), a = +("" + s.getValueByT(n, this.property));
|
|
4903
|
+
if (!isNaN(a)) {
|
|
4904
|
+
const d = a * 100 / this.maxValue, h = this.labelVisible ? Math.round(d) + "%" : "";
|
|
4836
4905
|
e.innerHTML = `
|
|
4837
4906
|
<div class="ge-table-label-div"
|
|
4838
4907
|
data-row-index="${t}"
|
|
@@ -4846,7 +4915,7 @@ class no {
|
|
|
4846
4915
|
data-col-index="${o}"
|
|
4847
4916
|
data-area="${i}">
|
|
4848
4917
|
<div class="ge-table-progress-bar"
|
|
4849
|
-
style="width:${
|
|
4918
|
+
style="width:${d}%;height:100%;padding:0;margin:0;"
|
|
4850
4919
|
data-row-index="${t}"
|
|
4851
4920
|
data-col-index="${o}"
|
|
4852
4921
|
data-area="${i}">
|
|
@@ -4856,7 +4925,7 @@ class no {
|
|
|
4856
4925
|
}
|
|
4857
4926
|
}
|
|
4858
4927
|
}
|
|
4859
|
-
class
|
|
4928
|
+
class co {
|
|
4860
4929
|
render(e, t, o, i, s, r, l) {
|
|
4861
4930
|
if (r) {
|
|
4862
4931
|
e.innerHTML = `
|
|
@@ -4876,7 +4945,7 @@ class lo {
|
|
|
4876
4945
|
}
|
|
4877
4946
|
}
|
|
4878
4947
|
}
|
|
4879
|
-
const
|
|
4948
|
+
const uo = function(c, e, t) {
|
|
4880
4949
|
return c ? Number(c) : "";
|
|
4881
4950
|
};
|
|
4882
4951
|
class Ce {
|
|
@@ -4885,19 +4954,19 @@ class Ce {
|
|
|
4885
4954
|
}
|
|
4886
4955
|
static create(e) {
|
|
4887
4956
|
return new Ce(
|
|
4888
|
-
e.map((t) => new
|
|
4957
|
+
e.map((t) => new Ze(t, t))
|
|
4889
4958
|
);
|
|
4890
4959
|
}
|
|
4891
4960
|
render(e, t, o, i, s, r, l) {
|
|
4892
4961
|
if (s.isEditable(t, o)) {
|
|
4893
4962
|
l.addClass(e, "ge-table-row-select-div");
|
|
4894
4963
|
const n = s.getValueAt(t, o);
|
|
4895
|
-
let
|
|
4964
|
+
let a = [];
|
|
4896
4965
|
for (let h of this.options) {
|
|
4897
4966
|
const u = h.value === n ? " selected " : "";
|
|
4898
|
-
|
|
4967
|
+
a.push(`<option value="${h.value}" ${u}>${h.label}</option>`);
|
|
4899
4968
|
}
|
|
4900
|
-
const
|
|
4969
|
+
const d = a.join("");
|
|
4901
4970
|
e.innerHTML = `
|
|
4902
4971
|
<select
|
|
4903
4972
|
type="text"
|
|
@@ -4909,11 +4978,11 @@ class Ce {
|
|
|
4909
4978
|
data-col-index="${o}"
|
|
4910
4979
|
data-input-type="text"
|
|
4911
4980
|
style="width:100%;height:100%;border:0;padding:0 0 0 8px;"
|
|
4912
|
-
class="ge-table-cell-editor-select">${
|
|
4981
|
+
class="ge-table-cell-editor-select">${d}</select>`;
|
|
4913
4982
|
}
|
|
4914
4983
|
}
|
|
4915
4984
|
}
|
|
4916
|
-
class
|
|
4985
|
+
class go extends we {
|
|
4917
4986
|
constructor(e) {
|
|
4918
4987
|
super("row", "multi"), this.model = e;
|
|
4919
4988
|
}
|
|
@@ -4996,7 +5065,7 @@ class ho extends we {
|
|
|
4996
5065
|
this.isSelected(e, 0) ? this.unselectRow(e) : this.selectRow(e);
|
|
4997
5066
|
}
|
|
4998
5067
|
}
|
|
4999
|
-
class
|
|
5068
|
+
class po {
|
|
5000
5069
|
constructor(e, t, o) {
|
|
5001
5070
|
this.r = e, this.g = t, this.b = o;
|
|
5002
5071
|
}
|
|
@@ -5011,153 +5080,156 @@ class G {
|
|
|
5011
5080
|
return (e - t) / (o - t) * (s - i) + i;
|
|
5012
5081
|
}
|
|
5013
5082
|
static getTwoColorGradientRGB(e, t) {
|
|
5014
|
-
const o = G.normalize(e, t.minValue, t.maxValue, 0, 1), i = t.maxColor.r - t.minColor.r, s = t.maxColor.g - t.minColor.g, r = t.maxColor.b - t.minColor.b, l = i * o + t.minColor.r, n = s * o + t.minColor.g,
|
|
5015
|
-
return `rgb(${Math.round(l)}, ${Math.round(n)}, ${Math.round(
|
|
5083
|
+
const o = G.normalize(e, t.minValue, t.maxValue, 0, 1), i = t.maxColor.r - t.minColor.r, s = t.maxColor.g - t.minColor.g, r = t.maxColor.b - t.minColor.b, l = i * o + t.minColor.r, n = s * o + t.minColor.g, a = r * o + t.minColor.b;
|
|
5084
|
+
return `rgb(${Math.round(l)}, ${Math.round(n)}, ${Math.round(a)})`;
|
|
5016
5085
|
}
|
|
5017
5086
|
static getThreeColorGradientRGB(e, t) {
|
|
5018
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})`;
|
|
5019
5088
|
}
|
|
5020
5089
|
}
|
|
5021
|
-
class
|
|
5090
|
+
class bo {
|
|
5022
5091
|
constructor(e, t, o, i, s, r) {
|
|
5023
5092
|
this.minValue = e, this.minColor = t, this.middleValue = o, this.middleColor = i, this.maxValue = s, this.maxColor = r;
|
|
5024
5093
|
}
|
|
5025
5094
|
}
|
|
5026
5095
|
export {
|
|
5027
5096
|
ie as AbstractAreaModel,
|
|
5028
|
-
|
|
5029
|
-
|
|
5097
|
+
jt as AreaMapFactory,
|
|
5098
|
+
Ut as AreaModel,
|
|
5030
5099
|
D as AreaModelArrayOfArrays,
|
|
5031
|
-
|
|
5100
|
+
qt as AreaModelCellGroups,
|
|
5032
5101
|
_ as AreaModelHidden,
|
|
5033
|
-
|
|
5102
|
+
Je as AreaModelObjectArray,
|
|
5034
5103
|
ge as AreaModelObjectArrayWithColumndefs,
|
|
5035
5104
|
he as AreaModelTree,
|
|
5036
5105
|
T as AreaObjectMap,
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5106
|
+
Kt as AutoRestoreOptions,
|
|
5107
|
+
it as AvoidDoubleExecution,
|
|
5108
|
+
et as CellGroup,
|
|
5109
|
+
tt as CellGroupExt,
|
|
5041
5110
|
J as CellGroupExtCellRenderer,
|
|
5042
5111
|
A as CellRange,
|
|
5043
5112
|
I as CellgroupFactory,
|
|
5044
|
-
|
|
5113
|
+
Zt as CheckboxBooleanPropertyCellRenderer,
|
|
5045
5114
|
pe as CheckboxCellRenderer,
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
|
|
5050
|
-
|
|
5051
|
-
|
|
5115
|
+
Nt as CheckboxColumnDef,
|
|
5116
|
+
qe as CheckboxModel,
|
|
5117
|
+
Pt as ChunkData,
|
|
5118
|
+
Oe as ColAndRowspanModel,
|
|
5119
|
+
ke as CollapsedExpandedData,
|
|
5120
|
+
po as ColorRgb,
|
|
5052
5121
|
V as ColumnDef,
|
|
5053
|
-
|
|
5054
|
-
|
|
5122
|
+
Re as ConvenienceDomService,
|
|
5123
|
+
z as CopyService,
|
|
5055
5124
|
ne as CssVars,
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5125
|
+
to as DateToIntlDDMMYYYYCellRenderer,
|
|
5126
|
+
eo as DateToIsoCellRenderer,
|
|
5127
|
+
oo as DateToLocaleDateCellRenderer,
|
|
5128
|
+
no as DateToTecCellRenderer,
|
|
5060
5129
|
B as DefaultRowHeights,
|
|
5061
|
-
|
|
5130
|
+
_e as EleScope,
|
|
5062
5131
|
re as EventAdapter,
|
|
5063
5132
|
ae as FalseFn,
|
|
5064
5133
|
Ne as FocusModel,
|
|
5065
5134
|
Le as GeCellIndices,
|
|
5066
5135
|
G as GeCssColorUtil,
|
|
5067
|
-
|
|
5068
|
-
|
|
5136
|
+
Jt as GeFilterService,
|
|
5137
|
+
Xt as GeKeyEvent,
|
|
5069
5138
|
te as GeModelChangeEvent,
|
|
5070
5139
|
Q as GeMouseEvent,
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5140
|
+
O as GeoData,
|
|
5141
|
+
F as Icon,
|
|
5142
|
+
Lt as IndexAndPx,
|
|
5143
|
+
ze as InputCellRenderer,
|
|
5144
|
+
Pe as InputHandler,
|
|
5145
|
+
P as LicenseManager,
|
|
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,
|
|
5084
5153
|
ue as Padding,
|
|
5085
|
-
|
|
5086
|
-
|
|
5154
|
+
co as PositiveAndNegativeNumberRenderer,
|
|
5155
|
+
ho as ProgressBarCellRenderer,
|
|
5087
5156
|
Fe as RenderScope,
|
|
5088
|
-
|
|
5089
|
-
|
|
5157
|
+
Qt as Renderer,
|
|
5158
|
+
Qe as RequestChunk,
|
|
5159
|
+
Ye as ResizeHandler,
|
|
5090
5160
|
Ce as SelectCellRenderer,
|
|
5091
5161
|
we as SelectionModel,
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5162
|
+
He as SelectionService,
|
|
5163
|
+
We as ShortcutService,
|
|
5164
|
+
Ge as SimpleDomService,
|
|
5095
5165
|
w as Size,
|
|
5096
5166
|
$e as SortItem,
|
|
5097
5167
|
me as SortedOptions,
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
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,
|
|
5105
5175
|
Y as TableModel,
|
|
5106
|
-
|
|
5176
|
+
$t as TableModelAndOptions,
|
|
5107
5177
|
U as TableOptions,
|
|
5108
5178
|
Se as TableScope,
|
|
5109
|
-
|
|
5179
|
+
bo as ThreeColorGradientArg,
|
|
5110
5180
|
ce as TreeCheckboxModel,
|
|
5111
5181
|
q as TreeFactory,
|
|
5112
5182
|
fe as TreeOptions,
|
|
5113
5183
|
le as TreeRow,
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5184
|
+
Ue as TreeRowService,
|
|
5185
|
+
ro as TrueFalseCellRenderer,
|
|
5186
|
+
Ke as TrueFn,
|
|
5117
5187
|
be as TwoColorGradientArg,
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
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,
|
|
5128
5199
|
Z as getAreaIdentByString,
|
|
5129
5200
|
K as isAreaModelTree,
|
|
5130
|
-
|
|
5201
|
+
ve as isCheckboxColumnDef,
|
|
5131
5202
|
H as isTreeRow,
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
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,
|
|
5145
5216
|
de as px200,
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
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
|
|
5163
5235
|
};
|