@guiexpert/demo-table-models 1.0.9 → 1.0.10
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 +35 -16
- package/index.d.ts +1 -0
- package/index.js +397 -298
- package/lib/createLargeModel.d.ts +13 -0
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
function
|
|
1
|
+
function $(s) {
|
|
2
2
|
return s && s.type === "TreeRow";
|
|
3
3
|
}
|
|
4
4
|
function be(s) {
|
|
@@ -76,14 +76,14 @@ class S {
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
class Te {
|
|
79
|
-
render(e, r, a, t, n, m,
|
|
79
|
+
render(e, r, a, t, n, m, i) {
|
|
80
80
|
if (n.isEditable(r, a)) {
|
|
81
|
-
|
|
82
|
-
const
|
|
81
|
+
i.addClass(e, "ge-table-row-input-div");
|
|
82
|
+
const d = n.getValueAt(r, a);
|
|
83
83
|
e.innerHTML = `
|
|
84
84
|
<input
|
|
85
85
|
type="text"
|
|
86
|
-
value="${
|
|
86
|
+
value="${d}"
|
|
87
87
|
autofocus
|
|
88
88
|
onfocus="this.setSelectionRange(0, this.value.length)"
|
|
89
89
|
data-listen="change"
|
|
@@ -96,7 +96,7 @@ class Te {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
-
class
|
|
99
|
+
class q {
|
|
100
100
|
constructor(e = "none", r = "single") {
|
|
101
101
|
this.selectionType = e, this.selectionMode = r, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
|
|
102
102
|
}
|
|
@@ -163,8 +163,8 @@ class oe {
|
|
|
163
163
|
return [this.rowIndex, this.columnIndex];
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
|
-
const he = new
|
|
167
|
-
class
|
|
166
|
+
const he = new q(), Se = new oe("cell");
|
|
167
|
+
class Z {
|
|
168
168
|
constructor() {
|
|
169
169
|
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 = {
|
|
170
170
|
header: 34,
|
|
@@ -173,9 +173,9 @@ class w {
|
|
|
173
173
|
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ne(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new fe(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, r) => new Te(), this.getSelectionModel = () => he, this.getFocusModel = () => Se;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
class
|
|
177
|
-
constructor(e, r = !0, a, t, n = 0, m = !1,
|
|
178
|
-
this.data = e, this.expanded = r, this.children = a, this.parent = t, this.deep = n, this.checked = m, this.keep =
|
|
176
|
+
class Q {
|
|
177
|
+
constructor(e, r = !0, a, t, n = 0, m = !1, i = !1) {
|
|
178
|
+
this.data = e, this.expanded = r, this.children = a, this.parent = t, this.deep = n, this.checked = m, this.keep = i, this.type = "TreeRow";
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
class A {
|
|
@@ -185,16 +185,16 @@ class A {
|
|
|
185
185
|
t.push(A.buildTreeRow(n, r, void 0, 0, a));
|
|
186
186
|
return t;
|
|
187
187
|
}
|
|
188
|
-
static buildTreeRow(e, r = "children", a = new
|
|
189
|
-
var
|
|
188
|
+
static buildTreeRow(e, r = "children", a = new Q(e, !0, [], void 0, 0), t = 0, n = 12) {
|
|
189
|
+
var i;
|
|
190
190
|
if (t > n)
|
|
191
191
|
return console.warn("Max deep limit reached: ", t), a;
|
|
192
192
|
const m = e[r];
|
|
193
193
|
if (m)
|
|
194
|
-
for (const
|
|
195
|
-
const p = new
|
|
196
|
-
if ((
|
|
197
|
-
|
|
194
|
+
for (const d of m) {
|
|
195
|
+
const p = new Q(d, !0, [], a, t + 1);
|
|
196
|
+
if ((i = a.children) == null || i.push(p), A.buildTreeRow(
|
|
197
|
+
d,
|
|
198
198
|
r,
|
|
199
199
|
p,
|
|
200
200
|
t + 1
|
|
@@ -214,10 +214,10 @@ class u {
|
|
|
214
214
|
this.value = e, this.unit = r;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
const f = () => !0,
|
|
217
|
+
const f = () => !0, U = () => !1;
|
|
218
218
|
class y {
|
|
219
|
-
constructor(e, r, a = new u(100, "px"), t = new S(), n = new S(), m = new u(100, "px"),
|
|
220
|
-
this.property = e, this.headerLabel = r, this.width = a, this.classes = t, this.rendererMap = n, this.minWidth = m, this.maxWidth =
|
|
219
|
+
constructor(e, r, a = new u(100, "px"), t = new S(), n = new S(), m = new u(100, "px"), i = new u(100, "px"), d, p, l, c, b, P, w, x, g = () => this.visible) {
|
|
220
|
+
this.property = e, this.headerLabel = r, this.width = a, this.classes = t, this.rendererMap = n, this.minWidth = m, this.maxWidth = i, this.sortable = d, this.sortComparator = p, this.sortState = l, this.sortStatesOrder = c, this.sortIconVisible = b, this.editable = P, this.getEditRenderer = w, this.editInputPipe = x, this.isVisible = g, this.visible = !0;
|
|
221
221
|
}
|
|
222
222
|
static bodyRenderer(e) {
|
|
223
223
|
return new S(
|
|
@@ -235,7 +235,7 @@ class y {
|
|
|
235
235
|
e.headerClasses,
|
|
236
236
|
e.bodyClasses,
|
|
237
237
|
e.footerClasses
|
|
238
|
-
), t = e.sortIconVisible ?? e.sortable ??
|
|
238
|
+
), t = e.sortIconVisible ?? e.sortable ?? U, n = e.editable ?? e.editable ?? U, m = e.isVisible ?? e.isVisible ?? f;
|
|
239
239
|
return new y(
|
|
240
240
|
e.property ?? "",
|
|
241
241
|
e.headerLabel ?? "",
|
|
@@ -256,8 +256,8 @@ class y {
|
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
|
-
const Ce = new u(300, "px"), Pe = new u(250, "px"), Le = new u(220, "px"),
|
|
260
|
-
class
|
|
259
|
+
const Ce = new u(300, "px"), Pe = new u(250, "px"), Le = new u(220, "px"), D = new u(200, "px"), Ge = new u(160, "px"), ye = new u(150, "px"), ue = new u(140, "px"), z = new u(120, "px"), G = new u(100, "px"), ze = new u(90, "px"), Ze = new u(80, "px"), we = new u(70, "px"), I = new u(60, "px"), xe = new u(50, "px");
|
|
260
|
+
class X {
|
|
261
261
|
constructor(e, r = [], a = -1) {
|
|
262
262
|
this.areaIdent = e, this.columnDefs = r, this.defaultRowHeight = a, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = r.map((t) => t.rendererMap[e]);
|
|
263
263
|
}
|
|
@@ -317,8 +317,8 @@ class j {
|
|
|
317
317
|
return this.columnDefs && r < this.columnDefs.length && this.columnDefs[r].editable ? this.columnDefs[r].editable() : !1;
|
|
318
318
|
}
|
|
319
319
|
setValue(e, r, a) {
|
|
320
|
-
var
|
|
321
|
-
const t = (
|
|
320
|
+
var i;
|
|
321
|
+
const t = (i = this.columnDefs[r]) == null ? void 0 : i.editInputPipe;
|
|
322
322
|
t && (a = t(a, e, r));
|
|
323
323
|
const n = this.getRowByIndex(e), m = this.columnDefs[r].property;
|
|
324
324
|
return m.includes(".") ? this.setPropertyValue(n, m.split("."), a) : (n[m] = a, !0);
|
|
@@ -348,7 +348,7 @@ class j {
|
|
|
348
348
|
this.yPositions[r + 1] = this.getRowHeight(r) + this.yPositions[r];
|
|
349
349
|
}
|
|
350
350
|
}
|
|
351
|
-
class o extends
|
|
351
|
+
class o extends X {
|
|
352
352
|
constructor(e, r, a, t = []) {
|
|
353
353
|
super(e, t, a), this.areaIdent = e, this.arr = r, this.defaultRowHeight = a, this.columnDefs = t, this.filteredArr = [...r];
|
|
354
354
|
}
|
|
@@ -456,7 +456,7 @@ class ke {
|
|
|
456
456
|
return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
class
|
|
459
|
+
class pe {
|
|
460
460
|
genericSortComparator(e, r, a) {
|
|
461
461
|
if (typeof e == "number" && typeof r == "number")
|
|
462
462
|
return a * (e - r);
|
|
@@ -474,9 +474,9 @@ class ue {
|
|
|
474
474
|
return a * ("" + e).localeCompare("" + r);
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
class
|
|
477
|
+
class ee extends X {
|
|
478
478
|
constructor(e, r, a, t = []) {
|
|
479
|
-
super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.type = "AreaModelTree", this.sorterService = new
|
|
479
|
+
super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.type = "AreaModelTree", this.sorterService = new pe(), this.service = new ke(), this.properties = t.map((n) => n.property), this.flattenRows = this.service.flattenTree(r), this.filteredFlattenRows = [...this.flattenRows];
|
|
480
480
|
}
|
|
481
481
|
changeColumnOrder(e, r) {
|
|
482
482
|
this.arrayMove(this.properties, e, r), super.changeColumnOrder(e, r);
|
|
@@ -533,8 +533,8 @@ class Q extends j {
|
|
|
533
533
|
t && (a = t(a, e, r));
|
|
534
534
|
const n = this.getRowByIndex(e);
|
|
535
535
|
if (n) {
|
|
536
|
-
const
|
|
537
|
-
return
|
|
536
|
+
const i = n.data, d = this.columnDefs[r].property;
|
|
537
|
+
return d.includes(".") ? this.setPropertyValue(i, d.split("."), a) : (i[d] = a, !0);
|
|
538
538
|
}
|
|
539
539
|
return !1;
|
|
540
540
|
}
|
|
@@ -578,7 +578,7 @@ class Q extends j {
|
|
|
578
578
|
t.children && this.treeSort(t.children, r, a);
|
|
579
579
|
}
|
|
580
580
|
}
|
|
581
|
-
class
|
|
581
|
+
class re {
|
|
582
582
|
constructor(e = []) {
|
|
583
583
|
this.allRootNodes = e;
|
|
584
584
|
}
|
|
@@ -638,7 +638,7 @@ class ee {
|
|
|
638
638
|
a.checked && r.push(a), a.children && this.addSelectedRecursive(a.children, r);
|
|
639
639
|
}
|
|
640
640
|
}
|
|
641
|
-
class
|
|
641
|
+
class ae {
|
|
642
642
|
constructor(e = 0, r = 0, a = 0, t = 0) {
|
|
643
643
|
this.top = e, this.right = r, this.bottom = a, this.left = t;
|
|
644
644
|
}
|
|
@@ -674,11 +674,11 @@ class ve {
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
class
|
|
678
|
-
constructor(e, r, a, t = 0, n = 0, m = !1,
|
|
677
|
+
class V {
|
|
678
|
+
constructor(e, r, a, t = 0, n = 0, m = !1, i = new v(), d = [], p = [], l = -1, c = 0, b = 400, P = () => {
|
|
679
679
|
}) {
|
|
680
|
-
var
|
|
681
|
-
this.headerAreaModel = e, this.bodyAreaModel = r, this.footerAreaModel = a, this.fixedLeftColumnCount = t, this.fixedRightColumnCount = n, this.rowCheckboxVisible = m, this.defaultRowHeights =
|
|
680
|
+
var w, x, g, O;
|
|
681
|
+
this.headerAreaModel = e, this.bodyAreaModel = r, this.footerAreaModel = a, this.fixedLeftColumnCount = t, this.fixedRightColumnCount = n, this.rowCheckboxVisible = m, this.defaultRowHeights = i, this.columnDefs = d, this.columnSizes = p, this.overridingColumnWidth = l, this.columnCount = c, this.parentSize = b, this.getSelectionModel = P, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ae(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", r.areaIdent = "body", a.areaIdent = "footer", this.columnCount || ((w = this.columnDefs) != null && w.length ? this.columnCount = this.columnDefs.length : (x = this.columnSizes) != null && x.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (O = this.columnDefs) != null && O.length && be(this.columnDefs[0]) && !r.rowSelectionModel && (r.rowSelectionModel = new ve());
|
|
682
682
|
}
|
|
683
683
|
init() {
|
|
684
684
|
this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
|
|
@@ -759,7 +759,7 @@ class _ {
|
|
|
759
759
|
*/
|
|
760
760
|
recalcPadding() {
|
|
761
761
|
const e = this.getSideAreaWidth("west"), r = this.getSideAreaWidth("east"), a = this.getAreaHeight("header"), t = this.getAreaHeight("footer");
|
|
762
|
-
this.padding = new
|
|
762
|
+
this.padding = new ae(
|
|
763
763
|
a,
|
|
764
764
|
r,
|
|
765
765
|
t,
|
|
@@ -997,12 +997,12 @@ class _ {
|
|
|
997
997
|
if (n.width.unit === "%" && e) {
|
|
998
998
|
let m = Math.floor(n.width.value * e / 100);
|
|
999
999
|
if (n.minWidth) {
|
|
1000
|
-
let
|
|
1001
|
-
m = Math.max(
|
|
1000
|
+
let i = n.minWidth.unit === "px" ? n.minWidth.value : Math.floor(n.minWidth.value * e / 100);
|
|
1001
|
+
m = Math.max(i, m);
|
|
1002
1002
|
}
|
|
1003
1003
|
if (n.maxWidth) {
|
|
1004
|
-
let
|
|
1005
|
-
m = Math.min(
|
|
1004
|
+
let i = n.maxWidth.unit === "px" ? n.maxWidth.value : Math.floor(n.maxWidth.value * e / 100);
|
|
1005
|
+
m = Math.min(i, m);
|
|
1006
1006
|
}
|
|
1007
1007
|
return m;
|
|
1008
1008
|
}
|
|
@@ -1023,9 +1023,9 @@ class _ {
|
|
|
1023
1023
|
this.xPositions[r + 1] = this.getColumnWidth(r) + this.xPositions[r];
|
|
1024
1024
|
}
|
|
1025
1025
|
}
|
|
1026
|
-
class Re extends
|
|
1026
|
+
class Re extends X {
|
|
1027
1027
|
constructor(e, r, a, t = []) {
|
|
1028
|
-
super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.sorterService = new
|
|
1028
|
+
super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.sorterService = new pe(), this.filteredRows = [...r], this.properties = t.map((n) => n.property);
|
|
1029
1029
|
}
|
|
1030
1030
|
getRowCount() {
|
|
1031
1031
|
var e;
|
|
@@ -1034,7 +1034,7 @@ class Re extends j {
|
|
|
1034
1034
|
getValueAt(e, r) {
|
|
1035
1035
|
const a = this.properties[r];
|
|
1036
1036
|
let t = this.filteredRows[e];
|
|
1037
|
-
return
|
|
1037
|
+
return $(t) && (t = t.data), t ? this.getValueByT(t, a) : "";
|
|
1038
1038
|
}
|
|
1039
1039
|
getFilteredRows() {
|
|
1040
1040
|
return this.filteredRows;
|
|
@@ -1076,7 +1076,7 @@ class Re extends j {
|
|
|
1076
1076
|
return t && r.length ? this.getPropertyValue(t, r) : t;
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
|
-
class
|
|
1079
|
+
class B extends Re {
|
|
1080
1080
|
constructor(e, r, a, t) {
|
|
1081
1081
|
super(
|
|
1082
1082
|
e,
|
|
@@ -1088,7 +1088,7 @@ class I extends Re {
|
|
|
1088
1088
|
}
|
|
1089
1089
|
class N {
|
|
1090
1090
|
static createTableModel(e) {
|
|
1091
|
-
var r, a, t, n, m,
|
|
1091
|
+
var r, a, t, n, m, i, d, p, l, c, b, P, w, x;
|
|
1092
1092
|
if (e.defaultRowHeights === void 0)
|
|
1093
1093
|
if ((r = e.tableOptions) != null && r.defaultRowHeights)
|
|
1094
1094
|
e.defaultRowHeights = e.tableOptions.defaultRowHeights;
|
|
@@ -1106,7 +1106,7 @@ class N {
|
|
|
1106
1106
|
g > -1 && (e.defaultRowHeights.footer = g);
|
|
1107
1107
|
}
|
|
1108
1108
|
}
|
|
1109
|
-
if (e.columnDefs === void 0 && ((a = e.properties) != null && a.length ? e.columnDefs = e.properties.map((g) => new y(g, g.toUpperCase(),
|
|
1109
|
+
if (e.columnDefs === void 0 && ((a = e.properties) != null && a.length ? e.columnDefs = e.properties.map((g) => new y(g, g.toUpperCase(), D)) : (t = e.rows) != null && t.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new y(g, g.toUpperCase(), D)) : e.columnDefs = []), e.columnCount === void 0 && ((n = e.columnDefs) != null && n.length ? e.columnCount = e.columnDefs.length : (m = e.headerData) != null && m.length ? e.columnCount = e.headerData[0].length : (i = e.columnSizes) != null && i.length ? e.columnCount = (d = e.columnSizes) == null ? void 0 : d.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((p = e.headerData) != null && p.length ? e.headerAreaModel = new o(
|
|
1110
1110
|
"header",
|
|
1111
1111
|
e.headerData,
|
|
1112
1112
|
e.defaultRowHeights.header,
|
|
@@ -1123,16 +1123,16 @@ class N {
|
|
|
1123
1123
|
e.columnDefs
|
|
1124
1124
|
) : e.footerAreaModel = new L("footer")), !e.bodyAreaModel)
|
|
1125
1125
|
if (e.rows)
|
|
1126
|
-
if ((b = e.rows) != null && b.length &&
|
|
1126
|
+
if ((b = e.rows) != null && b.length && $(e.rows[0])) {
|
|
1127
1127
|
const g = e.rows;
|
|
1128
|
-
e.bodyAreaModel = new
|
|
1128
|
+
e.bodyAreaModel = new ee(
|
|
1129
1129
|
"body",
|
|
1130
1130
|
g,
|
|
1131
1131
|
e.defaultRowHeights.body,
|
|
1132
1132
|
e.columnDefs
|
|
1133
|
-
), (e.columnDefs[0].property === "CheckboxColumn" || (P = e.tableOptions) != null && P.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new
|
|
1133
|
+
), (e.columnDefs[0].property === "CheckboxColumn" || (P = e.tableOptions) != null && P.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new re(g));
|
|
1134
1134
|
} else
|
|
1135
|
-
e.bodyAreaModel = new
|
|
1135
|
+
e.bodyAreaModel = new B(
|
|
1136
1136
|
"body",
|
|
1137
1137
|
e.rows,
|
|
1138
1138
|
e.columnDefs,
|
|
@@ -1144,7 +1144,7 @@ class N {
|
|
|
1144
1144
|
e.bodyData,
|
|
1145
1145
|
e.defaultRowHeights.body
|
|
1146
1146
|
) : e.bodyAreaModel = new L("body");
|
|
1147
|
-
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 && ((
|
|
1147
|
+
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 && ((w = e.tableOptions) != null && w.getSelectionModel) && (e.getSelectionModel = (x = e.tableOptions) == null ? void 0 : x.getSelectionModel), new V(
|
|
1148
1148
|
e.headerAreaModel,
|
|
1149
1149
|
e.bodyAreaModel,
|
|
1150
1150
|
e.footerAreaModel,
|
|
@@ -1164,21 +1164,21 @@ class N {
|
|
|
1164
1164
|
return N.buildByTypedRows(
|
|
1165
1165
|
e.rows ?? [],
|
|
1166
1166
|
e.columnDefs,
|
|
1167
|
-
e.tableOptions ?? new
|
|
1167
|
+
e.tableOptions ?? new Z(),
|
|
1168
1168
|
e.fixedLeftColumnCount ?? 0,
|
|
1169
1169
|
e.fixedRightColumnCount ?? 0
|
|
1170
1170
|
);
|
|
1171
1171
|
}
|
|
1172
|
-
static buildByTypedRows(e, r, a = new
|
|
1173
|
-
const m = a.defaultRowHeights,
|
|
1174
|
-
if (e != null && e.length &&
|
|
1175
|
-
const
|
|
1172
|
+
static buildByTypedRows(e, r, a = new Z(), t = 0, n = 0) {
|
|
1173
|
+
const m = a.defaultRowHeights, i = r[0].property === "CheckboxColumn";
|
|
1174
|
+
if (e != null && e.length && $(e[0])) {
|
|
1175
|
+
const d = e, p = new ee(
|
|
1176
1176
|
"body",
|
|
1177
|
-
|
|
1177
|
+
d,
|
|
1178
1178
|
m.body,
|
|
1179
1179
|
r
|
|
1180
1180
|
);
|
|
1181
|
-
return (
|
|
1181
|
+
return (i || a.showCheckboxWihoutExtraColumn) && (p.rowSelectionModel = new re(d)), N.createByAreaModelsParam({
|
|
1182
1182
|
headerAreaModel: new o("header", [r.map((l) => l.headerLabel)], m.header),
|
|
1183
1183
|
bodyAreaModel: p,
|
|
1184
1184
|
footerAreaModel: new o("footer", [], m.footer),
|
|
@@ -1214,16 +1214,16 @@ class N {
|
|
|
1214
1214
|
e.columnSizes ?? []
|
|
1215
1215
|
);
|
|
1216
1216
|
}
|
|
1217
|
-
static createByAreaModels(e = new L(), r, a = new L(), t = 0, n = 0, m = !1,
|
|
1218
|
-
return new
|
|
1217
|
+
static createByAreaModels(e = new L(), r, a = new L(), t = 0, n = 0, m = !1, i = new v(), d, p = [], l = -1, c) {
|
|
1218
|
+
return new V(
|
|
1219
1219
|
e,
|
|
1220
1220
|
r,
|
|
1221
1221
|
a,
|
|
1222
1222
|
t,
|
|
1223
1223
|
n,
|
|
1224
1224
|
m,
|
|
1225
|
-
d,
|
|
1226
1225
|
i,
|
|
1226
|
+
d,
|
|
1227
1227
|
p,
|
|
1228
1228
|
l,
|
|
1229
1229
|
c
|
|
@@ -1244,29 +1244,29 @@ class N {
|
|
|
1244
1244
|
e.columnCount ?? 0
|
|
1245
1245
|
);
|
|
1246
1246
|
}
|
|
1247
|
-
static createByObjectArray(e, r = [], a = [], t = 0, n = 0, m = !1,
|
|
1247
|
+
static createByObjectArray(e, r = [], a = [], t = 0, n = 0, m = !1, i = new v(), d, p = []) {
|
|
1248
1248
|
let l;
|
|
1249
|
-
r != null && r.length ? l = new o("header", r,
|
|
1250
|
-
const c = a ? new o("footer", a,
|
|
1251
|
-
return new
|
|
1249
|
+
r != null && r.length ? l = new o("header", r, i.header, d) : d != null && d.length ? l = new o("header", [d.map((P) => P.headerLabel)], i.header, d) : l = new L();
|
|
1250
|
+
const c = a ? new o("footer", a, i.footer, d) : new L(), b = new B("body", e, d, i.body);
|
|
1251
|
+
return new V(
|
|
1252
1252
|
l,
|
|
1253
1253
|
b,
|
|
1254
1254
|
c,
|
|
1255
1255
|
t,
|
|
1256
1256
|
n,
|
|
1257
1257
|
m,
|
|
1258
|
-
d,
|
|
1259
1258
|
i,
|
|
1259
|
+
d,
|
|
1260
1260
|
p
|
|
1261
1261
|
);
|
|
1262
1262
|
}
|
|
1263
1263
|
}
|
|
1264
|
-
class
|
|
1264
|
+
class H {
|
|
1265
1265
|
constructor(e, r) {
|
|
1266
1266
|
this.tableModel = e, this.tableOptions = r;
|
|
1267
1267
|
}
|
|
1268
1268
|
}
|
|
1269
|
-
class
|
|
1269
|
+
class W {
|
|
1270
1270
|
constructor(e, r) {
|
|
1271
1271
|
this.value = e, this.label = r;
|
|
1272
1272
|
}
|
|
@@ -1387,8 +1387,8 @@ class De extends Ue {
|
|
|
1387
1387
|
colCount:${t}
|
|
1388
1388
|
rowSpan:${n}
|
|
1389
1389
|
pc:${m}`.replace(/[ \n]+/g, " ")), this.children)
|
|
1390
|
-
for (const
|
|
1391
|
-
|
|
1390
|
+
for (const i of this.children)
|
|
1391
|
+
i.log(e);
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
1394
|
class h {
|
|
@@ -1424,8 +1424,8 @@ class h {
|
|
|
1424
1424
|
static buildGroupExts(e, r = [], a = 0, t) {
|
|
1425
1425
|
let n;
|
|
1426
1426
|
for (let m = 0; m < e.length; m++) {
|
|
1427
|
-
const
|
|
1428
|
-
n && (
|
|
1427
|
+
const i = e[m], d = new De(i, a, m, t);
|
|
1428
|
+
n && (d.leftNeighbour = n, n.rightNeighbour = d), r.push(d), i.children && (d.children = h.buildGroupExts(i.children, [], a + 1, d)), n = d;
|
|
1429
1429
|
}
|
|
1430
1430
|
return r;
|
|
1431
1431
|
}
|
|
@@ -1447,15 +1447,15 @@ class h {
|
|
|
1447
1447
|
for (const m of e) {
|
|
1448
1448
|
if (m.rowIndex <= t) {
|
|
1449
1449
|
a++;
|
|
1450
|
-
for (let
|
|
1451
|
-
r[
|
|
1450
|
+
for (let i = 0; i < r.length; i++)
|
|
1451
|
+
r[i][a] = null;
|
|
1452
1452
|
}
|
|
1453
1453
|
if (r[m.rowIndex][a] = m, t = m.rowIndex, m.ownColumn() && ((n = m.children) != null && n.length)) {
|
|
1454
|
-
for (let
|
|
1455
|
-
r[
|
|
1454
|
+
for (let i = m.rowIndex + 1; i < r.length; i++)
|
|
1455
|
+
r[i][a] = void 0;
|
|
1456
1456
|
a++;
|
|
1457
|
-
for (let
|
|
1458
|
-
r[
|
|
1457
|
+
for (let i = 0; i < r.length; i++)
|
|
1458
|
+
r[i][a] = null;
|
|
1459
1459
|
}
|
|
1460
1460
|
}
|
|
1461
1461
|
return r;
|
|
@@ -1466,7 +1466,7 @@ class h {
|
|
|
1466
1466
|
e.push(t.data + " rowIndex:" + t.rowIndex), (a = t.children) != null && a.length && h.iterateThrowColumns(e, t.children);
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
class
|
|
1469
|
+
class K {
|
|
1470
1470
|
constructor() {
|
|
1471
1471
|
this.areaIdent = "body", this.rowSelectionModel = void 0;
|
|
1472
1472
|
}
|
|
@@ -1533,16 +1533,16 @@ class pe {
|
|
|
1533
1533
|
return !1;
|
|
1534
1534
|
}
|
|
1535
1535
|
}
|
|
1536
|
-
class
|
|
1537
|
-
render(e, r, a, t, n, m,
|
|
1538
|
-
const
|
|
1539
|
-
e.innerHTML = `${
|
|
1536
|
+
class Me {
|
|
1537
|
+
render(e, r, a, t, n, m, i) {
|
|
1538
|
+
const d = m != null && m.data ? m.data : "";
|
|
1539
|
+
e.innerHTML = `${d}`;
|
|
1540
1540
|
}
|
|
1541
1541
|
}
|
|
1542
|
-
class
|
|
1542
|
+
class Ie {
|
|
1543
1543
|
constructor(e = "header", r, a = [], t) {
|
|
1544
1544
|
var n;
|
|
1545
|
-
this.areaIdent = e, this.groups = r, this.columnDefs = a, this.defaultRowHeight = t, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new
|
|
1545
|
+
this.areaIdent = e, this.groups = r, this.columnDefs = a, this.defaultRowHeight = t, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new Me(), this.groupExts = h.buildGroupExts(r), console.info(this.groupExts), console.info(this.getAllLeafs()), console.info(this.getMaxRowCount());
|
|
1546
1546
|
for (const m of this.groupExts)
|
|
1547
1547
|
m.log(this.getMaxRowCount());
|
|
1548
1548
|
this.arr = this.buildArray(), !((n = this.columnDefs) != null && n.length) && e === "header" && (this.columnDefs = h.buildColumnDefs(r)), console.info("this.columnDefs", this.columnDefs), console.info("this.arr", this.arr);
|
|
@@ -1557,11 +1557,11 @@ class Me {
|
|
|
1557
1557
|
buildArray() {
|
|
1558
1558
|
console.info("");
|
|
1559
1559
|
let e = h.flattenGroupExts(this.groupExts);
|
|
1560
|
-
const r = e.length, a = 1 + Math.max(...e.map((
|
|
1560
|
+
const r = e.length, a = 1 + Math.max(...e.map((i) => i.rowIndex));
|
|
1561
1561
|
console.info("max row/col:", a + "/" + r);
|
|
1562
1562
|
const t = [];
|
|
1563
1563
|
h.iterateThrowColumns(t, this.groupExts), console.info(t);
|
|
1564
|
-
const n = Array.from(Array(a).keys()).map((
|
|
1564
|
+
const n = Array.from(Array(a).keys()).map((i) => []);
|
|
1565
1565
|
let m = h.buildArrayOfArrays(e, n);
|
|
1566
1566
|
return console.table(m), m;
|
|
1567
1567
|
}
|
|
@@ -1646,11 +1646,11 @@ class _e {
|
|
|
1646
1646
|
constructor(e, r = !0, a = !1) {
|
|
1647
1647
|
this.property = e, this.skipCheckableCheck = r, this.readonly = a;
|
|
1648
1648
|
}
|
|
1649
|
-
render(e, r, a, t, n, m,
|
|
1649
|
+
render(e, r, a, t, n, m, i) {
|
|
1650
1650
|
if (this.readonly || this.skipCheckableCheck || n.isRowCheckable(r)) {
|
|
1651
|
-
|
|
1652
|
-
const
|
|
1653
|
-
if (
|
|
1651
|
+
i.addClass(e, "ge-table-row-checkbox-div");
|
|
1652
|
+
const d = n.getRowByIndex(r), l = n.getValueByT(d, this.property) === !0 ? "checked" : "", c = this.readonly ? " readonly " : "";
|
|
1653
|
+
if (i.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
|
|
1654
1654
|
<input
|
|
1655
1655
|
type="checkbox"
|
|
1656
1656
|
data-area="${t}"
|
|
@@ -1662,12 +1662,12 @@ class _e {
|
|
|
1662
1662
|
${c}
|
|
1663
1663
|
class="ge-input-checkbox">`, !this.readonly) {
|
|
1664
1664
|
const b = e.querySelector(".ge-input-checkbox");
|
|
1665
|
-
b && b.addEventListener("click", (P,
|
|
1665
|
+
b && b.addEventListener("click", (P, w) => (d[this.property] = !d[this.property], !0));
|
|
1666
1666
|
}
|
|
1667
1667
|
}
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
|
-
class
|
|
1670
|
+
class Y {
|
|
1671
1671
|
constructor() {
|
|
1672
1672
|
this.formatter = new Intl.DateTimeFormat("de-DE", {
|
|
1673
1673
|
year: "numeric",
|
|
@@ -1675,51 +1675,81 @@ class K {
|
|
|
1675
1675
|
day: "2-digit"
|
|
1676
1676
|
});
|
|
1677
1677
|
}
|
|
1678
|
-
render(e, r, a, t, n, m,
|
|
1678
|
+
render(e, r, a, t, n, m, i) {
|
|
1679
1679
|
if (m) {
|
|
1680
|
-
let
|
|
1680
|
+
let d = "";
|
|
1681
1681
|
try {
|
|
1682
|
-
|
|
1682
|
+
d = this.formatter.format(new Date(m));
|
|
1683
1683
|
} catch {
|
|
1684
|
-
|
|
1684
|
+
d = m;
|
|
1685
1685
|
}
|
|
1686
1686
|
e.innerHTML = `
|
|
1687
1687
|
<div class="ge-table-label-div" data-row-index="${r}" data-col-index="${a}" data-area="${t}" style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
1688
|
-
<div class="ge-table-label" data-row-index="${r}" data-col-index="${a}" data-area="${t}">${
|
|
1688
|
+
<div class="ge-table-label" data-row-index="${r}" data-col-index="${a}" data-area="${t}">${d}</div>
|
|
1689
1689
|
</div>`;
|
|
1690
1690
|
}
|
|
1691
1691
|
}
|
|
1692
1692
|
}
|
|
1693
1693
|
class le {
|
|
1694
|
-
render(e, r, a, t, n, m,
|
|
1694
|
+
render(e, r, a, t, n, m, i) {
|
|
1695
1695
|
m === "male" || m === "m" ? e.innerText = "♂" : (m === "female" || m === "f") && (e.innerText = "♀");
|
|
1696
1696
|
}
|
|
1697
1697
|
}
|
|
1698
1698
|
class qe {
|
|
1699
|
-
|
|
1700
|
-
|
|
1699
|
+
constructor(e = 100, r = !1) {
|
|
1700
|
+
this.maxValue = e, this.labelVisible = r;
|
|
1701
|
+
}
|
|
1702
|
+
render(e, r, a, t, n, m, i) {
|
|
1703
|
+
if (i.addClass(e, "ge-progressbar-div"), !isNaN(m)) {
|
|
1704
|
+
const p = Number(m) * 100 / this.maxValue, l = this.labelVisible ? Math.round(p) + "%" : "";
|
|
1705
|
+
e.innerHTML = `
|
|
1706
|
+
<div class="ge-table-label-div"
|
|
1707
|
+
data-row-index="${r}"
|
|
1708
|
+
data-col-index="${a}"
|
|
1709
|
+
data-area="${t}"
|
|
1710
|
+
title="${l}"
|
|
1711
|
+
style="position: relative; background: transparent; width: 100%; height: 100%;">
|
|
1712
|
+
<div class="ge-table-progress-container"
|
|
1713
|
+
style="width:100%;height:50%;padding:0;margin-top:6px;"
|
|
1714
|
+
data-row-index="${r}"
|
|
1715
|
+
data-col-index="${a}"
|
|
1716
|
+
data-area="${t}">
|
|
1717
|
+
<div class="ge-table-progress-bar"
|
|
1718
|
+
style="width:${p}%;height:100%;padding:0;margin:0;"
|
|
1719
|
+
data-row-index="${r}"
|
|
1720
|
+
data-col-index="${a}"
|
|
1721
|
+
data-area="${t}">
|
|
1722
|
+
</div>
|
|
1723
|
+
</div>
|
|
1724
|
+
</div>`;
|
|
1725
|
+
}
|
|
1701
1726
|
}
|
|
1702
1727
|
}
|
|
1703
1728
|
class He {
|
|
1704
|
-
render(e, r, a, t, n, m,
|
|
1705
|
-
m
|
|
1729
|
+
render(e, r, a, t, n, m, i) {
|
|
1730
|
+
m === "true" || m === !0 ? e.innerHTML = '<span class="ge-true-text-color">✅</span>' : m === "false" || m === !1 ? e.innerHTML = '<span class="ge-false-text-color">❌</span>' : e.innerText = "";
|
|
1706
1731
|
}
|
|
1707
1732
|
}
|
|
1708
1733
|
class Oe {
|
|
1734
|
+
render(e, r, a, t, n, m, i) {
|
|
1735
|
+
m && (e.innerText = new Date(m).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
class Ve {
|
|
1709
1739
|
constructor(e = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
|
|
1710
1740
|
this.min = e, this.max = r;
|
|
1711
1741
|
}
|
|
1712
|
-
render(e, r, a, t, n, m,
|
|
1713
|
-
m && (e.innerText = m, (typeof m == "string" || isNaN(m) || m < this.min || m > this.max) &&
|
|
1742
|
+
render(e, r, a, t, n, m, i) {
|
|
1743
|
+
m && (e.innerText = m, (typeof m == "string" || isNaN(m) || m < this.min || m > this.max) && i.addClass(e, "ge-cell-error"));
|
|
1714
1744
|
}
|
|
1715
1745
|
}
|
|
1716
1746
|
class Ee {
|
|
1717
1747
|
constructor(e) {
|
|
1718
1748
|
this.property = e;
|
|
1719
1749
|
}
|
|
1720
|
-
render(e, r, a, t, n, m,
|
|
1721
|
-
|
|
1722
|
-
const
|
|
1750
|
+
render(e, r, a, t, n, m, i) {
|
|
1751
|
+
i.addClass(e, "ge-star-rating-div");
|
|
1752
|
+
const d = n.getRowByIndex(r), p = +("" + n.getValueByT(d, this.property));
|
|
1723
1753
|
if (!isNaN(p)) {
|
|
1724
1754
|
const l = [];
|
|
1725
1755
|
for (let b = 0; b < p; b++)
|
|
@@ -1732,13 +1762,13 @@ class Ee {
|
|
|
1732
1762
|
}
|
|
1733
1763
|
}
|
|
1734
1764
|
}
|
|
1735
|
-
class
|
|
1765
|
+
class Fe {
|
|
1736
1766
|
constructor(e, r = 100, a = !1) {
|
|
1737
1767
|
this.property = e, this.maxValue = r, this.labelVisible = a;
|
|
1738
1768
|
}
|
|
1739
|
-
render(e, r, a, t, n, m,
|
|
1740
|
-
|
|
1741
|
-
const
|
|
1769
|
+
render(e, r, a, t, n, m, i) {
|
|
1770
|
+
i.addClass(e, "ge-star-rating-div");
|
|
1771
|
+
const d = n.getRowByIndex(r), p = +("" + n.getValueByT(d, this.property));
|
|
1742
1772
|
if (!isNaN(p)) {
|
|
1743
1773
|
const l = p * 100 / this.maxValue, c = this.labelVisible ? Math.round(l) + "%" : "";
|
|
1744
1774
|
e.innerHTML = `
|
|
@@ -1764,32 +1794,32 @@ class Ve {
|
|
|
1764
1794
|
}
|
|
1765
1795
|
}
|
|
1766
1796
|
}
|
|
1767
|
-
const
|
|
1797
|
+
const $e = function(s, e, r) {
|
|
1768
1798
|
return s ? Number(s) : "";
|
|
1769
1799
|
};
|
|
1770
|
-
class
|
|
1800
|
+
class J {
|
|
1771
1801
|
constructor(e) {
|
|
1772
1802
|
this.options = e;
|
|
1773
1803
|
}
|
|
1774
1804
|
static create(e) {
|
|
1775
|
-
return new
|
|
1776
|
-
e.map((r) => new
|
|
1805
|
+
return new J(
|
|
1806
|
+
e.map((r) => new W(r, r))
|
|
1777
1807
|
);
|
|
1778
1808
|
}
|
|
1779
|
-
render(e, r, a, t, n, m,
|
|
1809
|
+
render(e, r, a, t, n, m, i) {
|
|
1780
1810
|
if (n.isEditable(r, a)) {
|
|
1781
|
-
|
|
1782
|
-
const
|
|
1811
|
+
i.addClass(e, "ge-table-row-select-div");
|
|
1812
|
+
const d = n.getValueAt(r, a);
|
|
1783
1813
|
let p = [];
|
|
1784
1814
|
for (let c of this.options) {
|
|
1785
|
-
const b = c.value ===
|
|
1815
|
+
const b = c.value === d ? " selected " : "";
|
|
1786
1816
|
p.push(`<option value="${c.value}" ${b}>${c.label}</option>`);
|
|
1787
1817
|
}
|
|
1788
1818
|
const l = p.join("");
|
|
1789
1819
|
e.innerHTML = `
|
|
1790
1820
|
<select
|
|
1791
1821
|
type="text"
|
|
1792
|
-
value="${
|
|
1822
|
+
value="${d}"
|
|
1793
1823
|
autofocus
|
|
1794
1824
|
data-listen="change"
|
|
1795
1825
|
data-area="${t}"
|
|
@@ -1801,12 +1831,12 @@ class Y {
|
|
|
1801
1831
|
}
|
|
1802
1832
|
}
|
|
1803
1833
|
}
|
|
1804
|
-
class
|
|
1834
|
+
class E {
|
|
1805
1835
|
constructor(e, r, a) {
|
|
1806
1836
|
this.r = e, this.g = r, this.b = a;
|
|
1807
1837
|
}
|
|
1808
1838
|
}
|
|
1809
|
-
class
|
|
1839
|
+
class te {
|
|
1810
1840
|
constructor(e, r, a, t) {
|
|
1811
1841
|
this.minValue = e, this.minColor = r, this.maxValue = a, this.maxColor = t;
|
|
1812
1842
|
}
|
|
@@ -1816,59 +1846,59 @@ class R {
|
|
|
1816
1846
|
return (e - r) / (a - r) * (n - t) + t;
|
|
1817
1847
|
}
|
|
1818
1848
|
static getTwoColorGradientRGB(e, r) {
|
|
1819
|
-
const a = R.normalize(e, r.minValue, r.maxValue, 0, 1), t = r.maxColor.r - r.minColor.r, n = r.maxColor.g - r.minColor.g, m = r.maxColor.b - r.minColor.b,
|
|
1820
|
-
return `rgb(${Math.round(
|
|
1849
|
+
const a = R.normalize(e, r.minValue, r.maxValue, 0, 1), t = r.maxColor.r - r.minColor.r, n = r.maxColor.g - r.minColor.g, m = r.maxColor.b - r.minColor.b, i = t * a + r.minColor.r, d = n * a + r.minColor.g, p = m * a + r.minColor.b;
|
|
1850
|
+
return `rgb(${Math.round(i)}, ${Math.round(d)}, ${Math.round(p)})`;
|
|
1821
1851
|
}
|
|
1822
1852
|
static getThreeColorGradientRGB(e, r) {
|
|
1823
|
-
return e < r.middleValue ? R.getTwoColorGradientRGB(e, new
|
|
1853
|
+
return e < r.middleValue ? R.getTwoColorGradientRGB(e, new te(r.minValue, r.minColor, r.middleValue, r.middleColor)) : e > r.middleValue ? R.getTwoColorGradientRGB(e, new te(r.middleValue, r.middleColor, r.maxValue, r.maxColor)) : `rgb(${r.middleColor.r}, ${r.middleColor.g}, ${r.middleColor.b})`;
|
|
1824
1854
|
}
|
|
1825
1855
|
}
|
|
1826
|
-
class
|
|
1856
|
+
class We {
|
|
1827
1857
|
constructor(e, r, a, t, n, m) {
|
|
1828
1858
|
this.minValue = e, this.minColor = r, this.middleValue = a, this.middleColor = t, this.maxValue = n, this.maxColor = m;
|
|
1829
1859
|
}
|
|
1830
1860
|
}
|
|
1831
|
-
class
|
|
1832
|
-
render(e, r, a, t, n, m,
|
|
1861
|
+
class je {
|
|
1862
|
+
render(e, r, a, t, n, m, i) {
|
|
1833
1863
|
if (m) {
|
|
1834
|
-
const
|
|
1835
|
-
|
|
1864
|
+
const d = Number(m);
|
|
1865
|
+
d < 0 ? (e.innerHTML = "▾ " + d.toFixed(2) + "%", i.addClass(e, "ge-positive-text-color")) : (e.innerHTML = "▴ " + d.toFixed(2) + "%", i.addClass(e, "ge-negative-text-color"));
|
|
1836
1866
|
}
|
|
1837
1867
|
}
|
|
1838
1868
|
}
|
|
1839
|
-
class
|
|
1869
|
+
class Xe {
|
|
1840
1870
|
constructor() {
|
|
1841
1871
|
this.formatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
|
|
1842
1872
|
}
|
|
1843
|
-
render(e, r, a, t, n, m,
|
|
1873
|
+
render(e, r, a, t, n, m, i) {
|
|
1844
1874
|
if (m) {
|
|
1845
|
-
const
|
|
1846
|
-
e.innerText = this.formatter.format(
|
|
1875
|
+
const d = Number(m);
|
|
1876
|
+
e.innerText = this.formatter.format(d);
|
|
1847
1877
|
}
|
|
1848
1878
|
}
|
|
1849
1879
|
}
|
|
1850
|
-
class
|
|
1851
|
-
render(e, r, a, t, n, m,
|
|
1852
|
-
const
|
|
1853
|
-
if (
|
|
1854
|
-
const p =
|
|
1880
|
+
class Ke {
|
|
1881
|
+
render(e, r, a, t, n, m, i) {
|
|
1882
|
+
const d = n.getRowByIndex(r);
|
|
1883
|
+
if (d) {
|
|
1884
|
+
const p = d.name ?? d.symbol;
|
|
1855
1885
|
e.innerHTML = `
|
|
1856
1886
|
<div style="line-height: 1.2;padding: 10px 0 0 10px;">
|
|
1857
1887
|
${p}<br>
|
|
1858
|
-
${
|
|
1888
|
+
${d.symbol}
|
|
1859
1889
|
</div>
|
|
1860
1890
|
`;
|
|
1861
1891
|
}
|
|
1862
1892
|
}
|
|
1863
1893
|
}
|
|
1864
|
-
class
|
|
1894
|
+
class Ye {
|
|
1865
1895
|
constructor() {
|
|
1866
1896
|
this.formatterUsd = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }), this.formatter = new Intl.NumberFormat("en-US");
|
|
1867
1897
|
}
|
|
1868
|
-
render(e, r, a, t, n, m,
|
|
1869
|
-
const
|
|
1870
|
-
if (
|
|
1871
|
-
const p = this.formatterUsd.format(
|
|
1898
|
+
render(e, r, a, t, n, m, i) {
|
|
1899
|
+
const d = n.getRowByIndex(r);
|
|
1900
|
+
if (d) {
|
|
1901
|
+
const p = this.formatterUsd.format(d.volUsd), l = this.formatter.format(d.volBtc);
|
|
1872
1902
|
e.innerHTML = `
|
|
1873
1903
|
<div style="line-height: 1.2;padding: 10px 0 0 10px;">
|
|
1874
1904
|
${p}<br>
|
|
@@ -1878,16 +1908,16 @@ class Ke {
|
|
|
1878
1908
|
}
|
|
1879
1909
|
}
|
|
1880
1910
|
}
|
|
1881
|
-
class
|
|
1911
|
+
class Je {
|
|
1882
1912
|
constructor(e = 120) {
|
|
1883
1913
|
this.maxWidth = e, this.formatter = new Intl.NumberFormat("en-US");
|
|
1884
1914
|
}
|
|
1885
|
-
render(e, r, a, t, n, m,
|
|
1886
|
-
const
|
|
1887
|
-
if (
|
|
1888
|
-
const p = this.formatter.format(
|
|
1915
|
+
render(e, r, a, t, n, m, i) {
|
|
1916
|
+
const d = n.getRowByIndex(r);
|
|
1917
|
+
if (d) {
|
|
1918
|
+
const p = this.formatter.format(d.circulatingSupply), l = d.maxSupply, c = [];
|
|
1889
1919
|
if (c.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), c.push(p), c.push("<br>"), l) {
|
|
1890
|
-
const b = this.maxWidth *
|
|
1920
|
+
const b = this.maxWidth * d.circulatingSupply / l;
|
|
1891
1921
|
c.push(`
|
|
1892
1922
|
<div style="width: ${this.maxWidth}px;height: 5px;background-color: #eee;margin:10px 0 0 10px">
|
|
1893
1923
|
<div style="width: ${b}px;height: 5px;background-color: #ccc;"></div>
|
|
@@ -1898,13 +1928,13 @@ class Ye {
|
|
|
1898
1928
|
}
|
|
1899
1929
|
}
|
|
1900
1930
|
}
|
|
1901
|
-
class
|
|
1902
|
-
render(e, r, a, t, n, m,
|
|
1903
|
-
const
|
|
1904
|
-
|
|
1931
|
+
class Qe {
|
|
1932
|
+
render(e, r, a, t, n, m, i) {
|
|
1933
|
+
const d = n.getRowByIndex(r);
|
|
1934
|
+
d != null && d.id && (e.innerHTML = `<img src="https://s2.coinmarketcap.com/static/img/coins/64x64/${d.id}.png" style="width:30px;height: 30px;margin: 10px 10px 0 20px;">`);
|
|
1905
1935
|
}
|
|
1906
1936
|
}
|
|
1907
|
-
const
|
|
1937
|
+
const er = [
|
|
1908
1938
|
{
|
|
1909
1939
|
id: 1,
|
|
1910
1940
|
name: "Bitcoin",
|
|
@@ -4639,19 +4669,19 @@ const Qe = [
|
|
|
4639
4669
|
change90d: 12.43943602
|
|
4640
4670
|
}
|
|
4641
4671
|
];
|
|
4642
|
-
function
|
|
4643
|
-
const s =
|
|
4672
|
+
function kr() {
|
|
4673
|
+
const s = er, e = new je(), r = new Xe(), a = new Ke(), t = new Ye(), n = new Je(120), m = new Qe(), i = [
|
|
4644
4674
|
y.create({
|
|
4645
4675
|
property: "symbol",
|
|
4646
4676
|
headerLabel: "",
|
|
4647
|
-
width:
|
|
4677
|
+
width: I,
|
|
4648
4678
|
bodyClasses: ["ge-table-text-align-left"],
|
|
4649
4679
|
bodyRenderer: m
|
|
4650
4680
|
}),
|
|
4651
4681
|
y.create({
|
|
4652
4682
|
property: "symbol",
|
|
4653
4683
|
headerLabel: "Name",
|
|
4654
|
-
width:
|
|
4684
|
+
width: z,
|
|
4655
4685
|
bodyClasses: ["ge-table-text-align-left"],
|
|
4656
4686
|
headerClasses: ["ge-table-text-align-left"],
|
|
4657
4687
|
bodyRenderer: a
|
|
@@ -4676,7 +4706,7 @@ function zr() {
|
|
|
4676
4706
|
}),
|
|
4677
4707
|
y.create({
|
|
4678
4708
|
headerLabel: "Volumne (24h)",
|
|
4679
|
-
width:
|
|
4709
|
+
width: D,
|
|
4680
4710
|
bodyClasses: ["ge-table-text-align-right"],
|
|
4681
4711
|
headerClasses: ["ge-table-text-align-right"],
|
|
4682
4712
|
bodyRenderer: t
|
|
@@ -4684,15 +4714,15 @@ function zr() {
|
|
|
4684
4714
|
y.create({
|
|
4685
4715
|
property: "circulatingSupply",
|
|
4686
4716
|
headerLabel: "Circulating Supply",
|
|
4687
|
-
width:
|
|
4717
|
+
width: ue,
|
|
4688
4718
|
bodyRenderer: n,
|
|
4689
4719
|
bodyClasses: ["ge-table-text-align-right"],
|
|
4690
4720
|
headerClasses: ["ge-table-text-align-right"]
|
|
4691
4721
|
})
|
|
4692
4722
|
];
|
|
4693
|
-
|
|
4694
|
-
const
|
|
4695
|
-
...new
|
|
4723
|
+
i.forEach((p) => p.sortable = () => !0);
|
|
4724
|
+
const d = {
|
|
4725
|
+
...new Z(),
|
|
4696
4726
|
hoverColumnVisible: !1,
|
|
4697
4727
|
verticalBorderVisible: !1,
|
|
4698
4728
|
defaultRowHeights: {
|
|
@@ -4701,16 +4731,16 @@ function zr() {
|
|
|
4701
4731
|
footer: 0
|
|
4702
4732
|
}
|
|
4703
4733
|
};
|
|
4704
|
-
return new
|
|
4734
|
+
return new H(
|
|
4705
4735
|
N.createTableModel({
|
|
4706
4736
|
rows: s,
|
|
4707
|
-
columnDefs:
|
|
4708
|
-
tableOptions:
|
|
4737
|
+
columnDefs: i,
|
|
4738
|
+
tableOptions: d
|
|
4709
4739
|
}),
|
|
4710
|
-
|
|
4740
|
+
d
|
|
4711
4741
|
);
|
|
4712
4742
|
}
|
|
4713
|
-
function
|
|
4743
|
+
function vr(s = 1e3, e = 1e3) {
|
|
4714
4744
|
const r = Array.from(Array(s).keys()).map(
|
|
4715
4745
|
(n) => Array.from(Array(e).keys()).map((m) => `${n}/${m}`)
|
|
4716
4746
|
), a = Array.from(Array(2).keys()).map(
|
|
@@ -4727,7 +4757,7 @@ function Zr(s = 1e3, e = 1e3) {
|
|
|
4727
4757
|
fixedRightColumnCount: 2
|
|
4728
4758
|
});
|
|
4729
4759
|
}
|
|
4730
|
-
const
|
|
4760
|
+
const rr = [
|
|
4731
4761
|
{
|
|
4732
4762
|
id: 0,
|
|
4733
4763
|
preName: "Prename0",
|
|
@@ -166601,9 +166631,9 @@ const er = [
|
|
|
166601
166631
|
friends: []
|
|
166602
166632
|
}
|
|
166603
166633
|
];
|
|
166604
|
-
function
|
|
166634
|
+
function Rr() {
|
|
166605
166635
|
const s = {
|
|
166606
|
-
...new
|
|
166636
|
+
...new Z(),
|
|
166607
166637
|
hoverColumnVisible: !1,
|
|
166608
166638
|
defaultRowHeights: {
|
|
166609
166639
|
header: 50,
|
|
@@ -166616,14 +166646,14 @@ function wr() {
|
|
|
166616
166646
|
// new CheckboxColumn(), // <--- not needed, because we have 'showCheckboxWihoutExtraColumn:true'
|
|
166617
166647
|
new y("lastName", "Last Name", new u(250, "px")),
|
|
166618
166648
|
new y("preName", "Pre Name", new u(120, "px")),
|
|
166619
|
-
new y("birth", "Birthday", new u(100, "px"), new S(), new S(void 0, new
|
|
166649
|
+
new y("birth", "Birthday", new u(100, "px"), new S(), new S(void 0, new Y(), void 0), void 0, void 0),
|
|
166620
166650
|
new y("gender", " ", new u(50, "px"), new S(), new S(void 0, new le(), void 0), void 0, void 0),
|
|
166621
166651
|
new y("address.street", "Strasse", new u(150, "px")),
|
|
166622
166652
|
new y("address.number", "Nr", new u(70, "px")),
|
|
166623
166653
|
new y("address.zip", "Zip", new u(60, "px")),
|
|
166624
166654
|
new y("address.city", "City", new u(120, "px")),
|
|
166625
166655
|
new y("id", "ID", new u(60, "px"))
|
|
166626
|
-
], r = A.buildTreeRows(
|
|
166656
|
+
], r = A.buildTreeRows(rr, "friends");
|
|
166627
166657
|
return N.createTableModel({
|
|
166628
166658
|
rows: r,
|
|
166629
166659
|
columnDefs: e,
|
|
@@ -166632,7 +166662,7 @@ function wr() {
|
|
|
166632
166662
|
fixedRightColumnCount: 0
|
|
166633
166663
|
});
|
|
166634
166664
|
}
|
|
166635
|
-
const
|
|
166665
|
+
const ne = new v(34, 50, 0), me = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), ar = `2009 27.9 36.7 42.4 54.5 62.5 67.5 72.7 75.7 66.3 55.0 51.2 35.9
|
|
166636
166666
|
2010 32.5 33.1 48.2 57.9 65.3 74.7 81.3 77.4 71.1 58.1 47.9 32.8
|
|
166637
166667
|
2011 29.7 36.0 42.3 54.3 64.5 72.3 80.2 75.3 70.0 57.1 51.9 43.3
|
|
166638
166668
|
2012 37.3 40.9 50.9 54.8 65.1 71.0 78.8 76.7 68.8 58.0 43.9 41.5
|
|
@@ -166643,27 +166673,27 @@ const te = new v(34, 50, 0), ne = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov
|
|
|
166643
166673
|
2017 38.0 41.6 39.2 57.2 61.1 72.0 76.8 74.0 70.5 64.1 46.6 33.4`.split(`
|
|
166644
166674
|
`).map(
|
|
166645
166675
|
(s) => s.split(" ").map((e) => Number(e))
|
|
166646
|
-
),
|
|
166647
|
-
class
|
|
166676
|
+
), tr = 27.9, nr = 77.4;
|
|
166677
|
+
class se {
|
|
166648
166678
|
constructor(e, r, a) {
|
|
166649
166679
|
this.r = e, this.g = r, this.b = a;
|
|
166650
166680
|
}
|
|
166651
166681
|
}
|
|
166652
|
-
function
|
|
166682
|
+
function mr(s, e, r, a, t) {
|
|
166653
166683
|
return (s - e) / (r - e) * (t - a) + a;
|
|
166654
166684
|
}
|
|
166655
|
-
function
|
|
166656
|
-
var a = new
|
|
166657
|
-
return m = m * n + a.r,
|
|
166685
|
+
function sr(s, e, r) {
|
|
166686
|
+
var a = new se(255, 0, 0), t = new se(0, 0, 255), n = mr(r, s, e, 0, 1), m = t.r - a.r, i = t.g - a.g, d = t.b - a.b;
|
|
166687
|
+
return m = m * n + a.r, i = i * n + a.g, d = d * n + a.b, `rgb(${Math.round(m)}, ${Math.round(i)}, ${Math.round(d)})`;
|
|
166658
166688
|
}
|
|
166659
|
-
function
|
|
166660
|
-
const s = new o("body",
|
|
166689
|
+
function Ar() {
|
|
166690
|
+
const s = new o("body", ar, ne.body), e = new Array(me.length).fill(50), r = new o("header", [me], ne.header);
|
|
166661
166691
|
return s.getCustomStyleAt = (a, t) => {
|
|
166662
166692
|
let n = {};
|
|
166663
166693
|
if (t > 0) {
|
|
166664
166694
|
const m = s.getValueAt(a, t);
|
|
166665
166695
|
n = {
|
|
166666
|
-
background:
|
|
166696
|
+
background: sr(tr, nr, m),
|
|
166667
166697
|
color: "#fff"
|
|
166668
166698
|
};
|
|
166669
166699
|
}
|
|
@@ -166674,7 +166704,7 @@ function xr() {
|
|
|
166674
166704
|
columnSizes: e
|
|
166675
166705
|
});
|
|
166676
166706
|
}
|
|
166677
|
-
function
|
|
166707
|
+
function ir() {
|
|
166678
166708
|
return [
|
|
166679
166709
|
{
|
|
166680
166710
|
date: "2010-01-01T01:00:00",
|
|
@@ -219232,12 +219262,12 @@ function sr() {
|
|
|
219232
219262
|
}
|
|
219233
219263
|
];
|
|
219234
219264
|
}
|
|
219235
|
-
const ce = 30,
|
|
219265
|
+
const ce = 30, dr = 3, ge = ir(), C = {};
|
|
219236
219266
|
ge.forEach((s) => {
|
|
219237
219267
|
const [e, r] = s.date.split("T");
|
|
219238
219268
|
C[e] || (C[e] = {}), C[e][r.substring(0, 5)] = s;
|
|
219239
219269
|
});
|
|
219240
|
-
const
|
|
219270
|
+
const j = Object.keys(C), M = [
|
|
219241
219271
|
"06:00",
|
|
219242
219272
|
"07:00",
|
|
219243
219273
|
"08:00",
|
|
@@ -219263,15 +219293,15 @@ const $ = Object.keys(C), U = [
|
|
|
219263
219293
|
"04:00",
|
|
219264
219294
|
"05:00"
|
|
219265
219295
|
];
|
|
219266
|
-
function
|
|
219296
|
+
function yr() {
|
|
219267
219297
|
let s = 10, e = 0;
|
|
219268
219298
|
return ge.forEach((r) => {
|
|
219269
219299
|
s = Math.min(s, r.temperature), e = Math.max(e, r.temperature);
|
|
219270
219300
|
}), [s, e];
|
|
219271
219301
|
}
|
|
219272
|
-
const [
|
|
219273
|
-
function
|
|
219274
|
-
const s = new
|
|
219302
|
+
const [ie, de] = yr();
|
|
219303
|
+
function Ur() {
|
|
219304
|
+
const s = new ur(), e = new pr(), r = [60, ...new Array(j.length).fill(dr)];
|
|
219275
219305
|
return N.createTableModel({
|
|
219276
219306
|
bodyAreaModel: s,
|
|
219277
219307
|
footerAreaModel: e,
|
|
@@ -219279,31 +219309,31 @@ function kr() {
|
|
|
219279
219309
|
fixedLeftColumnCount: 1
|
|
219280
219310
|
});
|
|
219281
219311
|
}
|
|
219282
|
-
class
|
|
219312
|
+
class ur extends K {
|
|
219283
219313
|
getRowCount() {
|
|
219284
|
-
return
|
|
219314
|
+
return M.length;
|
|
219285
219315
|
}
|
|
219286
219316
|
getRowHeight(e) {
|
|
219287
219317
|
return ce;
|
|
219288
219318
|
}
|
|
219289
219319
|
getValueAt(e, r) {
|
|
219290
|
-
return r === 0 ?
|
|
219320
|
+
return r === 0 ? M[e] : "";
|
|
219291
219321
|
}
|
|
219292
219322
|
getTooltipAt(e, r) {
|
|
219293
219323
|
if (r === 0)
|
|
219294
219324
|
return "";
|
|
219295
219325
|
r--;
|
|
219296
|
-
const a =
|
|
219326
|
+
const a = j[r], t = M[e];
|
|
219297
219327
|
return C[a] && C[a][t] ? `${a} ${t} → ${C[a][t].temperature}` : "";
|
|
219298
219328
|
}
|
|
219299
219329
|
getCustomStyleAt(e, r) {
|
|
219300
219330
|
if (r === 0)
|
|
219301
219331
|
return;
|
|
219302
219332
|
r--;
|
|
219303
|
-
const a =
|
|
219333
|
+
const a = j[r], t = M[e];
|
|
219304
219334
|
if (!C[a] || !C[a][t])
|
|
219305
219335
|
return;
|
|
219306
|
-
const n = C[a][t].temperature, m = new
|
|
219336
|
+
const n = C[a][t].temperature, m = new E(67, 1, 84), i = new E(31, 144, 141), d = new E(250, 230, 37), p = (de + ie) / 2, l = new We(ie, m, p, i, de, d);
|
|
219307
219337
|
return {
|
|
219308
219338
|
background: R.getThreeColorGradientRGB(n, l),
|
|
219309
219339
|
color: "transparent"
|
|
@@ -219311,7 +219341,7 @@ class yr extends pe {
|
|
|
219311
219341
|
};
|
|
219312
219342
|
}
|
|
219313
219343
|
}
|
|
219314
|
-
class
|
|
219344
|
+
class pr extends K {
|
|
219315
219345
|
getRowCount() {
|
|
219316
219346
|
return 1;
|
|
219317
219347
|
}
|
|
@@ -219333,7 +219363,7 @@ class ur extends pe {
|
|
|
219333
219363
|
};
|
|
219334
219364
|
}
|
|
219335
219365
|
}
|
|
219336
|
-
const
|
|
219366
|
+
const F = [
|
|
219337
219367
|
{
|
|
219338
219368
|
data: "Gold",
|
|
219339
219369
|
toggle: !0,
|
|
@@ -219420,9 +219450,9 @@ const H = [
|
|
|
219420
219450
|
]
|
|
219421
219451
|
}
|
|
219422
219452
|
];
|
|
219423
|
-
function
|
|
219424
|
-
const e = h.buildGroupExts(
|
|
219425
|
-
console.info("headerGroups",
|
|
219453
|
+
function Dr() {
|
|
219454
|
+
const e = h.buildGroupExts(F), r = h.buildColumnDefs(e), a = new Ie("header", F, r, 34);
|
|
219455
|
+
console.info("headerGroups", F), console.info("columnDefs", r.map((m) => m.property));
|
|
219426
219456
|
const t = [
|
|
219427
219457
|
{
|
|
219428
219458
|
GOLD: 146,
|
|
@@ -219440,14 +219470,14 @@ function vr() {
|
|
|
219440
219470
|
HOH_C: 53,
|
|
219441
219471
|
HOH_D: 54
|
|
219442
219472
|
}
|
|
219443
|
-
], n = new
|
|
219473
|
+
], n = new B("body", t, r, 34);
|
|
219444
219474
|
return N.createTableModel({
|
|
219445
219475
|
headerAreaModel: a,
|
|
219446
219476
|
bodyAreaModel: n,
|
|
219447
219477
|
columnDefs: r
|
|
219448
219478
|
});
|
|
219449
219479
|
}
|
|
219450
|
-
function
|
|
219480
|
+
function lr() {
|
|
219451
219481
|
return [
|
|
219452
219482
|
{
|
|
219453
219483
|
id: 1,
|
|
@@ -219627,9 +219657,9 @@ function pr() {
|
|
|
219627
219657
|
}
|
|
219628
219658
|
];
|
|
219629
219659
|
}
|
|
219630
|
-
function
|
|
219660
|
+
function cr() {
|
|
219631
219661
|
return [
|
|
219632
|
-
new y("firstName", "First Name",
|
|
219662
|
+
new y("firstName", "First Name", z),
|
|
219633
219663
|
new y("lastName", "Last Name"),
|
|
219634
219664
|
y.create({
|
|
219635
219665
|
property: "gender",
|
|
@@ -219643,7 +219673,7 @@ function lr() {
|
|
|
219643
219673
|
width: Ce,
|
|
219644
219674
|
bodyClasses: ["ge-table-text-align-left"]
|
|
219645
219675
|
}),
|
|
219646
|
-
new y("ipAddress", "IP",
|
|
219676
|
+
new y("ipAddress", "IP", ye),
|
|
219647
219677
|
y.create({
|
|
219648
219678
|
property: "id",
|
|
219649
219679
|
headerLabel: "ID",
|
|
@@ -219653,9 +219683,9 @@ function lr() {
|
|
|
219653
219683
|
})
|
|
219654
219684
|
];
|
|
219655
219685
|
}
|
|
219656
|
-
function
|
|
219686
|
+
function gr() {
|
|
219657
219687
|
return {
|
|
219658
|
-
...new
|
|
219688
|
+
...new Z(),
|
|
219659
219689
|
hoverColumnVisible: !1,
|
|
219660
219690
|
defaultRowHeights: {
|
|
219661
219691
|
header: 40,
|
|
@@ -219664,8 +219694,8 @@ function cr() {
|
|
|
219664
219694
|
}
|
|
219665
219695
|
};
|
|
219666
219696
|
}
|
|
219667
|
-
function
|
|
219668
|
-
const s =
|
|
219697
|
+
function Mr() {
|
|
219698
|
+
const s = gr(), e = lr(), r = cr();
|
|
219669
219699
|
return N.createTableModel({
|
|
219670
219700
|
rows: e,
|
|
219671
219701
|
columnDefs: r,
|
|
@@ -219673,10 +219703,10 @@ function Rr() {
|
|
|
219673
219703
|
fixedLeftColumnCount: 0
|
|
219674
219704
|
});
|
|
219675
219705
|
}
|
|
219676
|
-
function
|
|
219706
|
+
function Ir(s, e) {
|
|
219677
219707
|
s.rendererMap = new S(void 0, e, void 0);
|
|
219678
219708
|
}
|
|
219679
|
-
const
|
|
219709
|
+
const br = [
|
|
219680
219710
|
{
|
|
219681
219711
|
id: 1,
|
|
219682
219712
|
city: "London",
|
|
@@ -219824,7 +219854,7 @@ const gr = [
|
|
|
219824
219854
|
team: { name: "Team TCC", active: !0 },
|
|
219825
219855
|
data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
219826
219856
|
}
|
|
219827
|
-
].map((s) => (s.updatedAt = /* @__PURE__ */ new Date(), s)),
|
|
219857
|
+
].map((s) => (s.updatedAt = /* @__PURE__ */ new Date(), s)), _ = [
|
|
219828
219858
|
new y("city", "City", new u(90, "px")),
|
|
219829
219859
|
new y("location", "Location", new u(100, "px")),
|
|
219830
219860
|
new y("team.name", "Team", new u(100, "px")),
|
|
@@ -219832,7 +219862,7 @@ const gr = [
|
|
|
219832
219862
|
property: "team.active",
|
|
219833
219863
|
headerLabel: "Active",
|
|
219834
219864
|
width: new u(60, "px"),
|
|
219835
|
-
bodyRenderer: new
|
|
219865
|
+
bodyRenderer: new He()
|
|
219836
219866
|
}),
|
|
219837
219867
|
new y("data.0", "00", new u(60, "px")),
|
|
219838
219868
|
new y("data.1", "15", new u(60, "px")),
|
|
@@ -219850,10 +219880,10 @@ const gr = [
|
|
|
219850
219880
|
property: "updatedAt",
|
|
219851
219881
|
headerLabel: "Updated at",
|
|
219852
219882
|
width: new u(175, "px"),
|
|
219853
|
-
bodyRenderer: new
|
|
219883
|
+
bodyRenderer: new Oe()
|
|
219854
219884
|
})
|
|
219855
|
-
],
|
|
219856
|
-
...new
|
|
219885
|
+
], Br = _.length - 1, Nr = {
|
|
219886
|
+
...new Z(),
|
|
219857
219887
|
hoverRowVisible: !1,
|
|
219858
219888
|
hoverColumnVisible: !1,
|
|
219859
219889
|
defaultRowHeights: {
|
|
@@ -219864,22 +219894,22 @@ const gr = [
|
|
|
219864
219894
|
columnsDraggable: !1,
|
|
219865
219895
|
columnsResizable: !0
|
|
219866
219896
|
};
|
|
219867
|
-
function
|
|
219868
|
-
const s =
|
|
219897
|
+
function _r() {
|
|
219898
|
+
const s = Nr.defaultRowHeights;
|
|
219869
219899
|
return N.createTableModel({
|
|
219870
|
-
headerAreaModel: new
|
|
219871
|
-
bodyAreaModel: new
|
|
219872
|
-
footerAreaModel: new
|
|
219873
|
-
columnDefs:
|
|
219900
|
+
headerAreaModel: new Tr(s.header),
|
|
219901
|
+
bodyAreaModel: new fr(s.body),
|
|
219902
|
+
footerAreaModel: new or(s.footer),
|
|
219903
|
+
columnDefs: _,
|
|
219874
219904
|
fixedLeftColumnCount: 2,
|
|
219875
219905
|
fixedRightColumnCount: 1,
|
|
219876
219906
|
defaultRowHeights: s,
|
|
219877
|
-
columnCount:
|
|
219907
|
+
columnCount: _.length
|
|
219878
219908
|
});
|
|
219879
219909
|
}
|
|
219880
|
-
class
|
|
219910
|
+
class fr extends B {
|
|
219881
219911
|
constructor(e) {
|
|
219882
|
-
super("body",
|
|
219912
|
+
super("body", br, _, e);
|
|
219883
219913
|
}
|
|
219884
219914
|
getRowspanAt(e, r) {
|
|
219885
219915
|
if (r === 0 || r == 1) {
|
|
@@ -219896,7 +219926,7 @@ class Nr extends I {
|
|
|
219896
219926
|
return t;
|
|
219897
219927
|
}
|
|
219898
219928
|
}
|
|
219899
|
-
class
|
|
219929
|
+
class Tr extends o {
|
|
219900
219930
|
constructor(e) {
|
|
219901
219931
|
super(
|
|
219902
219932
|
"header",
|
|
@@ -219923,7 +219953,7 @@ class fr extends o {
|
|
|
219923
219953
|
return ["ge-font-weight-bold"];
|
|
219924
219954
|
}
|
|
219925
219955
|
}
|
|
219926
|
-
class
|
|
219956
|
+
class or extends o {
|
|
219927
219957
|
constructor(e) {
|
|
219928
219958
|
super(
|
|
219929
219959
|
"footer",
|
|
@@ -219938,7 +219968,7 @@ class Tr extends o {
|
|
|
219938
219968
|
return r === 2 ? ["ge-text-align-right", "ge-font-weight-bold"] : [];
|
|
219939
219969
|
}
|
|
219940
219970
|
}
|
|
219941
|
-
const
|
|
219971
|
+
const hr = [
|
|
219942
219972
|
{
|
|
219943
219973
|
id: "c8-34f1d5",
|
|
219944
219974
|
company: "Equicom",
|
|
@@ -221876,15 +221906,15 @@ const or = [
|
|
|
221876
221906
|
rating: 5
|
|
221877
221907
|
}
|
|
221878
221908
|
];
|
|
221879
|
-
function hr() {
|
|
221880
|
-
return or;
|
|
221881
|
-
}
|
|
221882
221909
|
function Sr() {
|
|
221910
|
+
return hr;
|
|
221911
|
+
}
|
|
221912
|
+
function Cr() {
|
|
221883
221913
|
return [
|
|
221884
221914
|
y.create({
|
|
221885
221915
|
property: "company",
|
|
221886
221916
|
headerLabel: "Company",
|
|
221887
|
-
width:
|
|
221917
|
+
width: z,
|
|
221888
221918
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221889
221919
|
headerClasses: ["ge-table-text-align-left"],
|
|
221890
221920
|
sortable: f
|
|
@@ -221892,7 +221922,7 @@ function Sr() {
|
|
|
221892
221922
|
y.create({
|
|
221893
221923
|
property: "country",
|
|
221894
221924
|
headerLabel: "Country",
|
|
221895
|
-
width:
|
|
221925
|
+
width: ue,
|
|
221896
221926
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221897
221927
|
headerClasses: ["ge-table-text-align-left"],
|
|
221898
221928
|
sortable: f
|
|
@@ -221900,7 +221930,7 @@ function Sr() {
|
|
|
221900
221930
|
y.create({
|
|
221901
221931
|
property: "product",
|
|
221902
221932
|
headerLabel: "Name",
|
|
221903
|
-
width:
|
|
221933
|
+
width: z,
|
|
221904
221934
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221905
221935
|
headerClasses: ["ge-table-text-align-left"],
|
|
221906
221936
|
sortable: f
|
|
@@ -221909,14 +221939,14 @@ function Sr() {
|
|
|
221909
221939
|
property: "sellDate",
|
|
221910
221940
|
headerLabel: "Sell date",
|
|
221911
221941
|
width: G,
|
|
221912
|
-
bodyRenderer: new
|
|
221942
|
+
bodyRenderer: new Y(),
|
|
221913
221943
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221914
221944
|
sortable: f
|
|
221915
221945
|
}),
|
|
221916
221946
|
y.create({
|
|
221917
221947
|
property: "id",
|
|
221918
221948
|
headerLabel: "Order ID",
|
|
221919
|
-
width:
|
|
221949
|
+
width: z,
|
|
221920
221950
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221921
221951
|
sortable: f
|
|
221922
221952
|
}),
|
|
@@ -221931,7 +221961,7 @@ function Sr() {
|
|
|
221931
221961
|
y.create({
|
|
221932
221962
|
property: "quantity",
|
|
221933
221963
|
headerLabel: "Qty",
|
|
221934
|
-
width:
|
|
221964
|
+
width: I,
|
|
221935
221965
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221936
221966
|
headerClasses: ["ge-table-text-align-right"],
|
|
221937
221967
|
sortable: f
|
|
@@ -221940,7 +221970,7 @@ function Sr() {
|
|
|
221940
221970
|
property: "progress",
|
|
221941
221971
|
headerLabel: "Progress",
|
|
221942
221972
|
width: G,
|
|
221943
|
-
bodyRenderer: new
|
|
221973
|
+
bodyRenderer: new Fe("progress", 5, !0),
|
|
221944
221974
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221945
221975
|
sortable: f
|
|
221946
221976
|
}),
|
|
@@ -221954,10 +221984,10 @@ function Sr() {
|
|
|
221954
221984
|
})
|
|
221955
221985
|
];
|
|
221956
221986
|
}
|
|
221957
|
-
function
|
|
221958
|
-
const s = new
|
|
221987
|
+
function Pr() {
|
|
221988
|
+
const s = new q("row", "multi");
|
|
221959
221989
|
return {
|
|
221960
|
-
...new
|
|
221990
|
+
...new Z(),
|
|
221961
221991
|
hoverColumnVisible: !1,
|
|
221962
221992
|
defaultRowHeights: {
|
|
221963
221993
|
header: 24,
|
|
@@ -221967,9 +221997,9 @@ function Cr() {
|
|
|
221967
221997
|
getSelectionModel: () => s
|
|
221968
221998
|
};
|
|
221969
221999
|
}
|
|
221970
|
-
function
|
|
221971
|
-
const s =
|
|
221972
|
-
return new
|
|
222000
|
+
function qr() {
|
|
222001
|
+
const s = Pr(), e = Sr(), r = Cr();
|
|
222002
|
+
return new H(
|
|
221973
222003
|
N.createTableModel({
|
|
221974
222004
|
rows: e,
|
|
221975
222005
|
columnDefs: r,
|
|
@@ -221979,7 +222009,74 @@ function Ir() {
|
|
|
221979
222009
|
s
|
|
221980
222010
|
);
|
|
221981
222011
|
}
|
|
221982
|
-
|
|
222012
|
+
function Lr() {
|
|
222013
|
+
return [
|
|
222014
|
+
y.create({
|
|
222015
|
+
headerLabel: "ID",
|
|
222016
|
+
width: z,
|
|
222017
|
+
bodyClasses: ["ge-table-text-align-left"],
|
|
222018
|
+
headerClasses: ["ge-table-text-align-left"],
|
|
222019
|
+
sortable: U
|
|
222020
|
+
}),
|
|
222021
|
+
y.create({
|
|
222022
|
+
headerLabel: "Value",
|
|
222023
|
+
width: D,
|
|
222024
|
+
bodyClasses: ["ge-table-text-align-left"],
|
|
222025
|
+
headerClasses: ["ge-table-text-align-left"],
|
|
222026
|
+
sortable: U
|
|
222027
|
+
}),
|
|
222028
|
+
y.create({
|
|
222029
|
+
headerLabel: " ",
|
|
222030
|
+
width: D,
|
|
222031
|
+
bodyClasses: ["ge-table-text-align-right"],
|
|
222032
|
+
headerClasses: ["ge-table-text-align-right"]
|
|
222033
|
+
})
|
|
222034
|
+
];
|
|
222035
|
+
}
|
|
222036
|
+
function Gr() {
|
|
222037
|
+
const s = new q();
|
|
222038
|
+
return {
|
|
222039
|
+
...new Z(),
|
|
222040
|
+
hoverColumnVisible: !1,
|
|
222041
|
+
defaultRowHeights: {
|
|
222042
|
+
header: 34,
|
|
222043
|
+
body: 34,
|
|
222044
|
+
footer: 0
|
|
222045
|
+
},
|
|
222046
|
+
getSelectionModel: () => s
|
|
222047
|
+
};
|
|
222048
|
+
}
|
|
222049
|
+
function Hr(s = 1e6) {
|
|
222050
|
+
const e = Gr(), r = Lr(), a = new zr(s);
|
|
222051
|
+
return new H(N.createTableModel({
|
|
222052
|
+
bodyAreaModel: a,
|
|
222053
|
+
columnDefs: r,
|
|
222054
|
+
tableOptions: e,
|
|
222055
|
+
fixedLeftColumnCount: 0
|
|
222056
|
+
}), e);
|
|
222057
|
+
}
|
|
222058
|
+
class zr extends K {
|
|
222059
|
+
constructor(e = 1e6) {
|
|
222060
|
+
super(), this.rowcount = e, this.nf = new Intl.NumberFormat("en-Us", {}), this.barRenderer = new qe(e, !1);
|
|
222061
|
+
}
|
|
222062
|
+
getRowCount() {
|
|
222063
|
+
return this.rowcount;
|
|
222064
|
+
}
|
|
222065
|
+
getRowHeight(e) {
|
|
222066
|
+
return 34;
|
|
222067
|
+
}
|
|
222068
|
+
getValueAt(e, r) {
|
|
222069
|
+
return r === 0 ? "id" + e : r === 1 ? this.nf.format(e) : e;
|
|
222070
|
+
}
|
|
222071
|
+
getCellRenderer(e, r) {
|
|
222072
|
+
if (r == 2)
|
|
222073
|
+
return this.barRenderer;
|
|
222074
|
+
}
|
|
222075
|
+
getYPosByRowIndex(e) {
|
|
222076
|
+
return e * this.getRowHeight(0);
|
|
222077
|
+
}
|
|
222078
|
+
}
|
|
222079
|
+
const Zr = [
|
|
221983
222080
|
{
|
|
221984
222081
|
id: 0,
|
|
221985
222082
|
preName: "Prename0",
|
|
@@ -383853,10 +383950,10 @@ const Pr = [
|
|
|
383853
383950
|
friends: []
|
|
383854
383951
|
}
|
|
383855
383952
|
];
|
|
383856
|
-
function
|
|
383857
|
-
const e = new
|
|
383953
|
+
function wr(s = !1) {
|
|
383954
|
+
const e = new q("range", "multi");
|
|
383858
383955
|
return s && (e.addSelection(new T(0, 0, 0, 2)), e.addSelection(new T(2, 1, 2, 2)), e.addSelection(new T(1, 5, 6, 7)), e.addSelection(new T(0, 8, 0, 8)), e.addSelection(new T(5, 6, 10, 10))), {
|
|
383859
|
-
...new
|
|
383956
|
+
...new Z(),
|
|
383860
383957
|
hoverColumnVisible: !1,
|
|
383861
383958
|
defaultRowHeights: {
|
|
383862
383959
|
header: 50,
|
|
@@ -383874,25 +383971,25 @@ function Lr(s = !1) {
|
|
|
383874
383971
|
getSelectionModel: () => e
|
|
383875
383972
|
};
|
|
383876
383973
|
}
|
|
383877
|
-
function
|
|
383974
|
+
function xr() {
|
|
383878
383975
|
return [
|
|
383879
383976
|
new y("lastName", "Last Name", Le),
|
|
383880
|
-
new y("preName", "Pre Name",
|
|
383977
|
+
new y("preName", "Pre Name", z),
|
|
383881
383978
|
y.create({
|
|
383882
383979
|
property: "age",
|
|
383883
383980
|
headerLabel: "Age",
|
|
383884
383981
|
width: Ze,
|
|
383885
|
-
bodyRenderer: new
|
|
383982
|
+
bodyRenderer: new Ve(),
|
|
383886
383983
|
editable: f,
|
|
383887
383984
|
// editInputPipe: (value: any) => value ? Number(value) : ""
|
|
383888
|
-
editInputPipe:
|
|
383985
|
+
editInputPipe: $e
|
|
383889
383986
|
}),
|
|
383890
383987
|
new y(
|
|
383891
383988
|
"birth",
|
|
383892
383989
|
"Birthday",
|
|
383893
383990
|
G,
|
|
383894
383991
|
void 0,
|
|
383895
|
-
Be.bodyRenderer(new
|
|
383992
|
+
Be.bodyRenderer(new Y())
|
|
383896
383993
|
),
|
|
383897
383994
|
y.create({
|
|
383898
383995
|
property: "gender",
|
|
@@ -383900,61 +383997,63 @@ function Gr() {
|
|
|
383900
383997
|
width: xe,
|
|
383901
383998
|
bodyRenderer: new le(),
|
|
383902
383999
|
editable: f,
|
|
383903
|
-
getEditRenderer: () => new
|
|
383904
|
-
new
|
|
383905
|
-
new
|
|
384000
|
+
getEditRenderer: () => new J([
|
|
384001
|
+
new W("female", "♀"),
|
|
384002
|
+
new W("male", "♂")
|
|
383906
384003
|
])
|
|
383907
384004
|
}),
|
|
383908
|
-
new y("address.street", "Strasse",
|
|
384005
|
+
new y("address.street", "Strasse", ye),
|
|
383909
384006
|
new y("address.number", "Nr", we),
|
|
383910
|
-
new y("address.zip", "Zip",
|
|
383911
|
-
new y("address.city", "City",
|
|
383912
|
-
new y("address.country", "Country",
|
|
383913
|
-
new y("id", "ID",
|
|
384007
|
+
new y("address.zip", "Zip", I),
|
|
384008
|
+
new y("address.city", "City", z),
|
|
384009
|
+
new y("address.country", "Country", z),
|
|
384010
|
+
new y("id", "ID", I)
|
|
383914
384011
|
];
|
|
383915
384012
|
}
|
|
383916
|
-
function
|
|
383917
|
-
const e =
|
|
384013
|
+
function Or(s = !1) {
|
|
384014
|
+
const e = wr(s), r = xr();
|
|
383918
384015
|
for (const n of r)
|
|
383919
384016
|
n.sortable = f, n.editable = f;
|
|
383920
|
-
r[0].editable =
|
|
383921
|
-
const a = A.buildTreeRows(
|
|
384017
|
+
r[0].editable = U;
|
|
384018
|
+
const a = A.buildTreeRows(Zr, "friends"), t = N.createTableModel({
|
|
383922
384019
|
rows: a,
|
|
383923
384020
|
columnDefs: r,
|
|
383924
384021
|
tableOptions: e,
|
|
383925
384022
|
fixedLeftColumnCount: 1,
|
|
383926
384023
|
fixedRightColumnCount: 1
|
|
383927
384024
|
});
|
|
383928
|
-
return new
|
|
384025
|
+
return new H(
|
|
383929
384026
|
t,
|
|
383930
384027
|
e
|
|
383931
384028
|
);
|
|
383932
384029
|
}
|
|
383933
384030
|
export {
|
|
383934
|
-
|
|
383935
|
-
|
|
383936
|
-
|
|
383937
|
-
|
|
383938
|
-
|
|
383939
|
-
|
|
383940
|
-
|
|
383941
|
-
|
|
383942
|
-
|
|
383943
|
-
|
|
383944
|
-
|
|
383945
|
-
|
|
383946
|
-
|
|
383947
|
-
|
|
383948
|
-
|
|
383949
|
-
|
|
383950
|
-
|
|
383951
|
-
|
|
383952
|
-
|
|
383953
|
-
|
|
383954
|
-
|
|
383955
|
-
|
|
383956
|
-
|
|
383957
|
-
|
|
383958
|
-
|
|
383959
|
-
|
|
384031
|
+
Br as COL_IDX_UPDATED_AT,
|
|
384032
|
+
je as ChangePercentageRenderer,
|
|
384033
|
+
Je as CirculatingSupplyRenderer,
|
|
384034
|
+
Qe as CoinIconRenderer,
|
|
384035
|
+
zr as LargeBodyModel,
|
|
384036
|
+
Ke as NameAndSymbolRenderer,
|
|
384037
|
+
Xe as UsdRenderer,
|
|
384038
|
+
Ye as Volumn24hRenderer,
|
|
384039
|
+
Ir as applyBodyRenderer,
|
|
384040
|
+
cr as createColumnDefs,
|
|
384041
|
+
kr as createCryptoModelAndOptions,
|
|
384042
|
+
Dr as createHeadergroupModel,
|
|
384043
|
+
Ar as createHeatMapModel,
|
|
384044
|
+
Ur as createHeatMapSeattleModel,
|
|
384045
|
+
Hr as createLargeModelAndOptions,
|
|
384046
|
+
qr as createOrderModelAndOptions,
|
|
384047
|
+
Mr as createSimplePersonModel,
|
|
384048
|
+
gr as createTableOptions,
|
|
384049
|
+
lr as createTableRows,
|
|
384050
|
+
_r as createTimeTableModel,
|
|
384051
|
+
xr as createTreePeopleColumnDefs,
|
|
384052
|
+
Or as createTreePeopleModelAndOptions,
|
|
384053
|
+
wr as createTreePeopleTableOptions,
|
|
384054
|
+
er as cryptoData,
|
|
384055
|
+
br as data,
|
|
384056
|
+
vr as generateSimpleModel,
|
|
384057
|
+
Rr as generateTreeCheckboxModel,
|
|
384058
|
+
Nr as tableOptions
|
|
383960
384059
|
};
|