@guiexpert/demo-table-models 1.1.104 → 1.1.106
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 +6 -6
- package/index.d.ts +2 -0
- package/index.js +617 -473
- package/lib/createCoverGridModel.d.ts +59 -0
- package/model/book.if.d.ts +11 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { ColumnDef as t, px60 as
|
|
2
|
-
class
|
|
3
|
-
render(e, r, n, m, s, i,
|
|
1
|
+
import { ColumnDef as t, px60 as G, px120 as b, px100 as c, px160 as $, px200 as z, px140 as P, TableOptions as T, TableModelAndOptions as o, TableFactory as f, Size as l, AreaObjectMap as D, DateToIntlDDMMYYYYCellRenderer as V, MaleFemaleToIconCellRenderer as Pe, TreeFactory as Ge, DefaultRowHeights as Ie, AreaModelArrayOfArrays as R, AreaModel as re, ColorRgb as j, ThreeColorGradientArg as Re, GeCssColorUtil as Oe, CellgroupFactory as O, AreaModelCellGroups as Ze, AreaModelObjectArrayWithColumndefs as ae, px300 as ze, px150 as we, px250 as He, TrueFalseCellRenderer as ve, DateToTecCellRenderer as $e, SelectionModel as h, TrueFn as p, CheckboxBooleanPropertyCellRenderer as ke, px90 as w, ProgressBarCellRenderer as xe, StarRatingCellRenderer as De, NumberCellProgressBarCellRenderer as Ve, RowNumberColumnDef as Fe, FalseFn as J, px220 as Ue, PositiveAndNegativeNumberRenderer as Ee, px80 as qe, RowGroupFactory as _e, px110 as Q, PivotFactory as Ke, px130 as We, editInputPipeForNumber as Z, FocusModel as F, NumberCellRenderer as je, Renderer as Ye, SelectCellRenderer as Xe, px50 as Je, ValueLabel as me, px70 as Qe, CellRange as k, AutoRestoreOptions as er, SpreadsheetFactory as rr, CoverGridFactory as se } from "@guiexpert/table";
|
|
2
|
+
class ar {
|
|
3
|
+
render(e, r, n, m, s, i, y) {
|
|
4
4
|
if (i) {
|
|
5
5
|
const d = Number(i);
|
|
6
|
-
d < 0 ? (e.innerHTML = "▾ " + d.toFixed(2) + "%",
|
|
6
|
+
d < 0 ? (e.innerHTML = "▾ " + d.toFixed(2) + "%", y.addClass(e, "ge-positive-text-color")) : (e.innerHTML = "▴ " + d.toFixed(2) + "%", y.addClass(e, "ge-negative-text-color"));
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
class
|
|
10
|
+
class tr {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.formatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
|
|
13
13
|
}
|
|
14
|
-
render(e, r, n, m, s, i,
|
|
14
|
+
render(e, r, n, m, s, i, y) {
|
|
15
15
|
if (i) {
|
|
16
16
|
const d = Number(i);
|
|
17
17
|
e.innerText = this.formatter.format(d);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
class
|
|
22
|
-
render(e, r, n, m, s, i,
|
|
21
|
+
class nr {
|
|
22
|
+
render(e, r, n, m, s, i, y) {
|
|
23
23
|
const d = s.getRowByIndex(r);
|
|
24
24
|
if (d) {
|
|
25
25
|
const u = d.name ?? d.symbol;
|
|
@@ -32,50 +32,50 @@ class _e {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
class
|
|
35
|
+
class mr {
|
|
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(e, r, n, m, s, i,
|
|
39
|
+
render(e, r, n, m, s, i, y) {
|
|
40
40
|
const d = s.getRowByIndex(r);
|
|
41
41
|
if (d) {
|
|
42
|
-
const u = this.formatterUsd.format(d.volUsd),
|
|
42
|
+
const u = this.formatterUsd.format(d.volUsd), g = this.formatter.format(d.volBtc);
|
|
43
43
|
e.innerHTML = `
|
|
44
44
|
<div style="line-height: 1.2;padding: 10px 0 0 10px;">
|
|
45
45
|
${u}<br>
|
|
46
|
-
${
|
|
46
|
+
${g} BTC
|
|
47
47
|
</div>
|
|
48
48
|
`;
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
class
|
|
52
|
+
class sr {
|
|
53
53
|
constructor(e = 120) {
|
|
54
54
|
this.maxWidth = e, this.formatter = new Intl.NumberFormat("en-US");
|
|
55
55
|
}
|
|
56
|
-
render(e, r, n, m, s, i,
|
|
56
|
+
render(e, r, n, m, s, i, y) {
|
|
57
57
|
const d = s.getRowByIndex(r);
|
|
58
58
|
if (d) {
|
|
59
|
-
const u = this.formatter.format(d.circulatingSupply),
|
|
60
|
-
if (
|
|
61
|
-
const
|
|
62
|
-
|
|
59
|
+
const u = this.formatter.format(d.circulatingSupply), g = d.maxSupply, N = [];
|
|
60
|
+
if (N.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), N.push(u), N.push("<br>"), g) {
|
|
61
|
+
const S = this.maxWidth * d.circulatingSupply / g;
|
|
62
|
+
N.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: ${S}px;height: 5px;background-color: #ccc;"></div>
|
|
65
65
|
</div>
|
|
66
66
|
`);
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
N.push("</div>"), e.innerHTML = N.join("");
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
73
|
-
render(e, r, n, m, s, i,
|
|
72
|
+
class ir {
|
|
73
|
+
render(e, r, n, m, s, i, y) {
|
|
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 dr = [
|
|
79
79
|
{
|
|
80
80
|
id: 1,
|
|
81
81
|
name: "Bitcoin",
|
|
@@ -2810,19 +2810,19 @@ const je = [
|
|
|
2810
2810
|
change90d: 12.43943602
|
|
2811
2811
|
}
|
|
2812
2812
|
];
|
|
2813
|
-
function
|
|
2814
|
-
const a =
|
|
2813
|
+
function ua() {
|
|
2814
|
+
const a = dr, e = new ar(), r = new tr(), n = new nr(), m = new mr(), s = new sr(120), i = new ir(), y = [
|
|
2815
2815
|
t.create({
|
|
2816
2816
|
property: "symbol",
|
|
2817
2817
|
headerLabel: "",
|
|
2818
|
-
width:
|
|
2818
|
+
width: G,
|
|
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: b,
|
|
2826
2826
|
bodyClasses: ["ge-table-text-align-left"],
|
|
2827
2827
|
headerClasses: ["ge-table-text-align-left"],
|
|
2828
2828
|
bodyRenderer: n
|
|
@@ -2840,14 +2840,14 @@ function Xr() {
|
|
|
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: z,
|
|
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 Xr() {
|
|
|
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"]
|
|
2862
2862
|
})
|
|
2863
2863
|
];
|
|
2864
|
-
|
|
2864
|
+
y.forEach((u) => u.sortable = () => !0);
|
|
2865
2865
|
const d = {
|
|
2866
|
-
...new
|
|
2866
|
+
...new T(),
|
|
2867
2867
|
hoverColumnVisible: !1,
|
|
2868
2868
|
verticalBorderVisible: !1,
|
|
2869
2869
|
defaultRowHeights: {
|
|
@@ -2873,15 +2873,15 @@ function Xr() {
|
|
|
2873
2873
|
}
|
|
2874
2874
|
};
|
|
2875
2875
|
return new o(
|
|
2876
|
-
|
|
2876
|
+
f.createTableModel({
|
|
2877
2877
|
rows: a,
|
|
2878
|
-
columnDefs:
|
|
2878
|
+
columnDefs: y,
|
|
2879
2879
|
tableOptions: d
|
|
2880
2880
|
}),
|
|
2881
2881
|
d
|
|
2882
2882
|
);
|
|
2883
2883
|
}
|
|
2884
|
-
function
|
|
2884
|
+
function ca(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 Jr(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 f.createTableModel({
|
|
2893
2893
|
headerData: n,
|
|
2894
2894
|
bodyData: r,
|
|
2895
2895
|
footerData: m,
|
|
@@ -2898,7 +2898,7 @@ function Jr(a = 1e3, e = 1e3) {
|
|
|
2898
2898
|
fixedRightColumnCount: 2
|
|
2899
2899
|
});
|
|
2900
2900
|
}
|
|
2901
|
-
const
|
|
2901
|
+
const yr = [
|
|
2902
2902
|
{
|
|
2903
2903
|
id: 0,
|
|
2904
2904
|
preName: "Prename0",
|
|
@@ -164772,9 +164772,9 @@ const Xe = [
|
|
|
164772
164772
|
friends: []
|
|
164773
164773
|
}
|
|
164774
164774
|
];
|
|
164775
|
-
function
|
|
164775
|
+
function la() {
|
|
164776
164776
|
const a = {
|
|
164777
|
-
...new
|
|
164777
|
+
...new T(),
|
|
164778
164778
|
hoverColumnVisible: !1,
|
|
164779
164779
|
defaultRowHeights: {
|
|
164780
164780
|
header: 50,
|
|
@@ -164787,15 +164787,15 @@ function Qr() {
|
|
|
164787
164787
|
// new CheckboxColumn(), // <--- not needed, because we have 'showCheckboxWihoutExtraColumn:true'
|
|
164788
164788
|
new t("lastName", "Last Name", new l(250, "px")),
|
|
164789
164789
|
new t("preName", "Pre Name", new l(120, "px")),
|
|
164790
|
-
new t("birth", "Birthday", new l(100, "px"), new D(), new D(void 0, new
|
|
164791
|
-
new t("gender", " ", new l(50, "px"), new D(), new D(void 0, new
|
|
164790
|
+
new t("birth", "Birthday", new l(100, "px"), new D(), new D(void 0, new V(), void 0), void 0, void 0),
|
|
164791
|
+
new t("gender", " ", new l(50, "px"), new D(), new D(void 0, new Pe(), void 0), void 0, void 0),
|
|
164792
164792
|
new t("address.street", "Strasse", new l(150, "px")),
|
|
164793
164793
|
new t("address.number", "Nr", new l(70, "px")),
|
|
164794
164794
|
new t("address.zip", "Zip", new l(60, "px")),
|
|
164795
164795
|
new t("address.city", "City", new l(120, "px")),
|
|
164796
164796
|
new t("id", "ID", new l(60, "px"))
|
|
164797
|
-
], r =
|
|
164798
|
-
return
|
|
164797
|
+
], r = Ge.buildTreeRows(yr, "friends");
|
|
164798
|
+
return f.createTableModel({
|
|
164799
164799
|
rows: r,
|
|
164800
164800
|
columnDefs: e,
|
|
164801
164801
|
tableOptions: a,
|
|
@@ -164803,7 +164803,7 @@ function Qr() {
|
|
|
164803
164803
|
fixedRightColumnCount: 0
|
|
164804
164804
|
});
|
|
164805
164805
|
}
|
|
164806
|
-
const
|
|
164806
|
+
const ie = new Ie(34, 50, 0), de = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), pr = `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 J = new Ze(34, 50, 0), Q = "_ 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
|
+
), ur = 27.9, cr = 77.4;
|
|
164818
|
+
class ye {
|
|
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 lr(a, e, r, n, m) {
|
|
164824
164824
|
return (a - e) / (r - e) * (m - n) + n;
|
|
164825
164825
|
}
|
|
164826
|
-
function
|
|
164827
|
-
var n = new
|
|
164828
|
-
return i = i * s + n.r,
|
|
164826
|
+
function gr(a, e, r) {
|
|
164827
|
+
var n = new ye(255, 0, 0), m = new ye(0, 0, 255), s = lr(r, a, e, 0, 1), i = m.r - n.r, y = m.g - n.g, d = m.b - n.b;
|
|
164828
|
+
return i = i * s + n.r, y = y * s + n.g, d = d * s + n.b, `rgb(${Math.round(i)}, ${Math.round(y)}, ${Math.round(d)})`;
|
|
164829
164829
|
}
|
|
164830
|
-
function
|
|
164831
|
-
const a = new
|
|
164830
|
+
function ga() {
|
|
164831
|
+
const a = new R("body", pr, ie.body), e = new Array(de.length).fill(50), r = new R("header", [de], ie.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: gr(ur, cr, i),
|
|
164838
164838
|
color: "#fff"
|
|
164839
164839
|
};
|
|
164840
164840
|
}
|
|
164841
164841
|
return s.paddingTop = "10px", s;
|
|
164842
|
-
},
|
|
164842
|
+
}, f.createTableModel({
|
|
164843
164843
|
headerAreaModel: r,
|
|
164844
164844
|
bodyAreaModel: a,
|
|
164845
164845
|
columnSizes: e
|
|
164846
164846
|
});
|
|
164847
164847
|
}
|
|
164848
|
-
function
|
|
164848
|
+
function br() {
|
|
164849
164849
|
return [
|
|
164850
164850
|
{
|
|
164851
164851
|
date: "2010-01-01T01:00:00",
|
|
@@ -217403,12 +217403,12 @@ function tr() {
|
|
|
217403
217403
|
}
|
|
217404
217404
|
];
|
|
217405
217405
|
}
|
|
217406
|
-
const
|
|
217407
|
-
|
|
217406
|
+
const Me = 30, Nr = 3, Be = br(), L = {};
|
|
217407
|
+
Be.forEach((a) => {
|
|
217408
217408
|
const [e, r] = a.date.split("T");
|
|
217409
|
-
|
|
217409
|
+
L[e] || (L[e] = {}), L[e][r.substring(0, 5)] = a;
|
|
217410
217410
|
});
|
|
217411
|
-
const
|
|
217411
|
+
const ee = Object.keys(L), U = [
|
|
217412
217412
|
"06:00",
|
|
217413
217413
|
"07:00",
|
|
217414
217414
|
"08:00",
|
|
@@ -217434,59 +217434,59 @@ const W = Object.keys(C), x = [
|
|
|
217434
217434
|
"04:00",
|
|
217435
217435
|
"05:00"
|
|
217436
217436
|
];
|
|
217437
|
-
function
|
|
217437
|
+
function fr() {
|
|
217438
217438
|
let a = 10, e = 0;
|
|
217439
|
-
return
|
|
217439
|
+
return Be.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 [pe, ue] = fr();
|
|
217444
|
+
function ba() {
|
|
217445
|
+
const a = new Tr(), e = new or(), r = [60, ...new Array(ee.length).fill(Nr)];
|
|
217446
|
+
return f.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 Tr extends re {
|
|
217454
217454
|
getRowCount() {
|
|
217455
|
-
return
|
|
217455
|
+
return U.length;
|
|
217456
217456
|
}
|
|
217457
217457
|
getRowHeight(e) {
|
|
217458
|
-
return
|
|
217458
|
+
return Me;
|
|
217459
217459
|
}
|
|
217460
217460
|
getValueAt(e, r) {
|
|
217461
|
-
return r === 0 ?
|
|
217461
|
+
return r === 0 ? U[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 = ee[r], m = U[e];
|
|
217468
|
+
return L[n] && L[n][m] ? `${n} ${m} → ${L[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 = ee[r], m = U[e];
|
|
217475
|
+
if (!L[n] || !L[n][m]) return;
|
|
217476
|
+
const s = L[n][m].temperature, i = new j(67, 1, 84), y = new j(31, 144, 141), d = new j(250, 230, 37), u = (ue + pe) / 2, g = new Re(pe, i, u, y, ue, d);
|
|
217477
217477
|
return {
|
|
217478
|
-
background:
|
|
217478
|
+
background: Oe.getThreeColorGradientRGB(s, g),
|
|
217479
217479
|
color: "transparent"
|
|
217480
217480
|
// we only want to show the bg color
|
|
217481
217481
|
};
|
|
217482
217482
|
}
|
|
217483
217483
|
}
|
|
217484
|
-
class
|
|
217484
|
+
class or extends re {
|
|
217485
217485
|
getRowCount() {
|
|
217486
217486
|
return 1;
|
|
217487
217487
|
}
|
|
217488
217488
|
getRowHeight(e) {
|
|
217489
|
-
return
|
|
217489
|
+
return Me;
|
|
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 ir extends Y {
|
|
|
217503
217503
|
};
|
|
217504
217504
|
}
|
|
217505
217505
|
}
|
|
217506
|
-
const
|
|
217506
|
+
const Y = [
|
|
217507
217507
|
{
|
|
217508
217508
|
data: "Gold",
|
|
217509
217509
|
toggle: !0,
|
|
@@ -217590,9 +217590,9 @@ const F = [
|
|
|
217590
217590
|
]
|
|
217591
217591
|
}
|
|
217592
217592
|
];
|
|
217593
|
-
function
|
|
217594
|
-
const e =
|
|
217595
|
-
console.info("headerGroups",
|
|
217593
|
+
function Na() {
|
|
217594
|
+
const e = O.buildGroupExts(Y), r = O.buildColumnDefs(e), n = new Ze("header", Y, r, 34);
|
|
217595
|
+
console.info("headerGroups", Y), console.info("columnDefs", r.map((i) => i.property));
|
|
217596
217596
|
const m = [
|
|
217597
217597
|
{
|
|
217598
217598
|
GOLD: 146,
|
|
@@ -217610,14 +217610,14 @@ function aa() {
|
|
|
217610
217610
|
HOH_C: 53,
|
|
217611
217611
|
HOH_D: 54
|
|
217612
217612
|
}
|
|
217613
|
-
], s = new
|
|
217614
|
-
return
|
|
217613
|
+
], s = new ae("body", m, r, 34);
|
|
217614
|
+
return f.createTableModel({
|
|
217615
217615
|
headerAreaModel: n,
|
|
217616
217616
|
bodyAreaModel: s,
|
|
217617
217617
|
columnDefs: r
|
|
217618
217618
|
});
|
|
217619
217619
|
}
|
|
217620
|
-
const
|
|
217620
|
+
const hr = [
|
|
217621
217621
|
{
|
|
217622
217622
|
data: "Team A",
|
|
217623
217623
|
toggle: !0,
|
|
@@ -217638,9 +217638,9 @@ const dr = [
|
|
|
217638
217638
|
]
|
|
217639
217639
|
}
|
|
217640
217640
|
];
|
|
217641
|
-
function
|
|
217642
|
-
const r =
|
|
217643
|
-
console.info("headerGroups", a), console.info("columnDefs", n.map((
|
|
217641
|
+
function fa(a = hr) {
|
|
217642
|
+
const r = O.buildGroupExts(a), n = O.buildColumnDefs(r), m = new Ze("header", a, n, 34);
|
|
217643
|
+
console.info("headerGroups", a), console.info("columnDefs", n.map((y) => y.property)), console.info("columnDefs", n);
|
|
217644
217644
|
const s = [
|
|
217645
217645
|
{
|
|
217646
217646
|
team_a: 0,
|
|
@@ -217648,14 +217648,14 @@ function ta(a = dr) {
|
|
|
217648
217648
|
peter: 5,
|
|
217649
217649
|
paul: 4
|
|
217650
217650
|
}
|
|
217651
|
-
], i = new
|
|
217652
|
-
return
|
|
217651
|
+
], i = new ae("body", s, n, 34);
|
|
217652
|
+
return f.createTableModel({
|
|
217653
217653
|
headerAreaModel: m,
|
|
217654
217654
|
bodyAreaModel: i,
|
|
217655
217655
|
columnDefs: n
|
|
217656
217656
|
});
|
|
217657
217657
|
}
|
|
217658
|
-
function
|
|
217658
|
+
function Sr() {
|
|
217659
217659
|
return [
|
|
217660
217660
|
{
|
|
217661
217661
|
id: 1,
|
|
@@ -217835,9 +217835,9 @@ function yr() {
|
|
|
217835
217835
|
}
|
|
217836
217836
|
];
|
|
217837
217837
|
}
|
|
217838
|
-
function
|
|
217838
|
+
function Cr() {
|
|
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 pr() {
|
|
|
217848
217848
|
t.create({
|
|
217849
217849
|
property: "email",
|
|
217850
217850
|
headerLabel: "Email",
|
|
217851
|
-
width:
|
|
217851
|
+
width: ze,
|
|
217852
217852
|
bodyClasses: ["ge-table-text-align-left"]
|
|
217853
217853
|
}),
|
|
217854
|
-
new t("ipAddress", "IP",
|
|
217854
|
+
new t("ipAddress", "IP", we),
|
|
217855
217855
|
t.create({
|
|
217856
217856
|
property: "id",
|
|
217857
217857
|
headerLabel: "ID",
|
|
217858
|
-
width:
|
|
217858
|
+
width: He,
|
|
217859
217859
|
// bodyRenderer: actionRenderer,
|
|
217860
217860
|
bodyClasses: ["ge-table-text-align-left"]
|
|
217861
217861
|
})
|
|
217862
217862
|
];
|
|
217863
217863
|
}
|
|
217864
|
-
function
|
|
217864
|
+
function Lr() {
|
|
217865
217865
|
return {
|
|
217866
|
-
...new
|
|
217866
|
+
...new T(),
|
|
217867
217867
|
hoverColumnVisible: !1,
|
|
217868
217868
|
defaultRowHeights: {
|
|
217869
217869
|
header: 40,
|
|
@@ -217872,19 +217872,19 @@ function ur() {
|
|
|
217872
217872
|
}
|
|
217873
217873
|
};
|
|
217874
217874
|
}
|
|
217875
|
-
function
|
|
217876
|
-
const a =
|
|
217877
|
-
return
|
|
217875
|
+
function Ta() {
|
|
217876
|
+
const a = Lr(), e = Sr(), r = Cr();
|
|
217877
|
+
return f.createTableModel({
|
|
217878
217878
|
rows: e,
|
|
217879
217879
|
columnDefs: r,
|
|
217880
217880
|
tableOptions: a,
|
|
217881
217881
|
fixedLeftColumnCount: 0
|
|
217882
217882
|
});
|
|
217883
217883
|
}
|
|
217884
|
-
function
|
|
217884
|
+
function oa(a, e) {
|
|
217885
217885
|
a.rendererMap = new D(void 0, e, void 0);
|
|
217886
217886
|
}
|
|
217887
|
-
const
|
|
217887
|
+
const Pr = [
|
|
217888
217888
|
{
|
|
217889
217889
|
id: 1,
|
|
217890
217890
|
city: "London",
|
|
@@ -218032,7 +218032,7 @@ const cr = [
|
|
|
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)),
|
|
218035
|
+
].map((a) => (a.updatedAt = /* @__PURE__ */ new Date(), a)), H = [
|
|
218036
218036
|
new t("city", "City", new l(90, "px")),
|
|
218037
218037
|
new t("location", "Location", new l(100, "px")),
|
|
218038
218038
|
new t("team.name", "Team", new l(100, "px")),
|
|
@@ -218040,7 +218040,7 @@ const cr = [
|
|
|
218040
218040
|
property: "team.active",
|
|
218041
218041
|
headerLabel: "Active",
|
|
218042
218042
|
width: new l(60, "px"),
|
|
218043
|
-
bodyRenderer: new
|
|
218043
|
+
bodyRenderer: new ve()
|
|
218044
218044
|
}),
|
|
218045
218045
|
new t("data.0", "00", new l(60, "px")),
|
|
218046
218046
|
new t("data.1", "15", new l(60, "px")),
|
|
@@ -218058,10 +218058,10 @@ const cr = [
|
|
|
218058
218058
|
property: "updatedAt",
|
|
218059
218059
|
headerLabel: "Updated at",
|
|
218060
218060
|
width: new l(175, "px"),
|
|
218061
|
-
bodyRenderer: new
|
|
218061
|
+
bodyRenderer: new $e()
|
|
218062
218062
|
})
|
|
218063
|
-
],
|
|
218064
|
-
...new
|
|
218063
|
+
], ha = H.length - 1, Gr = {
|
|
218064
|
+
...new T(),
|
|
218065
218065
|
hoverRowVisible: !1,
|
|
218066
218066
|
hoverColumnVisible: !1,
|
|
218067
218067
|
defaultRowHeights: {
|
|
@@ -218072,22 +218072,22 @@ const cr = [
|
|
|
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 Sa() {
|
|
218076
|
+
const a = Gr.defaultRowHeights;
|
|
218077
|
+
return f.createTableModel({
|
|
218078
|
+
headerAreaModel: new zr(a.header),
|
|
218079
|
+
bodyAreaModel: new Zr(a.body),
|
|
218080
|
+
footerAreaModel: new wr(a.footer),
|
|
218081
|
+
columnDefs: H,
|
|
218082
218082
|
fixedLeftColumnCount: 2,
|
|
218083
218083
|
fixedRightColumnCount: 1,
|
|
218084
218084
|
defaultRowHeights: a,
|
|
218085
|
-
columnCount:
|
|
218085
|
+
columnCount: H.length
|
|
218086
218086
|
});
|
|
218087
218087
|
}
|
|
218088
|
-
class
|
|
218088
|
+
class Zr extends ae {
|
|
218089
218089
|
constructor(e) {
|
|
218090
|
-
super("body",
|
|
218090
|
+
super("body", Pr, H, e);
|
|
218091
218091
|
}
|
|
218092
218092
|
getRowspanAt(e, r) {
|
|
218093
218093
|
if (r === 0 || r == 1) {
|
|
@@ -218104,7 +218104,7 @@ class gr extends j {
|
|
|
218104
218104
|
return m;
|
|
218105
218105
|
}
|
|
218106
218106
|
}
|
|
218107
|
-
class
|
|
218107
|
+
class zr extends R {
|
|
218108
218108
|
constructor(e) {
|
|
218109
218109
|
super(
|
|
218110
218110
|
"header",
|
|
@@ -218131,7 +218131,7 @@ class br extends B {
|
|
|
218131
218131
|
return ["ge-font-weight-bold"];
|
|
218132
218132
|
}
|
|
218133
218133
|
}
|
|
218134
|
-
class
|
|
218134
|
+
class wr extends R {
|
|
218135
218135
|
constructor(e) {
|
|
218136
218136
|
super(
|
|
218137
218137
|
"footer",
|
|
@@ -218146,7 +218146,7 @@ class Nr extends B {
|
|
|
218146
218146
|
return r === 2 ? ["ge-text-align-right", "ge-font-weight-bold"] : [];
|
|
218147
218147
|
}
|
|
218148
218148
|
}
|
|
218149
|
-
const
|
|
218149
|
+
const vr = [
|
|
218150
218150
|
{
|
|
218151
218151
|
id: "c8-34f1d5",
|
|
218152
218152
|
company: "Equicom",
|
|
@@ -220084,88 +220084,88 @@ const fr = [
|
|
|
220084
220084
|
rating: 5
|
|
220085
220085
|
}
|
|
220086
220086
|
];
|
|
220087
|
-
function
|
|
220088
|
-
return
|
|
220087
|
+
function kr() {
|
|
220088
|
+
return vr;
|
|
220089
220089
|
}
|
|
220090
|
-
function
|
|
220090
|
+
function xr() {
|
|
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: p
|
|
220099
220099
|
}),
|
|
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
|
-
sortable:
|
|
220106
|
+
sortable: p
|
|
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: p
|
|
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 V(),
|
|
220121
220121
|
bodyClasses: ["ge-table-text-align-center"],
|
|
220122
|
-
sortable:
|
|
220122
|
+
sortable: p
|
|
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: p
|
|
220130
220130
|
}),
|
|
220131
220131
|
t.create({
|
|
220132
220132
|
property: "inStock",
|
|
220133
220133
|
headerLabel: "In stock",
|
|
220134
|
-
width:
|
|
220135
|
-
bodyRenderer: new
|
|
220134
|
+
width: w,
|
|
220135
|
+
bodyRenderer: new ke("inStock", !0, !0),
|
|
220136
220136
|
bodyClasses: ["ge-table-text-align-center"],
|
|
220137
|
-
sortable:
|
|
220137
|
+
sortable: p
|
|
220138
220138
|
}),
|
|
220139
220139
|
t.create({
|
|
220140
220140
|
property: "quantity",
|
|
220141
220141
|
headerLabel: "Qty",
|
|
220142
|
-
width:
|
|
220142
|
+
width: G,
|
|
220143
220143
|
bodyClasses: ["ge-table-text-align-right"],
|
|
220144
220144
|
headerClasses: ["ge-table-text-align-right"],
|
|
220145
|
-
sortable:
|
|
220145
|
+
sortable: p
|
|
220146
220146
|
}),
|
|
220147
220147
|
t.create({
|
|
220148
220148
|
property: "progress",
|
|
220149
220149
|
headerLabel: "Progress",
|
|
220150
220150
|
width: c,
|
|
220151
|
-
bodyRenderer: new
|
|
220151
|
+
bodyRenderer: new xe("progress", 5, !0),
|
|
220152
220152
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220153
|
-
sortable:
|
|
220153
|
+
sortable: p
|
|
220154
220154
|
}),
|
|
220155
220155
|
t.create({
|
|
220156
220156
|
property: "rating",
|
|
220157
220157
|
headerLabel: "Rating",
|
|
220158
220158
|
width: c,
|
|
220159
|
-
bodyRenderer: new
|
|
220159
|
+
bodyRenderer: new De("rating"),
|
|
220160
220160
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220161
|
-
sortable:
|
|
220161
|
+
sortable: p
|
|
220162
220162
|
})
|
|
220163
220163
|
];
|
|
220164
220164
|
}
|
|
220165
|
-
function
|
|
220165
|
+
function Dr() {
|
|
220166
220166
|
const a = new h("row", "multi");
|
|
220167
220167
|
return {
|
|
220168
|
-
...new
|
|
220168
|
+
...new T(),
|
|
220169
220169
|
hoverColumnVisible: !1,
|
|
220170
220170
|
defaultRowHeights: {
|
|
220171
220171
|
header: 24,
|
|
@@ -220175,10 +220175,10 @@ function hr() {
|
|
|
220175
220175
|
getSelectionModel: () => a
|
|
220176
220176
|
};
|
|
220177
220177
|
}
|
|
220178
|
-
function
|
|
220179
|
-
const a =
|
|
220178
|
+
function Ca() {
|
|
220179
|
+
const a = Dr(), e = kr(), r = xr();
|
|
220180
220180
|
return new o(
|
|
220181
|
-
|
|
220181
|
+
f.createTableModel({
|
|
220182
220182
|
rows: e,
|
|
220183
220183
|
columnDefs: r,
|
|
220184
220184
|
tableOptions: a,
|
|
@@ -220187,34 +220187,34 @@ function da() {
|
|
|
220187
220187
|
a
|
|
220188
220188
|
);
|
|
220189
220189
|
}
|
|
220190
|
-
function
|
|
220190
|
+
function ce() {
|
|
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: J
|
|
220198
220198
|
}),
|
|
220199
220199
|
t.create({
|
|
220200
220200
|
headerLabel: "Value",
|
|
220201
|
-
width:
|
|
220201
|
+
width: z,
|
|
220202
220202
|
bodyClasses: ["ge-table-text-align-left"],
|
|
220203
220203
|
headerClasses: ["ge-table-text-align-left"],
|
|
220204
|
-
sortable:
|
|
220204
|
+
sortable: J
|
|
220205
220205
|
}),
|
|
220206
220206
|
t.create({
|
|
220207
220207
|
headerLabel: " ",
|
|
220208
|
-
width:
|
|
220208
|
+
width: z,
|
|
220209
220209
|
bodyClasses: ["ge-table-text-align-right"],
|
|
220210
220210
|
headerClasses: ["ge-table-text-align-right"]
|
|
220211
220211
|
})
|
|
220212
220212
|
];
|
|
220213
220213
|
}
|
|
220214
|
-
function
|
|
220214
|
+
function Ur() {
|
|
220215
220215
|
const a = new h();
|
|
220216
220216
|
return {
|
|
220217
|
-
...new
|
|
220217
|
+
...new T(),
|
|
220218
220218
|
hoverColumnVisible: !1,
|
|
220219
220219
|
defaultRowHeights: {
|
|
220220
220220
|
header: 34,
|
|
@@ -220224,22 +220224,22 @@ function Sr() {
|
|
|
220224
220224
|
getSelectionModel: () => a
|
|
220225
220225
|
};
|
|
220226
220226
|
}
|
|
220227
|
-
function
|
|
220228
|
-
const r =
|
|
220229
|
-
return new o(
|
|
220227
|
+
function La(a = 1e6, e = !1) {
|
|
220228
|
+
const r = Ur(), n = e ? [new Fe({ format: (i) => i.toLocaleString("en-US") }), ...ce()] : ce(), m = e ? 1 : 0, s = new qr(a, m);
|
|
220229
|
+
return new o(f.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 qr extends re {
|
|
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 Ve(e, !1);
|
|
220243
220243
|
}
|
|
220244
220244
|
getRowCount() {
|
|
220245
220245
|
return this.rowcount;
|
|
@@ -220261,7 +220261,7 @@ class Cr extends Y {
|
|
|
220261
220261
|
return e * this.getRowHeight(0);
|
|
220262
220262
|
}
|
|
220263
220263
|
}
|
|
220264
|
-
const
|
|
220264
|
+
const Mr = [
|
|
220265
220265
|
{
|
|
220266
220266
|
id: "f0-bfbecb",
|
|
220267
220267
|
company: "Medmex",
|
|
@@ -221733,10 +221733,10 @@ const Lr = [
|
|
|
221733
221733
|
f2: 28.55122067
|
|
221734
221734
|
}
|
|
221735
221735
|
];
|
|
221736
|
-
function
|
|
221737
|
-
return
|
|
221736
|
+
function Br(a = 75) {
|
|
221737
|
+
return Mr.slice(0, a - 1);
|
|
221738
221738
|
}
|
|
221739
|
-
function
|
|
221739
|
+
function Ar(a) {
|
|
221740
221740
|
return [
|
|
221741
221741
|
t.create({
|
|
221742
221742
|
property: "company",
|
|
@@ -221744,16 +221744,16 @@ function Gr(a) {
|
|
|
221744
221744
|
width: c,
|
|
221745
221745
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221746
221746
|
headerClasses: ["ge-table-text-align-left"],
|
|
221747
|
-
sortable:
|
|
221747
|
+
sortable: p,
|
|
221748
221748
|
editable: () => a
|
|
221749
221749
|
}),
|
|
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
|
-
sortable:
|
|
221756
|
+
sortable: p,
|
|
221757
221757
|
editable: () => a
|
|
221758
221758
|
}),
|
|
221759
221759
|
t.create({
|
|
@@ -221762,7 +221762,7 @@ function Gr(a) {
|
|
|
221762
221762
|
width: c,
|
|
221763
221763
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221764
221764
|
headerClasses: ["ge-table-text-align-left"],
|
|
221765
|
-
sortable:
|
|
221765
|
+
sortable: p,
|
|
221766
221766
|
editable: () => a
|
|
221767
221767
|
}),
|
|
221768
221768
|
t.create({
|
|
@@ -221770,24 +221770,24 @@ function Gr(a) {
|
|
|
221770
221770
|
headerLabel: "Birth Date",
|
|
221771
221771
|
width: c,
|
|
221772
221772
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221773
|
-
sortable:
|
|
221773
|
+
sortable: p,
|
|
221774
221774
|
editable: () => a
|
|
221775
221775
|
}),
|
|
221776
221776
|
t.create({
|
|
221777
221777
|
property: "sellDate",
|
|
221778
221778
|
headerLabel: "Sell date",
|
|
221779
221779
|
width: c,
|
|
221780
|
-
bodyRenderer: new
|
|
221780
|
+
bodyRenderer: new V(),
|
|
221781
221781
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221782
|
-
sortable:
|
|
221782
|
+
sortable: p,
|
|
221783
221783
|
editable: () => a
|
|
221784
221784
|
}),
|
|
221785
221785
|
t.create({
|
|
221786
221786
|
property: "lastVisit",
|
|
221787
221787
|
headerLabel: "Last Visit",
|
|
221788
|
-
width:
|
|
221788
|
+
width: Ue,
|
|
221789
221789
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221790
|
-
sortable:
|
|
221790
|
+
sortable: p,
|
|
221791
221791
|
editable: () => a
|
|
221792
221792
|
}),
|
|
221793
221793
|
t.create({
|
|
@@ -221795,71 +221795,71 @@ function Gr(a) {
|
|
|
221795
221795
|
headerLabel: "Time",
|
|
221796
221796
|
width: c,
|
|
221797
221797
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221798
|
-
sortable:
|
|
221798
|
+
sortable: p,
|
|
221799
221799
|
editable: () => a
|
|
221800
221800
|
}),
|
|
221801
221801
|
t.create({
|
|
221802
221802
|
property: "id",
|
|
221803
221803
|
headerLabel: "Order ID",
|
|
221804
|
-
width:
|
|
221804
|
+
width: b,
|
|
221805
221805
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221806
|
-
sortable:
|
|
221806
|
+
sortable: p
|
|
221807
221807
|
}),
|
|
221808
221808
|
t.create({
|
|
221809
221809
|
property: "inStock",
|
|
221810
221810
|
headerLabel: "In stock",
|
|
221811
|
-
width:
|
|
221812
|
-
bodyRenderer: new
|
|
221811
|
+
width: w,
|
|
221812
|
+
bodyRenderer: new ke("inStock", !0, !0),
|
|
221813
221813
|
bodyClasses: ["ge-table-text-align-center"],
|
|
221814
|
-
sortable:
|
|
221814
|
+
sortable: p,
|
|
221815
221815
|
editable: () => a
|
|
221816
221816
|
}),
|
|
221817
221817
|
t.create({
|
|
221818
221818
|
property: "quantity",
|
|
221819
221819
|
headerLabel: "Qty",
|
|
221820
|
-
width:
|
|
221820
|
+
width: G,
|
|
221821
221821
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221822
221822
|
headerClasses: ["ge-table-text-align-right"],
|
|
221823
|
-
sortable:
|
|
221823
|
+
sortable: p,
|
|
221824
221824
|
editable: () => a
|
|
221825
221825
|
}),
|
|
221826
221826
|
t.create({
|
|
221827
221827
|
property: "progress",
|
|
221828
221828
|
headerLabel: "Progress",
|
|
221829
221829
|
width: c,
|
|
221830
|
-
bodyRenderer: new
|
|
221830
|
+
bodyRenderer: new xe("progress", 5, !0),
|
|
221831
221831
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221832
|
-
sortable:
|
|
221832
|
+
sortable: p
|
|
221833
221833
|
}),
|
|
221834
221834
|
t.create({
|
|
221835
221835
|
property: "rating",
|
|
221836
221836
|
headerLabel: "Rating",
|
|
221837
221837
|
width: c,
|
|
221838
|
-
bodyRenderer: new
|
|
221838
|
+
bodyRenderer: new De("rating"),
|
|
221839
221839
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221840
|
-
sortable:
|
|
221840
|
+
sortable: p
|
|
221841
221841
|
}),
|
|
221842
221842
|
t.create({
|
|
221843
221843
|
property: "price",
|
|
221844
221844
|
headerLabel: "Price",
|
|
221845
|
-
width:
|
|
221845
|
+
width: G,
|
|
221846
221846
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221847
|
-
sortable:
|
|
221847
|
+
sortable: p,
|
|
221848
221848
|
editable: () => a
|
|
221849
221849
|
}),
|
|
221850
221850
|
t.create({
|
|
221851
221851
|
property: "active",
|
|
221852
221852
|
headerLabel: "Active",
|
|
221853
|
-
width:
|
|
221854
|
-
bodyRenderer: new
|
|
221855
|
-
sortable:
|
|
221853
|
+
width: G,
|
|
221854
|
+
bodyRenderer: new ve(),
|
|
221855
|
+
sortable: p,
|
|
221856
221856
|
editable: () => a
|
|
221857
221857
|
}),
|
|
221858
221858
|
t.create({
|
|
221859
221859
|
property: "currency",
|
|
221860
221860
|
headerLabel: "CCY",
|
|
221861
|
-
width:
|
|
221862
|
-
sortable:
|
|
221861
|
+
width: G,
|
|
221862
|
+
sortable: p,
|
|
221863
221863
|
editable: () => a
|
|
221864
221864
|
}),
|
|
221865
221865
|
t.create({
|
|
@@ -221867,39 +221867,39 @@ function Gr(a) {
|
|
|
221867
221867
|
headerLabel: "Average",
|
|
221868
221868
|
width: c,
|
|
221869
221869
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221870
|
-
sortable:
|
|
221870
|
+
sortable: p,
|
|
221871
221871
|
editable: () => a
|
|
221872
221872
|
}),
|
|
221873
221873
|
t.create({
|
|
221874
221874
|
property: "f1",
|
|
221875
221875
|
headerLabel: "F1",
|
|
221876
|
-
width:
|
|
221876
|
+
width: qe,
|
|
221877
221877
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221878
|
-
bodyRenderer: new
|
|
221879
|
-
sortable:
|
|
221878
|
+
bodyRenderer: new Ee(),
|
|
221879
|
+
sortable: p,
|
|
221880
221880
|
editable: () => a
|
|
221881
221881
|
}),
|
|
221882
221882
|
t.create({
|
|
221883
221883
|
property: "f2",
|
|
221884
221884
|
headerLabel: "F2",
|
|
221885
|
-
width:
|
|
221885
|
+
width: b,
|
|
221886
221886
|
bodyClasses: ["ge-table-text-align-right"],
|
|
221887
|
-
sortable:
|
|
221887
|
+
sortable: p,
|
|
221888
221888
|
editable: () => a
|
|
221889
221889
|
}),
|
|
221890
221890
|
t.create({
|
|
221891
221891
|
property: "lorem",
|
|
221892
221892
|
headerLabel: "Lorem",
|
|
221893
|
-
width:
|
|
221893
|
+
width: z,
|
|
221894
221894
|
bodyClasses: ["ge-table-text-align-left"],
|
|
221895
|
-
sortable:
|
|
221895
|
+
sortable: p,
|
|
221896
221896
|
editable: () => a
|
|
221897
221897
|
})
|
|
221898
221898
|
];
|
|
221899
221899
|
}
|
|
221900
|
-
function
|
|
221900
|
+
function Ir(a) {
|
|
221901
221901
|
return {
|
|
221902
|
-
...new
|
|
221902
|
+
...new T(),
|
|
221903
221903
|
hoverColumnVisible: !1,
|
|
221904
221904
|
defaultRowHeights: {
|
|
221905
221905
|
header: 32,
|
|
@@ -221909,17 +221909,17 @@ function Zr(a) {
|
|
|
221909
221909
|
getSelectionModel: () => a
|
|
221910
221910
|
};
|
|
221911
221911
|
}
|
|
221912
|
-
function
|
|
221913
|
-
const n =
|
|
221912
|
+
function Pa(a = new h("row", "multi"), e = 75, r = !1) {
|
|
221913
|
+
const n = Ir(a);
|
|
221914
221914
|
e = Math.max(10, Math.min(75, e));
|
|
221915
|
-
const m =
|
|
221916
|
-
return new o(
|
|
221915
|
+
const m = Br(e), s = Ar(r);
|
|
221916
|
+
return new o(f.createTableModel({
|
|
221917
221917
|
rows: m,
|
|
221918
221918
|
columnDefs: s,
|
|
221919
221919
|
tableOptions: n
|
|
221920
221920
|
}), n);
|
|
221921
221921
|
}
|
|
221922
|
-
const
|
|
221922
|
+
const Rr = [
|
|
221923
221923
|
["Germany", "Hamburg"],
|
|
221924
221924
|
["Germany", "Berlin"],
|
|
221925
221925
|
["Germany", "Munich"],
|
|
@@ -221932,7 +221932,7 @@ const zr = [
|
|
|
221932
221932
|
["Spain", "Madrid"],
|
|
221933
221933
|
["Poland", "Warsaw"],
|
|
221934
221934
|
["Denmark", "Copenhagen"]
|
|
221935
|
-
],
|
|
221935
|
+
], Or = [
|
|
221936
221936
|
["Laptop", "Hardware", 1299],
|
|
221937
221937
|
["Monitor", "Hardware", 349],
|
|
221938
221938
|
["Keyboard", "Accessories", 89],
|
|
@@ -221942,42 +221942,42 @@ const zr = [
|
|
|
221942
221942
|
["Cloud Credits", "Services", 500],
|
|
221943
221943
|
["Support Plan", "Services", 990]
|
|
221944
221944
|
];
|
|
221945
|
-
function
|
|
221945
|
+
function Hr(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 E(a, e = 42) {
|
|
221953
|
+
const r = Hr(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,
|
|
221956
|
-
m[s] = { id: s + 1, country: i, city:
|
|
221955
|
+
const [i, y] = n(Rr), [d, u, g] = n(Or), N = 1 + Math.floor(r() * 20), S = Math.round(g * (0.85 + r() * 0.3) * 100) / 100;
|
|
221956
|
+
m[s] = { id: s + 1, country: i, city: y, product: d, category: u, quantity: N, price: S, total: Math.round(N * S * 100) / 100 };
|
|
221957
221957
|
}
|
|
221958
221958
|
return m;
|
|
221959
221959
|
}
|
|
221960
|
-
const
|
|
221961
|
-
function
|
|
221960
|
+
const q = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], sortable: p };
|
|
221961
|
+
function Ae() {
|
|
221962
221962
|
return [
|
|
221963
|
-
t.create({ property: "id", headerLabel: "Order", width: c, ...
|
|
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: c, ...
|
|
221969
|
-
t.create({ property: "price", headerLabel: "Ø Price", width:
|
|
221970
|
-
t.create({ property: "total", headerLabel: "Total", width:
|
|
221963
|
+
t.create({ property: "id", headerLabel: "Order", width: c, ...q }),
|
|
221964
|
+
t.create({ property: "country", headerLabel: "Country", width: P, sortable: p }),
|
|
221965
|
+
t.create({ property: "city", headerLabel: "City", width: P, sortable: p }),
|
|
221966
|
+
t.create({ property: "product", headerLabel: "Product", width: $, sortable: p }),
|
|
221967
|
+
t.create({ property: "category", headerLabel: "Category", width: P, sortable: p }),
|
|
221968
|
+
t.create({ property: "quantity", headerLabel: "Qty", width: c, ...q }),
|
|
221969
|
+
t.create({ property: "price", headerLabel: "Ø Price", width: Q, ...q }),
|
|
221970
|
+
t.create({ property: "total", headerLabel: "Total", width: P, ...q })
|
|
221971
221971
|
];
|
|
221972
221972
|
}
|
|
221973
|
-
function
|
|
221973
|
+
function Ga(a = 5e4, e = ["country", "city"], r = 1) {
|
|
221974
221974
|
const n = new h("row", "multi"), m = {
|
|
221975
|
-
...new
|
|
221975
|
+
...new T(),
|
|
221976
221976
|
hoverColumnVisible: !1,
|
|
221977
221977
|
getSelectionModel: () => n
|
|
221978
|
-
}, s =
|
|
221979
|
-
rows:
|
|
221980
|
-
columnDefs:
|
|
221978
|
+
}, s = _e.createTableModel({
|
|
221979
|
+
rows: E(a),
|
|
221980
|
+
columnDefs: Ae(),
|
|
221981
221981
|
groupBy: e,
|
|
221982
221982
|
aggregations: { quantity: "sum", price: "avg", total: "sum" },
|
|
221983
221983
|
expanded: r,
|
|
@@ -221985,27 +221985,27 @@ function ua(a = 5e4, e = ["country", "city"], r = 1) {
|
|
|
221985
221985
|
});
|
|
221986
221986
|
return new o(s, m);
|
|
221987
221987
|
}
|
|
221988
|
-
const
|
|
221989
|
-
class
|
|
221990
|
-
render(e, r, n, m, s, i,
|
|
221988
|
+
const $r = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
221989
|
+
class Vr {
|
|
221990
|
+
render(e, r, n, m, s, i, y) {
|
|
221991
221991
|
if (typeof i == "number") {
|
|
221992
|
-
const d =
|
|
221993
|
-
|
|
221994
|
-
const u =
|
|
221995
|
-
|
|
221992
|
+
const d = y.createElement("div");
|
|
221993
|
+
y.addClass(d, "ge-table-label-div");
|
|
221994
|
+
const u = y.createElement("div");
|
|
221995
|
+
y.addClass(u, "ge-table-label"), y.appendChild(u, y.createText($r.format(i))), y.appendChild(d, u), y.appendChild(e, d);
|
|
221996
221996
|
}
|
|
221997
221997
|
}
|
|
221998
221998
|
}
|
|
221999
|
-
function
|
|
221999
|
+
function Za(a = 5e4) {
|
|
222000
222000
|
const e = new h("range", "multi"), r = {
|
|
222001
|
-
...new
|
|
222001
|
+
...new T(),
|
|
222002
222002
|
hoverColumnVisible: !1,
|
|
222003
222003
|
getSelectionModel: () => e
|
|
222004
|
-
}, n =
|
|
222004
|
+
}, n = Ae(), m = new Vr();
|
|
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 = f.createTableModel({
|
|
222008
|
+
rows: E(a),
|
|
222009
222009
|
columnDefs: n,
|
|
222010
222010
|
footerAggregates: {
|
|
222011
222011
|
rows: [
|
|
@@ -222023,33 +222023,33 @@ function ca(a = 5e4) {
|
|
|
222023
222023
|
});
|
|
222024
222024
|
return new o(s, r);
|
|
222025
222025
|
}
|
|
222026
|
-
function
|
|
222026
|
+
function Fr(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 Er(a, e = 42) {
|
|
222034
|
+
const r = Fr(e + 1), n = Date.UTC(2024, 0, 1), m = 3 * 365 + 1;
|
|
222035
|
+
return E(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 _r = { name: "year", label: "Year", value: (a) => Number(a.date.slice(0, 4)) }, Kr = {
|
|
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
|
|
222046
|
+
function za(a = 5e4, e = [_r, Kr], r = 0) {
|
|
222047
222047
|
const n = new h("range", "multi"), m = {
|
|
222048
|
-
...new
|
|
222048
|
+
...new T(),
|
|
222049
222049
|
hoverColumnVisible: !1,
|
|
222050
222050
|
getSelectionModel: () => n
|
|
222051
|
-
}, s =
|
|
222052
|
-
rows:
|
|
222051
|
+
}, s = Ke.createTableModel({
|
|
222052
|
+
rows: Er(a),
|
|
222053
222053
|
rowFields: [{ value: "country", label: "Country" }, { value: "city", label: "City" }],
|
|
222054
222054
|
columnFields: e,
|
|
222055
222055
|
values: [
|
|
@@ -222057,28 +222057,28 @@ function la(a = 5e4, e = [qr, Mr], r = 0) {
|
|
|
222057
222057
|
{ value: "id", aggregator: "count", label: "Orders" }
|
|
222058
222058
|
],
|
|
222059
222059
|
expanded: r,
|
|
222060
|
-
valueColumnWidth:
|
|
222060
|
+
valueColumnWidth: b,
|
|
222061
222061
|
groupColumn: { showCount: !1 },
|
|
222062
222062
|
tableOptions: m
|
|
222063
222063
|
});
|
|
222064
222064
|
return new o(s, m);
|
|
222065
222065
|
}
|
|
222066
|
-
const
|
|
222067
|
-
class
|
|
222068
|
-
render(e, r, n, m, s, i,
|
|
222066
|
+
const Wr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
222067
|
+
class jr {
|
|
222068
|
+
render(e, r, n, m, s, i, y) {
|
|
222069
222069
|
if (i == null || i === "")
|
|
222070
222070
|
return;
|
|
222071
|
-
const d =
|
|
222072
|
-
|
|
222073
|
-
const u =
|
|
222074
|
-
|
|
222075
|
-
const
|
|
222076
|
-
|
|
222071
|
+
const d = y.createElement("div");
|
|
222072
|
+
y.addClass(d, "ge-table-label-div");
|
|
222073
|
+
const u = y.createElement("div");
|
|
222074
|
+
y.addClass(u, "ge-table-label");
|
|
222075
|
+
const g = typeof i == "number" ? Wr.format(i) : `${i}`;
|
|
222076
|
+
y.appendChild(u, y.createText(g)), y.appendChild(d, u), y.appendChild(e, d);
|
|
222077
222077
|
}
|
|
222078
222078
|
}
|
|
222079
|
-
function
|
|
222079
|
+
function Yr(a, e = 8) {
|
|
222080
222080
|
const r = [0, 0, 0, 5, 5, 10, 15];
|
|
222081
|
-
return
|
|
222081
|
+
return E(a, e).map((n, m) => ({
|
|
222082
222082
|
id: n.id,
|
|
222083
222083
|
country: n.country,
|
|
222084
222084
|
product: n.product,
|
|
@@ -222087,111 +222087,111 @@ function Ir(a, e = 8) {
|
|
|
222087
222087
|
discount: r[(m * 7 + n.quantity) % r.length]
|
|
222088
222088
|
}));
|
|
222089
222089
|
}
|
|
222090
|
-
const
|
|
222090
|
+
const C = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], footerClasses: ["ge-table-text-align-right"] }, M = {
|
|
222091
222091
|
net: "ROUND([quantity] * [price] * (1 - [discount] / 100), 2)",
|
|
222092
222092
|
vat: "ROUND([net] * 0.19, 2)",
|
|
222093
222093
|
gross: "[net] + [vat]",
|
|
222094
222094
|
custom: 'IF([discount] > 0, ROUND([gross] / [quantity], 2), "–")'
|
|
222095
222095
|
};
|
|
222096
|
-
function
|
|
222097
|
-
const e = new
|
|
222096
|
+
function Xr(a = M.custom) {
|
|
222097
|
+
const e = new jr();
|
|
222098
222098
|
return [
|
|
222099
|
-
t.create({ property: "id", headerLabel: "Line", width:
|
|
222100
|
-
t.create({ property: "country", headerLabel: "Country", width:
|
|
222101
|
-
t.create({ property: "product", headerLabel: "Product", width:
|
|
222099
|
+
t.create({ property: "id", headerLabel: "Line", width: w, ...C, sortable: p }),
|
|
222100
|
+
t.create({ property: "country", headerLabel: "Country", width: We, sortable: p }),
|
|
222101
|
+
t.create({ property: "product", headerLabel: "Product", width: $, sortable: p }),
|
|
222102
222102
|
t.create({
|
|
222103
222103
|
property: "quantity",
|
|
222104
222104
|
headerLabel: "Qty",
|
|
222105
|
-
width:
|
|
222106
|
-
...
|
|
222107
|
-
sortable:
|
|
222108
|
-
editable:
|
|
222109
|
-
editInputPipe:
|
|
222105
|
+
width: w,
|
|
222106
|
+
...C,
|
|
222107
|
+
sortable: p,
|
|
222108
|
+
editable: p,
|
|
222109
|
+
editInputPipe: Z
|
|
222110
222110
|
}),
|
|
222111
222111
|
t.create({
|
|
222112
222112
|
property: "price",
|
|
222113
222113
|
headerLabel: "Price",
|
|
222114
|
-
width:
|
|
222115
|
-
...
|
|
222116
|
-
sortable:
|
|
222117
|
-
editable:
|
|
222118
|
-
editInputPipe:
|
|
222114
|
+
width: Q,
|
|
222115
|
+
...C,
|
|
222116
|
+
sortable: p,
|
|
222117
|
+
editable: p,
|
|
222118
|
+
editInputPipe: Z,
|
|
222119
222119
|
bodyRenderer: e
|
|
222120
222120
|
}),
|
|
222121
222121
|
t.create({
|
|
222122
222122
|
property: "discount",
|
|
222123
222123
|
headerLabel: "Disc. %",
|
|
222124
|
-
width:
|
|
222125
|
-
...
|
|
222126
|
-
sortable:
|
|
222127
|
-
editable:
|
|
222128
|
-
editInputPipe:
|
|
222124
|
+
width: w,
|
|
222125
|
+
...C,
|
|
222126
|
+
sortable: p,
|
|
222127
|
+
editable: p,
|
|
222128
|
+
editInputPipe: Z
|
|
222129
222129
|
}),
|
|
222130
222130
|
t.create({
|
|
222131
222131
|
property: "net",
|
|
222132
222132
|
headerLabel: "Net",
|
|
222133
|
-
width:
|
|
222134
|
-
...
|
|
222135
|
-
sortable:
|
|
222136
|
-
formula:
|
|
222133
|
+
width: b,
|
|
222134
|
+
...C,
|
|
222135
|
+
sortable: p,
|
|
222136
|
+
formula: M.net,
|
|
222137
222137
|
bodyRenderer: e,
|
|
222138
222138
|
footerRenderer: e
|
|
222139
222139
|
}),
|
|
222140
222140
|
t.create({
|
|
222141
222141
|
property: "vat",
|
|
222142
222142
|
headerLabel: "VAT 19%",
|
|
222143
|
-
width:
|
|
222144
|
-
...
|
|
222145
|
-
sortable:
|
|
222146
|
-
formula:
|
|
222143
|
+
width: Q,
|
|
222144
|
+
...C,
|
|
222145
|
+
sortable: p,
|
|
222146
|
+
formula: M.vat,
|
|
222147
222147
|
bodyRenderer: e,
|
|
222148
222148
|
footerRenderer: e
|
|
222149
222149
|
}),
|
|
222150
222150
|
t.create({
|
|
222151
222151
|
property: "gross",
|
|
222152
222152
|
headerLabel: "Gross",
|
|
222153
|
-
width:
|
|
222154
|
-
...
|
|
222155
|
-
sortable:
|
|
222156
|
-
formula:
|
|
222153
|
+
width: b,
|
|
222154
|
+
...C,
|
|
222155
|
+
sortable: p,
|
|
222156
|
+
formula: M.gross,
|
|
222157
222157
|
bodyRenderer: e,
|
|
222158
222158
|
footerRenderer: e
|
|
222159
222159
|
}),
|
|
222160
222160
|
t.create({
|
|
222161
222161
|
property: "share",
|
|
222162
222162
|
headerLabel: "Share of net",
|
|
222163
|
-
width:
|
|
222164
|
-
...
|
|
222165
|
-
sortable:
|
|
222163
|
+
width: b,
|
|
222164
|
+
...C,
|
|
222165
|
+
sortable: p,
|
|
222166
222166
|
formula: "[net]",
|
|
222167
222167
|
showValuesAs: { mode: "percentOfColumnTotal", fractionDigits: 2 }
|
|
222168
222168
|
}),
|
|
222169
222169
|
t.create({
|
|
222170
222170
|
property: "rank",
|
|
222171
222171
|
headerLabel: "Rank",
|
|
222172
|
-
width:
|
|
222173
|
-
...
|
|
222174
|
-
sortable:
|
|
222172
|
+
width: w,
|
|
222173
|
+
...C,
|
|
222174
|
+
sortable: p,
|
|
222175
222175
|
formula: "[gross]",
|
|
222176
222176
|
showValuesAs: "rank"
|
|
222177
222177
|
}),
|
|
222178
222178
|
t.create({
|
|
222179
222179
|
property: "custom",
|
|
222180
222180
|
headerLabel: "Custom formula",
|
|
222181
|
-
width:
|
|
222182
|
-
...
|
|
222183
|
-
sortable:
|
|
222181
|
+
width: P,
|
|
222182
|
+
...C,
|
|
222183
|
+
sortable: p,
|
|
222184
222184
|
formula: a
|
|
222185
222185
|
})
|
|
222186
222186
|
];
|
|
222187
222187
|
}
|
|
222188
|
-
function
|
|
222188
|
+
function wa(a = 2e3) {
|
|
222189
222189
|
const e = {
|
|
222190
|
-
...new
|
|
222190
|
+
...new T(),
|
|
222191
222191
|
hoverColumnVisible: !1
|
|
222192
|
-
}, r =
|
|
222193
|
-
rows:
|
|
222194
|
-
columnDefs:
|
|
222192
|
+
}, r = f.createTableModel({
|
|
222193
|
+
rows: Yr(a),
|
|
222194
|
+
columnDefs: Xr(),
|
|
222195
222195
|
footerAggregates: {
|
|
222196
222196
|
rows: [{ label: (n) => `Sum · ${n.toLocaleString("en-US")} lines`, aggregates: { net: "sum", vat: "sum", gross: "sum" } }],
|
|
222197
222197
|
labelProperty: "product"
|
|
@@ -222201,7 +222201,7 @@ function ga(a = 2e3) {
|
|
|
222201
222201
|
});
|
|
222202
222202
|
return new o(r, e);
|
|
222203
222203
|
}
|
|
222204
|
-
const
|
|
222204
|
+
const x = [
|
|
222205
222205
|
"Fix login timeout",
|
|
222206
222206
|
"Ship row drag",
|
|
222207
222207
|
"Write release notes",
|
|
@@ -222222,31 +222222,31 @@ const k = [
|
|
|
222222
222222
|
"Plan Q1 roadmap",
|
|
222223
222223
|
"Refactor date utils",
|
|
222224
222224
|
"Security headers"
|
|
222225
|
-
],
|
|
222226
|
-
function
|
|
222225
|
+
], le = ["Anna", "Ben", "Chen", "Dana", "Emil"], ge = ["todo", "doing", "todo", "done", "todo"];
|
|
222226
|
+
function Jr(a = 20, e = !1) {
|
|
222227
222227
|
return Array.from({ length: a }, (r, n) => ({
|
|
222228
222228
|
id: n + 1,
|
|
222229
|
-
title: n <
|
|
222230
|
-
owner:
|
|
222231
|
-
status:
|
|
222229
|
+
title: n < x.length ? x[n] : `${x[n % x.length]} #${Math.floor(n / x.length) + 1}`,
|
|
222230
|
+
owner: le[n % le.length],
|
|
222231
|
+
status: ge[n * 3 % ge.length],
|
|
222232
222232
|
estimate: 1 + n * 7 % 13,
|
|
222233
222233
|
locked: e && n === 0
|
|
222234
222234
|
}));
|
|
222235
222235
|
}
|
|
222236
|
-
function
|
|
222237
|
-
const r = new h("row", "multi"), n = new
|
|
222238
|
-
...new
|
|
222236
|
+
function va(a = Jr(20, !0), e = {}) {
|
|
222237
|
+
const r = new h("row", "multi"), n = new F("cell"), m = {
|
|
222238
|
+
...new T(),
|
|
222239
222239
|
hoverColumnVisible: !1,
|
|
222240
222240
|
getSelectionModel: () => r,
|
|
222241
222241
|
getFocusModel: () => n,
|
|
222242
222242
|
rowDragOptions: e,
|
|
222243
222243
|
ariaLabel: "Priority list"
|
|
222244
|
-
}, s =
|
|
222244
|
+
}, s = f.createTableModel({
|
|
222245
222245
|
rows: a,
|
|
222246
222246
|
rowNumbersVisible: { headerLabel: "#" },
|
|
222247
222247
|
columnDefs: [
|
|
222248
|
-
t.create({ property: "title", headerLabel: "Task", width:
|
|
222249
|
-
t.create({ property: "owner", headerLabel: "Owner", width:
|
|
222248
|
+
t.create({ property: "title", headerLabel: "Task", width: ze, rowDrag: (i) => !i.locked }),
|
|
222249
|
+
t.create({ property: "owner", headerLabel: "Owner", width: b }),
|
|
222250
222250
|
t.create({ property: "status", headerLabel: "Status", width: c }),
|
|
222251
222251
|
t.create({
|
|
222252
222252
|
property: "estimate",
|
|
@@ -222260,7 +222260,7 @@ function ba(a = Or(20, !0), e = {}) {
|
|
|
222260
222260
|
});
|
|
222261
222261
|
return new o(s, m);
|
|
222262
222262
|
}
|
|
222263
|
-
const
|
|
222263
|
+
const Qr = [
|
|
222264
222264
|
{
|
|
222265
222265
|
id: 0,
|
|
222266
222266
|
preName: "Prename0",
|
|
@@ -384134,10 +384134,10 @@ const Hr = [
|
|
|
384134
384134
|
friends: []
|
|
384135
384135
|
}
|
|
384136
384136
|
];
|
|
384137
|
-
function
|
|
384137
|
+
function ea(a = !1) {
|
|
384138
384138
|
const e = new h("range", "multi");
|
|
384139
|
-
return a && (e.addSelection(new
|
|
384140
|
-
...new
|
|
384139
|
+
return a && (e.addSelection(new k(0, 0, 0, 2)), e.addSelection(new k(2, 1, 2, 2)), e.addSelection(new k(1, 5, 6, 7)), e.addSelection(new k(0, 8, 0, 8)), e.addSelection(new k(5, 6, 10, 10))), {
|
|
384140
|
+
...new T(),
|
|
384141
384141
|
hoverColumnVisible: !1,
|
|
384142
384142
|
defaultRowHeights: {
|
|
384143
384143
|
header: 50,
|
|
@@ -384145,7 +384145,7 @@ function Vr(a = !1) {
|
|
|
384145
384145
|
footer: 0
|
|
384146
384146
|
},
|
|
384147
384147
|
autoRestoreOptions: {
|
|
384148
|
-
...new
|
|
384148
|
+
...new er(),
|
|
384149
384149
|
getStorageKeyFn: () => "TreetablePeopleComponent",
|
|
384150
384150
|
autoRestoreCollapsedExpandedState: !0,
|
|
384151
384151
|
autoRestoreScrollPosition: !0,
|
|
@@ -384155,51 +384155,51 @@ function Vr(a = !1) {
|
|
|
384155
384155
|
getSelectionModel: () => e
|
|
384156
384156
|
};
|
|
384157
384157
|
}
|
|
384158
|
-
function
|
|
384158
|
+
function ra() {
|
|
384159
384159
|
return [
|
|
384160
|
-
new t("lastName", "Last Name",
|
|
384161
|
-
new t("preName", "Pre Name",
|
|
384160
|
+
new t("lastName", "Last Name", Ue),
|
|
384161
|
+
new t("preName", "Pre Name", b),
|
|
384162
384162
|
t.create({
|
|
384163
384163
|
property: "age",
|
|
384164
384164
|
headerLabel: "Age",
|
|
384165
|
-
width:
|
|
384166
|
-
bodyRenderer: new
|
|
384167
|
-
editable:
|
|
384165
|
+
width: qe,
|
|
384166
|
+
bodyRenderer: new je(),
|
|
384167
|
+
editable: p,
|
|
384168
384168
|
// editInputPipe: (value: any) => value ? Number(value) : ""
|
|
384169
|
-
editInputPipe:
|
|
384169
|
+
editInputPipe: Z
|
|
384170
384170
|
}),
|
|
384171
384171
|
new t(
|
|
384172
384172
|
"birth",
|
|
384173
384173
|
"Birthday",
|
|
384174
384174
|
c,
|
|
384175
384175
|
void 0,
|
|
384176
|
-
|
|
384176
|
+
Ye.bodyRenderer(new V())
|
|
384177
384177
|
),
|
|
384178
384178
|
t.create({
|
|
384179
384179
|
property: "gender",
|
|
384180
384180
|
headerLabel: " ",
|
|
384181
|
-
width:
|
|
384182
|
-
bodyRenderer: new
|
|
384183
|
-
editable:
|
|
384184
|
-
getEditRenderer: () => new
|
|
384185
|
-
new
|
|
384186
|
-
new
|
|
384181
|
+
width: Je,
|
|
384182
|
+
bodyRenderer: new Pe(),
|
|
384183
|
+
editable: p,
|
|
384184
|
+
getEditRenderer: () => new Xe([
|
|
384185
|
+
new me("female", "♀"),
|
|
384186
|
+
new me("male", "♂")
|
|
384187
384187
|
])
|
|
384188
384188
|
}),
|
|
384189
|
-
new t("address.street", "Strasse",
|
|
384190
|
-
new t("address.number", "Nr",
|
|
384191
|
-
new t("address.zip", "Zip",
|
|
384192
|
-
new t("address.city", "City",
|
|
384193
|
-
new t("address.country", "Country",
|
|
384194
|
-
new t("id", "ID",
|
|
384189
|
+
new t("address.street", "Strasse", we),
|
|
384190
|
+
new t("address.number", "Nr", Qe),
|
|
384191
|
+
new t("address.zip", "Zip", G),
|
|
384192
|
+
new t("address.city", "City", b),
|
|
384193
|
+
new t("address.country", "Country", b),
|
|
384194
|
+
new t("id", "ID", G)
|
|
384195
384195
|
];
|
|
384196
384196
|
}
|
|
384197
|
-
function
|
|
384198
|
-
const e =
|
|
384197
|
+
function ka(a = !1) {
|
|
384198
|
+
const e = ea(a), r = ra();
|
|
384199
384199
|
for (const s of r)
|
|
384200
|
-
s.sortable =
|
|
384201
|
-
r[0].editable =
|
|
384202
|
-
const n =
|
|
384200
|
+
s.sortable = p, s.editable = p;
|
|
384201
|
+
r[0].editable = J;
|
|
384202
|
+
const n = Ge.buildTreeRows(Qr, "friends"), m = f.createTableModel({
|
|
384203
384203
|
rows: n,
|
|
384204
384204
|
columnDefs: r,
|
|
384205
384205
|
tableOptions: e,
|
|
@@ -384211,7 +384211,7 @@ function Na(a = !1) {
|
|
|
384211
384211
|
e
|
|
384212
384212
|
);
|
|
384213
384213
|
}
|
|
384214
|
-
const
|
|
384214
|
+
const B = [
|
|
384215
384215
|
["Desk lamp", "Office"],
|
|
384216
384216
|
["Standing desk", "Office"],
|
|
384217
384217
|
["Office chair", "Office"],
|
|
@@ -384229,13 +384229,13 @@ const M = [
|
|
|
384229
384229
|
["Tea selection", "Kitchen"],
|
|
384230
384230
|
["Water bottle", "Kitchen"]
|
|
384231
384231
|
];
|
|
384232
|
-
function
|
|
384232
|
+
function aa(a = 16) {
|
|
384233
384233
|
return Array.from({ length: a }, (e, r) => {
|
|
384234
|
-
const [n, m] =
|
|
384234
|
+
const [n, m] = B[r % B.length];
|
|
384235
384235
|
return {
|
|
384236
384236
|
id: r + 1,
|
|
384237
384237
|
sku: `SKU-${String(r + 1).padStart(3, "0")}`,
|
|
384238
|
-
product: r <
|
|
384238
|
+
product: r < B.length ? n : `${n} ${Math.floor(r / B.length) + 1}`,
|
|
384239
384239
|
category: m,
|
|
384240
384240
|
validFrom: "2026-10-01",
|
|
384241
384241
|
price: Math.round((5 + (r * r * 37 + r * 11) % 150 + r * 13 % 10 / 10) * 100) / 100,
|
|
@@ -384244,35 +384244,35 @@ function Fr(a = 16) {
|
|
|
384244
384244
|
};
|
|
384245
384245
|
});
|
|
384246
384246
|
}
|
|
384247
|
-
function
|
|
384248
|
-
const n = new h("range", "multi"), m = new
|
|
384249
|
-
...new
|
|
384247
|
+
function xa(a = aa(), e = !0, r = !0) {
|
|
384248
|
+
const n = new h("range", "multi"), m = new F("cell"), s = {
|
|
384249
|
+
...new T(),
|
|
384250
384250
|
hoverColumnVisible: !1,
|
|
384251
384251
|
getSelectionModel: () => n,
|
|
384252
384252
|
getFocusModel: () => m,
|
|
384253
384253
|
fillHandle: r,
|
|
384254
384254
|
batchEdit: e,
|
|
384255
384255
|
ariaLabel: "Price list"
|
|
384256
|
-
}, i = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"] },
|
|
384256
|
+
}, i = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"] }, y = f.createTableModel({
|
|
384257
384257
|
rows: a,
|
|
384258
384258
|
fixedLeftColumnCount: 1,
|
|
384259
384259
|
columnDefs: [
|
|
384260
384260
|
t.create({ property: "sku", headerLabel: "SKU", width: c }),
|
|
384261
|
-
t.create({ property: "product", headerLabel: "Product", width:
|
|
384262
|
-
t.create({ property: "category", headerLabel: "Category", width: c, editable:
|
|
384261
|
+
t.create({ property: "product", headerLabel: "Product", width: z, editable: p }),
|
|
384262
|
+
t.create({ property: "category", headerLabel: "Category", width: c, editable: p }),
|
|
384263
384263
|
t.create({
|
|
384264
384264
|
property: "validFrom",
|
|
384265
384265
|
headerLabel: "Valid from",
|
|
384266
|
-
width:
|
|
384267
|
-
editable:
|
|
384266
|
+
width: b,
|
|
384267
|
+
editable: p,
|
|
384268
384268
|
validate: (d) => /^\d{4}-\d{2}-\d{2}$/.test(String(d)) ? void 0 : "Date as YYYY-MM-DD"
|
|
384269
384269
|
}),
|
|
384270
384270
|
t.create({
|
|
384271
384271
|
property: "price",
|
|
384272
384272
|
headerLabel: "Price",
|
|
384273
384273
|
width: c,
|
|
384274
|
-
editable:
|
|
384275
|
-
editInputPipe:
|
|
384274
|
+
editable: p,
|
|
384275
|
+
editInputPipe: Z,
|
|
384276
384276
|
...i,
|
|
384277
384277
|
validate: (d) => typeof d == "number" && d >= 0 ? void 0 : "A price is a number ≥ 0"
|
|
384278
384278
|
}),
|
|
@@ -384280,8 +384280,8 @@ function fa(a = Fr(), e = !0, r = !0) {
|
|
|
384280
384280
|
property: "discount",
|
|
384281
384281
|
headerLabel: "Discount %",
|
|
384282
384282
|
width: c,
|
|
384283
|
-
editable:
|
|
384284
|
-
editInputPipe:
|
|
384283
|
+
editable: p,
|
|
384284
|
+
editInputPipe: Z,
|
|
384285
384285
|
...i,
|
|
384286
384286
|
validate: (d) => typeof d == "number" && d >= 0 && d <= 50 ? void 0 : "Discount 0 … 50 %"
|
|
384287
384287
|
}),
|
|
@@ -384296,17 +384296,17 @@ function fa(a = Fr(), e = !0, r = !0) {
|
|
|
384296
384296
|
property: "stock",
|
|
384297
384297
|
headerLabel: "Stock",
|
|
384298
384298
|
width: c,
|
|
384299
|
-
editable:
|
|
384300
|
-
editInputPipe:
|
|
384299
|
+
editable: p,
|
|
384300
|
+
editInputPipe: Z,
|
|
384301
384301
|
...i,
|
|
384302
384302
|
validate: (d) => Number.isInteger(d) && d >= 0 ? void 0 : "Stock is a whole number ≥ 0"
|
|
384303
384303
|
})
|
|
384304
384304
|
],
|
|
384305
384305
|
tableOptions: s
|
|
384306
384306
|
});
|
|
384307
|
-
return new o(
|
|
384307
|
+
return new o(y, s);
|
|
384308
384308
|
}
|
|
384309
|
-
const
|
|
384309
|
+
const be = [
|
|
384310
384310
|
"Ada Lovelace",
|
|
384311
384311
|
"Alan Turing",
|
|
384312
384312
|
"Grace Hopper",
|
|
@@ -384317,7 +384317,7 @@ const se = [
|
|
|
384317
384317
|
"Ken Thompson",
|
|
384318
384318
|
"Katherine Johnson",
|
|
384319
384319
|
"Tim Berners-Lee"
|
|
384320
|
-
],
|
|
384320
|
+
], Ne = ["Berlin", "Hamburg", "Munich", "Cologne", "Vienna", "Zurich"], fe = ["open", "paid", "shipped", "delivered"], Te = [
|
|
384321
384321
|
["Desk lamp", 39.9],
|
|
384322
384322
|
["Standing desk", 499],
|
|
384323
384323
|
["Office chair", 289],
|
|
@@ -384331,54 +384331,54 @@ const se = [
|
|
|
384331
384331
|
["Coffee beans", 15.5],
|
|
384332
384332
|
["Water bottle", 19.9]
|
|
384333
384333
|
];
|
|
384334
|
-
function
|
|
384334
|
+
function ta(a = 1e3) {
|
|
384335
384335
|
let e = 20261016;
|
|
384336
384336
|
const r = () => (e = e * 16807 % 2147483647) / 2147483647, n = [];
|
|
384337
384337
|
for (let m = 0; m < a; m++) {
|
|
384338
384338
|
const s = [], i = 1 + Math.floor(r() * 8);
|
|
384339
384339
|
for (let d = 0; d < i; d++) {
|
|
384340
|
-
const [u,
|
|
384341
|
-
s.push({ sku: `SKU-${String(1 + Math.floor(r() * 900)).padStart(3, "0")}`, product: u, quantity: 1 + Math.floor(r() * 5), unitPrice:
|
|
384340
|
+
const [u, g] = Te[Math.floor(r() * Te.length)];
|
|
384341
|
+
s.push({ sku: `SKU-${String(1 + Math.floor(r() * 900)).padStart(3, "0")}`, product: u, quantity: 1 + Math.floor(r() * 5), unitPrice: g });
|
|
384342
384342
|
}
|
|
384343
|
-
const
|
|
384343
|
+
const y = 1 + m % 28;
|
|
384344
384344
|
n.push({
|
|
384345
384345
|
id: m + 1,
|
|
384346
384346
|
orderNo: `ORD-${String(10001 + m)}`,
|
|
384347
|
-
customer:
|
|
384348
|
-
city:
|
|
384349
|
-
date: `2026-${String(1 + m % 9).padStart(2, "0")}-${String(
|
|
384350
|
-
status:
|
|
384347
|
+
customer: be[Math.floor(r() * be.length)],
|
|
384348
|
+
city: Ne[m % Ne.length],
|
|
384349
|
+
date: `2026-${String(1 + m % 9).padStart(2, "0")}-${String(y).padStart(2, "0")}`,
|
|
384350
|
+
status: fe[Math.floor(r() * fe.length)],
|
|
384351
384351
|
total: Math.round(s.reduce((d, u) => d + u.quantity * u.unitPrice, 0) * 100) / 100,
|
|
384352
384352
|
items: s
|
|
384353
384353
|
});
|
|
384354
384354
|
}
|
|
384355
384355
|
return n;
|
|
384356
384356
|
}
|
|
384357
|
-
function
|
|
384358
|
-
return
|
|
384357
|
+
function na(a) {
|
|
384358
|
+
return f.createTableModel({
|
|
384359
384359
|
rows: a.items,
|
|
384360
384360
|
columnDefs: [
|
|
384361
384361
|
t.create({ property: "sku", headerLabel: "SKU", width: c }),
|
|
384362
|
-
t.create({ property: "product", headerLabel: "Product", width:
|
|
384362
|
+
t.create({ property: "product", headerLabel: "Product", width: z }),
|
|
384363
384363
|
t.create({ property: "quantity", headerLabel: "Qty", width: c, bodyClasses: ["ge-table-text-align-right"] }),
|
|
384364
|
-
t.create({ property: "unitPrice", headerLabel: "Unit price", width:
|
|
384364
|
+
t.create({ property: "unitPrice", headerLabel: "Unit price", width: b, bodyClasses: ["ge-table-text-align-right"] })
|
|
384365
384365
|
]
|
|
384366
384366
|
});
|
|
384367
384367
|
}
|
|
384368
|
-
function
|
|
384369
|
-
const r =
|
|
384368
|
+
function Da(a = ta(1e5), e = {}) {
|
|
384369
|
+
const r = f.createTableModel({
|
|
384370
384370
|
rows: a,
|
|
384371
384371
|
columnDefs: [
|
|
384372
|
-
t.create({ property: "orderNo", headerLabel: "Order", width:
|
|
384373
|
-
t.create({ property: "date", headerLabel: "Date", width:
|
|
384374
|
-
t.create({ property: "customer", headerLabel: "Customer", width:
|
|
384375
|
-
t.create({ property: "city", headerLabel: "City", width:
|
|
384372
|
+
t.create({ property: "orderNo", headerLabel: "Order", width: $ }),
|
|
384373
|
+
t.create({ property: "date", headerLabel: "Date", width: b, sortable: () => !0 }),
|
|
384374
|
+
t.create({ property: "customer", headerLabel: "Customer", width: z, sortable: () => !0 }),
|
|
384375
|
+
t.create({ property: "city", headerLabel: "City", width: b, sortable: () => !0 }),
|
|
384376
384376
|
t.create({ property: "status", headerLabel: "Status", width: c }),
|
|
384377
|
-
t.create({ property: "total", headerLabel: "Total", width:
|
|
384377
|
+
t.create({ property: "total", headerLabel: "Total", width: b, sortable: () => !0, bodyClasses: ["ge-table-text-align-right"] })
|
|
384378
384378
|
],
|
|
384379
384379
|
fixedLeftColumnCount: 1
|
|
384380
|
-
}), n = new
|
|
384381
|
-
...new
|
|
384380
|
+
}), n = new F("cell"), m = new h("row", "multi"), s = {
|
|
384381
|
+
...new T(),
|
|
384382
384382
|
hoverColumnVisible: !1,
|
|
384383
384383
|
getFocusModel: () => n,
|
|
384384
384384
|
getSelectionModel: () => m,
|
|
@@ -384386,8 +384386,8 @@ function Ta(a = Er(1e5), e = {}) {
|
|
|
384386
384386
|
masterDetail: {
|
|
384387
384387
|
detailHeight: 222,
|
|
384388
384388
|
// header + 5 rows, borders, padding of the detail cell
|
|
384389
|
-
detailRenderer: (i,
|
|
384390
|
-
d.createTable({ tableModel:
|
|
384389
|
+
detailRenderer: (i, y, d) => {
|
|
384390
|
+
d.createTable({ tableModel: na(y) });
|
|
384391
384391
|
},
|
|
384392
384392
|
getRowId: (i) => i.id,
|
|
384393
384393
|
...e
|
|
@@ -384395,7 +384395,7 @@ function Ta(a = Er(1e5), e = {}) {
|
|
|
384395
384395
|
};
|
|
384396
384396
|
return new o(r, s);
|
|
384397
384397
|
}
|
|
384398
|
-
const
|
|
384398
|
+
const X = [
|
|
384399
384399
|
["الرياض", "السعودية", "RUH"],
|
|
384400
384400
|
["جدة", "السعودية", "JED"],
|
|
384401
384401
|
["مكة", "السعودية", "MKK"],
|
|
@@ -384416,23 +384416,23 @@ const E = [
|
|
|
384416
384416
|
["الجزائر", "الجزائر", "ALG"],
|
|
384417
384417
|
["الرباط", "المغرب", "RBA"],
|
|
384418
384418
|
["الدار البيضاء", "المغرب", "CMN"]
|
|
384419
|
-
],
|
|
384420
|
-
function
|
|
384419
|
+
], oe = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"];
|
|
384420
|
+
function ma(a) {
|
|
384421
384421
|
return () => {
|
|
384422
384422
|
a |= 0, a = a + 1831565813 | 0;
|
|
384423
384423
|
let e = Math.imul(a ^ a >>> 15, 1 | a);
|
|
384424
384424
|
return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
384425
384425
|
};
|
|
384426
384426
|
}
|
|
384427
|
-
function
|
|
384428
|
-
const r =
|
|
384427
|
+
function sa(a = 2e3, e = 7) {
|
|
384428
|
+
const r = ma(e);
|
|
384429
384429
|
return Array.from({ length: a }, (n, m) => {
|
|
384430
|
-
const [s, i,
|
|
384430
|
+
const [s, i, y] = X[m % X.length], d = 5e3 + Math.round(r() * 25e3), u = () => Math.round(d * (0.7 + r() * 0.6));
|
|
384431
384431
|
return {
|
|
384432
384432
|
id: m + 1,
|
|
384433
384433
|
city: s,
|
|
384434
384434
|
country: i,
|
|
384435
|
-
branch: `فرع ${
|
|
384435
|
+
branch: `فرع ${y}-${String(Math.floor(m / X.length) + 1).padStart(2, "0")}`,
|
|
384436
384436
|
m1: u(),
|
|
384437
384437
|
m2: u(),
|
|
384438
384438
|
m3: u(),
|
|
@@ -384448,38 +384448,38 @@ function Wr(a = 2e3, e = 7) {
|
|
|
384448
384448
|
};
|
|
384449
384449
|
});
|
|
384450
384450
|
}
|
|
384451
|
-
function
|
|
384452
|
-
const r = new h("range", "multi"), n = new
|
|
384453
|
-
...new
|
|
384451
|
+
function Ua(a = "rtl", e = sa()) {
|
|
384452
|
+
const r = new h("range", "multi"), n = new F("cell"), m = {
|
|
384453
|
+
...new T(),
|
|
384454
384454
|
direction: a,
|
|
384455
384455
|
hoverColumnVisible: !1,
|
|
384456
384456
|
getSelectionModel: () => r,
|
|
384457
384457
|
getFocusModel: () => n,
|
|
384458
384458
|
ariaLabel: "المبيعات حسب المدينة"
|
|
384459
|
-
}, s = ["ge-table-text-align-right"], i =
|
|
384460
|
-
property: `m${
|
|
384461
|
-
headerLabel:
|
|
384459
|
+
}, s = ["ge-table-text-align-right"], i = oe.map((g, N) => t.create({
|
|
384460
|
+
property: `m${N + 1}`,
|
|
384461
|
+
headerLabel: g,
|
|
384462
384462
|
width: c,
|
|
384463
384463
|
bodyClasses: s,
|
|
384464
384464
|
footerClasses: s,
|
|
384465
384465
|
sortable: () => !0
|
|
384466
|
-
})),
|
|
384467
|
-
t.create({ property: "city", headerLabel: "المدينة", width:
|
|
384468
|
-
t.create({ property: "country", headerLabel: "البلد", width:
|
|
384469
|
-
t.create({ property: "branch", headerLabel: "الفرع", width:
|
|
384466
|
+
})), y = [
|
|
384467
|
+
t.create({ property: "city", headerLabel: "المدينة", width: b, sortable: () => !0 }),
|
|
384468
|
+
t.create({ property: "country", headerLabel: "البلد", width: b, sortable: () => !0 }),
|
|
384469
|
+
t.create({ property: "branch", headerLabel: "الفرع", width: P }),
|
|
384470
384470
|
...i,
|
|
384471
384471
|
t.create({
|
|
384472
384472
|
property: "total",
|
|
384473
384473
|
headerLabel: "المجموع",
|
|
384474
|
-
width:
|
|
384474
|
+
width: b,
|
|
384475
384475
|
bodyClasses: s,
|
|
384476
384476
|
footerClasses: s,
|
|
384477
384477
|
sortable: () => !0,
|
|
384478
|
-
valueGetter: (
|
|
384478
|
+
valueGetter: (g) => oe.reduce((N, S, v) => N + g[`m${v + 1}`], 0)
|
|
384479
384479
|
})
|
|
384480
|
-
], d = Object.fromEntries([...i.map((
|
|
384480
|
+
], d = Object.fromEntries([...i.map((g) => g.property), "total"].map((g) => [g, "sum"])), u = f.createTableModel({
|
|
384481
384481
|
rows: e,
|
|
384482
|
-
columnDefs:
|
|
384482
|
+
columnDefs: y,
|
|
384483
384483
|
rowNumbersVisible: !0,
|
|
384484
384484
|
fixedLeftColumnCount: 1,
|
|
384485
384485
|
// the city stays at the start (right)
|
|
@@ -384493,7 +384493,7 @@ function oa(a = "rtl", e = Wr()) {
|
|
|
384493
384493
|
});
|
|
384494
384494
|
return new o(u, m);
|
|
384495
384495
|
}
|
|
384496
|
-
function
|
|
384496
|
+
function ia() {
|
|
384497
384497
|
return [
|
|
384498
384498
|
["Item", "Qty", "Unit price", "Discount", "Net", "Note"],
|
|
384499
384499
|
['Laptop 14"', 4, 1299, 0.05, "=B2*C2*(1-D2)", ""],
|
|
@@ -384508,68 +384508,212 @@ function Yr() {
|
|
|
384508
384508
|
["Total", "", "", "", "=E8+E9+E10", ""]
|
|
384509
384509
|
];
|
|
384510
384510
|
}
|
|
384511
|
-
function
|
|
384512
|
-
return
|
|
384513
|
-
data:
|
|
384511
|
+
function qa(a = {}) {
|
|
384512
|
+
return rr.create({
|
|
384513
|
+
data: ia(),
|
|
384514
384514
|
rowCount: 100,
|
|
384515
384515
|
columnCount: 8,
|
|
384516
384516
|
columnWidth: 130,
|
|
384517
384517
|
...a
|
|
384518
384518
|
});
|
|
384519
384519
|
}
|
|
384520
|
+
const A = [
|
|
384521
|
+
"Silent",
|
|
384522
|
+
"Crimson",
|
|
384523
|
+
"Hidden",
|
|
384524
|
+
"Last",
|
|
384525
|
+
"Golden",
|
|
384526
|
+
"Broken",
|
|
384527
|
+
"Northern",
|
|
384528
|
+
"Electric",
|
|
384529
|
+
"Paper",
|
|
384530
|
+
"Midnight",
|
|
384531
|
+
"Glass",
|
|
384532
|
+
"Wandering",
|
|
384533
|
+
"Forgotten",
|
|
384534
|
+
"Burning",
|
|
384535
|
+
"Little",
|
|
384536
|
+
"Endless"
|
|
384537
|
+
], he = [
|
|
384538
|
+
"Garden",
|
|
384539
|
+
"Engine",
|
|
384540
|
+
"Harbour",
|
|
384541
|
+
"Archive",
|
|
384542
|
+
"Comet",
|
|
384543
|
+
"Lighthouse",
|
|
384544
|
+
"Orchard",
|
|
384545
|
+
"Kingdom",
|
|
384546
|
+
"Signal",
|
|
384547
|
+
"River",
|
|
384548
|
+
"Atlas",
|
|
384549
|
+
"Clockwork",
|
|
384550
|
+
"Island",
|
|
384551
|
+
"Library",
|
|
384552
|
+
"Mountain",
|
|
384553
|
+
"Storm",
|
|
384554
|
+
"Machine",
|
|
384555
|
+
"Letters"
|
|
384556
|
+
], Se = ["Ada", "Jonas", "Mira", "Theo", "Lena", "Omar", "Ines", "Kai", "Nora", "Felix", "Yuki", "Elif"], Ce = ["Berger", "Okafor", "Lindqvist", "Moreau", "Kowalski", "Santos", "Tanaka", "Hart", "Novak", "Reyes"], Le = ["Fantasy", "Sci-Fi", "Crime", "Romance", "History", "Poetry", "Travel", "Cooking"];
|
|
384557
|
+
function da(a = 1e4) {
|
|
384558
|
+
const e = A.length * he.length;
|
|
384559
|
+
return Array.from({ length: a }, (r, n) => {
|
|
384560
|
+
const m = n * 97 % e, s = A[m % A.length], i = he[Math.floor(m / A.length)], y = Math.floor(n / e);
|
|
384561
|
+
return {
|
|
384562
|
+
id: n + 1,
|
|
384563
|
+
title: `The ${s} ${i}${y ? ` ${y + 1}` : ""}`,
|
|
384564
|
+
author: `${Se[n * 11 % Se.length]} ${Ce[(n * 3 + Math.floor(n / 12)) % Ce.length]}`,
|
|
384565
|
+
genre: Le[(n * 13 + Math.floor(n / e)) % Le.length],
|
|
384566
|
+
year: 1950 + n * 37 % 76,
|
|
384567
|
+
pages: 120 + n * 53 % 600,
|
|
384568
|
+
hue: n * 47 % 360
|
|
384569
|
+
};
|
|
384570
|
+
});
|
|
384571
|
+
}
|
|
384572
|
+
const I = new Intl.Collator("en", { numeric: !0 }), Ma = {
|
|
384573
|
+
id: (a, e) => a.id - e.id,
|
|
384574
|
+
title: (a, e) => I.compare(a.title, e.title) || a.id - e.id,
|
|
384575
|
+
author: (a, e) => I.compare(a.author, e.author) || I.compare(a.title, e.title),
|
|
384576
|
+
year: (a, e) => e.year - a.year || I.compare(a.title, e.title)
|
|
384577
|
+
};
|
|
384578
|
+
class ya {
|
|
384579
|
+
constructor(e = {}) {
|
|
384580
|
+
this.ctx = e;
|
|
384581
|
+
}
|
|
384582
|
+
render(e, r, n, m, s, i) {
|
|
384583
|
+
var te, ne;
|
|
384584
|
+
const y = i;
|
|
384585
|
+
if (!y) return;
|
|
384586
|
+
const d = e.ownerDocument, u = s.coverWidth ?? 160, g = u < 120, N = d.createElement("div");
|
|
384587
|
+
N.className = "ge-demo-book", N.title = `${y.title} – ${y.author} (${y.year})`, Object.assign(N.style, {
|
|
384588
|
+
boxSizing: "border-box",
|
|
384589
|
+
width: "100%",
|
|
384590
|
+
height: "100%",
|
|
384591
|
+
padding: g ? "5px" : "10px",
|
|
384592
|
+
display: "flex",
|
|
384593
|
+
flexDirection: "column",
|
|
384594
|
+
gap: "6px",
|
|
384595
|
+
cursor: "pointer"
|
|
384596
|
+
});
|
|
384597
|
+
const S = d.createElement("div");
|
|
384598
|
+
Object.assign(S.style, {
|
|
384599
|
+
position: "relative",
|
|
384600
|
+
flex: "1",
|
|
384601
|
+
minHeight: "0",
|
|
384602
|
+
overflow: "hidden",
|
|
384603
|
+
boxSizing: "border-box",
|
|
384604
|
+
display: "flex",
|
|
384605
|
+
flexDirection: "column",
|
|
384606
|
+
justifyContent: "space-between",
|
|
384607
|
+
padding: g ? "8px 6px 8px 10px" : "14px 12px 14px 18px",
|
|
384608
|
+
borderRadius: "3px 8px 8px 3px",
|
|
384609
|
+
borderLeft: "6px solid rgba(0,0,0,0.28)",
|
|
384610
|
+
background: `linear-gradient(160deg, hsl(${y.hue} 62% 52%), hsl(${(y.hue + 40) % 360} 68% 24%))`,
|
|
384611
|
+
color: "#fff",
|
|
384612
|
+
fontSize: `${Math.max(9, Math.round(u / 11))}px`,
|
|
384613
|
+
lineHeight: "1.2",
|
|
384614
|
+
boxShadow: "0 3px 8px rgba(0,0,0,0.35)",
|
|
384615
|
+
outline: (ne = (te = this.ctx).isSelected) != null && ne.call(te, y) ? "3px solid #2b7de9" : "none",
|
|
384616
|
+
outlineOffset: "3px"
|
|
384617
|
+
});
|
|
384618
|
+
const v = d.createElement("div");
|
|
384619
|
+
v.textContent = y.genre.toUpperCase(), Object.assign(v.style, { fontSize: "0.6em", letterSpacing: "0.12em", opacity: "0.85" });
|
|
384620
|
+
const _ = d.createElement("div");
|
|
384621
|
+
_.textContent = y.title, Object.assign(_.style, { fontSize: "1.2em", fontWeight: "700", overflowWrap: "anywhere" });
|
|
384622
|
+
const K = d.createElement("div");
|
|
384623
|
+
if (K.textContent = y.author, Object.assign(K.style, { fontSize: "0.75em", opacity: "0.9" }), S.append(v, _), g || S.append(K), N.append(S), !g) {
|
|
384624
|
+
const W = d.createElement("div");
|
|
384625
|
+
W.textContent = `${y.year} · ${y.pages} pages`, Object.assign(W.style, {
|
|
384626
|
+
fontSize: "12px",
|
|
384627
|
+
whiteSpace: "nowrap",
|
|
384628
|
+
overflow: "hidden",
|
|
384629
|
+
textOverflow: "ellipsis",
|
|
384630
|
+
opacity: "0.75"
|
|
384631
|
+
}), N.append(W);
|
|
384632
|
+
}
|
|
384633
|
+
e.append(N);
|
|
384634
|
+
}
|
|
384635
|
+
}
|
|
384636
|
+
function Ba(a = da(), e = 160, r = 260, n = {}) {
|
|
384637
|
+
const m = se.createCoverGridModel(
|
|
384638
|
+
a,
|
|
384639
|
+
new ya(n),
|
|
384640
|
+
e,
|
|
384641
|
+
r
|
|
384642
|
+
), s = {
|
|
384643
|
+
...se.createCoverGrisDefaultOptions(r, () => "coverGridDemo"),
|
|
384644
|
+
externalFilterFunction: n.filter,
|
|
384645
|
+
shortcutActionsDisabled: !0,
|
|
384646
|
+
// the table's cell navigation does not apply to tiles
|
|
384647
|
+
overflowY: "scroll",
|
|
384648
|
+
// a classic scroll bar is always there: the number of columns does not jump
|
|
384649
|
+
ariaLabel: "Books"
|
|
384650
|
+
};
|
|
384651
|
+
return { tableModel: m, tableOptions: s };
|
|
384652
|
+
}
|
|
384653
|
+
function Aa(a, e, r) {
|
|
384654
|
+
const n = a.bodyModel;
|
|
384655
|
+
if (!n.width) return !1;
|
|
384656
|
+
const m = Math.max(1, Math.floor(n.width / e)), s = Math.floor(n.width / m), i = Math.round(r * s / e);
|
|
384657
|
+
return s === n.coverWidth && i === n.coverHeight ? !1 : (n.coverWidth = s, n.coverHeight = i, !0);
|
|
384658
|
+
}
|
|
384520
384659
|
export {
|
|
384521
|
-
|
|
384522
|
-
|
|
384523
|
-
|
|
384524
|
-
|
|
384525
|
-
|
|
384526
|
-
|
|
384527
|
-
|
|
384528
|
-
|
|
384529
|
-
|
|
384530
|
-
|
|
384531
|
-
|
|
384532
|
-
|
|
384533
|
-
|
|
384534
|
-
|
|
384535
|
-
|
|
384536
|
-
|
|
384537
|
-
|
|
384538
|
-
|
|
384539
|
-
|
|
384540
|
-
|
|
384541
|
-
|
|
384542
|
-
|
|
384543
|
-
|
|
384544
|
-
|
|
384545
|
-
|
|
384546
|
-
|
|
384547
|
-
|
|
384548
|
-
|
|
384549
|
-
|
|
384550
|
-
|
|
384551
|
-
|
|
384552
|
-
|
|
384553
|
-
|
|
384554
|
-
|
|
384555
|
-
|
|
384556
|
-
|
|
384557
|
-
|
|
384558
|
-
|
|
384559
|
-
|
|
384560
|
-
|
|
384561
|
-
|
|
384562
|
-
|
|
384563
|
-
|
|
384564
|
-
|
|
384565
|
-
|
|
384566
|
-
|
|
384567
|
-
|
|
384568
|
-
|
|
384569
|
-
|
|
384570
|
-
|
|
384571
|
-
|
|
384572
|
-
|
|
384573
|
-
|
|
384574
|
-
|
|
384660
|
+
Ma as BOOK_SORTS,
|
|
384661
|
+
ya as BookCoverRenderer,
|
|
384662
|
+
ha as COL_IDX_UPDATED_AT,
|
|
384663
|
+
ar as ChangePercentageRenderer,
|
|
384664
|
+
sr as CirculatingSupplyRenderer,
|
|
384665
|
+
ir as CoinIconRenderer,
|
|
384666
|
+
M as INVOICE_FORMULAS,
|
|
384667
|
+
qr as LargeBodyModel,
|
|
384668
|
+
nr as NameAndSymbolRenderer,
|
|
384669
|
+
tr as UsdRenderer,
|
|
384670
|
+
mr as Volumn24hRenderer,
|
|
384671
|
+
oa as applyBodyRenderer,
|
|
384672
|
+
Za as createAggregationModelAndOptions,
|
|
384673
|
+
Cr as createColumnDefs,
|
|
384674
|
+
Ba as createCoverGridModelAndOptions,
|
|
384675
|
+
ua as createCryptoModelAndOptions,
|
|
384676
|
+
wa as createFormulaModelAndOptions,
|
|
384677
|
+
Na as createHeadergroupModel,
|
|
384678
|
+
ga as createHeatMapModel,
|
|
384679
|
+
ba as createHeatMapSeattleModel,
|
|
384680
|
+
Xr as createInvoiceColumnDefs,
|
|
384681
|
+
La as createLargeModelAndOptions,
|
|
384682
|
+
Pa as createManyTypesModelAndOptions,
|
|
384683
|
+
Da as createMasterDetailModelAndOptions,
|
|
384684
|
+
na as createOrderItemsModel,
|
|
384685
|
+
Ca as createOrderModelAndOptions,
|
|
384686
|
+
za as createPivotModelAndOptions,
|
|
384687
|
+
xa as createPriceListModelAndOptions,
|
|
384688
|
+
va as createRowDragModelAndOptions,
|
|
384689
|
+
Ga as createRowGroupModelAndOptions,
|
|
384690
|
+
Ua as createRtlCitiesModelAndOptions,
|
|
384691
|
+
Ae as createSalesOrderColumnDefs,
|
|
384692
|
+
Ta as createSimplePersonModel,
|
|
384693
|
+
ia as createSpreadsheetQuoteData,
|
|
384694
|
+
qa as createSpreadsheetQuoteModelAndOptions,
|
|
384695
|
+
Lr as createTableOptions,
|
|
384696
|
+
Sr as createTableRows,
|
|
384697
|
+
fa as createTeamHeadergroupModel,
|
|
384698
|
+
Sa as createTimeTableModel,
|
|
384699
|
+
ra as createTreePeopleColumnDefs,
|
|
384700
|
+
ka as createTreePeopleModelAndOptions,
|
|
384701
|
+
ea as createTreePeopleTableOptions,
|
|
384702
|
+
dr as cryptoData,
|
|
384703
|
+
Pr as data,
|
|
384704
|
+
Aa as fitCoversToWidth,
|
|
384705
|
+
da as generateBooks,
|
|
384706
|
+
Yr as generateInvoiceLines,
|
|
384707
|
+
ta as generateMasterOrders,
|
|
384708
|
+
Er as generatePivotOrders,
|
|
384709
|
+
aa as generatePriceItems,
|
|
384710
|
+
sa as generateRtlCitySales,
|
|
384711
|
+
E as generateSalesOrders,
|
|
384712
|
+
ca as generateSimpleModel,
|
|
384713
|
+
Jr as generateTasks,
|
|
384714
|
+
la as generateTreeCheckboxModel,
|
|
384715
|
+
Kr as pivotQuarter,
|
|
384716
|
+
_r as pivotYear,
|
|
384717
|
+
Gr as tableOptions,
|
|
384718
|
+
hr as teamHeaderGroups
|
|
384575
384719
|
};
|