@guiexpert/demo-table-models 1.1.98 → 1.1.99
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 +2 -2
- package/index.d.ts +1 -0
- package/index.js +194 -168
- package/lib/createSpreadsheetQuoteModel.d.ts +19 -0
- package/lib/createTimeTableModel.d.ts +5 -0
- package/lib/treepeople/generateTreePeopleModel.d.ts +5 -0
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ColumnDef as t, px60 as P, px120 as g, px100 as c, px160 as
|
|
2
|
-
class
|
|
1
|
+
import { ColumnDef as t, px60 as P, px120 as g, px100 as c, px160 as R, px200 as Z, px140 as L, TableOptions as f, TableModelAndOptions as o, TableFactory as N, Size as l, AreaObjectMap as D, DateToIntlDDMMYYYYCellRenderer as O, MaleFemaleToIconCellRenderer as ue, TreeFactory as ce, DefaultRowHeights as Ze, AreaModelArrayOfArrays as B, AreaModel as Y, ColorRgb as $, ThreeColorGradientArg as ze, GeCssColorUtil as we, CellgroupFactory as A, AreaModelCellGroups as le, AreaModelObjectArrayWithColumndefs as j, px300 as ge, px150 as be, px250 as ve, TrueFalseCellRenderer as Ne, DateToTecCellRenderer as ke, SelectionModel as h, TrueFn as y, CheckboxBooleanPropertyCellRenderer as fe, px90 as z, ProgressBarCellRenderer as Te, StarRatingCellRenderer as oe, NumberCellProgressBarCellRenderer as De, RowNumberColumnDef as xe, FalseFn as _, px220 as he, PositiveAndNegativeNumberRenderer as Ue, px80 as Se, RowGroupFactory as qe, px110 as K, PivotFactory as Me, px130 as Be, editInputPipeForNumber as G, FocusModel as H, NumberCellRenderer as Ae, Renderer as Ie, SelectCellRenderer as Re, px50 as Oe, ValueLabel as X, px70 as He, CellRange as v, AutoRestoreOptions as Ve, SpreadsheetFactory as $e } from "@guiexpert/table";
|
|
2
|
+
class Fe {
|
|
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 $e {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
class
|
|
10
|
+
class Ee {
|
|
11
11
|
constructor() {
|
|
12
12
|
this.formatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
|
|
13
13
|
}
|
|
@@ -18,7 +18,7 @@ class Fe {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
class
|
|
21
|
+
class _e {
|
|
22
22
|
render(e, r, n, m, s, i, p) {
|
|
23
23
|
const d = s.getRowByIndex(r);
|
|
24
24
|
if (d) {
|
|
@@ -32,7 +32,7 @@ class Ee {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
class
|
|
35
|
+
class Ke {
|
|
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
|
}
|
|
@@ -49,7 +49,7 @@ class _e {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
class
|
|
52
|
+
class We {
|
|
53
53
|
constructor(e = 120) {
|
|
54
54
|
this.maxWidth = e, this.formatter = new Intl.NumberFormat("en-US");
|
|
55
55
|
}
|
|
@@ -69,13 +69,13 @@ class Ke {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
class
|
|
72
|
+
class Ye {
|
|
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 je = [
|
|
79
79
|
{
|
|
80
80
|
id: 1,
|
|
81
81
|
name: "Bitcoin",
|
|
@@ -2810,8 +2810,8 @@ const Ye = [
|
|
|
2810
2810
|
change90d: 12.43943602
|
|
2811
2811
|
}
|
|
2812
2812
|
];
|
|
2813
|
-
function
|
|
2814
|
-
const a =
|
|
2813
|
+
function Xr() {
|
|
2814
|
+
const a = je, e = new Fe(), r = new Ee(), n = new _e(), m = new Ke(), s = new We(120), i = new Ye(), p = [
|
|
2815
2815
|
t.create({
|
|
2816
2816
|
property: "symbol",
|
|
2817
2817
|
headerLabel: "",
|
|
@@ -2840,7 +2840,7 @@ function Yr() {
|
|
|
2840
2840
|
t.create({
|
|
2841
2841
|
property: "marketCapUsd",
|
|
2842
2842
|
headerLabel: "Market Cap",
|
|
2843
|
-
width:
|
|
2843
|
+
width: R,
|
|
2844
2844
|
bodyClasses: ["ge-table-text-align-right"],
|
|
2845
2845
|
headerClasses: ["ge-table-text-align-right"],
|
|
2846
2846
|
bodyRenderer: r
|
|
@@ -2881,7 +2881,7 @@ function Yr() {
|
|
|
2881
2881
|
d
|
|
2882
2882
|
);
|
|
2883
2883
|
}
|
|
2884
|
-
function
|
|
2884
|
+
function Jr(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(
|
|
@@ -2898,7 +2898,7 @@ function jr(a = 1e3, e = 1e3) {
|
|
|
2898
2898
|
fixedRightColumnCount: 2
|
|
2899
2899
|
});
|
|
2900
2900
|
}
|
|
2901
|
-
const
|
|
2901
|
+
const Xe = [
|
|
2902
2902
|
{
|
|
2903
2903
|
id: 0,
|
|
2904
2904
|
preName: "Prename0",
|
|
@@ -164772,7 +164772,7 @@ const je = [
|
|
|
164772
164772
|
friends: []
|
|
164773
164773
|
}
|
|
164774
164774
|
];
|
|
164775
|
-
function
|
|
164775
|
+
function Qr() {
|
|
164776
164776
|
const a = {
|
|
164777
164777
|
...new f(),
|
|
164778
164778
|
hoverColumnVisible: !1,
|
|
@@ -164794,7 +164794,7 @@ function Xr() {
|
|
|
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 = ce.buildTreeRows(
|
|
164797
|
+
], r = ce.buildTreeRows(Xe, "friends");
|
|
164798
164798
|
return N.createTableModel({
|
|
164799
164799
|
rows: r,
|
|
164800
164800
|
columnDefs: e,
|
|
@@ -164803,7 +164803,7 @@ function Xr() {
|
|
|
164803
164803
|
fixedRightColumnCount: 0
|
|
164804
164804
|
});
|
|
164805
164805
|
}
|
|
164806
|
-
const J = new Ze(34, 50, 0), Q = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),
|
|
164806
|
+
const J = new Ze(34, 50, 0), Q = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), Je = `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,27 +164814,27 @@ 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
|
-
),
|
|
164817
|
+
), Qe = 27.9, er = 77.4;
|
|
164818
164818
|
class ee {
|
|
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 rr(a, e, r, n, m) {
|
|
164824
164824
|
return (a - e) / (r - e) * (m - n) + n;
|
|
164825
164825
|
}
|
|
164826
|
-
function
|
|
164827
|
-
var n = new ee(255, 0, 0), m = new ee(0, 0, 255), s =
|
|
164826
|
+
function ar(a, e, r) {
|
|
164827
|
+
var n = new ee(255, 0, 0), m = new ee(0, 0, 255), s = rr(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 B("body",
|
|
164830
|
+
function ea() {
|
|
164831
|
+
const a = new B("body", Je, J.body), e = new Array(Q.length).fill(50), r = new B("header", [Q], 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: ar(Qe, er, i),
|
|
164838
164838
|
color: "#fff"
|
|
164839
164839
|
};
|
|
164840
164840
|
}
|
|
@@ -164845,7 +164845,7 @@ function Jr() {
|
|
|
164845
164845
|
columnSizes: e
|
|
164846
164846
|
});
|
|
164847
164847
|
}
|
|
164848
|
-
function
|
|
164848
|
+
function tr() {
|
|
164849
164849
|
return [
|
|
164850
164850
|
{
|
|
164851
164851
|
date: "2010-01-01T01:00:00",
|
|
@@ -217403,7 +217403,7 @@ function ar() {
|
|
|
217403
217403
|
}
|
|
217404
217404
|
];
|
|
217405
217405
|
}
|
|
217406
|
-
const Ce = 30,
|
|
217406
|
+
const Ce = 30, nr = 3, Le = tr(), C = {};
|
|
217407
217407
|
Le.forEach((a) => {
|
|
217408
217408
|
const [e, r] = a.date.split("T");
|
|
217409
217409
|
C[e] || (C[e] = {}), C[e][r.substring(0, 5)] = a;
|
|
@@ -217434,15 +217434,15 @@ const W = Object.keys(C), x = [
|
|
|
217434
217434
|
"04:00",
|
|
217435
217435
|
"05:00"
|
|
217436
217436
|
];
|
|
217437
|
-
function
|
|
217437
|
+
function mr() {
|
|
217438
217438
|
let a = 10, e = 0;
|
|
217439
217439
|
return Le.forEach((r) => {
|
|
217440
217440
|
a = Math.min(a, r.temperature), e = Math.max(e, r.temperature);
|
|
217441
217441
|
}), [a, e];
|
|
217442
217442
|
}
|
|
217443
|
-
const [re, ae] =
|
|
217444
|
-
function
|
|
217445
|
-
const a = new
|
|
217443
|
+
const [re, ae] = mr();
|
|
217444
|
+
function ra() {
|
|
217445
|
+
const a = new sr(), e = new ir(), r = [60, ...new Array(W.length).fill(nr)];
|
|
217446
217446
|
return N.createTableModel({
|
|
217447
217447
|
bodyAreaModel: a,
|
|
217448
217448
|
footerAreaModel: e,
|
|
@@ -217450,7 +217450,7 @@ function Qr() {
|
|
|
217450
217450
|
fixedLeftColumnCount: 1
|
|
217451
217451
|
});
|
|
217452
217452
|
}
|
|
217453
|
-
class
|
|
217453
|
+
class sr extends Y {
|
|
217454
217454
|
getRowCount() {
|
|
217455
217455
|
return x.length;
|
|
217456
217456
|
}
|
|
@@ -217481,7 +217481,7 @@ class mr extends Y {
|
|
|
217481
217481
|
};
|
|
217482
217482
|
}
|
|
217483
217483
|
}
|
|
217484
|
-
class
|
|
217484
|
+
class ir extends Y {
|
|
217485
217485
|
getRowCount() {
|
|
217486
217486
|
return 1;
|
|
217487
217487
|
}
|
|
@@ -217590,7 +217590,7 @@ const F = [
|
|
|
217590
217590
|
]
|
|
217591
217591
|
}
|
|
217592
217592
|
];
|
|
217593
|
-
function
|
|
217593
|
+
function aa() {
|
|
217594
217594
|
const e = A.buildGroupExts(F), r = A.buildColumnDefs(e), n = new le("header", F, r, 34);
|
|
217595
217595
|
console.info("headerGroups", F), console.info("columnDefs", r.map((i) => i.property));
|
|
217596
217596
|
const m = [
|
|
@@ -217617,7 +217617,7 @@ function ea() {
|
|
|
217617
217617
|
columnDefs: r
|
|
217618
217618
|
});
|
|
217619
217619
|
}
|
|
217620
|
-
const
|
|
217620
|
+
const dr = [
|
|
217621
217621
|
{
|
|
217622
217622
|
data: "Team A",
|
|
217623
217623
|
toggle: !0,
|
|
@@ -217638,7 +217638,7 @@ const ir = [
|
|
|
217638
217638
|
]
|
|
217639
217639
|
}
|
|
217640
217640
|
];
|
|
217641
|
-
function
|
|
217641
|
+
function ta(a = dr) {
|
|
217642
217642
|
const r = A.buildGroupExts(a), n = A.buildColumnDefs(r), m = new le("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 = [
|
|
@@ -217655,7 +217655,7 @@ function ra(a = ir) {
|
|
|
217655
217655
|
columnDefs: n
|
|
217656
217656
|
});
|
|
217657
217657
|
}
|
|
217658
|
-
function
|
|
217658
|
+
function yr() {
|
|
217659
217659
|
return [
|
|
217660
217660
|
{
|
|
217661
217661
|
id: 1,
|
|
@@ -217835,7 +217835,7 @@ function dr() {
|
|
|
217835
217835
|
}
|
|
217836
217836
|
];
|
|
217837
217837
|
}
|
|
217838
|
-
function
|
|
217838
|
+
function pr() {
|
|
217839
217839
|
return [
|
|
217840
217840
|
new t("firstName", "First Name", g),
|
|
217841
217841
|
new t("lastName", "Last Name"),
|
|
@@ -217861,7 +217861,7 @@ function yr() {
|
|
|
217861
217861
|
})
|
|
217862
217862
|
];
|
|
217863
217863
|
}
|
|
217864
|
-
function
|
|
217864
|
+
function ur() {
|
|
217865
217865
|
return {
|
|
217866
217866
|
...new f(),
|
|
217867
217867
|
hoverColumnVisible: !1,
|
|
@@ -217872,8 +217872,8 @@ function pr() {
|
|
|
217872
217872
|
}
|
|
217873
217873
|
};
|
|
217874
217874
|
}
|
|
217875
|
-
function
|
|
217876
|
-
const a =
|
|
217875
|
+
function na() {
|
|
217876
|
+
const a = ur(), e = yr(), r = pr();
|
|
217877
217877
|
return N.createTableModel({
|
|
217878
217878
|
rows: e,
|
|
217879
217879
|
columnDefs: r,
|
|
@@ -217881,10 +217881,10 @@ function aa() {
|
|
|
217881
217881
|
fixedLeftColumnCount: 0
|
|
217882
217882
|
});
|
|
217883
217883
|
}
|
|
217884
|
-
function
|
|
217884
|
+
function ma(a, e) {
|
|
217885
217885
|
a.rendererMap = new D(void 0, e, void 0);
|
|
217886
217886
|
}
|
|
217887
|
-
const
|
|
217887
|
+
const cr = [
|
|
217888
217888
|
{
|
|
217889
217889
|
id: 1,
|
|
217890
217890
|
city: "London",
|
|
@@ -218032,7 +218032,7 @@ const ur = [
|
|
|
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)), I = [
|
|
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")),
|
|
@@ -218060,7 +218060,7 @@ const ur = [
|
|
|
218060
218060
|
width: new l(175, "px"),
|
|
218061
218061
|
bodyRenderer: new ke()
|
|
218062
218062
|
})
|
|
218063
|
-
],
|
|
218063
|
+
], sa = I.length - 1, lr = {
|
|
218064
218064
|
...new f(),
|
|
218065
218065
|
hoverRowVisible: !1,
|
|
218066
218066
|
hoverColumnVisible: !1,
|
|
@@ -218072,22 +218072,22 @@ const ur = [
|
|
|
218072
218072
|
columnsDraggable: !1,
|
|
218073
218073
|
columnsResizable: !0
|
|
218074
218074
|
};
|
|
218075
|
-
function
|
|
218076
|
-
const a =
|
|
218075
|
+
function ia() {
|
|
218076
|
+
const a = lr.defaultRowHeights;
|
|
218077
218077
|
return N.createTableModel({
|
|
218078
|
-
headerAreaModel: new
|
|
218079
|
-
bodyAreaModel: new
|
|
218080
|
-
footerAreaModel: new
|
|
218081
|
-
columnDefs:
|
|
218078
|
+
headerAreaModel: new br(a.header),
|
|
218079
|
+
bodyAreaModel: new gr(a.body),
|
|
218080
|
+
footerAreaModel: new Nr(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 gr extends j {
|
|
218089
218089
|
constructor(e) {
|
|
218090
|
-
super("body",
|
|
218090
|
+
super("body", cr, I, e);
|
|
218091
218091
|
}
|
|
218092
218092
|
getRowspanAt(e, r) {
|
|
218093
218093
|
if (r === 0 || r == 1) {
|
|
@@ -218104,7 +218104,7 @@ class lr extends j {
|
|
|
218104
218104
|
return m;
|
|
218105
218105
|
}
|
|
218106
218106
|
}
|
|
218107
|
-
class
|
|
218107
|
+
class br extends B {
|
|
218108
218108
|
constructor(e) {
|
|
218109
218109
|
super(
|
|
218110
218110
|
"header",
|
|
@@ -218131,7 +218131,7 @@ class gr extends B {
|
|
|
218131
218131
|
return ["ge-font-weight-bold"];
|
|
218132
218132
|
}
|
|
218133
218133
|
}
|
|
218134
|
-
class
|
|
218134
|
+
class Nr extends B {
|
|
218135
218135
|
constructor(e) {
|
|
218136
218136
|
super(
|
|
218137
218137
|
"footer",
|
|
@@ -218146,7 +218146,7 @@ class br extends B {
|
|
|
218146
218146
|
return r === 2 ? ["ge-text-align-right", "ge-font-weight-bold"] : [];
|
|
218147
218147
|
}
|
|
218148
218148
|
}
|
|
218149
|
-
const
|
|
218149
|
+
const fr = [
|
|
218150
218150
|
{
|
|
218151
218151
|
id: "c8-34f1d5",
|
|
218152
218152
|
company: "Equicom",
|
|
@@ -220084,10 +220084,10 @@ const Nr = [
|
|
|
220084
220084
|
rating: 5
|
|
220085
220085
|
}
|
|
220086
220086
|
];
|
|
220087
|
-
function fr() {
|
|
220088
|
-
return Nr;
|
|
220089
|
-
}
|
|
220090
220087
|
function Tr() {
|
|
220088
|
+
return fr;
|
|
220089
|
+
}
|
|
220090
|
+
function or() {
|
|
220091
220091
|
return [
|
|
220092
220092
|
t.create({
|
|
220093
220093
|
property: "company",
|
|
@@ -220162,7 +220162,7 @@ function Tr() {
|
|
|
220162
220162
|
})
|
|
220163
220163
|
];
|
|
220164
220164
|
}
|
|
220165
|
-
function
|
|
220165
|
+
function hr() {
|
|
220166
220166
|
const a = new h("row", "multi");
|
|
220167
220167
|
return {
|
|
220168
220168
|
...new f(),
|
|
@@ -220175,8 +220175,8 @@ function or() {
|
|
|
220175
220175
|
getSelectionModel: () => a
|
|
220176
220176
|
};
|
|
220177
220177
|
}
|
|
220178
|
-
function
|
|
220179
|
-
const a =
|
|
220178
|
+
function da() {
|
|
220179
|
+
const a = hr(), e = Tr(), r = or();
|
|
220180
220180
|
return new o(
|
|
220181
220181
|
N.createTableModel({
|
|
220182
220182
|
rows: e,
|
|
@@ -220211,7 +220211,7 @@ function te() {
|
|
|
220211
220211
|
})
|
|
220212
220212
|
];
|
|
220213
220213
|
}
|
|
220214
|
-
function
|
|
220214
|
+
function Sr() {
|
|
220215
220215
|
const a = new h();
|
|
220216
220216
|
return {
|
|
220217
220217
|
...new f(),
|
|
@@ -220224,8 +220224,8 @@ function hr() {
|
|
|
220224
220224
|
getSelectionModel: () => a
|
|
220225
220225
|
};
|
|
220226
220226
|
}
|
|
220227
|
-
function
|
|
220228
|
-
const r =
|
|
220227
|
+
function ya(a = 1e6, e = !1) {
|
|
220228
|
+
const r = Sr(), n = e ? [new xe({ format: (i) => i.toLocaleString("en-US") }), ...te()] : te(), m = e ? 1 : 0, s = new Cr(a, m);
|
|
220229
220229
|
return new o(N.createTableModel({
|
|
220230
220230
|
bodyAreaModel: s,
|
|
220231
220231
|
columnDefs: n,
|
|
@@ -220233,7 +220233,7 @@ function ia(a = 1e6, e = !1) {
|
|
|
220233
220233
|
fixedLeftColumnCount: m
|
|
220234
220234
|
}), r);
|
|
220235
220235
|
}
|
|
220236
|
-
class
|
|
220236
|
+
class Cr extends Y {
|
|
220237
220237
|
/**
|
|
220238
220238
|
* @param rowcount - number of rows
|
|
220239
220239
|
* @param columnOffset - columns in front of the data columns (1 for a RowNumberColumnDef)
|
|
@@ -220261,7 +220261,7 @@ class Sr extends Y {
|
|
|
220261
220261
|
return e * this.getRowHeight(0);
|
|
220262
220262
|
}
|
|
220263
220263
|
}
|
|
220264
|
-
const
|
|
220264
|
+
const Lr = [
|
|
220265
220265
|
{
|
|
220266
220266
|
id: "f0-bfbecb",
|
|
220267
220267
|
company: "Medmex",
|
|
@@ -221733,10 +221733,10 @@ const Cr = [
|
|
|
221733
221733
|
f2: 28.55122067
|
|
221734
221734
|
}
|
|
221735
221735
|
];
|
|
221736
|
-
function
|
|
221737
|
-
return
|
|
221736
|
+
function Pr(a = 75) {
|
|
221737
|
+
return Lr.slice(0, a - 1);
|
|
221738
221738
|
}
|
|
221739
|
-
function
|
|
221739
|
+
function Gr(a) {
|
|
221740
221740
|
return [
|
|
221741
221741
|
t.create({
|
|
221742
221742
|
property: "company",
|
|
@@ -221897,7 +221897,7 @@ function Pr(a) {
|
|
|
221897
221897
|
})
|
|
221898
221898
|
];
|
|
221899
221899
|
}
|
|
221900
|
-
function
|
|
221900
|
+
function Zr(a) {
|
|
221901
221901
|
return {
|
|
221902
221902
|
...new f(),
|
|
221903
221903
|
hoverColumnVisible: !1,
|
|
@@ -221909,17 +221909,17 @@ function Gr(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 = Zr(a);
|
|
221914
221914
|
e = Math.max(10, Math.min(75, e));
|
|
221915
|
-
const m =
|
|
221915
|
+
const m = Pr(e), s = Gr(r);
|
|
221916
221916
|
return new o(N.createTableModel({
|
|
221917
221917
|
rows: m,
|
|
221918
221918
|
columnDefs: s,
|
|
221919
221919
|
tableOptions: n
|
|
221920
221920
|
}), n);
|
|
221921
221921
|
}
|
|
221922
|
-
const
|
|
221922
|
+
const zr = [
|
|
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
|
+
], wr = [
|
|
221936
221936
|
["Laptop", "Hardware", 1299],
|
|
221937
221937
|
["Monitor", "Hardware", 349],
|
|
221938
221938
|
["Keyboard", "Accessories", 89],
|
|
@@ -221942,7 +221942,7 @@ const Zr = [
|
|
|
221942
221942
|
["Cloud Credits", "Services", 500],
|
|
221943
221943
|
["Support Plan", "Services", 990]
|
|
221944
221944
|
];
|
|
221945
|
-
function
|
|
221945
|
+
function vr(a) {
|
|
221946
221946
|
return () => {
|
|
221947
221947
|
a |= 0, a = a + 1831565813 | 0;
|
|
221948
221948
|
let e = Math.imul(a ^ a >>> 15, 1 | a);
|
|
@@ -221950,9 +221950,9 @@ function wr(a) {
|
|
|
221950
221950
|
};
|
|
221951
221951
|
}
|
|
221952
221952
|
function V(a, e = 42) {
|
|
221953
|
-
const r =
|
|
221953
|
+
const r = vr(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(
|
|
221955
|
+
const [i, p] = n(zr), [d, u, b] = n(wr), T = 1 + Math.floor(r() * 20), w = Math.round(b * (0.85 + r() * 0.3) * 100) / 100;
|
|
221956
221956
|
m[s] = { id: s + 1, country: i, city: p, product: d, category: u, quantity: T, price: w, total: Math.round(T * w * 100) / 100 };
|
|
221957
221957
|
}
|
|
221958
221958
|
return m;
|
|
@@ -221963,14 +221963,14 @@ function Pe() {
|
|
|
221963
221963
|
t.create({ property: "id", headerLabel: "Order", width: c, ...U }),
|
|
221964
221964
|
t.create({ property: "country", headerLabel: "Country", width: L, sortable: y }),
|
|
221965
221965
|
t.create({ property: "city", headerLabel: "City", width: L, sortable: y }),
|
|
221966
|
-
t.create({ property: "product", headerLabel: "Product", width:
|
|
221966
|
+
t.create({ property: "product", headerLabel: "Product", width: R, sortable: y }),
|
|
221967
221967
|
t.create({ property: "category", headerLabel: "Category", width: L, sortable: y }),
|
|
221968
221968
|
t.create({ property: "quantity", headerLabel: "Qty", width: c, ...U }),
|
|
221969
221969
|
t.create({ property: "price", headerLabel: "Ø Price", width: K, ...U }),
|
|
221970
221970
|
t.create({ property: "total", headerLabel: "Total", width: L, ...U })
|
|
221971
221971
|
];
|
|
221972
221972
|
}
|
|
221973
|
-
function
|
|
221973
|
+
function ua(a = 5e4, e = ["country", "city"], r = 1) {
|
|
221974
221974
|
const n = new h("row", "multi"), m = {
|
|
221975
221975
|
...new f(),
|
|
221976
221976
|
hoverColumnVisible: !1,
|
|
@@ -221985,23 +221985,23 @@ function ya(a = 5e4, e = ["country", "city"], r = 1) {
|
|
|
221985
221985
|
});
|
|
221986
221986
|
return new o(s, m);
|
|
221987
221987
|
}
|
|
221988
|
-
const
|
|
221989
|
-
class
|
|
221988
|
+
const kr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
221989
|
+
class Dr {
|
|
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 u = p.createElement("div");
|
|
221995
|
-
p.addClass(u, "ge-table-label"), p.appendChild(u, p.createText(
|
|
221995
|
+
p.addClass(u, "ge-table-label"), p.appendChild(u, p.createText(kr.format(i))), p.appendChild(d, u), p.appendChild(e, d);
|
|
221996
221996
|
}
|
|
221997
221997
|
}
|
|
221998
221998
|
}
|
|
221999
|
-
function
|
|
221999
|
+
function ca(a = 5e4) {
|
|
222000
222000
|
const e = new h("range", "multi"), r = {
|
|
222001
222001
|
...new f(),
|
|
222002
222002
|
hoverColumnVisible: !1,
|
|
222003
222003
|
getSelectionModel: () => e
|
|
222004
|
-
}, n = Pe(), m = new
|
|
222004
|
+
}, n = Pe(), m = new Dr();
|
|
222005
222005
|
for (const i of n)
|
|
222006
222006
|
(i.property === "price" || i.property === "total") && (i.rendererMap.body = m);
|
|
222007
222007
|
const s = N.createTableModel({
|
|
@@ -222023,33 +222023,33 @@ function pa(a = 5e4) {
|
|
|
222023
222023
|
});
|
|
222024
222024
|
return new o(s, r);
|
|
222025
222025
|
}
|
|
222026
|
-
function
|
|
222026
|
+
function xr(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 =
|
|
222033
|
+
function Ur(a, e = 42) {
|
|
222034
|
+
const r = xr(e + 1), n = Date.UTC(2024, 0, 1), m = 3 * 365 + 1;
|
|
222035
222035
|
return V(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 qr = { name: "year", label: "Year", value: (a) => Number(a.date.slice(0, 4)) }, Mr = {
|
|
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 la(a = 5e4, e = [qr, Mr], r = 0) {
|
|
222047
222047
|
const n = new h("range", "multi"), m = {
|
|
222048
222048
|
...new f(),
|
|
222049
222049
|
hoverColumnVisible: !1,
|
|
222050
222050
|
getSelectionModel: () => n
|
|
222051
222051
|
}, s = Me.createTableModel({
|
|
222052
|
-
rows:
|
|
222052
|
+
rows: Ur(a),
|
|
222053
222053
|
rowFields: [{ value: "country", label: "Country" }, { value: "city", label: "City" }],
|
|
222054
222054
|
columnFields: e,
|
|
222055
222055
|
values: [
|
|
@@ -222063,8 +222063,8 @@ function ua(a = 5e4, e = [Ur, qr], r = 0) {
|
|
|
222063
222063
|
});
|
|
222064
222064
|
return new o(s, m);
|
|
222065
222065
|
}
|
|
222066
|
-
const
|
|
222067
|
-
class
|
|
222066
|
+
const Br = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
|
|
222067
|
+
class Ar {
|
|
222068
222068
|
render(e, r, n, m, s, i, p) {
|
|
222069
222069
|
if (i == null || i === "")
|
|
222070
222070
|
return;
|
|
@@ -222072,11 +222072,11 @@ class Br {
|
|
|
222072
222072
|
p.addClass(d, "ge-table-label-div");
|
|
222073
222073
|
const u = p.createElement("div");
|
|
222074
222074
|
p.addClass(u, "ge-table-label");
|
|
222075
|
-
const b = typeof i == "number" ?
|
|
222075
|
+
const b = typeof i == "number" ? Br.format(i) : `${i}`;
|
|
222076
222076
|
p.appendChild(u, p.createText(b)), p.appendChild(d, u), p.appendChild(e, d);
|
|
222077
222077
|
}
|
|
222078
222078
|
}
|
|
222079
|
-
function
|
|
222079
|
+
function Ir(a, e = 8) {
|
|
222080
222080
|
const r = [0, 0, 0, 5, 5, 10, 15];
|
|
222081
222081
|
return V(a, e).map((n, m) => ({
|
|
222082
222082
|
id: n.id,
|
|
@@ -222094,11 +222094,11 @@ const S = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-tabl
|
|
|
222094
222094
|
custom: 'IF([discount] > 0, ROUND([gross] / [quantity], 2), "–")'
|
|
222095
222095
|
};
|
|
222096
222096
|
function Rr(a = q.custom) {
|
|
222097
|
-
const e = new
|
|
222097
|
+
const e = new Ar();
|
|
222098
222098
|
return [
|
|
222099
222099
|
t.create({ property: "id", headerLabel: "Line", width: z, ...S, sortable: y }),
|
|
222100
222100
|
t.create({ property: "country", headerLabel: "Country", width: Be, sortable: y }),
|
|
222101
|
-
t.create({ property: "product", headerLabel: "Product", width:
|
|
222101
|
+
t.create({ property: "product", headerLabel: "Product", width: R, sortable: y }),
|
|
222102
222102
|
t.create({
|
|
222103
222103
|
property: "quantity",
|
|
222104
222104
|
headerLabel: "Qty",
|
|
@@ -222185,12 +222185,12 @@ function Rr(a = q.custom) {
|
|
|
222185
222185
|
})
|
|
222186
222186
|
];
|
|
222187
222187
|
}
|
|
222188
|
-
function
|
|
222188
|
+
function ga(a = 2e3) {
|
|
222189
222189
|
const e = {
|
|
222190
222190
|
...new f(),
|
|
222191
222191
|
hoverColumnVisible: !1
|
|
222192
222192
|
}, r = N.createTableModel({
|
|
222193
|
-
rows:
|
|
222193
|
+
rows: Ir(a),
|
|
222194
222194
|
columnDefs: Rr(),
|
|
222195
222195
|
footerAggregates: {
|
|
222196
222196
|
rows: [{ label: (n) => `Sum · ${n.toLocaleString("en-US")} lines`, aggregates: { net: "sum", vat: "sum", gross: "sum" } }],
|
|
@@ -222223,7 +222223,7 @@ const k = [
|
|
|
222223
222223
|
"Refactor date utils",
|
|
222224
222224
|
"Security headers"
|
|
222225
222225
|
], ne = ["Anna", "Ben", "Chen", "Dana", "Emil"], me = ["todo", "doing", "todo", "done", "todo"];
|
|
222226
|
-
function
|
|
222226
|
+
function Or(a = 20, e = !1) {
|
|
222227
222227
|
return Array.from({ length: a }, (r, n) => ({
|
|
222228
222228
|
id: n + 1,
|
|
222229
222229
|
title: n < k.length ? k[n] : `${k[n % k.length]} #${Math.floor(n / k.length) + 1}`,
|
|
@@ -222233,7 +222233,7 @@ function Ir(a = 20, e = !1) {
|
|
|
222233
222233
|
locked: e && n === 0
|
|
222234
222234
|
}));
|
|
222235
222235
|
}
|
|
222236
|
-
function
|
|
222236
|
+
function ba(a = Or(20, !0), e = {}) {
|
|
222237
222237
|
const r = new h("row", "multi"), n = new H("cell"), m = {
|
|
222238
222238
|
...new f(),
|
|
222239
222239
|
hoverColumnVisible: !1,
|
|
@@ -222260,7 +222260,7 @@ function la(a = Ir(20, !0), e = {}) {
|
|
|
222260
222260
|
});
|
|
222261
222261
|
return new o(s, m);
|
|
222262
222262
|
}
|
|
222263
|
-
const
|
|
222263
|
+
const Hr = [
|
|
222264
222264
|
{
|
|
222265
222265
|
id: 0,
|
|
222266
222266
|
preName: "Prename0",
|
|
@@ -384134,7 +384134,7 @@ const Or = [
|
|
|
384134
384134
|
friends: []
|
|
384135
384135
|
}
|
|
384136
384136
|
];
|
|
384137
|
-
function
|
|
384137
|
+
function Vr(a = !1) {
|
|
384138
384138
|
const e = new h("range", "multi");
|
|
384139
384139
|
return a && (e.addSelection(new v(0, 0, 0, 2)), e.addSelection(new v(2, 1, 2, 2)), e.addSelection(new v(1, 5, 6, 7)), e.addSelection(new v(0, 8, 0, 8)), e.addSelection(new v(5, 6, 10, 10))), {
|
|
384140
384140
|
...new f(),
|
|
@@ -384155,7 +384155,7 @@ function Hr(a = !1) {
|
|
|
384155
384155
|
getSelectionModel: () => e
|
|
384156
384156
|
};
|
|
384157
384157
|
}
|
|
384158
|
-
function
|
|
384158
|
+
function $r() {
|
|
384159
384159
|
return [
|
|
384160
384160
|
new t("lastName", "Last Name", he),
|
|
384161
384161
|
new t("preName", "Pre Name", g),
|
|
@@ -384173,7 +384173,7 @@ function Vr() {
|
|
|
384173
384173
|
"Birthday",
|
|
384174
384174
|
c,
|
|
384175
384175
|
void 0,
|
|
384176
|
-
|
|
384176
|
+
Ie.bodyRenderer(new O())
|
|
384177
384177
|
),
|
|
384178
384178
|
t.create({
|
|
384179
384179
|
property: "gender",
|
|
@@ -384181,7 +384181,7 @@ function Vr() {
|
|
|
384181
384181
|
width: Oe,
|
|
384182
384182
|
bodyRenderer: new ue(),
|
|
384183
384183
|
editable: y,
|
|
384184
|
-
getEditRenderer: () => new
|
|
384184
|
+
getEditRenderer: () => new Re([
|
|
384185
384185
|
new X("female", "♀"),
|
|
384186
384186
|
new X("male", "♂")
|
|
384187
384187
|
])
|
|
@@ -384194,12 +384194,12 @@ function Vr() {
|
|
|
384194
384194
|
new t("id", "ID", P)
|
|
384195
384195
|
];
|
|
384196
384196
|
}
|
|
384197
|
-
function
|
|
384198
|
-
const e =
|
|
384197
|
+
function Na(a = !1) {
|
|
384198
|
+
const e = Vr(a), r = $r();
|
|
384199
384199
|
for (const s of r)
|
|
384200
384200
|
s.sortable = y, s.editable = y;
|
|
384201
384201
|
r[0].editable = _;
|
|
384202
|
-
const n = ce.buildTreeRows(
|
|
384202
|
+
const n = ce.buildTreeRows(Hr, "friends"), m = N.createTableModel({
|
|
384203
384203
|
rows: n,
|
|
384204
384204
|
columnDefs: r,
|
|
384205
384205
|
tableOptions: e,
|
|
@@ -384229,7 +384229,7 @@ const M = [
|
|
|
384229
384229
|
["Tea selection", "Kitchen"],
|
|
384230
384230
|
["Water bottle", "Kitchen"]
|
|
384231
384231
|
];
|
|
384232
|
-
function
|
|
384232
|
+
function Fr(a = 16) {
|
|
384233
384233
|
return Array.from({ length: a }, (e, r) => {
|
|
384234
384234
|
const [n, m] = M[r % M.length];
|
|
384235
384235
|
return {
|
|
@@ -384244,7 +384244,7 @@ function $r(a = 16) {
|
|
|
384244
384244
|
};
|
|
384245
384245
|
});
|
|
384246
384246
|
}
|
|
384247
|
-
function
|
|
384247
|
+
function fa(a = Fr(), e = !0, r = !0) {
|
|
384248
384248
|
const n = new h("range", "multi"), m = new H("cell"), s = {
|
|
384249
384249
|
...new f(),
|
|
384250
384250
|
hoverColumnVisible: !1,
|
|
@@ -384331,7 +384331,7 @@ const se = [
|
|
|
384331
384331
|
["Coffee beans", 15.5],
|
|
384332
384332
|
["Water bottle", 19.9]
|
|
384333
384333
|
];
|
|
384334
|
-
function
|
|
384334
|
+
function Er(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++) {
|
|
@@ -384354,7 +384354,7 @@ function Fr(a = 1e3) {
|
|
|
384354
384354
|
}
|
|
384355
384355
|
return n;
|
|
384356
384356
|
}
|
|
384357
|
-
function
|
|
384357
|
+
function _r(a) {
|
|
384358
384358
|
return N.createTableModel({
|
|
384359
384359
|
rows: a.items,
|
|
384360
384360
|
columnDefs: [
|
|
@@ -384365,11 +384365,11 @@ function Er(a) {
|
|
|
384365
384365
|
]
|
|
384366
384366
|
});
|
|
384367
384367
|
}
|
|
384368
|
-
function
|
|
384368
|
+
function Ta(a = Er(1e5), e = {}) {
|
|
384369
384369
|
const r = N.createTableModel({
|
|
384370
384370
|
rows: a,
|
|
384371
384371
|
columnDefs: [
|
|
384372
|
-
t.create({ property: "orderNo", headerLabel: "Order", width:
|
|
384372
|
+
t.create({ property: "orderNo", headerLabel: "Order", width: R }),
|
|
384373
384373
|
t.create({ property: "date", headerLabel: "Date", width: g, sortable: () => !0 }),
|
|
384374
384374
|
t.create({ property: "customer", headerLabel: "Customer", width: Z, sortable: () => !0 }),
|
|
384375
384375
|
t.create({ property: "city", headerLabel: "City", width: g, sortable: () => !0 }),
|
|
@@ -384387,7 +384387,7 @@ function Na(a = Fr(1e5), e = {}) {
|
|
|
384387
384387
|
detailHeight: 222,
|
|
384388
384388
|
// header + 5 rows, borders, padding of the detail cell
|
|
384389
384389
|
detailRenderer: (i, p, d) => {
|
|
384390
|
-
d.createTable({ tableModel:
|
|
384390
|
+
d.createTable({ tableModel: _r(p) });
|
|
384391
384391
|
},
|
|
384392
384392
|
getRowId: (i) => i.id,
|
|
384393
384393
|
...e
|
|
@@ -384417,15 +384417,15 @@ const E = [
|
|
|
384417
384417
|
["الرباط", "المغرب", "RBA"],
|
|
384418
384418
|
["الدار البيضاء", "المغرب", "CMN"]
|
|
384419
384419
|
], pe = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"];
|
|
384420
|
-
function
|
|
384420
|
+
function Kr(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 Wr(a = 2e3, e = 7) {
|
|
384428
|
+
const r = Kr(e);
|
|
384429
384429
|
return Array.from({ length: a }, (n, m) => {
|
|
384430
384430
|
const [s, i, p] = E[m % E.length], d = 5e3 + Math.round(r() * 25e3), u = () => Math.round(d * (0.7 + r() * 0.6));
|
|
384431
384431
|
return {
|
|
@@ -384448,7 +384448,7 @@ function Kr(a = 2e3, e = 7) {
|
|
|
384448
384448
|
};
|
|
384449
384449
|
});
|
|
384450
384450
|
}
|
|
384451
|
-
function
|
|
384451
|
+
function oa(a = "rtl", e = Wr()) {
|
|
384452
384452
|
const r = new h("range", "multi"), n = new H("cell"), m = {
|
|
384453
384453
|
...new f(),
|
|
384454
384454
|
direction: a,
|
|
@@ -384493,57 +384493,83 @@ function fa(a = "rtl", e = Kr()) {
|
|
|
384493
384493
|
});
|
|
384494
384494
|
return new o(u, m);
|
|
384495
384495
|
}
|
|
384496
|
+
function Yr() {
|
|
384497
|
+
return [
|
|
384498
|
+
["Item", "Qty", "Unit price", "Discount", "Net", "Note"],
|
|
384499
|
+
['Laptop 14"', 4, 1299, 0.05, "=B2*C2*(1-D2)", ""],
|
|
384500
|
+
["Docking station", 4, 189, 0, "=B3*C3*(1-D3)", ""],
|
|
384501
|
+
['Monitor 27"', 8, 349, 0.1, "=B4*C4*(1-D4)", '=IF(D4>=0.1,"volume discount","")'],
|
|
384502
|
+
["Keyboard set", 4, 79, 0, "=B5*C5*(1-D5)", ""],
|
|
384503
|
+
["Setup (hours)", 6, 95, 0, "=B6*C6*(1-D6)", ""],
|
|
384504
|
+
["", "", "", "", "", ""],
|
|
384505
|
+
["Subtotal", "=SUM(B2:B6)", "", "", "=SUM(E2:E6)", '=COUNT(B2:B6)&" positions"'],
|
|
384506
|
+
["Shipping", "", "", "", "=IF(E8>=1000,0,49)", '=IF(E9=0,"free from 1,000","")'],
|
|
384507
|
+
["VAT 19 %", "", "", "", "=ROUND((E8+E9)*0.19,2)", ""],
|
|
384508
|
+
["Total", "", "", "", "=E8+E9+E10", ""]
|
|
384509
|
+
];
|
|
384510
|
+
}
|
|
384511
|
+
function ha(a = {}) {
|
|
384512
|
+
return $e.create({
|
|
384513
|
+
data: Yr(),
|
|
384514
|
+
rowCount: 100,
|
|
384515
|
+
columnCount: 8,
|
|
384516
|
+
columnWidth: 130,
|
|
384517
|
+
...a
|
|
384518
|
+
});
|
|
384519
|
+
}
|
|
384496
384520
|
export {
|
|
384497
|
-
|
|
384498
|
-
|
|
384499
|
-
|
|
384500
|
-
|
|
384521
|
+
sa as COL_IDX_UPDATED_AT,
|
|
384522
|
+
Fe as ChangePercentageRenderer,
|
|
384523
|
+
We as CirculatingSupplyRenderer,
|
|
384524
|
+
Ye as CoinIconRenderer,
|
|
384501
384525
|
q as INVOICE_FORMULAS,
|
|
384502
|
-
|
|
384503
|
-
|
|
384504
|
-
|
|
384505
|
-
|
|
384506
|
-
|
|
384507
|
-
|
|
384508
|
-
|
|
384509
|
-
|
|
384510
|
-
|
|
384511
|
-
|
|
384512
|
-
|
|
384513
|
-
|
|
384526
|
+
Cr as LargeBodyModel,
|
|
384527
|
+
_e as NameAndSymbolRenderer,
|
|
384528
|
+
Ee as UsdRenderer,
|
|
384529
|
+
Ke as Volumn24hRenderer,
|
|
384530
|
+
ma as applyBodyRenderer,
|
|
384531
|
+
ca as createAggregationModelAndOptions,
|
|
384532
|
+
pr as createColumnDefs,
|
|
384533
|
+
Xr as createCryptoModelAndOptions,
|
|
384534
|
+
ga as createFormulaModelAndOptions,
|
|
384535
|
+
aa as createHeadergroupModel,
|
|
384536
|
+
ea as createHeatMapModel,
|
|
384537
|
+
ra as createHeatMapSeattleModel,
|
|
384514
384538
|
Rr as createInvoiceColumnDefs,
|
|
384515
|
-
|
|
384516
|
-
|
|
384517
|
-
|
|
384518
|
-
|
|
384519
|
-
|
|
384520
|
-
|
|
384521
|
-
|
|
384522
|
-
|
|
384523
|
-
|
|
384524
|
-
|
|
384539
|
+
ya as createLargeModelAndOptions,
|
|
384540
|
+
pa as createManyTypesModelAndOptions,
|
|
384541
|
+
Ta as createMasterDetailModelAndOptions,
|
|
384542
|
+
_r as createOrderItemsModel,
|
|
384543
|
+
da as createOrderModelAndOptions,
|
|
384544
|
+
la as createPivotModelAndOptions,
|
|
384545
|
+
fa as createPriceListModelAndOptions,
|
|
384546
|
+
ba as createRowDragModelAndOptions,
|
|
384547
|
+
ua as createRowGroupModelAndOptions,
|
|
384548
|
+
oa as createRtlCitiesModelAndOptions,
|
|
384525
384549
|
Pe as createSalesOrderColumnDefs,
|
|
384526
|
-
|
|
384527
|
-
|
|
384528
|
-
|
|
384529
|
-
|
|
384530
|
-
|
|
384531
|
-
|
|
384532
|
-
|
|
384533
|
-
|
|
384534
|
-
|
|
384535
|
-
|
|
384536
|
-
|
|
384537
|
-
|
|
384538
|
-
|
|
384539
|
-
|
|
384540
|
-
|
|
384550
|
+
na as createSimplePersonModel,
|
|
384551
|
+
Yr as createSpreadsheetQuoteData,
|
|
384552
|
+
ha as createSpreadsheetQuoteModelAndOptions,
|
|
384553
|
+
ur as createTableOptions,
|
|
384554
|
+
yr as createTableRows,
|
|
384555
|
+
ta as createTeamHeadergroupModel,
|
|
384556
|
+
ia as createTimeTableModel,
|
|
384557
|
+
$r as createTreePeopleColumnDefs,
|
|
384558
|
+
Na as createTreePeopleModelAndOptions,
|
|
384559
|
+
Vr as createTreePeopleTableOptions,
|
|
384560
|
+
je as cryptoData,
|
|
384561
|
+
cr as data,
|
|
384562
|
+
Ir as generateInvoiceLines,
|
|
384563
|
+
Er as generateMasterOrders,
|
|
384564
|
+
Ur as generatePivotOrders,
|
|
384565
|
+
Fr as generatePriceItems,
|
|
384566
|
+
Wr as generateRtlCitySales,
|
|
384541
384567
|
V as generateSalesOrders,
|
|
384542
|
-
|
|
384543
|
-
|
|
384544
|
-
|
|
384545
|
-
|
|
384546
|
-
|
|
384547
|
-
|
|
384548
|
-
|
|
384568
|
+
Jr as generateSimpleModel,
|
|
384569
|
+
Or as generateTasks,
|
|
384570
|
+
Qr as generateTreeCheckboxModel,
|
|
384571
|
+
Mr as pivotQuarter,
|
|
384572
|
+
qr as pivotYear,
|
|
384573
|
+
lr as tableOptions,
|
|
384574
|
+
dr as teamHeaderGroups
|
|
384549
384575
|
};
|