@guiexpert/demo-table-models 1.0.8 → 1.0.10

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,4 +1,4 @@
1
- function O(s) {
1
+ function $(s) {
2
2
  return s && s.type === "TreeRow";
3
3
  }
4
4
  function be(s) {
@@ -36,6 +36,15 @@ class fe {
36
36
  }
37
37
  }
38
38
  class T {
39
+ /**
40
+ * Represents a constructor for a class.
41
+ * @constructor
42
+ * @param {number} r1 - The value for r1.
43
+ * @param {number} c1 - The value for c1.
44
+ * @param {number} r2 - The value for r2.
45
+ * @param {number} c2 - The value for c2.
46
+ * @param {boolean} [gammaRange=false] - The value for gammaRange. Defaults to false. gammaRange will be used for AreaModelCellGroups, but it's not implemented yet!
47
+ */
39
48
  constructor(e, r, a, t, n = !1) {
40
49
  this.r1 = e, this.c1 = r, this.r2 = a, this.c2 = t, this.gammaRange = n;
41
50
  }
@@ -67,14 +76,14 @@ class S {
67
76
  }
68
77
  }
69
78
  class Te {
70
- render(e, r, a, t, n, m, d) {
79
+ render(e, r, a, t, n, m, i) {
71
80
  if (n.isEditable(r, a)) {
72
- d.addClass(e, "ge-table-row-input-div");
73
- const i = n.getValueAt(r, a);
81
+ i.addClass(e, "ge-table-row-input-div");
82
+ const d = n.getValueAt(r, a);
74
83
  e.innerHTML = `
75
84
  <input
76
85
  type="text"
77
- value="${i}"
86
+ value="${d}"
78
87
  autofocus
79
88
  onfocus="this.setSelectionRange(0, this.value.length)"
80
89
  data-listen="change"
@@ -87,7 +96,7 @@ class Te {
87
96
  }
88
97
  }
89
98
  }
90
- class W {
99
+ class q {
91
100
  constructor(e = "none", r = "single") {
92
101
  this.selectionType = e, this.selectionMode = r, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
93
102
  }
@@ -154,8 +163,8 @@ class oe {
154
163
  return [this.rowIndex, this.columnIndex];
155
164
  }
156
165
  }
157
- const he = new W(), Se = new oe("cell");
158
- class w {
166
+ const he = new q(), Se = new oe("cell");
167
+ class Z {
159
168
  constructor() {
160
169
  this.overflowX = "auto", this.overflowY = "auto", this.horizontalBorderVisible = !0, this.verticalBorderVisible = !0, this.footerSeparatorBorderVisible = !0, this.headerSeparatorBorderVisible = !0, this.fixedEastSeparatorBorderVisible = !0, this.fixedWestSeparatorBorderVisible = !0, this.tableTopBorderVisible = !0, this.tableBottomBorderVisible = !0, this.hoverRowVisible = !0, this.hoverColumnVisible = !0, this.columnsResizable = !0, this.columnsDraggable = !0, this.columnResizeHandleWidthInPx = 4, this.defaultRowHeights = {
161
170
  header: 34,
@@ -164,9 +173,9 @@ class w {
164
173
  }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ne(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new fe(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, r) => new Te(), this.getSelectionModel = () => he, this.getFocusModel = () => Se;
165
174
  }
166
175
  }
167
- class J {
168
- constructor(e, r = !0, a, t, n = 0, m = !1, d = !1) {
169
- this.data = e, this.expanded = r, this.children = a, this.parent = t, this.deep = n, this.checked = m, this.keep = d, this.type = "TreeRow";
176
+ class Q {
177
+ constructor(e, r = !0, a, t, n = 0, m = !1, i = !1) {
178
+ this.data = e, this.expanded = r, this.children = a, this.parent = t, this.deep = n, this.checked = m, this.keep = i, this.type = "TreeRow";
170
179
  }
171
180
  }
172
181
  class A {
@@ -176,16 +185,16 @@ class A {
176
185
  t.push(A.buildTreeRow(n, r, void 0, 0, a));
177
186
  return t;
178
187
  }
179
- static buildTreeRow(e, r = "children", a = new J(e, !0, [], void 0, 0), t = 0, n = 12) {
180
- var d;
188
+ static buildTreeRow(e, r = "children", a = new Q(e, !0, [], void 0, 0), t = 0, n = 12) {
189
+ var i;
181
190
  if (t > n)
182
191
  return console.warn("Max deep limit reached: ", t), a;
183
192
  const m = e[r];
184
193
  if (m)
185
- for (const i of m) {
186
- const p = new J(i, !0, [], a, t + 1);
187
- if ((d = a.children) == null || d.push(p), A.buildTreeRow(
188
- i,
194
+ for (const d of m) {
195
+ const p = new Q(d, !0, [], a, t + 1);
196
+ if ((i = a.children) == null || i.push(p), A.buildTreeRow(
197
+ d,
189
198
  r,
190
199
  p,
191
200
  t + 1
@@ -205,10 +214,10 @@ class u {
205
214
  this.value = e, this.unit = r;
206
215
  }
207
216
  }
208
- const f = () => !0, E = () => !1;
217
+ const f = () => !0, U = () => !1;
209
218
  class y {
210
- constructor(e, r, a = new u(100, "px"), t = new S(), n = new S(), m = new u(100, "px"), d = new u(100, "px"), i, p, l, c, b, P, z, x, g = () => this.visible) {
211
- this.property = e, this.headerLabel = r, this.width = a, this.classes = t, this.rendererMap = n, this.minWidth = m, this.maxWidth = d, this.sortable = i, this.sortComparator = p, this.sortState = l, this.sortStatesOrder = c, this.sortIconVisible = b, this.editable = P, this.getEditRenderer = z, this.editInputPipe = x, this.isVisible = g, this.visible = !0;
219
+ constructor(e, r, a = new u(100, "px"), t = new S(), n = new S(), m = new u(100, "px"), i = new u(100, "px"), d, p, l, c, b, P, w, x, g = () => this.visible) {
220
+ this.property = e, this.headerLabel = r, this.width = a, this.classes = t, this.rendererMap = n, this.minWidth = m, this.maxWidth = i, this.sortable = d, this.sortComparator = p, this.sortState = l, this.sortStatesOrder = c, this.sortIconVisible = b, this.editable = P, this.getEditRenderer = w, this.editInputPipe = x, this.isVisible = g, this.visible = !0;
212
221
  }
213
222
  static bodyRenderer(e) {
214
223
  return new S(
@@ -226,7 +235,7 @@ class y {
226
235
  e.headerClasses,
227
236
  e.bodyClasses,
228
237
  e.footerClasses
229
- ), t = e.sortIconVisible ?? e.sortable ?? E, n = e.editable ?? e.editable ?? E, m = e.isVisible ?? e.isVisible ?? f;
238
+ ), t = e.sortIconVisible ?? e.sortable ?? U, n = e.editable ?? e.editable ?? U, m = e.isVisible ?? e.isVisible ?? f;
230
239
  return new y(
231
240
  e.property ?? "",
232
241
  e.headerLabel ?? "",
@@ -247,8 +256,8 @@ class y {
247
256
  );
248
257
  }
249
258
  }
250
- const Ce = new u(300, "px"), Pe = new u(250, "px"), Le = new u(220, "px"), V = new u(200, "px"), Ge = new u(160, "px"), de = new u(150, "px"), ye = new u(140, "px"), Z = new u(120, "px"), G = new u(100, "px"), ze = new u(90, "px"), Ze = new u(80, "px"), we = new u(70, "px"), D = new u(60, "px"), xe = new u(50, "px");
251
- class j {
259
+ const Ce = new u(300, "px"), Pe = new u(250, "px"), Le = new u(220, "px"), D = new u(200, "px"), Ge = new u(160, "px"), ye = new u(150, "px"), ue = new u(140, "px"), z = new u(120, "px"), G = new u(100, "px"), ze = new u(90, "px"), Ze = new u(80, "px"), we = new u(70, "px"), I = new u(60, "px"), xe = new u(50, "px");
260
+ class X {
252
261
  constructor(e, r = [], a = -1) {
253
262
  this.areaIdent = e, this.columnDefs = r, this.defaultRowHeight = a, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = r.map((t) => t.rendererMap[e]);
254
263
  }
@@ -308,8 +317,8 @@ class j {
308
317
  return this.columnDefs && r < this.columnDefs.length && this.columnDefs[r].editable ? this.columnDefs[r].editable() : !1;
309
318
  }
310
319
  setValue(e, r, a) {
311
- var d;
312
- const t = (d = this.columnDefs[r]) == null ? void 0 : d.editInputPipe;
320
+ var i;
321
+ const t = (i = this.columnDefs[r]) == null ? void 0 : i.editInputPipe;
313
322
  t && (a = t(a, e, r));
314
323
  const n = this.getRowByIndex(e), m = this.columnDefs[r].property;
315
324
  return m.includes(".") ? this.setPropertyValue(n, m.split("."), a) : (n[m] = a, !0);
@@ -339,7 +348,7 @@ class j {
339
348
  this.yPositions[r + 1] = this.getRowHeight(r) + this.yPositions[r];
340
349
  }
341
350
  }
342
- class o extends j {
351
+ class o extends X {
343
352
  constructor(e, r, a, t = []) {
344
353
  super(e, t, a), this.areaIdent = e, this.arr = r, this.defaultRowHeight = a, this.columnDefs = t, this.filteredArr = [...r];
345
354
  }
@@ -447,7 +456,7 @@ class ke {
447
456
  return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
448
457
  }
449
458
  }
450
- class ue {
459
+ class pe {
451
460
  genericSortComparator(e, r, a) {
452
461
  if (typeof e == "number" && typeof r == "number")
453
462
  return a * (e - r);
@@ -465,9 +474,9 @@ class ue {
465
474
  return a * ("" + e).localeCompare("" + r);
466
475
  }
467
476
  }
468
- class Q extends j {
477
+ class ee extends X {
469
478
  constructor(e, r, a, t = []) {
470
- super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.type = "AreaModelTree", this.sorterService = new ue(), this.service = new ke(), this.properties = t.map((n) => n.property), this.flattenRows = this.service.flattenTree(r), this.filteredFlattenRows = [...this.flattenRows];
479
+ super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.type = "AreaModelTree", this.sorterService = new pe(), this.service = new ke(), this.properties = t.map((n) => n.property), this.flattenRows = this.service.flattenTree(r), this.filteredFlattenRows = [...this.flattenRows];
471
480
  }
472
481
  changeColumnOrder(e, r) {
473
482
  this.arrayMove(this.properties, e, r), super.changeColumnOrder(e, r);
@@ -524,8 +533,8 @@ class Q extends j {
524
533
  t && (a = t(a, e, r));
525
534
  const n = this.getRowByIndex(e);
526
535
  if (n) {
527
- const d = n.data, i = this.columnDefs[r].property;
528
- return i.includes(".") ? this.setPropertyValue(d, i.split("."), a) : (d[i] = a, !0);
536
+ const i = n.data, d = this.columnDefs[r].property;
537
+ return d.includes(".") ? this.setPropertyValue(i, d.split("."), a) : (i[d] = a, !0);
529
538
  }
530
539
  return !1;
531
540
  }
@@ -569,7 +578,7 @@ class Q extends j {
569
578
  t.children && this.treeSort(t.children, r, a);
570
579
  }
571
580
  }
572
- class ee {
581
+ class re {
573
582
  constructor(e = []) {
574
583
  this.allRootNodes = e;
575
584
  }
@@ -629,7 +638,7 @@ class ee {
629
638
  a.checked && r.push(a), a.children && this.addSelectedRecursive(a.children, r);
630
639
  }
631
640
  }
632
- class re {
641
+ class ae {
633
642
  constructor(e = 0, r = 0, a = 0, t = 0) {
634
643
  this.top = e, this.right = r, this.bottom = a, this.left = t;
635
644
  }
@@ -665,61 +674,147 @@ class ve {
665
674
  }
666
675
  }
667
676
  }
668
- class _ {
669
- constructor(e, r, a, t = 0, n = 0, m = !1, d = new v(), i = [], p = [], l = -1, c = 0, b = 400, P = () => {
677
+ class V {
678
+ constructor(e, r, a, t = 0, n = 0, m = !1, i = new v(), d = [], p = [], l = -1, c = 0, b = 400, P = () => {
670
679
  }) {
671
- var z, x, g, B;
672
- this.headerAreaModel = e, this.bodyAreaModel = r, this.footerAreaModel = a, this.fixedLeftColumnCount = t, this.fixedRightColumnCount = n, this.rowCheckboxVisible = m, this.defaultRowHeights = d, this.columnDefs = i, this.columnSizes = p, this.overridingColumnWidth = l, this.columnCount = c, this.parentSize = b, this.getSelectionModel = P, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new re(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", r.areaIdent = "body", a.areaIdent = "footer", this.columnCount || ((z = this.columnDefs) != null && z.length ? this.columnCount = this.columnDefs.length : (x = this.columnSizes) != null && x.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (B = this.columnDefs) != null && B.length && be(this.columnDefs[0]) && !r.rowSelectionModel && (r.rowSelectionModel = new ve());
680
+ var w, x, g, O;
681
+ this.headerAreaModel = e, this.bodyAreaModel = r, this.footerAreaModel = a, this.fixedLeftColumnCount = t, this.fixedRightColumnCount = n, this.rowCheckboxVisible = m, this.defaultRowHeights = i, this.columnDefs = d, this.columnSizes = p, this.overridingColumnWidth = l, this.columnCount = c, this.parentSize = b, this.getSelectionModel = P, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ae(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", r.areaIdent = "body", a.areaIdent = "footer", this.columnCount || ((w = this.columnDefs) != null && w.length ? this.columnCount = this.columnDefs.length : (x = this.columnSizes) != null && x.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (O = this.columnDefs) != null && O.length && be(this.columnDefs[0]) && !r.rowSelectionModel && (r.rowSelectionModel = new ve());
673
682
  }
674
683
  init() {
675
684
  this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
676
685
  }
686
+ /**
687
+ * Retrieves the count of columns in the current instance.
688
+ *
689
+ * @return {number} The count of columns.
690
+ */
677
691
  getColumnCount() {
678
692
  return this.columnCount;
679
693
  }
694
+ /**
695
+ * Sets the width in pixel of a column (by columnIndex) in a table.
696
+ *
697
+ * @param {number} columnIndex - The index of the column.
698
+ * @param {number} width - The desired width of the column.
699
+ * @return {void}
700
+ */
680
701
  setColumnWidth(e, r) {
681
702
  var a;
682
703
  r = Math.max(0, r), this.overridingColumnWidth !== -1 && (this.overridingColumnWidth = r), e > -1 && e < ((a = this.columnSizes) == null ? void 0 : a.length) && (this.columnSizes[e] = r), this.recalcContentWidthInPx();
683
704
  }
705
+ /**
706
+ * Retrieves the width of a column specified by its index.
707
+ *
708
+ * @param {number} columnIndex - The index of the desired column.
709
+ * @return {number} - The width of the specified column.
710
+ */
684
711
  getColumnWidth(e) {
685
712
  var a;
686
713
  const r = this.getColumnDef(e);
687
714
  return r && r.isVisible && !r.isVisible() ? 0 : this.overridingColumnWidth !== -1 ? this.overridingColumnWidth : e > -1 && e < ((a = this.columnSizes) == null ? void 0 : a.length) ? this.columnSizes[e] : 0;
688
715
  }
716
+ /**
717
+ * Retrieves the x position for a given column index.
718
+ *
719
+ * @param {number} columnIndex - The index of the column.
720
+ * @return {number} - The x position of the column.
721
+ */
689
722
  getXPosByColumnIndex(e) {
690
723
  return e === 0 ? 0 : this.overridingColumnWidth > -1 ? this.overridingColumnWidth * e : this.xPositions[e];
691
724
  }
725
+ /**
726
+ * Recalculates the size (width, height, padding) of the elements based on the client width.
727
+ *
728
+ * @param {number} clientWidth - The width of the client area.
729
+ *
730
+ * @return {void} - This method does not return a value.
731
+ */
692
732
  recalcSize(e) {
693
733
  this.recalcColumnWidthes(e), this.recalcHeightAndPadding();
694
734
  }
735
+ /**
736
+ * Recalculates the height and padding for the body area.
737
+ *
738
+ * This method retrieves the area model for the "body" area,
739
+ * and updates the rowCount property with the row count of the model.
740
+ *
741
+ * The contentHeightInPx property is then updated with the height of the "body" area.
742
+ *
743
+ * The method calls the recalcContentWidthInPx() method to recalculate the content width.
744
+ *
745
+ * Finally, the method calls the recalcPadding() method to recalculate the padding.
746
+ *
747
+ * @return {void}
748
+ */
695
749
  recalcHeightAndPadding() {
696
750
  const e = this.getAreaModel("body");
697
751
  this.rowCount = e.getRowCount(), this.contentHeightInPx = this.getAreaHeight("body"), this.recalcContentWidthInPx(), this.recalcPadding();
698
752
  }
753
+ /**
754
+ * Recalculates the padding of an element based on the width and height of its surrounding areas.
755
+ *
756
+ * @method recalcPadding
757
+ *
758
+ * @returns {void}
759
+ */
699
760
  recalcPadding() {
700
761
  const e = this.getSideAreaWidth("west"), r = this.getSideAreaWidth("east"), a = this.getAreaHeight("header"), t = this.getAreaHeight("footer");
701
- this.padding = new re(
762
+ this.padding = new ae(
702
763
  a,
703
764
  r,
704
765
  t,
705
766
  e
706
767
  );
707
768
  }
769
+ /**
770
+ * Retrieves the padding value.
771
+ *
772
+ * @returns {Padding} The padding value.
773
+ */
708
774
  getPadding() {
709
775
  return this.padding;
710
776
  }
777
+ /**
778
+ * Returns the height of the content in pixels.
779
+ *
780
+ * @returns {number} The height of the content in pixels.
781
+ */
711
782
  getContentHeightInPixel() {
712
783
  return this.contentHeightInPx;
713
784
  }
785
+ /**
786
+ * Returns the width of the content in pixels.
787
+ *
788
+ * @returns {number} The width of the content in pixels.
789
+ */
714
790
  getContentWidthInPixel() {
715
791
  return this.contentWidthInPx;
716
792
  }
793
+ /**
794
+ * Returns the height of the specified row in the given row area identifier.
795
+ *
796
+ * @param {AreaIdent} rowAreaIdent - The row area identifier.
797
+ * @param {number} rowIndex - The index of the row.
798
+ * @return {number} - The height of the specified row.
799
+ */
717
800
  getRowHeight(e, r) {
718
801
  return this.getAreaModel(e).getRowHeight(r);
719
802
  }
803
+ /**
804
+ * Retrieves the model for the given row area identifier.
805
+ *
806
+ * @param {AreaIdent} rowAreaIdent - The identifier of the row area.
807
+ * @return {AreaModelIf} - The model of the specified row area.
808
+ */
720
809
  getModel(e) {
721
810
  return this.getAreaModel(e);
722
811
  }
812
+ /**
813
+ * Calculates the height of the area identified by the given area identifier.
814
+ *
815
+ * @param {AreaIdent} areaIdent - The identifier of the area.
816
+ * @return {number} - The height of the area.
817
+ */
723
818
  getAreaHeight(e) {
724
819
  const r = this.getModel(e), a = r.getRowCount();
725
820
  if (this.defaultRowHeights[e])
@@ -729,6 +824,12 @@ class _ {
729
824
  t = t + r.getRowHeight(n);
730
825
  return t;
731
826
  }
827
+ /**
828
+ * Returns the total width of the side area identified by sideIdent.
829
+ *
830
+ * @param {SideIdent} sideIdent - The identifier of the side area ("west" | "center" | "east").
831
+ * @return {number} - The total width in pixels of the side area.
832
+ */
732
833
  getSideAreaWidth(e) {
733
834
  const [r, a] = this.getSideStartAndEndColumnIndex(e);
734
835
  let t = 0;
@@ -736,21 +837,50 @@ class _ {
736
837
  t = t + this.getColumnWidth(n);
737
838
  return t;
738
839
  }
840
+ /**
841
+ * Retrieves the start and end column indices based on the given side identifier.
842
+ *
843
+ * @param {SideIdent} sideIdent - The side identifier, which can be "west", "east", or "center".
844
+ * @return {[number, number]} - An array containing the start and end column indices.
845
+ */
739
846
  getSideStartAndEndColumnIndex(e) {
740
847
  const r = this.getFixedLeftColumnCount(), a = this.getFixedRightColumnCount();
741
848
  let t = 0, n = this.columnCount - 1;
742
849
  return e === "west" ? n = r - 1 : e === "east" ? t = this.columnCount - a : (t = r, n = this.columnCount - a - 1), [t, n];
743
850
  }
851
+ /**
852
+ * Returns the column definition at the specified index.
853
+ *
854
+ * @param {number} index - The index of the column definition to retrieve.
855
+ * @returns {ColumnDefIf | undefined} - The column definition at the specified index, or undefined if no ColumnDef is specified for the given column
856
+ */
744
857
  getColumnDef(e) {
745
858
  if (e < this.columnDefs.length)
746
859
  return this.columnDefs[e];
747
860
  }
861
+ /**
862
+ * Retrieves the count of fixed left columns.
863
+ *
864
+ * @returns {number} The count of fixed left columns.
865
+ */
748
866
  getFixedLeftColumnCount() {
749
867
  return this.fixedLeftColumnCount;
750
868
  }
869
+ /**
870
+ * Returns the number of fixed right columns.
871
+ *
872
+ * @returns {number} The number of fixed right columns.
873
+ */
751
874
  getFixedRightColumnCount() {
752
875
  return this.fixedRightColumnCount;
753
876
  }
877
+ /**
878
+ * Retrieves the area model (header, body or footer) based on the area identification.
879
+ *
880
+ * @param {AreaIdent} area - The identifier of the area.
881
+ * @return {AreaModelIf} The area model corresponding to the given area identification.
882
+ * @throws {Error} If the area identification is invalid.
883
+ */
754
884
  getAreaModel(e) {
755
885
  if (e === "header")
756
886
  return this.headerAreaModel;
@@ -760,38 +890,103 @@ class _ {
760
890
  return this.footerAreaModel;
761
891
  throw new Error("Wrong ident.");
762
892
  }
893
+ /**
894
+ * Returns the body area model.
895
+ *
896
+ * @returns {AreaModelIf} The body area model.
897
+ */
763
898
  getBodyModel() {
764
899
  return this.bodyAreaModel;
765
900
  }
901
+ /**
902
+ * Checks if the footer is visible.
903
+ *
904
+ * @returns {boolean} True if the footer is visible, false otherwise.
905
+ */
766
906
  isFooterVisibe() {
767
907
  var e;
768
908
  return (((e = this.footerAreaModel) == null ? void 0 : e.getRowCount()) ?? 0) > 0;
769
909
  }
910
+ /**
911
+ * Checks if the header area is visible.
912
+ * @return {boolean} Returns true if the header area is visible, otherwise false.
913
+ */
770
914
  isHeaderVisibe() {
771
915
  var e;
772
916
  return (((e = this.headerAreaModel) == null ? void 0 : e.getRowCount()) ?? 0) > 0;
773
917
  }
918
+ /**
919
+ * Checks whether the row checkbox is visible.
920
+ *
921
+ * @returns {boolean} True if the row checkbox is visible, otherwise false.
922
+ */
774
923
  isRowCheckboxVisible() {
775
924
  return this.rowCheckboxVisible;
776
925
  }
926
+ /**
927
+ * This method is called when an external filter is changed.
928
+ *
929
+ * @param {FilterFunction<T>} predictFn - The function used to predict whether an element should be filtered or not.
930
+ * @return {void}
931
+ */
777
932
  externalFilterChanged(e) {
778
933
  this.getAreaModel("body").externalFilterChanged(e);
779
934
  }
935
+ /**
936
+ * Sorts the items using the given sortItems array.
937
+ *
938
+ * @param {SortItem[]} sortItems - An array of sort items to sort the items.
939
+ * @return {boolean} - Returns true if the sorting is successful, otherwise false.
940
+ */
780
941
  doSort(e) {
781
942
  return this.getAreaModel("body").doSort(e);
782
943
  }
944
+ /**
945
+ * Returns an array of ColumnDefIf objects or undefined.
946
+ *
947
+ * @return {ColumnDefIf[] | undefined} An array of ColumnDefIf objects or undefined.
948
+ */
783
949
  getColumnDefs() {
784
950
  return this.columnDefs;
785
951
  }
952
+ /**
953
+ * Retrieves the property key of the table row business object associated with the specified column index.
954
+ * It's only available when columnDefs are specified.
955
+ *
956
+ * @param {number} columnIndex - The index of the column to retrieve the property from.
957
+ * @return {string} The property associated with the specified column index.
958
+ */
786
959
  getColumnProperty(e) {
787
- return this.columnDefs[e].property;
960
+ return this.columnDefs ? this.columnDefs[e].property : "";
788
961
  }
962
+ /**
963
+ * Retrieves the row object from the body model at the specified index.
964
+ *
965
+ * @param {number} rowIndex - The index of the row to retrieve.
966
+ *
967
+ * @return {any} The row object at the specified index.
968
+ */
789
969
  getBodyRowByIndex(e) {
790
970
  return this.getBodyModel().getRowByIndex(e);
791
971
  }
972
+ /**
973
+ * Checks if a column at the given index is sortable.
974
+ *
975
+ * @param {number} columnIndex - The index of the column to check.
976
+ *
977
+ * @returns {boolean} - `true` if the column is sortable, `false` otherwise.
978
+ */
792
979
  isSortable(e) {
793
980
  return this.columnDefs && e < this.columnDefs.length && this.columnDefs[e].sortable ? this.columnDefs[e].sortable() : !1;
794
981
  }
982
+ /**
983
+ * Moves a column in the column order.
984
+ *
985
+ * @param {number} sourceColumnIndex - The index of the column to be moved.
986
+ * @param {number} targetColumnIndex - The index where the column should be moved to.
987
+ *
988
+ * @returns {void}
989
+ */
795
990
  changeColumnOrder(e, r) {
796
991
  var a, t, n;
797
992
  this.arrayMove(this.columnDefs, e, r), this.arrayMove(this.columnSizes, e, r), (a = this.headerAreaModel) == null || a.changeColumnOrder(e, r), (t = this.bodyAreaModel) == null || t.changeColumnOrder(e, r), (n = this.footerAreaModel) == null || n.changeColumnOrder(e, r), this.calcXPositions();
@@ -802,12 +997,12 @@ class _ {
802
997
  if (n.width.unit === "%" && e) {
803
998
  let m = Math.floor(n.width.value * e / 100);
804
999
  if (n.minWidth) {
805
- let d = n.minWidth.unit === "px" ? n.minWidth.value : Math.floor(n.minWidth.value * e / 100);
806
- m = Math.max(d, m);
1000
+ let i = n.minWidth.unit === "px" ? n.minWidth.value : Math.floor(n.minWidth.value * e / 100);
1001
+ m = Math.max(i, m);
807
1002
  }
808
1003
  if (n.maxWidth) {
809
- let d = n.maxWidth.unit === "px" ? n.maxWidth.value : Math.floor(n.maxWidth.value * e / 100);
810
- m = Math.min(d, m);
1004
+ let i = n.maxWidth.unit === "px" ? n.maxWidth.value : Math.floor(n.maxWidth.value * e / 100);
1005
+ m = Math.min(i, m);
811
1006
  }
812
1007
  return m;
813
1008
  }
@@ -828,9 +1023,9 @@ class _ {
828
1023
  this.xPositions[r + 1] = this.getColumnWidth(r) + this.xPositions[r];
829
1024
  }
830
1025
  }
831
- class Re extends j {
1026
+ class Re extends X {
832
1027
  constructor(e, r, a, t = []) {
833
- super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.sorterService = new ue(), this.filteredRows = [...r], this.properties = t.map((n) => n.property);
1028
+ super(e, t, a), this.areaIdent = e, this.rows = r, this.defaultRowHeight = a, this.columnDefs = t, this.sorterService = new pe(), this.filteredRows = [...r], this.properties = t.map((n) => n.property);
834
1029
  }
835
1030
  getRowCount() {
836
1031
  var e;
@@ -839,7 +1034,7 @@ class Re extends j {
839
1034
  getValueAt(e, r) {
840
1035
  const a = this.properties[r];
841
1036
  let t = this.filteredRows[e];
842
- return O(t) && (t = t.data), t ? this.getValueByT(t, a) : "";
1037
+ return $(t) && (t = t.data), t ? this.getValueByT(t, a) : "";
843
1038
  }
844
1039
  getFilteredRows() {
845
1040
  return this.filteredRows;
@@ -881,7 +1076,7 @@ class Re extends j {
881
1076
  return t && r.length ? this.getPropertyValue(t, r) : t;
882
1077
  }
883
1078
  }
884
- class I extends Re {
1079
+ class B extends Re {
885
1080
  constructor(e, r, a, t) {
886
1081
  super(
887
1082
  e,
@@ -893,7 +1088,7 @@ class I extends Re {
893
1088
  }
894
1089
  class N {
895
1090
  static createTableModel(e) {
896
- var r, a, t, n, m, d, i, p, l, c, b, P, z, x;
1091
+ var r, a, t, n, m, i, d, p, l, c, b, P, w, x;
897
1092
  if (e.defaultRowHeights === void 0)
898
1093
  if ((r = e.tableOptions) != null && r.defaultRowHeights)
899
1094
  e.defaultRowHeights = e.tableOptions.defaultRowHeights;
@@ -911,7 +1106,7 @@ class N {
911
1106
  g > -1 && (e.defaultRowHeights.footer = g);
912
1107
  }
913
1108
  }
914
- if (e.columnDefs === void 0 && ((a = e.properties) != null && a.length ? e.columnDefs = e.properties.map((g) => new y(g, g.toUpperCase(), V)) : (t = e.rows) != null && t.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new y(g, g.toUpperCase(), V)) : e.columnDefs = []), e.columnCount === void 0 && ((n = e.columnDefs) != null && n.length ? e.columnCount = e.columnDefs.length : (m = e.headerData) != null && m.length ? e.columnCount = e.headerData[0].length : (d = e.columnSizes) != null && d.length ? e.columnCount = (i = e.columnSizes) == null ? void 0 : i.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((p = e.headerData) != null && p.length ? e.headerAreaModel = new o(
1109
+ if (e.columnDefs === void 0 && ((a = e.properties) != null && a.length ? e.columnDefs = e.properties.map((g) => new y(g, g.toUpperCase(), D)) : (t = e.rows) != null && t.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new y(g, g.toUpperCase(), D)) : e.columnDefs = []), e.columnCount === void 0 && ((n = e.columnDefs) != null && n.length ? e.columnCount = e.columnDefs.length : (m = e.headerData) != null && m.length ? e.columnCount = e.headerData[0].length : (i = e.columnSizes) != null && i.length ? e.columnCount = (d = e.columnSizes) == null ? void 0 : d.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((p = e.headerData) != null && p.length ? e.headerAreaModel = new o(
915
1110
  "header",
916
1111
  e.headerData,
917
1112
  e.defaultRowHeights.header,
@@ -928,16 +1123,16 @@ class N {
928
1123
  e.columnDefs
929
1124
  ) : e.footerAreaModel = new L("footer")), !e.bodyAreaModel)
930
1125
  if (e.rows)
931
- if ((b = e.rows) != null && b.length && O(e.rows[0])) {
1126
+ if ((b = e.rows) != null && b.length && $(e.rows[0])) {
932
1127
  const g = e.rows;
933
- e.bodyAreaModel = new Q(
1128
+ e.bodyAreaModel = new ee(
934
1129
  "body",
935
1130
  g,
936
1131
  e.defaultRowHeights.body,
937
1132
  e.columnDefs
938
- ), (e.columnDefs[0].property === "CheckboxColumn" || (P = e.tableOptions) != null && P.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new ee(g));
1133
+ ), (e.columnDefs[0].property === "CheckboxColumn" || (P = e.tableOptions) != null && P.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new re(g));
939
1134
  } else
940
- e.bodyAreaModel = new I(
1135
+ e.bodyAreaModel = new B(
941
1136
  "body",
942
1137
  e.rows,
943
1138
  e.columnDefs,
@@ -949,7 +1144,7 @@ class N {
949
1144
  e.bodyData,
950
1145
  e.defaultRowHeights.body
951
1146
  ) : e.bodyAreaModel = new L("body");
952
- return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((z = e.tableOptions) != null && z.getSelectionModel) && (e.getSelectionModel = (x = e.tableOptions) == null ? void 0 : x.getSelectionModel), new _(
1147
+ return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((w = e.tableOptions) != null && w.getSelectionModel) && (e.getSelectionModel = (x = e.tableOptions) == null ? void 0 : x.getSelectionModel), new V(
953
1148
  e.headerAreaModel,
954
1149
  e.bodyAreaModel,
955
1150
  e.footerAreaModel,
@@ -969,21 +1164,21 @@ class N {
969
1164
  return N.buildByTypedRows(
970
1165
  e.rows ?? [],
971
1166
  e.columnDefs,
972
- e.tableOptions ?? new w(),
1167
+ e.tableOptions ?? new Z(),
973
1168
  e.fixedLeftColumnCount ?? 0,
974
1169
  e.fixedRightColumnCount ?? 0
975
1170
  );
976
1171
  }
977
- static buildByTypedRows(e, r, a = new w(), t = 0, n = 0) {
978
- const m = a.defaultRowHeights, d = r[0].property === "CheckboxColumn";
979
- if (e != null && e.length && O(e[0])) {
980
- const i = e, p = new Q(
1172
+ static buildByTypedRows(e, r, a = new Z(), t = 0, n = 0) {
1173
+ const m = a.defaultRowHeights, i = r[0].property === "CheckboxColumn";
1174
+ if (e != null && e.length && $(e[0])) {
1175
+ const d = e, p = new ee(
981
1176
  "body",
982
- i,
1177
+ d,
983
1178
  m.body,
984
1179
  r
985
1180
  );
986
- return (d || a.showCheckboxWihoutExtraColumn) && (p.rowSelectionModel = new ee(i)), N.createByAreaModelsParam({
1181
+ return (i || a.showCheckboxWihoutExtraColumn) && (p.rowSelectionModel = new re(d)), N.createByAreaModelsParam({
987
1182
  headerAreaModel: new o("header", [r.map((l) => l.headerLabel)], m.header),
988
1183
  bodyAreaModel: p,
989
1184
  footerAreaModel: new o("footer", [], m.footer),
@@ -1019,16 +1214,16 @@ class N {
1019
1214
  e.columnSizes ?? []
1020
1215
  );
1021
1216
  }
1022
- static createByAreaModels(e = new L(), r, a = new L(), t = 0, n = 0, m = !1, d = new v(), i, p = [], l = -1, c) {
1023
- return new _(
1217
+ static createByAreaModels(e = new L(), r, a = new L(), t = 0, n = 0, m = !1, i = new v(), d, p = [], l = -1, c) {
1218
+ return new V(
1024
1219
  e,
1025
1220
  r,
1026
1221
  a,
1027
1222
  t,
1028
1223
  n,
1029
1224
  m,
1030
- d,
1031
1225
  i,
1226
+ d,
1032
1227
  p,
1033
1228
  l,
1034
1229
  c
@@ -1049,29 +1244,29 @@ class N {
1049
1244
  e.columnCount ?? 0
1050
1245
  );
1051
1246
  }
1052
- static createByObjectArray(e, r = [], a = [], t = 0, n = 0, m = !1, d = new v(), i, p = []) {
1247
+ static createByObjectArray(e, r = [], a = [], t = 0, n = 0, m = !1, i = new v(), d, p = []) {
1053
1248
  let l;
1054
- r != null && r.length ? l = new o("header", r, d.header, i) : i != null && i.length ? l = new o("header", [i.map((P) => P.headerLabel)], d.header, i) : l = new L();
1055
- const c = a ? new o("footer", a, d.footer, i) : new L(), b = new I("body", e, i, d.body);
1056
- return new _(
1249
+ r != null && r.length ? l = new o("header", r, i.header, d) : d != null && d.length ? l = new o("header", [d.map((P) => P.headerLabel)], i.header, d) : l = new L();
1250
+ const c = a ? new o("footer", a, i.footer, d) : new L(), b = new B("body", e, d, i.body);
1251
+ return new V(
1057
1252
  l,
1058
1253
  b,
1059
1254
  c,
1060
1255
  t,
1061
1256
  n,
1062
1257
  m,
1063
- d,
1064
1258
  i,
1259
+ d,
1065
1260
  p
1066
1261
  );
1067
1262
  }
1068
1263
  }
1069
- class X {
1264
+ class H {
1070
1265
  constructor(e, r) {
1071
1266
  this.tableModel = e, this.tableOptions = r;
1072
1267
  }
1073
1268
  }
1074
- class F {
1269
+ class W {
1075
1270
  constructor(e, r) {
1076
1271
  this.value = e, this.label = r;
1077
1272
  }
@@ -1192,8 +1387,8 @@ class De extends Ue {
1192
1387
  colCount:${t}
1193
1388
  rowSpan:${n}
1194
1389
  pc:${m}`.replace(/[ \n]+/g, " ")), this.children)
1195
- for (const d of this.children)
1196
- d.log(e);
1390
+ for (const i of this.children)
1391
+ i.log(e);
1197
1392
  }
1198
1393
  }
1199
1394
  class h {
@@ -1229,8 +1424,8 @@ class h {
1229
1424
  static buildGroupExts(e, r = [], a = 0, t) {
1230
1425
  let n;
1231
1426
  for (let m = 0; m < e.length; m++) {
1232
- const d = e[m], i = new De(d, a, m, t);
1233
- n && (i.leftNeighbour = n, n.rightNeighbour = i), r.push(i), d.children && (i.children = h.buildGroupExts(d.children, [], a + 1, i)), n = i;
1427
+ const i = e[m], d = new De(i, a, m, t);
1428
+ n && (d.leftNeighbour = n, n.rightNeighbour = d), r.push(d), i.children && (d.children = h.buildGroupExts(i.children, [], a + 1, d)), n = d;
1234
1429
  }
1235
1430
  return r;
1236
1431
  }
@@ -1252,15 +1447,15 @@ class h {
1252
1447
  for (const m of e) {
1253
1448
  if (m.rowIndex <= t) {
1254
1449
  a++;
1255
- for (let d = 0; d < r.length; d++)
1256
- r[d][a] = null;
1450
+ for (let i = 0; i < r.length; i++)
1451
+ r[i][a] = null;
1257
1452
  }
1258
1453
  if (r[m.rowIndex][a] = m, t = m.rowIndex, m.ownColumn() && ((n = m.children) != null && n.length)) {
1259
- for (let d = m.rowIndex + 1; d < r.length; d++)
1260
- r[d][a] = void 0;
1454
+ for (let i = m.rowIndex + 1; i < r.length; i++)
1455
+ r[i][a] = void 0;
1261
1456
  a++;
1262
- for (let d = 0; d < r.length; d++)
1263
- r[d][a] = null;
1457
+ for (let i = 0; i < r.length; i++)
1458
+ r[i][a] = null;
1264
1459
  }
1265
1460
  }
1266
1461
  return r;
@@ -1271,7 +1466,7 @@ class h {
1271
1466
  e.push(t.data + " rowIndex:" + t.rowIndex), (a = t.children) != null && a.length && h.iterateThrowColumns(e, t.children);
1272
1467
  }
1273
1468
  }
1274
- class pe {
1469
+ class K {
1275
1470
  constructor() {
1276
1471
  this.areaIdent = "body", this.rowSelectionModel = void 0;
1277
1472
  }
@@ -1338,16 +1533,16 @@ class pe {
1338
1533
  return !1;
1339
1534
  }
1340
1535
  }
1341
- class Ie {
1342
- render(e, r, a, t, n, m, d) {
1343
- const i = m != null && m.data ? m.data : "";
1344
- e.innerHTML = `${i}`;
1536
+ class Me {
1537
+ render(e, r, a, t, n, m, i) {
1538
+ const d = m != null && m.data ? m.data : "";
1539
+ e.innerHTML = `${d}`;
1345
1540
  }
1346
1541
  }
1347
- class Me {
1542
+ class Ie {
1348
1543
  constructor(e = "header", r, a = [], t) {
1349
1544
  var n;
1350
- this.areaIdent = e, this.groups = r, this.columnDefs = a, this.defaultRowHeight = t, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new Ie(), this.groupExts = h.buildGroupExts(r), console.info(this.groupExts), console.info(this.getAllLeafs()), console.info(this.getMaxRowCount());
1545
+ this.areaIdent = e, this.groups = r, this.columnDefs = a, this.defaultRowHeight = t, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new Me(), this.groupExts = h.buildGroupExts(r), console.info(this.groupExts), console.info(this.getAllLeafs()), console.info(this.getMaxRowCount());
1351
1546
  for (const m of this.groupExts)
1352
1547
  m.log(this.getMaxRowCount());
1353
1548
  this.arr = this.buildArray(), !((n = this.columnDefs) != null && n.length) && e === "header" && (this.columnDefs = h.buildColumnDefs(r)), console.info("this.columnDefs", this.columnDefs), console.info("this.arr", this.arr);
@@ -1362,11 +1557,11 @@ class Me {
1362
1557
  buildArray() {
1363
1558
  console.info("");
1364
1559
  let e = h.flattenGroupExts(this.groupExts);
1365
- const r = e.length, a = 1 + Math.max(...e.map((d) => d.rowIndex));
1560
+ const r = e.length, a = 1 + Math.max(...e.map((i) => i.rowIndex));
1366
1561
  console.info("max row/col:", a + "/" + r);
1367
1562
  const t = [];
1368
1563
  h.iterateThrowColumns(t, this.groupExts), console.info(t);
1369
- const n = Array.from(Array(a).keys()).map((d) => []);
1564
+ const n = Array.from(Array(a).keys()).map((i) => []);
1370
1565
  let m = h.buildArrayOfArrays(e, n);
1371
1566
  return console.table(m), m;
1372
1567
  }
@@ -1451,11 +1646,11 @@ class _e {
1451
1646
  constructor(e, r = !0, a = !1) {
1452
1647
  this.property = e, this.skipCheckableCheck = r, this.readonly = a;
1453
1648
  }
1454
- render(e, r, a, t, n, m, d) {
1649
+ render(e, r, a, t, n, m, i) {
1455
1650
  if (this.readonly || this.skipCheckableCheck || n.isRowCheckable(r)) {
1456
- d.addClass(e, "ge-table-row-checkbox-div");
1457
- const i = n.getRowByIndex(r), l = n.getValueByT(i, this.property) === !0 ? "checked" : "", c = this.readonly ? " readonly " : "";
1458
- if (d.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
1651
+ i.addClass(e, "ge-table-row-checkbox-div");
1652
+ const d = n.getRowByIndex(r), l = n.getValueByT(d, this.property) === !0 ? "checked" : "", c = this.readonly ? " readonly " : "";
1653
+ if (i.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
1459
1654
  <input
1460
1655
  type="checkbox"
1461
1656
  data-area="${t}"
@@ -1467,12 +1662,12 @@ class _e {
1467
1662
  ${c}
1468
1663
  class="ge-input-checkbox">`, !this.readonly) {
1469
1664
  const b = e.querySelector(".ge-input-checkbox");
1470
- b && b.addEventListener("click", (P, z) => (i[this.property] = !i[this.property], !0));
1665
+ b && b.addEventListener("click", (P, w) => (d[this.property] = !d[this.property], !0));
1471
1666
  }
1472
1667
  }
1473
1668
  }
1474
1669
  }
1475
- class K {
1670
+ class Y {
1476
1671
  constructor() {
1477
1672
  this.formatter = new Intl.DateTimeFormat("de-DE", {
1478
1673
  year: "numeric",
@@ -1480,51 +1675,81 @@ class K {
1480
1675
  day: "2-digit"
1481
1676
  });
1482
1677
  }
1483
- render(e, r, a, t, n, m, d) {
1678
+ render(e, r, a, t, n, m, i) {
1484
1679
  if (m) {
1485
- let i = "";
1680
+ let d = "";
1486
1681
  try {
1487
- i = this.formatter.format(new Date(m));
1682
+ d = this.formatter.format(new Date(m));
1488
1683
  } catch {
1489
- i = m;
1684
+ d = m;
1490
1685
  }
1491
1686
  e.innerHTML = `
1492
1687
  <div class="ge-table-label-div" data-row-index="${r}" data-col-index="${a}" data-area="${t}" style="position: relative; background: transparent; width: 100%; height: 100%;">
1493
- <div class="ge-table-label" data-row-index="${r}" data-col-index="${a}" data-area="${t}">${i}</div>
1688
+ <div class="ge-table-label" data-row-index="${r}" data-col-index="${a}" data-area="${t}">${d}</div>
1494
1689
  </div>`;
1495
1690
  }
1496
1691
  }
1497
1692
  }
1498
1693
  class le {
1499
- render(e, r, a, t, n, m, d) {
1694
+ render(e, r, a, t, n, m, i) {
1500
1695
  m === "male" || m === "m" ? e.innerText = "♂" : (m === "female" || m === "f") && (e.innerText = "♀");
1501
1696
  }
1502
1697
  }
1503
1698
  class qe {
1504
- render(e, r, a, t, n, m, d) {
1505
- m === "true" || m === !0 ? e.innerHTML = '<span class="ge-true-text-color">✅</span>' : m === "false" || m === !1 ? e.innerHTML = '<span class="ge-false-text-color">❌</span>' : e.innerText = "";
1699
+ constructor(e = 100, r = !1) {
1700
+ this.maxValue = e, this.labelVisible = r;
1701
+ }
1702
+ render(e, r, a, t, n, m, i) {
1703
+ if (i.addClass(e, "ge-progressbar-div"), !isNaN(m)) {
1704
+ const p = Number(m) * 100 / this.maxValue, l = this.labelVisible ? Math.round(p) + "%" : "";
1705
+ e.innerHTML = `
1706
+ <div class="ge-table-label-div"
1707
+ data-row-index="${r}"
1708
+ data-col-index="${a}"
1709
+ data-area="${t}"
1710
+ title="${l}"
1711
+ style="position: relative; background: transparent; width: 100%; height: 100%;">
1712
+ <div class="ge-table-progress-container"
1713
+ style="width:100%;height:50%;padding:0;margin-top:6px;"
1714
+ data-row-index="${r}"
1715
+ data-col-index="${a}"
1716
+ data-area="${t}">
1717
+ <div class="ge-table-progress-bar"
1718
+ style="width:${p}%;height:100%;padding:0;margin:0;"
1719
+ data-row-index="${r}"
1720
+ data-col-index="${a}"
1721
+ data-area="${t}">&nbsp;
1722
+ </div>
1723
+ </div>
1724
+ </div>`;
1725
+ }
1506
1726
  }
1507
1727
  }
1508
1728
  class He {
1509
- render(e, r, a, t, n, m, d) {
1510
- m && (e.innerText = new Date(m).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
1729
+ render(e, r, a, t, n, m, i) {
1730
+ m === "true" || m === !0 ? e.innerHTML = '<span class="ge-true-text-color">✅</span>' : m === "false" || m === !1 ? e.innerHTML = '<span class="ge-false-text-color">❌</span>' : e.innerText = "";
1511
1731
  }
1512
1732
  }
1513
1733
  class Oe {
1734
+ render(e, r, a, t, n, m, i) {
1735
+ m && (e.innerText = new Date(m).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
1736
+ }
1737
+ }
1738
+ class Ve {
1514
1739
  constructor(e = Number.MIN_SAFE_INTEGER, r = Number.MAX_SAFE_INTEGER) {
1515
1740
  this.min = e, this.max = r;
1516
1741
  }
1517
- render(e, r, a, t, n, m, d) {
1518
- m && (e.innerText = m, (typeof m == "string" || isNaN(m) || m < this.min || m > this.max) && d.addClass(e, "ge-cell-error"));
1742
+ render(e, r, a, t, n, m, i) {
1743
+ m && (e.innerText = m, (typeof m == "string" || isNaN(m) || m < this.min || m > this.max) && i.addClass(e, "ge-cell-error"));
1519
1744
  }
1520
1745
  }
1521
1746
  class Ee {
1522
1747
  constructor(e) {
1523
1748
  this.property = e;
1524
1749
  }
1525
- render(e, r, a, t, n, m, d) {
1526
- d.addClass(e, "ge-star-rating-div");
1527
- const i = n.getRowByIndex(r), p = +("" + n.getValueByT(i, this.property));
1750
+ render(e, r, a, t, n, m, i) {
1751
+ i.addClass(e, "ge-star-rating-div");
1752
+ const d = n.getRowByIndex(r), p = +("" + n.getValueByT(d, this.property));
1528
1753
  if (!isNaN(p)) {
1529
1754
  const l = [];
1530
1755
  for (let b = 0; b < p; b++)
@@ -1537,13 +1762,13 @@ class Ee {
1537
1762
  }
1538
1763
  }
1539
1764
  }
1540
- class Ve {
1765
+ class Fe {
1541
1766
  constructor(e, r = 100, a = !1) {
1542
1767
  this.property = e, this.maxValue = r, this.labelVisible = a;
1543
1768
  }
1544
- render(e, r, a, t, n, m, d) {
1545
- d.addClass(e, "ge-star-rating-div");
1546
- const i = n.getRowByIndex(r), p = +("" + n.getValueByT(i, this.property));
1769
+ render(e, r, a, t, n, m, i) {
1770
+ i.addClass(e, "ge-star-rating-div");
1771
+ const d = n.getRowByIndex(r), p = +("" + n.getValueByT(d, this.property));
1547
1772
  if (!isNaN(p)) {
1548
1773
  const l = p * 100 / this.maxValue, c = this.labelVisible ? Math.round(l) + "%" : "";
1549
1774
  e.innerHTML = `
@@ -1569,32 +1794,32 @@ class Ve {
1569
1794
  }
1570
1795
  }
1571
1796
  }
1572
- const Fe = function(s, e, r) {
1797
+ const $e = function(s, e, r) {
1573
1798
  return s ? Number(s) : "";
1574
1799
  };
1575
- class Y {
1800
+ class J {
1576
1801
  constructor(e) {
1577
1802
  this.options = e;
1578
1803
  }
1579
1804
  static create(e) {
1580
- return new Y(
1581
- e.map((r) => new F(r, r))
1805
+ return new J(
1806
+ e.map((r) => new W(r, r))
1582
1807
  );
1583
1808
  }
1584
- render(e, r, a, t, n, m, d) {
1809
+ render(e, r, a, t, n, m, i) {
1585
1810
  if (n.isEditable(r, a)) {
1586
- d.addClass(e, "ge-table-row-select-div");
1587
- const i = n.getValueAt(r, a);
1811
+ i.addClass(e, "ge-table-row-select-div");
1812
+ const d = n.getValueAt(r, a);
1588
1813
  let p = [];
1589
1814
  for (let c of this.options) {
1590
- const b = c.value === i ? " selected " : "";
1815
+ const b = c.value === d ? " selected " : "";
1591
1816
  p.push(`<option value="${c.value}" ${b}>${c.label}</option>`);
1592
1817
  }
1593
1818
  const l = p.join("");
1594
1819
  e.innerHTML = `
1595
1820
  <select
1596
1821
  type="text"
1597
- value="${i}"
1822
+ value="${d}"
1598
1823
  autofocus
1599
1824
  data-listen="change"
1600
1825
  data-area="${t}"
@@ -1606,12 +1831,12 @@ class Y {
1606
1831
  }
1607
1832
  }
1608
1833
  }
1609
- class q {
1834
+ class E {
1610
1835
  constructor(e, r, a) {
1611
1836
  this.r = e, this.g = r, this.b = a;
1612
1837
  }
1613
1838
  }
1614
- class ae {
1839
+ class te {
1615
1840
  constructor(e, r, a, t) {
1616
1841
  this.minValue = e, this.minColor = r, this.maxValue = a, this.maxColor = t;
1617
1842
  }
@@ -1621,59 +1846,59 @@ class R {
1621
1846
  return (e - r) / (a - r) * (n - t) + t;
1622
1847
  }
1623
1848
  static getTwoColorGradientRGB(e, r) {
1624
- const a = R.normalize(e, r.minValue, r.maxValue, 0, 1), t = r.maxColor.r - r.minColor.r, n = r.maxColor.g - r.minColor.g, m = r.maxColor.b - r.minColor.b, d = t * a + r.minColor.r, i = n * a + r.minColor.g, p = m * a + r.minColor.b;
1625
- return `rgb(${Math.round(d)}, ${Math.round(i)}, ${Math.round(p)})`;
1849
+ const a = R.normalize(e, r.minValue, r.maxValue, 0, 1), t = r.maxColor.r - r.minColor.r, n = r.maxColor.g - r.minColor.g, m = r.maxColor.b - r.minColor.b, i = t * a + r.minColor.r, d = n * a + r.minColor.g, p = m * a + r.minColor.b;
1850
+ return `rgb(${Math.round(i)}, ${Math.round(d)}, ${Math.round(p)})`;
1626
1851
  }
1627
1852
  static getThreeColorGradientRGB(e, r) {
1628
- return e < r.middleValue ? R.getTwoColorGradientRGB(e, new ae(r.minValue, r.minColor, r.middleValue, r.middleColor)) : e > r.middleValue ? R.getTwoColorGradientRGB(e, new ae(r.middleValue, r.middleColor, r.maxValue, r.maxColor)) : `rgb(${r.middleColor.r}, ${r.middleColor.g}, ${r.middleColor.b})`;
1853
+ return e < r.middleValue ? R.getTwoColorGradientRGB(e, new te(r.minValue, r.minColor, r.middleValue, r.middleColor)) : e > r.middleValue ? R.getTwoColorGradientRGB(e, new te(r.middleValue, r.middleColor, r.maxValue, r.maxColor)) : `rgb(${r.middleColor.r}, ${r.middleColor.g}, ${r.middleColor.b})`;
1629
1854
  }
1630
1855
  }
1631
- class $e {
1856
+ class We {
1632
1857
  constructor(e, r, a, t, n, m) {
1633
1858
  this.minValue = e, this.minColor = r, this.middleValue = a, this.middleColor = t, this.maxValue = n, this.maxColor = m;
1634
1859
  }
1635
1860
  }
1636
- class We {
1637
- render(e, r, a, t, n, m, d) {
1861
+ class je {
1862
+ render(e, r, a, t, n, m, i) {
1638
1863
  if (m) {
1639
- const i = Number(m);
1640
- i < 0 ? (e.innerHTML = "▾ " + i.toFixed(2) + "%", d.addClass(e, "ge-positive-text-color")) : (e.innerHTML = "▴ " + i.toFixed(2) + "%", d.addClass(e, "ge-negative-text-color"));
1864
+ const d = Number(m);
1865
+ d < 0 ? (e.innerHTML = "▾ " + d.toFixed(2) + "%", i.addClass(e, "ge-positive-text-color")) : (e.innerHTML = "▴ " + d.toFixed(2) + "%", i.addClass(e, "ge-negative-text-color"));
1641
1866
  }
1642
1867
  }
1643
1868
  }
1644
- class je {
1869
+ class Xe {
1645
1870
  constructor() {
1646
1871
  this.formatter = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" });
1647
1872
  }
1648
- render(e, r, a, t, n, m, d) {
1873
+ render(e, r, a, t, n, m, i) {
1649
1874
  if (m) {
1650
- const i = Number(m);
1651
- e.innerText = this.formatter.format(i);
1875
+ const d = Number(m);
1876
+ e.innerText = this.formatter.format(d);
1652
1877
  }
1653
1878
  }
1654
1879
  }
1655
- class Xe {
1656
- render(e, r, a, t, n, m, d) {
1657
- const i = n.getRowByIndex(r);
1658
- if (i) {
1659
- const p = i.name ?? i.symbol;
1880
+ class Ke {
1881
+ render(e, r, a, t, n, m, i) {
1882
+ const d = n.getRowByIndex(r);
1883
+ if (d) {
1884
+ const p = d.name ?? d.symbol;
1660
1885
  e.innerHTML = `
1661
1886
  <div style="line-height: 1.2;padding: 10px 0 0 10px;">
1662
1887
  ${p}<br>
1663
- ${i.symbol}
1888
+ ${d.symbol}
1664
1889
  </div>
1665
1890
  `;
1666
1891
  }
1667
1892
  }
1668
1893
  }
1669
- class Ke {
1894
+ class Ye {
1670
1895
  constructor() {
1671
1896
  this.formatterUsd = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }), this.formatter = new Intl.NumberFormat("en-US");
1672
1897
  }
1673
- render(e, r, a, t, n, m, d) {
1674
- const i = n.getRowByIndex(r);
1675
- if (i) {
1676
- const p = this.formatterUsd.format(i.volUsd), l = this.formatter.format(i.volBtc);
1898
+ render(e, r, a, t, n, m, i) {
1899
+ const d = n.getRowByIndex(r);
1900
+ if (d) {
1901
+ const p = this.formatterUsd.format(d.volUsd), l = this.formatter.format(d.volBtc);
1677
1902
  e.innerHTML = `
1678
1903
  <div style="line-height: 1.2;padding: 10px 0 0 10px;">
1679
1904
  ${p}<br>
@@ -1683,16 +1908,16 @@ class Ke {
1683
1908
  }
1684
1909
  }
1685
1910
  }
1686
- class Ye {
1911
+ class Je {
1687
1912
  constructor(e = 120) {
1688
1913
  this.maxWidth = e, this.formatter = new Intl.NumberFormat("en-US");
1689
1914
  }
1690
- render(e, r, a, t, n, m, d) {
1691
- const i = n.getRowByIndex(r);
1692
- if (i) {
1693
- const p = this.formatter.format(i.circulatingSupply), l = i.maxSupply, c = [];
1915
+ render(e, r, a, t, n, m, i) {
1916
+ const d = n.getRowByIndex(r);
1917
+ if (d) {
1918
+ const p = this.formatter.format(d.circulatingSupply), l = d.maxSupply, c = [];
1694
1919
  if (c.push('<div style="line-height: 1.2;padding: 10px 0 0 10px;">'), c.push(p), c.push("<br>"), l) {
1695
- const b = this.maxWidth * i.circulatingSupply / l;
1920
+ const b = this.maxWidth * d.circulatingSupply / l;
1696
1921
  c.push(`
1697
1922
  <div style="width: ${this.maxWidth}px;height: 5px;background-color: #eee;margin:10px 0 0 10px">
1698
1923
  <div style="width: ${b}px;height: 5px;background-color: #ccc;"></div>
@@ -1703,13 +1928,13 @@ class Ye {
1703
1928
  }
1704
1929
  }
1705
1930
  }
1706
- class Je {
1707
- render(e, r, a, t, n, m, d) {
1708
- const i = n.getRowByIndex(r);
1709
- i != null && i.id && (e.innerHTML = `<img src="https://s2.coinmarketcap.com/static/img/coins/64x64/${i.id}.png" style="width:30px;height: 30px;margin: 10px 10px 0 20px;">`);
1931
+ class Qe {
1932
+ render(e, r, a, t, n, m, i) {
1933
+ const d = n.getRowByIndex(r);
1934
+ 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;">`);
1710
1935
  }
1711
1936
  }
1712
- const Qe = [
1937
+ const er = [
1713
1938
  {
1714
1939
  id: 1,
1715
1940
  name: "Bitcoin",
@@ -4444,19 +4669,19 @@ const Qe = [
4444
4669
  change90d: 12.43943602
4445
4670
  }
4446
4671
  ];
4447
- function zr() {
4448
- const s = Qe, e = new We(), r = new je(), a = new Xe(), t = new Ke(), n = new Ye(120), m = new Je(), d = [
4672
+ function kr() {
4673
+ const s = er, e = new je(), r = new Xe(), a = new Ke(), t = new Ye(), n = new Je(120), m = new Qe(), i = [
4449
4674
  y.create({
4450
4675
  property: "symbol",
4451
4676
  headerLabel: "",
4452
- width: D,
4677
+ width: I,
4453
4678
  bodyClasses: ["ge-table-text-align-left"],
4454
4679
  bodyRenderer: m
4455
4680
  }),
4456
4681
  y.create({
4457
4682
  property: "symbol",
4458
4683
  headerLabel: "Name",
4459
- width: Z,
4684
+ width: z,
4460
4685
  bodyClasses: ["ge-table-text-align-left"],
4461
4686
  headerClasses: ["ge-table-text-align-left"],
4462
4687
  bodyRenderer: a
@@ -4481,7 +4706,7 @@ function zr() {
4481
4706
  }),
4482
4707
  y.create({
4483
4708
  headerLabel: "Volumne (24h)",
4484
- width: V,
4709
+ width: D,
4485
4710
  bodyClasses: ["ge-table-text-align-right"],
4486
4711
  headerClasses: ["ge-table-text-align-right"],
4487
4712
  bodyRenderer: t
@@ -4489,15 +4714,15 @@ function zr() {
4489
4714
  y.create({
4490
4715
  property: "circulatingSupply",
4491
4716
  headerLabel: "Circulating Supply",
4492
- width: ye,
4717
+ width: ue,
4493
4718
  bodyRenderer: n,
4494
4719
  bodyClasses: ["ge-table-text-align-right"],
4495
4720
  headerClasses: ["ge-table-text-align-right"]
4496
4721
  })
4497
4722
  ];
4498
- d.forEach((p) => p.sortable = () => !0);
4499
- const i = {
4500
- ...new w(),
4723
+ i.forEach((p) => p.sortable = () => !0);
4724
+ const d = {
4725
+ ...new Z(),
4501
4726
  hoverColumnVisible: !1,
4502
4727
  verticalBorderVisible: !1,
4503
4728
  defaultRowHeights: {
@@ -4506,16 +4731,16 @@ function zr() {
4506
4731
  footer: 0
4507
4732
  }
4508
4733
  };
4509
- return new X(
4734
+ return new H(
4510
4735
  N.createTableModel({
4511
4736
  rows: s,
4512
- columnDefs: d,
4513
- tableOptions: i
4737
+ columnDefs: i,
4738
+ tableOptions: d
4514
4739
  }),
4515
- i
4740
+ d
4516
4741
  );
4517
4742
  }
4518
- function Zr(s = 1e3, e = 1e3) {
4743
+ function vr(s = 1e3, e = 1e3) {
4519
4744
  const r = Array.from(Array(s).keys()).map(
4520
4745
  (n) => Array.from(Array(e).keys()).map((m) => `${n}/${m}`)
4521
4746
  ), a = Array.from(Array(2).keys()).map(
@@ -4532,7 +4757,7 @@ function Zr(s = 1e3, e = 1e3) {
4532
4757
  fixedRightColumnCount: 2
4533
4758
  });
4534
4759
  }
4535
- const er = [
4760
+ const rr = [
4536
4761
  {
4537
4762
  id: 0,
4538
4763
  preName: "Prename0",
@@ -166406,9 +166631,9 @@ const er = [
166406
166631
  friends: []
166407
166632
  }
166408
166633
  ];
166409
- function wr() {
166634
+ function Rr() {
166410
166635
  const s = {
166411
- ...new w(),
166636
+ ...new Z(),
166412
166637
  hoverColumnVisible: !1,
166413
166638
  defaultRowHeights: {
166414
166639
  header: 50,
@@ -166421,14 +166646,14 @@ function wr() {
166421
166646
  // new CheckboxColumn(), // <--- not needed, because we have 'showCheckboxWihoutExtraColumn:true'
166422
166647
  new y("lastName", "Last Name", new u(250, "px")),
166423
166648
  new y("preName", "Pre Name", new u(120, "px")),
166424
- new y("birth", "Birthday", new u(100, "px"), new S(), new S(void 0, new K(), void 0), void 0, void 0),
166649
+ new y("birth", "Birthday", new u(100, "px"), new S(), new S(void 0, new Y(), void 0), void 0, void 0),
166425
166650
  new y("gender", " ", new u(50, "px"), new S(), new S(void 0, new le(), void 0), void 0, void 0),
166426
166651
  new y("address.street", "Strasse", new u(150, "px")),
166427
166652
  new y("address.number", "Nr", new u(70, "px")),
166428
166653
  new y("address.zip", "Zip", new u(60, "px")),
166429
166654
  new y("address.city", "City", new u(120, "px")),
166430
166655
  new y("id", "ID", new u(60, "px"))
166431
- ], r = A.buildTreeRows(er, "friends");
166656
+ ], r = A.buildTreeRows(rr, "friends");
166432
166657
  return N.createTableModel({
166433
166658
  rows: r,
166434
166659
  columnDefs: e,
@@ -166437,7 +166662,7 @@ function wr() {
166437
166662
  fixedRightColumnCount: 0
166438
166663
  });
166439
166664
  }
166440
- const te = new v(34, 50, 0), ne = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), rr = `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
166665
+ const ne = new v(34, 50, 0), me = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "), ar = `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
166441
166666
  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
166442
166667
  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
166443
166668
  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
@@ -166448,27 +166673,27 @@ const te = new v(34, 50, 0), ne = "_ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov
166448
166673
  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(`
166449
166674
  `).map(
166450
166675
  (s) => s.split(" ").map((e) => Number(e))
166451
- ), ar = 27.9, tr = 77.4;
166452
- class me {
166676
+ ), tr = 27.9, nr = 77.4;
166677
+ class se {
166453
166678
  constructor(e, r, a) {
166454
166679
  this.r = e, this.g = r, this.b = a;
166455
166680
  }
166456
166681
  }
166457
- function nr(s, e, r, a, t) {
166682
+ function mr(s, e, r, a, t) {
166458
166683
  return (s - e) / (r - e) * (t - a) + a;
166459
166684
  }
166460
- function mr(s, e, r) {
166461
- var a = new me(255, 0, 0), t = new me(0, 0, 255), n = nr(r, s, e, 0, 1), m = t.r - a.r, d = t.g - a.g, i = t.b - a.b;
166462
- return m = m * n + a.r, d = d * n + a.g, i = i * n + a.b, `rgb(${Math.round(m)}, ${Math.round(d)}, ${Math.round(i)})`;
166685
+ function sr(s, e, r) {
166686
+ var a = new se(255, 0, 0), t = new se(0, 0, 255), n = mr(r, s, e, 0, 1), m = t.r - a.r, i = t.g - a.g, d = t.b - a.b;
166687
+ return m = m * n + a.r, i = i * n + a.g, d = d * n + a.b, `rgb(${Math.round(m)}, ${Math.round(i)}, ${Math.round(d)})`;
166463
166688
  }
166464
- function xr() {
166465
- const s = new o("body", rr, te.body), e = new Array(ne.length).fill(50), r = new o("header", [ne], te.header);
166689
+ function Ar() {
166690
+ const s = new o("body", ar, ne.body), e = new Array(me.length).fill(50), r = new o("header", [me], ne.header);
166466
166691
  return s.getCustomStyleAt = (a, t) => {
166467
166692
  let n = {};
166468
166693
  if (t > 0) {
166469
166694
  const m = s.getValueAt(a, t);
166470
166695
  n = {
166471
- background: mr(ar, tr, m),
166696
+ background: sr(tr, nr, m),
166472
166697
  color: "#fff"
166473
166698
  };
166474
166699
  }
@@ -166479,7 +166704,7 @@ function xr() {
166479
166704
  columnSizes: e
166480
166705
  });
166481
166706
  }
166482
- function sr() {
166707
+ function ir() {
166483
166708
  return [
166484
166709
  {
166485
166710
  date: "2010-01-01T01:00:00",
@@ -219037,12 +219262,12 @@ function sr() {
219037
219262
  }
219038
219263
  ];
219039
219264
  }
219040
- const ce = 30, ir = 3, ge = sr(), C = {};
219265
+ const ce = 30, dr = 3, ge = ir(), C = {};
219041
219266
  ge.forEach((s) => {
219042
219267
  const [e, r] = s.date.split("T");
219043
219268
  C[e] || (C[e] = {}), C[e][r.substring(0, 5)] = s;
219044
219269
  });
219045
- const $ = Object.keys(C), U = [
219270
+ const j = Object.keys(C), M = [
219046
219271
  "06:00",
219047
219272
  "07:00",
219048
219273
  "08:00",
@@ -219068,15 +219293,15 @@ const $ = Object.keys(C), U = [
219068
219293
  "04:00",
219069
219294
  "05:00"
219070
219295
  ];
219071
- function dr() {
219296
+ function yr() {
219072
219297
  let s = 10, e = 0;
219073
219298
  return ge.forEach((r) => {
219074
219299
  s = Math.min(s, r.temperature), e = Math.max(e, r.temperature);
219075
219300
  }), [s, e];
219076
219301
  }
219077
- const [se, ie] = dr();
219078
- function kr() {
219079
- const s = new yr(), e = new ur(), r = [60, ...new Array($.length).fill(ir)];
219302
+ const [ie, de] = yr();
219303
+ function Ur() {
219304
+ const s = new ur(), e = new pr(), r = [60, ...new Array(j.length).fill(dr)];
219080
219305
  return N.createTableModel({
219081
219306
  bodyAreaModel: s,
219082
219307
  footerAreaModel: e,
@@ -219084,31 +219309,31 @@ function kr() {
219084
219309
  fixedLeftColumnCount: 1
219085
219310
  });
219086
219311
  }
219087
- class yr extends pe {
219312
+ class ur extends K {
219088
219313
  getRowCount() {
219089
- return U.length;
219314
+ return M.length;
219090
219315
  }
219091
219316
  getRowHeight(e) {
219092
219317
  return ce;
219093
219318
  }
219094
219319
  getValueAt(e, r) {
219095
- return r === 0 ? U[e] : "";
219320
+ return r === 0 ? M[e] : "";
219096
219321
  }
219097
219322
  getTooltipAt(e, r) {
219098
219323
  if (r === 0)
219099
219324
  return "";
219100
219325
  r--;
219101
- const a = $[r], t = U[e];
219326
+ const a = j[r], t = M[e];
219102
219327
  return C[a] && C[a][t] ? `${a} ${t} → ${C[a][t].temperature}` : "";
219103
219328
  }
219104
219329
  getCustomStyleAt(e, r) {
219105
219330
  if (r === 0)
219106
219331
  return;
219107
219332
  r--;
219108
- const a = $[r], t = U[e];
219333
+ const a = j[r], t = M[e];
219109
219334
  if (!C[a] || !C[a][t])
219110
219335
  return;
219111
- const n = C[a][t].temperature, m = new q(67, 1, 84), d = new q(31, 144, 141), i = new q(250, 230, 37), p = (ie + se) / 2, l = new $e(se, m, p, d, ie, i);
219336
+ const n = C[a][t].temperature, m = new E(67, 1, 84), i = new E(31, 144, 141), d = new E(250, 230, 37), p = (de + ie) / 2, l = new We(ie, m, p, i, de, d);
219112
219337
  return {
219113
219338
  background: R.getThreeColorGradientRGB(n, l),
219114
219339
  color: "transparent"
@@ -219116,7 +219341,7 @@ class yr extends pe {
219116
219341
  };
219117
219342
  }
219118
219343
  }
219119
- class ur extends pe {
219344
+ class pr extends K {
219120
219345
  getRowCount() {
219121
219346
  return 1;
219122
219347
  }
@@ -219138,7 +219363,7 @@ class ur extends pe {
219138
219363
  };
219139
219364
  }
219140
219365
  }
219141
- const H = [
219366
+ const F = [
219142
219367
  {
219143
219368
  data: "Gold",
219144
219369
  toggle: !0,
@@ -219151,11 +219376,13 @@ const H = [
219151
219376
  children: [
219152
219377
  {
219153
219378
  data: "Gold A",
219154
- property: "GOLD_A"
219379
+ property: "GOLD_A",
219380
+ visibility: "inverted"
219155
219381
  },
219156
219382
  {
219157
219383
  data: "Gold B",
219158
- property: "GOLD_B"
219384
+ property: "GOLD_B",
219385
+ visibility: "inverted"
219159
219386
  }
219160
219387
  ]
219161
219388
  },
@@ -219223,9 +219450,9 @@ const H = [
219223
219450
  ]
219224
219451
  }
219225
219452
  ];
219226
- function vr() {
219227
- const e = h.buildGroupExts(H), r = h.buildColumnDefs(e), a = new Me("header", H, r, 34);
219228
- console.info("headerGroups", H), console.info("columnDefs", r.map((m) => m.property));
219453
+ function Dr() {
219454
+ const e = h.buildGroupExts(F), r = h.buildColumnDefs(e), a = new Ie("header", F, r, 34);
219455
+ console.info("headerGroups", F), console.info("columnDefs", r.map((m) => m.property));
219229
219456
  const t = [
219230
219457
  {
219231
219458
  GOLD: 146,
@@ -219243,14 +219470,14 @@ function vr() {
219243
219470
  HOH_C: 53,
219244
219471
  HOH_D: 54
219245
219472
  }
219246
- ], n = new I("body", t, r, 34);
219473
+ ], n = new B("body", t, r, 34);
219247
219474
  return N.createTableModel({
219248
219475
  headerAreaModel: a,
219249
219476
  bodyAreaModel: n,
219250
219477
  columnDefs: r
219251
219478
  });
219252
219479
  }
219253
- function pr() {
219480
+ function lr() {
219254
219481
  return [
219255
219482
  {
219256
219483
  id: 1,
@@ -219430,9 +219657,9 @@ function pr() {
219430
219657
  }
219431
219658
  ];
219432
219659
  }
219433
- function lr() {
219660
+ function cr() {
219434
219661
  return [
219435
- new y("firstName", "First Name", Z),
219662
+ new y("firstName", "First Name", z),
219436
219663
  new y("lastName", "Last Name"),
219437
219664
  y.create({
219438
219665
  property: "gender",
@@ -219446,7 +219673,7 @@ function lr() {
219446
219673
  width: Ce,
219447
219674
  bodyClasses: ["ge-table-text-align-left"]
219448
219675
  }),
219449
- new y("ipAddress", "IP", de),
219676
+ new y("ipAddress", "IP", ye),
219450
219677
  y.create({
219451
219678
  property: "id",
219452
219679
  headerLabel: "ID",
@@ -219456,9 +219683,9 @@ function lr() {
219456
219683
  })
219457
219684
  ];
219458
219685
  }
219459
- function cr() {
219686
+ function gr() {
219460
219687
  return {
219461
- ...new w(),
219688
+ ...new Z(),
219462
219689
  hoverColumnVisible: !1,
219463
219690
  defaultRowHeights: {
219464
219691
  header: 40,
@@ -219467,8 +219694,8 @@ function cr() {
219467
219694
  }
219468
219695
  };
219469
219696
  }
219470
- function Rr() {
219471
- const s = cr(), e = pr(), r = lr();
219697
+ function Mr() {
219698
+ const s = gr(), e = lr(), r = cr();
219472
219699
  return N.createTableModel({
219473
219700
  rows: e,
219474
219701
  columnDefs: r,
@@ -219476,10 +219703,10 @@ function Rr() {
219476
219703
  fixedLeftColumnCount: 0
219477
219704
  });
219478
219705
  }
219479
- function Ar(s, e) {
219706
+ function Ir(s, e) {
219480
219707
  s.rendererMap = new S(void 0, e, void 0);
219481
219708
  }
219482
- const gr = [
219709
+ const br = [
219483
219710
  {
219484
219711
  id: 1,
219485
219712
  city: "London",
@@ -219627,7 +219854,7 @@ const gr = [
219627
219854
  team: { name: "Team TCC", active: !0 },
219628
219855
  data: [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
219629
219856
  }
219630
- ].map((s) => (s.updatedAt = /* @__PURE__ */ new Date(), s)), M = [
219857
+ ].map((s) => (s.updatedAt = /* @__PURE__ */ new Date(), s)), _ = [
219631
219858
  new y("city", "City", new u(90, "px")),
219632
219859
  new y("location", "Location", new u(100, "px")),
219633
219860
  new y("team.name", "Team", new u(100, "px")),
@@ -219635,7 +219862,7 @@ const gr = [
219635
219862
  property: "team.active",
219636
219863
  headerLabel: "Active",
219637
219864
  width: new u(60, "px"),
219638
- bodyRenderer: new qe()
219865
+ bodyRenderer: new He()
219639
219866
  }),
219640
219867
  new y("data.0", "00", new u(60, "px")),
219641
219868
  new y("data.1", "15", new u(60, "px")),
@@ -219653,10 +219880,10 @@ const gr = [
219653
219880
  property: "updatedAt",
219654
219881
  headerLabel: "Updated at",
219655
219882
  width: new u(175, "px"),
219656
- bodyRenderer: new He()
219883
+ bodyRenderer: new Oe()
219657
219884
  })
219658
- ], Ur = M.length - 1, br = {
219659
- ...new w(),
219885
+ ], Br = _.length - 1, Nr = {
219886
+ ...new Z(),
219660
219887
  hoverRowVisible: !1,
219661
219888
  hoverColumnVisible: !1,
219662
219889
  defaultRowHeights: {
@@ -219667,22 +219894,22 @@ const gr = [
219667
219894
  columnsDraggable: !1,
219668
219895
  columnsResizable: !0
219669
219896
  };
219670
- function Dr() {
219671
- const s = br.defaultRowHeights;
219897
+ function _r() {
219898
+ const s = Nr.defaultRowHeights;
219672
219899
  return N.createTableModel({
219673
- headerAreaModel: new fr(s.header),
219674
- bodyAreaModel: new Nr(s.body),
219675
- footerAreaModel: new Tr(s.footer),
219676
- columnDefs: M,
219900
+ headerAreaModel: new Tr(s.header),
219901
+ bodyAreaModel: new fr(s.body),
219902
+ footerAreaModel: new or(s.footer),
219903
+ columnDefs: _,
219677
219904
  fixedLeftColumnCount: 2,
219678
219905
  fixedRightColumnCount: 1,
219679
219906
  defaultRowHeights: s,
219680
- columnCount: M.length
219907
+ columnCount: _.length
219681
219908
  });
219682
219909
  }
219683
- class Nr extends I {
219910
+ class fr extends B {
219684
219911
  constructor(e) {
219685
- super("body", gr, M, e);
219912
+ super("body", br, _, e);
219686
219913
  }
219687
219914
  getRowspanAt(e, r) {
219688
219915
  if (r === 0 || r == 1) {
@@ -219699,7 +219926,7 @@ class Nr extends I {
219699
219926
  return t;
219700
219927
  }
219701
219928
  }
219702
- class fr extends o {
219929
+ class Tr extends o {
219703
219930
  constructor(e) {
219704
219931
  super(
219705
219932
  "header",
@@ -219726,7 +219953,7 @@ class fr extends o {
219726
219953
  return ["ge-font-weight-bold"];
219727
219954
  }
219728
219955
  }
219729
- class Tr extends o {
219956
+ class or extends o {
219730
219957
  constructor(e) {
219731
219958
  super(
219732
219959
  "footer",
@@ -219741,7 +219968,7 @@ class Tr extends o {
219741
219968
  return r === 2 ? ["ge-text-align-right", "ge-font-weight-bold"] : [];
219742
219969
  }
219743
219970
  }
219744
- const or = [
219971
+ const hr = [
219745
219972
  {
219746
219973
  id: "c8-34f1d5",
219747
219974
  company: "Equicom",
@@ -221679,15 +221906,15 @@ const or = [
221679
221906
  rating: 5
221680
221907
  }
221681
221908
  ];
221682
- function hr() {
221683
- return or;
221684
- }
221685
221909
  function Sr() {
221910
+ return hr;
221911
+ }
221912
+ function Cr() {
221686
221913
  return [
221687
221914
  y.create({
221688
221915
  property: "company",
221689
221916
  headerLabel: "Company",
221690
- width: Z,
221917
+ width: z,
221691
221918
  bodyClasses: ["ge-table-text-align-left"],
221692
221919
  headerClasses: ["ge-table-text-align-left"],
221693
221920
  sortable: f
@@ -221695,7 +221922,7 @@ function Sr() {
221695
221922
  y.create({
221696
221923
  property: "country",
221697
221924
  headerLabel: "Country",
221698
- width: ye,
221925
+ width: ue,
221699
221926
  bodyClasses: ["ge-table-text-align-left"],
221700
221927
  headerClasses: ["ge-table-text-align-left"],
221701
221928
  sortable: f
@@ -221703,7 +221930,7 @@ function Sr() {
221703
221930
  y.create({
221704
221931
  property: "product",
221705
221932
  headerLabel: "Name",
221706
- width: Z,
221933
+ width: z,
221707
221934
  bodyClasses: ["ge-table-text-align-left"],
221708
221935
  headerClasses: ["ge-table-text-align-left"],
221709
221936
  sortable: f
@@ -221712,14 +221939,14 @@ function Sr() {
221712
221939
  property: "sellDate",
221713
221940
  headerLabel: "Sell date",
221714
221941
  width: G,
221715
- bodyRenderer: new K(),
221942
+ bodyRenderer: new Y(),
221716
221943
  bodyClasses: ["ge-table-text-align-center"],
221717
221944
  sortable: f
221718
221945
  }),
221719
221946
  y.create({
221720
221947
  property: "id",
221721
221948
  headerLabel: "Order ID",
221722
- width: Z,
221949
+ width: z,
221723
221950
  bodyClasses: ["ge-table-text-align-center"],
221724
221951
  sortable: f
221725
221952
  }),
@@ -221734,7 +221961,7 @@ function Sr() {
221734
221961
  y.create({
221735
221962
  property: "quantity",
221736
221963
  headerLabel: "Qty",
221737
- width: D,
221964
+ width: I,
221738
221965
  bodyClasses: ["ge-table-text-align-right"],
221739
221966
  headerClasses: ["ge-table-text-align-right"],
221740
221967
  sortable: f
@@ -221743,7 +221970,7 @@ function Sr() {
221743
221970
  property: "progress",
221744
221971
  headerLabel: "Progress",
221745
221972
  width: G,
221746
- bodyRenderer: new Ve("progress", 5, !0),
221973
+ bodyRenderer: new Fe("progress", 5, !0),
221747
221974
  bodyClasses: ["ge-table-text-align-left"],
221748
221975
  sortable: f
221749
221976
  }),
@@ -221757,10 +221984,10 @@ function Sr() {
221757
221984
  })
221758
221985
  ];
221759
221986
  }
221760
- function Cr() {
221761
- const s = new W("row", "multi");
221987
+ function Pr() {
221988
+ const s = new q("row", "multi");
221762
221989
  return {
221763
- ...new w(),
221990
+ ...new Z(),
221764
221991
  hoverColumnVisible: !1,
221765
221992
  defaultRowHeights: {
221766
221993
  header: 24,
@@ -221770,9 +221997,9 @@ function Cr() {
221770
221997
  getSelectionModel: () => s
221771
221998
  };
221772
221999
  }
221773
- function Ir() {
221774
- const s = Cr(), e = hr(), r = Sr();
221775
- return new X(
222000
+ function qr() {
222001
+ const s = Pr(), e = Sr(), r = Cr();
222002
+ return new H(
221776
222003
  N.createTableModel({
221777
222004
  rows: e,
221778
222005
  columnDefs: r,
@@ -221782,7 +222009,74 @@ function Ir() {
221782
222009
  s
221783
222010
  );
221784
222011
  }
221785
- const Pr = [
222012
+ function Lr() {
222013
+ return [
222014
+ y.create({
222015
+ headerLabel: "ID",
222016
+ width: z,
222017
+ bodyClasses: ["ge-table-text-align-left"],
222018
+ headerClasses: ["ge-table-text-align-left"],
222019
+ sortable: U
222020
+ }),
222021
+ y.create({
222022
+ headerLabel: "Value",
222023
+ width: D,
222024
+ bodyClasses: ["ge-table-text-align-left"],
222025
+ headerClasses: ["ge-table-text-align-left"],
222026
+ sortable: U
222027
+ }),
222028
+ y.create({
222029
+ headerLabel: " ",
222030
+ width: D,
222031
+ bodyClasses: ["ge-table-text-align-right"],
222032
+ headerClasses: ["ge-table-text-align-right"]
222033
+ })
222034
+ ];
222035
+ }
222036
+ function Gr() {
222037
+ const s = new q();
222038
+ return {
222039
+ ...new Z(),
222040
+ hoverColumnVisible: !1,
222041
+ defaultRowHeights: {
222042
+ header: 34,
222043
+ body: 34,
222044
+ footer: 0
222045
+ },
222046
+ getSelectionModel: () => s
222047
+ };
222048
+ }
222049
+ function Hr(s = 1e6) {
222050
+ const e = Gr(), r = Lr(), a = new zr(s);
222051
+ return new H(N.createTableModel({
222052
+ bodyAreaModel: a,
222053
+ columnDefs: r,
222054
+ tableOptions: e,
222055
+ fixedLeftColumnCount: 0
222056
+ }), e);
222057
+ }
222058
+ class zr extends K {
222059
+ constructor(e = 1e6) {
222060
+ super(), this.rowcount = e, this.nf = new Intl.NumberFormat("en-Us", {}), this.barRenderer = new qe(e, !1);
222061
+ }
222062
+ getRowCount() {
222063
+ return this.rowcount;
222064
+ }
222065
+ getRowHeight(e) {
222066
+ return 34;
222067
+ }
222068
+ getValueAt(e, r) {
222069
+ return r === 0 ? "id" + e : r === 1 ? this.nf.format(e) : e;
222070
+ }
222071
+ getCellRenderer(e, r) {
222072
+ if (r == 2)
222073
+ return this.barRenderer;
222074
+ }
222075
+ getYPosByRowIndex(e) {
222076
+ return e * this.getRowHeight(0);
222077
+ }
222078
+ }
222079
+ const Zr = [
221786
222080
  {
221787
222081
  id: 0,
221788
222082
  preName: "Prename0",
@@ -383656,10 +383950,10 @@ const Pr = [
383656
383950
  friends: []
383657
383951
  }
383658
383952
  ];
383659
- function Lr(s = !1) {
383660
- const e = new W("range", "multi");
383953
+ function wr(s = !1) {
383954
+ const e = new q("range", "multi");
383661
383955
  return s && (e.addSelection(new T(0, 0, 0, 2)), e.addSelection(new T(2, 1, 2, 2)), e.addSelection(new T(1, 5, 6, 7)), e.addSelection(new T(0, 8, 0, 8)), e.addSelection(new T(5, 6, 10, 10))), {
383662
- ...new w(),
383956
+ ...new Z(),
383663
383957
  hoverColumnVisible: !1,
383664
383958
  defaultRowHeights: {
383665
383959
  header: 50,
@@ -383677,25 +383971,25 @@ function Lr(s = !1) {
383677
383971
  getSelectionModel: () => e
383678
383972
  };
383679
383973
  }
383680
- function Gr() {
383974
+ function xr() {
383681
383975
  return [
383682
383976
  new y("lastName", "Last Name", Le),
383683
- new y("preName", "Pre Name", Z),
383977
+ new y("preName", "Pre Name", z),
383684
383978
  y.create({
383685
383979
  property: "age",
383686
383980
  headerLabel: "Age",
383687
383981
  width: Ze,
383688
- bodyRenderer: new Oe(),
383982
+ bodyRenderer: new Ve(),
383689
383983
  editable: f,
383690
383984
  // editInputPipe: (value: any) => value ? Number(value) : ""
383691
- editInputPipe: Fe
383985
+ editInputPipe: $e
383692
383986
  }),
383693
383987
  new y(
383694
383988
  "birth",
383695
383989
  "Birthday",
383696
383990
  G,
383697
383991
  void 0,
383698
- Be.bodyRenderer(new K())
383992
+ Be.bodyRenderer(new Y())
383699
383993
  ),
383700
383994
  y.create({
383701
383995
  property: "gender",
@@ -383703,61 +383997,63 @@ function Gr() {
383703
383997
  width: xe,
383704
383998
  bodyRenderer: new le(),
383705
383999
  editable: f,
383706
- getEditRenderer: () => new Y([
383707
- new F("female", "♀"),
383708
- new F("male", "♂")
384000
+ getEditRenderer: () => new J([
384001
+ new W("female", "♀"),
384002
+ new W("male", "♂")
383709
384003
  ])
383710
384004
  }),
383711
- new y("address.street", "Strasse", de),
384005
+ new y("address.street", "Strasse", ye),
383712
384006
  new y("address.number", "Nr", we),
383713
- new y("address.zip", "Zip", D),
383714
- new y("address.city", "City", Z),
383715
- new y("address.country", "Country", Z),
383716
- new y("id", "ID", D)
384007
+ new y("address.zip", "Zip", I),
384008
+ new y("address.city", "City", z),
384009
+ new y("address.country", "Country", z),
384010
+ new y("id", "ID", I)
383717
384011
  ];
383718
384012
  }
383719
- function Mr(s = !1) {
383720
- const e = Lr(s), r = Gr();
384013
+ function Or(s = !1) {
384014
+ const e = wr(s), r = xr();
383721
384015
  for (const n of r)
383722
384016
  n.sortable = f, n.editable = f;
383723
- r[0].editable = E;
383724
- const a = A.buildTreeRows(Pr, "friends"), t = N.createTableModel({
384017
+ r[0].editable = U;
384018
+ const a = A.buildTreeRows(Zr, "friends"), t = N.createTableModel({
383725
384019
  rows: a,
383726
384020
  columnDefs: r,
383727
384021
  tableOptions: e,
383728
384022
  fixedLeftColumnCount: 1,
383729
384023
  fixedRightColumnCount: 1
383730
384024
  });
383731
- return new X(
384025
+ return new H(
383732
384026
  t,
383733
384027
  e
383734
384028
  );
383735
384029
  }
383736
384030
  export {
383737
- Ur as COL_IDX_UPDATED_AT,
383738
- We as ChangePercentageRenderer,
383739
- Ye as CirculatingSupplyRenderer,
383740
- Je as CoinIconRenderer,
383741
- Xe as NameAndSymbolRenderer,
383742
- je as UsdRenderer,
383743
- Ke as Volumn24hRenderer,
383744
- Ar as applyBodyRenderer,
383745
- lr as createColumnDefs,
383746
- zr as createCryptoModelAndOptions,
383747
- vr as createHeadergroupModel,
383748
- xr as createHeatMapModel,
383749
- kr as createHeatMapSeattleModel,
383750
- Ir as createOrderModelAndOptions,
383751
- Rr as createSimplePersonModel,
383752
- cr as createTableOptions,
383753
- pr as createTableRows,
383754
- Dr as createTimeTableModel,
383755
- Gr as createTreePeopleColumnDefs,
383756
- Mr as createTreePeopleModelAndOptions,
383757
- Lr as createTreePeopleTableOptions,
383758
- Qe as cryptoData,
383759
- gr as data,
383760
- Zr as generateSimpleModel,
383761
- wr as generateTreeCheckboxModel,
383762
- br as tableOptions
384031
+ Br as COL_IDX_UPDATED_AT,
384032
+ je as ChangePercentageRenderer,
384033
+ Je as CirculatingSupplyRenderer,
384034
+ Qe as CoinIconRenderer,
384035
+ zr as LargeBodyModel,
384036
+ Ke as NameAndSymbolRenderer,
384037
+ Xe as UsdRenderer,
384038
+ Ye as Volumn24hRenderer,
384039
+ Ir as applyBodyRenderer,
384040
+ cr as createColumnDefs,
384041
+ kr as createCryptoModelAndOptions,
384042
+ Dr as createHeadergroupModel,
384043
+ Ar as createHeatMapModel,
384044
+ Ur as createHeatMapSeattleModel,
384045
+ Hr as createLargeModelAndOptions,
384046
+ qr as createOrderModelAndOptions,
384047
+ Mr as createSimplePersonModel,
384048
+ gr as createTableOptions,
384049
+ lr as createTableRows,
384050
+ _r as createTimeTableModel,
384051
+ xr as createTreePeopleColumnDefs,
384052
+ Or as createTreePeopleModelAndOptions,
384053
+ wr as createTreePeopleTableOptions,
384054
+ er as cryptoData,
384055
+ br as data,
384056
+ vr as generateSimpleModel,
384057
+ Rr as generateTreeCheckboxModel,
384058
+ Nr as tableOptions
383763
384059
  };