@guiexpert/table 1.0.13 → 1.0.15
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/README.md +10 -11
- package/index.cjs +25 -25
- package/index.d.ts +1 -0
- package/index.js +727 -706
- package/lib/table/data/common/checkbox-column-def.d.ts +1 -0
- package/lib/table/data/common/tree-row-if.d.ts +3 -3
- package/lib/table/data/common/tree-row.d.ts +1 -0
- package/lib/table/data/tablemodel/areamodel/area-model-tree.d.ts +8 -6
- package/lib/table/factory/tree-factory.d.ts +4 -4
- package/lib/table/instanceof-workaround.d.ts +3 -0
- package/lib/table/service/tree-row.service.d.ts +3 -3
- package/lib/table/table-scope.d.ts +2 -1
- package/package.json +6 -2
package/index.js
CHANGED
|
@@ -1,9 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
function O(h) {
|
|
2
|
+
return h && h.type === "TreeRow";
|
|
3
|
+
}
|
|
4
|
+
function z(h) {
|
|
5
|
+
return h && h.type === "AreaModelTree";
|
|
6
|
+
}
|
|
7
|
+
function be(h) {
|
|
8
|
+
return h && h.type === "CheckboxColumnDef";
|
|
9
|
+
}
|
|
10
|
+
class X {
|
|
11
|
+
constructor(e = -1, t = -1, o = -1, i = -1, s, r, l, n = 0, d = 0, a = 0, c = "") {
|
|
12
|
+
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 = d, this.draggingY = a, this.action = c;
|
|
4
13
|
}
|
|
5
14
|
clone() {
|
|
6
|
-
return new
|
|
15
|
+
return new X(
|
|
7
16
|
this.rowIndex,
|
|
8
17
|
this.rowTop,
|
|
9
18
|
this.columnIndex,
|
|
@@ -18,25 +27,25 @@ class j {
|
|
|
18
27
|
);
|
|
19
28
|
}
|
|
20
29
|
}
|
|
21
|
-
class
|
|
30
|
+
class F {
|
|
22
31
|
constructor(e = ">", t = "", o = []) {
|
|
23
32
|
this.content = e, this.style = t, this.classes = o;
|
|
24
33
|
}
|
|
25
34
|
}
|
|
26
|
-
class
|
|
27
|
-
constructor(e = new
|
|
35
|
+
class ae {
|
|
36
|
+
constructor(e = new F(
|
|
28
37
|
">",
|
|
29
38
|
"transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
|
|
30
39
|
["gt-table-tree-arrow-expanded"]
|
|
31
|
-
), t = new
|
|
40
|
+
), t = new F(
|
|
32
41
|
">",
|
|
33
42
|
"",
|
|
34
43
|
["ge-table-tree-arrow-collapsed"]
|
|
35
|
-
), o = new
|
|
44
|
+
), o = new F(
|
|
36
45
|
">",
|
|
37
46
|
"color:transparent;",
|
|
38
47
|
["gt-table-tree-arrow-hidden"]
|
|
39
|
-
), i = new
|
|
48
|
+
), i = new F(
|
|
40
49
|
"↕",
|
|
41
50
|
"",
|
|
42
51
|
["gt-table-tree-arrow-expanded-all"]
|
|
@@ -44,12 +53,12 @@ class re {
|
|
|
44
53
|
this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = o, this.arrowExpandCollapseAll = i;
|
|
45
54
|
}
|
|
46
55
|
}
|
|
47
|
-
class
|
|
48
|
-
constructor(e = new
|
|
56
|
+
class de {
|
|
57
|
+
constructor(e = new F("↑", "", ["ge-header-sorted-asc"]), t = new F("↓", "", ["ge-header-sorted-desc"]), o = new F("↑", "color:transparent;", [])) {
|
|
49
58
|
this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = o;
|
|
50
59
|
}
|
|
51
60
|
}
|
|
52
|
-
class
|
|
61
|
+
class pe {
|
|
53
62
|
constructor(e) {
|
|
54
63
|
this.domService = e;
|
|
55
64
|
}
|
|
@@ -131,7 +140,7 @@ class he {
|
|
|
131
140
|
}
|
|
132
141
|
return this.domService.appendChild(e.child, n), n;
|
|
133
142
|
}
|
|
134
|
-
addColumnDiv(e, t, o = -1, i = -1, s, r, l = "", n, d, a = void 0,
|
|
143
|
+
addColumnDiv(e, t, o = -1, i = -1, s, r, l = "", n, d, a = void 0, c) {
|
|
135
144
|
const g = d == null ? void 0 : d.treeOptions, m = d == null ? void 0 : d.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
|
|
136
145
|
this.domService.addClass(b, "ge-table-col-div"), this.domService.addClass(b, `ge-table-col-div-${t.index}`), this.domService.setAttribute(b, "data-col-index", `${t.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${s}`);
|
|
137
146
|
const w = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
@@ -139,7 +148,7 @@ class he {
|
|
|
139
148
|
const u = n !== "none" && i === 0;
|
|
140
149
|
this.addLabelDiv(b, l, u, o, i, s);
|
|
141
150
|
}
|
|
142
|
-
return
|
|
151
|
+
return c && this.addSortedIcon(b, c, d == null ? void 0 : d.sortedOptions, i), this.domService.appendChild(e, b), b;
|
|
143
152
|
}
|
|
144
153
|
addCheckboxToDiv(e, t, o, i) {
|
|
145
154
|
const s = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
|
|
@@ -166,7 +175,7 @@ class he {
|
|
|
166
175
|
}
|
|
167
176
|
return this.domService.appendChild(e, l), l;
|
|
168
177
|
}
|
|
169
|
-
addSortedIcon(e, t = "", o = new
|
|
178
|
+
addSortedIcon(e, t = "", o = new de(), i = -1) {
|
|
170
179
|
const s = this.domService.createElement("div");
|
|
171
180
|
this.domService.addClass(s, "ge-table-sorted-icon-div"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "top", "0"), this.domService.setStyle(s, "right", "0"), this.domService.setStyle(s, "width", "20px"), this.domService.setStyle(s, "background", "transparent"), this.domService.setStyle(s, "cursor", "pointer"), this.domService.setAttribute(s, "data-col-index", `${i}`), this.domService.setAttribute(s, "data-area", "header");
|
|
172
181
|
let r;
|
|
@@ -177,15 +186,15 @@ class he {
|
|
|
177
186
|
this.domService.addClass(s, d);
|
|
178
187
|
return this.domService.appendChild(e, s), s;
|
|
179
188
|
}
|
|
180
|
-
addArrowDiv(e, t = "none", o = new
|
|
189
|
+
addArrowDiv(e, t = "none", o = new ae(), i = -1, s = -1, r = "body") {
|
|
181
190
|
const l = this.domService.createElement("div");
|
|
182
191
|
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}`);
|
|
183
192
|
let n;
|
|
184
193
|
t === "expanded" ? n = o.arrowExpanded : t === "collapsed" ? n = o.arrowCollapsed : n = o.arrowPlaceholder;
|
|
185
194
|
const d = n.content, a = this.domService.createText(d);
|
|
186
195
|
this.domService.appendChild(l, a), n.style && this.applyStyleString(l, n.style);
|
|
187
|
-
for (const
|
|
188
|
-
this.domService.addClass(l,
|
|
196
|
+
for (const c of n.classes)
|
|
197
|
+
this.domService.addClass(l, c);
|
|
189
198
|
return this.domService.appendChild(e, l), l;
|
|
190
199
|
}
|
|
191
200
|
addColumnBorderDivs(e, t, o, i, s) {
|
|
@@ -227,25 +236,20 @@ class he {
|
|
|
227
236
|
return o ? (o.innerText = "", o) : (o = this.domService.createElement("div"), t.cache[e] = o, o);
|
|
228
237
|
}
|
|
229
238
|
}
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
this.data = e, this.expanded = t, this.children = o, this.parent = i, this.deep = s, this.checked = r, this.keep = l;
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
const X = (c) => c === "header" ? "header" : c === "footer" ? "footer" : "body";
|
|
236
|
-
class ce {
|
|
239
|
+
const Y = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
|
|
240
|
+
class fe {
|
|
237
241
|
constructor(e, t) {
|
|
238
242
|
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)) {
|
|
239
243
|
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"));
|
|
240
244
|
const o = e.getAttribute("data-area");
|
|
241
|
-
if (o && (this.areaIdent =
|
|
245
|
+
if (o && (this.areaIdent = Y(o), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
|
|
242
246
|
const i = e;
|
|
243
247
|
this.value = i.value;
|
|
244
248
|
}
|
|
245
249
|
}
|
|
246
250
|
}
|
|
247
251
|
}
|
|
248
|
-
class
|
|
252
|
+
class me {
|
|
249
253
|
constructor(e) {
|
|
250
254
|
this.tableScope = e, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, 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(
|
|
251
255
|
(t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
|
|
@@ -257,12 +261,12 @@ class ue {
|
|
|
257
261
|
this.tableScope.contextmenu(t);
|
|
258
262
|
}
|
|
259
263
|
onHostElementClicked(e) {
|
|
260
|
-
const t = new
|
|
264
|
+
const t = new fe(e.target, this.tableScope);
|
|
261
265
|
if (t.action === "toggleExpandCollapseAll")
|
|
262
266
|
this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
|
|
263
267
|
else if (t.inputType === "checkbox" && t.areaIdent)
|
|
264
268
|
this.tableScope.toggleRowCheckbox(t.rowIdx, t.colIdx, t.areaIdent), e.preventDefault(), e.stopPropagation();
|
|
265
|
-
else if (t.row
|
|
269
|
+
else if (O(t.row) && t.areaModel) {
|
|
266
270
|
const o = t.colIdx === this.getArrowColumnIndex() && e.altKey, i = t.className.includes("ge-table-tree-arrow-div");
|
|
267
271
|
if (console.info(i, o), o || i) {
|
|
268
272
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -278,12 +282,12 @@ class ue {
|
|
|
278
282
|
}
|
|
279
283
|
onHostElementDblClicked(e) {
|
|
280
284
|
if (e.target instanceof HTMLElement) {
|
|
281
|
-
const t = e.target, o = t.getAttribute("data-area"), i =
|
|
285
|
+
const t = e.target, o = t.getAttribute("data-area"), i = Y(o), s = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(i);
|
|
282
286
|
if (o && i === "header")
|
|
283
287
|
this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, s, r));
|
|
284
288
|
else if (t.getAttribute("data-row-index")) {
|
|
285
289
|
const n = l.getRowByIndex(s);
|
|
286
|
-
if (o && i === "body" && l.isEditable(s, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(s, r)), n
|
|
290
|
+
if (o && i === "body" && l.isEditable(s, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(s, r)), O(n) && r === this.getArrowColumnIndex()) {
|
|
287
291
|
e.preventDefault(), e.stopPropagation();
|
|
288
292
|
const d = n;
|
|
289
293
|
d.expanded = !d.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(d);
|
|
@@ -300,8 +304,8 @@ class ue {
|
|
|
300
304
|
var o, i, s, r, l;
|
|
301
305
|
const t = (i = (o = this.tableScope.tableOptions) == null ? void 0 : o.autoRestoreOptions) == null ? void 0 : i.getRowId;
|
|
302
306
|
if (t) {
|
|
303
|
-
const n = (s = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : s.collapsedExpandedStateGet().mode, d = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, a = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded,
|
|
304
|
-
d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(
|
|
307
|
+
const n = (s = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : s.collapsedExpandedStateGet().mode, d = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, a = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded, c = t(e.data);
|
|
308
|
+
d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(c) : a && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(c));
|
|
305
309
|
}
|
|
306
310
|
}
|
|
307
311
|
getArrowColumnIndex() {
|
|
@@ -337,7 +341,7 @@ class ue {
|
|
|
337
341
|
}
|
|
338
342
|
}
|
|
339
343
|
}
|
|
340
|
-
class
|
|
344
|
+
class we {
|
|
341
345
|
constructor(e) {
|
|
342
346
|
this.tableScope = e;
|
|
343
347
|
}
|
|
@@ -370,230 +374,6 @@ class ge {
|
|
|
370
374
|
this.tableScope.repaint();
|
|
371
375
|
}
|
|
372
376
|
}
|
|
373
|
-
class be {
|
|
374
|
-
flattenTree(e, t = []) {
|
|
375
|
-
var o;
|
|
376
|
-
for (const i of e)
|
|
377
|
-
this.isVisible(i) && t.push(i), (o = i.children) != null && o.length && this.flattenTree(i.children, t);
|
|
378
|
-
return t;
|
|
379
|
-
}
|
|
380
|
-
isVisible(e) {
|
|
381
|
-
return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
class Y {
|
|
385
|
-
constructor(e, t = [], o = -1) {
|
|
386
|
-
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = o, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((i) => i.rendererMap[e]);
|
|
387
|
-
}
|
|
388
|
-
getTooltipAt(e, t) {
|
|
389
|
-
return "";
|
|
390
|
-
}
|
|
391
|
-
getCellRenderer(e, t) {
|
|
392
|
-
if (t < this.cellRenderers.length)
|
|
393
|
-
return this.cellRenderers[t];
|
|
394
|
-
}
|
|
395
|
-
getColspanAt(e, t) {
|
|
396
|
-
return 0;
|
|
397
|
-
}
|
|
398
|
-
getCustomClassesAt(e, t) {
|
|
399
|
-
return [];
|
|
400
|
-
}
|
|
401
|
-
getCustomStyleAt(e, t) {
|
|
402
|
-
}
|
|
403
|
-
getRowspanAt(e, t) {
|
|
404
|
-
return 0;
|
|
405
|
-
}
|
|
406
|
-
getRowByIndex(e) {
|
|
407
|
-
}
|
|
408
|
-
isRowCheckable(e) {
|
|
409
|
-
return !0;
|
|
410
|
-
}
|
|
411
|
-
isRowChecked(e) {
|
|
412
|
-
var o;
|
|
413
|
-
const t = this.getRowByIndex(e);
|
|
414
|
-
return (o = this.rowSelectionModel) == null ? void 0 : o.isRowChecked(t);
|
|
415
|
-
}
|
|
416
|
-
setRowChecked(e, t) {
|
|
417
|
-
if (this.rowSelectionModel) {
|
|
418
|
-
const o = this.getRowByIndex(e);
|
|
419
|
-
this.rowSelectionModel.checkRow(o, t);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
getMaxColspan() {
|
|
423
|
-
return 31;
|
|
424
|
-
}
|
|
425
|
-
getMaxRowspan() {
|
|
426
|
-
return 31;
|
|
427
|
-
}
|
|
428
|
-
getYPosByRowIndex(e) {
|
|
429
|
-
return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
|
|
430
|
-
}
|
|
431
|
-
init() {
|
|
432
|
-
!this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
|
|
433
|
-
}
|
|
434
|
-
isFilterable() {
|
|
435
|
-
return this.areaIdent === "body";
|
|
436
|
-
}
|
|
437
|
-
doSort(e) {
|
|
438
|
-
return !1;
|
|
439
|
-
}
|
|
440
|
-
isEditable(e, t) {
|
|
441
|
-
return this.columnDefs && t < this.columnDefs.length && this.columnDefs[t].editable ? this.columnDefs[t].editable() : !1;
|
|
442
|
-
}
|
|
443
|
-
setValue(e, t, o) {
|
|
444
|
-
var l;
|
|
445
|
-
const i = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
|
|
446
|
-
i && (o = i(o, e, t));
|
|
447
|
-
const s = this.getRowByIndex(e), r = this.columnDefs[t].property;
|
|
448
|
-
return r.includes(".") ? this.setPropertyValue(s, r.split("."), o) : (s[r] = o, !0);
|
|
449
|
-
}
|
|
450
|
-
isSelectable(e, t) {
|
|
451
|
-
return !0;
|
|
452
|
-
}
|
|
453
|
-
changeColumnOrder(e, t) {
|
|
454
|
-
this.arrayMove(this.cellRenderers, e, t);
|
|
455
|
-
}
|
|
456
|
-
setPropertyValue(e, t, o) {
|
|
457
|
-
const i = t.shift();
|
|
458
|
-
if (i) {
|
|
459
|
-
let s = e[i];
|
|
460
|
-
return s && t.length ? this.setPropertyValue(s, t, o) : (e[i] = o, !0);
|
|
461
|
-
}
|
|
462
|
-
return !1;
|
|
463
|
-
}
|
|
464
|
-
arrayMove(e, t, o) {
|
|
465
|
-
const i = e.splice(t, 1)[0];
|
|
466
|
-
return e.splice(o, 0, i), e;
|
|
467
|
-
}
|
|
468
|
-
calcYPositions() {
|
|
469
|
-
const e = this.getRowCount();
|
|
470
|
-
this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
|
|
471
|
-
for (let t = 0; t < e; t++)
|
|
472
|
-
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
class ne {
|
|
476
|
-
genericSortComparator(e, t, o) {
|
|
477
|
-
if (typeof e == "number" && typeof t == "number")
|
|
478
|
-
return o * (e - t);
|
|
479
|
-
if (typeof e == "string" && typeof t == "string")
|
|
480
|
-
return o * e.localeCompare(t);
|
|
481
|
-
if (typeof e == "boolean" && typeof t == "boolean")
|
|
482
|
-
return o * ((e ? -1 : 1) - (t ? -1 : 1));
|
|
483
|
-
if (e instanceof Date && t instanceof Date)
|
|
484
|
-
return o * (e.getTime() - t.getTime());
|
|
485
|
-
if (e instanceof Array && t instanceof Array) {
|
|
486
|
-
const i = e, s = t;
|
|
487
|
-
if (i.length && s.length)
|
|
488
|
-
return this.genericSortComparator(i[0], s[0], o);
|
|
489
|
-
}
|
|
490
|
-
return o * ("" + e).localeCompare("" + t);
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
class H extends Y {
|
|
494
|
-
constructor(e, t, o, i = []) {
|
|
495
|
-
super(e, i, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = i, this.sorterService = new ne(), this.service = new be(), this.properties = i.map((s) => s.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
|
|
496
|
-
}
|
|
497
|
-
changeColumnOrder(e, t) {
|
|
498
|
-
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
499
|
-
}
|
|
500
|
-
recalcVisibleTreeRows() {
|
|
501
|
-
this.filteredFlattenRows = this.service.flattenTree(this.rows);
|
|
502
|
-
}
|
|
503
|
-
getFilteredFlattenRows() {
|
|
504
|
-
return this.filteredFlattenRows;
|
|
505
|
-
}
|
|
506
|
-
getRowCount() {
|
|
507
|
-
let e = 0;
|
|
508
|
-
for (const t of this.filteredFlattenRows)
|
|
509
|
-
this.service.isVisible(t) && e++;
|
|
510
|
-
return e;
|
|
511
|
-
}
|
|
512
|
-
getValueAt(e, t) {
|
|
513
|
-
const o = this.getRowByIndex(e);
|
|
514
|
-
if (o) {
|
|
515
|
-
const i = this.properties[t];
|
|
516
|
-
if (i)
|
|
517
|
-
return i.includes(".") ? this.getPropertyValue(o.data, i.split(".")) : o.data[i];
|
|
518
|
-
}
|
|
519
|
-
return "";
|
|
520
|
-
}
|
|
521
|
-
getRowHeight(e) {
|
|
522
|
-
return this.defaultRowHeight;
|
|
523
|
-
}
|
|
524
|
-
getCustomClassesAt(e, t) {
|
|
525
|
-
return ["ge-table-tree-cell", "ge-table-tree-deep-" + this.filteredFlattenRows[e].deep];
|
|
526
|
-
}
|
|
527
|
-
getRowByIndex(e) {
|
|
528
|
-
return this.filteredFlattenRows[e];
|
|
529
|
-
}
|
|
530
|
-
getValueByT(e, t) {
|
|
531
|
-
return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
|
|
532
|
-
}
|
|
533
|
-
externalFilterChanged(e) {
|
|
534
|
-
this.lastPredictFn = e, this.doFiltering();
|
|
535
|
-
}
|
|
536
|
-
doSort(e) {
|
|
537
|
-
const { columnIndex: t, sortState: o } = e[e.length - 1], i = o === "asc" ? 1 : o === "desc" ? -1 : 0, s = this.properties[t];
|
|
538
|
-
return this.treeSort(this.rows, s, i), this.flattenRows = this.service.flattenTree(this.rows), this.filteredFlattenRows = [...this.flattenRows], !0;
|
|
539
|
-
}
|
|
540
|
-
toggleExpandCollapseAll(e) {
|
|
541
|
-
this.expandAllRecursive(this.rows, e), this.flattenRows = this.service.flattenTree(this.rows), this.doFiltering();
|
|
542
|
-
}
|
|
543
|
-
setAllParentsOk(e) {
|
|
544
|
-
return e.parent && (e.parent.keep = !0, this.setAllParentsOk(e.parent)), !1;
|
|
545
|
-
}
|
|
546
|
-
setValue(e, t, o) {
|
|
547
|
-
var r;
|
|
548
|
-
const i = (r = this.columnDefs[t]) == null ? void 0 : r.editInputPipe;
|
|
549
|
-
i && (o = i(o, e, t));
|
|
550
|
-
const s = this.getRowByIndex(e);
|
|
551
|
-
if (s) {
|
|
552
|
-
const l = s.data, n = this.columnDefs[t].property;
|
|
553
|
-
return n.includes(".") ? this.setPropertyValue(l, n.split("."), o) : (l[n] = o, !0);
|
|
554
|
-
}
|
|
555
|
-
return !1;
|
|
556
|
-
}
|
|
557
|
-
genericTreeTableSortComparator(e, t) {
|
|
558
|
-
return (o, i) => {
|
|
559
|
-
const s = this.getValueByT(o.data, e), r = this.getValueByT(i.data, e);
|
|
560
|
-
return this.sorterService.genericSortComparator(s, r, t);
|
|
561
|
-
};
|
|
562
|
-
}
|
|
563
|
-
expandAllRecursive(e, t) {
|
|
564
|
-
for (const o of e)
|
|
565
|
-
o.expanded = t, o.children && this.expandAllRecursive(o.children, t);
|
|
566
|
-
}
|
|
567
|
-
doFiltering() {
|
|
568
|
-
if (!this.lastPredictFn)
|
|
569
|
-
this.filteredFlattenRows = [...this.flattenRows ? this.flattenRows : []];
|
|
570
|
-
else {
|
|
571
|
-
this.flattenRows || (this.flattenRows = []);
|
|
572
|
-
let e = 0;
|
|
573
|
-
this.flattenRows.forEach((o) => {
|
|
574
|
-
e = Math.max(e, o.deep);
|
|
575
|
-
});
|
|
576
|
-
const t = this.flattenRows.filter(
|
|
577
|
-
(o, i, s) => this.lastPredictFn(o, i, s)
|
|
578
|
-
);
|
|
579
|
-
this.flattenRows.forEach((o) => o.keep = !1), this.flattenRows.forEach((o) => {
|
|
580
|
-
t.includes(o) && (o.keep = !0, this.setAllParentsOk(o));
|
|
581
|
-
}), this.filteredFlattenRows = this.flattenRows.filter(
|
|
582
|
-
(o, i, s) => o.keep
|
|
583
|
-
);
|
|
584
|
-
}
|
|
585
|
-
}
|
|
586
|
-
getPropertyValue(e, t) {
|
|
587
|
-
const o = t.shift();
|
|
588
|
-
let i = e[o];
|
|
589
|
-
return i && t.length ? this.getPropertyValue(i, t) : i;
|
|
590
|
-
}
|
|
591
|
-
treeSort(e, t, o) {
|
|
592
|
-
e.sort(this.genericTreeTableSortComparator(t, o));
|
|
593
|
-
for (const i of e)
|
|
594
|
-
i.children && this.treeSort(i.children, t, o);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
377
|
class K {
|
|
598
378
|
constructor(e) {
|
|
599
379
|
this.getStorageKeyFn = e;
|
|
@@ -669,7 +449,7 @@ class K {
|
|
|
669
449
|
// }
|
|
670
450
|
// }
|
|
671
451
|
}
|
|
672
|
-
class
|
|
452
|
+
class Se extends K {
|
|
673
453
|
constructor(e) {
|
|
674
454
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
675
455
|
}
|
|
@@ -691,14 +471,14 @@ class pe extends K {
|
|
|
691
471
|
}
|
|
692
472
|
}
|
|
693
473
|
}
|
|
694
|
-
class
|
|
474
|
+
class xe {
|
|
695
475
|
constructor(e = "collapsed", t = [], o = !1, i = !1) {
|
|
696
476
|
this.mode = e, this.rowIds = t, this.allCollapsed = o, this.allExpanded = i;
|
|
697
477
|
}
|
|
698
478
|
}
|
|
699
|
-
class
|
|
479
|
+
class ye extends K {
|
|
700
480
|
constructor(e) {
|
|
701
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
481
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new xe(), this.load();
|
|
702
482
|
}
|
|
703
483
|
collapsedExpandedStateGet() {
|
|
704
484
|
return this.collapsedExpandedState;
|
|
@@ -730,7 +510,7 @@ class me extends K {
|
|
|
730
510
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
731
511
|
}
|
|
732
512
|
}
|
|
733
|
-
class
|
|
513
|
+
class Ce extends K {
|
|
734
514
|
constructor(e) {
|
|
735
515
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
736
516
|
}
|
|
@@ -757,7 +537,7 @@ class $ {
|
|
|
757
537
|
this.left = e, this.width = t, this.height = o, this.top = i, this.index = s;
|
|
758
538
|
}
|
|
759
539
|
}
|
|
760
|
-
class
|
|
540
|
+
class ve {
|
|
761
541
|
constructor(e, t, o, i) {
|
|
762
542
|
this.hostElement = e, this.tableModel = t, this.dom = o, this.tableOptions = i, this.scrollTop = 0, this.areaBodyWestGeo = new $(), this.areaBodyCenterGeo = new $(), this.areaBodyEastGeo = new $();
|
|
763
543
|
const s = this.hostElement;
|
|
@@ -934,7 +714,7 @@ class E {
|
|
|
934
714
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
935
715
|
}
|
|
936
716
|
}
|
|
937
|
-
class
|
|
717
|
+
class Re {
|
|
938
718
|
constructor(e, t) {
|
|
939
719
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
940
720
|
}
|
|
@@ -972,17 +752,17 @@ class k {
|
|
|
972
752
|
this.header = e, this.body = t, this.footer = o;
|
|
973
753
|
}
|
|
974
754
|
}
|
|
975
|
-
class
|
|
755
|
+
class Ae extends ve {
|
|
976
756
|
constructor(e, t, o, i) {
|
|
977
757
|
var r, l;
|
|
978
758
|
super(e, t, o, i), this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
|
|
979
759
|
header: [],
|
|
980
760
|
body: [],
|
|
981
761
|
footer: []
|
|
982
|
-
}, this.tree = !1, this.colAndRowspanModels = new k(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.editing = !1, 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), t.getAreaModel("body")
|
|
762
|
+
}, this.tree = !1, this.colAndRowspanModels = new k(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.editing = !1, 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), z(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
983
763
|
(n) => {
|
|
984
764
|
var d;
|
|
985
|
-
this.colAndRowspanModels[n] = new
|
|
765
|
+
this.colAndRowspanModels[n] = new Re(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
|
|
986
766
|
}
|
|
987
767
|
);
|
|
988
768
|
}
|
|
@@ -1102,15 +882,15 @@ class ye extends Se {
|
|
|
1102
882
|
var u;
|
|
1103
883
|
const o = this.getArea(e, "west"), i = this.getArea(e, "center"), s = this.getArea(e, "east"), r = i.child.clientHeight;
|
|
1104
884
|
o.child.innerText = "", i.child.innerText = "", s.child.innerText = "";
|
|
1105
|
-
const l = 0, n = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), a = this.tableModel.getAreaModel(e),
|
|
885
|
+
const l = 0, n = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), a = this.tableModel.getAreaModel(e), c = a.getRowCount();
|
|
1106
886
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1107
887
|
const p = this.cleanupFunctions[e].shift();
|
|
1108
888
|
p && p();
|
|
1109
889
|
}
|
|
1110
890
|
let g = t;
|
|
1111
891
|
const m = this.tableModel.getColumnCount(), b = this.tableModel.getFixedRightColumnCount(), w = this.tableModel.getFixedLeftColumnCount();
|
|
1112
|
-
for (let p = 0; p <
|
|
1113
|
-
const C = g, v = p ===
|
|
892
|
+
for (let p = 0; p < c; p++) {
|
|
893
|
+
const C = g, v = p === c - 1, R = this.tableModel.getRowHeight(e, p);
|
|
1114
894
|
if (C + R > 0) {
|
|
1115
895
|
this.firstVisibleRowIndex = p;
|
|
1116
896
|
let y = { left: l, width: n, height: R, top: C, index: p }, S = this.dom.addRowDiv(i, y, p, e, "center");
|
|
@@ -1148,7 +928,7 @@ class ye extends Se {
|
|
|
1148
928
|
columnIndexEnd: m - 1,
|
|
1149
929
|
verticalFixed: !0,
|
|
1150
930
|
lastRowOfModel: v
|
|
1151
|
-
})), e === "header" && this.tree && p ===
|
|
931
|
+
})), e === "header" && this.tree && p === c - 1) {
|
|
1152
932
|
const A = this.dom.applyStyle(
|
|
1153
933
|
this.dom.setAttribute(
|
|
1154
934
|
this.dom.addDiv(S, new $(16, 20, 20, 8)),
|
|
@@ -1158,8 +938,8 @@ class ye extends Se {
|
|
|
1158
938
|
{ cursor: "pointer" }
|
|
1159
939
|
), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
|
|
1160
940
|
if (M) {
|
|
1161
|
-
const
|
|
1162
|
-
this.dom.domService.appendChild(A,
|
|
941
|
+
const V = this.dom.domService.createText(M.content);
|
|
942
|
+
this.dom.domService.appendChild(A, V), M.style && this.dom.applyStyleString(A, M.style);
|
|
1163
943
|
}
|
|
1164
944
|
}
|
|
1165
945
|
}
|
|
@@ -1197,7 +977,7 @@ class ye extends Se {
|
|
|
1197
977
|
const l = o + this.getRowHeights(0, e.r1 - 1, i).reduce((u, p) => u + p, 0), n = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
|
|
1198
978
|
let a = 0;
|
|
1199
979
|
d > 0 && e.c1 >= n - d && (a = n - d);
|
|
1200
|
-
const
|
|
980
|
+
const c = t + this.getColumnWidths(a, e.c1 - 1).reduce((u, p) => u + p, 0), g = this.getRowHeights(e.r1, e.r2, i).reduce((u, p) => u + p, 0), m = this.getColumnWidths(e.c1, e.c2).reduce((u, p) => u + p, 0);
|
|
1201
981
|
let b = !1;
|
|
1202
982
|
const w = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
1203
983
|
w && (b = w.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? (console.info("TODO here", e), this.renderCell({
|
|
@@ -1206,7 +986,7 @@ class ye extends Se {
|
|
|
1206
986
|
sideIdent: r,
|
|
1207
987
|
rowIndex: e.r1,
|
|
1208
988
|
columnIndex: e.c1,
|
|
1209
|
-
left:
|
|
989
|
+
left: c,
|
|
1210
990
|
top: l,
|
|
1211
991
|
width: m,
|
|
1212
992
|
height: g,
|
|
@@ -1220,7 +1000,7 @@ class ye extends Se {
|
|
|
1220
1000
|
sideIdent: r,
|
|
1221
1001
|
rowIndex: e.r1,
|
|
1222
1002
|
columnIndex: e.c1,
|
|
1223
|
-
left:
|
|
1003
|
+
left: c,
|
|
1224
1004
|
top: l,
|
|
1225
1005
|
width: m,
|
|
1226
1006
|
height: g,
|
|
@@ -1231,7 +1011,7 @@ class ye extends Se {
|
|
|
1231
1011
|
}), i.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
1232
1012
|
rowIndex: e.r1,
|
|
1233
1013
|
columnIndex: e.c1,
|
|
1234
|
-
cellLeft:
|
|
1014
|
+
cellLeft: c,
|
|
1235
1015
|
cellTop: l,
|
|
1236
1016
|
cellWidth: m,
|
|
1237
1017
|
cellHeight: g,
|
|
@@ -1263,13 +1043,13 @@ class ye extends Se {
|
|
|
1263
1043
|
}) {
|
|
1264
1044
|
var w;
|
|
1265
1045
|
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
1266
|
-
let
|
|
1046
|
+
let c = 0;
|
|
1267
1047
|
if (!d) {
|
|
1268
1048
|
const u = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1269
|
-
|
|
1049
|
+
c = this.scrollFactorX * u;
|
|
1270
1050
|
}
|
|
1271
1051
|
const g = 0, m = !!(e === "body" && t);
|
|
1272
|
-
let b =
|
|
1052
|
+
let b = c;
|
|
1273
1053
|
for (let u = l; u <= n; u++) {
|
|
1274
1054
|
const p = b, C = this.tableModel.getColumnWidth(u);
|
|
1275
1055
|
if (C > 0 && p + C > 0) {
|
|
@@ -1329,14 +1109,14 @@ class ye extends Se {
|
|
|
1329
1109
|
height: n,
|
|
1330
1110
|
top: d,
|
|
1331
1111
|
parent: a,
|
|
1332
|
-
lastRowOfModel:
|
|
1112
|
+
lastRowOfModel: c
|
|
1333
1113
|
}) {
|
|
1334
|
-
var
|
|
1114
|
+
var J;
|
|
1335
1115
|
const m = this.editorRenderer && this.editorRendererRow === i && this.editorRendererColumn === s ? this.editorRenderer : e.getCellRenderer(i, s), b = { left: r, width: l, height: n, top: d, index: s }, w = e.getRowByIndex(i);
|
|
1336
1116
|
let u = "none";
|
|
1337
|
-
if (s === this.getTreeArrowColumnIndex() && w
|
|
1117
|
+
if (s === this.getTreeArrowColumnIndex() && O(w)) {
|
|
1338
1118
|
const x = w;
|
|
1339
|
-
(
|
|
1119
|
+
(J = x.children) != null && J.length ? x.expanded ? u = "expanded" : u = "collapsed" : u = "hidden";
|
|
1340
1120
|
}
|
|
1341
1121
|
let C;
|
|
1342
1122
|
if (t === "header") {
|
|
@@ -1361,16 +1141,16 @@ class ye extends Se {
|
|
|
1361
1141
|
A && A.classes[t] && this.dom.addClasses(A.classes[t], S);
|
|
1362
1142
|
let M;
|
|
1363
1143
|
m && (M = m.render(S, i, s, t, e, v, this.dom.domService));
|
|
1364
|
-
const
|
|
1365
|
-
if (
|
|
1144
|
+
const V = e.getCustomClassesAt(i, s);
|
|
1145
|
+
if (V.length && this.dom.addClasses(V, S), this.dom.addColumnBorderDivs(this.tableOptions, a, b, t, o), c && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: d + n }, a), this.getFocusModel && t === "body") {
|
|
1366
1146
|
const x = this.getFocusModel();
|
|
1367
1147
|
x != null && x.hasFocus(i, s) && this.dom.addFocusBorderDivs(a, b, {});
|
|
1368
1148
|
}
|
|
1369
1149
|
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
1370
|
-
const
|
|
1371
|
-
if (
|
|
1372
|
-
for (const x in
|
|
1373
|
-
this.dom.setStyle(S, x,
|
|
1150
|
+
const W = e.getCustomStyleAt(i, s);
|
|
1151
|
+
if (W)
|
|
1152
|
+
for (const x in W)
|
|
1153
|
+
this.dom.setStyle(S, x, W[x]);
|
|
1374
1154
|
return [S, M];
|
|
1375
1155
|
}
|
|
1376
1156
|
getColumnWidths(e, t) {
|
|
@@ -1430,7 +1210,7 @@ class ye extends Se {
|
|
|
1430
1210
|
);
|
|
1431
1211
|
return this.dom.setStyle(r, "left", `${t}px`), this.dom.setStyle(r, "top", `${o}px`), this.dom.setStyle(r, "width", `${i}px`), this.dom.setStyle(r, "height", `${s}px`), r;
|
|
1432
1212
|
}
|
|
1433
|
-
renderSelectedBackgroundDiv(e, t, o, i, s, r, l, n, d, a,
|
|
1213
|
+
renderSelectedBackgroundDiv(e, t, o, i, s, r, l, n, d, a, c) {
|
|
1434
1214
|
let g = !1;
|
|
1435
1215
|
if (!e && t && i.isSelectable(s, r) && this.getSelectionModel) {
|
|
1436
1216
|
const m = this.getSelectionModel();
|
|
@@ -1442,7 +1222,7 @@ class ye extends Se {
|
|
|
1442
1222
|
// ge-table-body-west-selected-range
|
|
1443
1223
|
this.dom.createDivWithClass(`ge-table-${i.areaIdent}-${o}-selected-range`, l)
|
|
1444
1224
|
);
|
|
1445
|
-
this.dom.setStyle(u, "left", `${n}px`), this.dom.setStyle(u, "top", `${d}px`), this.dom.setStyle(u, "width", `${a}px`), this.dom.setStyle(u, "height", `${
|
|
1225
|
+
this.dom.setStyle(u, "left", `${n}px`), this.dom.setStyle(u, "top", `${d}px`), this.dom.setStyle(u, "width", `${a}px`), this.dom.setStyle(u, "height", `${c}px`);
|
|
1446
1226
|
}
|
|
1447
1227
|
}
|
|
1448
1228
|
}
|
|
@@ -1459,7 +1239,7 @@ class ye extends Se {
|
|
|
1459
1239
|
width: n,
|
|
1460
1240
|
height: d,
|
|
1461
1241
|
parent: a,
|
|
1462
|
-
cellSelected:
|
|
1242
|
+
cellSelected: c,
|
|
1463
1243
|
lastRowOfModel: g,
|
|
1464
1244
|
gammaRange: m
|
|
1465
1245
|
}) {
|
|
@@ -1477,19 +1257,19 @@ class ye extends Se {
|
|
|
1477
1257
|
lastRowOfModel: g,
|
|
1478
1258
|
gammaRange: m
|
|
1479
1259
|
});
|
|
1480
|
-
|
|
1260
|
+
c && this.dom.addClass(`ge-table-${t}-${o}-selected-range`, b), w && this.cleanupFunctions[t].push(w);
|
|
1481
1261
|
}
|
|
1482
1262
|
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: o, cellTop: i, cellWidth: s, cellHeight: r, parent: l }) {
|
|
1483
1263
|
const n = this.dom.domService, d = this.tableOptions.columnResizeHandleWidthInPx ?? 2, a = n.createElement("div");
|
|
1484
1264
|
n.setAttribute(a, "data-col-index", `${t}`), n.setAttribute(a, "data-row-index", `${e}`), n.setAttribute(a, "data-area", "header"), n.setAttribute(a, "data-ge-action", "resize-column"), n.addClass(a, "ge-table-column-resize-handle"), n.setStyle(a, "display", "clip"), n.setStyle(a, "position", "absolute"), n.setStyle(a, "cursor", "col-resize"), n.setStyle(a, "left", `${o + s - d}px`), n.setStyle(a, "top", `${i}px`), n.setStyle(a, "width", `${d}px`), n.setStyle(a, "height", `${r}px`), n.appendChild(l, a);
|
|
1485
1265
|
}
|
|
1486
1266
|
}
|
|
1487
|
-
class
|
|
1267
|
+
class Ee {
|
|
1488
1268
|
constructor(e, t) {
|
|
1489
1269
|
this.columnIndex = e, this.sortState = t;
|
|
1490
1270
|
}
|
|
1491
1271
|
}
|
|
1492
|
-
class
|
|
1272
|
+
class Me {
|
|
1493
1273
|
constructor(e) {
|
|
1494
1274
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
1495
1275
|
}
|
|
@@ -1497,13 +1277,13 @@ class ve {
|
|
|
1497
1277
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
|
|
1498
1278
|
const t = e.target, o = t.getAttribute("data-area"), i = t.getAttribute("data-row-index"), s = t.getAttribute("data-col-index");
|
|
1499
1279
|
if (o && i && s) {
|
|
1500
|
-
const r =
|
|
1280
|
+
const r = Y(o), l = Number(i), n = Number(s);
|
|
1501
1281
|
this.tableScope.updateModelValueAfterEdit(r, l, n, t.value);
|
|
1502
1282
|
}
|
|
1503
1283
|
}
|
|
1504
1284
|
}
|
|
1505
1285
|
}
|
|
1506
|
-
class
|
|
1286
|
+
class Ie {
|
|
1507
1287
|
constructor(e = -1, t = -1) {
|
|
1508
1288
|
this.rowIndex = e, this.columnIndex = t;
|
|
1509
1289
|
}
|
|
@@ -1513,20 +1293,20 @@ class U {
|
|
|
1513
1293
|
this.cells = e;
|
|
1514
1294
|
}
|
|
1515
1295
|
static createSingle(e, t) {
|
|
1516
|
-
return new U([new
|
|
1296
|
+
return new U([new Ie(e, t)]);
|
|
1517
1297
|
}
|
|
1518
1298
|
}
|
|
1519
|
-
class
|
|
1299
|
+
class ke {
|
|
1520
1300
|
constructor(e) {
|
|
1521
1301
|
var t, o;
|
|
1522
1302
|
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);
|
|
1523
1303
|
}
|
|
1524
1304
|
onMouseClicked(e, t) {
|
|
1525
|
-
var s, r, l, n, d, a,
|
|
1305
|
+
var s, r, l, n, d, a, c;
|
|
1526
1306
|
let o = !1, i = !1;
|
|
1527
1307
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
1528
1308
|
const g = this.getSelectionModel(), m = this.getFocusModel();
|
|
1529
|
-
g && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), o = !0), (s = e.originalEvent) != null && s.shiftKey || g.hasSelection() && (g.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (g.addSelection(this.createRangeByEvents(e, this.previousEvt)), i = !0, o = !0) : (l = e.originalEvent) != null && l.ctrlKey || (n = e.originalEvent) != null && n.metaKey ? (g.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), i = !0, o = !0) : (d = e.originalEvent) != null && d.altKey && ((a = e.originalEvent) != null && a.ctrlKey || (
|
|
1309
|
+
g && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), o = !0), (s = e.originalEvent) != null && s.shiftKey || g.hasSelection() && (g.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (g.addSelection(this.createRangeByEvents(e, this.previousEvt)), i = !0, o = !0) : (l = e.originalEvent) != null && l.ctrlKey || (n = e.originalEvent) != null && n.metaKey ? (g.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), i = !0, o = !0) : (d = e.originalEvent) != null && d.altKey && ((a = e.originalEvent) != null && a.ctrlKey || (c = e.originalEvent) != null && c.metaKey) && (g.removeSelection(E.singleCell(e.rowIndex, e.columnIndex)), i = !0, o = !0));
|
|
1530
1310
|
}
|
|
1531
1311
|
return i ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), o;
|
|
1532
1312
|
}
|
|
@@ -1557,7 +1337,7 @@ class Ae {
|
|
|
1557
1337
|
});
|
|
1558
1338
|
}
|
|
1559
1339
|
}
|
|
1560
|
-
class
|
|
1340
|
+
class Te {
|
|
1561
1341
|
get() {
|
|
1562
1342
|
return {
|
|
1563
1343
|
f2: "START_EDITING",
|
|
@@ -1575,7 +1355,7 @@ class Ee {
|
|
|
1575
1355
|
};
|
|
1576
1356
|
}
|
|
1577
1357
|
}
|
|
1578
|
-
class
|
|
1358
|
+
class _e {
|
|
1579
1359
|
get() {
|
|
1580
1360
|
return {
|
|
1581
1361
|
f2: "START_EDITING",
|
|
@@ -1595,7 +1375,7 @@ class Me {
|
|
|
1595
1375
|
};
|
|
1596
1376
|
}
|
|
1597
1377
|
}
|
|
1598
|
-
class
|
|
1378
|
+
class De {
|
|
1599
1379
|
constructor(e) {
|
|
1600
1380
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
1601
1381
|
}
|
|
@@ -1603,7 +1383,7 @@ class Ie {
|
|
|
1603
1383
|
this.listener.includes(e) || this.listener.push(e);
|
|
1604
1384
|
}
|
|
1605
1385
|
init() {
|
|
1606
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
1386
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new _e().get()) : Object.assign(this.shortcutActionIdMapping, new Te().get()), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
|
|
1607
1387
|
}
|
|
1608
1388
|
isMacintosh() {
|
|
1609
1389
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -1647,7 +1427,7 @@ class Ie {
|
|
|
1647
1427
|
return e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.ctrlKey && t.push("ctrl"), e.metaKey && t.push("meta"), e.code && t.push(e.code.toLowerCase().replace(/key/g, "")), t.sort();
|
|
1648
1428
|
}
|
|
1649
1429
|
}
|
|
1650
|
-
class
|
|
1430
|
+
class Q {
|
|
1651
1431
|
onCheckboxChanged(e) {
|
|
1652
1432
|
}
|
|
1653
1433
|
onContextmenu(e) {
|
|
@@ -1663,19 +1443,150 @@ class ke {
|
|
|
1663
1443
|
onMouseMoved(e) {
|
|
1664
1444
|
}
|
|
1665
1445
|
}
|
|
1666
|
-
class
|
|
1667
|
-
|
|
1668
|
-
|
|
1446
|
+
class $e {
|
|
1447
|
+
setStyle(e, t, o) {
|
|
1448
|
+
return e.style[t] = o, e;
|
|
1449
|
+
}
|
|
1450
|
+
appendText(e, t) {
|
|
1451
|
+
const o = this.createText(t);
|
|
1452
|
+
return this.appendChild(e, o), o;
|
|
1453
|
+
}
|
|
1454
|
+
addClass(e, t) {
|
|
1455
|
+
return t.includes(" ") ? t.split(" ").forEach((o) => e.classList.add(o)) : e.classList.add(t), e;
|
|
1456
|
+
}
|
|
1457
|
+
appendChild(e, t) {
|
|
1458
|
+
e.appendChild(t);
|
|
1459
|
+
}
|
|
1460
|
+
createElement(e) {
|
|
1461
|
+
return document.createElement(e);
|
|
1462
|
+
}
|
|
1463
|
+
createText(e) {
|
|
1464
|
+
return document.createTextNode(e);
|
|
1465
|
+
}
|
|
1466
|
+
setAttribute(e, t, o) {
|
|
1467
|
+
e.setAttribute(t, o);
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
class Fe {
|
|
1471
|
+
render(e, t, o, i, s, r, l) {
|
|
1472
|
+
if (s.isEditable(t, o)) {
|
|
1473
|
+
l.addClass(e, "ge-table-row-input-div");
|
|
1474
|
+
const n = s.getValueAt(t, o);
|
|
1475
|
+
e.innerHTML = `
|
|
1476
|
+
<input
|
|
1477
|
+
type="text"
|
|
1478
|
+
value="${n}"
|
|
1479
|
+
autofocus
|
|
1480
|
+
onfocus="this.setSelectionRange(0, this.value.length)"
|
|
1481
|
+
data-listen="change"
|
|
1482
|
+
data-area="${i}"
|
|
1483
|
+
data-row-index="${t}"
|
|
1484
|
+
data-col-index="${o}"
|
|
1485
|
+
data-input-type="text"
|
|
1486
|
+
style="width:calc(100% - 8px);height:100%;border:0;padding:0 0 0 8px;"
|
|
1487
|
+
class="ge-table-cell-editor-input">`;
|
|
1488
|
+
}
|
|
1489
|
+
}
|
|
1490
|
+
}
|
|
1491
|
+
class Le {
|
|
1492
|
+
constructor(e = "none", t = "single") {
|
|
1493
|
+
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
|
|
1494
|
+
}
|
|
1495
|
+
getSelectionCount(e, t) {
|
|
1496
|
+
let o = 0;
|
|
1497
|
+
for (const i of this.ranges)
|
|
1498
|
+
i.isInRange(e, t) && o++;
|
|
1499
|
+
return this.allSelected && o++, this.isInNegativeRange(e, t) && (o = 0), o;
|
|
1500
|
+
}
|
|
1501
|
+
isInNegativeRange(e, t) {
|
|
1502
|
+
for (const o of this.negativeRanges)
|
|
1503
|
+
if (o.isInRange(e, t))
|
|
1504
|
+
return !0;
|
|
1505
|
+
return !1;
|
|
1506
|
+
}
|
|
1507
|
+
getRanges() {
|
|
1508
|
+
return this.ranges;
|
|
1509
|
+
}
|
|
1510
|
+
clear() {
|
|
1511
|
+
this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
|
|
1512
|
+
}
|
|
1513
|
+
hasSelection() {
|
|
1514
|
+
return !!this.ranges.length;
|
|
1515
|
+
}
|
|
1516
|
+
selectAll() {
|
|
1517
|
+
this.allSelected = !0;
|
|
1518
|
+
}
|
|
1519
|
+
addSelection(e) {
|
|
1520
|
+
this.addRange(e);
|
|
1521
|
+
}
|
|
1522
|
+
removeSelection(e) {
|
|
1523
|
+
if (this.selectionType === "none")
|
|
1524
|
+
return;
|
|
1525
|
+
let t = e;
|
|
1526
|
+
this.selectionType === "row" ? t = E.singleRow(e.r1) : this.selectionType === "column" && (t = E.singleColumn(e.c1)), this.negativeRanges.push(t);
|
|
1527
|
+
}
|
|
1528
|
+
togglePoint(e, t) {
|
|
1529
|
+
this.getSelectionCount(e, t) > 0 ? this.removeSelection(E.singleCell(e, t)) : this.addSelection(E.singleCell(e, t));
|
|
1530
|
+
}
|
|
1531
|
+
addRange(e) {
|
|
1532
|
+
this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e));
|
|
1533
|
+
}
|
|
1534
|
+
}
|
|
1535
|
+
class Oe {
|
|
1536
|
+
constructor(e = "none") {
|
|
1537
|
+
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1;
|
|
1538
|
+
}
|
|
1539
|
+
clearChanged() {
|
|
1540
|
+
this.changed = !1;
|
|
1541
|
+
}
|
|
1542
|
+
hasChanged() {
|
|
1543
|
+
return this.changed;
|
|
1544
|
+
}
|
|
1545
|
+
clear() {
|
|
1546
|
+
this.rowIndex = -1, this.columnIndex = -1;
|
|
1547
|
+
}
|
|
1548
|
+
setFocus(e, t) {
|
|
1549
|
+
(this.rowIndex !== e || this.columnIndex !== t) && (this.rowIndex = e, this.columnIndex = t, this.changed = !0);
|
|
1550
|
+
}
|
|
1551
|
+
hasFocus(e, t) {
|
|
1552
|
+
return this.rowIndex === e && this.columnIndex === t;
|
|
1553
|
+
}
|
|
1554
|
+
getFocus() {
|
|
1555
|
+
return [this.rowIndex, this.columnIndex];
|
|
1556
|
+
}
|
|
1557
|
+
}
|
|
1558
|
+
const Pe = new Le(), He = new Oe("cell");
|
|
1559
|
+
class N {
|
|
1560
|
+
constructor() {
|
|
1561
|
+
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 = {
|
|
1562
|
+
header: 34,
|
|
1563
|
+
body: 34,
|
|
1564
|
+
footer: 34
|
|
1565
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ae(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new de(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new Fe(), this.getSelectionModel = () => Pe, this.getFocusModel = () => He;
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
class he extends Ae {
|
|
1569
|
+
constructor(e, t, o, i, s) {
|
|
1570
|
+
var r;
|
|
1669
1571
|
if (super(
|
|
1670
1572
|
e,
|
|
1671
1573
|
t,
|
|
1672
|
-
new
|
|
1574
|
+
new pe(o),
|
|
1673
1575
|
i
|
|
1674
|
-
), this.eventListener = s, this.selectionService = new
|
|
1576
|
+
), this.eventListener = s, this.selectionService = new ke(this), this.api = new we(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, s || (this.eventListener = new Q()), (r = this.tableOptions) != null && r.autoRestoreOptions) {
|
|
1675
1577
|
const l = this.tableOptions.autoRestoreOptions, n = l.getStorageKeyFn;
|
|
1676
|
-
n && (l.autoRestoreScrollPosition && (this.storeScrollPosStateService = new
|
|
1578
|
+
n && (l.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Se(n)), l.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ye(n)), l.autoRestoreSortingState && (this.storeSortingService = new Ce(n)));
|
|
1677
1579
|
}
|
|
1678
|
-
this.mouseHandler = new
|
|
1580
|
+
this.mouseHandler = new me(this), this.inputHandler = new Me(this), this.shortcutService = new De(this), this.shortcutService.addListener(this.selectionService);
|
|
1581
|
+
}
|
|
1582
|
+
static create(e, t, o = new N(), i = new Q(), s = new $e()) {
|
|
1583
|
+
return new he(
|
|
1584
|
+
e,
|
|
1585
|
+
t,
|
|
1586
|
+
s,
|
|
1587
|
+
o,
|
|
1588
|
+
i
|
|
1589
|
+
);
|
|
1679
1590
|
}
|
|
1680
1591
|
onActionTriggered(e) {
|
|
1681
1592
|
if (e === "NAVIGATE_DOWN" && this.changeFocusCell(0, 1) || e === "NAVIGATE_UP" && this.changeFocusCell(0, -1) || e === "NAVIGATE_LEFT" && this.changeFocusCell(-1, 0) || e === "NAVIGATE_RIGHT" && this.changeFocusCell(1, 0))
|
|
@@ -1701,10 +1612,10 @@ class Ne extends ye {
|
|
|
1701
1612
|
*/
|
|
1702
1613
|
firstInit() {
|
|
1703
1614
|
var e;
|
|
1704
|
-
this.tableModel.init(), (e = this.tableOptions) != null && e.externalFilterFunction && this.externalFilterChanged(!1), this.autoRestoreCollapsedExpandedState(), this.autoRestoreSortingState(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows(), this.autoRestoreScrollPosition();
|
|
1615
|
+
return this.tableModel.init(), (e = this.tableOptions) != null && e.externalFilterFunction && this.externalFilterChanged(!1), this.autoRestoreCollapsedExpandedState(), this.autoRestoreSortingState(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows(), this.autoRestoreScrollPosition(), this;
|
|
1705
1616
|
}
|
|
1706
1617
|
createGeMouseEvent(e) {
|
|
1707
|
-
const t = new
|
|
1618
|
+
const t = new X();
|
|
1708
1619
|
if (t.originalEvent = e, e) {
|
|
1709
1620
|
const o = e.target;
|
|
1710
1621
|
if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(o), t.rowIndex = this.getNumberByAttr(o, "data-row-index"), t.columnIndex = this.getNumberByAttr(o, "data-col-index"), t.action = this.getStringByAttr(o, "data-ge-action"), t.areaIdent) {
|
|
@@ -1736,7 +1647,7 @@ class Ne extends ye {
|
|
|
1736
1647
|
toggleExpandCollapseAll(e = !0) {
|
|
1737
1648
|
var o;
|
|
1738
1649
|
const t = this.tableModel.getBodyModel();
|
|
1739
|
-
t
|
|
1650
|
+
z(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (o = this.storeStateCollapsedExpandService) == null || o.collapsedStateAll(e));
|
|
1740
1651
|
}
|
|
1741
1652
|
toggleRowCheckbox(e, t, o) {
|
|
1742
1653
|
var n;
|
|
@@ -1762,7 +1673,7 @@ class Ne extends ye {
|
|
|
1762
1673
|
const i = this.tableModel.getColumnDef(o);
|
|
1763
1674
|
if (i != null && i.sortable && i.sortable()) {
|
|
1764
1675
|
e.preventDefault(), e.stopPropagation();
|
|
1765
|
-
const l = i.sortStatesOrder ? i.sortStatesOrder : this.tableOptions.sortOrder, n = i.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], a = new
|
|
1676
|
+
const l = i.sortStatesOrder ? i.sortStatesOrder : this.tableOptions.sortOrder, n = i.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], a = new Ee(o, d);
|
|
1766
1677
|
this.tableModel.doSort([a]) && ((s = this.tableModel.getColumnDefs()) == null || s.forEach((g) => g.sortState = ""), i.sortState = d), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([a]);
|
|
1767
1678
|
}
|
|
1768
1679
|
}
|
|
@@ -1807,7 +1718,7 @@ class Ne extends ye {
|
|
|
1807
1718
|
const o = this.tableOptions.autoRestoreOptions, i = o.getRowId;
|
|
1808
1719
|
if (o.autoRestoreCollapsedExpandedState && i) {
|
|
1809
1720
|
const s = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
1810
|
-
if (r
|
|
1721
|
+
if (z(r)) {
|
|
1811
1722
|
const l = r, n = r.getRowCount();
|
|
1812
1723
|
for (let d = 0; d < n; d++) {
|
|
1813
1724
|
const a = r.getRowByIndex(d);
|
|
@@ -1817,8 +1728,8 @@ class Ne extends ye {
|
|
|
1817
1728
|
else if (s.allCollapsed)
|
|
1818
1729
|
a.expanded = !1;
|
|
1819
1730
|
else {
|
|
1820
|
-
const
|
|
1821
|
-
s.mode === "expanded" ? a.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(
|
|
1731
|
+
const c = i(a.data);
|
|
1732
|
+
s.mode === "expanded" ? a.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(c) : s.mode === "collapsed" && (a.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(c));
|
|
1822
1733
|
}
|
|
1823
1734
|
}
|
|
1824
1735
|
l.recalcVisibleTreeRows();
|
|
@@ -1827,10 +1738,10 @@ class Ne extends ye {
|
|
|
1827
1738
|
}
|
|
1828
1739
|
}
|
|
1829
1740
|
}
|
|
1830
|
-
class
|
|
1741
|
+
class ce {
|
|
1831
1742
|
}
|
|
1832
|
-
|
|
1833
|
-
|
|
1743
|
+
ce.themes = ["light", "combat", "paper", "blackboard"];
|
|
1744
|
+
ce.vars = {
|
|
1834
1745
|
light: `:root [data-theme="light"] {
|
|
1835
1746
|
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
1836
1747
|
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
@@ -2064,22 +1975,27 @@ ae.vars = {
|
|
|
2064
1975
|
--ge-table-drop-zone-bg: #758129;
|
|
2065
1976
|
}`
|
|
2066
1977
|
};
|
|
2067
|
-
class
|
|
1978
|
+
class Z {
|
|
1979
|
+
constructor(e, t = !0, o, i, s = 0, r = !1, l = !1) {
|
|
1980
|
+
this.data = e, this.expanded = t, this.children = o, this.parent = i, this.deep = s, this.checked = r, this.keep = l, this.type = "TreeRow";
|
|
1981
|
+
}
|
|
1982
|
+
}
|
|
1983
|
+
class j {
|
|
2068
1984
|
static buildTreeRows(e, t = "children", o = 12) {
|
|
2069
1985
|
const i = [];
|
|
2070
1986
|
for (const s of e)
|
|
2071
|
-
i.push(
|
|
1987
|
+
i.push(j.buildTreeRow(s, t, void 0, 0, o));
|
|
2072
1988
|
return i;
|
|
2073
1989
|
}
|
|
2074
|
-
static buildTreeRow(e, t = "children", o = new
|
|
1990
|
+
static buildTreeRow(e, t = "children", o = new Z(e, !0, [], void 0, 0), i = 0, s = 12) {
|
|
2075
1991
|
var l;
|
|
2076
1992
|
if (i > s)
|
|
2077
1993
|
return console.warn("Max deep limit reached: ", i), o;
|
|
2078
1994
|
const r = e[t];
|
|
2079
1995
|
if (r)
|
|
2080
1996
|
for (const n of r) {
|
|
2081
|
-
const d = new
|
|
2082
|
-
if ((l = o.children) == null || l.push(d),
|
|
1997
|
+
const d = new Z(n, !0, [], o, i + 1);
|
|
1998
|
+
if ((l = o.children) == null || l.push(d), j.buildTreeRow(
|
|
2083
1999
|
n,
|
|
2084
2000
|
t,
|
|
2085
2001
|
d,
|
|
@@ -2100,10 +2016,10 @@ class f {
|
|
|
2100
2016
|
this.value = e, this.unit = t;
|
|
2101
2017
|
}
|
|
2102
2018
|
}
|
|
2103
|
-
const
|
|
2104
|
-
class
|
|
2105
|
-
constructor(e, t, o = new f(100, "px"), i = new k(), s = new k(), r = new f(100, "px"), l = new f(100, "px"), n, d, a,
|
|
2106
|
-
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 = d, this.sortState = a, this.sortStatesOrder =
|
|
2019
|
+
const Ve = () => !0, ee = () => !1;
|
|
2020
|
+
class H {
|
|
2021
|
+
constructor(e, t, o = new f(100, "px"), i = new k(), s = new k(), r = new f(100, "px"), l = new f(100, "px"), n, d, a, c, g, m, b, w, u = () => this.visible) {
|
|
2022
|
+
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 = d, this.sortState = a, this.sortStatesOrder = c, this.sortIconVisible = g, this.editable = m, this.getEditRenderer = b, this.editInputPipe = w, this.isVisible = u, this.visible = !0;
|
|
2107
2023
|
}
|
|
2108
2024
|
static bodyRenderer(e) {
|
|
2109
2025
|
return new k(
|
|
@@ -2121,8 +2037,8 @@ class V {
|
|
|
2121
2037
|
e.headerClasses,
|
|
2122
2038
|
e.bodyClasses,
|
|
2123
2039
|
e.footerClasses
|
|
2124
|
-
), i = e.sortIconVisible ?? e.sortable ??
|
|
2125
|
-
return new
|
|
2040
|
+
), i = e.sortIconVisible ?? e.sortable ?? ee, s = e.editable ?? e.editable ?? ee, r = e.isVisible ?? e.isVisible ?? Ve;
|
|
2041
|
+
return new H(
|
|
2126
2042
|
e.property ?? "",
|
|
2127
2043
|
e.headerLabel ?? "",
|
|
2128
2044
|
e.width ?? new f(100, "px"),
|
|
@@ -2142,8 +2058,99 @@ class V {
|
|
|
2142
2058
|
);
|
|
2143
2059
|
}
|
|
2144
2060
|
}
|
|
2145
|
-
const
|
|
2146
|
-
class
|
|
2061
|
+
const Ke = new f(300, "px"), Ue = new f(290, "px"), qe = new f(280, "px"), Je = new f(270, "px"), Qe = new f(260, "px"), Ze = new f(250, "px"), et = new f(240, "px"), tt = new f(230, "px"), ot = new f(220, "px"), it = new f(210, "px"), te = new f(200, "px"), st = new f(190, "px"), rt = new f(180, "px"), lt = new f(170, "px"), nt = new f(160, "px"), at = new f(150, "px"), dt = new f(140, "px"), ht = new f(130, "px"), ct = new f(120, "px"), ut = new f(110, "px"), gt = new f(100, "px"), bt = new f(90, "px"), pt = new f(80, "px"), ft = new f(70, "px"), mt = new f(60, "px"), wt = new f(50, "px"), St = new f(40, "px"), xt = new f(30, "px"), yt = new f(20, "px"), Ct = new f(10, "px"), vt = new f(0, "px");
|
|
2062
|
+
class q {
|
|
2063
|
+
constructor(e, t = [], o = -1) {
|
|
2064
|
+
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = o, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((i) => i.rendererMap[e]);
|
|
2065
|
+
}
|
|
2066
|
+
getTooltipAt(e, t) {
|
|
2067
|
+
return "";
|
|
2068
|
+
}
|
|
2069
|
+
getCellRenderer(e, t) {
|
|
2070
|
+
if (t < this.cellRenderers.length)
|
|
2071
|
+
return this.cellRenderers[t];
|
|
2072
|
+
}
|
|
2073
|
+
getColspanAt(e, t) {
|
|
2074
|
+
return 0;
|
|
2075
|
+
}
|
|
2076
|
+
getCustomClassesAt(e, t) {
|
|
2077
|
+
return [];
|
|
2078
|
+
}
|
|
2079
|
+
getCustomStyleAt(e, t) {
|
|
2080
|
+
}
|
|
2081
|
+
getRowspanAt(e, t) {
|
|
2082
|
+
return 0;
|
|
2083
|
+
}
|
|
2084
|
+
getRowByIndex(e) {
|
|
2085
|
+
}
|
|
2086
|
+
isRowCheckable(e) {
|
|
2087
|
+
return !0;
|
|
2088
|
+
}
|
|
2089
|
+
isRowChecked(e) {
|
|
2090
|
+
var o;
|
|
2091
|
+
const t = this.getRowByIndex(e);
|
|
2092
|
+
return (o = this.rowSelectionModel) == null ? void 0 : o.isRowChecked(t);
|
|
2093
|
+
}
|
|
2094
|
+
setRowChecked(e, t) {
|
|
2095
|
+
if (this.rowSelectionModel) {
|
|
2096
|
+
const o = this.getRowByIndex(e);
|
|
2097
|
+
this.rowSelectionModel.checkRow(o, t);
|
|
2098
|
+
}
|
|
2099
|
+
}
|
|
2100
|
+
getMaxColspan() {
|
|
2101
|
+
return 31;
|
|
2102
|
+
}
|
|
2103
|
+
getMaxRowspan() {
|
|
2104
|
+
return 31;
|
|
2105
|
+
}
|
|
2106
|
+
getYPosByRowIndex(e) {
|
|
2107
|
+
return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
|
|
2108
|
+
}
|
|
2109
|
+
init() {
|
|
2110
|
+
!this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
|
|
2111
|
+
}
|
|
2112
|
+
isFilterable() {
|
|
2113
|
+
return this.areaIdent === "body";
|
|
2114
|
+
}
|
|
2115
|
+
doSort(e) {
|
|
2116
|
+
return !1;
|
|
2117
|
+
}
|
|
2118
|
+
isEditable(e, t) {
|
|
2119
|
+
return this.columnDefs && t < this.columnDefs.length && this.columnDefs[t].editable ? this.columnDefs[t].editable() : !1;
|
|
2120
|
+
}
|
|
2121
|
+
setValue(e, t, o) {
|
|
2122
|
+
var l;
|
|
2123
|
+
const i = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
|
|
2124
|
+
i && (o = i(o, e, t));
|
|
2125
|
+
const s = this.getRowByIndex(e), r = this.columnDefs[t].property;
|
|
2126
|
+
return r.includes(".") ? this.setPropertyValue(s, r.split("."), o) : (s[r] = o, !0);
|
|
2127
|
+
}
|
|
2128
|
+
isSelectable(e, t) {
|
|
2129
|
+
return !0;
|
|
2130
|
+
}
|
|
2131
|
+
changeColumnOrder(e, t) {
|
|
2132
|
+
this.arrayMove(this.cellRenderers, e, t);
|
|
2133
|
+
}
|
|
2134
|
+
setPropertyValue(e, t, o) {
|
|
2135
|
+
const i = t.shift();
|
|
2136
|
+
if (i) {
|
|
2137
|
+
let s = e[i];
|
|
2138
|
+
return s && t.length ? this.setPropertyValue(s, t, o) : (e[i] = o, !0);
|
|
2139
|
+
}
|
|
2140
|
+
return !1;
|
|
2141
|
+
}
|
|
2142
|
+
arrayMove(e, t, o) {
|
|
2143
|
+
const i = e.splice(t, 1)[0];
|
|
2144
|
+
return e.splice(o, 0, i), e;
|
|
2145
|
+
}
|
|
2146
|
+
calcYPositions() {
|
|
2147
|
+
const e = this.getRowCount();
|
|
2148
|
+
this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
|
|
2149
|
+
for (let t = 0; t < e; t++)
|
|
2150
|
+
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
2151
|
+
}
|
|
2152
|
+
}
|
|
2153
|
+
class _ extends q {
|
|
2147
2154
|
constructor(e, t, o, i = []) {
|
|
2148
2155
|
super(e, i, o), this.areaIdent = e, this.arr = t, this.defaultRowHeight = o, this.columnDefs = i, this.filteredArr = [...t];
|
|
2149
2156
|
}
|
|
@@ -2231,16 +2238,149 @@ class D {
|
|
|
2231
2238
|
isEditable(e, t) {
|
|
2232
2239
|
return !1;
|
|
2233
2240
|
}
|
|
2234
|
-
setValue(e, t, o) {
|
|
2235
|
-
return !1;
|
|
2241
|
+
setValue(e, t, o) {
|
|
2242
|
+
return !1;
|
|
2243
|
+
}
|
|
2244
|
+
isSelectable(e, t) {
|
|
2245
|
+
return !1;
|
|
2246
|
+
}
|
|
2247
|
+
changeColumnOrder(e, t) {
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
class Be {
|
|
2251
|
+
flattenTree(e, t = []) {
|
|
2252
|
+
var o;
|
|
2253
|
+
for (const i of e)
|
|
2254
|
+
this.isVisible(i) && t.push(i), (o = i.children) != null && o.length && this.flattenTree(i.children, t);
|
|
2255
|
+
return t;
|
|
2256
|
+
}
|
|
2257
|
+
isVisible(e) {
|
|
2258
|
+
return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
class ue {
|
|
2262
|
+
genericSortComparator(e, t, o) {
|
|
2263
|
+
if (typeof e == "number" && typeof t == "number")
|
|
2264
|
+
return o * (e - t);
|
|
2265
|
+
if (typeof e == "string" && typeof t == "string")
|
|
2266
|
+
return o * e.localeCompare(t);
|
|
2267
|
+
if (typeof e == "boolean" && typeof t == "boolean")
|
|
2268
|
+
return o * ((e ? -1 : 1) - (t ? -1 : 1));
|
|
2269
|
+
if (e instanceof Date && t instanceof Date)
|
|
2270
|
+
return o * (e.getTime() - t.getTime());
|
|
2271
|
+
if (e instanceof Array && t instanceof Array) {
|
|
2272
|
+
const i = e, s = t;
|
|
2273
|
+
if (i.length && s.length)
|
|
2274
|
+
return this.genericSortComparator(i[0], s[0], o);
|
|
2275
|
+
}
|
|
2276
|
+
return o * ("" + e).localeCompare("" + t);
|
|
2277
|
+
}
|
|
2278
|
+
}
|
|
2279
|
+
class oe extends q {
|
|
2280
|
+
constructor(e, t, o, i = []) {
|
|
2281
|
+
super(e, i, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = i, this.type = "AreaModelTree", this.sorterService = new ue(), this.service = new Be(), this.properties = i.map((s) => s.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
|
|
2282
|
+
}
|
|
2283
|
+
changeColumnOrder(e, t) {
|
|
2284
|
+
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
2285
|
+
}
|
|
2286
|
+
recalcVisibleTreeRows() {
|
|
2287
|
+
this.filteredFlattenRows = this.service.flattenTree(this.rows);
|
|
2288
|
+
}
|
|
2289
|
+
getFilteredFlattenRows() {
|
|
2290
|
+
return this.filteredFlattenRows;
|
|
2291
|
+
}
|
|
2292
|
+
getRowCount() {
|
|
2293
|
+
let e = 0;
|
|
2294
|
+
for (const t of this.filteredFlattenRows)
|
|
2295
|
+
this.service.isVisible(t) && e++;
|
|
2296
|
+
return e;
|
|
2297
|
+
}
|
|
2298
|
+
getValueAt(e, t) {
|
|
2299
|
+
const o = this.getRowByIndex(e);
|
|
2300
|
+
if (o) {
|
|
2301
|
+
const i = this.properties[t];
|
|
2302
|
+
if (i)
|
|
2303
|
+
return i.includes(".") ? this.getPropertyValue(o.data, i.split(".")) : o.data[i];
|
|
2304
|
+
}
|
|
2305
|
+
return "";
|
|
2306
|
+
}
|
|
2307
|
+
getRowHeight(e) {
|
|
2308
|
+
return this.defaultRowHeight;
|
|
2309
|
+
}
|
|
2310
|
+
getCustomClassesAt(e, t) {
|
|
2311
|
+
return ["ge-table-tree-cell", "ge-table-tree-deep-" + this.filteredFlattenRows[e].deep];
|
|
2312
|
+
}
|
|
2313
|
+
getRowByIndex(e) {
|
|
2314
|
+
return this.filteredFlattenRows[e];
|
|
2315
|
+
}
|
|
2316
|
+
getValueByT(e, t) {
|
|
2317
|
+
return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
|
|
2318
|
+
}
|
|
2319
|
+
externalFilterChanged(e) {
|
|
2320
|
+
this.lastPredictFn = e, this.doFiltering();
|
|
2321
|
+
}
|
|
2322
|
+
doSort(e) {
|
|
2323
|
+
const { columnIndex: t, sortState: o } = e[e.length - 1], i = o === "asc" ? 1 : o === "desc" ? -1 : 0, s = this.properties[t];
|
|
2324
|
+
return this.treeSort(this.rows, s, i), this.flattenRows = this.service.flattenTree(this.rows), this.filteredFlattenRows = [...this.flattenRows], !0;
|
|
2325
|
+
}
|
|
2326
|
+
toggleExpandCollapseAll(e) {
|
|
2327
|
+
this.expandAllRecursive(this.rows, e), this.flattenRows = this.service.flattenTree(this.rows), this.doFiltering();
|
|
2328
|
+
}
|
|
2329
|
+
setAllParentsOk(e) {
|
|
2330
|
+
return e.parent && (e.parent.keep = !0, this.setAllParentsOk(e.parent)), !1;
|
|
2331
|
+
}
|
|
2332
|
+
setValue(e, t, o) {
|
|
2333
|
+
var r;
|
|
2334
|
+
const i = (r = this.columnDefs[t]) == null ? void 0 : r.editInputPipe;
|
|
2335
|
+
i && (o = i(o, e, t));
|
|
2336
|
+
const s = this.getRowByIndex(e);
|
|
2337
|
+
if (s) {
|
|
2338
|
+
const l = s.data, n = this.columnDefs[t].property;
|
|
2339
|
+
return n.includes(".") ? this.setPropertyValue(l, n.split("."), o) : (l[n] = o, !0);
|
|
2340
|
+
}
|
|
2341
|
+
return !1;
|
|
2342
|
+
}
|
|
2343
|
+
genericTreeTableSortComparator(e, t) {
|
|
2344
|
+
return (o, i) => {
|
|
2345
|
+
const s = this.getValueByT(o.data, e), r = this.getValueByT(i.data, e);
|
|
2346
|
+
return this.sorterService.genericSortComparator(s, r, t);
|
|
2347
|
+
};
|
|
2348
|
+
}
|
|
2349
|
+
expandAllRecursive(e, t) {
|
|
2350
|
+
for (const o of e)
|
|
2351
|
+
o.expanded = t, o.children && this.expandAllRecursive(o.children, t);
|
|
2352
|
+
}
|
|
2353
|
+
doFiltering() {
|
|
2354
|
+
if (!this.lastPredictFn)
|
|
2355
|
+
this.filteredFlattenRows = [...this.flattenRows ? this.flattenRows : []];
|
|
2356
|
+
else {
|
|
2357
|
+
this.flattenRows || (this.flattenRows = []);
|
|
2358
|
+
let e = 0;
|
|
2359
|
+
this.flattenRows.forEach((o) => {
|
|
2360
|
+
e = Math.max(e, o.deep);
|
|
2361
|
+
});
|
|
2362
|
+
const t = this.flattenRows.filter(
|
|
2363
|
+
(o, i, s) => this.lastPredictFn(o, i, s)
|
|
2364
|
+
);
|
|
2365
|
+
this.flattenRows.forEach((o) => o.keep = !1), this.flattenRows.forEach((o) => {
|
|
2366
|
+
t.includes(o) && (o.keep = !0, this.setAllParentsOk(o));
|
|
2367
|
+
}), this.filteredFlattenRows = this.flattenRows.filter(
|
|
2368
|
+
(o, i, s) => o.keep
|
|
2369
|
+
);
|
|
2370
|
+
}
|
|
2236
2371
|
}
|
|
2237
|
-
|
|
2238
|
-
|
|
2372
|
+
getPropertyValue(e, t) {
|
|
2373
|
+
const o = t.shift();
|
|
2374
|
+
let i = e[o];
|
|
2375
|
+
return i && t.length ? this.getPropertyValue(i, t) : i;
|
|
2239
2376
|
}
|
|
2240
|
-
|
|
2377
|
+
treeSort(e, t, o) {
|
|
2378
|
+
e.sort(this.genericTreeTableSortComparator(t, o));
|
|
2379
|
+
for (const i of e)
|
|
2380
|
+
i.children && this.treeSort(i.children, t, o);
|
|
2241
2381
|
}
|
|
2242
2382
|
}
|
|
2243
|
-
class
|
|
2383
|
+
class ie {
|
|
2244
2384
|
constructor(e = []) {
|
|
2245
2385
|
this.allRootNodes = e;
|
|
2246
2386
|
}
|
|
@@ -2300,39 +2440,12 @@ class Z {
|
|
|
2300
2440
|
o.checked && t.push(o), o.children && this.addSelectedRecursive(o.children, t);
|
|
2301
2441
|
}
|
|
2302
2442
|
}
|
|
2303
|
-
class
|
|
2443
|
+
class se {
|
|
2304
2444
|
constructor(e = 0, t = 0, o = 0, i = 0) {
|
|
2305
2445
|
this.top = e, this.right = t, this.bottom = o, this.left = i;
|
|
2306
2446
|
}
|
|
2307
2447
|
}
|
|
2308
|
-
class
|
|
2309
|
-
render(e, t, o, i, s, r, l) {
|
|
2310
|
-
if (s.isRowCheckable(t)) {
|
|
2311
|
-
l.addClass(e, "ge-table-row-checkbox-div");
|
|
2312
|
-
const n = s.isRowChecked(t), d = n === "full" ? "checked" : "", a = n === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
|
|
2313
|
-
e.innerHTML = `
|
|
2314
|
-
<input
|
|
2315
|
-
type="checkbox"
|
|
2316
|
-
data-area="${i}"
|
|
2317
|
-
data-row-index="${t}"
|
|
2318
|
-
data-col-index="${o}"
|
|
2319
|
-
data-input-type="checkbox"
|
|
2320
|
-
${d}
|
|
2321
|
-
class="ge-table-row-checkbox">
|
|
2322
|
-
${a} `;
|
|
2323
|
-
}
|
|
2324
|
-
}
|
|
2325
|
-
}
|
|
2326
|
-
class _e {
|
|
2327
|
-
constructor() {
|
|
2328
|
-
this.property = "CheckboxColumn", this.headerLabel = "", this.width = new f(50, "px"), this.minWidth = new f(50, "px"), this.maxWidth = new f(100, "px"), this.rendererMap = new k(new te(), new te(), void 0), this.classes = new k(
|
|
2329
|
-
[],
|
|
2330
|
-
["ge-table-text-align-left"],
|
|
2331
|
-
[]
|
|
2332
|
-
);
|
|
2333
|
-
}
|
|
2334
|
-
}
|
|
2335
|
-
class De {
|
|
2448
|
+
class We {
|
|
2336
2449
|
constructor() {
|
|
2337
2450
|
this.checkedRows = [];
|
|
2338
2451
|
}
|
|
@@ -2363,11 +2476,11 @@ class De {
|
|
|
2363
2476
|
}
|
|
2364
2477
|
}
|
|
2365
2478
|
}
|
|
2366
|
-
class
|
|
2367
|
-
constructor(e, t, o, i = 0, s = 0, r = !1, l = new P(), n = [], d = [], a = -1,
|
|
2479
|
+
class G {
|
|
2480
|
+
constructor(e, t, o, i = 0, s = 0, r = !1, l = new P(), n = [], d = [], a = -1, c = 0, g = 400, m = () => {
|
|
2368
2481
|
}) {
|
|
2369
2482
|
var b, w, u, p;
|
|
2370
|
-
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 = d, this.overridingColumnWidth = a, this.columnCount =
|
|
2483
|
+
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 = d, this.overridingColumnWidth = a, this.columnCount = c, this.parentSize = g, this.getSelectionModel = m, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new se(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 : (w = this.columnSizes) != null && w.length && (this.columnCount = (u = this.columnSizes) == null ? void 0 : u.length)), (p = this.columnDefs) != null && p.length && be(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new We());
|
|
2371
2484
|
}
|
|
2372
2485
|
init() {
|
|
2373
2486
|
this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
|
|
@@ -2396,7 +2509,7 @@ class z {
|
|
|
2396
2509
|
}
|
|
2397
2510
|
recalcPadding() {
|
|
2398
2511
|
const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), o = this.getAreaHeight("header"), i = this.getAreaHeight("footer");
|
|
2399
|
-
this.padding = new
|
|
2512
|
+
this.padding = new se(
|
|
2400
2513
|
o,
|
|
2401
2514
|
t,
|
|
2402
2515
|
i,
|
|
@@ -2526,9 +2639,9 @@ class z {
|
|
|
2526
2639
|
this.xPositions[t + 1] = this.getColumnWidth(t) + this.xPositions[t];
|
|
2527
2640
|
}
|
|
2528
2641
|
}
|
|
2529
|
-
class
|
|
2642
|
+
class Ge extends q {
|
|
2530
2643
|
constructor(e, t, o, i = []) {
|
|
2531
|
-
super(e, i, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = i, this.sorterService = new
|
|
2644
|
+
super(e, i, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = i, this.sorterService = new ue(), this.filteredRows = [...t], this.properties = i.map((s) => s.property);
|
|
2532
2645
|
}
|
|
2533
2646
|
getRowCount() {
|
|
2534
2647
|
var e;
|
|
@@ -2537,7 +2650,7 @@ class $e extends Y {
|
|
|
2537
2650
|
getValueAt(e, t) {
|
|
2538
2651
|
const o = this.properties[t];
|
|
2539
2652
|
let i = this.filteredRows[e];
|
|
2540
|
-
return i
|
|
2653
|
+
return O(i) && (i = i.data), i ? this.getValueByT(i, o) : "";
|
|
2541
2654
|
}
|
|
2542
2655
|
getFilteredRows() {
|
|
2543
2656
|
return this.filteredRows;
|
|
@@ -2579,7 +2692,7 @@ class $e extends Y {
|
|
|
2579
2692
|
return i && t.length ? this.getPropertyValue(i, t) : i;
|
|
2580
2693
|
}
|
|
2581
2694
|
}
|
|
2582
|
-
class
|
|
2695
|
+
class re extends Ge {
|
|
2583
2696
|
constructor(e, t, o, i) {
|
|
2584
2697
|
super(
|
|
2585
2698
|
e,
|
|
@@ -2589,107 +2702,9 @@ class oe extends $e {
|
|
|
2589
2702
|
), this.areaIdent = e, this.rows = t, this.columnDefs = o, this.defaultRowHeight = i;
|
|
2590
2703
|
}
|
|
2591
2704
|
}
|
|
2592
|
-
class
|
|
2593
|
-
render(e, t, o, i, s, r, l) {
|
|
2594
|
-
if (s.isEditable(t, o)) {
|
|
2595
|
-
l.addClass(e, "ge-table-row-input-div");
|
|
2596
|
-
const n = s.getValueAt(t, o);
|
|
2597
|
-
e.innerHTML = `
|
|
2598
|
-
<input
|
|
2599
|
-
type="text"
|
|
2600
|
-
value="${n}"
|
|
2601
|
-
autofocus
|
|
2602
|
-
onfocus="this.setSelectionRange(0, this.value.length)"
|
|
2603
|
-
data-listen="change"
|
|
2604
|
-
data-area="${i}"
|
|
2605
|
-
data-row-index="${t}"
|
|
2606
|
-
data-col-index="${o}"
|
|
2607
|
-
data-input-type="text"
|
|
2608
|
-
style="width:calc(100% - 8px);height:100%;border:0;padding:0 0 0 8px;"
|
|
2609
|
-
class="ge-table-cell-editor-input">`;
|
|
2610
|
-
}
|
|
2611
|
-
}
|
|
2612
|
-
}
|
|
2613
|
-
class Le {
|
|
2614
|
-
constructor(e = "none", t = "single") {
|
|
2615
|
-
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
|
|
2616
|
-
}
|
|
2617
|
-
getSelectionCount(e, t) {
|
|
2618
|
-
let o = 0;
|
|
2619
|
-
for (const i of this.ranges)
|
|
2620
|
-
i.isInRange(e, t) && o++;
|
|
2621
|
-
return this.allSelected && o++, this.isInNegativeRange(e, t) && (o = 0), o;
|
|
2622
|
-
}
|
|
2623
|
-
isInNegativeRange(e, t) {
|
|
2624
|
-
for (const o of this.negativeRanges)
|
|
2625
|
-
if (o.isInRange(e, t))
|
|
2626
|
-
return !0;
|
|
2627
|
-
return !1;
|
|
2628
|
-
}
|
|
2629
|
-
getRanges() {
|
|
2630
|
-
return this.ranges;
|
|
2631
|
-
}
|
|
2632
|
-
clear() {
|
|
2633
|
-
this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
|
|
2634
|
-
}
|
|
2635
|
-
hasSelection() {
|
|
2636
|
-
return !!this.ranges.length;
|
|
2637
|
-
}
|
|
2638
|
-
selectAll() {
|
|
2639
|
-
this.allSelected = !0;
|
|
2640
|
-
}
|
|
2641
|
-
addSelection(e) {
|
|
2642
|
-
this.addRange(e);
|
|
2643
|
-
}
|
|
2644
|
-
removeSelection(e) {
|
|
2645
|
-
if (this.selectionType === "none")
|
|
2646
|
-
return;
|
|
2647
|
-
let t = e;
|
|
2648
|
-
this.selectionType === "row" ? t = E.singleRow(e.r1) : this.selectionType === "column" && (t = E.singleColumn(e.c1)), this.negativeRanges.push(t);
|
|
2649
|
-
}
|
|
2650
|
-
togglePoint(e, t) {
|
|
2651
|
-
this.getSelectionCount(e, t) > 0 ? this.removeSelection(E.singleCell(e, t)) : this.addSelection(E.singleCell(e, t));
|
|
2652
|
-
}
|
|
2653
|
-
addRange(e) {
|
|
2654
|
-
this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e));
|
|
2655
|
-
}
|
|
2656
|
-
}
|
|
2657
|
-
class Oe {
|
|
2658
|
-
constructor(e = "none") {
|
|
2659
|
-
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1;
|
|
2660
|
-
}
|
|
2661
|
-
clearChanged() {
|
|
2662
|
-
this.changed = !1;
|
|
2663
|
-
}
|
|
2664
|
-
hasChanged() {
|
|
2665
|
-
return this.changed;
|
|
2666
|
-
}
|
|
2667
|
-
clear() {
|
|
2668
|
-
this.rowIndex = -1, this.columnIndex = -1;
|
|
2669
|
-
}
|
|
2670
|
-
setFocus(e, t) {
|
|
2671
|
-
(this.rowIndex !== e || this.columnIndex !== t) && (this.rowIndex = e, this.columnIndex = t, this.changed = !0);
|
|
2672
|
-
}
|
|
2673
|
-
hasFocus(e, t) {
|
|
2674
|
-
return this.rowIndex === e && this.columnIndex === t;
|
|
2675
|
-
}
|
|
2676
|
-
getFocus() {
|
|
2677
|
-
return [this.rowIndex, this.columnIndex];
|
|
2678
|
-
}
|
|
2679
|
-
}
|
|
2680
|
-
const Pe = new Le(), He = new Oe("cell");
|
|
2681
|
-
class ie {
|
|
2682
|
-
constructor() {
|
|
2683
|
-
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 = {
|
|
2684
|
-
header: 34,
|
|
2685
|
-
body: 34,
|
|
2686
|
-
footer: 34
|
|
2687
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new re(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new le(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new Fe(), this.getSelectionModel = () => Pe, this.getFocusModel = () => He;
|
|
2688
|
-
}
|
|
2689
|
-
}
|
|
2690
|
-
class O {
|
|
2705
|
+
class L {
|
|
2691
2706
|
static createTableModel(e) {
|
|
2692
|
-
var t, o, i, s, r, l, n, d, a,
|
|
2707
|
+
var t, o, i, s, r, l, n, d, a, c, g, m, b, w;
|
|
2693
2708
|
if (e.defaultRowHeights === void 0)
|
|
2694
2709
|
if ((t = e.tableOptions) != null && t.defaultRowHeights)
|
|
2695
2710
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
@@ -2707,7 +2722,7 @@ class O {
|
|
|
2707
2722
|
u > -1 && (e.defaultRowHeights.footer = u);
|
|
2708
2723
|
}
|
|
2709
2724
|
}
|
|
2710
|
-
if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((u) => new
|
|
2725
|
+
if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((u) => new H(u, u.toUpperCase(), te)) : (i = e.rows) != null && i.length ? e.columnDefs = Object.keys(e.rows[0]).map((u) => new H(u, u.toUpperCase(), te)) : 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 || ((d = e.headerData) != null && d.length ? e.headerAreaModel = new _(
|
|
2711
2726
|
"header",
|
|
2712
2727
|
e.headerData,
|
|
2713
2728
|
e.defaultRowHeights.header,
|
|
@@ -2717,23 +2732,23 @@ class O {
|
|
|
2717
2732
|
[e.columnDefs.map((u) => u.headerLabel)],
|
|
2718
2733
|
e.defaultRowHeights.header,
|
|
2719
2734
|
e.columnDefs
|
|
2720
|
-
) : e.headerAreaModel = new D("header")), e.footerAreaModel || ((
|
|
2735
|
+
) : e.headerAreaModel = new D("header")), e.footerAreaModel || ((c = e.footerData) != null && c.length ? e.footerAreaModel = new _(
|
|
2721
2736
|
"footer",
|
|
2722
2737
|
e.footerData,
|
|
2723
2738
|
e.defaultRowHeights.footer,
|
|
2724
2739
|
e.columnDefs
|
|
2725
2740
|
) : e.footerAreaModel = new D("footer")), !e.bodyAreaModel)
|
|
2726
2741
|
if (e.rows)
|
|
2727
|
-
if ((g = e.rows) != null && g.length && e.rows[0]
|
|
2742
|
+
if ((g = e.rows) != null && g.length && O(e.rows[0])) {
|
|
2728
2743
|
const u = e.rows;
|
|
2729
|
-
e.bodyAreaModel = new
|
|
2744
|
+
e.bodyAreaModel = new oe(
|
|
2730
2745
|
"body",
|
|
2731
2746
|
u,
|
|
2732
2747
|
e.defaultRowHeights.body,
|
|
2733
2748
|
e.columnDefs
|
|
2734
|
-
), (e.columnDefs[0].property === "CheckboxColumn" || (m = e.tableOptions) != null && m.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new
|
|
2749
|
+
), (e.columnDefs[0].property === "CheckboxColumn" || (m = e.tableOptions) != null && m.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new ie(u));
|
|
2735
2750
|
} else
|
|
2736
|
-
e.bodyAreaModel = new
|
|
2751
|
+
e.bodyAreaModel = new re(
|
|
2737
2752
|
"body",
|
|
2738
2753
|
e.rows,
|
|
2739
2754
|
e.columnDefs,
|
|
@@ -2745,7 +2760,7 @@ class O {
|
|
|
2745
2760
|
e.bodyData,
|
|
2746
2761
|
e.defaultRowHeights.body
|
|
2747
2762
|
) : e.bodyAreaModel = new D("body");
|
|
2748
|
-
return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((b = e.tableOptions) != null && b.getSelectionModel) && (e.getSelectionModel = (w = e.tableOptions) == null ? void 0 : w.getSelectionModel), new
|
|
2763
|
+
return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((b = e.tableOptions) != null && b.getSelectionModel) && (e.getSelectionModel = (w = e.tableOptions) == null ? void 0 : w.getSelectionModel), new G(
|
|
2749
2764
|
e.headerAreaModel,
|
|
2750
2765
|
e.bodyAreaModel,
|
|
2751
2766
|
e.footerAreaModel,
|
|
@@ -2762,24 +2777,24 @@ class O {
|
|
|
2762
2777
|
);
|
|
2763
2778
|
}
|
|
2764
2779
|
static buildByTypedRowsParam(e) {
|
|
2765
|
-
return
|
|
2780
|
+
return L.buildByTypedRows(
|
|
2766
2781
|
e.rows ?? [],
|
|
2767
2782
|
e.columnDefs,
|
|
2768
|
-
e.tableOptions ?? new
|
|
2783
|
+
e.tableOptions ?? new N(),
|
|
2769
2784
|
e.fixedLeftColumnCount ?? 0,
|
|
2770
2785
|
e.fixedRightColumnCount ?? 0
|
|
2771
2786
|
);
|
|
2772
2787
|
}
|
|
2773
|
-
static buildByTypedRows(e, t, o = new
|
|
2788
|
+
static buildByTypedRows(e, t, o = new N(), i = 0, s = 0) {
|
|
2774
2789
|
const r = o.defaultRowHeights, l = t[0].property === "CheckboxColumn";
|
|
2775
|
-
if (e != null && e.length && e[0]
|
|
2776
|
-
const n = e, d = new
|
|
2790
|
+
if (e != null && e.length && O(e[0])) {
|
|
2791
|
+
const n = e, d = new oe(
|
|
2777
2792
|
"body",
|
|
2778
2793
|
n,
|
|
2779
2794
|
r.body,
|
|
2780
2795
|
t
|
|
2781
2796
|
);
|
|
2782
|
-
return (l || o.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new
|
|
2797
|
+
return (l || o.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new ie(n)), L.createByAreaModelsParam({
|
|
2783
2798
|
headerAreaModel: new _("header", [t.map((a) => a.headerLabel)], r.header),
|
|
2784
2799
|
bodyAreaModel: d,
|
|
2785
2800
|
footerAreaModel: new _("footer", [], r.footer),
|
|
@@ -2793,7 +2808,7 @@ class O {
|
|
|
2793
2808
|
overridingColumnWidth: -1
|
|
2794
2809
|
});
|
|
2795
2810
|
}
|
|
2796
|
-
return
|
|
2811
|
+
return L.createByObjectArrayParam({
|
|
2797
2812
|
rows: e,
|
|
2798
2813
|
columnDefs: t,
|
|
2799
2814
|
fixedLeftColumnCount: i,
|
|
@@ -2803,7 +2818,7 @@ class O {
|
|
|
2803
2818
|
}
|
|
2804
2819
|
static createByObjectArrayParam(e) {
|
|
2805
2820
|
const t = e.rowCheckboxVisible !== void 0 ? e.rowCheckboxVisible : !1;
|
|
2806
|
-
return
|
|
2821
|
+
return L.createByObjectArray(
|
|
2807
2822
|
e.rows,
|
|
2808
2823
|
e.header ?? [],
|
|
2809
2824
|
e.footer ?? [],
|
|
@@ -2815,8 +2830,8 @@ class O {
|
|
|
2815
2830
|
e.columnSizes ?? []
|
|
2816
2831
|
);
|
|
2817
2832
|
}
|
|
2818
|
-
static createByAreaModels(e = new D(), t, o = new D(), i = 0, s = 0, r = !1, l = new P(), n, d = [], a = -1,
|
|
2819
|
-
return new
|
|
2833
|
+
static createByAreaModels(e = new D(), t, o = new D(), i = 0, s = 0, r = !1, l = new P(), n, d = [], a = -1, c) {
|
|
2834
|
+
return new G(
|
|
2820
2835
|
e,
|
|
2821
2836
|
t,
|
|
2822
2837
|
o,
|
|
@@ -2827,11 +2842,11 @@ class O {
|
|
|
2827
2842
|
n,
|
|
2828
2843
|
d,
|
|
2829
2844
|
a,
|
|
2830
|
-
|
|
2845
|
+
c
|
|
2831
2846
|
);
|
|
2832
2847
|
}
|
|
2833
2848
|
static createByAreaModelsParam(e) {
|
|
2834
|
-
return
|
|
2849
|
+
return L.createByAreaModels(
|
|
2835
2850
|
e.headerAreaModel ?? new D(),
|
|
2836
2851
|
e.bodyAreaModel,
|
|
2837
2852
|
e.footerAreaModel ?? new D(),
|
|
@@ -2848,11 +2863,11 @@ class O {
|
|
|
2848
2863
|
static createByObjectArray(e, t = [], o = [], i = 0, s = 0, r = !1, l = new P(), n, d = []) {
|
|
2849
2864
|
let a;
|
|
2850
2865
|
t != null && t.length ? a = new _("header", t, l.header, n) : n != null && n.length ? a = new _("header", [n.map((m) => m.headerLabel)], l.header, n) : a = new D();
|
|
2851
|
-
const
|
|
2852
|
-
return new
|
|
2866
|
+
const c = o ? new _("footer", o, l.footer, n) : new D(), g = new re("body", e, n, l.body);
|
|
2867
|
+
return new G(
|
|
2853
2868
|
a,
|
|
2854
2869
|
g,
|
|
2855
|
-
|
|
2870
|
+
c,
|
|
2856
2871
|
i,
|
|
2857
2872
|
s,
|
|
2858
2873
|
r,
|
|
@@ -2862,7 +2877,7 @@ class O {
|
|
|
2862
2877
|
);
|
|
2863
2878
|
}
|
|
2864
2879
|
}
|
|
2865
|
-
const
|
|
2880
|
+
const Rt = [
|
|
2866
2881
|
//"COPY_2_CLIPBOARD",
|
|
2867
2882
|
"START_EDITING",
|
|
2868
2883
|
"TOGGLE_SELECTION",
|
|
@@ -2880,17 +2895,17 @@ const yt = [
|
|
|
2880
2895
|
// "PAGEUP_PRESSED",
|
|
2881
2896
|
// "PAGEDOWN_PRESSED"
|
|
2882
2897
|
];
|
|
2883
|
-
class
|
|
2898
|
+
class At {
|
|
2884
2899
|
constructor(e, t) {
|
|
2885
2900
|
this.tableModel = e, this.tableOptions = t;
|
|
2886
2901
|
}
|
|
2887
2902
|
}
|
|
2888
|
-
class
|
|
2903
|
+
class ze {
|
|
2889
2904
|
constructor(e, t, o, i, s, r, l) {
|
|
2890
2905
|
this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = o, this.filter = i, this.sorting = s, this.startIndex = r, this.endIndex = l;
|
|
2891
2906
|
}
|
|
2892
2907
|
}
|
|
2893
|
-
class
|
|
2908
|
+
class Et extends ze {
|
|
2894
2909
|
constructor(e, t, o, i, s, r, l, n) {
|
|
2895
2910
|
super(
|
|
2896
2911
|
e,
|
|
@@ -2903,30 +2918,57 @@ class vt extends Ve {
|
|
|
2903
2918
|
), this.rows = n;
|
|
2904
2919
|
}
|
|
2905
2920
|
}
|
|
2906
|
-
class
|
|
2921
|
+
class Ne {
|
|
2907
2922
|
constructor(e, t) {
|
|
2908
2923
|
this.value = e, this.label = t;
|
|
2909
2924
|
}
|
|
2910
2925
|
}
|
|
2911
|
-
class
|
|
2926
|
+
class Mt {
|
|
2912
2927
|
constructor(e, t) {
|
|
2913
2928
|
this.index = e, this.px = t;
|
|
2914
2929
|
}
|
|
2915
2930
|
}
|
|
2916
|
-
const
|
|
2931
|
+
const It = { body: ["ge-table-text-align-left"] }, kt = { body: ["ge-table-text-align-center"] }, Tt = { body: ["ge-table-text-align-right"] }, _t = {
|
|
2917
2932
|
header: ["ge-table-text-align-left"],
|
|
2918
2933
|
body: ["ge-table-text-align-left"],
|
|
2919
2934
|
footer: ["ge-table-text-align-left"]
|
|
2920
|
-
},
|
|
2935
|
+
}, Dt = {
|
|
2921
2936
|
header: ["ge-table-text-align-center"],
|
|
2922
2937
|
body: ["ge-table-text-align-center"],
|
|
2923
2938
|
footer: ["ge-table-text-align-center"]
|
|
2924
|
-
},
|
|
2939
|
+
}, $t = {
|
|
2925
2940
|
header: ["ge-table-text-align-right"],
|
|
2926
2941
|
body: ["ge-table-text-align-right"],
|
|
2927
2942
|
footer: ["ge-table-text-align-right"]
|
|
2928
2943
|
};
|
|
2929
|
-
class
|
|
2944
|
+
class le {
|
|
2945
|
+
render(e, t, o, i, s, r, l) {
|
|
2946
|
+
if (s.isRowCheckable(t)) {
|
|
2947
|
+
l.addClass(e, "ge-table-row-checkbox-div");
|
|
2948
|
+
const n = s.isRowChecked(t), d = n === "full" ? "checked" : "", a = n === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
|
|
2949
|
+
e.innerHTML = `
|
|
2950
|
+
<input
|
|
2951
|
+
type="checkbox"
|
|
2952
|
+
data-area="${i}"
|
|
2953
|
+
data-row-index="${t}"
|
|
2954
|
+
data-col-index="${o}"
|
|
2955
|
+
data-input-type="checkbox"
|
|
2956
|
+
${d}
|
|
2957
|
+
class="ge-table-row-checkbox">
|
|
2958
|
+
${a} `;
|
|
2959
|
+
}
|
|
2960
|
+
}
|
|
2961
|
+
}
|
|
2962
|
+
class Ft {
|
|
2963
|
+
constructor() {
|
|
2964
|
+
this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new f(50, "px"), this.minWidth = new f(50, "px"), this.maxWidth = new f(100, "px"), this.rendererMap = new k(new le(), new le(), void 0), this.classes = new k(
|
|
2965
|
+
[],
|
|
2966
|
+
["ge-table-text-align-left"],
|
|
2967
|
+
[]
|
|
2968
|
+
);
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
class Lt {
|
|
2930
2972
|
static body(e) {
|
|
2931
2973
|
return new k(
|
|
2932
2974
|
void 0,
|
|
@@ -2935,17 +2977,17 @@ class _t {
|
|
|
2935
2977
|
);
|
|
2936
2978
|
}
|
|
2937
2979
|
}
|
|
2938
|
-
class
|
|
2980
|
+
class Ot {
|
|
2939
2981
|
constructor(e = "down", t) {
|
|
2940
2982
|
this.status = e, this.originalEvent = t;
|
|
2941
2983
|
}
|
|
2942
2984
|
}
|
|
2943
|
-
class
|
|
2985
|
+
class Pt {
|
|
2944
2986
|
constructor(e, t, o, i) {
|
|
2945
2987
|
this.area = e, this.rowIndex = t, this.columnIndex = o, this.value = i;
|
|
2946
2988
|
}
|
|
2947
2989
|
}
|
|
2948
|
-
class
|
|
2990
|
+
class Ht {
|
|
2949
2991
|
constructor() {
|
|
2950
2992
|
this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, o) => {
|
|
2951
2993
|
if (e && t && o.getRowId) {
|
|
@@ -2970,12 +3012,12 @@ class Ft {
|
|
|
2970
3012
|
};
|
|
2971
3013
|
}
|
|
2972
3014
|
}
|
|
2973
|
-
class
|
|
3015
|
+
class je {
|
|
2974
3016
|
constructor(e, t, o, i = !1, s = "normal", r = void 0) {
|
|
2975
3017
|
this.data = e, this.property = t, this.toggle = o, this.closed = i, this.visibility = s, this.children = r, this.impl = "CellGroup";
|
|
2976
3018
|
}
|
|
2977
3019
|
}
|
|
2978
|
-
class
|
|
3020
|
+
class Xe extends je {
|
|
2979
3021
|
constructor(e, t = 0, o = 0, i) {
|
|
2980
3022
|
super(
|
|
2981
3023
|
e.data,
|
|
@@ -3069,7 +3111,7 @@ class I {
|
|
|
3069
3111
|
static buildColumnDefs(e, t = []) {
|
|
3070
3112
|
for (const o of e)
|
|
3071
3113
|
o.property && t.push(
|
|
3072
|
-
|
|
3114
|
+
H.create({
|
|
3073
3115
|
property: o.property,
|
|
3074
3116
|
headerLabel: o.data ? o.data : o.property,
|
|
3075
3117
|
isVisible: () => typeof o.isVisible == "function" ? o.isVisible() : !0
|
|
@@ -3098,7 +3140,7 @@ class I {
|
|
|
3098
3140
|
static buildGroupExts(e, t = [], o = 0, i) {
|
|
3099
3141
|
let s;
|
|
3100
3142
|
for (let r = 0; r < e.length; r++) {
|
|
3101
|
-
const l = e[r], n = new
|
|
3143
|
+
const l = e[r], n = new Xe(l, o, r, i);
|
|
3102
3144
|
s && (n.leftNeighbour = s, s.rightNeighbour = n), t.push(n), l.children && (n.children = I.buildGroupExts(l.children, [], o + 1, n)), s = n;
|
|
3103
3145
|
}
|
|
3104
3146
|
return t;
|
|
@@ -3140,7 +3182,7 @@ class I {
|
|
|
3140
3182
|
e.push(i.data + " rowIndex:" + i.rowIndex), (o = i.children) != null && o.length && I.iterateThrowColumns(e, i.children);
|
|
3141
3183
|
}
|
|
3142
3184
|
}
|
|
3143
|
-
class
|
|
3185
|
+
class Vt {
|
|
3144
3186
|
constructor() {
|
|
3145
3187
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
3146
3188
|
}
|
|
@@ -3207,16 +3249,16 @@ class Lt {
|
|
|
3207
3249
|
return !1;
|
|
3208
3250
|
}
|
|
3209
3251
|
}
|
|
3210
|
-
class
|
|
3252
|
+
class Ye {
|
|
3211
3253
|
render(e, t, o, i, s, r, l) {
|
|
3212
3254
|
const n = r != null && r.data ? r.data : "";
|
|
3213
3255
|
e.innerHTML = `${n}`;
|
|
3214
3256
|
}
|
|
3215
3257
|
}
|
|
3216
|
-
class
|
|
3258
|
+
class Bt {
|
|
3217
3259
|
constructor(e = "header", t, o = [], i) {
|
|
3218
3260
|
var s;
|
|
3219
|
-
this.areaIdent = e, this.groups = t, this.columnDefs = o, this.defaultRowHeight = i, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new
|
|
3261
|
+
this.areaIdent = e, this.groups = t, this.columnDefs = o, this.defaultRowHeight = i, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new Ye(), this.groupExts = I.buildGroupExts(t), console.info(this.groupExts), console.info(this.getAllLeafs()), console.info(this.getMaxRowCount());
|
|
3220
3262
|
for (const r of this.groupExts)
|
|
3221
3263
|
r.log(this.getMaxRowCount());
|
|
3222
3264
|
this.arr = this.buildArray(), !((s = this.columnDefs) != null && s.length) && e === "header" && (this.columnDefs = I.buildColumnDefs(t)), console.info("this.columnDefs", this.columnDefs), console.info("this.arr", this.arr);
|
|
@@ -3311,48 +3353,24 @@ class Ot {
|
|
|
3311
3353
|
return !1;
|
|
3312
3354
|
}
|
|
3313
3355
|
}
|
|
3314
|
-
class
|
|
3315
|
-
setStyle(e, t, o) {
|
|
3316
|
-
return e.style[t] = o, e;
|
|
3317
|
-
}
|
|
3318
|
-
appendText(e, t) {
|
|
3319
|
-
const o = this.createText(t);
|
|
3320
|
-
return this.appendChild(e, o), o;
|
|
3321
|
-
}
|
|
3322
|
-
addClass(e, t) {
|
|
3323
|
-
return t.includes(" ") ? t.split(" ").forEach((o) => e.classList.add(o)) : e.classList.add(t), e;
|
|
3324
|
-
}
|
|
3325
|
-
appendChild(e, t) {
|
|
3326
|
-
e.appendChild(t);
|
|
3327
|
-
}
|
|
3328
|
-
createElement(e) {
|
|
3329
|
-
return document.createElement(e);
|
|
3330
|
-
}
|
|
3331
|
-
createText(e) {
|
|
3332
|
-
return document.createTextNode(e);
|
|
3333
|
-
}
|
|
3334
|
-
setAttribute(e, t, o) {
|
|
3335
|
-
e.setAttribute(t, o);
|
|
3336
|
-
}
|
|
3337
|
-
}
|
|
3338
|
-
class Ht {
|
|
3356
|
+
class Wt {
|
|
3339
3357
|
filterPredict(e, t, o = this.objectToString.bind(this)) {
|
|
3340
3358
|
if (!e)
|
|
3341
3359
|
return !1;
|
|
3342
3360
|
if (!t)
|
|
3343
3361
|
return !0;
|
|
3344
3362
|
t = t.toLowerCase();
|
|
3345
|
-
const i = "+", s = "-", r = t.toLowerCase().split(" ").filter((
|
|
3363
|
+
const i = "+", s = "-", r = t.toLowerCase().split(" ").filter((c) => c !== i && c !== s && c !== ""), l = r.filter((c) => !c.startsWith(i) && !c.startsWith(s)), n = r.filter((c) => c.startsWith(i)).map((c) => c.replace(/\+/g, "")), d = r.filter((c) => c.startsWith(s)).map((c) => c.replace(/-/g, ""));
|
|
3346
3364
|
let a = !l.length;
|
|
3347
|
-
for (let
|
|
3348
|
-
(a || o(e).includes(l[
|
|
3365
|
+
for (let c = 0; c < l.length; c++)
|
|
3366
|
+
(a || o(e).includes(l[c])) && (a = !0);
|
|
3349
3367
|
if (!a)
|
|
3350
3368
|
return !1;
|
|
3351
|
-
for (let
|
|
3352
|
-
if (!o(e).includes(n[
|
|
3369
|
+
for (let c = 0; c < n.length; c++)
|
|
3370
|
+
if (!o(e).includes(n[c]))
|
|
3353
3371
|
return !1;
|
|
3354
|
-
for (let
|
|
3355
|
-
if (o(e).includes(d[
|
|
3372
|
+
for (let c = 0; c < d.length; c++)
|
|
3373
|
+
if (o(e).includes(d[c]))
|
|
3356
3374
|
return !1;
|
|
3357
3375
|
return !0;
|
|
3358
3376
|
}
|
|
@@ -3364,10 +3382,10 @@ class Ht {
|
|
|
3364
3382
|
t = t.toLowerCase();
|
|
3365
3383
|
const i = "+", s = "-", r = t.toLowerCase().split(" ").filter((a) => a !== i && a !== s && a !== ""), l = r.filter((a) => !a.startsWith(i) && !a.startsWith(s)), n = r.filter((a) => a.startsWith(i)).map((a) => a.replace(/\+/g, "")), d = r.filter((a) => a.startsWith(s)).map((a) => a.replace(/-/g, ""));
|
|
3366
3384
|
return e == null ? void 0 : e.filter((a) => {
|
|
3367
|
-
let
|
|
3385
|
+
let c = !l.length;
|
|
3368
3386
|
for (let g = 0; g < l.length; g++)
|
|
3369
|
-
(
|
|
3370
|
-
if (!
|
|
3387
|
+
(c || o(a).includes(l[g])) && (c = !0);
|
|
3388
|
+
if (!c)
|
|
3371
3389
|
return !1;
|
|
3372
3390
|
for (let g = 0; g < n.length; g++)
|
|
3373
3391
|
if (!o(a).includes(n[g]))
|
|
@@ -3389,19 +3407,19 @@ class Ht {
|
|
|
3389
3407
|
return t.join(" ").toLowerCase();
|
|
3390
3408
|
}
|
|
3391
3409
|
}
|
|
3392
|
-
class
|
|
3410
|
+
class Gt {
|
|
3393
3411
|
static bodyRenderer(e) {
|
|
3394
3412
|
return new k(void 0, e, void 0);
|
|
3395
3413
|
}
|
|
3396
3414
|
}
|
|
3397
|
-
class
|
|
3415
|
+
class zt {
|
|
3398
3416
|
constructor(e, t = !0, o = !1) {
|
|
3399
3417
|
this.property = e, this.skipCheckableCheck = t, this.readonly = o;
|
|
3400
3418
|
}
|
|
3401
3419
|
render(e, t, o, i, s, r, l) {
|
|
3402
3420
|
if (this.readonly || this.skipCheckableCheck || s.isRowCheckable(t)) {
|
|
3403
3421
|
l.addClass(e, "ge-table-row-checkbox-div");
|
|
3404
|
-
const n = s.getRowByIndex(t), a = s.getValueByT(n, this.property) === !0 ? "checked" : "",
|
|
3422
|
+
const n = s.getRowByIndex(t), a = s.getValueByT(n, this.property) === !0 ? "checked" : "", c = this.readonly ? " readonly " : "";
|
|
3405
3423
|
if (l.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
|
|
3406
3424
|
<input
|
|
3407
3425
|
type="checkbox"
|
|
@@ -3411,7 +3429,7 @@ class Bt {
|
|
|
3411
3429
|
data-property-index="${this.property}"
|
|
3412
3430
|
data-input-type="checkbox"
|
|
3413
3431
|
${a}
|
|
3414
|
-
${
|
|
3432
|
+
${c}
|
|
3415
3433
|
class="ge-input-checkbox">`, !this.readonly) {
|
|
3416
3434
|
const g = e.querySelector(".ge-input-checkbox");
|
|
3417
3435
|
g && g.addEventListener("click", (m, b) => (n[this.property] = !n[this.property], !0));
|
|
@@ -3419,12 +3437,12 @@ class Bt {
|
|
|
3419
3437
|
}
|
|
3420
3438
|
}
|
|
3421
3439
|
}
|
|
3422
|
-
class
|
|
3440
|
+
class Nt {
|
|
3423
3441
|
render(e, t, o, i, s, r, l) {
|
|
3424
3442
|
r && (e.innerText = new Date(r).toISOString());
|
|
3425
3443
|
}
|
|
3426
3444
|
}
|
|
3427
|
-
class
|
|
3445
|
+
class jt {
|
|
3428
3446
|
constructor() {
|
|
3429
3447
|
this.formatter = new Intl.DateTimeFormat("de-DE", {
|
|
3430
3448
|
year: "numeric",
|
|
@@ -3447,27 +3465,27 @@ class Gt {
|
|
|
3447
3465
|
}
|
|
3448
3466
|
}
|
|
3449
3467
|
}
|
|
3450
|
-
class
|
|
3468
|
+
class Xt {
|
|
3451
3469
|
render(e, t, o, i, s, r, l) {
|
|
3452
3470
|
r && (e.innerText = new Date(r).toLocaleDateString());
|
|
3453
3471
|
}
|
|
3454
3472
|
}
|
|
3455
|
-
class
|
|
3473
|
+
class Yt {
|
|
3456
3474
|
render(e, t, o, i, s, r, l) {
|
|
3457
3475
|
r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
|
|
3458
3476
|
}
|
|
3459
3477
|
}
|
|
3460
|
-
class
|
|
3478
|
+
class Kt {
|
|
3461
3479
|
render(e, t, o, i, s, r, l) {
|
|
3462
3480
|
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 = "";
|
|
3463
3481
|
}
|
|
3464
3482
|
}
|
|
3465
|
-
class
|
|
3483
|
+
class Ut {
|
|
3466
3484
|
render(e, t, o, i, s, r, l) {
|
|
3467
3485
|
r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
|
|
3468
3486
|
}
|
|
3469
3487
|
}
|
|
3470
|
-
class
|
|
3488
|
+
class qt {
|
|
3471
3489
|
constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
3472
3490
|
this.min = e, this.max = t;
|
|
3473
3491
|
}
|
|
@@ -3475,7 +3493,7 @@ class Yt {
|
|
|
3475
3493
|
r && (e.innerText = r, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && l.addClass(e, "ge-cell-error"));
|
|
3476
3494
|
}
|
|
3477
3495
|
}
|
|
3478
|
-
class
|
|
3496
|
+
class Jt {
|
|
3479
3497
|
constructor(e) {
|
|
3480
3498
|
this.property = e;
|
|
3481
3499
|
}
|
|
@@ -3486,15 +3504,15 @@ class Kt {
|
|
|
3486
3504
|
const a = [];
|
|
3487
3505
|
for (let g = 0; g < d; g++)
|
|
3488
3506
|
a.push("★");
|
|
3489
|
-
const
|
|
3507
|
+
const c = a.join(" ");
|
|
3490
3508
|
e.innerHTML = `
|
|
3491
3509
|
<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%;">
|
|
3492
|
-
<div class="ge-table-label" data-row-index="${t}" data-col-index="${o}" data-area="${i}">${
|
|
3510
|
+
<div class="ge-table-label" data-row-index="${t}" data-col-index="${o}" data-area="${i}">${c}</div>
|
|
3493
3511
|
</div>`;
|
|
3494
3512
|
}
|
|
3495
3513
|
}
|
|
3496
3514
|
}
|
|
3497
|
-
class
|
|
3515
|
+
class Qt {
|
|
3498
3516
|
constructor(e, t = 100, o = !1) {
|
|
3499
3517
|
this.property = e, this.maxValue = t, this.labelVisible = o;
|
|
3500
3518
|
}
|
|
@@ -3502,13 +3520,13 @@ class Ut {
|
|
|
3502
3520
|
l.addClass(e, "ge-star-rating-div");
|
|
3503
3521
|
const n = s.getRowByIndex(t), d = +("" + s.getValueByT(n, this.property));
|
|
3504
3522
|
if (!isNaN(d)) {
|
|
3505
|
-
const a = d * 100 / this.maxValue,
|
|
3523
|
+
const a = d * 100 / this.maxValue, c = this.labelVisible ? Math.round(a) + "%" : "";
|
|
3506
3524
|
e.innerHTML = `
|
|
3507
3525
|
<div class="ge-table-label-div"
|
|
3508
3526
|
data-row-index="${t}"
|
|
3509
3527
|
data-col-index="${o}"
|
|
3510
3528
|
data-area="${i}"
|
|
3511
|
-
title="${
|
|
3529
|
+
title="${c}"
|
|
3512
3530
|
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
3513
3531
|
<div class="ge-table-progress-container"
|
|
3514
3532
|
style="width:100%;height:50%;padding:0;margin-top:6px;"
|
|
@@ -3526,16 +3544,16 @@ class Ut {
|
|
|
3526
3544
|
}
|
|
3527
3545
|
}
|
|
3528
3546
|
}
|
|
3529
|
-
const
|
|
3530
|
-
return
|
|
3547
|
+
const Zt = function(h, e, t) {
|
|
3548
|
+
return h ? Number(h) : "";
|
|
3531
3549
|
};
|
|
3532
|
-
class
|
|
3550
|
+
class ge {
|
|
3533
3551
|
constructor(e) {
|
|
3534
3552
|
this.options = e;
|
|
3535
3553
|
}
|
|
3536
3554
|
static create(e) {
|
|
3537
|
-
return new
|
|
3538
|
-
e.map((t) => new
|
|
3555
|
+
return new ge(
|
|
3556
|
+
e.map((t) => new Ne(t, t))
|
|
3539
3557
|
);
|
|
3540
3558
|
}
|
|
3541
3559
|
render(e, t, o, i, s, r, l) {
|
|
@@ -3543,9 +3561,9 @@ class de {
|
|
|
3543
3561
|
l.addClass(e, "ge-table-row-select-div");
|
|
3544
3562
|
const n = s.getValueAt(t, o);
|
|
3545
3563
|
let d = [];
|
|
3546
|
-
for (let
|
|
3547
|
-
const g =
|
|
3548
|
-
d.push(`<option value="${
|
|
3564
|
+
for (let c of this.options) {
|
|
3565
|
+
const g = c.value === n ? " selected " : "";
|
|
3566
|
+
d.push(`<option value="${c.value}" ${g}>${c.label}</option>`);
|
|
3549
3567
|
}
|
|
3550
3568
|
const a = d.join("");
|
|
3551
3569
|
e.innerHTML = `
|
|
@@ -3563,159 +3581,162 @@ class de {
|
|
|
3563
3581
|
}
|
|
3564
3582
|
}
|
|
3565
3583
|
}
|
|
3566
|
-
class
|
|
3584
|
+
class eo {
|
|
3567
3585
|
constructor(e, t, o) {
|
|
3568
3586
|
this.r = e, this.g = t, this.b = o;
|
|
3569
3587
|
}
|
|
3570
3588
|
}
|
|
3571
|
-
class
|
|
3589
|
+
class ne {
|
|
3572
3590
|
constructor(e, t, o, i) {
|
|
3573
3591
|
this.minValue = e, this.minColor = t, this.maxValue = o, this.maxColor = i;
|
|
3574
3592
|
}
|
|
3575
3593
|
}
|
|
3576
|
-
class
|
|
3594
|
+
class B {
|
|
3577
3595
|
static normalize(e, t, o, i = 0, s = 1) {
|
|
3578
3596
|
return (e - t) / (o - t) * (s - i) + i;
|
|
3579
3597
|
}
|
|
3580
3598
|
static getTwoColorGradientRGB(e, t) {
|
|
3581
|
-
const o =
|
|
3599
|
+
const o = B.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, d = r * o + t.minColor.b;
|
|
3582
3600
|
return `rgb(${Math.round(l)}, ${Math.round(n)}, ${Math.round(d)})`;
|
|
3583
3601
|
}
|
|
3584
3602
|
static getThreeColorGradientRGB(e, t) {
|
|
3585
|
-
return e < t.middleValue ?
|
|
3603
|
+
return e < t.middleValue ? B.getTwoColorGradientRGB(e, new ne(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? B.getTwoColorGradientRGB(e, new ne(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
|
|
3586
3604
|
}
|
|
3587
3605
|
}
|
|
3588
|
-
class
|
|
3606
|
+
class to {
|
|
3589
3607
|
constructor(e, t, o, i, s, r) {
|
|
3590
3608
|
this.minValue = e, this.minColor = t, this.middleValue = o, this.middleColor = i, this.maxValue = s, this.maxColor = r;
|
|
3591
3609
|
}
|
|
3592
3610
|
}
|
|
3593
3611
|
export {
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3612
|
+
q as AbstractAreaModel,
|
|
3613
|
+
Lt as AreaMapFactory,
|
|
3614
|
+
Vt as AreaModel,
|
|
3597
3615
|
_ as AreaModelArrayOfArrays,
|
|
3598
|
-
|
|
3616
|
+
Bt as AreaModelCellGroups,
|
|
3599
3617
|
D as AreaModelHidden,
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3618
|
+
re as AreaModelObjectArrayWithColumndefs,
|
|
3619
|
+
Ge as AreaModelObjectyArray,
|
|
3620
|
+
oe as AreaModelTree,
|
|
3603
3621
|
k as AreaObjectMap,
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3622
|
+
Ht as AutoRestoreOptions,
|
|
3623
|
+
je as CellGroup,
|
|
3624
|
+
Xe as CellGroupExt,
|
|
3625
|
+
Ye as CellGroupExtCellRenderer,
|
|
3608
3626
|
E as CellRange,
|
|
3609
3627
|
I as CellgroupFactory,
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3628
|
+
zt as CheckboxBooleanPropertyCellRenderer,
|
|
3629
|
+
le as CheckboxCellRenderer,
|
|
3630
|
+
Ft as CheckboxColumnDef,
|
|
3631
|
+
We as CheckboxModel,
|
|
3632
|
+
Et as ChunkData,
|
|
3633
|
+
Re as ColAndRowspanModel,
|
|
3634
|
+
xe as CollapsedExpandedData,
|
|
3635
|
+
eo as ColorRgb,
|
|
3636
|
+
H as ColumnDef,
|
|
3637
|
+
pe as ConvenienceDomService,
|
|
3638
|
+
ce as CssVars,
|
|
3639
|
+
jt as DateToIntlDDMMYYYYCellRenderer,
|
|
3640
|
+
Nt as DateToIsoCellRenderer,
|
|
3641
|
+
Xt as DateToLocaleDateCellRenderer,
|
|
3642
|
+
Ut as DateToTecCellRenderer,
|
|
3625
3643
|
P as DefaultRowHeights,
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3644
|
+
ve as EleScope,
|
|
3645
|
+
Q as EventAdapter,
|
|
3646
|
+
ee as FalseFn,
|
|
3629
3647
|
Oe as FocusModel,
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3648
|
+
Ie as GeCellIndices,
|
|
3649
|
+
B as GeCssColorUtil,
|
|
3650
|
+
Wt as GeFilterService,
|
|
3651
|
+
Ot as GeKeyEvent,
|
|
3634
3652
|
U as GeModelChangeEvent,
|
|
3635
|
-
|
|
3653
|
+
X as GeMouseEvent,
|
|
3636
3654
|
$ as GeoData,
|
|
3637
|
-
|
|
3638
|
-
|
|
3655
|
+
F as Icon,
|
|
3656
|
+
Mt as IndexAndPx,
|
|
3639
3657
|
Fe as InputCellRenderer,
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
|
|
3643
|
-
|
|
3644
|
-
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3658
|
+
Me as InputHandler,
|
|
3659
|
+
Yt as MaleFemaleToIconCellRenderer,
|
|
3660
|
+
me as MouseHandler,
|
|
3661
|
+
fe as MouseTargetData,
|
|
3662
|
+
qt as NumberCellRenderer,
|
|
3663
|
+
_e as OsxShortcutActionIdMapping,
|
|
3664
|
+
se as Padding,
|
|
3665
|
+
Qt as ProgressBarCellRenderer,
|
|
3666
|
+
Ae as RenderScope,
|
|
3667
|
+
Gt as Renderer,
|
|
3668
|
+
ze as RequestChunk,
|
|
3669
|
+
ge as SelectCellRenderer,
|
|
3652
3670
|
Le as SelectionModel,
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3671
|
+
ke as SelectionService,
|
|
3672
|
+
De as ShortcutService,
|
|
3673
|
+
$e as SimpleDomService,
|
|
3656
3674
|
f as Size,
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3662
|
-
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
|
|
3666
|
-
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3675
|
+
Ee as SortItem,
|
|
3676
|
+
de as SortedOptions,
|
|
3677
|
+
Jt as StarRatingCellRenderer,
|
|
3678
|
+
ye as StoreStateCollapsedExpandService,
|
|
3679
|
+
Se as StoreStateScrollPosService,
|
|
3680
|
+
Ce as StoreStateSortingService,
|
|
3681
|
+
we as TableApi,
|
|
3682
|
+
Pt as TableCellUpdateEvent,
|
|
3683
|
+
L as TableFactory,
|
|
3684
|
+
G as TableModel,
|
|
3685
|
+
At as TableModelAndOptions,
|
|
3686
|
+
N as TableOptions,
|
|
3687
|
+
he as TableScope,
|
|
3688
|
+
to as ThreeColorGradientArg,
|
|
3689
|
+
ie as TreeCheckboxModel,
|
|
3690
|
+
j as TreeFactory,
|
|
3691
|
+
ae as TreeOptions,
|
|
3692
|
+
Z as TreeRow,
|
|
3693
|
+
Be as TreeRowService,
|
|
3694
|
+
Kt as TrueFalseCellRenderer,
|
|
3695
|
+
Ve as TrueFn,
|
|
3696
|
+
ne as TwoColorGradientArg,
|
|
3697
|
+
Ne as ValueLabel,
|
|
3698
|
+
Te as WindowsShortcutActionIdMapping,
|
|
3699
|
+
Rt as actionIds,
|
|
3700
|
+
Dt as allCenter,
|
|
3701
|
+
_t as allLeft,
|
|
3702
|
+
$t as allRight,
|
|
3703
|
+
kt as bodyCenter,
|
|
3704
|
+
It as bodyLeft,
|
|
3705
|
+
Tt as bodyRight,
|
|
3706
|
+
Zt as editInputPipeForNumber,
|
|
3707
|
+
Y as getAreaIdentByString,
|
|
3708
|
+
z as isAreaModelTree,
|
|
3709
|
+
be as isCheckboxColumnDef,
|
|
3710
|
+
O as isTreeRow,
|
|
3711
|
+
vt as px0,
|
|
3712
|
+
Ct as px10,
|
|
3713
|
+
gt as px100,
|
|
3714
|
+
ut as px110,
|
|
3715
|
+
ct as px120,
|
|
3716
|
+
ht as px130,
|
|
3717
|
+
dt as px140,
|
|
3718
|
+
at as px150,
|
|
3719
|
+
nt as px160,
|
|
3720
|
+
lt as px170,
|
|
3721
|
+
rt as px180,
|
|
3722
|
+
st as px190,
|
|
3723
|
+
yt as px20,
|
|
3724
|
+
te as px200,
|
|
3725
|
+
it as px210,
|
|
3726
|
+
ot as px220,
|
|
3727
|
+
tt as px230,
|
|
3728
|
+
et as px240,
|
|
3729
|
+
Ze as px250,
|
|
3730
|
+
Qe as px260,
|
|
3731
|
+
Je as px270,
|
|
3732
|
+
qe as px280,
|
|
3733
|
+
Ue as px290,
|
|
3734
|
+
xt as px30,
|
|
3735
|
+
Ke as px300,
|
|
3736
|
+
St as px40,
|
|
3737
|
+
wt as px50,
|
|
3738
|
+
mt as px60,
|
|
3739
|
+
ft as px70,
|
|
3740
|
+
pt as px80,
|
|
3741
|
+
bt as px90
|
|
3721
3742
|
};
|