@guiexpert/svelte-table 4.0.9 → 4.0.11

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.
Files changed (3) hide show
  1. package/index.cjs +31 -15
  2. package/index.js +1048 -898
  3. package/package.json +2 -2
package/index.js CHANGED
@@ -1,125 +1,125 @@
1
- var me = Object.defineProperty;
2
- var ye = (a, e, t) => e in a ? me(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var N = (a, e, t) => (ye(a, typeof e != "symbol" ? e + "" : e, t), t);
4
- import { createEventDispatcher as ve, onMount as we } from "svelte";
5
- function L() {
1
+ var Se = Object.defineProperty;
2
+ var ye = (n, e, t) => e in n ? Se(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var z = (n, e, t) => (ye(n, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { createEventDispatcher as xe, onMount as ve } from "svelte";
5
+ function O() {
6
6
  }
7
- function de(a) {
8
- return a();
7
+ function ce(n) {
8
+ return n();
9
9
  }
10
10
  function ie() {
11
11
  return /* @__PURE__ */ Object.create(null);
12
12
  }
13
- function V(a) {
14
- a.forEach(de);
13
+ function G(n) {
14
+ n.forEach(ce);
15
15
  }
16
- function ce(a) {
17
- return typeof a == "function";
16
+ function de(n) {
17
+ return typeof n == "function";
18
18
  }
19
- function Ce(a, e) {
20
- return a != a ? e == e : a !== e || a && typeof a == "object" || typeof a == "function";
19
+ function Ce(n, e) {
20
+ return n != n ? e == e : n !== e || n && typeof n == "object" || typeof n == "function";
21
21
  }
22
- function xe(a) {
23
- return Object.keys(a).length === 0;
22
+ function we(n) {
23
+ return Object.keys(n).length === 0;
24
24
  }
25
- function Ee(a, e, t) {
26
- a.insertBefore(e, t || null);
25
+ function Ee(n, e, t) {
26
+ n.insertBefore(e, t || null);
27
27
  }
28
- function he(a) {
29
- a.parentNode && a.parentNode.removeChild(a);
28
+ function he(n) {
29
+ n.parentNode && n.parentNode.removeChild(n);
30
30
  }
31
- function Ae(a) {
32
- return document.createElement(a);
31
+ function Ae(n) {
32
+ return document.createElement(n);
33
33
  }
34
- function Me(a, e, t) {
35
- t == null ? a.removeAttribute(e) : a.getAttribute(e) !== t && a.setAttribute(e, t);
34
+ function Me(n, e, t) {
35
+ t == null ? n.removeAttribute(e) : n.getAttribute(e) !== t && n.setAttribute(e, t);
36
36
  }
37
- function Re(a) {
38
- return Array.from(a.childNodes);
37
+ function Te(n) {
38
+ return Array.from(n.childNodes);
39
39
  }
40
- function _(a, e, t, o) {
41
- t == null ? a.style.removeProperty(e) : a.style.setProperty(e, t, o ? "important" : "");
40
+ function P(n, e, t, s) {
41
+ t == null ? n.style.removeProperty(e) : n.style.setProperty(e, t, s ? "important" : "");
42
42
  }
43
- let J;
44
- function B(a) {
45
- J = a;
43
+ let q;
44
+ function $(n) {
45
+ q = n;
46
46
  }
47
- const O = [], X = [];
48
- let $ = [];
49
- const re = [], Te = /* @__PURE__ */ Promise.resolve();
50
- let K = !1;
47
+ const I = [], j = [];
48
+ let B = [];
49
+ const ae = [], Re = /* @__PURE__ */ Promise.resolve();
50
+ let X = !1;
51
51
  function De() {
52
- K || (K = !0, Te.then(ge));
52
+ X || (X = !0, Re.then(pe));
53
53
  }
54
- function Y(a) {
55
- $.push(a);
54
+ function K(n) {
55
+ B.push(n);
56
56
  }
57
- const j = /* @__PURE__ */ new Set();
58
- let I = 0;
59
- function ge() {
60
- if (I !== 0)
57
+ const U = /* @__PURE__ */ new Set();
58
+ let F = 0;
59
+ function pe() {
60
+ if (F !== 0)
61
61
  return;
62
- const a = J;
62
+ const n = q;
63
63
  do {
64
64
  try {
65
- for (; I < O.length; ) {
66
- const e = O[I];
67
- I++, B(e), ke(e.$$);
65
+ for (; F < I.length; ) {
66
+ const e = I[F];
67
+ F++, $(e), ke(e.$$);
68
68
  }
69
69
  } catch (e) {
70
- throw O.length = 0, I = 0, e;
70
+ throw I.length = 0, F = 0, e;
71
71
  }
72
- for (B(null), O.length = 0, I = 0; X.length; )
73
- X.pop()();
74
- for (let e = 0; e < $.length; e += 1) {
75
- const t = $[e];
76
- j.has(t) || (j.add(t), t());
72
+ for ($(null), I.length = 0, F = 0; j.length; )
73
+ j.pop()();
74
+ for (let e = 0; e < B.length; e += 1) {
75
+ const t = B[e];
76
+ U.has(t) || (U.add(t), t());
77
77
  }
78
- $.length = 0;
79
- } while (O.length);
80
- for (; re.length; )
81
- re.pop()();
82
- K = !1, j.clear(), B(a);
78
+ B.length = 0;
79
+ } while (I.length);
80
+ for (; ae.length; )
81
+ ae.pop()();
82
+ X = !1, U.clear(), $(n);
83
83
  }
84
- function ke(a) {
85
- if (a.fragment !== null) {
86
- a.update(), V(a.before_update);
87
- const e = a.dirty;
88
- a.dirty = [-1], a.fragment && a.fragment.p(a.ctx, e), a.after_update.forEach(Y);
84
+ function ke(n) {
85
+ if (n.fragment !== null) {
86
+ n.update(), G(n.before_update);
87
+ const e = n.dirty;
88
+ n.dirty = [-1], n.fragment && n.fragment.p(n.ctx, e), n.after_update.forEach(K);
89
89
  }
90
90
  }
91
- function Ie(a) {
91
+ function Fe(n) {
92
92
  const e = [], t = [];
93
- $.forEach((o) => a.indexOf(o) === -1 ? e.push(o) : t.push(o)), t.forEach((o) => o()), $ = e;
94
- }
95
- const Oe = /* @__PURE__ */ new Set();
96
- function Fe(a, e) {
97
- a && a.i && (Oe.delete(a), a.i(e));
98
- }
99
- function Le(a, e, t) {
100
- const { fragment: o, after_update: s } = a.$$;
101
- o && o.m(e, t), Y(() => {
102
- const i = a.$$.on_mount.map(de).filter(ce);
103
- a.$$.on_destroy ? a.$$.on_destroy.push(...i) : V(i), a.$$.on_mount = [];
104
- }), s.forEach(Y);
105
- }
106
- function $e(a, e) {
107
- const t = a.$$;
108
- t.fragment !== null && (Ie(t.after_update), V(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
109
- }
110
- function _e(a, e) {
111
- a.$$.dirty[0] === -1 && (O.push(a), De(), a.$$.dirty.fill(0)), a.$$.dirty[e / 31 | 0] |= 1 << e % 31;
112
- }
113
- function Be(a, e, t, o, s, i, r = null, n = [-1]) {
114
- const l = J;
115
- B(a);
116
- const d = a.$$ = {
93
+ B.forEach((s) => n.indexOf(s) === -1 ? e.push(s) : t.push(s)), t.forEach((s) => s()), B = e;
94
+ }
95
+ const Ie = /* @__PURE__ */ new Set();
96
+ function Le(n, e) {
97
+ n && n.i && (Ie.delete(n), n.i(e));
98
+ }
99
+ function Oe(n, e, t) {
100
+ const { fragment: s, after_update: o } = n.$$;
101
+ s && s.m(e, t), K(() => {
102
+ const i = n.$$.on_mount.map(ce).filter(de);
103
+ n.$$.on_destroy ? n.$$.on_destroy.push(...i) : G(i), n.$$.on_mount = [];
104
+ }), o.forEach(K);
105
+ }
106
+ function Be(n, e) {
107
+ const t = n.$$;
108
+ t.fragment !== null && (Fe(t.after_update), G(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
109
+ }
110
+ function Pe(n, e) {
111
+ n.$$.dirty[0] === -1 && (I.push(n), De(), n.$$.dirty.fill(0)), n.$$.dirty[e / 31 | 0] |= 1 << e % 31;
112
+ }
113
+ function $e(n, e, t, s, o, i, a = null, l = [-1]) {
114
+ const r = q;
115
+ $(n);
116
+ const c = n.$$ = {
117
117
  fragment: null,
118
118
  ctx: [],
119
119
  // state
120
120
  props: i,
121
- update: L,
122
- not_equal: s,
121
+ update: O,
122
+ not_equal: o,
123
123
  bound: ie(),
124
124
  // lifecycle
125
125
  on_mount: [],
@@ -127,29 +127,29 @@ function Be(a, e, t, o, s, i, r = null, n = [-1]) {
127
127
  on_disconnect: [],
128
128
  before_update: [],
129
129
  after_update: [],
130
- context: new Map(e.context || (l ? l.$$.context : [])),
130
+ context: new Map(e.context || (r ? r.$$.context : [])),
131
131
  // everything else
132
132
  callbacks: ie(),
133
- dirty: n,
133
+ dirty: l,
134
134
  skip_bound: !1,
135
- root: e.target || l.$$.root
135
+ root: e.target || r.$$.root
136
136
  };
137
- r && r(d.root);
138
- let c = !1;
139
- if (d.ctx = t ? t(a, e.props || {}, (h, g, ...S) => {
140
- const b = S.length ? S[0] : g;
141
- return d.ctx && s(d.ctx[h], d.ctx[h] = b) && (!d.skip_bound && d.bound[h] && d.bound[h](b), c && _e(a, h)), g;
142
- }) : [], d.update(), c = !0, V(d.before_update), d.fragment = o ? o(d.ctx) : !1, e.target) {
137
+ a && a(c.root);
138
+ let h = !1;
139
+ if (c.ctx = t ? t(n, e.props || {}, (d, p, ...u) => {
140
+ const g = u.length ? u[0] : p;
141
+ return c.ctx && o(c.ctx[d], c.ctx[d] = g) && (!c.skip_bound && c.bound[d] && c.bound[d](g), h && Pe(n, d)), p;
142
+ }) : [], c.update(), h = !0, G(c.before_update), c.fragment = s ? s(c.ctx) : !1, e.target) {
143
143
  if (e.hydrate) {
144
- const h = Re(e.target);
145
- d.fragment && d.fragment.l(h), h.forEach(he);
144
+ const d = Te(e.target);
145
+ c.fragment && c.fragment.l(d), d.forEach(he);
146
146
  } else
147
- d.fragment && d.fragment.c();
148
- e.intro && Fe(a.$$.fragment), Le(a, e.target, e.anchor), ge();
147
+ c.fragment && c.fragment.c();
148
+ e.intro && Le(n.$$.fragment), Oe(n, e.target, e.anchor), pe();
149
149
  }
150
- B(l);
150
+ $(r);
151
151
  }
152
- class Pe {
152
+ class He {
153
153
  constructor() {
154
154
  /**
155
155
  * ### PRIVATE API
@@ -158,7 +158,7 @@ class Pe {
158
158
  *
159
159
  * @type {any}
160
160
  */
161
- N(this, "$$");
161
+ z(this, "$$");
162
162
  /**
163
163
  * ### PRIVATE API
164
164
  *
@@ -166,11 +166,11 @@ class Pe {
166
166
  *
167
167
  * @type {any}
168
168
  */
169
- N(this, "$$set");
169
+ z(this, "$$set");
170
170
  }
171
171
  /** @returns {void} */
172
172
  $destroy() {
173
- $e(this, 1), this.$destroy = L;
173
+ Be(this, 1), this.$destroy = O;
174
174
  }
175
175
  /**
176
176
  * @template {Extract<keyof Events, string>} K
@@ -179,12 +179,12 @@ class Pe {
179
179
  * @returns {() => void}
180
180
  */
181
181
  $on(e, t) {
182
- if (!ce(t))
183
- return L;
184
- const o = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
185
- return o.push(t), () => {
186
- const s = o.indexOf(t);
187
- s !== -1 && o.splice(s, 1);
182
+ if (!de(t))
183
+ return O;
184
+ const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
185
+ return s.push(t), () => {
186
+ const o = s.indexOf(t);
187
+ o !== -1 && s.splice(o, 1);
188
188
  };
189
189
  }
190
190
  /**
@@ -192,11 +192,19 @@ class Pe {
192
192
  * @returns {void}
193
193
  */
194
194
  $set(e) {
195
- this.$$set && !xe(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
195
+ this.$$set && !we(e) && (this.$$.skip_bound = !0, this.$$set(e), this.$$.skip_bound = !1);
196
196
  }
197
197
  }
198
- const We = "4";
199
- typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(We);
198
+ const _e = "4";
199
+ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__ */ new Set() })).v.add(_e);
200
+ function We(n, e = 500) {
201
+ let t = null;
202
+ return function(...s) {
203
+ t && window.clearTimeout(t), t = window.setTimeout(() => {
204
+ n.apply(this, s), t = null;
205
+ }, e);
206
+ };
207
+ }
200
208
  class k {
201
209
  // The constructor is private to prevent direct construction calls
202
210
  // with the `new` operator
@@ -222,18 +230,18 @@ class k {
222
230
  }
223
231
  }
224
232
  }
225
- function q(a) {
226
- return a && a.type === "TreeRow";
233
+ function Y(n) {
234
+ return n && n.type === "TreeRow";
227
235
  }
228
- function U(a) {
229
- return a && a.type === "AreaModelTree";
236
+ function J(n) {
237
+ return n && n.type === "AreaModelTree";
230
238
  }
231
- class Q {
232
- constructor(e = -1, t = -1, o = -1, s = -1, i, r, n, l = 0, d = 0, c = 0, h = "") {
233
- this.rowIndex = e, this.rowTop = t, this.columnIndex = o, this.columnLeft = s, this.areaIdent = i, this.sideIdent = r, this.originalEvent = n, this.clickCount = l, this.draggingX = d, this.draggingY = c, this.action = h;
239
+ class Z {
240
+ constructor(e = -1, t = -1, s = -1, o = -1, i, a, l, r = 0, c = 0, h = 0, d = "") {
241
+ this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = a, this.originalEvent = l, this.clickCount = r, this.draggingX = c, this.draggingY = h, this.action = d;
234
242
  }
235
243
  clone() {
236
- return new Q(
244
+ return new Z(
237
245
  this.rowIndex,
238
246
  this.rowTop,
239
247
  this.columnIndex,
@@ -249,11 +257,11 @@ class Q {
249
257
  }
250
258
  }
251
259
  class D {
252
- constructor(e = ">", t = "", o = []) {
253
- this.content = e, this.style = t, this.classes = o;
260
+ constructor(e = ">", t = "", s = []) {
261
+ this.content = e, this.style = t, this.classes = s;
254
262
  }
255
263
  }
256
- class pe {
264
+ class ge {
257
265
  constructor(e = new D(
258
266
  ">",
259
267
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
@@ -262,33 +270,33 @@ class pe {
262
270
  ">",
263
271
  "",
264
272
  ["ge-table-tree-arrow-collapsed"]
265
- ), o = new D(
273
+ ), s = new D(
266
274
  ">",
267
275
  "color:transparent;",
268
276
  ["gt-table-tree-arrow-hidden"]
269
- ), s = new D(
277
+ ), o = new D(
270
278
  "↕",
271
279
  "",
272
280
  ["gt-table-tree-arrow-expanded-all"]
273
281
  )) {
274
- this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = o, this.arrowExpandCollapseAll = s;
282
+ this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
275
283
  }
276
284
  }
277
- class ue {
278
- constructor(e = new D("↑", "", ["ge-header-sorted-asc"]), t = new D("↓", "", ["ge-header-sorted-desc"]), o = new D("↑", "color:transparent;", [])) {
279
- this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = o;
285
+ class fe {
286
+ constructor(e = new D("↑", "", ["ge-header-sorted-asc"]), t = new D("↓", "", ["ge-header-sorted-desc"]), s = new D("↑", "color:transparent;", [])) {
287
+ this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
280
288
  }
281
289
  }
282
- class He {
290
+ class Ve {
283
291
  constructor(e) {
284
292
  this.domService = e;
285
293
  }
286
- setStyle(e, t, o) {
287
- return this.domService.setStyle(e, t, o), e;
294
+ setStyle(e, t, s) {
295
+ return this.domService.setStyle(e, t, s), e;
288
296
  }
289
297
  applyStyle(e, t) {
290
- for (const o in t)
291
- this.domService.setStyle(e, o, t[o]);
298
+ for (const s in t)
299
+ this.domService.setStyle(e, s, t[s]);
292
300
  return e;
293
301
  }
294
302
  applyDisplayNoneStyle(e) {
@@ -298,7 +306,7 @@ class He {
298
306
  return this.domService.setStyle(e, "display", "block"), e;
299
307
  }
300
308
  applyStyleInPx(e, t) {
301
- return Object.entries(t).forEach(([o, s]) => this.domService.setStyle(e, o, s + "px")), e;
309
+ return Object.entries(t).forEach(([s, o]) => this.domService.setStyle(e, s, o + "px")), e;
302
310
  }
303
311
  applyStylePosistionRelative(e) {
304
312
  return this.domService.setStyle(e, "position", "relative"), this.domService.setStyle(e, "overflow", "clip"), e;
@@ -309,8 +317,8 @@ class He {
309
317
  applyStyleFullSize(e) {
310
318
  return this.domService.setStyle(e, "width", "100%"), this.domService.setStyle(e, "height", "100%"), e;
311
319
  }
312
- applyStyleOverflowAuto(e = "auto", t = "auto", o) {
313
- return this.domService.setStyle(o, "overflow-x", e), this.domService.setStyle(o, "overflow-y", t), o;
320
+ applyStyleOverflowAuto(e = "auto", t = "auto", s) {
321
+ return this.domService.setStyle(s, "overflow-x", e), this.domService.setStyle(s, "overflow-y", t), s;
314
322
  }
315
323
  applyStyleNoPadding(e) {
316
324
  return this.domService.setStyle(e, "padding", "0"), this.domService.setStyle(e, "margin", "0"), this.domService.setStyle(e, "border", "0"), e;
@@ -326,155 +334,155 @@ class He {
326
334
  return this.domService.appendChild(e, t), this.applyStylePosistionAbsolute(e), { parent: e, child: t, cache: {} };
327
335
  }
328
336
  appendText(e, t) {
329
- const o = this.domService.createText(t);
330
- return this.domService.appendChild(e, o), o;
337
+ const s = this.domService.createText(t);
338
+ return this.domService.appendChild(e, s), s;
331
339
  }
332
340
  addClass(e, t) {
333
- return e.includes(" ") ? e.split(" ").forEach((o) => this.domService.addClass(t, o)) : this.domService.addClass(t, e), t;
341
+ return e.includes(" ") ? e.split(" ").forEach((s) => this.domService.addClass(t, s)) : this.domService.addClass(t, e), t;
334
342
  }
335
343
  removeClass(e, t) {
336
- return e.includes(" ") ? e.split(" ").forEach((o) => this.domService.removeClass(t, o)) : this.domService.removeClass(t, e), t;
344
+ return e.includes(" ") ? e.split(" ").forEach((s) => this.domService.removeClass(t, s)) : this.domService.removeClass(t, e), t;
337
345
  }
338
346
  addClasses(e, t) {
339
347
  if (e)
340
- for (const o of e)
341
- this.domService.addClass(t, o);
348
+ for (const s of e)
349
+ this.domService.addClass(t, s);
342
350
  return t;
343
351
  }
344
- setAttribute(e, t, o) {
345
- return t && o && this.domService.setAttribute(e, t, o), e;
352
+ setAttribute(e, t, s) {
353
+ return t && s && this.domService.setAttribute(e, t, s), e;
346
354
  }
347
- createAreaDivWithClass(e, t, o, s) {
355
+ createAreaDivWithClass(e, t, s, o) {
348
356
  const i = this.domService.createElement("div");
349
- return this.addClass(e, i), this.domService.setAttribute(i, "data-area", o), this.domService.setAttribute(i, "data-side", s), this.domService.appendChild(t, i), i;
357
+ return this.addClass(e, i), this.domService.setAttribute(i, "data-area", s), this.domService.setAttribute(i, "data-side", o), this.domService.appendChild(t, i), i;
350
358
  }
351
359
  createDivWithClass(e, t) {
352
- const o = this.domService.createElement("div");
353
- return this.addClass(e, o), this.domService.appendChild(t, o), o;
360
+ const s = this.domService.createElement("div");
361
+ return this.addClass(e, s), this.domService.appendChild(t, s), s;
354
362
  }
355
- addRowDiv(e, t, o = -1, s, i, r = "") {
356
- const n = t.index ?? -1, l = this.getDivOrCreateDiv(n, e);
357
- if (this.domService.addClass(l, "ge-table-row-div"), this.domService.addClass(l, `ge-table-row-div-${t.index}`), s === "body" && i === "center") {
358
- const d = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
359
- this.domService.addClass(l, `ge-table-row-${d}`);
363
+ addRowDiv(e, t, s = -1, o, i, a = "") {
364
+ const l = t.index ?? -1, r = this.getDivOrCreateDiv(l, e);
365
+ if (this.domService.addClass(r, "ge-table-row-div"), this.domService.addClass(r, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
366
+ const c = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
367
+ this.domService.addClass(r, `ge-table-row-${c}`);
360
368
  }
361
- 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", `${o}`), this.domService.setAttribute(l, "data-area", `${s}`), r) {
362
- const d = this.domService.createText(r);
363
- this.domService.appendChild(l, d);
369
+ if (this.domService.setStyle(r, "display", "clip"), this.domService.setStyle(r, "position", "absolute"), this.domService.setStyle(r, "left", `${t.left}px`), this.domService.setStyle(r, "top", `${t.top}px`), this.domService.setStyle(r, "width", `${t.width}px`), this.domService.setStyle(r, "height", `${t.height}px`), this.domService.setAttribute(r, "data-row-index", `${s}`), this.domService.setAttribute(r, "data-area", `${o}`), a) {
370
+ const c = this.domService.createText(a);
371
+ this.domService.appendChild(r, c);
364
372
  }
365
- return this.domService.appendChild(e.child, l), l;
373
+ return this.domService.appendChild(e.child, r), r;
366
374
  }
367
375
  addColumnDiv(e) {
368
- const { parent: t, geo: o, rowIndex: s = -1, columnIndex: i = -1, areaIdent: r, sideIdent: n, text: l = "", treeArrow: d, tableOptions: c, checkedType: h = void 0, sortState: g } = e, S = c == null ? void 0 : c.treeOptions, b = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, f = this.domService.createElement("div");
369
- this.domService.addClass(f, "ge-table-col-div"), b && this.domService.addClass(f, "ge-with-checkbox"), this.domService.addClass(f, `ge-table-col-div-${o.index}`), this.domService.setAttribute(f, "data-col-index", `${o.index}`), this.domService.setAttribute(f, "data-row-index", `${s}`), this.domService.setAttribute(f, "data-area", `${r}`);
370
- const u = ((o == null ? void 0 : o.index) ?? 0) % 2 === 0 ? "even" : "odd";
371
- if (r === "body" && n === "center" && this.domService.addClass(f, `ge-table-column-${u}`), this.domService.setStyle(f, "display", "clip"), this.domService.setStyle(f, "position", "absolute"), this.domService.setStyle(f, "left", `${o.left}px`), this.domService.setStyle(f, "top", `${o.top}px`), this.domService.setStyle(f, "width", `${o.width}px`), this.domService.setStyle(f, "height", `${o.height}px`), d && d !== "none" && (this.domService.addClass(f, "ge-table-col-tree"), this.addArrowDiv(f, d, S, s, i, r)), b && i === 0 && h && this.addCheckboxToDiv(f, h, r, s), l) {
372
- const p = d !== "none" && i === 0;
373
- this.addLabelDiv(f, l, p, s, i, r);
376
+ const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: a, sideIdent: l, text: r = "", 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");
377
+ 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", `${a}`);
378
+ const f = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
379
+ if (a === "body" && l === "center" && this.domService.addClass(b, `ge-table-column-${f}`), this.domService.setStyle(b, "display", "clip"), this.domService.setStyle(b, "position", "absolute"), this.domService.setStyle(b, "left", `${s.left}px`), this.domService.setStyle(b, "top", `${s.top}px`), this.domService.setStyle(b, "width", `${s.width}px`), this.domService.setStyle(b, "height", `${s.height}px`), c && c !== "none" && (this.domService.addClass(b, "ge-table-col-tree"), this.addArrowDiv(b, c, u, o, i, a)), g && i === 0 && d && this.addCheckboxToDiv(b, d, a, o), r) {
380
+ const m = c !== "none" && i === 0;
381
+ this.addLabelDiv(b, r, m, o, i, a);
374
382
  }
375
- return g && this.addSortedIcon(f, g, c == null ? void 0 : c.sortedOptions, i), this.domService.appendChild(t, f), f;
383
+ return p && this.addSortedIcon(b, p, h == null ? void 0 : h.sortedOptions, i), this.domService.appendChild(t, b), b;
376
384
  }
377
- addCheckboxToDiv(e, t, o, s) {
378
- const i = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
385
+ addCheckboxToDiv(e, t, s, o) {
386
+ const i = this.domService.createElement("div"), a = t === "full" ? "checked" : "";
379
387
  return i.innerHTML = `
380
388
  <input
381
389
  type="checkbox"
382
- data-area="${o}"
383
- data-row-index="${s}"
390
+ data-area="${s}"
391
+ data-row-index="${o}"
384
392
  data-input-type="checkbox"
385
- ${r}
386
- class="ge-table-row-checkbox"> `, this.domService.setStyle(i, "display", "inline"), this.domService.setStyle(i, "width", "inherit"), this.domService.setAttribute(i, "data-row-index", `${s}`), this.domService.appendChild(e, i), i;
393
+ ${a}
394
+ 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;
387
395
  }
388
- addLabelDiv(e, t = "", o = !1, s = -1, i = -1, r = "body") {
389
- const n = this.domService.createElement("div");
390
- if (this.domService.addClass(n, "ge-table-label-div"), this.domService.setStyle(n, "position", "relative"), this.domService.setStyle(n, "background", "transparent"), this.domService.setStyle(n, "width", "100%"), this.domService.setStyle(n, "height", "100%"), this.domService.setAttribute(n, "data-row-index", `${s}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`), t)
391
- if (o) {
392
- const l = this.domService.createText(t);
393
- this.domService.appendChild(n, l);
396
+ addLabelDiv(e, t = "", s = !1, o = -1, i = -1, a = "body") {
397
+ const l = this.domService.createElement("div");
398
+ if (this.domService.addClass(l, "ge-table-label-div"), this.domService.setStyle(l, "position", "relative"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "width", "100%"), this.domService.setStyle(l, "height", "100%"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${a}`), t)
399
+ if (s) {
400
+ const r = this.domService.createText(t);
401
+ this.domService.appendChild(l, r);
394
402
  } else {
395
- const l = this.domService.createElement("div");
396
- this.domService.appendChild(n, l);
397
- const d = this.domService.createText(t);
398
- this.domService.addClass(l, "ge-table-label"), this.domService.appendChild(l, d), this.domService.setAttribute(l, "data-row-index", `${s}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
403
+ const r = this.domService.createElement("div");
404
+ this.domService.appendChild(l, r);
405
+ const c = this.domService.createText(t);
406
+ this.domService.addClass(r, "ge-table-label"), this.domService.appendChild(r, c), this.domService.setAttribute(r, "data-row-index", `${o}`), this.domService.setAttribute(r, "data-col-index", `${i}`), this.domService.setAttribute(r, "data-area", `${a}`);
399
407
  }
400
- return this.domService.appendChild(e, n), n;
408
+ return this.domService.appendChild(e, l), l;
401
409
  }
402
- addSortedIcon(e, t = "", o = new ue(), s = -1) {
410
+ addSortedIcon(e, t = "", s = new fe(), o = -1) {
403
411
  const i = this.domService.createElement("div");
404
- 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", `${s}`), this.domService.setAttribute(i, "data-area", "header");
412
+ 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");
413
+ let a;
414
+ t === "asc" ? a = s.iconAsc : t === "desc" ? a = s.iconDesc : a = s.iconPlaceholder;
415
+ const l = a.content, r = this.domService.createText(l);
416
+ this.domService.appendChild(i, r), a.style && this.applyStyleString(i, a.style);
417
+ for (const c of a.classes)
418
+ this.domService.addClass(i, c);
419
+ return this.domService.appendChild(e, i), i;
420
+ }
421
+ addArrowDiv(e, t = "none", s = new ge(), o = -1, i = -1, a = "body") {
422
+ const l = this.domService.createElement("div");
423
+ this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${a}`);
405
424
  let r;
406
- t === "asc" ? r = o.iconAsc : t === "desc" ? r = o.iconDesc : r = o.iconPlaceholder;
407
- const n = r.content, l = this.domService.createText(n);
408
- this.domService.appendChild(i, l), r.style && this.applyStyleString(i, r.style);
425
+ t === "expanded" ? r = s.arrowExpanded : t === "collapsed" ? r = s.arrowCollapsed : r = s.arrowPlaceholder;
426
+ const c = r.content, h = this.domService.createText(c);
427
+ this.domService.appendChild(l, h), r.style && this.applyStyleString(l, r.style);
409
428
  for (const d of r.classes)
410
- this.domService.addClass(i, d);
411
- return this.domService.appendChild(e, i), i;
429
+ this.domService.addClass(l, d);
430
+ return this.domService.appendChild(e, l), l;
412
431
  }
413
- addArrowDiv(e, t = "none", o = new pe(), s = -1, i = -1, r = "body") {
414
- const n = this.domService.createElement("div");
415
- this.domService.addClass(n, "ge-table-tree-arrow-div"), this.domService.setStyle(n, "display", "inline-block"), this.domService.setStyle(n, "position", ""), this.domService.setStyle(n, "width", "20px"), this.domService.setStyle(n, "background", "transparent"), this.domService.setStyle(n, "cursor", "pointer"), this.domService.setAttribute(n, "data-row-index", `${s}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`);
416
- let l;
417
- t === "expanded" ? l = o.arrowExpanded : t === "collapsed" ? l = o.arrowCollapsed : l = o.arrowPlaceholder;
418
- const d = l.content, c = this.domService.createText(d);
419
- this.domService.appendChild(n, c), l.style && this.applyStyleString(n, l.style);
420
- for (const h of l.classes)
421
- this.domService.addClass(n, h);
422
- return this.domService.appendChild(e, n), n;
423
- }
424
- addColumnBorderDivs(e, t, o, s, i) {
432
+ addColumnBorderDivs(e, t, s, o, i) {
425
433
  if (e.verticalBorderVisible) {
426
- const r = `ge-table-${s}-${i}-vertical-border`;
427
- this.addVerticalBorder(o, t, r);
434
+ const a = `ge-table-${o}-${i}-vertical-border`;
435
+ this.addVerticalBorder(s, t, a);
428
436
  }
429
437
  if (e.horizontalBorderVisible) {
430
- const r = `ge-table-${s}-${i}-horizontal-border`;
431
- this.addHorizontalBorder(o, t, r);
438
+ const a = `ge-table-${o}-${i}-horizontal-border`;
439
+ this.addHorizontalBorder(s, t, a);
432
440
  }
433
441
  return t;
434
442
  }
435
- addHorizontalBorder(e, t, o = "ge-table-body-center-horizontal-border") {
436
- const s = this.domService.createElement("div");
437
- return this.domService.addClass(s, o), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${e.left}px`), this.domService.setStyle(s, "top", `${e.top}px`), this.domService.setStyle(s, "width", `${e.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.appendChild(t, s), s;
443
+ addHorizontalBorder(e, t, s = "ge-table-body-center-horizontal-border") {
444
+ const o = this.domService.createElement("div");
445
+ return this.domService.addClass(o, s), this.domService.setStyle(o, "display", "clip"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "left", `${e.left}px`), this.domService.setStyle(o, "top", `${e.top}px`), this.domService.setStyle(o, "width", `${e.width}px`), this.domService.setStyle(o, "height", "1px"), this.domService.appendChild(t, o), o;
438
446
  }
439
- addFocusBorderDivs(e, t, o) {
447
+ addFocusBorderDivs(e, t, s) {
440
448
  t = { ...t, width: t.width + 1, height: t.height + 1 };
441
- let s = this.domService.createElement("div");
442
- return this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${t.height}px`), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), s = this.domService.createElement("div"), this.domService.addClass(s, "ge-table-focus-border"), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", "1px"), this.domService.setStyle(s, "z-index", "9999"), this.applyStyle(s, o), this.domService.appendChild(e, s), e;
449
+ let o = this.domService.createElement("div");
450
+ return this.domService.addClass(o, "ge-table-focus-border"), this.domService.setStyle(o, "display", "clip"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "left", `${t.left}px`), this.domService.setStyle(o, "top", `${t.top}px`), this.domService.setStyle(o, "width", "1px"), this.domService.setStyle(o, "height", `${t.height}px`), this.domService.setStyle(o, "z-index", "9999"), this.applyStyle(o, s), this.domService.appendChild(e, o), o = this.domService.createElement("div"), this.domService.addClass(o, "ge-table-focus-border"), this.domService.setStyle(o, "display", "clip"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(o, "top", `${t.top}px`), this.domService.setStyle(o, "width", "1px"), this.domService.setStyle(o, "height", `${t.height}px`), this.domService.setStyle(o, "z-index", "9999"), this.applyStyle(o, s), this.domService.appendChild(e, o), o = this.domService.createElement("div"), this.domService.addClass(o, "ge-table-focus-border"), this.domService.setStyle(o, "display", "clip"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "left", `${t.left}px`), this.domService.setStyle(o, "top", `${t.top}px`), this.domService.setStyle(o, "width", `${t.width}px`), this.domService.setStyle(o, "height", "1px"), this.domService.setStyle(o, "z-index", "9999"), this.applyStyle(o, s), this.domService.appendChild(e, o), o = this.domService.createElement("div"), this.domService.addClass(o, "ge-table-focus-border"), this.domService.setStyle(o, "display", "clip"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "left", `${t.left}px`), this.domService.setStyle(o, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(o, "width", `${t.width}px`), this.domService.setStyle(o, "height", "1px"), this.domService.setStyle(o, "z-index", "9999"), this.applyStyle(o, s), this.domService.appendChild(e, o), e;
443
451
  }
444
- addVerticalBorder(e, t, o = "ge-table-body-center-vertical-border") {
445
- const s = this.domService.createElement("div");
446
- return this.domService.addClass(s, o), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${e.left}px`), this.domService.setStyle(s, "top", `${e.top}px`), this.domService.setStyle(s, "width", "1px"), this.domService.setStyle(s, "height", `${e.height}px`), this.domService.appendChild(t, s), s;
452
+ addVerticalBorder(e, t, s = "ge-table-body-center-vertical-border") {
453
+ const o = this.domService.createElement("div");
454
+ return this.domService.addClass(o, s), this.domService.setStyle(o, "display", "clip"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "left", `${e.left}px`), this.domService.setStyle(o, "top", `${e.top}px`), this.domService.setStyle(o, "width", "1px"), this.domService.setStyle(o, "height", `${e.height}px`), this.domService.appendChild(t, o), o;
447
455
  }
448
- addDiv(e, t, o = "") {
449
- const s = this.domService.createElement("div");
450
- return o && this.domService.addClass(s, o), this.domService.setStyle(s, "display", "clip"), this.domService.setStyle(s, "position", "absolute"), this.domService.setStyle(s, "left", `${t.left}px`), this.domService.setStyle(s, "top", `${t.top}px`), this.domService.setStyle(s, "width", `${t.width}px`), this.domService.setStyle(s, "height", `${t.height}px`), this.domService.appendChild(e, s), s;
456
+ addDiv(e, t, s = "") {
457
+ const o = this.domService.createElement("div");
458
+ return s && this.domService.addClass(o, s), this.domService.setStyle(o, "display", "clip"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "left", `${t.left}px`), this.domService.setStyle(o, "top", `${t.top}px`), this.domService.setStyle(o, "width", `${t.width}px`), this.domService.setStyle(o, "height", `${t.height}px`), this.domService.appendChild(e, o), o;
451
459
  }
452
460
  applyStyleString(e, t) {
453
- const o = t.split(";").map((s) => s.trim()).filter((s) => s);
454
- for (const s of o) {
455
- const [i, r] = s.split(":");
456
- this.domService.setStyle(e, i.trim(), r.trim());
461
+ const s = t.split(";").map((o) => o.trim()).filter((o) => o);
462
+ for (const o of s) {
463
+ const [i, a] = o.split(":");
464
+ this.domService.setStyle(e, i.trim(), a.trim());
457
465
  }
458
466
  }
459
467
  getDivOrCreateDiv(e, t) {
460
- let o = t.cache[e];
461
- return o ? (o.innerText = "", o) : (o = this.domService.createElement("div"), t.cache[e] = o, o);
468
+ let s = t.cache[e];
469
+ return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
462
470
  }
463
471
  }
464
- const Z = (a) => a === "header" ? "header" : a === "footer" ? "footer" : "body";
472
+ const Q = (n) => n === "header" ? "header" : n === "footer" ? "footer" : "body";
465
473
  class Ge {
466
474
  constructor(e, t) {
467
475
  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)) {
468
476
  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"));
469
- const o = e.getAttribute("data-area");
470
- if (o && (this.areaIdent = Z(o), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
471
- const s = e;
472
- this.value = s.value;
477
+ const s = e.getAttribute("data-area");
478
+ if (s && (this.areaIdent = Q(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
479
+ const o = e;
480
+ this.value = o.value;
473
481
  }
474
482
  }
475
483
  }
476
484
  }
477
- class Ve {
485
+ class Ne {
478
486
  constructor(e) {
479
487
  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(
480
488
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -504,24 +512,24 @@ class Ve {
504
512
  if (t - this.lastClicked < this.doubleClickDelay)
505
513
  return;
506
514
  this.lastClicked = t;
507
- const o = new Ge(e.target, this.tableScope);
508
- if (o.action === "toggleExpandCollapseAll")
515
+ const s = new Ge(e.target, this.tableScope);
516
+ if (s.action === "toggleExpandCollapseAll")
509
517
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
510
- else if (o.action === "toggleHeaderGroup")
511
- this.tableScope.toggleHeaderGroup(o), e.preventDefault(), e.stopPropagation();
512
- else if (o.inputType === "checkbox" && o.areaIdent)
513
- this.tableScope.toggleRowCheckbox(o.rowIdx, o.colIdx, o.areaIdent), e.preventDefault(), e.stopPropagation();
514
- else if (q(o.row) && o.areaModel) {
515
- const s = o.colIdx === this.getArrowColumnIndex() && e.altKey, i = o.className.includes("ge-table-tree-arrow-div");
516
- if (s || i) {
518
+ else if (s.action === "toggleHeaderGroup")
519
+ this.tableScope.toggleHeaderGroup(s), e.preventDefault(), e.stopPropagation();
520
+ else if (s.inputType === "checkbox" && s.areaIdent)
521
+ this.tableScope.toggleRowCheckbox(s.rowIdx, s.colIdx, s.areaIdent), e.preventDefault(), e.stopPropagation();
522
+ else if (Y(s.row) && s.areaModel) {
523
+ const o = s.colIdx === this.getArrowColumnIndex() && e.altKey, i = s.className.includes("ge-table-tree-arrow-div");
524
+ if (o || i) {
517
525
  e.preventDefault(), e.stopPropagation();
518
- const r = o.row;
519
- r.expanded = !r.expanded, "recalcVisibleTreeRows" in o.areaModel && o.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(r);
526
+ const a = s.row;
527
+ a.expanded = !a.expanded, "recalcVisibleTreeRows" in s.areaModel && s.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(a);
520
528
  }
521
529
  }
522
- if (o.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
523
- const s = this.tableScope.tableOptions.getFocusModel();
524
- s == null || s.clear(), s == null || s.setFocus(o.rowIdx, o.colIdx);
530
+ if (s.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
531
+ const o = this.tableScope.tableOptions.getFocusModel();
532
+ o == null || o.clear(), o == null || o.setFocus(s.rowIdx, s.colIdx);
525
533
  }
526
534
  this.publishGeMouseEvent(e, 1);
527
535
  }
@@ -533,15 +541,15 @@ class Ve {
533
541
  */
534
542
  onHostElementDblClicked(e) {
535
543
  if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
536
- const t = e.target, o = t.getAttribute("data-area"), s = Z(o), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), n = this.tableScope.tableModel.getAreaModel(s);
537
- if (o && s === "header")
538
- this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
544
+ const t = e.target, s = t.getAttribute("data-area"), o = Q(s), i = Number(t.getAttribute("data-row-index")), a = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(o);
545
+ if (s && o === "header")
546
+ this.tableScope.tableModel.isSortable(a) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, a));
539
547
  else if (t.getAttribute("data-row-index")) {
540
- const l = n.getRowByIndex(i);
541
- if (o && s === "body" && n.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), q(l) && r === this.getArrowColumnIndex()) {
548
+ const r = l.getRowByIndex(i);
549
+ if (s && o === "body" && l.isEditable(i, a) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, a)), Y(r) && a === this.getArrowColumnIndex()) {
542
550
  e.preventDefault(), e.stopPropagation();
543
- const d = l;
544
- d.expanded = !d.expanded, "recalcVisibleTreeRows" in n && n.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(d);
551
+ const c = r;
552
+ c.expanded = !c.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(c);
545
553
  }
546
554
  }
547
555
  }
@@ -556,8 +564,8 @@ class Ve {
556
564
  * @return {void}
557
565
  */
558
566
  publishGeMouseEvent(e, t) {
559
- var o;
560
- this.mouseEvent = e, this.geMouseEventOld = (o = this.geMouseEvent) == null ? void 0 : o.clone(), this.geMouseEvent = this.tableScope.createGeMouseEvent(e), this.geMouseEvent && (this.geMouseEvent.clickCount = t), this.tableScope.onMouseClicked(this.geMouseEvent, this.geMouseEventOld), this.tableScope.publishGeMouseEvent(this.geMouseEvent), t === 1 && this.tableScope.debounceRepaint();
567
+ var s;
568
+ this.mouseEvent = e, this.geMouseEventOld = (s = this.geMouseEvent) == null ? void 0 : s.clone(), this.geMouseEvent = this.tableScope.createGeMouseEvent(e), this.geMouseEvent && (this.geMouseEvent.clickCount = t), this.tableScope.onMouseClicked(this.geMouseEvent, this.geMouseEventOld), this.tableScope.publishGeMouseEvent(this.geMouseEvent), t === 1 && this.tableScope.debounceRepaint();
561
569
  }
562
570
  /**
563
571
  * Update the collapsed/expanded state of a tree row.
@@ -566,11 +574,11 @@ class Ve {
566
574
  * @returns {void}
567
575
  */
568
576
  updateCollapsedExpandedState(e) {
569
- var o, s, i, r, n;
570
- const t = (s = (o = this.tableScope.tableOptions) == null ? void 0 : o.autoRestoreOptions) == null ? void 0 : s.getRowId;
577
+ var s, o, i, a, l;
578
+ const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
571
579
  if (t) {
572
- const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, d = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded, c = l === "collapsed" && e.expanded || l === "expanded" && !e.expanded, h = t(e.data);
573
- d ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(h) : c && ((n = this.tableScope.storeStateCollapsedExpandService) == null || n.collapsedStateIdsRemove(h));
580
+ const r = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, c = r === "collapsed" && !e.expanded || r === "expanded" && e.expanded, h = r === "collapsed" && e.expanded || r === "expanded" && !e.expanded, d = t(e.data);
581
+ c ? (a = this.tableScope.storeStateCollapsedExpandService) == null || a.collapsedStateIdsPush(d) : h && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(d));
574
582
  }
575
583
  }
576
584
  getArrowColumnIndex() {
@@ -723,6 +731,13 @@ class ze {
723
731
  repaintHard() {
724
732
  this.tableScope.repaintHard();
725
733
  }
734
+ /**
735
+ * Recalculates the column widths of the table.
736
+ *
737
+ * @param {number} clientWidth - The width of the client area.
738
+ *
739
+ * @return {void}
740
+ */
726
741
  recalcColumnWidths(e) {
727
742
  this.tableScope.recalcColumnWidths(e);
728
743
  }
@@ -776,6 +791,25 @@ class ze {
776
791
  this.tableScope.focusModel()
777
792
  );
778
793
  }
794
+ /**
795
+ * Downloads an Excel file containing data from the table's header, body, and footer areas.
796
+ * Extracts the table data into a 2D matrix and uses the Excel service to generate and download the file.
797
+ *
798
+ * @return {void} No return value, downloads the Excel file directly.
799
+ */
800
+ downloadExcel() {
801
+ const e = [], t = this.tableScope.tableModel.getColumnCount(), s = ["header", "body", "footer"];
802
+ for (const o of s) {
803
+ const i = this.tableScope.tableModel.getAreaModel(o), a = (i == null ? void 0 : i.getRowCount()) ?? 0;
804
+ for (let l = 0; l < a; l++) {
805
+ const r = [];
806
+ e.push(r);
807
+ for (let c = 0; c < t; c++)
808
+ r.push(i.getValueAt(l, c));
809
+ }
810
+ }
811
+ return this.tableScope.excelService.downloadExcel(e, "table.xlsx");
812
+ }
779
813
  /**
780
814
  * Retrieves the current scope of the table.
781
815
  *
@@ -801,26 +835,26 @@ class ee {
801
835
  autoConvertMapToObject(e) {
802
836
  const t = {};
803
837
  if (e instanceof Map) {
804
- const o = e;
805
- for (const s of [...o]) {
838
+ const s = e;
839
+ for (const o of [...s]) {
806
840
  const [
807
841
  i,
808
- r
809
- ] = s;
810
- t[i] = r;
842
+ a
843
+ ] = o;
844
+ t[i] = a;
811
845
  }
812
846
  }
813
847
  return t;
814
848
  }
815
849
  checkAndPersistItem(e, t) {
816
- const o = this.getStorageKeyFn;
817
- if (o) {
818
- const s = o();
819
- if (s) {
820
- const i = s + e;
850
+ const s = this.getStorageKeyFn;
851
+ if (s) {
852
+ const o = s();
853
+ if (o) {
854
+ const i = o + e;
821
855
  if ((t + "").includes("Map")) {
822
- const r = this.autoConvertMapToObject(t);
823
- this.persistItem(i, r);
856
+ const a = this.autoConvertMapToObject(t);
857
+ this.persistItem(i, a);
824
858
  } else
825
859
  this.persistItem(i, t);
826
860
  }
@@ -869,7 +903,7 @@ class ee {
869
903
  // }
870
904
  // }
871
905
  }
872
- class Ne extends ee {
906
+ class Ue extends ee {
873
907
  constructor(e) {
874
908
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
875
909
  }
@@ -884,16 +918,16 @@ class Ne extends ee {
884
918
  if (e) {
885
919
  const t = e();
886
920
  if (t) {
887
- const o = t + this.SCROLL_STATE;
888
- let s = this.loadFromLocalStorage(o);
889
- this.scrollOffset = s || [0, 0];
921
+ const s = t + this.SCROLL_STATE;
922
+ let o = this.loadFromLocalStorage(s);
923
+ this.scrollOffset = o || [0, 0];
890
924
  }
891
925
  }
892
926
  }
893
927
  }
894
928
  class je {
895
- constructor(e = "collapsed", t = [], o = !1, s = !1) {
896
- this.mode = e, this.rowIds = t, this.allCollapsed = o, this.allExpanded = s;
929
+ constructor(e = "collapsed", t = [], s = !1, o = !1) {
930
+ this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
897
931
  }
898
932
  }
899
933
  class Xe extends ee {
@@ -921,8 +955,8 @@ class Xe extends ee {
921
955
  if (e) {
922
956
  const t = e();
923
957
  if (t) {
924
- const o = t + this.COLLAPSED_EXPANDED_STATE, s = this.loadFromLocalStorage(o);
925
- s && (this.collapsedExpandedState = s);
958
+ const s = t + this.COLLAPSED_EXPANDED_STATE, o = this.loadFromLocalStorage(s);
959
+ o && (this.collapsedExpandedState = o);
926
960
  }
927
961
  }
928
962
  }
@@ -945,89 +979,89 @@ class Ke extends ee {
945
979
  if (e) {
946
980
  const t = e();
947
981
  if (t) {
948
- const o = t + this.SORTING_STATE, s = this.loadFromLocalStorage(o);
949
- this.sortItems = s || [];
982
+ const s = t + this.SORTING_STATE, o = this.loadFromLocalStorage(s);
983
+ this.sortItems = o || [];
950
984
  }
951
985
  }
952
986
  }
953
987
  }
954
- class T {
955
- constructor(e = 0, t = 0, o = 0, s = 0, i) {
956
- this.left = e, this.width = t, this.height = o, this.top = s, this.index = i;
988
+ class R {
989
+ constructor(e = 0, t = 0, s = 0, o = 0, i) {
990
+ this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
957
991
  }
958
992
  }
959
993
  class Ye {
960
- constructor(e, t, o, s) {
961
- this.hostElement = e, this.tableModel = t, this.dom = o, this.tableOptions = s, this.scrollTop = 0, this.areaBodyWestGeo = new T(), this.areaBodyCenterGeo = new T(), this.areaBodyEastGeo = new T();
994
+ constructor(e, t, s, o) {
995
+ this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new R(), this.areaBodyCenterGeo = new R(), this.areaBodyEastGeo = new R();
962
996
  const i = this.hostElement;
963
997
  i.innerText = "", this.dom.setAttribute(i, "tabindex", "0"), this.dom.setStyle(
964
998
  this.dom.addClass("ge-table", i),
965
999
  "position",
966
1000
  "relative"
967
- ), this.hoverRow = o.applyStylePosistionAbsolute(
968
- o.createDivWithClass("ge-table-hover-row", i)
969
- ), this.hoverColumn = o.applyStylePosistionAbsolute(
970
- o.createDivWithClass("ge-table-hover-column", i)
971
- ), this.draggingColumn = o.applyStylePosistionAbsolute(
972
- o.createDivWithClass("ge-table-dragging-column", i)
973
- ), this.areaHeaderWest = o.appendRelativeChildDiv(
974
- o.applyStylePosistionAbsolute(
975
- o.createAreaDivWithClass("ge-table-header ge-table-header-west", i, "header", "west")
1001
+ ), this.hoverRow = s.applyStylePosistionAbsolute(
1002
+ s.createDivWithClass("ge-table-hover-row", i)
1003
+ ), this.hoverColumn = s.applyStylePosistionAbsolute(
1004
+ s.createDivWithClass("ge-table-hover-column", i)
1005
+ ), this.draggingColumn = s.applyStylePosistionAbsolute(
1006
+ s.createDivWithClass("ge-table-dragging-column", i)
1007
+ ), this.areaHeaderWest = s.appendRelativeChildDiv(
1008
+ s.applyStylePosistionAbsolute(
1009
+ s.createAreaDivWithClass("ge-table-header ge-table-header-west", i, "header", "west")
976
1010
  )
977
- ), this.areaHeaderCenter = o.appendRelativeChildDiv(
978
- o.applyStylePosistionAbsolute(
979
- o.createAreaDivWithClass("ge-table-header ge-table-header-center", i, "header", "center")
1011
+ ), this.areaHeaderCenter = s.appendRelativeChildDiv(
1012
+ s.applyStylePosistionAbsolute(
1013
+ s.createAreaDivWithClass("ge-table-header ge-table-header-center", i, "header", "center")
980
1014
  )
981
- ), this.areaHeaderEast = o.appendRelativeChildDiv(
982
- o.applyStylePosistionAbsolute(
983
- o.createAreaDivWithClass("ge-table-header ge-table-header-east", i, "body", "east")
1015
+ ), this.areaHeaderEast = s.appendRelativeChildDiv(
1016
+ s.applyStylePosistionAbsolute(
1017
+ s.createAreaDivWithClass("ge-table-header ge-table-header-east", i, "body", "east")
984
1018
  )
985
- ), this.areaBodyWest = o.appendRelativeChildDiv(
986
- o.applyStylePosistionAbsolute(
987
- o.createAreaDivWithClass("ge-table-body ge-table-body-west", i, "body", "west")
1019
+ ), this.areaBodyWest = s.appendRelativeChildDiv(
1020
+ s.applyStylePosistionAbsolute(
1021
+ s.createAreaDivWithClass("ge-table-body ge-table-body-west", i, "body", "west")
988
1022
  )
989
- ), this.areaBodyEast = o.appendRelativeChildDiv(
990
- o.applyStylePosistionAbsolute(
991
- o.createAreaDivWithClass("ge-table-body ge-table-body-east", i, "body", "east")
1023
+ ), this.areaBodyEast = s.appendRelativeChildDiv(
1024
+ s.applyStylePosistionAbsolute(
1025
+ s.createAreaDivWithClass("ge-table-body ge-table-body-east", i, "body", "east")
992
1026
  )
993
- ), this.areaFooterWest = o.appendRelativeChildDiv(
994
- o.applyStylePosistionAbsolute(
995
- o.createAreaDivWithClass("ge-table-footer ge-table-footer-west", i, "footer", "west")
1027
+ ), this.areaFooterWest = s.appendRelativeChildDiv(
1028
+ s.applyStylePosistionAbsolute(
1029
+ s.createAreaDivWithClass("ge-table-footer ge-table-footer-west", i, "footer", "west")
996
1030
  )
997
- ), this.areaFooterCenter = o.appendRelativeChildDiv(
998
- o.applyStylePosistionAbsolute(
999
- o.createAreaDivWithClass("ge-table-footer ge-table-footer-center", i, "footer", "center")
1031
+ ), this.areaFooterCenter = s.appendRelativeChildDiv(
1032
+ s.applyStylePosistionAbsolute(
1033
+ s.createAreaDivWithClass("ge-table-footer ge-table-footer-center", i, "footer", "center")
1000
1034
  )
1001
- ), this.areaFooterEast = o.appendRelativeChildDiv(
1002
- o.applyStylePosistionAbsolute(
1003
- o.createAreaDivWithClass("ge-table-footer ge-table-footer-east", i, "footer", "east")
1035
+ ), this.areaFooterEast = s.appendRelativeChildDiv(
1036
+ s.applyStylePosistionAbsolute(
1037
+ s.createAreaDivWithClass("ge-table-footer ge-table-footer-east", i, "footer", "east")
1004
1038
  )
1005
- ), this.scrollViewport = o.applyStyleOverflowAuto(
1039
+ ), this.scrollViewport = s.applyStyleOverflowAuto(
1006
1040
  this.tableOptions.overflowX ?? "auto",
1007
1041
  this.tableOptions.overflowY ?? "auto",
1008
- o.applyStyleNoPadding(
1009
- o.applyStylePosistionAbsolute(
1010
- o.createAreaDivWithClass("ge-table-scroll-viewport", i, "body", "center")
1042
+ s.applyStyleNoPadding(
1043
+ s.applyStylePosistionAbsolute(
1044
+ s.createAreaDivWithClass("ge-table-scroll-viewport", i, "body", "center")
1011
1045
  )
1012
1046
  )
1013
- ), this.contentWrapperDiv = o.applyStyleNoPadding(
1014
- o.applyStylePosistionRelative(
1015
- o.createDivWithClass("ge-table-scroll-content-wrapper", this.scrollViewport)
1047
+ ), this.contentWrapperDiv = s.applyStyleNoPadding(
1048
+ s.applyStylePosistionRelative(
1049
+ s.createDivWithClass("ge-table-scroll-content-wrapper", this.scrollViewport)
1016
1050
  )
1017
- ), this.contentDiv = o.applyStyleNoPadding(
1018
- o.applyStylePosistionRelative(
1019
- o.createDivWithClass("ge-table-scroll-content", this.contentWrapperDiv)
1051
+ ), this.contentDiv = s.applyStyleNoPadding(
1052
+ s.applyStylePosistionRelative(
1053
+ s.createDivWithClass("ge-table-scroll-content", this.contentWrapperDiv)
1020
1054
  )
1021
- ), this.areaBodyCenter = o.appendRelativeChildDiv(
1022
- o.createDivWithClass("ge-table-body-center", this.contentDiv)
1023
- ), this.borderHeaderBottom = o.applyStylePosistionAbsolute(
1024
- o.createDivWithClass("ge-table-header-border", i)
1025
- ), this.borderFixedWest = o.applyStylePosistionAbsolute(
1026
- o.createDivWithClass("ge-table-west-fixed-column-border", i)
1027
- ), this.borderFixedEast = o.applyStylePosistionAbsolute(
1028
- o.createDivWithClass("ge-table-east-fixed-column-border", i)
1029
- ), this.borderFooterTop = o.applyStylePosistionAbsolute(
1030
- o.createDivWithClass("ge-table-footer-border", i)
1055
+ ), this.areaBodyCenter = s.appendRelativeChildDiv(
1056
+ s.createDivWithClass("ge-table-body-center", this.contentDiv)
1057
+ ), this.borderHeaderBottom = s.applyStylePosistionAbsolute(
1058
+ s.createDivWithClass("ge-table-header-border", i)
1059
+ ), this.borderFixedWest = s.applyStylePosistionAbsolute(
1060
+ s.createDivWithClass("ge-table-west-fixed-column-border", i)
1061
+ ), this.borderFixedEast = s.applyStylePosistionAbsolute(
1062
+ s.createDivWithClass("ge-table-east-fixed-column-border", i)
1063
+ ), this.borderFooterTop = s.applyStylePosistionAbsolute(
1064
+ s.createDivWithClass("ge-table-footer-border", i)
1031
1065
  );
1032
1066
  }
1033
1067
  /**
@@ -1036,10 +1070,10 @@ class Ye {
1036
1070
  * @return {void}
1037
1071
  */
1038
1072
  adjustContainersAndRows() {
1039
- const e = this.tableModel.getPadding(), t = this.hostElement.clientWidth, o = this.hostElement.clientHeight;
1073
+ const e = this.tableModel.getPadding(), t = this.hostElement.clientWidth, s = this.hostElement.clientHeight;
1040
1074
  this.dom.applyStyle(this.scrollViewport, {
1041
1075
  width: `${t - e.left}px`,
1042
- height: `${o - e.top}px`,
1076
+ height: `${s - e.top}px`,
1043
1077
  top: `${e.top}px`,
1044
1078
  left: `${e.left}px`
1045
1079
  }), this.scrollTop = this.scrollViewport.scrollTop, this.dom.applyStyle(this.contentDiv, {
@@ -1047,21 +1081,21 @@ class Ye {
1047
1081
  height: `${this.scrollViewport.clientHeight}px`,
1048
1082
  top: `${this.scrollTop}px`,
1049
1083
  left: `${this.scrollViewport.scrollLeft}px`
1050
- }), this.areaBodyWestGeo.width = e.left, this.areaBodyWestGeo.height = o - e.top - e.bottom, this.areaBodyWestGeo.top = e.top, this.areaBodyWestGeo.left = 0, this.dom.applyStyleInPx(this.areaBodyWest.parent, this.areaBodyWestGeo), this.tableOptions.fixedWestSeparatorBorderVisible && this.tableModel.getFixedLeftColumnCount() ? this.dom.applyDisplayBlockStyle(
1084
+ }), this.areaBodyWestGeo.width = e.left, this.areaBodyWestGeo.height = s - e.top - e.bottom, this.areaBodyWestGeo.top = e.top, this.areaBodyWestGeo.left = 0, this.dom.applyStyleInPx(this.areaBodyWest.parent, this.areaBodyWestGeo), this.tableOptions.fixedWestSeparatorBorderVisible && this.tableModel.getFixedLeftColumnCount() ? this.dom.applyDisplayBlockStyle(
1051
1085
  this.dom.applyStyle(this.borderFixedWest, {
1052
1086
  width: "1px",
1053
1087
  height: `${this.areaBodyWestGeo.height}px`,
1054
1088
  top: `${this.areaBodyWestGeo.top}px`,
1055
1089
  left: `${this.areaBodyWestGeo.width}px`
1056
1090
  })
1057
- ) : this.dom.applyDisplayNoneStyle(this.borderFixedWest), this.areaBodyEastGeo.width = e.right, this.areaBodyEastGeo.height = o - e.top - e.bottom, this.areaBodyEastGeo.top = e.top, this.areaBodyEastGeo.left = t - e.right, this.dom.applyStyleInPx(this.areaBodyEast.parent, this.areaBodyEastGeo), this.tableOptions.fixedEastSeparatorBorderVisible && this.tableModel.getFixedLeftColumnCount() ? this.dom.applyDisplayBlockStyle(
1091
+ ) : this.dom.applyDisplayNoneStyle(this.borderFixedWest), this.areaBodyEastGeo.width = e.right, this.areaBodyEastGeo.height = s - e.top - e.bottom, this.areaBodyEastGeo.top = e.top, this.areaBodyEastGeo.left = t - e.right, this.dom.applyStyleInPx(this.areaBodyEast.parent, this.areaBodyEastGeo), this.tableOptions.fixedEastSeparatorBorderVisible && this.tableModel.getFixedLeftColumnCount() ? this.dom.applyDisplayBlockStyle(
1058
1092
  this.dom.applyStyle(this.borderFixedEast, {
1059
1093
  width: "1px",
1060
1094
  height: `${this.areaBodyEastGeo.height}px`,
1061
1095
  top: `${this.areaBodyEastGeo.top}px`,
1062
1096
  left: `${this.areaBodyEastGeo.left}px`
1063
1097
  })
1064
- ) : this.dom.applyDisplayNoneStyle(this.borderFixedEast), this.areaBodyCenterGeo.width = t - e.left - e.right, this.areaBodyCenterGeo.height = o - e.top - e.bottom, this.areaBodyCenterGeo.top = 0, this.areaBodyCenterGeo.left = 0, this.dom.applyStyleInPx(this.areaBodyCenter.parent, this.areaBodyCenterGeo), this.dom.applyStyle(this.areaHeaderCenter.parent, {
1098
+ ) : this.dom.applyDisplayNoneStyle(this.borderFixedEast), this.areaBodyCenterGeo.width = t - e.left - e.right, this.areaBodyCenterGeo.height = s - e.top - e.bottom, this.areaBodyCenterGeo.top = 0, this.areaBodyCenterGeo.left = 0, this.dom.applyStyleInPx(this.areaBodyCenter.parent, this.areaBodyCenterGeo), this.dom.applyStyle(this.areaHeaderCenter.parent, {
1065
1099
  width: `${t - e.left - e.right}px`,
1066
1100
  height: `${e.top}px`,
1067
1101
  top: "0",
@@ -1086,23 +1120,23 @@ class Ye {
1086
1120
  ) : this.dom.applyDisplayNoneStyle(this.borderHeaderBottom), this.dom.applyStyle(this.areaFooterWest.parent, {
1087
1121
  width: `${e.left}px`,
1088
1122
  height: `${e.bottom}px`,
1089
- top: `${o - e.bottom}px`,
1123
+ top: `${s - e.bottom}px`,
1090
1124
  left: "0"
1091
1125
  }), this.dom.applyStyle(this.areaFooterCenter.parent, {
1092
1126
  width: `${t - e.left - e.right}px`,
1093
1127
  height: `${e.bottom}px`,
1094
- top: `${o - e.bottom}px`,
1128
+ top: `${s - e.bottom}px`,
1095
1129
  left: `${e.left}px`
1096
1130
  }), this.dom.applyStyle(this.areaFooterEast.parent, {
1097
1131
  width: `${e.right}px`,
1098
1132
  height: `${e.bottom}px`,
1099
- top: `${o - e.bottom}px`,
1133
+ top: `${s - e.bottom}px`,
1100
1134
  left: `${t - e.right}px`
1101
1135
  }), this.tableOptions.footerSeparatorBorderVisible && this.tableModel.isFooterVisibe() ? this.dom.applyDisplayBlockStyle(
1102
1136
  this.dom.applyStyle(this.borderFooterTop, {
1103
1137
  width: `${t}px`,
1104
1138
  height: "1px",
1105
- top: `${o - e.bottom}px`,
1139
+ top: `${s - e.bottom}px`,
1106
1140
  left: "0px"
1107
1141
  })
1108
1142
  ) : this.dom.applyDisplayNoneStyle(this.borderFooterTop), this.adjustAfterScrolling();
@@ -1137,8 +1171,8 @@ class E {
1137
1171
  * @param {number} c2 - The value for c2.
1138
1172
  * @param {boolean} [gammaRange=false] - The value for gammaRange. Defaults to false. gammaRange will be used for AreaModelCellGroups, but it's not implemented yet!
1139
1173
  */
1140
- constructor(e, t, o, s, i = !1) {
1141
- this.r1 = e, this.c1 = t, this.r2 = o, this.c2 = s, this.gammaRange = i;
1174
+ constructor(e, t, s, o, i = !1) {
1175
+ this.r1 = e, this.c1 = t, this.r2 = s, this.c2 = o, this.gammaRange = i;
1142
1176
  }
1143
1177
  static create(e) {
1144
1178
  return e.gammaRange === void 0 && (e.gammaRange = !1), new E(
@@ -1162,7 +1196,7 @@ class E {
1162
1196
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
1163
1197
  }
1164
1198
  }
1165
- class qe {
1199
+ class Je {
1166
1200
  constructor(e, t) {
1167
1201
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
1168
1202
  }
@@ -1171,14 +1205,14 @@ class qe {
1171
1205
  return;
1172
1206
  this.colAndRowspanRanges = [];
1173
1207
  const e = this.areaModel.getRowCount(), t = this.tableModel.getColumnCount();
1174
- for (let o = 0; o < e; o++)
1175
- for (let s = 0; s < t; s++) {
1176
- let i = this.areaModel.getColspanAt(o, s), r = this.areaModel.getRowspanAt(o, s);
1177
- if (i > 1 || r > 1) {
1178
- i === 0 && (i = 1), r === 0 && (r = 1);
1179
- const n = "gammaCells" in this.areaModel;
1208
+ for (let s = 0; s < e; s++)
1209
+ for (let o = 0; o < t; o++) {
1210
+ let i = this.areaModel.getColspanAt(s, o), a = this.areaModel.getRowspanAt(s, o);
1211
+ if (i > 1 || a > 1) {
1212
+ i === 0 && (i = 1), a === 0 && (a = 1);
1213
+ const l = "gammaCells" in this.areaModel;
1180
1214
  this.colAndRowspanRanges.push(
1181
- new E(o, s, o + r - 1, s + i - 1, n)
1215
+ new E(s, o, s + a - 1, o + i - 1, l)
1182
1216
  );
1183
1217
  }
1184
1218
  }
@@ -1188,29 +1222,29 @@ class qe {
1188
1222
  }
1189
1223
  isInRange(e, t) {
1190
1224
  if (this.colAndRowspanRanges) {
1191
- for (const o of this.colAndRowspanRanges)
1192
- if (o.isInRange(e, t))
1225
+ for (const s of this.colAndRowspanRanges)
1226
+ if (s.isInRange(e, t))
1193
1227
  return !0;
1194
1228
  }
1195
1229
  return !1;
1196
1230
  }
1197
1231
  }
1198
- class Ue {
1199
- constructor(e, t, o) {
1200
- this.header = e, this.body = t, this.footer = o;
1232
+ class qe {
1233
+ constructor(e, t, s) {
1234
+ this.header = e, this.body = t, this.footer = s;
1201
1235
  }
1202
1236
  }
1203
- class Je extends Ye {
1204
- constructor(e, t, o, s) {
1205
- var r, n;
1206
- super(e, t, o, s), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
1237
+ class Ze extends Ye {
1238
+ constructor(e, t, s, o) {
1239
+ var a, l;
1240
+ 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 = {
1207
1241
  header: [],
1208
1242
  body: [],
1209
1243
  footer: []
1210
- }, this.tree = !1, this.colAndRowspanModels = new Ue(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (n = this.tableOptions) != null && n.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), U(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1211
- (l) => {
1212
- var d;
1213
- this.colAndRowspanModels[l] = new qe(t, t.getAreaModel(l)), (d = this.colAndRowspanModels[l]) == null || d.init();
1244
+ }, this.tree = !1, this.colAndRowspanModels = new qe(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (a = this.tableOptions) != null && a.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), J(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1245
+ (r) => {
1246
+ var c;
1247
+ this.colAndRowspanModels[r] = new Je(t, t.getAreaModel(r)), (c = this.colAndRowspanModels[r]) == null || c.init();
1214
1248
  }
1215
1249
  );
1216
1250
  }
@@ -1248,10 +1282,10 @@ class Je extends Ye {
1248
1282
  * @param {number} colIdx - The index of the column.
1249
1283
  */
1250
1284
  initRenderEditor(e, t) {
1251
- var s;
1252
- let o = (s = this.tableModel.getColumnDef(t)) == null ? void 0 : s.getEditRenderer;
1253
- if (o || (o = this.tableOptions.getEditRenderer), o)
1254
- if (this.editorRenderer = o(e, t), this.editorRenderer) {
1285
+ var o;
1286
+ let s = (o = this.tableModel.getColumnDef(t)) == null ? void 0 : o.getEditRenderer;
1287
+ if (s || (s = this.tableOptions.getEditRenderer), s)
1288
+ if (this.editorRenderer = s(e, t), this.editorRenderer) {
1255
1289
  this.editorRendererRow = e, this.editorRendererColumn = t, this.editing = !0, this.repaint();
1256
1290
  const i = document.querySelector("input.ge-table-cell-editor-input");
1257
1291
  i && i.focus();
@@ -1296,19 +1330,19 @@ class Je extends Ye {
1296
1330
  for (const t of this.removables)
1297
1331
  t.remove();
1298
1332
  this.hideHoverRow(), this.hideHoverColumn(), this.scrollTop = this.scrollViewport.scrollTop, this.scrollLeft = this.scrollViewport.scrollLeft, this.debounce(this.checkForScrollPosSaving.bind(this)), this.scrollFactorY = this.scrollTop / (this.scrollViewport.scrollHeight - this.scrollViewport.clientHeight), this.scrollFactorX = this.scrollLeft / (this.scrollViewport.scrollWidth - this.scrollViewport.clientWidth), isNaN(this.scrollFactorY) && (this.scrollFactorY = 0), isNaN(this.scrollFactorX) && (this.scrollFactorX = 0), this.adjustBody(), this.adjustArea("footer"), this.adjustArea("header"), this.tableOptions.tableTopBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
1299
- new T(0, this.hostElement.clientWidth, 1, 0),
1333
+ new R(0, this.hostElement.clientWidth, 1, 0),
1300
1334
  this.hostElement,
1301
1335
  "ge-table-border"
1302
1336
  )), this.tableOptions.tableBottomBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
1303
- new T(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
1337
+ new R(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
1304
1338
  this.hostElement,
1305
1339
  "ge-table-border"
1306
1340
  )), this.tableModel.getFixedLeftColumnCount() > 0 && this.removables.push(this.dom.addVerticalBorder(
1307
- new T(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
1341
+ new R(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
1308
1342
  this.hostElement,
1309
1343
  "ge-table-body-west-vertical-border"
1310
1344
  )), ((e = this.tableModel.getAreaModel("header")) == null ? void 0 : e.getRowCount()) > 0 && this.removables.push(this.dom.addHorizontalBorder(
1311
- new T(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
1345
+ new R(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
1312
1346
  this.hostElement,
1313
1347
  "ge-table-body-west-vertical-border"
1314
1348
  ));
@@ -1332,8 +1366,8 @@ class Je extends Ye {
1332
1366
  */
1333
1367
  updateCells(e, t = !1) {
1334
1368
  e.forEach(
1335
- (o) => {
1336
- this.tableModel.getAreaModel(o.area).setValue(o.rowIndex, o.columnIndex, o.value), t || this.rerenderCellContent(o);
1369
+ (s) => {
1370
+ this.tableModel.getAreaModel(s.area).setValue(s.rowIndex, s.columnIndex, s.value), t || this.rerenderCellContent(s);
1337
1371
  }
1338
1372
  ), t && this.repaint();
1339
1373
  }
@@ -1346,23 +1380,24 @@ class Je extends Ye {
1346
1380
  * @param {any} value - The new value to be displayed in the cell.
1347
1381
  * @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
1348
1382
  */
1349
- rerenderCellContent({ area: e, rowIndex: t, columnIndex: o, value: s, cssClasses: i }) {
1350
- const r = this.tableModel.getAreaModel(e), n = 'div[data-col-index="' + o + '"][data-row-index="' + t + '"][data-area="' + e + '"]', l = document.querySelector(n);
1351
- if (l) {
1383
+ rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
1384
+ const a = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', r = document.querySelector(l);
1385
+ if (r) {
1386
+ let c;
1387
+ const h = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
1352
1388
  let d;
1353
- const h = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === o ? this.editorRenderer : r.getCellRenderer(t, o);
1354
- if (l.innerText = "", this.applyCssClasses(l, i), h)
1355
- d = h.render(l, t, o, e, r, s, this.dom.domService), d && this.cleanupFunctions[e].push(d);
1389
+ if (h ? d = this.editorRenderer : d = a.getCellRenderer(t, s), r.innerText = "", this.applyCssClasses(r, i), d)
1390
+ c = d.render(r, t, s, e, a, o, this.dom.domService), c && this.cleanupFunctions[e].push(c);
1356
1391
  else {
1357
- const b = `${s}`;
1358
- this.dom.addLabelDiv(l, b, !1, t, o, e);
1392
+ const g = `${o}`;
1393
+ this.dom.addLabelDiv(r, g, !1, t, s, e);
1359
1394
  }
1360
- const g = r.getCustomClassesAt(t, o);
1361
- g.length && this.dom.addClasses(g, l);
1362
- const S = r.getCustomStyleAt(t, o);
1363
- if (S)
1364
- for (const b in S)
1365
- this.dom.setStyle(l, b, S[b]);
1395
+ const p = a.getCustomClassesAt(t, s);
1396
+ p.length && this.dom.addClasses(p, r);
1397
+ const u = a.getCustomStyleAt(t, s);
1398
+ if (u)
1399
+ for (const g in u)
1400
+ this.dom.setStyle(r, g, u[g]);
1366
1401
  }
1367
1402
  }
1368
1403
  /**
@@ -1374,13 +1409,13 @@ class Je extends Ye {
1374
1409
  */
1375
1410
  storeColumnWidths() {
1376
1411
  const e = this.tableModel.getColumnDefs();
1377
- e != null && e.length && (this.storedColumnWidths = e.map((t, o) => this.tableModel.getColumnWidth(o)));
1412
+ e != null && e.length && (this.storedColumnWidths = e.map((t, s) => this.tableModel.getColumnWidth(s)));
1378
1413
  }
1379
1414
  getAreaAndSideIdentByAttr(e) {
1380
1415
  if (e) {
1381
- const t = this.getStringByAttr(e, "data-area"), o = this.getStringByAttr(e, "data-side");
1382
- if (o && t)
1383
- return [t, o];
1416
+ const t = this.getStringByAttr(e, "data-area"), s = this.getStringByAttr(e, "data-side");
1417
+ if (s && t)
1418
+ return [t, s];
1384
1419
  }
1385
1420
  return [void 0, void 0];
1386
1421
  }
@@ -1437,11 +1472,11 @@ class Je extends Ye {
1437
1472
  * @protected
1438
1473
  */
1439
1474
  getNumberByAttr(e, t) {
1440
- var o;
1475
+ var s;
1441
1476
  if (e) {
1442
- const s = (o = e.closest("[" + t + "]")) == null ? void 0 : o.getAttribute(t);
1443
- if (s)
1444
- return Number(s);
1477
+ const o = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
1478
+ if (o)
1479
+ return Number(o);
1445
1480
  }
1446
1481
  return -1;
1447
1482
  }
@@ -1454,11 +1489,11 @@ class Je extends Ye {
1454
1489
  * @protected
1455
1490
  */
1456
1491
  getStringByAttr(e, t) {
1457
- var o;
1492
+ var s;
1458
1493
  if (e) {
1459
- const s = (o = e.closest("[" + t + "]")) == null ? void 0 : o.getAttribute(t);
1460
- if (s)
1461
- return s;
1494
+ const o = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
1495
+ if (o)
1496
+ return o;
1462
1497
  }
1463
1498
  return "";
1464
1499
  }
@@ -1471,87 +1506,87 @@ class Je extends Ye {
1471
1506
  * @protected
1472
1507
  */
1473
1508
  adjustArea(e, t = 0) {
1474
- var u;
1475
- const o = this.getArea(e, "west"), s = this.getArea(e, "center"), i = this.getArea(e, "east"), r = s.child.clientHeight;
1476
- o.child.innerText = "", s.child.innerText = "", i.child.innerText = "";
1477
- const n = 0, l = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), h = c.getRowCount();
1509
+ var f;
1510
+ const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), a = o.child.clientHeight;
1511
+ s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
1512
+ const l = 0, r = this.areaBodyCenterGeo.width, c = this.tableModel.getPadding(), h = this.tableModel.getAreaModel(e), d = h.getRowCount();
1478
1513
  for (; this.cleanupFunctions[e].length; ) {
1479
- const p = this.cleanupFunctions[e].shift();
1480
- p && p();
1514
+ const m = this.cleanupFunctions[e].shift();
1515
+ m && m();
1481
1516
  }
1482
- let g = t;
1483
- const S = this.tableModel.getColumnCount(), b = this.tableModel.getFixedRightColumnCount(), f = this.tableModel.getFixedLeftColumnCount();
1484
- for (let p = 0; p < h; p++) {
1485
- const v = g, w = p === h - 1, x = this.tableModel.getRowHeight(e, p);
1486
- if (v + x > 0) {
1487
- this.firstVisibleRowIndex = p;
1488
- let y = { left: n, width: l, height: x, top: v, index: p }, m = this.dom.addRowDiv(s, y, p, e, "center");
1489
- const R = f;
1517
+ let p = t;
1518
+ const u = this.tableModel.getColumnCount(), g = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
1519
+ for (let m = 0; m < d; m++) {
1520
+ const x = p, v = m === d - 1, w = this.tableModel.getRowHeight(e, m);
1521
+ if (x + w > 0) {
1522
+ this.firstVisibleRowIndex = m;
1523
+ let y = { left: l, width: r, height: w, top: x, index: m }, S = this.dom.addRowDiv(o, y, m, e, "center");
1524
+ const T = b;
1490
1525
  if (this.adjustColumnsToRowParent({
1491
1526
  areaIdent: e,
1492
1527
  sideIdent: "center",
1493
- areaModel: c,
1528
+ areaModel: h,
1494
1529
  geo: y,
1495
- parent: m,
1496
- rowIndex: p,
1497
- columnIndexStart: R,
1498
- columnIndexEnd: S - b - 1,
1530
+ parent: S,
1531
+ rowIndex: m,
1532
+ columnIndexStart: T,
1533
+ columnIndexEnd: u - g - 1,
1499
1534
  verticalFixed: !1,
1500
- lastRowOfModel: w
1501
- }), d.left > 0 && (y = { left: n, width: this.areaBodyWestGeo.width, height: x, top: v, index: p }, m = this.dom.addRowDiv(o, y, p, e, "west"), this.adjustColumnsToRowParent({
1535
+ lastRowOfModel: v
1536
+ }), c.left > 0 && (y = { left: l, width: this.areaBodyWestGeo.width, height: w, top: x, index: m }, S = this.dom.addRowDiv(s, y, m, e, "west"), this.adjustColumnsToRowParent({
1502
1537
  areaIdent: e,
1503
1538
  sideIdent: "west",
1504
- areaModel: c,
1539
+ areaModel: h,
1505
1540
  geo: y,
1506
- parent: m,
1507
- rowIndex: p,
1541
+ parent: S,
1542
+ rowIndex: m,
1508
1543
  columnIndexStart: 0,
1509
- columnIndexEnd: R - 1,
1544
+ columnIndexEnd: T - 1,
1510
1545
  verticalFixed: !0,
1511
- lastRowOfModel: w
1512
- })), d.right > 0 && (y = { left: n, width: this.areaBodyEastGeo.width, height: x, top: v, index: p }, m = this.dom.addRowDiv(i, y, p, e, "east"), this.adjustColumnsToRowParent({
1546
+ lastRowOfModel: v
1547
+ })), c.right > 0 && (y = { left: l, width: this.areaBodyEastGeo.width, height: w, top: x, index: m }, S = this.dom.addRowDiv(i, y, m, e, "east"), this.adjustColumnsToRowParent({
1513
1548
  areaIdent: e,
1514
1549
  sideIdent: "east",
1515
- areaModel: c,
1550
+ areaModel: h,
1516
1551
  geo: y,
1517
- parent: m,
1518
- rowIndex: p,
1519
- columnIndexStart: S - b,
1520
- columnIndexEnd: S - 1,
1552
+ parent: S,
1553
+ rowIndex: m,
1554
+ columnIndexStart: u - g,
1555
+ columnIndexEnd: u - 1,
1521
1556
  verticalFixed: !0,
1522
- lastRowOfModel: w
1523
- })), e === "header" && this.tree && p === h - 1) {
1557
+ lastRowOfModel: v
1558
+ })), e === "header" && this.tree && m === d - 1) {
1524
1559
  const A = this.dom.applyStyle(
1525
1560
  this.dom.setAttribute(
1526
- this.dom.addDiv(m, new T(16, 20, 20, 8)),
1561
+ this.dom.addDiv(S, new R(16, 20, 20, 8)),
1527
1562
  "data-ge-action",
1528
1563
  "toggleExpandCollapseAll"
1529
1564
  ),
1530
1565
  { cursor: "pointer" }
1531
1566
  ), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
1532
1567
  if (M) {
1533
- const P = this.dom.domService.createText(M.content);
1534
- this.dom.domService.appendChild(A, P), M.style && this.dom.applyStyleString(A, M.style);
1568
+ const H = this.dom.domService.createText(M.content);
1569
+ this.dom.domService.appendChild(A, H), M.style && this.dom.applyStyleString(A, M.style);
1535
1570
  }
1536
1571
  }
1537
1572
  }
1538
- if (g = g + x, g > r)
1573
+ if (p = p + w, p > a)
1539
1574
  break;
1540
1575
  }
1541
1576
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1542
- const p = ((u = this.colAndRowspanModels[e]) == null ? void 0 : u.getRanges()) ?? [];
1543
- if (p.length)
1544
- for (const v of p) {
1545
- let w = 0, x = s.child, y = "center";
1546
- if (v.c1 < f)
1547
- x = o.child, y = "west";
1548
- else if (b > 0 && v.c1 >= S - b)
1549
- x = i.child, y = "east";
1577
+ const m = ((f = this.colAndRowspanModels[e]) == null ? void 0 : f.getRanges()) ?? [];
1578
+ if (m.length)
1579
+ for (const x of m) {
1580
+ let v = 0, w = o.child, y = "center";
1581
+ if (x.c1 < b)
1582
+ w = s.child, y = "west";
1583
+ else if (g > 0 && x.c1 >= u - g)
1584
+ w = i.child, y = "east";
1550
1585
  else {
1551
- const m = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1552
- w = this.scrollFactorX * m - this.areaBodyWestGeo.width, y = "center";
1586
+ const S = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1587
+ v = this.scrollFactorX * S - this.areaBodyWestGeo.width, y = "center";
1553
1588
  }
1554
- this.drawBigCell(v, w, t, c, x, y);
1589
+ this.drawBigCell(x, v, t, h, w, y);
1555
1590
  }
1556
1591
  }
1557
1592
  }
@@ -1565,48 +1600,48 @@ class Je extends Ye {
1565
1600
  * @param sideIdent SideIdent (west,center,east)
1566
1601
  * @protected
1567
1602
  */
1568
- drawBigCell(e, t, o, s, i, r) {
1569
- const n = o + this.getRowHeights(0, e.r1 - 1, s).reduce((u, p) => u + p, 0), l = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
1570
- let c = 0;
1571
- d > 0 && e.c1 >= l - d && (c = l - d);
1572
- const h = t + this.getColumnWidths(c, e.c1 - 1).reduce((u, p) => u + p, 0), g = this.getRowHeights(e.r1, e.r2, s).reduce((u, p) => u + p, 0), S = this.getColumnWidths(e.c1, e.c2).reduce((u, p) => u + p, 0);
1573
- let b = !1;
1574
- const f = this.getSelectionModel ? this.getSelectionModel() : void 0;
1575
- f && (b = f.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
1576
- areaModel: s,
1577
- areaIdent: s.areaIdent,
1578
- sideIdent: r,
1603
+ drawBigCell(e, t, s, o, i, a) {
1604
+ const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((f, m) => f + m, 0), r = this.tableModel.getColumnCount(), c = this.tableModel.getFixedRightColumnCount();
1605
+ let h = 0;
1606
+ c > 0 && e.c1 >= r - c && (h = r - c);
1607
+ 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);
1608
+ let g = !1;
1609
+ const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
1610
+ b && (g = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
1611
+ areaModel: o,
1612
+ areaIdent: o.areaIdent,
1613
+ sideIdent: a,
1579
1614
  rowIndex: e.r1,
1580
1615
  columnIndex: e.c1,
1581
- left: h,
1582
- top: n,
1583
- width: S,
1584
- height: g,
1616
+ left: d,
1617
+ top: l,
1618
+ width: u,
1619
+ height: p,
1585
1620
  parent: i,
1586
- cellSelected: b,
1621
+ cellSelected: g,
1587
1622
  lastRowOfModel: !0,
1588
1623
  gammaRange: e.gammaRange
1589
1624
  }) : this.renderCell({
1590
- areaModel: s,
1591
- areaIdent: s.areaIdent,
1592
- sideIdent: r,
1625
+ areaModel: o,
1626
+ areaIdent: o.areaIdent,
1627
+ sideIdent: a,
1593
1628
  rowIndex: e.r1,
1594
1629
  columnIndex: e.c1,
1595
- left: h,
1596
- top: n,
1597
- width: S,
1598
- height: g,
1630
+ left: d,
1631
+ top: l,
1632
+ width: u,
1633
+ height: p,
1599
1634
  parent: i,
1600
- cellSelected: b,
1635
+ cellSelected: g,
1601
1636
  lastRowOfModel: !0,
1602
1637
  gammaRange: e.gammaRange
1603
- }), s.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1638
+ }), o.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1604
1639
  rowIndex: e.r1,
1605
1640
  columnIndex: e.c1,
1606
- cellLeft: h,
1607
- cellTop: n,
1608
- cellWidth: S,
1609
- cellHeight: g,
1641
+ cellLeft: d,
1642
+ cellTop: l,
1643
+ cellWidth: u,
1644
+ cellHeight: p,
1610
1645
  parent: i
1611
1646
  });
1612
1647
  }
@@ -1619,13 +1654,13 @@ class Je extends Ye {
1619
1654
  * @returns {number} - The row index of the important rowspan cell, or -1 if not found.
1620
1655
  * @protected
1621
1656
  */
1622
- findRowOfImportantRowspanCell(e, t, o) {
1623
- const s = e.getMaxRowspan();
1657
+ findRowOfImportantRowspanCell(e, t, s) {
1658
+ const o = e.getMaxRowspan();
1624
1659
  for (let i = t - 1; i > -1; i--) {
1625
- const r = e.getRowspanAt(i, o);
1626
- if (r > 1 && i + r + 1 >= t)
1660
+ const a = e.getRowspanAt(i, s);
1661
+ if (a > 1 && i + a + 1 >= t)
1627
1662
  return i;
1628
- if (t - i > s)
1663
+ if (t - i > o)
1629
1664
  return -1;
1630
1665
  }
1631
1666
  return -1;
@@ -1640,68 +1675,68 @@ class Je extends Ye {
1640
1675
  adjustColumnsToRowParent({
1641
1676
  areaIdent: e,
1642
1677
  sideIdent: t,
1643
- areaModel: o,
1644
- geo: s,
1678
+ areaModel: s,
1679
+ geo: o,
1645
1680
  parent: i,
1646
- rowIndex: r,
1647
- columnIndexStart: n,
1648
- columnIndexEnd: l,
1649
- verticalFixed: d = !1,
1650
- lastRowOfModel: c = !1
1681
+ rowIndex: a,
1682
+ columnIndexStart: l,
1683
+ columnIndexEnd: r,
1684
+ verticalFixed: c = !1,
1685
+ lastRowOfModel: h = !1
1651
1686
  }) {
1652
- var f;
1687
+ var b;
1653
1688
  this.scrollViewportLeft = this.scrollViewport.scrollLeft;
1654
- let h = 0;
1655
- if (!d) {
1656
- const u = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1657
- h = this.scrollFactorX * u;
1689
+ let d = 0;
1690
+ if (!c) {
1691
+ const f = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1692
+ d = this.scrollFactorX * f;
1658
1693
  }
1659
- const g = 0, S = !!(e === "body" && t);
1660
- let b = h;
1661
- for (let u = n; u <= l; u++) {
1662
- const p = b, v = this.tableModel.getColumnWidth(u);
1663
- if (v > 0 && p + v > 0) {
1664
- let w = s.height;
1665
- const x = o.getRowspanAt(r, u), y = o.getColspanAt(r, u);
1666
- x > 1 && (w = this.getRowHeights(r, r + x - 1, o).reduce((A, M) => A + M, 0));
1667
- let m = v;
1668
- y > 1 && (m = this.getColumnWidths(u, u + y - 1).reduce((A, M) => A + M, 0));
1669
- let R = !1;
1670
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (f = this.colAndRowspanModels[e]) != null && f.isInRange(r, u) && (R = !0), this.draggingTargetColumnIndex === u && e !== "header") {
1671
- this.renderDragTargetDiv(i, p, g, m, w);
1672
- const A = { left: p, top: g, width: m, height: w };
1694
+ const p = 0, u = !!(e === "body" && t);
1695
+ let g = d;
1696
+ for (let f = l; f <= r; f++) {
1697
+ const m = g, x = this.tableModel.getColumnWidth(f);
1698
+ if (x > 0 && m + x > 0) {
1699
+ let v = o.height;
1700
+ const w = s.getRowspanAt(a, f), y = s.getColspanAt(a, f);
1701
+ w > 1 && (v = this.getRowHeights(a, a + w - 1, s).reduce((A, M) => A + M, 0));
1702
+ let S = x;
1703
+ y > 1 && (S = this.getColumnWidths(f, f + y - 1).reduce((A, M) => A + M, 0));
1704
+ let T = !1;
1705
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(a, f) && (T = !0), this.draggingTargetColumnIndex === f && e !== "header") {
1706
+ this.renderDragTargetDiv(i, m, p, S, v);
1707
+ const A = { left: m, top: p, width: S, height: v };
1673
1708
  this.dom.addColumnBorderDivs(this.tableOptions, i, A, e, t);
1674
1709
  } else {
1675
- const A = this.renderSelectedBackgroundDiv(R, S, t, o, r, u, i, p, g, m, w);
1676
- "gammaCells" in o && o.getValueAt(r, u) && (R = !1), R || this.renderCell({
1677
- areaModel: o,
1710
+ const A = this.renderSelectedBackgroundDiv(T, u, t, s, a, f, i, m, p, S, v);
1711
+ "gammaCells" in s && s.getValueAt(a, f) && (T = !1), T || this.renderCell({
1712
+ areaModel: s,
1678
1713
  areaIdent: e,
1679
1714
  sideIdent: t,
1680
- rowIndex: r,
1681
- columnIndex: u,
1682
- left: p,
1683
- top: g,
1684
- width: m,
1685
- height: w,
1715
+ rowIndex: a,
1716
+ columnIndex: f,
1717
+ left: m,
1718
+ top: p,
1719
+ width: S,
1720
+ height: v,
1686
1721
  parent: i,
1687
1722
  cellSelected: A,
1688
- lastRowOfModel: c,
1723
+ lastRowOfModel: h,
1689
1724
  gammaRange: !0
1690
1725
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1691
- rowIndex: r,
1692
- columnIndex: u,
1693
- cellLeft: p,
1694
- cellTop: g,
1695
- cellWidth: m,
1696
- cellHeight: w,
1726
+ rowIndex: a,
1727
+ columnIndex: f,
1728
+ cellLeft: m,
1729
+ cellTop: p,
1730
+ cellWidth: S,
1731
+ cellHeight: v,
1697
1732
  parent: i
1698
1733
  });
1699
1734
  }
1700
1735
  }
1701
- if (b = b + v, b > this.areaBodyCenterGeo.width)
1736
+ if (g = g + x, g > this.areaBodyCenterGeo.width)
1702
1737
  break;
1703
1738
  }
1704
- this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(b - 1, 1, s.height, 0), i);
1739
+ this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new R(g - 1, 1, o.height, 0), i);
1705
1740
  }
1706
1741
  /**
1707
1742
  * Retrieves the column index of the tree arrow column in the table.
@@ -1718,59 +1753,59 @@ class Je extends Ye {
1718
1753
  addAndRenderCellDiv({
1719
1754
  areaModel: e,
1720
1755
  areaIdent: t,
1721
- sideIdent: o,
1722
- rowIndex: s,
1756
+ sideIdent: s,
1757
+ rowIndex: o,
1723
1758
  index: i,
1724
- left: r,
1725
- width: n,
1726
- height: l,
1727
- top: d,
1728
- parent: c,
1729
- lastRowOfModel: h
1759
+ left: a,
1760
+ width: l,
1761
+ height: r,
1762
+ top: c,
1763
+ parent: h,
1764
+ lastRowOfModel: d
1730
1765
  }) {
1731
- var se;
1732
- const S = this.editorRenderer && this.editorRendererRow === s && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(s, i), b = { left: r, width: n, height: l, top: d, index: i }, f = e.getRowByIndex(s);
1733
- let u = "none";
1734
- if (i === this.getTreeArrowColumnIndex() && q(f)) {
1735
- const C = f;
1736
- (se = C.children) != null && se.length ? C.expanded ? u = "expanded" : u = "collapsed" : u = "hidden";
1766
+ var oe;
1767
+ const u = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: a, width: l, height: r, top: c, index: i }, b = e.getRowByIndex(o);
1768
+ let f = "none";
1769
+ if (i === this.getTreeArrowColumnIndex() && Y(b)) {
1770
+ const C = b;
1771
+ (oe = C.children) != null && oe.length ? C.expanded ? f = "expanded" : f = "collapsed" : f = "hidden";
1737
1772
  }
1738
- let v;
1773
+ let x;
1739
1774
  if (t === "header") {
1740
1775
  const C = this.tableModel.getColumnDef(i);
1741
- (!(C != null && C.sortIconVisible) || C != null && C.sortIconVisible()) && (v = C == null ? void 0 : C.sortState);
1776
+ (!(C != null && C.sortIconVisible) || C != null && C.sortIconVisible()) && (x = C == null ? void 0 : C.sortState);
1742
1777
  }
1743
- const w = e.getValueAt(s, i), x = S ? "" : `${w}`, y = e.isRowChecked(s), m = this.dom.addColumnDiv(
1778
+ const v = e.getValueAt(o, i), w = u ? "" : `${v}`, y = e.isRowChecked(o), S = this.dom.addColumnDiv(
1744
1779
  {
1745
- parent: c,
1746
- geo: b,
1747
- rowIndex: s,
1780
+ parent: h,
1781
+ geo: g,
1782
+ rowIndex: o,
1748
1783
  columnIndex: i,
1749
1784
  areaIdent: t,
1750
- sideIdent: o,
1751
- text: x,
1752
- treeArrow: u,
1785
+ sideIdent: s,
1786
+ text: w,
1787
+ treeArrow: f,
1753
1788
  tableOptions: this.tableOptions,
1754
1789
  checkedType: y,
1755
- sortState: v
1790
+ sortState: x
1756
1791
  }
1757
- ), R = e.getTooltipAt(s, i);
1758
- R && this.dom.setAttribute(m, "title", R);
1792
+ ), T = e.getTooltipAt(o, i);
1793
+ T && this.dom.setAttribute(S, "title", T);
1759
1794
  const A = this.tableModel.getColumnDef(i);
1760
- A && A.classes[t] && this.dom.addClasses(A.classes[t], m);
1795
+ A && A.classes[t] && this.dom.addClasses(A.classes[t], S);
1761
1796
  let M;
1762
- S && (M = S.render(m, s, i, t, e, w, this.dom.domService));
1763
- const P = e.getCustomClassesAt(s, i);
1764
- if (P.length && this.dom.addClasses(P, m), this.dom.addColumnBorderDivs(this.tableOptions, c, b, t, o), h && this.dom.addHorizontalBorder({ left: r, width: n, height: l, top: d + l }, c), this.getFocusModel && t === "body") {
1797
+ u && (M = u.render(S, o, i, t, e, v, this.dom.domService));
1798
+ const H = e.getCustomClassesAt(o, i);
1799
+ if (H.length && this.dom.addClasses(H, S), this.dom.addColumnBorderDivs(this.tableOptions, h, g, t, s), d && this.dom.addHorizontalBorder({ left: a, width: l, height: r, top: c + r }, h), this.getFocusModel && t === "body") {
1765
1800
  const C = this.getFocusModel();
1766
- C != null && C.hasFocus(s, i) && this.dom.addFocusBorderDivs(c, b, {});
1801
+ C != null && C.hasFocus(o, i) && this.dom.addFocusBorderDivs(h, g, {});
1767
1802
  }
1768
- t === "header" && this.dom.setAttribute(m, "data-ge-action", "drag-column");
1769
- const z = e.getCustomStyleAt(s, i);
1770
- if (z)
1771
- for (const C in z)
1772
- this.dom.setStyle(m, C, z[C]);
1773
- return [m, M];
1803
+ t === "header" && this.dom.setAttribute(S, "data-ge-action", "drag-column");
1804
+ const N = e.getCustomStyleAt(o, i);
1805
+ if (N)
1806
+ for (const C in N)
1807
+ this.dom.setStyle(S, C, N[C]);
1808
+ return [S, M];
1774
1809
  }
1775
1810
  /**
1776
1811
  * Applies CSS classes to an HTML element.
@@ -1780,8 +1815,8 @@ class Je extends Ye {
1780
1815
  * @protected
1781
1816
  */
1782
1817
  applyCssClasses(e, t = {}) {
1783
- e && Object.entries(t).forEach(([o, s]) => {
1784
- s ? this.dom.addClass(o, e) : this.dom.removeClass(o, e);
1818
+ e && Object.entries(t).forEach(([s, o]) => {
1819
+ o ? this.dom.addClass(s, e) : this.dom.removeClass(s, e);
1785
1820
  });
1786
1821
  }
1787
1822
  /**
@@ -1793,10 +1828,10 @@ class Je extends Ye {
1793
1828
  * @return {number[]} An array containing the widths of the columns within the specified range.
1794
1829
  */
1795
1830
  getColumnWidths(e, t) {
1796
- const o = [];
1797
- for (let s = e; s <= t; s++)
1798
- o.push(this.tableModel.getColumnWidth(s));
1799
- return o;
1831
+ const s = [];
1832
+ for (let o = e; o <= t; o++)
1833
+ s.push(this.tableModel.getColumnWidth(o));
1834
+ return s;
1800
1835
  }
1801
1836
  /**
1802
1837
  * Retrieves the heights of rows within a specified range.
@@ -1806,11 +1841,11 @@ class Je extends Ye {
1806
1841
  * @param {AreaModelIf} areaModel - The area model.
1807
1842
  * @return {number[]} - An array containing the heights of the rows within the specified range.
1808
1843
  */
1809
- getRowHeights(e, t, o) {
1810
- const s = [];
1844
+ getRowHeights(e, t, s) {
1845
+ const o = [];
1811
1846
  for (let i = e; i <= t; i++)
1812
- s.push(o.getRowHeight(i));
1813
- return s;
1847
+ o.push(s.getRowHeight(i));
1848
+ return o;
1814
1849
  }
1815
1850
  /**
1816
1851
  * Adjusts the position and size of the hover row based on the mouse move event.
@@ -1821,12 +1856,12 @@ class Je extends Ye {
1821
1856
  */
1822
1857
  adjustHoverRows(e) {
1823
1858
  if (this.tableOptions.hoverRowVisible && e.rowIndex > -1) {
1824
- const t = this.hostElement.clientWidth, o = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex), s = e.rowTop + this.areaHeaderCenter.parent.clientHeight - this.scrollTop;
1859
+ const t = this.hostElement.clientWidth, s = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex), o = e.rowTop + this.areaHeaderCenter.parent.clientHeight - this.scrollTop;
1825
1860
  this.dom.applyStyle(this.hoverRow, {
1826
1861
  left: "0",
1827
- top: s + "px",
1862
+ top: o + "px",
1828
1863
  width: t + "px",
1829
- height: o + "px",
1864
+ height: s + "px",
1830
1865
  display: "block"
1831
1866
  });
1832
1867
  } else
@@ -1854,11 +1889,11 @@ class Je extends Ye {
1854
1889
  */
1855
1890
  adjustHoverColumns(e) {
1856
1891
  if (this.tableOptions.hoverColumnVisible && e.rowIndex > -1) {
1857
- const t = this.hostElement.clientHeight, o = this.tableModel.getColumnWidth(e.columnIndex), s = this.areaBodyWestGeo.width, i = e.columnLeft + this.tableModel.getPadding().left - this.scrollLeft - s;
1892
+ const t = this.hostElement.clientHeight, s = this.tableModel.getColumnWidth(e.columnIndex), o = this.areaBodyWestGeo.width, i = e.columnLeft + this.tableModel.getPadding().left - this.scrollLeft - o;
1858
1893
  this.dom.applyStyle(this.hoverColumn, {
1859
1894
  left: i + "px",
1860
1895
  top: "0px",
1861
- width: o + "px",
1896
+ width: s + "px",
1862
1897
  height: t + "px",
1863
1898
  display: "block"
1864
1899
  });
@@ -1897,17 +1932,17 @@ class Je extends Ye {
1897
1932
  * @param {number} sourceColumnIndex - The index of the source column.
1898
1933
  * @param {boolean} firstDraggingRendering - Indicates if it's the first rendering of the dragging column.
1899
1934
  */
1900
- adjustDraggingColumn(e, t, o) {
1901
- var s, i;
1935
+ adjustDraggingColumn(e, t, s) {
1936
+ var o, i;
1902
1937
  if (this.dragging) {
1903
- const r = this.hostElement.clientHeight, n = this.storedColumnWidths[t];
1904
- if ((s = e.originalEvent) != null && s.clientX) {
1905
- const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - n / 2, width: n, height: r, top: 0, index: t };
1938
+ const a = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
1939
+ if ((o = e.originalEvent) != null && o.clientX) {
1940
+ const h = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - l / 2, width: l, height: a, top: 0, index: t };
1906
1941
  this.dom.applyStyle(this.draggingColumn, {
1907
1942
  background: "rgba(128,128,128,0.2)",
1908
1943
  display: "block",
1909
1944
  overfllow: "clip"
1910
- }), this.dom.applyStyleInPx(this.draggingColumn, c), o && this.renderContentOfDraggingColumn(c);
1945
+ }), this.dom.applyStyleInPx(this.draggingColumn, h), s && this.renderContentOfDraggingColumn(h);
1911
1946
  }
1912
1947
  } else
1913
1948
  this.hideDraggingColumn();
@@ -1931,34 +1966,34 @@ class Je extends Ye {
1931
1966
  * @param {number} [y=0] - The starting y-position.
1932
1967
  * @return {number} The final y-position after rendering all the content.
1933
1968
  */
1934
- renderContentOfDraggingColumnForArea(e, t, o = 0) {
1935
- const s = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
1936
- if (r) {
1937
- const n = e.index ?? 0, l = this.draggingColumn;
1938
- for (let d = 0; d < r; d++) {
1939
- const c = o, h = i.getRowHeight(d), g = { left: 0, width: e.width, height: h, top: c, index: d }, S = i.getValueAt(d, n), b = i.getCellRenderer(d, n), f = b ? "" : `${S}`, u = {
1940
- parent: l,
1941
- geo: g,
1942
- rowIndex: d,
1943
- columnIndex: n,
1969
+ renderContentOfDraggingColumnForArea(e, t, s = 0) {
1970
+ const o = "center", i = this.tableModel.getAreaModel(t), a = i == null ? void 0 : i.getRowCount();
1971
+ if (a) {
1972
+ const l = e.index ?? 0, r = this.draggingColumn;
1973
+ for (let c = 0; c < a; c++) {
1974
+ const h = s, d = i.getRowHeight(c), p = { left: 0, width: e.width, height: d, top: h, index: c }, u = i.getValueAt(c, l), g = i.getCellRenderer(c, l), b = g ? "" : `${u}`, f = {
1975
+ parent: r,
1976
+ geo: p,
1977
+ rowIndex: c,
1978
+ columnIndex: l,
1944
1979
  areaIdent: t,
1945
- sideIdent: s,
1946
- text: f
1947
- }, p = this.dom.addColumnDiv(u);
1948
- let v;
1949
- b && (v = b.render(p, d, n, t, i, S, this.dom.domService), v && this.cleanupFunctions[t].push(v));
1950
- const w = i.getCustomClassesAt(d, n);
1951
- w.length && this.dom.addClasses(w, p);
1952
- const x = this.tableModel.getColumnDef(n);
1953
- x && x.classes[t] && this.dom.addClasses(x.classes[t], p), this.dom.addColumnBorderDivs(this.tableOptions, l, g, t, s);
1954
- const y = i.getCustomStyleAt(d, n);
1980
+ sideIdent: o,
1981
+ text: b
1982
+ }, m = this.dom.addColumnDiv(f);
1983
+ let x;
1984
+ g && (x = g.render(m, c, l, t, i, u, this.dom.domService), x && this.cleanupFunctions[t].push(x));
1985
+ const v = i.getCustomClassesAt(c, l);
1986
+ v.length && this.dom.addClasses(v, m);
1987
+ const w = this.tableModel.getColumnDef(l);
1988
+ w && w.classes[t] && this.dom.addClasses(w.classes[t], m), this.dom.addColumnBorderDivs(this.tableOptions, r, p, t, o);
1989
+ const y = i.getCustomStyleAt(c, l);
1955
1990
  if (y)
1956
- for (const m in y)
1957
- this.dom.setStyle(p, m, y[m]);
1958
- o = o + h;
1991
+ for (const S in y)
1992
+ this.dom.setStyle(m, S, y[S]);
1993
+ s = s + d;
1959
1994
  }
1960
1995
  }
1961
- return o;
1996
+ return s;
1962
1997
  }
1963
1998
  /**
1964
1999
  * Hides the dragging column by applying a 'display: none' style to it.
@@ -1981,11 +2016,11 @@ class Je extends Ye {
1981
2016
  * @param {number} height - The height of the target div in pixels.
1982
2017
  * @return {HTMLDivElement} - The rendered draggable target div element.
1983
2018
  */
1984
- renderDragTargetDiv(e, t, o, s, i) {
1985
- const r = this.dom.applyStylePosistionAbsolute(
2019
+ renderDragTargetDiv(e, t, s, o, i) {
2020
+ const a = this.dom.applyStylePosistionAbsolute(
1986
2021
  this.dom.createDivWithClass("ge-table-drop-zone", e)
1987
2022
  );
1988
- return this.dom.setStyle(r, "left", `${t}px`), this.dom.setStyle(r, "top", `${o}px`), this.dom.setStyle(r, "width", `${s}px`), this.dom.setStyle(r, "height", `${i}px`), r;
2023
+ return this.dom.setStyle(a, "left", `${t}px`), this.dom.setStyle(a, "top", `${s}px`), this.dom.setStyle(a, "width", `${o}px`), this.dom.setStyle(a, "height", `${i}px`), a;
1989
2024
  }
1990
2025
  /**
1991
2026
  * Render selected background div.
@@ -2004,23 +2039,23 @@ class Je extends Ye {
2004
2039
  * @param {number} height - The height of the div.
2005
2040
  * @returns {boolean} - Whether the cell is selected.
2006
2041
  */
2007
- renderSelectedBackgroundDiv(e, t, o, s, i, r, n, l, d, c, h) {
2008
- let g = !1;
2009
- if (!e && t && s.isSelectable(i, r) && this.getSelectionModel) {
2010
- const S = this.getSelectionModel();
2011
- if (S) {
2012
- const b = S.getSelectionCount(i, r);
2013
- g = b > 0;
2014
- for (let f = 0; f < b; f++) {
2015
- const u = this.dom.applyStylePosistionAbsolute(
2042
+ renderSelectedBackgroundDiv(e, t, s, o, i, a, l, r, c, h, d) {
2043
+ let p = !1;
2044
+ if (!e && t && o.isSelectable(i, a) && this.getSelectionModel) {
2045
+ const u = this.getSelectionModel();
2046
+ if (u) {
2047
+ const g = u.getSelectionCount(i, a);
2048
+ p = g > 0;
2049
+ for (let b = 0; b < g; b++) {
2050
+ const f = this.dom.applyStylePosistionAbsolute(
2016
2051
  // ge-table-body-west-selected-range
2017
- this.dom.createDivWithClass(`ge-table-${s.areaIdent}-${o}-selected-range`, n)
2052
+ this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, l)
2018
2053
  );
2019
- this.dom.setStyle(u, "left", `${l}px`), this.dom.setStyle(u, "top", `${d}px`), this.dom.setStyle(u, "width", `${c}px`), this.dom.setStyle(u, "height", `${h}px`);
2054
+ this.dom.setStyle(f, "left", `${r}px`), this.dom.setStyle(f, "top", `${c}px`), this.dom.setStyle(f, "width", `${h}px`), this.dom.setStyle(f, "height", `${d}px`);
2020
2055
  }
2021
2056
  }
2022
2057
  }
2023
- return g;
2058
+ return p;
2024
2059
  }
2025
2060
  /**
2026
2061
  * Renders a cell in the grid.
@@ -2044,31 +2079,31 @@ class Je extends Ye {
2044
2079
  renderCell({
2045
2080
  areaModel: e,
2046
2081
  areaIdent: t,
2047
- sideIdent: o,
2048
- rowIndex: s,
2082
+ sideIdent: s,
2083
+ rowIndex: o,
2049
2084
  columnIndex: i,
2050
- left: r,
2051
- top: n,
2052
- width: l,
2053
- height: d,
2054
- parent: c,
2055
- cellSelected: h,
2056
- lastRowOfModel: g
2085
+ left: a,
2086
+ top: l,
2087
+ width: r,
2088
+ height: c,
2089
+ parent: h,
2090
+ cellSelected: d,
2091
+ lastRowOfModel: p
2057
2092
  }) {
2058
- const [S, b] = this.addAndRenderCellDiv({
2093
+ const [u, g] = this.addAndRenderCellDiv({
2059
2094
  areaModel: e,
2060
2095
  areaIdent: t,
2061
- sideIdent: o,
2062
- rowIndex: s,
2096
+ sideIdent: s,
2097
+ rowIndex: o,
2063
2098
  index: i,
2064
- left: r,
2065
- width: l,
2066
- height: d,
2067
- top: n,
2068
- parent: c,
2069
- lastRowOfModel: g
2099
+ left: a,
2100
+ width: r,
2101
+ height: c,
2102
+ top: l,
2103
+ parent: h,
2104
+ lastRowOfModel: p
2070
2105
  });
2071
- h && this.dom.addClass(`ge-table-${t}-${o}-selected-range`, S), b && this.cleanupFunctions[t].push(b);
2106
+ d && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, u), g && this.cleanupFunctions[t].push(g);
2072
2107
  }
2073
2108
  /**
2074
2109
  * Render the header cell resize handle.
@@ -2084,9 +2119,9 @@ class Je extends Ye {
2084
2119
  *
2085
2120
  * @return {void}
2086
2121
  */
2087
- renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: o, cellTop: s, cellWidth: i, cellHeight: r, parent: n }) {
2088
- const l = this.dom.domService, d = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = l.createElement("div");
2089
- l.setAttribute(c, "data-col-index", `${t}`), l.setAttribute(c, "data-row-index", `${e}`), l.setAttribute(c, "data-area", "header"), l.setAttribute(c, "data-ge-action", "resize-column"), l.addClass(c, "ge-table-column-resize-handle"), l.setStyle(c, "display", "clip"), l.setStyle(c, "position", "absolute"), l.setStyle(c, "cursor", "col-resize"), l.setStyle(c, "left", `${o + i - d}px`), l.setStyle(c, "top", `${s}px`), l.setStyle(c, "width", `${d}px`), l.setStyle(c, "height", `${r}px`), l.appendChild(n, c);
2122
+ renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: a, parent: l }) {
2123
+ const r = this.dom.domService, c = this.tableOptions.columnResizeHandleWidthInPx ?? 2, h = r.createElement("div");
2124
+ r.setAttribute(h, "data-col-index", `${t}`), r.setAttribute(h, "data-row-index", `${e}`), r.setAttribute(h, "data-area", "header"), r.setAttribute(h, "data-ge-action", "resize-column"), r.addClass(h, "ge-table-column-resize-handle"), r.setStyle(h, "display", "clip"), r.setStyle(h, "position", "absolute"), r.setStyle(h, "cursor", "col-resize"), r.setStyle(h, "left", `${s + i - c}px`), r.setStyle(h, "top", `${o}px`), r.setStyle(h, "width", `${c}px`), r.setStyle(h, "height", `${a}px`), r.appendChild(l, h);
2090
2125
  }
2091
2126
  }
2092
2127
  class Qe {
@@ -2094,7 +2129,7 @@ class Qe {
2094
2129
  this.columnIndex = e, this.sortState = t;
2095
2130
  }
2096
2131
  }
2097
- class Ze {
2132
+ class et {
2098
2133
  constructor(e) {
2099
2134
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
2100
2135
  }
@@ -2108,15 +2143,15 @@ class Ze {
2108
2143
  */
2109
2144
  onHostElementChanged(e) {
2110
2145
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
2111
- const t = e.target, o = t.getAttribute("data-area"), s = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
2112
- if (o && s && i) {
2113
- const r = Z(o), n = Number(s), l = Number(i);
2114
- this.tableScope.updateModelValueAfterEdit(r, n, l, t.value);
2146
+ const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
2147
+ if (s && o && i) {
2148
+ const a = Q(s), l = Number(o), r = Number(i);
2149
+ this.tableScope.updateModelValueAfterEdit(a, l, r, t.value);
2115
2150
  }
2116
2151
  }
2117
2152
  }
2118
2153
  }
2119
- class et {
2154
+ class tt {
2120
2155
  constructor(e = -1, t = -1) {
2121
2156
  this.rowIndex = e, this.columnIndex = t;
2122
2157
  }
@@ -2126,34 +2161,34 @@ class te {
2126
2161
  this.cells = e;
2127
2162
  }
2128
2163
  static createSingle(e, t) {
2129
- return new te([new et(e, t)]);
2164
+ return new te([new tt(e, t)]);
2130
2165
  }
2131
2166
  }
2132
- class tt {
2167
+ class st {
2133
2168
  constructor(e) {
2134
- var t, o;
2135
- this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (o = this.tableScope.tableOptions) != null && o.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
2169
+ var t, s;
2170
+ 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);
2136
2171
  }
2137
2172
  onMouseClicked(e, t) {
2138
- var i, r, n, l, d, c, h;
2139
- let o = !1, s = !1;
2173
+ var i, a, l, r, c, h, d;
2174
+ let s = !1, o = !1;
2140
2175
  if (this.getSelectionModel && this.getFocusModel) {
2141
- const g = this.getSelectionModel(), S = this.getFocusModel();
2142
- g && S && (S.hasFocus(e.rowIndex, e.columnIndex) || (S.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(S), o = !0), (i = e.originalEvent) != null && i.shiftKey || g.hasSelection() && (g.clear(), o = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (g.addSelection(this.createRangeByEvents(e, this.previousEvt)), s = !0, o = !0) : (n = e.originalEvent) != null && n.altKey && ((l = e.originalEvent) != null && l.ctrlKey || (d = e.originalEvent) != null && d.metaKey) ? (g.removeSelection(E.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (c = e.originalEvent) != null && c.ctrlKey || (h = e.originalEvent) != null && h.metaKey ? (g.addSelection(E.singleCell(e.rowIndex, e.columnIndex)), s = !0, o = !0) : (g.firstClick(e.rowIndex, e.columnIndex), o = !0), this.tableScope.onSelectionChanged(g));
2176
+ const p = this.getSelectionModel(), u = this.getFocusModel();
2177
+ 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), (a = e.originalEvent) != null && a.shiftKey && this.previousEvt ? (p.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (l = e.originalEvent) != null && l.altKey && ((r = e.originalEvent) != null && r.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));
2143
2178
  }
2144
- return s ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), o;
2179
+ return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
2145
2180
  }
2146
2181
  onActionTriggered(e) {
2147
2182
  if (this.getSelectionModel && this.getFocusModel) {
2148
- const t = this.getSelectionModel(), o = this.getFocusModel();
2149
- if (t && o) {
2183
+ const t = this.getSelectionModel(), s = this.getFocusModel();
2184
+ if (t && s) {
2150
2185
  if (e === "SELECT_ALL")
2151
2186
  return t.selectAll(), this.tableScope.repaint(), !0;
2152
2187
  if (e === "DESELECT_ALL")
2153
2188
  return t.clear(), this.tableScope.repaint(), !0;
2154
2189
  if (e === "TOGGLE_SELECTION") {
2155
- const [s, i] = o.getFocus();
2156
- return t.togglePoint(s, i), this.tableScope.repaint(), !0;
2190
+ const [o, i] = s.getFocus();
2191
+ return t.togglePoint(o, i), this.tableScope.repaint(), !0;
2157
2192
  }
2158
2193
  }
2159
2194
  }
@@ -2161,12 +2196,12 @@ class tt {
2161
2196
  }
2162
2197
  createRangeByEvents(e, t) {
2163
2198
  t || (t = e);
2164
- const o = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), s = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
2199
+ const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), a = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
2165
2200
  return E.create({
2166
- rowIndex1: o,
2201
+ rowIndex1: s,
2167
2202
  columnIndex1: i,
2168
- rowIndex2: s,
2169
- columnIndex2: r
2203
+ rowIndex2: o,
2204
+ columnIndex2: a
2170
2205
  });
2171
2206
  }
2172
2207
  }
@@ -2190,7 +2225,7 @@ class ot {
2190
2225
  };
2191
2226
  }
2192
2227
  }
2193
- class st {
2228
+ class it {
2194
2229
  get() {
2195
2230
  return {
2196
2231
  f2: "START_EDITING",
@@ -2212,7 +2247,7 @@ class st {
2212
2247
  };
2213
2248
  }
2214
2249
  }
2215
- class it {
2250
+ class at {
2216
2251
  constructor(e) {
2217
2252
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
2218
2253
  }
@@ -2233,7 +2268,7 @@ class it {
2233
2268
  this.assignPredefinedSystemShortcutMappings(), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
2234
2269
  }
2235
2270
  assignPredefinedSystemShortcutMappings() {
2236
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new st().get()) : Object.assign(this.shortcutActionIdMapping, new ot().get());
2271
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new it().get()) : Object.assign(this.shortcutActionIdMapping, new ot().get());
2237
2272
  }
2238
2273
  isMacintosh() {
2239
2274
  return navigator.platform.indexOf("Mac") > -1;
@@ -2251,24 +2286,24 @@ class it {
2251
2286
  emit(e) {
2252
2287
  this.isDebug() && console.debug("ShortcutService emit :", e);
2253
2288
  let t = !1;
2254
- for (const o of this.listener)
2255
- o.onActionTriggered(e) && (t = !0);
2289
+ for (const s of this.listener)
2290
+ s.onActionTriggered(e) && (t = !0);
2256
2291
  return t;
2257
2292
  }
2258
2293
  findEntity(e) {
2259
2294
  const t = this.getTokenByEvent(e);
2260
2295
  this.isDebug() && console.debug("ShortcutService tokens :", t);
2261
- for (const o in this.shortcutActionIdMapping) {
2262
- const s = o.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[+ ]/g).sort();
2263
- if (this.areTokensEquals(t, s))
2264
- return this.shortcutActionIdMapping[o];
2296
+ for (const s in this.shortcutActionIdMapping) {
2297
+ const o = s.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[+ ]/g).sort();
2298
+ if (this.areTokensEquals(t, o))
2299
+ return this.shortcutActionIdMapping[s];
2265
2300
  }
2266
2301
  }
2267
2302
  areTokensEquals(e, t) {
2268
2303
  if (e.length !== t.length || e.length === 0)
2269
2304
  return !1;
2270
- for (let o = 0; o < e.length; o++)
2271
- if (e[o] !== t[o])
2305
+ for (let s = 0; s < e.length; s++)
2306
+ if (e[s] !== t[s])
2272
2307
  return !1;
2273
2308
  return !0;
2274
2309
  }
@@ -2285,7 +2320,7 @@ class it {
2285
2320
  return this.shortcutActionIdMapping;
2286
2321
  }
2287
2322
  }
2288
- class le {
2323
+ class re {
2289
2324
  onCheckboxChanged(e) {
2290
2325
  }
2291
2326
  onContextmenu(e) {
@@ -2305,19 +2340,19 @@ class le {
2305
2340
  onFocusChanged(e) {
2306
2341
  }
2307
2342
  }
2308
- class be {
2309
- setStyle(e, t, o) {
2310
- return e.style[t] = o, e;
2343
+ class ue {
2344
+ setStyle(e, t, s) {
2345
+ return e.style[t] = s, e;
2311
2346
  }
2312
2347
  appendText(e, t) {
2313
- const o = this.createText(t);
2314
- return this.appendChild(e, o), o;
2348
+ const s = this.createText(t);
2349
+ return this.appendChild(e, s), s;
2315
2350
  }
2316
2351
  addClass(e, t) {
2317
- return t.includes(" ") ? t.split(" ").forEach((o) => e.classList.add(o)) : e.classList.add(t), e;
2352
+ return t.includes(" ") ? t.split(" ").forEach((s) => e.classList.add(s)) : e.classList.add(t), e;
2318
2353
  }
2319
2354
  removeClass(e, t) {
2320
- return t.includes(" ") ? t.split(" ").forEach((o) => e.classList.remove(o)) : e.classList.remove(t), e;
2355
+ return t.includes(" ") ? t.split(" ").forEach((s) => e.classList.remove(s)) : e.classList.remove(t), e;
2321
2356
  }
2322
2357
  appendChild(e, t) {
2323
2358
  e.appendChild(t);
@@ -2328,25 +2363,25 @@ class be {
2328
2363
  createText(e) {
2329
2364
  return document.createTextNode(e);
2330
2365
  }
2331
- setAttribute(e, t, o) {
2332
- e.setAttribute(t, o);
2366
+ setAttribute(e, t, s) {
2367
+ e.setAttribute(t, s);
2333
2368
  }
2334
2369
  }
2335
2370
  class rt {
2336
- render(e, t, o, s, i, r, n) {
2337
- if (i.isEditable(t, o)) {
2338
- n.addClass(e, "ge-table-row-input-div");
2339
- const l = i.getValueAt(t, o);
2371
+ render(e, t, s, o, i, a, l) {
2372
+ if (i.isEditable(t, s)) {
2373
+ l.addClass(e, "ge-table-row-input-div");
2374
+ const r = i.getValueAt(t, s);
2340
2375
  e.innerHTML = `
2341
2376
  <input
2342
2377
  type="text"
2343
- value="${l}"
2378
+ value="${r}"
2344
2379
  autofocus
2345
2380
  onfocus="this.setSelectionRange(0, this.value.length)"
2346
2381
  data-listen="change"
2347
- data-area="${s}"
2382
+ data-area="${o}"
2348
2383
  data-row-index="${t}"
2349
- data-col-index="${o}"
2384
+ data-col-index="${s}"
2350
2385
  data-input-type="text"
2351
2386
  style="width:calc(100% - 8px);height:100%;border:0;padding:0 0 0 8px;"
2352
2387
  class="ge-table-cell-editor-input">`;
@@ -2375,14 +2410,14 @@ class lt {
2375
2410
  this.selectionType === "row" ? this.addRange(E.singleRow(e)) : this.selectionType === "column" && this.addRange(E.singleColumn(t));
2376
2411
  }
2377
2412
  getSelectionCount(e, t) {
2378
- let o = 0;
2379
- for (const s of this.ranges)
2380
- s.isInRange(e, t) && o++;
2381
- return this.allSelected && o++, this.isInNegativeRange(e, t) && (o = 0), o;
2413
+ let s = 0;
2414
+ for (const o of this.ranges)
2415
+ o.isInRange(e, t) && s++;
2416
+ return this.allSelected && s++, this.isInNegativeRange(e, t) && (s = 0), s;
2382
2417
  }
2383
2418
  isInNegativeRange(e, t) {
2384
- for (const o of this.negativeRanges)
2385
- if (o.isInRange(e, t))
2419
+ for (const s of this.negativeRanges)
2420
+ if (s.isInRange(e, t))
2386
2421
  return !0;
2387
2422
  return !1;
2388
2423
  }
@@ -2406,8 +2441,8 @@ class lt {
2406
2441
  getMergedRowIndices() {
2407
2442
  const e = /* @__PURE__ */ new Set();
2408
2443
  for (const t of this.ranges)
2409
- for (let o = t.r1; o <= t.r2; o++)
2410
- !e.has(o) && !this.isInNegativeRange(o, 0) && e.add(o);
2444
+ for (let s = t.r1; s <= t.r2; s++)
2445
+ !e.has(s) && !this.isInNegativeRange(s, 0) && e.add(s);
2411
2446
  return Array.from(e);
2412
2447
  }
2413
2448
  selectAll() {
@@ -2435,7 +2470,7 @@ class lt {
2435
2470
  this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e), this.fireChangeEvent());
2436
2471
  }
2437
2472
  }
2438
- class at {
2473
+ class nt {
2439
2474
  constructor(e = "none") {
2440
2475
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2441
2476
  }
@@ -2472,7 +2507,7 @@ class at {
2472
2507
  return [this.rowIndex, this.columnIndex];
2473
2508
  }
2474
2509
  }
2475
- class fe {
2510
+ class me {
2476
2511
  constructor(e = new D(
2477
2512
  "❯",
2478
2513
  "",
@@ -2486,17 +2521,17 @@ class fe {
2486
2521
  }
2487
2522
  // `⊖ `, `⊕ `;
2488
2523
  }
2489
- const nt = new lt(), dt = new at("cell");
2490
- class Se {
2524
+ const ct = new lt(), dt = new nt("cell");
2525
+ class be {
2491
2526
  constructor() {
2492
2527
  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 = {
2493
2528
  header: 34,
2494
2529
  body: 34,
2495
2530
  footer: 34
2496
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new pe(), this.headerGroupOptions = new fe(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new ue(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new rt(), this.getSelectionModel = () => nt, this.getFocusModel = () => dt;
2531
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new ge(), this.headerGroupOptions = new me(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new fe(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new rt(), this.getSelectionModel = () => ct, this.getFocusModel = () => dt;
2497
2532
  }
2498
2533
  }
2499
- const F = class F {
2534
+ const L = class L {
2500
2535
  /**
2501
2536
  * Returns the content to be copied based on the provided table model, selection model, and focus model.
2502
2537
  *
@@ -2506,27 +2541,27 @@ const F = class F {
2506
2541
  * @return {Promise<string>} A promise that resolves to the copied content as a string.
2507
2542
  * @throws {string} Throws an error if neither selection nor focus is defined.
2508
2543
  */
2509
- createContent(e, t, o) {
2510
- return new Promise((s, i) => {
2544
+ createContent(e, t, s) {
2545
+ return new Promise((o, i) => {
2511
2546
  if (t != null && t.hasSelection()) {
2512
- const r = this.mergeRanges(t.getRanges());
2513
- if (r) {
2514
- r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
2515
- const n = [];
2516
- for (let l = r.r1; l <= r.r2; l++) {
2517
- const d = [];
2518
- for (let c = r.c1; c <= r.c2; c++) {
2519
- const h = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
2520
- d.push(h);
2547
+ const a = this.mergeRanges(t.getRanges());
2548
+ if (a) {
2549
+ a.c2 = Math.min(a.c2, e.getColumnCount() - 1), a.r2 = Math.min(a.r2, e.getBodyModel().getRowCount() - 1);
2550
+ const l = [];
2551
+ for (let r = a.r1; r <= a.r2; r++) {
2552
+ const c = [];
2553
+ for (let h = a.c1; h <= a.c2; h++) {
2554
+ const d = t.isSelected(r, h) ? e.getBodyModel().getTextValueAt(r, h) : "";
2555
+ c.push(d);
2521
2556
  }
2522
- n.push(d.join(F.columnSeparatorChar));
2557
+ l.push(c.join(L.columnSeparatorChar));
2523
2558
  }
2524
- return s(n.join(F.rowSeparatorChar));
2559
+ return o(l.join(L.rowSeparatorChar));
2525
2560
  }
2526
2561
  }
2527
- if (o) {
2528
- const [r, n] = o.getFocus(), l = e.getBodyModel().getTextValueAt(r, n);
2529
- return s(l);
2562
+ if (s) {
2563
+ const [a, l] = s.getFocus(), r = e.getBodyModel().getTextValueAt(a, l);
2564
+ return o(r);
2530
2565
  }
2531
2566
  i("Cannot copy, neither selection nor focus defined.");
2532
2567
  });
@@ -2548,19 +2583,19 @@ const F = class F {
2548
2583
  * @param {FocusModelIf} focusModel - The focus model of the table.
2549
2584
  * @returns {Promise<string>} A promise that resolves with the copied text if successful, or rejects if an error occurs.
2550
2585
  */
2551
- copyToClipboard(e, t, o) {
2552
- return new Promise((s, i) => {
2586
+ copyToClipboard(e, t, s) {
2587
+ return new Promise((o, i) => {
2553
2588
  this.createContent(
2554
2589
  e,
2555
2590
  t,
2556
- o
2557
- ).then((r) => {
2558
- r && this.copyContent(r).then((n) => {
2559
- s(r);
2560
- }).catch((n) => {
2591
+ s
2592
+ ).then((a) => {
2593
+ a && this.copyContent(a).then((l) => {
2594
+ o(a);
2595
+ }).catch((l) => {
2561
2596
  i();
2562
2597
  });
2563
- }).catch((r) => {
2598
+ }).catch((a) => {
2564
2599
  i();
2565
2600
  });
2566
2601
  });
@@ -2573,26 +2608,141 @@ const F = class F {
2573
2608
  */
2574
2609
  mergeRanges(e) {
2575
2610
  let t;
2576
- for (const o of e)
2577
- t ? (t.r1 = Math.min(t.r1, o.r1), t.c1 = Math.min(t.c1, o.c1), t.r2 = Math.max(t.r2, o.r2), t.c2 = Math.max(t.c2, o.c2)) : t = new E(o.r1, o.c1, o.r2, o.c2);
2611
+ for (const s of e)
2612
+ t ? (t.r1 = Math.min(t.r1, s.r1), t.c1 = Math.min(t.c1, s.c1), t.r2 = Math.max(t.r2, s.r2), t.c2 = Math.max(t.c2, s.c2)) : t = new E(s.r1, s.c1, s.r2, s.c2);
2578
2613
  return t;
2579
2614
  }
2580
2615
  };
2581
- F.columnSeparatorChar = " ", F.rowSeparatorChar = `
2616
+ L.columnSeparatorChar = " ", L.rowSeparatorChar = `
2582
2617
  `;
2583
- let W = F;
2584
- class oe extends Je {
2585
- constructor(e, t, o, s, i, r = new W()) {
2586
- var d;
2587
- if (super(e, t, new He(o), s), this.eventListener = i, this.copyService = r, this.licenseManager = k.getInstance(), this.selectionService = new tt(this), this.api = new ze(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, i || (this.eventListener = new le()), (d = this.tableOptions) != null && d.autoRestoreOptions) {
2588
- const c = this.tableOptions.autoRestoreOptions, h = c.getStorageKeyFn;
2589
- h && (c.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Ne(h)), c.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new Xe(h)), c.autoRestoreSortingState && (this.storeSortingService = new Ke(h)));
2618
+ let _ = L;
2619
+ class ht {
2620
+ constructor(e, t = 500) {
2621
+ this.tableScope = e, this.debounceDelay = t, new ResizeObserver(We(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
2622
+ }
2623
+ handleResize(e) {
2624
+ const t = e[0], { width: s } = t.contentRect;
2625
+ this.tableScope.recalcColumnWidths(s);
2626
+ }
2627
+ }
2628
+ class pt {
2629
+ /**
2630
+ * Downloads a matrix data as an Excel file.
2631
+ *
2632
+ * @param {Array<Array<any>>} matrix - A 2D array representing the data to be included in the Excel file. Each inner array corresponds to a row in the sheet.
2633
+ * @param {string} [filename='file.xlsx'] - The name of the Excel file to be downloaded. Defaults to 'file.xlsx'.
2634
+ * @param {string} [author=''] - The author's name to include as metadata in the Excel file. Optional parameter.
2635
+ * @return {void} Does not return a value.
2636
+ * @throws {Error} Throws an error if the input matrix is not a valid 2D array or if the filename is an empty string.
2637
+ */
2638
+ downloadExcel(e, t = "file.xlsx", s = "") {
2639
+ if (!Array.isArray(e) || e.some((o) => !Array.isArray(o)))
2640
+ throw new Error("Invalid matrix format. Expected a 2D array.");
2641
+ if ((t == null ? void 0 : t.trim()) === "")
2642
+ throw new Error("Invalid filename. Filename must be a non-empty string.");
2643
+ try {
2644
+ const o = this.generateBuffer(e, s), i = new Blob([o], {
2645
+ type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
2646
+ }), a = document.createElement("a");
2647
+ a.href = URL.createObjectURL(i), a.download = t, document.body.appendChild(a), a.click(), document.body.removeChild(a);
2648
+ } catch (o) {
2649
+ throw console.error("Error generating Excel file:", o), new Error("Failed to download Excel file.");
2590
2650
  }
2591
- this.mouseHandler = new Ve(this), this.inputHandler = new Ze(this), this.shortcutService = new it(this), this.shortcutService.addListener(this.selectionService);
2592
- const n = this.getSelectionModel ? this.getSelectionModel() : void 0;
2593
- n && n.addEventSelectionChangedListener(this);
2594
- const l = this.getFocusModel ? this.getFocusModel() : void 0;
2595
- l && l.addEventFocusChangedListener(this);
2651
+ }
2652
+ generateMap(e, t = "") {
2653
+ const s = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2654
+ <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"?>
2655
+ <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"?>
2656
+ <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>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2657
+ <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`, l = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2658
+ <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>`, r = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2659
+ <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"?>
2660
+ <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"?>
2661
+ <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"?>
2662
+ <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();
2663
+ 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", a), p.set("xl/theme/theme1.xml", l), p.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), p.set("xl/sharedStrings.xml", r), p.set("xl/styles.xml", c), p.set("xl/workbook.xml", h), p.set("[Content_Types].xml", d), p;
2664
+ }
2665
+ getX1WorksheetsSheet1Xml(e) {
2666
+ const t = [];
2667
+ t.push(`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2668
+ <worksheet 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="x14ac xr xr2 xr3" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2" xmlns:xr3="http://schemas.microsoft.com/office/spreadsheetml/2016/revision3" xr:uid="{E15F8FC4-4D40-434C-921A-3D9CFAAA2865}">
2669
+ <dimension ref="A1:B3"/>
2670
+ <sheetViews>
2671
+ <sheetView tabSelected="1" workbookViewId="0"/></sheetViews>
2672
+ <sheetFormatPr baseColWidth="10" defaultRowHeight="16" x14ac:dyDescent="0.2"/>
2673
+ <sheetData>`);
2674
+ for (let s = 0; s < e.length; s++) {
2675
+ const o = e[s];
2676
+ t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
2677
+ for (let i = 0; i < o.length; i++) {
2678
+ const a = o[i], l = this.getCellAddress(s, i);
2679
+ if (typeof a == "number")
2680
+ t.push(`<c r="${l}"><v>${a}</v></c>`);
2681
+ else if (a instanceof Date) {
2682
+ const r = a;
2683
+ t.push(`<c r="${l}" t="inlineStr"><is><t>${r.toISOString()}</t></is></c>`);
2684
+ } else {
2685
+ const r = a != null ? this.escapeXml(String(a)) : "";
2686
+ t.push(`<c r="${l}" t="inlineStr"><is><t>${r}</t></is></c>`);
2687
+ }
2688
+ }
2689
+ t.push("</row>");
2690
+ }
2691
+ return t.push(""), t.push(""), t.push('</sheetData><pageMargins left="0.7" right="0.7" top="0.75" bottom="0.75" header="0.3" footer="0.3"/>'), t.push("</worksheet>"), t.join(`
2692
+ `);
2693
+ }
2694
+ escapeXml(e) {
2695
+ return e == null ? "" : String(e).replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&apos;");
2696
+ }
2697
+ getCellAddress(e, t) {
2698
+ const s = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
2699
+ let o = "";
2700
+ for (; t >= 0; )
2701
+ o = s[t % 26] + o, t = Math.floor(t / 26) - 1;
2702
+ return `${o}${e + 1}`;
2703
+ }
2704
+ createZip(e) {
2705
+ const t = [];
2706
+ let s = 0;
2707
+ const o = [];
2708
+ e.forEach((d, p) => {
2709
+ const u = new TextEncoder().encode(p), g = new TextEncoder().encode(d), b = new Uint8Array(30 + u.length), f = new DataView(b.buffer);
2710
+ b.set([80, 75, 3, 4], 0), f.setUint16(4, 20, !0), f.setUint16(6, 0, !0), f.setUint16(8, 0, !0), f.setUint16(10, 0, !0), f.setUint16(12, 0, !0), f.setUint32(14, 0, !0), f.setUint32(18, g.length, !0), f.setUint32(22, g.length, !0), f.setUint16(26, u.length, !0), f.setUint16(28, 0, !0), b.set(u, 30), t.push(b, g), o.push({
2711
+ path: p,
2712
+ offset: s,
2713
+ contentSize: g.length
2714
+ }), s += b.length + g.length;
2715
+ });
2716
+ const i = s;
2717
+ o.forEach((d) => {
2718
+ const p = new TextEncoder().encode(d.path), u = new Uint8Array(46 + p.length), g = new DataView(u.buffer);
2719
+ 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;
2720
+ });
2721
+ const a = new Uint8Array(22), l = new DataView(a.buffer);
2722
+ a.set([80, 75, 5, 6], 0), l.setUint16(4, 0, !0), l.setUint16(6, 0, !0), l.setUint16(8, o.length, !0), l.setUint16(10, o.length, !0), l.setUint32(12, s - i, !0), l.setUint32(16, i, !0), l.setUint16(20, 0, !0), t.push(a);
2723
+ const r = t.reduce((d, p) => d + p.length, 0), c = new Uint8Array(r);
2724
+ let h = 0;
2725
+ for (const d of t)
2726
+ c.set(d, h), h += d.length;
2727
+ return c;
2728
+ }
2729
+ generateBuffer(e, t = "") {
2730
+ const s = this.generateMap(e, t);
2731
+ return this.createZip(s);
2732
+ }
2733
+ }
2734
+ class se extends Ze {
2735
+ constructor(e, t, s, o, i, a = new _(), l = new pt()) {
2736
+ var h;
2737
+ if (super(e, t, new Ve(s), o), this.eventListener = i, this.copyService = a, this.excelService = l, this.licenseManager = k.getInstance(), this.selectionService = new st(this), this.api = new ze(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, i || (this.eventListener = new re()), (h = this.tableOptions) != null && h.autoRestoreOptions) {
2738
+ const d = this.tableOptions.autoRestoreOptions, p = d.getStorageKeyFn;
2739
+ p && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Ue(p)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new Xe(p)), d.autoRestoreSortingState && (this.storeSortingService = new Ke(p)));
2740
+ }
2741
+ this.mouseHandler = new Ne(this), this.inputHandler = new et(this), this.resizeHandler = new ht(this, o.resizeEventDebounceDelay), this.shortcutService = new at(this), this.shortcutService.addListener(this.selectionService);
2742
+ const r = this.getSelectionModel ? this.getSelectionModel() : void 0;
2743
+ r && r.addEventSelectionChangedListener(this);
2744
+ const c = this.getFocusModel ? this.getFocusModel() : void 0;
2745
+ c && c.addEventFocusChangedListener(this);
2596
2746
  }
2597
2747
  /**
2598
2748
  * Creates a TableScope instance.
@@ -2606,8 +2756,8 @@ class oe extends Je {
2606
2756
  *
2607
2757
  * @return {TableScope} - The newly created TableScope instance.
2608
2758
  */
2609
- static create(e, t, o = new Se(), s = new le(), i = new be(), r = new W()) {
2610
- return new oe(e, t, i, o, s, r);
2759
+ static create(e, t, s = new be(), o = new re(), i = new ue(), a = new _()) {
2760
+ return new se(e, t, i, s, o, a);
2611
2761
  }
2612
2762
  /**
2613
2763
  * Triggers an action based on the provided actionId.
@@ -2623,19 +2773,19 @@ class oe extends Je {
2623
2773
  if (e === "START_EDITING" && this.getFocusModel) {
2624
2774
  const t = this.getFocusModel();
2625
2775
  if (t) {
2626
- const [o, s] = t.getFocus();
2627
- this.tableModel.getBodyModel().isEditable(o, s) && (this.clearSelection(), this.initRenderEditor(o, s));
2776
+ const [s, o] = t.getFocus();
2777
+ this.tableModel.getBodyModel().isEditable(s, o) && (this.clearSelection(), this.initRenderEditor(s, o));
2628
2778
  }
2629
2779
  return !0;
2630
2780
  }
2631
2781
  if (e === "COPY_2_CLIPBOARD") {
2632
- const t = this.getSelectionModel ? this.getSelectionModel() : void 0, o = this.getFocusModel ? this.getFocusModel() : void 0;
2633
- this.copyService.createContent(this.tableModel, t, o).then((s) => this.copyService.copyContent(s));
2782
+ const t = this.getSelectionModel ? this.getSelectionModel() : void 0, s = this.getFocusModel ? this.getFocusModel() : void 0;
2783
+ this.copyService.createContent(this.tableModel, t, s).then((o) => this.copyService.copyContent(o));
2634
2784
  }
2635
2785
  return !1;
2636
2786
  }
2637
- updateModelValueAfterEdit(e, t, o, s) {
2638
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, o, s) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(te.createSingle(t, o)), this.hostElement.focus());
2787
+ updateModelValueAfterEdit(e, t, s, o) {
2788
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(te.createSingle(t, s)), this.hostElement.focus());
2639
2789
  }
2640
2790
  /**
2641
2791
  * Retrieves the TableApi object.
@@ -2664,16 +2814,16 @@ class oe extends Je {
2664
2814
  * @return {GeMouseEvent} - The created GeMouseEvent object.
2665
2815
  */
2666
2816
  createGeMouseEvent(e) {
2667
- const t = new Q();
2817
+ const t = new Z();
2668
2818
  if (t.originalEvent = e, e) {
2669
- const o = e.target;
2670
- if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(o), t.rowIndex = this.getNumberByAttr(o, "data-row-index"), t.columnIndex = this.getNumberByAttr(o, "data-col-index"), t.action = this.getStringByAttr(o, "data-ge-action"), t.areaIdent) {
2671
- const s = this.tableModel.getAreaModel(t.areaIdent);
2672
- t.rowTop = s.getYPosByRowIndex(t.rowIndex);
2819
+ const s = e.target;
2820
+ 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) {
2821
+ const o = this.tableModel.getAreaModel(t.areaIdent);
2822
+ t.rowTop = o.getYPosByRowIndex(t.rowIndex);
2673
2823
  }
2674
2824
  if (t.columnLeft = this.tableModel.getXPosByColumnIndex(t.columnIndex), e.ctrlKey && e.altKey) {
2675
- const s = e.clientY - this.hostElement.offsetTop - this.areaHeaderCenter.parent.clientHeight, i = e.clientX - this.hostElement.offsetLeft - this.areaBodyWestGeo.width;
2676
- this.debugOnce(i, s);
2825
+ const o = e.clientY - this.hostElement.offsetTop - this.areaHeaderCenter.parent.clientHeight, i = e.clientX - this.hostElement.offsetLeft - this.areaBodyWestGeo.width;
2826
+ this.debugOnce(i, o);
2677
2827
  }
2678
2828
  }
2679
2829
  return t;
@@ -2732,9 +2882,9 @@ class oe extends Je {
2732
2882
  * @return {void}
2733
2883
  */
2734
2884
  toggleExpandCollapseAll(e = !0) {
2735
- var o;
2885
+ var s;
2736
2886
  const t = this.tableModel.getBodyModel();
2737
- U(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (o = this.storeStateCollapsedExpandService) == null || o.collapsedStateAll(e));
2887
+ J(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
2738
2888
  }
2739
2889
  /**
2740
2890
  * Toggles the checkbox state of a specific row in a table.
@@ -2745,12 +2895,12 @@ class oe extends Je {
2745
2895
  *
2746
2896
  * @return {void} - This method does not return anything.
2747
2897
  */
2748
- toggleRowCheckbox(e, t, o) {
2749
- var l;
2750
- const s = this.tableModel.getAreaModel(o), i = s.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
2751
- s.setRowChecked(e, r), this.repaint();
2752
- const n = (l = s.rowSelectionModel) == null ? void 0 : l.getCheckedRows();
2753
- this.eventListener.onCheckboxChanged(n || []);
2898
+ toggleRowCheckbox(e, t, s) {
2899
+ var r;
2900
+ const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), a = i === void 0 || i === "semi" || i === "none";
2901
+ o.setRowChecked(e, a), this.repaint();
2902
+ const l = (r = o.rowSelectionModel) == null ? void 0 : r.getCheckedRows();
2903
+ this.eventListener.onCheckboxChanged(l || []);
2754
2904
  }
2755
2905
  /**
2756
2906
  * Handle mouse click events.
@@ -2760,13 +2910,13 @@ class oe extends Je {
2760
2910
  * @returns {void}
2761
2911
  */
2762
2912
  onMouseClicked(e, t) {
2763
- let o = this.selectionService.onMouseClicked(e, t);
2764
- if (!o && this.getFocusModel) {
2913
+ let s = this.selectionService.onMouseClicked(e, t);
2914
+ if (!s && this.getFocusModel) {
2765
2915
  this.resetEditorRenderer();
2766
- const s = this.getFocusModel();
2767
- s && (o = s.hasChanged(), s.clearChanged());
2916
+ const o = this.getFocusModel();
2917
+ o && (s = o.hasChanged(), o.clearChanged());
2768
2918
  }
2769
- return o;
2919
+ return s;
2770
2920
  }
2771
2921
  debounceRepaint() {
2772
2922
  this.debounce(this.repaint.bind(this), 1);
@@ -2799,13 +2949,13 @@ class oe extends Je {
2799
2949
  *
2800
2950
  * @return {void}
2801
2951
  */
2802
- onHeaderDblClicked(e, t, o) {
2803
- var i, r;
2804
- const s = this.tableModel.getColumnDef(o);
2805
- if (s != null && s.sortable && s.sortable()) {
2952
+ onHeaderDblClicked(e, t, s) {
2953
+ var i, a;
2954
+ const o = this.tableModel.getColumnDef(s);
2955
+ if (o != null && o.sortable && o.sortable()) {
2806
2956
  e.preventDefault(), e.stopPropagation();
2807
- const n = s.sortStatesOrder ? s.sortStatesOrder : this.tableOptions.sortOrder, l = s.sortState ?? "", d = n[(n.indexOf(l) + 1) % n.length], c = new Qe(o, d);
2808
- this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((g) => g.sortState = ""), s.sortState = d), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
2957
+ const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, r = o.sortState ?? "", c = l[(l.indexOf(r) + 1) % l.length], h = new Qe(s, c);
2958
+ this.tableModel.doSort([h]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((p) => p.sortState = ""), o.sortState = c), this.repaint(), (a = this.storeSortingService) == null || a.setSortItems([h]);
2809
2959
  }
2810
2960
  }
2811
2961
  /**
@@ -2827,8 +2977,8 @@ class oe extends Je {
2827
2977
  * @return {void}
2828
2978
  */
2829
2979
  scrollToIndex(e, t) {
2830
- const s = this.tableModel.getAreaModel("body").getYPosByRowIndex(t);
2831
- this.scrollToPixel(0, s);
2980
+ const o = this.tableModel.getAreaModel("body").getYPosByRowIndex(t);
2981
+ this.scrollToPixel(0, o);
2832
2982
  }
2833
2983
  /**
2834
2984
  * Sets the selection model for the table.
@@ -2839,8 +2989,8 @@ class oe extends Je {
2839
2989
  * @return {void} - This method does not return any value.
2840
2990
  */
2841
2991
  setSelectionModel(e, t = !1) {
2842
- const o = () => e;
2843
- this.tableOptions.getSelectionModel = o, this.getSelectionModel = o, this.selectionService.getSelectionModel = o, t && this.repaint();
2992
+ const s = () => e;
2993
+ this.tableOptions.getSelectionModel = s, this.getSelectionModel = s, this.selectionService.getSelectionModel = s, t && this.repaint();
2844
2994
  }
2845
2995
  toggleHeaderGroup(e) {
2846
2996
  const t = this.tableModel.getAreaModel("header");
@@ -2875,10 +3025,10 @@ class oe extends Je {
2875
3025
  */
2876
3026
  changeFocusCell(e, t) {
2877
3027
  if (!this.isEditing() && this.getFocusModel) {
2878
- const o = this.getFocusModel();
2879
- if (o) {
2880
- const [s, i] = o.getFocus();
2881
- return o.setFocus(s + t, i + e), this.repaint(), !0;
3028
+ const s = this.getFocusModel();
3029
+ if (s) {
3030
+ const [o, i] = s.getFocus();
3031
+ return s.setFocus(o + t, i + e), this.repaint(), !0;
2882
3032
  }
2883
3033
  }
2884
3034
  return !1;
@@ -2901,8 +3051,8 @@ class oe extends Je {
2901
3051
  this.getSelectionModel && ((e = this.getSelectionModel()) == null || e.clear());
2902
3052
  }
2903
3053
  debugOnce(e, t) {
2904
- var o;
2905
- console.clear(), console.info("this.hostElement.offsetTop", this.hostElement.offsetTop), console.info("this.hostElement.scrollHeight", this.hostElement.scrollHeight), console.info("this.scrollViewportTop", this.scrollTop), console.info("this.areaHeaderCenter.parent.clientHeight", this.areaHeaderCenter.parent.clientHeight), console.info("bodyY", t), console.info("bodyX", e), console.info("rows", this.firstVisibleRowIndex), console.info(""), console.info("this.tableModel", this.tableModel), console.info(""), console.info("this.mouseMoveEvent.clientX", (o = this.mouseHandler.mouseEvent) == null ? void 0 : o.clientX), console.info("this.hostElement.offsetLeft", this.hostElement.offsetLeft), console.info("this.areaBodyWestGeo.width", this.areaBodyWestGeo.width);
3054
+ var s;
3055
+ console.clear(), console.info("this.hostElement.offsetTop", this.hostElement.offsetTop), console.info("this.hostElement.scrollHeight", this.hostElement.scrollHeight), console.info("this.scrollViewportTop", this.scrollTop), console.info("this.areaHeaderCenter.parent.clientHeight", this.areaHeaderCenter.parent.clientHeight), console.info("bodyY", t), console.info("bodyX", e), console.info("rows", this.firstVisibleRowIndex), console.info(""), console.info("this.tableModel", this.tableModel), console.info(""), console.info("this.mouseMoveEvent.clientX", (s = this.mouseHandler.mouseEvent) == null ? void 0 : s.clientX), console.info("this.hostElement.offsetLeft", this.hostElement.offsetLeft), console.info("this.areaBodyWestGeo.width", this.areaBodyWestGeo.width);
2906
3056
  }
2907
3057
  /**
2908
3058
  * Restores the scroll position of the table if auto restore options are enabled.
@@ -2913,8 +3063,8 @@ class oe extends Je {
2913
3063
  autoRestoreScrollPosition() {
2914
3064
  var e;
2915
3065
  if ((e = this.tableOptions) != null && e.autoRestoreOptions && this.storeScrollPosStateService && this.tableOptions.autoRestoreOptions.autoRestoreScrollPosition) {
2916
- const o = this.storeScrollPosStateService.getScrollOffset();
2917
- o && this.scrollViewport.scrollTo(...o);
3066
+ const s = this.storeScrollPosStateService.getScrollOffset();
3067
+ s && this.scrollViewport.scrollTo(...s);
2918
3068
  }
2919
3069
  }
2920
3070
  /**
@@ -2934,8 +3084,8 @@ class oe extends Je {
2934
3084
  autoRestoreSortingState() {
2935
3085
  var e, t;
2936
3086
  if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.autoRestoreSortingState && this.storeSortingService) {
2937
- const o = this.storeSortingService.getSortItems();
2938
- o != null && o.length && this.tableModel.getBodyModel().doSort(o);
3087
+ const s = this.storeSortingService.getSortItems();
3088
+ s != null && s.length && this.tableModel.getBodyModel().doSort(s);
2939
3089
  }
2940
3090
  }
2941
3091
  /**
@@ -2947,32 +3097,32 @@ class oe extends Je {
2947
3097
  autoRestoreCollapsedExpandedState() {
2948
3098
  var e, t;
2949
3099
  if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.getRowId && this.storeStateCollapsedExpandService) {
2950
- const o = this.tableOptions.autoRestoreOptions, s = o.getRowId;
2951
- if (o.autoRestoreCollapsedExpandedState && s) {
2952
- const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
2953
- if (U(r)) {
2954
- const n = r, l = r.getRowCount();
2955
- for (let d = 0; d < l; d++) {
2956
- const c = r.getRowByIndex(d);
2957
- if (c)
3100
+ const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
3101
+ if (s.autoRestoreCollapsedExpandedState && o) {
3102
+ const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), a = this.tableModel.getAreaModel("body");
3103
+ if (J(a)) {
3104
+ const l = a, r = a.getRowCount();
3105
+ for (let c = 0; c < r; c++) {
3106
+ const h = a.getRowByIndex(c);
3107
+ if (h)
2958
3108
  if (i.allExpanded)
2959
- c.expanded = !0;
3109
+ h.expanded = !0;
2960
3110
  else if (i.allCollapsed)
2961
- c.expanded = !1;
3111
+ h.expanded = !1;
2962
3112
  else {
2963
- const h = s(c.data);
2964
- i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(h));
3113
+ const d = o(h.data);
3114
+ i.mode === "expanded" ? h.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d) : i.mode === "collapsed" && (h.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d));
2965
3115
  }
2966
3116
  }
2967
- n.recalcVisibleTreeRows();
3117
+ l.recalcVisibleTreeRows();
2968
3118
  }
2969
3119
  }
2970
3120
  }
2971
3121
  }
2972
3122
  }
2973
- const H = class H {
3123
+ const W = class W {
2974
3124
  };
2975
- H.themes = ["light", "combat", "paper", "blackboard"], H.vars = {
3125
+ W.themes = ["light", "combat", "paper", "blackboard"], W.vars = {
2976
3126
  light: `html[data-theme="light"] {
2977
3127
  --ge-table-bg: rgba(255,255,255, 0.5);
2978
3128
  --ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
@@ -3206,140 +3356,140 @@ H.themes = ["light", "combat", "paper", "blackboard"], H.vars = {
3206
3356
  --ge-table-drop-zone-bg: #758129;
3207
3357
  }`
3208
3358
  };
3209
- let ae = H;
3210
- const G = class G {
3211
- constructor(e = new fe()) {
3359
+ let le = W;
3360
+ const V = class V {
3361
+ constructor(e = new me()) {
3212
3362
  this.headerGroupOptions = e;
3213
3363
  }
3214
- render(e, t, o, s, i, r, n) {
3215
- const l = r != null && r.data ? r.data : "";
3216
- if (r) {
3217
- const { toggle: d, visibility: c, closed: h } = r, g = d ? G.toggleHeaderGroup : "";
3218
- this.addText(e, s, t, o, l, g), d && c !== "always" && this.addArrowDiv(n, e, !h, t, o, s, g);
3364
+ render(e, t, s, o, i, a, l) {
3365
+ const r = a != null && a.data ? a.data : "";
3366
+ if (a) {
3367
+ const { toggle: c, visibility: h, closed: d } = a, p = c ? V.toggleHeaderGroup : "";
3368
+ this.addText(e, o, t, s, r, p), c && h !== "always" && this.addArrowDiv(l, e, !d, t, s, o, p);
3219
3369
  } else
3220
- this.addText(e, s, t, o, l, "");
3370
+ this.addText(e, o, t, s, r, "");
3221
3371
  }
3222
- addText(e, t, o, s, i, r) {
3372
+ addText(e, t, s, o, i, a) {
3223
3373
  e.innerHTML = `<span
3224
- data-ge-action="${r}"
3374
+ data-ge-action="${a}"
3225
3375
  data-area="${t}"
3226
- data-row-index="${o}"
3227
- data-col-index="${s}"
3376
+ data-row-index="${s}"
3377
+ data-col-index="${o}"
3228
3378
  >${i}</span>`;
3229
3379
  }
3230
- addArrowDiv(e, t, o = !0, s = -1, i = -1, r = "header", n) {
3231
- const l = e.createElement("div");
3232
- 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", `${s}`), e.setAttribute(l, "data-col-index", `${i}`), e.setAttribute(l, "data-area", `${r}`), e.setAttribute(l, "data-ge-action", `${n}`);
3233
- let d;
3234
- o ? d = this.headerGroupOptions.iconExpanded : d = this.headerGroupOptions.iconCollapsed;
3235
- const c = d.content, h = e.createText(c);
3236
- e.appendChild(l, h), d.style && this.applyStyleString(e, l, d.style);
3237
- for (const g of d.classes)
3238
- e.addClass(l, g);
3239
- return e.appendChild(t, l), l;
3240
- }
3241
- applyStyleString(e, t, o) {
3242
- const s = o.split(";").map((i) => i.trim()).filter((i) => i);
3243
- for (const i of s) {
3244
- const [r, n] = i.split(":");
3245
- e.setStyle(t, r.trim(), n.trim());
3380
+ addArrowDiv(e, t, s = !0, o = -1, i = -1, a = "header", l) {
3381
+ const r = e.createElement("div");
3382
+ e.addClass(r, "ge-table-toggle-icon-div"), e.setStyle(r, "display", "inline-block"), e.setStyle(r, "position", ""), e.setStyle(r, "width", "20px"), e.setStyle(r, "background", "transparent"), e.setStyle(r, "cursor", "pointer"), e.setAttribute(r, "data-row-index", `${o}`), e.setAttribute(r, "data-col-index", `${i}`), e.setAttribute(r, "data-area", `${a}`), e.setAttribute(r, "data-ge-action", `${l}`);
3383
+ let c;
3384
+ s ? c = this.headerGroupOptions.iconExpanded : c = this.headerGroupOptions.iconCollapsed;
3385
+ const h = c.content, d = e.createText(h);
3386
+ e.appendChild(r, d), c.style && this.applyStyleString(e, r, c.style);
3387
+ for (const p of c.classes)
3388
+ e.addClass(r, p);
3389
+ return e.appendChild(t, r), r;
3390
+ }
3391
+ applyStyleString(e, t, s) {
3392
+ const o = s.split(";").map((i) => i.trim()).filter((i) => i);
3393
+ for (const i of o) {
3394
+ const [a, l] = i.split(":");
3395
+ e.setStyle(t, a.trim(), l.trim());
3246
3396
  }
3247
3397
  }
3248
3398
  };
3249
- G.toggleHeaderGroup = "toggleHeaderGroup";
3250
- let ne = G;
3251
- function ct(a) {
3399
+ V.toggleHeaderGroup = "toggleHeaderGroup";
3400
+ let ne = V;
3401
+ function gt(n) {
3252
3402
  let e;
3253
3403
  return {
3254
3404
  c() {
3255
- e = Ae("div"), Me(e, "class", "ge-table"), _(e, "width", "100%"), _(e, "height", "100%"), _(e, "background-color", "transparent"), _(e, "padding", "0"), _(e, "margin", "0");
3405
+ e = Ae("div"), Me(e, "class", "ge-table"), P(e, "width", "100%"), P(e, "height", "100%"), P(e, "background-color", "transparent"), P(e, "padding", "0"), P(e, "margin", "0");
3256
3406
  },
3257
- m(t, o) {
3258
- Ee(t, e, o), a[4](e);
3407
+ m(t, s) {
3408
+ Ee(t, e, s), n[4](e);
3259
3409
  },
3260
- p: L,
3261
- i: L,
3262
- o: L,
3410
+ p: O,
3411
+ i: O,
3412
+ o: O,
3263
3413
  d(t) {
3264
- t && he(e), a[4](null);
3414
+ t && he(e), n[4](null);
3265
3415
  }
3266
3416
  };
3267
3417
  }
3268
- function ht(a, e, t) {
3269
- let { tableModel: o } = e, { tableOptions: s = new Se() } = e, { licenseKey: i } = e, r;
3270
- const n = ve();
3271
- we(() => {
3272
- const d = {
3273
- onSelectionChanged(h) {
3274
- n("selectionChanged", h);
3418
+ function ft(n, e, t) {
3419
+ let { tableModel: s } = e, { tableOptions: o = new be() } = e, { licenseKey: i } = e, a;
3420
+ const l = xe();
3421
+ ve(() => {
3422
+ const c = {
3423
+ onSelectionChanged(d) {
3424
+ l("selectionChanged", d);
3275
3425
  },
3276
- onFocusChanged(h) {
3277
- n("focusChanged", h);
3426
+ onFocusChanged(d) {
3427
+ l("focusChanged", d);
3278
3428
  },
3279
- onCheckboxChanged: (h) => {
3280
- n("checkboxChanged", h);
3429
+ onCheckboxChanged: (d) => {
3430
+ l("checkboxChanged", d);
3281
3431
  },
3282
- onContextmenu: (h) => {
3283
- n("contextmenu", h);
3432
+ onContextmenu: (d) => {
3433
+ l("contextmenu", d);
3284
3434
  },
3285
- onModelChanged: (h) => {
3286
- n("modelChanged", h);
3435
+ onModelChanged: (d) => {
3436
+ l("modelChanged", d);
3287
3437
  },
3288
- onMouseClicked: (h) => {
3289
- n("mouseClicked", h);
3438
+ onMouseClicked: (d) => {
3439
+ l("mouseClicked", d);
3290
3440
  },
3291
- onMouseDragging: (h) => {
3292
- n("mouseDragging", h);
3441
+ onMouseDragging: (d) => {
3442
+ l("mouseDragging", d);
3293
3443
  },
3294
- onMouseDraggingEnd: (h) => {
3295
- n("mouseDraggingEnd", h);
3444
+ onMouseDraggingEnd: (d) => {
3445
+ l("mouseDraggingEnd", d);
3296
3446
  },
3297
- onMouseMoved: (h) => {
3298
- n("mouseMoved", h);
3447
+ onMouseMoved: (d) => {
3448
+ l("mouseMoved", d);
3299
3449
  }
3300
- }, c = new oe(r, o, new be(), s, d);
3301
- c.firstInit(), n("tableReady", c.getApi()), i && k.getInstance().setLicenseKey(i);
3450
+ }, h = new se(a, s, new ue(), o, c);
3451
+ h.firstInit(), l("tableReady", h.getApi()), i && k.getInstance().setLicenseKey(i);
3302
3452
  });
3303
- function l(d) {
3304
- X[d ? "unshift" : "push"](() => {
3305
- r = d, t(0, r);
3453
+ function r(c) {
3454
+ j[c ? "unshift" : "push"](() => {
3455
+ a = c, t(0, a);
3306
3456
  });
3307
3457
  }
3308
- return a.$$set = (d) => {
3309
- "tableModel" in d && t(1, o = d.tableModel), "tableOptions" in d && t(2, s = d.tableOptions), "licenseKey" in d && t(3, i = d.licenseKey);
3310
- }, [r, o, s, i, l];
3458
+ return n.$$set = (c) => {
3459
+ "tableModel" in c && t(1, s = c.tableModel), "tableOptions" in c && t(2, o = c.tableOptions), "licenseKey" in c && t(3, i = c.licenseKey);
3460
+ }, [a, s, o, i, r];
3311
3461
  }
3312
- class ut extends Pe {
3462
+ class bt extends He {
3313
3463
  constructor(e) {
3314
- super(), Be(this, e, ht, ct, Ce, {
3464
+ super(), $e(this, e, ft, gt, Ce, {
3315
3465
  tableModel: 1,
3316
3466
  tableOptions: 2,
3317
3467
  licenseKey: 3
3318
3468
  });
3319
3469
  }
3320
3470
  }
3321
- class bt {
3471
+ class St {
3322
3472
  constructor(e) {
3323
3473
  this.Component = e;
3324
3474
  }
3325
- render(e, t, o, s, i, r, n) {
3326
- const l = new this.Component({
3475
+ render(e, t, s, o, i, a, l) {
3476
+ const r = new this.Component({
3327
3477
  target: e,
3328
3478
  props: {
3329
3479
  cellDiv: e,
3330
3480
  rowIndex: t,
3331
- columnIndex: o,
3332
- areaIdent: s,
3481
+ columnIndex: s,
3482
+ areaIdent: o,
3333
3483
  areaModel: i,
3334
- cellValue: r
3484
+ cellValue: a
3335
3485
  }
3336
3486
  });
3337
3487
  return () => {
3338
- l.$destroy();
3488
+ r.$destroy();
3339
3489
  };
3340
3490
  }
3341
3491
  }
3342
3492
  export {
3343
- bt as ComponentRendererWrapper,
3344
- ut as GuiexpertTable
3493
+ St as ComponentRendererWrapper,
3494
+ bt as GuiexpertTable
3345
3495
  };