@guiexpert/table 1.1.80 → 1.1.81
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 +71 -71
- package/index.d.ts +3 -0
- package/index.js +753 -560
- package/lib/table/data/tablemodel/areamodel/cover-grid-body-model.d.ts +52 -0
- package/lib/table/data/tablemodel/cover-grid-table-model.d.ts +50 -0
- package/lib/table/factory/cover-grid-factory.d.ts +5 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
function
|
|
1
|
+
function Ht(c, 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 ? (c.apply(this, o), s = i) : t || (t = window.setTimeout(() => {
|
|
6
|
+
c.apply(this, o), s = Date.now(), t = null;
|
|
7
7
|
}, r));
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
function Ge(
|
|
10
|
+
function Ge(c, e = 500) {
|
|
11
11
|
let t = null;
|
|
12
12
|
return function(...s) {
|
|
13
13
|
t && window.clearTimeout(t), t = window.setTimeout(() => {
|
|
14
|
-
|
|
14
|
+
c.apply(this, s), t = null;
|
|
15
15
|
}, e);
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function Wt(c = 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 < c))
|
|
24
24
|
return o = Date.now(), i.apply(this, r);
|
|
25
25
|
}, s;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const
|
|
28
|
+
const Fe = "any", j = "undefined", Pe = "null", _e = "string", ce = "number", he = "boolean", Le = "Array", U = "object", X = [Pe, j, Fe];
|
|
29
29
|
class Oe {
|
|
30
30
|
constructor(e) {
|
|
31
|
-
this.propertyName = e, this.type =
|
|
31
|
+
this.propertyName = e, this.type = Fe;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
class se {
|
|
@@ -38,12 +38,12 @@ class se {
|
|
|
38
38
|
}
|
|
39
39
|
class ze {
|
|
40
40
|
constructor(e) {
|
|
41
|
-
this.propertyName = e, this.type =
|
|
41
|
+
this.propertyName = e, this.type = Pe;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
class je {
|
|
45
45
|
constructor(e) {
|
|
46
|
-
this.propertyName = e, this.type =
|
|
46
|
+
this.propertyName = e, this.type = _e;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
class Ue {
|
|
@@ -53,7 +53,7 @@ class Ue {
|
|
|
53
53
|
}
|
|
54
54
|
class Ye {
|
|
55
55
|
constructor(e) {
|
|
56
|
-
this.propertyName = e, this.type =
|
|
56
|
+
this.propertyName = e, this.type = he;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
class B {
|
|
@@ -61,7 +61,7 @@ class B {
|
|
|
61
61
|
this.propertyName = e, this.items = t, this.type = Le;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
class
|
|
64
|
+
class $e {
|
|
65
65
|
constructor(e, t = []) {
|
|
66
66
|
this.propertyName = e, this.types = t;
|
|
67
67
|
}
|
|
@@ -69,12 +69,12 @@ class _e {
|
|
|
69
69
|
return `PropertyItem(propertyName: ${this.propertyName}, types: [${this.types.map((e) => e.type).join(", ")}])`;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
72
|
+
class F {
|
|
73
73
|
constructor(e, t, s = []) {
|
|
74
74
|
this.propertyName = e, this.className = t, this.properties = s, this.type = U;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
class
|
|
77
|
+
class Nt {
|
|
78
78
|
constructor() {
|
|
79
79
|
this.rootPropertyType = null, this.allowCustomRenderer = !0, this.bufCustomRenderer = [], this.LABEL_MAPPINGS = {
|
|
80
80
|
Id: "ID",
|
|
@@ -102,7 +102,7 @@ class Ht {
|
|
|
102
102
|
return s;
|
|
103
103
|
if (e instanceof B) {
|
|
104
104
|
const o = e.items.find((i) => i.type === U);
|
|
105
|
-
if (o && o instanceof
|
|
105
|
+
if (o && o instanceof F) {
|
|
106
106
|
const i = o.properties;
|
|
107
107
|
s.push(" const columnDefs: ColumnDefIf[] = ["), this.iteratePropertyItems(s, i, ""), s.push(" ];");
|
|
108
108
|
}
|
|
@@ -115,30 +115,30 @@ class Ht {
|
|
|
115
115
|
if (r.length === 1) {
|
|
116
116
|
let n = r[0];
|
|
117
117
|
const l = s ? [s, n.propertyName].join(".") : n.propertyName;
|
|
118
|
-
if (n instanceof
|
|
118
|
+
if (n instanceof F)
|
|
119
119
|
this.iteratePropertyItems(e, n.properties, l);
|
|
120
120
|
else {
|
|
121
121
|
let a = "";
|
|
122
122
|
if (n instanceof B) {
|
|
123
123
|
const p = n.items.find((m) => m.type === U);
|
|
124
|
-
p && p instanceof
|
|
124
|
+
p && p instanceof F && (a = p.className);
|
|
125
125
|
}
|
|
126
|
-
const
|
|
127
|
-
let h = 100, u = "",
|
|
126
|
+
const d = this.getReadableColumnLabel(l);
|
|
127
|
+
let h = 100, u = "", f = "ge-table-text-align-left";
|
|
128
128
|
if (n.type === Le) {
|
|
129
129
|
if (this.allowCustomRenderer && a) {
|
|
130
130
|
const p = `${a}ArrayCellRenderer`;
|
|
131
|
-
u = ` bodyRenderer: new ${p}(),`,
|
|
131
|
+
u = ` bodyRenderer: new ${p}(),`, f = "", this.renderCumstomCellRenderer(a, p);
|
|
132
132
|
} else
|
|
133
133
|
u = " bodyRenderer: new SimpleArrayCellRenderer(),";
|
|
134
134
|
h = 250;
|
|
135
|
-
} else n.type === ce ? (u = " bodyRenderer: new NumberCellRenderer(),",
|
|
135
|
+
} else n.type === ce ? (u = " bodyRenderer: new NumberCellRenderer(),", f = "ge-table-text-align-right") : n.type === he && (u = " bodyRenderer: new TrueFalseCellRenderer(),", f = "ge-table-text-align-center", h = 80);
|
|
136
136
|
e.push(` ColumnDef.create({
|
|
137
137
|
property: "${l}",
|
|
138
|
-
headerLabel: "${
|
|
138
|
+
headerLabel: "${d}",
|
|
139
139
|
width: new Size(${h}, "px"),
|
|
140
|
-
bodyClasses: ["${
|
|
141
|
-
headerClasses: ["${
|
|
140
|
+
bodyClasses: ["${f}"],
|
|
141
|
+
headerClasses: ["${f}"],`), u && e.push(u), e.push(" }),");
|
|
142
142
|
}
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -194,7 +194,7 @@ export class ${t} implements CellRendererIf {
|
|
|
194
194
|
`);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
class
|
|
197
|
+
class xe {
|
|
198
198
|
/**
|
|
199
199
|
*
|
|
200
200
|
* Fixes an invalid json like this:
|
|
@@ -262,30 +262,30 @@ class ye {
|
|
|
262
262
|
}
|
|
263
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 $e("", [new Oe("")]);
|
|
266
266
|
}
|
|
267
267
|
toString() {
|
|
268
268
|
var e;
|
|
269
269
|
return `${this.path} -> : ${((e = this.propertyItem) == null ? void 0 : e.toString()) ?? ""}`;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
const
|
|
273
|
-
function Xe(
|
|
274
|
-
let e = Je(qe(
|
|
275
|
-
return e.includes(
|
|
272
|
+
const Se = "Entity";
|
|
273
|
+
function Xe(c) {
|
|
274
|
+
let e = Je(qe(c));
|
|
275
|
+
return e.includes(Se) || (e = e + Se), e;
|
|
276
276
|
}
|
|
277
|
-
function Je(
|
|
278
|
-
if (!
|
|
277
|
+
function Je(c) {
|
|
278
|
+
if (!c || c.length === 0) return c;
|
|
279
279
|
const e = ["Array", "Arr", "List", "s"];
|
|
280
280
|
for (const t of e)
|
|
281
|
-
if (
|
|
282
|
-
return
|
|
283
|
-
return
|
|
281
|
+
if (c.endsWith(t))
|
|
282
|
+
return c.slice(0, -t.length);
|
|
283
|
+
return c;
|
|
284
284
|
}
|
|
285
|
-
function qe(
|
|
286
|
-
return !
|
|
285
|
+
function qe(c) {
|
|
286
|
+
return !c || c.length === 0 ? "" : c[0].toUpperCase() + c.slice(1);
|
|
287
287
|
}
|
|
288
|
-
class
|
|
288
|
+
class Gt {
|
|
289
289
|
constructor() {
|
|
290
290
|
this.debugging = !1;
|
|
291
291
|
}
|
|
@@ -372,7 +372,7 @@ class Wt {
|
|
|
372
372
|
json2PropertyType(e, t = "") {
|
|
373
373
|
let s;
|
|
374
374
|
if (typeof e == "string") {
|
|
375
|
-
const o = new
|
|
375
|
+
const o = new xe().fixJSON(e);
|
|
376
376
|
s = this.json2Object(o);
|
|
377
377
|
} else
|
|
378
378
|
s = e;
|
|
@@ -488,7 +488,7 @@ class Wt {
|
|
|
488
488
|
json2ValueInfos(e, t = "") {
|
|
489
489
|
let s;
|
|
490
490
|
if (typeof e == "string") {
|
|
491
|
-
const o = new
|
|
491
|
+
const o = new xe().fixJSON(e);
|
|
492
492
|
s = this.json2Object(o);
|
|
493
493
|
} else
|
|
494
494
|
s = e;
|
|
@@ -517,9 +517,9 @@ class Wt {
|
|
|
517
517
|
const a = l[0];
|
|
518
518
|
if (a instanceof B) {
|
|
519
519
|
n = !0;
|
|
520
|
-
for (const
|
|
521
|
-
a.items.push(
|
|
522
|
-
} else a instanceof
|
|
520
|
+
for (const d of o.propertyItem.types)
|
|
521
|
+
a.items.push(d);
|
|
522
|
+
} else a instanceof F && (n = !0, a.properties.push(o.propertyItem));
|
|
523
523
|
}
|
|
524
524
|
if (!n)
|
|
525
525
|
for (const a of o.propertyItem.types)
|
|
@@ -556,8 +556,8 @@ class Wt {
|
|
|
556
556
|
if (n) {
|
|
557
557
|
const l = this.getFirstValueInfoByPath(e, n);
|
|
558
558
|
if (Array.isArray(l == null ? void 0 : l.value)) {
|
|
559
|
-
const a = (l == null ? void 0 : l.value.length) ?? 0,
|
|
560
|
-
a >
|
|
559
|
+
const a = (l == null ? void 0 : l.value.length) ?? 0, d = this.countPath(e, i.path);
|
|
560
|
+
a > d && (i.propertyItem.types.some((h) => h.type === j) || i.propertyItem.types.push(new se(i.property)));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
}
|
|
@@ -581,28 +581,28 @@ class Wt {
|
|
|
581
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 === U && !Array.isArray(i)) {
|
|
584
|
-
for (const
|
|
585
|
-
if (i.hasOwnProperty(
|
|
586
|
-
const h = r ? `${r}/${
|
|
587
|
-
o(i[
|
|
584
|
+
for (const d in i)
|
|
585
|
+
if (i.hasOwnProperty(d)) {
|
|
586
|
+
const h = r ? `${r}/${d}` : d;
|
|
587
|
+
o(i[d], h, a);
|
|
588
588
|
}
|
|
589
|
-
} else Array.isArray(i) && i.forEach((
|
|
589
|
+
} else Array.isArray(i) && i.forEach((d, h) => {
|
|
590
590
|
const u = `${r}/[]`;
|
|
591
|
-
o(
|
|
591
|
+
o(d, u, a);
|
|
592
592
|
});
|
|
593
593
|
};
|
|
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 $e(t, [
|
|
598
598
|
this.createPropertyType(e, t)
|
|
599
599
|
]);
|
|
600
600
|
}
|
|
601
601
|
createPropertyType(e, t) {
|
|
602
|
-
return e === null ? new ze(t) : e === void 0 ? new se(t) : typeof e ===
|
|
602
|
+
return e === null ? new ze(t) : e === void 0 ? new se(t) : typeof e === _e ? new je(t) : typeof e === ce && !isNaN(e) ? new Ue(t) : typeof e === he ? new Ye(t) : Array.isArray(e) ? new B(t) : typeof e === U ? new F(t, Xe(t)) : new se(t);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
class
|
|
605
|
+
class zt {
|
|
606
606
|
constructor() {
|
|
607
607
|
this.orOperator = "|", this.rootPropertyType = null, this.rootName = "Root", this.renderTypeScriptInterfacesFifo = [], this.renderTypeScriptInterfacesDone = [];
|
|
608
608
|
}
|
|
@@ -622,11 +622,11 @@ class Nt {
|
|
|
622
622
|
if (!e) return t;
|
|
623
623
|
if (e instanceof B) {
|
|
624
624
|
for (const o of e.items)
|
|
625
|
-
if (this.renderTypeScriptInterfacesRecursive(o, t, s), o instanceof
|
|
625
|
+
if (this.renderTypeScriptInterfacesRecursive(o, t, s), o instanceof F) {
|
|
626
626
|
const i = o;
|
|
627
627
|
i !== this.rootPropertyType && this.renderTypeScriptInterfacesFifo.push(i);
|
|
628
628
|
}
|
|
629
|
-
} else if (e instanceof
|
|
629
|
+
} else if (e instanceof F) {
|
|
630
630
|
const o = e, i = o.className;
|
|
631
631
|
if (!this.renderTypeScriptInterfacesDone.includes(i)) {
|
|
632
632
|
this.renderTypeScriptInterfacesDone.push(i), t.push(`export interface ${i} {`);
|
|
@@ -636,11 +636,11 @@ class Nt {
|
|
|
636
636
|
const l = this.containsUndefinedPropertyType(r) ? "?" : "";
|
|
637
637
|
t.push(" " + r.propertyName + l + ": " + n + ";");
|
|
638
638
|
for (const a of r.types)
|
|
639
|
-
if (a instanceof
|
|
639
|
+
if (a instanceof F)
|
|
640
640
|
a !== this.rootPropertyType && this.renderTypeScriptInterfacesFifo.push(a);
|
|
641
641
|
else if (a instanceof B)
|
|
642
|
-
for (const
|
|
643
|
-
|
|
642
|
+
for (const d of a.items)
|
|
643
|
+
d instanceof F && this.renderTypeScriptInterfacesFifo.push(d);
|
|
644
644
|
}
|
|
645
645
|
t.push("}"), t.push("");
|
|
646
646
|
}
|
|
@@ -659,7 +659,7 @@ class Nt {
|
|
|
659
659
|
const s = e.items.map((o) => this.renderType(o, t)).join(this.orOperator);
|
|
660
660
|
return s.includes(this.orOperator) ? `(${s})[]` : `${s}[]`;
|
|
661
661
|
}
|
|
662
|
-
return e instanceof
|
|
662
|
+
return e instanceof F ? e.className : e.type;
|
|
663
663
|
}
|
|
664
664
|
containsUndefinedPropertyType(e) {
|
|
665
665
|
for (const t of e.types)
|
|
@@ -692,21 +692,21 @@ class W {
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function G(
|
|
696
|
-
return
|
|
695
|
+
function G(c) {
|
|
696
|
+
return c && c.type === "TreeRow";
|
|
697
697
|
}
|
|
698
|
-
function re(
|
|
699
|
-
return
|
|
698
|
+
function re(c) {
|
|
699
|
+
return c && c.type === "AreaModelTree";
|
|
700
700
|
}
|
|
701
|
-
function Ze(
|
|
702
|
-
return
|
|
701
|
+
function Ze(c) {
|
|
702
|
+
return c && c.type === "CheckboxColumnDef";
|
|
703
703
|
}
|
|
704
|
-
class
|
|
705
|
-
constructor(e = -1, t = -1, s = -1, o = -1, i, r, n, l = 0, a = 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 =
|
|
704
|
+
class ue {
|
|
705
|
+
constructor(e = -1, t = -1, s = -1, o = -1, i, r, n, l = 0, a = 0, d = 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 = d, this.action = h;
|
|
707
707
|
}
|
|
708
708
|
clone() {
|
|
709
|
-
return new
|
|
709
|
+
return new ue(
|
|
710
710
|
this.rowIndex,
|
|
711
711
|
this.rowTop,
|
|
712
712
|
this.columnIndex,
|
|
@@ -721,25 +721,25 @@ class he {
|
|
|
721
721
|
);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
class
|
|
724
|
+
class O {
|
|
725
725
|
constructor(e = ">", t = "", s = []) {
|
|
726
726
|
this.content = e, this.style = t, this.classes = s;
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
class
|
|
730
|
-
constructor(e = new
|
|
729
|
+
class Ve {
|
|
730
|
+
constructor(e = new O(
|
|
731
731
|
">",
|
|
732
732
|
"transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
|
|
733
733
|
["gt-table-tree-arrow-expanded"]
|
|
734
|
-
), t = new
|
|
734
|
+
), t = new O(
|
|
735
735
|
">",
|
|
736
736
|
"",
|
|
737
737
|
["ge-table-tree-arrow-collapsed"]
|
|
738
|
-
), s = new
|
|
738
|
+
), s = new O(
|
|
739
739
|
">",
|
|
740
740
|
"color:transparent;",
|
|
741
741
|
["gt-table-tree-arrow-hidden"]
|
|
742
|
-
), o = new
|
|
742
|
+
), o = new O(
|
|
743
743
|
"↕",
|
|
744
744
|
"",
|
|
745
745
|
["gt-table-tree-arrow-expanded-all"]
|
|
@@ -747,8 +747,8 @@ class $e {
|
|
|
747
747
|
this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
class
|
|
751
|
-
constructor(e = new
|
|
750
|
+
class Be {
|
|
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
|
}
|
|
@@ -838,14 +838,14 @@ class Qe {
|
|
|
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:
|
|
841
|
+
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: n, text: l = "", treeArrow: a, tableOptions: d, checkedType: h = void 0, sortState: u } = e, f = d == null ? void 0 : d.treeOptions, p = d == null ? void 0 : d.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
|
-
const
|
|
844
|
-
if (r === "body" && n === "center" && this.domService.addClass(m, `ge-table-column-${
|
|
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 && 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
|
}
|
|
848
|
-
return u && this.addSortedIcon(m, u,
|
|
848
|
+
return u && this.addSortedIcon(m, u, d == null ? void 0 : d.sortedOptions, i), this.domService.appendChild(t, m), m;
|
|
849
849
|
}
|
|
850
850
|
addCheckboxToDiv(e, t, s, o) {
|
|
851
851
|
const i = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
|
|
@@ -872,7 +872,7 @@ class Qe {
|
|
|
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 Be(), 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,13 +883,13 @@ class Qe {
|
|
|
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 Ve(), 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
|
-
const a = l.content,
|
|
892
|
-
this.domService.appendChild(n,
|
|
891
|
+
const a = l.content, d = this.domService.createText(a);
|
|
892
|
+
this.domService.appendChild(n, d), l.style && this.applyStyleString(n, l.style);
|
|
893
893
|
for (const h of l.classes)
|
|
894
894
|
this.domService.addClass(n, h);
|
|
895
895
|
return this.domService.appendChild(e, n), n;
|
|
@@ -934,7 +934,7 @@ class Qe {
|
|
|
934
934
|
return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
|
|
935
935
|
}
|
|
936
936
|
}
|
|
937
|
-
const ee = (
|
|
937
|
+
const ee = (c) => c === "header" ? "header" : c === "footer" ? "footer" : "body";
|
|
938
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)) {
|
|
@@ -1044,8 +1044,8 @@ class tt {
|
|
|
1044
1044
|
var s, o, i, r, n;
|
|
1045
1045
|
const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
|
|
1046
1046
|
if (t) {
|
|
1047
|
-
const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, a = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded,
|
|
1048
|
-
a ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) :
|
|
1047
|
+
const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, a = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded, d = l === "collapsed" && e.expanded || l === "expanded" && !e.expanded, h = t(e.data);
|
|
1048
|
+
a ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : d && ((n = this.tableScope.storeStateCollapsedExpandService) == null || n.collapsedStateIdsRemove(h));
|
|
1049
1049
|
}
|
|
1050
1050
|
}
|
|
1051
1051
|
getArrowColumnIndex() {
|
|
@@ -1081,7 +1081,7 @@ class tt {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
|
-
class
|
|
1084
|
+
class pe {
|
|
1085
1085
|
constructor(e, t = [], s = -1) {
|
|
1086
1086
|
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
|
|
1087
1087
|
}
|
|
@@ -1179,7 +1179,7 @@ class ue {
|
|
|
1179
1179
|
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
-
class
|
|
1182
|
+
class ge {
|
|
1183
1183
|
genericSortComparator(e, t, s) {
|
|
1184
1184
|
if (typeof e == "number" && typeof t == "number")
|
|
1185
1185
|
return s * (e - t);
|
|
@@ -1197,7 +1197,7 @@ class Be {
|
|
|
1197
1197
|
return s * ("" + e).localeCompare("" + t);
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
class
|
|
1200
|
+
class _ extends pe {
|
|
1201
1201
|
/**
|
|
1202
1202
|
* Creates an instance of AreaModelObjectArray.
|
|
1203
1203
|
*
|
|
@@ -1228,7 +1228,7 @@ class L extends ue {
|
|
|
1228
1228
|
* );
|
|
1229
1229
|
*/
|
|
1230
1230
|
constructor(e, t, s, o = [], i = "ge-selected-row", r = "ge-focused-row") {
|
|
1231
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.sorterService = new
|
|
1231
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.sorterService = new ge(), this._focusedRowIndex = 0, this.filteredRows = [...t], this.properties = o.map((n) => n.property);
|
|
1232
1232
|
}
|
|
1233
1233
|
/**
|
|
1234
1234
|
* Gets the index of the currently focused row.
|
|
@@ -2251,10 +2251,10 @@ class st {
|
|
|
2251
2251
|
for (const r of i) {
|
|
2252
2252
|
const n = this.tableScope.tableModel.getAreaModel(r), l = (n == null ? void 0 : n.getRowCount()) ?? 0;
|
|
2253
2253
|
for (let a = 0; a < l; a++) {
|
|
2254
|
-
const
|
|
2255
|
-
s.push(
|
|
2254
|
+
const d = [];
|
|
2255
|
+
s.push(d);
|
|
2256
2256
|
for (let h = 0; h < o; h++)
|
|
2257
|
-
|
|
2257
|
+
d.push(n.getValueAt(a, h));
|
|
2258
2258
|
}
|
|
2259
2259
|
}
|
|
2260
2260
|
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
@@ -2392,7 +2392,7 @@ class st {
|
|
|
2392
2392
|
*/
|
|
2393
2393
|
setRows(e) {
|
|
2394
2394
|
const t = this.getBodyModel();
|
|
2395
|
-
t instanceof
|
|
2395
|
+
t instanceof _ ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
|
|
2396
2396
|
}
|
|
2397
2397
|
/**
|
|
2398
2398
|
* Adds new rows to the end of the table body.
|
|
@@ -2410,7 +2410,7 @@ class st {
|
|
|
2410
2410
|
*/
|
|
2411
2411
|
addRows(e) {
|
|
2412
2412
|
const t = this.getBodyModel();
|
|
2413
|
-
if (t instanceof
|
|
2413
|
+
if (t instanceof _) {
|
|
2414
2414
|
const s = t;
|
|
2415
2415
|
let o = s.getAllRows();
|
|
2416
2416
|
s.setRows([...o, ...e]);
|
|
@@ -2435,7 +2435,7 @@ class st {
|
|
|
2435
2435
|
*/
|
|
2436
2436
|
addRowsAt(e, t) {
|
|
2437
2437
|
const s = this.getBodyModel();
|
|
2438
|
-
if (s instanceof
|
|
2438
|
+
if (s instanceof _) {
|
|
2439
2439
|
const o = s;
|
|
2440
2440
|
let i = o.getAllRows();
|
|
2441
2441
|
o.setRows([...i.slice(0, t), ...e, ...i.slice(t)]);
|
|
@@ -2461,7 +2461,7 @@ class st {
|
|
|
2461
2461
|
*/
|
|
2462
2462
|
removeRows(e, t = (s, o) => s === o) {
|
|
2463
2463
|
const s = this.getBodyModel();
|
|
2464
|
-
if (s instanceof
|
|
2464
|
+
if (s instanceof _) {
|
|
2465
2465
|
const o = s, i = o.getAllRows().filter((r) => !e.some((n) => t(r, n)));
|
|
2466
2466
|
o.setRows(i);
|
|
2467
2467
|
} else
|
|
@@ -2502,7 +2502,7 @@ class st {
|
|
|
2502
2502
|
*/
|
|
2503
2503
|
findRows(e, t = (s, o) => s === o) {
|
|
2504
2504
|
const s = this.getBodyModel();
|
|
2505
|
-
return s instanceof
|
|
2505
|
+
return s instanceof _ ? s.getAllRows().filter((i) => e.some((r) => t(i, r))) : (console.warn("findRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s), []);
|
|
2506
2506
|
}
|
|
2507
2507
|
/**
|
|
2508
2508
|
* Searches through the filtered rows of the table to find a row that matches specific criteria.
|
|
@@ -2559,7 +2559,7 @@ class st {
|
|
|
2559
2559
|
*/
|
|
2560
2560
|
findRowFromFilteredRowsByAllCriteria(e, t) {
|
|
2561
2561
|
const s = this.getBodyModel();
|
|
2562
|
-
if (s instanceof
|
|
2562
|
+
if (s instanceof _)
|
|
2563
2563
|
return s.getFilteredRows().find((i) => t(e, i));
|
|
2564
2564
|
console.warn("findRowFromFilteredRowsByAllCriteria(...) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
2565
2565
|
}
|
|
@@ -2606,7 +2606,7 @@ class st {
|
|
|
2606
2606
|
*/
|
|
2607
2607
|
findRowFromAllRowsByAllCriteria(e, t) {
|
|
2608
2608
|
const s = this.getBodyModel();
|
|
2609
|
-
if (s instanceof
|
|
2609
|
+
if (s instanceof _)
|
|
2610
2610
|
return s.getAllRows().find((i) => t(e, i));
|
|
2611
2611
|
console.warn("findRowFromAllRowsByAllCriteria(...) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
2612
2612
|
}
|
|
@@ -2631,7 +2631,7 @@ class st {
|
|
|
2631
2631
|
*/
|
|
2632
2632
|
updateRows(e, t = (s, o) => s === o) {
|
|
2633
2633
|
const s = this.getBodyModel();
|
|
2634
|
-
if (s instanceof
|
|
2634
|
+
if (s instanceof _) {
|
|
2635
2635
|
let i = s.getAllRows();
|
|
2636
2636
|
for (const r of i)
|
|
2637
2637
|
for (const n of e)
|
|
@@ -2979,7 +2979,7 @@ class st {
|
|
|
2979
2979
|
return this.tableScope.loggingActive;
|
|
2980
2980
|
}
|
|
2981
2981
|
}
|
|
2982
|
-
class
|
|
2982
|
+
class fe {
|
|
2983
2983
|
constructor(e) {
|
|
2984
2984
|
this.getStorageKeyFn = e;
|
|
2985
2985
|
}
|
|
@@ -3046,7 +3046,7 @@ class pe {
|
|
|
3046
3046
|
// }
|
|
3047
3047
|
// }
|
|
3048
3048
|
}
|
|
3049
|
-
class ot extends
|
|
3049
|
+
class ot extends fe {
|
|
3050
3050
|
constructor(e) {
|
|
3051
3051
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
3052
3052
|
}
|
|
@@ -3073,7 +3073,7 @@ class it {
|
|
|
3073
3073
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
3074
3074
|
}
|
|
3075
3075
|
}
|
|
3076
|
-
class rt extends
|
|
3076
|
+
class rt extends fe {
|
|
3077
3077
|
constructor(e) {
|
|
3078
3078
|
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new it(), this.load();
|
|
3079
3079
|
}
|
|
@@ -3107,7 +3107,7 @@ class rt extends pe {
|
|
|
3107
3107
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
3108
3108
|
}
|
|
3109
3109
|
}
|
|
3110
|
-
class nt extends
|
|
3110
|
+
class nt extends fe {
|
|
3111
3111
|
constructor(e) {
|
|
3112
3112
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
3113
3113
|
}
|
|
@@ -3128,14 +3128,14 @@ class nt extends pe {
|
|
|
3128
3128
|
}
|
|
3129
3129
|
}
|
|
3130
3130
|
}
|
|
3131
|
-
class
|
|
3131
|
+
class L {
|
|
3132
3132
|
constructor(e = 0, t = 0, s = 0, o = 0, i) {
|
|
3133
3133
|
this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
|
|
3134
3134
|
}
|
|
3135
3135
|
}
|
|
3136
3136
|
class lt {
|
|
3137
3137
|
constructor(e, t, s, o) {
|
|
3138
|
-
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new
|
|
3138
|
+
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();
|
|
3139
3139
|
const i = this.hostElement;
|
|
3140
3140
|
i.innerText = "", this.dom.setAttribute(i, "tabindex", "0"), this.dom.setStyle(
|
|
3141
3141
|
this.dom.addClass("ge-table", i),
|
|
@@ -3372,19 +3372,19 @@ class at {
|
|
|
3372
3372
|
return !1;
|
|
3373
3373
|
}
|
|
3374
3374
|
}
|
|
3375
|
-
class
|
|
3375
|
+
class T {
|
|
3376
3376
|
constructor(e, t, s) {
|
|
3377
3377
|
this.header = e, this.body = t, this.footer = s;
|
|
3378
3378
|
}
|
|
3379
3379
|
}
|
|
3380
|
-
class
|
|
3380
|
+
class dt extends lt {
|
|
3381
3381
|
constructor(e, t, s, o) {
|
|
3382
3382
|
var r, n;
|
|
3383
3383
|
super(e, t, s, o), this.firstVisibleRowIndex = -1, this.lastVisibleRowIndex = -1, this.firstFullVisibleRowIndex = -1, this.lastFullVisibleRowIndex = -1, this.displayedRowCount = 0, this.pixelLimitForFullVisible = 5, this.loggingActive = !1, this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
|
|
3384
3384
|
header: [],
|
|
3385
3385
|
body: [],
|
|
3386
3386
|
footer: []
|
|
3387
|
-
}, this.tree = !1, this.colAndRowspanModels = new
|
|
3387
|
+
}, this.tree = !1, this.colAndRowspanModels = new T(), 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), re(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
3388
3388
|
(l) => {
|
|
3389
3389
|
var a;
|
|
3390
3390
|
this.colAndRowspanModels[l] = new at(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
|
|
@@ -3473,19 +3473,19 @@ class ct extends lt {
|
|
|
3473
3473
|
for (const t of this.removables)
|
|
3474
3474
|
t.remove();
|
|
3475
3475
|
this.hideHoverRow(), this.hideHoverColumn(), this.scrollTop = this.scrollViewport.scrollTop, this.scrollLeft = this.scrollViewport.scrollLeft, this.debounce(this.checkForScrollPosSaving.bind(this)), this.scrollFactorY = this.scrollTop / (this.scrollViewport.scrollHeight - this.scrollViewport.clientHeight), this.scrollFactorX = this.scrollLeft / (this.scrollViewport.scrollWidth - this.scrollViewport.clientWidth), isNaN(this.scrollFactorY) && (this.scrollFactorY = 0), isNaN(this.scrollFactorX) && (this.scrollFactorX = 0), this.adjustBody(), this.adjustArea("footer"), this.adjustArea("header"), this.tableOptions.tableTopBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
3476
|
-
new
|
|
3476
|
+
new L(0, this.hostElement.clientWidth, 1, 0),
|
|
3477
3477
|
this.hostElement,
|
|
3478
3478
|
"ge-table-border"
|
|
3479
3479
|
)), this.tableOptions.tableBottomBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
3480
|
-
new
|
|
3480
|
+
new L(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
|
|
3481
3481
|
this.hostElement,
|
|
3482
3482
|
"ge-table-border"
|
|
3483
3483
|
)), this.tableModel.getFixedLeftColumnCount() > 0 && this.removables.push(this.dom.addVerticalBorder(
|
|
3484
|
-
new
|
|
3484
|
+
new L(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
|
|
3485
3485
|
this.hostElement,
|
|
3486
3486
|
"ge-table-body-west-vertical-border"
|
|
3487
3487
|
)), ((e = this.tableModel.getAreaModel("header")) == null ? void 0 : e.getRowCount()) > 0 && this.removables.push(this.dom.addHorizontalBorder(
|
|
3488
|
-
new
|
|
3488
|
+
new L(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
|
|
3489
3489
|
this.hostElement,
|
|
3490
3490
|
"ge-table-body-west-vertical-border"
|
|
3491
3491
|
));
|
|
@@ -3527,9 +3527,9 @@ class ct extends lt {
|
|
|
3527
3527
|
const r = this.tableModel.getAreaModel(e), n = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', l = document.querySelector(n);
|
|
3528
3528
|
if (l) {
|
|
3529
3529
|
let a;
|
|
3530
|
-
const
|
|
3530
|
+
const d = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
3531
3531
|
let h;
|
|
3532
|
-
if (
|
|
3532
|
+
if (d ? h = this.editorRenderer : h = r.getCellRenderer(t, s), l.innerText = "", this.applyCssClasses(l, i), h)
|
|
3533
3533
|
a = h.render(l, t, s, e, r, o, this.dom.domService), a && this.cleanupFunctions[e].push(a);
|
|
3534
3534
|
else {
|
|
3535
3535
|
const p = `${o}`;
|
|
@@ -3537,10 +3537,10 @@ class ct extends lt {
|
|
|
3537
3537
|
}
|
|
3538
3538
|
const u = r.getCustomClassesAt(t, s);
|
|
3539
3539
|
u.length && this.dom.addClasses(u, l);
|
|
3540
|
-
const
|
|
3541
|
-
if (
|
|
3542
|
-
for (const p in
|
|
3543
|
-
this.dom.setStyle(l, p,
|
|
3540
|
+
const f = r.getCustomStyleAt(t, s);
|
|
3541
|
+
if (f)
|
|
3542
|
+
for (const p in f)
|
|
3543
|
+
this.dom.setStyle(l, p, f[p]);
|
|
3544
3544
|
}
|
|
3545
3545
|
}
|
|
3546
3546
|
getFirstVisibleRowIndex() {
|
|
@@ -3653,68 +3653,68 @@ class ct extends lt {
|
|
|
3653
3653
|
* @protected
|
|
3654
3654
|
*/
|
|
3655
3655
|
adjustArea(e, t = 0) {
|
|
3656
|
-
var
|
|
3656
|
+
var g;
|
|
3657
3657
|
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
3658
3658
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
3659
|
-
const n = 0, l = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(),
|
|
3659
|
+
const n = 0, l = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), d = this.tableModel.getAreaModel(e), h = d.getRowCount();
|
|
3660
3660
|
for (; this.cleanupFunctions[e].length; ) {
|
|
3661
3661
|
const b = this.cleanupFunctions[e].shift();
|
|
3662
3662
|
b && b();
|
|
3663
3663
|
}
|
|
3664
3664
|
let u = t;
|
|
3665
|
-
const
|
|
3665
|
+
const f = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), m = this.tableModel.getFixedLeftColumnCount();
|
|
3666
3666
|
e === "body" && (this.firstVisibleRowIndex = -1, this.firstFullVisibleRowIndex = -1, this.lastVisibleRowIndex = -1, this.lastFullVisibleRowIndex = -1);
|
|
3667
3667
|
for (let b = 0; b < h; b++) {
|
|
3668
3668
|
const w = u, S = b === h - 1, R = this.tableModel.getRowHeight(e, b);
|
|
3669
3669
|
if (w + R > 0) {
|
|
3670
3670
|
e === "body" && this.firstVisibleRowIndex === -1 && (this.firstVisibleRowIndex = b, this.firstFullVisibleRowIndex = w < -this.pixelLimitForFullVisible ? this.firstVisibleRowIndex + 1 : this.firstVisibleRowIndex);
|
|
3671
3671
|
let C = { left: n, width: l, height: R, top: w, index: b }, x = this.dom.addRowDiv(o, C, b, e, "center");
|
|
3672
|
-
const
|
|
3672
|
+
const D = m;
|
|
3673
3673
|
if (this.adjustColumnsToRowParent({
|
|
3674
3674
|
areaIdent: e,
|
|
3675
3675
|
sideIdent: "center",
|
|
3676
|
-
areaModel:
|
|
3676
|
+
areaModel: d,
|
|
3677
3677
|
geo: C,
|
|
3678
3678
|
parent: x,
|
|
3679
3679
|
rowIndex: b,
|
|
3680
|
-
columnIndexStart:
|
|
3681
|
-
columnIndexEnd:
|
|
3680
|
+
columnIndexStart: D,
|
|
3681
|
+
columnIndexEnd: f - p - 1,
|
|
3682
3682
|
verticalFixed: !1,
|
|
3683
3683
|
lastRowOfModel: S
|
|
3684
3684
|
}), a.left > 0 && (C = { left: n, width: this.areaBodyWestGeo.width, height: R, top: w, index: b }, x = this.dom.addRowDiv(s, C, b, e, "west"), this.adjustColumnsToRowParent({
|
|
3685
3685
|
areaIdent: e,
|
|
3686
3686
|
sideIdent: "west",
|
|
3687
|
-
areaModel:
|
|
3687
|
+
areaModel: d,
|
|
3688
3688
|
geo: C,
|
|
3689
3689
|
parent: x,
|
|
3690
3690
|
rowIndex: b,
|
|
3691
3691
|
columnIndexStart: 0,
|
|
3692
|
-
columnIndexEnd:
|
|
3692
|
+
columnIndexEnd: D - 1,
|
|
3693
3693
|
verticalFixed: !0,
|
|
3694
3694
|
lastRowOfModel: S
|
|
3695
3695
|
})), a.right > 0 && (C = { left: n, width: this.areaBodyEastGeo.width, height: R, top: w, index: b }, x = this.dom.addRowDiv(i, C, b, e, "east"), this.adjustColumnsToRowParent({
|
|
3696
3696
|
areaIdent: e,
|
|
3697
3697
|
sideIdent: "east",
|
|
3698
|
-
areaModel:
|
|
3698
|
+
areaModel: d,
|
|
3699
3699
|
geo: C,
|
|
3700
3700
|
parent: x,
|
|
3701
3701
|
rowIndex: b,
|
|
3702
|
-
columnIndexStart:
|
|
3703
|
-
columnIndexEnd:
|
|
3702
|
+
columnIndexStart: f - p,
|
|
3703
|
+
columnIndexEnd: f - 1,
|
|
3704
3704
|
verticalFixed: !0,
|
|
3705
3705
|
lastRowOfModel: S
|
|
3706
3706
|
})), e === "header" && this.tree && b === h - 1) {
|
|
3707
|
-
const
|
|
3707
|
+
const M = this.dom.applyStyle(
|
|
3708
3708
|
this.dom.setAttribute(
|
|
3709
|
-
this.dom.addDiv(x, new
|
|
3709
|
+
this.dom.addDiv(x, new L(16, 20, 20, 8)),
|
|
3710
3710
|
"data-ge-action",
|
|
3711
3711
|
"toggleExpandCollapseAll"
|
|
3712
3712
|
),
|
|
3713
3713
|
{ cursor: "pointer" }
|
|
3714
|
-
),
|
|
3715
|
-
if (
|
|
3716
|
-
const Y = this.dom.domService.createText(
|
|
3717
|
-
this.dom.domService.appendChild(
|
|
3714
|
+
), I = this.tableOptions.treeOptions.arrowExpandCollapseAll;
|
|
3715
|
+
if (I) {
|
|
3716
|
+
const Y = this.dom.domService.createText(I.content);
|
|
3717
|
+
this.dom.domService.appendChild(M, Y), I.style && this.dom.applyStyleString(M, I.style);
|
|
3718
3718
|
}
|
|
3719
3719
|
}
|
|
3720
3720
|
}
|
|
@@ -3727,19 +3727,19 @@ class ct extends lt {
|
|
|
3727
3727
|
render scope: this.firstFullVisibleRowIndex <- ` + this.firstFullVisibleRowIndex + `
|
|
3728
3728
|
render scope: this.lastVisibleRowIndex <- ` + this.lastVisibleRowIndex + `
|
|
3729
3729
|
render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex), this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
3730
|
-
const b = ((
|
|
3730
|
+
const b = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
|
|
3731
3731
|
if (b.length)
|
|
3732
3732
|
for (const w of b) {
|
|
3733
3733
|
let S = 0, R = o.child, C = "center";
|
|
3734
3734
|
if (w.c1 < m)
|
|
3735
3735
|
R = s.child, C = "west";
|
|
3736
|
-
else if (p > 0 && w.c1 >=
|
|
3736
|
+
else if (p > 0 && w.c1 >= f - p)
|
|
3737
3737
|
R = i.child, C = "east";
|
|
3738
3738
|
else {
|
|
3739
3739
|
const x = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
3740
3740
|
S = this.scrollFactorX * x - this.areaBodyWestGeo.width, C = "center";
|
|
3741
3741
|
}
|
|
3742
|
-
this.drawBigCell(w, S, t,
|
|
3742
|
+
this.drawBigCell(w, S, t, d, R, C);
|
|
3743
3743
|
}
|
|
3744
3744
|
}
|
|
3745
3745
|
}
|
|
@@ -3754,10 +3754,10 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3754
3754
|
* @protected
|
|
3755
3755
|
*/
|
|
3756
3756
|
drawBigCell(e, t, s, o, i, r) {
|
|
3757
|
-
const n = s + this.getRowHeights(0, e.r1 - 1, o).reduce((
|
|
3758
|
-
let
|
|
3759
|
-
a > 0 && e.c1 >= l - a && (
|
|
3760
|
-
const h = t + this.getColumnWidths(
|
|
3757
|
+
const n = s + this.getRowHeights(0, e.r1 - 1, o).reduce((g, b) => g + b, 0), l = this.tableModel.getColumnCount(), a = this.tableModel.getFixedRightColumnCount();
|
|
3758
|
+
let d = 0;
|
|
3759
|
+
a > 0 && e.c1 >= l - a && (d = l - a);
|
|
3760
|
+
const h = t + this.getColumnWidths(d, 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);
|
|
3761
3761
|
let p = !1;
|
|
3762
3762
|
const m = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
3763
3763
|
m && (p = m.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
@@ -3768,7 +3768,7 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3768
3768
|
columnIndex: e.c1,
|
|
3769
3769
|
left: h,
|
|
3770
3770
|
top: n,
|
|
3771
|
-
width:
|
|
3771
|
+
width: f,
|
|
3772
3772
|
height: u,
|
|
3773
3773
|
parent: i,
|
|
3774
3774
|
cellSelected: p,
|
|
@@ -3782,7 +3782,7 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3782
3782
|
columnIndex: e.c1,
|
|
3783
3783
|
left: h,
|
|
3784
3784
|
top: n,
|
|
3785
|
-
width:
|
|
3785
|
+
width: f,
|
|
3786
3786
|
height: u,
|
|
3787
3787
|
parent: i,
|
|
3788
3788
|
cellSelected: p,
|
|
@@ -3793,7 +3793,7 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3793
3793
|
columnIndex: e.c1,
|
|
3794
3794
|
cellLeft: h,
|
|
3795
3795
|
cellTop: n,
|
|
3796
|
-
cellWidth:
|
|
3796
|
+
cellWidth: f,
|
|
3797
3797
|
cellHeight: u,
|
|
3798
3798
|
parent: i
|
|
3799
3799
|
});
|
|
@@ -3835,49 +3835,49 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3835
3835
|
columnIndexStart: n,
|
|
3836
3836
|
columnIndexEnd: l,
|
|
3837
3837
|
verticalFixed: a = !1,
|
|
3838
|
-
lastRowOfModel:
|
|
3838
|
+
lastRowOfModel: d = !1
|
|
3839
3839
|
}) {
|
|
3840
3840
|
var m;
|
|
3841
3841
|
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
3842
3842
|
let h = 0;
|
|
3843
3843
|
if (!a) {
|
|
3844
|
-
const
|
|
3845
|
-
h = this.scrollFactorX *
|
|
3844
|
+
const g = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
3845
|
+
h = this.scrollFactorX * g;
|
|
3846
3846
|
}
|
|
3847
|
-
const u = 0,
|
|
3847
|
+
const u = 0, f = !!(e === "body" && t);
|
|
3848
3848
|
let p = h;
|
|
3849
|
-
for (let
|
|
3850
|
-
const b = p, w = this.tableModel.getColumnWidth(
|
|
3849
|
+
for (let g = n; g <= l; g++) {
|
|
3850
|
+
const b = p, w = this.tableModel.getColumnWidth(g);
|
|
3851
3851
|
if (w > 0 && b + w > 0) {
|
|
3852
3852
|
let S = o.height;
|
|
3853
|
-
const R = s.getRowspanAt(r,
|
|
3854
|
-
R > 1 && (S = this.getRowHeights(r, r + R - 1, s).reduce((
|
|
3853
|
+
const R = s.getRowspanAt(r, g), C = s.getColspanAt(r, g);
|
|
3854
|
+
R > 1 && (S = this.getRowHeights(r, r + R - 1, s).reduce((M, I) => M + I, 0));
|
|
3855
3855
|
let x = w;
|
|
3856
|
-
C > 1 && (x = this.getColumnWidths(
|
|
3857
|
-
let
|
|
3858
|
-
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r,
|
|
3856
|
+
C > 1 && (x = this.getColumnWidths(g, g + C - 1).reduce((M, I) => M + I, 0));
|
|
3857
|
+
let D = !1;
|
|
3858
|
+
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r, g) && (D = !0), this.draggingTargetColumnIndex === g && e !== "header") {
|
|
3859
3859
|
this.renderDragTargetDiv(i, b, u, x, S);
|
|
3860
|
-
const
|
|
3861
|
-
this.dom.addColumnBorderDivs(this.tableOptions, i,
|
|
3860
|
+
const M = { left: b, top: u, width: x, height: S };
|
|
3861
|
+
this.dom.addColumnBorderDivs(this.tableOptions, i, M, e, t);
|
|
3862
3862
|
} else {
|
|
3863
|
-
const
|
|
3864
|
-
"gammaCells" in s && s.getValueAt(r,
|
|
3863
|
+
const M = this.renderSelectedBackgroundDiv(D, f, t, s, r, g, i, b, u, x, S);
|
|
3864
|
+
"gammaCells" in s && s.getValueAt(r, g) && (D = !1), D || this.renderCell({
|
|
3865
3865
|
areaModel: s,
|
|
3866
3866
|
areaIdent: e,
|
|
3867
3867
|
sideIdent: t,
|
|
3868
3868
|
rowIndex: r,
|
|
3869
|
-
columnIndex:
|
|
3869
|
+
columnIndex: g,
|
|
3870
3870
|
left: b,
|
|
3871
3871
|
top: u,
|
|
3872
3872
|
width: x,
|
|
3873
3873
|
height: S,
|
|
3874
3874
|
parent: i,
|
|
3875
|
-
cellSelected:
|
|
3876
|
-
lastRowOfModel:
|
|
3875
|
+
cellSelected: M,
|
|
3876
|
+
lastRowOfModel: d,
|
|
3877
3877
|
gammaRange: !0
|
|
3878
3878
|
}), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
3879
3879
|
rowIndex: r,
|
|
3880
|
-
columnIndex:
|
|
3880
|
+
columnIndex: g,
|
|
3881
3881
|
cellLeft: b,
|
|
3882
3882
|
cellTop: u,
|
|
3883
3883
|
cellWidth: x,
|
|
@@ -3889,7 +3889,7 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3889
3889
|
if (p = p + w, p > this.areaBodyCenterGeo.width)
|
|
3890
3890
|
break;
|
|
3891
3891
|
}
|
|
3892
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new
|
|
3892
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new L(p - 1, 1, o.height, 0), i);
|
|
3893
3893
|
}
|
|
3894
3894
|
/**
|
|
3895
3895
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -3913,52 +3913,52 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3913
3913
|
width: n,
|
|
3914
3914
|
height: l,
|
|
3915
3915
|
top: a,
|
|
3916
|
-
parent:
|
|
3916
|
+
parent: d,
|
|
3917
3917
|
lastRowOfModel: h
|
|
3918
3918
|
}) {
|
|
3919
|
-
var
|
|
3920
|
-
const
|
|
3921
|
-
let
|
|
3919
|
+
var we;
|
|
3920
|
+
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);
|
|
3921
|
+
let g = "none";
|
|
3922
3922
|
if (i === this.getTreeArrowColumnIndex() && G(m)) {
|
|
3923
3923
|
const v = m;
|
|
3924
|
-
(
|
|
3924
|
+
(we = v.children) != null && we.length ? v.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
|
|
3925
3925
|
}
|
|
3926
3926
|
let w;
|
|
3927
3927
|
if (t === "header") {
|
|
3928
3928
|
const v = this.tableModel.getColumnDef(i);
|
|
3929
3929
|
(!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (w = v == null ? void 0 : v.sortState);
|
|
3930
3930
|
}
|
|
3931
|
-
const S = e.getValueAt(o, i), R =
|
|
3931
|
+
const S = e.getValueAt(o, i), R = f ? "" : `${S}`, C = e.isRowChecked(o), x = this.dom.addColumnDiv(
|
|
3932
3932
|
{
|
|
3933
|
-
parent:
|
|
3933
|
+
parent: d,
|
|
3934
3934
|
geo: p,
|
|
3935
3935
|
rowIndex: o,
|
|
3936
3936
|
columnIndex: i,
|
|
3937
3937
|
areaIdent: t,
|
|
3938
3938
|
sideIdent: s,
|
|
3939
3939
|
text: R,
|
|
3940
|
-
treeArrow:
|
|
3940
|
+
treeArrow: g,
|
|
3941
3941
|
tableOptions: this.tableOptions,
|
|
3942
3942
|
checkedType: C,
|
|
3943
3943
|
sortState: w
|
|
3944
3944
|
}
|
|
3945
|
-
),
|
|
3946
|
-
|
|
3947
|
-
const
|
|
3948
|
-
|
|
3949
|
-
let
|
|
3950
|
-
|
|
3945
|
+
), D = e.getTooltipAt(o, i);
|
|
3946
|
+
D && this.dom.setAttribute(x, "title", D);
|
|
3947
|
+
const M = this.tableModel.getColumnDef(i);
|
|
3948
|
+
M && M.classes[t] && this.dom.addClasses(M.classes[t], x);
|
|
3949
|
+
let I;
|
|
3950
|
+
f && (I = f.render(x, o, i, t, e, S, this.dom.domService));
|
|
3951
3951
|
const Y = e.getCustomClassesAt(o, i);
|
|
3952
|
-
if (Y.length && this.dom.addClasses(Y, x), this.dom.addColumnBorderDivs(this.tableOptions,
|
|
3952
|
+
if (Y.length && this.dom.addClasses(Y, x), this.dom.addColumnBorderDivs(this.tableOptions, d, p, t, s), h && this.dom.addHorizontalBorder({ left: r, width: n, height: l, top: a + l }, d), this.getFocusModel && t === "body") {
|
|
3953
3953
|
const v = this.getFocusModel();
|
|
3954
|
-
v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(
|
|
3954
|
+
v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(d, p, {});
|
|
3955
3955
|
}
|
|
3956
3956
|
t === "header" && this.dom.setAttribute(x, "data-ge-action", "drag-column");
|
|
3957
3957
|
const te = e.getCustomStyleAt(o, i);
|
|
3958
3958
|
if (te)
|
|
3959
3959
|
for (const v in te)
|
|
3960
3960
|
this.dom.setStyle(x, v, te[v]);
|
|
3961
|
-
return [x,
|
|
3961
|
+
return [x, I];
|
|
3962
3962
|
}
|
|
3963
3963
|
/**
|
|
3964
3964
|
* Applies CSS classes to an HTML element.
|
|
@@ -4090,12 +4090,12 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4090
4090
|
if (this.dragging) {
|
|
4091
4091
|
const r = this.hostElement.clientHeight, n = this.storedColumnWidths[t];
|
|
4092
4092
|
if ((o = e.originalEvent) != null && o.clientX) {
|
|
4093
|
-
const
|
|
4093
|
+
const d = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - n / 2, width: n, height: r, top: 0, index: t };
|
|
4094
4094
|
this.dom.applyStyle(this.draggingColumn, {
|
|
4095
4095
|
background: "rgba(128,128,128,0.2)",
|
|
4096
4096
|
display: "block",
|
|
4097
4097
|
overfllow: "clip"
|
|
4098
|
-
}), this.dom.applyStyleInPx(this.draggingColumn,
|
|
4098
|
+
}), this.dom.applyStyleInPx(this.draggingColumn, d), s && this.renderContentOfDraggingColumn(d);
|
|
4099
4099
|
}
|
|
4100
4100
|
} else
|
|
4101
4101
|
this.hideDraggingColumn();
|
|
@@ -4124,7 +4124,7 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4124
4124
|
if (r) {
|
|
4125
4125
|
const n = e.index ?? 0, l = this.draggingColumn;
|
|
4126
4126
|
for (let a = 0; a < r; a++) {
|
|
4127
|
-
const
|
|
4127
|
+
const d = s, h = i.getRowHeight(a), u = { left: 0, width: e.width, height: h, top: d, index: a }, f = i.getValueAt(a, n), p = i.getCellRenderer(a, n), m = p ? "" : `${f}`, g = {
|
|
4128
4128
|
parent: l,
|
|
4129
4129
|
geo: u,
|
|
4130
4130
|
rowIndex: a,
|
|
@@ -4132,9 +4132,9 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4132
4132
|
areaIdent: t,
|
|
4133
4133
|
sideIdent: o,
|
|
4134
4134
|
text: m
|
|
4135
|
-
}, b = this.dom.addColumnDiv(
|
|
4135
|
+
}, b = this.dom.addColumnDiv(g);
|
|
4136
4136
|
let w;
|
|
4137
|
-
p && (w = p.render(b, a, n, t, i,
|
|
4137
|
+
p && (w = p.render(b, a, n, t, i, f, this.dom.domService), w && this.cleanupFunctions[t].push(w));
|
|
4138
4138
|
const S = i.getCustomClassesAt(a, n);
|
|
4139
4139
|
S.length && this.dom.addClasses(S, b);
|
|
4140
4140
|
const R = this.tableModel.getColumnDef(n);
|
|
@@ -4192,19 +4192,19 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4192
4192
|
* @param {number} height - The height of the div.
|
|
4193
4193
|
* @returns {boolean} - Whether the cell is selected.
|
|
4194
4194
|
*/
|
|
4195
|
-
renderSelectedBackgroundDiv(e, t, s, o, i, r, n, l, a,
|
|
4195
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, n, l, a, d, h) {
|
|
4196
4196
|
let u = !1;
|
|
4197
4197
|
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
4198
|
-
const
|
|
4199
|
-
if (
|
|
4200
|
-
const p =
|
|
4198
|
+
const f = this.getSelectionModel();
|
|
4199
|
+
if (f) {
|
|
4200
|
+
const p = f.getSelectionCount(i, r);
|
|
4201
4201
|
u = p > 0;
|
|
4202
4202
|
for (let m = 0; m < p; m++) {
|
|
4203
|
-
const
|
|
4203
|
+
const g = this.dom.applyStylePosistionAbsolute(
|
|
4204
4204
|
// ge-table-body-west-selected-range
|
|
4205
4205
|
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, n)
|
|
4206
4206
|
);
|
|
4207
|
-
this.dom.setStyle(
|
|
4207
|
+
this.dom.setStyle(g, "left", `${l}px`), this.dom.setStyle(g, "top", `${a}px`), this.dom.setStyle(g, "width", `${d}px`), this.dom.setStyle(g, "height", `${h}px`);
|
|
4208
4208
|
}
|
|
4209
4209
|
}
|
|
4210
4210
|
}
|
|
@@ -4239,11 +4239,11 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4239
4239
|
top: n,
|
|
4240
4240
|
width: l,
|
|
4241
4241
|
height: a,
|
|
4242
|
-
parent:
|
|
4242
|
+
parent: d,
|
|
4243
4243
|
cellSelected: h,
|
|
4244
4244
|
lastRowOfModel: u
|
|
4245
4245
|
}) {
|
|
4246
|
-
const [
|
|
4246
|
+
const [f, p] = this.addAndRenderCellDiv({
|
|
4247
4247
|
areaModel: e,
|
|
4248
4248
|
areaIdent: t,
|
|
4249
4249
|
sideIdent: s,
|
|
@@ -4253,10 +4253,10 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4253
4253
|
width: l,
|
|
4254
4254
|
height: a,
|
|
4255
4255
|
top: n,
|
|
4256
|
-
parent:
|
|
4256
|
+
parent: d,
|
|
4257
4257
|
lastRowOfModel: u
|
|
4258
4258
|
});
|
|
4259
|
-
h && this.dom.addClass(`ge-table-${t}-${s}-selected-range`,
|
|
4259
|
+
h && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, f), p && this.cleanupFunctions[t].push(p);
|
|
4260
4260
|
}
|
|
4261
4261
|
/**
|
|
4262
4262
|
* Render the header cell resize handle.
|
|
@@ -4273,11 +4273,11 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4273
4273
|
* @return {void}
|
|
4274
4274
|
*/
|
|
4275
4275
|
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: n }) {
|
|
4276
|
-
const l = this.dom.domService, a = this.tableOptions.columnResizeHandleWidthInPx ?? 2,
|
|
4277
|
-
l.setAttribute(
|
|
4276
|
+
const l = this.dom.domService, a = this.tableOptions.columnResizeHandleWidthInPx ?? 2, d = l.createElement("div");
|
|
4277
|
+
l.setAttribute(d, "data-col-index", `${t}`), l.setAttribute(d, "data-row-index", `${e}`), l.setAttribute(d, "data-area", "header"), l.setAttribute(d, "data-ge-action", "resize-column"), l.addClass(d, "ge-table-column-resize-handle"), l.setStyle(d, "display", "clip"), l.setStyle(d, "position", "absolute"), l.setStyle(d, "cursor", "col-resize"), l.setStyle(d, "left", `${s + i - a}px`), l.setStyle(d, "top", `${o}px`), l.setStyle(d, "width", `${a}px`), l.setStyle(d, "height", `${r}px`), l.appendChild(n, d);
|
|
4278
4278
|
}
|
|
4279
4279
|
}
|
|
4280
|
-
class
|
|
4280
|
+
class ct {
|
|
4281
4281
|
constructor(e, t) {
|
|
4282
4282
|
this.columnIndex = e, this.sortState = t;
|
|
4283
4283
|
}
|
|
@@ -4309,12 +4309,12 @@ class ut {
|
|
|
4309
4309
|
this.rowIndex = e, this.columnIndex = t;
|
|
4310
4310
|
}
|
|
4311
4311
|
}
|
|
4312
|
-
class
|
|
4312
|
+
class me {
|
|
4313
4313
|
constructor(e) {
|
|
4314
4314
|
this.cells = e;
|
|
4315
4315
|
}
|
|
4316
4316
|
static createSingle(e, t) {
|
|
4317
|
-
return new
|
|
4317
|
+
return new me([new ut(e, t)]);
|
|
4318
4318
|
}
|
|
4319
4319
|
}
|
|
4320
4320
|
class pt {
|
|
@@ -4323,11 +4323,11 @@ class pt {
|
|
|
4323
4323
|
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);
|
|
4324
4324
|
}
|
|
4325
4325
|
onMouseClicked(e, t) {
|
|
4326
|
-
var i, r, n, l, a,
|
|
4326
|
+
var i, r, n, l, a, d, h;
|
|
4327
4327
|
let s = !1, o = !1;
|
|
4328
4328
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
4329
|
-
const u = this.getSelectionModel(),
|
|
4330
|
-
u &&
|
|
4329
|
+
const u = this.getSelectionModel(), f = this.getFocusModel();
|
|
4330
|
+
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(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (d = e.originalEvent) != null && d.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (u.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (u.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(u));
|
|
4331
4331
|
}
|
|
4332
4332
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
4333
4333
|
}
|
|
@@ -4358,7 +4358,7 @@ class pt {
|
|
|
4358
4358
|
});
|
|
4359
4359
|
}
|
|
4360
4360
|
}
|
|
4361
|
-
class
|
|
4361
|
+
class gt {
|
|
4362
4362
|
get() {
|
|
4363
4363
|
return {
|
|
4364
4364
|
f2: "START_EDITING",
|
|
@@ -4378,7 +4378,7 @@ class ft {
|
|
|
4378
4378
|
};
|
|
4379
4379
|
}
|
|
4380
4380
|
}
|
|
4381
|
-
class
|
|
4381
|
+
class ft {
|
|
4382
4382
|
get() {
|
|
4383
4383
|
return {
|
|
4384
4384
|
f2: "START_EDITING",
|
|
@@ -4400,21 +4400,21 @@ class gt {
|
|
|
4400
4400
|
};
|
|
4401
4401
|
}
|
|
4402
4402
|
}
|
|
4403
|
-
function mt(
|
|
4404
|
-
return
|
|
4403
|
+
function mt(c) {
|
|
4404
|
+
return c.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).filter((e, t, s) => s.indexOf(e) === t).sort((e, t) => {
|
|
4405
4405
|
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
|
|
4406
4406
|
return o !== i ? o - i : e.localeCompare(t);
|
|
4407
4407
|
}).join(" ");
|
|
4408
4408
|
}
|
|
4409
|
-
function
|
|
4410
|
-
let e =
|
|
4411
|
-
if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" &&
|
|
4412
|
-
const s =
|
|
4409
|
+
function Ce(c) {
|
|
4410
|
+
let e = c.key.toLowerCase();
|
|
4411
|
+
if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" && c.code === "Delete" && (e = "delete"), e === "backspace" && (e = "backspace"), e === "escape" && (e = "esc"), e === "return" && (e = "enter"), c.code.startsWith("Numpad")) {
|
|
4412
|
+
const s = c.code.replace("Numpad", "").toLowerCase();
|
|
4413
4413
|
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;
|
|
4414
4414
|
}
|
|
4415
|
-
|
|
4415
|
+
c.code.match(/^F\d+$/) && (e = c.code.toLowerCase()), c.code.match(/^Digit\d+$/) && (e = c.code.replace(/Digit/g, ""));
|
|
4416
4416
|
let t = "";
|
|
4417
|
-
return
|
|
4417
|
+
return c.ctrlKey && (t += " ctrl"), c.altKey && (t += t + " alt"), c.shiftKey && (t += t + " shift"), c.metaKey && (t += t + " cmd"), mt(t + " " + e);
|
|
4418
4418
|
}
|
|
4419
4419
|
class bt {
|
|
4420
4420
|
constructor(e) {
|
|
@@ -4438,7 +4438,7 @@ class bt {
|
|
|
4438
4438
|
(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)));
|
|
4439
4439
|
}
|
|
4440
4440
|
assignPredefinedSystemShortcutMappings() {
|
|
4441
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
4441
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new ft().get()) : Object.assign(this.shortcutActionIdMapping, new gt().get());
|
|
4442
4442
|
}
|
|
4443
4443
|
isMacintosh() {
|
|
4444
4444
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -4461,10 +4461,10 @@ class bt {
|
|
|
4461
4461
|
return t;
|
|
4462
4462
|
}
|
|
4463
4463
|
findEntity(e) {
|
|
4464
|
-
const t =
|
|
4464
|
+
const t = Ce(e);
|
|
4465
4465
|
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
4466
4466
|
for (const s in this.shortcutActionIdMapping)
|
|
4467
|
-
if (
|
|
4467
|
+
if (Ce(e) === t)
|
|
4468
4468
|
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
4469
4469
|
}
|
|
4470
4470
|
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
@@ -4579,7 +4579,7 @@ class wt {
|
|
|
4579
4579
|
}
|
|
4580
4580
|
}
|
|
4581
4581
|
}
|
|
4582
|
-
class
|
|
4582
|
+
class be {
|
|
4583
4583
|
constructor(e = "none", t = "single") {
|
|
4584
4584
|
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
|
|
4585
4585
|
}
|
|
@@ -4698,12 +4698,12 @@ class xt {
|
|
|
4698
4698
|
return [this.rowIndex, this.columnIndex];
|
|
4699
4699
|
}
|
|
4700
4700
|
}
|
|
4701
|
-
class
|
|
4702
|
-
constructor(e = new
|
|
4701
|
+
class ye {
|
|
4702
|
+
constructor(e = new O(
|
|
4703
4703
|
"❯",
|
|
4704
4704
|
"",
|
|
4705
4705
|
["gt-table-icon-expanded"]
|
|
4706
|
-
), t = new
|
|
4706
|
+
), t = new O(
|
|
4707
4707
|
"❯",
|
|
4708
4708
|
"transform: rotate(180deg) translate(-100%, -100%); transform-origin: 0 0;",
|
|
4709
4709
|
["ge-table-icon-collapsed"]
|
|
@@ -4712,14 +4712,14 @@ class me {
|
|
|
4712
4712
|
}
|
|
4713
4713
|
// `⊖ `, `⊕ `;
|
|
4714
4714
|
}
|
|
4715
|
-
const St = new
|
|
4715
|
+
const St = new be(), Ct = new xt("cell");
|
|
4716
4716
|
class J {
|
|
4717
4717
|
constructor() {
|
|
4718
4718
|
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 = {
|
|
4719
4719
|
header: 34,
|
|
4720
4720
|
body: 34,
|
|
4721
4721
|
footer: 34
|
|
4722
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new
|
|
4722
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ve(), this.headerGroupOptions = new ye(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Be(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new wt(), this.getSelectionModel = () => St, this.getFocusModel = () => Ct;
|
|
4723
4723
|
}
|
|
4724
4724
|
}
|
|
4725
4725
|
const N = class N {
|
|
@@ -4741,8 +4741,8 @@ const N = class N {
|
|
|
4741
4741
|
const n = [];
|
|
4742
4742
|
for (let l = r.r1; l <= r.r2; l++) {
|
|
4743
4743
|
const a = [];
|
|
4744
|
-
for (let
|
|
4745
|
-
const h = t.isSelected(l,
|
|
4744
|
+
for (let d = r.c1; d <= r.c2; d++) {
|
|
4745
|
+
const h = t.isSelected(l, d) ? e.getBodyModel().getTextValueAt(l, d) : "";
|
|
4746
4746
|
a.push(h);
|
|
4747
4747
|
}
|
|
4748
4748
|
n.push(a.join(N.columnSeparatorChar));
|
|
@@ -4848,10 +4848,10 @@ class Rt {
|
|
|
4848
4848
|
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`, n = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
4849
4849
|
<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"?>
|
|
4850
4850
|
<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"?>
|
|
4851
|
-
<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>`,
|
|
4851
|
+
<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>`, d = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
4852
4852
|
<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"?>
|
|
4853
4853
|
<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();
|
|
4854
|
-
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",
|
|
4854
|
+
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", d), u.set("[Content_Types].xml", h), u;
|
|
4855
4855
|
}
|
|
4856
4856
|
getX1WorksheetsSheet1Xml(e) {
|
|
4857
4857
|
const t = [];
|
|
@@ -4897,8 +4897,8 @@ class Rt {
|
|
|
4897
4897
|
let s = 0;
|
|
4898
4898
|
const o = [];
|
|
4899
4899
|
e.forEach((h, u) => {
|
|
4900
|
-
const
|
|
4901
|
-
m.set([80, 75, 3, 4], 0),
|
|
4900
|
+
const f = new TextEncoder().encode(u), p = new TextEncoder().encode(h), m = new Uint8Array(30 + f.length), g = new DataView(m.buffer);
|
|
4901
|
+
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({
|
|
4902
4902
|
path: u,
|
|
4903
4903
|
offset: s,
|
|
4904
4904
|
contentSize: p.length
|
|
@@ -4906,15 +4906,15 @@ class Rt {
|
|
|
4906
4906
|
});
|
|
4907
4907
|
const i = s;
|
|
4908
4908
|
o.forEach((h) => {
|
|
4909
|
-
const u = new TextEncoder().encode(h.path),
|
|
4910
|
-
|
|
4909
|
+
const u = new TextEncoder().encode(h.path), f = new Uint8Array(46 + u.length), p = new DataView(f.buffer);
|
|
4910
|
+
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;
|
|
4911
4911
|
});
|
|
4912
4912
|
const r = new Uint8Array(22), n = new DataView(r.buffer);
|
|
4913
4913
|
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);
|
|
4914
4914
|
const l = t.reduce((h, u) => h + u.length, 0), a = new Uint8Array(l);
|
|
4915
|
-
let
|
|
4915
|
+
let d = 0;
|
|
4916
4916
|
for (const h of t)
|
|
4917
|
-
a.set(h,
|
|
4917
|
+
a.set(h, d), d += h.length;
|
|
4918
4918
|
return a;
|
|
4919
4919
|
}
|
|
4920
4920
|
generateBuffer(e, t = "") {
|
|
@@ -4922,10 +4922,10 @@ class Rt {
|
|
|
4922
4922
|
return this.createZip(s);
|
|
4923
4923
|
}
|
|
4924
4924
|
}
|
|
4925
|
-
class He extends
|
|
4925
|
+
class He extends dt {
|
|
4926
4926
|
constructor(e, t, s, o, i, r = new q(), n = new Rt()) {
|
|
4927
|
-
var
|
|
4928
|
-
if (super(e, t, new Qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = W.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 ne()), (
|
|
4927
|
+
var d;
|
|
4928
|
+
if (super(e, t, new Qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = W.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 ne()), (d = this.tableOptions) != null && d.autoRestoreOptions) {
|
|
4929
4929
|
const h = this.tableOptions.autoRestoreOptions, u = h.getStorageKeyFn;
|
|
4930
4930
|
u && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ot(u)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new rt(u)), h.autoRestoreSortingState && (this.storeSortingService = new nt(u)));
|
|
4931
4931
|
}
|
|
@@ -4976,7 +4976,7 @@ class He extends ct {
|
|
|
4976
4976
|
return !1;
|
|
4977
4977
|
}
|
|
4978
4978
|
updateModelValueAfterEdit(e, t, s, o) {
|
|
4979
|
-
e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(
|
|
4979
|
+
e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(me.createSingle(t, s)), this.hostElement.focus());
|
|
4980
4980
|
}
|
|
4981
4981
|
/**
|
|
4982
4982
|
* Retrieves the TableApi object.
|
|
@@ -5005,7 +5005,7 @@ class He extends ct {
|
|
|
5005
5005
|
* @return {GeMouseEvent} - The created GeMouseEvent object.
|
|
5006
5006
|
*/
|
|
5007
5007
|
createGeMouseEvent(e) {
|
|
5008
|
-
const t = new
|
|
5008
|
+
const t = new ue();
|
|
5009
5009
|
if (t.originalEvent = e, e) {
|
|
5010
5010
|
const s = e.target;
|
|
5011
5011
|
if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(s), t.rowIndex = this.getNumberByAttr(s, "data-row-index"), t.columnIndex = this.getNumberByAttr(s, "data-col-index"), t.action = this.getStringByAttr(s, "data-ge-action"), t.areaIdent) {
|
|
@@ -5151,8 +5151,8 @@ class He extends ct {
|
|
|
5151
5151
|
const o = this.tableModel.getColumnDef(s);
|
|
5152
5152
|
if (o != null && o.sortable && o.sortable()) {
|
|
5153
5153
|
e.preventDefault(), e.stopPropagation();
|
|
5154
|
-
const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", a = n[(n.indexOf(l) + 1) % n.length],
|
|
5155
|
-
this.tableModel.doSort([
|
|
5154
|
+
const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", a = n[(n.indexOf(l) + 1) % n.length], d = new ct(s, a);
|
|
5155
|
+
this.tableModel.doSort([d]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((u) => u.sortState = ""), o.sortState = a), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([d]);
|
|
5156
5156
|
}
|
|
5157
5157
|
}
|
|
5158
5158
|
/**
|
|
@@ -5300,15 +5300,15 @@ class He extends ct {
|
|
|
5300
5300
|
if (re(r)) {
|
|
5301
5301
|
const n = r, l = r.getRowCount();
|
|
5302
5302
|
for (let a = 0; a < l; a++) {
|
|
5303
|
-
const
|
|
5304
|
-
if (
|
|
5303
|
+
const d = r.getRowByIndex(a);
|
|
5304
|
+
if (d)
|
|
5305
5305
|
if (i.allExpanded)
|
|
5306
|
-
|
|
5306
|
+
d.expanded = !0;
|
|
5307
5307
|
else if (i.allCollapsed)
|
|
5308
|
-
|
|
5308
|
+
d.expanded = !1;
|
|
5309
5309
|
else {
|
|
5310
|
-
const h = o(
|
|
5311
|
-
i.mode === "expanded" ?
|
|
5310
|
+
const h = o(d.data);
|
|
5311
|
+
i.mode === "expanded" ? d.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : i.mode === "collapsed" && (d.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
5314
5314
|
n.recalcVisibleTreeRows();
|
|
@@ -5406,7 +5406,7 @@ class He extends ct {
|
|
|
5406
5406
|
return e < t ? (this.scrollToIndex(0, e), !0) : e > s ? (this.scrollToIndex(0, e - o + 1), !0) : !1;
|
|
5407
5407
|
}
|
|
5408
5408
|
}
|
|
5409
|
-
class
|
|
5409
|
+
class jt extends ne {
|
|
5410
5410
|
constructor(e) {
|
|
5411
5411
|
super(), this.onCheckboxChangedCallback = e, super.onCheckboxChanged = (t) => {
|
|
5412
5412
|
this.onCheckboxChangedCallback(t);
|
|
@@ -5649,8 +5649,8 @@ Z.themes = ["light", "combat", "paper", "blackboard"], Z.vars = {
|
|
|
5649
5649
|
--ge-table-drop-zone-bg: #758129;
|
|
5650
5650
|
}`
|
|
5651
5651
|
};
|
|
5652
|
-
let
|
|
5653
|
-
class
|
|
5652
|
+
let ve = Z;
|
|
5653
|
+
class Re {
|
|
5654
5654
|
constructor(e, t = !0, s, o, i = 0, r = !1, n = !1) {
|
|
5655
5655
|
this.data = e, this.expanded = t, this.children = s, this.parent = o, this.deep = i, this.checked = r, this.keep = n, this.type = "TreeRow";
|
|
5656
5656
|
}
|
|
@@ -5662,14 +5662,14 @@ class le {
|
|
|
5662
5662
|
o.push(le.buildTreeRow(i, t, void 0, 0, s));
|
|
5663
5663
|
return o;
|
|
5664
5664
|
}
|
|
5665
|
-
static buildTreeRow(e, t = "children", s = new
|
|
5665
|
+
static buildTreeRow(e, t = "children", s = new Re(e, !0, [], void 0, 0), o = 0, i = 12) {
|
|
5666
5666
|
var n;
|
|
5667
5667
|
if (o > i)
|
|
5668
5668
|
return console.warn("Max deep limit reached: ", o), s;
|
|
5669
5669
|
const r = e[t];
|
|
5670
5670
|
if (r)
|
|
5671
5671
|
for (const l of r) {
|
|
5672
|
-
const a = new
|
|
5672
|
+
const a = new Re(l, !0, [], s, o + 1);
|
|
5673
5673
|
if ((n = s.children) == null || n.push(a), le.buildTreeRow(
|
|
5674
5674
|
l,
|
|
5675
5675
|
t,
|
|
@@ -5691,28 +5691,28 @@ class y {
|
|
|
5691
5691
|
this.value = e, this.unit = t;
|
|
5692
5692
|
}
|
|
5693
5693
|
}
|
|
5694
|
-
const At = () => !0,
|
|
5694
|
+
const At = () => !0, Ae = () => !1;
|
|
5695
5695
|
class H {
|
|
5696
|
-
constructor(e, t, s = new y(100, "px"), o = new
|
|
5697
|
-
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 =
|
|
5696
|
+
constructor(e, t, s = new y(100, "px"), o = new T(), i = new T(), r = new y(100, "px"), n = new y(100, "px"), l, a, d, h, u, f, p, m, g = () => this.visible) {
|
|
5697
|
+
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 = d, 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"));
|
|
5698
5698
|
}
|
|
5699
5699
|
static bodyRenderer(e) {
|
|
5700
|
-
return new
|
|
5700
|
+
return new T(
|
|
5701
5701
|
void 0,
|
|
5702
5702
|
e,
|
|
5703
5703
|
void 0
|
|
5704
5704
|
);
|
|
5705
5705
|
}
|
|
5706
5706
|
static create(e) {
|
|
5707
|
-
const t = new
|
|
5707
|
+
const t = new T(
|
|
5708
5708
|
e.headerRenderer,
|
|
5709
5709
|
e.bodyRenderer,
|
|
5710
5710
|
e.footerRenderer
|
|
5711
|
-
), s = new
|
|
5711
|
+
), s = new T(
|
|
5712
5712
|
e.headerClasses,
|
|
5713
5713
|
e.bodyClasses,
|
|
5714
5714
|
e.footerClasses
|
|
5715
|
-
), o = e.sortIconVisible ?? e.sortable ??
|
|
5715
|
+
), o = e.sortIconVisible ?? e.sortable ?? Ae, i = e.editable ?? e.editable ?? Ae, r = e.isVisible ?? e.isVisible ?? At;
|
|
5716
5716
|
return new H(
|
|
5717
5717
|
e.property ?? "",
|
|
5718
5718
|
e.headerLabel ?? "",
|
|
@@ -5733,8 +5733,8 @@ class H {
|
|
|
5733
5733
|
);
|
|
5734
5734
|
}
|
|
5735
5735
|
}
|
|
5736
|
-
const
|
|
5737
|
-
class
|
|
5736
|
+
const Ut = new y(500, "px"), Yt = new y(400, "px"), Mt = new y(300, "px"), Kt = new y(290, "px"), Xt = new y(280, "px"), Jt = new y(270, "px"), qt = new y(260, "px"), Zt = new y(250, "px"), Qt = new y(240, "px"), es = new y(230, "px"), ts = new y(220, "px"), ss = new y(210, "px"), Me = new y(200, "px"), os = new y(190, "px"), is = new y(180, "px"), rs = new y(170, "px"), ns = new y(160, "px"), ls = new y(150, "px"), as = new y(140, "px"), ds = new y(130, "px"), cs = new y(120, "px"), hs = new y(110, "px"), us = new y(100, "px"), ps = new y(90, "px"), gs = new y(80, "px"), fs = new y(70, "px"), ms = new y(60, "px"), bs = new y(50, "px"), ys = new y(40, "px"), ws = new y(30, "px"), xs = new y(20, "px"), Ss = new y(10, "px"), Cs = new y(0, "px");
|
|
5737
|
+
class P extends pe {
|
|
5738
5738
|
constructor(e, t, s, o = []) {
|
|
5739
5739
|
super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
|
|
5740
5740
|
}
|
|
@@ -5762,7 +5762,7 @@ class F extends ue {
|
|
|
5762
5762
|
this.filteredArr.forEach((s) => this.arrayMove(s, e, t)), super.changeColumnOrder(e, t);
|
|
5763
5763
|
}
|
|
5764
5764
|
}
|
|
5765
|
-
class
|
|
5765
|
+
class k {
|
|
5766
5766
|
constructor(e = "body") {
|
|
5767
5767
|
this.areaIdent = e, this.rowSelectionModel = void 0;
|
|
5768
5768
|
}
|
|
@@ -5836,7 +5836,7 @@ class P {
|
|
|
5836
5836
|
changeColumnOrder(e, t) {
|
|
5837
5837
|
}
|
|
5838
5838
|
}
|
|
5839
|
-
class
|
|
5839
|
+
class It {
|
|
5840
5840
|
flattenTree(e, t = []) {
|
|
5841
5841
|
var s;
|
|
5842
5842
|
for (const o of e)
|
|
@@ -5847,9 +5847,9 @@ class Mt {
|
|
|
5847
5847
|
return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
|
|
5848
5848
|
}
|
|
5849
5849
|
}
|
|
5850
|
-
class
|
|
5850
|
+
class Ie extends pe {
|
|
5851
5851
|
constructor(e, t, s, o = []) {
|
|
5852
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new
|
|
5852
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new ge(), this.service = new It(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
|
|
5853
5853
|
}
|
|
5854
5854
|
changeColumnOrder(e, t) {
|
|
5855
5855
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
@@ -6013,12 +6013,12 @@ class Ee {
|
|
|
6013
6013
|
s.checked && t.push(s), s.children && this.addSelectedRecursive(s.children, t);
|
|
6014
6014
|
}
|
|
6015
6015
|
}
|
|
6016
|
-
class
|
|
6016
|
+
class ae {
|
|
6017
6017
|
constructor(e = 0, t = 0, s = 0, o = 0) {
|
|
6018
6018
|
this.top = e, this.right = t, this.bottom = s, this.left = o;
|
|
6019
6019
|
}
|
|
6020
6020
|
}
|
|
6021
|
-
class
|
|
6021
|
+
class Et {
|
|
6022
6022
|
constructor() {
|
|
6023
6023
|
this.checkedRows = [];
|
|
6024
6024
|
}
|
|
@@ -6050,10 +6050,10 @@ class Tt {
|
|
|
6050
6050
|
}
|
|
6051
6051
|
}
|
|
6052
6052
|
class oe {
|
|
6053
|
-
constructor(e, t, s, o = 0, i = 0, r = !1, n = new z(), l = [], a = [],
|
|
6053
|
+
constructor(e, t, s, o = 0, i = 0, r = !1, n = new z(), l = [], a = [], d = -1, h = 0, u = 400, f = () => {
|
|
6054
6054
|
}) {
|
|
6055
|
-
var p, m,
|
|
6056
|
-
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 =
|
|
6055
|
+
var p, m, g, b;
|
|
6056
|
+
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 = d, this.columnCount = h, this.parentSize = u, this.getSelectionModel = f, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ae(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 Et());
|
|
6057
6057
|
}
|
|
6058
6058
|
init() {
|
|
6059
6059
|
this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
|
|
@@ -6137,7 +6137,7 @@ class oe {
|
|
|
6137
6137
|
*/
|
|
6138
6138
|
recalcPadding() {
|
|
6139
6139
|
const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), s = this.getAreaHeight("header"), o = this.getAreaHeight("footer");
|
|
6140
|
-
this.padding = new
|
|
6140
|
+
this.padding = new ae(
|
|
6141
6141
|
s,
|
|
6142
6142
|
t,
|
|
6143
6143
|
o,
|
|
@@ -6389,12 +6389,12 @@ class oe {
|
|
|
6389
6389
|
if (l.width.unit === "%" && e) {
|
|
6390
6390
|
let a = Math.floor(l.width.value * e / 100);
|
|
6391
6391
|
if (l.minWidth) {
|
|
6392
|
-
const
|
|
6393
|
-
a = Math.max(
|
|
6392
|
+
const d = this.sizeToPixel(l.minWidth, e);
|
|
6393
|
+
a = Math.max(d, a);
|
|
6394
6394
|
}
|
|
6395
6395
|
if (l.maxWidth) {
|
|
6396
|
-
const
|
|
6397
|
-
a = Math.min(
|
|
6396
|
+
const d = this.sizeToPixel(l.maxWidth, e);
|
|
6397
|
+
a = Math.min(d, a);
|
|
6398
6398
|
}
|
|
6399
6399
|
return a;
|
|
6400
6400
|
} else if (l.width.unit === "px" && e)
|
|
@@ -6403,10 +6403,10 @@ class oe {
|
|
|
6403
6403
|
});
|
|
6404
6404
|
const r = this.columnSizes.reduce((l, a) => l + a), n = e - r;
|
|
6405
6405
|
if (n > 0 && i.length) {
|
|
6406
|
-
const l = i.map((a) => a.width.value).reduce((a,
|
|
6406
|
+
const l = i.map((a) => a.width.value).reduce((a, d) => a + d);
|
|
6407
6407
|
for (let a = 0; a < this.columnDefs.length; a++) {
|
|
6408
|
-
const
|
|
6409
|
-
|
|
6408
|
+
const d = this.columnDefs[a];
|
|
6409
|
+
d.width.unit === "weight" && (this.columnSizes[a] = d.width.value * n / l);
|
|
6410
6410
|
}
|
|
6411
6411
|
}
|
|
6412
6412
|
}
|
|
@@ -6442,7 +6442,7 @@ class oe {
|
|
|
6442
6442
|
return this.tableScope;
|
|
6443
6443
|
}
|
|
6444
6444
|
}
|
|
6445
|
-
class Te extends
|
|
6445
|
+
class Te extends _ {
|
|
6446
6446
|
/**
|
|
6447
6447
|
* Creates an instance of AreaModelObjectArrayWithColumndefs.
|
|
6448
6448
|
*
|
|
@@ -6521,49 +6521,49 @@ class V {
|
|
|
6521
6521
|
* Please consult each method's documentation for detailed explanation of their functionality.
|
|
6522
6522
|
*/
|
|
6523
6523
|
static createTableModel(e) {
|
|
6524
|
-
var t, s, o, i, r, n, l, a,
|
|
6524
|
+
var t, s, o, i, r, n, l, a, d, h, u, f, p, m;
|
|
6525
6525
|
if (e.defaultRowHeights === void 0)
|
|
6526
6526
|
if ((t = e.tableOptions) != null && t.defaultRowHeights)
|
|
6527
6527
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
6528
6528
|
else {
|
|
6529
6529
|
if (e.defaultRowHeights = new z(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
|
|
6530
|
-
const
|
|
6531
|
-
|
|
6530
|
+
const g = e.headerAreaModel.defaultRowHeight;
|
|
6531
|
+
g > -1 && (e.defaultRowHeights.header = g);
|
|
6532
6532
|
}
|
|
6533
6533
|
if (e.bodyAreaModel && "defaultRowHeight" in e.bodyAreaModel) {
|
|
6534
|
-
const
|
|
6535
|
-
|
|
6534
|
+
const g = e.bodyAreaModel.defaultRowHeight;
|
|
6535
|
+
g > -1 && (e.defaultRowHeights.body = g);
|
|
6536
6536
|
}
|
|
6537
6537
|
if (e.footerAreaModel && "defaultRowHeight" in e.footerAreaModel) {
|
|
6538
|
-
const
|
|
6539
|
-
|
|
6538
|
+
const g = e.footerAreaModel.defaultRowHeight;
|
|
6539
|
+
g > -1 && (e.defaultRowHeights.footer = g);
|
|
6540
6540
|
}
|
|
6541
6541
|
}
|
|
6542
|
-
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((
|
|
6542
|
+
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new H(g, g.toUpperCase(), Me)) : (o = e.rows) != null && o.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new H(g, g.toUpperCase(), Me)) : 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(
|
|
6543
6543
|
"header",
|
|
6544
6544
|
e.headerData,
|
|
6545
6545
|
e.defaultRowHeights.header,
|
|
6546
6546
|
e.columnDefs
|
|
6547
|
-
) : (
|
|
6547
|
+
) : (d = e.columnDefs) != null && d.length ? e.headerAreaModel = new P(
|
|
6548
6548
|
"header",
|
|
6549
|
-
[e.columnDefs.map((
|
|
6549
|
+
[e.columnDefs.map((g) => g.headerLabel)],
|
|
6550
6550
|
e.defaultRowHeights.header,
|
|
6551
6551
|
e.columnDefs
|
|
6552
|
-
) : e.headerAreaModel = new
|
|
6552
|
+
) : e.headerAreaModel = new k("header")), e.footerAreaModel || ((h = e.footerData) != null && h.length ? e.footerAreaModel = new P(
|
|
6553
6553
|
"footer",
|
|
6554
6554
|
e.footerData,
|
|
6555
6555
|
e.defaultRowHeights.footer,
|
|
6556
6556
|
e.columnDefs
|
|
6557
|
-
) : e.footerAreaModel = new
|
|
6557
|
+
) : e.footerAreaModel = new k("footer")), !e.bodyAreaModel)
|
|
6558
6558
|
if (e.rows)
|
|
6559
6559
|
if ((u = e.rows) != null && u.length && G(e.rows[0])) {
|
|
6560
|
-
const
|
|
6561
|
-
e.bodyAreaModel = new
|
|
6560
|
+
const g = e.rows;
|
|
6561
|
+
e.bodyAreaModel = new Ie(
|
|
6562
6562
|
"body",
|
|
6563
|
-
|
|
6563
|
+
g,
|
|
6564
6564
|
e.defaultRowHeights.body,
|
|
6565
6565
|
e.columnDefs
|
|
6566
|
-
), (e.columnDefs[0].property === "CheckboxColumn" || (
|
|
6566
|
+
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Ee(g));
|
|
6567
6567
|
} else
|
|
6568
6568
|
e.bodyAreaModel = new Te(
|
|
6569
6569
|
"body",
|
|
@@ -6571,11 +6571,11 @@ class V {
|
|
|
6571
6571
|
e.columnDefs,
|
|
6572
6572
|
e.defaultRowHeights.body
|
|
6573
6573
|
);
|
|
6574
|
-
else e.bodyData ? e.bodyAreaModel = new
|
|
6574
|
+
else e.bodyData ? e.bodyAreaModel = new P(
|
|
6575
6575
|
"body",
|
|
6576
6576
|
e.bodyData,
|
|
6577
6577
|
e.defaultRowHeights.body
|
|
6578
|
-
) : e.bodyAreaModel = new
|
|
6578
|
+
) : e.bodyAreaModel = new k("body");
|
|
6579
6579
|
return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((p = e.tableOptions) != null && p.getSelectionModel) && (e.getSelectionModel = (m = e.tableOptions) == null ? void 0 : m.getSelectionModel), new oe(
|
|
6580
6580
|
e.headerAreaModel,
|
|
6581
6581
|
e.bodyAreaModel,
|
|
@@ -6657,16 +6657,16 @@ class V {
|
|
|
6657
6657
|
static buildByTypedRows(e, t, s = new J(), o = 0, i = 0) {
|
|
6658
6658
|
const r = s.defaultRowHeights, n = t[0].property === "CheckboxColumn";
|
|
6659
6659
|
if (e != null && e.length && G(e[0])) {
|
|
6660
|
-
const a = e,
|
|
6660
|
+
const a = e, d = new Ie(
|
|
6661
6661
|
"body",
|
|
6662
6662
|
a,
|
|
6663
6663
|
r.body,
|
|
6664
6664
|
t
|
|
6665
6665
|
);
|
|
6666
|
-
return (n || s.showCheckboxWihoutExtraColumn) && (
|
|
6667
|
-
headerAreaModel: new
|
|
6668
|
-
bodyAreaModel:
|
|
6669
|
-
footerAreaModel: new
|
|
6666
|
+
return (n || s.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new Ee(a)), V.createByAreaModelsParam({
|
|
6667
|
+
headerAreaModel: new P("header", [t.map((h) => h.headerLabel)], r.header),
|
|
6668
|
+
bodyAreaModel: d,
|
|
6669
|
+
footerAreaModel: new P("footer", [], r.footer),
|
|
6670
6670
|
columnDefs: t,
|
|
6671
6671
|
fixedLeftColumnCount: o,
|
|
6672
6672
|
fixedRightColumnCount: i,
|
|
@@ -6784,7 +6784,7 @@ class V {
|
|
|
6784
6784
|
* @return A new instance of `TableModel` is created using the provided parameters.
|
|
6785
6785
|
* If a parameter isn't provided, the default value is used.
|
|
6786
6786
|
*/
|
|
6787
|
-
static createByAreaModels(e = new
|
|
6787
|
+
static createByAreaModels(e = new k(), t, s = new k(), o = 0, i = 0, r = !1, n = new z(), l, a = [], d = -1, h) {
|
|
6788
6788
|
return new oe(
|
|
6789
6789
|
e,
|
|
6790
6790
|
t,
|
|
@@ -6795,7 +6795,7 @@ class V {
|
|
|
6795
6795
|
n,
|
|
6796
6796
|
l,
|
|
6797
6797
|
a,
|
|
6798
|
-
|
|
6798
|
+
d,
|
|
6799
6799
|
h
|
|
6800
6800
|
);
|
|
6801
6801
|
}
|
|
@@ -6837,9 +6837,9 @@ class V {
|
|
|
6837
6837
|
*/
|
|
6838
6838
|
static createByAreaModelsParam(e) {
|
|
6839
6839
|
return V.createByAreaModels(
|
|
6840
|
-
e.headerAreaModel ?? new
|
|
6840
|
+
e.headerAreaModel ?? new k(),
|
|
6841
6841
|
e.bodyAreaModel,
|
|
6842
|
-
e.footerAreaModel ?? new
|
|
6842
|
+
e.footerAreaModel ?? new k(),
|
|
6843
6843
|
e.fixedLeftColumnCount ?? 0,
|
|
6844
6844
|
e.fixedRightColumnCount ?? 0,
|
|
6845
6845
|
e.rowCheckboxVisible === void 0 ? !1 : e.rowCheckboxVisible,
|
|
@@ -6899,11 +6899,11 @@ class V {
|
|
|
6899
6899
|
* Reference: For more details regarding the `DefaultRowHeightsIf`, `ColumnDefIf`, `AreaModelIf`, and `AreaModelArrayOfArrays` classes/interfaces, please refer to the respective API documents.
|
|
6900
6900
|
*/
|
|
6901
6901
|
static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new z(), l, a = []) {
|
|
6902
|
-
let
|
|
6903
|
-
t != null && t.length ?
|
|
6904
|
-
const h = s ? new
|
|
6902
|
+
let d;
|
|
6903
|
+
t != null && t.length ? d = new P("header", t, n.header, l) : l != null && l.length ? d = new P("header", [l.map((f) => f.headerLabel)], n.header, l) : d = new k();
|
|
6904
|
+
const h = s ? new P("footer", s, n.footer, l) : new k(), u = new Te("body", e, l, n.body);
|
|
6905
6905
|
return new oe(
|
|
6906
|
-
|
|
6906
|
+
d,
|
|
6907
6907
|
u,
|
|
6908
6908
|
h,
|
|
6909
6909
|
o,
|
|
@@ -6915,7 +6915,197 @@ class V {
|
|
|
6915
6915
|
);
|
|
6916
6916
|
}
|
|
6917
6917
|
}
|
|
6918
|
-
|
|
6918
|
+
class Tt {
|
|
6919
|
+
constructor(e, t, s = 200, o = 300, i = 0, r = 0) {
|
|
6920
|
+
this.items = e, this.cellRenderer = t, this.coverWidth = s, this.coverHeight = o, this.width = i, this.firstRowPaddingTop = r, this.rowSelectionModel = void 0, this.areaIdent = "body", this.filteredItems = [], this.sorterService = new ge(), this.filteredItems = e;
|
|
6921
|
+
}
|
|
6922
|
+
getRowCount() {
|
|
6923
|
+
var e;
|
|
6924
|
+
return (e = this.filteredItems) != null && e.length ? Math.floor(this.filteredItems.length / this.getColumnCount()) + 1 : 0;
|
|
6925
|
+
}
|
|
6926
|
+
getColumnCount() {
|
|
6927
|
+
return this.width ? Math.floor(this.width / this.coverWidth) : 1;
|
|
6928
|
+
}
|
|
6929
|
+
getValueAt(e, t) {
|
|
6930
|
+
var s;
|
|
6931
|
+
return (s = this.filteredItems) == null ? void 0 : s[e * this.getColumnCount() + t];
|
|
6932
|
+
}
|
|
6933
|
+
getTextValueAt(e, t) {
|
|
6934
|
+
return "";
|
|
6935
|
+
}
|
|
6936
|
+
getTooltipAt(e, t) {
|
|
6937
|
+
return "";
|
|
6938
|
+
}
|
|
6939
|
+
getRowHeight(e) {
|
|
6940
|
+
return e === 0 && this.firstRowPaddingTop > 0 ? this.firstRowPaddingTop + this.coverHeight : this.coverHeight;
|
|
6941
|
+
}
|
|
6942
|
+
getCellRenderer(e, t) {
|
|
6943
|
+
return this.cellRenderer;
|
|
6944
|
+
}
|
|
6945
|
+
getColspanAt(e, t) {
|
|
6946
|
+
return 0;
|
|
6947
|
+
}
|
|
6948
|
+
getCustomClassesAt(e, t) {
|
|
6949
|
+
return [];
|
|
6950
|
+
}
|
|
6951
|
+
getCustomStyleAt(e, t) {
|
|
6952
|
+
}
|
|
6953
|
+
getRowspanAt(e, t) {
|
|
6954
|
+
return 0;
|
|
6955
|
+
}
|
|
6956
|
+
getRowByIndex(e) {
|
|
6957
|
+
}
|
|
6958
|
+
isRowCheckable(e) {
|
|
6959
|
+
return !0;
|
|
6960
|
+
}
|
|
6961
|
+
isRowChecked(e) {
|
|
6962
|
+
}
|
|
6963
|
+
setRowChecked(e, t) {
|
|
6964
|
+
}
|
|
6965
|
+
getMaxColspan() {
|
|
6966
|
+
return 31;
|
|
6967
|
+
}
|
|
6968
|
+
getMaxRowspan() {
|
|
6969
|
+
return 31;
|
|
6970
|
+
}
|
|
6971
|
+
getYPosByRowIndex(e) {
|
|
6972
|
+
const t = this.firstRowPaddingTop > 0 ? this.firstRowPaddingTop : 0;
|
|
6973
|
+
return this.coverHeight * e + t;
|
|
6974
|
+
}
|
|
6975
|
+
init() {
|
|
6976
|
+
}
|
|
6977
|
+
externalFilterChanged(e) {
|
|
6978
|
+
this.filteredItems = this.items.filter(e);
|
|
6979
|
+
}
|
|
6980
|
+
isFilterable() {
|
|
6981
|
+
return !1;
|
|
6982
|
+
}
|
|
6983
|
+
doSort(e) {
|
|
6984
|
+
if (!this.filteredItems) return !1;
|
|
6985
|
+
for (const t of e) {
|
|
6986
|
+
const { sortState: s } = t, o = s === "asc" ? 1 : s === "desc" ? -1 : 0;
|
|
6987
|
+
this.filteredItems = this.filteredItems.sort((i, r) => this.sorterService.genericSortComparator(i, r, o));
|
|
6988
|
+
}
|
|
6989
|
+
return !0;
|
|
6990
|
+
}
|
|
6991
|
+
sort(e) {
|
|
6992
|
+
this.filteredItems = this.filteredItems.sort(e);
|
|
6993
|
+
}
|
|
6994
|
+
isEditable(e, t) {
|
|
6995
|
+
return !1;
|
|
6996
|
+
}
|
|
6997
|
+
setValue(e, t, s) {
|
|
6998
|
+
return !0;
|
|
6999
|
+
}
|
|
7000
|
+
isSelectable(e, t) {
|
|
7001
|
+
return !1;
|
|
7002
|
+
}
|
|
7003
|
+
changeColumnOrder(e, t) {
|
|
7004
|
+
}
|
|
7005
|
+
setPropertyValue(e, t, s) {
|
|
7006
|
+
return !1;
|
|
7007
|
+
}
|
|
7008
|
+
arrayMove(e, t, s) {
|
|
7009
|
+
}
|
|
7010
|
+
}
|
|
7011
|
+
class kt {
|
|
7012
|
+
constructor(e, t = 0) {
|
|
7013
|
+
this.bodyModel = e, this.paddingTop = t, this.headerAreaModel = new k(), this.footerAreaModel = new k();
|
|
7014
|
+
}
|
|
7015
|
+
changeColumnOrder(e, t) {
|
|
7016
|
+
}
|
|
7017
|
+
isSortable(e) {
|
|
7018
|
+
return !1;
|
|
7019
|
+
}
|
|
7020
|
+
init() {
|
|
7021
|
+
}
|
|
7022
|
+
setParentWidth(e) {
|
|
7023
|
+
}
|
|
7024
|
+
getColumnCount() {
|
|
7025
|
+
return this.bodyModel.getColumnCount();
|
|
7026
|
+
}
|
|
7027
|
+
getXPosByColumnIndex(e) {
|
|
7028
|
+
return e * this.getColumnWidth(e);
|
|
7029
|
+
}
|
|
7030
|
+
getAreaModel(e) {
|
|
7031
|
+
return e === "header" ? this.headerAreaModel : e === "footer" ? this.footerAreaModel : this.bodyModel;
|
|
7032
|
+
}
|
|
7033
|
+
getBodyModel() {
|
|
7034
|
+
return this.bodyModel;
|
|
7035
|
+
}
|
|
7036
|
+
getFixedLeftColumnCount() {
|
|
7037
|
+
return 0;
|
|
7038
|
+
}
|
|
7039
|
+
getFixedRightColumnCount() {
|
|
7040
|
+
return 0;
|
|
7041
|
+
}
|
|
7042
|
+
isHeaderVisibe() {
|
|
7043
|
+
return !1;
|
|
7044
|
+
}
|
|
7045
|
+
isFooterVisibe() {
|
|
7046
|
+
return !1;
|
|
7047
|
+
}
|
|
7048
|
+
isRowCheckboxVisible() {
|
|
7049
|
+
return !1;
|
|
7050
|
+
}
|
|
7051
|
+
getRowHeight(e, t) {
|
|
7052
|
+
return this.bodyModel.getRowHeight(t);
|
|
7053
|
+
}
|
|
7054
|
+
getColumnDef(e) {
|
|
7055
|
+
}
|
|
7056
|
+
getColumnDefs() {
|
|
7057
|
+
}
|
|
7058
|
+
getColumnProperty(e) {
|
|
7059
|
+
return "";
|
|
7060
|
+
}
|
|
7061
|
+
getBodyRowByIndex(e) {
|
|
7062
|
+
return this.bodyModel.getRowByIndex(e);
|
|
7063
|
+
}
|
|
7064
|
+
getColumnWidth(e) {
|
|
7065
|
+
return this.bodyModel.coverWidth;
|
|
7066
|
+
}
|
|
7067
|
+
setColumnWidth(e, t) {
|
|
7068
|
+
}
|
|
7069
|
+
recalcSize(e) {
|
|
7070
|
+
}
|
|
7071
|
+
recalcPadding() {
|
|
7072
|
+
}
|
|
7073
|
+
recalcHeightAndPadding() {
|
|
7074
|
+
}
|
|
7075
|
+
getPadding() {
|
|
7076
|
+
return new ae(0, 0, 0, 0);
|
|
7077
|
+
}
|
|
7078
|
+
getContentHeightInPixel() {
|
|
7079
|
+
return this.paddingTop + this.bodyModel.getRowCount() * this.bodyModel.coverHeight;
|
|
7080
|
+
}
|
|
7081
|
+
getContentWidthInPixel() {
|
|
7082
|
+
return this.bodyModel.getColumnCount() * this.bodyModel.coverWidth;
|
|
7083
|
+
}
|
|
7084
|
+
externalFilterChanged(e) {
|
|
7085
|
+
this.bodyModel.externalFilterChanged(e);
|
|
7086
|
+
}
|
|
7087
|
+
doSort(e) {
|
|
7088
|
+
return this.bodyModel.doSort(e);
|
|
7089
|
+
}
|
|
7090
|
+
sort(e) {
|
|
7091
|
+
this.bodyModel.sort(e);
|
|
7092
|
+
}
|
|
7093
|
+
getSelectionModel() {
|
|
7094
|
+
}
|
|
7095
|
+
setTableScope(e) {
|
|
7096
|
+
this.tableScope = e;
|
|
7097
|
+
}
|
|
7098
|
+
getTableScope() {
|
|
7099
|
+
return this.tableScope;
|
|
7100
|
+
}
|
|
7101
|
+
}
|
|
7102
|
+
class vs {
|
|
7103
|
+
static createCoverGridModel(e, t, s = 200, o = 300, i = 0, r = 0) {
|
|
7104
|
+
const n = new Tt(e, t, s, o, i, r);
|
|
7105
|
+
return new kt(n, r);
|
|
7106
|
+
}
|
|
7107
|
+
}
|
|
7108
|
+
const Rs = [
|
|
6919
7109
|
"COPY_2_CLIPBOARD",
|
|
6920
7110
|
"START_EDITING",
|
|
6921
7111
|
"TOGGLE_SELECTION",
|
|
@@ -6933,17 +7123,17 @@ const Ss = [
|
|
|
6933
7123
|
// "PAGEUP_PRESSED",
|
|
6934
7124
|
// "PAGEDOWN_PRESSED"
|
|
6935
7125
|
];
|
|
6936
|
-
class
|
|
7126
|
+
class Dt {
|
|
6937
7127
|
constructor(e, t) {
|
|
6938
7128
|
this.tableModel = e, this.tableOptions = t;
|
|
6939
7129
|
}
|
|
6940
7130
|
}
|
|
6941
|
-
class
|
|
7131
|
+
class Ft {
|
|
6942
7132
|
constructor(e, t, s, o, i, r, n) {
|
|
6943
7133
|
this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = s, this.filter = o, this.sorting = i, this.startIndex = r, this.endIndex = n;
|
|
6944
7134
|
}
|
|
6945
7135
|
}
|
|
6946
|
-
class
|
|
7136
|
+
class As extends Ft {
|
|
6947
7137
|
constructor(e, t, s, o, i, r, n, l) {
|
|
6948
7138
|
super(
|
|
6949
7139
|
e,
|
|
@@ -6956,34 +7146,34 @@ class Cs extends kt {
|
|
|
6956
7146
|
), this.rows = l;
|
|
6957
7147
|
}
|
|
6958
7148
|
}
|
|
6959
|
-
class
|
|
7149
|
+
class Pt {
|
|
6960
7150
|
constructor(e, t) {
|
|
6961
7151
|
this.value = e, this.label = t;
|
|
6962
7152
|
}
|
|
6963
7153
|
}
|
|
6964
|
-
class
|
|
7154
|
+
class Ms {
|
|
6965
7155
|
constructor(e, t) {
|
|
6966
7156
|
this.index = e, this.px = t;
|
|
6967
7157
|
}
|
|
6968
7158
|
}
|
|
6969
|
-
const
|
|
7159
|
+
const Is = { body: ["ge-table-text-align-left"] }, Es = { body: ["ge-table-text-align-center"] }, Ts = { body: ["ge-table-text-align-right"] }, ks = {
|
|
6970
7160
|
header: ["ge-table-text-align-left"],
|
|
6971
7161
|
body: ["ge-table-text-align-left"],
|
|
6972
7162
|
footer: ["ge-table-text-align-left"]
|
|
6973
|
-
},
|
|
7163
|
+
}, Ds = {
|
|
6974
7164
|
header: ["ge-table-text-align-center"],
|
|
6975
7165
|
body: ["ge-table-text-align-center"],
|
|
6976
7166
|
footer: ["ge-table-text-align-center"]
|
|
6977
|
-
},
|
|
7167
|
+
}, Fs = {
|
|
6978
7168
|
header: ["ge-table-text-align-right"],
|
|
6979
7169
|
body: ["ge-table-text-align-right"],
|
|
6980
7170
|
footer: ["ge-table-text-align-right"]
|
|
6981
7171
|
};
|
|
6982
|
-
class
|
|
7172
|
+
class ke {
|
|
6983
7173
|
render(e, t, s, o, i, r, n) {
|
|
6984
7174
|
if (i.isRowCheckable(t)) {
|
|
6985
7175
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
6986
|
-
const l = i.isRowChecked(t), a = l === "full" ? "checked" : "",
|
|
7176
|
+
const l = i.isRowChecked(t), a = l === "full" ? "checked" : "", d = l === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
|
|
6987
7177
|
e.innerHTML = `
|
|
6988
7178
|
<input
|
|
6989
7179
|
type="checkbox"
|
|
@@ -6993,20 +7183,20 @@ class Ie {
|
|
|
6993
7183
|
data-input-type="checkbox"
|
|
6994
7184
|
${a}
|
|
6995
7185
|
class="ge-table-row-checkbox">
|
|
6996
|
-
${
|
|
7186
|
+
${d} `;
|
|
6997
7187
|
}
|
|
6998
7188
|
}
|
|
6999
7189
|
}
|
|
7000
|
-
class
|
|
7190
|
+
class Ps {
|
|
7001
7191
|
constructor() {
|
|
7002
|
-
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
|
|
7192
|
+
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 T(new ke(), new ke(), void 0), this.classes = new T(
|
|
7003
7193
|
[],
|
|
7004
7194
|
["ge-table-text-align-left"],
|
|
7005
7195
|
[]
|
|
7006
7196
|
);
|
|
7007
7197
|
}
|
|
7008
7198
|
}
|
|
7009
|
-
class
|
|
7199
|
+
class _s {
|
|
7010
7200
|
/**
|
|
7011
7201
|
* A factory that creates a new AreaObjectMap with the given body renderer.
|
|
7012
7202
|
*
|
|
@@ -7014,24 +7204,24 @@ class Ds {
|
|
|
7014
7204
|
* @returns {AreaObjectMap<CellRendererIf>} The newly created AreaObjectMap.
|
|
7015
7205
|
*/
|
|
7016
7206
|
static body(e) {
|
|
7017
|
-
return new
|
|
7207
|
+
return new T(
|
|
7018
7208
|
void 0,
|
|
7019
7209
|
e,
|
|
7020
7210
|
void 0
|
|
7021
7211
|
);
|
|
7022
7212
|
}
|
|
7023
7213
|
}
|
|
7024
|
-
class
|
|
7214
|
+
class Ls {
|
|
7025
7215
|
constructor(e = "down", t) {
|
|
7026
7216
|
this.status = e, this.originalEvent = t;
|
|
7027
7217
|
}
|
|
7028
7218
|
}
|
|
7029
|
-
class
|
|
7219
|
+
class Os {
|
|
7030
7220
|
constructor(e, t, s, o, i = {}) {
|
|
7031
7221
|
this.area = e, this.rowIndex = t, this.columnIndex = s, this.value = o, this.cssClasses = i;
|
|
7032
7222
|
}
|
|
7033
7223
|
}
|
|
7034
|
-
class
|
|
7224
|
+
class $s {
|
|
7035
7225
|
constructor() {
|
|
7036
7226
|
this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, s) => {
|
|
7037
7227
|
if (e && t && s.getRowId) {
|
|
@@ -7056,12 +7246,12 @@ class Ls {
|
|
|
7056
7246
|
};
|
|
7057
7247
|
}
|
|
7058
7248
|
}
|
|
7059
|
-
class
|
|
7249
|
+
class _t {
|
|
7060
7250
|
constructor(e, t, s, o = !1, i = "normal", r = void 0) {
|
|
7061
7251
|
this.data = e, this.property = t, this.toggle = s, this.closed = o, this.visibility = i, this.children = r, this.impl = "CellGroup";
|
|
7062
7252
|
}
|
|
7063
7253
|
}
|
|
7064
|
-
class
|
|
7254
|
+
class Lt extends _t {
|
|
7065
7255
|
constructor(e, t = 0, s = 0, o) {
|
|
7066
7256
|
super(
|
|
7067
7257
|
e.data,
|
|
@@ -7153,7 +7343,7 @@ class Pt extends Ft {
|
|
|
7153
7343
|
return n;
|
|
7154
7344
|
}
|
|
7155
7345
|
}
|
|
7156
|
-
class
|
|
7346
|
+
class E {
|
|
7157
7347
|
static buildColumnDefs(e, t = []) {
|
|
7158
7348
|
for (const s of e)
|
|
7159
7349
|
s.property && t.push(
|
|
@@ -7162,7 +7352,7 @@ class T {
|
|
|
7162
7352
|
headerLabel: s.data ? s.data : s.property,
|
|
7163
7353
|
isVisible: () => typeof s.isVisible == "function" ? s.isVisible() : !0
|
|
7164
7354
|
})
|
|
7165
|
-
), s.children &&
|
|
7355
|
+
), s.children && E.buildColumnDefs(s.children, t);
|
|
7166
7356
|
return t;
|
|
7167
7357
|
}
|
|
7168
7358
|
/*
|
|
@@ -7186,14 +7376,14 @@ class T {
|
|
|
7186
7376
|
static buildGroupExts(e, t = [], s = 0, o) {
|
|
7187
7377
|
let i;
|
|
7188
7378
|
for (let r = 0; r < e.length; r++) {
|
|
7189
|
-
const n = e[r], l = new
|
|
7190
|
-
i && (l.leftNeighbour = i, i.rightNeighbour = l), t.push(l), n.children && (l.children =
|
|
7379
|
+
const n = e[r], l = new Lt(n, s, r, o);
|
|
7380
|
+
i && (l.leftNeighbour = i, i.rightNeighbour = l), t.push(l), n.children && (l.children = E.buildGroupExts(n.children, [], s + 1, l)), i = l;
|
|
7191
7381
|
}
|
|
7192
7382
|
return t;
|
|
7193
7383
|
}
|
|
7194
7384
|
static flattenGroupExts(e, t = []) {
|
|
7195
7385
|
for (const s of e)
|
|
7196
|
-
t.push(s), s.children &&
|
|
7386
|
+
t.push(s), s.children && E.flattenGroupExts(s.children, t);
|
|
7197
7387
|
return t;
|
|
7198
7388
|
}
|
|
7199
7389
|
/*
|
|
@@ -7225,10 +7415,10 @@ class T {
|
|
|
7225
7415
|
static iterateThrowColumns(e = [], t) {
|
|
7226
7416
|
var s;
|
|
7227
7417
|
for (const o of t)
|
|
7228
|
-
e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length &&
|
|
7418
|
+
e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length && E.iterateThrowColumns(e, o.children);
|
|
7229
7419
|
}
|
|
7230
7420
|
}
|
|
7231
|
-
class
|
|
7421
|
+
class Vs {
|
|
7232
7422
|
constructor() {
|
|
7233
7423
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
7234
7424
|
}
|
|
@@ -7851,14 +8041,14 @@ class Os {
|
|
|
7851
8041
|
}
|
|
7852
8042
|
}
|
|
7853
8043
|
const Q = class Q {
|
|
7854
|
-
constructor(e = new
|
|
8044
|
+
constructor(e = new ye()) {
|
|
7855
8045
|
this.headerGroupOptions = e;
|
|
7856
8046
|
}
|
|
7857
8047
|
render(e, t, s, o, i, r, n) {
|
|
7858
8048
|
const l = r != null && r.data ? r.data : "";
|
|
7859
8049
|
if (r) {
|
|
7860
|
-
const { toggle: a, visibility:
|
|
7861
|
-
this.addText(e, o, t, s, l, u), a &&
|
|
8050
|
+
const { toggle: a, visibility: d, closed: h } = r, u = a ? Q.toggleHeaderGroup : "";
|
|
8051
|
+
this.addText(e, o, t, s, l, u), a && d !== "always" && this.addArrowDiv(n, e, !h, t, s, o, u);
|
|
7862
8052
|
} else
|
|
7863
8053
|
this.addText(e, o, t, s, l, "");
|
|
7864
8054
|
}
|
|
@@ -7875,7 +8065,7 @@ const Q = class Q {
|
|
|
7875
8065
|
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}`);
|
|
7876
8066
|
let a;
|
|
7877
8067
|
s ? a = this.headerGroupOptions.iconExpanded : a = this.headerGroupOptions.iconCollapsed;
|
|
7878
|
-
const
|
|
8068
|
+
const d = a.content, h = e.createText(d);
|
|
7879
8069
|
e.appendChild(l, h), a.style && this.applyStyleString(e, l, a.style);
|
|
7880
8070
|
for (const u of a.classes)
|
|
7881
8071
|
e.addClass(l, u);
|
|
@@ -7890,10 +8080,10 @@ const Q = class Q {
|
|
|
7890
8080
|
}
|
|
7891
8081
|
};
|
|
7892
8082
|
Q.toggleHeaderGroup = "toggleHeaderGroup";
|
|
7893
|
-
let
|
|
7894
|
-
class
|
|
7895
|
-
constructor(e = "header", t, s = [], o, i = new
|
|
7896
|
-
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
|
|
8083
|
+
let de = Q;
|
|
8084
|
+
class Bs {
|
|
8085
|
+
constructor(e = "header", t, s = [], o, i = new ye()) {
|
|
8086
|
+
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 de(this.headerGroupOptions), this.groupExts = E.buildGroupExts(t), this.init();
|
|
7897
8087
|
}
|
|
7898
8088
|
sort(e) {
|
|
7899
8089
|
}
|
|
@@ -7901,19 +8091,19 @@ class _s {
|
|
|
7901
8091
|
var e;
|
|
7902
8092
|
for (const t of this.groupExts)
|
|
7903
8093
|
t.log(this.getMaxRowCount());
|
|
7904
|
-
this.arr = this.buildArray(), !((e = this.columnDefs) != null && e.length) && this.areaIdent === "header" && (this.columnDefs =
|
|
8094
|
+
this.arr = this.buildArray(), !((e = this.columnDefs) != null && e.length) && this.areaIdent === "header" && (this.columnDefs = E.buildColumnDefs(this.groups));
|
|
7905
8095
|
}
|
|
7906
8096
|
getAllLeafs() {
|
|
7907
|
-
return
|
|
8097
|
+
return E.flattenGroupExts(this.groupExts).filter((t) => !t.children);
|
|
7908
8098
|
}
|
|
7909
8099
|
getMaxRowCount() {
|
|
7910
8100
|
const e = this.getAllLeafs();
|
|
7911
8101
|
return e != null && e.length ? 1 + Math.max(...e.map((t) => t.getParentCount(t))) : 0;
|
|
7912
8102
|
}
|
|
7913
8103
|
buildArray() {
|
|
7914
|
-
const e =
|
|
7915
|
-
|
|
7916
|
-
const o = Array.from(Array(t).keys()).map((r) => []), i =
|
|
8104
|
+
const e = E.flattenGroupExts(this.groupExts), t = 1 + Math.max(...e.map((r) => r.rowIndex)), s = [];
|
|
8105
|
+
E.iterateThrowColumns(s, this.groupExts);
|
|
8106
|
+
const o = Array.from(Array(t).keys()).map((r) => []), i = E.buildArrayOfArrays(e, o);
|
|
7917
8107
|
return console.table(i), i;
|
|
7918
8108
|
}
|
|
7919
8109
|
changeColumnOrder(e, t) {
|
|
@@ -7990,10 +8180,10 @@ class _s {
|
|
|
7990
8180
|
}
|
|
7991
8181
|
toggleHeaderGroup(e) {
|
|
7992
8182
|
const t = this.arr[e.rowIdx][e.colIdx];
|
|
7993
|
-
return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()),
|
|
8183
|
+
return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()), E.buildColumnDefs(this.groupExts);
|
|
7994
8184
|
}
|
|
7995
8185
|
}
|
|
7996
|
-
class
|
|
8186
|
+
class Hs {
|
|
7997
8187
|
filterPredict(e, t, s = this.objectToString.bind(this)) {
|
|
7998
8188
|
if (!e)
|
|
7999
8189
|
return !1;
|
|
@@ -8001,10 +8191,10 @@ class $s {
|
|
|
8001
8191
|
return !0;
|
|
8002
8192
|
t = t.toLowerCase();
|
|
8003
8193
|
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, ""));
|
|
8004
|
-
let
|
|
8194
|
+
let d = !n.length;
|
|
8005
8195
|
for (let h = 0; h < n.length; h++)
|
|
8006
|
-
(
|
|
8007
|
-
if (!
|
|
8196
|
+
(d || s(e).includes(n[h])) && (d = !0);
|
|
8197
|
+
if (!d)
|
|
8008
8198
|
return !1;
|
|
8009
8199
|
for (let h = 0; h < l.length; h++)
|
|
8010
8200
|
if (!s(e).includes(l[h]))
|
|
@@ -8020,18 +8210,18 @@ class $s {
|
|
|
8020
8210
|
if (!t)
|
|
8021
8211
|
return [...e];
|
|
8022
8212
|
t = t.toLowerCase();
|
|
8023
|
-
const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((
|
|
8024
|
-
return e == null ? void 0 : e.filter((
|
|
8213
|
+
const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((d) => d !== o && d !== i && d !== ""), n = r.filter((d) => !d.startsWith(o) && !d.startsWith(i)), l = r.filter((d) => d.startsWith(o)).map((d) => d.replace(/\+/g, "")), a = r.filter((d) => d.startsWith(i)).map((d) => d.replace(/-/g, ""));
|
|
8214
|
+
return e == null ? void 0 : e.filter((d) => {
|
|
8025
8215
|
let h = !n.length;
|
|
8026
8216
|
for (let u = 0; u < n.length; u++)
|
|
8027
|
-
(h || s(
|
|
8217
|
+
(h || s(d).includes(n[u])) && (h = !0);
|
|
8028
8218
|
if (!h)
|
|
8029
8219
|
return !1;
|
|
8030
8220
|
for (let u = 0; u < l.length; u++)
|
|
8031
|
-
if (!s(
|
|
8221
|
+
if (!s(d).includes(l[u]))
|
|
8032
8222
|
return !1;
|
|
8033
8223
|
for (let u = 0; u < a.length; u++)
|
|
8034
|
-
if (s(
|
|
8224
|
+
if (s(d).includes(a[u]))
|
|
8035
8225
|
return !1;
|
|
8036
8226
|
return !0;
|
|
8037
8227
|
});
|
|
@@ -8047,19 +8237,19 @@ class $s {
|
|
|
8047
8237
|
return t.join(" ").toLowerCase();
|
|
8048
8238
|
}
|
|
8049
8239
|
}
|
|
8050
|
-
class
|
|
8240
|
+
class Ws {
|
|
8051
8241
|
static bodyRenderer(e) {
|
|
8052
|
-
return new
|
|
8242
|
+
return new T(void 0, e, void 0);
|
|
8053
8243
|
}
|
|
8054
8244
|
}
|
|
8055
|
-
class
|
|
8245
|
+
class Ns {
|
|
8056
8246
|
constructor(e, t = !0, s = !1) {
|
|
8057
8247
|
this.property = e, this.skipCheckableCheck = t, this.readonly = s;
|
|
8058
8248
|
}
|
|
8059
8249
|
render(e, t, s, o, i, r, n) {
|
|
8060
8250
|
if (this.readonly || this.skipCheckableCheck || i.isRowCheckable(t)) {
|
|
8061
8251
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
8062
|
-
const l = i.getRowByIndex(t),
|
|
8252
|
+
const l = i.getRowByIndex(t), d = i.getValueByT(l, this.property) === !0 ? "checked" : "", h = this.readonly ? " readonly " : "";
|
|
8063
8253
|
if (n.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
|
|
8064
8254
|
<input
|
|
8065
8255
|
type="checkbox"
|
|
@@ -8068,21 +8258,21 @@ class Bs {
|
|
|
8068
8258
|
data-col-index="${s}"
|
|
8069
8259
|
data-property-index="${this.property}"
|
|
8070
8260
|
data-input-type="checkbox"
|
|
8071
|
-
${
|
|
8261
|
+
${d}
|
|
8072
8262
|
${h}
|
|
8073
8263
|
class="ge-input-checkbox">`, !this.readonly) {
|
|
8074
8264
|
const u = e.querySelector(".ge-input-checkbox");
|
|
8075
|
-
u && u.addEventListener("click", (
|
|
8265
|
+
u && u.addEventListener("click", (f, p) => (l[this.property] = !l[this.property], !0));
|
|
8076
8266
|
}
|
|
8077
8267
|
}
|
|
8078
8268
|
}
|
|
8079
8269
|
}
|
|
8080
|
-
class
|
|
8270
|
+
class Gs {
|
|
8081
8271
|
render(e, t, s, o, i, r, n) {
|
|
8082
8272
|
r && (e.innerText = new Date(r).toISOString());
|
|
8083
8273
|
}
|
|
8084
8274
|
}
|
|
8085
|
-
class
|
|
8275
|
+
class zs {
|
|
8086
8276
|
constructor() {
|
|
8087
8277
|
this.formatter = new Intl.DateTimeFormat("de-DE", {
|
|
8088
8278
|
year: "numeric",
|
|
@@ -8105,29 +8295,29 @@ class Ws {
|
|
|
8105
8295
|
}
|
|
8106
8296
|
}
|
|
8107
8297
|
}
|
|
8108
|
-
class
|
|
8298
|
+
class js {
|
|
8109
8299
|
render(e, t, s, o, i, r, n) {
|
|
8110
8300
|
r && (e.innerText = new Date(r).toLocaleDateString());
|
|
8111
8301
|
}
|
|
8112
8302
|
}
|
|
8113
|
-
class
|
|
8303
|
+
class Us {
|
|
8114
8304
|
render(e, t, s, o, i, r, n) {
|
|
8115
8305
|
r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
|
|
8116
8306
|
}
|
|
8117
8307
|
}
|
|
8118
|
-
class
|
|
8308
|
+
class Ys {
|
|
8119
8309
|
constructor(e = 100, t = !1) {
|
|
8120
8310
|
this.maxValue = e, this.labelVisible = t;
|
|
8121
8311
|
}
|
|
8122
8312
|
render(e, t, s, o, i, r, n) {
|
|
8123
8313
|
if (n.addClass(e, "ge-progressbar-div"), !isNaN(r)) {
|
|
8124
|
-
const a = Number(r) * 100 / this.maxValue,
|
|
8314
|
+
const a = Number(r) * 100 / this.maxValue, d = this.labelVisible ? Math.round(a) + "%" : "";
|
|
8125
8315
|
e.innerHTML = `
|
|
8126
8316
|
<div class="ge-table-label-div"
|
|
8127
8317
|
data-row-index="${t}"
|
|
8128
8318
|
data-col-index="${s}"
|
|
8129
8319
|
data-area="${o}"
|
|
8130
|
-
title="${
|
|
8320
|
+
title="${d}"
|
|
8131
8321
|
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
8132
8322
|
<div class="ge-table-progress-container"
|
|
8133
8323
|
style="width:100%;height:50%;padding:0;margin-top:6px;"
|
|
@@ -8145,17 +8335,17 @@ class zs {
|
|
|
8145
8335
|
}
|
|
8146
8336
|
}
|
|
8147
8337
|
}
|
|
8148
|
-
class
|
|
8338
|
+
class Ks {
|
|
8149
8339
|
render(e, t, s, o, i, r, n) {
|
|
8150
8340
|
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 = "";
|
|
8151
8341
|
}
|
|
8152
8342
|
}
|
|
8153
|
-
class
|
|
8343
|
+
class Xs {
|
|
8154
8344
|
render(e, t, s, o, i, r, n) {
|
|
8155
8345
|
r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
|
|
8156
8346
|
}
|
|
8157
8347
|
}
|
|
8158
|
-
class
|
|
8348
|
+
class Js {
|
|
8159
8349
|
constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
8160
8350
|
this.min = e, this.max = t;
|
|
8161
8351
|
}
|
|
@@ -8166,7 +8356,7 @@ class Ys {
|
|
|
8166
8356
|
</div>`, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && n.addClass(e, "ge-cell-error"));
|
|
8167
8357
|
}
|
|
8168
8358
|
}
|
|
8169
|
-
class
|
|
8359
|
+
class qs {
|
|
8170
8360
|
constructor(e) {
|
|
8171
8361
|
this.property = e;
|
|
8172
8362
|
}
|
|
@@ -8174,10 +8364,10 @@ class Ks {
|
|
|
8174
8364
|
n.addClass(e, "ge-star-rating-div");
|
|
8175
8365
|
const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
|
|
8176
8366
|
if (!isNaN(a)) {
|
|
8177
|
-
const
|
|
8367
|
+
const d = [];
|
|
8178
8368
|
for (let u = 0; u < a; u++)
|
|
8179
|
-
|
|
8180
|
-
const h =
|
|
8369
|
+
d.push("★");
|
|
8370
|
+
const h = d.join(" ");
|
|
8181
8371
|
e.innerHTML = `
|
|
8182
8372
|
<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%;">
|
|
8183
8373
|
<div class="ge-table-label" data-row-index="${t}" data-col-index="${s}" data-area="${o}">${h}</div>
|
|
@@ -8185,20 +8375,20 @@ class Ks {
|
|
|
8185
8375
|
}
|
|
8186
8376
|
}
|
|
8187
8377
|
}
|
|
8188
|
-
class
|
|
8378
|
+
class Zs {
|
|
8189
8379
|
render(e, t, s, o, i, r, n) {
|
|
8190
8380
|
if (r != null && r.length) {
|
|
8191
8381
|
const l = n.createElement("div");
|
|
8192
8382
|
n.addClass(l, "ge-table-label-div"), n.appendChild(e, l);
|
|
8193
8383
|
const a = n.createElement("div");
|
|
8194
8384
|
n.addClass(a, "ge-table-label"), n.appendChild(l, a);
|
|
8195
|
-
const
|
|
8196
|
-
n.appendChild(a,
|
|
8385
|
+
const d = n.createText(r.join(", "));
|
|
8386
|
+
n.appendChild(a, d);
|
|
8197
8387
|
} else
|
|
8198
8388
|
e.innerText = "";
|
|
8199
8389
|
}
|
|
8200
8390
|
}
|
|
8201
|
-
class
|
|
8391
|
+
class Qs {
|
|
8202
8392
|
constructor(e, t = 100, s = !1) {
|
|
8203
8393
|
this.property = e, this.maxValue = t, this.labelVisible = s;
|
|
8204
8394
|
}
|
|
@@ -8206,7 +8396,7 @@ class Js {
|
|
|
8206
8396
|
n.addClass(e, "ge-star-rating-div");
|
|
8207
8397
|
const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
|
|
8208
8398
|
if (!isNaN(a)) {
|
|
8209
|
-
const
|
|
8399
|
+
const d = a * 100 / this.maxValue, h = this.labelVisible ? Math.round(d) + "%" : "";
|
|
8210
8400
|
e.innerHTML = `
|
|
8211
8401
|
<div class="ge-table-label-div"
|
|
8212
8402
|
data-row-index="${t}"
|
|
@@ -8220,7 +8410,7 @@ class Js {
|
|
|
8220
8410
|
data-col-index="${s}"
|
|
8221
8411
|
data-area="${o}">
|
|
8222
8412
|
<div class="ge-table-progress-bar"
|
|
8223
|
-
style="width:${
|
|
8413
|
+
style="width:${d}%;height:100%;padding:0;margin:0;"
|
|
8224
8414
|
data-row-index="${t}"
|
|
8225
8415
|
data-col-index="${s}"
|
|
8226
8416
|
data-area="${o}">
|
|
@@ -8230,7 +8420,7 @@ class Js {
|
|
|
8230
8420
|
}
|
|
8231
8421
|
}
|
|
8232
8422
|
}
|
|
8233
|
-
class
|
|
8423
|
+
class eo {
|
|
8234
8424
|
render(e, t, s, o, i, r, n) {
|
|
8235
8425
|
if (r) {
|
|
8236
8426
|
e.innerHTML = `
|
|
@@ -8260,16 +8450,16 @@ class $ {
|
|
|
8260
8450
|
this.action = e, this.label = t, this.icon = s, this.elementClass = o, this.elementType = i, this.enabled = r;
|
|
8261
8451
|
}
|
|
8262
8452
|
}
|
|
8263
|
-
class
|
|
8453
|
+
class Ot {
|
|
8264
8454
|
constructor(e, t) {
|
|
8265
8455
|
this.actionEventListener = e, this.crudActions = t;
|
|
8266
8456
|
}
|
|
8267
8457
|
render(e, t, s, o, i, r, n) {
|
|
8268
8458
|
n.addClass(e, "ge-table-row-action-div");
|
|
8269
|
-
const l = r,
|
|
8459
|
+
const l = r, d = this.getCrudActions(r).map(
|
|
8270
8460
|
(h) => h.elementType === "button" ? this.buildButtonHtml(h, o, t, s, l) : this.buildLinkHtml(h, o, t, s, l)
|
|
8271
8461
|
);
|
|
8272
|
-
e.innerHTML =
|
|
8462
|
+
e.innerHTML = d.join(""), this.addClickEventListeners(e, o, i);
|
|
8273
8463
|
}
|
|
8274
8464
|
buildButtonHtml(e, t, s, o, i) {
|
|
8275
8465
|
const r = e.enabled ? 'data-listen="click"' : "disabled";
|
|
@@ -8316,8 +8506,8 @@ class Lt {
|
|
|
8316
8506
|
createActionEvent(e, t) {
|
|
8317
8507
|
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";
|
|
8318
8508
|
if (s && o && i) {
|
|
8319
|
-
const l = ee(s), a = Number(o),
|
|
8320
|
-
return new We(r, l, t, a,
|
|
8509
|
+
const l = ee(s), a = Number(o), d = Number(i);
|
|
8510
|
+
return new We(r, l, t, a, d, n);
|
|
8321
8511
|
}
|
|
8322
8512
|
return null;
|
|
8323
8513
|
}
|
|
@@ -8325,8 +8515,8 @@ class Lt {
|
|
|
8325
8515
|
return Array.isArray(e) && e.every((t) => t instanceof $) ? e : this.crudActions;
|
|
8326
8516
|
}
|
|
8327
8517
|
}
|
|
8328
|
-
const
|
|
8329
|
-
return
|
|
8518
|
+
const to = function(c, e, t) {
|
|
8519
|
+
return c ? Number(c) : "";
|
|
8330
8520
|
};
|
|
8331
8521
|
class Ne {
|
|
8332
8522
|
constructor(e) {
|
|
@@ -8334,7 +8524,7 @@ class Ne {
|
|
|
8334
8524
|
}
|
|
8335
8525
|
static create(e) {
|
|
8336
8526
|
return new Ne(
|
|
8337
|
-
e.map((t) => new
|
|
8527
|
+
e.map((t) => new Pt(t, t))
|
|
8338
8528
|
);
|
|
8339
8529
|
}
|
|
8340
8530
|
render(e, t, s, o, i, r, n) {
|
|
@@ -8346,7 +8536,7 @@ class Ne {
|
|
|
8346
8536
|
const u = h.value === l ? " selected " : "";
|
|
8347
8537
|
a.push(`<option value="${h.value}" ${u}>${h.label}</option>`);
|
|
8348
8538
|
}
|
|
8349
|
-
const
|
|
8539
|
+
const d = a.join("");
|
|
8350
8540
|
e.innerHTML = `
|
|
8351
8541
|
<select
|
|
8352
8542
|
autofocus
|
|
@@ -8356,11 +8546,11 @@ class Ne {
|
|
|
8356
8546
|
data-col-index="${s}"
|
|
8357
8547
|
data-input-type="text"
|
|
8358
8548
|
style="width:100%;height:100%;border:0;padding:0 0 0 8px;"
|
|
8359
|
-
class="ge-table-cell-editor-select">${
|
|
8549
|
+
class="ge-table-cell-editor-select">${d}</select>`;
|
|
8360
8550
|
}
|
|
8361
8551
|
}
|
|
8362
8552
|
}
|
|
8363
|
-
class
|
|
8553
|
+
class so extends be {
|
|
8364
8554
|
constructor(e) {
|
|
8365
8555
|
super("row", "multi"), this.model = e;
|
|
8366
8556
|
}
|
|
@@ -8443,12 +8633,12 @@ class Qs extends ge {
|
|
|
8443
8633
|
this.isSelected(e, 0) ? this.unselectRow(e) : this.selectRow(e);
|
|
8444
8634
|
}
|
|
8445
8635
|
}
|
|
8446
|
-
class
|
|
8636
|
+
class oo {
|
|
8447
8637
|
constructor(e, t, s) {
|
|
8448
8638
|
this.r = e, this.g = t, this.b = s;
|
|
8449
8639
|
}
|
|
8450
8640
|
}
|
|
8451
|
-
class
|
|
8641
|
+
class De {
|
|
8452
8642
|
constructor(e, t, s, o) {
|
|
8453
8643
|
this.minValue = e, this.minColor = t, this.maxValue = s, this.maxColor = o;
|
|
8454
8644
|
}
|
|
@@ -8462,20 +8652,20 @@ class K {
|
|
|
8462
8652
|
return `rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(a)})`;
|
|
8463
8653
|
}
|
|
8464
8654
|
static getThreeColorGradientRGB(e, t) {
|
|
8465
|
-
return e < t.middleValue ? K.getTwoColorGradientRGB(e, new
|
|
8655
|
+
return e < t.middleValue ? K.getTwoColorGradientRGB(e, new De(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? K.getTwoColorGradientRGB(e, new De(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
|
|
8466
8656
|
}
|
|
8467
8657
|
}
|
|
8468
|
-
class
|
|
8658
|
+
class io {
|
|
8469
8659
|
constructor(e, t, s, o, i, r) {
|
|
8470
8660
|
this.minValue = e, this.minColor = t, this.middleValue = s, this.middleColor = o, this.maxValue = i, this.maxColor = r;
|
|
8471
8661
|
}
|
|
8472
8662
|
}
|
|
8473
|
-
class
|
|
8663
|
+
class $t {
|
|
8474
8664
|
constructor(e = !0, t = !0, s = (r, n) => r * 10 + 10, o = 50, i = 450) {
|
|
8475
8665
|
this.autoCalc = e, this.takeHeaderLabelsIntoAccount = t, this.charCountToWidth = s, this.minWidth = o, this.maxWidth = i;
|
|
8476
8666
|
}
|
|
8477
8667
|
}
|
|
8478
|
-
class
|
|
8668
|
+
class Vt {
|
|
8479
8669
|
constructor(e) {
|
|
8480
8670
|
this.object = e;
|
|
8481
8671
|
}
|
|
@@ -8607,7 +8797,7 @@ class ie {
|
|
|
8607
8797
|
return e.replace(/\./g, " ");
|
|
8608
8798
|
}
|
|
8609
8799
|
}
|
|
8610
|
-
class
|
|
8800
|
+
class Bt {
|
|
8611
8801
|
constructor() {
|
|
8612
8802
|
this.urls = {
|
|
8613
8803
|
list: {
|
|
@@ -8623,7 +8813,7 @@ class $t {
|
|
|
8623
8813
|
], this.tableActions = [
|
|
8624
8814
|
new $("CREATE", "Create", "", "", "button"),
|
|
8625
8815
|
new $("DELETE_SELECTED", "Delete Selected", "", "", "button")
|
|
8626
|
-
], this.autoAddActionColumn = !0, this.columnWidths = new
|
|
8816
|
+
], this.autoAddActionColumn = !0, this.columnWidths = new $t(), 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) => {
|
|
8627
8817
|
const t = e.getHeadersInit ? e.getHeadersInit() : {};
|
|
8628
8818
|
let s = e.urls.list.url, o = e.urls.list.method ?? "GET";
|
|
8629
8819
|
return fetch(s, {
|
|
@@ -8674,9 +8864,9 @@ class $t {
|
|
|
8674
8864
|
};
|
|
8675
8865
|
}
|
|
8676
8866
|
}
|
|
8677
|
-
class
|
|
8867
|
+
class ro {
|
|
8678
8868
|
constructor() {
|
|
8679
|
-
this.crudOptions = new
|
|
8869
|
+
this.crudOptions = new Bt(), this.listenActionEvent = (e) => {
|
|
8680
8870
|
};
|
|
8681
8871
|
}
|
|
8682
8872
|
createTableModel(e, t, s = (i) => {
|
|
@@ -8685,41 +8875,41 @@ class so {
|
|
|
8685
8875
|
this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
|
|
8686
8876
|
var r, n, l, a;
|
|
8687
8877
|
if (t.rows = i, i != null && i.length) {
|
|
8688
|
-
const
|
|
8878
|
+
const d = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((w) => w.property) : this.extractProperties(i[0]), h = new be("row", "multi"), u = () => h;
|
|
8689
8879
|
this.tableOptions = {
|
|
8690
8880
|
...new J(),
|
|
8691
8881
|
...t.tableOptions,
|
|
8692
8882
|
hoverColumnVisible: !1,
|
|
8693
8883
|
getSelectionModel: u
|
|
8694
8884
|
};
|
|
8695
|
-
const
|
|
8885
|
+
const f = this.calcAutoColumnWidths(i, d), p = (n = t.columnDefs) != null && n.length ? t.columnDefs : d.map((w, S) => new H(w, w.toUpperCase(), new y(f[S], "px")));
|
|
8696
8886
|
if ((l = e == null ? void 0 : e.columnWidths) != null && l.autoCalc)
|
|
8697
8887
|
for (let w = 0; w < p.length; w++) {
|
|
8698
8888
|
const S = p[w];
|
|
8699
|
-
S.width = new y(
|
|
8889
|
+
S.width = new y(f[w], "px");
|
|
8700
8890
|
}
|
|
8701
8891
|
if (e.autoAddActionColumn) {
|
|
8702
8892
|
let w = new H(
|
|
8703
8893
|
"id",
|
|
8704
8894
|
"Actions",
|
|
8705
|
-
|
|
8706
|
-
new
|
|
8895
|
+
Mt,
|
|
8896
|
+
new T(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
|
|
8707
8897
|
);
|
|
8708
|
-
w.rendererMap = new
|
|
8898
|
+
w.rendererMap = new T(
|
|
8709
8899
|
void 0,
|
|
8710
|
-
new
|
|
8900
|
+
new Ot(this, e.singleRowActions),
|
|
8711
8901
|
void 0
|
|
8712
8902
|
), p.push(w);
|
|
8713
8903
|
}
|
|
8714
|
-
const m = 0,
|
|
8904
|
+
const m = 0, g = e.calcFixedRightColumnCount(p.length);
|
|
8715
8905
|
this.tableModel = V.buildByTypedRowsParam({
|
|
8716
8906
|
rows: i,
|
|
8717
8907
|
columnDefs: p,
|
|
8718
8908
|
tableOptions: this.tableOptions,
|
|
8719
8909
|
fixedLeftColumnCount: m,
|
|
8720
|
-
fixedRightColumnCount:
|
|
8910
|
+
fixedRightColumnCount: g
|
|
8721
8911
|
}), this.tableModel.getSelectionModel = u, this.bodyModel = (a = this.tableModel) == null ? void 0 : a.getBodyModel();
|
|
8722
|
-
const b = new
|
|
8912
|
+
const b = new Dt(this.tableModel, this.tableOptions);
|
|
8723
8913
|
s(b);
|
|
8724
8914
|
}
|
|
8725
8915
|
});
|
|
@@ -8734,7 +8924,7 @@ class so {
|
|
|
8734
8924
|
var t, s, o, i;
|
|
8735
8925
|
if (this.listenActionEvent && this.listenActionEvent(e), e.action === "VIEW") {
|
|
8736
8926
|
let r = e.id;
|
|
8737
|
-
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new
|
|
8927
|
+
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new Vt(n).openDialog(), n));
|
|
8738
8928
|
} else if (e.action === "EDIT") {
|
|
8739
8929
|
let r = e.id;
|
|
8740
8930
|
const n = this.crudOptions.getIdKey() ?? "id";
|
|
@@ -8753,8 +8943,8 @@ class so {
|
|
|
8753
8943
|
n,
|
|
8754
8944
|
a,
|
|
8755
8945
|
"Clone Item"
|
|
8756
|
-
).openDialog((
|
|
8757
|
-
console.info(
|
|
8946
|
+
).openDialog((d) => {
|
|
8947
|
+
console.info(d), this.crudOptions.createItem(this.crudOptions, d);
|
|
8758
8948
|
}), a;
|
|
8759
8949
|
});
|
|
8760
8950
|
} else if (e.action === "CREATE") {
|
|
@@ -8769,8 +8959,8 @@ class so {
|
|
|
8769
8959
|
} else if (e.action === "DELETE") {
|
|
8770
8960
|
let r = e.id;
|
|
8771
8961
|
(i = this.crudOptions) == null || i.deleteItem(this.crudOptions, r).then((n) => {
|
|
8772
|
-
var l, a,
|
|
8773
|
-
return (l = this.bodyModel) == null || l.filterRowsByPredict((
|
|
8962
|
+
var l, a, d, h, u;
|
|
8963
|
+
return (l = this.bodyModel) == null || l.filterRowsByPredict((f) => f.id != r), (d = (a = this.tableModel) == null ? void 0 : a.getTableScope()) == null || d.clearSelection(!0), (u = (h = this.tableModel) == null ? void 0 : h.getTableScope()) == null || u.repaintHard(), n;
|
|
8774
8964
|
});
|
|
8775
8965
|
}
|
|
8776
8966
|
}
|
|
@@ -8780,21 +8970,21 @@ class so {
|
|
|
8780
8970
|
if (!((a = this.crudOptions.columnWidths) != null && a.autoCalc))
|
|
8781
8971
|
return new Array(o).fill(200);
|
|
8782
8972
|
const i = e.length ?? 0, r = new Array(o).fill(0);
|
|
8783
|
-
for (let
|
|
8973
|
+
for (let d = 0; d < i; d++)
|
|
8784
8974
|
for (let h = 0; h < o; h++) {
|
|
8785
|
-
const u = t[h],
|
|
8975
|
+
const u = t[h], f = this.getValueByT(e[d], u), p = (f == null ? void 0 : f.toString().length) || 0;
|
|
8786
8976
|
p > r[h] && (r[h] = p);
|
|
8787
8977
|
}
|
|
8788
8978
|
if (this.crudOptions.columnWidths.takeHeaderLabelsIntoAccount)
|
|
8789
|
-
for (let
|
|
8790
|
-
const h = s[
|
|
8791
|
-
h > r[
|
|
8979
|
+
for (let d = 0; d < o; d++) {
|
|
8980
|
+
const h = s[d].length || 0;
|
|
8981
|
+
h > r[d] && (r[d] = h);
|
|
8792
8982
|
}
|
|
8793
8983
|
const n = this.crudOptions.columnWidths.minWidth, l = this.crudOptions.columnWidths.maxWidth;
|
|
8794
|
-
return r.map((
|
|
8984
|
+
return r.map((d, h) => Math.min(
|
|
8795
8985
|
l,
|
|
8796
8986
|
Math.max(
|
|
8797
|
-
this.crudOptions.columnWidths.charCountToWidth(
|
|
8987
|
+
this.crudOptions.columnWidths.charCountToWidth(d, h),
|
|
8798
8988
|
n
|
|
8799
8989
|
)
|
|
8800
8990
|
));
|
|
@@ -8815,152 +9005,155 @@ class so {
|
|
|
8815
9005
|
return s;
|
|
8816
9006
|
}
|
|
8817
9007
|
}
|
|
8818
|
-
class
|
|
9008
|
+
class no {
|
|
8819
9009
|
constructor(e, t) {
|
|
8820
9010
|
this.method = e, this.url = t;
|
|
8821
9011
|
}
|
|
8822
9012
|
}
|
|
8823
9013
|
export {
|
|
8824
|
-
|
|
9014
|
+
pe as AbstractAreaModel,
|
|
8825
9015
|
We as ActionEvent,
|
|
8826
|
-
|
|
9016
|
+
Ot as ActionsCellRenderer,
|
|
8827
9017
|
Oe as AnyPropertyType,
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
9018
|
+
_s as AreaMapFactory,
|
|
9019
|
+
Vs as AreaModel,
|
|
9020
|
+
P as AreaModelArrayOfArrays,
|
|
9021
|
+
Bs as AreaModelCellGroups,
|
|
9022
|
+
k as AreaModelHidden,
|
|
9023
|
+
_ as AreaModelObjectArray,
|
|
8834
9024
|
Te as AreaModelObjectArrayWithColumndefs,
|
|
8835
|
-
|
|
8836
|
-
|
|
9025
|
+
Ie as AreaModelTree,
|
|
9026
|
+
T as AreaObjectMap,
|
|
8837
9027
|
B as ArrayPropertyType,
|
|
8838
|
-
|
|
8839
|
-
|
|
9028
|
+
$s as AutoRestoreOptions,
|
|
9029
|
+
Wt as AvoidDoubleExecution,
|
|
8840
9030
|
Ye as BooleanPropertyType,
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
9031
|
+
_t as CellGroup,
|
|
9032
|
+
Lt as CellGroupExt,
|
|
9033
|
+
de as CellGroupExtCellRenderer,
|
|
8844
9034
|
A as CellRange,
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
9035
|
+
E as CellgroupFactory,
|
|
9036
|
+
Ns as CheckboxBooleanPropertyCellRenderer,
|
|
9037
|
+
ke as CheckboxCellRenderer,
|
|
9038
|
+
Ps as CheckboxColumnDef,
|
|
9039
|
+
Et as CheckboxModel,
|
|
9040
|
+
As as ChunkData,
|
|
8851
9041
|
at as ColAndRowspanModel,
|
|
8852
9042
|
it as CollapsedExpandedData,
|
|
8853
|
-
|
|
9043
|
+
oo as ColorRgb,
|
|
8854
9044
|
H as ColumnDef,
|
|
8855
|
-
|
|
8856
|
-
|
|
9045
|
+
Nt as ColumnDefGenerator,
|
|
9046
|
+
$t as ColumnWidths,
|
|
8857
9047
|
Qe as ConvenienceDomService,
|
|
8858
9048
|
q as CopyService,
|
|
9049
|
+
Tt as CoverGridBodyModel,
|
|
9050
|
+
vs as CoverGridFactory,
|
|
9051
|
+
kt as CoverGridTableModel,
|
|
8859
9052
|
$ as CrudAction,
|
|
8860
9053
|
ie as CrudObjectEdit,
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
9054
|
+
Vt as CrudObjectView,
|
|
9055
|
+
Bt as CrudOptions,
|
|
9056
|
+
ro as CrudTableModelFactory,
|
|
9057
|
+
ve as CssVars,
|
|
9058
|
+
zs as DateToIntlDDMMYYYYCellRenderer,
|
|
9059
|
+
Gs as DateToIsoCellRenderer,
|
|
9060
|
+
js as DateToLocaleDateCellRenderer,
|
|
9061
|
+
Xs as DateToTecCellRenderer,
|
|
8869
9062
|
z as DefaultRowHeights,
|
|
8870
9063
|
lt as EleScope,
|
|
8871
9064
|
ne as EventAdapter,
|
|
8872
|
-
|
|
9065
|
+
jt as EventCheckboxChangedHandler,
|
|
8873
9066
|
Rt as ExcelService,
|
|
8874
|
-
|
|
9067
|
+
Ae as FalseFn,
|
|
8875
9068
|
xt as FocusModel,
|
|
8876
9069
|
ut as GeCellIndices,
|
|
8877
9070
|
K as GeCssColorUtil,
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
9071
|
+
Hs as GeFilterService,
|
|
9072
|
+
Ls as GeKeyEvent,
|
|
9073
|
+
me as GeModelChangeEvent,
|
|
9074
|
+
ue as GeMouseEvent,
|
|
9075
|
+
L as GeoData,
|
|
9076
|
+
O as Icon,
|
|
9077
|
+
Ms as IndexAndPx,
|
|
8885
9078
|
wt as InputCellRenderer,
|
|
8886
9079
|
ht as InputHandler,
|
|
8887
|
-
|
|
9080
|
+
xe as JsonService,
|
|
8888
9081
|
W as LicenseManager,
|
|
8889
|
-
|
|
9082
|
+
Us as MaleFemaleToIconCellRenderer,
|
|
8890
9083
|
tt as MouseHandler,
|
|
8891
9084
|
et as MouseTargetData,
|
|
8892
|
-
|
|
9085
|
+
so as MultiRowsSelectionModel,
|
|
8893
9086
|
ze as NullPropertyType,
|
|
8894
|
-
|
|
8895
|
-
|
|
9087
|
+
Ys as NumberCellProgressBarCellRenderer,
|
|
9088
|
+
Js as NumberCellRenderer,
|
|
8896
9089
|
Ue as NumberPropertyType,
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
9090
|
+
F as ObjectPropertyType,
|
|
9091
|
+
ft as OsxShortcutActionIdMapping,
|
|
9092
|
+
Fe as PROPERTY_TYPE_KEY_ANY,
|
|
8900
9093
|
Le as PROPERTY_TYPE_KEY_ARRAY,
|
|
8901
|
-
|
|
8902
|
-
|
|
9094
|
+
he as PROPERTY_TYPE_KEY_BOOLEAN,
|
|
9095
|
+
Pe as PROPERTY_TYPE_KEY_NULL,
|
|
8903
9096
|
ce as PROPERTY_TYPE_KEY_NUMBER,
|
|
8904
9097
|
U as PROPERTY_TYPE_KEY_OBJECT,
|
|
8905
|
-
|
|
9098
|
+
_e as PROPERTY_TYPE_KEY_STRING,
|
|
8906
9099
|
j as PROPERTY_TYPE_KEY_UNDEFINED,
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
9100
|
+
ae as Padding,
|
|
9101
|
+
eo as PositiveAndNegativeNumberRenderer,
|
|
9102
|
+
Qs as ProgressBarCellRenderer,
|
|
9103
|
+
$e as PropertyItem,
|
|
9104
|
+
Gt as PropertyTypeService,
|
|
9105
|
+
dt as RenderScope,
|
|
9106
|
+
Ws as Renderer,
|
|
9107
|
+
Ft as RequestChunk,
|
|
8915
9108
|
vt as ResizeHandler,
|
|
8916
|
-
|
|
9109
|
+
zt as SchemeGenerator,
|
|
8917
9110
|
Ne as SelectCellRenderer,
|
|
8918
|
-
|
|
9111
|
+
be as SelectionModel,
|
|
8919
9112
|
pt as SelectionService,
|
|
8920
9113
|
bt as ShortcutService,
|
|
8921
|
-
|
|
9114
|
+
Zs as SimpleArrayCellRenderer,
|
|
8922
9115
|
yt as SimpleDomService,
|
|
8923
9116
|
y as Size,
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
9117
|
+
ct as SortItem,
|
|
9118
|
+
Be as SortedOptions,
|
|
9119
|
+
qs as StarRatingCellRenderer,
|
|
8927
9120
|
rt as StoreStateCollapsedExpandService,
|
|
8928
9121
|
ot as StoreStateScrollPosService,
|
|
8929
9122
|
nt as StoreStateSortingService,
|
|
8930
9123
|
je as StringPropertyType,
|
|
8931
9124
|
st as TableApi,
|
|
8932
|
-
|
|
9125
|
+
Os as TableCellUpdateEvent,
|
|
8933
9126
|
V as TableFactory,
|
|
8934
9127
|
oe as TableModel,
|
|
8935
|
-
|
|
9128
|
+
Dt as TableModelAndOptions,
|
|
8936
9129
|
J as TableOptions,
|
|
8937
9130
|
He as TableScope,
|
|
8938
|
-
|
|
9131
|
+
io as ThreeColorGradientArg,
|
|
8939
9132
|
Ee as TreeCheckboxModel,
|
|
8940
9133
|
le as TreeFactory,
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
9134
|
+
Ve as TreeOptions,
|
|
9135
|
+
Re as TreeRow,
|
|
9136
|
+
It as TreeRowService,
|
|
9137
|
+
Ks as TrueFalseCellRenderer,
|
|
8945
9138
|
At as TrueFn,
|
|
8946
|
-
|
|
9139
|
+
De as TwoColorGradientArg,
|
|
8947
9140
|
X as UNIMPORTANT_TYPES,
|
|
8948
9141
|
se as UndefinedPropertyType,
|
|
8949
|
-
|
|
9142
|
+
no as UrlInfo,
|
|
8950
9143
|
Ke as ValueInfo,
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
9144
|
+
Pt as ValueLabel,
|
|
9145
|
+
gt as WindowsShortcutActionIdMapping,
|
|
9146
|
+
Rs as actionIds,
|
|
9147
|
+
Ds as allCenter,
|
|
9148
|
+
ks as allLeft,
|
|
9149
|
+
Fs as allRight,
|
|
9150
|
+
Es as bodyCenter,
|
|
9151
|
+
Is as bodyLeft,
|
|
9152
|
+
Ts as bodyRight,
|
|
9153
|
+
Ce as createHarmonizedShortcutByKeyboardEvent,
|
|
8961
9154
|
Ge as debounce,
|
|
8962
|
-
|
|
8963
|
-
|
|
9155
|
+
to as editInputPipeForNumber,
|
|
9156
|
+
Se as entitySuffix,
|
|
8964
9157
|
qe as firstLetterUppercase,
|
|
8965
9158
|
ee as getAreaIdentByString,
|
|
8966
9159
|
Xe as getEntityName,
|
|
@@ -8968,39 +9161,39 @@ export {
|
|
|
8968
9161
|
re as isAreaModelTree,
|
|
8969
9162
|
Ze as isCheckboxColumnDef,
|
|
8970
9163
|
G as isTreeRow,
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
8986
|
-
|
|
8987
|
-
|
|
8988
|
-
|
|
8989
|
-
|
|
8990
|
-
|
|
8991
|
-
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
|
|
8995
|
-
|
|
8996
|
-
|
|
8997
|
-
|
|
8998
|
-
|
|
8999
|
-
|
|
9000
|
-
|
|
9001
|
-
|
|
9002
|
-
|
|
9003
|
-
|
|
9004
|
-
|
|
9164
|
+
Cs as px0,
|
|
9165
|
+
Ss as px10,
|
|
9166
|
+
us as px100,
|
|
9167
|
+
hs as px110,
|
|
9168
|
+
cs as px120,
|
|
9169
|
+
ds as px130,
|
|
9170
|
+
as as px140,
|
|
9171
|
+
ls as px150,
|
|
9172
|
+
ns as px160,
|
|
9173
|
+
rs as px170,
|
|
9174
|
+
is as px180,
|
|
9175
|
+
os as px190,
|
|
9176
|
+
xs as px20,
|
|
9177
|
+
Me as px200,
|
|
9178
|
+
ss as px210,
|
|
9179
|
+
ts as px220,
|
|
9180
|
+
es as px230,
|
|
9181
|
+
Qt as px240,
|
|
9182
|
+
Zt as px250,
|
|
9183
|
+
qt as px260,
|
|
9184
|
+
Jt as px270,
|
|
9185
|
+
Xt as px280,
|
|
9186
|
+
Kt as px290,
|
|
9187
|
+
ws as px30,
|
|
9188
|
+
Mt as px300,
|
|
9189
|
+
ys as px40,
|
|
9190
|
+
Yt as px400,
|
|
9191
|
+
bs as px50,
|
|
9192
|
+
Ut as px500,
|
|
9193
|
+
ms as px60,
|
|
9194
|
+
fs as px70,
|
|
9195
|
+
gs as px80,
|
|
9196
|
+
ps as px90,
|
|
9197
|
+
Ht as throttle,
|
|
9005
9198
|
Je as trimArraySuffixes
|
|
9006
9199
|
};
|