@guiexpert/demo-table-models 1.1.106 → 1.1.108

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,25 +1,25 @@
1
- import { ColumnDef as t, px60 as G, px120 as b, px100 as c, px160 as $, px200 as z, px140 as P, TableOptions as T, TableModelAndOptions as o, TableFactory as f, Size as l, AreaObjectMap as D, DateToIntlDDMMYYYYCellRenderer as V, MaleFemaleToIconCellRenderer as Pe, TreeFactory as Ge, DefaultRowHeights as Ie, AreaModelArrayOfArrays as R, AreaModel as re, ColorRgb as j, ThreeColorGradientArg as Re, GeCssColorUtil as Oe, CellgroupFactory as O, AreaModelCellGroups as Ze, AreaModelObjectArrayWithColumndefs as ae, px300 as ze, px150 as we, px250 as He, TrueFalseCellRenderer as ve, DateToTecCellRenderer as $e, SelectionModel as h, TrueFn as p, CheckboxBooleanPropertyCellRenderer as ke, px90 as w, ProgressBarCellRenderer as xe, StarRatingCellRenderer as De, NumberCellProgressBarCellRenderer as Ve, RowNumberColumnDef as Fe, FalseFn as J, px220 as Ue, PositiveAndNegativeNumberRenderer as Ee, px80 as qe, RowGroupFactory as _e, px110 as Q, PivotFactory as Ke, px130 as We, editInputPipeForNumber as Z, FocusModel as F, NumberCellRenderer as je, Renderer as Ye, SelectCellRenderer as Xe, px50 as Je, ValueLabel as me, px70 as Qe, CellRange as k, AutoRestoreOptions as er, SpreadsheetFactory as rr, CoverGridFactory as se } from "@guiexpert/table";
2
- class ar {
3
- render(e, r, n, m, s, i, y) {
1
+ import { ColumnDef as n, px60 as G, px120 as b, px100 as c, px160 as E, px200 as Z, px140 as P, TableOptions as T, TableModelAndOptions as o, TableFactory as N, Size as g, AreaObjectMap as D, DateToIntlDDMMYYYYCellRenderer as V, MaleFemaleToIconCellRenderer as ze, TreeFactory as Ze, DefaultRowHeights as we, AreaModelArrayOfArrays as O, AreaModel as ae, ColorRgb as Y, ThreeColorGradientArg as Oe, GeCssColorUtil as He, CellgroupFactory as H, AreaModelCellGroups as ve, AreaModelObjectArrayWithColumndefs as te, px300 as ke, px150 as xe, px250 as Fe, TrueFalseCellRenderer as De, DateToTecCellRenderer as $e, SelectionModel as h, TrueFn as p, CheckboxBooleanPropertyCellRenderer as Ue, px90 as w, ProgressBarCellRenderer as Me, StarRatingCellRenderer as qe, NumberCellProgressBarCellRenderer as Ee, RowNumberColumnDef as Ve, FalseFn as Q, px220 as Be, PositiveAndNegativeNumberRenderer as _e, px80 as F, RowGroupFactory as Ke, px110 as ee, PivotFactory as We, px130 as je, editInputPipeForNumber as z, FocusModel as U, NumberCellRenderer as Ye, Renderer as Xe, SelectCellRenderer as Je, px50 as Qe, ValueLabel as se, px70 as er, CellRange as k, AutoRestoreOptions as rr, SpreadsheetFactory as ar, CoverGridFactory as ie } from "@guiexpert/table";
2
+ class tr {
3
+ render(e, r, t, m, s, i, y) {
4
4
  if (i) {
5
5
  const d = Number(i);
6
6
  d < 0 ? (e.innerHTML = "▾ " + d.toFixed(2) + "%", y.addClass(e, "ge-positive-text-color")) : (e.innerHTML = "▴ " + d.toFixed(2) + "%", y.addClass(e, "ge-negative-text-color"));
7
7
  }
8
8
  }
9
9
  }
10
- class tr {
10
+ class nr {
11
11
  constructor() {
12
12
  this.formatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
13
13
  }
14
- render(e, r, n, m, s, i, y) {
14
+ render(e, r, t, m, s, i, y) {
15
15
  if (i) {
16
16
  const d = Number(i);
17
17
  e.innerText = this.formatter.format(d);
18
18
  }
19
19
  }
20
20
  }
21
- class nr {
22
- render(e, r, n, m, s, i, y) {
21
+ class mr {
22
+ render(e, r, t, m, s, i, y) {
23
23
  const d = s.getRowByIndex(r);
24
24
  if (d) {
25
25
  const u = d.name ?? d.symbol;
@@ -32,50 +32,50 @@ class nr {
32
32
  }
33
33
  }
34
34
  }
35
- class mr {
35
+ class sr {
36
36
  constructor() {
37
37
  this.formatterUsd = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }), this.formatter = new Intl.NumberFormat("en-US");
38
38
  }
39
- render(e, r, n, m, s, i, y) {
39
+ render(e, r, t, m, s, i, y) {
40
40
  const d = s.getRowByIndex(r);
41
41
  if (d) {
42
- const u = this.formatterUsd.format(d.volUsd), g = this.formatter.format(d.volBtc);
42
+ const u = this.formatterUsd.format(d.volUsd), l = this.formatter.format(d.volBtc);
43
43
  e.innerHTML = `
44
44
  <div style="line-height: 1.2;padding: 10px 0 0 10px;">
45
45
  ${u}<br>
46
- ${g} BTC
46
+ ${l} BTC
47
47
  </div>
48
48
  `;
49
49
  }
50
50
  }
51
51
  }
52
- class sr {
52
+ class ir {
53
53
  constructor(e = 120) {
54
54
  this.maxWidth = e, this.formatter = new Intl.NumberFormat("en-US");
55
55
  }
56
- render(e, r, n, m, s, i, y) {
56
+ render(e, r, t, m, s, i, y) {
57
57
  const d = s.getRowByIndex(r);
58
58
  if (d) {
59
- const u = this.formatter.format(d.circulatingSupply), g = d.maxSupply, N = [];
60
- if (N.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), N.push(u), N.push("<br>"), g) {
61
- const S = this.maxWidth * d.circulatingSupply / g;
62
- N.push(`
59
+ const u = this.formatter.format(d.circulatingSupply), l = d.maxSupply, f = [];
60
+ if (f.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), f.push(u), f.push("<br>"), l) {
61
+ const S = this.maxWidth * d.circulatingSupply / l;
62
+ f.push(`
63
63
  <div style="width: ${this.maxWidth}px;height: 5px;background-color: #eee;margin:10px 0 0 10px">
64
64
  <div style="width: ${S}px;height: 5px;background-color: #ccc;"></div>
65
65
  </div>
66
66
  `);
67
67
  }
68
- N.push("</div>"), e.innerHTML = N.join("");
68
+ f.push("</div>"), e.innerHTML = f.join("");
69
69
  }
70
70
  }
71
71
  }
72
- class ir {
73
- render(e, r, n, m, s, i, y) {
72
+ class dr {
73
+ render(e, r, t, m, s, i, y) {
74
74
  const d = s.getRowByIndex(r);
75
75
  d != null && d.id && (e.innerHTML = `<img src="https://s2.coinmarketcap.com/static/img/coins/64x64/${d.id}.png" style="width:30px;height: 30px;margin: 10px 10px 0 20px;">`);
76
76
  }
77
77
  }
78
- const dr = [
78
+ const yr = [
79
79
  {
80
80
  id: 1,
81
81
  name: "Bitcoin",
@@ -2810,49 +2810,49 @@ const dr = [
2810
2810
  change90d: 12.43943602
2811
2811
  }
2812
2812
  ];
2813
- function ua() {
2814
- const a = dr, e = new ar(), r = new tr(), n = new nr(), m = new mr(), s = new sr(120), i = new ir(), y = [
2815
- t.create({
2813
+ function Na() {
2814
+ const a = yr, e = new tr(), r = new nr(), t = new mr(), m = new sr(), s = new ir(120), i = new dr(), y = [
2815
+ n.create({
2816
2816
  property: "symbol",
2817
2817
  headerLabel: "",
2818
2818
  width: G,
2819
2819
  bodyClasses: ["ge-table-text-align-left"],
2820
2820
  bodyRenderer: i
2821
2821
  }),
2822
- t.create({
2822
+ n.create({
2823
2823
  property: "symbol",
2824
2824
  headerLabel: "Name",
2825
2825
  width: b,
2826
2826
  bodyClasses: ["ge-table-text-align-left"],
2827
2827
  headerClasses: ["ge-table-text-align-left"],
2828
- bodyRenderer: n
2828
+ bodyRenderer: t
2829
2829
  }),
2830
- t.create({
2830
+ n.create({
2831
2831
  property: "priceInUsd",
2832
2832
  headerLabel: "Price $",
2833
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 %", 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
- t.create({
2837
+ new n("change1h", "1h %", c, void 0, n.bodyRenderer(e)),
2838
+ new n("change24h", "24h %", c, void 0, n.bodyRenderer(e)),
2839
+ new n("change7d", "7d %", c, void 0, n.bodyRenderer(e)),
2840
+ n.create({
2841
2841
  property: "marketCapUsd",
2842
2842
  headerLabel: "Market Cap",
2843
- width: $,
2843
+ width: E,
2844
2844
  bodyClasses: ["ge-table-text-align-right"],
2845
2845
  headerClasses: ["ge-table-text-align-right"],
2846
2846
  bodyRenderer: r
2847
2847
  }),
2848
- t.create({
2848
+ n.create({
2849
2849
  headerLabel: "Volumne (24h)",
2850
- width: z,
2850
+ width: Z,
2851
2851
  bodyClasses: ["ge-table-text-align-right"],
2852
2852
  headerClasses: ["ge-table-text-align-right"],
2853
2853
  bodyRenderer: m
2854
2854
  }),
2855
- t.create({
2855
+ n.create({
2856
2856
  property: "circulatingSupply",
2857
2857
  headerLabel: "Circulating Supply",
2858
2858
  width: P,
@@ -2873,7 +2873,7 @@ function ua() {
2873
2873
  }
2874
2874
  };
2875
2875
  return new o(
2876
- f.createTableModel({
2876
+ N.createTableModel({
2877
2877
  rows: a,
2878
2878
  columnDefs: y,
2879
2879
  tableOptions: d
@@ -2881,16 +2881,16 @@ function ua() {
2881
2881
  d
2882
2882
  );
2883
2883
  }
2884
- function ca(a = 1e3, e = 1e3) {
2884
+ function fa(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
- ), n = Array.from(Array(2).keys()).map(
2887
+ ), t = Array.from(Array(2).keys()).map(
2888
2888
  (s) => Array.from(Array(e).keys()).map((i) => `H${s}/${i}`)
2889
2889
  ), m = Array.from(Array(2).keys()).map(
2890
2890
  (s) => Array.from(Array(e).keys()).map((i) => `F${s}/${i}`)
2891
2891
  );
2892
- return f.createTableModel({
2893
- headerData: n,
2892
+ return N.createTableModel({
2893
+ headerData: t,
2894
2894
  bodyData: r,
2895
2895
  footerData: m,
2896
2896
  overridingColumnWidth: 110,
@@ -2898,7 +2898,7 @@ function ca(a = 1e3, e = 1e3) {
2898
2898
  fixedRightColumnCount: 2
2899
2899
  });
2900
2900
  }
2901
- const yr = [
2901
+ const pr = [
2902
2902
  {
2903
2903
  id: 0,
2904
2904
  preName: "Prename0",
@@ -164772,7 +164772,7 @@ const yr = [
164772
164772
  friends: []
164773
164773
  }
164774
164774
  ];
164775
- function la() {
164775
+ function Ta() {
164776
164776
  const a = {
164777
164777
  ...new T(),
164778
164778
  hoverColumnVisible: !1,
@@ -164785,17 +164785,17 @@ function la() {
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 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 V(), void 0), void 0, void 0),
164791
- new t("gender", " ", new l(50, "px"), new D(), new D(void 0, new Pe(), void 0), void 0, void 0),
164792
- 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 = Ge.buildTreeRows(yr, "friends");
164798
- return f.createTableModel({
164788
+ new n("lastName", "Last Name", new g(250, "px")),
164789
+ new n("preName", "Pre Name", new g(120, "px")),
164790
+ new n("birth", "Birthday", new g(100, "px"), new D(), new D(void 0, new V(), void 0), void 0, void 0),
164791
+ new n("gender", " ", new g(50, "px"), new D(), new D(void 0, new ze(), void 0), void 0, void 0),
164792
+ new n("address.street", "Strasse", new g(150, "px")),
164793
+ new n("address.number", "Nr", new g(70, "px")),
164794
+ new n("address.zip", "Zip", new g(60, "px")),
164795
+ new n("address.city", "City", new g(120, "px")),
164796
+ new n("id", "ID", new g(60, "px"))
164797
+ ], r = Ze.buildTreeRows(pr, "friends");
164798
+ return N.createTableModel({
164799
164799
  rows: r,
164800
164800
  columnDefs: e,
164801
164801
  tableOptions: a,
@@ -164803,7 +164803,7 @@ function la() {
164803
164803
  fixedRightColumnCount: 0
164804
164804
  });
164805
164805
  }
164806
- const ie = new Ie(34, 50, 0), de = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), pr = `2009 27.9 36.7 42.4 54.5 62.5 67.5 72.7 75.7 66.3 55.0 51.2 35.9
164806
+ const de = new we(34, 50, 0), ye = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), ur = `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 ie = new Ie(34, 50, 0), de = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct No
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
- ), ur = 27.9, cr = 77.4;
164818
- class ye {
164819
- constructor(e, r, n) {
164820
- this.r = e, this.g = r, this.b = n;
164817
+ ), cr = 27.9, lr = 77.4;
164818
+ class pe {
164819
+ constructor(e, r, t) {
164820
+ this.r = e, this.g = r, this.b = t;
164821
164821
  }
164822
164822
  }
164823
- function lr(a, e, r, n, m) {
164824
- return (a - e) / (r - e) * (m - n) + n;
164823
+ function gr(a, e, r, t, m) {
164824
+ return (a - e) / (r - e) * (m - t) + t;
164825
164825
  }
164826
- function gr(a, e, r) {
164827
- var n = new ye(255, 0, 0), m = new ye(0, 0, 255), s = lr(r, a, e, 0, 1), i = m.r - n.r, y = m.g - n.g, d = m.b - n.b;
164828
- return i = i * s + n.r, y = y * s + n.g, d = d * s + n.b, `rgb(${Math.round(i)}, ${Math.round(y)}, ${Math.round(d)})`;
164826
+ function br(a, e, r) {
164827
+ var t = new pe(255, 0, 0), m = new pe(0, 0, 255), s = gr(r, a, e, 0, 1), i = m.r - t.r, y = m.g - t.g, d = m.b - t.b;
164828
+ return i = i * s + t.r, y = y * s + t.g, d = d * s + t.b, `rgb(${Math.round(i)}, ${Math.round(y)}, ${Math.round(d)})`;
164829
164829
  }
164830
- function ga() {
164831
- const a = new R("body", pr, ie.body), e = new Array(de.length).fill(50), r = new R("header", [de], ie.header);
164832
- return a.getCustomStyleAt = (n, m) => {
164830
+ function oa() {
164831
+ const a = new O("body", ur, de.body), e = new Array(ye.length).fill(50), r = new O("header", [ye], de.header);
164832
+ return a.getCustomStyleAt = (t, m) => {
164833
164833
  let s = {};
164834
164834
  if (m > 0) {
164835
- const i = a.getValueAt(n, m);
164835
+ const i = a.getValueAt(t, m);
164836
164836
  s = {
164837
- background: gr(ur, cr, i),
164837
+ background: br(cr, lr, i),
164838
164838
  color: "#fff"
164839
164839
  };
164840
164840
  }
164841
164841
  return s.paddingTop = "10px", s;
164842
- }, f.createTableModel({
164842
+ }, N.createTableModel({
164843
164843
  headerAreaModel: r,
164844
164844
  bodyAreaModel: a,
164845
164845
  columnSizes: e
164846
164846
  });
164847
164847
  }
164848
- function br() {
164848
+ function Nr() {
164849
164849
  return [
164850
164850
  {
164851
164851
  date: "2010-01-01T01:00:00",
@@ -217403,12 +217403,12 @@ function br() {
217403
217403
  }
217404
217404
  ];
217405
217405
  }
217406
- const Me = 30, Nr = 3, Be = br(), L = {};
217407
- Be.forEach((a) => {
217406
+ const Ae = 30, fr = 3, Re = Nr(), L = {};
217407
+ Re.forEach((a) => {
217408
217408
  const [e, r] = a.date.split("T");
217409
217409
  L[e] || (L[e] = {}), L[e][r.substring(0, 5)] = a;
217410
217410
  });
217411
- const ee = Object.keys(L), U = [
217411
+ const re = Object.keys(L), M = [
217412
217412
  "06:00",
217413
217413
  "07:00",
217414
217414
  "08:00",
@@ -217434,59 +217434,59 @@ const ee = Object.keys(L), U = [
217434
217434
  "04:00",
217435
217435
  "05:00"
217436
217436
  ];
217437
- function fr() {
217437
+ function Tr() {
217438
217438
  let a = 10, e = 0;
217439
- return Be.forEach((r) => {
217439
+ return Re.forEach((r) => {
217440
217440
  a = Math.min(a, r.temperature), e = Math.max(e, r.temperature);
217441
217441
  }), [a, e];
217442
217442
  }
217443
- const [pe, ue] = fr();
217444
- function ba() {
217445
- const a = new Tr(), e = new or(), r = [60, ...new Array(ee.length).fill(Nr)];
217446
- return f.createTableModel({
217443
+ const [ue, ce] = Tr();
217444
+ function ha() {
217445
+ const a = new or(), e = new hr(), r = [60, ...new Array(re.length).fill(fr)];
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 Tr extends re {
217453
+ class or extends ae {
217454
217454
  getRowCount() {
217455
- return U.length;
217455
+ return M.length;
217456
217456
  }
217457
217457
  getRowHeight(e) {
217458
- return Me;
217458
+ return Ae;
217459
217459
  }
217460
217460
  getValueAt(e, r) {
217461
- return r === 0 ? U[e] : "";
217461
+ return r === 0 ? M[e] : "";
217462
217462
  }
217463
217463
  getTooltipAt(e, r) {
217464
217464
  if (r === 0)
217465
217465
  return "";
217466
217466
  r--;
217467
- const n = ee[r], m = U[e];
217468
- return L[n] && L[n][m] ? `${n} ${m} → ${L[n][m].temperature}` : "";
217467
+ const t = re[r], m = M[e];
217468
+ return L[t] && L[t][m] ? `${t} ${m} → ${L[t][m].temperature}` : "";
217469
217469
  }
217470
217470
  getCustomStyleAt(e, r) {
217471
217471
  if (r === 0)
217472
217472
  return;
217473
217473
  r--;
217474
- const n = ee[r], m = U[e];
217475
- if (!L[n] || !L[n][m]) return;
217476
- const s = L[n][m].temperature, i = new j(67, 1, 84), y = new j(31, 144, 141), d = new j(250, 230, 37), u = (ue + pe) / 2, g = new Re(pe, i, u, y, ue, d);
217474
+ const t = re[r], m = M[e];
217475
+ if (!L[t] || !L[t][m]) return;
217476
+ const s = L[t][m].temperature, i = new Y(67, 1, 84), y = new Y(31, 144, 141), d = new Y(250, 230, 37), u = (ce + ue) / 2, l = new Oe(ue, i, u, y, ce, d);
217477
217477
  return {
217478
- background: Oe.getThreeColorGradientRGB(s, g),
217478
+ background: He.getThreeColorGradientRGB(s, l),
217479
217479
  color: "transparent"
217480
217480
  // we only want to show the bg color
217481
217481
  };
217482
217482
  }
217483
217483
  }
217484
- class or extends re {
217484
+ class hr extends ae {
217485
217485
  getRowCount() {
217486
217486
  return 1;
217487
217487
  }
217488
217488
  getRowHeight(e) {
217489
- return Me;
217489
+ return Ae;
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 or extends re {
217503
217503
  };
217504
217504
  }
217505
217505
  }
217506
- const Y = [
217506
+ const X = [
217507
217507
  {
217508
217508
  data: "Gold",
217509
217509
  toggle: !0,
@@ -217590,9 +217590,9 @@ const Y = [
217590
217590
  ]
217591
217591
  }
217592
217592
  ];
217593
- function Na() {
217594
- const e = O.buildGroupExts(Y), r = O.buildColumnDefs(e), n = new Ze("header", Y, r, 34);
217595
- console.info("headerGroups", Y), console.info("columnDefs", r.map((i) => i.property));
217593
+ function Sa() {
217594
+ const e = H.buildGroupExts(X), r = H.buildColumnDefs(e), t = new ve("header", X, r, 34);
217595
+ console.info("headerGroups", X), console.info("columnDefs", r.map((i) => i.property));
217596
217596
  const m = [
217597
217597
  {
217598
217598
  GOLD: 146,
@@ -217610,14 +217610,14 @@ function Na() {
217610
217610
  HOH_C: 53,
217611
217611
  HOH_D: 54
217612
217612
  }
217613
- ], s = new ae("body", m, r, 34);
217614
- return f.createTableModel({
217615
- headerAreaModel: n,
217613
+ ], s = new te("body", m, r, 34);
217614
+ return N.createTableModel({
217615
+ headerAreaModel: t,
217616
217616
  bodyAreaModel: s,
217617
217617
  columnDefs: r
217618
217618
  });
217619
217619
  }
217620
- const hr = [
217620
+ const Sr = [
217621
217621
  {
217622
217622
  data: "Team A",
217623
217623
  toggle: !0,
@@ -217638,9 +217638,9 @@ const hr = [
217638
217638
  ]
217639
217639
  }
217640
217640
  ];
217641
- function fa(a = hr) {
217642
- const r = O.buildGroupExts(a), n = O.buildColumnDefs(r), m = new Ze("header", a, n, 34);
217643
- console.info("headerGroups", a), console.info("columnDefs", n.map((y) => y.property)), console.info("columnDefs", n);
217641
+ function Ca(a = Sr) {
217642
+ const r = H.buildGroupExts(a), t = H.buildColumnDefs(r), m = new ve("header", a, t, 34);
217643
+ console.info("headerGroups", a), console.info("columnDefs", t.map((y) => y.property)), console.info("columnDefs", t);
217644
217644
  const s = [
217645
217645
  {
217646
217646
  team_a: 0,
@@ -217648,14 +217648,14 @@ function fa(a = hr) {
217648
217648
  peter: 5,
217649
217649
  paul: 4
217650
217650
  }
217651
- ], i = new ae("body", s, n, 34);
217652
- return f.createTableModel({
217651
+ ], i = new te("body", s, t, 34);
217652
+ return N.createTableModel({
217653
217653
  headerAreaModel: m,
217654
217654
  bodyAreaModel: i,
217655
- columnDefs: n
217655
+ columnDefs: t
217656
217656
  });
217657
217657
  }
217658
- function Sr() {
217658
+ function Cr() {
217659
217659
  return [
217660
217660
  {
217661
217661
  id: 1,
@@ -217835,33 +217835,33 @@ function Sr() {
217835
217835
  }
217836
217836
  ];
217837
217837
  }
217838
- function Cr() {
217838
+ function Lr() {
217839
217839
  return [
217840
- new t("firstName", "First Name", b),
217841
- new t("lastName", "Last Name"),
217842
- t.create({
217840
+ new n("firstName", "First Name", b),
217841
+ new n("lastName", "Last Name"),
217842
+ n.create({
217843
217843
  property: "gender",
217844
217844
  headerLabel: "Gender",
217845
217845
  width: c,
217846
217846
  bodyClasses: ["ge-table-text-align-left"]
217847
217847
  }),
217848
- t.create({
217848
+ n.create({
217849
217849
  property: "email",
217850
217850
  headerLabel: "Email",
217851
- width: ze,
217851
+ width: ke,
217852
217852
  bodyClasses: ["ge-table-text-align-left"]
217853
217853
  }),
217854
- new t("ipAddress", "IP", we),
217855
- t.create({
217854
+ new n("ipAddress", "IP", xe),
217855
+ n.create({
217856
217856
  property: "id",
217857
217857
  headerLabel: "ID",
217858
- width: He,
217858
+ width: Fe,
217859
217859
  // bodyRenderer: actionRenderer,
217860
217860
  bodyClasses: ["ge-table-text-align-left"]
217861
217861
  })
217862
217862
  ];
217863
217863
  }
217864
- function Lr() {
217864
+ function Pr() {
217865
217865
  return {
217866
217866
  ...new T(),
217867
217867
  hoverColumnVisible: !1,
@@ -217872,19 +217872,19 @@ function Lr() {
217872
217872
  }
217873
217873
  };
217874
217874
  }
217875
- function Ta() {
217876
- const a = Lr(), e = Sr(), r = Cr();
217877
- return f.createTableModel({
217875
+ function La() {
217876
+ const a = Pr(), e = Cr(), r = Lr();
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 oa(a, e) {
217884
+ function Pa(a, e) {
217885
217885
  a.rendererMap = new D(void 0, e, void 0);
217886
217886
  }
217887
- const Pr = [
217887
+ const Gr = [
217888
217888
  {
217889
217889
  id: 1,
217890
217890
  city: "London",
@@ -218032,35 +218032,35 @@ const Pr = [
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)), H = [
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
- t.create({
218035
+ ].map((a) => (a.updatedAt = /* @__PURE__ */ new Date(), a)), $ = [
218036
+ new n("city", "City", new g(90, "px")),
218037
+ new n("location", "Location", new g(100, "px")),
218038
+ new n("team.name", "Team", new g(100, "px")),
218039
+ n.create({
218040
218040
  property: "team.active",
218041
218041
  headerLabel: "Active",
218042
- width: new l(60, "px"),
218043
- bodyRenderer: new ve()
218042
+ width: new g(60, "px"),
218043
+ bodyRenderer: new De()
218044
218044
  }),
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
- t.create({
218045
+ new n("data.0", "00", new g(60, "px")),
218046
+ new n("data.1", "15", new g(60, "px")),
218047
+ new n("data.2", "30", new g(60, "px")),
218048
+ new n("data.3", "45", new g(60, "px")),
218049
+ new n("data.4", "00", new g(60, "px")),
218050
+ new n("data.5", "15", new g(60, "px")),
218051
+ new n("data.6", "30", new g(60, "px")),
218052
+ new n("data.7", "45", new g(60, "px")),
218053
+ new n("data.8", "00", new g(60, "px")),
218054
+ new n("data.9", "15", new g(60, "px")),
218055
+ new n("data.10", "30", new g(60, "px")),
218056
+ new n("data.11", "45", new g(60, "px")),
218057
+ n.create({
218058
218058
  property: "updatedAt",
218059
218059
  headerLabel: "Updated at",
218060
- width: new l(175, "px"),
218060
+ width: new g(175, "px"),
218061
218061
  bodyRenderer: new $e()
218062
218062
  })
218063
- ], ha = H.length - 1, Gr = {
218063
+ ], Ga = $.length - 1, zr = {
218064
218064
  ...new T(),
218065
218065
  hoverRowVisible: !1,
218066
218066
  hoverColumnVisible: !1,
@@ -218072,39 +218072,39 @@ const Pr = [
218072
218072
  columnsDraggable: !1,
218073
218073
  columnsResizable: !0
218074
218074
  };
218075
- function Sa() {
218076
- const a = Gr.defaultRowHeights;
218077
- return f.createTableModel({
218078
- headerAreaModel: new zr(a.header),
218075
+ function za() {
218076
+ const a = zr.defaultRowHeights;
218077
+ return N.createTableModel({
218078
+ headerAreaModel: new wr(a.header),
218079
218079
  bodyAreaModel: new Zr(a.body),
218080
- footerAreaModel: new wr(a.footer),
218081
- columnDefs: H,
218080
+ footerAreaModel: new vr(a.footer),
218081
+ columnDefs: $,
218082
218082
  fixedLeftColumnCount: 2,
218083
218083
  fixedRightColumnCount: 1,
218084
218084
  defaultRowHeights: a,
218085
- columnCount: H.length
218085
+ columnCount: $.length
218086
218086
  });
218087
218087
  }
218088
- class Zr extends ae {
218088
+ class Zr extends te {
218089
218089
  constructor(e) {
218090
- super("body", Pr, H, e);
218090
+ super("body", Gr, $, e);
218091
218091
  }
218092
218092
  getRowspanAt(e, r) {
218093
218093
  if (r === 0 || r == 1) {
218094
- const n = this.getValueAt(e, r);
218095
- if (e === 0 || n !== this.getValueAt(e - 1, r))
218096
- return this.countNextWithValue(e, r, n);
218094
+ const t = this.getValueAt(e, r);
218095
+ if (e === 0 || t !== this.getValueAt(e - 1, r))
218096
+ return this.countNextWithValue(e, r, t);
218097
218097
  }
218098
218098
  return 1;
218099
218099
  }
218100
- countNextWithValue(e, r, n) {
218100
+ countNextWithValue(e, r, t) {
218101
218101
  let m = 1;
218102
- for (; n === this.getValueAt(e + m, r); )
218102
+ for (; t === this.getValueAt(e + m, r); )
218103
218103
  m++;
218104
218104
  return m;
218105
218105
  }
218106
218106
  }
218107
- class zr extends R {
218107
+ class wr extends O {
218108
218108
  constructor(e) {
218109
218109
  super(
218110
218110
  "header",
@@ -218131,7 +218131,7 @@ class zr extends R {
218131
218131
  return ["ge-font-weight-bold"];
218132
218132
  }
218133
218133
  }
218134
- class wr extends R {
218134
+ class vr extends O {
218135
218135
  constructor(e) {
218136
218136
  super(
218137
218137
  "footer",
@@ -218146,7 +218146,7 @@ class wr extends R {
218146
218146
  return r === 2 ? ["ge-text-align-right", "ge-font-weight-bold"] : [];
218147
218147
  }
218148
218148
  }
218149
- const vr = [
218149
+ const kr = [
218150
218150
  {
218151
218151
  id: "c8-34f1d5",
218152
218152
  company: "Equicom",
@@ -220084,12 +220084,12 @@ const vr = [
220084
220084
  rating: 5
220085
220085
  }
220086
220086
  ];
220087
- function kr() {
220088
- return vr;
220089
- }
220090
220087
  function xr() {
220088
+ return kr;
220089
+ }
220090
+ function Dr() {
220091
220091
  return [
220092
- t.create({
220092
+ n.create({
220093
220093
  property: "company",
220094
220094
  headerLabel: "Company",
220095
220095
  width: b,
@@ -220097,7 +220097,7 @@ function xr() {
220097
220097
  headerClasses: ["ge-table-text-align-left"],
220098
220098
  sortable: p
220099
220099
  }),
220100
- t.create({
220100
+ n.create({
220101
220101
  property: "country",
220102
220102
  headerLabel: "Country",
220103
220103
  width: P,
@@ -220105,7 +220105,7 @@ function xr() {
220105
220105
  headerClasses: ["ge-table-text-align-left"],
220106
220106
  sortable: p
220107
220107
  }),
220108
- t.create({
220108
+ n.create({
220109
220109
  property: "product",
220110
220110
  headerLabel: "Name",
220111
220111
  width: b,
@@ -220113,7 +220113,7 @@ function xr() {
220113
220113
  headerClasses: ["ge-table-text-align-left"],
220114
220114
  sortable: p
220115
220115
  }),
220116
- t.create({
220116
+ n.create({
220117
220117
  property: "sellDate",
220118
220118
  headerLabel: "Sell date",
220119
220119
  width: c,
@@ -220121,22 +220121,22 @@ function xr() {
220121
220121
  bodyClasses: ["ge-table-text-align-center"],
220122
220122
  sortable: p
220123
220123
  }),
220124
- t.create({
220124
+ n.create({
220125
220125
  property: "id",
220126
220126
  headerLabel: "Order ID",
220127
220127
  width: b,
220128
220128
  bodyClasses: ["ge-table-text-align-center"],
220129
220129
  sortable: p
220130
220130
  }),
220131
- t.create({
220131
+ n.create({
220132
220132
  property: "inStock",
220133
220133
  headerLabel: "In stock",
220134
220134
  width: w,
220135
- bodyRenderer: new ke("inStock", !0, !0),
220135
+ bodyRenderer: new Ue("inStock", !0, !0),
220136
220136
  bodyClasses: ["ge-table-text-align-center"],
220137
220137
  sortable: p
220138
220138
  }),
220139
- t.create({
220139
+ n.create({
220140
220140
  property: "quantity",
220141
220141
  headerLabel: "Qty",
220142
220142
  width: G,
@@ -220144,25 +220144,25 @@ function xr() {
220144
220144
  headerClasses: ["ge-table-text-align-right"],
220145
220145
  sortable: p
220146
220146
  }),
220147
- t.create({
220147
+ n.create({
220148
220148
  property: "progress",
220149
220149
  headerLabel: "Progress",
220150
220150
  width: c,
220151
- bodyRenderer: new xe("progress", 5, !0),
220151
+ bodyRenderer: new Me("progress", 5, !0),
220152
220152
  bodyClasses: ["ge-table-text-align-left"],
220153
220153
  sortable: p
220154
220154
  }),
220155
- t.create({
220155
+ n.create({
220156
220156
  property: "rating",
220157
220157
  headerLabel: "Rating",
220158
220158
  width: c,
220159
- bodyRenderer: new De("rating"),
220159
+ bodyRenderer: new qe("rating"),
220160
220160
  bodyClasses: ["ge-table-text-align-left"],
220161
220161
  sortable: p
220162
220162
  })
220163
220163
  ];
220164
220164
  }
220165
- function Dr() {
220165
+ function Ur() {
220166
220166
  const a = new h("row", "multi");
220167
220167
  return {
220168
220168
  ...new T(),
@@ -220175,10 +220175,10 @@ function Dr() {
220175
220175
  getSelectionModel: () => a
220176
220176
  };
220177
220177
  }
220178
- function Ca() {
220179
- const a = Dr(), e = kr(), r = xr();
220178
+ function Za() {
220179
+ const a = Ur(), e = xr(), r = Dr();
220180
220180
  return new o(
220181
- f.createTableModel({
220181
+ N.createTableModel({
220182
220182
  rows: e,
220183
220183
  columnDefs: r,
220184
220184
  tableOptions: a,
@@ -220187,31 +220187,31 @@ function Ca() {
220187
220187
  a
220188
220188
  );
220189
220189
  }
220190
- function ce() {
220190
+ function le() {
220191
220191
  return [
220192
- t.create({
220192
+ n.create({
220193
220193
  headerLabel: "ID",
220194
220194
  width: b,
220195
220195
  bodyClasses: ["ge-table-text-align-left"],
220196
220196
  headerClasses: ["ge-table-text-align-left"],
220197
- sortable: J
220197
+ sortable: Q
220198
220198
  }),
220199
- t.create({
220199
+ n.create({
220200
220200
  headerLabel: "Value",
220201
- width: z,
220201
+ width: Z,
220202
220202
  bodyClasses: ["ge-table-text-align-left"],
220203
220203
  headerClasses: ["ge-table-text-align-left"],
220204
- sortable: J
220204
+ sortable: Q
220205
220205
  }),
220206
- t.create({
220206
+ n.create({
220207
220207
  headerLabel: " ",
220208
- width: z,
220208
+ width: Z,
220209
220209
  bodyClasses: ["ge-table-text-align-right"],
220210
220210
  headerClasses: ["ge-table-text-align-right"]
220211
220211
  })
220212
220212
  ];
220213
220213
  }
220214
- function Ur() {
220214
+ function Mr() {
220215
220215
  const a = new h();
220216
220216
  return {
220217
220217
  ...new T(),
@@ -220224,22 +220224,22 @@ function Ur() {
220224
220224
  getSelectionModel: () => a
220225
220225
  };
220226
220226
  }
220227
- function La(a = 1e6, e = !1) {
220228
- const r = Ur(), n = e ? [new Fe({ format: (i) => i.toLocaleString("en-US") }), ...ce()] : ce(), m = e ? 1 : 0, s = new qr(a, m);
220229
- return new o(f.createTableModel({
220227
+ function wa(a = 1e6, e = !1) {
220228
+ const r = Mr(), t = e ? [new Ve({ format: (i) => i.toLocaleString("en-US") }), ...le()] : le(), m = e ? 1 : 0, s = new qr(a, m);
220229
+ return new o(N.createTableModel({
220230
220230
  bodyAreaModel: s,
220231
- columnDefs: n,
220231
+ columnDefs: t,
220232
220232
  tableOptions: r,
220233
220233
  fixedLeftColumnCount: m
220234
220234
  }), r);
220235
220235
  }
220236
- class qr extends re {
220236
+ class qr extends ae {
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 Ve(e, !1);
220242
+ super(), this.rowcount = e, this.columnOffset = r, this.nf = new Intl.NumberFormat("en-Us", {}), this.barRenderer = new Ee(e, !1);
220243
220243
  }
220244
220244
  getRowCount() {
220245
220245
  return this.rowcount;
@@ -220251,8 +220251,8 @@ class qr extends re {
220251
220251
  return 34;
220252
220252
  }
220253
220253
  getValueAt(e, r) {
220254
- const n = r - this.columnOffset;
220255
- return n < 0 ? "" : n === 0 ? "id" + e : n === 1 ? this.nf.format(e) : e;
220254
+ const t = r - this.columnOffset;
220255
+ return t < 0 ? "" : t === 0 ? "id" + e : t === 1 ? this.nf.format(e) : e;
220256
220256
  }
220257
220257
  getCellRenderer(e, r) {
220258
220258
  if (r - this.columnOffset === 2) return this.barRenderer;
@@ -220261,7 +220261,7 @@ class qr extends re {
220261
220261
  return e * this.getRowHeight(0);
220262
220262
  }
220263
220263
  }
220264
- const Mr = [
220264
+ const Br = [
220265
220265
  {
220266
220266
  id: "f0-bfbecb",
220267
220267
  company: "Medmex",
@@ -221733,12 +221733,12 @@ const Mr = [
221733
221733
  f2: 28.55122067
221734
221734
  }
221735
221735
  ];
221736
- function Br(a = 75) {
221737
- return Mr.slice(0, a - 1);
221736
+ function Ar(a = 75) {
221737
+ return Br.slice(0, a - 1);
221738
221738
  }
221739
- function Ar(a) {
221739
+ function Rr(a) {
221740
221740
  return [
221741
- t.create({
221741
+ n.create({
221742
221742
  property: "company",
221743
221743
  headerLabel: "Company",
221744
221744
  width: c,
@@ -221747,7 +221747,7 @@ function Ar(a) {
221747
221747
  sortable: p,
221748
221748
  editable: () => a
221749
221749
  }),
221750
- t.create({
221750
+ n.create({
221751
221751
  property: "country",
221752
221752
  headerLabel: "Country",
221753
221753
  width: P,
@@ -221756,7 +221756,7 @@ function Ar(a) {
221756
221756
  sortable: p,
221757
221757
  editable: () => a
221758
221758
  }),
221759
- t.create({
221759
+ n.create({
221760
221760
  property: "product",
221761
221761
  headerLabel: "Name",
221762
221762
  width: c,
@@ -221765,7 +221765,7 @@ function Ar(a) {
221765
221765
  sortable: p,
221766
221766
  editable: () => a
221767
221767
  }),
221768
- t.create({
221768
+ n.create({
221769
221769
  property: "birthday",
221770
221770
  headerLabel: "Birth Date",
221771
221771
  width: c,
@@ -221773,7 +221773,7 @@ function Ar(a) {
221773
221773
  sortable: p,
221774
221774
  editable: () => a
221775
221775
  }),
221776
- t.create({
221776
+ n.create({
221777
221777
  property: "sellDate",
221778
221778
  headerLabel: "Sell date",
221779
221779
  width: c,
@@ -221782,15 +221782,15 @@ function Ar(a) {
221782
221782
  sortable: p,
221783
221783
  editable: () => a
221784
221784
  }),
221785
- t.create({
221785
+ n.create({
221786
221786
  property: "lastVisit",
221787
221787
  headerLabel: "Last Visit",
221788
- width: Ue,
221788
+ width: Be,
221789
221789
  bodyClasses: ["ge-table-text-align-center"],
221790
221790
  sortable: p,
221791
221791
  editable: () => a
221792
221792
  }),
221793
- t.create({
221793
+ n.create({
221794
221794
  property: "time",
221795
221795
  headerLabel: "Time",
221796
221796
  width: c,
@@ -221798,23 +221798,23 @@ function Ar(a) {
221798
221798
  sortable: p,
221799
221799
  editable: () => a
221800
221800
  }),
221801
- t.create({
221801
+ n.create({
221802
221802
  property: "id",
221803
221803
  headerLabel: "Order ID",
221804
221804
  width: b,
221805
221805
  bodyClasses: ["ge-table-text-align-center"],
221806
221806
  sortable: p
221807
221807
  }),
221808
- t.create({
221808
+ n.create({
221809
221809
  property: "inStock",
221810
221810
  headerLabel: "In stock",
221811
221811
  width: w,
221812
- bodyRenderer: new ke("inStock", !0, !0),
221812
+ bodyRenderer: new Ue("inStock", !0, !0),
221813
221813
  bodyClasses: ["ge-table-text-align-center"],
221814
221814
  sortable: p,
221815
221815
  editable: () => a
221816
221816
  }),
221817
- t.create({
221817
+ n.create({
221818
221818
  property: "quantity",
221819
221819
  headerLabel: "Qty",
221820
221820
  width: G,
@@ -221823,23 +221823,23 @@ function Ar(a) {
221823
221823
  sortable: p,
221824
221824
  editable: () => a
221825
221825
  }),
221826
- t.create({
221826
+ n.create({
221827
221827
  property: "progress",
221828
221828
  headerLabel: "Progress",
221829
221829
  width: c,
221830
- bodyRenderer: new xe("progress", 5, !0),
221830
+ bodyRenderer: new Me("progress", 5, !0),
221831
221831
  bodyClasses: ["ge-table-text-align-left"],
221832
221832
  sortable: p
221833
221833
  }),
221834
- t.create({
221834
+ n.create({
221835
221835
  property: "rating",
221836
221836
  headerLabel: "Rating",
221837
221837
  width: c,
221838
- bodyRenderer: new De("rating"),
221838
+ bodyRenderer: new qe("rating"),
221839
221839
  bodyClasses: ["ge-table-text-align-left"],
221840
221840
  sortable: p
221841
221841
  }),
221842
- t.create({
221842
+ n.create({
221843
221843
  property: "price",
221844
221844
  headerLabel: "Price",
221845
221845
  width: G,
@@ -221847,22 +221847,22 @@ function Ar(a) {
221847
221847
  sortable: p,
221848
221848
  editable: () => a
221849
221849
  }),
221850
- t.create({
221850
+ n.create({
221851
221851
  property: "active",
221852
221852
  headerLabel: "Active",
221853
221853
  width: G,
221854
- bodyRenderer: new ve(),
221854
+ bodyRenderer: new De(),
221855
221855
  sortable: p,
221856
221856
  editable: () => a
221857
221857
  }),
221858
- t.create({
221858
+ n.create({
221859
221859
  property: "currency",
221860
221860
  headerLabel: "CCY",
221861
221861
  width: G,
221862
221862
  sortable: p,
221863
221863
  editable: () => a
221864
221864
  }),
221865
- t.create({
221865
+ n.create({
221866
221866
  property: "average",
221867
221867
  headerLabel: "Average",
221868
221868
  width: c,
@@ -221870,16 +221870,16 @@ function Ar(a) {
221870
221870
  sortable: p,
221871
221871
  editable: () => a
221872
221872
  }),
221873
- t.create({
221873
+ n.create({
221874
221874
  property: "f1",
221875
221875
  headerLabel: "F1",
221876
- width: qe,
221876
+ width: F,
221877
221877
  bodyClasses: ["ge-table-text-align-right"],
221878
- bodyRenderer: new Ee(),
221878
+ bodyRenderer: new _e(),
221879
221879
  sortable: p,
221880
221880
  editable: () => a
221881
221881
  }),
221882
- t.create({
221882
+ n.create({
221883
221883
  property: "f2",
221884
221884
  headerLabel: "F2",
221885
221885
  width: b,
@@ -221887,10 +221887,10 @@ function Ar(a) {
221887
221887
  sortable: p,
221888
221888
  editable: () => a
221889
221889
  }),
221890
- t.create({
221890
+ n.create({
221891
221891
  property: "lorem",
221892
221892
  headerLabel: "Lorem",
221893
- width: z,
221893
+ width: Z,
221894
221894
  bodyClasses: ["ge-table-text-align-left"],
221895
221895
  sortable: p,
221896
221896
  editable: () => a
@@ -221909,17 +221909,17 @@ function Ir(a) {
221909
221909
  getSelectionModel: () => a
221910
221910
  };
221911
221911
  }
221912
- function Pa(a = new h("row", "multi"), e = 75, r = !1) {
221913
- const n = Ir(a);
221912
+ function va(a = new h("row", "multi"), e = 75, r = !1) {
221913
+ const t = Ir(a);
221914
221914
  e = Math.max(10, Math.min(75, e));
221915
- const m = Br(e), s = Ar(r);
221916
- return new o(f.createTableModel({
221915
+ const m = Ar(e), s = Rr(r);
221916
+ return new o(N.createTableModel({
221917
221917
  rows: m,
221918
221918
  columnDefs: s,
221919
- tableOptions: n
221920
- }), n);
221919
+ tableOptions: t
221920
+ }), t);
221921
221921
  }
221922
- const Rr = [
221922
+ const Or = [
221923
221923
  ["Germany", "Hamburg"],
221924
221924
  ["Germany", "Berlin"],
221925
221925
  ["Germany", "Munich"],
@@ -221932,7 +221932,7 @@ const Rr = [
221932
221932
  ["Spain", "Madrid"],
221933
221933
  ["Poland", "Warsaw"],
221934
221934
  ["Denmark", "Copenhagen"]
221935
- ], Or = [
221935
+ ], Hr = [
221936
221936
  ["Laptop", "Hardware", 1299],
221937
221937
  ["Monitor", "Hardware", 349],
221938
221938
  ["Keyboard", "Accessories", 89],
@@ -221942,42 +221942,42 @@ const Rr = [
221942
221942
  ["Cloud Credits", "Services", 500],
221943
221943
  ["Support Plan", "Services", 990]
221944
221944
  ];
221945
- function Hr(a) {
221945
+ function Fr(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 E(a, e = 42) {
221953
- const r = Hr(e), n = (s) => s[Math.floor(r() * s.length)], m = new Array(a);
221952
+ function _(a, e = 42) {
221953
+ const r = Fr(e), t = (s) => s[Math.floor(r() * s.length)], m = new Array(a);
221954
221954
  for (let s = 0; s < a; s++) {
221955
- const [i, y] = n(Rr), [d, u, g] = n(Or), N = 1 + Math.floor(r() * 20), S = Math.round(g * (0.85 + r() * 0.3) * 100) / 100;
221956
- m[s] = { id: s + 1, country: i, city: y, product: d, category: u, quantity: N, price: S, total: Math.round(N * S * 100) / 100 };
221955
+ const [i, y] = t(Or), [d, u, l] = t(Hr), f = 1 + Math.floor(r() * 20), S = Math.round(l * (0.85 + r() * 0.3) * 100) / 100;
221956
+ m[s] = { id: s + 1, country: i, city: y, product: d, category: u, quantity: f, price: S, total: Math.round(f * S * 100) / 100 };
221957
221957
  }
221958
221958
  return m;
221959
221959
  }
221960
221960
  const q = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], sortable: p };
221961
- function Ae() {
221961
+ function Ie() {
221962
221962
  return [
221963
- t.create({ property: "id", headerLabel: "Order", width: c, ...q }),
221964
- t.create({ property: "country", headerLabel: "Country", width: P, sortable: p }),
221965
- t.create({ property: "city", headerLabel: "City", width: P, sortable: p }),
221966
- t.create({ property: "product", headerLabel: "Product", width: $, sortable: p }),
221967
- t.create({ property: "category", headerLabel: "Category", width: P, sortable: p }),
221968
- t.create({ property: "quantity", headerLabel: "Qty", width: c, ...q }),
221969
- t.create({ property: "price", headerLabel: "Ø Price", width: Q, ...q }),
221970
- t.create({ property: "total", headerLabel: "Total", width: P, ...q })
221963
+ n.create({ property: "id", headerLabel: "Order", width: c, ...q }),
221964
+ n.create({ property: "country", headerLabel: "Country", width: P, sortable: p }),
221965
+ n.create({ property: "city", headerLabel: "City", width: P, sortable: p }),
221966
+ n.create({ property: "product", headerLabel: "Product", width: E, sortable: p }),
221967
+ n.create({ property: "category", headerLabel: "Category", width: P, sortable: p }),
221968
+ n.create({ property: "quantity", headerLabel: "Qty", width: c, ...q }),
221969
+ n.create({ property: "price", headerLabel: "Ø Price", width: ee, ...q }),
221970
+ n.create({ property: "total", headerLabel: "Total", width: P, ...q })
221971
221971
  ];
221972
221972
  }
221973
- function Ga(a = 5e4, e = ["country", "city"], r = 1) {
221974
- const n = new h("row", "multi"), m = {
221973
+ function ka(a = 5e4, e = ["country", "city"], r = 1) {
221974
+ const t = new h("row", "multi"), m = {
221975
221975
  ...new T(),
221976
221976
  hoverColumnVisible: !1,
221977
- getSelectionModel: () => n
221978
- }, s = _e.createTableModel({
221979
- rows: E(a),
221980
- columnDefs: Ae(),
221977
+ getSelectionModel: () => t
221978
+ }, s = Ke.createTableModel({
221979
+ rows: _(a),
221980
+ columnDefs: Ie(),
221981
221981
  groupBy: e,
221982
221982
  aggregations: { quantity: "sum", price: "avg", total: "sum" },
221983
221983
  expanded: r,
@@ -221986,8 +221986,8 @@ function Ga(a = 5e4, e = ["country", "city"], r = 1) {
221986
221986
  return new o(s, m);
221987
221987
  }
221988
221988
  const $r = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
221989
- class Vr {
221990
- render(e, r, n, m, s, i, y) {
221989
+ class Er {
221990
+ render(e, r, t, m, s, i, y) {
221991
221991
  if (typeof i == "number") {
221992
221992
  const d = y.createElement("div");
221993
221993
  y.addClass(d, "ge-table-label-div");
@@ -221996,17 +221996,17 @@ class Vr {
221996
221996
  }
221997
221997
  }
221998
221998
  }
221999
- function Za(a = 5e4) {
221999
+ function xa(a = 5e4) {
222000
222000
  const e = new h("range", "multi"), r = {
222001
222001
  ...new T(),
222002
222002
  hoverColumnVisible: !1,
222003
222003
  getSelectionModel: () => e
222004
- }, n = Ae(), m = new Vr();
222005
- for (const i of n)
222004
+ }, t = Ie(), m = new Er();
222005
+ for (const i of t)
222006
222006
  (i.property === "price" || i.property === "total") && (i.rendererMap.body = m);
222007
- const s = f.createTableModel({
222008
- rows: E(a),
222009
- columnDefs: n,
222007
+ const s = N.createTableModel({
222008
+ rows: _(a),
222009
+ columnDefs: t,
222010
222010
  footerAggregates: {
222011
222011
  rows: [
222012
222012
  {
@@ -222023,33 +222023,33 @@ function Za(a = 5e4) {
222023
222023
  });
222024
222024
  return new o(s, r);
222025
222025
  }
222026
- function Fr(a) {
222026
+ function Vr(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 Er(a, e = 42) {
222034
- const r = Fr(e + 1), n = Date.UTC(2024, 0, 1), m = 3 * 365 + 1;
222035
- return E(a, e).map((s) => ({
222033
+ function _r(a, e = 42) {
222034
+ const r = Vr(e + 1), t = Date.UTC(2024, 0, 1), m = 3 * 365 + 1;
222035
+ return _(a, e).map((s) => ({
222036
222036
  ...s,
222037
- date: new Date(n + Math.floor(r() * m) * 864e5).toISOString().slice(0, 10)
222037
+ date: new Date(t + Math.floor(r() * m) * 864e5).toISOString().slice(0, 10)
222038
222038
  }));
222039
222039
  }
222040
- const _r = { name: "year", label: "Year", value: (a) => Number(a.date.slice(0, 4)) }, Kr = {
222040
+ const Kr = { name: "year", label: "Year", value: (a) => Number(a.date.slice(0, 4)) }, Wr = {
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 za(a = 5e4, e = [_r, Kr], r = 0) {
222047
- const n = new h("range", "multi"), m = {
222046
+ function Da(a = 5e4, e = [Kr, Wr], r = 0) {
222047
+ const t = new h("range", "multi"), m = {
222048
222048
  ...new T(),
222049
222049
  hoverColumnVisible: !1,
222050
- getSelectionModel: () => n
222051
- }, s = Ke.createTableModel({
222052
- rows: Er(a),
222050
+ getSelectionModel: () => t
222051
+ }, s = We.createTableModel({
222052
+ rows: _r(a),
222053
222053
  rowFields: [{ value: "country", label: "Country" }, { value: "city", label: "City" }],
222054
222054
  columnFields: e,
222055
222055
  values: [
@@ -222063,101 +222063,101 @@ function za(a = 5e4, e = [_r, Kr], r = 0) {
222063
222063
  });
222064
222064
  return new o(s, m);
222065
222065
  }
222066
- const Wr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
222067
- class jr {
222068
- render(e, r, n, m, s, i, y) {
222066
+ const jr = new Intl.NumberFormat("en-US", { minimumFractionDigits: 2, maximumFractionDigits: 2 });
222067
+ class Yr {
222068
+ render(e, r, t, m, s, i, y) {
222069
222069
  if (i == null || i === "")
222070
222070
  return;
222071
222071
  const d = y.createElement("div");
222072
222072
  y.addClass(d, "ge-table-label-div");
222073
222073
  const u = y.createElement("div");
222074
222074
  y.addClass(u, "ge-table-label");
222075
- const g = typeof i == "number" ? Wr.format(i) : `${i}`;
222076
- y.appendChild(u, y.createText(g)), y.appendChild(d, u), y.appendChild(e, d);
222075
+ const l = typeof i == "number" ? jr.format(i) : `${i}`;
222076
+ y.appendChild(u, y.createText(l)), y.appendChild(d, u), y.appendChild(e, d);
222077
222077
  }
222078
222078
  }
222079
- function Yr(a, e = 8) {
222079
+ function Xr(a, e = 8) {
222080
222080
  const r = [0, 0, 0, 5, 5, 10, 15];
222081
- return E(a, e).map((n, m) => ({
222082
- id: n.id,
222083
- country: n.country,
222084
- product: n.product,
222085
- quantity: n.quantity,
222086
- price: n.price,
222087
- discount: r[(m * 7 + n.quantity) % r.length]
222081
+ return _(a, e).map((t, m) => ({
222082
+ id: t.id,
222083
+ country: t.country,
222084
+ product: t.product,
222085
+ quantity: t.quantity,
222086
+ price: t.price,
222087
+ discount: r[(m * 7 + t.quantity) % r.length]
222088
222088
  }));
222089
222089
  }
222090
- const C = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], footerClasses: ["ge-table-text-align-right"] }, M = {
222090
+ const C = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"], footerClasses: ["ge-table-text-align-right"] }, B = {
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 Xr(a = M.custom) {
222097
- const e = new jr();
222096
+ function Jr(a = B.custom) {
222097
+ const e = new Yr();
222098
222098
  return [
222099
- t.create({ property: "id", headerLabel: "Line", width: w, ...C, sortable: p }),
222100
- t.create({ property: "country", headerLabel: "Country", width: We, sortable: p }),
222101
- t.create({ property: "product", headerLabel: "Product", width: $, sortable: p }),
222102
- t.create({
222099
+ n.create({ property: "id", headerLabel: "Line", width: w, ...C, sortable: p }),
222100
+ n.create({ property: "country", headerLabel: "Country", width: je, sortable: p }),
222101
+ n.create({ property: "product", headerLabel: "Product", width: E, sortable: p }),
222102
+ n.create({
222103
222103
  property: "quantity",
222104
222104
  headerLabel: "Qty",
222105
222105
  width: w,
222106
222106
  ...C,
222107
222107
  sortable: p,
222108
222108
  editable: p,
222109
- editInputPipe: Z
222109
+ editInputPipe: z
222110
222110
  }),
222111
- t.create({
222111
+ n.create({
222112
222112
  property: "price",
222113
222113
  headerLabel: "Price",
222114
- width: Q,
222114
+ width: ee,
222115
222115
  ...C,
222116
222116
  sortable: p,
222117
222117
  editable: p,
222118
- editInputPipe: Z,
222118
+ editInputPipe: z,
222119
222119
  bodyRenderer: e
222120
222120
  }),
222121
- t.create({
222121
+ n.create({
222122
222122
  property: "discount",
222123
222123
  headerLabel: "Disc. %",
222124
222124
  width: w,
222125
222125
  ...C,
222126
222126
  sortable: p,
222127
222127
  editable: p,
222128
- editInputPipe: Z
222128
+ editInputPipe: z
222129
222129
  }),
222130
- t.create({
222130
+ n.create({
222131
222131
  property: "net",
222132
222132
  headerLabel: "Net",
222133
222133
  width: b,
222134
222134
  ...C,
222135
222135
  sortable: p,
222136
- formula: M.net,
222136
+ formula: B.net,
222137
222137
  bodyRenderer: e,
222138
222138
  footerRenderer: e
222139
222139
  }),
222140
- t.create({
222140
+ n.create({
222141
222141
  property: "vat",
222142
222142
  headerLabel: "VAT 19%",
222143
- width: Q,
222143
+ width: ee,
222144
222144
  ...C,
222145
222145
  sortable: p,
222146
- formula: M.vat,
222146
+ formula: B.vat,
222147
222147
  bodyRenderer: e,
222148
222148
  footerRenderer: e
222149
222149
  }),
222150
- t.create({
222150
+ n.create({
222151
222151
  property: "gross",
222152
222152
  headerLabel: "Gross",
222153
222153
  width: b,
222154
222154
  ...C,
222155
222155
  sortable: p,
222156
- formula: M.gross,
222156
+ formula: B.gross,
222157
222157
  bodyRenderer: e,
222158
222158
  footerRenderer: e
222159
222159
  }),
222160
- t.create({
222160
+ n.create({
222161
222161
  property: "share",
222162
222162
  headerLabel: "Share of net",
222163
222163
  width: b,
@@ -222166,7 +222166,7 @@ function Xr(a = M.custom) {
222166
222166
  formula: "[net]",
222167
222167
  showValuesAs: { mode: "percentOfColumnTotal", fractionDigits: 2 }
222168
222168
  }),
222169
- t.create({
222169
+ n.create({
222170
222170
  property: "rank",
222171
222171
  headerLabel: "Rank",
222172
222172
  width: w,
@@ -222175,7 +222175,7 @@ function Xr(a = M.custom) {
222175
222175
  formula: "[gross]",
222176
222176
  showValuesAs: "rank"
222177
222177
  }),
222178
- t.create({
222178
+ n.create({
222179
222179
  property: "custom",
222180
222180
  headerLabel: "Custom formula",
222181
222181
  width: P,
@@ -222185,15 +222185,15 @@ function Xr(a = M.custom) {
222185
222185
  })
222186
222186
  ];
222187
222187
  }
222188
- function wa(a = 2e3) {
222188
+ function Ua(a = 2e3) {
222189
222189
  const e = {
222190
222190
  ...new T(),
222191
222191
  hoverColumnVisible: !1
222192
- }, r = f.createTableModel({
222193
- rows: Yr(a),
222194
- columnDefs: Xr(),
222192
+ }, r = N.createTableModel({
222193
+ rows: Xr(a),
222194
+ columnDefs: Jr(),
222195
222195
  footerAggregates: {
222196
- rows: [{ label: (n) => `Sum · ${n.toLocaleString("en-US")} lines`, aggregates: { net: "sum", vat: "sum", gross: "sum" } }],
222196
+ rows: [{ label: (t) => `Sum · ${t.toLocaleString("en-US")} lines`, aggregates: { net: "sum", vat: "sum", gross: "sum" } }],
222197
222197
  labelProperty: "product"
222198
222198
  },
222199
222199
  fixedLeftColumnCount: 1,
@@ -222222,33 +222222,33 @@ const x = [
222222
222222
  "Plan Q1 roadmap",
222223
222223
  "Refactor date utils",
222224
222224
  "Security headers"
222225
- ], le = ["Anna", "Ben", "Chen", "Dana", "Emil"], ge = ["todo", "doing", "todo", "done", "todo"];
222226
- function Jr(a = 20, e = !1) {
222227
- return Array.from({ length: a }, (r, n) => ({
222228
- id: n + 1,
222229
- title: n < x.length ? x[n] : `${x[n % x.length]} #${Math.floor(n / x.length) + 1}`,
222230
- owner: le[n % le.length],
222231
- status: ge[n * 3 % ge.length],
222232
- estimate: 1 + n * 7 % 13,
222233
- locked: e && n === 0
222225
+ ], ge = ["Anna", "Ben", "Chen", "Dana", "Emil"], be = ["todo", "doing", "todo", "done", "todo"];
222226
+ function Qr(a = 20, e = !1) {
222227
+ return Array.from({ length: a }, (r, t) => ({
222228
+ id: t + 1,
222229
+ title: t < x.length ? x[t] : `${x[t % x.length]} #${Math.floor(t / x.length) + 1}`,
222230
+ owner: ge[t % ge.length],
222231
+ status: be[t * 3 % be.length],
222232
+ estimate: 1 + t * 7 % 13,
222233
+ locked: e && t === 0
222234
222234
  }));
222235
222235
  }
222236
- function va(a = Jr(20, !0), e = {}) {
222237
- const r = new h("row", "multi"), n = new F("cell"), m = {
222236
+ function Ma(a = Qr(20, !0), e = {}) {
222237
+ const r = new h("row", "multi"), t = new U("cell"), m = {
222238
222238
  ...new T(),
222239
222239
  hoverColumnVisible: !1,
222240
222240
  getSelectionModel: () => r,
222241
- getFocusModel: () => n,
222241
+ getFocusModel: () => t,
222242
222242
  rowDragOptions: e,
222243
222243
  ariaLabel: "Priority list"
222244
- }, s = f.createTableModel({
222244
+ }, s = N.createTableModel({
222245
222245
  rows: a,
222246
222246
  rowNumbersVisible: { headerLabel: "#" },
222247
222247
  columnDefs: [
222248
- t.create({ property: "title", headerLabel: "Task", width: ze, rowDrag: (i) => !i.locked }),
222249
- t.create({ property: "owner", headerLabel: "Owner", width: b }),
222250
- t.create({ property: "status", headerLabel: "Status", width: c }),
222251
- t.create({
222248
+ n.create({ property: "title", headerLabel: "Task", width: ke, rowDrag: (i) => !i.locked }),
222249
+ n.create({ property: "owner", headerLabel: "Owner", width: b }),
222250
+ n.create({ property: "status", headerLabel: "Status", width: c }),
222251
+ n.create({
222252
222252
  property: "estimate",
222253
222253
  headerLabel: "Hours",
222254
222254
  width: c,
@@ -222260,7 +222260,7 @@ function va(a = Jr(20, !0), e = {}) {
222260
222260
  });
222261
222261
  return new o(s, m);
222262
222262
  }
222263
- const Qr = [
222263
+ const ea = [
222264
222264
  {
222265
222265
  id: 0,
222266
222266
  preName: "Prename0",
@@ -384134,7 +384134,7 @@ const Qr = [
384134
384134
  friends: []
384135
384135
  }
384136
384136
  ];
384137
- function ea(a = !1) {
384137
+ function ra(a = !1) {
384138
384138
  const e = new h("range", "multi");
384139
384139
  return a && (e.addSelection(new k(0, 0, 0, 2)), e.addSelection(new k(2, 1, 2, 2)), e.addSelection(new k(1, 5, 6, 7)), e.addSelection(new k(0, 8, 0, 8)), e.addSelection(new k(5, 6, 10, 10))), {
384140
384140
  ...new T(),
@@ -384145,62 +384145,62 @@ function ea(a = !1) {
384145
384145
  footer: 0
384146
384146
  },
384147
384147
  autoRestoreOptions: {
384148
- ...new er(),
384148
+ ...new rr(),
384149
384149
  getStorageKeyFn: () => "TreetablePeopleComponent",
384150
384150
  autoRestoreCollapsedExpandedState: !0,
384151
384151
  autoRestoreScrollPosition: !0,
384152
384152
  autoRestoreSortingState: !0
384153
384153
  },
384154
- externalFilterFunction: (r, n, m) => !0,
384154
+ externalFilterFunction: (r, t, m) => !0,
384155
384155
  getSelectionModel: () => e
384156
384156
  };
384157
384157
  }
384158
- function ra() {
384158
+ function aa() {
384159
384159
  return [
384160
- new t("lastName", "Last Name", Ue),
384161
- new t("preName", "Pre Name", b),
384162
- t.create({
384160
+ new n("lastName", "Last Name", Be),
384161
+ new n("preName", "Pre Name", b),
384162
+ n.create({
384163
384163
  property: "age",
384164
384164
  headerLabel: "Age",
384165
- width: qe,
384166
- bodyRenderer: new je(),
384165
+ width: F,
384166
+ bodyRenderer: new Ye(),
384167
384167
  editable: p,
384168
384168
  // editInputPipe: (value: any) => value ? Number(value) : ""
384169
- editInputPipe: Z
384169
+ editInputPipe: z
384170
384170
  }),
384171
- new t(
384171
+ new n(
384172
384172
  "birth",
384173
384173
  "Birthday",
384174
384174
  c,
384175
384175
  void 0,
384176
- Ye.bodyRenderer(new V())
384176
+ Xe.bodyRenderer(new V())
384177
384177
  ),
384178
- t.create({
384178
+ n.create({
384179
384179
  property: "gender",
384180
384180
  headerLabel: " ",
384181
- width: Je,
384182
- bodyRenderer: new Pe(),
384181
+ width: Qe,
384182
+ bodyRenderer: new ze(),
384183
384183
  editable: p,
384184
- getEditRenderer: () => new Xe([
384185
- new me("female", "♀"),
384186
- new me("male", "♂")
384184
+ getEditRenderer: () => new Je([
384185
+ new se("female", "♀"),
384186
+ new se("male", "♂")
384187
384187
  ])
384188
384188
  }),
384189
- new t("address.street", "Strasse", we),
384190
- new t("address.number", "Nr", Qe),
384191
- new t("address.zip", "Zip", G),
384192
- new t("address.city", "City", b),
384193
- new t("address.country", "Country", b),
384194
- new t("id", "ID", G)
384189
+ new n("address.street", "Strasse", xe),
384190
+ new n("address.number", "Nr", er),
384191
+ new n("address.zip", "Zip", G),
384192
+ new n("address.city", "City", b),
384193
+ new n("address.country", "Country", b),
384194
+ new n("id", "ID", G)
384195
384195
  ];
384196
384196
  }
384197
- function ka(a = !1) {
384198
- const e = ea(a), r = ra();
384197
+ function qa(a = !1) {
384198
+ const e = ra(a), r = aa();
384199
384199
  for (const s of r)
384200
384200
  s.sortable = p, s.editable = p;
384201
- r[0].editable = J;
384202
- const n = Ge.buildTreeRows(Qr, "friends"), m = f.createTableModel({
384203
- rows: n,
384201
+ r[0].editable = Q;
384202
+ const t = Ze.buildTreeRows(ea, "friends"), m = N.createTableModel({
384203
+ rows: t,
384204
384204
  columnDefs: r,
384205
384205
  tableOptions: e,
384206
384206
  fixedLeftColumnCount: 1,
@@ -384211,7 +384211,7 @@ function ka(a = !1) {
384211
384211
  e
384212
384212
  );
384213
384213
  }
384214
- const B = [
384214
+ const A = [
384215
384215
  ["Desk lamp", "Office"],
384216
384216
  ["Standing desk", "Office"],
384217
384217
  ["Office chair", "Office"],
@@ -384229,13 +384229,13 @@ const B = [
384229
384229
  ["Tea selection", "Kitchen"],
384230
384230
  ["Water bottle", "Kitchen"]
384231
384231
  ];
384232
- function aa(a = 16) {
384232
+ function ta(a = 16) {
384233
384233
  return Array.from({ length: a }, (e, r) => {
384234
- const [n, m] = B[r % B.length];
384234
+ const [t, m] = A[r % A.length];
384235
384235
  return {
384236
384236
  id: r + 1,
384237
384237
  sku: `SKU-${String(r + 1).padStart(3, "0")}`,
384238
- product: r < B.length ? n : `${n} ${Math.floor(r / B.length) + 1}`,
384238
+ product: r < A.length ? t : `${t} ${Math.floor(r / A.length) + 1}`,
384239
384239
  category: m,
384240
384240
  validFrom: "2026-10-01",
384241
384241
  price: Math.round((5 + (r * r * 37 + r * 11) % 150 + r * 13 % 10 / 10) * 100) / 100,
@@ -384244,60 +384244,60 @@ function aa(a = 16) {
384244
384244
  };
384245
384245
  });
384246
384246
  }
384247
- function xa(a = aa(), e = !0, r = !0) {
384248
- const n = new h("range", "multi"), m = new F("cell"), s = {
384247
+ function Ba(a = ta(), e = !0, r = !0) {
384248
+ const t = new h("range", "multi"), m = new U("cell"), s = {
384249
384249
  ...new T(),
384250
384250
  hoverColumnVisible: !1,
384251
- getSelectionModel: () => n,
384251
+ getSelectionModel: () => t,
384252
384252
  getFocusModel: () => m,
384253
384253
  fillHandle: r,
384254
384254
  batchEdit: e,
384255
384255
  ariaLabel: "Price list"
384256
- }, i = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"] }, y = f.createTableModel({
384256
+ }, i = { headerClasses: ["ge-table-text-align-right"], bodyClasses: ["ge-table-text-align-right"] }, y = N.createTableModel({
384257
384257
  rows: a,
384258
384258
  fixedLeftColumnCount: 1,
384259
384259
  columnDefs: [
384260
- t.create({ property: "sku", headerLabel: "SKU", width: c }),
384261
- t.create({ property: "product", headerLabel: "Product", width: z, editable: p }),
384262
- t.create({ property: "category", headerLabel: "Category", width: c, editable: p }),
384263
- t.create({
384260
+ n.create({ property: "sku", headerLabel: "SKU", width: c }),
384261
+ n.create({ property: "product", headerLabel: "Product", width: Z, editable: p }),
384262
+ n.create({ property: "category", headerLabel: "Category", width: c, editable: p }),
384263
+ n.create({
384264
384264
  property: "validFrom",
384265
384265
  headerLabel: "Valid from",
384266
384266
  width: b,
384267
384267
  editable: p,
384268
384268
  validate: (d) => /^\d{4}-\d{2}-\d{2}$/.test(String(d)) ? void 0 : "Date as YYYY-MM-DD"
384269
384269
  }),
384270
- t.create({
384270
+ n.create({
384271
384271
  property: "price",
384272
384272
  headerLabel: "Price",
384273
384273
  width: c,
384274
384274
  editable: p,
384275
- editInputPipe: Z,
384275
+ editInputPipe: z,
384276
384276
  ...i,
384277
384277
  validate: (d) => typeof d == "number" && d >= 0 ? void 0 : "A price is a number ≥ 0"
384278
384278
  }),
384279
- t.create({
384279
+ n.create({
384280
384280
  property: "discount",
384281
384281
  headerLabel: "Discount %",
384282
384282
  width: c,
384283
384283
  editable: p,
384284
- editInputPipe: Z,
384284
+ editInputPipe: z,
384285
384285
  ...i,
384286
384286
  validate: (d) => typeof d == "number" && d >= 0 && d <= 50 ? void 0 : "Discount 0 … 50 %"
384287
384287
  }),
384288
- t.create({
384288
+ n.create({
384289
384289
  property: "net",
384290
384290
  headerLabel: "Net",
384291
384291
  width: c,
384292
384292
  ...i,
384293
384293
  valueGetter: (d) => Math.round(d.price * (100 - d.discount)) / 100
384294
384294
  }),
384295
- t.create({
384295
+ n.create({
384296
384296
  property: "stock",
384297
384297
  headerLabel: "Stock",
384298
384298
  width: c,
384299
384299
  editable: p,
384300
- editInputPipe: Z,
384300
+ editInputPipe: z,
384301
384301
  ...i,
384302
384302
  validate: (d) => Number.isInteger(d) && d >= 0 ? void 0 : "Stock is a whole number ≥ 0"
384303
384303
  })
@@ -384306,7 +384306,7 @@ function xa(a = aa(), e = !0, r = !0) {
384306
384306
  });
384307
384307
  return new o(y, s);
384308
384308
  }
384309
- const be = [
384309
+ const Ne = [
384310
384310
  "Ada Lovelace",
384311
384311
  "Alan Turing",
384312
384312
  "Grace Hopper",
@@ -384317,7 +384317,7 @@ const be = [
384317
384317
  "Ken Thompson",
384318
384318
  "Katherine Johnson",
384319
384319
  "Tim Berners-Lee"
384320
- ], Ne = ["Berlin", "Hamburg", "Munich", "Cologne", "Vienna", "Zurich"], fe = ["open", "paid", "shipped", "delivered"], Te = [
384320
+ ], fe = ["Berlin", "Hamburg", "Munich", "Cologne", "Vienna", "Zurich"], Te = ["open", "paid", "shipped", "delivered"], oe = [
384321
384321
  ["Desk lamp", 39.9],
384322
384322
  ["Standing desk", 499],
384323
384323
  ["Office chair", 289],
@@ -384331,63 +384331,63 @@ const be = [
384331
384331
  ["Coffee beans", 15.5],
384332
384332
  ["Water bottle", 19.9]
384333
384333
  ];
384334
- function ta(a = 1e3) {
384334
+ function na(a = 1e3) {
384335
384335
  let e = 20261016;
384336
- const r = () => (e = e * 16807 % 2147483647) / 2147483647, n = [];
384336
+ const r = () => (e = e * 16807 % 2147483647) / 2147483647, t = [];
384337
384337
  for (let m = 0; m < a; m++) {
384338
384338
  const s = [], i = 1 + Math.floor(r() * 8);
384339
384339
  for (let d = 0; d < i; d++) {
384340
- const [u, g] = Te[Math.floor(r() * Te.length)];
384341
- s.push({ sku: `SKU-${String(1 + Math.floor(r() * 900)).padStart(3, "0")}`, product: u, quantity: 1 + Math.floor(r() * 5), unitPrice: g });
384340
+ const [u, l] = oe[Math.floor(r() * oe.length)];
384341
+ s.push({ sku: `SKU-${String(1 + Math.floor(r() * 900)).padStart(3, "0")}`, product: u, quantity: 1 + Math.floor(r() * 5), unitPrice: l });
384342
384342
  }
384343
384343
  const y = 1 + m % 28;
384344
- n.push({
384344
+ t.push({
384345
384345
  id: m + 1,
384346
384346
  orderNo: `ORD-${String(10001 + m)}`,
384347
- customer: be[Math.floor(r() * be.length)],
384348
- city: Ne[m % Ne.length],
384347
+ customer: Ne[Math.floor(r() * Ne.length)],
384348
+ city: fe[m % fe.length],
384349
384349
  date: `2026-${String(1 + m % 9).padStart(2, "0")}-${String(y).padStart(2, "0")}`,
384350
- status: fe[Math.floor(r() * fe.length)],
384350
+ status: Te[Math.floor(r() * Te.length)],
384351
384351
  total: Math.round(s.reduce((d, u) => d + u.quantity * u.unitPrice, 0) * 100) / 100,
384352
384352
  items: s
384353
384353
  });
384354
384354
  }
384355
- return n;
384355
+ return t;
384356
384356
  }
384357
- function na(a) {
384358
- return f.createTableModel({
384357
+ function ma(a) {
384358
+ return N.createTableModel({
384359
384359
  rows: a.items,
384360
384360
  columnDefs: [
384361
- t.create({ property: "sku", headerLabel: "SKU", width: c }),
384362
- t.create({ property: "product", headerLabel: "Product", width: z }),
384363
- t.create({ property: "quantity", headerLabel: "Qty", width: c, bodyClasses: ["ge-table-text-align-right"] }),
384364
- t.create({ property: "unitPrice", headerLabel: "Unit price", width: b, bodyClasses: ["ge-table-text-align-right"] })
384361
+ n.create({ property: "sku", headerLabel: "SKU", width: c }),
384362
+ n.create({ property: "product", headerLabel: "Product", width: Z }),
384363
+ n.create({ property: "quantity", headerLabel: "Qty", width: c, bodyClasses: ["ge-table-text-align-right"] }),
384364
+ n.create({ property: "unitPrice", headerLabel: "Unit price", width: b, bodyClasses: ["ge-table-text-align-right"] })
384365
384365
  ]
384366
384366
  });
384367
384367
  }
384368
- function Da(a = ta(1e5), e = {}) {
384369
- const r = f.createTableModel({
384368
+ function Aa(a = na(1e5), e = {}) {
384369
+ const r = N.createTableModel({
384370
384370
  rows: a,
384371
384371
  columnDefs: [
384372
- t.create({ property: "orderNo", headerLabel: "Order", width: $ }),
384373
- t.create({ property: "date", headerLabel: "Date", width: b, sortable: () => !0 }),
384374
- t.create({ property: "customer", headerLabel: "Customer", width: z, sortable: () => !0 }),
384375
- t.create({ property: "city", headerLabel: "City", width: b, sortable: () => !0 }),
384376
- t.create({ property: "status", headerLabel: "Status", width: c }),
384377
- t.create({ property: "total", headerLabel: "Total", width: b, sortable: () => !0, bodyClasses: ["ge-table-text-align-right"] })
384372
+ n.create({ property: "orderNo", headerLabel: "Order", width: E }),
384373
+ n.create({ property: "date", headerLabel: "Date", width: b, sortable: () => !0 }),
384374
+ n.create({ property: "customer", headerLabel: "Customer", width: Z, sortable: () => !0 }),
384375
+ n.create({ property: "city", headerLabel: "City", width: b, sortable: () => !0 }),
384376
+ n.create({ property: "status", headerLabel: "Status", width: c }),
384377
+ n.create({ property: "total", headerLabel: "Total", width: b, sortable: () => !0, bodyClasses: ["ge-table-text-align-right"] })
384378
384378
  ],
384379
384379
  fixedLeftColumnCount: 1
384380
- }), n = new F("cell"), m = new h("row", "multi"), s = {
384380
+ }), t = new U("cell"), m = new h("row", "multi"), s = {
384381
384381
  ...new T(),
384382
384382
  hoverColumnVisible: !1,
384383
- getFocusModel: () => n,
384383
+ getFocusModel: () => t,
384384
384384
  getSelectionModel: () => m,
384385
384385
  ariaLabel: "Orders",
384386
384386
  masterDetail: {
384387
384387
  detailHeight: 222,
384388
384388
  // header + 5 rows, borders, padding of the detail cell
384389
384389
  detailRenderer: (i, y, d) => {
384390
- d.createTable({ tableModel: na(y) });
384390
+ d.createTable({ tableModel: ma(y) });
384391
384391
  },
384392
384392
  getRowId: (i) => i.id,
384393
384393
  ...e
@@ -384395,7 +384395,7 @@ function Da(a = ta(1e5), e = {}) {
384395
384395
  };
384396
384396
  return new o(r, s);
384397
384397
  }
384398
- const X = [
384398
+ const J = [
384399
384399
  ["الرياض", "السعودية", "RUH"],
384400
384400
  ["جدة", "السعودية", "JED"],
384401
384401
  ["مكة", "السعودية", "MKK"],
@@ -384416,23 +384416,23 @@ const X = [
384416
384416
  ["الجزائر", "الجزائر", "ALG"],
384417
384417
  ["الرباط", "المغرب", "RBA"],
384418
384418
  ["الدار البيضاء", "المغرب", "CMN"]
384419
- ], oe = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"];
384420
- function ma(a) {
384419
+ ], he = ["يناير", "فبراير", "مارس", "أبريل", "مايو", "يونيو", "يوليو", "أغسطس", "سبتمبر", "أكتوبر", "نوفمبر", "ديسمبر"];
384420
+ function sa(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 sa(a = 2e3, e = 7) {
384428
- const r = ma(e);
384429
- return Array.from({ length: a }, (n, m) => {
384430
- const [s, i, y] = X[m % X.length], d = 5e3 + Math.round(r() * 25e3), u = () => Math.round(d * (0.7 + r() * 0.6));
384427
+ function ia(a = 2e3, e = 7) {
384428
+ const r = sa(e);
384429
+ return Array.from({ length: a }, (t, m) => {
384430
+ const [s, i, y] = J[m % J.length], d = 5e3 + Math.round(r() * 25e3), u = () => Math.round(d * (0.7 + r() * 0.6));
384431
384431
  return {
384432
384432
  id: m + 1,
384433
384433
  city: s,
384434
384434
  country: i,
384435
- branch: `فرع ${y}-${String(Math.floor(m / X.length) + 1).padStart(2, "0")}`,
384435
+ branch: `فرع ${y}-${String(Math.floor(m / J.length) + 1).padStart(2, "0")}`,
384436
384436
  m1: u(),
384437
384437
  m2: u(),
384438
384438
  m3: u(),
@@ -384448,36 +384448,36 @@ function sa(a = 2e3, e = 7) {
384448
384448
  };
384449
384449
  });
384450
384450
  }
384451
- function Ua(a = "rtl", e = sa()) {
384452
- const r = new h("range", "multi"), n = new F("cell"), m = {
384451
+ function Ra(a = "rtl", e = ia()) {
384452
+ const r = new h("range", "multi"), t = new U("cell"), m = {
384453
384453
  ...new T(),
384454
384454
  direction: a,
384455
384455
  hoverColumnVisible: !1,
384456
384456
  getSelectionModel: () => r,
384457
- getFocusModel: () => n,
384457
+ getFocusModel: () => t,
384458
384458
  ariaLabel: "المبيعات حسب المدينة"
384459
- }, s = ["ge-table-text-align-right"], i = oe.map((g, N) => t.create({
384460
- property: `m${N + 1}`,
384461
- headerLabel: g,
384459
+ }, s = ["ge-table-text-align-right"], i = he.map((l, f) => n.create({
384460
+ property: `m${f + 1}`,
384461
+ headerLabel: l,
384462
384462
  width: c,
384463
384463
  bodyClasses: s,
384464
384464
  footerClasses: s,
384465
384465
  sortable: () => !0
384466
384466
  })), y = [
384467
- t.create({ property: "city", headerLabel: "المدينة", width: b, sortable: () => !0 }),
384468
- t.create({ property: "country", headerLabel: "البلد", width: b, sortable: () => !0 }),
384469
- t.create({ property: "branch", headerLabel: "الفرع", width: P }),
384467
+ n.create({ property: "city", headerLabel: "المدينة", width: b, sortable: () => !0 }),
384468
+ n.create({ property: "country", headerLabel: "البلد", width: b, sortable: () => !0 }),
384469
+ n.create({ property: "branch", headerLabel: "الفرع", width: P }),
384470
384470
  ...i,
384471
- t.create({
384471
+ n.create({
384472
384472
  property: "total",
384473
384473
  headerLabel: "المجموع",
384474
384474
  width: b,
384475
384475
  bodyClasses: s,
384476
384476
  footerClasses: s,
384477
384477
  sortable: () => !0,
384478
- valueGetter: (g) => oe.reduce((N, S, v) => N + g[`m${v + 1}`], 0)
384478
+ valueGetter: (l) => he.reduce((f, S, v) => f + l[`m${v + 1}`], 0)
384479
384479
  })
384480
- ], d = Object.fromEntries([...i.map((g) => g.property), "total"].map((g) => [g, "sum"])), u = f.createTableModel({
384480
+ ], d = Object.fromEntries([...i.map((l) => l.property), "total"].map((l) => [l, "sum"])), u = N.createTableModel({
384481
384481
  rows: e,
384482
384482
  columnDefs: y,
384483
384483
  rowNumbersVisible: !0,
@@ -384493,7 +384493,7 @@ function Ua(a = "rtl", e = sa()) {
384493
384493
  });
384494
384494
  return new o(u, m);
384495
384495
  }
384496
- function ia() {
384496
+ function da() {
384497
384497
  return [
384498
384498
  ["Item", "Qty", "Unit price", "Discount", "Net", "Note"],
384499
384499
  ['Laptop 14"', 4, 1299, 0.05, "=B2*C2*(1-D2)", ""],
@@ -384508,16 +384508,16 @@ function ia() {
384508
384508
  ["Total", "", "", "", "=E8+E9+E10", ""]
384509
384509
  ];
384510
384510
  }
384511
- function qa(a = {}) {
384512
- return rr.create({
384513
- data: ia(),
384511
+ function Ia(a = {}) {
384512
+ return ar.create({
384513
+ data: da(),
384514
384514
  rowCount: 100,
384515
384515
  columnCount: 8,
384516
384516
  columnWidth: 130,
384517
384517
  ...a
384518
384518
  });
384519
384519
  }
384520
- const A = [
384520
+ const R = [
384521
384521
  "Silent",
384522
384522
  "Crimson",
384523
384523
  "Hidden",
@@ -384534,7 +384534,7 @@ const A = [
384534
384534
  "Burning",
384535
384535
  "Little",
384536
384536
  "Endless"
384537
- ], he = [
384537
+ ], Se = [
384538
384538
  "Garden",
384539
384539
  "Engine",
384540
384540
  "Harbour",
@@ -384553,42 +384553,42 @@ const A = [
384553
384553
  "Storm",
384554
384554
  "Machine",
384555
384555
  "Letters"
384556
- ], Se = ["Ada", "Jonas", "Mira", "Theo", "Lena", "Omar", "Ines", "Kai", "Nora", "Felix", "Yuki", "Elif"], Ce = ["Berger", "Okafor", "Lindqvist", "Moreau", "Kowalski", "Santos", "Tanaka", "Hart", "Novak", "Reyes"], Le = ["Fantasy", "Sci-Fi", "Crime", "Romance", "History", "Poetry", "Travel", "Cooking"];
384557
- function da(a = 1e4) {
384558
- const e = A.length * he.length;
384559
- return Array.from({ length: a }, (r, n) => {
384560
- const m = n * 97 % e, s = A[m % A.length], i = he[Math.floor(m / A.length)], y = Math.floor(n / e);
384556
+ ], Ce = ["Ada", "Jonas", "Mira", "Theo", "Lena", "Omar", "Ines", "Kai", "Nora", "Felix", "Yuki", "Elif"], Le = ["Berger", "Okafor", "Lindqvist", "Moreau", "Kowalski", "Santos", "Tanaka", "Hart", "Novak", "Reyes"], Pe = ["Fantasy", "Sci-Fi", "Crime", "Romance", "History", "Poetry", "Travel", "Cooking"];
384557
+ function ya(a = 1e4) {
384558
+ const e = R.length * Se.length;
384559
+ return Array.from({ length: a }, (r, t) => {
384560
+ const m = t * 97 % e, s = R[m % R.length], i = Se[Math.floor(m / R.length)], y = Math.floor(t / e);
384561
384561
  return {
384562
- id: n + 1,
384562
+ id: t + 1,
384563
384563
  title: `The ${s} ${i}${y ? ` ${y + 1}` : ""}`,
384564
- author: `${Se[n * 11 % Se.length]} ${Ce[(n * 3 + Math.floor(n / 12)) % Ce.length]}`,
384565
- genre: Le[(n * 13 + Math.floor(n / e)) % Le.length],
384566
- year: 1950 + n * 37 % 76,
384567
- pages: 120 + n * 53 % 600,
384568
- hue: n * 47 % 360
384564
+ author: `${Ce[t * 11 % Ce.length]} ${Le[(t * 3 + Math.floor(t / 12)) % Le.length]}`,
384565
+ genre: Pe[(t * 13 + Math.floor(t / e)) % Pe.length],
384566
+ year: 1950 + t * 37 % 76,
384567
+ pages: 120 + t * 53 % 600,
384568
+ hue: t * 47 % 360
384569
384569
  };
384570
384570
  });
384571
384571
  }
384572
- const I = new Intl.Collator("en", { numeric: !0 }), Ma = {
384572
+ const I = new Intl.Collator("en", { numeric: !0 }), Oa = {
384573
384573
  id: (a, e) => a.id - e.id,
384574
384574
  title: (a, e) => I.compare(a.title, e.title) || a.id - e.id,
384575
384575
  author: (a, e) => I.compare(a.author, e.author) || I.compare(a.title, e.title),
384576
384576
  year: (a, e) => e.year - a.year || I.compare(a.title, e.title)
384577
384577
  };
384578
- class ya {
384578
+ class pa {
384579
384579
  constructor(e = {}) {
384580
384580
  this.ctx = e;
384581
384581
  }
384582
- render(e, r, n, m, s, i) {
384583
- var te, ne;
384582
+ render(e, r, t, m, s, i) {
384583
+ var ne, me;
384584
384584
  const y = i;
384585
384585
  if (!y) return;
384586
- const d = e.ownerDocument, u = s.coverWidth ?? 160, g = u < 120, N = d.createElement("div");
384587
- N.className = "ge-demo-book", N.title = `${y.title} – ${y.author} (${y.year})`, Object.assign(N.style, {
384586
+ const d = e.ownerDocument, u = s.coverWidth ?? 160, l = u < 120, f = d.createElement("div");
384587
+ f.className = "ge-demo-book", f.title = `${y.title} – ${y.author} (${y.year})`, Object.assign(f.style, {
384588
384588
  boxSizing: "border-box",
384589
384589
  width: "100%",
384590
384590
  height: "100%",
384591
- padding: g ? "5px" : "10px",
384591
+ padding: l ? "5px" : "10px",
384592
384592
  display: "flex",
384593
384593
  flexDirection: "column",
384594
384594
  gap: "6px",
@@ -384604,7 +384604,7 @@ class ya {
384604
384604
  display: "flex",
384605
384605
  flexDirection: "column",
384606
384606
  justifyContent: "space-between",
384607
- padding: g ? "8px 6px 8px 10px" : "14px 12px 14px 18px",
384607
+ padding: l ? "8px 6px 8px 10px" : "14px 12px 14px 18px",
384608
384608
  borderRadius: "3px 8px 8px 3px",
384609
384609
  borderLeft: "6px solid rgba(0,0,0,0.28)",
384610
384610
  background: `linear-gradient(160deg, hsl(${y.hue} 62% 52%), hsl(${(y.hue + 40) % 360} 68% 24%))`,
@@ -384612,36 +384612,36 @@ class ya {
384612
384612
  fontSize: `${Math.max(9, Math.round(u / 11))}px`,
384613
384613
  lineHeight: "1.2",
384614
384614
  boxShadow: "0 3px 8px rgba(0,0,0,0.35)",
384615
- outline: (ne = (te = this.ctx).isSelected) != null && ne.call(te, y) ? "3px solid #2b7de9" : "none",
384615
+ outline: (me = (ne = this.ctx).isSelected) != null && me.call(ne, y) ? "3px solid #2b7de9" : "none",
384616
384616
  outlineOffset: "3px"
384617
384617
  });
384618
384618
  const v = d.createElement("div");
384619
384619
  v.textContent = y.genre.toUpperCase(), Object.assign(v.style, { fontSize: "0.6em", letterSpacing: "0.12em", opacity: "0.85" });
384620
- const _ = d.createElement("div");
384621
- _.textContent = y.title, Object.assign(_.style, { fontSize: "1.2em", fontWeight: "700", overflowWrap: "anywhere" });
384622
384620
  const K = d.createElement("div");
384623
- if (K.textContent = y.author, Object.assign(K.style, { fontSize: "0.75em", opacity: "0.9" }), S.append(v, _), g || S.append(K), N.append(S), !g) {
384624
- const W = d.createElement("div");
384625
- W.textContent = `${y.year} · ${y.pages} pages`, Object.assign(W.style, {
384621
+ K.textContent = y.title, Object.assign(K.style, { fontSize: "1.2em", fontWeight: "700", overflowWrap: "anywhere" });
384622
+ const W = d.createElement("div");
384623
+ if (W.textContent = y.author, Object.assign(W.style, { fontSize: "0.75em", opacity: "0.9" }), S.append(v, K), l || S.append(W), f.append(S), !l) {
384624
+ const j = d.createElement("div");
384625
+ j.textContent = `${y.year} · ${y.pages} pages`, Object.assign(j.style, {
384626
384626
  fontSize: "12px",
384627
384627
  whiteSpace: "nowrap",
384628
384628
  overflow: "hidden",
384629
384629
  textOverflow: "ellipsis",
384630
384630
  opacity: "0.75"
384631
- }), N.append(W);
384631
+ }), f.append(j);
384632
384632
  }
384633
- e.append(N);
384633
+ e.append(f);
384634
384634
  }
384635
384635
  }
384636
- function Ba(a = da(), e = 160, r = 260, n = {}) {
384637
- const m = se.createCoverGridModel(
384636
+ function Ha(a = ya(), e = 160, r = 260, t = {}) {
384637
+ const m = ie.createCoverGridModel(
384638
384638
  a,
384639
- new ya(n),
384639
+ new pa(t),
384640
384640
  e,
384641
384641
  r
384642
384642
  ), s = {
384643
- ...se.createCoverGrisDefaultOptions(r, () => "coverGridDemo"),
384644
- externalFilterFunction: n.filter,
384643
+ ...ie.createCoverGrisDefaultOptions(r, () => "coverGridDemo"),
384644
+ externalFilterFunction: t.filter,
384645
384645
  shortcutActionsDisabled: !0,
384646
384646
  // the table's cell navigation does not apply to tiles
384647
384647
  overflowY: "scroll",
@@ -384650,70 +384650,261 @@ function Ba(a = da(), e = 160, r = 260, n = {}) {
384650
384650
  };
384651
384651
  return { tableModel: m, tableOptions: s };
384652
384652
  }
384653
- function Aa(a, e, r) {
384654
- const n = a.bodyModel;
384655
- if (!n.width) return !1;
384656
- const m = Math.max(1, Math.floor(n.width / e)), s = Math.floor(n.width / m), i = Math.round(r * s / e);
384657
- return s === n.coverWidth && i === n.coverHeight ? !1 : (n.coverWidth = s, n.coverHeight = i, !0);
384653
+ function Fa(a, e, r) {
384654
+ const t = a.bodyModel;
384655
+ if (!t.width) return !1;
384656
+ const m = Math.max(1, Math.floor(t.width / e)), s = Math.floor(t.width / m), i = Math.round(r * s / e);
384657
+ return s === t.coverWidth && i === t.coverHeight ? !1 : (t.coverWidth = s, t.coverHeight = i, !0);
384658
+ }
384659
+ const Ge = ["api", "auth", "db", "cache", "queue", "mailer", "scheduler", "billing"], ua = {
384660
+ DEBUG: ["cache lookup key=%k", "query plan cost=%n", "retry budget left=%n", "parsed %n headers"],
384661
+ INFO: [
384662
+ "GET /api/orders/%n 200 in %n ms",
384663
+ "user %k signed in",
384664
+ "job %k finished in %n ms",
384665
+ "sent %n mails",
384666
+ "POST /api/cart 201 in %n ms",
384667
+ "connection pool size=%n"
384668
+ ],
384669
+ WARN: ["slow query: %n ms", "retrying request %k (%n/3)", "disk usage at %n %", "rate limit close for %k"],
384670
+ ERROR: [
384671
+ "timeout after %n ms calling %k",
384672
+ "payment %k declined",
384673
+ "deadlock detected, rolled back tx %k",
384674
+ "unhandled exception in handler %k"
384675
+ ]
384676
+ };
384677
+ class ca {
384678
+ constructor(e = 42, r = 8 * 36e5, t = 0.2) {
384679
+ this.msPerLine = t, this.nextId = 1, this.seed = e >>> 0 || 1, this.timeMs = r;
384680
+ }
384681
+ /** The next `count` lines. */
384682
+ next(e) {
384683
+ const r = new Array(e);
384684
+ for (let t = 0; t < e; t++)
384685
+ r[t] = this.line();
384686
+ return r;
384687
+ }
384688
+ /** Number of lines generated so far. */
384689
+ getCount() {
384690
+ return this.nextId - 1;
384691
+ }
384692
+ line() {
384693
+ const e = this.random(), r = e < 0.05 ? "ERROR" : e < 0.15 ? "WARN" : e < 0.3 ? "DEBUG" : "INFO", t = ua[r], m = t[Math.floor(this.random() * t.length)].replace(/%n/g, () => String(1 + Math.floor(this.random() * 999))).replace(/%k/g, () => Math.floor(this.random() * 16777215).toString(16).padStart(6, "0"));
384694
+ return this.timeMs += this.msPerLine, {
384695
+ id: this.nextId++,
384696
+ time: la(this.timeMs),
384697
+ level: r,
384698
+ source: Ge[Math.floor(this.random() * Ge.length)],
384699
+ text: m
384700
+ };
384701
+ }
384702
+ /** mulberry32 */
384703
+ random() {
384704
+ let e = this.seed = this.seed + 1831565813 >>> 0;
384705
+ return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
384706
+ }
384707
+ }
384708
+ function la(a) {
384709
+ const e = Math.floor(a), r = Math.floor(e / 36e5) % 24, t = Math.floor(e / 6e4) % 60, m = Math.floor(e / 1e3) % 60, s = (i, y = 2) => String(i).padStart(y, "0");
384710
+ return `${s(r)}:${s(t)}:${s(m)}.${s(e % 1e3, 3)}`;
384711
+ }
384712
+ class $a {
384713
+ constructor(e, r = {}) {
384714
+ this.tableApi = e, this.options = r, this.pending = [], this.frozen = !1, this.intakePaused = !1, this.following = !0, this.newBelow = 0, this.running = !1, this.frameId = 0, this.lastTime = 0, this.due = 0, this.statsStart = 0, this.statsFrames = 0, this.statsLines = 0, this.statsTimes = [], this.generator = new ca(r.seed ?? 42), this.source = r.source ?? ((t) => this.generator.next(t)), this.rate = r.rate ?? 500, this.maxRows = r.maxRows ?? 1e6;
384715
+ }
384716
+ /** Starts the frame loop. */
384717
+ start() {
384718
+ this.running || (this.running = !0, this.lastTime = performance.now(), this.statsStart = this.lastTime, this.frameId = requestAnimationFrame((e) => this.frame(e)));
384719
+ }
384720
+ /** Stops the frame loop (lines in the buffer stay). */
384721
+ stop() {
384722
+ this.running = !1, cancelAnimationFrame(this.frameId);
384723
+ }
384724
+ isRunning() {
384725
+ return this.running;
384726
+ }
384727
+ /** Lines per second. */
384728
+ setRate(e) {
384729
+ this.rate = Math.max(0, e);
384730
+ }
384731
+ getRate() {
384732
+ return this.rate;
384733
+ }
384734
+ /** Freeze scroll: the view stays where it is, lines keep coming. */
384735
+ setFreezeScroll(e) {
384736
+ this.frozen = e, e && (this.following = !1);
384737
+ }
384738
+ isFrozen() {
384739
+ return this.frozen;
384740
+ }
384741
+ /** Pause intake (app pattern "freeze"): lines are buffered and appended as one block when unpaused. */
384742
+ setIntakePaused(e) {
384743
+ this.intakePaused = e, e || this.flush();
384744
+ }
384745
+ isIntakePaused() {
384746
+ return this.intakePaused;
384747
+ }
384748
+ /** Unfreezes and jumps to the end – the view follows again. */
384749
+ scrollToEnd() {
384750
+ this.frozen = !1, this.following = !0, this.newBelow = 0, this.tableApi.repaintHard({ py: Number.MAX_SAFE_INTEGER });
384751
+ }
384752
+ /** Appends the buffered lines now (one `appendRows`) – also used by the frame loop. */
384753
+ flush() {
384754
+ if (this.intakePaused || !this.pending.length) return;
384755
+ const e = this.pending.splice(0, this.pending.length), r = performance.now(), t = this.tableApi.appendRows(e, { follow: this.frozen ? !1 : "auto", maxRows: this.maxRows });
384756
+ return this.statsTimes.push(performance.now() - r), t && (this.following = t.following, this.newBelow = t.following ? 0 : this.newBelow + t.shown), t;
384757
+ }
384758
+ /** Adds lines from outside (e.g. a WebSocket) – appended with the next frame. */
384759
+ push(e) {
384760
+ for (const r of e) this.pending.push(r);
384761
+ }
384762
+ /** The latest numbers (also passed to `onStats`). */
384763
+ getStats() {
384764
+ return this.lastStats ?? this.createStats(0, 0, 0);
384765
+ }
384766
+ frame(e) {
384767
+ var m, s;
384768
+ if (!this.running) return;
384769
+ const r = Math.min(1e3, e - this.lastTime);
384770
+ this.lastTime = e, this.due += this.rate * r / 1e3;
384771
+ const t = Math.floor(this.due);
384772
+ if (t > 0 && (this.due -= t, this.push(this.source(t)), this.statsLines += t), this.flush(), this.statsFrames++, e - this.statsStart >= 250) {
384773
+ const i = (e - this.statsStart) / 1e3, y = [...this.statsTimes].sort((u, l) => u - l), d = y.length ? y[Math.floor(y.length / 2)] : 0;
384774
+ this.lastStats = this.createStats(this.statsLines / i, this.statsFrames / i, d), (s = (m = this.options).onStats) == null || s.call(m, this.lastStats), this.statsStart = e, this.statsFrames = 0, this.statsLines = 0, this.statsTimes = [];
384775
+ }
384776
+ this.frameId = requestAnimationFrame((i) => this.frame(i));
384777
+ }
384778
+ createStats(e, r, t) {
384779
+ return {
384780
+ totalLines: this.generator.getCount(),
384781
+ rowCount: this.tableApi.getBodyModel().getRowCount(),
384782
+ linesPerSecond: Math.round(e),
384783
+ fps: Math.round(r),
384784
+ msPerUpdate: t,
384785
+ newBelow: this.newBelow,
384786
+ pending: this.pending.length,
384787
+ frozen: this.frozen,
384788
+ intakePaused: this.intakePaused,
384789
+ following: this.following
384790
+ };
384791
+ }
384792
+ }
384793
+ class ga {
384794
+ render(e, r, t, m, s, i, y) {
384795
+ const d = String(i ?? ""), u = y.createElement("span");
384796
+ y.addClass(u, "ge-log-level"), y.addClass(u, "ge-log-level-" + d.toLowerCase()), y.appendChild(u, y.createText(d)), y.appendChild(e, u);
384797
+ }
384798
+ }
384799
+ function Ea(a = []) {
384800
+ const e = new h("range", "multi"), r = new U("cell"), t = {
384801
+ ...new T(),
384802
+ hoverColumnVisible: !1,
384803
+ verticalBorderVisible: !1,
384804
+ getSelectionModel: () => e,
384805
+ getFocusModel: () => r,
384806
+ overlayOptions: { noRowsText: "Waiting for log lines…" },
384807
+ ariaLabel: "Log"
384808
+ }, m = N.createTableModel({
384809
+ rows: a,
384810
+ defaultRowHeights: new we(30, 24, 0),
384811
+ columnDefs: [
384812
+ n.create({
384813
+ property: "id",
384814
+ headerLabel: "#",
384815
+ width: F,
384816
+ headerClasses: ["ge-table-text-align-right"],
384817
+ bodyClasses: ["ge-table-text-align-right", "ge-log-id"]
384818
+ }),
384819
+ n.create({
384820
+ property: "time",
384821
+ headerLabel: "Time",
384822
+ width: b,
384823
+ headerClasses: ["ge-table-text-align-start"],
384824
+ bodyClasses: ["ge-table-text-align-start", "ge-log-time"]
384825
+ }),
384826
+ n.create({ property: "level", headerLabel: "Level", width: F, bodyRenderer: new ga() }),
384827
+ n.create({
384828
+ property: "source",
384829
+ headerLabel: "Source",
384830
+ width: c,
384831
+ headerClasses: ["ge-table-text-align-start"],
384832
+ bodyClasses: ["ge-table-text-align-start"]
384833
+ }),
384834
+ n.create({
384835
+ property: "text",
384836
+ headerLabel: "Message",
384837
+ width: new g(1, "weight"),
384838
+ headerClasses: ["ge-table-text-align-start"],
384839
+ bodyClasses: ["ge-table-text-align-start"]
384840
+ })
384841
+ ],
384842
+ tableOptions: t
384843
+ });
384844
+ return new o(m, t);
384658
384845
  }
384659
384846
  export {
384660
- Ma as BOOK_SORTS,
384661
- ya as BookCoverRenderer,
384662
- ha as COL_IDX_UPDATED_AT,
384663
- ar as ChangePercentageRenderer,
384664
- sr as CirculatingSupplyRenderer,
384665
- ir as CoinIconRenderer,
384666
- M as INVOICE_FORMULAS,
384847
+ Oa as BOOK_SORTS,
384848
+ pa as BookCoverRenderer,
384849
+ Ga as COL_IDX_UPDATED_AT,
384850
+ tr as ChangePercentageRenderer,
384851
+ ir as CirculatingSupplyRenderer,
384852
+ dr as CoinIconRenderer,
384853
+ B as INVOICE_FORMULAS,
384667
384854
  qr as LargeBodyModel,
384668
- nr as NameAndSymbolRenderer,
384669
- tr as UsdRenderer,
384670
- mr as Volumn24hRenderer,
384671
- oa as applyBodyRenderer,
384672
- Za as createAggregationModelAndOptions,
384673
- Cr as createColumnDefs,
384674
- Ba as createCoverGridModelAndOptions,
384675
- ua as createCryptoModelAndOptions,
384676
- wa as createFormulaModelAndOptions,
384677
- Na as createHeadergroupModel,
384678
- ga as createHeatMapModel,
384679
- ba as createHeatMapSeattleModel,
384680
- Xr as createInvoiceColumnDefs,
384681
- La as createLargeModelAndOptions,
384682
- Pa as createManyTypesModelAndOptions,
384683
- Da as createMasterDetailModelAndOptions,
384684
- na as createOrderItemsModel,
384685
- Ca as createOrderModelAndOptions,
384686
- za as createPivotModelAndOptions,
384687
- xa as createPriceListModelAndOptions,
384688
- va as createRowDragModelAndOptions,
384689
- Ga as createRowGroupModelAndOptions,
384690
- Ua as createRtlCitiesModelAndOptions,
384691
- Ae as createSalesOrderColumnDefs,
384692
- Ta as createSimplePersonModel,
384693
- ia as createSpreadsheetQuoteData,
384694
- qa as createSpreadsheetQuoteModelAndOptions,
384695
- Lr as createTableOptions,
384696
- Sr as createTableRows,
384697
- fa as createTeamHeadergroupModel,
384698
- Sa as createTimeTableModel,
384699
- ra as createTreePeopleColumnDefs,
384700
- ka as createTreePeopleModelAndOptions,
384701
- ea as createTreePeopleTableOptions,
384702
- dr as cryptoData,
384703
- Pr as data,
384704
- Aa as fitCoversToWidth,
384705
- da as generateBooks,
384706
- Yr as generateInvoiceLines,
384707
- ta as generateMasterOrders,
384708
- Er as generatePivotOrders,
384709
- aa as generatePriceItems,
384710
- sa as generateRtlCitySales,
384711
- E as generateSalesOrders,
384712
- ca as generateSimpleModel,
384713
- Jr as generateTasks,
384714
- la as generateTreeCheckboxModel,
384715
- Kr as pivotQuarter,
384716
- _r as pivotYear,
384717
- Gr as tableOptions,
384718
- hr as teamHeaderGroups
384855
+ ca as LogGenerator,
384856
+ ga as LogLevelCellRenderer,
384857
+ $a as LogTailController,
384858
+ mr as NameAndSymbolRenderer,
384859
+ nr as UsdRenderer,
384860
+ sr as Volumn24hRenderer,
384861
+ Pa as applyBodyRenderer,
384862
+ xa as createAggregationModelAndOptions,
384863
+ Lr as createColumnDefs,
384864
+ Ha as createCoverGridModelAndOptions,
384865
+ Na as createCryptoModelAndOptions,
384866
+ Ua as createFormulaModelAndOptions,
384867
+ Sa as createHeadergroupModel,
384868
+ oa as createHeatMapModel,
384869
+ ha as createHeatMapSeattleModel,
384870
+ Jr as createInvoiceColumnDefs,
384871
+ wa as createLargeModelAndOptions,
384872
+ Ea as createLogTailModelAndOptions,
384873
+ va as createManyTypesModelAndOptions,
384874
+ Aa as createMasterDetailModelAndOptions,
384875
+ ma as createOrderItemsModel,
384876
+ Za as createOrderModelAndOptions,
384877
+ Da as createPivotModelAndOptions,
384878
+ Ba as createPriceListModelAndOptions,
384879
+ Ma as createRowDragModelAndOptions,
384880
+ ka as createRowGroupModelAndOptions,
384881
+ Ra as createRtlCitiesModelAndOptions,
384882
+ Ie as createSalesOrderColumnDefs,
384883
+ La as createSimplePersonModel,
384884
+ da as createSpreadsheetQuoteData,
384885
+ Ia as createSpreadsheetQuoteModelAndOptions,
384886
+ Pr as createTableOptions,
384887
+ Cr as createTableRows,
384888
+ Ca as createTeamHeadergroupModel,
384889
+ za as createTimeTableModel,
384890
+ aa as createTreePeopleColumnDefs,
384891
+ qa as createTreePeopleModelAndOptions,
384892
+ ra as createTreePeopleTableOptions,
384893
+ yr as cryptoData,
384894
+ Gr as data,
384895
+ Fa as fitCoversToWidth,
384896
+ ya as generateBooks,
384897
+ Xr as generateInvoiceLines,
384898
+ na as generateMasterOrders,
384899
+ _r as generatePivotOrders,
384900
+ ta as generatePriceItems,
384901
+ ia as generateRtlCitySales,
384902
+ _ as generateSalesOrders,
384903
+ fa as generateSimpleModel,
384904
+ Qr as generateTasks,
384905
+ Ta as generateTreeCheckboxModel,
384906
+ Wr as pivotQuarter,
384907
+ Kr as pivotYear,
384908
+ zr as tableOptions,
384909
+ Sr as teamHeaderGroups
384719
384910
  };