@guiexpert/table 1.1.80 → 1.1.82
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 +758 -560
- package/lib/table/data/tablemodel/areamodel/cover-grid-body-model.d.ts +53 -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,202 @@ 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
|
+
setParentWidth(e) {
|
|
6923
|
+
this.width = e;
|
|
6924
|
+
}
|
|
6925
|
+
getRowCount() {
|
|
6926
|
+
var e;
|
|
6927
|
+
return (e = this.filteredItems) != null && e.length ? Math.floor(this.filteredItems.length / this.getColumnCount()) + 1 : 0;
|
|
6928
|
+
}
|
|
6929
|
+
getColumnCount() {
|
|
6930
|
+
return this.width ? Math.floor(this.width / this.coverWidth) : 1;
|
|
6931
|
+
}
|
|
6932
|
+
getValueAt(e, t) {
|
|
6933
|
+
var s;
|
|
6934
|
+
return (s = this.filteredItems) == null ? void 0 : s[e * this.getColumnCount() + t];
|
|
6935
|
+
}
|
|
6936
|
+
getTextValueAt(e, t) {
|
|
6937
|
+
return "";
|
|
6938
|
+
}
|
|
6939
|
+
getTooltipAt(e, t) {
|
|
6940
|
+
return "";
|
|
6941
|
+
}
|
|
6942
|
+
getRowHeight(e) {
|
|
6943
|
+
return e === 0 && this.firstRowPaddingTop > 0 ? this.firstRowPaddingTop + this.coverHeight : this.coverHeight;
|
|
6944
|
+
}
|
|
6945
|
+
getCellRenderer(e, t) {
|
|
6946
|
+
return this.cellRenderer;
|
|
6947
|
+
}
|
|
6948
|
+
getColspanAt(e, t) {
|
|
6949
|
+
return 0;
|
|
6950
|
+
}
|
|
6951
|
+
getCustomClassesAt(e, t) {
|
|
6952
|
+
return [];
|
|
6953
|
+
}
|
|
6954
|
+
getCustomStyleAt(e, t) {
|
|
6955
|
+
}
|
|
6956
|
+
getRowspanAt(e, t) {
|
|
6957
|
+
return 0;
|
|
6958
|
+
}
|
|
6959
|
+
getRowByIndex(e) {
|
|
6960
|
+
}
|
|
6961
|
+
isRowCheckable(e) {
|
|
6962
|
+
return !0;
|
|
6963
|
+
}
|
|
6964
|
+
isRowChecked(e) {
|
|
6965
|
+
}
|
|
6966
|
+
setRowChecked(e, t) {
|
|
6967
|
+
}
|
|
6968
|
+
getMaxColspan() {
|
|
6969
|
+
return 31;
|
|
6970
|
+
}
|
|
6971
|
+
getMaxRowspan() {
|
|
6972
|
+
return 31;
|
|
6973
|
+
}
|
|
6974
|
+
getYPosByRowIndex(e) {
|
|
6975
|
+
const t = this.firstRowPaddingTop > 0 ? this.firstRowPaddingTop : 0;
|
|
6976
|
+
return this.coverHeight * e + t;
|
|
6977
|
+
}
|
|
6978
|
+
init() {
|
|
6979
|
+
}
|
|
6980
|
+
externalFilterChanged(e) {
|
|
6981
|
+
this.filteredItems = this.items.filter(e);
|
|
6982
|
+
}
|
|
6983
|
+
isFilterable() {
|
|
6984
|
+
return !0;
|
|
6985
|
+
}
|
|
6986
|
+
doSort(e) {
|
|
6987
|
+
if (!this.filteredItems) return !1;
|
|
6988
|
+
for (const t of e) {
|
|
6989
|
+
const { sortState: s } = t, o = s === "asc" ? 1 : s === "desc" ? -1 : 0;
|
|
6990
|
+
this.filteredItems = this.filteredItems.sort((i, r) => this.sorterService.genericSortComparator(i, r, o));
|
|
6991
|
+
}
|
|
6992
|
+
return !0;
|
|
6993
|
+
}
|
|
6994
|
+
sort(e) {
|
|
6995
|
+
this.filteredItems = this.filteredItems.sort(e);
|
|
6996
|
+
}
|
|
6997
|
+
isEditable(e, t) {
|
|
6998
|
+
return !1;
|
|
6999
|
+
}
|
|
7000
|
+
setValue(e, t, s) {
|
|
7001
|
+
return !0;
|
|
7002
|
+
}
|
|
7003
|
+
isSelectable(e, t) {
|
|
7004
|
+
return !1;
|
|
7005
|
+
}
|
|
7006
|
+
changeColumnOrder(e, t) {
|
|
7007
|
+
}
|
|
7008
|
+
setPropertyValue(e, t, s) {
|
|
7009
|
+
return !1;
|
|
7010
|
+
}
|
|
7011
|
+
arrayMove(e, t, s) {
|
|
7012
|
+
}
|
|
7013
|
+
}
|
|
7014
|
+
class kt {
|
|
7015
|
+
constructor(e, t = 0) {
|
|
7016
|
+
this.bodyModel = e, this.paddingTop = t, this.headerAreaModel = new k(), this.footerAreaModel = new k();
|
|
7017
|
+
}
|
|
7018
|
+
changeColumnOrder(e, t) {
|
|
7019
|
+
}
|
|
7020
|
+
isSortable(e) {
|
|
7021
|
+
return !1;
|
|
7022
|
+
}
|
|
7023
|
+
init() {
|
|
7024
|
+
}
|
|
7025
|
+
setParentWidth(e) {
|
|
7026
|
+
this.bodyModel.width = e;
|
|
7027
|
+
}
|
|
7028
|
+
getColumnCount() {
|
|
7029
|
+
return this.bodyModel.getColumnCount();
|
|
7030
|
+
}
|
|
7031
|
+
getXPosByColumnIndex(e) {
|
|
7032
|
+
return e * this.getColumnWidth(e);
|
|
7033
|
+
}
|
|
7034
|
+
getAreaModel(e) {
|
|
7035
|
+
return e === "header" ? this.headerAreaModel : e === "footer" ? this.footerAreaModel : this.bodyModel;
|
|
7036
|
+
}
|
|
7037
|
+
getBodyModel() {
|
|
7038
|
+
return this.bodyModel;
|
|
7039
|
+
}
|
|
7040
|
+
getFixedLeftColumnCount() {
|
|
7041
|
+
return 0;
|
|
7042
|
+
}
|
|
7043
|
+
getFixedRightColumnCount() {
|
|
7044
|
+
return 0;
|
|
7045
|
+
}
|
|
7046
|
+
isHeaderVisibe() {
|
|
7047
|
+
return !1;
|
|
7048
|
+
}
|
|
7049
|
+
isFooterVisibe() {
|
|
7050
|
+
return !1;
|
|
7051
|
+
}
|
|
7052
|
+
isRowCheckboxVisible() {
|
|
7053
|
+
return !1;
|
|
7054
|
+
}
|
|
7055
|
+
getRowHeight(e, t) {
|
|
7056
|
+
return this.bodyModel.getRowHeight(t);
|
|
7057
|
+
}
|
|
7058
|
+
getColumnDef(e) {
|
|
7059
|
+
}
|
|
7060
|
+
getColumnDefs() {
|
|
7061
|
+
}
|
|
7062
|
+
getColumnProperty(e) {
|
|
7063
|
+
return "";
|
|
7064
|
+
}
|
|
7065
|
+
getBodyRowByIndex(e) {
|
|
7066
|
+
return this.bodyModel.getRowByIndex(e);
|
|
7067
|
+
}
|
|
7068
|
+
getColumnWidth(e) {
|
|
7069
|
+
return this.bodyModel.coverWidth;
|
|
7070
|
+
}
|
|
7071
|
+
setColumnWidth(e, t) {
|
|
7072
|
+
this.bodyModel.coverWidth = t;
|
|
7073
|
+
}
|
|
7074
|
+
recalcSize(e) {
|
|
7075
|
+
}
|
|
7076
|
+
recalcPadding() {
|
|
7077
|
+
}
|
|
7078
|
+
recalcHeightAndPadding() {
|
|
7079
|
+
}
|
|
7080
|
+
getPadding() {
|
|
7081
|
+
return new ae(0, 0, 0, 0);
|
|
7082
|
+
}
|
|
7083
|
+
getContentHeightInPixel() {
|
|
7084
|
+
return this.paddingTop + this.bodyModel.getRowCount() * this.bodyModel.coverHeight;
|
|
7085
|
+
}
|
|
7086
|
+
getContentWidthInPixel() {
|
|
7087
|
+
return this.bodyModel.getColumnCount() * this.bodyModel.coverWidth;
|
|
7088
|
+
}
|
|
7089
|
+
externalFilterChanged(e) {
|
|
7090
|
+
this.bodyModel.externalFilterChanged(e);
|
|
7091
|
+
}
|
|
7092
|
+
doSort(e) {
|
|
7093
|
+
return this.bodyModel.doSort(e);
|
|
7094
|
+
}
|
|
7095
|
+
sort(e) {
|
|
7096
|
+
this.bodyModel.sort(e);
|
|
7097
|
+
}
|
|
7098
|
+
getSelectionModel() {
|
|
7099
|
+
}
|
|
7100
|
+
setTableScope(e) {
|
|
7101
|
+
this.tableScope = e;
|
|
7102
|
+
}
|
|
7103
|
+
getTableScope() {
|
|
7104
|
+
return this.tableScope;
|
|
7105
|
+
}
|
|
7106
|
+
}
|
|
7107
|
+
class vs {
|
|
7108
|
+
static createCoverGridModel(e, t, s = 200, o = 300, i = 0, r = 0) {
|
|
7109
|
+
const n = new Tt(e, t, s, o, i, r);
|
|
7110
|
+
return new kt(n, r);
|
|
7111
|
+
}
|
|
7112
|
+
}
|
|
7113
|
+
const Rs = [
|
|
6919
7114
|
"COPY_2_CLIPBOARD",
|
|
6920
7115
|
"START_EDITING",
|
|
6921
7116
|
"TOGGLE_SELECTION",
|
|
@@ -6933,17 +7128,17 @@ const Ss = [
|
|
|
6933
7128
|
// "PAGEUP_PRESSED",
|
|
6934
7129
|
// "PAGEDOWN_PRESSED"
|
|
6935
7130
|
];
|
|
6936
|
-
class
|
|
7131
|
+
class Dt {
|
|
6937
7132
|
constructor(e, t) {
|
|
6938
7133
|
this.tableModel = e, this.tableOptions = t;
|
|
6939
7134
|
}
|
|
6940
7135
|
}
|
|
6941
|
-
class
|
|
7136
|
+
class Ft {
|
|
6942
7137
|
constructor(e, t, s, o, i, r, n) {
|
|
6943
7138
|
this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = s, this.filter = o, this.sorting = i, this.startIndex = r, this.endIndex = n;
|
|
6944
7139
|
}
|
|
6945
7140
|
}
|
|
6946
|
-
class
|
|
7141
|
+
class As extends Ft {
|
|
6947
7142
|
constructor(e, t, s, o, i, r, n, l) {
|
|
6948
7143
|
super(
|
|
6949
7144
|
e,
|
|
@@ -6956,34 +7151,34 @@ class Cs extends kt {
|
|
|
6956
7151
|
), this.rows = l;
|
|
6957
7152
|
}
|
|
6958
7153
|
}
|
|
6959
|
-
class
|
|
7154
|
+
class Pt {
|
|
6960
7155
|
constructor(e, t) {
|
|
6961
7156
|
this.value = e, this.label = t;
|
|
6962
7157
|
}
|
|
6963
7158
|
}
|
|
6964
|
-
class
|
|
7159
|
+
class Ms {
|
|
6965
7160
|
constructor(e, t) {
|
|
6966
7161
|
this.index = e, this.px = t;
|
|
6967
7162
|
}
|
|
6968
7163
|
}
|
|
6969
|
-
const
|
|
7164
|
+
const Is = { body: ["ge-table-text-align-left"] }, Es = { body: ["ge-table-text-align-center"] }, Ts = { body: ["ge-table-text-align-right"] }, ks = {
|
|
6970
7165
|
header: ["ge-table-text-align-left"],
|
|
6971
7166
|
body: ["ge-table-text-align-left"],
|
|
6972
7167
|
footer: ["ge-table-text-align-left"]
|
|
6973
|
-
},
|
|
7168
|
+
}, Ds = {
|
|
6974
7169
|
header: ["ge-table-text-align-center"],
|
|
6975
7170
|
body: ["ge-table-text-align-center"],
|
|
6976
7171
|
footer: ["ge-table-text-align-center"]
|
|
6977
|
-
},
|
|
7172
|
+
}, Fs = {
|
|
6978
7173
|
header: ["ge-table-text-align-right"],
|
|
6979
7174
|
body: ["ge-table-text-align-right"],
|
|
6980
7175
|
footer: ["ge-table-text-align-right"]
|
|
6981
7176
|
};
|
|
6982
|
-
class
|
|
7177
|
+
class ke {
|
|
6983
7178
|
render(e, t, s, o, i, r, n) {
|
|
6984
7179
|
if (i.isRowCheckable(t)) {
|
|
6985
7180
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
6986
|
-
const l = i.isRowChecked(t), a = l === "full" ? "checked" : "",
|
|
7181
|
+
const l = i.isRowChecked(t), a = l === "full" ? "checked" : "", d = l === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
|
|
6987
7182
|
e.innerHTML = `
|
|
6988
7183
|
<input
|
|
6989
7184
|
type="checkbox"
|
|
@@ -6993,20 +7188,20 @@ class Ie {
|
|
|
6993
7188
|
data-input-type="checkbox"
|
|
6994
7189
|
${a}
|
|
6995
7190
|
class="ge-table-row-checkbox">
|
|
6996
|
-
${
|
|
7191
|
+
${d} `;
|
|
6997
7192
|
}
|
|
6998
7193
|
}
|
|
6999
7194
|
}
|
|
7000
|
-
class
|
|
7195
|
+
class Ps {
|
|
7001
7196
|
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
|
|
7197
|
+
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
7198
|
[],
|
|
7004
7199
|
["ge-table-text-align-left"],
|
|
7005
7200
|
[]
|
|
7006
7201
|
);
|
|
7007
7202
|
}
|
|
7008
7203
|
}
|
|
7009
|
-
class
|
|
7204
|
+
class _s {
|
|
7010
7205
|
/**
|
|
7011
7206
|
* A factory that creates a new AreaObjectMap with the given body renderer.
|
|
7012
7207
|
*
|
|
@@ -7014,24 +7209,24 @@ class Ds {
|
|
|
7014
7209
|
* @returns {AreaObjectMap<CellRendererIf>} The newly created AreaObjectMap.
|
|
7015
7210
|
*/
|
|
7016
7211
|
static body(e) {
|
|
7017
|
-
return new
|
|
7212
|
+
return new T(
|
|
7018
7213
|
void 0,
|
|
7019
7214
|
e,
|
|
7020
7215
|
void 0
|
|
7021
7216
|
);
|
|
7022
7217
|
}
|
|
7023
7218
|
}
|
|
7024
|
-
class
|
|
7219
|
+
class Ls {
|
|
7025
7220
|
constructor(e = "down", t) {
|
|
7026
7221
|
this.status = e, this.originalEvent = t;
|
|
7027
7222
|
}
|
|
7028
7223
|
}
|
|
7029
|
-
class
|
|
7224
|
+
class Os {
|
|
7030
7225
|
constructor(e, t, s, o, i = {}) {
|
|
7031
7226
|
this.area = e, this.rowIndex = t, this.columnIndex = s, this.value = o, this.cssClasses = i;
|
|
7032
7227
|
}
|
|
7033
7228
|
}
|
|
7034
|
-
class
|
|
7229
|
+
class $s {
|
|
7035
7230
|
constructor() {
|
|
7036
7231
|
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
7232
|
if (e && t && s.getRowId) {
|
|
@@ -7056,12 +7251,12 @@ class Ls {
|
|
|
7056
7251
|
};
|
|
7057
7252
|
}
|
|
7058
7253
|
}
|
|
7059
|
-
class
|
|
7254
|
+
class _t {
|
|
7060
7255
|
constructor(e, t, s, o = !1, i = "normal", r = void 0) {
|
|
7061
7256
|
this.data = e, this.property = t, this.toggle = s, this.closed = o, this.visibility = i, this.children = r, this.impl = "CellGroup";
|
|
7062
7257
|
}
|
|
7063
7258
|
}
|
|
7064
|
-
class
|
|
7259
|
+
class Lt extends _t {
|
|
7065
7260
|
constructor(e, t = 0, s = 0, o) {
|
|
7066
7261
|
super(
|
|
7067
7262
|
e.data,
|
|
@@ -7153,7 +7348,7 @@ class Pt extends Ft {
|
|
|
7153
7348
|
return n;
|
|
7154
7349
|
}
|
|
7155
7350
|
}
|
|
7156
|
-
class
|
|
7351
|
+
class E {
|
|
7157
7352
|
static buildColumnDefs(e, t = []) {
|
|
7158
7353
|
for (const s of e)
|
|
7159
7354
|
s.property && t.push(
|
|
@@ -7162,7 +7357,7 @@ class T {
|
|
|
7162
7357
|
headerLabel: s.data ? s.data : s.property,
|
|
7163
7358
|
isVisible: () => typeof s.isVisible == "function" ? s.isVisible() : !0
|
|
7164
7359
|
})
|
|
7165
|
-
), s.children &&
|
|
7360
|
+
), s.children && E.buildColumnDefs(s.children, t);
|
|
7166
7361
|
return t;
|
|
7167
7362
|
}
|
|
7168
7363
|
/*
|
|
@@ -7186,14 +7381,14 @@ class T {
|
|
|
7186
7381
|
static buildGroupExts(e, t = [], s = 0, o) {
|
|
7187
7382
|
let i;
|
|
7188
7383
|
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 =
|
|
7384
|
+
const n = e[r], l = new Lt(n, s, r, o);
|
|
7385
|
+
i && (l.leftNeighbour = i, i.rightNeighbour = l), t.push(l), n.children && (l.children = E.buildGroupExts(n.children, [], s + 1, l)), i = l;
|
|
7191
7386
|
}
|
|
7192
7387
|
return t;
|
|
7193
7388
|
}
|
|
7194
7389
|
static flattenGroupExts(e, t = []) {
|
|
7195
7390
|
for (const s of e)
|
|
7196
|
-
t.push(s), s.children &&
|
|
7391
|
+
t.push(s), s.children && E.flattenGroupExts(s.children, t);
|
|
7197
7392
|
return t;
|
|
7198
7393
|
}
|
|
7199
7394
|
/*
|
|
@@ -7225,10 +7420,10 @@ class T {
|
|
|
7225
7420
|
static iterateThrowColumns(e = [], t) {
|
|
7226
7421
|
var s;
|
|
7227
7422
|
for (const o of t)
|
|
7228
|
-
e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length &&
|
|
7423
|
+
e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length && E.iterateThrowColumns(e, o.children);
|
|
7229
7424
|
}
|
|
7230
7425
|
}
|
|
7231
|
-
class
|
|
7426
|
+
class Vs {
|
|
7232
7427
|
constructor() {
|
|
7233
7428
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
7234
7429
|
}
|
|
@@ -7851,14 +8046,14 @@ class Os {
|
|
|
7851
8046
|
}
|
|
7852
8047
|
}
|
|
7853
8048
|
const Q = class Q {
|
|
7854
|
-
constructor(e = new
|
|
8049
|
+
constructor(e = new ye()) {
|
|
7855
8050
|
this.headerGroupOptions = e;
|
|
7856
8051
|
}
|
|
7857
8052
|
render(e, t, s, o, i, r, n) {
|
|
7858
8053
|
const l = r != null && r.data ? r.data : "";
|
|
7859
8054
|
if (r) {
|
|
7860
|
-
const { toggle: a, visibility:
|
|
7861
|
-
this.addText(e, o, t, s, l, u), a &&
|
|
8055
|
+
const { toggle: a, visibility: d, closed: h } = r, u = a ? Q.toggleHeaderGroup : "";
|
|
8056
|
+
this.addText(e, o, t, s, l, u), a && d !== "always" && this.addArrowDiv(n, e, !h, t, s, o, u);
|
|
7862
8057
|
} else
|
|
7863
8058
|
this.addText(e, o, t, s, l, "");
|
|
7864
8059
|
}
|
|
@@ -7875,7 +8070,7 @@ const Q = class Q {
|
|
|
7875
8070
|
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
8071
|
let a;
|
|
7877
8072
|
s ? a = this.headerGroupOptions.iconExpanded : a = this.headerGroupOptions.iconCollapsed;
|
|
7878
|
-
const
|
|
8073
|
+
const d = a.content, h = e.createText(d);
|
|
7879
8074
|
e.appendChild(l, h), a.style && this.applyStyleString(e, l, a.style);
|
|
7880
8075
|
for (const u of a.classes)
|
|
7881
8076
|
e.addClass(l, u);
|
|
@@ -7890,10 +8085,10 @@ const Q = class Q {
|
|
|
7890
8085
|
}
|
|
7891
8086
|
};
|
|
7892
8087
|
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
|
|
8088
|
+
let de = Q;
|
|
8089
|
+
class Bs {
|
|
8090
|
+
constructor(e = "header", t, s = [], o, i = new ye()) {
|
|
8091
|
+
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
8092
|
}
|
|
7898
8093
|
sort(e) {
|
|
7899
8094
|
}
|
|
@@ -7901,19 +8096,19 @@ class _s {
|
|
|
7901
8096
|
var e;
|
|
7902
8097
|
for (const t of this.groupExts)
|
|
7903
8098
|
t.log(this.getMaxRowCount());
|
|
7904
|
-
this.arr = this.buildArray(), !((e = this.columnDefs) != null && e.length) && this.areaIdent === "header" && (this.columnDefs =
|
|
8099
|
+
this.arr = this.buildArray(), !((e = this.columnDefs) != null && e.length) && this.areaIdent === "header" && (this.columnDefs = E.buildColumnDefs(this.groups));
|
|
7905
8100
|
}
|
|
7906
8101
|
getAllLeafs() {
|
|
7907
|
-
return
|
|
8102
|
+
return E.flattenGroupExts(this.groupExts).filter((t) => !t.children);
|
|
7908
8103
|
}
|
|
7909
8104
|
getMaxRowCount() {
|
|
7910
8105
|
const e = this.getAllLeafs();
|
|
7911
8106
|
return e != null && e.length ? 1 + Math.max(...e.map((t) => t.getParentCount(t))) : 0;
|
|
7912
8107
|
}
|
|
7913
8108
|
buildArray() {
|
|
7914
|
-
const e =
|
|
7915
|
-
|
|
7916
|
-
const o = Array.from(Array(t).keys()).map((r) => []), i =
|
|
8109
|
+
const e = E.flattenGroupExts(this.groupExts), t = 1 + Math.max(...e.map((r) => r.rowIndex)), s = [];
|
|
8110
|
+
E.iterateThrowColumns(s, this.groupExts);
|
|
8111
|
+
const o = Array.from(Array(t).keys()).map((r) => []), i = E.buildArrayOfArrays(e, o);
|
|
7917
8112
|
return console.table(i), i;
|
|
7918
8113
|
}
|
|
7919
8114
|
changeColumnOrder(e, t) {
|
|
@@ -7990,10 +8185,10 @@ class _s {
|
|
|
7990
8185
|
}
|
|
7991
8186
|
toggleHeaderGroup(e) {
|
|
7992
8187
|
const t = this.arr[e.rowIdx][e.colIdx];
|
|
7993
|
-
return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()),
|
|
8188
|
+
return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()), E.buildColumnDefs(this.groupExts);
|
|
7994
8189
|
}
|
|
7995
8190
|
}
|
|
7996
|
-
class
|
|
8191
|
+
class Hs {
|
|
7997
8192
|
filterPredict(e, t, s = this.objectToString.bind(this)) {
|
|
7998
8193
|
if (!e)
|
|
7999
8194
|
return !1;
|
|
@@ -8001,10 +8196,10 @@ class $s {
|
|
|
8001
8196
|
return !0;
|
|
8002
8197
|
t = t.toLowerCase();
|
|
8003
8198
|
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
|
|
8199
|
+
let d = !n.length;
|
|
8005
8200
|
for (let h = 0; h < n.length; h++)
|
|
8006
|
-
(
|
|
8007
|
-
if (!
|
|
8201
|
+
(d || s(e).includes(n[h])) && (d = !0);
|
|
8202
|
+
if (!d)
|
|
8008
8203
|
return !1;
|
|
8009
8204
|
for (let h = 0; h < l.length; h++)
|
|
8010
8205
|
if (!s(e).includes(l[h]))
|
|
@@ -8020,18 +8215,18 @@ class $s {
|
|
|
8020
8215
|
if (!t)
|
|
8021
8216
|
return [...e];
|
|
8022
8217
|
t = t.toLowerCase();
|
|
8023
|
-
const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((
|
|
8024
|
-
return e == null ? void 0 : e.filter((
|
|
8218
|
+
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, ""));
|
|
8219
|
+
return e == null ? void 0 : e.filter((d) => {
|
|
8025
8220
|
let h = !n.length;
|
|
8026
8221
|
for (let u = 0; u < n.length; u++)
|
|
8027
|
-
(h || s(
|
|
8222
|
+
(h || s(d).includes(n[u])) && (h = !0);
|
|
8028
8223
|
if (!h)
|
|
8029
8224
|
return !1;
|
|
8030
8225
|
for (let u = 0; u < l.length; u++)
|
|
8031
|
-
if (!s(
|
|
8226
|
+
if (!s(d).includes(l[u]))
|
|
8032
8227
|
return !1;
|
|
8033
8228
|
for (let u = 0; u < a.length; u++)
|
|
8034
|
-
if (s(
|
|
8229
|
+
if (s(d).includes(a[u]))
|
|
8035
8230
|
return !1;
|
|
8036
8231
|
return !0;
|
|
8037
8232
|
});
|
|
@@ -8047,19 +8242,19 @@ class $s {
|
|
|
8047
8242
|
return t.join(" ").toLowerCase();
|
|
8048
8243
|
}
|
|
8049
8244
|
}
|
|
8050
|
-
class
|
|
8245
|
+
class Ws {
|
|
8051
8246
|
static bodyRenderer(e) {
|
|
8052
|
-
return new
|
|
8247
|
+
return new T(void 0, e, void 0);
|
|
8053
8248
|
}
|
|
8054
8249
|
}
|
|
8055
|
-
class
|
|
8250
|
+
class Ns {
|
|
8056
8251
|
constructor(e, t = !0, s = !1) {
|
|
8057
8252
|
this.property = e, this.skipCheckableCheck = t, this.readonly = s;
|
|
8058
8253
|
}
|
|
8059
8254
|
render(e, t, s, o, i, r, n) {
|
|
8060
8255
|
if (this.readonly || this.skipCheckableCheck || i.isRowCheckable(t)) {
|
|
8061
8256
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
8062
|
-
const l = i.getRowByIndex(t),
|
|
8257
|
+
const l = i.getRowByIndex(t), d = i.getValueByT(l, this.property) === !0 ? "checked" : "", h = this.readonly ? " readonly " : "";
|
|
8063
8258
|
if (n.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
|
|
8064
8259
|
<input
|
|
8065
8260
|
type="checkbox"
|
|
@@ -8068,21 +8263,21 @@ class Bs {
|
|
|
8068
8263
|
data-col-index="${s}"
|
|
8069
8264
|
data-property-index="${this.property}"
|
|
8070
8265
|
data-input-type="checkbox"
|
|
8071
|
-
${
|
|
8266
|
+
${d}
|
|
8072
8267
|
${h}
|
|
8073
8268
|
class="ge-input-checkbox">`, !this.readonly) {
|
|
8074
8269
|
const u = e.querySelector(".ge-input-checkbox");
|
|
8075
|
-
u && u.addEventListener("click", (
|
|
8270
|
+
u && u.addEventListener("click", (f, p) => (l[this.property] = !l[this.property], !0));
|
|
8076
8271
|
}
|
|
8077
8272
|
}
|
|
8078
8273
|
}
|
|
8079
8274
|
}
|
|
8080
|
-
class
|
|
8275
|
+
class Gs {
|
|
8081
8276
|
render(e, t, s, o, i, r, n) {
|
|
8082
8277
|
r && (e.innerText = new Date(r).toISOString());
|
|
8083
8278
|
}
|
|
8084
8279
|
}
|
|
8085
|
-
class
|
|
8280
|
+
class zs {
|
|
8086
8281
|
constructor() {
|
|
8087
8282
|
this.formatter = new Intl.DateTimeFormat("de-DE", {
|
|
8088
8283
|
year: "numeric",
|
|
@@ -8105,29 +8300,29 @@ class Ws {
|
|
|
8105
8300
|
}
|
|
8106
8301
|
}
|
|
8107
8302
|
}
|
|
8108
|
-
class
|
|
8303
|
+
class js {
|
|
8109
8304
|
render(e, t, s, o, i, r, n) {
|
|
8110
8305
|
r && (e.innerText = new Date(r).toLocaleDateString());
|
|
8111
8306
|
}
|
|
8112
8307
|
}
|
|
8113
|
-
class
|
|
8308
|
+
class Us {
|
|
8114
8309
|
render(e, t, s, o, i, r, n) {
|
|
8115
8310
|
r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
|
|
8116
8311
|
}
|
|
8117
8312
|
}
|
|
8118
|
-
class
|
|
8313
|
+
class Ys {
|
|
8119
8314
|
constructor(e = 100, t = !1) {
|
|
8120
8315
|
this.maxValue = e, this.labelVisible = t;
|
|
8121
8316
|
}
|
|
8122
8317
|
render(e, t, s, o, i, r, n) {
|
|
8123
8318
|
if (n.addClass(e, "ge-progressbar-div"), !isNaN(r)) {
|
|
8124
|
-
const a = Number(r) * 100 / this.maxValue,
|
|
8319
|
+
const a = Number(r) * 100 / this.maxValue, d = this.labelVisible ? Math.round(a) + "%" : "";
|
|
8125
8320
|
e.innerHTML = `
|
|
8126
8321
|
<div class="ge-table-label-div"
|
|
8127
8322
|
data-row-index="${t}"
|
|
8128
8323
|
data-col-index="${s}"
|
|
8129
8324
|
data-area="${o}"
|
|
8130
|
-
title="${
|
|
8325
|
+
title="${d}"
|
|
8131
8326
|
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
8132
8327
|
<div class="ge-table-progress-container"
|
|
8133
8328
|
style="width:100%;height:50%;padding:0;margin-top:6px;"
|
|
@@ -8145,17 +8340,17 @@ class zs {
|
|
|
8145
8340
|
}
|
|
8146
8341
|
}
|
|
8147
8342
|
}
|
|
8148
|
-
class
|
|
8343
|
+
class Ks {
|
|
8149
8344
|
render(e, t, s, o, i, r, n) {
|
|
8150
8345
|
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
8346
|
}
|
|
8152
8347
|
}
|
|
8153
|
-
class
|
|
8348
|
+
class Xs {
|
|
8154
8349
|
render(e, t, s, o, i, r, n) {
|
|
8155
8350
|
r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
|
|
8156
8351
|
}
|
|
8157
8352
|
}
|
|
8158
|
-
class
|
|
8353
|
+
class Js {
|
|
8159
8354
|
constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
8160
8355
|
this.min = e, this.max = t;
|
|
8161
8356
|
}
|
|
@@ -8166,7 +8361,7 @@ class Ys {
|
|
|
8166
8361
|
</div>`, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && n.addClass(e, "ge-cell-error"));
|
|
8167
8362
|
}
|
|
8168
8363
|
}
|
|
8169
|
-
class
|
|
8364
|
+
class qs {
|
|
8170
8365
|
constructor(e) {
|
|
8171
8366
|
this.property = e;
|
|
8172
8367
|
}
|
|
@@ -8174,10 +8369,10 @@ class Ks {
|
|
|
8174
8369
|
n.addClass(e, "ge-star-rating-div");
|
|
8175
8370
|
const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
|
|
8176
8371
|
if (!isNaN(a)) {
|
|
8177
|
-
const
|
|
8372
|
+
const d = [];
|
|
8178
8373
|
for (let u = 0; u < a; u++)
|
|
8179
|
-
|
|
8180
|
-
const h =
|
|
8374
|
+
d.push("★");
|
|
8375
|
+
const h = d.join(" ");
|
|
8181
8376
|
e.innerHTML = `
|
|
8182
8377
|
<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
8378
|
<div class="ge-table-label" data-row-index="${t}" data-col-index="${s}" data-area="${o}">${h}</div>
|
|
@@ -8185,20 +8380,20 @@ class Ks {
|
|
|
8185
8380
|
}
|
|
8186
8381
|
}
|
|
8187
8382
|
}
|
|
8188
|
-
class
|
|
8383
|
+
class Zs {
|
|
8189
8384
|
render(e, t, s, o, i, r, n) {
|
|
8190
8385
|
if (r != null && r.length) {
|
|
8191
8386
|
const l = n.createElement("div");
|
|
8192
8387
|
n.addClass(l, "ge-table-label-div"), n.appendChild(e, l);
|
|
8193
8388
|
const a = n.createElement("div");
|
|
8194
8389
|
n.addClass(a, "ge-table-label"), n.appendChild(l, a);
|
|
8195
|
-
const
|
|
8196
|
-
n.appendChild(a,
|
|
8390
|
+
const d = n.createText(r.join(", "));
|
|
8391
|
+
n.appendChild(a, d);
|
|
8197
8392
|
} else
|
|
8198
8393
|
e.innerText = "";
|
|
8199
8394
|
}
|
|
8200
8395
|
}
|
|
8201
|
-
class
|
|
8396
|
+
class Qs {
|
|
8202
8397
|
constructor(e, t = 100, s = !1) {
|
|
8203
8398
|
this.property = e, this.maxValue = t, this.labelVisible = s;
|
|
8204
8399
|
}
|
|
@@ -8206,7 +8401,7 @@ class Js {
|
|
|
8206
8401
|
n.addClass(e, "ge-star-rating-div");
|
|
8207
8402
|
const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
|
|
8208
8403
|
if (!isNaN(a)) {
|
|
8209
|
-
const
|
|
8404
|
+
const d = a * 100 / this.maxValue, h = this.labelVisible ? Math.round(d) + "%" : "";
|
|
8210
8405
|
e.innerHTML = `
|
|
8211
8406
|
<div class="ge-table-label-div"
|
|
8212
8407
|
data-row-index="${t}"
|
|
@@ -8220,7 +8415,7 @@ class Js {
|
|
|
8220
8415
|
data-col-index="${s}"
|
|
8221
8416
|
data-area="${o}">
|
|
8222
8417
|
<div class="ge-table-progress-bar"
|
|
8223
|
-
style="width:${
|
|
8418
|
+
style="width:${d}%;height:100%;padding:0;margin:0;"
|
|
8224
8419
|
data-row-index="${t}"
|
|
8225
8420
|
data-col-index="${s}"
|
|
8226
8421
|
data-area="${o}">
|
|
@@ -8230,7 +8425,7 @@ class Js {
|
|
|
8230
8425
|
}
|
|
8231
8426
|
}
|
|
8232
8427
|
}
|
|
8233
|
-
class
|
|
8428
|
+
class eo {
|
|
8234
8429
|
render(e, t, s, o, i, r, n) {
|
|
8235
8430
|
if (r) {
|
|
8236
8431
|
e.innerHTML = `
|
|
@@ -8260,16 +8455,16 @@ class $ {
|
|
|
8260
8455
|
this.action = e, this.label = t, this.icon = s, this.elementClass = o, this.elementType = i, this.enabled = r;
|
|
8261
8456
|
}
|
|
8262
8457
|
}
|
|
8263
|
-
class
|
|
8458
|
+
class Ot {
|
|
8264
8459
|
constructor(e, t) {
|
|
8265
8460
|
this.actionEventListener = e, this.crudActions = t;
|
|
8266
8461
|
}
|
|
8267
8462
|
render(e, t, s, o, i, r, n) {
|
|
8268
8463
|
n.addClass(e, "ge-table-row-action-div");
|
|
8269
|
-
const l = r,
|
|
8464
|
+
const l = r, d = this.getCrudActions(r).map(
|
|
8270
8465
|
(h) => h.elementType === "button" ? this.buildButtonHtml(h, o, t, s, l) : this.buildLinkHtml(h, o, t, s, l)
|
|
8271
8466
|
);
|
|
8272
|
-
e.innerHTML =
|
|
8467
|
+
e.innerHTML = d.join(""), this.addClickEventListeners(e, o, i);
|
|
8273
8468
|
}
|
|
8274
8469
|
buildButtonHtml(e, t, s, o, i) {
|
|
8275
8470
|
const r = e.enabled ? 'data-listen="click"' : "disabled";
|
|
@@ -8316,8 +8511,8 @@ class Lt {
|
|
|
8316
8511
|
createActionEvent(e, t) {
|
|
8317
8512
|
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
8513
|
if (s && o && i) {
|
|
8319
|
-
const l = ee(s), a = Number(o),
|
|
8320
|
-
return new We(r, l, t, a,
|
|
8514
|
+
const l = ee(s), a = Number(o), d = Number(i);
|
|
8515
|
+
return new We(r, l, t, a, d, n);
|
|
8321
8516
|
}
|
|
8322
8517
|
return null;
|
|
8323
8518
|
}
|
|
@@ -8325,8 +8520,8 @@ class Lt {
|
|
|
8325
8520
|
return Array.isArray(e) && e.every((t) => t instanceof $) ? e : this.crudActions;
|
|
8326
8521
|
}
|
|
8327
8522
|
}
|
|
8328
|
-
const
|
|
8329
|
-
return
|
|
8523
|
+
const to = function(c, e, t) {
|
|
8524
|
+
return c ? Number(c) : "";
|
|
8330
8525
|
};
|
|
8331
8526
|
class Ne {
|
|
8332
8527
|
constructor(e) {
|
|
@@ -8334,7 +8529,7 @@ class Ne {
|
|
|
8334
8529
|
}
|
|
8335
8530
|
static create(e) {
|
|
8336
8531
|
return new Ne(
|
|
8337
|
-
e.map((t) => new
|
|
8532
|
+
e.map((t) => new Pt(t, t))
|
|
8338
8533
|
);
|
|
8339
8534
|
}
|
|
8340
8535
|
render(e, t, s, o, i, r, n) {
|
|
@@ -8346,7 +8541,7 @@ class Ne {
|
|
|
8346
8541
|
const u = h.value === l ? " selected " : "";
|
|
8347
8542
|
a.push(`<option value="${h.value}" ${u}>${h.label}</option>`);
|
|
8348
8543
|
}
|
|
8349
|
-
const
|
|
8544
|
+
const d = a.join("");
|
|
8350
8545
|
e.innerHTML = `
|
|
8351
8546
|
<select
|
|
8352
8547
|
autofocus
|
|
@@ -8356,11 +8551,11 @@ class Ne {
|
|
|
8356
8551
|
data-col-index="${s}"
|
|
8357
8552
|
data-input-type="text"
|
|
8358
8553
|
style="width:100%;height:100%;border:0;padding:0 0 0 8px;"
|
|
8359
|
-
class="ge-table-cell-editor-select">${
|
|
8554
|
+
class="ge-table-cell-editor-select">${d}</select>`;
|
|
8360
8555
|
}
|
|
8361
8556
|
}
|
|
8362
8557
|
}
|
|
8363
|
-
class
|
|
8558
|
+
class so extends be {
|
|
8364
8559
|
constructor(e) {
|
|
8365
8560
|
super("row", "multi"), this.model = e;
|
|
8366
8561
|
}
|
|
@@ -8443,12 +8638,12 @@ class Qs extends ge {
|
|
|
8443
8638
|
this.isSelected(e, 0) ? this.unselectRow(e) : this.selectRow(e);
|
|
8444
8639
|
}
|
|
8445
8640
|
}
|
|
8446
|
-
class
|
|
8641
|
+
class oo {
|
|
8447
8642
|
constructor(e, t, s) {
|
|
8448
8643
|
this.r = e, this.g = t, this.b = s;
|
|
8449
8644
|
}
|
|
8450
8645
|
}
|
|
8451
|
-
class
|
|
8646
|
+
class De {
|
|
8452
8647
|
constructor(e, t, s, o) {
|
|
8453
8648
|
this.minValue = e, this.minColor = t, this.maxValue = s, this.maxColor = o;
|
|
8454
8649
|
}
|
|
@@ -8462,20 +8657,20 @@ class K {
|
|
|
8462
8657
|
return `rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(a)})`;
|
|
8463
8658
|
}
|
|
8464
8659
|
static getThreeColorGradientRGB(e, t) {
|
|
8465
|
-
return e < t.middleValue ? K.getTwoColorGradientRGB(e, new
|
|
8660
|
+
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
8661
|
}
|
|
8467
8662
|
}
|
|
8468
|
-
class
|
|
8663
|
+
class io {
|
|
8469
8664
|
constructor(e, t, s, o, i, r) {
|
|
8470
8665
|
this.minValue = e, this.minColor = t, this.middleValue = s, this.middleColor = o, this.maxValue = i, this.maxColor = r;
|
|
8471
8666
|
}
|
|
8472
8667
|
}
|
|
8473
|
-
class
|
|
8668
|
+
class $t {
|
|
8474
8669
|
constructor(e = !0, t = !0, s = (r, n) => r * 10 + 10, o = 50, i = 450) {
|
|
8475
8670
|
this.autoCalc = e, this.takeHeaderLabelsIntoAccount = t, this.charCountToWidth = s, this.minWidth = o, this.maxWidth = i;
|
|
8476
8671
|
}
|
|
8477
8672
|
}
|
|
8478
|
-
class
|
|
8673
|
+
class Vt {
|
|
8479
8674
|
constructor(e) {
|
|
8480
8675
|
this.object = e;
|
|
8481
8676
|
}
|
|
@@ -8607,7 +8802,7 @@ class ie {
|
|
|
8607
8802
|
return e.replace(/\./g, " ");
|
|
8608
8803
|
}
|
|
8609
8804
|
}
|
|
8610
|
-
class
|
|
8805
|
+
class Bt {
|
|
8611
8806
|
constructor() {
|
|
8612
8807
|
this.urls = {
|
|
8613
8808
|
list: {
|
|
@@ -8623,7 +8818,7 @@ class $t {
|
|
|
8623
8818
|
], this.tableActions = [
|
|
8624
8819
|
new $("CREATE", "Create", "", "", "button"),
|
|
8625
8820
|
new $("DELETE_SELECTED", "Delete Selected", "", "", "button")
|
|
8626
|
-
], this.autoAddActionColumn = !0, this.columnWidths = new
|
|
8821
|
+
], 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
8822
|
const t = e.getHeadersInit ? e.getHeadersInit() : {};
|
|
8628
8823
|
let s = e.urls.list.url, o = e.urls.list.method ?? "GET";
|
|
8629
8824
|
return fetch(s, {
|
|
@@ -8674,9 +8869,9 @@ class $t {
|
|
|
8674
8869
|
};
|
|
8675
8870
|
}
|
|
8676
8871
|
}
|
|
8677
|
-
class
|
|
8872
|
+
class ro {
|
|
8678
8873
|
constructor() {
|
|
8679
|
-
this.crudOptions = new
|
|
8874
|
+
this.crudOptions = new Bt(), this.listenActionEvent = (e) => {
|
|
8680
8875
|
};
|
|
8681
8876
|
}
|
|
8682
8877
|
createTableModel(e, t, s = (i) => {
|
|
@@ -8685,41 +8880,41 @@ class so {
|
|
|
8685
8880
|
this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
|
|
8686
8881
|
var r, n, l, a;
|
|
8687
8882
|
if (t.rows = i, i != null && i.length) {
|
|
8688
|
-
const
|
|
8883
|
+
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
8884
|
this.tableOptions = {
|
|
8690
8885
|
...new J(),
|
|
8691
8886
|
...t.tableOptions,
|
|
8692
8887
|
hoverColumnVisible: !1,
|
|
8693
8888
|
getSelectionModel: u
|
|
8694
8889
|
};
|
|
8695
|
-
const
|
|
8890
|
+
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
8891
|
if ((l = e == null ? void 0 : e.columnWidths) != null && l.autoCalc)
|
|
8697
8892
|
for (let w = 0; w < p.length; w++) {
|
|
8698
8893
|
const S = p[w];
|
|
8699
|
-
S.width = new y(
|
|
8894
|
+
S.width = new y(f[w], "px");
|
|
8700
8895
|
}
|
|
8701
8896
|
if (e.autoAddActionColumn) {
|
|
8702
8897
|
let w = new H(
|
|
8703
8898
|
"id",
|
|
8704
8899
|
"Actions",
|
|
8705
|
-
|
|
8706
|
-
new
|
|
8900
|
+
Mt,
|
|
8901
|
+
new T(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
|
|
8707
8902
|
);
|
|
8708
|
-
w.rendererMap = new
|
|
8903
|
+
w.rendererMap = new T(
|
|
8709
8904
|
void 0,
|
|
8710
|
-
new
|
|
8905
|
+
new Ot(this, e.singleRowActions),
|
|
8711
8906
|
void 0
|
|
8712
8907
|
), p.push(w);
|
|
8713
8908
|
}
|
|
8714
|
-
const m = 0,
|
|
8909
|
+
const m = 0, g = e.calcFixedRightColumnCount(p.length);
|
|
8715
8910
|
this.tableModel = V.buildByTypedRowsParam({
|
|
8716
8911
|
rows: i,
|
|
8717
8912
|
columnDefs: p,
|
|
8718
8913
|
tableOptions: this.tableOptions,
|
|
8719
8914
|
fixedLeftColumnCount: m,
|
|
8720
|
-
fixedRightColumnCount:
|
|
8915
|
+
fixedRightColumnCount: g
|
|
8721
8916
|
}), this.tableModel.getSelectionModel = u, this.bodyModel = (a = this.tableModel) == null ? void 0 : a.getBodyModel();
|
|
8722
|
-
const b = new
|
|
8917
|
+
const b = new Dt(this.tableModel, this.tableOptions);
|
|
8723
8918
|
s(b);
|
|
8724
8919
|
}
|
|
8725
8920
|
});
|
|
@@ -8734,7 +8929,7 @@ class so {
|
|
|
8734
8929
|
var t, s, o, i;
|
|
8735
8930
|
if (this.listenActionEvent && this.listenActionEvent(e), e.action === "VIEW") {
|
|
8736
8931
|
let r = e.id;
|
|
8737
|
-
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new
|
|
8932
|
+
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new Vt(n).openDialog(), n));
|
|
8738
8933
|
} else if (e.action === "EDIT") {
|
|
8739
8934
|
let r = e.id;
|
|
8740
8935
|
const n = this.crudOptions.getIdKey() ?? "id";
|
|
@@ -8753,8 +8948,8 @@ class so {
|
|
|
8753
8948
|
n,
|
|
8754
8949
|
a,
|
|
8755
8950
|
"Clone Item"
|
|
8756
|
-
).openDialog((
|
|
8757
|
-
console.info(
|
|
8951
|
+
).openDialog((d) => {
|
|
8952
|
+
console.info(d), this.crudOptions.createItem(this.crudOptions, d);
|
|
8758
8953
|
}), a;
|
|
8759
8954
|
});
|
|
8760
8955
|
} else if (e.action === "CREATE") {
|
|
@@ -8769,8 +8964,8 @@ class so {
|
|
|
8769
8964
|
} else if (e.action === "DELETE") {
|
|
8770
8965
|
let r = e.id;
|
|
8771
8966
|
(i = this.crudOptions) == null || i.deleteItem(this.crudOptions, r).then((n) => {
|
|
8772
|
-
var l, a,
|
|
8773
|
-
return (l = this.bodyModel) == null || l.filterRowsByPredict((
|
|
8967
|
+
var l, a, d, h, u;
|
|
8968
|
+
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
8969
|
});
|
|
8775
8970
|
}
|
|
8776
8971
|
}
|
|
@@ -8780,21 +8975,21 @@ class so {
|
|
|
8780
8975
|
if (!((a = this.crudOptions.columnWidths) != null && a.autoCalc))
|
|
8781
8976
|
return new Array(o).fill(200);
|
|
8782
8977
|
const i = e.length ?? 0, r = new Array(o).fill(0);
|
|
8783
|
-
for (let
|
|
8978
|
+
for (let d = 0; d < i; d++)
|
|
8784
8979
|
for (let h = 0; h < o; h++) {
|
|
8785
|
-
const u = t[h],
|
|
8980
|
+
const u = t[h], f = this.getValueByT(e[d], u), p = (f == null ? void 0 : f.toString().length) || 0;
|
|
8786
8981
|
p > r[h] && (r[h] = p);
|
|
8787
8982
|
}
|
|
8788
8983
|
if (this.crudOptions.columnWidths.takeHeaderLabelsIntoAccount)
|
|
8789
|
-
for (let
|
|
8790
|
-
const h = s[
|
|
8791
|
-
h > r[
|
|
8984
|
+
for (let d = 0; d < o; d++) {
|
|
8985
|
+
const h = s[d].length || 0;
|
|
8986
|
+
h > r[d] && (r[d] = h);
|
|
8792
8987
|
}
|
|
8793
8988
|
const n = this.crudOptions.columnWidths.minWidth, l = this.crudOptions.columnWidths.maxWidth;
|
|
8794
|
-
return r.map((
|
|
8989
|
+
return r.map((d, h) => Math.min(
|
|
8795
8990
|
l,
|
|
8796
8991
|
Math.max(
|
|
8797
|
-
this.crudOptions.columnWidths.charCountToWidth(
|
|
8992
|
+
this.crudOptions.columnWidths.charCountToWidth(d, h),
|
|
8798
8993
|
n
|
|
8799
8994
|
)
|
|
8800
8995
|
));
|
|
@@ -8815,152 +9010,155 @@ class so {
|
|
|
8815
9010
|
return s;
|
|
8816
9011
|
}
|
|
8817
9012
|
}
|
|
8818
|
-
class
|
|
9013
|
+
class no {
|
|
8819
9014
|
constructor(e, t) {
|
|
8820
9015
|
this.method = e, this.url = t;
|
|
8821
9016
|
}
|
|
8822
9017
|
}
|
|
8823
9018
|
export {
|
|
8824
|
-
|
|
9019
|
+
pe as AbstractAreaModel,
|
|
8825
9020
|
We as ActionEvent,
|
|
8826
|
-
|
|
9021
|
+
Ot as ActionsCellRenderer,
|
|
8827
9022
|
Oe as AnyPropertyType,
|
|
8828
|
-
|
|
8829
|
-
|
|
8830
|
-
|
|
8831
|
-
|
|
8832
|
-
|
|
8833
|
-
|
|
9023
|
+
_s as AreaMapFactory,
|
|
9024
|
+
Vs as AreaModel,
|
|
9025
|
+
P as AreaModelArrayOfArrays,
|
|
9026
|
+
Bs as AreaModelCellGroups,
|
|
9027
|
+
k as AreaModelHidden,
|
|
9028
|
+
_ as AreaModelObjectArray,
|
|
8834
9029
|
Te as AreaModelObjectArrayWithColumndefs,
|
|
8835
|
-
|
|
8836
|
-
|
|
9030
|
+
Ie as AreaModelTree,
|
|
9031
|
+
T as AreaObjectMap,
|
|
8837
9032
|
B as ArrayPropertyType,
|
|
8838
|
-
|
|
8839
|
-
|
|
9033
|
+
$s as AutoRestoreOptions,
|
|
9034
|
+
Wt as AvoidDoubleExecution,
|
|
8840
9035
|
Ye as BooleanPropertyType,
|
|
8841
|
-
|
|
8842
|
-
|
|
8843
|
-
|
|
9036
|
+
_t as CellGroup,
|
|
9037
|
+
Lt as CellGroupExt,
|
|
9038
|
+
de as CellGroupExtCellRenderer,
|
|
8844
9039
|
A as CellRange,
|
|
8845
|
-
|
|
8846
|
-
|
|
8847
|
-
|
|
8848
|
-
|
|
8849
|
-
|
|
8850
|
-
|
|
9040
|
+
E as CellgroupFactory,
|
|
9041
|
+
Ns as CheckboxBooleanPropertyCellRenderer,
|
|
9042
|
+
ke as CheckboxCellRenderer,
|
|
9043
|
+
Ps as CheckboxColumnDef,
|
|
9044
|
+
Et as CheckboxModel,
|
|
9045
|
+
As as ChunkData,
|
|
8851
9046
|
at as ColAndRowspanModel,
|
|
8852
9047
|
it as CollapsedExpandedData,
|
|
8853
|
-
|
|
9048
|
+
oo as ColorRgb,
|
|
8854
9049
|
H as ColumnDef,
|
|
8855
|
-
|
|
8856
|
-
|
|
9050
|
+
Nt as ColumnDefGenerator,
|
|
9051
|
+
$t as ColumnWidths,
|
|
8857
9052
|
Qe as ConvenienceDomService,
|
|
8858
9053
|
q as CopyService,
|
|
9054
|
+
Tt as CoverGridBodyModel,
|
|
9055
|
+
vs as CoverGridFactory,
|
|
9056
|
+
kt as CoverGridTableModel,
|
|
8859
9057
|
$ as CrudAction,
|
|
8860
9058
|
ie as CrudObjectEdit,
|
|
8861
|
-
|
|
8862
|
-
|
|
8863
|
-
|
|
8864
|
-
|
|
8865
|
-
|
|
8866
|
-
|
|
8867
|
-
|
|
8868
|
-
|
|
9059
|
+
Vt as CrudObjectView,
|
|
9060
|
+
Bt as CrudOptions,
|
|
9061
|
+
ro as CrudTableModelFactory,
|
|
9062
|
+
ve as CssVars,
|
|
9063
|
+
zs as DateToIntlDDMMYYYYCellRenderer,
|
|
9064
|
+
Gs as DateToIsoCellRenderer,
|
|
9065
|
+
js as DateToLocaleDateCellRenderer,
|
|
9066
|
+
Xs as DateToTecCellRenderer,
|
|
8869
9067
|
z as DefaultRowHeights,
|
|
8870
9068
|
lt as EleScope,
|
|
8871
9069
|
ne as EventAdapter,
|
|
8872
|
-
|
|
9070
|
+
jt as EventCheckboxChangedHandler,
|
|
8873
9071
|
Rt as ExcelService,
|
|
8874
|
-
|
|
9072
|
+
Ae as FalseFn,
|
|
8875
9073
|
xt as FocusModel,
|
|
8876
9074
|
ut as GeCellIndices,
|
|
8877
9075
|
K as GeCssColorUtil,
|
|
8878
|
-
|
|
8879
|
-
|
|
8880
|
-
|
|
8881
|
-
|
|
8882
|
-
|
|
8883
|
-
|
|
8884
|
-
|
|
9076
|
+
Hs as GeFilterService,
|
|
9077
|
+
Ls as GeKeyEvent,
|
|
9078
|
+
me as GeModelChangeEvent,
|
|
9079
|
+
ue as GeMouseEvent,
|
|
9080
|
+
L as GeoData,
|
|
9081
|
+
O as Icon,
|
|
9082
|
+
Ms as IndexAndPx,
|
|
8885
9083
|
wt as InputCellRenderer,
|
|
8886
9084
|
ht as InputHandler,
|
|
8887
|
-
|
|
9085
|
+
xe as JsonService,
|
|
8888
9086
|
W as LicenseManager,
|
|
8889
|
-
|
|
9087
|
+
Us as MaleFemaleToIconCellRenderer,
|
|
8890
9088
|
tt as MouseHandler,
|
|
8891
9089
|
et as MouseTargetData,
|
|
8892
|
-
|
|
9090
|
+
so as MultiRowsSelectionModel,
|
|
8893
9091
|
ze as NullPropertyType,
|
|
8894
|
-
|
|
8895
|
-
|
|
9092
|
+
Ys as NumberCellProgressBarCellRenderer,
|
|
9093
|
+
Js as NumberCellRenderer,
|
|
8896
9094
|
Ue as NumberPropertyType,
|
|
8897
|
-
|
|
8898
|
-
|
|
8899
|
-
|
|
9095
|
+
F as ObjectPropertyType,
|
|
9096
|
+
ft as OsxShortcutActionIdMapping,
|
|
9097
|
+
Fe as PROPERTY_TYPE_KEY_ANY,
|
|
8900
9098
|
Le as PROPERTY_TYPE_KEY_ARRAY,
|
|
8901
|
-
|
|
8902
|
-
|
|
9099
|
+
he as PROPERTY_TYPE_KEY_BOOLEAN,
|
|
9100
|
+
Pe as PROPERTY_TYPE_KEY_NULL,
|
|
8903
9101
|
ce as PROPERTY_TYPE_KEY_NUMBER,
|
|
8904
9102
|
U as PROPERTY_TYPE_KEY_OBJECT,
|
|
8905
|
-
|
|
9103
|
+
_e as PROPERTY_TYPE_KEY_STRING,
|
|
8906
9104
|
j as PROPERTY_TYPE_KEY_UNDEFINED,
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
9105
|
+
ae as Padding,
|
|
9106
|
+
eo as PositiveAndNegativeNumberRenderer,
|
|
9107
|
+
Qs as ProgressBarCellRenderer,
|
|
9108
|
+
$e as PropertyItem,
|
|
9109
|
+
Gt as PropertyTypeService,
|
|
9110
|
+
dt as RenderScope,
|
|
9111
|
+
Ws as Renderer,
|
|
9112
|
+
Ft as RequestChunk,
|
|
8915
9113
|
vt as ResizeHandler,
|
|
8916
|
-
|
|
9114
|
+
zt as SchemeGenerator,
|
|
8917
9115
|
Ne as SelectCellRenderer,
|
|
8918
|
-
|
|
9116
|
+
be as SelectionModel,
|
|
8919
9117
|
pt as SelectionService,
|
|
8920
9118
|
bt as ShortcutService,
|
|
8921
|
-
|
|
9119
|
+
Zs as SimpleArrayCellRenderer,
|
|
8922
9120
|
yt as SimpleDomService,
|
|
8923
9121
|
y as Size,
|
|
8924
|
-
|
|
8925
|
-
|
|
8926
|
-
|
|
9122
|
+
ct as SortItem,
|
|
9123
|
+
Be as SortedOptions,
|
|
9124
|
+
qs as StarRatingCellRenderer,
|
|
8927
9125
|
rt as StoreStateCollapsedExpandService,
|
|
8928
9126
|
ot as StoreStateScrollPosService,
|
|
8929
9127
|
nt as StoreStateSortingService,
|
|
8930
9128
|
je as StringPropertyType,
|
|
8931
9129
|
st as TableApi,
|
|
8932
|
-
|
|
9130
|
+
Os as TableCellUpdateEvent,
|
|
8933
9131
|
V as TableFactory,
|
|
8934
9132
|
oe as TableModel,
|
|
8935
|
-
|
|
9133
|
+
Dt as TableModelAndOptions,
|
|
8936
9134
|
J as TableOptions,
|
|
8937
9135
|
He as TableScope,
|
|
8938
|
-
|
|
9136
|
+
io as ThreeColorGradientArg,
|
|
8939
9137
|
Ee as TreeCheckboxModel,
|
|
8940
9138
|
le as TreeFactory,
|
|
8941
|
-
|
|
8942
|
-
|
|
8943
|
-
|
|
8944
|
-
|
|
9139
|
+
Ve as TreeOptions,
|
|
9140
|
+
Re as TreeRow,
|
|
9141
|
+
It as TreeRowService,
|
|
9142
|
+
Ks as TrueFalseCellRenderer,
|
|
8945
9143
|
At as TrueFn,
|
|
8946
|
-
|
|
9144
|
+
De as TwoColorGradientArg,
|
|
8947
9145
|
X as UNIMPORTANT_TYPES,
|
|
8948
9146
|
se as UndefinedPropertyType,
|
|
8949
|
-
|
|
9147
|
+
no as UrlInfo,
|
|
8950
9148
|
Ke as ValueInfo,
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
|
|
9149
|
+
Pt as ValueLabel,
|
|
9150
|
+
gt as WindowsShortcutActionIdMapping,
|
|
9151
|
+
Rs as actionIds,
|
|
9152
|
+
Ds as allCenter,
|
|
9153
|
+
ks as allLeft,
|
|
9154
|
+
Fs as allRight,
|
|
9155
|
+
Es as bodyCenter,
|
|
9156
|
+
Is as bodyLeft,
|
|
9157
|
+
Ts as bodyRight,
|
|
9158
|
+
Ce as createHarmonizedShortcutByKeyboardEvent,
|
|
8961
9159
|
Ge as debounce,
|
|
8962
|
-
|
|
8963
|
-
|
|
9160
|
+
to as editInputPipeForNumber,
|
|
9161
|
+
Se as entitySuffix,
|
|
8964
9162
|
qe as firstLetterUppercase,
|
|
8965
9163
|
ee as getAreaIdentByString,
|
|
8966
9164
|
Xe as getEntityName,
|
|
@@ -8968,39 +9166,39 @@ export {
|
|
|
8968
9166
|
re as isAreaModelTree,
|
|
8969
9167
|
Ze as isCheckboxColumnDef,
|
|
8970
9168
|
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
|
-
|
|
9169
|
+
Cs as px0,
|
|
9170
|
+
Ss as px10,
|
|
9171
|
+
us as px100,
|
|
9172
|
+
hs as px110,
|
|
9173
|
+
cs as px120,
|
|
9174
|
+
ds as px130,
|
|
9175
|
+
as as px140,
|
|
9176
|
+
ls as px150,
|
|
9177
|
+
ns as px160,
|
|
9178
|
+
rs as px170,
|
|
9179
|
+
is as px180,
|
|
9180
|
+
os as px190,
|
|
9181
|
+
xs as px20,
|
|
9182
|
+
Me as px200,
|
|
9183
|
+
ss as px210,
|
|
9184
|
+
ts as px220,
|
|
9185
|
+
es as px230,
|
|
9186
|
+
Qt as px240,
|
|
9187
|
+
Zt as px250,
|
|
9188
|
+
qt as px260,
|
|
9189
|
+
Jt as px270,
|
|
9190
|
+
Xt as px280,
|
|
9191
|
+
Kt as px290,
|
|
9192
|
+
ws as px30,
|
|
9193
|
+
Mt as px300,
|
|
9194
|
+
ys as px40,
|
|
9195
|
+
Yt as px400,
|
|
9196
|
+
bs as px50,
|
|
9197
|
+
Ut as px500,
|
|
9198
|
+
ms as px60,
|
|
9199
|
+
fs as px70,
|
|
9200
|
+
gs as px80,
|
|
9201
|
+
ps as px90,
|
|
9202
|
+
Ht as throttle,
|
|
9005
9203
|
Je as trimArraySuffixes
|
|
9006
9204
|
};
|