@guiexpert/table 1.1.42 → 1.1.45

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,4 +1,4 @@
1
- function vt(h, e = 500) {
1
+ function $t(h, e = 500) {
2
2
  let t = null, s = 0;
3
3
  return function(...o) {
4
4
  const i = Date.now(), r = e - (i - s);
@@ -7,7 +7,7 @@ function vt(h, e = 500) {
7
7
  }, r));
8
8
  };
9
9
  }
10
- function ke(h, e = 500) {
10
+ function We(h, e = 500) {
11
11
  let t = null;
12
12
  return function(...s) {
13
13
  t && window.clearTimeout(t), t = window.setTimeout(() => {
@@ -15,7 +15,7 @@ function ke(h, e = 500) {
15
15
  }, e);
16
16
  };
17
17
  }
18
- function At(h = 500) {
18
+ function _t(h = 500) {
19
19
  return function(e, t, s) {
20
20
  let o = 0;
21
21
  const i = s.value;
@@ -25,97 +25,397 @@ function At(h = 500) {
25
25
  }, s;
26
26
  };
27
27
  }
28
- class Ce {
29
- constructor() {
30
- this.type = "any";
28
+ const Ie = "any", z = "undefined", ke = "null", De = "string", le = "number", ae = "boolean", Pe = "Array", j = "object", K = [ke, z, Ie];
29
+ class Fe {
30
+ constructor(e) {
31
+ this.propertyName = e, this.type = Ie;
31
32
  }
32
33
  }
33
- class de {
34
- constructor() {
35
- this.type = "undefined";
34
+ class te {
35
+ constructor(e) {
36
+ this.propertyName = e, this.type = z;
36
37
  }
37
38
  }
38
- class De {
39
- constructor() {
40
- this.type = "null";
39
+ class Ne {
40
+ constructor(e) {
41
+ this.propertyName = e, this.type = ke;
41
42
  }
42
43
  }
43
- class Fe {
44
- constructor() {
45
- this.type = "string";
44
+ class Ge {
45
+ constructor(e) {
46
+ this.propertyName = e, this.type = De;
46
47
  }
47
48
  }
48
- class Pe {
49
- constructor() {
50
- this.type = "number";
49
+ class ze {
50
+ constructor(e) {
51
+ this.propertyName = e, this.type = le;
51
52
  }
52
53
  }
53
- class Le {
54
- constructor() {
55
- this.type = "boolean";
54
+ class je {
55
+ constructor(e) {
56
+ this.propertyName = e, this.type = ae;
56
57
  }
57
58
  }
58
- class G {
59
- constructor(e = []) {
60
- this.items = e, this.type = "Array";
59
+ class B {
60
+ constructor(e, t = []) {
61
+ this.propertyName = e, this.items = t, this.type = Pe;
61
62
  }
62
63
  }
63
- class ve {
64
+ class Le {
64
65
  constructor(e, t = []) {
65
- this.name = e, this.types = t;
66
+ this.propertyName = e, this.types = t;
66
67
  }
67
68
  toString() {
68
- return `PropertyItem(name: ${this.name}, types: [${this.types.map((e) => e.type).join(", ")}])`;
69
+ return `PropertyItem(propertyName: ${this.propertyName}, types: [${this.types.map((e) => e.type).join(", ")}])`;
69
70
  }
70
71
  }
71
- class O {
72
- constructor(e, t = []) {
73
- this.name = e, this.properties = t, this.type = "object";
72
+ class D {
73
+ constructor(e, t, s = []) {
74
+ this.propertyName = e, this.className = t, this.properties = s, this.type = j;
74
75
  }
75
76
  }
76
- class $e {
77
+ class Bt {
77
78
  constructor() {
78
- this.property = "", this.value = "", this.path = "", this.propertyItem = new ve("", [new Ce()]);
79
+ this.rootPropertyType = null, this.allowCustomRenderer = !0, this.bufCustomRenderer = [], this.LABEL_MAPPINGS = {
80
+ Id: "ID",
81
+ In: "in",
82
+ At: "at",
83
+ Of: "of",
84
+ From: "from",
85
+ And: "and",
86
+ The: "the",
87
+ On: "on",
88
+ By: "by",
89
+ To: "to",
90
+ With: "with",
91
+ For: "for",
92
+ As: "as",
93
+ Or: "or",
94
+ But: "but",
95
+ Nor: "nor"
96
+ };
97
+ }
98
+ renderColumnDefs(e, t = !0) {
99
+ this.allowCustomRenderer = t, this.rootPropertyType = e, this.bufCustomRenderer = [];
100
+ const s = [];
101
+ if (!this.rootPropertyType)
102
+ return s;
103
+ if (e instanceof B) {
104
+ const o = e.items.find((i) => i.type === j);
105
+ if (o && o instanceof D) {
106
+ const i = o.properties;
107
+ s.push(" const columnDefs: ColumnDefIf[] = ["), this.iteratePropertyItems(s, i, ""), s.push(" ];");
108
+ }
109
+ }
110
+ return [...s, ...this.bufCustomRenderer];
111
+ }
112
+ iteratePropertyItems(e, t, s = "") {
113
+ for (let o = 0; o < t.length; o++) {
114
+ let r = t[o].types.filter((n) => !K.includes(n.type));
115
+ if (r.length === 1) {
116
+ let n = r[0];
117
+ const l = s ? [s, n.propertyName].join(".") : n.propertyName;
118
+ if (n instanceof D)
119
+ this.iteratePropertyItems(e, n.properties, l);
120
+ else {
121
+ let a = "";
122
+ if (n instanceof B) {
123
+ const p = n.items.find((m) => m.type === j);
124
+ p && p instanceof D && (a = p.className);
125
+ }
126
+ const c = this.getReadableColumnLabel(l);
127
+ let d = 100, u = "", f = "ge-table-text-align-left";
128
+ if (n.type === Pe) {
129
+ if (this.allowCustomRenderer && a) {
130
+ const p = `${a}ArrayCellRenderer`;
131
+ u = ` bodyRenderer: new ${p}(),`, f = "", this.renderCumstomCellRenderer(a, p);
132
+ } else
133
+ u = " bodyRenderer: new SimpleArrayCellRenderer(),";
134
+ d = 250;
135
+ } else
136
+ n.type === le ? (u = " bodyRenderer: new NumberCellRenderer(),", f = "ge-table-text-align-right") : n.type === ae && (u = " bodyRenderer: new TrueFalseCellRenderer(),", f = "ge-table-text-align-center", d = 80);
137
+ e.push(` ColumnDef.create({
138
+ property: "${l}",
139
+ headerLabel: "${c}",
140
+ width: new Size(${d}, "px"),
141
+ bodyClasses: ["${f}"],
142
+ headerClasses: ["${f}"],`), u && e.push(u), e.push(" }),");
143
+ }
144
+ }
145
+ }
146
+ }
147
+ transformLabel(e) {
148
+ return this.LABEL_MAPPINGS[e] || e;
149
+ }
150
+ getReadableColumnLabel(e) {
151
+ const s = e.split(".").map((o) => {
152
+ const i = o.replace(/([a-z])([A-Z])/g, "$1 $2");
153
+ return i.charAt(0).toUpperCase() + i.slice(1);
154
+ });
155
+ for (let o = 0; o < s.length; o++)
156
+ s[o] = this.transformLabel(s[o]);
157
+ return s.join(" ");
158
+ }
159
+ renderCumstomCellRenderer(e, t) {
160
+ this.bufCustomRenderer.push(`
161
+ // --------------------------------------------------------------
162
+
163
+ import { AreaModelIf, CellRendererIf, DomServiceIf, AreaIdent, RendererCleanupFnType } from "@guiexpert/table";
164
+ // TODO import { ${e} } from "...";
165
+
166
+ export class ${t} implements CellRendererIf {
167
+
168
+ render(
169
+ cellDiv: HTMLDivElement,
170
+ _rowIndex: number,
171
+ _columnIndex: number,
172
+ _areaIdent: AreaIdent,
173
+ _areaModel: AreaModelIf,
174
+ cellValue: ${e}[],
175
+ _domService: DomServiceIf): RendererCleanupFnType | undefined {
176
+ if (cellValue?.length) {
177
+ const div = domService.createElement<HTMLDivElement>("div");
178
+ domService.addClass(div, 'ge-table-label-div');
179
+ domService.appendChild(cellDiv, div);
180
+
181
+ const divInner = domService.createElement<HTMLDivElement>("div");
182
+ domService.addClass(divInner, 'ge-table-label');
183
+ domService.appendChild(div, divInner);
184
+
185
+ const textElement = domService.createText(cellValue.join(', ')); // TODO implement your render logic for ${e}[] here
186
+ domService.appendChild(divInner, textElement);
187
+ } else {
188
+ cellDiv.innerText = '';
189
+ }
190
+ return undefined;
191
+ }
192
+
193
+ }
194
+
195
+ `);
196
+ }
197
+ }
198
+ class me {
199
+ /**
200
+ *
201
+ * Fixes an invalid json like this:
202
+ * [
203
+ * {
204
+ * id: 1,
205
+ * name: 'Alice',
206
+ * description: 'Lorem ipsum dolor',
207
+ * isActive: true,
208
+ * tags: ['typescript', 'javascript'],
209
+ * scripts: [],
210
+ * profile: { age: 30, location: 'Berlin' },
211
+ * preferences: [{ key: 'theme', value: 'dark' }]
212
+ * },
213
+ * {
214
+ * id: 2,
215
+ * name: 'Marc',
216
+ * description: 'Lorem ipsum dolor',
217
+ * isActive: false,
218
+ * tags: ['java', 'javascript'],
219
+ * scripts: [],
220
+ * profile: { age: 55, location: 'Frankfurt' },
221
+ * preferences: [{ key: 'theme', value: 'light' }]
222
+ * },
223
+ * {
224
+ * id: null,
225
+ * name: 'Bob',
226
+ * isActive: false,
227
+ * tags: null,
228
+ * scripts: [],
229
+ * profile: { age: 25, location: 'Frankfurt' },
230
+ * preferences: [{ key: 'language', value: 'de' }]
231
+ *
232
+ *
233
+ * into a valid json string by adding '}]'.
234
+ *
235
+ *
236
+ */
237
+ fixJSON(e) {
238
+ const t = [];
239
+ let s = "", o = !1, i = !1;
240
+ for (let r = 0; r < e.length; r++) {
241
+ const n = e[r];
242
+ if (s += n, n === '"' && !i && (o = !o), n === "\\" && !i) {
243
+ i = !0;
244
+ continue;
245
+ } else
246
+ i = !1;
247
+ if (!o) {
248
+ if (n === "{" || n === "[")
249
+ t.push(n);
250
+ else if (n === "}" || n === "]") {
251
+ const l = t.pop();
252
+ if (n === "}" && l !== "{" || n === "]" && l !== "[")
253
+ throw new Error("Invalid JSON structure detected.");
254
+ }
255
+ }
256
+ }
257
+ for (; t.length > 0; ) {
258
+ const r = t.pop();
259
+ r === "{" ? s += "}" : r === "[" && (s += "]");
260
+ }
261
+ return s;
262
+ }
263
+ }
264
+ class Ue {
265
+ constructor() {
266
+ this.property = "", this.value = "", this.path = "", this.propertyItem = new Le("", [new Fe("")]);
79
267
  }
80
268
  toString() {
81
269
  var e;
82
270
  return `${this.path} -> : ${((e = this.propertyItem) == null ? void 0 : e.toString()) ?? ""}`;
83
271
  }
84
272
  }
85
- class Oe {
273
+ const be = "Entity";
274
+ function Ye(h) {
275
+ let e = Ke(Xe(h));
276
+ return e.includes(be) || (e = e + be), e;
277
+ }
278
+ function Ke(h) {
279
+ if (!h || h.length === 0)
280
+ return h;
281
+ const e = ["Array", "Arr", "List", "s"];
282
+ for (const t of e)
283
+ if (h.endsWith(t))
284
+ return h.slice(0, -t.length);
285
+ return h;
286
+ }
287
+ function Xe(h) {
288
+ return !h || h.length === 0 ? "" : h[0].toUpperCase() + h.slice(1);
289
+ }
290
+ class Ht {
86
291
  constructor() {
87
- this.entitySuffix = "Entity";
292
+ this.debugging = !1;
293
+ }
294
+ /**
295
+ *
296
+ * Converts a json or object structure like this:
297
+ * [
298
+ * {
299
+ * id: 1,
300
+ * name: 'Alice',
301
+ * description: 'Lorem ipsum dolor',
302
+ * isActive: true,
303
+ * tags: ['typescript', 'javascript'],
304
+ * scripts: [],
305
+ * profile: { age: 30, location: 'Berlin' },
306
+ * preferences: [{ key: 'theme', value: 'dark' }]
307
+ * },
308
+ * {
309
+ * id: 2,
310
+ * name: 'Marc',
311
+ * description: 'Lorem ipsum dolor',
312
+ * isActive: false,
313
+ * tags: ['java', 'javascript'],
314
+ * scripts: [],
315
+ * profile: { age: 55, location: 'Frankfurt' },
316
+ * preferences: [{ key: 'theme', value: 'light' }]
317
+ * },
318
+ * {
319
+ * id: null,
320
+ * name: 'Bob',
321
+ * isActive: false,
322
+ * tags: null,
323
+ * scripts: [],
324
+ * profile: { age: 25, location: 'Frankfurt' },
325
+ * preferences: [{ key: 'language', value: 'de' }]
326
+ * }
327
+ * ]
328
+ *
329
+ * into a PropertyTape tree structure like this:
330
+ *
331
+ * return new ArrayPropertyType(
332
+ * [
333
+ * new ObjectPropertyType('XyzRowEntity', [
334
+ * new PropertyItem('id', [new NumberPropertyType(), new NullPropertyType()]),
335
+ * new PropertyItem('name', [new StringPropertyType()]),
336
+ * new PropertyItem('description', [new StringPropertyType(), new UndefinedPropertyType()]),
337
+ * new PropertyItem('isActive', [new BooleanPropertyType()]),
338
+ * new PropertyItem('tags', [
339
+ * new ArrayPropertyType(
340
+ * [new StringPropertyType()]
341
+ * ),
342
+ * new NullPropertyType()
343
+ * ]),
344
+ * new PropertyItem('scripts', [
345
+ * new ArrayPropertyType(
346
+ * [new AnyPropertyType()]
347
+ * ),
348
+ * ]),
349
+ * new PropertyItem('profile', [
350
+ * new ObjectPropertyType('profile', [
351
+ * new PropertyItem('age', [new NumberPropertyType()]),
352
+ * new PropertyItem('location', [new StringPropertyType()])
353
+ * ])
354
+ * ]),
355
+ * new PropertyItem('preferences', [
356
+ * new ArrayPropertyType(
357
+ * [
358
+ * new ObjectPropertyType('preference', [
359
+ * new PropertyItem('key', [new StringPropertyType()]),
360
+ * new PropertyItem('value', [new StringPropertyType()])
361
+ * ])
362
+ * ])
363
+ * ])
364
+ * ])
365
+ * ]);
366
+ *
367
+ *
368
+ * const json = JSON.stringify(demoData);
369
+ * const rootPropertyType: PropertyType = new PropertyTypeService().json2PropertyType(json, 'XyzRows');
370
+ *
371
+ * @param json
372
+ * @param rootName
373
+ */
374
+ json2PropertyType(e, t = "") {
375
+ let s;
376
+ if (typeof e == "string") {
377
+ const o = new me().fixJSON(e);
378
+ s = this.json2Object(o);
379
+ } else
380
+ s = e;
381
+ return this.object2PropertyType(s, t);
382
+ }
383
+ json2Object(e) {
384
+ return JSON.parse(e);
88
385
  }
89
386
  /**
90
387
  * Converts a json or object structure like this:
91
388
  * [
92
389
  * {
93
390
  * id: 1,
94
- * name: "Alice",
95
- * description: "Lorem ipsum dolor",
391
+ * name: 'Alice',
392
+ * description: 'Lorem ipsum dolor',
96
393
  * isActive: true,
97
- * tags: ["typescript", "javascript"],
98
- * profile: { age: 30, location: "Berlin" },
99
- * preferences: [{ key: "theme", value: "dark" }],
394
+ * tags: ['typescript', 'javascript'],
395
+ * scripts: [],
396
+ * profile: { age: 30, location: 'Berlin' },
397
+ * preferences: [{ key: 'theme', value: 'dark' }]
100
398
  * },
101
399
  * {
102
400
  * id: 2,
103
- * name: "Marc",
104
- * description: "Lorem ipsum dolor",
401
+ * name: 'Marc',
402
+ * description: 'Lorem ipsum dolor',
105
403
  * isActive: false,
106
- * tags: ["java", "javascript"],
107
- * profile: { age: 55, location: "Frankfurt" },
108
- * preferences: [{ key: "theme", value: "light" }],
404
+ * tags: ['java', 'javascript'],
405
+ * scripts: [],
406
+ * profile: { age: 55, location: 'Frankfurt' },
407
+ * preferences: [{ key: 'theme', value: 'light' }]
109
408
  * },
110
409
  * {
111
410
  * id: null,
112
- * name: "Bob",
411
+ * name: 'Bob',
113
412
  * isActive: false,
114
413
  * tags: null,
115
- * profile: { age: 25, location: "Frankfurt" },
116
- * preferences: [{ key: "language", value: "de" }],
117
- * },
118
- * ]
414
+ * scripts: [],
415
+ * profile: { age: 25, location: 'Frankfurt' },
416
+ * preferences: [{ key: 'language', value: 'de' }]
417
+ * }
418
+ * ];
119
419
  *
120
420
  * into a PropertyTape tree structure like this:
121
421
  *
@@ -132,6 +432,11 @@ class Oe {
132
432
  * ),
133
433
  * new NullPropertyType()
134
434
  * ]),
435
+ * new PropertyItem('scripts', [
436
+ * new ArrayPropertyType(
437
+ * [new AnyPropertyType()]
438
+ * ),
439
+ * ]),
135
440
  * new PropertyItem('profile', [
136
441
  * new ObjectPropertyType('profile', [
137
442
  * new PropertyItem('age', [new NumberPropertyType()]),
@@ -153,16 +458,17 @@ class Oe {
153
458
  * The PropertyTape tree structure can be rendered as TypeScript interface definitions with the SchemeGenerator:
154
459
  *
155
460
  * export interface XyzRowEntity {
156
- * description: string;
157
- * id: (null | number);
461
+ * description?: string;
462
+ * id: number|null;
158
463
  * isActive: boolean;
159
464
  * name: string;
160
- * preferences: Array<(PreferenceEntity)>;
465
+ * preferences: PreferenceEntity[];
161
466
  * profile: ProfileEntity;
162
- * tags: (null | Array<()> | string);
467
+ * scripts: any[];
468
+ * tags: string[]|null;
163
469
  * }
164
470
  *
165
- * export interface PreferencesEntity {
471
+ * export interface PreferenceEntity {
166
472
  * key: string;
167
473
  * value: string;
168
474
  * }
@@ -176,8 +482,27 @@ class Oe {
176
482
  * @param rootName
177
483
  */
178
484
  object2PropertyType(e, t = "") {
485
+ const s = this.object2ValueInfos(e, t);
486
+ this.debugging && this.logValueInfos(s);
487
+ const o = this.valueInfos2PropertyType(s);
488
+ return "name" in o && (o.name = t), o;
489
+ }
490
+ json2ValueInfos(e, t = "") {
491
+ let s;
492
+ if (typeof e == "string") {
493
+ const o = new me().fixJSON(e);
494
+ s = this.json2Object(o);
495
+ } else
496
+ s = e;
497
+ return this.object2ValueInfos(s, t);
498
+ }
499
+ object2ValueInfos(e, t = "") {
179
500
  const s = this.extractValueInfos(e, t), o = this.mergeValueInfos(s);
180
- return o.length > 0 && (o[0].propertyItem.name = t), this.valueInfos2PropertyType(o);
501
+ return o.length > 0 && (o[0].propertyItem.propertyName = t), this.debugging && this.logValueInfos(o), o;
502
+ }
503
+ getParentPath(e) {
504
+ const t = e.lastIndexOf("/");
505
+ return t === -1 ? "" : e.substring(0, t);
181
506
  }
182
507
  valueInfos2PropertyType(e) {
183
508
  const t = e[0].propertyItem.types[0], s = /* @__PURE__ */ new Map();
@@ -188,27 +513,24 @@ class Oe {
188
513
  if (i) {
189
514
  const r = s.get(i);
190
515
  if (r) {
191
- let l = !1;
192
- if (r.propertyItem.types.length === 1) {
193
- const n = r.propertyItem.types[0];
194
- if (n instanceof G) {
195
- l = !0;
196
- for (const a of o.propertyItem.types)
197
- n.items.push(a);
516
+ let n = !1;
517
+ const l = r.propertyItem.types.filter((a) => !K.includes(a.type));
518
+ if (l.length === 1) {
519
+ const a = l[0];
520
+ if (a instanceof B) {
521
+ n = !0;
522
+ for (const c of o.propertyItem.types)
523
+ a.items.push(c);
198
524
  } else
199
- n instanceof O && (l = !0, n.properties.push(o.propertyItem));
525
+ a instanceof D && (n = !0, a.properties.push(o.propertyItem));
200
526
  }
201
- if (!l)
202
- for (const n of o.propertyItem.types)
203
- r.propertyItem.types.push(n);
527
+ if (!n)
528
+ for (const a of o.propertyItem.types)
529
+ r.propertyItem.types.push(a);
204
530
  }
205
531
  }
206
532
  }
207
- return t || new Ce();
208
- }
209
- getParentPath(e) {
210
- const t = e.lastIndexOf("/");
211
- return t === -1 ? "" : e.substring(0, t);
533
+ return t || new Fe("");
212
534
  }
213
535
  logValueInfos(e) {
214
536
  for (let t = 0; t < e.length; t++) {
@@ -225,18 +547,43 @@ class Oe {
225
547
  let o = e[s].path;
226
548
  for (let i = s - 1; i >= 0; i--) {
227
549
  if (e[i].path === o) {
228
- let r = e[i].propertyItem.types[0];
229
- e[s].propertyItem.types.some((l) => l.type === r.type) || e[s].propertyItem.types.push(r);
550
+ const r = e[i].propertyItem.types[0];
551
+ e[s].propertyItem.types.some((n) => n.type === r.type) || e[s].propertyItem.types.push(r);
230
552
  }
231
553
  (i === 0 || e[i].path !== o) && (s = i, t.push(e[i]), o = e[s].path);
232
554
  }
555
+ for (const i of e) {
556
+ const r = this.getParentPath(i.path);
557
+ if (r) {
558
+ const n = this.getParentPath(r);
559
+ if (n) {
560
+ const l = this.getFirstValueInfoByPath(e, n);
561
+ if (Array.isArray(l == null ? void 0 : l.value)) {
562
+ const a = (l == null ? void 0 : l.value.length) ?? 0, c = this.countPath(e, i.path);
563
+ a > c && (i.propertyItem.types.some((d) => d.type === z) || i.propertyItem.types.push(new te(i.property)));
564
+ }
565
+ }
566
+ }
567
+ }
233
568
  return t.reverse(), t;
234
569
  }
570
+ countPath(e, t) {
571
+ let s = 0;
572
+ for (const o of e)
573
+ o.path === t && s++;
574
+ return s;
575
+ }
576
+ getFirstValueInfoByPath(e, t) {
577
+ for (let s = e.length - 1; s >= 0; s--)
578
+ if (e[s].path === t)
579
+ return e[s];
580
+ return null;
581
+ }
235
582
  extractValueInfos(e, t) {
236
- const s = [], o = (i, r, l) => {
237
- const n = new $e();
583
+ const s = [], o = (i, r, n) => {
584
+ const l = new Ue();
238
585
  let a = r.split("/").pop() || "";
239
- if (a === "[]" ? a = l + this.entitySuffix : a === "root" && (a = t), n.property = a, n.value = i, n.path = r, n.propertyItem = this.createPropertyItem(i, n.property), s.push(n), i && typeof i == "object" && !Array.isArray(i)) {
586
+ if (a === "[]" ? a = n : a === "root" && (a = t), l.property = a, l.value = i, l.path = r, l.propertyItem = this.createPropertyItem(i, l.property), s.push(l), i && typeof i === j && !Array.isArray(i)) {
240
587
  for (const c in i)
241
588
  if (i.hasOwnProperty(c)) {
242
589
  const d = r ? `${r}/${c}` : c;
@@ -251,113 +598,91 @@ class Oe {
251
598
  return o(e, "root", t), s.sort((i, r) => i.path.localeCompare(r.path));
252
599
  }
253
600
  createPropertyItem(e, t) {
254
- return new ve(t, [
601
+ return new Le(t, [
255
602
  this.createPropertyType(e, t)
256
603
  ]);
257
604
  }
258
605
  createPropertyType(e, t) {
259
- return e === null ? new De() : e === void 0 ? new de() : typeof e == "string" ? new Fe() : typeof e == "number" && !isNaN(e) ? new Pe() : typeof e == "boolean" ? new Le() : Array.isArray(e) ? new G() : typeof e == "object" ? new O(t) : new de();
606
+ return e === null ? new Ne(t) : e === void 0 ? new te(t) : typeof e === De ? new Ge(t) : typeof e === le && !isNaN(e) ? new ze(t) : typeof e === ae ? new je(t) : Array.isArray(e) ? new B(t) : typeof e === j ? new D(t, Ye(t)) : new te(t);
260
607
  }
261
608
  }
262
- class Rt {
263
- /**
264
- *
265
- * @param json
266
- * @param rootName
267
- */
268
- constructor(e, t = "") {
269
- this.rootName = t, this.entitySuffix = "Entity", this.rootPropertyType = null, this.renderTypeScriptInterfacesFifo = [], this.renderTypeScriptInterfacesDone = [], this.rootName || (this.rootName = "Row");
270
- let s;
271
- typeof e == "string" ? s = this.jon2Object(e) : s = e, this.rootPropertyType = this.object2PropertyType(s);
272
- }
273
- jon2Object(e) {
274
- return JSON.parse(e);
275
- }
276
- object2PropertyType(e) {
277
- return new Oe().object2PropertyType(e, this.rootName);
609
+ class Vt {
610
+ constructor() {
611
+ this.orOperator = "|", this.rootPropertyType = null, this.rootName = "Root", this.renderTypeScriptInterfacesFifo = [], this.renderTypeScriptInterfacesDone = [];
278
612
  }
279
- renderTypeScriptInterfaces() {
280
- const e = [];
281
- return this.rootPropertyType && (this.renderTypeScriptInterfacesFifo = [], this.renderTypeScriptInterfacesRecursive(this.rootPropertyType, e), this.renderTypeScriptInterfacesFifoNext(e)), e;
613
+ renderTypeScriptInterfaces(e) {
614
+ "name" in e && (this.rootName = e.name + ""), this.rootPropertyType = e;
615
+ const t = [];
616
+ return this.rootPropertyType && (this.renderTypeScriptInterfacesFifo = [], this.renderTypeScriptInterfacesRecursive(this.rootPropertyType, t), this.renderTypeScriptInterfacesFifoNext(t)), t;
282
617
  }
283
618
  renderTypeScriptInterfacesFifoNext(e) {
284
619
  var t;
285
620
  for (; (t = this.renderTypeScriptInterfacesFifo) != null && t.length; ) {
286
621
  const s = this.renderTypeScriptInterfacesFifo.shift();
287
- s && this.renderTypeScriptInterfacesRecursive(s, e, s.name);
622
+ s && this.renderTypeScriptInterfacesRecursive(s, e, s.propertyName);
288
623
  }
289
624
  }
290
625
  renderTypeScriptInterfacesRecursive(e = this.rootPropertyType, t = [], s = this.rootName) {
291
626
  if (!e)
292
627
  return t;
293
- if (e instanceof G) {
628
+ if (e instanceof B) {
294
629
  for (const o of e.items)
295
- if (this.renderTypeScriptInterfacesRecursive(o, t, s), o instanceof O) {
630
+ if (this.renderTypeScriptInterfacesRecursive(o, t, s), o instanceof D) {
296
631
  const i = o;
297
632
  i !== this.rootPropertyType && this.renderTypeScriptInterfacesFifo.push(i);
298
633
  }
299
- } else if (e instanceof O) {
300
- const o = e, i = this.getEntityName(s);
634
+ } else if (e instanceof D) {
635
+ const o = e, i = o.className;
301
636
  if (!this.renderTypeScriptInterfacesDone.includes(i)) {
302
637
  this.renderTypeScriptInterfacesDone.push(i), t.push(`export interface ${i} {`);
303
638
  for (const r of o.properties) {
304
- const l = this.propertyItem2InterfaceDateType(r), n = this.containsUndefinedPropertyType(r) ? "?" : "";
305
- t.push(" " + r.name + n + ": " + l + ";");
639
+ let n = this.propertyItem2InterfaceDateType(r);
640
+ n === "[]" ? n = "any[]" : n.startsWith("(") && n.endsWith(")") && (n = n.substring(1, n.length - 1));
641
+ const l = this.containsUndefinedPropertyType(r) ? "?" : "";
642
+ t.push(" " + r.propertyName + l + ": " + n + ";");
306
643
  for (const a of r.types)
307
- if (a instanceof O)
644
+ if (a instanceof D)
308
645
  a !== this.rootPropertyType && this.renderTypeScriptInterfacesFifo.push(a);
309
- else if (a instanceof G)
646
+ else if (a instanceof B)
310
647
  for (const c of a.items)
311
- c instanceof O && this.renderTypeScriptInterfacesFifo.push(c);
648
+ c instanceof D && this.renderTypeScriptInterfacesFifo.push(c);
312
649
  }
313
650
  t.push("}"), t.push("");
314
651
  }
315
652
  }
316
653
  return t;
317
654
  }
318
- getEntityName(e) {
319
- let t = this.trimArraySuffixes(this.firstLetterUppercase(e));
320
- return t.includes(this.entitySuffix) || (t = t + this.entitySuffix), t;
321
- }
322
655
  propertyItem2InterfaceDateType(e) {
323
656
  var s, o;
324
657
  if (((s = e.types) == null ? void 0 : s.length) === 0)
325
658
  return "any";
326
659
  if (((o = e.types) == null ? void 0 : o.length) === 1)
327
660
  return this.renderType(e.types[0], e);
328
- const t = e.types.map((i) => this.renderType(i, e)).filter((i) => i !== "undefined").join(" | ");
329
- return t.includes(" | ") ? "(" + t + ")" : t;
661
+ const t = e.types.map((i) => this.renderType(i, e)).filter((i) => i !== z).sort((i, r) => K.includes(i) ? 100 : K.includes(r) ? -100 : i.localeCompare(r)).join(this.orOperator);
662
+ return t.includes(this.orOperator) ? "(" + t + ")" : t;
330
663
  }
331
664
  renderType(e, t) {
332
- return e instanceof G ? `Array<(${e.items.map((o) => this.renderType(o, t)).join(" | ")})>` : e instanceof O ? this.getEntityName(t.name) : e.type;
665
+ if (e instanceof B) {
666
+ const s = e.items.map((o) => this.renderType(o, t)).join(this.orOperator);
667
+ return s.includes(this.orOperator) ? `(${s})[]` : `${s}[]`;
668
+ }
669
+ return e instanceof D ? e.className : e.type;
333
670
  }
334
671
  containsUndefinedPropertyType(e) {
335
672
  for (const t of e.types)
336
- if (t.type === "undefined")
673
+ if (t.type === z)
337
674
  return !0;
338
675
  return !1;
339
676
  }
340
- firstLetterUppercase(e) {
341
- return !e || e.length === 0 ? "" : e[0].toUpperCase() + e.slice(1);
342
- }
343
- trimArraySuffixes(e) {
344
- if (!e || e.length === 0)
345
- return e;
346
- const t = ["Array", "Arr", "List", "s"];
347
- for (const s of t)
348
- if (e.endsWith(s))
349
- return e.slice(0, -s.length);
350
- return e;
351
- }
352
677
  }
353
- class H {
678
+ class V {
354
679
  // The constructor is private to prevent direct construction calls
355
680
  // with the `new` operator
356
681
  constructor() {
357
682
  this.alreadySet = !1;
358
683
  }
359
684
  static getInstance() {
360
- return H.instance || (H.instance = new H()), H.instance;
685
+ return V.instance || (V.instance = new V()), V.instance;
361
686
  }
362
687
  /**
363
688
  * Method to set the license key for the application.
@@ -375,21 +700,21 @@ class H {
375
700
  }
376
701
  }
377
702
  }
378
- function W(h) {
703
+ function N(h) {
379
704
  return h && h.type === "TreeRow";
380
705
  }
381
- function ee(h) {
706
+ function ie(h) {
382
707
  return h && h.type === "AreaModelTree";
383
708
  }
384
- function _e(h) {
709
+ function Je(h) {
385
710
  return h && h.type === "CheckboxColumnDef";
386
711
  }
387
- class oe {
388
- constructor(e = -1, t = -1, s = -1, o = -1, i, r, l, n = 0, a = 0, c = 0, d = "") {
389
- this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = l, this.clickCount = n, this.draggingX = a, this.draggingY = c, this.action = d;
712
+ class ce {
713
+ constructor(e = -1, t = -1, s = -1, o = -1, i, r, n, l = 0, a = 0, c = 0, d = "") {
714
+ this.rowIndex = e, this.rowTop = t, this.columnIndex = s, this.columnLeft = o, this.areaIdent = i, this.sideIdent = r, this.originalEvent = n, this.clickCount = l, this.draggingX = a, this.draggingY = c, this.action = d;
390
715
  }
391
716
  clone() {
392
- return new oe(
717
+ return new ce(
393
718
  this.rowIndex,
394
719
  this.rowTop,
395
720
  this.columnIndex,
@@ -404,25 +729,25 @@ class oe {
404
729
  );
405
730
  }
406
731
  }
407
- class L {
732
+ class O {
408
733
  constructor(e = ">", t = "", s = []) {
409
734
  this.content = e, this.style = t, this.classes = s;
410
735
  }
411
736
  }
412
- class Ae {
413
- constructor(e = new L(
737
+ class Oe {
738
+ constructor(e = new O(
414
739
  ">",
415
740
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
416
741
  ["gt-table-tree-arrow-expanded"]
417
- ), t = new L(
742
+ ), t = new O(
418
743
  ">",
419
744
  "",
420
745
  ["ge-table-tree-arrow-collapsed"]
421
- ), s = new L(
746
+ ), s = new O(
422
747
  ">",
423
748
  "color:transparent;",
424
749
  ["gt-table-tree-arrow-hidden"]
425
- ), o = new L(
750
+ ), o = new O(
426
751
  "↕",
427
752
  "",
428
753
  ["gt-table-tree-arrow-expanded-all"]
@@ -430,12 +755,12 @@ class Ae {
430
755
  this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
431
756
  }
432
757
  }
433
- class Re {
434
- constructor(e = new L("↑", "", ["ge-header-sorted-asc"]), t = new L("↓", "", ["ge-header-sorted-desc"]), s = new L("↑", "color:transparent;", [])) {
758
+ class $e {
759
+ constructor(e = new O("↑", "", ["ge-header-sorted-asc"]), t = new O("↓", "", ["ge-header-sorted-desc"]), s = new O("↑", "color:transparent;", [])) {
435
760
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
436
761
  }
437
762
  }
438
- class Be {
763
+ class qe {
439
764
  constructor(e) {
440
765
  this.domService = e;
441
766
  }
@@ -509,24 +834,24 @@ class Be {
509
834
  return this.addClass(e, s), this.domService.appendChild(t, s), s;
510
835
  }
511
836
  addRowDiv(e, t, s = -1, o, i, r = "") {
512
- const l = t.index ?? -1, n = this.getDivOrCreateDiv(l, e);
513
- if (this.domService.addClass(n, "ge-table-row-div"), this.domService.addClass(n, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
837
+ const n = t.index ?? -1, l = this.getDivOrCreateDiv(n, e);
838
+ if (this.domService.addClass(l, "ge-table-row-div"), this.domService.addClass(l, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
514
839
  const a = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
515
- this.domService.addClass(n, `ge-table-row-${a}`);
840
+ this.domService.addClass(l, `ge-table-row-${a}`);
516
841
  }
517
- 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", `${o}`), r) {
842
+ if (this.domService.setStyle(l, "display", "clip"), this.domService.setStyle(l, "position", "absolute"), this.domService.setStyle(l, "left", `${t.left}px`), this.domService.setStyle(l, "top", `${t.top}px`), this.domService.setStyle(l, "width", `${t.width}px`), this.domService.setStyle(l, "height", `${t.height}px`), this.domService.setAttribute(l, "data-row-index", `${s}`), this.domService.setAttribute(l, "data-area", `${o}`), r) {
518
843
  const a = this.domService.createText(r);
519
- this.domService.appendChild(n, a);
844
+ this.domService.appendChild(l, a);
520
845
  }
521
- return this.domService.appendChild(e.child, n), n;
846
+ return this.domService.appendChild(e.child, l), l;
522
847
  }
523
848
  addColumnDiv(e) {
524
- const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: l, text: n = "", treeArrow: a, tableOptions: c, checkedType: d = void 0, sortState: u } = e, f = c == null ? void 0 : c.treeOptions, g = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, m = this.domService.createElement("div");
525
- this.domService.addClass(m, "ge-table-col-div"), g && this.domService.addClass(m, "ge-with-checkbox"), this.domService.addClass(m, `ge-table-col-div-${s.index}`), this.domService.setAttribute(m, "data-col-index", `${s.index}`), this.domService.setAttribute(m, "data-row-index", `${o}`), this.domService.setAttribute(m, "data-area", `${r}`);
526
- const p = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
527
- if (r === "body" && l === "center" && this.domService.addClass(m, `ge-table-column-${p}`), this.domService.setStyle(m, "display", "clip"), this.domService.setStyle(m, "position", "absolute"), this.domService.setStyle(m, "left", `${s.left}px`), this.domService.setStyle(m, "top", `${s.top}px`), this.domService.setStyle(m, "width", `${s.width}px`), this.domService.setStyle(m, "height", `${s.height}px`), a && a !== "none" && (this.domService.addClass(m, "ge-table-col-tree"), this.addArrowDiv(m, a, f, o, i, r)), g && i === 0 && d && this.addCheckboxToDiv(m, d, r, o), n) {
849
+ const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: n, text: l = "", treeArrow: a, tableOptions: c, checkedType: d = void 0, sortState: u } = e, f = c == null ? void 0 : c.treeOptions, p = c == null ? void 0 : c.showCheckboxWihoutExtraColumn, m = this.domService.createElement("div");
850
+ this.domService.addClass(m, "ge-table-col-div"), p && this.domService.addClass(m, "ge-with-checkbox"), this.domService.addClass(m, `ge-table-col-div-${s.index}`), this.domService.setAttribute(m, "data-col-index", `${s.index}`), this.domService.setAttribute(m, "data-row-index", `${o}`), this.domService.setAttribute(m, "data-area", `${r}`);
851
+ const g = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
852
+ if (r === "body" && n === "center" && this.domService.addClass(m, `ge-table-column-${g}`), this.domService.setStyle(m, "display", "clip"), this.domService.setStyle(m, "position", "absolute"), this.domService.setStyle(m, "left", `${s.left}px`), this.domService.setStyle(m, "top", `${s.top}px`), this.domService.setStyle(m, "width", `${s.width}px`), this.domService.setStyle(m, "height", `${s.height}px`), a && a !== "none" && (this.domService.addClass(m, "ge-table-col-tree"), this.addArrowDiv(m, a, f, o, i, r)), p && i === 0 && d && this.addCheckboxToDiv(m, d, r, o), l) {
528
853
  const b = a !== "none" && i === 0;
529
- this.addLabelDiv(m, n, b, o, i, r);
854
+ this.addLabelDiv(m, l, b, o, i, r);
530
855
  }
531
856
  return u && this.addSortedIcon(m, u, c == null ? void 0 : c.sortedOptions, i), this.domService.appendChild(t, m), m;
532
857
  }
@@ -542,40 +867,40 @@ class Be {
542
867
  class="ge-table-row-checkbox"> `, this.domService.setStyle(i, "display", "inline"), this.domService.setStyle(i, "width", "inherit"), this.domService.setAttribute(i, "data-row-index", `${o}`), this.domService.appendChild(e, i), i;
543
868
  }
544
869
  addLabelDiv(e, t = "", s = !1, o = -1, i = -1, r = "body") {
545
- const l = this.domService.createElement("div");
546
- if (this.domService.addClass(l, "ge-table-label-div"), this.domService.setStyle(l, "position", "relative"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "width", "100%"), this.domService.setStyle(l, "height", "100%"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`), t)
870
+ const n = this.domService.createElement("div");
871
+ 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", `${o}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`), t)
547
872
  if (s) {
548
- const n = this.domService.createText(t);
549
- this.domService.appendChild(l, n);
873
+ const l = this.domService.createText(t);
874
+ this.domService.appendChild(n, l);
550
875
  } else {
551
- const n = this.domService.createElement("div");
552
- this.domService.appendChild(l, n);
876
+ const l = this.domService.createElement("div");
877
+ this.domService.appendChild(n, l);
553
878
  const a = this.domService.createText(t);
554
- this.domService.addClass(n, "ge-table-label"), this.domService.appendChild(n, a), this.domService.setAttribute(n, "data-row-index", `${o}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`);
879
+ this.domService.addClass(l, "ge-table-label"), this.domService.appendChild(l, a), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
555
880
  }
556
- return this.domService.appendChild(e, l), l;
881
+ return this.domService.appendChild(e, n), n;
557
882
  }
558
- addSortedIcon(e, t = "", s = new Re(), o = -1) {
883
+ addSortedIcon(e, t = "", s = new $e(), o = -1) {
559
884
  const i = this.domService.createElement("div");
560
885
  this.domService.addClass(i, "ge-table-sorted-icon-div"), this.domService.setStyle(i, "position", "absolute"), this.domService.setStyle(i, "top", "0"), this.domService.setStyle(i, "right", "0"), this.domService.setStyle(i, "width", "20px"), this.domService.setStyle(i, "background", "transparent"), this.domService.setStyle(i, "cursor", "pointer"), this.domService.setAttribute(i, "data-col-index", `${o}`), this.domService.setAttribute(i, "data-area", "header");
561
886
  let r;
562
887
  t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
563
- const l = r.content, n = this.domService.createText(l);
564
- this.domService.appendChild(i, n), r.style && this.applyStyleString(i, r.style);
888
+ const n = r.content, l = this.domService.createText(n);
889
+ this.domService.appendChild(i, l), r.style && this.applyStyleString(i, r.style);
565
890
  for (const a of r.classes)
566
891
  this.domService.addClass(i, a);
567
892
  return this.domService.appendChild(e, i), i;
568
893
  }
569
- addArrowDiv(e, t = "none", s = new Ae(), o = -1, i = -1, r = "body") {
570
- const l = this.domService.createElement("div");
571
- this.domService.addClass(l, "ge-table-tree-arrow-div"), this.domService.setStyle(l, "display", "inline-block"), this.domService.setStyle(l, "position", ""), this.domService.setStyle(l, "width", "20px"), this.domService.setStyle(l, "background", "transparent"), this.domService.setStyle(l, "cursor", "pointer"), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
572
- let n;
573
- t === "expanded" ? n = s.arrowExpanded : t === "collapsed" ? n = s.arrowCollapsed : n = s.arrowPlaceholder;
574
- const a = n.content, c = this.domService.createText(a);
575
- this.domService.appendChild(l, c), n.style && this.applyStyleString(l, n.style);
576
- for (const d of n.classes)
577
- this.domService.addClass(l, d);
578
- return this.domService.appendChild(e, l), l;
894
+ addArrowDiv(e, t = "none", s = new Oe(), o = -1, i = -1, r = "body") {
895
+ const n = this.domService.createElement("div");
896
+ 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", `${o}`), this.domService.setAttribute(n, "data-col-index", `${i}`), this.domService.setAttribute(n, "data-area", `${r}`);
897
+ let l;
898
+ t === "expanded" ? l = s.arrowExpanded : t === "collapsed" ? l = s.arrowCollapsed : l = s.arrowPlaceholder;
899
+ const a = l.content, c = this.domService.createText(a);
900
+ this.domService.appendChild(n, c), l.style && this.applyStyleString(n, l.style);
901
+ for (const d of l.classes)
902
+ this.domService.addClass(n, d);
903
+ return this.domService.appendChild(e, n), n;
579
904
  }
580
905
  addColumnBorderDivs(e, t, s, o, i) {
581
906
  if (e.verticalBorderVisible) {
@@ -617,20 +942,20 @@ class Be {
617
942
  return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
618
943
  }
619
944
  }
620
- const J = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
621
- class He {
945
+ const Q = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
946
+ class Ze {
622
947
  constructor(e, t) {
623
948
  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)) {
624
949
  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"));
625
950
  const s = e.getAttribute("data-area");
626
- if (s && (this.areaIdent = J(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
951
+ if (s && (this.areaIdent = Q(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
627
952
  const o = e;
628
953
  this.value = o.value;
629
954
  }
630
955
  }
631
956
  }
632
957
  }
633
- class Ve {
958
+ class Qe {
634
959
  constructor(e) {
635
960
  this.tableScope = e, this.doubleClickDelay = 500, this.expandedAll = !0, this.mouseDown = !1, this.dragging = !1, this.lastClicked = 0, this.tableScope.hostElement.addEventListener("click", this.onHostElementClicked.bind(this)), this.tableScope.hostElement.addEventListener("dblclick", this.onHostElementDblClicked.bind(this)), this.tableScope.hostElement.addEventListener("mousedown", this.onMouseDown.bind(this)), this.tableScope.hostElement.addEventListener("mousemove", this.onMouseMove.bind(this)), this.tableScope.hostElement.addEventListener("mouseup", this.onMouseUp.bind(this)), this.tableScope.hostElement.addEventListener("contextmenu", this.onContextmenu.bind(this)), this.tableScope.hostElement._MouseHandler = "true", this.tableScope.scrollViewport.addEventListener("scroll", this.tableScope.adjustAfterScrolling.bind(this.tableScope)), [window, this.tableScope.hostElement].forEach(
636
961
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -660,14 +985,14 @@ class Ve {
660
985
  if (t - this.lastClicked < this.doubleClickDelay)
661
986
  return;
662
987
  this.lastClicked = t;
663
- const s = new He(e.target, this.tableScope);
988
+ const s = new Ze(e.target, this.tableScope);
664
989
  if (s.action === "toggleExpandCollapseAll")
665
990
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
666
991
  else if (s.action === "toggleHeaderGroup")
667
992
  this.tableScope.toggleHeaderGroup(s), e.preventDefault(), e.stopPropagation();
668
993
  else if (s.inputType === "checkbox" && s.areaIdent)
669
994
  this.tableScope.toggleRowCheckbox(s.rowIdx, s.colIdx, s.areaIdent), e.preventDefault(), e.stopPropagation();
670
- else if (W(s.row) && s.areaModel) {
995
+ else if (N(s.row) && s.areaModel) {
671
996
  const o = s.colIdx === this.getArrowColumnIndex() && e.altKey, i = s.className.includes("ge-table-tree-arrow-div");
672
997
  if (o || i) {
673
998
  e.preventDefault(), e.stopPropagation();
@@ -689,15 +1014,15 @@ class Ve {
689
1014
  */
690
1015
  onHostElementDblClicked(e) {
691
1016
  if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
692
- const t = e.target, s = t.getAttribute("data-area"), o = J(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), l = this.tableScope.tableModel.getAreaModel(o);
1017
+ const t = e.target, s = t.getAttribute("data-area"), o = Q(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), n = this.tableScope.tableModel.getAreaModel(o);
693
1018
  if (s && o === "header")
694
1019
  this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
695
1020
  else if (t.getAttribute("data-row-index")) {
696
- const n = l.getRowByIndex(i);
697
- if (s && o === "body" && l.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), W(n) && r === this.getArrowColumnIndex()) {
1021
+ const l = n.getRowByIndex(i);
1022
+ if (s && o === "body" && n.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), N(l) && r === this.getArrowColumnIndex()) {
698
1023
  e.preventDefault(), e.stopPropagation();
699
- const a = n;
700
- a.expanded = !a.expanded, "recalcVisibleTreeRows" in l && l.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(a);
1024
+ const a = l;
1025
+ a.expanded = !a.expanded, "recalcVisibleTreeRows" in n && n.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(a);
701
1026
  }
702
1027
  }
703
1028
  }
@@ -722,11 +1047,11 @@ class Ve {
722
1047
  * @returns {void}
723
1048
  */
724
1049
  updateCollapsedExpandedState(e) {
725
- var s, o, i, r, l;
1050
+ var s, o, i, r, n;
726
1051
  const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
727
1052
  if (t) {
728
- const n = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, a = n === "collapsed" && !e.expanded || n === "expanded" && e.expanded, c = n === "collapsed" && e.expanded || n === "expanded" && !e.expanded, d = t(e.data);
729
- a ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(d) : c && ((l = this.tableScope.storeStateCollapsedExpandService) == null || l.collapsedStateIdsRemove(d));
1053
+ const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, a = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded, c = l === "collapsed" && e.expanded || l === "expanded" && !e.expanded, d = t(e.data);
1054
+ a ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(d) : c && ((n = this.tableScope.storeStateCollapsedExpandService) == null || n.collapsedStateIdsRemove(d));
730
1055
  }
731
1056
  }
732
1057
  getArrowColumnIndex() {
@@ -762,7 +1087,7 @@ class Ve {
762
1087
  }
763
1088
  }
764
1089
  }
765
- class We {
1090
+ class et {
766
1091
  constructor(e) {
767
1092
  this.tableScope = e;
768
1093
  }
@@ -949,12 +1274,12 @@ class We {
949
1274
  downloadExcel(e = "table.xlsx", t = "") {
950
1275
  const s = [], o = this.tableScope.tableModel.getColumnCount(), i = ["header", "body", "footer"];
951
1276
  for (const r of i) {
952
- const l = this.tableScope.tableModel.getAreaModel(r), n = (l == null ? void 0 : l.getRowCount()) ?? 0;
953
- for (let a = 0; a < n; a++) {
1277
+ const n = this.tableScope.tableModel.getAreaModel(r), l = (n == null ? void 0 : n.getRowCount()) ?? 0;
1278
+ for (let a = 0; a < l; a++) {
954
1279
  const c = [];
955
1280
  s.push(c);
956
1281
  for (let d = 0; d < o; d++)
957
- c.push(l.getValueAt(a, d));
1282
+ c.push(n.getValueAt(a, d));
958
1283
  }
959
1284
  }
960
1285
  return this.tableScope.excelService.downloadExcel(s, e, t);
@@ -989,23 +1314,15 @@ class We {
989
1314
  return this.tableScope.tableModel;
990
1315
  }
991
1316
  }
992
- class ie {
1317
+ class de {
993
1318
  constructor(e) {
994
1319
  this.getStorageKeyFn = e;
995
1320
  }
996
1321
  autoConvertMapToObject(e) {
997
1322
  const t = {};
998
- if (e instanceof Map) {
999
- const s = e;
1000
- for (const o of [...s]) {
1001
- const [
1002
- i,
1003
- r
1004
- ] = o;
1005
- t[i] = r;
1006
- }
1007
- }
1008
- return t;
1323
+ return e instanceof Map && e.forEach((o, i) => {
1324
+ t[o] = i;
1325
+ }), t;
1009
1326
  }
1010
1327
  checkAndPersistItem(e, t) {
1011
1328
  const s = this.getStorageKeyFn;
@@ -1064,7 +1381,7 @@ class ie {
1064
1381
  // }
1065
1382
  // }
1066
1383
  }
1067
- class Ne extends ie {
1384
+ class tt extends de {
1068
1385
  constructor(e) {
1069
1386
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
1070
1387
  }
@@ -1086,14 +1403,14 @@ class Ne extends ie {
1086
1403
  }
1087
1404
  }
1088
1405
  }
1089
- class Ge {
1406
+ class st {
1090
1407
  constructor(e = "collapsed", t = [], s = !1, o = !1) {
1091
1408
  this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
1092
1409
  }
1093
1410
  }
1094
- class ze extends ie {
1411
+ class ot extends de {
1095
1412
  constructor(e) {
1096
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new Ge(), this.load();
1413
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new st(), this.load();
1097
1414
  }
1098
1415
  collapsedExpandedStateGet() {
1099
1416
  return this.collapsedExpandedState;
@@ -1125,7 +1442,7 @@ class ze extends ie {
1125
1442
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
1126
1443
  }
1127
1444
  }
1128
- class je extends ie {
1445
+ class it extends de {
1129
1446
  constructor(e) {
1130
1447
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
1131
1448
  }
@@ -1146,14 +1463,14 @@ class je extends ie {
1146
1463
  }
1147
1464
  }
1148
1465
  }
1149
- class P {
1466
+ class L {
1150
1467
  constructor(e = 0, t = 0, s = 0, o = 0, i) {
1151
1468
  this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
1152
1469
  }
1153
1470
  }
1154
- class Ue {
1471
+ class rt {
1155
1472
  constructor(e, t, s, o) {
1156
- this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new P(), this.areaBodyCenterGeo = new P(), this.areaBodyEastGeo = new P();
1473
+ this.hostElement = e, this.tableModel = t, this.dom = s, this.tableOptions = o, this.scrollTop = 0, this.areaBodyWestGeo = new L(), this.areaBodyCenterGeo = new L(), this.areaBodyEastGeo = new L();
1157
1474
  const i = this.hostElement;
1158
1475
  i.innerText = "", this.dom.setAttribute(i, "tabindex", "0"), this.dom.setStyle(
1159
1476
  this.dom.addClass("ge-table", i),
@@ -1357,7 +1674,7 @@ class R {
1357
1674
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
1358
1675
  }
1359
1676
  }
1360
- class Xe {
1677
+ class nt {
1361
1678
  constructor(e, t) {
1362
1679
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
1363
1680
  }
@@ -1371,9 +1688,9 @@ class Xe {
1371
1688
  let i = this.areaModel.getColspanAt(s, o), r = this.areaModel.getRowspanAt(s, o);
1372
1689
  if (i > 1 || r > 1) {
1373
1690
  i === 0 && (i = 1), r === 0 && (r = 1);
1374
- const l = "gammaCells" in this.areaModel;
1691
+ const n = "gammaCells" in this.areaModel;
1375
1692
  this.colAndRowspanRanges.push(
1376
- new R(s, o, s + r - 1, o + i - 1, l)
1693
+ new R(s, o, s + r - 1, o + i - 1, n)
1377
1694
  );
1378
1695
  }
1379
1696
  }
@@ -1395,17 +1712,17 @@ class I {
1395
1712
  this.header = e, this.body = t, this.footer = s;
1396
1713
  }
1397
1714
  }
1398
- class Ke extends Ue {
1715
+ class lt extends rt {
1399
1716
  constructor(e, t, s, o) {
1400
- var r, l;
1717
+ var r, n;
1401
1718
  super(e, t, s, o), this.dragging = !1, this.editing = !1, this.storedColumnWidths = [], this.scrollLeft = 0, this.scrollViewportLeft = 0, this.scrollFactorY = 0, this.scrollFactorX = 0, this.cleanupFunctions = {
1402
1719
  header: [],
1403
1720
  body: [],
1404
1721
  footer: []
1405
- }, this.tree = !1, this.colAndRowspanModels = new I(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (l = this.tableOptions) != null && l.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), ee(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1406
- (n) => {
1722
+ }, this.tree = !1, this.colAndRowspanModels = new I(), this.firstVisibleRowIndex = -1, this.draggingTargetColumnIndex = -1, this.removables = [], this.tableModel.getSelectionModel ? this.getSelectionModel = this.tableModel.getSelectionModel : (r = this.tableOptions) != null && r.getSelectionModel && (this.getSelectionModel = this.tableOptions.getSelectionModel), (n = this.tableOptions) != null && n.getFocusModel && (this.getFocusModel = this.tableOptions.getFocusModel), ie(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1723
+ (l) => {
1407
1724
  var a;
1408
- this.colAndRowspanModels[n] = new Xe(t, t.getAreaModel(n)), (a = this.colAndRowspanModels[n]) == null || a.init();
1725
+ this.colAndRowspanModels[l] = new nt(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
1409
1726
  }
1410
1727
  );
1411
1728
  }
@@ -1491,19 +1808,19 @@ class Ke extends Ue {
1491
1808
  for (const t of this.removables)
1492
1809
  t.remove();
1493
1810
  this.hideHoverRow(), this.hideHoverColumn(), this.scrollTop = this.scrollViewport.scrollTop, this.scrollLeft = this.scrollViewport.scrollLeft, this.debounce(this.checkForScrollPosSaving.bind(this)), this.scrollFactorY = this.scrollTop / (this.scrollViewport.scrollHeight - this.scrollViewport.clientHeight), this.scrollFactorX = this.scrollLeft / (this.scrollViewport.scrollWidth - this.scrollViewport.clientWidth), isNaN(this.scrollFactorY) && (this.scrollFactorY = 0), isNaN(this.scrollFactorX) && (this.scrollFactorX = 0), this.adjustBody(), this.adjustArea("footer"), this.adjustArea("header"), this.tableOptions.tableTopBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
1494
- new P(0, this.hostElement.clientWidth, 1, 0),
1811
+ new L(0, this.hostElement.clientWidth, 1, 0),
1495
1812
  this.hostElement,
1496
1813
  "ge-table-border"
1497
1814
  )), this.tableOptions.tableBottomBorderVisible && this.removables.push(this.dom.addHorizontalBorder(
1498
- new P(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
1815
+ new L(0, this.hostElement.clientWidth, 1, this.hostElement.clientHeight - 1),
1499
1816
  this.hostElement,
1500
1817
  "ge-table-border"
1501
1818
  )), this.tableModel.getFixedLeftColumnCount() > 0 && this.removables.push(this.dom.addVerticalBorder(
1502
- new P(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
1819
+ new L(this.areaBodyWest.child.clientWidth, 1, this.hostElement.clientHeight, 0),
1503
1820
  this.hostElement,
1504
1821
  "ge-table-body-west-vertical-border"
1505
1822
  )), ((e = this.tableModel.getAreaModel("header")) == null ? void 0 : e.getRowCount()) > 0 && this.removables.push(this.dom.addHorizontalBorder(
1506
- new P(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
1823
+ new L(0, this.hostElement.clientWidth, 1, this.areaHeaderCenter.child.clientHeight),
1507
1824
  this.hostElement,
1508
1825
  "ge-table-body-west-vertical-border"
1509
1826
  ));
@@ -1542,23 +1859,23 @@ class Ke extends Ue {
1542
1859
  * @param {string[]} cssClasses - An array of CSS classes to be applied to the cell.
1543
1860
  */
1544
1861
  rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
1545
- const r = this.tableModel.getAreaModel(e), l = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', n = document.querySelector(l);
1546
- if (n) {
1862
+ const r = this.tableModel.getAreaModel(e), n = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', l = document.querySelector(n);
1863
+ if (l) {
1547
1864
  let a;
1548
1865
  const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
1549
1866
  let d;
1550
- if (c ? d = this.editorRenderer : d = r.getCellRenderer(t, s), n.innerText = "", this.applyCssClasses(n, i), d)
1551
- a = d.render(n, t, s, e, r, o, this.dom.domService), a && this.cleanupFunctions[e].push(a);
1867
+ if (c ? d = this.editorRenderer : d = r.getCellRenderer(t, s), l.innerText = "", this.applyCssClasses(l, i), d)
1868
+ a = d.render(l, t, s, e, r, o, this.dom.domService), a && this.cleanupFunctions[e].push(a);
1552
1869
  else {
1553
- const g = `${o}`;
1554
- this.dom.addLabelDiv(n, g, !1, t, s, e);
1870
+ const p = `${o}`;
1871
+ this.dom.addLabelDiv(l, p, !1, t, s, e);
1555
1872
  }
1556
1873
  const u = r.getCustomClassesAt(t, s);
1557
- u.length && this.dom.addClasses(u, n);
1874
+ u.length && this.dom.addClasses(u, l);
1558
1875
  const f = r.getCustomStyleAt(t, s);
1559
1876
  if (f)
1560
- for (const g in f)
1561
- this.dom.setStyle(n, g, f[g]);
1877
+ for (const p in f)
1878
+ this.dom.setStyle(l, p, f[p]);
1562
1879
  }
1563
1880
  }
1564
1881
  /**
@@ -1667,21 +1984,21 @@ class Ke extends Ue {
1667
1984
  * @protected
1668
1985
  */
1669
1986
  adjustArea(e, t = 0) {
1670
- var p;
1987
+ var g;
1671
1988
  const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
1672
1989
  s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
1673
- const l = 0, n = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), d = c.getRowCount();
1990
+ const n = 0, l = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), d = c.getRowCount();
1674
1991
  for (; this.cleanupFunctions[e].length; ) {
1675
1992
  const b = this.cleanupFunctions[e].shift();
1676
1993
  b && b();
1677
1994
  }
1678
1995
  let u = t;
1679
- const f = this.tableModel.getColumnCount(), g = this.tableModel.getFixedRightColumnCount(), m = this.tableModel.getFixedLeftColumnCount();
1996
+ const f = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), m = this.tableModel.getFixedLeftColumnCount();
1680
1997
  for (let b = 0; b < d; b++) {
1681
1998
  const x = u, S = b === d - 1, A = this.tableModel.getRowHeight(e, b);
1682
1999
  if (x + A > 0) {
1683
2000
  this.firstVisibleRowIndex = b;
1684
- let C = { left: l, width: n, height: A, top: x, index: b }, w = this.dom.addRowDiv(o, C, b, e, "center");
2001
+ let C = { left: n, width: l, height: A, top: x, index: b }, w = this.dom.addRowDiv(o, C, b, e, "center");
1685
2002
  const k = m;
1686
2003
  if (this.adjustColumnsToRowParent({
1687
2004
  areaIdent: e,
@@ -1691,10 +2008,10 @@ class Ke extends Ue {
1691
2008
  parent: w,
1692
2009
  rowIndex: b,
1693
2010
  columnIndexStart: k,
1694
- columnIndexEnd: f - g - 1,
2011
+ columnIndexEnd: f - p - 1,
1695
2012
  verticalFixed: !1,
1696
2013
  lastRowOfModel: S
1697
- }), a.left > 0 && (C = { left: l, width: this.areaBodyWestGeo.width, height: A, top: x, index: b }, w = this.dom.addRowDiv(s, C, b, e, "west"), this.adjustColumnsToRowParent({
2014
+ }), a.left > 0 && (C = { left: n, width: this.areaBodyWestGeo.width, height: A, top: x, index: b }, w = this.dom.addRowDiv(s, C, b, e, "west"), this.adjustColumnsToRowParent({
1698
2015
  areaIdent: e,
1699
2016
  sideIdent: "west",
1700
2017
  areaModel: c,
@@ -1705,29 +2022,29 @@ class Ke extends Ue {
1705
2022
  columnIndexEnd: k - 1,
1706
2023
  verticalFixed: !0,
1707
2024
  lastRowOfModel: S
1708
- })), a.right > 0 && (C = { left: l, width: this.areaBodyEastGeo.width, height: A, top: x, index: b }, w = this.dom.addRowDiv(i, C, b, e, "east"), this.adjustColumnsToRowParent({
2025
+ })), a.right > 0 && (C = { left: n, width: this.areaBodyEastGeo.width, height: A, top: x, index: b }, w = this.dom.addRowDiv(i, C, b, e, "east"), this.adjustColumnsToRowParent({
1709
2026
  areaIdent: e,
1710
2027
  sideIdent: "east",
1711
2028
  areaModel: c,
1712
2029
  geo: C,
1713
2030
  parent: w,
1714
2031
  rowIndex: b,
1715
- columnIndexStart: f - g,
2032
+ columnIndexStart: f - p,
1716
2033
  columnIndexEnd: f - 1,
1717
2034
  verticalFixed: !0,
1718
2035
  lastRowOfModel: S
1719
2036
  })), e === "header" && this.tree && b === d - 1) {
1720
2037
  const E = this.dom.applyStyle(
1721
2038
  this.dom.setAttribute(
1722
- this.dom.addDiv(w, new P(16, 20, 20, 8)),
2039
+ this.dom.addDiv(w, new L(16, 20, 20, 8)),
1723
2040
  "data-ge-action",
1724
2041
  "toggleExpandCollapseAll"
1725
2042
  ),
1726
2043
  { cursor: "pointer" }
1727
2044
  ), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
1728
2045
  if (M) {
1729
- const z = this.dom.domService.createText(M.content);
1730
- this.dom.domService.appendChild(E, z), M.style && this.dom.applyStyleString(E, M.style);
2046
+ const U = this.dom.domService.createText(M.content);
2047
+ this.dom.domService.appendChild(E, U), M.style && this.dom.applyStyleString(E, M.style);
1731
2048
  }
1732
2049
  }
1733
2050
  }
@@ -1735,13 +2052,13 @@ class Ke extends Ue {
1735
2052
  break;
1736
2053
  }
1737
2054
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1738
- const b = ((p = this.colAndRowspanModels[e]) == null ? void 0 : p.getRanges()) ?? [];
2055
+ const b = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
1739
2056
  if (b.length)
1740
2057
  for (const x of b) {
1741
2058
  let S = 0, A = o.child, C = "center";
1742
2059
  if (x.c1 < m)
1743
2060
  A = s.child, C = "west";
1744
- else if (g > 0 && x.c1 >= f - g)
2061
+ else if (p > 0 && x.c1 >= f - p)
1745
2062
  A = i.child, C = "east";
1746
2063
  else {
1747
2064
  const w = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
@@ -1762,24 +2079,24 @@ class Ke extends Ue {
1762
2079
  * @protected
1763
2080
  */
1764
2081
  drawBigCell(e, t, s, o, i, r) {
1765
- const l = s + this.getRowHeights(0, e.r1 - 1, o).reduce((p, b) => p + b, 0), n = this.tableModel.getColumnCount(), a = this.tableModel.getFixedRightColumnCount();
2082
+ const n = s + this.getRowHeights(0, e.r1 - 1, o).reduce((g, b) => g + b, 0), l = this.tableModel.getColumnCount(), a = this.tableModel.getFixedRightColumnCount();
1766
2083
  let c = 0;
1767
- a > 0 && e.c1 >= n - a && (c = n - a);
1768
- const d = t + this.getColumnWidths(c, e.c1 - 1).reduce((p, b) => p + b, 0), u = this.getRowHeights(e.r1, e.r2, o).reduce((p, b) => p + b, 0), f = this.getColumnWidths(e.c1, e.c2).reduce((p, b) => p + b, 0);
1769
- let g = !1;
2084
+ a > 0 && e.c1 >= l - a && (c = l - a);
2085
+ const d = t + this.getColumnWidths(c, e.c1 - 1).reduce((g, b) => g + b, 0), u = this.getRowHeights(e.r1, e.r2, o).reduce((g, b) => g + b, 0), f = this.getColumnWidths(e.c1, e.c2).reduce((g, b) => g + b, 0);
2086
+ let p = !1;
1770
2087
  const m = this.getSelectionModel ? this.getSelectionModel() : void 0;
1771
- m && (g = m.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
2088
+ m && (p = m.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
1772
2089
  areaModel: o,
1773
2090
  areaIdent: o.areaIdent,
1774
2091
  sideIdent: r,
1775
2092
  rowIndex: e.r1,
1776
2093
  columnIndex: e.c1,
1777
2094
  left: d,
1778
- top: l,
2095
+ top: n,
1779
2096
  width: f,
1780
2097
  height: u,
1781
2098
  parent: i,
1782
- cellSelected: g,
2099
+ cellSelected: p,
1783
2100
  lastRowOfModel: !0,
1784
2101
  gammaRange: e.gammaRange
1785
2102
  }) : this.renderCell({
@@ -1789,18 +2106,18 @@ class Ke extends Ue {
1789
2106
  rowIndex: e.r1,
1790
2107
  columnIndex: e.c1,
1791
2108
  left: d,
1792
- top: l,
2109
+ top: n,
1793
2110
  width: f,
1794
2111
  height: u,
1795
2112
  parent: i,
1796
- cellSelected: g,
2113
+ cellSelected: p,
1797
2114
  lastRowOfModel: !0,
1798
2115
  gammaRange: e.gammaRange
1799
2116
  }), o.areaIdent === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1800
2117
  rowIndex: e.r1,
1801
2118
  columnIndex: e.c1,
1802
2119
  cellLeft: d,
1803
- cellTop: l,
2120
+ cellTop: n,
1804
2121
  cellWidth: f,
1805
2122
  cellHeight: u,
1806
2123
  parent: i
@@ -1840,8 +2157,8 @@ class Ke extends Ue {
1840
2157
  geo: o,
1841
2158
  parent: i,
1842
2159
  rowIndex: r,
1843
- columnIndexStart: l,
1844
- columnIndexEnd: n,
2160
+ columnIndexStart: n,
2161
+ columnIndexEnd: l,
1845
2162
  verticalFixed: a = !1,
1846
2163
  lastRowOfModel: c = !1
1847
2164
  }) {
@@ -1849,32 +2166,32 @@ class Ke extends Ue {
1849
2166
  this.scrollViewportLeft = this.scrollViewport.scrollLeft;
1850
2167
  let d = 0;
1851
2168
  if (!a) {
1852
- const p = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1853
- d = this.scrollFactorX * p;
2169
+ const g = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
2170
+ d = this.scrollFactorX * g;
1854
2171
  }
1855
2172
  const u = 0, f = !!(e === "body" && t);
1856
- let g = d;
1857
- for (let p = l; p <= n; p++) {
1858
- const b = g, x = this.tableModel.getColumnWidth(p);
2173
+ let p = d;
2174
+ for (let g = n; g <= l; g++) {
2175
+ const b = p, x = this.tableModel.getColumnWidth(g);
1859
2176
  if (x > 0 && b + x > 0) {
1860
2177
  let S = o.height;
1861
- const A = s.getRowspanAt(r, p), C = s.getColspanAt(r, p);
2178
+ const A = s.getRowspanAt(r, g), C = s.getColspanAt(r, g);
1862
2179
  A > 1 && (S = this.getRowHeights(r, r + A - 1, s).reduce((E, M) => E + M, 0));
1863
2180
  let w = x;
1864
- C > 1 && (w = this.getColumnWidths(p, p + C - 1).reduce((E, M) => E + M, 0));
2181
+ C > 1 && (w = this.getColumnWidths(g, g + C - 1).reduce((E, M) => E + M, 0));
1865
2182
  let k = !1;
1866
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r, p) && (k = !0), this.draggingTargetColumnIndex === p && e !== "header") {
2183
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r, g) && (k = !0), this.draggingTargetColumnIndex === g && e !== "header") {
1867
2184
  this.renderDragTargetDiv(i, b, u, w, S);
1868
2185
  const E = { left: b, top: u, width: w, height: S };
1869
2186
  this.dom.addColumnBorderDivs(this.tableOptions, i, E, e, t);
1870
2187
  } else {
1871
- const E = this.renderSelectedBackgroundDiv(k, f, t, s, r, p, i, b, u, w, S);
1872
- "gammaCells" in s && s.getValueAt(r, p) && (k = !1), k || this.renderCell({
2188
+ const E = this.renderSelectedBackgroundDiv(k, f, t, s, r, g, i, b, u, w, S);
2189
+ "gammaCells" in s && s.getValueAt(r, g) && (k = !1), k || this.renderCell({
1873
2190
  areaModel: s,
1874
2191
  areaIdent: e,
1875
2192
  sideIdent: t,
1876
2193
  rowIndex: r,
1877
- columnIndex: p,
2194
+ columnIndex: g,
1878
2195
  left: b,
1879
2196
  top: u,
1880
2197
  width: w,
@@ -1885,7 +2202,7 @@ class Ke extends Ue {
1885
2202
  gammaRange: !0
1886
2203
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1887
2204
  rowIndex: r,
1888
- columnIndex: p,
2205
+ columnIndex: g,
1889
2206
  cellLeft: b,
1890
2207
  cellTop: u,
1891
2208
  cellWidth: w,
@@ -1894,10 +2211,10 @@ class Ke extends Ue {
1894
2211
  });
1895
2212
  }
1896
2213
  }
1897
- if (g = g + x, g > this.areaBodyCenterGeo.width)
2214
+ if (p = p + x, p > this.areaBodyCenterGeo.width)
1898
2215
  break;
1899
2216
  }
1900
- this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new P(g - 1, 1, o.height, 0), i);
2217
+ this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new L(p - 1, 1, o.height, 0), i);
1901
2218
  }
1902
2219
  /**
1903
2220
  * Retrieves the column index of the tree arrow column in the table.
@@ -1918,18 +2235,18 @@ class Ke extends Ue {
1918
2235
  rowIndex: o,
1919
2236
  index: i,
1920
2237
  left: r,
1921
- width: l,
1922
- height: n,
2238
+ width: n,
2239
+ height: l,
1923
2240
  top: a,
1924
2241
  parent: c,
1925
2242
  lastRowOfModel: d
1926
2243
  }) {
1927
- var ce;
1928
- const f = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), g = { left: r, width: l, height: n, top: a, index: i }, m = e.getRowByIndex(o);
1929
- let p = "none";
1930
- if (i === this.getTreeArrowColumnIndex() && W(m)) {
2244
+ var fe;
2245
+ const f = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), p = { left: r, width: n, height: l, top: a, index: i }, m = e.getRowByIndex(o);
2246
+ let g = "none";
2247
+ if (i === this.getTreeArrowColumnIndex() && N(m)) {
1931
2248
  const v = m;
1932
- (ce = v.children) != null && ce.length ? v.expanded ? p = "expanded" : p = "collapsed" : p = "hidden";
2249
+ (fe = v.children) != null && fe.length ? v.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
1933
2250
  }
1934
2251
  let x;
1935
2252
  if (t === "header") {
@@ -1939,13 +2256,13 @@ class Ke extends Ue {
1939
2256
  const S = e.getValueAt(o, i), A = f ? "" : `${S}`, C = e.isRowChecked(o), w = this.dom.addColumnDiv(
1940
2257
  {
1941
2258
  parent: c,
1942
- geo: g,
2259
+ geo: p,
1943
2260
  rowIndex: o,
1944
2261
  columnIndex: i,
1945
2262
  areaIdent: t,
1946
2263
  sideIdent: s,
1947
2264
  text: A,
1948
- treeArrow: p,
2265
+ treeArrow: g,
1949
2266
  tableOptions: this.tableOptions,
1950
2267
  checkedType: C,
1951
2268
  sortState: x
@@ -1956,16 +2273,16 @@ class Ke extends Ue {
1956
2273
  E && E.classes[t] && this.dom.addClasses(E.classes[t], w);
1957
2274
  let M;
1958
2275
  f && (M = f.render(w, o, i, t, e, S, this.dom.domService));
1959
- const z = e.getCustomClassesAt(o, i);
1960
- if (z.length && this.dom.addClasses(z, w), this.dom.addColumnBorderDivs(this.tableOptions, c, g, t, s), d && this.dom.addHorizontalBorder({ left: r, width: l, height: n, top: a + n }, c), this.getFocusModel && t === "body") {
2276
+ const U = e.getCustomClassesAt(o, i);
2277
+ if (U.length && this.dom.addClasses(U, w), this.dom.addColumnBorderDivs(this.tableOptions, c, p, t, s), d && this.dom.addHorizontalBorder({ left: r, width: n, height: l, top: a + l }, c), this.getFocusModel && t === "body") {
1961
2278
  const v = this.getFocusModel();
1962
- v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, g, {});
2279
+ v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
1963
2280
  }
1964
2281
  t === "header" && this.dom.setAttribute(w, "data-ge-action", "drag-column");
1965
- const q = e.getCustomStyleAt(o, i);
1966
- if (q)
1967
- for (const v in q)
1968
- this.dom.setStyle(w, v, q[v]);
2282
+ const ee = e.getCustomStyleAt(o, i);
2283
+ if (ee)
2284
+ for (const v in ee)
2285
+ this.dom.setStyle(w, v, ee[v]);
1969
2286
  return [w, M];
1970
2287
  }
1971
2288
  /**
@@ -2096,9 +2413,9 @@ class Ke extends Ue {
2096
2413
  adjustDraggingColumn(e, t, s) {
2097
2414
  var o, i;
2098
2415
  if (this.dragging) {
2099
- const r = this.hostElement.clientHeight, l = this.storedColumnWidths[t];
2416
+ const r = this.hostElement.clientHeight, n = this.storedColumnWidths[t];
2100
2417
  if ((o = e.originalEvent) != null && o.clientX) {
2101
- const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - l / 2, width: l, height: r, top: 0, index: t };
2418
+ const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - n / 2, width: n, height: r, top: 0, index: t };
2102
2419
  this.dom.applyStyle(this.draggingColumn, {
2103
2420
  background: "rgba(128,128,128,0.2)",
2104
2421
  display: "block",
@@ -2130,24 +2447,24 @@ class Ke extends Ue {
2130
2447
  renderContentOfDraggingColumnForArea(e, t, s = 0) {
2131
2448
  const o = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
2132
2449
  if (r) {
2133
- const l = e.index ?? 0, n = this.draggingColumn;
2450
+ const n = e.index ?? 0, l = this.draggingColumn;
2134
2451
  for (let a = 0; a < r; a++) {
2135
- const c = s, d = i.getRowHeight(a), u = { left: 0, width: e.width, height: d, top: c, index: a }, f = i.getValueAt(a, l), g = i.getCellRenderer(a, l), m = g ? "" : `${f}`, p = {
2136
- parent: n,
2452
+ const c = s, d = i.getRowHeight(a), u = { left: 0, width: e.width, height: d, top: c, index: a }, f = i.getValueAt(a, n), p = i.getCellRenderer(a, n), m = p ? "" : `${f}`, g = {
2453
+ parent: l,
2137
2454
  geo: u,
2138
2455
  rowIndex: a,
2139
- columnIndex: l,
2456
+ columnIndex: n,
2140
2457
  areaIdent: t,
2141
2458
  sideIdent: o,
2142
2459
  text: m
2143
- }, b = this.dom.addColumnDiv(p);
2460
+ }, b = this.dom.addColumnDiv(g);
2144
2461
  let x;
2145
- g && (x = g.render(b, a, l, t, i, f, this.dom.domService), x && this.cleanupFunctions[t].push(x));
2146
- const S = i.getCustomClassesAt(a, l);
2462
+ p && (x = p.render(b, a, n, t, i, f, this.dom.domService), x && this.cleanupFunctions[t].push(x));
2463
+ const S = i.getCustomClassesAt(a, n);
2147
2464
  S.length && this.dom.addClasses(S, b);
2148
- const A = this.tableModel.getColumnDef(l);
2149
- A && A.classes[t] && this.dom.addClasses(A.classes[t], b), this.dom.addColumnBorderDivs(this.tableOptions, n, u, t, o);
2150
- const C = i.getCustomStyleAt(a, l);
2465
+ const A = this.tableModel.getColumnDef(n);
2466
+ A && A.classes[t] && this.dom.addClasses(A.classes[t], b), this.dom.addColumnBorderDivs(this.tableOptions, l, u, t, o);
2467
+ const C = i.getCustomStyleAt(a, n);
2151
2468
  if (C)
2152
2469
  for (const w in C)
2153
2470
  this.dom.setStyle(b, w, C[w]);
@@ -2200,19 +2517,19 @@ class Ke extends Ue {
2200
2517
  * @param {number} height - The height of the div.
2201
2518
  * @returns {boolean} - Whether the cell is selected.
2202
2519
  */
2203
- renderSelectedBackgroundDiv(e, t, s, o, i, r, l, n, a, c, d) {
2520
+ renderSelectedBackgroundDiv(e, t, s, o, i, r, n, l, a, c, d) {
2204
2521
  let u = !1;
2205
2522
  if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
2206
2523
  const f = this.getSelectionModel();
2207
2524
  if (f) {
2208
- const g = f.getSelectionCount(i, r);
2209
- u = g > 0;
2210
- for (let m = 0; m < g; m++) {
2211
- const p = this.dom.applyStylePosistionAbsolute(
2525
+ const p = f.getSelectionCount(i, r);
2526
+ u = p > 0;
2527
+ for (let m = 0; m < p; m++) {
2528
+ const g = this.dom.applyStylePosistionAbsolute(
2212
2529
  // ge-table-body-west-selected-range
2213
- this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, l)
2530
+ this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, n)
2214
2531
  );
2215
- this.dom.setStyle(p, "left", `${n}px`), this.dom.setStyle(p, "top", `${a}px`), this.dom.setStyle(p, "width", `${c}px`), this.dom.setStyle(p, "height", `${d}px`);
2532
+ this.dom.setStyle(g, "left", `${l}px`), this.dom.setStyle(g, "top", `${a}px`), this.dom.setStyle(g, "width", `${c}px`), this.dom.setStyle(g, "height", `${d}px`);
2216
2533
  }
2217
2534
  }
2218
2535
  }
@@ -2244,27 +2561,27 @@ class Ke extends Ue {
2244
2561
  rowIndex: o,
2245
2562
  columnIndex: i,
2246
2563
  left: r,
2247
- top: l,
2248
- width: n,
2564
+ top: n,
2565
+ width: l,
2249
2566
  height: a,
2250
2567
  parent: c,
2251
2568
  cellSelected: d,
2252
2569
  lastRowOfModel: u
2253
2570
  }) {
2254
- const [f, g] = this.addAndRenderCellDiv({
2571
+ const [f, p] = this.addAndRenderCellDiv({
2255
2572
  areaModel: e,
2256
2573
  areaIdent: t,
2257
2574
  sideIdent: s,
2258
2575
  rowIndex: o,
2259
2576
  index: i,
2260
2577
  left: r,
2261
- width: n,
2578
+ width: l,
2262
2579
  height: a,
2263
- top: l,
2580
+ top: n,
2264
2581
  parent: c,
2265
2582
  lastRowOfModel: u
2266
2583
  });
2267
- d && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, f), g && this.cleanupFunctions[t].push(g);
2584
+ d && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, f), p && this.cleanupFunctions[t].push(p);
2268
2585
  }
2269
2586
  /**
2270
2587
  * Render the header cell resize handle.
@@ -2280,17 +2597,17 @@ class Ke extends Ue {
2280
2597
  *
2281
2598
  * @return {void}
2282
2599
  */
2283
- renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: l }) {
2284
- const n = this.dom.domService, a = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = n.createElement("div");
2285
- n.setAttribute(c, "data-col-index", `${t}`), n.setAttribute(c, "data-row-index", `${e}`), n.setAttribute(c, "data-area", "header"), n.setAttribute(c, "data-ge-action", "resize-column"), n.addClass(c, "ge-table-column-resize-handle"), n.setStyle(c, "display", "clip"), n.setStyle(c, "position", "absolute"), n.setStyle(c, "cursor", "col-resize"), n.setStyle(c, "left", `${s + i - a}px`), n.setStyle(c, "top", `${o}px`), n.setStyle(c, "width", `${a}px`), n.setStyle(c, "height", `${r}px`), n.appendChild(l, c);
2600
+ renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: n }) {
2601
+ const l = this.dom.domService, a = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = l.createElement("div");
2602
+ l.setAttribute(c, "data-col-index", `${t}`), l.setAttribute(c, "data-row-index", `${e}`), l.setAttribute(c, "data-area", "header"), l.setAttribute(c, "data-ge-action", "resize-column"), l.addClass(c, "ge-table-column-resize-handle"), l.setStyle(c, "display", "clip"), l.setStyle(c, "position", "absolute"), l.setStyle(c, "cursor", "col-resize"), l.setStyle(c, "left", `${s + i - a}px`), l.setStyle(c, "top", `${o}px`), l.setStyle(c, "width", `${a}px`), l.setStyle(c, "height", `${r}px`), l.appendChild(n, c);
2286
2603
  }
2287
2604
  }
2288
- class Ye {
2605
+ class at {
2289
2606
  constructor(e, t) {
2290
2607
  this.columnIndex = e, this.sortState = t;
2291
2608
  }
2292
2609
  }
2293
- class Je {
2610
+ class ct {
2294
2611
  constructor(e) {
2295
2612
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
2296
2613
  }
@@ -2306,36 +2623,36 @@ class Je {
2306
2623
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
2307
2624
  const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
2308
2625
  if (s && o && i) {
2309
- const r = J(s), l = Number(o), n = Number(i);
2310
- this.tableScope.updateModelValueAfterEdit(r, l, n, t.value);
2626
+ const r = Q(s), n = Number(o), l = Number(i);
2627
+ this.tableScope.updateModelValueAfterEdit(r, n, l, t.value);
2311
2628
  }
2312
2629
  }
2313
2630
  }
2314
2631
  }
2315
- class qe {
2632
+ class dt {
2316
2633
  constructor(e = -1, t = -1) {
2317
2634
  this.rowIndex = e, this.columnIndex = t;
2318
2635
  }
2319
2636
  }
2320
- class re {
2637
+ class he {
2321
2638
  constructor(e) {
2322
2639
  this.cells = e;
2323
2640
  }
2324
2641
  static createSingle(e, t) {
2325
- return new re([new qe(e, t)]);
2642
+ return new he([new dt(e, t)]);
2326
2643
  }
2327
2644
  }
2328
- class Ze {
2645
+ class ht {
2329
2646
  constructor(e) {
2330
2647
  var t, s;
2331
2648
  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);
2332
2649
  }
2333
2650
  onMouseClicked(e, t) {
2334
- var i, r, l, n, a, c, d;
2651
+ var i, r, n, l, a, c, d;
2335
2652
  let s = !1, o = !1;
2336
2653
  if (this.getSelectionModel && this.getFocusModel) {
2337
2654
  const u = this.getSelectionModel(), f = this.getFocusModel();
2338
- u && f && (f.hasFocus(e.rowIndex, e.columnIndex) || (f.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(f), s = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (l = e.originalEvent) != null && l.altKey && ((n = e.originalEvent) != null && n.ctrlKey || (a = e.originalEvent) != null && a.metaKey) ? (u.removeSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (d = e.originalEvent) != null && d.metaKey ? (u.addSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (u.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(u));
2655
+ u && f && (f.hasFocus(e.rowIndex, e.columnIndex) || (f.setFocus(e.rowIndex, e.columnIndex), this.tableScope.onFocusChanged(f), s = !0), (i = e.originalEvent) != null && i.shiftKey || u.hasSelection() && (u.clear(), s = !0), (r = e.originalEvent) != null && r.shiftKey && this.previousEvt ? (u.addSelection(this.createRangeByEvents(e, this.previousEvt)), o = !0, s = !0) : (n = e.originalEvent) != null && n.altKey && ((l = e.originalEvent) != null && l.ctrlKey || (a = e.originalEvent) != null && a.metaKey) ? (u.removeSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (c = e.originalEvent) != null && c.ctrlKey || (d = e.originalEvent) != null && d.metaKey ? (u.addSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (u.firstClick(e.rowIndex, e.columnIndex), s = !0), this.tableScope.onSelectionChanged(u));
2339
2656
  }
2340
2657
  return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
2341
2658
  }
@@ -2366,7 +2683,7 @@ class Ze {
2366
2683
  });
2367
2684
  }
2368
2685
  }
2369
- class Qe {
2686
+ class ut {
2370
2687
  get() {
2371
2688
  return {
2372
2689
  f2: "START_EDITING",
@@ -2386,7 +2703,7 @@ class Qe {
2386
2703
  };
2387
2704
  }
2388
2705
  }
2389
- class et {
2706
+ class pt {
2390
2707
  get() {
2391
2708
  return {
2392
2709
  f2: "START_EDITING",
@@ -2408,7 +2725,7 @@ class et {
2408
2725
  };
2409
2726
  }
2410
2727
  }
2411
- class tt {
2728
+ class gt {
2412
2729
  constructor(e) {
2413
2730
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
2414
2731
  }
@@ -2429,7 +2746,7 @@ class tt {
2429
2746
  this.assignPredefinedSystemShortcutMappings(), Object.assign(this.shortcutActionIdMapping, this.tableScope.tableOptions.shortcutActionIdMapping), this.isDebug() && console.debug("ShortcutService", this.shortcutActionIdMapping), this.tableScope.hostElement.addEventListener("keydown", this.onKeyDown.bind(this));
2430
2747
  }
2431
2748
  assignPredefinedSystemShortcutMappings() {
2432
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new et().get()) : Object.assign(this.shortcutActionIdMapping, new Qe().get());
2749
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new pt().get()) : Object.assign(this.shortcutActionIdMapping, new ut().get());
2433
2750
  }
2434
2751
  isMacintosh() {
2435
2752
  return navigator.platform.indexOf("Mac") > -1;
@@ -2481,7 +2798,7 @@ class tt {
2481
2798
  return this.shortcutActionIdMapping;
2482
2799
  }
2483
2800
  }
2484
- class he {
2801
+ class ye {
2485
2802
  onCheckboxChanged(e) {
2486
2803
  }
2487
2804
  onContextmenu(e) {
@@ -2501,7 +2818,7 @@ class he {
2501
2818
  onFocusChanged(e) {
2502
2819
  }
2503
2820
  }
2504
- class st {
2821
+ class ft {
2505
2822
  setStyle(e, t, s) {
2506
2823
  return e.style[t] = s, e;
2507
2824
  }
@@ -2528,15 +2845,15 @@ class st {
2528
2845
  e.setAttribute(t, s);
2529
2846
  }
2530
2847
  }
2531
- class ot {
2532
- render(e, t, s, o, i, r, l) {
2848
+ class mt {
2849
+ render(e, t, s, o, i, r, n) {
2533
2850
  if (i.isEditable(t, s)) {
2534
- l.addClass(e, "ge-table-row-input-div");
2535
- const n = i.getValueAt(t, s);
2851
+ n.addClass(e, "ge-table-row-input-div");
2852
+ const l = i.getValueAt(t, s);
2536
2853
  e.innerHTML = `
2537
2854
  <input
2538
2855
  type="text"
2539
- value="${n}"
2856
+ value="${l}"
2540
2857
  autofocus
2541
2858
  onfocus="this.setSelectionRange(0, this.value.length)"
2542
2859
  data-listen="change"
@@ -2549,7 +2866,7 @@ class ot {
2549
2866
  }
2550
2867
  }
2551
2868
  }
2552
- class ne {
2869
+ class ue {
2553
2870
  constructor(e = "none", t = "single") {
2554
2871
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
2555
2872
  }
@@ -2631,7 +2948,7 @@ class ne {
2631
2948
  this.selectionType !== "none" && (this.allSelected = !1, this.selectionMode === "single" && (this.ranges = []), this.selectionType === "row" ? (e.c1 = 0, e.c2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "column" ? (e.r1 = 0, e.r2 = Number.MAX_SAFE_INTEGER) : this.selectionType === "cell" ? (e.r2 = e.r1, e.c2 = e.c1) : this.selectionType, this.ranges.push(e), this.fireChangeEvent());
2632
2949
  }
2633
2950
  }
2634
- class it {
2951
+ class bt {
2635
2952
  constructor(e = "none") {
2636
2953
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2637
2954
  }
@@ -2668,12 +2985,12 @@ class it {
2668
2985
  return [this.rowIndex, this.columnIndex];
2669
2986
  }
2670
2987
  }
2671
- class le {
2672
- constructor(e = new L(
2988
+ class pe {
2989
+ constructor(e = new O(
2673
2990
  "❯",
2674
2991
  "",
2675
2992
  ["gt-table-icon-expanded"]
2676
- ), t = new L(
2993
+ ), t = new O(
2677
2994
  "❯",
2678
2995
  "transform: rotate(180deg) translate(-100%, -100%); transform-origin: 0 0;",
2679
2996
  ["ge-table-icon-collapsed"]
@@ -2682,17 +2999,17 @@ class le {
2682
2999
  }
2683
3000
  // `⊖ `, `⊕ `;
2684
3001
  }
2685
- const rt = new ne(), nt = new it("cell");
2686
- class U {
3002
+ const yt = new ue(), xt = new bt("cell");
3003
+ class X {
2687
3004
  constructor() {
2688
3005
  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 = {
2689
3006
  header: 34,
2690
3007
  body: 34,
2691
3008
  footer: 34
2692
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Ae(), this.headerGroupOptions = new le(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Re(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new ot(), this.getSelectionModel = () => rt, this.getFocusModel = () => nt;
3009
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new Oe(), this.headerGroupOptions = new pe(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new $e(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new mt(), this.getSelectionModel = () => yt, this.getFocusModel = () => xt;
2693
3010
  }
2694
3011
  }
2695
- const V = class V {
3012
+ const W = class W {
2696
3013
  /**
2697
3014
  * Returns the content to be copied based on the provided table model, selection model, and focus model.
2698
3015
  *
@@ -2708,21 +3025,21 @@ const V = class V {
2708
3025
  const r = this.mergeRanges(t.getRanges());
2709
3026
  if (r) {
2710
3027
  r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
2711
- const l = [];
2712
- for (let n = r.r1; n <= r.r2; n++) {
3028
+ const n = [];
3029
+ for (let l = r.r1; l <= r.r2; l++) {
2713
3030
  const a = [];
2714
3031
  for (let c = r.c1; c <= r.c2; c++) {
2715
- const d = t.isSelected(n, c) ? e.getBodyModel().getTextValueAt(n, c) : "";
3032
+ const d = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
2716
3033
  a.push(d);
2717
3034
  }
2718
- l.push(a.join(V.columnSeparatorChar));
3035
+ n.push(a.join(W.columnSeparatorChar));
2719
3036
  }
2720
- return o(l.join(V.rowSeparatorChar));
3037
+ return o(n.join(W.rowSeparatorChar));
2721
3038
  }
2722
3039
  }
2723
3040
  if (s) {
2724
- const [r, l] = s.getFocus(), n = e.getBodyModel().getTextValueAt(r, l);
2725
- return o(n);
3041
+ const [r, n] = s.getFocus(), l = e.getBodyModel().getTextValueAt(r, n);
3042
+ return o(l);
2726
3043
  }
2727
3044
  i("Cannot copy, neither selection nor focus defined.");
2728
3045
  });
@@ -2751,9 +3068,9 @@ const V = class V {
2751
3068
  t,
2752
3069
  s
2753
3070
  ).then((r) => {
2754
- r && this.copyContent(r).then((l) => {
3071
+ r && this.copyContent(r).then((n) => {
2755
3072
  o(r);
2756
- }).catch((l) => {
3073
+ }).catch((n) => {
2757
3074
  i();
2758
3075
  });
2759
3076
  }).catch((r) => {
@@ -2774,19 +3091,19 @@ const V = class V {
2774
3091
  return t;
2775
3092
  }
2776
3093
  };
2777
- V.columnSeparatorChar = " ", V.rowSeparatorChar = `
3094
+ W.columnSeparatorChar = " ", W.rowSeparatorChar = `
2778
3095
  `;
2779
- let X = V;
2780
- class lt {
3096
+ let J = W;
3097
+ class wt {
2781
3098
  constructor(e, t = 500) {
2782
- this.tableScope = e, this.debounceDelay = t, new ResizeObserver(ke(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
3099
+ this.tableScope = e, this.debounceDelay = t, new ResizeObserver(We(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
2783
3100
  }
2784
3101
  handleResize(e) {
2785
3102
  const t = e[0], { width: s } = t.contentRect;
2786
3103
  this.tableScope.recalcColumnWidths(s);
2787
3104
  }
2788
3105
  }
2789
- class at {
3106
+ class St {
2790
3107
  /**
2791
3108
  * Downloads a matrix data as an Excel file.
2792
3109
  *
@@ -2815,13 +3132,13 @@ class at {
2815
3132
  <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="xl/workbook.xml"/></Relationships>`, o = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2816
3133
  <Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Application>Microsoft Macintosh Excel</Application><DocSecurity>0</DocSecurity><ScaleCrop>false</ScaleCrop><HeadingPairs><vt:vector size="2" baseType="variant"><vt:variant><vt:lpstr>Worksheets</vt:lpstr></vt:variant><vt:variant><vt:i4>1</vt:i4></vt:variant></vt:vector></HeadingPairs><TitlesOfParts><vt:vector size="1" baseType="lpstr"><vt:lpstr>Sheet1</vt:lpstr></vt:vector></TitlesOfParts><Company></Company><LinksUpToDate>false</LinksUpToDate><SharedDoc>false</SharedDoc><HyperlinksChanged>false</HyperlinksChanged><AppVersion>16.0300</AppVersion></Properties>`, i = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2817
3134
  <cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dc:creator>${t}</dc:creator><cp:lastModifiedBy>${t}</cp:lastModifiedBy><dcterms:created xsi:type="dcterms:W3CDTF">2024-12-13T19:45:08Z</dcterms:created><dcterms:modified xsi:type="dcterms:W3CDTF">2024-12-13T19:45:35Z</dcterms:modified></cp:coreProperties>`, r = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2818
- <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`, l = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2819
- <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="0E2841"/></a:dk2><a:lt2><a:srgbClr val="E8E8E8"/></a:lt2><a:accent1><a:srgbClr val="156082"/></a:accent1><a:accent2><a:srgbClr val="E97132"/></a:accent2><a:accent3><a:srgbClr val="196B24"/></a:accent3><a:accent4><a:srgbClr val="0F9ED5"/></a:accent4><a:accent5><a:srgbClr val="A02B93"/></a:accent5><a:accent6><a:srgbClr val="4EA72E"/></a:accent6><a:hlink><a:srgbClr val="467886"/></a:hlink><a:folHlink><a:srgbClr val="96607D"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Aptos Display" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Aptos Narrow" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{2E142A2C-CD16-42D6-873A-C26D2A0506FA}" vid="{1BDDFF52-6CD6-40A5-AB3C-68EB2F1E4D0A}"/></a:ext></a:extLst></a:theme>`, n = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3135
+ <Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme" Target="theme/theme1.xml"/><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/sheet1.xml"/><Relationship Id="rId4" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings" Target="sharedStrings.xml"/></Relationships>`, n = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3136
+ <a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme"><a:themeElements><a:clrScheme name="Office"><a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1><a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1><a:dk2><a:srgbClr val="0E2841"/></a:dk2><a:lt2><a:srgbClr val="E8E8E8"/></a:lt2><a:accent1><a:srgbClr val="156082"/></a:accent1><a:accent2><a:srgbClr val="E97132"/></a:accent2><a:accent3><a:srgbClr val="196B24"/></a:accent3><a:accent4><a:srgbClr val="0F9ED5"/></a:accent4><a:accent5><a:srgbClr val="A02B93"/></a:accent5><a:accent6><a:srgbClr val="4EA72E"/></a:accent6><a:hlink><a:srgbClr val="467886"/></a:hlink><a:folHlink><a:srgbClr val="96607D"/></a:folHlink></a:clrScheme><a:fontScheme name="Office"><a:majorFont><a:latin typeface="Aptos Display" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック Light"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线 Light"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Times New Roman"/><a:font script="Hebr" typeface="Times New Roman"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="MoolBoran"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Times New Roman"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:majorFont><a:minorFont><a:latin typeface="Aptos Narrow" panose="02110004020202020204"/><a:ea typeface=""/><a:cs typeface=""/><a:font script="Jpan" typeface="游ゴシック"/><a:font script="Hang" typeface="맑은 고딕"/><a:font script="Hans" typeface="等线"/><a:font script="Hant" typeface="新細明體"/><a:font script="Arab" typeface="Arial"/><a:font script="Hebr" typeface="Arial"/><a:font script="Thai" typeface="Tahoma"/><a:font script="Ethi" typeface="Nyala"/><a:font script="Beng" typeface="Vrinda"/><a:font script="Gujr" typeface="Shruti"/><a:font script="Khmr" typeface="DaunPenh"/><a:font script="Knda" typeface="Tunga"/><a:font script="Guru" typeface="Raavi"/><a:font script="Cans" typeface="Euphemia"/><a:font script="Cher" typeface="Plantagenet Cherokee"/><a:font script="Yiii" typeface="Microsoft Yi Baiti"/><a:font script="Tibt" typeface="Microsoft Himalaya"/><a:font script="Thaa" typeface="MV Boli"/><a:font script="Deva" typeface="Mangal"/><a:font script="Telu" typeface="Gautami"/><a:font script="Taml" typeface="Latha"/><a:font script="Syrc" typeface="Estrangelo Edessa"/><a:font script="Orya" typeface="Kalinga"/><a:font script="Mlym" typeface="Kartika"/><a:font script="Laoo" typeface="DokChampa"/><a:font script="Sinh" typeface="Iskoola Pota"/><a:font script="Mong" typeface="Mongolian Baiti"/><a:font script="Viet" typeface="Arial"/><a:font script="Uigh" typeface="Microsoft Uighur"/><a:font script="Geor" typeface="Sylfaen"/><a:font script="Armn" typeface="Arial"/><a:font script="Bugi" typeface="Leelawadee UI"/><a:font script="Bopo" typeface="Microsoft JhengHei"/><a:font script="Java" typeface="Javanese Text"/><a:font script="Lisu" typeface="Segoe UI"/><a:font script="Mymr" typeface="Myanmar Text"/><a:font script="Nkoo" typeface="Ebrima"/><a:font script="Olck" typeface="Nirmala UI"/><a:font script="Osma" typeface="Ebrima"/><a:font script="Phag" typeface="Phagspa"/><a:font script="Syrn" typeface="Estrangelo Edessa"/><a:font script="Syrj" typeface="Estrangelo Edessa"/><a:font script="Syre" typeface="Estrangelo Edessa"/><a:font script="Sora" typeface="Nirmala UI"/><a:font script="Tale" typeface="Microsoft Tai Le"/><a:font script="Talu" typeface="Microsoft New Tai Lue"/><a:font script="Tfng" typeface="Ebrima"/></a:minorFont></a:fontScheme><a:fmtScheme name="Office"><a:fillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:lumMod val="110000"/><a:satMod val="105000"/><a:tint val="67000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="103000"/><a:tint val="73000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="105000"/><a:satMod val="109000"/><a:tint val="81000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:satMod val="103000"/><a:lumMod val="102000"/><a:tint val="94000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:satMod val="110000"/><a:lumMod val="100000"/><a:shade val="100000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:lumMod val="99000"/><a:satMod val="120000"/><a:shade val="78000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:fillStyleLst><a:lnStyleLst><a:ln w="12700" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="19050" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln><a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/><a:miter lim="800000"/></a:ln></a:lnStyleLst><a:effectStyleLst><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst/></a:effectStyle><a:effectStyle><a:effectLst><a:outerShdw blurRad="57150" dist="19050" dir="5400000" algn="ctr" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="63000"/></a:srgbClr></a:outerShdw></a:effectLst></a:effectStyle></a:effectStyleLst><a:bgFillStyleLst><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:solidFill><a:schemeClr val="phClr"><a:tint val="95000"/><a:satMod val="170000"/></a:schemeClr></a:solidFill><a:gradFill rotWithShape="1"><a:gsLst><a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="93000"/><a:satMod val="150000"/><a:shade val="98000"/><a:lumMod val="102000"/></a:schemeClr></a:gs><a:gs pos="50000"><a:schemeClr val="phClr"><a:tint val="98000"/><a:satMod val="130000"/><a:shade val="90000"/><a:lumMod val="103000"/></a:schemeClr></a:gs><a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="63000"/><a:satMod val="120000"/></a:schemeClr></a:gs></a:gsLst><a:lin ang="5400000" scaled="0"/></a:gradFill></a:bgFillStyleLst></a:fmtScheme></a:themeElements><a:objectDefaults><a:lnDef><a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style></a:lnDef></a:objectDefaults><a:extraClrSchemeLst/><a:extLst><a:ext uri="{05A4C25C-085E-4340-85A3-A5531E510DB2}"><thm15:themeFamily xmlns:thm15="http://schemas.microsoft.com/office/thememl/2012/main" name="Office Theme" id="{2E142A2C-CD16-42D6-873A-C26D2A0506FA}" vid="{1BDDFF52-6CD6-40A5-AB3C-68EB2F1E4D0A}"/></a:ext></a:extLst></a:theme>`, l = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2820
3137
  <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="3" uniqueCount="3"><si><t>a</t></si><si><t>b</t></si><si><t>c</t></si></sst>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2821
3138
  <styleSheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x14ac x16r2 xr" xmlns:x14ac="http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac" xmlns:x16r2="http://schemas.microsoft.com/office/spreadsheetml/2015/02/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision"><fonts count="1" x14ac:knownFonts="1"><font><sz val="12"/><color theme="1"/><name val="Aptos Narrow"/><family val="2"/><scheme val="minor"/></font></fonts><fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills><borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders><cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs><cellXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0" xfId="0"/></cellXfs><cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles><dxfs count="0"/><tableStyles count="0" defaultTableStyle="TableStyleMedium2" defaultPivotStyle="PivotStyleLight16"/><extLst><ext uri="{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}" xmlns:x14="http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"><x14:slicerStyles defaultSlicerStyle="SlicerStyleLight1"/></ext><ext uri="{9260A510-F301-46a8-8635-F512D64BE5F5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:timelineStyles defaultTimelineStyle="TimeSlicerStyleLight1"/></ext></extLst></styleSheet>`, c = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2822
3139
  <workbook xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="x15 xr xr6 xr10 xr2" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main" xmlns:xr="http://schemas.microsoft.com/office/spreadsheetml/2014/revision" xmlns:xr6="http://schemas.microsoft.com/office/spreadsheetml/2016/revision6" xmlns:xr10="http://schemas.microsoft.com/office/spreadsheetml/2016/revision10" xmlns:xr2="http://schemas.microsoft.com/office/spreadsheetml/2015/revision2"><fileVersion appName="xl" lastEdited="7" lowestEdited="7" rupBuild="11207"/><workbookPr defaultThemeVersion="202300"/><mc:AlternateContent xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><mc:Choice Requires="x15"><x15ac:absPath url="/" xmlns:x15ac="http://schemas.microsoft.com/office/spreadsheetml/2010/11/ac"/></mc:Choice></mc:AlternateContent><xr:revisionPtr revIDLastSave="0" documentId="8_{292BF245-1F37-B045-B1A5-26C42FB62779}" xr6:coauthVersionLast="47" xr6:coauthVersionMax="47" xr10:uidLastSave="{00000000-0000-0000-0000-000000000000}"/><bookViews><workbookView xWindow="11340" yWindow="5060" windowWidth="28040" windowHeight="17440" xr2:uid="{858B8D3F-6246-774D-8903-6D38687B7BC6}"/></bookViews><sheets><sheet name="Sheet1" sheetId="1" r:id="rId1"/></sheets><calcPr calcId="181029"/><extLst><ext uri="{140A7094-0E35-4892-8432-C4D2E57EDEB5}" xmlns:x15="http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"><x15:workbookPr chartTrackingRefBase="1"/></ext><ext uri="{B58B0392-4F1F-4190-BB64-5DF3571DCE5F}" xmlns:xcalcf="http://schemas.microsoft.com/office/spreadsheetml/2018/calcfeatures"><xcalcf:calcFeatures><xcalcf:feature name="microsoft.com:RD"/><xcalcf:feature name="microsoft.com:Single"/><xcalcf:feature name="microsoft.com:FV"/><xcalcf:feature name="microsoft.com:CNMTM"/><xcalcf:feature name="microsoft.com:LET_WF"/><xcalcf:feature name="microsoft.com:LAMBDA_WF"/><xcalcf:feature name="microsoft.com:ARRAYTEXT_WF"/></xcalcf:calcFeatures></ext></extLst></workbook>`, d = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2823
3140
  <Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Default Extension="xml" ContentType="application/xml"/><Override PartName="/xl/workbook.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"/><Override PartName="/xl/worksheets/sheet1.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/><Override PartName="/xl/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/><Override PartName="/xl/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"/><Override PartName="/xl/sharedStrings.xml" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/></Types>`, u = /* @__PURE__ */ new Map();
2824
- return u.set("_rels/.rels", s), u.set("docProps/app.xml", o), u.set("docProps/core.xml", i), u.set("xl/_rels/workbook.xml.rels", r), u.set("xl/theme/theme1.xml", l), u.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), u.set("xl/sharedStrings.xml", n), u.set("xl/styles.xml", a), u.set("xl/workbook.xml", c), u.set("[Content_Types].xml", d), u;
3141
+ return u.set("_rels/.rels", s), u.set("docProps/app.xml", o), u.set("docProps/core.xml", i), u.set("xl/_rels/workbook.xml.rels", r), u.set("xl/theme/theme1.xml", n), u.set("xl/worksheets/sheet1.xml", this.getX1WorksheetsSheet1Xml(e)), u.set("xl/sharedStrings.xml", l), u.set("xl/styles.xml", a), u.set("xl/workbook.xml", c), u.set("[Content_Types].xml", d), u;
2825
3142
  }
2826
3143
  getX1WorksheetsSheet1Xml(e) {
2827
3144
  const t = [];
@@ -2836,15 +3153,15 @@ class at {
2836
3153
  const o = e[s];
2837
3154
  t.push('<row r="${r + 1}" spans="1:2" x14ac:dyDescent="0.2">');
2838
3155
  for (let i = 0; i < o.length; i++) {
2839
- const r = o[i], l = this.getCellAddress(s, i);
3156
+ const r = o[i], n = this.getCellAddress(s, i);
2840
3157
  if (typeof r == "number")
2841
- t.push(`<c r="${l}"><v>${r}</v></c>`);
3158
+ t.push(`<c r="${n}"><v>${r}</v></c>`);
2842
3159
  else if (r instanceof Date) {
2843
- const n = r;
2844
- t.push(`<c r="${l}" t="inlineStr"><is><t>${n.toISOString()}</t></is></c>`);
3160
+ const l = r;
3161
+ t.push(`<c r="${n}" t="inlineStr"><is><t>${l.toISOString()}</t></is></c>`);
2845
3162
  } else {
2846
- const n = r != null ? this.escapeXml(String(r)) : "";
2847
- t.push(`<c r="${l}" t="inlineStr"><is><t>${n}</t></is></c>`);
3163
+ const l = r != null ? this.escapeXml(String(r)) : "";
3164
+ t.push(`<c r="${n}" t="inlineStr"><is><t>${l}</t></is></c>`);
2848
3165
  }
2849
3166
  }
2850
3167
  t.push("</row>");
@@ -2867,21 +3184,21 @@ class at {
2867
3184
  let s = 0;
2868
3185
  const o = [];
2869
3186
  e.forEach((d, u) => {
2870
- const f = new TextEncoder().encode(u), g = new TextEncoder().encode(d), m = new Uint8Array(30 + f.length), p = new DataView(m.buffer);
2871
- m.set([80, 75, 3, 4], 0), p.setUint16(4, 20, !0), p.setUint16(6, 0, !0), p.setUint16(8, 0, !0), p.setUint16(10, 0, !0), p.setUint16(12, 0, !0), p.setUint32(14, 0, !0), p.setUint32(18, g.length, !0), p.setUint32(22, g.length, !0), p.setUint16(26, f.length, !0), p.setUint16(28, 0, !0), m.set(f, 30), t.push(m, g), o.push({
3187
+ const f = new TextEncoder().encode(u), p = new TextEncoder().encode(d), m = new Uint8Array(30 + f.length), g = new DataView(m.buffer);
3188
+ m.set([80, 75, 3, 4], 0), g.setUint16(4, 20, !0), g.setUint16(6, 0, !0), g.setUint16(8, 0, !0), g.setUint16(10, 0, !0), g.setUint16(12, 0, !0), g.setUint32(14, 0, !0), g.setUint32(18, p.length, !0), g.setUint32(22, p.length, !0), g.setUint16(26, f.length, !0), g.setUint16(28, 0, !0), m.set(f, 30), t.push(m, p), o.push({
2872
3189
  path: u,
2873
3190
  offset: s,
2874
- contentSize: g.length
2875
- }), s += m.length + g.length;
3191
+ contentSize: p.length
3192
+ }), s += m.length + p.length;
2876
3193
  });
2877
3194
  const i = s;
2878
3195
  o.forEach((d) => {
2879
- const u = new TextEncoder().encode(d.path), f = new Uint8Array(46 + u.length), g = new DataView(f.buffer);
2880
- f.set([80, 75, 1, 2], 0), g.setUint16(4, 20, !0), g.setUint16(6, 20, !0), g.setUint16(8, 0, !0), g.setUint16(10, 0, !0), g.setUint16(12, 0, !0), g.setUint16(14, 0, !0), g.setUint32(16, 0, !0), g.setUint32(20, d.contentSize, !0), g.setUint32(24, d.contentSize, !0), g.setUint16(28, u.length, !0), g.setUint16(30, 0, !0), g.setUint16(32, 0, !0), g.setUint16(34, 0, !0), g.setUint16(36, 0, !0), g.setUint32(38, 0, !0), g.setUint32(42, d.offset, !0), f.set(u, 46), t.push(f), s += f.length;
3196
+ const u = new TextEncoder().encode(d.path), f = new Uint8Array(46 + u.length), p = new DataView(f.buffer);
3197
+ f.set([80, 75, 1, 2], 0), p.setUint16(4, 20, !0), p.setUint16(6, 20, !0), p.setUint16(8, 0, !0), p.setUint16(10, 0, !0), p.setUint16(12, 0, !0), p.setUint16(14, 0, !0), p.setUint32(16, 0, !0), p.setUint32(20, d.contentSize, !0), p.setUint32(24, d.contentSize, !0), p.setUint16(28, u.length, !0), p.setUint16(30, 0, !0), p.setUint16(32, 0, !0), p.setUint16(34, 0, !0), p.setUint16(36, 0, !0), p.setUint32(38, 0, !0), p.setUint32(42, d.offset, !0), f.set(u, 46), t.push(f), s += f.length;
2881
3198
  });
2882
- const r = new Uint8Array(22), l = new DataView(r.buffer);
2883
- r.set([80, 75, 5, 6], 0), l.setUint16(4, 0, !0), l.setUint16(6, 0, !0), l.setUint16(8, o.length, !0), l.setUint16(10, o.length, !0), l.setUint32(12, s - i, !0), l.setUint32(16, i, !0), l.setUint16(20, 0, !0), t.push(r);
2884
- const n = t.reduce((d, u) => d + u.length, 0), a = new Uint8Array(n);
3199
+ const r = new Uint8Array(22), n = new DataView(r.buffer);
3200
+ r.set([80, 75, 5, 6], 0), n.setUint16(4, 0, !0), n.setUint16(6, 0, !0), n.setUint16(8, o.length, !0), n.setUint16(10, o.length, !0), n.setUint32(12, s - i, !0), n.setUint32(16, i, !0), n.setUint16(20, 0, !0), t.push(r);
3201
+ const l = t.reduce((d, u) => d + u.length, 0), a = new Uint8Array(l);
2885
3202
  let c = 0;
2886
3203
  for (const d of t)
2887
3204
  a.set(d, c), c += d.length;
@@ -2892,16 +3209,16 @@ class at {
2892
3209
  return this.createZip(s);
2893
3210
  }
2894
3211
  }
2895
- class Ee extends Ke {
2896
- constructor(e, t, s, o, i, r = new X(), l = new at()) {
3212
+ class _e extends lt {
3213
+ constructor(e, t, s, o, i, r = new J(), n = new St()) {
2897
3214
  var c;
2898
- if (super(e, t, new Be(s), o), this.eventListener = i, this.copyService = r, this.excelService = l, this.licenseManager = H.getInstance(), this.selectionService = new Ze(this), this.api = new We(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new he()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
3215
+ if (super(e, t, new qe(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = V.getInstance(), this.selectionService = new ht(this), this.api = new et(this), this.mouseStartAction = "", this.mouseStartWidth = -1, this.mouseStartColumnIndex = -1, this.dragFrom = -1, this.dragTo = -1, this.lastDragFrom = -1, this.lastDragTo = -1, this.firstDraggingRendering = !0, t.setTableScope(this), i || (this.eventListener = new ye()), (c = this.tableOptions) != null && c.autoRestoreOptions) {
2899
3216
  const d = this.tableOptions.autoRestoreOptions, u = d.getStorageKeyFn;
2900
- u && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new Ne(u)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ze(u)), d.autoRestoreSortingState && (this.storeSortingService = new je(u)));
3217
+ u && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new tt(u)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ot(u)), d.autoRestoreSortingState && (this.storeSortingService = new it(u)));
2901
3218
  }
2902
- this.mouseHandler = new Ve(this), this.inputHandler = new Je(this), this.resizeHandler = new lt(this, o.resizeEventDebounceDelay), this.shortcutService = new tt(this), this.shortcutService.addListener(this.selectionService);
2903
- const n = this.getSelectionModel ? this.getSelectionModel() : void 0;
2904
- n && n.addEventSelectionChangedListener(this);
3219
+ this.mouseHandler = new Qe(this), this.inputHandler = new ct(this), this.resizeHandler = new wt(this, o.resizeEventDebounceDelay), this.shortcutService = new gt(this), this.shortcutService.addListener(this.selectionService);
3220
+ const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
3221
+ l && l.addEventSelectionChangedListener(this);
2905
3222
  const a = this.getFocusModel ? this.getFocusModel() : void 0;
2906
3223
  a && a.addEventFocusChangedListener(this);
2907
3224
  }
@@ -2917,8 +3234,8 @@ class Ee extends Ke {
2917
3234
  *
2918
3235
  * @return {TableScope} - The newly created TableScope instance.
2919
3236
  */
2920
- static create(e, t, s = new U(), o = new he(), i = new st(), r = new X()) {
2921
- return new Ee(e, t, i, s, o, r);
3237
+ static create(e, t, s = new X(), o = new ye(), i = new ft(), r = new J()) {
3238
+ return new _e(e, t, i, s, o, r);
2922
3239
  }
2923
3240
  /**
2924
3241
  * Triggers an action based on the provided actionId.
@@ -2946,7 +3263,7 @@ class Ee extends Ke {
2946
3263
  return !1;
2947
3264
  }
2948
3265
  updateModelValueAfterEdit(e, t, s, o) {
2949
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(re.createSingle(t, s)), this.hostElement.focus());
3266
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(he.createSingle(t, s)), this.hostElement.focus());
2950
3267
  }
2951
3268
  /**
2952
3269
  * Retrieves the TableApi object.
@@ -2975,7 +3292,7 @@ class Ee extends Ke {
2975
3292
  * @return {GeMouseEvent} - The created GeMouseEvent object.
2976
3293
  */
2977
3294
  createGeMouseEvent(e) {
2978
- const t = new oe();
3295
+ const t = new ce();
2979
3296
  if (t.originalEvent = e, e) {
2980
3297
  const s = e.target;
2981
3298
  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) {
@@ -3045,7 +3362,7 @@ class Ee extends Ke {
3045
3362
  toggleExpandCollapseAll(e = !0) {
3046
3363
  var s;
3047
3364
  const t = this.tableModel.getBodyModel();
3048
- ee(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
3365
+ ie(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
3049
3366
  }
3050
3367
  /**
3051
3368
  * Toggles the checkbox state of a specific row in a table.
@@ -3057,11 +3374,11 @@ class Ee extends Ke {
3057
3374
  * @return {void} - This method does not return anything.
3058
3375
  */
3059
3376
  toggleRowCheckbox(e, t, s) {
3060
- var n;
3377
+ var l;
3061
3378
  const o = this.tableModel.getAreaModel(s), i = o.isRowChecked(e), r = i === void 0 || i === "semi" || i === "none";
3062
3379
  o.setRowChecked(e, r), this.repaint();
3063
- const l = (n = o.rowSelectionModel) == null ? void 0 : n.getCheckedRows();
3064
- this.eventListener.onCheckboxChanged(l || []);
3380
+ const n = (l = o.rowSelectionModel) == null ? void 0 : l.getCheckedRows();
3381
+ this.eventListener.onCheckboxChanged(n || []);
3065
3382
  }
3066
3383
  /**
3067
3384
  * Handle mouse click events.
@@ -3115,7 +3432,7 @@ class Ee extends Ke {
3115
3432
  const o = this.tableModel.getColumnDef(s);
3116
3433
  if (o != null && o.sortable && o.sortable()) {
3117
3434
  e.preventDefault(), e.stopPropagation();
3118
- const l = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, n = o.sortState ?? "", a = l[(l.indexOf(n) + 1) % l.length], c = new Ye(s, a);
3435
+ const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", a = n[(n.indexOf(l) + 1) % n.length], c = new at(s, a);
3119
3436
  this.tableModel.doSort([c]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((u) => u.sortState = ""), o.sortState = a), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([c]);
3120
3437
  }
3121
3438
  }
@@ -3261,9 +3578,9 @@ class Ee extends Ke {
3261
3578
  const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
3262
3579
  if (s.autoRestoreCollapsedExpandedState && o) {
3263
3580
  const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
3264
- if (ee(r)) {
3265
- const l = r, n = r.getRowCount();
3266
- for (let a = 0; a < n; a++) {
3581
+ if (ie(r)) {
3582
+ const n = r, l = r.getRowCount();
3583
+ for (let a = 0; a < l; a++) {
3267
3584
  const c = r.getRowByIndex(a);
3268
3585
  if (c)
3269
3586
  if (i.allExpanded)
@@ -3275,7 +3592,7 @@ class Ee extends Ke {
3275
3592
  i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d));
3276
3593
  }
3277
3594
  }
3278
- l.recalcVisibleTreeRows();
3595
+ n.recalcVisibleTreeRows();
3279
3596
  }
3280
3597
  }
3281
3598
  }
@@ -3287,8 +3604,8 @@ class Ee extends Ke {
3287
3604
  const o = new Array(t).fill(0);
3288
3605
  for (let i = 0; i < s; i++)
3289
3606
  for (let r = 0; r < t; r++) {
3290
- const l = e.getValueAt(i, r), n = (l == null ? void 0 : l.toString().length) || 0;
3291
- n > o[r] && (o[r] = n);
3607
+ const n = e.getValueAt(i, r), l = (n == null ? void 0 : n.toString().length) || 0;
3608
+ l > o[r] && (o[r] = l);
3292
3609
  }
3293
3610
  return o.map((i) => Math.max(i * 10, 50));
3294
3611
  }
@@ -3307,9 +3624,9 @@ class Ee extends Ke {
3307
3624
  this.tableModel.recalcPadding(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows();
3308
3625
  }
3309
3626
  }
3310
- const K = class K {
3627
+ const q = class q {
3311
3628
  };
3312
- K.themes = ["light", "combat", "paper", "blackboard"], K.vars = {
3629
+ q.themes = ["light", "combat", "paper", "blackboard"], q.vars = {
3313
3630
  light: `html[data-theme="light"] {
3314
3631
  --ge-table-bg: rgba(255,255,255, 0.5);
3315
3632
  --ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
@@ -3543,29 +3860,29 @@ K.themes = ["light", "combat", "paper", "blackboard"], K.vars = {
3543
3860
  --ge-table-drop-zone-bg: #758129;
3544
3861
  }`
3545
3862
  };
3546
- let ue = K;
3547
- class pe {
3548
- constructor(e, t = !0, s, o, i = 0, r = !1, l = !1) {
3549
- this.data = e, this.expanded = t, this.children = s, this.parent = o, this.deep = i, this.checked = r, this.keep = l, this.type = "TreeRow";
3863
+ let xe = q;
3864
+ class we {
3865
+ constructor(e, t = !0, s, o, i = 0, r = !1, n = !1) {
3866
+ this.data = e, this.expanded = t, this.children = s, this.parent = o, this.deep = i, this.checked = r, this.keep = n, this.type = "TreeRow";
3550
3867
  }
3551
3868
  }
3552
- class te {
3869
+ class re {
3553
3870
  static buildTreeRows(e, t = "children", s = 12) {
3554
3871
  const o = [];
3555
3872
  for (const i of e)
3556
- o.push(te.buildTreeRow(i, t, void 0, 0, s));
3873
+ o.push(re.buildTreeRow(i, t, void 0, 0, s));
3557
3874
  return o;
3558
3875
  }
3559
- static buildTreeRow(e, t = "children", s = new pe(e, !0, [], void 0, 0), o = 0, i = 12) {
3560
- var l;
3876
+ static buildTreeRow(e, t = "children", s = new we(e, !0, [], void 0, 0), o = 0, i = 12) {
3877
+ var n;
3561
3878
  if (o > i)
3562
3879
  return console.warn("Max deep limit reached: ", o), s;
3563
3880
  const r = e[t];
3564
3881
  if (r)
3565
- for (const n of r) {
3566
- const a = new pe(n, !0, [], s, o + 1);
3567
- if ((l = s.children) == null || l.push(a), te.buildTreeRow(
3568
- n,
3882
+ for (const l of r) {
3883
+ const a = new we(l, !0, [], s, o + 1);
3884
+ if ((n = s.children) == null || n.push(a), re.buildTreeRow(
3885
+ l,
3569
3886
  t,
3570
3887
  a,
3571
3888
  o + 1
@@ -3575,7 +3892,7 @@ class te {
3575
3892
  return s;
3576
3893
  }
3577
3894
  }
3578
- class N {
3895
+ class G {
3579
3896
  constructor(e = 34, t = 34, s = 34) {
3580
3897
  this.header = e, this.body = t, this.footer = s;
3581
3898
  }
@@ -3585,10 +3902,10 @@ class y {
3585
3902
  this.value = e, this.unit = t;
3586
3903
  }
3587
3904
  }
3588
- const ct = () => !0, ge = () => !1;
3589
- class B {
3590
- constructor(e, t, s = new y(100, "px"), o = new I(), i = new I(), r = new y(100, "px"), l = new y(100, "px"), n, a, c, d, u, f, g, m, p = () => this.visible) {
3591
- this.property = e, this.headerLabel = t, this.width = s, this.classes = o, this.rendererMap = i, this.minWidth = r, this.maxWidth = l, this.sortable = n, this.sortComparator = a, this.sortState = c, this.sortStatesOrder = d, this.sortIconVisible = u, this.editable = f, this.getEditRenderer = g, this.editInputPipe = m, this.isVisible = p, this.visible = !0, s.unit !== "px" && (this.minWidth = new y(0, "px"), this.maxWidth = new y(1e5, "px"));
3905
+ const Ct = () => !0, Se = () => !1;
3906
+ class H {
3907
+ constructor(e, t, s = new y(100, "px"), o = new I(), i = new I(), r = new y(100, "px"), n = new y(100, "px"), l, a, c, d, u, f, p, m, g = () => this.visible) {
3908
+ this.property = e, this.headerLabel = t, this.width = s, this.classes = o, this.rendererMap = i, this.minWidth = r, this.maxWidth = n, this.sortable = l, this.sortComparator = a, this.sortState = c, this.sortStatesOrder = d, this.sortIconVisible = u, this.editable = f, this.getEditRenderer = p, this.editInputPipe = m, this.isVisible = g, this.visible = !0, s.unit !== "px" && (this.minWidth = new y(0, "px"), this.maxWidth = new y(1e5, "px"));
3592
3909
  }
3593
3910
  static bodyRenderer(e) {
3594
3911
  return new I(
@@ -3606,8 +3923,8 @@ class B {
3606
3923
  e.headerClasses,
3607
3924
  e.bodyClasses,
3608
3925
  e.footerClasses
3609
- ), o = e.sortIconVisible ?? e.sortable ?? ge, i = e.editable ?? e.editable ?? ge, r = e.isVisible ?? e.isVisible ?? ct;
3610
- return new B(
3926
+ ), o = e.sortIconVisible ?? e.sortable ?? Se, i = e.editable ?? e.editable ?? Se, r = e.isVisible ?? e.isVisible ?? Ct;
3927
+ return new H(
3611
3928
  e.property ?? "",
3612
3929
  e.headerLabel ?? "",
3613
3930
  e.width ?? new y(100, "px"),
@@ -3627,8 +3944,8 @@ class B {
3627
3944
  );
3628
3945
  }
3629
3946
  }
3630
- const Et = new y(500, "px"), Mt = new y(400, "px"), dt = new y(300, "px"), Tt = new y(290, "px"), It = new y(280, "px"), kt = new y(270, "px"), Dt = new y(260, "px"), Ft = new y(250, "px"), Pt = new y(240, "px"), Lt = new y(230, "px"), $t = new y(220, "px"), Ot = new y(210, "px"), fe = new y(200, "px"), _t = new y(190, "px"), Bt = new y(180, "px"), Ht = new y(170, "px"), Vt = new y(160, "px"), Wt = new y(150, "px"), Nt = new y(140, "px"), Gt = new y(130, "px"), zt = new y(120, "px"), jt = new y(110, "px"), Ut = new y(100, "px"), Xt = new y(90, "px"), Kt = new y(80, "px"), Yt = new y(70, "px"), Jt = new y(60, "px"), qt = new y(50, "px"), Zt = new y(40, "px"), Qt = new y(30, "px"), es = new y(20, "px"), ts = new y(10, "px"), ss = new y(0, "px");
3631
- class ae {
3947
+ const Wt = new y(500, "px"), Nt = new y(400, "px"), vt = new y(300, "px"), Gt = new y(290, "px"), zt = new y(280, "px"), jt = new y(270, "px"), Ut = new y(260, "px"), Yt = new y(250, "px"), Kt = new y(240, "px"), Xt = new y(230, "px"), Jt = new y(220, "px"), qt = new y(210, "px"), Ce = new y(200, "px"), Zt = new y(190, "px"), Qt = new y(180, "px"), es = new y(170, "px"), ts = new y(160, "px"), ss = new y(150, "px"), os = new y(140, "px"), is = new y(130, "px"), rs = new y(120, "px"), ns = new y(110, "px"), ls = new y(100, "px"), as = new y(90, "px"), cs = new y(80, "px"), ds = new y(70, "px"), hs = new y(60, "px"), us = new y(50, "px"), ps = new y(40, "px"), gs = new y(30, "px"), fs = new y(20, "px"), ms = new y(10, "px"), bs = new y(0, "px");
3948
+ class ge {
3632
3949
  constructor(e, t = [], s = -1) {
3633
3950
  this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
3634
3951
  }
@@ -3693,8 +4010,8 @@ class ae {
3693
4010
  return ((i = s == null ? void 0 : s.editable) == null ? void 0 : i.call(s)) ?? !1;
3694
4011
  }
3695
4012
  setValue(e, t, s) {
3696
- var l;
3697
- const o = (l = this.columnDefs[t]) == null ? void 0 : l.editInputPipe;
4013
+ var n;
4014
+ const o = (n = this.columnDefs[t]) == null ? void 0 : n.editInputPipe;
3698
4015
  o && (s = o(s, e, t));
3699
4016
  const i = this.getRowByIndex(e), r = this.columnDefs[t].property;
3700
4017
  return r.includes(".") ? this.setPropertyValue(i, r.split("."), s) : (i[r] = s, !0);
@@ -3724,7 +4041,7 @@ class ae {
3724
4041
  this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
3725
4042
  }
3726
4043
  }
3727
- class D extends ae {
4044
+ class P extends ge {
3728
4045
  constructor(e, t, s, o = []) {
3729
4046
  super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
3730
4047
  }
@@ -3824,7 +4141,7 @@ class F {
3824
4141
  changeColumnOrder(e, t) {
3825
4142
  }
3826
4143
  }
3827
- class ht {
4144
+ class At {
3828
4145
  flattenTree(e, t = []) {
3829
4146
  var s;
3830
4147
  for (const o of e)
@@ -3835,7 +4152,7 @@ class ht {
3835
4152
  return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
3836
4153
  }
3837
4154
  }
3838
- class Me {
4155
+ class Be {
3839
4156
  genericSortComparator(e, t, s) {
3840
4157
  if (typeof e == "number" && typeof t == "number")
3841
4158
  return s * (e - t);
@@ -3853,9 +4170,9 @@ class Me {
3853
4170
  return s * ("" + e).localeCompare("" + t);
3854
4171
  }
3855
4172
  }
3856
- class me extends ae {
4173
+ class ve extends ge {
3857
4174
  constructor(e, t, s, o = []) {
3858
- super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new Me(), this.service = new ht(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
4175
+ super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new Be(), this.service = new At(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
3859
4176
  }
3860
4177
  changeColumnOrder(e, t) {
3861
4178
  this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
@@ -3912,8 +4229,8 @@ class me extends ae {
3912
4229
  o && (s = o(s, e, t));
3913
4230
  const i = this.getRowByIndex(e);
3914
4231
  if (i) {
3915
- const l = i.data, n = this.columnDefs[t].property;
3916
- return n.includes(".") ? this.setPropertyValue(l, n.split("."), s) : (l[n] = s, !0);
4232
+ const n = i.data, l = this.columnDefs[t].property;
4233
+ return l.includes(".") ? this.setPropertyValue(n, l.split("."), s) : (n[l] = s, !0);
3917
4234
  }
3918
4235
  return !1;
3919
4236
  }
@@ -3957,7 +4274,7 @@ class me extends ae {
3957
4274
  o.children && this.treeSort(o.children, t, s);
3958
4275
  }
3959
4276
  }
3960
- class be {
4277
+ class Ae {
3961
4278
  constructor(e = []) {
3962
4279
  this.allRootNodes = e;
3963
4280
  }
@@ -4017,12 +4334,12 @@ class be {
4017
4334
  s.checked && t.push(s), s.children && this.addSelectedRecursive(s.children, t);
4018
4335
  }
4019
4336
  }
4020
- class ye {
4337
+ class Re {
4021
4338
  constructor(e = 0, t = 0, s = 0, o = 0) {
4022
4339
  this.top = e, this.right = t, this.bottom = s, this.left = o;
4023
4340
  }
4024
4341
  }
4025
- class ut {
4342
+ class Rt {
4026
4343
  constructor() {
4027
4344
  this.checkedRows = [];
4028
4345
  }
@@ -4053,11 +4370,11 @@ class ut {
4053
4370
  }
4054
4371
  }
4055
4372
  }
4056
- class Z {
4057
- constructor(e, t, s, o = 0, i = 0, r = !1, l = new N(), n = [], a = [], c = -1, d = 0, u = 400, f = () => {
4373
+ class se {
4374
+ constructor(e, t, s, o = 0, i = 0, r = !1, n = new G(), l = [], a = [], c = -1, d = 0, u = 400, f = () => {
4058
4375
  }) {
4059
- var g, m, p, b;
4060
- this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = s, this.fixedLeftColumnCount = o, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = l, this.columnDefs = n, this.columnSizes = a, this.overridingColumnWidth = c, this.columnCount = d, this.parentSize = u, this.getSelectionModel = f, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new ye(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", s.areaIdent = "footer", this.columnCount || ((g = this.columnDefs) != null && g.length ? this.columnCount = this.columnDefs.length : (m = this.columnSizes) != null && m.length && (this.columnCount = (p = this.columnSizes) == null ? void 0 : p.length)), (b = this.columnDefs) != null && b.length && _e(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new ut());
4376
+ var p, m, g, b;
4377
+ this.headerAreaModel = e, this.bodyAreaModel = t, this.footerAreaModel = s, this.fixedLeftColumnCount = o, this.fixedRightColumnCount = i, this.rowCheckboxVisible = r, this.defaultRowHeights = n, this.columnDefs = l, this.columnSizes = a, this.overridingColumnWidth = c, this.columnCount = d, this.parentSize = u, this.getSelectionModel = f, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new Re(0, 0, 0, 0), this.xPositions = [], e.areaIdent = "header", t.areaIdent = "body", s.areaIdent = "footer", this.columnCount || ((p = this.columnDefs) != null && p.length ? this.columnCount = this.columnDefs.length : (m = this.columnSizes) != null && m.length && (this.columnCount = (g = this.columnSizes) == null ? void 0 : g.length)), (b = this.columnDefs) != null && b.length && Je(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new Rt());
4061
4378
  }
4062
4379
  init() {
4063
4380
  this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
@@ -4141,7 +4458,7 @@ class Z {
4141
4458
  */
4142
4459
  recalcPadding() {
4143
4460
  const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), s = this.getAreaHeight("header"), o = this.getAreaHeight("footer");
4144
- this.padding = new ye(
4461
+ this.padding = new Re(
4145
4462
  s,
4146
4463
  t,
4147
4464
  o,
@@ -4382,32 +4699,32 @@ class Z {
4382
4699
  recalcColumnWidths(e) {
4383
4700
  var t, s, o;
4384
4701
  if (!((t = this.columnDefs) != null && t.length) && !((s = this.columnSizes) != null && s.length) && (this.columnSizes = new Array(this.getColumnCount()).fill(this.overridingColumnWidth)), (o = this.columnDefs) != null && o.length) {
4385
- const i = this.columnDefs.filter((n) => {
4702
+ const i = this.columnDefs.filter((l) => {
4386
4703
  var a;
4387
- return ((a = n.width) == null ? void 0 : a.unit) === "weight";
4704
+ return ((a = l.width) == null ? void 0 : a.unit) === "weight";
4388
4705
  });
4389
- this.columnSizes = this.columnDefs.map((n) => {
4390
- if (n.width.unit === "%" && e) {
4391
- let a = Math.floor(n.width.value * e / 100);
4392
- if (n.minWidth) {
4393
- const c = this.sizeToPixel(n.minWidth, e);
4706
+ this.columnSizes = this.columnDefs.map((l) => {
4707
+ if (l.width.unit === "%" && e) {
4708
+ let a = Math.floor(l.width.value * e / 100);
4709
+ if (l.minWidth) {
4710
+ const c = this.sizeToPixel(l.minWidth, e);
4394
4711
  a = Math.max(c, a);
4395
4712
  }
4396
- if (n.maxWidth) {
4397
- const c = this.sizeToPixel(n.maxWidth, e);
4713
+ if (l.maxWidth) {
4714
+ const c = this.sizeToPixel(l.maxWidth, e);
4398
4715
  a = Math.min(c, a);
4399
4716
  }
4400
4717
  return a;
4401
- } else if (n.width.unit === "px" && e)
4402
- return n.width.value;
4718
+ } else if (l.width.unit === "px" && e)
4719
+ return l.width.value;
4403
4720
  return 0;
4404
4721
  });
4405
- const r = this.columnSizes.reduce((n, a) => n + a), l = e - r;
4406
- if (l > 0 && i.length) {
4407
- const n = i.map((a) => a.width.value).reduce((a, c) => a + c);
4722
+ const r = this.columnSizes.reduce((l, a) => l + a), n = e - r;
4723
+ if (n > 0 && i.length) {
4724
+ const l = i.map((a) => a.width.value).reduce((a, c) => a + c);
4408
4725
  for (let a = 0; a < this.columnDefs.length; a++) {
4409
4726
  const c = this.columnDefs[a];
4410
- c.width.unit === "weight" && (this.columnSizes[a] = c.width.value * l / n);
4727
+ c.width.unit === "weight" && (this.columnSizes[a] = c.width.value * n / l);
4411
4728
  }
4412
4729
  }
4413
4730
  }
@@ -4443,9 +4760,9 @@ class Z {
4443
4760
  return this.tableScope;
4444
4761
  }
4445
4762
  }
4446
- class pt extends ae {
4763
+ class Et extends ge {
4447
4764
  constructor(e, t, s, o = []) {
4448
- super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new Me(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
4765
+ super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new Be(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
4449
4766
  }
4450
4767
  setRows(e) {
4451
4768
  this.rows = e, this.filteredRows = [...e];
@@ -4460,7 +4777,7 @@ class pt extends ae {
4460
4777
  getValueAt(e, t) {
4461
4778
  const s = this.properties[t];
4462
4779
  let o = this.filteredRows[e];
4463
- return W(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
4780
+ return N(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
4464
4781
  }
4465
4782
  getFilteredRows() {
4466
4783
  return this.filteredRows;
@@ -4501,7 +4818,7 @@ class pt extends ae {
4501
4818
  return o && t.length ? this.getPropertyValue(o, t) : o;
4502
4819
  }
4503
4820
  }
4504
- class xe extends pt {
4821
+ class Ee extends Et {
4505
4822
  constructor(e, t, s, o) {
4506
4823
  super(
4507
4824
  e,
@@ -4549,63 +4866,63 @@ class _ {
4549
4866
  * Please consult each method's documentation for detailed explanation of their functionality.
4550
4867
  */
4551
4868
  static createTableModel(e) {
4552
- var t, s, o, i, r, l, n, a, c, d, u, f, g, m;
4869
+ var t, s, o, i, r, n, l, a, c, d, u, f, p, m;
4553
4870
  if (e.defaultRowHeights === void 0)
4554
4871
  if ((t = e.tableOptions) != null && t.defaultRowHeights)
4555
4872
  e.defaultRowHeights = e.tableOptions.defaultRowHeights;
4556
4873
  else {
4557
- if (e.defaultRowHeights = new N(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
4558
- const p = e.headerAreaModel.defaultRowHeight;
4559
- p > -1 && (e.defaultRowHeights.header = p);
4874
+ if (e.defaultRowHeights = new G(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
4875
+ const g = e.headerAreaModel.defaultRowHeight;
4876
+ g > -1 && (e.defaultRowHeights.header = g);
4560
4877
  }
4561
4878
  if (e.bodyAreaModel && "defaultRowHeight" in e.bodyAreaModel) {
4562
- const p = e.bodyAreaModel.defaultRowHeight;
4563
- p > -1 && (e.defaultRowHeights.body = p);
4879
+ const g = e.bodyAreaModel.defaultRowHeight;
4880
+ g > -1 && (e.defaultRowHeights.body = g);
4564
4881
  }
4565
4882
  if (e.footerAreaModel && "defaultRowHeight" in e.footerAreaModel) {
4566
- const p = e.footerAreaModel.defaultRowHeight;
4567
- p > -1 && (e.defaultRowHeights.footer = p);
4883
+ const g = e.footerAreaModel.defaultRowHeight;
4884
+ g > -1 && (e.defaultRowHeights.footer = g);
4568
4885
  }
4569
4886
  }
4570
- if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((p) => new B(p, p.toUpperCase(), fe)) : (o = e.rows) != null && o.length ? e.columnDefs = Object.keys(e.rows[0]).map((p) => new B(p, p.toUpperCase(), fe)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (l = e.columnSizes) != null && l.length ? e.columnCount = (n = e.columnSizes) == null ? void 0 : n.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((a = e.headerData) != null && a.length ? e.headerAreaModel = new D(
4887
+ if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new H(g, g.toUpperCase(), Ce)) : (o = e.rows) != null && o.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new H(g, g.toUpperCase(), Ce)) : e.columnDefs = []), e.columnCount === void 0 && ((i = e.columnDefs) != null && i.length ? e.columnCount = e.columnDefs.length : (r = e.headerData) != null && r.length ? e.columnCount = e.headerData[0].length : (n = e.columnSizes) != null && n.length ? e.columnCount = (l = e.columnSizes) == null ? void 0 : l.length : console.warn('Property "columnCount" is missing and cannot be derived from other properties.')), e.headerAreaModel || ((a = e.headerData) != null && a.length ? e.headerAreaModel = new P(
4571
4888
  "header",
4572
4889
  e.headerData,
4573
4890
  e.defaultRowHeights.header,
4574
4891
  e.columnDefs
4575
- ) : (c = e.columnDefs) != null && c.length ? e.headerAreaModel = new D(
4892
+ ) : (c = e.columnDefs) != null && c.length ? e.headerAreaModel = new P(
4576
4893
  "header",
4577
- [e.columnDefs.map((p) => p.headerLabel)],
4894
+ [e.columnDefs.map((g) => g.headerLabel)],
4578
4895
  e.defaultRowHeights.header,
4579
4896
  e.columnDefs
4580
- ) : e.headerAreaModel = new F("header")), e.footerAreaModel || ((d = e.footerData) != null && d.length ? e.footerAreaModel = new D(
4897
+ ) : e.headerAreaModel = new F("header")), e.footerAreaModel || ((d = e.footerData) != null && d.length ? e.footerAreaModel = new P(
4581
4898
  "footer",
4582
4899
  e.footerData,
4583
4900
  e.defaultRowHeights.footer,
4584
4901
  e.columnDefs
4585
4902
  ) : e.footerAreaModel = new F("footer")), !e.bodyAreaModel)
4586
4903
  if (e.rows)
4587
- if ((u = e.rows) != null && u.length && W(e.rows[0])) {
4588
- const p = e.rows;
4589
- e.bodyAreaModel = new me(
4904
+ if ((u = e.rows) != null && u.length && N(e.rows[0])) {
4905
+ const g = e.rows;
4906
+ e.bodyAreaModel = new ve(
4590
4907
  "body",
4591
- p,
4908
+ g,
4592
4909
  e.defaultRowHeights.body,
4593
4910
  e.columnDefs
4594
- ), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new be(p));
4911
+ ), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Ae(g));
4595
4912
  } else
4596
- e.bodyAreaModel = new xe(
4913
+ e.bodyAreaModel = new Ee(
4597
4914
  "body",
4598
4915
  e.rows,
4599
4916
  e.columnDefs,
4600
4917
  e.defaultRowHeights.body
4601
4918
  );
4602
4919
  else
4603
- e.bodyData ? e.bodyAreaModel = new D(
4920
+ e.bodyData ? e.bodyAreaModel = new P(
4604
4921
  "body",
4605
4922
  e.bodyData,
4606
4923
  e.defaultRowHeights.body
4607
4924
  ) : e.bodyAreaModel = new F("body");
4608
- return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((g = e.tableOptions) != null && g.getSelectionModel) && (e.getSelectionModel = (m = e.tableOptions) == null ? void 0 : m.getSelectionModel), new Z(
4925
+ return e.fixedLeftColumnCount === void 0 && (e.fixedLeftColumnCount = 0), e.fixedRightColumnCount === void 0 && (e.fixedRightColumnCount = 0), e.rowCheckboxVisible === void 0 && (e.rowCheckboxVisible = !1), e.overridingColumnWidth === void 0 && (e.overridingColumnWidth = -1), !e.getSelectionModel && ((p = e.tableOptions) != null && p.getSelectionModel) && (e.getSelectionModel = (m = e.tableOptions) == null ? void 0 : m.getSelectionModel), new se(
4609
4926
  e.headerAreaModel,
4610
4927
  e.bodyAreaModel,
4611
4928
  e.footerAreaModel,
@@ -4642,7 +4959,7 @@ class _ {
4642
4959
  return _.buildByTypedRows(
4643
4960
  e.rows ?? [],
4644
4961
  e.columnDefs,
4645
- e.tableOptions ?? new U(),
4962
+ e.tableOptions ?? new X(),
4646
4963
  e.fixedLeftColumnCount ?? 0,
4647
4964
  e.fixedRightColumnCount ?? 0
4648
4965
  );
@@ -4683,19 +5000,19 @@ class _ {
4683
5000
  * columnDef is "CheckboxColumn". If the first column is not a checkbox column, ensure that the first columnDef does not have "CheckboxColumn"
4684
5001
  * as its property.
4685
5002
  */
4686
- static buildByTypedRows(e, t, s = new U(), o = 0, i = 0) {
4687
- const r = s.defaultRowHeights, l = t[0].property === "CheckboxColumn";
4688
- if (e != null && e.length && W(e[0])) {
4689
- const a = e, c = new me(
5003
+ static buildByTypedRows(e, t, s = new X(), o = 0, i = 0) {
5004
+ const r = s.defaultRowHeights, n = t[0].property === "CheckboxColumn";
5005
+ if (e != null && e.length && N(e[0])) {
5006
+ const a = e, c = new ve(
4690
5007
  "body",
4691
5008
  a,
4692
5009
  r.body,
4693
5010
  t
4694
5011
  );
4695
- return (l || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new be(a)), _.createByAreaModelsParam({
4696
- headerAreaModel: new D("header", [t.map((d) => d.headerLabel)], r.header),
5012
+ return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Ae(a)), _.createByAreaModelsParam({
5013
+ headerAreaModel: new P("header", [t.map((d) => d.headerLabel)], r.header),
4697
5014
  bodyAreaModel: c,
4698
- footerAreaModel: new D("footer", [], r.footer),
5015
+ footerAreaModel: new P("footer", [], r.footer),
4699
5016
  columnDefs: t,
4700
5017
  fixedLeftColumnCount: o,
4701
5018
  fixedRightColumnCount: i,
@@ -4767,7 +5084,7 @@ class _ {
4767
5084
  e.fixedLeftColumnCount ?? 0,
4768
5085
  e.fixedRightColumnCount ?? 0,
4769
5086
  t,
4770
- e.defaultRowHeights ?? new N(),
5087
+ e.defaultRowHeights ?? new G(),
4771
5088
  e.columnDefs ?? [],
4772
5089
  e.columnSizes ?? []
4773
5090
  );
@@ -4813,16 +5130,16 @@ class _ {
4813
5130
  * @return A new instance of `TableModel` is created using the provided parameters.
4814
5131
  * If a parameter isn't provided, the default value is used.
4815
5132
  */
4816
- static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, l = new N(), n, a = [], c = -1, d) {
4817
- return new Z(
5133
+ static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, n = new G(), l, a = [], c = -1, d) {
5134
+ return new se(
4818
5135
  e,
4819
5136
  t,
4820
5137
  s,
4821
5138
  o,
4822
5139
  i,
4823
5140
  r,
4824
- l,
4825
5141
  n,
5142
+ l,
4826
5143
  a,
4827
5144
  c,
4828
5145
  d
@@ -4927,24 +5244,24 @@ class _ {
4927
5244
  *
4928
5245
  * Reference: For more details regarding the `DefaultRowHeightsIf`, `ColumnDefIf`, `AreaModelIf`, and `AreaModelArrayOfArrays` classes/interfaces, please refer to the respective API documents.
4929
5246
  */
4930
- static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, l = new N(), n, a = []) {
5247
+ static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new G(), l, a = []) {
4931
5248
  let c;
4932
- t != null && t.length ? c = new D("header", t, l.header, n) : n != null && n.length ? c = new D("header", [n.map((f) => f.headerLabel)], l.header, n) : c = new F();
4933
- const d = s ? new D("footer", s, l.footer, n) : new F(), u = new xe("body", e, n, l.body);
4934
- return new Z(
5249
+ t != null && t.length ? c = new P("header", t, n.header, l) : l != null && l.length ? c = new P("header", [l.map((f) => f.headerLabel)], n.header, l) : c = new F();
5250
+ const d = s ? new P("footer", s, n.footer, l) : new F(), u = new Ee("body", e, l, n.body);
5251
+ return new se(
4935
5252
  c,
4936
5253
  u,
4937
5254
  d,
4938
5255
  o,
4939
5256
  i,
4940
5257
  r,
4941
- l,
4942
5258
  n,
5259
+ l,
4943
5260
  a
4944
5261
  );
4945
5262
  }
4946
5263
  }
4947
- const os = [
5264
+ const ys = [
4948
5265
  "COPY_2_CLIPBOARD",
4949
5266
  "START_EDITING",
4950
5267
  "TOGGLE_SELECTION",
@@ -4962,18 +5279,18 @@ const os = [
4962
5279
  // "PAGEUP_PRESSED",
4963
5280
  // "PAGEDOWN_PRESSED"
4964
5281
  ];
4965
- class gt {
5282
+ class Mt {
4966
5283
  constructor(e, t) {
4967
5284
  this.tableModel = e, this.tableOptions = t;
4968
5285
  }
4969
5286
  }
4970
- class ft {
4971
- constructor(e, t, s, o, i, r, l) {
4972
- this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = s, this.filter = o, this.sorting = i, this.startIndex = r, this.endIndex = l;
5287
+ class Tt {
5288
+ constructor(e, t, s, o, i, r, n) {
5289
+ this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = s, this.filter = o, this.sorting = i, this.startIndex = r, this.endIndex = n;
4973
5290
  }
4974
5291
  }
4975
- class is extends ft {
4976
- constructor(e, t, s, o, i, r, l, n) {
5292
+ class xs extends Tt {
5293
+ constructor(e, t, s, o, i, r, n, l) {
4977
5294
  super(
4978
5295
  e,
4979
5296
  t,
@@ -4981,38 +5298,38 @@ class is extends ft {
4981
5298
  o,
4982
5299
  i,
4983
5300
  r,
4984
- l
4985
- ), this.rows = n;
5301
+ n
5302
+ ), this.rows = l;
4986
5303
  }
4987
5304
  }
4988
- class mt {
5305
+ class It {
4989
5306
  constructor(e, t) {
4990
5307
  this.value = e, this.label = t;
4991
5308
  }
4992
5309
  }
4993
- class rs {
5310
+ class ws {
4994
5311
  constructor(e, t) {
4995
5312
  this.index = e, this.px = t;
4996
5313
  }
4997
5314
  }
4998
- const ns = { body: ["ge-table-text-align-left"] }, ls = { body: ["ge-table-text-align-center"] }, as = { body: ["ge-table-text-align-right"] }, cs = {
5315
+ const Ss = { body: ["ge-table-text-align-left"] }, Cs = { body: ["ge-table-text-align-center"] }, vs = { body: ["ge-table-text-align-right"] }, As = {
4999
5316
  header: ["ge-table-text-align-left"],
5000
5317
  body: ["ge-table-text-align-left"],
5001
5318
  footer: ["ge-table-text-align-left"]
5002
- }, ds = {
5319
+ }, Rs = {
5003
5320
  header: ["ge-table-text-align-center"],
5004
5321
  body: ["ge-table-text-align-center"],
5005
5322
  footer: ["ge-table-text-align-center"]
5006
- }, hs = {
5323
+ }, Es = {
5007
5324
  header: ["ge-table-text-align-right"],
5008
5325
  body: ["ge-table-text-align-right"],
5009
5326
  footer: ["ge-table-text-align-right"]
5010
5327
  };
5011
- class we {
5012
- render(e, t, s, o, i, r, l) {
5328
+ class Me {
5329
+ render(e, t, s, o, i, r, n) {
5013
5330
  if (i.isRowCheckable(t)) {
5014
- l.addClass(e, "ge-table-row-checkbox-div");
5015
- const n = i.isRowChecked(t), a = n === "full" ? "checked" : "", c = n === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
5331
+ n.addClass(e, "ge-table-row-checkbox-div");
5332
+ const l = i.isRowChecked(t), a = l === "full" ? "checked" : "", c = l === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
5016
5333
  e.innerHTML = `
5017
5334
  <input
5018
5335
  type="checkbox"
@@ -5026,16 +5343,16 @@ class we {
5026
5343
  }
5027
5344
  }
5028
5345
  }
5029
- class us {
5346
+ class Ms {
5030
5347
  constructor() {
5031
- this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new y(50, "px"), this.minWidth = new y(50, "px"), this.maxWidth = new y(100, "px"), this.rendererMap = new I(new we(), new we(), void 0), this.classes = new I(
5348
+ this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new y(50, "px"), this.minWidth = new y(50, "px"), this.maxWidth = new y(100, "px"), this.rendererMap = new I(new Me(), new Me(), void 0), this.classes = new I(
5032
5349
  [],
5033
5350
  ["ge-table-text-align-left"],
5034
5351
  []
5035
5352
  );
5036
5353
  }
5037
5354
  }
5038
- class ps {
5355
+ class Ts {
5039
5356
  /**
5040
5357
  * A factory that creates a new AreaObjectMap with the given body renderer.
5041
5358
  *
@@ -5050,17 +5367,17 @@ class ps {
5050
5367
  );
5051
5368
  }
5052
5369
  }
5053
- class gs {
5370
+ class Is {
5054
5371
  constructor(e = "down", t) {
5055
5372
  this.status = e, this.originalEvent = t;
5056
5373
  }
5057
5374
  }
5058
- class fs {
5375
+ class ks {
5059
5376
  constructor(e, t, s, o, i = {}) {
5060
5377
  this.area = e, this.rowIndex = t, this.columnIndex = s, this.value = o, this.cssClasses = i;
5061
5378
  }
5062
5379
  }
5063
- class ms {
5380
+ class Ds {
5064
5381
  constructor() {
5065
5382
  this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, s) => {
5066
5383
  if (e && t && s.getRowId) {
@@ -5085,12 +5402,12 @@ class ms {
5085
5402
  };
5086
5403
  }
5087
5404
  }
5088
- class bt {
5405
+ class kt {
5089
5406
  constructor(e, t, s, o = !1, i = "normal", r = void 0) {
5090
5407
  this.data = e, this.property = t, this.toggle = s, this.closed = o, this.visibility = i, this.children = r, this.impl = "CellGroup";
5091
5408
  }
5092
5409
  }
5093
- class yt extends bt {
5410
+ class Dt extends kt {
5094
5411
  constructor(e, t = 0, s = 0, o) {
5095
5412
  super(
5096
5413
  e.data,
@@ -5163,7 +5480,7 @@ class yt extends bt {
5163
5480
  return e.parent && (t = t + 1 + this.getParentCount(e.parent, t)), t;
5164
5481
  }
5165
5482
  log(e = 10) {
5166
- const t = " ".substring(0, 2 * this.rowIndex), s = `${this.getColumnIndex()}`, o = `${this.getColumnCount(this)}`, i = `${this.getRowSpan(this, e)}`, r = `${this.getParentCount(this)}`, l = `${t + this.data}
5483
+ const t = " ".substring(0, 2 * this.rowIndex), s = `${this.getColumnIndex()}`, o = `${this.getColumnCount(this)}`, i = `${this.getRowSpan(this, e)}`, r = `${this.getParentCount(this)}`, n = `${t + this.data}
5167
5484
  childIndex:${this.childIndex}
5168
5485
  row:${this.rowIndex}
5169
5486
  col:${s}
@@ -5177,16 +5494,16 @@ class yt extends bt {
5177
5494
  rowSpan:${i}
5178
5495
  pc:${r}`.replace(/[ \n]+/g, " ");
5179
5496
  if (this.children)
5180
- for (const n of this.children)
5181
- n.log(e);
5182
- return l;
5497
+ for (const l of this.children)
5498
+ l.log(e);
5499
+ return n;
5183
5500
  }
5184
5501
  }
5185
5502
  class T {
5186
5503
  static buildColumnDefs(e, t = []) {
5187
5504
  for (const s of e)
5188
5505
  s.property && t.push(
5189
- B.create({
5506
+ H.create({
5190
5507
  property: s.property,
5191
5508
  headerLabel: s.data ? s.data : s.property,
5192
5509
  isVisible: () => typeof s.isVisible == "function" ? s.isVisible() : !0
@@ -5215,8 +5532,8 @@ class T {
5215
5532
  static buildGroupExts(e, t = [], s = 0, o) {
5216
5533
  let i;
5217
5534
  for (let r = 0; r < e.length; r++) {
5218
- const l = e[r], n = new yt(l, s, r, o);
5219
- i && (n.leftNeighbour = i, i.rightNeighbour = n), t.push(n), l.children && (n.children = T.buildGroupExts(l.children, [], s + 1, n)), i = n;
5535
+ const n = e[r], l = new Dt(n, s, r, o);
5536
+ i && (l.leftNeighbour = i, i.rightNeighbour = l), t.push(l), n.children && (l.children = T.buildGroupExts(n.children, [], s + 1, l)), i = l;
5220
5537
  }
5221
5538
  return t;
5222
5539
  }
@@ -5238,15 +5555,15 @@ class T {
5238
5555
  for (const r of e) {
5239
5556
  if (r.rowIndex <= o) {
5240
5557
  s++;
5241
- for (let l = 0; l < t.length; l++)
5242
- t[l][s] = null;
5558
+ for (let n = 0; n < t.length; n++)
5559
+ t[n][s] = null;
5243
5560
  }
5244
5561
  if (t[r.rowIndex][s] = r, o = r.rowIndex, r.ownColumn() && ((i = r.children) != null && i.length)) {
5245
- for (let l = r.rowIndex + 1; l < t.length; l++)
5246
- t[l][s] = void 0;
5562
+ for (let n = r.rowIndex + 1; n < t.length; n++)
5563
+ t[n][s] = void 0;
5247
5564
  s++;
5248
- for (let l = 0; l < t.length; l++)
5249
- t[l][s] = null;
5565
+ for (let n = 0; n < t.length; n++)
5566
+ t[n][s] = null;
5250
5567
  }
5251
5568
  }
5252
5569
  return t;
@@ -5257,7 +5574,7 @@ class T {
5257
5574
  e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length && T.iterateThrowColumns(e, o.children);
5258
5575
  }
5259
5576
  }
5260
- class bs {
5577
+ class Ps {
5261
5578
  constructor() {
5262
5579
  this.areaIdent = "body", this.rowSelectionModel = void 0;
5263
5580
  }
@@ -5327,17 +5644,17 @@ class bs {
5327
5644
  return !1;
5328
5645
  }
5329
5646
  }
5330
- const Y = class Y {
5331
- constructor(e = new le()) {
5647
+ const Z = class Z {
5648
+ constructor(e = new pe()) {
5332
5649
  this.headerGroupOptions = e;
5333
5650
  }
5334
- render(e, t, s, o, i, r, l) {
5335
- const n = r != null && r.data ? r.data : "";
5651
+ render(e, t, s, o, i, r, n) {
5652
+ const l = r != null && r.data ? r.data : "";
5336
5653
  if (r) {
5337
- const { toggle: a, visibility: c, closed: d } = r, u = a ? Y.toggleHeaderGroup : "";
5338
- this.addText(e, o, t, s, n, u), a && c !== "always" && this.addArrowDiv(l, e, !d, t, s, o, u);
5654
+ const { toggle: a, visibility: c, closed: d } = r, u = a ? Z.toggleHeaderGroup : "";
5655
+ this.addText(e, o, t, s, l, u), a && c !== "always" && this.addArrowDiv(n, e, !d, t, s, o, u);
5339
5656
  } else
5340
- this.addText(e, o, t, s, n, "");
5657
+ this.addText(e, o, t, s, l, "");
5341
5658
  }
5342
5659
  addText(e, t, s, o, i, r) {
5343
5660
  e.innerHTML = `<span
@@ -5347,30 +5664,30 @@ const Y = class Y {
5347
5664
  data-col-index="${o}"
5348
5665
  >${i}</span>`;
5349
5666
  }
5350
- addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", l) {
5351
- const n = e.createElement("div");
5352
- e.addClass(n, "ge-table-toggle-icon-div"), e.setStyle(n, "display", "inline-block"), e.setStyle(n, "position", ""), e.setStyle(n, "width", "20px"), e.setStyle(n, "background", "transparent"), e.setStyle(n, "cursor", "pointer"), e.setAttribute(n, "data-row-index", `${o}`), e.setAttribute(n, "data-col-index", `${i}`), e.setAttribute(n, "data-area", `${r}`), e.setAttribute(n, "data-ge-action", `${l}`);
5667
+ addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", n) {
5668
+ const l = e.createElement("div");
5669
+ e.addClass(l, "ge-table-toggle-icon-div"), e.setStyle(l, "display", "inline-block"), e.setStyle(l, "position", ""), e.setStyle(l, "width", "20px"), e.setStyle(l, "background", "transparent"), e.setStyle(l, "cursor", "pointer"), e.setAttribute(l, "data-row-index", `${o}`), e.setAttribute(l, "data-col-index", `${i}`), e.setAttribute(l, "data-area", `${r}`), e.setAttribute(l, "data-ge-action", `${n}`);
5353
5670
  let a;
5354
5671
  s ? a = this.headerGroupOptions.iconExpanded : a = this.headerGroupOptions.iconCollapsed;
5355
5672
  const c = a.content, d = e.createText(c);
5356
- e.appendChild(n, d), a.style && this.applyStyleString(e, n, a.style);
5673
+ e.appendChild(l, d), a.style && this.applyStyleString(e, l, a.style);
5357
5674
  for (const u of a.classes)
5358
- e.addClass(n, u);
5359
- return e.appendChild(t, n), n;
5675
+ e.addClass(l, u);
5676
+ return e.appendChild(t, l), l;
5360
5677
  }
5361
5678
  applyStyleString(e, t, s) {
5362
5679
  const o = s.split(";").map((i) => i.trim()).filter((i) => i);
5363
5680
  for (const i of o) {
5364
- const [r, l] = i.split(":");
5365
- e.setStyle(t, r.trim(), l.trim());
5681
+ const [r, n] = i.split(":");
5682
+ e.setStyle(t, r.trim(), n.trim());
5366
5683
  }
5367
5684
  }
5368
5685
  };
5369
- Y.toggleHeaderGroup = "toggleHeaderGroup";
5370
- let se = Y;
5371
- class ys {
5372
- constructor(e = "header", t, s = [], o, i = new le()) {
5373
- this.areaIdent = e, this.groups = t, this.columnDefs = s, this.defaultRowHeight = o, this.headerGroupOptions = i, this.gammaCells = !0, this.arr = [], this.groupExts = [], this.cellGroupExtCellRenderer = new se(this.headerGroupOptions), this.groupExts = T.buildGroupExts(t), this.init();
5686
+ Z.toggleHeaderGroup = "toggleHeaderGroup";
5687
+ let ne = Z;
5688
+ class Fs {
5689
+ constructor(e = "header", t, s = [], o, i = new pe()) {
5690
+ this.areaIdent = e, this.groups = t, this.columnDefs = s, this.defaultRowHeight = o, this.headerGroupOptions = i, this.gammaCells = !0, this.arr = [], this.groupExts = [], this.cellGroupExtCellRenderer = new ne(this.headerGroupOptions), this.groupExts = T.buildGroupExts(t), this.init();
5374
5691
  }
5375
5692
  init() {
5376
5693
  var e;
@@ -5468,21 +5785,21 @@ class ys {
5468
5785
  return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()), T.buildColumnDefs(this.groupExts);
5469
5786
  }
5470
5787
  }
5471
- class xs {
5788
+ class Ls {
5472
5789
  filterPredict(e, t, s = this.objectToString.bind(this)) {
5473
5790
  if (!e)
5474
5791
  return !1;
5475
5792
  if (!t)
5476
5793
  return !0;
5477
5794
  t = t.toLowerCase();
5478
- const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((d) => d !== o && d !== i && d !== ""), l = r.filter((d) => !d.startsWith(o) && !d.startsWith(i)), n = r.filter((d) => d.startsWith(o)).map((d) => d.replace(/\+/g, "")), a = r.filter((d) => d.startsWith(i)).map((d) => d.replace(/-/g, ""));
5479
- let c = !l.length;
5480
- for (let d = 0; d < l.length; d++)
5481
- (c || s(e).includes(l[d])) && (c = !0);
5795
+ const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((d) => d !== o && d !== i && d !== ""), n = r.filter((d) => !d.startsWith(o) && !d.startsWith(i)), l = r.filter((d) => d.startsWith(o)).map((d) => d.replace(/\+/g, "")), a = r.filter((d) => d.startsWith(i)).map((d) => d.replace(/-/g, ""));
5796
+ let c = !n.length;
5797
+ for (let d = 0; d < n.length; d++)
5798
+ (c || s(e).includes(n[d])) && (c = !0);
5482
5799
  if (!c)
5483
5800
  return !1;
5484
- for (let d = 0; d < n.length; d++)
5485
- if (!s(e).includes(n[d]))
5801
+ for (let d = 0; d < l.length; d++)
5802
+ if (!s(e).includes(l[d]))
5486
5803
  return !1;
5487
5804
  for (let d = 0; d < a.length; d++)
5488
5805
  if (s(e).includes(a[d]))
@@ -5495,15 +5812,15 @@ class xs {
5495
5812
  if (!t)
5496
5813
  return [...e];
5497
5814
  t = t.toLowerCase();
5498
- const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((c) => c !== o && c !== i && c !== ""), l = r.filter((c) => !c.startsWith(o) && !c.startsWith(i)), n = r.filter((c) => c.startsWith(o)).map((c) => c.replace(/\+/g, "")), a = r.filter((c) => c.startsWith(i)).map((c) => c.replace(/-/g, ""));
5815
+ const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((c) => c !== o && c !== i && c !== ""), n = r.filter((c) => !c.startsWith(o) && !c.startsWith(i)), l = r.filter((c) => c.startsWith(o)).map((c) => c.replace(/\+/g, "")), a = r.filter((c) => c.startsWith(i)).map((c) => c.replace(/-/g, ""));
5499
5816
  return e == null ? void 0 : e.filter((c) => {
5500
- let d = !l.length;
5501
- for (let u = 0; u < l.length; u++)
5502
- (d || s(c).includes(l[u])) && (d = !0);
5817
+ let d = !n.length;
5818
+ for (let u = 0; u < n.length; u++)
5819
+ (d || s(c).includes(n[u])) && (d = !0);
5503
5820
  if (!d)
5504
5821
  return !1;
5505
- for (let u = 0; u < n.length; u++)
5506
- if (!s(c).includes(n[u]))
5822
+ for (let u = 0; u < l.length; u++)
5823
+ if (!s(c).includes(l[u]))
5507
5824
  return !1;
5508
5825
  for (let u = 0; u < a.length; u++)
5509
5826
  if (s(c).includes(a[u]))
@@ -5522,20 +5839,20 @@ class xs {
5522
5839
  return t.join(" ").toLowerCase();
5523
5840
  }
5524
5841
  }
5525
- class ws {
5842
+ class Os {
5526
5843
  static bodyRenderer(e) {
5527
5844
  return new I(void 0, e, void 0);
5528
5845
  }
5529
5846
  }
5530
- class Ss {
5847
+ class $s {
5531
5848
  constructor(e, t = !0, s = !1) {
5532
5849
  this.property = e, this.skipCheckableCheck = t, this.readonly = s;
5533
5850
  }
5534
- render(e, t, s, o, i, r, l) {
5851
+ render(e, t, s, o, i, r, n) {
5535
5852
  if (this.readonly || this.skipCheckableCheck || i.isRowCheckable(t)) {
5536
- l.addClass(e, "ge-table-row-checkbox-div");
5537
- const n = i.getRowByIndex(t), c = i.getValueByT(n, this.property) === !0 ? "checked" : "", d = this.readonly ? " readonly " : "";
5538
- if (l.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
5853
+ n.addClass(e, "ge-table-row-checkbox-div");
5854
+ const l = i.getRowByIndex(t), c = i.getValueByT(l, this.property) === !0 ? "checked" : "", d = this.readonly ? " readonly " : "";
5855
+ if (n.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
5539
5856
  <input
5540
5857
  type="checkbox"
5541
5858
  data-area="${o}"
@@ -5547,17 +5864,17 @@ class Ss {
5547
5864
  ${d}
5548
5865
  class="ge-input-checkbox">`, !this.readonly) {
5549
5866
  const u = e.querySelector(".ge-input-checkbox");
5550
- u && u.addEventListener("click", (f, g) => (n[this.property] = !n[this.property], !0));
5867
+ u && u.addEventListener("click", (f, p) => (l[this.property] = !l[this.property], !0));
5551
5868
  }
5552
5869
  }
5553
5870
  }
5554
5871
  }
5555
- class Cs {
5556
- render(e, t, s, o, i, r, l) {
5872
+ class _s {
5873
+ render(e, t, s, o, i, r, n) {
5557
5874
  r && (e.innerText = new Date(r).toISOString());
5558
5875
  }
5559
5876
  }
5560
- class vs {
5877
+ class Bs {
5561
5878
  constructor() {
5562
5879
  this.formatter = new Intl.DateTimeFormat("de-DE", {
5563
5880
  year: "numeric",
@@ -5565,37 +5882,37 @@ class vs {
5565
5882
  day: "2-digit"
5566
5883
  });
5567
5884
  }
5568
- render(e, t, s, o, i, r, l) {
5885
+ render(e, t, s, o, i, r, n) {
5569
5886
  if (r) {
5570
- let n = "";
5887
+ let l = "";
5571
5888
  try {
5572
- n = this.formatter.format(new Date(r));
5889
+ l = this.formatter.format(new Date(r));
5573
5890
  } catch {
5574
- n = r;
5891
+ l = r;
5575
5892
  }
5576
5893
  e.innerHTML = `
5577
5894
  <div class="ge-table-label-div" data-row-index="${t}" data-col-index="${s}" data-area="${o}" style="position: relative; background: transparent; width: 100%; height: 100%;">
5578
- <div class="ge-table-label" data-row-index="${t}" data-col-index="${s}" data-area="${o}">${n}</div>
5895
+ <div class="ge-table-label" data-row-index="${t}" data-col-index="${s}" data-area="${o}">${l}</div>
5579
5896
  </div>`;
5580
5897
  }
5581
5898
  }
5582
5899
  }
5583
- class As {
5584
- render(e, t, s, o, i, r, l) {
5900
+ class Hs {
5901
+ render(e, t, s, o, i, r, n) {
5585
5902
  r && (e.innerText = new Date(r).toLocaleDateString());
5586
5903
  }
5587
5904
  }
5588
- class Rs {
5589
- render(e, t, s, o, i, r, l) {
5905
+ class Vs {
5906
+ render(e, t, s, o, i, r, n) {
5590
5907
  r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
5591
5908
  }
5592
5909
  }
5593
- class Es {
5910
+ class Ws {
5594
5911
  constructor(e = 100, t = !1) {
5595
5912
  this.maxValue = e, this.labelVisible = t;
5596
5913
  }
5597
- render(e, t, s, o, i, r, l) {
5598
- if (l.addClass(e, "ge-progressbar-div"), !isNaN(r)) {
5914
+ render(e, t, s, o, i, r, n) {
5915
+ if (n.addClass(e, "ge-progressbar-div"), !isNaN(r)) {
5599
5916
  const a = Number(r) * 100 / this.maxValue, c = this.labelVisible ? Math.round(a) + "%" : "";
5600
5917
  e.innerHTML = `
5601
5918
  <div class="ge-table-label-div"
@@ -5620,31 +5937,34 @@ class Es {
5620
5937
  }
5621
5938
  }
5622
5939
  }
5623
- class Ms {
5624
- render(e, t, s, o, i, r, l) {
5940
+ class Ns {
5941
+ render(e, t, s, o, i, r, n) {
5625
5942
  r === "true" || r === !0 ? e.innerHTML = '<span class="ge-true-text-color">✅</span>' : r === "false" || r === !1 ? e.innerHTML = '<span class="ge-false-text-color">❌</span>' : e.innerText = "";
5626
5943
  }
5627
5944
  }
5628
- class Ts {
5629
- render(e, t, s, o, i, r, l) {
5945
+ class Gs {
5946
+ render(e, t, s, o, i, r, n) {
5630
5947
  r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
5631
5948
  }
5632
5949
  }
5633
- class Is {
5950
+ class zs {
5634
5951
  constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
5635
5952
  this.min = e, this.max = t;
5636
5953
  }
5637
- render(e, t, s, o, i, r, l) {
5638
- r && (e.innerText = r, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && l.addClass(e, "ge-cell-error"));
5954
+ render(e, t, s, o, i, r, n) {
5955
+ r && (e.innerHTML = `
5956
+ <div class="ge-table-label-div">
5957
+ <div class="ge-table-label">${r}</div>
5958
+ </div>`, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && n.addClass(e, "ge-cell-error"));
5639
5959
  }
5640
5960
  }
5641
- class ks {
5961
+ class js {
5642
5962
  constructor(e) {
5643
5963
  this.property = e;
5644
5964
  }
5645
- render(e, t, s, o, i, r, l) {
5646
- l.addClass(e, "ge-star-rating-div");
5647
- const n = i.getRowByIndex(t), a = +("" + i.getValueByT(n, this.property));
5965
+ render(e, t, s, o, i, r, n) {
5966
+ n.addClass(e, "ge-star-rating-div");
5967
+ const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
5648
5968
  if (!isNaN(a)) {
5649
5969
  const c = [];
5650
5970
  for (let u = 0; u < a; u++)
@@ -5657,13 +5977,26 @@ class ks {
5657
5977
  }
5658
5978
  }
5659
5979
  }
5660
- class Ds {
5980
+ class Us {
5981
+ render(e, t, s, o, i, r, n) {
5982
+ if (r != null && r.length) {
5983
+ const l = n.createElement("div");
5984
+ n.addClass(l, "ge-table-label-div"), n.appendChild(e, l);
5985
+ const a = n.createElement("div");
5986
+ n.addClass(a, "ge-table-label"), n.appendChild(l, a);
5987
+ const c = n.createText(r.join(", "));
5988
+ n.appendChild(a, c);
5989
+ } else
5990
+ e.innerText = "";
5991
+ }
5992
+ }
5993
+ class Ys {
5661
5994
  constructor(e, t = 100, s = !1) {
5662
5995
  this.property = e, this.maxValue = t, this.labelVisible = s;
5663
5996
  }
5664
- render(e, t, s, o, i, r, l) {
5665
- l.addClass(e, "ge-star-rating-div");
5666
- const n = i.getRowByIndex(t), a = +("" + i.getValueByT(n, this.property));
5997
+ render(e, t, s, o, i, r, n) {
5998
+ n.addClass(e, "ge-star-rating-div");
5999
+ const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
5667
6000
  if (!isNaN(a)) {
5668
6001
  const c = a * 100 / this.maxValue, d = this.labelVisible ? Math.round(c) + "%" : "";
5669
6002
  e.innerHTML = `
@@ -5689,8 +6022,8 @@ class Ds {
5689
6022
  }
5690
6023
  }
5691
6024
  }
5692
- class Fs {
5693
- render(e, t, s, o, i, r, l) {
6025
+ class Ks {
6026
+ render(e, t, s, o, i, r, n) {
5694
6027
  if (r) {
5695
6028
  e.innerHTML = `
5696
6029
  <div
@@ -5704,12 +6037,12 @@ class Fs {
5704
6037
  data-row-index="${t}"
5705
6038
  data-col-index="${s}"
5706
6039
  data-area="${o}">${r}</div></div>`;
5707
- const n = Number(r);
5708
- n > 0 ? l.addClass(e, "ge-positive-text-color") : n < 0 && l.addClass(e, "ge-negative-text-color");
6040
+ const l = Number(r);
6041
+ l > 0 ? n.addClass(e, "ge-positive-text-color") : l < 0 && n.addClass(e, "ge-negative-text-color");
5709
6042
  }
5710
6043
  }
5711
6044
  }
5712
- class Te {
6045
+ class He {
5713
6046
  constructor(e, t, s, o, i, r) {
5714
6047
  this.action = e, this.area = t, this.areaModel = s, this.rowIndex = o, this.columnIndex = i, this.id = r;
5715
6048
  }
@@ -5719,14 +6052,14 @@ class $ {
5719
6052
  this.action = e, this.label = t, this.icon = s, this.elementClass = o, this.elementType = i, this.enabled = r;
5720
6053
  }
5721
6054
  }
5722
- class xt {
6055
+ class Pt {
5723
6056
  constructor(e, t) {
5724
6057
  this.actionEventListener = e, this.crudActions = t;
5725
6058
  }
5726
- render(e, t, s, o, i, r, l) {
5727
- l.addClass(e, "ge-table-row-action-div");
5728
- const n = r, c = this.getCrudActions(r).map(
5729
- (d) => d.elementType === "button" ? this.buildButtonHtml(d, o, t, s, n) : this.buildLinkHtml(d, o, t, s, n)
6059
+ render(e, t, s, o, i, r, n) {
6060
+ n.addClass(e, "ge-table-row-action-div");
6061
+ const l = r, c = this.getCrudActions(r).map(
6062
+ (d) => d.elementType === "button" ? this.buildButtonHtml(d, o, t, s, l) : this.buildLinkHtml(d, o, t, s, l)
5730
6063
  );
5731
6064
  e.innerHTML = c.join(""), this.addClickEventListeners(e, o, i);
5732
6065
  }
@@ -5764,19 +6097,19 @@ class xt {
5764
6097
  addClickEventListeners(e, t, s) {
5765
6098
  e.querySelectorAll(".ge-table-cell-action").forEach((i) => {
5766
6099
  i.addEventListener("click", (r) => {
5767
- const l = r.target;
5768
- if (l) {
5769
- const n = this.createActionEvent(l, s);
5770
- n && this.actionEventListener.onActionEvent(n);
6100
+ const n = r.target;
6101
+ if (n) {
6102
+ const l = this.createActionEvent(n, s);
6103
+ l && this.actionEventListener.onActionEvent(l);
5771
6104
  }
5772
6105
  });
5773
6106
  });
5774
6107
  }
5775
6108
  createActionEvent(e, t) {
5776
- const s = e.getAttribute("data-area"), o = e.getAttribute("data-row-index"), i = e.getAttribute("data-col-index"), r = e.getAttribute("data-action") ?? "unknown", l = e.getAttribute("data-id") ?? "unknown";
6109
+ const s = e.getAttribute("data-area"), o = e.getAttribute("data-row-index"), i = e.getAttribute("data-col-index"), r = e.getAttribute("data-action") ?? "unknown", n = e.getAttribute("data-id") ?? "unknown";
5777
6110
  if (s && o && i) {
5778
- const n = J(s), a = Number(o), c = Number(i);
5779
- return new Te(r, n, t, a, c, l);
6111
+ const l = Q(s), a = Number(o), c = Number(i);
6112
+ return new He(r, l, t, a, c, n);
5780
6113
  }
5781
6114
  return null;
5782
6115
  }
@@ -5784,32 +6117,32 @@ class xt {
5784
6117
  return Array.isArray(e) && e.every((t) => t instanceof $) ? e : this.crudActions;
5785
6118
  }
5786
6119
  }
5787
- const Ps = function(h, e, t) {
6120
+ const Xs = function(h, e, t) {
5788
6121
  return h ? Number(h) : "";
5789
6122
  };
5790
- class Ie {
6123
+ class Ve {
5791
6124
  constructor(e) {
5792
6125
  this.options = e;
5793
6126
  }
5794
6127
  static create(e) {
5795
- return new Ie(
5796
- e.map((t) => new mt(t, t))
6128
+ return new Ve(
6129
+ e.map((t) => new It(t, t))
5797
6130
  );
5798
6131
  }
5799
- render(e, t, s, o, i, r, l) {
6132
+ render(e, t, s, o, i, r, n) {
5800
6133
  if (i.isEditable(t, s)) {
5801
- l.addClass(e, "ge-table-row-select-div");
5802
- const n = i.getValueAt(t, s);
6134
+ n.addClass(e, "ge-table-row-select-div");
6135
+ const l = i.getValueAt(t, s);
5803
6136
  let a = [];
5804
6137
  for (let d of this.options) {
5805
- const u = d.value === n ? " selected " : "";
6138
+ const u = d.value === l ? " selected " : "";
5806
6139
  a.push(`<option value="${d.value}" ${u}>${d.label}</option>`);
5807
6140
  }
5808
6141
  const c = a.join("");
5809
6142
  e.innerHTML = `
5810
6143
  <select
5811
6144
  type="text"
5812
- value="${n}"
6145
+ value="${l}"
5813
6146
  autofocus
5814
6147
  data-listen="change"
5815
6148
  data-area="${o}"
@@ -5821,7 +6154,7 @@ class Ie {
5821
6154
  }
5822
6155
  }
5823
6156
  }
5824
- class Ls extends ne {
6157
+ class Js extends ue {
5825
6158
  constructor(e) {
5826
6159
  super("row", "multi"), this.model = e;
5827
6160
  }
@@ -5904,39 +6237,39 @@ class Ls extends ne {
5904
6237
  this.isSelected(e, 0) ? this.unselectRow(e) : this.selectRow(e);
5905
6238
  }
5906
6239
  }
5907
- class $s {
6240
+ class qs {
5908
6241
  constructor(e, t, s) {
5909
6242
  this.r = e, this.g = t, this.b = s;
5910
6243
  }
5911
6244
  }
5912
- class Se {
6245
+ class Te {
5913
6246
  constructor(e, t, s, o) {
5914
6247
  this.minValue = e, this.minColor = t, this.maxValue = s, this.maxColor = o;
5915
6248
  }
5916
6249
  }
5917
- class j {
6250
+ class Y {
5918
6251
  static normalize(e, t, s, o = 0, i = 1) {
5919
6252
  return (e - t) / (s - t) * (i - o) + o;
5920
6253
  }
5921
6254
  static getTwoColorGradientRGB(e, t) {
5922
- const s = j.normalize(e, t.minValue, t.maxValue, 0, 1), o = t.maxColor.r - t.minColor.r, i = t.maxColor.g - t.minColor.g, r = t.maxColor.b - t.minColor.b, l = o * s + t.minColor.r, n = i * s + t.minColor.g, a = r * s + t.minColor.b;
5923
- return `rgb(${Math.round(l)}, ${Math.round(n)}, ${Math.round(a)})`;
6255
+ const s = Y.normalize(e, t.minValue, t.maxValue, 0, 1), o = t.maxColor.r - t.minColor.r, i = t.maxColor.g - t.minColor.g, r = t.maxColor.b - t.minColor.b, n = o * s + t.minColor.r, l = i * s + t.minColor.g, a = r * s + t.minColor.b;
6256
+ return `rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(a)})`;
5924
6257
  }
5925
6258
  static getThreeColorGradientRGB(e, t) {
5926
- return e < t.middleValue ? j.getTwoColorGradientRGB(e, new Se(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? j.getTwoColorGradientRGB(e, new Se(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
6259
+ return e < t.middleValue ? Y.getTwoColorGradientRGB(e, new Te(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? Y.getTwoColorGradientRGB(e, new Te(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
5927
6260
  }
5928
6261
  }
5929
- class Os {
6262
+ class Zs {
5930
6263
  constructor(e, t, s, o, i, r) {
5931
6264
  this.minValue = e, this.minColor = t, this.middleValue = s, this.middleColor = o, this.maxValue = i, this.maxColor = r;
5932
6265
  }
5933
6266
  }
5934
- class wt {
5935
- constructor(e = !0, t = !0, s = (r, l) => r * 10 + 10, o = 50, i = 450) {
6267
+ class Ft {
6268
+ constructor(e = !0, t = !0, s = (r, n) => r * 10 + 10, o = 50, i = 450) {
5936
6269
  this.autoCalc = e, this.takeHeaderLabelsIntoAccount = t, this.charCountToWidth = s, this.minWidth = o, this.maxWidth = i;
5937
6270
  }
5938
6271
  }
5939
- class St {
6272
+ class Lt {
5940
6273
  constructor(e) {
5941
6274
  this.object = e;
5942
6275
  }
@@ -5974,21 +6307,21 @@ class St {
5974
6307
  </table>`;
5975
6308
  }
5976
6309
  generateTableRows(e, t = "") {
5977
- const s = [], o = (i, r = null, l = !1) => `
6310
+ const s = [], o = (i, r = null, n = !1) => `
5978
6311
  <tr>
5979
- <td${l ? ' class="ge-table-crud-object-view-object-child"' : ""}>${i}</td>
6312
+ <td${n ? ' class="ge-table-crud-object-view-object-child"' : ""}>${i}</td>
5980
6313
  <td>${r ?? ""}</td>
5981
6314
  </tr>`;
5982
6315
  for (const i in e) {
5983
6316
  if (!e.hasOwnProperty(i))
5984
6317
  continue;
5985
- const r = e[i], l = this.getCombinedKey(t, i), n = this.getLabel(l);
5986
- typeof r == "object" && r !== null ? (s.push(o(n, null, !0)), s.push(this.generateTableRows(r, l))) : s.push(o(n, String(r)));
6318
+ const r = e[i], n = this.getCombinedKey(t, i), l = this.getLabel(n);
6319
+ typeof r == "object" && r !== null ? (s.push(o(l, null, !0)), s.push(this.generateTableRows(r, n))) : s.push(o(l, String(r)));
5987
6320
  }
5988
6321
  return s.join("");
5989
6322
  }
5990
6323
  }
5991
- class Q {
6324
+ class oe {
5992
6325
  constructor(e, t, s = "Edit Item") {
5993
6326
  this.idKey = e, this.dialogTitle = s, this.object = { ...t };
5994
6327
  }
@@ -6007,8 +6340,8 @@ class Q {
6007
6340
  const s = t.querySelector(".ge-table-dialog-footer-save-button"), o = t.querySelector(".ge-table-dialog-footer-cancel-button");
6008
6341
  s.addEventListener("click", () => {
6009
6342
  const i = t.querySelector("form"), r = new FormData(i);
6010
- for (const [l, n] of r)
6011
- this.setNestedValue(this.object, l, n);
6343
+ for (const [n, l] of r)
6344
+ this.setNestedValue(this.object, n, l);
6012
6345
  e(this.object), t.close(), t.remove();
6013
6346
  }), o.addEventListener("click", () => {
6014
6347
  t.close(), t.remove();
@@ -6019,15 +6352,15 @@ class Q {
6019
6352
  for (const o in e) {
6020
6353
  if (!e.hasOwnProperty(o) || this.idKey === o)
6021
6354
  continue;
6022
- const i = this.getCombinedKey(t, o), r = this.getLabel(i), l = e[o];
6023
- if (typeof l == "object" && l !== null)
6024
- s.push(this.generateForm(l, i));
6355
+ const i = this.getCombinedKey(t, o), r = this.getLabel(i), n = e[o];
6356
+ if (typeof n == "object" && n !== null)
6357
+ s.push(this.generateForm(n, i));
6025
6358
  else {
6026
- let n;
6027
- typeof l == "string" ? n = `<input type="text" id="${i}" name="${i}" value="${l}" />` : typeof l == "number" ? n = `<input type="number" id="${i}" name="${i}" value="${l}" />` : typeof l == "boolean" ? n = `<input type="checkbox" id="${i}" name="${i}" ${l ? "checked" : ""} />` : n = `<input type="text" id="${i}" name="${i}" value="${l}" />`, s.push(`
6359
+ let l;
6360
+ typeof n == "string" ? l = `<input type="text" id="${i}" name="${i}" value="${n}" />` : typeof n == "number" ? l = `<input type="number" id="${i}" name="${i}" value="${n}" />` : typeof n == "boolean" ? l = `<input type="checkbox" id="${i}" name="${i}" ${n ? "checked" : ""} />` : l = `<input type="text" id="${i}" name="${i}" value="${n}" />`, s.push(`
6028
6361
  <div class="form-field">
6029
6362
  <label for="${i}">${r}</label>
6030
- ${n}
6363
+ ${l}
6031
6364
  </div>
6032
6365
  `);
6033
6366
  }
@@ -6070,7 +6403,7 @@ class Q {
6070
6403
  return e.replace(/\./g, " ");
6071
6404
  }
6072
6405
  }
6073
- class Ct {
6406
+ class Ot {
6074
6407
  constructor() {
6075
6408
  this.urls = {
6076
6409
  list: {
@@ -6086,7 +6419,7 @@ class Ct {
6086
6419
  ], this.tableActions = [
6087
6420
  new $("CREATE", "Create", "", "", "button"),
6088
6421
  new $("DELETE_SELECTED", "Delete Selected", "", "", "button")
6089
- ], this.autoAddActionColumn = !0, this.columnWidths = new wt(), this.calcFixedRightColumnCount = (e) => e > 6 ? 1 : 0, this.getHeadersInit = () => ({}), this.getIdKey = () => "id", this.getIdByObject = (e) => (this.getIdKey() ?? "id") in e ? e.id : e, this.fetchList = (e) => {
6422
+ ], this.autoAddActionColumn = !0, this.columnWidths = new Ft(), this.calcFixedRightColumnCount = (e) => e > 6 ? 1 : 0, this.getHeadersInit = () => ({}), this.getIdKey = () => "id", this.getIdByObject = (e) => (this.getIdKey() ?? "id") in e ? e.id : e, this.fetchList = (e) => {
6090
6423
  const t = e.getHeadersInit ? e.getHeadersInit() : {};
6091
6424
  let s = e.urls.list.url, o = e.urls.list.method ?? "GET";
6092
6425
  return fetch(s, {
@@ -6094,102 +6427,102 @@ class Ct {
6094
6427
  method: o
6095
6428
  }).then((i) => i.json());
6096
6429
  }, this.fetchItem = (e, t) => {
6097
- var r, l;
6430
+ var r, n;
6098
6431
  const s = e.getHeadersInit ? e.getHeadersInit() : {};
6099
6432
  let o = ((r = e.urls.read) == null ? void 0 : r.url) ?? "";
6100
6433
  o = o.replace("{id}", t);
6101
- let i = ((l = e.urls.read) == null ? void 0 : l.method) ?? "GET";
6434
+ let i = ((n = e.urls.read) == null ? void 0 : n.method) ?? "GET";
6102
6435
  return fetch(o, {
6103
6436
  headers: s,
6104
6437
  method: i
6105
- }).then((n) => n.json());
6438
+ }).then((l) => l.json());
6106
6439
  }, this.updateItem = (e, t, s) => {
6107
- var l, n;
6440
+ var n, l;
6108
6441
  const o = e.getHeadersInit ? e.getHeadersInit() : {};
6109
- let i = ((l = e.urls.update) == null ? void 0 : l.url) ?? "";
6442
+ let i = ((n = e.urls.update) == null ? void 0 : n.url) ?? "";
6110
6443
  i = i.replace("{id}", t);
6111
- let r = ((n = e.urls.update) == null ? void 0 : n.method) ?? "PATCH";
6444
+ let r = ((l = e.urls.update) == null ? void 0 : l.method) ?? "PATCH";
6112
6445
  return fetch(i, {
6113
6446
  headers: o,
6114
6447
  method: r,
6115
6448
  body: JSON.stringify(s)
6116
6449
  }).then((a) => a.json());
6117
6450
  }, this.createItem = (e, t) => {
6118
- var r, l;
6451
+ var r, n;
6119
6452
  const s = e.getHeadersInit ? e.getHeadersInit() : {};
6120
- let o = ((r = e.urls.create) == null ? void 0 : r.url) ?? "", i = ((l = e.urls.create) == null ? void 0 : l.method) ?? "POST";
6453
+ let o = ((r = e.urls.create) == null ? void 0 : r.url) ?? "", i = ((n = e.urls.create) == null ? void 0 : n.method) ?? "POST";
6121
6454
  return fetch(o, {
6122
6455
  headers: s,
6123
6456
  method: i,
6124
6457
  body: JSON.stringify(t)
6125
- }).then((n) => n.json());
6458
+ }).then((l) => l.json());
6126
6459
  }, this.deleteItem = (e, t) => {
6127
- var r, l;
6460
+ var r, n;
6128
6461
  const s = e.getHeadersInit ? e.getHeadersInit() : {};
6129
6462
  let o = ((r = e.urls.delete) == null ? void 0 : r.url) ?? "";
6130
6463
  o = o.replace("{id}", t);
6131
- let i = ((l = e.urls.delete) == null ? void 0 : l.method) ?? "GET";
6464
+ let i = ((n = e.urls.delete) == null ? void 0 : n.method) ?? "GET";
6132
6465
  return fetch(o, {
6133
6466
  headers: s,
6134
6467
  method: i
6135
- }).then((n) => n.json());
6468
+ }).then((l) => l.json());
6136
6469
  }, this.getEmptyItem = () => {
6137
6470
  };
6138
6471
  }
6139
6472
  }
6140
- class _s {
6473
+ class Qs {
6141
6474
  constructor() {
6142
- this.crudOptions = new Ct(), this.listenActionEvent = (e) => {
6475
+ this.crudOptions = new Ot(), this.listenActionEvent = (e) => {
6143
6476
  };
6144
6477
  }
6145
6478
  createTableModel(e, t, s = (i) => {
6146
6479
  }, o = (i) => {
6147
6480
  }) {
6148
6481
  this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
6149
- var r, l, n, a;
6482
+ var r, n, l, a;
6150
6483
  if (t.rows = i, i != null && i.length) {
6151
- const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((x) => x.property) : this.extractProperties(i[0]), d = new ne("row", "multi"), u = () => d;
6484
+ const c = (r = t.columnDefs) != null && r.length ? t.columnDefs.map((x) => x.property) : this.extractProperties(i[0]), d = new ue("row", "multi"), u = () => d;
6152
6485
  this.tableOptions = {
6153
- ...new U(),
6486
+ ...new X(),
6154
6487
  ...t.tableOptions,
6155
6488
  hoverColumnVisible: !1,
6156
6489
  getSelectionModel: u
6157
6490
  };
6158
- const f = this.calcAutoColumnWidths(i, c), g = (l = t.columnDefs) != null && l.length ? t.columnDefs : c.map((x, S) => new B(x, x.toUpperCase(), new y(f[S], "px")));
6159
- if ((n = e == null ? void 0 : e.columnWidths) != null && n.autoCalc)
6160
- for (let x = 0; x < g.length; x++) {
6161
- const S = g[x];
6491
+ const f = this.calcAutoColumnWidths(i, c), p = (n = t.columnDefs) != null && n.length ? t.columnDefs : c.map((x, S) => new H(x, x.toUpperCase(), new y(f[S], "px")));
6492
+ if ((l = e == null ? void 0 : e.columnWidths) != null && l.autoCalc)
6493
+ for (let x = 0; x < p.length; x++) {
6494
+ const S = p[x];
6162
6495
  S.width = new y(f[x], "px");
6163
6496
  }
6164
6497
  if (e.autoAddActionColumn) {
6165
- let x = new B(
6498
+ let x = new H(
6166
6499
  "id",
6167
6500
  "Actions",
6168
- dt,
6501
+ vt,
6169
6502
  new I(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
6170
6503
  );
6171
6504
  x.rendererMap = new I(
6172
6505
  void 0,
6173
- new xt(this, e.singleRowActions),
6506
+ new Pt(this, e.singleRowActions),
6174
6507
  void 0
6175
- ), g.push(x);
6508
+ ), p.push(x);
6176
6509
  }
6177
- const m = 0, p = e.calcFixedRightColumnCount(g.length);
6510
+ const m = 0, g = e.calcFixedRightColumnCount(p.length);
6178
6511
  this.tableModel = _.buildByTypedRowsParam({
6179
6512
  rows: i,
6180
- columnDefs: g,
6513
+ columnDefs: p,
6181
6514
  tableOptions: this.tableOptions,
6182
6515
  fixedLeftColumnCount: m,
6183
- fixedRightColumnCount: p
6516
+ fixedRightColumnCount: g
6184
6517
  }), this.tableModel.getSelectionModel = u, this.bodyModel = (a = this.tableModel) == null ? void 0 : a.getBodyModel();
6185
- const b = new gt(this.tableModel, this.tableOptions);
6518
+ const b = new Mt(this.tableModel, this.tableOptions);
6186
6519
  s(b);
6187
6520
  }
6188
6521
  });
6189
6522
  }
6190
6523
  openDialogForCreate() {
6191
6524
  if (this.bodyModel) {
6192
- const e = new Te("CREATE", "body", this.bodyModel, -1, -1, null);
6525
+ const e = new He("CREATE", "body", this.bodyModel, -1, -1, null);
6193
6526
  this.onActionEvent(e);
6194
6527
  }
6195
6528
  }
@@ -6197,23 +6530,23 @@ class _s {
6197
6530
  var t, s, o, i;
6198
6531
  if (this.listenActionEvent && this.listenActionEvent(e), e.action === "VIEW") {
6199
6532
  let r = e.id;
6200
- (t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((l) => (console.info(l), new St(l).openDialog(), l));
6533
+ (t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new Lt(n).openDialog(), n));
6201
6534
  } else if (e.action === "EDIT") {
6202
6535
  let r = e.id;
6203
- const l = this.crudOptions.getIdKey() ?? "id";
6204
- (s = this.crudOptions) == null || s.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new Q(
6205
- l,
6206
- n
6536
+ const n = this.crudOptions.getIdKey() ?? "id";
6537
+ (s = this.crudOptions) == null || s.fetchItem(this.crudOptions, r).then((l) => (console.info(l), new oe(
6538
+ n,
6539
+ l
6207
6540
  ).openDialog((a) => {
6208
6541
  console.info(a), this.crudOptions.updateItem(this.crudOptions, r, a);
6209
- }), n));
6542
+ }), l));
6210
6543
  } else if (e.action === "CLONE") {
6211
6544
  let r = e.id;
6212
- const l = this.crudOptions.getIdKey() ?? "id";
6213
- (o = this.crudOptions) == null || o.fetchItem(this.crudOptions, r).then((n) => {
6214
- const a = JSON.parse(JSON.stringify(n));
6215
- return new Q(
6216
- l,
6545
+ const n = this.crudOptions.getIdKey() ?? "id";
6546
+ (o = this.crudOptions) == null || o.fetchItem(this.crudOptions, r).then((l) => {
6547
+ const a = JSON.parse(JSON.stringify(l));
6548
+ return new oe(
6549
+ n,
6217
6550
  a,
6218
6551
  "Clone Item"
6219
6552
  ).openDialog((c) => {
@@ -6221,19 +6554,19 @@ class _s {
6221
6554
  }), a;
6222
6555
  });
6223
6556
  } else if (e.action === "CREATE") {
6224
- const r = this.crudOptions.getIdKey() ?? "id", l = JSON.parse(JSON.stringify(this.crudOptions.getEmptyItem()));
6225
- return new Q(
6557
+ const r = this.crudOptions.getIdKey() ?? "id", n = JSON.parse(JSON.stringify(this.crudOptions.getEmptyItem()));
6558
+ return new oe(
6226
6559
  r,
6227
- l,
6560
+ n,
6228
6561
  "Create Item"
6229
- ).openDialog((n) => {
6230
- console.info(n), this.crudOptions.createItem(this.crudOptions, l);
6231
- }), l;
6562
+ ).openDialog((l) => {
6563
+ console.info(l), this.crudOptions.createItem(this.crudOptions, n);
6564
+ }), n;
6232
6565
  } else if (e.action === "DELETE") {
6233
6566
  let r = e.id;
6234
- (i = this.crudOptions) == null || i.deleteItem(this.crudOptions, r).then((l) => {
6235
- var n, a, c, d, u;
6236
- return (n = this.bodyModel) == null || n.filterRowsByPredict((f) => f.id != r), (c = (a = this.tableModel) == null ? void 0 : a.getTableScope()) == null || c.clearSelection(!0), (u = (d = this.tableModel) == null ? void 0 : d.getTableScope()) == null || u.repaintHard(), l;
6567
+ (i = this.crudOptions) == null || i.deleteItem(this.crudOptions, r).then((n) => {
6568
+ var l, a, c, d, u;
6569
+ return (l = this.bodyModel) == null || l.filterRowsByPredict((f) => f.id != r), (c = (a = this.tableModel) == null ? void 0 : a.getTableScope()) == null || c.clearSelection(!0), (u = (d = this.tableModel) == null ? void 0 : d.getTableScope()) == null || u.repaintHard(), n;
6237
6570
  });
6238
6571
  }
6239
6572
  }
@@ -6245,20 +6578,20 @@ class _s {
6245
6578
  const i = e.length ?? 0, r = new Array(o).fill(0);
6246
6579
  for (let c = 0; c < i; c++)
6247
6580
  for (let d = 0; d < o; d++) {
6248
- const u = t[d], f = this.getValueByT(e[c], u), g = (f == null ? void 0 : f.toString().length) || 0;
6249
- g > r[d] && (r[d] = g);
6581
+ const u = t[d], f = this.getValueByT(e[c], u), p = (f == null ? void 0 : f.toString().length) || 0;
6582
+ p > r[d] && (r[d] = p);
6250
6583
  }
6251
6584
  if (this.crudOptions.columnWidths.takeHeaderLabelsIntoAccount)
6252
6585
  for (let c = 0; c < o; c++) {
6253
6586
  const d = s[c].length || 0;
6254
6587
  d > r[c] && (r[c] = d);
6255
6588
  }
6256
- const l = this.crudOptions.columnWidths.minWidth, n = this.crudOptions.columnWidths.maxWidth;
6589
+ const n = this.crudOptions.columnWidths.minWidth, l = this.crudOptions.columnWidths.maxWidth;
6257
6590
  return r.map((c, d) => Math.min(
6258
- n,
6591
+ l,
6259
6592
  Math.max(
6260
6593
  this.crudOptions.columnWidths.charCountToWidth(c, d),
6261
- l
6594
+ n
6262
6595
  )
6263
6596
  ));
6264
6597
  }
@@ -6278,173 +6611,189 @@ class _s {
6278
6611
  return s;
6279
6612
  }
6280
6613
  }
6281
- class Bs {
6614
+ class eo {
6282
6615
  constructor(e, t) {
6283
6616
  this.method = e, this.url = t;
6284
6617
  }
6285
6618
  }
6286
6619
  export {
6287
- ae as AbstractAreaModel,
6288
- Te as ActionEvent,
6289
- xt as ActionsCellRenderer,
6290
- Ce as AnyPropertyType,
6291
- ps as AreaMapFactory,
6292
- bs as AreaModel,
6293
- D as AreaModelArrayOfArrays,
6294
- ys as AreaModelCellGroups,
6620
+ ge as AbstractAreaModel,
6621
+ He as ActionEvent,
6622
+ Pt as ActionsCellRenderer,
6623
+ Fe as AnyPropertyType,
6624
+ Ts as AreaMapFactory,
6625
+ Ps as AreaModel,
6626
+ P as AreaModelArrayOfArrays,
6627
+ Fs as AreaModelCellGroups,
6295
6628
  F as AreaModelHidden,
6296
- pt as AreaModelObjectArray,
6297
- xe as AreaModelObjectArrayWithColumndefs,
6298
- me as AreaModelTree,
6629
+ Et as AreaModelObjectArray,
6630
+ Ee as AreaModelObjectArrayWithColumndefs,
6631
+ ve as AreaModelTree,
6299
6632
  I as AreaObjectMap,
6300
- G as ArrayPropertyType,
6301
- ms as AutoRestoreOptions,
6302
- At as AvoidDoubleExecution,
6303
- Le as BooleanPropertyType,
6304
- bt as CellGroup,
6305
- yt as CellGroupExt,
6306
- se as CellGroupExtCellRenderer,
6633
+ B as ArrayPropertyType,
6634
+ Ds as AutoRestoreOptions,
6635
+ _t as AvoidDoubleExecution,
6636
+ je as BooleanPropertyType,
6637
+ kt as CellGroup,
6638
+ Dt as CellGroupExt,
6639
+ ne as CellGroupExtCellRenderer,
6307
6640
  R as CellRange,
6308
6641
  T as CellgroupFactory,
6309
- Ss as CheckboxBooleanPropertyCellRenderer,
6310
- we as CheckboxCellRenderer,
6311
- us as CheckboxColumnDef,
6312
- ut as CheckboxModel,
6313
- is as ChunkData,
6314
- Xe as ColAndRowspanModel,
6315
- Ge as CollapsedExpandedData,
6316
- $s as ColorRgb,
6317
- B as ColumnDef,
6318
- wt as ColumnWidths,
6319
- Be as ConvenienceDomService,
6320
- X as CopyService,
6642
+ $s as CheckboxBooleanPropertyCellRenderer,
6643
+ Me as CheckboxCellRenderer,
6644
+ Ms as CheckboxColumnDef,
6645
+ Rt as CheckboxModel,
6646
+ xs as ChunkData,
6647
+ nt as ColAndRowspanModel,
6648
+ st as CollapsedExpandedData,
6649
+ qs as ColorRgb,
6650
+ H as ColumnDef,
6651
+ Bt as ColumnDefGenerator,
6652
+ Ft as ColumnWidths,
6653
+ qe as ConvenienceDomService,
6654
+ J as CopyService,
6321
6655
  $ as CrudAction,
6322
- Q as CrudObjectEdit,
6323
- St as CrudObjectView,
6324
- Ct as CrudOptions,
6325
- _s as CrudTableModelFactory,
6326
- ue as CssVars,
6327
- vs as DateToIntlDDMMYYYYCellRenderer,
6328
- Cs as DateToIsoCellRenderer,
6329
- As as DateToLocaleDateCellRenderer,
6330
- Ts as DateToTecCellRenderer,
6331
- N as DefaultRowHeights,
6332
- Ue as EleScope,
6333
- he as EventAdapter,
6334
- at as ExcelService,
6335
- ge as FalseFn,
6336
- it as FocusModel,
6337
- qe as GeCellIndices,
6338
- j as GeCssColorUtil,
6339
- xs as GeFilterService,
6340
- gs as GeKeyEvent,
6341
- re as GeModelChangeEvent,
6342
- oe as GeMouseEvent,
6343
- P as GeoData,
6344
- L as Icon,
6345
- rs as IndexAndPx,
6346
- ot as InputCellRenderer,
6347
- Je as InputHandler,
6348
- H as LicenseManager,
6349
- Rs as MaleFemaleToIconCellRenderer,
6350
- Ve as MouseHandler,
6351
- He as MouseTargetData,
6352
- Ls as MultiRowsSelectionModel,
6353
- De as NullPropertyType,
6354
- Es as NumberCellProgressBarCellRenderer,
6355
- Is as NumberCellRenderer,
6356
- Pe as NumberPropertyType,
6357
- O as ObjectPropertyType,
6358
- et as OsxShortcutActionIdMapping,
6359
- ye as Padding,
6360
- Fs as PositiveAndNegativeNumberRenderer,
6361
- Ds as ProgressBarCellRenderer,
6362
- ve as PropertyItem,
6363
- Oe as PropertyItemTreeService,
6364
- Ke as RenderScope,
6365
- ws as Renderer,
6366
- ft as RequestChunk,
6367
- lt as ResizeHandler,
6368
- Rt as SchemeGenerator,
6369
- Ie as SelectCellRenderer,
6370
- ne as SelectionModel,
6371
- Ze as SelectionService,
6372
- tt as ShortcutService,
6373
- st as SimpleDomService,
6656
+ oe as CrudObjectEdit,
6657
+ Lt as CrudObjectView,
6658
+ Ot as CrudOptions,
6659
+ Qs as CrudTableModelFactory,
6660
+ xe as CssVars,
6661
+ Bs as DateToIntlDDMMYYYYCellRenderer,
6662
+ _s as DateToIsoCellRenderer,
6663
+ Hs as DateToLocaleDateCellRenderer,
6664
+ Gs as DateToTecCellRenderer,
6665
+ G as DefaultRowHeights,
6666
+ rt as EleScope,
6667
+ ye as EventAdapter,
6668
+ St as ExcelService,
6669
+ Se as FalseFn,
6670
+ bt as FocusModel,
6671
+ dt as GeCellIndices,
6672
+ Y as GeCssColorUtil,
6673
+ Ls as GeFilterService,
6674
+ Is as GeKeyEvent,
6675
+ he as GeModelChangeEvent,
6676
+ ce as GeMouseEvent,
6677
+ L as GeoData,
6678
+ O as Icon,
6679
+ ws as IndexAndPx,
6680
+ mt as InputCellRenderer,
6681
+ ct as InputHandler,
6682
+ me as JsonService,
6683
+ V as LicenseManager,
6684
+ Vs as MaleFemaleToIconCellRenderer,
6685
+ Qe as MouseHandler,
6686
+ Ze as MouseTargetData,
6687
+ Js as MultiRowsSelectionModel,
6688
+ Ne as NullPropertyType,
6689
+ Ws as NumberCellProgressBarCellRenderer,
6690
+ zs as NumberCellRenderer,
6691
+ ze as NumberPropertyType,
6692
+ D as ObjectPropertyType,
6693
+ pt as OsxShortcutActionIdMapping,
6694
+ Ie as PROPERTY_TYPE_KEY_ANY,
6695
+ Pe as PROPERTY_TYPE_KEY_ARRAY,
6696
+ ae as PROPERTY_TYPE_KEY_BOOLEAN,
6697
+ ke as PROPERTY_TYPE_KEY_NULL,
6698
+ le as PROPERTY_TYPE_KEY_NUMBER,
6699
+ j as PROPERTY_TYPE_KEY_OBJECT,
6700
+ De as PROPERTY_TYPE_KEY_STRING,
6701
+ z as PROPERTY_TYPE_KEY_UNDEFINED,
6702
+ Re as Padding,
6703
+ Ks as PositiveAndNegativeNumberRenderer,
6704
+ Ys as ProgressBarCellRenderer,
6705
+ Le as PropertyItem,
6706
+ Ht as PropertyTypeService,
6707
+ lt as RenderScope,
6708
+ Os as Renderer,
6709
+ Tt as RequestChunk,
6710
+ wt as ResizeHandler,
6711
+ Vt as SchemeGenerator,
6712
+ Ve as SelectCellRenderer,
6713
+ ue as SelectionModel,
6714
+ ht as SelectionService,
6715
+ gt as ShortcutService,
6716
+ Us as SimpleArrayCellRenderer,
6717
+ ft as SimpleDomService,
6374
6718
  y as Size,
6375
- Ye as SortItem,
6376
- Re as SortedOptions,
6377
- ks as StarRatingCellRenderer,
6378
- ze as StoreStateCollapsedExpandService,
6379
- Ne as StoreStateScrollPosService,
6380
- je as StoreStateSortingService,
6381
- Fe as StringPropertyType,
6382
- We as TableApi,
6383
- fs as TableCellUpdateEvent,
6719
+ at as SortItem,
6720
+ $e as SortedOptions,
6721
+ js as StarRatingCellRenderer,
6722
+ ot as StoreStateCollapsedExpandService,
6723
+ tt as StoreStateScrollPosService,
6724
+ it as StoreStateSortingService,
6725
+ Ge as StringPropertyType,
6726
+ et as TableApi,
6727
+ ks as TableCellUpdateEvent,
6384
6728
  _ as TableFactory,
6385
- Z as TableModel,
6386
- gt as TableModelAndOptions,
6387
- U as TableOptions,
6388
- Ee as TableScope,
6389
- Os as ThreeColorGradientArg,
6390
- be as TreeCheckboxModel,
6391
- te as TreeFactory,
6392
- Ae as TreeOptions,
6393
- pe as TreeRow,
6394
- ht as TreeRowService,
6395
- Ms as TrueFalseCellRenderer,
6396
- ct as TrueFn,
6397
- Se as TwoColorGradientArg,
6398
- de as UndefinedPropertyType,
6399
- Bs as UrlInfo,
6400
- $e as ValueInfo,
6401
- mt as ValueLabel,
6402
- Qe as WindowsShortcutActionIdMapping,
6403
- os as actionIds,
6404
- ds as allCenter,
6405
- cs as allLeft,
6406
- hs as allRight,
6407
- ls as bodyCenter,
6408
- ns as bodyLeft,
6409
- as as bodyRight,
6410
- ke as debounce,
6411
- Ps as editInputPipeForNumber,
6412
- J as getAreaIdentByString,
6413
- ee as isAreaModelTree,
6414
- _e as isCheckboxColumnDef,
6415
- W as isTreeRow,
6416
- ss as px0,
6417
- ts as px10,
6418
- Ut as px100,
6419
- jt as px110,
6420
- zt as px120,
6421
- Gt as px130,
6422
- Nt as px140,
6423
- Wt as px150,
6424
- Vt as px160,
6425
- Ht as px170,
6426
- Bt as px180,
6427
- _t as px190,
6428
- es as px20,
6429
- fe as px200,
6430
- Ot as px210,
6431
- $t as px220,
6432
- Lt as px230,
6433
- Pt as px240,
6434
- Ft as px250,
6435
- Dt as px260,
6436
- kt as px270,
6437
- It as px280,
6438
- Tt as px290,
6439
- Qt as px30,
6440
- dt as px300,
6441
- Zt as px40,
6442
- Mt as px400,
6443
- qt as px50,
6444
- Et as px500,
6445
- Jt as px60,
6446
- Yt as px70,
6447
- Kt as px80,
6448
- Xt as px90,
6449
- vt as throttle
6729
+ se as TableModel,
6730
+ Mt as TableModelAndOptions,
6731
+ X as TableOptions,
6732
+ _e as TableScope,
6733
+ Zs as ThreeColorGradientArg,
6734
+ Ae as TreeCheckboxModel,
6735
+ re as TreeFactory,
6736
+ Oe as TreeOptions,
6737
+ we as TreeRow,
6738
+ At as TreeRowService,
6739
+ Ns as TrueFalseCellRenderer,
6740
+ Ct as TrueFn,
6741
+ Te as TwoColorGradientArg,
6742
+ K as UNIMPORTANT_TYPES,
6743
+ te as UndefinedPropertyType,
6744
+ eo as UrlInfo,
6745
+ Ue as ValueInfo,
6746
+ It as ValueLabel,
6747
+ ut as WindowsShortcutActionIdMapping,
6748
+ ys as actionIds,
6749
+ Rs as allCenter,
6750
+ As as allLeft,
6751
+ Es as allRight,
6752
+ Cs as bodyCenter,
6753
+ Ss as bodyLeft,
6754
+ vs as bodyRight,
6755
+ We as debounce,
6756
+ Xs as editInputPipeForNumber,
6757
+ be as entitySuffix,
6758
+ Xe as firstLetterUppercase,
6759
+ Q as getAreaIdentByString,
6760
+ Ye as getEntityName,
6761
+ ie as isAreaModelTree,
6762
+ Je as isCheckboxColumnDef,
6763
+ N as isTreeRow,
6764
+ bs as px0,
6765
+ ms as px10,
6766
+ ls as px100,
6767
+ ns as px110,
6768
+ rs as px120,
6769
+ is as px130,
6770
+ os as px140,
6771
+ ss as px150,
6772
+ ts as px160,
6773
+ es as px170,
6774
+ Qt as px180,
6775
+ Zt as px190,
6776
+ fs as px20,
6777
+ Ce as px200,
6778
+ qt as px210,
6779
+ Jt as px220,
6780
+ Xt as px230,
6781
+ Kt as px240,
6782
+ Yt as px250,
6783
+ Ut as px260,
6784
+ jt as px270,
6785
+ zt as px280,
6786
+ Gt as px290,
6787
+ gs as px30,
6788
+ vt as px300,
6789
+ ps as px40,
6790
+ Nt as px400,
6791
+ us as px50,
6792
+ Wt as px500,
6793
+ hs as px60,
6794
+ ds as px70,
6795
+ cs as px80,
6796
+ as as px90,
6797
+ $t as throttle,
6798
+ Ke as trimArraySuffixes
6450
6799
  };