@guiexpert/svelte-table 4.1.57 → 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 +526 -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,16 @@ 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
|
+
}
|
|
1022
|
+
reSort() {
|
|
1023
|
+
this.tableScope.reSort();
|
|
1024
|
+
}
|
|
842
1025
|
}
|
|
843
1026
|
class ee {
|
|
844
1027
|
constructor(e) {
|
|
@@ -857,8 +1040,8 @@ class ee {
|
|
|
857
1040
|
if (o) {
|
|
858
1041
|
const i = o + e;
|
|
859
1042
|
if ((t + "").includes("Map")) {
|
|
860
|
-
const
|
|
861
|
-
this.persistItem(i,
|
|
1043
|
+
const r = this.autoConvertMapToObject(t);
|
|
1044
|
+
this.persistItem(i, r);
|
|
862
1045
|
} else
|
|
863
1046
|
this.persistItem(i, t);
|
|
864
1047
|
}
|
|
@@ -907,7 +1090,7 @@ class ee {
|
|
|
907
1090
|
// }
|
|
908
1091
|
// }
|
|
909
1092
|
}
|
|
910
|
-
class
|
|
1093
|
+
class Ke extends ee {
|
|
911
1094
|
constructor(e) {
|
|
912
1095
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
913
1096
|
}
|
|
@@ -929,14 +1112,14 @@ class Ue extends ee {
|
|
|
929
1112
|
}
|
|
930
1113
|
}
|
|
931
1114
|
}
|
|
932
|
-
class
|
|
1115
|
+
class Ye {
|
|
933
1116
|
constructor(e = "collapsed", t = [], s = !1, o = !1) {
|
|
934
1117
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
935
1118
|
}
|
|
936
1119
|
}
|
|
937
|
-
class
|
|
1120
|
+
class Je extends ee {
|
|
938
1121
|
constructor(e) {
|
|
939
|
-
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new
|
|
1122
|
+
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new Ye(), this.load();
|
|
940
1123
|
}
|
|
941
1124
|
collapsedExpandedStateGet() {
|
|
942
1125
|
return this.collapsedExpandedState;
|
|
@@ -968,7 +1151,7 @@ class Xe extends ee {
|
|
|
968
1151
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
969
1152
|
}
|
|
970
1153
|
}
|
|
971
|
-
class
|
|
1154
|
+
class qe extends ee {
|
|
972
1155
|
constructor(e) {
|
|
973
1156
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
974
1157
|
}
|
|
@@ -989,14 +1172,14 @@ class Ke extends ee {
|
|
|
989
1172
|
}
|
|
990
1173
|
}
|
|
991
1174
|
}
|
|
992
|
-
class
|
|
1175
|
+
class T {
|
|
993
1176
|
constructor(e = 0, t = 0, s = 0, o = 0, i) {
|
|
994
1177
|
this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
|
|
995
1178
|
}
|
|
996
1179
|
}
|
|
997
|
-
class
|
|
1180
|
+
class Ze {
|
|
998
1181
|
constructor(e, t, s, o) {
|
|
999
|
-
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();
|
|
1000
1183
|
const i = this.hostElement;
|
|
1001
1184
|
i.innerText = "", this.dom.setAttribute(i, "tabindex", "0"), this.dom.setStyle(
|
|
1002
1185
|
this.dom.addClass("ge-table", i),
|
|
@@ -1200,7 +1383,7 @@ class E {
|
|
|
1200
1383
|
return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
|
|
1201
1384
|
}
|
|
1202
1385
|
}
|
|
1203
|
-
class
|
|
1386
|
+
class Qe {
|
|
1204
1387
|
constructor(e, t) {
|
|
1205
1388
|
this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
|
|
1206
1389
|
}
|
|
@@ -1211,12 +1394,12 @@ class Je {
|
|
|
1211
1394
|
const e = this.areaModel.getRowCount(), t = this.tableModel.getColumnCount();
|
|
1212
1395
|
for (let s = 0; s < e; s++)
|
|
1213
1396
|
for (let o = 0; o < t; o++) {
|
|
1214
|
-
let i = this.areaModel.getColspanAt(s, o),
|
|
1215
|
-
if (i > 1 ||
|
|
1216
|
-
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);
|
|
1217
1400
|
const l = "gammaCells" in this.areaModel;
|
|
1218
1401
|
this.colAndRowspanRanges.push(
|
|
1219
|
-
new E(s, o, s +
|
|
1402
|
+
new E(s, o, s + r - 1, o + i - 1, l)
|
|
1220
1403
|
);
|
|
1221
1404
|
}
|
|
1222
1405
|
}
|
|
@@ -1233,22 +1416,22 @@ class Je {
|
|
|
1233
1416
|
return !1;
|
|
1234
1417
|
}
|
|
1235
1418
|
}
|
|
1236
|
-
class
|
|
1419
|
+
class et {
|
|
1237
1420
|
constructor(e, t, s) {
|
|
1238
1421
|
this.header = e, this.body = t, this.footer = s;
|
|
1239
1422
|
}
|
|
1240
1423
|
}
|
|
1241
|
-
class
|
|
1424
|
+
class tt extends Ze {
|
|
1242
1425
|
constructor(e, t, s, o) {
|
|
1243
|
-
var
|
|
1426
|
+
var r, l;
|
|
1244
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 = {
|
|
1245
1428
|
header: [],
|
|
1246
1429
|
body: [],
|
|
1247
1430
|
footer: []
|
|
1248
|
-
}, this.tree = !1, this.colAndRowspanModels = new
|
|
1249
|
-
(
|
|
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) => {
|
|
1250
1433
|
var c;
|
|
1251
|
-
this.colAndRowspanModels[
|
|
1434
|
+
this.colAndRowspanModels[a] = new Qe(t, t.getAreaModel(a)), (c = this.colAndRowspanModels[a]) == null || c.init();
|
|
1252
1435
|
}
|
|
1253
1436
|
);
|
|
1254
1437
|
}
|
|
@@ -1334,19 +1517,19 @@ class Ze extends Ye {
|
|
|
1334
1517
|
for (const t of this.removables)
|
|
1335
1518
|
t.remove();
|
|
1336
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(
|
|
1337
|
-
new
|
|
1520
|
+
new T(0, this.hostElement.clientWidth, 1, 0),
|
|
1338
1521
|
this.hostElement,
|
|
1339
1522
|
"ge-table-border"
|
|
1340
1523
|
)), this.tableOptions.tableBottomBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
|
|
1341
|
-
new
|
|
1524
|
+
new T(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
|
|
1342
1525
|
this.hostElement,
|
|
1343
1526
|
"ge-table-border"
|
|
1344
1527
|
)), this.tableModel.getFixedLeftColumnCount() > 0 && this.removables.push(this.dom.addVerticalBorder(
|
|
1345
|
-
new
|
|
1528
|
+
new T(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
|
|
1346
1529
|
this.hostElement,
|
|
1347
1530
|
"ge-table-body-west-vertical-border"
|
|
1348
1531
|
)), ((e = this.tableModel.getAreaModel("header")) == null ? void 0 : e.getRowCount()) > 0 && this.removables.push(this.dom.addHorizontalBorder(
|
|
1349
|
-
new
|
|
1532
|
+
new T(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
|
|
1350
1533
|
this.hostElement,
|
|
1351
1534
|
"ge-table-body-west-vertical-border"
|
|
1352
1535
|
));
|
|
@@ -1385,23 +1568,23 @@ class Ze extends Ye {
|
|
|
1385
1568
|
* @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
|
|
1386
1569
|
*/
|
|
1387
1570
|
rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
|
|
1388
|
-
const
|
|
1389
|
-
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) {
|
|
1390
1573
|
let c;
|
|
1391
1574
|
const h = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
1392
1575
|
let d;
|
|
1393
|
-
if (h ? d = this.editorRenderer : d =
|
|
1394
|
-
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);
|
|
1395
1578
|
else {
|
|
1396
1579
|
const g = `${o}`;
|
|
1397
|
-
this.dom.addLabelDiv(
|
|
1580
|
+
this.dom.addLabelDiv(a, g, !1, t, s, e);
|
|
1398
1581
|
}
|
|
1399
|
-
const p =
|
|
1400
|
-
p.length && this.dom.addClasses(p,
|
|
1401
|
-
const u =
|
|
1582
|
+
const p = r.getCustomClassesAt(t, s);
|
|
1583
|
+
p.length && this.dom.addClasses(p, a);
|
|
1584
|
+
const u = r.getCustomStyleAt(t, s);
|
|
1402
1585
|
if (u)
|
|
1403
1586
|
for (const g in u)
|
|
1404
|
-
this.dom.setStyle(
|
|
1587
|
+
this.dom.setStyle(a, g, u[g]);
|
|
1405
1588
|
}
|
|
1406
1589
|
}
|
|
1407
1590
|
/**
|
|
@@ -1500,9 +1683,9 @@ class Ze extends Ye {
|
|
|
1500
1683
|
*/
|
|
1501
1684
|
adjustArea(e, t = 0) {
|
|
1502
1685
|
var f;
|
|
1503
|
-
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;
|
|
1504
1687
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
1505
|
-
const l = 0,
|
|
1688
|
+
const l = 0, a = this.areaBodyCenterGeo.width, c = this.tableModel.getPadding(), h = this.tableModel.getAreaModel(e), d = h.getRowCount();
|
|
1506
1689
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1507
1690
|
const m = this.cleanupFunctions[e].shift();
|
|
1508
1691
|
m && m();
|
|
@@ -1510,11 +1693,11 @@ class Ze extends Ye {
|
|
|
1510
1693
|
let p = t;
|
|
1511
1694
|
const u = this.tableModel.getColumnCount(), g = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
|
|
1512
1695
|
for (let m = 0; m < d; m++) {
|
|
1513
|
-
const x = p,
|
|
1514
|
-
if (x +
|
|
1696
|
+
const x = p, w = m === d - 1, C = this.tableModel.getRowHeight(e, m);
|
|
1697
|
+
if (x + C > 0) {
|
|
1515
1698
|
this.firstVisibleRowIndex = m;
|
|
1516
|
-
let y = { left: l, width:
|
|
1517
|
-
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;
|
|
1518
1701
|
if (this.adjustColumnsToRowParent({
|
|
1519
1702
|
areaIdent: e,
|
|
1520
1703
|
sideIdent: "center",
|
|
@@ -1522,11 +1705,11 @@ class Ze extends Ye {
|
|
|
1522
1705
|
geo: y,
|
|
1523
1706
|
parent: S,
|
|
1524
1707
|
rowIndex: m,
|
|
1525
|
-
columnIndexStart:
|
|
1708
|
+
columnIndexStart: R,
|
|
1526
1709
|
columnIndexEnd: u - g - 1,
|
|
1527
1710
|
verticalFixed: !1,
|
|
1528
|
-
lastRowOfModel:
|
|
1529
|
-
}), 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({
|
|
1530
1713
|
areaIdent: e,
|
|
1531
1714
|
sideIdent: "west",
|
|
1532
1715
|
areaModel: h,
|
|
@@ -1534,10 +1717,10 @@ class Ze extends Ye {
|
|
|
1534
1717
|
parent: S,
|
|
1535
1718
|
rowIndex: m,
|
|
1536
1719
|
columnIndexStart: 0,
|
|
1537
|
-
columnIndexEnd:
|
|
1720
|
+
columnIndexEnd: R - 1,
|
|
1538
1721
|
verticalFixed: !0,
|
|
1539
|
-
lastRowOfModel:
|
|
1540
|
-
})), 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({
|
|
1541
1724
|
areaIdent: e,
|
|
1542
1725
|
sideIdent: "east",
|
|
1543
1726
|
areaModel: h,
|
|
@@ -1547,39 +1730,39 @@ class Ze extends Ye {
|
|
|
1547
1730
|
columnIndexStart: u - g,
|
|
1548
1731
|
columnIndexEnd: u - 1,
|
|
1549
1732
|
verticalFixed: !0,
|
|
1550
|
-
lastRowOfModel:
|
|
1733
|
+
lastRowOfModel: w
|
|
1551
1734
|
})), e === "header" && this.tree && m === d - 1) {
|
|
1552
1735
|
const A = this.dom.applyStyle(
|
|
1553
1736
|
this.dom.setAttribute(
|
|
1554
|
-
this.dom.addDiv(S, new
|
|
1737
|
+
this.dom.addDiv(S, new T(16, 20, 20, 8)),
|
|
1555
1738
|
"data-ge-action",
|
|
1556
1739
|
"toggleExpandCollapseAll"
|
|
1557
1740
|
),
|
|
1558
1741
|
{ cursor: "pointer" }
|
|
1559
1742
|
), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
|
|
1560
1743
|
if (M) {
|
|
1561
|
-
const
|
|
1562
|
-
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);
|
|
1563
1746
|
}
|
|
1564
1747
|
}
|
|
1565
1748
|
}
|
|
1566
|
-
if (p = p +
|
|
1749
|
+
if (p = p + C, p > r)
|
|
1567
1750
|
break;
|
|
1568
1751
|
}
|
|
1569
1752
|
if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
|
|
1570
1753
|
const m = ((f = this.colAndRowspanModels[e]) == null ? void 0 : f.getRanges()) ?? [];
|
|
1571
1754
|
if (m.length)
|
|
1572
1755
|
for (const x of m) {
|
|
1573
|
-
let
|
|
1756
|
+
let w = 0, C = o.child, y = "center";
|
|
1574
1757
|
if (x.c1 < b)
|
|
1575
|
-
|
|
1758
|
+
C = s.child, y = "west";
|
|
1576
1759
|
else if (g > 0 && x.c1 >= u - g)
|
|
1577
|
-
|
|
1760
|
+
C = i.child, y = "east";
|
|
1578
1761
|
else {
|
|
1579
1762
|
const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
|
|
1580
|
-
|
|
1763
|
+
w = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
|
|
1581
1764
|
}
|
|
1582
|
-
this.drawBigCell(x,
|
|
1765
|
+
this.drawBigCell(x, w, t, h, C, y);
|
|
1583
1766
|
}
|
|
1584
1767
|
}
|
|
1585
1768
|
}
|
|
@@ -1593,17 +1776,17 @@ class Ze extends Ye {
|
|
|
1593
1776
|
* @param sideIdent SideIdent (west,center,east)
|
|
1594
1777
|
* @protected
|
|
1595
1778
|
*/
|
|
1596
|
-
drawBigCell(e, t, s, o, i,
|
|
1597
|
-
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();
|
|
1598
1781
|
let h = 0;
|
|
1599
|
-
c > 0 && e.c1 >=
|
|
1782
|
+
c > 0 && e.c1 >= a - c && (h = a - c);
|
|
1600
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);
|
|
1601
1784
|
let g = !1;
|
|
1602
1785
|
const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
1603
1786
|
b && (g = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
|
|
1604
1787
|
areaModel: o,
|
|
1605
1788
|
areaIdent: o.areaIdent,
|
|
1606
|
-
sideIdent:
|
|
1789
|
+
sideIdent: r,
|
|
1607
1790
|
rowIndex: e.r1,
|
|
1608
1791
|
columnIndex: e.c1,
|
|
1609
1792
|
left: d,
|
|
@@ -1617,7 +1800,7 @@ class Ze extends Ye {
|
|
|
1617
1800
|
}) : this.renderCell({
|
|
1618
1801
|
areaModel: o,
|
|
1619
1802
|
areaIdent: o.areaIdent,
|
|
1620
|
-
sideIdent:
|
|
1803
|
+
sideIdent: r,
|
|
1621
1804
|
rowIndex: e.r1,
|
|
1622
1805
|
columnIndex: e.c1,
|
|
1623
1806
|
left: d,
|
|
@@ -1650,8 +1833,8 @@ class Ze extends Ye {
|
|
|
1650
1833
|
findRowOfImportantRowspanCell(e, t, s) {
|
|
1651
1834
|
const o = e.getMaxRowspan();
|
|
1652
1835
|
for (let i = t - 1; i > -1; i--) {
|
|
1653
|
-
const
|
|
1654
|
-
if (
|
|
1836
|
+
const r = e.getRowspanAt(i, s);
|
|
1837
|
+
if (r > 1 && i + r + 1 >= t)
|
|
1655
1838
|
return i;
|
|
1656
1839
|
if (t - i > o)
|
|
1657
1840
|
return -1;
|
|
@@ -1671,9 +1854,9 @@ class Ze extends Ye {
|
|
|
1671
1854
|
areaModel: s,
|
|
1672
1855
|
geo: o,
|
|
1673
1856
|
parent: i,
|
|
1674
|
-
rowIndex:
|
|
1857
|
+
rowIndex: r,
|
|
1675
1858
|
columnIndexStart: l,
|
|
1676
|
-
columnIndexEnd:
|
|
1859
|
+
columnIndexEnd: a,
|
|
1677
1860
|
verticalFixed: c = !1,
|
|
1678
1861
|
lastRowOfModel: h = !1
|
|
1679
1862
|
}) {
|
|
@@ -1686,42 +1869,42 @@ class Ze extends Ye {
|
|
|
1686
1869
|
}
|
|
1687
1870
|
const p = 0, u = !!(e === "body" && t);
|
|
1688
1871
|
let g = d;
|
|
1689
|
-
for (let f = l; f <=
|
|
1872
|
+
for (let f = l; f <= a; f++) {
|
|
1690
1873
|
const m = g, x = this.tableModel.getColumnWidth(f);
|
|
1691
1874
|
if (x > 0 && m + x > 0) {
|
|
1692
|
-
let
|
|
1693
|
-
const
|
|
1694
|
-
|
|
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));
|
|
1695
1878
|
let S = x;
|
|
1696
1879
|
y > 1 && (S = this.getColumnWidths(f, f + y - 1).reduce((A, M) => A + M, 0));
|
|
1697
|
-
let
|
|
1698
|
-
if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(
|
|
1699
|
-
this.renderDragTargetDiv(i, m, p, S,
|
|
1700
|
-
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 };
|
|
1701
1884
|
this.dom.addColumnBorderDivs(this.tableOptions, i, A, e, t);
|
|
1702
1885
|
} else {
|
|
1703
|
-
const A = this.renderSelectedBackgroundDiv(
|
|
1704
|
-
"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({
|
|
1705
1888
|
areaModel: s,
|
|
1706
1889
|
areaIdent: e,
|
|
1707
1890
|
sideIdent: t,
|
|
1708
|
-
rowIndex:
|
|
1891
|
+
rowIndex: r,
|
|
1709
1892
|
columnIndex: f,
|
|
1710
1893
|
left: m,
|
|
1711
1894
|
top: p,
|
|
1712
1895
|
width: S,
|
|
1713
|
-
height:
|
|
1896
|
+
height: w,
|
|
1714
1897
|
parent: i,
|
|
1715
1898
|
cellSelected: A,
|
|
1716
1899
|
lastRowOfModel: h,
|
|
1717
1900
|
gammaRange: !0
|
|
1718
1901
|
}), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
|
|
1719
|
-
rowIndex:
|
|
1902
|
+
rowIndex: r,
|
|
1720
1903
|
columnIndex: f,
|
|
1721
1904
|
cellLeft: m,
|
|
1722
1905
|
cellTop: p,
|
|
1723
1906
|
cellWidth: S,
|
|
1724
|
-
cellHeight:
|
|
1907
|
+
cellHeight: w,
|
|
1725
1908
|
parent: i
|
|
1726
1909
|
});
|
|
1727
1910
|
}
|
|
@@ -1729,7 +1912,7 @@ class Ze extends Ye {
|
|
|
1729
1912
|
if (g = g + x, g > this.areaBodyCenterGeo.width)
|
|
1730
1913
|
break;
|
|
1731
1914
|
}
|
|
1732
|
-
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new
|
|
1915
|
+
this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(g - 1, 1, o.height, 0), i);
|
|
1733
1916
|
}
|
|
1734
1917
|
/**
|
|
1735
1918
|
* Retrieves the column index of the tree arrow column in the table.
|
|
@@ -1749,26 +1932,26 @@ class Ze extends Ye {
|
|
|
1749
1932
|
sideIdent: s,
|
|
1750
1933
|
rowIndex: o,
|
|
1751
1934
|
index: i,
|
|
1752
|
-
left:
|
|
1935
|
+
left: r,
|
|
1753
1936
|
width: l,
|
|
1754
|
-
height:
|
|
1937
|
+
height: a,
|
|
1755
1938
|
top: c,
|
|
1756
1939
|
parent: h,
|
|
1757
1940
|
lastRowOfModel: d
|
|
1758
1941
|
}) {
|
|
1759
1942
|
var oe;
|
|
1760
|
-
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);
|
|
1761
1944
|
let f = "none";
|
|
1762
|
-
if (i === this.getTreeArrowColumnIndex() &&
|
|
1763
|
-
const
|
|
1764
|
-
(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";
|
|
1765
1948
|
}
|
|
1766
1949
|
let x;
|
|
1767
1950
|
if (t === "header") {
|
|
1768
|
-
const
|
|
1769
|
-
(!(
|
|
1951
|
+
const v = this.tableModel.getColumnDef(i);
|
|
1952
|
+
(!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (x = v == null ? void 0 : v.sortState);
|
|
1770
1953
|
}
|
|
1771
|
-
const
|
|
1954
|
+
const w = e.getValueAt(o, i), C = u ? "" : `${w}`, y = e.isRowChecked(o), S = this.dom.addColumnDiv(
|
|
1772
1955
|
{
|
|
1773
1956
|
parent: h,
|
|
1774
1957
|
geo: g,
|
|
@@ -1776,28 +1959,28 @@ class Ze extends Ye {
|
|
|
1776
1959
|
columnIndex: i,
|
|
1777
1960
|
areaIdent: t,
|
|
1778
1961
|
sideIdent: s,
|
|
1779
|
-
text:
|
|
1962
|
+
text: C,
|
|
1780
1963
|
treeArrow: f,
|
|
1781
1964
|
tableOptions: this.tableOptions,
|
|
1782
1965
|
checkedType: y,
|
|
1783
1966
|
sortState: x
|
|
1784
1967
|
}
|
|
1785
|
-
),
|
|
1786
|
-
|
|
1968
|
+
), R = e.getTooltipAt(o, i);
|
|
1969
|
+
R && this.dom.setAttribute(S, "title", R);
|
|
1787
1970
|
const A = this.tableModel.getColumnDef(i);
|
|
1788
1971
|
A && A.classes[t] && this.dom.addClasses(A.classes[t], S);
|
|
1789
1972
|
let M;
|
|
1790
|
-
u && (M = u.render(S, o, i, t, e,
|
|
1791
|
-
const
|
|
1792
|
-
if (
|
|
1793
|
-
const
|
|
1794
|
-
|
|
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, {});
|
|
1795
1978
|
}
|
|
1796
1979
|
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
1797
|
-
const
|
|
1798
|
-
if (
|
|
1799
|
-
for (const
|
|
1800
|
-
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]);
|
|
1801
1984
|
return [S, M];
|
|
1802
1985
|
}
|
|
1803
1986
|
/**
|
|
@@ -1928,9 +2111,9 @@ class Ze extends Ye {
|
|
|
1928
2111
|
adjustDraggingColumn(e, t, s) {
|
|
1929
2112
|
var o, i;
|
|
1930
2113
|
if (this.dragging) {
|
|
1931
|
-
const
|
|
2114
|
+
const r = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
|
|
1932
2115
|
if ((o = e.originalEvent) != null && o.clientX) {
|
|
1933
|
-
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 };
|
|
1934
2117
|
this.dom.applyStyle(this.draggingColumn, {
|
|
1935
2118
|
background: "rgba(128,128,128,0.2)",
|
|
1936
2119
|
display: "block",
|
|
@@ -1960,12 +2143,12 @@ class Ze extends Ye {
|
|
|
1960
2143
|
* @return {number} The final y-position after rendering all the content.
|
|
1961
2144
|
*/
|
|
1962
2145
|
renderContentOfDraggingColumnForArea(e, t, s = 0) {
|
|
1963
|
-
const o = "center", i = this.tableModel.getAreaModel(t),
|
|
1964
|
-
if (
|
|
1965
|
-
const l = e.index ?? 0,
|
|
1966
|
-
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++) {
|
|
1967
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 = {
|
|
1968
|
-
parent:
|
|
2151
|
+
parent: a,
|
|
1969
2152
|
geo: p,
|
|
1970
2153
|
rowIndex: c,
|
|
1971
2154
|
columnIndex: l,
|
|
@@ -1975,10 +2158,10 @@ class Ze extends Ye {
|
|
|
1975
2158
|
}, m = this.dom.addColumnDiv(f);
|
|
1976
2159
|
let x;
|
|
1977
2160
|
g && (x = g.render(m, c, l, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
1978
|
-
const
|
|
1979
|
-
|
|
1980
|
-
const
|
|
1981
|
-
|
|
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);
|
|
1982
2165
|
const y = i.getCustomStyleAt(c, l);
|
|
1983
2166
|
if (y)
|
|
1984
2167
|
for (const S in y)
|
|
@@ -2010,10 +2193,10 @@ class Ze extends Ye {
|
|
|
2010
2193
|
* @return {HTMLDivElement} - The rendered draggable target div element.
|
|
2011
2194
|
*/
|
|
2012
2195
|
renderDragTargetDiv(e, t, s, o, i) {
|
|
2013
|
-
const
|
|
2196
|
+
const r = this.dom.applyStylePosistionAbsolute(
|
|
2014
2197
|
this.dom.createDivWithClass("ge-table-drop-zone", e)
|
|
2015
2198
|
);
|
|
2016
|
-
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;
|
|
2017
2200
|
}
|
|
2018
2201
|
/**
|
|
2019
2202
|
* Render selected background div.
|
|
@@ -2032,19 +2215,19 @@ class Ze extends Ye {
|
|
|
2032
2215
|
* @param {number} height - The height of the div.
|
|
2033
2216
|
* @returns {boolean} - Whether the cell is selected.
|
|
2034
2217
|
*/
|
|
2035
|
-
renderSelectedBackgroundDiv(e, t, s, o, i,
|
|
2218
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, l, a, c, h, d) {
|
|
2036
2219
|
let p = !1;
|
|
2037
|
-
if (!e && t && o.isSelectable(i,
|
|
2220
|
+
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2038
2221
|
const u = this.getSelectionModel();
|
|
2039
2222
|
if (u) {
|
|
2040
|
-
const g = u.getSelectionCount(i,
|
|
2223
|
+
const g = u.getSelectionCount(i, r);
|
|
2041
2224
|
p = g > 0;
|
|
2042
2225
|
for (let b = 0; b < g; b++) {
|
|
2043
2226
|
const f = this.dom.applyStylePosistionAbsolute(
|
|
2044
2227
|
// ge-table-body-west-selected-range
|
|
2045
2228
|
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, l)
|
|
2046
2229
|
);
|
|
2047
|
-
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`);
|
|
2048
2231
|
}
|
|
2049
2232
|
}
|
|
2050
2233
|
}
|
|
@@ -2075,9 +2258,9 @@ class Ze extends Ye {
|
|
|
2075
2258
|
sideIdent: s,
|
|
2076
2259
|
rowIndex: o,
|
|
2077
2260
|
columnIndex: i,
|
|
2078
|
-
left:
|
|
2261
|
+
left: r,
|
|
2079
2262
|
top: l,
|
|
2080
|
-
width:
|
|
2263
|
+
width: a,
|
|
2081
2264
|
height: c,
|
|
2082
2265
|
parent: h,
|
|
2083
2266
|
cellSelected: d,
|
|
@@ -2089,8 +2272,8 @@ class Ze extends Ye {
|
|
|
2089
2272
|
sideIdent: s,
|
|
2090
2273
|
rowIndex: o,
|
|
2091
2274
|
index: i,
|
|
2092
|
-
left:
|
|
2093
|
-
width:
|
|
2275
|
+
left: r,
|
|
2276
|
+
width: a,
|
|
2094
2277
|
height: c,
|
|
2095
2278
|
top: l,
|
|
2096
2279
|
parent: h,
|
|
@@ -2112,17 +2295,17 @@ class Ze extends Ye {
|
|
|
2112
2295
|
*
|
|
2113
2296
|
* @return {void}
|
|
2114
2297
|
*/
|
|
2115
|
-
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight:
|
|
2116
|
-
const
|
|
2117
|
-
|
|
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);
|
|
2118
2301
|
}
|
|
2119
2302
|
}
|
|
2120
|
-
class
|
|
2303
|
+
class st {
|
|
2121
2304
|
constructor(e, t) {
|
|
2122
2305
|
this.columnIndex = e, this.sortState = t;
|
|
2123
2306
|
}
|
|
2124
2307
|
}
|
|
2125
|
-
class
|
|
2308
|
+
class ot {
|
|
2126
2309
|
constructor(e) {
|
|
2127
2310
|
this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
|
|
2128
2311
|
}
|
|
@@ -2138,13 +2321,13 @@ class et {
|
|
|
2138
2321
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
|
|
2139
2322
|
const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
|
|
2140
2323
|
if (s && o && i) {
|
|
2141
|
-
const
|
|
2142
|
-
this.tableScope.updateModelValueAfterEdit(
|
|
2324
|
+
const r = Q(s), l = Number(o), a = Number(i);
|
|
2325
|
+
this.tableScope.updateModelValueAfterEdit(r, l, a, t.value);
|
|
2143
2326
|
}
|
|
2144
2327
|
}
|
|
2145
2328
|
}
|
|
2146
2329
|
}
|
|
2147
|
-
class
|
|
2330
|
+
class it {
|
|
2148
2331
|
constructor(e = -1, t = -1) {
|
|
2149
2332
|
this.rowIndex = e, this.columnIndex = t;
|
|
2150
2333
|
}
|
|
@@ -2154,20 +2337,20 @@ class te {
|
|
|
2154
2337
|
this.cells = e;
|
|
2155
2338
|
}
|
|
2156
2339
|
static createSingle(e, t) {
|
|
2157
|
-
return new te([new
|
|
2340
|
+
return new te([new it(e, t)]);
|
|
2158
2341
|
}
|
|
2159
2342
|
}
|
|
2160
|
-
class
|
|
2343
|
+
class rt {
|
|
2161
2344
|
constructor(e) {
|
|
2162
2345
|
var t, s;
|
|
2163
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);
|
|
2164
2347
|
}
|
|
2165
2348
|
onMouseClicked(e, t) {
|
|
2166
|
-
var i,
|
|
2349
|
+
var i, r, l, a, c, h, d;
|
|
2167
2350
|
let s = !1, o = !1;
|
|
2168
2351
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2169
2352
|
const p = this.getSelectionModel(), u = this.getFocusModel();
|
|
2170
|
-
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));
|
|
2171
2354
|
}
|
|
2172
2355
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2173
2356
|
}
|
|
@@ -2189,16 +2372,16 @@ class st {
|
|
|
2189
2372
|
}
|
|
2190
2373
|
createRangeByEvents(e, t) {
|
|
2191
2374
|
t || (t = e);
|
|
2192
|
-
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);
|
|
2193
2376
|
return E.create({
|
|
2194
2377
|
rowIndex1: s,
|
|
2195
2378
|
columnIndex1: i,
|
|
2196
2379
|
rowIndex2: o,
|
|
2197
|
-
columnIndex2:
|
|
2380
|
+
columnIndex2: r
|
|
2198
2381
|
});
|
|
2199
2382
|
}
|
|
2200
2383
|
}
|
|
2201
|
-
class
|
|
2384
|
+
class at {
|
|
2202
2385
|
get() {
|
|
2203
2386
|
return {
|
|
2204
2387
|
f2: "START_EDITING",
|
|
@@ -2218,7 +2401,7 @@ class ot {
|
|
|
2218
2401
|
};
|
|
2219
2402
|
}
|
|
2220
2403
|
}
|
|
2221
|
-
class
|
|
2404
|
+
class lt {
|
|
2222
2405
|
get() {
|
|
2223
2406
|
return {
|
|
2224
2407
|
f2: "START_EDITING",
|
|
@@ -2240,7 +2423,7 @@ class it {
|
|
|
2240
2423
|
};
|
|
2241
2424
|
}
|
|
2242
2425
|
}
|
|
2243
|
-
class
|
|
2426
|
+
class nt {
|
|
2244
2427
|
constructor(e) {
|
|
2245
2428
|
this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
|
|
2246
2429
|
}
|
|
@@ -2261,7 +2444,7 @@ class at {
|
|
|
2261
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));
|
|
2262
2445
|
}
|
|
2263
2446
|
assignPredefinedSystemShortcutMappings() {
|
|
2264
|
-
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new
|
|
2447
|
+
this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new lt().get()) : Object.assign(this.shortcutActionIdMapping, new at().get());
|
|
2265
2448
|
}
|
|
2266
2449
|
isMacintosh() {
|
|
2267
2450
|
return navigator.platform.indexOf("Mac") > -1;
|
|
@@ -2313,7 +2496,7 @@ class at {
|
|
|
2313
2496
|
return this.shortcutActionIdMapping;
|
|
2314
2497
|
}
|
|
2315
2498
|
}
|
|
2316
|
-
class
|
|
2499
|
+
class ae {
|
|
2317
2500
|
onCheckboxChanged(e) {
|
|
2318
2501
|
}
|
|
2319
2502
|
onContextmenu(e) {
|
|
@@ -2360,15 +2543,15 @@ class ue {
|
|
|
2360
2543
|
e.setAttribute(t, s);
|
|
2361
2544
|
}
|
|
2362
2545
|
}
|
|
2363
|
-
class
|
|
2364
|
-
render(e, t, s, o, i,
|
|
2546
|
+
class ct {
|
|
2547
|
+
render(e, t, s, o, i, r, l) {
|
|
2365
2548
|
if (i.isEditable(t, s)) {
|
|
2366
2549
|
l.addClass(e, "ge-table-row-input-div");
|
|
2367
|
-
const
|
|
2550
|
+
const a = i.getValueAt(t, s);
|
|
2368
2551
|
e.innerHTML = `
|
|
2369
2552
|
<input
|
|
2370
2553
|
type="text"
|
|
2371
|
-
value="${
|
|
2554
|
+
value="${a}"
|
|
2372
2555
|
autofocus
|
|
2373
2556
|
onfocus="this.setSelectionRange(0, this.value.length)"
|
|
2374
2557
|
data-listen="change"
|
|
@@ -2381,7 +2564,7 @@ class rt {
|
|
|
2381
2564
|
}
|
|
2382
2565
|
}
|
|
2383
2566
|
}
|
|
2384
|
-
class
|
|
2567
|
+
class dt {
|
|
2385
2568
|
constructor(e = "none", t = "single") {
|
|
2386
2569
|
this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
|
|
2387
2570
|
}
|
|
@@ -2463,7 +2646,7 @@ class lt {
|
|
|
2463
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());
|
|
2464
2647
|
}
|
|
2465
2648
|
}
|
|
2466
|
-
class
|
|
2649
|
+
class ht {
|
|
2467
2650
|
constructor(e = "none") {
|
|
2468
2651
|
this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
|
|
2469
2652
|
}
|
|
@@ -2514,14 +2697,14 @@ class me {
|
|
|
2514
2697
|
}
|
|
2515
2698
|
// `⊖ `, `⊕ `;
|
|
2516
2699
|
}
|
|
2517
|
-
const
|
|
2700
|
+
const pt = new dt(), gt = new ht("cell");
|
|
2518
2701
|
class be {
|
|
2519
2702
|
constructor() {
|
|
2520
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 = {
|
|
2521
2704
|
header: 34,
|
|
2522
2705
|
body: 34,
|
|
2523
2706
|
footer: 34
|
|
2524
|
-
}, 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;
|
|
2525
2708
|
}
|
|
2526
2709
|
}
|
|
2527
2710
|
const L = class L {
|
|
@@ -2537,14 +2720,14 @@ const L = class L {
|
|
|
2537
2720
|
createContent(e, t, s) {
|
|
2538
2721
|
return new Promise((o, i) => {
|
|
2539
2722
|
if (t != null && t.hasSelection()) {
|
|
2540
|
-
const
|
|
2541
|
-
if (
|
|
2542
|
-
|
|
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);
|
|
2543
2726
|
const l = [];
|
|
2544
|
-
for (let
|
|
2727
|
+
for (let a = r.r1; a <= r.r2; a++) {
|
|
2545
2728
|
const c = [];
|
|
2546
|
-
for (let h =
|
|
2547
|
-
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) : "";
|
|
2548
2731
|
c.push(d);
|
|
2549
2732
|
}
|
|
2550
2733
|
l.push(c.join(L.columnSeparatorChar));
|
|
@@ -2553,8 +2736,8 @@ const L = class L {
|
|
|
2553
2736
|
}
|
|
2554
2737
|
}
|
|
2555
2738
|
if (s) {
|
|
2556
|
-
const [
|
|
2557
|
-
return o(
|
|
2739
|
+
const [r, l] = s.getFocus(), a = e.getBodyModel().getTextValueAt(r, l);
|
|
2740
|
+
return o(a);
|
|
2558
2741
|
}
|
|
2559
2742
|
i("Cannot copy, neither selection nor focus defined.");
|
|
2560
2743
|
});
|
|
@@ -2582,13 +2765,13 @@ const L = class L {
|
|
|
2582
2765
|
e,
|
|
2583
2766
|
t,
|
|
2584
2767
|
s
|
|
2585
|
-
).then((
|
|
2586
|
-
|
|
2587
|
-
o(
|
|
2768
|
+
).then((r) => {
|
|
2769
|
+
r && this.copyContent(r).then((l) => {
|
|
2770
|
+
o(r);
|
|
2588
2771
|
}).catch((l) => {
|
|
2589
2772
|
i();
|
|
2590
2773
|
});
|
|
2591
|
-
}).catch((
|
|
2774
|
+
}).catch((r) => {
|
|
2592
2775
|
i();
|
|
2593
2776
|
});
|
|
2594
2777
|
});
|
|
@@ -2609,16 +2792,16 @@ const L = class L {
|
|
|
2609
2792
|
L.columnSeparatorChar = " ", L.rowSeparatorChar = `
|
|
2610
2793
|
`;
|
|
2611
2794
|
let H = L;
|
|
2612
|
-
class
|
|
2795
|
+
class ft {
|
|
2613
2796
|
constructor(e, t = 500) {
|
|
2614
|
-
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);
|
|
2615
2798
|
}
|
|
2616
2799
|
handleResize(e) {
|
|
2617
2800
|
const t = e[0], { width: s } = t.contentRect;
|
|
2618
2801
|
this.tableScope.recalcColumnWidths(s);
|
|
2619
2802
|
}
|
|
2620
2803
|
}
|
|
2621
|
-
class
|
|
2804
|
+
class ut {
|
|
2622
2805
|
/**
|
|
2623
2806
|
* Downloads a matrix data as an Excel file.
|
|
2624
2807
|
*
|
|
@@ -2636,8 +2819,8 @@ class pt {
|
|
|
2636
2819
|
try {
|
|
2637
2820
|
const o = this.generateBuffer(e, s), i = new Blob([o], {
|
|
2638
2821
|
type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
2639
|
-
}),
|
|
2640
|
-
|
|
2822
|
+
}), r = document.createElement("a");
|
|
2823
|
+
r.href = URL.createObjectURL(i), r.download = t, document.body.appendChild(r), r.click(), document.body.removeChild(r);
|
|
2641
2824
|
} catch (o) {
|
|
2642
2825
|
throw console.error("Error generating Excel file:", o), new Error("Failed to download Excel file.");
|
|
2643
2826
|
}
|
|
@@ -2646,14 +2829,14 @@ class pt {
|
|
|
2646
2829
|
const s = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2647
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"?>
|
|
2648
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"?>
|
|
2649
|
-
<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"?>
|
|
2650
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"?>
|
|
2651
|
-
<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"?>
|
|
2652
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"?>
|
|
2653
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"?>
|
|
2654
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"?>
|
|
2655
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();
|
|
2656
|
-
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;
|
|
2657
2840
|
}
|
|
2658
2841
|
getX1WorksheetsSheet1Xml(e) {
|
|
2659
2842
|
const t = [];
|
|
@@ -2668,15 +2851,15 @@ class pt {
|
|
|
2668
2851
|
const o = e[s];
|
|
2669
2852
|
t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
|
|
2670
2853
|
for (let i = 0; i < o.length; i++) {
|
|
2671
|
-
const
|
|
2672
|
-
if (typeof
|
|
2673
|
-
t.push(`<c r="${l}"><v>${
|
|
2674
|
-
else if (
|
|
2675
|
-
const
|
|
2676
|
-
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>`);
|
|
2677
2860
|
} else {
|
|
2678
|
-
const
|
|
2679
|
-
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>`);
|
|
2680
2863
|
}
|
|
2681
2864
|
}
|
|
2682
2865
|
t.push("</row>");
|
|
@@ -2711,9 +2894,9 @@ class pt {
|
|
|
2711
2894
|
const p = new TextEncoder().encode(d.path), u = new Uint8Array(46 + p.length), g = new DataView(u.buffer);
|
|
2712
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;
|
|
2713
2896
|
});
|
|
2714
|
-
const
|
|
2715
|
-
|
|
2716
|
-
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);
|
|
2717
2900
|
let h = 0;
|
|
2718
2901
|
for (const d of t)
|
|
2719
2902
|
c.set(d, h), h += d.length;
|
|
@@ -2724,16 +2907,16 @@ class pt {
|
|
|
2724
2907
|
return this.createZip(s);
|
|
2725
2908
|
}
|
|
2726
2909
|
}
|
|
2727
|
-
class se extends
|
|
2728
|
-
constructor(e, t, s, o, i,
|
|
2910
|
+
class se extends tt {
|
|
2911
|
+
constructor(e, t, s, o, i, r = new H(), l = new ut()) {
|
|
2729
2912
|
var h;
|
|
2730
|
-
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) {
|
|
2731
2914
|
const d = this.tableOptions.autoRestoreOptions, p = d.getStorageKeyFn;
|
|
2732
|
-
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)));
|
|
2733
2916
|
}
|
|
2734
|
-
this.mouseHandler = new Ne(this), this.inputHandler = new
|
|
2735
|
-
const
|
|
2736
|
-
|
|
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);
|
|
2737
2920
|
const c = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
2738
2921
|
c && c.addEventFocusChangedListener(this);
|
|
2739
2922
|
}
|
|
@@ -2749,8 +2932,8 @@ class se extends Ze {
|
|
|
2749
2932
|
*
|
|
2750
2933
|
* @return {TableScope} - The newly created TableScope instance.
|
|
2751
2934
|
*/
|
|
2752
|
-
static create(e, t, s = new be(), o = new
|
|
2753
|
-
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);
|
|
2754
2937
|
}
|
|
2755
2938
|
/**
|
|
2756
2939
|
* Triggers an action based on the provided actionId.
|
|
@@ -2889,10 +3072,10 @@ class se extends Ze {
|
|
|
2889
3072
|
* @return {void} - This method does not return anything.
|
|
2890
3073
|
*/
|
|
2891
3074
|
toggleRowCheckbox(e, t, s) {
|
|
2892
|
-
var
|
|
2893
|
-
const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e),
|
|
2894
|
-
o.setRowChecked(e,
|
|
2895
|
-
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();
|
|
2896
3079
|
this.eventListener.onCheckboxChanged(l || []);
|
|
2897
3080
|
}
|
|
2898
3081
|
/**
|
|
@@ -2943,12 +3126,12 @@ class se extends Ze {
|
|
|
2943
3126
|
* @return {void}
|
|
2944
3127
|
*/
|
|
2945
3128
|
onHeaderDblClicked(e, t, s) {
|
|
2946
|
-
var i,
|
|
3129
|
+
var i, r;
|
|
2947
3130
|
const o = this.tableModel.getColumnDef(s);
|
|
2948
3131
|
if (o != null && o.sortable && o.sortable()) {
|
|
2949
3132
|
e.preventDefault(), e.stopPropagation();
|
|
2950
|
-
const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder,
|
|
2951
|
-
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]);
|
|
2952
3135
|
}
|
|
2953
3136
|
}
|
|
2954
3137
|
/**
|
|
@@ -3092,11 +3275,11 @@ class se extends Ze {
|
|
|
3092
3275
|
if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.getRowId && this.storeStateCollapsedExpandService) {
|
|
3093
3276
|
const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
|
|
3094
3277
|
if (s.autoRestoreCollapsedExpandedState && o) {
|
|
3095
|
-
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(),
|
|
3096
|
-
if (J(
|
|
3097
|
-
const l =
|
|
3098
|
-
for (let c = 0; c <
|
|
3099
|
-
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);
|
|
3100
3283
|
if (h)
|
|
3101
3284
|
if (i.allExpanded)
|
|
3102
3285
|
h.expanded = !0;
|
|
@@ -3118,9 +3301,9 @@ class se extends Ze {
|
|
|
3118
3301
|
return console.warn("Body model is not available."), [];
|
|
3119
3302
|
const o = new Array(t).fill(0);
|
|
3120
3303
|
for (let i = 0; i < s; i++)
|
|
3121
|
-
for (let
|
|
3122
|
-
const l = e.getValueAt(i,
|
|
3123
|
-
|
|
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);
|
|
3124
3307
|
}
|
|
3125
3308
|
return o.map((i) => Math.max(i * 10, 50));
|
|
3126
3309
|
}
|
|
@@ -3138,10 +3321,15 @@ class se extends Ze {
|
|
|
3138
3321
|
recalcWrappers() {
|
|
3139
3322
|
this.tableModel.recalcPadding(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows();
|
|
3140
3323
|
}
|
|
3324
|
+
reSort() {
|
|
3325
|
+
var t;
|
|
3326
|
+
let e = ((t = this.storeSortingService) == null ? void 0 : t.getSortItems()) ?? [];
|
|
3327
|
+
this.tableModel.doSort(e);
|
|
3328
|
+
}
|
|
3141
3329
|
}
|
|
3142
|
-
const
|
|
3330
|
+
const V = class V {
|
|
3143
3331
|
};
|
|
3144
|
-
|
|
3332
|
+
V.themes = ["light", "combat", "paper", "blackboard"], V.vars = {
|
|
3145
3333
|
light: `html[data-theme="light"] {
|
|
3146
3334
|
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
3147
3335
|
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
@@ -3375,49 +3563,49 @@ _.themes = ["light", "combat", "paper", "blackboard"], _.vars = {
|
|
|
3375
3563
|
--ge-table-drop-zone-bg: #758129;
|
|
3376
3564
|
}`
|
|
3377
3565
|
};
|
|
3378
|
-
let le =
|
|
3379
|
-
const
|
|
3566
|
+
let le = V;
|
|
3567
|
+
const G = class G {
|
|
3380
3568
|
constructor(e = new me()) {
|
|
3381
3569
|
this.headerGroupOptions = e;
|
|
3382
3570
|
}
|
|
3383
|
-
render(e, t, s, o, i,
|
|
3384
|
-
const
|
|
3385
|
-
if (
|
|
3386
|
-
const { toggle: c, visibility: h, closed: d } =
|
|
3387
|
-
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);
|
|
3388
3576
|
} else
|
|
3389
|
-
this.addText(e, o, t, s,
|
|
3577
|
+
this.addText(e, o, t, s, a, "");
|
|
3390
3578
|
}
|
|
3391
|
-
addText(e, t, s, o, i,
|
|
3579
|
+
addText(e, t, s, o, i, r) {
|
|
3392
3580
|
e.innerHTML = `<span
|
|
3393
|
-
data-ge-action="${
|
|
3581
|
+
data-ge-action="${r}"
|
|
3394
3582
|
data-area="${t}"
|
|
3395
3583
|
data-row-index="${s}"
|
|
3396
3584
|
data-col-index="${o}"
|
|
3397
3585
|
>${i}</span>`;
|
|
3398
3586
|
}
|
|
3399
|
-
addArrowDiv(e, t, s = !0, o = -1, i = -1,
|
|
3400
|
-
const
|
|
3401
|
-
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}`);
|
|
3402
3590
|
let c;
|
|
3403
3591
|
s ? c = this.headerGroupOptions.iconExpanded : c = this.headerGroupOptions.iconCollapsed;
|
|
3404
3592
|
const h = c.content, d = e.createText(h);
|
|
3405
|
-
e.appendChild(
|
|
3593
|
+
e.appendChild(a, d), c.style && this.applyStyleString(e, a, c.style);
|
|
3406
3594
|
for (const p of c.classes)
|
|
3407
|
-
e.addClass(
|
|
3408
|
-
return e.appendChild(t,
|
|
3595
|
+
e.addClass(a, p);
|
|
3596
|
+
return e.appendChild(t, a), a;
|
|
3409
3597
|
}
|
|
3410
3598
|
applyStyleString(e, t, s) {
|
|
3411
3599
|
const o = s.split(";").map((i) => i.trim()).filter((i) => i);
|
|
3412
3600
|
for (const i of o) {
|
|
3413
|
-
const [
|
|
3414
|
-
e.setStyle(t,
|
|
3601
|
+
const [r, l] = i.split(":");
|
|
3602
|
+
e.setStyle(t, r.trim(), l.trim());
|
|
3415
3603
|
}
|
|
3416
3604
|
}
|
|
3417
3605
|
};
|
|
3418
|
-
|
|
3419
|
-
let ne =
|
|
3420
|
-
function
|
|
3606
|
+
G.toggleHeaderGroup = "toggleHeaderGroup";
|
|
3607
|
+
let ne = G;
|
|
3608
|
+
function mt(n) {
|
|
3421
3609
|
let e;
|
|
3422
3610
|
return {
|
|
3423
3611
|
c() {
|
|
@@ -3434,10 +3622,10 @@ function gt(n) {
|
|
|
3434
3622
|
}
|
|
3435
3623
|
};
|
|
3436
3624
|
}
|
|
3437
|
-
function
|
|
3438
|
-
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;
|
|
3439
3627
|
const l = xe();
|
|
3440
|
-
|
|
3628
|
+
we(() => {
|
|
3441
3629
|
const c = {
|
|
3442
3630
|
onSelectionChanged(d) {
|
|
3443
3631
|
l("selectionChanged", d);
|
|
@@ -3466,33 +3654,33 @@ function ft(n, e, t) {
|
|
|
3466
3654
|
onMouseMoved: (d) => {
|
|
3467
3655
|
l("mouseMoved", d);
|
|
3468
3656
|
}
|
|
3469
|
-
}, h = new se(
|
|
3657
|
+
}, h = new se(r, s, new ue(), o, c);
|
|
3470
3658
|
h.firstInit(), l("tableReady", h.getApi()), i && k.getInstance().setLicenseKey(i);
|
|
3471
3659
|
});
|
|
3472
|
-
function
|
|
3473
|
-
|
|
3474
|
-
|
|
3660
|
+
function a(c) {
|
|
3661
|
+
X[c ? "unshift" : "push"](() => {
|
|
3662
|
+
r = c, t(0, r);
|
|
3475
3663
|
});
|
|
3476
3664
|
}
|
|
3477
3665
|
return n.$$set = (c) => {
|
|
3478
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);
|
|
3479
|
-
}, [
|
|
3667
|
+
}, [r, s, o, i, a];
|
|
3480
3668
|
}
|
|
3481
|
-
class
|
|
3669
|
+
class xt extends _e {
|
|
3482
3670
|
constructor(e) {
|
|
3483
|
-
super(), $e(this, e,
|
|
3671
|
+
super(), $e(this, e, bt, mt, ve, {
|
|
3484
3672
|
tableModel: 1,
|
|
3485
3673
|
tableOptions: 2,
|
|
3486
3674
|
licenseKey: 3
|
|
3487
3675
|
});
|
|
3488
3676
|
}
|
|
3489
3677
|
}
|
|
3490
|
-
class
|
|
3678
|
+
class wt {
|
|
3491
3679
|
constructor(e) {
|
|
3492
3680
|
this.Component = e;
|
|
3493
3681
|
}
|
|
3494
|
-
render(e, t, s, o, i,
|
|
3495
|
-
const
|
|
3682
|
+
render(e, t, s, o, i, r, l) {
|
|
3683
|
+
const a = new this.Component({
|
|
3496
3684
|
target: e,
|
|
3497
3685
|
props: {
|
|
3498
3686
|
cellDiv: e,
|
|
@@ -3500,15 +3688,15 @@ class St {
|
|
|
3500
3688
|
columnIndex: s,
|
|
3501
3689
|
areaIdent: o,
|
|
3502
3690
|
areaModel: i,
|
|
3503
|
-
cellValue:
|
|
3691
|
+
cellValue: r
|
|
3504
3692
|
}
|
|
3505
3693
|
});
|
|
3506
3694
|
return () => {
|
|
3507
|
-
|
|
3695
|
+
a.$destroy();
|
|
3508
3696
|
};
|
|
3509
3697
|
}
|
|
3510
3698
|
}
|
|
3511
3699
|
export {
|
|
3512
|
-
|
|
3513
|
-
|
|
3700
|
+
wt as ComponentRendererWrapper,
|
|
3701
|
+
xt as GuiexpertTable
|
|
3514
3702
|
};
|