@guiexpert/table 1.1.84 → 1.1.85
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/LICENSE +21 -0
- package/README.md +7 -1
- package/css/main.css +6 -6
- package/css/table-color-vars.css +6 -6
- package/index.cjs +28 -28
- package/index.js +785 -658
- package/lib/table/data/tablemodel/areamodel/area-model-array-of-arrays.d.ts +7 -0
- package/lib/table/data/tablemodel/areamodel/area-model-object-array.d.ts +7 -0
- package/lib/table/data/tablemodel/areamodel/area-model-tree.d.ts +7 -0
- package/lib/table/data/tablemodel/areamodel/area-model.d.ts +13 -4
- package/lib/table/data/tablemodel/areamodel/area-model.if.d.ts +16 -0
- package/lib/table/ele-scope.d.ts +7 -0
- package/lib/table/render-scope.d.ts +36 -0
- package/package.json +14 -3
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function zt(d, e = 500) {
|
|
2
2
|
let t = null, s = 0;
|
|
3
3
|
return function(...o) {
|
|
4
4
|
const i = Date.now(), r = e - (i - s);
|
|
@@ -7,7 +7,7 @@ function Nt(d, e = 500) {
|
|
|
7
7
|
}, r));
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function Ue(d, e = 500) {
|
|
11
11
|
let t = null;
|
|
12
12
|
return function(...s) {
|
|
13
13
|
t && window.clearTimeout(t), t = window.setTimeout(() => {
|
|
@@ -15,7 +15,7 @@ function Ge(d, e = 500) {
|
|
|
15
15
|
}, e);
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function jt(d = 500) {
|
|
19
19
|
return function(e, t, s) {
|
|
20
20
|
let o = 0;
|
|
21
21
|
const i = s.value;
|
|
@@ -25,43 +25,43 @@ function Gt(d = 500) {
|
|
|
25
25
|
}, s;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
class
|
|
28
|
+
const _e = "any", X = "undefined", Le = "null", Oe = "string", ge = "number", fe = "boolean", Ve = "Array", K = "object", Z = [Le, X, _e];
|
|
29
|
+
class He {
|
|
30
30
|
constructor(e) {
|
|
31
|
-
this.propertyName = e, this.type =
|
|
31
|
+
this.propertyName = e, this.type = _e;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class ne {
|
|
35
35
|
constructor(e) {
|
|
36
|
-
this.propertyName = e, this.type =
|
|
36
|
+
this.propertyName = e, this.type = X;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
class
|
|
39
|
+
class Ye {
|
|
40
40
|
constructor(e) {
|
|
41
|
-
this.propertyName = e, this.type =
|
|
41
|
+
this.propertyName = e, this.type = Le;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
|
-
class
|
|
44
|
+
class Xe {
|
|
45
45
|
constructor(e) {
|
|
46
|
-
this.propertyName = e, this.type =
|
|
46
|
+
this.propertyName = e, this.type = Oe;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
class
|
|
49
|
+
class Ke {
|
|
50
50
|
constructor(e) {
|
|
51
|
-
this.propertyName = e, this.type =
|
|
51
|
+
this.propertyName = e, this.type = ge;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
class
|
|
54
|
+
class Je {
|
|
55
55
|
constructor(e) {
|
|
56
|
-
this.propertyName = e, this.type =
|
|
56
|
+
this.propertyName = e, this.type = fe;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
class B {
|
|
60
60
|
constructor(e, t = []) {
|
|
61
|
-
this.propertyName = e, this.items = t, this.type =
|
|
61
|
+
this.propertyName = e, this.items = t, this.type = Ve;
|
|
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 Ve {
|
|
|
69
69
|
return `PropertyItem(propertyName: ${this.propertyName}, types: [${this.types.map((e) => e.type).join(", ")}])`;
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
72
|
+
class L {
|
|
73
73
|
constructor(e, t, s = []) {
|
|
74
|
-
this.propertyName = e, this.className = t, this.properties = s, this.type =
|
|
74
|
+
this.propertyName = e, this.className = t, this.properties = s, this.type = K;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
|
-
class
|
|
77
|
+
class Ut {
|
|
78
78
|
constructor() {
|
|
79
79
|
this.rootPropertyType = null, this.allowCustomRenderer = !0, this.bufCustomRenderer = [], this.LABEL_MAPPINGS = {
|
|
80
80
|
Id: "ID",
|
|
@@ -101,8 +101,8 @@ class zt {
|
|
|
101
101
|
if (!this.rootPropertyType)
|
|
102
102
|
return s;
|
|
103
103
|
if (e instanceof B) {
|
|
104
|
-
const o = e.items.find((i) => i.type ===
|
|
105
|
-
if (o && o instanceof
|
|
104
|
+
const o = e.items.find((i) => i.type === K);
|
|
105
|
+
if (o && o instanceof L) {
|
|
106
106
|
const i = o.properties;
|
|
107
107
|
s.push(" const columnDefs: ColumnDefIf[] = ["), this.iteratePropertyItems(s, i, ""), s.push(" ];");
|
|
108
108
|
}
|
|
@@ -111,28 +111,28 @@ class zt {
|
|
|
111
111
|
}
|
|
112
112
|
iteratePropertyItems(e, t, s = "") {
|
|
113
113
|
for (let o = 0; o < t.length; o++) {
|
|
114
|
-
let r = t[o].types.filter((n) => !
|
|
114
|
+
let r = t[o].types.filter((n) => !Z.includes(n.type));
|
|
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 L)
|
|
119
119
|
this.iteratePropertyItems(e, n.properties, l);
|
|
120
120
|
else {
|
|
121
121
|
let a = "";
|
|
122
122
|
if (n instanceof B) {
|
|
123
|
-
const p = n.items.find((m) => m.type ===
|
|
124
|
-
p && p instanceof
|
|
123
|
+
const p = n.items.find((m) => m.type === K);
|
|
124
|
+
p && p instanceof L && (a = p.className);
|
|
125
125
|
}
|
|
126
126
|
const c = this.getReadableColumnLabel(l);
|
|
127
127
|
let h = 100, u = "", f = "ge-table-text-align-left";
|
|
128
|
-
if (n.type ===
|
|
128
|
+
if (n.type === Ve) {
|
|
129
129
|
if (this.allowCustomRenderer && a) {
|
|
130
130
|
const p = `${a}ArrayCellRenderer`;
|
|
131
131
|
u = ` bodyRenderer: new ${p}(),`, f = "", this.renderCumstomCellRenderer(a, p);
|
|
132
132
|
} else
|
|
133
133
|
u = " bodyRenderer: new SimpleArrayCellRenderer(),";
|
|
134
134
|
h = 250;
|
|
135
|
-
} else n.type ===
|
|
135
|
+
} else n.type === ge ? (u = " bodyRenderer: new NumberCellRenderer(),", f = "ge-table-text-align-right") : n.type === fe && (u = " bodyRenderer: new TrueFalseCellRenderer(),", f = "ge-table-text-align-center", h = 80);
|
|
136
136
|
e.push(` ColumnDef.create({
|
|
137
137
|
property: "${l}",
|
|
138
138
|
headerLabel: "${c}",
|
|
@@ -194,7 +194,7 @@ export class ${t} implements CellRendererIf {
|
|
|
194
194
|
`);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
class
|
|
197
|
+
class ve {
|
|
198
198
|
/**
|
|
199
199
|
*
|
|
200
200
|
* Fixes an invalid json like this:
|
|
@@ -260,21 +260,21 @@ class xe {
|
|
|
260
260
|
return s;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
class
|
|
263
|
+
class qe {
|
|
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 He("")]);
|
|
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
|
|
274
|
-
let e =
|
|
275
|
-
return e.includes(
|
|
272
|
+
const Re = "Entity";
|
|
273
|
+
function Ze(d) {
|
|
274
|
+
let e = Qe(et(d));
|
|
275
|
+
return e.includes(Re) || (e = e + Re), e;
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function Qe(d) {
|
|
278
278
|
if (!d || d.length === 0) return d;
|
|
279
279
|
const e = ["Array", "Arr", "List", "s"];
|
|
280
280
|
for (const t of e)
|
|
@@ -282,10 +282,10 @@ function Je(d) {
|
|
|
282
282
|
return d.slice(0, -t.length);
|
|
283
283
|
return d;
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function et(d) {
|
|
286
286
|
return !d || d.length === 0 ? "" : d[0].toUpperCase() + d.slice(1);
|
|
287
287
|
}
|
|
288
|
-
class
|
|
288
|
+
class Yt {
|
|
289
289
|
constructor() {
|
|
290
290
|
this.debugging = !1;
|
|
291
291
|
}
|
|
@@ -372,7 +372,7 @@ class jt {
|
|
|
372
372
|
json2PropertyType(e, t = "") {
|
|
373
373
|
let s;
|
|
374
374
|
if (typeof e == "string") {
|
|
375
|
-
const o = new
|
|
375
|
+
const o = new ve().fixJSON(e);
|
|
376
376
|
s = this.json2Object(o);
|
|
377
377
|
} else
|
|
378
378
|
s = e;
|
|
@@ -488,7 +488,7 @@ class jt {
|
|
|
488
488
|
json2ValueInfos(e, t = "") {
|
|
489
489
|
let s;
|
|
490
490
|
if (typeof e == "string") {
|
|
491
|
-
const o = new
|
|
491
|
+
const o = new ve().fixJSON(e);
|
|
492
492
|
s = this.json2Object(o);
|
|
493
493
|
} else
|
|
494
494
|
s = e;
|
|
@@ -512,14 +512,14 @@ class jt {
|
|
|
512
512
|
const r = s.get(i);
|
|
513
513
|
if (r) {
|
|
514
514
|
let n = !1;
|
|
515
|
-
const l = r.propertyItem.types.filter((a) => !
|
|
515
|
+
const l = r.propertyItem.types.filter((a) => !Z.includes(a.type));
|
|
516
516
|
if (l.length === 1) {
|
|
517
517
|
const a = l[0];
|
|
518
518
|
if (a instanceof B) {
|
|
519
519
|
n = !0;
|
|
520
520
|
for (const c of o.propertyItem.types)
|
|
521
521
|
a.items.push(c);
|
|
522
|
-
} else a instanceof
|
|
522
|
+
} else a instanceof L && (n = !0, a.properties.push(o.propertyItem));
|
|
523
523
|
}
|
|
524
524
|
if (!n)
|
|
525
525
|
for (const a of o.propertyItem.types)
|
|
@@ -527,7 +527,7 @@ class jt {
|
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
return t || new
|
|
530
|
+
return t || new He("");
|
|
531
531
|
}
|
|
532
532
|
logValueInfos(e) {
|
|
533
533
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -557,7 +557,7 @@ class jt {
|
|
|
557
557
|
const l = this.getFirstValueInfoByPath(e, n);
|
|
558
558
|
if (Array.isArray(l == null ? void 0 : l.value)) {
|
|
559
559
|
const a = (l == null ? void 0 : l.value.length) ?? 0, c = this.countPath(e, i.path);
|
|
560
|
-
a > c && (i.propertyItem.types.some((h) => h.type ===
|
|
560
|
+
a > c && (i.propertyItem.types.some((h) => h.type === X) || i.propertyItem.types.push(new ne(i.property)));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
}
|
|
@@ -578,9 +578,9 @@ class jt {
|
|
|
578
578
|
}
|
|
579
579
|
extractValueInfos(e, t) {
|
|
580
580
|
const s = [], o = (i, r, n) => {
|
|
581
|
-
const l = new
|
|
581
|
+
const l = new qe();
|
|
582
582
|
let a = r.split("/").pop() || "";
|
|
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 ===
|
|
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 === K && !Array.isArray(i)) {
|
|
584
584
|
for (const c in i)
|
|
585
585
|
if (i.hasOwnProperty(c)) {
|
|
586
586
|
const h = r ? `${r}/${c}` : c;
|
|
@@ -594,15 +594,15 @@ class jt {
|
|
|
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
|
|
602
|
+
return e === null ? new Ye(t) : e === void 0 ? new ne(t) : typeof e === Oe ? new Xe(t) : typeof e === ge && !isNaN(e) ? new Ke(t) : typeof e === fe ? new Je(t) : Array.isArray(e) ? new B(t) : typeof e === K ? new L(t, Ze(t)) : new ne(t);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
class
|
|
605
|
+
class Xt {
|
|
606
606
|
constructor() {
|
|
607
607
|
this.orOperator = "|", this.rootPropertyType = null, this.rootName = "Root", this.renderTypeScriptInterfacesFifo = [], this.renderTypeScriptInterfacesDone = [];
|
|
608
608
|
}
|
|
@@ -622,11 +622,11 @@ class Ut {
|
|
|
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 L) {
|
|
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 L) {
|
|
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 Ut {
|
|
|
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 L)
|
|
640
640
|
a !== this.rootPropertyType && this.renderTypeScriptInterfacesFifo.push(a);
|
|
641
641
|
else if (a instanceof B)
|
|
642
642
|
for (const c of a.items)
|
|
643
|
-
c instanceof
|
|
643
|
+
c instanceof L && this.renderTypeScriptInterfacesFifo.push(c);
|
|
644
644
|
}
|
|
645
645
|
t.push("}"), t.push("");
|
|
646
646
|
}
|
|
@@ -651,7 +651,7 @@ class Ut {
|
|
|
651
651
|
var s, o;
|
|
652
652
|
if (((s = e.types) == null ? void 0 : s.length) === 0) return "any";
|
|
653
653
|
if (((o = e.types) == null ? void 0 : o.length) === 1) return this.renderType(e.types[0], e);
|
|
654
|
-
const t = e.types.map((i) => this.renderType(i, e)).filter((i) => i !==
|
|
654
|
+
const t = e.types.map((i) => this.renderType(i, e)).filter((i) => i !== X).sort((i, r) => Z.includes(i) ? 100 : Z.includes(r) ? -100 : i.localeCompare(r)).join(this.orOperator);
|
|
655
655
|
return t.includes(this.orOperator) ? "(" + t + ")" : t;
|
|
656
656
|
}
|
|
657
657
|
renderType(e, t) {
|
|
@@ -659,22 +659,22 @@ class Ut {
|
|
|
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 L ? e.className : e.type;
|
|
663
663
|
}
|
|
664
664
|
containsUndefinedPropertyType(e) {
|
|
665
665
|
for (const t of e.types)
|
|
666
|
-
if (t.type ===
|
|
666
|
+
if (t.type === X) return !0;
|
|
667
667
|
return !1;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
class
|
|
670
|
+
class G {
|
|
671
671
|
// The constructor is private to prevent direct construction calls
|
|
672
672
|
// with the `new` operator
|
|
673
673
|
constructor() {
|
|
674
674
|
this.alreadySet = !1;
|
|
675
675
|
}
|
|
676
676
|
static getInstance() {
|
|
677
|
-
return
|
|
677
|
+
return G.instance || (G.instance = new G()), G.instance;
|
|
678
678
|
}
|
|
679
679
|
/**
|
|
680
680
|
* Method to set the license key for the application.
|
|
@@ -692,21 +692,21 @@ class W {
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function j(d) {
|
|
696
696
|
return d && d.type === "TreeRow";
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function ce(d) {
|
|
699
699
|
return d && d.type === "AreaModelTree";
|
|
700
700
|
}
|
|
701
|
-
function
|
|
701
|
+
function tt(d) {
|
|
702
702
|
return d && d.type === "CheckboxColumnDef";
|
|
703
703
|
}
|
|
704
|
-
class
|
|
704
|
+
class me {
|
|
705
705
|
constructor(e = -1, t = -1, s = -1, o = -1, i, r, n, l = 0, a = 0, c = 0, h = "") {
|
|
706
706
|
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = n, this.clickCount = l, this.draggingX = a, this.draggingY = c, this.action = h;
|
|
707
707
|
}
|
|
708
708
|
clone() {
|
|
709
|
-
return new
|
|
709
|
+
return new me(
|
|
710
710
|
this.rowIndex,
|
|
711
711
|
this.rowTop,
|
|
712
712
|
this.columnIndex,
|
|
@@ -721,25 +721,25 @@ class ue {
|
|
|
721
721
|
);
|
|
722
722
|
}
|
|
723
723
|
}
|
|
724
|
-
class
|
|
724
|
+
class V {
|
|
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 Be {
|
|
730
|
+
constructor(e = new V(
|
|
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 V(
|
|
735
735
|
">",
|
|
736
736
|
"",
|
|
737
737
|
["ge-table-tree-arrow-collapsed"]
|
|
738
|
-
), s = new
|
|
738
|
+
), s = new V(
|
|
739
739
|
">",
|
|
740
740
|
"color:transparent;",
|
|
741
741
|
["gt-table-tree-arrow-hidden"]
|
|
742
|
-
), o = new
|
|
742
|
+
), o = new V(
|
|
743
743
|
"↕",
|
|
744
744
|
"",
|
|
745
745
|
["gt-table-tree-arrow-expanded-all"]
|
|
@@ -747,12 +747,12 @@ 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 We {
|
|
751
|
+
constructor(e = new V("↑", "", ["ge-header-sorted-asc"]), t = new V("↓", "", ["ge-header-sorted-desc"]), s = new V("↑", "color:transparent;", [])) {
|
|
752
752
|
this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
|
-
class
|
|
755
|
+
class st {
|
|
756
756
|
constructor(e) {
|
|
757
757
|
this.domService = e;
|
|
758
758
|
}
|
|
@@ -842,8 +842,8 @@ class Qe {
|
|
|
842
842
|
this.domService.addClass(m, "ge-table-col-div"), p && this.domService.addClass(m, "ge-with-checkbox"), this.domService.addClass(m, `ge-table-col-div-${s.index}`), this.domService.setAttribute(m, "data-col-index", `${s.index}`), this.domService.setAttribute(m, "data-row-index", `${o}`), this.domService.setAttribute(m, "data-area", `${r}`);
|
|
843
843
|
const g = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
844
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
|
-
const
|
|
846
|
-
this.addLabelDiv(m, l,
|
|
845
|
+
const y = a !== "none" && i === 0;
|
|
846
|
+
this.addLabelDiv(m, l, y, o, i, r);
|
|
847
847
|
}
|
|
848
848
|
return u && this.addSortedIcon(m, u, c == null ? void 0 : c.sortedOptions, i), this.domService.appendChild(t, m), m;
|
|
849
849
|
}
|
|
@@ -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 We(), 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,7 +883,7 @@ 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 Be(), 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;
|
|
@@ -934,22 +934,22 @@ 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
|
|
938
|
-
class
|
|
937
|
+
const re = (d) => d === "header" ? "header" : d === "footer" ? "footer" : "body";
|
|
938
|
+
class ot {
|
|
939
939
|
constructor(e, t) {
|
|
940
940
|
if (this.rowIdx = -1, this.colIdx = -1, this.action = null, this.inputType = null, this.className = "", e !== null && (e instanceof HTMLDivElement || e instanceof HTMLSpanElement || e instanceof HTMLInputElement)) {
|
|
941
941
|
this.className = e.className, this.action = e.getAttribute("data-ge-action"), this.inputType = e.getAttribute("data-input-type"), this.rowIdx = Number(e.getAttribute("data-row-index")), this.colIdx = Number(e.getAttribute("data-col-index"));
|
|
942
942
|
const s = e.getAttribute("data-area");
|
|
943
|
-
if (s && (this.areaIdent =
|
|
943
|
+
if (s && (this.areaIdent = re(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
|
|
944
944
|
const o = e;
|
|
945
945
|
this.value = o.value;
|
|
946
946
|
}
|
|
947
947
|
}
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
|
-
class
|
|
950
|
+
class it {
|
|
951
951
|
constructor(e) {
|
|
952
|
-
this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
|
|
952
|
+
this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), this.tableScope.scrollViewport.addEventListener("wheel", this.tableScope.onWheel.bind(this.tableScope), { passive: !1 }), [window, this.tableScope.hostElement].forEach(
|
|
953
953
|
(t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
|
|
954
954
|
);
|
|
955
955
|
}
|
|
@@ -979,14 +979,14 @@ class tt {
|
|
|
979
979
|
return;
|
|
980
980
|
}
|
|
981
981
|
this.lastClicked = t;
|
|
982
|
-
const s = new
|
|
982
|
+
const s = new ot(e.target, this.tableScope);
|
|
983
983
|
if (s.action === "toggleExpandCollapseAll")
|
|
984
984
|
this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
|
|
985
985
|
else if (s.action === "toggleHeaderGroup")
|
|
986
986
|
this.tableScope.toggleHeaderGroup(s), e.preventDefault(), e.stopPropagation();
|
|
987
987
|
else if (s.inputType === "checkbox" && s.areaIdent)
|
|
988
988
|
this.tableScope.toggleRowCheckbox(s.rowIdx, s.colIdx, s.areaIdent), e.preventDefault(), e.stopPropagation();
|
|
989
|
-
else if (
|
|
989
|
+
else if (j(s.row) && s.areaModel) {
|
|
990
990
|
const o = s.colIdx === this.getArrowColumnIndex() && e.altKey, i = s.className.includes("ge-table-tree-arrow-div");
|
|
991
991
|
if (o || i) {
|
|
992
992
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -1008,12 +1008,12 @@ class tt {
|
|
|
1008
1008
|
*/
|
|
1009
1009
|
onHostElementDblClicked(e) {
|
|
1010
1010
|
if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
|
|
1011
|
-
const t = e.target, s = t.getAttribute("data-area"), o =
|
|
1011
|
+
const t = e.target, s = t.getAttribute("data-area"), o = re(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), n = this.tableScope.tableModel.getAreaModel(o);
|
|
1012
1012
|
if (s && o === "header")
|
|
1013
1013
|
this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
|
|
1014
1014
|
else if (t.getAttribute("data-row-index")) {
|
|
1015
1015
|
const l = n.getRowByIndex(i);
|
|
1016
|
-
if (s && o === "body" && n.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)),
|
|
1016
|
+
if (s && o === "body" && n.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), j(l) && r === this.getArrowColumnIndex()) {
|
|
1017
1017
|
e.preventDefault(), e.stopPropagation();
|
|
1018
1018
|
const a = l;
|
|
1019
1019
|
a.expanded = !a.expanded, "recalcVisibleTreeRows" in n && n.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(a);
|
|
@@ -1081,7 +1081,7 @@ class tt {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
}
|
|
1083
1083
|
}
|
|
1084
|
-
class
|
|
1084
|
+
class be {
|
|
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 pe {
|
|
|
1179
1179
|
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
1180
1180
|
}
|
|
1181
1181
|
}
|
|
1182
|
-
class
|
|
1182
|
+
class ye {
|
|
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 ge {
|
|
|
1197
1197
|
return s * ("" + e).localeCompare("" + t);
|
|
1198
1198
|
}
|
|
1199
1199
|
}
|
|
1200
|
-
class _ extends
|
|
1200
|
+
class _ extends be {
|
|
1201
1201
|
/**
|
|
1202
1202
|
* Creates an instance of AreaModelObjectArray.
|
|
1203
1203
|
*
|
|
@@ -1228,7 +1228,7 @@ class _ extends pe {
|
|
|
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 ye(), 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.
|
|
@@ -1323,7 +1323,7 @@ class _ extends pe {
|
|
|
1323
1323
|
getValueAt(e, t) {
|
|
1324
1324
|
const s = this.properties[t];
|
|
1325
1325
|
let o = this.filteredRows[e];
|
|
1326
|
-
return
|
|
1326
|
+
return j(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
|
|
1327
1327
|
}
|
|
1328
1328
|
/**
|
|
1329
1329
|
* Retrieves the filtered and sorted rows from the dataset.
|
|
@@ -1430,6 +1430,15 @@ class _ extends pe {
|
|
|
1430
1430
|
getRowHeight(e) {
|
|
1431
1431
|
return this.defaultRowHeight;
|
|
1432
1432
|
}
|
|
1433
|
+
/**
|
|
1434
|
+
* All rows share `defaultRowHeight` – unless a subclass overrides `getRowHeight()`, then row heights may
|
|
1435
|
+
* vary and `undefined` is returned.
|
|
1436
|
+
*
|
|
1437
|
+
* @returns {number | undefined} The constant row height or `undefined`.
|
|
1438
|
+
*/
|
|
1439
|
+
getConstantRowHeight() {
|
|
1440
|
+
return this.getRowHeight === _.prototype.getRowHeight && this.defaultRowHeight > 0 ? this.defaultRowHeight : void 0;
|
|
1441
|
+
}
|
|
1433
1442
|
/**
|
|
1434
1443
|
* Returns the row object at the specified index from the filtered rows array.
|
|
1435
1444
|
* This method overrides the parent class implementation.
|
|
@@ -1631,7 +1640,7 @@ class _ extends pe {
|
|
|
1631
1640
|
return o && t.length ? this.getPropertyValue(o, t) : o;
|
|
1632
1641
|
}
|
|
1633
1642
|
}
|
|
1634
|
-
class
|
|
1643
|
+
class rt {
|
|
1635
1644
|
constructor(e) {
|
|
1636
1645
|
this.tableScope = e;
|
|
1637
1646
|
}
|
|
@@ -2979,7 +2988,7 @@ class st {
|
|
|
2979
2988
|
return this.tableScope.loggingActive;
|
|
2980
2989
|
}
|
|
2981
2990
|
}
|
|
2982
|
-
class
|
|
2991
|
+
class we {
|
|
2983
2992
|
constructor(e) {
|
|
2984
2993
|
this.getStorageKeyFn = e;
|
|
2985
2994
|
}
|
|
@@ -3046,7 +3055,7 @@ class fe {
|
|
|
3046
3055
|
// }
|
|
3047
3056
|
// }
|
|
3048
3057
|
}
|
|
3049
|
-
class
|
|
3058
|
+
class nt extends we {
|
|
3050
3059
|
constructor(e) {
|
|
3051
3060
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
3052
3061
|
}
|
|
@@ -3068,14 +3077,14 @@ class ot extends fe {
|
|
|
3068
3077
|
}
|
|
3069
3078
|
}
|
|
3070
3079
|
}
|
|
3071
|
-
class
|
|
3080
|
+
class lt {
|
|
3072
3081
|
constructor(e = "collapsed", t = [], s = !1, o = !1) {
|
|
3073
3082
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
3074
3083
|
}
|
|
3075
3084
|
}
|
|
3076
|
-
class
|
|
3085
|
+
class at extends we {
|
|
3077
3086
|
constructor(e) {
|
|
3078
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
3087
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new lt(), this.load();
|
|
3079
3088
|
}
|
|
3080
3089
|
collapsedExpandedStateGet() {
|
|
3081
3090
|
return this.collapsedExpandedState;
|
|
@@ -3107,7 +3116,7 @@ class rt extends fe {
|
|
|
3107
3116
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
3108
3117
|
}
|
|
3109
3118
|
}
|
|
3110
|
-
class
|
|
3119
|
+
class ct extends we {
|
|
3111
3120
|
constructor(e) {
|
|
3112
3121
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
3113
3122
|
}
|
|
@@ -3128,14 +3137,14 @@ class nt extends fe {
|
|
|
3128
3137
|
}
|
|
3129
3138
|
}
|
|
3130
3139
|
}
|
|
3131
|
-
class
|
|
3140
|
+
class O {
|
|
3132
3141
|
constructor(e = 0, t = 0, s = 0, o = 0, i) {
|
|
3133
3142
|
this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
|
|
3134
3143
|
}
|
|
3135
3144
|
}
|
|
3136
|
-
class
|
|
3145
|
+
const se = class se {
|
|
3137
3146
|
constructor(e, t, s, o) {
|
|
3138
|
-
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new
|
|
3147
|
+
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new O(), this.areaBodyCenterGeo = new O(), this.areaBodyEastGeo = new O();
|
|
3139
3148
|
const i = this.hostElement;
|
|
3140
3149
|
i.innerText = "", this.dom.setAttribute(i, "tabindex", "0"), this.dom.setStyle(
|
|
3141
3150
|
this.dom.addClass("ge-table", i),
|
|
@@ -3300,11 +3309,13 @@ class lt {
|
|
|
3300
3309
|
* @returns {void} Returns nothing.
|
|
3301
3310
|
*/
|
|
3302
3311
|
resetSizeOfWrapperDiv() {
|
|
3303
|
-
const e = `${this.tableModel.getContentWidthInPixel()}px`, t =
|
|
3304
|
-
this.dom.setStyle(this.contentWrapperDiv, "width", e), this.dom.setStyle(this.contentWrapperDiv, "height",
|
|
3312
|
+
const e = `${this.tableModel.getContentWidthInPixel()}px`, t = this.tableModel.getContentHeightInPixel() + 1, s = `${Math.min(t, se.maxScrollHeightInPx)}px`;
|
|
3313
|
+
this.dom.setStyle(this.contentWrapperDiv, "width", e), this.dom.setStyle(this.contentWrapperDiv, "height", s);
|
|
3305
3314
|
}
|
|
3306
|
-
}
|
|
3307
|
-
|
|
3315
|
+
};
|
|
3316
|
+
se.maxScrollHeightInPx = 8e6;
|
|
3317
|
+
let Q = se;
|
|
3318
|
+
class M {
|
|
3308
3319
|
/**
|
|
3309
3320
|
* Represents a constructor for a class.
|
|
3310
3321
|
* @constructor
|
|
@@ -3318,7 +3329,7 @@ class A {
|
|
|
3318
3329
|
this.r1 = e, this.c1 = t, this.r2 = s, this.c2 = o, this.gammaRange = i;
|
|
3319
3330
|
}
|
|
3320
3331
|
static create(e) {
|
|
3321
|
-
return e.gammaRange === void 0 && (e.gammaRange = !1), new
|
|
3332
|
+
return e.gammaRange === void 0 && (e.gammaRange = !1), new M(
|
|
3322
3333
|
e.rowIndex1,
|
|
3323
3334
|
e.columnIndex1,
|
|
3324
3335
|
e.rowIndex2,
|
|
@@ -3327,19 +3338,19 @@ class A {
|
|
|
3327
3338
|
);
|
|
3328
3339
|
}
|
|
3329
3340
|
static singleCell(e, t) {
|
|
3330
|
-
return new
|
|
3341
|
+
return new M(e, t, e, t);
|
|
3331
3342
|
}
|
|
3332
3343
|
static singleRow(e) {
|
|
3333
|
-
return new
|
|
3344
|
+
return new M(e, 0, e, Number.MAX_SAFE_INTEGER);
|
|
3334
3345
|
}
|
|
3335
3346
|
static singleColumn(e) {
|
|
3336
|
-
return new
|
|
3347
|
+
return new M(0, e, Number.MAX_SAFE_INTEGER, e);
|
|
3337
3348
|
}
|
|
3338
3349
|
isInRange(e, t) {
|
|
3339
3350
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
3340
3351
|
}
|
|
3341
3352
|
}
|
|
3342
|
-
class
|
|
3353
|
+
class dt {
|
|
3343
3354
|
constructor(e, t) {
|
|
3344
3355
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
3345
3356
|
}
|
|
@@ -3355,7 +3366,7 @@ class at {
|
|
|
3355
3366
|
i === 0 && (i = 1), r === 0 && (r = 1);
|
|
3356
3367
|
const n = "gammaCells" in this.areaModel;
|
|
3357
3368
|
this.colAndRowspanRanges.push(
|
|
3358
|
-
new
|
|
3369
|
+
new M(s, o, s + r - 1, o + i - 1, n)
|
|
3359
3370
|
);
|
|
3360
3371
|
}
|
|
3361
3372
|
}
|
|
@@ -3377,17 +3388,17 @@ class T {
|
|
|
3377
3388
|
this.header = e, this.body = t, this.footer = s;
|
|
3378
3389
|
}
|
|
3379
3390
|
}
|
|
3380
|
-
class
|
|
3391
|
+
class ht extends Q {
|
|
3381
3392
|
constructor(e, t, s, o) {
|
|
3382
3393
|
var r, n;
|
|
3383
3394
|
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
3395
|
header: [],
|
|
3385
3396
|
body: [],
|
|
3386
3397
|
footer: []
|
|
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),
|
|
3398
|
+
}, this.tree = !1, this.colAndRowspanModels = new T(), this.draggingTargetColumnIndex = -1, this.contentScrollTop = 0, 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), ce(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
3388
3399
|
(l) => {
|
|
3389
3400
|
var a;
|
|
3390
|
-
this.colAndRowspanModels[l] = new
|
|
3401
|
+
this.colAndRowspanModels[l] = new dt(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
|
|
3391
3402
|
}
|
|
3392
3403
|
);
|
|
3393
3404
|
}
|
|
@@ -3469,23 +3480,39 @@ class ct extends lt {
|
|
|
3469
3480
|
* to the table's appearance and behavior after a scroll event occurs.
|
|
3470
3481
|
*/
|
|
3471
3482
|
adjustAfterScrolling() {
|
|
3472
|
-
var
|
|
3473
|
-
for (const
|
|
3474
|
-
|
|
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),
|
|
3476
|
-
|
|
3483
|
+
var i;
|
|
3484
|
+
for (const r of this.removables)
|
|
3485
|
+
r.remove();
|
|
3486
|
+
if (this.hideHoverRow(), this.hideHoverColumn(), this.scrollTop = this.scrollViewport.scrollTop, this.scrollLeft = this.scrollViewport.scrollLeft, this.scrollViewportLeft = this.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), this.pendingContentScroll) {
|
|
3487
|
+
const r = this.getContentScrollRangeY();
|
|
3488
|
+
Math.abs(this.scrollTop - this.pendingContentScroll.scrollTop) <= 1 && r > 0 ? this.scrollFactorY = Math.min(1, Math.max(0, this.pendingContentScroll.contentTop / r)) : this.pendingContentScroll = void 0;
|
|
3489
|
+
}
|
|
3490
|
+
isNaN(this.scrollFactorX) && (this.scrollFactorX = 0);
|
|
3491
|
+
const e = this.hostElement.clientWidth, t = this.hostElement.clientHeight, s = this.areaBodyWest.child.clientWidth, o = this.areaHeaderCenter.child.clientHeight;
|
|
3492
|
+
this.areaHeightsOfRenderPass = {
|
|
3493
|
+
body: this.areaBodyCenter.child.clientHeight,
|
|
3494
|
+
footer: this.areaFooterCenter.child.clientHeight,
|
|
3495
|
+
header: o
|
|
3496
|
+
};
|
|
3497
|
+
try {
|
|
3498
|
+
this.adjustBody(), this.adjustArea("footer"), this.adjustArea("header");
|
|
3499
|
+
} finally {
|
|
3500
|
+
this.areaHeightsOfRenderPass = void 0;
|
|
3501
|
+
}
|
|
3502
|
+
this.tableOptions.tableTopBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
3503
|
+
new O(0, e, 1, 0),
|
|
3477
3504
|
this.hostElement,
|
|
3478
3505
|
"ge-table-border"
|
|
3479
3506
|
)), this.tableOptions.tableBottomBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
3480
|
-
new
|
|
3507
|
+
new O(0, e, 1, t - 1),
|
|
3481
3508
|
this.hostElement,
|
|
3482
3509
|
"ge-table-border"
|
|
3483
3510
|
)), this.tableModel.getFixedLeftColumnCount() > 0 && this.removables.push(this.dom.addVerticalBorder(
|
|
3484
|
-
new
|
|
3511
|
+
new O(s, 1, t, 0),
|
|
3485
3512
|
this.hostElement,
|
|
3486
3513
|
"ge-table-body-west-vertical-border"
|
|
3487
|
-
)), ((
|
|
3488
|
-
new
|
|
3514
|
+
)), ((i = this.tableModel.getAreaModel("header")) == null ? void 0 : i.getRowCount()) > 0 && this.removables.push(this.dom.addHorizontalBorder(
|
|
3515
|
+
new O(0, e, 1, o),
|
|
3489
3516
|
this.hostElement,
|
|
3490
3517
|
"ge-table-body-west-vertical-border"
|
|
3491
3518
|
));
|
|
@@ -3608,9 +3635,53 @@ class ct extends lt {
|
|
|
3608
3635
|
* @protected
|
|
3609
3636
|
* @return {void}
|
|
3610
3637
|
*/
|
|
3638
|
+
/**
|
|
3639
|
+
* Rounds a pixel offset to whole device pixels. The scroll offsets are derived from a scroll factor and are
|
|
3640
|
+
* fractional; rows and cells placed at fractional positions render blurry text and 1px borders.
|
|
3641
|
+
*
|
|
3642
|
+
* @param {number} px - offset in CSS pixels
|
|
3643
|
+
* @returns {number} offset snapped to the device pixel grid
|
|
3644
|
+
* @protected
|
|
3645
|
+
*/
|
|
3646
|
+
snapToDevicePixel(e) {
|
|
3647
|
+
const t = typeof window < "u" && window.devicePixelRatio || 1;
|
|
3648
|
+
return Math.round(e * t) / t;
|
|
3649
|
+
}
|
|
3650
|
+
/**
|
|
3651
|
+
* True if the table content is taller than {@link EleScope.maxScrollHeightInPx}; then the scroll bar is
|
|
3652
|
+
* scaled and scrollTop is no longer a content pixel position.
|
|
3653
|
+
*/
|
|
3654
|
+
isScrollHeightCapped() {
|
|
3655
|
+
return this.tableModel.getContentHeightInPixel() + 1 > Q.maxScrollHeightInPx;
|
|
3656
|
+
}
|
|
3657
|
+
/** Scrollable range of the content in content pixels (content height minus visible body height). */
|
|
3658
|
+
getContentScrollRangeY() {
|
|
3659
|
+
return this.tableModel.getContentHeightInPixel() - this.areaBodyCenterGeo.height;
|
|
3660
|
+
}
|
|
3661
|
+
/** Scrollable range of the scroll viewport in scroll bar pixels. */
|
|
3662
|
+
getScrollerRangeY() {
|
|
3663
|
+
return this.scrollViewport.scrollHeight - this.scrollViewport.clientHeight;
|
|
3664
|
+
}
|
|
3665
|
+
/**
|
|
3666
|
+
* Mouse wheel on a capped scroll height: scale the wheel delta, so one wheel step still moves the content
|
|
3667
|
+
* by the usual amount of pixels (otherwise it would jump many rows). No-op for normal tables.
|
|
3668
|
+
*
|
|
3669
|
+
* @param {WheelEvent} evt - the wheel event of the scroll viewport
|
|
3670
|
+
*/
|
|
3671
|
+
onWheel(e) {
|
|
3672
|
+
if (e.ctrlKey || !this.isScrollHeightCapped())
|
|
3673
|
+
return;
|
|
3674
|
+
const t = this.getContentScrollRangeY(), s = this.getScrollerRangeY();
|
|
3675
|
+
if (t <= 0 || s <= 0)
|
|
3676
|
+
return;
|
|
3677
|
+
const o = s / t, i = e.deltaMode === 1 ? 16 : e.deltaMode === 2 ? this.scrollViewport.clientHeight : 1;
|
|
3678
|
+
e.preventDefault(), e.deltaY && (this.scrollViewport.scrollTop += e.deltaY * i * o), e.deltaX && (this.scrollViewport.scrollLeft += e.deltaX * i);
|
|
3679
|
+
}
|
|
3611
3680
|
adjustBody() {
|
|
3612
|
-
const e = this.areaBodyCenterGeo.height - this.tableModel.getContentHeightInPixel(), t = this.scrollFactorY * e;
|
|
3613
|
-
this.
|
|
3681
|
+
const e = this.areaBodyCenterGeo.height - this.tableModel.getContentHeightInPixel(), t = this.snapToDevicePixel(this.scrollFactorY * e);
|
|
3682
|
+
this.contentScrollTop = -t, this.dom.setStyle(this.contentDiv, "top", `${this.scrollTop}px`);
|
|
3683
|
+
const s = this.areaHeightsOfRenderPass ? this.scrollLeft : this.scrollViewport.scrollLeft;
|
|
3684
|
+
this.dom.setStyle(this.contentDiv, "left", `${s}px`), this.adjustArea("body", t);
|
|
3614
3685
|
}
|
|
3615
3686
|
/**
|
|
3616
3687
|
* Returns a number value extracted from the specified attribute of the source element.
|
|
@@ -3653,93 +3724,100 @@ class ct extends lt {
|
|
|
3653
3724
|
* @protected
|
|
3654
3725
|
*/
|
|
3655
3726
|
adjustArea(e, t = 0) {
|
|
3656
|
-
var
|
|
3657
|
-
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
3727
|
+
var x, A, k;
|
|
3728
|
+
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = ((x = this.areaHeightsOfRenderPass) == null ? void 0 : x[e]) ?? o.child.clientHeight;
|
|
3658
3729
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
3659
3730
|
const n = 0, l = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
|
|
3660
3731
|
for (; this.cleanupFunctions[e].length; ) {
|
|
3661
|
-
const
|
|
3662
|
-
|
|
3732
|
+
const w = this.cleanupFunctions[e].shift();
|
|
3733
|
+
w && w();
|
|
3663
3734
|
}
|
|
3664
3735
|
let u = t;
|
|
3665
3736
|
const f = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), m = this.tableModel.getFixedLeftColumnCount();
|
|
3666
3737
|
e === "body" && (this.firstVisibleRowIndex = -1, this.firstFullVisibleRowIndex = -1, this.lastVisibleRowIndex = -1, this.lastFullVisibleRowIndex = -1);
|
|
3667
|
-
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3738
|
+
let g = 0;
|
|
3739
|
+
const y = (A = c.getConstantRowHeight) == null ? void 0 : A.call(c);
|
|
3740
|
+
if (y !== void 0 && y > 0 && u < 0) {
|
|
3741
|
+
for (g = Math.min(h, Math.floor(-u / y)); g > 0 && u + g * y > 0; )
|
|
3742
|
+
g--;
|
|
3743
|
+
u = u + g * y;
|
|
3744
|
+
}
|
|
3745
|
+
for (let w = g; w < h; w++) {
|
|
3746
|
+
const S = u, I = w === h - 1, v = this.tableModel.getRowHeight(e, w);
|
|
3747
|
+
if (S + v > 0) {
|
|
3748
|
+
e === "body" && this.firstVisibleRowIndex === -1 && (this.firstVisibleRowIndex = w, this.firstFullVisibleRowIndex = S < -this.pixelLimitForFullVisible ? this.firstVisibleRowIndex + 1 : this.firstVisibleRowIndex);
|
|
3749
|
+
let R = { left: n, width: l, height: v, top: S, index: w }, D = this.dom.addRowDiv(o, R, w, e, "center");
|
|
3750
|
+
const N = m;
|
|
3673
3751
|
if (this.adjustColumnsToRowParent({
|
|
3674
3752
|
areaIdent: e,
|
|
3675
3753
|
sideIdent: "center",
|
|
3676
3754
|
areaModel: c,
|
|
3677
|
-
geo:
|
|
3678
|
-
parent:
|
|
3679
|
-
rowIndex:
|
|
3680
|
-
columnIndexStart:
|
|
3755
|
+
geo: R,
|
|
3756
|
+
parent: D,
|
|
3757
|
+
rowIndex: w,
|
|
3758
|
+
columnIndexStart: N,
|
|
3681
3759
|
columnIndexEnd: f - p - 1,
|
|
3682
3760
|
verticalFixed: !1,
|
|
3683
|
-
lastRowOfModel:
|
|
3684
|
-
}), a.left > 0 && (
|
|
3761
|
+
lastRowOfModel: I
|
|
3762
|
+
}), a.left > 0 && (R = { left: n, width: this.areaBodyWestGeo.width, height: v, top: S, index: w }, D = this.dom.addRowDiv(s, R, w, e, "west"), this.adjustColumnsToRowParent({
|
|
3685
3763
|
areaIdent: e,
|
|
3686
3764
|
sideIdent: "west",
|
|
3687
3765
|
areaModel: c,
|
|
3688
|
-
geo:
|
|
3689
|
-
parent:
|
|
3690
|
-
rowIndex:
|
|
3766
|
+
geo: R,
|
|
3767
|
+
parent: D,
|
|
3768
|
+
rowIndex: w,
|
|
3691
3769
|
columnIndexStart: 0,
|
|
3692
|
-
columnIndexEnd:
|
|
3770
|
+
columnIndexEnd: N - 1,
|
|
3693
3771
|
verticalFixed: !0,
|
|
3694
|
-
lastRowOfModel:
|
|
3695
|
-
})), a.right > 0 && (
|
|
3772
|
+
lastRowOfModel: I
|
|
3773
|
+
})), a.right > 0 && (R = { left: n, width: this.areaBodyEastGeo.width, height: v, top: S, index: w }, D = this.dom.addRowDiv(i, R, w, e, "east"), this.adjustColumnsToRowParent({
|
|
3696
3774
|
areaIdent: e,
|
|
3697
3775
|
sideIdent: "east",
|
|
3698
3776
|
areaModel: c,
|
|
3699
|
-
geo:
|
|
3700
|
-
parent:
|
|
3701
|
-
rowIndex:
|
|
3777
|
+
geo: R,
|
|
3778
|
+
parent: D,
|
|
3779
|
+
rowIndex: w,
|
|
3702
3780
|
columnIndexStart: f - p,
|
|
3703
3781
|
columnIndexEnd: f - 1,
|
|
3704
3782
|
verticalFixed: !0,
|
|
3705
|
-
lastRowOfModel:
|
|
3706
|
-
})), e === "header" && this.tree &&
|
|
3707
|
-
const
|
|
3783
|
+
lastRowOfModel: I
|
|
3784
|
+
})), e === "header" && this.tree && w === h - 1) {
|
|
3785
|
+
const U = this.dom.applyStyle(
|
|
3708
3786
|
this.dom.setAttribute(
|
|
3709
|
-
this.dom.addDiv(
|
|
3787
|
+
this.dom.addDiv(D, new O(16, 20, 20, 8)),
|
|
3710
3788
|
"data-ge-action",
|
|
3711
3789
|
"toggleExpandCollapseAll"
|
|
3712
3790
|
),
|
|
3713
3791
|
{ cursor: "pointer" }
|
|
3714
|
-
),
|
|
3715
|
-
if (
|
|
3716
|
-
const
|
|
3717
|
-
this.dom.domService.appendChild(
|
|
3792
|
+
), C = this.tableOptions.treeOptions.arrowExpandCollapseAll;
|
|
3793
|
+
if (C) {
|
|
3794
|
+
const je = this.dom.domService.createText(C.content);
|
|
3795
|
+
this.dom.domService.appendChild(U, je), C.style && this.dom.applyStyleString(U, C.style);
|
|
3718
3796
|
}
|
|
3719
3797
|
}
|
|
3720
3798
|
}
|
|
3721
|
-
if (u = u +
|
|
3722
|
-
e === "body" && (this.lastVisibleRowIndex =
|
|
3799
|
+
if (u = u + v, u > r) {
|
|
3800
|
+
e === "body" && (this.lastVisibleRowIndex = w, this.lastFullVisibleRowIndex = r - u < -this.pixelLimitForFullVisible ? w - 1 : w, this.displayedRowCount = this.lastFullVisibleRowIndex - this.firstFullVisibleRowIndex + 1);
|
|
3723
3801
|
break;
|
|
3724
3802
|
}
|
|
3725
3803
|
}
|
|
3726
|
-
if (this.loggingActive && e === "body" && console.log("render scope: this.firstVisibleRowIndex <- " + this.firstVisibleRowIndex + `
|
|
3804
|
+
if (e === "body" && this.firstVisibleRowIndex > -1 && this.lastVisibleRowIndex === -1 && (this.lastVisibleRowIndex = h - 1, this.lastFullVisibleRowIndex = h - 1, this.displayedRowCount = this.lastFullVisibleRowIndex - this.firstFullVisibleRowIndex + 1), this.loggingActive && e === "body" && console.log("render scope: this.firstVisibleRowIndex <- " + this.firstVisibleRowIndex + `
|
|
3727
3805
|
render scope: this.firstFullVisibleRowIndex <- ` + this.firstFullVisibleRowIndex + `
|
|
3728
3806
|
render scope: this.lastVisibleRowIndex <- ` + this.lastVisibleRowIndex + `
|
|
3729
3807
|
render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex), this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
3730
|
-
const
|
|
3731
|
-
if (
|
|
3732
|
-
for (const
|
|
3733
|
-
let
|
|
3734
|
-
if (
|
|
3735
|
-
|
|
3736
|
-
else if (p > 0 &&
|
|
3737
|
-
|
|
3808
|
+
const w = ((k = this.colAndRowspanModels[e]) == null ? void 0 : k.getRanges()) ?? [];
|
|
3809
|
+
if (w.length)
|
|
3810
|
+
for (const S of w) {
|
|
3811
|
+
let I = 0, v = o.child, R = "center";
|
|
3812
|
+
if (S.c1 < m)
|
|
3813
|
+
v = s.child, R = "west";
|
|
3814
|
+
else if (p > 0 && S.c1 >= f - p)
|
|
3815
|
+
v = i.child, R = "east";
|
|
3738
3816
|
else {
|
|
3739
|
-
const
|
|
3740
|
-
|
|
3817
|
+
const D = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
3818
|
+
I = this.snapToDevicePixel(this.scrollFactorX * D) - this.areaBodyWestGeo.width, R = "center";
|
|
3741
3819
|
}
|
|
3742
|
-
this.drawBigCell(
|
|
3820
|
+
this.drawBigCell(S, I, t, c, v, R);
|
|
3743
3821
|
}
|
|
3744
3822
|
}
|
|
3745
3823
|
}
|
|
@@ -3754,10 +3832,10 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3754
3832
|
* @protected
|
|
3755
3833
|
*/
|
|
3756
3834
|
drawBigCell(e, t, s, o, i, r) {
|
|
3757
|
-
const n = s + this.getRowHeights(0, e.r1 - 1, o).reduce((g,
|
|
3835
|
+
const n = s + this.getRowHeights(0, e.r1 - 1, o).reduce((g, y) => g + y, 0), l = this.tableModel.getColumnCount(), a = this.tableModel.getFixedRightColumnCount();
|
|
3758
3836
|
let c = 0;
|
|
3759
3837
|
a > 0 && e.c1 >= l - a && (c = l - a);
|
|
3760
|
-
const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((g,
|
|
3838
|
+
const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((g, y) => g + y, 0), u = this.getRowHeights(e.r1, e.r2, o).reduce((g, y) => g + y, 0), f = this.getColumnWidths(e.c1, e.c2).reduce((g, y) => g + y, 0);
|
|
3761
3839
|
let p = !1;
|
|
3762
3840
|
const m = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
3763
3841
|
m && (p = m.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
@@ -3838,58 +3916,57 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3838
3916
|
lastRowOfModel: c = !1
|
|
3839
3917
|
}) {
|
|
3840
3918
|
var m;
|
|
3841
|
-
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
3842
3919
|
let h = 0;
|
|
3843
3920
|
if (!a) {
|
|
3844
3921
|
const g = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
3845
|
-
h = this.scrollFactorX * g;
|
|
3922
|
+
h = this.snapToDevicePixel(this.scrollFactorX * g);
|
|
3846
3923
|
}
|
|
3847
3924
|
const u = 0, f = !!(e === "body" && t);
|
|
3848
3925
|
let p = h;
|
|
3849
3926
|
for (let g = n; g <= l; g++) {
|
|
3850
|
-
const
|
|
3851
|
-
if (
|
|
3852
|
-
let
|
|
3853
|
-
const
|
|
3854
|
-
|
|
3855
|
-
let
|
|
3856
|
-
|
|
3857
|
-
let
|
|
3858
|
-
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r, g) && (
|
|
3859
|
-
this.renderDragTargetDiv(i,
|
|
3860
|
-
const
|
|
3861
|
-
this.dom.addColumnBorderDivs(this.tableOptions, i,
|
|
3927
|
+
const y = p, x = this.tableModel.getColumnWidth(g);
|
|
3928
|
+
if (x > 0 && y + x > 0) {
|
|
3929
|
+
let A = o.height;
|
|
3930
|
+
const k = s.getRowspanAt(r, g), w = s.getColspanAt(r, g);
|
|
3931
|
+
k > 1 && (A = this.getRowHeights(r, r + k - 1, s).reduce((v, R) => v + R, 0));
|
|
3932
|
+
let S = x;
|
|
3933
|
+
w > 1 && (S = this.getColumnWidths(g, g + w - 1).reduce((v, R) => v + R, 0));
|
|
3934
|
+
let I = !1;
|
|
3935
|
+
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r, g) && (I = !0), this.draggingTargetColumnIndex === g && e !== "header") {
|
|
3936
|
+
this.renderDragTargetDiv(i, y, u, S, A);
|
|
3937
|
+
const v = { left: y, top: u, width: S, height: A };
|
|
3938
|
+
this.dom.addColumnBorderDivs(this.tableOptions, i, v, e, t);
|
|
3862
3939
|
} else {
|
|
3863
|
-
const
|
|
3864
|
-
"gammaCells" in s && s.getValueAt(r, g) && (
|
|
3940
|
+
const v = this.renderSelectedBackgroundDiv(I, f, t, s, r, g, i, y, u, S, A);
|
|
3941
|
+
"gammaCells" in s && s.getValueAt(r, g) && (I = !1), I || this.renderCell({
|
|
3865
3942
|
areaModel: s,
|
|
3866
3943
|
areaIdent: e,
|
|
3867
3944
|
sideIdent: t,
|
|
3868
3945
|
rowIndex: r,
|
|
3869
3946
|
columnIndex: g,
|
|
3870
|
-
left:
|
|
3947
|
+
left: y,
|
|
3871
3948
|
top: u,
|
|
3872
|
-
width:
|
|
3873
|
-
height:
|
|
3949
|
+
width: S,
|
|
3950
|
+
height: A,
|
|
3874
3951
|
parent: i,
|
|
3875
|
-
cellSelected:
|
|
3952
|
+
cellSelected: v,
|
|
3876
3953
|
lastRowOfModel: c,
|
|
3877
3954
|
gammaRange: !0
|
|
3878
3955
|
}), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
3879
3956
|
rowIndex: r,
|
|
3880
3957
|
columnIndex: g,
|
|
3881
|
-
cellLeft:
|
|
3958
|
+
cellLeft: y,
|
|
3882
3959
|
cellTop: u,
|
|
3883
|
-
cellWidth:
|
|
3884
|
-
cellHeight:
|
|
3960
|
+
cellWidth: S,
|
|
3961
|
+
cellHeight: A,
|
|
3885
3962
|
parent: i
|
|
3886
3963
|
});
|
|
3887
3964
|
}
|
|
3888
3965
|
}
|
|
3889
|
-
if (p = p +
|
|
3966
|
+
if (p = p + x, p > this.areaBodyCenterGeo.width)
|
|
3890
3967
|
break;
|
|
3891
3968
|
}
|
|
3892
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new
|
|
3969
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new O(p - 1, 1, o.height, 0), i);
|
|
3893
3970
|
}
|
|
3894
3971
|
/**
|
|
3895
3972
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -3916,19 +3993,19 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3916
3993
|
parent: c,
|
|
3917
3994
|
lastRowOfModel: h
|
|
3918
3995
|
}) {
|
|
3919
|
-
var
|
|
3996
|
+
var U;
|
|
3920
3997
|
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
3998
|
let g = "none";
|
|
3922
|
-
if (i === this.getTreeArrowColumnIndex() &&
|
|
3923
|
-
const
|
|
3924
|
-
(
|
|
3999
|
+
if (i === this.getTreeArrowColumnIndex() && j(m)) {
|
|
4000
|
+
const C = m;
|
|
4001
|
+
(U = C.children) != null && U.length ? C.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
|
|
3925
4002
|
}
|
|
3926
|
-
let
|
|
4003
|
+
let x;
|
|
3927
4004
|
if (t === "header") {
|
|
3928
|
-
const
|
|
3929
|
-
(!(
|
|
4005
|
+
const C = this.tableModel.getColumnDef(i);
|
|
4006
|
+
(!(C != null && C.sortIconVisible) || C != null && C.sortIconVisible()) && (x = C == null ? void 0 : C.sortState);
|
|
3930
4007
|
}
|
|
3931
|
-
const
|
|
4008
|
+
const A = e.getValueAt(o, i), k = f ? "" : `${A}`, w = e.isRowChecked(o), S = this.dom.addColumnDiv(
|
|
3932
4009
|
{
|
|
3933
4010
|
parent: c,
|
|
3934
4011
|
geo: p,
|
|
@@ -3936,29 +4013,29 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3936
4013
|
columnIndex: i,
|
|
3937
4014
|
areaIdent: t,
|
|
3938
4015
|
sideIdent: s,
|
|
3939
|
-
text:
|
|
4016
|
+
text: k,
|
|
3940
4017
|
treeArrow: g,
|
|
3941
4018
|
tableOptions: this.tableOptions,
|
|
3942
|
-
checkedType:
|
|
3943
|
-
sortState:
|
|
4019
|
+
checkedType: w,
|
|
4020
|
+
sortState: x
|
|
3944
4021
|
}
|
|
3945
|
-
),
|
|
3946
|
-
|
|
3947
|
-
const
|
|
3948
|
-
|
|
3949
|
-
let
|
|
3950
|
-
f && (
|
|
3951
|
-
const
|
|
3952
|
-
if (
|
|
3953
|
-
const
|
|
3954
|
-
|
|
4022
|
+
), I = e.getTooltipAt(o, i);
|
|
4023
|
+
I && this.dom.setAttribute(S, "title", I);
|
|
4024
|
+
const v = this.tableModel.getColumnDef(i);
|
|
4025
|
+
v && v.classes[t] && this.dom.addClasses(v.classes[t], S);
|
|
4026
|
+
let R;
|
|
4027
|
+
f && (R = f.render(S, o, i, t, e, A, this.dom.domService));
|
|
4028
|
+
const D = e.getCustomClassesAt(o, i);
|
|
4029
|
+
if (D.length && this.dom.addClasses(D, S), this.dom.addColumnBorderDivs(this.tableOptions, c, p, t, s), h && this.dom.addHorizontalBorder({ left: r, width: n, height: l, top: a + l }, c), this.getFocusModel && t === "body") {
|
|
4030
|
+
const C = this.getFocusModel();
|
|
4031
|
+
C != null && C.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
|
|
3955
4032
|
}
|
|
3956
|
-
t === "header" && this.dom.setAttribute(
|
|
3957
|
-
const
|
|
3958
|
-
if (
|
|
3959
|
-
for (const
|
|
3960
|
-
this.dom.setStyle(
|
|
3961
|
-
return [
|
|
4033
|
+
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
4034
|
+
const N = e.getCustomStyleAt(o, i);
|
|
4035
|
+
if (N)
|
|
4036
|
+
for (const C in N)
|
|
4037
|
+
this.dom.setStyle(S, C, N[C]);
|
|
4038
|
+
return [S, R];
|
|
3962
4039
|
}
|
|
3963
4040
|
/**
|
|
3964
4041
|
* Applies CSS classes to an HTML element.
|
|
@@ -4009,10 +4086,10 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4009
4086
|
*/
|
|
4010
4087
|
adjustHoverRows(e) {
|
|
4011
4088
|
if (this.tableOptions.hoverRowVisible && e.rowIndex > -1) {
|
|
4012
|
-
const t = this.hostElement.clientWidth, s = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex), o = e.rowTop + this.areaHeaderCenter.parent.clientHeight -
|
|
4089
|
+
const t = this.hostElement.clientWidth, s = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex), o = this.isScrollHeightCapped() ? this.contentScrollTop : this.scrollTop, i = e.rowTop + this.areaHeaderCenter.parent.clientHeight - o;
|
|
4013
4090
|
this.dom.applyStyle(this.hoverRow, {
|
|
4014
4091
|
left: "0",
|
|
4015
|
-
top:
|
|
4092
|
+
top: i + "px",
|
|
4016
4093
|
width: t + "px",
|
|
4017
4094
|
height: s + "px",
|
|
4018
4095
|
display: "block"
|
|
@@ -4132,17 +4209,17 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4132
4209
|
areaIdent: t,
|
|
4133
4210
|
sideIdent: o,
|
|
4134
4211
|
text: m
|
|
4135
|
-
},
|
|
4136
|
-
let
|
|
4137
|
-
p && (
|
|
4138
|
-
const
|
|
4139
|
-
|
|
4140
|
-
const
|
|
4141
|
-
|
|
4142
|
-
const
|
|
4143
|
-
if (
|
|
4144
|
-
for (const
|
|
4145
|
-
this.dom.setStyle(
|
|
4212
|
+
}, y = this.dom.addColumnDiv(g);
|
|
4213
|
+
let x;
|
|
4214
|
+
p && (x = p.render(y, a, n, t, i, f, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
4215
|
+
const A = i.getCustomClassesAt(a, n);
|
|
4216
|
+
A.length && this.dom.addClasses(A, y);
|
|
4217
|
+
const k = this.tableModel.getColumnDef(n);
|
|
4218
|
+
k && k.classes[t] && this.dom.addClasses(k.classes[t], y), this.dom.addColumnBorderDivs(this.tableOptions, l, u, t, o);
|
|
4219
|
+
const w = i.getCustomStyleAt(a, n);
|
|
4220
|
+
if (w)
|
|
4221
|
+
for (const S in w)
|
|
4222
|
+
this.dom.setStyle(y, S, w[S]);
|
|
4146
4223
|
s = s + h;
|
|
4147
4224
|
}
|
|
4148
4225
|
}
|
|
@@ -4277,12 +4354,12 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
4277
4354
|
l.setAttribute(c, "data-col-index", `${t}`), l.setAttribute(c, "data-row-index", `${e}`), l.setAttribute(c, "data-area", "header"), l.setAttribute(c, "data-ge-action", "resize-column"), l.addClass(c, "ge-table-column-resize-handle"), l.setStyle(c, "display", "clip"), l.setStyle(c, "position", "absolute"), l.setStyle(c, "cursor", "col-resize"), l.setStyle(c, "left", `${s + i - a}px`), l.setStyle(c, "top", `${o}px`), l.setStyle(c, "width", `${a}px`), l.setStyle(c, "height", `${r}px`), l.appendChild(n, c);
|
|
4278
4355
|
}
|
|
4279
4356
|
}
|
|
4280
|
-
class
|
|
4357
|
+
class ut {
|
|
4281
4358
|
constructor(e, t) {
|
|
4282
4359
|
this.columnIndex = e, this.sortState = t;
|
|
4283
4360
|
}
|
|
4284
4361
|
}
|
|
4285
|
-
class
|
|
4362
|
+
class pt {
|
|
4286
4363
|
constructor(e) {
|
|
4287
4364
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
4288
4365
|
}
|
|
@@ -4298,31 +4375,31 @@ class ht {
|
|
|
4298
4375
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
|
|
4299
4376
|
const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
|
|
4300
4377
|
if (s && o && i) {
|
|
4301
|
-
const r =
|
|
4378
|
+
const r = re(s), n = Number(o), l = Number(i);
|
|
4302
4379
|
this.tableScope.updateModelValueAfterEdit(r, n, l, t.value);
|
|
4303
4380
|
}
|
|
4304
4381
|
}
|
|
4305
4382
|
}
|
|
4306
4383
|
}
|
|
4307
|
-
class
|
|
4384
|
+
class gt {
|
|
4308
4385
|
constructor(e = -1, t = -1) {
|
|
4309
4386
|
this.rowIndex = e, this.columnIndex = t;
|
|
4310
4387
|
}
|
|
4311
4388
|
}
|
|
4312
|
-
class
|
|
4389
|
+
class xe {
|
|
4313
4390
|
constructor(e) {
|
|
4314
4391
|
this.cells = e;
|
|
4315
4392
|
}
|
|
4316
4393
|
static createSingle(e, t) {
|
|
4317
|
-
return new
|
|
4394
|
+
return new xe([new gt(e, t)]);
|
|
4318
4395
|
}
|
|
4319
4396
|
}
|
|
4320
|
-
class
|
|
4397
|
+
class ft {
|
|
4321
4398
|
constructor(e, t, s, o, i, r, n, l) {
|
|
4322
4399
|
this.scrollTop = e, this.scrollLeft = t, this.scrollHeight = s, this.scrollWidth = o, this.clientHeight = i, this.clientWidth = r, this.scrollFactorY = n, this.scrollFactorX = l;
|
|
4323
4400
|
}
|
|
4324
4401
|
}
|
|
4325
|
-
class
|
|
4402
|
+
class mt {
|
|
4326
4403
|
constructor(e) {
|
|
4327
4404
|
var t, s;
|
|
4328
4405
|
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);
|
|
@@ -4332,7 +4409,7 @@ class gt {
|
|
|
4332
4409
|
let s = !1, o = !1;
|
|
4333
4410
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
4334
4411
|
const u = this.getSelectionModel(), f = this.getFocusModel();
|
|
4335
|
-
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(
|
|
4412
|
+
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(M.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (u.addSelection(M.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (u.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(u));
|
|
4336
4413
|
}
|
|
4337
4414
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
4338
4415
|
}
|
|
@@ -4355,7 +4432,7 @@ class gt {
|
|
|
4355
4432
|
createRangeByEvents(e, t) {
|
|
4356
4433
|
t || (t = e);
|
|
4357
4434
|
const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
|
|
4358
|
-
return
|
|
4435
|
+
return M.create({
|
|
4359
4436
|
rowIndex1: s,
|
|
4360
4437
|
columnIndex1: i,
|
|
4361
4438
|
rowIndex2: o,
|
|
@@ -4363,7 +4440,7 @@ class gt {
|
|
|
4363
4440
|
});
|
|
4364
4441
|
}
|
|
4365
4442
|
}
|
|
4366
|
-
class
|
|
4443
|
+
class bt {
|
|
4367
4444
|
get() {
|
|
4368
4445
|
return {
|
|
4369
4446
|
f2: "START_EDITING",
|
|
@@ -4383,7 +4460,7 @@ class ft {
|
|
|
4383
4460
|
};
|
|
4384
4461
|
}
|
|
4385
4462
|
}
|
|
4386
|
-
class
|
|
4463
|
+
class yt {
|
|
4387
4464
|
get() {
|
|
4388
4465
|
return {
|
|
4389
4466
|
f2: "START_EDITING",
|
|
@@ -4405,13 +4482,13 @@ class mt {
|
|
|
4405
4482
|
};
|
|
4406
4483
|
}
|
|
4407
4484
|
}
|
|
4408
|
-
function
|
|
4485
|
+
function wt(d) {
|
|
4409
4486
|
return d.trim().replace(/\+/g, " ").replace(/ +/g, " ").replace(/⌫/g, "backspace").replace(/↩/g, "enter").replace(/⇧/g, "shift").replace(/⌥/g, "alt").replace(/option/g, "alt").replace(/opt/g, "alt").replace(/⌃/g, "ctrl").replace(/control/g, "ctrl").replace(/command/g, "cmd").replace(/meta/g, "cmd").replace(/escape/g, "esc").replace(/⌘/g, "cmd").replace(/\*/g, "multiply").split(" ").filter((e) => e).filter((e, t, s) => s.indexOf(e) === t).sort((e, t) => {
|
|
4410
4487
|
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
|
|
4411
4488
|
return o !== i ? o - i : e.localeCompare(t);
|
|
4412
4489
|
}).join(" ");
|
|
4413
4490
|
}
|
|
4414
|
-
function
|
|
4491
|
+
function Ae(d) {
|
|
4415
4492
|
let e = d.key.toLowerCase();
|
|
4416
4493
|
if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" && d.code === "Delete" && (e = "delete"), e === "backspace" && (e = "backspace"), e === "escape" && (e = "esc"), e === "return" && (e = "enter"), d.code.startsWith("Numpad")) {
|
|
4417
4494
|
const s = d.code.replace("Numpad", "").toLowerCase();
|
|
@@ -4419,9 +4496,9 @@ function Ce(d) {
|
|
|
4419
4496
|
}
|
|
4420
4497
|
d.code.match(/^F\d+$/) && (e = d.code.toLowerCase()), d.code.match(/^Digit\d+$/) && (e = d.code.replace(/Digit/g, ""));
|
|
4421
4498
|
let t = "";
|
|
4422
|
-
return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"),
|
|
4499
|
+
return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"), wt(t + " " + e);
|
|
4423
4500
|
}
|
|
4424
|
-
class
|
|
4501
|
+
class xt {
|
|
4425
4502
|
constructor(e) {
|
|
4426
4503
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
4427
4504
|
}
|
|
@@ -4443,7 +4520,7 @@ class yt {
|
|
|
4443
4520
|
(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)));
|
|
4444
4521
|
}
|
|
4445
4522
|
assignPredefinedSystemShortcutMappings() {
|
|
4446
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
4523
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new yt().get()) : Object.assign(this.shortcutActionIdMapping, new bt().get());
|
|
4447
4524
|
}
|
|
4448
4525
|
isMacintosh() {
|
|
4449
4526
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -4466,10 +4543,10 @@ class yt {
|
|
|
4466
4543
|
return t;
|
|
4467
4544
|
}
|
|
4468
4545
|
findEntity(e) {
|
|
4469
|
-
const t =
|
|
4546
|
+
const t = Ae(e);
|
|
4470
4547
|
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
4471
4548
|
for (const s in this.shortcutActionIdMapping)
|
|
4472
|
-
if (
|
|
4549
|
+
if (Ae(e) === t)
|
|
4473
4550
|
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
4474
4551
|
}
|
|
4475
4552
|
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
@@ -4516,7 +4593,7 @@ class yt {
|
|
|
4516
4593
|
return this.shortcutActionIdMapping;
|
|
4517
4594
|
}
|
|
4518
4595
|
}
|
|
4519
|
-
class
|
|
4596
|
+
class de {
|
|
4520
4597
|
onCheckboxChanged(e) {
|
|
4521
4598
|
}
|
|
4522
4599
|
onContextmenu(e) {
|
|
@@ -4538,7 +4615,7 @@ class ne {
|
|
|
4538
4615
|
onFocusChanged(e) {
|
|
4539
4616
|
}
|
|
4540
4617
|
}
|
|
4541
|
-
class
|
|
4618
|
+
class St {
|
|
4542
4619
|
setStyle(e, t, s) {
|
|
4543
4620
|
return e.style[t] = s, e;
|
|
4544
4621
|
}
|
|
@@ -4565,7 +4642,7 @@ class wt {
|
|
|
4565
4642
|
e.setAttribute(t, s);
|
|
4566
4643
|
}
|
|
4567
4644
|
}
|
|
4568
|
-
class
|
|
4645
|
+
class Ct {
|
|
4569
4646
|
render(e, t, s, o, i, r, n) {
|
|
4570
4647
|
if (i.isEditable(t, s)) {
|
|
4571
4648
|
n.addClass(e, "ge-table-row-input-div");
|
|
@@ -4586,7 +4663,7 @@ class xt {
|
|
|
4586
4663
|
}
|
|
4587
4664
|
}
|
|
4588
4665
|
}
|
|
4589
|
-
class
|
|
4666
|
+
class Se {
|
|
4590
4667
|
constructor(e = "none", t = "single") {
|
|
4591
4668
|
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
|
|
4592
4669
|
}
|
|
@@ -4605,7 +4682,7 @@ class be {
|
|
|
4605
4682
|
this.silent || this.listenerArr.forEach((e) => e.onSelectionChanged(this));
|
|
4606
4683
|
}
|
|
4607
4684
|
firstClick(e, t) {
|
|
4608
|
-
this.selectionType === "row" ? this.addRange(
|
|
4685
|
+
this.selectionType === "row" ? this.addRange(M.singleRow(e)) : this.selectionType === "column" && this.addRange(M.singleColumn(t));
|
|
4609
4686
|
}
|
|
4610
4687
|
getSelectionCount(e, t) {
|
|
4611
4688
|
let s = 0;
|
|
@@ -4656,10 +4733,10 @@ class be {
|
|
|
4656
4733
|
if (this.selectionType === "none")
|
|
4657
4734
|
return;
|
|
4658
4735
|
let t = e;
|
|
4659
|
-
this.selectionType === "row" ? t =
|
|
4736
|
+
this.selectionType === "row" ? t = M.singleRow(e.r1) : this.selectionType === "column" && (t = M.singleColumn(e.c1)), this.negativeRanges.push(t), this.fireChangeEvent();
|
|
4660
4737
|
}
|
|
4661
4738
|
togglePoint(e, t) {
|
|
4662
|
-
this.getSelectionCount(e, t) > 0 ? this.removeSelection(
|
|
4739
|
+
this.getSelectionCount(e, t) > 0 ? this.removeSelection(M.singleCell(e, t)) : this.addSelection(M.singleCell(e, t));
|
|
4663
4740
|
}
|
|
4664
4741
|
isSelected(e, t) {
|
|
4665
4742
|
return this.getSelectionCount(e, t) > 0;
|
|
@@ -4668,7 +4745,7 @@ class be {
|
|
|
4668
4745
|
this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e), this.fireChangeEvent());
|
|
4669
4746
|
}
|
|
4670
4747
|
}
|
|
4671
|
-
class
|
|
4748
|
+
class vt {
|
|
4672
4749
|
constructor(e = "none") {
|
|
4673
4750
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
4674
4751
|
}
|
|
@@ -4705,12 +4782,12 @@ class St {
|
|
|
4705
4782
|
return [this.rowIndex, this.columnIndex];
|
|
4706
4783
|
}
|
|
4707
4784
|
}
|
|
4708
|
-
class
|
|
4709
|
-
constructor(e = new
|
|
4785
|
+
class Ce {
|
|
4786
|
+
constructor(e = new V(
|
|
4710
4787
|
"❯",
|
|
4711
4788
|
"",
|
|
4712
4789
|
["gt-table-icon-expanded"]
|
|
4713
|
-
), t = new
|
|
4790
|
+
), t = new V(
|
|
4714
4791
|
"❯",
|
|
4715
4792
|
"transform: rotate(180deg) translate(-100%, -100%); transform-origin: 0 0;",
|
|
4716
4793
|
["ge-table-icon-collapsed"]
|
|
@@ -4719,17 +4796,17 @@ class ye {
|
|
|
4719
4796
|
}
|
|
4720
4797
|
// `⊖ `, `⊕ `;
|
|
4721
4798
|
}
|
|
4722
|
-
const
|
|
4723
|
-
class
|
|
4799
|
+
const Rt = new Se(), At = new vt("cell");
|
|
4800
|
+
class J {
|
|
4724
4801
|
constructor() {
|
|
4725
4802
|
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 = {
|
|
4726
4803
|
header: 34,
|
|
4727
4804
|
body: 34,
|
|
4728
4805
|
footer: 34
|
|
4729
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new
|
|
4806
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Be(), this.headerGroupOptions = new Ce(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new We(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new Ct(), this.getSelectionModel = () => Rt, this.getFocusModel = () => At;
|
|
4730
4807
|
}
|
|
4731
4808
|
}
|
|
4732
|
-
const
|
|
4809
|
+
const z = class z {
|
|
4733
4810
|
/**
|
|
4734
4811
|
* Returns the content to be copied based on the provided table model, selection model, and focus model.
|
|
4735
4812
|
*
|
|
@@ -4752,9 +4829,9 @@ const N = class N {
|
|
|
4752
4829
|
const h = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
|
|
4753
4830
|
a.push(h);
|
|
4754
4831
|
}
|
|
4755
|
-
n.push(a.join(
|
|
4832
|
+
n.push(a.join(z.columnSeparatorChar));
|
|
4756
4833
|
}
|
|
4757
|
-
return o(n.join(
|
|
4834
|
+
return o(n.join(z.rowSeparatorChar));
|
|
4758
4835
|
}
|
|
4759
4836
|
}
|
|
4760
4837
|
if (s) {
|
|
@@ -4807,23 +4884,23 @@ const N = class N {
|
|
|
4807
4884
|
mergeRanges(e) {
|
|
4808
4885
|
let t;
|
|
4809
4886
|
for (const s of e)
|
|
4810
|
-
t ? (t.r1 = Math.min(t.r1, s.r1), t.c1 = Math.min(t.c1, s.c1), t.r2 = Math.max(t.r2, s.r2), t.c2 = Math.max(t.c2, s.c2)) : t = new
|
|
4887
|
+
t ? (t.r1 = Math.min(t.r1, s.r1), t.c1 = Math.min(t.c1, s.c1), t.r2 = Math.max(t.r2, s.r2), t.c2 = Math.max(t.c2, s.c2)) : t = new M(s.r1, s.c1, s.r2, s.c2);
|
|
4811
4888
|
return t;
|
|
4812
4889
|
}
|
|
4813
4890
|
};
|
|
4814
|
-
|
|
4891
|
+
z.columnSeparatorChar = " ", z.rowSeparatorChar = `
|
|
4815
4892
|
`;
|
|
4816
|
-
let
|
|
4817
|
-
class
|
|
4893
|
+
let ee = z;
|
|
4894
|
+
class Mt {
|
|
4818
4895
|
constructor(e, t = 500) {
|
|
4819
|
-
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(
|
|
4896
|
+
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Ue(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
|
|
4820
4897
|
}
|
|
4821
4898
|
handleResize(e) {
|
|
4822
4899
|
const t = e[0], { width: s } = t.contentRect;
|
|
4823
4900
|
this.tableScope.recalcColumnWidths(s);
|
|
4824
4901
|
}
|
|
4825
4902
|
}
|
|
4826
|
-
class
|
|
4903
|
+
class It {
|
|
4827
4904
|
/**
|
|
4828
4905
|
* Downloads a matrix data as an Excel file.
|
|
4829
4906
|
*
|
|
@@ -4929,14 +5006,14 @@ class At {
|
|
|
4929
5006
|
return this.createZip(s);
|
|
4930
5007
|
}
|
|
4931
5008
|
}
|
|
4932
|
-
class
|
|
4933
|
-
constructor(e, t, s, o, i, r = new
|
|
5009
|
+
class Ne extends ht {
|
|
5010
|
+
constructor(e, t, s, o, i, r = new ee(), n = new It()) {
|
|
4934
5011
|
var c;
|
|
4935
|
-
if (super(e, t, new
|
|
5012
|
+
if (super(e, t, new st(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = G.getInstance(), this.selectionService = new mt(this), this.api = new rt(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 de()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
|
|
4936
5013
|
const h = this.tableOptions.autoRestoreOptions, u = h.getStorageKeyFn;
|
|
4937
|
-
u && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new
|
|
5014
|
+
u && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new nt(u)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new at(u)), h.autoRestoreSortingState && (this.storeSortingService = new ct(u)));
|
|
4938
5015
|
}
|
|
4939
|
-
this.mouseHandler = new
|
|
5016
|
+
this.mouseHandler = new it(this), this.inputHandler = new pt(this), this.resizeHandler = new Mt(this, o.resizeEventDebounceDelay), this.shortcutService = new xt(this), this.shortcutService.addListener(this.selectionService);
|
|
4940
5017
|
const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
4941
5018
|
l && l.addEventSelectionChangedListener(this);
|
|
4942
5019
|
const a = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
@@ -4954,8 +5031,8 @@ class He extends ct {
|
|
|
4954
5031
|
*
|
|
4955
5032
|
* @return {TableScope} - The newly created TableScope instance.
|
|
4956
5033
|
*/
|
|
4957
|
-
static create(e, t, s = new
|
|
4958
|
-
return new
|
|
5034
|
+
static create(e, t, s = new J(), o = new de(), i = new St(), r = new ee()) {
|
|
5035
|
+
return new Ne(e, t, i, s, o, r);
|
|
4959
5036
|
}
|
|
4960
5037
|
/**
|
|
4961
5038
|
* Triggers an action based on the provided actionId.
|
|
@@ -4983,7 +5060,8 @@ class He extends ct {
|
|
|
4983
5060
|
return !1;
|
|
4984
5061
|
}
|
|
4985
5062
|
updateModelValueAfterEdit(e, t, s, o) {
|
|
4986
|
-
|
|
5063
|
+
var i, r;
|
|
5064
|
+
e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), (r = (i = this.eventListener).onModelChanged) == null || r.call(i, xe.createSingle(t, s)), this.hostElement.focus());
|
|
4987
5065
|
}
|
|
4988
5066
|
/**
|
|
4989
5067
|
* Retrieves the TableApi object.
|
|
@@ -5012,7 +5090,7 @@ class He extends ct {
|
|
|
5012
5090
|
* @return {GeMouseEvent} - The created GeMouseEvent object.
|
|
5013
5091
|
*/
|
|
5014
5092
|
createGeMouseEvent(e) {
|
|
5015
|
-
const t = new
|
|
5093
|
+
const t = new me();
|
|
5016
5094
|
if (t.originalEvent = e, e) {
|
|
5017
5095
|
const s = e.target;
|
|
5018
5096
|
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) {
|
|
@@ -5042,7 +5120,8 @@ class He extends ct {
|
|
|
5042
5120
|
* @param startMouseEvent
|
|
5043
5121
|
*/
|
|
5044
5122
|
mouseDraggingOnFrame(e, t) {
|
|
5045
|
-
|
|
5123
|
+
var s, o;
|
|
5124
|
+
(o = (s = this.eventListener).onMouseDragging) == null || o.call(s, e), this.mouseEvent = e, this.mouseStartColumnIndex > -1 && this.mouseStartAction === "resize-column" && this.tableOptions.columnsResizable ? this.resizeColumn(e) : this.mouseStartAction === "drag-column" && e.columnIndex > -1 && this.tableOptions.columnsDraggable && (this.draggingTargetColumnIndex = e.columnIndex, this.dragTo = this.draggingTargetColumnIndex, this.dragFrom > -1 && this.dragTo > -1 && this.dragFrom !== this.dragTo && (this.lastDragFrom === this.dragTo && this.lastDragTo === this.dragFrom || (this.tableModel.changeColumnOrder(this.dragFrom, this.dragTo), this.lastDragFrom = this.dragFrom, this.lastDragTo = this.dragTo, this.dragFrom = this.dragTo, this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows())), t && (this.adjustDraggingColumn(e, t.columnIndex, this.firstDraggingRendering), this.firstDraggingRendering = !1), this.repaint());
|
|
5046
5125
|
}
|
|
5047
5126
|
/**
|
|
5048
5127
|
* Handles the end of mouse dragging event on a frame.
|
|
@@ -5052,7 +5131,8 @@ class He extends ct {
|
|
|
5052
5131
|
* @returns {void}
|
|
5053
5132
|
*/
|
|
5054
5133
|
mouseDraggingEndOnFrame(e) {
|
|
5055
|
-
|
|
5134
|
+
var t, s;
|
|
5135
|
+
(s = (t = this.eventListener).onMouseDraggingEnd) == null || s.call(t, e), this.draggingTargetColumnIndex = -1, this.mouseStartAction === "resize-column" ? this.resizeColumn(e) : this.mouseStartAction === "drag-column" && (this.hideDraggingColumn(), this.repaint()), this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.firstDraggingRendering = !0, this.mouseStartAction = "";
|
|
5056
5136
|
}
|
|
5057
5137
|
/**
|
|
5058
5138
|
* Handles the mouse move event.
|
|
@@ -5061,7 +5141,8 @@ class He extends ct {
|
|
|
5061
5141
|
* @return {void}
|
|
5062
5142
|
*/
|
|
5063
5143
|
mouseMove(e) {
|
|
5064
|
-
|
|
5144
|
+
var t, s;
|
|
5145
|
+
(s = (t = this.eventListener).onMouseMoved) == null || s.call(t, e), this.adjustHoverRows(e), this.adjustHoverColumns(e);
|
|
5065
5146
|
}
|
|
5066
5147
|
/**
|
|
5067
5148
|
* Triggers the context menu event based on the mouse move event.
|
|
@@ -5070,13 +5151,13 @@ class He extends ct {
|
|
|
5070
5151
|
* @return {void}
|
|
5071
5152
|
*/
|
|
5072
5153
|
contextmenu(e) {
|
|
5073
|
-
var s, o;
|
|
5154
|
+
var s, o, i, r;
|
|
5074
5155
|
const t = Date.now();
|
|
5075
5156
|
if (t - this.lastContextmenu < 50) {
|
|
5076
5157
|
this.lastContextmenu = t, (s = e.originalEvent) == null || s.preventDefault(), (o = e.originalEvent) == null || o.stopImmediatePropagation();
|
|
5077
5158
|
return;
|
|
5078
5159
|
}
|
|
5079
|
-
this.lastContextmenu = t, this.eventListener.onContextmenu(e);
|
|
5160
|
+
this.lastContextmenu = t, (r = (i = this.eventListener).onContextmenu) == null || r.call(i, e);
|
|
5080
5161
|
}
|
|
5081
5162
|
/**
|
|
5082
5163
|
* Toggles the expand or collapse state of all items in the body area model.
|
|
@@ -5088,7 +5169,7 @@ class He extends ct {
|
|
|
5088
5169
|
toggleExpandCollapseAll(e = !0) {
|
|
5089
5170
|
var s;
|
|
5090
5171
|
const t = this.tableModel.getBodyModel();
|
|
5091
|
-
|
|
5172
|
+
ce(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
|
|
5092
5173
|
}
|
|
5093
5174
|
/**
|
|
5094
5175
|
* Toggles the checkbox state of a specific row in a table.
|
|
@@ -5100,11 +5181,11 @@ class He extends ct {
|
|
|
5100
5181
|
* @return {void} - This method does not return anything.
|
|
5101
5182
|
*/
|
|
5102
5183
|
toggleRowCheckbox(e, t, s) {
|
|
5103
|
-
var l;
|
|
5184
|
+
var l, a, c;
|
|
5104
5185
|
const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
|
|
5105
5186
|
o.setRowChecked(e, r), this.repaint();
|
|
5106
5187
|
const n = (l = o.rowSelectionModel) == null ? void 0 : l.getCheckedRows();
|
|
5107
|
-
this.eventListener.onCheckboxChanged(n || []);
|
|
5188
|
+
(c = (a = this.eventListener).onCheckboxChanged) == null || c.call(a, n || []);
|
|
5108
5189
|
}
|
|
5109
5190
|
/**
|
|
5110
5191
|
* Handle mouse click events.
|
|
@@ -5126,13 +5207,16 @@ class He extends ct {
|
|
|
5126
5207
|
this.debounce(this.repaint.bind(this), 1);
|
|
5127
5208
|
}
|
|
5128
5209
|
publishGeMouseEvent(e) {
|
|
5129
|
-
|
|
5210
|
+
var t, s;
|
|
5211
|
+
(s = (t = this.eventListener).onMouseClicked) == null || s.call(t, e);
|
|
5130
5212
|
}
|
|
5131
5213
|
onFocusChanged(e) {
|
|
5132
|
-
|
|
5214
|
+
var t, s;
|
|
5215
|
+
(s = (t = this.eventListener).onFocusChanged) == null || s.call(t, e);
|
|
5133
5216
|
}
|
|
5134
5217
|
onSelectionChanged(e) {
|
|
5135
|
-
|
|
5218
|
+
var t, s;
|
|
5219
|
+
(s = (t = this.eventListener).onSelectionChanged) == null || s.call(t, e);
|
|
5136
5220
|
}
|
|
5137
5221
|
/**
|
|
5138
5222
|
* Updates the table (repaint) when an external filter is changed.
|
|
@@ -5158,7 +5242,7 @@ class He extends ct {
|
|
|
5158
5242
|
const o = this.tableModel.getColumnDef(s);
|
|
5159
5243
|
if (o != null && o.sortable && o.sortable()) {
|
|
5160
5244
|
e.preventDefault(), e.stopPropagation();
|
|
5161
|
-
const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", a = n[(n.indexOf(l) + 1) % n.length], c = new
|
|
5245
|
+
const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", a = n[(n.indexOf(l) + 1) % n.length], c = new ut(s, a);
|
|
5162
5246
|
this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((u) => u.sortState = ""), o.sortState = a), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
|
|
5163
5247
|
}
|
|
5164
5248
|
}
|
|
@@ -5171,6 +5255,14 @@ class He extends ct {
|
|
|
5171
5255
|
* @return {void}
|
|
5172
5256
|
*/
|
|
5173
5257
|
scrollToPixel(e, t) {
|
|
5258
|
+
if (this.isScrollHeightCapped()) {
|
|
5259
|
+
const s = this.getContentScrollRangeY(), o = this.getScrollerRangeY();
|
|
5260
|
+
if (s > 0 && o > 0) {
|
|
5261
|
+
const i = Math.min(s, Math.max(0, t)), r = i / s * o;
|
|
5262
|
+
this.scrollViewport.scrollTo(e, r), this.pendingContentScroll = { scrollTop: this.scrollViewport.scrollTop, contentTop: i }, this.adjustAfterScrolling();
|
|
5263
|
+
return;
|
|
5264
|
+
}
|
|
5265
|
+
}
|
|
5174
5266
|
this.scrollViewport.scrollTo(e, t);
|
|
5175
5267
|
}
|
|
5176
5268
|
/**
|
|
@@ -5185,9 +5277,10 @@ class He extends ct {
|
|
|
5185
5277
|
this.scrollToPixel(0, o);
|
|
5186
5278
|
}
|
|
5187
5279
|
adjustAfterScrolling() {
|
|
5280
|
+
var t, s;
|
|
5188
5281
|
super.adjustAfterScrolling();
|
|
5189
5282
|
const e = this.scrollViewport;
|
|
5190
|
-
this.eventListener.onScroll(new
|
|
5283
|
+
(s = (t = this.eventListener).onScroll) == null || s.call(t, new ft(
|
|
5191
5284
|
this.scrollTop,
|
|
5192
5285
|
this.scrollLeft,
|
|
5193
5286
|
e.scrollHeight,
|
|
@@ -5318,7 +5411,7 @@ class He extends ct {
|
|
|
5318
5411
|
const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
|
|
5319
5412
|
if (s.autoRestoreCollapsedExpandedState && o) {
|
|
5320
5413
|
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
5321
|
-
if (
|
|
5414
|
+
if (ce(r)) {
|
|
5322
5415
|
const n = r, l = r.getRowCount();
|
|
5323
5416
|
for (let a = 0; a < l; a++) {
|
|
5324
5417
|
const c = r.getRowByIndex(a);
|
|
@@ -5427,16 +5520,16 @@ class He extends ct {
|
|
|
5427
5520
|
return e < t ? (this.scrollToIndex(0, e), !0) : e > s ? (this.scrollToIndex(0, e - o + 1), !0) : !1;
|
|
5428
5521
|
}
|
|
5429
5522
|
}
|
|
5430
|
-
class
|
|
5523
|
+
class Kt extends de {
|
|
5431
5524
|
constructor(e) {
|
|
5432
5525
|
super(), this.onCheckboxChangedCallback = e, super.onCheckboxChanged = (t) => {
|
|
5433
5526
|
this.onCheckboxChangedCallback(t);
|
|
5434
5527
|
};
|
|
5435
5528
|
}
|
|
5436
5529
|
}
|
|
5437
|
-
const
|
|
5530
|
+
const oe = class oe {
|
|
5438
5531
|
};
|
|
5439
|
-
|
|
5532
|
+
oe.themes = ["light", "combat", "paper", "blackboard"], oe.vars = {
|
|
5440
5533
|
light: `html[data-theme="light"] {
|
|
5441
5534
|
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
5442
5535
|
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
@@ -5670,28 +5763,28 @@ Z.themes = ["light", "combat", "paper", "blackboard"], Z.vars = {
|
|
|
5670
5763
|
--ge-table-drop-zone-bg: #758129;
|
|
5671
5764
|
}`
|
|
5672
5765
|
};
|
|
5673
|
-
let
|
|
5674
|
-
class
|
|
5766
|
+
let Me = oe;
|
|
5767
|
+
class Ie {
|
|
5675
5768
|
constructor(e, t = !0, s, o, i = 0, r = !1, n = !1) {
|
|
5676
5769
|
this.data = e, this.expanded = t, this.children = s, this.parent = o, this.deep = i, this.checked = r, this.keep = n, this.type = "TreeRow";
|
|
5677
5770
|
}
|
|
5678
5771
|
}
|
|
5679
|
-
class
|
|
5772
|
+
class he {
|
|
5680
5773
|
static buildTreeRows(e, t = "children", s = 12) {
|
|
5681
5774
|
const o = [];
|
|
5682
5775
|
for (const i of e)
|
|
5683
|
-
o.push(
|
|
5776
|
+
o.push(he.buildTreeRow(i, t, void 0, 0, s));
|
|
5684
5777
|
return o;
|
|
5685
5778
|
}
|
|
5686
|
-
static buildTreeRow(e, t = "children", s = new
|
|
5779
|
+
static buildTreeRow(e, t = "children", s = new Ie(e, !0, [], void 0, 0), o = 0, i = 12) {
|
|
5687
5780
|
var n;
|
|
5688
5781
|
if (o > i)
|
|
5689
5782
|
return console.warn("Max deep limit reached: ", o), s;
|
|
5690
5783
|
const r = e[t];
|
|
5691
5784
|
if (r)
|
|
5692
5785
|
for (const l of r) {
|
|
5693
|
-
const a = new
|
|
5694
|
-
if ((n = s.children) == null || n.push(a),
|
|
5786
|
+
const a = new Ie(l, !0, [], s, o + 1);
|
|
5787
|
+
if ((n = s.children) == null || n.push(a), he.buildTreeRow(
|
|
5695
5788
|
l,
|
|
5696
5789
|
t,
|
|
5697
5790
|
a,
|
|
@@ -5702,20 +5795,20 @@ class le {
|
|
|
5702
5795
|
return s;
|
|
5703
5796
|
}
|
|
5704
5797
|
}
|
|
5705
|
-
class
|
|
5798
|
+
class Y {
|
|
5706
5799
|
constructor(e = 34, t = 34, s = 34) {
|
|
5707
5800
|
this.header = e, this.body = t, this.footer = s;
|
|
5708
5801
|
}
|
|
5709
5802
|
}
|
|
5710
|
-
class
|
|
5803
|
+
class b {
|
|
5711
5804
|
constructor(e = 100, t = "px") {
|
|
5712
5805
|
this.value = e, this.unit = t;
|
|
5713
5806
|
}
|
|
5714
5807
|
}
|
|
5715
|
-
const
|
|
5716
|
-
class
|
|
5717
|
-
constructor(e, t, s = new
|
|
5718
|
-
this.property = e, this.headerLabel = t, this.width = s, this.classes = o, this.rendererMap = i, this.minWidth = r, this.maxWidth = n, this.sortable = l, this.sortComparator = a, this.sortState = c, this.sortStatesOrder = h, this.sortIconVisible = u, this.editable = f, this.getEditRenderer = p, this.editInputPipe = m, this.isVisible = g, this.visible = !0, s.unit !== "px" && (this.minWidth = new
|
|
5808
|
+
const Et = () => !0, Ee = () => !1;
|
|
5809
|
+
class W {
|
|
5810
|
+
constructor(e, t, s = new b(100, "px"), o = new T(), i = new T(), r = new b(100, "px"), n = new b(100, "px"), l, a, c, h, u, f, p, m, g = () => this.visible) {
|
|
5811
|
+
this.property = e, this.headerLabel = t, this.width = s, this.classes = o, this.rendererMap = i, this.minWidth = r, this.maxWidth = n, this.sortable = l, this.sortComparator = a, this.sortState = c, this.sortStatesOrder = h, this.sortIconVisible = u, this.editable = f, this.getEditRenderer = p, this.editInputPipe = m, this.isVisible = g, this.visible = !0, s.unit !== "px" && (this.minWidth = new b(0, "px"), this.maxWidth = new b(1e5, "px"));
|
|
5719
5812
|
}
|
|
5720
5813
|
static bodyRenderer(e) {
|
|
5721
5814
|
return new T(
|
|
@@ -5733,15 +5826,15 @@ class H {
|
|
|
5733
5826
|
e.headerClasses,
|
|
5734
5827
|
e.bodyClasses,
|
|
5735
5828
|
e.footerClasses
|
|
5736
|
-
), o = e.sortIconVisible ?? e.sortable ??
|
|
5737
|
-
return new
|
|
5829
|
+
), o = e.sortIconVisible ?? e.sortable ?? Ee, i = e.editable ?? e.editable ?? Ee, r = e.isVisible ?? e.isVisible ?? Et;
|
|
5830
|
+
return new W(
|
|
5738
5831
|
e.property ?? "",
|
|
5739
5832
|
e.headerLabel ?? "",
|
|
5740
|
-
e.width ?? new
|
|
5833
|
+
e.width ?? new b(100, "px"),
|
|
5741
5834
|
s,
|
|
5742
5835
|
t,
|
|
5743
|
-
e.minWidth ?? new
|
|
5744
|
-
e.maxWidth ?? new
|
|
5836
|
+
e.minWidth ?? new b(100, "px"),
|
|
5837
|
+
e.maxWidth ?? new b(100, "px"),
|
|
5745
5838
|
e.sortable,
|
|
5746
5839
|
e.sortComparator,
|
|
5747
5840
|
e.sortState,
|
|
@@ -5754,8 +5847,8 @@ class H {
|
|
|
5754
5847
|
);
|
|
5755
5848
|
}
|
|
5756
5849
|
}
|
|
5757
|
-
const
|
|
5758
|
-
class
|
|
5850
|
+
const Jt = new b(500, "px"), qt = new b(400, "px"), Tt = new b(300, "px"), Zt = new b(290, "px"), Qt = new b(280, "px"), es = new b(270, "px"), ts = new b(260, "px"), ss = new b(250, "px"), os = new b(240, "px"), is = new b(230, "px"), rs = new b(220, "px"), ns = new b(210, "px"), Te = new b(200, "px"), ls = new b(190, "px"), as = new b(180, "px"), cs = new b(170, "px"), ds = new b(160, "px"), hs = new b(150, "px"), us = new b(140, "px"), ps = new b(130, "px"), gs = new b(120, "px"), fs = new b(110, "px"), ms = new b(100, "px"), bs = new b(90, "px"), ys = new b(80, "px"), ws = new b(70, "px"), xs = new b(60, "px"), Ss = new b(50, "px"), Cs = new b(40, "px"), vs = new b(30, "px"), Rs = new b(20, "px"), As = new b(10, "px"), Ms = new b(0, "px");
|
|
5851
|
+
class F extends be {
|
|
5759
5852
|
constructor(e, t, s, o = []) {
|
|
5760
5853
|
super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
|
|
5761
5854
|
}
|
|
@@ -5779,11 +5872,20 @@ class P extends pe {
|
|
|
5779
5872
|
getRowHeight(e) {
|
|
5780
5873
|
return this.defaultRowHeight;
|
|
5781
5874
|
}
|
|
5875
|
+
/**
|
|
5876
|
+
* All rows share `defaultRowHeight` – unless a subclass overrides `getRowHeight()`, then row heights may
|
|
5877
|
+
* vary and `undefined` is returned.
|
|
5878
|
+
*
|
|
5879
|
+
* @returns {number | undefined} The constant row height or `undefined`.
|
|
5880
|
+
*/
|
|
5881
|
+
getConstantRowHeight() {
|
|
5882
|
+
return this.getRowHeight === F.prototype.getRowHeight && this.defaultRowHeight > 0 ? this.defaultRowHeight : void 0;
|
|
5883
|
+
}
|
|
5782
5884
|
changeColumnOrder(e, t) {
|
|
5783
5885
|
this.filteredArr.forEach((s) => this.arrayMove(s, e, t)), super.changeColumnOrder(e, t);
|
|
5784
5886
|
}
|
|
5785
5887
|
}
|
|
5786
|
-
class
|
|
5888
|
+
class P {
|
|
5787
5889
|
constructor(e = "body") {
|
|
5788
5890
|
this.areaIdent = e, this.rowSelectionModel = void 0;
|
|
5789
5891
|
}
|
|
@@ -5857,7 +5959,7 @@ class k {
|
|
|
5857
5959
|
changeColumnOrder(e, t) {
|
|
5858
5960
|
}
|
|
5859
5961
|
}
|
|
5860
|
-
class
|
|
5962
|
+
class kt {
|
|
5861
5963
|
flattenTree(e, t = []) {
|
|
5862
5964
|
var s;
|
|
5863
5965
|
for (const o of e)
|
|
@@ -5868,9 +5970,9 @@ class Et {
|
|
|
5868
5970
|
return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
|
|
5869
5971
|
}
|
|
5870
5972
|
}
|
|
5871
|
-
class
|
|
5973
|
+
class te extends be {
|
|
5872
5974
|
constructor(e, t, s, o = []) {
|
|
5873
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new
|
|
5975
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new ye(), this.service = new kt(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
|
|
5874
5976
|
}
|
|
5875
5977
|
changeColumnOrder(e, t) {
|
|
5876
5978
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
@@ -5899,6 +6001,15 @@ class Ie extends pe {
|
|
|
5899
6001
|
getRowHeight(e) {
|
|
5900
6002
|
return this.defaultRowHeight;
|
|
5901
6003
|
}
|
|
6004
|
+
/**
|
|
6005
|
+
* All rows share `defaultRowHeight` – unless a subclass overrides `getRowHeight()`, then row heights may
|
|
6006
|
+
* vary and `undefined` is returned.
|
|
6007
|
+
*
|
|
6008
|
+
* @returns {number | undefined} The constant row height or `undefined`.
|
|
6009
|
+
*/
|
|
6010
|
+
getConstantRowHeight() {
|
|
6011
|
+
return this.getRowHeight === te.prototype.getRowHeight && this.defaultRowHeight > 0 ? this.defaultRowHeight : void 0;
|
|
6012
|
+
}
|
|
5902
6013
|
getCustomClassesAt(e, t) {
|
|
5903
6014
|
return ["ge-table-tree-cell", "ge-table-tree-deep-" + this.filteredFlattenRows[e].deep];
|
|
5904
6015
|
}
|
|
@@ -5974,7 +6085,7 @@ class Ie extends pe {
|
|
|
5974
6085
|
o.children && this.treeSort(o.children, t, s);
|
|
5975
6086
|
}
|
|
5976
6087
|
}
|
|
5977
|
-
class
|
|
6088
|
+
class ke {
|
|
5978
6089
|
constructor(e = []) {
|
|
5979
6090
|
this.allRootNodes = e;
|
|
5980
6091
|
}
|
|
@@ -6034,12 +6145,12 @@ class Ee {
|
|
|
6034
6145
|
s.checked && t.push(s), s.children && this.addSelectedRecursive(s.children, t);
|
|
6035
6146
|
}
|
|
6036
6147
|
}
|
|
6037
|
-
class
|
|
6148
|
+
class ue {
|
|
6038
6149
|
constructor(e = 0, t = 0, s = 0, o = 0) {
|
|
6039
6150
|
this.top = e, this.right = t, this.bottom = s, this.left = o;
|
|
6040
6151
|
}
|
|
6041
6152
|
}
|
|
6042
|
-
class
|
|
6153
|
+
class Dt {
|
|
6043
6154
|
constructor() {
|
|
6044
6155
|
this.checkedRows = [];
|
|
6045
6156
|
}
|
|
@@ -6070,11 +6181,11 @@ class Tt {
|
|
|
6070
6181
|
}
|
|
6071
6182
|
}
|
|
6072
6183
|
}
|
|
6073
|
-
class
|
|
6074
|
-
constructor(e, t, s, o = 0, i = 0, r = !1, n = new
|
|
6184
|
+
class le {
|
|
6185
|
+
constructor(e, t, s, o = 0, i = 0, r = !1, n = new Y(), l = [], a = [], c = -1, h = 0, u = 400, f = () => {
|
|
6075
6186
|
}) {
|
|
6076
|
-
var p, m, g,
|
|
6077
|
-
this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = s, this.fixedLeftColumnCount = o, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = n, this.columnDefs = l, this.columnSizes = a, this.overridingColumnWidth = c, this.columnCount = h, this.parentSize = u, this.getSelectionModel = f, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new
|
|
6187
|
+
var p, m, g, y;
|
|
6188
|
+
this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = s, this.fixedLeftColumnCount = o, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = n, this.columnDefs = l, this.columnSizes = a, this.overridingColumnWidth = c, this.columnCount = h, this.parentSize = u, this.getSelectionModel = f, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ue(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)), (y = this.columnDefs) != null && y.length && tt(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Dt());
|
|
6078
6189
|
}
|
|
6079
6190
|
init() {
|
|
6080
6191
|
this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
|
|
@@ -6158,7 +6269,7 @@ class oe {
|
|
|
6158
6269
|
*/
|
|
6159
6270
|
recalcPadding() {
|
|
6160
6271
|
const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), s = this.getAreaHeight("header"), o = this.getAreaHeight("footer");
|
|
6161
|
-
this.padding = new
|
|
6272
|
+
this.padding = new ue(
|
|
6162
6273
|
s,
|
|
6163
6274
|
t,
|
|
6164
6275
|
o,
|
|
@@ -6463,7 +6574,7 @@ class oe {
|
|
|
6463
6574
|
return this.tableScope;
|
|
6464
6575
|
}
|
|
6465
6576
|
}
|
|
6466
|
-
class
|
|
6577
|
+
class De extends _ {
|
|
6467
6578
|
/**
|
|
6468
6579
|
* Creates an instance of AreaModelObjectArrayWithColumndefs.
|
|
6469
6580
|
*
|
|
@@ -6547,7 +6658,7 @@ class $ {
|
|
|
6547
6658
|
if ((t = e.tableOptions) != null && t.defaultRowHeights)
|
|
6548
6659
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
6549
6660
|
else {
|
|
6550
|
-
if (e.defaultRowHeights = new
|
|
6661
|
+
if (e.defaultRowHeights = new Y(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
|
|
6551
6662
|
const g = e.headerAreaModel.defaultRowHeight;
|
|
6552
6663
|
g > -1 && (e.defaultRowHeights.header = g);
|
|
6553
6664
|
}
|
|
@@ -6560,44 +6671,44 @@ class $ {
|
|
|
6560
6671
|
g > -1 && (e.defaultRowHeights.footer = g);
|
|
6561
6672
|
}
|
|
6562
6673
|
}
|
|
6563
|
-
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new
|
|
6674
|
+
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new W(g, g.toUpperCase(), Te)) : (o = e.rows) != null && o.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new W(g, g.toUpperCase(), Te)) : 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 F(
|
|
6564
6675
|
"header",
|
|
6565
6676
|
e.headerData,
|
|
6566
6677
|
e.defaultRowHeights.header,
|
|
6567
6678
|
e.columnDefs
|
|
6568
|
-
) : (c = e.columnDefs) != null && c.length ? e.headerAreaModel = new
|
|
6679
|
+
) : (c = e.columnDefs) != null && c.length ? e.headerAreaModel = new F(
|
|
6569
6680
|
"header",
|
|
6570
6681
|
[e.columnDefs.map((g) => g.headerLabel)],
|
|
6571
6682
|
e.defaultRowHeights.header,
|
|
6572
6683
|
e.columnDefs
|
|
6573
|
-
) : e.headerAreaModel = new
|
|
6684
|
+
) : e.headerAreaModel = new P("header")), e.footerAreaModel || ((h = e.footerData) != null && h.length ? e.footerAreaModel = new F(
|
|
6574
6685
|
"footer",
|
|
6575
6686
|
e.footerData,
|
|
6576
6687
|
e.defaultRowHeights.footer,
|
|
6577
6688
|
e.columnDefs
|
|
6578
|
-
) : e.footerAreaModel = new
|
|
6689
|
+
) : e.footerAreaModel = new P("footer")), !e.bodyAreaModel)
|
|
6579
6690
|
if (e.rows)
|
|
6580
|
-
if ((u = e.rows) != null && u.length &&
|
|
6691
|
+
if ((u = e.rows) != null && u.length && j(e.rows[0])) {
|
|
6581
6692
|
const g = e.rows;
|
|
6582
|
-
e.bodyAreaModel = new
|
|
6693
|
+
e.bodyAreaModel = new te(
|
|
6583
6694
|
"body",
|
|
6584
6695
|
g,
|
|
6585
6696
|
e.defaultRowHeights.body,
|
|
6586
6697
|
e.columnDefs
|
|
6587
|
-
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new
|
|
6698
|
+
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new ke(g));
|
|
6588
6699
|
} else
|
|
6589
|
-
e.bodyAreaModel = new
|
|
6700
|
+
e.bodyAreaModel = new De(
|
|
6590
6701
|
"body",
|
|
6591
6702
|
e.rows,
|
|
6592
6703
|
e.columnDefs,
|
|
6593
6704
|
e.defaultRowHeights.body
|
|
6594
6705
|
);
|
|
6595
|
-
else e.bodyData ? e.bodyAreaModel = new
|
|
6706
|
+
else e.bodyData ? e.bodyAreaModel = new F(
|
|
6596
6707
|
"body",
|
|
6597
6708
|
e.bodyData,
|
|
6598
6709
|
e.defaultRowHeights.body
|
|
6599
|
-
) : e.bodyAreaModel = new
|
|
6600
|
-
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
|
|
6710
|
+
) : e.bodyAreaModel = new P("body");
|
|
6711
|
+
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 le(
|
|
6601
6712
|
e.headerAreaModel,
|
|
6602
6713
|
e.bodyAreaModel,
|
|
6603
6714
|
e.footerAreaModel,
|
|
@@ -6634,7 +6745,7 @@ class $ {
|
|
|
6634
6745
|
return $.buildByTypedRows(
|
|
6635
6746
|
e.rows ?? [],
|
|
6636
6747
|
e.columnDefs,
|
|
6637
|
-
e.tableOptions ?? new
|
|
6748
|
+
e.tableOptions ?? new J(),
|
|
6638
6749
|
e.fixedLeftColumnCount ?? 0,
|
|
6639
6750
|
e.fixedRightColumnCount ?? 0
|
|
6640
6751
|
);
|
|
@@ -6675,19 +6786,19 @@ class $ {
|
|
|
6675
6786
|
* columnDef is "CheckboxColumn". If the first column is not a checkbox column, ensure that the first columnDef does not have "CheckboxColumn"
|
|
6676
6787
|
* as its property.
|
|
6677
6788
|
*/
|
|
6678
|
-
static buildByTypedRows(e, t, s = new
|
|
6789
|
+
static buildByTypedRows(e, t, s = new J(), o = 0, i = 0) {
|
|
6679
6790
|
const r = s.defaultRowHeights, n = t[0].property === "CheckboxColumn";
|
|
6680
|
-
if (e != null && e.length &&
|
|
6681
|
-
const a = e, c = new
|
|
6791
|
+
if (e != null && e.length && j(e[0])) {
|
|
6792
|
+
const a = e, c = new te(
|
|
6682
6793
|
"body",
|
|
6683
6794
|
a,
|
|
6684
6795
|
r.body,
|
|
6685
6796
|
t
|
|
6686
6797
|
);
|
|
6687
|
-
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new
|
|
6688
|
-
headerAreaModel: new
|
|
6798
|
+
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new ke(a)), $.createByAreaModelsParam({
|
|
6799
|
+
headerAreaModel: new F("header", [t.map((h) => h.headerLabel)], r.header),
|
|
6689
6800
|
bodyAreaModel: c,
|
|
6690
|
-
footerAreaModel: new
|
|
6801
|
+
footerAreaModel: new F("footer", [], r.footer),
|
|
6691
6802
|
columnDefs: t,
|
|
6692
6803
|
fixedLeftColumnCount: o,
|
|
6693
6804
|
fixedRightColumnCount: i,
|
|
@@ -6759,7 +6870,7 @@ class $ {
|
|
|
6759
6870
|
e.fixedLeftColumnCount ?? 0,
|
|
6760
6871
|
e.fixedRightColumnCount ?? 0,
|
|
6761
6872
|
t,
|
|
6762
|
-
e.defaultRowHeights ?? new
|
|
6873
|
+
e.defaultRowHeights ?? new Y(),
|
|
6763
6874
|
e.columnDefs ?? [],
|
|
6764
6875
|
e.columnSizes ?? []
|
|
6765
6876
|
);
|
|
@@ -6805,8 +6916,8 @@ class $ {
|
|
|
6805
6916
|
* @return A new instance of `TableModel` is created using the provided parameters.
|
|
6806
6917
|
* If a parameter isn't provided, the default value is used.
|
|
6807
6918
|
*/
|
|
6808
|
-
static createByAreaModels(e = new
|
|
6809
|
-
return new
|
|
6919
|
+
static createByAreaModels(e = new P(), t, s = new P(), o = 0, i = 0, r = !1, n = new Y(), l, a = [], c = -1, h) {
|
|
6920
|
+
return new le(
|
|
6810
6921
|
e,
|
|
6811
6922
|
t,
|
|
6812
6923
|
s,
|
|
@@ -6858,9 +6969,9 @@ class $ {
|
|
|
6858
6969
|
*/
|
|
6859
6970
|
static createByAreaModelsParam(e) {
|
|
6860
6971
|
return $.createByAreaModels(
|
|
6861
|
-
e.headerAreaModel ?? new
|
|
6972
|
+
e.headerAreaModel ?? new P(),
|
|
6862
6973
|
e.bodyAreaModel,
|
|
6863
|
-
e.footerAreaModel ?? new
|
|
6974
|
+
e.footerAreaModel ?? new P(),
|
|
6864
6975
|
e.fixedLeftColumnCount ?? 0,
|
|
6865
6976
|
e.fixedRightColumnCount ?? 0,
|
|
6866
6977
|
e.rowCheckboxVisible === void 0 ? !1 : e.rowCheckboxVisible,
|
|
@@ -6919,11 +7030,11 @@ class $ {
|
|
|
6919
7030
|
*
|
|
6920
7031
|
* Reference: For more details regarding the `DefaultRowHeightsIf`, `ColumnDefIf`, `AreaModelIf`, and `AreaModelArrayOfArrays` classes/interfaces, please refer to the respective API documents.
|
|
6921
7032
|
*/
|
|
6922
|
-
static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new
|
|
7033
|
+
static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new Y(), l, a = []) {
|
|
6923
7034
|
let c;
|
|
6924
|
-
t != null && t.length ? c = new
|
|
6925
|
-
const h = s ? new
|
|
6926
|
-
return new
|
|
7035
|
+
t != null && t.length ? c = new F("header", t, n.header, l) : l != null && l.length ? c = new F("header", [l.map((f) => f.headerLabel)], n.header, l) : c = new P();
|
|
7036
|
+
const h = s ? new F("footer", s, n.footer, l) : new P(), u = new De("body", e, l, n.body);
|
|
7037
|
+
return new le(
|
|
6927
7038
|
c,
|
|
6928
7039
|
u,
|
|
6929
7040
|
h,
|
|
@@ -6936,9 +7047,9 @@ class $ {
|
|
|
6936
7047
|
);
|
|
6937
7048
|
}
|
|
6938
7049
|
}
|
|
6939
|
-
class
|
|
7050
|
+
class Ft {
|
|
6940
7051
|
constructor(e, t, s = 200, o = 300, i = 0, r = 0) {
|
|
6941
|
-
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
|
|
7052
|
+
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 ye(), this.filteredItems = e;
|
|
6942
7053
|
}
|
|
6943
7054
|
setParentWidth(e) {
|
|
6944
7055
|
this.width = e;
|
|
@@ -7032,9 +7143,9 @@ class kt {
|
|
|
7032
7143
|
arrayMove(e, t, s) {
|
|
7033
7144
|
}
|
|
7034
7145
|
}
|
|
7035
|
-
class
|
|
7146
|
+
class Pt {
|
|
7036
7147
|
constructor(e, t = 0) {
|
|
7037
|
-
this.bodyModel = e, this.paddingTop = t, this.headerAreaModel = new
|
|
7148
|
+
this.bodyModel = e, this.paddingTop = t, this.headerAreaModel = new P(), this.footerAreaModel = new P();
|
|
7038
7149
|
}
|
|
7039
7150
|
changeColumnOrder(e, t) {
|
|
7040
7151
|
}
|
|
@@ -7099,7 +7210,7 @@ class Dt {
|
|
|
7099
7210
|
recalcHeightAndPadding() {
|
|
7100
7211
|
}
|
|
7101
7212
|
getPadding() {
|
|
7102
|
-
return new
|
|
7213
|
+
return new ue(0, 0, 0, 0);
|
|
7103
7214
|
}
|
|
7104
7215
|
getContentHeightInPixel() {
|
|
7105
7216
|
return this.paddingTop + this.bodyModel.getRowCount() * this.bodyModel.coverHeight;
|
|
@@ -7125,7 +7236,7 @@ class Dt {
|
|
|
7125
7236
|
return this.tableScope;
|
|
7126
7237
|
}
|
|
7127
7238
|
}
|
|
7128
|
-
class
|
|
7239
|
+
class _t {
|
|
7129
7240
|
constructor() {
|
|
7130
7241
|
this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, s) => {
|
|
7131
7242
|
if (e && t && s.getRowId) {
|
|
@@ -7150,14 +7261,14 @@ class Ft {
|
|
|
7150
7261
|
};
|
|
7151
7262
|
}
|
|
7152
7263
|
}
|
|
7153
|
-
class
|
|
7264
|
+
class Is {
|
|
7154
7265
|
static createCoverGridModel(e, t, s = 200, o = 300, i = 0, r = 0) {
|
|
7155
|
-
const n = new
|
|
7156
|
-
return new
|
|
7266
|
+
const n = new Ft(e, t, s, o, i, r);
|
|
7267
|
+
return new Pt(n, r);
|
|
7157
7268
|
}
|
|
7158
7269
|
static createCoverGrisDefaultOptions(e, t = () => "CoverGrid") {
|
|
7159
7270
|
return {
|
|
7160
|
-
...new
|
|
7271
|
+
...new J(),
|
|
7161
7272
|
horizontalBorderVisible: !1,
|
|
7162
7273
|
verticalBorderVisible: !1,
|
|
7163
7274
|
footerSeparatorBorderVisible: !1,
|
|
@@ -7175,7 +7286,7 @@ class As {
|
|
|
7175
7286
|
},
|
|
7176
7287
|
// externalFilterFunction: this.filterFn.bind(this),
|
|
7177
7288
|
autoRestoreOptions: {
|
|
7178
|
-
...new
|
|
7289
|
+
...new _t(),
|
|
7179
7290
|
getStorageKeyFn: t,
|
|
7180
7291
|
autoRestoreCollapsedExpandedState: !1,
|
|
7181
7292
|
autoRestoreScrollPosition: !0,
|
|
@@ -7185,7 +7296,7 @@ class As {
|
|
|
7185
7296
|
};
|
|
7186
7297
|
}
|
|
7187
7298
|
}
|
|
7188
|
-
const
|
|
7299
|
+
const Es = [
|
|
7189
7300
|
"COPY_2_CLIPBOARD",
|
|
7190
7301
|
"START_EDITING",
|
|
7191
7302
|
"TOGGLE_SELECTION",
|
|
@@ -7203,17 +7314,17 @@ const Ms = [
|
|
|
7203
7314
|
// "PAGEUP_PRESSED",
|
|
7204
7315
|
// "PAGEDOWN_PRESSED"
|
|
7205
7316
|
];
|
|
7206
|
-
class
|
|
7317
|
+
class Lt {
|
|
7207
7318
|
constructor(e, t) {
|
|
7208
7319
|
this.tableModel = e, this.tableOptions = t;
|
|
7209
7320
|
}
|
|
7210
7321
|
}
|
|
7211
|
-
class
|
|
7322
|
+
class Ot {
|
|
7212
7323
|
constructor(e, t, s, o, i, r, n) {
|
|
7213
7324
|
this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = s, this.filter = o, this.sorting = i, this.startIndex = r, this.endIndex = n;
|
|
7214
7325
|
}
|
|
7215
7326
|
}
|
|
7216
|
-
class
|
|
7327
|
+
class Ts extends Ot {
|
|
7217
7328
|
constructor(e, t, s, o, i, r, n, l) {
|
|
7218
7329
|
super(
|
|
7219
7330
|
e,
|
|
@@ -7226,30 +7337,30 @@ class Is extends _t {
|
|
|
7226
7337
|
), this.rows = l;
|
|
7227
7338
|
}
|
|
7228
7339
|
}
|
|
7229
|
-
class
|
|
7340
|
+
class Vt {
|
|
7230
7341
|
constructor(e, t) {
|
|
7231
7342
|
this.value = e, this.label = t;
|
|
7232
7343
|
}
|
|
7233
7344
|
}
|
|
7234
|
-
class
|
|
7345
|
+
class ks {
|
|
7235
7346
|
constructor(e, t) {
|
|
7236
7347
|
this.index = e, this.px = t;
|
|
7237
7348
|
}
|
|
7238
7349
|
}
|
|
7239
|
-
const
|
|
7350
|
+
const Ds = { body: ["ge-table-text-align-left"] }, Fs = { body: ["ge-table-text-align-center"] }, Ps = { body: ["ge-table-text-align-right"] }, _s = {
|
|
7240
7351
|
header: ["ge-table-text-align-left"],
|
|
7241
7352
|
body: ["ge-table-text-align-left"],
|
|
7242
7353
|
footer: ["ge-table-text-align-left"]
|
|
7243
|
-
},
|
|
7354
|
+
}, Ls = {
|
|
7244
7355
|
header: ["ge-table-text-align-center"],
|
|
7245
7356
|
body: ["ge-table-text-align-center"],
|
|
7246
7357
|
footer: ["ge-table-text-align-center"]
|
|
7247
|
-
},
|
|
7358
|
+
}, Os = {
|
|
7248
7359
|
header: ["ge-table-text-align-right"],
|
|
7249
7360
|
body: ["ge-table-text-align-right"],
|
|
7250
7361
|
footer: ["ge-table-text-align-right"]
|
|
7251
7362
|
};
|
|
7252
|
-
class
|
|
7363
|
+
class Fe {
|
|
7253
7364
|
render(e, t, s, o, i, r, n) {
|
|
7254
7365
|
if (i.isRowCheckable(t)) {
|
|
7255
7366
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
@@ -7267,16 +7378,16 @@ class ke {
|
|
|
7267
7378
|
}
|
|
7268
7379
|
}
|
|
7269
7380
|
}
|
|
7270
|
-
class
|
|
7381
|
+
class Vs {
|
|
7271
7382
|
constructor() {
|
|
7272
|
-
this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new
|
|
7383
|
+
this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new b(50, "px"), this.minWidth = new b(50, "px"), this.maxWidth = new b(100, "px"), this.rendererMap = new T(new Fe(), new Fe(), void 0), this.classes = new T(
|
|
7273
7384
|
[],
|
|
7274
7385
|
["ge-table-text-align-left"],
|
|
7275
7386
|
[]
|
|
7276
7387
|
);
|
|
7277
7388
|
}
|
|
7278
7389
|
}
|
|
7279
|
-
class
|
|
7390
|
+
class Hs {
|
|
7280
7391
|
/**
|
|
7281
7392
|
* A factory that creates a new AreaObjectMap with the given body renderer.
|
|
7282
7393
|
*
|
|
@@ -7291,22 +7402,22 @@ class Os {
|
|
|
7291
7402
|
);
|
|
7292
7403
|
}
|
|
7293
7404
|
}
|
|
7294
|
-
class
|
|
7405
|
+
class $s {
|
|
7295
7406
|
constructor(e = "down", t) {
|
|
7296
7407
|
this.status = e, this.originalEvent = t;
|
|
7297
7408
|
}
|
|
7298
7409
|
}
|
|
7299
|
-
class
|
|
7410
|
+
class Bs {
|
|
7300
7411
|
constructor(e, t, s, o, i = {}) {
|
|
7301
7412
|
this.area = e, this.rowIndex = t, this.columnIndex = s, this.value = o, this.cssClasses = i;
|
|
7302
7413
|
}
|
|
7303
7414
|
}
|
|
7304
|
-
class
|
|
7415
|
+
class Ht {
|
|
7305
7416
|
constructor(e, t, s, o = !1, i = "normal", r = void 0) {
|
|
7306
7417
|
this.data = e, this.property = t, this.toggle = s, this.closed = o, this.visibility = i, this.children = r, this.impl = "CellGroup";
|
|
7307
7418
|
}
|
|
7308
7419
|
}
|
|
7309
|
-
class
|
|
7420
|
+
class $t extends Ht {
|
|
7310
7421
|
constructor(e, t = 0, s = 0, o) {
|
|
7311
7422
|
super(
|
|
7312
7423
|
e.data,
|
|
@@ -7402,7 +7513,7 @@ class E {
|
|
|
7402
7513
|
static buildColumnDefs(e, t = []) {
|
|
7403
7514
|
for (const s of e)
|
|
7404
7515
|
s.property && t.push(
|
|
7405
|
-
|
|
7516
|
+
W.create({
|
|
7406
7517
|
property: s.property,
|
|
7407
7518
|
headerLabel: s.data ? s.data : s.property,
|
|
7408
7519
|
isVisible: () => typeof s.isVisible == "function" ? s.isVisible() : !0
|
|
@@ -7431,7 +7542,7 @@ class E {
|
|
|
7431
7542
|
static buildGroupExts(e, t = [], s = 0, o) {
|
|
7432
7543
|
let i;
|
|
7433
7544
|
for (let r = 0; r < e.length; r++) {
|
|
7434
|
-
const n = e[r], l = new
|
|
7545
|
+
const n = e[r], l = new $t(n, s, r, o);
|
|
7435
7546
|
i && (l.leftNeighbour = i, i.rightNeighbour = l), t.push(l), n.children && (l.children = E.buildGroupExts(n.children, [], s + 1, l)), i = l;
|
|
7436
7547
|
}
|
|
7437
7548
|
return t;
|
|
@@ -7473,7 +7584,7 @@ class E {
|
|
|
7473
7584
|
e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length && E.iterateThrowColumns(e, o.children);
|
|
7474
7585
|
}
|
|
7475
7586
|
}
|
|
7476
|
-
class
|
|
7587
|
+
class Ws {
|
|
7477
7588
|
constructor() {
|
|
7478
7589
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
7479
7590
|
}
|
|
@@ -7880,10 +7991,11 @@ class Bs {
|
|
|
7880
7991
|
/**
|
|
7881
7992
|
* Returns the Y-coordinate (in pixels) of the top of the row at the specified index.
|
|
7882
7993
|
* This method is used for scrolling and positioning rows in the viewport.
|
|
7883
|
-
* The base implementation
|
|
7884
|
-
*
|
|
7994
|
+
* The base implementation computes it from `getConstantRowHeight()` (O(1)) or by summing up
|
|
7995
|
+
* `getRowHeight()` of all rows above (O(n)) – override it for large models with variable row heights.
|
|
7996
|
+
* (Before 1.1.85 the base implementation returned 0.)
|
|
7885
7997
|
*
|
|
7886
|
-
* @param {number}
|
|
7998
|
+
* @param {number} rowIndex - The index of the row
|
|
7887
7999
|
* @returns {number} The Y-coordinate of the top of the row, in pixels
|
|
7888
8000
|
*
|
|
7889
8001
|
* @example
|
|
@@ -7907,7 +8019,22 @@ class Bs {
|
|
|
7907
8019
|
* }
|
|
7908
8020
|
*/
|
|
7909
8021
|
getYPosByRowIndex(e) {
|
|
7910
|
-
|
|
8022
|
+
const t = this.getConstantRowHeight();
|
|
8023
|
+
if (t !== void 0 && t > 0)
|
|
8024
|
+
return e * t;
|
|
8025
|
+
let s = 0;
|
|
8026
|
+
for (let o = 0; o < e; o++)
|
|
8027
|
+
s += this.getRowHeight(o);
|
|
8028
|
+
return s;
|
|
8029
|
+
}
|
|
8030
|
+
/**
|
|
8031
|
+
* Returns the row height if all rows have the same height, otherwise `undefined` (default).
|
|
8032
|
+
* Override it together with `getRowHeight()` if your rows have a constant height – this makes rendering
|
|
8033
|
+
* of very large tables independent of the scroll position.
|
|
8034
|
+
*
|
|
8035
|
+
* @returns {number | undefined} `undefined` in the base implementation.
|
|
8036
|
+
*/
|
|
8037
|
+
getConstantRowHeight() {
|
|
7911
8038
|
}
|
|
7912
8039
|
/**
|
|
7913
8040
|
* Initializes the area model.
|
|
@@ -8095,14 +8222,14 @@ class Bs {
|
|
|
8095
8222
|
return !1;
|
|
8096
8223
|
}
|
|
8097
8224
|
}
|
|
8098
|
-
const
|
|
8099
|
-
constructor(e = new
|
|
8225
|
+
const ie = class ie {
|
|
8226
|
+
constructor(e = new Ce()) {
|
|
8100
8227
|
this.headerGroupOptions = e;
|
|
8101
8228
|
}
|
|
8102
8229
|
render(e, t, s, o, i, r, n) {
|
|
8103
8230
|
const l = r != null && r.data ? r.data : "";
|
|
8104
8231
|
if (r) {
|
|
8105
|
-
const { toggle: a, visibility: c, closed: h } = r, u = a ?
|
|
8232
|
+
const { toggle: a, visibility: c, closed: h } = r, u = a ? ie.toggleHeaderGroup : "";
|
|
8106
8233
|
this.addText(e, o, t, s, l, u), a && c !== "always" && this.addArrowDiv(n, e, !h, t, s, o, u);
|
|
8107
8234
|
} else
|
|
8108
8235
|
this.addText(e, o, t, s, l, "");
|
|
@@ -8134,11 +8261,11 @@ const Q = class Q {
|
|
|
8134
8261
|
}
|
|
8135
8262
|
}
|
|
8136
8263
|
};
|
|
8137
|
-
|
|
8138
|
-
let
|
|
8139
|
-
class
|
|
8140
|
-
constructor(e = "header", t, s = [], o, i = new
|
|
8141
|
-
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
|
|
8264
|
+
ie.toggleHeaderGroup = "toggleHeaderGroup";
|
|
8265
|
+
let pe = ie;
|
|
8266
|
+
class Ns {
|
|
8267
|
+
constructor(e = "header", t, s = [], o, i = new Ce()) {
|
|
8268
|
+
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 pe(this.headerGroupOptions), this.groupExts = E.buildGroupExts(t), this.init();
|
|
8142
8269
|
}
|
|
8143
8270
|
sort(e) {
|
|
8144
8271
|
}
|
|
@@ -8238,7 +8365,7 @@ class Hs {
|
|
|
8238
8365
|
return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()), E.buildColumnDefs(this.groupExts);
|
|
8239
8366
|
}
|
|
8240
8367
|
}
|
|
8241
|
-
class
|
|
8368
|
+
class Gs {
|
|
8242
8369
|
filterPredict(e, t, s = this.objectToString.bind(this)) {
|
|
8243
8370
|
if (!e)
|
|
8244
8371
|
return !1;
|
|
@@ -8292,12 +8419,12 @@ class Ws {
|
|
|
8292
8419
|
return t.join(" ").toLowerCase();
|
|
8293
8420
|
}
|
|
8294
8421
|
}
|
|
8295
|
-
class
|
|
8422
|
+
class zs {
|
|
8296
8423
|
static bodyRenderer(e) {
|
|
8297
8424
|
return new T(void 0, e, void 0);
|
|
8298
8425
|
}
|
|
8299
8426
|
}
|
|
8300
|
-
class
|
|
8427
|
+
class js {
|
|
8301
8428
|
constructor(e, t = !0, s = !1) {
|
|
8302
8429
|
this.property = e, this.skipCheckableCheck = t, this.readonly = s;
|
|
8303
8430
|
}
|
|
@@ -8322,12 +8449,12 @@ class Gs {
|
|
|
8322
8449
|
}
|
|
8323
8450
|
}
|
|
8324
8451
|
}
|
|
8325
|
-
class
|
|
8452
|
+
class Us {
|
|
8326
8453
|
render(e, t, s, o, i, r, n) {
|
|
8327
8454
|
r && (e.innerText = new Date(r).toISOString());
|
|
8328
8455
|
}
|
|
8329
8456
|
}
|
|
8330
|
-
class
|
|
8457
|
+
class Ys {
|
|
8331
8458
|
constructor() {
|
|
8332
8459
|
this.formatter = new Intl.DateTimeFormat("de-DE", {
|
|
8333
8460
|
year: "numeric",
|
|
@@ -8350,17 +8477,17 @@ class js {
|
|
|
8350
8477
|
}
|
|
8351
8478
|
}
|
|
8352
8479
|
}
|
|
8353
|
-
class
|
|
8480
|
+
class Xs {
|
|
8354
8481
|
render(e, t, s, o, i, r, n) {
|
|
8355
8482
|
r && (e.innerText = new Date(r).toLocaleDateString());
|
|
8356
8483
|
}
|
|
8357
8484
|
}
|
|
8358
|
-
class
|
|
8485
|
+
class Ks {
|
|
8359
8486
|
render(e, t, s, o, i, r, n) {
|
|
8360
8487
|
r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
|
|
8361
8488
|
}
|
|
8362
8489
|
}
|
|
8363
|
-
class
|
|
8490
|
+
class Js {
|
|
8364
8491
|
constructor(e = 100, t = !1) {
|
|
8365
8492
|
this.maxValue = e, this.labelVisible = t;
|
|
8366
8493
|
}
|
|
@@ -8390,17 +8517,17 @@ class Ks {
|
|
|
8390
8517
|
}
|
|
8391
8518
|
}
|
|
8392
8519
|
}
|
|
8393
|
-
class
|
|
8520
|
+
class qs {
|
|
8394
8521
|
render(e, t, s, o, i, r, n) {
|
|
8395
8522
|
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 = "";
|
|
8396
8523
|
}
|
|
8397
8524
|
}
|
|
8398
|
-
class
|
|
8525
|
+
class Zs {
|
|
8399
8526
|
render(e, t, s, o, i, r, n) {
|
|
8400
8527
|
r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
|
|
8401
8528
|
}
|
|
8402
8529
|
}
|
|
8403
|
-
class
|
|
8530
|
+
class Qs {
|
|
8404
8531
|
constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
|
|
8405
8532
|
this.min = e, this.max = t;
|
|
8406
8533
|
}
|
|
@@ -8411,7 +8538,7 @@ class qs {
|
|
|
8411
8538
|
</div>`, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && n.addClass(e, "ge-cell-error"));
|
|
8412
8539
|
}
|
|
8413
8540
|
}
|
|
8414
|
-
class
|
|
8541
|
+
class eo {
|
|
8415
8542
|
constructor(e) {
|
|
8416
8543
|
this.property = e;
|
|
8417
8544
|
}
|
|
@@ -8430,7 +8557,7 @@ class Zs {
|
|
|
8430
8557
|
}
|
|
8431
8558
|
}
|
|
8432
8559
|
}
|
|
8433
|
-
class
|
|
8560
|
+
class to {
|
|
8434
8561
|
render(e, t, s, o, i, r, n) {
|
|
8435
8562
|
if (r != null && r.length) {
|
|
8436
8563
|
const l = n.createElement("div");
|
|
@@ -8443,7 +8570,7 @@ class Qs {
|
|
|
8443
8570
|
e.innerText = "";
|
|
8444
8571
|
}
|
|
8445
8572
|
}
|
|
8446
|
-
class
|
|
8573
|
+
class so {
|
|
8447
8574
|
constructor(e, t = 100, s = !1) {
|
|
8448
8575
|
this.property = e, this.maxValue = t, this.labelVisible = s;
|
|
8449
8576
|
}
|
|
@@ -8475,7 +8602,7 @@ class eo {
|
|
|
8475
8602
|
}
|
|
8476
8603
|
}
|
|
8477
8604
|
}
|
|
8478
|
-
class
|
|
8605
|
+
class oo {
|
|
8479
8606
|
render(e, t, s, o, i, r, n) {
|
|
8480
8607
|
if (r) {
|
|
8481
8608
|
e.innerHTML = `
|
|
@@ -8495,17 +8622,17 @@ class to {
|
|
|
8495
8622
|
}
|
|
8496
8623
|
}
|
|
8497
8624
|
}
|
|
8498
|
-
class
|
|
8625
|
+
class Ge {
|
|
8499
8626
|
constructor(e, t, s, o, i, r) {
|
|
8500
8627
|
this.action = e, this.area = t, this.areaModel = s, this.rowIndex = o, this.columnIndex = i, this.id = r;
|
|
8501
8628
|
}
|
|
8502
8629
|
}
|
|
8503
|
-
class
|
|
8630
|
+
class H {
|
|
8504
8631
|
constructor(e, t, s = "", o = "", i = "button", r = !0) {
|
|
8505
8632
|
this.action = e, this.label = t, this.icon = s, this.elementClass = o, this.elementType = i, this.enabled = r;
|
|
8506
8633
|
}
|
|
8507
8634
|
}
|
|
8508
|
-
class
|
|
8635
|
+
class Bt {
|
|
8509
8636
|
constructor(e, t) {
|
|
8510
8637
|
this.actionEventListener = e, this.crudActions = t;
|
|
8511
8638
|
}
|
|
@@ -8561,25 +8688,25 @@ class $t {
|
|
|
8561
8688
|
createActionEvent(e, t) {
|
|
8562
8689
|
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";
|
|
8563
8690
|
if (s && o && i) {
|
|
8564
|
-
const l =
|
|
8565
|
-
return new
|
|
8691
|
+
const l = re(s), a = Number(o), c = Number(i);
|
|
8692
|
+
return new Ge(r, l, t, a, c, n);
|
|
8566
8693
|
}
|
|
8567
8694
|
return null;
|
|
8568
8695
|
}
|
|
8569
8696
|
getCrudActions(e) {
|
|
8570
|
-
return Array.isArray(e) && e.every((t) => t instanceof
|
|
8697
|
+
return Array.isArray(e) && e.every((t) => t instanceof H) ? e : this.crudActions;
|
|
8571
8698
|
}
|
|
8572
8699
|
}
|
|
8573
|
-
const
|
|
8700
|
+
const io = function(d, e, t) {
|
|
8574
8701
|
return d ? Number(d) : "";
|
|
8575
8702
|
};
|
|
8576
|
-
class
|
|
8703
|
+
class ze {
|
|
8577
8704
|
constructor(e) {
|
|
8578
8705
|
this.options = e;
|
|
8579
8706
|
}
|
|
8580
8707
|
static create(e) {
|
|
8581
|
-
return new
|
|
8582
|
-
e.map((t) => new
|
|
8708
|
+
return new ze(
|
|
8709
|
+
e.map((t) => new Vt(t, t))
|
|
8583
8710
|
);
|
|
8584
8711
|
}
|
|
8585
8712
|
render(e, t, s, o, i, r, n) {
|
|
@@ -8605,7 +8732,7 @@ class Ne {
|
|
|
8605
8732
|
}
|
|
8606
8733
|
}
|
|
8607
8734
|
}
|
|
8608
|
-
class
|
|
8735
|
+
class ro extends Se {
|
|
8609
8736
|
constructor(e) {
|
|
8610
8737
|
super("row", "multi"), this.model = e;
|
|
8611
8738
|
}
|
|
@@ -8625,7 +8752,7 @@ class oo extends be {
|
|
|
8625
8752
|
* @param {number} rowIndex - The index of the row to be selected.
|
|
8626
8753
|
*/
|
|
8627
8754
|
selectRow(e) {
|
|
8628
|
-
this.addRange(
|
|
8755
|
+
this.addRange(M.singleRow(e));
|
|
8629
8756
|
}
|
|
8630
8757
|
/**
|
|
8631
8758
|
* Unselects the specified row.
|
|
@@ -8634,7 +8761,7 @@ class oo extends be {
|
|
|
8634
8761
|
* @return {void}
|
|
8635
8762
|
*/
|
|
8636
8763
|
unselectRow(e) {
|
|
8637
|
-
this.removeSelection(
|
|
8764
|
+
this.removeSelection(M.singleRow(e));
|
|
8638
8765
|
}
|
|
8639
8766
|
/**
|
|
8640
8767
|
* Toggles the selection of items based on current selection state.
|
|
@@ -8688,39 +8815,39 @@ class oo extends be {
|
|
|
8688
8815
|
this.isSelected(e, 0) ? this.unselectRow(e) : this.selectRow(e);
|
|
8689
8816
|
}
|
|
8690
8817
|
}
|
|
8691
|
-
class
|
|
8818
|
+
class no {
|
|
8692
8819
|
constructor(e, t, s) {
|
|
8693
8820
|
this.r = e, this.g = t, this.b = s;
|
|
8694
8821
|
}
|
|
8695
8822
|
}
|
|
8696
|
-
class
|
|
8823
|
+
class Pe {
|
|
8697
8824
|
constructor(e, t, s, o) {
|
|
8698
8825
|
this.minValue = e, this.minColor = t, this.maxValue = s, this.maxColor = o;
|
|
8699
8826
|
}
|
|
8700
8827
|
}
|
|
8701
|
-
class
|
|
8828
|
+
class q {
|
|
8702
8829
|
static normalize(e, t, s, o = 0, i = 1) {
|
|
8703
8830
|
return (e - t) / (s - t) * (i - o) + o;
|
|
8704
8831
|
}
|
|
8705
8832
|
static getTwoColorGradientRGB(e, t) {
|
|
8706
|
-
const s =
|
|
8833
|
+
const s = q.normalize(e, t.minValue, t.maxValue, 0, 1), o = t.maxColor.r - t.minColor.r, i = t.maxColor.g - t.minColor.g, r = t.maxColor.b - t.minColor.b, n = o * s + t.minColor.r, l = i * s + t.minColor.g, a = r * s + t.minColor.b;
|
|
8707
8834
|
return `rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(a)})`;
|
|
8708
8835
|
}
|
|
8709
8836
|
static getThreeColorGradientRGB(e, t) {
|
|
8710
|
-
return e < t.middleValue ?
|
|
8837
|
+
return e < t.middleValue ? q.getTwoColorGradientRGB(e, new Pe(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? q.getTwoColorGradientRGB(e, new Pe(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
|
|
8711
8838
|
}
|
|
8712
8839
|
}
|
|
8713
|
-
class
|
|
8840
|
+
class lo {
|
|
8714
8841
|
constructor(e, t, s, o, i, r) {
|
|
8715
8842
|
this.minValue = e, this.minColor = t, this.middleValue = s, this.middleColor = o, this.maxValue = i, this.maxColor = r;
|
|
8716
8843
|
}
|
|
8717
8844
|
}
|
|
8718
|
-
class
|
|
8845
|
+
class Wt {
|
|
8719
8846
|
constructor(e = !0, t = !0, s = (r, n) => r * 10 + 10, o = 50, i = 450) {
|
|
8720
8847
|
this.autoCalc = e, this.takeHeaderLabelsIntoAccount = t, this.charCountToWidth = s, this.minWidth = o, this.maxWidth = i;
|
|
8721
8848
|
}
|
|
8722
8849
|
}
|
|
8723
|
-
class
|
|
8850
|
+
class Nt {
|
|
8724
8851
|
constructor(e) {
|
|
8725
8852
|
this.object = e;
|
|
8726
8853
|
}
|
|
@@ -8771,7 +8898,7 @@ class Ht {
|
|
|
8771
8898
|
return s.join("");
|
|
8772
8899
|
}
|
|
8773
8900
|
}
|
|
8774
|
-
class
|
|
8901
|
+
class ae {
|
|
8775
8902
|
constructor(e, t, s = "Edit Item") {
|
|
8776
8903
|
this.idKey = e, this.dialogTitle = s, this.object = { ...t };
|
|
8777
8904
|
}
|
|
@@ -8852,7 +8979,7 @@ class ie {
|
|
|
8852
8979
|
return e.replace(/\./g, " ");
|
|
8853
8980
|
}
|
|
8854
8981
|
}
|
|
8855
|
-
class
|
|
8982
|
+
class Gt {
|
|
8856
8983
|
constructor() {
|
|
8857
8984
|
this.urls = {
|
|
8858
8985
|
list: {
|
|
@@ -8860,15 +8987,15 @@ class Wt {
|
|
|
8860
8987
|
method: "GET"
|
|
8861
8988
|
}
|
|
8862
8989
|
}, this.singleRowActions = [
|
|
8863
|
-
new
|
|
8864
|
-
new
|
|
8865
|
-
new
|
|
8866
|
-
new
|
|
8990
|
+
new H("VIEW", "View", "", "", "link"),
|
|
8991
|
+
new H("EDIT", "Edit", "", "", "link"),
|
|
8992
|
+
new H("CLONE", "Clone", "", "", "link"),
|
|
8993
|
+
new H("DELETE", "Delete", "", "", "link")
|
|
8867
8994
|
// new CrudAction('CREATE', 'Create', '', '', 'link'),
|
|
8868
8995
|
], this.tableActions = [
|
|
8869
|
-
new
|
|
8870
|
-
new
|
|
8871
|
-
], this.autoAddActionColumn = !0, this.columnWidths = new
|
|
8996
|
+
new H("CREATE", "Create", "", "", "button"),
|
|
8997
|
+
new H("DELETE_SELECTED", "Delete Selected", "", "", "button")
|
|
8998
|
+
], this.autoAddActionColumn = !0, this.columnWidths = new Wt(), 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) => {
|
|
8872
8999
|
const t = e.getHeadersInit ? e.getHeadersInit() : {};
|
|
8873
9000
|
let s = e.urls.list.url, o = e.urls.list.method ?? "GET";
|
|
8874
9001
|
return fetch(s, {
|
|
@@ -8919,9 +9046,9 @@ class Wt {
|
|
|
8919
9046
|
};
|
|
8920
9047
|
}
|
|
8921
9048
|
}
|
|
8922
|
-
class
|
|
9049
|
+
class ao {
|
|
8923
9050
|
constructor() {
|
|
8924
|
-
this.crudOptions = new
|
|
9051
|
+
this.crudOptions = new Gt(), this.listenActionEvent = (e) => {
|
|
8925
9052
|
};
|
|
8926
9053
|
}
|
|
8927
9054
|
createTableModel(e, t, s = (i) => {
|
|
@@ -8930,31 +9057,31 @@ class no {
|
|
|
8930
9057
|
this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
|
|
8931
9058
|
var r, n, l, a;
|
|
8932
9059
|
if (t.rows = i, i != null && i.length) {
|
|
8933
|
-
const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((
|
|
9060
|
+
const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((x) => x.property) : this.extractProperties(i[0]), h = new Se("row", "multi"), u = () => h;
|
|
8934
9061
|
this.tableOptions = {
|
|
8935
|
-
...new
|
|
9062
|
+
...new J(),
|
|
8936
9063
|
...t.tableOptions,
|
|
8937
9064
|
hoverColumnVisible: !1,
|
|
8938
9065
|
getSelectionModel: u
|
|
8939
9066
|
};
|
|
8940
|
-
const f = this.calcAutoColumnWidths(i, c), p = (n = t.columnDefs) != null && n.length ? t.columnDefs : c.map(((
|
|
9067
|
+
const f = this.calcAutoColumnWidths(i, c), p = (n = t.columnDefs) != null && n.length ? t.columnDefs : c.map(((x, A) => new W(x, x.toUpperCase(), new b(f[A], "px"))));
|
|
8941
9068
|
if ((l = e == null ? void 0 : e.columnWidths) != null && l.autoCalc)
|
|
8942
|
-
for (let
|
|
8943
|
-
const
|
|
8944
|
-
|
|
9069
|
+
for (let x = 0; x < p.length; x++) {
|
|
9070
|
+
const A = p[x];
|
|
9071
|
+
A.width = new b(f[x], "px");
|
|
8945
9072
|
}
|
|
8946
9073
|
if (e.autoAddActionColumn) {
|
|
8947
|
-
let
|
|
9074
|
+
let x = new W(
|
|
8948
9075
|
"id",
|
|
8949
9076
|
"Actions",
|
|
8950
|
-
|
|
9077
|
+
Tt,
|
|
8951
9078
|
new T(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
|
|
8952
9079
|
);
|
|
8953
|
-
|
|
9080
|
+
x.rendererMap = new T(
|
|
8954
9081
|
void 0,
|
|
8955
|
-
new
|
|
9082
|
+
new Bt(this, e.singleRowActions),
|
|
8956
9083
|
void 0
|
|
8957
|
-
), p.push(
|
|
9084
|
+
), p.push(x);
|
|
8958
9085
|
}
|
|
8959
9086
|
const m = 0, g = e.calcFixedRightColumnCount(p.length);
|
|
8960
9087
|
this.tableModel = $.buildByTypedRowsParam({
|
|
@@ -8964,14 +9091,14 @@ class no {
|
|
|
8964
9091
|
fixedLeftColumnCount: m,
|
|
8965
9092
|
fixedRightColumnCount: g
|
|
8966
9093
|
}), this.tableModel.getSelectionModel = u, this.bodyModel = (a = this.tableModel) == null ? void 0 : a.getBodyModel();
|
|
8967
|
-
const
|
|
8968
|
-
s(
|
|
9094
|
+
const y = new Lt(this.tableModel, this.tableOptions);
|
|
9095
|
+
s(y);
|
|
8969
9096
|
}
|
|
8970
9097
|
});
|
|
8971
9098
|
}
|
|
8972
9099
|
openDialogForCreate() {
|
|
8973
9100
|
if (this.bodyModel) {
|
|
8974
|
-
const e = new
|
|
9101
|
+
const e = new Ge("CREATE", "body", this.bodyModel, -1, -1, null);
|
|
8975
9102
|
this.onActionEvent(e);
|
|
8976
9103
|
}
|
|
8977
9104
|
}
|
|
@@ -8979,11 +9106,11 @@ class no {
|
|
|
8979
9106
|
var t, s, o, i;
|
|
8980
9107
|
if (this.listenActionEvent && this.listenActionEvent(e), e.action === "VIEW") {
|
|
8981
9108
|
let r = e.id;
|
|
8982
|
-
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new
|
|
9109
|
+
(t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new Nt(n).openDialog(), n));
|
|
8983
9110
|
} else if (e.action === "EDIT") {
|
|
8984
9111
|
let r = e.id;
|
|
8985
9112
|
const n = this.crudOptions.getIdKey() ?? "id";
|
|
8986
|
-
(s = this.crudOptions) == null || s.fetchItem(this.crudOptions, r).then((l) => (console.info(l), new
|
|
9113
|
+
(s = this.crudOptions) == null || s.fetchItem(this.crudOptions, r).then((l) => (console.info(l), new ae(
|
|
8987
9114
|
n,
|
|
8988
9115
|
l
|
|
8989
9116
|
).openDialog((a) => {
|
|
@@ -8994,7 +9121,7 @@ class no {
|
|
|
8994
9121
|
const n = this.crudOptions.getIdKey() ?? "id";
|
|
8995
9122
|
(o = this.crudOptions) == null || o.fetchItem(this.crudOptions, r).then((l) => {
|
|
8996
9123
|
const a = JSON.parse(JSON.stringify(l));
|
|
8997
|
-
return new
|
|
9124
|
+
return new ae(
|
|
8998
9125
|
n,
|
|
8999
9126
|
a,
|
|
9000
9127
|
"Clone Item"
|
|
@@ -9004,7 +9131,7 @@ class no {
|
|
|
9004
9131
|
});
|
|
9005
9132
|
} else if (e.action === "CREATE") {
|
|
9006
9133
|
const r = this.crudOptions.getIdKey() ?? "id", n = JSON.parse(JSON.stringify(this.crudOptions.getEmptyItem()));
|
|
9007
|
-
return new
|
|
9134
|
+
return new ae(
|
|
9008
9135
|
r,
|
|
9009
9136
|
n,
|
|
9010
9137
|
"Create Item"
|
|
@@ -9060,196 +9187,196 @@ class no {
|
|
|
9060
9187
|
return s;
|
|
9061
9188
|
}
|
|
9062
9189
|
}
|
|
9063
|
-
class
|
|
9190
|
+
class co {
|
|
9064
9191
|
constructor(e, t) {
|
|
9065
9192
|
this.method = e, this.url = t;
|
|
9066
9193
|
}
|
|
9067
9194
|
}
|
|
9068
9195
|
export {
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
|
|
9196
|
+
be as AbstractAreaModel,
|
|
9197
|
+
Ge as ActionEvent,
|
|
9198
|
+
Bt as ActionsCellRenderer,
|
|
9199
|
+
He as AnyPropertyType,
|
|
9200
|
+
Hs as AreaMapFactory,
|
|
9201
|
+
Ws as AreaModel,
|
|
9202
|
+
F as AreaModelArrayOfArrays,
|
|
9203
|
+
Ns as AreaModelCellGroups,
|
|
9204
|
+
P as AreaModelHidden,
|
|
9078
9205
|
_ as AreaModelObjectArray,
|
|
9079
|
-
|
|
9080
|
-
|
|
9206
|
+
De as AreaModelObjectArrayWithColumndefs,
|
|
9207
|
+
te as AreaModelTree,
|
|
9081
9208
|
T as AreaObjectMap,
|
|
9082
9209
|
B as ArrayPropertyType,
|
|
9083
|
-
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
|
|
9210
|
+
_t as AutoRestoreOptions,
|
|
9211
|
+
jt as AvoidDoubleExecution,
|
|
9212
|
+
Je as BooleanPropertyType,
|
|
9213
|
+
Ht as CellGroup,
|
|
9214
|
+
$t as CellGroupExt,
|
|
9215
|
+
pe as CellGroupExtCellRenderer,
|
|
9216
|
+
M as CellRange,
|
|
9090
9217
|
E as CellgroupFactory,
|
|
9091
|
-
|
|
9092
|
-
|
|
9093
|
-
|
|
9094
|
-
|
|
9095
|
-
|
|
9096
|
-
|
|
9097
|
-
|
|
9098
|
-
|
|
9099
|
-
|
|
9100
|
-
|
|
9101
|
-
|
|
9102
|
-
|
|
9103
|
-
|
|
9104
|
-
|
|
9105
|
-
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
|
|
9109
|
-
|
|
9110
|
-
|
|
9111
|
-
|
|
9112
|
-
|
|
9113
|
-
|
|
9114
|
-
|
|
9115
|
-
|
|
9116
|
-
|
|
9117
|
-
|
|
9118
|
-
|
|
9119
|
-
|
|
9120
|
-
|
|
9121
|
-
|
|
9122
|
-
|
|
9123
|
-
|
|
9124
|
-
|
|
9125
|
-
|
|
9126
|
-
|
|
9127
|
-
|
|
9128
|
-
|
|
9129
|
-
|
|
9130
|
-
|
|
9131
|
-
|
|
9132
|
-
|
|
9133
|
-
|
|
9134
|
-
|
|
9135
|
-
|
|
9136
|
-
|
|
9137
|
-
|
|
9138
|
-
|
|
9139
|
-
|
|
9140
|
-
|
|
9141
|
-
|
|
9142
|
-
|
|
9143
|
-
|
|
9144
|
-
|
|
9145
|
-
|
|
9146
|
-
|
|
9147
|
-
|
|
9148
|
-
|
|
9149
|
-
|
|
9150
|
-
|
|
9151
|
-
|
|
9152
|
-
|
|
9153
|
-
|
|
9154
|
-
|
|
9155
|
-
|
|
9156
|
-
|
|
9157
|
-
|
|
9158
|
-
|
|
9159
|
-
|
|
9160
|
-
|
|
9161
|
-
|
|
9162
|
-
|
|
9163
|
-
|
|
9164
|
-
|
|
9165
|
-
|
|
9166
|
-
|
|
9167
|
-
|
|
9168
|
-
|
|
9169
|
-
|
|
9170
|
-
|
|
9171
|
-
|
|
9172
|
-
|
|
9173
|
-
|
|
9174
|
-
|
|
9175
|
-
|
|
9176
|
-
|
|
9177
|
-
|
|
9178
|
-
|
|
9179
|
-
|
|
9180
|
-
|
|
9181
|
-
|
|
9218
|
+
js as CheckboxBooleanPropertyCellRenderer,
|
|
9219
|
+
Fe as CheckboxCellRenderer,
|
|
9220
|
+
Vs as CheckboxColumnDef,
|
|
9221
|
+
Dt as CheckboxModel,
|
|
9222
|
+
Ts as ChunkData,
|
|
9223
|
+
dt as ColAndRowspanModel,
|
|
9224
|
+
lt as CollapsedExpandedData,
|
|
9225
|
+
no as ColorRgb,
|
|
9226
|
+
W as ColumnDef,
|
|
9227
|
+
Ut as ColumnDefGenerator,
|
|
9228
|
+
Wt as ColumnWidths,
|
|
9229
|
+
st as ConvenienceDomService,
|
|
9230
|
+
ee as CopyService,
|
|
9231
|
+
Ft as CoverGridBodyModel,
|
|
9232
|
+
Is as CoverGridFactory,
|
|
9233
|
+
Pt as CoverGridTableModel,
|
|
9234
|
+
H as CrudAction,
|
|
9235
|
+
ae as CrudObjectEdit,
|
|
9236
|
+
Nt as CrudObjectView,
|
|
9237
|
+
Gt as CrudOptions,
|
|
9238
|
+
ao as CrudTableModelFactory,
|
|
9239
|
+
Me as CssVars,
|
|
9240
|
+
Ys as DateToIntlDDMMYYYYCellRenderer,
|
|
9241
|
+
Us as DateToIsoCellRenderer,
|
|
9242
|
+
Xs as DateToLocaleDateCellRenderer,
|
|
9243
|
+
Zs as DateToTecCellRenderer,
|
|
9244
|
+
Y as DefaultRowHeights,
|
|
9245
|
+
Q as EleScope,
|
|
9246
|
+
de as EventAdapter,
|
|
9247
|
+
Kt as EventCheckboxChangedHandler,
|
|
9248
|
+
It as ExcelService,
|
|
9249
|
+
Ee as FalseFn,
|
|
9250
|
+
vt as FocusModel,
|
|
9251
|
+
gt as GeCellIndices,
|
|
9252
|
+
q as GeCssColorUtil,
|
|
9253
|
+
Gs as GeFilterService,
|
|
9254
|
+
$s as GeKeyEvent,
|
|
9255
|
+
xe as GeModelChangeEvent,
|
|
9256
|
+
me as GeMouseEvent,
|
|
9257
|
+
ft as GeScrollEvent,
|
|
9258
|
+
O as GeoData,
|
|
9259
|
+
V as Icon,
|
|
9260
|
+
ks as IndexAndPx,
|
|
9261
|
+
Ct as InputCellRenderer,
|
|
9262
|
+
pt as InputHandler,
|
|
9263
|
+
ve as JsonService,
|
|
9264
|
+
G as LicenseManager,
|
|
9265
|
+
Ks as MaleFemaleToIconCellRenderer,
|
|
9266
|
+
it as MouseHandler,
|
|
9267
|
+
ot as MouseTargetData,
|
|
9268
|
+
ro as MultiRowsSelectionModel,
|
|
9269
|
+
Ye as NullPropertyType,
|
|
9270
|
+
Js as NumberCellProgressBarCellRenderer,
|
|
9271
|
+
Qs as NumberCellRenderer,
|
|
9272
|
+
Ke as NumberPropertyType,
|
|
9273
|
+
L as ObjectPropertyType,
|
|
9274
|
+
yt as OsxShortcutActionIdMapping,
|
|
9275
|
+
_e as PROPERTY_TYPE_KEY_ANY,
|
|
9276
|
+
Ve as PROPERTY_TYPE_KEY_ARRAY,
|
|
9277
|
+
fe as PROPERTY_TYPE_KEY_BOOLEAN,
|
|
9278
|
+
Le as PROPERTY_TYPE_KEY_NULL,
|
|
9279
|
+
ge as PROPERTY_TYPE_KEY_NUMBER,
|
|
9280
|
+
K as PROPERTY_TYPE_KEY_OBJECT,
|
|
9281
|
+
Oe as PROPERTY_TYPE_KEY_STRING,
|
|
9282
|
+
X as PROPERTY_TYPE_KEY_UNDEFINED,
|
|
9283
|
+
ue as Padding,
|
|
9284
|
+
oo as PositiveAndNegativeNumberRenderer,
|
|
9285
|
+
so as ProgressBarCellRenderer,
|
|
9286
|
+
$e as PropertyItem,
|
|
9287
|
+
Yt as PropertyTypeService,
|
|
9288
|
+
ht as RenderScope,
|
|
9289
|
+
zs as Renderer,
|
|
9290
|
+
Ot as RequestChunk,
|
|
9291
|
+
Mt as ResizeHandler,
|
|
9292
|
+
Xt as SchemeGenerator,
|
|
9293
|
+
ze as SelectCellRenderer,
|
|
9294
|
+
Se as SelectionModel,
|
|
9295
|
+
mt as SelectionService,
|
|
9296
|
+
xt as ShortcutService,
|
|
9297
|
+
to as SimpleArrayCellRenderer,
|
|
9298
|
+
St as SimpleDomService,
|
|
9299
|
+
b as Size,
|
|
9300
|
+
ut as SortItem,
|
|
9301
|
+
We as SortedOptions,
|
|
9302
|
+
eo as StarRatingCellRenderer,
|
|
9303
|
+
at as StoreStateCollapsedExpandService,
|
|
9304
|
+
nt as StoreStateScrollPosService,
|
|
9305
|
+
ct as StoreStateSortingService,
|
|
9306
|
+
Xe as StringPropertyType,
|
|
9307
|
+
rt as TableApi,
|
|
9308
|
+
Bs as TableCellUpdateEvent,
|
|
9182
9309
|
$ as TableFactory,
|
|
9183
|
-
|
|
9184
|
-
|
|
9185
|
-
|
|
9186
|
-
|
|
9187
|
-
|
|
9188
|
-
|
|
9189
|
-
|
|
9190
|
-
|
|
9191
|
-
|
|
9192
|
-
|
|
9193
|
-
|
|
9194
|
-
|
|
9195
|
-
|
|
9196
|
-
|
|
9197
|
-
|
|
9198
|
-
|
|
9199
|
-
|
|
9200
|
-
|
|
9201
|
-
|
|
9202
|
-
|
|
9203
|
-
|
|
9204
|
-
|
|
9205
|
-
|
|
9206
|
-
|
|
9207
|
-
|
|
9208
|
-
|
|
9209
|
-
|
|
9210
|
-
|
|
9211
|
-
|
|
9212
|
-
|
|
9213
|
-
|
|
9214
|
-
|
|
9215
|
-
|
|
9216
|
-
|
|
9217
|
-
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
|
|
9223
|
-
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9237
|
-
|
|
9238
|
-
|
|
9239
|
-
|
|
9240
|
-
|
|
9241
|
-
|
|
9242
|
-
|
|
9243
|
-
|
|
9244
|
-
|
|
9245
|
-
|
|
9246
|
-
|
|
9247
|
-
|
|
9248
|
-
|
|
9249
|
-
|
|
9250
|
-
|
|
9251
|
-
|
|
9252
|
-
|
|
9253
|
-
|
|
9254
|
-
|
|
9310
|
+
le as TableModel,
|
|
9311
|
+
Lt as TableModelAndOptions,
|
|
9312
|
+
J as TableOptions,
|
|
9313
|
+
Ne as TableScope,
|
|
9314
|
+
lo as ThreeColorGradientArg,
|
|
9315
|
+
ke as TreeCheckboxModel,
|
|
9316
|
+
he as TreeFactory,
|
|
9317
|
+
Be as TreeOptions,
|
|
9318
|
+
Ie as TreeRow,
|
|
9319
|
+
kt as TreeRowService,
|
|
9320
|
+
qs as TrueFalseCellRenderer,
|
|
9321
|
+
Et as TrueFn,
|
|
9322
|
+
Pe as TwoColorGradientArg,
|
|
9323
|
+
Z as UNIMPORTANT_TYPES,
|
|
9324
|
+
ne as UndefinedPropertyType,
|
|
9325
|
+
co as UrlInfo,
|
|
9326
|
+
qe as ValueInfo,
|
|
9327
|
+
Vt as ValueLabel,
|
|
9328
|
+
bt as WindowsShortcutActionIdMapping,
|
|
9329
|
+
Es as actionIds,
|
|
9330
|
+
Ls as allCenter,
|
|
9331
|
+
_s as allLeft,
|
|
9332
|
+
Os as allRight,
|
|
9333
|
+
Fs as bodyCenter,
|
|
9334
|
+
Ds as bodyLeft,
|
|
9335
|
+
Ps as bodyRight,
|
|
9336
|
+
Ae as createHarmonizedShortcutByKeyboardEvent,
|
|
9337
|
+
Ue as debounce,
|
|
9338
|
+
io as editInputPipeForNumber,
|
|
9339
|
+
Re as entitySuffix,
|
|
9340
|
+
et as firstLetterUppercase,
|
|
9341
|
+
re as getAreaIdentByString,
|
|
9342
|
+
Ze as getEntityName,
|
|
9343
|
+
wt as harmonizeShortcut,
|
|
9344
|
+
ce as isAreaModelTree,
|
|
9345
|
+
tt as isCheckboxColumnDef,
|
|
9346
|
+
j as isTreeRow,
|
|
9347
|
+
Ms as px0,
|
|
9348
|
+
As as px10,
|
|
9349
|
+
ms as px100,
|
|
9350
|
+
fs as px110,
|
|
9351
|
+
gs as px120,
|
|
9352
|
+
ps as px130,
|
|
9353
|
+
us as px140,
|
|
9354
|
+
hs as px150,
|
|
9355
|
+
ds as px160,
|
|
9356
|
+
cs as px170,
|
|
9357
|
+
as as px180,
|
|
9358
|
+
ls as px190,
|
|
9359
|
+
Rs as px20,
|
|
9360
|
+
Te as px200,
|
|
9361
|
+
ns as px210,
|
|
9362
|
+
rs as px220,
|
|
9363
|
+
is as px230,
|
|
9364
|
+
os as px240,
|
|
9365
|
+
ss as px250,
|
|
9366
|
+
ts as px260,
|
|
9367
|
+
es as px270,
|
|
9368
|
+
Qt as px280,
|
|
9369
|
+
Zt as px290,
|
|
9370
|
+
vs as px30,
|
|
9371
|
+
Tt as px300,
|
|
9372
|
+
Cs as px40,
|
|
9373
|
+
qt as px400,
|
|
9374
|
+
Ss as px50,
|
|
9375
|
+
Jt as px500,
|
|
9376
|
+
xs as px60,
|
|
9377
|
+
ws as px70,
|
|
9378
|
+
ys as px80,
|
|
9379
|
+
bs as px90,
|
|
9380
|
+
zt as throttle,
|
|
9381
|
+
Qe as trimArraySuffixes
|
|
9255
9382
|
};
|