@guiexpert/demo-table-models 1.1.92 → 1.1.94
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 +10 -10
- package/index.d.ts +5 -0
- package/index.js +566 -409
- package/lib/createAggregationModel.d.ts +10 -0
- package/lib/createLargeModel.d.ts +14 -3
- package/lib/createPivotModel.d.ts +24 -0
- package/lib/createRowGroupModel.d.ts +21 -0
- package/model/pivot-order.if.d.ts +6 -0
- package/model/sales-order.if.d.ts +11 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,81 +1,81 @@
|
|
|
1
|
-
import { ColumnDef as t, px60 as
|
|
2
|
-
class
|
|
3
|
-
render(
|
|
4
|
-
if (
|
|
5
|
-
const
|
|
6
|
-
|
|
1
|
+
import { ColumnDef as t, px60 as h, px120 as b, px100 as c, px160 as W, px200 as v, px140 as C, TableOptions as N, TableModelAndOptions as S, TableFactory as g, Size as u, AreaObjectMap as P, DateToIntlDDMMYYYYCellRenderer as U, MaleFemaleToIconCellRenderer as j, TreeFactory as Y, DefaultRowHeights as ye, AreaModelArrayOfArrays as k, AreaModel as I, ColorRgb as q, ThreeColorGradientArg as pe, GeCssColorUtil as ue, CellgroupFactory as x, AreaModelCellGroups as X, AreaModelObjectArrayWithColumndefs as R, px300 as ce, px150 as J, px250 as le, TrueFalseCellRenderer as Q, DateToTecCellRenderer as ge, SelectionModel as L, TrueFn as y, CheckboxBooleanPropertyCellRenderer as ee, px90 as re, ProgressBarCellRenderer as ae, StarRatingCellRenderer as te, NumberCellProgressBarCellRenderer as be, RowNumberColumnDef as Ne, FalseFn as A, px220 as ne, PositiveAndNegativeNumberRenderer as fe, px80 as me, RowGroupFactory as Te, px110 as oe, PivotFactory as he, editInputPipeForNumber as Se, NumberCellRenderer as Ce, Renderer as Le, SelectCellRenderer as Ge, px50 as Pe, ValueLabel as O, px70 as Ze, CellRange as G, AutoRestoreOptions as ze } from "@guiexpert/table";
|
|
2
|
+
class we {
|
|
3
|
+
render(e, r, n, m, s, i, p) {
|
|
4
|
+
if (i) {
|
|
5
|
+
const d = Number(i);
|
|
6
|
+
d < 0 ? (e.innerHTML = "▾ " + d.toFixed(2) + "%", p.addClass(e, "ge-positive-text-color")) : (e.innerHTML = "▴ " + d.toFixed(2) + "%", p.addClass(e, "ge-negative-text-color"));
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
class
|
|
10
|
+
class ve {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.formatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
|
|
13
13
|
}
|
|
14
|
-
render(
|
|
15
|
-
if (
|
|
16
|
-
const
|
|
17
|
-
|
|
14
|
+
render(e, r, n, m, s, i, p) {
|
|
15
|
+
if (i) {
|
|
16
|
+
const d = Number(i);
|
|
17
|
+
e.innerText = this.formatter.format(d);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
class
|
|
22
|
-
render(
|
|
23
|
-
const
|
|
24
|
-
if (
|
|
25
|
-
const
|
|
26
|
-
|
|
21
|
+
class ke {
|
|
22
|
+
render(e, r, n, m, s, i, p) {
|
|
23
|
+
const d = s.getRowByIndex(r);
|
|
24
|
+
if (d) {
|
|
25
|
+
const l = d.name ?? d.symbol;
|
|
26
|
+
e.innerHTML = `
|
|
27
27
|
<div style="line-height: 1.2;padding: 10px 0 0 10px;">
|
|
28
|
-
${
|
|
29
|
-
${
|
|
28
|
+
${l}<br>
|
|
29
|
+
${d.symbol}
|
|
30
30
|
</div>
|
|
31
31
|
`;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
class
|
|
35
|
+
class xe {
|
|
36
36
|
constructor() {
|
|
37
37
|
this.formatterUsd = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }), this.formatter = new Intl.NumberFormat("en-US");
|
|
38
38
|
}
|
|
39
|
-
render(
|
|
40
|
-
const
|
|
41
|
-
if (
|
|
42
|
-
const
|
|
43
|
-
|
|
39
|
+
render(e, r, n, m, s, i, p) {
|
|
40
|
+
const d = s.getRowByIndex(r);
|
|
41
|
+
if (d) {
|
|
42
|
+
const l = this.formatterUsd.format(d.volUsd), o = this.formatter.format(d.volBtc);
|
|
43
|
+
e.innerHTML = `
|
|
44
44
|
<div style="line-height: 1.2;padding: 10px 0 0 10px;">
|
|
45
|
-
${
|
|
45
|
+
${l}<br>
|
|
46
46
|
${o} BTC
|
|
47
47
|
</div>
|
|
48
48
|
`;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
class
|
|
53
|
-
constructor(
|
|
54
|
-
this.maxWidth =
|
|
52
|
+
class De {
|
|
53
|
+
constructor(e = 120) {
|
|
54
|
+
this.maxWidth = e, this.formatter = new Intl.NumberFormat("en-US");
|
|
55
55
|
}
|
|
56
|
-
render(
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
-
const
|
|
62
|
-
|
|
56
|
+
render(e, r, n, m, s, i, p) {
|
|
57
|
+
const d = s.getRowByIndex(r);
|
|
58
|
+
if (d) {
|
|
59
|
+
const l = this.formatter.format(d.circulatingSupply), o = d.maxSupply, T = [];
|
|
60
|
+
if (T.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), T.push(l), T.push("<br>"), o) {
|
|
61
|
+
const Z = this.maxWidth * d.circulatingSupply / o;
|
|
62
|
+
T.push(`
|
|
63
63
|
<div style="width: ${this.maxWidth}px;height: 5px;background-color: #eee;margin:10px 0 0 10px">
|
|
64
|
-
<div style="width: ${
|
|
64
|
+
<div style="width: ${Z}px;height: 5px;background-color: #ccc;"></div>
|
|
65
65
|
</div>
|
|
66
66
|
`);
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
T.push("</div>"), e.innerHTML = T.join("");
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
73
|
-
render(
|
|
74
|
-
const
|
|
75
|
-
|
|
72
|
+
class Ue {
|
|
73
|
+
render(e, r, n, m, s, i, p) {
|
|
74
|
+
const d = s.getRowByIndex(r);
|
|
75
|
+
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;">`);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
const
|
|
78
|
+
const qe = [
|
|
79
79
|
{
|
|
80
80
|
id: 1,
|
|
81
81
|
name: "Bitcoin",
|
|
@@ -2810,19 +2810,19 @@ const Ze = [
|
|
|
2810
2810
|
change90d: 12.43943602
|
|
2811
2811
|
}
|
|
2812
2812
|
];
|
|
2813
|
-
function
|
|
2814
|
-
const a =
|
|
2813
|
+
function Gr() {
|
|
2814
|
+
const a = qe, e = new we(), r = new ve(), n = new ke(), m = new xe(), s = new De(120), i = new Ue(), p = [
|
|
2815
2815
|
t.create({
|
|
2816
2816
|
property: "symbol",
|
|
2817
2817
|
headerLabel: "",
|
|
2818
|
-
width:
|
|
2818
|
+
width: h,
|
|
2819
2819
|
bodyClasses: ["ge-table-text-align-left"],
|
|
2820
|
-
bodyRenderer:
|
|
2820
|
+
bodyRenderer: i
|
|
2821
2821
|
}),
|
|
2822
2822
|
t.create({
|
|
2823
2823
|
property: "symbol",
|
|
2824
2824
|
headerLabel: "Name",
|
|
2825
|
-
width:
|
|
2825
|
+
width: b,
|
|
2826
2826
|
bodyClasses: ["ge-table-text-align-left"],
|
|
2827
2827
|
headerClasses: ["ge-table-text-align-left"],
|
|
2828
2828
|
bodyRenderer: n
|
|
@@ -2834,20 +2834,20 @@ function dr() {
|
|
|
2834
2834
|
bodyClasses: ["ge-table-text-align-right"],
|
|
2835
2835
|
headerClasses: ["ge-table-text-align-right"]
|
|
2836
2836
|
}),
|
|
2837
|
-
new t("change1h", "1h %", c, void 0, t.bodyRenderer(
|
|
2838
|
-
new t("change24h", "24h %", c, void 0, t.bodyRenderer(
|
|
2839
|
-
new t("change7d", "7d %", c, void 0, t.bodyRenderer(
|
|
2837
|
+
new t("change1h", "1h %", c, void 0, t.bodyRenderer(e)),
|
|
2838
|
+
new t("change24h", "24h %", c, void 0, t.bodyRenderer(e)),
|
|
2839
|
+
new t("change7d", "7d %", c, void 0, t.bodyRenderer(e)),
|
|
2840
2840
|
t.create({
|
|
2841
2841
|
property: "marketCapUsd",
|
|
2842
2842
|
headerLabel: "Market Cap",
|
|
2843
|
-
width:
|
|
2843
|
+
width: W,
|
|
2844
2844
|
bodyClasses: ["ge-table-text-align-right"],
|
|
2845
2845
|
headerClasses: ["ge-table-text-align-right"],
|
|
2846
|
-
bodyRenderer:
|
|
2846
|
+
bodyRenderer: r
|
|
2847
2847
|
}),
|
|
2848
2848
|
t.create({
|
|
2849
2849
|
headerLabel: "Volumne (24h)",
|
|
2850
|
-
width:
|
|
2850
|
+
width: v,
|
|
2851
2851
|
bodyClasses: ["ge-table-text-align-right"],
|
|
2852
2852
|
headerClasses: ["ge-table-text-align-right"],
|
|
2853
2853
|
bodyRenderer: m
|
|
@@ -2855,15 +2855,15 @@ function dr() {
|
|
|
2855
2855
|
t.create({
|
|
2856
2856
|
property: "circulatingSupply",
|
|
2857
2857
|
headerLabel: "Circulating Supply",
|
|
2858
|
-
width:
|
|
2858
|
+
width: C,
|
|
2859
2859
|
bodyRenderer: s,
|
|
2860
2860
|
bodyClasses: ["ge-table-text-align-right"],
|
|
2861
2861
|
headerClasses: ["ge-table-text-align-right"]
|
|
2862
2862
|
})
|
|
2863
2863
|
];
|
|
2864
|
-
|
|
2865
|
-
const
|
|
2866
|
-
...new
|
|
2864
|
+
p.forEach((l) => l.sortable = () => !0);
|
|
2865
|
+
const d = {
|
|
2866
|
+
...new N(),
|
|
2867
2867
|
hoverColumnVisible: !1,
|
|
2868
2868
|
verticalBorderVisible: !1,
|
|
2869
2869
|
defaultRowHeights: {
|
|
@@ -2872,33 +2872,33 @@ function dr() {
|
|
|
2872
2872
|
footer: 0
|
|
2873
2873
|
}
|
|
2874
2874
|
};
|
|
2875
|
-
return new
|
|
2876
|
-
|
|
2875
|
+
return new S(
|
|
2876
|
+
g.createTableModel({
|
|
2877
2877
|
rows: a,
|
|
2878
|
-
columnDefs:
|
|
2879
|
-
tableOptions:
|
|
2878
|
+
columnDefs: p,
|
|
2879
|
+
tableOptions: d
|
|
2880
2880
|
}),
|
|
2881
|
-
|
|
2881
|
+
d
|
|
2882
2882
|
);
|
|
2883
2883
|
}
|
|
2884
|
-
function
|
|
2885
|
-
const
|
|
2886
|
-
(s) => Array.from(Array(
|
|
2884
|
+
function Pr(a = 1e3, e = 1e3) {
|
|
2885
|
+
const r = Array.from(Array(a).keys()).map(
|
|
2886
|
+
(s) => Array.from(Array(e).keys()).map((i) => `${s}/${i}`)
|
|
2887
2887
|
), n = Array.from(Array(2).keys()).map(
|
|
2888
|
-
(s) => Array.from(Array(
|
|
2888
|
+
(s) => Array.from(Array(e).keys()).map((i) => `H${s}/${i}`)
|
|
2889
2889
|
), m = Array.from(Array(2).keys()).map(
|
|
2890
|
-
(s) => Array.from(Array(
|
|
2890
|
+
(s) => Array.from(Array(e).keys()).map((i) => `F${s}/${i}`)
|
|
2891
2891
|
);
|
|
2892
|
-
return
|
|
2892
|
+
return g.createTableModel({
|
|
2893
2893
|
headerData: n,
|
|
2894
|
-
bodyData:
|
|
2894
|
+
bodyData: r,
|
|
2895
2895
|
footerData: m,
|
|
2896
2896
|
overridingColumnWidth: 110,
|
|
2897
2897
|
fixedLeftColumnCount: 2,
|
|
2898
2898
|
fixedRightColumnCount: 2
|
|
2899
2899
|
});
|
|
2900
2900
|
}
|
|
2901
|
-
const
|
|
2901
|
+
const Be = [
|
|
2902
2902
|
{
|
|
2903
2903
|
id: 0,
|
|
2904
2904
|
preName: "Prename0",
|
|
@@ -164772,9 +164772,9 @@ const ze = [
|
|
|
164772
164772
|
friends: []
|
|
164773
164773
|
}
|
|
164774
164774
|
];
|
|
164775
|
-
function
|
|
164775
|
+
function Zr() {
|
|
164776
164776
|
const a = {
|
|
164777
|
-
...new
|
|
164777
|
+
...new N(),
|
|
164778
164778
|
hoverColumnVisible: !1,
|
|
164779
164779
|
defaultRowHeights: {
|
|
164780
164780
|
header: 50,
|
|
@@ -164783,27 +164783,27 @@ function pr() {
|
|
|
164783
164783
|
},
|
|
164784
164784
|
showCheckboxWihoutExtraColumn: !0
|
|
164785
164785
|
// <-- true: we will see the checkbox IN the first column after the arrow
|
|
164786
|
-
},
|
|
164786
|
+
}, e = [
|
|
164787
164787
|
// new CheckboxColumn(), // <--- not needed, because we have 'showCheckboxWihoutExtraColumn:true'
|
|
164788
|
-
new t("lastName", "Last Name", new
|
|
164789
|
-
new t("preName", "Pre Name", new
|
|
164790
|
-
new t("birth", "Birthday", new
|
|
164791
|
-
new t("gender", " ", new
|
|
164792
|
-
new t("address.street", "Strasse", new
|
|
164793
|
-
new t("address.number", "Nr", new
|
|
164794
|
-
new t("address.zip", "Zip", new
|
|
164795
|
-
new t("address.city", "City", new
|
|
164796
|
-
new t("id", "ID", new
|
|
164797
|
-
],
|
|
164798
|
-
return
|
|
164799
|
-
rows:
|
|
164800
|
-
columnDefs:
|
|
164788
|
+
new t("lastName", "Last Name", new u(250, "px")),
|
|
164789
|
+
new t("preName", "Pre Name", new u(120, "px")),
|
|
164790
|
+
new t("birth", "Birthday", new u(100, "px"), new P(), new P(void 0, new U(), void 0), void 0, void 0),
|
|
164791
|
+
new t("gender", " ", new u(50, "px"), new P(), new P(void 0, new j(), void 0), void 0, void 0),
|
|
164792
|
+
new t("address.street", "Strasse", new u(150, "px")),
|
|
164793
|
+
new t("address.number", "Nr", new u(70, "px")),
|
|
164794
|
+
new t("address.zip", "Zip", new u(60, "px")),
|
|
164795
|
+
new t("address.city", "City", new u(120, "px")),
|
|
164796
|
+
new t("id", "ID", new u(60, "px"))
|
|
164797
|
+
], r = Y.buildTreeRows(Be, "friends");
|
|
164798
|
+
return g.createTableModel({
|
|
164799
|
+
rows: r,
|
|
164800
|
+
columnDefs: e,
|
|
164801
164801
|
tableOptions: a,
|
|
164802
164802
|
fixedLeftColumnCount: 2,
|
|
164803
164803
|
fixedRightColumnCount: 0
|
|
164804
164804
|
});
|
|
164805
164805
|
}
|
|
164806
|
-
const
|
|
164806
|
+
const V = new ye(34, 50, 0), F = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), Ae = `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
|
|
164807
164807
|
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
|
|
164808
164808
|
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
|
|
164809
164809
|
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
|
|
@@ -164813,39 +164813,39 @@ const I = new me(34, 50, 0), H = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov
|
|
|
164813
164813
|
2016 34.5 37.7 48.9 53.3 62.8 72.3 78.7 79.2 71.8 58.8 49.8 38.3
|
|
164814
164814
|
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(`
|
|
164815
164815
|
`).map(
|
|
164816
|
-
(a) => a.split(" ").map((
|
|
164817
|
-
),
|
|
164818
|
-
class
|
|
164819
|
-
constructor(
|
|
164820
|
-
this.r =
|
|
164816
|
+
(a) => a.split(" ").map((e) => Number(e))
|
|
164817
|
+
), Me = 27.9, Ie = 77.4;
|
|
164818
|
+
class $ {
|
|
164819
|
+
constructor(e, r, n) {
|
|
164820
|
+
this.r = e, this.g = r, this.b = n;
|
|
164821
164821
|
}
|
|
164822
164822
|
}
|
|
164823
|
-
function
|
|
164824
|
-
return (a -
|
|
164823
|
+
function Re(a, e, r, n, m) {
|
|
164824
|
+
return (a - e) / (r - e) * (m - n) + n;
|
|
164825
164825
|
}
|
|
164826
|
-
function
|
|
164827
|
-
var n = new
|
|
164828
|
-
return
|
|
164826
|
+
function He(a, e, r) {
|
|
164827
|
+
var n = new $(255, 0, 0), m = new $(0, 0, 255), s = Re(r, a, e, 0, 1), i = m.r - n.r, p = m.g - n.g, d = m.b - n.b;
|
|
164828
|
+
return i = i * s + n.r, p = p * s + n.g, d = d * s + n.b, `rgb(${Math.round(i)}, ${Math.round(p)}, ${Math.round(d)})`;
|
|
164829
164829
|
}
|
|
164830
|
-
function
|
|
164831
|
-
const a = new
|
|
164830
|
+
function zr() {
|
|
164831
|
+
const a = new k("body", Ae, V.body), e = new Array(F.length).fill(50), r = new k("header", [F], V.header);
|
|
164832
164832
|
return a.getCustomStyleAt = (n, m) => {
|
|
164833
164833
|
let s = {};
|
|
164834
164834
|
if (m > 0) {
|
|
164835
|
-
const
|
|
164835
|
+
const i = a.getValueAt(n, m);
|
|
164836
164836
|
s = {
|
|
164837
|
-
background:
|
|
164837
|
+
background: He(Me, Ie, i),
|
|
164838
164838
|
color: "#fff"
|
|
164839
164839
|
};
|
|
164840
164840
|
}
|
|
164841
164841
|
return s.paddingTop = "10px", s;
|
|
164842
|
-
},
|
|
164843
|
-
headerAreaModel:
|
|
164842
|
+
}, g.createTableModel({
|
|
164843
|
+
headerAreaModel: r,
|
|
164844
164844
|
bodyAreaModel: a,
|
|
164845
|
-
columnSizes:
|
|
164845
|
+
columnSizes: e
|
|
164846
164846
|
});
|
|
164847
164847
|
}
|
|
164848
|
-
function
|
|
164848
|
+
function Oe() {
|
|
164849
164849
|
return [
|
|
164850
164850
|
{
|
|
164851
164851
|
date: "2010-01-01T01:00:00",
|
|
@@ -217403,12 +217403,12 @@ function Ue() {
|
|
|
217403
217403
|
}
|
|
217404
217404
|
];
|
|
217405
217405
|
}
|
|
217406
|
-
const
|
|
217407
|
-
|
|
217408
|
-
const [
|
|
217409
|
-
|
|
217406
|
+
const se = 30, Ve = 3, ie = Oe(), f = {};
|
|
217407
|
+
ie.forEach((a) => {
|
|
217408
|
+
const [e, r] = a.date.split("T");
|
|
217409
|
+
f[e] || (f[e] = {}), f[e][r.substring(0, 5)] = a;
|
|
217410
217410
|
});
|
|
217411
|
-
const
|
|
217411
|
+
const M = Object.keys(f), z = [
|
|
217412
217412
|
"06:00",
|
|
217413
217413
|
"07:00",
|
|
217414
217414
|
"08:00",
|
|
@@ -217434,76 +217434,76 @@ const q = Object.keys(b), G = [
|
|
|
217434
217434
|
"04:00",
|
|
217435
217435
|
"05:00"
|
|
217436
217436
|
];
|
|
217437
|
-
function
|
|
217438
|
-
let a = 10,
|
|
217439
|
-
return
|
|
217440
|
-
a = Math.min(a,
|
|
217441
|
-
}), [a,
|
|
217437
|
+
function Fe() {
|
|
217438
|
+
let a = 10, e = 0;
|
|
217439
|
+
return ie.forEach((r) => {
|
|
217440
|
+
a = Math.min(a, r.temperature), e = Math.max(e, r.temperature);
|
|
217441
|
+
}), [a, e];
|
|
217442
217442
|
}
|
|
217443
|
-
const [
|
|
217444
|
-
function
|
|
217445
|
-
const a = new
|
|
217446
|
-
return
|
|
217443
|
+
const [E, _] = Fe();
|
|
217444
|
+
function wr() {
|
|
217445
|
+
const a = new $e(), e = new Ee(), r = [60, ...new Array(M.length).fill(Ve)];
|
|
217446
|
+
return g.createTableModel({
|
|
217447
217447
|
bodyAreaModel: a,
|
|
217448
|
-
footerAreaModel:
|
|
217449
|
-
columnSizes:
|
|
217448
|
+
footerAreaModel: e,
|
|
217449
|
+
columnSizes: r,
|
|
217450
217450
|
fixedLeftColumnCount: 1
|
|
217451
217451
|
});
|
|
217452
217452
|
}
|
|
217453
|
-
class
|
|
217453
|
+
class $e extends I {
|
|
217454
217454
|
getRowCount() {
|
|
217455
|
-
return
|
|
217455
|
+
return z.length;
|
|
217456
217456
|
}
|
|
217457
|
-
getRowHeight(
|
|
217458
|
-
return
|
|
217457
|
+
getRowHeight(e) {
|
|
217458
|
+
return se;
|
|
217459
217459
|
}
|
|
217460
|
-
getValueAt(
|
|
217461
|
-
return
|
|
217460
|
+
getValueAt(e, r) {
|
|
217461
|
+
return r === 0 ? z[e] : "";
|
|
217462
217462
|
}
|
|
217463
|
-
getTooltipAt(
|
|
217464
|
-
if (
|
|
217463
|
+
getTooltipAt(e, r) {
|
|
217464
|
+
if (r === 0)
|
|
217465
217465
|
return "";
|
|
217466
|
-
|
|
217467
|
-
const n =
|
|
217468
|
-
return
|
|
217466
|
+
r--;
|
|
217467
|
+
const n = M[r], m = z[e];
|
|
217468
|
+
return f[n] && f[n][m] ? `${n} ${m} → ${f[n][m].temperature}` : "";
|
|
217469
217469
|
}
|
|
217470
|
-
getCustomStyleAt(
|
|
217471
|
-
if (
|
|
217470
|
+
getCustomStyleAt(e, r) {
|
|
217471
|
+
if (r === 0)
|
|
217472
217472
|
return;
|
|
217473
|
-
|
|
217474
|
-
const n =
|
|
217475
|
-
if (!
|
|
217476
|
-
const s =
|
|
217473
|
+
r--;
|
|
217474
|
+
const n = M[r], m = z[e];
|
|
217475
|
+
if (!f[n] || !f[n][m]) return;
|
|
217476
|
+
const s = f[n][m].temperature, i = new q(67, 1, 84), p = new q(31, 144, 141), d = new q(250, 230, 37), l = (_ + E) / 2, o = new pe(E, i, l, p, _, d);
|
|
217477
217477
|
return {
|
|
217478
|
-
background:
|
|
217478
|
+
background: ue.getThreeColorGradientRGB(s, o),
|
|
217479
217479
|
color: "transparent"
|
|
217480
217480
|
// we only want to show the bg color
|
|
217481
217481
|
};
|
|
217482
217482
|
}
|
|
217483
217483
|
}
|
|
217484
|
-
class
|
|
217484
|
+
class Ee extends I {
|
|
217485
217485
|
getRowCount() {
|
|
217486
217486
|
return 1;
|
|
217487
217487
|
}
|
|
217488
|
-
getRowHeight(
|
|
217489
|
-
return
|
|
217488
|
+
getRowHeight(e) {
|
|
217489
|
+
return se;
|
|
217490
217490
|
}
|
|
217491
|
-
getValueAt(
|
|
217492
|
-
return
|
|
217491
|
+
getValueAt(e, r) {
|
|
217492
|
+
return r === 1 ? "Jan" : r === 32 ? "Feb" : r === 60 ? "Mar" : r === 91 ? "Apr" : r === 121 ? "May" : r === 152 ? "Jun" : r === 182 ? "Jul" : r === 213 ? "Aug" : r === 244 ? "Sep" : r === 274 ? "Oct" : r === 305 ? "Nov" : r === 335 ? "Dec" : "";
|
|
217493
217493
|
}
|
|
217494
|
-
getColspanAt(
|
|
217495
|
-
return
|
|
217494
|
+
getColspanAt(e, r) {
|
|
217495
|
+
return r === 1 ? 31 : r === 32 ? 28 : r === 60 ? 31 : r === 91 ? 30 : r === 121 ? 31 : r === 152 ? 30 : r === 182 || r === 213 ? 31 : r === 244 ? 30 : r === 274 ? 31 : r === 305 ? 30 : r === 335 ? 31 : 0;
|
|
217496
217496
|
}
|
|
217497
217497
|
getMaxColspan() {
|
|
217498
217498
|
return 32;
|
|
217499
217499
|
}
|
|
217500
|
-
getCustomStyleAt(
|
|
217500
|
+
getCustomStyleAt(e, r) {
|
|
217501
217501
|
return {
|
|
217502
|
-
"border-left":
|
|
217502
|
+
"border-left": r > 2 ? "solid 1px #555" : "none"
|
|
217503
217503
|
};
|
|
217504
217504
|
}
|
|
217505
217505
|
}
|
|
217506
|
-
const
|
|
217506
|
+
const B = [
|
|
217507
217507
|
{
|
|
217508
217508
|
data: "Gold",
|
|
217509
217509
|
toggle: !0,
|
|
@@ -217590,9 +217590,9 @@ const x = [
|
|
|
217590
217590
|
]
|
|
217591
217591
|
}
|
|
217592
217592
|
];
|
|
217593
|
-
function
|
|
217594
|
-
const
|
|
217595
|
-
console.info("headerGroups",
|
|
217593
|
+
function vr() {
|
|
217594
|
+
const e = x.buildGroupExts(B), r = x.buildColumnDefs(e), n = new X("header", B, r, 34);
|
|
217595
|
+
console.info("headerGroups", B), console.info("columnDefs", r.map((i) => i.property));
|
|
217596
217596
|
const m = [
|
|
217597
217597
|
{
|
|
217598
217598
|
GOLD: 146,
|
|
@@ -217610,14 +217610,14 @@ function lr() {
|
|
|
217610
217610
|
HOH_C: 53,
|
|
217611
217611
|
HOH_D: 54
|
|
217612
217612
|
}
|
|
217613
|
-
], s = new
|
|
217614
|
-
return
|
|
217613
|
+
], s = new R("body", m, r, 34);
|
|
217614
|
+
return g.createTableModel({
|
|
217615
217615
|
headerAreaModel: n,
|
|
217616
217616
|
bodyAreaModel: s,
|
|
217617
|
-
columnDefs:
|
|
217617
|
+
columnDefs: r
|
|
217618
217618
|
});
|
|
217619
217619
|
}
|
|
217620
|
-
const
|
|
217620
|
+
const _e = [
|
|
217621
217621
|
{
|
|
217622
217622
|
data: "Team A",
|
|
217623
217623
|
toggle: !0,
|
|
@@ -217638,9 +217638,9 @@ const Re = [
|
|
|
217638
217638
|
]
|
|
217639
217639
|
}
|
|
217640
217640
|
];
|
|
217641
|
-
function
|
|
217642
|
-
const
|
|
217643
|
-
console.info("headerGroups", a), console.info("columnDefs", n.map((
|
|
217641
|
+
function kr(a = _e) {
|
|
217642
|
+
const r = x.buildGroupExts(a), n = x.buildColumnDefs(r), m = new X("header", a, n, 34);
|
|
217643
|
+
console.info("headerGroups", a), console.info("columnDefs", n.map((p) => p.property)), console.info("columnDefs", n);
|
|
217644
217644
|
const s = [
|
|
217645
217645
|
{
|
|
217646
217646
|
team_a: 0,
|
|
@@ -217648,14 +217648,14 @@ function gr(a = Re) {
|
|
|
217648
217648
|
peter: 5,
|
|
217649
217649
|
paul: 4
|
|
217650
217650
|
}
|
|
217651
|
-
],
|
|
217652
|
-
return
|
|
217651
|
+
], i = new R("body", s, n, 34);
|
|
217652
|
+
return g.createTableModel({
|
|
217653
217653
|
headerAreaModel: m,
|
|
217654
|
-
bodyAreaModel:
|
|
217654
|
+
bodyAreaModel: i,
|
|
217655
217655
|
columnDefs: n
|
|
217656
217656
|
});
|
|
217657
217657
|
}
|
|
217658
|
-
function
|
|
217658
|
+
function Ke() {
|
|
217659
217659
|
return [
|
|
217660
217660
|
{
|
|
217661
217661
|
id: 1,
|
|
@@ -217835,9 +217835,9 @@ function Ie() {
|
|
|
217835
217835
|
}
|
|
217836
217836
|
];
|
|
217837
217837
|
}
|
|
217838
|
-
function
|
|
217838
|
+
function We() {
|
|
217839
217839
|
return [
|
|
217840
|
-
new t("firstName", "First Name",
|
|
217840
|
+
new t("firstName", "First Name", b),
|
|
217841
217841
|
new t("lastName", "Last Name"),
|
|
217842
217842
|
t.create({
|
|
217843
217843
|
property: "gender",
|
|
@@ -217848,22 +217848,22 @@ function He() {
|
|
|
217848
217848
|
t.create({
|
|
217849
217849
|
property: "email",
|
|
217850
217850
|
headerLabel: "Email",
|
|
217851
|
-
width:
|
|
217851
|
+
width: ce,
|
|
217852
217852
|
bodyClasses: ["ge-table-text-align-left"]
|
|
217853
217853
|
}),
|
|
217854
|
-
new t("ipAddress", "IP",
|
|
217854
|
+
new t("ipAddress", "IP", J),
|
|
217855
217855
|
t.create({
|
|
217856
217856
|
property: "id",
|
|
217857
217857
|
headerLabel: "ID",
|
|
217858
|
-
width:
|
|
217858
|
+
width: le,
|
|
217859
217859
|
// bodyRenderer: actionRenderer,
|
|
217860
217860
|
bodyClasses: ["ge-table-text-align-left"]
|
|
217861
217861
|
})
|
|
217862
217862
|
];
|
|
217863
217863
|
}
|
|
217864
|
-
function
|
|
217864
|
+
function je() {
|
|
217865
217865
|
return {
|
|
217866
|
-
...new
|
|
217866
|
+
...new N(),
|
|
217867
217867
|
hoverColumnVisible: !1,
|
|
217868
217868
|
defaultRowHeights: {
|
|
217869
217869
|
header: 40,
|
|
@@ -217872,19 +217872,19 @@ function Ve() {
|
|
|
217872
217872
|
}
|
|
217873
217873
|
};
|
|
217874
217874
|
}
|
|
217875
|
-
function
|
|
217876
|
-
const a =
|
|
217877
|
-
return
|
|
217878
|
-
rows:
|
|
217879
|
-
columnDefs:
|
|
217875
|
+
function xr() {
|
|
217876
|
+
const a = je(), e = Ke(), r = We();
|
|
217877
|
+
return g.createTableModel({
|
|
217878
|
+
rows: e,
|
|
217879
|
+
columnDefs: r,
|
|
217880
217880
|
tableOptions: a,
|
|
217881
217881
|
fixedLeftColumnCount: 0
|
|
217882
217882
|
});
|
|
217883
217883
|
}
|
|
217884
|
-
function
|
|
217885
|
-
a.rendererMap = new
|
|
217884
|
+
function Dr(a, e) {
|
|
217885
|
+
a.rendererMap = new P(void 0, e, void 0);
|
|
217886
217886
|
}
|
|
217887
|
-
const
|
|
217887
|
+
const Ye = [
|
|
217888
217888
|
{
|
|
217889
217889
|
id: 1,
|
|
217890
217890
|
city: "London",
|
|
@@ -218032,36 +218032,36 @@ const Oe = [
|
|
|
218032
218032
|
team: { name: "Team TCC", active: !0 },
|
|
218033
218033
|
data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
|
|
218034
218034
|
}
|
|
218035
|
-
].map((a) => (a.updatedAt = /* @__PURE__ */ new Date(), a)),
|
|
218036
|
-
new t("city", "City", new
|
|
218037
|
-
new t("location", "Location", new
|
|
218038
|
-
new t("team.name", "Team", new
|
|
218035
|
+
].map((a) => (a.updatedAt = /* @__PURE__ */ new Date(), a)), D = [
|
|
218036
|
+
new t("city", "City", new u(90, "px")),
|
|
218037
|
+
new t("location", "Location", new u(100, "px")),
|
|
218038
|
+
new t("team.name", "Team", new u(100, "px")),
|
|
218039
218039
|
t.create({
|
|
218040
218040
|
property: "team.active",
|
|
218041
218041
|
headerLabel: "Active",
|
|
218042
|
-
width: new
|
|
218043
|
-
bodyRenderer: new
|
|
218042
|
+
width: new u(60, "px"),
|
|
218043
|
+
bodyRenderer: new Q()
|
|
218044
218044
|
}),
|
|
218045
|
-
new t("data.0", "00", new
|
|
218046
|
-
new t("data.1", "15", new
|
|
218047
|
-
new t("data.2", "30", new
|
|
218048
|
-
new t("data.3", "45", new
|
|
218049
|
-
new t("data.4", "00", new
|
|
218050
|
-
new t("data.5", "15", new
|
|
218051
|
-
new t("data.6", "30", new
|
|
218052
|
-
new t("data.7", "45", new
|
|
218053
|
-
new t("data.8", "00", new
|
|
218054
|
-
new t("data.9", "15", new
|
|
218055
|
-
new t("data.10", "30", new
|
|
218056
|
-
new t("data.11", "45", new
|
|
218045
|
+
new t("data.0", "00", new u(60, "px")),
|
|
218046
|
+
new t("data.1", "15", new u(60, "px")),
|
|
218047
|
+
new t("data.2", "30", new u(60, "px")),
|
|
218048
|
+
new t("data.3", "45", new u(60, "px")),
|
|
218049
|
+
new t("data.4", "00", new u(60, "px")),
|
|
218050
|
+
new t("data.5", "15", new u(60, "px")),
|
|
218051
|
+
new t("data.6", "30", new u(60, "px")),
|
|
218052
|
+
new t("data.7", "45", new u(60, "px")),
|
|
218053
|
+
new t("data.8", "00", new u(60, "px")),
|
|
218054
|
+
new t("data.9", "15", new u(60, "px")),
|
|
218055
|
+
new t("data.10", "30", new u(60, "px")),
|
|
218056
|
+
new t("data.11", "45", new u(60, "px")),
|
|
218057
218057
|
t.create({
|
|
218058
218058
|
property: "updatedAt",
|
|
218059
218059
|
headerLabel: "Updated at",
|
|
218060
|
-
width: new
|
|
218061
|
-
bodyRenderer: new
|
|
218060
|
+
width: new u(175, "px"),
|
|
218061
|
+
bodyRenderer: new ge()
|
|
218062
218062
|
})
|
|
218063
|
-
],
|
|
218064
|
-
...new
|
|
218063
|
+
], Ur = D.length - 1, Xe = {
|
|
218064
|
+
...new N(),
|
|
218065
218065
|
hoverRowVisible: !1,
|
|
218066
218066
|
hoverColumnVisible: !1,
|
|
218067
218067
|
defaultRowHeights: {
|
|
@@ -218072,81 +218072,81 @@ const Oe = [
|
|
|
218072
218072
|
columnsDraggable: !1,
|
|
218073
218073
|
columnsResizable: !0
|
|
218074
218074
|
};
|
|
218075
|
-
function
|
|
218076
|
-
const a =
|
|
218077
|
-
return
|
|
218078
|
-
headerAreaModel: new
|
|
218079
|
-
bodyAreaModel: new
|
|
218080
|
-
footerAreaModel: new
|
|
218081
|
-
columnDefs:
|
|
218075
|
+
function qr() {
|
|
218076
|
+
const a = Xe.defaultRowHeights;
|
|
218077
|
+
return g.createTableModel({
|
|
218078
|
+
headerAreaModel: new Qe(a.header),
|
|
218079
|
+
bodyAreaModel: new Je(a.body),
|
|
218080
|
+
footerAreaModel: new er(a.footer),
|
|
218081
|
+
columnDefs: D,
|
|
218082
218082
|
fixedLeftColumnCount: 2,
|
|
218083
218083
|
fixedRightColumnCount: 1,
|
|
218084
218084
|
defaultRowHeights: a,
|
|
218085
|
-
columnCount:
|
|
218085
|
+
columnCount: D.length
|
|
218086
218086
|
});
|
|
218087
218087
|
}
|
|
218088
|
-
class
|
|
218089
|
-
constructor(
|
|
218090
|
-
super("body",
|
|
218088
|
+
class Je extends R {
|
|
218089
|
+
constructor(e) {
|
|
218090
|
+
super("body", Ye, D, e);
|
|
218091
218091
|
}
|
|
218092
|
-
getRowspanAt(
|
|
218093
|
-
if (
|
|
218094
|
-
const n = this.getValueAt(
|
|
218095
|
-
if (
|
|
218096
|
-
return this.countNextWithValue(
|
|
218092
|
+
getRowspanAt(e, r) {
|
|
218093
|
+
if (r === 0 || r == 1) {
|
|
218094
|
+
const n = this.getValueAt(e, r);
|
|
218095
|
+
if (e === 0 || n !== this.getValueAt(e - 1, r))
|
|
218096
|
+
return this.countNextWithValue(e, r, n);
|
|
218097
218097
|
}
|
|
218098
218098
|
return 1;
|
|
218099
218099
|
}
|
|
218100
|
-
countNextWithValue(
|
|
218100
|
+
countNextWithValue(e, r, n) {
|
|
218101
218101
|
let m = 1;
|
|
218102
|
-
for (; n === this.getValueAt(
|
|
218102
|
+
for (; n === this.getValueAt(e + m, r); )
|
|
218103
218103
|
m++;
|
|
218104
218104
|
return m;
|
|
218105
218105
|
}
|
|
218106
218106
|
}
|
|
218107
|
-
class
|
|
218108
|
-
constructor(
|
|
218107
|
+
class Qe extends k {
|
|
218108
|
+
constructor(e) {
|
|
218109
218109
|
super(
|
|
218110
218110
|
"header",
|
|
218111
218111
|
[
|
|
218112
218112
|
["City", "Location", "Team", "", "08:00 - 09:00", "", "", "", "09:00 - 10:00", "", "", "", "10:00 - 11:00", "", "", "", "Updated At"],
|
|
218113
218113
|
["", "", "Name", "Active", "00", "15", "30", "45", "00", "15", "30", "45", "00", "15", "30", "45", ""]
|
|
218114
218114
|
],
|
|
218115
|
-
|
|
218115
|
+
e
|
|
218116
218116
|
);
|
|
218117
218117
|
}
|
|
218118
|
-
getColspanAt(
|
|
218119
|
-
if (
|
|
218120
|
-
if (
|
|
218118
|
+
getColspanAt(e, r) {
|
|
218119
|
+
if (e === 0) {
|
|
218120
|
+
if (r === 2 || r === 2)
|
|
218121
218121
|
return 2;
|
|
218122
|
-
if (
|
|
218122
|
+
if (r === 4 || r === 8 || r === 12)
|
|
218123
218123
|
return 4;
|
|
218124
218124
|
}
|
|
218125
218125
|
return 1;
|
|
218126
218126
|
}
|
|
218127
|
-
getRowspanAt(
|
|
218128
|
-
return
|
|
218127
|
+
getRowspanAt(e, r) {
|
|
218128
|
+
return e === 0 && (r === 0 || r === 1 || r === 16) ? 2 : 1;
|
|
218129
218129
|
}
|
|
218130
|
-
getCustomClassesAt(
|
|
218130
|
+
getCustomClassesAt(e, r) {
|
|
218131
218131
|
return ["ge-font-weight-bold"];
|
|
218132
218132
|
}
|
|
218133
218133
|
}
|
|
218134
|
-
class
|
|
218135
|
-
constructor(
|
|
218134
|
+
class er extends k {
|
|
218135
|
+
constructor(e) {
|
|
218136
218136
|
super(
|
|
218137
218137
|
"footer",
|
|
218138
218138
|
[["", "", "Sum of Quarters:", "", "123", "432", "", "", "", "", "", "", "", "", "", "", ""]],
|
|
218139
|
-
|
|
218139
|
+
e
|
|
218140
218140
|
);
|
|
218141
218141
|
}
|
|
218142
|
-
getColspanAt(
|
|
218143
|
-
return
|
|
218142
|
+
getColspanAt(e, r) {
|
|
218143
|
+
return r == 0 || r == 2 ? 2 : 1;
|
|
218144
218144
|
}
|
|
218145
|
-
getCustomClassesAt(
|
|
218146
|
-
return
|
|
218145
|
+
getCustomClassesAt(e, r) {
|
|
218146
|
+
return r === 2 ? ["ge-text-align-right", "ge-font-weight-bold"] : [];
|
|
218147
218147
|
}
|
|
218148
218148
|
}
|
|
218149
|
-
const
|
|
218149
|
+
const rr = [
|
|
218150
218150
|
{
|
|
218151
218151
|
id: "c8-34f1d5",
|
|
218152
218152
|
company: "Equicom",
|
|
@@ -220084,88 +220084,88 @@ const Ke = [
|
|
|
220084
220084
|
rating: 5
|
|
220085
220085
|
}
|
|
220086
220086
|
];
|
|
220087
|
-
function
|
|
220088
|
-
return
|
|
220087
|
+
function ar() {
|
|
220088
|
+
return rr;
|
|
220089
220089
|
}
|
|
220090
|
-
function
|
|
220090
|
+
function tr() {
|
|
220091
220091
|
return [
|
|
220092
220092
|
t.create({
|
|
220093
220093
|
property: "company",
|
|
220094
220094
|
headerLabel: "Company",
|
|
220095
|
-
width:
|
|
220095
|
+
width: b,
|
|
220096
220096
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220097
220097
|
headerClasses: ["ge-table-text-align-left"],
|
|
220098
|
-
sortable:
|
|
220098
|
+
sortable: y
|
|
220099
220099
|
}),
|
|
220100
220100
|
t.create({
|
|
220101
220101
|
property: "country",
|
|
220102
220102
|
headerLabel: "Country",
|
|
220103
|
-
width:
|
|
220103
|
+
width: C,
|
|
220104
220104
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220105
220105
|
headerClasses: ["ge-table-text-align-left"],
|
|
220106
|
-
sortable:
|
|
220106
|
+
sortable: y
|
|
220107
220107
|
}),
|
|
220108
220108
|
t.create({
|
|
220109
220109
|
property: "product",
|
|
220110
220110
|
headerLabel: "Name",
|
|
220111
|
-
width:
|
|
220111
|
+
width: b,
|
|
220112
220112
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220113
220113
|
headerClasses: ["ge-table-text-align-left"],
|
|
220114
|
-
sortable:
|
|
220114
|
+
sortable: y
|
|
220115
220115
|
}),
|
|
220116
220116
|
t.create({
|
|
220117
220117
|
property: "sellDate",
|
|
220118
220118
|
headerLabel: "Sell date",
|
|
220119
220119
|
width: c,
|
|
220120
|
-
bodyRenderer: new
|
|
220120
|
+
bodyRenderer: new U(),
|
|
220121
220121
|
bodyClasses: ["ge-table-text-align-center"],
|
|
220122
|
-
sortable:
|
|
220122
|
+
sortable: y
|
|
220123
220123
|
}),
|
|
220124
220124
|
t.create({
|
|
220125
220125
|
property: "id",
|
|
220126
220126
|
headerLabel: "Order ID",
|
|
220127
|
-
width:
|
|
220127
|
+
width: b,
|
|
220128
220128
|
bodyClasses: ["ge-table-text-align-center"],
|
|
220129
|
-
sortable:
|
|
220129
|
+
sortable: y
|
|
220130
220130
|
}),
|
|
220131
220131
|
t.create({
|
|
220132
220132
|
property: "inStock",
|
|
220133
220133
|
headerLabel: "In stock",
|
|
220134
|
-
width:
|
|
220135
|
-
bodyRenderer: new
|
|
220134
|
+
width: re,
|
|
220135
|
+
bodyRenderer: new ee("inStock", !0, !0),
|
|
220136
220136
|
bodyClasses: ["ge-table-text-align-center"],
|
|
220137
|
-
sortable:
|
|
220137
|
+
sortable: y
|
|
220138
220138
|
}),
|
|
220139
220139
|
t.create({
|
|
220140
220140
|
property: "quantity",
|
|
220141
220141
|
headerLabel: "Qty",
|
|
220142
|
-
width:
|
|
220142
|
+
width: h,
|
|
220143
220143
|
bodyClasses: ["ge-table-text-align-right"],
|
|
220144
220144
|
headerClasses: ["ge-table-text-align-right"],
|
|
220145
|
-
sortable:
|
|
220145
|
+
sortable: y
|
|
220146
220146
|
}),
|
|
220147
220147
|
t.create({
|
|
220148
220148
|
property: "progress",
|
|
220149
220149
|
headerLabel: "Progress",
|
|
220150
220150
|
width: c,
|
|
220151
|
-
bodyRenderer: new
|
|
220151
|
+
bodyRenderer: new ae("progress", 5, !0),
|
|
220152
220152
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220153
|
-
sortable:
|
|
220153
|
+
sortable: y
|
|
220154
220154
|
}),
|
|
220155
220155
|
t.create({
|
|
220156
220156
|
property: "rating",
|
|
220157
220157
|
headerLabel: "Rating",
|
|
220158
220158
|
width: c,
|
|
220159
|
-
bodyRenderer: new
|
|
220159
|
+
bodyRenderer: new te("rating"),
|
|
220160
220160
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220161
|
-
sortable:
|
|
220161
|
+
sortable: y
|
|
220162
220162
|
})
|
|
220163
220163
|
];
|
|
220164
220164
|
}
|
|
220165
|
-
function
|
|
220166
|
-
const a = new
|
|
220165
|
+
function nr() {
|
|
220166
|
+
const a = new L("row", "multi");
|
|
220167
220167
|
return {
|
|
220168
|
-
...new
|
|
220168
|
+
...new N(),
|
|
220169
220169
|
hoverColumnVisible: !1,
|
|
220170
220170
|
defaultRowHeights: {
|
|
220171
220171
|
header: 24,
|
|
@@ -220175,46 +220175,46 @@ function Xe() {
|
|
|
220175
220175
|
getSelectionModel: () => a
|
|
220176
220176
|
};
|
|
220177
220177
|
}
|
|
220178
|
-
function
|
|
220179
|
-
const a =
|
|
220180
|
-
return new
|
|
220181
|
-
|
|
220182
|
-
rows:
|
|
220183
|
-
columnDefs:
|
|
220178
|
+
function Br() {
|
|
220179
|
+
const a = nr(), e = ar(), r = tr();
|
|
220180
|
+
return new S(
|
|
220181
|
+
g.createTableModel({
|
|
220182
|
+
rows: e,
|
|
220183
|
+
columnDefs: r,
|
|
220184
220184
|
tableOptions: a,
|
|
220185
220185
|
fixedLeftColumnCount: 0
|
|
220186
220186
|
}),
|
|
220187
220187
|
a
|
|
220188
220188
|
);
|
|
220189
220189
|
}
|
|
220190
|
-
function
|
|
220190
|
+
function K() {
|
|
220191
220191
|
return [
|
|
220192
220192
|
t.create({
|
|
220193
220193
|
headerLabel: "ID",
|
|
220194
|
-
width:
|
|
220194
|
+
width: b,
|
|
220195
220195
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220196
220196
|
headerClasses: ["ge-table-text-align-left"],
|
|
220197
|
-
sortable:
|
|
220197
|
+
sortable: A
|
|
220198
220198
|
}),
|
|
220199
220199
|
t.create({
|
|
220200
220200
|
headerLabel: "Value",
|
|
220201
|
-
width:
|
|
220201
|
+
width: v,
|
|
220202
220202
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220203
220203
|
headerClasses: ["ge-table-text-align-left"],
|
|
220204
|
-
sortable:
|
|
220204
|
+
sortable: A
|
|
220205
220205
|
}),
|
|
220206
220206
|
t.create({
|
|
220207
220207
|
headerLabel: " ",
|
|
220208
|
-
width:
|
|
220208
|
+
width: v,
|
|
220209
220209
|
bodyClasses: ["ge-table-text-align-right"],
|
|
220210
220210
|
headerClasses: ["ge-table-text-align-right"]
|
|
220211
220211
|
})
|
|
220212
220212
|
];
|
|
220213
220213
|
}
|
|
220214
|
-
function
|
|
220215
|
-
const a = new
|
|
220214
|
+
function mr() {
|
|
220215
|
+
const a = new L();
|
|
220216
220216
|
return {
|
|
220217
|
-
...new
|
|
220217
|
+
...new N(),
|
|
220218
220218
|
hoverColumnVisible: !1,
|
|
220219
220219
|
defaultRowHeights: {
|
|
220220
220220
|
header: 34,
|
|
@@ -220224,39 +220224,44 @@ function Je() {
|
|
|
220224
220224
|
getSelectionModel: () => a
|
|
220225
220225
|
};
|
|
220226
220226
|
}
|
|
220227
|
-
function
|
|
220228
|
-
const r =
|
|
220229
|
-
return new
|
|
220230
|
-
bodyAreaModel:
|
|
220231
|
-
columnDefs:
|
|
220227
|
+
function Ar(a = 1e6, e = !1) {
|
|
220228
|
+
const r = mr(), n = e ? [new Ne({ format: (i) => i.toLocaleString("en-US") }), ...K()] : K(), m = e ? 1 : 0, s = new sr(a, m);
|
|
220229
|
+
return new S(g.createTableModel({
|
|
220230
|
+
bodyAreaModel: s,
|
|
220231
|
+
columnDefs: n,
|
|
220232
220232
|
tableOptions: r,
|
|
220233
|
-
fixedLeftColumnCount:
|
|
220233
|
+
fixedLeftColumnCount: m
|
|
220234
220234
|
}), r);
|
|
220235
220235
|
}
|
|
220236
|
-
class
|
|
220237
|
-
|
|
220238
|
-
|
|
220236
|
+
class sr extends I {
|
|
220237
|
+
/**
|
|
220238
|
+
* @param rowcount - number of rows
|
|
220239
|
+
* @param columnOffset - columns in front of the data columns (1 for a RowNumberColumnDef)
|
|
220240
|
+
*/
|
|
220241
|
+
constructor(e = 1e6, r = 0) {
|
|
220242
|
+
super(), this.rowcount = e, this.columnOffset = r, this.nf = new Intl.NumberFormat("en-Us", {}), this.barRenderer = new be(e, !1);
|
|
220239
220243
|
}
|
|
220240
220244
|
getRowCount() {
|
|
220241
220245
|
return this.rowcount;
|
|
220242
220246
|
}
|
|
220243
|
-
getRowHeight(
|
|
220247
|
+
getRowHeight(e) {
|
|
220244
220248
|
return 34;
|
|
220245
220249
|
}
|
|
220246
220250
|
getConstantRowHeight() {
|
|
220247
220251
|
return 34;
|
|
220248
220252
|
}
|
|
220249
|
-
getValueAt(
|
|
220250
|
-
|
|
220253
|
+
getValueAt(e, r) {
|
|
220254
|
+
const n = r - this.columnOffset;
|
|
220255
|
+
return n < 0 ? "" : n === 0 ? "id" + e : n === 1 ? this.nf.format(e) : e;
|
|
220251
220256
|
}
|
|
220252
|
-
getCellRenderer(
|
|
220253
|
-
if (
|
|
220257
|
+
getCellRenderer(e, r) {
|
|
220258
|
+
if (r - this.columnOffset === 2) return this.barRenderer;
|
|
220254
220259
|
}
|
|
220255
|
-
getYPosByRowIndex(
|
|
220256
|
-
return
|
|
220260
|
+
getYPosByRowIndex(e) {
|
|
220261
|
+
return e * this.getRowHeight(0);
|
|
220257
220262
|
}
|
|
220258
220263
|
}
|
|
220259
|
-
const
|
|
220264
|
+
const ir = [
|
|
220260
220265
|
{
|
|
220261
220266
|
id: "f0-bfbecb",
|
|
220262
220267
|
company: "Medmex",
|
|
@@ -221728,10 +221733,10 @@ const er = [
|
|
|
221728
221733
|
f2: 28.55122067
|
|
221729
221734
|
}
|
|
221730
221735
|
];
|
|
221731
|
-
function
|
|
221732
|
-
return
|
|
221736
|
+
function dr(a = 75) {
|
|
221737
|
+
return ir.slice(0, a - 1);
|
|
221733
221738
|
}
|
|
221734
|
-
function
|
|
221739
|
+
function yr(a) {
|
|
221735
221740
|
return [
|
|
221736
221741
|
t.create({
|
|
221737
221742
|
property: "company",
|
|
@@ -221739,16 +221744,16 @@ function ar(a) {
|
|
|
221739
221744
|
width: c,
|
|
221740
221745
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221741
221746
|
headerClasses: ["ge-table-text-align-left"],
|
|
221742
|
-
sortable:
|
|
221747
|
+
sortable: y,
|
|
221743
221748
|
editable: () => a
|
|
221744
221749
|
}),
|
|
221745
221750
|
t.create({
|
|
221746
221751
|
property: "country",
|
|
221747
221752
|
headerLabel: "Country",
|
|
221748
|
-
width:
|
|
221753
|
+
width: C,
|
|
221749
221754
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221750
221755
|
headerClasses: ["ge-table-text-align-left"],
|
|
221751
|
-
sortable:
|
|
221756
|
+
sortable: y,
|
|
221752
221757
|
editable: () => a
|
|
221753
221758
|
}),
|
|
221754
221759
|
t.create({
|
|
@@ -221757,7 +221762,7 @@ function ar(a) {
|
|
|
221757
221762
|
width: c,
|
|
221758
221763
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221759
221764
|
headerClasses: ["ge-table-text-align-left"],
|
|
221760
|
-
sortable:
|
|
221765
|
+
sortable: y,
|
|
221761
221766
|
editable: () => a
|
|
221762
221767
|
}),
|
|
221763
221768
|
t.create({
|
|
@@ -221765,24 +221770,24 @@ function ar(a) {
|
|
|
221765
221770
|
headerLabel: "Birth Date",
|
|
221766
221771
|
width: c,
|
|
221767
221772
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221768
|
-
sortable:
|
|
221773
|
+
sortable: y,
|
|
221769
221774
|
editable: () => a
|
|
221770
221775
|
}),
|
|
221771
221776
|
t.create({
|
|
221772
221777
|
property: "sellDate",
|
|
221773
221778
|
headerLabel: "Sell date",
|
|
221774
221779
|
width: c,
|
|
221775
|
-
bodyRenderer: new
|
|
221780
|
+
bodyRenderer: new U(),
|
|
221776
221781
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221777
|
-
sortable:
|
|
221782
|
+
sortable: y,
|
|
221778
221783
|
editable: () => a
|
|
221779
221784
|
}),
|
|
221780
221785
|
t.create({
|
|
221781
221786
|
property: "lastVisit",
|
|
221782
221787
|
headerLabel: "Last Visit",
|
|
221783
|
-
width:
|
|
221788
|
+
width: ne,
|
|
221784
221789
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221785
|
-
sortable:
|
|
221790
|
+
sortable: y,
|
|
221786
221791
|
editable: () => a
|
|
221787
221792
|
}),
|
|
221788
221793
|
t.create({
|
|
@@ -221790,71 +221795,71 @@ function ar(a) {
|
|
|
221790
221795
|
headerLabel: "Time",
|
|
221791
221796
|
width: c,
|
|
221792
221797
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221793
|
-
sortable:
|
|
221798
|
+
sortable: y,
|
|
221794
221799
|
editable: () => a
|
|
221795
221800
|
}),
|
|
221796
221801
|
t.create({
|
|
221797
221802
|
property: "id",
|
|
221798
221803
|
headerLabel: "Order ID",
|
|
221799
|
-
width:
|
|
221804
|
+
width: b,
|
|
221800
221805
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221801
|
-
sortable:
|
|
221806
|
+
sortable: y
|
|
221802
221807
|
}),
|
|
221803
221808
|
t.create({
|
|
221804
221809
|
property: "inStock",
|
|
221805
221810
|
headerLabel: "In stock",
|
|
221806
|
-
width:
|
|
221807
|
-
bodyRenderer: new
|
|
221811
|
+
width: re,
|
|
221812
|
+
bodyRenderer: new ee("inStock", !0, !0),
|
|
221808
221813
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221809
|
-
sortable:
|
|
221814
|
+
sortable: y,
|
|
221810
221815
|
editable: () => a
|
|
221811
221816
|
}),
|
|
221812
221817
|
t.create({
|
|
221813
221818
|
property: "quantity",
|
|
221814
221819
|
headerLabel: "Qty",
|
|
221815
|
-
width:
|
|
221820
|
+
width: h,
|
|
221816
221821
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221817
221822
|
headerClasses: ["ge-table-text-align-right"],
|
|
221818
|
-
sortable:
|
|
221823
|
+
sortable: y,
|
|
221819
221824
|
editable: () => a
|
|
221820
221825
|
}),
|
|
221821
221826
|
t.create({
|
|
221822
221827
|
property: "progress",
|
|
221823
221828
|
headerLabel: "Progress",
|
|
221824
221829
|
width: c,
|
|
221825
|
-
bodyRenderer: new
|
|
221830
|
+
bodyRenderer: new ae("progress", 5, !0),
|
|
221826
221831
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221827
|
-
sortable:
|
|
221832
|
+
sortable: y
|
|
221828
221833
|
}),
|
|
221829
221834
|
t.create({
|
|
221830
221835
|
property: "rating",
|
|
221831
221836
|
headerLabel: "Rating",
|
|
221832
221837
|
width: c,
|
|
221833
|
-
bodyRenderer: new
|
|
221838
|
+
bodyRenderer: new te("rating"),
|
|
221834
221839
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221835
|
-
sortable:
|
|
221840
|
+
sortable: y
|
|
221836
221841
|
}),
|
|
221837
221842
|
t.create({
|
|
221838
221843
|
property: "price",
|
|
221839
221844
|
headerLabel: "Price",
|
|
221840
|
-
width:
|
|
221845
|
+
width: h,
|
|
221841
221846
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221842
|
-
sortable:
|
|
221847
|
+
sortable: y,
|
|
221843
221848
|
editable: () => a
|
|
221844
221849
|
}),
|
|
221845
221850
|
t.create({
|
|
221846
221851
|
property: "active",
|
|
221847
221852
|
headerLabel: "Active",
|
|
221848
|
-
width:
|
|
221849
|
-
bodyRenderer: new
|
|
221850
|
-
sortable:
|
|
221853
|
+
width: h,
|
|
221854
|
+
bodyRenderer: new Q(),
|
|
221855
|
+
sortable: y,
|
|
221851
221856
|
editable: () => a
|
|
221852
221857
|
}),
|
|
221853
221858
|
t.create({
|
|
221854
221859
|
property: "currency",
|
|
221855
221860
|
headerLabel: "CCY",
|
|
221856
|
-
width:
|
|
221857
|
-
sortable:
|
|
221861
|
+
width: h,
|
|
221862
|
+
sortable: y,
|
|
221858
221863
|
editable: () => a
|
|
221859
221864
|
}),
|
|
221860
221865
|
t.create({
|
|
@@ -221862,39 +221867,39 @@ function ar(a) {
|
|
|
221862
221867
|
headerLabel: "Average",
|
|
221863
221868
|
width: c,
|
|
221864
221869
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221865
|
-
sortable:
|
|
221870
|
+
sortable: y,
|
|
221866
221871
|
editable: () => a
|
|
221867
221872
|
}),
|
|
221868
221873
|
t.create({
|
|
221869
221874
|
property: "f1",
|
|
221870
221875
|
headerLabel: "F1",
|
|
221871
|
-
width:
|
|
221876
|
+
width: me,
|
|
221872
221877
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221873
|
-
bodyRenderer: new
|
|
221874
|
-
sortable:
|
|
221878
|
+
bodyRenderer: new fe(),
|
|
221879
|
+
sortable: y,
|
|
221875
221880
|
editable: () => a
|
|
221876
221881
|
}),
|
|
221877
221882
|
t.create({
|
|
221878
221883
|
property: "f2",
|
|
221879
221884
|
headerLabel: "F2",
|
|
221880
|
-
width:
|
|
221885
|
+
width: b,
|
|
221881
221886
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221882
|
-
sortable:
|
|
221887
|
+
sortable: y,
|
|
221883
221888
|
editable: () => a
|
|
221884
221889
|
}),
|
|
221885
221890
|
t.create({
|
|
221886
221891
|
property: "lorem",
|
|
221887
221892
|
headerLabel: "Lorem",
|
|
221888
|
-
width:
|
|
221893
|
+
width: v,
|
|
221889
221894
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221890
|
-
sortable:
|
|
221895
|
+
sortable: y,
|
|
221891
221896
|
editable: () => a
|
|
221892
221897
|
})
|
|
221893
221898
|
];
|
|
221894
221899
|
}
|
|
221895
|
-
function
|
|
221900
|
+
function pr(a) {
|
|
221896
221901
|
return {
|
|
221897
|
-
...new
|
|
221902
|
+
...new N(),
|
|
221898
221903
|
hoverColumnVisible: !1,
|
|
221899
221904
|
defaultRowHeights: {
|
|
221900
221905
|
header: 32,
|
|
@@ -221904,17 +221909,161 @@ function tr(a) {
|
|
|
221904
221909
|
getSelectionModel: () => a
|
|
221905
221910
|
};
|
|
221906
221911
|
}
|
|
221907
|
-
function
|
|
221908
|
-
const n =
|
|
221909
|
-
|
|
221910
|
-
const m =
|
|
221911
|
-
return new
|
|
221912
|
+
function Mr(a = new L("row", "multi"), e = 75, r = !1) {
|
|
221913
|
+
const n = pr(a);
|
|
221914
|
+
e = Math.max(10, Math.min(75, e));
|
|
221915
|
+
const m = dr(e), s = yr(r);
|
|
221916
|
+
return new S(g.createTableModel({
|
|
221912
221917
|
rows: m,
|
|
221913
221918
|
columnDefs: s,
|
|
221914
221919
|
tableOptions: n
|
|
221915
221920
|
}), n);
|
|
221916
221921
|
}
|
|
221917
|
-
const
|
|
221922
|
+
const ur = [
|
|
221923
|
+
["Germany", "Hamburg"],
|
|
221924
|
+
["Germany", "Berlin"],
|
|
221925
|
+
["Germany", "Munich"],
|
|
221926
|
+
["Austria", "Vienna"],
|
|
221927
|
+
["Austria", "Graz"],
|
|
221928
|
+
["Switzerland", "Zurich"],
|
|
221929
|
+
["France", "Paris"],
|
|
221930
|
+
["France", "Lyon"],
|
|
221931
|
+
["Italy", "Milan"],
|
|
221932
|
+
["Spain", "Madrid"],
|
|
221933
|
+
["Poland", "Warsaw"],
|
|
221934
|
+
["Denmark", "Copenhagen"]
|
|
221935
|
+
], cr = [
|
|
221936
|
+
["Laptop", "Hardware", 1299],
|
|
221937
|
+
["Monitor", "Hardware", 349],
|
|
221938
|
+
["Keyboard", "Accessories", 89],
|
|
221939
|
+
["Mouse", "Accessories", 39],
|
|
221940
|
+
["Docking Station", "Accessories", 219],
|
|
221941
|
+
["Office License", "Software", 129],
|
|
221942
|
+
["Cloud Credits", "Services", 500],
|
|
221943
|
+
["Support Plan", "Services", 990]
|
|
221944
|
+
];
|
|
221945
|
+
function lr(a) {
|
|
221946
|
+
return () => {
|
|
221947
|
+
a |= 0, a = a + 1831565813 | 0;
|
|
221948
|
+
let e = Math.imul(a ^ a >>> 15, 1 | a);
|
|
221949
|
+
return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
221950
|
+
};
|
|
221951
|
+
}
|
|
221952
|
+
function H(a, e = 42) {
|
|
221953
|
+
const r = lr(e), n = (s) => s[Math.floor(r() * s.length)], m = new Array(a);
|
|
221954
|
+
for (let s = 0; s < a; s++) {
|
|
221955
|
+
const [i, p] = n(ur), [d, l, o] = n(cr), T = 1 + Math.floor(r() * 20), Z = Math.round(o * (0.85 + r() * 0.3) * 100) / 100;
|
|
221956
|
+
m[s] = { id: s + 1, country: i, city: p, product: d, category: l, quantity: T, price: Z, total: Math.round(T * Z * 100) / 100 };
|
|
221957
|
+
}
|
|
221958
|
+
return m;
|
|
221959
|
+
}
|
|
221960
|
+
const w = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], sortable: y };
|
|
221961
|
+
function de() {
|
|
221962
|
+
return [
|
|
221963
|
+
t.create({ property: "id", headerLabel: "Order", width: c, ...w }),
|
|
221964
|
+
t.create({ property: "country", headerLabel: "Country", width: C, sortable: y }),
|
|
221965
|
+
t.create({ property: "city", headerLabel: "City", width: C, sortable: y }),
|
|
221966
|
+
t.create({ property: "product", headerLabel: "Product", width: W, sortable: y }),
|
|
221967
|
+
t.create({ property: "category", headerLabel: "Category", width: C, sortable: y }),
|
|
221968
|
+
t.create({ property: "quantity", headerLabel: "Qty", width: c, ...w }),
|
|
221969
|
+
t.create({ property: "price", headerLabel: "Ø Price", width: oe, ...w }),
|
|
221970
|
+
t.create({ property: "total", headerLabel: "Total", width: C, ...w })
|
|
221971
|
+
];
|
|
221972
|
+
}
|
|
221973
|
+
function Ir(a = 5e4, e = ["country", "city"], r = 1) {
|
|
221974
|
+
const n = new L("row", "multi"), m = {
|
|
221975
|
+
...new N(),
|
|
221976
|
+
hoverColumnVisible: !1,
|
|
221977
|
+
getSelectionModel: () => n
|
|
221978
|
+
}, s = Te.createTableModel({
|
|
221979
|
+
rows: H(a),
|
|
221980
|
+
columnDefs: de(),
|
|
221981
|
+
groupBy: e,
|
|
221982
|
+
aggregations: { quantity: "sum", price: "avg", total: "sum" },
|
|
221983
|
+
expanded: r,
|
|
221984
|
+
tableOptions: m
|
|
221985
|
+
});
|
|
221986
|
+
return new S(s, m);
|
|
221987
|
+
}
|
|
221988
|
+
const gr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
221989
|
+
class br {
|
|
221990
|
+
render(e, r, n, m, s, i, p) {
|
|
221991
|
+
if (typeof i == "number") {
|
|
221992
|
+
const d = p.createElement("div");
|
|
221993
|
+
p.addClass(d, "ge-table-label-div");
|
|
221994
|
+
const l = p.createElement("div");
|
|
221995
|
+
p.addClass(l, "ge-table-label"), p.appendChild(l, p.createText(gr.format(i))), p.appendChild(d, l), p.appendChild(e, d);
|
|
221996
|
+
}
|
|
221997
|
+
}
|
|
221998
|
+
}
|
|
221999
|
+
function Rr(a = 5e4) {
|
|
222000
|
+
const e = new L("range", "multi"), r = {
|
|
222001
|
+
...new N(),
|
|
222002
|
+
hoverColumnVisible: !1,
|
|
222003
|
+
getSelectionModel: () => e
|
|
222004
|
+
}, n = de(), m = new br();
|
|
222005
|
+
for (const i of n)
|
|
222006
|
+
(i.property === "price" || i.property === "total") && (i.rendererMap.body = m);
|
|
222007
|
+
const s = g.createTableModel({
|
|
222008
|
+
rows: H(a),
|
|
222009
|
+
columnDefs: n,
|
|
222010
|
+
footerAggregates: {
|
|
222011
|
+
rows: [
|
|
222012
|
+
{
|
|
222013
|
+
label: (i) => `Sum · ${i.toLocaleString("en-US")} orders`,
|
|
222014
|
+
aggregates: { quantity: "sum", total: "sum" }
|
|
222015
|
+
},
|
|
222016
|
+
{ label: "Average", aggregates: { quantity: "avg", price: "avg", total: "avg" } },
|
|
222017
|
+
{ label: "Maximum", aggregates: { quantity: "max", price: "max", total: "max" } }
|
|
222018
|
+
],
|
|
222019
|
+
labelProperty: "product"
|
|
222020
|
+
// the widest text column holds the labels
|
|
222021
|
+
},
|
|
222022
|
+
tableOptions: r
|
|
222023
|
+
});
|
|
222024
|
+
return new S(s, r);
|
|
222025
|
+
}
|
|
222026
|
+
function Nr(a) {
|
|
222027
|
+
return () => {
|
|
222028
|
+
a |= 0, a = a + 1831565813 | 0;
|
|
222029
|
+
let e = Math.imul(a ^ a >>> 15, 1 | a);
|
|
222030
|
+
return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
222031
|
+
};
|
|
222032
|
+
}
|
|
222033
|
+
function fr(a, e = 42) {
|
|
222034
|
+
const r = Nr(e + 1), n = Date.UTC(2024, 0, 1), m = 3 * 365 + 1;
|
|
222035
|
+
return H(a, e).map((s) => ({
|
|
222036
|
+
...s,
|
|
222037
|
+
date: new Date(n + Math.floor(r() * m) * 864e5).toISOString().slice(0, 10)
|
|
222038
|
+
}));
|
|
222039
|
+
}
|
|
222040
|
+
const Tr = { name: "year", label: "Year", value: (a) => Number(a.date.slice(0, 4)) }, or = {
|
|
222041
|
+
name: "quarter",
|
|
222042
|
+
label: "Quarter",
|
|
222043
|
+
value: (a) => Math.floor((Number(a.date.slice(5, 7)) - 1) / 3) + 1,
|
|
222044
|
+
format: (a) => `Q${a}`
|
|
222045
|
+
};
|
|
222046
|
+
function Hr(a = 5e4, e = [Tr, or], r = 0) {
|
|
222047
|
+
const n = new L("range", "multi"), m = {
|
|
222048
|
+
...new N(),
|
|
222049
|
+
hoverColumnVisible: !1,
|
|
222050
|
+
getSelectionModel: () => n
|
|
222051
|
+
}, s = he.createTableModel({
|
|
222052
|
+
rows: fr(a),
|
|
222053
|
+
rowFields: [{ value: "country", label: "Country" }, { value: "city", label: "City" }],
|
|
222054
|
+
columnFields: e,
|
|
222055
|
+
values: [
|
|
222056
|
+
{ value: "total", label: "Revenue", format: (i) => i === void 0 ? "" : Math.round(i).toLocaleString("en-US") },
|
|
222057
|
+
{ value: "id", aggregator: "count", label: "Orders" }
|
|
222058
|
+
],
|
|
222059
|
+
expanded: r,
|
|
222060
|
+
valueColumnWidth: b,
|
|
222061
|
+
groupColumn: { showCount: !1 },
|
|
222062
|
+
tableOptions: m
|
|
222063
|
+
});
|
|
222064
|
+
return new S(s, m);
|
|
222065
|
+
}
|
|
222066
|
+
const hr = [
|
|
221918
222067
|
{
|
|
221919
222068
|
id: 0,
|
|
221920
222069
|
preName: "Prename0",
|
|
@@ -383788,10 +383937,10 @@ const nr = [
|
|
|
383788
383937
|
friends: []
|
|
383789
383938
|
}
|
|
383790
383939
|
];
|
|
383791
|
-
function
|
|
383792
|
-
const
|
|
383793
|
-
return a && (
|
|
383794
|
-
...new
|
|
383940
|
+
function Sr(a = !1) {
|
|
383941
|
+
const e = new L("range", "multi");
|
|
383942
|
+
return a && (e.addSelection(new G(0, 0, 0, 2)), e.addSelection(new G(2, 1, 2, 2)), e.addSelection(new G(1, 5, 6, 7)), e.addSelection(new G(0, 8, 0, 8)), e.addSelection(new G(5, 6, 10, 10))), {
|
|
383943
|
+
...new N(),
|
|
383795
383944
|
hoverColumnVisible: !1,
|
|
383796
383945
|
defaultRowHeights: {
|
|
383797
383946
|
header: 50,
|
|
@@ -383799,102 +383948,110 @@ function mr(a = !1) {
|
|
|
383799
383948
|
footer: 0
|
|
383800
383949
|
},
|
|
383801
383950
|
autoRestoreOptions: {
|
|
383802
|
-
...new
|
|
383951
|
+
...new ze(),
|
|
383803
383952
|
getStorageKeyFn: () => "TreetablePeopleComponent",
|
|
383804
383953
|
autoRestoreCollapsedExpandedState: !0,
|
|
383805
383954
|
autoRestoreScrollPosition: !0,
|
|
383806
383955
|
autoRestoreSortingState: !0
|
|
383807
383956
|
},
|
|
383808
|
-
externalFilterFunction: (
|
|
383809
|
-
getSelectionModel: () =>
|
|
383957
|
+
externalFilterFunction: (r, n, m) => !0,
|
|
383958
|
+
getSelectionModel: () => e
|
|
383810
383959
|
};
|
|
383811
383960
|
}
|
|
383812
|
-
function
|
|
383961
|
+
function Cr() {
|
|
383813
383962
|
return [
|
|
383814
|
-
new t("lastName", "Last Name",
|
|
383815
|
-
new t("preName", "Pre Name",
|
|
383963
|
+
new t("lastName", "Last Name", ne),
|
|
383964
|
+
new t("preName", "Pre Name", b),
|
|
383816
383965
|
t.create({
|
|
383817
383966
|
property: "age",
|
|
383818
383967
|
headerLabel: "Age",
|
|
383819
|
-
width:
|
|
383820
|
-
bodyRenderer: new
|
|
383821
|
-
editable:
|
|
383968
|
+
width: me,
|
|
383969
|
+
bodyRenderer: new Ce(),
|
|
383970
|
+
editable: y,
|
|
383822
383971
|
// editInputPipe: (value: any) => value ? Number(value) : ""
|
|
383823
|
-
editInputPipe:
|
|
383972
|
+
editInputPipe: Se
|
|
383824
383973
|
}),
|
|
383825
383974
|
new t(
|
|
383826
383975
|
"birth",
|
|
383827
383976
|
"Birthday",
|
|
383828
383977
|
c,
|
|
383829
383978
|
void 0,
|
|
383830
|
-
|
|
383979
|
+
Le.bodyRenderer(new U())
|
|
383831
383980
|
),
|
|
383832
383981
|
t.create({
|
|
383833
383982
|
property: "gender",
|
|
383834
383983
|
headerLabel: " ",
|
|
383835
|
-
width:
|
|
383836
|
-
bodyRenderer: new
|
|
383837
|
-
editable:
|
|
383838
|
-
getEditRenderer: () => new
|
|
383839
|
-
new
|
|
383840
|
-
new
|
|
383984
|
+
width: Pe,
|
|
383985
|
+
bodyRenderer: new j(),
|
|
383986
|
+
editable: y,
|
|
383987
|
+
getEditRenderer: () => new Ge([
|
|
383988
|
+
new O("female", "♀"),
|
|
383989
|
+
new O("male", "♂")
|
|
383841
383990
|
])
|
|
383842
383991
|
}),
|
|
383843
|
-
new t("address.street", "Strasse",
|
|
383844
|
-
new t("address.number", "Nr",
|
|
383845
|
-
new t("address.zip", "Zip",
|
|
383846
|
-
new t("address.city", "City",
|
|
383847
|
-
new t("address.country", "Country",
|
|
383848
|
-
new t("id", "ID",
|
|
383992
|
+
new t("address.street", "Strasse", J),
|
|
383993
|
+
new t("address.number", "Nr", Ze),
|
|
383994
|
+
new t("address.zip", "Zip", h),
|
|
383995
|
+
new t("address.city", "City", b),
|
|
383996
|
+
new t("address.country", "Country", b),
|
|
383997
|
+
new t("id", "ID", h)
|
|
383849
383998
|
];
|
|
383850
383999
|
}
|
|
383851
|
-
function
|
|
383852
|
-
const
|
|
383853
|
-
for (const s of
|
|
383854
|
-
s.sortable =
|
|
383855
|
-
|
|
383856
|
-
const n =
|
|
384000
|
+
function Or(a = !1) {
|
|
384001
|
+
const e = Sr(a), r = Cr();
|
|
384002
|
+
for (const s of r)
|
|
384003
|
+
s.sortable = y, s.editable = y;
|
|
384004
|
+
r[0].editable = A;
|
|
384005
|
+
const n = Y.buildTreeRows(hr, "friends"), m = g.createTableModel({
|
|
383857
384006
|
rows: n,
|
|
383858
|
-
columnDefs:
|
|
383859
|
-
tableOptions:
|
|
384007
|
+
columnDefs: r,
|
|
384008
|
+
tableOptions: e,
|
|
383860
384009
|
fixedLeftColumnCount: 1,
|
|
383861
384010
|
fixedRightColumnCount: 1
|
|
383862
384011
|
});
|
|
383863
|
-
return new
|
|
384012
|
+
return new S(
|
|
383864
384013
|
m,
|
|
383865
|
-
|
|
384014
|
+
e
|
|
383866
384015
|
);
|
|
383867
384016
|
}
|
|
383868
384017
|
export {
|
|
383869
|
-
|
|
383870
|
-
|
|
383871
|
-
|
|
383872
|
-
|
|
383873
|
-
|
|
383874
|
-
|
|
383875
|
-
|
|
383876
|
-
|
|
383877
|
-
|
|
383878
|
-
|
|
383879
|
-
|
|
383880
|
-
|
|
383881
|
-
|
|
383882
|
-
|
|
383883
|
-
|
|
383884
|
-
|
|
383885
|
-
|
|
383886
|
-
|
|
383887
|
-
|
|
383888
|
-
|
|
383889
|
-
|
|
383890
|
-
|
|
383891
|
-
|
|
383892
|
-
|
|
383893
|
-
|
|
383894
|
-
|
|
383895
|
-
|
|
383896
|
-
|
|
383897
|
-
|
|
383898
|
-
|
|
383899
|
-
|
|
384018
|
+
Ur as COL_IDX_UPDATED_AT,
|
|
384019
|
+
we as ChangePercentageRenderer,
|
|
384020
|
+
De as CirculatingSupplyRenderer,
|
|
384021
|
+
Ue as CoinIconRenderer,
|
|
384022
|
+
sr as LargeBodyModel,
|
|
384023
|
+
ke as NameAndSymbolRenderer,
|
|
384024
|
+
ve as UsdRenderer,
|
|
384025
|
+
xe as Volumn24hRenderer,
|
|
384026
|
+
Dr as applyBodyRenderer,
|
|
384027
|
+
Rr as createAggregationModelAndOptions,
|
|
384028
|
+
We as createColumnDefs,
|
|
384029
|
+
Gr as createCryptoModelAndOptions,
|
|
384030
|
+
vr as createHeadergroupModel,
|
|
384031
|
+
zr as createHeatMapModel,
|
|
384032
|
+
wr as createHeatMapSeattleModel,
|
|
384033
|
+
Ar as createLargeModelAndOptions,
|
|
384034
|
+
Mr as createManyTypesModelAndOptions,
|
|
384035
|
+
Br as createOrderModelAndOptions,
|
|
384036
|
+
Hr as createPivotModelAndOptions,
|
|
384037
|
+
Ir as createRowGroupModelAndOptions,
|
|
384038
|
+
de as createSalesOrderColumnDefs,
|
|
384039
|
+
xr as createSimplePersonModel,
|
|
384040
|
+
je as createTableOptions,
|
|
384041
|
+
Ke as createTableRows,
|
|
384042
|
+
kr as createTeamHeadergroupModel,
|
|
384043
|
+
qr as createTimeTableModel,
|
|
384044
|
+
Cr as createTreePeopleColumnDefs,
|
|
384045
|
+
Or as createTreePeopleModelAndOptions,
|
|
384046
|
+
Sr as createTreePeopleTableOptions,
|
|
384047
|
+
qe as cryptoData,
|
|
384048
|
+
Ye as data,
|
|
384049
|
+
fr as generatePivotOrders,
|
|
384050
|
+
H as generateSalesOrders,
|
|
384051
|
+
Pr as generateSimpleModel,
|
|
384052
|
+
Zr as generateTreeCheckboxModel,
|
|
384053
|
+
or as pivotQuarter,
|
|
384054
|
+
Tr as pivotYear,
|
|
384055
|
+
Xe as tableOptions,
|
|
384056
|
+
_e as teamHeaderGroups
|
|
383900
384057
|
};
|