@guiexpert/solid-table 1.0.25 → 1.0.26
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 +9 -9
- package/index.js +139 -138
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -279,19 +279,19 @@ function Ee(...a) {
|
|
|
279
279
|
if (!l)
|
|
280
280
|
continue;
|
|
281
281
|
const n = Object.getOwnPropertyNames(l);
|
|
282
|
-
for (let
|
|
283
|
-
const
|
|
284
|
-
if (
|
|
282
|
+
for (let d = n.length - 1; d >= 0; d--) {
|
|
283
|
+
const c = n[d];
|
|
284
|
+
if (c === "__proto__" || c === "constructor")
|
|
285
285
|
continue;
|
|
286
|
-
const h = Object.getOwnPropertyDescriptor(l,
|
|
287
|
-
if (!s[
|
|
288
|
-
s[
|
|
286
|
+
const h = Object.getOwnPropertyDescriptor(l, c);
|
|
287
|
+
if (!s[c])
|
|
288
|
+
s[c] = h.get ? {
|
|
289
289
|
enumerable: !0,
|
|
290
290
|
configurable: !0,
|
|
291
|
-
get: Ge.bind(t[
|
|
291
|
+
get: Ge.bind(t[c] = [h.get.bind(l)])
|
|
292
292
|
} : h.value !== void 0 ? h : void 0;
|
|
293
293
|
else {
|
|
294
|
-
const p = t[
|
|
294
|
+
const p = t[c];
|
|
295
295
|
p && (h.get ? p.push(h.get.bind(l)) : h.value !== void 0 && p.push(() => h.value));
|
|
296
296
|
}
|
|
297
297
|
}
|
|
@@ -304,7 +304,7 @@ function Ee(...a) {
|
|
|
304
304
|
return o;
|
|
305
305
|
}
|
|
306
306
|
function _e(a, e, t) {
|
|
307
|
-
let s = t.length, o = e.length, i = s, r = 0, l = 0, n = e[o - 1].nextSibling,
|
|
307
|
+
let s = t.length, o = e.length, i = s, r = 0, l = 0, n = e[o - 1].nextSibling, d = null;
|
|
308
308
|
for (; r < o || l < i; ) {
|
|
309
309
|
if (e[r] === t[l]) {
|
|
310
310
|
r++, l++;
|
|
@@ -313,31 +313,31 @@ function _e(a, e, t) {
|
|
|
313
313
|
for (; e[o - 1] === t[i - 1]; )
|
|
314
314
|
o--, i--;
|
|
315
315
|
if (o === r) {
|
|
316
|
-
const
|
|
316
|
+
const c = i < s ? l ? t[l - 1].nextSibling : t[i - l] : n;
|
|
317
317
|
for (; l < i; )
|
|
318
|
-
a.insertBefore(t[l++],
|
|
318
|
+
a.insertBefore(t[l++], c);
|
|
319
319
|
} else if (i === l)
|
|
320
320
|
for (; r < o; )
|
|
321
|
-
(!
|
|
321
|
+
(!d || !d.has(e[r])) && e[r].remove(), r++;
|
|
322
322
|
else if (e[r] === t[i - 1] && t[l] === e[o - 1]) {
|
|
323
|
-
const
|
|
324
|
-
a.insertBefore(t[l++], e[r++].nextSibling), a.insertBefore(t[--i],
|
|
323
|
+
const c = e[--o].nextSibling;
|
|
324
|
+
a.insertBefore(t[l++], e[r++].nextSibling), a.insertBefore(t[--i], c), e[o] = t[i];
|
|
325
325
|
} else {
|
|
326
|
-
if (!
|
|
327
|
-
|
|
326
|
+
if (!d) {
|
|
327
|
+
d = /* @__PURE__ */ new Map();
|
|
328
328
|
let h = l;
|
|
329
329
|
for (; h < i; )
|
|
330
|
-
|
|
330
|
+
d.set(t[h], h++);
|
|
331
331
|
}
|
|
332
|
-
const
|
|
333
|
-
if (
|
|
334
|
-
if (l <
|
|
332
|
+
const c = d.get(e[r]);
|
|
333
|
+
if (c != null)
|
|
334
|
+
if (l < c && c < i) {
|
|
335
335
|
let h = r, p = 1, u;
|
|
336
|
-
for (; ++h < o && h < i && !((u =
|
|
336
|
+
for (; ++h < o && h < i && !((u = d.get(e[h])) == null || u !== c + p); )
|
|
337
337
|
p++;
|
|
338
|
-
if (p >
|
|
338
|
+
if (p > c - l) {
|
|
339
339
|
const g = e[r];
|
|
340
|
-
for (; l <
|
|
340
|
+
for (; l < c; )
|
|
341
341
|
a.insertBefore(t[l++], g);
|
|
342
342
|
} else
|
|
343
343
|
a.replaceChild(t[l++], e[r++]);
|
|
@@ -419,13 +419,13 @@ function j(a, e, t, s, o) {
|
|
|
419
419
|
function oe(a, e, t, s) {
|
|
420
420
|
let o = !1;
|
|
421
421
|
for (let i = 0, r = e.length; i < r; i++) {
|
|
422
|
-
let l = e[i], n = t && t[i],
|
|
422
|
+
let l = e[i], n = t && t[i], d;
|
|
423
423
|
if (!(l == null || l === !0 || l === !1))
|
|
424
|
-
if ((
|
|
424
|
+
if ((d = typeof l) == "object" && l.nodeType)
|
|
425
425
|
a.push(l);
|
|
426
426
|
else if (Array.isArray(l))
|
|
427
427
|
o = oe(a, l, n) || o;
|
|
428
|
-
else if (
|
|
428
|
+
else if (d === "function")
|
|
429
429
|
if (s) {
|
|
430
430
|
for (; typeof l == "function"; )
|
|
431
431
|
l = l();
|
|
@@ -433,8 +433,8 @@ function oe(a, e, t, s) {
|
|
|
433
433
|
} else
|
|
434
434
|
a.push(l), o = !0;
|
|
435
435
|
else {
|
|
436
|
-
const
|
|
437
|
-
n && n.nodeType === 3 && n.data ===
|
|
436
|
+
const c = String(l);
|
|
437
|
+
n && n.nodeType === 3 && n.data === c ? a.push(n) : a.push(document.createTextNode(c));
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
return o;
|
|
@@ -522,8 +522,8 @@ function re(a) {
|
|
|
522
522
|
return a && a.type === "AreaModelTree";
|
|
523
523
|
}
|
|
524
524
|
class le {
|
|
525
|
-
constructor(e = -1, t = -1, s = -1, o = -1, i, r, l, n = 0,
|
|
526
|
-
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX =
|
|
525
|
+
constructor(e = -1, t = -1, s = -1, o = -1, i, r, l, n = 0, d = 0, c = 0, h = "") {
|
|
526
|
+
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX = d, this.draggingY = c, this.action = h;
|
|
527
527
|
}
|
|
528
528
|
clone() {
|
|
529
529
|
return new le(
|
|
@@ -648,24 +648,24 @@ class Ye {
|
|
|
648
648
|
addRowDiv(e, t, s = -1, o, i, r = "") {
|
|
649
649
|
const l = t.index ?? -1, n = this.getDivOrCreateDiv(l, e);
|
|
650
650
|
if (this.domService.addClass(n, "ge-table-row-div"), this.domService.addClass(n, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
|
|
651
|
-
const
|
|
652
|
-
this.domService.addClass(n, `ge-table-row-${
|
|
651
|
+
const d = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
652
|
+
this.domService.addClass(n, `ge-table-row-${d}`);
|
|
653
653
|
}
|
|
654
654
|
if (this.domService.setStyle(n, "display", "clip"), this.domService.setStyle(n, "position", "absolute"), this.domService.setStyle(n, "left", `${t.left}px`), this.domService.setStyle(n, "top", `${t.top}px`), this.domService.setStyle(n, "width", `${t.width}px`), this.domService.setStyle(n, "height", `${t.height}px`), this.domService.setAttribute(n, "data-row-index", `${s}`), this.domService.setAttribute(n, "data-area", `${o}`), r) {
|
|
655
|
-
const
|
|
656
|
-
this.domService.appendChild(n,
|
|
655
|
+
const d = this.domService.createText(r);
|
|
656
|
+
this.domService.appendChild(n, d);
|
|
657
657
|
}
|
|
658
658
|
return this.domService.appendChild(e.child, n), n;
|
|
659
659
|
}
|
|
660
660
|
addColumnDiv(e) {
|
|
661
|
-
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: l, text: n = "", treeArrow:
|
|
661
|
+
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: l, text: n = "", treeArrow: d, tableOptions: c, checkedType: h = void 0, sortState: p } = e, u = c == null ? void 0 : c.treeOptions, g = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
|
|
662
662
|
this.domService.addClass(b, "ge-table-col-div"), g && 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}`);
|
|
663
663
|
const f = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
664
|
-
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`),
|
|
665
|
-
const m =
|
|
664
|
+
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`), d && d !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, d, u, o, i, r)), g && i === 0 && h && this.addCheckboxToDiv(b, h, r, o), n) {
|
|
665
|
+
const m = d !== "none" && i === 0;
|
|
666
666
|
this.addLabelDiv(b, n, m, o, i, r);
|
|
667
667
|
}
|
|
668
|
-
return p && this.addSortedIcon(b, p,
|
|
668
|
+
return p && this.addSortedIcon(b, p, c == null ? void 0 : c.sortedOptions, i), this.domService.appendChild(t, b), b;
|
|
669
669
|
}
|
|
670
670
|
addCheckboxToDiv(e, t, s, o) {
|
|
671
671
|
const i = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
|
|
@@ -687,8 +687,8 @@ class Ye {
|
|
|
687
687
|
} else {
|
|
688
688
|
const n = this.domService.createElement("div");
|
|
689
689
|
this.domService.appendChild(l, n);
|
|
690
|
-
const
|
|
691
|
-
this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n,
|
|
690
|
+
const d = this.domService.createText(t);
|
|
691
|
+
this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n, d), this.domService.setAttribute(n, "data-row-index", `${o}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`);
|
|
692
692
|
}
|
|
693
693
|
return this.domService.appendChild(e, l), l;
|
|
694
694
|
}
|
|
@@ -699,8 +699,8 @@ class Ye {
|
|
|
699
699
|
t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
|
|
700
700
|
const l = r.content, n = this.domService.createText(l);
|
|
701
701
|
this.domService.appendChild(i, n), r.style && this.applyStyleString(i, r.style);
|
|
702
|
-
for (const
|
|
703
|
-
this.domService.addClass(i,
|
|
702
|
+
for (const d of r.classes)
|
|
703
|
+
this.domService.addClass(i, d);
|
|
704
704
|
return this.domService.appendChild(e, i), i;
|
|
705
705
|
}
|
|
706
706
|
addArrowDiv(e, t = "none", s = new Ae(), o = -1, i = -1, r = "body") {
|
|
@@ -708,8 +708,8 @@ class Ye {
|
|
|
708
708
|
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}`);
|
|
709
709
|
let n;
|
|
710
710
|
t === "expanded" ? n = s.arrowExpanded : t === "collapsed" ? n = s.arrowCollapsed : n = s.arrowPlaceholder;
|
|
711
|
-
const
|
|
712
|
-
this.domService.appendChild(l,
|
|
711
|
+
const d = n.content, c = this.domService.createText(d);
|
|
712
|
+
this.domService.appendChild(l, c), n.style && this.applyStyleString(l, n.style);
|
|
713
713
|
for (const h of n.classes)
|
|
714
714
|
this.domService.addClass(l, h);
|
|
715
715
|
return this.domService.appendChild(e, l), l;
|
|
@@ -833,8 +833,8 @@ class qe {
|
|
|
833
833
|
const n = l.getRowByIndex(i);
|
|
834
834
|
if (s && o === "body" && l.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), ie(n) && r === this.getArrowColumnIndex()) {
|
|
835
835
|
e.preventDefault(), e.stopPropagation();
|
|
836
|
-
const
|
|
837
|
-
|
|
836
|
+
const d = n;
|
|
837
|
+
d.expanded = !d.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(d);
|
|
838
838
|
}
|
|
839
839
|
}
|
|
840
840
|
}
|
|
@@ -862,8 +862,8 @@ class qe {
|
|
|
862
862
|
var s, o, i, r, l;
|
|
863
863
|
const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
|
|
864
864
|
if (t) {
|
|
865
|
-
const n = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode,
|
|
866
|
-
|
|
865
|
+
const n = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, d = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, c = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded, h = t(e.data);
|
|
866
|
+
d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : c && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(h));
|
|
867
867
|
}
|
|
868
868
|
}
|
|
869
869
|
getArrowColumnIndex() {
|
|
@@ -1077,23 +1077,24 @@ class Ze {
|
|
|
1077
1077
|
);
|
|
1078
1078
|
}
|
|
1079
1079
|
/**
|
|
1080
|
-
*
|
|
1081
|
-
* Extracts the table data into a 2D matrix and uses the Excel service to generate and download the file.
|
|
1080
|
+
* Generates and downloads an Excel file based on the table data.
|
|
1082
1081
|
*
|
|
1083
|
-
* @
|
|
1082
|
+
* @param {string} fileName - The name of the Excel file to be downloaded. Defaults to 'table.xlsx'.
|
|
1083
|
+
* @param {string} author - The author of the Excel file. If not provided, it will remain empty.
|
|
1084
|
+
* @return {void} No return value. Initiates a file download of the Excel document.
|
|
1084
1085
|
*/
|
|
1085
|
-
downloadExcel() {
|
|
1086
|
-
const
|
|
1087
|
-
for (const
|
|
1088
|
-
const
|
|
1089
|
-
for (let
|
|
1090
|
-
const
|
|
1091
|
-
|
|
1092
|
-
for (let
|
|
1093
|
-
|
|
1086
|
+
downloadExcel(e = "table.xlsx", t = "") {
|
|
1087
|
+
const s = [], o = this.tableScope.tableModel.getColumnCount(), i = ["header", "body", "footer"];
|
|
1088
|
+
for (const r of i) {
|
|
1089
|
+
const l = this.tableScope.tableModel.getAreaModel(r), n = (l == null ? void 0 : l.getRowCount()) ?? 0;
|
|
1090
|
+
for (let d = 0; d < n; d++) {
|
|
1091
|
+
const c = [];
|
|
1092
|
+
s.push(c);
|
|
1093
|
+
for (let h = 0; h < o; h++)
|
|
1094
|
+
c.push(l.getValueAt(d, h));
|
|
1094
1095
|
}
|
|
1095
1096
|
}
|
|
1096
|
-
return this.tableScope.excelService.downloadExcel(e,
|
|
1097
|
+
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
1097
1098
|
}
|
|
1098
1099
|
/**
|
|
1099
1100
|
* Retrieves the current scope of the table.
|
|
@@ -1528,8 +1529,8 @@ class at extends ot {
|
|
|
1528
1529
|
footer: []
|
|
1529
1530
|
}, this.tree = !1, this.colAndRowspanModels = new rt(), 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), re(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
1530
1531
|
(n) => {
|
|
1531
|
-
var
|
|
1532
|
-
this.colAndRowspanModels[n] = new it(t, t.getAreaModel(n)), (
|
|
1532
|
+
var d;
|
|
1533
|
+
this.colAndRowspanModels[n] = new it(t, t.getAreaModel(n)), (d = this.colAndRowspanModels[n]) == null || d.init();
|
|
1533
1534
|
}
|
|
1534
1535
|
);
|
|
1535
1536
|
}
|
|
@@ -1668,11 +1669,11 @@ class at extends ot {
|
|
|
1668
1669
|
rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
|
|
1669
1670
|
const r = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', n = document.querySelector(l);
|
|
1670
1671
|
if (n) {
|
|
1671
|
-
let
|
|
1672
|
-
const
|
|
1672
|
+
let d;
|
|
1673
|
+
const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
1673
1674
|
let h;
|
|
1674
|
-
if (
|
|
1675
|
-
|
|
1675
|
+
if (c ? h = this.editorRenderer : h = r.getCellRenderer(t, s), n.innerText = "", this.applyCssClasses(n, i), h)
|
|
1676
|
+
d = h.render(n, t, s, e, r, o, this.dom.domService), d && this.cleanupFunctions[e].push(d);
|
|
1676
1677
|
else {
|
|
1677
1678
|
const g = `${o}`;
|
|
1678
1679
|
this.dom.addLabelDiv(n, g, !1, t, s, e);
|
|
@@ -1794,7 +1795,7 @@ class at extends ot {
|
|
|
1794
1795
|
var f;
|
|
1795
1796
|
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
1796
1797
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
1797
|
-
const l = 0, n = this.areaBodyCenterGeo.width,
|
|
1798
|
+
const l = 0, n = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
|
|
1798
1799
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1799
1800
|
const m = this.cleanupFunctions[e].shift();
|
|
1800
1801
|
m && m();
|
|
@@ -1810,7 +1811,7 @@ class at extends ot {
|
|
|
1810
1811
|
if (this.adjustColumnsToRowParent({
|
|
1811
1812
|
areaIdent: e,
|
|
1812
1813
|
sideIdent: "center",
|
|
1813
|
-
areaModel:
|
|
1814
|
+
areaModel: c,
|
|
1814
1815
|
geo: y,
|
|
1815
1816
|
parent: S,
|
|
1816
1817
|
rowIndex: m,
|
|
@@ -1818,10 +1819,10 @@ class at extends ot {
|
|
|
1818
1819
|
columnIndexEnd: u - g - 1,
|
|
1819
1820
|
verticalFixed: !1,
|
|
1820
1821
|
lastRowOfModel: C
|
|
1821
|
-
}),
|
|
1822
|
+
}), d.left > 0 && (y = { left: l, width: this.areaBodyWestGeo.width, height: E, top: x, index: m }, S = this.dom.addRowDiv(s, y, m, e, "west"), this.adjustColumnsToRowParent({
|
|
1822
1823
|
areaIdent: e,
|
|
1823
1824
|
sideIdent: "west",
|
|
1824
|
-
areaModel:
|
|
1825
|
+
areaModel: c,
|
|
1825
1826
|
geo: y,
|
|
1826
1827
|
parent: S,
|
|
1827
1828
|
rowIndex: m,
|
|
@@ -1829,10 +1830,10 @@ class at extends ot {
|
|
|
1829
1830
|
columnIndexEnd: k - 1,
|
|
1830
1831
|
verticalFixed: !0,
|
|
1831
1832
|
lastRowOfModel: C
|
|
1832
|
-
})),
|
|
1833
|
+
})), d.right > 0 && (y = { left: l, width: this.areaBodyEastGeo.width, height: E, top: x, index: m }, S = this.dom.addRowDiv(i, y, m, e, "east"), this.adjustColumnsToRowParent({
|
|
1833
1834
|
areaIdent: e,
|
|
1834
1835
|
sideIdent: "east",
|
|
1835
|
-
areaModel:
|
|
1836
|
+
areaModel: c,
|
|
1836
1837
|
geo: y,
|
|
1837
1838
|
parent: S,
|
|
1838
1839
|
rowIndex: m,
|
|
@@ -1871,7 +1872,7 @@ class at extends ot {
|
|
|
1871
1872
|
const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1872
1873
|
C = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
|
|
1873
1874
|
}
|
|
1874
|
-
this.drawBigCell(x, C, t,
|
|
1875
|
+
this.drawBigCell(x, C, t, c, E, y);
|
|
1875
1876
|
}
|
|
1876
1877
|
}
|
|
1877
1878
|
}
|
|
@@ -1886,10 +1887,10 @@ class at extends ot {
|
|
|
1886
1887
|
* @protected
|
|
1887
1888
|
*/
|
|
1888
1889
|
drawBigCell(e, t, s, o, i, r) {
|
|
1889
|
-
const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0), n = this.tableModel.getColumnCount(),
|
|
1890
|
-
let
|
|
1891
|
-
|
|
1892
|
-
const h = t + this.getColumnWidths(
|
|
1890
|
+
const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0), n = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
|
|
1891
|
+
let c = 0;
|
|
1892
|
+
d > 0 && e.c1 >= n - d && (c = n - d);
|
|
1893
|
+
const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((f, m) => f + m, 0), p = 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);
|
|
1893
1894
|
let g = !1;
|
|
1894
1895
|
const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
1895
1896
|
b && (g = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
@@ -1966,13 +1967,13 @@ class at extends ot {
|
|
|
1966
1967
|
rowIndex: r,
|
|
1967
1968
|
columnIndexStart: l,
|
|
1968
1969
|
columnIndexEnd: n,
|
|
1969
|
-
verticalFixed:
|
|
1970
|
-
lastRowOfModel:
|
|
1970
|
+
verticalFixed: d = !1,
|
|
1971
|
+
lastRowOfModel: c = !1
|
|
1971
1972
|
}) {
|
|
1972
1973
|
var b;
|
|
1973
1974
|
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
1974
1975
|
let h = 0;
|
|
1975
|
-
if (!
|
|
1976
|
+
if (!d) {
|
|
1976
1977
|
const f = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1977
1978
|
h = this.scrollFactorX * f;
|
|
1978
1979
|
}
|
|
@@ -2005,7 +2006,7 @@ class at extends ot {
|
|
|
2005
2006
|
height: C,
|
|
2006
2007
|
parent: i,
|
|
2007
2008
|
cellSelected: R,
|
|
2008
|
-
lastRowOfModel:
|
|
2009
|
+
lastRowOfModel: c,
|
|
2009
2010
|
gammaRange: !0
|
|
2010
2011
|
}), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
2011
2012
|
rowIndex: r,
|
|
@@ -2044,12 +2045,12 @@ class at extends ot {
|
|
|
2044
2045
|
left: r,
|
|
2045
2046
|
width: l,
|
|
2046
2047
|
height: n,
|
|
2047
|
-
top:
|
|
2048
|
-
parent:
|
|
2048
|
+
top: d,
|
|
2049
|
+
parent: c,
|
|
2049
2050
|
lastRowOfModel: h
|
|
2050
2051
|
}) {
|
|
2051
2052
|
var pe;
|
|
2052
|
-
const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: l, height: n, top:
|
|
2053
|
+
const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: l, height: n, top: d, index: i }, b = e.getRowByIndex(o);
|
|
2053
2054
|
let f = "none";
|
|
2054
2055
|
if (i === this.getTreeArrowColumnIndex() && ie(b)) {
|
|
2055
2056
|
const w = b;
|
|
@@ -2062,7 +2063,7 @@ class at extends ot {
|
|
|
2062
2063
|
}
|
|
2063
2064
|
const C = e.getValueAt(o, i), E = u ? "" : `${C}`, y = e.isRowChecked(o), S = this.dom.addColumnDiv(
|
|
2064
2065
|
{
|
|
2065
|
-
parent:
|
|
2066
|
+
parent: c,
|
|
2066
2067
|
geo: g,
|
|
2067
2068
|
rowIndex: o,
|
|
2068
2069
|
columnIndex: i,
|
|
@@ -2081,9 +2082,9 @@ class at extends ot {
|
|
|
2081
2082
|
let D;
|
|
2082
2083
|
u && (D = u.render(S, o, i, t, e, C, this.dom.domService));
|
|
2083
2084
|
const N = e.getCustomClassesAt(o, i);
|
|
2084
|
-
if (N.length && this.dom.addClasses(N, S), this.dom.addColumnBorderDivs(this.tableOptions,
|
|
2085
|
+
if (N.length && this.dom.addClasses(N, S), this.dom.addColumnBorderDivs(this.tableOptions, c, g, t, s), h && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: d + n }, c), this.getFocusModel && t === "body") {
|
|
2085
2086
|
const w = this.getFocusModel();
|
|
2086
|
-
w != null && w.hasFocus(o, i) && this.dom.addFocusBorderDivs(
|
|
2087
|
+
w != null && w.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
|
|
2087
2088
|
}
|
|
2088
2089
|
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
2089
2090
|
const Z = e.getCustomStyleAt(o, i);
|
|
@@ -2222,12 +2223,12 @@ class at extends ot {
|
|
|
2222
2223
|
if (this.dragging) {
|
|
2223
2224
|
const r = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
|
|
2224
2225
|
if ((o = e.originalEvent) != null && o.clientX) {
|
|
2225
|
-
const
|
|
2226
|
+
const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - l / 2, width: l, height: r, top: 0, index: t };
|
|
2226
2227
|
this.dom.applyStyle(this.draggingColumn, {
|
|
2227
2228
|
background: "rgba(128,128,128,0.2)",
|
|
2228
2229
|
display: "block",
|
|
2229
2230
|
overfllow: "clip"
|
|
2230
|
-
}), this.dom.applyStyleInPx(this.draggingColumn,
|
|
2231
|
+
}), this.dom.applyStyleInPx(this.draggingColumn, c), s && this.renderContentOfDraggingColumn(c);
|
|
2231
2232
|
}
|
|
2232
2233
|
} else
|
|
2233
2234
|
this.hideDraggingColumn();
|
|
@@ -2255,23 +2256,23 @@ class at extends ot {
|
|
|
2255
2256
|
const o = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
|
|
2256
2257
|
if (r) {
|
|
2257
2258
|
const l = e.index ?? 0, n = this.draggingColumn;
|
|
2258
|
-
for (let
|
|
2259
|
-
const
|
|
2259
|
+
for (let d = 0; d < r; d++) {
|
|
2260
|
+
const c = s, h = i.getRowHeight(d), p = { left: 0, width: e.width, height: h, top: c, index: d }, u = i.getValueAt(d, l), g = i.getCellRenderer(d, l), b = g ? "" : `${u}`, f = {
|
|
2260
2261
|
parent: n,
|
|
2261
2262
|
geo: p,
|
|
2262
|
-
rowIndex:
|
|
2263
|
+
rowIndex: d,
|
|
2263
2264
|
columnIndex: l,
|
|
2264
2265
|
areaIdent: t,
|
|
2265
2266
|
sideIdent: o,
|
|
2266
2267
|
text: b
|
|
2267
2268
|
}, m = this.dom.addColumnDiv(f);
|
|
2268
2269
|
let x;
|
|
2269
|
-
g && (x = g.render(m,
|
|
2270
|
-
const C = i.getCustomClassesAt(
|
|
2270
|
+
g && (x = g.render(m, d, l, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
2271
|
+
const C = i.getCustomClassesAt(d, l);
|
|
2271
2272
|
C.length && this.dom.addClasses(C, m);
|
|
2272
2273
|
const E = this.tableModel.getColumnDef(l);
|
|
2273
2274
|
E && E.classes[t] && this.dom.addClasses(E.classes[t], m), this.dom.addColumnBorderDivs(this.tableOptions, n, p, t, o);
|
|
2274
|
-
const y = i.getCustomStyleAt(
|
|
2275
|
+
const y = i.getCustomStyleAt(d, l);
|
|
2275
2276
|
if (y)
|
|
2276
2277
|
for (const S in y)
|
|
2277
2278
|
this.dom.setStyle(m, S, y[S]);
|
|
@@ -2324,7 +2325,7 @@ class at extends ot {
|
|
|
2324
2325
|
* @param {number} height - The height of the div.
|
|
2325
2326
|
* @returns {boolean} - Whether the cell is selected.
|
|
2326
2327
|
*/
|
|
2327
|
-
renderSelectedBackgroundDiv(e, t, s, o, i, r, l, n,
|
|
2328
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, l, n, d, c, h) {
|
|
2328
2329
|
let p = !1;
|
|
2329
2330
|
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2330
2331
|
const u = this.getSelectionModel();
|
|
@@ -2336,7 +2337,7 @@ class at extends ot {
|
|
|
2336
2337
|
// ge-table-body-west-selected-range
|
|
2337
2338
|
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, l)
|
|
2338
2339
|
);
|
|
2339
|
-
this.dom.setStyle(f, "left", `${n}px`), this.dom.setStyle(f, "top", `${
|
|
2340
|
+
this.dom.setStyle(f, "left", `${n}px`), this.dom.setStyle(f, "top", `${d}px`), this.dom.setStyle(f, "width", `${c}px`), this.dom.setStyle(f, "height", `${h}px`);
|
|
2340
2341
|
}
|
|
2341
2342
|
}
|
|
2342
2343
|
}
|
|
@@ -2370,8 +2371,8 @@ class at extends ot {
|
|
|
2370
2371
|
left: r,
|
|
2371
2372
|
top: l,
|
|
2372
2373
|
width: n,
|
|
2373
|
-
height:
|
|
2374
|
-
parent:
|
|
2374
|
+
height: d,
|
|
2375
|
+
parent: c,
|
|
2375
2376
|
cellSelected: h,
|
|
2376
2377
|
lastRowOfModel: p
|
|
2377
2378
|
}) {
|
|
@@ -2383,9 +2384,9 @@ class at extends ot {
|
|
|
2383
2384
|
index: i,
|
|
2384
2385
|
left: r,
|
|
2385
2386
|
width: n,
|
|
2386
|
-
height:
|
|
2387
|
+
height: d,
|
|
2387
2388
|
top: l,
|
|
2388
|
-
parent:
|
|
2389
|
+
parent: c,
|
|
2389
2390
|
lastRowOfModel: p
|
|
2390
2391
|
});
|
|
2391
2392
|
h && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, u), g && this.cleanupFunctions[t].push(g);
|
|
@@ -2405,8 +2406,8 @@ class at extends ot {
|
|
|
2405
2406
|
* @return {void}
|
|
2406
2407
|
*/
|
|
2407
2408
|
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: l }) {
|
|
2408
|
-
const n = this.dom.domService,
|
|
2409
|
-
n.setAttribute(
|
|
2409
|
+
const n = this.dom.domService, d = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = n.createElement("div");
|
|
2410
|
+
n.setAttribute(c, "data-col-index", `${t}`), n.setAttribute(c, "data-row-index", `${e}`), n.setAttribute(c, "data-area", "header"), n.setAttribute(c, "data-ge-action", "resize-column"), n.addClass(c, "ge-table-column-resize-handle"), n.setStyle(c, "display", "clip"), n.setStyle(c, "position", "absolute"), n.setStyle(c, "cursor", "col-resize"), n.setStyle(c, "left", `${s + i - d}px`), n.setStyle(c, "top", `${o}px`), n.setStyle(c, "width", `${d}px`), n.setStyle(c, "height", `${r}px`), n.appendChild(l, c);
|
|
2410
2411
|
}
|
|
2411
2412
|
}
|
|
2412
2413
|
class lt {
|
|
@@ -2455,11 +2456,11 @@ class dt {
|
|
|
2455
2456
|
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);
|
|
2456
2457
|
}
|
|
2457
2458
|
onMouseClicked(e, t) {
|
|
2458
|
-
var i, r, l, n,
|
|
2459
|
+
var i, r, l, n, d, c, h;
|
|
2459
2460
|
let s = !1, o = !1;
|
|
2460
2461
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2461
2462
|
const p = this.getSelectionModel(), u = this.getFocusModel();
|
|
2462
|
-
p && 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 || p.hasSelection() && (p.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (p.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (l = e.originalEvent) != null && l.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (
|
|
2463
|
+
p && 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 || p.hasSelection() && (p.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (p.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (l = e.originalEvent) != null && l.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (d = e.originalEvent) != null && d.metaKey) ? (p.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (p.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (p.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(p));
|
|
2463
2464
|
}
|
|
2464
2465
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2465
2466
|
}
|
|
@@ -2834,12 +2835,12 @@ const $ = class $ {
|
|
|
2834
2835
|
r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
|
|
2835
2836
|
const l = [];
|
|
2836
2837
|
for (let n = r.r1; n <= r.r2; n++) {
|
|
2837
|
-
const
|
|
2838
|
-
for (let
|
|
2839
|
-
const h = t.isSelected(n,
|
|
2840
|
-
|
|
2838
|
+
const d = [];
|
|
2839
|
+
for (let c = r.c1; c <= r.c2; c++) {
|
|
2840
|
+
const h = t.isSelected(n, c) ? e.getBodyModel().getTextValueAt(n, c) : "";
|
|
2841
|
+
d.push(h);
|
|
2841
2842
|
}
|
|
2842
|
-
l.push(
|
|
2843
|
+
l.push(d.join($.columnSeparatorChar));
|
|
2843
2844
|
}
|
|
2844
2845
|
return o(l.join($.rowSeparatorChar));
|
|
2845
2846
|
}
|
|
@@ -2941,11 +2942,11 @@ class xt {
|
|
|
2941
2942
|
<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"?>
|
|
2942
2943
|
<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"?>
|
|
2943
2944
|
<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>`, n = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2944
|
-
<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>`,
|
|
2945
|
-
<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>`,
|
|
2945
|
+
<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>`, d = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2946
|
+
<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"?>
|
|
2946
2947
|
<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"?>
|
|
2947
2948
|
<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>`, p = /* @__PURE__ */ new Map();
|
|
2948
|
-
return p.set("_rels/.rels", s), p.set("docProps/app.xml", o), p.set("docProps/core.xml", i), p.set("xl/_rels/workbook.xml.rels", r), p.set("xl/theme/theme1.xml", l), p.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), p.set("xl/sharedStrings.xml", n), p.set("xl/styles.xml",
|
|
2949
|
+
return p.set("_rels/.rels", s), p.set("docProps/app.xml", o), p.set("docProps/core.xml", i), p.set("xl/_rels/workbook.xml.rels", r), p.set("xl/theme/theme1.xml", l), p.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), p.set("xl/sharedStrings.xml", n), p.set("xl/styles.xml", d), p.set("xl/workbook.xml", c), p.set("[Content_Types].xml", h), p;
|
|
2949
2950
|
}
|
|
2950
2951
|
getX1WorksheetsSheet1Xml(e) {
|
|
2951
2952
|
const t = [];
|
|
@@ -3005,11 +3006,11 @@ class xt {
|
|
|
3005
3006
|
});
|
|
3006
3007
|
const r = new Uint8Array(22), l = new DataView(r.buffer);
|
|
3007
3008
|
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);
|
|
3008
|
-
const n = t.reduce((h, p) => h + p.length, 0),
|
|
3009
|
-
let
|
|
3009
|
+
const n = t.reduce((h, p) => h + p.length, 0), d = new Uint8Array(n);
|
|
3010
|
+
let c = 0;
|
|
3010
3011
|
for (const h of t)
|
|
3011
|
-
|
|
3012
|
-
return
|
|
3012
|
+
d.set(h, c), c += h.length;
|
|
3013
|
+
return d;
|
|
3013
3014
|
}
|
|
3014
3015
|
generateBuffer(e, t = "") {
|
|
3015
3016
|
const s = this.generateMap(e, t);
|
|
@@ -3018,16 +3019,16 @@ class xt {
|
|
|
3018
3019
|
}
|
|
3019
3020
|
class he extends at {
|
|
3020
3021
|
constructor(e, t, s, o, i, r = new X(), l = new xt()) {
|
|
3021
|
-
var
|
|
3022
|
-
if (super(e, t, new Ye(s), o), this.eventListener = i, this.copyService = r, this.excelService = l, this.licenseManager = B.getInstance(), this.selectionService = new dt(this), this.api = new Ze(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, i || (this.eventListener = new me()), (
|
|
3022
|
+
var c;
|
|
3023
|
+
if (super(e, t, new Ye(s), o), this.eventListener = i, this.copyService = r, this.excelService = l, this.licenseManager = B.getInstance(), this.selectionService = new dt(this), this.api = new Ze(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, i || (this.eventListener = new me()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
|
|
3023
3024
|
const h = this.tableOptions.autoRestoreOptions, p = h.getStorageKeyFn;
|
|
3024
3025
|
p && (h.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Qe(p)), h.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new tt(p)), h.autoRestoreSortingState && (this.storeSortingService = new st(p)));
|
|
3025
3026
|
}
|
|
3026
3027
|
this.mouseHandler = new qe(this), this.inputHandler = new nt(this), this.resizeHandler = new yt(this, o.resizeEventDebounceDelay), this.shortcutService = new gt(this), this.shortcutService.addListener(this.selectionService);
|
|
3027
3028
|
const n = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
3028
3029
|
n && n.addEventSelectionChangedListener(this);
|
|
3029
|
-
const
|
|
3030
|
-
|
|
3030
|
+
const d = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
3031
|
+
d && d.addEventFocusChangedListener(this);
|
|
3031
3032
|
}
|
|
3032
3033
|
/**
|
|
3033
3034
|
* Creates a TableScope instance.
|
|
@@ -3239,8 +3240,8 @@ class he extends at {
|
|
|
3239
3240
|
const o = this.tableModel.getColumnDef(s);
|
|
3240
3241
|
if (o != null && o.sortable && o.sortable()) {
|
|
3241
3242
|
e.preventDefault(), e.stopPropagation();
|
|
3242
|
-
const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, n = o.sortState ?? "",
|
|
3243
|
-
this.tableModel.doSort([
|
|
3243
|
+
const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, n = o.sortState ?? "", d = l[(l.indexOf(n) + 1) % l.length], c = new lt(s, d);
|
|
3244
|
+
this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((p) => p.sortState = ""), o.sortState = d), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
|
|
3244
3245
|
}
|
|
3245
3246
|
}
|
|
3246
3247
|
/**
|
|
@@ -3387,16 +3388,16 @@ class he extends at {
|
|
|
3387
3388
|
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
3388
3389
|
if (re(r)) {
|
|
3389
3390
|
const l = r, n = r.getRowCount();
|
|
3390
|
-
for (let
|
|
3391
|
-
const
|
|
3392
|
-
if (
|
|
3391
|
+
for (let d = 0; d < n; d++) {
|
|
3392
|
+
const c = r.getRowByIndex(d);
|
|
3393
|
+
if (c)
|
|
3393
3394
|
if (i.allExpanded)
|
|
3394
|
-
|
|
3395
|
+
c.expanded = !0;
|
|
3395
3396
|
else if (i.allCollapsed)
|
|
3396
|
-
|
|
3397
|
+
c.expanded = !1;
|
|
3397
3398
|
else {
|
|
3398
|
-
const h = o(
|
|
3399
|
-
i.mode === "expanded" ?
|
|
3399
|
+
const h = o(c.data);
|
|
3400
|
+
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
|
|
3400
3401
|
}
|
|
3401
3402
|
}
|
|
3402
3403
|
l.recalcVisibleTreeRows();
|
|
@@ -3649,8 +3650,8 @@ const Y = class Y {
|
|
|
3649
3650
|
render(e, t, s, o, i, r, l) {
|
|
3650
3651
|
const n = r != null && r.data ? r.data : "";
|
|
3651
3652
|
if (r) {
|
|
3652
|
-
const { toggle:
|
|
3653
|
-
this.addText(e, o, t, s, n, p),
|
|
3653
|
+
const { toggle: d, visibility: c, closed: h } = r, p = d ? Y.toggleHeaderGroup : "";
|
|
3654
|
+
this.addText(e, o, t, s, n, p), d && c !== "always" && this.addArrowDiv(l, e, !h, t, s, o, p);
|
|
3654
3655
|
} else
|
|
3655
3656
|
this.addText(e, o, t, s, n, "");
|
|
3656
3657
|
}
|
|
@@ -3665,11 +3666,11 @@ const Y = class Y {
|
|
|
3665
3666
|
addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", l) {
|
|
3666
3667
|
const n = e.createElement("div");
|
|
3667
3668
|
e.addClass(n, "ge-table-toggle-icon-div"), e.setStyle(n, "display", "inline-block"), e.setStyle(n, "position", ""), e.setStyle(n, "width", "20px"), e.setStyle(n, "background", "transparent"), e.setStyle(n, "cursor", "pointer"), e.setAttribute(n, "data-row-index", `${o}`), e.setAttribute(n, "data-col-index", `${i}`), e.setAttribute(n, "data-area", `${r}`), e.setAttribute(n, "data-ge-action", `${l}`);
|
|
3668
|
-
let
|
|
3669
|
-
s ?
|
|
3670
|
-
const
|
|
3671
|
-
e.appendChild(n, h),
|
|
3672
|
-
for (const p of
|
|
3669
|
+
let d;
|
|
3670
|
+
s ? d = this.headerGroupOptions.iconExpanded : d = this.headerGroupOptions.iconCollapsed;
|
|
3671
|
+
const c = d.content, h = e.createText(c);
|
|
3672
|
+
e.appendChild(n, h), d.style && this.applyStyleString(e, n, d.style);
|
|
3673
|
+
for (const p of d.classes)
|
|
3673
3674
|
e.addClass(n, p);
|
|
3674
3675
|
return e.appendChild(t, n), n;
|
|
3675
3676
|
}
|