@guiexpert/table 1.1.66 → 1.1.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +65 -65
- package/index.js +278 -236
- package/lib/table/table-api.d.ts +5 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -25,43 +25,43 @@ function Ht(d = 500) {
|
|
|
25
25
|
}, s;
|
|
26
26
|
};
|
|
27
27
|
}
|
|
28
|
-
const
|
|
29
|
-
class
|
|
28
|
+
const De = "any", j = "undefined", Pe = "null", Fe = "string", ce = "number", de = "boolean", Le = "Array", U = "object", X = [Pe, j, De];
|
|
29
|
+
class Oe {
|
|
30
30
|
constructor(e) {
|
|
31
|
-
this.propertyName = e, this.type =
|
|
31
|
+
this.propertyName = e, this.type = De;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
class
|
|
34
|
+
class se {
|
|
35
35
|
constructor(e) {
|
|
36
|
-
this.propertyName = e, this.type =
|
|
36
|
+
this.propertyName = e, this.type = j;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
class ze {
|
|
40
40
|
constructor(e) {
|
|
41
|
-
this.propertyName = e, this.type =
|
|
41
|
+
this.propertyName = e, this.type = Pe;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
class je {
|
|
45
45
|
constructor(e) {
|
|
46
|
-
this.propertyName = e, this.type =
|
|
46
|
+
this.propertyName = e, this.type = Fe;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
class Ue {
|
|
50
50
|
constructor(e) {
|
|
51
|
-
this.propertyName = e, this.type =
|
|
51
|
+
this.propertyName = e, this.type = ce;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
class Ye {
|
|
55
55
|
constructor(e) {
|
|
56
|
-
this.propertyName = e, this.type =
|
|
56
|
+
this.propertyName = e, this.type = de;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
class
|
|
59
|
+
class H {
|
|
60
60
|
constructor(e, t = []) {
|
|
61
|
-
this.propertyName = e, this.items = t, this.type =
|
|
61
|
+
this.propertyName = e, this.items = t, this.type = Le;
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
class
|
|
64
|
+
class $e {
|
|
65
65
|
constructor(e, t = []) {
|
|
66
66
|
this.propertyName = e, this.types = t;
|
|
67
67
|
}
|
|
@@ -71,7 +71,7 @@ class Oe {
|
|
|
71
71
|
}
|
|
72
72
|
class D {
|
|
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 = U;
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
class Vt {
|
|
@@ -100,8 +100,8 @@ class Vt {
|
|
|
100
100
|
const s = [];
|
|
101
101
|
if (!this.rootPropertyType)
|
|
102
102
|
return s;
|
|
103
|
-
if (e instanceof
|
|
104
|
-
const o = e.items.find((i) => i.type ===
|
|
103
|
+
if (e instanceof H) {
|
|
104
|
+
const o = e.items.find((i) => i.type === U);
|
|
105
105
|
if (o && o instanceof D) {
|
|
106
106
|
const i = o.properties;
|
|
107
107
|
s.push(" const columnDefs: ColumnDefIf[] = ["), this.iteratePropertyItems(s, i, ""), s.push(" ];");
|
|
@@ -111,7 +111,7 @@ class Vt {
|
|
|
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) => !X.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;
|
|
@@ -119,20 +119,20 @@ class Vt {
|
|
|
119
119
|
this.iteratePropertyItems(e, n.properties, l);
|
|
120
120
|
else {
|
|
121
121
|
let a = "";
|
|
122
|
-
if (n instanceof
|
|
123
|
-
const p = n.items.find((m) => m.type ===
|
|
122
|
+
if (n instanceof H) {
|
|
123
|
+
const p = n.items.find((m) => m.type === U);
|
|
124
124
|
p && p instanceof D && (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 === Le) {
|
|
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 === ce ? (u = " bodyRenderer: new NumberCellRenderer(),", f = "ge-table-text-align-right") : n.type === de && (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 ye {
|
|
198
198
|
/**
|
|
199
199
|
*
|
|
200
200
|
* Fixes an invalid json like this:
|
|
@@ -262,17 +262,17 @@ class be {
|
|
|
262
262
|
}
|
|
263
263
|
class Ke {
|
|
264
264
|
constructor() {
|
|
265
|
-
this.property = "", this.value = "", this.path = "", this.propertyItem = new
|
|
265
|
+
this.property = "", this.value = "", this.path = "", this.propertyItem = new $e("", [new Oe("")]);
|
|
266
266
|
}
|
|
267
267
|
toString() {
|
|
268
268
|
var e;
|
|
269
269
|
return `${this.path} -> : ${((e = this.propertyItem) == null ? void 0 : e.toString()) ?? ""}`;
|
|
270
270
|
}
|
|
271
271
|
}
|
|
272
|
-
const
|
|
272
|
+
const we = "Entity";
|
|
273
273
|
function Xe(d) {
|
|
274
274
|
let e = Je(qe(d));
|
|
275
|
-
return e.includes(
|
|
275
|
+
return e.includes(we) || (e = e + we), e;
|
|
276
276
|
}
|
|
277
277
|
function Je(d) {
|
|
278
278
|
if (!d || d.length === 0) return d;
|
|
@@ -372,7 +372,7 @@ class Wt {
|
|
|
372
372
|
json2PropertyType(e, t = "") {
|
|
373
373
|
let s;
|
|
374
374
|
if (typeof e == "string") {
|
|
375
|
-
const o = new
|
|
375
|
+
const o = new ye().fixJSON(e);
|
|
376
376
|
s = this.json2Object(o);
|
|
377
377
|
} else
|
|
378
378
|
s = e;
|
|
@@ -488,7 +488,7 @@ class Wt {
|
|
|
488
488
|
json2ValueInfos(e, t = "") {
|
|
489
489
|
let s;
|
|
490
490
|
if (typeof e == "string") {
|
|
491
|
-
const o = new
|
|
491
|
+
const o = new ye().fixJSON(e);
|
|
492
492
|
s = this.json2Object(o);
|
|
493
493
|
} else
|
|
494
494
|
s = e;
|
|
@@ -512,10 +512,10 @@ class Wt {
|
|
|
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) => !X.includes(a.type));
|
|
516
516
|
if (l.length === 1) {
|
|
517
517
|
const a = l[0];
|
|
518
|
-
if (a instanceof
|
|
518
|
+
if (a instanceof H) {
|
|
519
519
|
n = !0;
|
|
520
520
|
for (const c of o.propertyItem.types)
|
|
521
521
|
a.items.push(c);
|
|
@@ -527,7 +527,7 @@ class Wt {
|
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
}
|
|
530
|
-
return t || new
|
|
530
|
+
return t || new Oe("");
|
|
531
531
|
}
|
|
532
532
|
logValueInfos(e) {
|
|
533
533
|
for (let t = 0; t < e.length; t++) {
|
|
@@ -557,7 +557,7 @@ class Wt {
|
|
|
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 === j) || i.propertyItem.types.push(new se(i.property)));
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
}
|
|
@@ -580,7 +580,7 @@ class Wt {
|
|
|
580
580
|
const s = [], o = (i, r, n) => {
|
|
581
581
|
const l = new Ke();
|
|
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 === U && !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,12 +594,12 @@ class Wt {
|
|
|
594
594
|
return o(e, "root", t), s.sort((i, r) => i.path.localeCompare(r.path));
|
|
595
595
|
}
|
|
596
596
|
createPropertyItem(e, t) {
|
|
597
|
-
return new
|
|
597
|
+
return new $e(t, [
|
|
598
598
|
this.createPropertyType(e, t)
|
|
599
599
|
]);
|
|
600
600
|
}
|
|
601
601
|
createPropertyType(e, t) {
|
|
602
|
-
return e === null ? new ze(t) : e === void 0 ? new
|
|
602
|
+
return e === null ? new ze(t) : e === void 0 ? new se(t) : typeof e === Fe ? new je(t) : typeof e === ce && !isNaN(e) ? new Ue(t) : typeof e === de ? new Ye(t) : Array.isArray(e) ? new H(t) : typeof e === U ? new D(t, Xe(t)) : new se(t);
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
605
|
class Nt {
|
|
@@ -620,7 +620,7 @@ class Nt {
|
|
|
620
620
|
}
|
|
621
621
|
renderTypeScriptInterfacesRecursive(e = this.rootPropertyType, t = [], s = this.rootName) {
|
|
622
622
|
if (!e) return t;
|
|
623
|
-
if (e instanceof
|
|
623
|
+
if (e instanceof H) {
|
|
624
624
|
for (const o of e.items)
|
|
625
625
|
if (this.renderTypeScriptInterfacesRecursive(o, t, s), o instanceof D) {
|
|
626
626
|
const i = o;
|
|
@@ -638,7 +638,7 @@ class Nt {
|
|
|
638
638
|
for (const a of r.types)
|
|
639
639
|
if (a instanceof D)
|
|
640
640
|
a !== this.rootPropertyType && this.renderTypeScriptInterfacesFifo.push(a);
|
|
641
|
-
else if (a instanceof
|
|
641
|
+
else if (a instanceof H)
|
|
642
642
|
for (const c of a.items)
|
|
643
643
|
c instanceof D && this.renderTypeScriptInterfacesFifo.push(c);
|
|
644
644
|
}
|
|
@@ -651,11 +651,11 @@ class Nt {
|
|
|
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 !== j).sort((i, r) => X.includes(i) ? 100 : X.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) {
|
|
658
|
-
if (e instanceof
|
|
658
|
+
if (e instanceof H) {
|
|
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
|
}
|
|
@@ -663,18 +663,18 @@ class Nt {
|
|
|
663
663
|
}
|
|
664
664
|
containsUndefinedPropertyType(e) {
|
|
665
665
|
for (const t of e.types)
|
|
666
|
-
if (t.type ===
|
|
666
|
+
if (t.type === j) return !0;
|
|
667
667
|
return !1;
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
|
-
class
|
|
670
|
+
class W {
|
|
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 W.instance || (W.instance = new W()), W.instance;
|
|
678
678
|
}
|
|
679
679
|
/**
|
|
680
680
|
* Method to set the license key for the application.
|
|
@@ -692,21 +692,21 @@ class V {
|
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function G(d) {
|
|
696
696
|
return d && d.type === "TreeRow";
|
|
697
697
|
}
|
|
698
|
-
function
|
|
698
|
+
function re(d) {
|
|
699
699
|
return d && d.type === "AreaModelTree";
|
|
700
700
|
}
|
|
701
701
|
function Ze(d) {
|
|
702
702
|
return d && d.type === "CheckboxColumnDef";
|
|
703
703
|
}
|
|
704
|
-
class
|
|
704
|
+
class he {
|
|
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 he(
|
|
710
710
|
this.rowIndex,
|
|
711
711
|
this.rowTop,
|
|
712
712
|
this.columnIndex,
|
|
@@ -726,7 +726,7 @@ class O {
|
|
|
726
726
|
this.content = e, this.style = t, this.classes = s;
|
|
727
727
|
}
|
|
728
728
|
}
|
|
729
|
-
class
|
|
729
|
+
class _e {
|
|
730
730
|
constructor(e = new O(
|
|
731
731
|
">",
|
|
732
732
|
"transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
|
|
@@ -747,7 +747,7 @@ class $e {
|
|
|
747
747
|
this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
|
-
class
|
|
750
|
+
class Be {
|
|
751
751
|
constructor(e = new O("↑", "", ["ge-header-sorted-asc"]), t = new O("↓", "", ["ge-header-sorted-desc"]), s = new O("↑", "color:transparent;", [])) {
|
|
752
752
|
this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
|
|
753
753
|
}
|
|
@@ -872,7 +872,7 @@ class Qe {
|
|
|
872
872
|
}
|
|
873
873
|
return this.domService.appendChild(e, n), n;
|
|
874
874
|
}
|
|
875
|
-
addSortedIcon(e, t = "", s = new
|
|
875
|
+
addSortedIcon(e, t = "", s = new Be(), o = -1) {
|
|
876
876
|
const i = this.domService.createElement("div");
|
|
877
877
|
this.domService.addClass(i, "ge-table-sorted-icon-div"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "top", "0"), this.domService.setStyle(i, "right", "0"), this.domService.setStyle(i, "width", "20px"), this.domService.setStyle(i, "background", "transparent"), this.domService.setStyle(i, "cursor", "pointer"), this.domService.setAttribute(i, "data-col-index", `${o}`), this.domService.setAttribute(i, "data-area", "header");
|
|
878
878
|
let r;
|
|
@@ -883,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 _e(), o = -1, i = -1, r = "body") {
|
|
887
887
|
const n = this.domService.createElement("div");
|
|
888
888
|
this.domService.addClass(n, "ge-table-tree-arrow-div"), this.domService.setStyle(n, "display", "inline-block"), this.domService.setStyle(n, "position", ""), this.domService.setStyle(n, "width", "20px"), this.domService.setStyle(n, "background", "transparent"), this.domService.setStyle(n, "cursor", "pointer"), this.domService.setAttribute(n, "data-row-index", `${o}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`);
|
|
889
889
|
let l;
|
|
@@ -934,13 +934,13 @@ 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
|
|
937
|
+
const ee = (d) => d === "header" ? "header" : d === "footer" ? "footer" : "body";
|
|
938
938
|
class et {
|
|
939
939
|
constructor(e, t) {
|
|
940
940
|
if (this.rowIdx = -1, this.colIdx = -1, this.action = null, this.inputType = null, this.className = "", e !== null && (e instanceof HTMLDivElement || e instanceof HTMLSpanElement || e instanceof HTMLInputElement)) {
|
|
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 = ee(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
|
}
|
|
@@ -974,7 +974,7 @@ class tt {
|
|
|
974
974
|
*/
|
|
975
975
|
onHostElementClicked(e) {
|
|
976
976
|
const t = Date.now();
|
|
977
|
-
if (
|
|
977
|
+
if (t - this.lastClicked < this.doubleClickDelay) {
|
|
978
978
|
this.lastClicked = t, this.publishGeMouseEvent(e, 2);
|
|
979
979
|
return;
|
|
980
980
|
}
|
|
@@ -986,12 +986,12 @@ class tt {
|
|
|
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 (G(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();
|
|
993
993
|
const r = s.row;
|
|
994
|
-
r.expanded = !r.expanded, "recalcVisibleTreeRows" in s.areaModel && s.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(r);
|
|
994
|
+
r.expanded = !r.expanded, "recalcVisibleTreeRows" in s.areaModel && s.areaModel.recalcVisibleTreeRows(), console.info("this.tableScope.hostElement", this.tableScope.hostElement), console.info("this.tableScope.hostElement.clientWidth", this.tableScope.hostElement.clientWidth), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(r);
|
|
995
995
|
}
|
|
996
996
|
}
|
|
997
997
|
if (s.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
|
|
@@ -1007,13 +1007,13 @@ class tt {
|
|
|
1007
1007
|
* @param {MouseEvent} event - The double click event.
|
|
1008
1008
|
*/
|
|
1009
1009
|
onHostElementDblClicked(e) {
|
|
1010
|
-
if (
|
|
1011
|
-
const t = e.target, s = t.getAttribute("data-area"), o =
|
|
1010
|
+
if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
|
|
1011
|
+
const t = e.target, s = t.getAttribute("data-area"), o = ee(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)), G(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 ue {
|
|
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
|
}
|
|
@@ -1177,7 +1177,7 @@ class he {
|
|
|
1177
1177
|
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
1178
1178
|
}
|
|
1179
1179
|
}
|
|
1180
|
-
class
|
|
1180
|
+
class He {
|
|
1181
1181
|
genericSortComparator(e, t, s) {
|
|
1182
1182
|
if (typeof e == "number" && typeof t == "number")
|
|
1183
1183
|
return s * (e - t);
|
|
@@ -1195,9 +1195,9 @@ class Be {
|
|
|
1195
1195
|
return s * ("" + e).localeCompare("" + t);
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
|
-
class
|
|
1198
|
+
class $ extends ue {
|
|
1199
1199
|
constructor(e, t, s, o = [], i = "ge-selected-row", r = "ge-focused-row") {
|
|
1200
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.focusedRowIndex = 0, this.sorterService = new
|
|
1200
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.focusedRowIndex = 0, this.sorterService = new He(), this.filteredRows = [...t], this.properties = o.map((n) => n.property);
|
|
1201
1201
|
}
|
|
1202
1202
|
setRows(e) {
|
|
1203
1203
|
this.rows = e, this.filteredRows = [...e];
|
|
@@ -1215,7 +1215,7 @@ class He extends he {
|
|
|
1215
1215
|
getValueAt(e, t) {
|
|
1216
1216
|
const s = this.properties[t];
|
|
1217
1217
|
let o = this.filteredRows[e];
|
|
1218
|
-
return
|
|
1218
|
+
return G(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
|
|
1219
1219
|
}
|
|
1220
1220
|
/**
|
|
1221
1221
|
* Retrieves the filtered and sorted rows from the dataset.
|
|
@@ -1498,7 +1498,49 @@ class st {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
setRows(e) {
|
|
1500
1500
|
const t = this.getBodyModel();
|
|
1501
|
-
t instanceof
|
|
1501
|
+
t instanceof $ ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
|
|
1502
|
+
}
|
|
1503
|
+
addRows(e) {
|
|
1504
|
+
const t = this.getBodyModel();
|
|
1505
|
+
if (t instanceof $) {
|
|
1506
|
+
const s = t;
|
|
1507
|
+
let o = s.getAllRows();
|
|
1508
|
+
s.setRows([...o, ...e]);
|
|
1509
|
+
} else
|
|
1510
|
+
console.warn("addRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
|
|
1511
|
+
}
|
|
1512
|
+
addRowsAt(e, t) {
|
|
1513
|
+
const s = this.getBodyModel();
|
|
1514
|
+
if (s instanceof $) {
|
|
1515
|
+
const o = s;
|
|
1516
|
+
let i = o.getAllRows();
|
|
1517
|
+
o.setRows([...i.slice(0, t), ...e, ...i.slice(t)]);
|
|
1518
|
+
} else
|
|
1519
|
+
console.warn("addRowsAt<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1520
|
+
}
|
|
1521
|
+
removeRows(e, t = (s, o) => s === o) {
|
|
1522
|
+
const s = this.getBodyModel();
|
|
1523
|
+
if (s instanceof $) {
|
|
1524
|
+
const o = s, i = o.getAllRows().filter((r) => !e.some((n) => t(r, n)));
|
|
1525
|
+
o.setRows(i);
|
|
1526
|
+
} else
|
|
1527
|
+
console.warn("removeRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1528
|
+
}
|
|
1529
|
+
findRows(e, t = (s, o) => s === o) {
|
|
1530
|
+
const s = this.getBodyModel();
|
|
1531
|
+
return s instanceof $ ? s.getAllRows().filter((i) => !e.some((r) => t(i, r))) : (console.warn("findRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s), []);
|
|
1532
|
+
}
|
|
1533
|
+
updateRows(e, t = (s, o) => s === o) {
|
|
1534
|
+
const s = this.getBodyModel();
|
|
1535
|
+
if (s instanceof $) {
|
|
1536
|
+
let i = s.getAllRows();
|
|
1537
|
+
for (const r of i)
|
|
1538
|
+
for (const n of e)
|
|
1539
|
+
if (t(r, n))
|
|
1540
|
+
for (const l of Object.keys(n))
|
|
1541
|
+
r[l] = n[l];
|
|
1542
|
+
} else
|
|
1543
|
+
console.warn("updateRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1502
1544
|
}
|
|
1503
1545
|
reSort() {
|
|
1504
1546
|
this.tableScope.reSort();
|
|
@@ -1507,7 +1549,7 @@ class st {
|
|
|
1507
1549
|
return this.tableScope.getDisplayedRowCount();
|
|
1508
1550
|
}
|
|
1509
1551
|
}
|
|
1510
|
-
class
|
|
1552
|
+
class pe {
|
|
1511
1553
|
constructor(e) {
|
|
1512
1554
|
this.getStorageKeyFn = e;
|
|
1513
1555
|
}
|
|
@@ -1574,7 +1616,7 @@ class ue {
|
|
|
1574
1616
|
// }
|
|
1575
1617
|
// }
|
|
1576
1618
|
}
|
|
1577
|
-
class ot extends
|
|
1619
|
+
class ot extends pe {
|
|
1578
1620
|
constructor(e) {
|
|
1579
1621
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
1580
1622
|
}
|
|
@@ -1601,7 +1643,7 @@ class it {
|
|
|
1601
1643
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
1602
1644
|
}
|
|
1603
1645
|
}
|
|
1604
|
-
class rt extends
|
|
1646
|
+
class rt extends pe {
|
|
1605
1647
|
constructor(e) {
|
|
1606
1648
|
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new it(), this.load();
|
|
1607
1649
|
}
|
|
@@ -1635,7 +1677,7 @@ class rt extends ue {
|
|
|
1635
1677
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
1636
1678
|
}
|
|
1637
1679
|
}
|
|
1638
|
-
class nt extends
|
|
1680
|
+
class nt extends pe {
|
|
1639
1681
|
constructor(e) {
|
|
1640
1682
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
1641
1683
|
}
|
|
@@ -1912,7 +1954,7 @@ class ct extends lt {
|
|
|
1912
1954
|
header: [],
|
|
1913
1955
|
body: [],
|
|
1914
1956
|
footer: []
|
|
1915
|
-
}, this.tree = !1, this.colAndRowspanModels = new I(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.displayedRowCount = 0, 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),
|
|
1957
|
+
}, this.tree = !1, this.colAndRowspanModels = new I(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.displayedRowCount = 0, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (n = this.tableOptions) != null && n.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), re(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
1916
1958
|
(l) => {
|
|
1917
1959
|
var a;
|
|
1918
1960
|
this.colAndRowspanModels[l] = new at(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
|
|
@@ -1989,7 +2031,7 @@ class ct extends lt {
|
|
|
1989
2031
|
* @return {undefined}
|
|
1990
2032
|
*/
|
|
1991
2033
|
recalcColumnWidths(e) {
|
|
1992
|
-
let t = e || this.scrollViewport.clientWidth;
|
|
2034
|
+
let t = (!e || e > this.scrollViewport.offsetWidth) && this.scrollViewport.offsetWidth > 100 ? this.scrollViewport.offsetWidth : this.scrollViewport.clientWidth;
|
|
1993
2035
|
this.tableModel.setParentWidth(t), this.tableModel.init(), this.repaintHard();
|
|
1994
2036
|
}
|
|
1995
2037
|
/**
|
|
@@ -2225,8 +2267,8 @@ class ct extends lt {
|
|
|
2225
2267
|
{ cursor: "pointer" }
|
|
2226
2268
|
), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
|
|
2227
2269
|
if (M) {
|
|
2228
|
-
const
|
|
2229
|
-
this.dom.domService.appendChild(E,
|
|
2270
|
+
const Y = this.dom.domService.createText(M.content);
|
|
2271
|
+
this.dom.domService.appendChild(E, Y), M.style && this.dom.applyStyleString(E, M.style);
|
|
2230
2272
|
}
|
|
2231
2273
|
}
|
|
2232
2274
|
}
|
|
@@ -2425,12 +2467,12 @@ class ct extends lt {
|
|
|
2425
2467
|
parent: c,
|
|
2426
2468
|
lastRowOfModel: h
|
|
2427
2469
|
}) {
|
|
2428
|
-
var
|
|
2470
|
+
var be;
|
|
2429
2471
|
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);
|
|
2430
2472
|
let g = "none";
|
|
2431
|
-
if (i === this.getTreeArrowColumnIndex() &&
|
|
2473
|
+
if (i === this.getTreeArrowColumnIndex() && G(m)) {
|
|
2432
2474
|
const v = m;
|
|
2433
|
-
(
|
|
2475
|
+
(be = v.children) != null && be.length ? v.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
|
|
2434
2476
|
}
|
|
2435
2477
|
let w;
|
|
2436
2478
|
if (t === "header") {
|
|
@@ -2457,16 +2499,16 @@ class ct extends lt {
|
|
|
2457
2499
|
E && E.classes[t] && this.dom.addClasses(E.classes[t], x);
|
|
2458
2500
|
let M;
|
|
2459
2501
|
f && (M = f.render(x, o, i, t, e, S, this.dom.domService));
|
|
2460
|
-
const
|
|
2461
|
-
if (
|
|
2502
|
+
const Y = e.getCustomClassesAt(o, i);
|
|
2503
|
+
if (Y.length && this.dom.addClasses(Y, x), 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") {
|
|
2462
2504
|
const v = this.getFocusModel();
|
|
2463
2505
|
v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
|
|
2464
2506
|
}
|
|
2465
2507
|
t === "header" && this.dom.setAttribute(x, "data-ge-action", "drag-column");
|
|
2466
|
-
const
|
|
2467
|
-
if (
|
|
2468
|
-
for (const v in
|
|
2469
|
-
this.dom.setStyle(x, v,
|
|
2508
|
+
const te = e.getCustomStyleAt(o, i);
|
|
2509
|
+
if (te)
|
|
2510
|
+
for (const v in te)
|
|
2511
|
+
this.dom.setStyle(x, v, te[v]);
|
|
2470
2512
|
return [x, M];
|
|
2471
2513
|
}
|
|
2472
2514
|
/**
|
|
@@ -2807,7 +2849,7 @@ class ht {
|
|
|
2807
2849
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
|
|
2808
2850
|
const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
|
|
2809
2851
|
if (s && o && i) {
|
|
2810
|
-
const r =
|
|
2852
|
+
const r = ee(s), n = Number(o), l = Number(i);
|
|
2811
2853
|
this.tableScope.updateModelValueAfterEdit(r, n, l, t.value);
|
|
2812
2854
|
}
|
|
2813
2855
|
}
|
|
@@ -2818,12 +2860,12 @@ class ut {
|
|
|
2818
2860
|
this.rowIndex = e, this.columnIndex = t;
|
|
2819
2861
|
}
|
|
2820
2862
|
}
|
|
2821
|
-
class
|
|
2863
|
+
class ge {
|
|
2822
2864
|
constructor(e) {
|
|
2823
2865
|
this.cells = e;
|
|
2824
2866
|
}
|
|
2825
2867
|
static createSingle(e, t) {
|
|
2826
|
-
return new
|
|
2868
|
+
return new ge([new ut(e, t)]);
|
|
2827
2869
|
}
|
|
2828
2870
|
}
|
|
2829
2871
|
class pt {
|
|
@@ -2910,12 +2952,12 @@ class ft {
|
|
|
2910
2952
|
}
|
|
2911
2953
|
}
|
|
2912
2954
|
function mt(d) {
|
|
2913
|
-
return d.trim().replace(/\+/g, " ").replace(/ +/g, " ").replace(/⌫/g, "backspace").replace(/↩/g, "enter").replace(/⇧/g, "shift").replace(/⌥/g, "alt").replace(/option/g, "alt").replace(/opt/g, "alt").replace(/⌃/g, "ctrl").replace(/control/g, "ctrl").replace(/command/g, "cmd").replace(/meta/g, "cmd").replace(/escape/g, "esc").replace(/⌘/g, "cmd").replace(/\*/g, "multiply").split(" ").filter((e) => e).sort((e, t) => {
|
|
2955
|
+
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) => {
|
|
2914
2956
|
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
|
|
2915
2957
|
return o !== i ? o - i : e.localeCompare(t);
|
|
2916
2958
|
}).join(" ");
|
|
2917
2959
|
}
|
|
2918
|
-
function
|
|
2960
|
+
function xe(d) {
|
|
2919
2961
|
let e = d.key.toLowerCase();
|
|
2920
2962
|
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")) {
|
|
2921
2963
|
const s = d.code.replace("Numpad", "").toLowerCase();
|
|
@@ -2970,10 +3012,10 @@ class bt {
|
|
|
2970
3012
|
return t;
|
|
2971
3013
|
}
|
|
2972
3014
|
findEntity(e) {
|
|
2973
|
-
const t =
|
|
3015
|
+
const t = xe(e);
|
|
2974
3016
|
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
2975
3017
|
for (const s in this.shortcutActionIdMapping)
|
|
2976
|
-
if (
|
|
3018
|
+
if (xe(e) === t)
|
|
2977
3019
|
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
2978
3020
|
}
|
|
2979
3021
|
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
@@ -3020,7 +3062,7 @@ class bt {
|
|
|
3020
3062
|
return this.shortcutActionIdMapping;
|
|
3021
3063
|
}
|
|
3022
3064
|
}
|
|
3023
|
-
class
|
|
3065
|
+
class ne {
|
|
3024
3066
|
onCheckboxChanged(e) {
|
|
3025
3067
|
}
|
|
3026
3068
|
onContextmenu(e) {
|
|
@@ -3088,7 +3130,7 @@ class wt {
|
|
|
3088
3130
|
}
|
|
3089
3131
|
}
|
|
3090
3132
|
}
|
|
3091
|
-
class
|
|
3133
|
+
class fe {
|
|
3092
3134
|
constructor(e = "none", t = "single") {
|
|
3093
3135
|
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
|
|
3094
3136
|
}
|
|
@@ -3207,7 +3249,7 @@ class xt {
|
|
|
3207
3249
|
return [this.rowIndex, this.columnIndex];
|
|
3208
3250
|
}
|
|
3209
3251
|
}
|
|
3210
|
-
class
|
|
3252
|
+
class me {
|
|
3211
3253
|
constructor(e = new O(
|
|
3212
3254
|
"❯",
|
|
3213
3255
|
"",
|
|
@@ -3221,17 +3263,17 @@ class fe {
|
|
|
3221
3263
|
}
|
|
3222
3264
|
// `⊖ `, `⊕ `;
|
|
3223
3265
|
}
|
|
3224
|
-
const St = new
|
|
3225
|
-
class
|
|
3266
|
+
const St = new fe(), Ct = new xt("cell");
|
|
3267
|
+
class J {
|
|
3226
3268
|
constructor() {
|
|
3227
3269
|
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 = {
|
|
3228
3270
|
header: 34,
|
|
3229
3271
|
body: 34,
|
|
3230
3272
|
footer: 34
|
|
3231
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new
|
|
3273
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new _e(), this.headerGroupOptions = new me(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Be(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new wt(), this.getSelectionModel = () => St, this.getFocusModel = () => Ct;
|
|
3232
3274
|
}
|
|
3233
3275
|
}
|
|
3234
|
-
const
|
|
3276
|
+
const N = class N {
|
|
3235
3277
|
/**
|
|
3236
3278
|
* Returns the content to be copied based on the provided table model, selection model, and focus model.
|
|
3237
3279
|
*
|
|
@@ -3254,9 +3296,9 @@ const W = class W {
|
|
|
3254
3296
|
const h = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
|
|
3255
3297
|
a.push(h);
|
|
3256
3298
|
}
|
|
3257
|
-
n.push(a.join(
|
|
3299
|
+
n.push(a.join(N.columnSeparatorChar));
|
|
3258
3300
|
}
|
|
3259
|
-
return o(n.join(
|
|
3301
|
+
return o(n.join(N.rowSeparatorChar));
|
|
3260
3302
|
}
|
|
3261
3303
|
}
|
|
3262
3304
|
if (s) {
|
|
@@ -3313,9 +3355,9 @@ const W = class W {
|
|
|
3313
3355
|
return t;
|
|
3314
3356
|
}
|
|
3315
3357
|
};
|
|
3316
|
-
|
|
3358
|
+
N.columnSeparatorChar = " ", N.rowSeparatorChar = `
|
|
3317
3359
|
`;
|
|
3318
|
-
let
|
|
3360
|
+
let q = N;
|
|
3319
3361
|
class vt {
|
|
3320
3362
|
constructor(e, t = 500) {
|
|
3321
3363
|
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Ge(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
|
|
@@ -3432,9 +3474,9 @@ class Rt {
|
|
|
3432
3474
|
}
|
|
3433
3475
|
}
|
|
3434
3476
|
class Ve extends ct {
|
|
3435
|
-
constructor(e, t, s, o, i, r = new
|
|
3477
|
+
constructor(e, t, s, o, i, r = new q(), n = new Rt()) {
|
|
3436
3478
|
var c;
|
|
3437
|
-
if (super(e, t, new Qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager =
|
|
3479
|
+
if (super(e, t, new Qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = W.getInstance(), this.selectionService = new pt(this), this.api = new st(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), i || (this.eventListener = new ne()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
|
|
3438
3480
|
const h = this.tableOptions.autoRestoreOptions, u = h.getStorageKeyFn;
|
|
3439
3481
|
u && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ot(u)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new rt(u)), h.autoRestoreSortingState && (this.storeSortingService = new nt(u)));
|
|
3440
3482
|
}
|
|
@@ -3442,7 +3484,7 @@ class Ve extends ct {
|
|
|
3442
3484
|
const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
3443
3485
|
l && l.addEventSelectionChangedListener(this);
|
|
3444
3486
|
const a = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
3445
|
-
a && a.addEventFocusChangedListener(this);
|
|
3487
|
+
a && a.addEventFocusChangedListener(this), console.log("TableScope created");
|
|
3446
3488
|
}
|
|
3447
3489
|
/**
|
|
3448
3490
|
* Creates a TableScope instance.
|
|
@@ -3456,7 +3498,7 @@ class Ve extends ct {
|
|
|
3456
3498
|
*
|
|
3457
3499
|
* @return {TableScope} - The newly created TableScope instance.
|
|
3458
3500
|
*/
|
|
3459
|
-
static create(e, t, s = new
|
|
3501
|
+
static create(e, t, s = new J(), o = new ne(), i = new yt(), r = new q()) {
|
|
3460
3502
|
return new Ve(e, t, i, s, o, r);
|
|
3461
3503
|
}
|
|
3462
3504
|
/**
|
|
@@ -3485,7 +3527,7 @@ class Ve extends ct {
|
|
|
3485
3527
|
return !1;
|
|
3486
3528
|
}
|
|
3487
3529
|
updateModelValueAfterEdit(e, t, s, o) {
|
|
3488
|
-
e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(
|
|
3530
|
+
e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(ge.createSingle(t, s)), this.hostElement.focus());
|
|
3489
3531
|
}
|
|
3490
3532
|
/**
|
|
3491
3533
|
* Retrieves the TableApi object.
|
|
@@ -3514,7 +3556,7 @@ class Ve extends ct {
|
|
|
3514
3556
|
* @return {GeMouseEvent} - The created GeMouseEvent object.
|
|
3515
3557
|
*/
|
|
3516
3558
|
createGeMouseEvent(e) {
|
|
3517
|
-
const t = new
|
|
3559
|
+
const t = new he();
|
|
3518
3560
|
if (t.originalEvent = e, e) {
|
|
3519
3561
|
const s = e.target;
|
|
3520
3562
|
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) {
|
|
@@ -3590,7 +3632,7 @@ class Ve extends ct {
|
|
|
3590
3632
|
toggleExpandCollapseAll(e = !0) {
|
|
3591
3633
|
var s;
|
|
3592
3634
|
const t = this.tableModel.getBodyModel();
|
|
3593
|
-
|
|
3635
|
+
re(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
|
|
3594
3636
|
}
|
|
3595
3637
|
/**
|
|
3596
3638
|
* Toggles the checkbox state of a specific row in a table.
|
|
@@ -3806,7 +3848,7 @@ class Ve extends ct {
|
|
|
3806
3848
|
const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
|
|
3807
3849
|
if (s.autoRestoreCollapsedExpandedState && o) {
|
|
3808
3850
|
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
3809
|
-
if (
|
|
3851
|
+
if (re(r)) {
|
|
3810
3852
|
const n = r, l = r.getRowCount();
|
|
3811
3853
|
for (let a = 0; a < l; a++) {
|
|
3812
3854
|
const c = r.getRowByIndex(a);
|
|
@@ -3860,16 +3902,16 @@ class Ve extends ct {
|
|
|
3860
3902
|
return this.displayedRowCount;
|
|
3861
3903
|
}
|
|
3862
3904
|
}
|
|
3863
|
-
class Gt extends
|
|
3905
|
+
class Gt extends ne {
|
|
3864
3906
|
constructor(e) {
|
|
3865
3907
|
super(), this.onCheckboxChangedCallback = e, super.onCheckboxChanged = (t) => {
|
|
3866
3908
|
this.onCheckboxChangedCallback(t);
|
|
3867
3909
|
};
|
|
3868
3910
|
}
|
|
3869
3911
|
}
|
|
3870
|
-
const
|
|
3912
|
+
const Z = class Z {
|
|
3871
3913
|
};
|
|
3872
|
-
|
|
3914
|
+
Z.themes = ["light", "combat", "paper", "blackboard"], Z.vars = {
|
|
3873
3915
|
light: `html[data-theme="light"] {
|
|
3874
3916
|
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
3875
3917
|
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
@@ -4103,28 +4145,28 @@ q.themes = ["light", "combat", "paper", "blackboard"], q.vars = {
|
|
|
4103
4145
|
--ge-table-drop-zone-bg: #758129;
|
|
4104
4146
|
}`
|
|
4105
4147
|
};
|
|
4106
|
-
let
|
|
4107
|
-
class
|
|
4148
|
+
let Se = Z;
|
|
4149
|
+
class Ce {
|
|
4108
4150
|
constructor(e, t = !0, s, o, i = 0, r = !1, n = !1) {
|
|
4109
4151
|
this.data = e, this.expanded = t, this.children = s, this.parent = o, this.deep = i, this.checked = r, this.keep = n, this.type = "TreeRow";
|
|
4110
4152
|
}
|
|
4111
4153
|
}
|
|
4112
|
-
class
|
|
4154
|
+
class le {
|
|
4113
4155
|
static buildTreeRows(e, t = "children", s = 12) {
|
|
4114
4156
|
const o = [];
|
|
4115
4157
|
for (const i of e)
|
|
4116
|
-
o.push(
|
|
4158
|
+
o.push(le.buildTreeRow(i, t, void 0, 0, s));
|
|
4117
4159
|
return o;
|
|
4118
4160
|
}
|
|
4119
|
-
static buildTreeRow(e, t = "children", s = new
|
|
4161
|
+
static buildTreeRow(e, t = "children", s = new Ce(e, !0, [], void 0, 0), o = 0, i = 12) {
|
|
4120
4162
|
var n;
|
|
4121
4163
|
if (o > i)
|
|
4122
4164
|
return console.warn("Max deep limit reached: ", o), s;
|
|
4123
4165
|
const r = e[t];
|
|
4124
4166
|
if (r)
|
|
4125
4167
|
for (const l of r) {
|
|
4126
|
-
const a = new
|
|
4127
|
-
if ((n = s.children) == null || n.push(a),
|
|
4168
|
+
const a = new Ce(l, !0, [], s, o + 1);
|
|
4169
|
+
if ((n = s.children) == null || n.push(a), le.buildTreeRow(
|
|
4128
4170
|
l,
|
|
4129
4171
|
t,
|
|
4130
4172
|
a,
|
|
@@ -4135,7 +4177,7 @@ class ne {
|
|
|
4135
4177
|
return s;
|
|
4136
4178
|
}
|
|
4137
4179
|
}
|
|
4138
|
-
class
|
|
4180
|
+
class z {
|
|
4139
4181
|
constructor(e = 34, t = 34, s = 34) {
|
|
4140
4182
|
this.header = e, this.body = t, this.footer = s;
|
|
4141
4183
|
}
|
|
@@ -4145,8 +4187,8 @@ class y {
|
|
|
4145
4187
|
this.value = e, this.unit = t;
|
|
4146
4188
|
}
|
|
4147
4189
|
}
|
|
4148
|
-
const At = () => !0,
|
|
4149
|
-
class
|
|
4190
|
+
const At = () => !0, ve = () => !1;
|
|
4191
|
+
class V {
|
|
4150
4192
|
constructor(e, t, s = new y(100, "px"), o = new I(), i = new I(), r = new y(100, "px"), n = new y(100, "px"), l, a, c, h, u, f, p, m, g = () => this.visible) {
|
|
4151
4193
|
this.property = e, this.headerLabel = t, this.width = s, this.classes = o, this.rendererMap = i, this.minWidth = r, this.maxWidth = n, this.sortable = l, this.sortComparator = a, this.sortState = c, this.sortStatesOrder = h, this.sortIconVisible = u, this.editable = f, this.getEditRenderer = p, this.editInputPipe = m, this.isVisible = g, this.visible = !0, s.unit !== "px" && (this.minWidth = new y(0, "px"), this.maxWidth = new y(1e5, "px"));
|
|
4152
4194
|
}
|
|
@@ -4166,8 +4208,8 @@ class H {
|
|
|
4166
4208
|
e.headerClasses,
|
|
4167
4209
|
e.bodyClasses,
|
|
4168
4210
|
e.footerClasses
|
|
4169
|
-
), o = e.sortIconVisible ?? e.sortable ??
|
|
4170
|
-
return new
|
|
4211
|
+
), o = e.sortIconVisible ?? e.sortable ?? ve, i = e.editable ?? e.editable ?? ve, r = e.isVisible ?? e.isVisible ?? At;
|
|
4212
|
+
return new V(
|
|
4171
4213
|
e.property ?? "",
|
|
4172
4214
|
e.headerLabel ?? "",
|
|
4173
4215
|
e.width ?? new y(100, "px"),
|
|
@@ -4187,8 +4229,8 @@ class H {
|
|
|
4187
4229
|
);
|
|
4188
4230
|
}
|
|
4189
4231
|
}
|
|
4190
|
-
const zt = new y(500, "px"), jt = new y(400, "px"), Et = new y(300, "px"), Ut = new y(290, "px"), Yt = new y(280, "px"), Kt = new y(270, "px"), Xt = new y(260, "px"), Jt = new y(250, "px"), qt = new y(240, "px"), Zt = new y(230, "px"), Qt = new y(220, "px"), es = new y(210, "px"),
|
|
4191
|
-
class P extends
|
|
4232
|
+
const zt = new y(500, "px"), jt = new y(400, "px"), Et = new y(300, "px"), Ut = new y(290, "px"), Yt = new y(280, "px"), Kt = new y(270, "px"), Xt = new y(260, "px"), Jt = new y(250, "px"), qt = new y(240, "px"), Zt = new y(230, "px"), Qt = new y(220, "px"), es = new y(210, "px"), Re = new y(200, "px"), ts = new y(190, "px"), ss = new y(180, "px"), os = new y(170, "px"), is = new y(160, "px"), rs = new y(150, "px"), ns = new y(140, "px"), ls = new y(130, "px"), as = new y(120, "px"), cs = new y(110, "px"), ds = new y(100, "px"), hs = new y(90, "px"), us = new y(80, "px"), ps = new y(70, "px"), gs = new y(60, "px"), fs = new y(50, "px"), ms = new y(40, "px"), bs = new y(30, "px"), ys = new y(20, "px"), ws = new y(10, "px"), xs = new y(0, "px");
|
|
4233
|
+
class P extends ue {
|
|
4192
4234
|
constructor(e, t, s, o = []) {
|
|
4193
4235
|
super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
|
|
4194
4236
|
}
|
|
@@ -4299,9 +4341,9 @@ class Mt {
|
|
|
4299
4341
|
return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
|
|
4300
4342
|
}
|
|
4301
4343
|
}
|
|
4302
|
-
class
|
|
4344
|
+
class Ae extends ue {
|
|
4303
4345
|
constructor(e, t, s, o = []) {
|
|
4304
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new
|
|
4346
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new He(), this.service = new Mt(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
|
|
4305
4347
|
}
|
|
4306
4348
|
changeColumnOrder(e, t) {
|
|
4307
4349
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
@@ -4404,7 +4446,7 @@ class Re extends he {
|
|
|
4404
4446
|
o.children && this.treeSort(o.children, t, s);
|
|
4405
4447
|
}
|
|
4406
4448
|
}
|
|
4407
|
-
class
|
|
4449
|
+
class Ee {
|
|
4408
4450
|
constructor(e = []) {
|
|
4409
4451
|
this.allRootNodes = e;
|
|
4410
4452
|
}
|
|
@@ -4464,7 +4506,7 @@ class Ae {
|
|
|
4464
4506
|
s.checked && t.push(s), s.children && this.addSelectedRecursive(s.children, t);
|
|
4465
4507
|
}
|
|
4466
4508
|
}
|
|
4467
|
-
class
|
|
4509
|
+
class Me {
|
|
4468
4510
|
constructor(e = 0, t = 0, s = 0, o = 0) {
|
|
4469
4511
|
this.top = e, this.right = t, this.bottom = s, this.left = o;
|
|
4470
4512
|
}
|
|
@@ -4500,11 +4542,11 @@ class Tt {
|
|
|
4500
4542
|
}
|
|
4501
4543
|
}
|
|
4502
4544
|
}
|
|
4503
|
-
class
|
|
4504
|
-
constructor(e, t, s, o = 0, i = 0, r = !1, n = new
|
|
4545
|
+
class oe {
|
|
4546
|
+
constructor(e, t, s, o = 0, i = 0, r = !1, n = new z(), l = [], a = [], c = -1, h = 0, u = 400, f = () => {
|
|
4505
4547
|
}) {
|
|
4506
4548
|
var p, m, g, b;
|
|
4507
|
-
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
|
|
4549
|
+
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 Me(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", s.areaIdent = "footer", this.columnCount || ((p = this.columnDefs) != null && p.length ? this.columnCount = this.columnDefs.length : (m = this.columnSizes) != null && m.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (b = this.columnDefs) != null && b.length && Ze(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Tt());
|
|
4508
4550
|
}
|
|
4509
4551
|
init() {
|
|
4510
4552
|
this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
|
|
@@ -4588,7 +4630,7 @@ class se {
|
|
|
4588
4630
|
*/
|
|
4589
4631
|
recalcPadding() {
|
|
4590
4632
|
const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), s = this.getAreaHeight("header"), o = this.getAreaHeight("footer");
|
|
4591
|
-
this.padding = new
|
|
4633
|
+
this.padding = new Me(
|
|
4592
4634
|
s,
|
|
4593
4635
|
t,
|
|
4594
4636
|
o,
|
|
@@ -4890,7 +4932,7 @@ class se {
|
|
|
4890
4932
|
return this.tableScope;
|
|
4891
4933
|
}
|
|
4892
4934
|
}
|
|
4893
|
-
class
|
|
4935
|
+
class Te extends $ {
|
|
4894
4936
|
constructor(e, t, s, o, i = "ge-selected-row", r = "ge-focused-row") {
|
|
4895
4937
|
super(
|
|
4896
4938
|
e,
|
|
@@ -4902,7 +4944,7 @@ class Me extends He {
|
|
|
4902
4944
|
), this.areaIdent = e, this.rows = t, this.columnDefs = s, this.defaultRowHeight = o;
|
|
4903
4945
|
}
|
|
4904
4946
|
}
|
|
4905
|
-
class
|
|
4947
|
+
class B {
|
|
4906
4948
|
/**
|
|
4907
4949
|
* TableFactory
|
|
4908
4950
|
*
|
|
@@ -4945,7 +4987,7 @@ class _ {
|
|
|
4945
4987
|
if ((t = e.tableOptions) != null && t.defaultRowHeights)
|
|
4946
4988
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
4947
4989
|
else {
|
|
4948
|
-
if (e.defaultRowHeights = new
|
|
4990
|
+
if (e.defaultRowHeights = new z(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
|
|
4949
4991
|
const g = e.headerAreaModel.defaultRowHeight;
|
|
4950
4992
|
g > -1 && (e.defaultRowHeights.header = g);
|
|
4951
4993
|
}
|
|
@@ -4958,7 +5000,7 @@ class _ {
|
|
|
4958
5000
|
g > -1 && (e.defaultRowHeights.footer = g);
|
|
4959
5001
|
}
|
|
4960
5002
|
}
|
|
4961
|
-
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new
|
|
5003
|
+
if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new V(g, g.toUpperCase(), Re)) : (o = e.rows) != null && o.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new V(g, g.toUpperCase(), Re)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (n = e.columnSizes) != null && n.length ? e.columnCount = (l = e.columnSizes) == null ? void 0 : l.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((a = e.headerData) != null && a.length ? e.headerAreaModel = new P(
|
|
4962
5004
|
"header",
|
|
4963
5005
|
e.headerData,
|
|
4964
5006
|
e.defaultRowHeights.header,
|
|
@@ -4975,16 +5017,16 @@ class _ {
|
|
|
4975
5017
|
e.columnDefs
|
|
4976
5018
|
) : e.footerAreaModel = new F("footer")), !e.bodyAreaModel)
|
|
4977
5019
|
if (e.rows)
|
|
4978
|
-
if ((u = e.rows) != null && u.length &&
|
|
5020
|
+
if ((u = e.rows) != null && u.length && G(e.rows[0])) {
|
|
4979
5021
|
const g = e.rows;
|
|
4980
|
-
e.bodyAreaModel = new
|
|
5022
|
+
e.bodyAreaModel = new Ae(
|
|
4981
5023
|
"body",
|
|
4982
5024
|
g,
|
|
4983
5025
|
e.defaultRowHeights.body,
|
|
4984
5026
|
e.columnDefs
|
|
4985
|
-
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new
|
|
5027
|
+
), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Ee(g));
|
|
4986
5028
|
} else
|
|
4987
|
-
e.bodyAreaModel = new
|
|
5029
|
+
e.bodyAreaModel = new Te(
|
|
4988
5030
|
"body",
|
|
4989
5031
|
e.rows,
|
|
4990
5032
|
e.columnDefs,
|
|
@@ -4995,7 +5037,7 @@ class _ {
|
|
|
4995
5037
|
e.bodyData,
|
|
4996
5038
|
e.defaultRowHeights.body
|
|
4997
5039
|
) : e.bodyAreaModel = new F("body");
|
|
4998
|
-
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
|
|
5040
|
+
return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((p = e.tableOptions) != null && p.getSelectionModel) && (e.getSelectionModel = (m = e.tableOptions) == null ? void 0 : m.getSelectionModel), new oe(
|
|
4999
5041
|
e.headerAreaModel,
|
|
5000
5042
|
e.bodyAreaModel,
|
|
5001
5043
|
e.footerAreaModel,
|
|
@@ -5029,10 +5071,10 @@ class _ {
|
|
|
5029
5071
|
* @method
|
|
5030
5072
|
*/
|
|
5031
5073
|
static buildByTypedRowsParam(e) {
|
|
5032
|
-
return
|
|
5074
|
+
return B.buildByTypedRows(
|
|
5033
5075
|
e.rows ?? [],
|
|
5034
5076
|
e.columnDefs,
|
|
5035
|
-
e.tableOptions ?? new
|
|
5077
|
+
e.tableOptions ?? new J(),
|
|
5036
5078
|
e.fixedLeftColumnCount ?? 0,
|
|
5037
5079
|
e.fixedRightColumnCount ?? 0
|
|
5038
5080
|
);
|
|
@@ -5073,16 +5115,16 @@ class _ {
|
|
|
5073
5115
|
* columnDef is "CheckboxColumn". If the first column is not a checkbox column, ensure that the first columnDef does not have "CheckboxColumn"
|
|
5074
5116
|
* as its property.
|
|
5075
5117
|
*/
|
|
5076
|
-
static buildByTypedRows(e, t, s = new
|
|
5118
|
+
static buildByTypedRows(e, t, s = new J(), o = 0, i = 0) {
|
|
5077
5119
|
const r = s.defaultRowHeights, n = t[0].property === "CheckboxColumn";
|
|
5078
|
-
if (e != null && e.length &&
|
|
5079
|
-
const a = e, c = new
|
|
5120
|
+
if (e != null && e.length && G(e[0])) {
|
|
5121
|
+
const a = e, c = new Ae(
|
|
5080
5122
|
"body",
|
|
5081
5123
|
a,
|
|
5082
5124
|
r.body,
|
|
5083
5125
|
t
|
|
5084
5126
|
);
|
|
5085
|
-
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new
|
|
5127
|
+
return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Ee(a)), B.createByAreaModelsParam({
|
|
5086
5128
|
headerAreaModel: new P("header", [t.map((h) => h.headerLabel)], r.header),
|
|
5087
5129
|
bodyAreaModel: c,
|
|
5088
5130
|
footerAreaModel: new P("footer", [], r.footer),
|
|
@@ -5096,7 +5138,7 @@ class _ {
|
|
|
5096
5138
|
overridingColumnWidth: -1
|
|
5097
5139
|
});
|
|
5098
5140
|
}
|
|
5099
|
-
return
|
|
5141
|
+
return B.createByObjectArrayParam({
|
|
5100
5142
|
rows: e,
|
|
5101
5143
|
columnDefs: t,
|
|
5102
5144
|
fixedLeftColumnCount: o,
|
|
@@ -5150,14 +5192,14 @@ class _ {
|
|
|
5150
5192
|
*/
|
|
5151
5193
|
static createByObjectArrayParam(e) {
|
|
5152
5194
|
const t = e.rowCheckboxVisible !== void 0 ? e.rowCheckboxVisible : !1;
|
|
5153
|
-
return
|
|
5195
|
+
return B.createByObjectArray(
|
|
5154
5196
|
e.rows,
|
|
5155
5197
|
e.header ?? [],
|
|
5156
5198
|
e.footer ?? [],
|
|
5157
5199
|
e.fixedLeftColumnCount ?? 0,
|
|
5158
5200
|
e.fixedRightColumnCount ?? 0,
|
|
5159
5201
|
t,
|
|
5160
|
-
e.defaultRowHeights ?? new
|
|
5202
|
+
e.defaultRowHeights ?? new z(),
|
|
5161
5203
|
e.columnDefs ?? [],
|
|
5162
5204
|
e.columnSizes ?? []
|
|
5163
5205
|
);
|
|
@@ -5203,8 +5245,8 @@ class _ {
|
|
|
5203
5245
|
* @return A new instance of `TableModel` is created using the provided parameters.
|
|
5204
5246
|
* If a parameter isn't provided, the default value is used.
|
|
5205
5247
|
*/
|
|
5206
|
-
static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, n = new
|
|
5207
|
-
return new
|
|
5248
|
+
static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, n = new z(), l, a = [], c = -1, h) {
|
|
5249
|
+
return new oe(
|
|
5208
5250
|
e,
|
|
5209
5251
|
t,
|
|
5210
5252
|
s,
|
|
@@ -5255,7 +5297,7 @@ class _ {
|
|
|
5255
5297
|
* });
|
|
5256
5298
|
*/
|
|
5257
5299
|
static createByAreaModelsParam(e) {
|
|
5258
|
-
return
|
|
5300
|
+
return B.createByAreaModels(
|
|
5259
5301
|
e.headerAreaModel ?? new F(),
|
|
5260
5302
|
e.bodyAreaModel,
|
|
5261
5303
|
e.footerAreaModel ?? new F(),
|
|
@@ -5317,11 +5359,11 @@ class _ {
|
|
|
5317
5359
|
*
|
|
5318
5360
|
* Reference: For more details regarding the `DefaultRowHeightsIf`, `ColumnDefIf`, `AreaModelIf`, and `AreaModelArrayOfArrays` classes/interfaces, please refer to the respective API documents.
|
|
5319
5361
|
*/
|
|
5320
|
-
static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new
|
|
5362
|
+
static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new z(), l, a = []) {
|
|
5321
5363
|
let c;
|
|
5322
5364
|
t != null && t.length ? c = new P("header", t, n.header, l) : l != null && l.length ? c = new P("header", [l.map((f) => f.headerLabel)], n.header, l) : c = new F();
|
|
5323
|
-
const h = s ? new P("footer", s, n.footer, l) : new F(), u = new
|
|
5324
|
-
return new
|
|
5365
|
+
const h = s ? new P("footer", s, n.footer, l) : new F(), u = new Te("body", e, l, n.body);
|
|
5366
|
+
return new oe(
|
|
5325
5367
|
c,
|
|
5326
5368
|
u,
|
|
5327
5369
|
h,
|
|
@@ -5398,7 +5440,7 @@ const Rs = { body: ["ge-table-text-align-left"] }, As = { body: ["ge-table-text-
|
|
|
5398
5440
|
body: ["ge-table-text-align-right"],
|
|
5399
5441
|
footer: ["ge-table-text-align-right"]
|
|
5400
5442
|
};
|
|
5401
|
-
class
|
|
5443
|
+
class Ie {
|
|
5402
5444
|
render(e, t, s, o, i, r, n) {
|
|
5403
5445
|
if (i.isRowCheckable(t)) {
|
|
5404
5446
|
n.addClass(e, "ge-table-row-checkbox-div");
|
|
@@ -5418,7 +5460,7 @@ class Te {
|
|
|
5418
5460
|
}
|
|
5419
5461
|
class ks {
|
|
5420
5462
|
constructor() {
|
|
5421
|
-
this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new y(50, "px"), this.minWidth = new y(50, "px"), this.maxWidth = new y(100, "px"), this.rendererMap = new I(new
|
|
5463
|
+
this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new y(50, "px"), this.minWidth = new y(50, "px"), this.maxWidth = new y(100, "px"), this.rendererMap = new I(new Ie(), new Ie(), void 0), this.classes = new I(
|
|
5422
5464
|
[],
|
|
5423
5465
|
["ge-table-text-align-left"],
|
|
5424
5466
|
[]
|
|
@@ -5576,7 +5618,7 @@ class T {
|
|
|
5576
5618
|
static buildColumnDefs(e, t = []) {
|
|
5577
5619
|
for (const s of e)
|
|
5578
5620
|
s.property && t.push(
|
|
5579
|
-
|
|
5621
|
+
V.create({
|
|
5580
5622
|
property: s.property,
|
|
5581
5623
|
headerLabel: s.data ? s.data : s.property,
|
|
5582
5624
|
isVisible: () => typeof s.isVisible == "function" ? s.isVisible() : !0
|
|
@@ -5717,14 +5759,14 @@ class Os {
|
|
|
5717
5759
|
return !1;
|
|
5718
5760
|
}
|
|
5719
5761
|
}
|
|
5720
|
-
const
|
|
5721
|
-
constructor(e = new
|
|
5762
|
+
const Q = class Q {
|
|
5763
|
+
constructor(e = new me()) {
|
|
5722
5764
|
this.headerGroupOptions = e;
|
|
5723
5765
|
}
|
|
5724
5766
|
render(e, t, s, o, i, r, n) {
|
|
5725
5767
|
const l = r != null && r.data ? r.data : "";
|
|
5726
5768
|
if (r) {
|
|
5727
|
-
const { toggle: a, visibility: c, closed: h } = r, u = a ?
|
|
5769
|
+
const { toggle: a, visibility: c, closed: h } = r, u = a ? Q.toggleHeaderGroup : "";
|
|
5728
5770
|
this.addText(e, o, t, s, l, u), a && c !== "always" && this.addArrowDiv(n, e, !h, t, s, o, u);
|
|
5729
5771
|
} else
|
|
5730
5772
|
this.addText(e, o, t, s, l, "");
|
|
@@ -5756,11 +5798,11 @@ const Z = class Z {
|
|
|
5756
5798
|
}
|
|
5757
5799
|
}
|
|
5758
5800
|
};
|
|
5759
|
-
|
|
5760
|
-
let
|
|
5801
|
+
Q.toggleHeaderGroup = "toggleHeaderGroup";
|
|
5802
|
+
let ae = Q;
|
|
5761
5803
|
class $s {
|
|
5762
|
-
constructor(e = "header", t, s = [], o, i = new
|
|
5763
|
-
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
|
|
5804
|
+
constructor(e = "header", t, s = [], o, i = new me()) {
|
|
5805
|
+
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 ae(this.headerGroupOptions), this.groupExts = T.buildGroupExts(t), this.init();
|
|
5764
5806
|
}
|
|
5765
5807
|
init() {
|
|
5766
5808
|
var e;
|
|
@@ -6120,7 +6162,7 @@ class We {
|
|
|
6120
6162
|
this.action = e, this.area = t, this.areaModel = s, this.rowIndex = o, this.columnIndex = i, this.id = r;
|
|
6121
6163
|
}
|
|
6122
6164
|
}
|
|
6123
|
-
class
|
|
6165
|
+
class _ {
|
|
6124
6166
|
constructor(e, t, s = "", o = "", i = "button", r = !0) {
|
|
6125
6167
|
this.action = e, this.label = t, this.icon = s, this.elementClass = o, this.elementType = i, this.enabled = r;
|
|
6126
6168
|
}
|
|
@@ -6181,13 +6223,13 @@ class Lt {
|
|
|
6181
6223
|
createActionEvent(e, t) {
|
|
6182
6224
|
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";
|
|
6183
6225
|
if (s && o && i) {
|
|
6184
|
-
const l =
|
|
6226
|
+
const l = ee(s), a = Number(o), c = Number(i);
|
|
6185
6227
|
return new We(r, l, t, a, c, n);
|
|
6186
6228
|
}
|
|
6187
6229
|
return null;
|
|
6188
6230
|
}
|
|
6189
6231
|
getCrudActions(e) {
|
|
6190
|
-
return Array.isArray(e) && e.every((t) => t instanceof
|
|
6232
|
+
return Array.isArray(e) && e.every((t) => t instanceof _) ? e : this.crudActions;
|
|
6191
6233
|
}
|
|
6192
6234
|
}
|
|
6193
6235
|
const Zs = function(d, e, t) {
|
|
@@ -6225,7 +6267,7 @@ class Ne {
|
|
|
6225
6267
|
}
|
|
6226
6268
|
}
|
|
6227
6269
|
}
|
|
6228
|
-
class Qs extends
|
|
6270
|
+
class Qs extends fe {
|
|
6229
6271
|
constructor(e) {
|
|
6230
6272
|
super("row", "multi"), this.model = e;
|
|
6231
6273
|
}
|
|
@@ -6313,21 +6355,21 @@ class eo {
|
|
|
6313
6355
|
this.r = e, this.g = t, this.b = s;
|
|
6314
6356
|
}
|
|
6315
6357
|
}
|
|
6316
|
-
class
|
|
6358
|
+
class ke {
|
|
6317
6359
|
constructor(e, t, s, o) {
|
|
6318
6360
|
this.minValue = e, this.minColor = t, this.maxValue = s, this.maxColor = o;
|
|
6319
6361
|
}
|
|
6320
6362
|
}
|
|
6321
|
-
class
|
|
6363
|
+
class K {
|
|
6322
6364
|
static normalize(e, t, s, o = 0, i = 1) {
|
|
6323
6365
|
return (e - t) / (s - t) * (i - o) + o;
|
|
6324
6366
|
}
|
|
6325
6367
|
static getTwoColorGradientRGB(e, t) {
|
|
6326
|
-
const s =
|
|
6368
|
+
const s = K.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;
|
|
6327
6369
|
return `rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(a)})`;
|
|
6328
6370
|
}
|
|
6329
6371
|
static getThreeColorGradientRGB(e, t) {
|
|
6330
|
-
return e < t.middleValue ?
|
|
6372
|
+
return e < t.middleValue ? K.getTwoColorGradientRGB(e, new ke(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? K.getTwoColorGradientRGB(e, new ke(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
|
|
6331
6373
|
}
|
|
6332
6374
|
}
|
|
6333
6375
|
class to {
|
|
@@ -6391,7 +6433,7 @@ class $t {
|
|
|
6391
6433
|
return s.join("");
|
|
6392
6434
|
}
|
|
6393
6435
|
}
|
|
6394
|
-
class
|
|
6436
|
+
class ie {
|
|
6395
6437
|
constructor(e, t, s = "Edit Item") {
|
|
6396
6438
|
this.idKey = e, this.dialogTitle = s, this.object = { ...t };
|
|
6397
6439
|
}
|
|
@@ -6480,14 +6522,14 @@ class _t {
|
|
|
6480
6522
|
method: "GET"
|
|
6481
6523
|
}
|
|
6482
6524
|
}, this.singleRowActions = [
|
|
6483
|
-
new
|
|
6484
|
-
new
|
|
6485
|
-
new
|
|
6486
|
-
new
|
|
6525
|
+
new _("VIEW", "View", "", "", "link"),
|
|
6526
|
+
new _("EDIT", "Edit", "", "", "link"),
|
|
6527
|
+
new _("CLONE", "Clone", "", "", "link"),
|
|
6528
|
+
new _("DELETE", "Delete", "", "", "link")
|
|
6487
6529
|
// new CrudAction('CREATE', 'Create', '', '', 'link'),
|
|
6488
6530
|
], this.tableActions = [
|
|
6489
|
-
new
|
|
6490
|
-
new
|
|
6531
|
+
new _("CREATE", "Create", "", "", "button"),
|
|
6532
|
+
new _("DELETE_SELECTED", "Delete Selected", "", "", "button")
|
|
6491
6533
|
], this.autoAddActionColumn = !0, this.columnWidths = new Ot(), this.calcFixedRightColumnCount = (e) => e > 6 ? 1 : 0, this.getHeadersInit = () => ({}), this.getIdKey = () => "id", this.getIdByObject = (e) => (this.getIdKey() ?? "id") in e ? e.id : e, this.fetchList = (e) => {
|
|
6492
6534
|
const t = e.getHeadersInit ? e.getHeadersInit() : {};
|
|
6493
6535
|
let s = e.urls.list.url, o = e.urls.list.method ?? "GET";
|
|
@@ -6550,21 +6592,21 @@ class so {
|
|
|
6550
6592
|
this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
|
|
6551
6593
|
var r, n, l, a;
|
|
6552
6594
|
if (t.rows = i, i != null && i.length) {
|
|
6553
|
-
const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((w) => w.property) : this.extractProperties(i[0]), h = new
|
|
6595
|
+
const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((w) => w.property) : this.extractProperties(i[0]), h = new fe("row", "multi"), u = () => h;
|
|
6554
6596
|
this.tableOptions = {
|
|
6555
|
-
...new
|
|
6597
|
+
...new J(),
|
|
6556
6598
|
...t.tableOptions,
|
|
6557
6599
|
hoverColumnVisible: !1,
|
|
6558
6600
|
getSelectionModel: u
|
|
6559
6601
|
};
|
|
6560
|
-
const f = this.calcAutoColumnWidths(i, c), p = (n = t.columnDefs) != null && n.length ? t.columnDefs : c.map((w, S) => new
|
|
6602
|
+
const f = this.calcAutoColumnWidths(i, c), p = (n = t.columnDefs) != null && n.length ? t.columnDefs : c.map((w, S) => new V(w, w.toUpperCase(), new y(f[S], "px")));
|
|
6561
6603
|
if ((l = e == null ? void 0 : e.columnWidths) != null && l.autoCalc)
|
|
6562
6604
|
for (let w = 0; w < p.length; w++) {
|
|
6563
6605
|
const S = p[w];
|
|
6564
6606
|
S.width = new y(f[w], "px");
|
|
6565
6607
|
}
|
|
6566
6608
|
if (e.autoAddActionColumn) {
|
|
6567
|
-
let w = new
|
|
6609
|
+
let w = new V(
|
|
6568
6610
|
"id",
|
|
6569
6611
|
"Actions",
|
|
6570
6612
|
Et,
|
|
@@ -6577,7 +6619,7 @@ class so {
|
|
|
6577
6619
|
), p.push(w);
|
|
6578
6620
|
}
|
|
6579
6621
|
const m = 0, g = e.calcFixedRightColumnCount(p.length);
|
|
6580
|
-
this.tableModel =
|
|
6622
|
+
this.tableModel = B.buildByTypedRowsParam({
|
|
6581
6623
|
rows: i,
|
|
6582
6624
|
columnDefs: p,
|
|
6583
6625
|
tableOptions: this.tableOptions,
|
|
@@ -6603,7 +6645,7 @@ class so {
|
|
|
6603
6645
|
} else if (e.action === "EDIT") {
|
|
6604
6646
|
let r = e.id;
|
|
6605
6647
|
const n = this.crudOptions.getIdKey() ?? "id";
|
|
6606
|
-
(s = this.crudOptions) == null || s.fetchItem(this.crudOptions, r).then((l) => (console.info(l), new
|
|
6648
|
+
(s = this.crudOptions) == null || s.fetchItem(this.crudOptions, r).then((l) => (console.info(l), new ie(
|
|
6607
6649
|
n,
|
|
6608
6650
|
l
|
|
6609
6651
|
).openDialog((a) => {
|
|
@@ -6614,7 +6656,7 @@ class so {
|
|
|
6614
6656
|
const n = this.crudOptions.getIdKey() ?? "id";
|
|
6615
6657
|
(o = this.crudOptions) == null || o.fetchItem(this.crudOptions, r).then((l) => {
|
|
6616
6658
|
const a = JSON.parse(JSON.stringify(l));
|
|
6617
|
-
return new
|
|
6659
|
+
return new ie(
|
|
6618
6660
|
n,
|
|
6619
6661
|
a,
|
|
6620
6662
|
"Clone Item"
|
|
@@ -6624,7 +6666,7 @@ class so {
|
|
|
6624
6666
|
});
|
|
6625
6667
|
} else if (e.action === "CREATE") {
|
|
6626
6668
|
const r = this.crudOptions.getIdKey() ?? "id", n = JSON.parse(JSON.stringify(this.crudOptions.getEmptyItem()));
|
|
6627
|
-
return new
|
|
6669
|
+
return new ie(
|
|
6628
6670
|
r,
|
|
6629
6671
|
n,
|
|
6630
6672
|
"Create Item"
|
|
@@ -6686,71 +6728,71 @@ class oo {
|
|
|
6686
6728
|
}
|
|
6687
6729
|
}
|
|
6688
6730
|
export {
|
|
6689
|
-
|
|
6731
|
+
ue as AbstractAreaModel,
|
|
6690
6732
|
We as ActionEvent,
|
|
6691
6733
|
Lt as ActionsCellRenderer,
|
|
6692
|
-
|
|
6734
|
+
Oe as AnyPropertyType,
|
|
6693
6735
|
Ds as AreaMapFactory,
|
|
6694
6736
|
Os as AreaModel,
|
|
6695
6737
|
P as AreaModelArrayOfArrays,
|
|
6696
6738
|
$s as AreaModelCellGroups,
|
|
6697
6739
|
F as AreaModelHidden,
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6740
|
+
$ as AreaModelObjectArray,
|
|
6741
|
+
Te as AreaModelObjectArrayWithColumndefs,
|
|
6742
|
+
Ae as AreaModelTree,
|
|
6701
6743
|
I as AreaObjectMap,
|
|
6702
|
-
|
|
6744
|
+
H as ArrayPropertyType,
|
|
6703
6745
|
Ls as AutoRestoreOptions,
|
|
6704
6746
|
Ht as AvoidDoubleExecution,
|
|
6705
6747
|
Ye as BooleanPropertyType,
|
|
6706
6748
|
Pt as CellGroup,
|
|
6707
6749
|
Ft as CellGroupExt,
|
|
6708
|
-
|
|
6750
|
+
ae as CellGroupExtCellRenderer,
|
|
6709
6751
|
A as CellRange,
|
|
6710
6752
|
T as CellgroupFactory,
|
|
6711
6753
|
Hs as CheckboxBooleanPropertyCellRenderer,
|
|
6712
|
-
|
|
6754
|
+
Ie as CheckboxCellRenderer,
|
|
6713
6755
|
ks as CheckboxColumnDef,
|
|
6714
6756
|
Tt as CheckboxModel,
|
|
6715
6757
|
Cs as ChunkData,
|
|
6716
6758
|
at as ColAndRowspanModel,
|
|
6717
6759
|
it as CollapsedExpandedData,
|
|
6718
6760
|
eo as ColorRgb,
|
|
6719
|
-
|
|
6761
|
+
V as ColumnDef,
|
|
6720
6762
|
Vt as ColumnDefGenerator,
|
|
6721
6763
|
Ot as ColumnWidths,
|
|
6722
6764
|
Qe as ConvenienceDomService,
|
|
6723
|
-
|
|
6724
|
-
|
|
6725
|
-
|
|
6765
|
+
q as CopyService,
|
|
6766
|
+
_ as CrudAction,
|
|
6767
|
+
ie as CrudObjectEdit,
|
|
6726
6768
|
$t as CrudObjectView,
|
|
6727
6769
|
_t as CrudOptions,
|
|
6728
6770
|
so as CrudTableModelFactory,
|
|
6729
|
-
|
|
6771
|
+
Se as CssVars,
|
|
6730
6772
|
Ws as DateToIntlDDMMYYYYCellRenderer,
|
|
6731
6773
|
Vs as DateToIsoCellRenderer,
|
|
6732
6774
|
Ns as DateToLocaleDateCellRenderer,
|
|
6733
6775
|
Us as DateToTecCellRenderer,
|
|
6734
|
-
|
|
6776
|
+
z as DefaultRowHeights,
|
|
6735
6777
|
lt as EleScope,
|
|
6736
|
-
|
|
6778
|
+
ne as EventAdapter,
|
|
6737
6779
|
Gt as EventCheckboxChangedHandler,
|
|
6738
6780
|
Rt as ExcelService,
|
|
6739
|
-
|
|
6781
|
+
ve as FalseFn,
|
|
6740
6782
|
xt as FocusModel,
|
|
6741
6783
|
ut as GeCellIndices,
|
|
6742
|
-
|
|
6784
|
+
K as GeCssColorUtil,
|
|
6743
6785
|
_s as GeFilterService,
|
|
6744
6786
|
Ps as GeKeyEvent,
|
|
6745
|
-
|
|
6746
|
-
|
|
6787
|
+
ge as GeModelChangeEvent,
|
|
6788
|
+
he as GeMouseEvent,
|
|
6747
6789
|
L as GeoData,
|
|
6748
6790
|
O as Icon,
|
|
6749
6791
|
vs as IndexAndPx,
|
|
6750
6792
|
wt as InputCellRenderer,
|
|
6751
6793
|
ht as InputHandler,
|
|
6752
|
-
|
|
6753
|
-
|
|
6794
|
+
ye as JsonService,
|
|
6795
|
+
W as LicenseManager,
|
|
6754
6796
|
Gs as MaleFemaleToIconCellRenderer,
|
|
6755
6797
|
tt as MouseHandler,
|
|
6756
6798
|
et as MouseTargetData,
|
|
@@ -6761,18 +6803,18 @@ export {
|
|
|
6761
6803
|
Ue as NumberPropertyType,
|
|
6762
6804
|
D as ObjectPropertyType,
|
|
6763
6805
|
ft as OsxShortcutActionIdMapping,
|
|
6764
|
-
|
|
6765
|
-
|
|
6766
|
-
|
|
6767
|
-
|
|
6768
|
-
|
|
6769
|
-
|
|
6770
|
-
|
|
6771
|
-
|
|
6772
|
-
|
|
6806
|
+
De as PROPERTY_TYPE_KEY_ANY,
|
|
6807
|
+
Le as PROPERTY_TYPE_KEY_ARRAY,
|
|
6808
|
+
de as PROPERTY_TYPE_KEY_BOOLEAN,
|
|
6809
|
+
Pe as PROPERTY_TYPE_KEY_NULL,
|
|
6810
|
+
ce as PROPERTY_TYPE_KEY_NUMBER,
|
|
6811
|
+
U as PROPERTY_TYPE_KEY_OBJECT,
|
|
6812
|
+
Fe as PROPERTY_TYPE_KEY_STRING,
|
|
6813
|
+
j as PROPERTY_TYPE_KEY_UNDEFINED,
|
|
6814
|
+
Me as Padding,
|
|
6773
6815
|
qs as PositiveAndNegativeNumberRenderer,
|
|
6774
6816
|
Js as ProgressBarCellRenderer,
|
|
6775
|
-
|
|
6817
|
+
$e as PropertyItem,
|
|
6776
6818
|
Wt as PropertyTypeService,
|
|
6777
6819
|
ct as RenderScope,
|
|
6778
6820
|
Bs as Renderer,
|
|
@@ -6780,14 +6822,14 @@ export {
|
|
|
6780
6822
|
vt as ResizeHandler,
|
|
6781
6823
|
Nt as SchemeGenerator,
|
|
6782
6824
|
Ne as SelectCellRenderer,
|
|
6783
|
-
|
|
6825
|
+
fe as SelectionModel,
|
|
6784
6826
|
pt as SelectionService,
|
|
6785
6827
|
bt as ShortcutService,
|
|
6786
6828
|
Xs as SimpleArrayCellRenderer,
|
|
6787
6829
|
yt as SimpleDomService,
|
|
6788
6830
|
y as Size,
|
|
6789
6831
|
dt as SortItem,
|
|
6790
|
-
|
|
6832
|
+
Be as SortedOptions,
|
|
6791
6833
|
Ks as StarRatingCellRenderer,
|
|
6792
6834
|
rt as StoreStateCollapsedExpandService,
|
|
6793
6835
|
ot as StoreStateScrollPosService,
|
|
@@ -6795,22 +6837,22 @@ export {
|
|
|
6795
6837
|
je as StringPropertyType,
|
|
6796
6838
|
st as TableApi,
|
|
6797
6839
|
Fs as TableCellUpdateEvent,
|
|
6798
|
-
|
|
6799
|
-
|
|
6840
|
+
B as TableFactory,
|
|
6841
|
+
oe as TableModel,
|
|
6800
6842
|
It as TableModelAndOptions,
|
|
6801
|
-
|
|
6843
|
+
J as TableOptions,
|
|
6802
6844
|
Ve as TableScope,
|
|
6803
6845
|
to as ThreeColorGradientArg,
|
|
6804
|
-
|
|
6805
|
-
|
|
6806
|
-
|
|
6807
|
-
|
|
6846
|
+
Ee as TreeCheckboxModel,
|
|
6847
|
+
le as TreeFactory,
|
|
6848
|
+
_e as TreeOptions,
|
|
6849
|
+
Ce as TreeRow,
|
|
6808
6850
|
Mt as TreeRowService,
|
|
6809
6851
|
js as TrueFalseCellRenderer,
|
|
6810
6852
|
At as TrueFn,
|
|
6811
|
-
|
|
6812
|
-
|
|
6813
|
-
|
|
6853
|
+
ke as TwoColorGradientArg,
|
|
6854
|
+
X as UNIMPORTANT_TYPES,
|
|
6855
|
+
se as UndefinedPropertyType,
|
|
6814
6856
|
oo as UrlInfo,
|
|
6815
6857
|
Ke as ValueInfo,
|
|
6816
6858
|
Dt as ValueLabel,
|
|
@@ -6822,17 +6864,17 @@ export {
|
|
|
6822
6864
|
As as bodyCenter,
|
|
6823
6865
|
Rs as bodyLeft,
|
|
6824
6866
|
Es as bodyRight,
|
|
6825
|
-
|
|
6867
|
+
xe as createHarmonizedShortcutByKeyboardEvent,
|
|
6826
6868
|
Ge as debounce,
|
|
6827
6869
|
Zs as editInputPipeForNumber,
|
|
6828
|
-
|
|
6870
|
+
we as entitySuffix,
|
|
6829
6871
|
qe as firstLetterUppercase,
|
|
6830
|
-
|
|
6872
|
+
ee as getAreaIdentByString,
|
|
6831
6873
|
Xe as getEntityName,
|
|
6832
6874
|
mt as harmonizeShortcut,
|
|
6833
|
-
|
|
6875
|
+
re as isAreaModelTree,
|
|
6834
6876
|
Ze as isCheckboxColumnDef,
|
|
6835
|
-
|
|
6877
|
+
G as isTreeRow,
|
|
6836
6878
|
xs as px0,
|
|
6837
6879
|
ws as px10,
|
|
6838
6880
|
ds as px100,
|
|
@@ -6846,7 +6888,7 @@ export {
|
|
|
6846
6888
|
ss as px180,
|
|
6847
6889
|
ts as px190,
|
|
6848
6890
|
ys as px20,
|
|
6849
|
-
|
|
6891
|
+
Re as px200,
|
|
6850
6892
|
es as px210,
|
|
6851
6893
|
Qt as px220,
|
|
6852
6894
|
Zt as px230,
|