@guiexpert/table 1.1.60 → 1.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +26 -26
- package/index.d.ts +1 -0
- package/index.js +484 -439
- package/lib/table/action/shortcut-util.d.ts +2 -0
- package/lib/table/action/shortcut.service.d.ts +0 -2
- package/lib/table/table-scope.d.ts +1 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
function
|
|
1
|
+
function Bt(d, e = 500) {
|
|
2
2
|
let t = null, s = 0;
|
|
3
3
|
return function(...o) {
|
|
4
4
|
const i = Date.now(), r = e - (i - s);
|
|
5
|
-
r <= 0 ? (
|
|
6
|
-
|
|
5
|
+
r <= 0 ? (d.apply(this, o), s = i) : t || (t = window.setTimeout(() => {
|
|
6
|
+
d.apply(this, o), s = Date.now(), t = null;
|
|
7
7
|
}, r));
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Ge(d, e = 500) {
|
|
11
11
|
let t = null;
|
|
12
12
|
return function(...s) {
|
|
13
13
|
t && window.clearTimeout(t), t = window.setTimeout(() => {
|
|
14
|
-
|
|
14
|
+
d.apply(this, s), t = null;
|
|
15
15
|
}, e);
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Ht(d = 500) {
|
|
19
19
|
return function(e, t, s) {
|
|
20
20
|
let o = 0;
|
|
21
21
|
const i = s.value;
|
|
22
22
|
return s.value = function(...r) {
|
|
23
|
-
if (!(Date.now() - o <
|
|
23
|
+
if (!(Date.now() - o < d))
|
|
24
24
|
return o = Date.now(), i.apply(this, r);
|
|
25
25
|
}, s;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
class
|
|
28
|
+
const ke = "any", z = "undefined", De = "null", Pe = "string", ae = "number", ce = "boolean", Fe = "Array", j = "object", K = [De, z, ke];
|
|
29
|
+
class Le {
|
|
30
30
|
constructor(e) {
|
|
31
|
-
this.propertyName = e, this.type =
|
|
31
|
+
this.propertyName = e, this.type = ke;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
class te {
|
|
@@ -36,11 +36,6 @@ class te {
|
|
|
36
36
|
this.propertyName = e, this.type = z;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
class Ge {
|
|
40
|
-
constructor(e) {
|
|
41
|
-
this.propertyName = e, this.type = ke;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
39
|
class ze {
|
|
45
40
|
constructor(e) {
|
|
46
41
|
this.propertyName = e, this.type = De;
|
|
@@ -48,20 +43,25 @@ class ze {
|
|
|
48
43
|
}
|
|
49
44
|
class je {
|
|
50
45
|
constructor(e) {
|
|
51
|
-
this.propertyName = e, this.type =
|
|
46
|
+
this.propertyName = e, this.type = Pe;
|
|
52
47
|
}
|
|
53
48
|
}
|
|
54
49
|
class Ue {
|
|
50
|
+
constructor(e) {
|
|
51
|
+
this.propertyName = e, this.type = ae;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
class Ye {
|
|
55
55
|
constructor(e) {
|
|
56
56
|
this.propertyName = e, this.type = ce;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
class B {
|
|
60
60
|
constructor(e, t = []) {
|
|
61
|
-
this.propertyName = e, this.items = t, this.type =
|
|
61
|
+
this.propertyName = e, this.items = t, this.type = Fe;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
class
|
|
64
|
+
class Oe {
|
|
65
65
|
constructor(e, t = []) {
|
|
66
66
|
this.propertyName = e, this.types = t;
|
|
67
67
|
}
|
|
@@ -74,7 +74,7 @@ class D {
|
|
|
74
74
|
this.propertyName = e, this.className = t, this.properties = s, this.type = j;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
class
|
|
77
|
+
class Vt {
|
|
78
78
|
constructor() {
|
|
79
79
|
this.rootPropertyType = null, this.allowCustomRenderer = !0, this.bufCustomRenderer = [], this.LABEL_MAPPINGS = {
|
|
80
80
|
Id: "ID",
|
|
@@ -124,19 +124,19 @@ class Bt {
|
|
|
124
124
|
p && p instanceof D && (a = p.className);
|
|
125
125
|
}
|
|
126
126
|
const c = this.getReadableColumnLabel(l);
|
|
127
|
-
let
|
|
128
|
-
if (n.type ===
|
|
127
|
+
let h = 100, u = "", f = "ge-table-text-align-left";
|
|
128
|
+
if (n.type === Fe) {
|
|
129
129
|
if (this.allowCustomRenderer && a) {
|
|
130
130
|
const p = `${a}ArrayCellRenderer`;
|
|
131
131
|
u = ` bodyRenderer: new ${p}(),`, f = "", this.renderCumstomCellRenderer(a, p);
|
|
132
132
|
} else
|
|
133
133
|
u = " bodyRenderer: new SimpleArrayCellRenderer(),";
|
|
134
|
-
|
|
135
|
-
} else n.type === ae ? (u = " bodyRenderer: new NumberCellRenderer(),", f = "ge-table-text-align-right") : n.type === ce && (u = " bodyRenderer: new TrueFalseCellRenderer(),", f = "ge-table-text-align-center",
|
|
134
|
+
h = 250;
|
|
135
|
+
} else n.type === ae ? (u = " bodyRenderer: new NumberCellRenderer(),", f = "ge-table-text-align-right") : n.type === ce && (u = " bodyRenderer: new TrueFalseCellRenderer(),", f = "ge-table-text-align-center", h = 80);
|
|
136
136
|
e.push(` ColumnDef.create({
|
|
137
137
|
property: "${l}",
|
|
138
138
|
headerLabel: "${c}",
|
|
139
|
-
width: new Size(${
|
|
139
|
+
width: new Size(${h}, "px"),
|
|
140
140
|
bodyClasses: ["${f}"],
|
|
141
141
|
headerClasses: ["${f}"],`), u && e.push(u), e.push(" }),");
|
|
142
142
|
}
|
|
@@ -260,9 +260,9 @@ class be {
|
|
|
260
260
|
return s;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
class
|
|
263
|
+
class Ke {
|
|
264
264
|
constructor() {
|
|
265
|
-
this.property = "", this.value = "", this.path = "", this.propertyItem = new
|
|
265
|
+
this.property = "", this.value = "", this.path = "", this.propertyItem = new Oe("", [new Le("")]);
|
|
266
266
|
}
|
|
267
267
|
toString() {
|
|
268
268
|
var e;
|
|
@@ -270,22 +270,22 @@ class Ye {
|
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
272
|
const ye = "Entity";
|
|
273
|
-
function
|
|
274
|
-
let e =
|
|
273
|
+
function Xe(d) {
|
|
274
|
+
let e = Je(qe(d));
|
|
275
275
|
return e.includes(ye) || (e = e + ye), e;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
if (!
|
|
277
|
+
function Je(d) {
|
|
278
|
+
if (!d || d.length === 0) return d;
|
|
279
279
|
const e = ["Array", "Arr", "List", "s"];
|
|
280
280
|
for (const t of e)
|
|
281
|
-
if (
|
|
282
|
-
return
|
|
283
|
-
return
|
|
281
|
+
if (d.endsWith(t))
|
|
282
|
+
return d.slice(0, -t.length);
|
|
283
|
+
return d;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
286
|
-
return !
|
|
285
|
+
function qe(d) {
|
|
286
|
+
return !d || d.length === 0 ? "" : d[0].toUpperCase() + d.slice(1);
|
|
287
287
|
}
|
|
288
|
-
class
|
|
288
|
+
class Wt {
|
|
289
289
|
constructor() {
|
|
290
290
|
this.debugging = !1;
|
|
291
291
|
}
|
|
@@ -527,7 +527,7 @@ class Ht {
|
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
return t || new
|
|
530
|
+
return t || new Le("");
|
|
531
531
|
}
|
|
532
532
|
logValueInfos(e) {
|
|
533
533
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -557,7 +557,7 @@ class Ht {
|
|
|
557
557
|
const l = this.getFirstValueInfoByPath(e, n);
|
|
558
558
|
if (Array.isArray(l == null ? void 0 : l.value)) {
|
|
559
559
|
const a = (l == null ? void 0 : l.value.length) ?? 0, c = this.countPath(e, i.path);
|
|
560
|
-
a > c && (i.propertyItem.types.some((
|
|
560
|
+
a > c && (i.propertyItem.types.some((h) => h.type === z) || i.propertyItem.types.push(new te(i.property)));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
}
|
|
@@ -578,15 +578,15 @@ class Ht {
|
|
|
578
578
|
}
|
|
579
579
|
extractValueInfos(e, t) {
|
|
580
580
|
const s = [], o = (i, r, n) => {
|
|
581
|
-
const l = new
|
|
581
|
+
const l = new Ke();
|
|
582
582
|
let a = r.split("/").pop() || "";
|
|
583
583
|
if (a === "[]" ? a = n : a === "root" && (a = t), l.property = a, l.value = i, l.path = r, l.propertyItem = this.createPropertyItem(i, l.property), s.push(l), i && typeof i === j && !Array.isArray(i)) {
|
|
584
584
|
for (const c in i)
|
|
585
585
|
if (i.hasOwnProperty(c)) {
|
|
586
|
-
const
|
|
587
|
-
o(i[c],
|
|
586
|
+
const h = r ? `${r}/${c}` : c;
|
|
587
|
+
o(i[c], h, a);
|
|
588
588
|
}
|
|
589
|
-
} else Array.isArray(i) && i.forEach((c,
|
|
589
|
+
} else Array.isArray(i) && i.forEach((c, h) => {
|
|
590
590
|
const u = `${r}/[]`;
|
|
591
591
|
o(c, u, a);
|
|
592
592
|
});
|
|
@@ -594,15 +594,15 @@ class Ht {
|
|
|
594
594
|
return o(e, "root", t), s.sort((i, r) => i.path.localeCompare(r.path));
|
|
595
595
|
}
|
|
596
596
|
createPropertyItem(e, t) {
|
|
597
|
-
return new
|
|
597
|
+
return new Oe(t, [
|
|
598
598
|
this.createPropertyType(e, t)
|
|
599
599
|
]);
|
|
600
600
|
}
|
|
601
601
|
createPropertyType(e, t) {
|
|
602
|
-
return e === null ? new
|
|
602
|
+
return e === null ? new ze(t) : e === void 0 ? new te(t) : typeof e === Pe ? new je(t) : typeof e === ae && !isNaN(e) ? new Ue(t) : typeof e === ce ? new Ye(t) : Array.isArray(e) ? new B(t) : typeof e === j ? new D(t, Xe(t)) : new te(t);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
class
|
|
605
|
+
class Nt {
|
|
606
606
|
constructor() {
|
|
607
607
|
this.orOperator = "|", this.rootPropertyType = null, this.rootName = "Root", this.renderTypeScriptInterfacesFifo = [], this.renderTypeScriptInterfacesDone = [];
|
|
608
608
|
}
|
|
@@ -692,18 +692,18 @@ class V {
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function N(
|
|
696
|
-
return
|
|
695
|
+
function N(d) {
|
|
696
|
+
return d && d.type === "TreeRow";
|
|
697
697
|
}
|
|
698
|
-
function ie(
|
|
699
|
-
return
|
|
698
|
+
function ie(d) {
|
|
699
|
+
return d && d.type === "AreaModelTree";
|
|
700
700
|
}
|
|
701
|
-
function
|
|
702
|
-
return
|
|
701
|
+
function Ze(d) {
|
|
702
|
+
return d && d.type === "CheckboxColumnDef";
|
|
703
703
|
}
|
|
704
704
|
class de {
|
|
705
|
-
constructor(e = -1, t = -1, s = -1, o = -1, i, r, n, l = 0, a = 0, c = 0,
|
|
706
|
-
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = n, this.clickCount = l, this.draggingX = a, this.draggingY = c, this.action =
|
|
705
|
+
constructor(e = -1, t = -1, s = -1, o = -1, i, r, n, l = 0, a = 0, c = 0, h = "") {
|
|
706
|
+
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = n, this.clickCount = l, this.draggingX = a, this.draggingY = c, this.action = h;
|
|
707
707
|
}
|
|
708
708
|
clone() {
|
|
709
709
|
return new de(
|
|
@@ -726,7 +726,7 @@ class O {
|
|
|
726
726
|
this.content = e, this.style = t, this.classes = s;
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
class
|
|
729
|
+
class $e {
|
|
730
730
|
constructor(e = new O(
|
|
731
731
|
">",
|
|
732
732
|
"transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
|
|
@@ -747,12 +747,12 @@ class Oe {
|
|
|
747
747
|
this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
class
|
|
750
|
+
class _e {
|
|
751
751
|
constructor(e = new O("↑", "", ["ge-header-sorted-asc"]), t = new O("↓", "", ["ge-header-sorted-desc"]), s = new O("↑", "color:transparent;", [])) {
|
|
752
752
|
this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
class
|
|
755
|
+
class Qe {
|
|
756
756
|
constructor(e) {
|
|
757
757
|
this.domService = e;
|
|
758
758
|
}
|
|
@@ -838,10 +838,10 @@ class Ze {
|
|
|
838
838
|
return this.domService.appendChild(e.child, l), l;
|
|
839
839
|
}
|
|
840
840
|
addColumnDiv(e) {
|
|
841
|
-
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: n, text: l = "", treeArrow: a, tableOptions: c, checkedType:
|
|
841
|
+
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: n, text: l = "", treeArrow: a, tableOptions: c, checkedType: h = void 0, sortState: u } = e, f = c == null ? void 0 : c.treeOptions, p = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, m = this.domService.createElement("div");
|
|
842
842
|
this.domService.addClass(m, "ge-table-col-div"), p && this.domService.addClass(m, "ge-with-checkbox"), this.domService.addClass(m, `ge-table-col-div-${s.index}`), this.domService.setAttribute(m, "data-col-index", `${s.index}`), this.domService.setAttribute(m, "data-row-index", `${o}`), this.domService.setAttribute(m, "data-area", `${r}`);
|
|
843
843
|
const g = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
844
|
-
if (r === "body" && n === "center" && this.domService.addClass(m, `ge-table-column-${g}`), this.domService.setStyle(m, "display", "clip"), this.domService.setStyle(m, "position", "absolute"), this.domService.setStyle(m, "left", `${s.left}px`), this.domService.setStyle(m, "top", `${s.top}px`), this.domService.setStyle(m, "width", `${s.width}px`), this.domService.setStyle(m, "height", `${s.height}px`), a && a !== "none" && (this.domService.addClass(m, "ge-table-col-tree"), this.addArrowDiv(m, a, f, o, i, r)), p && i === 0 &&
|
|
844
|
+
if (r === "body" && n === "center" && this.domService.addClass(m, `ge-table-column-${g}`), this.domService.setStyle(m, "display", "clip"), this.domService.setStyle(m, "position", "absolute"), this.domService.setStyle(m, "left", `${s.left}px`), this.domService.setStyle(m, "top", `${s.top}px`), this.domService.setStyle(m, "width", `${s.width}px`), this.domService.setStyle(m, "height", `${s.height}px`), a && a !== "none" && (this.domService.addClass(m, "ge-table-col-tree"), this.addArrowDiv(m, a, f, o, i, r)), p && i === 0 && h && this.addCheckboxToDiv(m, h, r, o), l) {
|
|
845
845
|
const b = a !== "none" && i === 0;
|
|
846
846
|
this.addLabelDiv(m, l, b, o, i, r);
|
|
847
847
|
}
|
|
@@ -872,7 +872,7 @@ class Ze {
|
|
|
872
872
|
}
|
|
873
873
|
return this.domService.appendChild(e, n), n;
|
|
874
874
|
}
|
|
875
|
-
addSortedIcon(e, t = "", s = new
|
|
875
|
+
addSortedIcon(e, t = "", s = new _e(), o = -1) {
|
|
876
876
|
const i = this.domService.createElement("div");
|
|
877
877
|
this.domService.addClass(i, "ge-table-sorted-icon-div"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "top", "0"), this.domService.setStyle(i, "right", "0"), this.domService.setStyle(i, "width", "20px"), this.domService.setStyle(i, "background", "transparent"), this.domService.setStyle(i, "cursor", "pointer"), this.domService.setAttribute(i, "data-col-index", `${o}`), this.domService.setAttribute(i, "data-area", "header");
|
|
878
878
|
let r;
|
|
@@ -883,15 +883,15 @@ class Ze {
|
|
|
883
883
|
this.domService.addClass(i, a);
|
|
884
884
|
return this.domService.appendChild(e, i), i;
|
|
885
885
|
}
|
|
886
|
-
addArrowDiv(e, t = "none", s = new
|
|
886
|
+
addArrowDiv(e, t = "none", s = new $e(), o = -1, i = -1, r = "body") {
|
|
887
887
|
const n = this.domService.createElement("div");
|
|
888
888
|
this.domService.addClass(n, "ge-table-tree-arrow-div"), this.domService.setStyle(n, "display", "inline-block"), this.domService.setStyle(n, "position", ""), this.domService.setStyle(n, "width", "20px"), this.domService.setStyle(n, "background", "transparent"), this.domService.setStyle(n, "cursor", "pointer"), this.domService.setAttribute(n, "data-row-index", `${o}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`);
|
|
889
889
|
let l;
|
|
890
890
|
t === "expanded" ? l = s.arrowExpanded : t === "collapsed" ? l = s.arrowCollapsed : l = s.arrowPlaceholder;
|
|
891
891
|
const a = l.content, c = this.domService.createText(a);
|
|
892
892
|
this.domService.appendChild(n, c), l.style && this.applyStyleString(n, l.style);
|
|
893
|
-
for (const
|
|
894
|
-
this.domService.addClass(n,
|
|
893
|
+
for (const h of l.classes)
|
|
894
|
+
this.domService.addClass(n, h);
|
|
895
895
|
return this.domService.appendChild(e, n), n;
|
|
896
896
|
}
|
|
897
897
|
addColumnBorderDivs(e, t, s, o, i) {
|
|
@@ -934,8 +934,8 @@ class Ze {
|
|
|
934
934
|
return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
|
-
const Q = (
|
|
938
|
-
class
|
|
937
|
+
const Q = (d) => d === "header" ? "header" : d === "footer" ? "footer" : "body";
|
|
938
|
+
class et {
|
|
939
939
|
constructor(e, t) {
|
|
940
940
|
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)) {
|
|
941
941
|
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"));
|
|
@@ -947,7 +947,7 @@ class Qe {
|
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
|
-
class
|
|
950
|
+
class tt {
|
|
951
951
|
constructor(e) {
|
|
952
952
|
this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
|
|
953
953
|
(t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
|
|
@@ -977,7 +977,7 @@ class et {
|
|
|
977
977
|
if (t - this.lastClicked < this.doubleClickDelay)
|
|
978
978
|
return;
|
|
979
979
|
this.lastClicked = t;
|
|
980
|
-
const s = new
|
|
980
|
+
const s = new et(e.target, this.tableScope);
|
|
981
981
|
if (s.action === "toggleExpandCollapseAll")
|
|
982
982
|
this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
|
|
983
983
|
else if (s.action === "toggleHeaderGroup")
|
|
@@ -1042,8 +1042,8 @@ class et {
|
|
|
1042
1042
|
var s, o, i, r, n;
|
|
1043
1043
|
const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
|
|
1044
1044
|
if (t) {
|
|
1045
|
-
const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, a = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded, c = l === "collapsed" && e.expanded || l === "expanded" && !e.expanded,
|
|
1046
|
-
a ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(
|
|
1045
|
+
const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, a = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded, c = l === "collapsed" && e.expanded || l === "expanded" && !e.expanded, h = t(e.data);
|
|
1046
|
+
a ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : c && ((n = this.tableScope.storeStateCollapsedExpandService) == null || n.collapsedStateIdsRemove(h));
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
getArrowColumnIndex() {
|
|
@@ -1175,7 +1175,7 @@ class he {
|
|
|
1175
1175
|
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
1176
1176
|
}
|
|
1177
1177
|
}
|
|
1178
|
-
class
|
|
1178
|
+
class Be {
|
|
1179
1179
|
genericSortComparator(e, t, s) {
|
|
1180
1180
|
if (typeof e == "number" && typeof t == "number")
|
|
1181
1181
|
return s * (e - t);
|
|
@@ -1193,9 +1193,9 @@ class _e {
|
|
|
1193
1193
|
return s * ("" + e).localeCompare("" + t);
|
|
1194
1194
|
}
|
|
1195
1195
|
}
|
|
1196
|
-
class
|
|
1196
|
+
class He extends he {
|
|
1197
1197
|
constructor(e, t, s, o = []) {
|
|
1198
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new
|
|
1198
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new Be(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
|
|
1199
1199
|
}
|
|
1200
1200
|
setRows(e) {
|
|
1201
1201
|
this.rows = e, this.filteredRows = [...e];
|
|
@@ -1252,7 +1252,7 @@ class Be extends he {
|
|
|
1252
1252
|
return o && t.length ? this.getPropertyValue(o, t) : o;
|
|
1253
1253
|
}
|
|
1254
1254
|
}
|
|
1255
|
-
class
|
|
1255
|
+
class st {
|
|
1256
1256
|
constructor(e) {
|
|
1257
1257
|
this.tableScope = e;
|
|
1258
1258
|
}
|
|
@@ -1443,8 +1443,8 @@ class tt {
|
|
|
1443
1443
|
for (let a = 0; a < l; a++) {
|
|
1444
1444
|
const c = [];
|
|
1445
1445
|
s.push(c);
|
|
1446
|
-
for (let
|
|
1447
|
-
c.push(n.getValueAt(a,
|
|
1446
|
+
for (let h = 0; h < o; h++)
|
|
1447
|
+
c.push(n.getValueAt(a, h));
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
@@ -1483,7 +1483,7 @@ class tt {
|
|
|
1483
1483
|
}
|
|
1484
1484
|
setRows(e) {
|
|
1485
1485
|
const t = this.getBodyModel();
|
|
1486
|
-
t instanceof
|
|
1486
|
+
t instanceof He ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t);
|
|
1487
1487
|
}
|
|
1488
1488
|
reSort() {
|
|
1489
1489
|
this.tableScope.reSort();
|
|
@@ -1556,7 +1556,7 @@ class ue {
|
|
|
1556
1556
|
// }
|
|
1557
1557
|
// }
|
|
1558
1558
|
}
|
|
1559
|
-
class
|
|
1559
|
+
class ot extends ue {
|
|
1560
1560
|
constructor(e) {
|
|
1561
1561
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
1562
1562
|
}
|
|
@@ -1578,14 +1578,14 @@ class st extends ue {
|
|
|
1578
1578
|
}
|
|
1579
1579
|
}
|
|
1580
1580
|
}
|
|
1581
|
-
class
|
|
1581
|
+
class it {
|
|
1582
1582
|
constructor(e = "collapsed", t = [], s = !1, o = !1) {
|
|
1583
1583
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
1584
1584
|
}
|
|
1585
1585
|
}
|
|
1586
|
-
class
|
|
1586
|
+
class rt extends ue {
|
|
1587
1587
|
constructor(e) {
|
|
1588
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
1588
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new it(), this.load();
|
|
1589
1589
|
}
|
|
1590
1590
|
collapsedExpandedStateGet() {
|
|
1591
1591
|
return this.collapsedExpandedState;
|
|
@@ -1617,7 +1617,7 @@ class it extends ue {
|
|
|
1617
1617
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
1620
|
-
class
|
|
1620
|
+
class nt extends ue {
|
|
1621
1621
|
constructor(e) {
|
|
1622
1622
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
1623
1623
|
}
|
|
@@ -1643,7 +1643,7 @@ class L {
|
|
|
1643
1643
|
this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
|
|
1644
1644
|
}
|
|
1645
1645
|
}
|
|
1646
|
-
class
|
|
1646
|
+
class lt {
|
|
1647
1647
|
constructor(e, t, s, o) {
|
|
1648
1648
|
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new L(), this.areaBodyCenterGeo = new L(), this.areaBodyEastGeo = new L();
|
|
1649
1649
|
const i = this.hostElement;
|
|
@@ -1849,7 +1849,7 @@ class R {
|
|
|
1849
1849
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
1850
1850
|
}
|
|
1851
1851
|
}
|
|
1852
|
-
class
|
|
1852
|
+
class at {
|
|
1853
1853
|
constructor(e, t) {
|
|
1854
1854
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
1855
1855
|
}
|
|
@@ -1887,7 +1887,7 @@ class I {
|
|
|
1887
1887
|
this.header = e, this.body = t, this.footer = s;
|
|
1888
1888
|
}
|
|
1889
1889
|
}
|
|
1890
|
-
class
|
|
1890
|
+
class ct extends lt {
|
|
1891
1891
|
constructor(e, t, s, o) {
|
|
1892
1892
|
var r, n;
|
|
1893
1893
|
super(e, t, s, o), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
|
|
@@ -1897,7 +1897,7 @@ class at extends nt {
|
|
|
1897
1897
|
}, this.tree = !1, this.colAndRowspanModels = new I(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (n = this.tableOptions) != null && n.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), ie(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
1898
1898
|
(l) => {
|
|
1899
1899
|
var a;
|
|
1900
|
-
this.colAndRowspanModels[l] = new
|
|
1900
|
+
this.colAndRowspanModels[l] = new at(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
|
|
1901
1901
|
}
|
|
1902
1902
|
);
|
|
1903
1903
|
}
|
|
@@ -2038,9 +2038,9 @@ class at extends nt {
|
|
|
2038
2038
|
if (l) {
|
|
2039
2039
|
let a;
|
|
2040
2040
|
const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
2041
|
-
let
|
|
2042
|
-
if (c ?
|
|
2043
|
-
a =
|
|
2041
|
+
let h;
|
|
2042
|
+
if (c ? h = this.editorRenderer : h = r.getCellRenderer(t, s), l.innerText = "", this.applyCssClasses(l, i), h)
|
|
2043
|
+
a = h.render(l, t, s, e, r, o, this.dom.domService), a && this.cleanupFunctions[e].push(a);
|
|
2044
2044
|
else {
|
|
2045
2045
|
const p = `${o}`;
|
|
2046
2046
|
this.dom.addLabelDiv(l, p, !1, t, s, e);
|
|
@@ -2151,15 +2151,15 @@ class at extends nt {
|
|
|
2151
2151
|
var g;
|
|
2152
2152
|
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
2153
2153
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
2154
|
-
const n = 0, l = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e),
|
|
2154
|
+
const n = 0, l = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
|
|
2155
2155
|
for (; this.cleanupFunctions[e].length; ) {
|
|
2156
2156
|
const b = this.cleanupFunctions[e].shift();
|
|
2157
2157
|
b && b();
|
|
2158
2158
|
}
|
|
2159
2159
|
let u = t;
|
|
2160
2160
|
const f = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), m = this.tableModel.getFixedLeftColumnCount();
|
|
2161
|
-
for (let b = 0; b <
|
|
2162
|
-
const x = u, S = b ===
|
|
2161
|
+
for (let b = 0; b < h; b++) {
|
|
2162
|
+
const x = u, S = b === h - 1, A = this.tableModel.getRowHeight(e, b);
|
|
2163
2163
|
if (x + A > 0) {
|
|
2164
2164
|
this.firstVisibleRowIndex = b;
|
|
2165
2165
|
let C = { left: n, width: l, height: A, top: x, index: b }, w = this.dom.addRowDiv(o, C, b, e, "center");
|
|
@@ -2197,7 +2197,7 @@ class at extends nt {
|
|
|
2197
2197
|
columnIndexEnd: f - 1,
|
|
2198
2198
|
verticalFixed: !0,
|
|
2199
2199
|
lastRowOfModel: S
|
|
2200
|
-
})), e === "header" && this.tree && b ===
|
|
2200
|
+
})), e === "header" && this.tree && b === h - 1) {
|
|
2201
2201
|
const E = this.dom.applyStyle(
|
|
2202
2202
|
this.dom.setAttribute(
|
|
2203
2203
|
this.dom.addDiv(w, new L(16, 20, 20, 8)),
|
|
@@ -2246,7 +2246,7 @@ class at extends nt {
|
|
|
2246
2246
|
const n = s + this.getRowHeights(0, e.r1 - 1, o).reduce((g, b) => g + b, 0), l = this.tableModel.getColumnCount(), a = this.tableModel.getFixedRightColumnCount();
|
|
2247
2247
|
let c = 0;
|
|
2248
2248
|
a > 0 && e.c1 >= l - a && (c = l - a);
|
|
2249
|
-
const
|
|
2249
|
+
const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((g, b) => g + b, 0), u = this.getRowHeights(e.r1, e.r2, o).reduce((g, b) => g + b, 0), f = this.getColumnWidths(e.c1, e.c2).reduce((g, b) => g + b, 0);
|
|
2250
2250
|
let p = !1;
|
|
2251
2251
|
const m = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
2252
2252
|
m && (p = m.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
@@ -2255,7 +2255,7 @@ class at extends nt {
|
|
|
2255
2255
|
sideIdent: r,
|
|
2256
2256
|
rowIndex: e.r1,
|
|
2257
2257
|
columnIndex: e.c1,
|
|
2258
|
-
left:
|
|
2258
|
+
left: h,
|
|
2259
2259
|
top: n,
|
|
2260
2260
|
width: f,
|
|
2261
2261
|
height: u,
|
|
@@ -2269,7 +2269,7 @@ class at extends nt {
|
|
|
2269
2269
|
sideIdent: r,
|
|
2270
2270
|
rowIndex: e.r1,
|
|
2271
2271
|
columnIndex: e.c1,
|
|
2272
|
-
left:
|
|
2272
|
+
left: h,
|
|
2273
2273
|
top: n,
|
|
2274
2274
|
width: f,
|
|
2275
2275
|
height: u,
|
|
@@ -2280,7 +2280,7 @@ class at extends nt {
|
|
|
2280
2280
|
}), o.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
2281
2281
|
rowIndex: e.r1,
|
|
2282
2282
|
columnIndex: e.c1,
|
|
2283
|
-
cellLeft:
|
|
2283
|
+
cellLeft: h,
|
|
2284
2284
|
cellTop: n,
|
|
2285
2285
|
cellWidth: f,
|
|
2286
2286
|
cellHeight: u,
|
|
@@ -2328,13 +2328,13 @@ class at extends nt {
|
|
|
2328
2328
|
}) {
|
|
2329
2329
|
var m;
|
|
2330
2330
|
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
2331
|
-
let
|
|
2331
|
+
let h = 0;
|
|
2332
2332
|
if (!a) {
|
|
2333
2333
|
const g = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
2334
|
-
|
|
2334
|
+
h = this.scrollFactorX * g;
|
|
2335
2335
|
}
|
|
2336
2336
|
const u = 0, f = !!(e === "body" && t);
|
|
2337
|
-
let p =
|
|
2337
|
+
let p = h;
|
|
2338
2338
|
for (let g = n; g <= l; g++) {
|
|
2339
2339
|
const b = p, x = this.tableModel.getColumnWidth(g);
|
|
2340
2340
|
if (x > 0 && b + x > 0) {
|
|
@@ -2403,7 +2403,7 @@ class at extends nt {
|
|
|
2403
2403
|
height: l,
|
|
2404
2404
|
top: a,
|
|
2405
2405
|
parent: c,
|
|
2406
|
-
lastRowOfModel:
|
|
2406
|
+
lastRowOfModel: h
|
|
2407
2407
|
}) {
|
|
2408
2408
|
var me;
|
|
2409
2409
|
const f = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), p = { left: r, width: n, height: l, top: a, index: i }, m = e.getRowByIndex(o);
|
|
@@ -2438,7 +2438,7 @@ class at extends nt {
|
|
|
2438
2438
|
let M;
|
|
2439
2439
|
f && (M = f.render(w, o, i, t, e, S, this.dom.domService));
|
|
2440
2440
|
const U = e.getCustomClassesAt(o, i);
|
|
2441
|
-
if (U.length && this.dom.addClasses(U, w), this.dom.addColumnBorderDivs(this.tableOptions, c, p, t, s),
|
|
2441
|
+
if (U.length && this.dom.addClasses(U, w), this.dom.addColumnBorderDivs(this.tableOptions, c, p, t, s), h && this.dom.addHorizontalBorder({ left: r, width: n, height: l, top: a + l }, c), this.getFocusModel && t === "body") {
|
|
2442
2442
|
const v = this.getFocusModel();
|
|
2443
2443
|
v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
|
|
2444
2444
|
}
|
|
@@ -2613,7 +2613,7 @@ class at extends nt {
|
|
|
2613
2613
|
if (r) {
|
|
2614
2614
|
const n = e.index ?? 0, l = this.draggingColumn;
|
|
2615
2615
|
for (let a = 0; a < r; a++) {
|
|
2616
|
-
const c = s,
|
|
2616
|
+
const c = s, h = i.getRowHeight(a), u = { left: 0, width: e.width, height: h, top: c, index: a }, f = i.getValueAt(a, n), p = i.getCellRenderer(a, n), m = p ? "" : `${f}`, g = {
|
|
2617
2617
|
parent: l,
|
|
2618
2618
|
geo: u,
|
|
2619
2619
|
rowIndex: a,
|
|
@@ -2632,7 +2632,7 @@ class at extends nt {
|
|
|
2632
2632
|
if (C)
|
|
2633
2633
|
for (const w in C)
|
|
2634
2634
|
this.dom.setStyle(b, w, C[w]);
|
|
2635
|
-
s = s +
|
|
2635
|
+
s = s + h;
|
|
2636
2636
|
}
|
|
2637
2637
|
}
|
|
2638
2638
|
return s;
|
|
@@ -2681,7 +2681,7 @@ class at extends nt {
|
|
|
2681
2681
|
* @param {number} height - The height of the div.
|
|
2682
2682
|
* @returns {boolean} - Whether the cell is selected.
|
|
2683
2683
|
*/
|
|
2684
|
-
renderSelectedBackgroundDiv(e, t, s, o, i, r, n, l, a, c,
|
|
2684
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, n, l, a, c, h) {
|
|
2685
2685
|
let u = !1;
|
|
2686
2686
|
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2687
2687
|
const f = this.getSelectionModel();
|
|
@@ -2693,7 +2693,7 @@ class at extends nt {
|
|
|
2693
2693
|
// ge-table-body-west-selected-range
|
|
2694
2694
|
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, n)
|
|
2695
2695
|
);
|
|
2696
|
-
this.dom.setStyle(g, "left", `${l}px`), this.dom.setStyle(g, "top", `${a}px`), this.dom.setStyle(g, "width", `${c}px`), this.dom.setStyle(g, "height", `${
|
|
2696
|
+
this.dom.setStyle(g, "left", `${l}px`), this.dom.setStyle(g, "top", `${a}px`), this.dom.setStyle(g, "width", `${c}px`), this.dom.setStyle(g, "height", `${h}px`);
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
2699
2699
|
}
|
|
@@ -2729,7 +2729,7 @@ class at extends nt {
|
|
|
2729
2729
|
width: l,
|
|
2730
2730
|
height: a,
|
|
2731
2731
|
parent: c,
|
|
2732
|
-
cellSelected:
|
|
2732
|
+
cellSelected: h,
|
|
2733
2733
|
lastRowOfModel: u
|
|
2734
2734
|
}) {
|
|
2735
2735
|
const [f, p] = this.addAndRenderCellDiv({
|
|
@@ -2745,7 +2745,7 @@ class at extends nt {
|
|
|
2745
2745
|
parent: c,
|
|
2746
2746
|
lastRowOfModel: u
|
|
2747
2747
|
});
|
|
2748
|
-
|
|
2748
|
+
h && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, f), p && this.cleanupFunctions[t].push(p);
|
|
2749
2749
|
}
|
|
2750
2750
|
/**
|
|
2751
2751
|
* Render the header cell resize handle.
|
|
@@ -2766,12 +2766,12 @@ class at extends nt {
|
|
|
2766
2766
|
l.setAttribute(c, "data-col-index", `${t}`), l.setAttribute(c, "data-row-index", `${e}`), l.setAttribute(c, "data-area", "header"), l.setAttribute(c, "data-ge-action", "resize-column"), l.addClass(c, "ge-table-column-resize-handle"), l.setStyle(c, "display", "clip"), l.setStyle(c, "position", "absolute"), l.setStyle(c, "cursor", "col-resize"), l.setStyle(c, "left", `${s + i - a}px`), l.setStyle(c, "top", `${o}px`), l.setStyle(c, "width", `${a}px`), l.setStyle(c, "height", `${r}px`), l.appendChild(n, c);
|
|
2767
2767
|
}
|
|
2768
2768
|
}
|
|
2769
|
-
class
|
|
2769
|
+
class dt {
|
|
2770
2770
|
constructor(e, t) {
|
|
2771
2771
|
this.columnIndex = e, this.sortState = t;
|
|
2772
2772
|
}
|
|
2773
2773
|
}
|
|
2774
|
-
class
|
|
2774
|
+
class ht {
|
|
2775
2775
|
constructor(e) {
|
|
2776
2776
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
2777
2777
|
}
|
|
@@ -2793,7 +2793,7 @@ class dt {
|
|
|
2793
2793
|
}
|
|
2794
2794
|
}
|
|
2795
2795
|
}
|
|
2796
|
-
class
|
|
2796
|
+
class ut {
|
|
2797
2797
|
constructor(e = -1, t = -1) {
|
|
2798
2798
|
this.rowIndex = e, this.columnIndex = t;
|
|
2799
2799
|
}
|
|
@@ -2803,20 +2803,20 @@ class pe {
|
|
|
2803
2803
|
this.cells = e;
|
|
2804
2804
|
}
|
|
2805
2805
|
static createSingle(e, t) {
|
|
2806
|
-
return new pe([new
|
|
2806
|
+
return new pe([new ut(e, t)]);
|
|
2807
2807
|
}
|
|
2808
2808
|
}
|
|
2809
|
-
class
|
|
2809
|
+
class pt {
|
|
2810
2810
|
constructor(e) {
|
|
2811
2811
|
var t, s;
|
|
2812
2812
|
this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (s = this.tableScope.tableOptions) != null && s.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
|
|
2813
2813
|
}
|
|
2814
2814
|
onMouseClicked(e, t) {
|
|
2815
|
-
var i, r, n, l, a, c,
|
|
2815
|
+
var i, r, n, l, a, c, h;
|
|
2816
2816
|
let s = !1, o = !1;
|
|
2817
2817
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2818
2818
|
const u = this.getSelectionModel(), f = this.getFocusModel();
|
|
2819
|
-
u && f && (f.hasFocus(e.rowIndex, e.columnIndex) || (f.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(f), s = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (n = e.originalEvent) != null && n.altKey && ((l = e.originalEvent) != null && l.ctrlKey || (a = e.originalEvent) != null && a.metaKey) ? (u.removeSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (
|
|
2819
|
+
u && f && (f.hasFocus(e.rowIndex, e.columnIndex) || (f.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(f), s = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (n = e.originalEvent) != null && n.altKey && ((l = e.originalEvent) != null && l.ctrlKey || (a = e.originalEvent) != null && a.metaKey) ? (u.removeSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (u.addSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (u.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(u));
|
|
2820
2820
|
}
|
|
2821
2821
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2822
2822
|
}
|
|
@@ -2847,7 +2847,7 @@ class ut {
|
|
|
2847
2847
|
});
|
|
2848
2848
|
}
|
|
2849
2849
|
}
|
|
2850
|
-
class
|
|
2850
|
+
class gt {
|
|
2851
2851
|
get() {
|
|
2852
2852
|
return {
|
|
2853
2853
|
f2: "START_EDITING",
|
|
@@ -2867,7 +2867,7 @@ class pt {
|
|
|
2867
2867
|
};
|
|
2868
2868
|
}
|
|
2869
2869
|
}
|
|
2870
|
-
class
|
|
2870
|
+
class ft {
|
|
2871
2871
|
get() {
|
|
2872
2872
|
return {
|
|
2873
2873
|
f2: "START_EDITING",
|
|
@@ -2889,7 +2889,23 @@ class gt {
|
|
|
2889
2889
|
};
|
|
2890
2890
|
}
|
|
2891
2891
|
}
|
|
2892
|
-
|
|
2892
|
+
function mt(d) {
|
|
2893
|
+
return d.trim().replace(/\+/g, " ").replace(/ +/g, " ").replace(/⌫/g, "backspace").replace(/↩/g, "enter").replace(/⇧/g, "shift").replace(/⌥/g, "alt").replace(/option/g, "alt").replace(/opt/g, "alt").replace(/⌃/g, "ctrl").replace(/control/g, "ctrl").replace(/command/g, "cmd").replace(/meta/g, "cmd").replace(/escape/g, "esc").replace(/⌘/g, "cmd").replace(/\*/g, "multiply").split(" ").filter((e) => e).sort((e, t) => {
|
|
2894
|
+
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
|
|
2895
|
+
return o !== i ? o - i : e.localeCompare(t);
|
|
2896
|
+
}).join(" ");
|
|
2897
|
+
}
|
|
2898
|
+
function xe(d) {
|
|
2899
|
+
let e = d.key.toLowerCase();
|
|
2900
|
+
if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" && d.code === "Delete" && (e = "delete"), e === "backspace" && (e = "backspace"), e === "escape" && (e = "esc"), e === "return" && (e = "enter"), d.code.startsWith("Numpad")) {
|
|
2901
|
+
const s = d.code.replace("Numpad", "").toLowerCase();
|
|
2902
|
+
s === "add" ? e = "num_add" : s === "subtract" ? e = "num_subtract" : s === "multiply" ? e = "num_multiply" : s === "divide" ? e = "num_divide" : s === "decimal" ? e = "num_decimal" : s === "enter" ? e = "num_enter" : e = "num_" + s;
|
|
2903
|
+
}
|
|
2904
|
+
d.code.match(/^F\d+$/) && (e = d.code.toLowerCase()), d.code.match(/^Digit\d+$/) && (e = d.code.replace(/Digit/g, ""));
|
|
2905
|
+
let t = "";
|
|
2906
|
+
return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"), mt(t + " " + e);
|
|
2907
|
+
}
|
|
2908
|
+
class bt {
|
|
2893
2909
|
constructor(e) {
|
|
2894
2910
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
2895
2911
|
}
|
|
@@ -2910,7 +2926,7 @@ class ft {
|
|
|
2910
2926
|
this.assignPredefinedSystemShortcutMappings(), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
|
|
2911
2927
|
}
|
|
2912
2928
|
assignPredefinedSystemShortcutMappings() {
|
|
2913
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
2929
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new ft().get()) : Object.assign(this.shortcutActionIdMapping, new gt().get());
|
|
2914
2930
|
}
|
|
2915
2931
|
isMacintosh() {
|
|
2916
2932
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -2933,26 +2949,47 @@ class ft {
|
|
|
2933
2949
|
return t;
|
|
2934
2950
|
}
|
|
2935
2951
|
findEntity(e) {
|
|
2936
|
-
const t =
|
|
2937
|
-
this.isDebug() && console.debug("ShortcutService
|
|
2938
|
-
for (const s in this.shortcutActionIdMapping)
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
|
|
2948
|
-
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
|
|
2955
|
-
|
|
2952
|
+
const t = xe(e);
|
|
2953
|
+
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
2954
|
+
for (const s in this.shortcutActionIdMapping)
|
|
2955
|
+
if (xe(e) === t)
|
|
2956
|
+
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
2957
|
+
}
|
|
2958
|
+
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
2959
|
+
// if (tokens1.length !== tokens2.length) {
|
|
2960
|
+
// return false;
|
|
2961
|
+
// }
|
|
2962
|
+
// if (tokens1.length === 0) {
|
|
2963
|
+
// return false;
|
|
2964
|
+
// }
|
|
2965
|
+
// for (let i = 0; i < tokens1.length; i++) {
|
|
2966
|
+
// if (tokens1[i] !== tokens2[i]) {
|
|
2967
|
+
// return false;
|
|
2968
|
+
// }
|
|
2969
|
+
// }
|
|
2970
|
+
//
|
|
2971
|
+
// return true;
|
|
2972
|
+
// }
|
|
2973
|
+
//
|
|
2974
|
+
// private getTokenByEvent(evt: KeyboardEvent): string[] {
|
|
2975
|
+
// const tokens: string[] = [];
|
|
2976
|
+
// if (evt.altKey) {
|
|
2977
|
+
// tokens.push("alt");
|
|
2978
|
+
// }
|
|
2979
|
+
// if (evt.shiftKey) {
|
|
2980
|
+
// tokens.push("shift");
|
|
2981
|
+
// }
|
|
2982
|
+
// if (evt.ctrlKey) {
|
|
2983
|
+
// tokens.push("ctrl");
|
|
2984
|
+
// }
|
|
2985
|
+
// if (evt.metaKey) {
|
|
2986
|
+
// tokens.push("meta");
|
|
2987
|
+
// }
|
|
2988
|
+
// if (evt.code) {
|
|
2989
|
+
// tokens.push(evt.code.toLowerCase().replace(/key/g, ""));
|
|
2990
|
+
// }
|
|
2991
|
+
// return tokens.sort();
|
|
2992
|
+
// }
|
|
2956
2993
|
/**
|
|
2957
2994
|
* Retrieves the shortcut action mapping object.
|
|
2958
2995
|
*
|
|
@@ -2982,7 +3019,7 @@ class re {
|
|
|
2982
3019
|
onFocusChanged(e) {
|
|
2983
3020
|
}
|
|
2984
3021
|
}
|
|
2985
|
-
class
|
|
3022
|
+
class yt {
|
|
2986
3023
|
setStyle(e, t, s) {
|
|
2987
3024
|
return e.style[t] = s, e;
|
|
2988
3025
|
}
|
|
@@ -3009,7 +3046,7 @@ class mt {
|
|
|
3009
3046
|
e.setAttribute(t, s);
|
|
3010
3047
|
}
|
|
3011
3048
|
}
|
|
3012
|
-
class
|
|
3049
|
+
class xt {
|
|
3013
3050
|
render(e, t, s, o, i, r, n) {
|
|
3014
3051
|
if (i.isEditable(t, s)) {
|
|
3015
3052
|
n.addClass(e, "ge-table-row-input-div");
|
|
@@ -3112,7 +3149,7 @@ class ge {
|
|
|
3112
3149
|
this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e), this.fireChangeEvent());
|
|
3113
3150
|
}
|
|
3114
3151
|
}
|
|
3115
|
-
class
|
|
3152
|
+
class wt {
|
|
3116
3153
|
constructor(e = "none") {
|
|
3117
3154
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
3118
3155
|
}
|
|
@@ -3163,14 +3200,14 @@ class fe {
|
|
|
3163
3200
|
}
|
|
3164
3201
|
// `⊖ `, `⊕ `;
|
|
3165
3202
|
}
|
|
3166
|
-
const
|
|
3203
|
+
const St = new ge(), Ct = new wt("cell");
|
|
3167
3204
|
class X {
|
|
3168
3205
|
constructor() {
|
|
3169
3206
|
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 = {
|
|
3170
3207
|
header: 34,
|
|
3171
3208
|
body: 34,
|
|
3172
3209
|
footer: 34
|
|
3173
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new
|
|
3210
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new $e(), this.headerGroupOptions = new fe(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new _e(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new xt(), this.getSelectionModel = () => St, this.getFocusModel = () => Ct;
|
|
3174
3211
|
}
|
|
3175
3212
|
}
|
|
3176
3213
|
const W = class W {
|
|
@@ -3193,8 +3230,8 @@ const W = class W {
|
|
|
3193
3230
|
for (let l = r.r1; l <= r.r2; l++) {
|
|
3194
3231
|
const a = [];
|
|
3195
3232
|
for (let c = r.c1; c <= r.c2; c++) {
|
|
3196
|
-
const
|
|
3197
|
-
a.push(
|
|
3233
|
+
const h = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
|
|
3234
|
+
a.push(h);
|
|
3198
3235
|
}
|
|
3199
3236
|
n.push(a.join(W.columnSeparatorChar));
|
|
3200
3237
|
}
|
|
@@ -3258,16 +3295,16 @@ const W = class W {
|
|
|
3258
3295
|
W.columnSeparatorChar = " ", W.rowSeparatorChar = `
|
|
3259
3296
|
`;
|
|
3260
3297
|
let J = W;
|
|
3261
|
-
class
|
|
3298
|
+
class vt {
|
|
3262
3299
|
constructor(e, t = 500) {
|
|
3263
|
-
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(
|
|
3300
|
+
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Ge(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
|
|
3264
3301
|
}
|
|
3265
3302
|
handleResize(e) {
|
|
3266
3303
|
const t = e[0], { width: s } = t.contentRect;
|
|
3267
3304
|
this.tableScope.recalcColumnWidths(s);
|
|
3268
3305
|
}
|
|
3269
3306
|
}
|
|
3270
|
-
class
|
|
3307
|
+
class At {
|
|
3271
3308
|
/**
|
|
3272
3309
|
* Downloads a matrix data as an Excel file.
|
|
3273
3310
|
*
|
|
@@ -3300,9 +3337,9 @@ class Ct {
|
|
|
3300
3337
|
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="0E2841"/></a:dk2><a:lt2><a:srgbClr val="E8E8E8"/></a:lt2><a:accent1><a:srgbClr val="156082"/></a:accent1><a:accent2><a:srgbClr val="E97132"/></a:accent2><a:accent3><a:srgbClr val="196B24"/></a:accent3><a:accent4><a:srgbClr val="0F9ED5"/></a:accent4><a:accent5><a:srgbClr val="A02B93"/></a:accent5><a:accent6><a:srgbClr val="4EA72E"/></a:accent6><a:hlink><a:srgbClr val="467886"/></a:hlink><a:folHlink><a:srgbClr val="96607D"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Aptos Display" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Aptos Narrow" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{2E142A2C-CD16-42D6-873A-C26D2A0506FA}" vid="{1BDDFF52-6CD6-40A5-AB3C-68EB2F1E4D0A}"/></a:ext></a:extLst></a:theme>`, l = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3301
3338
|
<sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="3" uniqueCount="3"><si><t>a</t></si><si><t>b</t></si><si><t>c</t></si></sst>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3302
3339
|
<styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"><fonts count="1" x14ac:knownFonts="1"><font><sz val="12"/><color theme="1"/><name val="Aptos Narrow"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles><dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`, c = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3303
|
-
<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="11207"/><workbookPr defaultThemeVersion="202300"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="/" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="8_{292BF245-1F37-B045-B1A5-26C42FB62779}" xr6:coauthVersionLast="47" xr6:coauthVersionMax="47" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="11340" yWindow="5060" windowWidth="28040" windowHeight="17440" xr2:uid="{858B8D3F-6246-774D-8903-6D38687B7BC6}"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="181029"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext><ext uri="{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}" xmlns:xcalcf="http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures"><xcalcf:calcFeatures><xcalcf:feature name="microsoft.com:RD"/><xcalcf:feature name="microsoft.com:Single"/><xcalcf:feature name="microsoft.com:FV"/><xcalcf:feature name="microsoft.com:CNMTM"/><xcalcf:feature name="microsoft.com:LET_WF"/><xcalcf:feature name="microsoft.com:LAMBDA_WF"/><xcalcf:feature name="microsoft.com:ARRAYTEXT_WF"/></xcalcf:calcFeatures></ext></extLst></workbook>`,
|
|
3340
|
+
<workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="11207"/><workbookPr defaultThemeVersion="202300"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="/" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="8_{292BF245-1F37-B045-B1A5-26C42FB62779}" xr6:coauthVersionLast="47" xr6:coauthVersionMax="47" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="11340" yWindow="5060" windowWidth="28040" windowHeight="17440" xr2:uid="{858B8D3F-6246-774D-8903-6D38687B7BC6}"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="181029"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext><ext uri="{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}" xmlns:xcalcf="http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures"><xcalcf:calcFeatures><xcalcf:feature name="microsoft.com:RD"/><xcalcf:feature name="microsoft.com:Single"/><xcalcf:feature name="microsoft.com:FV"/><xcalcf:feature name="microsoft.com:CNMTM"/><xcalcf:feature name="microsoft.com:LET_WF"/><xcalcf:feature name="microsoft.com:LAMBDA_WF"/><xcalcf:feature name="microsoft.com:ARRAYTEXT_WF"/></xcalcf:calcFeatures></ext></extLst></workbook>`, h = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
3304
3341
|
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>`, u = /* @__PURE__ */ new Map();
|
|
3305
|
-
return u.set("_rels/.rels", s), u.set("docProps/app.xml", o), u.set("docProps/core.xml", i), u.set("xl/_rels/workbook.xml.rels", r), u.set("xl/theme/theme1.xml", n), u.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), u.set("xl/sharedStrings.xml", l), u.set("xl/styles.xml", a), u.set("xl/workbook.xml", c), u.set("[Content_Types].xml",
|
|
3342
|
+
return u.set("_rels/.rels", s), u.set("docProps/app.xml", o), u.set("docProps/core.xml", i), u.set("xl/_rels/workbook.xml.rels", r), u.set("xl/theme/theme1.xml", n), u.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), u.set("xl/sharedStrings.xml", l), u.set("xl/styles.xml", a), u.set("xl/workbook.xml", c), u.set("[Content_Types].xml", h), u;
|
|
3306
3343
|
}
|
|
3307
3344
|
getX1WorksheetsSheet1Xml(e) {
|
|
3308
3345
|
const t = [];
|
|
@@ -3347,8 +3384,8 @@ class Ct {
|
|
|
3347
3384
|
const t = [];
|
|
3348
3385
|
let s = 0;
|
|
3349
3386
|
const o = [];
|
|
3350
|
-
e.forEach((
|
|
3351
|
-
const f = new TextEncoder().encode(u), p = new TextEncoder().encode(
|
|
3387
|
+
e.forEach((h, u) => {
|
|
3388
|
+
const f = new TextEncoder().encode(u), p = new TextEncoder().encode(h), m = new Uint8Array(30 + f.length), g = new DataView(m.buffer);
|
|
3352
3389
|
m.set([80, 75, 3, 4], 0), g.setUint16(4, 20, !0), g.setUint16(6, 0, !0), g.setUint16(8, 0, !0), g.setUint16(10, 0, !0), g.setUint16(12, 0, !0), g.setUint32(14, 0, !0), g.setUint32(18, p.length, !0), g.setUint32(22, p.length, !0), g.setUint16(26, f.length, !0), g.setUint16(28, 0, !0), m.set(f, 30), t.push(m, p), o.push({
|
|
3353
3390
|
path: u,
|
|
3354
3391
|
offset: s,
|
|
@@ -3356,16 +3393,16 @@ class Ct {
|
|
|
3356
3393
|
}), s += m.length + p.length;
|
|
3357
3394
|
});
|
|
3358
3395
|
const i = s;
|
|
3359
|
-
o.forEach((
|
|
3360
|
-
const u = new TextEncoder().encode(
|
|
3361
|
-
f.set([80, 75, 1, 2], 0), p.setUint16(4, 20, !0), p.setUint16(6, 20, !0), p.setUint16(8, 0, !0), p.setUint16(10, 0, !0), p.setUint16(12, 0, !0), p.setUint16(14, 0, !0), p.setUint32(16, 0, !0), p.setUint32(20,
|
|
3396
|
+
o.forEach((h) => {
|
|
3397
|
+
const u = new TextEncoder().encode(h.path), f = new Uint8Array(46 + u.length), p = new DataView(f.buffer);
|
|
3398
|
+
f.set([80, 75, 1, 2], 0), p.setUint16(4, 20, !0), p.setUint16(6, 20, !0), p.setUint16(8, 0, !0), p.setUint16(10, 0, !0), p.setUint16(12, 0, !0), p.setUint16(14, 0, !0), p.setUint32(16, 0, !0), p.setUint32(20, h.contentSize, !0), p.setUint32(24, h.contentSize, !0), p.setUint16(28, u.length, !0), p.setUint16(30, 0, !0), p.setUint16(32, 0, !0), p.setUint16(34, 0, !0), p.setUint16(36, 0, !0), p.setUint32(38, 0, !0), p.setUint32(42, h.offset, !0), f.set(u, 46), t.push(f), s += f.length;
|
|
3362
3399
|
});
|
|
3363
3400
|
const r = new Uint8Array(22), n = new DataView(r.buffer);
|
|
3364
3401
|
r.set([80, 75, 5, 6], 0), n.setUint16(4, 0, !0), n.setUint16(6, 0, !0), n.setUint16(8, o.length, !0), n.setUint16(10, o.length, !0), n.setUint32(12, s - i, !0), n.setUint32(16, i, !0), n.setUint16(20, 0, !0), t.push(r);
|
|
3365
|
-
const l = t.reduce((
|
|
3402
|
+
const l = t.reduce((h, u) => h + u.length, 0), a = new Uint8Array(l);
|
|
3366
3403
|
let c = 0;
|
|
3367
|
-
for (const
|
|
3368
|
-
a.set(
|
|
3404
|
+
for (const h of t)
|
|
3405
|
+
a.set(h, c), c += h.length;
|
|
3369
3406
|
return a;
|
|
3370
3407
|
}
|
|
3371
3408
|
generateBuffer(e, t = "") {
|
|
@@ -3373,14 +3410,14 @@ class Ct {
|
|
|
3373
3410
|
return this.createZip(s);
|
|
3374
3411
|
}
|
|
3375
3412
|
}
|
|
3376
|
-
class
|
|
3377
|
-
constructor(e, t, s, o, i, r = new J(), n = new
|
|
3413
|
+
class Ve extends ct {
|
|
3414
|
+
constructor(e, t, s, o, i, r = new J(), n = new At()) {
|
|
3378
3415
|
var c;
|
|
3379
|
-
if (super(e, t, new
|
|
3380
|
-
const
|
|
3381
|
-
u && (
|
|
3416
|
+
if (super(e, t, new Qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = V.getInstance(), this.selectionService = new pt(this), this.api = new st(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), i || (this.eventListener = new re()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
|
|
3417
|
+
const h = this.tableOptions.autoRestoreOptions, u = h.getStorageKeyFn;
|
|
3418
|
+
u && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ot(u)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new rt(u)), h.autoRestoreSortingState && (this.storeSortingService = new nt(u)));
|
|
3382
3419
|
}
|
|
3383
|
-
this.mouseHandler = new
|
|
3420
|
+
this.mouseHandler = new tt(this), this.inputHandler = new ht(this), this.resizeHandler = new vt(this, o.resizeEventDebounceDelay), this.shortcutService = new bt(this), this.shortcutService.addListener(this.selectionService);
|
|
3384
3421
|
const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
3385
3422
|
l && l.addEventSelectionChangedListener(this);
|
|
3386
3423
|
const a = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
@@ -3398,8 +3435,8 @@ class He extends at {
|
|
|
3398
3435
|
*
|
|
3399
3436
|
* @return {TableScope} - The newly created TableScope instance.
|
|
3400
3437
|
*/
|
|
3401
|
-
static create(e, t, s = new X(), o = new re(), i = new
|
|
3402
|
-
return new
|
|
3438
|
+
static create(e, t, s = new X(), o = new re(), i = new yt(), r = new J()) {
|
|
3439
|
+
return new Ve(e, t, i, s, o, r);
|
|
3403
3440
|
}
|
|
3404
3441
|
/**
|
|
3405
3442
|
* Triggers an action based on the provided actionId.
|
|
@@ -3514,7 +3551,13 @@ class He extends at {
|
|
|
3514
3551
|
* @return {void}
|
|
3515
3552
|
*/
|
|
3516
3553
|
contextmenu(e) {
|
|
3517
|
-
|
|
3554
|
+
var s, o;
|
|
3555
|
+
const t = Date.now();
|
|
3556
|
+
if (t - this.lastContextmenu < 50) {
|
|
3557
|
+
this.lastContextmenu = t, (s = e.originalEvent) == null || s.preventDefault(), (o = e.originalEvent) == null || o.stopImmediatePropagation();
|
|
3558
|
+
return;
|
|
3559
|
+
}
|
|
3560
|
+
this.lastContextmenu = t, this.eventListener.onContextmenu(e);
|
|
3518
3561
|
}
|
|
3519
3562
|
/**
|
|
3520
3563
|
* Toggles the expand or collapse state of all items in the body area model.
|
|
@@ -3596,7 +3639,7 @@ class He extends at {
|
|
|
3596
3639
|
const o = this.tableModel.getColumnDef(s);
|
|
3597
3640
|
if (o != null && o.sortable && o.sortable()) {
|
|
3598
3641
|
e.preventDefault(), e.stopPropagation();
|
|
3599
|
-
const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", a = n[(n.indexOf(l) + 1) % n.length], c = new
|
|
3642
|
+
const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", a = n[(n.indexOf(l) + 1) % n.length], c = new dt(s, a);
|
|
3600
3643
|
this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((u) => u.sortState = ""), o.sortState = a), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
|
|
3601
3644
|
}
|
|
3602
3645
|
}
|
|
@@ -3752,8 +3795,8 @@ class He extends at {
|
|
|
3752
3795
|
else if (i.allCollapsed)
|
|
3753
3796
|
c.expanded = !1;
|
|
3754
3797
|
else {
|
|
3755
|
-
const
|
|
3756
|
-
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(
|
|
3798
|
+
const h = o(c.data);
|
|
3799
|
+
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
|
|
3757
3800
|
}
|
|
3758
3801
|
}
|
|
3759
3802
|
n.recalcVisibleTreeRows();
|
|
@@ -3793,7 +3836,7 @@ class He extends at {
|
|
|
3793
3836
|
this.tableModel.doSort(e);
|
|
3794
3837
|
}
|
|
3795
3838
|
}
|
|
3796
|
-
class
|
|
3839
|
+
class Gt extends re {
|
|
3797
3840
|
constructor(e) {
|
|
3798
3841
|
super(), this.onCheckboxChangedCallback = e, super.onCheckboxChanged = (t) => {
|
|
3799
3842
|
this.onCheckboxChangedCallback(t);
|
|
@@ -4036,8 +4079,8 @@ q.themes = ["light", "combat", "paper", "blackboard"], q.vars = {
|
|
|
4036
4079
|
--ge-table-drop-zone-bg: #758129;
|
|
4037
4080
|
}`
|
|
4038
4081
|
};
|
|
4039
|
-
let
|
|
4040
|
-
class
|
|
4082
|
+
let we = q;
|
|
4083
|
+
class Se {
|
|
4041
4084
|
constructor(e, t = !0, s, o, i = 0, r = !1, n = !1) {
|
|
4042
4085
|
this.data = e, this.expanded = t, this.children = s, this.parent = o, this.deep = i, this.checked = r, this.keep = n, this.type = "TreeRow";
|
|
4043
4086
|
}
|
|
@@ -4049,14 +4092,14 @@ class ne {
|
|
|
4049
4092
|
o.push(ne.buildTreeRow(i, t, void 0, 0, s));
|
|
4050
4093
|
return o;
|
|
4051
4094
|
}
|
|
4052
|
-
static buildTreeRow(e, t = "children", s = new
|
|
4095
|
+
static buildTreeRow(e, t = "children", s = new Se(e, !0, [], void 0, 0), o = 0, i = 12) {
|
|
4053
4096
|
var n;
|
|
4054
4097
|
if (o > i)
|
|
4055
4098
|
return console.warn("Max deep limit reached: ", o), s;
|
|
4056
4099
|
const r = e[t];
|
|
4057
4100
|
if (r)
|
|
4058
4101
|
for (const l of r) {
|
|
4059
|
-
const a = new
|
|
4102
|
+
const a = new Se(l, !0, [], s, o + 1);
|
|
4060
4103
|
if ((n = s.children) == null || n.push(a), ne.buildTreeRow(
|
|
4061
4104
|
l,
|
|
4062
4105
|
t,
|
|
@@ -4078,10 +4121,10 @@ class y {
|
|
|
4078
4121
|
this.value = e, this.unit = t;
|
|
4079
4122
|
}
|
|
4080
4123
|
}
|
|
4081
|
-
const
|
|
4124
|
+
const Rt = () => !0, Ce = () => !1;
|
|
4082
4125
|
class H {
|
|
4083
|
-
constructor(e, t, s = new y(100, "px"), o = new I(), i = new I(), r = new y(100, "px"), n = new y(100, "px"), l, a, c,
|
|
4084
|
-
this.property = e, this.headerLabel = t, this.width = s, this.classes = o, this.rendererMap = i, this.minWidth = r, this.maxWidth = n, this.sortable = l, this.sortComparator = a, this.sortState = c, this.sortStatesOrder =
|
|
4126
|
+
constructor(e, t, s = new y(100, "px"), o = new I(), i = new I(), r = new y(100, "px"), n = new y(100, "px"), l, a, c, h, u, f, p, m, g = () => this.visible) {
|
|
4127
|
+
this.property = e, this.headerLabel = t, this.width = s, this.classes = o, this.rendererMap = i, this.minWidth = r, this.maxWidth = n, this.sortable = l, this.sortComparator = a, this.sortState = c, this.sortStatesOrder = h, this.sortIconVisible = u, this.editable = f, this.getEditRenderer = p, this.editInputPipe = m, this.isVisible = g, this.visible = !0, s.unit !== "px" && (this.minWidth = new y(0, "px"), this.maxWidth = new y(1e5, "px"));
|
|
4085
4128
|
}
|
|
4086
4129
|
static bodyRenderer(e) {
|
|
4087
4130
|
return new I(
|
|
@@ -4099,7 +4142,7 @@ class H {
|
|
|
4099
4142
|
e.headerClasses,
|
|
4100
4143
|
e.bodyClasses,
|
|
4101
4144
|
e.footerClasses
|
|
4102
|
-
), o = e.sortIconVisible ?? e.sortable ??
|
|
4145
|
+
), o = e.sortIconVisible ?? e.sortable ?? Ce, i = e.editable ?? e.editable ?? Ce, r = e.isVisible ?? e.isVisible ?? Rt;
|
|
4103
4146
|
return new H(
|
|
4104
4147
|
e.property ?? "",
|
|
4105
4148
|
e.headerLabel ?? "",
|
|
@@ -4120,7 +4163,7 @@ class H {
|
|
|
4120
4163
|
);
|
|
4121
4164
|
}
|
|
4122
4165
|
}
|
|
4123
|
-
const
|
|
4166
|
+
const zt = new y(500, "px"), jt = new y(400, "px"), Et = new y(300, "px"), Ut = new y(290, "px"), Yt = new y(280, "px"), Kt = new y(270, "px"), Xt = new y(260, "px"), Jt = new y(250, "px"), qt = new y(240, "px"), Zt = new y(230, "px"), Qt = new y(220, "px"), es = new y(210, "px"), ve = new y(200, "px"), ts = new y(190, "px"), ss = new y(180, "px"), os = new y(170, "px"), is = new y(160, "px"), rs = new y(150, "px"), ns = new y(140, "px"), ls = new y(130, "px"), as = new y(120, "px"), cs = new y(110, "px"), ds = new y(100, "px"), hs = new y(90, "px"), us = new y(80, "px"), ps = new y(70, "px"), gs = new y(60, "px"), fs = new y(50, "px"), ms = new y(40, "px"), bs = new y(30, "px"), ys = new y(20, "px"), xs = new y(10, "px"), ws = new y(0, "px");
|
|
4124
4167
|
class P extends he {
|
|
4125
4168
|
constructor(e, t, s, o = []) {
|
|
4126
4169
|
super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
|
|
@@ -4221,7 +4264,7 @@ class F {
|
|
|
4221
4264
|
changeColumnOrder(e, t) {
|
|
4222
4265
|
}
|
|
4223
4266
|
}
|
|
4224
|
-
class
|
|
4267
|
+
class Mt {
|
|
4225
4268
|
flattenTree(e, t = []) {
|
|
4226
4269
|
var s;
|
|
4227
4270
|
for (const o of e)
|
|
@@ -4232,9 +4275,9 @@ class Rt {
|
|
|
4232
4275
|
return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
|
|
4233
4276
|
}
|
|
4234
4277
|
}
|
|
4235
|
-
class
|
|
4278
|
+
class Ae extends he {
|
|
4236
4279
|
constructor(e, t, s, o = []) {
|
|
4237
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new
|
|
4280
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new Be(), this.service = new Mt(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
|
|
4238
4281
|
}
|
|
4239
4282
|
changeColumnOrder(e, t) {
|
|
4240
4283
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
@@ -4337,7 +4380,7 @@ class ve extends he {
|
|
|
4337
4380
|
o.children && this.treeSort(o.children, t, s);
|
|
4338
4381
|
}
|
|
4339
4382
|
}
|
|
4340
|
-
class
|
|
4383
|
+
class Re {
|
|
4341
4384
|
constructor(e = []) {
|
|
4342
4385
|
this.allRootNodes = e;
|
|
4343
4386
|
}
|
|
@@ -4397,12 +4440,12 @@ class Ae {
|
|
|
4397
4440
|
s.checked && t.push(s), s.children && this.addSelectedRecursive(s.children, t);
|
|
4398
4441
|
}
|
|
4399
4442
|
}
|
|
4400
|
-
class
|
|
4443
|
+
class Ee {
|
|
4401
4444
|
constructor(e = 0, t = 0, s = 0, o = 0) {
|
|
4402
4445
|
this.top = e, this.right = t, this.bottom = s, this.left = o;
|
|
4403
4446
|
}
|
|
4404
4447
|
}
|
|
4405
|
-
class
|
|
4448
|
+
class Tt {
|
|
4406
4449
|
constructor() {
|
|
4407
4450
|
this.checkedRows = [];
|
|
4408
4451
|
}
|
|
@@ -4434,10 +4477,10 @@ class Et {
|
|
|
4434
4477
|
}
|
|
4435
4478
|
}
|
|
4436
4479
|
class se {
|
|
4437
|
-
constructor(e, t, s, o = 0, i = 0, r = !1, n = new G(), l = [], a = [], c = -1,
|
|
4480
|
+
constructor(e, t, s, o = 0, i = 0, r = !1, n = new G(), l = [], a = [], c = -1, h = 0, u = 400, f = () => {
|
|
4438
4481
|
}) {
|
|
4439
4482
|
var p, m, g, b;
|
|
4440
|
-
this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = s, this.fixedLeftColumnCount = o, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = n, this.columnDefs = l, this.columnSizes = a, this.overridingColumnWidth = c, this.columnCount =
|
|
4483
|
+
this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = s, this.fixedLeftColumnCount = o, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = n, this.columnDefs = l, this.columnSizes = a, this.overridingColumnWidth = c, this.columnCount = h, this.parentSize = u, this.getSelectionModel = f, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new Ee(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", s.areaIdent = "footer", this.columnCount || ((p = this.columnDefs) != null && p.length ? this.columnCount = this.columnDefs.length : (m = this.columnSizes) != null && m.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (b = this.columnDefs) != null && b.length && Ze(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Tt());
|
|
4441
4484
|
}
|
|
4442
4485
|
init() {
|
|
4443
4486
|
this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
|
|
@@ -4521,7 +4564,7 @@ class se {
|
|
|
4521
4564
|
*/
|
|
4522
4565
|
recalcPadding() {
|
|
4523
4566
|
const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), s = this.getAreaHeight("header"), o = this.getAreaHeight("footer");
|
|
4524
|
-
this.padding = new
|
|
4567
|
+
this.padding = new Ee(
|
|
4525
4568
|
s,
|
|
4526
4569
|
t,
|
|
4527
4570
|
o,
|
|
@@ -4823,7 +4866,7 @@ class se {
|
|
|
4823
4866
|
return this.tableScope;
|
|
4824
4867
|
}
|
|
4825
4868
|
}
|
|
4826
|
-
class
|
|
4869
|
+
class Me extends He {
|
|
4827
4870
|
constructor(e, t, s, o) {
|
|
4828
4871
|
super(
|
|
4829
4872
|
e,
|
|
@@ -4871,7 +4914,7 @@ class _ {
|
|
|
4871
4914
|
* Please consult each method's documentation for detailed explanation of their functionality.
|
|
4872
4915
|
*/
|
|
4873
4916
|
static createTableModel(e) {
|
|
4874
|
-
var t, s, o, i, r, n, l, a, c,
|
|
4917
|
+
var t, s, o, i, r, n, l, a, c, h, u, f, p, m;
|
|
4875
4918
|
if (e.defaultRowHeights === void 0)
|
|
4876
4919
|
if ((t = e.tableOptions) != null && t.defaultRowHeights)
|
|
4877
4920
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
@@ -4889,7 +4932,7 @@ class _ {
|
|
|
4889
4932
|
g > -1 && (e.defaultRowHeights.footer = g);
|
|
4890
4933
|
}
|
|
4891
4934
|
}
|
|
4892
|
-
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new H(g, g.toUpperCase(),
|
|
4935
|
+
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new H(g, g.toUpperCase(), ve)) : (o = e.rows) != null && o.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new H(g, g.toUpperCase(), ve)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (n = e.columnSizes) != null && n.length ? e.columnCount = (l = e.columnSizes) == null ? void 0 : l.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((a = e.headerData) != null && a.length ? e.headerAreaModel = new P(
|
|
4893
4936
|
"header",
|
|
4894
4937
|
e.headerData,
|
|
4895
4938
|
e.defaultRowHeights.header,
|
|
@@ -4899,7 +4942,7 @@ class _ {
|
|
|
4899
4942
|
[e.columnDefs.map((g) => g.headerLabel)],
|
|
4900
4943
|
e.defaultRowHeights.header,
|
|
4901
4944
|
e.columnDefs
|
|
4902
|
-
) : e.headerAreaModel = new F("header")), e.footerAreaModel || ((
|
|
4945
|
+
) : e.headerAreaModel = new F("header")), e.footerAreaModel || ((h = e.footerData) != null && h.length ? e.footerAreaModel = new P(
|
|
4903
4946
|
"footer",
|
|
4904
4947
|
e.footerData,
|
|
4905
4948
|
e.defaultRowHeights.footer,
|
|
@@ -4908,14 +4951,14 @@ class _ {
|
|
|
4908
4951
|
if (e.rows)
|
|
4909
4952
|
if ((u = e.rows) != null && u.length && N(e.rows[0])) {
|
|
4910
4953
|
const g = e.rows;
|
|
4911
|
-
e.bodyAreaModel = new
|
|
4954
|
+
e.bodyAreaModel = new Ae(
|
|
4912
4955
|
"body",
|
|
4913
4956
|
g,
|
|
4914
4957
|
e.defaultRowHeights.body,
|
|
4915
4958
|
e.columnDefs
|
|
4916
|
-
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new
|
|
4959
|
+
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Re(g));
|
|
4917
4960
|
} else
|
|
4918
|
-
e.bodyAreaModel = new
|
|
4961
|
+
e.bodyAreaModel = new Me(
|
|
4919
4962
|
"body",
|
|
4920
4963
|
e.rows,
|
|
4921
4964
|
e.columnDefs,
|
|
@@ -5007,14 +5050,14 @@ class _ {
|
|
|
5007
5050
|
static buildByTypedRows(e, t, s = new X(), o = 0, i = 0) {
|
|
5008
5051
|
const r = s.defaultRowHeights, n = t[0].property === "CheckboxColumn";
|
|
5009
5052
|
if (e != null && e.length && N(e[0])) {
|
|
5010
|
-
const a = e, c = new
|
|
5053
|
+
const a = e, c = new Ae(
|
|
5011
5054
|
"body",
|
|
5012
5055
|
a,
|
|
5013
5056
|
r.body,
|
|
5014
5057
|
t
|
|
5015
5058
|
);
|
|
5016
|
-
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new
|
|
5017
|
-
headerAreaModel: new P("header", [t.map((
|
|
5059
|
+
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Re(a)), _.createByAreaModelsParam({
|
|
5060
|
+
headerAreaModel: new P("header", [t.map((h) => h.headerLabel)], r.header),
|
|
5018
5061
|
bodyAreaModel: c,
|
|
5019
5062
|
footerAreaModel: new P("footer", [], r.footer),
|
|
5020
5063
|
columnDefs: t,
|
|
@@ -5134,7 +5177,7 @@ class _ {
|
|
|
5134
5177
|
* @return A new instance of `TableModel` is created using the provided parameters.
|
|
5135
5178
|
* If a parameter isn't provided, the default value is used.
|
|
5136
5179
|
*/
|
|
5137
|
-
static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, n = new G(), l, a = [], c = -1,
|
|
5180
|
+
static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, n = new G(), l, a = [], c = -1, h) {
|
|
5138
5181
|
return new se(
|
|
5139
5182
|
e,
|
|
5140
5183
|
t,
|
|
@@ -5146,7 +5189,7 @@ class _ {
|
|
|
5146
5189
|
l,
|
|
5147
5190
|
a,
|
|
5148
5191
|
c,
|
|
5149
|
-
|
|
5192
|
+
h
|
|
5150
5193
|
);
|
|
5151
5194
|
}
|
|
5152
5195
|
/**
|
|
@@ -5251,11 +5294,11 @@ class _ {
|
|
|
5251
5294
|
static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new G(), l, a = []) {
|
|
5252
5295
|
let c;
|
|
5253
5296
|
t != null && t.length ? c = new P("header", t, n.header, l) : l != null && l.length ? c = new P("header", [l.map((f) => f.headerLabel)], n.header, l) : c = new F();
|
|
5254
|
-
const
|
|
5297
|
+
const h = s ? new P("footer", s, n.footer, l) : new F(), u = new Me("body", e, l, n.body);
|
|
5255
5298
|
return new se(
|
|
5256
5299
|
c,
|
|
5257
5300
|
u,
|
|
5258
|
-
|
|
5301
|
+
h,
|
|
5259
5302
|
o,
|
|
5260
5303
|
i,
|
|
5261
5304
|
r,
|
|
@@ -5265,7 +5308,7 @@ class _ {
|
|
|
5265
5308
|
);
|
|
5266
5309
|
}
|
|
5267
5310
|
}
|
|
5268
|
-
const
|
|
5311
|
+
const Ss = [
|
|
5269
5312
|
"COPY_2_CLIPBOARD",
|
|
5270
5313
|
"START_EDITING",
|
|
5271
5314
|
"TOGGLE_SELECTION",
|
|
@@ -5283,17 +5326,17 @@ const xs = [
|
|
|
5283
5326
|
// "PAGEUP_PRESSED",
|
|
5284
5327
|
// "PAGEDOWN_PRESSED"
|
|
5285
5328
|
];
|
|
5286
|
-
class
|
|
5329
|
+
class It {
|
|
5287
5330
|
constructor(e, t) {
|
|
5288
5331
|
this.tableModel = e, this.tableOptions = t;
|
|
5289
5332
|
}
|
|
5290
5333
|
}
|
|
5291
|
-
class
|
|
5334
|
+
class kt {
|
|
5292
5335
|
constructor(e, t, s, o, i, r, n) {
|
|
5293
5336
|
this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = s, this.filter = o, this.sorting = i, this.startIndex = r, this.endIndex = n;
|
|
5294
5337
|
}
|
|
5295
5338
|
}
|
|
5296
|
-
class
|
|
5339
|
+
class Cs extends kt {
|
|
5297
5340
|
constructor(e, t, s, o, i, r, n, l) {
|
|
5298
5341
|
super(
|
|
5299
5342
|
e,
|
|
@@ -5306,30 +5349,30 @@ class ws extends Tt {
|
|
|
5306
5349
|
), this.rows = l;
|
|
5307
5350
|
}
|
|
5308
5351
|
}
|
|
5309
|
-
class
|
|
5352
|
+
class Dt {
|
|
5310
5353
|
constructor(e, t) {
|
|
5311
5354
|
this.value = e, this.label = t;
|
|
5312
5355
|
}
|
|
5313
5356
|
}
|
|
5314
|
-
class
|
|
5357
|
+
class vs {
|
|
5315
5358
|
constructor(e, t) {
|
|
5316
5359
|
this.index = e, this.px = t;
|
|
5317
5360
|
}
|
|
5318
5361
|
}
|
|
5319
|
-
const
|
|
5362
|
+
const As = { body: ["ge-table-text-align-left"] }, Rs = { body: ["ge-table-text-align-center"] }, Es = { body: ["ge-table-text-align-right"] }, Ms = {
|
|
5320
5363
|
header: ["ge-table-text-align-left"],
|
|
5321
5364
|
body: ["ge-table-text-align-left"],
|
|
5322
5365
|
footer: ["ge-table-text-align-left"]
|
|
5323
|
-
},
|
|
5366
|
+
}, Ts = {
|
|
5324
5367
|
header: ["ge-table-text-align-center"],
|
|
5325
5368
|
body: ["ge-table-text-align-center"],
|
|
5326
5369
|
footer: ["ge-table-text-align-center"]
|
|
5327
|
-
},
|
|
5370
|
+
}, Is = {
|
|
5328
5371
|
header: ["ge-table-text-align-right"],
|
|
5329
5372
|
body: ["ge-table-text-align-right"],
|
|
5330
5373
|
footer: ["ge-table-text-align-right"]
|
|
5331
5374
|
};
|
|
5332
|
-
class
|
|
5375
|
+
class Te {
|
|
5333
5376
|
render(e, t, s, o, i, r, n) {
|
|
5334
5377
|
if (i.isRowCheckable(t)) {
|
|
5335
5378
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
@@ -5347,16 +5390,16 @@ class Me {
|
|
|
5347
5390
|
}
|
|
5348
5391
|
}
|
|
5349
5392
|
}
|
|
5350
|
-
class
|
|
5393
|
+
class ks {
|
|
5351
5394
|
constructor() {
|
|
5352
|
-
this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new y(50, "px"), this.minWidth = new y(50, "px"), this.maxWidth = new y(100, "px"), this.rendererMap = new I(new
|
|
5395
|
+
this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new y(50, "px"), this.minWidth = new y(50, "px"), this.maxWidth = new y(100, "px"), this.rendererMap = new I(new Te(), new Te(), void 0), this.classes = new I(
|
|
5353
5396
|
[],
|
|
5354
5397
|
["ge-table-text-align-left"],
|
|
5355
5398
|
[]
|
|
5356
5399
|
);
|
|
5357
5400
|
}
|
|
5358
5401
|
}
|
|
5359
|
-
class
|
|
5402
|
+
class Ds {
|
|
5360
5403
|
/**
|
|
5361
5404
|
* A factory that creates a new AreaObjectMap with the given body renderer.
|
|
5362
5405
|
*
|
|
@@ -5371,17 +5414,17 @@ class Is {
|
|
|
5371
5414
|
);
|
|
5372
5415
|
}
|
|
5373
5416
|
}
|
|
5374
|
-
class
|
|
5417
|
+
class Ps {
|
|
5375
5418
|
constructor(e = "down", t) {
|
|
5376
5419
|
this.status = e, this.originalEvent = t;
|
|
5377
5420
|
}
|
|
5378
5421
|
}
|
|
5379
|
-
class
|
|
5422
|
+
class Fs {
|
|
5380
5423
|
constructor(e, t, s, o, i = {}) {
|
|
5381
5424
|
this.area = e, this.rowIndex = t, this.columnIndex = s, this.value = o, this.cssClasses = i;
|
|
5382
5425
|
}
|
|
5383
5426
|
}
|
|
5384
|
-
class
|
|
5427
|
+
class Ls {
|
|
5385
5428
|
constructor() {
|
|
5386
5429
|
this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, s) => {
|
|
5387
5430
|
if (e && t && s.getRowId) {
|
|
@@ -5406,12 +5449,12 @@ class Ps {
|
|
|
5406
5449
|
};
|
|
5407
5450
|
}
|
|
5408
5451
|
}
|
|
5409
|
-
class
|
|
5452
|
+
class Pt {
|
|
5410
5453
|
constructor(e, t, s, o = !1, i = "normal", r = void 0) {
|
|
5411
5454
|
this.data = e, this.property = t, this.toggle = s, this.closed = o, this.visibility = i, this.children = r, this.impl = "CellGroup";
|
|
5412
5455
|
}
|
|
5413
5456
|
}
|
|
5414
|
-
class
|
|
5457
|
+
class Ft extends Pt {
|
|
5415
5458
|
constructor(e, t = 0, s = 0, o) {
|
|
5416
5459
|
super(
|
|
5417
5460
|
e.data,
|
|
@@ -5536,7 +5579,7 @@ class T {
|
|
|
5536
5579
|
static buildGroupExts(e, t = [], s = 0, o) {
|
|
5537
5580
|
let i;
|
|
5538
5581
|
for (let r = 0; r < e.length; r++) {
|
|
5539
|
-
const n = e[r], l = new
|
|
5582
|
+
const n = e[r], l = new Ft(n, s, r, o);
|
|
5540
5583
|
i && (l.leftNeighbour = i, i.rightNeighbour = l), t.push(l), n.children && (l.children = T.buildGroupExts(n.children, [], s + 1, l)), i = l;
|
|
5541
5584
|
}
|
|
5542
5585
|
return t;
|
|
@@ -5578,7 +5621,7 @@ class T {
|
|
|
5578
5621
|
e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length && T.iterateThrowColumns(e, o.children);
|
|
5579
5622
|
}
|
|
5580
5623
|
}
|
|
5581
|
-
class
|
|
5624
|
+
class Os {
|
|
5582
5625
|
constructor() {
|
|
5583
5626
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
5584
5627
|
}
|
|
@@ -5655,8 +5698,8 @@ const Z = class Z {
|
|
|
5655
5698
|
render(e, t, s, o, i, r, n) {
|
|
5656
5699
|
const l = r != null && r.data ? r.data : "";
|
|
5657
5700
|
if (r) {
|
|
5658
|
-
const { toggle: a, visibility: c, closed:
|
|
5659
|
-
this.addText(e, o, t, s, l, u), a && c !== "always" && this.addArrowDiv(n, e, !
|
|
5701
|
+
const { toggle: a, visibility: c, closed: h } = r, u = a ? Z.toggleHeaderGroup : "";
|
|
5702
|
+
this.addText(e, o, t, s, l, u), a && c !== "always" && this.addArrowDiv(n, e, !h, t, s, o, u);
|
|
5660
5703
|
} else
|
|
5661
5704
|
this.addText(e, o, t, s, l, "");
|
|
5662
5705
|
}
|
|
@@ -5673,8 +5716,8 @@ const Z = class Z {
|
|
|
5673
5716
|
e.addClass(l, "ge-table-toggle-icon-div"), e.setStyle(l, "display", "inline-block"), e.setStyle(l, "position", ""), e.setStyle(l, "width", "20px"), e.setStyle(l, "background", "transparent"), e.setStyle(l, "cursor", "pointer"), e.setAttribute(l, "data-row-index", `${o}`), e.setAttribute(l, "data-col-index", `${i}`), e.setAttribute(l, "data-area", `${r}`), e.setAttribute(l, "data-ge-action", `${n}`);
|
|
5674
5717
|
let a;
|
|
5675
5718
|
s ? a = this.headerGroupOptions.iconExpanded : a = this.headerGroupOptions.iconCollapsed;
|
|
5676
|
-
const c = a.content,
|
|
5677
|
-
e.appendChild(l,
|
|
5719
|
+
const c = a.content, h = e.createText(c);
|
|
5720
|
+
e.appendChild(l, h), a.style && this.applyStyleString(e, l, a.style);
|
|
5678
5721
|
for (const u of a.classes)
|
|
5679
5722
|
e.addClass(l, u);
|
|
5680
5723
|
return e.appendChild(t, l), l;
|
|
@@ -5689,7 +5732,7 @@ const Z = class Z {
|
|
|
5689
5732
|
};
|
|
5690
5733
|
Z.toggleHeaderGroup = "toggleHeaderGroup";
|
|
5691
5734
|
let le = Z;
|
|
5692
|
-
class
|
|
5735
|
+
class $s {
|
|
5693
5736
|
constructor(e = "header", t, s = [], o, i = new fe()) {
|
|
5694
5737
|
this.areaIdent = e, this.groups = t, this.columnDefs = s, this.defaultRowHeight = o, this.headerGroupOptions = i, this.gammaCells = !0, this.arr = [], this.groupExts = [], this.cellGroupExtCellRenderer = new le(this.headerGroupOptions), this.groupExts = T.buildGroupExts(t), this.init();
|
|
5695
5738
|
}
|
|
@@ -5789,24 +5832,24 @@ class Ls {
|
|
|
5789
5832
|
return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()), T.buildColumnDefs(this.groupExts);
|
|
5790
5833
|
}
|
|
5791
5834
|
}
|
|
5792
|
-
class
|
|
5835
|
+
class _s {
|
|
5793
5836
|
filterPredict(e, t, s = this.objectToString.bind(this)) {
|
|
5794
5837
|
if (!e)
|
|
5795
5838
|
return !1;
|
|
5796
5839
|
if (!t)
|
|
5797
5840
|
return !0;
|
|
5798
5841
|
t = t.toLowerCase();
|
|
5799
|
-
const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((
|
|
5842
|
+
const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((h) => h !== o && h !== i && h !== ""), n = r.filter((h) => !h.startsWith(o) && !h.startsWith(i)), l = r.filter((h) => h.startsWith(o)).map((h) => h.replace(/\+/g, "")), a = r.filter((h) => h.startsWith(i)).map((h) => h.replace(/-/g, ""));
|
|
5800
5843
|
let c = !n.length;
|
|
5801
|
-
for (let
|
|
5802
|
-
(c || s(e).includes(n[
|
|
5844
|
+
for (let h = 0; h < n.length; h++)
|
|
5845
|
+
(c || s(e).includes(n[h])) && (c = !0);
|
|
5803
5846
|
if (!c)
|
|
5804
5847
|
return !1;
|
|
5805
|
-
for (let
|
|
5806
|
-
if (!s(e).includes(l[
|
|
5848
|
+
for (let h = 0; h < l.length; h++)
|
|
5849
|
+
if (!s(e).includes(l[h]))
|
|
5807
5850
|
return !1;
|
|
5808
|
-
for (let
|
|
5809
|
-
if (s(e).includes(a[
|
|
5851
|
+
for (let h = 0; h < a.length; h++)
|
|
5852
|
+
if (s(e).includes(a[h]))
|
|
5810
5853
|
return !1;
|
|
5811
5854
|
return !0;
|
|
5812
5855
|
}
|
|
@@ -5818,10 +5861,10 @@ class Os {
|
|
|
5818
5861
|
t = t.toLowerCase();
|
|
5819
5862
|
const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((c) => c !== o && c !== i && c !== ""), n = r.filter((c) => !c.startsWith(o) && !c.startsWith(i)), l = r.filter((c) => c.startsWith(o)).map((c) => c.replace(/\+/g, "")), a = r.filter((c) => c.startsWith(i)).map((c) => c.replace(/-/g, ""));
|
|
5820
5863
|
return e == null ? void 0 : e.filter((c) => {
|
|
5821
|
-
let
|
|
5864
|
+
let h = !n.length;
|
|
5822
5865
|
for (let u = 0; u < n.length; u++)
|
|
5823
|
-
(
|
|
5824
|
-
if (!
|
|
5866
|
+
(h || s(c).includes(n[u])) && (h = !0);
|
|
5867
|
+
if (!h)
|
|
5825
5868
|
return !1;
|
|
5826
5869
|
for (let u = 0; u < l.length; u++)
|
|
5827
5870
|
if (!s(c).includes(l[u]))
|
|
@@ -5843,19 +5886,19 @@ class Os {
|
|
|
5843
5886
|
return t.join(" ").toLowerCase();
|
|
5844
5887
|
}
|
|
5845
5888
|
}
|
|
5846
|
-
class
|
|
5889
|
+
class Bs {
|
|
5847
5890
|
static bodyRenderer(e) {
|
|
5848
5891
|
return new I(void 0, e, void 0);
|
|
5849
5892
|
}
|
|
5850
5893
|
}
|
|
5851
|
-
class
|
|
5894
|
+
class Hs {
|
|
5852
5895
|
constructor(e, t = !0, s = !1) {
|
|
5853
5896
|
this.property = e, this.skipCheckableCheck = t, this.readonly = s;
|
|
5854
5897
|
}
|
|
5855
5898
|
render(e, t, s, o, i, r, n) {
|
|
5856
5899
|
if (this.readonly || this.skipCheckableCheck || i.isRowCheckable(t)) {
|
|
5857
5900
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
5858
|
-
const l = i.getRowByIndex(t), c = i.getValueByT(l, this.property) === !0 ? "checked" : "",
|
|
5901
|
+
const l = i.getRowByIndex(t), c = i.getValueByT(l, this.property) === !0 ? "checked" : "", h = this.readonly ? " readonly " : "";
|
|
5859
5902
|
if (n.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
|
|
5860
5903
|
<input
|
|
5861
5904
|
type="checkbox"
|
|
@@ -5865,7 +5908,7 @@ class _s {
|
|
|
5865
5908
|
data-property-index="${this.property}"
|
|
5866
5909
|
data-input-type="checkbox"
|
|
5867
5910
|
${c}
|
|
5868
|
-
${
|
|
5911
|
+
${h}
|
|
5869
5912
|
class="ge-input-checkbox">`, !this.readonly) {
|
|
5870
5913
|
const u = e.querySelector(".ge-input-checkbox");
|
|
5871
5914
|
u && u.addEventListener("click", (f, p) => (l[this.property] = !l[this.property], !0));
|
|
@@ -5873,12 +5916,12 @@ class _s {
|
|
|
5873
5916
|
}
|
|
5874
5917
|
}
|
|
5875
5918
|
}
|
|
5876
|
-
class
|
|
5919
|
+
class Vs {
|
|
5877
5920
|
render(e, t, s, o, i, r, n) {
|
|
5878
5921
|
r && (e.innerText = new Date(r).toISOString());
|
|
5879
5922
|
}
|
|
5880
5923
|
}
|
|
5881
|
-
class
|
|
5924
|
+
class Ws {
|
|
5882
5925
|
constructor() {
|
|
5883
5926
|
this.formatter = new Intl.DateTimeFormat("de-DE", {
|
|
5884
5927
|
year: "numeric",
|
|
@@ -5901,17 +5944,17 @@ class Hs {
|
|
|
5901
5944
|
}
|
|
5902
5945
|
}
|
|
5903
5946
|
}
|
|
5904
|
-
class
|
|
5947
|
+
class Ns {
|
|
5905
5948
|
render(e, t, s, o, i, r, n) {
|
|
5906
5949
|
r && (e.innerText = new Date(r).toLocaleDateString());
|
|
5907
5950
|
}
|
|
5908
5951
|
}
|
|
5909
|
-
class
|
|
5952
|
+
class Gs {
|
|
5910
5953
|
render(e, t, s, o, i, r, n) {
|
|
5911
5954
|
r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
|
|
5912
5955
|
}
|
|
5913
5956
|
}
|
|
5914
|
-
class
|
|
5957
|
+
class zs {
|
|
5915
5958
|
constructor(e = 100, t = !1) {
|
|
5916
5959
|
this.maxValue = e, this.labelVisible = t;
|
|
5917
5960
|
}
|
|
@@ -5941,17 +5984,17 @@ class Ns {
|
|
|
5941
5984
|
}
|
|
5942
5985
|
}
|
|
5943
5986
|
}
|
|
5944
|
-
class
|
|
5987
|
+
class js {
|
|
5945
5988
|
render(e, t, s, o, i, r, n) {
|
|
5946
5989
|
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 = "";
|
|
5947
5990
|
}
|
|
5948
5991
|
}
|
|
5949
|
-
class
|
|
5992
|
+
class Us {
|
|
5950
5993
|
render(e, t, s, o, i, r, n) {
|
|
5951
5994
|
r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
|
|
5952
5995
|
}
|
|
5953
5996
|
}
|
|
5954
|
-
class
|
|
5997
|
+
class Ys {
|
|
5955
5998
|
constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
5956
5999
|
this.min = e, this.max = t;
|
|
5957
6000
|
}
|
|
@@ -5962,7 +6005,7 @@ class js {
|
|
|
5962
6005
|
</div>`, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && n.addClass(e, "ge-cell-error"));
|
|
5963
6006
|
}
|
|
5964
6007
|
}
|
|
5965
|
-
class
|
|
6008
|
+
class Ks {
|
|
5966
6009
|
constructor(e) {
|
|
5967
6010
|
this.property = e;
|
|
5968
6011
|
}
|
|
@@ -5973,15 +6016,15 @@ class Us {
|
|
|
5973
6016
|
const c = [];
|
|
5974
6017
|
for (let u = 0; u < a; u++)
|
|
5975
6018
|
c.push("★");
|
|
5976
|
-
const
|
|
6019
|
+
const h = c.join(" ");
|
|
5977
6020
|
e.innerHTML = `
|
|
5978
6021
|
<div class="ge-table-label-div" data-row-index="${t}" data-col-index="${s}" data-area="${o}" style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
5979
|
-
<div class="ge-table-label" data-row-index="${t}" data-col-index="${s}" data-area="${o}">${
|
|
6022
|
+
<div class="ge-table-label" data-row-index="${t}" data-col-index="${s}" data-area="${o}">${h}</div>
|
|
5980
6023
|
</div>`;
|
|
5981
6024
|
}
|
|
5982
6025
|
}
|
|
5983
6026
|
}
|
|
5984
|
-
class
|
|
6027
|
+
class Xs {
|
|
5985
6028
|
render(e, t, s, o, i, r, n) {
|
|
5986
6029
|
if (r != null && r.length) {
|
|
5987
6030
|
const l = n.createElement("div");
|
|
@@ -5994,7 +6037,7 @@ class Ys {
|
|
|
5994
6037
|
e.innerText = "";
|
|
5995
6038
|
}
|
|
5996
6039
|
}
|
|
5997
|
-
class
|
|
6040
|
+
class Js {
|
|
5998
6041
|
constructor(e, t = 100, s = !1) {
|
|
5999
6042
|
this.property = e, this.maxValue = t, this.labelVisible = s;
|
|
6000
6043
|
}
|
|
@@ -6002,13 +6045,13 @@ class Ks {
|
|
|
6002
6045
|
n.addClass(e, "ge-star-rating-div");
|
|
6003
6046
|
const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
|
|
6004
6047
|
if (!isNaN(a)) {
|
|
6005
|
-
const c = a * 100 / this.maxValue,
|
|
6048
|
+
const c = a * 100 / this.maxValue, h = this.labelVisible ? Math.round(c) + "%" : "";
|
|
6006
6049
|
e.innerHTML = `
|
|
6007
6050
|
<div class="ge-table-label-div"
|
|
6008
6051
|
data-row-index="${t}"
|
|
6009
6052
|
data-col-index="${s}"
|
|
6010
6053
|
data-area="${o}"
|
|
6011
|
-
title="${
|
|
6054
|
+
title="${h}"
|
|
6012
6055
|
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
6013
6056
|
<div class="ge-table-progress-container"
|
|
6014
6057
|
style="width:100%;height:50%;padding:0;margin-top:6px;"
|
|
@@ -6026,7 +6069,7 @@ class Ks {
|
|
|
6026
6069
|
}
|
|
6027
6070
|
}
|
|
6028
6071
|
}
|
|
6029
|
-
class
|
|
6072
|
+
class qs {
|
|
6030
6073
|
render(e, t, s, o, i, r, n) {
|
|
6031
6074
|
if (r) {
|
|
6032
6075
|
e.innerHTML = `
|
|
@@ -6046,7 +6089,7 @@ class Xs {
|
|
|
6046
6089
|
}
|
|
6047
6090
|
}
|
|
6048
6091
|
}
|
|
6049
|
-
class
|
|
6092
|
+
class We {
|
|
6050
6093
|
constructor(e, t, s, o, i, r) {
|
|
6051
6094
|
this.action = e, this.area = t, this.areaModel = s, this.rowIndex = o, this.columnIndex = i, this.id = r;
|
|
6052
6095
|
}
|
|
@@ -6056,14 +6099,14 @@ class $ {
|
|
|
6056
6099
|
this.action = e, this.label = t, this.icon = s, this.elementClass = o, this.elementType = i, this.enabled = r;
|
|
6057
6100
|
}
|
|
6058
6101
|
}
|
|
6059
|
-
class
|
|
6102
|
+
class Lt {
|
|
6060
6103
|
constructor(e, t) {
|
|
6061
6104
|
this.actionEventListener = e, this.crudActions = t;
|
|
6062
6105
|
}
|
|
6063
6106
|
render(e, t, s, o, i, r, n) {
|
|
6064
6107
|
n.addClass(e, "ge-table-row-action-div");
|
|
6065
6108
|
const l = r, c = this.getCrudActions(r).map(
|
|
6066
|
-
(
|
|
6109
|
+
(h) => h.elementType === "button" ? this.buildButtonHtml(h, o, t, s, l) : this.buildLinkHtml(h, o, t, s, l)
|
|
6067
6110
|
);
|
|
6068
6111
|
e.innerHTML = c.join(""), this.addClickEventListeners(e, o, i);
|
|
6069
6112
|
}
|
|
@@ -6113,7 +6156,7 @@ class Pt {
|
|
|
6113
6156
|
const s = e.getAttribute("data-area"), o = e.getAttribute("data-row-index"), i = e.getAttribute("data-col-index"), r = e.getAttribute("data-action") ?? "unknown", n = e.getAttribute("data-id") ?? "unknown";
|
|
6114
6157
|
if (s && o && i) {
|
|
6115
6158
|
const l = Q(s), a = Number(o), c = Number(i);
|
|
6116
|
-
return new
|
|
6159
|
+
return new We(r, l, t, a, c, n);
|
|
6117
6160
|
}
|
|
6118
6161
|
return null;
|
|
6119
6162
|
}
|
|
@@ -6121,16 +6164,16 @@ class Pt {
|
|
|
6121
6164
|
return Array.isArray(e) && e.every((t) => t instanceof $) ? e : this.crudActions;
|
|
6122
6165
|
}
|
|
6123
6166
|
}
|
|
6124
|
-
const
|
|
6125
|
-
return
|
|
6167
|
+
const Zs = function(d, e, t) {
|
|
6168
|
+
return d ? Number(d) : "";
|
|
6126
6169
|
};
|
|
6127
|
-
class
|
|
6170
|
+
class Ne {
|
|
6128
6171
|
constructor(e) {
|
|
6129
6172
|
this.options = e;
|
|
6130
6173
|
}
|
|
6131
6174
|
static create(e) {
|
|
6132
|
-
return new
|
|
6133
|
-
e.map((t) => new
|
|
6175
|
+
return new Ne(
|
|
6176
|
+
e.map((t) => new Dt(t, t))
|
|
6134
6177
|
);
|
|
6135
6178
|
}
|
|
6136
6179
|
render(e, t, s, o, i, r, n) {
|
|
@@ -6138,9 +6181,9 @@ class We {
|
|
|
6138
6181
|
n.addClass(e, "ge-table-row-select-div");
|
|
6139
6182
|
const l = i.getValueAt(t, s);
|
|
6140
6183
|
let a = [];
|
|
6141
|
-
for (let
|
|
6142
|
-
const u =
|
|
6143
|
-
a.push(`<option value="${
|
|
6184
|
+
for (let h of this.options) {
|
|
6185
|
+
const u = h.value === l ? " selected " : "";
|
|
6186
|
+
a.push(`<option value="${h.value}" ${u}>${h.label}</option>`);
|
|
6144
6187
|
}
|
|
6145
6188
|
const c = a.join("");
|
|
6146
6189
|
e.innerHTML = `
|
|
@@ -6156,7 +6199,7 @@ class We {
|
|
|
6156
6199
|
}
|
|
6157
6200
|
}
|
|
6158
6201
|
}
|
|
6159
|
-
class
|
|
6202
|
+
class Qs extends ge {
|
|
6160
6203
|
constructor(e) {
|
|
6161
6204
|
super("row", "multi"), this.model = e;
|
|
6162
6205
|
}
|
|
@@ -6239,12 +6282,12 @@ class qs extends ge {
|
|
|
6239
6282
|
this.isSelected(e, 0) ? this.unselectRow(e) : this.selectRow(e);
|
|
6240
6283
|
}
|
|
6241
6284
|
}
|
|
6242
|
-
class
|
|
6285
|
+
class eo {
|
|
6243
6286
|
constructor(e, t, s) {
|
|
6244
6287
|
this.r = e, this.g = t, this.b = s;
|
|
6245
6288
|
}
|
|
6246
6289
|
}
|
|
6247
|
-
class
|
|
6290
|
+
class Ie {
|
|
6248
6291
|
constructor(e, t, s, o) {
|
|
6249
6292
|
this.minValue = e, this.minColor = t, this.maxValue = s, this.maxColor = o;
|
|
6250
6293
|
}
|
|
@@ -6258,20 +6301,20 @@ class Y {
|
|
|
6258
6301
|
return `rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(a)})`;
|
|
6259
6302
|
}
|
|
6260
6303
|
static getThreeColorGradientRGB(e, t) {
|
|
6261
|
-
return e < t.middleValue ? Y.getTwoColorGradientRGB(e, new
|
|
6304
|
+
return e < t.middleValue ? Y.getTwoColorGradientRGB(e, new Ie(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? Y.getTwoColorGradientRGB(e, new Ie(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
|
|
6262
6305
|
}
|
|
6263
6306
|
}
|
|
6264
|
-
class
|
|
6307
|
+
class to {
|
|
6265
6308
|
constructor(e, t, s, o, i, r) {
|
|
6266
6309
|
this.minValue = e, this.minColor = t, this.middleValue = s, this.middleColor = o, this.maxValue = i, this.maxColor = r;
|
|
6267
6310
|
}
|
|
6268
6311
|
}
|
|
6269
|
-
class
|
|
6312
|
+
class Ot {
|
|
6270
6313
|
constructor(e = !0, t = !0, s = (r, n) => r * 10 + 10, o = 50, i = 450) {
|
|
6271
6314
|
this.autoCalc = e, this.takeHeaderLabelsIntoAccount = t, this.charCountToWidth = s, this.minWidth = o, this.maxWidth = i;
|
|
6272
6315
|
}
|
|
6273
6316
|
}
|
|
6274
|
-
class
|
|
6317
|
+
class $t {
|
|
6275
6318
|
constructor(e) {
|
|
6276
6319
|
this.object = e;
|
|
6277
6320
|
}
|
|
@@ -6403,7 +6446,7 @@ class oe {
|
|
|
6403
6446
|
return e.replace(/\./g, " ");
|
|
6404
6447
|
}
|
|
6405
6448
|
}
|
|
6406
|
-
class
|
|
6449
|
+
class _t {
|
|
6407
6450
|
constructor() {
|
|
6408
6451
|
this.urls = {
|
|
6409
6452
|
list: {
|
|
@@ -6419,7 +6462,7 @@ class Ot {
|
|
|
6419
6462
|
], this.tableActions = [
|
|
6420
6463
|
new $("CREATE", "Create", "", "", "button"),
|
|
6421
6464
|
new $("DELETE_SELECTED", "Delete Selected", "", "", "button")
|
|
6422
|
-
], this.autoAddActionColumn = !0, this.columnWidths = new
|
|
6465
|
+
], this.autoAddActionColumn = !0, this.columnWidths = new Ot(), this.calcFixedRightColumnCount = (e) => e > 6 ? 1 : 0, this.getHeadersInit = () => ({}), this.getIdKey = () => "id", this.getIdByObject = (e) => (this.getIdKey() ?? "id") in e ? e.id : e, this.fetchList = (e) => {
|
|
6423
6466
|
const t = e.getHeadersInit ? e.getHeadersInit() : {};
|
|
6424
6467
|
let s = e.urls.list.url, o = e.urls.list.method ?? "GET";
|
|
6425
6468
|
return fetch(s, {
|
|
@@ -6470,9 +6513,9 @@ class Ot {
|
|
|
6470
6513
|
};
|
|
6471
6514
|
}
|
|
6472
6515
|
}
|
|
6473
|
-
class
|
|
6516
|
+
class so {
|
|
6474
6517
|
constructor() {
|
|
6475
|
-
this.crudOptions = new
|
|
6518
|
+
this.crudOptions = new _t(), this.listenActionEvent = (e) => {
|
|
6476
6519
|
};
|
|
6477
6520
|
}
|
|
6478
6521
|
createTableModel(e, t, s = (i) => {
|
|
@@ -6481,7 +6524,7 @@ class eo {
|
|
|
6481
6524
|
this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
|
|
6482
6525
|
var r, n, l, a;
|
|
6483
6526
|
if (t.rows = i, i != null && i.length) {
|
|
6484
|
-
const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((x) => x.property) : this.extractProperties(i[0]),
|
|
6527
|
+
const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((x) => x.property) : this.extractProperties(i[0]), h = new ge("row", "multi"), u = () => h;
|
|
6485
6528
|
this.tableOptions = {
|
|
6486
6529
|
...new X(),
|
|
6487
6530
|
...t.tableOptions,
|
|
@@ -6498,12 +6541,12 @@ class eo {
|
|
|
6498
6541
|
let x = new H(
|
|
6499
6542
|
"id",
|
|
6500
6543
|
"Actions",
|
|
6501
|
-
|
|
6544
|
+
Et,
|
|
6502
6545
|
new I(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
|
|
6503
6546
|
);
|
|
6504
6547
|
x.rendererMap = new I(
|
|
6505
6548
|
void 0,
|
|
6506
|
-
new
|
|
6549
|
+
new Lt(this, e.singleRowActions),
|
|
6507
6550
|
void 0
|
|
6508
6551
|
), p.push(x);
|
|
6509
6552
|
}
|
|
@@ -6515,14 +6558,14 @@ class eo {
|
|
|
6515
6558
|
fixedLeftColumnCount: m,
|
|
6516
6559
|
fixedRightColumnCount: g
|
|
6517
6560
|
}), this.tableModel.getSelectionModel = u, this.bodyModel = (a = this.tableModel) == null ? void 0 : a.getBodyModel();
|
|
6518
|
-
const b = new
|
|
6561
|
+
const b = new It(this.tableModel, this.tableOptions);
|
|
6519
6562
|
s(b);
|
|
6520
6563
|
}
|
|
6521
6564
|
});
|
|
6522
6565
|
}
|
|
6523
6566
|
openDialogForCreate() {
|
|
6524
6567
|
if (this.bodyModel) {
|
|
6525
|
-
const e = new
|
|
6568
|
+
const e = new We("CREATE", "body", this.bodyModel, -1, -1, null);
|
|
6526
6569
|
this.onActionEvent(e);
|
|
6527
6570
|
}
|
|
6528
6571
|
}
|
|
@@ -6530,7 +6573,7 @@ class eo {
|
|
|
6530
6573
|
var t, s, o, i;
|
|
6531
6574
|
if (this.listenActionEvent && this.listenActionEvent(e), e.action === "VIEW") {
|
|
6532
6575
|
let r = e.id;
|
|
6533
|
-
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new
|
|
6576
|
+
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new $t(n).openDialog(), n));
|
|
6534
6577
|
} else if (e.action === "EDIT") {
|
|
6535
6578
|
let r = e.id;
|
|
6536
6579
|
const n = this.crudOptions.getIdKey() ?? "id";
|
|
@@ -6565,8 +6608,8 @@ class eo {
|
|
|
6565
6608
|
} else if (e.action === "DELETE") {
|
|
6566
6609
|
let r = e.id;
|
|
6567
6610
|
(i = this.crudOptions) == null || i.deleteItem(this.crudOptions, r).then((n) => {
|
|
6568
|
-
var l, a, c,
|
|
6569
|
-
return (l = this.bodyModel) == null || l.filterRowsByPredict((f) => f.id != r), (c = (a = this.tableModel) == null ? void 0 : a.getTableScope()) == null || c.clearSelection(!0), (u = (
|
|
6611
|
+
var l, a, c, h, u;
|
|
6612
|
+
return (l = this.bodyModel) == null || l.filterRowsByPredict((f) => f.id != r), (c = (a = this.tableModel) == null ? void 0 : a.getTableScope()) == null || c.clearSelection(!0), (u = (h = this.tableModel) == null ? void 0 : h.getTableScope()) == null || u.repaintHard(), n;
|
|
6570
6613
|
});
|
|
6571
6614
|
}
|
|
6572
6615
|
}
|
|
@@ -6577,20 +6620,20 @@ class eo {
|
|
|
6577
6620
|
return new Array(o).fill(200);
|
|
6578
6621
|
const i = e.length ?? 0, r = new Array(o).fill(0);
|
|
6579
6622
|
for (let c = 0; c < i; c++)
|
|
6580
|
-
for (let
|
|
6581
|
-
const u = t[
|
|
6582
|
-
p > r[
|
|
6623
|
+
for (let h = 0; h < o; h++) {
|
|
6624
|
+
const u = t[h], f = this.getValueByT(e[c], u), p = (f == null ? void 0 : f.toString().length) || 0;
|
|
6625
|
+
p > r[h] && (r[h] = p);
|
|
6583
6626
|
}
|
|
6584
6627
|
if (this.crudOptions.columnWidths.takeHeaderLabelsIntoAccount)
|
|
6585
6628
|
for (let c = 0; c < o; c++) {
|
|
6586
|
-
const
|
|
6587
|
-
|
|
6629
|
+
const h = s[c].length || 0;
|
|
6630
|
+
h > r[c] && (r[c] = h);
|
|
6588
6631
|
}
|
|
6589
6632
|
const n = this.crudOptions.columnWidths.minWidth, l = this.crudOptions.columnWidths.maxWidth;
|
|
6590
|
-
return r.map((c,
|
|
6633
|
+
return r.map((c, h) => Math.min(
|
|
6591
6634
|
l,
|
|
6592
6635
|
Math.max(
|
|
6593
|
-
this.crudOptions.columnWidths.charCountToWidth(c,
|
|
6636
|
+
this.crudOptions.columnWidths.charCountToWidth(c, h),
|
|
6594
6637
|
n
|
|
6595
6638
|
)
|
|
6596
6639
|
));
|
|
@@ -6611,190 +6654,192 @@ class eo {
|
|
|
6611
6654
|
return s;
|
|
6612
6655
|
}
|
|
6613
6656
|
}
|
|
6614
|
-
class
|
|
6657
|
+
class oo {
|
|
6615
6658
|
constructor(e, t) {
|
|
6616
6659
|
this.method = e, this.url = t;
|
|
6617
6660
|
}
|
|
6618
6661
|
}
|
|
6619
6662
|
export {
|
|
6620
6663
|
he as AbstractAreaModel,
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6664
|
+
We as ActionEvent,
|
|
6665
|
+
Lt as ActionsCellRenderer,
|
|
6666
|
+
Le as AnyPropertyType,
|
|
6667
|
+
Ds as AreaMapFactory,
|
|
6668
|
+
Os as AreaModel,
|
|
6626
6669
|
P as AreaModelArrayOfArrays,
|
|
6627
|
-
|
|
6670
|
+
$s as AreaModelCellGroups,
|
|
6628
6671
|
F as AreaModelHidden,
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6672
|
+
He as AreaModelObjectArray,
|
|
6673
|
+
Me as AreaModelObjectArrayWithColumndefs,
|
|
6674
|
+
Ae as AreaModelTree,
|
|
6632
6675
|
I as AreaObjectMap,
|
|
6633
6676
|
B as ArrayPropertyType,
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6677
|
+
Ls as AutoRestoreOptions,
|
|
6678
|
+
Ht as AvoidDoubleExecution,
|
|
6679
|
+
Ye as BooleanPropertyType,
|
|
6680
|
+
Pt as CellGroup,
|
|
6681
|
+
Ft as CellGroupExt,
|
|
6639
6682
|
le as CellGroupExtCellRenderer,
|
|
6640
6683
|
R as CellRange,
|
|
6641
6684
|
T as CellgroupFactory,
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6685
|
+
Hs as CheckboxBooleanPropertyCellRenderer,
|
|
6686
|
+
Te as CheckboxCellRenderer,
|
|
6687
|
+
ks as CheckboxColumnDef,
|
|
6688
|
+
Tt as CheckboxModel,
|
|
6689
|
+
Cs as ChunkData,
|
|
6690
|
+
at as ColAndRowspanModel,
|
|
6691
|
+
it as CollapsedExpandedData,
|
|
6692
|
+
eo as ColorRgb,
|
|
6650
6693
|
H as ColumnDef,
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6694
|
+
Vt as ColumnDefGenerator,
|
|
6695
|
+
Ot as ColumnWidths,
|
|
6696
|
+
Qe as ConvenienceDomService,
|
|
6654
6697
|
J as CopyService,
|
|
6655
6698
|
$ as CrudAction,
|
|
6656
6699
|
oe as CrudObjectEdit,
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6700
|
+
$t as CrudObjectView,
|
|
6701
|
+
_t as CrudOptions,
|
|
6702
|
+
so as CrudTableModelFactory,
|
|
6703
|
+
we as CssVars,
|
|
6704
|
+
Ws as DateToIntlDDMMYYYYCellRenderer,
|
|
6705
|
+
Vs as DateToIsoCellRenderer,
|
|
6706
|
+
Ns as DateToLocaleDateCellRenderer,
|
|
6707
|
+
Us as DateToTecCellRenderer,
|
|
6665
6708
|
G as DefaultRowHeights,
|
|
6666
|
-
|
|
6709
|
+
lt as EleScope,
|
|
6667
6710
|
re as EventAdapter,
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6711
|
+
Gt as EventCheckboxChangedHandler,
|
|
6712
|
+
At as ExcelService,
|
|
6713
|
+
Ce as FalseFn,
|
|
6714
|
+
wt as FocusModel,
|
|
6715
|
+
ut as GeCellIndices,
|
|
6673
6716
|
Y as GeCssColorUtil,
|
|
6674
|
-
|
|
6675
|
-
|
|
6717
|
+
_s as GeFilterService,
|
|
6718
|
+
Ps as GeKeyEvent,
|
|
6676
6719
|
pe as GeModelChangeEvent,
|
|
6677
6720
|
de as GeMouseEvent,
|
|
6678
6721
|
L as GeoData,
|
|
6679
6722
|
O as Icon,
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6723
|
+
vs as IndexAndPx,
|
|
6724
|
+
xt as InputCellRenderer,
|
|
6725
|
+
ht as InputHandler,
|
|
6683
6726
|
be as JsonService,
|
|
6684
6727
|
V as LicenseManager,
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6728
|
+
Gs as MaleFemaleToIconCellRenderer,
|
|
6729
|
+
tt as MouseHandler,
|
|
6730
|
+
et as MouseTargetData,
|
|
6731
|
+
Qs as MultiRowsSelectionModel,
|
|
6732
|
+
ze as NullPropertyType,
|
|
6733
|
+
zs as NumberCellProgressBarCellRenderer,
|
|
6734
|
+
Ys as NumberCellRenderer,
|
|
6735
|
+
Ue as NumberPropertyType,
|
|
6693
6736
|
D as ObjectPropertyType,
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6737
|
+
ft as OsxShortcutActionIdMapping,
|
|
6738
|
+
ke as PROPERTY_TYPE_KEY_ANY,
|
|
6739
|
+
Fe as PROPERTY_TYPE_KEY_ARRAY,
|
|
6697
6740
|
ce as PROPERTY_TYPE_KEY_BOOLEAN,
|
|
6698
|
-
|
|
6741
|
+
De as PROPERTY_TYPE_KEY_NULL,
|
|
6699
6742
|
ae as PROPERTY_TYPE_KEY_NUMBER,
|
|
6700
6743
|
j as PROPERTY_TYPE_KEY_OBJECT,
|
|
6701
|
-
|
|
6744
|
+
Pe as PROPERTY_TYPE_KEY_STRING,
|
|
6702
6745
|
z as PROPERTY_TYPE_KEY_UNDEFINED,
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6746
|
+
Ee as Padding,
|
|
6747
|
+
qs as PositiveAndNegativeNumberRenderer,
|
|
6748
|
+
Js as ProgressBarCellRenderer,
|
|
6749
|
+
Oe as PropertyItem,
|
|
6750
|
+
Wt as PropertyTypeService,
|
|
6751
|
+
ct as RenderScope,
|
|
6752
|
+
Bs as Renderer,
|
|
6753
|
+
kt as RequestChunk,
|
|
6754
|
+
vt as ResizeHandler,
|
|
6755
|
+
Nt as SchemeGenerator,
|
|
6756
|
+
Ne as SelectCellRenderer,
|
|
6714
6757
|
ge as SelectionModel,
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6758
|
+
pt as SelectionService,
|
|
6759
|
+
bt as ShortcutService,
|
|
6760
|
+
Xs as SimpleArrayCellRenderer,
|
|
6761
|
+
yt as SimpleDomService,
|
|
6719
6762
|
y as Size,
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6763
|
+
dt as SortItem,
|
|
6764
|
+
_e as SortedOptions,
|
|
6765
|
+
Ks as StarRatingCellRenderer,
|
|
6766
|
+
rt as StoreStateCollapsedExpandService,
|
|
6767
|
+
ot as StoreStateScrollPosService,
|
|
6768
|
+
nt as StoreStateSortingService,
|
|
6769
|
+
je as StringPropertyType,
|
|
6770
|
+
st as TableApi,
|
|
6771
|
+
Fs as TableCellUpdateEvent,
|
|
6729
6772
|
_ as TableFactory,
|
|
6730
6773
|
se as TableModel,
|
|
6731
|
-
|
|
6774
|
+
It as TableModelAndOptions,
|
|
6732
6775
|
X as TableOptions,
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6776
|
+
Ve as TableScope,
|
|
6777
|
+
to as ThreeColorGradientArg,
|
|
6778
|
+
Re as TreeCheckboxModel,
|
|
6736
6779
|
ne as TreeFactory,
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6780
|
+
$e as TreeOptions,
|
|
6781
|
+
Se as TreeRow,
|
|
6782
|
+
Mt as TreeRowService,
|
|
6783
|
+
js as TrueFalseCellRenderer,
|
|
6784
|
+
Rt as TrueFn,
|
|
6785
|
+
Ie as TwoColorGradientArg,
|
|
6743
6786
|
K as UNIMPORTANT_TYPES,
|
|
6744
6787
|
te as UndefinedPropertyType,
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6788
|
+
oo as UrlInfo,
|
|
6789
|
+
Ke as ValueInfo,
|
|
6790
|
+
Dt as ValueLabel,
|
|
6791
|
+
gt as WindowsShortcutActionIdMapping,
|
|
6792
|
+
Ss as actionIds,
|
|
6793
|
+
Ts as allCenter,
|
|
6794
|
+
Ms as allLeft,
|
|
6795
|
+
Is as allRight,
|
|
6796
|
+
Rs as bodyCenter,
|
|
6797
|
+
As as bodyLeft,
|
|
6798
|
+
Es as bodyRight,
|
|
6799
|
+
xe as createHarmonizedShortcutByKeyboardEvent,
|
|
6800
|
+
Ge as debounce,
|
|
6801
|
+
Zs as editInputPipeForNumber,
|
|
6758
6802
|
ye as entitySuffix,
|
|
6759
|
-
|
|
6803
|
+
qe as firstLetterUppercase,
|
|
6760
6804
|
Q as getAreaIdentByString,
|
|
6761
|
-
|
|
6805
|
+
Xe as getEntityName,
|
|
6806
|
+
mt as harmonizeShortcut,
|
|
6762
6807
|
ie as isAreaModelTree,
|
|
6763
|
-
|
|
6808
|
+
Ze as isCheckboxColumnDef,
|
|
6764
6809
|
N as isTreeRow,
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6773
|
-
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6778
|
-
|
|
6779
|
-
|
|
6780
|
-
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
|
|
6788
|
-
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6796
|
-
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6810
|
+
ws as px0,
|
|
6811
|
+
xs as px10,
|
|
6812
|
+
ds as px100,
|
|
6813
|
+
cs as px110,
|
|
6814
|
+
as as px120,
|
|
6815
|
+
ls as px130,
|
|
6816
|
+
ns as px140,
|
|
6817
|
+
rs as px150,
|
|
6818
|
+
is as px160,
|
|
6819
|
+
os as px170,
|
|
6820
|
+
ss as px180,
|
|
6821
|
+
ts as px190,
|
|
6822
|
+
ys as px20,
|
|
6823
|
+
ve as px200,
|
|
6824
|
+
es as px210,
|
|
6825
|
+
Qt as px220,
|
|
6826
|
+
Zt as px230,
|
|
6827
|
+
qt as px240,
|
|
6828
|
+
Jt as px250,
|
|
6829
|
+
Xt as px260,
|
|
6830
|
+
Kt as px270,
|
|
6831
|
+
Yt as px280,
|
|
6832
|
+
Ut as px290,
|
|
6833
|
+
bs as px30,
|
|
6834
|
+
Et as px300,
|
|
6835
|
+
ms as px40,
|
|
6836
|
+
jt as px400,
|
|
6837
|
+
fs as px50,
|
|
6838
|
+
zt as px500,
|
|
6839
|
+
gs as px60,
|
|
6840
|
+
ps as px70,
|
|
6841
|
+
us as px80,
|
|
6842
|
+
hs as px90,
|
|
6843
|
+
Bt as throttle,
|
|
6844
|
+
Je as trimArraySuffixes
|
|
6800
6845
|
};
|