@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.
- package/index.cjs +14 -14
- package/index.js +538 -350
- 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
|
|
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
|
-
|
|
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
|
|
38
|
-
return
|
|
37
|
+
function O(g) {
|
|
38
|
+
return g && g.type === "TreeRow";
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
return
|
|
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,
|
|
45
|
-
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent =
|
|
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
|
|
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,
|
|
168
|
-
const l = t.index ?? -1,
|
|
169
|
-
if (this.domService.addClass(
|
|
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(
|
|
171
|
+
this.domService.addClass(a, `ge-table-row-${n}`);
|
|
172
172
|
}
|
|
173
|
-
if (this.domService.setStyle(
|
|
174
|
-
const n = this.domService.createText(
|
|
175
|
-
this.domService.appendChild(
|
|
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,
|
|
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:
|
|
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", `${
|
|
182
|
-
const
|
|
183
|
-
if (
|
|
184
|
-
const
|
|
185
|
-
this.addLabelDiv(b,
|
|
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"),
|
|
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
|
-
${
|
|
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,
|
|
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", `${
|
|
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
|
|
205
|
-
this.domService.appendChild(l,
|
|
204
|
+
const a = this.domService.createText(t);
|
|
205
|
+
this.domService.appendChild(l, a);
|
|
206
206
|
} else {
|
|
207
|
-
const
|
|
208
|
-
this.domService.appendChild(l,
|
|
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(
|
|
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
|
|
218
|
-
t === "asc" ?
|
|
219
|
-
const l =
|
|
220
|
-
this.domService.appendChild(i,
|
|
221
|
-
for (const n of
|
|
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,
|
|
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", `${
|
|
228
|
-
let
|
|
229
|
-
t === "expanded" ?
|
|
230
|
-
const n =
|
|
231
|
-
this.domService.appendChild(l, c),
|
|
232
|
-
for (const h of
|
|
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
|
|
239
|
-
this.addVerticalBorder(s, t,
|
|
238
|
+
const r = `ge-table-${o}-${i}-vertical-border`;
|
|
239
|
+
this.addVerticalBorder(s, t, r);
|
|
240
240
|
}
|
|
241
241
|
if (e.horizontalBorderVisible) {
|
|
242
|
-
const
|
|
243
|
-
this.addHorizontalBorder(s, t,
|
|
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,
|
|
268
|
-
this.domService.setStyle(e, i.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
|
|
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 =
|
|
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 (
|
|
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
|
|
331
|
-
|
|
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 =
|
|
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(
|
|
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
|
|
353
|
-
if (s && o === "body" && l.isEditable(i,
|
|
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 =
|
|
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,
|
|
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
|
|
385
|
-
n ? (
|
|
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
|
|
608
|
-
const l = this.tableScope.tableModel.getAreaModel(
|
|
609
|
-
for (let n = 0; 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
|
|
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
|
|
666
|
-
this.persistItem(i,
|
|
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
|
|
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
|
|
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
|
|
925
|
+
class ue extends N {
|
|
743
926
|
constructor(e) {
|
|
744
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
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
|
|
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
|
|
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
|
|
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),
|
|
1020
|
-
if (i > 1 ||
|
|
1021
|
-
i === 0 && (i = 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 +
|
|
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
|
|
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
|
|
1229
|
+
class xe extends be {
|
|
1047
1230
|
constructor(e, t, s, o) {
|
|
1048
|
-
var
|
|
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
|
|
1054
|
-
(
|
|
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[
|
|
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
|
|
1194
|
-
if (
|
|
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 =
|
|
1199
|
-
n = h.render(
|
|
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(
|
|
1385
|
+
this.dom.addLabelDiv(a, p, !1, t, s, e);
|
|
1203
1386
|
}
|
|
1204
|
-
const d =
|
|
1205
|
-
d.length && this.dom.addClasses(d,
|
|
1206
|
-
const
|
|
1207
|
-
if (
|
|
1208
|
-
for (const p in
|
|
1209
|
-
this.dom.setStyle(
|
|
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
|
|
1308
|
-
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"),
|
|
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,
|
|
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
|
|
1313
|
-
|
|
1495
|
+
const m = this.cleanupFunctions[e].shift();
|
|
1496
|
+
m && m();
|
|
1314
1497
|
}
|
|
1315
1498
|
let d = t;
|
|
1316
|
-
const
|
|
1317
|
-
for (let
|
|
1318
|
-
const x = d, S =
|
|
1319
|
-
if (x +
|
|
1320
|
-
this.firstVisibleRowIndex =
|
|
1321
|
-
let v = { left: l, width:
|
|
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:
|
|
1512
|
+
rowIndex: m,
|
|
1330
1513
|
columnIndexStart: R,
|
|
1331
|
-
columnIndexEnd:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
1352
|
-
columnIndexStart:
|
|
1353
|
-
columnIndexEnd:
|
|
1534
|
+
rowIndex: m,
|
|
1535
|
+
columnIndexStart: u - p,
|
|
1536
|
+
columnIndexEnd: u - 1,
|
|
1354
1537
|
verticalFixed: !0,
|
|
1355
1538
|
lastRowOfModel: S
|
|
1356
|
-
})), e === "header" && this.tree &&
|
|
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 +
|
|
1554
|
+
if (d = d + C, d > r)
|
|
1372
1555
|
break;
|
|
1373
1556
|
}
|
|
1374
1557
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
1375
|
-
const
|
|
1376
|
-
if (
|
|
1377
|
-
for (const x of
|
|
1378
|
-
let S = 0,
|
|
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
|
-
|
|
1381
|
-
else if (p > 0 && x.c1 >=
|
|
1382
|
-
|
|
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,
|
|
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,
|
|
1402
|
-
const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((
|
|
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 >=
|
|
1405
|
-
const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((
|
|
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:
|
|
1594
|
+
sideIdent: r,
|
|
1412
1595
|
rowIndex: e.r1,
|
|
1413
1596
|
columnIndex: e.c1,
|
|
1414
1597
|
left: h,
|
|
1415
1598
|
top: l,
|
|
1416
|
-
width:
|
|
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:
|
|
1608
|
+
sideIdent: r,
|
|
1426
1609
|
rowIndex: e.r1,
|
|
1427
1610
|
columnIndex: e.c1,
|
|
1428
1611
|
left: h,
|
|
1429
1612
|
top: l,
|
|
1430
|
-
width:
|
|
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:
|
|
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
|
|
1459
|
-
if (
|
|
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:
|
|
1662
|
+
rowIndex: r,
|
|
1480
1663
|
columnIndexStart: l,
|
|
1481
|
-
columnIndexEnd:
|
|
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
|
|
1490
|
-
h = this.scrollFactorX *
|
|
1672
|
+
const f = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1673
|
+
h = this.scrollFactorX * f;
|
|
1491
1674
|
}
|
|
1492
|
-
const d = 0,
|
|
1675
|
+
const d = 0, u = !!(e === "body" && t);
|
|
1493
1676
|
let p = h;
|
|
1494
|
-
for (let
|
|
1495
|
-
const
|
|
1496
|
-
if (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
|
|
1499
|
-
|
|
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(
|
|
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(
|
|
1504
|
-
this.renderDragTargetDiv(i,
|
|
1505
|
-
const A = { left:
|
|
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,
|
|
1509
|
-
"gammaCells" in s && s.getValueAt(
|
|
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:
|
|
1514
|
-
columnIndex:
|
|
1515
|
-
left:
|
|
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:
|
|
1525
|
-
columnIndex:
|
|
1526
|
-
cellLeft:
|
|
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:
|
|
1740
|
+
left: r,
|
|
1558
1741
|
width: l,
|
|
1559
|
-
height:
|
|
1742
|
+
height: a,
|
|
1560
1743
|
top: n,
|
|
1561
1744
|
parent: c,
|
|
1562
1745
|
lastRowOfModel: h
|
|
1563
1746
|
}) {
|
|
1564
1747
|
var U;
|
|
1565
|
-
const
|
|
1566
|
-
let
|
|
1567
|
-
if (i === this.getTreeArrowColumnIndex() &&
|
|
1568
|
-
const
|
|
1569
|
-
(U =
|
|
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
|
|
1574
|
-
(!(
|
|
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),
|
|
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:
|
|
1585
|
-
treeArrow:
|
|
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
|
-
|
|
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:
|
|
1598
|
-
const
|
|
1599
|
-
|
|
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
|
|
1603
|
-
if (
|
|
1604
|
-
for (const
|
|
1605
|
-
this.dom.setStyle(y,
|
|
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
|
|
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:
|
|
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),
|
|
1769
|
-
if (
|
|
1770
|
-
const l = e.index ?? 0,
|
|
1771
|
-
for (let n = 0; n <
|
|
1772
|
-
const c = s, h = i.getRowHeight(n), d = { left: 0, width: e.width, height: h, top: c, index: n },
|
|
1773
|
-
parent:
|
|
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
|
-
},
|
|
1963
|
+
}, m = this.dom.addColumnDiv(f);
|
|
1781
1964
|
let x;
|
|
1782
|
-
p && (x = p.render(
|
|
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,
|
|
1785
|
-
const
|
|
1786
|
-
|
|
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(
|
|
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
|
|
2001
|
+
const r = this.dom.applyStylePosistionAbsolute(
|
|
1819
2002
|
this.dom.createDivWithClass("ge-table-drop-zone", e)
|
|
1820
2003
|
);
|
|
1821
|
-
return this.dom.setStyle(
|
|
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,
|
|
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,
|
|
1843
|
-
const
|
|
1844
|
-
if (
|
|
1845
|
-
const p =
|
|
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
|
|
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(
|
|
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:
|
|
2066
|
+
left: r,
|
|
1884
2067
|
top: l,
|
|
1885
|
-
width:
|
|
2068
|
+
width: a,
|
|
1886
2069
|
height: n,
|
|
1887
2070
|
parent: c,
|
|
1888
2071
|
cellSelected: h,
|
|
1889
2072
|
lastRowOfModel: d
|
|
1890
2073
|
}) {
|
|
1891
|
-
const [
|
|
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:
|
|
1898
|
-
width:
|
|
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`,
|
|
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:
|
|
1921
|
-
const
|
|
1922
|
-
|
|
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
|
|
2108
|
+
class ve {
|
|
1926
2109
|
constructor(e, t) {
|
|
1927
2110
|
this.columnIndex = e, this.sortState = t;
|
|
1928
2111
|
}
|
|
1929
2112
|
}
|
|
1930
|
-
class
|
|
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
|
|
1947
|
-
this.tableScope.updateModelValueAfterEdit(
|
|
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
|
|
2135
|
+
class Ce {
|
|
1953
2136
|
constructor(e = -1, t = -1) {
|
|
1954
2137
|
this.rowIndex = e, this.columnIndex = t;
|
|
1955
2138
|
}
|
|
1956
2139
|
}
|
|
1957
|
-
class
|
|
2140
|
+
class G {
|
|
1958
2141
|
constructor(e) {
|
|
1959
2142
|
this.cells = e;
|
|
1960
2143
|
}
|
|
1961
2144
|
static createSingle(e, t) {
|
|
1962
|
-
return new
|
|
2145
|
+
return new G([new Ce(e, t)]);
|
|
1963
2146
|
}
|
|
1964
2147
|
}
|
|
1965
|
-
class
|
|
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,
|
|
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(),
|
|
1975
|
-
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),
|
|
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:
|
|
2185
|
+
columnIndex2: r
|
|
2003
2186
|
});
|
|
2004
2187
|
}
|
|
2005
2188
|
}
|
|
2006
|
-
class
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2169
|
-
render(e, t, s, o, i,
|
|
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
|
|
2355
|
+
const a = i.getValueAt(t, s);
|
|
2173
2356
|
e.innerHTML = `
|
|
2174
2357
|
<input
|
|
2175
2358
|
type="text"
|
|
2176
|
-
value="${
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
2346
|
-
if (
|
|
2347
|
-
|
|
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
|
|
2532
|
+
for (let a = r.r1; a <= r.r2; a++) {
|
|
2350
2533
|
const n = [];
|
|
2351
|
-
for (let c =
|
|
2352
|
-
const h = t.isSelected(
|
|
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 [
|
|
2362
|
-
return o(
|
|
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((
|
|
2391
|
-
|
|
2392
|
-
o(
|
|
2573
|
+
).then((r) => {
|
|
2574
|
+
r && this.copyContent(r).then((l) => {
|
|
2575
|
+
o(r);
|
|
2393
2576
|
}).catch((l) => {
|
|
2394
2577
|
i();
|
|
2395
2578
|
});
|
|
2396
|
-
}).catch((
|
|
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
|
|
2417
|
-
class
|
|
2599
|
+
let B = I;
|
|
2600
|
+
class Le {
|
|
2418
2601
|
constructor(e, t = 500) {
|
|
2419
|
-
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(
|
|
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
|
|
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
|
-
}),
|
|
2445
|
-
|
|
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>`,
|
|
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>`,
|
|
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",
|
|
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
|
|
2477
|
-
if (typeof
|
|
2478
|
-
t.push(`<c r="${l}"><v>${
|
|
2479
|
-
else if (
|
|
2480
|
-
const
|
|
2481
|
-
t.push(`<c r="${l}" t="inlineStr"><is><t>${
|
|
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
|
|
2484
|
-
t.push(`<c r="${l}" t="inlineStr"><is><t>${
|
|
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
|
|
2508
|
-
b.set([80, 75, 3, 4], 0),
|
|
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),
|
|
2517
|
-
|
|
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
|
|
2520
|
-
|
|
2521
|
-
const
|
|
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
|
|
2533
|
-
constructor(e, t, s, o, i,
|
|
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
|
|
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
|
|
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
|
|
2540
|
-
const
|
|
2541
|
-
|
|
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
|
|
2558
|
-
return new
|
|
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(
|
|
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
|
-
|
|
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
|
|
2698
|
-
const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e),
|
|
2699
|
-
o.setRowChecked(e,
|
|
2700
|
-
const l = (
|
|
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,
|
|
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,
|
|
2756
|
-
this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((d) => d.sortState = ""), o.sortState = n), this.repaint(), (
|
|
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(),
|
|
2901
|
-
if (
|
|
2902
|
-
const l =
|
|
2903
|
-
for (let n = 0; n <
|
|
2904
|
-
const c =
|
|
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
|
|
2927
|
-
const l = e.getValueAt(i,
|
|
2928
|
-
|
|
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
|
|
3135
|
+
const P = class P {
|
|
2948
3136
|
};
|
|
2949
|
-
|
|
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
|
|
3184
|
-
const
|
|
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,
|
|
3189
|
-
const
|
|
3190
|
-
if (
|
|
3191
|
-
const { toggle: n, visibility: c, closed: h } =
|
|
3192
|
-
this.addText(e, o, t, s,
|
|
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,
|
|
3382
|
+
this.addText(e, o, t, s, a, "");
|
|
3195
3383
|
}
|
|
3196
|
-
addText(e, t, s, o, i,
|
|
3384
|
+
addText(e, t, s, o, i, r) {
|
|
3197
3385
|
e.innerHTML = `<span
|
|
3198
|
-
data-ge-action="${
|
|
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,
|
|
3205
|
-
const
|
|
3206
|
-
e.addClass(
|
|
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(
|
|
3398
|
+
e.appendChild(a, h), n.style && this.applyStyleString(e, a, n.style);
|
|
3211
3399
|
for (const d of n.classes)
|
|
3212
|
-
e.addClass(
|
|
3213
|
-
return e.appendChild(t,
|
|
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 [
|
|
3219
|
-
e.setStyle(t,
|
|
3406
|
+
const [r, l] = i.split(":");
|
|
3407
|
+
e.setStyle(t, r.trim(), l.trim());
|
|
3220
3408
|
}
|
|
3221
3409
|
}
|
|
3222
3410
|
};
|
|
3223
|
-
|
|
3224
|
-
let K =
|
|
3225
|
-
function
|
|
3226
|
-
tableModel:
|
|
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:
|
|
3420
|
+
mouseClicked: r,
|
|
3233
3421
|
mouseDragging: l,
|
|
3234
|
-
mouseDraggingEnd:
|
|
3422
|
+
mouseDraggingEnd: a,
|
|
3235
3423
|
selectionChanged: n,
|
|
3236
3424
|
focusChanged: c,
|
|
3237
3425
|
tableReady: h,
|
|
3238
3426
|
licenseKey: d
|
|
3239
3427
|
}) {
|
|
3240
|
-
const
|
|
3428
|
+
const u = se(null);
|
|
3241
3429
|
let p = !1;
|
|
3242
3430
|
oe(() => {
|
|
3243
|
-
|
|
3431
|
+
u.current && !p && (b(u.current), p = !0);
|
|
3244
3432
|
});
|
|
3245
|
-
const b = (
|
|
3246
|
-
const
|
|
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
|
-
|
|
3451
|
+
r && r(S);
|
|
3264
3452
|
},
|
|
3265
3453
|
onMouseDragging: (S) => {
|
|
3266
3454
|
l && l(S);
|
|
3267
3455
|
},
|
|
3268
3456
|
onMouseDraggingEnd: (S) => {
|
|
3269
|
-
|
|
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
|
-
|
|
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:
|
|
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
|
|
3487
|
+
function Be() {
|
|
3300
3488
|
if (Y) return F;
|
|
3301
3489
|
Y = 1;
|
|
3302
|
-
var
|
|
3490
|
+
var g = ie;
|
|
3303
3491
|
if (process.env.NODE_ENV === "production")
|
|
3304
|
-
F.createRoot =
|
|
3492
|
+
F.createRoot = g.createRoot, F.hydrateRoot = g.hydrateRoot;
|
|
3305
3493
|
else {
|
|
3306
|
-
var e =
|
|
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
|
|
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
|
|
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
|
|
3326
|
-
class
|
|
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,
|
|
3331
|
-
const
|
|
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:
|
|
3338
|
-
}, n =
|
|
3339
|
-
return n.render(this.Component(
|
|
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
|
-
|
|
3346
|
-
|
|
3533
|
+
_e as ComponentRendererWrapper,
|
|
3534
|
+
Ve as GuiexpertTable
|
|
3347
3535
|
};
|