@guiexpert/vue3-table 3.1.59 → 3.1.61
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 +292 -249
- 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.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];
|
|
@@ -589,7 +589,7 @@ class pe extends de {
|
|
|
589
589
|
return o && t.length ? this.getPropertyValue(o, t) : o;
|
|
590
590
|
}
|
|
591
591
|
}
|
|
592
|
-
class
|
|
592
|
+
class ue {
|
|
593
593
|
constructor(e) {
|
|
594
594
|
this.tableScope = e;
|
|
595
595
|
}
|
|
@@ -780,8 +780,8 @@ class ge {
|
|
|
780
780
|
for (let n = 0; n < l; n++) {
|
|
781
781
|
const c = [];
|
|
782
782
|
s.push(c);
|
|
783
|
-
for (let
|
|
784
|
-
c.push(a.getValueAt(n,
|
|
783
|
+
for (let p = 0; p < o; p++)
|
|
784
|
+
c.push(a.getValueAt(n, p));
|
|
785
785
|
}
|
|
786
786
|
}
|
|
787
787
|
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
@@ -820,7 +820,7 @@ class ge {
|
|
|
820
820
|
}
|
|
821
821
|
setRows(e) {
|
|
822
822
|
const t = this.getBodyModel();
|
|
823
|
-
t instanceof
|
|
823
|
+
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
824
|
}
|
|
825
825
|
reSort() {
|
|
826
826
|
this.tableScope.reSort();
|
|
@@ -893,7 +893,7 @@ class _ {
|
|
|
893
893
|
// }
|
|
894
894
|
// }
|
|
895
895
|
}
|
|
896
|
-
class
|
|
896
|
+
class fe extends _ {
|
|
897
897
|
constructor(e) {
|
|
898
898
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
899
899
|
}
|
|
@@ -915,14 +915,14 @@ class ue extends _ {
|
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
}
|
|
918
|
-
class
|
|
918
|
+
class me {
|
|
919
919
|
constructor(e = "collapsed", t = [], s = !1, o = !1) {
|
|
920
920
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
921
921
|
}
|
|
922
922
|
}
|
|
923
|
-
class
|
|
923
|
+
class be extends _ {
|
|
924
924
|
constructor(e) {
|
|
925
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
925
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new me(), this.load();
|
|
926
926
|
}
|
|
927
927
|
collapsedExpandedStateGet() {
|
|
928
928
|
return this.collapsedExpandedState;
|
|
@@ -954,7 +954,7 @@ class me extends _ {
|
|
|
954
954
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
955
955
|
}
|
|
956
956
|
}
|
|
957
|
-
class
|
|
957
|
+
class Se extends _ {
|
|
958
958
|
constructor(e) {
|
|
959
959
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
960
960
|
}
|
|
@@ -980,7 +980,7 @@ class T {
|
|
|
980
980
|
this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
|
-
class
|
|
983
|
+
class ye {
|
|
984
984
|
constructor(e, t, s, o) {
|
|
985
985
|
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
986
|
const i = this.hostElement;
|
|
@@ -1186,7 +1186,7 @@ class E {
|
|
|
1186
1186
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
1187
1187
|
}
|
|
1188
1188
|
}
|
|
1189
|
-
class
|
|
1189
|
+
class xe {
|
|
1190
1190
|
constructor(e, t) {
|
|
1191
1191
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
1192
1192
|
}
|
|
@@ -1219,22 +1219,22 @@ class ye {
|
|
|
1219
1219
|
return !1;
|
|
1220
1220
|
}
|
|
1221
1221
|
}
|
|
1222
|
-
class
|
|
1222
|
+
class Ce {
|
|
1223
1223
|
constructor(e, t, s) {
|
|
1224
1224
|
this.header = e, this.body = t, this.footer = s;
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
|
-
class
|
|
1227
|
+
class we extends ye {
|
|
1228
1228
|
constructor(e, t, s, o) {
|
|
1229
1229
|
var r, a;
|
|
1230
1230
|
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
1231
|
header: [],
|
|
1232
1232
|
body: [],
|
|
1233
1233
|
footer: []
|
|
1234
|
-
}, this.tree = !1, this.colAndRowspanModels = new
|
|
1234
|
+
}, 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
1235
|
(l) => {
|
|
1236
1236
|
var n;
|
|
1237
|
-
this.colAndRowspanModels[l] = new
|
|
1237
|
+
this.colAndRowspanModels[l] = new xe(t, t.getAreaModel(l)), (n = this.colAndRowspanModels[l]) == null || n.init();
|
|
1238
1238
|
}
|
|
1239
1239
|
);
|
|
1240
1240
|
}
|
|
@@ -1375,19 +1375,19 @@ class ve extends Se {
|
|
|
1375
1375
|
if (l) {
|
|
1376
1376
|
let n;
|
|
1377
1377
|
const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
1378
|
-
let
|
|
1379
|
-
if (c ?
|
|
1380
|
-
n =
|
|
1378
|
+
let p;
|
|
1379
|
+
if (c ? p = this.editorRenderer : p = r.getCellRenderer(t, s), l.innerText = "", this.applyCssClasses(l, i), p)
|
|
1380
|
+
n = p.render(l, t, s, e, r, o, this.dom.domService), n && this.cleanupFunctions[e].push(n);
|
|
1381
1381
|
else {
|
|
1382
|
-
const
|
|
1383
|
-
this.dom.addLabelDiv(l,
|
|
1382
|
+
const g = `${o}`;
|
|
1383
|
+
this.dom.addLabelDiv(l, g, !1, t, s, e);
|
|
1384
1384
|
}
|
|
1385
|
-
const
|
|
1386
|
-
|
|
1385
|
+
const h = r.getCustomClassesAt(t, s);
|
|
1386
|
+
h.length && this.dom.addClasses(h, l);
|
|
1387
1387
|
const m = r.getCustomStyleAt(t, s);
|
|
1388
1388
|
if (m)
|
|
1389
|
-
for (const
|
|
1390
|
-
this.dom.setStyle(l,
|
|
1389
|
+
for (const g in m)
|
|
1390
|
+
this.dom.setStyle(l, g, m[g]);
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
1393
|
/**
|
|
@@ -1488,18 +1488,18 @@ class ve extends Se {
|
|
|
1488
1488
|
var u;
|
|
1489
1489
|
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
1490
1490
|
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),
|
|
1491
|
+
const a = 0, l = this.areaBodyCenterGeo.width, n = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), p = c.getRowCount();
|
|
1492
1492
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1493
1493
|
const f = this.cleanupFunctions[e].shift();
|
|
1494
1494
|
f && f();
|
|
1495
1495
|
}
|
|
1496
|
-
let
|
|
1497
|
-
const m = this.tableModel.getColumnCount(),
|
|
1498
|
-
for (let f = 0; f <
|
|
1499
|
-
const x =
|
|
1500
|
-
if (x +
|
|
1496
|
+
let h = t;
|
|
1497
|
+
const m = this.tableModel.getColumnCount(), g = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
|
|
1498
|
+
for (let f = 0; f < p; f++) {
|
|
1499
|
+
const x = h, C = f === p - 1, v = this.tableModel.getRowHeight(e, f);
|
|
1500
|
+
if (x + v > 0) {
|
|
1501
1501
|
this.firstVisibleRowIndex = f;
|
|
1502
|
-
let y = { left: a, width: l, height:
|
|
1502
|
+
let y = { left: a, width: l, height: v, top: x, index: f }, S = this.dom.addRowDiv(o, y, f, e, "center");
|
|
1503
1503
|
const R = b;
|
|
1504
1504
|
if (this.adjustColumnsToRowParent({
|
|
1505
1505
|
areaIdent: e,
|
|
@@ -1509,10 +1509,10 @@ class ve extends Se {
|
|
|
1509
1509
|
parent: S,
|
|
1510
1510
|
rowIndex: f,
|
|
1511
1511
|
columnIndexStart: R,
|
|
1512
|
-
columnIndexEnd: m -
|
|
1512
|
+
columnIndexEnd: m - g - 1,
|
|
1513
1513
|
verticalFixed: !1,
|
|
1514
|
-
lastRowOfModel:
|
|
1515
|
-
}), n.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height:
|
|
1514
|
+
lastRowOfModel: C
|
|
1515
|
+
}), 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
1516
|
areaIdent: e,
|
|
1517
1517
|
sideIdent: "west",
|
|
1518
1518
|
areaModel: c,
|
|
@@ -1522,19 +1522,19 @@ class ve extends Se {
|
|
|
1522
1522
|
columnIndexStart: 0,
|
|
1523
1523
|
columnIndexEnd: R - 1,
|
|
1524
1524
|
verticalFixed: !0,
|
|
1525
|
-
lastRowOfModel:
|
|
1526
|
-
})), n.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height:
|
|
1525
|
+
lastRowOfModel: C
|
|
1526
|
+
})), 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
1527
|
areaIdent: e,
|
|
1528
1528
|
sideIdent: "east",
|
|
1529
1529
|
areaModel: c,
|
|
1530
1530
|
geo: y,
|
|
1531
1531
|
parent: S,
|
|
1532
1532
|
rowIndex: f,
|
|
1533
|
-
columnIndexStart: m -
|
|
1533
|
+
columnIndexStart: m - g,
|
|
1534
1534
|
columnIndexEnd: m - 1,
|
|
1535
1535
|
verticalFixed: !0,
|
|
1536
|
-
lastRowOfModel:
|
|
1537
|
-
})), e === "header" && this.tree && f ===
|
|
1536
|
+
lastRowOfModel: C
|
|
1537
|
+
})), e === "header" && this.tree && f === p - 1) {
|
|
1538
1538
|
const A = this.dom.applyStyle(
|
|
1539
1539
|
this.dom.setAttribute(
|
|
1540
1540
|
this.dom.addDiv(S, new T(16, 20, 20, 8)),
|
|
@@ -1549,23 +1549,23 @@ class ve extends Se {
|
|
|
1549
1549
|
}
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
|
-
if (
|
|
1552
|
+
if (h = h + v, h > r)
|
|
1553
1553
|
break;
|
|
1554
1554
|
}
|
|
1555
1555
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
1556
1556
|
const f = ((u = this.colAndRowspanModels[e]) == null ? void 0 : u.getRanges()) ?? [];
|
|
1557
1557
|
if (f.length)
|
|
1558
1558
|
for (const x of f) {
|
|
1559
|
-
let
|
|
1559
|
+
let C = 0, v = o.child, y = "center";
|
|
1560
1560
|
if (x.c1 < b)
|
|
1561
|
-
|
|
1562
|
-
else if (
|
|
1563
|
-
|
|
1561
|
+
v = s.child, y = "west";
|
|
1562
|
+
else if (g > 0 && x.c1 >= m - g)
|
|
1563
|
+
v = i.child, y = "east";
|
|
1564
1564
|
else {
|
|
1565
1565
|
const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1566
|
-
|
|
1566
|
+
C = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
|
|
1567
1567
|
}
|
|
1568
|
-
this.drawBigCell(x,
|
|
1568
|
+
this.drawBigCell(x, C, t, c, v, y);
|
|
1569
1569
|
}
|
|
1570
1570
|
}
|
|
1571
1571
|
}
|
|
@@ -1583,21 +1583,21 @@ class ve extends Se {
|
|
|
1583
1583
|
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
1584
|
let c = 0;
|
|
1585
1585
|
n > 0 && e.c1 >= l - n && (c = l - n);
|
|
1586
|
-
const
|
|
1587
|
-
let
|
|
1586
|
+
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);
|
|
1587
|
+
let g = !1;
|
|
1588
1588
|
const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
1589
|
-
b && (
|
|
1589
|
+
b && (g = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
1590
1590
|
areaModel: o,
|
|
1591
1591
|
areaIdent: o.areaIdent,
|
|
1592
1592
|
sideIdent: r,
|
|
1593
1593
|
rowIndex: e.r1,
|
|
1594
1594
|
columnIndex: e.c1,
|
|
1595
|
-
left:
|
|
1595
|
+
left: p,
|
|
1596
1596
|
top: a,
|
|
1597
1597
|
width: m,
|
|
1598
|
-
height:
|
|
1598
|
+
height: h,
|
|
1599
1599
|
parent: i,
|
|
1600
|
-
cellSelected:
|
|
1600
|
+
cellSelected: g,
|
|
1601
1601
|
lastRowOfModel: !0,
|
|
1602
1602
|
gammaRange: e.gammaRange
|
|
1603
1603
|
}) : this.renderCell({
|
|
@@ -1606,21 +1606,21 @@ class ve extends Se {
|
|
|
1606
1606
|
sideIdent: r,
|
|
1607
1607
|
rowIndex: e.r1,
|
|
1608
1608
|
columnIndex: e.c1,
|
|
1609
|
-
left:
|
|
1609
|
+
left: p,
|
|
1610
1610
|
top: a,
|
|
1611
1611
|
width: m,
|
|
1612
|
-
height:
|
|
1612
|
+
height: h,
|
|
1613
1613
|
parent: i,
|
|
1614
|
-
cellSelected:
|
|
1614
|
+
cellSelected: g,
|
|
1615
1615
|
lastRowOfModel: !0,
|
|
1616
1616
|
gammaRange: e.gammaRange
|
|
1617
1617
|
}), o.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
1618
1618
|
rowIndex: e.r1,
|
|
1619
1619
|
columnIndex: e.c1,
|
|
1620
|
-
cellLeft:
|
|
1620
|
+
cellLeft: p,
|
|
1621
1621
|
cellTop: a,
|
|
1622
1622
|
cellWidth: m,
|
|
1623
|
-
cellHeight:
|
|
1623
|
+
cellHeight: h,
|
|
1624
1624
|
parent: i
|
|
1625
1625
|
});
|
|
1626
1626
|
}
|
|
@@ -1665,28 +1665,28 @@ class ve extends Se {
|
|
|
1665
1665
|
}) {
|
|
1666
1666
|
var b;
|
|
1667
1667
|
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
1668
|
-
let
|
|
1668
|
+
let p = 0;
|
|
1669
1669
|
if (!n) {
|
|
1670
1670
|
const u = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1671
|
-
|
|
1671
|
+
p = this.scrollFactorX * u;
|
|
1672
1672
|
}
|
|
1673
|
-
const
|
|
1674
|
-
let
|
|
1673
|
+
const h = 0, m = !!(e === "body" && t);
|
|
1674
|
+
let g = p;
|
|
1675
1675
|
for (let u = a; u <= l; u++) {
|
|
1676
|
-
const f =
|
|
1676
|
+
const f = g, x = this.tableModel.getColumnWidth(u);
|
|
1677
1677
|
if (x > 0 && f + x > 0) {
|
|
1678
|
-
let
|
|
1679
|
-
const
|
|
1680
|
-
|
|
1678
|
+
let C = o.height;
|
|
1679
|
+
const v = s.getRowspanAt(r, u), y = s.getColspanAt(r, u);
|
|
1680
|
+
v > 1 && (C = this.getRowHeights(r, r + v - 1, s).reduce((A, M) => A + M, 0));
|
|
1681
1681
|
let S = x;
|
|
1682
1682
|
y > 1 && (S = this.getColumnWidths(u, u + y - 1).reduce((A, M) => A + M, 0));
|
|
1683
1683
|
let R = !1;
|
|
1684
1684
|
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:
|
|
1685
|
+
this.renderDragTargetDiv(i, f, h, S, C);
|
|
1686
|
+
const A = { left: f, top: h, width: S, height: C };
|
|
1687
1687
|
this.dom.addColumnBorderDivs(this.tableOptions, i, A, e, t);
|
|
1688
1688
|
} else {
|
|
1689
|
-
const A = this.renderSelectedBackgroundDiv(R, m, t, s, r, u, i, f,
|
|
1689
|
+
const A = this.renderSelectedBackgroundDiv(R, m, t, s, r, u, i, f, h, S, C);
|
|
1690
1690
|
"gammaCells" in s && s.getValueAt(r, u) && (R = !1), R || this.renderCell({
|
|
1691
1691
|
areaModel: s,
|
|
1692
1692
|
areaIdent: e,
|
|
@@ -1694,9 +1694,9 @@ class ve extends Se {
|
|
|
1694
1694
|
rowIndex: r,
|
|
1695
1695
|
columnIndex: u,
|
|
1696
1696
|
left: f,
|
|
1697
|
-
top:
|
|
1697
|
+
top: h,
|
|
1698
1698
|
width: S,
|
|
1699
|
-
height:
|
|
1699
|
+
height: C,
|
|
1700
1700
|
parent: i,
|
|
1701
1701
|
cellSelected: A,
|
|
1702
1702
|
lastRowOfModel: c,
|
|
@@ -1705,17 +1705,17 @@ class ve extends Se {
|
|
|
1705
1705
|
rowIndex: r,
|
|
1706
1706
|
columnIndex: u,
|
|
1707
1707
|
cellLeft: f,
|
|
1708
|
-
cellTop:
|
|
1708
|
+
cellTop: h,
|
|
1709
1709
|
cellWidth: S,
|
|
1710
|
-
cellHeight:
|
|
1710
|
+
cellHeight: C,
|
|
1711
1711
|
parent: i
|
|
1712
1712
|
});
|
|
1713
1713
|
}
|
|
1714
1714
|
}
|
|
1715
|
-
if (
|
|
1715
|
+
if (g = g + x, g > this.areaBodyCenterGeo.width)
|
|
1716
1716
|
break;
|
|
1717
1717
|
}
|
|
1718
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(
|
|
1718
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(g - 1, 1, o.height, 0), i);
|
|
1719
1719
|
}
|
|
1720
1720
|
/**
|
|
1721
1721
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -1740,29 +1740,29 @@ class ve extends Se {
|
|
|
1740
1740
|
height: l,
|
|
1741
1741
|
top: n,
|
|
1742
1742
|
parent: c,
|
|
1743
|
-
lastRowOfModel:
|
|
1743
|
+
lastRowOfModel: p
|
|
1744
1744
|
}) {
|
|
1745
1745
|
var N;
|
|
1746
|
-
const m = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i),
|
|
1746
|
+
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
1747
|
let u = "none";
|
|
1748
1748
|
if (i === this.getTreeArrowColumnIndex() && L(b)) {
|
|
1749
|
-
const
|
|
1750
|
-
(N =
|
|
1749
|
+
const w = b;
|
|
1750
|
+
(N = w.children) != null && N.length ? w.expanded ? u = "expanded" : u = "collapsed" : u = "hidden";
|
|
1751
1751
|
}
|
|
1752
1752
|
let x;
|
|
1753
1753
|
if (t === "header") {
|
|
1754
|
-
const
|
|
1755
|
-
(!(
|
|
1754
|
+
const w = this.tableModel.getColumnDef(i);
|
|
1755
|
+
(!(w != null && w.sortIconVisible) || w != null && w.sortIconVisible()) && (x = w == null ? void 0 : w.sortState);
|
|
1756
1756
|
}
|
|
1757
|
-
const
|
|
1757
|
+
const C = e.getValueAt(o, i), v = m ? "" : `${C}`, y = e.isRowChecked(o), S = this.dom.addColumnDiv(
|
|
1758
1758
|
{
|
|
1759
1759
|
parent: c,
|
|
1760
|
-
geo:
|
|
1760
|
+
geo: g,
|
|
1761
1761
|
rowIndex: o,
|
|
1762
1762
|
columnIndex: i,
|
|
1763
1763
|
areaIdent: t,
|
|
1764
1764
|
sideIdent: s,
|
|
1765
|
-
text:
|
|
1765
|
+
text: v,
|
|
1766
1766
|
treeArrow: u,
|
|
1767
1767
|
tableOptions: this.tableOptions,
|
|
1768
1768
|
checkedType: y,
|
|
@@ -1773,17 +1773,17 @@ class ve extends Se {
|
|
|
1773
1773
|
const A = this.tableModel.getColumnDef(i);
|
|
1774
1774
|
A && A.classes[t] && this.dom.addClasses(A.classes[t], S);
|
|
1775
1775
|
let M;
|
|
1776
|
-
m && (M = m.render(S, o, i, t, e,
|
|
1776
|
+
m && (M = m.render(S, o, i, t, e, C, this.dom.domService));
|
|
1777
1777
|
const I = e.getCustomClassesAt(o, i);
|
|
1778
|
-
if (I.length && this.dom.addClasses(I, S), this.dom.addColumnBorderDivs(this.tableOptions, c,
|
|
1779
|
-
const
|
|
1780
|
-
|
|
1778
|
+
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") {
|
|
1779
|
+
const w = this.getFocusModel();
|
|
1780
|
+
w != null && w.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
|
|
1781
1781
|
}
|
|
1782
1782
|
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
1783
1783
|
const W = e.getCustomStyleAt(o, i);
|
|
1784
1784
|
if (W)
|
|
1785
|
-
for (const
|
|
1786
|
-
this.dom.setStyle(S,
|
|
1785
|
+
for (const w in W)
|
|
1786
|
+
this.dom.setStyle(S, w, W[w]);
|
|
1787
1787
|
return [S, M];
|
|
1788
1788
|
}
|
|
1789
1789
|
/**
|
|
@@ -1950,9 +1950,9 @@ class ve extends Se {
|
|
|
1950
1950
|
if (r) {
|
|
1951
1951
|
const a = e.index ?? 0, l = this.draggingColumn;
|
|
1952
1952
|
for (let n = 0; n < r; n++) {
|
|
1953
|
-
const c = s,
|
|
1953
|
+
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
1954
|
parent: l,
|
|
1955
|
-
geo:
|
|
1955
|
+
geo: h,
|
|
1956
1956
|
rowIndex: n,
|
|
1957
1957
|
columnIndex: a,
|
|
1958
1958
|
areaIdent: t,
|
|
@@ -1960,16 +1960,16 @@ class ve extends Se {
|
|
|
1960
1960
|
text: b
|
|
1961
1961
|
}, f = this.dom.addColumnDiv(u);
|
|
1962
1962
|
let x;
|
|
1963
|
-
|
|
1964
|
-
const
|
|
1965
|
-
|
|
1966
|
-
const
|
|
1967
|
-
|
|
1963
|
+
g && (x = g.render(f, n, a, t, i, m, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
1964
|
+
const C = i.getCustomClassesAt(n, a);
|
|
1965
|
+
C.length && this.dom.addClasses(C, f);
|
|
1966
|
+
const v = this.tableModel.getColumnDef(a);
|
|
1967
|
+
v && v.classes[t] && this.dom.addClasses(v.classes[t], f), this.dom.addColumnBorderDivs(this.tableOptions, l, h, t, o);
|
|
1968
1968
|
const y = i.getCustomStyleAt(n, a);
|
|
1969
1969
|
if (y)
|
|
1970
1970
|
for (const S in y)
|
|
1971
1971
|
this.dom.setStyle(f, S, y[S]);
|
|
1972
|
-
s = s +
|
|
1972
|
+
s = s + p;
|
|
1973
1973
|
}
|
|
1974
1974
|
}
|
|
1975
1975
|
return s;
|
|
@@ -2018,23 +2018,23 @@ class ve extends Se {
|
|
|
2018
2018
|
* @param {number} height - The height of the div.
|
|
2019
2019
|
* @returns {boolean} - Whether the cell is selected.
|
|
2020
2020
|
*/
|
|
2021
|
-
renderSelectedBackgroundDiv(e, t, s, o, i, r, a, l, n, c,
|
|
2022
|
-
let
|
|
2021
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, a, l, n, c, p) {
|
|
2022
|
+
let h = !1;
|
|
2023
2023
|
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2024
2024
|
const m = this.getSelectionModel();
|
|
2025
2025
|
if (m) {
|
|
2026
|
-
const
|
|
2027
|
-
|
|
2028
|
-
for (let b = 0; b <
|
|
2026
|
+
const g = m.getSelectionCount(i, r);
|
|
2027
|
+
h = g > 0;
|
|
2028
|
+
for (let b = 0; b < g; b++) {
|
|
2029
2029
|
const u = this.dom.applyStylePosistionAbsolute(
|
|
2030
2030
|
// ge-table-body-west-selected-range
|
|
2031
2031
|
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, a)
|
|
2032
2032
|
);
|
|
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", `${
|
|
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", `${p}px`);
|
|
2034
2034
|
}
|
|
2035
2035
|
}
|
|
2036
2036
|
}
|
|
2037
|
-
return
|
|
2037
|
+
return h;
|
|
2038
2038
|
}
|
|
2039
2039
|
/**
|
|
2040
2040
|
* Renders a cell in the grid.
|
|
@@ -2066,10 +2066,10 @@ class ve extends Se {
|
|
|
2066
2066
|
width: l,
|
|
2067
2067
|
height: n,
|
|
2068
2068
|
parent: c,
|
|
2069
|
-
cellSelected:
|
|
2070
|
-
lastRowOfModel:
|
|
2069
|
+
cellSelected: p,
|
|
2070
|
+
lastRowOfModel: h
|
|
2071
2071
|
}) {
|
|
2072
|
-
const [m,
|
|
2072
|
+
const [m, g] = this.addAndRenderCellDiv({
|
|
2073
2073
|
areaModel: e,
|
|
2074
2074
|
areaIdent: t,
|
|
2075
2075
|
sideIdent: s,
|
|
@@ -2080,9 +2080,9 @@ class ve extends Se {
|
|
|
2080
2080
|
height: n,
|
|
2081
2081
|
top: a,
|
|
2082
2082
|
parent: c,
|
|
2083
|
-
lastRowOfModel:
|
|
2083
|
+
lastRowOfModel: h
|
|
2084
2084
|
});
|
|
2085
|
-
|
|
2085
|
+
p && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, m), g && this.cleanupFunctions[t].push(g);
|
|
2086
2086
|
}
|
|
2087
2087
|
/**
|
|
2088
2088
|
* Render the header cell resize handle.
|
|
@@ -2103,12 +2103,12 @@ class ve extends Se {
|
|
|
2103
2103
|
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
2104
|
}
|
|
2105
2105
|
}
|
|
2106
|
-
class
|
|
2106
|
+
class ve {
|
|
2107
2107
|
constructor(e, t) {
|
|
2108
2108
|
this.columnIndex = e, this.sortState = t;
|
|
2109
2109
|
}
|
|
2110
2110
|
}
|
|
2111
|
-
class
|
|
2111
|
+
class Ee {
|
|
2112
2112
|
constructor(e) {
|
|
2113
2113
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
2114
2114
|
}
|
|
@@ -2130,7 +2130,7 @@ class we {
|
|
|
2130
2130
|
}
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
2133
|
-
class
|
|
2133
|
+
class Ae {
|
|
2134
2134
|
constructor(e = -1, t = -1) {
|
|
2135
2135
|
this.rowIndex = e, this.columnIndex = t;
|
|
2136
2136
|
}
|
|
@@ -2140,20 +2140,20 @@ class G {
|
|
|
2140
2140
|
this.cells = e;
|
|
2141
2141
|
}
|
|
2142
2142
|
static createSingle(e, t) {
|
|
2143
|
-
return new G([new
|
|
2143
|
+
return new G([new Ae(e, t)]);
|
|
2144
2144
|
}
|
|
2145
2145
|
}
|
|
2146
|
-
class
|
|
2146
|
+
class Me {
|
|
2147
2147
|
constructor(e) {
|
|
2148
2148
|
var t, s;
|
|
2149
2149
|
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
2150
|
}
|
|
2151
2151
|
onMouseClicked(e, t) {
|
|
2152
|
-
var i, r, a, l, n, c,
|
|
2152
|
+
var i, r, a, l, n, c, p;
|
|
2153
2153
|
let s = !1, o = !1;
|
|
2154
2154
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2155
|
-
const
|
|
2156
|
-
|
|
2155
|
+
const h = this.getSelectionModel(), m = this.getFocusModel();
|
|
2156
|
+
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
2157
|
}
|
|
2158
2158
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2159
2159
|
}
|
|
@@ -2184,7 +2184,7 @@ class Ae {
|
|
|
2184
2184
|
});
|
|
2185
2185
|
}
|
|
2186
2186
|
}
|
|
2187
|
-
class
|
|
2187
|
+
class Re {
|
|
2188
2188
|
get() {
|
|
2189
2189
|
return {
|
|
2190
2190
|
f2: "START_EDITING",
|
|
@@ -2204,7 +2204,7 @@ class Me {
|
|
|
2204
2204
|
};
|
|
2205
2205
|
}
|
|
2206
2206
|
}
|
|
2207
|
-
class
|
|
2207
|
+
class Te {
|
|
2208
2208
|
get() {
|
|
2209
2209
|
return {
|
|
2210
2210
|
f2: "START_EDITING",
|
|
@@ -2226,7 +2226,23 @@ class Re {
|
|
|
2226
2226
|
};
|
|
2227
2227
|
}
|
|
2228
2228
|
}
|
|
2229
|
-
|
|
2229
|
+
function De(d) {
|
|
2230
|
+
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) => {
|
|
2231
|
+
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, o = s[e] || 5, i = s[t] || 5;
|
|
2232
|
+
return o !== i ? o - i : e.localeCompare(t);
|
|
2233
|
+
}).join(" ");
|
|
2234
|
+
}
|
|
2235
|
+
function j(d) {
|
|
2236
|
+
let e = d.key.toLowerCase();
|
|
2237
|
+
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")) {
|
|
2238
|
+
const s = d.code.replace("Numpad", "").toLowerCase();
|
|
2239
|
+
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;
|
|
2240
|
+
}
|
|
2241
|
+
d.code.match(/^F\d+$/) && (e = d.code.toLowerCase()), d.code.match(/^Digit\d+$/) && (e = d.code.replace(/Digit/g, ""));
|
|
2242
|
+
let t = "";
|
|
2243
|
+
return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"), De(t + " " + e);
|
|
2244
|
+
}
|
|
2245
|
+
class ke {
|
|
2230
2246
|
constructor(e) {
|
|
2231
2247
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
2232
2248
|
}
|
|
@@ -2247,7 +2263,7 @@ class Te {
|
|
|
2247
2263
|
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
2264
|
}
|
|
2249
2265
|
assignPredefinedSystemShortcutMappings() {
|
|
2250
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
2266
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Te().get()) : Object.assign(this.shortcutActionIdMapping, new Re().get());
|
|
2251
2267
|
}
|
|
2252
2268
|
isMacintosh() {
|
|
2253
2269
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -2270,26 +2286,47 @@ class Te {
|
|
|
2270
2286
|
return t;
|
|
2271
2287
|
}
|
|
2272
2288
|
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
|
-
|
|
2289
|
+
const t = j(e);
|
|
2290
|
+
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
2291
|
+
for (const s in this.shortcutActionIdMapping)
|
|
2292
|
+
if (j(e) === t)
|
|
2293
|
+
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
2294
|
+
}
|
|
2295
|
+
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
2296
|
+
// if (tokens1.length !== tokens2.length) {
|
|
2297
|
+
// return false;
|
|
2298
|
+
// }
|
|
2299
|
+
// if (tokens1.length === 0) {
|
|
2300
|
+
// return false;
|
|
2301
|
+
// }
|
|
2302
|
+
// for (let i = 0; i < tokens1.length; i++) {
|
|
2303
|
+
// if (tokens1[i] !== tokens2[i]) {
|
|
2304
|
+
// return false;
|
|
2305
|
+
// }
|
|
2306
|
+
// }
|
|
2307
|
+
//
|
|
2308
|
+
// return true;
|
|
2309
|
+
// }
|
|
2310
|
+
//
|
|
2311
|
+
// private getTokenByEvent(evt: KeyboardEvent): string[] {
|
|
2312
|
+
// const tokens: string[] = [];
|
|
2313
|
+
// if (evt.altKey) {
|
|
2314
|
+
// tokens.push("alt");
|
|
2315
|
+
// }
|
|
2316
|
+
// if (evt.shiftKey) {
|
|
2317
|
+
// tokens.push("shift");
|
|
2318
|
+
// }
|
|
2319
|
+
// if (evt.ctrlKey) {
|
|
2320
|
+
// tokens.push("ctrl");
|
|
2321
|
+
// }
|
|
2322
|
+
// if (evt.metaKey) {
|
|
2323
|
+
// tokens.push("meta");
|
|
2324
|
+
// }
|
|
2325
|
+
// if (evt.code) {
|
|
2326
|
+
// tokens.push(evt.code.toLowerCase().replace(/key/g, ""));
|
|
2327
|
+
// }
|
|
2328
|
+
// return tokens.sort();
|
|
2329
|
+
// }
|
|
2293
2330
|
/**
|
|
2294
2331
|
* Retrieves the shortcut action mapping object.
|
|
2295
2332
|
*
|
|
@@ -2299,7 +2336,7 @@ class Te {
|
|
|
2299
2336
|
return this.shortcutActionIdMapping;
|
|
2300
2337
|
}
|
|
2301
2338
|
}
|
|
2302
|
-
class
|
|
2339
|
+
class X {
|
|
2303
2340
|
onCheckboxChanged(e) {
|
|
2304
2341
|
}
|
|
2305
2342
|
onContextmenu(e) {
|
|
@@ -2319,7 +2356,7 @@ class j {
|
|
|
2319
2356
|
onFocusChanged(e) {
|
|
2320
2357
|
}
|
|
2321
2358
|
}
|
|
2322
|
-
class
|
|
2359
|
+
class Z {
|
|
2323
2360
|
setStyle(e, t, s) {
|
|
2324
2361
|
return e.style[t] = s, e;
|
|
2325
2362
|
}
|
|
@@ -2346,7 +2383,7 @@ class J {
|
|
|
2346
2383
|
e.setAttribute(t, s);
|
|
2347
2384
|
}
|
|
2348
2385
|
}
|
|
2349
|
-
class
|
|
2386
|
+
class Fe {
|
|
2350
2387
|
render(e, t, s, o, i, r, a) {
|
|
2351
2388
|
if (i.isEditable(t, s)) {
|
|
2352
2389
|
a.addClass(e, "ge-table-row-input-div");
|
|
@@ -2367,7 +2404,7 @@ class De {
|
|
|
2367
2404
|
}
|
|
2368
2405
|
}
|
|
2369
2406
|
}
|
|
2370
|
-
class
|
|
2407
|
+
class Ie {
|
|
2371
2408
|
constructor(e = "none", t = "single") {
|
|
2372
2409
|
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
|
|
2373
2410
|
}
|
|
@@ -2449,7 +2486,7 @@ class ke {
|
|
|
2449
2486
|
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
2487
|
}
|
|
2451
2488
|
}
|
|
2452
|
-
class
|
|
2489
|
+
class Le {
|
|
2453
2490
|
constructor(e = "none") {
|
|
2454
2491
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
2455
2492
|
}
|
|
@@ -2486,7 +2523,7 @@ class Fe {
|
|
|
2486
2523
|
return [this.rowIndex, this.columnIndex];
|
|
2487
2524
|
}
|
|
2488
2525
|
}
|
|
2489
|
-
class
|
|
2526
|
+
class Q {
|
|
2490
2527
|
constructor(e = new D(
|
|
2491
2528
|
"❯",
|
|
2492
2529
|
"",
|
|
@@ -2500,14 +2537,14 @@ class Z {
|
|
|
2500
2537
|
}
|
|
2501
2538
|
// `⊖ `, `⊕ `;
|
|
2502
2539
|
}
|
|
2503
|
-
const
|
|
2504
|
-
class
|
|
2540
|
+
const Oe = new Ie(), Be = new Le("cell");
|
|
2541
|
+
class ee {
|
|
2505
2542
|
constructor() {
|
|
2506
2543
|
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
2544
|
header: 34,
|
|
2508
2545
|
body: 34,
|
|
2509
2546
|
footer: 34
|
|
2510
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new
|
|
2547
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new q(), this.headerGroupOptions = new Q(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new J(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new Fe(), this.getSelectionModel = () => Oe, this.getFocusModel = () => Be;
|
|
2511
2548
|
}
|
|
2512
2549
|
}
|
|
2513
2550
|
const F = class F {
|
|
@@ -2530,8 +2567,8 @@ const F = class F {
|
|
|
2530
2567
|
for (let l = r.r1; l <= r.r2; l++) {
|
|
2531
2568
|
const n = [];
|
|
2532
2569
|
for (let c = r.c1; c <= r.c2; c++) {
|
|
2533
|
-
const
|
|
2534
|
-
n.push(
|
|
2570
|
+
const p = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
|
|
2571
|
+
n.push(p);
|
|
2535
2572
|
}
|
|
2536
2573
|
a.push(n.join(F.columnSeparatorChar));
|
|
2537
2574
|
}
|
|
@@ -2595,16 +2632,16 @@ const F = class F {
|
|
|
2595
2632
|
F.columnSeparatorChar = " ", F.rowSeparatorChar = `
|
|
2596
2633
|
`;
|
|
2597
2634
|
let O = F;
|
|
2598
|
-
class
|
|
2635
|
+
class Pe {
|
|
2599
2636
|
constructor(e, t = 500) {
|
|
2600
|
-
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(
|
|
2637
|
+
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(le(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
|
|
2601
2638
|
}
|
|
2602
2639
|
handleResize(e) {
|
|
2603
2640
|
const t = e[0], { width: s } = t.contentRect;
|
|
2604
2641
|
this.tableScope.recalcColumnWidths(s);
|
|
2605
2642
|
}
|
|
2606
2643
|
}
|
|
2607
|
-
class
|
|
2644
|
+
class We {
|
|
2608
2645
|
/**
|
|
2609
2646
|
* Downloads a matrix data as an Excel file.
|
|
2610
2647
|
*
|
|
@@ -2637,9 +2674,9 @@ class Be {
|
|
|
2637
2674
|
<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
2675
|
<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
2676
|
<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
|
|
2677
|
+
<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"?>
|
|
2678
|
+
<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();
|
|
2679
|
+
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
2680
|
}
|
|
2644
2681
|
getX1WorksheetsSheet1Xml(e) {
|
|
2645
2682
|
const t = [];
|
|
@@ -2684,25 +2721,25 @@ class Be {
|
|
|
2684
2721
|
const t = [];
|
|
2685
2722
|
let s = 0;
|
|
2686
2723
|
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:
|
|
2724
|
+
e.forEach((p, h) => {
|
|
2725
|
+
const m = new TextEncoder().encode(h), g = new TextEncoder().encode(p), b = new Uint8Array(30 + m.length), u = new DataView(b.buffer);
|
|
2726
|
+
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({
|
|
2727
|
+
path: h,
|
|
2691
2728
|
offset: s,
|
|
2692
|
-
contentSize:
|
|
2693
|
-
}), s += b.length +
|
|
2729
|
+
contentSize: g.length
|
|
2730
|
+
}), s += b.length + g.length;
|
|
2694
2731
|
});
|
|
2695
2732
|
const i = s;
|
|
2696
|
-
o.forEach((
|
|
2697
|
-
const
|
|
2698
|
-
m.set([80, 75, 1, 2], 0),
|
|
2733
|
+
o.forEach((p) => {
|
|
2734
|
+
const h = new TextEncoder().encode(p.path), m = new Uint8Array(46 + h.length), g = new DataView(m.buffer);
|
|
2735
|
+
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
2736
|
});
|
|
2700
2737
|
const r = new Uint8Array(22), a = new DataView(r.buffer);
|
|
2701
2738
|
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((
|
|
2739
|
+
const l = t.reduce((p, h) => p + h.length, 0), n = new Uint8Array(l);
|
|
2703
2740
|
let c = 0;
|
|
2704
|
-
for (const
|
|
2705
|
-
n.set(
|
|
2741
|
+
for (const p of t)
|
|
2742
|
+
n.set(p, c), c += p.length;
|
|
2706
2743
|
return n;
|
|
2707
2744
|
}
|
|
2708
2745
|
generateBuffer(e, t = "") {
|
|
@@ -2710,14 +2747,14 @@ class Be {
|
|
|
2710
2747
|
return this.createZip(s);
|
|
2711
2748
|
}
|
|
2712
2749
|
}
|
|
2713
|
-
class z extends
|
|
2714
|
-
constructor(e, t, s, o, i, r = new O(), a = new
|
|
2750
|
+
class z extends we {
|
|
2751
|
+
constructor(e, t, s, o, i, r = new O(), a = new We()) {
|
|
2715
2752
|
var c;
|
|
2716
|
-
if (super(e, t, new
|
|
2717
|
-
const
|
|
2718
|
-
|
|
2753
|
+
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) {
|
|
2754
|
+
const p = this.tableOptions.autoRestoreOptions, h = p.getStorageKeyFn;
|
|
2755
|
+
h && (p.autoRestoreScrollPosition && (this.storeScrollPosStateService = new fe(h)), p.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new be(h)), p.autoRestoreSortingState && (this.storeSortingService = new Se(h)));
|
|
2719
2756
|
}
|
|
2720
|
-
this.mouseHandler = new
|
|
2757
|
+
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
2758
|
const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
2722
2759
|
l && l.addEventSelectionChangedListener(this);
|
|
2723
2760
|
const n = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
@@ -2735,7 +2772,7 @@ class z extends ve {
|
|
|
2735
2772
|
*
|
|
2736
2773
|
* @return {TableScope} - The newly created TableScope instance.
|
|
2737
2774
|
*/
|
|
2738
|
-
static create(e, t, s = new
|
|
2775
|
+
static create(e, t, s = new ee(), o = new X(), i = new Z(), r = new O()) {
|
|
2739
2776
|
return new z(e, t, i, s, o, r);
|
|
2740
2777
|
}
|
|
2741
2778
|
/**
|
|
@@ -2793,7 +2830,7 @@ class z extends ve {
|
|
|
2793
2830
|
* @return {GeMouseEvent} - The created GeMouseEvent object.
|
|
2794
2831
|
*/
|
|
2795
2832
|
createGeMouseEvent(e) {
|
|
2796
|
-
const t = new
|
|
2833
|
+
const t = new H();
|
|
2797
2834
|
if (t.originalEvent = e, e) {
|
|
2798
2835
|
const s = e.target;
|
|
2799
2836
|
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 +2888,13 @@ class z extends ve {
|
|
|
2851
2888
|
* @return {void}
|
|
2852
2889
|
*/
|
|
2853
2890
|
contextmenu(e) {
|
|
2854
|
-
|
|
2891
|
+
var s, o;
|
|
2892
|
+
const t = Date.now();
|
|
2893
|
+
if (t - this.lastContextmenu < 50) {
|
|
2894
|
+
this.lastContextmenu = t, (s = e.originalEvent) == null || s.preventDefault(), (o = e.originalEvent) == null || o.stopImmediatePropagation();
|
|
2895
|
+
return;
|
|
2896
|
+
}
|
|
2897
|
+
this.lastContextmenu = t, this.eventListener.onContextmenu(e);
|
|
2855
2898
|
}
|
|
2856
2899
|
/**
|
|
2857
2900
|
* Toggles the expand or collapse state of all items in the body area model.
|
|
@@ -2863,7 +2906,7 @@ class z extends ve {
|
|
|
2863
2906
|
toggleExpandCollapseAll(e = !0) {
|
|
2864
2907
|
var s;
|
|
2865
2908
|
const t = this.tableModel.getBodyModel();
|
|
2866
|
-
|
|
2909
|
+
$(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
|
|
2867
2910
|
}
|
|
2868
2911
|
/**
|
|
2869
2912
|
* Toggles the checkbox state of a specific row in a table.
|
|
@@ -2933,8 +2976,8 @@ class z extends ve {
|
|
|
2933
2976
|
const o = this.tableModel.getColumnDef(s);
|
|
2934
2977
|
if (o != null && o.sortable && o.sortable()) {
|
|
2935
2978
|
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((
|
|
2979
|
+
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);
|
|
2980
|
+
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
2981
|
}
|
|
2939
2982
|
}
|
|
2940
2983
|
/**
|
|
@@ -3079,7 +3122,7 @@ class z extends ve {
|
|
|
3079
3122
|
const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
|
|
3080
3123
|
if (s.autoRestoreCollapsedExpandedState && o) {
|
|
3081
3124
|
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
3082
|
-
if (
|
|
3125
|
+
if ($(r)) {
|
|
3083
3126
|
const a = r, l = r.getRowCount();
|
|
3084
3127
|
for (let n = 0; n < l; n++) {
|
|
3085
3128
|
const c = r.getRowByIndex(n);
|
|
@@ -3089,8 +3132,8 @@ class z extends ve {
|
|
|
3089
3132
|
else if (i.allCollapsed)
|
|
3090
3133
|
c.expanded = !1;
|
|
3091
3134
|
else {
|
|
3092
|
-
const
|
|
3093
|
-
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(
|
|
3135
|
+
const p = o(c.data);
|
|
3136
|
+
i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(p) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(p));
|
|
3094
3137
|
}
|
|
3095
3138
|
}
|
|
3096
3139
|
a.recalcVisibleTreeRows();
|
|
@@ -3366,16 +3409,16 @@ B.themes = ["light", "combat", "paper", "blackboard"], B.vars = {
|
|
|
3366
3409
|
--ge-table-drop-zone-bg: #758129;
|
|
3367
3410
|
}`
|
|
3368
3411
|
};
|
|
3369
|
-
let
|
|
3412
|
+
let K = B;
|
|
3370
3413
|
const P = class P {
|
|
3371
|
-
constructor(e = new
|
|
3414
|
+
constructor(e = new Q()) {
|
|
3372
3415
|
this.headerGroupOptions = e;
|
|
3373
3416
|
}
|
|
3374
3417
|
render(e, t, s, o, i, r, a) {
|
|
3375
3418
|
const l = r != null && r.data ? r.data : "";
|
|
3376
3419
|
if (r) {
|
|
3377
|
-
const { toggle: n, visibility: c, closed:
|
|
3378
|
-
this.addText(e, o, t, s, l,
|
|
3420
|
+
const { toggle: n, visibility: c, closed: p } = r, h = n ? P.toggleHeaderGroup : "";
|
|
3421
|
+
this.addText(e, o, t, s, l, h), n && c !== "always" && this.addArrowDiv(a, e, !p, t, s, o, h);
|
|
3379
3422
|
} else
|
|
3380
3423
|
this.addText(e, o, t, s, l, "");
|
|
3381
3424
|
}
|
|
@@ -3392,10 +3435,10 @@ const P = class P {
|
|
|
3392
3435
|
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
3436
|
let n;
|
|
3394
3437
|
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,
|
|
3438
|
+
const c = n.content, p = e.createText(c);
|
|
3439
|
+
e.appendChild(l, p), n.style && this.applyStyleString(e, l, n.style);
|
|
3440
|
+
for (const h of n.classes)
|
|
3441
|
+
e.addClass(l, h);
|
|
3399
3442
|
return e.appendChild(t, l), l;
|
|
3400
3443
|
}
|
|
3401
3444
|
applyStyleString(e, t, s) {
|
|
@@ -3407,8 +3450,8 @@ const P = class P {
|
|
|
3407
3450
|
}
|
|
3408
3451
|
};
|
|
3409
3452
|
P.toggleHeaderGroup = "toggleHeaderGroup";
|
|
3410
|
-
let
|
|
3411
|
-
const
|
|
3453
|
+
let Y = P;
|
|
3454
|
+
const $e = te({
|
|
3412
3455
|
inheritAttrs: !1,
|
|
3413
3456
|
props: {
|
|
3414
3457
|
tableModel: {
|
|
@@ -3417,7 +3460,7 @@ const Pe = ee({
|
|
|
3417
3460
|
},
|
|
3418
3461
|
tableOptions: {
|
|
3419
3462
|
required: !1,
|
|
3420
|
-
default: new
|
|
3463
|
+
default: new ee(),
|
|
3421
3464
|
type: Object
|
|
3422
3465
|
},
|
|
3423
3466
|
debounceMouseClickDelay: {
|
|
@@ -3441,8 +3484,8 @@ const Pe = ee({
|
|
|
3441
3484
|
"mouseDraggingEnd",
|
|
3442
3485
|
"mouseMoved"
|
|
3443
3486
|
],
|
|
3444
|
-
setup(
|
|
3445
|
-
const t =
|
|
3487
|
+
setup(d, { emit: e }) {
|
|
3488
|
+
const t = se(null), s = (o) => {
|
|
3446
3489
|
const i = {
|
|
3447
3490
|
onSelectionChanged: (a) => {
|
|
3448
3491
|
e("selectionChanged", a);
|
|
@@ -3473,34 +3516,34 @@ const Pe = ee({
|
|
|
3473
3516
|
}
|
|
3474
3517
|
}, r = new z(
|
|
3475
3518
|
o,
|
|
3476
|
-
|
|
3477
|
-
new
|
|
3478
|
-
|
|
3519
|
+
d.tableModel,
|
|
3520
|
+
new Z(),
|
|
3521
|
+
d.tableOptions,
|
|
3479
3522
|
i
|
|
3480
3523
|
);
|
|
3481
3524
|
r.firstInit(), e("tableReady", r.getApi());
|
|
3482
3525
|
};
|
|
3483
|
-
return
|
|
3526
|
+
return oe(() => {
|
|
3484
3527
|
t.value && s(t.value);
|
|
3485
|
-
}),
|
|
3528
|
+
}), d.licenseKey && k.getInstance().setLicenseKey(d.licenseKey), {
|
|
3486
3529
|
root: t
|
|
3487
3530
|
};
|
|
3488
3531
|
}
|
|
3489
|
-
}),
|
|
3490
|
-
const t =
|
|
3532
|
+
}), He = (d, e) => {
|
|
3533
|
+
const t = d.__vccOpts || d;
|
|
3491
3534
|
for (const [s, o] of e)
|
|
3492
3535
|
t[s] = o;
|
|
3493
3536
|
return t;
|
|
3494
|
-
},
|
|
3537
|
+
}, Ve = {
|
|
3495
3538
|
ref: "root",
|
|
3496
3539
|
class: "container-div",
|
|
3497
3540
|
style: { width: "100%", height: "100%", "background-color": "transparent", padding: "0", margin: "0" }
|
|
3498
3541
|
};
|
|
3499
|
-
function
|
|
3500
|
-
return
|
|
3542
|
+
function _e(d, e, t, s, o, i) {
|
|
3543
|
+
return re(), ie("div", Ve, null, 512);
|
|
3501
3544
|
}
|
|
3502
|
-
const
|
|
3503
|
-
class
|
|
3545
|
+
const Ge = /* @__PURE__ */ He($e, [["render", _e]]);
|
|
3546
|
+
class Ne {
|
|
3504
3547
|
constructor(e, t) {
|
|
3505
3548
|
this.component = e, this.appContext = t;
|
|
3506
3549
|
}
|
|
@@ -3520,19 +3563,19 @@ class Ge {
|
|
|
3520
3563
|
);
|
|
3521
3564
|
}
|
|
3522
3565
|
mount(e, t, s, o) {
|
|
3523
|
-
let i =
|
|
3566
|
+
let i = ae(e, t);
|
|
3524
3567
|
return i.appContext = s, U(i, o), () => {
|
|
3525
3568
|
o && U(null, o);
|
|
3526
3569
|
};
|
|
3527
3570
|
}
|
|
3528
3571
|
}
|
|
3529
|
-
const
|
|
3530
|
-
install: (
|
|
3531
|
-
|
|
3572
|
+
const Ue = {
|
|
3573
|
+
install: (d, e = { img: "" }) => {
|
|
3574
|
+
d.component("GuiexpertTable", Ge);
|
|
3532
3575
|
}
|
|
3533
3576
|
};
|
|
3534
3577
|
export {
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3578
|
+
Ne as ComponentRendererWrapper,
|
|
3579
|
+
Ge as GuiexpertTable,
|
|
3580
|
+
Ue as default
|
|
3538
3581
|
};
|