@guiexpert/vue3-table 3.1.83 → 3.1.84
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 +15 -248
- package/index.d.ts +3 -3
- package/index.js +671 -949
- package/lib/ComponentRendererWrapper.d.ts +1 -0
- package/lib/GuiexpertTable.vue.d.ts +8 -7
- package/lib/GuiexpertTablePlugin.d.ts +3 -2
- package/package.json +8 -4
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
function
|
|
1
|
+
import { defineComponent as J, ref as Z, onMounted as Q, openBlock as ee, createElementBlock as te, createVNode as se, render as U } from "vue";
|
|
2
|
+
function ie(d, e = 500) {
|
|
3
3
|
let t = null;
|
|
4
4
|
return function(...s) {
|
|
5
5
|
t && window.clearTimeout(t), t = window.setTimeout(() => {
|
|
@@ -32,18 +32,18 @@ class I {
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
|
-
function
|
|
35
|
+
function B(d) {
|
|
36
36
|
return d && d.type === "TreeRow";
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function P(d) {
|
|
39
39
|
return d && d.type === "AreaModelTree";
|
|
40
40
|
}
|
|
41
|
-
class
|
|
42
|
-
constructor(e = -1, t = -1, s = -1,
|
|
43
|
-
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft =
|
|
41
|
+
class W {
|
|
42
|
+
constructor(e = -1, t = -1, s = -1, i = -1, o, r, l, a = 0, n = 0, c = 0, p = "") {
|
|
43
|
+
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = i, this.areaIdent = o, this.sideIdent = r, this.originalEvent = l, this.clickCount = a, this.draggingX = n, this.draggingY = c, this.action = p;
|
|
44
44
|
}
|
|
45
45
|
clone() {
|
|
46
|
-
return new
|
|
46
|
+
return new W(
|
|
47
47
|
this.rowIndex,
|
|
48
48
|
this.rowTop,
|
|
49
49
|
this.columnIndex,
|
|
@@ -63,7 +63,7 @@ class F {
|
|
|
63
63
|
this.content = e, this.style = t, this.classes = s;
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
class
|
|
66
|
+
class z {
|
|
67
67
|
constructor(e = new F(
|
|
68
68
|
">",
|
|
69
69
|
"transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
|
|
@@ -76,20 +76,20 @@ class J {
|
|
|
76
76
|
">",
|
|
77
77
|
"color:transparent;",
|
|
78
78
|
["gt-table-tree-arrow-hidden"]
|
|
79
|
-
),
|
|
79
|
+
), i = new F(
|
|
80
80
|
"↕",
|
|
81
81
|
"",
|
|
82
82
|
["gt-table-tree-arrow-expanded-all"]
|
|
83
83
|
)) {
|
|
84
|
-
this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll =
|
|
84
|
+
this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = i;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
class
|
|
87
|
+
class K {
|
|
88
88
|
constructor(e = new F("↑", "", ["ge-header-sorted-asc"]), t = new F("↓", "", ["ge-header-sorted-desc"]), s = new F("↑", "color:transparent;", [])) {
|
|
89
89
|
this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
class
|
|
92
|
+
class oe {
|
|
93
93
|
constructor(e) {
|
|
94
94
|
this.domService = e;
|
|
95
95
|
}
|
|
@@ -108,7 +108,7 @@ class ce {
|
|
|
108
108
|
return this.domService.setStyle(e, "display", "block"), e;
|
|
109
109
|
}
|
|
110
110
|
applyStyleInPx(e, t) {
|
|
111
|
-
return Object.entries(t).forEach(([s,
|
|
111
|
+
return Object.entries(t).forEach(([s, i]) => this.domService.setStyle(e, s, i + "px")), e;
|
|
112
112
|
}
|
|
113
113
|
applyStylePosistionRelative(e) {
|
|
114
114
|
return this.domService.setStyle(e, "position", "relative"), this.domService.setStyle(e, "overflow", "clip"), e;
|
|
@@ -154,116 +154,116 @@ class ce {
|
|
|
154
154
|
setAttribute(e, t, s) {
|
|
155
155
|
return t && s && this.domService.setAttribute(e, t, s), e;
|
|
156
156
|
}
|
|
157
|
-
createAreaDivWithClass(e, t, s,
|
|
158
|
-
const
|
|
159
|
-
return this.addClass(e,
|
|
157
|
+
createAreaDivWithClass(e, t, s, i) {
|
|
158
|
+
const o = this.domService.createElement("div");
|
|
159
|
+
return this.addClass(e, o), this.domService.setAttribute(o, "data-area", s), this.domService.setAttribute(o, "data-side", i), this.domService.appendChild(t, o), o;
|
|
160
160
|
}
|
|
161
161
|
createDivWithClass(e, t) {
|
|
162
162
|
const s = this.domService.createElement("div");
|
|
163
163
|
return this.addClass(e, s), this.domService.appendChild(t, s), s;
|
|
164
164
|
}
|
|
165
|
-
addRowDiv(e, t, s = -1,
|
|
166
|
-
const
|
|
167
|
-
if (this.domService.addClass(
|
|
165
|
+
addRowDiv(e, t, s = -1, i, o, r = "") {
|
|
166
|
+
const l = t.index ?? -1, a = this.getDivOrCreateDiv(l, e);
|
|
167
|
+
if (this.domService.addClass(a, "ge-table-row-div"), this.domService.addClass(a, `ge-table-row-div-${t.index}`), i === "body" && o === "center") {
|
|
168
168
|
const n = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
169
|
-
this.domService.addClass(
|
|
169
|
+
this.domService.addClass(a, `ge-table-row-${n}`);
|
|
170
170
|
}
|
|
171
|
-
if (this.domService.setStyle(
|
|
171
|
+
if (this.domService.setStyle(a, "display", "clip"), this.domService.setStyle(a, "position", "absolute"), this.domService.setStyle(a, "left", `${t.left}px`), this.domService.setStyle(a, "top", `${t.top}px`), this.domService.setStyle(a, "width", `${t.width}px`), this.domService.setStyle(a, "height", `${t.height}px`), this.domService.setAttribute(a, "data-row-index", `${s}`), this.domService.setAttribute(a, "data-area", `${i}`), r) {
|
|
172
172
|
const n = this.domService.createText(r);
|
|
173
|
-
this.domService.appendChild(
|
|
173
|
+
this.domService.appendChild(a, n);
|
|
174
174
|
}
|
|
175
|
-
return this.domService.appendChild(e.child,
|
|
175
|
+
return this.domService.appendChild(e.child, a), a;
|
|
176
176
|
}
|
|
177
177
|
addColumnDiv(e) {
|
|
178
|
-
const { parent: t, geo: s, rowIndex:
|
|
179
|
-
this.domService.addClass(
|
|
180
|
-
const
|
|
181
|
-
if (r === "body" &&
|
|
182
|
-
const
|
|
183
|
-
this.addLabelDiv(
|
|
178
|
+
const { parent: t, geo: s, rowIndex: i = -1, columnIndex: o = -1, areaIdent: r, sideIdent: l, text: a = "", treeArrow: n, tableOptions: c, checkedType: p = void 0, sortState: h } = e, g = c == null ? void 0 : c.treeOptions, u = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, S = this.domService.createElement("div");
|
|
179
|
+
this.domService.addClass(S, "ge-table-col-div"), u && this.domService.addClass(S, "ge-with-checkbox"), this.domService.addClass(S, `ge-table-col-div-${s.index}`), this.domService.setAttribute(S, "data-col-index", `${s.index}`), this.domService.setAttribute(S, "data-row-index", `${i}`), this.domService.setAttribute(S, "data-area", `${r}`);
|
|
180
|
+
const f = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
181
|
+
if (r === "body" && l === "center" && this.domService.addClass(S, `ge-table-column-${f}`), this.domService.setStyle(S, "display", "clip"), this.domService.setStyle(S, "position", "absolute"), this.domService.setStyle(S, "left", `${s.left}px`), this.domService.setStyle(S, "top", `${s.top}px`), this.domService.setStyle(S, "width", `${s.width}px`), this.domService.setStyle(S, "height", `${s.height}px`), n && n !== "none" && (this.domService.addClass(S, "ge-table-col-tree"), this.addArrowDiv(S, n, g, i, o, r)), u && o === 0 && p && this.addCheckboxToDiv(S, p, r, i), a) {
|
|
182
|
+
const m = n !== "none" && o === 0;
|
|
183
|
+
this.addLabelDiv(S, a, m, i, o, r);
|
|
184
184
|
}
|
|
185
|
-
return h && this.addSortedIcon(
|
|
185
|
+
return h && this.addSortedIcon(S, h, c == null ? void 0 : c.sortedOptions, o), this.domService.appendChild(t, S), S;
|
|
186
186
|
}
|
|
187
|
-
addCheckboxToDiv(e, t, s,
|
|
188
|
-
const
|
|
189
|
-
return
|
|
187
|
+
addCheckboxToDiv(e, t, s, i) {
|
|
188
|
+
const o = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
|
|
189
|
+
return o.innerHTML = `
|
|
190
190
|
<input
|
|
191
191
|
type="checkbox"
|
|
192
192
|
data-area="${s}"
|
|
193
|
-
data-row-index="${
|
|
193
|
+
data-row-index="${i}"
|
|
194
194
|
data-input-type="checkbox"
|
|
195
195
|
${r}
|
|
196
|
-
class="ge-table-row-checkbox"> `, this.domService.setStyle(
|
|
196
|
+
class="ge-table-row-checkbox"> `, this.domService.setStyle(o, "display", "inline"), this.domService.setStyle(o, "width", "inherit"), this.domService.setAttribute(o, "data-row-index", `${i}`), this.domService.appendChild(e, o), o;
|
|
197
197
|
}
|
|
198
|
-
addLabelDiv(e, t = "", s = !1,
|
|
199
|
-
const
|
|
200
|
-
if (this.domService.addClass(
|
|
198
|
+
addLabelDiv(e, t = "", s = !1, i = -1, o = -1, r = "body") {
|
|
199
|
+
const l = this.domService.createElement("div");
|
|
200
|
+
if (this.domService.addClass(l, "ge-table-label-div"), this.domService.setStyle(l, "position", "relative"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "width", "100%"), this.domService.setStyle(l, "height", "100%"), this.domService.setAttribute(l, "data-row-index", `${i}`), this.domService.setAttribute(l, "data-col-index", `${o}`), this.domService.setAttribute(l, "data-area", `${r}`), t)
|
|
201
201
|
if (s) {
|
|
202
|
-
const
|
|
203
|
-
this.domService.appendChild(
|
|
202
|
+
const a = this.domService.createText(t);
|
|
203
|
+
this.domService.appendChild(l, a);
|
|
204
204
|
} else {
|
|
205
|
-
const
|
|
206
|
-
this.domService.appendChild(
|
|
205
|
+
const a = this.domService.createElement("div");
|
|
206
|
+
this.domService.appendChild(l, a);
|
|
207
207
|
const n = this.domService.createText(t);
|
|
208
|
-
this.domService.addClass(
|
|
208
|
+
this.domService.addClass(a, "ge-table-label"), this.domService.appendChild(a, n), this.domService.setAttribute(a, "data-row-index", `${i}`), this.domService.setAttribute(a, "data-col-index", `${o}`), this.domService.setAttribute(a, "data-area", `${r}`);
|
|
209
209
|
}
|
|
210
|
-
return this.domService.appendChild(e,
|
|
210
|
+
return this.domService.appendChild(e, l), l;
|
|
211
211
|
}
|
|
212
|
-
addSortedIcon(e, t = "", s = new
|
|
213
|
-
const
|
|
214
|
-
this.domService.addClass(
|
|
212
|
+
addSortedIcon(e, t = "", s = new K(), i = -1) {
|
|
213
|
+
const o = this.domService.createElement("div");
|
|
214
|
+
this.domService.addClass(o, "ge-table-sorted-icon-div"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "top", "0"), this.domService.setStyle(o, "right", "0"), this.domService.setStyle(o, "width", "20px"), this.domService.setStyle(o, "background", "transparent"), this.domService.setStyle(o, "cursor", "pointer"), this.domService.setAttribute(o, "data-col-index", `${i}`), this.domService.setAttribute(o, "data-area", "header");
|
|
215
215
|
let r;
|
|
216
216
|
t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
|
|
217
|
-
const
|
|
218
|
-
this.domService.appendChild(
|
|
217
|
+
const l = r.content, a = this.domService.createText(l);
|
|
218
|
+
this.domService.appendChild(o, a), r.style && this.applyStyleString(o, r.style);
|
|
219
219
|
for (const n of r.classes)
|
|
220
|
-
this.domService.addClass(
|
|
221
|
-
return this.domService.appendChild(e,
|
|
222
|
-
}
|
|
223
|
-
addArrowDiv(e, t = "none", s = new
|
|
224
|
-
const
|
|
225
|
-
this.domService.addClass(
|
|
226
|
-
let
|
|
227
|
-
t === "expanded" ?
|
|
228
|
-
const n =
|
|
229
|
-
this.domService.appendChild(
|
|
230
|
-
for (const p of
|
|
231
|
-
this.domService.addClass(
|
|
232
|
-
return this.domService.appendChild(e,
|
|
233
|
-
}
|
|
234
|
-
addColumnBorderDivs(e, t, s,
|
|
220
|
+
this.domService.addClass(o, n);
|
|
221
|
+
return this.domService.appendChild(e, o), o;
|
|
222
|
+
}
|
|
223
|
+
addArrowDiv(e, t = "none", s = new z(), i = -1, o = -1, r = "body") {
|
|
224
|
+
const l = this.domService.createElement("div");
|
|
225
|
+
this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${i}`), this.domService.setAttribute(l, "data-col-index", `${o}`), this.domService.setAttribute(l, "data-area", `${r}`);
|
|
226
|
+
let a;
|
|
227
|
+
t === "expanded" ? a = s.arrowExpanded : t === "collapsed" ? a = s.arrowCollapsed : a = s.arrowPlaceholder;
|
|
228
|
+
const n = a.content, c = this.domService.createText(n);
|
|
229
|
+
this.domService.appendChild(l, c), a.style && this.applyStyleString(l, a.style);
|
|
230
|
+
for (const p of a.classes)
|
|
231
|
+
this.domService.addClass(l, p);
|
|
232
|
+
return this.domService.appendChild(e, l), l;
|
|
233
|
+
}
|
|
234
|
+
addColumnBorderDivs(e, t, s, i, o) {
|
|
235
235
|
if (e.verticalBorderVisible) {
|
|
236
|
-
const r = `ge-table-${
|
|
236
|
+
const r = `ge-table-${i}-${o}-vertical-border`;
|
|
237
237
|
this.addVerticalBorder(s, t, r);
|
|
238
238
|
}
|
|
239
239
|
if (e.horizontalBorderVisible) {
|
|
240
|
-
const r = `ge-table-${
|
|
240
|
+
const r = `ge-table-${i}-${o}-horizontal-border`;
|
|
241
241
|
this.addHorizontalBorder(s, t, r);
|
|
242
242
|
}
|
|
243
243
|
return t;
|
|
244
244
|
}
|
|
245
245
|
addHorizontalBorder(e, t, s = "ge-table-body-center-horizontal-border") {
|
|
246
|
-
const
|
|
247
|
-
return this.domService.addClass(
|
|
246
|
+
const i = this.domService.createElement("div");
|
|
247
|
+
return this.domService.addClass(i, s), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${e.left}px`), this.domService.setStyle(i, "top", `${e.top}px`), this.domService.setStyle(i, "width", `${e.width}px`), this.domService.setStyle(i, "height", "1px"), this.domService.appendChild(t, i), i;
|
|
248
248
|
}
|
|
249
249
|
addFocusBorderDivs(e, t, s) {
|
|
250
250
|
t = { ...t, width: t.width + 1, height: t.height + 1 };
|
|
251
|
-
let
|
|
252
|
-
return this.domService.addClass(
|
|
251
|
+
let i = this.domService.createElement("div");
|
|
252
|
+
return this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", "1px"), this.domService.setStyle(i, "height", `${t.height}px`), this.domService.setStyle(i, "z-index", "9999"), this.applyStyle(i, s), this.domService.appendChild(e, i), i = this.domService.createElement("div"), this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", "1px"), this.domService.setStyle(i, "height", `${t.height}px`), this.domService.setStyle(i, "z-index", "9999"), this.applyStyle(i, s), this.domService.appendChild(e, i), i = this.domService.createElement("div"), this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", `${t.width}px`), this.domService.setStyle(i, "height", "1px"), this.domService.setStyle(i, "z-index", "9999"), this.applyStyle(i, s), this.domService.appendChild(e, i), i = this.domService.createElement("div"), this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(i, "width", `${t.width}px`), this.domService.setStyle(i, "height", "1px"), this.domService.setStyle(i, "z-index", "9999"), this.applyStyle(i, s), this.domService.appendChild(e, i), e;
|
|
253
253
|
}
|
|
254
254
|
addVerticalBorder(e, t, s = "ge-table-body-center-vertical-border") {
|
|
255
|
-
const
|
|
256
|
-
return this.domService.addClass(
|
|
255
|
+
const i = this.domService.createElement("div");
|
|
256
|
+
return this.domService.addClass(i, s), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${e.left}px`), this.domService.setStyle(i, "top", `${e.top}px`), this.domService.setStyle(i, "width", "1px"), this.domService.setStyle(i, "height", `${e.height}px`), this.domService.appendChild(t, i), i;
|
|
257
257
|
}
|
|
258
258
|
addDiv(e, t, s = "") {
|
|
259
|
-
const
|
|
260
|
-
return s && this.domService.addClass(
|
|
259
|
+
const i = this.domService.createElement("div");
|
|
260
|
+
return s && this.domService.addClass(i, s), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", `${t.width}px`), this.domService.setStyle(i, "height", `${t.height}px`), this.domService.appendChild(e, i), i;
|
|
261
261
|
}
|
|
262
262
|
applyStyleString(e, t) {
|
|
263
|
-
const s = t.split(";").map((
|
|
264
|
-
for (const
|
|
265
|
-
const [
|
|
266
|
-
this.domService.setStyle(e,
|
|
263
|
+
const s = t.split(";").map((i) => i.trim()).filter((i) => i);
|
|
264
|
+
for (const i of s) {
|
|
265
|
+
const [o, r] = i.split(":");
|
|
266
|
+
this.domService.setStyle(e, o.trim(), r.trim());
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
getDivOrCreateDiv(e, t) {
|
|
@@ -271,20 +271,20 @@ class ce {
|
|
|
271
271
|
return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
|
-
const
|
|
275
|
-
class
|
|
274
|
+
const H = (d) => d === "header" ? "header" : d === "footer" ? "footer" : "body";
|
|
275
|
+
class re {
|
|
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"));
|
|
279
279
|
const s = e.getAttribute("data-area");
|
|
280
|
-
if (s && (this.areaIdent =
|
|
281
|
-
const
|
|
282
|
-
this.value =
|
|
280
|
+
if (s && (this.areaIdent = H(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
|
|
281
|
+
const i = e;
|
|
282
|
+
this.value = i.value;
|
|
283
283
|
}
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
|
-
class
|
|
287
|
+
class le {
|
|
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))
|
|
@@ -316,24 +316,24 @@ class he {
|
|
|
316
316
|
return;
|
|
317
317
|
}
|
|
318
318
|
this.lastClicked = t;
|
|
319
|
-
const s = new
|
|
319
|
+
const s = new re(e.target, this.tableScope);
|
|
320
320
|
if (s.action === "toggleExpandCollapseAll")
|
|
321
321
|
this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
|
|
322
322
|
else if (s.action === "toggleHeaderGroup")
|
|
323
323
|
this.tableScope.toggleHeaderGroup(s), e.preventDefault(), e.stopPropagation();
|
|
324
324
|
else if (s.inputType === "checkbox" && s.areaIdent)
|
|
325
325
|
this.tableScope.toggleRowCheckbox(s.rowIdx, s.colIdx, s.areaIdent), e.preventDefault(), e.stopPropagation();
|
|
326
|
-
else if (
|
|
327
|
-
const
|
|
328
|
-
if (
|
|
326
|
+
else if (B(s.row) && s.areaModel) {
|
|
327
|
+
const i = s.colIdx === this.getArrowColumnIndex() && e.altKey, o = s.className.includes("ge-table-tree-arrow-div");
|
|
328
|
+
if (i || o) {
|
|
329
329
|
e.preventDefault(), e.stopPropagation();
|
|
330
330
|
const r = s.row;
|
|
331
331
|
r.expanded = !r.expanded, "recalcVisibleTreeRows" in s.areaModel && s.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(r);
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
if (s.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
|
|
335
|
-
const
|
|
336
|
-
|
|
335
|
+
const i = this.tableScope.tableOptions.getFocusModel();
|
|
336
|
+
i == null || i.clear(), i == null || i.setFocus(s.rowIdx, s.colIdx);
|
|
337
337
|
}
|
|
338
338
|
this.publishGeMouseEvent(e, 1);
|
|
339
339
|
}
|
|
@@ -345,15 +345,15 @@ class he {
|
|
|
345
345
|
*/
|
|
346
346
|
onHostElementDblClicked(e) {
|
|
347
347
|
if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
|
|
348
|
-
const t = e.target, s = t.getAttribute("data-area"),
|
|
349
|
-
if (s &&
|
|
350
|
-
this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e,
|
|
348
|
+
const t = e.target, s = t.getAttribute("data-area"), i = H(s), o = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(i);
|
|
349
|
+
if (s && i === "header")
|
|
350
|
+
this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, o, r));
|
|
351
351
|
else if (t.getAttribute("data-row-index")) {
|
|
352
|
-
const
|
|
353
|
-
if (s &&
|
|
352
|
+
const a = l.getRowByIndex(o);
|
|
353
|
+
if (s && i === "body" && l.isEditable(o, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(o, r)), B(a) && r === this.getArrowColumnIndex()) {
|
|
354
354
|
e.preventDefault(), e.stopPropagation();
|
|
355
|
-
const n =
|
|
356
|
-
n.expanded = !n.expanded, "recalcVisibleTreeRows" in
|
|
355
|
+
const n = a;
|
|
356
|
+
n.expanded = !n.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(n);
|
|
357
357
|
}
|
|
358
358
|
}
|
|
359
359
|
}
|
|
@@ -378,11 +378,11 @@ class he {
|
|
|
378
378
|
* @returns {void}
|
|
379
379
|
*/
|
|
380
380
|
updateCollapsedExpandedState(e) {
|
|
381
|
-
var s,
|
|
382
|
-
const t = (
|
|
381
|
+
var s, i, o, r, l;
|
|
382
|
+
const t = (i = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : i.getRowId;
|
|
383
383
|
if (t) {
|
|
384
|
-
const
|
|
385
|
-
n ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(p) : c && ((
|
|
384
|
+
const a = (o = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : o.collapsedExpandedStateGet().mode, n = a === "collapsed" && !e.expanded || a === "expanded" && e.expanded, c = a === "collapsed" && e.expanded || a === "expanded" && !e.expanded, p = t(e.data);
|
|
385
|
+
n ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(p) : c && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(p));
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
getArrowColumnIndex() {
|
|
@@ -418,9 +418,9 @@ class he {
|
|
|
418
418
|
}
|
|
419
419
|
}
|
|
420
420
|
}
|
|
421
|
-
class
|
|
421
|
+
class ae {
|
|
422
422
|
constructor(e, t = [], s = -1) {
|
|
423
|
-
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((
|
|
423
|
+
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((i) => i.rendererMap[e]);
|
|
424
424
|
}
|
|
425
425
|
getTextValueAt(e, t) {
|
|
426
426
|
return "" + this.getValueAt(e, t);
|
|
@@ -480,16 +480,16 @@ class pe {
|
|
|
480
480
|
sort(e) {
|
|
481
481
|
}
|
|
482
482
|
isEditable(e, t) {
|
|
483
|
-
var
|
|
484
|
-
const s = (
|
|
485
|
-
return ((
|
|
483
|
+
var i, o;
|
|
484
|
+
const s = (i = this.columnDefs) == null ? void 0 : i[t];
|
|
485
|
+
return ((o = s == null ? void 0 : s.editable) == null ? void 0 : o.call(s)) ?? !1;
|
|
486
486
|
}
|
|
487
487
|
setValue(e, t, s) {
|
|
488
|
-
var
|
|
489
|
-
const
|
|
490
|
-
|
|
491
|
-
const
|
|
492
|
-
return r.includes(".") ? this.setPropertyValue(
|
|
488
|
+
var l;
|
|
489
|
+
const i = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
|
|
490
|
+
i && (s = i(s, e, t));
|
|
491
|
+
const o = this.getRowByIndex(e), r = this.columnDefs[t].property;
|
|
492
|
+
return r.includes(".") ? this.setPropertyValue(o, r.split("."), s) : (o[r] = s, !0);
|
|
493
493
|
}
|
|
494
494
|
isSelectable(e, t) {
|
|
495
495
|
return !0;
|
|
@@ -498,16 +498,16 @@ class pe {
|
|
|
498
498
|
this.arrayMove(this.cellRenderers, e, t);
|
|
499
499
|
}
|
|
500
500
|
setPropertyValue(e, t, s) {
|
|
501
|
-
const
|
|
502
|
-
if (
|
|
503
|
-
const
|
|
504
|
-
return
|
|
501
|
+
const i = t.shift();
|
|
502
|
+
if (i) {
|
|
503
|
+
const o = e[i];
|
|
504
|
+
return o && t.length ? this.setPropertyValue(o, t, s) : (e[i] = s, !0);
|
|
505
505
|
}
|
|
506
506
|
return !1;
|
|
507
507
|
}
|
|
508
508
|
arrayMove(e, t, s) {
|
|
509
|
-
const
|
|
510
|
-
return e.splice(s, 0,
|
|
509
|
+
const i = e.splice(t, 1)[0];
|
|
510
|
+
return e.splice(s, 0, i), e;
|
|
511
511
|
}
|
|
512
512
|
calcYPositions() {
|
|
513
513
|
const e = this.getRowCount();
|
|
@@ -516,7 +516,7 @@ class pe {
|
|
|
516
516
|
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
517
517
|
}
|
|
518
518
|
}
|
|
519
|
-
class
|
|
519
|
+
class ne {
|
|
520
520
|
genericSortComparator(e, t, s) {
|
|
521
521
|
if (typeof e == "number" && typeof t == "number")
|
|
522
522
|
return s * (e - t);
|
|
@@ -527,14 +527,14 @@ class ge {
|
|
|
527
527
|
if (e instanceof Date && t instanceof Date)
|
|
528
528
|
return s * (e.getTime() - t.getTime());
|
|
529
529
|
if (e instanceof Array && t instanceof Array) {
|
|
530
|
-
const
|
|
531
|
-
if (
|
|
532
|
-
return this.genericSortComparator(
|
|
530
|
+
const i = e, o = t;
|
|
531
|
+
if (i.length && o.length)
|
|
532
|
+
return this.genericSortComparator(i[0], o[0], s);
|
|
533
533
|
}
|
|
534
534
|
return s * ("" + e).localeCompare("" + t);
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
|
-
class D extends
|
|
537
|
+
class D extends ae {
|
|
538
538
|
/**
|
|
539
539
|
* Creates an instance of AreaModelObjectArray.
|
|
540
540
|
*
|
|
@@ -564,8 +564,8 @@ class D extends pe {
|
|
|
564
564
|
* columnDefs
|
|
565
565
|
* );
|
|
566
566
|
*/
|
|
567
|
-
constructor(e, t, s,
|
|
568
|
-
super(e,
|
|
567
|
+
constructor(e, t, s, i = [], o = "ge-selected-row", r = "ge-focused-row") {
|
|
568
|
+
super(e, i, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = i, this.selectedRowClass = o, this.focusedRowClass = r, this.sorterService = new ne(), this._focusedRowIndex = 0, this.filteredRows = [...t], this.properties = i.map((l) => l.property);
|
|
569
569
|
}
|
|
570
570
|
/**
|
|
571
571
|
* Gets the index of the currently focused row.
|
|
@@ -659,8 +659,8 @@ class D extends pe {
|
|
|
659
659
|
*/
|
|
660
660
|
getValueAt(e, t) {
|
|
661
661
|
const s = this.properties[t];
|
|
662
|
-
let
|
|
663
|
-
return
|
|
662
|
+
let i = this.filteredRows[e];
|
|
663
|
+
return B(i) && (i = i.data), i ? this.getValueByT(i, s) : "";
|
|
664
664
|
}
|
|
665
665
|
/**
|
|
666
666
|
* Retrieves the filtered and sorted rows from the dataset.
|
|
@@ -837,8 +837,8 @@ class D extends pe {
|
|
|
837
837
|
*/
|
|
838
838
|
doSort(e) {
|
|
839
839
|
for (const t of e) {
|
|
840
|
-
const { columnIndex: s, sortState:
|
|
841
|
-
this.filteredRows = this.filteredRows.sort(this.genericFlatTableSortComparator(r,
|
|
840
|
+
const { columnIndex: s, sortState: i } = t, o = i === "asc" ? 1 : i === "desc" ? -1 : 0, r = this.properties[s];
|
|
841
|
+
this.filteredRows = this.filteredRows.sort(this.genericFlatTableSortComparator(r, o));
|
|
842
842
|
}
|
|
843
843
|
return !0;
|
|
844
844
|
}
|
|
@@ -947,10 +947,10 @@ class D extends pe {
|
|
|
947
947
|
* const sortedRows = [...bodyAreaModel.getFilteredRows()].sort(comparator);
|
|
948
948
|
*/
|
|
949
949
|
genericFlatTableSortComparator(e, t) {
|
|
950
|
-
const s = this.columnDefs.find((
|
|
951
|
-
return (
|
|
952
|
-
const r = this.getValueByT(
|
|
953
|
-
return s != null && s.sortComparator ? t * s.sortComparator(r,
|
|
950
|
+
const s = this.columnDefs.find((i) => i.property === e);
|
|
951
|
+
return (i, o) => {
|
|
952
|
+
const r = this.getValueByT(i, e), l = this.getValueByT(o, e);
|
|
953
|
+
return s != null && s.sortComparator ? t * s.sortComparator(r, l, i, o, t) : this.sorterService.genericSortComparator(r, l, t);
|
|
954
954
|
};
|
|
955
955
|
}
|
|
956
956
|
/**
|
|
@@ -964,11 +964,11 @@ class D extends pe {
|
|
|
964
964
|
* @private
|
|
965
965
|
*/
|
|
966
966
|
getPropertyValue(e, t) {
|
|
967
|
-
const s = t.shift(),
|
|
968
|
-
return
|
|
967
|
+
const s = t.shift(), i = e[s];
|
|
968
|
+
return i && t.length ? this.getPropertyValue(i, t) : i;
|
|
969
969
|
}
|
|
970
970
|
}
|
|
971
|
-
class
|
|
971
|
+
class ce {
|
|
972
972
|
constructor(e) {
|
|
973
973
|
this.tableScope = e;
|
|
974
974
|
}
|
|
@@ -1584,14 +1584,14 @@ class ue {
|
|
|
1584
1584
|
* tableApi.downloadExcel('quarterly-data.xlsx');
|
|
1585
1585
|
*/
|
|
1586
1586
|
downloadExcel(e = "table.xlsx", t = "") {
|
|
1587
|
-
const s = [],
|
|
1588
|
-
for (const r of
|
|
1589
|
-
const
|
|
1590
|
-
for (let n = 0; n <
|
|
1587
|
+
const s = [], i = this.tableScope.tableModel.getColumnCount(), o = ["header", "body", "footer"];
|
|
1588
|
+
for (const r of o) {
|
|
1589
|
+
const l = this.tableScope.tableModel.getAreaModel(r), a = (l == null ? void 0 : l.getRowCount()) ?? 0;
|
|
1590
|
+
for (let n = 0; n < a; n++) {
|
|
1591
1591
|
const c = [];
|
|
1592
1592
|
s.push(c);
|
|
1593
|
-
for (let p = 0; p <
|
|
1594
|
-
c.push(
|
|
1593
|
+
for (let p = 0; p < i; p++)
|
|
1594
|
+
c.push(l.getValueAt(n, p));
|
|
1595
1595
|
}
|
|
1596
1596
|
}
|
|
1597
1597
|
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
@@ -1749,8 +1749,8 @@ class ue {
|
|
|
1749
1749
|
const t = this.getBodyModel();
|
|
1750
1750
|
if (t instanceof D) {
|
|
1751
1751
|
const s = t;
|
|
1752
|
-
let
|
|
1753
|
-
s.setRows([...
|
|
1752
|
+
let i = s.getAllRows();
|
|
1753
|
+
s.setRows([...i, ...e]);
|
|
1754
1754
|
} else
|
|
1755
1755
|
console.warn("addRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
|
|
1756
1756
|
}
|
|
@@ -1773,9 +1773,9 @@ class ue {
|
|
|
1773
1773
|
addRowsAt(e, t) {
|
|
1774
1774
|
const s = this.getBodyModel();
|
|
1775
1775
|
if (s instanceof D) {
|
|
1776
|
-
const
|
|
1777
|
-
let
|
|
1778
|
-
|
|
1776
|
+
const i = s;
|
|
1777
|
+
let o = i.getAllRows();
|
|
1778
|
+
i.setRows([...o.slice(0, t), ...e, ...o.slice(t)]);
|
|
1779
1779
|
} else
|
|
1780
1780
|
console.warn("addRowsAt<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1781
1781
|
}
|
|
@@ -1796,11 +1796,11 @@ class ue {
|
|
|
1796
1796
|
*
|
|
1797
1797
|
* @throws {Warning} Logs a console warning if the table's body model is not an AreaModelObjectArray
|
|
1798
1798
|
*/
|
|
1799
|
-
removeRows(e, t = (s,
|
|
1799
|
+
removeRows(e, t = (s, i) => s === i) {
|
|
1800
1800
|
const s = this.getBodyModel();
|
|
1801
1801
|
if (s instanceof D) {
|
|
1802
|
-
const
|
|
1803
|
-
|
|
1802
|
+
const i = s, o = i.getAllRows().filter((r) => !e.some((l) => t(r, l)));
|
|
1803
|
+
i.setRows(o);
|
|
1804
1804
|
} else
|
|
1805
1805
|
console.warn("removeRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1806
1806
|
}
|
|
@@ -1837,9 +1837,9 @@ class ue {
|
|
|
1837
1837
|
*
|
|
1838
1838
|
* @throws {Warning} Logs a console warning if the table's body model is not an AreaModelObjectArray
|
|
1839
1839
|
*/
|
|
1840
|
-
findRows(e, t = (s,
|
|
1840
|
+
findRows(e, t = (s, i) => s === i) {
|
|
1841
1841
|
const s = this.getBodyModel();
|
|
1842
|
-
return s instanceof D ? s.getAllRows().filter((
|
|
1842
|
+
return s instanceof D ? s.getAllRows().filter((o) => e.some((r) => t(o, r))) : (console.warn("findRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s), []);
|
|
1843
1843
|
}
|
|
1844
1844
|
/**
|
|
1845
1845
|
* Searches through the filtered rows of the table to find a row that matches specific criteria.
|
|
@@ -1897,7 +1897,7 @@ class ue {
|
|
|
1897
1897
|
findRowFromFilteredRowsByAllCriteria(e, t) {
|
|
1898
1898
|
const s = this.getBodyModel();
|
|
1899
1899
|
if (s instanceof D)
|
|
1900
|
-
return s.getFilteredRows().find((
|
|
1900
|
+
return s.getFilteredRows().find((o) => t(e, o));
|
|
1901
1901
|
console.warn("findRowFromFilteredRowsByAllCriteria(...) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1902
1902
|
}
|
|
1903
1903
|
/**
|
|
@@ -1944,7 +1944,7 @@ class ue {
|
|
|
1944
1944
|
findRowFromAllRowsByAllCriteria(e, t) {
|
|
1945
1945
|
const s = this.getBodyModel();
|
|
1946
1946
|
if (s instanceof D)
|
|
1947
|
-
return s.getAllRows().find((
|
|
1947
|
+
return s.getAllRows().find((o) => t(e, o));
|
|
1948
1948
|
console.warn("findRowFromAllRowsByAllCriteria(...) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1949
1949
|
}
|
|
1950
1950
|
/**
|
|
@@ -1966,15 +1966,15 @@ class ue {
|
|
|
1966
1966
|
*
|
|
1967
1967
|
* @throws {Warning} Logs a console warning if the table's body model is not an AreaModelObjectArray
|
|
1968
1968
|
*/
|
|
1969
|
-
updateRows(e, t = (s,
|
|
1969
|
+
updateRows(e, t = (s, i) => s === i) {
|
|
1970
1970
|
const s = this.getBodyModel();
|
|
1971
1971
|
if (s instanceof D) {
|
|
1972
|
-
let
|
|
1973
|
-
for (const r of
|
|
1974
|
-
for (const
|
|
1975
|
-
if (t(r,
|
|
1976
|
-
for (const
|
|
1977
|
-
r[
|
|
1972
|
+
let o = s.getAllRows();
|
|
1973
|
+
for (const r of o)
|
|
1974
|
+
for (const l of e)
|
|
1975
|
+
if (t(r, l))
|
|
1976
|
+
for (const a of Object.keys(l))
|
|
1977
|
+
r[a] = l[a];
|
|
1978
1978
|
} else
|
|
1979
1979
|
console.warn("updateRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1980
1980
|
}
|
|
@@ -2316,27 +2316,27 @@ class ue {
|
|
|
2316
2316
|
return this.tableScope.loggingActive;
|
|
2317
2317
|
}
|
|
2318
2318
|
}
|
|
2319
|
-
class
|
|
2319
|
+
class $ {
|
|
2320
2320
|
constructor(e) {
|
|
2321
2321
|
this.getStorageKeyFn = e;
|
|
2322
2322
|
}
|
|
2323
2323
|
autoConvertMapToObject(e) {
|
|
2324
2324
|
const t = {};
|
|
2325
|
-
return e instanceof Map && e.forEach((
|
|
2326
|
-
t[
|
|
2325
|
+
return e instanceof Map && e.forEach((i, o) => {
|
|
2326
|
+
t[i] = o;
|
|
2327
2327
|
}), t;
|
|
2328
2328
|
}
|
|
2329
2329
|
checkAndPersistItem(e, t) {
|
|
2330
2330
|
const s = this.getStorageKeyFn;
|
|
2331
2331
|
if (s) {
|
|
2332
|
-
const
|
|
2333
|
-
if (
|
|
2334
|
-
const
|
|
2332
|
+
const i = s();
|
|
2333
|
+
if (i) {
|
|
2334
|
+
const o = i + e;
|
|
2335
2335
|
if ((t + "").includes("Map")) {
|
|
2336
2336
|
const r = this.autoConvertMapToObject(t);
|
|
2337
|
-
this.persistItem(
|
|
2337
|
+
this.persistItem(o, r);
|
|
2338
2338
|
} else
|
|
2339
|
-
this.persistItem(
|
|
2339
|
+
this.persistItem(o, t);
|
|
2340
2340
|
}
|
|
2341
2341
|
}
|
|
2342
2342
|
}
|
|
@@ -2383,7 +2383,7 @@ class G {
|
|
|
2383
2383
|
// }
|
|
2384
2384
|
// }
|
|
2385
2385
|
}
|
|
2386
|
-
class
|
|
2386
|
+
class de extends $ {
|
|
2387
2387
|
constructor(e) {
|
|
2388
2388
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
2389
2389
|
}
|
|
@@ -2399,20 +2399,20 @@ class fe extends G {
|
|
|
2399
2399
|
const t = e();
|
|
2400
2400
|
if (t) {
|
|
2401
2401
|
const s = t + this.SCROLL_STATE;
|
|
2402
|
-
let
|
|
2403
|
-
this.scrollOffset =
|
|
2402
|
+
let i = this.loadFromLocalStorage(s);
|
|
2403
|
+
this.scrollOffset = i || [0, 0];
|
|
2404
2404
|
}
|
|
2405
2405
|
}
|
|
2406
2406
|
}
|
|
2407
2407
|
}
|
|
2408
|
-
class
|
|
2409
|
-
constructor(e = "collapsed", t = [], s = !1,
|
|
2410
|
-
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded =
|
|
2408
|
+
class he {
|
|
2409
|
+
constructor(e = "collapsed", t = [], s = !1, i = !1) {
|
|
2410
|
+
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = i;
|
|
2411
2411
|
}
|
|
2412
2412
|
}
|
|
2413
|
-
class
|
|
2413
|
+
class pe extends $ {
|
|
2414
2414
|
constructor(e) {
|
|
2415
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
2415
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new he(), this.load();
|
|
2416
2416
|
}
|
|
2417
2417
|
collapsedExpandedStateGet() {
|
|
2418
2418
|
return this.collapsedExpandedState;
|
|
@@ -2435,8 +2435,8 @@ class be extends G {
|
|
|
2435
2435
|
if (e) {
|
|
2436
2436
|
const t = e();
|
|
2437
2437
|
if (t) {
|
|
2438
|
-
const s = t + this.COLLAPSED_EXPANDED_STATE,
|
|
2439
|
-
|
|
2438
|
+
const s = t + this.COLLAPSED_EXPANDED_STATE, i = this.loadFromLocalStorage(s);
|
|
2439
|
+
i && (this.collapsedExpandedState = i);
|
|
2440
2440
|
}
|
|
2441
2441
|
}
|
|
2442
2442
|
}
|
|
@@ -2444,7 +2444,7 @@ class be extends G {
|
|
|
2444
2444
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
2445
2445
|
}
|
|
2446
2446
|
}
|
|
2447
|
-
class
|
|
2447
|
+
class ue extends $ {
|
|
2448
2448
|
constructor(e) {
|
|
2449
2449
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
2450
2450
|
}
|
|
@@ -2459,69 +2459,69 @@ class Se extends G {
|
|
|
2459
2459
|
if (e) {
|
|
2460
2460
|
const t = e();
|
|
2461
2461
|
if (t) {
|
|
2462
|
-
const s = t + this.SORTING_STATE,
|
|
2463
|
-
this.sortItems =
|
|
2462
|
+
const s = t + this.SORTING_STATE, i = this.loadFromLocalStorage(s);
|
|
2463
|
+
this.sortItems = i || [];
|
|
2464
2464
|
}
|
|
2465
2465
|
}
|
|
2466
2466
|
}
|
|
2467
2467
|
}
|
|
2468
2468
|
class T {
|
|
2469
|
-
constructor(e = 0, t = 0, s = 0,
|
|
2470
|
-
this.left = e, this.width = t, this.height = s, this.top =
|
|
2469
|
+
constructor(e = 0, t = 0, s = 0, i = 0, o) {
|
|
2470
|
+
this.left = e, this.width = t, this.height = s, this.top = i, this.index = o;
|
|
2471
2471
|
}
|
|
2472
2472
|
}
|
|
2473
|
-
class
|
|
2474
|
-
constructor(e, t, s,
|
|
2475
|
-
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions =
|
|
2476
|
-
const
|
|
2477
|
-
|
|
2478
|
-
this.dom.addClass("ge-table",
|
|
2473
|
+
class fe {
|
|
2474
|
+
constructor(e, t, s, i) {
|
|
2475
|
+
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = i, this.scrollTop = 0, this.areaBodyWestGeo = new T(), this.areaBodyCenterGeo = new T(), this.areaBodyEastGeo = new T();
|
|
2476
|
+
const o = this.hostElement;
|
|
2477
|
+
o.innerText = "", this.dom.setAttribute(o, "tabindex", "0"), this.dom.setStyle(
|
|
2478
|
+
this.dom.addClass("ge-table", o),
|
|
2479
2479
|
"position",
|
|
2480
2480
|
"relative"
|
|
2481
2481
|
), this.hoverRow = s.applyStylePosistionAbsolute(
|
|
2482
|
-
s.createDivWithClass("ge-table-hover-row",
|
|
2482
|
+
s.createDivWithClass("ge-table-hover-row", o)
|
|
2483
2483
|
), this.hoverColumn = s.applyStylePosistionAbsolute(
|
|
2484
|
-
s.createDivWithClass("ge-table-hover-column",
|
|
2484
|
+
s.createDivWithClass("ge-table-hover-column", o)
|
|
2485
2485
|
), this.draggingColumn = s.applyStylePosistionAbsolute(
|
|
2486
|
-
s.createDivWithClass("ge-table-dragging-column",
|
|
2486
|
+
s.createDivWithClass("ge-table-dragging-column", o)
|
|
2487
2487
|
), this.areaHeaderWest = s.appendRelativeChildDiv(
|
|
2488
2488
|
s.applyStylePosistionAbsolute(
|
|
2489
|
-
s.createAreaDivWithClass("ge-table-header ge-table-header-west",
|
|
2489
|
+
s.createAreaDivWithClass("ge-table-header ge-table-header-west", o, "header", "west")
|
|
2490
2490
|
)
|
|
2491
2491
|
), this.areaHeaderCenter = s.appendRelativeChildDiv(
|
|
2492
2492
|
s.applyStylePosistionAbsolute(
|
|
2493
|
-
s.createAreaDivWithClass("ge-table-header ge-table-header-center",
|
|
2493
|
+
s.createAreaDivWithClass("ge-table-header ge-table-header-center", o, "header", "center")
|
|
2494
2494
|
)
|
|
2495
2495
|
), this.areaHeaderEast = s.appendRelativeChildDiv(
|
|
2496
2496
|
s.applyStylePosistionAbsolute(
|
|
2497
|
-
s.createAreaDivWithClass("ge-table-header ge-table-header-east",
|
|
2497
|
+
s.createAreaDivWithClass("ge-table-header ge-table-header-east", o, "body", "east")
|
|
2498
2498
|
)
|
|
2499
2499
|
), this.areaBodyWest = s.appendRelativeChildDiv(
|
|
2500
2500
|
s.applyStylePosistionAbsolute(
|
|
2501
|
-
s.createAreaDivWithClass("ge-table-body ge-table-body-west",
|
|
2501
|
+
s.createAreaDivWithClass("ge-table-body ge-table-body-west", o, "body", "west")
|
|
2502
2502
|
)
|
|
2503
2503
|
), this.areaBodyEast = s.appendRelativeChildDiv(
|
|
2504
2504
|
s.applyStylePosistionAbsolute(
|
|
2505
|
-
s.createAreaDivWithClass("ge-table-body ge-table-body-east",
|
|
2505
|
+
s.createAreaDivWithClass("ge-table-body ge-table-body-east", o, "body", "east")
|
|
2506
2506
|
)
|
|
2507
2507
|
), this.areaFooterWest = s.appendRelativeChildDiv(
|
|
2508
2508
|
s.applyStylePosistionAbsolute(
|
|
2509
|
-
s.createAreaDivWithClass("ge-table-footer ge-table-footer-west",
|
|
2509
|
+
s.createAreaDivWithClass("ge-table-footer ge-table-footer-west", o, "footer", "west")
|
|
2510
2510
|
)
|
|
2511
2511
|
), this.areaFooterCenter = s.appendRelativeChildDiv(
|
|
2512
2512
|
s.applyStylePosistionAbsolute(
|
|
2513
|
-
s.createAreaDivWithClass("ge-table-footer ge-table-footer-center",
|
|
2513
|
+
s.createAreaDivWithClass("ge-table-footer ge-table-footer-center", o, "footer", "center")
|
|
2514
2514
|
)
|
|
2515
2515
|
), this.areaFooterEast = s.appendRelativeChildDiv(
|
|
2516
2516
|
s.applyStylePosistionAbsolute(
|
|
2517
|
-
s.createAreaDivWithClass("ge-table-footer ge-table-footer-east",
|
|
2517
|
+
s.createAreaDivWithClass("ge-table-footer ge-table-footer-east", o, "footer", "east")
|
|
2518
2518
|
)
|
|
2519
2519
|
), this.scrollViewport = s.applyStyleOverflowAuto(
|
|
2520
2520
|
this.tableOptions.overflowX ?? "auto",
|
|
2521
2521
|
this.tableOptions.overflowY ?? "auto",
|
|
2522
2522
|
s.applyStyleNoPadding(
|
|
2523
2523
|
s.applyStylePosistionAbsolute(
|
|
2524
|
-
s.createAreaDivWithClass("ge-table-scroll-viewport",
|
|
2524
|
+
s.createAreaDivWithClass("ge-table-scroll-viewport", o, "body", "center")
|
|
2525
2525
|
)
|
|
2526
2526
|
)
|
|
2527
2527
|
), this.contentWrapperDiv = s.applyStyleNoPadding(
|
|
@@ -2535,13 +2535,13 @@ class ye {
|
|
|
2535
2535
|
), this.areaBodyCenter = s.appendRelativeChildDiv(
|
|
2536
2536
|
s.createDivWithClass("ge-table-body-center", this.contentDiv)
|
|
2537
2537
|
), this.borderHeaderBottom = s.applyStylePosistionAbsolute(
|
|
2538
|
-
s.createDivWithClass("ge-table-header-border",
|
|
2538
|
+
s.createDivWithClass("ge-table-header-border", o)
|
|
2539
2539
|
), this.borderFixedWest = s.applyStylePosistionAbsolute(
|
|
2540
|
-
s.createDivWithClass("ge-table-west-fixed-column-border",
|
|
2540
|
+
s.createDivWithClass("ge-table-west-fixed-column-border", o)
|
|
2541
2541
|
), this.borderFixedEast = s.applyStylePosistionAbsolute(
|
|
2542
|
-
s.createDivWithClass("ge-table-east-fixed-column-border",
|
|
2542
|
+
s.createDivWithClass("ge-table-east-fixed-column-border", o)
|
|
2543
2543
|
), this.borderFooterTop = s.applyStylePosistionAbsolute(
|
|
2544
|
-
s.createDivWithClass("ge-table-footer-border",
|
|
2544
|
+
s.createDivWithClass("ge-table-footer-border", o)
|
|
2545
2545
|
);
|
|
2546
2546
|
}
|
|
2547
2547
|
/**
|
|
@@ -2641,7 +2641,7 @@ class ye {
|
|
|
2641
2641
|
this.dom.setStyle(this.contentWrapperDiv, "width", e), this.dom.setStyle(this.contentWrapperDiv, "height", t);
|
|
2642
2642
|
}
|
|
2643
2643
|
}
|
|
2644
|
-
class
|
|
2644
|
+
class R {
|
|
2645
2645
|
/**
|
|
2646
2646
|
* Represents a constructor for a class.
|
|
2647
2647
|
* @constructor
|
|
@@ -2651,11 +2651,11 @@ class A {
|
|
|
2651
2651
|
* @param {number} c2 - The value for c2.
|
|
2652
2652
|
* @param {boolean} [gammaRange=false] - The value for gammaRange. Defaults to false. gammaRange will be used for AreaModelCellGroups, but it's not implemented yet!
|
|
2653
2653
|
*/
|
|
2654
|
-
constructor(e, t, s,
|
|
2655
|
-
this.r1 = e, this.c1 = t, this.r2 = s, this.c2 =
|
|
2654
|
+
constructor(e, t, s, i, o = !1) {
|
|
2655
|
+
this.r1 = e, this.c1 = t, this.r2 = s, this.c2 = i, this.gammaRange = o;
|
|
2656
2656
|
}
|
|
2657
2657
|
static create(e) {
|
|
2658
|
-
return e.gammaRange === void 0 && (e.gammaRange = !1), new
|
|
2658
|
+
return e.gammaRange === void 0 && (e.gammaRange = !1), new R(
|
|
2659
2659
|
e.rowIndex1,
|
|
2660
2660
|
e.columnIndex1,
|
|
2661
2661
|
e.rowIndex2,
|
|
@@ -2664,19 +2664,19 @@ class A {
|
|
|
2664
2664
|
);
|
|
2665
2665
|
}
|
|
2666
2666
|
static singleCell(e, t) {
|
|
2667
|
-
return new
|
|
2667
|
+
return new R(e, t, e, t);
|
|
2668
2668
|
}
|
|
2669
2669
|
static singleRow(e) {
|
|
2670
|
-
return new
|
|
2670
|
+
return new R(e, 0, e, Number.MAX_SAFE_INTEGER);
|
|
2671
2671
|
}
|
|
2672
2672
|
static singleColumn(e) {
|
|
2673
|
-
return new
|
|
2673
|
+
return new R(0, e, Number.MAX_SAFE_INTEGER, e);
|
|
2674
2674
|
}
|
|
2675
2675
|
isInRange(e, t) {
|
|
2676
2676
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
2677
2677
|
}
|
|
2678
2678
|
}
|
|
2679
|
-
class
|
|
2679
|
+
class me {
|
|
2680
2680
|
constructor(e, t) {
|
|
2681
2681
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
2682
2682
|
}
|
|
@@ -2686,13 +2686,13 @@ class we {
|
|
|
2686
2686
|
this.colAndRowspanRanges = [];
|
|
2687
2687
|
const e = this.areaModel.getRowCount(), t = this.tableModel.getColumnCount();
|
|
2688
2688
|
for (let s = 0; s < e; s++)
|
|
2689
|
-
for (let
|
|
2690
|
-
let
|
|
2691
|
-
if (
|
|
2692
|
-
|
|
2693
|
-
const
|
|
2689
|
+
for (let i = 0; i < t; i++) {
|
|
2690
|
+
let o = this.areaModel.getColspanAt(s, i), r = this.areaModel.getRowspanAt(s, i);
|
|
2691
|
+
if (o > 1 || r > 1) {
|
|
2692
|
+
o === 0 && (o = 1), r === 0 && (r = 1);
|
|
2693
|
+
const l = "gammaCells" in this.areaModel;
|
|
2694
2694
|
this.colAndRowspanRanges.push(
|
|
2695
|
-
new
|
|
2695
|
+
new R(s, i, s + r - 1, i + o - 1, l)
|
|
2696
2696
|
);
|
|
2697
2697
|
}
|
|
2698
2698
|
}
|
|
@@ -2709,22 +2709,22 @@ class we {
|
|
|
2709
2709
|
return !1;
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
|
-
class
|
|
2712
|
+
class ge {
|
|
2713
2713
|
constructor(e, t, s) {
|
|
2714
2714
|
this.header = e, this.body = t, this.footer = s;
|
|
2715
2715
|
}
|
|
2716
2716
|
}
|
|
2717
|
-
class
|
|
2718
|
-
constructor(e, t, s,
|
|
2719
|
-
var r,
|
|
2720
|
-
super(e, t, s,
|
|
2717
|
+
class Se extends fe {
|
|
2718
|
+
constructor(e, t, s, i) {
|
|
2719
|
+
var r, l;
|
|
2720
|
+
super(e, t, s, i), this.firstVisibleRowIndex = -1, this.lastVisibleRowIndex = -1, this.firstFullVisibleRowIndex = -1, this.lastFullVisibleRowIndex = -1, this.displayedRowCount = 0, this.pixelLimitForFullVisible = 5, this.loggingActive = !1, this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
|
|
2721
2721
|
header: [],
|
|
2722
2722
|
body: [],
|
|
2723
2723
|
footer: []
|
|
2724
|
-
}, this.tree = !1, this.colAndRowspanModels = new
|
|
2725
|
-
(
|
|
2724
|
+
}, this.tree = !1, this.colAndRowspanModels = new ge(), this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), P(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
2725
|
+
(a) => {
|
|
2726
2726
|
var n;
|
|
2727
|
-
this.colAndRowspanModels[
|
|
2727
|
+
this.colAndRowspanModels[a] = new me(t, t.getAreaModel(a)), (n = this.colAndRowspanModels[a]) == null || n.init();
|
|
2728
2728
|
}
|
|
2729
2729
|
);
|
|
2730
2730
|
}
|
|
@@ -2762,13 +2762,13 @@ class Ce extends ye {
|
|
|
2762
2762
|
* @param {number} colIdx - The index of the column.
|
|
2763
2763
|
*/
|
|
2764
2764
|
initRenderEditor(e, t) {
|
|
2765
|
-
var
|
|
2766
|
-
let s = (
|
|
2765
|
+
var i;
|
|
2766
|
+
let s = (i = this.tableModel.getColumnDef(t)) == null ? void 0 : i.getEditRenderer;
|
|
2767
2767
|
if (s || (s = this.tableOptions.getEditRenderer), s)
|
|
2768
2768
|
if (this.editorRenderer = s(e, t), this.editorRenderer) {
|
|
2769
2769
|
this.editorRendererRow = e, this.editorRendererColumn = t, this.editing = !0, this.repaint();
|
|
2770
|
-
const
|
|
2771
|
-
|
|
2770
|
+
const o = document.querySelector("input.ge-table-cell-editor-input");
|
|
2771
|
+
o && o.focus();
|
|
2772
2772
|
} else
|
|
2773
2773
|
this.resetEditorRenderer();
|
|
2774
2774
|
}
|
|
@@ -2860,24 +2860,24 @@ class Ce extends ye {
|
|
|
2860
2860
|
* @param {any} value - The new value to be displayed in the cell.
|
|
2861
2861
|
* @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
|
|
2862
2862
|
*/
|
|
2863
|
-
rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value:
|
|
2864
|
-
const r = this.tableModel.getAreaModel(e),
|
|
2865
|
-
if (
|
|
2863
|
+
rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: i, cssClasses: o }) {
|
|
2864
|
+
const r = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', a = document.querySelector(l);
|
|
2865
|
+
if (a) {
|
|
2866
2866
|
let n;
|
|
2867
2867
|
const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
2868
2868
|
let p;
|
|
2869
|
-
if (c ? p = this.editorRenderer : p = r.getCellRenderer(t, s),
|
|
2870
|
-
n = p.render(
|
|
2869
|
+
if (c ? p = this.editorRenderer : p = r.getCellRenderer(t, s), a.innerText = "", this.applyCssClasses(a, o), p)
|
|
2870
|
+
n = p.render(a, t, s, e, r, i, this.dom.domService), n && this.cleanupFunctions[e].push(n);
|
|
2871
2871
|
else {
|
|
2872
|
-
const
|
|
2873
|
-
this.dom.addLabelDiv(
|
|
2872
|
+
const u = `${i}`;
|
|
2873
|
+
this.dom.addLabelDiv(a, u, !1, t, s, e);
|
|
2874
2874
|
}
|
|
2875
2875
|
const h = r.getCustomClassesAt(t, s);
|
|
2876
|
-
h.length && this.dom.addClasses(h,
|
|
2877
|
-
const
|
|
2878
|
-
if (
|
|
2879
|
-
for (const
|
|
2880
|
-
this.dom.setStyle(
|
|
2876
|
+
h.length && this.dom.addClasses(h, a);
|
|
2877
|
+
const g = r.getCustomStyleAt(t, s);
|
|
2878
|
+
if (g)
|
|
2879
|
+
for (const u in g)
|
|
2880
|
+
this.dom.setStyle(a, u, g[u]);
|
|
2881
2881
|
}
|
|
2882
2882
|
}
|
|
2883
2883
|
getFirstVisibleRowIndex() {
|
|
@@ -2960,8 +2960,8 @@ class Ce extends ye {
|
|
|
2960
2960
|
getNumberByAttr(e, t) {
|
|
2961
2961
|
var s;
|
|
2962
2962
|
if (e) {
|
|
2963
|
-
const
|
|
2964
|
-
if (
|
|
2963
|
+
const i = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
|
|
2964
|
+
if (i) return Number(i);
|
|
2965
2965
|
}
|
|
2966
2966
|
return -1;
|
|
2967
2967
|
}
|
|
@@ -2976,8 +2976,8 @@ class Ce extends ye {
|
|
|
2976
2976
|
getStringByAttr(e, t) {
|
|
2977
2977
|
var s;
|
|
2978
2978
|
if (e) {
|
|
2979
|
-
const
|
|
2980
|
-
if (
|
|
2979
|
+
const i = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
|
|
2980
|
+
if (i) return i;
|
|
2981
2981
|
}
|
|
2982
2982
|
return "";
|
|
2983
2983
|
}
|
|
@@ -2990,73 +2990,73 @@ class Ce extends ye {
|
|
|
2990
2990
|
* @protected
|
|
2991
2991
|
*/
|
|
2992
2992
|
adjustArea(e, t = 0) {
|
|
2993
|
-
var
|
|
2994
|
-
const s = this.getArea(e, "west"),
|
|
2995
|
-
s.child.innerText = "",
|
|
2996
|
-
const
|
|
2993
|
+
var f;
|
|
2994
|
+
const s = this.getArea(e, "west"), i = this.getArea(e, "center"), o = this.getArea(e, "east"), r = i.child.clientHeight;
|
|
2995
|
+
s.child.innerText = "", i.child.innerText = "", o.child.innerText = "";
|
|
2996
|
+
const l = 0, a = this.areaBodyCenterGeo.width, n = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), p = c.getRowCount();
|
|
2997
2997
|
for (; this.cleanupFunctions[e].length; ) {
|
|
2998
|
-
const
|
|
2999
|
-
|
|
2998
|
+
const m = this.cleanupFunctions[e].shift();
|
|
2999
|
+
m && m();
|
|
3000
3000
|
}
|
|
3001
3001
|
let h = t;
|
|
3002
|
-
const
|
|
3002
|
+
const g = this.tableModel.getColumnCount(), u = this.tableModel.getFixedRightColumnCount(), S = this.tableModel.getFixedLeftColumnCount();
|
|
3003
3003
|
e === "body" && (this.firstVisibleRowIndex = -1, this.firstFullVisibleRowIndex = -1, this.lastVisibleRowIndex = -1, this.lastFullVisibleRowIndex = -1);
|
|
3004
|
-
for (let
|
|
3005
|
-
const
|
|
3006
|
-
if (
|
|
3007
|
-
e === "body" && this.firstVisibleRowIndex === -1 && (this.firstVisibleRowIndex =
|
|
3008
|
-
let
|
|
3009
|
-
const M =
|
|
3004
|
+
for (let m = 0; m < p; m++) {
|
|
3005
|
+
const x = h, w = m === p - 1, v = this.tableModel.getRowHeight(e, m);
|
|
3006
|
+
if (x + v > 0) {
|
|
3007
|
+
e === "body" && this.firstVisibleRowIndex === -1 && (this.firstVisibleRowIndex = m, this.firstFullVisibleRowIndex = x < -this.pixelLimitForFullVisible ? this.firstVisibleRowIndex + 1 : this.firstVisibleRowIndex);
|
|
3008
|
+
let b = { left: l, width: a, height: v, top: x, index: m }, y = this.dom.addRowDiv(i, b, m, e, "center");
|
|
3009
|
+
const M = S;
|
|
3010
3010
|
if (this.adjustColumnsToRowParent({
|
|
3011
3011
|
areaIdent: e,
|
|
3012
3012
|
sideIdent: "center",
|
|
3013
3013
|
areaModel: c,
|
|
3014
|
-
geo:
|
|
3015
|
-
parent:
|
|
3016
|
-
rowIndex:
|
|
3014
|
+
geo: b,
|
|
3015
|
+
parent: y,
|
|
3016
|
+
rowIndex: m,
|
|
3017
3017
|
columnIndexStart: M,
|
|
3018
|
-
columnIndexEnd:
|
|
3018
|
+
columnIndexEnd: g - u - 1,
|
|
3019
3019
|
verticalFixed: !1,
|
|
3020
|
-
lastRowOfModel:
|
|
3021
|
-
}), n.left > 0 && (
|
|
3020
|
+
lastRowOfModel: w
|
|
3021
|
+
}), n.left > 0 && (b = { left: l, width: this.areaBodyWestGeo.width, height: v, top: x, index: m }, y = this.dom.addRowDiv(s, b, m, e, "west"), this.adjustColumnsToRowParent({
|
|
3022
3022
|
areaIdent: e,
|
|
3023
3023
|
sideIdent: "west",
|
|
3024
3024
|
areaModel: c,
|
|
3025
|
-
geo:
|
|
3026
|
-
parent:
|
|
3027
|
-
rowIndex:
|
|
3025
|
+
geo: b,
|
|
3026
|
+
parent: y,
|
|
3027
|
+
rowIndex: m,
|
|
3028
3028
|
columnIndexStart: 0,
|
|
3029
3029
|
columnIndexEnd: M - 1,
|
|
3030
3030
|
verticalFixed: !0,
|
|
3031
|
-
lastRowOfModel:
|
|
3032
|
-
})), n.right > 0 && (
|
|
3031
|
+
lastRowOfModel: w
|
|
3032
|
+
})), n.right > 0 && (b = { left: l, width: this.areaBodyEastGeo.width, height: v, top: x, index: m }, y = this.dom.addRowDiv(o, b, m, e, "east"), this.adjustColumnsToRowParent({
|
|
3033
3033
|
areaIdent: e,
|
|
3034
3034
|
sideIdent: "east",
|
|
3035
3035
|
areaModel: c,
|
|
3036
|
-
geo:
|
|
3037
|
-
parent:
|
|
3038
|
-
rowIndex:
|
|
3039
|
-
columnIndexStart:
|
|
3040
|
-
columnIndexEnd:
|
|
3036
|
+
geo: b,
|
|
3037
|
+
parent: y,
|
|
3038
|
+
rowIndex: m,
|
|
3039
|
+
columnIndexStart: g - u,
|
|
3040
|
+
columnIndexEnd: g - 1,
|
|
3041
3041
|
verticalFixed: !0,
|
|
3042
|
-
lastRowOfModel:
|
|
3043
|
-
})), e === "header" && this.tree &&
|
|
3044
|
-
const
|
|
3042
|
+
lastRowOfModel: w
|
|
3043
|
+
})), e === "header" && this.tree && m === p - 1) {
|
|
3044
|
+
const A = this.dom.applyStyle(
|
|
3045
3045
|
this.dom.setAttribute(
|
|
3046
|
-
this.dom.addDiv(
|
|
3046
|
+
this.dom.addDiv(y, new T(16, 20, 20, 8)),
|
|
3047
3047
|
"data-ge-action",
|
|
3048
3048
|
"toggleExpandCollapseAll"
|
|
3049
3049
|
),
|
|
3050
3050
|
{ cursor: "pointer" }
|
|
3051
3051
|
), E = this.tableOptions.treeOptions.arrowExpandCollapseAll;
|
|
3052
3052
|
if (E) {
|
|
3053
|
-
const
|
|
3054
|
-
this.dom.domService.appendChild(
|
|
3053
|
+
const O = this.dom.domService.createText(E.content);
|
|
3054
|
+
this.dom.domService.appendChild(A, O), E.style && this.dom.applyStyleString(A, E.style);
|
|
3055
3055
|
}
|
|
3056
3056
|
}
|
|
3057
3057
|
}
|
|
3058
3058
|
if (h = h + v, h > r) {
|
|
3059
|
-
e === "body" && (this.lastVisibleRowIndex =
|
|
3059
|
+
e === "body" && (this.lastVisibleRowIndex = m, this.lastFullVisibleRowIndex = r - h < -this.pixelLimitForFullVisible ? m - 1 : m, this.displayedRowCount = this.lastFullVisibleRowIndex - this.firstFullVisibleRowIndex + 1);
|
|
3060
3060
|
break;
|
|
3061
3061
|
}
|
|
3062
3062
|
}
|
|
@@ -3064,19 +3064,19 @@ class Ce extends ye {
|
|
|
3064
3064
|
render scope: this.firstFullVisibleRowIndex <- ` + this.firstFullVisibleRowIndex + `
|
|
3065
3065
|
render scope: this.lastVisibleRowIndex <- ` + this.lastVisibleRowIndex + `
|
|
3066
3066
|
render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex), this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
3067
|
-
const
|
|
3068
|
-
if (
|
|
3069
|
-
for (const
|
|
3070
|
-
let
|
|
3071
|
-
if (
|
|
3072
|
-
v = s.child,
|
|
3073
|
-
else if (
|
|
3074
|
-
v =
|
|
3067
|
+
const m = ((f = this.colAndRowspanModels[e]) == null ? void 0 : f.getRanges()) ?? [];
|
|
3068
|
+
if (m.length)
|
|
3069
|
+
for (const x of m) {
|
|
3070
|
+
let w = 0, v = i.child, b = "center";
|
|
3071
|
+
if (x.c1 < S)
|
|
3072
|
+
v = s.child, b = "west";
|
|
3073
|
+
else if (u > 0 && x.c1 >= g - u)
|
|
3074
|
+
v = o.child, b = "east";
|
|
3075
3075
|
else {
|
|
3076
|
-
const
|
|
3077
|
-
|
|
3076
|
+
const y = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
3077
|
+
w = this.scrollFactorX * y - this.areaBodyWestGeo.width, b = "center";
|
|
3078
3078
|
}
|
|
3079
|
-
this.drawBigCell(
|
|
3079
|
+
this.drawBigCell(x, w, t, c, v, b);
|
|
3080
3080
|
}
|
|
3081
3081
|
}
|
|
3082
3082
|
}
|
|
@@ -3090,49 +3090,49 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3090
3090
|
* @param sideIdent SideIdent (west,center,east)
|
|
3091
3091
|
* @protected
|
|
3092
3092
|
*/
|
|
3093
|
-
drawBigCell(e, t, s,
|
|
3094
|
-
const
|
|
3093
|
+
drawBigCell(e, t, s, i, o, r) {
|
|
3094
|
+
const l = s + this.getRowHeights(0, e.r1 - 1, i).reduce((f, m) => f + m, 0), a = this.tableModel.getColumnCount(), n = this.tableModel.getFixedRightColumnCount();
|
|
3095
3095
|
let c = 0;
|
|
3096
|
-
n > 0 && e.c1 >=
|
|
3097
|
-
const p = t + this.getColumnWidths(c, e.c1 - 1).reduce((
|
|
3098
|
-
let
|
|
3099
|
-
const
|
|
3100
|
-
|
|
3101
|
-
areaModel:
|
|
3102
|
-
areaIdent:
|
|
3096
|
+
n > 0 && e.c1 >= a - n && (c = a - n);
|
|
3097
|
+
const p = t + this.getColumnWidths(c, e.c1 - 1).reduce((f, m) => f + m, 0), h = this.getRowHeights(e.r1, e.r2, i).reduce((f, m) => f + m, 0), g = this.getColumnWidths(e.c1, e.c2).reduce((f, m) => f + m, 0);
|
|
3098
|
+
let u = !1;
|
|
3099
|
+
const S = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
3100
|
+
S && (u = S.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
3101
|
+
areaModel: i,
|
|
3102
|
+
areaIdent: i.areaIdent,
|
|
3103
3103
|
sideIdent: r,
|
|
3104
3104
|
rowIndex: e.r1,
|
|
3105
3105
|
columnIndex: e.c1,
|
|
3106
3106
|
left: p,
|
|
3107
|
-
top:
|
|
3108
|
-
width:
|
|
3107
|
+
top: l,
|
|
3108
|
+
width: g,
|
|
3109
3109
|
height: h,
|
|
3110
|
-
parent:
|
|
3111
|
-
cellSelected:
|
|
3110
|
+
parent: o,
|
|
3111
|
+
cellSelected: u,
|
|
3112
3112
|
lastRowOfModel: !0,
|
|
3113
3113
|
gammaRange: e.gammaRange
|
|
3114
3114
|
}) : this.renderCell({
|
|
3115
|
-
areaModel:
|
|
3116
|
-
areaIdent:
|
|
3115
|
+
areaModel: i,
|
|
3116
|
+
areaIdent: i.areaIdent,
|
|
3117
3117
|
sideIdent: r,
|
|
3118
3118
|
rowIndex: e.r1,
|
|
3119
3119
|
columnIndex: e.c1,
|
|
3120
3120
|
left: p,
|
|
3121
|
-
top:
|
|
3122
|
-
width:
|
|
3121
|
+
top: l,
|
|
3122
|
+
width: g,
|
|
3123
3123
|
height: h,
|
|
3124
|
-
parent:
|
|
3125
|
-
cellSelected:
|
|
3124
|
+
parent: o,
|
|
3125
|
+
cellSelected: u,
|
|
3126
3126
|
lastRowOfModel: !0,
|
|
3127
3127
|
gammaRange: e.gammaRange
|
|
3128
|
-
}),
|
|
3128
|
+
}), i.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
3129
3129
|
rowIndex: e.r1,
|
|
3130
3130
|
columnIndex: e.c1,
|
|
3131
3131
|
cellLeft: p,
|
|
3132
|
-
cellTop:
|
|
3133
|
-
cellWidth:
|
|
3132
|
+
cellTop: l,
|
|
3133
|
+
cellWidth: g,
|
|
3134
3134
|
cellHeight: h,
|
|
3135
|
-
parent:
|
|
3135
|
+
parent: o
|
|
3136
3136
|
});
|
|
3137
3137
|
}
|
|
3138
3138
|
/**
|
|
@@ -3145,12 +3145,12 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3145
3145
|
* @protected
|
|
3146
3146
|
*/
|
|
3147
3147
|
findRowOfImportantRowspanCell(e, t, s) {
|
|
3148
|
-
const
|
|
3149
|
-
for (let
|
|
3150
|
-
const r = e.getRowspanAt(
|
|
3151
|
-
if (r > 1 &&
|
|
3152
|
-
return
|
|
3153
|
-
if (t -
|
|
3148
|
+
const i = e.getMaxRowspan();
|
|
3149
|
+
for (let o = t - 1; o > -1; o--) {
|
|
3150
|
+
const r = e.getRowspanAt(o, s);
|
|
3151
|
+
if (r > 1 && o + r + 1 >= t)
|
|
3152
|
+
return o;
|
|
3153
|
+
if (t - o > i)
|
|
3154
3154
|
return -1;
|
|
3155
3155
|
}
|
|
3156
3156
|
return -1;
|
|
@@ -3166,67 +3166,67 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3166
3166
|
areaIdent: e,
|
|
3167
3167
|
sideIdent: t,
|
|
3168
3168
|
areaModel: s,
|
|
3169
|
-
geo:
|
|
3170
|
-
parent:
|
|
3169
|
+
geo: i,
|
|
3170
|
+
parent: o,
|
|
3171
3171
|
rowIndex: r,
|
|
3172
|
-
columnIndexStart:
|
|
3173
|
-
columnIndexEnd:
|
|
3172
|
+
columnIndexStart: l,
|
|
3173
|
+
columnIndexEnd: a,
|
|
3174
3174
|
verticalFixed: n = !1,
|
|
3175
3175
|
lastRowOfModel: c = !1
|
|
3176
3176
|
}) {
|
|
3177
|
-
var
|
|
3177
|
+
var S;
|
|
3178
3178
|
this.scrollViewportLeft = this.scrollViewport.scrollLeft;
|
|
3179
3179
|
let p = 0;
|
|
3180
3180
|
if (!n) {
|
|
3181
|
-
const
|
|
3182
|
-
p = this.scrollFactorX *
|
|
3181
|
+
const f = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
3182
|
+
p = this.scrollFactorX * f;
|
|
3183
3183
|
}
|
|
3184
|
-
const h = 0,
|
|
3185
|
-
let
|
|
3186
|
-
for (let
|
|
3187
|
-
const
|
|
3188
|
-
if (
|
|
3189
|
-
let
|
|
3190
|
-
const v = s.getRowspanAt(r,
|
|
3191
|
-
v > 1 && (
|
|
3192
|
-
let
|
|
3193
|
-
|
|
3184
|
+
const h = 0, g = !!(e === "body" && t);
|
|
3185
|
+
let u = p;
|
|
3186
|
+
for (let f = l; f <= a; f++) {
|
|
3187
|
+
const m = u, x = this.tableModel.getColumnWidth(f);
|
|
3188
|
+
if (x > 0 && m + x > 0) {
|
|
3189
|
+
let w = i.height;
|
|
3190
|
+
const v = s.getRowspanAt(r, f), b = s.getColspanAt(r, f);
|
|
3191
|
+
v > 1 && (w = this.getRowHeights(r, r + v - 1, s).reduce((A, E) => A + E, 0));
|
|
3192
|
+
let y = x;
|
|
3193
|
+
b > 1 && (y = this.getColumnWidths(f, f + b - 1).reduce((A, E) => A + E, 0));
|
|
3194
3194
|
let M = !1;
|
|
3195
|
-
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (
|
|
3196
|
-
this.renderDragTargetDiv(
|
|
3197
|
-
const
|
|
3198
|
-
this.dom.addColumnBorderDivs(this.tableOptions,
|
|
3195
|
+
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (S = this.colAndRowspanModels[e]) != null && S.isInRange(r, f) && (M = !0), this.draggingTargetColumnIndex === f && e !== "header") {
|
|
3196
|
+
this.renderDragTargetDiv(o, m, h, y, w);
|
|
3197
|
+
const A = { left: m, top: h, width: y, height: w };
|
|
3198
|
+
this.dom.addColumnBorderDivs(this.tableOptions, o, A, e, t);
|
|
3199
3199
|
} else {
|
|
3200
|
-
const
|
|
3201
|
-
"gammaCells" in s && s.getValueAt(r,
|
|
3200
|
+
const A = this.renderSelectedBackgroundDiv(M, g, t, s, r, f, o, m, h, y, w);
|
|
3201
|
+
"gammaCells" in s && s.getValueAt(r, f) && (M = !1), M || this.renderCell({
|
|
3202
3202
|
areaModel: s,
|
|
3203
3203
|
areaIdent: e,
|
|
3204
3204
|
sideIdent: t,
|
|
3205
3205
|
rowIndex: r,
|
|
3206
|
-
columnIndex:
|
|
3207
|
-
left:
|
|
3206
|
+
columnIndex: f,
|
|
3207
|
+
left: m,
|
|
3208
3208
|
top: h,
|
|
3209
|
-
width:
|
|
3210
|
-
height:
|
|
3211
|
-
parent:
|
|
3212
|
-
cellSelected:
|
|
3209
|
+
width: y,
|
|
3210
|
+
height: w,
|
|
3211
|
+
parent: o,
|
|
3212
|
+
cellSelected: A,
|
|
3213
3213
|
lastRowOfModel: c,
|
|
3214
3214
|
gammaRange: !0
|
|
3215
3215
|
}), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
3216
3216
|
rowIndex: r,
|
|
3217
|
-
columnIndex:
|
|
3218
|
-
cellLeft:
|
|
3217
|
+
columnIndex: f,
|
|
3218
|
+
cellLeft: m,
|
|
3219
3219
|
cellTop: h,
|
|
3220
|
-
cellWidth:
|
|
3221
|
-
cellHeight:
|
|
3222
|
-
parent:
|
|
3220
|
+
cellWidth: y,
|
|
3221
|
+
cellHeight: w,
|
|
3222
|
+
parent: o
|
|
3223
3223
|
});
|
|
3224
3224
|
}
|
|
3225
3225
|
}
|
|
3226
|
-
if (
|
|
3226
|
+
if (u = u + x, u > this.areaBodyCenterGeo.width)
|
|
3227
3227
|
break;
|
|
3228
3228
|
}
|
|
3229
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(
|
|
3229
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(u - 1, 1, i.height, 0), o);
|
|
3230
3230
|
}
|
|
3231
3231
|
/**
|
|
3232
3232
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -3244,58 +3244,58 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3244
3244
|
areaModel: e,
|
|
3245
3245
|
areaIdent: t,
|
|
3246
3246
|
sideIdent: s,
|
|
3247
|
-
rowIndex:
|
|
3248
|
-
index:
|
|
3247
|
+
rowIndex: i,
|
|
3248
|
+
index: o,
|
|
3249
3249
|
left: r,
|
|
3250
|
-
width:
|
|
3251
|
-
height:
|
|
3250
|
+
width: l,
|
|
3251
|
+
height: a,
|
|
3252
3252
|
top: n,
|
|
3253
3253
|
parent: c,
|
|
3254
3254
|
lastRowOfModel: p
|
|
3255
3255
|
}) {
|
|
3256
|
-
var
|
|
3257
|
-
const
|
|
3258
|
-
let
|
|
3259
|
-
if (
|
|
3260
|
-
const C =
|
|
3261
|
-
(
|
|
3256
|
+
var N;
|
|
3257
|
+
const g = this.editorRenderer && this.editorRendererRow === i && this.editorRendererColumn === o ? this.editorRenderer : e.getCellRenderer(i, o), u = { left: r, width: l, height: a, top: n, index: o }, S = e.getRowByIndex(i);
|
|
3258
|
+
let f = "none";
|
|
3259
|
+
if (o === this.getTreeArrowColumnIndex() && B(S)) {
|
|
3260
|
+
const C = S;
|
|
3261
|
+
(N = C.children) != null && N.length ? C.expanded ? f = "expanded" : f = "collapsed" : f = "hidden";
|
|
3262
3262
|
}
|
|
3263
|
-
let
|
|
3263
|
+
let x;
|
|
3264
3264
|
if (t === "header") {
|
|
3265
|
-
const C = this.tableModel.getColumnDef(
|
|
3266
|
-
(!(C != null && C.sortIconVisible) || C != null && C.sortIconVisible()) && (
|
|
3265
|
+
const C = this.tableModel.getColumnDef(o);
|
|
3266
|
+
(!(C != null && C.sortIconVisible) || C != null && C.sortIconVisible()) && (x = C == null ? void 0 : C.sortState);
|
|
3267
3267
|
}
|
|
3268
|
-
const
|
|
3268
|
+
const w = e.getValueAt(i, o), v = g ? "" : `${w}`, b = e.isRowChecked(i), y = this.dom.addColumnDiv(
|
|
3269
3269
|
{
|
|
3270
3270
|
parent: c,
|
|
3271
|
-
geo:
|
|
3272
|
-
rowIndex:
|
|
3273
|
-
columnIndex:
|
|
3271
|
+
geo: u,
|
|
3272
|
+
rowIndex: i,
|
|
3273
|
+
columnIndex: o,
|
|
3274
3274
|
areaIdent: t,
|
|
3275
3275
|
sideIdent: s,
|
|
3276
3276
|
text: v,
|
|
3277
|
-
treeArrow:
|
|
3277
|
+
treeArrow: f,
|
|
3278
3278
|
tableOptions: this.tableOptions,
|
|
3279
|
-
checkedType:
|
|
3280
|
-
sortState:
|
|
3279
|
+
checkedType: b,
|
|
3280
|
+
sortState: x
|
|
3281
3281
|
}
|
|
3282
|
-
), M = e.getTooltipAt(
|
|
3283
|
-
M && this.dom.setAttribute(
|
|
3284
|
-
const
|
|
3285
|
-
|
|
3282
|
+
), M = e.getTooltipAt(i, o);
|
|
3283
|
+
M && this.dom.setAttribute(y, "title", M);
|
|
3284
|
+
const A = this.tableModel.getColumnDef(o);
|
|
3285
|
+
A && A.classes[t] && this.dom.addClasses(A.classes[t], y);
|
|
3286
3286
|
let E;
|
|
3287
|
-
|
|
3288
|
-
const
|
|
3289
|
-
if (
|
|
3287
|
+
g && (E = g.render(y, i, o, t, e, w, this.dom.domService));
|
|
3288
|
+
const O = e.getCustomClassesAt(i, o);
|
|
3289
|
+
if (O.length && this.dom.addClasses(O, y), this.dom.addColumnBorderDivs(this.tableOptions, c, u, t, s), p && this.dom.addHorizontalBorder({ left: r, width: l, height: a, top: n + a }, c), this.getFocusModel && t === "body") {
|
|
3290
3290
|
const C = this.getFocusModel();
|
|
3291
|
-
C != null && C.hasFocus(
|
|
3291
|
+
C != null && C.hasFocus(i, o) && this.dom.addFocusBorderDivs(c, u, {});
|
|
3292
3292
|
}
|
|
3293
|
-
t === "header" && this.dom.setAttribute(
|
|
3294
|
-
const
|
|
3295
|
-
if (
|
|
3296
|
-
for (const C in
|
|
3297
|
-
this.dom.setStyle(
|
|
3298
|
-
return [
|
|
3293
|
+
t === "header" && this.dom.setAttribute(y, "data-ge-action", "drag-column");
|
|
3294
|
+
const k = e.getCustomStyleAt(i, o);
|
|
3295
|
+
if (k)
|
|
3296
|
+
for (const C in k)
|
|
3297
|
+
this.dom.setStyle(y, C, k[C]);
|
|
3298
|
+
return [y, E];
|
|
3299
3299
|
}
|
|
3300
3300
|
/**
|
|
3301
3301
|
* Applies CSS classes to an HTML element.
|
|
@@ -3305,8 +3305,8 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3305
3305
|
* @protected
|
|
3306
3306
|
*/
|
|
3307
3307
|
applyCssClasses(e, t = {}) {
|
|
3308
|
-
e && Object.entries(t).forEach(([s,
|
|
3309
|
-
|
|
3308
|
+
e && Object.entries(t).forEach(([s, i]) => {
|
|
3309
|
+
i ? this.dom.addClass(s, e) : this.dom.removeClass(s, e);
|
|
3310
3310
|
});
|
|
3311
3311
|
}
|
|
3312
3312
|
/**
|
|
@@ -3319,8 +3319,8 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3319
3319
|
*/
|
|
3320
3320
|
getColumnWidths(e, t) {
|
|
3321
3321
|
const s = [];
|
|
3322
|
-
for (let
|
|
3323
|
-
s.push(this.tableModel.getColumnWidth(
|
|
3322
|
+
for (let i = e; i <= t; i++)
|
|
3323
|
+
s.push(this.tableModel.getColumnWidth(i));
|
|
3324
3324
|
return s;
|
|
3325
3325
|
}
|
|
3326
3326
|
/**
|
|
@@ -3332,10 +3332,10 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3332
3332
|
* @return {number[]} - An array containing the heights of the rows within the specified range.
|
|
3333
3333
|
*/
|
|
3334
3334
|
getRowHeights(e, t, s) {
|
|
3335
|
-
const
|
|
3336
|
-
for (let
|
|
3337
|
-
|
|
3338
|
-
return
|
|
3335
|
+
const i = [];
|
|
3336
|
+
for (let o = e; o <= t; o++)
|
|
3337
|
+
i.push(s.getRowHeight(o));
|
|
3338
|
+
return i;
|
|
3339
3339
|
}
|
|
3340
3340
|
/**
|
|
3341
3341
|
* Adjusts the position and size of the hover row based on the mouse move event.
|
|
@@ -3346,10 +3346,10 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3346
3346
|
*/
|
|
3347
3347
|
adjustHoverRows(e) {
|
|
3348
3348
|
if (this.tableOptions.hoverRowVisible && e.rowIndex > -1) {
|
|
3349
|
-
const t = this.hostElement.clientWidth, s = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex),
|
|
3349
|
+
const t = this.hostElement.clientWidth, s = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex), i = e.rowTop + this.areaHeaderCenter.parent.clientHeight - this.scrollTop;
|
|
3350
3350
|
this.dom.applyStyle(this.hoverRow, {
|
|
3351
3351
|
left: "0",
|
|
3352
|
-
top:
|
|
3352
|
+
top: i + "px",
|
|
3353
3353
|
width: t + "px",
|
|
3354
3354
|
height: s + "px",
|
|
3355
3355
|
display: "block"
|
|
@@ -3379,9 +3379,9 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3379
3379
|
*/
|
|
3380
3380
|
adjustHoverColumns(e) {
|
|
3381
3381
|
if (this.tableOptions.hoverColumnVisible && e.rowIndex > -1) {
|
|
3382
|
-
const t = this.hostElement.clientHeight, s = this.tableModel.getColumnWidth(e.columnIndex),
|
|
3382
|
+
const t = this.hostElement.clientHeight, s = this.tableModel.getColumnWidth(e.columnIndex), i = this.areaBodyWestGeo.width, o = e.columnLeft + this.tableModel.getPadding().left - this.scrollLeft - i;
|
|
3383
3383
|
this.dom.applyStyle(this.hoverColumn, {
|
|
3384
|
-
left:
|
|
3384
|
+
left: o + "px",
|
|
3385
3385
|
top: "0px",
|
|
3386
3386
|
width: s + "px",
|
|
3387
3387
|
height: t + "px",
|
|
@@ -3423,11 +3423,11 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3423
3423
|
* @param {boolean} firstDraggingRendering - Indicates if it's the first rendering of the dragging column.
|
|
3424
3424
|
*/
|
|
3425
3425
|
adjustDraggingColumn(e, t, s) {
|
|
3426
|
-
var
|
|
3426
|
+
var i, o;
|
|
3427
3427
|
if (this.dragging) {
|
|
3428
|
-
const r = this.hostElement.clientHeight,
|
|
3429
|
-
if ((
|
|
3430
|
-
const c = { left: ((
|
|
3428
|
+
const r = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
|
|
3429
|
+
if ((i = e.originalEvent) != null && i.clientX) {
|
|
3430
|
+
const c = { left: ((o = e.originalEvent) == null ? void 0 : o.clientX) - l / 2, width: l, height: r, top: 0, index: t };
|
|
3431
3431
|
this.dom.applyStyle(this.draggingColumn, {
|
|
3432
3432
|
background: "rgba(128,128,128,0.2)",
|
|
3433
3433
|
display: "block",
|
|
@@ -3457,29 +3457,29 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3457
3457
|
* @return {number} The final y-position after rendering all the content.
|
|
3458
3458
|
*/
|
|
3459
3459
|
renderContentOfDraggingColumnForArea(e, t, s = 0) {
|
|
3460
|
-
const
|
|
3460
|
+
const i = "center", o = this.tableModel.getAreaModel(t), r = o == null ? void 0 : o.getRowCount();
|
|
3461
3461
|
if (r) {
|
|
3462
|
-
const
|
|
3462
|
+
const l = e.index ?? 0, a = this.draggingColumn;
|
|
3463
3463
|
for (let n = 0; n < r; n++) {
|
|
3464
|
-
const c = s, p =
|
|
3465
|
-
parent:
|
|
3464
|
+
const c = s, p = o.getRowHeight(n), h = { left: 0, width: e.width, height: p, top: c, index: n }, g = o.getValueAt(n, l), u = o.getCellRenderer(n, l), S = u ? "" : `${g}`, f = {
|
|
3465
|
+
parent: a,
|
|
3466
3466
|
geo: h,
|
|
3467
3467
|
rowIndex: n,
|
|
3468
|
-
columnIndex:
|
|
3468
|
+
columnIndex: l,
|
|
3469
3469
|
areaIdent: t,
|
|
3470
|
-
sideIdent:
|
|
3471
|
-
text:
|
|
3472
|
-
},
|
|
3473
|
-
let
|
|
3474
|
-
|
|
3475
|
-
const
|
|
3476
|
-
|
|
3477
|
-
const v = this.tableModel.getColumnDef(
|
|
3478
|
-
v && v.classes[t] && this.dom.addClasses(v.classes[t],
|
|
3479
|
-
const
|
|
3480
|
-
if (
|
|
3481
|
-
for (const
|
|
3482
|
-
this.dom.setStyle(
|
|
3470
|
+
sideIdent: i,
|
|
3471
|
+
text: S
|
|
3472
|
+
}, m = this.dom.addColumnDiv(f);
|
|
3473
|
+
let x;
|
|
3474
|
+
u && (x = u.render(m, n, l, t, o, g, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
3475
|
+
const w = o.getCustomClassesAt(n, l);
|
|
3476
|
+
w.length && this.dom.addClasses(w, m);
|
|
3477
|
+
const v = this.tableModel.getColumnDef(l);
|
|
3478
|
+
v && v.classes[t] && this.dom.addClasses(v.classes[t], m), this.dom.addColumnBorderDivs(this.tableOptions, a, h, t, i);
|
|
3479
|
+
const b = o.getCustomStyleAt(n, l);
|
|
3480
|
+
if (b)
|
|
3481
|
+
for (const y in b)
|
|
3482
|
+
this.dom.setStyle(m, y, b[y]);
|
|
3483
3483
|
s = s + p;
|
|
3484
3484
|
}
|
|
3485
3485
|
}
|
|
@@ -3506,11 +3506,11 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3506
3506
|
* @param {number} height - The height of the target div in pixels.
|
|
3507
3507
|
* @return {HTMLDivElement} - The rendered draggable target div element.
|
|
3508
3508
|
*/
|
|
3509
|
-
renderDragTargetDiv(e, t, s,
|
|
3509
|
+
renderDragTargetDiv(e, t, s, i, o) {
|
|
3510
3510
|
const r = this.dom.applyStylePosistionAbsolute(
|
|
3511
3511
|
this.dom.createDivWithClass("ge-table-drop-zone", e)
|
|
3512
3512
|
);
|
|
3513
|
-
return this.dom.setStyle(r, "left", `${t}px`), this.dom.setStyle(r, "top", `${s}px`), this.dom.setStyle(r, "width", `${
|
|
3513
|
+
return this.dom.setStyle(r, "left", `${t}px`), this.dom.setStyle(r, "top", `${s}px`), this.dom.setStyle(r, "width", `${i}px`), this.dom.setStyle(r, "height", `${o}px`), r;
|
|
3514
3514
|
}
|
|
3515
3515
|
/**
|
|
3516
3516
|
* Render selected background div.
|
|
@@ -3529,19 +3529,19 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3529
3529
|
* @param {number} height - The height of the div.
|
|
3530
3530
|
* @returns {boolean} - Whether the cell is selected.
|
|
3531
3531
|
*/
|
|
3532
|
-
renderSelectedBackgroundDiv(e, t, s,
|
|
3532
|
+
renderSelectedBackgroundDiv(e, t, s, i, o, r, l, a, n, c, p) {
|
|
3533
3533
|
let h = !1;
|
|
3534
|
-
if (!e && t &&
|
|
3535
|
-
const
|
|
3536
|
-
if (
|
|
3537
|
-
const
|
|
3538
|
-
h =
|
|
3539
|
-
for (let
|
|
3540
|
-
const
|
|
3534
|
+
if (!e && t && i.isSelectable(o, r) && this.getSelectionModel) {
|
|
3535
|
+
const g = this.getSelectionModel();
|
|
3536
|
+
if (g) {
|
|
3537
|
+
const u = g.getSelectionCount(o, r);
|
|
3538
|
+
h = u > 0;
|
|
3539
|
+
for (let S = 0; S < u; S++) {
|
|
3540
|
+
const f = this.dom.applyStylePosistionAbsolute(
|
|
3541
3541
|
// ge-table-body-west-selected-range
|
|
3542
|
-
this.dom.createDivWithClass(`ge-table-${
|
|
3542
|
+
this.dom.createDivWithClass(`ge-table-${i.areaIdent}-${s}-selected-range`, l)
|
|
3543
3543
|
);
|
|
3544
|
-
this.dom.setStyle(
|
|
3544
|
+
this.dom.setStyle(f, "left", `${a}px`), this.dom.setStyle(f, "top", `${n}px`), this.dom.setStyle(f, "width", `${c}px`), this.dom.setStyle(f, "height", `${p}px`);
|
|
3545
3545
|
}
|
|
3546
3546
|
}
|
|
3547
3547
|
}
|
|
@@ -3570,30 +3570,30 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3570
3570
|
areaModel: e,
|
|
3571
3571
|
areaIdent: t,
|
|
3572
3572
|
sideIdent: s,
|
|
3573
|
-
rowIndex:
|
|
3574
|
-
columnIndex:
|
|
3573
|
+
rowIndex: i,
|
|
3574
|
+
columnIndex: o,
|
|
3575
3575
|
left: r,
|
|
3576
|
-
top:
|
|
3577
|
-
width:
|
|
3576
|
+
top: l,
|
|
3577
|
+
width: a,
|
|
3578
3578
|
height: n,
|
|
3579
3579
|
parent: c,
|
|
3580
3580
|
cellSelected: p,
|
|
3581
3581
|
lastRowOfModel: h
|
|
3582
3582
|
}) {
|
|
3583
|
-
const [
|
|
3583
|
+
const [g, u] = this.addAndRenderCellDiv({
|
|
3584
3584
|
areaModel: e,
|
|
3585
3585
|
areaIdent: t,
|
|
3586
3586
|
sideIdent: s,
|
|
3587
|
-
rowIndex:
|
|
3588
|
-
index:
|
|
3587
|
+
rowIndex: i,
|
|
3588
|
+
index: o,
|
|
3589
3589
|
left: r,
|
|
3590
|
-
width:
|
|
3590
|
+
width: a,
|
|
3591
3591
|
height: n,
|
|
3592
|
-
top:
|
|
3592
|
+
top: l,
|
|
3593
3593
|
parent: c,
|
|
3594
3594
|
lastRowOfModel: h
|
|
3595
3595
|
});
|
|
3596
|
-
p && this.dom.addClass(`ge-table-${t}-${s}-selected-range`,
|
|
3596
|
+
p && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, g), u && this.cleanupFunctions[t].push(u);
|
|
3597
3597
|
}
|
|
3598
3598
|
/**
|
|
3599
3599
|
* Render the header cell resize handle.
|
|
@@ -3609,17 +3609,17 @@ render scope: this.lastFullVisibleRowIndex <- ` + this.lastFullVisibleRowIndex),
|
|
|
3609
3609
|
*
|
|
3610
3610
|
* @return {void}
|
|
3611
3611
|
*/
|
|
3612
|
-
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop:
|
|
3613
|
-
const
|
|
3614
|
-
|
|
3612
|
+
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: i, cellWidth: o, cellHeight: r, parent: l }) {
|
|
3613
|
+
const a = this.dom.domService, n = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = a.createElement("div");
|
|
3614
|
+
a.setAttribute(c, "data-col-index", `${t}`), a.setAttribute(c, "data-row-index", `${e}`), a.setAttribute(c, "data-area", "header"), a.setAttribute(c, "data-ge-action", "resize-column"), a.addClass(c, "ge-table-column-resize-handle"), a.setStyle(c, "display", "clip"), a.setStyle(c, "position", "absolute"), a.setStyle(c, "cursor", "col-resize"), a.setStyle(c, "left", `${s + o - n}px`), a.setStyle(c, "top", `${i}px`), a.setStyle(c, "width", `${n}px`), a.setStyle(c, "height", `${r}px`), a.appendChild(l, c);
|
|
3615
3615
|
}
|
|
3616
3616
|
}
|
|
3617
|
-
class
|
|
3617
|
+
class ye {
|
|
3618
3618
|
constructor(e, t) {
|
|
3619
3619
|
this.columnIndex = e, this.sortState = t;
|
|
3620
3620
|
}
|
|
3621
3621
|
}
|
|
3622
|
-
class
|
|
3622
|
+
class be {
|
|
3623
3623
|
constructor(e) {
|
|
3624
3624
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
3625
3625
|
}
|
|
@@ -3633,45 +3633,45 @@ class Ae {
|
|
|
3633
3633
|
*/
|
|
3634
3634
|
onHostElementChanged(e) {
|
|
3635
3635
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
|
|
3636
|
-
const t = e.target, s = t.getAttribute("data-area"),
|
|
3637
|
-
if (s &&
|
|
3638
|
-
const r =
|
|
3639
|
-
this.tableScope.updateModelValueAfterEdit(r,
|
|
3636
|
+
const t = e.target, s = t.getAttribute("data-area"), i = t.getAttribute("data-row-index"), o = t.getAttribute("data-col-index");
|
|
3637
|
+
if (s && i && o) {
|
|
3638
|
+
const r = H(s), l = Number(i), a = Number(o);
|
|
3639
|
+
this.tableScope.updateModelValueAfterEdit(r, l, a, t.value);
|
|
3640
3640
|
}
|
|
3641
3641
|
}
|
|
3642
3642
|
}
|
|
3643
3643
|
}
|
|
3644
|
-
class
|
|
3644
|
+
class xe {
|
|
3645
3645
|
constructor(e = -1, t = -1) {
|
|
3646
3646
|
this.rowIndex = e, this.columnIndex = t;
|
|
3647
3647
|
}
|
|
3648
3648
|
}
|
|
3649
|
-
class
|
|
3649
|
+
class _ {
|
|
3650
3650
|
constructor(e) {
|
|
3651
3651
|
this.cells = e;
|
|
3652
3652
|
}
|
|
3653
3653
|
static createSingle(e, t) {
|
|
3654
|
-
return new
|
|
3654
|
+
return new _([new xe(e, t)]);
|
|
3655
3655
|
}
|
|
3656
3656
|
}
|
|
3657
|
-
class
|
|
3658
|
-
constructor(e, t, s,
|
|
3659
|
-
this.scrollTop = e, this.scrollLeft = t, this.scrollHeight = s, this.scrollWidth =
|
|
3657
|
+
class we {
|
|
3658
|
+
constructor(e, t, s, i, o, r, l, a) {
|
|
3659
|
+
this.scrollTop = e, this.scrollLeft = t, this.scrollHeight = s, this.scrollWidth = i, this.clientHeight = o, this.clientWidth = r, this.scrollFactorY = l, this.scrollFactorX = a;
|
|
3660
3660
|
}
|
|
3661
3661
|
}
|
|
3662
|
-
class
|
|
3662
|
+
class Ce {
|
|
3663
3663
|
constructor(e) {
|
|
3664
3664
|
var t, s;
|
|
3665
3665
|
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);
|
|
3666
3666
|
}
|
|
3667
3667
|
onMouseClicked(e, t) {
|
|
3668
|
-
var
|
|
3669
|
-
let s = !1,
|
|
3668
|
+
var o, r, l, a, n, c, p;
|
|
3669
|
+
let s = !1, i = !1;
|
|
3670
3670
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
3671
|
-
const h = this.getSelectionModel(),
|
|
3672
|
-
h &&
|
|
3671
|
+
const h = this.getSelectionModel(), g = this.getFocusModel();
|
|
3672
|
+
h && g && (g.hasFocus(e.rowIndex, e.columnIndex) || (g.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(g), s = !0), (o = e.originalEvent) != null && o.shiftKey || h.hasSelection() && (h.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (h.addSelection(this.createRangeByEvents(e, this.previousEvt)), i = !0, s = !0) : (l = e.originalEvent) != null && l.altKey && ((a = e.originalEvent) != null && a.ctrlKey || (n = e.originalEvent) != null && n.metaKey) ? (h.removeSelection(R.singleCell(e.rowIndex, e.columnIndex)), i = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (p = e.originalEvent) != null && p.metaKey ? (h.addSelection(R.singleCell(e.rowIndex, e.columnIndex)), i = !0, s = !0) : (h.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(h));
|
|
3673
3673
|
}
|
|
3674
|
-
return
|
|
3674
|
+
return i ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
3675
3675
|
}
|
|
3676
3676
|
onActionTriggered(e) {
|
|
3677
3677
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
@@ -3682,8 +3682,8 @@ class Me {
|
|
|
3682
3682
|
if (e === "DESELECT_ALL")
|
|
3683
3683
|
return t.clear(), this.tableScope.repaint(), !0;
|
|
3684
3684
|
if (e === "TOGGLE_SELECTION") {
|
|
3685
|
-
const [
|
|
3686
|
-
return t.togglePoint(
|
|
3685
|
+
const [i, o] = s.getFocus();
|
|
3686
|
+
return t.togglePoint(i, o), this.tableScope.repaint(), !0;
|
|
3687
3687
|
}
|
|
3688
3688
|
}
|
|
3689
3689
|
}
|
|
@@ -3691,16 +3691,16 @@ class Me {
|
|
|
3691
3691
|
}
|
|
3692
3692
|
createRangeByEvents(e, t) {
|
|
3693
3693
|
t || (t = e);
|
|
3694
|
-
const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex),
|
|
3695
|
-
return
|
|
3694
|
+
const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
|
|
3695
|
+
return R.create({
|
|
3696
3696
|
rowIndex1: s,
|
|
3697
|
-
columnIndex1:
|
|
3698
|
-
rowIndex2:
|
|
3697
|
+
columnIndex1: o,
|
|
3698
|
+
rowIndex2: i,
|
|
3699
3699
|
columnIndex2: r
|
|
3700
3700
|
});
|
|
3701
3701
|
}
|
|
3702
3702
|
}
|
|
3703
|
-
class
|
|
3703
|
+
class ve {
|
|
3704
3704
|
get() {
|
|
3705
3705
|
return {
|
|
3706
3706
|
f2: "START_EDITING",
|
|
@@ -3720,7 +3720,7 @@ class Te {
|
|
|
3720
3720
|
};
|
|
3721
3721
|
}
|
|
3722
3722
|
}
|
|
3723
|
-
class
|
|
3723
|
+
class Re {
|
|
3724
3724
|
get() {
|
|
3725
3725
|
return {
|
|
3726
3726
|
f2: "START_EDITING",
|
|
@@ -3742,13 +3742,13 @@ class Fe {
|
|
|
3742
3742
|
};
|
|
3743
3743
|
}
|
|
3744
3744
|
}
|
|
3745
|
-
function
|
|
3745
|
+
function Ae(d) {
|
|
3746
3746
|
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).filter((e, t, s) => s.indexOf(e) === t).sort((e, t) => {
|
|
3747
|
-
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 },
|
|
3748
|
-
return
|
|
3747
|
+
const s = { cmd: 1, ctrl: 2, alt: 3, shift: 4 }, i = s[e] || 5, o = s[t] || 5;
|
|
3748
|
+
return i !== o ? i - o : e.localeCompare(t);
|
|
3749
3749
|
}).join(" ");
|
|
3750
3750
|
}
|
|
3751
|
-
function
|
|
3751
|
+
function j(d) {
|
|
3752
3752
|
let e = d.key.toLowerCase();
|
|
3753
3753
|
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")) {
|
|
3754
3754
|
const s = d.code.replace("Numpad", "").toLowerCase();
|
|
@@ -3756,9 +3756,9 @@ function X(d) {
|
|
|
3756
3756
|
}
|
|
3757
3757
|
d.code.match(/^F\d+$/) && (e = d.code.toLowerCase()), d.code.match(/^Digit\d+$/) && (e = d.code.replace(/Digit/g, ""));
|
|
3758
3758
|
let t = "";
|
|
3759
|
-
return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"),
|
|
3759
|
+
return d.ctrlKey && (t += " ctrl"), d.altKey && (t += t + " alt"), d.shiftKey && (t += t + " shift"), d.metaKey && (t += t + " cmd"), Ae(t + " " + e);
|
|
3760
3760
|
}
|
|
3761
|
-
class
|
|
3761
|
+
class Ee {
|
|
3762
3762
|
constructor(e) {
|
|
3763
3763
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
3764
3764
|
}
|
|
@@ -3780,7 +3780,7 @@ class Ie {
|
|
|
3780
3780
|
(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)));
|
|
3781
3781
|
}
|
|
3782
3782
|
assignPredefinedSystemShortcutMappings() {
|
|
3783
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
3783
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Re().get()) : Object.assign(this.shortcutActionIdMapping, new ve().get());
|
|
3784
3784
|
}
|
|
3785
3785
|
isMacintosh() {
|
|
3786
3786
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -3803,10 +3803,10 @@ class Ie {
|
|
|
3803
3803
|
return t;
|
|
3804
3804
|
}
|
|
3805
3805
|
findEntity(e) {
|
|
3806
|
-
const t =
|
|
3806
|
+
const t = j(e);
|
|
3807
3807
|
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
3808
3808
|
for (const s in this.shortcutActionIdMapping)
|
|
3809
|
-
if (
|
|
3809
|
+
if (j(e) === t)
|
|
3810
3810
|
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
3811
3811
|
}
|
|
3812
3812
|
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
@@ -3853,7 +3853,7 @@ class Ie {
|
|
|
3853
3853
|
return this.shortcutActionIdMapping;
|
|
3854
3854
|
}
|
|
3855
3855
|
}
|
|
3856
|
-
class
|
|
3856
|
+
class X {
|
|
3857
3857
|
onCheckboxChanged(e) {
|
|
3858
3858
|
}
|
|
3859
3859
|
onContextmenu(e) {
|
|
@@ -3875,7 +3875,7 @@ class K {
|
|
|
3875
3875
|
onFocusChanged(e) {
|
|
3876
3876
|
}
|
|
3877
3877
|
}
|
|
3878
|
-
class
|
|
3878
|
+
class Y {
|
|
3879
3879
|
setStyle(e, t, s) {
|
|
3880
3880
|
return e.style[t] = s, e;
|
|
3881
3881
|
}
|
|
@@ -3902,19 +3902,19 @@ class Q {
|
|
|
3902
3902
|
e.setAttribute(t, s);
|
|
3903
3903
|
}
|
|
3904
3904
|
}
|
|
3905
|
-
class
|
|
3906
|
-
render(e, t, s,
|
|
3907
|
-
if (
|
|
3908
|
-
|
|
3909
|
-
const
|
|
3905
|
+
class Me {
|
|
3906
|
+
render(e, t, s, i, o, r, l) {
|
|
3907
|
+
if (o.isEditable(t, s)) {
|
|
3908
|
+
l.addClass(e, "ge-table-row-input-div");
|
|
3909
|
+
const a = o.getValueAt(t, s);
|
|
3910
3910
|
e.innerHTML = `
|
|
3911
3911
|
<input
|
|
3912
3912
|
type="text"
|
|
3913
|
-
value="${
|
|
3913
|
+
value="${a}"
|
|
3914
3914
|
autofocus
|
|
3915
3915
|
onfocus="this.setSelectionRange(0, this.value.length)"
|
|
3916
3916
|
data-listen="change"
|
|
3917
|
-
data-area="${
|
|
3917
|
+
data-area="${i}"
|
|
3918
3918
|
data-row-index="${t}"
|
|
3919
3919
|
data-col-index="${s}"
|
|
3920
3920
|
data-input-type="text"
|
|
@@ -3923,7 +3923,7 @@ class ke {
|
|
|
3923
3923
|
}
|
|
3924
3924
|
}
|
|
3925
3925
|
}
|
|
3926
|
-
class
|
|
3926
|
+
class Te {
|
|
3927
3927
|
constructor(e = "none", t = "single") {
|
|
3928
3928
|
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
|
|
3929
3929
|
}
|
|
@@ -3942,12 +3942,12 @@ class Le {
|
|
|
3942
3942
|
this.silent || this.listenerArr.forEach((e) => e.onSelectionChanged(this));
|
|
3943
3943
|
}
|
|
3944
3944
|
firstClick(e, t) {
|
|
3945
|
-
this.selectionType === "row" ? this.addRange(
|
|
3945
|
+
this.selectionType === "row" ? this.addRange(R.singleRow(e)) : this.selectionType === "column" && this.addRange(R.singleColumn(t));
|
|
3946
3946
|
}
|
|
3947
3947
|
getSelectionCount(e, t) {
|
|
3948
3948
|
let s = 0;
|
|
3949
|
-
for (const
|
|
3950
|
-
|
|
3949
|
+
for (const i of this.ranges)
|
|
3950
|
+
i.isInRange(e, t) && s++;
|
|
3951
3951
|
return this.allSelected && s++, this.isInNegativeRange(e, t) && (s = 0), s;
|
|
3952
3952
|
}
|
|
3953
3953
|
isInNegativeRange(e, t) {
|
|
@@ -3993,10 +3993,10 @@ class Le {
|
|
|
3993
3993
|
if (this.selectionType === "none")
|
|
3994
3994
|
return;
|
|
3995
3995
|
let t = e;
|
|
3996
|
-
this.selectionType === "row" ? t =
|
|
3996
|
+
this.selectionType === "row" ? t = R.singleRow(e.r1) : this.selectionType === "column" && (t = R.singleColumn(e.c1)), this.negativeRanges.push(t), this.fireChangeEvent();
|
|
3997
3997
|
}
|
|
3998
3998
|
togglePoint(e, t) {
|
|
3999
|
-
this.getSelectionCount(e, t) > 0 ? this.removeSelection(
|
|
3999
|
+
this.getSelectionCount(e, t) > 0 ? this.removeSelection(R.singleCell(e, t)) : this.addSelection(R.singleCell(e, t));
|
|
4000
4000
|
}
|
|
4001
4001
|
isSelected(e, t) {
|
|
4002
4002
|
return this.getSelectionCount(e, t) > 0;
|
|
@@ -4005,7 +4005,7 @@ class Le {
|
|
|
4005
4005
|
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());
|
|
4006
4006
|
}
|
|
4007
4007
|
}
|
|
4008
|
-
class
|
|
4008
|
+
class Fe {
|
|
4009
4009
|
constructor(e = "none") {
|
|
4010
4010
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
4011
4011
|
}
|
|
@@ -4042,7 +4042,7 @@ class Oe {
|
|
|
4042
4042
|
return [this.rowIndex, this.columnIndex];
|
|
4043
4043
|
}
|
|
4044
4044
|
}
|
|
4045
|
-
class
|
|
4045
|
+
class De {
|
|
4046
4046
|
constructor(e = new F(
|
|
4047
4047
|
"❯",
|
|
4048
4048
|
"",
|
|
@@ -4056,17 +4056,17 @@ class ee {
|
|
|
4056
4056
|
}
|
|
4057
4057
|
// `⊖ `, `⊕ `;
|
|
4058
4058
|
}
|
|
4059
|
-
const
|
|
4060
|
-
class
|
|
4059
|
+
const Ie = new Te(), Le = new Fe("cell");
|
|
4060
|
+
class q {
|
|
4061
4061
|
constructor() {
|
|
4062
4062
|
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 = {
|
|
4063
4063
|
header: 34,
|
|
4064
4064
|
body: 34,
|
|
4065
4065
|
footer: 34
|
|
4066
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new
|
|
4066
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new z(), this.headerGroupOptions = new De(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new K(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new Me(), this.getSelectionModel = () => Ie, this.getFocusModel = () => Le;
|
|
4067
4067
|
}
|
|
4068
4068
|
}
|
|
4069
|
-
const
|
|
4069
|
+
const L = class L {
|
|
4070
4070
|
/**
|
|
4071
4071
|
* Returns the content to be copied based on the provided table model, selection model, and focus model.
|
|
4072
4072
|
*
|
|
@@ -4077,28 +4077,28 @@ const k = class k {
|
|
|
4077
4077
|
* @throws {string} Throws an error if neither selection nor focus is defined.
|
|
4078
4078
|
*/
|
|
4079
4079
|
createContent(e, t, s) {
|
|
4080
|
-
return new Promise((
|
|
4080
|
+
return new Promise((i, o) => {
|
|
4081
4081
|
if (t != null && t.hasSelection()) {
|
|
4082
4082
|
const r = this.mergeRanges(t.getRanges());
|
|
4083
4083
|
if (r) {
|
|
4084
4084
|
r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
|
|
4085
|
-
const
|
|
4086
|
-
for (let
|
|
4085
|
+
const l = [];
|
|
4086
|
+
for (let a = r.r1; a <= r.r2; a++) {
|
|
4087
4087
|
const n = [];
|
|
4088
4088
|
for (let c = r.c1; c <= r.c2; c++) {
|
|
4089
|
-
const p = t.isSelected(
|
|
4089
|
+
const p = t.isSelected(a, c) ? e.getBodyModel().getTextValueAt(a, c) : "";
|
|
4090
4090
|
n.push(p);
|
|
4091
4091
|
}
|
|
4092
|
-
|
|
4092
|
+
l.push(n.join(L.columnSeparatorChar));
|
|
4093
4093
|
}
|
|
4094
|
-
return
|
|
4094
|
+
return i(l.join(L.rowSeparatorChar));
|
|
4095
4095
|
}
|
|
4096
4096
|
}
|
|
4097
4097
|
if (s) {
|
|
4098
|
-
const [r,
|
|
4099
|
-
return
|
|
4098
|
+
const [r, l] = s.getFocus(), a = e.getBodyModel().getTextValueAt(r, l);
|
|
4099
|
+
return i(a);
|
|
4100
4100
|
}
|
|
4101
|
-
|
|
4101
|
+
o("Cannot copy, neither selection nor focus defined.");
|
|
4102
4102
|
});
|
|
4103
4103
|
}
|
|
4104
4104
|
/**
|
|
@@ -4119,19 +4119,19 @@ const k = class k {
|
|
|
4119
4119
|
* @returns {Promise<string>} A promise that resolves with the copied text if successful, or rejects if an error occurs.
|
|
4120
4120
|
*/
|
|
4121
4121
|
copyToClipboard(e, t, s) {
|
|
4122
|
-
return new Promise((
|
|
4122
|
+
return new Promise((i, o) => {
|
|
4123
4123
|
this.createContent(
|
|
4124
4124
|
e,
|
|
4125
4125
|
t,
|
|
4126
4126
|
s
|
|
4127
4127
|
).then((r) => {
|
|
4128
|
-
r && this.copyContent(r).then((
|
|
4129
|
-
|
|
4130
|
-
}).catch((
|
|
4131
|
-
|
|
4128
|
+
r && this.copyContent(r).then((l) => {
|
|
4129
|
+
i(r);
|
|
4130
|
+
}).catch((l) => {
|
|
4131
|
+
o();
|
|
4132
4132
|
});
|
|
4133
4133
|
}).catch((r) => {
|
|
4134
|
-
|
|
4134
|
+
o();
|
|
4135
4135
|
});
|
|
4136
4136
|
});
|
|
4137
4137
|
}
|
|
@@ -4144,23 +4144,23 @@ const k = class k {
|
|
|
4144
4144
|
mergeRanges(e) {
|
|
4145
4145
|
let t;
|
|
4146
4146
|
for (const s of e)
|
|
4147
|
-
t ? (t.r1 = Math.min(t.r1, s.r1), t.c1 = Math.min(t.c1, s.c1), t.r2 = Math.max(t.r2, s.r2), t.c2 = Math.max(t.c2, s.c2)) : t = new
|
|
4147
|
+
t ? (t.r1 = Math.min(t.r1, s.r1), t.c1 = Math.min(t.c1, s.c1), t.r2 = Math.max(t.r2, s.r2), t.c2 = Math.max(t.c2, s.c2)) : t = new R(s.r1, s.c1, s.r2, s.c2);
|
|
4148
4148
|
return t;
|
|
4149
4149
|
}
|
|
4150
4150
|
};
|
|
4151
|
-
|
|
4151
|
+
L.columnSeparatorChar = " ", L.rowSeparatorChar = `
|
|
4152
4152
|
`;
|
|
4153
|
-
let
|
|
4154
|
-
class
|
|
4153
|
+
let V = L;
|
|
4154
|
+
class Oe {
|
|
4155
4155
|
constructor(e, t = 500) {
|
|
4156
|
-
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(
|
|
4156
|
+
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(ie(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
|
|
4157
4157
|
}
|
|
4158
4158
|
handleResize(e) {
|
|
4159
4159
|
const t = e[0], { width: s } = t.contentRect;
|
|
4160
4160
|
this.tableScope.recalcColumnWidths(s);
|
|
4161
4161
|
}
|
|
4162
4162
|
}
|
|
4163
|
-
class
|
|
4163
|
+
class Be {
|
|
4164
4164
|
/**
|
|
4165
4165
|
* Downloads a matrix data as an Excel file.
|
|
4166
4166
|
*
|
|
@@ -4171,31 +4171,31 @@ class We {
|
|
|
4171
4171
|
* @throws {Error} Throws an error if the input matrix is not a valid 2D array or if the filename is an empty string.
|
|
4172
4172
|
*/
|
|
4173
4173
|
downloadExcel(e, t = "file.xlsx", s = "") {
|
|
4174
|
-
if (!Array.isArray(e) || e.some((
|
|
4174
|
+
if (!Array.isArray(e) || e.some((i) => !Array.isArray(i)))
|
|
4175
4175
|
throw new Error("Invalid matrix format. Expected a 2D array.");
|
|
4176
4176
|
if ((t == null ? void 0 : t.trim()) === "")
|
|
4177
4177
|
throw new Error("Invalid filename. Filename must be a non-empty string.");
|
|
4178
4178
|
try {
|
|
4179
|
-
const
|
|
4179
|
+
const i = this.generateBuffer(e, s), o = new Blob([i], {
|
|
4180
4180
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
4181
4181
|
}), r = document.createElement("a");
|
|
4182
|
-
r.href = URL.createObjectURL(
|
|
4183
|
-
} catch (
|
|
4184
|
-
throw console.error("Error generating Excel file:",
|
|
4182
|
+
r.href = URL.createObjectURL(o), r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
|
4183
|
+
} catch (i) {
|
|
4184
|
+
throw console.error("Error generating Excel file:", i), new Error("Failed to download Excel file.");
|
|
4185
4185
|
}
|
|
4186
4186
|
}
|
|
4187
4187
|
generateMap(e, t = "") {
|
|
4188
4188
|
const s = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
4189
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>`,
|
|
4190
|
-
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>`,
|
|
4189
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>`, i = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
4190
|
+
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>`, o = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
4191
4191
|
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>${t}</dc:creator><cp:lastModifiedBy>${t}</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">2024-12-13T19:45:08Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2024-12-13T19:45:35Z</dcterms:modified></cp:coreProperties>`, r = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
4192
|
-
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`,
|
|
4193
|
-
<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>`,
|
|
4192
|
+
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`, l = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
4193
|
+
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="0E2841"/></a:dk2><a:lt2><a:srgbClr val="E8E8E8"/></a:lt2><a:accent1><a:srgbClr val="156082"/></a:accent1><a:accent2><a:srgbClr val="E97132"/></a:accent2><a:accent3><a:srgbClr val="196B24"/></a:accent3><a:accent4><a:srgbClr val="0F9ED5"/></a:accent4><a:accent5><a:srgbClr val="A02B93"/></a:accent5><a:accent6><a:srgbClr val="4EA72E"/></a:accent6><a:hlink><a:srgbClr val="467886"/></a:hlink><a:folHlink><a:srgbClr val="96607D"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Aptos Display" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Aptos Narrow" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{2E142A2C-CD16-42D6-873A-C26D2A0506FA}" vid="{1BDDFF52-6CD6-40A5-AB3C-68EB2F1E4D0A}"/></a:ext></a:extLst></a:theme>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
4194
4194
|
<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"?>
|
|
4195
4195
|
<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"?>
|
|
4196
4196
|
<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"?>
|
|
4197
4197
|
<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();
|
|
4198
|
-
return h.set("_rels/.rels", s), h.set("docProps/app.xml",
|
|
4198
|
+
return h.set("_rels/.rels", s), h.set("docProps/app.xml", i), h.set("docProps/core.xml", o), h.set("xl/_rels/workbook.xml.rels", r), h.set("xl/theme/theme1.xml", l), h.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), h.set("xl/sharedStrings.xml", a), h.set("xl/styles.xml", n), h.set("xl/workbook.xml", c), h.set("[Content_Types].xml", p), h;
|
|
4199
4199
|
}
|
|
4200
4200
|
getX1WorksheetsSheet1Xml(e) {
|
|
4201
4201
|
const t = [];
|
|
@@ -4207,18 +4207,18 @@ class We {
|
|
|
4207
4207
|
<sheetFormatPr baseColWidth="10" defaultRowHeight="16" x14ac:dyDescent="0.2"/>
|
|
4208
4208
|
<sheetData>`);
|
|
4209
4209
|
for (let s = 0; s < e.length; s++) {
|
|
4210
|
-
const
|
|
4210
|
+
const i = e[s];
|
|
4211
4211
|
t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
|
|
4212
|
-
for (let
|
|
4213
|
-
const r = o
|
|
4212
|
+
for (let o = 0; o < i.length; o++) {
|
|
4213
|
+
const r = i[o], l = this.getCellAddress(s, o);
|
|
4214
4214
|
if (typeof r == "number")
|
|
4215
|
-
t.push(`<c r="${
|
|
4215
|
+
t.push(`<c r="${l}"><v>${r}</v></c>`);
|
|
4216
4216
|
else if (r instanceof Date) {
|
|
4217
|
-
const
|
|
4218
|
-
t.push(`<c r="${
|
|
4217
|
+
const a = r;
|
|
4218
|
+
t.push(`<c r="${l}" t="inlineStr"><is><t>${a.toISOString()}</t></is></c>`);
|
|
4219
4219
|
} else {
|
|
4220
|
-
const
|
|
4221
|
-
t.push(`<c r="${
|
|
4220
|
+
const a = r != null ? this.escapeXml(String(r)) : "";
|
|
4221
|
+
t.push(`<c r="${l}" t="inlineStr"><is><t>${a}</t></is></c>`);
|
|
4222
4222
|
}
|
|
4223
4223
|
}
|
|
4224
4224
|
t.push("</row>");
|
|
@@ -4231,31 +4231,31 @@ class We {
|
|
|
4231
4231
|
}
|
|
4232
4232
|
getCellAddress(e, t) {
|
|
4233
4233
|
const s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
|
4234
|
-
let
|
|
4234
|
+
let i = "";
|
|
4235
4235
|
for (; t >= 0; )
|
|
4236
|
-
|
|
4237
|
-
return `${
|
|
4236
|
+
i = s[t % 26] + i, t = Math.floor(t / 26) - 1;
|
|
4237
|
+
return `${i}${e + 1}`;
|
|
4238
4238
|
}
|
|
4239
4239
|
createZip(e) {
|
|
4240
4240
|
const t = [];
|
|
4241
4241
|
let s = 0;
|
|
4242
|
-
const
|
|
4242
|
+
const i = [];
|
|
4243
4243
|
e.forEach((p, h) => {
|
|
4244
|
-
const
|
|
4245
|
-
|
|
4244
|
+
const g = new TextEncoder().encode(h), u = new TextEncoder().encode(p), S = new Uint8Array(30 + g.length), f = new DataView(S.buffer);
|
|
4245
|
+
S.set([80, 75, 3, 4], 0), f.setUint16(4, 20, !0), f.setUint16(6, 0, !0), f.setUint16(8, 0, !0), f.setUint16(10, 0, !0), f.setUint16(12, 0, !0), f.setUint32(14, 0, !0), f.setUint32(18, u.length, !0), f.setUint32(22, u.length, !0), f.setUint16(26, g.length, !0), f.setUint16(28, 0, !0), S.set(g, 30), t.push(S, u), i.push({
|
|
4246
4246
|
path: h,
|
|
4247
4247
|
offset: s,
|
|
4248
|
-
contentSize:
|
|
4249
|
-
}), s +=
|
|
4248
|
+
contentSize: u.length
|
|
4249
|
+
}), s += S.length + u.length;
|
|
4250
4250
|
});
|
|
4251
|
-
const
|
|
4252
|
-
|
|
4253
|
-
const h = new TextEncoder().encode(p.path),
|
|
4254
|
-
|
|
4251
|
+
const o = s;
|
|
4252
|
+
i.forEach((p) => {
|
|
4253
|
+
const h = new TextEncoder().encode(p.path), g = new Uint8Array(46 + h.length), u = new DataView(g.buffer);
|
|
4254
|
+
g.set([80, 75, 1, 2], 0), u.setUint16(4, 20, !0), u.setUint16(6, 20, !0), u.setUint16(8, 0, !0), u.setUint16(10, 0, !0), u.setUint16(12, 0, !0), u.setUint16(14, 0, !0), u.setUint32(16, 0, !0), u.setUint32(20, p.contentSize, !0), u.setUint32(24, p.contentSize, !0), u.setUint16(28, h.length, !0), u.setUint16(30, 0, !0), u.setUint16(32, 0, !0), u.setUint16(34, 0, !0), u.setUint16(36, 0, !0), u.setUint32(38, 0, !0), u.setUint32(42, p.offset, !0), g.set(h, 46), t.push(g), s += g.length;
|
|
4255
4255
|
});
|
|
4256
|
-
const r = new Uint8Array(22),
|
|
4257
|
-
r.set([80, 75, 5, 6], 0),
|
|
4258
|
-
const
|
|
4256
|
+
const r = new Uint8Array(22), l = new DataView(r.buffer);
|
|
4257
|
+
r.set([80, 75, 5, 6], 0), l.setUint16(4, 0, !0), l.setUint16(6, 0, !0), l.setUint16(8, i.length, !0), l.setUint16(10, i.length, !0), l.setUint32(12, s - o, !0), l.setUint32(16, o, !0), l.setUint16(20, 0, !0), t.push(r);
|
|
4258
|
+
const a = t.reduce((p, h) => p + h.length, 0), n = new Uint8Array(a);
|
|
4259
4259
|
let c = 0;
|
|
4260
4260
|
for (const p of t)
|
|
4261
4261
|
n.set(p, c), c += p.length;
|
|
@@ -4266,16 +4266,16 @@ class We {
|
|
|
4266
4266
|
return this.createZip(s);
|
|
4267
4267
|
}
|
|
4268
4268
|
}
|
|
4269
|
-
class
|
|
4270
|
-
constructor(e, t, s,
|
|
4269
|
+
class G extends Se {
|
|
4270
|
+
constructor(e, t, s, i, o, r = new V(), l = new Be()) {
|
|
4271
4271
|
var c;
|
|
4272
|
-
if (super(e, t, new
|
|
4272
|
+
if (super(e, t, new oe(s), i), this.eventListener = o, this.copyService = r, this.excelService = l, this.licenseManager = I.getInstance(), this.selectionService = new Ce(this), this.api = new ce(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), o || (this.eventListener = new X()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
|
|
4273
4273
|
const p = this.tableOptions.autoRestoreOptions, h = p.getStorageKeyFn;
|
|
4274
|
-
h && (p.autoRestoreScrollPosition && (this.storeScrollPosStateService = new
|
|
4274
|
+
h && (p.autoRestoreScrollPosition && (this.storeScrollPosStateService = new de(h)), p.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new pe(h)), p.autoRestoreSortingState && (this.storeSortingService = new ue(h)));
|
|
4275
4275
|
}
|
|
4276
|
-
this.mouseHandler = new
|
|
4277
|
-
const
|
|
4278
|
-
|
|
4276
|
+
this.mouseHandler = new le(this), this.inputHandler = new be(this), this.resizeHandler = new Oe(this, i.resizeEventDebounceDelay), this.shortcutService = new Ee(this), this.shortcutService.addListener(this.selectionService);
|
|
4277
|
+
const a = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
4278
|
+
a && a.addEventSelectionChangedListener(this);
|
|
4279
4279
|
const n = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
4280
4280
|
n && n.addEventFocusChangedListener(this);
|
|
4281
4281
|
}
|
|
@@ -4291,8 +4291,8 @@ class N extends Ce {
|
|
|
4291
4291
|
*
|
|
4292
4292
|
* @return {TableScope} - The newly created TableScope instance.
|
|
4293
4293
|
*/
|
|
4294
|
-
static create(e, t, s = new
|
|
4295
|
-
return new
|
|
4294
|
+
static create(e, t, s = new q(), i = new X(), o = new Y(), r = new V()) {
|
|
4295
|
+
return new G(e, t, o, s, i, r);
|
|
4296
4296
|
}
|
|
4297
4297
|
/**
|
|
4298
4298
|
* Triggers an action based on the provided actionId.
|
|
@@ -4308,19 +4308,19 @@ class N extends Ce {
|
|
|
4308
4308
|
if (e === "START_EDITING" && this.getFocusModel) {
|
|
4309
4309
|
const t = this.getFocusModel();
|
|
4310
4310
|
if (t) {
|
|
4311
|
-
const [s,
|
|
4312
|
-
this.tableModel.getBodyModel().isEditable(s,
|
|
4311
|
+
const [s, i] = t.getFocus();
|
|
4312
|
+
this.tableModel.getBodyModel().isEditable(s, i) && (this.clearSelection(), this.initRenderEditor(s, i));
|
|
4313
4313
|
}
|
|
4314
4314
|
return !0;
|
|
4315
4315
|
}
|
|
4316
4316
|
if (e === "COPY_2_CLIPBOARD") {
|
|
4317
4317
|
const t = this.getSelectionModel ? this.getSelectionModel() : void 0, s = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
4318
|
-
this.copyService.createContent(this.tableModel, t, s).then((
|
|
4318
|
+
this.copyService.createContent(this.tableModel, t, s).then((i) => this.copyService.copyContent(i));
|
|
4319
4319
|
}
|
|
4320
4320
|
return !1;
|
|
4321
4321
|
}
|
|
4322
|
-
updateModelValueAfterEdit(e, t, s,
|
|
4323
|
-
e === "body" && this.tableModel.getAreaModel(e).setValue(t, s,
|
|
4322
|
+
updateModelValueAfterEdit(e, t, s, i) {
|
|
4323
|
+
e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, i) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(_.createSingle(t, s)), this.hostElement.focus());
|
|
4324
4324
|
}
|
|
4325
4325
|
/**
|
|
4326
4326
|
* Retrieves the TableApi object.
|
|
@@ -4349,16 +4349,16 @@ class N extends Ce {
|
|
|
4349
4349
|
* @return {GeMouseEvent} - The created GeMouseEvent object.
|
|
4350
4350
|
*/
|
|
4351
4351
|
createGeMouseEvent(e) {
|
|
4352
|
-
const t = new
|
|
4352
|
+
const t = new W();
|
|
4353
4353
|
if (t.originalEvent = e, e) {
|
|
4354
4354
|
const s = e.target;
|
|
4355
4355
|
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) {
|
|
4356
|
-
const
|
|
4357
|
-
t.rowTop =
|
|
4356
|
+
const i = this.tableModel.getAreaModel(t.areaIdent);
|
|
4357
|
+
t.rowTop = i.getYPosByRowIndex(t.rowIndex);
|
|
4358
4358
|
}
|
|
4359
4359
|
if (t.columnLeft = this.tableModel.getXPosByColumnIndex(t.columnIndex), e.ctrlKey && e.altKey) {
|
|
4360
|
-
const
|
|
4361
|
-
this.debugOnce(
|
|
4360
|
+
const i = e.clientY - this.hostElement.offsetTop - this.areaHeaderCenter.parent.clientHeight, o = e.clientX - this.hostElement.offsetLeft - this.areaBodyWestGeo.width;
|
|
4361
|
+
this.debugOnce(o, i);
|
|
4362
4362
|
}
|
|
4363
4363
|
}
|
|
4364
4364
|
return t;
|
|
@@ -4407,10 +4407,10 @@ class N extends Ce {
|
|
|
4407
4407
|
* @return {void}
|
|
4408
4408
|
*/
|
|
4409
4409
|
contextmenu(e) {
|
|
4410
|
-
var s,
|
|
4410
|
+
var s, i;
|
|
4411
4411
|
const t = Date.now();
|
|
4412
4412
|
if (t - this.lastContextmenu < 50) {
|
|
4413
|
-
this.lastContextmenu = t, (s = e.originalEvent) == null || s.preventDefault(), (
|
|
4413
|
+
this.lastContextmenu = t, (s = e.originalEvent) == null || s.preventDefault(), (i = e.originalEvent) == null || i.stopImmediatePropagation();
|
|
4414
4414
|
return;
|
|
4415
4415
|
}
|
|
4416
4416
|
this.lastContextmenu = t, this.eventListener.onContextmenu(e);
|
|
@@ -4425,7 +4425,7 @@ class N extends Ce {
|
|
|
4425
4425
|
toggleExpandCollapseAll(e = !0) {
|
|
4426
4426
|
var s;
|
|
4427
4427
|
const t = this.tableModel.getBodyModel();
|
|
4428
|
-
|
|
4428
|
+
P(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
|
|
4429
4429
|
}
|
|
4430
4430
|
/**
|
|
4431
4431
|
* Toggles the checkbox state of a specific row in a table.
|
|
@@ -4437,11 +4437,11 @@ class N extends Ce {
|
|
|
4437
4437
|
* @return {void} - This method does not return anything.
|
|
4438
4438
|
*/
|
|
4439
4439
|
toggleRowCheckbox(e, t, s) {
|
|
4440
|
-
var
|
|
4441
|
-
const
|
|
4442
|
-
|
|
4443
|
-
const
|
|
4444
|
-
this.eventListener.onCheckboxChanged(
|
|
4440
|
+
var a;
|
|
4441
|
+
const i = this.tableModel.getAreaModel(s), o = i.isRowChecked(e), r = o === void 0 || o === "semi" || o === "none";
|
|
4442
|
+
i.setRowChecked(e, r), this.repaint();
|
|
4443
|
+
const l = (a = i.rowSelectionModel) == null ? void 0 : a.getCheckedRows();
|
|
4444
|
+
this.eventListener.onCheckboxChanged(l || []);
|
|
4445
4445
|
}
|
|
4446
4446
|
/**
|
|
4447
4447
|
* Handle mouse click events.
|
|
@@ -4454,8 +4454,8 @@ class N extends Ce {
|
|
|
4454
4454
|
let s = this.selectionService.onMouseClicked(e, t);
|
|
4455
4455
|
if (!s && this.getFocusModel) {
|
|
4456
4456
|
this.resetEditorRenderer();
|
|
4457
|
-
const
|
|
4458
|
-
|
|
4457
|
+
const i = this.getFocusModel();
|
|
4458
|
+
i && (s = i.hasChanged(), i.clearChanged());
|
|
4459
4459
|
}
|
|
4460
4460
|
return s;
|
|
4461
4461
|
}
|
|
@@ -4491,12 +4491,12 @@ class N extends Ce {
|
|
|
4491
4491
|
* @return {void}
|
|
4492
4492
|
*/
|
|
4493
4493
|
onHeaderDblClicked(e, t, s) {
|
|
4494
|
-
var
|
|
4495
|
-
const
|
|
4496
|
-
if (
|
|
4494
|
+
var o, r;
|
|
4495
|
+
const i = this.tableModel.getColumnDef(s);
|
|
4496
|
+
if (i != null && i.sortable && i.sortable()) {
|
|
4497
4497
|
e.preventDefault(), e.stopPropagation();
|
|
4498
|
-
const
|
|
4499
|
-
this.tableModel.doSort([c]) && ((
|
|
4498
|
+
const l = i.sortStatesOrder ? i.sortStatesOrder : this.tableOptions.sortOrder, a = i.sortState ?? "", n = l[(l.indexOf(a) + 1) % l.length], c = new ye(s, n);
|
|
4499
|
+
this.tableModel.doSort([c]) && ((o = this.tableModel.getColumnDefs()) == null || o.forEach((h) => h.sortState = ""), i.sortState = n), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
|
|
4500
4500
|
}
|
|
4501
4501
|
}
|
|
4502
4502
|
/**
|
|
@@ -4518,13 +4518,13 @@ class N extends Ce {
|
|
|
4518
4518
|
* @return {void}
|
|
4519
4519
|
*/
|
|
4520
4520
|
scrollToIndex(e, t) {
|
|
4521
|
-
const
|
|
4522
|
-
this.scrollToPixel(0,
|
|
4521
|
+
const i = this.tableModel.getAreaModel("body").getYPosByRowIndex(t);
|
|
4522
|
+
this.scrollToPixel(0, i);
|
|
4523
4523
|
}
|
|
4524
4524
|
adjustAfterScrolling() {
|
|
4525
4525
|
super.adjustAfterScrolling();
|
|
4526
4526
|
const e = this.scrollViewport;
|
|
4527
|
-
this.eventListener.onScroll(new
|
|
4527
|
+
this.eventListener.onScroll(new we(
|
|
4528
4528
|
this.scrollTop,
|
|
4529
4529
|
this.scrollLeft,
|
|
4530
4530
|
e.scrollHeight,
|
|
@@ -4582,8 +4582,8 @@ class N extends Ce {
|
|
|
4582
4582
|
if (!this.isEditing() && this.getFocusModel) {
|
|
4583
4583
|
const s = this.getFocusModel();
|
|
4584
4584
|
if (s) {
|
|
4585
|
-
const [
|
|
4586
|
-
return s.setFocus(
|
|
4585
|
+
const [i, o] = s.getFocus();
|
|
4586
|
+
return s.setFocus(i + t, o + e), this.repaint(), !0;
|
|
4587
4587
|
}
|
|
4588
4588
|
}
|
|
4589
4589
|
return !1;
|
|
@@ -4652,24 +4652,24 @@ class N extends Ce {
|
|
|
4652
4652
|
autoRestoreCollapsedExpandedState() {
|
|
4653
4653
|
var e, t;
|
|
4654
4654
|
if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.getRowId && this.storeStateCollapsedExpandService) {
|
|
4655
|
-
const s = this.tableOptions.autoRestoreOptions,
|
|
4656
|
-
if (s.autoRestoreCollapsedExpandedState &&
|
|
4657
|
-
const
|
|
4658
|
-
if (
|
|
4659
|
-
const
|
|
4660
|
-
for (let n = 0; n <
|
|
4655
|
+
const s = this.tableOptions.autoRestoreOptions, i = s.getRowId;
|
|
4656
|
+
if (s.autoRestoreCollapsedExpandedState && i) {
|
|
4657
|
+
const o = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
4658
|
+
if (P(r)) {
|
|
4659
|
+
const l = r, a = r.getRowCount();
|
|
4660
|
+
for (let n = 0; n < a; n++) {
|
|
4661
4661
|
const c = r.getRowByIndex(n);
|
|
4662
4662
|
if (c)
|
|
4663
|
-
if (
|
|
4663
|
+
if (o.allExpanded)
|
|
4664
4664
|
c.expanded = !0;
|
|
4665
|
-
else if (
|
|
4665
|
+
else if (o.allCollapsed)
|
|
4666
4666
|
c.expanded = !1;
|
|
4667
4667
|
else {
|
|
4668
|
-
const p =
|
|
4669
|
-
|
|
4668
|
+
const p = i(c.data);
|
|
4669
|
+
o.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(p) : o.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(p));
|
|
4670
4670
|
}
|
|
4671
4671
|
}
|
|
4672
|
-
|
|
4672
|
+
l.recalcVisibleTreeRows();
|
|
4673
4673
|
}
|
|
4674
4674
|
}
|
|
4675
4675
|
}
|
|
@@ -4678,13 +4678,13 @@ class N extends Ce {
|
|
|
4678
4678
|
const e = this.tableModel.getBodyModel(), t = this.tableModel.getColumnCount(), s = (e == null ? void 0 : e.getRowCount()) ?? 0;
|
|
4679
4679
|
if (!e)
|
|
4680
4680
|
return console.warn("Body model is not available."), [];
|
|
4681
|
-
const
|
|
4682
|
-
for (let
|
|
4681
|
+
const i = new Array(t).fill(0);
|
|
4682
|
+
for (let o = 0; o < s; o++)
|
|
4683
4683
|
for (let r = 0; r < t; r++) {
|
|
4684
|
-
const
|
|
4685
|
-
|
|
4684
|
+
const l = e.getValueAt(o, r), a = (l == null ? void 0 : l.toString().length) || 0;
|
|
4685
|
+
a > i[r] && (i[r] = a);
|
|
4686
4686
|
}
|
|
4687
|
-
return
|
|
4687
|
+
return i.map((o) => Math.max(o * 10, 50));
|
|
4688
4688
|
}
|
|
4689
4689
|
setColumnWidth(e, t) {
|
|
4690
4690
|
this.tableModel.setColumnWidth(e, t);
|
|
@@ -4692,8 +4692,8 @@ class N extends Ce {
|
|
|
4692
4692
|
autoResizeColumns(e = !0) {
|
|
4693
4693
|
const t = this.calcAutoColumnWidths();
|
|
4694
4694
|
for (let s = 0; s < t.length; s++) {
|
|
4695
|
-
const
|
|
4696
|
-
this.tableModel.setColumnWidth(s,
|
|
4695
|
+
const i = t[s];
|
|
4696
|
+
this.tableModel.setColumnWidth(s, i);
|
|
4697
4697
|
}
|
|
4698
4698
|
e && this.recalcWrappers();
|
|
4699
4699
|
}
|
|
@@ -4760,289 +4760,11 @@ class N extends Ce {
|
|
|
4760
4760
|
* @see {@link getDisplayedRowCount} - Related method for getting visible row count
|
|
4761
4761
|
*/
|
|
4762
4762
|
ensureRowIsVisible(e) {
|
|
4763
|
-
const t = this.getFirstFullVisibleRowIndex(), s = this.getLastFullVisibleRowIndex(),
|
|
4764
|
-
return e < t ? (this.scrollToIndex(0, e), !0) : e > s ? (this.scrollToIndex(0, e -
|
|
4763
|
+
const t = this.getFirstFullVisibleRowIndex(), s = this.getLastFullVisibleRowIndex(), i = this.getDisplayedRowCount();
|
|
4764
|
+
return e < t ? (this.scrollToIndex(0, e), !0) : e > s ? (this.scrollToIndex(0, e - i + 1), !0) : !1;
|
|
4765
4765
|
}
|
|
4766
4766
|
}
|
|
4767
|
-
const
|
|
4768
|
-
};
|
|
4769
|
-
P.themes = ["light", "combat", "paper", "blackboard"], P.vars = {
|
|
4770
|
-
light: `html[data-theme="light"] {
|
|
4771
|
-
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
4772
|
-
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
4773
|
-
--ge-table-header-center-bg: rgba(233, 233, 233, 0.5);
|
|
4774
|
-
--ge-table-header-east-bg: rgba(233, 233, 233, 0.5);
|
|
4775
|
-
--ge-table-header-west-text: #000;
|
|
4776
|
-
--ge-table-header-center-text: #000;
|
|
4777
|
-
--ge-table-header-east-text: #000;
|
|
4778
|
-
--ge-table-header-west-horizontal-border: #ddd;
|
|
4779
|
-
--ge-table-header-west-vertical-border: #ccc;
|
|
4780
|
-
--ge-table-header-center-horizontal-border: #ddd;
|
|
4781
|
-
--ge-table-header-center-vertical-border: #ccc;
|
|
4782
|
-
--ge-table-header-east-horizontal-border: #ddd;
|
|
4783
|
-
--ge-table-header-east-vertical-border: #ccc;
|
|
4784
|
-
--ge-table-body-west-bg: rgba(233, 233, 233, 0.5);
|
|
4785
|
-
--ge-table-body-center-bg: rgba(255,255,255, 0.5);
|
|
4786
|
-
--ge-table-body-east-bg: rgba(233, 233, 233, 0.5);
|
|
4787
|
-
--ge-table-body-west-text: #000;
|
|
4788
|
-
--ge-table-body-center-text: #000;
|
|
4789
|
-
--ge-table-body-east-text: #000;
|
|
4790
|
-
--ge-table-body-west-horizontal-border: #ddd;
|
|
4791
|
-
--ge-table-body-west-vertical-border: #ccc;
|
|
4792
|
-
--ge-table-body-center-horizontal-border: #bbb;
|
|
4793
|
-
--ge-table-body-center-vertical-border: #ddd;
|
|
4794
|
-
--ge-table-body-east-horizontal-border: #ddd;
|
|
4795
|
-
--ge-table-body-east-vertical-border: #ccc;
|
|
4796
|
-
--ge-table-body-west-selected-range-bg: rgba(0, 152, 219, 0.4);
|
|
4797
|
-
--ge-table-body-center-selected-range-bg: rgba(0, 152, 219, 0.4);
|
|
4798
|
-
--ge-table-body-east-selected-range-bg: rgba(0, 152, 219, 0.4);
|
|
4799
|
-
--ge-table-body-west-selected-range-text: #000;
|
|
4800
|
-
--ge-table-body-center-selected-range-text: #000;
|
|
4801
|
-
--ge-table-body-east-selected-range-text: #000;
|
|
4802
|
-
--ge-table-footer-west-bg: rgba(233, 233, 233, 0.5);
|
|
4803
|
-
--ge-table-footer-center-bg: rgba(233, 233, 233, 0.5);
|
|
4804
|
-
--ge-table-footer-east-bg: rgba(233, 233, 233, 0.5);
|
|
4805
|
-
--ge-table-footer-west-text: #000;
|
|
4806
|
-
--ge-table-footer-center-text: #000;
|
|
4807
|
-
--ge-table-footer-east-text: #000;
|
|
4808
|
-
--ge-table-footer-west-horizontal-border: #ddd;
|
|
4809
|
-
--ge-table-footer-west-vertical-border: #ccc;
|
|
4810
|
-
--ge-table-footer-center-horizontal-border: #ddd;
|
|
4811
|
-
--ge-table-footer-center-vertical-border: #ccc;
|
|
4812
|
-
--ge-table-footer-east-horizontal-border: #ddd;
|
|
4813
|
-
--ge-table-footer-east-vertical-border: #ccc;
|
|
4814
|
-
--ge-table-border: #ccc;
|
|
4815
|
-
--ge-table-row-odd-bg: transparent;
|
|
4816
|
-
--ge-table-row-even-bg: transparent;
|
|
4817
|
-
--ge-table-column-odd-bg: transparent;
|
|
4818
|
-
--ge-table-column-even-bg: transparent;
|
|
4819
|
-
--ge-table-hover-column-bg: rgba(0, 224, 255, 0.27);
|
|
4820
|
-
--ge-table-hover-row-bg: rgba(0, 224, 255, 0.27);
|
|
4821
|
-
--ge-table-focus-border: rgb(0, 255, 255);
|
|
4822
|
-
--ge-table-color-error-text: #e00034;
|
|
4823
|
-
--ge-table-tree-arrow-collapsed-color: #e00034;
|
|
4824
|
-
--ge-table-column-resize-handle-border: rgb(0, 255, 255);
|
|
4825
|
-
--ge-table-dragged-col-div-bg: lightcyan;
|
|
4826
|
-
--ge-table-drop-zone-bg: rgba(244, 255, 242, 0.6);
|
|
4827
|
-
}`,
|
|
4828
|
-
combat: `html[data-theme="combat"] {
|
|
4829
|
-
--ge-table-bg: #101010;
|
|
4830
|
-
--ge-table-header-west-bg: #101010;
|
|
4831
|
-
--ge-table-header-center-bg: #101010;
|
|
4832
|
-
--ge-table-header-east-bg: #101010;
|
|
4833
|
-
--ge-table-header-west-text: oklch(100% 0 0);
|
|
4834
|
-
--ge-table-header-center-text: oklch(100% 0 0);
|
|
4835
|
-
--ge-table-header-east-text: oklch(100% 0 0);
|
|
4836
|
-
--ge-table-header-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4837
|
-
--ge-table-header-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
4838
|
-
--ge-table-header-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4839
|
-
--ge-table-header-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
4840
|
-
--ge-table-header-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4841
|
-
--ge-table-header-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
4842
|
-
--ge-table-body-west-bg: #101010;
|
|
4843
|
-
--ge-table-body-center-bg: #101010;
|
|
4844
|
-
--ge-table-body-east-bg: #101010;
|
|
4845
|
-
--ge-table-body-west-text: #b6b4b4;
|
|
4846
|
-
--ge-table-body-center-text: #b6b4b4;
|
|
4847
|
-
--ge-table-body-east-text: #b6b4b4;
|
|
4848
|
-
--ge-table-body-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4849
|
-
--ge-table-body-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
4850
|
-
--ge-table-body-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4851
|
-
--ge-table-body-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
4852
|
-
--ge-table-body-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4853
|
-
--ge-table-body-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
4854
|
-
--ge-table-body-west-selected-range-bg: oklch(20% 0.2 39.6 / 37%);
|
|
4855
|
-
--ge-table-body-center-selected-range-bg: oklch(20% 0.2 39.6 / 37%);
|
|
4856
|
-
--ge-table-body-east-selected-range-bg: oklch(20% 0.2 39.6 / 37%);
|
|
4857
|
-
--ge-table-body-west-selected-range-text: #f00032;
|
|
4858
|
-
--ge-table-body-center-selected-range-text: #f00032;
|
|
4859
|
-
--ge-table-body-east-selected-range-text: #f00032;
|
|
4860
|
-
--ge-table-footer-west-bg: #101010;
|
|
4861
|
-
--ge-table-footer-center-bg: #101010;
|
|
4862
|
-
--ge-table-footer-east-bg: #101010;
|
|
4863
|
-
--ge-table-footer-west-text: oklch(100% 0 0);
|
|
4864
|
-
--ge-table-footer-center-text: oklch(100% 0 0);
|
|
4865
|
-
--ge-table-footer-east-text: oklch(100% 0 0);
|
|
4866
|
-
--ge-table-footer-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4867
|
-
--ge-table-footer-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
4868
|
-
--ge-table-footer-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4869
|
-
--ge-table-footer-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
4870
|
-
--ge-table-footer-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4871
|
-
--ge-table-footer-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
4872
|
-
--ge-table-border: oklch(100% 0 0 / 0%);
|
|
4873
|
-
--ge-table-row-odd-bg: oklch(100% 0 0 / 0%);
|
|
4874
|
-
--ge-table-row-even-bg: oklch(100% 0 0 / 0%);
|
|
4875
|
-
--ge-table-column-odd-bg: oklch(100% 0 0 / 0%);
|
|
4876
|
-
--ge-table-column-even-bg: oklch(100% 0 0 / 0%);
|
|
4877
|
-
--ge-table-hover-column-bg: oklch(34% 0.25 3.6 / 27%);
|
|
4878
|
-
--ge-table-hover-row-bg: oklch(34% 0.25 3.6 / 27%);
|
|
4879
|
-
--ge-table-focus-border: oklch(40% 0.25 3.6);
|
|
4880
|
-
--ge-table-color-error-text: oklch(65% 0.31 43.2);
|
|
4881
|
-
--ge-table-tree-arrow-collapsed-color: #e00034;
|
|
4882
|
-
--ge-table-column-resize-handle-border: oklch(63% 0.31 43.2);
|
|
4883
|
-
--ge-table-dragged-col-div-bg: #2c2e33;
|
|
4884
|
-
--ge-table-drop-zone-bg: #101010;
|
|
4885
|
-
}`,
|
|
4886
|
-
paper: `html[data-theme="paper"] {
|
|
4887
|
-
--ge-table-bg: #e7e5df;
|
|
4888
|
-
--ge-table-header-west-bg: oklch(80% 0.02 99 / 48%);
|
|
4889
|
-
--ge-table-header-center-bg: oklch(80% 0.02 99 / 48%);
|
|
4890
|
-
--ge-table-header-east-bg: oklch(80% 0.02 99 / 48%);
|
|
4891
|
-
--ge-table-header-west-text: #111;
|
|
4892
|
-
--ge-table-header-center-text: #111;
|
|
4893
|
-
--ge-table-header-east-text: #111;
|
|
4894
|
-
--ge-table-header-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4895
|
-
--ge-table-header-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
4896
|
-
--ge-table-header-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4897
|
-
--ge-table-header-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
4898
|
-
--ge-table-header-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4899
|
-
--ge-table-header-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
4900
|
-
--ge-table-body-west-bg: oklch(80% 0.02 99 / 48%);
|
|
4901
|
-
--ge-table-body-center-bg: #e7e5df;
|
|
4902
|
-
--ge-table-body-east-bg: oklch(80% 0.02 99 / 48%);
|
|
4903
|
-
--ge-table-body-west-text: #000;
|
|
4904
|
-
--ge-table-body-center-text: #000;
|
|
4905
|
-
--ge-table-body-east-text: #000;
|
|
4906
|
-
--ge-table-body-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4907
|
-
--ge-table-body-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
4908
|
-
--ge-table-body-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4909
|
-
--ge-table-body-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
4910
|
-
--ge-table-body-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4911
|
-
--ge-table-body-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
4912
|
-
--ge-table-body-west-selected-range-bg: #cfcdc2;
|
|
4913
|
-
--ge-table-body-center-selected-range-bg: #cfcdc2;
|
|
4914
|
-
--ge-table-body-east-selected-range-bg: #cfcdc2;
|
|
4915
|
-
--ge-table-body-west-selected-range-text: #000;
|
|
4916
|
-
--ge-table-body-center-selected-range-text: #000;
|
|
4917
|
-
--ge-table-body-east-selected-range-text: #000;
|
|
4918
|
-
--ge-table-footer-west-bg: oklch(80% 0.02 99 / 48%);
|
|
4919
|
-
--ge-table-footer-center-bg: oklch(80% 0.02 99 / 48%);
|
|
4920
|
-
--ge-table-footer-east-bg: oklch(80% 0.02 99 / 48%);
|
|
4921
|
-
--ge-table-footer-west-text: #111;
|
|
4922
|
-
--ge-table-footer-center-text: #111;
|
|
4923
|
-
--ge-table-footer-east-text: #111;
|
|
4924
|
-
--ge-table-footer-west-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4925
|
-
--ge-table-footer-west-vertical-border: oklch(100% 0 0 / 0%);
|
|
4926
|
-
--ge-table-footer-center-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4927
|
-
--ge-table-footer-center-vertical-border: oklch(100% 0 0 / 0%);
|
|
4928
|
-
--ge-table-footer-east-horizontal-border: oklch(100% 0 0 / 0%);
|
|
4929
|
-
--ge-table-footer-east-vertical-border: oklch(100% 0 0 / 0%);
|
|
4930
|
-
--ge-table-border: oklch(100% 0 0 / 0%);
|
|
4931
|
-
--ge-table-row-odd-bg: oklch(100% 0 0 / 0%);
|
|
4932
|
-
--ge-table-row-even-bg: oklch(100% 0 0 / 0%);
|
|
4933
|
-
--ge-table-column-odd-bg: oklch(100% 0 0 / 0%);
|
|
4934
|
-
--ge-table-column-even-bg: oklch(100% 0 0 / 0%);
|
|
4935
|
-
--ge-table-hover-column-bg: oklch(5% 0.2 266.40000000000003 / 9%);
|
|
4936
|
-
--ge-table-hover-row-bg: oklch(5% 0.2 266.40000000000003 / 9%);
|
|
4937
|
-
--ge-table-focus-border: oklch(100% 0.19 205.20000000000002);
|
|
4938
|
-
--ge-table-color-error-text: oklch(45% 0.25 43.2);
|
|
4939
|
-
--ge-table-tree-arrow-collapsed-color: #e00034;
|
|
4940
|
-
--ge-table-column-resize-handle-border: oklch(100% 0.19 205.20000000000002 / 71%);
|
|
4941
|
-
--ge-table-dragged-col-div-bg: #2c2e33;
|
|
4942
|
-
--ge-table-drop-zone-bg: #e7e5df;
|
|
4943
|
-
}`,
|
|
4944
|
-
blackboard: `html[data-theme="dark"] {
|
|
4945
|
-
--ge-table-bg: #0c1021;
|
|
4946
|
-
--ge-table-header-west-bg: #0c1021;
|
|
4947
|
-
--ge-table-header-center-bg: #0c1021;
|
|
4948
|
-
--ge-table-header-east-bg: #0c1021;
|
|
4949
|
-
--ge-table-header-west-text: #e0df85;
|
|
4950
|
-
--ge-table-header-center-text: #e0df85;
|
|
4951
|
-
--ge-table-header-east-text: #e0df85;
|
|
4952
|
-
--ge-table-header-west-horizontal-border: transparent;
|
|
4953
|
-
--ge-table-header-west-vertical-border: transparent;
|
|
4954
|
-
--ge-table-header-center-horizontal-border: transparent;
|
|
4955
|
-
--ge-table-header-center-vertical-border: transparent;
|
|
4956
|
-
--ge-table-header-east-horizontal-border: transparent;
|
|
4957
|
-
--ge-table-header-east-vertical-border: transparent;
|
|
4958
|
-
--ge-table-body-west-bg: #0c1021;
|
|
4959
|
-
--ge-table-body-center-bg: #0c1021;
|
|
4960
|
-
--ge-table-body-east-bg: #0c1021;
|
|
4961
|
-
--ge-table-body-west-text: #a7a7a7;
|
|
4962
|
-
--ge-table-body-center-text: #a7a7a7;
|
|
4963
|
-
--ge-table-body-east-text: #a7a7a7;
|
|
4964
|
-
--ge-table-body-west-horizontal-border: transparent;
|
|
4965
|
-
--ge-table-body-west-vertical-border: transparent;
|
|
4966
|
-
--ge-table-body-center-horizontal-border: transparent;
|
|
4967
|
-
--ge-table-body-center-vertical-border: transparent;
|
|
4968
|
-
--ge-table-body-east-horizontal-border: transparent;
|
|
4969
|
-
--ge-table-body-east-vertical-border: transparent;
|
|
4970
|
-
--ge-table-body-west-selected-range-bg: #758129;
|
|
4971
|
-
--ge-table-body-center-selected-range-bg: #758129;
|
|
4972
|
-
--ge-table-body-east-selected-range-bg: #758129;
|
|
4973
|
-
--ge-table-body-west-selected-range-text: oklch(100% 0 0);
|
|
4974
|
-
--ge-table-body-center-selected-range-text: oklch(100% 0 0);
|
|
4975
|
-
--ge-table-body-east-selected-range-text: oklch(100% 0 0);
|
|
4976
|
-
--ge-table-footer-west-bg: #0c1021;
|
|
4977
|
-
--ge-table-footer-center-bg: #0c1021;
|
|
4978
|
-
--ge-table-footer-east-bg: #0c1021;
|
|
4979
|
-
--ge-table-footer-west-text: #e0df85;
|
|
4980
|
-
--ge-table-footer-center-text: #e0df85;
|
|
4981
|
-
--ge-table-footer-east-text: #e0df85;
|
|
4982
|
-
--ge-table-footer-west-horizontal-border: transparent;
|
|
4983
|
-
--ge-table-footer-west-vertical-border: transparent;
|
|
4984
|
-
--ge-table-footer-center-horizontal-border: transparent;
|
|
4985
|
-
--ge-table-footer-center-vertical-border: otransparent;
|
|
4986
|
-
--ge-table-footer-east-horizontal-border: transparent;
|
|
4987
|
-
--ge-table-footer-east-vertical-border: transparent;
|
|
4988
|
-
--ge-table-border: oklch(0% 0 0);
|
|
4989
|
-
--ge-table-row-odd-bg: oklch(100% 0 0 / 0%);
|
|
4990
|
-
--ge-table-row-even-bg: oklch(100% 0 0 / 0%);
|
|
4991
|
-
--ge-table-column-odd-bg: oklch(100% 0 0 / 0%);
|
|
4992
|
-
--ge-table-column-even-bg: oklch(100% 0 0 / 0%);
|
|
4993
|
-
--ge-table-hover-column-bg: #a9a9a9;
|
|
4994
|
-
--ge-table-hover-row-bg: #a9a9a9;
|
|
4995
|
-
--ge-table-focus-border: #e1ff00;
|
|
4996
|
-
--ge-table-color-error-text: #ff0040;
|
|
4997
|
-
--ge-table-tree-arrow-collapsed-color: #e00034;
|
|
4998
|
-
--ge-table-column-resize-handle-border: oklch(0% 0 0);
|
|
4999
|
-
--ge-table-dragged-col-div-bg: #2c2e33;
|
|
5000
|
-
--ge-table-drop-zone-bg: #758129;
|
|
5001
|
-
}`
|
|
5002
|
-
};
|
|
5003
|
-
let Y = P;
|
|
5004
|
-
const V = class V {
|
|
5005
|
-
constructor(e = new ee()) {
|
|
5006
|
-
this.headerGroupOptions = e;
|
|
5007
|
-
}
|
|
5008
|
-
render(e, t, s, o, i, r, a) {
|
|
5009
|
-
const l = r != null && r.data ? r.data : "";
|
|
5010
|
-
if (r) {
|
|
5011
|
-
const { toggle: n, visibility: c, closed: p } = r, h = n ? V.toggleHeaderGroup : "";
|
|
5012
|
-
this.addText(e, o, t, s, l, h), n && c !== "always" && this.addArrowDiv(a, e, !p, t, s, o, h);
|
|
5013
|
-
} else
|
|
5014
|
-
this.addText(e, o, t, s, l, "");
|
|
5015
|
-
}
|
|
5016
|
-
addText(e, t, s, o, i, r) {
|
|
5017
|
-
e.innerHTML = `<span
|
|
5018
|
-
data-ge-action="${r}"
|
|
5019
|
-
data-area="${t}"
|
|
5020
|
-
data-row-index="${s}"
|
|
5021
|
-
data-col-index="${o}"
|
|
5022
|
-
>${i}</span>`;
|
|
5023
|
-
}
|
|
5024
|
-
addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", a) {
|
|
5025
|
-
const l = e.createElement("div");
|
|
5026
|
-
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}`);
|
|
5027
|
-
let n;
|
|
5028
|
-
s ? n = this.headerGroupOptions.iconExpanded : n = this.headerGroupOptions.iconCollapsed;
|
|
5029
|
-
const c = n.content, p = e.createText(c);
|
|
5030
|
-
e.appendChild(l, p), n.style && this.applyStyleString(e, l, n.style);
|
|
5031
|
-
for (const h of n.classes)
|
|
5032
|
-
e.addClass(l, h);
|
|
5033
|
-
return e.appendChild(t, l), l;
|
|
5034
|
-
}
|
|
5035
|
-
applyStyleString(e, t, s) {
|
|
5036
|
-
const o = s.split(";").map((i) => i.trim()).filter((i) => i);
|
|
5037
|
-
for (const i of o) {
|
|
5038
|
-
const [r, a] = i.split(":");
|
|
5039
|
-
e.setStyle(t, r.trim(), a.trim());
|
|
5040
|
-
}
|
|
5041
|
-
}
|
|
5042
|
-
};
|
|
5043
|
-
V.toggleHeaderGroup = "toggleHeaderGroup";
|
|
5044
|
-
let q = V;
|
|
5045
|
-
const He = se({
|
|
4767
|
+
const Ve = J({
|
|
5046
4768
|
inheritAttrs: !1,
|
|
5047
4769
|
props: {
|
|
5048
4770
|
tableModel: {
|
|
@@ -5051,7 +4773,7 @@ const He = se({
|
|
|
5051
4773
|
},
|
|
5052
4774
|
tableOptions: {
|
|
5053
4775
|
required: !1,
|
|
5054
|
-
default: new
|
|
4776
|
+
default: new q(),
|
|
5055
4777
|
type: Object
|
|
5056
4778
|
},
|
|
5057
4779
|
debounceMouseClickDelay: {
|
|
@@ -5077,100 +4799,100 @@ const He = se({
|
|
|
5077
4799
|
"scroll"
|
|
5078
4800
|
],
|
|
5079
4801
|
setup(d, { emit: e }) {
|
|
5080
|
-
const t =
|
|
5081
|
-
const
|
|
5082
|
-
onSelectionChanged: (
|
|
5083
|
-
e("selectionChanged",
|
|
4802
|
+
const t = Z(null), s = (i) => {
|
|
4803
|
+
const o = {
|
|
4804
|
+
onSelectionChanged: (l) => {
|
|
4805
|
+
e("selectionChanged", l);
|
|
5084
4806
|
},
|
|
5085
|
-
onFocusChanged: (
|
|
5086
|
-
e("focusChanged",
|
|
4807
|
+
onFocusChanged: (l) => {
|
|
4808
|
+
e("focusChanged", l);
|
|
5087
4809
|
},
|
|
5088
|
-
onCheckboxChanged: (
|
|
5089
|
-
e("checkboxChanged",
|
|
4810
|
+
onCheckboxChanged: (l) => {
|
|
4811
|
+
e("checkboxChanged", l);
|
|
5090
4812
|
},
|
|
5091
|
-
onContextmenu: (
|
|
5092
|
-
e("contextmenu",
|
|
4813
|
+
onContextmenu: (l) => {
|
|
4814
|
+
e("contextmenu", l);
|
|
5093
4815
|
},
|
|
5094
|
-
onModelChanged: (
|
|
5095
|
-
e("modelChanged",
|
|
4816
|
+
onModelChanged: (l) => {
|
|
4817
|
+
e("modelChanged", l);
|
|
5096
4818
|
},
|
|
5097
|
-
onMouseClicked: (
|
|
5098
|
-
e("mouseClicked",
|
|
4819
|
+
onMouseClicked: (l) => {
|
|
4820
|
+
e("mouseClicked", l);
|
|
5099
4821
|
},
|
|
5100
|
-
onMouseDragging: (
|
|
5101
|
-
e("mouseDragging",
|
|
4822
|
+
onMouseDragging: (l) => {
|
|
4823
|
+
e("mouseDragging", l);
|
|
5102
4824
|
},
|
|
5103
|
-
onMouseDraggingEnd: (
|
|
5104
|
-
e("mouseDraggingEnd",
|
|
4825
|
+
onMouseDraggingEnd: (l) => {
|
|
4826
|
+
e("mouseDraggingEnd", l);
|
|
5105
4827
|
},
|
|
5106
|
-
onMouseMoved: (
|
|
5107
|
-
e("mouseMoved",
|
|
4828
|
+
onMouseMoved: (l) => {
|
|
4829
|
+
e("mouseMoved", l);
|
|
5108
4830
|
},
|
|
5109
|
-
onScroll: (
|
|
5110
|
-
e("scroll",
|
|
4831
|
+
onScroll: (l) => {
|
|
4832
|
+
e("scroll", l);
|
|
5111
4833
|
}
|
|
5112
|
-
}, r = new
|
|
5113
|
-
|
|
4834
|
+
}, r = new G(
|
|
4835
|
+
i,
|
|
5114
4836
|
d.tableModel,
|
|
5115
|
-
new
|
|
4837
|
+
new Y(),
|
|
5116
4838
|
d.tableOptions,
|
|
5117
|
-
|
|
4839
|
+
o
|
|
5118
4840
|
);
|
|
5119
4841
|
r.firstInit(), e("tableReady", r.getApi());
|
|
5120
4842
|
};
|
|
5121
|
-
return
|
|
4843
|
+
return Q(() => {
|
|
5122
4844
|
t.value && s(t.value);
|
|
5123
4845
|
}), d.licenseKey && I.getInstance().setLicenseKey(d.licenseKey), {
|
|
5124
4846
|
root: t
|
|
5125
4847
|
};
|
|
5126
4848
|
}
|
|
5127
|
-
}),
|
|
4849
|
+
}), ke = (d, e) => {
|
|
5128
4850
|
const t = d.__vccOpts || d;
|
|
5129
|
-
for (const [s,
|
|
5130
|
-
t[s] =
|
|
4851
|
+
for (const [s, i] of e)
|
|
4852
|
+
t[s] = i;
|
|
5131
4853
|
return t;
|
|
5132
|
-
},
|
|
4854
|
+
}, Pe = {
|
|
5133
4855
|
ref: "root",
|
|
5134
4856
|
class: "container-div",
|
|
5135
4857
|
style: { width: "100%", height: "100%", "background-color": "transparent", padding: "0", margin: "0" }
|
|
5136
4858
|
};
|
|
5137
|
-
function
|
|
5138
|
-
return
|
|
4859
|
+
function We(d, e, t, s, i, o) {
|
|
4860
|
+
return ee(), te("div", Pe, null, 512);
|
|
5139
4861
|
}
|
|
5140
|
-
const
|
|
5141
|
-
class
|
|
4862
|
+
const He = /* @__PURE__ */ ke(Ve, [["render", We]]);
|
|
4863
|
+
class _e {
|
|
5142
4864
|
constructor(e, t) {
|
|
5143
4865
|
this.component = e, this.appContext = t;
|
|
5144
4866
|
}
|
|
5145
|
-
render(e, t, s,
|
|
4867
|
+
render(e, t, s, i, o, r, l) {
|
|
5146
4868
|
return this.mount(
|
|
5147
4869
|
this.component,
|
|
5148
4870
|
{
|
|
5149
4871
|
cellDiv: e,
|
|
5150
4872
|
rowIndex: t,
|
|
5151
4873
|
columnIndex: s,
|
|
5152
|
-
areaIdent:
|
|
5153
|
-
areaModel:
|
|
4874
|
+
areaIdent: i,
|
|
4875
|
+
areaModel: o,
|
|
5154
4876
|
cellValue: r
|
|
5155
4877
|
},
|
|
5156
4878
|
this.appContext,
|
|
5157
4879
|
e
|
|
5158
4880
|
);
|
|
5159
4881
|
}
|
|
5160
|
-
mount(e, t, s,
|
|
5161
|
-
let
|
|
5162
|
-
return
|
|
5163
|
-
|
|
4882
|
+
mount(e, t, s, i) {
|
|
4883
|
+
let o = se(e, t);
|
|
4884
|
+
return o.appContext = s, U(o, i), () => {
|
|
4885
|
+
i && U(null, i);
|
|
5164
4886
|
};
|
|
5165
4887
|
}
|
|
5166
4888
|
}
|
|
5167
|
-
const
|
|
4889
|
+
const Ge = {
|
|
5168
4890
|
install: (d, e = { img: "" }) => {
|
|
5169
|
-
d.component("GuiexpertTable",
|
|
4891
|
+
d.component("GuiexpertTable", He);
|
|
5170
4892
|
}
|
|
5171
4893
|
};
|
|
5172
4894
|
export {
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
4895
|
+
_e as ComponentRendererWrapper,
|
|
4896
|
+
He as GuiexpertTable,
|
|
4897
|
+
Ge as default
|
|
5176
4898
|
};
|