@guiexpert/table 1.1.60 → 1.1.62
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 +496 -440
- package/lib/table/action/shortcut-util.d.ts +2 -0
- package/lib/table/action/shortcut.service.d.ts +0 -2
- package/lib/table/data/options/table-options.d.ts +1 -0
- package/lib/table/data/options/table-options.if.d.ts +1 -0
- package/lib/table/data/tablemodel/areamodel/area-model-object-array.d.ts +8 -0
- 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.focusedRowIndex = 0, 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];
|
|
@@ -1212,6 +1212,12 @@ class Be extends he {
|
|
|
1212
1212
|
let o = this.filteredRows[e];
|
|
1213
1213
|
return N(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
|
|
1214
1214
|
}
|
|
1215
|
+
/**
|
|
1216
|
+
* Retrieves the filtered and sorted rows from the dataset.
|
|
1217
|
+
* These rows are used for rendering the table.
|
|
1218
|
+
*
|
|
1219
|
+
* @return {T[]} An array containing the filtered (and sorted) rows.
|
|
1220
|
+
*/
|
|
1215
1221
|
getFilteredRows() {
|
|
1216
1222
|
return this.filteredRows;
|
|
1217
1223
|
}
|
|
@@ -1240,6 +1246,10 @@ class Be extends he {
|
|
|
1240
1246
|
changeColumnOrder(e, t) {
|
|
1241
1247
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
1242
1248
|
}
|
|
1249
|
+
getCustomClassesAt(e, t) {
|
|
1250
|
+
const s = super.getCustomClassesAt(e, t);
|
|
1251
|
+
return this.getRowByIndex(e).selected && s.push("ge-selected-row"), this.focusedRowIndex === e && s.push("ge-focused-row"), s;
|
|
1252
|
+
}
|
|
1243
1253
|
genericFlatTableSortComparator(e, t) {
|
|
1244
1254
|
const s = this.columnDefs.find((o) => o.property === e);
|
|
1245
1255
|
return (o, i) => {
|
|
@@ -1252,7 +1262,7 @@ class Be extends he {
|
|
|
1252
1262
|
return o && t.length ? this.getPropertyValue(o, t) : o;
|
|
1253
1263
|
}
|
|
1254
1264
|
}
|
|
1255
|
-
class
|
|
1265
|
+
class st {
|
|
1256
1266
|
constructor(e) {
|
|
1257
1267
|
this.tableScope = e;
|
|
1258
1268
|
}
|
|
@@ -1443,8 +1453,8 @@ class tt {
|
|
|
1443
1453
|
for (let a = 0; a < l; a++) {
|
|
1444
1454
|
const c = [];
|
|
1445
1455
|
s.push(c);
|
|
1446
|
-
for (let
|
|
1447
|
-
c.push(n.getValueAt(a,
|
|
1456
|
+
for (let h = 0; h < o; h++)
|
|
1457
|
+
c.push(n.getValueAt(a, h));
|
|
1448
1458
|
}
|
|
1449
1459
|
}
|
|
1450
1460
|
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
@@ -1483,7 +1493,7 @@ class tt {
|
|
|
1483
1493
|
}
|
|
1484
1494
|
setRows(e) {
|
|
1485
1495
|
const t = this.getBodyModel();
|
|
1486
|
-
t instanceof
|
|
1496
|
+
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
1497
|
}
|
|
1488
1498
|
reSort() {
|
|
1489
1499
|
this.tableScope.reSort();
|
|
@@ -1556,7 +1566,7 @@ class ue {
|
|
|
1556
1566
|
// }
|
|
1557
1567
|
// }
|
|
1558
1568
|
}
|
|
1559
|
-
class
|
|
1569
|
+
class ot extends ue {
|
|
1560
1570
|
constructor(e) {
|
|
1561
1571
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
1562
1572
|
}
|
|
@@ -1578,14 +1588,14 @@ class st extends ue {
|
|
|
1578
1588
|
}
|
|
1579
1589
|
}
|
|
1580
1590
|
}
|
|
1581
|
-
class
|
|
1591
|
+
class it {
|
|
1582
1592
|
constructor(e = "collapsed", t = [], s = !1, o = !1) {
|
|
1583
1593
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
1584
1594
|
}
|
|
1585
1595
|
}
|
|
1586
|
-
class
|
|
1596
|
+
class rt extends ue {
|
|
1587
1597
|
constructor(e) {
|
|
1588
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
1598
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new it(), this.load();
|
|
1589
1599
|
}
|
|
1590
1600
|
collapsedExpandedStateGet() {
|
|
1591
1601
|
return this.collapsedExpandedState;
|
|
@@ -1617,7 +1627,7 @@ class it extends ue {
|
|
|
1617
1627
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
1618
1628
|
}
|
|
1619
1629
|
}
|
|
1620
|
-
class
|
|
1630
|
+
class nt extends ue {
|
|
1621
1631
|
constructor(e) {
|
|
1622
1632
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
1623
1633
|
}
|
|
@@ -1643,7 +1653,7 @@ class L {
|
|
|
1643
1653
|
this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
|
|
1644
1654
|
}
|
|
1645
1655
|
}
|
|
1646
|
-
class
|
|
1656
|
+
class lt {
|
|
1647
1657
|
constructor(e, t, s, o) {
|
|
1648
1658
|
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
1659
|
const i = this.hostElement;
|
|
@@ -1849,7 +1859,7 @@ class R {
|
|
|
1849
1859
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
1850
1860
|
}
|
|
1851
1861
|
}
|
|
1852
|
-
class
|
|
1862
|
+
class at {
|
|
1853
1863
|
constructor(e, t) {
|
|
1854
1864
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
1855
1865
|
}
|
|
@@ -1887,7 +1897,7 @@ class I {
|
|
|
1887
1897
|
this.header = e, this.body = t, this.footer = s;
|
|
1888
1898
|
}
|
|
1889
1899
|
}
|
|
1890
|
-
class
|
|
1900
|
+
class ct extends lt {
|
|
1891
1901
|
constructor(e, t, s, o) {
|
|
1892
1902
|
var r, n;
|
|
1893
1903
|
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 +1907,7 @@ class at extends nt {
|
|
|
1897
1907
|
}, 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
1908
|
(l) => {
|
|
1899
1909
|
var a;
|
|
1900
|
-
this.colAndRowspanModels[l] = new
|
|
1910
|
+
this.colAndRowspanModels[l] = new at(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
|
|
1901
1911
|
}
|
|
1902
1912
|
);
|
|
1903
1913
|
}
|
|
@@ -2038,9 +2048,9 @@ class at extends nt {
|
|
|
2038
2048
|
if (l) {
|
|
2039
2049
|
let a;
|
|
2040
2050
|
const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
2041
|
-
let
|
|
2042
|
-
if (c ?
|
|
2043
|
-
a =
|
|
2051
|
+
let h;
|
|
2052
|
+
if (c ? h = this.editorRenderer : h = r.getCellRenderer(t, s), l.innerText = "", this.applyCssClasses(l, i), h)
|
|
2053
|
+
a = h.render(l, t, s, e, r, o, this.dom.domService), a && this.cleanupFunctions[e].push(a);
|
|
2044
2054
|
else {
|
|
2045
2055
|
const p = `${o}`;
|
|
2046
2056
|
this.dom.addLabelDiv(l, p, !1, t, s, e);
|
|
@@ -2151,15 +2161,15 @@ class at extends nt {
|
|
|
2151
2161
|
var g;
|
|
2152
2162
|
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
2153
2163
|
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),
|
|
2164
|
+
const n = 0, l = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
|
|
2155
2165
|
for (; this.cleanupFunctions[e].length; ) {
|
|
2156
2166
|
const b = this.cleanupFunctions[e].shift();
|
|
2157
2167
|
b && b();
|
|
2158
2168
|
}
|
|
2159
2169
|
let u = t;
|
|
2160
2170
|
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 ===
|
|
2171
|
+
for (let b = 0; b < h; b++) {
|
|
2172
|
+
const x = u, S = b === h - 1, A = this.tableModel.getRowHeight(e, b);
|
|
2163
2173
|
if (x + A > 0) {
|
|
2164
2174
|
this.firstVisibleRowIndex = b;
|
|
2165
2175
|
let C = { left: n, width: l, height: A, top: x, index: b }, w = this.dom.addRowDiv(o, C, b, e, "center");
|
|
@@ -2197,7 +2207,7 @@ class at extends nt {
|
|
|
2197
2207
|
columnIndexEnd: f - 1,
|
|
2198
2208
|
verticalFixed: !0,
|
|
2199
2209
|
lastRowOfModel: S
|
|
2200
|
-
})), e === "header" && this.tree && b ===
|
|
2210
|
+
})), e === "header" && this.tree && b === h - 1) {
|
|
2201
2211
|
const E = this.dom.applyStyle(
|
|
2202
2212
|
this.dom.setAttribute(
|
|
2203
2213
|
this.dom.addDiv(w, new L(16, 20, 20, 8)),
|
|
@@ -2246,7 +2256,7 @@ class at extends nt {
|
|
|
2246
2256
|
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
2257
|
let c = 0;
|
|
2248
2258
|
a > 0 && e.c1 >= l - a && (c = l - a);
|
|
2249
|
-
const
|
|
2259
|
+
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
2260
|
let p = !1;
|
|
2251
2261
|
const m = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
2252
2262
|
m && (p = m.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
@@ -2255,7 +2265,7 @@ class at extends nt {
|
|
|
2255
2265
|
sideIdent: r,
|
|
2256
2266
|
rowIndex: e.r1,
|
|
2257
2267
|
columnIndex: e.c1,
|
|
2258
|
-
left:
|
|
2268
|
+
left: h,
|
|
2259
2269
|
top: n,
|
|
2260
2270
|
width: f,
|
|
2261
2271
|
height: u,
|
|
@@ -2269,7 +2279,7 @@ class at extends nt {
|
|
|
2269
2279
|
sideIdent: r,
|
|
2270
2280
|
rowIndex: e.r1,
|
|
2271
2281
|
columnIndex: e.c1,
|
|
2272
|
-
left:
|
|
2282
|
+
left: h,
|
|
2273
2283
|
top: n,
|
|
2274
2284
|
width: f,
|
|
2275
2285
|
height: u,
|
|
@@ -2280,7 +2290,7 @@ class at extends nt {
|
|
|
2280
2290
|
}), o.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
2281
2291
|
rowIndex: e.r1,
|
|
2282
2292
|
columnIndex: e.c1,
|
|
2283
|
-
cellLeft:
|
|
2293
|
+
cellLeft: h,
|
|
2284
2294
|
cellTop: n,
|
|
2285
2295
|
cellWidth: f,
|
|
2286
2296
|
cellHeight: u,
|
|
@@ -2328,13 +2338,13 @@ class at extends nt {
|
|
|
2328
2338
|
}) {
|
|
2329
2339
|
var m;
|
|
2330
2340
|
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
2331
|
-
let
|
|
2341
|
+
let h = 0;
|
|
2332
2342
|
if (!a) {
|
|
2333
2343
|
const g = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
2334
|
-
|
|
2344
|
+
h = this.scrollFactorX * g;
|
|
2335
2345
|
}
|
|
2336
2346
|
const u = 0, f = !!(e === "body" && t);
|
|
2337
|
-
let p =
|
|
2347
|
+
let p = h;
|
|
2338
2348
|
for (let g = n; g <= l; g++) {
|
|
2339
2349
|
const b = p, x = this.tableModel.getColumnWidth(g);
|
|
2340
2350
|
if (x > 0 && b + x > 0) {
|
|
@@ -2403,7 +2413,7 @@ class at extends nt {
|
|
|
2403
2413
|
height: l,
|
|
2404
2414
|
top: a,
|
|
2405
2415
|
parent: c,
|
|
2406
|
-
lastRowOfModel:
|
|
2416
|
+
lastRowOfModel: h
|
|
2407
2417
|
}) {
|
|
2408
2418
|
var me;
|
|
2409
2419
|
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 +2448,7 @@ class at extends nt {
|
|
|
2438
2448
|
let M;
|
|
2439
2449
|
f && (M = f.render(w, o, i, t, e, S, this.dom.domService));
|
|
2440
2450
|
const U = e.getCustomClassesAt(o, i);
|
|
2441
|
-
if (U.length && this.dom.addClasses(U, w), this.dom.addColumnBorderDivs(this.tableOptions, c, p, t, s),
|
|
2451
|
+
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
2452
|
const v = this.getFocusModel();
|
|
2443
2453
|
v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
|
|
2444
2454
|
}
|
|
@@ -2613,7 +2623,7 @@ class at extends nt {
|
|
|
2613
2623
|
if (r) {
|
|
2614
2624
|
const n = e.index ?? 0, l = this.draggingColumn;
|
|
2615
2625
|
for (let a = 0; a < r; a++) {
|
|
2616
|
-
const c = s,
|
|
2626
|
+
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
2627
|
parent: l,
|
|
2618
2628
|
geo: u,
|
|
2619
2629
|
rowIndex: a,
|
|
@@ -2632,7 +2642,7 @@ class at extends nt {
|
|
|
2632
2642
|
if (C)
|
|
2633
2643
|
for (const w in C)
|
|
2634
2644
|
this.dom.setStyle(b, w, C[w]);
|
|
2635
|
-
s = s +
|
|
2645
|
+
s = s + h;
|
|
2636
2646
|
}
|
|
2637
2647
|
}
|
|
2638
2648
|
return s;
|
|
@@ -2681,7 +2691,7 @@ class at extends nt {
|
|
|
2681
2691
|
* @param {number} height - The height of the div.
|
|
2682
2692
|
* @returns {boolean} - Whether the cell is selected.
|
|
2683
2693
|
*/
|
|
2684
|
-
renderSelectedBackgroundDiv(e, t, s, o, i, r, n, l, a, c,
|
|
2694
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, n, l, a, c, h) {
|
|
2685
2695
|
let u = !1;
|
|
2686
2696
|
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2687
2697
|
const f = this.getSelectionModel();
|
|
@@ -2693,7 +2703,7 @@ class at extends nt {
|
|
|
2693
2703
|
// ge-table-body-west-selected-range
|
|
2694
2704
|
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, n)
|
|
2695
2705
|
);
|
|
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", `${
|
|
2706
|
+
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
2707
|
}
|
|
2698
2708
|
}
|
|
2699
2709
|
}
|
|
@@ -2729,7 +2739,7 @@ class at extends nt {
|
|
|
2729
2739
|
width: l,
|
|
2730
2740
|
height: a,
|
|
2731
2741
|
parent: c,
|
|
2732
|
-
cellSelected:
|
|
2742
|
+
cellSelected: h,
|
|
2733
2743
|
lastRowOfModel: u
|
|
2734
2744
|
}) {
|
|
2735
2745
|
const [f, p] = this.addAndRenderCellDiv({
|
|
@@ -2745,7 +2755,7 @@ class at extends nt {
|
|
|
2745
2755
|
parent: c,
|
|
2746
2756
|
lastRowOfModel: u
|
|
2747
2757
|
});
|
|
2748
|
-
|
|
2758
|
+
h && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, f), p && this.cleanupFunctions[t].push(p);
|
|
2749
2759
|
}
|
|
2750
2760
|
/**
|
|
2751
2761
|
* Render the header cell resize handle.
|
|
@@ -2766,12 +2776,12 @@ class at extends nt {
|
|
|
2766
2776
|
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
2777
|
}
|
|
2768
2778
|
}
|
|
2769
|
-
class
|
|
2779
|
+
class dt {
|
|
2770
2780
|
constructor(e, t) {
|
|
2771
2781
|
this.columnIndex = e, this.sortState = t;
|
|
2772
2782
|
}
|
|
2773
2783
|
}
|
|
2774
|
-
class
|
|
2784
|
+
class ht {
|
|
2775
2785
|
constructor(e) {
|
|
2776
2786
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
2777
2787
|
}
|
|
@@ -2793,7 +2803,7 @@ class dt {
|
|
|
2793
2803
|
}
|
|
2794
2804
|
}
|
|
2795
2805
|
}
|
|
2796
|
-
class
|
|
2806
|
+
class ut {
|
|
2797
2807
|
constructor(e = -1, t = -1) {
|
|
2798
2808
|
this.rowIndex = e, this.columnIndex = t;
|
|
2799
2809
|
}
|
|
@@ -2803,20 +2813,20 @@ class pe {
|
|
|
2803
2813
|
this.cells = e;
|
|
2804
2814
|
}
|
|
2805
2815
|
static createSingle(e, t) {
|
|
2806
|
-
return new pe([new
|
|
2816
|
+
return new pe([new ut(e, t)]);
|
|
2807
2817
|
}
|
|
2808
2818
|
}
|
|
2809
|
-
class
|
|
2819
|
+
class pt {
|
|
2810
2820
|
constructor(e) {
|
|
2811
2821
|
var t, s;
|
|
2812
2822
|
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
2823
|
}
|
|
2814
2824
|
onMouseClicked(e, t) {
|
|
2815
|
-
var i, r, n, l, a, c,
|
|
2825
|
+
var i, r, n, l, a, c, h;
|
|
2816
2826
|
let s = !1, o = !1;
|
|
2817
2827
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2818
2828
|
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 || (
|
|
2829
|
+
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
2830
|
}
|
|
2821
2831
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2822
2832
|
}
|
|
@@ -2847,7 +2857,7 @@ class ut {
|
|
|
2847
2857
|
});
|
|
2848
2858
|
}
|
|
2849
2859
|
}
|
|
2850
|
-
class
|
|
2860
|
+
class gt {
|
|
2851
2861
|
get() {
|
|
2852
2862
|
return {
|
|
2853
2863
|
f2: "START_EDITING",
|
|
@@ -2867,7 +2877,7 @@ class pt {
|
|
|
2867
2877
|
};
|
|
2868
2878
|
}
|
|
2869
2879
|
}
|
|
2870
|
-
class
|
|
2880
|
+
class ft {
|
|
2871
2881
|
get() {
|
|
2872
2882
|
return {
|
|
2873
2883
|
f2: "START_EDITING",
|
|
@@ -2889,7 +2899,23 @@ class gt {
|
|
|
2889
2899
|
};
|
|
2890
2900
|
}
|
|
2891
2901
|
}
|
|
2892
|
-
|
|
2902
|
+
function mt(d) {
|
|
2903
|
+
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) => {
|
|
2904
|
+
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
|
|
2905
|
+
return o !== i ? o - i : e.localeCompare(t);
|
|
2906
|
+
}).join(" ");
|
|
2907
|
+
}
|
|
2908
|
+
function xe(d) {
|
|
2909
|
+
let e = d.key.toLowerCase();
|
|
2910
|
+
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")) {
|
|
2911
|
+
const s = d.code.replace("Numpad", "").toLowerCase();
|
|
2912
|
+
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;
|
|
2913
|
+
}
|
|
2914
|
+
d.code.match(/^F\d+$/) && (e = d.code.toLowerCase()), d.code.match(/^Digit\d+$/) && (e = d.code.replace(/Digit/g, ""));
|
|
2915
|
+
let t = "";
|
|
2916
|
+
return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"), mt(t + " " + e);
|
|
2917
|
+
}
|
|
2918
|
+
class bt {
|
|
2893
2919
|
constructor(e) {
|
|
2894
2920
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
2895
2921
|
}
|
|
@@ -2907,10 +2933,11 @@ class ft {
|
|
|
2907
2933
|
* Also adds key down event listener to the table host element.
|
|
2908
2934
|
*/
|
|
2909
2935
|
init() {
|
|
2910
|
-
|
|
2936
|
+
var e, t;
|
|
2937
|
+
(t = (e = this.tableScope) == null ? void 0 : e.tableOptions) != null && t.shortcutActionsDisabled ? this.isDebug() && console.debug("ShortcutService skipped.") : (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
2938
|
}
|
|
2912
2939
|
assignPredefinedSystemShortcutMappings() {
|
|
2913
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
2940
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new ft().get()) : Object.assign(this.shortcutActionIdMapping, new gt().get());
|
|
2914
2941
|
}
|
|
2915
2942
|
isMacintosh() {
|
|
2916
2943
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -2933,26 +2960,47 @@ class ft {
|
|
|
2933
2960
|
return t;
|
|
2934
2961
|
}
|
|
2935
2962
|
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
|
-
|
|
2963
|
+
const t = xe(e);
|
|
2964
|
+
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
2965
|
+
for (const s in this.shortcutActionIdMapping)
|
|
2966
|
+
if (xe(e) === t)
|
|
2967
|
+
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
2968
|
+
}
|
|
2969
|
+
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
2970
|
+
// if (tokens1.length !== tokens2.length) {
|
|
2971
|
+
// return false;
|
|
2972
|
+
// }
|
|
2973
|
+
// if (tokens1.length === 0) {
|
|
2974
|
+
// return false;
|
|
2975
|
+
// }
|
|
2976
|
+
// for (let i = 0; i < tokens1.length; i++) {
|
|
2977
|
+
// if (tokens1[i] !== tokens2[i]) {
|
|
2978
|
+
// return false;
|
|
2979
|
+
// }
|
|
2980
|
+
// }
|
|
2981
|
+
//
|
|
2982
|
+
// return true;
|
|
2983
|
+
// }
|
|
2984
|
+
//
|
|
2985
|
+
// private getTokenByEvent(evt: KeyboardEvent): string[] {
|
|
2986
|
+
// const tokens: string[] = [];
|
|
2987
|
+
// if (evt.altKey) {
|
|
2988
|
+
// tokens.push("alt");
|
|
2989
|
+
// }
|
|
2990
|
+
// if (evt.shiftKey) {
|
|
2991
|
+
// tokens.push("shift");
|
|
2992
|
+
// }
|
|
2993
|
+
// if (evt.ctrlKey) {
|
|
2994
|
+
// tokens.push("ctrl");
|
|
2995
|
+
// }
|
|
2996
|
+
// if (evt.metaKey) {
|
|
2997
|
+
// tokens.push("meta");
|
|
2998
|
+
// }
|
|
2999
|
+
// if (evt.code) {
|
|
3000
|
+
// tokens.push(evt.code.toLowerCase().replace(/key/g, ""));
|
|
3001
|
+
// }
|
|
3002
|
+
// return tokens.sort();
|
|
3003
|
+
// }
|
|
2956
3004
|
/**
|
|
2957
3005
|
* Retrieves the shortcut action mapping object.
|
|
2958
3006
|
*
|
|
@@ -2982,7 +3030,7 @@ class re {
|
|
|
2982
3030
|
onFocusChanged(e) {
|
|
2983
3031
|
}
|
|
2984
3032
|
}
|
|
2985
|
-
class
|
|
3033
|
+
class yt {
|
|
2986
3034
|
setStyle(e, t, s) {
|
|
2987
3035
|
return e.style[t] = s, e;
|
|
2988
3036
|
}
|
|
@@ -3009,7 +3057,7 @@ class mt {
|
|
|
3009
3057
|
e.setAttribute(t, s);
|
|
3010
3058
|
}
|
|
3011
3059
|
}
|
|
3012
|
-
class
|
|
3060
|
+
class xt {
|
|
3013
3061
|
render(e, t, s, o, i, r, n) {
|
|
3014
3062
|
if (i.isEditable(t, s)) {
|
|
3015
3063
|
n.addClass(e, "ge-table-row-input-div");
|
|
@@ -3112,7 +3160,7 @@ class ge {
|
|
|
3112
3160
|
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
3161
|
}
|
|
3114
3162
|
}
|
|
3115
|
-
class
|
|
3163
|
+
class wt {
|
|
3116
3164
|
constructor(e = "none") {
|
|
3117
3165
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
3118
3166
|
}
|
|
@@ -3163,14 +3211,14 @@ class fe {
|
|
|
3163
3211
|
}
|
|
3164
3212
|
// `⊖ `, `⊕ `;
|
|
3165
3213
|
}
|
|
3166
|
-
const
|
|
3214
|
+
const St = new ge(), Ct = new wt("cell");
|
|
3167
3215
|
class X {
|
|
3168
3216
|
constructor() {
|
|
3169
3217
|
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
3218
|
header: 34,
|
|
3171
3219
|
body: 34,
|
|
3172
3220
|
footer: 34
|
|
3173
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new
|
|
3221
|
+
}, 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.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new xt(), this.getSelectionModel = () => St, this.getFocusModel = () => Ct;
|
|
3174
3222
|
}
|
|
3175
3223
|
}
|
|
3176
3224
|
const W = class W {
|
|
@@ -3193,8 +3241,8 @@ const W = class W {
|
|
|
3193
3241
|
for (let l = r.r1; l <= r.r2; l++) {
|
|
3194
3242
|
const a = [];
|
|
3195
3243
|
for (let c = r.c1; c <= r.c2; c++) {
|
|
3196
|
-
const
|
|
3197
|
-
a.push(
|
|
3244
|
+
const h = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
|
|
3245
|
+
a.push(h);
|
|
3198
3246
|
}
|
|
3199
3247
|
n.push(a.join(W.columnSeparatorChar));
|
|
3200
3248
|
}
|
|
@@ -3258,16 +3306,16 @@ const W = class W {
|
|
|
3258
3306
|
W.columnSeparatorChar = " ", W.rowSeparatorChar = `
|
|
3259
3307
|
`;
|
|
3260
3308
|
let J = W;
|
|
3261
|
-
class
|
|
3309
|
+
class vt {
|
|
3262
3310
|
constructor(e, t = 500) {
|
|
3263
|
-
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(
|
|
3311
|
+
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Ge(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
|
|
3264
3312
|
}
|
|
3265
3313
|
handleResize(e) {
|
|
3266
3314
|
const t = e[0], { width: s } = t.contentRect;
|
|
3267
3315
|
this.tableScope.recalcColumnWidths(s);
|
|
3268
3316
|
}
|
|
3269
3317
|
}
|
|
3270
|
-
class
|
|
3318
|
+
class At {
|
|
3271
3319
|
/**
|
|
3272
3320
|
* Downloads a matrix data as an Excel file.
|
|
3273
3321
|
*
|
|
@@ -3300,9 +3348,9 @@ class Ct {
|
|
|
3300
3348
|
<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
3349
|
<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
3350
|
<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>`,
|
|
3351
|
+
<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
3352
|
<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",
|
|
3353
|
+
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
3354
|
}
|
|
3307
3355
|
getX1WorksheetsSheet1Xml(e) {
|
|
3308
3356
|
const t = [];
|
|
@@ -3347,8 +3395,8 @@ class Ct {
|
|
|
3347
3395
|
const t = [];
|
|
3348
3396
|
let s = 0;
|
|
3349
3397
|
const o = [];
|
|
3350
|
-
e.forEach((
|
|
3351
|
-
const f = new TextEncoder().encode(u), p = new TextEncoder().encode(
|
|
3398
|
+
e.forEach((h, u) => {
|
|
3399
|
+
const f = new TextEncoder().encode(u), p = new TextEncoder().encode(h), m = new Uint8Array(30 + f.length), g = new DataView(m.buffer);
|
|
3352
3400
|
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
3401
|
path: u,
|
|
3354
3402
|
offset: s,
|
|
@@ -3356,16 +3404,16 @@ class Ct {
|
|
|
3356
3404
|
}), s += m.length + p.length;
|
|
3357
3405
|
});
|
|
3358
3406
|
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,
|
|
3407
|
+
o.forEach((h) => {
|
|
3408
|
+
const u = new TextEncoder().encode(h.path), f = new Uint8Array(46 + u.length), p = new DataView(f.buffer);
|
|
3409
|
+
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
3410
|
});
|
|
3363
3411
|
const r = new Uint8Array(22), n = new DataView(r.buffer);
|
|
3364
3412
|
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((
|
|
3413
|
+
const l = t.reduce((h, u) => h + u.length, 0), a = new Uint8Array(l);
|
|
3366
3414
|
let c = 0;
|
|
3367
|
-
for (const
|
|
3368
|
-
a.set(
|
|
3415
|
+
for (const h of t)
|
|
3416
|
+
a.set(h, c), c += h.length;
|
|
3369
3417
|
return a;
|
|
3370
3418
|
}
|
|
3371
3419
|
generateBuffer(e, t = "") {
|
|
@@ -3373,14 +3421,14 @@ class Ct {
|
|
|
3373
3421
|
return this.createZip(s);
|
|
3374
3422
|
}
|
|
3375
3423
|
}
|
|
3376
|
-
class
|
|
3377
|
-
constructor(e, t, s, o, i, r = new J(), n = new
|
|
3424
|
+
class Ve extends ct {
|
|
3425
|
+
constructor(e, t, s, o, i, r = new J(), n = new At()) {
|
|
3378
3426
|
var c;
|
|
3379
|
-
if (super(e, t, new
|
|
3380
|
-
const
|
|
3381
|
-
u && (
|
|
3427
|
+
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) {
|
|
3428
|
+
const h = this.tableOptions.autoRestoreOptions, u = h.getStorageKeyFn;
|
|
3429
|
+
u && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ot(u)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new rt(u)), h.autoRestoreSortingState && (this.storeSortingService = new nt(u)));
|
|
3382
3430
|
}
|
|
3383
|
-
this.mouseHandler = new
|
|
3431
|
+
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
3432
|
const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
3385
3433
|
l && l.addEventSelectionChangedListener(this);
|
|
3386
3434
|
const a = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
@@ -3398,8 +3446,8 @@ class He extends at {
|
|
|
3398
3446
|
*
|
|
3399
3447
|
* @return {TableScope} - The newly created TableScope instance.
|
|
3400
3448
|
*/
|
|
3401
|
-
static create(e, t, s = new X(), o = new re(), i = new
|
|
3402
|
-
return new
|
|
3449
|
+
static create(e, t, s = new X(), o = new re(), i = new yt(), r = new J()) {
|
|
3450
|
+
return new Ve(e, t, i, s, o, r);
|
|
3403
3451
|
}
|
|
3404
3452
|
/**
|
|
3405
3453
|
* Triggers an action based on the provided actionId.
|
|
@@ -3514,7 +3562,13 @@ class He extends at {
|
|
|
3514
3562
|
* @return {void}
|
|
3515
3563
|
*/
|
|
3516
3564
|
contextmenu(e) {
|
|
3517
|
-
|
|
3565
|
+
var s, o;
|
|
3566
|
+
const t = Date.now();
|
|
3567
|
+
if (t - this.lastContextmenu < 50) {
|
|
3568
|
+
this.lastContextmenu = t, (s = e.originalEvent) == null || s.preventDefault(), (o = e.originalEvent) == null || o.stopImmediatePropagation();
|
|
3569
|
+
return;
|
|
3570
|
+
}
|
|
3571
|
+
this.lastContextmenu = t, this.eventListener.onContextmenu(e);
|
|
3518
3572
|
}
|
|
3519
3573
|
/**
|
|
3520
3574
|
* Toggles the expand or collapse state of all items in the body area model.
|
|
@@ -3596,7 +3650,7 @@ class He extends at {
|
|
|
3596
3650
|
const o = this.tableModel.getColumnDef(s);
|
|
3597
3651
|
if (o != null && o.sortable && o.sortable()) {
|
|
3598
3652
|
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
|
|
3653
|
+
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
3654
|
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
3655
|
}
|
|
3602
3656
|
}
|
|
@@ -3752,8 +3806,8 @@ class He extends at {
|
|
|
3752
3806
|
else if (i.allCollapsed)
|
|
3753
3807
|
c.expanded = !1;
|
|
3754
3808
|
else {
|
|
3755
|
-
const
|
|
3756
|
-
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(
|
|
3809
|
+
const h = o(c.data);
|
|
3810
|
+
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
|
|
3757
3811
|
}
|
|
3758
3812
|
}
|
|
3759
3813
|
n.recalcVisibleTreeRows();
|
|
@@ -3793,7 +3847,7 @@ class He extends at {
|
|
|
3793
3847
|
this.tableModel.doSort(e);
|
|
3794
3848
|
}
|
|
3795
3849
|
}
|
|
3796
|
-
class
|
|
3850
|
+
class Gt extends re {
|
|
3797
3851
|
constructor(e) {
|
|
3798
3852
|
super(), this.onCheckboxChangedCallback = e, super.onCheckboxChanged = (t) => {
|
|
3799
3853
|
this.onCheckboxChangedCallback(t);
|
|
@@ -4036,8 +4090,8 @@ q.themes = ["light", "combat", "paper", "blackboard"], q.vars = {
|
|
|
4036
4090
|
--ge-table-drop-zone-bg: #758129;
|
|
4037
4091
|
}`
|
|
4038
4092
|
};
|
|
4039
|
-
let
|
|
4040
|
-
class
|
|
4093
|
+
let we = q;
|
|
4094
|
+
class Se {
|
|
4041
4095
|
constructor(e, t = !0, s, o, i = 0, r = !1, n = !1) {
|
|
4042
4096
|
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
4097
|
}
|
|
@@ -4049,14 +4103,14 @@ class ne {
|
|
|
4049
4103
|
o.push(ne.buildTreeRow(i, t, void 0, 0, s));
|
|
4050
4104
|
return o;
|
|
4051
4105
|
}
|
|
4052
|
-
static buildTreeRow(e, t = "children", s = new
|
|
4106
|
+
static buildTreeRow(e, t = "children", s = new Se(e, !0, [], void 0, 0), o = 0, i = 12) {
|
|
4053
4107
|
var n;
|
|
4054
4108
|
if (o > i)
|
|
4055
4109
|
return console.warn("Max deep limit reached: ", o), s;
|
|
4056
4110
|
const r = e[t];
|
|
4057
4111
|
if (r)
|
|
4058
4112
|
for (const l of r) {
|
|
4059
|
-
const a = new
|
|
4113
|
+
const a = new Se(l, !0, [], s, o + 1);
|
|
4060
4114
|
if ((n = s.children) == null || n.push(a), ne.buildTreeRow(
|
|
4061
4115
|
l,
|
|
4062
4116
|
t,
|
|
@@ -4078,10 +4132,10 @@ class y {
|
|
|
4078
4132
|
this.value = e, this.unit = t;
|
|
4079
4133
|
}
|
|
4080
4134
|
}
|
|
4081
|
-
const
|
|
4135
|
+
const Rt = () => !0, Ce = () => !1;
|
|
4082
4136
|
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 =
|
|
4137
|
+
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) {
|
|
4138
|
+
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
4139
|
}
|
|
4086
4140
|
static bodyRenderer(e) {
|
|
4087
4141
|
return new I(
|
|
@@ -4099,7 +4153,7 @@ class H {
|
|
|
4099
4153
|
e.headerClasses,
|
|
4100
4154
|
e.bodyClasses,
|
|
4101
4155
|
e.footerClasses
|
|
4102
|
-
), o = e.sortIconVisible ?? e.sortable ??
|
|
4156
|
+
), o = e.sortIconVisible ?? e.sortable ?? Ce, i = e.editable ?? e.editable ?? Ce, r = e.isVisible ?? e.isVisible ?? Rt;
|
|
4103
4157
|
return new H(
|
|
4104
4158
|
e.property ?? "",
|
|
4105
4159
|
e.headerLabel ?? "",
|
|
@@ -4120,7 +4174,7 @@ class H {
|
|
|
4120
4174
|
);
|
|
4121
4175
|
}
|
|
4122
4176
|
}
|
|
4123
|
-
const
|
|
4177
|
+
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
4178
|
class P extends he {
|
|
4125
4179
|
constructor(e, t, s, o = []) {
|
|
4126
4180
|
super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
|
|
@@ -4221,7 +4275,7 @@ class F {
|
|
|
4221
4275
|
changeColumnOrder(e, t) {
|
|
4222
4276
|
}
|
|
4223
4277
|
}
|
|
4224
|
-
class
|
|
4278
|
+
class Mt {
|
|
4225
4279
|
flattenTree(e, t = []) {
|
|
4226
4280
|
var s;
|
|
4227
4281
|
for (const o of e)
|
|
@@ -4232,9 +4286,9 @@ class Rt {
|
|
|
4232
4286
|
return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
|
|
4233
4287
|
}
|
|
4234
4288
|
}
|
|
4235
|
-
class
|
|
4289
|
+
class Ae extends he {
|
|
4236
4290
|
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
|
|
4291
|
+
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
4292
|
}
|
|
4239
4293
|
changeColumnOrder(e, t) {
|
|
4240
4294
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
@@ -4337,7 +4391,7 @@ class ve extends he {
|
|
|
4337
4391
|
o.children && this.treeSort(o.children, t, s);
|
|
4338
4392
|
}
|
|
4339
4393
|
}
|
|
4340
|
-
class
|
|
4394
|
+
class Re {
|
|
4341
4395
|
constructor(e = []) {
|
|
4342
4396
|
this.allRootNodes = e;
|
|
4343
4397
|
}
|
|
@@ -4397,12 +4451,12 @@ class Ae {
|
|
|
4397
4451
|
s.checked && t.push(s), s.children && this.addSelectedRecursive(s.children, t);
|
|
4398
4452
|
}
|
|
4399
4453
|
}
|
|
4400
|
-
class
|
|
4454
|
+
class Ee {
|
|
4401
4455
|
constructor(e = 0, t = 0, s = 0, o = 0) {
|
|
4402
4456
|
this.top = e, this.right = t, this.bottom = s, this.left = o;
|
|
4403
4457
|
}
|
|
4404
4458
|
}
|
|
4405
|
-
class
|
|
4459
|
+
class Tt {
|
|
4406
4460
|
constructor() {
|
|
4407
4461
|
this.checkedRows = [];
|
|
4408
4462
|
}
|
|
@@ -4434,10 +4488,10 @@ class Et {
|
|
|
4434
4488
|
}
|
|
4435
4489
|
}
|
|
4436
4490
|
class se {
|
|
4437
|
-
constructor(e, t, s, o = 0, i = 0, r = !1, n = new G(), l = [], a = [], c = -1,
|
|
4491
|
+
constructor(e, t, s, o = 0, i = 0, r = !1, n = new G(), l = [], a = [], c = -1, h = 0, u = 400, f = () => {
|
|
4438
4492
|
}) {
|
|
4439
4493
|
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 =
|
|
4494
|
+
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
4495
|
}
|
|
4442
4496
|
init() {
|
|
4443
4497
|
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 +4575,7 @@ class se {
|
|
|
4521
4575
|
*/
|
|
4522
4576
|
recalcPadding() {
|
|
4523
4577
|
const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), s = this.getAreaHeight("header"), o = this.getAreaHeight("footer");
|
|
4524
|
-
this.padding = new
|
|
4578
|
+
this.padding = new Ee(
|
|
4525
4579
|
s,
|
|
4526
4580
|
t,
|
|
4527
4581
|
o,
|
|
@@ -4823,7 +4877,7 @@ class se {
|
|
|
4823
4877
|
return this.tableScope;
|
|
4824
4878
|
}
|
|
4825
4879
|
}
|
|
4826
|
-
class
|
|
4880
|
+
class Me extends He {
|
|
4827
4881
|
constructor(e, t, s, o) {
|
|
4828
4882
|
super(
|
|
4829
4883
|
e,
|
|
@@ -4871,7 +4925,7 @@ class _ {
|
|
|
4871
4925
|
* Please consult each method's documentation for detailed explanation of their functionality.
|
|
4872
4926
|
*/
|
|
4873
4927
|
static createTableModel(e) {
|
|
4874
|
-
var t, s, o, i, r, n, l, a, c,
|
|
4928
|
+
var t, s, o, i, r, n, l, a, c, h, u, f, p, m;
|
|
4875
4929
|
if (e.defaultRowHeights === void 0)
|
|
4876
4930
|
if ((t = e.tableOptions) != null && t.defaultRowHeights)
|
|
4877
4931
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
@@ -4889,7 +4943,7 @@ class _ {
|
|
|
4889
4943
|
g > -1 && (e.defaultRowHeights.footer = g);
|
|
4890
4944
|
}
|
|
4891
4945
|
}
|
|
4892
|
-
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new H(g, g.toUpperCase(),
|
|
4946
|
+
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
4947
|
"header",
|
|
4894
4948
|
e.headerData,
|
|
4895
4949
|
e.defaultRowHeights.header,
|
|
@@ -4899,7 +4953,7 @@ class _ {
|
|
|
4899
4953
|
[e.columnDefs.map((g) => g.headerLabel)],
|
|
4900
4954
|
e.defaultRowHeights.header,
|
|
4901
4955
|
e.columnDefs
|
|
4902
|
-
) : e.headerAreaModel = new F("header")), e.footerAreaModel || ((
|
|
4956
|
+
) : e.headerAreaModel = new F("header")), e.footerAreaModel || ((h = e.footerData) != null && h.length ? e.footerAreaModel = new P(
|
|
4903
4957
|
"footer",
|
|
4904
4958
|
e.footerData,
|
|
4905
4959
|
e.defaultRowHeights.footer,
|
|
@@ -4908,14 +4962,14 @@ class _ {
|
|
|
4908
4962
|
if (e.rows)
|
|
4909
4963
|
if ((u = e.rows) != null && u.length && N(e.rows[0])) {
|
|
4910
4964
|
const g = e.rows;
|
|
4911
|
-
e.bodyAreaModel = new
|
|
4965
|
+
e.bodyAreaModel = new Ae(
|
|
4912
4966
|
"body",
|
|
4913
4967
|
g,
|
|
4914
4968
|
e.defaultRowHeights.body,
|
|
4915
4969
|
e.columnDefs
|
|
4916
|
-
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new
|
|
4970
|
+
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Re(g));
|
|
4917
4971
|
} else
|
|
4918
|
-
e.bodyAreaModel = new
|
|
4972
|
+
e.bodyAreaModel = new Me(
|
|
4919
4973
|
"body",
|
|
4920
4974
|
e.rows,
|
|
4921
4975
|
e.columnDefs,
|
|
@@ -5007,14 +5061,14 @@ class _ {
|
|
|
5007
5061
|
static buildByTypedRows(e, t, s = new X(), o = 0, i = 0) {
|
|
5008
5062
|
const r = s.defaultRowHeights, n = t[0].property === "CheckboxColumn";
|
|
5009
5063
|
if (e != null && e.length && N(e[0])) {
|
|
5010
|
-
const a = e, c = new
|
|
5064
|
+
const a = e, c = new Ae(
|
|
5011
5065
|
"body",
|
|
5012
5066
|
a,
|
|
5013
5067
|
r.body,
|
|
5014
5068
|
t
|
|
5015
5069
|
);
|
|
5016
|
-
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new
|
|
5017
|
-
headerAreaModel: new P("header", [t.map((
|
|
5070
|
+
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Re(a)), _.createByAreaModelsParam({
|
|
5071
|
+
headerAreaModel: new P("header", [t.map((h) => h.headerLabel)], r.header),
|
|
5018
5072
|
bodyAreaModel: c,
|
|
5019
5073
|
footerAreaModel: new P("footer", [], r.footer),
|
|
5020
5074
|
columnDefs: t,
|
|
@@ -5134,7 +5188,7 @@ class _ {
|
|
|
5134
5188
|
* @return A new instance of `TableModel` is created using the provided parameters.
|
|
5135
5189
|
* If a parameter isn't provided, the default value is used.
|
|
5136
5190
|
*/
|
|
5137
|
-
static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, n = new G(), l, a = [], c = -1,
|
|
5191
|
+
static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, n = new G(), l, a = [], c = -1, h) {
|
|
5138
5192
|
return new se(
|
|
5139
5193
|
e,
|
|
5140
5194
|
t,
|
|
@@ -5146,7 +5200,7 @@ class _ {
|
|
|
5146
5200
|
l,
|
|
5147
5201
|
a,
|
|
5148
5202
|
c,
|
|
5149
|
-
|
|
5203
|
+
h
|
|
5150
5204
|
);
|
|
5151
5205
|
}
|
|
5152
5206
|
/**
|
|
@@ -5251,11 +5305,11 @@ class _ {
|
|
|
5251
5305
|
static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new G(), l, a = []) {
|
|
5252
5306
|
let c;
|
|
5253
5307
|
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
|
|
5308
|
+
const h = s ? new P("footer", s, n.footer, l) : new F(), u = new Me("body", e, l, n.body);
|
|
5255
5309
|
return new se(
|
|
5256
5310
|
c,
|
|
5257
5311
|
u,
|
|
5258
|
-
|
|
5312
|
+
h,
|
|
5259
5313
|
o,
|
|
5260
5314
|
i,
|
|
5261
5315
|
r,
|
|
@@ -5265,7 +5319,7 @@ class _ {
|
|
|
5265
5319
|
);
|
|
5266
5320
|
}
|
|
5267
5321
|
}
|
|
5268
|
-
const
|
|
5322
|
+
const Ss = [
|
|
5269
5323
|
"COPY_2_CLIPBOARD",
|
|
5270
5324
|
"START_EDITING",
|
|
5271
5325
|
"TOGGLE_SELECTION",
|
|
@@ -5283,17 +5337,17 @@ const xs = [
|
|
|
5283
5337
|
// "PAGEUP_PRESSED",
|
|
5284
5338
|
// "PAGEDOWN_PRESSED"
|
|
5285
5339
|
];
|
|
5286
|
-
class
|
|
5340
|
+
class It {
|
|
5287
5341
|
constructor(e, t) {
|
|
5288
5342
|
this.tableModel = e, this.tableOptions = t;
|
|
5289
5343
|
}
|
|
5290
5344
|
}
|
|
5291
|
-
class
|
|
5345
|
+
class kt {
|
|
5292
5346
|
constructor(e, t, s, o, i, r, n) {
|
|
5293
5347
|
this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = s, this.filter = o, this.sorting = i, this.startIndex = r, this.endIndex = n;
|
|
5294
5348
|
}
|
|
5295
5349
|
}
|
|
5296
|
-
class
|
|
5350
|
+
class Cs extends kt {
|
|
5297
5351
|
constructor(e, t, s, o, i, r, n, l) {
|
|
5298
5352
|
super(
|
|
5299
5353
|
e,
|
|
@@ -5306,30 +5360,30 @@ class ws extends Tt {
|
|
|
5306
5360
|
), this.rows = l;
|
|
5307
5361
|
}
|
|
5308
5362
|
}
|
|
5309
|
-
class
|
|
5363
|
+
class Dt {
|
|
5310
5364
|
constructor(e, t) {
|
|
5311
5365
|
this.value = e, this.label = t;
|
|
5312
5366
|
}
|
|
5313
5367
|
}
|
|
5314
|
-
class
|
|
5368
|
+
class vs {
|
|
5315
5369
|
constructor(e, t) {
|
|
5316
5370
|
this.index = e, this.px = t;
|
|
5317
5371
|
}
|
|
5318
5372
|
}
|
|
5319
|
-
const
|
|
5373
|
+
const As = { body: ["ge-table-text-align-left"] }, Rs = { body: ["ge-table-text-align-center"] }, Es = { body: ["ge-table-text-align-right"] }, Ms = {
|
|
5320
5374
|
header: ["ge-table-text-align-left"],
|
|
5321
5375
|
body: ["ge-table-text-align-left"],
|
|
5322
5376
|
footer: ["ge-table-text-align-left"]
|
|
5323
|
-
},
|
|
5377
|
+
}, Ts = {
|
|
5324
5378
|
header: ["ge-table-text-align-center"],
|
|
5325
5379
|
body: ["ge-table-text-align-center"],
|
|
5326
5380
|
footer: ["ge-table-text-align-center"]
|
|
5327
|
-
},
|
|
5381
|
+
}, Is = {
|
|
5328
5382
|
header: ["ge-table-text-align-right"],
|
|
5329
5383
|
body: ["ge-table-text-align-right"],
|
|
5330
5384
|
footer: ["ge-table-text-align-right"]
|
|
5331
5385
|
};
|
|
5332
|
-
class
|
|
5386
|
+
class Te {
|
|
5333
5387
|
render(e, t, s, o, i, r, n) {
|
|
5334
5388
|
if (i.isRowCheckable(t)) {
|
|
5335
5389
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
@@ -5347,16 +5401,16 @@ class Me {
|
|
|
5347
5401
|
}
|
|
5348
5402
|
}
|
|
5349
5403
|
}
|
|
5350
|
-
class
|
|
5404
|
+
class ks {
|
|
5351
5405
|
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
|
|
5406
|
+
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
5407
|
[],
|
|
5354
5408
|
["ge-table-text-align-left"],
|
|
5355
5409
|
[]
|
|
5356
5410
|
);
|
|
5357
5411
|
}
|
|
5358
5412
|
}
|
|
5359
|
-
class
|
|
5413
|
+
class Ds {
|
|
5360
5414
|
/**
|
|
5361
5415
|
* A factory that creates a new AreaObjectMap with the given body renderer.
|
|
5362
5416
|
*
|
|
@@ -5371,17 +5425,17 @@ class Is {
|
|
|
5371
5425
|
);
|
|
5372
5426
|
}
|
|
5373
5427
|
}
|
|
5374
|
-
class
|
|
5428
|
+
class Ps {
|
|
5375
5429
|
constructor(e = "down", t) {
|
|
5376
5430
|
this.status = e, this.originalEvent = t;
|
|
5377
5431
|
}
|
|
5378
5432
|
}
|
|
5379
|
-
class
|
|
5433
|
+
class Fs {
|
|
5380
5434
|
constructor(e, t, s, o, i = {}) {
|
|
5381
5435
|
this.area = e, this.rowIndex = t, this.columnIndex = s, this.value = o, this.cssClasses = i;
|
|
5382
5436
|
}
|
|
5383
5437
|
}
|
|
5384
|
-
class
|
|
5438
|
+
class Ls {
|
|
5385
5439
|
constructor() {
|
|
5386
5440
|
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
5441
|
if (e && t && s.getRowId) {
|
|
@@ -5406,12 +5460,12 @@ class Ps {
|
|
|
5406
5460
|
};
|
|
5407
5461
|
}
|
|
5408
5462
|
}
|
|
5409
|
-
class
|
|
5463
|
+
class Pt {
|
|
5410
5464
|
constructor(e, t, s, o = !1, i = "normal", r = void 0) {
|
|
5411
5465
|
this.data = e, this.property = t, this.toggle = s, this.closed = o, this.visibility = i, this.children = r, this.impl = "CellGroup";
|
|
5412
5466
|
}
|
|
5413
5467
|
}
|
|
5414
|
-
class
|
|
5468
|
+
class Ft extends Pt {
|
|
5415
5469
|
constructor(e, t = 0, s = 0, o) {
|
|
5416
5470
|
super(
|
|
5417
5471
|
e.data,
|
|
@@ -5536,7 +5590,7 @@ class T {
|
|
|
5536
5590
|
static buildGroupExts(e, t = [], s = 0, o) {
|
|
5537
5591
|
let i;
|
|
5538
5592
|
for (let r = 0; r < e.length; r++) {
|
|
5539
|
-
const n = e[r], l = new
|
|
5593
|
+
const n = e[r], l = new Ft(n, s, r, o);
|
|
5540
5594
|
i && (l.leftNeighbour = i, i.rightNeighbour = l), t.push(l), n.children && (l.children = T.buildGroupExts(n.children, [], s + 1, l)), i = l;
|
|
5541
5595
|
}
|
|
5542
5596
|
return t;
|
|
@@ -5578,7 +5632,7 @@ class T {
|
|
|
5578
5632
|
e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length && T.iterateThrowColumns(e, o.children);
|
|
5579
5633
|
}
|
|
5580
5634
|
}
|
|
5581
|
-
class
|
|
5635
|
+
class Os {
|
|
5582
5636
|
constructor() {
|
|
5583
5637
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
5584
5638
|
}
|
|
@@ -5655,8 +5709,8 @@ const Z = class Z {
|
|
|
5655
5709
|
render(e, t, s, o, i, r, n) {
|
|
5656
5710
|
const l = r != null && r.data ? r.data : "";
|
|
5657
5711
|
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, !
|
|
5712
|
+
const { toggle: a, visibility: c, closed: h } = r, u = a ? Z.toggleHeaderGroup : "";
|
|
5713
|
+
this.addText(e, o, t, s, l, u), a && c !== "always" && this.addArrowDiv(n, e, !h, t, s, o, u);
|
|
5660
5714
|
} else
|
|
5661
5715
|
this.addText(e, o, t, s, l, "");
|
|
5662
5716
|
}
|
|
@@ -5673,8 +5727,8 @@ const Z = class Z {
|
|
|
5673
5727
|
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
5728
|
let a;
|
|
5675
5729
|
s ? a = this.headerGroupOptions.iconExpanded : a = this.headerGroupOptions.iconCollapsed;
|
|
5676
|
-
const c = a.content,
|
|
5677
|
-
e.appendChild(l,
|
|
5730
|
+
const c = a.content, h = e.createText(c);
|
|
5731
|
+
e.appendChild(l, h), a.style && this.applyStyleString(e, l, a.style);
|
|
5678
5732
|
for (const u of a.classes)
|
|
5679
5733
|
e.addClass(l, u);
|
|
5680
5734
|
return e.appendChild(t, l), l;
|
|
@@ -5689,7 +5743,7 @@ const Z = class Z {
|
|
|
5689
5743
|
};
|
|
5690
5744
|
Z.toggleHeaderGroup = "toggleHeaderGroup";
|
|
5691
5745
|
let le = Z;
|
|
5692
|
-
class
|
|
5746
|
+
class $s {
|
|
5693
5747
|
constructor(e = "header", t, s = [], o, i = new fe()) {
|
|
5694
5748
|
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
5749
|
}
|
|
@@ -5789,24 +5843,24 @@ class Ls {
|
|
|
5789
5843
|
return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()), T.buildColumnDefs(this.groupExts);
|
|
5790
5844
|
}
|
|
5791
5845
|
}
|
|
5792
|
-
class
|
|
5846
|
+
class _s {
|
|
5793
5847
|
filterPredict(e, t, s = this.objectToString.bind(this)) {
|
|
5794
5848
|
if (!e)
|
|
5795
5849
|
return !1;
|
|
5796
5850
|
if (!t)
|
|
5797
5851
|
return !0;
|
|
5798
5852
|
t = t.toLowerCase();
|
|
5799
|
-
const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((
|
|
5853
|
+
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
5854
|
let c = !n.length;
|
|
5801
|
-
for (let
|
|
5802
|
-
(c || s(e).includes(n[
|
|
5855
|
+
for (let h = 0; h < n.length; h++)
|
|
5856
|
+
(c || s(e).includes(n[h])) && (c = !0);
|
|
5803
5857
|
if (!c)
|
|
5804
5858
|
return !1;
|
|
5805
|
-
for (let
|
|
5806
|
-
if (!s(e).includes(l[
|
|
5859
|
+
for (let h = 0; h < l.length; h++)
|
|
5860
|
+
if (!s(e).includes(l[h]))
|
|
5807
5861
|
return !1;
|
|
5808
|
-
for (let
|
|
5809
|
-
if (s(e).includes(a[
|
|
5862
|
+
for (let h = 0; h < a.length; h++)
|
|
5863
|
+
if (s(e).includes(a[h]))
|
|
5810
5864
|
return !1;
|
|
5811
5865
|
return !0;
|
|
5812
5866
|
}
|
|
@@ -5818,10 +5872,10 @@ class Os {
|
|
|
5818
5872
|
t = t.toLowerCase();
|
|
5819
5873
|
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
5874
|
return e == null ? void 0 : e.filter((c) => {
|
|
5821
|
-
let
|
|
5875
|
+
let h = !n.length;
|
|
5822
5876
|
for (let u = 0; u < n.length; u++)
|
|
5823
|
-
(
|
|
5824
|
-
if (!
|
|
5877
|
+
(h || s(c).includes(n[u])) && (h = !0);
|
|
5878
|
+
if (!h)
|
|
5825
5879
|
return !1;
|
|
5826
5880
|
for (let u = 0; u < l.length; u++)
|
|
5827
5881
|
if (!s(c).includes(l[u]))
|
|
@@ -5843,19 +5897,19 @@ class Os {
|
|
|
5843
5897
|
return t.join(" ").toLowerCase();
|
|
5844
5898
|
}
|
|
5845
5899
|
}
|
|
5846
|
-
class
|
|
5900
|
+
class Bs {
|
|
5847
5901
|
static bodyRenderer(e) {
|
|
5848
5902
|
return new I(void 0, e, void 0);
|
|
5849
5903
|
}
|
|
5850
5904
|
}
|
|
5851
|
-
class
|
|
5905
|
+
class Hs {
|
|
5852
5906
|
constructor(e, t = !0, s = !1) {
|
|
5853
5907
|
this.property = e, this.skipCheckableCheck = t, this.readonly = s;
|
|
5854
5908
|
}
|
|
5855
5909
|
render(e, t, s, o, i, r, n) {
|
|
5856
5910
|
if (this.readonly || this.skipCheckableCheck || i.isRowCheckable(t)) {
|
|
5857
5911
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
5858
|
-
const l = i.getRowByIndex(t), c = i.getValueByT(l, this.property) === !0 ? "checked" : "",
|
|
5912
|
+
const l = i.getRowByIndex(t), c = i.getValueByT(l, this.property) === !0 ? "checked" : "", h = this.readonly ? " readonly " : "";
|
|
5859
5913
|
if (n.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
|
|
5860
5914
|
<input
|
|
5861
5915
|
type="checkbox"
|
|
@@ -5865,7 +5919,7 @@ class _s {
|
|
|
5865
5919
|
data-property-index="${this.property}"
|
|
5866
5920
|
data-input-type="checkbox"
|
|
5867
5921
|
${c}
|
|
5868
|
-
${
|
|
5922
|
+
${h}
|
|
5869
5923
|
class="ge-input-checkbox">`, !this.readonly) {
|
|
5870
5924
|
const u = e.querySelector(".ge-input-checkbox");
|
|
5871
5925
|
u && u.addEventListener("click", (f, p) => (l[this.property] = !l[this.property], !0));
|
|
@@ -5873,12 +5927,12 @@ class _s {
|
|
|
5873
5927
|
}
|
|
5874
5928
|
}
|
|
5875
5929
|
}
|
|
5876
|
-
class
|
|
5930
|
+
class Vs {
|
|
5877
5931
|
render(e, t, s, o, i, r, n) {
|
|
5878
5932
|
r && (e.innerText = new Date(r).toISOString());
|
|
5879
5933
|
}
|
|
5880
5934
|
}
|
|
5881
|
-
class
|
|
5935
|
+
class Ws {
|
|
5882
5936
|
constructor() {
|
|
5883
5937
|
this.formatter = new Intl.DateTimeFormat("de-DE", {
|
|
5884
5938
|
year: "numeric",
|
|
@@ -5901,17 +5955,17 @@ class Hs {
|
|
|
5901
5955
|
}
|
|
5902
5956
|
}
|
|
5903
5957
|
}
|
|
5904
|
-
class
|
|
5958
|
+
class Ns {
|
|
5905
5959
|
render(e, t, s, o, i, r, n) {
|
|
5906
5960
|
r && (e.innerText = new Date(r).toLocaleDateString());
|
|
5907
5961
|
}
|
|
5908
5962
|
}
|
|
5909
|
-
class
|
|
5963
|
+
class Gs {
|
|
5910
5964
|
render(e, t, s, o, i, r, n) {
|
|
5911
5965
|
r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
|
|
5912
5966
|
}
|
|
5913
5967
|
}
|
|
5914
|
-
class
|
|
5968
|
+
class zs {
|
|
5915
5969
|
constructor(e = 100, t = !1) {
|
|
5916
5970
|
this.maxValue = e, this.labelVisible = t;
|
|
5917
5971
|
}
|
|
@@ -5941,17 +5995,17 @@ class Ns {
|
|
|
5941
5995
|
}
|
|
5942
5996
|
}
|
|
5943
5997
|
}
|
|
5944
|
-
class
|
|
5998
|
+
class js {
|
|
5945
5999
|
render(e, t, s, o, i, r, n) {
|
|
5946
6000
|
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
6001
|
}
|
|
5948
6002
|
}
|
|
5949
|
-
class
|
|
6003
|
+
class Us {
|
|
5950
6004
|
render(e, t, s, o, i, r, n) {
|
|
5951
6005
|
r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
|
|
5952
6006
|
}
|
|
5953
6007
|
}
|
|
5954
|
-
class
|
|
6008
|
+
class Ys {
|
|
5955
6009
|
constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
5956
6010
|
this.min = e, this.max = t;
|
|
5957
6011
|
}
|
|
@@ -5962,7 +6016,7 @@ class js {
|
|
|
5962
6016
|
</div>`, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && n.addClass(e, "ge-cell-error"));
|
|
5963
6017
|
}
|
|
5964
6018
|
}
|
|
5965
|
-
class
|
|
6019
|
+
class Ks {
|
|
5966
6020
|
constructor(e) {
|
|
5967
6021
|
this.property = e;
|
|
5968
6022
|
}
|
|
@@ -5973,15 +6027,15 @@ class Us {
|
|
|
5973
6027
|
const c = [];
|
|
5974
6028
|
for (let u = 0; u < a; u++)
|
|
5975
6029
|
c.push("★");
|
|
5976
|
-
const
|
|
6030
|
+
const h = c.join(" ");
|
|
5977
6031
|
e.innerHTML = `
|
|
5978
6032
|
<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}">${
|
|
6033
|
+
<div class="ge-table-label" data-row-index="${t}" data-col-index="${s}" data-area="${o}">${h}</div>
|
|
5980
6034
|
</div>`;
|
|
5981
6035
|
}
|
|
5982
6036
|
}
|
|
5983
6037
|
}
|
|
5984
|
-
class
|
|
6038
|
+
class Xs {
|
|
5985
6039
|
render(e, t, s, o, i, r, n) {
|
|
5986
6040
|
if (r != null && r.length) {
|
|
5987
6041
|
const l = n.createElement("div");
|
|
@@ -5994,7 +6048,7 @@ class Ys {
|
|
|
5994
6048
|
e.innerText = "";
|
|
5995
6049
|
}
|
|
5996
6050
|
}
|
|
5997
|
-
class
|
|
6051
|
+
class Js {
|
|
5998
6052
|
constructor(e, t = 100, s = !1) {
|
|
5999
6053
|
this.property = e, this.maxValue = t, this.labelVisible = s;
|
|
6000
6054
|
}
|
|
@@ -6002,13 +6056,13 @@ class Ks {
|
|
|
6002
6056
|
n.addClass(e, "ge-star-rating-div");
|
|
6003
6057
|
const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
|
|
6004
6058
|
if (!isNaN(a)) {
|
|
6005
|
-
const c = a * 100 / this.maxValue,
|
|
6059
|
+
const c = a * 100 / this.maxValue, h = this.labelVisible ? Math.round(c) + "%" : "";
|
|
6006
6060
|
e.innerHTML = `
|
|
6007
6061
|
<div class="ge-table-label-div"
|
|
6008
6062
|
data-row-index="${t}"
|
|
6009
6063
|
data-col-index="${s}"
|
|
6010
6064
|
data-area="${o}"
|
|
6011
|
-
title="${
|
|
6065
|
+
title="${h}"
|
|
6012
6066
|
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
6013
6067
|
<div class="ge-table-progress-container"
|
|
6014
6068
|
style="width:100%;height:50%;padding:0;margin-top:6px;"
|
|
@@ -6026,7 +6080,7 @@ class Ks {
|
|
|
6026
6080
|
}
|
|
6027
6081
|
}
|
|
6028
6082
|
}
|
|
6029
|
-
class
|
|
6083
|
+
class qs {
|
|
6030
6084
|
render(e, t, s, o, i, r, n) {
|
|
6031
6085
|
if (r) {
|
|
6032
6086
|
e.innerHTML = `
|
|
@@ -6046,7 +6100,7 @@ class Xs {
|
|
|
6046
6100
|
}
|
|
6047
6101
|
}
|
|
6048
6102
|
}
|
|
6049
|
-
class
|
|
6103
|
+
class We {
|
|
6050
6104
|
constructor(e, t, s, o, i, r) {
|
|
6051
6105
|
this.action = e, this.area = t, this.areaModel = s, this.rowIndex = o, this.columnIndex = i, this.id = r;
|
|
6052
6106
|
}
|
|
@@ -6056,14 +6110,14 @@ class $ {
|
|
|
6056
6110
|
this.action = e, this.label = t, this.icon = s, this.elementClass = o, this.elementType = i, this.enabled = r;
|
|
6057
6111
|
}
|
|
6058
6112
|
}
|
|
6059
|
-
class
|
|
6113
|
+
class Lt {
|
|
6060
6114
|
constructor(e, t) {
|
|
6061
6115
|
this.actionEventListener = e, this.crudActions = t;
|
|
6062
6116
|
}
|
|
6063
6117
|
render(e, t, s, o, i, r, n) {
|
|
6064
6118
|
n.addClass(e, "ge-table-row-action-div");
|
|
6065
6119
|
const l = r, c = this.getCrudActions(r).map(
|
|
6066
|
-
(
|
|
6120
|
+
(h) => h.elementType === "button" ? this.buildButtonHtml(h, o, t, s, l) : this.buildLinkHtml(h, o, t, s, l)
|
|
6067
6121
|
);
|
|
6068
6122
|
e.innerHTML = c.join(""), this.addClickEventListeners(e, o, i);
|
|
6069
6123
|
}
|
|
@@ -6113,7 +6167,7 @@ class Pt {
|
|
|
6113
6167
|
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
6168
|
if (s && o && i) {
|
|
6115
6169
|
const l = Q(s), a = Number(o), c = Number(i);
|
|
6116
|
-
return new
|
|
6170
|
+
return new We(r, l, t, a, c, n);
|
|
6117
6171
|
}
|
|
6118
6172
|
return null;
|
|
6119
6173
|
}
|
|
@@ -6121,16 +6175,16 @@ class Pt {
|
|
|
6121
6175
|
return Array.isArray(e) && e.every((t) => t instanceof $) ? e : this.crudActions;
|
|
6122
6176
|
}
|
|
6123
6177
|
}
|
|
6124
|
-
const
|
|
6125
|
-
return
|
|
6178
|
+
const Zs = function(d, e, t) {
|
|
6179
|
+
return d ? Number(d) : "";
|
|
6126
6180
|
};
|
|
6127
|
-
class
|
|
6181
|
+
class Ne {
|
|
6128
6182
|
constructor(e) {
|
|
6129
6183
|
this.options = e;
|
|
6130
6184
|
}
|
|
6131
6185
|
static create(e) {
|
|
6132
|
-
return new
|
|
6133
|
-
e.map((t) => new
|
|
6186
|
+
return new Ne(
|
|
6187
|
+
e.map((t) => new Dt(t, t))
|
|
6134
6188
|
);
|
|
6135
6189
|
}
|
|
6136
6190
|
render(e, t, s, o, i, r, n) {
|
|
@@ -6138,9 +6192,9 @@ class We {
|
|
|
6138
6192
|
n.addClass(e, "ge-table-row-select-div");
|
|
6139
6193
|
const l = i.getValueAt(t, s);
|
|
6140
6194
|
let a = [];
|
|
6141
|
-
for (let
|
|
6142
|
-
const u =
|
|
6143
|
-
a.push(`<option value="${
|
|
6195
|
+
for (let h of this.options) {
|
|
6196
|
+
const u = h.value === l ? " selected " : "";
|
|
6197
|
+
a.push(`<option value="${h.value}" ${u}>${h.label}</option>`);
|
|
6144
6198
|
}
|
|
6145
6199
|
const c = a.join("");
|
|
6146
6200
|
e.innerHTML = `
|
|
@@ -6156,7 +6210,7 @@ class We {
|
|
|
6156
6210
|
}
|
|
6157
6211
|
}
|
|
6158
6212
|
}
|
|
6159
|
-
class
|
|
6213
|
+
class Qs extends ge {
|
|
6160
6214
|
constructor(e) {
|
|
6161
6215
|
super("row", "multi"), this.model = e;
|
|
6162
6216
|
}
|
|
@@ -6239,12 +6293,12 @@ class qs extends ge {
|
|
|
6239
6293
|
this.isSelected(e, 0) ? this.unselectRow(e) : this.selectRow(e);
|
|
6240
6294
|
}
|
|
6241
6295
|
}
|
|
6242
|
-
class
|
|
6296
|
+
class eo {
|
|
6243
6297
|
constructor(e, t, s) {
|
|
6244
6298
|
this.r = e, this.g = t, this.b = s;
|
|
6245
6299
|
}
|
|
6246
6300
|
}
|
|
6247
|
-
class
|
|
6301
|
+
class Ie {
|
|
6248
6302
|
constructor(e, t, s, o) {
|
|
6249
6303
|
this.minValue = e, this.minColor = t, this.maxValue = s, this.maxColor = o;
|
|
6250
6304
|
}
|
|
@@ -6258,20 +6312,20 @@ class Y {
|
|
|
6258
6312
|
return `rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(a)})`;
|
|
6259
6313
|
}
|
|
6260
6314
|
static getThreeColorGradientRGB(e, t) {
|
|
6261
|
-
return e < t.middleValue ? Y.getTwoColorGradientRGB(e, new
|
|
6315
|
+
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
6316
|
}
|
|
6263
6317
|
}
|
|
6264
|
-
class
|
|
6318
|
+
class to {
|
|
6265
6319
|
constructor(e, t, s, o, i, r) {
|
|
6266
6320
|
this.minValue = e, this.minColor = t, this.middleValue = s, this.middleColor = o, this.maxValue = i, this.maxColor = r;
|
|
6267
6321
|
}
|
|
6268
6322
|
}
|
|
6269
|
-
class
|
|
6323
|
+
class Ot {
|
|
6270
6324
|
constructor(e = !0, t = !0, s = (r, n) => r * 10 + 10, o = 50, i = 450) {
|
|
6271
6325
|
this.autoCalc = e, this.takeHeaderLabelsIntoAccount = t, this.charCountToWidth = s, this.minWidth = o, this.maxWidth = i;
|
|
6272
6326
|
}
|
|
6273
6327
|
}
|
|
6274
|
-
class
|
|
6328
|
+
class $t {
|
|
6275
6329
|
constructor(e) {
|
|
6276
6330
|
this.object = e;
|
|
6277
6331
|
}
|
|
@@ -6403,7 +6457,7 @@ class oe {
|
|
|
6403
6457
|
return e.replace(/\./g, " ");
|
|
6404
6458
|
}
|
|
6405
6459
|
}
|
|
6406
|
-
class
|
|
6460
|
+
class _t {
|
|
6407
6461
|
constructor() {
|
|
6408
6462
|
this.urls = {
|
|
6409
6463
|
list: {
|
|
@@ -6419,7 +6473,7 @@ class Ot {
|
|
|
6419
6473
|
], this.tableActions = [
|
|
6420
6474
|
new $("CREATE", "Create", "", "", "button"),
|
|
6421
6475
|
new $("DELETE_SELECTED", "Delete Selected", "", "", "button")
|
|
6422
|
-
], this.autoAddActionColumn = !0, this.columnWidths = new
|
|
6476
|
+
], 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
6477
|
const t = e.getHeadersInit ? e.getHeadersInit() : {};
|
|
6424
6478
|
let s = e.urls.list.url, o = e.urls.list.method ?? "GET";
|
|
6425
6479
|
return fetch(s, {
|
|
@@ -6470,9 +6524,9 @@ class Ot {
|
|
|
6470
6524
|
};
|
|
6471
6525
|
}
|
|
6472
6526
|
}
|
|
6473
|
-
class
|
|
6527
|
+
class so {
|
|
6474
6528
|
constructor() {
|
|
6475
|
-
this.crudOptions = new
|
|
6529
|
+
this.crudOptions = new _t(), this.listenActionEvent = (e) => {
|
|
6476
6530
|
};
|
|
6477
6531
|
}
|
|
6478
6532
|
createTableModel(e, t, s = (i) => {
|
|
@@ -6481,7 +6535,7 @@ class eo {
|
|
|
6481
6535
|
this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
|
|
6482
6536
|
var r, n, l, a;
|
|
6483
6537
|
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]),
|
|
6538
|
+
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
6539
|
this.tableOptions = {
|
|
6486
6540
|
...new X(),
|
|
6487
6541
|
...t.tableOptions,
|
|
@@ -6498,12 +6552,12 @@ class eo {
|
|
|
6498
6552
|
let x = new H(
|
|
6499
6553
|
"id",
|
|
6500
6554
|
"Actions",
|
|
6501
|
-
|
|
6555
|
+
Et,
|
|
6502
6556
|
new I(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
|
|
6503
6557
|
);
|
|
6504
6558
|
x.rendererMap = new I(
|
|
6505
6559
|
void 0,
|
|
6506
|
-
new
|
|
6560
|
+
new Lt(this, e.singleRowActions),
|
|
6507
6561
|
void 0
|
|
6508
6562
|
), p.push(x);
|
|
6509
6563
|
}
|
|
@@ -6515,14 +6569,14 @@ class eo {
|
|
|
6515
6569
|
fixedLeftColumnCount: m,
|
|
6516
6570
|
fixedRightColumnCount: g
|
|
6517
6571
|
}), this.tableModel.getSelectionModel = u, this.bodyModel = (a = this.tableModel) == null ? void 0 : a.getBodyModel();
|
|
6518
|
-
const b = new
|
|
6572
|
+
const b = new It(this.tableModel, this.tableOptions);
|
|
6519
6573
|
s(b);
|
|
6520
6574
|
}
|
|
6521
6575
|
});
|
|
6522
6576
|
}
|
|
6523
6577
|
openDialogForCreate() {
|
|
6524
6578
|
if (this.bodyModel) {
|
|
6525
|
-
const e = new
|
|
6579
|
+
const e = new We("CREATE", "body", this.bodyModel, -1, -1, null);
|
|
6526
6580
|
this.onActionEvent(e);
|
|
6527
6581
|
}
|
|
6528
6582
|
}
|
|
@@ -6530,7 +6584,7 @@ class eo {
|
|
|
6530
6584
|
var t, s, o, i;
|
|
6531
6585
|
if (this.listenActionEvent && this.listenActionEvent(e), e.action === "VIEW") {
|
|
6532
6586
|
let r = e.id;
|
|
6533
|
-
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new
|
|
6587
|
+
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new $t(n).openDialog(), n));
|
|
6534
6588
|
} else if (e.action === "EDIT") {
|
|
6535
6589
|
let r = e.id;
|
|
6536
6590
|
const n = this.crudOptions.getIdKey() ?? "id";
|
|
@@ -6565,8 +6619,8 @@ class eo {
|
|
|
6565
6619
|
} else if (e.action === "DELETE") {
|
|
6566
6620
|
let r = e.id;
|
|
6567
6621
|
(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 = (
|
|
6622
|
+
var l, a, c, h, u;
|
|
6623
|
+
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
6624
|
});
|
|
6571
6625
|
}
|
|
6572
6626
|
}
|
|
@@ -6577,20 +6631,20 @@ class eo {
|
|
|
6577
6631
|
return new Array(o).fill(200);
|
|
6578
6632
|
const i = e.length ?? 0, r = new Array(o).fill(0);
|
|
6579
6633
|
for (let c = 0; c < i; c++)
|
|
6580
|
-
for (let
|
|
6581
|
-
const u = t[
|
|
6582
|
-
p > r[
|
|
6634
|
+
for (let h = 0; h < o; h++) {
|
|
6635
|
+
const u = t[h], f = this.getValueByT(e[c], u), p = (f == null ? void 0 : f.toString().length) || 0;
|
|
6636
|
+
p > r[h] && (r[h] = p);
|
|
6583
6637
|
}
|
|
6584
6638
|
if (this.crudOptions.columnWidths.takeHeaderLabelsIntoAccount)
|
|
6585
6639
|
for (let c = 0; c < o; c++) {
|
|
6586
|
-
const
|
|
6587
|
-
|
|
6640
|
+
const h = s[c].length || 0;
|
|
6641
|
+
h > r[c] && (r[c] = h);
|
|
6588
6642
|
}
|
|
6589
6643
|
const n = this.crudOptions.columnWidths.minWidth, l = this.crudOptions.columnWidths.maxWidth;
|
|
6590
|
-
return r.map((c,
|
|
6644
|
+
return r.map((c, h) => Math.min(
|
|
6591
6645
|
l,
|
|
6592
6646
|
Math.max(
|
|
6593
|
-
this.crudOptions.columnWidths.charCountToWidth(c,
|
|
6647
|
+
this.crudOptions.columnWidths.charCountToWidth(c, h),
|
|
6594
6648
|
n
|
|
6595
6649
|
)
|
|
6596
6650
|
));
|
|
@@ -6611,190 +6665,192 @@ class eo {
|
|
|
6611
6665
|
return s;
|
|
6612
6666
|
}
|
|
6613
6667
|
}
|
|
6614
|
-
class
|
|
6668
|
+
class oo {
|
|
6615
6669
|
constructor(e, t) {
|
|
6616
6670
|
this.method = e, this.url = t;
|
|
6617
6671
|
}
|
|
6618
6672
|
}
|
|
6619
6673
|
export {
|
|
6620
6674
|
he as AbstractAreaModel,
|
|
6621
|
-
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6675
|
+
We as ActionEvent,
|
|
6676
|
+
Lt as ActionsCellRenderer,
|
|
6677
|
+
Le as AnyPropertyType,
|
|
6678
|
+
Ds as AreaMapFactory,
|
|
6679
|
+
Os as AreaModel,
|
|
6626
6680
|
P as AreaModelArrayOfArrays,
|
|
6627
|
-
|
|
6681
|
+
$s as AreaModelCellGroups,
|
|
6628
6682
|
F as AreaModelHidden,
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6683
|
+
He as AreaModelObjectArray,
|
|
6684
|
+
Me as AreaModelObjectArrayWithColumndefs,
|
|
6685
|
+
Ae as AreaModelTree,
|
|
6632
6686
|
I as AreaObjectMap,
|
|
6633
6687
|
B as ArrayPropertyType,
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6688
|
+
Ls as AutoRestoreOptions,
|
|
6689
|
+
Ht as AvoidDoubleExecution,
|
|
6690
|
+
Ye as BooleanPropertyType,
|
|
6691
|
+
Pt as CellGroup,
|
|
6692
|
+
Ft as CellGroupExt,
|
|
6639
6693
|
le as CellGroupExtCellRenderer,
|
|
6640
6694
|
R as CellRange,
|
|
6641
6695
|
T as CellgroupFactory,
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
6696
|
+
Hs as CheckboxBooleanPropertyCellRenderer,
|
|
6697
|
+
Te as CheckboxCellRenderer,
|
|
6698
|
+
ks as CheckboxColumnDef,
|
|
6699
|
+
Tt as CheckboxModel,
|
|
6700
|
+
Cs as ChunkData,
|
|
6701
|
+
at as ColAndRowspanModel,
|
|
6702
|
+
it as CollapsedExpandedData,
|
|
6703
|
+
eo as ColorRgb,
|
|
6650
6704
|
H as ColumnDef,
|
|
6651
|
-
|
|
6652
|
-
|
|
6653
|
-
|
|
6705
|
+
Vt as ColumnDefGenerator,
|
|
6706
|
+
Ot as ColumnWidths,
|
|
6707
|
+
Qe as ConvenienceDomService,
|
|
6654
6708
|
J as CopyService,
|
|
6655
6709
|
$ as CrudAction,
|
|
6656
6710
|
oe as CrudObjectEdit,
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
|
|
6711
|
+
$t as CrudObjectView,
|
|
6712
|
+
_t as CrudOptions,
|
|
6713
|
+
so as CrudTableModelFactory,
|
|
6714
|
+
we as CssVars,
|
|
6715
|
+
Ws as DateToIntlDDMMYYYYCellRenderer,
|
|
6716
|
+
Vs as DateToIsoCellRenderer,
|
|
6717
|
+
Ns as DateToLocaleDateCellRenderer,
|
|
6718
|
+
Us as DateToTecCellRenderer,
|
|
6665
6719
|
G as DefaultRowHeights,
|
|
6666
|
-
|
|
6720
|
+
lt as EleScope,
|
|
6667
6721
|
re as EventAdapter,
|
|
6668
|
-
|
|
6669
|
-
|
|
6670
|
-
|
|
6671
|
-
|
|
6672
|
-
|
|
6722
|
+
Gt as EventCheckboxChangedHandler,
|
|
6723
|
+
At as ExcelService,
|
|
6724
|
+
Ce as FalseFn,
|
|
6725
|
+
wt as FocusModel,
|
|
6726
|
+
ut as GeCellIndices,
|
|
6673
6727
|
Y as GeCssColorUtil,
|
|
6674
|
-
|
|
6675
|
-
|
|
6728
|
+
_s as GeFilterService,
|
|
6729
|
+
Ps as GeKeyEvent,
|
|
6676
6730
|
pe as GeModelChangeEvent,
|
|
6677
6731
|
de as GeMouseEvent,
|
|
6678
6732
|
L as GeoData,
|
|
6679
6733
|
O as Icon,
|
|
6680
|
-
|
|
6681
|
-
|
|
6682
|
-
|
|
6734
|
+
vs as IndexAndPx,
|
|
6735
|
+
xt as InputCellRenderer,
|
|
6736
|
+
ht as InputHandler,
|
|
6683
6737
|
be as JsonService,
|
|
6684
6738
|
V as LicenseManager,
|
|
6685
|
-
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6739
|
+
Gs as MaleFemaleToIconCellRenderer,
|
|
6740
|
+
tt as MouseHandler,
|
|
6741
|
+
et as MouseTargetData,
|
|
6742
|
+
Qs as MultiRowsSelectionModel,
|
|
6743
|
+
ze as NullPropertyType,
|
|
6744
|
+
zs as NumberCellProgressBarCellRenderer,
|
|
6745
|
+
Ys as NumberCellRenderer,
|
|
6746
|
+
Ue as NumberPropertyType,
|
|
6693
6747
|
D as ObjectPropertyType,
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6748
|
+
ft as OsxShortcutActionIdMapping,
|
|
6749
|
+
ke as PROPERTY_TYPE_KEY_ANY,
|
|
6750
|
+
Fe as PROPERTY_TYPE_KEY_ARRAY,
|
|
6697
6751
|
ce as PROPERTY_TYPE_KEY_BOOLEAN,
|
|
6698
|
-
|
|
6752
|
+
De as PROPERTY_TYPE_KEY_NULL,
|
|
6699
6753
|
ae as PROPERTY_TYPE_KEY_NUMBER,
|
|
6700
6754
|
j as PROPERTY_TYPE_KEY_OBJECT,
|
|
6701
|
-
|
|
6755
|
+
Pe as PROPERTY_TYPE_KEY_STRING,
|
|
6702
6756
|
z as PROPERTY_TYPE_KEY_UNDEFINED,
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6757
|
+
Ee as Padding,
|
|
6758
|
+
qs as PositiveAndNegativeNumberRenderer,
|
|
6759
|
+
Js as ProgressBarCellRenderer,
|
|
6760
|
+
Oe as PropertyItem,
|
|
6761
|
+
Wt as PropertyTypeService,
|
|
6762
|
+
ct as RenderScope,
|
|
6763
|
+
Bs as Renderer,
|
|
6764
|
+
kt as RequestChunk,
|
|
6765
|
+
vt as ResizeHandler,
|
|
6766
|
+
Nt as SchemeGenerator,
|
|
6767
|
+
Ne as SelectCellRenderer,
|
|
6714
6768
|
ge as SelectionModel,
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6769
|
+
pt as SelectionService,
|
|
6770
|
+
bt as ShortcutService,
|
|
6771
|
+
Xs as SimpleArrayCellRenderer,
|
|
6772
|
+
yt as SimpleDomService,
|
|
6719
6773
|
y as Size,
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6726
|
-
|
|
6727
|
-
|
|
6728
|
-
|
|
6774
|
+
dt as SortItem,
|
|
6775
|
+
_e as SortedOptions,
|
|
6776
|
+
Ks as StarRatingCellRenderer,
|
|
6777
|
+
rt as StoreStateCollapsedExpandService,
|
|
6778
|
+
ot as StoreStateScrollPosService,
|
|
6779
|
+
nt as StoreStateSortingService,
|
|
6780
|
+
je as StringPropertyType,
|
|
6781
|
+
st as TableApi,
|
|
6782
|
+
Fs as TableCellUpdateEvent,
|
|
6729
6783
|
_ as TableFactory,
|
|
6730
6784
|
se as TableModel,
|
|
6731
|
-
|
|
6785
|
+
It as TableModelAndOptions,
|
|
6732
6786
|
X as TableOptions,
|
|
6733
|
-
|
|
6734
|
-
|
|
6735
|
-
|
|
6787
|
+
Ve as TableScope,
|
|
6788
|
+
to as ThreeColorGradientArg,
|
|
6789
|
+
Re as TreeCheckboxModel,
|
|
6736
6790
|
ne as TreeFactory,
|
|
6737
|
-
|
|
6738
|
-
|
|
6739
|
-
|
|
6740
|
-
|
|
6741
|
-
|
|
6742
|
-
|
|
6791
|
+
$e as TreeOptions,
|
|
6792
|
+
Se as TreeRow,
|
|
6793
|
+
Mt as TreeRowService,
|
|
6794
|
+
js as TrueFalseCellRenderer,
|
|
6795
|
+
Rt as TrueFn,
|
|
6796
|
+
Ie as TwoColorGradientArg,
|
|
6743
6797
|
K as UNIMPORTANT_TYPES,
|
|
6744
6798
|
te as UndefinedPropertyType,
|
|
6745
|
-
|
|
6746
|
-
|
|
6747
|
-
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6757
|
-
|
|
6799
|
+
oo as UrlInfo,
|
|
6800
|
+
Ke as ValueInfo,
|
|
6801
|
+
Dt as ValueLabel,
|
|
6802
|
+
gt as WindowsShortcutActionIdMapping,
|
|
6803
|
+
Ss as actionIds,
|
|
6804
|
+
Ts as allCenter,
|
|
6805
|
+
Ms as allLeft,
|
|
6806
|
+
Is as allRight,
|
|
6807
|
+
Rs as bodyCenter,
|
|
6808
|
+
As as bodyLeft,
|
|
6809
|
+
Es as bodyRight,
|
|
6810
|
+
xe as createHarmonizedShortcutByKeyboardEvent,
|
|
6811
|
+
Ge as debounce,
|
|
6812
|
+
Zs as editInputPipeForNumber,
|
|
6758
6813
|
ye as entitySuffix,
|
|
6759
|
-
|
|
6814
|
+
qe as firstLetterUppercase,
|
|
6760
6815
|
Q as getAreaIdentByString,
|
|
6761
|
-
|
|
6816
|
+
Xe as getEntityName,
|
|
6817
|
+
mt as harmonizeShortcut,
|
|
6762
6818
|
ie as isAreaModelTree,
|
|
6763
|
-
|
|
6819
|
+
Ze as isCheckboxColumnDef,
|
|
6764
6820
|
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
|
-
|
|
6821
|
+
ws as px0,
|
|
6822
|
+
xs as px10,
|
|
6823
|
+
ds as px100,
|
|
6824
|
+
cs as px110,
|
|
6825
|
+
as as px120,
|
|
6826
|
+
ls as px130,
|
|
6827
|
+
ns as px140,
|
|
6828
|
+
rs as px150,
|
|
6829
|
+
is as px160,
|
|
6830
|
+
os as px170,
|
|
6831
|
+
ss as px180,
|
|
6832
|
+
ts as px190,
|
|
6833
|
+
ys as px20,
|
|
6834
|
+
ve as px200,
|
|
6835
|
+
es as px210,
|
|
6836
|
+
Qt as px220,
|
|
6837
|
+
Zt as px230,
|
|
6838
|
+
qt as px240,
|
|
6839
|
+
Jt as px250,
|
|
6840
|
+
Xt as px260,
|
|
6841
|
+
Kt as px270,
|
|
6842
|
+
Yt as px280,
|
|
6843
|
+
Ut as px290,
|
|
6844
|
+
bs as px30,
|
|
6845
|
+
Et as px300,
|
|
6846
|
+
ms as px40,
|
|
6847
|
+
jt as px400,
|
|
6848
|
+
fs as px50,
|
|
6849
|
+
zt as px500,
|
|
6850
|
+
gs as px60,
|
|
6851
|
+
ps as px70,
|
|
6852
|
+
us as px80,
|
|
6853
|
+
hs as px90,
|
|
6854
|
+
Bt as throttle,
|
|
6855
|
+
Je as trimArraySuffixes
|
|
6800
6856
|
};
|