@guiexpert/svelte-table 1.0.7 → 1.0.8

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 +7 -7
  2. package/index.js +471 -439
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -4,16 +4,16 @@ var k = (l, e, t) => (ce(l, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { createEventDispatcher as pe, onMount as ue } from "svelte";
5
5
  function F() {
6
6
  }
7
- function ie(l) {
7
+ function se(l) {
8
8
  return l();
9
9
  }
10
10
  function Z() {
11
11
  return /* @__PURE__ */ Object.create(null);
12
12
  }
13
13
  function W(l) {
14
- l.forEach(ie);
14
+ l.forEach(se);
15
15
  }
16
- function se(l) {
16
+ function ie(l) {
17
17
  return typeof l == "function";
18
18
  }
19
19
  function Se(l, e) {
@@ -37,12 +37,12 @@ function be(l, e, t) {
37
37
  function ye(l) {
38
38
  return Array.from(l.childNodes);
39
39
  }
40
- function L(l, e, t, i) {
41
- t == null ? l.style.removeProperty(e) : l.style.setProperty(e, t, i ? "important" : "");
40
+ function L(l, e, t, s) {
41
+ t == null ? l.style.removeProperty(e) : l.style.setProperty(e, t, s ? "important" : "");
42
42
  }
43
- let X;
43
+ let z;
44
44
  function _(l) {
45
- X = l;
45
+ z = l;
46
46
  }
47
47
  const $ = [], V = [];
48
48
  let O = [];
@@ -59,12 +59,12 @@ let I = 0;
59
59
  function le() {
60
60
  if (I !== 0)
61
61
  return;
62
- const l = X;
62
+ const l = z;
63
63
  do {
64
64
  try {
65
65
  for (; I < $.length; ) {
66
66
  const e = $[I];
67
- I++, _(e), we(e.$$);
67
+ I++, _(e), Ce(e.$$);
68
68
  }
69
69
  } catch (e) {
70
70
  throw $.length = 0, I = 0, e;
@@ -81,37 +81,37 @@ function le() {
81
81
  ee.pop()();
82
82
  G = !1, P.clear(), _(l);
83
83
  }
84
- function we(l) {
84
+ function Ce(l) {
85
85
  if (l.fragment !== null) {
86
86
  l.update(), W(l.before_update);
87
87
  const e = l.dirty;
88
88
  l.dirty = [-1], l.fragment && l.fragment.p(l.ctx, e), l.after_update.forEach(N);
89
89
  }
90
90
  }
91
- function Ce(l) {
91
+ function we(l) {
92
92
  const e = [], t = [];
93
- O.forEach((i) => l.indexOf(i) === -1 ? e.push(i) : t.push(i)), t.forEach((i) => i()), O = e;
93
+ O.forEach((s) => l.indexOf(s) === -1 ? e.push(s) : t.push(s)), t.forEach((s) => s()), O = e;
94
94
  }
95
95
  const Ee = /* @__PURE__ */ new Set();
96
96
  function Ae(l, e) {
97
97
  l && l.i && (Ee.delete(l), l.i(e));
98
98
  }
99
99
  function Me(l, e, t) {
100
- const { fragment: i, after_update: s } = l.$$;
101
- i && i.m(e, t), N(() => {
102
- const o = l.$$.on_mount.map(ie).filter(se);
100
+ const { fragment: s, after_update: i } = l.$$;
101
+ s && s.m(e, t), N(() => {
102
+ const o = l.$$.on_mount.map(se).filter(ie);
103
103
  l.$$.on_destroy ? l.$$.on_destroy.push(...o) : W(o), l.$$.on_mount = [];
104
- }), s.forEach(N);
104
+ }), i.forEach(N);
105
105
  }
106
106
  function Re(l, e) {
107
107
  const t = l.$$;
108
- t.fragment !== null && (Ce(t.after_update), W(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
108
+ t.fragment !== null && (we(t.after_update), W(t.on_destroy), t.fragment && t.fragment.d(e), t.on_destroy = t.fragment = null, t.ctx = []);
109
109
  }
110
110
  function Te(l, e) {
111
111
  l.$$.dirty[0] === -1 && ($.push(l), xe(), l.$$.dirty.fill(0)), l.$$.dirty[e / 31 | 0] |= 1 << e % 31;
112
112
  }
113
- function De(l, e, t, i, s, o, n = null, a = [-1]) {
114
- const r = X;
113
+ function De(l, e, t, s, i, o, n = null, a = [-1]) {
114
+ const r = z;
115
115
  _(l);
116
116
  const d = l.$$ = {
117
117
  fragment: null,
@@ -119,7 +119,7 @@ function De(l, e, t, i, s, o, n = null, a = [-1]) {
119
119
  // state
120
120
  props: o,
121
121
  update: F,
122
- not_equal: s,
122
+ not_equal: i,
123
123
  bound: Z(),
124
124
  // lifecycle
125
125
  on_mount: [],
@@ -136,10 +136,10 @@ function De(l, e, t, i, s, o, n = null, a = [-1]) {
136
136
  };
137
137
  n && n(d.root);
138
138
  let h = !1;
139
- if (d.ctx = t ? t(l, e.props || {}, (p, g, ...f) => {
140
- const c = f.length ? f[0] : g;
141
- return d.ctx && s(d.ctx[p], d.ctx[p] = c) && (!d.skip_bound && d.bound[p] && d.bound[p](c), h && Te(l, p)), g;
142
- }) : [], d.update(), h = !0, W(d.before_update), d.fragment = i ? i(d.ctx) : !1, e.target) {
139
+ if (d.ctx = t ? t(l, e.props || {}, (p, S, ...f) => {
140
+ const c = f.length ? f[0] : S;
141
+ return d.ctx && i(d.ctx[p], d.ctx[p] = c) && (!d.skip_bound && d.bound[p] && d.bound[p](c), h && Te(l, p)), S;
142
+ }) : [], d.update(), h = !0, W(d.before_update), d.fragment = s ? s(d.ctx) : !1, e.target) {
143
143
  if (e.hydrate) {
144
144
  const p = ye(e.target);
145
145
  d.fragment && d.fragment.l(p), p.forEach(oe);
@@ -179,12 +179,12 @@ class Ie {
179
179
  * @returns {() => void}
180
180
  */
181
181
  $on(e, t) {
182
- if (!se(t))
182
+ if (!ie(t))
183
183
  return F;
184
- const i = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
185
- return i.push(t), () => {
186
- const s = i.indexOf(t);
187
- s !== -1 && i.splice(s, 1);
184
+ const s = this.$$.callbacks[e] || (this.$$.callbacks[e] = []);
185
+ return s.push(t), () => {
186
+ const i = s.indexOf(t);
187
+ i !== -1 && s.splice(i, 1);
188
188
  };
189
189
  }
190
190
  /**
@@ -200,12 +200,12 @@ typeof window < "u" && (window.__svelte || (window.__svelte = { v: /* @__PURE__
200
200
  function j(l) {
201
201
  return l && l.type === "TreeRow";
202
202
  }
203
- function z(l) {
203
+ function X(l) {
204
204
  return l && l.type === "AreaModelTree";
205
205
  }
206
206
  class K {
207
- constructor(e = -1, t = -1, i = -1, s = -1, o, n, a, r = 0, d = 0, h = 0, p = "") {
208
- this.rowIndex = e, this.rowTop = t, this.columnIndex = i, this.columnLeft = s, this.areaIdent = o, this.sideIdent = n, this.originalEvent = a, this.clickCount = r, this.draggingX = d, this.draggingY = h, this.action = p;
207
+ constructor(e = -1, t = -1, s = -1, i = -1, o, n, a, r = 0, d = 0, h = 0, p = "") {
208
+ this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = i, this.areaIdent = o, this.sideIdent = n, this.originalEvent = a, this.clickCount = r, this.draggingX = d, this.draggingY = h, this.action = p;
209
209
  }
210
210
  clone() {
211
211
  return new K(
@@ -224,8 +224,8 @@ class K {
224
224
  }
225
225
  }
226
226
  class D {
227
- constructor(e = ">", t = "", i = []) {
228
- this.content = e, this.style = t, this.classes = i;
227
+ constructor(e = ">", t = "", s = []) {
228
+ this.content = e, this.style = t, this.classes = s;
229
229
  }
230
230
  }
231
231
  class re {
@@ -237,33 +237,33 @@ class re {
237
237
  ">",
238
238
  "",
239
239
  ["ge-table-tree-arrow-collapsed"]
240
- ), i = new D(
240
+ ), s = new D(
241
241
  ">",
242
242
  "color:transparent;",
243
243
  ["gt-table-tree-arrow-hidden"]
244
- ), s = new D(
244
+ ), i = new D(
245
245
  "↕",
246
246
  "",
247
247
  ["gt-table-tree-arrow-expanded-all"]
248
248
  )) {
249
- this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = i, this.arrowExpandCollapseAll = s;
249
+ this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = i;
250
250
  }
251
251
  }
252
252
  class ne {
253
- constructor(e = new D("↑", "", ["ge-header-sorted-asc"]), t = new D("↓", "", ["ge-header-sorted-desc"]), i = new D("↑", "color:transparent;", [])) {
254
- this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = i;
253
+ constructor(e = new D("↑", "", ["ge-header-sorted-asc"]), t = new D("↓", "", ["ge-header-sorted-desc"]), s = new D("↑", "color:transparent;", [])) {
254
+ this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
255
255
  }
256
256
  }
257
257
  class Fe {
258
258
  constructor(e) {
259
259
  this.domService = e;
260
260
  }
261
- setStyle(e, t, i) {
262
- return this.domService.setStyle(e, t, i), e;
261
+ setStyle(e, t, s) {
262
+ return this.domService.setStyle(e, t, s), e;
263
263
  }
264
264
  applyStyle(e, t) {
265
- for (const i in t)
266
- this.domService.setStyle(e, i, t[i]);
265
+ for (const s in t)
266
+ this.domService.setStyle(e, s, t[s]);
267
267
  return e;
268
268
  }
269
269
  applyDisplayNoneStyle(e) {
@@ -273,7 +273,7 @@ class Fe {
273
273
  return this.domService.setStyle(e, "display", "block"), e;
274
274
  }
275
275
  applyStyleInPx(e, t) {
276
- return Object.entries(t).forEach(([i, s]) => this.domService.setStyle(e, i, s + "px")), e;
276
+ return Object.entries(t).forEach(([s, i]) => this.domService.setStyle(e, s, i + "px")), e;
277
277
  }
278
278
  applyStylePosistionRelative(e) {
279
279
  return this.domService.setStyle(e, "position", "relative"), this.domService.setStyle(e, "overflow", "clip"), e;
@@ -284,8 +284,8 @@ class Fe {
284
284
  applyStyleFullSize(e) {
285
285
  return this.domService.setStyle(e, "width", "100%"), this.domService.setStyle(e, "height", "100%"), e;
286
286
  }
287
- applyStyleOverflowAuto(e = "auto", t = "auto", i) {
288
- return this.domService.setStyle(i, "overflow-x", e), this.domService.setStyle(i, "overflow-y", t), i;
287
+ applyStyleOverflowAuto(e = "auto", t = "auto", s) {
288
+ return this.domService.setStyle(s, "overflow-x", e), this.domService.setStyle(s, "overflow-y", t), s;
289
289
  }
290
290
  applyStyleNoPadding(e) {
291
291
  return this.domService.setStyle(e, "padding", "0"), this.domService.setStyle(e, "margin", "0"), this.domService.setStyle(e, "border", "0"), e;
@@ -301,135 +301,138 @@ class Fe {
301
301
  return this.domService.appendChild(e, t), this.applyStylePosistionAbsolute(e), { parent: e, child: t, cache: {} };
302
302
  }
303
303
  appendText(e, t) {
304
- const i = this.domService.createText(t);
305
- return this.domService.appendChild(e, i), i;
304
+ const s = this.domService.createText(t);
305
+ return this.domService.appendChild(e, s), s;
306
306
  }
307
307
  addClass(e, t) {
308
- return e.includes(" ") ? e.split(" ").forEach((i) => this.domService.addClass(t, i)) : this.domService.addClass(t, e), t;
308
+ return e.includes(" ") ? e.split(" ").forEach((s) => this.domService.addClass(t, s)) : this.domService.addClass(t, e), t;
309
+ }
310
+ removeClass(e, t) {
311
+ return e.includes(" ") ? e.split(" ").forEach((s) => this.domService.removeClass(t, s)) : this.domService.removeClass(t, e), t;
309
312
  }
310
313
  addClasses(e, t) {
311
314
  if (e)
312
- for (const i of e)
313
- this.domService.addClass(t, i);
315
+ for (const s of e)
316
+ this.domService.addClass(t, s);
314
317
  return t;
315
318
  }
316
- setAttribute(e, t, i) {
317
- return t && i && this.domService.setAttribute(e, t, i), e;
319
+ setAttribute(e, t, s) {
320
+ return t && s && this.domService.setAttribute(e, t, s), e;
318
321
  }
319
- createAreaDivWithClass(e, t, i, s) {
322
+ createAreaDivWithClass(e, t, s, i) {
320
323
  const o = this.domService.createElement("div");
321
- return this.addClass(e, o), this.domService.setAttribute(o, "data-area", i), this.domService.setAttribute(o, "data-side", s), this.domService.appendChild(t, o), o;
324
+ return this.addClass(e, o), this.domService.setAttribute(o, "data-area", s), this.domService.setAttribute(o, "data-side", i), this.domService.appendChild(t, o), o;
322
325
  }
323
326
  createDivWithClass(e, t) {
324
- const i = this.domService.createElement("div");
325
- return this.addClass(e, i), this.domService.appendChild(t, i), i;
327
+ const s = this.domService.createElement("div");
328
+ return this.addClass(e, s), this.domService.appendChild(t, s), s;
326
329
  }
327
- addRowDiv(e, t, i = -1, s, o, n = "") {
330
+ addRowDiv(e, t, s = -1, i, o, n = "") {
328
331
  const a = t.index ?? -1, r = this.getDivOrCreateDiv(a, e);
329
- if (this.domService.addClass(r, "ge-table-row-div"), this.domService.addClass(r, `ge-table-row-div-${t.index}`), s === "body" && o === "center") {
332
+ if (this.domService.addClass(r, "ge-table-row-div"), this.domService.addClass(r, `ge-table-row-div-${t.index}`), i === "body" && o === "center") {
330
333
  const d = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
331
334
  this.domService.addClass(r, `ge-table-row-${d}`);
332
335
  }
333
- 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", `${i}`), this.domService.setAttribute(r, "data-area", `${s}`), n) {
336
+ 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", `${i}`), n) {
334
337
  const d = this.domService.createText(n);
335
338
  this.domService.appendChild(r, d);
336
339
  }
337
340
  return this.domService.appendChild(e.child, r), r;
338
341
  }
339
- addColumnDiv(e, t, i = -1, s = -1, o, n, a = "", r, d, h = void 0, p) {
340
- const g = d == null ? void 0 : d.treeOptions, f = d == null ? void 0 : d.showCheckboxWihoutExtraColumn, c = this.domService.createElement("div");
341
- this.domService.addClass(c, "ge-table-col-div"), this.domService.addClass(c, `ge-table-col-div-${t.index}`), this.domService.setAttribute(c, "data-col-index", `${t.index}`), this.domService.setAttribute(c, "data-row-index", `${i}`), this.domService.setAttribute(c, "data-area", `${o}`);
342
+ addColumnDiv(e, t, s = -1, i = -1, o, n, a = "", r, d, h = void 0, p) {
343
+ const S = d == null ? void 0 : d.treeOptions, f = d == null ? void 0 : d.showCheckboxWihoutExtraColumn, c = this.domService.createElement("div");
344
+ this.domService.addClass(c, "ge-table-col-div"), this.domService.addClass(c, `ge-table-col-div-${t.index}`), this.domService.setAttribute(c, "data-col-index", `${t.index}`), this.domService.setAttribute(c, "data-row-index", `${s}`), this.domService.setAttribute(c, "data-area", `${o}`);
342
345
  const b = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
343
- if (o === "body" && n === "center" && this.domService.addClass(c, `ge-table-column-${b}`), this.domService.setStyle(c, "display", "clip"), this.domService.setStyle(c, "position", "absolute"), this.domService.setStyle(c, "left", `${t.left}px`), this.domService.setStyle(c, "top", `${t.top}px`), this.domService.setStyle(c, "width", `${t.width}px`), this.domService.setStyle(c, "height", `${t.height}px`), r && r !== "none" && (this.domService.addClass(c, "ge-table-col-tree"), this.addArrowDiv(c, r, g, i, s, o)), f && s === 0 && h && this.addCheckboxToDiv(c, h, o, i), a) {
344
- const u = r !== "none" && s === 0;
345
- this.addLabelDiv(c, a, u, i, s, o);
346
+ if (o === "body" && n === "center" && this.domService.addClass(c, `ge-table-column-${b}`), this.domService.setStyle(c, "display", "clip"), this.domService.setStyle(c, "position", "absolute"), this.domService.setStyle(c, "left", `${t.left}px`), this.domService.setStyle(c, "top", `${t.top}px`), this.domService.setStyle(c, "width", `${t.width}px`), this.domService.setStyle(c, "height", `${t.height}px`), r && r !== "none" && (this.domService.addClass(c, "ge-table-col-tree"), this.addArrowDiv(c, r, S, s, i, o)), f && i === 0 && h && this.addCheckboxToDiv(c, h, o, s), a) {
347
+ const u = r !== "none" && i === 0;
348
+ this.addLabelDiv(c, a, u, s, i, o);
346
349
  }
347
- return p && this.addSortedIcon(c, p, d == null ? void 0 : d.sortedOptions, s), this.domService.appendChild(e, c), c;
350
+ return p && this.addSortedIcon(c, p, d == null ? void 0 : d.sortedOptions, i), this.domService.appendChild(e, c), c;
348
351
  }
349
- addCheckboxToDiv(e, t, i, s) {
352
+ addCheckboxToDiv(e, t, s, i) {
350
353
  const o = this.domService.createElement("div"), n = t === "full" ? "checked" : "";
351
354
  return o.innerHTML = `
352
355
  <input
353
356
  type="checkbox"
354
- data-area="${i}"
355
- data-row-index="${s}"
357
+ data-area="${s}"
358
+ data-row-index="${i}"
356
359
  data-input-type="checkbox"
357
360
  ${n}
358
- class="ge-table-row-checkbox"> `, this.domService.setStyle(o, "display", "inline"), this.domService.setStyle(o, "width", "inherit"), this.domService.setAttribute(o, "data-row-index", `${s}`), this.domService.appendChild(e, o), o;
361
+ class="ge-table-row-checkbox"> `, this.domService.setStyle(o, "display", "inline"), this.domService.setStyle(o, "width", "inherit"), this.domService.setAttribute(o, "data-row-index", `${i}`), this.domService.appendChild(e, o), o;
359
362
  }
360
- addLabelDiv(e, t = "", i = !1, s = -1, o = -1, n = "body") {
363
+ addLabelDiv(e, t = "", s = !1, i = -1, o = -1, n = "body") {
361
364
  const a = this.domService.createElement("div");
362
- if (this.domService.addClass(a, "ge-table-label-div"), this.domService.setStyle(a, "position", "relative"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "width", "100%"), this.domService.setStyle(a, "height", "100%"), this.domService.setAttribute(a, "data-row-index", `${s}`), this.domService.setAttribute(a, "data-col-index", `${o}`), this.domService.setAttribute(a, "data-area", `${n}`), t)
363
- if (i) {
365
+ if (this.domService.addClass(a, "ge-table-label-div"), this.domService.setStyle(a, "position", "relative"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "width", "100%"), this.domService.setStyle(a, "height", "100%"), this.domService.setAttribute(a, "data-row-index", `${i}`), this.domService.setAttribute(a, "data-col-index", `${o}`), this.domService.setAttribute(a, "data-area", `${n}`), t)
366
+ if (s) {
364
367
  const r = this.domService.createText(t);
365
368
  this.domService.appendChild(a, r);
366
369
  } else {
367
370
  const r = this.domService.createElement("div");
368
371
  this.domService.appendChild(a, r);
369
372
  const d = this.domService.createText(t);
370
- this.domService.addClass(r, "ge-table-label"), this.domService.appendChild(r, d), this.domService.setAttribute(r, "data-row-index", `${s}`), this.domService.setAttribute(r, "data-col-index", `${o}`), this.domService.setAttribute(r, "data-area", `${n}`);
373
+ this.domService.addClass(r, "ge-table-label"), this.domService.appendChild(r, d), this.domService.setAttribute(r, "data-row-index", `${i}`), this.domService.setAttribute(r, "data-col-index", `${o}`), this.domService.setAttribute(r, "data-area", `${n}`);
371
374
  }
372
375
  return this.domService.appendChild(e, a), a;
373
376
  }
374
- addSortedIcon(e, t = "", i = new ne(), s = -1) {
377
+ addSortedIcon(e, t = "", s = new ne(), i = -1) {
375
378
  const o = this.domService.createElement("div");
376
- this.domService.addClass(o, "ge-table-sorted-icon-div"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "top", "0"), this.domService.setStyle(o, "right", "0"), this.domService.setStyle(o, "width", "20px"), this.domService.setStyle(o, "background", "transparent"), this.domService.setStyle(o, "cursor", "pointer"), this.domService.setAttribute(o, "data-col-index", `${s}`), this.domService.setAttribute(o, "data-area", "header");
379
+ this.domService.addClass(o, "ge-table-sorted-icon-div"), this.domService.setStyle(o, "position", "absolute"), this.domService.setStyle(o, "top", "0"), this.domService.setStyle(o, "right", "0"), this.domService.setStyle(o, "width", "20px"), this.domService.setStyle(o, "background", "transparent"), this.domService.setStyle(o, "cursor", "pointer"), this.domService.setAttribute(o, "data-col-index", `${i}`), this.domService.setAttribute(o, "data-area", "header");
377
380
  let n;
378
- t === "asc" ? n = i.iconAsc : t === "desc" ? n = i.iconDesc : n = i.iconPlaceholder;
381
+ t === "asc" ? n = s.iconAsc : t === "desc" ? n = s.iconDesc : n = s.iconPlaceholder;
379
382
  const a = n.content, r = this.domService.createText(a);
380
383
  this.domService.appendChild(o, r), n.style && this.applyStyleString(o, n.style);
381
384
  for (const d of n.classes)
382
385
  this.domService.addClass(o, d);
383
386
  return this.domService.appendChild(e, o), o;
384
387
  }
385
- addArrowDiv(e, t = "none", i = new re(), s = -1, o = -1, n = "body") {
388
+ addArrowDiv(e, t = "none", s = new re(), i = -1, o = -1, n = "body") {
386
389
  const a = this.domService.createElement("div");
387
- this.domService.addClass(a, "ge-table-tree-arrow-div"), this.domService.setStyle(a, "display", "inline-block"), this.domService.setStyle(a, "position", ""), this.domService.setStyle(a, "width", "20px"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "cursor", "pointer"), this.domService.setAttribute(a, "data-row-index", `${s}`), this.domService.setAttribute(a, "data-col-index", `${o}`), this.domService.setAttribute(a, "data-area", `${n}`);
390
+ this.domService.addClass(a, "ge-table-tree-arrow-div"), this.domService.setStyle(a, "display", "inline-block"), this.domService.setStyle(a, "position", ""), this.domService.setStyle(a, "width", "20px"), this.domService.setStyle(a, "background", "transparent"), this.domService.setStyle(a, "cursor", "pointer"), this.domService.setAttribute(a, "data-row-index", `${i}`), this.domService.setAttribute(a, "data-col-index", `${o}`), this.domService.setAttribute(a, "data-area", `${n}`);
388
391
  let r;
389
- t === "expanded" ? r = i.arrowExpanded : t === "collapsed" ? r = i.arrowCollapsed : r = i.arrowPlaceholder;
392
+ t === "expanded" ? r = s.arrowExpanded : t === "collapsed" ? r = s.arrowCollapsed : r = s.arrowPlaceholder;
390
393
  const d = r.content, h = this.domService.createText(d);
391
394
  this.domService.appendChild(a, h), r.style && this.applyStyleString(a, r.style);
392
395
  for (const p of r.classes)
393
396
  this.domService.addClass(a, p);
394
397
  return this.domService.appendChild(e, a), a;
395
398
  }
396
- addColumnBorderDivs(e, t, i, s, o) {
399
+ addColumnBorderDivs(e, t, s, i, o) {
397
400
  if (e.verticalBorderVisible) {
398
- const n = `ge-table-${s}-${o}-vertical-border`;
399
- this.addVerticalBorder(i, t, n);
401
+ const n = `ge-table-${i}-${o}-vertical-border`;
402
+ this.addVerticalBorder(s, t, n);
400
403
  }
401
404
  if (e.horizontalBorderVisible) {
402
- const n = `ge-table-${s}-${o}-horizontal-border`;
403
- this.addHorizontalBorder(i, t, n);
405
+ const n = `ge-table-${i}-${o}-horizontal-border`;
406
+ this.addHorizontalBorder(s, t, n);
404
407
  }
405
408
  return t;
406
409
  }
407
- addHorizontalBorder(e, t, i = "ge-table-body-center-horizontal-border") {
408
- const s = this.domService.createElement("div");
409
- return this.domService.addClass(s, i), 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;
410
+ addHorizontalBorder(e, t, s = "ge-table-body-center-horizontal-border") {
411
+ const i = this.domService.createElement("div");
412
+ return this.domService.addClass(i, s), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${e.left}px`), this.domService.setStyle(i, "top", `${e.top}px`), this.domService.setStyle(i, "width", `${e.width}px`), this.domService.setStyle(i, "height", "1px"), this.domService.appendChild(t, i), i;
410
413
  }
411
- addFocusBorderDivs(e, t, i) {
412
- let s = this.domService.createElement("div");
413
- 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.applyStyle(s, i), 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.applyStyle(s, i), 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.applyStyle(s, i), 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.applyStyle(s, i), this.domService.appendChild(e, s), e;
414
+ addFocusBorderDivs(e, t, s) {
415
+ let i = this.domService.createElement("div");
416
+ return this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", "1px"), this.domService.setStyle(i, "height", `${t.height}px`), this.applyStyle(i, s), this.domService.appendChild(e, i), i = this.domService.createElement("div"), this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left + t.width - 1}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", "1px"), this.domService.setStyle(i, "height", `${t.height}px`), this.applyStyle(i, s), this.domService.appendChild(e, i), i = this.domService.createElement("div"), this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", `${t.width}px`), this.domService.setStyle(i, "height", "1px"), this.applyStyle(i, s), this.domService.appendChild(e, i), i = this.domService.createElement("div"), this.domService.addClass(i, "ge-table-focus-border"), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top + t.height - 1}px`), this.domService.setStyle(i, "width", `${t.width}px`), this.domService.setStyle(i, "height", "1px"), this.applyStyle(i, s), this.domService.appendChild(e, i), e;
414
417
  }
415
- addVerticalBorder(e, t, i = "ge-table-body-center-vertical-border") {
416
- const s = this.domService.createElement("div");
417
- return this.domService.addClass(s, i), 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;
418
+ addVerticalBorder(e, t, s = "ge-table-body-center-vertical-border") {
419
+ const i = this.domService.createElement("div");
420
+ return this.domService.addClass(i, s), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${e.left}px`), this.domService.setStyle(i, "top", `${e.top}px`), this.domService.setStyle(i, "width", "1px"), this.domService.setStyle(i, "height", `${e.height}px`), this.domService.appendChild(t, i), i;
418
421
  }
419
- addDiv(e, t, i = "") {
420
- const s = this.domService.createElement("div");
421
- return i && this.domService.addClass(s, i), 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;
422
+ addDiv(e, t, s = "") {
423
+ const i = this.domService.createElement("div");
424
+ return s && this.domService.addClass(i, s), this.domService.setStyle(i, "display", "clip"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "left", `${t.left}px`), this.domService.setStyle(i, "top", `${t.top}px`), this.domService.setStyle(i, "width", `${t.width}px`), this.domService.setStyle(i, "height", `${t.height}px`), this.domService.appendChild(e, i), i;
422
425
  }
423
426
  applyStyleString(e, t) {
424
- const i = t.split(";").map((s) => s.trim()).filter((s) => s);
425
- for (const s of i) {
426
- const [o, n] = s.split(":");
427
+ const s = t.split(";").map((i) => i.trim()).filter((i) => i);
428
+ for (const i of s) {
429
+ const [o, n] = i.split(":");
427
430
  this.domService.setStyle(e, o.trim(), n.trim());
428
431
  }
429
432
  }
430
433
  getDivOrCreateDiv(e, t) {
431
- let i = t.cache[e];
432
- return i ? (i.innerText = "", i) : (i = this.domService.createElement("div"), t.cache[e] = i, i);
434
+ let s = t.cache[e];
435
+ return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
433
436
  }
434
437
  }
435
438
  const Y = (l) => l === "header" ? "header" : l === "footer" ? "footer" : "body";
@@ -437,10 +440,10 @@ class Oe {
437
440
  constructor(e, t) {
438
441
  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)) {
439
442
  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"));
440
- const i = e.getAttribute("data-area");
441
- if (i && (this.areaIdent = Y(i), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
442
- const s = e;
443
- this.value = s.value;
443
+ const s = e.getAttribute("data-area");
444
+ if (s && (this.areaIdent = Y(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
445
+ const i = e;
446
+ this.value = i.value;
444
447
  }
445
448
  }
446
449
  }
@@ -463,27 +466,27 @@ class Le {
463
466
  else if (t.inputType === "checkbox" && t.areaIdent)
464
467
  this.tableScope.toggleRowCheckbox(t.rowIdx, t.colIdx, t.areaIdent), e.preventDefault(), e.stopPropagation();
465
468
  else if (j(t.row) && t.areaModel) {
466
- const i = t.colIdx === this.getArrowColumnIndex() && e.altKey, s = t.className.includes("ge-table-tree-arrow-div");
467
- if (console.info(s, i), i || s) {
469
+ const s = t.colIdx === this.getArrowColumnIndex() && e.altKey, i = t.className.includes("ge-table-tree-arrow-div");
470
+ if (console.info(i, s), s || i) {
468
471
  e.preventDefault(), e.stopPropagation();
469
472
  const o = t.row;
470
473
  o.expanded = !o.expanded, "recalcVisibleTreeRows" in t.areaModel && t.areaModel.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(o);
471
474
  }
472
475
  }
473
476
  if (t.areaIdent === "body" && this.tableScope.tableOptions.getFocusModel) {
474
- const i = this.tableScope.tableOptions.getFocusModel();
475
- i == null || i.clear(), i == null || i.setFocus(t.rowIdx, t.colIdx);
477
+ const s = this.tableScope.tableOptions.getFocusModel();
478
+ s == null || s.clear(), s == null || s.setFocus(t.rowIdx, t.colIdx);
476
479
  }
477
480
  this.publishGeMouseEvent(e, 1);
478
481
  }
479
482
  onHostElementDblClicked(e) {
480
483
  if (e.target instanceof HTMLElement) {
481
- const t = e.target, i = t.getAttribute("data-area"), s = Y(i), o = Number(t.getAttribute("data-row-index")), n = Number(t.getAttribute("data-col-index")), a = this.tableScope.tableModel.getAreaModel(s);
482
- if (i && s === "header")
484
+ const t = e.target, s = t.getAttribute("data-area"), i = Y(s), o = Number(t.getAttribute("data-row-index")), n = Number(t.getAttribute("data-col-index")), a = this.tableScope.tableModel.getAreaModel(i);
485
+ if (s && i === "header")
483
486
  this.tableScope.tableModel.isSortable(n) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, o, n));
484
487
  else if (t.getAttribute("data-row-index")) {
485
488
  const r = a.getRowByIndex(o);
486
- if (i && s === "body" && a.isEditable(o, n) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(o, n)), j(r) && n === this.getArrowColumnIndex()) {
489
+ if (s && i === "body" && a.isEditable(o, n) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(o, n)), j(r) && n === this.getArrowColumnIndex()) {
487
490
  e.preventDefault(), e.stopPropagation();
488
491
  const d = r;
489
492
  d.expanded = !d.expanded, "recalcVisibleTreeRows" in a && a.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(d);
@@ -493,12 +496,12 @@ class Le {
493
496
  this.publishGeMouseEvent(e, 2);
494
497
  }
495
498
  publishGeMouseEvent(e, t) {
496
- var i;
497
- this.mouseEvent = e, this.geMouseEventOld = (i = this.geMouseEvent) == null ? void 0 : i.clone(), this.geMouseEvent = this.tableScope.createGeMouseEvent(e), this.geMouseEvent && (this.geMouseEvent.clickCount = t), this.tableScope.onMouseClicked(this.geMouseEvent, this.geMouseEventOld);
499
+ var s;
500
+ 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);
498
501
  }
499
502
  updateCollapsedExpandedState(e) {
500
- var i, s, o, n, a;
501
- const t = (s = (i = this.tableScope.tableOptions) == null ? void 0 : i.autoRestoreOptions) == null ? void 0 : s.getRowId;
503
+ var s, i, o, n, a;
504
+ const t = (i = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : i.getRowId;
502
505
  if (t) {
503
506
  const r = (o = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : o.collapsedExpandedStateGet().mode, d = r === "collapsed" && !e.expanded || r === "expanded" && e.expanded, h = r === "collapsed" && e.expanded || r === "expanded" && !e.expanded, p = t(e.data);
504
507
  d ? (n = this.tableScope.storeStateCollapsedExpandService) == null || n.collapsedStateIdsPush(p) : h && ((a = this.tableScope.storeStateCollapsedExpandService) == null || a.collapsedStateIdsRemove(p));
@@ -541,8 +544,8 @@ class _e {
541
544
  constructor(e) {
542
545
  this.tableScope = e;
543
546
  }
544
- updateCells(e) {
545
- this.tableScope.updateCells(e);
547
+ updateCells(e, t = !1) {
548
+ this.tableScope.updateCells(e, t);
546
549
  }
547
550
  externalFilterChanged() {
548
551
  this.tableScope.externalFilterChanged();
@@ -577,23 +580,23 @@ class q {
577
580
  autoConvertMapToObject(e) {
578
581
  const t = {};
579
582
  if (e instanceof Map) {
580
- const i = e;
581
- for (const s of [...i]) {
583
+ const s = e;
584
+ for (const i of [...s]) {
582
585
  const [
583
586
  o,
584
587
  n
585
- ] = s;
588
+ ] = i;
586
589
  t[o] = n;
587
590
  }
588
591
  }
589
592
  return t;
590
593
  }
591
594
  checkAndPersistItem(e, t) {
592
- const i = this.getStorageKeyFn;
593
- if (i) {
594
- const s = i();
595
- if (s) {
596
- const o = s + e;
595
+ const s = this.getStorageKeyFn;
596
+ if (s) {
597
+ const i = s();
598
+ if (i) {
599
+ const o = i + e;
597
600
  if ((t + "").includes("Map")) {
598
601
  const n = this.autoConvertMapToObject(t);
599
602
  this.persistItem(o, n);
@@ -660,16 +663,16 @@ class Be extends q {
660
663
  if (e) {
661
664
  const t = e();
662
665
  if (t) {
663
- const i = t + this.SCROLL_STATE;
664
- let s = this.loadFromLocalStorage(i);
665
- this.scrollOffset = s || [0, 0];
666
+ const s = t + this.SCROLL_STATE;
667
+ let i = this.loadFromLocalStorage(s);
668
+ this.scrollOffset = i || [0, 0];
666
669
  }
667
670
  }
668
671
  }
669
672
  }
670
673
  class We {
671
- constructor(e = "collapsed", t = [], i = !1, s = !1) {
672
- this.mode = e, this.rowIds = t, this.allCollapsed = i, this.allExpanded = s;
674
+ constructor(e = "collapsed", t = [], s = !1, i = !1) {
675
+ this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = i;
673
676
  }
674
677
  }
675
678
  class He extends q {
@@ -697,8 +700,8 @@ class He extends q {
697
700
  if (e) {
698
701
  const t = e();
699
702
  if (t) {
700
- const i = t + this.COLLAPSED_EXPANDED_STATE, s = this.loadFromLocalStorage(i);
701
- s && (this.collapsedExpandedState = s);
703
+ const s = t + this.COLLAPSED_EXPANDED_STATE, i = this.loadFromLocalStorage(s);
704
+ i && (this.collapsedExpandedState = i);
702
705
  }
703
706
  }
704
707
  }
@@ -721,95 +724,95 @@ class ke extends q {
721
724
  if (e) {
722
725
  const t = e();
723
726
  if (t) {
724
- const i = t + this.SORTING_STATE;
725
- let s = this.loadFromLocalStorage(i);
726
- this.sortItems = s || [];
727
+ const s = t + this.SORTING_STATE;
728
+ let i = this.loadFromLocalStorage(s);
729
+ this.sortItems = i || [];
727
730
  }
728
731
  }
729
732
  }
730
733
  }
731
734
  class T {
732
- constructor(e = 0, t = 0, i = 0, s = 0, o) {
733
- this.left = e, this.width = t, this.height = i, this.top = s, this.index = o;
735
+ constructor(e = 0, t = 0, s = 0, i = 0, o) {
736
+ this.left = e, this.width = t, this.height = s, this.top = i, this.index = o;
734
737
  }
735
738
  }
736
739
  class Pe {
737
- constructor(e, t, i, s) {
738
- this.hostElement = e, this.tableModel = t, this.dom = i, this.tableOptions = s, this.scrollTop = 0, this.areaBodyWestGeo = new T(), this.areaBodyCenterGeo = new T(), this.areaBodyEastGeo = new T();
740
+ constructor(e, t, s, i) {
741
+ this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = i, this.scrollTop = 0, this.areaBodyWestGeo = new T(), this.areaBodyCenterGeo = new T(), this.areaBodyEastGeo = new T();
739
742
  const o = this.hostElement;
740
743
  o.innerText = "", this.dom.setAttribute(o, "tabindex", "0"), this.dom.setStyle(
741
744
  this.dom.addClass("ge-table", o),
742
745
  "position",
743
746
  "relative"
744
- ), this.hoverRow = i.applyStylePosistionAbsolute(
745
- i.createDivWithClass("ge-table-hover-row", o)
746
- ), this.hoverColumn = i.applyStylePosistionAbsolute(
747
- i.createDivWithClass("ge-table-hover-column", o)
748
- ), this.areaHeaderWest = i.appendRelativeChildDiv(
749
- i.applyStylePosistionAbsolute(
750
- i.createAreaDivWithClass("ge-table-header ge-table-header-west", o, "header", "west")
747
+ ), this.hoverRow = s.applyStylePosistionAbsolute(
748
+ s.createDivWithClass("ge-table-hover-row", o)
749
+ ), this.hoverColumn = s.applyStylePosistionAbsolute(
750
+ s.createDivWithClass("ge-table-hover-column", o)
751
+ ), this.areaHeaderWest = s.appendRelativeChildDiv(
752
+ s.applyStylePosistionAbsolute(
753
+ s.createAreaDivWithClass("ge-table-header ge-table-header-west", o, "header", "west")
751
754
  )
752
- ), this.areaHeaderCenter = i.appendRelativeChildDiv(
753
- i.applyStylePosistionAbsolute(
754
- i.createAreaDivWithClass("ge-table-header ge-table-header-center", o, "header", "center")
755
+ ), this.areaHeaderCenter = s.appendRelativeChildDiv(
756
+ s.applyStylePosistionAbsolute(
757
+ s.createAreaDivWithClass("ge-table-header ge-table-header-center", o, "header", "center")
755
758
  )
756
- ), this.areaHeaderEast = i.appendRelativeChildDiv(
757
- i.applyStylePosistionAbsolute(
758
- i.createAreaDivWithClass("ge-table-header ge-table-header-east", o, "body", "east")
759
+ ), this.areaHeaderEast = s.appendRelativeChildDiv(
760
+ s.applyStylePosistionAbsolute(
761
+ s.createAreaDivWithClass("ge-table-header ge-table-header-east", o, "body", "east")
759
762
  )
760
- ), this.areaBodyWest = i.appendRelativeChildDiv(
761
- i.applyStylePosistionAbsolute(
762
- i.createAreaDivWithClass("ge-table-body ge-table-body-west", o, "body", "west")
763
+ ), this.areaBodyWest = s.appendRelativeChildDiv(
764
+ s.applyStylePosistionAbsolute(
765
+ s.createAreaDivWithClass("ge-table-body ge-table-body-west", o, "body", "west")
763
766
  )
764
- ), this.areaBodyEast = i.appendRelativeChildDiv(
765
- i.applyStylePosistionAbsolute(
766
- i.createAreaDivWithClass("ge-table-body ge-table-body-east", o, "body", "east")
767
+ ), this.areaBodyEast = s.appendRelativeChildDiv(
768
+ s.applyStylePosistionAbsolute(
769
+ s.createAreaDivWithClass("ge-table-body ge-table-body-east", o, "body", "east")
767
770
  )
768
- ), this.areaFooterWest = i.appendRelativeChildDiv(
769
- i.applyStylePosistionAbsolute(
770
- i.createAreaDivWithClass("ge-table-footer ge-table-footer-west", o, "footer", "west")
771
+ ), this.areaFooterWest = s.appendRelativeChildDiv(
772
+ s.applyStylePosistionAbsolute(
773
+ s.createAreaDivWithClass("ge-table-footer ge-table-footer-west", o, "footer", "west")
771
774
  )
772
- ), this.areaFooterCenter = i.appendRelativeChildDiv(
773
- i.applyStylePosistionAbsolute(
774
- i.createAreaDivWithClass("ge-table-footer ge-table-footer-center", o, "footer", "center")
775
+ ), this.areaFooterCenter = s.appendRelativeChildDiv(
776
+ s.applyStylePosistionAbsolute(
777
+ s.createAreaDivWithClass("ge-table-footer ge-table-footer-center", o, "footer", "center")
775
778
  )
776
- ), this.areaFooterEast = i.appendRelativeChildDiv(
777
- i.applyStylePosistionAbsolute(
778
- i.createAreaDivWithClass("ge-table-footer ge-table-footer-east", o, "footer", "east")
779
+ ), this.areaFooterEast = s.appendRelativeChildDiv(
780
+ s.applyStylePosistionAbsolute(
781
+ s.createAreaDivWithClass("ge-table-footer ge-table-footer-east", o, "footer", "east")
779
782
  )
780
- ), this.scrollViewport = i.applyStyleOverflowAuto(
783
+ ), this.scrollViewport = s.applyStyleOverflowAuto(
781
784
  this.tableOptions.overflowX ?? "auto",
782
785
  this.tableOptions.overflowY ?? "auto",
783
- i.applyStyleNoPadding(
784
- i.applyStylePosistionAbsolute(
785
- i.createAreaDivWithClass("ge-table-scroll-viewport", o, "body", "center")
786
+ s.applyStyleNoPadding(
787
+ s.applyStylePosistionAbsolute(
788
+ s.createAreaDivWithClass("ge-table-scroll-viewport", o, "body", "center")
786
789
  )
787
790
  )
788
- ), this.contentWrapperDiv = i.applyStyleNoPadding(
789
- i.applyStylePosistionRelative(
790
- i.createDivWithClass("ge-table-scroll-content-wrapper", this.scrollViewport)
791
+ ), this.contentWrapperDiv = s.applyStyleNoPadding(
792
+ s.applyStylePosistionRelative(
793
+ s.createDivWithClass("ge-table-scroll-content-wrapper", this.scrollViewport)
791
794
  )
792
- ), this.contentDiv = i.applyStyleNoPadding(
793
- i.applyStylePosistionRelative(
794
- i.createDivWithClass("ge-table-scroll-content", this.contentWrapperDiv)
795
+ ), this.contentDiv = s.applyStyleNoPadding(
796
+ s.applyStylePosistionRelative(
797
+ s.createDivWithClass("ge-table-scroll-content", this.contentWrapperDiv)
795
798
  )
796
- ), this.areaBodyCenter = i.appendRelativeChildDiv(
797
- i.createDivWithClass("ge-table-body-center", this.contentDiv)
798
- ), this.borderHeaderBottom = i.applyStylePosistionAbsolute(
799
- i.createDivWithClass("ge-table-header-border", o)
800
- ), this.borderFixedWest = i.applyStylePosistionAbsolute(
801
- i.createDivWithClass("ge-table-west-fixed-column-border", o)
802
- ), this.borderFixedEast = i.applyStylePosistionAbsolute(
803
- i.createDivWithClass("ge-table-east-fixed-column-border", o)
804
- ), this.borderFooterTop = i.applyStylePosistionAbsolute(
805
- i.createDivWithClass("ge-table-footer-border", o)
799
+ ), this.areaBodyCenter = s.appendRelativeChildDiv(
800
+ s.createDivWithClass("ge-table-body-center", this.contentDiv)
801
+ ), this.borderHeaderBottom = s.applyStylePosistionAbsolute(
802
+ s.createDivWithClass("ge-table-header-border", o)
803
+ ), this.borderFixedWest = s.applyStylePosistionAbsolute(
804
+ s.createDivWithClass("ge-table-west-fixed-column-border", o)
805
+ ), this.borderFixedEast = s.applyStylePosistionAbsolute(
806
+ s.createDivWithClass("ge-table-east-fixed-column-border", o)
807
+ ), this.borderFooterTop = s.applyStylePosistionAbsolute(
808
+ s.createDivWithClass("ge-table-footer-border", o)
806
809
  );
807
810
  }
808
811
  adjustContainersAndRows() {
809
- const e = this.tableModel.getPadding(), t = this.hostElement.clientWidth, i = this.hostElement.clientHeight;
812
+ const e = this.tableModel.getPadding(), t = this.hostElement.clientWidth, s = this.hostElement.clientHeight;
810
813
  this.dom.applyStyle(this.scrollViewport, {
811
814
  width: `${t - e.left}px`,
812
- height: `${i - e.top}px`,
815
+ height: `${s - e.top}px`,
813
816
  top: `${e.top}px`,
814
817
  left: `${e.left}px`
815
818
  }), this.scrollTop = this.scrollViewport.scrollTop, this.dom.applyStyle(this.contentDiv, {
@@ -817,21 +820,21 @@ class Pe {
817
820
  height: `${this.scrollViewport.clientHeight}px`,
818
821
  top: `${this.scrollTop}px`,
819
822
  left: `${this.scrollViewport.scrollLeft}px`
820
- }), this.areaBodyWestGeo.width = e.left, this.areaBodyWestGeo.height = i - 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(
823
+ }), 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(
821
824
  this.dom.applyStyle(this.borderFixedWest, {
822
825
  width: "1px",
823
826
  height: `${this.areaBodyWestGeo.height}px`,
824
827
  top: `${this.areaBodyWestGeo.top}px`,
825
828
  left: `${this.areaBodyWestGeo.width}px`
826
829
  })
827
- ) : this.dom.applyDisplayNoneStyle(this.borderFixedWest), this.areaBodyEastGeo.width = e.right, this.areaBodyEastGeo.height = i - 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(
830
+ ) : 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(
828
831
  this.dom.applyStyle(this.borderFixedEast, {
829
832
  width: "1px",
830
833
  height: `${this.areaBodyEastGeo.height}px`,
831
834
  top: `${this.areaBodyEastGeo.top}px`,
832
835
  left: `${this.areaBodyEastGeo.left}px`
833
836
  })
834
- ) : this.dom.applyDisplayNoneStyle(this.borderFixedEast), this.areaBodyCenterGeo.width = t - e.left - e.right, this.areaBodyCenterGeo.height = i - 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, {
837
+ ) : 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, {
835
838
  width: `${t - e.left - e.right}px`,
836
839
  height: `${e.top}px`,
837
840
  top: "0",
@@ -856,23 +859,23 @@ class Pe {
856
859
  ) : this.dom.applyDisplayNoneStyle(this.borderHeaderBottom), this.dom.applyStyle(this.areaFooterWest.parent, {
857
860
  width: `${e.left}px`,
858
861
  height: `${e.bottom}px`,
859
- top: `${i - e.bottom}px`,
862
+ top: `${s - e.bottom}px`,
860
863
  left: "0"
861
864
  }), this.dom.applyStyle(this.areaFooterCenter.parent, {
862
865
  width: `${t - e.left - e.right}px`,
863
866
  height: `${e.bottom}px`,
864
- top: `${i - e.bottom}px`,
867
+ top: `${s - e.bottom}px`,
865
868
  left: `${e.left}px`
866
869
  }), this.dom.applyStyle(this.areaFooterEast.parent, {
867
870
  width: `${e.right}px`,
868
871
  height: `${e.bottom}px`,
869
- top: `${i - e.bottom}px`,
872
+ top: `${s - e.bottom}px`,
870
873
  left: `${t - e.right}px`
871
874
  }), this.tableOptions.footerSeparatorBorderVisible && this.tableModel.isFooterVisibe() ? this.dom.applyDisplayBlockStyle(
872
875
  this.dom.applyStyle(this.borderFooterTop, {
873
876
  width: `${t}px`,
874
877
  height: "1px",
875
- top: `${i - e.bottom}px`,
878
+ top: `${s - e.bottom}px`,
876
879
  left: "0px"
877
880
  })
878
881
  ) : this.dom.applyDisplayNoneStyle(this.borderFooterTop), this.adjustAfterScrolling();
@@ -885,8 +888,8 @@ class Pe {
885
888
  }
886
889
  }
887
890
  class A {
888
- constructor(e, t, i, s, o = !1) {
889
- this.r1 = e, this.c1 = t, this.r2 = i, this.c2 = s, this.gammaRange = o;
891
+ constructor(e, t, s, i, o = !1) {
892
+ this.r1 = e, this.c1 = t, this.r2 = s, this.c2 = i, this.gammaRange = o;
890
893
  }
891
894
  static create(e) {
892
895
  return e.gammaRange === void 0 && (e.gammaRange = !1), new A(
@@ -919,14 +922,14 @@ class Ve {
919
922
  return;
920
923
  this.colAndRowspanRanges = [];
921
924
  const e = this.areaModel.getRowCount(), t = this.tableModel.getColumnCount();
922
- for (let i = 0; i < e; i++)
923
- for (let s = 0; s < t; s++) {
924
- let o = this.areaModel.getColspanAt(i, s), n = this.areaModel.getRowspanAt(i, s);
925
+ for (let s = 0; s < e; s++)
926
+ for (let i = 0; i < t; i++) {
927
+ let o = this.areaModel.getColspanAt(s, i), n = this.areaModel.getRowspanAt(s, i);
925
928
  if (o > 1 || n > 1) {
926
929
  o === 0 && (o = 1), n === 0 && (n = 1);
927
930
  const a = this.areaModel.hasOwnProperty("gammaCells");
928
931
  this.colAndRowspanRanges.push(
929
- new A(i, s, i + n - 1, s + o - 1, a)
932
+ new A(s, i, s + n - 1, i + o - 1, a)
930
933
  );
931
934
  }
932
935
  }
@@ -936,26 +939,26 @@ class Ve {
936
939
  }
937
940
  isInRange(e, t) {
938
941
  if (this.colAndRowspanRanges) {
939
- for (const i of this.colAndRowspanRanges)
940
- if (i.isInRange(e, t))
942
+ for (const s of this.colAndRowspanRanges)
943
+ if (s.isInRange(e, t))
941
944
  return !0;
942
945
  }
943
946
  return !1;
944
947
  }
945
948
  }
946
949
  class Ge {
947
- constructor(e, t, i) {
948
- this.header = e, this.body = t, this.footer = i;
950
+ constructor(e, t, s) {
951
+ this.header = e, this.body = t, this.footer = s;
949
952
  }
950
953
  }
951
954
  class Ne extends Pe {
952
- constructor(e, t, i, s) {
955
+ constructor(e, t, s, i) {
953
956
  var n, a;
954
- super(e, t, i, s), this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
957
+ super(e, t, s, i), this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
955
958
  header: [],
956
959
  body: [],
957
960
  footer: []
958
- }, this.tree = !1, this.colAndRowspanModels = new Ge(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.editing = !1, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (n = this.tableOptions) != null && n.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (a = this.tableOptions) != null && a.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), z(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
961
+ }, this.tree = !1, this.colAndRowspanModels = new Ge(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.editing = !1, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (n = this.tableOptions) != null && n.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (a = this.tableOptions) != null && a.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), X(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
959
962
  (r) => {
960
963
  var d;
961
964
  this.colAndRowspanModels[r] = new Ve(t, t.getAreaModel(r)), (d = this.colAndRowspanModels[r]) == null || d.init();
@@ -975,10 +978,10 @@ class Ne extends Pe {
975
978
  }
976
979
  }
977
980
  initRenderEditor(e, t) {
978
- var s;
979
- let i = (s = this.tableModel.getColumnDef(t)) == null ? void 0 : s.getEditRenderer;
980
- if (i || (i = this.tableOptions.getEditRenderer), i)
981
- if (this.editorRenderer = i(e, t), this.editorRenderer) {
981
+ var i;
982
+ let s = (i = this.tableModel.getColumnDef(t)) == null ? void 0 : i.getEditRenderer;
983
+ if (s || (s = this.tableOptions.getEditRenderer), s)
984
+ if (this.editorRenderer = s(e, t), this.editorRenderer) {
982
985
  this.editorRendererRow = e, this.editorRendererColumn = t, this.editing = !0, this.repaint();
983
986
  const o = document.querySelector("input.ge-table-cell-editor-input");
984
987
  o && o.focus();
@@ -1014,16 +1017,18 @@ class Ne extends Pe {
1014
1017
  var e, t;
1015
1018
  this.storeScrollPosStateService && ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.autoRestoreScrollPosition) && this.storeScrollPosStateService.updateScrollOffset([this.scrollLeft, this.scrollTop]);
1016
1019
  }
1017
- updateCells(e) {
1020
+ updateCells(e, t = !1) {
1018
1021
  e.forEach(
1019
- (t) => this.tableModel.getAreaModel(t.area).setValue(t.rowIndex, t.columnIndex, t.value)
1020
- ), this.repaint();
1022
+ (s) => {
1023
+ this.tableModel.getAreaModel(s.area).setValue(s.rowIndex, s.columnIndex, s.value), t || this.rerenderCellContent(s);
1024
+ }
1025
+ ), t && this.repaint();
1021
1026
  }
1022
1027
  getAreaAndSideIdentByAttr(e) {
1023
1028
  if (e) {
1024
- const t = this.getStringByAttr(e, "data-area"), i = this.getStringByAttr(e, "data-side");
1025
- if (i && t)
1026
- return [t, i];
1029
+ const t = this.getStringByAttr(e, "data-area"), s = this.getStringByAttr(e, "data-side");
1030
+ if (s && t)
1031
+ return [t, s];
1027
1032
  }
1028
1033
  return [void 0, void 0];
1029
1034
  }
@@ -1057,39 +1062,39 @@ class Ne extends Pe {
1057
1062
  this.dom.setStyle(this.contentDiv, "top", `${this.scrollTop}px`), this.dom.setStyle(this.contentDiv, "left", `${this.scrollViewport.scrollLeft}px`), this.adjustArea("body", t);
1058
1063
  }
1059
1064
  getNumberByAttr(e, t) {
1060
- var i;
1065
+ var s;
1061
1066
  if (e) {
1062
- const s = (i = e.closest("[" + t + "]")) == null ? void 0 : i.getAttribute(t);
1063
- if (s)
1064
- return Number(s);
1067
+ const i = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
1068
+ if (i)
1069
+ return Number(i);
1065
1070
  }
1066
1071
  return -1;
1067
1072
  }
1068
1073
  getStringByAttr(e, t) {
1069
- var i;
1074
+ var s;
1070
1075
  if (e) {
1071
- const s = (i = e.closest("[" + t + "]")) == null ? void 0 : i.getAttribute(t);
1072
- if (s)
1073
- return s;
1076
+ const i = (s = e.closest("[" + t + "]")) == null ? void 0 : s.getAttribute(t);
1077
+ if (i)
1078
+ return i;
1074
1079
  }
1075
1080
  return "";
1076
1081
  }
1077
1082
  adjustArea(e, t = 0) {
1078
1083
  var u;
1079
- const i = this.getArea(e, "west"), s = this.getArea(e, "center"), o = this.getArea(e, "east"), n = s.child.clientHeight;
1080
- i.child.innerText = "", s.child.innerText = "", o.child.innerText = "";
1084
+ const s = this.getArea(e, "west"), i = this.getArea(e, "center"), o = this.getArea(e, "east"), n = i.child.clientHeight;
1085
+ s.child.innerText = "", i.child.innerText = "", o.child.innerText = "";
1081
1086
  const a = 0, r = this.areaBodyCenterGeo.width, d = this.tableModel.getPadding(), h = this.tableModel.getAreaModel(e), p = h.getRowCount();
1082
1087
  for (; this.cleanupFunctions[e].length; ) {
1083
- const S = this.cleanupFunctions[e].shift();
1084
- S && S();
1088
+ const g = this.cleanupFunctions[e].shift();
1089
+ g && g();
1085
1090
  }
1086
- let g = t;
1091
+ let S = t;
1087
1092
  const f = this.tableModel.getColumnCount(), c = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
1088
- for (let S = 0; S < p; S++) {
1089
- const x = g, w = S === p - 1, C = this.tableModel.getRowHeight(e, S);
1090
- if (x + C > 0) {
1091
- this.firstVisibleRowIndex = S;
1092
- let v = { left: a, width: r, height: C, top: x, index: S }, m = this.dom.addRowDiv(s, v, S, e, "center");
1093
+ for (let g = 0; g < p; g++) {
1094
+ const x = S, C = g === p - 1, w = this.tableModel.getRowHeight(e, g);
1095
+ if (x + w > 0) {
1096
+ this.firstVisibleRowIndex = g;
1097
+ let v = { left: a, width: r, height: w, top: x, index: g }, m = this.dom.addRowDiv(i, v, g, e, "center");
1093
1098
  const R = b;
1094
1099
  if (this.adjustColumnsToRowParent({
1095
1100
  areaIdent: e,
@@ -1097,34 +1102,34 @@ class Ne extends Pe {
1097
1102
  areaModel: h,
1098
1103
  geo: v,
1099
1104
  parent: m,
1100
- rowIndex: S,
1105
+ rowIndex: g,
1101
1106
  columnIndexStart: R,
1102
1107
  columnIndexEnd: f - c - 1,
1103
1108
  verticalFixed: !1,
1104
- lastRowOfModel: w
1105
- }), d.left > 0 && (v = { left: a, width: this.areaBodyWestGeo.width, height: C, top: x, index: S }, m = this.dom.addRowDiv(i, v, S, e, "west"), this.adjustColumnsToRowParent({
1109
+ lastRowOfModel: C
1110
+ }), d.left > 0 && (v = { left: a, width: this.areaBodyWestGeo.width, height: w, top: x, index: g }, m = this.dom.addRowDiv(s, v, g, e, "west"), this.adjustColumnsToRowParent({
1106
1111
  areaIdent: e,
1107
1112
  sideIdent: "west",
1108
1113
  areaModel: h,
1109
1114
  geo: v,
1110
1115
  parent: m,
1111
- rowIndex: S,
1116
+ rowIndex: g,
1112
1117
  columnIndexStart: 0,
1113
1118
  columnIndexEnd: R - 1,
1114
1119
  verticalFixed: !0,
1115
- lastRowOfModel: w
1116
- })), d.right > 0 && (v = { left: a, width: this.areaBodyEastGeo.width, height: C, top: x, index: S }, m = this.dom.addRowDiv(o, v, S, e, "east"), this.adjustColumnsToRowParent({
1120
+ lastRowOfModel: C
1121
+ })), d.right > 0 && (v = { left: a, width: this.areaBodyEastGeo.width, height: w, top: x, index: g }, m = this.dom.addRowDiv(o, v, g, e, "east"), this.adjustColumnsToRowParent({
1117
1122
  areaIdent: e,
1118
1123
  sideIdent: "east",
1119
1124
  areaModel: h,
1120
1125
  geo: v,
1121
1126
  parent: m,
1122
- rowIndex: S,
1127
+ rowIndex: g,
1123
1128
  columnIndexStart: f - c,
1124
1129
  columnIndexEnd: f - 1,
1125
1130
  verticalFixed: !0,
1126
- lastRowOfModel: w
1127
- })), e === "header" && this.tree && S === p - 1) {
1131
+ lastRowOfModel: C
1132
+ })), e === "header" && this.tree && g === p - 1) {
1128
1133
  const E = this.dom.applyStyle(
1129
1134
  this.dom.setAttribute(
1130
1135
  this.dom.addDiv(m, new T(16, 20, 20, 8)),
@@ -1139,23 +1144,23 @@ class Ne extends Pe {
1139
1144
  }
1140
1145
  }
1141
1146
  }
1142
- if (g = g + C, g > n)
1147
+ if (S = S + w, S > n)
1143
1148
  break;
1144
1149
  }
1145
1150
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1146
- const S = ((u = this.colAndRowspanModels[e]) == null ? void 0 : u.getRanges()) ?? [];
1147
- if (S.length)
1148
- for (const x of S) {
1149
- let w = 0, C = s.child, v = "center";
1151
+ const g = ((u = this.colAndRowspanModels[e]) == null ? void 0 : u.getRanges()) ?? [];
1152
+ if (g.length)
1153
+ for (const x of g) {
1154
+ let C = 0, w = i.child, v = "center";
1150
1155
  if (x.c1 < b)
1151
- C = i.child, v = "west";
1156
+ w = s.child, v = "west";
1152
1157
  else if (c > 0 && x.c1 >= f - c)
1153
- C = o.child, v = "east";
1158
+ w = o.child, v = "east";
1154
1159
  else {
1155
1160
  const m = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1156
- w = this.scrollFactorX * m - this.areaBodyWestGeo.width, v = "center";
1161
+ C = this.scrollFactorX * m - this.areaBodyWestGeo.width, v = "center";
1157
1162
  }
1158
- this.drawBigCell(x, w, t, h, C, v);
1163
+ this.drawBigCell(x, C, t, h, w, v);
1159
1164
  }
1160
1165
  }
1161
1166
  }
@@ -1169,58 +1174,58 @@ class Ne extends Pe {
1169
1174
  * @param sideIdent SideIdent (west,center,east)
1170
1175
  * @protected
1171
1176
  */
1172
- drawBigCell(e, t, i, s, o, n) {
1173
- const a = i + this.getRowHeights(0, e.r1 - 1, s).reduce((u, S) => u + S, 0), r = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
1177
+ drawBigCell(e, t, s, i, o, n) {
1178
+ const a = s + this.getRowHeights(0, e.r1 - 1, i).reduce((u, g) => u + g, 0), r = this.tableModel.getColumnCount(), d = this.tableModel.getFixedRightColumnCount();
1174
1179
  let h = 0;
1175
1180
  d > 0 && e.c1 >= r - d && (h = r - d);
1176
- const p = t + this.getColumnWidths(h, e.c1 - 1).reduce((u, S) => u + S, 0), g = this.getRowHeights(e.r1, e.r2, s).reduce((u, S) => u + S, 0), f = this.getColumnWidths(e.c1, e.c2).reduce((u, S) => u + S, 0);
1181
+ const p = t + this.getColumnWidths(h, e.c1 - 1).reduce((u, g) => u + g, 0), S = this.getRowHeights(e.r1, e.r2, i).reduce((u, g) => u + g, 0), f = this.getColumnWidths(e.c1, e.c2).reduce((u, g) => u + g, 0);
1177
1182
  let c = !1;
1178
1183
  const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
1179
1184
  b && (c = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? (console.info("TODO here", e), this.renderCell({
1180
- areaModel: s,
1181
- areaIdent: s.areaIdent,
1185
+ areaModel: i,
1186
+ areaIdent: i.areaIdent,
1182
1187
  sideIdent: n,
1183
1188
  rowIndex: e.r1,
1184
1189
  columnIndex: e.c1,
1185
1190
  left: p,
1186
1191
  top: a,
1187
1192
  width: f,
1188
- height: g,
1193
+ height: S,
1189
1194
  parent: o,
1190
1195
  cellSelected: c,
1191
1196
  lastRowOfModel: !0,
1192
1197
  gammaRange: e.gammaRange
1193
1198
  })) : this.renderCell({
1194
- areaModel: s,
1195
- areaIdent: s.areaIdent,
1199
+ areaModel: i,
1200
+ areaIdent: i.areaIdent,
1196
1201
  sideIdent: n,
1197
1202
  rowIndex: e.r1,
1198
1203
  columnIndex: e.c1,
1199
1204
  left: p,
1200
1205
  top: a,
1201
1206
  width: f,
1202
- height: g,
1207
+ height: S,
1203
1208
  parent: o,
1204
1209
  cellSelected: c,
1205
1210
  lastRowOfModel: !0,
1206
1211
  gammaRange: e.gammaRange
1207
- }), s.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1212
+ }), i.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1208
1213
  rowIndex: e.r1,
1209
1214
  columnIndex: e.c1,
1210
1215
  cellLeft: p,
1211
1216
  cellTop: a,
1212
1217
  cellWidth: f,
1213
- cellHeight: g,
1218
+ cellHeight: S,
1214
1219
  parent: o
1215
1220
  });
1216
1221
  }
1217
- findRowOfImportantRowspanCell(e, t, i) {
1218
- const s = e.getMaxRowspan();
1222
+ findRowOfImportantRowspanCell(e, t, s) {
1223
+ const i = e.getMaxRowspan();
1219
1224
  for (let o = t - 1; o > -1; o--) {
1220
- const n = e.getRowspanAt(o, i);
1225
+ const n = e.getRowspanAt(o, s);
1221
1226
  if (n > 1 && o + n + 1 >= t)
1222
1227
  return o;
1223
- if (t - o > s)
1228
+ if (t - o > i)
1224
1229
  return -1;
1225
1230
  }
1226
1231
  return -1;
@@ -1228,8 +1233,8 @@ class Ne extends Pe {
1228
1233
  adjustColumnsToRowParent({
1229
1234
  areaIdent: e,
1230
1235
  sideIdent: t,
1231
- areaModel: i,
1232
- geo: s,
1236
+ areaModel: s,
1237
+ geo: i,
1233
1238
  parent: o,
1234
1239
  rowIndex: n,
1235
1240
  columnIndexStart: a,
@@ -1244,33 +1249,33 @@ class Ne extends Pe {
1244
1249
  const u = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1245
1250
  p = this.scrollFactorX * u;
1246
1251
  }
1247
- const g = 0, f = !!(e === "body" && t);
1252
+ const S = 0, f = !!(e === "body" && t);
1248
1253
  let c = p;
1249
1254
  for (let u = a; u <= r; u++) {
1250
- const S = c, x = this.tableModel.getColumnWidth(u);
1251
- if (x > 0 && S + x > 0) {
1252
- let w = s.height;
1253
- const C = i.getRowspanAt(n, u), v = i.getColspanAt(n, u);
1254
- C > 1 && (w = this.getRowHeights(n, n + C - 1, i).reduce((E, M) => E + M, 0));
1255
+ const g = c, x = this.tableModel.getColumnWidth(u);
1256
+ if (x > 0 && g + x > 0) {
1257
+ let C = i.height;
1258
+ const w = s.getRowspanAt(n, u), v = s.getColspanAt(n, u);
1259
+ w > 1 && (C = this.getRowHeights(n, n + w - 1, s).reduce((E, M) => E + M, 0));
1255
1260
  let m = x;
1256
1261
  v > 1 && (m = this.getColumnWidths(u, u + v - 1).reduce((E, M) => E + M, 0));
1257
1262
  let R = !1;
1258
1263
  if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(n, u) && (R = !0), this.draggingTargetColumnIndex === u && e !== "header") {
1259
- this.renderDragTargetDiv(o, S, g, m, w);
1260
- const E = { left: S, top: g, width: m, height: w };
1264
+ this.renderDragTargetDiv(o, g, S, m, C);
1265
+ const E = { left: g, top: S, width: m, height: C };
1261
1266
  this.dom.addColumnBorderDivs(this.tableOptions, o, E, e, t);
1262
1267
  } else {
1263
- const E = this.renderSelectedBackgroundDiv(R, f, t, i, n, u, o, S, g, m, w);
1268
+ const E = this.renderSelectedBackgroundDiv(R, f, t, s, n, u, o, g, S, m, C);
1264
1269
  R || this.renderCell({
1265
- areaModel: i,
1270
+ areaModel: s,
1266
1271
  areaIdent: e,
1267
1272
  sideIdent: t,
1268
1273
  rowIndex: n,
1269
1274
  columnIndex: u,
1270
- left: S,
1271
- top: g,
1275
+ left: g,
1276
+ top: S,
1272
1277
  width: m,
1273
- height: w,
1278
+ height: C,
1274
1279
  parent: o,
1275
1280
  cellSelected: E,
1276
1281
  lastRowOfModel: h,
@@ -1278,10 +1283,10 @@ class Ne extends Pe {
1278
1283
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1279
1284
  rowIndex: n,
1280
1285
  columnIndex: u,
1281
- cellLeft: S,
1282
- cellTop: g,
1286
+ cellLeft: g,
1287
+ cellTop: S,
1283
1288
  cellWidth: m,
1284
- cellHeight: w,
1289
+ cellHeight: C,
1285
1290
  parent: o
1286
1291
  });
1287
1292
  }
@@ -1289,7 +1294,7 @@ class Ne extends Pe {
1289
1294
  if (c = c + x, c > this.areaBodyCenterGeo.width)
1290
1295
  break;
1291
1296
  }
1292
- this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(c - 1, 1, s.height, 0), o);
1297
+ this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(c - 1, 1, i.height, 0), o);
1293
1298
  }
1294
1299
  getTreeArrowColumnIndex() {
1295
1300
  return this.tableOptions.showCheckboxWihoutExtraColumn ? 0 : this.tableModel.isRowCheckboxVisible() ? 1 : 0;
@@ -1297,8 +1302,8 @@ class Ne extends Pe {
1297
1302
  addAndRenderCellDiv({
1298
1303
  areaModel: e,
1299
1304
  areaIdent: t,
1300
- sideIdent: i,
1301
- rowIndex: s,
1305
+ sideIdent: s,
1306
+ rowIndex: i,
1302
1307
  index: o,
1303
1308
  left: n,
1304
1309
  width: a,
@@ -1308,7 +1313,7 @@ class Ne extends Pe {
1308
1313
  lastRowOfModel: p
1309
1314
  }) {
1310
1315
  var Q;
1311
- const f = this.editorRenderer && this.editorRendererRow === s && this.editorRendererColumn === o ? this.editorRenderer : e.getCellRenderer(s, o), c = { left: n, width: a, height: r, top: d, index: o }, b = e.getRowByIndex(s);
1316
+ const f = this.editorRenderer && this.editorRendererRow === i && this.editorRendererColumn === o ? this.editorRenderer : e.getCellRenderer(i, o), c = { left: n, width: a, height: r, top: d, index: o }, b = e.getRowByIndex(i);
1312
1317
  let u = "none";
1313
1318
  if (o === this.getTreeArrowColumnIndex() && j(b)) {
1314
1319
  const y = b;
@@ -1319,56 +1324,80 @@ class Ne extends Pe {
1319
1324
  const y = this.tableModel.getColumnDef(o);
1320
1325
  (!(y != null && y.sortIconVisible) || y != null && y.sortIconVisible()) && (x = y == null ? void 0 : y.sortState);
1321
1326
  }
1322
- const w = e.getValueAt(s, o), C = f ? "" : `${w}`, v = e.isRowChecked(s), m = this.dom.addColumnDiv(
1327
+ const C = e.getValueAt(i, o), w = f ? "" : `${C}`, v = e.isRowChecked(i), m = this.dom.addColumnDiv(
1323
1328
  h,
1324
1329
  c,
1325
- s,
1330
+ i,
1326
1331
  o,
1327
1332
  t,
1328
- i,
1329
- C,
1333
+ s,
1334
+ w,
1330
1335
  u,
1331
1336
  this.tableOptions,
1332
1337
  v,
1333
1338
  x
1334
- ), R = e.getTooltipAt(s, o);
1339
+ ), R = e.getTooltipAt(i, o);
1335
1340
  R && this.dom.setAttribute(m, "title", R);
1336
1341
  const E = this.tableModel.getColumnDef(o);
1337
1342
  E && E.classes[t] && this.dom.addClasses(E.classes[t], m);
1338
1343
  let M;
1339
- f && (M = f.render(m, s, o, t, e, w, this.dom.domService));
1340
- const B = e.getCustomClassesAt(s, o);
1341
- if (B.length && this.dom.addClasses(B, m), this.dom.addColumnBorderDivs(this.tableOptions, h, c, t, i), p && this.dom.addHorizontalBorder({ left: n, width: a, height: r, top: d + r }, h), this.getFocusModel && t === "body") {
1344
+ f && (M = f.render(m, i, o, t, e, C, this.dom.domService));
1345
+ const B = e.getCustomClassesAt(i, o);
1346
+ if (B.length && this.dom.addClasses(B, m), this.dom.addColumnBorderDivs(this.tableOptions, h, c, t, s), p && this.dom.addHorizontalBorder({ left: n, width: a, height: r, top: d + r }, h), this.getFocusModel && t === "body") {
1342
1347
  const y = this.getFocusModel();
1343
- y != null && y.hasFocus(s, o) && this.dom.addFocusBorderDivs(h, c, {});
1348
+ y != null && y.hasFocus(i, o) && this.dom.addFocusBorderDivs(h, c, {});
1344
1349
  }
1345
1350
  t === "header" && this.dom.setAttribute(m, "data-ge-action", "drag-column");
1346
- const H = e.getCustomStyleAt(s, o);
1351
+ const H = e.getCustomStyleAt(i, o);
1347
1352
  if (H)
1348
1353
  for (const y in H)
1349
1354
  this.dom.setStyle(m, y, H[y]);
1350
1355
  return [m, M];
1351
1356
  }
1352
- getColumnWidths(e, t) {
1353
- const i = [];
1354
- for (let s = e; s <= t; s++)
1355
- i.push(this.tableModel.getColumnWidth(s));
1356
- return i;
1357
+ applyCssClasses(e, t = {}) {
1358
+ e && Object.entries(t).forEach(([s, i]) => {
1359
+ i ? this.dom.addClass(s, e) : this.dom.removeClass(s, e);
1360
+ });
1361
+ }
1362
+ rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: i, cssClasses: o }) {
1363
+ const n = this.tableModel.getAreaModel(e), a = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', r = document.querySelector(a);
1364
+ if (r) {
1365
+ let d;
1366
+ const p = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s ? this.editorRenderer : n.getCellRenderer(t, s);
1367
+ if (r.innerText = "", this.applyCssClasses(r, o), p)
1368
+ d = p.render(r, t, s, e, n, i, this.dom.domService), d && this.cleanupFunctions[e].push(d);
1369
+ else {
1370
+ const c = `${i}`;
1371
+ this.dom.addLabelDiv(r, c, !1, t, s, e);
1372
+ }
1373
+ const S = n.getCustomClassesAt(t, s);
1374
+ S.length && this.dom.addClasses(S, r);
1375
+ const f = n.getCustomStyleAt(t, s);
1376
+ if (f)
1377
+ for (const c in f)
1378
+ this.dom.setStyle(r, c, f[c]);
1379
+ }
1357
1380
  }
1358
- getRowHeights(e, t, i) {
1381
+ getColumnWidths(e, t) {
1359
1382
  const s = [];
1360
- for (let o = e; o <= t; o++)
1361
- s.push(i.getRowHeight(o));
1383
+ for (let i = e; i <= t; i++)
1384
+ s.push(this.tableModel.getColumnWidth(i));
1362
1385
  return s;
1363
1386
  }
1387
+ getRowHeights(e, t, s) {
1388
+ const i = [];
1389
+ for (let o = e; o <= t; o++)
1390
+ i.push(s.getRowHeight(o));
1391
+ return i;
1392
+ }
1364
1393
  adjustHoverRows(e) {
1365
1394
  if (this.tableOptions.hoverRowVisible && e.rowIndex > -1) {
1366
- const t = this.hostElement.clientWidth, i = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex), s = e.rowTop + this.areaHeaderCenter.parent.clientHeight - this.scrollTop;
1395
+ const t = this.hostElement.clientWidth, s = this.tableModel.getAreaModel("body").getRowHeight(e.rowIndex), i = e.rowTop + this.areaHeaderCenter.parent.clientHeight - this.scrollTop;
1367
1396
  this.dom.applyStyle(this.hoverRow, {
1368
1397
  left: "0",
1369
- top: s + "px",
1398
+ top: i + "px",
1370
1399
  width: t + "px",
1371
- height: i + "px",
1400
+ height: s + "px",
1372
1401
  display: "block"
1373
1402
  });
1374
1403
  } else
@@ -1381,11 +1410,11 @@ class Ne extends Pe {
1381
1410
  }
1382
1411
  adjustHoverColumns(e) {
1383
1412
  if (this.tableOptions.hoverColumnVisible && e.rowIndex > -1) {
1384
- const t = this.hostElement.clientHeight, i = this.tableModel.getColumnWidth(e.columnIndex), s = this.areaBodyWestGeo.width, o = e.columnLeft + this.tableModel.getPadding().left - this.scrollLeft - s;
1413
+ const t = this.hostElement.clientHeight, s = this.tableModel.getColumnWidth(e.columnIndex), i = this.areaBodyWestGeo.width, o = e.columnLeft + this.tableModel.getPadding().left - this.scrollLeft - i;
1385
1414
  this.dom.applyStyle(this.hoverColumn, {
1386
1415
  left: o + "px",
1387
1416
  top: "0px",
1388
- width: i + "px",
1417
+ width: s + "px",
1389
1418
  height: t + "px",
1390
1419
  display: "block"
1391
1420
  });
@@ -1400,35 +1429,35 @@ class Ne extends Pe {
1400
1429
  debounce(e, t = 1e3) {
1401
1430
  this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(e.bind(this), t);
1402
1431
  }
1403
- renderDragTargetDiv(e, t, i, s, o) {
1432
+ renderDragTargetDiv(e, t, s, i, o) {
1404
1433
  const n = this.dom.applyStylePosistionAbsolute(
1405
1434
  this.dom.createDivWithClass("ge-table-drop-zone", e)
1406
1435
  );
1407
- return this.dom.setStyle(n, "left", `${t}px`), this.dom.setStyle(n, "top", `${i}px`), this.dom.setStyle(n, "width", `${s}px`), this.dom.setStyle(n, "height", `${o}px`), n;
1436
+ return this.dom.setStyle(n, "left", `${t}px`), this.dom.setStyle(n, "top", `${s}px`), this.dom.setStyle(n, "width", `${i}px`), this.dom.setStyle(n, "height", `${o}px`), n;
1408
1437
  }
1409
- renderSelectedBackgroundDiv(e, t, i, s, o, n, a, r, d, h, p) {
1410
- let g = !1;
1411
- if (!e && t && s.isSelectable(o, n) && this.getSelectionModel) {
1438
+ renderSelectedBackgroundDiv(e, t, s, i, o, n, a, r, d, h, p) {
1439
+ let S = !1;
1440
+ if (!e && t && i.isSelectable(o, n) && this.getSelectionModel) {
1412
1441
  const f = this.getSelectionModel();
1413
1442
  if (f) {
1414
1443
  const c = f.getSelectionCount(o, n);
1415
- g = c > 0;
1444
+ S = c > 0;
1416
1445
  for (let b = 0; b < c; b++) {
1417
1446
  const u = this.dom.applyStylePosistionAbsolute(
1418
1447
  // ge-table-body-west-selected-range
1419
- this.dom.createDivWithClass(`ge-table-${s.areaIdent}-${i}-selected-range`, a)
1448
+ this.dom.createDivWithClass(`ge-table-${i.areaIdent}-${s}-selected-range`, a)
1420
1449
  );
1421
1450
  this.dom.setStyle(u, "left", `${r}px`), this.dom.setStyle(u, "top", `${d}px`), this.dom.setStyle(u, "width", `${h}px`), this.dom.setStyle(u, "height", `${p}px`);
1422
1451
  }
1423
1452
  }
1424
1453
  }
1425
- return g;
1454
+ return S;
1426
1455
  }
1427
1456
  renderCell({
1428
1457
  areaModel: e,
1429
1458
  areaIdent: t,
1430
- sideIdent: i,
1431
- rowIndex: s,
1459
+ sideIdent: s,
1460
+ rowIndex: i,
1432
1461
  columnIndex: o,
1433
1462
  left: n,
1434
1463
  top: a,
@@ -1436,28 +1465,28 @@ class Ne extends Pe {
1436
1465
  height: d,
1437
1466
  parent: h,
1438
1467
  cellSelected: p,
1439
- lastRowOfModel: g,
1468
+ lastRowOfModel: S,
1440
1469
  gammaRange: f
1441
1470
  }) {
1442
1471
  const [c, b] = this.addAndRenderCellDiv({
1443
1472
  areaModel: e,
1444
1473
  areaIdent: t,
1445
- sideIdent: i,
1446
- rowIndex: s,
1474
+ sideIdent: s,
1475
+ rowIndex: i,
1447
1476
  index: o,
1448
1477
  left: n,
1449
1478
  width: r,
1450
1479
  height: d,
1451
1480
  top: a,
1452
1481
  parent: h,
1453
- lastRowOfModel: g,
1482
+ lastRowOfModel: S,
1454
1483
  gammaRange: f
1455
1484
  });
1456
- p && this.dom.addClass(`ge-table-${t}-${i}-selected-range`, c), b && this.cleanupFunctions[t].push(b);
1485
+ p && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, c), b && this.cleanupFunctions[t].push(b);
1457
1486
  }
1458
- renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: i, cellTop: s, cellWidth: o, cellHeight: n, parent: a }) {
1487
+ renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: i, cellWidth: o, cellHeight: n, parent: a }) {
1459
1488
  const r = this.dom.domService, d = this.tableOptions.columnResizeHandleWidthInPx ?? 2, h = r.createElement("div");
1460
- 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", `${i + o - d}px`), r.setStyle(h, "top", `${s}px`), r.setStyle(h, "width", `${d}px`), r.setStyle(h, "height", `${n}px`), r.appendChild(a, h);
1489
+ 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 + o - d}px`), r.setStyle(h, "top", `${i}px`), r.setStyle(h, "width", `${d}px`), r.setStyle(h, "height", `${n}px`), r.appendChild(a, h);
1461
1490
  }
1462
1491
  }
1463
1492
  class je {
@@ -1465,21 +1494,21 @@ class je {
1465
1494
  this.columnIndex = e, this.sortState = t;
1466
1495
  }
1467
1496
  }
1468
- class ze {
1497
+ class Xe {
1469
1498
  constructor(e) {
1470
1499
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
1471
1500
  }
1472
1501
  onHostElementChanged(e) {
1473
1502
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
1474
- const t = e.target, i = t.getAttribute("data-area"), s = t.getAttribute("data-row-index"), o = t.getAttribute("data-col-index");
1475
- if (i && s && o) {
1476
- const n = Y(i), a = Number(s), r = Number(o);
1503
+ const t = e.target, s = t.getAttribute("data-area"), i = t.getAttribute("data-row-index"), o = t.getAttribute("data-col-index");
1504
+ if (s && i && o) {
1505
+ const n = Y(s), a = Number(i), r = Number(o);
1477
1506
  this.tableScope.updateModelValueAfterEdit(n, a, r, t.value);
1478
1507
  }
1479
1508
  }
1480
1509
  }
1481
1510
  }
1482
- class Xe {
1511
+ class ze {
1483
1512
  constructor(e = -1, t = -1) {
1484
1513
  this.rowIndex = e, this.columnIndex = t;
1485
1514
  }
@@ -1489,34 +1518,34 @@ class U {
1489
1518
  this.cells = e;
1490
1519
  }
1491
1520
  static createSingle(e, t) {
1492
- return new U([new Xe(e, t)]);
1521
+ return new U([new ze(e, t)]);
1493
1522
  }
1494
1523
  }
1495
1524
  class Ke {
1496
1525
  constructor(e) {
1497
- var t, i;
1498
- this.tableScope = e, (t = this.tableScope.tableOptions) != null && t.getSelectionModel && (this.getSelectionModel = this.tableScope.tableOptions.getSelectionModel), (i = this.tableScope.tableOptions) != null && i.getFocusModel && (this.getFocusModel = this.tableScope.tableOptions.getFocusModel);
1526
+ var t, s;
1527
+ 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);
1499
1528
  }
1500
1529
  onMouseClicked(e, t) {
1501
1530
  var o, n, a, r, d, h, p;
1502
- let i = !1, s = !1;
1531
+ let s = !1, i = !1;
1503
1532
  if (this.getSelectionModel && this.getFocusModel) {
1504
- const g = this.getSelectionModel(), f = this.getFocusModel();
1505
- g && f && (f.hasFocus(e.rowIndex, e.columnIndex) || (f.setFocus(e.rowIndex, e.columnIndex), i = !0), (o = e.originalEvent) != null && o.shiftKey || g.hasSelection() && (g.clear(), i = !0), (n = e.originalEvent) != null && n.shiftKey && this.previousEvt ? (g.addSelection(this.createRangeByEvents(e, this.previousEvt)), s = !0, i = !0) : (a = e.originalEvent) != null && a.ctrlKey || (r = e.originalEvent) != null && r.metaKey ? (g.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), s = !0, i = !0) : (d = e.originalEvent) != null && d.altKey && ((h = e.originalEvent) != null && h.ctrlKey || (p = e.originalEvent) != null && p.metaKey) && (g.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), s = !0, i = !0));
1533
+ const S = this.getSelectionModel(), f = this.getFocusModel();
1534
+ S && f && (f.hasFocus(e.rowIndex, e.columnIndex) || (f.setFocus(e.rowIndex, e.columnIndex), s = !0), (o = e.originalEvent) != null && o.shiftKey || S.hasSelection() && (S.clear(), s = !0), (n = e.originalEvent) != null && n.shiftKey && this.previousEvt ? (S.addSelection(this.createRangeByEvents(e, this.previousEvt)), i = !0, s = !0) : (a = e.originalEvent) != null && a.ctrlKey || (r = e.originalEvent) != null && r.metaKey ? (S.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), i = !0, s = !0) : (d = e.originalEvent) != null && d.altKey && ((h = e.originalEvent) != null && h.ctrlKey || (p = e.originalEvent) != null && p.metaKey) && (S.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), i = !0, s = !0));
1506
1535
  }
1507
- return s ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), i;
1536
+ return i ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
1508
1537
  }
1509
1538
  onActionTriggered(e) {
1510
1539
  if (this.getSelectionModel && this.getFocusModel) {
1511
- const t = this.getSelectionModel(), i = this.getFocusModel();
1512
- if (t && i) {
1540
+ const t = this.getSelectionModel(), s = this.getFocusModel();
1541
+ if (t && s) {
1513
1542
  if (e === "SELECT_ALL")
1514
1543
  return t.selectAll(), this.tableScope.repaint(), !0;
1515
1544
  if (e === "DESELECT_ALL")
1516
1545
  return t.clear(), this.tableScope.repaint(), !0;
1517
1546
  if (e === "TOGGLE_SELECTION") {
1518
- const [s, o] = i.getFocus();
1519
- return t.togglePoint(s, o), this.tableScope.repaint(), !0;
1547
+ const [i, o] = s.getFocus();
1548
+ return t.togglePoint(i, o), this.tableScope.repaint(), !0;
1520
1549
  }
1521
1550
  }
1522
1551
  }
@@ -1524,11 +1553,11 @@ class Ke {
1524
1553
  }
1525
1554
  createRangeByEvents(e, t) {
1526
1555
  t || (t = e);
1527
- const i = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), s = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), n = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
1556
+ const s = Math.min(e.rowIndex, t == null ? void 0 : t.rowIndex), i = Math.max(e.rowIndex, t == null ? void 0 : t.rowIndex), o = Math.min(e.columnIndex, t == null ? void 0 : t.columnIndex), n = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
1528
1557
  return A.create({
1529
- rowIndex1: i,
1558
+ rowIndex1: s,
1530
1559
  columnIndex1: o,
1531
- rowIndex2: s,
1560
+ rowIndex2: i,
1532
1561
  columnIndex2: n
1533
1562
  });
1534
1563
  }
@@ -1597,24 +1626,24 @@ class Ue {
1597
1626
  emit(e) {
1598
1627
  this.isDebug() && console.debug("ShortcutService emit:", e);
1599
1628
  let t = !1;
1600
- for (const i of this.listener)
1601
- i.onActionTriggered(e) && (t = !0);
1629
+ for (const s of this.listener)
1630
+ s.onActionTriggered(e) && (t = !0);
1602
1631
  return t;
1603
1632
  }
1604
1633
  findEnty(e) {
1605
1634
  const t = this.getTokenByEvent(e);
1606
1635
  this.isDebug() && console.debug("ShortcutService tokens:", t);
1607
- for (const i in this.shortcutActionIdMapping) {
1608
- const s = i.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[\+ ]/g).sort();
1609
- if (this.areTokensEquals(t, s))
1610
- return this.shortcutActionIdMapping[i];
1636
+ for (const s in this.shortcutActionIdMapping) {
1637
+ const i = s.replace(/opt/g, "alt").replace(/cmd/g, "meta").split(/[\+ ]/g).sort();
1638
+ if (this.areTokensEquals(t, i))
1639
+ return this.shortcutActionIdMapping[s];
1611
1640
  }
1612
1641
  }
1613
1642
  areTokensEquals(e, t) {
1614
1643
  if (e.length !== t.length || e.length === 0)
1615
1644
  return !1;
1616
- for (let i = 0; i < e.length; i++)
1617
- if (e[i] !== t[i])
1645
+ for (let s = 0; s < e.length; s++)
1646
+ if (e[s] !== t[s])
1618
1647
  return !1;
1619
1648
  return !0;
1620
1649
  }
@@ -1640,15 +1669,18 @@ class te {
1640
1669
  }
1641
1670
  }
1642
1671
  class ae {
1643
- setStyle(e, t, i) {
1644
- return e.style[t] = i, e;
1672
+ setStyle(e, t, s) {
1673
+ return e.style[t] = s, e;
1645
1674
  }
1646
1675
  appendText(e, t) {
1647
- const i = this.createText(t);
1648
- return this.appendChild(e, i), i;
1676
+ const s = this.createText(t);
1677
+ return this.appendChild(e, s), s;
1649
1678
  }
1650
1679
  addClass(e, t) {
1651
- return t.includes(" ") ? t.split(" ").forEach((i) => e.classList.add(i)) : e.classList.add(t), e;
1680
+ return t.includes(" ") ? t.split(" ").forEach((s) => e.classList.add(s)) : e.classList.add(t), e;
1681
+ }
1682
+ removeClass(e, t) {
1683
+ return t.includes(" ") ? t.split(" ").forEach((s) => e.classList.remove(s)) : e.classList.remove(t), e;
1652
1684
  }
1653
1685
  appendChild(e, t) {
1654
1686
  e.appendChild(t);
@@ -1659,15 +1691,15 @@ class ae {
1659
1691
  createText(e) {
1660
1692
  return document.createTextNode(e);
1661
1693
  }
1662
- setAttribute(e, t, i) {
1663
- e.setAttribute(t, i);
1694
+ setAttribute(e, t, s) {
1695
+ e.setAttribute(t, s);
1664
1696
  }
1665
1697
  }
1666
1698
  class Je {
1667
- render(e, t, i, s, o, n, a) {
1668
- if (o.isEditable(t, i)) {
1699
+ render(e, t, s, i, o, n, a) {
1700
+ if (o.isEditable(t, s)) {
1669
1701
  a.addClass(e, "ge-table-row-input-div");
1670
- const r = o.getValueAt(t, i);
1702
+ const r = o.getValueAt(t, s);
1671
1703
  e.innerHTML = `
1672
1704
  <input
1673
1705
  type="text"
@@ -1675,9 +1707,9 @@ class Je {
1675
1707
  autofocus
1676
1708
  onfocus="this.setSelectionRange(0, this.value.length)"
1677
1709
  data-listen="change"
1678
- data-area="${s}"
1710
+ data-area="${i}"
1679
1711
  data-row-index="${t}"
1680
- data-col-index="${i}"
1712
+ data-col-index="${s}"
1681
1713
  data-input-type="text"
1682
1714
  style="width:calc(100% - 8px);height:100%;border:0;padding:0 0 0 8px;"
1683
1715
  class="ge-table-cell-editor-input">`;
@@ -1689,14 +1721,14 @@ class Qe {
1689
1721
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
1690
1722
  }
1691
1723
  getSelectionCount(e, t) {
1692
- let i = 0;
1693
- for (const s of this.ranges)
1694
- s.isInRange(e, t) && i++;
1695
- return this.allSelected && i++, this.isInNegativeRange(e, t) && (i = 0), i;
1724
+ let s = 0;
1725
+ for (const i of this.ranges)
1726
+ i.isInRange(e, t) && s++;
1727
+ return this.allSelected && s++, this.isInNegativeRange(e, t) && (s = 0), s;
1696
1728
  }
1697
1729
  isInNegativeRange(e, t) {
1698
- for (const i of this.negativeRanges)
1699
- if (i.isInRange(e, t))
1730
+ for (const s of this.negativeRanges)
1731
+ if (s.isInRange(e, t))
1700
1732
  return !0;
1701
1733
  return !1;
1702
1734
  }
@@ -1762,26 +1794,26 @@ class de {
1762
1794
  }
1763
1795
  }
1764
1796
  class J extends Ne {
1765
- constructor(e, t, i, s, o) {
1797
+ constructor(e, t, s, i, o) {
1766
1798
  var n;
1767
1799
  if (super(
1768
1800
  e,
1769
1801
  t,
1770
- new Fe(i),
1771
- s
1802
+ new Fe(s),
1803
+ i
1772
1804
  ), this.eventListener = o, this.selectionService = new Ke(this), this.api = new _e(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, o || (this.eventListener = new te()), (n = this.tableOptions) != null && n.autoRestoreOptions) {
1773
1805
  const a = this.tableOptions.autoRestoreOptions, r = a.getStorageKeyFn;
1774
1806
  r && (a.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Be(r)), a.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new He(r)), a.autoRestoreSortingState && (this.storeSortingService = new ke(r)));
1775
1807
  }
1776
- this.mouseHandler = new Le(this), this.inputHandler = new ze(this), this.shortcutService = new Ue(this), this.shortcutService.addListener(this.selectionService);
1808
+ this.mouseHandler = new Le(this), this.inputHandler = new Xe(this), this.shortcutService = new Ue(this), this.shortcutService.addListener(this.selectionService);
1777
1809
  }
1778
- static create(e, t, i = new de(), s = new te(), o = new ae()) {
1810
+ static create(e, t, s = new de(), i = new te(), o = new ae()) {
1779
1811
  return new J(
1780
1812
  e,
1781
1813
  t,
1782
1814
  o,
1783
- i,
1784
- s
1815
+ s,
1816
+ i
1785
1817
  );
1786
1818
  }
1787
1819
  onActionTriggered(e) {
@@ -1790,15 +1822,15 @@ class J extends Ne {
1790
1822
  if (e === "START_EDITING" && this.getFocusModel) {
1791
1823
  const t = this.getFocusModel();
1792
1824
  if (t) {
1793
- const [i, s] = t.getFocus();
1794
- this.tableModel.getBodyModel().isEditable(i, s) && (this.clearSelection(), this.initRenderEditor(i, s));
1825
+ const [s, i] = t.getFocus();
1826
+ this.tableModel.getBodyModel().isEditable(s, i) && (this.clearSelection(), this.initRenderEditor(s, i));
1795
1827
  }
1796
1828
  return !0;
1797
1829
  }
1798
1830
  return !1;
1799
1831
  }
1800
- updateModelValueAfterEdit(e, t, i, s) {
1801
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, i, s) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(U.createSingle(t, i)), this.hostElement.focus());
1832
+ updateModelValueAfterEdit(e, t, s, i) {
1833
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, i) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(U.createSingle(t, s)), this.hostElement.focus());
1802
1834
  }
1803
1835
  getApi() {
1804
1836
  return this.api;
@@ -1813,14 +1845,14 @@ class J extends Ne {
1813
1845
  createGeMouseEvent(e) {
1814
1846
  const t = new K();
1815
1847
  if (t.originalEvent = e, e) {
1816
- const i = e.target;
1817
- if ([t.areaIdent, t.sideIdent] = this.getAreaAndSideIdentByAttr(i), t.rowIndex = this.getNumberByAttr(i, "data-row-index"), t.columnIndex = this.getNumberByAttr(i, "data-col-index"), t.action = this.getStringByAttr(i, "data-ge-action"), t.areaIdent) {
1818
- const s = this.tableModel.getAreaModel(t.areaIdent);
1819
- t.rowTop = s.getYPosByRowIndex(t.rowIndex);
1848
+ const s = e.target;
1849
+ 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) {
1850
+ const i = this.tableModel.getAreaModel(t.areaIdent);
1851
+ t.rowTop = i.getYPosByRowIndex(t.rowIndex);
1820
1852
  }
1821
1853
  if (t.columnLeft = this.tableModel.getXPosByColumnIndex(t.columnIndex), e.ctrlKey && e.altKey) {
1822
- const s = e.clientY - this.hostElement.offsetTop - this.areaHeaderCenter.parent.clientHeight, o = e.clientX - this.hostElement.offsetLeft - this.areaBodyWestGeo.width;
1823
- this.debugOnce(o, s);
1854
+ const i = e.clientY - this.hostElement.offsetTop - this.areaHeaderCenter.parent.clientHeight, o = e.clientX - this.hostElement.offsetLeft - this.areaBodyWestGeo.width;
1855
+ this.debugOnce(o, i);
1824
1856
  }
1825
1857
  }
1826
1858
  return t;
@@ -1841,44 +1873,44 @@ class J extends Ne {
1841
1873
  this.eventListener.onContextmenu(e);
1842
1874
  }
1843
1875
  toggleExpandCollapseAll(e = !0) {
1844
- var i;
1876
+ var s;
1845
1877
  const t = this.tableModel.getBodyModel();
1846
- z(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (i = this.storeStateCollapsedExpandService) == null || i.collapsedStateAll(e));
1878
+ X(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
1847
1879
  }
1848
- toggleRowCheckbox(e, t, i) {
1880
+ toggleRowCheckbox(e, t, s) {
1849
1881
  var r;
1850
- const s = this.tableModel.getAreaModel(i), o = s.isRowChecked(e), n = o === void 0 || o === "semi" || o === "none";
1851
- s.setRowChecked(e, n), this.repaint();
1852
- const a = (r = s.rowSelectionModel) == null ? void 0 : r.getCheckedRows();
1882
+ const i = this.tableModel.getAreaModel(s), o = i.isRowChecked(e), n = o === void 0 || o === "semi" || o === "none";
1883
+ i.setRowChecked(e, n), this.repaint();
1884
+ const a = (r = i.rowSelectionModel) == null ? void 0 : r.getCheckedRows();
1853
1885
  this.eventListener.onCheckboxChanged(a || []);
1854
1886
  }
1855
1887
  onMouseClicked(e, t) {
1856
- let i = this.selectionService.onMouseClicked(e, t);
1857
- if (!i && this.getFocusModel) {
1858
- const s = this.getFocusModel();
1859
- s && (i = s.hasChanged(), s.clearChanged(), i && this.resetEditorRenderer());
1888
+ let s = this.selectionService.onMouseClicked(e, t);
1889
+ if (!s && this.getFocusModel) {
1890
+ const i = this.getFocusModel();
1891
+ i && (s = i.hasChanged(), i.clearChanged(), s && this.resetEditorRenderer());
1860
1892
  }
1861
- this.eventListener.onMouseClicked(e), i && this.debounce(this.repaint.bind(this), 10);
1893
+ this.eventListener.onMouseClicked(e), s && this.debounce(this.repaint.bind(this), 10);
1862
1894
  }
1863
1895
  externalFilterChanged(e = !0) {
1864
1896
  const t = this.tableOptions.externalFilterFunction;
1865
1897
  t && (e && this.clearSelectionModel(), this.tableModel.externalFilterChanged(t), this.scrollViewport.scrollTo(0, 0), this.tableModel.recalcHeightAndPadding(), this.resetSizeOfWrapperDiv(), this.repaint());
1866
1898
  }
1867
- onHeaderDblClicked(e, t, i) {
1899
+ onHeaderDblClicked(e, t, s) {
1868
1900
  var o, n;
1869
- const s = this.tableModel.getColumnDef(i);
1870
- if (s != null && s.sortable && s.sortable()) {
1901
+ const i = this.tableModel.getColumnDef(s);
1902
+ if (i != null && i.sortable && i.sortable()) {
1871
1903
  e.preventDefault(), e.stopPropagation();
1872
- const a = s.sortStatesOrder ? s.sortStatesOrder : this.tableOptions.sortOrder, r = s.sortState ?? "", d = a[(a.indexOf(r) + 1) % a.length], h = new je(i, d);
1873
- this.tableModel.doSort([h]) && ((o = this.tableModel.getColumnDefs()) == null || o.forEach((g) => g.sortState = ""), s.sortState = d), this.repaint(), (n = this.storeSortingService) == null || n.setSortItems([h]);
1904
+ const a = i.sortStatesOrder ? i.sortStatesOrder : this.tableOptions.sortOrder, r = i.sortState ?? "", d = a[(a.indexOf(r) + 1) % a.length], h = new je(s, d);
1905
+ this.tableModel.doSort([h]) && ((o = this.tableModel.getColumnDefs()) == null || o.forEach((S) => S.sortState = ""), i.sortState = d), this.repaint(), (n = this.storeSortingService) == null || n.setSortItems([h]);
1874
1906
  }
1875
1907
  }
1876
1908
  changeFocusCell(e, t) {
1877
1909
  if (!this.isEditing() && this.getFocusModel) {
1878
- const i = this.getFocusModel();
1879
- if (i) {
1880
- const [s, o] = i.getFocus();
1881
- return i.setFocus(s + t, o + e), this.repaint(), !0;
1910
+ const s = this.getFocusModel();
1911
+ if (s) {
1912
+ const [i, o] = s.getFocus();
1913
+ return s.setFocus(i + t, o + e), this.repaint(), !0;
1882
1914
  }
1883
1915
  }
1884
1916
  return !1;
@@ -1891,30 +1923,30 @@ class J extends Ne {
1891
1923
  this.getSelectionModel && ((e = this.getSelectionModel()) == null || e.clear());
1892
1924
  }
1893
1925
  debugOnce(e, t) {
1894
- var i;
1895
- 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", (i = this.mouseHandler.mouseEvent) == null ? void 0 : i.clientX), console.info("this.hostElement.offsetLeft", this.hostElement.offsetLeft), console.info("this.areaBodyWestGeo.width", this.areaBodyWestGeo.width);
1926
+ var s;
1927
+ 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);
1896
1928
  }
1897
1929
  autoRestoreScrollPosition() {
1898
1930
  var e;
1899
1931
  if ((e = this.tableOptions) != null && e.autoRestoreOptions && this.storeScrollPosStateService && this.tableOptions.autoRestoreOptions.autoRestoreScrollPosition) {
1900
- const i = this.storeScrollPosStateService.getScrollOffset();
1901
- i && this.scrollViewport.scrollTo(...i);
1932
+ const s = this.storeScrollPosStateService.getScrollOffset();
1933
+ s && this.scrollViewport.scrollTo(...s);
1902
1934
  }
1903
1935
  }
1904
1936
  autoRestoreSortingState() {
1905
1937
  var e, t;
1906
1938
  if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.autoRestoreSortingState && this.storeSortingService) {
1907
- const i = this.storeSortingService.getSortItems();
1908
- i != null && i.length && this.tableModel.getBodyModel().doSort(i);
1939
+ const s = this.storeSortingService.getSortItems();
1940
+ s != null && s.length && this.tableModel.getBodyModel().doSort(s);
1909
1941
  }
1910
1942
  }
1911
1943
  autoRestoreCollapsedExpandedState() {
1912
1944
  var e, t;
1913
1945
  if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.getRowId && this.storeStateCollapsedExpandService) {
1914
- const i = this.tableOptions.autoRestoreOptions, s = i.getRowId;
1915
- if (i.autoRestoreCollapsedExpandedState && s) {
1946
+ const s = this.tableOptions.autoRestoreOptions, i = s.getRowId;
1947
+ if (s.autoRestoreCollapsedExpandedState && i) {
1916
1948
  const o = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), n = this.tableModel.getAreaModel("body");
1917
- if (z(n)) {
1949
+ if (X(n)) {
1918
1950
  const a = n, r = n.getRowCount();
1919
1951
  for (let d = 0; d < r; d++) {
1920
1952
  const h = n.getRowByIndex(d);
@@ -1924,7 +1956,7 @@ class J extends Ne {
1924
1956
  else if (o.allCollapsed)
1925
1957
  h.expanded = !1;
1926
1958
  else {
1927
- const p = s(h.data);
1959
+ const p = i(h.data);
1928
1960
  o.mode === "expanded" ? h.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(p) : o.mode === "collapsed" && (h.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(p));
1929
1961
  }
1930
1962
  }
@@ -1934,14 +1966,14 @@ class J extends Ne {
1934
1966
  }
1935
1967
  }
1936
1968
  }
1937
- function it(l) {
1969
+ function st(l) {
1938
1970
  let e;
1939
1971
  return {
1940
1972
  c() {
1941
1973
  e = me("div"), e.innerHTML = "", be(e, "class", "ge-table"), L(e, "width", "100%"), L(e, "height", "100%"), L(e, "background-color", "transparent"), L(e, "padding", "0"), L(e, "margin", "0");
1942
1974
  },
1943
- m(t, i) {
1944
- fe(t, e, i), l[3](e);
1975
+ m(t, s) {
1976
+ fe(t, e, s), l[3](e);
1945
1977
  },
1946
1978
  p: F,
1947
1979
  i: F,
@@ -1951,8 +1983,8 @@ function it(l) {
1951
1983
  }
1952
1984
  };
1953
1985
  }
1954
- function st(l, e, t) {
1955
- let { tableModel: i } = e, { tableOptions: s = new de() } = e, o;
1986
+ function it(l, e, t) {
1987
+ let { tableModel: s } = e, { tableOptions: i = new de() } = e, o;
1956
1988
  const n = pe();
1957
1989
  ue(() => {
1958
1990
  const r = {
@@ -1977,7 +2009,7 @@ function st(l, e, t) {
1977
2009
  onMouseMoved: (h) => {
1978
2010
  n("mouseMoved", h);
1979
2011
  }
1980
- }, d = new J(o, i, new ae(), s, r);
2012
+ }, d = new J(o, s, new ae(), i, r);
1981
2013
  d.firstInit(), n("tableReady", d.getApi());
1982
2014
  });
1983
2015
  function a(r) {
@@ -1986,26 +2018,26 @@ function st(l, e, t) {
1986
2018
  });
1987
2019
  }
1988
2020
  return l.$$set = (r) => {
1989
- "tableModel" in r && t(1, i = r.tableModel), "tableOptions" in r && t(2, s = r.tableOptions);
1990
- }, [o, i, s, a];
2021
+ "tableModel" in r && t(1, s = r.tableModel), "tableOptions" in r && t(2, i = r.tableOptions);
2022
+ }, [o, s, i, a];
1991
2023
  }
1992
2024
  class rt extends Ie {
1993
2025
  constructor(e) {
1994
- super(), De(this, e, st, it, Se, { tableModel: 1, tableOptions: 2 });
2026
+ super(), De(this, e, it, st, Se, { tableModel: 1, tableOptions: 2 });
1995
2027
  }
1996
2028
  }
1997
2029
  class nt {
1998
2030
  constructor(e) {
1999
2031
  this.Component = e;
2000
2032
  }
2001
- render(e, t, i, s, o, n, a) {
2033
+ render(e, t, s, i, o, n, a) {
2002
2034
  const r = new this.Component({
2003
2035
  target: e,
2004
2036
  props: {
2005
2037
  cellDiv: e,
2006
2038
  rowIndex: t,
2007
- columnIndex: i,
2008
- areaIdent: s,
2039
+ columnIndex: s,
2040
+ areaIdent: i,
2009
2041
  areaModel: o,
2010
2042
  cellValue: n
2011
2043
  }