@guiexpert/demo-table-models 1.1.97 → 1.1.98

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.js CHANGED
@@ -1,81 +1,81 @@
1
- import { ColumnDef as t, px60 as L, px120 as g, px100 as u, px160 as R, px200 as Z, px140 as P, TableOptions as N, TableModelAndOptions as T, TableFactory as b, Size as c, AreaObjectMap as k, DateToIntlDDMMYYYYCellRenderer as O, MaleFemaleToIconCellRenderer as ye, TreeFactory as pe, DefaultRowHeights as Le, AreaModelArrayOfArrays as B, AreaModel as K, ColorRgb as V, ThreeColorGradientArg as Pe, GeCssColorUtil as Ge, CellgroupFactory as A, AreaModelCellGroups as ue, AreaModelObjectArrayWithColumndefs as W, px300 as ce, px150 as le, px250 as Ze, TrueFalseCellRenderer as ge, DateToTecCellRenderer as ze, SelectionModel as S, TrueFn as y, CheckboxBooleanPropertyCellRenderer as be, px90 as z, ProgressBarCellRenderer as Ne, StarRatingCellRenderer as fe, NumberCellProgressBarCellRenderer as we, RowNumberColumnDef as ve, FalseFn as F, px220 as Te, PositiveAndNegativeNumberRenderer as ke, px80 as oe, RowGroupFactory as De, px110 as E, PivotFactory as xe, px130 as Ue, editInputPipeForNumber as G, FocusModel as Y, NumberCellRenderer as qe, Renderer as Me, SelectCellRenderer as Be, px50 as Ae, ValueLabel as j, px70 as Ie, CellRange as w, AutoRestoreOptions as Re } from "@guiexpert/table";
2
- class Oe {
3
- render(e, r, n, m, s, d, p) {
4
- if (d) {
5
- const i = Number(d);
6
- i < 0 ? (e.innerHTML = "▾ " + i.toFixed(2) + "%", p.addClass(e, "ge-positive-text-color")) : (e.innerHTML = "▴ " + i.toFixed(2) + "%", p.addClass(e, "ge-negative-text-color"));
1
+ import { ColumnDef as t, px60 as P, px120 as g, px100 as c, px160 as I, 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 Re, SelectCellRenderer as Ie, px50 as Oe, ValueLabel as X, px70 as He, CellRange as v, AutoRestoreOptions as Ve } from "@guiexpert/table";
2
+ class $e {
3
+ render(e, r, n, m, s, i, p) {
4
+ if (i) {
5
+ const d = Number(i);
6
+ d < 0 ? (e.innerHTML = "▾ " + d.toFixed(2) + "%", p.addClass(e, "ge-positive-text-color")) : (e.innerHTML = "▴ " + d.toFixed(2) + "%", p.addClass(e, "ge-negative-text-color"));
7
7
  }
8
8
  }
9
9
  }
10
- class He {
10
+ class Fe {
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, d, p) {
15
- if (d) {
16
- const i = Number(d);
17
- e.innerText = this.formatter.format(i);
14
+ render(e, r, n, m, s, i, p) {
15
+ if (i) {
16
+ const d = Number(i);
17
+ e.innerText = this.formatter.format(d);
18
18
  }
19
19
  }
20
20
  }
21
- class Ve {
22
- render(e, r, n, m, s, d, p) {
23
- const i = s.getRowByIndex(r);
24
- if (i) {
25
- const l = i.name ?? i.symbol;
21
+ class Ee {
22
+ render(e, r, n, m, s, i, p) {
23
+ const d = s.getRowByIndex(r);
24
+ if (d) {
25
+ const u = d.name ?? d.symbol;
26
26
  e.innerHTML = `
27
27
  <div style="line-height: 1.2;padding: 10px 0 0 10px;">
28
- ${l}<br>
29
- ${i.symbol}
28
+ ${u}<br>
29
+ ${d.symbol}
30
30
  </div>
31
31
  `;
32
32
  }
33
33
  }
34
34
  }
35
- class $e {
35
+ class _e {
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, d, p) {
40
- const i = s.getRowByIndex(r);
41
- if (i) {
42
- const l = this.formatterUsd.format(i.volUsd), f = this.formatter.format(i.volBtc);
39
+ render(e, r, n, m, s, i, p) {
40
+ const d = s.getRowByIndex(r);
41
+ if (d) {
42
+ const u = this.formatterUsd.format(d.volUsd), b = this.formatter.format(d.volBtc);
43
43
  e.innerHTML = `
44
44
  <div style="line-height: 1.2;padding: 10px 0 0 10px;">
45
- ${l}<br>
46
- ${f} BTC
45
+ ${u}<br>
46
+ ${b} BTC
47
47
  </div>
48
48
  `;
49
49
  }
50
50
  }
51
51
  }
52
- class Fe {
52
+ class Ke {
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, d, p) {
57
- const i = s.getRowByIndex(r);
58
- if (i) {
59
- const l = this.formatter.format(i.circulatingSupply), f = i.maxSupply, C = [];
60
- if (C.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), C.push(l), C.push("<br>"), f) {
61
- const D = this.maxWidth * i.circulatingSupply / f;
62
- C.push(`
56
+ render(e, r, n, m, s, i, p) {
57
+ const d = s.getRowByIndex(r);
58
+ if (d) {
59
+ const u = this.formatter.format(d.circulatingSupply), b = d.maxSupply, T = [];
60
+ if (T.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), T.push(u), T.push("<br>"), b) {
61
+ const w = this.maxWidth * d.circulatingSupply / b;
62
+ T.push(`
63
63
  <div style="width: ${this.maxWidth}px;height: 5px;background-color: #eee;margin:10px 0 0 10px">
64
- <div style="width: ${D}px;height: 5px;background-color: #ccc;"></div>
64
+ <div style="width: ${w}px;height: 5px;background-color: #ccc;"></div>
65
65
  </div>
66
66
  `);
67
67
  }
68
- C.push("</div>"), e.innerHTML = C.join("");
68
+ T.push("</div>"), e.innerHTML = T.join("");
69
69
  }
70
70
  }
71
71
  }
72
- class Ee {
73
- render(e, r, n, m, s, d, p) {
74
- const i = s.getRowByIndex(r);
75
- i != null && i.id && (e.innerHTML = `<img src="https://s2.coinmarketcap.com/static/img/coins/64x64/${i.id}.png" style="width:30px;height: 30px;margin: 10px 10px 0 20px;">`);
72
+ class We {
73
+ render(e, r, n, m, s, i, p) {
74
+ const d = s.getRowByIndex(r);
75
+ d != null && d.id && (e.innerHTML = `<img src="https://s2.coinmarketcap.com/static/img/coins/64x64/${d.id}.png" style="width:30px;height: 30px;margin: 10px 10px 0 20px;">`);
76
76
  }
77
77
  }
78
- const _e = [
78
+ const Ye = [
79
79
  {
80
80
  id: 1,
81
81
  name: "Bitcoin",
@@ -2810,14 +2810,14 @@ const _e = [
2810
2810
  change90d: 12.43943602
2811
2811
  }
2812
2812
  ];
2813
- function Fr() {
2814
- const a = _e, e = new Oe(), r = new He(), n = new Ve(), m = new $e(), s = new Fe(120), d = new Ee(), p = [
2813
+ function Yr() {
2814
+ const a = Ye, e = new $e(), r = new Fe(), n = new Ee(), m = new _e(), s = new Ke(120), i = new We(), p = [
2815
2815
  t.create({
2816
2816
  property: "symbol",
2817
2817
  headerLabel: "",
2818
- width: L,
2818
+ width: P,
2819
2819
  bodyClasses: ["ge-table-text-align-left"],
2820
- bodyRenderer: d
2820
+ bodyRenderer: i
2821
2821
  }),
2822
2822
  t.create({
2823
2823
  property: "symbol",
@@ -2830,17 +2830,17 @@ function Fr() {
2830
2830
  t.create({
2831
2831
  property: "priceInUsd",
2832
2832
  headerLabel: "Price $",
2833
- width: u,
2833
+ width: c,
2834
2834
  bodyClasses: ["ge-table-text-align-right"],
2835
2835
  headerClasses: ["ge-table-text-align-right"]
2836
2836
  }),
2837
- new t("change1h", "1h %", u, void 0, t.bodyRenderer(e)),
2838
- new t("change24h", "24h %", u, void 0, t.bodyRenderer(e)),
2839
- new t("change7d", "7d %", u, void 0, t.bodyRenderer(e)),
2837
+ new t("change1h", "1h %", c, void 0, t.bodyRenderer(e)),
2838
+ new t("change24h", "24h %", c, void 0, t.bodyRenderer(e)),
2839
+ new t("change7d", "7d %", c, void 0, t.bodyRenderer(e)),
2840
2840
  t.create({
2841
2841
  property: "marketCapUsd",
2842
2842
  headerLabel: "Market Cap",
2843
- width: R,
2843
+ width: I,
2844
2844
  bodyClasses: ["ge-table-text-align-right"],
2845
2845
  headerClasses: ["ge-table-text-align-right"],
2846
2846
  bodyRenderer: r
@@ -2855,15 +2855,15 @@ function Fr() {
2855
2855
  t.create({
2856
2856
  property: "circulatingSupply",
2857
2857
  headerLabel: "Circulating Supply",
2858
- width: P,
2858
+ width: L,
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
- p.forEach((l) => l.sortable = () => !0);
2865
- const i = {
2866
- ...new N(),
2864
+ p.forEach((u) => u.sortable = () => !0);
2865
+ const d = {
2866
+ ...new f(),
2867
2867
  hoverColumnVisible: !1,
2868
2868
  verticalBorderVisible: !1,
2869
2869
  defaultRowHeights: {
@@ -2872,24 +2872,24 @@ function Fr() {
2872
2872
  footer: 0
2873
2873
  }
2874
2874
  };
2875
- return new T(
2876
- b.createTableModel({
2875
+ return new o(
2876
+ N.createTableModel({
2877
2877
  rows: a,
2878
2878
  columnDefs: p,
2879
- tableOptions: i
2879
+ tableOptions: d
2880
2880
  }),
2881
- i
2881
+ d
2882
2882
  );
2883
2883
  }
2884
- function Er(a = 1e3, e = 1e3) {
2884
+ function jr(a = 1e3, e = 1e3) {
2885
2885
  const r = Array.from(Array(a).keys()).map(
2886
- (s) => Array.from(Array(e).keys()).map((d) => `${s}/${d}`)
2886
+ (s) => Array.from(Array(e).keys()).map((i) => `${s}/${i}`)
2887
2887
  ), n = Array.from(Array(2).keys()).map(
2888
- (s) => Array.from(Array(e).keys()).map((d) => `H${s}/${d}`)
2888
+ (s) => Array.from(Array(e).keys()).map((i) => `H${s}/${i}`)
2889
2889
  ), m = Array.from(Array(2).keys()).map(
2890
- (s) => Array.from(Array(e).keys()).map((d) => `F${s}/${d}`)
2890
+ (s) => Array.from(Array(e).keys()).map((i) => `F${s}/${i}`)
2891
2891
  );
2892
- return b.createTableModel({
2892
+ return N.createTableModel({
2893
2893
  headerData: n,
2894
2894
  bodyData: r,
2895
2895
  footerData: m,
@@ -2898,7 +2898,7 @@ function Er(a = 1e3, e = 1e3) {
2898
2898
  fixedRightColumnCount: 2
2899
2899
  });
2900
2900
  }
2901
- const Ke = [
2901
+ const je = [
2902
2902
  {
2903
2903
  id: 0,
2904
2904
  preName: "Prename0",
@@ -164772,9 +164772,9 @@ const Ke = [
164772
164772
  friends: []
164773
164773
  }
164774
164774
  ];
164775
- function _r() {
164775
+ function Xr() {
164776
164776
  const a = {
164777
- ...new N(),
164777
+ ...new f(),
164778
164778
  hoverColumnVisible: !1,
164779
164779
  defaultRowHeights: {
164780
164780
  header: 50,
@@ -164785,17 +164785,17 @@ function _r() {
164785
164785
  // <-- true: we will see the checkbox IN the first column after the arrow
164786
164786
  }, e = [
164787
164787
  // new CheckboxColumn(), // <--- not needed, because we have 'showCheckboxWihoutExtraColumn:true'
164788
- new t("lastName", "Last Name", new c(250, "px")),
164789
- new t("preName", "Pre Name", new c(120, "px")),
164790
- new t("birth", "Birthday", new c(100, "px"), new k(), new k(void 0, new O(), void 0), void 0, void 0),
164791
- new t("gender", " ", new c(50, "px"), new k(), new k(void 0, new ye(), void 0), void 0, void 0),
164792
- new t("address.street", "Strasse", new c(150, "px")),
164793
- new t("address.number", "Nr", new c(70, "px")),
164794
- new t("address.zip", "Zip", new c(60, "px")),
164795
- new t("address.city", "City", new c(120, "px")),
164796
- new t("id", "ID", new c(60, "px"))
164797
- ], r = pe.buildTreeRows(Ke, "friends");
164798
- return b.createTableModel({
164788
+ new t("lastName", "Last Name", new l(250, "px")),
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 O(), void 0), void 0, void 0),
164791
+ new t("gender", " ", new l(50, "px"), new D(), new D(void 0, new ue(), void 0), void 0, void 0),
164792
+ new t("address.street", "Strasse", new l(150, "px")),
164793
+ new t("address.number", "Nr", new l(70, "px")),
164794
+ new t("address.zip", "Zip", new l(60, "px")),
164795
+ new t("address.city", "City", new l(120, "px")),
164796
+ new t("id", "ID", new l(60, "px"))
164797
+ ], r = ce.buildTreeRows(je, "friends");
164798
+ return N.createTableModel({
164799
164799
  rows: r,
164800
164800
  columnDefs: e,
164801
164801
  tableOptions: a,
@@ -164803,7 +164803,7 @@ function _r() {
164803
164803
  fixedRightColumnCount: 0
164804
164804
  });
164805
164805
  }
164806
- const X = new Le(34, 50, 0), J = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), We = `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
164806
+ const J = new Ze(34, 50, 0), Q = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), Xe = `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 X = new Le(34, 50, 0), J = "_ 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
- ), Ye = 27.9, je = 77.4;
164818
- class Q {
164817
+ ), Je = 27.9, Qe = 77.4;
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 Xe(a, e, r, n, m) {
164823
+ function er(a, e, r, n, m) {
164824
164824
  return (a - e) / (r - e) * (m - n) + n;
164825
164825
  }
164826
- function Je(a, e, r) {
164827
- var n = new Q(255, 0, 0), m = new Q(0, 0, 255), s = Xe(r, a, e, 0, 1), d = m.r - n.r, p = m.g - n.g, i = m.b - n.b;
164828
- return d = d * s + n.r, p = p * s + n.g, i = i * s + n.b, `rgb(${Math.round(d)}, ${Math.round(p)}, ${Math.round(i)})`;
164826
+ function rr(a, e, r) {
164827
+ var n = new ee(255, 0, 0), m = new ee(0, 0, 255), s = er(r, a, e, 0, 1), i = m.r - n.r, p = m.g - n.g, d = m.b - n.b;
164828
+ return i = i * s + n.r, p = p * s + n.g, d = d * s + n.b, `rgb(${Math.round(i)}, ${Math.round(p)}, ${Math.round(d)})`;
164829
164829
  }
164830
- function Kr() {
164831
- const a = new B("body", We, X.body), e = new Array(J.length).fill(50), r = new B("header", [J], X.header);
164830
+ function Jr() {
164831
+ const a = new B("body", Xe, 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
- const d = a.getValueAt(n, m);
164835
+ const i = a.getValueAt(n, m);
164836
164836
  s = {
164837
- background: Je(Ye, je, d),
164837
+ background: rr(Je, Qe, i),
164838
164838
  color: "#fff"
164839
164839
  };
164840
164840
  }
164841
164841
  return s.paddingTop = "10px", s;
164842
- }, b.createTableModel({
164842
+ }, N.createTableModel({
164843
164843
  headerAreaModel: r,
164844
164844
  bodyAreaModel: a,
164845
164845
  columnSizes: e
164846
164846
  });
164847
164847
  }
164848
- function Qe() {
164848
+ function ar() {
164849
164849
  return [
164850
164850
  {
164851
164851
  date: "2010-01-01T01:00:00",
@@ -217403,12 +217403,12 @@ function Qe() {
217403
217403
  }
217404
217404
  ];
217405
217405
  }
217406
- const he = 30, er = 3, Se = Qe(), h = {};
217407
- Se.forEach((a) => {
217406
+ const Ce = 30, tr = 3, Le = ar(), C = {};
217407
+ Le.forEach((a) => {
217408
217408
  const [e, r] = a.date.split("T");
217409
- h[e] || (h[e] = {}), h[e][r.substring(0, 5)] = a;
217409
+ C[e] || (C[e] = {}), C[e][r.substring(0, 5)] = a;
217410
217410
  });
217411
- const _ = Object.keys(h), x = [
217411
+ const W = Object.keys(C), x = [
217412
217412
  "06:00",
217413
217413
  "07:00",
217414
217414
  "08:00",
@@ -217434,28 +217434,28 @@ const _ = Object.keys(h), x = [
217434
217434
  "04:00",
217435
217435
  "05:00"
217436
217436
  ];
217437
- function rr() {
217437
+ function nr() {
217438
217438
  let a = 10, e = 0;
217439
- return Se.forEach((r) => {
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 [ee, re] = rr();
217444
- function Wr() {
217445
- const a = new ar(), e = new tr(), r = [60, ...new Array(_.length).fill(er)];
217446
- return b.createTableModel({
217443
+ const [re, ae] = nr();
217444
+ function Qr() {
217445
+ const a = new mr(), e = new sr(), r = [60, ...new Array(W.length).fill(tr)];
217446
+ return N.createTableModel({
217447
217447
  bodyAreaModel: a,
217448
217448
  footerAreaModel: e,
217449
217449
  columnSizes: r,
217450
217450
  fixedLeftColumnCount: 1
217451
217451
  });
217452
217452
  }
217453
- class ar extends K {
217453
+ class mr extends Y {
217454
217454
  getRowCount() {
217455
217455
  return x.length;
217456
217456
  }
217457
217457
  getRowHeight(e) {
217458
- return he;
217458
+ return Ce;
217459
217459
  }
217460
217460
  getValueAt(e, r) {
217461
217461
  return r === 0 ? x[e] : "";
@@ -217464,29 +217464,29 @@ class ar extends K {
217464
217464
  if (r === 0)
217465
217465
  return "";
217466
217466
  r--;
217467
- const n = _[r], m = x[e];
217468
- return h[n] && h[n][m] ? `${n} ${m} → ${h[n][m].temperature}` : "";
217467
+ const n = W[r], m = x[e];
217468
+ return C[n] && C[n][m] ? `${n} ${m} → ${C[n][m].temperature}` : "";
217469
217469
  }
217470
217470
  getCustomStyleAt(e, r) {
217471
217471
  if (r === 0)
217472
217472
  return;
217473
217473
  r--;
217474
- const n = _[r], m = x[e];
217475
- if (!h[n] || !h[n][m]) return;
217476
- const s = h[n][m].temperature, d = new V(67, 1, 84), p = new V(31, 144, 141), i = new V(250, 230, 37), l = (re + ee) / 2, f = new Pe(ee, d, l, p, re, i);
217474
+ const n = W[r], m = x[e];
217475
+ if (!C[n] || !C[n][m]) return;
217476
+ const s = C[n][m].temperature, i = new $(67, 1, 84), p = new $(31, 144, 141), d = new $(250, 230, 37), u = (ae + re) / 2, b = new ze(re, i, u, p, ae, d);
217477
217477
  return {
217478
- background: Ge.getThreeColorGradientRGB(s, f),
217478
+ background: we.getThreeColorGradientRGB(s, b),
217479
217479
  color: "transparent"
217480
217480
  // we only want to show the bg color
217481
217481
  };
217482
217482
  }
217483
217483
  }
217484
- class tr extends K {
217484
+ class sr extends Y {
217485
217485
  getRowCount() {
217486
217486
  return 1;
217487
217487
  }
217488
217488
  getRowHeight(e) {
217489
- return he;
217489
+ return Ce;
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 tr extends K {
217503
217503
  };
217504
217504
  }
217505
217505
  }
217506
- const $ = [
217506
+ const F = [
217507
217507
  {
217508
217508
  data: "Gold",
217509
217509
  toggle: !0,
@@ -217590,9 +217590,9 @@ const $ = [
217590
217590
  ]
217591
217591
  }
217592
217592
  ];
217593
- function Yr() {
217594
- const e = A.buildGroupExts($), r = A.buildColumnDefs(e), n = new ue("header", $, r, 34);
217595
- console.info("headerGroups", $), console.info("columnDefs", r.map((d) => d.property));
217593
+ function ea() {
217594
+ const e = A.buildGroupExts(F), r = A.buildColumnDefs(e), n = new le("header", F, r, 34);
217595
+ console.info("headerGroups", F), console.info("columnDefs", r.map((i) => i.property));
217596
217596
  const m = [
217597
217597
  {
217598
217598
  GOLD: 146,
@@ -217610,14 +217610,14 @@ function Yr() {
217610
217610
  HOH_C: 53,
217611
217611
  HOH_D: 54
217612
217612
  }
217613
- ], s = new W("body", m, r, 34);
217614
- return b.createTableModel({
217613
+ ], s = new j("body", m, r, 34);
217614
+ return N.createTableModel({
217615
217615
  headerAreaModel: n,
217616
217616
  bodyAreaModel: s,
217617
217617
  columnDefs: r
217618
217618
  });
217619
217619
  }
217620
- const nr = [
217620
+ const ir = [
217621
217621
  {
217622
217622
  data: "Team A",
217623
217623
  toggle: !0,
@@ -217638,8 +217638,8 @@ const nr = [
217638
217638
  ]
217639
217639
  }
217640
217640
  ];
217641
- function jr(a = nr) {
217642
- const r = A.buildGroupExts(a), n = A.buildColumnDefs(r), m = new ue("header", a, n, 34);
217641
+ function ra(a = ir) {
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 = [
217645
217645
  {
@@ -217648,14 +217648,14 @@ function jr(a = nr) {
217648
217648
  peter: 5,
217649
217649
  paul: 4
217650
217650
  }
217651
- ], d = new W("body", s, n, 34);
217652
- return b.createTableModel({
217651
+ ], i = new j("body", s, n, 34);
217652
+ return N.createTableModel({
217653
217653
  headerAreaModel: m,
217654
- bodyAreaModel: d,
217654
+ bodyAreaModel: i,
217655
217655
  columnDefs: n
217656
217656
  });
217657
217657
  }
217658
- function mr() {
217658
+ function dr() {
217659
217659
  return [
217660
217660
  {
217661
217661
  id: 1,
@@ -217835,35 +217835,35 @@ function mr() {
217835
217835
  }
217836
217836
  ];
217837
217837
  }
217838
- function sr() {
217838
+ function yr() {
217839
217839
  return [
217840
217840
  new t("firstName", "First Name", g),
217841
217841
  new t("lastName", "Last Name"),
217842
217842
  t.create({
217843
217843
  property: "gender",
217844
217844
  headerLabel: "Gender",
217845
- width: u,
217845
+ width: c,
217846
217846
  bodyClasses: ["ge-table-text-align-left"]
217847
217847
  }),
217848
217848
  t.create({
217849
217849
  property: "email",
217850
217850
  headerLabel: "Email",
217851
- width: ce,
217851
+ width: ge,
217852
217852
  bodyClasses: ["ge-table-text-align-left"]
217853
217853
  }),
217854
- new t("ipAddress", "IP", le),
217854
+ new t("ipAddress", "IP", be),
217855
217855
  t.create({
217856
217856
  property: "id",
217857
217857
  headerLabel: "ID",
217858
- width: Ze,
217858
+ width: ve,
217859
217859
  // bodyRenderer: actionRenderer,
217860
217860
  bodyClasses: ["ge-table-text-align-left"]
217861
217861
  })
217862
217862
  ];
217863
217863
  }
217864
- function ir() {
217864
+ function pr() {
217865
217865
  return {
217866
- ...new N(),
217866
+ ...new f(),
217867
217867
  hoverColumnVisible: !1,
217868
217868
  defaultRowHeights: {
217869
217869
  header: 40,
@@ -217872,19 +217872,19 @@ function ir() {
217872
217872
  }
217873
217873
  };
217874
217874
  }
217875
- function Xr() {
217876
- const a = ir(), e = mr(), r = sr();
217877
- return b.createTableModel({
217875
+ function aa() {
217876
+ const a = pr(), e = dr(), r = yr();
217877
+ return N.createTableModel({
217878
217878
  rows: e,
217879
217879
  columnDefs: r,
217880
217880
  tableOptions: a,
217881
217881
  fixedLeftColumnCount: 0
217882
217882
  });
217883
217883
  }
217884
- function Jr(a, e) {
217885
- a.rendererMap = new k(void 0, e, void 0);
217884
+ function ta(a, e) {
217885
+ a.rendererMap = new D(void 0, e, void 0);
217886
217886
  }
217887
- const dr = [
217887
+ const ur = [
217888
217888
  {
217889
217889
  id: 1,
217890
217890
  city: "London",
@@ -218032,36 +218032,36 @@ const dr = [
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)), I = [
218036
- new t("city", "City", new c(90, "px")),
218037
- new t("location", "Location", new c(100, "px")),
218038
- new t("team.name", "Team", new c(100, "px")),
218035
+ ].map((a) => (a.updatedAt = /* @__PURE__ */ new Date(), a)), R = [
218036
+ new t("city", "City", new l(90, "px")),
218037
+ new t("location", "Location", new l(100, "px")),
218038
+ new t("team.name", "Team", new l(100, "px")),
218039
218039
  t.create({
218040
218040
  property: "team.active",
218041
218041
  headerLabel: "Active",
218042
- width: new c(60, "px"),
218043
- bodyRenderer: new ge()
218042
+ width: new l(60, "px"),
218043
+ bodyRenderer: new Ne()
218044
218044
  }),
218045
- new t("data.0", "00", new c(60, "px")),
218046
- new t("data.1", "15", new c(60, "px")),
218047
- new t("data.2", "30", new c(60, "px")),
218048
- new t("data.3", "45", new c(60, "px")),
218049
- new t("data.4", "00", new c(60, "px")),
218050
- new t("data.5", "15", new c(60, "px")),
218051
- new t("data.6", "30", new c(60, "px")),
218052
- new t("data.7", "45", new c(60, "px")),
218053
- new t("data.8", "00", new c(60, "px")),
218054
- new t("data.9", "15", new c(60, "px")),
218055
- new t("data.10", "30", new c(60, "px")),
218056
- new t("data.11", "45", new c(60, "px")),
218045
+ new t("data.0", "00", new l(60, "px")),
218046
+ new t("data.1", "15", new l(60, "px")),
218047
+ new t("data.2", "30", new l(60, "px")),
218048
+ new t("data.3", "45", new l(60, "px")),
218049
+ new t("data.4", "00", new l(60, "px")),
218050
+ new t("data.5", "15", new l(60, "px")),
218051
+ new t("data.6", "30", new l(60, "px")),
218052
+ new t("data.7", "45", new l(60, "px")),
218053
+ new t("data.8", "00", new l(60, "px")),
218054
+ new t("data.9", "15", new l(60, "px")),
218055
+ new t("data.10", "30", new l(60, "px")),
218056
+ new t("data.11", "45", new l(60, "px")),
218057
218057
  t.create({
218058
218058
  property: "updatedAt",
218059
218059
  headerLabel: "Updated at",
218060
- width: new c(175, "px"),
218061
- bodyRenderer: new ze()
218060
+ width: new l(175, "px"),
218061
+ bodyRenderer: new ke()
218062
218062
  })
218063
- ], Qr = I.length - 1, yr = {
218064
- ...new N(),
218063
+ ], na = R.length - 1, cr = {
218064
+ ...new f(),
218065
218065
  hoverRowVisible: !1,
218066
218066
  hoverColumnVisible: !1,
218067
218067
  defaultRowHeights: {
@@ -218072,22 +218072,22 @@ const dr = [
218072
218072
  columnsDraggable: !1,
218073
218073
  columnsResizable: !0
218074
218074
  };
218075
- function ea() {
218076
- const a = yr.defaultRowHeights;
218077
- return b.createTableModel({
218078
- headerAreaModel: new ur(a.header),
218079
- bodyAreaModel: new pr(a.body),
218080
- footerAreaModel: new cr(a.footer),
218081
- columnDefs: I,
218075
+ function ma() {
218076
+ const a = cr.defaultRowHeights;
218077
+ return N.createTableModel({
218078
+ headerAreaModel: new gr(a.header),
218079
+ bodyAreaModel: new lr(a.body),
218080
+ footerAreaModel: new br(a.footer),
218081
+ columnDefs: R,
218082
218082
  fixedLeftColumnCount: 2,
218083
218083
  fixedRightColumnCount: 1,
218084
218084
  defaultRowHeights: a,
218085
- columnCount: I.length
218085
+ columnCount: R.length
218086
218086
  });
218087
218087
  }
218088
- class pr extends W {
218088
+ class lr extends j {
218089
218089
  constructor(e) {
218090
- super("body", dr, I, e);
218090
+ super("body", ur, R, e);
218091
218091
  }
218092
218092
  getRowspanAt(e, r) {
218093
218093
  if (r === 0 || r == 1) {
@@ -218104,7 +218104,7 @@ class pr extends W {
218104
218104
  return m;
218105
218105
  }
218106
218106
  }
218107
- class ur extends B {
218107
+ class gr extends B {
218108
218108
  constructor(e) {
218109
218109
  super(
218110
218110
  "header",
@@ -218131,7 +218131,7 @@ class ur extends B {
218131
218131
  return ["ge-font-weight-bold"];
218132
218132
  }
218133
218133
  }
218134
- class cr extends B {
218134
+ class br extends B {
218135
218135
  constructor(e) {
218136
218136
  super(
218137
218137
  "footer",
@@ -218146,7 +218146,7 @@ class cr extends B {
218146
218146
  return r === 2 ? ["ge-text-align-right", "ge-font-weight-bold"] : [];
218147
218147
  }
218148
218148
  }
218149
- const lr = [
218149
+ const Nr = [
218150
218150
  {
218151
218151
  id: "c8-34f1d5",
218152
218152
  company: "Equicom",
@@ -220084,10 +220084,10 @@ const lr = [
220084
220084
  rating: 5
220085
220085
  }
220086
220086
  ];
220087
- function gr() {
220088
- return lr;
220087
+ function fr() {
220088
+ return Nr;
220089
220089
  }
220090
- function br() {
220090
+ function Tr() {
220091
220091
  return [
220092
220092
  t.create({
220093
220093
  property: "company",
@@ -220100,7 +220100,7 @@ function br() {
220100
220100
  t.create({
220101
220101
  property: "country",
220102
220102
  headerLabel: "Country",
220103
- width: P,
220103
+ width: L,
220104
220104
  bodyClasses: ["ge-table-text-align-left"],
220105
220105
  headerClasses: ["ge-table-text-align-left"],
220106
220106
  sortable: y
@@ -220116,7 +220116,7 @@ function br() {
220116
220116
  t.create({
220117
220117
  property: "sellDate",
220118
220118
  headerLabel: "Sell date",
220119
- width: u,
220119
+ width: c,
220120
220120
  bodyRenderer: new O(),
220121
220121
  bodyClasses: ["ge-table-text-align-center"],
220122
220122
  sortable: y
@@ -220132,14 +220132,14 @@ function br() {
220132
220132
  property: "inStock",
220133
220133
  headerLabel: "In stock",
220134
220134
  width: z,
220135
- bodyRenderer: new be("inStock", !0, !0),
220135
+ bodyRenderer: new fe("inStock", !0, !0),
220136
220136
  bodyClasses: ["ge-table-text-align-center"],
220137
220137
  sortable: y
220138
220138
  }),
220139
220139
  t.create({
220140
220140
  property: "quantity",
220141
220141
  headerLabel: "Qty",
220142
- width: L,
220142
+ width: P,
220143
220143
  bodyClasses: ["ge-table-text-align-right"],
220144
220144
  headerClasses: ["ge-table-text-align-right"],
220145
220145
  sortable: y
@@ -220147,25 +220147,25 @@ function br() {
220147
220147
  t.create({
220148
220148
  property: "progress",
220149
220149
  headerLabel: "Progress",
220150
- width: u,
220151
- bodyRenderer: new Ne("progress", 5, !0),
220150
+ width: c,
220151
+ bodyRenderer: new Te("progress", 5, !0),
220152
220152
  bodyClasses: ["ge-table-text-align-left"],
220153
220153
  sortable: y
220154
220154
  }),
220155
220155
  t.create({
220156
220156
  property: "rating",
220157
220157
  headerLabel: "Rating",
220158
- width: u,
220159
- bodyRenderer: new fe("rating"),
220158
+ width: c,
220159
+ bodyRenderer: new oe("rating"),
220160
220160
  bodyClasses: ["ge-table-text-align-left"],
220161
220161
  sortable: y
220162
220162
  })
220163
220163
  ];
220164
220164
  }
220165
- function Nr() {
220166
- const a = new S("row", "multi");
220165
+ function or() {
220166
+ const a = new h("row", "multi");
220167
220167
  return {
220168
- ...new N(),
220168
+ ...new f(),
220169
220169
  hoverColumnVisible: !1,
220170
220170
  defaultRowHeights: {
220171
220171
  header: 24,
@@ -220175,10 +220175,10 @@ function Nr() {
220175
220175
  getSelectionModel: () => a
220176
220176
  };
220177
220177
  }
220178
- function ra() {
220179
- const a = Nr(), e = gr(), r = br();
220180
- return new T(
220181
- b.createTableModel({
220178
+ function sa() {
220179
+ const a = or(), e = fr(), r = Tr();
220180
+ return new o(
220181
+ N.createTableModel({
220182
220182
  rows: e,
220183
220183
  columnDefs: r,
220184
220184
  tableOptions: a,
@@ -220187,21 +220187,21 @@ function ra() {
220187
220187
  a
220188
220188
  );
220189
220189
  }
220190
- function ae() {
220190
+ function te() {
220191
220191
  return [
220192
220192
  t.create({
220193
220193
  headerLabel: "ID",
220194
220194
  width: g,
220195
220195
  bodyClasses: ["ge-table-text-align-left"],
220196
220196
  headerClasses: ["ge-table-text-align-left"],
220197
- sortable: F
220197
+ sortable: _
220198
220198
  }),
220199
220199
  t.create({
220200
220200
  headerLabel: "Value",
220201
220201
  width: Z,
220202
220202
  bodyClasses: ["ge-table-text-align-left"],
220203
220203
  headerClasses: ["ge-table-text-align-left"],
220204
- sortable: F
220204
+ sortable: _
220205
220205
  }),
220206
220206
  t.create({
220207
220207
  headerLabel: " ",
@@ -220211,10 +220211,10 @@ function ae() {
220211
220211
  })
220212
220212
  ];
220213
220213
  }
220214
- function fr() {
220215
- const a = new S();
220214
+ function hr() {
220215
+ const a = new h();
220216
220216
  return {
220217
- ...new N(),
220217
+ ...new f(),
220218
220218
  hoverColumnVisible: !1,
220219
220219
  defaultRowHeights: {
220220
220220
  header: 34,
@@ -220224,22 +220224,22 @@ function fr() {
220224
220224
  getSelectionModel: () => a
220225
220225
  };
220226
220226
  }
220227
- function aa(a = 1e6, e = !1) {
220228
- const r = fr(), n = e ? [new ve({ format: (d) => d.toLocaleString("en-US") }), ...ae()] : ae(), m = e ? 1 : 0, s = new Tr(a, m);
220229
- return new T(b.createTableModel({
220227
+ function ia(a = 1e6, e = !1) {
220228
+ const r = hr(), n = e ? [new xe({ format: (i) => i.toLocaleString("en-US") }), ...te()] : te(), m = e ? 1 : 0, s = new Sr(a, m);
220229
+ return new o(N.createTableModel({
220230
220230
  bodyAreaModel: s,
220231
220231
  columnDefs: n,
220232
220232
  tableOptions: r,
220233
220233
  fixedLeftColumnCount: m
220234
220234
  }), r);
220235
220235
  }
220236
- class Tr extends K {
220236
+ class Sr 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)
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 we(e, !1);
220242
+ super(), this.rowcount = e, this.columnOffset = r, this.nf = new Intl.NumberFormat("en-Us", {}), this.barRenderer = new De(e, !1);
220243
220243
  }
220244
220244
  getRowCount() {
220245
220245
  return this.rowcount;
@@ -220261,7 +220261,7 @@ class Tr extends K {
220261
220261
  return e * this.getRowHeight(0);
220262
220262
  }
220263
220263
  }
220264
- const or = [
220264
+ const Cr = [
220265
220265
  {
220266
220266
  id: "f0-bfbecb",
220267
220267
  company: "Medmex",
@@ -221733,15 +221733,15 @@ const or = [
221733
221733
  f2: 28.55122067
221734
221734
  }
221735
221735
  ];
221736
- function hr(a = 75) {
221737
- return or.slice(0, a - 1);
221736
+ function Lr(a = 75) {
221737
+ return Cr.slice(0, a - 1);
221738
221738
  }
221739
- function Sr(a) {
221739
+ function Pr(a) {
221740
221740
  return [
221741
221741
  t.create({
221742
221742
  property: "company",
221743
221743
  headerLabel: "Company",
221744
- width: u,
221744
+ width: c,
221745
221745
  bodyClasses: ["ge-table-text-align-left"],
221746
221746
  headerClasses: ["ge-table-text-align-left"],
221747
221747
  sortable: y,
@@ -221750,7 +221750,7 @@ function Sr(a) {
221750
221750
  t.create({
221751
221751
  property: "country",
221752
221752
  headerLabel: "Country",
221753
- width: P,
221753
+ width: L,
221754
221754
  bodyClasses: ["ge-table-text-align-left"],
221755
221755
  headerClasses: ["ge-table-text-align-left"],
221756
221756
  sortable: y,
@@ -221759,7 +221759,7 @@ function Sr(a) {
221759
221759
  t.create({
221760
221760
  property: "product",
221761
221761
  headerLabel: "Name",
221762
- width: u,
221762
+ width: c,
221763
221763
  bodyClasses: ["ge-table-text-align-left"],
221764
221764
  headerClasses: ["ge-table-text-align-left"],
221765
221765
  sortable: y,
@@ -221768,7 +221768,7 @@ function Sr(a) {
221768
221768
  t.create({
221769
221769
  property: "birthday",
221770
221770
  headerLabel: "Birth Date",
221771
- width: u,
221771
+ width: c,
221772
221772
  bodyClasses: ["ge-table-text-align-center"],
221773
221773
  sortable: y,
221774
221774
  editable: () => a
@@ -221776,7 +221776,7 @@ function Sr(a) {
221776
221776
  t.create({
221777
221777
  property: "sellDate",
221778
221778
  headerLabel: "Sell date",
221779
- width: u,
221779
+ width: c,
221780
221780
  bodyRenderer: new O(),
221781
221781
  bodyClasses: ["ge-table-text-align-center"],
221782
221782
  sortable: y,
@@ -221785,7 +221785,7 @@ function Sr(a) {
221785
221785
  t.create({
221786
221786
  property: "lastVisit",
221787
221787
  headerLabel: "Last Visit",
221788
- width: Te,
221788
+ width: he,
221789
221789
  bodyClasses: ["ge-table-text-align-center"],
221790
221790
  sortable: y,
221791
221791
  editable: () => a
@@ -221793,7 +221793,7 @@ function Sr(a) {
221793
221793
  t.create({
221794
221794
  property: "time",
221795
221795
  headerLabel: "Time",
221796
- width: u,
221796
+ width: c,
221797
221797
  bodyClasses: ["ge-table-text-align-center"],
221798
221798
  sortable: y,
221799
221799
  editable: () => a
@@ -221809,7 +221809,7 @@ function Sr(a) {
221809
221809
  property: "inStock",
221810
221810
  headerLabel: "In stock",
221811
221811
  width: z,
221812
- bodyRenderer: new be("inStock", !0, !0),
221812
+ bodyRenderer: new fe("inStock", !0, !0),
221813
221813
  bodyClasses: ["ge-table-text-align-center"],
221814
221814
  sortable: y,
221815
221815
  editable: () => a
@@ -221817,7 +221817,7 @@ function Sr(a) {
221817
221817
  t.create({
221818
221818
  property: "quantity",
221819
221819
  headerLabel: "Qty",
221820
- width: L,
221820
+ width: P,
221821
221821
  bodyClasses: ["ge-table-text-align-right"],
221822
221822
  headerClasses: ["ge-table-text-align-right"],
221823
221823
  sortable: y,
@@ -221826,23 +221826,23 @@ function Sr(a) {
221826
221826
  t.create({
221827
221827
  property: "progress",
221828
221828
  headerLabel: "Progress",
221829
- width: u,
221830
- bodyRenderer: new Ne("progress", 5, !0),
221829
+ width: c,
221830
+ bodyRenderer: new Te("progress", 5, !0),
221831
221831
  bodyClasses: ["ge-table-text-align-left"],
221832
221832
  sortable: y
221833
221833
  }),
221834
221834
  t.create({
221835
221835
  property: "rating",
221836
221836
  headerLabel: "Rating",
221837
- width: u,
221838
- bodyRenderer: new fe("rating"),
221837
+ width: c,
221838
+ bodyRenderer: new oe("rating"),
221839
221839
  bodyClasses: ["ge-table-text-align-left"],
221840
221840
  sortable: y
221841
221841
  }),
221842
221842
  t.create({
221843
221843
  property: "price",
221844
221844
  headerLabel: "Price",
221845
- width: L,
221845
+ width: P,
221846
221846
  bodyClasses: ["ge-table-text-align-right"],
221847
221847
  sortable: y,
221848
221848
  editable: () => a
@@ -221850,22 +221850,22 @@ function Sr(a) {
221850
221850
  t.create({
221851
221851
  property: "active",
221852
221852
  headerLabel: "Active",
221853
- width: L,
221854
- bodyRenderer: new ge(),
221853
+ width: P,
221854
+ bodyRenderer: new Ne(),
221855
221855
  sortable: y,
221856
221856
  editable: () => a
221857
221857
  }),
221858
221858
  t.create({
221859
221859
  property: "currency",
221860
221860
  headerLabel: "CCY",
221861
- width: L,
221861
+ width: P,
221862
221862
  sortable: y,
221863
221863
  editable: () => a
221864
221864
  }),
221865
221865
  t.create({
221866
221866
  property: "average",
221867
221867
  headerLabel: "Average",
221868
- width: u,
221868
+ width: c,
221869
221869
  bodyClasses: ["ge-table-text-align-right"],
221870
221870
  sortable: y,
221871
221871
  editable: () => a
@@ -221873,9 +221873,9 @@ function Sr(a) {
221873
221873
  t.create({
221874
221874
  property: "f1",
221875
221875
  headerLabel: "F1",
221876
- width: oe,
221876
+ width: Se,
221877
221877
  bodyClasses: ["ge-table-text-align-right"],
221878
- bodyRenderer: new ke(),
221878
+ bodyRenderer: new Ue(),
221879
221879
  sortable: y,
221880
221880
  editable: () => a
221881
221881
  }),
@@ -221897,9 +221897,9 @@ function Sr(a) {
221897
221897
  })
221898
221898
  ];
221899
221899
  }
221900
- function Cr(a) {
221900
+ function Gr(a) {
221901
221901
  return {
221902
- ...new N(),
221902
+ ...new f(),
221903
221903
  hoverColumnVisible: !1,
221904
221904
  defaultRowHeights: {
221905
221905
  header: 32,
@@ -221909,17 +221909,17 @@ function Cr(a) {
221909
221909
  getSelectionModel: () => a
221910
221910
  };
221911
221911
  }
221912
- function ta(a = new S("row", "multi"), e = 75, r = !1) {
221913
- const n = Cr(a);
221912
+ function da(a = new h("row", "multi"), e = 75, r = !1) {
221913
+ const n = Gr(a);
221914
221914
  e = Math.max(10, Math.min(75, e));
221915
- const m = hr(e), s = Sr(r);
221916
- return new T(b.createTableModel({
221915
+ const m = Lr(e), s = Pr(r);
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 Lr = [
221922
+ const Zr = [
221923
221923
  ["Germany", "Hamburg"],
221924
221924
  ["Germany", "Berlin"],
221925
221925
  ["Germany", "Munich"],
@@ -221932,7 +221932,7 @@ const Lr = [
221932
221932
  ["Spain", "Madrid"],
221933
221933
  ["Poland", "Warsaw"],
221934
221934
  ["Denmark", "Copenhagen"]
221935
- ], Pr = [
221935
+ ], zr = [
221936
221936
  ["Laptop", "Hardware", 1299],
221937
221937
  ["Monitor", "Hardware", 349],
221938
221938
  ["Keyboard", "Accessories", 89],
@@ -221942,75 +221942,75 @@ const Lr = [
221942
221942
  ["Cloud Credits", "Services", 500],
221943
221943
  ["Support Plan", "Services", 990]
221944
221944
  ];
221945
- function Gr(a) {
221945
+ function wr(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 H(a, e = 42) {
221953
- const r = Gr(e), n = (s) => s[Math.floor(r() * s.length)], m = new Array(a);
221952
+ function V(a, e = 42) {
221953
+ const r = wr(e), n = (s) => s[Math.floor(r() * s.length)], m = new Array(a);
221954
221954
  for (let s = 0; s < a; s++) {
221955
- const [d, p] = n(Lr), [i, l, f] = n(Pr), C = 1 + Math.floor(r() * 20), D = Math.round(f * (0.85 + r() * 0.3) * 100) / 100;
221956
- m[s] = { id: s + 1, country: d, city: p, product: i, category: l, quantity: C, price: D, total: Math.round(C * D * 100) / 100 };
221955
+ const [i, p] = n(Zr), [d, u, b] = n(zr), T = 1 + Math.floor(r() * 20), w = Math.round(b * (0.85 + r() * 0.3) * 100) / 100;
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;
221959
221959
  }
221960
221960
  const U = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], sortable: y };
221961
- function Ce() {
221961
+ function Pe() {
221962
221962
  return [
221963
- t.create({ property: "id", headerLabel: "Order", width: u, ...U }),
221964
- t.create({ property: "country", headerLabel: "Country", width: P, sortable: y }),
221965
- t.create({ property: "city", headerLabel: "City", width: P, sortable: y }),
221966
- t.create({ property: "product", headerLabel: "Product", width: R, sortable: y }),
221967
- t.create({ property: "category", headerLabel: "Category", width: P, sortable: y }),
221968
- t.create({ property: "quantity", headerLabel: "Qty", width: u, ...U }),
221969
- t.create({ property: "price", headerLabel: "Ø Price", width: E, ...U }),
221970
- t.create({ property: "total", headerLabel: "Total", width: P, ...U })
221963
+ t.create({ property: "id", headerLabel: "Order", width: c, ...U }),
221964
+ t.create({ property: "country", headerLabel: "Country", width: L, sortable: y }),
221965
+ t.create({ property: "city", headerLabel: "City", width: L, sortable: y }),
221966
+ t.create({ property: "product", headerLabel: "Product", width: I, sortable: y }),
221967
+ t.create({ property: "category", headerLabel: "Category", width: L, sortable: y }),
221968
+ t.create({ property: "quantity", headerLabel: "Qty", width: c, ...U }),
221969
+ t.create({ property: "price", headerLabel: "Ø Price", width: K, ...U }),
221970
+ t.create({ property: "total", headerLabel: "Total", width: L, ...U })
221971
221971
  ];
221972
221972
  }
221973
- function na(a = 5e4, e = ["country", "city"], r = 1) {
221974
- const n = new S("row", "multi"), m = {
221975
- ...new N(),
221973
+ function ya(a = 5e4, e = ["country", "city"], r = 1) {
221974
+ const n = new h("row", "multi"), m = {
221975
+ ...new f(),
221976
221976
  hoverColumnVisible: !1,
221977
221977
  getSelectionModel: () => n
221978
- }, s = De.createTableModel({
221979
- rows: H(a),
221980
- columnDefs: Ce(),
221978
+ }, s = qe.createTableModel({
221979
+ rows: V(a),
221980
+ columnDefs: Pe(),
221981
221981
  groupBy: e,
221982
221982
  aggregations: { quantity: "sum", price: "avg", total: "sum" },
221983
221983
  expanded: r,
221984
221984
  tableOptions: m
221985
221985
  });
221986
- return new T(s, m);
221986
+ return new o(s, m);
221987
221987
  }
221988
- const Zr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
221989
- class zr {
221990
- render(e, r, n, m, s, d, p) {
221991
- if (typeof d == "number") {
221992
- const i = p.createElement("div");
221993
- p.addClass(i, "ge-table-label-div");
221994
- const l = p.createElement("div");
221995
- p.addClass(l, "ge-table-label"), p.appendChild(l, p.createText(Zr.format(d))), p.appendChild(i, l), p.appendChild(e, i);
221988
+ const vr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
221989
+ class kr {
221990
+ render(e, r, n, m, s, i, p) {
221991
+ if (typeof i == "number") {
221992
+ const d = p.createElement("div");
221993
+ p.addClass(d, "ge-table-label-div");
221994
+ const u = p.createElement("div");
221995
+ p.addClass(u, "ge-table-label"), p.appendChild(u, p.createText(vr.format(i))), p.appendChild(d, u), p.appendChild(e, d);
221996
221996
  }
221997
221997
  }
221998
221998
  }
221999
- function ma(a = 5e4) {
222000
- const e = new S("range", "multi"), r = {
222001
- ...new N(),
221999
+ function pa(a = 5e4) {
222000
+ const e = new h("range", "multi"), r = {
222001
+ ...new f(),
222002
222002
  hoverColumnVisible: !1,
222003
222003
  getSelectionModel: () => e
222004
- }, n = Ce(), m = new zr();
222005
- for (const d of n)
222006
- (d.property === "price" || d.property === "total") && (d.rendererMap.body = m);
222007
- const s = b.createTableModel({
222008
- rows: H(a),
222004
+ }, n = Pe(), m = new kr();
222005
+ for (const i of n)
222006
+ (i.property === "price" || i.property === "total") && (i.rendererMap.body = m);
222007
+ const s = N.createTableModel({
222008
+ rows: V(a),
222009
222009
  columnDefs: n,
222010
222010
  footerAggregates: {
222011
222011
  rows: [
222012
222012
  {
222013
- label: (d) => `Sum · ${d.toLocaleString("en-US")} orders`,
222013
+ label: (i) => `Sum · ${i.toLocaleString("en-US")} orders`,
222014
222014
  aggregates: { quantity: "sum", total: "sum" }
222015
222015
  },
222016
222016
  { label: "Average", aggregates: { quantity: "avg", price: "avg", total: "avg" } },
@@ -222021,39 +222021,39 @@ function ma(a = 5e4) {
222021
222021
  },
222022
222022
  tableOptions: r
222023
222023
  });
222024
- return new T(s, r);
222024
+ return new o(s, r);
222025
222025
  }
222026
- function wr(a) {
222026
+ function Dr(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 vr(a, e = 42) {
222034
- const r = wr(e + 1), n = Date.UTC(2024, 0, 1), m = 3 * 365 + 1;
222035
- return H(a, e).map((s) => ({
222033
+ function xr(a, e = 42) {
222034
+ const r = Dr(e + 1), n = Date.UTC(2024, 0, 1), m = 3 * 365 + 1;
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 kr = { name: "year", label: "Year", value: (a) => Number(a.date.slice(0, 4)) }, Dr = {
222040
+ const Ur = { name: "year", label: "Year", value: (a) => Number(a.date.slice(0, 4)) }, qr = {
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 sa(a = 5e4, e = [kr, Dr], r = 0) {
222047
- const n = new S("range", "multi"), m = {
222048
- ...new N(),
222046
+ function ua(a = 5e4, e = [Ur, qr], r = 0) {
222047
+ const n = new h("range", "multi"), m = {
222048
+ ...new f(),
222049
222049
  hoverColumnVisible: !1,
222050
222050
  getSelectionModel: () => n
222051
- }, s = xe.createTableModel({
222052
- rows: vr(a),
222051
+ }, s = Me.createTableModel({
222052
+ rows: xr(a),
222053
222053
  rowFields: [{ value: "country", label: "Country" }, { value: "city", label: "City" }],
222054
222054
  columnFields: e,
222055
222055
  values: [
222056
- { value: "total", label: "Revenue", format: (d) => d === void 0 ? "" : Math.round(d).toLocaleString("en-US") },
222056
+ { value: "total", label: "Revenue", format: (i) => i === void 0 ? "" : Math.round(i).toLocaleString("en-US") },
222057
222057
  { value: "id", aggregator: "count", label: "Orders" }
222058
222058
  ],
222059
222059
  expanded: r,
@@ -222061,24 +222061,24 @@ function sa(a = 5e4, e = [kr, Dr], r = 0) {
222061
222061
  groupColumn: { showCount: !1 },
222062
222062
  tableOptions: m
222063
222063
  });
222064
- return new T(s, m);
222064
+ return new o(s, m);
222065
222065
  }
222066
- const xr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
222067
- class Ur {
222068
- render(e, r, n, m, s, d, p) {
222069
- if (d == null || d === "")
222066
+ const Mr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
222067
+ class Br {
222068
+ render(e, r, n, m, s, i, p) {
222069
+ if (i == null || i === "")
222070
222070
  return;
222071
- const i = p.createElement("div");
222072
- p.addClass(i, "ge-table-label-div");
222073
- const l = p.createElement("div");
222074
- p.addClass(l, "ge-table-label");
222075
- const f = typeof d == "number" ? xr.format(d) : `${d}`;
222076
- p.appendChild(l, p.createText(f)), p.appendChild(i, l), p.appendChild(e, i);
222071
+ const d = p.createElement("div");
222072
+ p.addClass(d, "ge-table-label-div");
222073
+ const u = p.createElement("div");
222074
+ p.addClass(u, "ge-table-label");
222075
+ const b = typeof i == "number" ? Mr.format(i) : `${i}`;
222076
+ p.appendChild(u, p.createText(b)), p.appendChild(d, u), p.appendChild(e, d);
222077
222077
  }
222078
222078
  }
222079
- function qr(a, e = 8) {
222079
+ function Ar(a, e = 8) {
222080
222080
  const r = [0, 0, 0, 5, 5, 10, 15];
222081
- return H(a, e).map((n, m) => ({
222081
+ return V(a, e).map((n, m) => ({
222082
222082
  id: n.id,
222083
222083
  country: n.country,
222084
222084
  product: n.product,
@@ -222087,23 +222087,23 @@ function qr(a, e = 8) {
222087
222087
  discount: r[(m * 7 + n.quantity) % r.length]
222088
222088
  }));
222089
222089
  }
222090
- const o = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], footerClasses: ["ge-table-text-align-right"] }, q = {
222090
+ const S = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], footerClasses: ["ge-table-text-align-right"] }, q = {
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 Mr(a = q.custom) {
222097
- const e = new Ur();
222096
+ function Rr(a = q.custom) {
222097
+ const e = new Br();
222098
222098
  return [
222099
- t.create({ property: "id", headerLabel: "Line", width: z, ...o, sortable: y }),
222100
- t.create({ property: "country", headerLabel: "Country", width: Ue, sortable: y }),
222101
- t.create({ property: "product", headerLabel: "Product", width: R, sortable: y }),
222099
+ t.create({ property: "id", headerLabel: "Line", width: z, ...S, sortable: y }),
222100
+ t.create({ property: "country", headerLabel: "Country", width: Be, sortable: y }),
222101
+ t.create({ property: "product", headerLabel: "Product", width: I, sortable: y }),
222102
222102
  t.create({
222103
222103
  property: "quantity",
222104
222104
  headerLabel: "Qty",
222105
222105
  width: z,
222106
- ...o,
222106
+ ...S,
222107
222107
  sortable: y,
222108
222108
  editable: y,
222109
222109
  editInputPipe: G
@@ -222111,8 +222111,8 @@ function Mr(a = q.custom) {
222111
222111
  t.create({
222112
222112
  property: "price",
222113
222113
  headerLabel: "Price",
222114
- width: E,
222115
- ...o,
222114
+ width: K,
222115
+ ...S,
222116
222116
  sortable: y,
222117
222117
  editable: y,
222118
222118
  editInputPipe: G,
@@ -222122,7 +222122,7 @@ function Mr(a = q.custom) {
222122
222122
  property: "discount",
222123
222123
  headerLabel: "Disc. %",
222124
222124
  width: z,
222125
- ...o,
222125
+ ...S,
222126
222126
  sortable: y,
222127
222127
  editable: y,
222128
222128
  editInputPipe: G
@@ -222131,7 +222131,7 @@ function Mr(a = q.custom) {
222131
222131
  property: "net",
222132
222132
  headerLabel: "Net",
222133
222133
  width: g,
222134
- ...o,
222134
+ ...S,
222135
222135
  sortable: y,
222136
222136
  formula: q.net,
222137
222137
  bodyRenderer: e,
@@ -222140,8 +222140,8 @@ function Mr(a = q.custom) {
222140
222140
  t.create({
222141
222141
  property: "vat",
222142
222142
  headerLabel: "VAT 19%",
222143
- width: E,
222144
- ...o,
222143
+ width: K,
222144
+ ...S,
222145
222145
  sortable: y,
222146
222146
  formula: q.vat,
222147
222147
  bodyRenderer: e,
@@ -222151,7 +222151,7 @@ function Mr(a = q.custom) {
222151
222151
  property: "gross",
222152
222152
  headerLabel: "Gross",
222153
222153
  width: g,
222154
- ...o,
222154
+ ...S,
222155
222155
  sortable: y,
222156
222156
  formula: q.gross,
222157
222157
  bodyRenderer: e,
@@ -222161,7 +222161,7 @@ function Mr(a = q.custom) {
222161
222161
  property: "share",
222162
222162
  headerLabel: "Share of net",
222163
222163
  width: g,
222164
- ...o,
222164
+ ...S,
222165
222165
  sortable: y,
222166
222166
  formula: "[net]",
222167
222167
  showValuesAs: { mode: "percentOfColumnTotal", fractionDigits: 2 }
@@ -222170,7 +222170,7 @@ function Mr(a = q.custom) {
222170
222170
  property: "rank",
222171
222171
  headerLabel: "Rank",
222172
222172
  width: z,
222173
- ...o,
222173
+ ...S,
222174
222174
  sortable: y,
222175
222175
  formula: "[gross]",
222176
222176
  showValuesAs: "rank"
@@ -222178,20 +222178,20 @@ function Mr(a = q.custom) {
222178
222178
  t.create({
222179
222179
  property: "custom",
222180
222180
  headerLabel: "Custom formula",
222181
- width: P,
222182
- ...o,
222181
+ width: L,
222182
+ ...S,
222183
222183
  sortable: y,
222184
222184
  formula: a
222185
222185
  })
222186
222186
  ];
222187
222187
  }
222188
- function ia(a = 2e3) {
222188
+ function ca(a = 2e3) {
222189
222189
  const e = {
222190
- ...new N(),
222190
+ ...new f(),
222191
222191
  hoverColumnVisible: !1
222192
- }, r = b.createTableModel({
222193
- rows: qr(a),
222194
- columnDefs: Mr(),
222192
+ }, r = N.createTableModel({
222193
+ rows: Ar(a),
222194
+ columnDefs: Rr(),
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"
@@ -222199,9 +222199,9 @@ function ia(a = 2e3) {
222199
222199
  fixedLeftColumnCount: 1,
222200
222200
  tableOptions: e
222201
222201
  });
222202
- return new T(r, e);
222202
+ return new o(r, e);
222203
222203
  }
222204
- const v = [
222204
+ const k = [
222205
222205
  "Fix login timeout",
222206
222206
  "Ship row drag",
222207
222207
  "Write release notes",
@@ -222222,45 +222222,45 @@ const v = [
222222
222222
  "Plan Q1 roadmap",
222223
222223
  "Refactor date utils",
222224
222224
  "Security headers"
222225
- ], te = ["Anna", "Ben", "Chen", "Dana", "Emil"], ne = ["todo", "doing", "todo", "done", "todo"];
222226
- function Br(a = 20, e = !1) {
222225
+ ], ne = ["Anna", "Ben", "Chen", "Dana", "Emil"], me = ["todo", "doing", "todo", "done", "todo"];
222226
+ function Ir(a = 20, e = !1) {
222227
222227
  return Array.from({ length: a }, (r, n) => ({
222228
222228
  id: n + 1,
222229
- title: n < v.length ? v[n] : `${v[n % v.length]} #${Math.floor(n / v.length) + 1}`,
222230
- owner: te[n % te.length],
222231
- status: ne[n * 3 % ne.length],
222229
+ title: n < k.length ? k[n] : `${k[n % k.length]} #${Math.floor(n / k.length) + 1}`,
222230
+ owner: ne[n % ne.length],
222231
+ status: me[n * 3 % me.length],
222232
222232
  estimate: 1 + n * 7 % 13,
222233
222233
  locked: e && n === 0
222234
222234
  }));
222235
222235
  }
222236
- function da(a = Br(20, !0), e = {}) {
222237
- const r = new S("row", "multi"), n = new Y("cell"), m = {
222238
- ...new N(),
222236
+ function la(a = Ir(20, !0), e = {}) {
222237
+ const r = new h("row", "multi"), n = new H("cell"), m = {
222238
+ ...new f(),
222239
222239
  hoverColumnVisible: !1,
222240
222240
  getSelectionModel: () => r,
222241
222241
  getFocusModel: () => n,
222242
222242
  rowDragOptions: e,
222243
222243
  ariaLabel: "Priority list"
222244
- }, s = b.createTableModel({
222244
+ }, s = N.createTableModel({
222245
222245
  rows: a,
222246
222246
  rowNumbersVisible: { headerLabel: "#" },
222247
222247
  columnDefs: [
222248
- t.create({ property: "title", headerLabel: "Task", width: ce, rowDrag: (d) => !d.locked }),
222248
+ t.create({ property: "title", headerLabel: "Task", width: ge, rowDrag: (i) => !i.locked }),
222249
222249
  t.create({ property: "owner", headerLabel: "Owner", width: g }),
222250
- t.create({ property: "status", headerLabel: "Status", width: u }),
222250
+ t.create({ property: "status", headerLabel: "Status", width: c }),
222251
222251
  t.create({
222252
222252
  property: "estimate",
222253
222253
  headerLabel: "Hours",
222254
- width: u,
222254
+ width: c,
222255
222255
  headerClasses: ["ge-table-text-align-right"],
222256
222256
  bodyClasses: ["ge-table-text-align-right"]
222257
222257
  })
222258
222258
  ],
222259
222259
  tableOptions: m
222260
222260
  });
222261
- return new T(s, m);
222261
+ return new o(s, m);
222262
222262
  }
222263
- const Ar = [
222263
+ const Or = [
222264
222264
  {
222265
222265
  id: 0,
222266
222266
  preName: "Prename0",
@@ -384134,10 +384134,10 @@ const Ar = [
384134
384134
  friends: []
384135
384135
  }
384136
384136
  ];
384137
- function Ir(a = !1) {
384138
- const e = new S("range", "multi");
384139
- return a && (e.addSelection(new w(0, 0, 0, 2)), e.addSelection(new w(2, 1, 2, 2)), e.addSelection(new w(1, 5, 6, 7)), e.addSelection(new w(0, 8, 0, 8)), e.addSelection(new w(5, 6, 10, 10))), {
384140
- ...new N(),
384137
+ function Hr(a = !1) {
384138
+ const e = new h("range", "multi");
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
+ ...new f(),
384141
384141
  hoverColumnVisible: !1,
384142
384142
  defaultRowHeights: {
384143
384143
  header: 50,
@@ -384145,7 +384145,7 @@ function Ir(a = !1) {
384145
384145
  footer: 0
384146
384146
  },
384147
384147
  autoRestoreOptions: {
384148
- ...new Re(),
384148
+ ...new Ve(),
384149
384149
  getStorageKeyFn: () => "TreetablePeopleComponent",
384150
384150
  autoRestoreCollapsedExpandedState: !0,
384151
384151
  autoRestoreScrollPosition: !0,
@@ -384155,15 +384155,15 @@ function Ir(a = !1) {
384155
384155
  getSelectionModel: () => e
384156
384156
  };
384157
384157
  }
384158
- function Rr() {
384158
+ function Vr() {
384159
384159
  return [
384160
- new t("lastName", "Last Name", Te),
384160
+ new t("lastName", "Last Name", he),
384161
384161
  new t("preName", "Pre Name", g),
384162
384162
  t.create({
384163
384163
  property: "age",
384164
384164
  headerLabel: "Age",
384165
- width: oe,
384166
- bodyRenderer: new qe(),
384165
+ width: Se,
384166
+ bodyRenderer: new Ae(),
384167
384167
  editable: y,
384168
384168
  // editInputPipe: (value: any) => value ? Number(value) : ""
384169
384169
  editInputPipe: G
@@ -384171,42 +384171,42 @@ function Rr() {
384171
384171
  new t(
384172
384172
  "birth",
384173
384173
  "Birthday",
384174
- u,
384174
+ c,
384175
384175
  void 0,
384176
- Me.bodyRenderer(new O())
384176
+ Re.bodyRenderer(new O())
384177
384177
  ),
384178
384178
  t.create({
384179
384179
  property: "gender",
384180
384180
  headerLabel: " ",
384181
- width: Ae,
384182
- bodyRenderer: new ye(),
384181
+ width: Oe,
384182
+ bodyRenderer: new ue(),
384183
384183
  editable: y,
384184
- getEditRenderer: () => new Be([
384185
- new j("female", "♀"),
384186
- new j("male", "♂")
384184
+ getEditRenderer: () => new Ie([
384185
+ new X("female", "♀"),
384186
+ new X("male", "♂")
384187
384187
  ])
384188
384188
  }),
384189
- new t("address.street", "Strasse", le),
384190
- new t("address.number", "Nr", Ie),
384191
- new t("address.zip", "Zip", L),
384189
+ new t("address.street", "Strasse", be),
384190
+ new t("address.number", "Nr", He),
384191
+ new t("address.zip", "Zip", P),
384192
384192
  new t("address.city", "City", g),
384193
384193
  new t("address.country", "Country", g),
384194
- new t("id", "ID", L)
384194
+ new t("id", "ID", P)
384195
384195
  ];
384196
384196
  }
384197
- function ya(a = !1) {
384198
- const e = Ir(a), r = Rr();
384197
+ function ga(a = !1) {
384198
+ const e = Hr(a), r = Vr();
384199
384199
  for (const s of r)
384200
384200
  s.sortable = y, s.editable = y;
384201
- r[0].editable = F;
384202
- const n = pe.buildTreeRows(Ar, "friends"), m = b.createTableModel({
384201
+ r[0].editable = _;
384202
+ const n = ce.buildTreeRows(Or, "friends"), m = N.createTableModel({
384203
384203
  rows: n,
384204
384204
  columnDefs: r,
384205
384205
  tableOptions: e,
384206
384206
  fixedLeftColumnCount: 1,
384207
384207
  fixedRightColumnCount: 1
384208
384208
  });
384209
- return new T(
384209
+ return new o(
384210
384210
  m,
384211
384211
  e
384212
384212
  );
@@ -384229,7 +384229,7 @@ const M = [
384229
384229
  ["Tea selection", "Kitchen"],
384230
384230
  ["Water bottle", "Kitchen"]
384231
384231
  ];
384232
- function Or(a = 16) {
384232
+ function $r(a = 16) {
384233
384233
  return Array.from({ length: a }, (e, r) => {
384234
384234
  const [n, m] = M[r % M.length];
384235
384235
  return {
@@ -384244,69 +384244,69 @@ function Or(a = 16) {
384244
384244
  };
384245
384245
  });
384246
384246
  }
384247
- function pa(a = Or(), e = !0, r = !0) {
384248
- const n = new S("range", "multi"), m = new Y("cell"), s = {
384249
- ...new N(),
384247
+ function ba(a = $r(), e = !0, r = !0) {
384248
+ const n = new h("range", "multi"), m = new H("cell"), s = {
384249
+ ...new f(),
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
- }, d = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"] }, p = b.createTableModel({
384256
+ }, i = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"] }, p = N.createTableModel({
384257
384257
  rows: a,
384258
384258
  fixedLeftColumnCount: 1,
384259
384259
  columnDefs: [
384260
- t.create({ property: "sku", headerLabel: "SKU", width: u }),
384260
+ t.create({ property: "sku", headerLabel: "SKU", width: c }),
384261
384261
  t.create({ property: "product", headerLabel: "Product", width: Z, editable: y }),
384262
- t.create({ property: "category", headerLabel: "Category", width: u, editable: y }),
384262
+ t.create({ property: "category", headerLabel: "Category", width: c, editable: y }),
384263
384263
  t.create({
384264
384264
  property: "validFrom",
384265
384265
  headerLabel: "Valid from",
384266
384266
  width: g,
384267
384267
  editable: y,
384268
- validate: (i) => /^\d{4}-\d{2}-\d{2}$/.test(String(i)) ? void 0 : "Date as YYYY-MM-DD"
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
- width: u,
384273
+ width: c,
384274
384274
  editable: y,
384275
384275
  editInputPipe: G,
384276
- ...d,
384277
- validate: (i) => typeof i == "number" && i >= 0 ? void 0 : "A price is a number ≥ 0"
384276
+ ...i,
384277
+ validate: (d) => typeof d == "number" && d >= 0 ? void 0 : "A price is a number ≥ 0"
384278
384278
  }),
384279
384279
  t.create({
384280
384280
  property: "discount",
384281
384281
  headerLabel: "Discount %",
384282
- width: u,
384282
+ width: c,
384283
384283
  editable: y,
384284
384284
  editInputPipe: G,
384285
- ...d,
384286
- validate: (i) => typeof i == "number" && i >= 0 && i <= 50 ? void 0 : "Discount 0 … 50 %"
384285
+ ...i,
384286
+ validate: (d) => typeof d == "number" && d >= 0 && d <= 50 ? void 0 : "Discount 0 … 50 %"
384287
384287
  }),
384288
384288
  t.create({
384289
384289
  property: "net",
384290
384290
  headerLabel: "Net",
384291
- width: u,
384292
- ...d,
384293
- valueGetter: (i) => Math.round(i.price * (100 - i.discount)) / 100
384291
+ width: c,
384292
+ ...i,
384293
+ valueGetter: (d) => Math.round(d.price * (100 - d.discount)) / 100
384294
384294
  }),
384295
384295
  t.create({
384296
384296
  property: "stock",
384297
384297
  headerLabel: "Stock",
384298
- width: u,
384298
+ width: c,
384299
384299
  editable: y,
384300
384300
  editInputPipe: G,
384301
- ...d,
384302
- validate: (i) => Number.isInteger(i) && i >= 0 ? void 0 : "Stock is a whole number ≥ 0"
384301
+ ...i,
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 T(p, s);
384307
+ return new o(p, s);
384308
384308
  }
384309
- const me = [
384309
+ const se = [
384310
384310
  "Ada Lovelace",
384311
384311
  "Alan Turing",
384312
384312
  "Grace Hopper",
@@ -384317,7 +384317,7 @@ const me = [
384317
384317
  "Ken Thompson",
384318
384318
  "Katherine Johnson",
384319
384319
  "Tim Berners-Lee"
384320
- ], se = ["Berlin", "Hamburg", "Munich", "Cologne", "Vienna", "Zurich"], ie = ["open", "paid", "shipped", "delivered"], de = [
384320
+ ], ie = ["Berlin", "Hamburg", "Munich", "Cologne", "Vienna", "Zurich"], de = ["open", "paid", "shipped", "delivered"], ye = [
384321
384321
  ["Desk lamp", 39.9],
384322
384322
  ["Standing desk", 499],
384323
384323
  ["Office chair", 289],
@@ -384331,54 +384331,54 @@ const me = [
384331
384331
  ["Coffee beans", 15.5],
384332
384332
  ["Water bottle", 19.9]
384333
384333
  ];
384334
- function Hr(a = 1e3) {
384334
+ function Fr(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
- const s = [], d = 1 + Math.floor(r() * 8);
384339
- for (let i = 0; i < d; i++) {
384340
- const [l, f] = de[Math.floor(r() * de.length)];
384341
- s.push({ sku: `SKU-${String(1 + Math.floor(r() * 900)).padStart(3, "0")}`, product: l, quantity: 1 + Math.floor(r() * 5), unitPrice: f });
384338
+ const s = [], i = 1 + Math.floor(r() * 8);
384339
+ for (let d = 0; d < i; d++) {
384340
+ const [u, b] = ye[Math.floor(r() * ye.length)];
384341
+ s.push({ sku: `SKU-${String(1 + Math.floor(r() * 900)).padStart(3, "0")}`, product: u, quantity: 1 + Math.floor(r() * 5), unitPrice: b });
384342
384342
  }
384343
384343
  const p = 1 + m % 28;
384344
384344
  n.push({
384345
384345
  id: m + 1,
384346
384346
  orderNo: `ORD-${String(10001 + m)}`,
384347
- customer: me[Math.floor(r() * me.length)],
384348
- city: se[m % se.length],
384347
+ customer: se[Math.floor(r() * se.length)],
384348
+ city: ie[m % ie.length],
384349
384349
  date: `2026-${String(1 + m % 9).padStart(2, "0")}-${String(p).padStart(2, "0")}`,
384350
- status: ie[Math.floor(r() * ie.length)],
384351
- total: Math.round(s.reduce((i, l) => i + l.quantity * l.unitPrice, 0) * 100) / 100,
384350
+ status: de[Math.floor(r() * de.length)],
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 Vr(a) {
384358
- return b.createTableModel({
384357
+ function Er(a) {
384358
+ return N.createTableModel({
384359
384359
  rows: a.items,
384360
384360
  columnDefs: [
384361
- t.create({ property: "sku", headerLabel: "SKU", width: u }),
384361
+ t.create({ property: "sku", headerLabel: "SKU", width: c }),
384362
384362
  t.create({ property: "product", headerLabel: "Product", width: Z }),
384363
- t.create({ property: "quantity", headerLabel: "Qty", width: u, bodyClasses: ["ge-table-text-align-right"] }),
384363
+ t.create({ property: "quantity", headerLabel: "Qty", width: c, bodyClasses: ["ge-table-text-align-right"] }),
384364
384364
  t.create({ property: "unitPrice", headerLabel: "Unit price", width: g, bodyClasses: ["ge-table-text-align-right"] })
384365
384365
  ]
384366
384366
  });
384367
384367
  }
384368
- function ua(a = Hr(1e5), e = {}) {
384369
- const r = b.createTableModel({
384368
+ function Na(a = Fr(1e5), e = {}) {
384369
+ const r = N.createTableModel({
384370
384370
  rows: a,
384371
384371
  columnDefs: [
384372
- t.create({ property: "orderNo", headerLabel: "Order", width: R }),
384372
+ t.create({ property: "orderNo", headerLabel: "Order", width: I }),
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 }),
384376
- t.create({ property: "status", headerLabel: "Status", width: u }),
384376
+ t.create({ property: "status", headerLabel: "Status", width: c }),
384377
384377
  t.create({ property: "total", headerLabel: "Total", width: g, sortable: () => !0, bodyClasses: ["ge-table-text-align-right"] })
384378
384378
  ],
384379
384379
  fixedLeftColumnCount: 1
384380
- }), n = new Y("cell"), m = new S("row", "multi"), s = {
384381
- ...new N(),
384380
+ }), n = new H("cell"), m = new h("row", "multi"), s = {
384381
+ ...new f(),
384382
384382
  hoverColumnVisible: !1,
384383
384383
  getFocusModel: () => n,
384384
384384
  getSelectionModel: () => m,
@@ -384386,64 +384386,164 @@ function ua(a = Hr(1e5), e = {}) {
384386
384386
  masterDetail: {
384387
384387
  detailHeight: 222,
384388
384388
  // header + 5 rows, borders, padding of the detail cell
384389
- detailRenderer: (d, p, i) => {
384390
- i.createTable({ tableModel: Vr(p) });
384389
+ detailRenderer: (i, p, d) => {
384390
+ d.createTable({ tableModel: Er(p) });
384391
384391
  },
384392
- getRowId: (d) => d.id,
384392
+ getRowId: (i) => i.id,
384393
384393
  ...e
384394
384394
  }
384395
384395
  };
384396
- return new T(r, s);
384396
+ return new o(r, s);
384397
+ }
384398
+ const E = [
384399
+ ["الرياض", "السعودية", "RUH"],
384400
+ ["جدة", "السعودية", "JED"],
384401
+ ["مكة", "السعودية", "MKK"],
384402
+ ["الدمام", "السعودية", "DMM"],
384403
+ ["دبي", "الإمارات", "DXB"],
384404
+ ["أبوظبي", "الإمارات", "AUH"],
384405
+ ["الشارقة", "الإمارات", "SHJ"],
384406
+ ["الدوحة", "قطر", "DOH"],
384407
+ ["الكويت", "الكويت", "KWI"],
384408
+ ["المنامة", "البحرين", "BAH"],
384409
+ ["مسقط", "عُمان", "MCT"],
384410
+ ["القاهرة", "مصر", "CAI"],
384411
+ ["الإسكندرية", "مصر", "ALY"],
384412
+ ["عمّان", "الأردن", "AMM"],
384413
+ ["بيروت", "لبنان", "BEY"],
384414
+ ["بغداد", "العراق", "BGW"],
384415
+ ["تونس", "تونس", "TUN"],
384416
+ ["الجزائر", "الجزائر", "ALG"],
384417
+ ["الرباط", "المغرب", "RBA"],
384418
+ ["الدار البيضاء", "المغرب", "CMN"]
384419
+ ], pe = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"];
384420
+ function _r(a) {
384421
+ return () => {
384422
+ a |= 0, a = a + 1831565813 | 0;
384423
+ let e = Math.imul(a ^ a >>> 15, 1 | a);
384424
+ return e = e + Math.imul(e ^ e >>> 7, 61 | e) ^ e, ((e ^ e >>> 14) >>> 0) / 4294967296;
384425
+ };
384426
+ }
384427
+ function Kr(a = 2e3, e = 7) {
384428
+ const r = _r(e);
384429
+ return Array.from({ length: a }, (n, m) => {
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
+ return {
384432
+ id: m + 1,
384433
+ city: s,
384434
+ country: i,
384435
+ branch: `فرع ${p}-${String(Math.floor(m / E.length) + 1).padStart(2, "0")}`,
384436
+ m1: u(),
384437
+ m2: u(),
384438
+ m3: u(),
384439
+ m4: u(),
384440
+ m5: u(),
384441
+ m6: u(),
384442
+ m7: u(),
384443
+ m8: u(),
384444
+ m9: u(),
384445
+ m10: u(),
384446
+ m11: u(),
384447
+ m12: u()
384448
+ };
384449
+ });
384450
+ }
384451
+ function fa(a = "rtl", e = Kr()) {
384452
+ const r = new h("range", "multi"), n = new H("cell"), m = {
384453
+ ...new f(),
384454
+ direction: a,
384455
+ hoverColumnVisible: !1,
384456
+ getSelectionModel: () => r,
384457
+ getFocusModel: () => n,
384458
+ ariaLabel: "المبيعات حسب المدينة"
384459
+ }, s = ["ge-table-text-align-right"], i = pe.map((b, T) => t.create({
384460
+ property: `m${T + 1}`,
384461
+ headerLabel: b,
384462
+ width: c,
384463
+ bodyClasses: s,
384464
+ footerClasses: s,
384465
+ sortable: () => !0
384466
+ })), p = [
384467
+ t.create({ property: "city", headerLabel: "المدينة", width: g, sortable: () => !0 }),
384468
+ t.create({ property: "country", headerLabel: "البلد", width: g, sortable: () => !0 }),
384469
+ t.create({ property: "branch", headerLabel: "الفرع", width: L }),
384470
+ ...i,
384471
+ t.create({
384472
+ property: "total",
384473
+ headerLabel: "المجموع",
384474
+ width: g,
384475
+ bodyClasses: s,
384476
+ footerClasses: s,
384477
+ sortable: () => !0,
384478
+ valueGetter: (b) => pe.reduce((T, w, Ge) => T + b[`m${Ge + 1}`], 0)
384479
+ })
384480
+ ], d = Object.fromEntries([...i.map((b) => b.property), "total"].map((b) => [b, "sum"])), u = N.createTableModel({
384481
+ rows: e,
384482
+ columnDefs: p,
384483
+ rowNumbersVisible: !0,
384484
+ fixedLeftColumnCount: 1,
384485
+ // the city stays at the start (right)
384486
+ fixedRightColumnCount: 1,
384487
+ // the total stays at the end (left)
384488
+ footerAggregates: {
384489
+ rows: [{ label: "المجموع", aggregates: d }],
384490
+ labelProperty: "branch"
384491
+ },
384492
+ tableOptions: m
384493
+ });
384494
+ return new o(u, m);
384397
384495
  }
384398
384496
  export {
384399
- Qr as COL_IDX_UPDATED_AT,
384400
- Oe as ChangePercentageRenderer,
384401
- Fe as CirculatingSupplyRenderer,
384402
- Ee as CoinIconRenderer,
384497
+ na as COL_IDX_UPDATED_AT,
384498
+ $e as ChangePercentageRenderer,
384499
+ Ke as CirculatingSupplyRenderer,
384500
+ We as CoinIconRenderer,
384403
384501
  q as INVOICE_FORMULAS,
384404
- Tr as LargeBodyModel,
384405
- Ve as NameAndSymbolRenderer,
384406
- He as UsdRenderer,
384407
- $e as Volumn24hRenderer,
384408
- Jr as applyBodyRenderer,
384409
- ma as createAggregationModelAndOptions,
384410
- sr as createColumnDefs,
384411
- Fr as createCryptoModelAndOptions,
384412
- ia as createFormulaModelAndOptions,
384413
- Yr as createHeadergroupModel,
384414
- Kr as createHeatMapModel,
384415
- Wr as createHeatMapSeattleModel,
384416
- Mr as createInvoiceColumnDefs,
384417
- aa as createLargeModelAndOptions,
384418
- ta as createManyTypesModelAndOptions,
384419
- ua as createMasterDetailModelAndOptions,
384420
- Vr as createOrderItemsModel,
384421
- ra as createOrderModelAndOptions,
384422
- sa as createPivotModelAndOptions,
384423
- pa as createPriceListModelAndOptions,
384424
- da as createRowDragModelAndOptions,
384425
- na as createRowGroupModelAndOptions,
384426
- Ce as createSalesOrderColumnDefs,
384427
- Xr as createSimplePersonModel,
384428
- ir as createTableOptions,
384429
- mr as createTableRows,
384430
- jr as createTeamHeadergroupModel,
384431
- ea as createTimeTableModel,
384432
- Rr as createTreePeopleColumnDefs,
384433
- ya as createTreePeopleModelAndOptions,
384434
- Ir as createTreePeopleTableOptions,
384435
- _e as cryptoData,
384436
- dr as data,
384437
- qr as generateInvoiceLines,
384438
- Hr as generateMasterOrders,
384439
- vr as generatePivotOrders,
384440
- Or as generatePriceItems,
384441
- H as generateSalesOrders,
384442
- Er as generateSimpleModel,
384443
- Br as generateTasks,
384444
- _r as generateTreeCheckboxModel,
384445
- Dr as pivotQuarter,
384446
- kr as pivotYear,
384447
- yr as tableOptions,
384448
- nr as teamHeaderGroups
384502
+ Sr as LargeBodyModel,
384503
+ Ee as NameAndSymbolRenderer,
384504
+ Fe as UsdRenderer,
384505
+ _e as Volumn24hRenderer,
384506
+ ta as applyBodyRenderer,
384507
+ pa as createAggregationModelAndOptions,
384508
+ yr as createColumnDefs,
384509
+ Yr as createCryptoModelAndOptions,
384510
+ ca as createFormulaModelAndOptions,
384511
+ ea as createHeadergroupModel,
384512
+ Jr as createHeatMapModel,
384513
+ Qr as createHeatMapSeattleModel,
384514
+ Rr as createInvoiceColumnDefs,
384515
+ ia as createLargeModelAndOptions,
384516
+ da as createManyTypesModelAndOptions,
384517
+ Na as createMasterDetailModelAndOptions,
384518
+ Er as createOrderItemsModel,
384519
+ sa as createOrderModelAndOptions,
384520
+ ua as createPivotModelAndOptions,
384521
+ ba as createPriceListModelAndOptions,
384522
+ la as createRowDragModelAndOptions,
384523
+ ya as createRowGroupModelAndOptions,
384524
+ fa as createRtlCitiesModelAndOptions,
384525
+ Pe as createSalesOrderColumnDefs,
384526
+ aa as createSimplePersonModel,
384527
+ pr as createTableOptions,
384528
+ dr as createTableRows,
384529
+ ra as createTeamHeadergroupModel,
384530
+ ma as createTimeTableModel,
384531
+ Vr as createTreePeopleColumnDefs,
384532
+ ga as createTreePeopleModelAndOptions,
384533
+ Hr as createTreePeopleTableOptions,
384534
+ Ye as cryptoData,
384535
+ ur as data,
384536
+ Ar as generateInvoiceLines,
384537
+ Fr as generateMasterOrders,
384538
+ xr as generatePivotOrders,
384539
+ $r as generatePriceItems,
384540
+ Kr as generateRtlCitySales,
384541
+ V as generateSalesOrders,
384542
+ jr as generateSimpleModel,
384543
+ Ir as generateTasks,
384544
+ Xr as generateTreeCheckboxModel,
384545
+ qr as pivotQuarter,
384546
+ Ur as pivotYear,
384547
+ cr as tableOptions,
384548
+ ir as teamHeaderGroups
384449
384549
  };