@guiexpert/vue3-table 3.1.60 → 3.1.62
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 +304 -250
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
function
|
|
1
|
+
import { defineComponent as te, ref as se, onMounted as oe, createElementBlock as ie, openBlock as re, createVNode as ae, render as U } from "vue";
|
|
2
|
+
function le(d, e = 500) {
|
|
3
3
|
let t = null;
|
|
4
4
|
return function(...s) {
|
|
5
5
|
t && window.clearTimeout(t), t = window.setTimeout(() => {
|
|
6
|
-
|
|
6
|
+
d.apply(this, s), t = null;
|
|
7
7
|
}, e);
|
|
8
8
|
};
|
|
9
9
|
}
|
|
@@ -32,18 +32,18 @@ class k {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
function L(
|
|
36
|
-
return
|
|
35
|
+
function L(d) {
|
|
36
|
+
return d && d.type === "TreeRow";
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
function $(d) {
|
|
39
|
+
return d && d.type === "AreaModelTree";
|
|
40
40
|
}
|
|
41
|
-
class
|
|
42
|
-
constructor(e = -1, t = -1, s = -1, o = -1, i, r, a, l = 0, n = 0, c = 0,
|
|
43
|
-
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = a, this.clickCount = l, this.draggingX = n, this.draggingY = c, this.action =
|
|
41
|
+
class H {
|
|
42
|
+
constructor(e = -1, t = -1, s = -1, o = -1, i, r, a, l = 0, n = 0, c = 0, p = "") {
|
|
43
|
+
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = a, this.clickCount = l, this.draggingX = n, this.draggingY = c, this.action = p;
|
|
44
44
|
}
|
|
45
45
|
clone() {
|
|
46
|
-
return new
|
|
46
|
+
return new H(
|
|
47
47
|
this.rowIndex,
|
|
48
48
|
this.rowTop,
|
|
49
49
|
this.columnIndex,
|
|
@@ -63,7 +63,7 @@ class D {
|
|
|
63
63
|
this.content = e, this.style = t, this.classes = s;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
class
|
|
66
|
+
class q {
|
|
67
67
|
constructor(e = new D(
|
|
68
68
|
">",
|
|
69
69
|
"transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
|
|
@@ -84,12 +84,12 @@ class Y {
|
|
|
84
84
|
this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
class
|
|
87
|
+
class J {
|
|
88
88
|
constructor(e = new D("↑", "", ["ge-header-sorted-asc"]), t = new D("↓", "", ["ge-header-sorted-desc"]), s = new D("↑", "color:transparent;", [])) {
|
|
89
89
|
this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
class
|
|
92
|
+
class ne {
|
|
93
93
|
constructor(e) {
|
|
94
94
|
this.domService = e;
|
|
95
95
|
}
|
|
@@ -175,14 +175,14 @@ class le {
|
|
|
175
175
|
return this.domService.appendChild(e.child, l), l;
|
|
176
176
|
}
|
|
177
177
|
addColumnDiv(e) {
|
|
178
|
-
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: a, text: l = "", treeArrow: n, tableOptions: c, checkedType:
|
|
179
|
-
this.domService.addClass(b, "ge-table-col-div"),
|
|
178
|
+
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: a, text: l = "", treeArrow: n, tableOptions: c, checkedType: p = void 0, sortState: h } = e, m = c == null ? void 0 : c.treeOptions, g = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
|
|
179
|
+
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}`);
|
|
180
180
|
const u = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
181
|
-
if (r === "body" && a === "center" && this.domService.addClass(b, `ge-table-column-${u}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, m, o, i, r)),
|
|
181
|
+
if (r === "body" && a === "center" && this.domService.addClass(b, `ge-table-column-${u}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), n && n !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, n, m, o, i, r)), g && i === 0 && p && this.addCheckboxToDiv(b, p, r, o), l) {
|
|
182
182
|
const f = n !== "none" && i === 0;
|
|
183
183
|
this.addLabelDiv(b, l, f, o, i, r);
|
|
184
184
|
}
|
|
185
|
-
return
|
|
185
|
+
return h && this.addSortedIcon(b, h, c == null ? void 0 : c.sortedOptions, i), this.domService.appendChild(t, b), b;
|
|
186
186
|
}
|
|
187
187
|
addCheckboxToDiv(e, t, s, o) {
|
|
188
188
|
const i = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
|
|
@@ -209,7 +209,7 @@ class le {
|
|
|
209
209
|
}
|
|
210
210
|
return this.domService.appendChild(e, a), a;
|
|
211
211
|
}
|
|
212
|
-
addSortedIcon(e, t = "", s = new
|
|
212
|
+
addSortedIcon(e, t = "", s = new J(), o = -1) {
|
|
213
213
|
const i = this.domService.createElement("div");
|
|
214
214
|
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");
|
|
215
215
|
let r;
|
|
@@ -220,15 +220,15 @@ class le {
|
|
|
220
220
|
this.domService.addClass(i, n);
|
|
221
221
|
return this.domService.appendChild(e, i), i;
|
|
222
222
|
}
|
|
223
|
-
addArrowDiv(e, t = "none", s = new
|
|
223
|
+
addArrowDiv(e, t = "none", s = new q(), o = -1, i = -1, r = "body") {
|
|
224
224
|
const a = this.domService.createElement("div");
|
|
225
225
|
this.domService.addClass(a, "ge-table-tree-arrow-div"), this.domService.setStyle(a, "display", "inline-block"), this.domService.setStyle(a, "position", ""), this.domService.setStyle(a, "width", "20px"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "cursor", "pointer"), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`);
|
|
226
226
|
let l;
|
|
227
227
|
t === "expanded" ? l = s.arrowExpanded : t === "collapsed" ? l = s.arrowCollapsed : l = s.arrowPlaceholder;
|
|
228
228
|
const n = l.content, c = this.domService.createText(n);
|
|
229
229
|
this.domService.appendChild(a, c), l.style && this.applyStyleString(a, l.style);
|
|
230
|
-
for (const
|
|
231
|
-
this.domService.addClass(a,
|
|
230
|
+
for (const p of l.classes)
|
|
231
|
+
this.domService.addClass(a, p);
|
|
232
232
|
return this.domService.appendChild(e, a), a;
|
|
233
233
|
}
|
|
234
234
|
addColumnBorderDivs(e, t, s, o, i) {
|
|
@@ -271,8 +271,8 @@ class le {
|
|
|
271
271
|
return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
const V = (
|
|
275
|
-
class
|
|
274
|
+
const V = (d) => d === "header" ? "header" : d === "footer" ? "footer" : "body";
|
|
275
|
+
class ce {
|
|
276
276
|
constructor(e, t) {
|
|
277
277
|
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)) {
|
|
278
278
|
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"));
|
|
@@ -284,7 +284,7 @@ class ne {
|
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
class
|
|
287
|
+
class de {
|
|
288
288
|
constructor(e) {
|
|
289
289
|
this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
|
|
290
290
|
(t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
|
|
@@ -314,7 +314,7 @@ class ce {
|
|
|
314
314
|
if (t - this.lastClicked < this.doubleClickDelay)
|
|
315
315
|
return;
|
|
316
316
|
this.lastClicked = t;
|
|
317
|
-
const s = new
|
|
317
|
+
const s = new ce(e.target, this.tableScope);
|
|
318
318
|
if (s.action === "toggleExpandCollapseAll")
|
|
319
319
|
this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
|
|
320
320
|
else if (s.action === "toggleHeaderGroup")
|
|
@@ -379,8 +379,8 @@ class ce {
|
|
|
379
379
|
var s, o, i, r, a;
|
|
380
380
|
const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
|
|
381
381
|
if (t) {
|
|
382
|
-
const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, n = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded, c = l === "collapsed" && e.expanded || l === "expanded" && !e.expanded,
|
|
383
|
-
n ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(
|
|
382
|
+
const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, n = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded, c = l === "collapsed" && e.expanded || l === "expanded" && !e.expanded, p = t(e.data);
|
|
383
|
+
n ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(p) : c && ((a = this.tableScope.storeStateCollapsedExpandService) == null || a.collapsedStateIdsRemove(p));
|
|
384
384
|
}
|
|
385
385
|
}
|
|
386
386
|
getArrowColumnIndex() {
|
|
@@ -416,7 +416,7 @@ class ce {
|
|
|
416
416
|
}
|
|
417
417
|
}
|
|
418
418
|
}
|
|
419
|
-
class
|
|
419
|
+
class he {
|
|
420
420
|
constructor(e, t = [], s = -1) {
|
|
421
421
|
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
|
|
422
422
|
}
|
|
@@ -512,7 +512,7 @@ class de {
|
|
|
512
512
|
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
class
|
|
515
|
+
class pe {
|
|
516
516
|
genericSortComparator(e, t, s) {
|
|
517
517
|
if (typeof e == "number" && typeof t == "number")
|
|
518
518
|
return s * (e - t);
|
|
@@ -530,9 +530,9 @@ class he {
|
|
|
530
530
|
return s * ("" + e).localeCompare("" + t);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
class
|
|
533
|
+
class ge extends he {
|
|
534
534
|
constructor(e, t, s, o = []) {
|
|
535
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new
|
|
535
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.focusedRowIndex = 0, this.sorterService = new pe(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
|
|
536
536
|
}
|
|
537
537
|
setRows(e) {
|
|
538
538
|
this.rows = e, this.filteredRows = [...e];
|
|
@@ -549,6 +549,12 @@ class pe extends de {
|
|
|
549
549
|
let o = this.filteredRows[e];
|
|
550
550
|
return L(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
|
|
551
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* Retrieves the filtered and sorted rows from the dataset.
|
|
554
|
+
* These rows are used for rendering the table.
|
|
555
|
+
*
|
|
556
|
+
* @return {T[]} An array containing the filtered (and sorted) rows.
|
|
557
|
+
*/
|
|
552
558
|
getFilteredRows() {
|
|
553
559
|
return this.filteredRows;
|
|
554
560
|
}
|
|
@@ -577,6 +583,10 @@ class pe extends de {
|
|
|
577
583
|
changeColumnOrder(e, t) {
|
|
578
584
|
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
579
585
|
}
|
|
586
|
+
getCustomClassesAt(e, t) {
|
|
587
|
+
const s = super.getCustomClassesAt(e, t);
|
|
588
|
+
return this.getRowByIndex(e).selected && s.push("ge-selected-row"), this.focusedRowIndex === e && s.push("ge-focused-row"), s;
|
|
589
|
+
}
|
|
580
590
|
genericFlatTableSortComparator(e, t) {
|
|
581
591
|
const s = this.columnDefs.find((o) => o.property === e);
|
|
582
592
|
return (o, i) => {
|
|
@@ -589,7 +599,7 @@ class pe extends de {
|
|
|
589
599
|
return o && t.length ? this.getPropertyValue(o, t) : o;
|
|
590
600
|
}
|
|
591
601
|
}
|
|
592
|
-
class
|
|
602
|
+
class ue {
|
|
593
603
|
constructor(e) {
|
|
594
604
|
this.tableScope = e;
|
|
595
605
|
}
|
|
@@ -780,8 +790,8 @@ class ge {
|
|
|
780
790
|
for (let n = 0; n < l; n++) {
|
|
781
791
|
const c = [];
|
|
782
792
|
s.push(c);
|
|
783
|
-
for (let
|
|
784
|
-
c.push(a.getValueAt(n,
|
|
793
|
+
for (let p = 0; p < o; p++)
|
|
794
|
+
c.push(a.getValueAt(n, p));
|
|
785
795
|
}
|
|
786
796
|
}
|
|
787
797
|
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
@@ -820,7 +830,7 @@ class ge {
|
|
|
820
830
|
}
|
|
821
831
|
setRows(e) {
|
|
822
832
|
const t = this.getBodyModel();
|
|
823
|
-
t instanceof
|
|
833
|
+
t instanceof ge ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t);
|
|
824
834
|
}
|
|
825
835
|
reSort() {
|
|
826
836
|
this.tableScope.reSort();
|
|
@@ -893,7 +903,7 @@ class _ {
|
|
|
893
903
|
// }
|
|
894
904
|
// }
|
|
895
905
|
}
|
|
896
|
-
class
|
|
906
|
+
class fe extends _ {
|
|
897
907
|
constructor(e) {
|
|
898
908
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
899
909
|
}
|
|
@@ -915,14 +925,14 @@ class ue extends _ {
|
|
|
915
925
|
}
|
|
916
926
|
}
|
|
917
927
|
}
|
|
918
|
-
class
|
|
928
|
+
class me {
|
|
919
929
|
constructor(e = "collapsed", t = [], s = !1, o = !1) {
|
|
920
930
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
921
931
|
}
|
|
922
932
|
}
|
|
923
|
-
class
|
|
933
|
+
class be extends _ {
|
|
924
934
|
constructor(e) {
|
|
925
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
935
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new me(), this.load();
|
|
926
936
|
}
|
|
927
937
|
collapsedExpandedStateGet() {
|
|
928
938
|
return this.collapsedExpandedState;
|
|
@@ -954,7 +964,7 @@ class me extends _ {
|
|
|
954
964
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
955
965
|
}
|
|
956
966
|
}
|
|
957
|
-
class
|
|
967
|
+
class Se extends _ {
|
|
958
968
|
constructor(e) {
|
|
959
969
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
960
970
|
}
|
|
@@ -980,7 +990,7 @@ class T {
|
|
|
980
990
|
this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
|
|
981
991
|
}
|
|
982
992
|
}
|
|
983
|
-
class
|
|
993
|
+
class ye {
|
|
984
994
|
constructor(e, t, s, o) {
|
|
985
995
|
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();
|
|
986
996
|
const i = this.hostElement;
|
|
@@ -1186,7 +1196,7 @@ class E {
|
|
|
1186
1196
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
1187
1197
|
}
|
|
1188
1198
|
}
|
|
1189
|
-
class
|
|
1199
|
+
class xe {
|
|
1190
1200
|
constructor(e, t) {
|
|
1191
1201
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
1192
1202
|
}
|
|
@@ -1219,22 +1229,22 @@ class ye {
|
|
|
1219
1229
|
return !1;
|
|
1220
1230
|
}
|
|
1221
1231
|
}
|
|
1222
|
-
class
|
|
1232
|
+
class Ce {
|
|
1223
1233
|
constructor(e, t, s) {
|
|
1224
1234
|
this.header = e, this.body = t, this.footer = s;
|
|
1225
1235
|
}
|
|
1226
1236
|
}
|
|
1227
|
-
class
|
|
1237
|
+
class we extends ye {
|
|
1228
1238
|
constructor(e, t, s, o) {
|
|
1229
1239
|
var r, a;
|
|
1230
1240
|
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 = {
|
|
1231
1241
|
header: [],
|
|
1232
1242
|
body: [],
|
|
1233
1243
|
footer: []
|
|
1234
|
-
}, this.tree = !1, this.colAndRowspanModels = new
|
|
1244
|
+
}, this.tree = !1, this.colAndRowspanModels = new Ce(), 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), (a = this.tableOptions) != null && a.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), $(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
1235
1245
|
(l) => {
|
|
1236
1246
|
var n;
|
|
1237
|
-
this.colAndRowspanModels[l] = new
|
|
1247
|
+
this.colAndRowspanModels[l] = new xe(t, t.getAreaModel(l)), (n = this.colAndRowspanModels[l]) == null || n.init();
|
|
1238
1248
|
}
|
|
1239
1249
|
);
|
|
1240
1250
|
}
|
|
@@ -1375,19 +1385,19 @@ class ve extends Se {
|
|
|
1375
1385
|
if (l) {
|
|
1376
1386
|
let n;
|
|
1377
1387
|
const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
1378
|
-
let
|
|
1379
|
-
if (c ?
|
|
1380
|
-
n =
|
|
1388
|
+
let p;
|
|
1389
|
+
if (c ? p = this.editorRenderer : p = r.getCellRenderer(t, s), l.innerText = "", this.applyCssClasses(l, i), p)
|
|
1390
|
+
n = p.render(l, t, s, e, r, o, this.dom.domService), n && this.cleanupFunctions[e].push(n);
|
|
1381
1391
|
else {
|
|
1382
|
-
const
|
|
1383
|
-
this.dom.addLabelDiv(l,
|
|
1392
|
+
const g = `${o}`;
|
|
1393
|
+
this.dom.addLabelDiv(l, g, !1, t, s, e);
|
|
1384
1394
|
}
|
|
1385
|
-
const
|
|
1386
|
-
|
|
1395
|
+
const h = r.getCustomClassesAt(t, s);
|
|
1396
|
+
h.length && this.dom.addClasses(h, l);
|
|
1387
1397
|
const m = r.getCustomStyleAt(t, s);
|
|
1388
1398
|
if (m)
|
|
1389
|
-
for (const
|
|
1390
|
-
this.dom.setStyle(l,
|
|
1399
|
+
for (const g in m)
|
|
1400
|
+
this.dom.setStyle(l, g, m[g]);
|
|
1391
1401
|
}
|
|
1392
1402
|
}
|
|
1393
1403
|
/**
|
|
@@ -1488,18 +1498,18 @@ class ve extends Se {
|
|
|
1488
1498
|
var u;
|
|
1489
1499
|
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
1490
1500
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
1491
|
-
const a = 0, l = this.areaBodyCenterGeo.width, n = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e),
|
|
1501
|
+
const a = 0, l = this.areaBodyCenterGeo.width, n = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), p = c.getRowCount();
|
|
1492
1502
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1493
1503
|
const f = this.cleanupFunctions[e].shift();
|
|
1494
1504
|
f && f();
|
|
1495
1505
|
}
|
|
1496
|
-
let
|
|
1497
|
-
const m = this.tableModel.getColumnCount(),
|
|
1498
|
-
for (let f = 0; f <
|
|
1499
|
-
const x =
|
|
1500
|
-
if (x +
|
|
1506
|
+
let h = t;
|
|
1507
|
+
const m = this.tableModel.getColumnCount(), g = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
|
|
1508
|
+
for (let f = 0; f < p; f++) {
|
|
1509
|
+
const x = h, C = f === p - 1, v = this.tableModel.getRowHeight(e, f);
|
|
1510
|
+
if (x + v > 0) {
|
|
1501
1511
|
this.firstVisibleRowIndex = f;
|
|
1502
|
-
let y = { left: a, width: l, height:
|
|
1512
|
+
let y = { left: a, width: l, height: v, top: x, index: f }, S = this.dom.addRowDiv(o, y, f, e, "center");
|
|
1503
1513
|
const R = b;
|
|
1504
1514
|
if (this.adjustColumnsToRowParent({
|
|
1505
1515
|
areaIdent: e,
|
|
@@ -1509,10 +1519,10 @@ class ve extends Se {
|
|
|
1509
1519
|
parent: S,
|
|
1510
1520
|
rowIndex: f,
|
|
1511
1521
|
columnIndexStart: R,
|
|
1512
|
-
columnIndexEnd: m -
|
|
1522
|
+
columnIndexEnd: m - g - 1,
|
|
1513
1523
|
verticalFixed: !1,
|
|
1514
|
-
lastRowOfModel:
|
|
1515
|
-
}), n.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height:
|
|
1524
|
+
lastRowOfModel: C
|
|
1525
|
+
}), n.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height: v, top: x, index: f }, S = this.dom.addRowDiv(s, y, f, e, "west"), this.adjustColumnsToRowParent({
|
|
1516
1526
|
areaIdent: e,
|
|
1517
1527
|
sideIdent: "west",
|
|
1518
1528
|
areaModel: c,
|
|
@@ -1522,19 +1532,19 @@ class ve extends Se {
|
|
|
1522
1532
|
columnIndexStart: 0,
|
|
1523
1533
|
columnIndexEnd: R - 1,
|
|
1524
1534
|
verticalFixed: !0,
|
|
1525
|
-
lastRowOfModel:
|
|
1526
|
-
})), n.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height:
|
|
1535
|
+
lastRowOfModel: C
|
|
1536
|
+
})), n.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height: v, top: x, index: f }, S = this.dom.addRowDiv(i, y, f, e, "east"), this.adjustColumnsToRowParent({
|
|
1527
1537
|
areaIdent: e,
|
|
1528
1538
|
sideIdent: "east",
|
|
1529
1539
|
areaModel: c,
|
|
1530
1540
|
geo: y,
|
|
1531
1541
|
parent: S,
|
|
1532
1542
|
rowIndex: f,
|
|
1533
|
-
columnIndexStart: m -
|
|
1543
|
+
columnIndexStart: m - g,
|
|
1534
1544
|
columnIndexEnd: m - 1,
|
|
1535
1545
|
verticalFixed: !0,
|
|
1536
|
-
lastRowOfModel:
|
|
1537
|
-
})), e === "header" && this.tree && f ===
|
|
1546
|
+
lastRowOfModel: C
|
|
1547
|
+
})), e === "header" && this.tree && f === p - 1) {
|
|
1538
1548
|
const A = this.dom.applyStyle(
|
|
1539
1549
|
this.dom.setAttribute(
|
|
1540
1550
|
this.dom.addDiv(S, new T(16, 20, 20, 8)),
|
|
@@ -1549,23 +1559,23 @@ class ve extends Se {
|
|
|
1549
1559
|
}
|
|
1550
1560
|
}
|
|
1551
1561
|
}
|
|
1552
|
-
if (
|
|
1562
|
+
if (h = h + v, h > r)
|
|
1553
1563
|
break;
|
|
1554
1564
|
}
|
|
1555
1565
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
1556
1566
|
const f = ((u = this.colAndRowspanModels[e]) == null ? void 0 : u.getRanges()) ?? [];
|
|
1557
1567
|
if (f.length)
|
|
1558
1568
|
for (const x of f) {
|
|
1559
|
-
let
|
|
1569
|
+
let C = 0, v = o.child, y = "center";
|
|
1560
1570
|
if (x.c1 < b)
|
|
1561
|
-
|
|
1562
|
-
else if (
|
|
1563
|
-
|
|
1571
|
+
v = s.child, y = "west";
|
|
1572
|
+
else if (g > 0 && x.c1 >= m - g)
|
|
1573
|
+
v = i.child, y = "east";
|
|
1564
1574
|
else {
|
|
1565
1575
|
const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1566
|
-
|
|
1576
|
+
C = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
|
|
1567
1577
|
}
|
|
1568
|
-
this.drawBigCell(x,
|
|
1578
|
+
this.drawBigCell(x, C, t, c, v, y);
|
|
1569
1579
|
}
|
|
1570
1580
|
}
|
|
1571
1581
|
}
|
|
@@ -1583,21 +1593,21 @@ class ve extends Se {
|
|
|
1583
1593
|
const a = s + this.getRowHeights(0, e.r1 - 1, o).reduce((u, f) => u + f, 0), l = this.tableModel.getColumnCount(), n = this.tableModel.getFixedRightColumnCount();
|
|
1584
1594
|
let c = 0;
|
|
1585
1595
|
n > 0 && e.c1 >= l - n && (c = l - n);
|
|
1586
|
-
const
|
|
1587
|
-
let
|
|
1596
|
+
const p = t + this.getColumnWidths(c, e.c1 - 1).reduce((u, f) => u + f, 0), h = this.getRowHeights(e.r1, e.r2, o).reduce((u, f) => u + f, 0), m = this.getColumnWidths(e.c1, e.c2).reduce((u, f) => u + f, 0);
|
|
1597
|
+
let g = !1;
|
|
1588
1598
|
const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
1589
|
-
b && (
|
|
1599
|
+
b && (g = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
1590
1600
|
areaModel: o,
|
|
1591
1601
|
areaIdent: o.areaIdent,
|
|
1592
1602
|
sideIdent: r,
|
|
1593
1603
|
rowIndex: e.r1,
|
|
1594
1604
|
columnIndex: e.c1,
|
|
1595
|
-
left:
|
|
1605
|
+
left: p,
|
|
1596
1606
|
top: a,
|
|
1597
1607
|
width: m,
|
|
1598
|
-
height:
|
|
1608
|
+
height: h,
|
|
1599
1609
|
parent: i,
|
|
1600
|
-
cellSelected:
|
|
1610
|
+
cellSelected: g,
|
|
1601
1611
|
lastRowOfModel: !0,
|
|
1602
1612
|
gammaRange: e.gammaRange
|
|
1603
1613
|
}) : this.renderCell({
|
|
@@ -1606,21 +1616,21 @@ class ve extends Se {
|
|
|
1606
1616
|
sideIdent: r,
|
|
1607
1617
|
rowIndex: e.r1,
|
|
1608
1618
|
columnIndex: e.c1,
|
|
1609
|
-
left:
|
|
1619
|
+
left: p,
|
|
1610
1620
|
top: a,
|
|
1611
1621
|
width: m,
|
|
1612
|
-
height:
|
|
1622
|
+
height: h,
|
|
1613
1623
|
parent: i,
|
|
1614
|
-
cellSelected:
|
|
1624
|
+
cellSelected: g,
|
|
1615
1625
|
lastRowOfModel: !0,
|
|
1616
1626
|
gammaRange: e.gammaRange
|
|
1617
1627
|
}), o.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
1618
1628
|
rowIndex: e.r1,
|
|
1619
1629
|
columnIndex: e.c1,
|
|
1620
|
-
cellLeft:
|
|
1630
|
+
cellLeft: p,
|
|
1621
1631
|
cellTop: a,
|
|
1622
1632
|
cellWidth: m,
|
|
1623
|
-
cellHeight:
|
|
1633
|
+
cellHeight: h,
|
|
1624
1634
|
parent: i
|
|
1625
1635
|
});
|
|
1626
1636
|
}
|
|
@@ -1665,28 +1675,28 @@ class ve extends Se {
|
|
|
1665
1675
|
}) {
|
|
1666
1676
|
var b;
|
|
1667
1677
|
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
1668
|
-
let
|
|
1678
|
+
let p = 0;
|
|
1669
1679
|
if (!n) {
|
|
1670
1680
|
const u = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1671
|
-
|
|
1681
|
+
p = this.scrollFactorX * u;
|
|
1672
1682
|
}
|
|
1673
|
-
const
|
|
1674
|
-
let
|
|
1683
|
+
const h = 0, m = !!(e === "body" && t);
|
|
1684
|
+
let g = p;
|
|
1675
1685
|
for (let u = a; u <= l; u++) {
|
|
1676
|
-
const f =
|
|
1686
|
+
const f = g, x = this.tableModel.getColumnWidth(u);
|
|
1677
1687
|
if (x > 0 && f + x > 0) {
|
|
1678
|
-
let
|
|
1679
|
-
const
|
|
1680
|
-
|
|
1688
|
+
let C = o.height;
|
|
1689
|
+
const v = s.getRowspanAt(r, u), y = s.getColspanAt(r, u);
|
|
1690
|
+
v > 1 && (C = this.getRowHeights(r, r + v - 1, s).reduce((A, M) => A + M, 0));
|
|
1681
1691
|
let S = x;
|
|
1682
1692
|
y > 1 && (S = this.getColumnWidths(u, u + y - 1).reduce((A, M) => A + M, 0));
|
|
1683
1693
|
let R = !1;
|
|
1684
1694
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, u) && (R = !0), this.draggingTargetColumnIndex === u && e !== "header") {
|
|
1685
|
-
this.renderDragTargetDiv(i, f,
|
|
1686
|
-
const A = { left: f, top:
|
|
1695
|
+
this.renderDragTargetDiv(i, f, h, S, C);
|
|
1696
|
+
const A = { left: f, top: h, width: S, height: C };
|
|
1687
1697
|
this.dom.addColumnBorderDivs(this.tableOptions, i, A, e, t);
|
|
1688
1698
|
} else {
|
|
1689
|
-
const A = this.renderSelectedBackgroundDiv(R, m, t, s, r, u, i, f,
|
|
1699
|
+
const A = this.renderSelectedBackgroundDiv(R, m, t, s, r, u, i, f, h, S, C);
|
|
1690
1700
|
"gammaCells" in s && s.getValueAt(r, u) && (R = !1), R || this.renderCell({
|
|
1691
1701
|
areaModel: s,
|
|
1692
1702
|
areaIdent: e,
|
|
@@ -1694,9 +1704,9 @@ class ve extends Se {
|
|
|
1694
1704
|
rowIndex: r,
|
|
1695
1705
|
columnIndex: u,
|
|
1696
1706
|
left: f,
|
|
1697
|
-
top:
|
|
1707
|
+
top: h,
|
|
1698
1708
|
width: S,
|
|
1699
|
-
height:
|
|
1709
|
+
height: C,
|
|
1700
1710
|
parent: i,
|
|
1701
1711
|
cellSelected: A,
|
|
1702
1712
|
lastRowOfModel: c,
|
|
@@ -1705,17 +1715,17 @@ class ve extends Se {
|
|
|
1705
1715
|
rowIndex: r,
|
|
1706
1716
|
columnIndex: u,
|
|
1707
1717
|
cellLeft: f,
|
|
1708
|
-
cellTop:
|
|
1718
|
+
cellTop: h,
|
|
1709
1719
|
cellWidth: S,
|
|
1710
|
-
cellHeight:
|
|
1720
|
+
cellHeight: C,
|
|
1711
1721
|
parent: i
|
|
1712
1722
|
});
|
|
1713
1723
|
}
|
|
1714
1724
|
}
|
|
1715
|
-
if (
|
|
1725
|
+
if (g = g + x, g > this.areaBodyCenterGeo.width)
|
|
1716
1726
|
break;
|
|
1717
1727
|
}
|
|
1718
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(
|
|
1728
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(g - 1, 1, o.height, 0), i);
|
|
1719
1729
|
}
|
|
1720
1730
|
/**
|
|
1721
1731
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -1740,29 +1750,29 @@ class ve extends Se {
|
|
|
1740
1750
|
height: l,
|
|
1741
1751
|
top: n,
|
|
1742
1752
|
parent: c,
|
|
1743
|
-
lastRowOfModel:
|
|
1753
|
+
lastRowOfModel: p
|
|
1744
1754
|
}) {
|
|
1745
1755
|
var N;
|
|
1746
|
-
const m = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i),
|
|
1756
|
+
const m = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: a, height: l, top: n, index: i }, b = e.getRowByIndex(o);
|
|
1747
1757
|
let u = "none";
|
|
1748
1758
|
if (i === this.getTreeArrowColumnIndex() && L(b)) {
|
|
1749
|
-
const
|
|
1750
|
-
(N =
|
|
1759
|
+
const w = b;
|
|
1760
|
+
(N = w.children) != null && N.length ? w.expanded ? u = "expanded" : u = "collapsed" : u = "hidden";
|
|
1751
1761
|
}
|
|
1752
1762
|
let x;
|
|
1753
1763
|
if (t === "header") {
|
|
1754
|
-
const
|
|
1755
|
-
(!(
|
|
1764
|
+
const w = this.tableModel.getColumnDef(i);
|
|
1765
|
+
(!(w != null && w.sortIconVisible) || w != null && w.sortIconVisible()) && (x = w == null ? void 0 : w.sortState);
|
|
1756
1766
|
}
|
|
1757
|
-
const
|
|
1767
|
+
const C = e.getValueAt(o, i), v = m ? "" : `${C}`, y = e.isRowChecked(o), S = this.dom.addColumnDiv(
|
|
1758
1768
|
{
|
|
1759
1769
|
parent: c,
|
|
1760
|
-
geo:
|
|
1770
|
+
geo: g,
|
|
1761
1771
|
rowIndex: o,
|
|
1762
1772
|
columnIndex: i,
|
|
1763
1773
|
areaIdent: t,
|
|
1764
1774
|
sideIdent: s,
|
|
1765
|
-
text:
|
|
1775
|
+
text: v,
|
|
1766
1776
|
treeArrow: u,
|
|
1767
1777
|
tableOptions: this.tableOptions,
|
|
1768
1778
|
checkedType: y,
|
|
@@ -1773,17 +1783,17 @@ class ve extends Se {
|
|
|
1773
1783
|
const A = this.tableModel.getColumnDef(i);
|
|
1774
1784
|
A && A.classes[t] && this.dom.addClasses(A.classes[t], S);
|
|
1775
1785
|
let M;
|
|
1776
|
-
m && (M = m.render(S, o, i, t, e,
|
|
1786
|
+
m && (M = m.render(S, o, i, t, e, C, this.dom.domService));
|
|
1777
1787
|
const I = e.getCustomClassesAt(o, i);
|
|
1778
|
-
if (I.length && this.dom.addClasses(I, S), this.dom.addColumnBorderDivs(this.tableOptions, c,
|
|
1779
|
-
const
|
|
1780
|
-
|
|
1788
|
+
if (I.length && this.dom.addClasses(I, S), this.dom.addColumnBorderDivs(this.tableOptions, c, g, t, s), p && this.dom.addHorizontalBorder({ left: r, width: a, height: l, top: n + l }, c), this.getFocusModel && t === "body") {
|
|
1789
|
+
const w = this.getFocusModel();
|
|
1790
|
+
w != null && w.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
|
|
1781
1791
|
}
|
|
1782
1792
|
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
1783
1793
|
const W = e.getCustomStyleAt(o, i);
|
|
1784
1794
|
if (W)
|
|
1785
|
-
for (const
|
|
1786
|
-
this.dom.setStyle(S,
|
|
1795
|
+
for (const w in W)
|
|
1796
|
+
this.dom.setStyle(S, w, W[w]);
|
|
1787
1797
|
return [S, M];
|
|
1788
1798
|
}
|
|
1789
1799
|
/**
|
|
@@ -1950,9 +1960,9 @@ class ve extends Se {
|
|
|
1950
1960
|
if (r) {
|
|
1951
1961
|
const a = e.index ?? 0, l = this.draggingColumn;
|
|
1952
1962
|
for (let n = 0; n < r; n++) {
|
|
1953
|
-
const c = s,
|
|
1963
|
+
const c = s, p = i.getRowHeight(n), h = { left: 0, width: e.width, height: p, top: c, index: n }, m = i.getValueAt(n, a), g = i.getCellRenderer(n, a), b = g ? "" : `${m}`, u = {
|
|
1954
1964
|
parent: l,
|
|
1955
|
-
geo:
|
|
1965
|
+
geo: h,
|
|
1956
1966
|
rowIndex: n,
|
|
1957
1967
|
columnIndex: a,
|
|
1958
1968
|
areaIdent: t,
|
|
@@ -1960,16 +1970,16 @@ class ve extends Se {
|
|
|
1960
1970
|
text: b
|
|
1961
1971
|
}, f = this.dom.addColumnDiv(u);
|
|
1962
1972
|
let x;
|
|
1963
|
-
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1966
|
-
const
|
|
1967
|
-
|
|
1973
|
+
g && (x = g.render(f, n, a, t, i, m, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
1974
|
+
const C = i.getCustomClassesAt(n, a);
|
|
1975
|
+
C.length && this.dom.addClasses(C, f);
|
|
1976
|
+
const v = this.tableModel.getColumnDef(a);
|
|
1977
|
+
v && v.classes[t] && this.dom.addClasses(v.classes[t], f), this.dom.addColumnBorderDivs(this.tableOptions, l, h, t, o);
|
|
1968
1978
|
const y = i.getCustomStyleAt(n, a);
|
|
1969
1979
|
if (y)
|
|
1970
1980
|
for (const S in y)
|
|
1971
1981
|
this.dom.setStyle(f, S, y[S]);
|
|
1972
|
-
s = s +
|
|
1982
|
+
s = s + p;
|
|
1973
1983
|
}
|
|
1974
1984
|
}
|
|
1975
1985
|
return s;
|
|
@@ -2018,23 +2028,23 @@ class ve extends Se {
|
|
|
2018
2028
|
* @param {number} height - The height of the div.
|
|
2019
2029
|
* @returns {boolean} - Whether the cell is selected.
|
|
2020
2030
|
*/
|
|
2021
|
-
renderSelectedBackgroundDiv(e, t, s, o, i, r, a, l, n, c,
|
|
2022
|
-
let
|
|
2031
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, a, l, n, c, p) {
|
|
2032
|
+
let h = !1;
|
|
2023
2033
|
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2024
2034
|
const m = this.getSelectionModel();
|
|
2025
2035
|
if (m) {
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2028
|
-
for (let b = 0; b <
|
|
2036
|
+
const g = m.getSelectionCount(i, r);
|
|
2037
|
+
h = g > 0;
|
|
2038
|
+
for (let b = 0; b < g; b++) {
|
|
2029
2039
|
const u = this.dom.applyStylePosistionAbsolute(
|
|
2030
2040
|
// ge-table-body-west-selected-range
|
|
2031
2041
|
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, a)
|
|
2032
2042
|
);
|
|
2033
|
-
this.dom.setStyle(u, "left", `${l}px`), this.dom.setStyle(u, "top", `${n}px`), this.dom.setStyle(u, "width", `${c}px`), this.dom.setStyle(u, "height", `${
|
|
2043
|
+
this.dom.setStyle(u, "left", `${l}px`), this.dom.setStyle(u, "top", `${n}px`), this.dom.setStyle(u, "width", `${c}px`), this.dom.setStyle(u, "height", `${p}px`);
|
|
2034
2044
|
}
|
|
2035
2045
|
}
|
|
2036
2046
|
}
|
|
2037
|
-
return
|
|
2047
|
+
return h;
|
|
2038
2048
|
}
|
|
2039
2049
|
/**
|
|
2040
2050
|
* Renders a cell in the grid.
|
|
@@ -2066,10 +2076,10 @@ class ve extends Se {
|
|
|
2066
2076
|
width: l,
|
|
2067
2077
|
height: n,
|
|
2068
2078
|
parent: c,
|
|
2069
|
-
cellSelected:
|
|
2070
|
-
lastRowOfModel:
|
|
2079
|
+
cellSelected: p,
|
|
2080
|
+
lastRowOfModel: h
|
|
2071
2081
|
}) {
|
|
2072
|
-
const [m,
|
|
2082
|
+
const [m, g] = this.addAndRenderCellDiv({
|
|
2073
2083
|
areaModel: e,
|
|
2074
2084
|
areaIdent: t,
|
|
2075
2085
|
sideIdent: s,
|
|
@@ -2080,9 +2090,9 @@ class ve extends Se {
|
|
|
2080
2090
|
height: n,
|
|
2081
2091
|
top: a,
|
|
2082
2092
|
parent: c,
|
|
2083
|
-
lastRowOfModel:
|
|
2093
|
+
lastRowOfModel: h
|
|
2084
2094
|
});
|
|
2085
|
-
|
|
2095
|
+
p && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, m), g && this.cleanupFunctions[t].push(g);
|
|
2086
2096
|
}
|
|
2087
2097
|
/**
|
|
2088
2098
|
* Render the header cell resize handle.
|
|
@@ -2103,12 +2113,12 @@ class ve extends Se {
|
|
|
2103
2113
|
l.setAttribute(c, "data-col-index", `${t}`), l.setAttribute(c, "data-row-index", `${e}`), l.setAttribute(c, "data-area", "header"), l.setAttribute(c, "data-ge-action", "resize-column"), l.addClass(c, "ge-table-column-resize-handle"), l.setStyle(c, "display", "clip"), l.setStyle(c, "position", "absolute"), l.setStyle(c, "cursor", "col-resize"), l.setStyle(c, "left", `${s + i - n}px`), l.setStyle(c, "top", `${o}px`), l.setStyle(c, "width", `${n}px`), l.setStyle(c, "height", `${r}px`), l.appendChild(a, c);
|
|
2104
2114
|
}
|
|
2105
2115
|
}
|
|
2106
|
-
class
|
|
2116
|
+
class ve {
|
|
2107
2117
|
constructor(e, t) {
|
|
2108
2118
|
this.columnIndex = e, this.sortState = t;
|
|
2109
2119
|
}
|
|
2110
2120
|
}
|
|
2111
|
-
class
|
|
2121
|
+
class Ee {
|
|
2112
2122
|
constructor(e) {
|
|
2113
2123
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
2114
2124
|
}
|
|
@@ -2130,7 +2140,7 @@ class we {
|
|
|
2130
2140
|
}
|
|
2131
2141
|
}
|
|
2132
2142
|
}
|
|
2133
|
-
class
|
|
2143
|
+
class Ae {
|
|
2134
2144
|
constructor(e = -1, t = -1) {
|
|
2135
2145
|
this.rowIndex = e, this.columnIndex = t;
|
|
2136
2146
|
}
|
|
@@ -2140,20 +2150,20 @@ class G {
|
|
|
2140
2150
|
this.cells = e;
|
|
2141
2151
|
}
|
|
2142
2152
|
static createSingle(e, t) {
|
|
2143
|
-
return new G([new
|
|
2153
|
+
return new G([new Ae(e, t)]);
|
|
2144
2154
|
}
|
|
2145
2155
|
}
|
|
2146
|
-
class
|
|
2156
|
+
class Me {
|
|
2147
2157
|
constructor(e) {
|
|
2148
2158
|
var t, s;
|
|
2149
2159
|
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);
|
|
2150
2160
|
}
|
|
2151
2161
|
onMouseClicked(e, t) {
|
|
2152
|
-
var i, r, a, l, n, c,
|
|
2162
|
+
var i, r, a, l, n, c, p;
|
|
2153
2163
|
let s = !1, o = !1;
|
|
2154
2164
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2165
|
+
const h = this.getSelectionModel(), m = this.getFocusModel();
|
|
2166
|
+
h && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(m), s = !0), (i = e.originalEvent) != null && i.shiftKey || h.hasSelection() && (h.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (h.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (a = e.originalEvent) != null && a.altKey && ((l = e.originalEvent) != null && l.ctrlKey || (n = e.originalEvent) != null && n.metaKey) ? (h.removeSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (p = e.originalEvent) != null && p.metaKey ? (h.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (h.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(h));
|
|
2157
2167
|
}
|
|
2158
2168
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2159
2169
|
}
|
|
@@ -2184,7 +2194,7 @@ class Ae {
|
|
|
2184
2194
|
});
|
|
2185
2195
|
}
|
|
2186
2196
|
}
|
|
2187
|
-
class
|
|
2197
|
+
class Re {
|
|
2188
2198
|
get() {
|
|
2189
2199
|
return {
|
|
2190
2200
|
f2: "START_EDITING",
|
|
@@ -2204,7 +2214,7 @@ class Me {
|
|
|
2204
2214
|
};
|
|
2205
2215
|
}
|
|
2206
2216
|
}
|
|
2207
|
-
class
|
|
2217
|
+
class Te {
|
|
2208
2218
|
get() {
|
|
2209
2219
|
return {
|
|
2210
2220
|
f2: "START_EDITING",
|
|
@@ -2226,7 +2236,23 @@ class Re {
|
|
|
2226
2236
|
};
|
|
2227
2237
|
}
|
|
2228
2238
|
}
|
|
2229
|
-
|
|
2239
|
+
function De(d) {
|
|
2240
|
+
return d.trim().replace(/\+/g, " ").replace(/ +/g, " ").replace(/⌫/g, "backspace").replace(/↩/g, "enter").replace(/⇧/g, "shift").replace(/⌥/g, "alt").replace(/option/g, "alt").replace(/opt/g, "alt").replace(/⌃/g, "ctrl").replace(/control/g, "ctrl").replace(/command/g, "cmd").replace(/meta/g, "cmd").replace(/escape/g, "esc").replace(/⌘/g, "cmd").replace(/\*/g, "multiply").split(" ").filter((e) => e).sort((e, t) => {
|
|
2241
|
+
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
|
|
2242
|
+
return o !== i ? o - i : e.localeCompare(t);
|
|
2243
|
+
}).join(" ");
|
|
2244
|
+
}
|
|
2245
|
+
function j(d) {
|
|
2246
|
+
let e = d.key.toLowerCase();
|
|
2247
|
+
if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" && d.code === "Delete" && (e = "delete"), e === "backspace" && (e = "backspace"), e === "escape" && (e = "esc"), e === "return" && (e = "enter"), d.code.startsWith("Numpad")) {
|
|
2248
|
+
const s = d.code.replace("Numpad", "").toLowerCase();
|
|
2249
|
+
s === "add" ? e = "num_add" : s === "subtract" ? e = "num_subtract" : s === "multiply" ? e = "num_multiply" : s === "divide" ? e = "num_divide" : s === "decimal" ? e = "num_decimal" : s === "enter" ? e = "num_enter" : e = "num_" + s;
|
|
2250
|
+
}
|
|
2251
|
+
d.code.match(/^F\d+$/) && (e = d.code.toLowerCase()), d.code.match(/^Digit\d+$/) && (e = d.code.replace(/Digit/g, ""));
|
|
2252
|
+
let t = "";
|
|
2253
|
+
return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"), De(t + " " + e);
|
|
2254
|
+
}
|
|
2255
|
+
class ke {
|
|
2230
2256
|
constructor(e) {
|
|
2231
2257
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
2232
2258
|
}
|
|
@@ -2244,10 +2270,11 @@ class Te {
|
|
|
2244
2270
|
* Also adds key down event listener to the table host element.
|
|
2245
2271
|
*/
|
|
2246
2272
|
init() {
|
|
2247
|
-
|
|
2273
|
+
var e, t;
|
|
2274
|
+
(t = (e = this.tableScope) == null ? void 0 : e.tableOptions) != null && t.shortcutActionsDisabled ? this.isDebug() && console.debug("ShortcutService skipped.") : (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)));
|
|
2248
2275
|
}
|
|
2249
2276
|
assignPredefinedSystemShortcutMappings() {
|
|
2250
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
2277
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Te().get()) : Object.assign(this.shortcutActionIdMapping, new Re().get());
|
|
2251
2278
|
}
|
|
2252
2279
|
isMacintosh() {
|
|
2253
2280
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -2270,26 +2297,47 @@ class Te {
|
|
|
2270
2297
|
return t;
|
|
2271
2298
|
}
|
|
2272
2299
|
findEntity(e) {
|
|
2273
|
-
const t =
|
|
2274
|
-
this.isDebug() && console.debug("ShortcutService
|
|
2275
|
-
for (const s in this.shortcutActionIdMapping)
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2300
|
+
const t = j(e);
|
|
2301
|
+
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
2302
|
+
for (const s in this.shortcutActionIdMapping)
|
|
2303
|
+
if (j(e) === t)
|
|
2304
|
+
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
2305
|
+
}
|
|
2306
|
+
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
2307
|
+
// if (tokens1.length !== tokens2.length) {
|
|
2308
|
+
// return false;
|
|
2309
|
+
// }
|
|
2310
|
+
// if (tokens1.length === 0) {
|
|
2311
|
+
// return false;
|
|
2312
|
+
// }
|
|
2313
|
+
// for (let i = 0; i < tokens1.length; i++) {
|
|
2314
|
+
// if (tokens1[i] !== tokens2[i]) {
|
|
2315
|
+
// return false;
|
|
2316
|
+
// }
|
|
2317
|
+
// }
|
|
2318
|
+
//
|
|
2319
|
+
// return true;
|
|
2320
|
+
// }
|
|
2321
|
+
//
|
|
2322
|
+
// private getTokenByEvent(evt: KeyboardEvent): string[] {
|
|
2323
|
+
// const tokens: string[] = [];
|
|
2324
|
+
// if (evt.altKey) {
|
|
2325
|
+
// tokens.push("alt");
|
|
2326
|
+
// }
|
|
2327
|
+
// if (evt.shiftKey) {
|
|
2328
|
+
// tokens.push("shift");
|
|
2329
|
+
// }
|
|
2330
|
+
// if (evt.ctrlKey) {
|
|
2331
|
+
// tokens.push("ctrl");
|
|
2332
|
+
// }
|
|
2333
|
+
// if (evt.metaKey) {
|
|
2334
|
+
// tokens.push("meta");
|
|
2335
|
+
// }
|
|
2336
|
+
// if (evt.code) {
|
|
2337
|
+
// tokens.push(evt.code.toLowerCase().replace(/key/g, ""));
|
|
2338
|
+
// }
|
|
2339
|
+
// return tokens.sort();
|
|
2340
|
+
// }
|
|
2293
2341
|
/**
|
|
2294
2342
|
* Retrieves the shortcut action mapping object.
|
|
2295
2343
|
*
|
|
@@ -2299,7 +2347,7 @@ class Te {
|
|
|
2299
2347
|
return this.shortcutActionIdMapping;
|
|
2300
2348
|
}
|
|
2301
2349
|
}
|
|
2302
|
-
class
|
|
2350
|
+
class X {
|
|
2303
2351
|
onCheckboxChanged(e) {
|
|
2304
2352
|
}
|
|
2305
2353
|
onContextmenu(e) {
|
|
@@ -2319,7 +2367,7 @@ class j {
|
|
|
2319
2367
|
onFocusChanged(e) {
|
|
2320
2368
|
}
|
|
2321
2369
|
}
|
|
2322
|
-
class
|
|
2370
|
+
class Z {
|
|
2323
2371
|
setStyle(e, t, s) {
|
|
2324
2372
|
return e.style[t] = s, e;
|
|
2325
2373
|
}
|
|
@@ -2346,7 +2394,7 @@ class J {
|
|
|
2346
2394
|
e.setAttribute(t, s);
|
|
2347
2395
|
}
|
|
2348
2396
|
}
|
|
2349
|
-
class
|
|
2397
|
+
class Fe {
|
|
2350
2398
|
render(e, t, s, o, i, r, a) {
|
|
2351
2399
|
if (i.isEditable(t, s)) {
|
|
2352
2400
|
a.addClass(e, "ge-table-row-input-div");
|
|
@@ -2367,7 +2415,7 @@ class De {
|
|
|
2367
2415
|
}
|
|
2368
2416
|
}
|
|
2369
2417
|
}
|
|
2370
|
-
class
|
|
2418
|
+
class Ie {
|
|
2371
2419
|
constructor(e = "none", t = "single") {
|
|
2372
2420
|
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
|
|
2373
2421
|
}
|
|
@@ -2449,7 +2497,7 @@ class ke {
|
|
|
2449
2497
|
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());
|
|
2450
2498
|
}
|
|
2451
2499
|
}
|
|
2452
|
-
class
|
|
2500
|
+
class Le {
|
|
2453
2501
|
constructor(e = "none") {
|
|
2454
2502
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
2455
2503
|
}
|
|
@@ -2486,7 +2534,7 @@ class Fe {
|
|
|
2486
2534
|
return [this.rowIndex, this.columnIndex];
|
|
2487
2535
|
}
|
|
2488
2536
|
}
|
|
2489
|
-
class
|
|
2537
|
+
class Q {
|
|
2490
2538
|
constructor(e = new D(
|
|
2491
2539
|
"❯",
|
|
2492
2540
|
"",
|
|
@@ -2500,14 +2548,14 @@ class Z {
|
|
|
2500
2548
|
}
|
|
2501
2549
|
// `⊖ `, `⊕ `;
|
|
2502
2550
|
}
|
|
2503
|
-
const
|
|
2504
|
-
class
|
|
2551
|
+
const Oe = new Ie(), Be = new Le("cell");
|
|
2552
|
+
class ee {
|
|
2505
2553
|
constructor() {
|
|
2506
2554
|
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 = {
|
|
2507
2555
|
header: 34,
|
|
2508
2556
|
body: 34,
|
|
2509
2557
|
footer: 34
|
|
2510
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new
|
|
2558
|
+
}, 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.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new Fe(), this.getSelectionModel = () => Oe, this.getFocusModel = () => Be;
|
|
2511
2559
|
}
|
|
2512
2560
|
}
|
|
2513
2561
|
const F = class F {
|
|
@@ -2530,8 +2578,8 @@ const F = class F {
|
|
|
2530
2578
|
for (let l = r.r1; l <= r.r2; l++) {
|
|
2531
2579
|
const n = [];
|
|
2532
2580
|
for (let c = r.c1; c <= r.c2; c++) {
|
|
2533
|
-
const
|
|
2534
|
-
n.push(
|
|
2581
|
+
const p = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
|
|
2582
|
+
n.push(p);
|
|
2535
2583
|
}
|
|
2536
2584
|
a.push(n.join(F.columnSeparatorChar));
|
|
2537
2585
|
}
|
|
@@ -2595,16 +2643,16 @@ const F = class F {
|
|
|
2595
2643
|
F.columnSeparatorChar = " ", F.rowSeparatorChar = `
|
|
2596
2644
|
`;
|
|
2597
2645
|
let O = F;
|
|
2598
|
-
class
|
|
2646
|
+
class Pe {
|
|
2599
2647
|
constructor(e, t = 500) {
|
|
2600
|
-
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(
|
|
2648
|
+
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(le(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
|
|
2601
2649
|
}
|
|
2602
2650
|
handleResize(e) {
|
|
2603
2651
|
const t = e[0], { width: s } = t.contentRect;
|
|
2604
2652
|
this.tableScope.recalcColumnWidths(s);
|
|
2605
2653
|
}
|
|
2606
2654
|
}
|
|
2607
|
-
class
|
|
2655
|
+
class We {
|
|
2608
2656
|
/**
|
|
2609
2657
|
* Downloads a matrix data as an Excel file.
|
|
2610
2658
|
*
|
|
@@ -2637,9 +2685,9 @@ class Be {
|
|
|
2637
2685
|
<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>`, l = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2638
2686
|
<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"?>
|
|
2639
2687
|
<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"?>
|
|
2640
|
-
<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>`,
|
|
2641
|
-
<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>`,
|
|
2642
|
-
return
|
|
2688
|
+
<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>`, p = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2689
|
+
<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>`, h = /* @__PURE__ */ new Map();
|
|
2690
|
+
return h.set("_rels/.rels", s), h.set("docProps/app.xml", o), h.set("docProps/core.xml", i), h.set("xl/_rels/workbook.xml.rels", r), h.set("xl/theme/theme1.xml", a), h.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), h.set("xl/sharedStrings.xml", l), h.set("xl/styles.xml", n), h.set("xl/workbook.xml", c), h.set("[Content_Types].xml", p), h;
|
|
2643
2691
|
}
|
|
2644
2692
|
getX1WorksheetsSheet1Xml(e) {
|
|
2645
2693
|
const t = [];
|
|
@@ -2684,25 +2732,25 @@ class Be {
|
|
|
2684
2732
|
const t = [];
|
|
2685
2733
|
let s = 0;
|
|
2686
2734
|
const o = [];
|
|
2687
|
-
e.forEach((
|
|
2688
|
-
const m = new TextEncoder().encode(
|
|
2689
|
-
b.set([80, 75, 3, 4], 0), u.setUint16(4, 20, !0), u.setUint16(6, 0, !0), u.setUint16(8, 0, !0), u.setUint16(10, 0, !0), u.setUint16(12, 0, !0), u.setUint32(14, 0, !0), u.setUint32(18,
|
|
2690
|
-
path:
|
|
2735
|
+
e.forEach((p, h) => {
|
|
2736
|
+
const m = new TextEncoder().encode(h), g = new TextEncoder().encode(p), b = new Uint8Array(30 + m.length), u = new DataView(b.buffer);
|
|
2737
|
+
b.set([80, 75, 3, 4], 0), u.setUint16(4, 20, !0), u.setUint16(6, 0, !0), u.setUint16(8, 0, !0), u.setUint16(10, 0, !0), u.setUint16(12, 0, !0), u.setUint32(14, 0, !0), u.setUint32(18, g.length, !0), u.setUint32(22, g.length, !0), u.setUint16(26, m.length, !0), u.setUint16(28, 0, !0), b.set(m, 30), t.push(b, g), o.push({
|
|
2738
|
+
path: h,
|
|
2691
2739
|
offset: s,
|
|
2692
|
-
contentSize:
|
|
2693
|
-
}), s += b.length +
|
|
2740
|
+
contentSize: g.length
|
|
2741
|
+
}), s += b.length + g.length;
|
|
2694
2742
|
});
|
|
2695
2743
|
const i = s;
|
|
2696
|
-
o.forEach((
|
|
2697
|
-
const
|
|
2698
|
-
m.set([80, 75, 1, 2], 0),
|
|
2744
|
+
o.forEach((p) => {
|
|
2745
|
+
const h = new TextEncoder().encode(p.path), m = new Uint8Array(46 + h.length), g = new DataView(m.buffer);
|
|
2746
|
+
m.set([80, 75, 1, 2], 0), g.setUint16(4, 20, !0), g.setUint16(6, 20, !0), g.setUint16(8, 0, !0), g.setUint16(10, 0, !0), g.setUint16(12, 0, !0), g.setUint16(14, 0, !0), g.setUint32(16, 0, !0), g.setUint32(20, p.contentSize, !0), g.setUint32(24, p.contentSize, !0), g.setUint16(28, h.length, !0), g.setUint16(30, 0, !0), g.setUint16(32, 0, !0), g.setUint16(34, 0, !0), g.setUint16(36, 0, !0), g.setUint32(38, 0, !0), g.setUint32(42, p.offset, !0), m.set(h, 46), t.push(m), s += m.length;
|
|
2699
2747
|
});
|
|
2700
2748
|
const r = new Uint8Array(22), a = new DataView(r.buffer);
|
|
2701
2749
|
r.set([80, 75, 5, 6], 0), a.setUint16(4, 0, !0), a.setUint16(6, 0, !0), a.setUint16(8, o.length, !0), a.setUint16(10, o.length, !0), a.setUint32(12, s - i, !0), a.setUint32(16, i, !0), a.setUint16(20, 0, !0), t.push(r);
|
|
2702
|
-
const l = t.reduce((
|
|
2750
|
+
const l = t.reduce((p, h) => p + h.length, 0), n = new Uint8Array(l);
|
|
2703
2751
|
let c = 0;
|
|
2704
|
-
for (const
|
|
2705
|
-
n.set(
|
|
2752
|
+
for (const p of t)
|
|
2753
|
+
n.set(p, c), c += p.length;
|
|
2706
2754
|
return n;
|
|
2707
2755
|
}
|
|
2708
2756
|
generateBuffer(e, t = "") {
|
|
@@ -2710,14 +2758,14 @@ class Be {
|
|
|
2710
2758
|
return this.createZip(s);
|
|
2711
2759
|
}
|
|
2712
2760
|
}
|
|
2713
|
-
class z extends
|
|
2714
|
-
constructor(e, t, s, o, i, r = new O(), a = new
|
|
2761
|
+
class z extends we {
|
|
2762
|
+
constructor(e, t, s, o, i, r = new O(), a = new We()) {
|
|
2715
2763
|
var c;
|
|
2716
|
-
if (super(e, t, new
|
|
2717
|
-
const
|
|
2718
|
-
|
|
2764
|
+
if (super(e, t, new ne(s), o), this.eventListener = i, this.copyService = r, this.excelService = a, this.licenseManager = k.getInstance(), this.selectionService = new Me(this), this.api = new ue(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), i || (this.eventListener = new X()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
|
|
2765
|
+
const p = this.tableOptions.autoRestoreOptions, h = p.getStorageKeyFn;
|
|
2766
|
+
h && (p.autoRestoreScrollPosition && (this.storeScrollPosStateService = new fe(h)), p.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new be(h)), p.autoRestoreSortingState && (this.storeSortingService = new Se(h)));
|
|
2719
2767
|
}
|
|
2720
|
-
this.mouseHandler = new
|
|
2768
|
+
this.mouseHandler = new de(this), this.inputHandler = new Ee(this), this.resizeHandler = new Pe(this, o.resizeEventDebounceDelay), this.shortcutService = new ke(this), this.shortcutService.addListener(this.selectionService);
|
|
2721
2769
|
const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
2722
2770
|
l && l.addEventSelectionChangedListener(this);
|
|
2723
2771
|
const n = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
@@ -2735,7 +2783,7 @@ class z extends ve {
|
|
|
2735
2783
|
*
|
|
2736
2784
|
* @return {TableScope} - The newly created TableScope instance.
|
|
2737
2785
|
*/
|
|
2738
|
-
static create(e, t, s = new
|
|
2786
|
+
static create(e, t, s = new ee(), o = new X(), i = new Z(), r = new O()) {
|
|
2739
2787
|
return new z(e, t, i, s, o, r);
|
|
2740
2788
|
}
|
|
2741
2789
|
/**
|
|
@@ -2793,7 +2841,7 @@ class z extends ve {
|
|
|
2793
2841
|
* @return {GeMouseEvent} - The created GeMouseEvent object.
|
|
2794
2842
|
*/
|
|
2795
2843
|
createGeMouseEvent(e) {
|
|
2796
|
-
const t = new
|
|
2844
|
+
const t = new H();
|
|
2797
2845
|
if (t.originalEvent = e, e) {
|
|
2798
2846
|
const s = e.target;
|
|
2799
2847
|
if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(s), t.rowIndex = this.getNumberByAttr(s, "data-row-index"), t.columnIndex = this.getNumberByAttr(s, "data-col-index"), t.action = this.getStringByAttr(s, "data-ge-action"), t.areaIdent) {
|
|
@@ -2851,7 +2899,13 @@ class z extends ve {
|
|
|
2851
2899
|
* @return {void}
|
|
2852
2900
|
*/
|
|
2853
2901
|
contextmenu(e) {
|
|
2854
|
-
|
|
2902
|
+
var s, o;
|
|
2903
|
+
const t = Date.now();
|
|
2904
|
+
if (t - this.lastContextmenu < 50) {
|
|
2905
|
+
this.lastContextmenu = t, (s = e.originalEvent) == null || s.preventDefault(), (o = e.originalEvent) == null || o.stopImmediatePropagation();
|
|
2906
|
+
return;
|
|
2907
|
+
}
|
|
2908
|
+
this.lastContextmenu = t, this.eventListener.onContextmenu(e);
|
|
2855
2909
|
}
|
|
2856
2910
|
/**
|
|
2857
2911
|
* Toggles the expand or collapse state of all items in the body area model.
|
|
@@ -2863,7 +2917,7 @@ class z extends ve {
|
|
|
2863
2917
|
toggleExpandCollapseAll(e = !0) {
|
|
2864
2918
|
var s;
|
|
2865
2919
|
const t = this.tableModel.getBodyModel();
|
|
2866
|
-
|
|
2920
|
+
$(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
|
|
2867
2921
|
}
|
|
2868
2922
|
/**
|
|
2869
2923
|
* Toggles the checkbox state of a specific row in a table.
|
|
@@ -2933,8 +2987,8 @@ class z extends ve {
|
|
|
2933
2987
|
const o = this.tableModel.getColumnDef(s);
|
|
2934
2988
|
if (o != null && o.sortable && o.sortable()) {
|
|
2935
2989
|
e.preventDefault(), e.stopPropagation();
|
|
2936
|
-
const a = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", n = a[(a.indexOf(l) + 1) % a.length], c = new
|
|
2937
|
-
this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((
|
|
2990
|
+
const a = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", n = a[(a.indexOf(l) + 1) % a.length], c = new ve(s, n);
|
|
2991
|
+
this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((h) => h.sortState = ""), o.sortState = n), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
|
|
2938
2992
|
}
|
|
2939
2993
|
}
|
|
2940
2994
|
/**
|
|
@@ -3079,7 +3133,7 @@ class z extends ve {
|
|
|
3079
3133
|
const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
|
|
3080
3134
|
if (s.autoRestoreCollapsedExpandedState && o) {
|
|
3081
3135
|
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
3082
|
-
if (
|
|
3136
|
+
if ($(r)) {
|
|
3083
3137
|
const a = r, l = r.getRowCount();
|
|
3084
3138
|
for (let n = 0; n < l; n++) {
|
|
3085
3139
|
const c = r.getRowByIndex(n);
|
|
@@ -3089,8 +3143,8 @@ class z extends ve {
|
|
|
3089
3143
|
else if (i.allCollapsed)
|
|
3090
3144
|
c.expanded = !1;
|
|
3091
3145
|
else {
|
|
3092
|
-
const
|
|
3093
|
-
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(
|
|
3146
|
+
const p = o(c.data);
|
|
3147
|
+
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(p) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(p));
|
|
3094
3148
|
}
|
|
3095
3149
|
}
|
|
3096
3150
|
a.recalcVisibleTreeRows();
|
|
@@ -3366,16 +3420,16 @@ B.themes = ["light", "combat", "paper", "blackboard"], B.vars = {
|
|
|
3366
3420
|
--ge-table-drop-zone-bg: #758129;
|
|
3367
3421
|
}`
|
|
3368
3422
|
};
|
|
3369
|
-
let
|
|
3423
|
+
let K = B;
|
|
3370
3424
|
const P = class P {
|
|
3371
|
-
constructor(e = new
|
|
3425
|
+
constructor(e = new Q()) {
|
|
3372
3426
|
this.headerGroupOptions = e;
|
|
3373
3427
|
}
|
|
3374
3428
|
render(e, t, s, o, i, r, a) {
|
|
3375
3429
|
const l = r != null && r.data ? r.data : "";
|
|
3376
3430
|
if (r) {
|
|
3377
|
-
const { toggle: n, visibility: c, closed:
|
|
3378
|
-
this.addText(e, o, t, s, l,
|
|
3431
|
+
const { toggle: n, visibility: c, closed: p } = r, h = n ? P.toggleHeaderGroup : "";
|
|
3432
|
+
this.addText(e, o, t, s, l, h), n && c !== "always" && this.addArrowDiv(a, e, !p, t, s, o, h);
|
|
3379
3433
|
} else
|
|
3380
3434
|
this.addText(e, o, t, s, l, "");
|
|
3381
3435
|
}
|
|
@@ -3392,10 +3446,10 @@ const P = class P {
|
|
|
3392
3446
|
e.addClass(l, "ge-table-toggle-icon-div"), e.setStyle(l, "display", "inline-block"), e.setStyle(l, "position", ""), e.setStyle(l, "width", "20px"), e.setStyle(l, "background", "transparent"), e.setStyle(l, "cursor", "pointer"), e.setAttribute(l, "data-row-index", `${o}`), e.setAttribute(l, "data-col-index", `${i}`), e.setAttribute(l, "data-area", `${r}`), e.setAttribute(l, "data-ge-action", `${a}`);
|
|
3393
3447
|
let n;
|
|
3394
3448
|
s ? n = this.headerGroupOptions.iconExpanded : n = this.headerGroupOptions.iconCollapsed;
|
|
3395
|
-
const c = n.content,
|
|
3396
|
-
e.appendChild(l,
|
|
3397
|
-
for (const
|
|
3398
|
-
e.addClass(l,
|
|
3449
|
+
const c = n.content, p = e.createText(c);
|
|
3450
|
+
e.appendChild(l, p), n.style && this.applyStyleString(e, l, n.style);
|
|
3451
|
+
for (const h of n.classes)
|
|
3452
|
+
e.addClass(l, h);
|
|
3399
3453
|
return e.appendChild(t, l), l;
|
|
3400
3454
|
}
|
|
3401
3455
|
applyStyleString(e, t, s) {
|
|
@@ -3407,8 +3461,8 @@ const P = class P {
|
|
|
3407
3461
|
}
|
|
3408
3462
|
};
|
|
3409
3463
|
P.toggleHeaderGroup = "toggleHeaderGroup";
|
|
3410
|
-
let
|
|
3411
|
-
const
|
|
3464
|
+
let Y = P;
|
|
3465
|
+
const $e = te({
|
|
3412
3466
|
inheritAttrs: !1,
|
|
3413
3467
|
props: {
|
|
3414
3468
|
tableModel: {
|
|
@@ -3417,7 +3471,7 @@ const Pe = ee({
|
|
|
3417
3471
|
},
|
|
3418
3472
|
tableOptions: {
|
|
3419
3473
|
required: !1,
|
|
3420
|
-
default: new
|
|
3474
|
+
default: new ee(),
|
|
3421
3475
|
type: Object
|
|
3422
3476
|
},
|
|
3423
3477
|
debounceMouseClickDelay: {
|
|
@@ -3441,8 +3495,8 @@ const Pe = ee({
|
|
|
3441
3495
|
"mouseDraggingEnd",
|
|
3442
3496
|
"mouseMoved"
|
|
3443
3497
|
],
|
|
3444
|
-
setup(
|
|
3445
|
-
const t =
|
|
3498
|
+
setup(d, { emit: e }) {
|
|
3499
|
+
const t = se(null), s = (o) => {
|
|
3446
3500
|
const i = {
|
|
3447
3501
|
onSelectionChanged: (a) => {
|
|
3448
3502
|
e("selectionChanged", a);
|
|
@@ -3473,34 +3527,34 @@ const Pe = ee({
|
|
|
3473
3527
|
}
|
|
3474
3528
|
}, r = new z(
|
|
3475
3529
|
o,
|
|
3476
|
-
|
|
3477
|
-
new
|
|
3478
|
-
|
|
3530
|
+
d.tableModel,
|
|
3531
|
+
new Z(),
|
|
3532
|
+
d.tableOptions,
|
|
3479
3533
|
i
|
|
3480
3534
|
);
|
|
3481
3535
|
r.firstInit(), e("tableReady", r.getApi());
|
|
3482
3536
|
};
|
|
3483
|
-
return
|
|
3537
|
+
return oe(() => {
|
|
3484
3538
|
t.value && s(t.value);
|
|
3485
|
-
}),
|
|
3539
|
+
}), d.licenseKey && k.getInstance().setLicenseKey(d.licenseKey), {
|
|
3486
3540
|
root: t
|
|
3487
3541
|
};
|
|
3488
3542
|
}
|
|
3489
|
-
}),
|
|
3490
|
-
const t =
|
|
3543
|
+
}), He = (d, e) => {
|
|
3544
|
+
const t = d.__vccOpts || d;
|
|
3491
3545
|
for (const [s, o] of e)
|
|
3492
3546
|
t[s] = o;
|
|
3493
3547
|
return t;
|
|
3494
|
-
},
|
|
3548
|
+
}, Ve = {
|
|
3495
3549
|
ref: "root",
|
|
3496
3550
|
class: "container-div",
|
|
3497
3551
|
style: { width: "100%", height: "100%", "background-color": "transparent", padding: "0", margin: "0" }
|
|
3498
3552
|
};
|
|
3499
|
-
function
|
|
3500
|
-
return
|
|
3553
|
+
function _e(d, e, t, s, o, i) {
|
|
3554
|
+
return re(), ie("div", Ve, null, 512);
|
|
3501
3555
|
}
|
|
3502
|
-
const
|
|
3503
|
-
class
|
|
3556
|
+
const Ge = /* @__PURE__ */ He($e, [["render", _e]]);
|
|
3557
|
+
class Ne {
|
|
3504
3558
|
constructor(e, t) {
|
|
3505
3559
|
this.component = e, this.appContext = t;
|
|
3506
3560
|
}
|
|
@@ -3520,19 +3574,19 @@ class Ge {
|
|
|
3520
3574
|
);
|
|
3521
3575
|
}
|
|
3522
3576
|
mount(e, t, s, o) {
|
|
3523
|
-
let i =
|
|
3577
|
+
let i = ae(e, t);
|
|
3524
3578
|
return i.appContext = s, U(i, o), () => {
|
|
3525
3579
|
o && U(null, o);
|
|
3526
3580
|
};
|
|
3527
3581
|
}
|
|
3528
3582
|
}
|
|
3529
|
-
const
|
|
3530
|
-
install: (
|
|
3531
|
-
|
|
3583
|
+
const Ue = {
|
|
3584
|
+
install: (d, e = { img: "" }) => {
|
|
3585
|
+
d.component("GuiexpertTable", Ge);
|
|
3532
3586
|
}
|
|
3533
3587
|
};
|
|
3534
3588
|
export {
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3589
|
+
Ne as ComponentRendererWrapper,
|
|
3590
|
+
Ge as GuiexpertTable,
|
|
3591
|
+
Ue as default
|
|
3538
3592
|
};
|