@guiexpert/vue3-table 1.0.16 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,10 +1,16 @@
1
- import { defineComponent as G, ref as N, onMounted as z, openBlock as j, createElementBlock as X, createVNode as K, render as k } from "vue";
2
- class B {
3
- constructor(e = -1, t = -1, s = -1, i = -1, o, r, l, n = 0, a = 0, d = 0, S = "") {
4
- this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = i, this.areaIdent = o, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX = a, this.draggingY = d, this.action = S;
1
+ import { defineComponent as z, ref as K, onMounted as Y, openBlock as q, createElementBlock as U, createVNode as J, render as k } from "vue";
2
+ function L(h) {
3
+ return h && h.type === "TreeRow";
4
+ }
5
+ function O(h) {
6
+ return h && h.type === "AreaModelTree";
7
+ }
8
+ class $ {
9
+ constructor(e = -1, t = -1, s = -1, i = -1, o, l, n, r = 0, a = 0, d = 0, S = "") {
10
+ this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = i, this.areaIdent = o, this.sideIdent = l, this.originalEvent = n, this.clickCount = r, this.draggingX = a, this.draggingY = d, this.action = S;
5
11
  }
6
12
  clone() {
7
- return new B(
13
+ return new $(
8
14
  this.rowIndex,
9
15
  this.rowTop,
10
16
  this.columnIndex,
@@ -19,25 +25,25 @@ class B {
19
25
  );
20
26
  }
21
27
  }
22
- class I {
28
+ class D {
23
29
  constructor(e = ">", t = "", s = []) {
24
30
  this.content = e, this.style = t, this.classes = s;
25
31
  }
26
32
  }
27
- class H {
28
- constructor(e = new I(
33
+ class G {
34
+ constructor(e = new D(
29
35
  ">",
30
36
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
31
37
  ["gt-table-tree-arrow-expanded"]
32
- ), t = new I(
38
+ ), t = new D(
33
39
  ">",
34
40
  "",
35
41
  ["ge-table-tree-arrow-collapsed"]
36
- ), s = new I(
42
+ ), s = new D(
37
43
  ">",
38
44
  "color:transparent;",
39
45
  ["gt-table-tree-arrow-hidden"]
40
- ), i = new I(
46
+ ), i = new D(
41
47
  "↕",
42
48
  "",
43
49
  ["gt-table-tree-arrow-expanded-all"]
@@ -45,12 +51,12 @@ class H {
45
51
  this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = i;
46
52
  }
47
53
  }
48
- class W {
49
- constructor(e = new I("↑", "", ["ge-header-sorted-asc"]), t = new I("↓", "", ["ge-header-sorted-desc"]), s = new I("↑", "color:transparent;", [])) {
54
+ class N {
55
+ constructor(e = new D("↑", "", ["ge-header-sorted-asc"]), t = new D("↓", "", ["ge-header-sorted-desc"]), s = new D("↑", "color:transparent;", [])) {
50
56
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
51
57
  }
52
58
  }
53
- class Y {
59
+ class Q {
54
60
  constructor(e) {
55
61
  this.domService = e;
56
62
  }
@@ -103,6 +109,9 @@ class Y {
103
109
  addClass(e, t) {
104
110
  return e.includes(" ") ? e.split(" ").forEach((s) => this.domService.addClass(t, s)) : this.domService.addClass(t, e), t;
105
111
  }
112
+ removeClass(e, t) {
113
+ return e.includes(" ") ? e.split(" ").forEach((s) => this.domService.removeClass(t, s)) : this.domService.removeClass(t, e), t;
114
+ }
106
115
  addClasses(e, t) {
107
116
  if (e)
108
117
  for (const s of e)
@@ -120,83 +129,83 @@ class Y {
120
129
  const s = this.domService.createElement("div");
121
130
  return this.addClass(e, s), this.domService.appendChild(t, s), s;
122
131
  }
123
- addRowDiv(e, t, s = -1, i, o, r = "") {
124
- const l = t.index ?? -1, n = this.getDivOrCreateDiv(l, e);
125
- if (this.domService.addClass(n, "ge-table-row-div"), this.domService.addClass(n, `ge-table-row-div-${t.index}`), i === "body" && o === "center") {
132
+ addRowDiv(e, t, s = -1, i, o, l = "") {
133
+ const n = t.index ?? -1, r = this.getDivOrCreateDiv(n, e);
134
+ if (this.domService.addClass(r, "ge-table-row-div"), this.domService.addClass(r, `ge-table-row-div-${t.index}`), i === "body" && o === "center") {
126
135
  const a = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
127
- this.domService.addClass(n, `ge-table-row-${a}`);
136
+ this.domService.addClass(r, `ge-table-row-${a}`);
128
137
  }
129
- if (this.domService.setStyle(n, "display", "clip"), this.domService.setStyle(n, "position", "absolute"), this.domService.setStyle(n, "left", `${t.left}px`), this.domService.setStyle(n, "top", `${t.top}px`), this.domService.setStyle(n, "width", `${t.width}px`), this.domService.setStyle(n, "height", `${t.height}px`), this.domService.setAttribute(n, "data-row-index", `${s}`), this.domService.setAttribute(n, "data-area", `${i}`), r) {
130
- const a = this.domService.createText(r);
131
- this.domService.appendChild(n, a);
138
+ 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}`), l) {
139
+ const a = this.domService.createText(l);
140
+ this.domService.appendChild(r, a);
132
141
  }
133
- return this.domService.appendChild(e.child, n), n;
142
+ return this.domService.appendChild(e.child, r), r;
134
143
  }
135
- addColumnDiv(e, t, s = -1, i = -1, o, r, l = "", n, a, d = void 0, S) {
136
- const g = a == null ? void 0 : a.treeOptions, f = a == null ? void 0 : a.showCheckboxWihoutExtraColumn, c = this.domService.createElement("div");
144
+ addColumnDiv(e, t, s = -1, i = -1, o, l, n = "", r, a, d = void 0, S) {
145
+ const g = a == null ? void 0 : a.treeOptions, m = a == null ? void 0 : a.showCheckboxWihoutExtraColumn, c = this.domService.createElement("div");
137
146
  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}`);
138
147
  const b = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
139
- if (o === "body" && r === "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`), n && n !== "none" && (this.domService.addClass(c, "ge-table-col-tree"), this.addArrowDiv(c, n, g, s, i, o)), f && i === 0 && d && this.addCheckboxToDiv(c, d, o, s), l) {
140
- const p = n !== "none" && i === 0;
141
- this.addLabelDiv(c, l, p, s, i, o);
148
+ if (o === "body" && l === "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, s, i, o)), m && i === 0 && d && this.addCheckboxToDiv(c, d, o, s), n) {
149
+ const p = r !== "none" && i === 0;
150
+ this.addLabelDiv(c, n, p, s, i, o);
142
151
  }
143
152
  return S && this.addSortedIcon(c, S, a == null ? void 0 : a.sortedOptions, i), this.domService.appendChild(e, c), c;
144
153
  }
145
154
  addCheckboxToDiv(e, t, s, i) {
146
- const o = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
155
+ const o = this.domService.createElement("div"), l = t === "full" ? "checked" : "";
147
156
  return o.innerHTML = `
148
157
  <input
149
158
  type="checkbox"
150
159
  data-area="${s}"
151
160
  data-row-index="${i}"
152
161
  data-input-type="checkbox"
153
- ${r}
162
+ ${l}
154
163
  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;
155
164
  }
156
- addLabelDiv(e, t = "", s = !1, i = -1, o = -1, r = "body") {
157
- const l = this.domService.createElement("div");
158
- if (this.domService.addClass(l, "ge-table-label-div"), this.domService.setStyle(l, "position", "relative"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "width", "100%"), this.domService.setStyle(l, "height", "100%"), this.domService.setAttribute(l, "data-row-index", `${i}`), this.domService.setAttribute(l, "data-col-index", `${o}`), this.domService.setAttribute(l, "data-area", `${r}`), t)
165
+ addLabelDiv(e, t = "", s = !1, i = -1, o = -1, l = "body") {
166
+ const n = this.domService.createElement("div");
167
+ if (this.domService.addClass(n, "ge-table-label-div"), this.domService.setStyle(n, "position", "relative"), this.domService.setStyle(n, "background", "transparent"), this.domService.setStyle(n, "width", "100%"), this.domService.setStyle(n, "height", "100%"), this.domService.setAttribute(n, "data-row-index", `${i}`), this.domService.setAttribute(n, "data-col-index", `${o}`), this.domService.setAttribute(n, "data-area", `${l}`), t)
159
168
  if (s) {
160
- const n = this.domService.createText(t);
161
- this.domService.appendChild(l, n);
169
+ const r = this.domService.createText(t);
170
+ this.domService.appendChild(n, r);
162
171
  } else {
163
- const n = this.domService.createElement("div");
164
- this.domService.appendChild(l, n);
172
+ const r = this.domService.createElement("div");
173
+ this.domService.appendChild(n, r);
165
174
  const a = this.domService.createText(t);
166
- this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n, a), this.domService.setAttribute(n, "data-row-index", `${i}`), this.domService.setAttribute(n, "data-col-index", `${o}`), this.domService.setAttribute(n, "data-area", `${r}`);
175
+ this.domService.addClass(r, "ge-table-label"), this.domService.appendChild(r, a), this.domService.setAttribute(r, "data-row-index", `${i}`), this.domService.setAttribute(r, "data-col-index", `${o}`), this.domService.setAttribute(r, "data-area", `${l}`);
167
176
  }
168
- return this.domService.appendChild(e, l), l;
177
+ return this.domService.appendChild(e, n), n;
169
178
  }
170
- addSortedIcon(e, t = "", s = new W(), i = -1) {
179
+ addSortedIcon(e, t = "", s = new N(), i = -1) {
171
180
  const o = this.domService.createElement("div");
172
181
  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");
173
- let r;
174
- t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
175
- const l = r.content, n = this.domService.createText(l);
176
- this.domService.appendChild(o, n), r.style && this.applyStyleString(o, r.style);
177
- for (const a of r.classes)
182
+ let l;
183
+ t === "asc" ? l = s.iconAsc : t === "desc" ? l = s.iconDesc : l = s.iconPlaceholder;
184
+ const n = l.content, r = this.domService.createText(n);
185
+ this.domService.appendChild(o, r), l.style && this.applyStyleString(o, l.style);
186
+ for (const a of l.classes)
178
187
  this.domService.addClass(o, a);
179
188
  return this.domService.appendChild(e, o), o;
180
189
  }
181
- addArrowDiv(e, t = "none", s = new H(), i = -1, o = -1, r = "body") {
182
- const l = this.domService.createElement("div");
183
- this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${i}`), this.domService.setAttribute(l, "data-col-index", `${o}`), this.domService.setAttribute(l, "data-area", `${r}`);
184
- let n;
185
- t === "expanded" ? n = s.arrowExpanded : t === "collapsed" ? n = s.arrowCollapsed : n = s.arrowPlaceholder;
186
- const a = n.content, d = this.domService.createText(a);
187
- this.domService.appendChild(l, d), n.style && this.applyStyleString(l, n.style);
188
- for (const S of n.classes)
189
- this.domService.addClass(l, S);
190
- return this.domService.appendChild(e, l), l;
190
+ addArrowDiv(e, t = "none", s = new G(), i = -1, o = -1, l = "body") {
191
+ const n = this.domService.createElement("div");
192
+ this.domService.addClass(n, "ge-table-tree-arrow-div"), this.domService.setStyle(n, "display", "inline-block"), this.domService.setStyle(n, "position", ""), this.domService.setStyle(n, "width", "20px"), this.domService.setStyle(n, "background", "transparent"), this.domService.setStyle(n, "cursor", "pointer"), this.domService.setAttribute(n, "data-row-index", `${i}`), this.domService.setAttribute(n, "data-col-index", `${o}`), this.domService.setAttribute(n, "data-area", `${l}`);
193
+ let r;
194
+ t === "expanded" ? r = s.arrowExpanded : t === "collapsed" ? r = s.arrowCollapsed : r = s.arrowPlaceholder;
195
+ const a = r.content, d = this.domService.createText(a);
196
+ this.domService.appendChild(n, d), r.style && this.applyStyleString(n, r.style);
197
+ for (const S of r.classes)
198
+ this.domService.addClass(n, S);
199
+ return this.domService.appendChild(e, n), n;
191
200
  }
192
201
  addColumnBorderDivs(e, t, s, i, o) {
193
202
  if (e.verticalBorderVisible) {
194
- const r = `ge-table-${i}-${o}-vertical-border`;
195
- this.addVerticalBorder(s, t, r);
203
+ const l = `ge-table-${i}-${o}-vertical-border`;
204
+ this.addVerticalBorder(s, t, l);
196
205
  }
197
206
  if (e.horizontalBorderVisible) {
198
- const r = `ge-table-${i}-${o}-horizontal-border`;
199
- this.addHorizontalBorder(s, t, r);
207
+ const l = `ge-table-${i}-${o}-horizontal-border`;
208
+ this.addHorizontalBorder(s, t, l);
200
209
  }
201
210
  return t;
202
211
  }
@@ -219,8 +228,8 @@ class Y {
219
228
  applyStyleString(e, t) {
220
229
  const s = t.split(";").map((i) => i.trim()).filter((i) => i);
221
230
  for (const i of s) {
222
- const [o, r] = i.split(":");
223
- this.domService.setStyle(e, o.trim(), r.trim());
231
+ const [o, l] = i.split(":");
232
+ this.domService.setStyle(e, o.trim(), l.trim());
224
233
  }
225
234
  }
226
235
  getDivOrCreateDiv(e, t) {
@@ -228,25 +237,20 @@ class Y {
228
237
  return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
229
238
  }
230
239
  }
231
- class O {
232
- constructor(e, t = !0, s, i, o = 0, r = !1, l = !1) {
233
- this.data = e, this.expanded = t, this.children = s, this.parent = i, this.deep = o, this.checked = r, this.keep = l;
234
- }
235
- }
236
- const $ = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
237
- class q {
240
+ const B = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
241
+ class Z {
238
242
  constructor(e, t) {
239
243
  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)) {
240
244
  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"));
241
245
  const s = e.getAttribute("data-area");
242
- if (s && (this.areaIdent = $(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
246
+ if (s && (this.areaIdent = B(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
243
247
  const i = e;
244
248
  this.value = i.value;
245
249
  }
246
250
  }
247
251
  }
248
252
  }
249
- class U {
253
+ class ee {
250
254
  constructor(e) {
251
255
  this.tableScope = e, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
252
256
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -258,12 +262,12 @@ class U {
258
262
  this.tableScope.contextmenu(t);
259
263
  }
260
264
  onHostElementClicked(e) {
261
- const t = new q(e.target, this.tableScope);
265
+ const t = new Z(e.target, this.tableScope);
262
266
  if (t.action === "toggleExpandCollapseAll")
263
267
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
264
268
  else if (t.inputType === "checkbox" && t.areaIdent)
265
269
  this.tableScope.toggleRowCheckbox(t.rowIdx, t.colIdx, t.areaIdent), e.preventDefault(), e.stopPropagation();
266
- else if (t.row instanceof O && t.areaModel) {
270
+ else if (L(t.row) && t.areaModel) {
267
271
  const s = t.colIdx === this.getArrowColumnIndex() && e.altKey, i = t.className.includes("ge-table-tree-arrow-div");
268
272
  if (console.info(i, s), s || i) {
269
273
  e.preventDefault(), e.stopPropagation();
@@ -279,15 +283,15 @@ class U {
279
283
  }
280
284
  onHostElementDblClicked(e) {
281
285
  if (e.target instanceof HTMLElement) {
282
- const t = e.target, s = t.getAttribute("data-area"), i = $(s), o = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(i);
286
+ const t = e.target, s = t.getAttribute("data-area"), i = B(s), o = Number(t.getAttribute("data-row-index")), l = Number(t.getAttribute("data-col-index")), n = this.tableScope.tableModel.getAreaModel(i);
283
287
  if (s && i === "header")
284
- this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, o, r));
288
+ this.tableScope.tableModel.isSortable(l) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, o, l));
285
289
  else if (t.getAttribute("data-row-index")) {
286
- const n = l.getRowByIndex(o);
287
- if (s && i === "body" && l.isEditable(o, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(o, r)), n instanceof O && r === this.getArrowColumnIndex()) {
290
+ const r = n.getRowByIndex(o);
291
+ if (s && i === "body" && n.isEditable(o, l) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(o, l)), L(r) && l === this.getArrowColumnIndex()) {
288
292
  e.preventDefault(), e.stopPropagation();
289
- const a = n;
290
- a.expanded = !a.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(a);
293
+ const a = r;
294
+ a.expanded = !a.expanded, "recalcVisibleTreeRows" in n && n.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(a);
291
295
  }
292
296
  }
293
297
  }
@@ -298,11 +302,11 @@ class U {
298
302
  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);
299
303
  }
300
304
  updateCollapsedExpandedState(e) {
301
- var s, i, o, r, l;
305
+ var s, i, o, l, n;
302
306
  const t = (i = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : i.getRowId;
303
307
  if (t) {
304
- const n = (o = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : o.collapsedExpandedStateGet().mode, a = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, d = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded, S = t(e.data);
305
- a ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(S) : d && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(S));
308
+ const r = (o = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : o.collapsedExpandedStateGet().mode, a = r === "collapsed" && !e.expanded || r === "expanded" && e.expanded, d = r === "collapsed" && e.expanded || r === "expanded" && !e.expanded, S = t(e.data);
309
+ a ? (l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsPush(S) : d && ((n = this.tableScope.storeStateCollapsedExpandService) == null || n.collapsedStateIdsRemove(S));
306
310
  }
307
311
  }
308
312
  getArrowColumnIndex() {
@@ -338,12 +342,12 @@ class U {
338
342
  }
339
343
  }
340
344
  }
341
- class J {
345
+ class te {
342
346
  constructor(e) {
343
347
  this.tableScope = e;
344
348
  }
345
- updateCells(e) {
346
- this.tableScope.updateCells(e);
349
+ updateCells(e, t = !1) {
350
+ this.tableScope.updateCells(e, t);
347
351
  }
348
352
  externalFilterChanged() {
349
353
  this.tableScope.externalFilterChanged();
@@ -371,231 +375,7 @@ class J {
371
375
  this.tableScope.repaint();
372
376
  }
373
377
  }
374
- class Q {
375
- flattenTree(e, t = []) {
376
- var s;
377
- for (const i of e)
378
- this.isVisible(i) && t.push(i), (s = i.children) != null && s.length && this.flattenTree(i.children, t);
379
- return t;
380
- }
381
- isVisible(e) {
382
- return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
383
- }
384
- }
385
- class Z {
386
- constructor(e, t = [], s = -1) {
387
- this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((i) => i.rendererMap[e]);
388
- }
389
- getTooltipAt(e, t) {
390
- return "";
391
- }
392
- getCellRenderer(e, t) {
393
- if (t < this.cellRenderers.length)
394
- return this.cellRenderers[t];
395
- }
396
- getColspanAt(e, t) {
397
- return 0;
398
- }
399
- getCustomClassesAt(e, t) {
400
- return [];
401
- }
402
- getCustomStyleAt(e, t) {
403
- }
404
- getRowspanAt(e, t) {
405
- return 0;
406
- }
407
- getRowByIndex(e) {
408
- }
409
- isRowCheckable(e) {
410
- return !0;
411
- }
412
- isRowChecked(e) {
413
- var s;
414
- const t = this.getRowByIndex(e);
415
- return (s = this.rowSelectionModel) == null ? void 0 : s.isRowChecked(t);
416
- }
417
- setRowChecked(e, t) {
418
- if (this.rowSelectionModel) {
419
- const s = this.getRowByIndex(e);
420
- this.rowSelectionModel.checkRow(s, t);
421
- }
422
- }
423
- getMaxColspan() {
424
- return 31;
425
- }
426
- getMaxRowspan() {
427
- return 31;
428
- }
429
- getYPosByRowIndex(e) {
430
- return this.defaultRowHeight > 0 ? this.defaultRowHeight * e : this.yPositions[e];
431
- }
432
- init() {
433
- !this.yPositions.length && this.getRowCount() !== void 0 && this.defaultRowHeight === -1 && this.calcYPositions();
434
- }
435
- isFilterable() {
436
- return this.areaIdent === "body";
437
- }
438
- doSort(e) {
439
- return !1;
440
- }
441
- isEditable(e, t) {
442
- return this.columnDefs && t < this.columnDefs.length && this.columnDefs[t].editable ? this.columnDefs[t].editable() : !1;
443
- }
444
- setValue(e, t, s) {
445
- var l;
446
- const i = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
447
- i && (s = i(s, e, t));
448
- const o = this.getRowByIndex(e), r = this.columnDefs[t].property;
449
- return r.includes(".") ? this.setPropertyValue(o, r.split("."), s) : (o[r] = s, !0);
450
- }
451
- isSelectable(e, t) {
452
- return !0;
453
- }
454
- changeColumnOrder(e, t) {
455
- this.arrayMove(this.cellRenderers, e, t);
456
- }
457
- setPropertyValue(e, t, s) {
458
- const i = t.shift();
459
- if (i) {
460
- let o = e[i];
461
- return o && t.length ? this.setPropertyValue(o, t, s) : (e[i] = s, !0);
462
- }
463
- return !1;
464
- }
465
- arrayMove(e, t, s) {
466
- const i = e.splice(t, 1)[0];
467
- return e.splice(s, 0, i), e;
468
- }
469
- calcYPositions() {
470
- const e = this.getRowCount();
471
- this.yPositions = new Array(e + 1), this.yPositions[0] = 0;
472
- for (let t = 0; t < e; t++)
473
- this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
474
- }
475
- }
476
- class ee {
477
- genericSortComparator(e, t, s) {
478
- if (typeof e == "number" && typeof t == "number")
479
- return s * (e - t);
480
- if (typeof e == "string" && typeof t == "string")
481
- return s * e.localeCompare(t);
482
- if (typeof e == "boolean" && typeof t == "boolean")
483
- return s * ((e ? -1 : 1) - (t ? -1 : 1));
484
- if (e instanceof Date && t instanceof Date)
485
- return s * (e.getTime() - t.getTime());
486
- if (e instanceof Array && t instanceof Array) {
487
- const i = e, o = t;
488
- if (i.length && o.length)
489
- return this.genericSortComparator(i[0], o[0], s);
490
- }
491
- return s * ("" + e).localeCompare("" + t);
492
- }
493
- }
494
- class L extends Z {
495
- constructor(e, t, s, i = []) {
496
- super(e, i, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = i, this.sorterService = new ee(), this.service = new Q(), this.properties = i.map((o) => o.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
497
- }
498
- changeColumnOrder(e, t) {
499
- this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
500
- }
501
- recalcVisibleTreeRows() {
502
- this.filteredFlattenRows = this.service.flattenTree(this.rows);
503
- }
504
- getFilteredFlattenRows() {
505
- return this.filteredFlattenRows;
506
- }
507
- getRowCount() {
508
- let e = 0;
509
- for (const t of this.filteredFlattenRows)
510
- this.service.isVisible(t) && e++;
511
- return e;
512
- }
513
- getValueAt(e, t) {
514
- const s = this.getRowByIndex(e);
515
- if (s) {
516
- const i = this.properties[t];
517
- if (i)
518
- return i.includes(".") ? this.getPropertyValue(s.data, i.split(".")) : s.data[i];
519
- }
520
- return "";
521
- }
522
- getRowHeight(e) {
523
- return this.defaultRowHeight;
524
- }
525
- getCustomClassesAt(e, t) {
526
- return ["ge-table-tree-cell", "ge-table-tree-deep-" + this.filteredFlattenRows[e].deep];
527
- }
528
- getRowByIndex(e) {
529
- return this.filteredFlattenRows[e];
530
- }
531
- getValueByT(e, t) {
532
- return t.includes(".") ? this.getPropertyValue(e, t.split(".")) : e[t];
533
- }
534
- externalFilterChanged(e) {
535
- this.lastPredictFn = e, this.doFiltering();
536
- }
537
- doSort(e) {
538
- const { columnIndex: t, sortState: s } = e[e.length - 1], i = s === "asc" ? 1 : s === "desc" ? -1 : 0, o = this.properties[t];
539
- return this.treeSort(this.rows, o, i), this.flattenRows = this.service.flattenTree(this.rows), this.filteredFlattenRows = [...this.flattenRows], !0;
540
- }
541
- toggleExpandCollapseAll(e) {
542
- this.expandAllRecursive(this.rows, e), this.flattenRows = this.service.flattenTree(this.rows), this.doFiltering();
543
- }
544
- setAllParentsOk(e) {
545
- return e.parent && (e.parent.keep = !0, this.setAllParentsOk(e.parent)), !1;
546
- }
547
- setValue(e, t, s) {
548
- var r;
549
- const i = (r = this.columnDefs[t]) == null ? void 0 : r.editInputPipe;
550
- i && (s = i(s, e, t));
551
- const o = this.getRowByIndex(e);
552
- if (o) {
553
- const l = o.data, n = this.columnDefs[t].property;
554
- return n.includes(".") ? this.setPropertyValue(l, n.split("."), s) : (l[n] = s, !0);
555
- }
556
- return !1;
557
- }
558
- genericTreeTableSortComparator(e, t) {
559
- return (s, i) => {
560
- const o = this.getValueByT(s.data, e), r = this.getValueByT(i.data, e);
561
- return this.sorterService.genericSortComparator(o, r, t);
562
- };
563
- }
564
- expandAllRecursive(e, t) {
565
- for (const s of e)
566
- s.expanded = t, s.children && this.expandAllRecursive(s.children, t);
567
- }
568
- doFiltering() {
569
- if (!this.lastPredictFn)
570
- this.filteredFlattenRows = [...this.flattenRows ? this.flattenRows : []];
571
- else {
572
- this.flattenRows || (this.flattenRows = []);
573
- let e = 0;
574
- this.flattenRows.forEach((s) => {
575
- e = Math.max(e, s.deep);
576
- });
577
- const t = this.flattenRows.filter(
578
- (s, i, o) => this.lastPredictFn(s, i, o)
579
- );
580
- this.flattenRows.forEach((s) => s.keep = !1), this.flattenRows.forEach((s) => {
581
- t.includes(s) && (s.keep = !0, this.setAllParentsOk(s));
582
- }), this.filteredFlattenRows = this.flattenRows.filter(
583
- (s, i, o) => s.keep
584
- );
585
- }
586
- }
587
- getPropertyValue(e, t) {
588
- const s = t.shift();
589
- let i = e[s];
590
- return i && t.length ? this.getPropertyValue(i, t) : i;
591
- }
592
- treeSort(e, t, s) {
593
- e.sort(this.genericTreeTableSortComparator(t, s));
594
- for (const i of e)
595
- i.children && this.treeSort(i.children, t, s);
596
- }
597
- }
598
- class P {
378
+ class W {
599
379
  constructor(e) {
600
380
  this.getStorageKeyFn = e;
601
381
  }
@@ -606,9 +386,9 @@ class P {
606
386
  for (const i of [...s]) {
607
387
  const [
608
388
  o,
609
- r
389
+ l
610
390
  ] = i;
611
- t[o] = r;
391
+ t[o] = l;
612
392
  }
613
393
  }
614
394
  return t;
@@ -620,8 +400,8 @@ class P {
620
400
  if (i) {
621
401
  const o = i + e;
622
402
  if ((t + "").includes("Map")) {
623
- const r = this.autoConvertMapToObject(t);
624
- this.persistItem(o, r);
403
+ const l = this.autoConvertMapToObject(t);
404
+ this.persistItem(o, l);
625
405
  } else
626
406
  this.persistItem(o, t);
627
407
  }
@@ -670,7 +450,7 @@ class P {
670
450
  // }
671
451
  // }
672
452
  }
673
- class te extends P {
453
+ class se extends W {
674
454
  constructor(e) {
675
455
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
676
456
  }
@@ -692,14 +472,14 @@ class te extends P {
692
472
  }
693
473
  }
694
474
  }
695
- class se {
475
+ class ie {
696
476
  constructor(e = "collapsed", t = [], s = !1, i = !1) {
697
477
  this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = i;
698
478
  }
699
479
  }
700
- class ie extends P {
480
+ class oe extends W {
701
481
  constructor(e) {
702
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new se(), this.load();
482
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new ie(), this.load();
703
483
  }
704
484
  collapsedExpandedStateGet() {
705
485
  return this.collapsedExpandedState;
@@ -731,7 +511,7 @@ class ie extends P {
731
511
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
732
512
  }
733
513
  }
734
- class oe extends P {
514
+ class le extends W {
735
515
  constructor(e) {
736
516
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
737
517
  }
@@ -935,7 +715,7 @@ class A {
935
715
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
936
716
  }
937
717
  }
938
- class le {
718
+ class ne {
939
719
  constructor(e, t) {
940
720
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
941
721
  }
@@ -946,12 +726,12 @@ class le {
946
726
  const e = this.areaModel.getRowCount(), t = this.tableModel.getColumnCount();
947
727
  for (let s = 0; s < e; s++)
948
728
  for (let i = 0; i < t; i++) {
949
- let o = this.areaModel.getColspanAt(s, i), r = this.areaModel.getRowspanAt(s, i);
950
- if (o > 1 || r > 1) {
951
- o === 0 && (o = 1), r === 0 && (r = 1);
952
- const l = this.areaModel.hasOwnProperty("gammaCells");
729
+ let o = this.areaModel.getColspanAt(s, i), l = this.areaModel.getRowspanAt(s, i);
730
+ if (o > 1 || l > 1) {
731
+ o === 0 && (o = 1), l === 0 && (l = 1);
732
+ const n = this.areaModel.hasOwnProperty("gammaCells");
953
733
  this.colAndRowspanRanges.push(
954
- new A(s, i, s + r - 1, i + o - 1, l)
734
+ new A(s, i, s + l - 1, i + o - 1, n)
955
735
  );
956
736
  }
957
737
  }
@@ -968,22 +748,22 @@ class le {
968
748
  return !1;
969
749
  }
970
750
  }
971
- class ne {
751
+ class ae {
972
752
  constructor(e, t, s) {
973
753
  this.header = e, this.body = t, this.footer = s;
974
754
  }
975
755
  }
976
- class ae extends re {
756
+ class de extends re {
977
757
  constructor(e, t, s, i) {
978
- var r, l;
758
+ var l, n;
979
759
  super(e, t, s, i), this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
980
760
  header: [],
981
761
  body: [],
982
762
  footer: []
983
- }, this.tree = !1, this.colAndRowspanModels = new ne(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.editing = !1, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), t.getAreaModel("body") instanceof L && (this.tree = !0), ["header", "body", "footer"].forEach(
984
- (n) => {
763
+ }, this.tree = !1, this.colAndRowspanModels = new ae(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.editing = !1, this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (l = this.tableOptions) != null && l.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (n = this.tableOptions) != null && n.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), O(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
764
+ (r) => {
985
765
  var a;
986
- this.colAndRowspanModels[n] = new le(t, t.getAreaModel(n)), (a = this.colAndRowspanModels[n]) == null || a.init();
766
+ this.colAndRowspanModels[r] = new ne(t, t.getAreaModel(r)), (a = this.colAndRowspanModels[r]) == null || a.init();
987
767
  }
988
768
  );
989
769
  }
@@ -1039,10 +819,12 @@ class ae extends re {
1039
819
  var e, t;
1040
820
  this.storeScrollPosStateService && ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.autoRestoreScrollPosition) && this.storeScrollPosStateService.updateScrollOffset([this.scrollLeft, this.scrollTop]);
1041
821
  }
1042
- updateCells(e) {
822
+ updateCells(e, t = !1) {
1043
823
  e.forEach(
1044
- (t) => this.tableModel.getAreaModel(t.area).setValue(t.rowIndex, t.columnIndex, t.value)
1045
- ), this.repaint();
824
+ (s) => {
825
+ this.tableModel.getAreaModel(s.area).setValue(s.rowIndex, s.columnIndex, s.value), t || this.rerenderCellContent(s);
826
+ }
827
+ ), t && this.repaint();
1046
828
  }
1047
829
  getAreaAndSideIdentByAttr(e) {
1048
830
  if (e) {
@@ -1101,86 +883,86 @@ class ae extends re {
1101
883
  }
1102
884
  adjustArea(e, t = 0) {
1103
885
  var p;
1104
- const s = this.getArea(e, "west"), i = this.getArea(e, "center"), o = this.getArea(e, "east"), r = i.child.clientHeight;
886
+ const s = this.getArea(e, "west"), i = this.getArea(e, "center"), o = this.getArea(e, "east"), l = i.child.clientHeight;
1105
887
  s.child.innerText = "", i.child.innerText = "", o.child.innerText = "";
1106
- const l = 0, n = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), d = this.tableModel.getAreaModel(e), S = d.getRowCount();
888
+ const n = 0, r = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), d = this.tableModel.getAreaModel(e), S = d.getRowCount();
1107
889
  for (; this.cleanupFunctions[e].length; ) {
1108
890
  const u = this.cleanupFunctions[e].shift();
1109
891
  u && u();
1110
892
  }
1111
893
  let g = t;
1112
- const f = this.tableModel.getColumnCount(), c = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
894
+ const m = this.tableModel.getColumnCount(), c = this.tableModel.getFixedRightColumnCount(), b = this.tableModel.getFixedLeftColumnCount();
1113
895
  for (let u = 0; u < S; u++) {
1114
- const x = g, v = u === S - 1, C = this.tableModel.getRowHeight(e, u);
1115
- if (x + C > 0) {
896
+ const C = g, x = u === S - 1, w = this.tableModel.getRowHeight(e, u);
897
+ if (C + w > 0) {
1116
898
  this.firstVisibleRowIndex = u;
1117
- let w = { left: l, width: n, height: C, top: x, index: u }, m = this.dom.addRowDiv(i, w, u, e, "center");
1118
- const M = b;
899
+ let v = { left: n, width: r, height: w, top: C, index: u }, f = this.dom.addRowDiv(i, v, u, e, "center");
900
+ const R = b;
1119
901
  if (this.adjustColumnsToRowParent({
1120
902
  areaIdent: e,
1121
903
  sideIdent: "center",
1122
904
  areaModel: d,
1123
- geo: w,
1124
- parent: m,
905
+ geo: v,
906
+ parent: f,
1125
907
  rowIndex: u,
1126
- columnIndexStart: M,
1127
- columnIndexEnd: f - c - 1,
908
+ columnIndexStart: R,
909
+ columnIndexEnd: m - c - 1,
1128
910
  verticalFixed: !1,
1129
- lastRowOfModel: v
1130
- }), a.left > 0 && (w = { left: l, width: this.areaBodyWestGeo.width, height: C, top: x, index: u }, m = this.dom.addRowDiv(s, w, u, e, "west"), this.adjustColumnsToRowParent({
911
+ lastRowOfModel: x
912
+ }), a.left > 0 && (v = { left: n, width: this.areaBodyWestGeo.width, height: w, top: C, index: u }, f = this.dom.addRowDiv(s, v, u, e, "west"), this.adjustColumnsToRowParent({
1131
913
  areaIdent: e,
1132
914
  sideIdent: "west",
1133
915
  areaModel: d,
1134
- geo: w,
1135
- parent: m,
916
+ geo: v,
917
+ parent: f,
1136
918
  rowIndex: u,
1137
919
  columnIndexStart: 0,
1138
- columnIndexEnd: M - 1,
920
+ columnIndexEnd: R - 1,
1139
921
  verticalFixed: !0,
1140
- lastRowOfModel: v
1141
- })), a.right > 0 && (w = { left: l, width: this.areaBodyEastGeo.width, height: C, top: x, index: u }, m = this.dom.addRowDiv(o, w, u, e, "east"), this.adjustColumnsToRowParent({
922
+ lastRowOfModel: x
923
+ })), a.right > 0 && (v = { left: n, width: this.areaBodyEastGeo.width, height: w, top: C, index: u }, f = this.dom.addRowDiv(o, v, u, e, "east"), this.adjustColumnsToRowParent({
1142
924
  areaIdent: e,
1143
925
  sideIdent: "east",
1144
926
  areaModel: d,
1145
- geo: w,
1146
- parent: m,
927
+ geo: v,
928
+ parent: f,
1147
929
  rowIndex: u,
1148
- columnIndexStart: f - c,
1149
- columnIndexEnd: f - 1,
930
+ columnIndexStart: m - c,
931
+ columnIndexEnd: m - 1,
1150
932
  verticalFixed: !0,
1151
- lastRowOfModel: v
933
+ lastRowOfModel: x
1152
934
  })), e === "header" && this.tree && u === S - 1) {
1153
935
  const E = this.dom.applyStyle(
1154
936
  this.dom.setAttribute(
1155
- this.dom.addDiv(m, new T(16, 20, 20, 8)),
937
+ this.dom.addDiv(f, new T(16, 20, 20, 8)),
1156
938
  "data-ge-action",
1157
939
  "toggleExpandCollapseAll"
1158
940
  ),
1159
941
  { cursor: "pointer" }
1160
- ), R = this.tableOptions.treeOptions.arrowExpandCollapseAll;
1161
- if (R) {
1162
- const D = this.dom.domService.createText(R.content);
1163
- this.dom.domService.appendChild(E, D), R.style && this.dom.applyStyleString(E, R.style);
942
+ ), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
943
+ if (M) {
944
+ const F = this.dom.domService.createText(M.content);
945
+ this.dom.domService.appendChild(E, F), M.style && this.dom.applyStyleString(E, M.style);
1164
946
  }
1165
947
  }
1166
948
  }
1167
- if (g = g + C, g > r)
949
+ if (g = g + w, g > l)
1168
950
  break;
1169
951
  }
1170
952
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1171
953
  const u = ((p = this.colAndRowspanModels[e]) == null ? void 0 : p.getRanges()) ?? [];
1172
954
  if (u.length)
1173
- for (const x of u) {
1174
- let v = 0, C = i.child, w = "center";
1175
- if (x.c1 < b)
1176
- C = s.child, w = "west";
1177
- else if (c > 0 && x.c1 >= f - c)
1178
- C = o.child, w = "east";
955
+ for (const C of u) {
956
+ let x = 0, w = i.child, v = "center";
957
+ if (C.c1 < b)
958
+ w = s.child, v = "west";
959
+ else if (c > 0 && C.c1 >= m - c)
960
+ w = o.child, v = "east";
1179
961
  else {
1180
- const m = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1181
- v = this.scrollFactorX * m - this.areaBodyWestGeo.width, w = "center";
962
+ const f = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
963
+ x = this.scrollFactorX * f - this.areaBodyWestGeo.width, v = "center";
1182
964
  }
1183
- this.drawBigCell(x, v, t, d, C, w);
965
+ this.drawBigCell(C, x, t, d, w, v);
1184
966
  }
1185
967
  }
1186
968
  }
@@ -1194,22 +976,22 @@ class ae extends re {
1194
976
  * @param sideIdent SideIdent (west,center,east)
1195
977
  * @protected
1196
978
  */
1197
- drawBigCell(e, t, s, i, o, r) {
1198
- const l = s + this.getRowHeights(0, e.r1 - 1, i).reduce((p, u) => p + u, 0), n = this.tableModel.getColumnCount(), a = this.tableModel.getFixedRightColumnCount();
979
+ drawBigCell(e, t, s, i, o, l) {
980
+ const n = s + this.getRowHeights(0, e.r1 - 1, i).reduce((p, u) => p + u, 0), r = this.tableModel.getColumnCount(), a = this.tableModel.getFixedRightColumnCount();
1199
981
  let d = 0;
1200
- a > 0 && e.c1 >= n - a && (d = n - a);
1201
- const S = t + this.getColumnWidths(d, e.c1 - 1).reduce((p, u) => p + u, 0), g = this.getRowHeights(e.r1, e.r2, i).reduce((p, u) => p + u, 0), f = this.getColumnWidths(e.c1, e.c2).reduce((p, u) => p + u, 0);
982
+ a > 0 && e.c1 >= r - a && (d = r - a);
983
+ const S = t + this.getColumnWidths(d, e.c1 - 1).reduce((p, u) => p + u, 0), g = this.getRowHeights(e.r1, e.r2, i).reduce((p, u) => p + u, 0), m = this.getColumnWidths(e.c1, e.c2).reduce((p, u) => p + u, 0);
1202
984
  let c = !1;
1203
985
  const b = this.getSelectionModel ? this.getSelectionModel() : void 0;
1204
986
  b && (c = b.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? (console.info("TODO here", e), this.renderCell({
1205
987
  areaModel: i,
1206
988
  areaIdent: i.areaIdent,
1207
- sideIdent: r,
989
+ sideIdent: l,
1208
990
  rowIndex: e.r1,
1209
991
  columnIndex: e.c1,
1210
992
  left: S,
1211
- top: l,
1212
- width: f,
993
+ top: n,
994
+ width: m,
1213
995
  height: g,
1214
996
  parent: o,
1215
997
  cellSelected: c,
@@ -1218,12 +1000,12 @@ class ae extends re {
1218
1000
  })) : this.renderCell({
1219
1001
  areaModel: i,
1220
1002
  areaIdent: i.areaIdent,
1221
- sideIdent: r,
1003
+ sideIdent: l,
1222
1004
  rowIndex: e.r1,
1223
1005
  columnIndex: e.c1,
1224
1006
  left: S,
1225
- top: l,
1226
- width: f,
1007
+ top: n,
1008
+ width: m,
1227
1009
  height: g,
1228
1010
  parent: o,
1229
1011
  cellSelected: c,
@@ -1233,8 +1015,8 @@ class ae extends re {
1233
1015
  rowIndex: e.r1,
1234
1016
  columnIndex: e.c1,
1235
1017
  cellLeft: S,
1236
- cellTop: l,
1237
- cellWidth: f,
1018
+ cellTop: n,
1019
+ cellWidth: m,
1238
1020
  cellHeight: g,
1239
1021
  parent: o
1240
1022
  });
@@ -1242,8 +1024,8 @@ class ae extends re {
1242
1024
  findRowOfImportantRowspanCell(e, t, s) {
1243
1025
  const i = e.getMaxRowspan();
1244
1026
  for (let o = t - 1; o > -1; o--) {
1245
- const r = e.getRowspanAt(o, s);
1246
- if (r > 1 && o + r + 1 >= t)
1027
+ const l = e.getRowspanAt(o, s);
1028
+ if (l > 1 && o + l + 1 >= t)
1247
1029
  return o;
1248
1030
  if (t - o > i)
1249
1031
  return -1;
@@ -1256,9 +1038,9 @@ class ae extends re {
1256
1038
  areaModel: s,
1257
1039
  geo: i,
1258
1040
  parent: o,
1259
- rowIndex: r,
1260
- columnIndexStart: l,
1261
- columnIndexEnd: n,
1041
+ rowIndex: l,
1042
+ columnIndexStart: n,
1043
+ columnIndexEnd: r,
1262
1044
  verticalFixed: a = !1,
1263
1045
  lastRowOfModel: d = !1
1264
1046
  }) {
@@ -1269,49 +1051,49 @@ class ae extends re {
1269
1051
  const p = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1270
1052
  S = this.scrollFactorX * p;
1271
1053
  }
1272
- const g = 0, f = !!(e === "body" && t);
1054
+ const g = 0, m = !!(e === "body" && t);
1273
1055
  let c = S;
1274
- for (let p = l; p <= n; p++) {
1275
- const u = c, x = this.tableModel.getColumnWidth(p);
1276
- if (x > 0 && u + x > 0) {
1277
- let v = i.height;
1278
- const C = s.getRowspanAt(r, p), w = s.getColspanAt(r, p);
1279
- C > 1 && (v = this.getRowHeights(r, r + C - 1, s).reduce((E, R) => E + R, 0));
1280
- let m = x;
1281
- w > 1 && (m = this.getColumnWidths(p, p + w - 1).reduce((E, R) => E + R, 0));
1282
- let M = !1;
1283
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(r, p) && (M = !0), this.draggingTargetColumnIndex === p && e !== "header") {
1284
- this.renderDragTargetDiv(o, u, g, m, v);
1285
- const E = { left: u, top: g, width: m, height: v };
1056
+ for (let p = n; p <= r; p++) {
1057
+ const u = c, C = this.tableModel.getColumnWidth(p);
1058
+ if (C > 0 && u + C > 0) {
1059
+ let x = i.height;
1060
+ const w = s.getRowspanAt(l, p), v = s.getColspanAt(l, p);
1061
+ w > 1 && (x = this.getRowHeights(l, l + w - 1, s).reduce((E, M) => E + M, 0));
1062
+ let f = C;
1063
+ v > 1 && (f = this.getColumnWidths(p, p + v - 1).reduce((E, M) => E + M, 0));
1064
+ let R = !1;
1065
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (b = this.colAndRowspanModels[e]) != null && b.isInRange(l, p) && (R = !0), this.draggingTargetColumnIndex === p && e !== "header") {
1066
+ this.renderDragTargetDiv(o, u, g, f, x);
1067
+ const E = { left: u, top: g, width: f, height: x };
1286
1068
  this.dom.addColumnBorderDivs(this.tableOptions, o, E, e, t);
1287
1069
  } else {
1288
- const E = this.renderSelectedBackgroundDiv(M, f, t, s, r, p, o, u, g, m, v);
1289
- M || this.renderCell({
1070
+ const E = this.renderSelectedBackgroundDiv(R, m, t, s, l, p, o, u, g, f, x);
1071
+ R || this.renderCell({
1290
1072
  areaModel: s,
1291
1073
  areaIdent: e,
1292
1074
  sideIdent: t,
1293
- rowIndex: r,
1075
+ rowIndex: l,
1294
1076
  columnIndex: p,
1295
1077
  left: u,
1296
1078
  top: g,
1297
- width: m,
1298
- height: v,
1079
+ width: f,
1080
+ height: x,
1299
1081
  parent: o,
1300
1082
  cellSelected: E,
1301
1083
  lastRowOfModel: d,
1302
1084
  gammaRange: !0
1303
1085
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1304
- rowIndex: r,
1086
+ rowIndex: l,
1305
1087
  columnIndex: p,
1306
1088
  cellLeft: u,
1307
1089
  cellTop: g,
1308
- cellWidth: m,
1309
- cellHeight: v,
1090
+ cellWidth: f,
1091
+ cellHeight: x,
1310
1092
  parent: o
1311
1093
  });
1312
1094
  }
1313
1095
  }
1314
- if (c = c + x, c > this.areaBodyCenterGeo.width)
1096
+ if (c = c + C, c > this.areaBodyCenterGeo.width)
1315
1097
  break;
1316
1098
  }
1317
1099
  this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new T(c - 1, 1, i.height, 0), o);
@@ -1325,54 +1107,78 @@ class ae extends re {
1325
1107
  sideIdent: s,
1326
1108
  rowIndex: i,
1327
1109
  index: o,
1328
- left: r,
1329
- width: l,
1330
- height: n,
1110
+ left: l,
1111
+ width: n,
1112
+ height: r,
1331
1113
  top: a,
1332
1114
  parent: d,
1333
1115
  lastRowOfModel: S
1334
1116
  }) {
1335
- var V;
1336
- const f = this.editorRenderer && this.editorRendererRow === i && this.editorRendererColumn === o ? this.editorRenderer : e.getCellRenderer(i, o), c = { left: r, width: l, height: n, top: a, index: o }, b = e.getRowByIndex(i);
1117
+ var _;
1118
+ const m = this.editorRenderer && this.editorRendererRow === i && this.editorRendererColumn === o ? this.editorRenderer : e.getCellRenderer(i, o), c = { left: l, width: n, height: r, top: a, index: o }, b = e.getRowByIndex(i);
1337
1119
  let p = "none";
1338
- if (o === this.getTreeArrowColumnIndex() && b instanceof O) {
1120
+ if (o === this.getTreeArrowColumnIndex() && L(b)) {
1339
1121
  const y = b;
1340
- (V = y.children) != null && V.length ? y.expanded ? p = "expanded" : p = "collapsed" : p = "hidden";
1122
+ (_ = y.children) != null && _.length ? y.expanded ? p = "expanded" : p = "collapsed" : p = "hidden";
1341
1123
  }
1342
- let x;
1124
+ let C;
1343
1125
  if (t === "header") {
1344
1126
  const y = this.tableModel.getColumnDef(o);
1345
- (!(y != null && y.sortIconVisible) || y != null && y.sortIconVisible()) && (x = y == null ? void 0 : y.sortState);
1127
+ (!(y != null && y.sortIconVisible) || y != null && y.sortIconVisible()) && (C = y == null ? void 0 : y.sortState);
1346
1128
  }
1347
- const v = e.getValueAt(i, o), C = f ? "" : `${v}`, w = e.isRowChecked(i), m = this.dom.addColumnDiv(
1129
+ const x = e.getValueAt(i, o), w = m ? "" : `${x}`, v = e.isRowChecked(i), f = this.dom.addColumnDiv(
1348
1130
  d,
1349
1131
  c,
1350
1132
  i,
1351
1133
  o,
1352
1134
  t,
1353
1135
  s,
1354
- C,
1136
+ w,
1355
1137
  p,
1356
1138
  this.tableOptions,
1357
- w,
1358
- x
1359
- ), M = e.getTooltipAt(i, o);
1360
- M && this.dom.setAttribute(m, "title", M);
1139
+ v,
1140
+ C
1141
+ ), R = e.getTooltipAt(i, o);
1142
+ R && this.dom.setAttribute(f, "title", R);
1361
1143
  const E = this.tableModel.getColumnDef(o);
1362
- E && E.classes[t] && this.dom.addClasses(E.classes[t], m);
1363
- let R;
1364
- f && (R = f.render(m, i, o, t, e, v, this.dom.domService));
1365
- const D = e.getCustomClassesAt(i, o);
1366
- if (D.length && this.dom.addClasses(D, m), this.dom.addColumnBorderDivs(this.tableOptions, d, c, t, s), S && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: a + n }, d), this.getFocusModel && t === "body") {
1144
+ E && E.classes[t] && this.dom.addClasses(E.classes[t], f);
1145
+ let M;
1146
+ m && (M = m.render(f, i, o, t, e, x, this.dom.domService));
1147
+ const F = e.getCustomClassesAt(i, o);
1148
+ if (F.length && this.dom.addClasses(F, f), this.dom.addColumnBorderDivs(this.tableOptions, d, c, t, s), S && this.dom.addHorizontalBorder({ left: l, width: n, height: r, top: a + r }, d), this.getFocusModel && t === "body") {
1367
1149
  const y = this.getFocusModel();
1368
1150
  y != null && y.hasFocus(i, o) && this.dom.addFocusBorderDivs(d, c, {});
1369
1151
  }
1370
- t === "header" && this.dom.setAttribute(m, "data-ge-action", "drag-column");
1371
- const F = e.getCustomStyleAt(i, o);
1372
- if (F)
1373
- for (const y in F)
1374
- this.dom.setStyle(m, y, F[y]);
1375
- return [m, R];
1152
+ t === "header" && this.dom.setAttribute(f, "data-ge-action", "drag-column");
1153
+ const I = e.getCustomStyleAt(i, o);
1154
+ if (I)
1155
+ for (const y in I)
1156
+ this.dom.setStyle(f, y, I[y]);
1157
+ return [f, M];
1158
+ }
1159
+ applyCssClasses(e, t = {}) {
1160
+ e && Object.entries(t).forEach(([s, i]) => {
1161
+ i ? this.dom.addClass(s, e) : this.dom.removeClass(s, e);
1162
+ });
1163
+ }
1164
+ rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: i, cssClasses: o }) {
1165
+ const l = this.tableModel.getAreaModel(e), n = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', r = document.querySelector(n);
1166
+ if (r) {
1167
+ let a;
1168
+ const S = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s ? this.editorRenderer : l.getCellRenderer(t, s);
1169
+ if (r.innerText = "", this.applyCssClasses(r, o), S)
1170
+ a = S.render(r, t, s, e, l, i, this.dom.domService), a && this.cleanupFunctions[e].push(a);
1171
+ else {
1172
+ const c = `${i}`;
1173
+ this.dom.addLabelDiv(r, c, !1, t, s, e);
1174
+ }
1175
+ const g = l.getCustomClassesAt(t, s);
1176
+ g.length && this.dom.addClasses(g, r);
1177
+ const m = l.getCustomStyleAt(t, s);
1178
+ if (m)
1179
+ for (const c in m)
1180
+ this.dom.setStyle(r, c, m[c]);
1181
+ }
1376
1182
  }
1377
1183
  getColumnWidths(e, t) {
1378
1184
  const s = [];
@@ -1426,24 +1232,24 @@ class ae extends re {
1426
1232
  this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(e.bind(this), t);
1427
1233
  }
1428
1234
  renderDragTargetDiv(e, t, s, i, o) {
1429
- const r = this.dom.applyStylePosistionAbsolute(
1235
+ const l = this.dom.applyStylePosistionAbsolute(
1430
1236
  this.dom.createDivWithClass("ge-table-drop-zone", e)
1431
1237
  );
1432
- return this.dom.setStyle(r, "left", `${t}px`), this.dom.setStyle(r, "top", `${s}px`), this.dom.setStyle(r, "width", `${i}px`), this.dom.setStyle(r, "height", `${o}px`), r;
1238
+ return this.dom.setStyle(l, "left", `${t}px`), this.dom.setStyle(l, "top", `${s}px`), this.dom.setStyle(l, "width", `${i}px`), this.dom.setStyle(l, "height", `${o}px`), l;
1433
1239
  }
1434
- renderSelectedBackgroundDiv(e, t, s, i, o, r, l, n, a, d, S) {
1240
+ renderSelectedBackgroundDiv(e, t, s, i, o, l, n, r, a, d, S) {
1435
1241
  let g = !1;
1436
- if (!e && t && i.isSelectable(o, r) && this.getSelectionModel) {
1437
- const f = this.getSelectionModel();
1438
- if (f) {
1439
- const c = f.getSelectionCount(o, r);
1242
+ if (!e && t && i.isSelectable(o, l) && this.getSelectionModel) {
1243
+ const m = this.getSelectionModel();
1244
+ if (m) {
1245
+ const c = m.getSelectionCount(o, l);
1440
1246
  g = c > 0;
1441
1247
  for (let b = 0; b < c; b++) {
1442
1248
  const p = this.dom.applyStylePosistionAbsolute(
1443
1249
  // ge-table-body-west-selected-range
1444
- this.dom.createDivWithClass(`ge-table-${i.areaIdent}-${s}-selected-range`, l)
1250
+ this.dom.createDivWithClass(`ge-table-${i.areaIdent}-${s}-selected-range`, n)
1445
1251
  );
1446
- this.dom.setStyle(p, "left", `${n}px`), this.dom.setStyle(p, "top", `${a}px`), this.dom.setStyle(p, "width", `${d}px`), this.dom.setStyle(p, "height", `${S}px`);
1252
+ this.dom.setStyle(p, "left", `${r}px`), this.dom.setStyle(p, "top", `${a}px`), this.dom.setStyle(p, "width", `${d}px`), this.dom.setStyle(p, "height", `${S}px`);
1447
1253
  }
1448
1254
  }
1449
1255
  }
@@ -1455,14 +1261,14 @@ class ae extends re {
1455
1261
  sideIdent: s,
1456
1262
  rowIndex: i,
1457
1263
  columnIndex: o,
1458
- left: r,
1459
- top: l,
1460
- width: n,
1264
+ left: l,
1265
+ top: n,
1266
+ width: r,
1461
1267
  height: a,
1462
1268
  parent: d,
1463
1269
  cellSelected: S,
1464
1270
  lastRowOfModel: g,
1465
- gammaRange: f
1271
+ gammaRange: m
1466
1272
  }) {
1467
1273
  const [c, b] = this.addAndRenderCellDiv({
1468
1274
  areaModel: e,
@@ -1470,27 +1276,27 @@ class ae extends re {
1470
1276
  sideIdent: s,
1471
1277
  rowIndex: i,
1472
1278
  index: o,
1473
- left: r,
1474
- width: n,
1279
+ left: l,
1280
+ width: r,
1475
1281
  height: a,
1476
- top: l,
1282
+ top: n,
1477
1283
  parent: d,
1478
1284
  lastRowOfModel: g,
1479
- gammaRange: f
1285
+ gammaRange: m
1480
1286
  });
1481
1287
  S && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, c), b && this.cleanupFunctions[t].push(b);
1482
1288
  }
1483
- renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: i, cellWidth: o, cellHeight: r, parent: l }) {
1484
- const n = this.dom.domService, a = this.tableOptions.columnResizeHandleWidthInPx ?? 2, d = n.createElement("div");
1485
- n.setAttribute(d, "data-col-index", `${t}`), n.setAttribute(d, "data-row-index", `${e}`), n.setAttribute(d, "data-area", "header"), n.setAttribute(d, "data-ge-action", "resize-column"), n.addClass(d, "ge-table-column-resize-handle"), n.setStyle(d, "display", "clip"), n.setStyle(d, "position", "absolute"), n.setStyle(d, "cursor", "col-resize"), n.setStyle(d, "left", `${s + o - a}px`), n.setStyle(d, "top", `${i}px`), n.setStyle(d, "width", `${a}px`), n.setStyle(d, "height", `${r}px`), n.appendChild(l, d);
1289
+ renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: i, cellWidth: o, cellHeight: l, parent: n }) {
1290
+ const r = this.dom.domService, a = this.tableOptions.columnResizeHandleWidthInPx ?? 2, d = r.createElement("div");
1291
+ r.setAttribute(d, "data-col-index", `${t}`), r.setAttribute(d, "data-row-index", `${e}`), r.setAttribute(d, "data-area", "header"), r.setAttribute(d, "data-ge-action", "resize-column"), r.addClass(d, "ge-table-column-resize-handle"), r.setStyle(d, "display", "clip"), r.setStyle(d, "position", "absolute"), r.setStyle(d, "cursor", "col-resize"), r.setStyle(d, "left", `${s + o - a}px`), r.setStyle(d, "top", `${i}px`), r.setStyle(d, "width", `${a}px`), r.setStyle(d, "height", `${l}px`), r.appendChild(n, d);
1486
1292
  }
1487
1293
  }
1488
- class de {
1294
+ class he {
1489
1295
  constructor(e, t) {
1490
1296
  this.columnIndex = e, this.sortState = t;
1491
1297
  }
1492
1298
  }
1493
- class he {
1299
+ class ce {
1494
1300
  constructor(e) {
1495
1301
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
1496
1302
  }
@@ -1498,36 +1304,36 @@ class he {
1498
1304
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
1499
1305
  const t = e.target, s = t.getAttribute("data-area"), i = t.getAttribute("data-row-index"), o = t.getAttribute("data-col-index");
1500
1306
  if (s && i && o) {
1501
- const r = $(s), l = Number(i), n = Number(o);
1502
- this.tableScope.updateModelValueAfterEdit(r, l, n, t.value);
1307
+ const l = B(s), n = Number(i), r = Number(o);
1308
+ this.tableScope.updateModelValueAfterEdit(l, n, r, t.value);
1503
1309
  }
1504
1310
  }
1505
1311
  }
1506
1312
  }
1507
- class ce {
1313
+ class pe {
1508
1314
  constructor(e = -1, t = -1) {
1509
1315
  this.rowIndex = e, this.columnIndex = t;
1510
1316
  }
1511
1317
  }
1512
- class _ {
1318
+ class H {
1513
1319
  constructor(e) {
1514
1320
  this.cells = e;
1515
1321
  }
1516
1322
  static createSingle(e, t) {
1517
- return new _([new ce(e, t)]);
1323
+ return new H([new pe(e, t)]);
1518
1324
  }
1519
1325
  }
1520
- class pe {
1326
+ class ue {
1521
1327
  constructor(e) {
1522
1328
  var t, s;
1523
1329
  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);
1524
1330
  }
1525
1331
  onMouseClicked(e, t) {
1526
- var o, r, l, n, a, d, S;
1332
+ var o, l, n, r, a, d, S;
1527
1333
  let s = !1, i = !1;
1528
1334
  if (this.getSelectionModel && this.getFocusModel) {
1529
- const g = this.getSelectionModel(), f = this.getFocusModel();
1530
- g && f && (f.hasFocus(e.rowIndex, e.columnIndex) || (f.setFocus(e.rowIndex, e.columnIndex), s = !0), (o = e.originalEvent) != null && o.shiftKey || g.hasSelection() && (g.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (g.addSelection(this.createRangeByEvents(e, this.previousEvt)), i = !0, s = !0) : (l = e.originalEvent) != null && l.ctrlKey || (n = e.originalEvent) != null && n.metaKey ? (g.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), i = !0, s = !0) : (a = e.originalEvent) != null && a.altKey && ((d = e.originalEvent) != null && d.ctrlKey || (S = e.originalEvent) != null && S.metaKey) && (g.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), i = !0, s = !0));
1335
+ const g = this.getSelectionModel(), m = this.getFocusModel();
1336
+ g && m && (m.hasFocus(e.rowIndex, e.columnIndex) || (m.setFocus(e.rowIndex, e.columnIndex), s = !0), (o = e.originalEvent) != null && o.shiftKey || g.hasSelection() && (g.clear(), s = !0), (l = e.originalEvent) != null && l.shiftKey && this.previousEvt ? (g.addSelection(this.createRangeByEvents(e, this.previousEvt)), i = !0, s = !0) : (n = e.originalEvent) != null && n.ctrlKey || (r = e.originalEvent) != null && r.metaKey ? (g.addSelection(A.singleCell(e.rowIndex, e.columnIndex)), i = !0, s = !0) : (a = e.originalEvent) != null && a.altKey && ((d = e.originalEvent) != null && d.ctrlKey || (S = e.originalEvent) != null && S.metaKey) && (g.removeSelection(A.singleCell(e.rowIndex, e.columnIndex)), i = !0, s = !0));
1531
1337
  }
1532
1338
  return i ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
1533
1339
  }
@@ -1549,16 +1355,16 @@ class pe {
1549
1355
  }
1550
1356
  createRangeByEvents(e, t) {
1551
1357
  t || (t = e);
1552
- 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), r = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
1358
+ 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), l = Math.max(e.columnIndex, t == null ? void 0 : t.columnIndex);
1553
1359
  return A.create({
1554
1360
  rowIndex1: s,
1555
1361
  columnIndex1: o,
1556
1362
  rowIndex2: i,
1557
- columnIndex2: r
1363
+ columnIndex2: l
1558
1364
  });
1559
1365
  }
1560
1366
  }
1561
- class ue {
1367
+ class Se {
1562
1368
  get() {
1563
1369
  return {
1564
1370
  f2: "START_EDITING",
@@ -1576,7 +1382,7 @@ class ue {
1576
1382
  };
1577
1383
  }
1578
1384
  }
1579
- class Se {
1385
+ class ge {
1580
1386
  get() {
1581
1387
  return {
1582
1388
  f2: "START_EDITING",
@@ -1596,7 +1402,7 @@ class Se {
1596
1402
  };
1597
1403
  }
1598
1404
  }
1599
- class ge {
1405
+ class me {
1600
1406
  constructor(e) {
1601
1407
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
1602
1408
  }
@@ -1604,7 +1410,7 @@ class ge {
1604
1410
  this.listener.includes(e) || this.listener.push(e);
1605
1411
  }
1606
1412
  init() {
1607
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Se().get()) : Object.assign(this.shortcutActionIdMapping, new ue().get()), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
1413
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new ge().get()) : Object.assign(this.shortcutActionIdMapping, new Se().get()), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
1608
1414
  }
1609
1415
  isMacintosh() {
1610
1416
  return navigator.platform.indexOf("Mac") > -1;
@@ -1648,7 +1454,7 @@ class ge {
1648
1454
  return e.altKey && t.push("alt"), e.shiftKey && t.push("shift"), e.ctrlKey && t.push("ctrl"), e.metaKey && t.push("meta"), e.code && t.push(e.code.toLowerCase().replace(/key/g, "")), t.sort();
1649
1455
  }
1650
1456
  }
1651
- class fe {
1457
+ class V {
1652
1458
  onCheckboxChanged(e) {
1653
1459
  }
1654
1460
  onContextmenu(e) {
@@ -1664,19 +1470,153 @@ class fe {
1664
1470
  onMouseMoved(e) {
1665
1471
  }
1666
1472
  }
1667
- class me extends ae {
1473
+ class j {
1474
+ setStyle(e, t, s) {
1475
+ return e.style[t] = s, e;
1476
+ }
1477
+ appendText(e, t) {
1478
+ const s = this.createText(t);
1479
+ return this.appendChild(e, s), s;
1480
+ }
1481
+ addClass(e, t) {
1482
+ return t.includes(" ") ? t.split(" ").forEach((s) => e.classList.add(s)) : e.classList.add(t), e;
1483
+ }
1484
+ removeClass(e, t) {
1485
+ return t.includes(" ") ? t.split(" ").forEach((s) => e.classList.remove(s)) : e.classList.remove(t), e;
1486
+ }
1487
+ appendChild(e, t) {
1488
+ e.appendChild(t);
1489
+ }
1490
+ createElement(e) {
1491
+ return document.createElement(e);
1492
+ }
1493
+ createText(e) {
1494
+ return document.createTextNode(e);
1495
+ }
1496
+ setAttribute(e, t, s) {
1497
+ e.setAttribute(t, s);
1498
+ }
1499
+ }
1500
+ class fe {
1501
+ render(e, t, s, i, o, l, n) {
1502
+ if (o.isEditable(t, s)) {
1503
+ n.addClass(e, "ge-table-row-input-div");
1504
+ const r = o.getValueAt(t, s);
1505
+ e.innerHTML = `
1506
+ <input
1507
+ type="text"
1508
+ value="${r}"
1509
+ autofocus
1510
+ onfocus="this.setSelectionRange(0, this.value.length)"
1511
+ data-listen="change"
1512
+ data-area="${i}"
1513
+ data-row-index="${t}"
1514
+ data-col-index="${s}"
1515
+ data-input-type="text"
1516
+ style="width:calc(100% - 8px);height:100%;border:0;padding:0 0 0 8px;"
1517
+ class="ge-table-cell-editor-input">`;
1518
+ }
1519
+ }
1520
+ }
1521
+ class be {
1522
+ constructor(e = "none", t = "single") {
1523
+ this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
1524
+ }
1525
+ getSelectionCount(e, t) {
1526
+ let s = 0;
1527
+ for (const i of this.ranges)
1528
+ i.isInRange(e, t) && s++;
1529
+ return this.allSelected && s++, this.isInNegativeRange(e, t) && (s = 0), s;
1530
+ }
1531
+ isInNegativeRange(e, t) {
1532
+ for (const s of this.negativeRanges)
1533
+ if (s.isInRange(e, t))
1534
+ return !0;
1535
+ return !1;
1536
+ }
1537
+ getRanges() {
1538
+ return this.ranges;
1539
+ }
1540
+ clear() {
1541
+ this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
1542
+ }
1543
+ hasSelection() {
1544
+ return !!this.ranges.length;
1545
+ }
1546
+ selectAll() {
1547
+ this.allSelected = !0;
1548
+ }
1549
+ addSelection(e) {
1550
+ this.addRange(e);
1551
+ }
1552
+ removeSelection(e) {
1553
+ if (this.selectionType === "none")
1554
+ return;
1555
+ let t = e;
1556
+ this.selectionType === "row" ? t = A.singleRow(e.r1) : this.selectionType === "column" && (t = A.singleColumn(e.c1)), this.negativeRanges.push(t);
1557
+ }
1558
+ togglePoint(e, t) {
1559
+ this.getSelectionCount(e, t) > 0 ? this.removeSelection(A.singleCell(e, t)) : this.addSelection(A.singleCell(e, t));
1560
+ }
1561
+ addRange(e) {
1562
+ this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e));
1563
+ }
1564
+ }
1565
+ class ye {
1566
+ constructor(e = "none") {
1567
+ this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1;
1568
+ }
1569
+ clearChanged() {
1570
+ this.changed = !1;
1571
+ }
1572
+ hasChanged() {
1573
+ return this.changed;
1574
+ }
1575
+ clear() {
1576
+ this.rowIndex = -1, this.columnIndex = -1;
1577
+ }
1578
+ setFocus(e, t) {
1579
+ (this.rowIndex !== e || this.columnIndex !== t) && (this.rowIndex = e, this.columnIndex = t, this.changed = !0);
1580
+ }
1581
+ hasFocus(e, t) {
1582
+ return this.rowIndex === e && this.columnIndex === t;
1583
+ }
1584
+ getFocus() {
1585
+ return [this.rowIndex, this.columnIndex];
1586
+ }
1587
+ }
1588
+ const ve = new be(), Ce = new ye("cell");
1589
+ class X {
1590
+ constructor() {
1591
+ this.overflowX = "auto", this.overflowY = "auto", this.horizontalBorderVisible = !0, this.verticalBorderVisible = !0, this.footerSeparatorBorderVisible = !0, this.headerSeparatorBorderVisible = !0, this.fixedEastSeparatorBorderVisible = !0, this.fixedWestSeparatorBorderVisible = !0, this.tableTopBorderVisible = !0, this.tableBottomBorderVisible = !0, this.hoverRowVisible = !0, this.hoverColumnVisible = !0, this.columnsResizable = !0, this.columnsDraggable = !0, this.columnResizeHandleWidthInPx = 4, this.defaultRowHeights = {
1592
+ header: 34,
1593
+ body: 34,
1594
+ footer: 34
1595
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new G(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new N(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new fe(), this.getSelectionModel = () => ve, this.getFocusModel = () => Ce;
1596
+ }
1597
+ }
1598
+ class P extends de {
1668
1599
  constructor(e, t, s, i, o) {
1669
- var r;
1600
+ var l;
1670
1601
  if (super(
1671
1602
  e,
1672
1603
  t,
1673
- new Y(s),
1604
+ new Q(s),
1674
1605
  i
1675
- ), this.eventListener = o, this.selectionService = new pe(this), this.api = new J(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, o || (this.eventListener = new fe()), (r = this.tableOptions) != null && r.autoRestoreOptions) {
1676
- const l = this.tableOptions.autoRestoreOptions, n = l.getStorageKeyFn;
1677
- n && (l.autoRestoreScrollPosition && (this.storeScrollPosStateService = new te(n)), l.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ie(n)), l.autoRestoreSortingState && (this.storeSortingService = new oe(n)));
1606
+ ), this.eventListener = o, this.selectionService = new ue(this), this.api = new te(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, o || (this.eventListener = new V()), (l = this.tableOptions) != null && l.autoRestoreOptions) {
1607
+ const n = this.tableOptions.autoRestoreOptions, r = n.getStorageKeyFn;
1608
+ r && (n.autoRestoreScrollPosition && (this.storeScrollPosStateService = new se(r)), n.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new oe(r)), n.autoRestoreSortingState && (this.storeSortingService = new le(r)));
1678
1609
  }
1679
- this.mouseHandler = new U(this), this.inputHandler = new he(this), this.shortcutService = new ge(this), this.shortcutService.addListener(this.selectionService);
1610
+ this.mouseHandler = new ee(this), this.inputHandler = new ce(this), this.shortcutService = new me(this), this.shortcutService.addListener(this.selectionService);
1611
+ }
1612
+ static create(e, t, s = new X(), i = new V(), o = new j()) {
1613
+ return new P(
1614
+ e,
1615
+ t,
1616
+ o,
1617
+ s,
1618
+ i
1619
+ );
1680
1620
  }
1681
1621
  onActionTriggered(e) {
1682
1622
  if (e === "NAVIGATE_DOWN" && this.changeFocusCell(0, 1) || e === "NAVIGATE_UP" && this.changeFocusCell(0, -1) || e === "NAVIGATE_LEFT" && this.changeFocusCell(-1, 0) || e === "NAVIGATE_RIGHT" && this.changeFocusCell(1, 0))
@@ -1692,7 +1632,7 @@ class me extends ae {
1692
1632
  return !1;
1693
1633
  }
1694
1634
  updateModelValueAfterEdit(e, t, s, i) {
1695
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, i) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(_.createSingle(t, s)), this.hostElement.focus());
1635
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, i) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(H.createSingle(t, s)), this.hostElement.focus());
1696
1636
  }
1697
1637
  getApi() {
1698
1638
  return this.api;
@@ -1702,10 +1642,10 @@ class me extends ae {
1702
1642
  */
1703
1643
  firstInit() {
1704
1644
  var e;
1705
- this.tableModel.init(), (e = this.tableOptions) != null && e.externalFilterFunction && this.externalFilterChanged(!1), this.autoRestoreCollapsedExpandedState(), this.autoRestoreSortingState(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows(), this.autoRestoreScrollPosition();
1645
+ return this.tableModel.init(), (e = this.tableOptions) != null && e.externalFilterFunction && this.externalFilterChanged(!1), this.autoRestoreCollapsedExpandedState(), this.autoRestoreSortingState(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows(), this.autoRestoreScrollPosition(), this;
1706
1646
  }
1707
1647
  createGeMouseEvent(e) {
1708
- const t = new B();
1648
+ const t = new $();
1709
1649
  if (t.originalEvent = e, e) {
1710
1650
  const s = e.target;
1711
1651
  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) {
@@ -1737,14 +1677,14 @@ class me extends ae {
1737
1677
  toggleExpandCollapseAll(e = !0) {
1738
1678
  var s;
1739
1679
  const t = this.tableModel.getBodyModel();
1740
- t instanceof L && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
1680
+ O(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
1741
1681
  }
1742
1682
  toggleRowCheckbox(e, t, s) {
1743
- var n;
1744
- const i = this.tableModel.getAreaModel(s), o = i.isRowChecked(e), r = o === void 0 || o === "semi" || o === "none";
1745
- i.setRowChecked(e, r), this.repaint();
1746
- const l = (n = i.rowSelectionModel) == null ? void 0 : n.getCheckedRows();
1747
- this.eventListener.onCheckboxChanged(l || []);
1683
+ var r;
1684
+ const i = this.tableModel.getAreaModel(s), o = i.isRowChecked(e), l = o === void 0 || o === "semi" || o === "none";
1685
+ i.setRowChecked(e, l), this.repaint();
1686
+ const n = (r = i.rowSelectionModel) == null ? void 0 : r.getCheckedRows();
1687
+ this.eventListener.onCheckboxChanged(n || []);
1748
1688
  }
1749
1689
  onMouseClicked(e, t) {
1750
1690
  let s = this.selectionService.onMouseClicked(e, t);
@@ -1759,12 +1699,12 @@ class me extends ae {
1759
1699
  t && (e && this.clearSelectionModel(), this.tableModel.externalFilterChanged(t), this.scrollViewport.scrollTo(0, 0), this.tableModel.recalcHeightAndPadding(), this.resetSizeOfWrapperDiv(), this.repaint());
1760
1700
  }
1761
1701
  onHeaderDblClicked(e, t, s) {
1762
- var o, r;
1702
+ var o, l;
1763
1703
  const i = this.tableModel.getColumnDef(s);
1764
1704
  if (i != null && i.sortable && i.sortable()) {
1765
1705
  e.preventDefault(), e.stopPropagation();
1766
- const l = i.sortStatesOrder ? i.sortStatesOrder : this.tableOptions.sortOrder, n = i.sortState ?? "", a = l[(l.indexOf(n) + 1) % l.length], d = new de(s, a);
1767
- this.tableModel.doSort([d]) && ((o = this.tableModel.getColumnDefs()) == null || o.forEach((g) => g.sortState = ""), i.sortState = a), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([d]);
1706
+ const n = i.sortStatesOrder ? i.sortStatesOrder : this.tableOptions.sortOrder, r = i.sortState ?? "", a = n[(n.indexOf(r) + 1) % n.length], d = new he(s, a);
1707
+ this.tableModel.doSort([d]) && ((o = this.tableModel.getColumnDefs()) == null || o.forEach((g) => g.sortState = ""), i.sortState = a), this.repaint(), (l = this.storeSortingService) == null || l.setSortItems([d]);
1768
1708
  }
1769
1709
  }
1770
1710
  changeFocusCell(e, t) {
@@ -1807,11 +1747,11 @@ class me extends ae {
1807
1747
  if ((t = (e = this.tableOptions) == null ? void 0 : e.autoRestoreOptions) != null && t.getRowId && this.storeStateCollapsedExpandService) {
1808
1748
  const s = this.tableOptions.autoRestoreOptions, i = s.getRowId;
1809
1749
  if (s.autoRestoreCollapsedExpandedState && i) {
1810
- const o = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
1811
- if (r instanceof L) {
1812
- const l = r, n = r.getRowCount();
1813
- for (let a = 0; a < n; a++) {
1814
- const d = r.getRowByIndex(a);
1750
+ const o = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), l = this.tableModel.getAreaModel("body");
1751
+ if (O(l)) {
1752
+ const n = l, r = l.getRowCount();
1753
+ for (let a = 0; a < r; a++) {
1754
+ const d = l.getRowByIndex(a);
1815
1755
  if (d)
1816
1756
  if (o.allExpanded)
1817
1757
  d.expanded = !0;
@@ -1822,135 +1762,13 @@ class me extends ae {
1822
1762
  o.mode === "expanded" ? d.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(S) : o.mode === "collapsed" && (d.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(S));
1823
1763
  }
1824
1764
  }
1825
- l.recalcVisibleTreeRows();
1765
+ n.recalcVisibleTreeRows();
1826
1766
  }
1827
1767
  }
1828
1768
  }
1829
1769
  }
1830
1770
  }
1831
- class be {
1832
- render(e, t, s, i, o, r, l) {
1833
- if (o.isEditable(t, s)) {
1834
- l.addClass(e, "ge-table-row-input-div");
1835
- const n = o.getValueAt(t, s);
1836
- e.innerHTML = `
1837
- <input
1838
- type="text"
1839
- value="${n}"
1840
- autofocus
1841
- onfocus="this.setSelectionRange(0, this.value.length)"
1842
- data-listen="change"
1843
- data-area="${i}"
1844
- data-row-index="${t}"
1845
- data-col-index="${s}"
1846
- data-input-type="text"
1847
- style="width:calc(100% - 8px);height:100%;border:0;padding:0 0 0 8px;"
1848
- class="ge-table-cell-editor-input">`;
1849
- }
1850
- }
1851
- }
1852
- class ye {
1853
- constructor(e = "none", t = "single") {
1854
- this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
1855
- }
1856
- getSelectionCount(e, t) {
1857
- let s = 0;
1858
- for (const i of this.ranges)
1859
- i.isInRange(e, t) && s++;
1860
- return this.allSelected && s++, this.isInNegativeRange(e, t) && (s = 0), s;
1861
- }
1862
- isInNegativeRange(e, t) {
1863
- for (const s of this.negativeRanges)
1864
- if (s.isInRange(e, t))
1865
- return !0;
1866
- return !1;
1867
- }
1868
- getRanges() {
1869
- return this.ranges;
1870
- }
1871
- clear() {
1872
- this.ranges = [], this.negativeRanges = [], this.allSelected = !1;
1873
- }
1874
- hasSelection() {
1875
- return !!this.ranges.length;
1876
- }
1877
- selectAll() {
1878
- this.allSelected = !0;
1879
- }
1880
- addSelection(e) {
1881
- this.addRange(e);
1882
- }
1883
- removeSelection(e) {
1884
- if (this.selectionType === "none")
1885
- return;
1886
- let t = e;
1887
- this.selectionType === "row" ? t = A.singleRow(e.r1) : this.selectionType === "column" && (t = A.singleColumn(e.c1)), this.negativeRanges.push(t);
1888
- }
1889
- togglePoint(e, t) {
1890
- this.getSelectionCount(e, t) > 0 ? this.removeSelection(A.singleCell(e, t)) : this.addSelection(A.singleCell(e, t));
1891
- }
1892
- addRange(e) {
1893
- this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e));
1894
- }
1895
- }
1896
- class we {
1897
- constructor(e = "none") {
1898
- this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1;
1899
- }
1900
- clearChanged() {
1901
- this.changed = !1;
1902
- }
1903
- hasChanged() {
1904
- return this.changed;
1905
- }
1906
- clear() {
1907
- this.rowIndex = -1, this.columnIndex = -1;
1908
- }
1909
- setFocus(e, t) {
1910
- (this.rowIndex !== e || this.columnIndex !== t) && (this.rowIndex = e, this.columnIndex = t, this.changed = !0);
1911
- }
1912
- hasFocus(e, t) {
1913
- return this.rowIndex === e && this.columnIndex === t;
1914
- }
1915
- getFocus() {
1916
- return [this.rowIndex, this.columnIndex];
1917
- }
1918
- }
1919
- const xe = new ye(), ve = new we("cell");
1920
- class Ce {
1921
- constructor() {
1922
- this.overflowX = "auto", this.overflowY = "auto", this.horizontalBorderVisible = !0, this.verticalBorderVisible = !0, this.footerSeparatorBorderVisible = !0, this.headerSeparatorBorderVisible = !0, this.fixedEastSeparatorBorderVisible = !0, this.fixedWestSeparatorBorderVisible = !0, this.tableTopBorderVisible = !0, this.tableBottomBorderVisible = !0, this.hoverRowVisible = !0, this.hoverColumnVisible = !0, this.columnsResizable = !0, this.columnsDraggable = !0, this.columnResizeHandleWidthInPx = 4, this.defaultRowHeights = {
1923
- header: 34,
1924
- body: 34,
1925
- footer: 34
1926
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new H(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new W(), this.sortOrder = ["asc", "desc"], this.getEditRenderer = (e, t) => new be(), this.getSelectionModel = () => xe, this.getFocusModel = () => ve;
1927
- }
1928
- }
1929
- class Ee {
1930
- setStyle(e, t, s) {
1931
- return e.style[t] = s, e;
1932
- }
1933
- appendText(e, t) {
1934
- const s = this.createText(t);
1935
- return this.appendChild(e, s), s;
1936
- }
1937
- addClass(e, t) {
1938
- return t.includes(" ") ? t.split(" ").forEach((s) => e.classList.add(s)) : e.classList.add(t), e;
1939
- }
1940
- appendChild(e, t) {
1941
- e.appendChild(t);
1942
- }
1943
- createElement(e) {
1944
- return document.createElement(e);
1945
- }
1946
- createText(e) {
1947
- return document.createTextNode(e);
1948
- }
1949
- setAttribute(e, t, s) {
1950
- e.setAttribute(t, s);
1951
- }
1952
- }
1953
- const Ae = G({
1771
+ const xe = z({
1954
1772
  inheritAttrs: !1,
1955
1773
  props: {
1956
1774
  tableModel: {
@@ -1958,7 +1776,7 @@ const Ae = G({
1958
1776
  },
1959
1777
  tableOptions: {
1960
1778
  required: !1,
1961
- default: new Ce()
1779
+ default: new X()
1962
1780
  },
1963
1781
  debounceMouseClickDelay: {
1964
1782
  required: !1,
@@ -1976,64 +1794,64 @@ const Ae = G({
1976
1794
  "mouseMoved"
1977
1795
  ],
1978
1796
  setup(h, { emit: e }) {
1979
- const t = N(null), s = (i) => {
1797
+ const t = K(null), s = (i) => {
1980
1798
  const o = {
1981
- onCheckboxChanged: (l) => {
1982
- e("checkboxChanged", l);
1799
+ onCheckboxChanged: (n) => {
1800
+ e("checkboxChanged", n);
1983
1801
  },
1984
- onContextmenu: (l) => {
1985
- e("contextmenu", l);
1802
+ onContextmenu: (n) => {
1803
+ e("contextmenu", n);
1986
1804
  },
1987
- onModelChanged: (l) => {
1988
- e("modelChanged", l);
1805
+ onModelChanged: (n) => {
1806
+ e("modelChanged", n);
1989
1807
  },
1990
- onMouseClicked: (l) => {
1991
- e("mouseClicked", l);
1808
+ onMouseClicked: (n) => {
1809
+ e("mouseClicked", n);
1992
1810
  },
1993
- onMouseDragging: (l) => {
1994
- e("mouseDragging", l);
1811
+ onMouseDragging: (n) => {
1812
+ e("mouseDragging", n);
1995
1813
  },
1996
- onMouseDraggingEnd: (l) => {
1997
- e("mouseDraggingEnd", l);
1814
+ onMouseDraggingEnd: (n) => {
1815
+ e("mouseDraggingEnd", n);
1998
1816
  },
1999
- onMouseMoved: (l) => {
2000
- e("mouseMoved", l);
1817
+ onMouseMoved: (n) => {
1818
+ e("mouseMoved", n);
2001
1819
  }
2002
- }, r = new me(
1820
+ }, l = new P(
2003
1821
  i,
2004
1822
  h.tableModel,
2005
- new Ee(),
1823
+ new j(),
2006
1824
  h.tableOptions,
2007
1825
  o
2008
1826
  );
2009
- r.firstInit(), e("tableReady", r.getApi());
1827
+ l.firstInit(), e("tableReady", l.getApi());
2010
1828
  };
2011
- return z(() => {
1829
+ return Y(() => {
2012
1830
  t.value && s(t.value);
2013
1831
  }), {
2014
1832
  root: t
2015
1833
  };
2016
1834
  }
2017
1835
  });
2018
- const Re = (h, e) => {
1836
+ const we = (h, e) => {
2019
1837
  const t = h.__vccOpts || h;
2020
1838
  for (const [s, i] of e)
2021
1839
  t[s] = i;
2022
1840
  return t;
2023
- }, Me = {
1841
+ }, Ee = {
2024
1842
  ref: "root",
2025
1843
  class: "container-div",
2026
1844
  style: { width: "100%", height: "100%", "background-color": "transparent", padding: "0", margin: "0" }
2027
1845
  };
2028
- function Te(h, e, t, s, i, o) {
2029
- return j(), X("div", Me, null, 512);
1846
+ function Ae(h, e, t, s, i, o) {
1847
+ return q(), U("div", Ee, null, 512);
2030
1848
  }
2031
- const Ie = /* @__PURE__ */ Re(Ae, [["render", Te]]);
2032
- class Fe {
1849
+ const Me = /* @__PURE__ */ we(xe, [["render", Ae]]);
1850
+ class Te {
2033
1851
  constructor(e, t) {
2034
1852
  this.component = e, this.appContext = t;
2035
1853
  }
2036
- render(e, t, s, i, o, r, l) {
1854
+ render(e, t, s, i, o, l, n) {
2037
1855
  return this.mount(
2038
1856
  this.component,
2039
1857
  {
@@ -2042,26 +1860,26 @@ class Fe {
2042
1860
  columnIndex: s,
2043
1861
  areaIdent: i,
2044
1862
  areaModel: o,
2045
- cellValue: r
1863
+ cellValue: l
2046
1864
  },
2047
1865
  this.appContext,
2048
1866
  e
2049
1867
  );
2050
1868
  }
2051
1869
  mount(e, t, s, i) {
2052
- let o = K(e, t);
1870
+ let o = J(e, t);
2053
1871
  return o.appContext = s, k(o, i), () => {
2054
1872
  i && k(null, i);
2055
1873
  };
2056
1874
  }
2057
1875
  }
2058
- const Oe = {
1876
+ const De = {
2059
1877
  install: (h, e = { img: "" }) => {
2060
- h.component("GuiexpertTable", Ie);
1878
+ h.component("GuiexpertTable", Me);
2061
1879
  }
2062
1880
  };
2063
1881
  export {
2064
- Fe as ComponentRendererWrapper,
2065
- Ie as GuiexpertTable,
2066
- Oe as default
1882
+ Te as ComponentRendererWrapper,
1883
+ Me as GuiexpertTable,
1884
+ De as default
2067
1885
  };