@guiexpert/svelte-table 4.1.67 → 4.1.68
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 +12 -12
- package/index.js +367 -325
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -1,154 +1,154 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { createEventDispatcher as
|
|
5
|
-
function
|
|
1
|
+
var xe = Object.defineProperty;
|
|
2
|
+
var we = (n, e, t) => e in n ? xe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var j = (n, e, t) => we(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { createEventDispatcher as Ce, onMount as ve } from "svelte";
|
|
5
|
+
function B() {
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function he(n) {
|
|
8
8
|
return n();
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function re() {
|
|
11
11
|
return /* @__PURE__ */ Object.create(null);
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
n.forEach(
|
|
13
|
+
function z(n) {
|
|
14
|
+
n.forEach(he);
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function pe(n) {
|
|
17
17
|
return typeof n == "function";
|
|
18
18
|
}
|
|
19
|
-
function
|
|
19
|
+
function Ee(n, e) {
|
|
20
20
|
return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
|
|
21
21
|
}
|
|
22
|
-
function
|
|
22
|
+
function Ae(n) {
|
|
23
23
|
return Object.keys(n).length === 0;
|
|
24
24
|
}
|
|
25
|
-
function
|
|
25
|
+
function Me(n, e, t) {
|
|
26
26
|
n.insertBefore(e, t || null);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function ge(n) {
|
|
29
29
|
n.parentNode && n.parentNode.removeChild(n);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Re(n) {
|
|
32
32
|
return document.createElement(n);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Te(n, e, t) {
|
|
35
35
|
n.getAttribute(e) !== t && n.setAttribute(e, t);
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function De(n) {
|
|
38
38
|
return Array.from(n.childNodes);
|
|
39
39
|
}
|
|
40
|
-
function
|
|
40
|
+
function $(n, e, t, s) {
|
|
41
41
|
t == null ? n.style.removeProperty(e) : n.style.setProperty(e, t, "");
|
|
42
42
|
}
|
|
43
|
-
let
|
|
44
|
-
function
|
|
45
|
-
|
|
43
|
+
let Z;
|
|
44
|
+
function _(n) {
|
|
45
|
+
Z = n;
|
|
46
46
|
}
|
|
47
|
-
const
|
|
48
|
-
let
|
|
49
|
-
const
|
|
50
|
-
let
|
|
51
|
-
function
|
|
52
|
-
|
|
47
|
+
const O = [], K = [];
|
|
48
|
+
let P = [];
|
|
49
|
+
const ae = [], ke = /* @__PURE__ */ Promise.resolve();
|
|
50
|
+
let Y = !1;
|
|
51
|
+
function Fe() {
|
|
52
|
+
Y || (Y = !0, ke.then(fe));
|
|
53
53
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
54
|
+
function J(n) {
|
|
55
|
+
P.push(n);
|
|
56
56
|
}
|
|
57
|
-
const
|
|
57
|
+
const X = /* @__PURE__ */ new Set();
|
|
58
58
|
let F = 0;
|
|
59
|
-
function
|
|
59
|
+
function fe() {
|
|
60
60
|
if (F !== 0)
|
|
61
61
|
return;
|
|
62
|
-
const n =
|
|
62
|
+
const n = Z;
|
|
63
63
|
do {
|
|
64
64
|
try {
|
|
65
|
-
for (; F <
|
|
66
|
-
const e =
|
|
67
|
-
F++,
|
|
65
|
+
for (; F < O.length; ) {
|
|
66
|
+
const e = O[F];
|
|
67
|
+
F++, _(e), Ie(e.$$);
|
|
68
68
|
}
|
|
69
69
|
} catch (e) {
|
|
70
|
-
throw
|
|
70
|
+
throw O.length = 0, F = 0, e;
|
|
71
71
|
}
|
|
72
|
-
for (
|
|
73
|
-
for (let e = 0; e <
|
|
74
|
-
const t =
|
|
75
|
-
|
|
72
|
+
for (_(null), O.length = 0, F = 0; K.length; ) K.pop()();
|
|
73
|
+
for (let e = 0; e < P.length; e += 1) {
|
|
74
|
+
const t = P[e];
|
|
75
|
+
X.has(t) || (X.add(t), t());
|
|
76
76
|
}
|
|
77
|
-
|
|
78
|
-
} while (
|
|
79
|
-
for (;
|
|
80
|
-
|
|
81
|
-
|
|
77
|
+
P.length = 0;
|
|
78
|
+
} while (O.length);
|
|
79
|
+
for (; ae.length; )
|
|
80
|
+
ae.pop()();
|
|
81
|
+
Y = !1, X.clear(), _(n);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Ie(n) {
|
|
84
84
|
if (n.fragment !== null) {
|
|
85
|
-
n.update(),
|
|
85
|
+
n.update(), z(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(J);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function Oe(n) {
|
|
91
91
|
const e = [], t = [];
|
|
92
|
-
|
|
92
|
+
P.forEach((s) => n.indexOf(s) === -1 ? e.push(s) : t.push(s)), t.forEach((s) => s()), P = e;
|
|
93
93
|
}
|
|
94
94
|
const Le = /* @__PURE__ */ new Set();
|
|
95
|
-
function
|
|
95
|
+
function Be(n, e) {
|
|
96
96
|
n && n.i && (Le.delete(n), n.i(e));
|
|
97
97
|
}
|
|
98
|
-
function
|
|
98
|
+
function Pe(n, e, t) {
|
|
99
99
|
const { fragment: s, after_update: o } = n.$$;
|
|
100
|
-
s && s.m(e, t),
|
|
101
|
-
const i = n.$$.on_mount.map(
|
|
102
|
-
n.$$.on_destroy ? n.$$.on_destroy.push(...i) :
|
|
103
|
-
}), o.forEach(
|
|
100
|
+
s && s.m(e, t), J(() => {
|
|
101
|
+
const i = n.$$.on_mount.map(he).filter(pe);
|
|
102
|
+
n.$$.on_destroy ? n.$$.on_destroy.push(...i) : z(i), n.$$.on_mount = [];
|
|
103
|
+
}), o.forEach(J);
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function $e(n, e) {
|
|
106
106
|
const t = n.$$;
|
|
107
|
-
t.fragment !== null && (
|
|
107
|
+
t.fragment !== null && (Oe(t.after_update), z(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
|
|
108
108
|
}
|
|
109
|
-
function
|
|
110
|
-
n.$$.dirty[0] === -1 && (
|
|
109
|
+
function _e(n, e) {
|
|
110
|
+
n.$$.dirty[0] === -1 && (O.push(n), Fe(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
|
|
111
111
|
}
|
|
112
|
-
function
|
|
113
|
-
const
|
|
114
|
-
|
|
112
|
+
function We(n, e, t, s, o, i, r = null, a = [-1]) {
|
|
113
|
+
const l = Z;
|
|
114
|
+
_(n);
|
|
115
115
|
const c = n.$$ = {
|
|
116
116
|
fragment: null,
|
|
117
117
|
ctx: [],
|
|
118
118
|
// state
|
|
119
119
|
props: i,
|
|
120
|
-
update:
|
|
120
|
+
update: B,
|
|
121
121
|
not_equal: o,
|
|
122
|
-
bound:
|
|
122
|
+
bound: re(),
|
|
123
123
|
// lifecycle
|
|
124
124
|
on_mount: [],
|
|
125
125
|
on_destroy: [],
|
|
126
126
|
on_disconnect: [],
|
|
127
127
|
before_update: [],
|
|
128
128
|
after_update: [],
|
|
129
|
-
context: new Map(e.context || (
|
|
129
|
+
context: new Map(e.context || (l ? l.$$.context : [])),
|
|
130
130
|
// everything else
|
|
131
|
-
callbacks:
|
|
132
|
-
dirty:
|
|
131
|
+
callbacks: re(),
|
|
132
|
+
dirty: a,
|
|
133
133
|
skip_bound: !1,
|
|
134
|
-
root: e.target ||
|
|
134
|
+
root: e.target || l.$$.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
|
-
return c.ctx && o(c.ctx[d], c.ctx[d] = g) && (!c.skip_bound && c.bound[d] && c.bound[d](g), h &&
|
|
141
|
-
}) : [], c.update(), h = !0,
|
|
140
|
+
return c.ctx && o(c.ctx[d], c.ctx[d] = g) && (!c.skip_bound && c.bound[d] && c.bound[d](g), h && _e(n, d)), p;
|
|
141
|
+
}) : [], c.update(), h = !0, z(c.before_update), c.fragment = s ? s(c.ctx) : !1, e.target) {
|
|
142
142
|
if (e.hydrate) {
|
|
143
|
-
const d =
|
|
144
|
-
c.fragment && c.fragment.l(d), d.forEach(
|
|
143
|
+
const d = De(e.target);
|
|
144
|
+
c.fragment && c.fragment.l(d), d.forEach(ge);
|
|
145
145
|
} else
|
|
146
146
|
c.fragment && c.fragment.c();
|
|
147
|
-
e.intro &&
|
|
147
|
+
e.intro && Be(n.$$.fragment), Pe(n, e.target, e.anchor), fe();
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
_(l);
|
|
150
150
|
}
|
|
151
|
-
class
|
|
151
|
+
class He {
|
|
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
|
+
j(this, "$$");
|
|
161
161
|
/**
|
|
162
162
|
* ### PRIVATE API
|
|
163
163
|
*
|
|
@@ -165,11 +165,11 @@ class We {
|
|
|
165
165
|
*
|
|
166
166
|
* @type {any}
|
|
167
167
|
*/
|
|
168
|
-
|
|
168
|
+
j(this, "$$set");
|
|
169
169
|
}
|
|
170
170
|
/** @returns {void} */
|
|
171
171
|
$destroy() {
|
|
172
|
-
|
|
172
|
+
$e(this, 1), this.$destroy = B;
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
175
|
* @template {Extract<keyof Events, string>} K
|
|
@@ -178,8 +178,8 @@ class We {
|
|
|
178
178
|
* @returns {() => void}
|
|
179
179
|
*/
|
|
180
180
|
$on(e, t) {
|
|
181
|
-
if (!
|
|
182
|
-
return
|
|
181
|
+
if (!pe(t))
|
|
182
|
+
return B;
|
|
183
183
|
const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
|
|
184
184
|
return s.push(t), () => {
|
|
185
185
|
const o = s.indexOf(t);
|
|
@@ -191,12 +191,12 @@ class We {
|
|
|
191
191
|
* @returns {void}
|
|
192
192
|
*/
|
|
193
193
|
$set(e) {
|
|
194
|
-
this.$$set && !
|
|
194
|
+
this.$$set && !Ae(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 Ve = "4";
|
|
198
|
+
typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(Ve);
|
|
199
|
+
function Ne(n, e = 500) {
|
|
200
200
|
let t = null;
|
|
201
201
|
return function(...s) {
|
|
202
202
|
t && window.clearTimeout(t), t = window.setTimeout(() => {
|
|
@@ -229,18 +229,18 @@ class k {
|
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function H(n) {
|
|
233
233
|
return n && n.type === "TreeRow";
|
|
234
234
|
}
|
|
235
|
-
function
|
|
235
|
+
function q(n) {
|
|
236
236
|
return n && n.type === "AreaModelTree";
|
|
237
237
|
}
|
|
238
|
-
class
|
|
239
|
-
constructor(e = -1, t = -1, s = -1, o = -1, i, r,
|
|
240
|
-
this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent =
|
|
238
|
+
class Q {
|
|
239
|
+
constructor(e = -1, t = -1, s = -1, o = -1, i, r, a, l = 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 = a, this.clickCount = l, this.draggingX = c, this.draggingY = h, this.action = d;
|
|
241
241
|
}
|
|
242
242
|
clone() {
|
|
243
|
-
return new
|
|
243
|
+
return new Q(
|
|
244
244
|
this.rowIndex,
|
|
245
245
|
this.rowTop,
|
|
246
246
|
this.columnIndex,
|
|
@@ -260,7 +260,7 @@ class D {
|
|
|
260
260
|
this.content = e, this.style = t, this.classes = s;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
class
|
|
263
|
+
class ue {
|
|
264
264
|
constructor(e = new D(
|
|
265
265
|
">",
|
|
266
266
|
"transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
|
|
@@ -281,12 +281,12 @@ class fe {
|
|
|
281
281
|
this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
|
|
282
282
|
}
|
|
283
283
|
}
|
|
284
|
-
class
|
|
284
|
+
class me {
|
|
285
285
|
constructor(e = new D("↑", "", ["ge-header-sorted-asc"]), t = new D("↓", "", ["ge-header-sorted-desc"]), s = new D("↑", "color:transparent;", [])) {
|
|
286
286
|
this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
class
|
|
289
|
+
class Ge {
|
|
290
290
|
constructor(e) {
|
|
291
291
|
this.domService = e;
|
|
292
292
|
}
|
|
@@ -360,24 +360,24 @@ class Ne {
|
|
|
360
360
|
return this.addClass(e, s), this.domService.appendChild(t, s), s;
|
|
361
361
|
}
|
|
362
362
|
addRowDiv(e, t, s = -1, o, i, r = "") {
|
|
363
|
-
const
|
|
364
|
-
if (this.domService.addClass(
|
|
363
|
+
const a = t.index ?? -1, l = this.getDivOrCreateDiv(a, e);
|
|
364
|
+
if (this.domService.addClass(l, "ge-table-row-div"), this.domService.addClass(l, `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(l, `ge-table-row-${c}`);
|
|
367
367
|
}
|
|
368
|
-
if (this.domService.setStyle(
|
|
368
|
+
if (this.domService.setStyle(l, "display", "clip"), this.domService.setStyle(l, "position", "absolute"), this.domService.setStyle(l, "left", `${t.left}px`), this.domService.setStyle(l, "top", `${t.top}px`), this.domService.setStyle(l, "width", `${t.width}px`), this.domService.setStyle(l, "height", `${t.height}px`), this.domService.setAttribute(l, "data-row-index", `${s}`), this.domService.setAttribute(l, "data-area", `${o}`), r) {
|
|
369
369
|
const c = this.domService.createText(r);
|
|
370
|
-
this.domService.appendChild(
|
|
370
|
+
this.domService.appendChild(l, c);
|
|
371
371
|
}
|
|
372
|
-
return this.domService.appendChild(e.child,
|
|
372
|
+
return this.domService.appendChild(e.child, l), l;
|
|
373
373
|
}
|
|
374
374
|
addColumnDiv(e) {
|
|
375
|
-
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent:
|
|
375
|
+
const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: a, text: l = "", 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
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 (r === "body" &&
|
|
378
|
+
if (r === "body" && a === "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), l) {
|
|
379
379
|
const m = c !== "none" && i === 0;
|
|
380
|
-
this.addLabelDiv(b,
|
|
380
|
+
this.addLabelDiv(b, l, 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
|
}
|
|
@@ -393,40 +393,40 @@ class Ne {
|
|
|
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
395
|
addLabelDiv(e, t = "", s = !1, o = -1, i = -1, r = "body") {
|
|
396
|
-
const
|
|
397
|
-
if (this.domService.addClass(
|
|
396
|
+
const a = this.domService.createElement("div");
|
|
397
|
+
if (this.domService.addClass(a, "ge-table-label-div"), this.domService.setStyle(a, "position", "relative"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "width", "100%"), this.domService.setStyle(a, "height", "100%"), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`), t)
|
|
398
398
|
if (s) {
|
|
399
|
-
const
|
|
400
|
-
this.domService.appendChild(
|
|
399
|
+
const l = this.domService.createText(t);
|
|
400
|
+
this.domService.appendChild(a, l);
|
|
401
401
|
} else {
|
|
402
|
-
const
|
|
403
|
-
this.domService.appendChild(
|
|
402
|
+
const l = this.domService.createElement("div");
|
|
403
|
+
this.domService.appendChild(a, l);
|
|
404
404
|
const c = this.domService.createText(t);
|
|
405
|
-
this.domService.addClass(
|
|
405
|
+
this.domService.addClass(l, "ge-table-label"), this.domService.appendChild(l, c), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
|
|
406
406
|
}
|
|
407
|
-
return this.domService.appendChild(e,
|
|
407
|
+
return this.domService.appendChild(e, a), a;
|
|
408
408
|
}
|
|
409
|
-
addSortedIcon(e, t = "", s = new
|
|
409
|
+
addSortedIcon(e, t = "", s = new me(), 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
412
|
let r;
|
|
413
413
|
t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
|
|
414
|
-
const
|
|
415
|
-
this.domService.appendChild(i,
|
|
414
|
+
const a = r.content, l = this.domService.createText(a);
|
|
415
|
+
this.domService.appendChild(i, l), r.style && this.applyStyleString(i, r.style);
|
|
416
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
|
|
421
|
-
const
|
|
422
|
-
this.domService.addClass(
|
|
423
|
-
let
|
|
424
|
-
t === "expanded" ?
|
|
425
|
-
const c =
|
|
426
|
-
this.domService.appendChild(
|
|
427
|
-
for (const d of
|
|
428
|
-
this.domService.addClass(
|
|
429
|
-
return this.domService.appendChild(e,
|
|
420
|
+
addArrowDiv(e, t = "none", s = new ue(), o = -1, i = -1, r = "body") {
|
|
421
|
+
const a = this.domService.createElement("div");
|
|
422
|
+
this.domService.addClass(a, "ge-table-tree-arrow-div"), this.domService.setStyle(a, "display", "inline-block"), this.domService.setStyle(a, "position", ""), this.domService.setStyle(a, "width", "20px"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "cursor", "pointer"), this.domService.setAttribute(a, "data-row-index", `${o}`), this.domService.setAttribute(a, "data-col-index", `${i}`), this.domService.setAttribute(a, "data-area", `${r}`);
|
|
423
|
+
let l;
|
|
424
|
+
t === "expanded" ? l = s.arrowExpanded : t === "collapsed" ? l = s.arrowCollapsed : l = s.arrowPlaceholder;
|
|
425
|
+
const c = l.content, h = this.domService.createText(c);
|
|
426
|
+
this.domService.appendChild(a, h), l.style && this.applyStyleString(a, l.style);
|
|
427
|
+
for (const d of l.classes)
|
|
428
|
+
this.domService.addClass(a, d);
|
|
429
|
+
return this.domService.appendChild(e, a), a;
|
|
430
430
|
}
|
|
431
431
|
addColumnBorderDivs(e, t, s, o, i) {
|
|
432
432
|
if (e.verticalBorderVisible) {
|
|
@@ -468,20 +468,20 @@ class Ne {
|
|
|
468
468
|
return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
|
-
const
|
|
472
|
-
class
|
|
471
|
+
const ee = (n) => n === "header" ? "header" : n === "footer" ? "footer" : "body";
|
|
472
|
+
class ze {
|
|
473
473
|
constructor(e, t) {
|
|
474
474
|
if (this.rowIdx = -1, this.colIdx = -1, this.action = null, this.inputType = null, this.className = "", e !== null && (e instanceof HTMLDivElement || e instanceof HTMLSpanElement || e instanceof HTMLInputElement)) {
|
|
475
475
|
this.className = e.className, this.action = e.getAttribute("data-ge-action"), this.inputType = e.getAttribute("data-input-type"), this.rowIdx = Number(e.getAttribute("data-row-index")), this.colIdx = Number(e.getAttribute("data-col-index"));
|
|
476
476
|
const s = e.getAttribute("data-area");
|
|
477
|
-
if (s && (this.areaIdent =
|
|
477
|
+
if (s && (this.areaIdent = ee(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
|
|
478
478
|
const o = e;
|
|
479
479
|
this.value = o.value;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
483
|
}
|
|
484
|
-
class
|
|
484
|
+
class Ue {
|
|
485
485
|
constructor(e) {
|
|
486
486
|
this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
|
|
487
487
|
(t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
|
|
@@ -513,14 +513,14 @@ class ze {
|
|
|
513
513
|
return;
|
|
514
514
|
}
|
|
515
515
|
this.lastClicked = t;
|
|
516
|
-
const s = new
|
|
516
|
+
const s = new ze(e.target, this.tableScope);
|
|
517
517
|
if (s.action === "toggleExpandCollapseAll")
|
|
518
518
|
this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
|
|
519
519
|
else if (s.action === "toggleHeaderGroup")
|
|
520
520
|
this.tableScope.toggleHeaderGroup(s), e.preventDefault(), e.stopPropagation();
|
|
521
521
|
else if (s.inputType === "checkbox" && s.areaIdent)
|
|
522
522
|
this.tableScope.toggleRowCheckbox(s.rowIdx, s.colIdx, s.areaIdent), e.preventDefault(), e.stopPropagation();
|
|
523
|
-
else if (
|
|
523
|
+
else if (H(s.row) && s.areaModel) {
|
|
524
524
|
const o = s.colIdx === this.getArrowColumnIndex() && e.altKey, i = s.className.includes("ge-table-tree-arrow-div");
|
|
525
525
|
if (o || i) {
|
|
526
526
|
e.preventDefault(), e.stopPropagation();
|
|
@@ -542,15 +542,15 @@ class ze {
|
|
|
542
542
|
*/
|
|
543
543
|
onHostElementDblClicked(e) {
|
|
544
544
|
if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
|
|
545
|
-
const t = e.target, s = t.getAttribute("data-area"), o =
|
|
545
|
+
const t = e.target, s = t.getAttribute("data-area"), o = ee(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), a = this.tableScope.tableModel.getAreaModel(o);
|
|
546
546
|
if (s && o === "header")
|
|
547
547
|
this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
|
|
548
548
|
else if (t.getAttribute("data-row-index")) {
|
|
549
|
-
const
|
|
550
|
-
if (s && o === "body" &&
|
|
549
|
+
const l = a.getRowByIndex(i);
|
|
550
|
+
if (s && o === "body" && a.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), H(l) && r === this.getArrowColumnIndex()) {
|
|
551
551
|
e.preventDefault(), e.stopPropagation();
|
|
552
|
-
const c =
|
|
553
|
-
c.expanded = !c.expanded, "recalcVisibleTreeRows" in
|
|
552
|
+
const c = l;
|
|
553
|
+
c.expanded = !c.expanded, "recalcVisibleTreeRows" in a && a.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(c);
|
|
554
554
|
}
|
|
555
555
|
}
|
|
556
556
|
}
|
|
@@ -575,11 +575,11 @@ class ze {
|
|
|
575
575
|
* @returns {void}
|
|
576
576
|
*/
|
|
577
577
|
updateCollapsedExpandedState(e) {
|
|
578
|
-
var s, o, i, r,
|
|
578
|
+
var s, o, i, r, a;
|
|
579
579
|
const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
|
|
580
580
|
if (t) {
|
|
581
|
-
const
|
|
582
|
-
c ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(d) : h && ((
|
|
581
|
+
const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, c = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded, h = l === "collapsed" && e.expanded || l === "expanded" && !e.expanded, d = t(e.data);
|
|
582
|
+
c ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(d) : h && ((a = this.tableScope.storeStateCollapsedExpandService) == null || a.collapsedStateIdsRemove(d));
|
|
583
583
|
}
|
|
584
584
|
}
|
|
585
585
|
getArrowColumnIndex() {
|
|
@@ -615,7 +615,7 @@ class ze {
|
|
|
615
615
|
}
|
|
616
616
|
}
|
|
617
617
|
}
|
|
618
|
-
class
|
|
618
|
+
class je {
|
|
619
619
|
constructor(e, t = [], s = -1) {
|
|
620
620
|
this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
|
|
621
621
|
}
|
|
@@ -680,8 +680,8 @@ class Ue {
|
|
|
680
680
|
return ((i = s == null ? void 0 : s.editable) == null ? void 0 : i.call(s)) ?? !1;
|
|
681
681
|
}
|
|
682
682
|
setValue(e, t, s) {
|
|
683
|
-
var
|
|
684
|
-
const o = (
|
|
683
|
+
var a;
|
|
684
|
+
const o = (a = this.columnDefs[t]) == null ? void 0 : a.editInputPipe;
|
|
685
685
|
o && (s = o(s, e, t));
|
|
686
686
|
const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
|
|
687
687
|
return r.includes(".") ? this.setPropertyValue(i, r.split("."), s) : (i[r] = s, !0);
|
|
@@ -711,7 +711,7 @@ class Ue {
|
|
|
711
711
|
this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
|
|
712
712
|
}
|
|
713
713
|
}
|
|
714
|
-
class
|
|
714
|
+
class Xe {
|
|
715
715
|
genericSortComparator(e, t, s) {
|
|
716
716
|
if (typeof e == "number" && typeof t == "number")
|
|
717
717
|
return s * (e - t);
|
|
@@ -729,9 +729,9 @@ class je {
|
|
|
729
729
|
return s * ("" + e).localeCompare("" + t);
|
|
730
730
|
}
|
|
731
731
|
}
|
|
732
|
-
class
|
|
732
|
+
class I extends je {
|
|
733
733
|
constructor(e, t, s, o = [], i = "ge-selected-row", r = "ge-focused-row") {
|
|
734
|
-
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.focusedRowIndex = 0, this.sorterService = new
|
|
734
|
+
super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.selectedRowClass = i, this.focusedRowClass = r, this.focusedRowIndex = 0, this.sorterService = new Xe(), this.filteredRows = [...t], this.properties = o.map((a) => a.property);
|
|
735
735
|
}
|
|
736
736
|
setRows(e) {
|
|
737
737
|
this.rows = e, this.filteredRows = [...e];
|
|
@@ -749,7 +749,7 @@ class Xe extends Ue {
|
|
|
749
749
|
getValueAt(e, t) {
|
|
750
750
|
const s = this.properties[t];
|
|
751
751
|
let o = this.filteredRows[e];
|
|
752
|
-
return
|
|
752
|
+
return H(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
|
|
753
753
|
}
|
|
754
754
|
/**
|
|
755
755
|
* Retrieves the filtered and sorted rows from the dataset.
|
|
@@ -792,8 +792,8 @@ class Xe extends Ue {
|
|
|
792
792
|
genericFlatTableSortComparator(e, t) {
|
|
793
793
|
const s = this.columnDefs.find((o) => o.property === e);
|
|
794
794
|
return (o, i) => {
|
|
795
|
-
const r = this.getValueByT(o, e),
|
|
796
|
-
return s != null && s.sortComparator ? t * s.sortComparator(r,
|
|
795
|
+
const r = this.getValueByT(o, e), a = this.getValueByT(i, e);
|
|
796
|
+
return s != null && s.sortComparator ? t * s.sortComparator(r, a, o, i, t) : this.sorterService.genericSortComparator(r, a, t);
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
799
|
getPropertyValue(e, t) {
|
|
@@ -988,12 +988,12 @@ class Ke {
|
|
|
988
988
|
downloadExcel(e = "table.xlsx", t = "") {
|
|
989
989
|
const s = [], o = this.tableScope.tableModel.getColumnCount(), i = ["header", "body", "footer"];
|
|
990
990
|
for (const r of i) {
|
|
991
|
-
const
|
|
992
|
-
for (let c = 0; c <
|
|
991
|
+
const a = this.tableScope.tableModel.getAreaModel(r), l = (a == null ? void 0 : a.getRowCount()) ?? 0;
|
|
992
|
+
for (let c = 0; c < l; c++) {
|
|
993
993
|
const h = [];
|
|
994
994
|
s.push(h);
|
|
995
995
|
for (let d = 0; d < o; d++)
|
|
996
|
-
h.push(
|
|
996
|
+
h.push(a.getValueAt(c, d));
|
|
997
997
|
}
|
|
998
998
|
}
|
|
999
999
|
return this.tableScope.excelService.downloadExcel(s, e, t);
|
|
@@ -1032,7 +1032,49 @@ class Ke {
|
|
|
1032
1032
|
}
|
|
1033
1033
|
setRows(e) {
|
|
1034
1034
|
const t = this.getBodyModel();
|
|
1035
|
-
t instanceof
|
|
1035
|
+
t instanceof I ? t.setRows(e) : console.warn("setRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
|
|
1036
|
+
}
|
|
1037
|
+
addRows(e) {
|
|
1038
|
+
const t = this.getBodyModel();
|
|
1039
|
+
if (t instanceof I) {
|
|
1040
|
+
const s = t;
|
|
1041
|
+
let o = s.getAllRows();
|
|
1042
|
+
s.setRows([...o, ...e]);
|
|
1043
|
+
} else
|
|
1044
|
+
console.warn("addRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof t, t);
|
|
1045
|
+
}
|
|
1046
|
+
addRowsAt(e, t) {
|
|
1047
|
+
const s = this.getBodyModel();
|
|
1048
|
+
if (s instanceof I) {
|
|
1049
|
+
const o = s;
|
|
1050
|
+
let i = o.getAllRows();
|
|
1051
|
+
o.setRows([...i.slice(0, t), ...e, ...i.slice(t)]);
|
|
1052
|
+
} else
|
|
1053
|
+
console.warn("addRowsAt<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1054
|
+
}
|
|
1055
|
+
removeRows(e, t = (s, o) => s === o) {
|
|
1056
|
+
const s = this.getBodyModel();
|
|
1057
|
+
if (s instanceof I) {
|
|
1058
|
+
const o = s, i = o.getAllRows().filter((r) => !e.some((a) => t(r, a)));
|
|
1059
|
+
o.setRows(i);
|
|
1060
|
+
} else
|
|
1061
|
+
console.warn("removeRows<T>(rows: T[]) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1062
|
+
}
|
|
1063
|
+
findRows(e, t = (s, o) => s === o) {
|
|
1064
|
+
const s = this.getBodyModel();
|
|
1065
|
+
return s instanceof I ? s.getAllRows().filter((i) => !e.some((r) => t(i, r))) : (console.warn("findRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s), []);
|
|
1066
|
+
}
|
|
1067
|
+
updateRows(e, t = (s, o) => s === o) {
|
|
1068
|
+
const s = this.getBodyModel();
|
|
1069
|
+
if (s instanceof I) {
|
|
1070
|
+
let i = s.getAllRows();
|
|
1071
|
+
for (const r of i)
|
|
1072
|
+
for (const a of e)
|
|
1073
|
+
if (t(r, a))
|
|
1074
|
+
for (const l of Object.keys(a))
|
|
1075
|
+
r[l] = a[l];
|
|
1076
|
+
} else
|
|
1077
|
+
console.warn("updateRows<T>(rows: T[], predicate: (a: T, b: T) => boolean) only works with AreaModelObjectArray<T>, but this body area model is ", typeof s, s);
|
|
1036
1078
|
}
|
|
1037
1079
|
reSort() {
|
|
1038
1080
|
this.tableScope.reSort();
|
|
@@ -1041,7 +1083,7 @@ class Ke {
|
|
|
1041
1083
|
return this.tableScope.getDisplayedRowCount();
|
|
1042
1084
|
}
|
|
1043
1085
|
}
|
|
1044
|
-
class
|
|
1086
|
+
class te {
|
|
1045
1087
|
constructor(e) {
|
|
1046
1088
|
this.getStorageKeyFn = e;
|
|
1047
1089
|
}
|
|
@@ -1108,7 +1150,7 @@ class ee {
|
|
|
1108
1150
|
// }
|
|
1109
1151
|
// }
|
|
1110
1152
|
}
|
|
1111
|
-
class Ye extends
|
|
1153
|
+
class Ye extends te {
|
|
1112
1154
|
constructor(e) {
|
|
1113
1155
|
super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
|
|
1114
1156
|
}
|
|
@@ -1135,7 +1177,7 @@ class Je {
|
|
|
1135
1177
|
this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
|
|
1136
1178
|
}
|
|
1137
1179
|
}
|
|
1138
|
-
class qe extends
|
|
1180
|
+
class qe extends te {
|
|
1139
1181
|
constructor(e) {
|
|
1140
1182
|
super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new Je(), this.load();
|
|
1141
1183
|
}
|
|
@@ -1169,7 +1211,7 @@ class qe extends ee {
|
|
|
1169
1211
|
this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
|
|
1170
1212
|
}
|
|
1171
1213
|
}
|
|
1172
|
-
class Ze extends
|
|
1214
|
+
class Ze extends te {
|
|
1173
1215
|
constructor(e) {
|
|
1174
1216
|
super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
|
|
1175
1217
|
}
|
|
@@ -1415,9 +1457,9 @@ class et {
|
|
|
1415
1457
|
let i = this.areaModel.getColspanAt(s, o), r = this.areaModel.getRowspanAt(s, o);
|
|
1416
1458
|
if (i > 1 || r > 1) {
|
|
1417
1459
|
i === 0 && (i = 1), r === 0 && (r = 1);
|
|
1418
|
-
const
|
|
1460
|
+
const a = "gammaCells" in this.areaModel;
|
|
1419
1461
|
this.colAndRowspanRanges.push(
|
|
1420
|
-
new E(s, o, s + r - 1, o + i - 1,
|
|
1462
|
+
new E(s, o, s + r - 1, o + i - 1, a)
|
|
1421
1463
|
);
|
|
1422
1464
|
}
|
|
1423
1465
|
}
|
|
@@ -1441,15 +1483,15 @@ class tt {
|
|
|
1441
1483
|
}
|
|
1442
1484
|
class st extends Qe {
|
|
1443
1485
|
constructor(e, t, s, o) {
|
|
1444
|
-
var r,
|
|
1486
|
+
var r, a;
|
|
1445
1487
|
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 = {
|
|
1446
1488
|
header: [],
|
|
1447
1489
|
body: [],
|
|
1448
1490
|
footer: []
|
|
1449
|
-
}, this.tree = !1, this.colAndRowspanModels = new tt(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.displayedRowCount = 0, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (
|
|
1450
|
-
(
|
|
1491
|
+
}, this.tree = !1, this.colAndRowspanModels = new tt(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.displayedRowCount = 0, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (a = this.tableOptions) != null && a.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), q(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
|
|
1492
|
+
(l) => {
|
|
1451
1493
|
var c;
|
|
1452
|
-
this.colAndRowspanModels[
|
|
1494
|
+
this.colAndRowspanModels[l] = new et(t, t.getAreaModel(l)), (c = this.colAndRowspanModels[l]) == null || c.init();
|
|
1453
1495
|
}
|
|
1454
1496
|
);
|
|
1455
1497
|
}
|
|
@@ -1586,23 +1628,23 @@ class st extends Qe {
|
|
|
1586
1628
|
* @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
|
|
1587
1629
|
*/
|
|
1588
1630
|
rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
|
|
1589
|
-
const r = this.tableModel.getAreaModel(e),
|
|
1590
|
-
if (
|
|
1631
|
+
const r = this.tableModel.getAreaModel(e), a = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', l = document.querySelector(a);
|
|
1632
|
+
if (l) {
|
|
1591
1633
|
let c;
|
|
1592
1634
|
const h = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
|
|
1593
1635
|
let d;
|
|
1594
|
-
if (h ? d = this.editorRenderer : d = r.getCellRenderer(t, s),
|
|
1595
|
-
c = d.render(
|
|
1636
|
+
if (h ? d = this.editorRenderer : d = r.getCellRenderer(t, s), l.innerText = "", this.applyCssClasses(l, i), d)
|
|
1637
|
+
c = d.render(l, t, s, e, r, o, this.dom.domService), c && this.cleanupFunctions[e].push(c);
|
|
1596
1638
|
else {
|
|
1597
1639
|
const g = `${o}`;
|
|
1598
|
-
this.dom.addLabelDiv(
|
|
1640
|
+
this.dom.addLabelDiv(l, g, !1, t, s, e);
|
|
1599
1641
|
}
|
|
1600
1642
|
const p = r.getCustomClassesAt(t, s);
|
|
1601
|
-
p.length && this.dom.addClasses(p,
|
|
1643
|
+
p.length && this.dom.addClasses(p, l);
|
|
1602
1644
|
const u = r.getCustomStyleAt(t, s);
|
|
1603
1645
|
if (u)
|
|
1604
1646
|
for (const g in u)
|
|
1605
|
-
this.dom.setStyle(
|
|
1647
|
+
this.dom.setStyle(l, g, u[g]);
|
|
1606
1648
|
}
|
|
1607
1649
|
}
|
|
1608
1650
|
/**
|
|
@@ -1703,7 +1745,7 @@ class st extends Qe {
|
|
|
1703
1745
|
var f;
|
|
1704
1746
|
const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
|
|
1705
1747
|
s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
|
|
1706
|
-
const
|
|
1748
|
+
const a = 0, l = this.areaBodyCenterGeo.width, c = this.tableModel.getPadding(), h = this.tableModel.getAreaModel(e), d = h.getRowCount();
|
|
1707
1749
|
for (; this.cleanupFunctions[e].length; ) {
|
|
1708
1750
|
const m = this.cleanupFunctions[e].shift();
|
|
1709
1751
|
m && m();
|
|
@@ -1714,7 +1756,7 @@ class st extends Qe {
|
|
|
1714
1756
|
const x = p, w = m === d - 1, v = this.tableModel.getRowHeight(e, m);
|
|
1715
1757
|
if (x + v > 0) {
|
|
1716
1758
|
this.firstVisibleRowIndex = m;
|
|
1717
|
-
let y = { left:
|
|
1759
|
+
let y = { left: a, width: l, height: v, top: x, index: m }, S = this.dom.addRowDiv(o, y, m, e, "center");
|
|
1718
1760
|
const R = b;
|
|
1719
1761
|
if (this.adjustColumnsToRowParent({
|
|
1720
1762
|
areaIdent: e,
|
|
@@ -1727,7 +1769,7 @@ class st extends Qe {
|
|
|
1727
1769
|
columnIndexEnd: u - g - 1,
|
|
1728
1770
|
verticalFixed: !1,
|
|
1729
1771
|
lastRowOfModel: w
|
|
1730
|
-
}), c.left > 0 && (y = { left:
|
|
1772
|
+
}), c.left > 0 && (y = { left: a, width: this.areaBodyWestGeo.width, height: v, top: x, index: m }, S = this.dom.addRowDiv(s, y, m, e, "west"), this.adjustColumnsToRowParent({
|
|
1731
1773
|
areaIdent: e,
|
|
1732
1774
|
sideIdent: "west",
|
|
1733
1775
|
areaModel: h,
|
|
@@ -1738,7 +1780,7 @@ class st extends Qe {
|
|
|
1738
1780
|
columnIndexEnd: R - 1,
|
|
1739
1781
|
verticalFixed: !0,
|
|
1740
1782
|
lastRowOfModel: w
|
|
1741
|
-
})), c.right > 0 && (y = { left:
|
|
1783
|
+
})), c.right > 0 && (y = { left: a, width: this.areaBodyEastGeo.width, height: v, top: x, index: m }, S = this.dom.addRowDiv(i, y, m, e, "east"), this.adjustColumnsToRowParent({
|
|
1742
1784
|
areaIdent: e,
|
|
1743
1785
|
sideIdent: "east",
|
|
1744
1786
|
areaModel: h,
|
|
@@ -1759,8 +1801,8 @@ class st extends Qe {
|
|
|
1759
1801
|
{ cursor: "pointer" }
|
|
1760
1802
|
), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
|
|
1761
1803
|
if (M) {
|
|
1762
|
-
const
|
|
1763
|
-
this.dom.domService.appendChild(A,
|
|
1804
|
+
const W = this.dom.domService.createText(M.content);
|
|
1805
|
+
this.dom.domService.appendChild(A, W), M.style && this.dom.applyStyleString(A, M.style);
|
|
1764
1806
|
}
|
|
1765
1807
|
}
|
|
1766
1808
|
}
|
|
@@ -1797,9 +1839,9 @@ class st extends Qe {
|
|
|
1797
1839
|
* @protected
|
|
1798
1840
|
*/
|
|
1799
1841
|
drawBigCell(e, t, s, o, i, r) {
|
|
1800
|
-
const
|
|
1842
|
+
const a = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0), l = this.tableModel.getColumnCount(), c = this.tableModel.getFixedRightColumnCount();
|
|
1801
1843
|
let h = 0;
|
|
1802
|
-
c > 0 && e.c1 >=
|
|
1844
|
+
c > 0 && e.c1 >= l - c && (h = l - c);
|
|
1803
1845
|
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);
|
|
1804
1846
|
let g = !1;
|
|
1805
1847
|
const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
@@ -1810,7 +1852,7 @@ class st extends Qe {
|
|
|
1810
1852
|
rowIndex: e.r1,
|
|
1811
1853
|
columnIndex: e.c1,
|
|
1812
1854
|
left: d,
|
|
1813
|
-
top:
|
|
1855
|
+
top: a,
|
|
1814
1856
|
width: u,
|
|
1815
1857
|
height: p,
|
|
1816
1858
|
parent: i,
|
|
@@ -1824,7 +1866,7 @@ class st extends Qe {
|
|
|
1824
1866
|
rowIndex: e.r1,
|
|
1825
1867
|
columnIndex: e.c1,
|
|
1826
1868
|
left: d,
|
|
1827
|
-
top:
|
|
1869
|
+
top: a,
|
|
1828
1870
|
width: u,
|
|
1829
1871
|
height: p,
|
|
1830
1872
|
parent: i,
|
|
@@ -1835,7 +1877,7 @@ class st extends Qe {
|
|
|
1835
1877
|
rowIndex: e.r1,
|
|
1836
1878
|
columnIndex: e.c1,
|
|
1837
1879
|
cellLeft: d,
|
|
1838
|
-
cellTop:
|
|
1880
|
+
cellTop: a,
|
|
1839
1881
|
cellWidth: u,
|
|
1840
1882
|
cellHeight: p,
|
|
1841
1883
|
parent: i
|
|
@@ -1875,8 +1917,8 @@ class st extends Qe {
|
|
|
1875
1917
|
geo: o,
|
|
1876
1918
|
parent: i,
|
|
1877
1919
|
rowIndex: r,
|
|
1878
|
-
columnIndexStart:
|
|
1879
|
-
columnIndexEnd:
|
|
1920
|
+
columnIndexStart: a,
|
|
1921
|
+
columnIndexEnd: l,
|
|
1880
1922
|
verticalFixed: c = !1,
|
|
1881
1923
|
lastRowOfModel: h = !1
|
|
1882
1924
|
}) {
|
|
@@ -1889,7 +1931,7 @@ class st extends Qe {
|
|
|
1889
1931
|
}
|
|
1890
1932
|
const p = 0, u = !!(e === "body" && t);
|
|
1891
1933
|
let g = d;
|
|
1892
|
-
for (let f =
|
|
1934
|
+
for (let f = a; f <= l; f++) {
|
|
1893
1935
|
const m = g, x = this.tableModel.getColumnWidth(f);
|
|
1894
1936
|
if (x > 0 && m + x > 0) {
|
|
1895
1937
|
let w = o.height;
|
|
@@ -1953,18 +1995,18 @@ class st extends Qe {
|
|
|
1953
1995
|
rowIndex: o,
|
|
1954
1996
|
index: i,
|
|
1955
1997
|
left: r,
|
|
1956
|
-
width:
|
|
1957
|
-
height:
|
|
1998
|
+
width: a,
|
|
1999
|
+
height: l,
|
|
1958
2000
|
top: c,
|
|
1959
2001
|
parent: h,
|
|
1960
2002
|
lastRowOfModel: d
|
|
1961
2003
|
}) {
|
|
1962
|
-
var
|
|
1963
|
-
const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width:
|
|
2004
|
+
var ie;
|
|
2005
|
+
const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: a, height: l, top: c, index: i }, b = e.getRowByIndex(o);
|
|
1964
2006
|
let f = "none";
|
|
1965
|
-
if (i === this.getTreeArrowColumnIndex() &&
|
|
2007
|
+
if (i === this.getTreeArrowColumnIndex() && H(b)) {
|
|
1966
2008
|
const C = b;
|
|
1967
|
-
(
|
|
2009
|
+
(ie = C.children) != null && ie.length ? C.expanded ? f = "expanded" : f = "collapsed" : f = "hidden";
|
|
1968
2010
|
}
|
|
1969
2011
|
let x;
|
|
1970
2012
|
if (t === "header") {
|
|
@@ -1991,16 +2033,16 @@ class st extends Qe {
|
|
|
1991
2033
|
A && A.classes[t] && this.dom.addClasses(A.classes[t], S);
|
|
1992
2034
|
let M;
|
|
1993
2035
|
u && (M = u.render(S, o, i, t, e, w, this.dom.domService));
|
|
1994
|
-
const
|
|
1995
|
-
if (
|
|
2036
|
+
const W = e.getCustomClassesAt(o, i);
|
|
2037
|
+
if (W.length && this.dom.addClasses(W, S), this.dom.addColumnBorderDivs(this.tableOptions, h, g, t, s), d && this.dom.addHorizontalBorder({ left: r, width: a, height: l, top: c + l }, h), this.getFocusModel && t === "body") {
|
|
1996
2038
|
const C = this.getFocusModel();
|
|
1997
2039
|
C != null && C.hasFocus(o, i) && this.dom.addFocusBorderDivs(h, g, {});
|
|
1998
2040
|
}
|
|
1999
2041
|
t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
|
|
2000
|
-
const
|
|
2001
|
-
if (
|
|
2002
|
-
for (const C in
|
|
2003
|
-
this.dom.setStyle(S, C,
|
|
2042
|
+
const U = e.getCustomStyleAt(o, i);
|
|
2043
|
+
if (U)
|
|
2044
|
+
for (const C in U)
|
|
2045
|
+
this.dom.setStyle(S, C, U[C]);
|
|
2004
2046
|
return [S, M];
|
|
2005
2047
|
}
|
|
2006
2048
|
/**
|
|
@@ -2131,9 +2173,9 @@ class st extends Qe {
|
|
|
2131
2173
|
adjustDraggingColumn(e, t, s) {
|
|
2132
2174
|
var o, i;
|
|
2133
2175
|
if (this.dragging) {
|
|
2134
|
-
const r = this.hostElement.clientHeight,
|
|
2176
|
+
const r = this.hostElement.clientHeight, a = this.storedColumnWidths[t];
|
|
2135
2177
|
if ((o = e.originalEvent) != null && o.clientX) {
|
|
2136
|
-
const h = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) -
|
|
2178
|
+
const h = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - a / 2, width: a, height: r, top: 0, index: t };
|
|
2137
2179
|
this.dom.applyStyle(this.draggingColumn, {
|
|
2138
2180
|
background: "rgba(128,128,128,0.2)",
|
|
2139
2181
|
display: "block",
|
|
@@ -2165,24 +2207,24 @@ class st extends Qe {
|
|
|
2165
2207
|
renderContentOfDraggingColumnForArea(e, t, s = 0) {
|
|
2166
2208
|
const o = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
|
|
2167
2209
|
if (r) {
|
|
2168
|
-
const
|
|
2210
|
+
const a = e.index ?? 0, l = this.draggingColumn;
|
|
2169
2211
|
for (let c = 0; c < r; c++) {
|
|
2170
|
-
const h = s, d = i.getRowHeight(c), p = { left: 0, width: e.width, height: d, top: h, index: c }, u = i.getValueAt(c,
|
|
2171
|
-
parent:
|
|
2212
|
+
const h = s, d = i.getRowHeight(c), p = { left: 0, width: e.width, height: d, top: h, index: c }, u = i.getValueAt(c, a), g = i.getCellRenderer(c, a), b = g ? "" : `${u}`, f = {
|
|
2213
|
+
parent: l,
|
|
2172
2214
|
geo: p,
|
|
2173
2215
|
rowIndex: c,
|
|
2174
|
-
columnIndex:
|
|
2216
|
+
columnIndex: a,
|
|
2175
2217
|
areaIdent: t,
|
|
2176
2218
|
sideIdent: o,
|
|
2177
2219
|
text: b
|
|
2178
2220
|
}, m = this.dom.addColumnDiv(f);
|
|
2179
2221
|
let x;
|
|
2180
|
-
g && (x = g.render(m, c,
|
|
2181
|
-
const w = i.getCustomClassesAt(c,
|
|
2222
|
+
g && (x = g.render(m, c, a, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
|
|
2223
|
+
const w = i.getCustomClassesAt(c, a);
|
|
2182
2224
|
w.length && this.dom.addClasses(w, m);
|
|
2183
|
-
const v = this.tableModel.getColumnDef(
|
|
2184
|
-
v && v.classes[t] && this.dom.addClasses(v.classes[t], m), this.dom.addColumnBorderDivs(this.tableOptions,
|
|
2185
|
-
const y = i.getCustomStyleAt(c,
|
|
2225
|
+
const v = this.tableModel.getColumnDef(a);
|
|
2226
|
+
v && v.classes[t] && this.dom.addClasses(v.classes[t], m), this.dom.addColumnBorderDivs(this.tableOptions, l, p, t, o);
|
|
2227
|
+
const y = i.getCustomStyleAt(c, a);
|
|
2186
2228
|
if (y)
|
|
2187
2229
|
for (const S in y)
|
|
2188
2230
|
this.dom.setStyle(m, S, y[S]);
|
|
@@ -2235,7 +2277,7 @@ class st extends Qe {
|
|
|
2235
2277
|
* @param {number} height - The height of the div.
|
|
2236
2278
|
* @returns {boolean} - Whether the cell is selected.
|
|
2237
2279
|
*/
|
|
2238
|
-
renderSelectedBackgroundDiv(e, t, s, o, i, r,
|
|
2280
|
+
renderSelectedBackgroundDiv(e, t, s, o, i, r, a, l, c, h, d) {
|
|
2239
2281
|
let p = !1;
|
|
2240
2282
|
if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
|
|
2241
2283
|
const u = this.getSelectionModel();
|
|
@@ -2245,9 +2287,9 @@ class st extends Qe {
|
|
|
2245
2287
|
for (let b = 0; b < g; b++) {
|
|
2246
2288
|
const f = this.dom.applyStylePosistionAbsolute(
|
|
2247
2289
|
// ge-table-body-west-selected-range
|
|
2248
|
-
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`,
|
|
2290
|
+
this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, a)
|
|
2249
2291
|
);
|
|
2250
|
-
this.dom.setStyle(f, "left", `${
|
|
2292
|
+
this.dom.setStyle(f, "left", `${l}px`), this.dom.setStyle(f, "top", `${c}px`), this.dom.setStyle(f, "width", `${h}px`), this.dom.setStyle(f, "height", `${d}px`);
|
|
2251
2293
|
}
|
|
2252
2294
|
}
|
|
2253
2295
|
}
|
|
@@ -2279,8 +2321,8 @@ class st extends Qe {
|
|
|
2279
2321
|
rowIndex: o,
|
|
2280
2322
|
columnIndex: i,
|
|
2281
2323
|
left: r,
|
|
2282
|
-
top:
|
|
2283
|
-
width:
|
|
2324
|
+
top: a,
|
|
2325
|
+
width: l,
|
|
2284
2326
|
height: c,
|
|
2285
2327
|
parent: h,
|
|
2286
2328
|
cellSelected: d,
|
|
@@ -2293,9 +2335,9 @@ class st extends Qe {
|
|
|
2293
2335
|
rowIndex: o,
|
|
2294
2336
|
index: i,
|
|
2295
2337
|
left: r,
|
|
2296
|
-
width:
|
|
2338
|
+
width: l,
|
|
2297
2339
|
height: c,
|
|
2298
|
-
top:
|
|
2340
|
+
top: a,
|
|
2299
2341
|
parent: h,
|
|
2300
2342
|
lastRowOfModel: p
|
|
2301
2343
|
});
|
|
@@ -2315,9 +2357,9 @@ class st extends Qe {
|
|
|
2315
2357
|
*
|
|
2316
2358
|
* @return {void}
|
|
2317
2359
|
*/
|
|
2318
|
-
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent:
|
|
2319
|
-
const
|
|
2320
|
-
|
|
2360
|
+
renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: a }) {
|
|
2361
|
+
const l = this.dom.domService, c = this.tableOptions.columnResizeHandleWidthInPx ?? 2, h = l.createElement("div");
|
|
2362
|
+
l.setAttribute(h, "data-col-index", `${t}`), l.setAttribute(h, "data-row-index", `${e}`), l.setAttribute(h, "data-area", "header"), l.setAttribute(h, "data-ge-action", "resize-column"), l.addClass(h, "ge-table-column-resize-handle"), l.setStyle(h, "display", "clip"), l.setStyle(h, "position", "absolute"), l.setStyle(h, "cursor", "col-resize"), l.setStyle(h, "left", `${s + i - c}px`), l.setStyle(h, "top", `${o}px`), l.setStyle(h, "width", `${c}px`), l.setStyle(h, "height", `${r}px`), l.appendChild(a, h);
|
|
2321
2363
|
}
|
|
2322
2364
|
}
|
|
2323
2365
|
class ot {
|
|
@@ -2341,8 +2383,8 @@ class it {
|
|
|
2341
2383
|
if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
|
|
2342
2384
|
const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
|
|
2343
2385
|
if (s && o && i) {
|
|
2344
|
-
const r =
|
|
2345
|
-
this.tableScope.updateModelValueAfterEdit(r,
|
|
2386
|
+
const r = ee(s), a = Number(o), l = Number(i);
|
|
2387
|
+
this.tableScope.updateModelValueAfterEdit(r, a, l, t.value);
|
|
2346
2388
|
}
|
|
2347
2389
|
}
|
|
2348
2390
|
}
|
|
@@ -2352,12 +2394,12 @@ class rt {
|
|
|
2352
2394
|
this.rowIndex = e, this.columnIndex = t;
|
|
2353
2395
|
}
|
|
2354
2396
|
}
|
|
2355
|
-
class
|
|
2397
|
+
class se {
|
|
2356
2398
|
constructor(e) {
|
|
2357
2399
|
this.cells = e;
|
|
2358
2400
|
}
|
|
2359
2401
|
static createSingle(e, t) {
|
|
2360
|
-
return new
|
|
2402
|
+
return new se([new rt(e, t)]);
|
|
2361
2403
|
}
|
|
2362
2404
|
}
|
|
2363
2405
|
class at {
|
|
@@ -2366,11 +2408,11 @@ class at {
|
|
|
2366
2408
|
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);
|
|
2367
2409
|
}
|
|
2368
2410
|
onMouseClicked(e, t) {
|
|
2369
|
-
var i, r,
|
|
2411
|
+
var i, r, a, l, c, h, d;
|
|
2370
2412
|
let s = !1, o = !1;
|
|
2371
2413
|
if (this.getSelectionModel && this.getFocusModel) {
|
|
2372
2414
|
const p = this.getSelectionModel(), u = this.getFocusModel();
|
|
2373
|
-
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) : (
|
|
2415
|
+
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) : (a = e.originalEvent) != null && a.altKey && ((l = e.originalEvent) != null && l.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));
|
|
2374
2416
|
}
|
|
2375
2417
|
return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
|
|
2376
2418
|
}
|
|
@@ -2449,7 +2491,7 @@ function ct(n) {
|
|
|
2449
2491
|
return o !== i ? o - i : e.localeCompare(t);
|
|
2450
2492
|
}).join(" ");
|
|
2451
2493
|
}
|
|
2452
|
-
function
|
|
2494
|
+
function le(n) {
|
|
2453
2495
|
let e = n.key.toLowerCase();
|
|
2454
2496
|
if (e === " " && (e = "space"), e === "arrowleft" && (e = "left"), e === "arrowright" && (e = "right"), e === "arrowup" && (e = "up"), e === "arrowdown" && (e = "down"), e === "delete" && n.code === "Delete" && (e = "delete"), e === "backspace" && (e = "backspace"), e === "escape" && (e = "esc"), e === "return" && (e = "enter"), n.code.startsWith("Numpad")) {
|
|
2455
2497
|
const s = n.code.replace("Numpad", "").toLowerCase();
|
|
@@ -2504,10 +2546,10 @@ class dt {
|
|
|
2504
2546
|
return t;
|
|
2505
2547
|
}
|
|
2506
2548
|
findEntity(e) {
|
|
2507
|
-
const t =
|
|
2549
|
+
const t = le(e);
|
|
2508
2550
|
this.isDebug() && console.debug("ShortcutService shortcut :", t);
|
|
2509
2551
|
for (const s in this.shortcutActionIdMapping)
|
|
2510
|
-
if (
|
|
2552
|
+
if (le(e) === t)
|
|
2511
2553
|
return this.isDebug() && console.debug("ShortcutService action :", this.shortcutActionIdMapping[s]), this.shortcutActionIdMapping[s];
|
|
2512
2554
|
}
|
|
2513
2555
|
// private areTokensEquals(tokens1: string[], tokens2: string[]): boolean {
|
|
@@ -2554,7 +2596,7 @@ class dt {
|
|
|
2554
2596
|
return this.shortcutActionIdMapping;
|
|
2555
2597
|
}
|
|
2556
2598
|
}
|
|
2557
|
-
class
|
|
2599
|
+
class ne {
|
|
2558
2600
|
onCheckboxChanged(e) {
|
|
2559
2601
|
}
|
|
2560
2602
|
onContextmenu(e) {
|
|
@@ -2574,7 +2616,7 @@ class le {
|
|
|
2574
2616
|
onFocusChanged(e) {
|
|
2575
2617
|
}
|
|
2576
2618
|
}
|
|
2577
|
-
class
|
|
2619
|
+
class be {
|
|
2578
2620
|
setStyle(e, t, s) {
|
|
2579
2621
|
return e.style[t] = s, e;
|
|
2580
2622
|
}
|
|
@@ -2602,14 +2644,14 @@ class me {
|
|
|
2602
2644
|
}
|
|
2603
2645
|
}
|
|
2604
2646
|
class ht {
|
|
2605
|
-
render(e, t, s, o, i, r,
|
|
2647
|
+
render(e, t, s, o, i, r, a) {
|
|
2606
2648
|
if (i.isEditable(t, s)) {
|
|
2607
|
-
|
|
2608
|
-
const
|
|
2649
|
+
a.addClass(e, "ge-table-row-input-div");
|
|
2650
|
+
const l = i.getValueAt(t, s);
|
|
2609
2651
|
e.innerHTML = `
|
|
2610
2652
|
<input
|
|
2611
2653
|
type="text"
|
|
2612
|
-
value="${
|
|
2654
|
+
value="${l}"
|
|
2613
2655
|
autofocus
|
|
2614
2656
|
onfocus="this.setSelectionRange(0, this.value.length)"
|
|
2615
2657
|
data-listen="change"
|
|
@@ -2741,7 +2783,7 @@ class gt {
|
|
|
2741
2783
|
return [this.rowIndex, this.columnIndex];
|
|
2742
2784
|
}
|
|
2743
2785
|
}
|
|
2744
|
-
class
|
|
2786
|
+
class Se {
|
|
2745
2787
|
constructor(e = new D(
|
|
2746
2788
|
"❯",
|
|
2747
2789
|
"",
|
|
@@ -2756,13 +2798,13 @@ class be {
|
|
|
2756
2798
|
// `⊖ `, `⊕ `;
|
|
2757
2799
|
}
|
|
2758
2800
|
const ft = new pt(), ut = new gt("cell");
|
|
2759
|
-
class
|
|
2801
|
+
class ye {
|
|
2760
2802
|
constructor() {
|
|
2761
2803
|
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 = {
|
|
2762
2804
|
header: 34,
|
|
2763
2805
|
body: 34,
|
|
2764
2806
|
footer: 34
|
|
2765
|
-
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new
|
|
2807
|
+
}, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ue(), this.headerGroupOptions = new Se(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new me(), this.sortOrder = ["asc", "desc"], this.shortcutActionsDisabled = !1, this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new ht(), this.getSelectionModel = () => ft, this.getFocusModel = () => ut;
|
|
2766
2808
|
}
|
|
2767
2809
|
}
|
|
2768
2810
|
const L = class L {
|
|
@@ -2781,21 +2823,21 @@ const L = class L {
|
|
|
2781
2823
|
const r = this.mergeRanges(t.getRanges());
|
|
2782
2824
|
if (r) {
|
|
2783
2825
|
r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
|
|
2784
|
-
const
|
|
2785
|
-
for (let
|
|
2826
|
+
const a = [];
|
|
2827
|
+
for (let l = r.r1; l <= r.r2; l++) {
|
|
2786
2828
|
const c = [];
|
|
2787
2829
|
for (let h = r.c1; h <= r.c2; h++) {
|
|
2788
|
-
const d = t.isSelected(
|
|
2830
|
+
const d = t.isSelected(l, h) ? e.getBodyModel().getTextValueAt(l, h) : "";
|
|
2789
2831
|
c.push(d);
|
|
2790
2832
|
}
|
|
2791
|
-
|
|
2833
|
+
a.push(c.join(L.columnSeparatorChar));
|
|
2792
2834
|
}
|
|
2793
|
-
return o(
|
|
2835
|
+
return o(a.join(L.rowSeparatorChar));
|
|
2794
2836
|
}
|
|
2795
2837
|
}
|
|
2796
2838
|
if (s) {
|
|
2797
|
-
const [r,
|
|
2798
|
-
return o(
|
|
2839
|
+
const [r, a] = s.getFocus(), l = e.getBodyModel().getTextValueAt(r, a);
|
|
2840
|
+
return o(l);
|
|
2799
2841
|
}
|
|
2800
2842
|
i("Cannot copy, neither selection nor focus defined.");
|
|
2801
2843
|
});
|
|
@@ -2824,9 +2866,9 @@ const L = class L {
|
|
|
2824
2866
|
t,
|
|
2825
2867
|
s
|
|
2826
2868
|
).then((r) => {
|
|
2827
|
-
r && this.copyContent(r).then((
|
|
2869
|
+
r && this.copyContent(r).then((a) => {
|
|
2828
2870
|
o(r);
|
|
2829
|
-
}).catch((
|
|
2871
|
+
}).catch((a) => {
|
|
2830
2872
|
i();
|
|
2831
2873
|
});
|
|
2832
2874
|
}).catch((r) => {
|
|
@@ -2849,10 +2891,10 @@ const L = class L {
|
|
|
2849
2891
|
};
|
|
2850
2892
|
L.columnSeparatorChar = " ", L.rowSeparatorChar = `
|
|
2851
2893
|
`;
|
|
2852
|
-
let
|
|
2894
|
+
let V = L;
|
|
2853
2895
|
class mt {
|
|
2854
2896
|
constructor(e, t = 500) {
|
|
2855
|
-
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(
|
|
2897
|
+
this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Ne(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
|
|
2856
2898
|
}
|
|
2857
2899
|
handleResize(e) {
|
|
2858
2900
|
const t = e[0], { width: s } = t.contentRect;
|
|
@@ -2888,13 +2930,13 @@ class bt {
|
|
|
2888
2930
|
<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"?>
|
|
2889
2931
|
<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"?>
|
|
2890
2932
|
<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"?>
|
|
2891
|
-
<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>`,
|
|
2892
|
-
<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>`,
|
|
2933
|
+
<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>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2934
|
+
<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="0E2841"/></a:dk2><a:lt2><a:srgbClr val="E8E8E8"/></a:lt2><a:accent1><a:srgbClr val="156082"/></a:accent1><a:accent2><a:srgbClr val="E97132"/></a:accent2><a:accent3><a:srgbClr val="196B24"/></a:accent3><a:accent4><a:srgbClr val="0F9ED5"/></a:accent4><a:accent5><a:srgbClr val="A02B93"/></a:accent5><a:accent6><a:srgbClr val="4EA72E"/></a:accent6><a:hlink><a:srgbClr val="467886"/></a:hlink><a:folHlink><a:srgbClr val="96607D"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Aptos Display" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Aptos Narrow" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{2E142A2C-CD16-42D6-873A-C26D2A0506FA}" vid="{1BDDFF52-6CD6-40A5-AB3C-68EB2F1E4D0A}"/></a:ext></a:extLst></a:theme>`, l = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
2893
2935
|
<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"?>
|
|
2894
2936
|
<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"?>
|
|
2895
2937
|
<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"?>
|
|
2896
2938
|
<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();
|
|
2897
|
-
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",
|
|
2939
|
+
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", a), p.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), p.set("xl/sharedStrings.xml", l), p.set("xl/styles.xml", c), p.set("xl/workbook.xml", h), p.set("[Content_Types].xml", d), p;
|
|
2898
2940
|
}
|
|
2899
2941
|
getX1WorksheetsSheet1Xml(e) {
|
|
2900
2942
|
const t = [];
|
|
@@ -2909,15 +2951,15 @@ class bt {
|
|
|
2909
2951
|
const o = e[s];
|
|
2910
2952
|
t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
|
|
2911
2953
|
for (let i = 0; i < o.length; i++) {
|
|
2912
|
-
const r = o[i],
|
|
2954
|
+
const r = o[i], a = this.getCellAddress(s, i);
|
|
2913
2955
|
if (typeof r == "number")
|
|
2914
|
-
t.push(`<c r="${
|
|
2956
|
+
t.push(`<c r="${a}"><v>${r}</v></c>`);
|
|
2915
2957
|
else if (r instanceof Date) {
|
|
2916
|
-
const
|
|
2917
|
-
t.push(`<c r="${
|
|
2958
|
+
const l = r;
|
|
2959
|
+
t.push(`<c r="${a}" t="inlineStr"><is><t>${l.toISOString()}</t></is></c>`);
|
|
2918
2960
|
} else {
|
|
2919
|
-
const
|
|
2920
|
-
t.push(`<c r="${
|
|
2961
|
+
const l = r != null ? this.escapeXml(String(r)) : "";
|
|
2962
|
+
t.push(`<c r="${a}" t="inlineStr"><is><t>${l}</t></is></c>`);
|
|
2921
2963
|
}
|
|
2922
2964
|
}
|
|
2923
2965
|
t.push("</row>");
|
|
@@ -2952,9 +2994,9 @@ class bt {
|
|
|
2952
2994
|
const p = new TextEncoder().encode(d.path), u = new Uint8Array(46 + p.length), g = new DataView(u.buffer);
|
|
2953
2995
|
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;
|
|
2954
2996
|
});
|
|
2955
|
-
const r = new Uint8Array(22),
|
|
2956
|
-
r.set([80, 75, 5, 6], 0),
|
|
2957
|
-
const
|
|
2997
|
+
const r = new Uint8Array(22), a = new DataView(r.buffer);
|
|
2998
|
+
r.set([80, 75, 5, 6], 0), a.setUint16(4, 0, !0), a.setUint16(6, 0, !0), a.setUint16(8, o.length, !0), a.setUint16(10, o.length, !0), a.setUint32(12, s - i, !0), a.setUint32(16, i, !0), a.setUint16(20, 0, !0), t.push(r);
|
|
2999
|
+
const l = t.reduce((d, p) => d + p.length, 0), c = new Uint8Array(l);
|
|
2958
3000
|
let h = 0;
|
|
2959
3001
|
for (const d of t)
|
|
2960
3002
|
c.set(d, h), h += d.length;
|
|
@@ -2965,16 +3007,16 @@ class bt {
|
|
|
2965
3007
|
return this.createZip(s);
|
|
2966
3008
|
}
|
|
2967
3009
|
}
|
|
2968
|
-
class
|
|
2969
|
-
constructor(e, t, s, o, i, r = new
|
|
3010
|
+
class oe extends st {
|
|
3011
|
+
constructor(e, t, s, o, i, r = new V(), a = new bt()) {
|
|
2970
3012
|
var h;
|
|
2971
|
-
if (super(e, t, new
|
|
3013
|
+
if (super(e, t, new Ge(s), o), this.eventListener = i, this.copyService = r, this.excelService = a, this.licenseManager = k.getInstance(), this.selectionService = new at(this), this.api = new Ke(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, this.lastContextmenu = Date.now(), t.setTableScope(this), i || (this.eventListener = new ne()), (h = this.tableOptions) != null && h.autoRestoreOptions) {
|
|
2972
3014
|
const d = this.tableOptions.autoRestoreOptions, p = d.getStorageKeyFn;
|
|
2973
3015
|
p && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Ye(p)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new qe(p)), d.autoRestoreSortingState && (this.storeSortingService = new Ze(p)));
|
|
2974
3016
|
}
|
|
2975
|
-
this.mouseHandler = new
|
|
2976
|
-
const
|
|
2977
|
-
|
|
3017
|
+
this.mouseHandler = new Ue(this), this.inputHandler = new it(this), this.resizeHandler = new mt(this, o.resizeEventDebounceDelay), this.shortcutService = new dt(this), this.shortcutService.addListener(this.selectionService);
|
|
3018
|
+
const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
|
|
3019
|
+
l && l.addEventSelectionChangedListener(this);
|
|
2978
3020
|
const c = this.getFocusModel ? this.getFocusModel() : void 0;
|
|
2979
3021
|
c && c.addEventFocusChangedListener(this), console.log("TableScope created");
|
|
2980
3022
|
}
|
|
@@ -2990,8 +3032,8 @@ class se extends st {
|
|
|
2990
3032
|
*
|
|
2991
3033
|
* @return {TableScope} - The newly created TableScope instance.
|
|
2992
3034
|
*/
|
|
2993
|
-
static create(e, t, s = new
|
|
2994
|
-
return new
|
|
3035
|
+
static create(e, t, s = new ye(), o = new ne(), i = new be(), r = new V()) {
|
|
3036
|
+
return new oe(e, t, i, s, o, r);
|
|
2995
3037
|
}
|
|
2996
3038
|
/**
|
|
2997
3039
|
* Triggers an action based on the provided actionId.
|
|
@@ -3019,7 +3061,7 @@ class se extends st {
|
|
|
3019
3061
|
return !1;
|
|
3020
3062
|
}
|
|
3021
3063
|
updateModelValueAfterEdit(e, t, s, o) {
|
|
3022
|
-
e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(
|
|
3064
|
+
e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(se.createSingle(t, s)), this.hostElement.focus());
|
|
3023
3065
|
}
|
|
3024
3066
|
/**
|
|
3025
3067
|
* Retrieves the TableApi object.
|
|
@@ -3048,7 +3090,7 @@ class se extends st {
|
|
|
3048
3090
|
* @return {GeMouseEvent} - The created GeMouseEvent object.
|
|
3049
3091
|
*/
|
|
3050
3092
|
createGeMouseEvent(e) {
|
|
3051
|
-
const t = new
|
|
3093
|
+
const t = new Q();
|
|
3052
3094
|
if (t.originalEvent = e, e) {
|
|
3053
3095
|
const s = e.target;
|
|
3054
3096
|
if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(s), t.rowIndex = this.getNumberByAttr(s, "data-row-index"), t.columnIndex = this.getNumberByAttr(s, "data-col-index"), t.action = this.getStringByAttr(s, "data-ge-action"), t.areaIdent) {
|
|
@@ -3124,7 +3166,7 @@ class se extends st {
|
|
|
3124
3166
|
toggleExpandCollapseAll(e = !0) {
|
|
3125
3167
|
var s;
|
|
3126
3168
|
const t = this.tableModel.getBodyModel();
|
|
3127
|
-
|
|
3169
|
+
q(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
|
|
3128
3170
|
}
|
|
3129
3171
|
/**
|
|
3130
3172
|
* Toggles the checkbox state of a specific row in a table.
|
|
@@ -3136,11 +3178,11 @@ class se extends st {
|
|
|
3136
3178
|
* @return {void} - This method does not return anything.
|
|
3137
3179
|
*/
|
|
3138
3180
|
toggleRowCheckbox(e, t, s) {
|
|
3139
|
-
var
|
|
3181
|
+
var l;
|
|
3140
3182
|
const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
|
|
3141
3183
|
o.setRowChecked(e, r), this.repaint();
|
|
3142
|
-
const
|
|
3143
|
-
this.eventListener.onCheckboxChanged(
|
|
3184
|
+
const a = (l = o.rowSelectionModel) == null ? void 0 : l.getCheckedRows();
|
|
3185
|
+
this.eventListener.onCheckboxChanged(a || []);
|
|
3144
3186
|
}
|
|
3145
3187
|
/**
|
|
3146
3188
|
* Handle mouse click events.
|
|
@@ -3194,7 +3236,7 @@ class se extends st {
|
|
|
3194
3236
|
const o = this.tableModel.getColumnDef(s);
|
|
3195
3237
|
if (o != null && o.sortable && o.sortable()) {
|
|
3196
3238
|
e.preventDefault(), e.stopPropagation();
|
|
3197
|
-
const
|
|
3239
|
+
const a = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", c = a[(a.indexOf(l) + 1) % a.length], h = new ot(s, c);
|
|
3198
3240
|
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]);
|
|
3199
3241
|
}
|
|
3200
3242
|
}
|
|
@@ -3340,9 +3382,9 @@ class se extends st {
|
|
|
3340
3382
|
const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
|
|
3341
3383
|
if (s.autoRestoreCollapsedExpandedState && o) {
|
|
3342
3384
|
const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
|
|
3343
|
-
if (
|
|
3344
|
-
const
|
|
3345
|
-
for (let c = 0; c <
|
|
3385
|
+
if (q(r)) {
|
|
3386
|
+
const a = r, l = r.getRowCount();
|
|
3387
|
+
for (let c = 0; c < l; c++) {
|
|
3346
3388
|
const h = r.getRowByIndex(c);
|
|
3347
3389
|
if (h)
|
|
3348
3390
|
if (i.allExpanded)
|
|
@@ -3354,7 +3396,7 @@ class se extends st {
|
|
|
3354
3396
|
i.mode === "expanded" ? h.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d) : i.mode === "collapsed" && (h.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d));
|
|
3355
3397
|
}
|
|
3356
3398
|
}
|
|
3357
|
-
|
|
3399
|
+
a.recalcVisibleTreeRows();
|
|
3358
3400
|
}
|
|
3359
3401
|
}
|
|
3360
3402
|
}
|
|
@@ -3366,8 +3408,8 @@ class se extends st {
|
|
|
3366
3408
|
const o = new Array(t).fill(0);
|
|
3367
3409
|
for (let i = 0; i < s; i++)
|
|
3368
3410
|
for (let r = 0; r < t; r++) {
|
|
3369
|
-
const
|
|
3370
|
-
|
|
3411
|
+
const a = e.getValueAt(i, r), l = (a == null ? void 0 : a.toString().length) || 0;
|
|
3412
|
+
l > o[r] && (o[r] = l);
|
|
3371
3413
|
}
|
|
3372
3414
|
return o.map((i) => Math.max(i * 10, 50));
|
|
3373
3415
|
}
|
|
@@ -3394,9 +3436,9 @@ class se extends st {
|
|
|
3394
3436
|
return this.displayedRowCount;
|
|
3395
3437
|
}
|
|
3396
3438
|
}
|
|
3397
|
-
const
|
|
3439
|
+
const N = class N {
|
|
3398
3440
|
};
|
|
3399
|
-
|
|
3441
|
+
N.themes = ["light", "combat", "paper", "blackboard"], N.vars = {
|
|
3400
3442
|
light: `html[data-theme="light"] {
|
|
3401
3443
|
--ge-table-bg: rgba(255,255,255, 0.5);
|
|
3402
3444
|
--ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
|
|
@@ -3630,18 +3672,18 @@ V.themes = ["light", "combat", "paper", "blackboard"], V.vars = {
|
|
|
3630
3672
|
--ge-table-drop-zone-bg: #758129;
|
|
3631
3673
|
}`
|
|
3632
3674
|
};
|
|
3633
|
-
let
|
|
3634
|
-
const
|
|
3635
|
-
constructor(e = new
|
|
3675
|
+
let ce = N;
|
|
3676
|
+
const G = class G {
|
|
3677
|
+
constructor(e = new Se()) {
|
|
3636
3678
|
this.headerGroupOptions = e;
|
|
3637
3679
|
}
|
|
3638
|
-
render(e, t, s, o, i, r,
|
|
3639
|
-
const
|
|
3680
|
+
render(e, t, s, o, i, r, a) {
|
|
3681
|
+
const l = r != null && r.data ? r.data : "";
|
|
3640
3682
|
if (r) {
|
|
3641
|
-
const { toggle: c, visibility: h, closed: d } = r, p = c ?
|
|
3642
|
-
this.addText(e, o, t, s,
|
|
3683
|
+
const { toggle: c, visibility: h, closed: d } = r, p = c ? G.toggleHeaderGroup : "";
|
|
3684
|
+
this.addText(e, o, t, s, l, p), c && h !== "always" && this.addArrowDiv(a, e, !d, t, s, o, p);
|
|
3643
3685
|
} else
|
|
3644
|
-
this.addText(e, o, t, s,
|
|
3686
|
+
this.addText(e, o, t, s, l, "");
|
|
3645
3687
|
}
|
|
3646
3688
|
addText(e, t, s, o, i, r) {
|
|
3647
3689
|
e.innerHTML = `<span
|
|
@@ -3651,91 +3693,91 @@ const N = class N {
|
|
|
3651
3693
|
data-col-index="${o}"
|
|
3652
3694
|
>${i}</span>`;
|
|
3653
3695
|
}
|
|
3654
|
-
addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header",
|
|
3655
|
-
const
|
|
3656
|
-
e.addClass(
|
|
3696
|
+
addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", a) {
|
|
3697
|
+
const l = e.createElement("div");
|
|
3698
|
+
e.addClass(l, "ge-table-toggle-icon-div"), e.setStyle(l, "display", "inline-block"), e.setStyle(l, "position", ""), e.setStyle(l, "width", "20px"), e.setStyle(l, "background", "transparent"), e.setStyle(l, "cursor", "pointer"), e.setAttribute(l, "data-row-index", `${o}`), e.setAttribute(l, "data-col-index", `${i}`), e.setAttribute(l, "data-area", `${r}`), e.setAttribute(l, "data-ge-action", `${a}`);
|
|
3657
3699
|
let c;
|
|
3658
3700
|
s ? c = this.headerGroupOptions.iconExpanded : c = this.headerGroupOptions.iconCollapsed;
|
|
3659
3701
|
const h = c.content, d = e.createText(h);
|
|
3660
|
-
e.appendChild(
|
|
3702
|
+
e.appendChild(l, d), c.style && this.applyStyleString(e, l, c.style);
|
|
3661
3703
|
for (const p of c.classes)
|
|
3662
|
-
e.addClass(
|
|
3663
|
-
return e.appendChild(t,
|
|
3704
|
+
e.addClass(l, p);
|
|
3705
|
+
return e.appendChild(t, l), l;
|
|
3664
3706
|
}
|
|
3665
3707
|
applyStyleString(e, t, s) {
|
|
3666
3708
|
const o = s.split(";").map((i) => i.trim()).filter((i) => i);
|
|
3667
3709
|
for (const i of o) {
|
|
3668
|
-
const [r,
|
|
3669
|
-
e.setStyle(t, r.trim(),
|
|
3710
|
+
const [r, a] = i.split(":");
|
|
3711
|
+
e.setStyle(t, r.trim(), a.trim());
|
|
3670
3712
|
}
|
|
3671
3713
|
}
|
|
3672
3714
|
};
|
|
3673
|
-
|
|
3674
|
-
let
|
|
3715
|
+
G.toggleHeaderGroup = "toggleHeaderGroup";
|
|
3716
|
+
let de = G;
|
|
3675
3717
|
function St(n) {
|
|
3676
3718
|
let e;
|
|
3677
3719
|
return {
|
|
3678
3720
|
c() {
|
|
3679
|
-
e =
|
|
3721
|
+
e = Re("div"), Te(e, "class", "ge-table"), $(e, "width", "100%"), $(e, "height", "100%"), $(e, "background-color", "transparent"), $(e, "padding", "0"), $(e, "margin", "0");
|
|
3680
3722
|
},
|
|
3681
3723
|
m(t, s) {
|
|
3682
|
-
|
|
3724
|
+
Me(t, e, s), n[4](e);
|
|
3683
3725
|
},
|
|
3684
|
-
p:
|
|
3685
|
-
i:
|
|
3686
|
-
o:
|
|
3726
|
+
p: B,
|
|
3727
|
+
i: B,
|
|
3728
|
+
o: B,
|
|
3687
3729
|
d(t) {
|
|
3688
|
-
t &&
|
|
3730
|
+
t && ge(e), n[4](null);
|
|
3689
3731
|
}
|
|
3690
3732
|
};
|
|
3691
3733
|
}
|
|
3692
3734
|
function yt(n, e, t) {
|
|
3693
|
-
let { tableModel: s } = e, { tableOptions: o = new
|
|
3694
|
-
const
|
|
3695
|
-
|
|
3735
|
+
let { tableModel: s } = e, { tableOptions: o = new ye() } = e, { licenseKey: i } = e, r;
|
|
3736
|
+
const a = Ce();
|
|
3737
|
+
ve(() => {
|
|
3696
3738
|
const c = {
|
|
3697
3739
|
onSelectionChanged(d) {
|
|
3698
|
-
|
|
3740
|
+
a("selectionChanged", d);
|
|
3699
3741
|
},
|
|
3700
3742
|
onFocusChanged(d) {
|
|
3701
|
-
|
|
3743
|
+
a("focusChanged", d);
|
|
3702
3744
|
},
|
|
3703
3745
|
onCheckboxChanged: (d) => {
|
|
3704
|
-
|
|
3746
|
+
a("checkboxChanged", d);
|
|
3705
3747
|
},
|
|
3706
3748
|
onContextmenu: (d) => {
|
|
3707
|
-
|
|
3749
|
+
a("contextmenu", d);
|
|
3708
3750
|
},
|
|
3709
3751
|
onModelChanged: (d) => {
|
|
3710
|
-
|
|
3752
|
+
a("modelChanged", d);
|
|
3711
3753
|
},
|
|
3712
3754
|
onMouseClicked: (d) => {
|
|
3713
|
-
|
|
3755
|
+
a("mouseClicked", d);
|
|
3714
3756
|
},
|
|
3715
3757
|
onMouseDragging: (d) => {
|
|
3716
|
-
|
|
3758
|
+
a("mouseDragging", d);
|
|
3717
3759
|
},
|
|
3718
3760
|
onMouseDraggingEnd: (d) => {
|
|
3719
|
-
|
|
3761
|
+
a("mouseDraggingEnd", d);
|
|
3720
3762
|
},
|
|
3721
3763
|
onMouseMoved: (d) => {
|
|
3722
|
-
|
|
3764
|
+
a("mouseMoved", d);
|
|
3723
3765
|
}
|
|
3724
|
-
}, h = new
|
|
3725
|
-
h.firstInit(),
|
|
3766
|
+
}, h = new oe(r, s, new be(), o, c);
|
|
3767
|
+
h.firstInit(), a("tableReady", h.getApi()), i && k.getInstance().setLicenseKey(i);
|
|
3726
3768
|
});
|
|
3727
|
-
function
|
|
3728
|
-
|
|
3769
|
+
function l(c) {
|
|
3770
|
+
K[c ? "unshift" : "push"](() => {
|
|
3729
3771
|
r = c, t(0, r);
|
|
3730
3772
|
});
|
|
3731
3773
|
}
|
|
3732
3774
|
return n.$$set = (c) => {
|
|
3733
3775
|
"tableModel" in c && t(1, s = c.tableModel), "tableOptions" in c && t(2, o = c.tableOptions), "licenseKey" in c && t(3, i = c.licenseKey);
|
|
3734
|
-
}, [r, s, o, i,
|
|
3776
|
+
}, [r, s, o, i, l];
|
|
3735
3777
|
}
|
|
3736
|
-
class Ct extends
|
|
3778
|
+
class Ct extends He {
|
|
3737
3779
|
constructor(e) {
|
|
3738
|
-
super(),
|
|
3780
|
+
super(), We(this, e, yt, St, Ee, {
|
|
3739
3781
|
tableModel: 1,
|
|
3740
3782
|
tableOptions: 2,
|
|
3741
3783
|
licenseKey: 3
|
|
@@ -3746,8 +3788,8 @@ class vt {
|
|
|
3746
3788
|
constructor(e) {
|
|
3747
3789
|
this.Component = e;
|
|
3748
3790
|
}
|
|
3749
|
-
render(e, t, s, o, i, r,
|
|
3750
|
-
const
|
|
3791
|
+
render(e, t, s, o, i, r, a) {
|
|
3792
|
+
const l = new this.Component({
|
|
3751
3793
|
target: e,
|
|
3752
3794
|
props: {
|
|
3753
3795
|
cellDiv: e,
|
|
@@ -3759,7 +3801,7 @@ class vt {
|
|
|
3759
3801
|
}
|
|
3760
3802
|
});
|
|
3761
3803
|
return () => {
|
|
3762
|
-
|
|
3804
|
+
l.$destroy();
|
|
3763
3805
|
};
|
|
3764
3806
|
}
|
|
3765
3807
|
}
|