@guiexpert/table 1.0.13 → 1.1.0

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,9 +1,18 @@
1
- class j {
2
- constructor(e = -1, t = -1, o = -1, i = -1, s, r, l, n = 0, d = 0, a = 0, h = "") {
3
- this.rowIndex = e, this.rowTop = t, this.columnIndex = o, this.columnLeft = i, this.areaIdent = s, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX = d, this.draggingY = a, this.action = h;
1
+ function O(h) {
2
+ return h && h.type === "TreeRow";
3
+ }
4
+ function N(h) {
5
+ return h && h.type === "AreaModelTree";
6
+ }
7
+ function be(h) {
8
+ return h && h.type === "CheckboxColumnDef";
9
+ }
10
+ class X {
11
+ constructor(e = -1, t = -1, o = -1, s = -1, i, r, l, n = 0, d = 0, a = 0, c = "") {
12
+ this.rowIndex = e, this.rowTop = t, this.columnIndex = o, this.columnLeft = s, this.areaIdent = i, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX = d, this.draggingY = a, this.action = c;
4
13
  }
5
14
  clone() {
6
- return new j(
15
+ return new X(
7
16
  this.rowIndex,
8
17
  this.rowTop,
9
18
  this.columnIndex,
@@ -18,38 +27,38 @@ class j {
18
27
  );
19
28
  }
20
29
  }
21
- class L {
30
+ class F {
22
31
  constructor(e = ">", t = "", o = []) {
23
32
  this.content = e, this.style = t, this.classes = o;
24
33
  }
25
34
  }
26
- class re {
27
- constructor(e = new L(
35
+ class ae {
36
+ constructor(e = new F(
28
37
  ">",
29
38
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
30
39
  ["gt-table-tree-arrow-expanded"]
31
- ), t = new L(
40
+ ), t = new F(
32
41
  ">",
33
42
  "",
34
43
  ["ge-table-tree-arrow-collapsed"]
35
- ), o = new L(
44
+ ), o = new F(
36
45
  ">",
37
46
  "color:transparent;",
38
47
  ["gt-table-tree-arrow-hidden"]
39
- ), i = new L(
48
+ ), s = new F(
40
49
  "↕",
41
50
  "",
42
51
  ["gt-table-tree-arrow-expanded-all"]
43
52
  )) {
44
- this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = o, this.arrowExpandCollapseAll = i;
53
+ this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = o, this.arrowExpandCollapseAll = s;
45
54
  }
46
55
  }
47
- class le {
48
- constructor(e = new L("↑", "", ["ge-header-sorted-asc"]), t = new L("↓", "", ["ge-header-sorted-desc"]), o = new L("↑", "color:transparent;", [])) {
56
+ class de {
57
+ constructor(e = new F("↑", "", ["ge-header-sorted-asc"]), t = new F("↓", "", ["ge-header-sorted-desc"]), o = new F("↑", "color:transparent;", [])) {
49
58
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = o;
50
59
  }
51
60
  }
52
- class he {
61
+ class pe {
53
62
  constructor(e) {
54
63
  this.domService = e;
55
64
  }
@@ -68,7 +77,7 @@ class he {
68
77
  return this.domService.setStyle(e, "display", "block"), e;
69
78
  }
70
79
  applyStyleInPx(e, t) {
71
- return Object.entries(t).forEach(([o, i]) => this.domService.setStyle(e, o, i + "px")), e;
80
+ return Object.entries(t).forEach(([o, s]) => this.domService.setStyle(e, o, s + "px")), e;
72
81
  }
73
82
  applyStylePosistionRelative(e) {
74
83
  return this.domService.setStyle(e, "position", "relative"), this.domService.setStyle(e, "overflow", "clip"), e;
@@ -102,6 +111,9 @@ class he {
102
111
  addClass(e, t) {
103
112
  return e.includes(" ") ? e.split(" ").forEach((o) => this.domService.addClass(t, o)) : this.domService.addClass(t, e), t;
104
113
  }
114
+ removeClass(e, t) {
115
+ return e.includes(" ") ? e.split(" ").forEach((o) => this.domService.removeClass(t, o)) : this.domService.removeClass(t, e), t;
116
+ }
105
117
  addClasses(e, t) {
106
118
  if (e)
107
119
  for (const o of e)
@@ -111,50 +123,50 @@ class he {
111
123
  setAttribute(e, t, o) {
112
124
  return t && o && this.domService.setAttribute(e, t, o), e;
113
125
  }
114
- createAreaDivWithClass(e, t, o, i) {
115
- const s = this.domService.createElement("div");
116
- return this.addClass(e, s), this.domService.setAttribute(s, "data-area", o), this.domService.setAttribute(s, "data-side", i), this.domService.appendChild(t, s), s;
126
+ createAreaDivWithClass(e, t, o, s) {
127
+ const i = this.domService.createElement("div");
128
+ return this.addClass(e, i), this.domService.setAttribute(i, "data-area", o), this.domService.setAttribute(i, "data-side", s), this.domService.appendChild(t, i), i;
117
129
  }
118
130
  createDivWithClass(e, t) {
119
131
  const o = this.domService.createElement("div");
120
132
  return this.addClass(e, o), this.domService.appendChild(t, o), o;
121
133
  }
122
- addRowDiv(e, t, o = -1, i, s, r = "") {
134
+ addRowDiv(e, t, o = -1, s, i, r = "") {
123
135
  const l = t.index ?? -1, n = this.getDivOrCreateDiv(l, e);
124
- if (this.domService.addClass(n, "ge-table-row-div"), this.domService.addClass(n, `ge-table-row-div-${t.index}`), i === "body" && s === "center") {
136
+ if (this.domService.addClass(n, "ge-table-row-div"), this.domService.addClass(n, `ge-table-row-div-${t.index}`), s === "body" && i === "center") {
125
137
  const d = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
126
138
  this.domService.addClass(n, `ge-table-row-${d}`);
127
139
  }
128
- if (this.domService.setStyle(n, "display", "clip"), this.domService.setStyle(n, "position", "absolute"), this.domService.setStyle(n, "left", `${t.left}px`), this.domService.setStyle(n, "top", `${t.top}px`), this.domService.setStyle(n, "width", `${t.width}px`), this.domService.setStyle(n, "height", `${t.height}px`), this.domService.setAttribute(n, "data-row-index", `${o}`), this.domService.setAttribute(n, "data-area", `${i}`), r) {
140
+ if (this.domService.setStyle(n, "display", "clip"), this.domService.setStyle(n, "position", "absolute"), this.domService.setStyle(n, "left", `${t.left}px`), this.domService.setStyle(n, "top", `${t.top}px`), this.domService.setStyle(n, "width", `${t.width}px`), this.domService.setStyle(n, "height", `${t.height}px`), this.domService.setAttribute(n, "data-row-index", `${o}`), this.domService.setAttribute(n, "data-area", `${s}`), r) {
129
141
  const d = this.domService.createText(r);
130
142
  this.domService.appendChild(n, d);
131
143
  }
132
144
  return this.domService.appendChild(e.child, n), n;
133
145
  }
134
- addColumnDiv(e, t, o = -1, i = -1, s, r, l = "", n, d, a = void 0, h) {
135
- const g = d == null ? void 0 : d.treeOptions, m = d == null ? void 0 : d.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
136
- this.domService.addClass(b, "ge-table-col-div"), this.domService.addClass(b, `ge-table-col-div-${t.index}`), this.domService.setAttribute(b, "data-col-index", `${t.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${s}`);
146
+ addColumnDiv(e, t, o = -1, s = -1, i, r, l = "", n, d, a = void 0, c) {
147
+ const u = d == null ? void 0 : d.treeOptions, m = d == null ? void 0 : d.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
148
+ this.domService.addClass(b, "ge-table-col-div"), this.domService.addClass(b, `ge-table-col-div-${t.index}`), this.domService.setAttribute(b, "data-col-index", `${t.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${i}`);
137
149
  const w = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
138
- if (s === "body" && r === "center" && this.domService.addClass(b, `ge-table-column-${w}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${t.left}px`), this.domService.setStyle(b, "top", `${t.top}px`), this.domService.setStyle(b, "width", `${t.width}px`), this.domService.setStyle(b, "height", `${t.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, g, o, i, s)), m && i === 0 && a && this.addCheckboxToDiv(b, a, s, o), l) {
139
- const u = n !== "none" && i === 0;
140
- this.addLabelDiv(b, l, u, o, i, s);
150
+ if (i === "body" && r === "center" && this.domService.addClass(b, `ge-table-column-${w}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${t.left}px`), this.domService.setStyle(b, "top", `${t.top}px`), this.domService.setStyle(b, "width", `${t.width}px`), this.domService.setStyle(b, "height", `${t.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, u, o, s, i)), m && s === 0 && a && this.addCheckboxToDiv(b, a, i, o), l) {
151
+ const g = n !== "none" && s === 0;
152
+ this.addLabelDiv(b, l, g, o, s, i);
141
153
  }
142
- return h && this.addSortedIcon(b, h, d == null ? void 0 : d.sortedOptions, i), this.domService.appendChild(e, b), b;
154
+ return c && this.addSortedIcon(b, c, d == null ? void 0 : d.sortedOptions, s), this.domService.appendChild(e, b), b;
143
155
  }
144
- addCheckboxToDiv(e, t, o, i) {
145
- const s = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
146
- return s.innerHTML = `
156
+ addCheckboxToDiv(e, t, o, s) {
157
+ const i = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
158
+ return i.innerHTML = `
147
159
  <input
148
160
  type="checkbox"
149
161
  data-area="${o}"
150
- data-row-index="${i}"
162
+ data-row-index="${s}"
151
163
  data-input-type="checkbox"
152
164
  ${r}
153
- class="ge-table-row-checkbox"> `, this.domService.setStyle(s, "display", "inline"), this.domService.setStyle(s, "width", "inherit"), this.domService.setAttribute(s, "data-row-index", `${i}`), this.domService.appendChild(e, s), s;
165
+ class="ge-table-row-checkbox"> `, this.domService.setStyle(i, "display", "inline"), this.domService.setStyle(i, "width", "inherit"), this.domService.setAttribute(i, "data-row-index", `${s}`), this.domService.appendChild(e, i), i;
154
166
  }
155
- addLabelDiv(e, t = "", o = !1, i = -1, s = -1, r = "body") {
167
+ addLabelDiv(e, t = "", o = !1, s = -1, i = -1, r = "body") {
156
168
  const l = this.domService.createElement("div");
157
- if (this.domService.addClass(l, "ge-table-label-div"), this.domService.setStyle(l, "position", "relative"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "width", "100%"), this.domService.setStyle(l, "height", "100%"), this.domService.setAttribute(l, "data-row-index", `${i}`), this.domService.setAttribute(l, "data-col-index", `${s}`), this.domService.setAttribute(l, "data-area", `${r}`), t)
169
+ if (this.domService.addClass(l, "ge-table-label-div"), this.domService.setStyle(l, "position", "relative"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "width", "100%"), this.domService.setStyle(l, "height", "100%"), this.domService.setAttribute(l, "data-row-index", `${s}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`), t)
158
170
  if (o) {
159
171
  const n = this.domService.createText(t);
160
172
  this.domService.appendChild(l, n);
@@ -162,64 +174,64 @@ class he {
162
174
  const n = this.domService.createElement("div");
163
175
  this.domService.appendChild(l, n);
164
176
  const d = this.domService.createText(t);
165
- this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n, d), this.domService.setAttribute(n, "data-row-index", `${i}`), this.domService.setAttribute(n, "data-col-index", `${s}`), this.domService.setAttribute(n, "data-area", `${r}`);
177
+ this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n, d), this.domService.setAttribute(n, "data-row-index", `${s}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`);
166
178
  }
167
179
  return this.domService.appendChild(e, l), l;
168
180
  }
169
- addSortedIcon(e, t = "", o = new le(), i = -1) {
170
- const s = this.domService.createElement("div");
171
- this.domService.addClass(s, "ge-table-sorted-icon-div"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "top", "0"), this.domService.setStyle(s, "right", "0"), this.domService.setStyle(s, "width", "20px"), this.domService.setStyle(s, "background", "transparent"), this.domService.setStyle(s, "cursor", "pointer"), this.domService.setAttribute(s, "data-col-index", `${i}`), this.domService.setAttribute(s, "data-area", "header");
181
+ addSortedIcon(e, t = "", o = new de(), s = -1) {
182
+ const i = this.domService.createElement("div");
183
+ this.domService.addClass(i, "ge-table-sorted-icon-div"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "top", "0"), this.domService.setStyle(i, "right", "0"), this.domService.setStyle(i, "width", "20px"), this.domService.setStyle(i, "background", "transparent"), this.domService.setStyle(i, "cursor", "pointer"), this.domService.setAttribute(i, "data-col-index", `${s}`), this.domService.setAttribute(i, "data-area", "header");
172
184
  let r;
173
185
  t === "asc" ? r = o.iconAsc : t === "desc" ? r = o.iconDesc : r = o.iconPlaceholder;
174
186
  const l = r.content, n = this.domService.createText(l);
175
- this.domService.appendChild(s, n), r.style && this.applyStyleString(s, r.style);
187
+ this.domService.appendChild(i, n), r.style && this.applyStyleString(i, r.style);
176
188
  for (const d of r.classes)
177
- this.domService.addClass(s, d);
178
- return this.domService.appendChild(e, s), s;
189
+ this.domService.addClass(i, d);
190
+ return this.domService.appendChild(e, i), i;
179
191
  }
180
- addArrowDiv(e, t = "none", o = new re(), i = -1, s = -1, r = "body") {
192
+ addArrowDiv(e, t = "none", o = new ae(), s = -1, i = -1, r = "body") {
181
193
  const l = this.domService.createElement("div");
182
- this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${i}`), this.domService.setAttribute(l, "data-col-index", `${s}`), this.domService.setAttribute(l, "data-area", `${r}`);
194
+ this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${s}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
183
195
  let n;
184
196
  t === "expanded" ? n = o.arrowExpanded : t === "collapsed" ? n = o.arrowCollapsed : n = o.arrowPlaceholder;
185
197
  const d = n.content, a = this.domService.createText(d);
186
198
  this.domService.appendChild(l, a), n.style && this.applyStyleString(l, n.style);
187
- for (const h of n.classes)
188
- this.domService.addClass(l, h);
199
+ for (const c of n.classes)
200
+ this.domService.addClass(l, c);
189
201
  return this.domService.appendChild(e, l), l;
190
202
  }
191
- addColumnBorderDivs(e, t, o, i, s) {
203
+ addColumnBorderDivs(e, t, o, s, i) {
192
204
  if (e.verticalBorderVisible) {
193
- const r = `ge-table-${i}-${s}-vertical-border`;
205
+ const r = `ge-table-${s}-${i}-vertical-border`;
194
206
  this.addVerticalBorder(o, t, r);
195
207
  }
196
208
  if (e.horizontalBorderVisible) {
197
- const r = `ge-table-${i}-${s}-horizontal-border`;
209
+ const r = `ge-table-${s}-${i}-horizontal-border`;
198
210
  this.addHorizontalBorder(o, t, r);
199
211
  }
200
212
  return t;
201
213
  }
202
214
  addHorizontalBorder(e, t, o = "ge-table-body-center-horizontal-border") {
203
- const i = this.domService.createElement("div");
204
- return this.domService.addClass(i, o), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${e.left}px`), this.domService.setStyle(i, "top", `${e.top}px`), this.domService.setStyle(i, "width", `${e.width}px`), this.domService.setStyle(i, "height", "1px"), this.domService.appendChild(t, i), i;
215
+ const s = this.domService.createElement("div");
216
+ return this.domService.addClass(s, o), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${e.left}px`), this.domService.setStyle(s, "top", `${e.top}px`), this.domService.setStyle(s, "width", `${e.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.appendChild(t, s), s;
205
217
  }
206
218
  addFocusBorderDivs(e, t, o) {
207
- let i = this.domService.createElement("div");
208
- return this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", "1px"), this.domService.setStyle(i, "height", `${t.height}px`), this.applyStyle(i, o), this.domService.appendChild(e, i), i = this.domService.createElement("div"), this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", "1px"), this.domService.setStyle(i, "height", `${t.height}px`), this.applyStyle(i, o), this.domService.appendChild(e, i), i = this.domService.createElement("div"), this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", `${t.width}px`), this.domService.setStyle(i, "height", "1px"), this.applyStyle(i, o), this.domService.appendChild(e, i), i = this.domService.createElement("div"), this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(i, "width", `${t.width}px`), this.domService.setStyle(i, "height", "1px"), this.applyStyle(i, o), this.domService.appendChild(e, i), e;
219
+ let s = this.domService.createElement("div");
220
+ return this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.applyStyle(s, o), this.domService.appendChild(e, s), e;
209
221
  }
210
222
  addVerticalBorder(e, t, o = "ge-table-body-center-vertical-border") {
211
- const i = this.domService.createElement("div");
212
- return this.domService.addClass(i, o), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${e.left}px`), this.domService.setStyle(i, "top", `${e.top}px`), this.domService.setStyle(i, "width", "1px"), this.domService.setStyle(i, "height", `${e.height}px`), this.domService.appendChild(t, i), i;
223
+ const s = this.domService.createElement("div");
224
+ return this.domService.addClass(s, o), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${e.left}px`), this.domService.setStyle(s, "top", `${e.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${e.height}px`), this.domService.appendChild(t, s), s;
213
225
  }
214
226
  addDiv(e, t, o = "") {
215
- const i = this.domService.createElement("div");
216
- return o && this.domService.addClass(i, o), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", `${t.width}px`), this.domService.setStyle(i, "height", `${t.height}px`), this.domService.appendChild(e, i), i;
227
+ const s = this.domService.createElement("div");
228
+ return o && this.domService.addClass(s, o), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", `${t.height}px`), this.domService.appendChild(e, s), s;
217
229
  }
218
230
  applyStyleString(e, t) {
219
- const o = t.split(";").map((i) => i.trim()).filter((i) => i);
220
- for (const i of o) {
221
- const [s, r] = i.split(":");
222
- this.domService.setStyle(e, s.trim(), r.trim());
231
+ const o = t.split(";").map((s) => s.trim()).filter((s) => s);
232
+ for (const s of o) {
233
+ const [i, r] = s.split(":");
234
+ this.domService.setStyle(e, i.trim(), r.trim());
223
235
  }
224
236
  }
225
237
  getDivOrCreateDiv(e, t) {
@@ -227,25 +239,20 @@ class he {
227
239
  return o ? (o.innerText = "", o) : (o = this.domService.createElement("div"), t.cache[e] = o, o);
228
240
  }
229
241
  }
230
- class F {
231
- constructor(e, t = !0, o, i, s = 0, r = !1, l = !1) {
232
- this.data = e, this.expanded = t, this.children = o, this.parent = i, this.deep = s, this.checked = r, this.keep = l;
233
- }
234
- }
235
- const X = (c) => c === "header" ? "header" : c === "footer" ? "footer" : "body";
236
- class ce {
242
+ const Y = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
243
+ class fe {
237
244
  constructor(e, t) {
238
245
  if (this.rowIdx = -1, this.colIdx = -1, this.action = null, this.inputType = null, this.className = "", e !== null && (e instanceof HTMLDivElement || e instanceof HTMLSpanElement || e instanceof HTMLInputElement)) {
239
246
  this.className = e.className, this.action = e.getAttribute("data-ge-action"), this.inputType = e.getAttribute("data-input-type"), this.rowIdx = Number(e.getAttribute("data-row-index")), this.colIdx = Number(e.getAttribute("data-col-index"));
240
247
  const o = e.getAttribute("data-area");
241
- if (o && (this.areaIdent = X(o), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
242
- const i = e;
243
- this.value = i.value;
248
+ if (o && (this.areaIdent = Y(o), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
249
+ const s = e;
250
+ this.value = s.value;
244
251
  }
245
252
  }
246
253
  }
247
254
  }
248
- class ue {
255
+ class me {
249
256
  constructor(e) {
250
257
  this.tableScope = e, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
251
258
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -257,17 +264,17 @@ class ue {
257
264
  this.tableScope.contextmenu(t);
258
265
  }
259
266
  onHostElementClicked(e) {
260
- const t = new ce(e.target, this.tableScope);
267
+ const t = new fe(e.target, this.tableScope);
261
268
  if (t.action === "toggleExpandCollapseAll")
262
269
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
263
270
  else if (t.inputType === "checkbox" && t.areaIdent)
264
271
  this.tableScope.toggleRowCheckbox(t.rowIdx, t.colIdx, t.areaIdent), e.preventDefault(), e.stopPropagation();
265
- else if (t.row instanceof F && t.areaModel) {
266
- const o = t.colIdx === this.getArrowColumnIndex() && e.altKey, i = t.className.includes("ge-table-tree-arrow-div");
267
- if (console.info(i, o), o || i) {
272
+ else if (O(t.row) && t.areaModel) {
273
+ const o = t.colIdx === this.getArrowColumnIndex() && e.altKey, s = t.className.includes("ge-table-tree-arrow-div");
274
+ if (console.info(s, o), o || s) {
268
275
  e.preventDefault(), e.stopPropagation();
269
- const s = t.row;
270
- s.expanded = !s.expanded, "recalcVisibleTreeRows" in t.areaModel && t.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(s);
276
+ const i = t.row;
277
+ i.expanded = !i.expanded, "recalcVisibleTreeRows" in t.areaModel && t.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(i);
271
278
  }
272
279
  }
273
280
  if (t.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
@@ -278,12 +285,12 @@ class ue {
278
285
  }
279
286
  onHostElementDblClicked(e) {
280
287
  if (e.target instanceof HTMLElement) {
281
- const t = e.target, o = t.getAttribute("data-area"), i = X(o), s = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(i);
282
- if (o && i === "header")
283
- this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, s, r));
288
+ const t = e.target, o = t.getAttribute("data-area"), s = Y(o), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(s);
289
+ if (o && s === "header")
290
+ this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
284
291
  else if (t.getAttribute("data-row-index")) {
285
- const n = l.getRowByIndex(s);
286
- if (o && i === "body" && l.isEditable(s, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(s, r)), n instanceof F && r === this.getArrowColumnIndex()) {
292
+ const n = l.getRowByIndex(i);
293
+ if (o && s === "body" && l.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), O(n) && r === this.getArrowColumnIndex()) {
287
294
  e.preventDefault(), e.stopPropagation();
288
295
  const d = n;
289
296
  d.expanded = !d.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(d);
@@ -297,11 +304,11 @@ class ue {
297
304
  this.mouseEvent = e, this.geMouseEventOld = (o = this.geMouseEvent) == null ? void 0 : o.clone(), this.geMouseEvent = this.tableScope.createGeMouseEvent(e), this.geMouseEvent && (this.geMouseEvent.clickCount = t), this.tableScope.onMouseClicked(this.geMouseEvent, this.geMouseEventOld);
298
305
  }
299
306
  updateCollapsedExpandedState(e) {
300
- var o, i, s, r, l;
301
- const t = (i = (o = this.tableScope.tableOptions) == null ? void 0 : o.autoRestoreOptions) == null ? void 0 : i.getRowId;
307
+ var o, s, i, r, l;
308
+ const t = (s = (o = this.tableScope.tableOptions) == null ? void 0 : o.autoRestoreOptions) == null ? void 0 : s.getRowId;
302
309
  if (t) {
303
- const n = (s = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : s.collapsedExpandedStateGet().mode, d = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, a = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded, h = t(e.data);
304
- d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : a && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(h));
310
+ const n = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, d = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, a = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded, c = t(e.data);
311
+ d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(c) : a && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(c));
305
312
  }
306
313
  }
307
314
  getArrowColumnIndex() {
@@ -337,12 +344,12 @@ class ue {
337
344
  }
338
345
  }
339
346
  }
340
- class ge {
347
+ class we {
341
348
  constructor(e) {
342
349
  this.tableScope = e;
343
350
  }
344
- updateCells(e) {
345
- this.tableScope.updateCells(e);
351
+ updateCells(e, t = !1) {
352
+ this.tableScope.updateCells(e, t);
346
353
  }
347
354
  externalFilterChanged() {
348
355
  this.tableScope.externalFilterChanged();
@@ -370,230 +377,6 @@ class ge {
370
377
  this.tableScope.repaint();
371
378
  }
372
379
  }
373
- class be {
374
- flattenTree(e, t = []) {
375
- var o;
376
- for (const i of e)
377
- this.isVisible(i) && t.push(i), (o = i.children) != null && o.length && this.flattenTree(i.children, t);
378
- return t;
379
- }
380
- isVisible(e) {
381
- return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
382
- }
383
- }
384
- class Y {
385
- constructor(e, t = [], o = -1) {
386
- this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = o, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((i) => i.rendererMap[e]);
387
- }
388
- getTooltipAt(e, t) {
389
- return "";
390
- }
391
- getCellRenderer(e, t) {
392
- if (t < this.cellRenderers.length)
393
- return this.cellRenderers[t];
394
- }
395
- getColspanAt(e, t) {
396
- return 0;
397
- }
398
- getCustomClassesAt(e, t) {
399
- return [];
400
- }
401
- getCustomStyleAt(e, t) {
402
- }
403
- getRowspanAt(e, t) {
404
- return 0;
405
- }
406
- getRowByIndex(e) {
407
- }
408
- isRowCheckable(e) {
409
- return !0;
410
- }
411
- isRowChecked(e) {
412
- var o;
413
- const t = this.getRowByIndex(e);
414
- return (o = this.rowSelectionModel) == null ? void 0 : o.isRowChecked(t);
415
- }
416
- setRowChecked(e, t) {
417
- if (this.rowSelectionModel) {
418
- const o = this.getRowByIndex(e);
419
- this.rowSelectionModel.checkRow(o, t);
420
- }
421
- }
422
- getMaxColspan() {
423
- return 31;
424
- }
425
- getMaxRowspan() {
426
- return 31;
427
- }
428
- getYPosByRowIndex(e) {
429
- return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
430
- }
431
- init() {
432
- !this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
433
- }
434
- isFilterable() {
435
- return this.areaIdent === "body";
436
- }
437
- doSort(e) {
438
- return !1;
439
- }
440
- isEditable(e, t) {
441
- return this.columnDefs && t < this.columnDefs.length && this.columnDefs[t].editable ? this.columnDefs[t].editable() : !1;
442
- }
443
- setValue(e, t, o) {
444
- var l;
445
- const i = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
446
- i && (o = i(o, e, t));
447
- const s = this.getRowByIndex(e), r = this.columnDefs[t].property;
448
- return r.includes(".") ? this.setPropertyValue(s, r.split("."), o) : (s[r] = o, !0);
449
- }
450
- isSelectable(e, t) {
451
- return !0;
452
- }
453
- changeColumnOrder(e, t) {
454
- this.arrayMove(this.cellRenderers, e, t);
455
- }
456
- setPropertyValue(e, t, o) {
457
- const i = t.shift();
458
- if (i) {
459
- let s = e[i];
460
- return s && t.length ? this.setPropertyValue(s, t, o) : (e[i] = o, !0);
461
- }
462
- return !1;
463
- }
464
- arrayMove(e, t, o) {
465
- const i = e.splice(t, 1)[0];
466
- return e.splice(o, 0, i), e;
467
- }
468
- calcYPositions() {
469
- const e = this.getRowCount();
470
- this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
471
- for (let t = 0; t < e; t++)
472
- this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
473
- }
474
- }
475
- class ne {
476
- genericSortComparator(e, t, o) {
477
- if (typeof e == "number" && typeof t == "number")
478
- return o * (e - t);
479
- if (typeof e == "string" && typeof t == "string")
480
- return o * e.localeCompare(t);
481
- if (typeof e == "boolean" && typeof t == "boolean")
482
- return o * ((e ? -1 : 1) - (t ? -1 : 1));
483
- if (e instanceof Date && t instanceof Date)
484
- return o * (e.getTime() - t.getTime());
485
- if (e instanceof Array && t instanceof Array) {
486
- const i = e, s = t;
487
- if (i.length && s.length)
488
- return this.genericSortComparator(i[0], s[0], o);
489
- }
490
- return o * ("" + e).localeCompare("" + t);
491
- }
492
- }
493
- class H extends Y {
494
- constructor(e, t, o, i = []) {
495
- super(e, i, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = i, this.sorterService = new ne(), this.service = new be(), this.properties = i.map((s) => s.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
496
- }
497
- changeColumnOrder(e, t) {
498
- this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
499
- }
500
- recalcVisibleTreeRows() {
501
- this.filteredFlattenRows = this.service.flattenTree(this.rows);
502
- }
503
- getFilteredFlattenRows() {
504
- return this.filteredFlattenRows;
505
- }
506
- getRowCount() {
507
- let e = 0;
508
- for (const t of this.filteredFlattenRows)
509
- this.service.isVisible(t) && e++;
510
- return e;
511
- }
512
- getValueAt(e, t) {
513
- const o = this.getRowByIndex(e);
514
- if (o) {
515
- const i = this.properties[t];
516
- if (i)
517
- return i.includes(".") ? this.getPropertyValue(o.data, i.split(".")) : o.data[i];
518
- }
519
- return "";
520
- }
521
- getRowHeight(e) {
522
- return this.defaultRowHeight;
523
- }
524
- getCustomClassesAt(e, t) {
525
- return ["ge-table-tree-cell", "ge-table-tree-deep-" + this.filteredFlattenRows[e].deep];
526
- }
527
- getRowByIndex(e) {
528
- return this.filteredFlattenRows[e];
529
- }
530
- getValueByT(e, t) {
531
- return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
532
- }
533
- externalFilterChanged(e) {
534
- this.lastPredictFn = e, this.doFiltering();
535
- }
536
- doSort(e) {
537
- const { columnIndex: t, sortState: o } = e[e.length - 1], i = o === "asc" ? 1 : o === "desc" ? -1 : 0, s = this.properties[t];
538
- return this.treeSort(this.rows, s, i), this.flattenRows = this.service.flattenTree(this.rows), this.filteredFlattenRows = [...this.flattenRows], !0;
539
- }
540
- toggleExpandCollapseAll(e) {
541
- this.expandAllRecursive(this.rows, e), this.flattenRows = this.service.flattenTree(this.rows), this.doFiltering();
542
- }
543
- setAllParentsOk(e) {
544
- return e.parent && (e.parent.keep = !0, this.setAllParentsOk(e.parent)), !1;
545
- }
546
- setValue(e, t, o) {
547
- var r;
548
- const i = (r = this.columnDefs[t]) == null ? void 0 : r.editInputPipe;
549
- i && (o = i(o, e, t));
550
- const s = this.getRowByIndex(e);
551
- if (s) {
552
- const l = s.data, n = this.columnDefs[t].property;
553
- return n.includes(".") ? this.setPropertyValue(l, n.split("."), o) : (l[n] = o, !0);
554
- }
555
- return !1;
556
- }
557
- genericTreeTableSortComparator(e, t) {
558
- return (o, i) => {
559
- const s = this.getValueByT(o.data, e), r = this.getValueByT(i.data, e);
560
- return this.sorterService.genericSortComparator(s, r, t);
561
- };
562
- }
563
- expandAllRecursive(e, t) {
564
- for (const o of e)
565
- o.expanded = t, o.children && this.expandAllRecursive(o.children, t);
566
- }
567
- doFiltering() {
568
- if (!this.lastPredictFn)
569
- this.filteredFlattenRows = [...this.flattenRows ? this.flattenRows : []];
570
- else {
571
- this.flattenRows || (this.flattenRows = []);
572
- let e = 0;
573
- this.flattenRows.forEach((o) => {
574
- e = Math.max(e, o.deep);
575
- });
576
- const t = this.flattenRows.filter(
577
- (o, i, s) => this.lastPredictFn(o, i, s)
578
- );
579
- this.flattenRows.forEach((o) => o.keep = !1), this.flattenRows.forEach((o) => {
580
- t.includes(o) && (o.keep = !0, this.setAllParentsOk(o));
581
- }), this.filteredFlattenRows = this.flattenRows.filter(
582
- (o, i, s) => o.keep
583
- );
584
- }
585
- }
586
- getPropertyValue(e, t) {
587
- const o = t.shift();
588
- let i = e[o];
589
- return i && t.length ? this.getPropertyValue(i, t) : i;
590
- }
591
- treeSort(e, t, o) {
592
- e.sort(this.genericTreeTableSortComparator(t, o));
593
- for (const i of e)
594
- i.children && this.treeSort(i.children, t, o);
595
- }
596
- }
597
380
  class K {
598
381
  constructor(e) {
599
382
  this.getStorageKeyFn = e;
@@ -602,12 +385,12 @@ class K {
602
385
  const t = {};
603
386
  if (e instanceof Map) {
604
387
  const o = e;
605
- for (const i of [...o]) {
388
+ for (const s of [...o]) {
606
389
  const [
607
- s,
390
+ i,
608
391
  r
609
- ] = i;
610
- t[s] = r;
392
+ ] = s;
393
+ t[i] = r;
611
394
  }
612
395
  }
613
396
  return t;
@@ -615,14 +398,14 @@ class K {
615
398
  checkAndPersistItem(e, t) {
616
399
  const o = this.getStorageKeyFn;
617
400
  if (o) {
618
- const i = o();
619
- if (i) {
620
- const s = i + e;
401
+ const s = o();
402
+ if (s) {
403
+ const i = s + e;
621
404
  if ((t + "").includes("Map")) {
622
405
  const r = this.autoConvertMapToObject(t);
623
- this.persistItem(s, r);
406
+ this.persistItem(i, r);
624
407
  } else
625
- this.persistItem(s, t);
408
+ this.persistItem(i, t);
626
409
  }
627
410
  }
628
411
  }
@@ -669,7 +452,7 @@ class K {
669
452
  // }
670
453
  // }
671
454
  }
672
- class pe extends K {
455
+ class Se extends K {
673
456
  constructor(e) {
674
457
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
675
458
  }
@@ -685,20 +468,20 @@ class pe extends K {
685
468
  const t = e();
686
469
  if (t) {
687
470
  const o = t + this.SCROLL_STATE;
688
- let i = this.loadFromLocalStorage(o);
689
- this.scrollOffset = i || [0, 0];
471
+ let s = this.loadFromLocalStorage(o);
472
+ this.scrollOffset = s || [0, 0];
690
473
  }
691
474
  }
692
475
  }
693
476
  }
694
- class fe {
695
- constructor(e = "collapsed", t = [], o = !1, i = !1) {
696
- this.mode = e, this.rowIds = t, this.allCollapsed = o, this.allExpanded = i;
477
+ class xe {
478
+ constructor(e = "collapsed", t = [], o = !1, s = !1) {
479
+ this.mode = e, this.rowIds = t, this.allCollapsed = o, this.allExpanded = s;
697
480
  }
698
481
  }
699
- class me extends K {
482
+ class ye extends K {
700
483
  constructor(e) {
701
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new fe(), this.load();
484
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new xe(), this.load();
702
485
  }
703
486
  collapsedExpandedStateGet() {
704
487
  return this.collapsedExpandedState;
@@ -721,8 +504,8 @@ class me extends K {
721
504
  if (e) {
722
505
  const t = e();
723
506
  if (t) {
724
- const o = t + this.COLLAPSED_EXPANDED_STATE, i = this.loadFromLocalStorage(o);
725
- i && (this.collapsedExpandedState = i);
507
+ const o = t + this.COLLAPSED_EXPANDED_STATE, s = this.loadFromLocalStorage(o);
508
+ s && (this.collapsedExpandedState = s);
726
509
  }
727
510
  }
728
511
  }
@@ -730,7 +513,7 @@ class me extends K {
730
513
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
731
514
  }
732
515
  }
733
- class we extends K {
516
+ class Ce extends K {
734
517
  constructor(e) {
735
518
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
736
519
  }
@@ -746,67 +529,67 @@ class we extends K {
746
529
  const t = e();
747
530
  if (t) {
748
531
  const o = t + this.SORTING_STATE;
749
- let i = this.loadFromLocalStorage(o);
750
- this.sortItems = i || [];
532
+ let s = this.loadFromLocalStorage(o);
533
+ this.sortItems = s || [];
751
534
  }
752
535
  }
753
536
  }
754
537
  }
755
538
  class $ {
756
- constructor(e = 0, t = 0, o = 0, i = 0, s) {
757
- this.left = e, this.width = t, this.height = o, this.top = i, this.index = s;
539
+ constructor(e = 0, t = 0, o = 0, s = 0, i) {
540
+ this.left = e, this.width = t, this.height = o, this.top = s, this.index = i;
758
541
  }
759
542
  }
760
- class Se {
761
- constructor(e, t, o, i) {
762
- this.hostElement = e, this.tableModel = t, this.dom = o, this.tableOptions = i, this.scrollTop = 0, this.areaBodyWestGeo = new $(), this.areaBodyCenterGeo = new $(), this.areaBodyEastGeo = new $();
763
- const s = this.hostElement;
764
- s.innerText = "", this.dom.setAttribute(s, "tabindex", "0"), this.dom.setStyle(
765
- this.dom.addClass("ge-table", s),
543
+ class ve {
544
+ constructor(e, t, o, s) {
545
+ this.hostElement = e, this.tableModel = t, this.dom = o, this.tableOptions = s, this.scrollTop = 0, this.areaBodyWestGeo = new $(), this.areaBodyCenterGeo = new $(), this.areaBodyEastGeo = new $();
546
+ const i = this.hostElement;
547
+ i.innerText = "", this.dom.setAttribute(i, "tabindex", "0"), this.dom.setStyle(
548
+ this.dom.addClass("ge-table", i),
766
549
  "position",
767
550
  "relative"
768
551
  ), this.hoverRow = o.applyStylePosistionAbsolute(
769
- o.createDivWithClass("ge-table-hover-row", s)
552
+ o.createDivWithClass("ge-table-hover-row", i)
770
553
  ), this.hoverColumn = o.applyStylePosistionAbsolute(
771
- o.createDivWithClass("ge-table-hover-column", s)
554
+ o.createDivWithClass("ge-table-hover-column", i)
772
555
  ), this.areaHeaderWest = o.appendRelativeChildDiv(
773
556
  o.applyStylePosistionAbsolute(
774
- o.createAreaDivWithClass("ge-table-header ge-table-header-west", s, "header", "west")
557
+ o.createAreaDivWithClass("ge-table-header ge-table-header-west", i, "header", "west")
775
558
  )
776
559
  ), this.areaHeaderCenter = o.appendRelativeChildDiv(
777
560
  o.applyStylePosistionAbsolute(
778
- o.createAreaDivWithClass("ge-table-header ge-table-header-center", s, "header", "center")
561
+ o.createAreaDivWithClass("ge-table-header ge-table-header-center", i, "header", "center")
779
562
  )
780
563
  ), this.areaHeaderEast = o.appendRelativeChildDiv(
781
564
  o.applyStylePosistionAbsolute(
782
- o.createAreaDivWithClass("ge-table-header ge-table-header-east", s, "body", "east")
565
+ o.createAreaDivWithClass("ge-table-header ge-table-header-east", i, "body", "east")
783
566
  )
784
567
  ), this.areaBodyWest = o.appendRelativeChildDiv(
785
568
  o.applyStylePosistionAbsolute(
786
- o.createAreaDivWithClass("ge-table-body ge-table-body-west", s, "body", "west")
569
+ o.createAreaDivWithClass("ge-table-body ge-table-body-west", i, "body", "west")
787
570
  )
788
571
  ), this.areaBodyEast = o.appendRelativeChildDiv(
789
572
  o.applyStylePosistionAbsolute(
790
- o.createAreaDivWithClass("ge-table-body ge-table-body-east", s, "body", "east")
573
+ o.createAreaDivWithClass("ge-table-body ge-table-body-east", i, "body", "east")
791
574
  )
792
575
  ), this.areaFooterWest = o.appendRelativeChildDiv(
793
576
  o.applyStylePosistionAbsolute(
794
- o.createAreaDivWithClass("ge-table-footer ge-table-footer-west", s, "footer", "west")
577
+ o.createAreaDivWithClass("ge-table-footer ge-table-footer-west", i, "footer", "west")
795
578
  )
796
579
  ), this.areaFooterCenter = o.appendRelativeChildDiv(
797
580
  o.applyStylePosistionAbsolute(
798
- o.createAreaDivWithClass("ge-table-footer ge-table-footer-center", s, "footer", "center")
581
+ o.createAreaDivWithClass("ge-table-footer ge-table-footer-center", i, "footer", "center")
799
582
  )
800
583
  ), this.areaFooterEast = o.appendRelativeChildDiv(
801
584
  o.applyStylePosistionAbsolute(
802
- o.createAreaDivWithClass("ge-table-footer ge-table-footer-east", s, "footer", "east")
585
+ o.createAreaDivWithClass("ge-table-footer ge-table-footer-east", i, "footer", "east")
803
586
  )
804
587
  ), this.scrollViewport = o.applyStyleOverflowAuto(
805
588
  this.tableOptions.overflowX ?? "auto",
806
589
  this.tableOptions.overflowY ?? "auto",
807
590
  o.applyStyleNoPadding(
808
591
  o.applyStylePosistionAbsolute(
809
- o.createAreaDivWithClass("ge-table-scroll-viewport", s, "body", "center")
592
+ o.createAreaDivWithClass("ge-table-scroll-viewport", i, "body", "center")
810
593
  )
811
594
  )
812
595
  ), this.contentWrapperDiv = o.applyStyleNoPadding(
@@ -820,13 +603,13 @@ class Se {
820
603
  ), this.areaBodyCenter = o.appendRelativeChildDiv(
821
604
  o.createDivWithClass("ge-table-body-center", this.contentDiv)
822
605
  ), this.borderHeaderBottom = o.applyStylePosistionAbsolute(
823
- o.createDivWithClass("ge-table-header-border", s)
606
+ o.createDivWithClass("ge-table-header-border", i)
824
607
  ), this.borderFixedWest = o.applyStylePosistionAbsolute(
825
- o.createDivWithClass("ge-table-west-fixed-column-border", s)
608
+ o.createDivWithClass("ge-table-west-fixed-column-border", i)
826
609
  ), this.borderFixedEast = o.applyStylePosistionAbsolute(
827
- o.createDivWithClass("ge-table-east-fixed-column-border", s)
610
+ o.createDivWithClass("ge-table-east-fixed-column-border", i)
828
611
  ), this.borderFooterTop = o.applyStylePosistionAbsolute(
829
- o.createDivWithClass("ge-table-footer-border", s)
612
+ o.createDivWithClass("ge-table-footer-border", i)
830
613
  );
831
614
  }
832
615
  adjustContainersAndRows() {
@@ -909,8 +692,8 @@ class Se {
909
692
  }
910
693
  }
911
694
  class E {
912
- constructor(e, t, o, i, s = !1) {
913
- this.r1 = e, this.c1 = t, this.r2 = o, this.c2 = i, this.gammaRange = s;
695
+ constructor(e, t, o, s, i = !1) {
696
+ this.r1 = e, this.c1 = t, this.r2 = o, this.c2 = s, this.gammaRange = i;
914
697
  }
915
698
  static create(e) {
916
699
  return e.gammaRange === void 0 && (e.gammaRange = !1), new E(
@@ -934,7 +717,7 @@ class E {
934
717
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
935
718
  }
936
719
  }
937
- class xe {
720
+ class Re {
938
721
  constructor(e, t) {
939
722
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
940
723
  }
@@ -944,13 +727,13 @@ class xe {
944
727
  this.colAndRowspanRanges = [];
945
728
  const e = this.areaModel.getRowCount(), t = this.tableModel.getColumnCount();
946
729
  for (let o = 0; o < e; o++)
947
- for (let i = 0; i < t; i++) {
948
- let s = this.areaModel.getColspanAt(o, i), r = this.areaModel.getRowspanAt(o, i);
949
- if (s > 1 || r > 1) {
950
- s === 0 && (s = 1), r === 0 && (r = 1);
730
+ for (let s = 0; s < t; s++) {
731
+ let i = this.areaModel.getColspanAt(o, s), r = this.areaModel.getRowspanAt(o, s);
732
+ if (i > 1 || r > 1) {
733
+ i === 0 && (i = 1), r === 0 && (r = 1);
951
734
  const l = this.areaModel.hasOwnProperty("gammaCells");
952
735
  this.colAndRowspanRanges.push(
953
- new E(o, i, o + r - 1, i + s - 1, l)
736
+ new E(o, s, o + r - 1, s + i - 1, l)
954
737
  );
955
738
  }
956
739
  }
@@ -967,22 +750,22 @@ class xe {
967
750
  return !1;
968
751
  }
969
752
  }
970
- class k {
753
+ class I {
971
754
  constructor(e, t, o) {
972
755
  this.header = e, this.body = t, this.footer = o;
973
756
  }
974
757
  }
975
- class ye extends Se {
976
- constructor(e, t, o, i) {
758
+ class Ae extends ve {
759
+ constructor(e, t, o, s) {
977
760
  var r, l;
978
- super(e, t, o, i), this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
761
+ super(e, t, o, s), this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
979
762
  header: [],
980
763
  body: [],
981
764
  footer: []
982
- }, this.tree = !1, this.colAndRowspanModels = new k(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.editing = !1, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), t.getAreaModel("body") instanceof H && (this.tree = !0), ["header", "body", "footer"].forEach(
765
+ }, this.tree = !1, this.colAndRowspanModels = new I(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.editing = !1, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), N(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
983
766
  (n) => {
984
767
  var d;
985
- this.colAndRowspanModels[n] = new xe(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
768
+ this.colAndRowspanModels[n] = new Re(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
986
769
  }
987
770
  );
988
771
  }
@@ -999,13 +782,13 @@ class ye extends Se {
999
782
  }
1000
783
  }
1001
784
  initRenderEditor(e, t) {
1002
- var i;
1003
- let o = (i = this.tableModel.getColumnDef(t)) == null ? void 0 : i.getEditRenderer;
785
+ var s;
786
+ let o = (s = this.tableModel.getColumnDef(t)) == null ? void 0 : s.getEditRenderer;
1004
787
  if (o || (o = this.tableOptions.getEditRenderer), o)
1005
788
  if (this.editorRenderer = o(e, t), this.editorRenderer) {
1006
789
  this.editorRendererRow = e, this.editorRendererColumn = t, this.editing = !0, this.repaint();
1007
- const s = document.querySelector("input.ge-table-cell-editor-input");
1008
- s && s.focus();
790
+ const i = document.querySelector("input.ge-table-cell-editor-input");
791
+ i && i.focus();
1009
792
  } else
1010
793
  this.resetEditorRenderer();
1011
794
  }
@@ -1038,10 +821,12 @@ class ye extends Se {
1038
821
  var e, t;
1039
822
  this.storeScrollPosStateService && ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.autoRestoreScrollPosition) && this.storeScrollPosStateService.updateScrollOffset([this.scrollLeft, this.scrollTop]);
1040
823
  }
1041
- updateCells(e) {
824
+ updateCells(e, t = !1) {
1042
825
  e.forEach(
1043
- (t) => this.tableModel.getAreaModel(t.area).setValue(t.rowIndex, t.columnIndex, t.value)
1044
- ), this.repaint();
826
+ (o) => {
827
+ this.tableModel.getAreaModel(o.area).setValue(o.rowIndex, o.columnIndex, o.value), t || this.rerenderCellContent(o);
828
+ }
829
+ ), t && this.repaint();
1045
830
  }
1046
831
  getAreaAndSideIdentByAttr(e) {
1047
832
  if (e) {
@@ -1083,37 +868,37 @@ class ye extends Se {
1083
868
  getNumberByAttr(e, t) {
1084
869
  var o;
1085
870
  if (e) {
1086
- const i = (o = e.closest("[" + t + "]")) == null ? void 0 : o.getAttribute(t);
1087
- if (i)
1088
- return Number(i);
871
+ const s = (o = e.closest("[" + t + "]")) == null ? void 0 : o.getAttribute(t);
872
+ if (s)
873
+ return Number(s);
1089
874
  }
1090
875
  return -1;
1091
876
  }
1092
877
  getStringByAttr(e, t) {
1093
878
  var o;
1094
879
  if (e) {
1095
- const i = (o = e.closest("[" + t + "]")) == null ? void 0 : o.getAttribute(t);
1096
- if (i)
1097
- return i;
880
+ const s = (o = e.closest("[" + t + "]")) == null ? void 0 : o.getAttribute(t);
881
+ if (s)
882
+ return s;
1098
883
  }
1099
884
  return "";
1100
885
  }
1101
886
  adjustArea(e, t = 0) {
1102
- var u;
1103
- const o = this.getArea(e, "west"), i = this.getArea(e, "center"), s = this.getArea(e, "east"), r = i.child.clientHeight;
1104
- o.child.innerText = "", i.child.innerText = "", s.child.innerText = "";
1105
- const l = 0, n = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), a = this.tableModel.getAreaModel(e), h = a.getRowCount();
887
+ var g;
888
+ const o = this.getArea(e, "west"), s = this.getArea(e, "center"), i = this.getArea(e, "east"), r = s.child.clientHeight;
889
+ o.child.innerText = "", s.child.innerText = "", i.child.innerText = "";
890
+ const l = 0, n = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), a = this.tableModel.getAreaModel(e), c = a.getRowCount();
1106
891
  for (; this.cleanupFunctions[e].length; ) {
1107
892
  const p = this.cleanupFunctions[e].shift();
1108
893
  p && p();
1109
894
  }
1110
- let g = t;
895
+ let u = t;
1111
896
  const m = this.tableModel.getColumnCount(), b = this.tableModel.getFixedRightColumnCount(), w = this.tableModel.getFixedLeftColumnCount();
1112
- for (let p = 0; p < h; p++) {
1113
- const C = g, v = p === h - 1, R = this.tableModel.getRowHeight(e, p);
897
+ for (let p = 0; p < c; p++) {
898
+ const C = u, v = p === c - 1, R = this.tableModel.getRowHeight(e, p);
1114
899
  if (C + R > 0) {
1115
900
  this.firstVisibleRowIndex = p;
1116
- let y = { left: l, width: n, height: R, top: C, index: p }, S = this.dom.addRowDiv(i, y, p, e, "center");
901
+ let y = { left: l, width: n, height: R, top: C, index: p }, S = this.dom.addRowDiv(s, y, p, e, "center");
1117
902
  const T = w;
1118
903
  if (this.adjustColumnsToRowParent({
1119
904
  areaIdent: e,
@@ -1137,7 +922,7 @@ class ye extends Se {
1137
922
  columnIndexEnd: T - 1,
1138
923
  verticalFixed: !0,
1139
924
  lastRowOfModel: v
1140
- })), d.right > 0 && (y = { left: l, width: this.areaBodyEastGeo.width, height: R, top: C, index: p }, S = this.dom.addRowDiv(s, y, p, e, "east"), this.adjustColumnsToRowParent({
925
+ })), d.right > 0 && (y = { left: l, width: this.areaBodyEastGeo.width, height: R, top: C, index: p }, S = this.dom.addRowDiv(i, y, p, e, "east"), this.adjustColumnsToRowParent({
1141
926
  areaIdent: e,
1142
927
  sideIdent: "east",
1143
928
  areaModel: a,
@@ -1148,7 +933,7 @@ class ye extends Se {
1148
933
  columnIndexEnd: m - 1,
1149
934
  verticalFixed: !0,
1150
935
  lastRowOfModel: v
1151
- })), e === "header" && this.tree && p === h - 1) {
936
+ })), e === "header" && this.tree && p === c - 1) {
1152
937
  const A = this.dom.applyStyle(
1153
938
  this.dom.setAttribute(
1154
939
  this.dom.addDiv(S, new $(16, 20, 20, 8)),
@@ -1158,23 +943,23 @@ class ye extends Se {
1158
943
  { cursor: "pointer" }
1159
944
  ), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
1160
945
  if (M) {
1161
- const B = this.dom.domService.createText(M.content);
1162
- this.dom.domService.appendChild(A, B), M.style && this.dom.applyStyleString(A, M.style);
946
+ const V = this.dom.domService.createText(M.content);
947
+ this.dom.domService.appendChild(A, V), M.style && this.dom.applyStyleString(A, M.style);
1163
948
  }
1164
949
  }
1165
950
  }
1166
- if (g = g + R, g > r)
951
+ if (u = u + R, u > r)
1167
952
  break;
1168
953
  }
1169
954
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1170
- const p = ((u = this.colAndRowspanModels[e]) == null ? void 0 : u.getRanges()) ?? [];
955
+ const p = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
1171
956
  if (p.length)
1172
957
  for (const C of p) {
1173
- let v = 0, R = i.child, y = "center";
958
+ let v = 0, R = s.child, y = "center";
1174
959
  if (C.c1 < w)
1175
960
  R = o.child, y = "west";
1176
961
  else if (b > 0 && C.c1 >= m - b)
1177
- R = s.child, y = "east";
962
+ R = i.child, y = "east";
1178
963
  else {
1179
964
  const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1180
965
  v = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
@@ -1193,58 +978,58 @@ class ye extends Se {
1193
978
  * @param sideIdent SideIdent (west,center,east)
1194
979
  * @protected
1195
980
  */
1196
- drawBigCell(e, t, o, i, s, r) {
1197
- const l = o + this.getRowHeights(0, e.r1 - 1, i).reduce((u, p) => u + p, 0), n = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
981
+ drawBigCell(e, t, o, s, i, r) {
982
+ const l = o + this.getRowHeights(0, e.r1 - 1, s).reduce((g, p) => g + p, 0), n = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
1198
983
  let a = 0;
1199
984
  d > 0 && e.c1 >= n - d && (a = n - d);
1200
- const h = t + this.getColumnWidths(a, e.c1 - 1).reduce((u, p) => u + p, 0), g = this.getRowHeights(e.r1, e.r2, i).reduce((u, p) => u + p, 0), m = this.getColumnWidths(e.c1, e.c2).reduce((u, p) => u + p, 0);
985
+ const c = t + this.getColumnWidths(a, e.c1 - 1).reduce((g, p) => g + p, 0), u = this.getRowHeights(e.r1, e.r2, s).reduce((g, p) => g + p, 0), m = this.getColumnWidths(e.c1, e.c2).reduce((g, p) => g + p, 0);
1201
986
  let b = !1;
1202
987
  const w = this.getSelectionModel ? this.getSelectionModel() : void 0;
1203
988
  w && (b = w.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? (console.info("TODO here", e), this.renderCell({
1204
- areaModel: i,
1205
- areaIdent: i.areaIdent,
989
+ areaModel: s,
990
+ areaIdent: s.areaIdent,
1206
991
  sideIdent: r,
1207
992
  rowIndex: e.r1,
1208
993
  columnIndex: e.c1,
1209
- left: h,
994
+ left: c,
1210
995
  top: l,
1211
996
  width: m,
1212
- height: g,
1213
- parent: s,
997
+ height: u,
998
+ parent: i,
1214
999
  cellSelected: b,
1215
1000
  lastRowOfModel: !0,
1216
1001
  gammaRange: e.gammaRange
1217
1002
  })) : this.renderCell({
1218
- areaModel: i,
1219
- areaIdent: i.areaIdent,
1003
+ areaModel: s,
1004
+ areaIdent: s.areaIdent,
1220
1005
  sideIdent: r,
1221
1006
  rowIndex: e.r1,
1222
1007
  columnIndex: e.c1,
1223
- left: h,
1008
+ left: c,
1224
1009
  top: l,
1225
1010
  width: m,
1226
- height: g,
1227
- parent: s,
1011
+ height: u,
1012
+ parent: i,
1228
1013
  cellSelected: b,
1229
1014
  lastRowOfModel: !0,
1230
1015
  gammaRange: e.gammaRange
1231
- }), i.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1016
+ }), s.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1232
1017
  rowIndex: e.r1,
1233
1018
  columnIndex: e.c1,
1234
- cellLeft: h,
1019
+ cellLeft: c,
1235
1020
  cellTop: l,
1236
1021
  cellWidth: m,
1237
- cellHeight: g,
1238
- parent: s
1022
+ cellHeight: u,
1023
+ parent: i
1239
1024
  });
1240
1025
  }
1241
1026
  findRowOfImportantRowspanCell(e, t, o) {
1242
- const i = e.getMaxRowspan();
1243
- for (let s = t - 1; s > -1; s--) {
1244
- const r = e.getRowspanAt(s, o);
1245
- if (r > 1 && s + r + 1 >= t)
1246
- return s;
1247
- if (t - s > i)
1027
+ const s = e.getMaxRowspan();
1028
+ for (let i = t - 1; i > -1; i--) {
1029
+ const r = e.getRowspanAt(i, o);
1030
+ if (r > 1 && i + r + 1 >= t)
1031
+ return i;
1032
+ if (t - i > s)
1248
1033
  return -1;
1249
1034
  }
1250
1035
  return -1;
@@ -1253,8 +1038,8 @@ class ye extends Se {
1253
1038
  areaIdent: e,
1254
1039
  sideIdent: t,
1255
1040
  areaModel: o,
1256
- geo: i,
1257
- parent: s,
1041
+ geo: s,
1042
+ parent: i,
1258
1043
  rowIndex: r,
1259
1044
  columnIndexStart: l,
1260
1045
  columnIndexEnd: n,
@@ -1263,57 +1048,57 @@ class ye extends Se {
1263
1048
  }) {
1264
1049
  var w;
1265
1050
  this.scrollViewportLeft = this.scrollViewport.scrollLeft;
1266
- let h = 0;
1051
+ let c = 0;
1267
1052
  if (!d) {
1268
- const u = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1269
- h = this.scrollFactorX * u;
1053
+ const g = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1054
+ c = this.scrollFactorX * g;
1270
1055
  }
1271
- const g = 0, m = !!(e === "body" && t);
1272
- let b = h;
1273
- for (let u = l; u <= n; u++) {
1274
- const p = b, C = this.tableModel.getColumnWidth(u);
1056
+ const u = 0, m = !!(e === "body" && t);
1057
+ let b = c;
1058
+ for (let g = l; g <= n; g++) {
1059
+ const p = b, C = this.tableModel.getColumnWidth(g);
1275
1060
  if (C > 0 && p + C > 0) {
1276
- let v = i.height;
1277
- const R = o.getRowspanAt(r, u), y = o.getColspanAt(r, u);
1061
+ let v = s.height;
1062
+ const R = o.getRowspanAt(r, g), y = o.getColspanAt(r, g);
1278
1063
  R > 1 && (v = this.getRowHeights(r, r + R - 1, o).reduce((A, M) => A + M, 0));
1279
1064
  let S = C;
1280
- y > 1 && (S = this.getColumnWidths(u, u + y - 1).reduce((A, M) => A + M, 0));
1065
+ y > 1 && (S = this.getColumnWidths(g, g + y - 1).reduce((A, M) => A + M, 0));
1281
1066
  let T = !1;
1282
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (w = this.colAndRowspanModels[e]) != null && w.isInRange(r, u) && (T = !0), this.draggingTargetColumnIndex === u && e !== "header") {
1283
- this.renderDragTargetDiv(s, p, g, S, v);
1284
- const A = { left: p, top: g, width: S, height: v };
1285
- this.dom.addColumnBorderDivs(this.tableOptions, s, A, e, t);
1067
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (w = this.colAndRowspanModels[e]) != null && w.isInRange(r, g) && (T = !0), this.draggingTargetColumnIndex === g && e !== "header") {
1068
+ this.renderDragTargetDiv(i, p, u, S, v);
1069
+ const A = { left: p, top: u, width: S, height: v };
1070
+ this.dom.addColumnBorderDivs(this.tableOptions, i, A, e, t);
1286
1071
  } else {
1287
- const A = this.renderSelectedBackgroundDiv(T, m, t, o, r, u, s, p, g, S, v);
1072
+ const A = this.renderSelectedBackgroundDiv(T, m, t, o, r, g, i, p, u, S, v);
1288
1073
  T || this.renderCell({
1289
1074
  areaModel: o,
1290
1075
  areaIdent: e,
1291
1076
  sideIdent: t,
1292
1077
  rowIndex: r,
1293
- columnIndex: u,
1078
+ columnIndex: g,
1294
1079
  left: p,
1295
- top: g,
1080
+ top: u,
1296
1081
  width: S,
1297
1082
  height: v,
1298
- parent: s,
1083
+ parent: i,
1299
1084
  cellSelected: A,
1300
1085
  lastRowOfModel: a,
1301
1086
  gammaRange: !0
1302
1087
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1303
1088
  rowIndex: r,
1304
- columnIndex: u,
1089
+ columnIndex: g,
1305
1090
  cellLeft: p,
1306
- cellTop: g,
1091
+ cellTop: u,
1307
1092
  cellWidth: S,
1308
1093
  cellHeight: v,
1309
- parent: s
1094
+ parent: i
1310
1095
  });
1311
1096
  }
1312
1097
  }
1313
1098
  if (b = b + C, b > this.areaBodyCenterGeo.width)
1314
1099
  break;
1315
1100
  }
1316
- this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new $(b - 1, 1, i.height, 0), s);
1101
+ this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new $(b - 1, 1, s.height, 0), i);
1317
1102
  }
1318
1103
  getTreeArrowColumnIndex() {
1319
1104
  return this.tableOptions.showCheckboxWihoutExtraColumn ? 0 : this.tableModel.isRowCheckboxVisible() ? 1 : 0;
@@ -1322,75 +1107,99 @@ class ye extends Se {
1322
1107
  areaModel: e,
1323
1108
  areaIdent: t,
1324
1109
  sideIdent: o,
1325
- rowIndex: i,
1326
- index: s,
1110
+ rowIndex: s,
1111
+ index: i,
1327
1112
  left: r,
1328
1113
  width: l,
1329
1114
  height: n,
1330
1115
  top: d,
1331
1116
  parent: a,
1332
- lastRowOfModel: h
1117
+ lastRowOfModel: c
1333
1118
  }) {
1334
- var q;
1335
- const m = this.editorRenderer && this.editorRendererRow === i && this.editorRendererColumn === s ? this.editorRenderer : e.getCellRenderer(i, s), b = { left: r, width: l, height: n, top: d, index: s }, w = e.getRowByIndex(i);
1336
- let u = "none";
1337
- if (s === this.getTreeArrowColumnIndex() && w instanceof F) {
1119
+ var J;
1120
+ const m = this.editorRenderer && this.editorRendererRow === s && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(s, i), b = { left: r, width: l, height: n, top: d, index: i }, w = e.getRowByIndex(s);
1121
+ let g = "none";
1122
+ if (i === this.getTreeArrowColumnIndex() && O(w)) {
1338
1123
  const x = w;
1339
- (q = x.children) != null && q.length ? x.expanded ? u = "expanded" : u = "collapsed" : u = "hidden";
1124
+ (J = x.children) != null && J.length ? x.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
1340
1125
  }
1341
1126
  let C;
1342
1127
  if (t === "header") {
1343
- const x = this.tableModel.getColumnDef(s);
1128
+ const x = this.tableModel.getColumnDef(i);
1344
1129
  (!(x != null && x.sortIconVisible) || x != null && x.sortIconVisible()) && (C = x == null ? void 0 : x.sortState);
1345
1130
  }
1346
- const v = e.getValueAt(i, s), R = m ? "" : `${v}`, y = e.isRowChecked(i), S = this.dom.addColumnDiv(
1131
+ const v = e.getValueAt(s, i), R = m ? "" : `${v}`, y = e.isRowChecked(s), S = this.dom.addColumnDiv(
1347
1132
  a,
1348
1133
  b,
1349
- i,
1350
1134
  s,
1135
+ i,
1351
1136
  t,
1352
1137
  o,
1353
1138
  R,
1354
- u,
1139
+ g,
1355
1140
  this.tableOptions,
1356
1141
  y,
1357
1142
  C
1358
- ), T = e.getTooltipAt(i, s);
1143
+ ), T = e.getTooltipAt(s, i);
1359
1144
  T && this.dom.setAttribute(S, "title", T);
1360
- const A = this.tableModel.getColumnDef(s);
1145
+ const A = this.tableModel.getColumnDef(i);
1361
1146
  A && A.classes[t] && this.dom.addClasses(A.classes[t], S);
1362
1147
  let M;
1363
- m && (M = m.render(S, i, s, t, e, v, this.dom.domService));
1364
- const B = e.getCustomClassesAt(i, s);
1365
- if (B.length && this.dom.addClasses(B, S), this.dom.addColumnBorderDivs(this.tableOptions, a, b, t, o), h && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: d + n }, a), this.getFocusModel && t === "body") {
1148
+ m && (M = m.render(S, s, i, t, e, v, this.dom.domService));
1149
+ const V = e.getCustomClassesAt(s, i);
1150
+ if (V.length && this.dom.addClasses(V, S), this.dom.addColumnBorderDivs(this.tableOptions, a, b, t, o), c && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: d + n }, a), this.getFocusModel && t === "body") {
1366
1151
  const x = this.getFocusModel();
1367
- x != null && x.hasFocus(i, s) && this.dom.addFocusBorderDivs(a, b, {});
1152
+ x != null && x.hasFocus(s, i) && this.dom.addFocusBorderDivs(a, b, {});
1368
1153
  }
1369
1154
  t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
1370
- const G = e.getCustomStyleAt(i, s);
1371
- if (G)
1372
- for (const x in G)
1373
- this.dom.setStyle(S, x, G[x]);
1155
+ const W = e.getCustomStyleAt(s, i);
1156
+ if (W)
1157
+ for (const x in W)
1158
+ this.dom.setStyle(S, x, W[x]);
1374
1159
  return [S, M];
1375
1160
  }
1161
+ applyCssClasses(e, t = {}) {
1162
+ e && Object.entries(t).forEach(([o, s]) => {
1163
+ s ? this.dom.addClass(o, e) : this.dom.removeClass(o, e);
1164
+ });
1165
+ }
1166
+ rerenderCellContent({ area: e, rowIndex: t, columnIndex: o, value: s, cssClasses: i }) {
1167
+ const r = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + o + '"][data-row-index="' + t + '"][data-area="' + e + '"]', n = document.querySelector(l);
1168
+ if (n) {
1169
+ let d;
1170
+ const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === o ? this.editorRenderer : r.getCellRenderer(t, o);
1171
+ if (n.innerText = "", this.applyCssClasses(n, i), c)
1172
+ d = c.render(n, t, o, e, r, s, this.dom.domService), d && this.cleanupFunctions[e].push(d);
1173
+ else {
1174
+ const b = `${s}`;
1175
+ this.dom.addLabelDiv(n, b, !1, t, o, e);
1176
+ }
1177
+ const u = r.getCustomClassesAt(t, o);
1178
+ u.length && this.dom.addClasses(u, n);
1179
+ const m = r.getCustomStyleAt(t, o);
1180
+ if (m)
1181
+ for (const b in m)
1182
+ this.dom.setStyle(n, b, m[b]);
1183
+ }
1184
+ }
1376
1185
  getColumnWidths(e, t) {
1377
1186
  const o = [];
1378
- for (let i = e; i <= t; i++)
1379
- o.push(this.tableModel.getColumnWidth(i));
1187
+ for (let s = e; s <= t; s++)
1188
+ o.push(this.tableModel.getColumnWidth(s));
1380
1189
  return o;
1381
1190
  }
1382
1191
  getRowHeights(e, t, o) {
1383
- const i = [];
1384
- for (let s = e; s <= t; s++)
1385
- i.push(o.getRowHeight(s));
1386
- return i;
1192
+ const s = [];
1193
+ for (let i = e; i <= t; i++)
1194
+ s.push(o.getRowHeight(i));
1195
+ return s;
1387
1196
  }
1388
1197
  adjustHoverRows(e) {
1389
1198
  if (this.tableOptions.hoverRowVisible && e.rowIndex > -1) {
1390
- const t = this.hostElement.clientWidth, o = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex), i = e.rowTop + this.areaHeaderCenter.parent.clientHeight - this.scrollTop;
1199
+ const t = this.hostElement.clientWidth, o = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex), s = e.rowTop + this.areaHeaderCenter.parent.clientHeight - this.scrollTop;
1391
1200
  this.dom.applyStyle(this.hoverRow, {
1392
1201
  left: "0",
1393
- top: i + "px",
1202
+ top: s + "px",
1394
1203
  width: t + "px",
1395
1204
  height: o + "px",
1396
1205
  display: "block"
@@ -1405,9 +1214,9 @@ class ye extends Se {
1405
1214
  }
1406
1215
  adjustHoverColumns(e) {
1407
1216
  if (this.tableOptions.hoverColumnVisible && e.rowIndex > -1) {
1408
- const t = this.hostElement.clientHeight, o = this.tableModel.getColumnWidth(e.columnIndex), i = this.areaBodyWestGeo.width, s = e.columnLeft + this.tableModel.getPadding().left - this.scrollLeft - i;
1217
+ const t = this.hostElement.clientHeight, o = this.tableModel.getColumnWidth(e.columnIndex), s = this.areaBodyWestGeo.width, i = e.columnLeft + this.tableModel.getPadding().left - this.scrollLeft - s;
1409
1218
  this.dom.applyStyle(this.hoverColumn, {
1410
- left: s + "px",
1219
+ left: i + "px",
1411
1220
  top: "0px",
1412
1221
  width: o + "px",
1413
1222
  height: t + "px",
@@ -1424,86 +1233,86 @@ class ye extends Se {
1424
1233
  debounce(e, t = 1e3) {
1425
1234
  this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(e.bind(this), t);
1426
1235
  }
1427
- renderDragTargetDiv(e, t, o, i, s) {
1236
+ renderDragTargetDiv(e, t, o, s, i) {
1428
1237
  const r = this.dom.applyStylePosistionAbsolute(
1429
1238
  this.dom.createDivWithClass("ge-table-drop-zone", e)
1430
1239
  );
1431
- return this.dom.setStyle(r, "left", `${t}px`), this.dom.setStyle(r, "top", `${o}px`), this.dom.setStyle(r, "width", `${i}px`), this.dom.setStyle(r, "height", `${s}px`), r;
1240
+ return this.dom.setStyle(r, "left", `${t}px`), this.dom.setStyle(r, "top", `${o}px`), this.dom.setStyle(r, "width", `${s}px`), this.dom.setStyle(r, "height", `${i}px`), r;
1432
1241
  }
1433
- renderSelectedBackgroundDiv(e, t, o, i, s, r, l, n, d, a, h) {
1434
- let g = !1;
1435
- if (!e && t && i.isSelectable(s, r) && this.getSelectionModel) {
1242
+ renderSelectedBackgroundDiv(e, t, o, s, i, r, l, n, d, a, c) {
1243
+ let u = !1;
1244
+ if (!e && t && s.isSelectable(i, r) && this.getSelectionModel) {
1436
1245
  const m = this.getSelectionModel();
1437
1246
  if (m) {
1438
- const b = m.getSelectionCount(s, r);
1439
- g = b > 0;
1247
+ const b = m.getSelectionCount(i, r);
1248
+ u = b > 0;
1440
1249
  for (let w = 0; w < b; w++) {
1441
- const u = this.dom.applyStylePosistionAbsolute(
1250
+ const g = this.dom.applyStylePosistionAbsolute(
1442
1251
  // ge-table-body-west-selected-range
1443
- this.dom.createDivWithClass(`ge-table-${i.areaIdent}-${o}-selected-range`, l)
1252
+ this.dom.createDivWithClass(`ge-table-${s.areaIdent}-${o}-selected-range`, l)
1444
1253
  );
1445
- this.dom.setStyle(u, "left", `${n}px`), this.dom.setStyle(u, "top", `${d}px`), this.dom.setStyle(u, "width", `${a}px`), this.dom.setStyle(u, "height", `${h}px`);
1254
+ this.dom.setStyle(g, "left", `${n}px`), this.dom.setStyle(g, "top", `${d}px`), this.dom.setStyle(g, "width", `${a}px`), this.dom.setStyle(g, "height", `${c}px`);
1446
1255
  }
1447
1256
  }
1448
1257
  }
1449
- return g;
1258
+ return u;
1450
1259
  }
1451
1260
  renderCell({
1452
1261
  areaModel: e,
1453
1262
  areaIdent: t,
1454
1263
  sideIdent: o,
1455
- rowIndex: i,
1456
- columnIndex: s,
1264
+ rowIndex: s,
1265
+ columnIndex: i,
1457
1266
  left: r,
1458
1267
  top: l,
1459
1268
  width: n,
1460
1269
  height: d,
1461
1270
  parent: a,
1462
- cellSelected: h,
1463
- lastRowOfModel: g,
1271
+ cellSelected: c,
1272
+ lastRowOfModel: u,
1464
1273
  gammaRange: m
1465
1274
  }) {
1466
1275
  const [b, w] = this.addAndRenderCellDiv({
1467
1276
  areaModel: e,
1468
1277
  areaIdent: t,
1469
1278
  sideIdent: o,
1470
- rowIndex: i,
1471
- index: s,
1279
+ rowIndex: s,
1280
+ index: i,
1472
1281
  left: r,
1473
1282
  width: n,
1474
1283
  height: d,
1475
1284
  top: l,
1476
1285
  parent: a,
1477
- lastRowOfModel: g,
1286
+ lastRowOfModel: u,
1478
1287
  gammaRange: m
1479
1288
  });
1480
- h && this.dom.addClass(`ge-table-${t}-${o}-selected-range`, b), w && this.cleanupFunctions[t].push(w);
1289
+ c && this.dom.addClass(`ge-table-${t}-${o}-selected-range`, b), w && this.cleanupFunctions[t].push(w);
1481
1290
  }
1482
- renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: o, cellTop: i, cellWidth: s, cellHeight: r, parent: l }) {
1291
+ renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: o, cellTop: s, cellWidth: i, cellHeight: r, parent: l }) {
1483
1292
  const n = this.dom.domService, d = this.tableOptions.columnResizeHandleWidthInPx ?? 2, a = n.createElement("div");
1484
- n.setAttribute(a, "data-col-index", `${t}`), n.setAttribute(a, "data-row-index", `${e}`), n.setAttribute(a, "data-area", "header"), n.setAttribute(a, "data-ge-action", "resize-column"), n.addClass(a, "ge-table-column-resize-handle"), n.setStyle(a, "display", "clip"), n.setStyle(a, "position", "absolute"), n.setStyle(a, "cursor", "col-resize"), n.setStyle(a, "left", `${o + s - d}px`), n.setStyle(a, "top", `${i}px`), n.setStyle(a, "width", `${d}px`), n.setStyle(a, "height", `${r}px`), n.appendChild(l, a);
1293
+ n.setAttribute(a, "data-col-index", `${t}`), n.setAttribute(a, "data-row-index", `${e}`), n.setAttribute(a, "data-area", "header"), n.setAttribute(a, "data-ge-action", "resize-column"), n.addClass(a, "ge-table-column-resize-handle"), n.setStyle(a, "display", "clip"), n.setStyle(a, "position", "absolute"), n.setStyle(a, "cursor", "col-resize"), n.setStyle(a, "left", `${o + i - d}px`), n.setStyle(a, "top", `${s}px`), n.setStyle(a, "width", `${d}px`), n.setStyle(a, "height", `${r}px`), n.appendChild(l, a);
1485
1294
  }
1486
1295
  }
1487
- class Ce {
1296
+ class Ee {
1488
1297
  constructor(e, t) {
1489
1298
  this.columnIndex = e, this.sortState = t;
1490
1299
  }
1491
1300
  }
1492
- class ve {
1301
+ class Me {
1493
1302
  constructor(e) {
1494
1303
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
1495
1304
  }
1496
1305
  onHostElementChanged(e) {
1497
1306
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
1498
- const t = e.target, o = t.getAttribute("data-area"), i = t.getAttribute("data-row-index"), s = t.getAttribute("data-col-index");
1499
- if (o && i && s) {
1500
- const r = X(o), l = Number(i), n = Number(s);
1307
+ const t = e.target, o = t.getAttribute("data-area"), s = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
1308
+ if (o && s && i) {
1309
+ const r = Y(o), l = Number(s), n = Number(i);
1501
1310
  this.tableScope.updateModelValueAfterEdit(r, l, n, t.value);
1502
1311
  }
1503
1312
  }
1504
1313
  }
1505
1314
  }
1506
- class Re {
1315
+ class ke {
1507
1316
  constructor(e = -1, t = -1) {
1508
1317
  this.rowIndex = e, this.columnIndex = t;
1509
1318
  }
@@ -1513,22 +1322,22 @@ class U {
1513
1322
  this.cells = e;
1514
1323
  }
1515
1324
  static createSingle(e, t) {
1516
- return new U([new Re(e, t)]);
1325
+ return new U([new ke(e, t)]);
1517
1326
  }
1518
1327
  }
1519
- class Ae {
1328
+ class Ie {
1520
1329
  constructor(e) {
1521
1330
  var t, o;
1522
1331
  this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (o = this.tableScope.tableOptions) != null && o.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
1523
1332
  }
1524
1333
  onMouseClicked(e, t) {
1525
- var s, r, l, n, d, a, h;
1526
- let o = !1, i = !1;
1334
+ var i, r, l, n, d, a, c;
1335
+ let o = !1, s = !1;
1527
1336
  if (this.getSelectionModel && this.getFocusModel) {
1528
- const g = this.getSelectionModel(), m = this.getFocusModel();
1529
- g && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), o = !0), (s = e.originalEvent) != null && s.shiftKey || g.hasSelection() && (g.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (g.addSelection(this.createRangeByEvents(e, this.previousEvt)), i = !0, o = !0) : (l = e.originalEvent) != null && l.ctrlKey || (n = e.originalEvent) != null && n.metaKey ? (g.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), i = !0, o = !0) : (d = e.originalEvent) != null && d.altKey && ((a = e.originalEvent) != null && a.ctrlKey || (h = e.originalEvent) != null && h.metaKey) && (g.removeSelection(E.singleCell(e.rowIndex, e.columnIndex)), i = !0, o = !0));
1337
+ const u = this.getSelectionModel(), m = this.getFocusModel();
1338
+ u && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), o = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), s = !0, o = !0) : (l = e.originalEvent) != null && l.ctrlKey || (n = e.originalEvent) != null && n.metaKey ? (u.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (d = e.originalEvent) != null && d.altKey && ((a = e.originalEvent) != null && a.ctrlKey || (c = e.originalEvent) != null && c.metaKey) && (u.removeSelection(E.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0));
1530
1339
  }
1531
- return i ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), o;
1340
+ return s ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), o;
1532
1341
  }
1533
1342
  onActionTriggered(e) {
1534
1343
  if (this.getSelectionModel && this.getFocusModel) {
@@ -1539,8 +1348,8 @@ class Ae {
1539
1348
  if (e === "DESELECT_ALL")
1540
1349
  return t.clear(), this.tableScope.repaint(), !0;
1541
1350
  if (e === "TOGGLE_SELECTION") {
1542
- const [i, s] = o.getFocus();
1543
- return t.togglePoint(i, s), this.tableScope.repaint(), !0;
1351
+ const [s, i] = o.getFocus();
1352
+ return t.togglePoint(s, i), this.tableScope.repaint(), !0;
1544
1353
  }
1545
1354
  }
1546
1355
  }
@@ -1548,16 +1357,16 @@ class Ae {
1548
1357
  }
1549
1358
  createRangeByEvents(e, t) {
1550
1359
  t || (t = e);
1551
- const o = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), s = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
1360
+ const o = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), s = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
1552
1361
  return E.create({
1553
1362
  rowIndex1: o,
1554
- columnIndex1: s,
1555
- rowIndex2: i,
1363
+ columnIndex1: i,
1364
+ rowIndex2: s,
1556
1365
  columnIndex2: r
1557
1366
  });
1558
1367
  }
1559
1368
  }
1560
- class Ee {
1369
+ class Te {
1561
1370
  get() {
1562
1371
  return {
1563
1372
  f2: "START_EDITING",
@@ -1575,7 +1384,7 @@ class Ee {
1575
1384
  };
1576
1385
  }
1577
1386
  }
1578
- class Me {
1387
+ class _e {
1579
1388
  get() {
1580
1389
  return {
1581
1390
  f2: "START_EDITING",
@@ -1595,7 +1404,7 @@ class Me {
1595
1404
  };
1596
1405
  }
1597
1406
  }
1598
- class Ie {
1407
+ class De {
1599
1408
  constructor(e) {
1600
1409
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
1601
1410
  }
@@ -1603,7 +1412,7 @@ class Ie {
1603
1412
  this.listener.includes(e) || this.listener.push(e);
1604
1413
  }
1605
1414
  init() {
1606
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Me().get()) : Object.assign(this.shortcutActionIdMapping, new Ee().get()), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
1415
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new _e().get()) : Object.assign(this.shortcutActionIdMapping, new Te().get()), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
1607
1416
  }
1608
1417
  isMacintosh() {
1609
1418
  return navigator.platform.indexOf("Mac") > -1;
@@ -1629,8 +1438,8 @@ class Ie {
1629
1438
  const t = this.getTokenByEvent(e);
1630
1439
  this.isDebug() && console.debug("ShortcutService tokens:", t);
1631
1440
  for (const o in this.shortcutActionIdMapping) {
1632
- const i = o.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[\+ ]/g).sort();
1633
- if (this.areTokensEquals(t, i))
1441
+ const s = o.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[\+ ]/g).sort();
1442
+ if (this.areTokensEquals(t, s))
1634
1443
  return this.shortcutActionIdMapping[o];
1635
1444
  }
1636
1445
  }
@@ -1647,7 +1456,7 @@ class Ie {
1647
1456
  return e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.ctrlKey && t.push("ctrl"), e.metaKey && t.push("meta"), e.code && t.push(e.code.toLowerCase().replace(/key/g, "")), t.sort();
1648
1457
  }
1649
1458
  }
1650
- class ke {
1459
+ class Q {
1651
1460
  onCheckboxChanged(e) {
1652
1461
  }
1653
1462
  onContextmenu(e) {
@@ -1663,19 +1472,153 @@ class ke {
1663
1472
  onMouseMoved(e) {
1664
1473
  }
1665
1474
  }
1666
- class Ne extends ye {
1667
- constructor(e, t, o, i, s) {
1668
- var r;
1475
+ class $e {
1476
+ setStyle(e, t, o) {
1477
+ return e.style[t] = o, e;
1478
+ }
1479
+ appendText(e, t) {
1480
+ const o = this.createText(t);
1481
+ return this.appendChild(e, o), o;
1482
+ }
1483
+ addClass(e, t) {
1484
+ return t.includes(" ") ? t.split(" ").forEach((o) => e.classList.add(o)) : e.classList.add(t), e;
1485
+ }
1486
+ removeClass(e, t) {
1487
+ return t.includes(" ") ? t.split(" ").forEach((o) => e.classList.remove(o)) : e.classList.remove(t), e;
1488
+ }
1489
+ appendChild(e, t) {
1490
+ e.appendChild(t);
1491
+ }
1492
+ createElement(e) {
1493
+ return document.createElement(e);
1494
+ }
1495
+ createText(e) {
1496
+ return document.createTextNode(e);
1497
+ }
1498
+ setAttribute(e, t, o) {
1499
+ e.setAttribute(t, o);
1500
+ }
1501
+ }
1502
+ class Fe {
1503
+ render(e, t, o, s, i, r, l) {
1504
+ if (i.isEditable(t, o)) {
1505
+ l.addClass(e, "ge-table-row-input-div");
1506
+ const n = i.getValueAt(t, o);
1507
+ e.innerHTML = `
1508
+ <input
1509
+ type="text"
1510
+ value="${n}"
1511
+ autofocus
1512
+ onfocus="this.setSelectionRange(0, this.value.length)"
1513
+ data-listen="change"
1514
+ data-area="${s}"
1515
+ data-row-index="${t}"
1516
+ data-col-index="${o}"
1517
+ data-input-type="text"
1518
+ style="width:calc(100% - 8px);height:100%;border:0;padding:0 0 0 8px;"
1519
+ class="ge-table-cell-editor-input">`;
1520
+ }
1521
+ }
1522
+ }
1523
+ class Le {
1524
+ constructor(e = "none", t = "single") {
1525
+ this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
1526
+ }
1527
+ getSelectionCount(e, t) {
1528
+ let o = 0;
1529
+ for (const s of this.ranges)
1530
+ s.isInRange(e, t) && o++;
1531
+ return this.allSelected && o++, this.isInNegativeRange(e, t) && (o = 0), o;
1532
+ }
1533
+ isInNegativeRange(e, t) {
1534
+ for (const o of this.negativeRanges)
1535
+ if (o.isInRange(e, t))
1536
+ return !0;
1537
+ return !1;
1538
+ }
1539
+ getRanges() {
1540
+ return this.ranges;
1541
+ }
1542
+ clear() {
1543
+ this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
1544
+ }
1545
+ hasSelection() {
1546
+ return !!this.ranges.length;
1547
+ }
1548
+ selectAll() {
1549
+ this.allSelected = !0;
1550
+ }
1551
+ addSelection(e) {
1552
+ this.addRange(e);
1553
+ }
1554
+ removeSelection(e) {
1555
+ if (this.selectionType === "none")
1556
+ return;
1557
+ let t = e;
1558
+ this.selectionType === "row" ? t = E.singleRow(e.r1) : this.selectionType === "column" && (t = E.singleColumn(e.c1)), this.negativeRanges.push(t);
1559
+ }
1560
+ togglePoint(e, t) {
1561
+ this.getSelectionCount(e, t) > 0 ? this.removeSelection(E.singleCell(e, t)) : this.addSelection(E.singleCell(e, t));
1562
+ }
1563
+ addRange(e) {
1564
+ this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e));
1565
+ }
1566
+ }
1567
+ class Oe {
1568
+ constructor(e = "none") {
1569
+ this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1;
1570
+ }
1571
+ clearChanged() {
1572
+ this.changed = !1;
1573
+ }
1574
+ hasChanged() {
1575
+ return this.changed;
1576
+ }
1577
+ clear() {
1578
+ this.rowIndex = -1, this.columnIndex = -1;
1579
+ }
1580
+ setFocus(e, t) {
1581
+ (this.rowIndex !== e || this.columnIndex !== t) && (this.rowIndex = e, this.columnIndex = t, this.changed = !0);
1582
+ }
1583
+ hasFocus(e, t) {
1584
+ return this.rowIndex === e && this.columnIndex === t;
1585
+ }
1586
+ getFocus() {
1587
+ return [this.rowIndex, this.columnIndex];
1588
+ }
1589
+ }
1590
+ const Pe = new Le(), He = new Oe("cell");
1591
+ class z {
1592
+ constructor() {
1593
+ 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 = {
1594
+ header: 34,
1595
+ body: 34,
1596
+ footer: 34
1597
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ae(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new de(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new Fe(), this.getSelectionModel = () => Pe, this.getFocusModel = () => He;
1598
+ }
1599
+ }
1600
+ class he extends Ae {
1601
+ constructor(e, t, o, s, i) {
1602
+ var r;
1669
1603
  if (super(
1670
1604
  e,
1671
1605
  t,
1672
- new he(o),
1673
- i
1674
- ), this.eventListener = s, this.selectionService = new Ae(this), this.api = new ge(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, s || (this.eventListener = new ke()), (r = this.tableOptions) != null && r.autoRestoreOptions) {
1606
+ new pe(o),
1607
+ s
1608
+ ), this.eventListener = i, this.selectionService = new Ie(this), this.api = new we(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, i || (this.eventListener = new Q()), (r = this.tableOptions) != null && r.autoRestoreOptions) {
1675
1609
  const l = this.tableOptions.autoRestoreOptions, n = l.getStorageKeyFn;
1676
- n && (l.autoRestoreScrollPosition && (this.storeScrollPosStateService = new pe(n)), l.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new me(n)), l.autoRestoreSortingState && (this.storeSortingService = new we(n)));
1610
+ n && (l.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Se(n)), l.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ye(n)), l.autoRestoreSortingState && (this.storeSortingService = new Ce(n)));
1677
1611
  }
1678
- this.mouseHandler = new ue(this), this.inputHandler = new ve(this), this.shortcutService = new Ie(this), this.shortcutService.addListener(this.selectionService);
1612
+ this.mouseHandler = new me(this), this.inputHandler = new Me(this), this.shortcutService = new De(this), this.shortcutService.addListener(this.selectionService);
1613
+ }
1614
+ static create(e, t, o = new z(), s = new Q(), i = new $e()) {
1615
+ return new he(
1616
+ e,
1617
+ t,
1618
+ i,
1619
+ o,
1620
+ s
1621
+ );
1679
1622
  }
1680
1623
  onActionTriggered(e) {
1681
1624
  if (e === "NAVIGATE_DOWN" && this.changeFocusCell(0, 1) || e === "NAVIGATE_UP" && this.changeFocusCell(0, -1) || e === "NAVIGATE_LEFT" && this.changeFocusCell(-1, 0) || e === "NAVIGATE_RIGHT" && this.changeFocusCell(1, 0))
@@ -1683,15 +1626,15 @@ class Ne extends ye {
1683
1626
  if (e === "START_EDITING" && this.getFocusModel) {
1684
1627
  const t = this.getFocusModel();
1685
1628
  if (t) {
1686
- const [o, i] = t.getFocus();
1687
- this.tableModel.getBodyModel().isEditable(o, i) && (this.clearSelection(), this.initRenderEditor(o, i));
1629
+ const [o, s] = t.getFocus();
1630
+ this.tableModel.getBodyModel().isEditable(o, s) && (this.clearSelection(), this.initRenderEditor(o, s));
1688
1631
  }
1689
1632
  return !0;
1690
1633
  }
1691
1634
  return !1;
1692
1635
  }
1693
- updateModelValueAfterEdit(e, t, o, i) {
1694
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, o, i) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(U.createSingle(t, o)), this.hostElement.focus());
1636
+ updateModelValueAfterEdit(e, t, o, s) {
1637
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, o, s) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(U.createSingle(t, o)), this.hostElement.focus());
1695
1638
  }
1696
1639
  getApi() {
1697
1640
  return this.api;
@@ -1701,19 +1644,19 @@ class Ne extends ye {
1701
1644
  */
1702
1645
  firstInit() {
1703
1646
  var e;
1704
- this.tableModel.init(), (e = this.tableOptions) != null && e.externalFilterFunction && this.externalFilterChanged(!1), this.autoRestoreCollapsedExpandedState(), this.autoRestoreSortingState(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows(), this.autoRestoreScrollPosition();
1647
+ return this.tableModel.init(), (e = this.tableOptions) != null && e.externalFilterFunction && this.externalFilterChanged(!1), this.autoRestoreCollapsedExpandedState(), this.autoRestoreSortingState(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows(), this.autoRestoreScrollPosition(), this;
1705
1648
  }
1706
1649
  createGeMouseEvent(e) {
1707
- const t = new j();
1650
+ const t = new X();
1708
1651
  if (t.originalEvent = e, e) {
1709
1652
  const o = e.target;
1710
1653
  if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(o), t.rowIndex = this.getNumberByAttr(o, "data-row-index"), t.columnIndex = this.getNumberByAttr(o, "data-col-index"), t.action = this.getStringByAttr(o, "data-ge-action"), t.areaIdent) {
1711
- const i = this.tableModel.getAreaModel(t.areaIdent);
1712
- t.rowTop = i.getYPosByRowIndex(t.rowIndex);
1654
+ const s = this.tableModel.getAreaModel(t.areaIdent);
1655
+ t.rowTop = s.getYPosByRowIndex(t.rowIndex);
1713
1656
  }
1714
1657
  if (t.columnLeft = this.tableModel.getXPosByColumnIndex(t.columnIndex), e.ctrlKey && e.altKey) {
1715
- const i = e.clientY - this.hostElement.offsetTop - this.areaHeaderCenter.parent.clientHeight, s = e.clientX - this.hostElement.offsetLeft - this.areaBodyWestGeo.width;
1716
- this.debugOnce(s, i);
1658
+ const s = e.clientY - this.hostElement.offsetTop - this.areaHeaderCenter.parent.clientHeight, i = e.clientX - this.hostElement.offsetLeft - this.areaBodyWestGeo.width;
1659
+ this.debugOnce(i, s);
1717
1660
  }
1718
1661
  }
1719
1662
  return t;
@@ -1736,20 +1679,20 @@ class Ne extends ye {
1736
1679
  toggleExpandCollapseAll(e = !0) {
1737
1680
  var o;
1738
1681
  const t = this.tableModel.getBodyModel();
1739
- t instanceof H && (t.toggleExpandCollapseAll(e), this.repaint(), (o = this.storeStateCollapsedExpandService) == null || o.collapsedStateAll(e));
1682
+ N(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (o = this.storeStateCollapsedExpandService) == null || o.collapsedStateAll(e));
1740
1683
  }
1741
1684
  toggleRowCheckbox(e, t, o) {
1742
1685
  var n;
1743
- const i = this.tableModel.getAreaModel(o), s = i.isRowChecked(e), r = s === void 0 || s === "semi" || s === "none";
1744
- i.setRowChecked(e, r), this.repaint();
1745
- const l = (n = i.rowSelectionModel) == null ? void 0 : n.getCheckedRows();
1686
+ const s = this.tableModel.getAreaModel(o), i = s.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
1687
+ s.setRowChecked(e, r), this.repaint();
1688
+ const l = (n = s.rowSelectionModel) == null ? void 0 : n.getCheckedRows();
1746
1689
  this.eventListener.onCheckboxChanged(l || []);
1747
1690
  }
1748
1691
  onMouseClicked(e, t) {
1749
1692
  let o = this.selectionService.onMouseClicked(e, t);
1750
1693
  if (!o && this.getFocusModel) {
1751
- const i = this.getFocusModel();
1752
- i && (o = i.hasChanged(), i.clearChanged(), o && this.resetEditorRenderer());
1694
+ const s = this.getFocusModel();
1695
+ s && (o = s.hasChanged(), s.clearChanged(), o && this.resetEditorRenderer());
1753
1696
  }
1754
1697
  this.eventListener.onMouseClicked(e), o && this.debounce(this.repaint.bind(this), 10);
1755
1698
  }
@@ -1758,20 +1701,20 @@ class Ne extends ye {
1758
1701
  t && (e && this.clearSelectionModel(), this.tableModel.externalFilterChanged(t), this.scrollViewport.scrollTo(0, 0), this.tableModel.recalcHeightAndPadding(), this.resetSizeOfWrapperDiv(), this.repaint());
1759
1702
  }
1760
1703
  onHeaderDblClicked(e, t, o) {
1761
- var s, r;
1762
- const i = this.tableModel.getColumnDef(o);
1763
- if (i != null && i.sortable && i.sortable()) {
1704
+ var i, r;
1705
+ const s = this.tableModel.getColumnDef(o);
1706
+ if (s != null && s.sortable && s.sortable()) {
1764
1707
  e.preventDefault(), e.stopPropagation();
1765
- const l = i.sortStatesOrder ? i.sortStatesOrder : this.tableOptions.sortOrder, n = i.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], a = new Ce(o, d);
1766
- this.tableModel.doSort([a]) && ((s = this.tableModel.getColumnDefs()) == null || s.forEach((g) => g.sortState = ""), i.sortState = d), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([a]);
1708
+ const l = s.sortStatesOrder ? s.sortStatesOrder : this.tableOptions.sortOrder, n = s.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], a = new Ee(o, d);
1709
+ this.tableModel.doSort([a]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((u) => u.sortState = ""), s.sortState = d), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([a]);
1767
1710
  }
1768
1711
  }
1769
1712
  changeFocusCell(e, t) {
1770
1713
  if (!this.isEditing() && this.getFocusModel) {
1771
1714
  const o = this.getFocusModel();
1772
1715
  if (o) {
1773
- const [i, s] = o.getFocus();
1774
- return o.setFocus(i + t, s + e), this.repaint(), !0;
1716
+ const [s, i] = o.getFocus();
1717
+ return o.setFocus(s + t, i + e), this.repaint(), !0;
1775
1718
  }
1776
1719
  }
1777
1720
  return !1;
@@ -1804,21 +1747,21 @@ class Ne extends ye {
1804
1747
  autoRestoreCollapsedExpandedState() {
1805
1748
  var e, t;
1806
1749
  if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.getRowId && this.storeStateCollapsedExpandService) {
1807
- const o = this.tableOptions.autoRestoreOptions, i = o.getRowId;
1808
- if (o.autoRestoreCollapsedExpandedState && i) {
1809
- const s = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
1810
- if (r instanceof H) {
1750
+ const o = this.tableOptions.autoRestoreOptions, s = o.getRowId;
1751
+ if (o.autoRestoreCollapsedExpandedState && s) {
1752
+ const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
1753
+ if (N(r)) {
1811
1754
  const l = r, n = r.getRowCount();
1812
1755
  for (let d = 0; d < n; d++) {
1813
1756
  const a = r.getRowByIndex(d);
1814
1757
  if (a)
1815
- if (s.allExpanded)
1758
+ if (i.allExpanded)
1816
1759
  a.expanded = !0;
1817
- else if (s.allCollapsed)
1760
+ else if (i.allCollapsed)
1818
1761
  a.expanded = !1;
1819
1762
  else {
1820
- const h = i(a.data);
1821
- s.mode === "expanded" ? a.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : s.mode === "collapsed" && (a.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
1763
+ const c = s(a.data);
1764
+ i.mode === "expanded" ? a.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(c) : i.mode === "collapsed" && (a.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(c));
1822
1765
  }
1823
1766
  }
1824
1767
  l.recalcVisibleTreeRows();
@@ -1827,11 +1770,11 @@ class Ne extends ye {
1827
1770
  }
1828
1771
  }
1829
1772
  }
1830
- class ae {
1773
+ class ce {
1831
1774
  }
1832
- ae.themes = ["light", "combat", "paper", "blackboard"];
1833
- ae.vars = {
1834
- light: `:root [data-theme="light"] {
1775
+ ce.themes = ["light", "combat", "paper", "blackboard"];
1776
+ ce.vars = {
1777
+ light: `html[data-theme="light"] {
1835
1778
  --ge-table-bg: rgba(255,255,255, 0.5);
1836
1779
  --ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
1837
1780
  --ge-table-header-center-bg: rgba(233, 233, 233, 0.5);
@@ -1889,7 +1832,7 @@ ae.vars = {
1889
1832
  --ge-table-dragged-col-div-bg: lightcyan;
1890
1833
  --ge-table-drop-zone-bg: rgba(244, 255, 242, 0.6);
1891
1834
  }`,
1892
- combat: `:root [data-theme="combat"] {
1835
+ combat: `html[data-theme="combat"] {
1893
1836
  --ge-table-bg: #101010;
1894
1837
  --ge-table-header-west-bg: #101010;
1895
1838
  --ge-table-header-center-bg: #101010;
@@ -1947,7 +1890,7 @@ ae.vars = {
1947
1890
  --ge-table-dragged-col-div-bg: #2c2e33;
1948
1891
  --ge-table-drop-zone-bg: #101010;
1949
1892
  }`,
1950
- paper: `:root [data-theme="paper"] {
1893
+ paper: `html[data-theme="paper"] {
1951
1894
  --ge-table-bg: #e7e5df;
1952
1895
  --ge-table-header-west-bg: oklch(80% 0.02 99 / 48%);
1953
1896
  --ge-table-header-center-bg: oklch(80% 0.02 99 / 48%);
@@ -2005,7 +1948,7 @@ ae.vars = {
2005
1948
  --ge-table-dragged-col-div-bg: #2c2e33;
2006
1949
  --ge-table-drop-zone-bg: #e7e5df;
2007
1950
  }`,
2008
- blackboard: `:root [data-theme="dark"] {
1951
+ blackboard: `html[data-theme="dark"] {
2009
1952
  --ge-table-bg: #0c1021;
2010
1953
  --ge-table-header-west-bg: #0c1021;
2011
1954
  --ge-table-header-center-bg: #0c1021;
@@ -2064,28 +2007,33 @@ ae.vars = {
2064
2007
  --ge-table-drop-zone-bg: #758129;
2065
2008
  }`
2066
2009
  };
2067
- class N {
2010
+ class Z {
2011
+ constructor(e, t = !0, o, s, i = 0, r = !1, l = !1) {
2012
+ this.data = e, this.expanded = t, this.children = o, this.parent = s, this.deep = i, this.checked = r, this.keep = l, this.type = "TreeRow";
2013
+ }
2014
+ }
2015
+ class j {
2068
2016
  static buildTreeRows(e, t = "children", o = 12) {
2069
- const i = [];
2070
- for (const s of e)
2071
- i.push(N.buildTreeRow(s, t, void 0, 0, o));
2072
- return i;
2017
+ const s = [];
2018
+ for (const i of e)
2019
+ s.push(j.buildTreeRow(i, t, void 0, 0, o));
2020
+ return s;
2073
2021
  }
2074
- static buildTreeRow(e, t = "children", o = new F(e, !0, [], void 0, 0), i = 0, s = 12) {
2022
+ static buildTreeRow(e, t = "children", o = new Z(e, !0, [], void 0, 0), s = 0, i = 12) {
2075
2023
  var l;
2076
- if (i > s)
2077
- return console.warn("Max deep limit reached: ", i), o;
2024
+ if (s > i)
2025
+ return console.warn("Max deep limit reached: ", s), o;
2078
2026
  const r = e[t];
2079
2027
  if (r)
2080
2028
  for (const n of r) {
2081
- const d = new F(n, !0, [], o, i + 1);
2082
- if ((l = o.children) == null || l.push(d), N.buildTreeRow(
2029
+ const d = new Z(n, !0, [], o, s + 1);
2030
+ if ((l = o.children) == null || l.push(d), j.buildTreeRow(
2083
2031
  n,
2084
2032
  t,
2085
2033
  d,
2086
- i + 1
2087
- ), i > s)
2088
- return console.warn("Max deep limit reached: ", i), o;
2034
+ s + 1
2035
+ ), s > i)
2036
+ return console.warn("Max deep limit reached: ", s), o;
2089
2037
  }
2090
2038
  return o;
2091
2039
  }
@@ -2100,29 +2048,29 @@ class f {
2100
2048
  this.value = e, this.unit = t;
2101
2049
  }
2102
2050
  }
2103
- const Te = () => !0, J = () => !1;
2104
- class V {
2105
- constructor(e, t, o = new f(100, "px"), i = new k(), s = new k(), r = new f(100, "px"), l = new f(100, "px"), n, d, a, h, g, m, b, w, u = () => this.visible) {
2106
- this.property = e, this.headerLabel = t, this.width = o, this.classes = i, this.rendererMap = s, this.minWidth = r, this.maxWidth = l, this.sortable = n, this.sortComparator = d, this.sortState = a, this.sortStatesOrder = h, this.sortIconVisible = g, this.editable = m, this.getEditRenderer = b, this.editInputPipe = w, this.isVisible = u, this.visible = !0;
2051
+ const Ve = () => !0, ee = () => !1;
2052
+ class H {
2053
+ constructor(e, t, o = new f(100, "px"), s = new I(), i = new I(), r = new f(100, "px"), l = new f(100, "px"), n, d, a, c, u, m, b, w, g = () => this.visible) {
2054
+ this.property = e, this.headerLabel = t, this.width = o, this.classes = s, this.rendererMap = i, this.minWidth = r, this.maxWidth = l, this.sortable = n, this.sortComparator = d, this.sortState = a, this.sortStatesOrder = c, this.sortIconVisible = u, this.editable = m, this.getEditRenderer = b, this.editInputPipe = w, this.isVisible = g, this.visible = !0;
2107
2055
  }
2108
2056
  static bodyRenderer(e) {
2109
- return new k(
2057
+ return new I(
2110
2058
  void 0,
2111
2059
  e,
2112
2060
  void 0
2113
2061
  );
2114
2062
  }
2115
2063
  static create(e) {
2116
- const t = new k(
2064
+ const t = new I(
2117
2065
  e.headerRenderer,
2118
2066
  e.bodyRenderer,
2119
2067
  e.footerRenderer
2120
- ), o = new k(
2068
+ ), o = new I(
2121
2069
  e.headerClasses,
2122
2070
  e.bodyClasses,
2123
2071
  e.footerClasses
2124
- ), i = e.sortIconVisible ?? e.sortable ?? J, s = e.editable ?? e.editable ?? J, r = e.isVisible ?? e.isVisible ?? Te;
2125
- return new V(
2072
+ ), s = e.sortIconVisible ?? e.sortable ?? ee, i = e.editable ?? e.editable ?? ee, r = e.isVisible ?? e.isVisible ?? Ve;
2073
+ return new H(
2126
2074
  e.property ?? "",
2127
2075
  e.headerLabel ?? "",
2128
2076
  e.width ?? new f(100, "px"),
@@ -2134,18 +2082,109 @@ class V {
2134
2082
  e.sortComparator,
2135
2083
  e.sortState,
2136
2084
  e.sortStatesOrder,
2137
- i,
2138
2085
  s,
2086
+ i,
2139
2087
  e.getEditRenderer,
2140
2088
  e.editInputPipe,
2141
2089
  r
2142
2090
  );
2143
2091
  }
2144
2092
  }
2145
- const je = new f(300, "px"), Xe = new f(290, "px"), Ye = new f(280, "px"), Ke = new f(270, "px"), Ue = new f(260, "px"), qe = new f(250, "px"), Je = new f(240, "px"), Qe = new f(230, "px"), Ze = new f(220, "px"), et = new f(210, "px"), Q = new f(200, "px"), tt = new f(190, "px"), ot = new f(180, "px"), it = new f(170, "px"), st = new f(160, "px"), rt = new f(150, "px"), lt = new f(140, "px"), nt = new f(130, "px"), at = new f(120, "px"), dt = new f(110, "px"), ht = new f(100, "px"), ct = new f(90, "px"), ut = new f(80, "px"), gt = new f(70, "px"), bt = new f(60, "px"), pt = new f(50, "px"), ft = new f(40, "px"), mt = new f(30, "px"), wt = new f(20, "px"), St = new f(10, "px"), xt = new f(0, "px");
2146
- class _ extends Y {
2147
- constructor(e, t, o, i = []) {
2148
- super(e, i, o), this.areaIdent = e, this.arr = t, this.defaultRowHeight = o, this.columnDefs = i, this.filteredArr = [...t];
2093
+ const Ke = new f(300, "px"), Ue = new f(290, "px"), qe = new f(280, "px"), Je = new f(270, "px"), Qe = new f(260, "px"), Ze = new f(250, "px"), et = new f(240, "px"), tt = new f(230, "px"), ot = new f(220, "px"), st = new f(210, "px"), te = new f(200, "px"), it = new f(190, "px"), rt = new f(180, "px"), lt = new f(170, "px"), nt = new f(160, "px"), at = new f(150, "px"), dt = new f(140, "px"), ht = new f(130, "px"), ct = new f(120, "px"), ut = new f(110, "px"), gt = new f(100, "px"), bt = new f(90, "px"), pt = new f(80, "px"), ft = new f(70, "px"), mt = new f(60, "px"), wt = new f(50, "px"), St = new f(40, "px"), xt = new f(30, "px"), yt = new f(20, "px"), Ct = new f(10, "px"), vt = new f(0, "px");
2094
+ class q {
2095
+ constructor(e, t = [], o = -1) {
2096
+ this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = o, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((s) => s.rendererMap[e]);
2097
+ }
2098
+ getTooltipAt(e, t) {
2099
+ return "";
2100
+ }
2101
+ getCellRenderer(e, t) {
2102
+ if (t < this.cellRenderers.length)
2103
+ return this.cellRenderers[t];
2104
+ }
2105
+ getColspanAt(e, t) {
2106
+ return 0;
2107
+ }
2108
+ getCustomClassesAt(e, t) {
2109
+ return [];
2110
+ }
2111
+ getCustomStyleAt(e, t) {
2112
+ }
2113
+ getRowspanAt(e, t) {
2114
+ return 0;
2115
+ }
2116
+ getRowByIndex(e) {
2117
+ }
2118
+ isRowCheckable(e) {
2119
+ return !0;
2120
+ }
2121
+ isRowChecked(e) {
2122
+ var o;
2123
+ const t = this.getRowByIndex(e);
2124
+ return (o = this.rowSelectionModel) == null ? void 0 : o.isRowChecked(t);
2125
+ }
2126
+ setRowChecked(e, t) {
2127
+ if (this.rowSelectionModel) {
2128
+ const o = this.getRowByIndex(e);
2129
+ this.rowSelectionModel.checkRow(o, t);
2130
+ }
2131
+ }
2132
+ getMaxColspan() {
2133
+ return 31;
2134
+ }
2135
+ getMaxRowspan() {
2136
+ return 31;
2137
+ }
2138
+ getYPosByRowIndex(e) {
2139
+ return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
2140
+ }
2141
+ init() {
2142
+ !this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
2143
+ }
2144
+ isFilterable() {
2145
+ return this.areaIdent === "body";
2146
+ }
2147
+ doSort(e) {
2148
+ return !1;
2149
+ }
2150
+ isEditable(e, t) {
2151
+ return this.columnDefs && t < this.columnDefs.length && this.columnDefs[t].editable ? this.columnDefs[t].editable() : !1;
2152
+ }
2153
+ setValue(e, t, o) {
2154
+ var l;
2155
+ const s = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
2156
+ s && (o = s(o, e, t));
2157
+ const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
2158
+ return r.includes(".") ? this.setPropertyValue(i, r.split("."), o) : (i[r] = o, !0);
2159
+ }
2160
+ isSelectable(e, t) {
2161
+ return !0;
2162
+ }
2163
+ changeColumnOrder(e, t) {
2164
+ this.arrayMove(this.cellRenderers, e, t);
2165
+ }
2166
+ setPropertyValue(e, t, o) {
2167
+ const s = t.shift();
2168
+ if (s) {
2169
+ let i = e[s];
2170
+ return i && t.length ? this.setPropertyValue(i, t, o) : (e[s] = o, !0);
2171
+ }
2172
+ return !1;
2173
+ }
2174
+ arrayMove(e, t, o) {
2175
+ const s = e.splice(t, 1)[0];
2176
+ return e.splice(o, 0, s), e;
2177
+ }
2178
+ calcYPositions() {
2179
+ const e = this.getRowCount();
2180
+ this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
2181
+ for (let t = 0; t < e; t++)
2182
+ this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
2183
+ }
2184
+ }
2185
+ class _ extends q {
2186
+ constructor(e, t, o, s = []) {
2187
+ super(e, s, o), this.areaIdent = e, this.arr = t, this.defaultRowHeight = o, this.columnDefs = s, this.filteredArr = [...t];
2149
2188
  }
2150
2189
  externalFilterChanged(e) {
2151
2190
  this.filteredArr = this.arr ? this.arr.filter(e) : [];
@@ -2157,9 +2196,9 @@ class _ extends Y {
2157
2196
  return this.filteredArr[e][t];
2158
2197
  }
2159
2198
  setValue(e, t, o) {
2160
- var s;
2161
- const i = (s = this.columnDefs[t]) == null ? void 0 : s.editInputPipe;
2162
- return i && (o = i(o, e, t)), this.arr[e][t] = o, !0;
2199
+ var i;
2200
+ const s = (i = this.columnDefs[t]) == null ? void 0 : i.editInputPipe;
2201
+ return s && (o = s(o, e, t)), this.arr[e][t] = o, !0;
2163
2202
  }
2164
2203
  getRowByIndex(e) {
2165
2204
  return this.filteredArr[e];
@@ -2231,16 +2270,149 @@ class D {
2231
2270
  isEditable(e, t) {
2232
2271
  return !1;
2233
2272
  }
2234
- setValue(e, t, o) {
2235
- return !1;
2273
+ setValue(e, t, o) {
2274
+ return !1;
2275
+ }
2276
+ isSelectable(e, t) {
2277
+ return !1;
2278
+ }
2279
+ changeColumnOrder(e, t) {
2280
+ }
2281
+ }
2282
+ class Be {
2283
+ flattenTree(e, t = []) {
2284
+ var o;
2285
+ for (const s of e)
2286
+ this.isVisible(s) && t.push(s), (o = s.children) != null && o.length && this.flattenTree(s.children, t);
2287
+ return t;
2288
+ }
2289
+ isVisible(e) {
2290
+ return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
2291
+ }
2292
+ }
2293
+ class ue {
2294
+ genericSortComparator(e, t, o) {
2295
+ if (typeof e == "number" && typeof t == "number")
2296
+ return o * (e - t);
2297
+ if (typeof e == "string" && typeof t == "string")
2298
+ return o * e.localeCompare(t);
2299
+ if (typeof e == "boolean" && typeof t == "boolean")
2300
+ return o * ((e ? -1 : 1) - (t ? -1 : 1));
2301
+ if (e instanceof Date && t instanceof Date)
2302
+ return o * (e.getTime() - t.getTime());
2303
+ if (e instanceof Array && t instanceof Array) {
2304
+ const s = e, i = t;
2305
+ if (s.length && i.length)
2306
+ return this.genericSortComparator(s[0], i[0], o);
2307
+ }
2308
+ return o * ("" + e).localeCompare("" + t);
2309
+ }
2310
+ }
2311
+ class oe extends q {
2312
+ constructor(e, t, o, s = []) {
2313
+ super(e, s, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = s, this.type = "AreaModelTree", this.sorterService = new ue(), this.service = new Be(), this.properties = s.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
2314
+ }
2315
+ changeColumnOrder(e, t) {
2316
+ this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
2317
+ }
2318
+ recalcVisibleTreeRows() {
2319
+ this.filteredFlattenRows = this.service.flattenTree(this.rows);
2320
+ }
2321
+ getFilteredFlattenRows() {
2322
+ return this.filteredFlattenRows;
2323
+ }
2324
+ getRowCount() {
2325
+ let e = 0;
2326
+ for (const t of this.filteredFlattenRows)
2327
+ this.service.isVisible(t) && e++;
2328
+ return e;
2329
+ }
2330
+ getValueAt(e, t) {
2331
+ const o = this.getRowByIndex(e);
2332
+ if (o) {
2333
+ const s = this.properties[t];
2334
+ if (s)
2335
+ return s.includes(".") ? this.getPropertyValue(o.data, s.split(".")) : o.data[s];
2336
+ }
2337
+ return "";
2338
+ }
2339
+ getRowHeight(e) {
2340
+ return this.defaultRowHeight;
2341
+ }
2342
+ getCustomClassesAt(e, t) {
2343
+ return ["ge-table-tree-cell", "ge-table-tree-deep-" + this.filteredFlattenRows[e].deep];
2344
+ }
2345
+ getRowByIndex(e) {
2346
+ return this.filteredFlattenRows[e];
2347
+ }
2348
+ getValueByT(e, t) {
2349
+ return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
2350
+ }
2351
+ externalFilterChanged(e) {
2352
+ this.lastPredictFn = e, this.doFiltering();
2353
+ }
2354
+ doSort(e) {
2355
+ const { columnIndex: t, sortState: o } = e[e.length - 1], s = o === "asc" ? 1 : o === "desc" ? -1 : 0, i = this.properties[t];
2356
+ return this.treeSort(this.rows, i, s), this.flattenRows = this.service.flattenTree(this.rows), this.filteredFlattenRows = [...this.flattenRows], !0;
2357
+ }
2358
+ toggleExpandCollapseAll(e) {
2359
+ this.expandAllRecursive(this.rows, e), this.flattenRows = this.service.flattenTree(this.rows), this.doFiltering();
2360
+ }
2361
+ setAllParentsOk(e) {
2362
+ return e.parent && (e.parent.keep = !0, this.setAllParentsOk(e.parent)), !1;
2363
+ }
2364
+ setValue(e, t, o) {
2365
+ var r;
2366
+ const s = (r = this.columnDefs[t]) == null ? void 0 : r.editInputPipe;
2367
+ s && (o = s(o, e, t));
2368
+ const i = this.getRowByIndex(e);
2369
+ if (i) {
2370
+ const l = i.data, n = this.columnDefs[t].property;
2371
+ return n.includes(".") ? this.setPropertyValue(l, n.split("."), o) : (l[n] = o, !0);
2372
+ }
2373
+ return !1;
2374
+ }
2375
+ genericTreeTableSortComparator(e, t) {
2376
+ return (o, s) => {
2377
+ const i = this.getValueByT(o.data, e), r = this.getValueByT(s.data, e);
2378
+ return this.sorterService.genericSortComparator(i, r, t);
2379
+ };
2380
+ }
2381
+ expandAllRecursive(e, t) {
2382
+ for (const o of e)
2383
+ o.expanded = t, o.children && this.expandAllRecursive(o.children, t);
2384
+ }
2385
+ doFiltering() {
2386
+ if (!this.lastPredictFn)
2387
+ this.filteredFlattenRows = [...this.flattenRows ? this.flattenRows : []];
2388
+ else {
2389
+ this.flattenRows || (this.flattenRows = []);
2390
+ let e = 0;
2391
+ this.flattenRows.forEach((o) => {
2392
+ e = Math.max(e, o.deep);
2393
+ });
2394
+ const t = this.flattenRows.filter(
2395
+ (o, s, i) => this.lastPredictFn(o, s, i)
2396
+ );
2397
+ this.flattenRows.forEach((o) => o.keep = !1), this.flattenRows.forEach((o) => {
2398
+ t.includes(o) && (o.keep = !0, this.setAllParentsOk(o));
2399
+ }), this.filteredFlattenRows = this.flattenRows.filter(
2400
+ (o, s, i) => o.keep
2401
+ );
2402
+ }
2236
2403
  }
2237
- isSelectable(e, t) {
2238
- return !1;
2404
+ getPropertyValue(e, t) {
2405
+ const o = t.shift();
2406
+ let s = e[o];
2407
+ return s && t.length ? this.getPropertyValue(s, t) : s;
2239
2408
  }
2240
- changeColumnOrder(e, t) {
2409
+ treeSort(e, t, o) {
2410
+ e.sort(this.genericTreeTableSortComparator(t, o));
2411
+ for (const s of e)
2412
+ s.children && this.treeSort(s.children, t, o);
2241
2413
  }
2242
2414
  }
2243
- class Z {
2415
+ class se {
2244
2416
  constructor(e = []) {
2245
2417
  this.allRootNodes = e;
2246
2418
  }
@@ -2280,8 +2452,8 @@ class Z {
2280
2452
  areAllChildrenChecked(e) {
2281
2453
  var t, o;
2282
2454
  if ((t = e.children) != null && t.length) {
2283
- for (const i of e.children)
2284
- if (!i.checked || (o = i.children) != null && o.length && !this.areAllChildrenChecked(i))
2455
+ for (const s of e.children)
2456
+ if (!s.checked || (o = s.children) != null && o.length && !this.areAllChildrenChecked(s))
2285
2457
  return !1;
2286
2458
  }
2287
2459
  return !0;
@@ -2289,8 +2461,8 @@ class Z {
2289
2461
  areAllChildrenUnchecked(e) {
2290
2462
  var t, o;
2291
2463
  if ((t = e.children) != null && t.length) {
2292
- for (const i of e.children)
2293
- if (i.checked || (o = i.children) != null && o.length && !this.areAllChildrenUnchecked(i))
2464
+ for (const s of e.children)
2465
+ if (s.checked || (o = s.children) != null && o.length && !this.areAllChildrenUnchecked(s))
2294
2466
  return !1;
2295
2467
  }
2296
2468
  return !0;
@@ -2300,39 +2472,12 @@ class Z {
2300
2472
  o.checked && t.push(o), o.children && this.addSelectedRecursive(o.children, t);
2301
2473
  }
2302
2474
  }
2303
- class ee {
2304
- constructor(e = 0, t = 0, o = 0, i = 0) {
2305
- this.top = e, this.right = t, this.bottom = o, this.left = i;
2306
- }
2307
- }
2308
- class te {
2309
- render(e, t, o, i, s, r, l) {
2310
- if (s.isRowCheckable(t)) {
2311
- l.addClass(e, "ge-table-row-checkbox-div");
2312
- const n = s.isRowChecked(t), d = n === "full" ? "checked" : "", a = n === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
2313
- e.innerHTML = `
2314
- <input
2315
- type="checkbox"
2316
- data-area="${i}"
2317
- data-row-index="${t}"
2318
- data-col-index="${o}"
2319
- data-input-type="checkbox"
2320
- ${d}
2321
- class="ge-table-row-checkbox">
2322
- ${a} `;
2323
- }
2324
- }
2325
- }
2326
- class _e {
2327
- constructor() {
2328
- this.property = "CheckboxColumn", this.headerLabel = "", this.width = new f(50, "px"), this.minWidth = new f(50, "px"), this.maxWidth = new f(100, "px"), this.rendererMap = new k(new te(), new te(), void 0), this.classes = new k(
2329
- [],
2330
- ["ge-table-text-align-left"],
2331
- []
2332
- );
2475
+ class ie {
2476
+ constructor(e = 0, t = 0, o = 0, s = 0) {
2477
+ this.top = e, this.right = t, this.bottom = o, this.left = s;
2333
2478
  }
2334
2479
  }
2335
- class De {
2480
+ class We {
2336
2481
  constructor() {
2337
2482
  this.checkedRows = [];
2338
2483
  }
@@ -2363,11 +2508,11 @@ class De {
2363
2508
  }
2364
2509
  }
2365
2510
  }
2366
- class z {
2367
- constructor(e, t, o, i = 0, s = 0, r = !1, l = new P(), n = [], d = [], a = -1, h = 0, g = 400, m = () => {
2511
+ class G {
2512
+ constructor(e, t, o, s = 0, i = 0, r = !1, l = new P(), n = [], d = [], a = -1, c = 0, u = 400, m = () => {
2368
2513
  }) {
2369
- var b, w, u, p;
2370
- this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = o, this.fixedLeftColumnCount = i, this.fixedRightColumnCount = s, this.rowCheckboxVisible = r, this.defaultRowHeights = l, this.columnDefs = n, this.columnSizes = d, this.overridingColumnWidth = a, this.columnCount = h, this.parentSize = g, this.getSelectionModel = m, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ee(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", o.areaIdent = "footer", this.columnCount || ((b = this.columnDefs) != null && b.length ? this.columnCount = this.columnDefs.length : (w = this.columnSizes) != null && w.length && (this.columnCount = (u = this.columnSizes) == null ? void 0 : u.length)), (p = this.columnDefs) != null && p.length && this.columnDefs[0] instanceof _e && !t.rowSelectionModel && (t.rowSelectionModel = new De());
2514
+ var b, w, g, p;
2515
+ this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = o, this.fixedLeftColumnCount = s, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = l, this.columnDefs = n, this.columnSizes = d, this.overridingColumnWidth = a, this.columnCount = c, this.parentSize = u, this.getSelectionModel = m, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ie(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", o.areaIdent = "footer", this.columnCount || ((b = this.columnDefs) != null && b.length ? this.columnCount = this.columnDefs.length : (w = this.columnSizes) != null && w.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (p = this.columnDefs) != null && p.length && be(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new We());
2371
2516
  }
2372
2517
  init() {
2373
2518
  this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
@@ -2395,11 +2540,11 @@ class z {
2395
2540
  this.rowCount = e.getRowCount(), this.contentHeightInPx = this.getAreaHeight("body"), this.recalcContentWidthInPx(), this.recalcPadding();
2396
2541
  }
2397
2542
  recalcPadding() {
2398
- const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), o = this.getAreaHeight("header"), i = this.getAreaHeight("footer");
2399
- this.padding = new ee(
2543
+ const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), o = this.getAreaHeight("header"), s = this.getAreaHeight("footer");
2544
+ this.padding = new ie(
2400
2545
  o,
2401
2546
  t,
2402
- i,
2547
+ s,
2403
2548
  e
2404
2549
  );
2405
2550
  }
@@ -2422,22 +2567,22 @@ class z {
2422
2567
  const t = this.getModel(e), o = t.getRowCount();
2423
2568
  if (this.defaultRowHeights[e])
2424
2569
  return o * this.defaultRowHeights[e];
2425
- let i = 0;
2426
- for (let s = 0; s < o; s++)
2427
- i = i + t.getRowHeight(s);
2428
- return i;
2570
+ let s = 0;
2571
+ for (let i = 0; i < o; i++)
2572
+ s = s + t.getRowHeight(i);
2573
+ return s;
2429
2574
  }
2430
2575
  getSideAreaWidth(e) {
2431
2576
  const [t, o] = this.getSideStartAndEndColumnIndex(e);
2432
- let i = 0;
2433
- for (let s = t; s <= o; s++)
2434
- i = i + this.getColumnWidth(s);
2435
- return i;
2577
+ let s = 0;
2578
+ for (let i = t; i <= o; i++)
2579
+ s = s + this.getColumnWidth(i);
2580
+ return s;
2436
2581
  }
2437
2582
  getSideStartAndEndColumnIndex(e) {
2438
2583
  const t = this.getFixedLeftColumnCount(), o = this.getFixedRightColumnCount();
2439
- let i = 0, s = this.columnCount - 1;
2440
- return e === "west" ? s = t - 1 : e === "east" ? i = this.columnCount - o : (i = t, s = this.columnCount - o - 1), [i, s];
2584
+ let s = 0, i = this.columnCount - 1;
2585
+ return e === "west" ? i = t - 1 : e === "east" ? s = this.columnCount - o : (s = t, i = this.columnCount - o - 1), [s, i];
2441
2586
  }
2442
2587
  getColumnDef(e) {
2443
2588
  if (e < this.columnDefs.length)
@@ -2491,30 +2636,30 @@ class z {
2491
2636
  return this.columnDefs && e < this.columnDefs.length && this.columnDefs[e].sortable ? this.columnDefs[e].sortable() : !1;
2492
2637
  }
2493
2638
  changeColumnOrder(e, t) {
2494
- var o, i, s;
2495
- this.arrayMove(this.columnDefs, e, t), this.arrayMove(this.columnSizes, e, t), (o = this.headerAreaModel) == null || o.changeColumnOrder(e, t), (i = this.bodyAreaModel) == null || i.changeColumnOrder(e, t), (s = this.footerAreaModel) == null || s.changeColumnOrder(e, t), this.calcXPositions();
2639
+ var o, s, i;
2640
+ this.arrayMove(this.columnDefs, e, t), this.arrayMove(this.columnSizes, e, t), (o = this.headerAreaModel) == null || o.changeColumnOrder(e, t), (s = this.bodyAreaModel) == null || s.changeColumnOrder(e, t), (i = this.footerAreaModel) == null || i.changeColumnOrder(e, t), this.calcXPositions();
2496
2641
  }
2497
2642
  recalcColumnWidthes(e) {
2498
- var t, o, i;
2499
- !((t = this.columnDefs) != null && t.length) && !((o = this.columnSizes) != null && o.length) && (this.columnSizes = new Array(this.getColumnCount()).fill(this.overridingColumnWidth)), (i = this.columnDefs) != null && i.length && (this.columnSizes = this.columnDefs.map((s) => {
2500
- if (s.width.unit === "%" && e) {
2501
- let r = Math.floor(s.width.value * e / 100);
2502
- if (s.minWidth) {
2503
- let l = s.minWidth.unit === "px" ? s.minWidth.value : Math.floor(s.minWidth.value * e / 100);
2643
+ var t, o, s;
2644
+ !((t = this.columnDefs) != null && t.length) && !((o = this.columnSizes) != null && o.length) && (this.columnSizes = new Array(this.getColumnCount()).fill(this.overridingColumnWidth)), (s = this.columnDefs) != null && s.length && (this.columnSizes = this.columnDefs.map((i) => {
2645
+ if (i.width.unit === "%" && e) {
2646
+ let r = Math.floor(i.width.value * e / 100);
2647
+ if (i.minWidth) {
2648
+ let l = i.minWidth.unit === "px" ? i.minWidth.value : Math.floor(i.minWidth.value * e / 100);
2504
2649
  r = Math.max(l, r);
2505
2650
  }
2506
- if (s.maxWidth) {
2507
- let l = s.maxWidth.unit === "px" ? s.maxWidth.value : Math.floor(s.maxWidth.value * e / 100);
2651
+ if (i.maxWidth) {
2652
+ let l = i.maxWidth.unit === "px" ? i.maxWidth.value : Math.floor(i.maxWidth.value * e / 100);
2508
2653
  r = Math.min(l, r);
2509
2654
  }
2510
2655
  return r;
2511
2656
  }
2512
- return s.width.value;
2657
+ return i.width.value;
2513
2658
  }));
2514
2659
  }
2515
2660
  arrayMove(e, t, o) {
2516
- const i = e.splice(t, 1)[0];
2517
- return e.splice(o, 0, i), e;
2661
+ const s = e.splice(t, 1)[0];
2662
+ return e.splice(o, 0, s), e;
2518
2663
  }
2519
2664
  recalcContentWidthInPx() {
2520
2665
  this.contentWidthInPx = this.getSideAreaWidth("center");
@@ -2526,9 +2671,9 @@ class z {
2526
2671
  this.xPositions[t + 1] = this.getColumnWidth(t) + this.xPositions[t];
2527
2672
  }
2528
2673
  }
2529
- class $e extends Y {
2530
- constructor(e, t, o, i = []) {
2531
- super(e, i, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = i, this.sorterService = new ne(), this.filteredRows = [...t], this.properties = i.map((s) => s.property);
2674
+ class Ge extends q {
2675
+ constructor(e, t, o, s = []) {
2676
+ super(e, s, o), this.areaIdent = e, this.rows = t, this.defaultRowHeight = o, this.columnDefs = s, this.sorterService = new ue(), this.filteredRows = [...t], this.properties = s.map((i) => i.property);
2532
2677
  }
2533
2678
  getRowCount() {
2534
2679
  var e;
@@ -2536,8 +2681,8 @@ class $e extends Y {
2536
2681
  }
2537
2682
  getValueAt(e, t) {
2538
2683
  const o = this.properties[t];
2539
- let i = this.filteredRows[e];
2540
- return i instanceof F && (i = i.data), i ? this.getValueByT(i, o) : "";
2684
+ let s = this.filteredRows[e];
2685
+ return O(s) && (s = s.data), s ? this.getValueByT(s, o) : "";
2541
2686
  }
2542
2687
  getFilteredRows() {
2543
2688
  return this.filteredRows;
@@ -2556,8 +2701,8 @@ class $e extends Y {
2556
2701
  }
2557
2702
  doSort(e) {
2558
2703
  for (const t of e) {
2559
- const { columnIndex: o, sortState: i } = t, s = i === "asc" ? 1 : i === "desc" ? -1 : 0, r = this.properties[o];
2560
- this.filteredRows = this.filteredRows.sort(this.genericFlatTableSortComparator(r, s));
2704
+ const { columnIndex: o, sortState: s } = t, i = s === "asc" ? 1 : s === "desc" ? -1 : 0, r = this.properties[o];
2705
+ this.filteredRows = this.filteredRows.sort(this.genericFlatTableSortComparator(r, i));
2561
2706
  }
2562
2707
  return !0;
2563
2708
  }
@@ -2568,172 +2713,74 @@ class $e extends Y {
2568
2713
  this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
2569
2714
  }
2570
2715
  genericFlatTableSortComparator(e, t) {
2571
- return (o, i) => {
2572
- const s = this.getValueByT(o, e), r = this.getValueByT(i, e);
2573
- return this.sorterService.genericSortComparator(s, r, t);
2716
+ return (o, s) => {
2717
+ const i = this.getValueByT(o, e), r = this.getValueByT(s, e);
2718
+ return this.sorterService.genericSortComparator(i, r, t);
2574
2719
  };
2575
2720
  }
2576
2721
  getPropertyValue(e, t) {
2577
2722
  const o = t.shift();
2578
- let i = e[o];
2579
- return i && t.length ? this.getPropertyValue(i, t) : i;
2723
+ let s = e[o];
2724
+ return s && t.length ? this.getPropertyValue(s, t) : s;
2580
2725
  }
2581
2726
  }
2582
- class oe extends $e {
2583
- constructor(e, t, o, i) {
2727
+ class re extends Ge {
2728
+ constructor(e, t, o, s) {
2584
2729
  super(
2585
2730
  e,
2586
2731
  t,
2587
- i,
2732
+ s,
2588
2733
  o
2589
- ), this.areaIdent = e, this.rows = t, this.columnDefs = o, this.defaultRowHeight = i;
2590
- }
2591
- }
2592
- class Fe {
2593
- render(e, t, o, i, s, r, l) {
2594
- if (s.isEditable(t, o)) {
2595
- l.addClass(e, "ge-table-row-input-div");
2596
- const n = s.getValueAt(t, o);
2597
- e.innerHTML = `
2598
- <input
2599
- type="text"
2600
- value="${n}"
2601
- autofocus
2602
- onfocus="this.setSelectionRange(0, this.value.length)"
2603
- data-listen="change"
2604
- data-area="${i}"
2605
- data-row-index="${t}"
2606
- data-col-index="${o}"
2607
- data-input-type="text"
2608
- style="width:calc(100% - 8px);height:100%;border:0;padding:0 0 0 8px;"
2609
- class="ge-table-cell-editor-input">`;
2610
- }
2611
- }
2612
- }
2613
- class Le {
2614
- constructor(e = "none", t = "single") {
2615
- this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
2616
- }
2617
- getSelectionCount(e, t) {
2618
- let o = 0;
2619
- for (const i of this.ranges)
2620
- i.isInRange(e, t) && o++;
2621
- return this.allSelected && o++, this.isInNegativeRange(e, t) && (o = 0), o;
2622
- }
2623
- isInNegativeRange(e, t) {
2624
- for (const o of this.negativeRanges)
2625
- if (o.isInRange(e, t))
2626
- return !0;
2627
- return !1;
2628
- }
2629
- getRanges() {
2630
- return this.ranges;
2631
- }
2632
- clear() {
2633
- this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
2634
- }
2635
- hasSelection() {
2636
- return !!this.ranges.length;
2637
- }
2638
- selectAll() {
2639
- this.allSelected = !0;
2640
- }
2641
- addSelection(e) {
2642
- this.addRange(e);
2643
- }
2644
- removeSelection(e) {
2645
- if (this.selectionType === "none")
2646
- return;
2647
- let t = e;
2648
- this.selectionType === "row" ? t = E.singleRow(e.r1) : this.selectionType === "column" && (t = E.singleColumn(e.c1)), this.negativeRanges.push(t);
2649
- }
2650
- togglePoint(e, t) {
2651
- this.getSelectionCount(e, t) > 0 ? this.removeSelection(E.singleCell(e, t)) : this.addSelection(E.singleCell(e, t));
2652
- }
2653
- addRange(e) {
2654
- this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e));
2655
- }
2656
- }
2657
- class Oe {
2658
- constructor(e = "none") {
2659
- this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1;
2660
- }
2661
- clearChanged() {
2662
- this.changed = !1;
2663
- }
2664
- hasChanged() {
2665
- return this.changed;
2666
- }
2667
- clear() {
2668
- this.rowIndex = -1, this.columnIndex = -1;
2669
- }
2670
- setFocus(e, t) {
2671
- (this.rowIndex !== e || this.columnIndex !== t) && (this.rowIndex = e, this.columnIndex = t, this.changed = !0);
2672
- }
2673
- hasFocus(e, t) {
2674
- return this.rowIndex === e && this.columnIndex === t;
2675
- }
2676
- getFocus() {
2677
- return [this.rowIndex, this.columnIndex];
2678
- }
2679
- }
2680
- const Pe = new Le(), He = new Oe("cell");
2681
- class ie {
2682
- constructor() {
2683
- 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 = {
2684
- header: 34,
2685
- body: 34,
2686
- footer: 34
2687
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new re(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new le(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new Fe(), this.getSelectionModel = () => Pe, this.getFocusModel = () => He;
2734
+ ), this.areaIdent = e, this.rows = t, this.columnDefs = o, this.defaultRowHeight = s;
2688
2735
  }
2689
2736
  }
2690
- class O {
2737
+ class L {
2691
2738
  static createTableModel(e) {
2692
- var t, o, i, s, r, l, n, d, a, h, g, m, b, w;
2739
+ var t, o, s, i, r, l, n, d, a, c, u, m, b, w;
2693
2740
  if (e.defaultRowHeights === void 0)
2694
2741
  if ((t = e.tableOptions) != null && t.defaultRowHeights)
2695
2742
  e.defaultRowHeights = e.tableOptions.defaultRowHeights;
2696
2743
  else {
2697
2744
  if (e.defaultRowHeights = new P(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
2698
- const u = e.headerAreaModel.defaultRowHeight;
2699
- u > -1 && (e.defaultRowHeights.header = u);
2745
+ const g = e.headerAreaModel.defaultRowHeight;
2746
+ g > -1 && (e.defaultRowHeights.header = g);
2700
2747
  }
2701
2748
  if (e.bodyAreaModel && "defaultRowHeight" in e.bodyAreaModel) {
2702
- const u = e.bodyAreaModel.defaultRowHeight;
2703
- u > -1 && (e.defaultRowHeights.body = u);
2749
+ const g = e.bodyAreaModel.defaultRowHeight;
2750
+ g > -1 && (e.defaultRowHeights.body = g);
2704
2751
  }
2705
2752
  if (e.footerAreaModel && "defaultRowHeight" in e.footerAreaModel) {
2706
- const u = e.footerAreaModel.defaultRowHeight;
2707
- u > -1 && (e.defaultRowHeights.footer = u);
2753
+ const g = e.footerAreaModel.defaultRowHeight;
2754
+ g > -1 && (e.defaultRowHeights.footer = g);
2708
2755
  }
2709
2756
  }
2710
- if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((u) => new V(u, u.toUpperCase(), Q)) : (i = e.rows) != null && i.length ? e.columnDefs = Object.keys(e.rows[0]).map((u) => new V(u, u.toUpperCase(), Q)) : e.columnDefs = []), e.columnCount === void 0 && ((s = e.columnDefs) != null && s.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (l = e.columnSizes) != null && l.length ? e.columnCount = (n = e.columnSizes) == null ? void 0 : n.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((d = e.headerData) != null && d.length ? e.headerAreaModel = new _(
2757
+ if (e.columnDefs === void 0 && ((o = e.properties) != null && o.length ? e.columnDefs = e.properties.map((g) => new H(g, g.toUpperCase(), te)) : (s = e.rows) != null && s.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new H(g, g.toUpperCase(), te)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (l = e.columnSizes) != null && l.length ? e.columnCount = (n = e.columnSizes) == null ? void 0 : n.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((d = e.headerData) != null && d.length ? e.headerAreaModel = new _(
2711
2758
  "header",
2712
2759
  e.headerData,
2713
2760
  e.defaultRowHeights.header,
2714
2761
  e.columnDefs
2715
2762
  ) : (a = e.columnDefs) != null && a.length ? e.headerAreaModel = new _(
2716
2763
  "header",
2717
- [e.columnDefs.map((u) => u.headerLabel)],
2764
+ [e.columnDefs.map((g) => g.headerLabel)],
2718
2765
  e.defaultRowHeights.header,
2719
2766
  e.columnDefs
2720
- ) : e.headerAreaModel = new D("header")), e.footerAreaModel || ((h = e.footerData) != null && h.length ? e.footerAreaModel = new _(
2767
+ ) : e.headerAreaModel = new D("header")), e.footerAreaModel || ((c = e.footerData) != null && c.length ? e.footerAreaModel = new _(
2721
2768
  "footer",
2722
2769
  e.footerData,
2723
2770
  e.defaultRowHeights.footer,
2724
2771
  e.columnDefs
2725
2772
  ) : e.footerAreaModel = new D("footer")), !e.bodyAreaModel)
2726
2773
  if (e.rows)
2727
- if ((g = e.rows) != null && g.length && e.rows[0] instanceof F) {
2728
- const u = e.rows;
2729
- e.bodyAreaModel = new H(
2774
+ if ((u = e.rows) != null && u.length && O(e.rows[0])) {
2775
+ const g = e.rows;
2776
+ e.bodyAreaModel = new oe(
2730
2777
  "body",
2731
- u,
2778
+ g,
2732
2779
  e.defaultRowHeights.body,
2733
2780
  e.columnDefs
2734
- ), (e.columnDefs[0].property === "CheckboxColumn" || (m = e.tableOptions) != null && m.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Z(u));
2781
+ ), (e.columnDefs[0].property === "CheckboxColumn" || (m = e.tableOptions) != null && m.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new se(g));
2735
2782
  } else
2736
- e.bodyAreaModel = new oe(
2783
+ e.bodyAreaModel = new re(
2737
2784
  "body",
2738
2785
  e.rows,
2739
2786
  e.columnDefs,
@@ -2745,7 +2792,7 @@ class O {
2745
2792
  e.bodyData,
2746
2793
  e.defaultRowHeights.body
2747
2794
  ) : e.bodyAreaModel = new D("body");
2748
- 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 && ((b = e.tableOptions) != null && b.getSelectionModel) && (e.getSelectionModel = (w = e.tableOptions) == null ? void 0 : w.getSelectionModel), new z(
2795
+ 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 && ((b = e.tableOptions) != null && b.getSelectionModel) && (e.getSelectionModel = (w = e.tableOptions) == null ? void 0 : w.getSelectionModel), new G(
2749
2796
  e.headerAreaModel,
2750
2797
  e.bodyAreaModel,
2751
2798
  e.footerAreaModel,
@@ -2762,30 +2809,30 @@ class O {
2762
2809
  );
2763
2810
  }
2764
2811
  static buildByTypedRowsParam(e) {
2765
- return O.buildByTypedRows(
2812
+ return L.buildByTypedRows(
2766
2813
  e.rows ?? [],
2767
2814
  e.columnDefs,
2768
- e.tableOptions ?? new ie(),
2815
+ e.tableOptions ?? new z(),
2769
2816
  e.fixedLeftColumnCount ?? 0,
2770
2817
  e.fixedRightColumnCount ?? 0
2771
2818
  );
2772
2819
  }
2773
- static buildByTypedRows(e, t, o = new ie(), i = 0, s = 0) {
2820
+ static buildByTypedRows(e, t, o = new z(), s = 0, i = 0) {
2774
2821
  const r = o.defaultRowHeights, l = t[0].property === "CheckboxColumn";
2775
- if (e != null && e.length && e[0] instanceof F) {
2776
- const n = e, d = new H(
2822
+ if (e != null && e.length && O(e[0])) {
2823
+ const n = e, d = new oe(
2777
2824
  "body",
2778
2825
  n,
2779
2826
  r.body,
2780
2827
  t
2781
2828
  );
2782
- return (l || o.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new Z(n)), O.createByAreaModelsParam({
2829
+ return (l || o.showCheckboxWihoutExtraColumn) && (d.rowSelectionModel = new se(n)), L.createByAreaModelsParam({
2783
2830
  headerAreaModel: new _("header", [t.map((a) => a.headerLabel)], r.header),
2784
2831
  bodyAreaModel: d,
2785
2832
  footerAreaModel: new _("footer", [], r.footer),
2786
2833
  columnDefs: t,
2787
- fixedLeftColumnCount: i,
2788
- fixedRightColumnCount: s,
2834
+ fixedLeftColumnCount: s,
2835
+ fixedRightColumnCount: i,
2789
2836
  defaultRowHeights: o.defaultRowHeights,
2790
2837
  rowCheckboxVisible: !1,
2791
2838
  columnSizes: [],
@@ -2793,17 +2840,17 @@ class O {
2793
2840
  overridingColumnWidth: -1
2794
2841
  });
2795
2842
  }
2796
- return O.createByObjectArrayParam({
2843
+ return L.createByObjectArrayParam({
2797
2844
  rows: e,
2798
2845
  columnDefs: t,
2799
- fixedLeftColumnCount: i,
2800
- fixedRightColumnCount: s,
2846
+ fixedLeftColumnCount: s,
2847
+ fixedRightColumnCount: i,
2801
2848
  defaultRowHeights: o.defaultRowHeights
2802
2849
  });
2803
2850
  }
2804
2851
  static createByObjectArrayParam(e) {
2805
2852
  const t = e.rowCheckboxVisible !== void 0 ? e.rowCheckboxVisible : !1;
2806
- return O.createByObjectArray(
2853
+ return L.createByObjectArray(
2807
2854
  e.rows,
2808
2855
  e.header ?? [],
2809
2856
  e.footer ?? [],
@@ -2815,23 +2862,23 @@ class O {
2815
2862
  e.columnSizes ?? []
2816
2863
  );
2817
2864
  }
2818
- static createByAreaModels(e = new D(), t, o = new D(), i = 0, s = 0, r = !1, l = new P(), n, d = [], a = -1, h) {
2819
- return new z(
2865
+ static createByAreaModels(e = new D(), t, o = new D(), s = 0, i = 0, r = !1, l = new P(), n, d = [], a = -1, c) {
2866
+ return new G(
2820
2867
  e,
2821
2868
  t,
2822
2869
  o,
2823
- i,
2824
2870
  s,
2871
+ i,
2825
2872
  r,
2826
2873
  l,
2827
2874
  n,
2828
2875
  d,
2829
2876
  a,
2830
- h
2877
+ c
2831
2878
  );
2832
2879
  }
2833
2880
  static createByAreaModelsParam(e) {
2834
- return O.createByAreaModels(
2881
+ return L.createByAreaModels(
2835
2882
  e.headerAreaModel ?? new D(),
2836
2883
  e.bodyAreaModel,
2837
2884
  e.footerAreaModel ?? new D(),
@@ -2845,16 +2892,16 @@ class O {
2845
2892
  e.columnCount ?? 0
2846
2893
  );
2847
2894
  }
2848
- static createByObjectArray(e, t = [], o = [], i = 0, s = 0, r = !1, l = new P(), n, d = []) {
2895
+ static createByObjectArray(e, t = [], o = [], s = 0, i = 0, r = !1, l = new P(), n, d = []) {
2849
2896
  let a;
2850
2897
  t != null && t.length ? a = new _("header", t, l.header, n) : n != null && n.length ? a = new _("header", [n.map((m) => m.headerLabel)], l.header, n) : a = new D();
2851
- const h = o ? new _("footer", o, l.footer, n) : new D(), g = new oe("body", e, n, l.body);
2852
- return new z(
2898
+ const c = o ? new _("footer", o, l.footer, n) : new D(), u = new re("body", e, n, l.body);
2899
+ return new G(
2853
2900
  a,
2854
- g,
2855
- h,
2856
- i,
2901
+ u,
2902
+ c,
2857
2903
  s,
2904
+ i,
2858
2905
  r,
2859
2906
  l,
2860
2907
  n,
@@ -2862,7 +2909,7 @@ class O {
2862
2909
  );
2863
2910
  }
2864
2911
  }
2865
- const yt = [
2912
+ const Rt = [
2866
2913
  //"COPY_2_CLIPBOARD",
2867
2914
  "START_EDITING",
2868
2915
  "TOGGLE_SELECTION",
@@ -2880,77 +2927,104 @@ const yt = [
2880
2927
  // "PAGEUP_PRESSED",
2881
2928
  // "PAGEDOWN_PRESSED"
2882
2929
  ];
2883
- class Ct {
2930
+ class At {
2884
2931
  constructor(e, t) {
2885
2932
  this.tableModel = e, this.tableOptions = t;
2886
2933
  }
2887
2934
  }
2888
- class Ve {
2889
- constructor(e, t, o, i, s, r, l) {
2890
- this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = o, this.filter = i, this.sorting = s, this.startIndex = r, this.endIndex = l;
2935
+ class Ne {
2936
+ constructor(e, t, o, s, i, r, l) {
2937
+ this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = o, this.filter = s, this.sorting = i, this.startIndex = r, this.endIndex = l;
2891
2938
  }
2892
2939
  }
2893
- class vt extends Ve {
2894
- constructor(e, t, o, i, s, r, l, n) {
2940
+ class Et extends Ne {
2941
+ constructor(e, t, o, s, i, r, l, n) {
2895
2942
  super(
2896
2943
  e,
2897
2944
  t,
2898
2945
  o,
2899
- i,
2900
2946
  s,
2947
+ i,
2901
2948
  r,
2902
2949
  l
2903
2950
  ), this.rows = n;
2904
2951
  }
2905
2952
  }
2906
- class Be {
2953
+ class ze {
2907
2954
  constructor(e, t) {
2908
2955
  this.value = e, this.label = t;
2909
2956
  }
2910
2957
  }
2911
- class Rt {
2958
+ class Mt {
2912
2959
  constructor(e, t) {
2913
2960
  this.index = e, this.px = t;
2914
2961
  }
2915
2962
  }
2916
- const At = { body: ["ge-table-text-align-left"] }, Et = { body: ["ge-table-text-align-center"] }, Mt = { body: ["ge-table-text-align-right"] }, It = {
2963
+ const kt = { body: ["ge-table-text-align-left"] }, It = { body: ["ge-table-text-align-center"] }, Tt = { body: ["ge-table-text-align-right"] }, _t = {
2917
2964
  header: ["ge-table-text-align-left"],
2918
2965
  body: ["ge-table-text-align-left"],
2919
2966
  footer: ["ge-table-text-align-left"]
2920
- }, kt = {
2967
+ }, Dt = {
2921
2968
  header: ["ge-table-text-align-center"],
2922
2969
  body: ["ge-table-text-align-center"],
2923
2970
  footer: ["ge-table-text-align-center"]
2924
- }, Tt = {
2971
+ }, $t = {
2925
2972
  header: ["ge-table-text-align-right"],
2926
2973
  body: ["ge-table-text-align-right"],
2927
2974
  footer: ["ge-table-text-align-right"]
2928
2975
  };
2929
- class _t {
2976
+ class le {
2977
+ render(e, t, o, s, i, r, l) {
2978
+ if (i.isRowCheckable(t)) {
2979
+ l.addClass(e, "ge-table-row-checkbox-div");
2980
+ const n = i.isRowChecked(t), d = n === "full" ? "checked" : "", a = n === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
2981
+ e.innerHTML = `
2982
+ <input
2983
+ type="checkbox"
2984
+ data-area="${s}"
2985
+ data-row-index="${t}"
2986
+ data-col-index="${o}"
2987
+ data-input-type="checkbox"
2988
+ ${d}
2989
+ class="ge-table-row-checkbox">
2990
+ ${a} `;
2991
+ }
2992
+ }
2993
+ }
2994
+ class Ft {
2995
+ constructor() {
2996
+ this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new f(50, "px"), this.minWidth = new f(50, "px"), this.maxWidth = new f(100, "px"), this.rendererMap = new I(new le(), new le(), void 0), this.classes = new I(
2997
+ [],
2998
+ ["ge-table-text-align-left"],
2999
+ []
3000
+ );
3001
+ }
3002
+ }
3003
+ class Lt {
2930
3004
  static body(e) {
2931
- return new k(
3005
+ return new I(
2932
3006
  void 0,
2933
3007
  e,
2934
3008
  void 0
2935
3009
  );
2936
3010
  }
2937
3011
  }
2938
- class Dt {
3012
+ class Ot {
2939
3013
  constructor(e = "down", t) {
2940
3014
  this.status = e, this.originalEvent = t;
2941
3015
  }
2942
3016
  }
2943
- class $t {
2944
- constructor(e, t, o, i) {
2945
- this.area = e, this.rowIndex = t, this.columnIndex = o, this.value = i;
3017
+ class Pt {
3018
+ constructor(e, t, o, s, i = {}) {
3019
+ this.area = e, this.rowIndex = t, this.columnIndex = o, this.value = s, this.cssClasses = i;
2946
3020
  }
2947
3021
  }
2948
- class Ft {
3022
+ class Ht {
2949
3023
  constructor() {
2950
3024
  this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, o) => {
2951
3025
  if (e && t && o.getRowId) {
2952
- const i = o.getRowId(e), s = o.getRowId(t);
2953
- return i === s;
3026
+ const s = o.getRowId(e), i = o.getRowId(t);
3027
+ return s === i;
2954
3028
  }
2955
3029
  return !1;
2956
3030
  }, this.getRowId = (e) => {
@@ -2970,13 +3044,13 @@ class Ft {
2970
3044
  };
2971
3045
  }
2972
3046
  }
2973
- class We {
2974
- constructor(e, t, o, i = !1, s = "normal", r = void 0) {
2975
- this.data = e, this.property = t, this.toggle = o, this.closed = i, this.visibility = s, this.children = r, this.impl = "CellGroup";
3047
+ class je {
3048
+ constructor(e, t, o, s = !1, i = "normal", r = void 0) {
3049
+ this.data = e, this.property = t, this.toggle = o, this.closed = s, this.visibility = i, this.children = r, this.impl = "CellGroup";
2976
3050
  }
2977
3051
  }
2978
- class Ge extends We {
2979
- constructor(e, t = 0, o = 0, i) {
3052
+ class Xe extends je {
3053
+ constructor(e, t = 0, o = 0, s) {
2980
3054
  super(
2981
3055
  e.data,
2982
3056
  e.property,
@@ -2984,7 +3058,7 @@ class Ge extends We {
2984
3058
  e.closed,
2985
3059
  e.visibility,
2986
3060
  e.children
2987
- ), this.rowIndex = t, this.childIndex = o, this.parent = i, this.impl = "CellGroupExt", this.children = void 0, this.leftNeighbour = void 0, this.rightNeighbour = void 0;
3061
+ ), this.rowIndex = t, this.childIndex = o, this.parent = s, this.impl = "CellGroupExt", this.children = void 0, this.leftNeighbour = void 0, this.rightNeighbour = void 0;
2988
3062
  }
2989
3063
  ownColumn() {
2990
3064
  return !!this.property;
@@ -3037,8 +3111,8 @@ class Ge extends We {
3037
3111
  getColumnCount(e = this, t = 0) {
3038
3112
  var o;
3039
3113
  if (e != null && e.claimsSpace() && t++, (o = e == null ? void 0 : e.children) != null && o.length)
3040
- for (const i of e.children)
3041
- t = this.getColumnCount(i, t);
3114
+ for (const s of e.children)
3115
+ t = this.getColumnCount(s, t);
3042
3116
  return t;
3043
3117
  }
3044
3118
  getRowSpan(e = this, t) {
@@ -3048,7 +3122,7 @@ class Ge extends We {
3048
3122
  return e.parent && (t = t + 1 + this.getParentCount(e.parent, t)), t;
3049
3123
  }
3050
3124
  log(e) {
3051
- const t = " ".substring(0, 2 * this.rowIndex), o = `${this.getColumnIndex()}`, i = `${this.getColumnCount(this)}`, s = `${this.getRowSpan(this, e)}`, r = `${this.getParentCount(this)}`;
3125
+ const t = " ".substring(0, 2 * this.rowIndex), o = `${this.getColumnIndex()}`, s = `${this.getColumnCount(this)}`, i = `${this.getRowSpan(this, e)}`, r = `${this.getParentCount(this)}`;
3052
3126
  if (console.info(`${t + this.data}
3053
3127
  childIndex:${this.childIndex}
3054
3128
  row:${this.rowIndex}
@@ -3058,23 +3132,23 @@ class Ge extends We {
3058
3132
  isVisible:${this.isVisible()}
3059
3133
  ownColumn:${this.ownColumn()}
3060
3134
  claimsSpace:${this.claimsSpace()}
3061
- colCount:${i}
3062
- rowSpan:${s}
3135
+ colCount:${s}
3136
+ rowSpan:${i}
3063
3137
  pc:${r}`.replace(/[ \n]+/g, " ")), this.children)
3064
3138
  for (const l of this.children)
3065
3139
  l.log(e);
3066
3140
  }
3067
3141
  }
3068
- class I {
3142
+ class k {
3069
3143
  static buildColumnDefs(e, t = []) {
3070
3144
  for (const o of e)
3071
3145
  o.property && t.push(
3072
- V.create({
3146
+ H.create({
3073
3147
  property: o.property,
3074
3148
  headerLabel: o.data ? o.data : o.property,
3075
3149
  isVisible: () => typeof o.isVisible == "function" ? o.isVisible() : !0
3076
3150
  })
3077
- ), o.children && I.buildColumnDefs(o.children, t);
3151
+ ), o.children && k.buildColumnDefs(o.children, t);
3078
3152
  return t;
3079
3153
  }
3080
3154
  /*
@@ -3095,17 +3169,17 @@ class I {
3095
3169
  return ret;
3096
3170
  }
3097
3171
  */
3098
- static buildGroupExts(e, t = [], o = 0, i) {
3099
- let s;
3172
+ static buildGroupExts(e, t = [], o = 0, s) {
3173
+ let i;
3100
3174
  for (let r = 0; r < e.length; r++) {
3101
- const l = e[r], n = new Ge(l, o, r, i);
3102
- s && (n.leftNeighbour = s, s.rightNeighbour = n), t.push(n), l.children && (n.children = I.buildGroupExts(l.children, [], o + 1, n)), s = n;
3175
+ const l = e[r], n = new Xe(l, o, r, s);
3176
+ i && (n.leftNeighbour = i, i.rightNeighbour = n), t.push(n), l.children && (n.children = k.buildGroupExts(l.children, [], o + 1, n)), i = n;
3103
3177
  }
3104
3178
  return t;
3105
3179
  }
3106
3180
  static flattenGroupExts(e, t = []) {
3107
3181
  for (const o of e)
3108
- t.push(o), o.children && I.flattenGroupExts(o.children, t);
3182
+ t.push(o), o.children && k.flattenGroupExts(o.children, t);
3109
3183
  return t;
3110
3184
  }
3111
3185
  /*
@@ -3116,15 +3190,15 @@ class I {
3116
3190
 
3117
3191
  */
3118
3192
  static buildArrayOfArrays(e, t) {
3119
- var s;
3120
- let o = -1, i = 99999;
3193
+ var i;
3194
+ let o = -1, s = 99999;
3121
3195
  for (const r of e) {
3122
- if (r.rowIndex <= i) {
3196
+ if (r.rowIndex <= s) {
3123
3197
  o++;
3124
3198
  for (let l = 0; l < t.length; l++)
3125
3199
  t[l][o] = null;
3126
3200
  }
3127
- if (t[r.rowIndex][o] = r, i = r.rowIndex, r.ownColumn() && ((s = r.children) != null && s.length)) {
3201
+ if (t[r.rowIndex][o] = r, s = r.rowIndex, r.ownColumn() && ((i = r.children) != null && i.length)) {
3128
3202
  for (let l = r.rowIndex + 1; l < t.length; l++)
3129
3203
  t[l][o] = void 0;
3130
3204
  o++;
@@ -3136,11 +3210,11 @@ class I {
3136
3210
  }
3137
3211
  static iterateThrowColumns(e = [], t) {
3138
3212
  var o;
3139
- for (const i of t)
3140
- e.push(i.data + " rowIndex:" + i.rowIndex), (o = i.children) != null && o.length && I.iterateThrowColumns(e, i.children);
3213
+ for (const s of t)
3214
+ e.push(s.data + " rowIndex:" + s.rowIndex), (o = s.children) != null && o.length && k.iterateThrowColumns(e, s.children);
3141
3215
  }
3142
3216
  }
3143
- class Lt {
3217
+ class Vt {
3144
3218
  constructor() {
3145
3219
  this.areaIdent = "body", this.rowSelectionModel = void 0;
3146
3220
  }
@@ -3207,22 +3281,22 @@ class Lt {
3207
3281
  return !1;
3208
3282
  }
3209
3283
  }
3210
- class ze {
3211
- render(e, t, o, i, s, r, l) {
3284
+ class Ye {
3285
+ render(e, t, o, s, i, r, l) {
3212
3286
  const n = r != null && r.data ? r.data : "";
3213
3287
  e.innerHTML = `${n}`;
3214
3288
  }
3215
3289
  }
3216
- class Ot {
3217
- constructor(e = "header", t, o = [], i) {
3218
- var s;
3219
- this.areaIdent = e, this.groups = t, this.columnDefs = o, this.defaultRowHeight = i, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new ze(), this.groupExts = I.buildGroupExts(t), console.info(this.groupExts), console.info(this.getAllLeafs()), console.info(this.getMaxRowCount());
3290
+ class Bt {
3291
+ constructor(e = "header", t, o = [], s) {
3292
+ var i;
3293
+ this.areaIdent = e, this.groups = t, this.columnDefs = o, this.defaultRowHeight = s, this.gammaCells = !0, this.groupExts = [], this.cellGroupExtCellRenderer = new Ye(), this.groupExts = k.buildGroupExts(t), console.info(this.groupExts), console.info(this.getAllLeafs()), console.info(this.getMaxRowCount());
3220
3294
  for (const r of this.groupExts)
3221
3295
  r.log(this.getMaxRowCount());
3222
- this.arr = this.buildArray(), !((s = this.columnDefs) != null && s.length) && e === "header" && (this.columnDefs = I.buildColumnDefs(t)), console.info("this.columnDefs", this.columnDefs), console.info("this.arr", this.arr);
3296
+ this.arr = this.buildArray(), !((i = this.columnDefs) != null && i.length) && e === "header" && (this.columnDefs = k.buildColumnDefs(t)), console.info("this.columnDefs", this.columnDefs), console.info("this.arr", this.arr);
3223
3297
  }
3224
3298
  getAllLeafs() {
3225
- return I.flattenGroupExts(this.groupExts).filter((t) => !t.children);
3299
+ return k.flattenGroupExts(this.groupExts).filter((t) => !t.children);
3226
3300
  }
3227
3301
  getMaxRowCount() {
3228
3302
  const e = this.getAllLeafs();
@@ -3230,13 +3304,13 @@ class Ot {
3230
3304
  }
3231
3305
  buildArray() {
3232
3306
  console.info("");
3233
- let e = I.flattenGroupExts(this.groupExts);
3307
+ let e = k.flattenGroupExts(this.groupExts);
3234
3308
  const t = e.length, o = 1 + Math.max(...e.map((l) => l.rowIndex));
3235
3309
  console.info("max row/col:", o + "/" + t);
3236
- const i = [];
3237
- I.iterateThrowColumns(i, this.groupExts), console.info(i);
3238
- const s = Array.from(Array(o).keys()).map((l) => []);
3239
- let r = I.buildArrayOfArrays(e, s);
3310
+ const s = [];
3311
+ k.iterateThrowColumns(s, this.groupExts), console.info(s);
3312
+ const i = Array.from(Array(o).keys()).map((l) => []);
3313
+ let r = k.buildArrayOfArrays(e, i);
3240
3314
  return console.table(r), r;
3241
3315
  }
3242
3316
  changeColumnOrder(e, t) {
@@ -3272,8 +3346,8 @@ class Ot {
3272
3346
  getRowspanAt(e, t) {
3273
3347
  const o = this.getValueAt(e, t);
3274
3348
  if (o) {
3275
- const i = this.getRowCount();
3276
- return o.getRowSpan(o, i);
3349
+ const s = this.getRowCount();
3350
+ return o.getRowSpan(o, s);
3277
3351
  }
3278
3352
  return 0;
3279
3353
  }
@@ -3311,69 +3385,45 @@ class Ot {
3311
3385
  return !1;
3312
3386
  }
3313
3387
  }
3314
- class Pt {
3315
- setStyle(e, t, o) {
3316
- return e.style[t] = o, e;
3317
- }
3318
- appendText(e, t) {
3319
- const o = this.createText(t);
3320
- return this.appendChild(e, o), o;
3321
- }
3322
- addClass(e, t) {
3323
- return t.includes(" ") ? t.split(" ").forEach((o) => e.classList.add(o)) : e.classList.add(t), e;
3324
- }
3325
- appendChild(e, t) {
3326
- e.appendChild(t);
3327
- }
3328
- createElement(e) {
3329
- return document.createElement(e);
3330
- }
3331
- createText(e) {
3332
- return document.createTextNode(e);
3333
- }
3334
- setAttribute(e, t, o) {
3335
- e.setAttribute(t, o);
3336
- }
3337
- }
3338
- class Ht {
3388
+ class Wt {
3339
3389
  filterPredict(e, t, o = this.objectToString.bind(this)) {
3340
3390
  if (!e)
3341
3391
  return !1;
3342
3392
  if (!t)
3343
3393
  return !0;
3344
3394
  t = t.toLowerCase();
3345
- const i = "+", s = "-", r = t.toLowerCase().split(" ").filter((h) => h !== i && h !== s && h !== ""), l = r.filter((h) => !h.startsWith(i) && !h.startsWith(s)), n = r.filter((h) => h.startsWith(i)).map((h) => h.replace(/\+/g, "")), d = r.filter((h) => h.startsWith(s)).map((h) => h.replace(/-/g, ""));
3395
+ const s = "+", i = "-", r = t.toLowerCase().split(" ").filter((c) => c !== s && c !== i && c !== ""), l = r.filter((c) => !c.startsWith(s) && !c.startsWith(i)), n = r.filter((c) => c.startsWith(s)).map((c) => c.replace(/\+/g, "")), d = r.filter((c) => c.startsWith(i)).map((c) => c.replace(/-/g, ""));
3346
3396
  let a = !l.length;
3347
- for (let h = 0; h < l.length; h++)
3348
- (a || o(e).includes(l[h])) && (a = !0);
3397
+ for (let c = 0; c < l.length; c++)
3398
+ (a || o(e).includes(l[c])) && (a = !0);
3349
3399
  if (!a)
3350
3400
  return !1;
3351
- for (let h = 0; h < n.length; h++)
3352
- if (!o(e).includes(n[h]))
3401
+ for (let c = 0; c < n.length; c++)
3402
+ if (!o(e).includes(n[c]))
3353
3403
  return !1;
3354
- for (let h = 0; h < d.length; h++)
3355
- if (o(e).includes(d[h]))
3404
+ for (let c = 0; c < d.length; c++)
3405
+ if (o(e).includes(d[c]))
3356
3406
  return !1;
3357
3407
  return !0;
3358
3408
  }
3359
- filterRows(e, t, o = (i) => JSON.stringify(i).toLowerCase()) {
3409
+ filterRows(e, t, o = (s) => JSON.stringify(s).toLowerCase()) {
3360
3410
  if (!e)
3361
3411
  return [];
3362
3412
  if (!t)
3363
3413
  return [...e];
3364
3414
  t = t.toLowerCase();
3365
- const i = "+", s = "-", r = t.toLowerCase().split(" ").filter((a) => a !== i && a !== s && a !== ""), l = r.filter((a) => !a.startsWith(i) && !a.startsWith(s)), n = r.filter((a) => a.startsWith(i)).map((a) => a.replace(/\+/g, "")), d = r.filter((a) => a.startsWith(s)).map((a) => a.replace(/-/g, ""));
3415
+ const s = "+", i = "-", r = t.toLowerCase().split(" ").filter((a) => a !== s && a !== i && a !== ""), l = r.filter((a) => !a.startsWith(s) && !a.startsWith(i)), n = r.filter((a) => a.startsWith(s)).map((a) => a.replace(/\+/g, "")), d = r.filter((a) => a.startsWith(i)).map((a) => a.replace(/-/g, ""));
3366
3416
  return e == null ? void 0 : e.filter((a) => {
3367
- let h = !l.length;
3368
- for (let g = 0; g < l.length; g++)
3369
- (h || o(a).includes(l[g])) && (h = !0);
3370
- if (!h)
3417
+ let c = !l.length;
3418
+ for (let u = 0; u < l.length; u++)
3419
+ (c || o(a).includes(l[u])) && (c = !0);
3420
+ if (!c)
3371
3421
  return !1;
3372
- for (let g = 0; g < n.length; g++)
3373
- if (!o(a).includes(n[g]))
3422
+ for (let u = 0; u < n.length; u++)
3423
+ if (!o(a).includes(n[u]))
3374
3424
  return !1;
3375
- for (let g = 0; g < d.length; g++)
3376
- if (o(a).includes(d[g]))
3425
+ for (let u = 0; u < d.length; u++)
3426
+ if (o(a).includes(d[u]))
3377
3427
  return !1;
3378
3428
  return !0;
3379
3429
  });
@@ -3382,49 +3432,49 @@ class Ht {
3382
3432
  if (!e)
3383
3433
  return "";
3384
3434
  const t = [], o = Object.keys(e);
3385
- for (let i = 0; i < o.length; i++) {
3386
- const s = o[i];
3387
- t.push(e[s]);
3435
+ for (let s = 0; s < o.length; s++) {
3436
+ const i = o[s];
3437
+ t.push(e[i]);
3388
3438
  }
3389
3439
  return t.join(" ").toLowerCase();
3390
3440
  }
3391
3441
  }
3392
- class Vt {
3442
+ class Gt {
3393
3443
  static bodyRenderer(e) {
3394
- return new k(void 0, e, void 0);
3444
+ return new I(void 0, e, void 0);
3395
3445
  }
3396
3446
  }
3397
- class Bt {
3447
+ class Nt {
3398
3448
  constructor(e, t = !0, o = !1) {
3399
3449
  this.property = e, this.skipCheckableCheck = t, this.readonly = o;
3400
3450
  }
3401
- render(e, t, o, i, s, r, l) {
3402
- if (this.readonly || this.skipCheckableCheck || s.isRowCheckable(t)) {
3451
+ render(e, t, o, s, i, r, l) {
3452
+ if (this.readonly || this.skipCheckableCheck || i.isRowCheckable(t)) {
3403
3453
  l.addClass(e, "ge-table-row-checkbox-div");
3404
- const n = s.getRowByIndex(t), a = s.getValueByT(n, this.property) === !0 ? "checked" : "", h = this.readonly ? " readonly " : "";
3454
+ const n = i.getRowByIndex(t), a = i.getValueByT(n, this.property) === !0 ? "checked" : "", c = this.readonly ? " readonly " : "";
3405
3455
  if (l.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
3406
3456
  <input
3407
3457
  type="checkbox"
3408
- data-area="${i}"
3458
+ data-area="${s}"
3409
3459
  data-row-index="${t}"
3410
3460
  data-col-index="${o}"
3411
3461
  data-property-index="${this.property}"
3412
3462
  data-input-type="checkbox"
3413
3463
  ${a}
3414
- ${h}
3464
+ ${c}
3415
3465
  class="ge-input-checkbox">`, !this.readonly) {
3416
- const g = e.querySelector(".ge-input-checkbox");
3417
- g && g.addEventListener("click", (m, b) => (n[this.property] = !n[this.property], !0));
3466
+ const u = e.querySelector(".ge-input-checkbox");
3467
+ u && u.addEventListener("click", (m, b) => (n[this.property] = !n[this.property], !0));
3418
3468
  }
3419
3469
  }
3420
3470
  }
3421
3471
  }
3422
- class Wt {
3423
- render(e, t, o, i, s, r, l) {
3472
+ class zt {
3473
+ render(e, t, o, s, i, r, l) {
3424
3474
  r && (e.innerText = new Date(r).toISOString());
3425
3475
  }
3426
3476
  }
3427
- class Gt {
3477
+ class jt {
3428
3478
  constructor() {
3429
3479
  this.formatter = new Intl.DateTimeFormat("de-DE", {
3430
3480
  year: "numeric",
@@ -3432,7 +3482,7 @@ class Gt {
3432
3482
  day: "2-digit"
3433
3483
  });
3434
3484
  }
3435
- render(e, t, o, i, s, r, l) {
3485
+ render(e, t, o, s, i, r, l) {
3436
3486
  if (r) {
3437
3487
  let n = "";
3438
3488
  try {
@@ -3441,111 +3491,111 @@ class Gt {
3441
3491
  n = r;
3442
3492
  }
3443
3493
  e.innerHTML = `
3444
- <div class="ge-table-label-div" data-row-index="${t}" data-col-index="${o}" data-area="${i}" style="position: relative; background: transparent; width: 100%; height: 100%;">
3445
- <div class="ge-table-label" data-row-index="${t}" data-col-index="${o}" data-area="${i}">${n}</div>
3494
+ <div class="ge-table-label-div" data-row-index="${t}" data-col-index="${o}" data-area="${s}" style="position: relative; background: transparent; width: 100%; height: 100%;">
3495
+ <div class="ge-table-label" data-row-index="${t}" data-col-index="${o}" data-area="${s}">${n}</div>
3446
3496
  </div>`;
3447
3497
  }
3448
3498
  }
3449
3499
  }
3450
- class zt {
3451
- render(e, t, o, i, s, r, l) {
3500
+ class Xt {
3501
+ render(e, t, o, s, i, r, l) {
3452
3502
  r && (e.innerText = new Date(r).toLocaleDateString());
3453
3503
  }
3454
3504
  }
3455
- class Nt {
3456
- render(e, t, o, i, s, r, l) {
3505
+ class Yt {
3506
+ render(e, t, o, s, i, r, l) {
3457
3507
  r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
3458
3508
  }
3459
3509
  }
3460
- class jt {
3461
- render(e, t, o, i, s, r, l) {
3510
+ class Kt {
3511
+ render(e, t, o, s, i, r, l) {
3462
3512
  r === "true" || r === !0 ? e.innerHTML = '<span class="ge-true-text-color">✅</span>' : r === "false" || r === !1 ? e.innerHTML = '<span class="ge-false-text-color">❌</span>' : e.innerText = "";
3463
3513
  }
3464
3514
  }
3465
- class Xt {
3466
- render(e, t, o, i, s, r, l) {
3515
+ class Ut {
3516
+ render(e, t, o, s, i, r, l) {
3467
3517
  r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
3468
3518
  }
3469
3519
  }
3470
- class Yt {
3520
+ class qt {
3471
3521
  constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
3472
3522
  this.min = e, this.max = t;
3473
3523
  }
3474
- render(e, t, o, i, s, r, l) {
3524
+ render(e, t, o, s, i, r, l) {
3475
3525
  r && (e.innerText = r, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && l.addClass(e, "ge-cell-error"));
3476
3526
  }
3477
3527
  }
3478
- class Kt {
3528
+ class Jt {
3479
3529
  constructor(e) {
3480
3530
  this.property = e;
3481
3531
  }
3482
- render(e, t, o, i, s, r, l) {
3532
+ render(e, t, o, s, i, r, l) {
3483
3533
  l.addClass(e, "ge-star-rating-div");
3484
- const n = s.getRowByIndex(t), d = +("" + s.getValueByT(n, this.property));
3534
+ const n = i.getRowByIndex(t), d = +("" + i.getValueByT(n, this.property));
3485
3535
  if (!isNaN(d)) {
3486
3536
  const a = [];
3487
- for (let g = 0; g < d; g++)
3537
+ for (let u = 0; u < d; u++)
3488
3538
  a.push("★");
3489
- const h = a.join(" ");
3539
+ const c = a.join(" ");
3490
3540
  e.innerHTML = `
3491
- <div class="ge-table-label-div" data-row-index="${t}" data-col-index="${o}" data-area="${i}" style="position: relative; background: transparent; width: 100%; height: 100%;">
3492
- <div class="ge-table-label" data-row-index="${t}" data-col-index="${o}" data-area="${i}">${h}</div>
3541
+ <div class="ge-table-label-div" data-row-index="${t}" data-col-index="${o}" data-area="${s}" style="position: relative; background: transparent; width: 100%; height: 100%;">
3542
+ <div class="ge-table-label" data-row-index="${t}" data-col-index="${o}" data-area="${s}">${c}</div>
3493
3543
  </div>`;
3494
3544
  }
3495
3545
  }
3496
3546
  }
3497
- class Ut {
3547
+ class Qt {
3498
3548
  constructor(e, t = 100, o = !1) {
3499
3549
  this.property = e, this.maxValue = t, this.labelVisible = o;
3500
3550
  }
3501
- render(e, t, o, i, s, r, l) {
3551
+ render(e, t, o, s, i, r, l) {
3502
3552
  l.addClass(e, "ge-star-rating-div");
3503
- const n = s.getRowByIndex(t), d = +("" + s.getValueByT(n, this.property));
3553
+ const n = i.getRowByIndex(t), d = +("" + i.getValueByT(n, this.property));
3504
3554
  if (!isNaN(d)) {
3505
- const a = d * 100 / this.maxValue, h = this.labelVisible ? Math.round(a) + "%" : "";
3555
+ const a = d * 100 / this.maxValue, c = this.labelVisible ? Math.round(a) + "%" : "";
3506
3556
  e.innerHTML = `
3507
3557
  <div class="ge-table-label-div"
3508
3558
  data-row-index="${t}"
3509
3559
  data-col-index="${o}"
3510
- data-area="${i}"
3511
- title="${h}"
3560
+ data-area="${s}"
3561
+ title="${c}"
3512
3562
  style="position: relative; background: transparent; width: 100%; height: 100%;">
3513
3563
  <div class="ge-table-progress-container"
3514
3564
  style="width:100%;height:50%;padding:0;margin-top:6px;"
3515
3565
  data-row-index="${t}"
3516
3566
  data-col-index="${o}"
3517
- data-area="${i}">
3567
+ data-area="${s}">
3518
3568
  <div class="ge-table-progress-bar"
3519
3569
  style="width:${a}%;height:100%;padding:0;margin:0;"
3520
3570
  data-row-index="${t}"
3521
3571
  data-col-index="${o}"
3522
- data-area="${i}">&nbsp;
3572
+ data-area="${s}">&nbsp;
3523
3573
  </div>
3524
3574
  </div>
3525
3575
  </div>`;
3526
3576
  }
3527
3577
  }
3528
3578
  }
3529
- const qt = function(c, e, t) {
3530
- return c ? Number(c) : "";
3579
+ const Zt = function(h, e, t) {
3580
+ return h ? Number(h) : "";
3531
3581
  };
3532
- class de {
3582
+ class ge {
3533
3583
  constructor(e) {
3534
3584
  this.options = e;
3535
3585
  }
3536
3586
  static create(e) {
3537
- return new de(
3538
- e.map((t) => new Be(t, t))
3587
+ return new ge(
3588
+ e.map((t) => new ze(t, t))
3539
3589
  );
3540
3590
  }
3541
- render(e, t, o, i, s, r, l) {
3542
- if (s.isEditable(t, o)) {
3591
+ render(e, t, o, s, i, r, l) {
3592
+ if (i.isEditable(t, o)) {
3543
3593
  l.addClass(e, "ge-table-row-select-div");
3544
- const n = s.getValueAt(t, o);
3594
+ const n = i.getValueAt(t, o);
3545
3595
  let d = [];
3546
- for (let h of this.options) {
3547
- const g = h.value === n ? " selected " : "";
3548
- d.push(`<option value="${h.value}" ${g}>${h.label}</option>`);
3596
+ for (let c of this.options) {
3597
+ const u = c.value === n ? " selected " : "";
3598
+ d.push(`<option value="${c.value}" ${u}>${c.label}</option>`);
3549
3599
  }
3550
3600
  const a = d.join("");
3551
3601
  e.innerHTML = `
@@ -3554,7 +3604,7 @@ class de {
3554
3604
  value="${n}"
3555
3605
  autofocus
3556
3606
  data-listen="change"
3557
- data-area="${i}"
3607
+ data-area="${s}"
3558
3608
  data-row-index="${t}"
3559
3609
  data-col-index="${o}"
3560
3610
  data-input-type="text"
@@ -3563,159 +3613,162 @@ class de {
3563
3613
  }
3564
3614
  }
3565
3615
  }
3566
- class Jt {
3616
+ class eo {
3567
3617
  constructor(e, t, o) {
3568
3618
  this.r = e, this.g = t, this.b = o;
3569
3619
  }
3570
3620
  }
3571
- class se {
3572
- constructor(e, t, o, i) {
3573
- this.minValue = e, this.minColor = t, this.maxValue = o, this.maxColor = i;
3621
+ class ne {
3622
+ constructor(e, t, o, s) {
3623
+ this.minValue = e, this.minColor = t, this.maxValue = o, this.maxColor = s;
3574
3624
  }
3575
3625
  }
3576
- class W {
3577
- static normalize(e, t, o, i = 0, s = 1) {
3578
- return (e - t) / (o - t) * (s - i) + i;
3626
+ class B {
3627
+ static normalize(e, t, o, s = 0, i = 1) {
3628
+ return (e - t) / (o - t) * (i - s) + s;
3579
3629
  }
3580
3630
  static getTwoColorGradientRGB(e, t) {
3581
- const o = W.normalize(e, t.minValue, t.maxValue, 0, 1), i = t.maxColor.r - t.minColor.r, s = t.maxColor.g - t.minColor.g, r = t.maxColor.b - t.minColor.b, l = i * o + t.minColor.r, n = s * o + t.minColor.g, d = r * o + t.minColor.b;
3631
+ const o = B.normalize(e, t.minValue, t.maxValue, 0, 1), s = t.maxColor.r - t.minColor.r, i = t.maxColor.g - t.minColor.g, r = t.maxColor.b - t.minColor.b, l = s * o + t.minColor.r, n = i * o + t.minColor.g, d = r * o + t.minColor.b;
3582
3632
  return `rgb(${Math.round(l)}, ${Math.round(n)}, ${Math.round(d)})`;
3583
3633
  }
3584
3634
  static getThreeColorGradientRGB(e, t) {
3585
- return e < t.middleValue ? W.getTwoColorGradientRGB(e, new se(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? W.getTwoColorGradientRGB(e, new se(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
3635
+ return e < t.middleValue ? B.getTwoColorGradientRGB(e, new ne(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? B.getTwoColorGradientRGB(e, new ne(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
3586
3636
  }
3587
3637
  }
3588
- class Qt {
3589
- constructor(e, t, o, i, s, r) {
3590
- this.minValue = e, this.minColor = t, this.middleValue = o, this.middleColor = i, this.maxValue = s, this.maxColor = r;
3638
+ class to {
3639
+ constructor(e, t, o, s, i, r) {
3640
+ this.minValue = e, this.minColor = t, this.middleValue = o, this.middleColor = s, this.maxValue = i, this.maxColor = r;
3591
3641
  }
3592
3642
  }
3593
3643
  export {
3594
- Y as AbstractAreaModel,
3595
- _t as AreaMapFactory,
3596
- Lt as AreaModel,
3644
+ q as AbstractAreaModel,
3645
+ Lt as AreaMapFactory,
3646
+ Vt as AreaModel,
3597
3647
  _ as AreaModelArrayOfArrays,
3598
- Ot as AreaModelCellGroups,
3648
+ Bt as AreaModelCellGroups,
3599
3649
  D as AreaModelHidden,
3600
- oe as AreaModelObjectArrayWithColumndefs,
3601
- $e as AreaModelObjectyArray,
3602
- H as AreaModelTree,
3603
- k as AreaObjectMap,
3604
- Ft as AutoRestoreOptions,
3605
- We as CellGroup,
3606
- Ge as CellGroupExt,
3607
- ze as CellGroupExtCellRenderer,
3650
+ re as AreaModelObjectArrayWithColumndefs,
3651
+ Ge as AreaModelObjectyArray,
3652
+ oe as AreaModelTree,
3653
+ I as AreaObjectMap,
3654
+ Ht as AutoRestoreOptions,
3655
+ je as CellGroup,
3656
+ Xe as CellGroupExt,
3657
+ Ye as CellGroupExtCellRenderer,
3608
3658
  E as CellRange,
3609
- I as CellgroupFactory,
3610
- Bt as CheckboxBooleanPropertyCellRenderer,
3611
- te as CheckboxCellRenderer,
3612
- _e as CheckboxColumnDef,
3613
- De as CheckboxModel,
3614
- vt as ChunkData,
3615
- xe as ColAndRowspanModel,
3616
- fe as CollapsedExpandedData,
3617
- Jt as ColorRgb,
3618
- V as ColumnDef,
3619
- he as ConvenienceDomService,
3620
- ae as CssVars,
3621
- Gt as DateToIntlDDMMYYYYCellRenderer,
3622
- Wt as DateToIsoCellRenderer,
3623
- zt as DateToLocaleDateCellRenderer,
3624
- Xt as DateToTecCellRenderer,
3659
+ k as CellgroupFactory,
3660
+ Nt as CheckboxBooleanPropertyCellRenderer,
3661
+ le as CheckboxCellRenderer,
3662
+ Ft as CheckboxColumnDef,
3663
+ We as CheckboxModel,
3664
+ Et as ChunkData,
3665
+ Re as ColAndRowspanModel,
3666
+ xe as CollapsedExpandedData,
3667
+ eo as ColorRgb,
3668
+ H as ColumnDef,
3669
+ pe as ConvenienceDomService,
3670
+ ce as CssVars,
3671
+ jt as DateToIntlDDMMYYYYCellRenderer,
3672
+ zt as DateToIsoCellRenderer,
3673
+ Xt as DateToLocaleDateCellRenderer,
3674
+ Ut as DateToTecCellRenderer,
3625
3675
  P as DefaultRowHeights,
3626
- Se as EleScope,
3627
- ke as EventAdapter,
3628
- J as FalseFn,
3676
+ ve as EleScope,
3677
+ Q as EventAdapter,
3678
+ ee as FalseFn,
3629
3679
  Oe as FocusModel,
3630
- Re as GeCellIndices,
3631
- W as GeCssColorUtil,
3632
- Ht as GeFilterService,
3633
- Dt as GeKeyEvent,
3680
+ ke as GeCellIndices,
3681
+ B as GeCssColorUtil,
3682
+ Wt as GeFilterService,
3683
+ Ot as GeKeyEvent,
3634
3684
  U as GeModelChangeEvent,
3635
- j as GeMouseEvent,
3685
+ X as GeMouseEvent,
3636
3686
  $ as GeoData,
3637
- L as Icon,
3638
- Rt as IndexAndPx,
3687
+ F as Icon,
3688
+ Mt as IndexAndPx,
3639
3689
  Fe as InputCellRenderer,
3640
- ve as InputHandler,
3641
- Nt as MaleFemaleToIconCellRenderer,
3642
- ue as MouseHandler,
3643
- ce as MouseTargetData,
3644
- Yt as NumberCellRenderer,
3645
- Me as OsxShortcutActionIdMapping,
3646
- ee as Padding,
3647
- Ut as ProgressBarCellRenderer,
3648
- ye as RenderScope,
3649
- Vt as Renderer,
3650
- Ve as RequestChunk,
3651
- de as SelectCellRenderer,
3690
+ Me as InputHandler,
3691
+ Yt as MaleFemaleToIconCellRenderer,
3692
+ me as MouseHandler,
3693
+ fe as MouseTargetData,
3694
+ qt as NumberCellRenderer,
3695
+ _e as OsxShortcutActionIdMapping,
3696
+ ie as Padding,
3697
+ Qt as ProgressBarCellRenderer,
3698
+ Ae as RenderScope,
3699
+ Gt as Renderer,
3700
+ Ne as RequestChunk,
3701
+ ge as SelectCellRenderer,
3652
3702
  Le as SelectionModel,
3653
- Ae as SelectionService,
3654
- Ie as ShortcutService,
3655
- Pt as SimpleDomService,
3703
+ Ie as SelectionService,
3704
+ De as ShortcutService,
3705
+ $e as SimpleDomService,
3656
3706
  f as Size,
3657
- Ce as SortItem,
3658
- le as SortedOptions,
3659
- Kt as StarRatingCellRenderer,
3660
- me as StoreStateCollapsedExpandService,
3661
- pe as StoreStateScrollPosService,
3662
- we as StoreStateSortingService,
3663
- ge as TableApi,
3664
- $t as TableCellUpdateEvent,
3665
- O as TableFactory,
3666
- z as TableModel,
3667
- Ct as TableModelAndOptions,
3668
- ie as TableOptions,
3669
- Ne as TableScope,
3670
- Qt as ThreeColorGradientArg,
3671
- Z as TreeCheckboxModel,
3672
- N as TreeFactory,
3673
- re as TreeOptions,
3674
- F as TreeRow,
3675
- be as TreeRowService,
3676
- jt as TrueFalseCellRenderer,
3677
- Te as TrueFn,
3678
- se as TwoColorGradientArg,
3679
- Be as ValueLabel,
3680
- Ee as WindowsShortcutActionIdMapping,
3681
- yt as actionIds,
3682
- kt as allCenter,
3683
- It as allLeft,
3684
- Tt as allRight,
3685
- Et as bodyCenter,
3686
- At as bodyLeft,
3687
- Mt as bodyRight,
3688
- qt as editInputPipeForNumber,
3689
- X as getAreaIdentByString,
3690
- xt as px0,
3691
- St as px10,
3692
- ht as px100,
3693
- dt as px110,
3694
- at as px120,
3695
- nt as px130,
3696
- lt as px140,
3697
- rt as px150,
3698
- st as px160,
3699
- it as px170,
3700
- ot as px180,
3701
- tt as px190,
3702
- wt as px20,
3703
- Q as px200,
3704
- et as px210,
3705
- Ze as px220,
3706
- Qe as px230,
3707
- Je as px240,
3708
- qe as px250,
3709
- Ue as px260,
3710
- Ke as px270,
3711
- Ye as px280,
3712
- Xe as px290,
3713
- mt as px30,
3714
- je as px300,
3715
- ft as px40,
3716
- pt as px50,
3717
- bt as px60,
3718
- gt as px70,
3719
- ut as px80,
3720
- ct as px90
3707
+ Ee as SortItem,
3708
+ de as SortedOptions,
3709
+ Jt as StarRatingCellRenderer,
3710
+ ye as StoreStateCollapsedExpandService,
3711
+ Se as StoreStateScrollPosService,
3712
+ Ce as StoreStateSortingService,
3713
+ we as TableApi,
3714
+ Pt as TableCellUpdateEvent,
3715
+ L as TableFactory,
3716
+ G as TableModel,
3717
+ At as TableModelAndOptions,
3718
+ z as TableOptions,
3719
+ he as TableScope,
3720
+ to as ThreeColorGradientArg,
3721
+ se as TreeCheckboxModel,
3722
+ j as TreeFactory,
3723
+ ae as TreeOptions,
3724
+ Z as TreeRow,
3725
+ Be as TreeRowService,
3726
+ Kt as TrueFalseCellRenderer,
3727
+ Ve as TrueFn,
3728
+ ne as TwoColorGradientArg,
3729
+ ze as ValueLabel,
3730
+ Te as WindowsShortcutActionIdMapping,
3731
+ Rt as actionIds,
3732
+ Dt as allCenter,
3733
+ _t as allLeft,
3734
+ $t as allRight,
3735
+ It as bodyCenter,
3736
+ kt as bodyLeft,
3737
+ Tt as bodyRight,
3738
+ Zt as editInputPipeForNumber,
3739
+ Y as getAreaIdentByString,
3740
+ N as isAreaModelTree,
3741
+ be as isCheckboxColumnDef,
3742
+ O as isTreeRow,
3743
+ vt as px0,
3744
+ Ct as px10,
3745
+ gt as px100,
3746
+ ut as px110,
3747
+ ct as px120,
3748
+ ht as px130,
3749
+ dt as px140,
3750
+ at as px150,
3751
+ nt as px160,
3752
+ lt as px170,
3753
+ rt as px180,
3754
+ it as px190,
3755
+ yt as px20,
3756
+ te as px200,
3757
+ st as px210,
3758
+ ot as px220,
3759
+ tt as px230,
3760
+ et as px240,
3761
+ Ze as px250,
3762
+ Qe as px260,
3763
+ Je as px270,
3764
+ qe as px280,
3765
+ Ue as px290,
3766
+ xt as px30,
3767
+ Ke as px300,
3768
+ St as px40,
3769
+ wt as px50,
3770
+ mt as px60,
3771
+ ft as px70,
3772
+ pt as px80,
3773
+ bt as px90
3721
3774
  };