@guiexpert/svelte-table 4.1.58 → 4.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs +14 -14
- package/index.js +518 -338
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var Se = Object.defineProperty;
|
|
2
2
|
var ye = (n, e, t) => e in n ? Se(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
-
var
|
|
4
|
-
import { createEventDispatcher as xe, onMount as
|
|
3
|
+
var U = (n, e, t) => ye(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { createEventDispatcher as xe, onMount as we } from "svelte";
|
|
5
5
|
function O() {
|
|
6
6
|
}
|
|
7
7
|
function ce(n) {
|
|
@@ -10,16 +10,16 @@ function ce(n) {
|
|
|
10
10
|
function ie() {
|
|
11
11
|
return /* @__PURE__ */ Object.create(null);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function N(n) {
|
|
14
14
|
n.forEach(ce);
|
|
15
15
|
}
|
|
16
16
|
function de(n) {
|
|
17
17
|
return typeof n == "function";
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function ve(n, e) {
|
|
20
20
|
return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ce(n) {
|
|
23
23
|
return Object.keys(n).length === 0;
|
|
24
24
|
}
|
|
25
25
|
function Ee(n, e, t) {
|
|
@@ -34,7 +34,7 @@ function Ae(n) {
|
|
|
34
34
|
function Me(n, e, t) {
|
|
35
35
|
n.getAttribute(e) !== t && n.setAttribute(e, t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Re(n) {
|
|
38
38
|
return Array.from(n.childNodes);
|
|
39
39
|
}
|
|
40
40
|
function P(n, e, t, s) {
|
|
@@ -44,17 +44,17 @@ let q;
|
|
|
44
44
|
function $(n) {
|
|
45
45
|
q = n;
|
|
46
46
|
}
|
|
47
|
-
const I = [],
|
|
47
|
+
const I = [], X = [];
|
|
48
48
|
let B = [];
|
|
49
|
-
const
|
|
50
|
-
let
|
|
49
|
+
const re = [], Te = /* @__PURE__ */ Promise.resolve();
|
|
50
|
+
let K = !1;
|
|
51
51
|
function De() {
|
|
52
|
-
|
|
52
|
+
K || (K = !0, Te.then(pe));
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Y(n) {
|
|
55
55
|
B.push(n);
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const j = /* @__PURE__ */ new Set();
|
|
58
58
|
let F = 0;
|
|
59
59
|
function pe() {
|
|
60
60
|
if (F !== 0)
|
|
@@ -69,22 +69,22 @@ function pe() {
|
|
|
69
69
|
} catch (e) {
|
|
70
70
|
throw I.length = 0, F = 0, e;
|
|
71
71
|
}
|
|
72
|
-
for ($(null), I.length = 0, F = 0;
|
|
72
|
+
for ($(null), I.length = 0, F = 0; X.length; ) X.pop()();
|
|
73
73
|
for (let e = 0; e < B.length; e += 1) {
|
|
74
74
|
const t = B[e];
|
|
75
|
-
|
|
75
|
+
j.has(t) || (j.add(t), t());
|
|
76
76
|
}
|
|
77
77
|
B.length = 0;
|
|
78
78
|
} while (I.length);
|
|
79
|
-
for (;
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
for (; re.length; )
|
|
80
|
+
re.pop()();
|
|
81
|
+
K = !1, j.clear(), $(n);
|
|
82
82
|
}
|
|
83
83
|
function ke(n) {
|
|
84
84
|
if (n.fragment !== null) {
|
|
85
|
-
n.update(),
|
|
85
|
+
n.update(), N(n.before_update);
|
|
86
86
|
const e = n.dirty;
|
|
87
|
-
n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(
|
|
87
|
+
n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(Y);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
function Fe(n) {
|
|
@@ -97,20 +97,20 @@ function Le(n, e) {
|
|
|
97
97
|
}
|
|
98
98
|
function Oe(n, e, t) {
|
|
99
99
|
const { fragment: s, after_update: o } = n.$$;
|
|
100
|
-
s && s.m(e, t),
|
|
100
|
+
s && s.m(e, t), Y(() => {
|
|
101
101
|
const i = n.$$.on_mount.map(ce).filter(de);
|
|
102
|
-
n.$$.on_destroy ? n.$$.on_destroy.push(...i) :
|
|
103
|
-
}), o.forEach(
|
|
102
|
+
n.$$.on_destroy ? n.$$.on_destroy.push(...i) : N(i), n.$$.on_mount = [];
|
|
103
|
+
}), o.forEach(Y);
|
|
104
104
|
}
|
|
105
105
|
function Be(n, e) {
|
|
106
106
|
const t = n.$$;
|
|
107
|
-
t.fragment !== null && (Fe(t.after_update),
|
|
107
|
+
t.fragment !== null && (Fe(t.after_update), N(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
108
108
|
}
|
|
109
109
|
function Pe(n, e) {
|
|
110
110
|
n.$$.dirty[0] === -1 && (I.push(n), De(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
111
111
|
}
|
|
112
|
-
function $e(n, e, t, s, o, i,
|
|
113
|
-
const
|
|
112
|
+
function $e(n, e, t, s, o, i, r = null, l = [-1]) {
|
|
113
|
+
const a = q;
|
|
114
114
|
$(n);
|
|
115
115
|
const c = n.$$ = {
|
|
116
116
|
fragment: null,
|
|
@@ -126,29 +126,29 @@ function $e(n, e, t, s, o, i, a = null, l = [-1]) {
|
|
|
126
126
|
on_disconnect: [],
|
|
127
127
|
before_update: [],
|
|
128
128
|
after_update: [],
|
|
129
|
-
context: new Map(e.context || (
|
|
129
|
+
context: new Map(e.context || (a ? a.$$.context : [])),
|
|
130
130
|
// everything else
|
|
131
131
|
callbacks: ie(),
|
|
132
132
|
dirty: l,
|
|
133
133
|
skip_bound: !1,
|
|
134
|
-
root: e.target ||
|
|
134
|
+
root: e.target || a.$$.root
|
|
135
135
|
};
|
|
136
|
-
|
|
136
|
+
r && r(c.root);
|
|
137
137
|
let h = !1;
|
|
138
138
|
if (c.ctx = t ? t(n, e.props || {}, (d, p, ...u) => {
|
|
139
139
|
const g = u.length ? u[0] : p;
|
|
140
140
|
return c.ctx && o(c.ctx[d], c.ctx[d] = g) && (!c.skip_bound && c.bound[d] && c.bound[d](g), h && Pe(n, d)), p;
|
|
141
|
-
}) : [], c.update(), h = !0,
|
|
141
|
+
}) : [], c.update(), h = !0, N(c.before_update), c.fragment = s ? s(c.ctx) : !1, e.target) {
|
|
142
142
|
if (e.hydrate) {
|
|
143
|
-
const d =
|
|
143
|
+
const d = Re(e.target);
|
|
144
144
|
c.fragment && c.fragment.l(d), d.forEach(he);
|
|
145
145
|
} else
|
|
146
146
|
c.fragment && c.fragment.c();
|
|
147
147
|
e.intro && Le(n.$$.fragment), Oe(n, e.target, e.anchor), pe();
|
|
148
148
|
}
|
|
149
|
-
$(
|
|
149
|
+
$(a);
|
|
150
150
|
}
|
|
151
|
-
class
|
|
151
|
+
class _e {
|
|
152
152
|
constructor() {
|
|
153
153
|
/**
|
|
154
154
|
* ### PRIVATE API
|
|
@@ -157,7 +157,7 @@ class We {
|
|
|
157
157
|
*
|
|
158
158
|
* @type {any}
|
|
159
159
|
*/
|
|
160
|
-
|
|
160
|
+
U(this, "$$");
|
|
161
161
|
/**
|
|
162
162
|
* ### PRIVATE API
|
|
163
163
|
*
|
|
@@ -165,7 +165,7 @@ class We {
|
|
|
165
165
|
*
|
|
166
166
|
* @type {any}
|
|
167
167
|
*/
|
|
168
|
-
|
|
168
|
+
U(this, "$$set");
|
|
169
169
|
}
|
|
170
170
|
/** @returns {void} */
|
|
171
171
|
$destroy() {
|
|
@@ -191,12 +191,12 @@ class We {
|
|
|
191
191
|
* @returns {void}
|
|
192
192
|
*/
|
|
193
193
|
$set(e) {
|
|
194
|
-
this.$$set && !
|
|
194
|
+
this.$$set && !Ce(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
const
|
|
198
|
-
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(
|
|
199
|
-
function
|
|
197
|
+
const We = "4";
|
|
198
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(We);
|
|
199
|
+
function He(n, e = 500) {
|
|
200
200
|
let t = null;
|
|
201
201
|
return function(...s) {
|
|
202
202
|
t && window.clearTimeout(t), t = window.setTimeout(() => {
|
|
@@ -229,15 +229,15 @@ class k {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function W(n) {
|
|
233
233
|
return n && n.type === "TreeRow";
|
|
234
234
|
}
|
|
235
235
|
function J(n) {
|
|
236
236
|
return n && n.type === "AreaModelTree";
|
|
237
237
|
}
|
|
238
238
|
class Z {
|
|
239
|
-
constructor(e = -1, t = -1, s = -1, o = -1, i,
|
|
240
|
-
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent =
|
|
239
|
+
constructor(e = -1, t = -1, s = -1, o = -1, i, r, l, a = 0, c = 0, h = 0, d = "") {
|
|
240
|
+
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = l, this.clickCount = a, this.draggingX = c, this.draggingY = h, this.action = d;
|
|
241
241
|
}
|
|
242
242
|
clone() {
|
|
243
243
|
return new Z(
|
|
@@ -359,83 +359,83 @@ class Ve {
|
|
|
359
359
|
const s = this.domService.createElement("div");
|
|
360
360
|
return this.addClass(e, s), this.domService.appendChild(t, s), s;
|
|
361
361
|
}
|
|
362
|
-
addRowDiv(e, t, s = -1, o, i,
|
|
363
|
-
const l = t.index ?? -1,
|
|
364
|
-
if (this.domService.addClass(
|
|
362
|
+
addRowDiv(e, t, s = -1, o, i, r = "") {
|
|
363
|
+
const l = t.index ?? -1, a = this.getDivOrCreateDiv(l, e);
|
|
364
|
+
if (this.domService.addClass(a, "ge-table-row-div"), this.domService.addClass(a, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
|
|
365
365
|
const c = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
366
|
-
this.domService.addClass(
|
|
366
|
+
this.domService.addClass(a, `ge-table-row-${c}`);
|
|
367
367
|
}
|
|
368
|
-
if (this.domService.setStyle(
|
|
369
|
-
const c = this.domService.createText(
|
|
370
|
-
this.domService.appendChild(
|
|
368
|
+
if (this.domService.setStyle(a, "display", "clip"), this.domService.setStyle(a, "position", "absolute"), this.domService.setStyle(a, "left", `${t.left}px`), this.domService.setStyle(a, "top", `${t.top}px`), this.domService.setStyle(a, "width", `${t.width}px`), this.domService.setStyle(a, "height", `${t.height}px`), this.domService.setAttribute(a, "data-row-index", `${s}`), this.domService.setAttribute(a, "data-area", `${o}`), r) {
|
|
369
|
+
const c = this.domService.createText(r);
|
|
370
|
+
this.domService.appendChild(a, c);
|
|
371
371
|
}
|
|
372
|
-
return this.domService.appendChild(e.child,
|
|
372
|
+
return this.domService.appendChild(e.child, a), a;
|
|
373
373
|
}
|
|
374
374
|
addColumnDiv(e) {
|
|
375
|
-
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent:
|
|
376
|
-
this.domService.addClass(b, "ge-table-col-div"), g && this.domService.addClass(b, "ge-with-checkbox"), this.domService.addClass(b, `ge-table-col-div-${s.index}`), this.domService.setAttribute(b, "data-col-index", `${s.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${
|
|
375
|
+
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: l, text: a = "", treeArrow: c, tableOptions: h, checkedType: d = void 0, sortState: p } = e, u = h == null ? void 0 : h.treeOptions, g = h == null ? void 0 : h.showCheckboxWihoutExtraColumn, b = this.domService.createElement("div");
|
|
376
|
+
this.domService.addClass(b, "ge-table-col-div"), g && this.domService.addClass(b, "ge-with-checkbox"), this.domService.addClass(b, `ge-table-col-div-${s.index}`), this.domService.setAttribute(b, "data-col-index", `${s.index}`), this.domService.setAttribute(b, "data-row-index", `${o}`), this.domService.setAttribute(b, "data-area", `${r}`);
|
|
377
377
|
const f = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
|
|
378
|
-
if (
|
|
378
|
+
if (r === "body" && l === "center" && this.domService.addClass(b, `ge-table-column-${f}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), c && c !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, c, u, o, i, r)), g && i === 0 && d && this.addCheckboxToDiv(b, d, r, o), a) {
|
|
379
379
|
const m = c !== "none" && i === 0;
|
|
380
|
-
this.addLabelDiv(b,
|
|
380
|
+
this.addLabelDiv(b, a, m, o, i, r);
|
|
381
381
|
}
|
|
382
382
|
return p && this.addSortedIcon(b, p, h == null ? void 0 : h.sortedOptions, i), this.domService.appendChild(t, b), b;
|
|
383
383
|
}
|
|
384
384
|
addCheckboxToDiv(e, t, s, o) {
|
|
385
|
-
const i = this.domService.createElement("div"),
|
|
385
|
+
const i = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
|
|
386
386
|
return i.innerHTML = `
|
|
387
387
|
<input
|
|
388
388
|
type="checkbox"
|
|
389
389
|
data-area="${s}"
|
|
390
390
|
data-row-index="${o}"
|
|
391
391
|
data-input-type="checkbox"
|
|
392
|
-
${
|
|
392
|
+
${r}
|
|
393
393
|
class="ge-table-row-checkbox"> `, this.domService.setStyle(i, "display", "inline"), this.domService.setStyle(i, "width", "inherit"), this.domService.setAttribute(i, "data-row-index", `${o}`), this.domService.appendChild(e, i), i;
|
|
394
394
|
}
|
|
395
|
-
addLabelDiv(e, t = "", s = !1, o = -1, i = -1,
|
|
395
|
+
addLabelDiv(e, t = "", s = !1, o = -1, i = -1, r = "body") {
|
|
396
396
|
const l = this.domService.createElement("div");
|
|
397
|
-
if (this.domService.addClass(l, "ge-table-label-div"), this.domService.setStyle(l, "position", "relative"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "width", "100%"), this.domService.setStyle(l, "height", "100%"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${
|
|
397
|
+
if (this.domService.addClass(l, "ge-table-label-div"), this.domService.setStyle(l, "position", "relative"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "width", "100%"), this.domService.setStyle(l, "height", "100%"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`), t)
|
|
398
398
|
if (s) {
|
|
399
|
-
const
|
|
400
|
-
this.domService.appendChild(l,
|
|
399
|
+
const a = this.domService.createText(t);
|
|
400
|
+
this.domService.appendChild(l, a);
|
|
401
401
|
} else {
|
|
402
|
-
const
|
|
403
|
-
this.domService.appendChild(l,
|
|
402
|
+
const a = this.domService.createElement("div");
|
|
403
|
+
this.domService.appendChild(l, a);
|
|
404
404
|
const c = this.domService.createText(t);
|
|
405
|
-
this.domService.addClass(
|
|
405
|
+
this.domService.addClass(a, "ge-table-label"), this.domService.appendChild(a, c), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`);
|
|
406
406
|
}
|
|
407
407
|
return this.domService.appendChild(e, l), l;
|
|
408
408
|
}
|
|
409
409
|
addSortedIcon(e, t = "", s = new fe(), o = -1) {
|
|
410
410
|
const i = this.domService.createElement("div");
|
|
411
411
|
this.domService.addClass(i, "ge-table-sorted-icon-div"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "top", "0"), this.domService.setStyle(i, "right", "0"), this.domService.setStyle(i, "width", "20px"), this.domService.setStyle(i, "background", "transparent"), this.domService.setStyle(i, "cursor", "pointer"), this.domService.setAttribute(i, "data-col-index", `${o}`), this.domService.setAttribute(i, "data-area", "header");
|
|
412
|
-
let
|
|
413
|
-
t === "asc" ?
|
|
414
|
-
const l =
|
|
415
|
-
this.domService.appendChild(i,
|
|
416
|
-
for (const c of
|
|
412
|
+
let r;
|
|
413
|
+
t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
|
|
414
|
+
const l = r.content, a = this.domService.createText(l);
|
|
415
|
+
this.domService.appendChild(i, a), r.style && this.applyStyleString(i, r.style);
|
|
416
|
+
for (const c of r.classes)
|
|
417
417
|
this.domService.addClass(i, c);
|
|
418
418
|
return this.domService.appendChild(e, i), i;
|
|
419
419
|
}
|
|
420
|
-
addArrowDiv(e, t = "none", s = new ge(), o = -1, i = -1,
|
|
420
|
+
addArrowDiv(e, t = "none", s = new ge(), o = -1, i = -1, r = "body") {
|
|
421
421
|
const l = this.domService.createElement("div");
|
|
422
|
-
this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${
|
|
423
|
-
let
|
|
424
|
-
t === "expanded" ?
|
|
425
|
-
const c =
|
|
426
|
-
this.domService.appendChild(l, h),
|
|
427
|
-
for (const d of
|
|
422
|
+
this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
|
|
423
|
+
let a;
|
|
424
|
+
t === "expanded" ? a = s.arrowExpanded : t === "collapsed" ? a = s.arrowCollapsed : a = s.arrowPlaceholder;
|
|
425
|
+
const c = a.content, h = this.domService.createText(c);
|
|
426
|
+
this.domService.appendChild(l, h), a.style && this.applyStyleString(l, a.style);
|
|
427
|
+
for (const d of a.classes)
|
|
428
428
|
this.domService.addClass(l, d);
|
|
429
429
|
return this.domService.appendChild(e, l), l;
|
|
430
430
|
}
|
|
431
431
|
addColumnBorderDivs(e, t, s, o, i) {
|
|
432
432
|
if (e.verticalBorderVisible) {
|
|
433
|
-
const
|
|
434
|
-
this.addVerticalBorder(s, t,
|
|
433
|
+
const r = `ge-table-${o}-${i}-vertical-border`;
|
|
434
|
+
this.addVerticalBorder(s, t, r);
|
|
435
435
|
}
|
|
436
436
|
if (e.horizontalBorderVisible) {
|
|
437
|
-
const
|
|
438
|
-
this.addHorizontalBorder(s, t,
|
|
437
|
+
const r = `ge-table-${o}-${i}-horizontal-border`;
|
|
438
|
+
this.addHorizontalBorder(s, t, r);
|
|
439
439
|
}
|
|
440
440
|
return t;
|
|
441
441
|
}
|
|
@@ -459,8 +459,8 @@ class Ve {
|
|
|
459
459
|
applyStyleString(e, t) {
|
|
460
460
|
const s = t.split(";").map((o) => o.trim()).filter((o) => o);
|
|
461
461
|
for (const o of s) {
|
|
462
|
-
const [i,
|
|
463
|
-
this.domService.setStyle(e, i.trim(),
|
|
462
|
+
const [i, r] = o.split(":");
|
|
463
|
+
this.domService.setStyle(e, i.trim(), r.trim());
|
|
464
464
|
}
|
|
465
465
|
}
|
|
466
466
|
getDivOrCreateDiv(e, t) {
|
|
@@ -518,12 +518,12 @@ class Ne {
|
|
|
518
518
|
this.tableScope.toggleHeaderGroup(s), e.preventDefault(), e.stopPropagation();
|
|
519
519
|
else if (s.inputType === "checkbox" && s.areaIdent)
|
|
520
520
|
this.tableScope.toggleRowCheckbox(s.rowIdx, s.colIdx, s.areaIdent), e.preventDefault(), e.stopPropagation();
|
|
521
|
-
else if (
|
|
521
|
+
else if (W(s.row) && s.areaModel) {
|
|
522
522
|
const o = s.colIdx === this.getArrowColumnIndex() && e.altKey, i = s.className.includes("ge-table-tree-arrow-div");
|
|
523
523
|
if (o || i) {
|
|
524
524
|
e.preventDefault(), e.stopPropagation();
|
|
525
|
-
const
|
|
526
|
-
|
|
525
|
+
const r = s.row;
|
|
526
|
+
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);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
529
|
if (s.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
|
|
@@ -540,14 +540,14 @@ class Ne {
|
|
|
540
540
|
*/
|
|
541
541
|
onHostElementDblClicked(e) {
|
|
542
542
|
if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
|
|
543
|
-
const t = e.target, s = t.getAttribute("data-area"), o = Q(s), i = Number(t.getAttribute("data-row-index")),
|
|
543
|
+
const t = e.target, s = t.getAttribute("data-area"), o = Q(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(o);
|
|
544
544
|
if (s && o === "header")
|
|
545
|
-
this.tableScope.tableModel.isSortable(
|
|
545
|
+
this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
|
|
546
546
|
else if (t.getAttribute("data-row-index")) {
|
|
547
|
-
const
|
|
548
|
-
if (s && o === "body" && l.isEditable(i,
|
|
547
|
+
const a = l.getRowByIndex(i);
|
|
548
|
+
if (s && o === "body" && l.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), W(a) && r === this.getArrowColumnIndex()) {
|
|
549
549
|
e.preventDefault(), e.stopPropagation();
|
|
550
|
-
const c =
|
|
550
|
+
const c = a;
|
|
551
551
|
c.expanded = !c.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(c);
|
|
552
552
|
}
|
|
553
553
|
}
|
|
@@ -573,11 +573,11 @@ class Ne {
|
|
|
573
573
|
* @returns {void}
|
|
574
574
|
*/
|
|
575
575
|
updateCollapsedExpandedState(e) {
|
|
576
|
-
var s, o, i,
|
|
576
|
+
var s, o, i, r, l;
|
|
577
577
|
const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
|
|
578
578
|
if (t) {
|
|
579
|
-
const
|
|
580
|
-
c ? (
|
|
579
|
+
const a = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, c = a === "collapsed" && !e.expanded || a === "expanded" && e.expanded, h = a === "collapsed" && e.expanded || a === "expanded" && !e.expanded, d = t(e.data);
|
|
580
|
+
c ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(d) : h && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(d));
|
|
581
581
|
}
|
|
582
582
|
}
|
|
583
583
|
getArrowColumnIndex() {
|
|
@@ -614,6 +614,179 @@ class Ne {
|
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
class ze {
|
|
617
|
+
constructor(e, t = [], s = -1) {
|
|
618
|
+
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
|
|
619
|
+
}
|
|
620
|
+
getTextValueAt(e, t) {
|
|
621
|
+
return "" + this.getValueAt(e, t);
|
|
622
|
+
}
|
|
623
|
+
getTooltipAt(e, t) {
|
|
624
|
+
return "";
|
|
625
|
+
}
|
|
626
|
+
getCellRenderer(e, t) {
|
|
627
|
+
if (t < this.cellRenderers.length)
|
|
628
|
+
return this.cellRenderers[t];
|
|
629
|
+
}
|
|
630
|
+
getColspanAt(e, t) {
|
|
631
|
+
return 0;
|
|
632
|
+
}
|
|
633
|
+
getCustomClassesAt(e, t) {
|
|
634
|
+
return [];
|
|
635
|
+
}
|
|
636
|
+
getCustomStyleAt(e, t) {
|
|
637
|
+
}
|
|
638
|
+
getRowspanAt(e, t) {
|
|
639
|
+
return 0;
|
|
640
|
+
}
|
|
641
|
+
getRowByIndex(e) {
|
|
642
|
+
}
|
|
643
|
+
isRowCheckable(e) {
|
|
644
|
+
return !0;
|
|
645
|
+
}
|
|
646
|
+
isRowChecked(e) {
|
|
647
|
+
var s;
|
|
648
|
+
const t = this.getRowByIndex(e);
|
|
649
|
+
return (s = this.rowSelectionModel) == null ? void 0 : s.isRowChecked(t);
|
|
650
|
+
}
|
|
651
|
+
setRowChecked(e, t) {
|
|
652
|
+
if (this.rowSelectionModel) {
|
|
653
|
+
const s = this.getRowByIndex(e);
|
|
654
|
+
this.rowSelectionModel.checkRow(s, t);
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
getMaxColspan() {
|
|
658
|
+
return 31;
|
|
659
|
+
}
|
|
660
|
+
getMaxRowspan() {
|
|
661
|
+
return 31;
|
|
662
|
+
}
|
|
663
|
+
getYPosByRowIndex(e) {
|
|
664
|
+
return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
|
|
665
|
+
}
|
|
666
|
+
init() {
|
|
667
|
+
!this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
|
|
668
|
+
}
|
|
669
|
+
isFilterable() {
|
|
670
|
+
return this.areaIdent === "body";
|
|
671
|
+
}
|
|
672
|
+
doSort(e) {
|
|
673
|
+
return !1;
|
|
674
|
+
}
|
|
675
|
+
isEditable(e, t) {
|
|
676
|
+
var o, i;
|
|
677
|
+
const s = (o = this.columnDefs) == null ? void 0 : o[t];
|
|
678
|
+
return ((i = s == null ? void 0 : s.editable) == null ? void 0 : i.call(s)) ?? !1;
|
|
679
|
+
}
|
|
680
|
+
setValue(e, t, s) {
|
|
681
|
+
var l;
|
|
682
|
+
const o = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
|
|
683
|
+
o && (s = o(s, e, t));
|
|
684
|
+
const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
|
|
685
|
+
return r.includes(".") ? this.setPropertyValue(i, r.split("."), s) : (i[r] = s, !0);
|
|
686
|
+
}
|
|
687
|
+
isSelectable(e, t) {
|
|
688
|
+
return !0;
|
|
689
|
+
}
|
|
690
|
+
changeColumnOrder(e, t) {
|
|
691
|
+
this.arrayMove(this.cellRenderers, e, t);
|
|
692
|
+
}
|
|
693
|
+
setPropertyValue(e, t, s) {
|
|
694
|
+
const o = t.shift();
|
|
695
|
+
if (o) {
|
|
696
|
+
const i = e[o];
|
|
697
|
+
return i && t.length ? this.setPropertyValue(i, t, s) : (e[o] = s, !0);
|
|
698
|
+
}
|
|
699
|
+
return !1;
|
|
700
|
+
}
|
|
701
|
+
arrayMove(e, t, s) {
|
|
702
|
+
const o = e.splice(t, 1)[0];
|
|
703
|
+
return e.splice(s, 0, o), e;
|
|
704
|
+
}
|
|
705
|
+
calcYPositions() {
|
|
706
|
+
const e = this.getRowCount();
|
|
707
|
+
this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
|
|
708
|
+
for (let t = 0; t < e; t++)
|
|
709
|
+
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
class Ue {
|
|
713
|
+
genericSortComparator(e, t, s) {
|
|
714
|
+
if (typeof e == "number" && typeof t == "number")
|
|
715
|
+
return s * (e - t);
|
|
716
|
+
if (typeof e == "string" && typeof t == "string")
|
|
717
|
+
return s * e.localeCompare(t);
|
|
718
|
+
if (typeof e == "boolean" && typeof t == "boolean")
|
|
719
|
+
return s * ((e ? -1 : 1) - (t ? -1 : 1));
|
|
720
|
+
if (e instanceof Date && t instanceof Date)
|
|
721
|
+
return s * (e.getTime() - t.getTime());
|
|
722
|
+
if (e instanceof Array && t instanceof Array) {
|
|
723
|
+
const o = e, i = t;
|
|
724
|
+
if (o.length && i.length)
|
|
725
|
+
return this.genericSortComparator(o[0], i[0], s);
|
|
726
|
+
}
|
|
727
|
+
return s * ("" + e).localeCompare("" + t);
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
class je extends ze {
|
|
731
|
+
constructor(e, t, s, o = []) {
|
|
732
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new Ue(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
|
|
733
|
+
}
|
|
734
|
+
setRows(e) {
|
|
735
|
+
this.rows = e, this.filteredRows = [...e];
|
|
736
|
+
}
|
|
737
|
+
filterRowsByPredict(e) {
|
|
738
|
+
this.rows = this.rows.filter(e), this.filteredRows = this.filteredRows.filter(e);
|
|
739
|
+
}
|
|
740
|
+
getRowCount() {
|
|
741
|
+
var e;
|
|
742
|
+
return ((e = this.filteredRows) == null ? void 0 : e.length) ?? 0;
|
|
743
|
+
}
|
|
744
|
+
getValueAt(e, t) {
|
|
745
|
+
const s = this.properties[t];
|
|
746
|
+
let o = this.filteredRows[e];
|
|
747
|
+
return W(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
|
|
748
|
+
}
|
|
749
|
+
getFilteredRows() {
|
|
750
|
+
return this.filteredRows;
|
|
751
|
+
}
|
|
752
|
+
getAllRows() {
|
|
753
|
+
return this.rows;
|
|
754
|
+
}
|
|
755
|
+
getRowHeight(e) {
|
|
756
|
+
return this.defaultRowHeight;
|
|
757
|
+
}
|
|
758
|
+
getRowByIndex(e) {
|
|
759
|
+
return this.filteredRows[e];
|
|
760
|
+
}
|
|
761
|
+
externalFilterChanged(e) {
|
|
762
|
+
this.filteredRows = this.rows ? this.rows.filter(e) : [];
|
|
763
|
+
}
|
|
764
|
+
doSort(e) {
|
|
765
|
+
for (const t of e) {
|
|
766
|
+
const { columnIndex: s, sortState: o } = t, i = o === "asc" ? 1 : o === "desc" ? -1 : 0, r = this.properties[s];
|
|
767
|
+
this.filteredRows = this.filteredRows.sort(this.genericFlatTableSortComparator(r, i));
|
|
768
|
+
}
|
|
769
|
+
return !0;
|
|
770
|
+
}
|
|
771
|
+
getValueByT(e, t) {
|
|
772
|
+
return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
|
|
773
|
+
}
|
|
774
|
+
changeColumnOrder(e, t) {
|
|
775
|
+
this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
|
|
776
|
+
}
|
|
777
|
+
genericFlatTableSortComparator(e, t) {
|
|
778
|
+
const s = this.columnDefs.find((o) => o.property === e);
|
|
779
|
+
return (o, i) => {
|
|
780
|
+
const r = this.getValueByT(o, e), l = this.getValueByT(i, e);
|
|
781
|
+
return s != null && s.sortComparator ? t * s.sortComparator(r, l, o, i, t) : this.sorterService.genericSortComparator(r, l, t);
|
|
782
|
+
};
|
|
783
|
+
}
|
|
784
|
+
getPropertyValue(e, t) {
|
|
785
|
+
const s = t.shift(), o = e[s];
|
|
786
|
+
return o && t.length ? this.getPropertyValue(o, t) : o;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
class Xe {
|
|
617
790
|
constructor(e) {
|
|
618
791
|
this.tableScope = e;
|
|
619
792
|
}
|
|
@@ -799,9 +972,9 @@ class ze {
|
|
|
799
972
|
*/
|
|
800
973
|
downloadExcel(e = "table.xlsx", t = "") {
|
|
801
974
|
const s = [], o = this.tableScope.tableModel.getColumnCount(), i = ["header", "body", "footer"];
|
|
802
|
-
for (const
|
|
803
|
-
const l = this.tableScope.tableModel.getAreaModel(
|
|
804
|
-
for (let c = 0; c <
|
|
975
|
+
for (const r of i) {
|
|
976
|
+
const l = this.tableScope.tableModel.getAreaModel(r), a = (l == null ? void 0 : l.getRowCount()) ?? 0;
|
|
977
|
+
for (let c = 0; c < a; c++) {
|
|
805
978
|
const h = [];
|
|
806
979
|
s.push(h);
|
|
807
980
|
for (let d = 0; d < o; d++)
|
|
@@ -839,6 +1012,13 @@ class ze {
|
|
|
839
1012
|
getTableModel() {
|
|
840
1013
|
return this.tableScope.tableModel;
|
|
841
1014
|
}
|
|
1015
|
+
getBodyModel() {
|
|
1016
|
+
return this.tableScope.tableModel.getBodyModel();
|
|
1017
|
+
}
|
|
1018
|
+
setRows(e) {
|
|
1019
|
+
const t = this.getBodyModel();
|
|
1020
|
+
t instanceof je ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t);
|
|
1021
|
+
}
|
|
842
1022
|
reSort() {
|
|
843
1023
|
this.tableScope.reSort();
|
|
844
1024
|
}
|
|
@@ -860,8 +1040,8 @@ class ee {
|
|
|
860
1040
|
if (o) {
|
|
861
1041
|
const i = o + e;
|
|
862
1042
|
if ((t + "").includes("Map")) {
|
|
863
|
-
const
|
|
864
|
-
this.persistItem(i,
|
|
1043
|
+
const r = this.autoConvertMapToObject(t);
|
|
1044
|
+
this.persistItem(i, r);
|
|
865
1045
|
} else
|
|
866
1046
|
this.persistItem(i, t);
|
|
867
1047
|
}
|
|
@@ -910,7 +1090,7 @@ class ee {
|
|
|
910
1090
|
// }
|
|
911
1091
|
// }
|
|
912
1092
|
}
|
|
913
|
-
class
|
|
1093
|
+
class Ke extends ee {
|
|
914
1094
|
constructor(e) {
|
|
915
1095
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
916
1096
|
}
|
|
@@ -932,14 +1112,14 @@ class Ue extends ee {
|
|
|
932
1112
|
}
|
|
933
1113
|
}
|
|
934
1114
|
}
|
|
935
|
-
class
|
|
1115
|
+
class Ye {
|
|
936
1116
|
constructor(e = "collapsed", t = [], s = !1, o = !1) {
|
|
937
1117
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
938
1118
|
}
|
|
939
1119
|
}
|
|
940
|
-
class
|
|
1120
|
+
class Je extends ee {
|
|
941
1121
|
constructor(e) {
|
|
942
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
1122
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new Ye(), this.load();
|
|
943
1123
|
}
|
|
944
1124
|
collapsedExpandedStateGet() {
|
|
945
1125
|
return this.collapsedExpandedState;
|
|
@@ -971,7 +1151,7 @@ class Xe extends ee {
|
|
|
971
1151
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
972
1152
|
}
|
|
973
1153
|
}
|
|
974
|
-
class
|
|
1154
|
+
class qe extends ee {
|
|
975
1155
|
constructor(e) {
|
|
976
1156
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
977
1157
|
}
|
|
@@ -992,14 +1172,14 @@ class Ke extends ee {
|
|
|
992
1172
|
}
|
|
993
1173
|
}
|
|
994
1174
|
}
|
|
995
|
-
class
|
|
1175
|
+
class T {
|
|
996
1176
|
constructor(e = 0, t = 0, s = 0, o = 0, i) {
|
|
997
1177
|
this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
|
|
998
1178
|
}
|
|
999
1179
|
}
|
|
1000
|
-
class
|
|
1180
|
+
class Ze {
|
|
1001
1181
|
constructor(e, t, s, o) {
|
|
1002
|
-
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new
|
|
1182
|
+
this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new T(), this.areaBodyCenterGeo = new T(), this.areaBodyEastGeo = new T();
|
|
1003
1183
|
const i = this.hostElement;
|
|
1004
1184
|
i.innerText = "", this.dom.setAttribute(i, "tabindex", "0"), this.dom.setStyle(
|
|
1005
1185
|
this.dom.addClass("ge-table", i),
|
|
@@ -1203,7 +1383,7 @@ class E {
|
|
|
1203
1383
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
1204
1384
|
}
|
|
1205
1385
|
}
|
|
1206
|
-
class
|
|
1386
|
+
class Qe {
|
|
1207
1387
|
constructor(e, t) {
|
|
1208
1388
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
1209
1389
|
}
|
|
@@ -1214,12 +1394,12 @@ class Je {
|
|
|
1214
1394
|
const e = this.areaModel.getRowCount(), t = this.tableModel.getColumnCount();
|
|
1215
1395
|
for (let s = 0; s < e; s++)
|
|
1216
1396
|
for (let o = 0; o < t; o++) {
|
|
1217
|
-
let i = this.areaModel.getColspanAt(s, o),
|
|
1218
|
-
if (i > 1 ||
|
|
1219
|
-
i === 0 && (i = 1),
|
|
1397
|
+
let i = this.areaModel.getColspanAt(s, o), r = this.areaModel.getRowspanAt(s, o);
|
|
1398
|
+
if (i > 1 || r > 1) {
|
|
1399
|
+
i === 0 && (i = 1), r === 0 && (r = 1);
|
|
1220
1400
|
const l = "gammaCells" in this.areaModel;
|
|
1221
1401
|
this.colAndRowspanRanges.push(
|
|
1222
|
-
new E(s, o, s +
|
|
1402
|
+
new E(s, o, s + r - 1, o + i - 1, l)
|
|
1223
1403
|
);
|
|
1224
1404
|
}
|
|
1225
1405
|
}
|
|
@@ -1236,22 +1416,22 @@ class Je {
|
|
|
1236
1416
|
return !1;
|
|
1237
1417
|
}
|
|
1238
1418
|
}
|
|
1239
|
-
class
|
|
1419
|
+
class et {
|
|
1240
1420
|
constructor(e, t, s) {
|
|
1241
1421
|
this.header = e, this.body = t, this.footer = s;
|
|
1242
1422
|
}
|
|
1243
1423
|
}
|
|
1244
|
-
class
|
|
1424
|
+
class tt extends Ze {
|
|
1245
1425
|
constructor(e, t, s, o) {
|
|
1246
|
-
var
|
|
1426
|
+
var r, l;
|
|
1247
1427
|
super(e, t, s, o), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
|
|
1248
1428
|
header: [],
|
|
1249
1429
|
body: [],
|
|
1250
1430
|
footer: []
|
|
1251
|
-
}, this.tree = !1, this.colAndRowspanModels = new
|
|
1252
|
-
(
|
|
1431
|
+
}, this.tree = !1, this.colAndRowspanModels = new et(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), J(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
1432
|
+
(a) => {
|
|
1253
1433
|
var c;
|
|
1254
|
-
this.colAndRowspanModels[
|
|
1434
|
+
this.colAndRowspanModels[a] = new Qe(t, t.getAreaModel(a)), (c = this.colAndRowspanModels[a]) == null || c.init();
|
|
1255
1435
|
}
|
|
1256
1436
|
);
|
|
1257
1437
|
}
|
|
@@ -1337,19 +1517,19 @@ class Ze extends Ye {
|
|
|
1337
1517
|
for (const t of this.removables)
|
|
1338
1518
|
t.remove();
|
|
1339
1519
|
this.hideHoverRow(), this.hideHoverColumn(), this.scrollTop = this.scrollViewport.scrollTop, this.scrollLeft = this.scrollViewport.scrollLeft, this.debounce(this.checkForScrollPosSaving.bind(this)), this.scrollFactorY = this.scrollTop / (this.scrollViewport.scrollHeight - this.scrollViewport.clientHeight), this.scrollFactorX = this.scrollLeft / (this.scrollViewport.scrollWidth - this.scrollViewport.clientWidth), isNaN(this.scrollFactorY) && (this.scrollFactorY = 0), isNaN(this.scrollFactorX) && (this.scrollFactorX = 0), this.adjustBody(), this.adjustArea("footer"), this.adjustArea("header"), this.tableOptions.tableTopBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
1340
|
-
new
|
|
1520
|
+
new T(0, this.hostElement.clientWidth, 1, 0),
|
|
1341
1521
|
this.hostElement,
|
|
1342
1522
|
"ge-table-border"
|
|
1343
1523
|
)), this.tableOptions.tableBottomBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
1344
|
-
new
|
|
1524
|
+
new T(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
|
|
1345
1525
|
this.hostElement,
|
|
1346
1526
|
"ge-table-border"
|
|
1347
1527
|
)), this.tableModel.getFixedLeftColumnCount() > 0 && this.removables.push(this.dom.addVerticalBorder(
|
|
1348
|
-
new
|
|
1528
|
+
new T(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
|
|
1349
1529
|
this.hostElement,
|
|
1350
1530
|
"ge-table-body-west-vertical-border"
|
|
1351
1531
|
)), ((e = this.tableModel.getAreaModel("header")) == null ? void 0 : e.getRowCount()) > 0 && this.removables.push(this.dom.addHorizontalBorder(
|
|
1352
|
-
new
|
|
1532
|
+
new T(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
|
|
1353
1533
|
this.hostElement,
|
|
1354
1534
|
"ge-table-body-west-vertical-border"
|
|
1355
1535
|
));
|
|
@@ -1388,23 +1568,23 @@ class Ze extends Ye {
|
|
|
1388
1568
|
* @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
|
|
1389
1569
|
*/
|
|
1390
1570
|
rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
|
|
1391
|
-
const
|
|
1392
|
-
if (
|
|
1571
|
+
const r = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', a = document.querySelector(l);
|
|
1572
|
+
if (a) {
|
|
1393
1573
|
let c;
|
|
1394
1574
|
const h = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
1395
1575
|
let d;
|
|
1396
|
-
if (h ? d = this.editorRenderer : d =
|
|
1397
|
-
c = d.render(
|
|
1576
|
+
if (h ? d = this.editorRenderer : d = r.getCellRenderer(t, s), a.innerText = "", this.applyCssClasses(a, i), d)
|
|
1577
|
+
c = d.render(a, t, s, e, r, o, this.dom.domService), c && this.cleanupFunctions[e].push(c);
|
|
1398
1578
|
else {
|
|
1399
1579
|
const g = `${o}`;
|
|
1400
|
-
this.dom.addLabelDiv(
|
|
1580
|
+
this.dom.addLabelDiv(a, g, !1, t, s, e);
|
|
1401
1581
|
}
|
|
1402
|
-
const p =
|
|
1403
|
-
p.length && this.dom.addClasses(p,
|
|
1404
|
-
const u =
|
|
1582
|
+
const p = r.getCustomClassesAt(t, s);
|
|
1583
|
+
p.length && this.dom.addClasses(p, a);
|
|
1584
|
+
const u = r.getCustomStyleAt(t, s);
|
|
1405
1585
|
if (u)
|
|
1406
1586
|
for (const g in u)
|
|
1407
|
-
this.dom.setStyle(
|
|
1587
|
+
this.dom.setStyle(a, g, u[g]);
|
|
1408
1588
|
}
|
|
1409
1589
|
}
|
|
1410
1590
|
/**
|
|
@@ -1503,9 +1683,9 @@ class Ze extends Ye {
|
|
|
1503
1683
|
*/
|
|
1504
1684
|
adjustArea(e, t = 0) {
|
|
1505
1685
|
var f;
|
|
1506
|
-
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"),
|
|
1686
|
+
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
1507
1687
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
1508
|
-
const l = 0,
|
|
1688
|
+
const l = 0, a = this.areaBodyCenterGeo.width, c = this.tableModel.getPadding(), h = this.tableModel.getAreaModel(e), d = h.getRowCount();
|
|
1509
1689
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1510
1690
|
const m = this.cleanupFunctions[e].shift();
|
|
1511
1691
|
m && m();
|
|
@@ -1513,11 +1693,11 @@ class Ze extends Ye {
|
|
|
1513
1693
|
let p = t;
|
|
1514
1694
|
const u = this.tableModel.getColumnCount(), g = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
|
|
1515
1695
|
for (let m = 0; m < d; m++) {
|
|
1516
|
-
const x = p,
|
|
1517
|
-
if (x +
|
|
1696
|
+
const x = p, w = m === d - 1, C = this.tableModel.getRowHeight(e, m);
|
|
1697
|
+
if (x + C > 0) {
|
|
1518
1698
|
this.firstVisibleRowIndex = m;
|
|
1519
|
-
let y = { left: l, width:
|
|
1520
|
-
const
|
|
1699
|
+
let y = { left: l, width: a, height: C, top: x, index: m }, S = this.dom.addRowDiv(o, y, m, e, "center");
|
|
1700
|
+
const R = b;
|
|
1521
1701
|
if (this.adjustColumnsToRowParent({
|
|
1522
1702
|
areaIdent: e,
|
|
1523
1703
|
sideIdent: "center",
|
|
@@ -1525,11 +1705,11 @@ class Ze extends Ye {
|
|
|
1525
1705
|
geo: y,
|
|
1526
1706
|
parent: S,
|
|
1527
1707
|
rowIndex: m,
|
|
1528
|
-
columnIndexStart:
|
|
1708
|
+
columnIndexStart: R,
|
|
1529
1709
|
columnIndexEnd: u - g - 1,
|
|
1530
1710
|
verticalFixed: !1,
|
|
1531
|
-
lastRowOfModel:
|
|
1532
|
-
}), c.left > 0 && (y = { left: l, width: this.areaBodyWestGeo.width, height:
|
|
1711
|
+
lastRowOfModel: w
|
|
1712
|
+
}), c.left > 0 && (y = { left: l, width: this.areaBodyWestGeo.width, height: C, top: x, index: m }, S = this.dom.addRowDiv(s, y, m, e, "west"), this.adjustColumnsToRowParent({
|
|
1533
1713
|
areaIdent: e,
|
|
1534
1714
|
sideIdent: "west",
|
|
1535
1715
|
areaModel: h,
|
|
@@ -1537,10 +1717,10 @@ class Ze extends Ye {
|
|
|
1537
1717
|
parent: S,
|
|
1538
1718
|
rowIndex: m,
|
|
1539
1719
|
columnIndexStart: 0,
|
|
1540
|
-
columnIndexEnd:
|
|
1720
|
+
columnIndexEnd: R - 1,
|
|
1541
1721
|
verticalFixed: !0,
|
|
1542
|
-
lastRowOfModel:
|
|
1543
|
-
})), c.right > 0 && (y = { left: l, width: this.areaBodyEastGeo.width, height:
|
|
1722
|
+
lastRowOfModel: w
|
|
1723
|
+
})), c.right > 0 && (y = { left: l, width: this.areaBodyEastGeo.width, height: C, top: x, index: m }, S = this.dom.addRowDiv(i, y, m, e, "east"), this.adjustColumnsToRowParent({
|
|
1544
1724
|
areaIdent: e,
|
|
1545
1725
|
sideIdent: "east",
|
|
1546
1726
|
areaModel: h,
|
|
@@ -1550,39 +1730,39 @@ class Ze extends Ye {
|
|
|
1550
1730
|
columnIndexStart: u - g,
|
|
1551
1731
|
columnIndexEnd: u - 1,
|
|
1552
1732
|
verticalFixed: !0,
|
|
1553
|
-
lastRowOfModel:
|
|
1733
|
+
lastRowOfModel: w
|
|
1554
1734
|
})), e === "header" && this.tree && m === d - 1) {
|
|
1555
1735
|
const A = this.dom.applyStyle(
|
|
1556
1736
|
this.dom.setAttribute(
|
|
1557
|
-
this.dom.addDiv(S, new
|
|
1737
|
+
this.dom.addDiv(S, new T(16, 20, 20, 8)),
|
|
1558
1738
|
"data-ge-action",
|
|
1559
1739
|
"toggleExpandCollapseAll"
|
|
1560
1740
|
),
|
|
1561
1741
|
{ cursor: "pointer" }
|
|
1562
1742
|
), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
|
|
1563
1743
|
if (M) {
|
|
1564
|
-
const
|
|
1565
|
-
this.dom.domService.appendChild(A,
|
|
1744
|
+
const _ = this.dom.domService.createText(M.content);
|
|
1745
|
+
this.dom.domService.appendChild(A, _), M.style && this.dom.applyStyleString(A, M.style);
|
|
1566
1746
|
}
|
|
1567
1747
|
}
|
|
1568
1748
|
}
|
|
1569
|
-
if (p = p +
|
|
1749
|
+
if (p = p + C, p > r)
|
|
1570
1750
|
break;
|
|
1571
1751
|
}
|
|
1572
1752
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
1573
1753
|
const m = ((f = this.colAndRowspanModels[e]) == null ? void 0 : f.getRanges()) ?? [];
|
|
1574
1754
|
if (m.length)
|
|
1575
1755
|
for (const x of m) {
|
|
1576
|
-
let
|
|
1756
|
+
let w = 0, C = o.child, y = "center";
|
|
1577
1757
|
if (x.c1 < b)
|
|
1578
|
-
|
|
1758
|
+
C = s.child, y = "west";
|
|
1579
1759
|
else if (g > 0 && x.c1 >= u - g)
|
|
1580
|
-
|
|
1760
|
+
C = i.child, y = "east";
|
|
1581
1761
|
else {
|
|
1582
1762
|
const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1583
|
-
|
|
1763
|
+
w = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
|
|
1584
1764
|
}
|
|
1585
|
-
this.drawBigCell(x,
|
|
1765
|
+
this.drawBigCell(x, w, t, h, C, y);
|
|
1586
1766
|
}
|
|
1587
1767
|
}
|
|
1588
1768
|
}
|
|
@@ -1596,17 +1776,17 @@ class Ze extends Ye {
|
|
|
1596
1776
|
* @param sideIdent SideIdent (west,center,east)
|
|
1597
1777
|
* @protected
|
|
1598
1778
|
*/
|
|
1599
|
-
drawBigCell(e, t, s, o, i,
|
|
1600
|
-
const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0),
|
|
1779
|
+
drawBigCell(e, t, s, o, i, r) {
|
|
1780
|
+
const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0), a = this.tableModel.getColumnCount(), c = this.tableModel.getFixedRightColumnCount();
|
|
1601
1781
|
let h = 0;
|
|
1602
|
-
c > 0 && e.c1 >=
|
|
1782
|
+
c > 0 && e.c1 >= a - c && (h = a - c);
|
|
1603
1783
|
const d = t + this.getColumnWidths(h, e.c1 - 1).reduce((f, m) => f + m, 0), p = this.getRowHeights(e.r1, e.r2, o).reduce((f, m) => f + m, 0), u = this.getColumnWidths(e.c1, e.c2).reduce((f, m) => f + m, 0);
|
|
1604
1784
|
let g = !1;
|
|
1605
1785
|
const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
1606
1786
|
b && (g = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
1607
1787
|
areaModel: o,
|
|
1608
1788
|
areaIdent: o.areaIdent,
|
|
1609
|
-
sideIdent:
|
|
1789
|
+
sideIdent: r,
|
|
1610
1790
|
rowIndex: e.r1,
|
|
1611
1791
|
columnIndex: e.c1,
|
|
1612
1792
|
left: d,
|
|
@@ -1620,7 +1800,7 @@ class Ze extends Ye {
|
|
|
1620
1800
|
}) : this.renderCell({
|
|
1621
1801
|
areaModel: o,
|
|
1622
1802
|
areaIdent: o.areaIdent,
|
|
1623
|
-
sideIdent:
|
|
1803
|
+
sideIdent: r,
|
|
1624
1804
|
rowIndex: e.r1,
|
|
1625
1805
|
columnIndex: e.c1,
|
|
1626
1806
|
left: d,
|
|
@@ -1653,8 +1833,8 @@ class Ze extends Ye {
|
|
|
1653
1833
|
findRowOfImportantRowspanCell(e, t, s) {
|
|
1654
1834
|
const o = e.getMaxRowspan();
|
|
1655
1835
|
for (let i = t - 1; i > -1; i--) {
|
|
1656
|
-
const
|
|
1657
|
-
if (
|
|
1836
|
+
const r = e.getRowspanAt(i, s);
|
|
1837
|
+
if (r > 1 && i + r + 1 >= t)
|
|
1658
1838
|
return i;
|
|
1659
1839
|
if (t - i > o)
|
|
1660
1840
|
return -1;
|
|
@@ -1674,9 +1854,9 @@ class Ze extends Ye {
|
|
|
1674
1854
|
areaModel: s,
|
|
1675
1855
|
geo: o,
|
|
1676
1856
|
parent: i,
|
|
1677
|
-
rowIndex:
|
|
1857
|
+
rowIndex: r,
|
|
1678
1858
|
columnIndexStart: l,
|
|
1679
|
-
columnIndexEnd:
|
|
1859
|
+
columnIndexEnd: a,
|
|
1680
1860
|
verticalFixed: c = !1,
|
|
1681
1861
|
lastRowOfModel: h = !1
|
|
1682
1862
|
}) {
|
|
@@ -1689,42 +1869,42 @@ class Ze extends Ye {
|
|
|
1689
1869
|
}
|
|
1690
1870
|
const p = 0, u = !!(e === "body" && t);
|
|
1691
1871
|
let g = d;
|
|
1692
|
-
for (let f = l; f <=
|
|
1872
|
+
for (let f = l; f <= a; f++) {
|
|
1693
1873
|
const m = g, x = this.tableModel.getColumnWidth(f);
|
|
1694
1874
|
if (x > 0 && m + x > 0) {
|
|
1695
|
-
let
|
|
1696
|
-
const
|
|
1697
|
-
|
|
1875
|
+
let w = o.height;
|
|
1876
|
+
const C = s.getRowspanAt(r, f), y = s.getColspanAt(r, f);
|
|
1877
|
+
C > 1 && (w = this.getRowHeights(r, r + C - 1, s).reduce((A, M) => A + M, 0));
|
|
1698
1878
|
let S = x;
|
|
1699
1879
|
y > 1 && (S = this.getColumnWidths(f, f + y - 1).reduce((A, M) => A + M, 0));
|
|
1700
|
-
let
|
|
1701
|
-
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(
|
|
1702
|
-
this.renderDragTargetDiv(i, m, p, S,
|
|
1703
|
-
const A = { left: m, top: p, width: S, height:
|
|
1880
|
+
let R = !1;
|
|
1881
|
+
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, f) && (R = !0), this.draggingTargetColumnIndex === f && e !== "header") {
|
|
1882
|
+
this.renderDragTargetDiv(i, m, p, S, w);
|
|
1883
|
+
const A = { left: m, top: p, width: S, height: w };
|
|
1704
1884
|
this.dom.addColumnBorderDivs(this.tableOptions, i, A, e, t);
|
|
1705
1885
|
} else {
|
|
1706
|
-
const A = this.renderSelectedBackgroundDiv(
|
|
1707
|
-
"gammaCells" in s && s.getValueAt(
|
|
1886
|
+
const A = this.renderSelectedBackgroundDiv(R, u, t, s, r, f, i, m, p, S, w);
|
|
1887
|
+
"gammaCells" in s && s.getValueAt(r, f) && (R = !1), R || this.renderCell({
|
|
1708
1888
|
areaModel: s,
|
|
1709
1889
|
areaIdent: e,
|
|
1710
1890
|
sideIdent: t,
|
|
1711
|
-
rowIndex:
|
|
1891
|
+
rowIndex: r,
|
|
1712
1892
|
columnIndex: f,
|
|
1713
1893
|
left: m,
|
|
1714
1894
|
top: p,
|
|
1715
1895
|
width: S,
|
|
1716
|
-
height:
|
|
1896
|
+
height: w,
|
|
1717
1897
|
parent: i,
|
|
1718
1898
|
cellSelected: A,
|
|
1719
1899
|
lastRowOfModel: h,
|
|
1720
1900
|
gammaRange: !0
|
|
1721
1901
|
}), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
1722
|
-
rowIndex:
|
|
1902
|
+
rowIndex: r,
|
|
1723
1903
|
columnIndex: f,
|
|
1724
1904
|
cellLeft: m,
|
|
1725
1905
|
cellTop: p,
|
|
1726
1906
|
cellWidth: S,
|
|
1727
|
-
cellHeight:
|
|
1907
|
+
cellHeight: w,
|
|
1728
1908
|
parent: i
|
|
1729
1909
|
});
|
|
1730
1910
|
}
|
|
@@ -1732,7 +1912,7 @@ class Ze extends Ye {
|
|
|
1732
1912
|
if (g = g + x, g > this.areaBodyCenterGeo.width)
|
|
1733
1913
|
break;
|
|
1734
1914
|
}
|
|
1735
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new
|
|
1915
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(g - 1, 1, o.height, 0), i);
|
|
1736
1916
|
}
|
|
1737
1917
|
/**
|
|
1738
1918
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -1752,26 +1932,26 @@ class Ze extends Ye {
|
|
|
1752
1932
|
sideIdent: s,
|
|
1753
1933
|
rowIndex: o,
|
|
1754
1934
|
index: i,
|
|
1755
|
-
left:
|
|
1935
|
+
left: r,
|
|
1756
1936
|
width: l,
|
|
1757
|
-
height:
|
|
1937
|
+
height: a,
|
|
1758
1938
|
top: c,
|
|
1759
1939
|
parent: h,
|
|
1760
1940
|
lastRowOfModel: d
|
|
1761
1941
|
}) {
|
|
1762
1942
|
var oe;
|
|
1763
|
-
const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left:
|
|
1943
|
+
const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: l, height: a, top: c, index: i }, b = e.getRowByIndex(o);
|
|
1764
1944
|
let f = "none";
|
|
1765
|
-
if (i === this.getTreeArrowColumnIndex() &&
|
|
1766
|
-
const
|
|
1767
|
-
(oe =
|
|
1945
|
+
if (i === this.getTreeArrowColumnIndex() && W(b)) {
|
|
1946
|
+
const v = b;
|
|
1947
|
+
(oe = v.children) != null && oe.length ? v.expanded ? f = "expanded" : f = "collapsed" : f = "hidden";
|
|
1768
1948
|
}
|
|
1769
1949
|
let x;
|
|
1770
1950
|
if (t === "header") {
|
|
1771
|
-
const
|
|
1772
|
-
(!(
|
|
1951
|
+
const v = this.tableModel.getColumnDef(i);
|
|
1952
|
+
(!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (x = v == null ? void 0 : v.sortState);
|
|
1773
1953
|
}
|
|
1774
|
-
const
|
|
1954
|
+
const w = e.getValueAt(o, i), C = u ? "" : `${w}`, y = e.isRowChecked(o), S = this.dom.addColumnDiv(
|
|
1775
1955
|
{
|
|
1776
1956
|
parent: h,
|
|
1777
1957
|
geo: g,
|
|
@@ -1779,28 +1959,28 @@ class Ze extends Ye {
|
|
|
1779
1959
|
columnIndex: i,
|
|
1780
1960
|
areaIdent: t,
|
|
1781
1961
|
sideIdent: s,
|
|
1782
|
-
text:
|
|
1962
|
+
text: C,
|
|
1783
1963
|
treeArrow: f,
|
|
1784
1964
|
tableOptions: this.tableOptions,
|
|
1785
1965
|
checkedType: y,
|
|
1786
1966
|
sortState: x
|
|
1787
1967
|
}
|
|
1788
|
-
),
|
|
1789
|
-
|
|
1968
|
+
), R = e.getTooltipAt(o, i);
|
|
1969
|
+
R && this.dom.setAttribute(S, "title", R);
|
|
1790
1970
|
const A = this.tableModel.getColumnDef(i);
|
|
1791
1971
|
A && A.classes[t] && this.dom.addClasses(A.classes[t], S);
|
|
1792
1972
|
let M;
|
|
1793
|
-
u && (M = u.render(S, o, i, t, e,
|
|
1794
|
-
const
|
|
1795
|
-
if (
|
|
1796
|
-
const
|
|
1797
|
-
|
|
1973
|
+
u && (M = u.render(S, o, i, t, e, w, this.dom.domService));
|
|
1974
|
+
const _ = e.getCustomClassesAt(o, i);
|
|
1975
|
+
if (_.length && this.dom.addClasses(_, S), this.dom.addColumnBorderDivs(this.tableOptions, h, g, t, s), d && this.dom.addHorizontalBorder({ left: r, width: l, height: a, top: c + a }, h), this.getFocusModel && t === "body") {
|
|
1976
|
+
const v = this.getFocusModel();
|
|
1977
|
+
v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(h, g, {});
|
|
1798
1978
|
}
|
|
1799
1979
|
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
1800
|
-
const
|
|
1801
|
-
if (
|
|
1802
|
-
for (const
|
|
1803
|
-
this.dom.setStyle(S,
|
|
1980
|
+
const z = e.getCustomStyleAt(o, i);
|
|
1981
|
+
if (z)
|
|
1982
|
+
for (const v in z)
|
|
1983
|
+
this.dom.setStyle(S, v, z[v]);
|
|
1804
1984
|
return [S, M];
|
|
1805
1985
|
}
|
|
1806
1986
|
/**
|
|
@@ -1931,9 +2111,9 @@ class Ze extends Ye {
|
|
|
1931
2111
|
adjustDraggingColumn(e, t, s) {
|
|
1932
2112
|
var o, i;
|
|
1933
2113
|
if (this.dragging) {
|
|
1934
|
-
const
|
|
2114
|
+
const r = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
|
|
1935
2115
|
if ((o = e.originalEvent) != null && o.clientX) {
|
|
1936
|
-
const h = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - l / 2, width: l, height:
|
|
2116
|
+
const h = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - l / 2, width: l, height: r, top: 0, index: t };
|
|
1937
2117
|
this.dom.applyStyle(this.draggingColumn, {
|
|
1938
2118
|
background: "rgba(128,128,128,0.2)",
|
|
1939
2119
|
display: "block",
|
|
@@ -1963,12 +2143,12 @@ class Ze extends Ye {
|
|
|
1963
2143
|
* @return {number} The final y-position after rendering all the content.
|
|
1964
2144
|
*/
|
|
1965
2145
|
renderContentOfDraggingColumnForArea(e, t, s = 0) {
|
|
1966
|
-
const o = "center", i = this.tableModel.getAreaModel(t),
|
|
1967
|
-
if (
|
|
1968
|
-
const l = e.index ?? 0,
|
|
1969
|
-
for (let c = 0; c <
|
|
2146
|
+
const o = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
|
|
2147
|
+
if (r) {
|
|
2148
|
+
const l = e.index ?? 0, a = this.draggingColumn;
|
|
2149
|
+
for (let c = 0; c < r; c++) {
|
|
1970
2150
|
const h = s, d = i.getRowHeight(c), p = { left: 0, width: e.width, height: d, top: h, index: c }, u = i.getValueAt(c, l), g = i.getCellRenderer(c, l), b = g ? "" : `${u}`, f = {
|
|
1971
|
-
parent:
|
|
2151
|
+
parent: a,
|
|
1972
2152
|
geo: p,
|
|
1973
2153
|
rowIndex: c,
|
|
1974
2154
|
columnIndex: l,
|
|
@@ -1978,10 +2158,10 @@ class Ze extends Ye {
|
|
|
1978
2158
|
}, m = this.dom.addColumnDiv(f);
|
|
1979
2159
|
let x;
|
|
1980
2160
|
g && (x = g.render(m, c, l, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
1981
|
-
const
|
|
1982
|
-
|
|
1983
|
-
const
|
|
1984
|
-
|
|
2161
|
+
const w = i.getCustomClassesAt(c, l);
|
|
2162
|
+
w.length && this.dom.addClasses(w, m);
|
|
2163
|
+
const C = this.tableModel.getColumnDef(l);
|
|
2164
|
+
C && C.classes[t] && this.dom.addClasses(C.classes[t], m), this.dom.addColumnBorderDivs(this.tableOptions, a, p, t, o);
|
|
1985
2165
|
const y = i.getCustomStyleAt(c, l);
|
|
1986
2166
|
if (y)
|
|
1987
2167
|
for (const S in y)
|
|
@@ -2013,10 +2193,10 @@ class Ze extends Ye {
|
|
|
2013
2193
|
* @return {HTMLDivElement} - The rendered draggable target div element.
|
|
2014
2194
|
*/
|
|
2015
2195
|
renderDragTargetDiv(e, t, s, o, i) {
|
|
2016
|
-
const
|
|
2196
|
+
const r = this.dom.applyStylePosistionAbsolute(
|
|
2017
2197
|
this.dom.createDivWithClass("ge-table-drop-zone", e)
|
|
2018
2198
|
);
|
|
2019
|
-
return this.dom.setStyle(
|
|
2199
|
+
return this.dom.setStyle(r, "left", `${t}px`), this.dom.setStyle(r, "top", `${s}px`), this.dom.setStyle(r, "width", `${o}px`), this.dom.setStyle(r, "height", `${i}px`), r;
|
|
2020
2200
|
}
|
|
2021
2201
|
/**
|
|
2022
2202
|
* Render selected background div.
|
|
@@ -2035,19 +2215,19 @@ class Ze extends Ye {
|
|
|
2035
2215
|
* @param {number} height - The height of the div.
|
|
2036
2216
|
* @returns {boolean} - Whether the cell is selected.
|
|
2037
2217
|
*/
|
|
2038
|
-
renderSelectedBackgroundDiv(e, t, s, o, i,
|
|
2218
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, l, a, c, h, d) {
|
|
2039
2219
|
let p = !1;
|
|
2040
|
-
if (!e && t && o.isSelectable(i,
|
|
2220
|
+
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2041
2221
|
const u = this.getSelectionModel();
|
|
2042
2222
|
if (u) {
|
|
2043
|
-
const g = u.getSelectionCount(i,
|
|
2223
|
+
const g = u.getSelectionCount(i, r);
|
|
2044
2224
|
p = g > 0;
|
|
2045
2225
|
for (let b = 0; b < g; b++) {
|
|
2046
2226
|
const f = this.dom.applyStylePosistionAbsolute(
|
|
2047
2227
|
// ge-table-body-west-selected-range
|
|
2048
2228
|
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, l)
|
|
2049
2229
|
);
|
|
2050
|
-
this.dom.setStyle(f, "left", `${
|
|
2230
|
+
this.dom.setStyle(f, "left", `${a}px`), this.dom.setStyle(f, "top", `${c}px`), this.dom.setStyle(f, "width", `${h}px`), this.dom.setStyle(f, "height", `${d}px`);
|
|
2051
2231
|
}
|
|
2052
2232
|
}
|
|
2053
2233
|
}
|
|
@@ -2078,9 +2258,9 @@ class Ze extends Ye {
|
|
|
2078
2258
|
sideIdent: s,
|
|
2079
2259
|
rowIndex: o,
|
|
2080
2260
|
columnIndex: i,
|
|
2081
|
-
left:
|
|
2261
|
+
left: r,
|
|
2082
2262
|
top: l,
|
|
2083
|
-
width:
|
|
2263
|
+
width: a,
|
|
2084
2264
|
height: c,
|
|
2085
2265
|
parent: h,
|
|
2086
2266
|
cellSelected: d,
|
|
@@ -2092,8 +2272,8 @@ class Ze extends Ye {
|
|
|
2092
2272
|
sideIdent: s,
|
|
2093
2273
|
rowIndex: o,
|
|
2094
2274
|
index: i,
|
|
2095
|
-
left:
|
|
2096
|
-
width:
|
|
2275
|
+
left: r,
|
|
2276
|
+
width: a,
|
|
2097
2277
|
height: c,
|
|
2098
2278
|
top: l,
|
|
2099
2279
|
parent: h,
|
|
@@ -2115,17 +2295,17 @@ class Ze extends Ye {
|
|
|
2115
2295
|
*
|
|
2116
2296
|
* @return {void}
|
|
2117
2297
|
*/
|
|
2118
|
-
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight:
|
|
2119
|
-
const
|
|
2120
|
-
|
|
2298
|
+
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: l }) {
|
|
2299
|
+
const a = this.dom.domService, c = this.tableOptions.columnResizeHandleWidthInPx ?? 2, h = a.createElement("div");
|
|
2300
|
+
a.setAttribute(h, "data-col-index", `${t}`), a.setAttribute(h, "data-row-index", `${e}`), a.setAttribute(h, "data-area", "header"), a.setAttribute(h, "data-ge-action", "resize-column"), a.addClass(h, "ge-table-column-resize-handle"), a.setStyle(h, "display", "clip"), a.setStyle(h, "position", "absolute"), a.setStyle(h, "cursor", "col-resize"), a.setStyle(h, "left", `${s + i - c}px`), a.setStyle(h, "top", `${o}px`), a.setStyle(h, "width", `${c}px`), a.setStyle(h, "height", `${r}px`), a.appendChild(l, h);
|
|
2121
2301
|
}
|
|
2122
2302
|
}
|
|
2123
|
-
class
|
|
2303
|
+
class st {
|
|
2124
2304
|
constructor(e, t) {
|
|
2125
2305
|
this.columnIndex = e, this.sortState = t;
|
|
2126
2306
|
}
|
|
2127
2307
|
}
|
|
2128
|
-
class
|
|
2308
|
+
class ot {
|
|
2129
2309
|
constructor(e) {
|
|
2130
2310
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
2131
2311
|
}
|
|
@@ -2141,13 +2321,13 @@ class et {
|
|
|
2141
2321
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
|
|
2142
2322
|
const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
|
|
2143
2323
|
if (s && o && i) {
|
|
2144
|
-
const
|
|
2145
|
-
this.tableScope.updateModelValueAfterEdit(
|
|
2324
|
+
const r = Q(s), l = Number(o), a = Number(i);
|
|
2325
|
+
this.tableScope.updateModelValueAfterEdit(r, l, a, t.value);
|
|
2146
2326
|
}
|
|
2147
2327
|
}
|
|
2148
2328
|
}
|
|
2149
2329
|
}
|
|
2150
|
-
class
|
|
2330
|
+
class it {
|
|
2151
2331
|
constructor(e = -1, t = -1) {
|
|
2152
2332
|
this.rowIndex = e, this.columnIndex = t;
|
|
2153
2333
|
}
|
|
@@ -2157,20 +2337,20 @@ class te {
|
|
|
2157
2337
|
this.cells = e;
|
|
2158
2338
|
}
|
|
2159
2339
|
static createSingle(e, t) {
|
|
2160
|
-
return new te([new
|
|
2340
|
+
return new te([new it(e, t)]);
|
|
2161
2341
|
}
|
|
2162
2342
|
}
|
|
2163
|
-
class
|
|
2343
|
+
class rt {
|
|
2164
2344
|
constructor(e) {
|
|
2165
2345
|
var t, s;
|
|
2166
2346
|
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);
|
|
2167
2347
|
}
|
|
2168
2348
|
onMouseClicked(e, t) {
|
|
2169
|
-
var i,
|
|
2349
|
+
var i, r, l, a, c, h, d;
|
|
2170
2350
|
let s = !1, o = !1;
|
|
2171
2351
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2172
2352
|
const p = this.getSelectionModel(), u = this.getFocusModel();
|
|
2173
|
-
p && u && (u.hasFocus(e.rowIndex, e.columnIndex) || (u.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(u), s = !0), (i = e.originalEvent) != null && i.shiftKey || p.hasSelection() && (p.clear(), s = !0), (
|
|
2353
|
+
p && u && (u.hasFocus(e.rowIndex, e.columnIndex) || (u.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(u), s = !0), (i = e.originalEvent) != null && i.shiftKey || p.hasSelection() && (p.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (p.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (l = e.originalEvent) != null && l.altKey && ((a = e.originalEvent) != null && a.ctrlKey || (c = e.originalEvent) != null && c.metaKey) ? (p.removeSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (h = e.originalEvent) != null && h.ctrlKey || (d = e.originalEvent) != null && d.metaKey ? (p.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (p.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(p));
|
|
2174
2354
|
}
|
|
2175
2355
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2176
2356
|
}
|
|
@@ -2192,16 +2372,16 @@ class st {
|
|
|
2192
2372
|
}
|
|
2193
2373
|
createRangeByEvents(e, t) {
|
|
2194
2374
|
t || (t = e);
|
|
2195
|
-
const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex),
|
|
2375
|
+
const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
|
|
2196
2376
|
return E.create({
|
|
2197
2377
|
rowIndex1: s,
|
|
2198
2378
|
columnIndex1: i,
|
|
2199
2379
|
rowIndex2: o,
|
|
2200
|
-
columnIndex2:
|
|
2380
|
+
columnIndex2: r
|
|
2201
2381
|
});
|
|
2202
2382
|
}
|
|
2203
2383
|
}
|
|
2204
|
-
class
|
|
2384
|
+
class at {
|
|
2205
2385
|
get() {
|
|
2206
2386
|
return {
|
|
2207
2387
|
f2: "START_EDITING",
|
|
@@ -2221,7 +2401,7 @@ class ot {
|
|
|
2221
2401
|
};
|
|
2222
2402
|
}
|
|
2223
2403
|
}
|
|
2224
|
-
class
|
|
2404
|
+
class lt {
|
|
2225
2405
|
get() {
|
|
2226
2406
|
return {
|
|
2227
2407
|
f2: "START_EDITING",
|
|
@@ -2243,7 +2423,7 @@ class it {
|
|
|
2243
2423
|
};
|
|
2244
2424
|
}
|
|
2245
2425
|
}
|
|
2246
|
-
class
|
|
2426
|
+
class nt {
|
|
2247
2427
|
constructor(e) {
|
|
2248
2428
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
2249
2429
|
}
|
|
@@ -2264,7 +2444,7 @@ class at {
|
|
|
2264
2444
|
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));
|
|
2265
2445
|
}
|
|
2266
2446
|
assignPredefinedSystemShortcutMappings() {
|
|
2267
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
2447
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new lt().get()) : Object.assign(this.shortcutActionIdMapping, new at().get());
|
|
2268
2448
|
}
|
|
2269
2449
|
isMacintosh() {
|
|
2270
2450
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -2316,7 +2496,7 @@ class at {
|
|
|
2316
2496
|
return this.shortcutActionIdMapping;
|
|
2317
2497
|
}
|
|
2318
2498
|
}
|
|
2319
|
-
class
|
|
2499
|
+
class ae {
|
|
2320
2500
|
onCheckboxChanged(e) {
|
|
2321
2501
|
}
|
|
2322
2502
|
onContextmenu(e) {
|
|
@@ -2363,15 +2543,15 @@ class ue {
|
|
|
2363
2543
|
e.setAttribute(t, s);
|
|
2364
2544
|
}
|
|
2365
2545
|
}
|
|
2366
|
-
class
|
|
2367
|
-
render(e, t, s, o, i,
|
|
2546
|
+
class ct {
|
|
2547
|
+
render(e, t, s, o, i, r, l) {
|
|
2368
2548
|
if (i.isEditable(t, s)) {
|
|
2369
2549
|
l.addClass(e, "ge-table-row-input-div");
|
|
2370
|
-
const
|
|
2550
|
+
const a = i.getValueAt(t, s);
|
|
2371
2551
|
e.innerHTML = `
|
|
2372
2552
|
<input
|
|
2373
2553
|
type="text"
|
|
2374
|
-
value="${
|
|
2554
|
+
value="${a}"
|
|
2375
2555
|
autofocus
|
|
2376
2556
|
onfocus="this.setSelectionRange(0, this.value.length)"
|
|
2377
2557
|
data-listen="change"
|
|
@@ -2384,7 +2564,7 @@ class rt {
|
|
|
2384
2564
|
}
|
|
2385
2565
|
}
|
|
2386
2566
|
}
|
|
2387
|
-
class
|
|
2567
|
+
class dt {
|
|
2388
2568
|
constructor(e = "none", t = "single") {
|
|
2389
2569
|
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
|
|
2390
2570
|
}
|
|
@@ -2466,7 +2646,7 @@ class lt {
|
|
|
2466
2646
|
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());
|
|
2467
2647
|
}
|
|
2468
2648
|
}
|
|
2469
|
-
class
|
|
2649
|
+
class ht {
|
|
2470
2650
|
constructor(e = "none") {
|
|
2471
2651
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
2472
2652
|
}
|
|
@@ -2517,14 +2697,14 @@ class me {
|
|
|
2517
2697
|
}
|
|
2518
2698
|
// `⊖ `, `⊕ `;
|
|
2519
2699
|
}
|
|
2520
|
-
const
|
|
2700
|
+
const pt = new dt(), gt = new ht("cell");
|
|
2521
2701
|
class be {
|
|
2522
2702
|
constructor() {
|
|
2523
2703
|
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 = {
|
|
2524
2704
|
header: 34,
|
|
2525
2705
|
body: 34,
|
|
2526
2706
|
footer: 34
|
|
2527
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ge(), this.headerGroupOptions = new me(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new fe(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new
|
|
2707
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ge(), this.headerGroupOptions = new me(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new fe(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new ct(), this.getSelectionModel = () => pt, this.getFocusModel = () => gt;
|
|
2528
2708
|
}
|
|
2529
2709
|
}
|
|
2530
2710
|
const L = class L {
|
|
@@ -2540,14 +2720,14 @@ const L = class L {
|
|
|
2540
2720
|
createContent(e, t, s) {
|
|
2541
2721
|
return new Promise((o, i) => {
|
|
2542
2722
|
if (t != null && t.hasSelection()) {
|
|
2543
|
-
const
|
|
2544
|
-
if (
|
|
2545
|
-
|
|
2723
|
+
const r = this.mergeRanges(t.getRanges());
|
|
2724
|
+
if (r) {
|
|
2725
|
+
r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
|
|
2546
2726
|
const l = [];
|
|
2547
|
-
for (let
|
|
2727
|
+
for (let a = r.r1; a <= r.r2; a++) {
|
|
2548
2728
|
const c = [];
|
|
2549
|
-
for (let h =
|
|
2550
|
-
const d = t.isSelected(
|
|
2729
|
+
for (let h = r.c1; h <= r.c2; h++) {
|
|
2730
|
+
const d = t.isSelected(a, h) ? e.getBodyModel().getTextValueAt(a, h) : "";
|
|
2551
2731
|
c.push(d);
|
|
2552
2732
|
}
|
|
2553
2733
|
l.push(c.join(L.columnSeparatorChar));
|
|
@@ -2556,8 +2736,8 @@ const L = class L {
|
|
|
2556
2736
|
}
|
|
2557
2737
|
}
|
|
2558
2738
|
if (s) {
|
|
2559
|
-
const [
|
|
2560
|
-
return o(
|
|
2739
|
+
const [r, l] = s.getFocus(), a = e.getBodyModel().getTextValueAt(r, l);
|
|
2740
|
+
return o(a);
|
|
2561
2741
|
}
|
|
2562
2742
|
i("Cannot copy, neither selection nor focus defined.");
|
|
2563
2743
|
});
|
|
@@ -2585,13 +2765,13 @@ const L = class L {
|
|
|
2585
2765
|
e,
|
|
2586
2766
|
t,
|
|
2587
2767
|
s
|
|
2588
|
-
).then((
|
|
2589
|
-
|
|
2590
|
-
o(
|
|
2768
|
+
).then((r) => {
|
|
2769
|
+
r && this.copyContent(r).then((l) => {
|
|
2770
|
+
o(r);
|
|
2591
2771
|
}).catch((l) => {
|
|
2592
2772
|
i();
|
|
2593
2773
|
});
|
|
2594
|
-
}).catch((
|
|
2774
|
+
}).catch((r) => {
|
|
2595
2775
|
i();
|
|
2596
2776
|
});
|
|
2597
2777
|
});
|
|
@@ -2612,16 +2792,16 @@ const L = class L {
|
|
|
2612
2792
|
L.columnSeparatorChar = " ", L.rowSeparatorChar = `
|
|
2613
2793
|
`;
|
|
2614
2794
|
let H = L;
|
|
2615
|
-
class
|
|
2795
|
+
class ft {
|
|
2616
2796
|
constructor(e, t = 500) {
|
|
2617
|
-
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(
|
|
2797
|
+
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(He(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
|
|
2618
2798
|
}
|
|
2619
2799
|
handleResize(e) {
|
|
2620
2800
|
const t = e[0], { width: s } = t.contentRect;
|
|
2621
2801
|
this.tableScope.recalcColumnWidths(s);
|
|
2622
2802
|
}
|
|
2623
2803
|
}
|
|
2624
|
-
class
|
|
2804
|
+
class ut {
|
|
2625
2805
|
/**
|
|
2626
2806
|
* Downloads a matrix data as an Excel file.
|
|
2627
2807
|
*
|
|
@@ -2639,8 +2819,8 @@ class pt {
|
|
|
2639
2819
|
try {
|
|
2640
2820
|
const o = this.generateBuffer(e, s), i = new Blob([o], {
|
|
2641
2821
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
2642
|
-
}),
|
|
2643
|
-
|
|
2822
|
+
}), r = document.createElement("a");
|
|
2823
|
+
r.href = URL.createObjectURL(i), r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
|
2644
2824
|
} catch (o) {
|
|
2645
2825
|
throw console.error("Error generating Excel file:", o), new Error("Failed to download Excel file.");
|
|
2646
2826
|
}
|
|
@@ -2649,14 +2829,14 @@ class pt {
|
|
|
2649
2829
|
const s = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2650
2830
|
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>`, o = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2651
2831
|
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>`, i = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2652
|
-
<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>`,
|
|
2832
|
+
<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"?>
|
|
2653
2833
|
<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"?>
|
|
2654
|
-
<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>`,
|
|
2834
|
+
<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"?>
|
|
2655
2835
|
<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>`, c = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2656
2836
|
<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>`, h = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2657
2837
|
<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>`, d = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2658
2838
|
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>`, p = /* @__PURE__ */ new Map();
|
|
2659
|
-
return p.set("_rels/.rels", s), p.set("docProps/app.xml", o), p.set("docProps/core.xml", i), p.set("xl/_rels/workbook.xml.rels",
|
|
2839
|
+
return p.set("_rels/.rels", s), p.set("docProps/app.xml", o), p.set("docProps/core.xml", i), p.set("xl/_rels/workbook.xml.rels", r), p.set("xl/theme/theme1.xml", l), p.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), p.set("xl/sharedStrings.xml", a), p.set("xl/styles.xml", c), p.set("xl/workbook.xml", h), p.set("[Content_Types].xml", d), p;
|
|
2660
2840
|
}
|
|
2661
2841
|
getX1WorksheetsSheet1Xml(e) {
|
|
2662
2842
|
const t = [];
|
|
@@ -2671,15 +2851,15 @@ class pt {
|
|
|
2671
2851
|
const o = e[s];
|
|
2672
2852
|
t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
|
|
2673
2853
|
for (let i = 0; i < o.length; i++) {
|
|
2674
|
-
const
|
|
2675
|
-
if (typeof
|
|
2676
|
-
t.push(`<c r="${l}"><v>${
|
|
2677
|
-
else if (
|
|
2678
|
-
const
|
|
2679
|
-
t.push(`<c r="${l}" t="inlineStr"><is><t>${
|
|
2854
|
+
const r = o[i], l = this.getCellAddress(s, i);
|
|
2855
|
+
if (typeof r == "number")
|
|
2856
|
+
t.push(`<c r="${l}"><v>${r}</v></c>`);
|
|
2857
|
+
else if (r instanceof Date) {
|
|
2858
|
+
const a = r;
|
|
2859
|
+
t.push(`<c r="${l}" t="inlineStr"><is><t>${a.toISOString()}</t></is></c>`);
|
|
2680
2860
|
} else {
|
|
2681
|
-
const
|
|
2682
|
-
t.push(`<c r="${l}" t="inlineStr"><is><t>${
|
|
2861
|
+
const a = r != null ? this.escapeXml(String(r)) : "";
|
|
2862
|
+
t.push(`<c r="${l}" t="inlineStr"><is><t>${a}</t></is></c>`);
|
|
2683
2863
|
}
|
|
2684
2864
|
}
|
|
2685
2865
|
t.push("</row>");
|
|
@@ -2714,9 +2894,9 @@ class pt {
|
|
|
2714
2894
|
const p = new TextEncoder().encode(d.path), u = new Uint8Array(46 + p.length), g = new DataView(u.buffer);
|
|
2715
2895
|
u.set([80, 75, 1, 2], 0), g.setUint16(4, 20, !0), g.setUint16(6, 20, !0), g.setUint16(8, 0, !0), g.setUint16(10, 0, !0), g.setUint16(12, 0, !0), g.setUint16(14, 0, !0), g.setUint32(16, 0, !0), g.setUint32(20, d.contentSize, !0), g.setUint32(24, d.contentSize, !0), g.setUint16(28, p.length, !0), g.setUint16(30, 0, !0), g.setUint16(32, 0, !0), g.setUint16(34, 0, !0), g.setUint16(36, 0, !0), g.setUint32(38, 0, !0), g.setUint32(42, d.offset, !0), u.set(p, 46), t.push(u), s += u.length;
|
|
2716
2896
|
});
|
|
2717
|
-
const
|
|
2718
|
-
|
|
2719
|
-
const
|
|
2897
|
+
const r = new Uint8Array(22), l = new DataView(r.buffer);
|
|
2898
|
+
r.set([80, 75, 5, 6], 0), l.setUint16(4, 0, !0), l.setUint16(6, 0, !0), l.setUint16(8, o.length, !0), l.setUint16(10, o.length, !0), l.setUint32(12, s - i, !0), l.setUint32(16, i, !0), l.setUint16(20, 0, !0), t.push(r);
|
|
2899
|
+
const a = t.reduce((d, p) => d + p.length, 0), c = new Uint8Array(a);
|
|
2720
2900
|
let h = 0;
|
|
2721
2901
|
for (const d of t)
|
|
2722
2902
|
c.set(d, h), h += d.length;
|
|
@@ -2727,16 +2907,16 @@ class pt {
|
|
|
2727
2907
|
return this.createZip(s);
|
|
2728
2908
|
}
|
|
2729
2909
|
}
|
|
2730
|
-
class se extends
|
|
2731
|
-
constructor(e, t, s, o, i,
|
|
2910
|
+
class se extends tt {
|
|
2911
|
+
constructor(e, t, s, o, i, r = new H(), l = new ut()) {
|
|
2732
2912
|
var h;
|
|
2733
|
-
if (super(e, t, new Ve(s), o), this.eventListener = i, this.copyService =
|
|
2913
|
+
if (super(e, t, new Ve(s), o), this.eventListener = i, this.copyService = r, this.excelService = l, this.licenseManager = k.getInstance(), this.selectionService = new rt(this), this.api = new Xe(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new ae()), (h = this.tableOptions) != null && h.autoRestoreOptions) {
|
|
2734
2914
|
const d = this.tableOptions.autoRestoreOptions, p = d.getStorageKeyFn;
|
|
2735
|
-
p && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new
|
|
2915
|
+
p && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Ke(p)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new Je(p)), d.autoRestoreSortingState && (this.storeSortingService = new qe(p)));
|
|
2736
2916
|
}
|
|
2737
|
-
this.mouseHandler = new Ne(this), this.inputHandler = new
|
|
2738
|
-
const
|
|
2739
|
-
|
|
2917
|
+
this.mouseHandler = new Ne(this), this.inputHandler = new ot(this), this.resizeHandler = new ft(this, o.resizeEventDebounceDelay), this.shortcutService = new nt(this), this.shortcutService.addListener(this.selectionService);
|
|
2918
|
+
const a = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
2919
|
+
a && a.addEventSelectionChangedListener(this);
|
|
2740
2920
|
const c = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
2741
2921
|
c && c.addEventFocusChangedListener(this);
|
|
2742
2922
|
}
|
|
@@ -2752,8 +2932,8 @@ class se extends Ze {
|
|
|
2752
2932
|
*
|
|
2753
2933
|
* @return {TableScope} - The newly created TableScope instance.
|
|
2754
2934
|
*/
|
|
2755
|
-
static create(e, t, s = new be(), o = new
|
|
2756
|
-
return new se(e, t, i, s, o,
|
|
2935
|
+
static create(e, t, s = new be(), o = new ae(), i = new ue(), r = new H()) {
|
|
2936
|
+
return new se(e, t, i, s, o, r);
|
|
2757
2937
|
}
|
|
2758
2938
|
/**
|
|
2759
2939
|
* Triggers an action based on the provided actionId.
|
|
@@ -2892,10 +3072,10 @@ class se extends Ze {
|
|
|
2892
3072
|
* @return {void} - This method does not return anything.
|
|
2893
3073
|
*/
|
|
2894
3074
|
toggleRowCheckbox(e, t, s) {
|
|
2895
|
-
var
|
|
2896
|
-
const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e),
|
|
2897
|
-
o.setRowChecked(e,
|
|
2898
|
-
const l = (
|
|
3075
|
+
var a;
|
|
3076
|
+
const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
|
|
3077
|
+
o.setRowChecked(e, r), this.repaint();
|
|
3078
|
+
const l = (a = o.rowSelectionModel) == null ? void 0 : a.getCheckedRows();
|
|
2899
3079
|
this.eventListener.onCheckboxChanged(l || []);
|
|
2900
3080
|
}
|
|
2901
3081
|
/**
|
|
@@ -2946,12 +3126,12 @@ class se extends Ze {
|
|
|
2946
3126
|
* @return {void}
|
|
2947
3127
|
*/
|
|
2948
3128
|
onHeaderDblClicked(e, t, s) {
|
|
2949
|
-
var i,
|
|
3129
|
+
var i, r;
|
|
2950
3130
|
const o = this.tableModel.getColumnDef(s);
|
|
2951
3131
|
if (o != null && o.sortable && o.sortable()) {
|
|
2952
3132
|
e.preventDefault(), e.stopPropagation();
|
|
2953
|
-
const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder,
|
|
2954
|
-
this.tableModel.doSort([h]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((p) => p.sortState = ""), o.sortState = c), this.repaint(), (
|
|
3133
|
+
const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, a = o.sortState ?? "", c = l[(l.indexOf(a) + 1) % l.length], h = new st(s, c);
|
|
3134
|
+
this.tableModel.doSort([h]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((p) => p.sortState = ""), o.sortState = c), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([h]);
|
|
2955
3135
|
}
|
|
2956
3136
|
}
|
|
2957
3137
|
/**
|
|
@@ -3095,11 +3275,11 @@ class se extends Ze {
|
|
|
3095
3275
|
if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.getRowId && this.storeStateCollapsedExpandService) {
|
|
3096
3276
|
const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
|
|
3097
3277
|
if (s.autoRestoreCollapsedExpandedState && o) {
|
|
3098
|
-
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(),
|
|
3099
|
-
if (J(
|
|
3100
|
-
const l =
|
|
3101
|
-
for (let c = 0; c <
|
|
3102
|
-
const h =
|
|
3278
|
+
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
3279
|
+
if (J(r)) {
|
|
3280
|
+
const l = r, a = r.getRowCount();
|
|
3281
|
+
for (let c = 0; c < a; c++) {
|
|
3282
|
+
const h = r.getRowByIndex(c);
|
|
3103
3283
|
if (h)
|
|
3104
3284
|
if (i.allExpanded)
|
|
3105
3285
|
h.expanded = !0;
|
|
@@ -3121,9 +3301,9 @@ class se extends Ze {
|
|
|
3121
3301
|
return console.warn("Body model is not available."), [];
|
|
3122
3302
|
const o = new Array(t).fill(0);
|
|
3123
3303
|
for (let i = 0; i < s; i++)
|
|
3124
|
-
for (let
|
|
3125
|
-
const l = e.getValueAt(i,
|
|
3126
|
-
|
|
3304
|
+
for (let r = 0; r < t; r++) {
|
|
3305
|
+
const l = e.getValueAt(i, r), a = (l == null ? void 0 : l.toString().length) || 0;
|
|
3306
|
+
a > o[r] && (o[r] = a);
|
|
3127
3307
|
}
|
|
3128
3308
|
return o.map((i) => Math.max(i * 10, 50));
|
|
3129
3309
|
}
|
|
@@ -3147,9 +3327,9 @@ class se extends Ze {
|
|
|
3147
3327
|
this.tableModel.doSort(e);
|
|
3148
3328
|
}
|
|
3149
3329
|
}
|
|
3150
|
-
const
|
|
3330
|
+
const V = class V {
|
|
3151
3331
|
};
|
|
3152
|
-
|
|
3332
|
+
V.themes = ["light", "combat", "paper", "blackboard"], V.vars = {
|
|
3153
3333
|
light: `html[data-theme="light"] {
|
|
3154
3334
|
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
3155
3335
|
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
@@ -3383,49 +3563,49 @@ _.themes = ["light", "combat", "paper", "blackboard"], _.vars = {
|
|
|
3383
3563
|
--ge-table-drop-zone-bg: #758129;
|
|
3384
3564
|
}`
|
|
3385
3565
|
};
|
|
3386
|
-
let le =
|
|
3387
|
-
const
|
|
3566
|
+
let le = V;
|
|
3567
|
+
const G = class G {
|
|
3388
3568
|
constructor(e = new me()) {
|
|
3389
3569
|
this.headerGroupOptions = e;
|
|
3390
3570
|
}
|
|
3391
|
-
render(e, t, s, o, i,
|
|
3392
|
-
const
|
|
3393
|
-
if (
|
|
3394
|
-
const { toggle: c, visibility: h, closed: d } =
|
|
3395
|
-
this.addText(e, o, t, s,
|
|
3571
|
+
render(e, t, s, o, i, r, l) {
|
|
3572
|
+
const a = r != null && r.data ? r.data : "";
|
|
3573
|
+
if (r) {
|
|
3574
|
+
const { toggle: c, visibility: h, closed: d } = r, p = c ? G.toggleHeaderGroup : "";
|
|
3575
|
+
this.addText(e, o, t, s, a, p), c && h !== "always" && this.addArrowDiv(l, e, !d, t, s, o, p);
|
|
3396
3576
|
} else
|
|
3397
|
-
this.addText(e, o, t, s,
|
|
3577
|
+
this.addText(e, o, t, s, a, "");
|
|
3398
3578
|
}
|
|
3399
|
-
addText(e, t, s, o, i,
|
|
3579
|
+
addText(e, t, s, o, i, r) {
|
|
3400
3580
|
e.innerHTML = `<span
|
|
3401
|
-
data-ge-action="${
|
|
3581
|
+
data-ge-action="${r}"
|
|
3402
3582
|
data-area="${t}"
|
|
3403
3583
|
data-row-index="${s}"
|
|
3404
3584
|
data-col-index="${o}"
|
|
3405
3585
|
>${i}</span>`;
|
|
3406
3586
|
}
|
|
3407
|
-
addArrowDiv(e, t, s = !0, o = -1, i = -1,
|
|
3408
|
-
const
|
|
3409
|
-
e.addClass(
|
|
3587
|
+
addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", l) {
|
|
3588
|
+
const a = e.createElement("div");
|
|
3589
|
+
e.addClass(a, "ge-table-toggle-icon-div"), e.setStyle(a, "display", "inline-block"), e.setStyle(a, "position", ""), e.setStyle(a, "width", "20px"), e.setStyle(a, "background", "transparent"), e.setStyle(a, "cursor", "pointer"), e.setAttribute(a, "data-row-index", `${o}`), e.setAttribute(a, "data-col-index", `${i}`), e.setAttribute(a, "data-area", `${r}`), e.setAttribute(a, "data-ge-action", `${l}`);
|
|
3410
3590
|
let c;
|
|
3411
3591
|
s ? c = this.headerGroupOptions.iconExpanded : c = this.headerGroupOptions.iconCollapsed;
|
|
3412
3592
|
const h = c.content, d = e.createText(h);
|
|
3413
|
-
e.appendChild(
|
|
3593
|
+
e.appendChild(a, d), c.style && this.applyStyleString(e, a, c.style);
|
|
3414
3594
|
for (const p of c.classes)
|
|
3415
|
-
e.addClass(
|
|
3416
|
-
return e.appendChild(t,
|
|
3595
|
+
e.addClass(a, p);
|
|
3596
|
+
return e.appendChild(t, a), a;
|
|
3417
3597
|
}
|
|
3418
3598
|
applyStyleString(e, t, s) {
|
|
3419
3599
|
const o = s.split(";").map((i) => i.trim()).filter((i) => i);
|
|
3420
3600
|
for (const i of o) {
|
|
3421
|
-
const [
|
|
3422
|
-
e.setStyle(t,
|
|
3601
|
+
const [r, l] = i.split(":");
|
|
3602
|
+
e.setStyle(t, r.trim(), l.trim());
|
|
3423
3603
|
}
|
|
3424
3604
|
}
|
|
3425
3605
|
};
|
|
3426
|
-
|
|
3427
|
-
let ne =
|
|
3428
|
-
function
|
|
3606
|
+
G.toggleHeaderGroup = "toggleHeaderGroup";
|
|
3607
|
+
let ne = G;
|
|
3608
|
+
function mt(n) {
|
|
3429
3609
|
let e;
|
|
3430
3610
|
return {
|
|
3431
3611
|
c() {
|
|
@@ -3442,10 +3622,10 @@ function gt(n) {
|
|
|
3442
3622
|
}
|
|
3443
3623
|
};
|
|
3444
3624
|
}
|
|
3445
|
-
function
|
|
3446
|
-
let { tableModel: s } = e, { tableOptions: o = new be() } = e, { licenseKey: i } = e,
|
|
3625
|
+
function bt(n, e, t) {
|
|
3626
|
+
let { tableModel: s } = e, { tableOptions: o = new be() } = e, { licenseKey: i } = e, r;
|
|
3447
3627
|
const l = xe();
|
|
3448
|
-
|
|
3628
|
+
we(() => {
|
|
3449
3629
|
const c = {
|
|
3450
3630
|
onSelectionChanged(d) {
|
|
3451
3631
|
l("selectionChanged", d);
|
|
@@ -3474,33 +3654,33 @@ function ft(n, e, t) {
|
|
|
3474
3654
|
onMouseMoved: (d) => {
|
|
3475
3655
|
l("mouseMoved", d);
|
|
3476
3656
|
}
|
|
3477
|
-
}, h = new se(
|
|
3657
|
+
}, h = new se(r, s, new ue(), o, c);
|
|
3478
3658
|
h.firstInit(), l("tableReady", h.getApi()), i && k.getInstance().setLicenseKey(i);
|
|
3479
3659
|
});
|
|
3480
|
-
function
|
|
3481
|
-
|
|
3482
|
-
|
|
3660
|
+
function a(c) {
|
|
3661
|
+
X[c ? "unshift" : "push"](() => {
|
|
3662
|
+
r = c, t(0, r);
|
|
3483
3663
|
});
|
|
3484
3664
|
}
|
|
3485
3665
|
return n.$$set = (c) => {
|
|
3486
3666
|
"tableModel" in c && t(1, s = c.tableModel), "tableOptions" in c && t(2, o = c.tableOptions), "licenseKey" in c && t(3, i = c.licenseKey);
|
|
3487
|
-
}, [
|
|
3667
|
+
}, [r, s, o, i, a];
|
|
3488
3668
|
}
|
|
3489
|
-
class
|
|
3669
|
+
class xt extends _e {
|
|
3490
3670
|
constructor(e) {
|
|
3491
|
-
super(), $e(this, e,
|
|
3671
|
+
super(), $e(this, e, bt, mt, ve, {
|
|
3492
3672
|
tableModel: 1,
|
|
3493
3673
|
tableOptions: 2,
|
|
3494
3674
|
licenseKey: 3
|
|
3495
3675
|
});
|
|
3496
3676
|
}
|
|
3497
3677
|
}
|
|
3498
|
-
class
|
|
3678
|
+
class wt {
|
|
3499
3679
|
constructor(e) {
|
|
3500
3680
|
this.Component = e;
|
|
3501
3681
|
}
|
|
3502
|
-
render(e, t, s, o, i,
|
|
3503
|
-
const
|
|
3682
|
+
render(e, t, s, o, i, r, l) {
|
|
3683
|
+
const a = new this.Component({
|
|
3504
3684
|
target: e,
|
|
3505
3685
|
props: {
|
|
3506
3686
|
cellDiv: e,
|
|
@@ -3508,15 +3688,15 @@ class St {
|
|
|
3508
3688
|
columnIndex: s,
|
|
3509
3689
|
areaIdent: o,
|
|
3510
3690
|
areaModel: i,
|
|
3511
|
-
cellValue:
|
|
3691
|
+
cellValue: r
|
|
3512
3692
|
}
|
|
3513
3693
|
});
|
|
3514
3694
|
return () => {
|
|
3515
|
-
|
|
3695
|
+
a.$destroy();
|
|
3516
3696
|
};
|
|
3517
3697
|
}
|
|
3518
3698
|
}
|
|
3519
3699
|
export {
|
|
3520
|
-
|
|
3521
|
-
|
|
3700
|
+
wt as ComponentRendererWrapper,
|
|
3701
|
+
xt as GuiexpertTable
|
|
3522
3702
|
};
|