@guiexpert/react-table 18.1.57 → 18.1.59

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.
Files changed (3) hide show
  1. package/index.cjs +14 -14
  2. package/index.js +538 -350
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import { jsx as te } from "react/jsx-runtime";
2
2
  import { useRef as se, useEffect as oe } from "react";
3
3
  import ie from "react-dom";
4
- function ae(f, e = 500) {
4
+ function re(g, e = 500) {
5
5
  let t = null;
6
6
  return function(...s) {
7
7
  t && window.clearTimeout(t), t = window.setTimeout(() => {
8
- f.apply(this, s), t = null;
8
+ g.apply(this, s), t = null;
9
9
  }, e);
10
10
  };
11
11
  }
@@ -34,15 +34,15 @@ class k {
34
34
  }
35
35
  }
36
36
  }
37
- function $(f) {
38
- return f && f.type === "TreeRow";
37
+ function O(g) {
38
+ return g && g.type === "TreeRow";
39
39
  }
40
- function H(f) {
41
- return f && f.type === "AreaModelTree";
40
+ function $(g) {
41
+ return g && g.type === "AreaModelTree";
42
42
  }
43
43
  class V {
44
- constructor(e = -1, t = -1, s = -1, o = -1, i, a, l, r = 0, n = 0, c = 0, h = "") {
45
- this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = a, this.originalEvent = l, this.clickCount = r, this.draggingX = n, this.draggingY = c, this.action = h;
44
+ constructor(e = -1, t = -1, s = -1, o = -1, i, r, l, a = 0, n = 0, c = 0, h = "") {
45
+ this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = l, this.clickCount = a, this.draggingX = n, this.draggingY = c, this.action = h;
46
46
  }
47
47
  clone() {
48
48
  return new V(
@@ -91,7 +91,7 @@ class J {
91
91
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
92
92
  }
93
93
  }
94
- class re {
94
+ class ae {
95
95
  constructor(e) {
96
96
  this.domService = e;
97
97
  }
@@ -164,83 +164,83 @@ class re {
164
164
  const s = this.domService.createElement("div");
165
165
  return this.addClass(e, s), this.domService.appendChild(t, s), s;
166
166
  }
167
- addRowDiv(e, t, s = -1, o, i, a = "") {
168
- const l = t.index ?? -1, r = this.getDivOrCreateDiv(l, e);
169
- if (this.domService.addClass(r, "ge-table-row-div"), this.domService.addClass(r, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
167
+ addRowDiv(e, t, s = -1, o, i, r = "") {
168
+ const l = t.index ?? -1, a = this.getDivOrCreateDiv(l, e);
169
+ if (this.domService.addClass(a, "ge-table-row-div"), this.domService.addClass(a, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
170
170
  const n = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
171
- this.domService.addClass(r, `ge-table-row-${n}`);
171
+ this.domService.addClass(a, `ge-table-row-${n}`);
172
172
  }
173
- if (this.domService.setStyle(r, "display", "clip"), this.domService.setStyle(r, "position", "absolute"), this.domService.setStyle(r, "left", `${t.left}px`), this.domService.setStyle(r, "top", `${t.top}px`), this.domService.setStyle(r, "width", `${t.width}px`), this.domService.setStyle(r, "height", `${t.height}px`), this.domService.setAttribute(r, "data-row-index", `${s}`), this.domService.setAttribute(r, "data-area", `${o}`), a) {
174
- const n = this.domService.createText(a);
175
- this.domService.appendChild(r, n);
173
+ if (this.domService.setStyle(a, "display", "clip"), this.domService.setStyle(a, "position", "absolute"), this.domService.setStyle(a, "left", `${t.left}px`), this.domService.setStyle(a, "top", `${t.top}px`), this.domService.setStyle(a, "width", `${t.width}px`), this.domService.setStyle(a, "height", `${t.height}px`), this.domService.setAttribute(a, "data-row-index", `${s}`), this.domService.setAttribute(a, "data-area", `${o}`), r) {
174
+ const n = this.domService.createText(r);
175
+ this.domService.appendChild(a, n);
176
176
  }
177
- return this.domService.appendChild(e.child, r), r;
177
+ return this.domService.appendChild(e.child, a), a;
178
178
  }
179
179
  addColumnDiv(e) {
180
- const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: a, sideIdent: l, text: r = "", treeArrow: n, tableOptions: c, checkedType: h = void 0, sortState: d } = e, m = c == null ? void 0 : c.treeOptions, p = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
181
- this.domService.addClass(b, "ge-table-col-div"), p && this.domService.addClass(b, "ge-with-checkbox"), this.domService.addClass(b, `ge-table-col-div-${s.index}`), this.domService.setAttribute(b, "data-col-index", `${s.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${a}`);
182
- const g = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
183
- if (a === "body" && l === "center" && this.domService.addClass(b, `ge-table-column-${g}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, m, o, i, a)), p && i === 0 && h && this.addCheckboxToDiv(b, h, a, o), r) {
184
- const u = n !== "none" && i === 0;
185
- this.addLabelDiv(b, r, u, o, i, a);
180
+ const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: l, text: a = "", treeArrow: n, tableOptions: c, checkedType: h = void 0, sortState: d } = e, u = c == null ? void 0 : c.treeOptions, p = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
181
+ this.domService.addClass(b, "ge-table-col-div"), p && this.domService.addClass(b, "ge-with-checkbox"), this.domService.addClass(b, `ge-table-col-div-${s.index}`), this.domService.setAttribute(b, "data-col-index", `${s.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${r}`);
182
+ const f = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
183
+ if (r === "body" && l === "center" && this.domService.addClass(b, `ge-table-column-${f}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, u, o, i, r)), p && i === 0 && h && this.addCheckboxToDiv(b, h, r, o), a) {
184
+ const m = n !== "none" && i === 0;
185
+ this.addLabelDiv(b, a, m, o, i, r);
186
186
  }
187
187
  return d && this.addSortedIcon(b, d, c == null ? void 0 : c.sortedOptions, i), this.domService.appendChild(t, b), b;
188
188
  }
189
189
  addCheckboxToDiv(e, t, s, o) {
190
- const i = this.domService.createElement("div"), a = t === "full" ? "checked" : "";
190
+ const i = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
191
191
  return i.innerHTML = `
192
192
  <input
193
193
  type="checkbox"
194
194
  data-area="${s}"
195
195
  data-row-index="${o}"
196
196
  data-input-type="checkbox"
197
- ${a}
197
+ ${r}
198
198
  class="ge-table-row-checkbox"> `, this.domService.setStyle(i, "display", "inline"), this.domService.setStyle(i, "width", "inherit"), this.domService.setAttribute(i, "data-row-index", `${o}`), this.domService.appendChild(e, i), i;
199
199
  }
200
- addLabelDiv(e, t = "", s = !1, o = -1, i = -1, a = "body") {
200
+ addLabelDiv(e, t = "", s = !1, o = -1, i = -1, r = "body") {
201
201
  const l = this.domService.createElement("div");
202
- 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", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${a}`), t)
202
+ 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", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`), t)
203
203
  if (s) {
204
- const r = this.domService.createText(t);
205
- this.domService.appendChild(l, r);
204
+ const a = this.domService.createText(t);
205
+ this.domService.appendChild(l, a);
206
206
  } else {
207
- const r = this.domService.createElement("div");
208
- this.domService.appendChild(l, r);
207
+ const a = this.domService.createElement("div");
208
+ this.domService.appendChild(l, a);
209
209
  const n = this.domService.createText(t);
210
- this.domService.addClass(r, "ge-table-label"), this.domService.appendChild(r, n), this.domService.setAttribute(r, "data-row-index", `${o}`), this.domService.setAttribute(r, "data-col-index", `${i}`), this.domService.setAttribute(r, "data-area", `${a}`);
210
+ this.domService.addClass(a, "ge-table-label"), this.domService.appendChild(a, n), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`);
211
211
  }
212
212
  return this.domService.appendChild(e, l), l;
213
213
  }
214
214
  addSortedIcon(e, t = "", s = new J(), o = -1) {
215
215
  const i = this.domService.createElement("div");
216
216
  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", `${o}`), this.domService.setAttribute(i, "data-area", "header");
217
- let a;
218
- t === "asc" ? a = s.iconAsc : t === "desc" ? a = s.iconDesc : a = s.iconPlaceholder;
219
- const l = a.content, r = this.domService.createText(l);
220
- this.domService.appendChild(i, r), a.style && this.applyStyleString(i, a.style);
221
- for (const n of a.classes)
217
+ let r;
218
+ t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
219
+ const l = r.content, a = this.domService.createText(l);
220
+ this.domService.appendChild(i, a), r.style && this.applyStyleString(i, r.style);
221
+ for (const n of r.classes)
222
222
  this.domService.addClass(i, n);
223
223
  return this.domService.appendChild(e, i), i;
224
224
  }
225
- addArrowDiv(e, t = "none", s = new q(), o = -1, i = -1, a = "body") {
225
+ addArrowDiv(e, t = "none", s = new q(), o = -1, i = -1, r = "body") {
226
226
  const l = this.domService.createElement("div");
227
- 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", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${a}`);
228
- let r;
229
- t === "expanded" ? r = s.arrowExpanded : t === "collapsed" ? r = s.arrowCollapsed : r = s.arrowPlaceholder;
230
- const n = r.content, c = this.domService.createText(n);
231
- this.domService.appendChild(l, c), r.style && this.applyStyleString(l, r.style);
232
- for (const h of r.classes)
227
+ 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", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
228
+ let a;
229
+ t === "expanded" ? a = s.arrowExpanded : t === "collapsed" ? a = s.arrowCollapsed : a = s.arrowPlaceholder;
230
+ const n = a.content, c = this.domService.createText(n);
231
+ this.domService.appendChild(l, c), a.style && this.applyStyleString(l, a.style);
232
+ for (const h of a.classes)
233
233
  this.domService.addClass(l, h);
234
234
  return this.domService.appendChild(e, l), l;
235
235
  }
236
236
  addColumnBorderDivs(e, t, s, o, i) {
237
237
  if (e.verticalBorderVisible) {
238
- const a = `ge-table-${o}-${i}-vertical-border`;
239
- this.addVerticalBorder(s, t, a);
238
+ const r = `ge-table-${o}-${i}-vertical-border`;
239
+ this.addVerticalBorder(s, t, r);
240
240
  }
241
241
  if (e.horizontalBorderVisible) {
242
- const a = `ge-table-${o}-${i}-horizontal-border`;
243
- this.addHorizontalBorder(s, t, a);
242
+ const r = `ge-table-${o}-${i}-horizontal-border`;
243
+ this.addHorizontalBorder(s, t, r);
244
244
  }
245
245
  return t;
246
246
  }
@@ -264,8 +264,8 @@ class re {
264
264
  applyStyleString(e, t) {
265
265
  const s = t.split(";").map((o) => o.trim()).filter((o) => o);
266
266
  for (const o of s) {
267
- const [i, a] = o.split(":");
268
- this.domService.setStyle(e, i.trim(), a.trim());
267
+ const [i, r] = o.split(":");
268
+ this.domService.setStyle(e, i.trim(), r.trim());
269
269
  }
270
270
  }
271
271
  getDivOrCreateDiv(e, t) {
@@ -273,13 +273,13 @@ class re {
273
273
  return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
274
274
  }
275
275
  }
276
- const N = (f) => f === "header" ? "header" : f === "footer" ? "footer" : "body";
276
+ const _ = (g) => g === "header" ? "header" : g === "footer" ? "footer" : "body";
277
277
  class le {
278
278
  constructor(e, t) {
279
279
  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)) {
280
280
  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"));
281
281
  const s = e.getAttribute("data-area");
282
- if (s && (this.areaIdent = N(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
282
+ if (s && (this.areaIdent = _(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
283
283
  const o = e;
284
284
  this.value = o.value;
285
285
  }
@@ -323,12 +323,12 @@ class ne {
323
323
  this.tableScope.toggleHeaderGroup(s), e.preventDefault(), e.stopPropagation();
324
324
  else if (s.inputType === "checkbox" && s.areaIdent)
325
325
  this.tableScope.toggleRowCheckbox(s.rowIdx, s.colIdx, s.areaIdent), e.preventDefault(), e.stopPropagation();
326
- else if ($(s.row) && s.areaModel) {
326
+ else if (O(s.row) && s.areaModel) {
327
327
  const o = s.colIdx === this.getArrowColumnIndex() && e.altKey, i = s.className.includes("ge-table-tree-arrow-div");
328
328
  if (o || i) {
329
329
  e.preventDefault(), e.stopPropagation();
330
- const a = s.row;
331
- a.expanded = !a.expanded, "recalcVisibleTreeRows" in s.areaModel && s.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(a);
330
+ const r = s.row;
331
+ r.expanded = !r.expanded, "recalcVisibleTreeRows" in s.areaModel && s.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(r);
332
332
  }
333
333
  }
334
334
  if (s.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
@@ -345,14 +345,14 @@ class ne {
345
345
  */
346
346
  onHostElementDblClicked(e) {
347
347
  if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
348
- const t = e.target, s = t.getAttribute("data-area"), o = N(s), i = Number(t.getAttribute("data-row-index")), a = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(o);
348
+ const t = e.target, s = t.getAttribute("data-area"), o = _(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(o);
349
349
  if (s && o === "header")
350
- this.tableScope.tableModel.isSortable(a) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, a));
350
+ this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
351
351
  else if (t.getAttribute("data-row-index")) {
352
- const r = l.getRowByIndex(i);
353
- if (s && o === "body" && l.isEditable(i, a) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, a)), $(r) && a === this.getArrowColumnIndex()) {
352
+ const a = l.getRowByIndex(i);
353
+ if (s && o === "body" && l.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), O(a) && r === this.getArrowColumnIndex()) {
354
354
  e.preventDefault(), e.stopPropagation();
355
- const n = r;
355
+ const n = a;
356
356
  n.expanded = !n.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(n);
357
357
  }
358
358
  }
@@ -378,11 +378,11 @@ class ne {
378
378
  * @returns {void}
379
379
  */
380
380
  updateCollapsedExpandedState(e) {
381
- var s, o, i, a, l;
381
+ var s, o, i, r, l;
382
382
  const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
383
383
  if (t) {
384
- const r = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, n = r === "collapsed" && !e.expanded || r === "expanded" && e.expanded, c = r === "collapsed" && e.expanded || r === "expanded" && !e.expanded, h = t(e.data);
385
- n ? (a = this.tableScope.storeStateCollapsedExpandService) == null || a.collapsedStateIdsPush(h) : c && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(h));
384
+ const a = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, n = a === "collapsed" && !e.expanded || a === "expanded" && e.expanded, c = a === "collapsed" && e.expanded || a === "expanded" && !e.expanded, h = t(e.data);
385
+ n ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : c && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(h));
386
386
  }
387
387
  }
388
388
  getArrowColumnIndex() {
@@ -419,6 +419,179 @@ class ne {
419
419
  }
420
420
  }
421
421
  class ce {
422
+ constructor(e, t = [], s = -1) {
423
+ this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
424
+ }
425
+ getTextValueAt(e, t) {
426
+ return "" + this.getValueAt(e, t);
427
+ }
428
+ getTooltipAt(e, t) {
429
+ return "";
430
+ }
431
+ getCellRenderer(e, t) {
432
+ if (t < this.cellRenderers.length)
433
+ return this.cellRenderers[t];
434
+ }
435
+ getColspanAt(e, t) {
436
+ return 0;
437
+ }
438
+ getCustomClassesAt(e, t) {
439
+ return [];
440
+ }
441
+ getCustomStyleAt(e, t) {
442
+ }
443
+ getRowspanAt(e, t) {
444
+ return 0;
445
+ }
446
+ getRowByIndex(e) {
447
+ }
448
+ isRowCheckable(e) {
449
+ return !0;
450
+ }
451
+ isRowChecked(e) {
452
+ var s;
453
+ const t = this.getRowByIndex(e);
454
+ return (s = this.rowSelectionModel) == null ? void 0 : s.isRowChecked(t);
455
+ }
456
+ setRowChecked(e, t) {
457
+ if (this.rowSelectionModel) {
458
+ const s = this.getRowByIndex(e);
459
+ this.rowSelectionModel.checkRow(s, t);
460
+ }
461
+ }
462
+ getMaxColspan() {
463
+ return 31;
464
+ }
465
+ getMaxRowspan() {
466
+ return 31;
467
+ }
468
+ getYPosByRowIndex(e) {
469
+ return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
470
+ }
471
+ init() {
472
+ !this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
473
+ }
474
+ isFilterable() {
475
+ return this.areaIdent === "body";
476
+ }
477
+ doSort(e) {
478
+ return !1;
479
+ }
480
+ isEditable(e, t) {
481
+ var o, i;
482
+ const s = (o = this.columnDefs) == null ? void 0 : o[t];
483
+ return ((i = s == null ? void 0 : s.editable) == null ? void 0 : i.call(s)) ?? !1;
484
+ }
485
+ setValue(e, t, s) {
486
+ var l;
487
+ const o = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
488
+ o && (s = o(s, e, t));
489
+ const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
490
+ return r.includes(".") ? this.setPropertyValue(i, r.split("."), s) : (i[r] = s, !0);
491
+ }
492
+ isSelectable(e, t) {
493
+ return !0;
494
+ }
495
+ changeColumnOrder(e, t) {
496
+ this.arrayMove(this.cellRenderers, e, t);
497
+ }
498
+ setPropertyValue(e, t, s) {
499
+ const o = t.shift();
500
+ if (o) {
501
+ const i = e[o];
502
+ return i && t.length ? this.setPropertyValue(i, t, s) : (e[o] = s, !0);
503
+ }
504
+ return !1;
505
+ }
506
+ arrayMove(e, t, s) {
507
+ const o = e.splice(t, 1)[0];
508
+ return e.splice(s, 0, o), e;
509
+ }
510
+ calcYPositions() {
511
+ const e = this.getRowCount();
512
+ this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
513
+ for (let t = 0; t < e; t++)
514
+ this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
515
+ }
516
+ }
517
+ class de {
518
+ genericSortComparator(e, t, s) {
519
+ if (typeof e == "number" && typeof t == "number")
520
+ return s * (e - t);
521
+ if (typeof e == "string" && typeof t == "string")
522
+ return s * e.localeCompare(t);
523
+ if (typeof e == "boolean" && typeof t == "boolean")
524
+ return s * ((e ? -1 : 1) - (t ? -1 : 1));
525
+ if (e instanceof Date && t instanceof Date)
526
+ return s * (e.getTime() - t.getTime());
527
+ if (e instanceof Array && t instanceof Array) {
528
+ const o = e, i = t;
529
+ if (o.length && i.length)
530
+ return this.genericSortComparator(o[0], i[0], s);
531
+ }
532
+ return s * ("" + e).localeCompare("" + t);
533
+ }
534
+ }
535
+ class he extends ce {
536
+ constructor(e, t, s, o = []) {
537
+ super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new de(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
538
+ }
539
+ setRows(e) {
540
+ this.rows = e, this.filteredRows = [...e];
541
+ }
542
+ filterRowsByPredict(e) {
543
+ this.rows = this.rows.filter(e), this.filteredRows = this.filteredRows.filter(e);
544
+ }
545
+ getRowCount() {
546
+ var e;
547
+ return ((e = this.filteredRows) == null ? void 0 : e.length) ?? 0;
548
+ }
549
+ getValueAt(e, t) {
550
+ const s = this.properties[t];
551
+ let o = this.filteredRows[e];
552
+ return O(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
553
+ }
554
+ getFilteredRows() {
555
+ return this.filteredRows;
556
+ }
557
+ getAllRows() {
558
+ return this.rows;
559
+ }
560
+ getRowHeight(e) {
561
+ return this.defaultRowHeight;
562
+ }
563
+ getRowByIndex(e) {
564
+ return this.filteredRows[e];
565
+ }
566
+ externalFilterChanged(e) {
567
+ this.filteredRows = this.rows ? this.rows.filter(e) : [];
568
+ }
569
+ doSort(e) {
570
+ for (const t of e) {
571
+ const { columnIndex: s, sortState: o } = t, i = o === "asc" ? 1 : o === "desc" ? -1 : 0, r = this.properties[s];
572
+ this.filteredRows = this.filteredRows.sort(this.genericFlatTableSortComparator(r, i));
573
+ }
574
+ return !0;
575
+ }
576
+ getValueByT(e, t) {
577
+ return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
578
+ }
579
+ changeColumnOrder(e, t) {
580
+ this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
581
+ }
582
+ genericFlatTableSortComparator(e, t) {
583
+ const s = this.columnDefs.find((o) => o.property === e);
584
+ return (o, i) => {
585
+ const r = this.getValueByT(o, e), l = this.getValueByT(i, e);
586
+ return s != null && s.sortComparator ? t * s.sortComparator(r, l, o, i, t) : this.sorterService.genericSortComparator(r, l, t);
587
+ };
588
+ }
589
+ getPropertyValue(e, t) {
590
+ const s = t.shift(), o = e[s];
591
+ return o && t.length ? this.getPropertyValue(o, t) : o;
592
+ }
593
+ }
594
+ class pe {
422
595
  constructor(e) {
423
596
  this.tableScope = e;
424
597
  }
@@ -604,9 +777,9 @@ class ce {
604
777
  */
605
778
  downloadExcel(e = "table.xlsx", t = "") {
606
779
  const s = [], o = this.tableScope.tableModel.getColumnCount(), i = ["header", "body", "footer"];
607
- for (const a of i) {
608
- const l = this.tableScope.tableModel.getAreaModel(a), r = (l == null ? void 0 : l.getRowCount()) ?? 0;
609
- for (let n = 0; n < r; n++) {
780
+ for (const r of i) {
781
+ const l = this.tableScope.tableModel.getAreaModel(r), a = (l == null ? void 0 : l.getRowCount()) ?? 0;
782
+ for (let n = 0; n < a; n++) {
610
783
  const c = [];
611
784
  s.push(c);
612
785
  for (let h = 0; h < o; h++)
@@ -644,8 +817,18 @@ class ce {
644
817
  getTableModel() {
645
818
  return this.tableScope.tableModel;
646
819
  }
820
+ getBodyModel() {
821
+ return this.tableScope.tableModel.getBodyModel();
822
+ }
823
+ setRows(e) {
824
+ const t = this.getBodyModel();
825
+ t instanceof he ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t);
826
+ }
827
+ reSort() {
828
+ this.tableScope.reSort();
829
+ }
647
830
  }
648
- class G {
831
+ class N {
649
832
  constructor(e) {
650
833
  this.getStorageKeyFn = e;
651
834
  }
@@ -662,8 +845,8 @@ class G {
662
845
  if (o) {
663
846
  const i = o + e;
664
847
  if ((t + "").includes("Map")) {
665
- const a = this.autoConvertMapToObject(t);
666
- this.persistItem(i, a);
848
+ const r = this.autoConvertMapToObject(t);
849
+ this.persistItem(i, r);
667
850
  } else
668
851
  this.persistItem(i, t);
669
852
  }
@@ -712,7 +895,7 @@ class G {
712
895
  // }
713
896
  // }
714
897
  }
715
- class de extends G {
898
+ class ge extends N {
716
899
  constructor(e) {
717
900
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
718
901
  }
@@ -734,14 +917,14 @@ class de extends G {
734
917
  }
735
918
  }
736
919
  }
737
- class he {
920
+ class fe {
738
921
  constructor(e = "collapsed", t = [], s = !1, o = !1) {
739
922
  this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
740
923
  }
741
924
  }
742
- class pe extends G {
925
+ class ue extends N {
743
926
  constructor(e) {
744
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new he(), this.load();
927
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new fe(), this.load();
745
928
  }
746
929
  collapsedExpandedStateGet() {
747
930
  return this.collapsedExpandedState;
@@ -773,7 +956,7 @@ class pe extends G {
773
956
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
774
957
  }
775
958
  }
776
- class ge extends G {
959
+ class me extends N {
777
960
  constructor(e) {
778
961
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
779
962
  }
@@ -799,7 +982,7 @@ class T {
799
982
  this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
800
983
  }
801
984
  }
802
- class fe {
985
+ class be {
803
986
  constructor(e, t, s, o) {
804
987
  this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new T(), this.areaBodyCenterGeo = new T(), this.areaBodyEastGeo = new T();
805
988
  const i = this.hostElement;
@@ -1005,7 +1188,7 @@ class E {
1005
1188
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
1006
1189
  }
1007
1190
  }
1008
- class me {
1191
+ class Se {
1009
1192
  constructor(e, t) {
1010
1193
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
1011
1194
  }
@@ -1016,12 +1199,12 @@ class me {
1016
1199
  const e = this.areaModel.getRowCount(), t = this.tableModel.getColumnCount();
1017
1200
  for (let s = 0; s < e; s++)
1018
1201
  for (let o = 0; o < t; o++) {
1019
- let i = this.areaModel.getColspanAt(s, o), a = this.areaModel.getRowspanAt(s, o);
1020
- if (i > 1 || a > 1) {
1021
- i === 0 && (i = 1), a === 0 && (a = 1);
1202
+ let i = this.areaModel.getColspanAt(s, o), r = this.areaModel.getRowspanAt(s, o);
1203
+ if (i > 1 || r > 1) {
1204
+ i === 0 && (i = 1), r === 0 && (r = 1);
1022
1205
  const l = "gammaCells" in this.areaModel;
1023
1206
  this.colAndRowspanRanges.push(
1024
- new E(s, o, s + a - 1, o + i - 1, l)
1207
+ new E(s, o, s + r - 1, o + i - 1, l)
1025
1208
  );
1026
1209
  }
1027
1210
  }
@@ -1038,22 +1221,22 @@ class me {
1038
1221
  return !1;
1039
1222
  }
1040
1223
  }
1041
- class ue {
1224
+ class ye {
1042
1225
  constructor(e, t, s) {
1043
1226
  this.header = e, this.body = t, this.footer = s;
1044
1227
  }
1045
1228
  }
1046
- class be extends fe {
1229
+ class xe extends be {
1047
1230
  constructor(e, t, s, o) {
1048
- var a, l;
1231
+ var r, l;
1049
1232
  super(e, t, s, o), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
1050
1233
  header: [],
1051
1234
  body: [],
1052
1235
  footer: []
1053
- }, this.tree = !1, this.colAndRowspanModels = new ue(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (a = this.tableOptions) != null && a.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), H(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1054
- (r) => {
1236
+ }, this.tree = !1, this.colAndRowspanModels = new ye(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], 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")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1237
+ (a) => {
1055
1238
  var n;
1056
- this.colAndRowspanModels[r] = new me(t, t.getAreaModel(r)), (n = this.colAndRowspanModels[r]) == null || n.init();
1239
+ this.colAndRowspanModels[a] = new Se(t, t.getAreaModel(a)), (n = this.colAndRowspanModels[a]) == null || n.init();
1057
1240
  }
1058
1241
  );
1059
1242
  }
@@ -1190,23 +1373,23 @@ class be extends fe {
1190
1373
  * @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
1191
1374
  */
1192
1375
  rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
1193
- const a = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', r = document.querySelector(l);
1194
- if (r) {
1376
+ const r = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', a = document.querySelector(l);
1377
+ if (a) {
1195
1378
  let n;
1196
1379
  const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
1197
1380
  let h;
1198
- if (c ? h = this.editorRenderer : h = a.getCellRenderer(t, s), r.innerText = "", this.applyCssClasses(r, i), h)
1199
- n = h.render(r, t, s, e, a, o, this.dom.domService), n && this.cleanupFunctions[e].push(n);
1381
+ if (c ? h = this.editorRenderer : h = r.getCellRenderer(t, s), a.innerText = "", this.applyCssClasses(a, i), h)
1382
+ n = h.render(a, t, s, e, r, o, this.dom.domService), n && this.cleanupFunctions[e].push(n);
1200
1383
  else {
1201
1384
  const p = `${o}`;
1202
- this.dom.addLabelDiv(r, p, !1, t, s, e);
1385
+ this.dom.addLabelDiv(a, p, !1, t, s, e);
1203
1386
  }
1204
- const d = a.getCustomClassesAt(t, s);
1205
- d.length && this.dom.addClasses(d, r);
1206
- const m = a.getCustomStyleAt(t, s);
1207
- if (m)
1208
- for (const p in m)
1209
- this.dom.setStyle(r, p, m[p]);
1387
+ const d = r.getCustomClassesAt(t, s);
1388
+ d.length && this.dom.addClasses(d, a);
1389
+ const u = r.getCustomStyleAt(t, s);
1390
+ if (u)
1391
+ for (const p in u)
1392
+ this.dom.setStyle(a, p, u[p]);
1210
1393
  }
1211
1394
  }
1212
1395
  /**
@@ -1304,21 +1487,21 @@ class be extends fe {
1304
1487
  * @protected
1305
1488
  */
1306
1489
  adjustArea(e, t = 0) {
1307
- var g;
1308
- const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), a = o.child.clientHeight;
1490
+ var f;
1491
+ const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
1309
1492
  s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
1310
- const l = 0, r = this.areaBodyCenterGeo.width, n = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
1493
+ const l = 0, a = this.areaBodyCenterGeo.width, n = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
1311
1494
  for (; this.cleanupFunctions[e].length; ) {
1312
- const u = this.cleanupFunctions[e].shift();
1313
- u && u();
1495
+ const m = this.cleanupFunctions[e].shift();
1496
+ m && m();
1314
1497
  }
1315
1498
  let d = t;
1316
- const m = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
1317
- for (let u = 0; u < h; u++) {
1318
- const x = d, S = u === h - 1, w = this.tableModel.getRowHeight(e, u);
1319
- if (x + w > 0) {
1320
- this.firstVisibleRowIndex = u;
1321
- let v = { left: l, width: r, height: w, top: x, index: u }, y = this.dom.addRowDiv(o, v, u, e, "center");
1499
+ const u = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
1500
+ for (let m = 0; m < h; m++) {
1501
+ const x = d, S = m === h - 1, C = this.tableModel.getRowHeight(e, m);
1502
+ if (x + C > 0) {
1503
+ this.firstVisibleRowIndex = m;
1504
+ let v = { left: l, width: a, height: C, top: x, index: m }, y = this.dom.addRowDiv(o, v, m, e, "center");
1322
1505
  const R = b;
1323
1506
  if (this.adjustColumnsToRowParent({
1324
1507
  areaIdent: e,
@@ -1326,34 +1509,34 @@ class be extends fe {
1326
1509
  areaModel: c,
1327
1510
  geo: v,
1328
1511
  parent: y,
1329
- rowIndex: u,
1512
+ rowIndex: m,
1330
1513
  columnIndexStart: R,
1331
- columnIndexEnd: m - p - 1,
1514
+ columnIndexEnd: u - p - 1,
1332
1515
  verticalFixed: !1,
1333
1516
  lastRowOfModel: S
1334
- }), n.left > 0 && (v = { left: l, width: this.areaBodyWestGeo.width, height: w, top: x, index: u }, y = this.dom.addRowDiv(s, v, u, e, "west"), this.adjustColumnsToRowParent({
1517
+ }), n.left > 0 && (v = { left: l, width: this.areaBodyWestGeo.width, height: C, top: x, index: m }, y = this.dom.addRowDiv(s, v, m, e, "west"), this.adjustColumnsToRowParent({
1335
1518
  areaIdent: e,
1336
1519
  sideIdent: "west",
1337
1520
  areaModel: c,
1338
1521
  geo: v,
1339
1522
  parent: y,
1340
- rowIndex: u,
1523
+ rowIndex: m,
1341
1524
  columnIndexStart: 0,
1342
1525
  columnIndexEnd: R - 1,
1343
1526
  verticalFixed: !0,
1344
1527
  lastRowOfModel: S
1345
- })), n.right > 0 && (v = { left: l, width: this.areaBodyEastGeo.width, height: w, top: x, index: u }, y = this.dom.addRowDiv(i, v, u, e, "east"), this.adjustColumnsToRowParent({
1528
+ })), n.right > 0 && (v = { left: l, width: this.areaBodyEastGeo.width, height: C, top: x, index: m }, y = this.dom.addRowDiv(i, v, m, e, "east"), this.adjustColumnsToRowParent({
1346
1529
  areaIdent: e,
1347
1530
  sideIdent: "east",
1348
1531
  areaModel: c,
1349
1532
  geo: v,
1350
1533
  parent: y,
1351
- rowIndex: u,
1352
- columnIndexStart: m - p,
1353
- columnIndexEnd: m - 1,
1534
+ rowIndex: m,
1535
+ columnIndexStart: u - p,
1536
+ columnIndexEnd: u - 1,
1354
1537
  verticalFixed: !0,
1355
1538
  lastRowOfModel: S
1356
- })), e === "header" && this.tree && u === h - 1) {
1539
+ })), e === "header" && this.tree && m === h - 1) {
1357
1540
  const A = this.dom.applyStyle(
1358
1541
  this.dom.setAttribute(
1359
1542
  this.dom.addDiv(y, new T(16, 20, 20, 8)),
@@ -1368,23 +1551,23 @@ class be extends fe {
1368
1551
  }
1369
1552
  }
1370
1553
  }
1371
- if (d = d + w, d > a)
1554
+ if (d = d + C, d > r)
1372
1555
  break;
1373
1556
  }
1374
1557
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1375
- const u = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
1376
- if (u.length)
1377
- for (const x of u) {
1378
- let S = 0, w = o.child, v = "center";
1558
+ const m = ((f = this.colAndRowspanModels[e]) == null ? void 0 : f.getRanges()) ?? [];
1559
+ if (m.length)
1560
+ for (const x of m) {
1561
+ let S = 0, C = o.child, v = "center";
1379
1562
  if (x.c1 < b)
1380
- w = s.child, v = "west";
1381
- else if (p > 0 && x.c1 >= m - p)
1382
- w = i.child, v = "east";
1563
+ C = s.child, v = "west";
1564
+ else if (p > 0 && x.c1 >= u - p)
1565
+ C = i.child, v = "east";
1383
1566
  else {
1384
1567
  const y = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1385
1568
  S = this.scrollFactorX * y - this.areaBodyWestGeo.width, v = "center";
1386
1569
  }
1387
- this.drawBigCell(x, S, t, c, w, v);
1570
+ this.drawBigCell(x, S, t, c, C, v);
1388
1571
  }
1389
1572
  }
1390
1573
  }
@@ -1398,22 +1581,22 @@ class be extends fe {
1398
1581
  * @param sideIdent SideIdent (west,center,east)
1399
1582
  * @protected
1400
1583
  */
1401
- drawBigCell(e, t, s, o, i, a) {
1402
- const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((g, u) => g + u, 0), r = this.tableModel.getColumnCount(), n = this.tableModel.getFixedRightColumnCount();
1584
+ drawBigCell(e, t, s, o, i, r) {
1585
+ const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0), a = this.tableModel.getColumnCount(), n = this.tableModel.getFixedRightColumnCount();
1403
1586
  let c = 0;
1404
- n > 0 && e.c1 >= r - n && (c = r - n);
1405
- const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((g, u) => g + u, 0), d = this.getRowHeights(e.r1, e.r2, o).reduce((g, u) => g + u, 0), m = this.getColumnWidths(e.c1, e.c2).reduce((g, u) => g + u, 0);
1587
+ n > 0 && e.c1 >= a - n && (c = a - n);
1588
+ const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((f, m) => f + m, 0), d = this.getRowHeights(e.r1, e.r2, o).reduce((f, m) => f + m, 0), u = this.getColumnWidths(e.c1, e.c2).reduce((f, m) => f + m, 0);
1406
1589
  let p = !1;
1407
1590
  const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
1408
1591
  b && (p = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
1409
1592
  areaModel: o,
1410
1593
  areaIdent: o.areaIdent,
1411
- sideIdent: a,
1594
+ sideIdent: r,
1412
1595
  rowIndex: e.r1,
1413
1596
  columnIndex: e.c1,
1414
1597
  left: h,
1415
1598
  top: l,
1416
- width: m,
1599
+ width: u,
1417
1600
  height: d,
1418
1601
  parent: i,
1419
1602
  cellSelected: p,
@@ -1422,12 +1605,12 @@ class be extends fe {
1422
1605
  }) : this.renderCell({
1423
1606
  areaModel: o,
1424
1607
  areaIdent: o.areaIdent,
1425
- sideIdent: a,
1608
+ sideIdent: r,
1426
1609
  rowIndex: e.r1,
1427
1610
  columnIndex: e.c1,
1428
1611
  left: h,
1429
1612
  top: l,
1430
- width: m,
1613
+ width: u,
1431
1614
  height: d,
1432
1615
  parent: i,
1433
1616
  cellSelected: p,
@@ -1438,7 +1621,7 @@ class be extends fe {
1438
1621
  columnIndex: e.c1,
1439
1622
  cellLeft: h,
1440
1623
  cellTop: l,
1441
- cellWidth: m,
1624
+ cellWidth: u,
1442
1625
  cellHeight: d,
1443
1626
  parent: i
1444
1627
  });
@@ -1455,8 +1638,8 @@ class be extends fe {
1455
1638
  findRowOfImportantRowspanCell(e, t, s) {
1456
1639
  const o = e.getMaxRowspan();
1457
1640
  for (let i = t - 1; i > -1; i--) {
1458
- const a = e.getRowspanAt(i, s);
1459
- if (a > 1 && i + a + 1 >= t)
1641
+ const r = e.getRowspanAt(i, s);
1642
+ if (r > 1 && i + r + 1 >= t)
1460
1643
  return i;
1461
1644
  if (t - i > o)
1462
1645
  return -1;
@@ -1476,9 +1659,9 @@ class be extends fe {
1476
1659
  areaModel: s,
1477
1660
  geo: o,
1478
1661
  parent: i,
1479
- rowIndex: a,
1662
+ rowIndex: r,
1480
1663
  columnIndexStart: l,
1481
- columnIndexEnd: r,
1664
+ columnIndexEnd: a,
1482
1665
  verticalFixed: n = !1,
1483
1666
  lastRowOfModel: c = !1
1484
1667
  }) {
@@ -1486,33 +1669,33 @@ class be extends fe {
1486
1669
  this.scrollViewportLeft = this.scrollViewport.scrollLeft;
1487
1670
  let h = 0;
1488
1671
  if (!n) {
1489
- const g = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1490
- h = this.scrollFactorX * g;
1672
+ const f = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1673
+ h = this.scrollFactorX * f;
1491
1674
  }
1492
- const d = 0, m = !!(e === "body" && t);
1675
+ const d = 0, u = !!(e === "body" && t);
1493
1676
  let p = h;
1494
- for (let g = l; g <= r; g++) {
1495
- const u = p, x = this.tableModel.getColumnWidth(g);
1496
- if (x > 0 && u + x > 0) {
1677
+ for (let f = l; f <= a; f++) {
1678
+ const m = p, x = this.tableModel.getColumnWidth(f);
1679
+ if (x > 0 && m + x > 0) {
1497
1680
  let S = o.height;
1498
- const w = s.getRowspanAt(a, g), v = s.getColspanAt(a, g);
1499
- w > 1 && (S = this.getRowHeights(a, a + w - 1, s).reduce((A, M) => A + M, 0));
1681
+ const C = s.getRowspanAt(r, f), v = s.getColspanAt(r, f);
1682
+ C > 1 && (S = this.getRowHeights(r, r + C - 1, s).reduce((A, M) => A + M, 0));
1500
1683
  let y = x;
1501
- v > 1 && (y = this.getColumnWidths(g, g + v - 1).reduce((A, M) => A + M, 0));
1684
+ v > 1 && (y = this.getColumnWidths(f, f + v - 1).reduce((A, M) => A + M, 0));
1502
1685
  let R = !1;
1503
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(a, g) && (R = !0), this.draggingTargetColumnIndex === g && e !== "header") {
1504
- this.renderDragTargetDiv(i, u, d, y, S);
1505
- const A = { left: u, top: d, width: y, height: S };
1686
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, f) && (R = !0), this.draggingTargetColumnIndex === f && e !== "header") {
1687
+ this.renderDragTargetDiv(i, m, d, y, S);
1688
+ const A = { left: m, top: d, width: y, height: S };
1506
1689
  this.dom.addColumnBorderDivs(this.tableOptions, i, A, e, t);
1507
1690
  } else {
1508
- const A = this.renderSelectedBackgroundDiv(R, m, t, s, a, g, i, u, d, y, S);
1509
- "gammaCells" in s && s.getValueAt(a, g) && (R = !1), R || this.renderCell({
1691
+ const A = this.renderSelectedBackgroundDiv(R, u, t, s, r, f, i, m, d, y, S);
1692
+ "gammaCells" in s && s.getValueAt(r, f) && (R = !1), R || this.renderCell({
1510
1693
  areaModel: s,
1511
1694
  areaIdent: e,
1512
1695
  sideIdent: t,
1513
- rowIndex: a,
1514
- columnIndex: g,
1515
- left: u,
1696
+ rowIndex: r,
1697
+ columnIndex: f,
1698
+ left: m,
1516
1699
  top: d,
1517
1700
  width: y,
1518
1701
  height: S,
@@ -1521,9 +1704,9 @@ class be extends fe {
1521
1704
  lastRowOfModel: c,
1522
1705
  gammaRange: !0
1523
1706
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1524
- rowIndex: a,
1525
- columnIndex: g,
1526
- cellLeft: u,
1707
+ rowIndex: r,
1708
+ columnIndex: f,
1709
+ cellLeft: m,
1527
1710
  cellTop: d,
1528
1711
  cellWidth: y,
1529
1712
  cellHeight: S,
@@ -1554,26 +1737,26 @@ class be extends fe {
1554
1737
  sideIdent: s,
1555
1738
  rowIndex: o,
1556
1739
  index: i,
1557
- left: a,
1740
+ left: r,
1558
1741
  width: l,
1559
- height: r,
1742
+ height: a,
1560
1743
  top: n,
1561
1744
  parent: c,
1562
1745
  lastRowOfModel: h
1563
1746
  }) {
1564
1747
  var U;
1565
- const m = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), p = { left: a, width: l, height: r, top: n, index: i }, b = e.getRowByIndex(o);
1566
- let g = "none";
1567
- if (i === this.getTreeArrowColumnIndex() && $(b)) {
1568
- const C = b;
1569
- (U = C.children) != null && U.length ? C.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
1748
+ const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), p = { left: r, width: l, height: a, top: n, index: i }, b = e.getRowByIndex(o);
1749
+ let f = "none";
1750
+ if (i === this.getTreeArrowColumnIndex() && O(b)) {
1751
+ const w = b;
1752
+ (U = w.children) != null && U.length ? w.expanded ? f = "expanded" : f = "collapsed" : f = "hidden";
1570
1753
  }
1571
1754
  let x;
1572
1755
  if (t === "header") {
1573
- const C = this.tableModel.getColumnDef(i);
1574
- (!(C != null && C.sortIconVisible) || C != null && C.sortIconVisible()) && (x = C == null ? void 0 : C.sortState);
1756
+ const w = this.tableModel.getColumnDef(i);
1757
+ (!(w != null && w.sortIconVisible) || w != null && w.sortIconVisible()) && (x = w == null ? void 0 : w.sortState);
1575
1758
  }
1576
- const S = e.getValueAt(o, i), w = m ? "" : `${S}`, v = e.isRowChecked(o), y = this.dom.addColumnDiv(
1759
+ const S = e.getValueAt(o, i), C = u ? "" : `${S}`, v = e.isRowChecked(o), y = this.dom.addColumnDiv(
1577
1760
  {
1578
1761
  parent: c,
1579
1762
  geo: p,
@@ -1581,8 +1764,8 @@ class be extends fe {
1581
1764
  columnIndex: i,
1582
1765
  areaIdent: t,
1583
1766
  sideIdent: s,
1584
- text: w,
1585
- treeArrow: g,
1767
+ text: C,
1768
+ treeArrow: f,
1586
1769
  tableOptions: this.tableOptions,
1587
1770
  checkedType: v,
1588
1771
  sortState: x
@@ -1592,17 +1775,17 @@ class be extends fe {
1592
1775
  const A = this.tableModel.getColumnDef(i);
1593
1776
  A && A.classes[t] && this.dom.addClasses(A.classes[t], y);
1594
1777
  let M;
1595
- m && (M = m.render(y, o, i, t, e, S, this.dom.domService));
1778
+ u && (M = u.render(y, o, i, t, e, S, this.dom.domService));
1596
1779
  const L = e.getCustomClassesAt(o, i);
1597
- if (L.length && this.dom.addClasses(L, y), this.dom.addColumnBorderDivs(this.tableOptions, c, p, t, s), h && this.dom.addHorizontalBorder({ left: a, width: l, height: r, top: n + r }, c), this.getFocusModel && t === "body") {
1598
- const C = this.getFocusModel();
1599
- C != null && C.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
1780
+ if (L.length && this.dom.addClasses(L, y), this.dom.addColumnBorderDivs(this.tableOptions, c, p, t, s), h && this.dom.addHorizontalBorder({ left: r, width: l, height: a, top: n + a }, c), this.getFocusModel && t === "body") {
1781
+ const w = this.getFocusModel();
1782
+ w != null && w.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
1600
1783
  }
1601
1784
  t === "header" && this.dom.setAttribute(y, "data-ge-action", "drag-column");
1602
- const W = e.getCustomStyleAt(o, i);
1603
- if (W)
1604
- for (const C in W)
1605
- this.dom.setStyle(y, C, W[C]);
1785
+ const H = e.getCustomStyleAt(o, i);
1786
+ if (H)
1787
+ for (const w in H)
1788
+ this.dom.setStyle(y, w, H[w]);
1606
1789
  return [y, M];
1607
1790
  }
1608
1791
  /**
@@ -1733,9 +1916,9 @@ class be extends fe {
1733
1916
  adjustDraggingColumn(e, t, s) {
1734
1917
  var o, i;
1735
1918
  if (this.dragging) {
1736
- const a = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
1919
+ const r = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
1737
1920
  if ((o = e.originalEvent) != null && o.clientX) {
1738
- const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - l / 2, width: l, height: a, top: 0, index: t };
1921
+ const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - l / 2, width: l, height: r, top: 0, index: t };
1739
1922
  this.dom.applyStyle(this.draggingColumn, {
1740
1923
  background: "rgba(128,128,128,0.2)",
1741
1924
  display: "block",
@@ -1765,29 +1948,29 @@ class be extends fe {
1765
1948
  * @return {number} The final y-position after rendering all the content.
1766
1949
  */
1767
1950
  renderContentOfDraggingColumnForArea(e, t, s = 0) {
1768
- const o = "center", i = this.tableModel.getAreaModel(t), a = i == null ? void 0 : i.getRowCount();
1769
- if (a) {
1770
- const l = e.index ?? 0, r = this.draggingColumn;
1771
- for (let n = 0; n < a; n++) {
1772
- const c = s, h = i.getRowHeight(n), d = { left: 0, width: e.width, height: h, top: c, index: n }, m = i.getValueAt(n, l), p = i.getCellRenderer(n, l), b = p ? "" : `${m}`, g = {
1773
- parent: r,
1951
+ const o = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
1952
+ if (r) {
1953
+ const l = e.index ?? 0, a = this.draggingColumn;
1954
+ for (let n = 0; n < r; n++) {
1955
+ const c = s, h = i.getRowHeight(n), d = { left: 0, width: e.width, height: h, top: c, index: n }, u = i.getValueAt(n, l), p = i.getCellRenderer(n, l), b = p ? "" : `${u}`, f = {
1956
+ parent: a,
1774
1957
  geo: d,
1775
1958
  rowIndex: n,
1776
1959
  columnIndex: l,
1777
1960
  areaIdent: t,
1778
1961
  sideIdent: o,
1779
1962
  text: b
1780
- }, u = this.dom.addColumnDiv(g);
1963
+ }, m = this.dom.addColumnDiv(f);
1781
1964
  let x;
1782
- p && (x = p.render(u, n, l, t, i, m, this.dom.domService), x && this.cleanupFunctions[t].push(x));
1965
+ p && (x = p.render(m, n, l, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
1783
1966
  const S = i.getCustomClassesAt(n, l);
1784
- S.length && this.dom.addClasses(S, u);
1785
- const w = this.tableModel.getColumnDef(l);
1786
- w && w.classes[t] && this.dom.addClasses(w.classes[t], u), this.dom.addColumnBorderDivs(this.tableOptions, r, d, t, o);
1967
+ S.length && this.dom.addClasses(S, m);
1968
+ const C = this.tableModel.getColumnDef(l);
1969
+ C && C.classes[t] && this.dom.addClasses(C.classes[t], m), this.dom.addColumnBorderDivs(this.tableOptions, a, d, t, o);
1787
1970
  const v = i.getCustomStyleAt(n, l);
1788
1971
  if (v)
1789
1972
  for (const y in v)
1790
- this.dom.setStyle(u, y, v[y]);
1973
+ this.dom.setStyle(m, y, v[y]);
1791
1974
  s = s + h;
1792
1975
  }
1793
1976
  }
@@ -1815,10 +1998,10 @@ class be extends fe {
1815
1998
  * @return {HTMLDivElement} - The rendered draggable target div element.
1816
1999
  */
1817
2000
  renderDragTargetDiv(e, t, s, o, i) {
1818
- const a = this.dom.applyStylePosistionAbsolute(
2001
+ const r = this.dom.applyStylePosistionAbsolute(
1819
2002
  this.dom.createDivWithClass("ge-table-drop-zone", e)
1820
2003
  );
1821
- return this.dom.setStyle(a, "left", `${t}px`), this.dom.setStyle(a, "top", `${s}px`), this.dom.setStyle(a, "width", `${o}px`), this.dom.setStyle(a, "height", `${i}px`), a;
2004
+ return this.dom.setStyle(r, "left", `${t}px`), this.dom.setStyle(r, "top", `${s}px`), this.dom.setStyle(r, "width", `${o}px`), this.dom.setStyle(r, "height", `${i}px`), r;
1822
2005
  }
1823
2006
  /**
1824
2007
  * Render selected background div.
@@ -1837,19 +2020,19 @@ class be extends fe {
1837
2020
  * @param {number} height - The height of the div.
1838
2021
  * @returns {boolean} - Whether the cell is selected.
1839
2022
  */
1840
- renderSelectedBackgroundDiv(e, t, s, o, i, a, l, r, n, c, h) {
2023
+ renderSelectedBackgroundDiv(e, t, s, o, i, r, l, a, n, c, h) {
1841
2024
  let d = !1;
1842
- if (!e && t && o.isSelectable(i, a) && this.getSelectionModel) {
1843
- const m = this.getSelectionModel();
1844
- if (m) {
1845
- const p = m.getSelectionCount(i, a);
2025
+ if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
2026
+ const u = this.getSelectionModel();
2027
+ if (u) {
2028
+ const p = u.getSelectionCount(i, r);
1846
2029
  d = p > 0;
1847
2030
  for (let b = 0; b < p; b++) {
1848
- const g = this.dom.applyStylePosistionAbsolute(
2031
+ const f = this.dom.applyStylePosistionAbsolute(
1849
2032
  // ge-table-body-west-selected-range
1850
2033
  this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, l)
1851
2034
  );
1852
- this.dom.setStyle(g, "left", `${r}px`), this.dom.setStyle(g, "top", `${n}px`), this.dom.setStyle(g, "width", `${c}px`), this.dom.setStyle(g, "height", `${h}px`);
2035
+ this.dom.setStyle(f, "left", `${a}px`), this.dom.setStyle(f, "top", `${n}px`), this.dom.setStyle(f, "width", `${c}px`), this.dom.setStyle(f, "height", `${h}px`);
1853
2036
  }
1854
2037
  }
1855
2038
  }
@@ -1880,28 +2063,28 @@ class be extends fe {
1880
2063
  sideIdent: s,
1881
2064
  rowIndex: o,
1882
2065
  columnIndex: i,
1883
- left: a,
2066
+ left: r,
1884
2067
  top: l,
1885
- width: r,
2068
+ width: a,
1886
2069
  height: n,
1887
2070
  parent: c,
1888
2071
  cellSelected: h,
1889
2072
  lastRowOfModel: d
1890
2073
  }) {
1891
- const [m, p] = this.addAndRenderCellDiv({
2074
+ const [u, p] = this.addAndRenderCellDiv({
1892
2075
  areaModel: e,
1893
2076
  areaIdent: t,
1894
2077
  sideIdent: s,
1895
2078
  rowIndex: o,
1896
2079
  index: i,
1897
- left: a,
1898
- width: r,
2080
+ left: r,
2081
+ width: a,
1899
2082
  height: n,
1900
2083
  top: l,
1901
2084
  parent: c,
1902
2085
  lastRowOfModel: d
1903
2086
  });
1904
- h && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, m), p && this.cleanupFunctions[t].push(p);
2087
+ h && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, u), p && this.cleanupFunctions[t].push(p);
1905
2088
  }
1906
2089
  /**
1907
2090
  * Render the header cell resize handle.
@@ -1917,17 +2100,17 @@ class be extends fe {
1917
2100
  *
1918
2101
  * @return {void}
1919
2102
  */
1920
- renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: a, parent: l }) {
1921
- const r = this.dom.domService, n = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = r.createElement("div");
1922
- r.setAttribute(c, "data-col-index", `${t}`), r.setAttribute(c, "data-row-index", `${e}`), r.setAttribute(c, "data-area", "header"), r.setAttribute(c, "data-ge-action", "resize-column"), r.addClass(c, "ge-table-column-resize-handle"), r.setStyle(c, "display", "clip"), r.setStyle(c, "position", "absolute"), r.setStyle(c, "cursor", "col-resize"), r.setStyle(c, "left", `${s + i - n}px`), r.setStyle(c, "top", `${o}px`), r.setStyle(c, "width", `${n}px`), r.setStyle(c, "height", `${a}px`), r.appendChild(l, c);
2103
+ renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: l }) {
2104
+ const a = this.dom.domService, n = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = a.createElement("div");
2105
+ a.setAttribute(c, "data-col-index", `${t}`), a.setAttribute(c, "data-row-index", `${e}`), a.setAttribute(c, "data-area", "header"), a.setAttribute(c, "data-ge-action", "resize-column"), a.addClass(c, "ge-table-column-resize-handle"), a.setStyle(c, "display", "clip"), a.setStyle(c, "position", "absolute"), a.setStyle(c, "cursor", "col-resize"), a.setStyle(c, "left", `${s + i - n}px`), a.setStyle(c, "top", `${o}px`), a.setStyle(c, "width", `${n}px`), a.setStyle(c, "height", `${r}px`), a.appendChild(l, c);
1923
2106
  }
1924
2107
  }
1925
- class Se {
2108
+ class ve {
1926
2109
  constructor(e, t) {
1927
2110
  this.columnIndex = e, this.sortState = t;
1928
2111
  }
1929
2112
  }
1930
- class ye {
2113
+ class we {
1931
2114
  constructor(e) {
1932
2115
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
1933
2116
  }
@@ -1943,36 +2126,36 @@ class ye {
1943
2126
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
1944
2127
  const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
1945
2128
  if (s && o && i) {
1946
- const a = N(s), l = Number(o), r = Number(i);
1947
- this.tableScope.updateModelValueAfterEdit(a, l, r, t.value);
2129
+ const r = _(s), l = Number(o), a = Number(i);
2130
+ this.tableScope.updateModelValueAfterEdit(r, l, a, t.value);
1948
2131
  }
1949
2132
  }
1950
2133
  }
1951
2134
  }
1952
- class xe {
2135
+ class Ce {
1953
2136
  constructor(e = -1, t = -1) {
1954
2137
  this.rowIndex = e, this.columnIndex = t;
1955
2138
  }
1956
2139
  }
1957
- class z {
2140
+ class G {
1958
2141
  constructor(e) {
1959
2142
  this.cells = e;
1960
2143
  }
1961
2144
  static createSingle(e, t) {
1962
- return new z([new xe(e, t)]);
2145
+ return new G([new Ce(e, t)]);
1963
2146
  }
1964
2147
  }
1965
- class ve {
2148
+ class Ee {
1966
2149
  constructor(e) {
1967
2150
  var t, s;
1968
2151
  this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (s = this.tableScope.tableOptions) != null && s.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
1969
2152
  }
1970
2153
  onMouseClicked(e, t) {
1971
- var i, a, l, r, n, c, h;
2154
+ var i, r, l, a, n, c, h;
1972
2155
  let s = !1, o = !1;
1973
2156
  if (this.getSelectionModel && this.getFocusModel) {
1974
- const d = this.getSelectionModel(), m = this.getFocusModel();
1975
- d && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(m), s = !0), (i = e.originalEvent) != null && i.shiftKey || d.hasSelection() && (d.clear(), s = !0), (a = e.originalEvent) != null && a.shiftKey && this.previousEvt ? (d.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (l = e.originalEvent) != null && l.altKey && ((r = e.originalEvent) != null && r.ctrlKey || (n = e.originalEvent) != null && n.metaKey) ? (d.removeSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (d.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (d.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(d));
2157
+ const d = this.getSelectionModel(), u = this.getFocusModel();
2158
+ d && u && (u.hasFocus(e.rowIndex, e.columnIndex) || (u.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(u), s = !0), (i = e.originalEvent) != null && i.shiftKey || d.hasSelection() && (d.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (d.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (l = e.originalEvent) != null && l.altKey && ((a = e.originalEvent) != null && a.ctrlKey || (n = e.originalEvent) != null && n.metaKey) ? (d.removeSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (d.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (d.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(d));
1976
2159
  }
1977
2160
  return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
1978
2161
  }
@@ -1994,16 +2177,16 @@ class ve {
1994
2177
  }
1995
2178
  createRangeByEvents(e, t) {
1996
2179
  t || (t = e);
1997
- const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), a = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
2180
+ const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), o = 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);
1998
2181
  return E.create({
1999
2182
  rowIndex1: s,
2000
2183
  columnIndex1: i,
2001
2184
  rowIndex2: o,
2002
- columnIndex2: a
2185
+ columnIndex2: r
2003
2186
  });
2004
2187
  }
2005
2188
  }
2006
- class Ce {
2189
+ class Ae {
2007
2190
  get() {
2008
2191
  return {
2009
2192
  f2: "START_EDITING",
@@ -2023,7 +2206,7 @@ class Ce {
2023
2206
  };
2024
2207
  }
2025
2208
  }
2026
- class we {
2209
+ class Me {
2027
2210
  get() {
2028
2211
  return {
2029
2212
  f2: "START_EDITING",
@@ -2045,7 +2228,7 @@ class we {
2045
2228
  };
2046
2229
  }
2047
2230
  }
2048
- class Ee {
2231
+ class Re {
2049
2232
  constructor(e) {
2050
2233
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
2051
2234
  }
@@ -2066,7 +2249,7 @@ class Ee {
2066
2249
  this.assignPredefinedSystemShortcutMappings(), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
2067
2250
  }
2068
2251
  assignPredefinedSystemShortcutMappings() {
2069
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new we().get()) : Object.assign(this.shortcutActionIdMapping, new Ce().get());
2252
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Me().get()) : Object.assign(this.shortcutActionIdMapping, new Ae().get());
2070
2253
  }
2071
2254
  isMacintosh() {
2072
2255
  return navigator.platform.indexOf("Mac") > -1;
@@ -2118,7 +2301,7 @@ class Ee {
2118
2301
  return this.shortcutActionIdMapping;
2119
2302
  }
2120
2303
  }
2121
- class X {
2304
+ class j {
2122
2305
  onCheckboxChanged(e) {
2123
2306
  }
2124
2307
  onContextmenu(e) {
@@ -2165,15 +2348,15 @@ class Z {
2165
2348
  e.setAttribute(t, s);
2166
2349
  }
2167
2350
  }
2168
- class Ae {
2169
- render(e, t, s, o, i, a, l) {
2351
+ class Te {
2352
+ render(e, t, s, o, i, r, l) {
2170
2353
  if (i.isEditable(t, s)) {
2171
2354
  l.addClass(e, "ge-table-row-input-div");
2172
- const r = i.getValueAt(t, s);
2355
+ const a = i.getValueAt(t, s);
2173
2356
  e.innerHTML = `
2174
2357
  <input
2175
2358
  type="text"
2176
- value="${r}"
2359
+ value="${a}"
2177
2360
  autofocus
2178
2361
  onfocus="this.setSelectionRange(0, this.value.length)"
2179
2362
  data-listen="change"
@@ -2186,7 +2369,7 @@ class Ae {
2186
2369
  }
2187
2370
  }
2188
2371
  }
2189
- class Me {
2372
+ class De {
2190
2373
  constructor(e = "none", t = "single") {
2191
2374
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
2192
2375
  }
@@ -2268,7 +2451,7 @@ class Me {
2268
2451
  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), this.fireChangeEvent());
2269
2452
  }
2270
2453
  }
2271
- class Re {
2454
+ class ke {
2272
2455
  constructor(e = "none") {
2273
2456
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2274
2457
  }
@@ -2319,14 +2502,14 @@ class Q {
2319
2502
  }
2320
2503
  // `⊖ `, `⊕ `;
2321
2504
  }
2322
- const Te = new Me(), De = new Re("cell");
2505
+ const Fe = new De(), Ie = new ke("cell");
2323
2506
  class ee {
2324
2507
  constructor() {
2325
2508
  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 = {
2326
2509
  header: 34,
2327
2510
  body: 34,
2328
2511
  footer: 34
2329
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new q(), this.headerGroupOptions = new Q(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new J(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new Ae(), this.getSelectionModel = () => Te, this.getFocusModel = () => De;
2512
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new q(), this.headerGroupOptions = new Q(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new J(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new Te(), this.getSelectionModel = () => Fe, this.getFocusModel = () => Ie;
2330
2513
  }
2331
2514
  }
2332
2515
  const I = class I {
@@ -2342,14 +2525,14 @@ const I = class I {
2342
2525
  createContent(e, t, s) {
2343
2526
  return new Promise((o, i) => {
2344
2527
  if (t != null && t.hasSelection()) {
2345
- const a = this.mergeRanges(t.getRanges());
2346
- if (a) {
2347
- a.c2 = Math.min(a.c2, e.getColumnCount() - 1), a.r2 = Math.min(a.r2, e.getBodyModel().getRowCount() - 1);
2528
+ const r = this.mergeRanges(t.getRanges());
2529
+ if (r) {
2530
+ r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
2348
2531
  const l = [];
2349
- for (let r = a.r1; r <= a.r2; r++) {
2532
+ for (let a = r.r1; a <= r.r2; a++) {
2350
2533
  const n = [];
2351
- for (let c = a.c1; c <= a.c2; c++) {
2352
- const h = t.isSelected(r, c) ? e.getBodyModel().getTextValueAt(r, c) : "";
2534
+ for (let c = r.c1; c <= r.c2; c++) {
2535
+ const h = t.isSelected(a, c) ? e.getBodyModel().getTextValueAt(a, c) : "";
2353
2536
  n.push(h);
2354
2537
  }
2355
2538
  l.push(n.join(I.columnSeparatorChar));
@@ -2358,8 +2541,8 @@ const I = class I {
2358
2541
  }
2359
2542
  }
2360
2543
  if (s) {
2361
- const [a, l] = s.getFocus(), r = e.getBodyModel().getTextValueAt(a, l);
2362
- return o(r);
2544
+ const [r, l] = s.getFocus(), a = e.getBodyModel().getTextValueAt(r, l);
2545
+ return o(a);
2363
2546
  }
2364
2547
  i("Cannot copy, neither selection nor focus defined.");
2365
2548
  });
@@ -2387,13 +2570,13 @@ const I = class I {
2387
2570
  e,
2388
2571
  t,
2389
2572
  s
2390
- ).then((a) => {
2391
- a && this.copyContent(a).then((l) => {
2392
- o(a);
2573
+ ).then((r) => {
2574
+ r && this.copyContent(r).then((l) => {
2575
+ o(r);
2393
2576
  }).catch((l) => {
2394
2577
  i();
2395
2578
  });
2396
- }).catch((a) => {
2579
+ }).catch((r) => {
2397
2580
  i();
2398
2581
  });
2399
2582
  });
@@ -2413,17 +2596,17 @@ const I = class I {
2413
2596
  };
2414
2597
  I.columnSeparatorChar = " ", I.rowSeparatorChar = `
2415
2598
  `;
2416
- let O = I;
2417
- class ke {
2599
+ let B = I;
2600
+ class Le {
2418
2601
  constructor(e, t = 500) {
2419
- this.tableScope = e, this.debounceDelay = t, new ResizeObserver(ae(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
2602
+ this.tableScope = e, this.debounceDelay = t, new ResizeObserver(re(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
2420
2603
  }
2421
2604
  handleResize(e) {
2422
2605
  const t = e[0], { width: s } = t.contentRect;
2423
2606
  this.tableScope.recalcColumnWidths(s);
2424
2607
  }
2425
2608
  }
2426
- class Fe {
2609
+ class Oe {
2427
2610
  /**
2428
2611
  * Downloads a matrix data as an Excel file.
2429
2612
  *
@@ -2441,8 +2624,8 @@ class Fe {
2441
2624
  try {
2442
2625
  const o = this.generateBuffer(e, s), i = new Blob([o], {
2443
2626
  type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
2444
- }), a = document.createElement("a");
2445
- a.href = URL.createObjectURL(i), a.download = t, document.body.appendChild(a), a.click(), document.body.removeChild(a);
2627
+ }), r = document.createElement("a");
2628
+ r.href = URL.createObjectURL(i), r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r);
2446
2629
  } catch (o) {
2447
2630
  throw console.error("Error generating Excel file:", o), new Error("Failed to download Excel file.");
2448
2631
  }
@@ -2451,14 +2634,14 @@ class Fe {
2451
2634
  const s = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2452
2635
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>`, o = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2453
2636
  <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>`, i = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2454
- <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>${t}</dc:creator><cp:lastModifiedBy>${t}</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">2024-12-13T19:45:08Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2024-12-13T19:45:35Z</dcterms:modified></cp:coreProperties>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2637
+ <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>${t}</dc:creator><cp:lastModifiedBy>${t}</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">2024-12-13T19:45:08Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2024-12-13T19:45:35Z</dcterms:modified></cp:coreProperties>`, r = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2455
2638
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`, l = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2456
- <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="0E2841"/></a:dk2><a:lt2><a:srgbClr val="E8E8E8"/></a:lt2><a:accent1><a:srgbClr val="156082"/></a:accent1><a:accent2><a:srgbClr val="E97132"/></a:accent2><a:accent3><a:srgbClr val="196B24"/></a:accent3><a:accent4><a:srgbClr val="0F9ED5"/></a:accent4><a:accent5><a:srgbClr val="A02B93"/></a:accent5><a:accent6><a:srgbClr val="4EA72E"/></a:accent6><a:hlink><a:srgbClr val="467886"/></a:hlink><a:folHlink><a:srgbClr val="96607D"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Aptos Display" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Aptos Narrow" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{2E142A2C-CD16-42D6-873A-C26D2A0506FA}" vid="{1BDDFF52-6CD6-40A5-AB3C-68EB2F1E4D0A}"/></a:ext></a:extLst></a:theme>`, r = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2639
+ <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="0E2841"/></a:dk2><a:lt2><a:srgbClr val="E8E8E8"/></a:lt2><a:accent1><a:srgbClr val="156082"/></a:accent1><a:accent2><a:srgbClr val="E97132"/></a:accent2><a:accent3><a:srgbClr val="196B24"/></a:accent3><a:accent4><a:srgbClr val="0F9ED5"/></a:accent4><a:accent5><a:srgbClr val="A02B93"/></a:accent5><a:accent6><a:srgbClr val="4EA72E"/></a:accent6><a:hlink><a:srgbClr val="467886"/></a:hlink><a:folHlink><a:srgbClr val="96607D"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Aptos Display" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Aptos Narrow" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{2E142A2C-CD16-42D6-873A-C26D2A0506FA}" vid="{1BDDFF52-6CD6-40A5-AB3C-68EB2F1E4D0A}"/></a:ext></a:extLst></a:theme>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2457
2640
  <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="3" uniqueCount="3"><si><t>a</t></si><si><t>b</t></si><si><t>c</t></si></sst>`, n = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2458
2641
  <styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"><fonts count="1" x14ac:knownFonts="1"><font><sz val="12"/><color theme="1"/><name val="Aptos Narrow"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles><dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`, c = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2459
2642
  <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="11207"/><workbookPr defaultThemeVersion="202300"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="/" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="8_{292BF245-1F37-B045-B1A5-26C42FB62779}" xr6:coauthVersionLast="47" xr6:coauthVersionMax="47" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="11340" yWindow="5060" windowWidth="28040" windowHeight="17440" xr2:uid="{858B8D3F-6246-774D-8903-6D38687B7BC6}"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="181029"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext><ext uri="{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}" xmlns:xcalcf="http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures"><xcalcf:calcFeatures><xcalcf:feature name="microsoft.com:RD"/><xcalcf:feature name="microsoft.com:Single"/><xcalcf:feature name="microsoft.com:FV"/><xcalcf:feature name="microsoft.com:CNMTM"/><xcalcf:feature name="microsoft.com:LET_WF"/><xcalcf:feature name="microsoft.com:LAMBDA_WF"/><xcalcf:feature name="microsoft.com:ARRAYTEXT_WF"/></xcalcf:calcFeatures></ext></extLst></workbook>`, h = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2460
2643
  <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>`, d = /* @__PURE__ */ new Map();
2461
- return d.set("_rels/.rels", s), d.set("docProps/app.xml", o), d.set("docProps/core.xml", i), d.set("xl/_rels/workbook.xml.rels", a), d.set("xl/theme/theme1.xml", l), d.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), d.set("xl/sharedStrings.xml", r), d.set("xl/styles.xml", n), d.set("xl/workbook.xml", c), d.set("[Content_Types].xml", h), d;
2644
+ return d.set("_rels/.rels", s), d.set("docProps/app.xml", o), d.set("docProps/core.xml", i), d.set("xl/_rels/workbook.xml.rels", r), d.set("xl/theme/theme1.xml", l), d.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), d.set("xl/sharedStrings.xml", a), d.set("xl/styles.xml", n), d.set("xl/workbook.xml", c), d.set("[Content_Types].xml", h), d;
2462
2645
  }
2463
2646
  getX1WorksheetsSheet1Xml(e) {
2464
2647
  const t = [];
@@ -2473,15 +2656,15 @@ class Fe {
2473
2656
  const o = e[s];
2474
2657
  t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
2475
2658
  for (let i = 0; i < o.length; i++) {
2476
- const a = o[i], l = this.getCellAddress(s, i);
2477
- if (typeof a == "number")
2478
- t.push(`<c r="${l}"><v>${a}</v></c>`);
2479
- else if (a instanceof Date) {
2480
- const r = a;
2481
- t.push(`<c r="${l}" t="inlineStr"><is><t>${r.toISOString()}</t></is></c>`);
2659
+ const r = o[i], l = this.getCellAddress(s, i);
2660
+ if (typeof r == "number")
2661
+ t.push(`<c r="${l}"><v>${r}</v></c>`);
2662
+ else if (r instanceof Date) {
2663
+ const a = r;
2664
+ t.push(`<c r="${l}" t="inlineStr"><is><t>${a.toISOString()}</t></is></c>`);
2482
2665
  } else {
2483
- const r = a != null ? this.escapeXml(String(a)) : "";
2484
- t.push(`<c r="${l}" t="inlineStr"><is><t>${r}</t></is></c>`);
2666
+ const a = r != null ? this.escapeXml(String(r)) : "";
2667
+ t.push(`<c r="${l}" t="inlineStr"><is><t>${a}</t></is></c>`);
2485
2668
  }
2486
2669
  }
2487
2670
  t.push("</row>");
@@ -2504,8 +2687,8 @@ class Fe {
2504
2687
  let s = 0;
2505
2688
  const o = [];
2506
2689
  e.forEach((h, d) => {
2507
- const m = new TextEncoder().encode(d), p = new TextEncoder().encode(h), b = new Uint8Array(30 + m.length), g = new DataView(b.buffer);
2508
- b.set([80, 75, 3, 4], 0), g.setUint16(4, 20, !0), g.setUint16(6, 0, !0), g.setUint16(8, 0, !0), g.setUint16(10, 0, !0), g.setUint16(12, 0, !0), g.setUint32(14, 0, !0), g.setUint32(18, p.length, !0), g.setUint32(22, p.length, !0), g.setUint16(26, m.length, !0), g.setUint16(28, 0, !0), b.set(m, 30), t.push(b, p), o.push({
2690
+ const u = new TextEncoder().encode(d), p = new TextEncoder().encode(h), b = new Uint8Array(30 + u.length), f = new DataView(b.buffer);
2691
+ b.set([80, 75, 3, 4], 0), f.setUint16(4, 20, !0), f.setUint16(6, 0, !0), f.setUint16(8, 0, !0), f.setUint16(10, 0, !0), f.setUint16(12, 0, !0), f.setUint32(14, 0, !0), f.setUint32(18, p.length, !0), f.setUint32(22, p.length, !0), f.setUint16(26, u.length, !0), f.setUint16(28, 0, !0), b.set(u, 30), t.push(b, p), o.push({
2509
2692
  path: d,
2510
2693
  offset: s,
2511
2694
  contentSize: p.length
@@ -2513,12 +2696,12 @@ class Fe {
2513
2696
  });
2514
2697
  const i = s;
2515
2698
  o.forEach((h) => {
2516
- const d = new TextEncoder().encode(h.path), m = new Uint8Array(46 + d.length), p = new DataView(m.buffer);
2517
- m.set([80, 75, 1, 2], 0), p.setUint16(4, 20, !0), p.setUint16(6, 20, !0), p.setUint16(8, 0, !0), p.setUint16(10, 0, !0), p.setUint16(12, 0, !0), p.setUint16(14, 0, !0), p.setUint32(16, 0, !0), p.setUint32(20, h.contentSize, !0), p.setUint32(24, h.contentSize, !0), p.setUint16(28, d.length, !0), p.setUint16(30, 0, !0), p.setUint16(32, 0, !0), p.setUint16(34, 0, !0), p.setUint16(36, 0, !0), p.setUint32(38, 0, !0), p.setUint32(42, h.offset, !0), m.set(d, 46), t.push(m), s += m.length;
2699
+ const d = new TextEncoder().encode(h.path), u = new Uint8Array(46 + d.length), p = new DataView(u.buffer);
2700
+ u.set([80, 75, 1, 2], 0), p.setUint16(4, 20, !0), p.setUint16(6, 20, !0), p.setUint16(8, 0, !0), p.setUint16(10, 0, !0), p.setUint16(12, 0, !0), p.setUint16(14, 0, !0), p.setUint32(16, 0, !0), p.setUint32(20, h.contentSize, !0), p.setUint32(24, h.contentSize, !0), p.setUint16(28, d.length, !0), p.setUint16(30, 0, !0), p.setUint16(32, 0, !0), p.setUint16(34, 0, !0), p.setUint16(36, 0, !0), p.setUint32(38, 0, !0), p.setUint32(42, h.offset, !0), u.set(d, 46), t.push(u), s += u.length;
2518
2701
  });
2519
- const a = new Uint8Array(22), l = new DataView(a.buffer);
2520
- a.set([80, 75, 5, 6], 0), l.setUint16(4, 0, !0), l.setUint16(6, 0, !0), l.setUint16(8, o.length, !0), l.setUint16(10, o.length, !0), l.setUint32(12, s - i, !0), l.setUint32(16, i, !0), l.setUint16(20, 0, !0), t.push(a);
2521
- const r = t.reduce((h, d) => h + d.length, 0), n = new Uint8Array(r);
2702
+ const r = new Uint8Array(22), l = new DataView(r.buffer);
2703
+ r.set([80, 75, 5, 6], 0), l.setUint16(4, 0, !0), l.setUint16(6, 0, !0), l.setUint16(8, o.length, !0), l.setUint16(10, o.length, !0), l.setUint32(12, s - i, !0), l.setUint32(16, i, !0), l.setUint16(20, 0, !0), t.push(r);
2704
+ const a = t.reduce((h, d) => h + d.length, 0), n = new Uint8Array(a);
2522
2705
  let c = 0;
2523
2706
  for (const h of t)
2524
2707
  n.set(h, c), c += h.length;
@@ -2529,16 +2712,16 @@ class Fe {
2529
2712
  return this.createZip(s);
2530
2713
  }
2531
2714
  }
2532
- class _ extends be {
2533
- constructor(e, t, s, o, i, a = new O(), l = new Fe()) {
2715
+ class z extends xe {
2716
+ constructor(e, t, s, o, i, r = new B(), l = new Oe()) {
2534
2717
  var c;
2535
- if (super(e, t, new re(s), o), this.eventListener = i, this.copyService = a, this.excelService = l, this.licenseManager = k.getInstance(), this.selectionService = new ve(this), this.api = new ce(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new X()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
2718
+ if (super(e, t, new ae(s), o), this.eventListener = i, this.copyService = r, this.excelService = l, this.licenseManager = k.getInstance(), this.selectionService = new Ee(this), this.api = new pe(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new j()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
2536
2719
  const h = this.tableOptions.autoRestoreOptions, d = h.getStorageKeyFn;
2537
- d && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new de(d)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new pe(d)), h.autoRestoreSortingState && (this.storeSortingService = new ge(d)));
2720
+ d && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new ge(d)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ue(d)), h.autoRestoreSortingState && (this.storeSortingService = new me(d)));
2538
2721
  }
2539
- this.mouseHandler = new ne(this), this.inputHandler = new ye(this), this.resizeHandler = new ke(this, o.resizeEventDebounceDelay), this.shortcutService = new Ee(this), this.shortcutService.addListener(this.selectionService);
2540
- const r = this.getSelectionModel ? this.getSelectionModel() : void 0;
2541
- r && r.addEventSelectionChangedListener(this);
2722
+ this.mouseHandler = new ne(this), this.inputHandler = new we(this), this.resizeHandler = new Le(this, o.resizeEventDebounceDelay), this.shortcutService = new Re(this), this.shortcutService.addListener(this.selectionService);
2723
+ const a = this.getSelectionModel ? this.getSelectionModel() : void 0;
2724
+ a && a.addEventSelectionChangedListener(this);
2542
2725
  const n = this.getFocusModel ? this.getFocusModel() : void 0;
2543
2726
  n && n.addEventFocusChangedListener(this);
2544
2727
  }
@@ -2554,8 +2737,8 @@ class _ extends be {
2554
2737
  *
2555
2738
  * @return {TableScope} - The newly created TableScope instance.
2556
2739
  */
2557
- static create(e, t, s = new ee(), o = new X(), i = new Z(), a = new O()) {
2558
- return new _(e, t, i, s, o, a);
2740
+ static create(e, t, s = new ee(), o = new j(), i = new Z(), r = new B()) {
2741
+ return new z(e, t, i, s, o, r);
2559
2742
  }
2560
2743
  /**
2561
2744
  * Triggers an action based on the provided actionId.
@@ -2583,7 +2766,7 @@ class _ extends be {
2583
2766
  return !1;
2584
2767
  }
2585
2768
  updateModelValueAfterEdit(e, t, s, o) {
2586
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(z.createSingle(t, s)), this.hostElement.focus());
2769
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(G.createSingle(t, s)), this.hostElement.focus());
2587
2770
  }
2588
2771
  /**
2589
2772
  * Retrieves the TableApi object.
@@ -2682,7 +2865,7 @@ class _ extends be {
2682
2865
  toggleExpandCollapseAll(e = !0) {
2683
2866
  var s;
2684
2867
  const t = this.tableModel.getBodyModel();
2685
- H(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
2868
+ $(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
2686
2869
  }
2687
2870
  /**
2688
2871
  * Toggles the checkbox state of a specific row in a table.
@@ -2694,10 +2877,10 @@ class _ extends be {
2694
2877
  * @return {void} - This method does not return anything.
2695
2878
  */
2696
2879
  toggleRowCheckbox(e, t, s) {
2697
- var r;
2698
- const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), a = i === void 0 || i === "semi" || i === "none";
2699
- o.setRowChecked(e, a), this.repaint();
2700
- const l = (r = o.rowSelectionModel) == null ? void 0 : r.getCheckedRows();
2880
+ var a;
2881
+ const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
2882
+ o.setRowChecked(e, r), this.repaint();
2883
+ const l = (a = o.rowSelectionModel) == null ? void 0 : a.getCheckedRows();
2701
2884
  this.eventListener.onCheckboxChanged(l || []);
2702
2885
  }
2703
2886
  /**
@@ -2748,12 +2931,12 @@ class _ extends be {
2748
2931
  * @return {void}
2749
2932
  */
2750
2933
  onHeaderDblClicked(e, t, s) {
2751
- var i, a;
2934
+ var i, r;
2752
2935
  const o = this.tableModel.getColumnDef(s);
2753
2936
  if (o != null && o.sortable && o.sortable()) {
2754
2937
  e.preventDefault(), e.stopPropagation();
2755
- const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, r = o.sortState ?? "", n = l[(l.indexOf(r) + 1) % l.length], c = new Se(s, n);
2756
- this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((d) => d.sortState = ""), o.sortState = n), this.repaint(), (a = this.storeSortingService) == null || a.setSortItems([c]);
2938
+ const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, a = o.sortState ?? "", n = l[(l.indexOf(a) + 1) % l.length], c = new ve(s, n);
2939
+ this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((d) => d.sortState = ""), o.sortState = n), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
2757
2940
  }
2758
2941
  }
2759
2942
  /**
@@ -2897,11 +3080,11 @@ class _ extends be {
2897
3080
  if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.getRowId && this.storeStateCollapsedExpandService) {
2898
3081
  const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
2899
3082
  if (s.autoRestoreCollapsedExpandedState && o) {
2900
- const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), a = this.tableModel.getAreaModel("body");
2901
- if (H(a)) {
2902
- const l = a, r = a.getRowCount();
2903
- for (let n = 0; n < r; n++) {
2904
- const c = a.getRowByIndex(n);
3083
+ const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
3084
+ if ($(r)) {
3085
+ const l = r, a = r.getRowCount();
3086
+ for (let n = 0; n < a; n++) {
3087
+ const c = r.getRowByIndex(n);
2905
3088
  if (c)
2906
3089
  if (i.allExpanded)
2907
3090
  c.expanded = !0;
@@ -2923,9 +3106,9 @@ class _ extends be {
2923
3106
  return console.warn("Body model is not available."), [];
2924
3107
  const o = new Array(t).fill(0);
2925
3108
  for (let i = 0; i < s; i++)
2926
- for (let a = 0; a < t; a++) {
2927
- const l = e.getValueAt(i, a), r = (l == null ? void 0 : l.toString().length) || 0;
2928
- r > o[a] && (o[a] = r);
3109
+ for (let r = 0; r < t; r++) {
3110
+ const l = e.getValueAt(i, r), a = (l == null ? void 0 : l.toString().length) || 0;
3111
+ a > o[r] && (o[r] = a);
2929
3112
  }
2930
3113
  return o.map((i) => Math.max(i * 10, 50));
2931
3114
  }
@@ -2943,10 +3126,15 @@ class _ extends be {
2943
3126
  recalcWrappers() {
2944
3127
  this.tableModel.recalcPadding(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows();
2945
3128
  }
3129
+ reSort() {
3130
+ var t;
3131
+ let e = ((t = this.storeSortingService) == null ? void 0 : t.getSortItems()) ?? [];
3132
+ this.tableModel.doSort(e);
3133
+ }
2946
3134
  }
2947
- const B = class B {
3135
+ const P = class P {
2948
3136
  };
2949
- B.themes = ["light", "combat", "paper", "blackboard"], B.vars = {
3137
+ P.themes = ["light", "combat", "paper", "blackboard"], P.vars = {
2950
3138
  light: `html[data-theme="light"] {
2951
3139
  --ge-table-bg: rgba(255,255,255, 0.5);
2952
3140
  --ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
@@ -3180,70 +3368,70 @@ B.themes = ["light", "combat", "paper", "blackboard"], B.vars = {
3180
3368
  --ge-table-drop-zone-bg: #758129;
3181
3369
  }`
3182
3370
  };
3183
- let j = B;
3184
- const P = class P {
3371
+ let X = P;
3372
+ const W = class W {
3185
3373
  constructor(e = new Q()) {
3186
3374
  this.headerGroupOptions = e;
3187
3375
  }
3188
- render(e, t, s, o, i, a, l) {
3189
- const r = a != null && a.data ? a.data : "";
3190
- if (a) {
3191
- const { toggle: n, visibility: c, closed: h } = a, d = n ? P.toggleHeaderGroup : "";
3192
- this.addText(e, o, t, s, r, d), n && c !== "always" && this.addArrowDiv(l, e, !h, t, s, o, d);
3376
+ render(e, t, s, o, i, r, l) {
3377
+ const a = r != null && r.data ? r.data : "";
3378
+ if (r) {
3379
+ const { toggle: n, visibility: c, closed: h } = r, d = n ? W.toggleHeaderGroup : "";
3380
+ this.addText(e, o, t, s, a, d), n && c !== "always" && this.addArrowDiv(l, e, !h, t, s, o, d);
3193
3381
  } else
3194
- this.addText(e, o, t, s, r, "");
3382
+ this.addText(e, o, t, s, a, "");
3195
3383
  }
3196
- addText(e, t, s, o, i, a) {
3384
+ addText(e, t, s, o, i, r) {
3197
3385
  e.innerHTML = `<span
3198
- data-ge-action="${a}"
3386
+ data-ge-action="${r}"
3199
3387
  data-area="${t}"
3200
3388
  data-row-index="${s}"
3201
3389
  data-col-index="${o}"
3202
3390
  >${i}</span>`;
3203
3391
  }
3204
- addArrowDiv(e, t, s = !0, o = -1, i = -1, a = "header", l) {
3205
- const r = e.createElement("div");
3206
- e.addClass(r, "ge-table-toggle-icon-div"), e.setStyle(r, "display", "inline-block"), e.setStyle(r, "position", ""), e.setStyle(r, "width", "20px"), e.setStyle(r, "background", "transparent"), e.setStyle(r, "cursor", "pointer"), e.setAttribute(r, "data-row-index", `${o}`), e.setAttribute(r, "data-col-index", `${i}`), e.setAttribute(r, "data-area", `${a}`), e.setAttribute(r, "data-ge-action", `${l}`);
3392
+ addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", l) {
3393
+ const a = e.createElement("div");
3394
+ e.addClass(a, "ge-table-toggle-icon-div"), e.setStyle(a, "display", "inline-block"), e.setStyle(a, "position", ""), e.setStyle(a, "width", "20px"), e.setStyle(a, "background", "transparent"), e.setStyle(a, "cursor", "pointer"), e.setAttribute(a, "data-row-index", `${o}`), e.setAttribute(a, "data-col-index", `${i}`), e.setAttribute(a, "data-area", `${r}`), e.setAttribute(a, "data-ge-action", `${l}`);
3207
3395
  let n;
3208
3396
  s ? n = this.headerGroupOptions.iconExpanded : n = this.headerGroupOptions.iconCollapsed;
3209
3397
  const c = n.content, h = e.createText(c);
3210
- e.appendChild(r, h), n.style && this.applyStyleString(e, r, n.style);
3398
+ e.appendChild(a, h), n.style && this.applyStyleString(e, a, n.style);
3211
3399
  for (const d of n.classes)
3212
- e.addClass(r, d);
3213
- return e.appendChild(t, r), r;
3400
+ e.addClass(a, d);
3401
+ return e.appendChild(t, a), a;
3214
3402
  }
3215
3403
  applyStyleString(e, t, s) {
3216
3404
  const o = s.split(";").map((i) => i.trim()).filter((i) => i);
3217
3405
  for (const i of o) {
3218
- const [a, l] = i.split(":");
3219
- e.setStyle(t, a.trim(), l.trim());
3406
+ const [r, l] = i.split(":");
3407
+ e.setStyle(t, r.trim(), l.trim());
3220
3408
  }
3221
3409
  }
3222
3410
  };
3223
- P.toggleHeaderGroup = "toggleHeaderGroup";
3224
- let K = P;
3225
- function We({
3226
- tableModel: f,
3411
+ W.toggleHeaderGroup = "toggleHeaderGroup";
3412
+ let K = W;
3413
+ function Ve({
3414
+ tableModel: g,
3227
3415
  tableOptions: e = new ee(),
3228
3416
  mouseMoved: t,
3229
3417
  checkboxChanged: s,
3230
3418
  contextmenu: o,
3231
3419
  modelChanged: i,
3232
- mouseClicked: a,
3420
+ mouseClicked: r,
3233
3421
  mouseDragging: l,
3234
- mouseDraggingEnd: r,
3422
+ mouseDraggingEnd: a,
3235
3423
  selectionChanged: n,
3236
3424
  focusChanged: c,
3237
3425
  tableReady: h,
3238
3426
  licenseKey: d
3239
3427
  }) {
3240
- const m = se(null);
3428
+ const u = se(null);
3241
3429
  let p = !1;
3242
3430
  oe(() => {
3243
- m.current && !p && (b(m.current), p = !0);
3431
+ u.current && !p && (b(u.current), p = !0);
3244
3432
  });
3245
- const b = (g) => {
3246
- const u = {
3433
+ const b = (f) => {
3434
+ const m = {
3247
3435
  onSelectionChanged(S) {
3248
3436
  n && n(S);
3249
3437
  },
@@ -3260,30 +3448,30 @@ function We({
3260
3448
  i && i(S);
3261
3449
  },
3262
3450
  onMouseClicked: (S) => {
3263
- a && a(S);
3451
+ r && r(S);
3264
3452
  },
3265
3453
  onMouseDragging: (S) => {
3266
3454
  l && l(S);
3267
3455
  },
3268
3456
  onMouseDraggingEnd: (S) => {
3269
- r && r(S);
3457
+ a && a(S);
3270
3458
  },
3271
3459
  onMouseMoved: (S) => {
3272
3460
  t && t(S);
3273
3461
  }
3274
- }, x = new _(
3275
- g,
3462
+ }, x = new z(
3276
3463
  f,
3464
+ g,
3277
3465
  new Z(),
3278
3466
  e,
3279
- u
3467
+ m
3280
3468
  );
3281
3469
  x.firstInit(), h && h(x.getApi()), d && k.getInstance().setLicenseKey(d);
3282
3470
  };
3283
3471
  return /* @__PURE__ */ te(
3284
3472
  "div",
3285
3473
  {
3286
- ref: m,
3474
+ ref: u,
3287
3475
  className: "container-div",
3288
3476
  style: {
3289
3477
  width: "100%",
@@ -3296,25 +3484,25 @@ function We({
3296
3484
  );
3297
3485
  }
3298
3486
  var F = {}, Y;
3299
- function Ie() {
3487
+ function Be() {
3300
3488
  if (Y) return F;
3301
3489
  Y = 1;
3302
- var f = ie;
3490
+ var g = ie;
3303
3491
  if (process.env.NODE_ENV === "production")
3304
- F.createRoot = f.createRoot, F.hydrateRoot = f.hydrateRoot;
3492
+ F.createRoot = g.createRoot, F.hydrateRoot = g.hydrateRoot;
3305
3493
  else {
3306
- var e = f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3494
+ var e = g.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
3307
3495
  F.createRoot = function(t, s) {
3308
3496
  e.usingClientEntryPoint = !0;
3309
3497
  try {
3310
- return f.createRoot(t, s);
3498
+ return g.createRoot(t, s);
3311
3499
  } finally {
3312
3500
  e.usingClientEntryPoint = !1;
3313
3501
  }
3314
3502
  }, F.hydrateRoot = function(t, s, o) {
3315
3503
  e.usingClientEntryPoint = !0;
3316
3504
  try {
3317
- return f.hydrateRoot(t, s, o);
3505
+ return g.hydrateRoot(t, s, o);
3318
3506
  } finally {
3319
3507
  e.usingClientEntryPoint = !1;
3320
3508
  }
@@ -3322,26 +3510,26 @@ function Ie() {
3322
3510
  }
3323
3511
  return F;
3324
3512
  }
3325
- var Le = Ie();
3326
- class $e {
3513
+ var Pe = Be();
3514
+ class _e {
3327
3515
  constructor(e) {
3328
3516
  this.Component = e, console.info(e);
3329
3517
  }
3330
- render(e, t, s, o, i, a, l) {
3331
- const r = {
3518
+ render(e, t, s, o, i, r, l) {
3519
+ const a = {
3332
3520
  cellDiv: e,
3333
3521
  rowIndex: t,
3334
3522
  columnIndex: s,
3335
3523
  areaIdent: o,
3336
3524
  areaModel: i,
3337
- cellValue: a
3338
- }, n = Le.createRoot(e, {});
3339
- return n.render(this.Component(r)), () => {
3525
+ cellValue: r
3526
+ }, n = Pe.createRoot(e, {});
3527
+ return n.render(this.Component(a)), () => {
3340
3528
  n.unmount();
3341
3529
  };
3342
3530
  }
3343
3531
  }
3344
3532
  export {
3345
- $e as ComponentRendererWrapper,
3346
- We as GuiexpertTable
3533
+ _e as ComponentRendererWrapper,
3534
+ Ve as GuiexpertTable
3347
3535
  };