@guiexpert/demo-table-models 1.1.94 → 1.1.96
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 +7 -7
- package/index.d.ts +5 -0
- package/index.js +616 -316
- package/lib/createFormulaModel.d.ts +32 -0
- package/lib/createPriceListModel.d.ts +20 -0
- package/lib/createRowDragModel.d.ts +19 -0
- package/lib/createTimeTableModel.d.ts +3 -0
- package/lib/treepeople/generateTreePeopleModel.d.ts +3 -0
- package/model/price-item.if.d.ts +13 -0
- package/model/task.if.d.ts +9 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColumnDef as t, px60 as
|
|
2
|
-
class
|
|
1
|
+
import { ColumnDef as t, px60 as L, px120 as g, px100 as u, px160 as _, px200 as k, px140 as P, TableOptions as N, TableModelAndOptions as f, TableFactory as b, Size as c, AreaObjectMap as v, DateToIntlDDMMYYYYCellRenderer as R, MaleFemaleToIconCellRenderer as ne, TreeFactory as me, DefaultRowHeights as oe, AreaModelArrayOfArrays as M, AreaModel as K, ColorRgb as H, ThreeColorGradientArg as he, GeCssColorUtil as Se, CellgroupFactory as A, AreaModelCellGroups as se, AreaModelObjectArrayWithColumndefs as W, px300 as ie, px150 as de, px250 as Ce, TrueFalseCellRenderer as ye, DateToTecCellRenderer as Le, SelectionModel as C, TrueFn as y, CheckboxBooleanPropertyCellRenderer as pe, px90 as Z, ProgressBarCellRenderer as ue, StarRatingCellRenderer as ce, NumberCellProgressBarCellRenderer as Pe, RowNumberColumnDef as Ge, FalseFn as F, px220 as le, PositiveAndNegativeNumberRenderer as Ze, px80 as ge, RowGroupFactory as ze, px110 as $, PivotFactory as we, px130 as ve, editInputPipeForNumber as G, FocusModel as be, NumberCellRenderer as ke, Renderer as De, SelectCellRenderer as xe, px50 as Ue, ValueLabel as Y, px70 as qe, CellRange as z, AutoRestoreOptions as Be } from "@guiexpert/table";
|
|
2
|
+
class Me {
|
|
3
3
|
render(e, r, n, m, s, i, p) {
|
|
4
4
|
if (i) {
|
|
5
5
|
const d = Number(i);
|
|
@@ -7,7 +7,7 @@ class we {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
class
|
|
10
|
+
class Ae {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.formatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
|
|
13
13
|
}
|
|
@@ -18,7 +18,7 @@ class ve {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
class
|
|
21
|
+
class Ie {
|
|
22
22
|
render(e, r, n, m, s, i, p) {
|
|
23
23
|
const d = s.getRowByIndex(r);
|
|
24
24
|
if (d) {
|
|
@@ -32,50 +32,50 @@ class ke {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
class
|
|
35
|
+
class Re {
|
|
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
39
|
render(e, r, n, m, s, i, p) {
|
|
40
40
|
const d = s.getRowByIndex(r);
|
|
41
41
|
if (d) {
|
|
42
|
-
const l = this.formatterUsd.format(d.volUsd),
|
|
42
|
+
const l = this.formatterUsd.format(d.volUsd), T = this.formatter.format(d.volBtc);
|
|
43
43
|
e.innerHTML = `
|
|
44
44
|
<div style="line-height: 1.2;padding: 10px 0 0 10px;">
|
|
45
45
|
${l}<br>
|
|
46
|
-
${
|
|
46
|
+
${T} BTC
|
|
47
47
|
</div>
|
|
48
48
|
`;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
class
|
|
52
|
+
class Oe {
|
|
53
53
|
constructor(e = 120) {
|
|
54
54
|
this.maxWidth = e, this.formatter = new Intl.NumberFormat("en-US");
|
|
55
55
|
}
|
|
56
56
|
render(e, r, n, m, s, i, p) {
|
|
57
57
|
const d = s.getRowByIndex(r);
|
|
58
58
|
if (d) {
|
|
59
|
-
const l = this.formatter.format(d.circulatingSupply),
|
|
60
|
-
if (
|
|
61
|
-
const
|
|
62
|
-
|
|
59
|
+
const l = this.formatter.format(d.circulatingSupply), T = d.maxSupply, S = [];
|
|
60
|
+
if (S.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), S.push(l), S.push("<br>"), T) {
|
|
61
|
+
const D = this.maxWidth * d.circulatingSupply / T;
|
|
62
|
+
S.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: ${D}px;height: 5px;background-color: #ccc;"></div>
|
|
65
65
|
</div>
|
|
66
66
|
`);
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
S.push("</div>"), e.innerHTML = S.join("");
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
72
|
+
class He {
|
|
73
73
|
render(e, r, n, m, s, i, p) {
|
|
74
74
|
const d = s.getRowByIndex(r);
|
|
75
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 Ve = [
|
|
79
79
|
{
|
|
80
80
|
id: 1,
|
|
81
81
|
name: "Bitcoin",
|
|
@@ -2810,19 +2810,19 @@ const qe = [
|
|
|
2810
2810
|
change90d: 12.43943602
|
|
2811
2811
|
}
|
|
2812
2812
|
];
|
|
2813
|
-
function
|
|
2814
|
-
const a =
|
|
2813
|
+
function Ir() {
|
|
2814
|
+
const a = Ve, e = new Me(), r = new Ae(), n = new Ie(), m = new Re(), s = new Oe(120), i = new He(), p = [
|
|
2815
2815
|
t.create({
|
|
2816
2816
|
property: "symbol",
|
|
2817
2817
|
headerLabel: "",
|
|
2818
|
-
width:
|
|
2818
|
+
width: L,
|
|
2819
2819
|
bodyClasses: ["ge-table-text-align-left"],
|
|
2820
2820
|
bodyRenderer: i
|
|
2821
2821
|
}),
|
|
2822
2822
|
t.create({
|
|
2823
2823
|
property: "symbol",
|
|
2824
2824
|
headerLabel: "Name",
|
|
2825
|
-
width:
|
|
2825
|
+
width: g,
|
|
2826
2826
|
bodyClasses: ["ge-table-text-align-left"],
|
|
2827
2827
|
headerClasses: ["ge-table-text-align-left"],
|
|
2828
2828
|
bodyRenderer: n
|
|
@@ -2830,24 +2830,24 @@ function Gr() {
|
|
|
2830
2830
|
t.create({
|
|
2831
2831
|
property: "priceInUsd",
|
|
2832
2832
|
headerLabel: "Price $",
|
|
2833
|
-
width:
|
|
2833
|
+
width: u,
|
|
2834
2834
|
bodyClasses: ["ge-table-text-align-right"],
|
|
2835
2835
|
headerClasses: ["ge-table-text-align-right"]
|
|
2836
2836
|
}),
|
|
2837
|
-
new t("change1h", "1h %",
|
|
2838
|
-
new t("change24h", "24h %",
|
|
2839
|
-
new t("change7d", "7d %",
|
|
2837
|
+
new t("change1h", "1h %", u, void 0, t.bodyRenderer(e)),
|
|
2838
|
+
new t("change24h", "24h %", u, void 0, t.bodyRenderer(e)),
|
|
2839
|
+
new t("change7d", "7d %", u, void 0, t.bodyRenderer(e)),
|
|
2840
2840
|
t.create({
|
|
2841
2841
|
property: "marketCapUsd",
|
|
2842
2842
|
headerLabel: "Market Cap",
|
|
2843
|
-
width:
|
|
2843
|
+
width: _,
|
|
2844
2844
|
bodyClasses: ["ge-table-text-align-right"],
|
|
2845
2845
|
headerClasses: ["ge-table-text-align-right"],
|
|
2846
2846
|
bodyRenderer: r
|
|
2847
2847
|
}),
|
|
2848
2848
|
t.create({
|
|
2849
2849
|
headerLabel: "Volumne (24h)",
|
|
2850
|
-
width:
|
|
2850
|
+
width: k,
|
|
2851
2851
|
bodyClasses: ["ge-table-text-align-right"],
|
|
2852
2852
|
headerClasses: ["ge-table-text-align-right"],
|
|
2853
2853
|
bodyRenderer: m
|
|
@@ -2855,7 +2855,7 @@ function Gr() {
|
|
|
2855
2855
|
t.create({
|
|
2856
2856
|
property: "circulatingSupply",
|
|
2857
2857
|
headerLabel: "Circulating Supply",
|
|
2858
|
-
width:
|
|
2858
|
+
width: P,
|
|
2859
2859
|
bodyRenderer: s,
|
|
2860
2860
|
bodyClasses: ["ge-table-text-align-right"],
|
|
2861
2861
|
headerClasses: ["ge-table-text-align-right"]
|
|
@@ -2872,8 +2872,8 @@ function Gr() {
|
|
|
2872
2872
|
footer: 0
|
|
2873
2873
|
}
|
|
2874
2874
|
};
|
|
2875
|
-
return new
|
|
2876
|
-
|
|
2875
|
+
return new f(
|
|
2876
|
+
b.createTableModel({
|
|
2877
2877
|
rows: a,
|
|
2878
2878
|
columnDefs: p,
|
|
2879
2879
|
tableOptions: d
|
|
@@ -2881,7 +2881,7 @@ function Gr() {
|
|
|
2881
2881
|
d
|
|
2882
2882
|
);
|
|
2883
2883
|
}
|
|
2884
|
-
function
|
|
2884
|
+
function Rr(a = 1e3, e = 1e3) {
|
|
2885
2885
|
const r = Array.from(Array(a).keys()).map(
|
|
2886
2886
|
(s) => Array.from(Array(e).keys()).map((i) => `${s}/${i}`)
|
|
2887
2887
|
), n = Array.from(Array(2).keys()).map(
|
|
@@ -2889,7 +2889,7 @@ function Pr(a = 1e3, e = 1e3) {
|
|
|
2889
2889
|
), m = Array.from(Array(2).keys()).map(
|
|
2890
2890
|
(s) => Array.from(Array(e).keys()).map((i) => `F${s}/${i}`)
|
|
2891
2891
|
);
|
|
2892
|
-
return
|
|
2892
|
+
return b.createTableModel({
|
|
2893
2893
|
headerData: n,
|
|
2894
2894
|
bodyData: r,
|
|
2895
2895
|
footerData: m,
|
|
@@ -2898,7 +2898,7 @@ function Pr(a = 1e3, e = 1e3) {
|
|
|
2898
2898
|
fixedRightColumnCount: 2
|
|
2899
2899
|
});
|
|
2900
2900
|
}
|
|
2901
|
-
const
|
|
2901
|
+
const Fe = [
|
|
2902
2902
|
{
|
|
2903
2903
|
id: 0,
|
|
2904
2904
|
preName: "Prename0",
|
|
@@ -164772,7 +164772,7 @@ const Be = [
|
|
|
164772
164772
|
friends: []
|
|
164773
164773
|
}
|
|
164774
164774
|
];
|
|
164775
|
-
function
|
|
164775
|
+
function Or() {
|
|
164776
164776
|
const a = {
|
|
164777
164777
|
...new N(),
|
|
164778
164778
|
hoverColumnVisible: !1,
|
|
@@ -164785,17 +164785,17 @@ function Zr() {
|
|
|
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
|
-
], r =
|
|
164798
|
-
return
|
|
164788
|
+
new t("lastName", "Last Name", new c(250, "px")),
|
|
164789
|
+
new t("preName", "Pre Name", new c(120, "px")),
|
|
164790
|
+
new t("birth", "Birthday", new c(100, "px"), new v(), new v(void 0, new R(), void 0), void 0, void 0),
|
|
164791
|
+
new t("gender", " ", new c(50, "px"), new v(), new v(void 0, new ne(), void 0), void 0, void 0),
|
|
164792
|
+
new t("address.street", "Strasse", new c(150, "px")),
|
|
164793
|
+
new t("address.number", "Nr", new c(70, "px")),
|
|
164794
|
+
new t("address.zip", "Zip", new c(60, "px")),
|
|
164795
|
+
new t("address.city", "City", new c(120, "px")),
|
|
164796
|
+
new t("id", "ID", new c(60, "px"))
|
|
164797
|
+
], r = me.buildTreeRows(Fe, "friends");
|
|
164798
|
+
return b.createTableModel({
|
|
164799
164799
|
rows: r,
|
|
164800
164800
|
columnDefs: e,
|
|
164801
164801
|
tableOptions: a,
|
|
@@ -164803,7 +164803,7 @@ function Zr() {
|
|
|
164803
164803
|
fixedRightColumnCount: 0
|
|
164804
164804
|
});
|
|
164805
164805
|
}
|
|
164806
|
-
const
|
|
164806
|
+
const j = new oe(34, 50, 0), X = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), $e = `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
|
|
@@ -164814,38 +164814,38 @@ const V = new ye(34, 50, 0), F = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov
|
|
|
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
164816
|
(a) => a.split(" ").map((e) => Number(e))
|
|
164817
|
-
),
|
|
164818
|
-
class
|
|
164817
|
+
), Ee = 27.9, _e = 77.4;
|
|
164818
|
+
class J {
|
|
164819
164819
|
constructor(e, r, n) {
|
|
164820
164820
|
this.r = e, this.g = r, this.b = n;
|
|
164821
164821
|
}
|
|
164822
164822
|
}
|
|
164823
|
-
function
|
|
164823
|
+
function Ke(a, e, r, n, m) {
|
|
164824
164824
|
return (a - e) / (r - e) * (m - n) + n;
|
|
164825
164825
|
}
|
|
164826
|
-
function
|
|
164827
|
-
var n = new
|
|
164826
|
+
function We(a, e, r) {
|
|
164827
|
+
var n = new J(255, 0, 0), m = new J(0, 0, 255), s = Ke(r, a, e, 0, 1), i = m.r - n.r, p = m.g - n.g, d = m.b - n.b;
|
|
164828
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 Hr() {
|
|
164831
|
+
const a = new M("body", $e, j.body), e = new Array(X.length).fill(50), r = new M("header", [X], j.header);
|
|
164832
164832
|
return a.getCustomStyleAt = (n, m) => {
|
|
164833
164833
|
let s = {};
|
|
164834
164834
|
if (m > 0) {
|
|
164835
164835
|
const i = a.getValueAt(n, m);
|
|
164836
164836
|
s = {
|
|
164837
|
-
background:
|
|
164837
|
+
background: We(Ee, _e, i),
|
|
164838
164838
|
color: "#fff"
|
|
164839
164839
|
};
|
|
164840
164840
|
}
|
|
164841
164841
|
return s.paddingTop = "10px", s;
|
|
164842
|
-
},
|
|
164842
|
+
}, b.createTableModel({
|
|
164843
164843
|
headerAreaModel: r,
|
|
164844
164844
|
bodyAreaModel: a,
|
|
164845
164845
|
columnSizes: e
|
|
164846
164846
|
});
|
|
164847
164847
|
}
|
|
164848
|
-
function
|
|
164848
|
+
function Ye() {
|
|
164849
164849
|
return [
|
|
164850
164850
|
{
|
|
164851
164851
|
date: "2010-01-01T01:00:00",
|
|
@@ -217403,12 +217403,12 @@ function Oe() {
|
|
|
217403
217403
|
}
|
|
217404
217404
|
];
|
|
217405
217405
|
}
|
|
217406
|
-
const
|
|
217407
|
-
|
|
217406
|
+
const Ne = 30, je = 3, fe = Ye(), h = {};
|
|
217407
|
+
fe.forEach((a) => {
|
|
217408
217408
|
const [e, r] = a.date.split("T");
|
|
217409
|
-
|
|
217409
|
+
h[e] || (h[e] = {}), h[e][r.substring(0, 5)] = a;
|
|
217410
217410
|
});
|
|
217411
|
-
const
|
|
217411
|
+
const E = Object.keys(h), x = [
|
|
217412
217412
|
"06:00",
|
|
217413
217413
|
"07:00",
|
|
217414
217414
|
"08:00",
|
|
@@ -217434,59 +217434,59 @@ const M = Object.keys(f), z = [
|
|
|
217434
217434
|
"04:00",
|
|
217435
217435
|
"05:00"
|
|
217436
217436
|
];
|
|
217437
|
-
function
|
|
217437
|
+
function Xe() {
|
|
217438
217438
|
let a = 10, e = 0;
|
|
217439
|
-
return
|
|
217439
|
+
return fe.forEach((r) => {
|
|
217440
217440
|
a = Math.min(a, r.temperature), e = Math.max(e, r.temperature);
|
|
217441
217441
|
}), [a, e];
|
|
217442
217442
|
}
|
|
217443
|
-
const [
|
|
217444
|
-
function
|
|
217445
|
-
const a = new
|
|
217446
|
-
return
|
|
217443
|
+
const [Q, ee] = Xe();
|
|
217444
|
+
function Vr() {
|
|
217445
|
+
const a = new Je(), e = new Qe(), r = [60, ...new Array(E.length).fill(je)];
|
|
217446
|
+
return b.createTableModel({
|
|
217447
217447
|
bodyAreaModel: a,
|
|
217448
217448
|
footerAreaModel: e,
|
|
217449
217449
|
columnSizes: r,
|
|
217450
217450
|
fixedLeftColumnCount: 1
|
|
217451
217451
|
});
|
|
217452
217452
|
}
|
|
217453
|
-
class
|
|
217453
|
+
class Je extends K {
|
|
217454
217454
|
getRowCount() {
|
|
217455
|
-
return
|
|
217455
|
+
return x.length;
|
|
217456
217456
|
}
|
|
217457
217457
|
getRowHeight(e) {
|
|
217458
|
-
return
|
|
217458
|
+
return Ne;
|
|
217459
217459
|
}
|
|
217460
217460
|
getValueAt(e, r) {
|
|
217461
|
-
return r === 0 ?
|
|
217461
|
+
return r === 0 ? x[e] : "";
|
|
217462
217462
|
}
|
|
217463
217463
|
getTooltipAt(e, r) {
|
|
217464
217464
|
if (r === 0)
|
|
217465
217465
|
return "";
|
|
217466
217466
|
r--;
|
|
217467
|
-
const n =
|
|
217468
|
-
return
|
|
217467
|
+
const n = E[r], m = x[e];
|
|
217468
|
+
return h[n] && h[n][m] ? `${n} ${m} → ${h[n][m].temperature}` : "";
|
|
217469
217469
|
}
|
|
217470
217470
|
getCustomStyleAt(e, r) {
|
|
217471
217471
|
if (r === 0)
|
|
217472
217472
|
return;
|
|
217473
217473
|
r--;
|
|
217474
|
-
const n =
|
|
217475
|
-
if (!
|
|
217476
|
-
const s =
|
|
217474
|
+
const n = E[r], m = x[e];
|
|
217475
|
+
if (!h[n] || !h[n][m]) return;
|
|
217476
|
+
const s = h[n][m].temperature, i = new H(67, 1, 84), p = new H(31, 144, 141), d = new H(250, 230, 37), l = (ee + Q) / 2, T = new he(Q, i, l, p, ee, d);
|
|
217477
217477
|
return {
|
|
217478
|
-
background:
|
|
217478
|
+
background: Se.getThreeColorGradientRGB(s, T),
|
|
217479
217479
|
color: "transparent"
|
|
217480
217480
|
// we only want to show the bg color
|
|
217481
217481
|
};
|
|
217482
217482
|
}
|
|
217483
217483
|
}
|
|
217484
|
-
class
|
|
217484
|
+
class Qe extends K {
|
|
217485
217485
|
getRowCount() {
|
|
217486
217486
|
return 1;
|
|
217487
217487
|
}
|
|
217488
217488
|
getRowHeight(e) {
|
|
217489
|
-
return
|
|
217489
|
+
return Ne;
|
|
217490
217490
|
}
|
|
217491
217491
|
getValueAt(e, r) {
|
|
217492
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" : "";
|
|
@@ -217503,7 +217503,7 @@ class Ee extends I {
|
|
|
217503
217503
|
};
|
|
217504
217504
|
}
|
|
217505
217505
|
}
|
|
217506
|
-
const
|
|
217506
|
+
const V = [
|
|
217507
217507
|
{
|
|
217508
217508
|
data: "Gold",
|
|
217509
217509
|
toggle: !0,
|
|
@@ -217590,9 +217590,9 @@ const B = [
|
|
|
217590
217590
|
]
|
|
217591
217591
|
}
|
|
217592
217592
|
];
|
|
217593
|
-
function
|
|
217594
|
-
const e =
|
|
217595
|
-
console.info("headerGroups",
|
|
217593
|
+
function Fr() {
|
|
217594
|
+
const e = A.buildGroupExts(V), r = A.buildColumnDefs(e), n = new se("header", V, r, 34);
|
|
217595
|
+
console.info("headerGroups", V), console.info("columnDefs", r.map((i) => i.property));
|
|
217596
217596
|
const m = [
|
|
217597
217597
|
{
|
|
217598
217598
|
GOLD: 146,
|
|
@@ -217610,14 +217610,14 @@ function vr() {
|
|
|
217610
217610
|
HOH_C: 53,
|
|
217611
217611
|
HOH_D: 54
|
|
217612
217612
|
}
|
|
217613
|
-
], s = new
|
|
217614
|
-
return
|
|
217613
|
+
], s = new W("body", m, r, 34);
|
|
217614
|
+
return b.createTableModel({
|
|
217615
217615
|
headerAreaModel: n,
|
|
217616
217616
|
bodyAreaModel: s,
|
|
217617
217617
|
columnDefs: r
|
|
217618
217618
|
});
|
|
217619
217619
|
}
|
|
217620
|
-
const
|
|
217620
|
+
const er = [
|
|
217621
217621
|
{
|
|
217622
217622
|
data: "Team A",
|
|
217623
217623
|
toggle: !0,
|
|
@@ -217638,8 +217638,8 @@ const _e = [
|
|
|
217638
217638
|
]
|
|
217639
217639
|
}
|
|
217640
217640
|
];
|
|
217641
|
-
function
|
|
217642
|
-
const r =
|
|
217641
|
+
function $r(a = er) {
|
|
217642
|
+
const r = A.buildGroupExts(a), n = A.buildColumnDefs(r), m = new se("header", a, n, 34);
|
|
217643
217643
|
console.info("headerGroups", a), console.info("columnDefs", n.map((p) => p.property)), console.info("columnDefs", n);
|
|
217644
217644
|
const s = [
|
|
217645
217645
|
{
|
|
@@ -217648,14 +217648,14 @@ function kr(a = _e) {
|
|
|
217648
217648
|
peter: 5,
|
|
217649
217649
|
paul: 4
|
|
217650
217650
|
}
|
|
217651
|
-
], i = new
|
|
217652
|
-
return
|
|
217651
|
+
], i = new W("body", s, n, 34);
|
|
217652
|
+
return b.createTableModel({
|
|
217653
217653
|
headerAreaModel: m,
|
|
217654
217654
|
bodyAreaModel: i,
|
|
217655
217655
|
columnDefs: n
|
|
217656
217656
|
});
|
|
217657
217657
|
}
|
|
217658
|
-
function
|
|
217658
|
+
function rr() {
|
|
217659
217659
|
return [
|
|
217660
217660
|
{
|
|
217661
217661
|
id: 1,
|
|
@@ -217835,33 +217835,33 @@ function Ke() {
|
|
|
217835
217835
|
}
|
|
217836
217836
|
];
|
|
217837
217837
|
}
|
|
217838
|
-
function
|
|
217838
|
+
function ar() {
|
|
217839
217839
|
return [
|
|
217840
|
-
new t("firstName", "First Name",
|
|
217840
|
+
new t("firstName", "First Name", g),
|
|
217841
217841
|
new t("lastName", "Last Name"),
|
|
217842
217842
|
t.create({
|
|
217843
217843
|
property: "gender",
|
|
217844
217844
|
headerLabel: "Gender",
|
|
217845
|
-
width:
|
|
217845
|
+
width: u,
|
|
217846
217846
|
bodyClasses: ["ge-table-text-align-left"]
|
|
217847
217847
|
}),
|
|
217848
217848
|
t.create({
|
|
217849
217849
|
property: "email",
|
|
217850
217850
|
headerLabel: "Email",
|
|
217851
|
-
width:
|
|
217851
|
+
width: ie,
|
|
217852
217852
|
bodyClasses: ["ge-table-text-align-left"]
|
|
217853
217853
|
}),
|
|
217854
|
-
new t("ipAddress", "IP",
|
|
217854
|
+
new t("ipAddress", "IP", de),
|
|
217855
217855
|
t.create({
|
|
217856
217856
|
property: "id",
|
|
217857
217857
|
headerLabel: "ID",
|
|
217858
|
-
width:
|
|
217858
|
+
width: Ce,
|
|
217859
217859
|
// bodyRenderer: actionRenderer,
|
|
217860
217860
|
bodyClasses: ["ge-table-text-align-left"]
|
|
217861
217861
|
})
|
|
217862
217862
|
];
|
|
217863
217863
|
}
|
|
217864
|
-
function
|
|
217864
|
+
function tr() {
|
|
217865
217865
|
return {
|
|
217866
217866
|
...new N(),
|
|
217867
217867
|
hoverColumnVisible: !1,
|
|
@@ -217872,19 +217872,19 @@ function je() {
|
|
|
217872
217872
|
}
|
|
217873
217873
|
};
|
|
217874
217874
|
}
|
|
217875
|
-
function
|
|
217876
|
-
const a =
|
|
217877
|
-
return
|
|
217875
|
+
function Er() {
|
|
217876
|
+
const a = tr(), e = rr(), r = ar();
|
|
217877
|
+
return b.createTableModel({
|
|
217878
217878
|
rows: e,
|
|
217879
217879
|
columnDefs: r,
|
|
217880
217880
|
tableOptions: a,
|
|
217881
217881
|
fixedLeftColumnCount: 0
|
|
217882
217882
|
});
|
|
217883
217883
|
}
|
|
217884
|
-
function
|
|
217885
|
-
a.rendererMap = new
|
|
217884
|
+
function _r(a, e) {
|
|
217885
|
+
a.rendererMap = new v(void 0, e, void 0);
|
|
217886
217886
|
}
|
|
217887
|
-
const
|
|
217887
|
+
const nr = [
|
|
217888
217888
|
{
|
|
217889
217889
|
id: 1,
|
|
217890
217890
|
city: "London",
|
|
@@ -218032,35 +218032,35 @@ const Ye = [
|
|
|
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)), I = [
|
|
218036
|
+
new t("city", "City", new c(90, "px")),
|
|
218037
|
+
new t("location", "Location", new c(100, "px")),
|
|
218038
|
+
new t("team.name", "Team", new c(100, "px")),
|
|
218039
218039
|
t.create({
|
|
218040
218040
|
property: "team.active",
|
|
218041
218041
|
headerLabel: "Active",
|
|
218042
|
-
width: new
|
|
218043
|
-
bodyRenderer: new
|
|
218042
|
+
width: new c(60, "px"),
|
|
218043
|
+
bodyRenderer: new ye()
|
|
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 c(60, "px")),
|
|
218046
|
+
new t("data.1", "15", new c(60, "px")),
|
|
218047
|
+
new t("data.2", "30", new c(60, "px")),
|
|
218048
|
+
new t("data.3", "45", new c(60, "px")),
|
|
218049
|
+
new t("data.4", "00", new c(60, "px")),
|
|
218050
|
+
new t("data.5", "15", new c(60, "px")),
|
|
218051
|
+
new t("data.6", "30", new c(60, "px")),
|
|
218052
|
+
new t("data.7", "45", new c(60, "px")),
|
|
218053
|
+
new t("data.8", "00", new c(60, "px")),
|
|
218054
|
+
new t("data.9", "15", new c(60, "px")),
|
|
218055
|
+
new t("data.10", "30", new c(60, "px")),
|
|
218056
|
+
new t("data.11", "45", new c(60, "px")),
|
|
218057
218057
|
t.create({
|
|
218058
218058
|
property: "updatedAt",
|
|
218059
218059
|
headerLabel: "Updated at",
|
|
218060
|
-
width: new
|
|
218061
|
-
bodyRenderer: new
|
|
218060
|
+
width: new c(175, "px"),
|
|
218061
|
+
bodyRenderer: new Le()
|
|
218062
218062
|
})
|
|
218063
|
-
],
|
|
218063
|
+
], Kr = I.length - 1, mr = {
|
|
218064
218064
|
...new N(),
|
|
218065
218065
|
hoverRowVisible: !1,
|
|
218066
218066
|
hoverColumnVisible: !1,
|
|
@@ -218072,22 +218072,22 @@ const Ye = [
|
|
|
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 Wr() {
|
|
218076
|
+
const a = mr.defaultRowHeights;
|
|
218077
|
+
return b.createTableModel({
|
|
218078
|
+
headerAreaModel: new ir(a.header),
|
|
218079
|
+
bodyAreaModel: new sr(a.body),
|
|
218080
|
+
footerAreaModel: new dr(a.footer),
|
|
218081
|
+
columnDefs: I,
|
|
218082
218082
|
fixedLeftColumnCount: 2,
|
|
218083
218083
|
fixedRightColumnCount: 1,
|
|
218084
218084
|
defaultRowHeights: a,
|
|
218085
|
-
columnCount:
|
|
218085
|
+
columnCount: I.length
|
|
218086
218086
|
});
|
|
218087
218087
|
}
|
|
218088
|
-
class
|
|
218088
|
+
class sr extends W {
|
|
218089
218089
|
constructor(e) {
|
|
218090
|
-
super("body",
|
|
218090
|
+
super("body", nr, I, e);
|
|
218091
218091
|
}
|
|
218092
218092
|
getRowspanAt(e, r) {
|
|
218093
218093
|
if (r === 0 || r == 1) {
|
|
@@ -218104,7 +218104,7 @@ class Je extends R {
|
|
|
218104
218104
|
return m;
|
|
218105
218105
|
}
|
|
218106
218106
|
}
|
|
218107
|
-
class
|
|
218107
|
+
class ir extends M {
|
|
218108
218108
|
constructor(e) {
|
|
218109
218109
|
super(
|
|
218110
218110
|
"header",
|
|
@@ -218131,7 +218131,7 @@ class Qe extends k {
|
|
|
218131
218131
|
return ["ge-font-weight-bold"];
|
|
218132
218132
|
}
|
|
218133
218133
|
}
|
|
218134
|
-
class
|
|
218134
|
+
class dr extends M {
|
|
218135
218135
|
constructor(e) {
|
|
218136
218136
|
super(
|
|
218137
218137
|
"footer",
|
|
@@ -218146,7 +218146,7 @@ class er extends k {
|
|
|
218146
218146
|
return r === 2 ? ["ge-text-align-right", "ge-font-weight-bold"] : [];
|
|
218147
218147
|
}
|
|
218148
218148
|
}
|
|
218149
|
-
const
|
|
218149
|
+
const yr = [
|
|
218150
218150
|
{
|
|
218151
218151
|
id: "c8-34f1d5",
|
|
218152
218152
|
company: "Equicom",
|
|
@@ -220084,15 +220084,15 @@ const rr = [
|
|
|
220084
220084
|
rating: 5
|
|
220085
220085
|
}
|
|
220086
220086
|
];
|
|
220087
|
-
function
|
|
220088
|
-
return
|
|
220087
|
+
function pr() {
|
|
220088
|
+
return yr;
|
|
220089
220089
|
}
|
|
220090
|
-
function
|
|
220090
|
+
function ur() {
|
|
220091
220091
|
return [
|
|
220092
220092
|
t.create({
|
|
220093
220093
|
property: "company",
|
|
220094
220094
|
headerLabel: "Company",
|
|
220095
|
-
width:
|
|
220095
|
+
width: g,
|
|
220096
220096
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220097
220097
|
headerClasses: ["ge-table-text-align-left"],
|
|
220098
220098
|
sortable: y
|
|
@@ -220100,7 +220100,7 @@ function tr() {
|
|
|
220100
220100
|
t.create({
|
|
220101
220101
|
property: "country",
|
|
220102
220102
|
headerLabel: "Country",
|
|
220103
|
-
width:
|
|
220103
|
+
width: P,
|
|
220104
220104
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220105
220105
|
headerClasses: ["ge-table-text-align-left"],
|
|
220106
220106
|
sortable: y
|
|
@@ -220108,7 +220108,7 @@ function tr() {
|
|
|
220108
220108
|
t.create({
|
|
220109
220109
|
property: "product",
|
|
220110
220110
|
headerLabel: "Name",
|
|
220111
|
-
width:
|
|
220111
|
+
width: g,
|
|
220112
220112
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220113
220113
|
headerClasses: ["ge-table-text-align-left"],
|
|
220114
220114
|
sortable: y
|
|
@@ -220116,30 +220116,30 @@ function tr() {
|
|
|
220116
220116
|
t.create({
|
|
220117
220117
|
property: "sellDate",
|
|
220118
220118
|
headerLabel: "Sell date",
|
|
220119
|
-
width:
|
|
220120
|
-
bodyRenderer: new
|
|
220119
|
+
width: u,
|
|
220120
|
+
bodyRenderer: new R(),
|
|
220121
220121
|
bodyClasses: ["ge-table-text-align-center"],
|
|
220122
220122
|
sortable: y
|
|
220123
220123
|
}),
|
|
220124
220124
|
t.create({
|
|
220125
220125
|
property: "id",
|
|
220126
220126
|
headerLabel: "Order ID",
|
|
220127
|
-
width:
|
|
220127
|
+
width: g,
|
|
220128
220128
|
bodyClasses: ["ge-table-text-align-center"],
|
|
220129
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: Z,
|
|
220135
|
+
bodyRenderer: new pe("inStock", !0, !0),
|
|
220136
220136
|
bodyClasses: ["ge-table-text-align-center"],
|
|
220137
220137
|
sortable: y
|
|
220138
220138
|
}),
|
|
220139
220139
|
t.create({
|
|
220140
220140
|
property: "quantity",
|
|
220141
220141
|
headerLabel: "Qty",
|
|
220142
|
-
width:
|
|
220142
|
+
width: L,
|
|
220143
220143
|
bodyClasses: ["ge-table-text-align-right"],
|
|
220144
220144
|
headerClasses: ["ge-table-text-align-right"],
|
|
220145
220145
|
sortable: y
|
|
@@ -220147,23 +220147,23 @@ function tr() {
|
|
|
220147
220147
|
t.create({
|
|
220148
220148
|
property: "progress",
|
|
220149
220149
|
headerLabel: "Progress",
|
|
220150
|
-
width:
|
|
220151
|
-
bodyRenderer: new
|
|
220150
|
+
width: u,
|
|
220151
|
+
bodyRenderer: new ue("progress", 5, !0),
|
|
220152
220152
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220153
220153
|
sortable: y
|
|
220154
220154
|
}),
|
|
220155
220155
|
t.create({
|
|
220156
220156
|
property: "rating",
|
|
220157
220157
|
headerLabel: "Rating",
|
|
220158
|
-
width:
|
|
220159
|
-
bodyRenderer: new
|
|
220158
|
+
width: u,
|
|
220159
|
+
bodyRenderer: new ce("rating"),
|
|
220160
220160
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220161
220161
|
sortable: y
|
|
220162
220162
|
})
|
|
220163
220163
|
];
|
|
220164
220164
|
}
|
|
220165
|
-
function
|
|
220166
|
-
const a = new
|
|
220165
|
+
function cr() {
|
|
220166
|
+
const a = new C("row", "multi");
|
|
220167
220167
|
return {
|
|
220168
220168
|
...new N(),
|
|
220169
220169
|
hoverColumnVisible: !1,
|
|
@@ -220175,10 +220175,10 @@ function nr() {
|
|
|
220175
220175
|
getSelectionModel: () => a
|
|
220176
220176
|
};
|
|
220177
220177
|
}
|
|
220178
|
-
function
|
|
220179
|
-
const a =
|
|
220180
|
-
return new
|
|
220181
|
-
|
|
220178
|
+
function Yr() {
|
|
220179
|
+
const a = cr(), e = pr(), r = ur();
|
|
220180
|
+
return new f(
|
|
220181
|
+
b.createTableModel({
|
|
220182
220182
|
rows: e,
|
|
220183
220183
|
columnDefs: r,
|
|
220184
220184
|
tableOptions: a,
|
|
@@ -220187,32 +220187,32 @@ function Br() {
|
|
|
220187
220187
|
a
|
|
220188
220188
|
);
|
|
220189
220189
|
}
|
|
220190
|
-
function
|
|
220190
|
+
function re() {
|
|
220191
220191
|
return [
|
|
220192
220192
|
t.create({
|
|
220193
220193
|
headerLabel: "ID",
|
|
220194
|
-
width:
|
|
220194
|
+
width: g,
|
|
220195
220195
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220196
220196
|
headerClasses: ["ge-table-text-align-left"],
|
|
220197
|
-
sortable:
|
|
220197
|
+
sortable: F
|
|
220198
220198
|
}),
|
|
220199
220199
|
t.create({
|
|
220200
220200
|
headerLabel: "Value",
|
|
220201
|
-
width:
|
|
220201
|
+
width: k,
|
|
220202
220202
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220203
220203
|
headerClasses: ["ge-table-text-align-left"],
|
|
220204
|
-
sortable:
|
|
220204
|
+
sortable: F
|
|
220205
220205
|
}),
|
|
220206
220206
|
t.create({
|
|
220207
220207
|
headerLabel: " ",
|
|
220208
|
-
width:
|
|
220208
|
+
width: k,
|
|
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 lr() {
|
|
220215
|
+
const a = new C();
|
|
220216
220216
|
return {
|
|
220217
220217
|
...new N(),
|
|
220218
220218
|
hoverColumnVisible: !1,
|
|
@@ -220224,22 +220224,22 @@ function mr() {
|
|
|
220224
220224
|
getSelectionModel: () => a
|
|
220225
220225
|
};
|
|
220226
220226
|
}
|
|
220227
|
-
function
|
|
220228
|
-
const r =
|
|
220229
|
-
return new
|
|
220227
|
+
function jr(a = 1e6, e = !1) {
|
|
220228
|
+
const r = lr(), n = e ? [new Ge({ format: (i) => i.toLocaleString("en-US") }), ...re()] : re(), m = e ? 1 : 0, s = new gr(a, m);
|
|
220229
|
+
return new f(b.createTableModel({
|
|
220230
220230
|
bodyAreaModel: s,
|
|
220231
220231
|
columnDefs: n,
|
|
220232
220232
|
tableOptions: r,
|
|
220233
220233
|
fixedLeftColumnCount: m
|
|
220234
220234
|
}), r);
|
|
220235
220235
|
}
|
|
220236
|
-
class
|
|
220236
|
+
class gr extends K {
|
|
220237
220237
|
/**
|
|
220238
220238
|
* @param rowcount - number of rows
|
|
220239
220239
|
* @param columnOffset - columns in front of the data columns (1 for a RowNumberColumnDef)
|
|
220240
220240
|
*/
|
|
220241
220241
|
constructor(e = 1e6, r = 0) {
|
|
220242
|
-
super(), this.rowcount = e, this.columnOffset = r, this.nf = new Intl.NumberFormat("en-Us", {}), this.barRenderer = new
|
|
220242
|
+
super(), this.rowcount = e, this.columnOffset = r, this.nf = new Intl.NumberFormat("en-Us", {}), this.barRenderer = new Pe(e, !1);
|
|
220243
220243
|
}
|
|
220244
220244
|
getRowCount() {
|
|
220245
220245
|
return this.rowcount;
|
|
@@ -220261,7 +220261,7 @@ class sr extends I {
|
|
|
220261
220261
|
return e * this.getRowHeight(0);
|
|
220262
220262
|
}
|
|
220263
220263
|
}
|
|
220264
|
-
const
|
|
220264
|
+
const br = [
|
|
220265
220265
|
{
|
|
220266
220266
|
id: "f0-bfbecb",
|
|
220267
220267
|
company: "Medmex",
|
|
@@ -221733,15 +221733,15 @@ const ir = [
|
|
|
221733
221733
|
f2: 28.55122067
|
|
221734
221734
|
}
|
|
221735
221735
|
];
|
|
221736
|
-
function
|
|
221737
|
-
return
|
|
221736
|
+
function Nr(a = 75) {
|
|
221737
|
+
return br.slice(0, a - 1);
|
|
221738
221738
|
}
|
|
221739
|
-
function
|
|
221739
|
+
function fr(a) {
|
|
221740
221740
|
return [
|
|
221741
221741
|
t.create({
|
|
221742
221742
|
property: "company",
|
|
221743
221743
|
headerLabel: "Company",
|
|
221744
|
-
width:
|
|
221744
|
+
width: u,
|
|
221745
221745
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221746
221746
|
headerClasses: ["ge-table-text-align-left"],
|
|
221747
221747
|
sortable: y,
|
|
@@ -221750,7 +221750,7 @@ function yr(a) {
|
|
|
221750
221750
|
t.create({
|
|
221751
221751
|
property: "country",
|
|
221752
221752
|
headerLabel: "Country",
|
|
221753
|
-
width:
|
|
221753
|
+
width: P,
|
|
221754
221754
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221755
221755
|
headerClasses: ["ge-table-text-align-left"],
|
|
221756
221756
|
sortable: y,
|
|
@@ -221759,7 +221759,7 @@ function yr(a) {
|
|
|
221759
221759
|
t.create({
|
|
221760
221760
|
property: "product",
|
|
221761
221761
|
headerLabel: "Name",
|
|
221762
|
-
width:
|
|
221762
|
+
width: u,
|
|
221763
221763
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221764
221764
|
headerClasses: ["ge-table-text-align-left"],
|
|
221765
221765
|
sortable: y,
|
|
@@ -221768,7 +221768,7 @@ function yr(a) {
|
|
|
221768
221768
|
t.create({
|
|
221769
221769
|
property: "birthday",
|
|
221770
221770
|
headerLabel: "Birth Date",
|
|
221771
|
-
width:
|
|
221771
|
+
width: u,
|
|
221772
221772
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221773
221773
|
sortable: y,
|
|
221774
221774
|
editable: () => a
|
|
@@ -221776,8 +221776,8 @@ function yr(a) {
|
|
|
221776
221776
|
t.create({
|
|
221777
221777
|
property: "sellDate",
|
|
221778
221778
|
headerLabel: "Sell date",
|
|
221779
|
-
width:
|
|
221780
|
-
bodyRenderer: new
|
|
221779
|
+
width: u,
|
|
221780
|
+
bodyRenderer: new R(),
|
|
221781
221781
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221782
221782
|
sortable: y,
|
|
221783
221783
|
editable: () => a
|
|
@@ -221785,7 +221785,7 @@ function yr(a) {
|
|
|
221785
221785
|
t.create({
|
|
221786
221786
|
property: "lastVisit",
|
|
221787
221787
|
headerLabel: "Last Visit",
|
|
221788
|
-
width:
|
|
221788
|
+
width: le,
|
|
221789
221789
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221790
221790
|
sortable: y,
|
|
221791
221791
|
editable: () => a
|
|
@@ -221793,7 +221793,7 @@ function yr(a) {
|
|
|
221793
221793
|
t.create({
|
|
221794
221794
|
property: "time",
|
|
221795
221795
|
headerLabel: "Time",
|
|
221796
|
-
width:
|
|
221796
|
+
width: u,
|
|
221797
221797
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221798
221798
|
sortable: y,
|
|
221799
221799
|
editable: () => a
|
|
@@ -221801,15 +221801,15 @@ function yr(a) {
|
|
|
221801
221801
|
t.create({
|
|
221802
221802
|
property: "id",
|
|
221803
221803
|
headerLabel: "Order ID",
|
|
221804
|
-
width:
|
|
221804
|
+
width: g,
|
|
221805
221805
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221806
221806
|
sortable: y
|
|
221807
221807
|
}),
|
|
221808
221808
|
t.create({
|
|
221809
221809
|
property: "inStock",
|
|
221810
221810
|
headerLabel: "In stock",
|
|
221811
|
-
width:
|
|
221812
|
-
bodyRenderer: new
|
|
221811
|
+
width: Z,
|
|
221812
|
+
bodyRenderer: new pe("inStock", !0, !0),
|
|
221813
221813
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221814
221814
|
sortable: y,
|
|
221815
221815
|
editable: () => a
|
|
@@ -221817,7 +221817,7 @@ function yr(a) {
|
|
|
221817
221817
|
t.create({
|
|
221818
221818
|
property: "quantity",
|
|
221819
221819
|
headerLabel: "Qty",
|
|
221820
|
-
width:
|
|
221820
|
+
width: L,
|
|
221821
221821
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221822
221822
|
headerClasses: ["ge-table-text-align-right"],
|
|
221823
221823
|
sortable: y,
|
|
@@ -221826,23 +221826,23 @@ function yr(a) {
|
|
|
221826
221826
|
t.create({
|
|
221827
221827
|
property: "progress",
|
|
221828
221828
|
headerLabel: "Progress",
|
|
221829
|
-
width:
|
|
221830
|
-
bodyRenderer: new
|
|
221829
|
+
width: u,
|
|
221830
|
+
bodyRenderer: new ue("progress", 5, !0),
|
|
221831
221831
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221832
221832
|
sortable: y
|
|
221833
221833
|
}),
|
|
221834
221834
|
t.create({
|
|
221835
221835
|
property: "rating",
|
|
221836
221836
|
headerLabel: "Rating",
|
|
221837
|
-
width:
|
|
221838
|
-
bodyRenderer: new
|
|
221837
|
+
width: u,
|
|
221838
|
+
bodyRenderer: new ce("rating"),
|
|
221839
221839
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221840
221840
|
sortable: y
|
|
221841
221841
|
}),
|
|
221842
221842
|
t.create({
|
|
221843
221843
|
property: "price",
|
|
221844
221844
|
headerLabel: "Price",
|
|
221845
|
-
width:
|
|
221845
|
+
width: L,
|
|
221846
221846
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221847
221847
|
sortable: y,
|
|
221848
221848
|
editable: () => a
|
|
@@ -221850,22 +221850,22 @@ function yr(a) {
|
|
|
221850
221850
|
t.create({
|
|
221851
221851
|
property: "active",
|
|
221852
221852
|
headerLabel: "Active",
|
|
221853
|
-
width:
|
|
221854
|
-
bodyRenderer: new
|
|
221853
|
+
width: L,
|
|
221854
|
+
bodyRenderer: new ye(),
|
|
221855
221855
|
sortable: y,
|
|
221856
221856
|
editable: () => a
|
|
221857
221857
|
}),
|
|
221858
221858
|
t.create({
|
|
221859
221859
|
property: "currency",
|
|
221860
221860
|
headerLabel: "CCY",
|
|
221861
|
-
width:
|
|
221861
|
+
width: L,
|
|
221862
221862
|
sortable: y,
|
|
221863
221863
|
editable: () => a
|
|
221864
221864
|
}),
|
|
221865
221865
|
t.create({
|
|
221866
221866
|
property: "average",
|
|
221867
221867
|
headerLabel: "Average",
|
|
221868
|
-
width:
|
|
221868
|
+
width: u,
|
|
221869
221869
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221870
221870
|
sortable: y,
|
|
221871
221871
|
editable: () => a
|
|
@@ -221873,16 +221873,16 @@ function yr(a) {
|
|
|
221873
221873
|
t.create({
|
|
221874
221874
|
property: "f1",
|
|
221875
221875
|
headerLabel: "F1",
|
|
221876
|
-
width:
|
|
221876
|
+
width: ge,
|
|
221877
221877
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221878
|
-
bodyRenderer: new
|
|
221878
|
+
bodyRenderer: new Ze(),
|
|
221879
221879
|
sortable: y,
|
|
221880
221880
|
editable: () => a
|
|
221881
221881
|
}),
|
|
221882
221882
|
t.create({
|
|
221883
221883
|
property: "f2",
|
|
221884
221884
|
headerLabel: "F2",
|
|
221885
|
-
width:
|
|
221885
|
+
width: g,
|
|
221886
221886
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221887
221887
|
sortable: y,
|
|
221888
221888
|
editable: () => a
|
|
@@ -221890,14 +221890,14 @@ function yr(a) {
|
|
|
221890
221890
|
t.create({
|
|
221891
221891
|
property: "lorem",
|
|
221892
221892
|
headerLabel: "Lorem",
|
|
221893
|
-
width:
|
|
221893
|
+
width: k,
|
|
221894
221894
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221895
221895
|
sortable: y,
|
|
221896
221896
|
editable: () => a
|
|
221897
221897
|
})
|
|
221898
221898
|
];
|
|
221899
221899
|
}
|
|
221900
|
-
function
|
|
221900
|
+
function Tr(a) {
|
|
221901
221901
|
return {
|
|
221902
221902
|
...new N(),
|
|
221903
221903
|
hoverColumnVisible: !1,
|
|
@@ -221909,17 +221909,17 @@ function pr(a) {
|
|
|
221909
221909
|
getSelectionModel: () => a
|
|
221910
221910
|
};
|
|
221911
221911
|
}
|
|
221912
|
-
function
|
|
221913
|
-
const n =
|
|
221912
|
+
function Xr(a = new C("row", "multi"), e = 75, r = !1) {
|
|
221913
|
+
const n = Tr(a);
|
|
221914
221914
|
e = Math.max(10, Math.min(75, e));
|
|
221915
|
-
const m =
|
|
221916
|
-
return new
|
|
221915
|
+
const m = Nr(e), s = fr(r);
|
|
221916
|
+
return new f(b.createTableModel({
|
|
221917
221917
|
rows: m,
|
|
221918
221918
|
columnDefs: s,
|
|
221919
221919
|
tableOptions: n
|
|
221920
221920
|
}), n);
|
|
221921
221921
|
}
|
|
221922
|
-
const
|
|
221922
|
+
const or = [
|
|
221923
221923
|
["Germany", "Hamburg"],
|
|
221924
221924
|
["Germany", "Berlin"],
|
|
221925
221925
|
["Germany", "Munich"],
|
|
@@ -221932,7 +221932,7 @@ const ur = [
|
|
|
221932
221932
|
["Spain", "Madrid"],
|
|
221933
221933
|
["Poland", "Warsaw"],
|
|
221934
221934
|
["Denmark", "Copenhagen"]
|
|
221935
|
-
],
|
|
221935
|
+
], hr = [
|
|
221936
221936
|
["Laptop", "Hardware", 1299],
|
|
221937
221937
|
["Monitor", "Hardware", 349],
|
|
221938
221938
|
["Keyboard", "Accessories", 89],
|
|
@@ -221942,70 +221942,70 @@ const ur = [
|
|
|
221942
221942
|
["Cloud Credits", "Services", 500],
|
|
221943
221943
|
["Support Plan", "Services", 990]
|
|
221944
221944
|
];
|
|
221945
|
-
function
|
|
221945
|
+
function Sr(a) {
|
|
221946
221946
|
return () => {
|
|
221947
221947
|
a |= 0, a = a + 1831565813 | 0;
|
|
221948
221948
|
let e = Math.imul(a ^ a >>> 15, 1 | a);
|
|
221949
221949
|
return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
221950
221950
|
};
|
|
221951
221951
|
}
|
|
221952
|
-
function
|
|
221953
|
-
const r =
|
|
221952
|
+
function O(a, e = 42) {
|
|
221953
|
+
const r = Sr(e), n = (s) => s[Math.floor(r() * s.length)], m = new Array(a);
|
|
221954
221954
|
for (let s = 0; s < a; s++) {
|
|
221955
|
-
const [i, p] = n(
|
|
221956
|
-
m[s] = { id: s + 1, country: i, city: p, product: d, category: l, quantity:
|
|
221955
|
+
const [i, p] = n(or), [d, l, T] = n(hr), S = 1 + Math.floor(r() * 20), D = Math.round(T * (0.85 + r() * 0.3) * 100) / 100;
|
|
221956
|
+
m[s] = { id: s + 1, country: i, city: p, product: d, category: l, quantity: S, price: D, total: Math.round(S * D * 100) / 100 };
|
|
221957
221957
|
}
|
|
221958
221958
|
return m;
|
|
221959
221959
|
}
|
|
221960
|
-
const
|
|
221961
|
-
function
|
|
221960
|
+
const U = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], sortable: y };
|
|
221961
|
+
function Te() {
|
|
221962
221962
|
return [
|
|
221963
|
-
t.create({ property: "id", headerLabel: "Order", width:
|
|
221964
|
-
t.create({ property: "country", headerLabel: "Country", width:
|
|
221965
|
-
t.create({ property: "city", headerLabel: "City", width:
|
|
221966
|
-
t.create({ property: "product", headerLabel: "Product", width:
|
|
221967
|
-
t.create({ property: "category", headerLabel: "Category", width:
|
|
221968
|
-
t.create({ property: "quantity", headerLabel: "Qty", width:
|
|
221969
|
-
t.create({ property: "price", headerLabel: "Ø Price", width:
|
|
221970
|
-
t.create({ property: "total", headerLabel: "Total", width:
|
|
221963
|
+
t.create({ property: "id", headerLabel: "Order", width: u, ...U }),
|
|
221964
|
+
t.create({ property: "country", headerLabel: "Country", width: P, sortable: y }),
|
|
221965
|
+
t.create({ property: "city", headerLabel: "City", width: P, sortable: y }),
|
|
221966
|
+
t.create({ property: "product", headerLabel: "Product", width: _, sortable: y }),
|
|
221967
|
+
t.create({ property: "category", headerLabel: "Category", width: P, sortable: y }),
|
|
221968
|
+
t.create({ property: "quantity", headerLabel: "Qty", width: u, ...U }),
|
|
221969
|
+
t.create({ property: "price", headerLabel: "Ø Price", width: $, ...U }),
|
|
221970
|
+
t.create({ property: "total", headerLabel: "Total", width: P, ...U })
|
|
221971
221971
|
];
|
|
221972
221972
|
}
|
|
221973
|
-
function
|
|
221974
|
-
const n = new
|
|
221973
|
+
function Jr(a = 5e4, e = ["country", "city"], r = 1) {
|
|
221974
|
+
const n = new C("row", "multi"), m = {
|
|
221975
221975
|
...new N(),
|
|
221976
221976
|
hoverColumnVisible: !1,
|
|
221977
221977
|
getSelectionModel: () => n
|
|
221978
|
-
}, s =
|
|
221979
|
-
rows:
|
|
221980
|
-
columnDefs:
|
|
221978
|
+
}, s = ze.createTableModel({
|
|
221979
|
+
rows: O(a),
|
|
221980
|
+
columnDefs: Te(),
|
|
221981
221981
|
groupBy: e,
|
|
221982
221982
|
aggregations: { quantity: "sum", price: "avg", total: "sum" },
|
|
221983
221983
|
expanded: r,
|
|
221984
221984
|
tableOptions: m
|
|
221985
221985
|
});
|
|
221986
|
-
return new
|
|
221986
|
+
return new f(s, m);
|
|
221987
221987
|
}
|
|
221988
|
-
const
|
|
221989
|
-
class
|
|
221988
|
+
const Cr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
221989
|
+
class Lr {
|
|
221990
221990
|
render(e, r, n, m, s, i, p) {
|
|
221991
221991
|
if (typeof i == "number") {
|
|
221992
221992
|
const d = p.createElement("div");
|
|
221993
221993
|
p.addClass(d, "ge-table-label-div");
|
|
221994
221994
|
const l = p.createElement("div");
|
|
221995
|
-
p.addClass(l, "ge-table-label"), p.appendChild(l, p.createText(
|
|
221995
|
+
p.addClass(l, "ge-table-label"), p.appendChild(l, p.createText(Cr.format(i))), p.appendChild(d, l), p.appendChild(e, d);
|
|
221996
221996
|
}
|
|
221997
221997
|
}
|
|
221998
221998
|
}
|
|
221999
|
-
function
|
|
222000
|
-
const e = new
|
|
221999
|
+
function Qr(a = 5e4) {
|
|
222000
|
+
const e = new C("range", "multi"), r = {
|
|
222001
222001
|
...new N(),
|
|
222002
222002
|
hoverColumnVisible: !1,
|
|
222003
222003
|
getSelectionModel: () => e
|
|
222004
|
-
}, n =
|
|
222004
|
+
}, n = Te(), m = new Lr();
|
|
222005
222005
|
for (const i of n)
|
|
222006
222006
|
(i.property === "price" || i.property === "total") && (i.rendererMap.body = m);
|
|
222007
|
-
const s =
|
|
222008
|
-
rows:
|
|
222007
|
+
const s = b.createTableModel({
|
|
222008
|
+
rows: O(a),
|
|
222009
222009
|
columnDefs: n,
|
|
222010
222010
|
footerAggregates: {
|
|
222011
222011
|
rows: [
|
|
@@ -222021,35 +222021,35 @@ function Rr(a = 5e4) {
|
|
|
222021
222021
|
},
|
|
222022
222022
|
tableOptions: r
|
|
222023
222023
|
});
|
|
222024
|
-
return new
|
|
222024
|
+
return new f(s, r);
|
|
222025
222025
|
}
|
|
222026
|
-
function
|
|
222026
|
+
function Pr(a) {
|
|
222027
222027
|
return () => {
|
|
222028
222028
|
a |= 0, a = a + 1831565813 | 0;
|
|
222029
222029
|
let e = Math.imul(a ^ a >>> 15, 1 | a);
|
|
222030
222030
|
return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
222031
222031
|
};
|
|
222032
222032
|
}
|
|
222033
|
-
function
|
|
222034
|
-
const r =
|
|
222035
|
-
return
|
|
222033
|
+
function Gr(a, e = 42) {
|
|
222034
|
+
const r = Pr(e + 1), n = Date.UTC(2024, 0, 1), m = 3 * 365 + 1;
|
|
222035
|
+
return O(a, e).map((s) => ({
|
|
222036
222036
|
...s,
|
|
222037
222037
|
date: new Date(n + Math.floor(r() * m) * 864e5).toISOString().slice(0, 10)
|
|
222038
222038
|
}));
|
|
222039
222039
|
}
|
|
222040
|
-
const
|
|
222040
|
+
const Zr = { name: "year", label: "Year", value: (a) => Number(a.date.slice(0, 4)) }, zr = {
|
|
222041
222041
|
name: "quarter",
|
|
222042
222042
|
label: "Quarter",
|
|
222043
222043
|
value: (a) => Math.floor((Number(a.date.slice(5, 7)) - 1) / 3) + 1,
|
|
222044
222044
|
format: (a) => `Q${a}`
|
|
222045
222045
|
};
|
|
222046
|
-
function
|
|
222047
|
-
const n = new
|
|
222046
|
+
function ea(a = 5e4, e = [Zr, zr], r = 0) {
|
|
222047
|
+
const n = new C("range", "multi"), m = {
|
|
222048
222048
|
...new N(),
|
|
222049
222049
|
hoverColumnVisible: !1,
|
|
222050
222050
|
getSelectionModel: () => n
|
|
222051
|
-
}, s =
|
|
222052
|
-
rows:
|
|
222051
|
+
}, s = we.createTableModel({
|
|
222052
|
+
rows: Gr(a),
|
|
222053
222053
|
rowFields: [{ value: "country", label: "Country" }, { value: "city", label: "City" }],
|
|
222054
222054
|
columnFields: e,
|
|
222055
222055
|
values: [
|
|
@@ -222057,13 +222057,210 @@ function Hr(a = 5e4, e = [Tr, or], r = 0) {
|
|
|
222057
222057
|
{ value: "id", aggregator: "count", label: "Orders" }
|
|
222058
222058
|
],
|
|
222059
222059
|
expanded: r,
|
|
222060
|
-
valueColumnWidth:
|
|
222060
|
+
valueColumnWidth: g,
|
|
222061
222061
|
groupColumn: { showCount: !1 },
|
|
222062
222062
|
tableOptions: m
|
|
222063
222063
|
});
|
|
222064
|
-
return new
|
|
222064
|
+
return new f(s, m);
|
|
222065
|
+
}
|
|
222066
|
+
const wr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
222067
|
+
class vr {
|
|
222068
|
+
render(e, r, n, m, s, i, p) {
|
|
222069
|
+
if (i == null || i === "")
|
|
222070
|
+
return;
|
|
222071
|
+
const d = p.createElement("div");
|
|
222072
|
+
p.addClass(d, "ge-table-label-div");
|
|
222073
|
+
const l = p.createElement("div");
|
|
222074
|
+
p.addClass(l, "ge-table-label");
|
|
222075
|
+
const T = typeof i == "number" ? wr.format(i) : `${i}`;
|
|
222076
|
+
p.appendChild(l, p.createText(T)), p.appendChild(d, l), p.appendChild(e, d);
|
|
222077
|
+
}
|
|
222078
|
+
}
|
|
222079
|
+
function kr(a, e = 8) {
|
|
222080
|
+
const r = [0, 0, 0, 5, 5, 10, 15];
|
|
222081
|
+
return O(a, e).map((n, m) => ({
|
|
222082
|
+
id: n.id,
|
|
222083
|
+
country: n.country,
|
|
222084
|
+
product: n.product,
|
|
222085
|
+
quantity: n.quantity,
|
|
222086
|
+
price: n.price,
|
|
222087
|
+
discount: r[(m * 7 + n.quantity) % r.length]
|
|
222088
|
+
}));
|
|
222089
|
+
}
|
|
222090
|
+
const o = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], footerClasses: ["ge-table-text-align-right"] }, q = {
|
|
222091
|
+
net: "ROUND([quantity] * [price] * (1 - [discount] / 100), 2)",
|
|
222092
|
+
vat: "ROUND([net] * 0.19, 2)",
|
|
222093
|
+
gross: "[net] + [vat]",
|
|
222094
|
+
custom: 'IF([discount] > 0, ROUND([gross] / [quantity], 2), "–")'
|
|
222095
|
+
};
|
|
222096
|
+
function Dr(a = q.custom) {
|
|
222097
|
+
const e = new vr();
|
|
222098
|
+
return [
|
|
222099
|
+
t.create({ property: "id", headerLabel: "Line", width: Z, ...o, sortable: y }),
|
|
222100
|
+
t.create({ property: "country", headerLabel: "Country", width: ve, sortable: y }),
|
|
222101
|
+
t.create({ property: "product", headerLabel: "Product", width: _, sortable: y }),
|
|
222102
|
+
t.create({
|
|
222103
|
+
property: "quantity",
|
|
222104
|
+
headerLabel: "Qty",
|
|
222105
|
+
width: Z,
|
|
222106
|
+
...o,
|
|
222107
|
+
sortable: y,
|
|
222108
|
+
editable: y,
|
|
222109
|
+
editInputPipe: G
|
|
222110
|
+
}),
|
|
222111
|
+
t.create({
|
|
222112
|
+
property: "price",
|
|
222113
|
+
headerLabel: "Price",
|
|
222114
|
+
width: $,
|
|
222115
|
+
...o,
|
|
222116
|
+
sortable: y,
|
|
222117
|
+
editable: y,
|
|
222118
|
+
editInputPipe: G,
|
|
222119
|
+
bodyRenderer: e
|
|
222120
|
+
}),
|
|
222121
|
+
t.create({
|
|
222122
|
+
property: "discount",
|
|
222123
|
+
headerLabel: "Disc. %",
|
|
222124
|
+
width: Z,
|
|
222125
|
+
...o,
|
|
222126
|
+
sortable: y,
|
|
222127
|
+
editable: y,
|
|
222128
|
+
editInputPipe: G
|
|
222129
|
+
}),
|
|
222130
|
+
t.create({
|
|
222131
|
+
property: "net",
|
|
222132
|
+
headerLabel: "Net",
|
|
222133
|
+
width: g,
|
|
222134
|
+
...o,
|
|
222135
|
+
sortable: y,
|
|
222136
|
+
formula: q.net,
|
|
222137
|
+
bodyRenderer: e,
|
|
222138
|
+
footerRenderer: e
|
|
222139
|
+
}),
|
|
222140
|
+
t.create({
|
|
222141
|
+
property: "vat",
|
|
222142
|
+
headerLabel: "VAT 19%",
|
|
222143
|
+
width: $,
|
|
222144
|
+
...o,
|
|
222145
|
+
sortable: y,
|
|
222146
|
+
formula: q.vat,
|
|
222147
|
+
bodyRenderer: e,
|
|
222148
|
+
footerRenderer: e
|
|
222149
|
+
}),
|
|
222150
|
+
t.create({
|
|
222151
|
+
property: "gross",
|
|
222152
|
+
headerLabel: "Gross",
|
|
222153
|
+
width: g,
|
|
222154
|
+
...o,
|
|
222155
|
+
sortable: y,
|
|
222156
|
+
formula: q.gross,
|
|
222157
|
+
bodyRenderer: e,
|
|
222158
|
+
footerRenderer: e
|
|
222159
|
+
}),
|
|
222160
|
+
t.create({
|
|
222161
|
+
property: "share",
|
|
222162
|
+
headerLabel: "Share of net",
|
|
222163
|
+
width: g,
|
|
222164
|
+
...o,
|
|
222165
|
+
sortable: y,
|
|
222166
|
+
formula: "[net]",
|
|
222167
|
+
showValuesAs: { mode: "percentOfColumnTotal", fractionDigits: 2 }
|
|
222168
|
+
}),
|
|
222169
|
+
t.create({
|
|
222170
|
+
property: "rank",
|
|
222171
|
+
headerLabel: "Rank",
|
|
222172
|
+
width: Z,
|
|
222173
|
+
...o,
|
|
222174
|
+
sortable: y,
|
|
222175
|
+
formula: "[gross]",
|
|
222176
|
+
showValuesAs: "rank"
|
|
222177
|
+
}),
|
|
222178
|
+
t.create({
|
|
222179
|
+
property: "custom",
|
|
222180
|
+
headerLabel: "Custom formula",
|
|
222181
|
+
width: P,
|
|
222182
|
+
...o,
|
|
222183
|
+
sortable: y,
|
|
222184
|
+
formula: a
|
|
222185
|
+
})
|
|
222186
|
+
];
|
|
222187
|
+
}
|
|
222188
|
+
function ra(a = 2e3) {
|
|
222189
|
+
const e = {
|
|
222190
|
+
...new N(),
|
|
222191
|
+
hoverColumnVisible: !1
|
|
222192
|
+
}, r = b.createTableModel({
|
|
222193
|
+
rows: kr(a),
|
|
222194
|
+
columnDefs: Dr(),
|
|
222195
|
+
footerAggregates: {
|
|
222196
|
+
rows: [{ label: (n) => `Sum · ${n.toLocaleString("en-US")} lines`, aggregates: { net: "sum", vat: "sum", gross: "sum" } }],
|
|
222197
|
+
labelProperty: "product"
|
|
222198
|
+
},
|
|
222199
|
+
fixedLeftColumnCount: 1,
|
|
222200
|
+
tableOptions: e
|
|
222201
|
+
});
|
|
222202
|
+
return new f(r, e);
|
|
222203
|
+
}
|
|
222204
|
+
const w = [
|
|
222205
|
+
"Fix login timeout",
|
|
222206
|
+
"Ship row drag",
|
|
222207
|
+
"Write release notes",
|
|
222208
|
+
"Review pull requests",
|
|
222209
|
+
"Update dependencies",
|
|
222210
|
+
"Dark mode for the dashboard",
|
|
222211
|
+
"Export to Excel",
|
|
222212
|
+
"Keyboard shortcuts help",
|
|
222213
|
+
"Onboarding video",
|
|
222214
|
+
"Fix flaky test",
|
|
222215
|
+
"Translate settings page",
|
|
222216
|
+
"Accessibility audit",
|
|
222217
|
+
"Cache API responses",
|
|
222218
|
+
"Remove old feature flags",
|
|
222219
|
+
"Improve search ranking",
|
|
222220
|
+
"Mobile layout of the table",
|
|
222221
|
+
"Customer interview notes",
|
|
222222
|
+
"Plan Q1 roadmap",
|
|
222223
|
+
"Refactor date utils",
|
|
222224
|
+
"Security headers"
|
|
222225
|
+
], ae = ["Anna", "Ben", "Chen", "Dana", "Emil"], te = ["todo", "doing", "todo", "done", "todo"];
|
|
222226
|
+
function xr(a = 20, e = !1) {
|
|
222227
|
+
return Array.from({ length: a }, (r, n) => ({
|
|
222228
|
+
id: n + 1,
|
|
222229
|
+
title: n < w.length ? w[n] : `${w[n % w.length]} #${Math.floor(n / w.length) + 1}`,
|
|
222230
|
+
owner: ae[n % ae.length],
|
|
222231
|
+
status: te[n * 3 % te.length],
|
|
222232
|
+
estimate: 1 + n * 7 % 13,
|
|
222233
|
+
locked: e && n === 0
|
|
222234
|
+
}));
|
|
222235
|
+
}
|
|
222236
|
+
function aa(a = xr(20, !0), e = {}) {
|
|
222237
|
+
const r = new C("row", "multi"), n = new be("cell"), m = {
|
|
222238
|
+
...new N(),
|
|
222239
|
+
hoverColumnVisible: !1,
|
|
222240
|
+
getSelectionModel: () => r,
|
|
222241
|
+
getFocusModel: () => n,
|
|
222242
|
+
rowDragOptions: e,
|
|
222243
|
+
ariaLabel: "Priority list"
|
|
222244
|
+
}, s = b.createTableModel({
|
|
222245
|
+
rows: a,
|
|
222246
|
+
rowNumbersVisible: { headerLabel: "#" },
|
|
222247
|
+
columnDefs: [
|
|
222248
|
+
t.create({ property: "title", headerLabel: "Task", width: ie, rowDrag: (i) => !i.locked }),
|
|
222249
|
+
t.create({ property: "owner", headerLabel: "Owner", width: g }),
|
|
222250
|
+
t.create({ property: "status", headerLabel: "Status", width: u }),
|
|
222251
|
+
t.create({
|
|
222252
|
+
property: "estimate",
|
|
222253
|
+
headerLabel: "Hours",
|
|
222254
|
+
width: u,
|
|
222255
|
+
headerClasses: ["ge-table-text-align-right"],
|
|
222256
|
+
bodyClasses: ["ge-table-text-align-right"]
|
|
222257
|
+
})
|
|
222258
|
+
],
|
|
222259
|
+
tableOptions: m
|
|
222260
|
+
});
|
|
222261
|
+
return new f(s, m);
|
|
222065
222262
|
}
|
|
222066
|
-
const
|
|
222263
|
+
const Ur = [
|
|
222067
222264
|
{
|
|
222068
222265
|
id: 0,
|
|
222069
222266
|
preName: "Prename0",
|
|
@@ -383937,9 +384134,9 @@ const hr = [
|
|
|
383937
384134
|
friends: []
|
|
383938
384135
|
}
|
|
383939
384136
|
];
|
|
383940
|
-
function
|
|
383941
|
-
const e = new
|
|
383942
|
-
return a && (e.addSelection(new
|
|
384137
|
+
function qr(a = !1) {
|
|
384138
|
+
const e = new C("range", "multi");
|
|
384139
|
+
return a && (e.addSelection(new z(0, 0, 0, 2)), e.addSelection(new z(2, 1, 2, 2)), e.addSelection(new z(1, 5, 6, 7)), e.addSelection(new z(0, 8, 0, 8)), e.addSelection(new z(5, 6, 10, 10))), {
|
|
383943
384140
|
...new N(),
|
|
383944
384141
|
hoverColumnVisible: !1,
|
|
383945
384142
|
defaultRowHeights: {
|
|
@@ -383948,7 +384145,7 @@ function Sr(a = !1) {
|
|
|
383948
384145
|
footer: 0
|
|
383949
384146
|
},
|
|
383950
384147
|
autoRestoreOptions: {
|
|
383951
|
-
...new
|
|
384148
|
+
...new Be(),
|
|
383952
384149
|
getStorageKeyFn: () => "TreetablePeopleComponent",
|
|
383953
384150
|
autoRestoreCollapsedExpandedState: !0,
|
|
383954
384151
|
autoRestoreScrollPosition: !0,
|
|
@@ -383958,100 +384155,203 @@ function Sr(a = !1) {
|
|
|
383958
384155
|
getSelectionModel: () => e
|
|
383959
384156
|
};
|
|
383960
384157
|
}
|
|
383961
|
-
function
|
|
384158
|
+
function Br() {
|
|
383962
384159
|
return [
|
|
383963
|
-
new t("lastName", "Last Name",
|
|
383964
|
-
new t("preName", "Pre Name",
|
|
384160
|
+
new t("lastName", "Last Name", le),
|
|
384161
|
+
new t("preName", "Pre Name", g),
|
|
383965
384162
|
t.create({
|
|
383966
384163
|
property: "age",
|
|
383967
384164
|
headerLabel: "Age",
|
|
383968
|
-
width:
|
|
383969
|
-
bodyRenderer: new
|
|
384165
|
+
width: ge,
|
|
384166
|
+
bodyRenderer: new ke(),
|
|
383970
384167
|
editable: y,
|
|
383971
384168
|
// editInputPipe: (value: any) => value ? Number(value) : ""
|
|
383972
|
-
editInputPipe:
|
|
384169
|
+
editInputPipe: G
|
|
383973
384170
|
}),
|
|
383974
384171
|
new t(
|
|
383975
384172
|
"birth",
|
|
383976
384173
|
"Birthday",
|
|
383977
|
-
|
|
384174
|
+
u,
|
|
383978
384175
|
void 0,
|
|
383979
|
-
|
|
384176
|
+
De.bodyRenderer(new R())
|
|
383980
384177
|
),
|
|
383981
384178
|
t.create({
|
|
383982
384179
|
property: "gender",
|
|
383983
384180
|
headerLabel: " ",
|
|
383984
|
-
width:
|
|
383985
|
-
bodyRenderer: new
|
|
384181
|
+
width: Ue,
|
|
384182
|
+
bodyRenderer: new ne(),
|
|
383986
384183
|
editable: y,
|
|
383987
|
-
getEditRenderer: () => new
|
|
383988
|
-
new
|
|
383989
|
-
new
|
|
384184
|
+
getEditRenderer: () => new xe([
|
|
384185
|
+
new Y("female", "♀"),
|
|
384186
|
+
new Y("male", "♂")
|
|
383990
384187
|
])
|
|
383991
384188
|
}),
|
|
383992
|
-
new t("address.street", "Strasse",
|
|
383993
|
-
new t("address.number", "Nr",
|
|
383994
|
-
new t("address.zip", "Zip",
|
|
383995
|
-
new t("address.city", "City",
|
|
383996
|
-
new t("address.country", "Country",
|
|
383997
|
-
new t("id", "ID",
|
|
384189
|
+
new t("address.street", "Strasse", de),
|
|
384190
|
+
new t("address.number", "Nr", qe),
|
|
384191
|
+
new t("address.zip", "Zip", L),
|
|
384192
|
+
new t("address.city", "City", g),
|
|
384193
|
+
new t("address.country", "Country", g),
|
|
384194
|
+
new t("id", "ID", L)
|
|
383998
384195
|
];
|
|
383999
384196
|
}
|
|
384000
|
-
function
|
|
384001
|
-
const e =
|
|
384197
|
+
function ta(a = !1) {
|
|
384198
|
+
const e = qr(a), r = Br();
|
|
384002
384199
|
for (const s of r)
|
|
384003
384200
|
s.sortable = y, s.editable = y;
|
|
384004
|
-
r[0].editable =
|
|
384005
|
-
const n =
|
|
384201
|
+
r[0].editable = F;
|
|
384202
|
+
const n = me.buildTreeRows(Ur, "friends"), m = b.createTableModel({
|
|
384006
384203
|
rows: n,
|
|
384007
384204
|
columnDefs: r,
|
|
384008
384205
|
tableOptions: e,
|
|
384009
384206
|
fixedLeftColumnCount: 1,
|
|
384010
384207
|
fixedRightColumnCount: 1
|
|
384011
384208
|
});
|
|
384012
|
-
return new
|
|
384209
|
+
return new f(
|
|
384013
384210
|
m,
|
|
384014
384211
|
e
|
|
384015
384212
|
);
|
|
384016
384213
|
}
|
|
384214
|
+
const B = [
|
|
384215
|
+
["Desk lamp", "Office"],
|
|
384216
|
+
["Standing desk", "Office"],
|
|
384217
|
+
["Office chair", "Office"],
|
|
384218
|
+
["Monitor arm", "Office"],
|
|
384219
|
+
["Notebook A5", "Paper"],
|
|
384220
|
+
["Sticky notes", "Paper"],
|
|
384221
|
+
["Printer paper", "Paper"],
|
|
384222
|
+
["Envelopes", "Paper"],
|
|
384223
|
+
["USB-C cable", "Tech"],
|
|
384224
|
+
["Keyboard", "Tech"],
|
|
384225
|
+
["Mouse", "Tech"],
|
|
384226
|
+
["Webcam", "Tech"],
|
|
384227
|
+
["Headset", "Tech"],
|
|
384228
|
+
["Coffee beans", "Kitchen"],
|
|
384229
|
+
["Tea selection", "Kitchen"],
|
|
384230
|
+
["Water bottle", "Kitchen"]
|
|
384231
|
+
];
|
|
384232
|
+
function Mr(a = 16) {
|
|
384233
|
+
return Array.from({ length: a }, (e, r) => {
|
|
384234
|
+
const [n, m] = B[r % B.length];
|
|
384235
|
+
return {
|
|
384236
|
+
id: r + 1,
|
|
384237
|
+
sku: `SKU-${String(r + 1).padStart(3, "0")}`,
|
|
384238
|
+
product: r < B.length ? n : `${n} ${Math.floor(r / B.length) + 1}`,
|
|
384239
|
+
category: m,
|
|
384240
|
+
validFrom: "2026-10-01",
|
|
384241
|
+
price: Math.round((5 + (r * r * 37 + r * 11) % 150 + r * 13 % 10 / 10) * 100) / 100,
|
|
384242
|
+
discount: r * 5 % 20,
|
|
384243
|
+
stock: 10 + r * 17 % 90
|
|
384244
|
+
};
|
|
384245
|
+
});
|
|
384246
|
+
}
|
|
384247
|
+
function na(a = Mr(), e = !0, r = !0) {
|
|
384248
|
+
const n = new C("range", "multi"), m = new be("cell"), s = {
|
|
384249
|
+
...new N(),
|
|
384250
|
+
hoverColumnVisible: !1,
|
|
384251
|
+
getSelectionModel: () => n,
|
|
384252
|
+
getFocusModel: () => m,
|
|
384253
|
+
fillHandle: r,
|
|
384254
|
+
batchEdit: e,
|
|
384255
|
+
ariaLabel: "Price list"
|
|
384256
|
+
}, i = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"] }, p = b.createTableModel({
|
|
384257
|
+
rows: a,
|
|
384258
|
+
fixedLeftColumnCount: 1,
|
|
384259
|
+
columnDefs: [
|
|
384260
|
+
t.create({ property: "sku", headerLabel: "SKU", width: u }),
|
|
384261
|
+
t.create({ property: "product", headerLabel: "Product", width: k, editable: y }),
|
|
384262
|
+
t.create({ property: "category", headerLabel: "Category", width: u, editable: y }),
|
|
384263
|
+
t.create({
|
|
384264
|
+
property: "validFrom",
|
|
384265
|
+
headerLabel: "Valid from",
|
|
384266
|
+
width: g,
|
|
384267
|
+
editable: y,
|
|
384268
|
+
validate: (d) => /^\d{4}-\d{2}-\d{2}$/.test(String(d)) ? void 0 : "Date as YYYY-MM-DD"
|
|
384269
|
+
}),
|
|
384270
|
+
t.create({
|
|
384271
|
+
property: "price",
|
|
384272
|
+
headerLabel: "Price",
|
|
384273
|
+
width: u,
|
|
384274
|
+
editable: y,
|
|
384275
|
+
editInputPipe: G,
|
|
384276
|
+
...i,
|
|
384277
|
+
validate: (d) => typeof d == "number" && d >= 0 ? void 0 : "A price is a number ≥ 0"
|
|
384278
|
+
}),
|
|
384279
|
+
t.create({
|
|
384280
|
+
property: "discount",
|
|
384281
|
+
headerLabel: "Discount %",
|
|
384282
|
+
width: u,
|
|
384283
|
+
editable: y,
|
|
384284
|
+
editInputPipe: G,
|
|
384285
|
+
...i,
|
|
384286
|
+
validate: (d) => typeof d == "number" && d >= 0 && d <= 50 ? void 0 : "Discount 0 … 50 %"
|
|
384287
|
+
}),
|
|
384288
|
+
t.create({
|
|
384289
|
+
property: "net",
|
|
384290
|
+
headerLabel: "Net",
|
|
384291
|
+
width: u,
|
|
384292
|
+
...i,
|
|
384293
|
+
valueGetter: (d) => Math.round(d.price * (100 - d.discount)) / 100
|
|
384294
|
+
}),
|
|
384295
|
+
t.create({
|
|
384296
|
+
property: "stock",
|
|
384297
|
+
headerLabel: "Stock",
|
|
384298
|
+
width: u,
|
|
384299
|
+
editable: y,
|
|
384300
|
+
editInputPipe: G,
|
|
384301
|
+
...i,
|
|
384302
|
+
validate: (d) => Number.isInteger(d) && d >= 0 ? void 0 : "Stock is a whole number ≥ 0"
|
|
384303
|
+
})
|
|
384304
|
+
],
|
|
384305
|
+
tableOptions: s
|
|
384306
|
+
});
|
|
384307
|
+
return new f(p, s);
|
|
384308
|
+
}
|
|
384017
384309
|
export {
|
|
384018
|
-
|
|
384019
|
-
|
|
384020
|
-
|
|
384021
|
-
|
|
384022
|
-
|
|
384023
|
-
|
|
384024
|
-
|
|
384025
|
-
|
|
384026
|
-
|
|
384027
|
-
|
|
384028
|
-
|
|
384029
|
-
|
|
384030
|
-
|
|
384031
|
-
|
|
384032
|
-
|
|
384033
|
-
|
|
384034
|
-
|
|
384035
|
-
|
|
384036
|
-
|
|
384037
|
-
|
|
384038
|
-
|
|
384039
|
-
|
|
384040
|
-
|
|
384041
|
-
|
|
384042
|
-
|
|
384043
|
-
|
|
384044
|
-
|
|
384045
|
-
|
|
384046
|
-
|
|
384047
|
-
|
|
384048
|
-
|
|
384049
|
-
|
|
384050
|
-
|
|
384051
|
-
|
|
384052
|
-
|
|
384053
|
-
|
|
384054
|
-
|
|
384055
|
-
|
|
384056
|
-
|
|
384310
|
+
Kr as COL_IDX_UPDATED_AT,
|
|
384311
|
+
Me as ChangePercentageRenderer,
|
|
384312
|
+
Oe as CirculatingSupplyRenderer,
|
|
384313
|
+
He as CoinIconRenderer,
|
|
384314
|
+
q as INVOICE_FORMULAS,
|
|
384315
|
+
gr as LargeBodyModel,
|
|
384316
|
+
Ie as NameAndSymbolRenderer,
|
|
384317
|
+
Ae as UsdRenderer,
|
|
384318
|
+
Re as Volumn24hRenderer,
|
|
384319
|
+
_r as applyBodyRenderer,
|
|
384320
|
+
Qr as createAggregationModelAndOptions,
|
|
384321
|
+
ar as createColumnDefs,
|
|
384322
|
+
Ir as createCryptoModelAndOptions,
|
|
384323
|
+
ra as createFormulaModelAndOptions,
|
|
384324
|
+
Fr as createHeadergroupModel,
|
|
384325
|
+
Hr as createHeatMapModel,
|
|
384326
|
+
Vr as createHeatMapSeattleModel,
|
|
384327
|
+
Dr as createInvoiceColumnDefs,
|
|
384328
|
+
jr as createLargeModelAndOptions,
|
|
384329
|
+
Xr as createManyTypesModelAndOptions,
|
|
384330
|
+
Yr as createOrderModelAndOptions,
|
|
384331
|
+
ea as createPivotModelAndOptions,
|
|
384332
|
+
na as createPriceListModelAndOptions,
|
|
384333
|
+
aa as createRowDragModelAndOptions,
|
|
384334
|
+
Jr as createRowGroupModelAndOptions,
|
|
384335
|
+
Te as createSalesOrderColumnDefs,
|
|
384336
|
+
Er as createSimplePersonModel,
|
|
384337
|
+
tr as createTableOptions,
|
|
384338
|
+
rr as createTableRows,
|
|
384339
|
+
$r as createTeamHeadergroupModel,
|
|
384340
|
+
Wr as createTimeTableModel,
|
|
384341
|
+
Br as createTreePeopleColumnDefs,
|
|
384342
|
+
ta as createTreePeopleModelAndOptions,
|
|
384343
|
+
qr as createTreePeopleTableOptions,
|
|
384344
|
+
Ve as cryptoData,
|
|
384345
|
+
nr as data,
|
|
384346
|
+
kr as generateInvoiceLines,
|
|
384347
|
+
Gr as generatePivotOrders,
|
|
384348
|
+
Mr as generatePriceItems,
|
|
384349
|
+
O as generateSalesOrders,
|
|
384350
|
+
Rr as generateSimpleModel,
|
|
384351
|
+
xr as generateTasks,
|
|
384352
|
+
Or as generateTreeCheckboxModel,
|
|
384353
|
+
zr as pivotQuarter,
|
|
384354
|
+
Zr as pivotYear,
|
|
384355
|
+
mr as tableOptions,
|
|
384356
|
+
er as teamHeaderGroups
|
|
384057
384357
|
};
|