@guiexpert/table 1.1.40 → 1.1.43

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 ut(h, e = 500) {
1
+ function Ot(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 ut(h, e = 500) {
7
7
  }, r));
8
8
  };
9
9
  }
10
- function Re(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 Re(h, e = 500) {
15
15
  }, e);
16
16
  };
17
17
  }
18
- function gt(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,14 +25,659 @@ function gt(h = 500) {
25
25
  }, s;
26
26
  };
27
27
  }
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;
32
+ }
33
+ }
34
+ class te {
35
+ constructor(e) {
36
+ this.propertyName = e, this.type = z;
37
+ }
38
+ }
39
+ class Ne {
40
+ constructor(e) {
41
+ this.propertyName = e, this.type = ke;
42
+ }
43
+ }
44
+ class Ge {
45
+ constructor(e) {
46
+ this.propertyName = e, this.type = De;
47
+ }
48
+ }
49
+ class ze {
50
+ constructor(e) {
51
+ this.propertyName = e, this.type = le;
52
+ }
53
+ }
54
+ class je {
55
+ constructor(e) {
56
+ this.propertyName = e, this.type = ae;
57
+ }
58
+ }
28
59
  class B {
60
+ constructor(e, t = []) {
61
+ this.propertyName = e, this.items = t, this.type = Pe;
62
+ }
63
+ }
64
+ class Le {
65
+ constructor(e, t = []) {
66
+ this.propertyName = e, this.types = t;
67
+ }
68
+ toString() {
69
+ return `PropertyItem(propertyName: ${this.propertyName}, types: [${this.types.map((e) => e.type).join(", ")}])`;
70
+ }
71
+ }
72
+ class D {
73
+ constructor(e, t, s = []) {
74
+ this.propertyName = e, this.className = t, this.properties = s, this.type = j;
75
+ }
76
+ }
77
+ class Bt {
78
+ constructor() {
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
+ a && console.info(`*** TODO export class ${a}ArrayCellRenderer implements CellRendererIf {...`);
127
+ const c = this.getReadableColumnLabel(l);
128
+ let d = 100, u = "", f = "ge-table-text-align-left";
129
+ if (n.type === Pe) {
130
+ if (this.allowCustomRenderer && a) {
131
+ const p = `${a}ArrayCellRenderer`;
132
+ u = ` bodyRenderer: new ${p}(),`, f = "", this.renderCumstomCellRenderer(a, p);
133
+ } else
134
+ u = " bodyRenderer: new SimpleArrayCellRenderer(),";
135
+ d = 250;
136
+ } else
137
+ 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);
138
+ e.push(` ColumnDef.create({
139
+ property: "${l}",
140
+ headerLabel: "${c}",
141
+ width: new Size(${d}, "px"),
142
+ bodyClasses: ["${f}"],
143
+ headerClasses: ["${f}"],`), u && e.push(u), e.push(" }),");
144
+ }
145
+ }
146
+ }
147
+ }
148
+ transformLabel(e) {
149
+ return this.LABEL_MAPPINGS[e] || e;
150
+ }
151
+ getReadableColumnLabel(e) {
152
+ const s = e.split(".").map((o) => {
153
+ const i = o.replace(/([a-z])([A-Z])/g, "$1 $2");
154
+ return i.charAt(0).toUpperCase() + i.slice(1);
155
+ });
156
+ for (let o = 0; o < s.length; o++)
157
+ s[o] = this.transformLabel(s[o]);
158
+ return s.join(" ");
159
+ }
160
+ renderCumstomCellRenderer(e, t) {
161
+ this.bufCustomRenderer.push(`
162
+ // --------------------------------------------------------------
163
+
164
+ import { AreaModelIf, CellRendererIf, DomServiceIf, AreaIdent, RendererCleanupFnType } from "@guiexpert/table";
165
+ // import { ${e} } from "./";
166
+
167
+ export class ${t} implements CellRendererIf {
168
+
169
+ render(
170
+ cellDiv: HTMLDivElement,
171
+ _rowIndex: number,
172
+ _columnIndex: number,
173
+ _areaIdent: AreaIdent,
174
+ _areaModel: AreaModelIf,
175
+ cellValue: ${e}[],
176
+ _domService: DomServiceIf): RendererCleanupFnType | undefined {
177
+ if (cellValue?.length) {
178
+ cellDiv.innerHTML = \`
179
+ <div class="ge-table-label-div">
180
+ <div class="ge-table-label">\${cellValue.join(', ')}</div> /* add your render logic here */
181
+ </div>\`;
182
+ } else {
183
+ cellDiv.innerText = "";
184
+ }
185
+ return undefined;
186
+ }
187
+
188
+ }
189
+
190
+ `);
191
+ }
192
+ }
193
+ class me {
194
+ /**
195
+ *
196
+ * Fixes an invalid json like this:
197
+ * [
198
+ * {
199
+ * id: 1,
200
+ * name: 'Alice',
201
+ * description: 'Lorem ipsum dolor',
202
+ * isActive: true,
203
+ * tags: ['typescript', 'javascript'],
204
+ * scripts: [],
205
+ * profile: { age: 30, location: 'Berlin' },
206
+ * preferences: [{ key: 'theme', value: 'dark' }]
207
+ * },
208
+ * {
209
+ * id: 2,
210
+ * name: 'Marc',
211
+ * description: 'Lorem ipsum dolor',
212
+ * isActive: false,
213
+ * tags: ['java', 'javascript'],
214
+ * scripts: [],
215
+ * profile: { age: 55, location: 'Frankfurt' },
216
+ * preferences: [{ key: 'theme', value: 'light' }]
217
+ * },
218
+ * {
219
+ * id: null,
220
+ * name: 'Bob',
221
+ * isActive: false,
222
+ * tags: null,
223
+ * scripts: [],
224
+ * profile: { age: 25, location: 'Frankfurt' },
225
+ * preferences: [{ key: 'language', value: 'de' }]
226
+ *
227
+ *
228
+ * into a valid json string by adding '}]'.
229
+ *
230
+ *
231
+ */
232
+ fixJSON(e) {
233
+ const t = [];
234
+ let s = "", o = !1, i = !1;
235
+ for (let r = 0; r < e.length; r++) {
236
+ const n = e[r];
237
+ if (s += n, n === '"' && !i && (o = !o), n === "\\" && !i) {
238
+ i = !0;
239
+ continue;
240
+ } else
241
+ i = !1;
242
+ if (!o) {
243
+ if (n === "{" || n === "[")
244
+ t.push(n);
245
+ else if (n === "}" || n === "]") {
246
+ const l = t.pop();
247
+ if (n === "}" && l !== "{" || n === "]" && l !== "[")
248
+ throw new Error("Invalid JSON structure detected.");
249
+ }
250
+ }
251
+ }
252
+ for (; t.length > 0; ) {
253
+ const r = t.pop();
254
+ r === "{" ? s += "}" : r === "[" && (s += "]");
255
+ }
256
+ return s;
257
+ }
258
+ }
259
+ class Ue {
260
+ constructor() {
261
+ this.property = "", this.value = "", this.path = "", this.propertyItem = new Le("", [new Fe("")]);
262
+ }
263
+ toString() {
264
+ var e;
265
+ return `${this.path} -> : ${((e = this.propertyItem) == null ? void 0 : e.toString()) ?? ""}`;
266
+ }
267
+ }
268
+ const be = "Entity";
269
+ function Ye(h) {
270
+ let e = Ke(Xe(h));
271
+ return e.includes(be) || (e = e + be), e;
272
+ }
273
+ function Ke(h) {
274
+ if (!h || h.length === 0)
275
+ return h;
276
+ const e = ["Array", "Arr", "List", "s"];
277
+ for (const t of e)
278
+ if (h.endsWith(t))
279
+ return h.slice(0, -t.length);
280
+ return h;
281
+ }
282
+ function Xe(h) {
283
+ return !h || h.length === 0 ? "" : h[0].toUpperCase() + h.slice(1);
284
+ }
285
+ class Ht {
286
+ constructor() {
287
+ this.debugging = !1;
288
+ }
289
+ /**
290
+ *
291
+ * Converts a json or object structure like this:
292
+ * [
293
+ * {
294
+ * id: 1,
295
+ * name: 'Alice',
296
+ * description: 'Lorem ipsum dolor',
297
+ * isActive: true,
298
+ * tags: ['typescript', 'javascript'],
299
+ * scripts: [],
300
+ * profile: { age: 30, location: 'Berlin' },
301
+ * preferences: [{ key: 'theme', value: 'dark' }]
302
+ * },
303
+ * {
304
+ * id: 2,
305
+ * name: 'Marc',
306
+ * description: 'Lorem ipsum dolor',
307
+ * isActive: false,
308
+ * tags: ['java', 'javascript'],
309
+ * scripts: [],
310
+ * profile: { age: 55, location: 'Frankfurt' },
311
+ * preferences: [{ key: 'theme', value: 'light' }]
312
+ * },
313
+ * {
314
+ * id: null,
315
+ * name: 'Bob',
316
+ * isActive: false,
317
+ * tags: null,
318
+ * scripts: [],
319
+ * profile: { age: 25, location: 'Frankfurt' },
320
+ * preferences: [{ key: 'language', value: 'de' }]
321
+ * }
322
+ * ]
323
+ *
324
+ * into a PropertyTape tree structure like this:
325
+ *
326
+ * return new ArrayPropertyType(
327
+ * [
328
+ * new ObjectPropertyType('XyzRowEntity', [
329
+ * new PropertyItem('id', [new NumberPropertyType(), new NullPropertyType()]),
330
+ * new PropertyItem('name', [new StringPropertyType()]),
331
+ * new PropertyItem('description', [new StringPropertyType(), new UndefinedPropertyType()]),
332
+ * new PropertyItem('isActive', [new BooleanPropertyType()]),
333
+ * new PropertyItem('tags', [
334
+ * new ArrayPropertyType(
335
+ * [new StringPropertyType()]
336
+ * ),
337
+ * new NullPropertyType()
338
+ * ]),
339
+ * new PropertyItem('scripts', [
340
+ * new ArrayPropertyType(
341
+ * [new AnyPropertyType()]
342
+ * ),
343
+ * ]),
344
+ * new PropertyItem('profile', [
345
+ * new ObjectPropertyType('profile', [
346
+ * new PropertyItem('age', [new NumberPropertyType()]),
347
+ * new PropertyItem('location', [new StringPropertyType()])
348
+ * ])
349
+ * ]),
350
+ * new PropertyItem('preferences', [
351
+ * new ArrayPropertyType(
352
+ * [
353
+ * new ObjectPropertyType('preference', [
354
+ * new PropertyItem('key', [new StringPropertyType()]),
355
+ * new PropertyItem('value', [new StringPropertyType()])
356
+ * ])
357
+ * ])
358
+ * ])
359
+ * ])
360
+ * ]);
361
+ *
362
+ *
363
+ * const json = JSON.stringify(demoData);
364
+ * const rootPropertyType: PropertyType = new PropertyTypeService().json2PropertyType(json, 'XyzRows');
365
+ *
366
+ * @param json
367
+ * @param rootName
368
+ */
369
+ json2PropertyType(e, t = "") {
370
+ let s;
371
+ if (typeof e == "string") {
372
+ const o = new me().fixJSON(e);
373
+ s = this.json2Object(o);
374
+ } else
375
+ s = e;
376
+ return this.object2PropertyType(s, t);
377
+ }
378
+ json2Object(e) {
379
+ return JSON.parse(e);
380
+ }
381
+ /**
382
+ * Converts a json or object structure like this:
383
+ * [
384
+ * {
385
+ * id: 1,
386
+ * name: 'Alice',
387
+ * description: 'Lorem ipsum dolor',
388
+ * isActive: true,
389
+ * tags: ['typescript', 'javascript'],
390
+ * scripts: [],
391
+ * profile: { age: 30, location: 'Berlin' },
392
+ * preferences: [{ key: 'theme', value: 'dark' }]
393
+ * },
394
+ * {
395
+ * id: 2,
396
+ * name: 'Marc',
397
+ * description: 'Lorem ipsum dolor',
398
+ * isActive: false,
399
+ * tags: ['java', 'javascript'],
400
+ * scripts: [],
401
+ * profile: { age: 55, location: 'Frankfurt' },
402
+ * preferences: [{ key: 'theme', value: 'light' }]
403
+ * },
404
+ * {
405
+ * id: null,
406
+ * name: 'Bob',
407
+ * isActive: false,
408
+ * tags: null,
409
+ * scripts: [],
410
+ * profile: { age: 25, location: 'Frankfurt' },
411
+ * preferences: [{ key: 'language', value: 'de' }]
412
+ * }
413
+ * ];
414
+ *
415
+ * into a PropertyTape tree structure like this:
416
+ *
417
+ * return new ArrayPropertyType(
418
+ * [
419
+ * new ObjectPropertyType('XyzRowEntity', [
420
+ * new PropertyItem('id', [new NumberPropertyType(), new NullPropertyType()]),
421
+ * new PropertyItem('name', [new StringPropertyType()]),
422
+ * new PropertyItem('description', [new StringPropertyType(), new UndefinedPropertyType()]),
423
+ * new PropertyItem('isActive', [new BooleanPropertyType()]),
424
+ * new PropertyItem('tags', [
425
+ * new ArrayPropertyType(
426
+ * [new StringPropertyType()]
427
+ * ),
428
+ * new NullPropertyType()
429
+ * ]),
430
+ * new PropertyItem('scripts', [
431
+ * new ArrayPropertyType(
432
+ * [new AnyPropertyType()]
433
+ * ),
434
+ * ]),
435
+ * new PropertyItem('profile', [
436
+ * new ObjectPropertyType('profile', [
437
+ * new PropertyItem('age', [new NumberPropertyType()]),
438
+ * new PropertyItem('location', [new StringPropertyType()])
439
+ * ])
440
+ * ]),
441
+ * new PropertyItem('preferences', [
442
+ * new ArrayPropertyType(
443
+ * [
444
+ * new ObjectPropertyType('preference', [
445
+ * new PropertyItem('key', [new StringPropertyType()]),
446
+ * new PropertyItem('value', [new StringPropertyType()])
447
+ * ])
448
+ * ])
449
+ * ])
450
+ * ])
451
+ * ]);
452
+ *
453
+ * The PropertyTape tree structure can be rendered as TypeScript interface definitions with the SchemeGenerator:
454
+ *
455
+ * export interface XyzRowEntity {
456
+ * description?: string;
457
+ * id: number|null;
458
+ * isActive: boolean;
459
+ * name: string;
460
+ * preferences: PreferenceEntity[];
461
+ * profile: ProfileEntity;
462
+ * scripts: any[];
463
+ * tags: string[]|null;
464
+ * }
465
+ *
466
+ * export interface PreferenceEntity {
467
+ * key: string;
468
+ * value: string;
469
+ * }
470
+ *
471
+ * export interface ProfileEntity {
472
+ * age: number;
473
+ * location: string;
474
+ * }
475
+ *
476
+ * @param parsedObject
477
+ * @param rootName
478
+ */
479
+ object2PropertyType(e, t = "") {
480
+ const s = this.object2ValueInfos(e, t);
481
+ this.debugging && this.logValueInfos(s);
482
+ const o = this.valueInfos2PropertyType(s);
483
+ return "name" in o && (o.name = t), o;
484
+ }
485
+ json2ValueInfos(e, t = "") {
486
+ let s;
487
+ if (typeof e == "string") {
488
+ const o = new me().fixJSON(e);
489
+ s = this.json2Object(o);
490
+ } else
491
+ s = e;
492
+ return this.object2ValueInfos(s, t);
493
+ }
494
+ object2ValueInfos(e, t = "") {
495
+ const s = this.extractValueInfos(e, t), o = this.mergeValueInfos(s);
496
+ return o.length > 0 && (o[0].propertyItem.propertyName = t), this.debugging && this.logValueInfos(o), o;
497
+ }
498
+ getParentPath(e) {
499
+ const t = e.lastIndexOf("/");
500
+ return t === -1 ? "" : e.substring(0, t);
501
+ }
502
+ valueInfos2PropertyType(e) {
503
+ const t = e[0].propertyItem.types[0], s = /* @__PURE__ */ new Map();
504
+ for (const o of e)
505
+ s.set(o.path, o);
506
+ for (const o of e) {
507
+ const i = this.getParentPath(o.path);
508
+ if (i) {
509
+ const r = s.get(i);
510
+ if (r) {
511
+ let n = !1;
512
+ const l = r.propertyItem.types.filter((a) => !K.includes(a.type));
513
+ if (l.length === 1) {
514
+ const a = l[0];
515
+ if (a instanceof B) {
516
+ n = !0;
517
+ for (const c of o.propertyItem.types)
518
+ a.items.push(c);
519
+ } else
520
+ a instanceof D && (n = !0, a.properties.push(o.propertyItem));
521
+ }
522
+ if (!n)
523
+ for (const a of o.propertyItem.types)
524
+ r.propertyItem.types.push(a);
525
+ }
526
+ }
527
+ }
528
+ return t || new Fe("");
529
+ }
530
+ logValueInfos(e) {
531
+ for (let t = 0; t < e.length; t++) {
532
+ const s = e[t];
533
+ s.value = null;
534
+ const o = t.toString().padStart(2, "0");
535
+ console.info(o + ") " + s.toString() + " parent: " + this.getParentPath(s.path));
536
+ }
537
+ }
538
+ mergeValueInfos(e) {
539
+ const t = [];
540
+ let s = e.length - 1;
541
+ t.push(e[s]);
542
+ let o = e[s].path;
543
+ for (let i = s - 1; i >= 0; i--) {
544
+ if (e[i].path === o) {
545
+ const r = e[i].propertyItem.types[0];
546
+ e[s].propertyItem.types.some((n) => n.type === r.type) || e[s].propertyItem.types.push(r);
547
+ }
548
+ (i === 0 || e[i].path !== o) && (s = i, t.push(e[i]), o = e[s].path);
549
+ }
550
+ for (const i of e) {
551
+ const r = this.getParentPath(i.path);
552
+ if (r) {
553
+ const n = this.getParentPath(r);
554
+ if (n) {
555
+ const l = this.getFirstValueInfoByPath(e, n);
556
+ if (Array.isArray(l == null ? void 0 : l.value)) {
557
+ const a = (l == null ? void 0 : l.value.length) ?? 0, c = this.countPath(e, i.path);
558
+ a > c && (i.propertyItem.types.some((d) => d.type === z) || i.propertyItem.types.push(new te(i.property)));
559
+ }
560
+ }
561
+ }
562
+ }
563
+ return t.reverse(), t;
564
+ }
565
+ countPath(e, t) {
566
+ let s = 0;
567
+ for (const o of e)
568
+ o.path === t && s++;
569
+ return s;
570
+ }
571
+ getFirstValueInfoByPath(e, t) {
572
+ for (let s = e.length - 1; s >= 0; s--)
573
+ if (e[s].path === t)
574
+ return e[s];
575
+ return null;
576
+ }
577
+ extractValueInfos(e, t) {
578
+ const s = [], o = (i, r, n) => {
579
+ const l = new Ue();
580
+ let a = r.split("/").pop() || "";
581
+ 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)) {
582
+ for (const c in i)
583
+ if (i.hasOwnProperty(c)) {
584
+ const d = r ? `${r}/${c}` : c;
585
+ o(i[c], d, a);
586
+ }
587
+ } else
588
+ Array.isArray(i) && i.forEach((c, d) => {
589
+ const u = `${r}/[]`;
590
+ o(c, u, a);
591
+ });
592
+ };
593
+ return o(e, "root", t), s.sort((i, r) => i.path.localeCompare(r.path));
594
+ }
595
+ createPropertyItem(e, t) {
596
+ return new Le(t, [
597
+ this.createPropertyType(e, t)
598
+ ]);
599
+ }
600
+ createPropertyType(e, t) {
601
+ 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);
602
+ }
603
+ }
604
+ class Vt {
605
+ constructor() {
606
+ this.orOperator = "|", this.rootPropertyType = null, this.rootName = "Root", this.renderTypeScriptInterfacesFifo = [], this.renderTypeScriptInterfacesDone = [];
607
+ }
608
+ renderTypeScriptInterfaces(e) {
609
+ "name" in e && (this.rootName = e.name + ""), this.rootPropertyType = e;
610
+ const t = [];
611
+ return this.rootPropertyType && (this.renderTypeScriptInterfacesFifo = [], this.renderTypeScriptInterfacesRecursive(this.rootPropertyType, t), this.renderTypeScriptInterfacesFifoNext(t)), t;
612
+ }
613
+ renderTypeScriptInterfacesFifoNext(e) {
614
+ var t;
615
+ for (; (t = this.renderTypeScriptInterfacesFifo) != null && t.length; ) {
616
+ const s = this.renderTypeScriptInterfacesFifo.shift();
617
+ s && this.renderTypeScriptInterfacesRecursive(s, e, s.propertyName);
618
+ }
619
+ }
620
+ renderTypeScriptInterfacesRecursive(e = this.rootPropertyType, t = [], s = this.rootName) {
621
+ if (!e)
622
+ return t;
623
+ if (e instanceof B) {
624
+ for (const o of e.items)
625
+ if (this.renderTypeScriptInterfacesRecursive(o, t, s), o instanceof D) {
626
+ const i = o;
627
+ i !== this.rootPropertyType && this.renderTypeScriptInterfacesFifo.push(i);
628
+ }
629
+ } else if (e instanceof D) {
630
+ const o = e, i = o.className;
631
+ if (!this.renderTypeScriptInterfacesDone.includes(i)) {
632
+ this.renderTypeScriptInterfacesDone.push(i), t.push(`export interface ${i} {`);
633
+ for (const r of o.properties) {
634
+ let n = this.propertyItem2InterfaceDateType(r);
635
+ n === "[]" ? n = "any[]" : n.startsWith("(") && n.endsWith(")") && (n = n.substring(1, n.length - 1));
636
+ const l = this.containsUndefinedPropertyType(r) ? "?" : "";
637
+ t.push(" " + r.propertyName + l + ": " + n + ";");
638
+ for (const a of r.types)
639
+ if (a instanceof D)
640
+ a !== this.rootPropertyType && this.renderTypeScriptInterfacesFifo.push(a);
641
+ else if (a instanceof B)
642
+ for (const c of a.items)
643
+ c instanceof D && this.renderTypeScriptInterfacesFifo.push(c);
644
+ }
645
+ t.push("}"), t.push("");
646
+ }
647
+ }
648
+ return t;
649
+ }
650
+ propertyItem2InterfaceDateType(e) {
651
+ var s, o;
652
+ if (((s = e.types) == null ? void 0 : s.length) === 0)
653
+ return "any";
654
+ if (((o = e.types) == null ? void 0 : o.length) === 1)
655
+ return this.renderType(e.types[0], e);
656
+ 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);
657
+ return t.includes(this.orOperator) ? "(" + t + ")" : t;
658
+ }
659
+ renderType(e, t) {
660
+ if (e instanceof B) {
661
+ const s = e.items.map((o) => this.renderType(o, t)).join(this.orOperator);
662
+ return s.includes(this.orOperator) ? `(${s})[]` : `${s}[]`;
663
+ }
664
+ return e instanceof D ? e.className : e.type;
665
+ }
666
+ containsUndefinedPropertyType(e) {
667
+ for (const t of e.types)
668
+ if (t.type === z)
669
+ return !0;
670
+ return !1;
671
+ }
672
+ }
673
+ class V {
29
674
  // The constructor is private to prevent direct construction calls
30
675
  // with the `new` operator
31
676
  constructor() {
32
677
  this.alreadySet = !1;
33
678
  }
34
679
  static getInstance() {
35
- return B.instance || (B.instance = new B()), B.instance;
680
+ return V.instance || (V.instance = new V()), V.instance;
36
681
  }
37
682
  /**
38
683
  * Method to set the license key for the application.
@@ -50,21 +695,21 @@ class B {
50
695
  }
51
696
  }
52
697
  }
53
- function W(h) {
698
+ function N(h) {
54
699
  return h && h.type === "TreeRow";
55
700
  }
56
- function Z(h) {
701
+ function ie(h) {
57
702
  return h && h.type === "AreaModelTree";
58
703
  }
59
- function Ee(h) {
704
+ function Je(h) {
60
705
  return h && h.type === "CheckboxColumnDef";
61
706
  }
62
- class te {
63
- constructor(e = -1, t = -1, s = -1, o = -1, i, r, n, l = 0, c = 0, a = 0, d = "") {
64
- 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 = c, this.draggingY = a, this.action = d;
707
+ class ce {
708
+ constructor(e = -1, t = -1, s = -1, o = -1, i, r, n, l = 0, a = 0, c = 0, d = "") {
709
+ 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;
65
710
  }
66
711
  clone() {
67
- return new te(
712
+ return new ce(
68
713
  this.rowIndex,
69
714
  this.rowTop,
70
715
  this.columnIndex,
@@ -84,7 +729,7 @@ class $ {
84
729
  this.content = e, this.style = t, this.classes = s;
85
730
  }
86
731
  }
87
- class we {
732
+ class $e {
88
733
  constructor(e = new $(
89
734
  ">",
90
735
  "transform: rotate(90deg) translate(66%, -66%); transform-origin: 0 0;",
@@ -105,12 +750,12 @@ class we {
105
750
  this.arrowExpanded = e, this.arrowCollapsed = t, this.arrowPlaceholder = s, this.arrowExpandCollapseAll = o;
106
751
  }
107
752
  }
108
- class ye {
753
+ class Oe {
109
754
  constructor(e = new $("↑", "", ["ge-header-sorted-asc"]), t = new $("↓", "", ["ge-header-sorted-desc"]), s = new $("↑", "color:transparent;", [])) {
110
755
  this.iconAsc = e, this.iconDesc = t, this.iconPlaceholder = s;
111
756
  }
112
757
  }
113
- class Me {
758
+ class qe {
114
759
  constructor(e) {
115
760
  this.domService = e;
116
761
  }
@@ -186,24 +831,24 @@ class Me {
186
831
  addRowDiv(e, t, s = -1, o, i, r = "") {
187
832
  const n = t.index ?? -1, l = this.getDivOrCreateDiv(n, e);
188
833
  if (this.domService.addClass(l, "ge-table-row-div"), this.domService.addClass(l, `ge-table-row-div-${t.index}`), o === "body" && i === "center") {
189
- const c = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
190
- this.domService.addClass(l, `ge-table-row-${c}`);
834
+ const a = ((t == null ? void 0 : t.index) ?? 0) % 2 === 0 ? "even" : "odd";
835
+ this.domService.addClass(l, `ge-table-row-${a}`);
191
836
  }
192
837
  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) {
193
- const c = this.domService.createText(r);
194
- this.domService.appendChild(l, c);
838
+ const a = this.domService.createText(r);
839
+ this.domService.appendChild(l, a);
195
840
  }
196
841
  return this.domService.appendChild(e.child, l), l;
197
842
  }
198
843
  addColumnDiv(e) {
199
- const { parent: t, geo: s, rowIndex: o = -1, columnIndex: i = -1, areaIdent: r, sideIdent: n, text: l = "", treeArrow: c, tableOptions: a, checkedType: d = void 0, sortState: u } = e, f = a == null ? void 0 : a.treeOptions, p = a == null ? void 0 : a.showCheckboxWihoutExtraColumn, m = this.domService.createElement("div");
844
+ 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");
200
845
  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}`);
201
846
  const g = ((s == null ? void 0 : s.index) ?? 0) % 2 === 0 ? "even" : "odd";
202
- 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`), c && c !== "none" && (this.domService.addClass(m, "ge-table-col-tree"), this.addArrowDiv(m, c, f, o, i, r)), p && i === 0 && d && this.addCheckboxToDiv(m, d, r, o), l) {
203
- const b = c !== "none" && i === 0;
847
+ 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) {
848
+ const b = a !== "none" && i === 0;
204
849
  this.addLabelDiv(m, l, b, o, i, r);
205
850
  }
206
- return u && this.addSortedIcon(m, u, a == null ? void 0 : a.sortedOptions, i), this.domService.appendChild(t, m), m;
851
+ return u && this.addSortedIcon(m, u, c == null ? void 0 : c.sortedOptions, i), this.domService.appendChild(t, m), m;
207
852
  }
208
853
  addCheckboxToDiv(e, t, s, o) {
209
854
  const i = this.domService.createElement("div"), r = t === "full" ? "checked" : "";
@@ -225,29 +870,29 @@ class Me {
225
870
  } else {
226
871
  const l = this.domService.createElement("div");
227
872
  this.domService.appendChild(n, l);
228
- const c = this.domService.createText(t);
229
- this.domService.addClass(l, "ge-table-label"), this.domService.appendChild(l, c), this.domService.setAttribute(l, "data-row-index", `${o}`), this.domService.setAttribute(l, "data-col-index", `${i}`), this.domService.setAttribute(l, "data-area", `${r}`);
873
+ const a = this.domService.createText(t);
874
+ 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}`);
230
875
  }
231
876
  return this.domService.appendChild(e, n), n;
232
877
  }
233
- addSortedIcon(e, t = "", s = new ye(), o = -1) {
878
+ addSortedIcon(e, t = "", s = new Oe(), o = -1) {
234
879
  const i = this.domService.createElement("div");
235
880
  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");
236
881
  let r;
237
882
  t === "asc" ? r = s.iconAsc : t === "desc" ? r = s.iconDesc : r = s.iconPlaceholder;
238
883
  const n = r.content, l = this.domService.createText(n);
239
884
  this.domService.appendChild(i, l), r.style && this.applyStyleString(i, r.style);
240
- for (const c of r.classes)
241
- this.domService.addClass(i, c);
885
+ for (const a of r.classes)
886
+ this.domService.addClass(i, a);
242
887
  return this.domService.appendChild(e, i), i;
243
888
  }
244
- addArrowDiv(e, t = "none", s = new we(), o = -1, i = -1, r = "body") {
889
+ addArrowDiv(e, t = "none", s = new $e(), o = -1, i = -1, r = "body") {
245
890
  const n = this.domService.createElement("div");
246
891
  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}`);
247
892
  let l;
248
893
  t === "expanded" ? l = s.arrowExpanded : t === "collapsed" ? l = s.arrowCollapsed : l = s.arrowPlaceholder;
249
- const c = l.content, a = this.domService.createText(c);
250
- this.domService.appendChild(n, a), l.style && this.applyStyleString(n, l.style);
894
+ const a = l.content, c = this.domService.createText(a);
895
+ this.domService.appendChild(n, c), l.style && this.applyStyleString(n, l.style);
251
896
  for (const d of l.classes)
252
897
  this.domService.addClass(n, d);
253
898
  return this.domService.appendChild(e, n), n;
@@ -292,20 +937,20 @@ class Me {
292
937
  return s ? (s.innerText = "", s) : (s = this.domService.createElement("div"), t.cache[e] = s, s);
293
938
  }
294
939
  }
295
- const K = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
296
- class Te {
940
+ const Q = (h) => h === "header" ? "header" : h === "footer" ? "footer" : "body";
941
+ class Ze {
297
942
  constructor(e, t) {
298
943
  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)) {
299
944
  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"));
300
945
  const s = e.getAttribute("data-area");
301
- if (s && (this.areaIdent = K(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
946
+ if (s && (this.areaIdent = Q(s), this.areaModel = t.tableModel.getAreaModel(this.areaIdent), this.row = this.areaModel.getRowByIndex(this.rowIdx)), e instanceof HTMLInputElement) {
302
947
  const o = e;
303
948
  this.value = o.value;
304
949
  }
305
950
  }
306
951
  }
307
952
  }
308
- class ke {
953
+ class Qe {
309
954
  constructor(e) {
310
955
  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(
311
956
  (t) => t.addEventListener("resize", this.tableScope.adjustContainersAndRows.bind(this.tableScope))
@@ -335,14 +980,14 @@ class ke {
335
980
  if (t - this.lastClicked < this.doubleClickDelay)
336
981
  return;
337
982
  this.lastClicked = t;
338
- const s = new Te(e.target, this.tableScope);
983
+ const s = new Ze(e.target, this.tableScope);
339
984
  if (s.action === "toggleExpandCollapseAll")
340
985
  this.expandedAll = !this.expandedAll, this.tableScope.toggleExpandCollapseAll(this.expandedAll), e.preventDefault(), e.stopPropagation();
341
986
  else if (s.action === "toggleHeaderGroup")
342
987
  this.tableScope.toggleHeaderGroup(s), e.preventDefault(), e.stopPropagation();
343
988
  else if (s.inputType === "checkbox" && s.areaIdent)
344
989
  this.tableScope.toggleRowCheckbox(s.rowIdx, s.colIdx, s.areaIdent), e.preventDefault(), e.stopPropagation();
345
- else if (W(s.row) && s.areaModel) {
990
+ else if (N(s.row) && s.areaModel) {
346
991
  const o = s.colIdx === this.getArrowColumnIndex() && e.altKey, i = s.className.includes("ge-table-tree-arrow-div");
347
992
  if (o || i) {
348
993
  e.preventDefault(), e.stopPropagation();
@@ -364,15 +1009,15 @@ class ke {
364
1009
  */
365
1010
  onHostElementDblClicked(e) {
366
1011
  if (this.lastClicked = Date.now(), e.target instanceof HTMLElement) {
367
- const t = e.target, s = t.getAttribute("data-area"), o = K(s), i = Number(t.getAttribute("data-row-index")), r = Number(t.getAttribute("data-col-index")), n = this.tableScope.tableModel.getAreaModel(o);
1012
+ 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);
368
1013
  if (s && o === "header")
369
1014
  this.tableScope.tableModel.isSortable(r) && (this.tableScope.clearSelection(), this.tableScope.onHeaderDblClicked(e, i, r));
370
1015
  else if (t.getAttribute("data-row-index")) {
371
1016
  const l = n.getRowByIndex(i);
372
- if (s && o === "body" && n.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), W(l) && r === this.getArrowColumnIndex()) {
1017
+ if (s && o === "body" && n.isEditable(i, r) && (this.tableScope.clearSelection(), this.tableScope.initRenderEditor(i, r)), N(l) && r === this.getArrowColumnIndex()) {
373
1018
  e.preventDefault(), e.stopPropagation();
374
- const c = l;
375
- c.expanded = !c.expanded, "recalcVisibleTreeRows" in n && n.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(c);
1019
+ const a = l;
1020
+ a.expanded = !a.expanded, "recalcVisibleTreeRows" in n && n.recalcVisibleTreeRows(), this.tableScope.tableModel.recalcSize(this.tableScope.hostElement.clientWidth), this.tableScope.adjustContainersAndRows(), this.updateCollapsedExpandedState(a);
376
1021
  }
377
1022
  }
378
1023
  }
@@ -400,8 +1045,8 @@ class ke {
400
1045
  var s, o, i, r, n;
401
1046
  const t = (o = (s = this.tableScope.tableOptions) == null ? void 0 : s.autoRestoreOptions) == null ? void 0 : o.getRowId;
402
1047
  if (t) {
403
- const l = (i = this.tableScope.storeStateCollapsedExpandService) == null ? void 0 : i.collapsedExpandedStateGet().mode, c = l === "collapsed" && !e.expanded || l === "expanded" && e.expanded, a = l === "collapsed" && e.expanded || l === "expanded" && !e.expanded, d = t(e.data);
404
- c ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(d) : a && ((n = this.tableScope.storeStateCollapsedExpandService) == null || n.collapsedStateIdsRemove(d));
1048
+ 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);
1049
+ a ? (r = this.tableScope.storeStateCollapsedExpandService) == null || r.collapsedStateIdsPush(d) : c && ((n = this.tableScope.storeStateCollapsedExpandService) == null || n.collapsedStateIdsRemove(d));
405
1050
  }
406
1051
  }
407
1052
  getArrowColumnIndex() {
@@ -437,7 +1082,7 @@ class ke {
437
1082
  }
438
1083
  }
439
1084
  }
440
- class Ie {
1085
+ class et {
441
1086
  constructor(e) {
442
1087
  this.tableScope = e;
443
1088
  }
@@ -625,11 +1270,11 @@ class Ie {
625
1270
  const s = [], o = this.tableScope.tableModel.getColumnCount(), i = ["header", "body", "footer"];
626
1271
  for (const r of i) {
627
1272
  const n = this.tableScope.tableModel.getAreaModel(r), l = (n == null ? void 0 : n.getRowCount()) ?? 0;
628
- for (let c = 0; c < l; c++) {
629
- const a = [];
630
- s.push(a);
1273
+ for (let a = 0; a < l; a++) {
1274
+ const c = [];
1275
+ s.push(c);
631
1276
  for (let d = 0; d < o; d++)
632
- a.push(n.getValueAt(c, d));
1277
+ c.push(n.getValueAt(a, d));
633
1278
  }
634
1279
  }
635
1280
  return this.tableScope.excelService.downloadExcel(s, e, t);
@@ -664,7 +1309,7 @@ class Ie {
664
1309
  return this.tableScope.tableModel;
665
1310
  }
666
1311
  }
667
- class se {
1312
+ class de {
668
1313
  constructor(e) {
669
1314
  this.getStorageKeyFn = e;
670
1315
  }
@@ -739,7 +1384,7 @@ class se {
739
1384
  // }
740
1385
  // }
741
1386
  }
742
- class De extends se {
1387
+ class tt extends de {
743
1388
  constructor(e) {
744
1389
  super(e), this.SCROLL_STATE = "scrollState", this.scrollOffset = [0, 0], this.load();
745
1390
  }
@@ -761,14 +1406,14 @@ class De extends se {
761
1406
  }
762
1407
  }
763
1408
  }
764
- class Fe {
1409
+ class st {
765
1410
  constructor(e = "collapsed", t = [], s = !1, o = !1) {
766
1411
  this.mode = e, this.rowIds = t, this.allCollapsed = s, this.allExpanded = o;
767
1412
  }
768
1413
  }
769
- class Le extends se {
1414
+ class ot extends de {
770
1415
  constructor(e) {
771
- super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new Fe(), this.load();
1416
+ super(e), this.COLLAPSED_EXPANDED_STATE = "collapsedExpandedState", this.collapsedExpandedState = new st(), this.load();
772
1417
  }
773
1418
  collapsedExpandedStateGet() {
774
1419
  return this.collapsedExpandedState;
@@ -800,7 +1445,7 @@ class Le extends se {
800
1445
  this.checkAndPersistItem(this.COLLAPSED_EXPANDED_STATE, this.collapsedExpandedState);
801
1446
  }
802
1447
  }
803
- class $e extends se {
1448
+ class it extends de {
804
1449
  constructor(e) {
805
1450
  super(e), this.SORTING_STATE = "sortingState", this.sortItems = [], this.load();
806
1451
  }
@@ -826,7 +1471,7 @@ class L {
826
1471
  this.left = e, this.width = t, this.height = s, this.top = o, this.index = i;
827
1472
  }
828
1473
  }
829
- class Pe {
1474
+ class rt {
830
1475
  constructor(e, t, s, o) {
831
1476
  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();
832
1477
  const i = this.hostElement;
@@ -1032,7 +1677,7 @@ class R {
1032
1677
  return e >= this.r1 && e <= this.r2 && t >= this.c1 && t <= this.c2;
1033
1678
  }
1034
1679
  }
1035
- class Oe {
1680
+ class nt {
1036
1681
  constructor(e, t) {
1037
1682
  this.tableModel = e, this.areaModel = t, this.colAndRowspanRanges = void 0;
1038
1683
  }
@@ -1065,22 +1710,22 @@ class Oe {
1065
1710
  return !1;
1066
1711
  }
1067
1712
  }
1068
- class k {
1713
+ class I {
1069
1714
  constructor(e, t, s) {
1070
1715
  this.header = e, this.body = t, this.footer = s;
1071
1716
  }
1072
1717
  }
1073
- class _e extends Pe {
1718
+ class lt extends rt {
1074
1719
  constructor(e, t, s, o) {
1075
1720
  var r, n;
1076
1721
  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 = {
1077
1722
  header: [],
1078
1723
  body: [],
1079
1724
  footer: []
1080
- }, this.tree = !1, this.colAndRowspanModels = new k(), 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), Z(t.getAreaModel("body")) && (this.tree = !0), ["header", "body", "footer"].forEach(
1725
+ }, 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(
1081
1726
  (l) => {
1082
- var c;
1083
- this.colAndRowspanModels[l] = new Oe(t, t.getAreaModel(l)), (c = this.colAndRowspanModels[l]) == null || c.init();
1727
+ var a;
1728
+ this.colAndRowspanModels[l] = new nt(t, t.getAreaModel(l)), (a = this.colAndRowspanModels[l]) == null || a.init();
1084
1729
  }
1085
1730
  );
1086
1731
  }
@@ -1219,11 +1864,11 @@ class _e extends Pe {
1219
1864
  rerenderCellContent({ area: e, rowIndex: t, columnIndex: s, value: o, cssClasses: i }) {
1220
1865
  const r = this.tableModel.getAreaModel(e), n = 'div[data-col-index="' + s + '"][data-row-index="' + t + '"][data-area="' + e + '"]', l = document.querySelector(n);
1221
1866
  if (l) {
1222
- let c;
1223
- const a = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
1867
+ let a;
1868
+ const c = this.editorRenderer && this.editorRendererRow === t && this.editorRendererColumn === s;
1224
1869
  let d;
1225
- if (a ? d = this.editorRenderer : d = r.getCellRenderer(t, s), l.innerText = "", this.applyCssClasses(l, i), d)
1226
- c = d.render(l, t, s, e, r, o, this.dom.domService), c && this.cleanupFunctions[e].push(c);
1870
+ if (c ? d = this.editorRenderer : d = r.getCellRenderer(t, s), l.innerText = "", this.applyCssClasses(l, i), d)
1871
+ a = d.render(l, t, s, e, r, o, this.dom.domService), a && this.cleanupFunctions[e].push(a);
1227
1872
  else {
1228
1873
  const p = `${o}`;
1229
1874
  this.dom.addLabelDiv(l, p, !1, t, s, e);
@@ -1345,7 +1990,7 @@ class _e extends Pe {
1345
1990
  var g;
1346
1991
  const s = this.getArea(e, "west"), o = this.getArea(e, "center"), i = this.getArea(e, "east"), r = o.child.clientHeight;
1347
1992
  s.child.innerText = "", o.child.innerText = "", i.child.innerText = "";
1348
- const n = 0, l = this.areaBodyCenterGeo.width, c = this.tableModel.getPadding(), a = this.tableModel.getAreaModel(e), d = a.getRowCount();
1993
+ const n = 0, l = this.areaBodyCenterGeo.width, a = this.tableModel.getPadding(), c = this.tableModel.getAreaModel(e), d = c.getRowCount();
1349
1994
  for (; this.cleanupFunctions[e].length; ) {
1350
1995
  const b = this.cleanupFunctions[e].shift();
1351
1996
  b && b();
@@ -1353,44 +1998,44 @@ class _e extends Pe {
1353
1998
  let u = t;
1354
1999
  const f = this.tableModel.getColumnCount(), p = this.tableModel.getFixedRightColumnCount(), m = this.tableModel.getFixedLeftColumnCount();
1355
2000
  for (let b = 0; b < d; b++) {
1356
- const S = u, C = b === d - 1, A = this.tableModel.getRowHeight(e, b);
1357
- if (S + A > 0) {
2001
+ const x = u, S = b === d - 1, A = this.tableModel.getRowHeight(e, b);
2002
+ if (x + A > 0) {
1358
2003
  this.firstVisibleRowIndex = b;
1359
- let y = { left: n, width: l, height: A, top: S, index: b }, w = this.dom.addRowDiv(o, y, b, e, "center");
1360
- const I = m;
2004
+ let C = { left: n, width: l, height: A, top: x, index: b }, w = this.dom.addRowDiv(o, C, b, e, "center");
2005
+ const k = m;
1361
2006
  if (this.adjustColumnsToRowParent({
1362
2007
  areaIdent: e,
1363
2008
  sideIdent: "center",
1364
- areaModel: a,
1365
- geo: y,
2009
+ areaModel: c,
2010
+ geo: C,
1366
2011
  parent: w,
1367
2012
  rowIndex: b,
1368
- columnIndexStart: I,
2013
+ columnIndexStart: k,
1369
2014
  columnIndexEnd: f - p - 1,
1370
2015
  verticalFixed: !1,
1371
- lastRowOfModel: C
1372
- }), c.left > 0 && (y = { left: n, width: this.areaBodyWestGeo.width, height: A, top: S, index: b }, w = this.dom.addRowDiv(s, y, b, e, "west"), this.adjustColumnsToRowParent({
2016
+ lastRowOfModel: S
2017
+ }), 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({
1373
2018
  areaIdent: e,
1374
2019
  sideIdent: "west",
1375
- areaModel: a,
1376
- geo: y,
2020
+ areaModel: c,
2021
+ geo: C,
1377
2022
  parent: w,
1378
2023
  rowIndex: b,
1379
2024
  columnIndexStart: 0,
1380
- columnIndexEnd: I - 1,
2025
+ columnIndexEnd: k - 1,
1381
2026
  verticalFixed: !0,
1382
- lastRowOfModel: C
1383
- })), c.right > 0 && (y = { left: n, width: this.areaBodyEastGeo.width, height: A, top: S, index: b }, w = this.dom.addRowDiv(i, y, b, e, "east"), this.adjustColumnsToRowParent({
2027
+ lastRowOfModel: S
2028
+ })), 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({
1384
2029
  areaIdent: e,
1385
2030
  sideIdent: "east",
1386
- areaModel: a,
1387
- geo: y,
2031
+ areaModel: c,
2032
+ geo: C,
1388
2033
  parent: w,
1389
2034
  rowIndex: b,
1390
2035
  columnIndexStart: f - p,
1391
2036
  columnIndexEnd: f - 1,
1392
2037
  verticalFixed: !0,
1393
- lastRowOfModel: C
2038
+ lastRowOfModel: S
1394
2039
  })), e === "header" && this.tree && b === d - 1) {
1395
2040
  const E = this.dom.applyStyle(
1396
2041
  this.dom.setAttribute(
@@ -1401,8 +2046,8 @@ class _e extends Pe {
1401
2046
  { cursor: "pointer" }
1402
2047
  ), M = this.tableOptions.treeOptions.arrowExpandCollapseAll;
1403
2048
  if (M) {
1404
- const N = this.dom.domService.createText(M.content);
1405
- this.dom.domService.appendChild(E, N), M.style && this.dom.applyStyleString(E, M.style);
2049
+ const U = this.dom.domService.createText(M.content);
2050
+ this.dom.domService.appendChild(E, U), M.style && this.dom.applyStyleString(E, M.style);
1406
2051
  }
1407
2052
  }
1408
2053
  }
@@ -1412,17 +2057,17 @@ class _e extends Pe {
1412
2057
  if (this.colAndRowspanModels && this.colAndRowspanModels[e]) {
1413
2058
  const b = ((g = this.colAndRowspanModels[e]) == null ? void 0 : g.getRanges()) ?? [];
1414
2059
  if (b.length)
1415
- for (const S of b) {
1416
- let C = 0, A = o.child, y = "center";
1417
- if (S.c1 < m)
1418
- A = s.child, y = "west";
1419
- else if (p > 0 && S.c1 >= f - p)
1420
- A = i.child, y = "east";
2060
+ for (const x of b) {
2061
+ let S = 0, A = o.child, C = "center";
2062
+ if (x.c1 < m)
2063
+ A = s.child, C = "west";
2064
+ else if (p > 0 && x.c1 >= f - p)
2065
+ A = i.child, C = "east";
1421
2066
  else {
1422
2067
  const w = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1423
- C = this.scrollFactorX * w - this.areaBodyWestGeo.width, y = "center";
2068
+ S = this.scrollFactorX * w - this.areaBodyWestGeo.width, C = "center";
1424
2069
  }
1425
- this.drawBigCell(S, C, t, a, A, y);
2070
+ this.drawBigCell(x, S, t, c, A, C);
1426
2071
  }
1427
2072
  }
1428
2073
  }
@@ -1437,10 +2082,10 @@ class _e extends Pe {
1437
2082
  * @protected
1438
2083
  */
1439
2084
  drawBigCell(e, t, s, o, i, r) {
1440
- const n = s + this.getRowHeights(0, e.r1 - 1, o).reduce((g, b) => g + b, 0), l = this.tableModel.getColumnCount(), c = this.tableModel.getFixedRightColumnCount();
1441
- let a = 0;
1442
- c > 0 && e.c1 >= l - c && (a = l - c);
1443
- const d = t + this.getColumnWidths(a, 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);
2085
+ const n = s + this.getRowHeights(0, e.r1 - 1, o).reduce((g, b) => g + b, 0), l = this.tableModel.getColumnCount(), a = this.tableModel.getFixedRightColumnCount();
2086
+ let c = 0;
2087
+ a > 0 && e.c1 >= l - a && (c = l - a);
2088
+ 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);
1444
2089
  let p = !1;
1445
2090
  const m = this.getSelectionModel ? this.getSelectionModel() : void 0;
1446
2091
  m && (p = m.getSelectionCount(e.r1, e.c1) > 0), e.gammaRange ? this.renderCell({
@@ -1517,34 +2162,34 @@ class _e extends Pe {
1517
2162
  rowIndex: r,
1518
2163
  columnIndexStart: n,
1519
2164
  columnIndexEnd: l,
1520
- verticalFixed: c = !1,
1521
- lastRowOfModel: a = !1
2165
+ verticalFixed: a = !1,
2166
+ lastRowOfModel: c = !1
1522
2167
  }) {
1523
2168
  var m;
1524
2169
  this.scrollViewportLeft = this.scrollViewport.scrollLeft;
1525
2170
  let d = 0;
1526
- if (!c) {
2171
+ if (!a) {
1527
2172
  const g = this.areaBodyCenterGeo.width - this.tableModel.getContentWidthInPixel();
1528
2173
  d = this.scrollFactorX * g;
1529
2174
  }
1530
2175
  const u = 0, f = !!(e === "body" && t);
1531
2176
  let p = d;
1532
2177
  for (let g = n; g <= l; g++) {
1533
- const b = p, S = this.tableModel.getColumnWidth(g);
1534
- if (S > 0 && b + S > 0) {
1535
- let C = o.height;
1536
- const A = s.getRowspanAt(r, g), y = s.getColspanAt(r, g);
1537
- A > 1 && (C = this.getRowHeights(r, r + A - 1, s).reduce((E, M) => E + M, 0));
1538
- let w = S;
1539
- y > 1 && (w = this.getColumnWidths(g, g + y - 1).reduce((E, M) => E + M, 0));
1540
- let I = !1;
1541
- if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r, g) && (I = !0), this.draggingTargetColumnIndex === g && e !== "header") {
1542
- this.renderDragTargetDiv(i, b, u, w, C);
1543
- const E = { left: b, top: u, width: w, height: C };
2178
+ const b = p, x = this.tableModel.getColumnWidth(g);
2179
+ if (x > 0 && b + x > 0) {
2180
+ let S = o.height;
2181
+ const A = s.getRowspanAt(r, g), C = s.getColspanAt(r, g);
2182
+ A > 1 && (S = this.getRowHeights(r, r + A - 1, s).reduce((E, M) => E + M, 0));
2183
+ let w = x;
2184
+ C > 1 && (w = this.getColumnWidths(g, g + C - 1).reduce((E, M) => E + M, 0));
2185
+ let k = !1;
2186
+ if (this.colAndRowspanModels && this.colAndRowspanModels[e] && (m = this.colAndRowspanModels[e]) != null && m.isInRange(r, g) && (k = !0), this.draggingTargetColumnIndex === g && e !== "header") {
2187
+ this.renderDragTargetDiv(i, b, u, w, S);
2188
+ const E = { left: b, top: u, width: w, height: S };
1544
2189
  this.dom.addColumnBorderDivs(this.tableOptions, i, E, e, t);
1545
2190
  } else {
1546
- const E = this.renderSelectedBackgroundDiv(I, f, t, s, r, g, i, b, u, w, C);
1547
- "gammaCells" in s && s.getValueAt(r, g) && (I = !1), I || this.renderCell({
2191
+ const E = this.renderSelectedBackgroundDiv(k, f, t, s, r, g, i, b, u, w, S);
2192
+ "gammaCells" in s && s.getValueAt(r, g) && (k = !1), k || this.renderCell({
1548
2193
  areaModel: s,
1549
2194
  areaIdent: e,
1550
2195
  sideIdent: t,
@@ -1553,10 +2198,10 @@ class _e extends Pe {
1553
2198
  left: b,
1554
2199
  top: u,
1555
2200
  width: w,
1556
- height: C,
2201
+ height: S,
1557
2202
  parent: i,
1558
2203
  cellSelected: E,
1559
- lastRowOfModel: a,
2204
+ lastRowOfModel: c,
1560
2205
  gammaRange: !0
1561
2206
  }), e === "header" && this.tableOptions.columnsResizable && this.renderHeaderCellResizeHandle({
1562
2207
  rowIndex: r,
@@ -1564,12 +2209,12 @@ class _e extends Pe {
1564
2209
  cellLeft: b,
1565
2210
  cellTop: u,
1566
2211
  cellWidth: w,
1567
- cellHeight: C,
2212
+ cellHeight: S,
1568
2213
  parent: i
1569
2214
  });
1570
2215
  }
1571
2216
  }
1572
- if (p = p + S, p > this.areaBodyCenterGeo.width)
2217
+ if (p = p + x, p > this.areaBodyCenterGeo.width)
1573
2218
  break;
1574
2219
  }
1575
2220
  this.tableOptions.verticalBorderVisible && this.dom.addVerticalBorder(new L(p - 1, 1, o.height, 0), i);
@@ -1595,25 +2240,25 @@ class _e extends Pe {
1595
2240
  left: r,
1596
2241
  width: n,
1597
2242
  height: l,
1598
- top: c,
1599
- parent: a,
2243
+ top: a,
2244
+ parent: c,
1600
2245
  lastRowOfModel: d
1601
2246
  }) {
1602
- var le;
1603
- const f = this.editorRenderer && this.editorRendererRow === o && this.editorRendererColumn === i ? this.editorRenderer : e.getCellRenderer(o, i), p = { left: r, width: n, height: l, top: c, index: i }, m = e.getRowByIndex(o);
2247
+ var fe;
2248
+ 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);
1604
2249
  let g = "none";
1605
- if (i === this.getTreeArrowColumnIndex() && W(m)) {
2250
+ if (i === this.getTreeArrowColumnIndex() && N(m)) {
1606
2251
  const v = m;
1607
- (le = v.children) != null && le.length ? v.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
2252
+ (fe = v.children) != null && fe.length ? v.expanded ? g = "expanded" : g = "collapsed" : g = "hidden";
1608
2253
  }
1609
- let S;
2254
+ let x;
1610
2255
  if (t === "header") {
1611
2256
  const v = this.tableModel.getColumnDef(i);
1612
- (!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (S = v == null ? void 0 : v.sortState);
2257
+ (!(v != null && v.sortIconVisible) || v != null && v.sortIconVisible()) && (x = v == null ? void 0 : v.sortState);
1613
2258
  }
1614
- const C = e.getValueAt(o, i), A = f ? "" : `${C}`, y = e.isRowChecked(o), w = this.dom.addColumnDiv(
2259
+ const S = e.getValueAt(o, i), A = f ? "" : `${S}`, C = e.isRowChecked(o), w = this.dom.addColumnDiv(
1615
2260
  {
1616
- parent: a,
2261
+ parent: c,
1617
2262
  geo: p,
1618
2263
  rowIndex: o,
1619
2264
  columnIndex: i,
@@ -1622,25 +2267,25 @@ class _e extends Pe {
1622
2267
  text: A,
1623
2268
  treeArrow: g,
1624
2269
  tableOptions: this.tableOptions,
1625
- checkedType: y,
1626
- sortState: S
2270
+ checkedType: C,
2271
+ sortState: x
1627
2272
  }
1628
- ), I = e.getTooltipAt(o, i);
1629
- I && this.dom.setAttribute(w, "title", I);
2273
+ ), k = e.getTooltipAt(o, i);
2274
+ k && this.dom.setAttribute(w, "title", k);
1630
2275
  const E = this.tableModel.getColumnDef(i);
1631
2276
  E && E.classes[t] && this.dom.addClasses(E.classes[t], w);
1632
2277
  let M;
1633
- f && (M = f.render(w, o, i, t, e, C, this.dom.domService));
1634
- const N = e.getCustomClassesAt(o, i);
1635
- if (N.length && this.dom.addClasses(N, w), this.dom.addColumnBorderDivs(this.tableOptions, a, p, t, s), d && this.dom.addHorizontalBorder({ left: r, width: n, height: l, top: c + l }, a), this.getFocusModel && t === "body") {
2278
+ f && (M = f.render(w, o, i, t, e, S, this.dom.domService));
2279
+ const U = e.getCustomClassesAt(o, i);
2280
+ 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") {
1636
2281
  const v = this.getFocusModel();
1637
- v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(a, p, {});
2282
+ v != null && v.hasFocus(o, i) && this.dom.addFocusBorderDivs(c, p, {});
1638
2283
  }
1639
2284
  t === "header" && this.dom.setAttribute(w, "data-ge-action", "drag-column");
1640
- const Y = e.getCustomStyleAt(o, i);
1641
- if (Y)
1642
- for (const v in Y)
1643
- this.dom.setStyle(w, v, Y[v]);
2285
+ const ee = e.getCustomStyleAt(o, i);
2286
+ if (ee)
2287
+ for (const v in ee)
2288
+ this.dom.setStyle(w, v, ee[v]);
1644
2289
  return [w, M];
1645
2290
  }
1646
2291
  /**
@@ -1773,12 +2418,12 @@ class _e extends Pe {
1773
2418
  if (this.dragging) {
1774
2419
  const r = this.hostElement.clientHeight, n = this.storedColumnWidths[t];
1775
2420
  if ((o = e.originalEvent) != null && o.clientX) {
1776
- const a = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - n / 2, width: n, height: r, top: 0, index: t };
2421
+ const c = { left: ((i = e.originalEvent) == null ? void 0 : i.clientX) - n / 2, width: n, height: r, top: 0, index: t };
1777
2422
  this.dom.applyStyle(this.draggingColumn, {
1778
2423
  background: "rgba(128,128,128,0.2)",
1779
2424
  display: "block",
1780
2425
  overfllow: "clip"
1781
- }), this.dom.applyStyleInPx(this.draggingColumn, a), s && this.renderContentOfDraggingColumn(a);
2426
+ }), this.dom.applyStyleInPx(this.draggingColumn, c), s && this.renderContentOfDraggingColumn(c);
1782
2427
  }
1783
2428
  } else
1784
2429
  this.hideDraggingColumn();
@@ -1806,26 +2451,26 @@ class _e extends Pe {
1806
2451
  const o = "center", i = this.tableModel.getAreaModel(t), r = i == null ? void 0 : i.getRowCount();
1807
2452
  if (r) {
1808
2453
  const n = e.index ?? 0, l = this.draggingColumn;
1809
- for (let c = 0; c < r; c++) {
1810
- const a = s, d = i.getRowHeight(c), u = { left: 0, width: e.width, height: d, top: a, index: c }, f = i.getValueAt(c, n), p = i.getCellRenderer(c, n), m = p ? "" : `${f}`, g = {
2454
+ for (let a = 0; a < r; a++) {
2455
+ 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 = {
1811
2456
  parent: l,
1812
2457
  geo: u,
1813
- rowIndex: c,
2458
+ rowIndex: a,
1814
2459
  columnIndex: n,
1815
2460
  areaIdent: t,
1816
2461
  sideIdent: o,
1817
2462
  text: m
1818
2463
  }, b = this.dom.addColumnDiv(g);
1819
- let S;
1820
- p && (S = p.render(b, c, n, t, i, f, this.dom.domService), S && this.cleanupFunctions[t].push(S));
1821
- const C = i.getCustomClassesAt(c, n);
1822
- C.length && this.dom.addClasses(C, b);
2464
+ let x;
2465
+ p && (x = p.render(b, a, n, t, i, f, this.dom.domService), x && this.cleanupFunctions[t].push(x));
2466
+ const S = i.getCustomClassesAt(a, n);
2467
+ S.length && this.dom.addClasses(S, b);
1823
2468
  const A = this.tableModel.getColumnDef(n);
1824
2469
  A && A.classes[t] && this.dom.addClasses(A.classes[t], b), this.dom.addColumnBorderDivs(this.tableOptions, l, u, t, o);
1825
- const y = i.getCustomStyleAt(c, n);
1826
- if (y)
1827
- for (const w in y)
1828
- this.dom.setStyle(b, w, y[w]);
2470
+ const C = i.getCustomStyleAt(a, n);
2471
+ if (C)
2472
+ for (const w in C)
2473
+ this.dom.setStyle(b, w, C[w]);
1829
2474
  s = s + d;
1830
2475
  }
1831
2476
  }
@@ -1875,7 +2520,7 @@ class _e extends Pe {
1875
2520
  * @param {number} height - The height of the div.
1876
2521
  * @returns {boolean} - Whether the cell is selected.
1877
2522
  */
1878
- renderSelectedBackgroundDiv(e, t, s, o, i, r, n, l, c, a, d) {
2523
+ renderSelectedBackgroundDiv(e, t, s, o, i, r, n, l, a, c, d) {
1879
2524
  let u = !1;
1880
2525
  if (!e && t && o.isSelectable(i, r) && this.getSelectionModel) {
1881
2526
  const f = this.getSelectionModel();
@@ -1887,7 +2532,7 @@ class _e extends Pe {
1887
2532
  // ge-table-body-west-selected-range
1888
2533
  this.dom.createDivWithClass(`ge-table-${o.areaIdent}-${s}-selected-range`, n)
1889
2534
  );
1890
- this.dom.setStyle(g, "left", `${l}px`), this.dom.setStyle(g, "top", `${c}px`), this.dom.setStyle(g, "width", `${a}px`), this.dom.setStyle(g, "height", `${d}px`);
2535
+ 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`);
1891
2536
  }
1892
2537
  }
1893
2538
  }
@@ -1921,8 +2566,8 @@ class _e extends Pe {
1921
2566
  left: r,
1922
2567
  top: n,
1923
2568
  width: l,
1924
- height: c,
1925
- parent: a,
2569
+ height: a,
2570
+ parent: c,
1926
2571
  cellSelected: d,
1927
2572
  lastRowOfModel: u
1928
2573
  }) {
@@ -1934,9 +2579,9 @@ class _e extends Pe {
1934
2579
  index: i,
1935
2580
  left: r,
1936
2581
  width: l,
1937
- height: c,
2582
+ height: a,
1938
2583
  top: n,
1939
- parent: a,
2584
+ parent: c,
1940
2585
  lastRowOfModel: u
1941
2586
  });
1942
2587
  d && this.dom.addClass(`ge-table-${t}-${s}-selected-range`, f), p && this.cleanupFunctions[t].push(p);
@@ -1956,16 +2601,16 @@ class _e extends Pe {
1956
2601
  * @return {void}
1957
2602
  */
1958
2603
  renderHeaderCellResizeHandle({ rowIndex: e, columnIndex: t, cellLeft: s, cellTop: o, cellWidth: i, cellHeight: r, parent: n }) {
1959
- const l = this.dom.domService, c = this.tableOptions.columnResizeHandleWidthInPx ?? 2, a = l.createElement("div");
1960
- l.setAttribute(a, "data-col-index", `${t}`), l.setAttribute(a, "data-row-index", `${e}`), l.setAttribute(a, "data-area", "header"), l.setAttribute(a, "data-ge-action", "resize-column"), l.addClass(a, "ge-table-column-resize-handle"), l.setStyle(a, "display", "clip"), l.setStyle(a, "position", "absolute"), l.setStyle(a, "cursor", "col-resize"), l.setStyle(a, "left", `${s + i - c}px`), l.setStyle(a, "top", `${o}px`), l.setStyle(a, "width", `${c}px`), l.setStyle(a, "height", `${r}px`), l.appendChild(n, a);
2604
+ const l = this.dom.domService, a = this.tableOptions.columnResizeHandleWidthInPx ?? 2, c = l.createElement("div");
2605
+ 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);
1961
2606
  }
1962
2607
  }
1963
- class Be {
2608
+ class at {
1964
2609
  constructor(e, t) {
1965
2610
  this.columnIndex = e, this.sortState = t;
1966
2611
  }
1967
2612
  }
1968
- class He {
2613
+ class ct {
1969
2614
  constructor(e) {
1970
2615
  this.tableScope = e, this.tableScope.hostElement.addEventListener("change", this.onHostElementChanged.bind(this));
1971
2616
  }
@@ -1981,36 +2626,36 @@ class He {
1981
2626
  if (e.target instanceof HTMLInputElement || e.target instanceof HTMLSelectElement || e.target instanceof HTMLTextAreaElement) {
1982
2627
  const t = e.target, s = t.getAttribute("data-area"), o = t.getAttribute("data-row-index"), i = t.getAttribute("data-col-index");
1983
2628
  if (s && o && i) {
1984
- const r = K(s), n = Number(o), l = Number(i);
2629
+ const r = Q(s), n = Number(o), l = Number(i);
1985
2630
  this.tableScope.updateModelValueAfterEdit(r, n, l, t.value);
1986
2631
  }
1987
2632
  }
1988
2633
  }
1989
2634
  }
1990
- class We {
2635
+ class dt {
1991
2636
  constructor(e = -1, t = -1) {
1992
2637
  this.rowIndex = e, this.columnIndex = t;
1993
2638
  }
1994
2639
  }
1995
- class oe {
2640
+ class he {
1996
2641
  constructor(e) {
1997
2642
  this.cells = e;
1998
2643
  }
1999
2644
  static createSingle(e, t) {
2000
- return new oe([new We(e, t)]);
2645
+ return new he([new dt(e, t)]);
2001
2646
  }
2002
2647
  }
2003
- class Ve {
2648
+ class ht {
2004
2649
  constructor(e) {
2005
2650
  var t, s;
2006
2651
  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);
2007
2652
  }
2008
2653
  onMouseClicked(e, t) {
2009
- var i, r, n, l, c, a, d;
2654
+ var i, r, n, l, a, c, d;
2010
2655
  let s = !1, o = !1;
2011
2656
  if (this.getSelectionModel && this.getFocusModel) {
2012
2657
  const u = this.getSelectionModel(), f = this.getFocusModel();
2013
- 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 || (c = e.originalEvent) != null && c.metaKey) ? (u.removeSelection(R.singleCell(e.rowIndex, e.columnIndex)), o = !0, s = !0) : (a = e.originalEvent) != null && a.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));
2658
+ 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));
2014
2659
  }
2015
2660
  return o ? this.previousEvt = void 0 : this.previousEvt = e == null ? void 0 : e.clone(), s;
2016
2661
  }
@@ -2041,7 +2686,7 @@ class Ve {
2041
2686
  });
2042
2687
  }
2043
2688
  }
2044
- class Ne {
2689
+ class ut {
2045
2690
  get() {
2046
2691
  return {
2047
2692
  f2: "START_EDITING",
@@ -2061,7 +2706,7 @@ class Ne {
2061
2706
  };
2062
2707
  }
2063
2708
  }
2064
- class Ge {
2709
+ class pt {
2065
2710
  get() {
2066
2711
  return {
2067
2712
  f2: "START_EDITING",
@@ -2083,7 +2728,7 @@ class Ge {
2083
2728
  };
2084
2729
  }
2085
2730
  }
2086
- class ze {
2731
+ class gt {
2087
2732
  constructor(e) {
2088
2733
  this.tableScope = e, this.shortcutActionIdMapping = {}, this.listener = [], this.listener.push(e), this.init();
2089
2734
  }
@@ -2104,7 +2749,7 @@ class ze {
2104
2749
  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));
2105
2750
  }
2106
2751
  assignPredefinedSystemShortcutMappings() {
2107
- this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new Ge().get()) : Object.assign(this.shortcutActionIdMapping, new Ne().get());
2752
+ this.isMacintosh() ? Object.assign(this.shortcutActionIdMapping, new pt().get()) : Object.assign(this.shortcutActionIdMapping, new ut().get());
2108
2753
  }
2109
2754
  isMacintosh() {
2110
2755
  return navigator.platform.indexOf("Mac") > -1;
@@ -2156,7 +2801,7 @@ class ze {
2156
2801
  return this.shortcutActionIdMapping;
2157
2802
  }
2158
2803
  }
2159
- class ae {
2804
+ class ye {
2160
2805
  onCheckboxChanged(e) {
2161
2806
  }
2162
2807
  onContextmenu(e) {
@@ -2176,7 +2821,7 @@ class ae {
2176
2821
  onFocusChanged(e) {
2177
2822
  }
2178
2823
  }
2179
- class Ue {
2824
+ class ft {
2180
2825
  setStyle(e, t, s) {
2181
2826
  return e.style[t] = s, e;
2182
2827
  }
@@ -2203,7 +2848,7 @@ class Ue {
2203
2848
  e.setAttribute(t, s);
2204
2849
  }
2205
2850
  }
2206
- class je {
2851
+ class mt {
2207
2852
  render(e, t, s, o, i, r, n) {
2208
2853
  if (i.isEditable(t, s)) {
2209
2854
  n.addClass(e, "ge-table-row-input-div");
@@ -2224,7 +2869,7 @@ class je {
2224
2869
  }
2225
2870
  }
2226
2871
  }
2227
- class ie {
2872
+ class ue {
2228
2873
  constructor(e = "none", t = "single") {
2229
2874
  this.selectionType = e, this.selectionMode = t, this.ranges = [], this.negativeRanges = [], this.allSelected = !1, this.silent = !1, this.listenerArr = [];
2230
2875
  }
@@ -2306,7 +2951,7 @@ class ie {
2306
2951
  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());
2307
2952
  }
2308
2953
  }
2309
- class Xe {
2954
+ class bt {
2310
2955
  constructor(e = "none") {
2311
2956
  this.selectionType = e, this.rowIndex = -1, this.columnIndex = -1, this.changed = !1, this.listenerArr = [];
2312
2957
  }
@@ -2343,7 +2988,7 @@ class Xe {
2343
2988
  return [this.rowIndex, this.columnIndex];
2344
2989
  }
2345
2990
  }
2346
- class re {
2991
+ class pe {
2347
2992
  constructor(e = new $(
2348
2993
  "❯",
2349
2994
  "",
@@ -2357,17 +3002,17 @@ class re {
2357
3002
  }
2358
3003
  // `⊖ `, `⊕ `;
2359
3004
  }
2360
- const Ke = new ie(), Ye = new Xe("cell");
2361
- class z {
3005
+ const yt = new ue(), xt = new bt("cell");
3006
+ class X {
2362
3007
  constructor() {
2363
3008
  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 = {
2364
3009
  header: 34,
2365
3010
  body: 34,
2366
3011
  footer: 34
2367
- }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new we(), this.headerGroupOptions = new re(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new ye(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new je(), this.getSelectionModel = () => Ke, this.getFocusModel = () => Ye;
3012
+ }, this.footerVerticalSeparator = !1, this.headerToggleExpandCollapseIcons = !1, this.headerVerticalSeparator = !1, this.treeOptions = new $e(), this.headerGroupOptions = new pe(), this.showCheckboxWihoutExtraColumn = !1, this.externalFilterFunction = void 0, this.sortedOptions = new Oe(), this.sortOrder = ["asc", "desc"], this.resizeEventDebounceDelay = 500, this.getEditRenderer = (e, t) => new mt(), this.getSelectionModel = () => yt, this.getFocusModel = () => xt;
2368
3013
  }
2369
3014
  }
2370
- const H = class H {
3015
+ const W = class W {
2371
3016
  /**
2372
3017
  * Returns the content to be copied based on the provided table model, selection model, and focus model.
2373
3018
  *
@@ -2385,14 +3030,14 @@ const H = class H {
2385
3030
  r.c2 = Math.min(r.c2, e.getColumnCount() - 1), r.r2 = Math.min(r.r2, e.getBodyModel().getRowCount() - 1);
2386
3031
  const n = [];
2387
3032
  for (let l = r.r1; l <= r.r2; l++) {
2388
- const c = [];
2389
- for (let a = r.c1; a <= r.c2; a++) {
2390
- const d = t.isSelected(l, a) ? e.getBodyModel().getTextValueAt(l, a) : "";
2391
- c.push(d);
3033
+ const a = [];
3034
+ for (let c = r.c1; c <= r.c2; c++) {
3035
+ const d = t.isSelected(l, c) ? e.getBodyModel().getTextValueAt(l, c) : "";
3036
+ a.push(d);
2392
3037
  }
2393
- n.push(c.join(H.columnSeparatorChar));
3038
+ n.push(a.join(W.columnSeparatorChar));
2394
3039
  }
2395
- return o(n.join(H.rowSeparatorChar));
3040
+ return o(n.join(W.rowSeparatorChar));
2396
3041
  }
2397
3042
  }
2398
3043
  if (s) {
@@ -2449,19 +3094,19 @@ const H = class H {
2449
3094
  return t;
2450
3095
  }
2451
3096
  };
2452
- H.columnSeparatorChar = " ", H.rowSeparatorChar = `
3097
+ W.columnSeparatorChar = " ", W.rowSeparatorChar = `
2453
3098
  `;
2454
- let U = H;
2455
- class Je {
3099
+ let J = W;
3100
+ class wt {
2456
3101
  constructor(e, t = 500) {
2457
- this.tableScope = e, this.debounceDelay = t, new ResizeObserver(Re(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
3102
+ this.tableScope = e, this.debounceDelay = t, new ResizeObserver(We(this.handleResize.bind(this), t)).observe(this.tableScope.hostElement);
2458
3103
  }
2459
3104
  handleResize(e) {
2460
3105
  const t = e[0], { width: s } = t.contentRect;
2461
3106
  this.tableScope.recalcColumnWidths(s);
2462
3107
  }
2463
3108
  }
2464
- class qe {
3109
+ class St {
2465
3110
  /**
2466
3111
  * Downloads a matrix data as an Excel file.
2467
3112
  *
@@ -2492,11 +3137,11 @@ class qe {
2492
3137
  <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"?>
2493
3138
  <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"?>
2494
3139
  <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"?>
2495
- <sst xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" count="3" uniqueCount="3"><si><t>a</t></si><si><t>b</t></si><si><t>c</t></si></sst>`, c = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2496
- <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>`, a = `<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
3140
+ <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"?>
3141
+ <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"?>
2497
3142
  <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"?>
2498
3143
  <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();
2499
- 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", c), u.set("xl/workbook.xml", a), u.set("[Content_Types].xml", d), u;
3144
+ 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;
2500
3145
  }
2501
3146
  getX1WorksheetsSheet1Xml(e) {
2502
3147
  const t = [];
@@ -2556,29 +3201,29 @@ class qe {
2556
3201
  });
2557
3202
  const r = new Uint8Array(22), n = new DataView(r.buffer);
2558
3203
  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);
2559
- const l = t.reduce((d, u) => d + u.length, 0), c = new Uint8Array(l);
2560
- let a = 0;
3204
+ const l = t.reduce((d, u) => d + u.length, 0), a = new Uint8Array(l);
3205
+ let c = 0;
2561
3206
  for (const d of t)
2562
- c.set(d, a), a += d.length;
2563
- return c;
3207
+ a.set(d, c), c += d.length;
3208
+ return a;
2564
3209
  }
2565
3210
  generateBuffer(e, t = "") {
2566
3211
  const s = this.generateMap(e, t);
2567
3212
  return this.createZip(s);
2568
3213
  }
2569
3214
  }
2570
- class Se extends _e {
2571
- constructor(e, t, s, o, i, r = new U(), n = new qe()) {
2572
- var a;
2573
- if (super(e, t, new Me(s), o), this.eventListener = i, this.copyService = r, this.excelService = n, this.licenseManager = B.getInstance(), this.selectionService = new Ve(this), this.api = new Ie(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 ae()), (a = this.tableOptions) != null && a.autoRestoreOptions) {
3215
+ class _e extends lt {
3216
+ constructor(e, t, s, o, i, r = new J(), n = new St()) {
3217
+ var c;
3218
+ 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) {
2574
3219
  const d = this.tableOptions.autoRestoreOptions, u = d.getStorageKeyFn;
2575
- u && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new De(u)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new Le(u)), d.autoRestoreSortingState && (this.storeSortingService = new $e(u)));
3220
+ u && (d.autoRestoreScrollPosition && (this.storeScrollPosStateService = new tt(u)), d.autoRestoreCollapsedExpandedState && (this.storeStateCollapsedExpandService = new ot(u)), d.autoRestoreSortingState && (this.storeSortingService = new it(u)));
2576
3221
  }
2577
- this.mouseHandler = new ke(this), this.inputHandler = new He(this), this.resizeHandler = new Je(this, o.resizeEventDebounceDelay), this.shortcutService = new ze(this), this.shortcutService.addListener(this.selectionService);
3222
+ 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);
2578
3223
  const l = this.getSelectionModel ? this.getSelectionModel() : void 0;
2579
3224
  l && l.addEventSelectionChangedListener(this);
2580
- const c = this.getFocusModel ? this.getFocusModel() : void 0;
2581
- c && c.addEventFocusChangedListener(this);
3225
+ const a = this.getFocusModel ? this.getFocusModel() : void 0;
3226
+ a && a.addEventFocusChangedListener(this);
2582
3227
  }
2583
3228
  /**
2584
3229
  * Creates a TableScope instance.
@@ -2592,8 +3237,8 @@ class Se extends _e {
2592
3237
  *
2593
3238
  * @return {TableScope} - The newly created TableScope instance.
2594
3239
  */
2595
- static create(e, t, s = new z(), o = new ae(), i = new Ue(), r = new U()) {
2596
- return new Se(e, t, i, s, o, r);
3240
+ static create(e, t, s = new X(), o = new ye(), i = new ft(), r = new J()) {
3241
+ return new _e(e, t, i, s, o, r);
2597
3242
  }
2598
3243
  /**
2599
3244
  * Triggers an action based on the provided actionId.
@@ -2621,7 +3266,7 @@ class Se extends _e {
2621
3266
  return !1;
2622
3267
  }
2623
3268
  updateModelValueAfterEdit(e, t, s, o) {
2624
- e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(oe.createSingle(t, s)), this.hostElement.focus());
3269
+ e === "body" && this.tableModel.getAreaModel(e).setValue(t, s, o) && (this.resetEditorRenderer(), this.repaint(), this.eventListener.onModelChanged(he.createSingle(t, s)), this.hostElement.focus());
2625
3270
  }
2626
3271
  /**
2627
3272
  * Retrieves the TableApi object.
@@ -2650,7 +3295,7 @@ class Se extends _e {
2650
3295
  * @return {GeMouseEvent} - The created GeMouseEvent object.
2651
3296
  */
2652
3297
  createGeMouseEvent(e) {
2653
- const t = new te();
3298
+ const t = new ce();
2654
3299
  if (t.originalEvent = e, e) {
2655
3300
  const s = e.target;
2656
3301
  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) {
@@ -2720,7 +3365,7 @@ class Se extends _e {
2720
3365
  toggleExpandCollapseAll(e = !0) {
2721
3366
  var s;
2722
3367
  const t = this.tableModel.getBodyModel();
2723
- Z(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
3368
+ ie(t) && (t.toggleExpandCollapseAll(e), this.repaint(), (s = this.storeStateCollapsedExpandService) == null || s.collapsedStateAll(e));
2724
3369
  }
2725
3370
  /**
2726
3371
  * Toggles the checkbox state of a specific row in a table.
@@ -2790,8 +3435,8 @@ class Se extends _e {
2790
3435
  const o = this.tableModel.getColumnDef(s);
2791
3436
  if (o != null && o.sortable && o.sortable()) {
2792
3437
  e.preventDefault(), e.stopPropagation();
2793
- const n = o.sortStatesOrder ? o.sortStatesOrder : this.tableOptions.sortOrder, l = o.sortState ?? "", c = n[(n.indexOf(l) + 1) % n.length], a = new Be(s, c);
2794
- this.tableModel.doSort([a]) && ((i = this.tableModel.getColumnDefs()) == null || i.forEach((u) => u.sortState = ""), o.sortState = c), this.repaint(), (r = this.storeSortingService) == null || r.setSortItems([a]);
3438
+ 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);
3439
+ 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]);
2795
3440
  }
2796
3441
  }
2797
3442
  /**
@@ -2936,18 +3581,18 @@ class Se extends _e {
2936
3581
  const s = this.tableOptions.autoRestoreOptions, o = s.getRowId;
2937
3582
  if (s.autoRestoreCollapsedExpandedState && o) {
2938
3583
  const i = this.storeStateCollapsedExpandService.collapsedExpandedStateGet(), r = this.tableModel.getAreaModel("body");
2939
- if (Z(r)) {
3584
+ if (ie(r)) {
2940
3585
  const n = r, l = r.getRowCount();
2941
- for (let c = 0; c < l; c++) {
2942
- const a = r.getRowByIndex(c);
2943
- if (a)
3586
+ for (let a = 0; a < l; a++) {
3587
+ const c = r.getRowByIndex(a);
3588
+ if (c)
2944
3589
  if (i.allExpanded)
2945
- a.expanded = !0;
3590
+ c.expanded = !0;
2946
3591
  else if (i.allCollapsed)
2947
- a.expanded = !1;
3592
+ c.expanded = !1;
2948
3593
  else {
2949
- const d = o(a.data);
2950
- i.mode === "expanded" ? a.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d) : i.mode === "collapsed" && (a.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d));
3594
+ const d = o(c.data);
3595
+ i.mode === "expanded" ? c.expanded = this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d) : i.mode === "collapsed" && (c.expanded = !this.storeStateCollapsedExpandService.collapsedExpandedStateIncludes(d));
2951
3596
  }
2952
3597
  }
2953
3598
  n.recalcVisibleTreeRows();
@@ -2982,9 +3627,9 @@ class Se extends _e {
2982
3627
  this.tableModel.recalcPadding(), this.resetSizeOfWrapperDiv(), this.adjustContainersAndRows();
2983
3628
  }
2984
3629
  }
2985
- const j = class j {
3630
+ const q = class q {
2986
3631
  };
2987
- j.themes = ["light", "combat", "paper", "blackboard"], j.vars = {
3632
+ q.themes = ["light", "combat", "paper", "blackboard"], q.vars = {
2988
3633
  light: `html[data-theme="light"] {
2989
3634
  --ge-table-bg: rgba(255,255,255, 0.5);
2990
3635
  --ge-table-header-west-bg: rgba(233, 233, 233, 0.5);
@@ -3218,31 +3863,31 @@ j.themes = ["light", "combat", "paper", "blackboard"], j.vars = {
3218
3863
  --ge-table-drop-zone-bg: #758129;
3219
3864
  }`
3220
3865
  };
3221
- let ce = j;
3222
- class de {
3866
+ let xe = q;
3867
+ class we {
3223
3868
  constructor(e, t = !0, s, o, i = 0, r = !1, n = !1) {
3224
3869
  this.data = e, this.expanded = t, this.children = s, this.parent = o, this.deep = i, this.checked = r, this.keep = n, this.type = "TreeRow";
3225
3870
  }
3226
3871
  }
3227
- class Q {
3872
+ class re {
3228
3873
  static buildTreeRows(e, t = "children", s = 12) {
3229
3874
  const o = [];
3230
3875
  for (const i of e)
3231
- o.push(Q.buildTreeRow(i, t, void 0, 0, s));
3876
+ o.push(re.buildTreeRow(i, t, void 0, 0, s));
3232
3877
  return o;
3233
3878
  }
3234
- static buildTreeRow(e, t = "children", s = new de(e, !0, [], void 0, 0), o = 0, i = 12) {
3879
+ static buildTreeRow(e, t = "children", s = new we(e, !0, [], void 0, 0), o = 0, i = 12) {
3235
3880
  var n;
3236
3881
  if (o > i)
3237
3882
  return console.warn("Max deep limit reached: ", o), s;
3238
3883
  const r = e[t];
3239
3884
  if (r)
3240
3885
  for (const l of r) {
3241
- const c = new de(l, !0, [], s, o + 1);
3242
- if ((n = s.children) == null || n.push(c), Q.buildTreeRow(
3886
+ const a = new we(l, !0, [], s, o + 1);
3887
+ if ((n = s.children) == null || n.push(a), re.buildTreeRow(
3243
3888
  l,
3244
3889
  t,
3245
- c,
3890
+ a,
3246
3891
  o + 1
3247
3892
  ), o > i)
3248
3893
  return console.warn("Max deep limit reached: ", o), s;
@@ -3250,46 +3895,46 @@ class Q {
3250
3895
  return s;
3251
3896
  }
3252
3897
  }
3253
- class V {
3898
+ class G {
3254
3899
  constructor(e = 34, t = 34, s = 34) {
3255
3900
  this.header = e, this.body = t, this.footer = s;
3256
3901
  }
3257
3902
  }
3258
- class x {
3903
+ class y {
3259
3904
  constructor(e = 100, t = "px") {
3260
3905
  this.value = e, this.unit = t;
3261
3906
  }
3262
3907
  }
3263
- const Ze = () => !0, he = () => !1;
3264
- class _ {
3265
- constructor(e, t, s = new x(100, "px"), o = new k(), i = new k(), r = new x(100, "px"), n = new x(100, "px"), l, c, a, d, u, f, p, m, g = () => this.visible) {
3266
- 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 = c, this.sortState = a, 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 x(0, "px"), this.maxWidth = new x(1e5, "px"));
3908
+ const Ct = () => !0, Se = () => !1;
3909
+ class H {
3910
+ 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) {
3911
+ 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"));
3267
3912
  }
3268
3913
  static bodyRenderer(e) {
3269
- return new k(
3914
+ return new I(
3270
3915
  void 0,
3271
3916
  e,
3272
3917
  void 0
3273
3918
  );
3274
3919
  }
3275
3920
  static create(e) {
3276
- const t = new k(
3921
+ const t = new I(
3277
3922
  e.headerRenderer,
3278
3923
  e.bodyRenderer,
3279
3924
  e.footerRenderer
3280
- ), s = new k(
3925
+ ), s = new I(
3281
3926
  e.headerClasses,
3282
3927
  e.bodyClasses,
3283
3928
  e.footerClasses
3284
- ), o = e.sortIconVisible ?? e.sortable ?? he, i = e.editable ?? e.editable ?? he, r = e.isVisible ?? e.isVisible ?? Ze;
3285
- return new _(
3929
+ ), o = e.sortIconVisible ?? e.sortable ?? Se, i = e.editable ?? e.editable ?? Se, r = e.isVisible ?? e.isVisible ?? Ct;
3930
+ return new H(
3286
3931
  e.property ?? "",
3287
3932
  e.headerLabel ?? "",
3288
- e.width ?? new x(100, "px"),
3933
+ e.width ?? new y(100, "px"),
3289
3934
  s,
3290
3935
  t,
3291
- e.minWidth ?? new x(100, "px"),
3292
- e.maxWidth ?? new x(100, "px"),
3936
+ e.minWidth ?? new y(100, "px"),
3937
+ e.maxWidth ?? new y(100, "px"),
3293
3938
  e.sortable,
3294
3939
  e.sortComparator,
3295
3940
  e.sortState,
@@ -3302,8 +3947,8 @@ class _ {
3302
3947
  );
3303
3948
  }
3304
3949
  }
3305
- const pt = new x(500, "px"), ft = new x(400, "px"), Qe = new x(300, "px"), mt = new x(290, "px"), bt = new x(280, "px"), xt = new x(270, "px"), wt = new x(260, "px"), yt = new x(250, "px"), St = new x(240, "px"), Ct = new x(230, "px"), vt = new x(220, "px"), At = new x(210, "px"), ue = new x(200, "px"), Rt = new x(190, "px"), Et = new x(180, "px"), Mt = new x(170, "px"), Tt = new x(160, "px"), kt = new x(150, "px"), It = new x(140, "px"), Dt = new x(130, "px"), Ft = new x(120, "px"), Lt = new x(110, "px"), $t = new x(100, "px"), Pt = new x(90, "px"), Ot = new x(80, "px"), _t = new x(70, "px"), Bt = new x(60, "px"), Ht = new x(50, "px"), Wt = new x(40, "px"), Vt = new x(30, "px"), Nt = new x(20, "px"), Gt = new x(10, "px"), zt = new x(0, "px");
3306
- class ne {
3950
+ 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");
3951
+ class ge {
3307
3952
  constructor(e, t = [], s = -1) {
3308
3953
  this.areaIdent = e, this.columnDefs = t, this.defaultRowHeight = s, this.rowSelectionModel = void 0, this.yPositions = [], this.cellRenderers = t.map((o) => o.rendererMap[e]);
3309
3954
  }
@@ -3399,7 +4044,7 @@ class ne {
3399
4044
  this.yPositions[t + 1] = this.getRowHeight(t) + this.yPositions[t];
3400
4045
  }
3401
4046
  }
3402
- class D extends ne {
4047
+ class P extends ge {
3403
4048
  constructor(e, t, s, o = []) {
3404
4049
  super(e, o, s), this.areaIdent = e, this.arr = t, this.defaultRowHeight = s, this.columnDefs = o, this.filteredArr = [...t];
3405
4050
  }
@@ -3499,7 +4144,7 @@ class F {
3499
4144
  changeColumnOrder(e, t) {
3500
4145
  }
3501
4146
  }
3502
- class et {
4147
+ class At {
3503
4148
  flattenTree(e, t = []) {
3504
4149
  var s;
3505
4150
  for (const o of e)
@@ -3510,7 +4155,7 @@ class et {
3510
4155
  return e.parent ? e.parent.expanded ? this.isVisible(e.parent) : !1 : !0;
3511
4156
  }
3512
4157
  }
3513
- class Ce {
4158
+ class Be {
3514
4159
  genericSortComparator(e, t, s) {
3515
4160
  if (typeof e == "number" && typeof t == "number")
3516
4161
  return s * (e - t);
@@ -3528,9 +4173,9 @@ class Ce {
3528
4173
  return s * ("" + e).localeCompare("" + t);
3529
4174
  }
3530
4175
  }
3531
- class ge extends ne {
4176
+ class ve extends ge {
3532
4177
  constructor(e, t, s, o = []) {
3533
- super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.type = "AreaModelTree", this.sorterService = new Ce(), this.service = new et(), this.properties = o.map((i) => i.property), this.flattenRows = this.service.flattenTree(t), this.filteredFlattenRows = [...this.flattenRows];
4178
+ 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];
3534
4179
  }
3535
4180
  changeColumnOrder(e, t) {
3536
4181
  this.arrayMove(this.properties, e, t), super.changeColumnOrder(e, t);
@@ -3632,7 +4277,7 @@ class ge extends ne {
3632
4277
  o.children && this.treeSort(o.children, t, s);
3633
4278
  }
3634
4279
  }
3635
- class pe {
4280
+ class Ae {
3636
4281
  constructor(e = []) {
3637
4282
  this.allRootNodes = e;
3638
4283
  }
@@ -3692,12 +4337,12 @@ class pe {
3692
4337
  s.checked && t.push(s), s.children && this.addSelectedRecursive(s.children, t);
3693
4338
  }
3694
4339
  }
3695
- class fe {
4340
+ class Re {
3696
4341
  constructor(e = 0, t = 0, s = 0, o = 0) {
3697
4342
  this.top = e, this.right = t, this.bottom = s, this.left = o;
3698
4343
  }
3699
4344
  }
3700
- class tt {
4345
+ class Rt {
3701
4346
  constructor() {
3702
4347
  this.checkedRows = [];
3703
4348
  }
@@ -3728,11 +4373,11 @@ class tt {
3728
4373
  }
3729
4374
  }
3730
4375
  }
3731
- class J {
3732
- constructor(e, t, s, o = 0, i = 0, r = !1, n = new V(), l = [], c = [], a = -1, d = 0, u = 400, f = () => {
4376
+ class se {
4377
+ constructor(e, t, s, o = 0, i = 0, r = !1, n = new G(), l = [], a = [], c = -1, d = 0, u = 400, f = () => {
3733
4378
  }) {
3734
4379
  var p, m, g, b;
3735
- 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 = c, this.overridingColumnWidth = a, this.columnCount = d, this.parentSize = u, this.getSelectionModel = f, this.rowCount = 0, this.contentHeightInPx = 0, this.contentWidthInPx = 0, this.padding = new fe(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 && Ee(this.columnDefs[0]) && !t.rowSelectionModel && (t.rowSelectionModel = new tt());
4380
+ 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());
3736
4381
  }
3737
4382
  init() {
3738
4383
  this.recalcSize(this.parentSize), this.overridingColumnWidth === -1 && this.calcXPositions(), this.headerAreaModel && this.headerAreaModel.init(), this.bodyAreaModel && this.bodyAreaModel.init(), this.footerAreaModel && this.footerAreaModel.init();
@@ -3816,7 +4461,7 @@ class J {
3816
4461
  */
3817
4462
  recalcPadding() {
3818
4463
  const e = this.getSideAreaWidth("west"), t = this.getSideAreaWidth("east"), s = this.getAreaHeight("header"), o = this.getAreaHeight("footer");
3819
- this.padding = new fe(
4464
+ this.padding = new Re(
3820
4465
  s,
3821
4466
  t,
3822
4467
  o,
@@ -4058,31 +4703,31 @@ class J {
4058
4703
  var t, s, o;
4059
4704
  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) {
4060
4705
  const i = this.columnDefs.filter((l) => {
4061
- var c;
4062
- return ((c = l.width) == null ? void 0 : c.unit) === "weight";
4706
+ var a;
4707
+ return ((a = l.width) == null ? void 0 : a.unit) === "weight";
4063
4708
  });
4064
4709
  this.columnSizes = this.columnDefs.map((l) => {
4065
4710
  if (l.width.unit === "%" && e) {
4066
- let c = Math.floor(l.width.value * e / 100);
4711
+ let a = Math.floor(l.width.value * e / 100);
4067
4712
  if (l.minWidth) {
4068
- const a = this.sizeToPixel(l.minWidth, e);
4069
- c = Math.max(a, c);
4713
+ const c = this.sizeToPixel(l.minWidth, e);
4714
+ a = Math.max(c, a);
4070
4715
  }
4071
4716
  if (l.maxWidth) {
4072
- const a = this.sizeToPixel(l.maxWidth, e);
4073
- c = Math.min(a, c);
4717
+ const c = this.sizeToPixel(l.maxWidth, e);
4718
+ a = Math.min(c, a);
4074
4719
  }
4075
- return c;
4720
+ return a;
4076
4721
  } else if (l.width.unit === "px" && e)
4077
4722
  return l.width.value;
4078
4723
  return 0;
4079
4724
  });
4080
- const r = this.columnSizes.reduce((l, c) => l + c), n = e - r;
4725
+ const r = this.columnSizes.reduce((l, a) => l + a), n = e - r;
4081
4726
  if (n > 0 && i.length) {
4082
- const l = i.map((c) => c.width.value).reduce((c, a) => c + a);
4083
- for (let c = 0; c < this.columnDefs.length; c++) {
4084
- const a = this.columnDefs[c];
4085
- a.width.unit === "weight" && (this.columnSizes[c] = a.width.value * n / l);
4727
+ const l = i.map((a) => a.width.value).reduce((a, c) => a + c);
4728
+ for (let a = 0; a < this.columnDefs.length; a++) {
4729
+ const c = this.columnDefs[a];
4730
+ c.width.unit === "weight" && (this.columnSizes[a] = c.width.value * n / l);
4086
4731
  }
4087
4732
  }
4088
4733
  }
@@ -4118,9 +4763,9 @@ class J {
4118
4763
  return this.tableScope;
4119
4764
  }
4120
4765
  }
4121
- class st extends ne {
4766
+ class Et extends ge {
4122
4767
  constructor(e, t, s, o = []) {
4123
- super(e, o, s), this.areaIdent = e, this.rows = t, this.defaultRowHeight = s, this.columnDefs = o, this.sorterService = new Ce(), this.filteredRows = [...t], this.properties = o.map((i) => i.property);
4768
+ 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);
4124
4769
  }
4125
4770
  setRows(e) {
4126
4771
  this.rows = e, this.filteredRows = [...e];
@@ -4135,7 +4780,7 @@ class st extends ne {
4135
4780
  getValueAt(e, t) {
4136
4781
  const s = this.properties[t];
4137
4782
  let o = this.filteredRows[e];
4138
- return W(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
4783
+ return N(o) && (o = o.data), o ? this.getValueByT(o, s) : "";
4139
4784
  }
4140
4785
  getFilteredRows() {
4141
4786
  return this.filteredRows;
@@ -4176,7 +4821,7 @@ class st extends ne {
4176
4821
  return o && t.length ? this.getPropertyValue(o, t) : o;
4177
4822
  }
4178
4823
  }
4179
- class me extends st {
4824
+ class Ee extends Et {
4180
4825
  constructor(e, t, s, o) {
4181
4826
  super(
4182
4827
  e,
@@ -4186,7 +4831,7 @@ class me extends st {
4186
4831
  ), this.areaIdent = e, this.rows = t, this.columnDefs = s, this.defaultRowHeight = o;
4187
4832
  }
4188
4833
  }
4189
- class O {
4834
+ class _ {
4190
4835
  /**
4191
4836
  * TableFactory
4192
4837
  *
@@ -4224,12 +4869,12 @@ class O {
4224
4869
  * Please consult each method's documentation for detailed explanation of their functionality.
4225
4870
  */
4226
4871
  static createTableModel(e) {
4227
- var t, s, o, i, r, n, l, c, a, d, u, f, p, m;
4872
+ var t, s, o, i, r, n, l, a, c, d, u, f, p, m;
4228
4873
  if (e.defaultRowHeights === void 0)
4229
4874
  if ((t = e.tableOptions) != null && t.defaultRowHeights)
4230
4875
  e.defaultRowHeights = e.tableOptions.defaultRowHeights;
4231
4876
  else {
4232
- if (e.defaultRowHeights = new V(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
4877
+ if (e.defaultRowHeights = new G(), e.headerAreaModel && "defaultRowHeight" in e.headerAreaModel) {
4233
4878
  const g = e.headerAreaModel.defaultRowHeight;
4234
4879
  g > -1 && (e.defaultRowHeights.header = g);
4235
4880
  }
@@ -4242,45 +4887,45 @@ class O {
4242
4887
  g > -1 && (e.defaultRowHeights.footer = g);
4243
4888
  }
4244
4889
  }
4245
- if (e.columnDefs === void 0 && ((s = e.properties) != null && s.length ? e.columnDefs = e.properties.map((g) => new _(g, g.toUpperCase(), ue)) : (o = e.rows) != null && o.length ? e.columnDefs = Object.keys(e.rows[0]).map((g) => new _(g, g.toUpperCase(), ue)) : 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 || ((c = e.headerData) != null && c.length ? e.headerAreaModel = new D(
4890
+ 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(
4246
4891
  "header",
4247
4892
  e.headerData,
4248
4893
  e.defaultRowHeights.header,
4249
4894
  e.columnDefs
4250
- ) : (a = e.columnDefs) != null && a.length ? e.headerAreaModel = new D(
4895
+ ) : (c = e.columnDefs) != null && c.length ? e.headerAreaModel = new P(
4251
4896
  "header",
4252
4897
  [e.columnDefs.map((g) => g.headerLabel)],
4253
4898
  e.defaultRowHeights.header,
4254
4899
  e.columnDefs
4255
- ) : e.headerAreaModel = new F("header")), e.footerAreaModel || ((d = e.footerData) != null && d.length ? e.footerAreaModel = new D(
4900
+ ) : e.headerAreaModel = new F("header")), e.footerAreaModel || ((d = e.footerData) != null && d.length ? e.footerAreaModel = new P(
4256
4901
  "footer",
4257
4902
  e.footerData,
4258
4903
  e.defaultRowHeights.footer,
4259
4904
  e.columnDefs
4260
4905
  ) : e.footerAreaModel = new F("footer")), !e.bodyAreaModel)
4261
4906
  if (e.rows)
4262
- if ((u = e.rows) != null && u.length && W(e.rows[0])) {
4907
+ if ((u = e.rows) != null && u.length && N(e.rows[0])) {
4263
4908
  const g = e.rows;
4264
- e.bodyAreaModel = new ge(
4909
+ e.bodyAreaModel = new ve(
4265
4910
  "body",
4266
4911
  g,
4267
4912
  e.defaultRowHeights.body,
4268
4913
  e.columnDefs
4269
- ), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new pe(g));
4914
+ ), (e.columnDefs[0].property === "CheckboxColumn" || (f = e.tableOptions) != null && f.showCheckboxWihoutExtraColumn) && (e.bodyAreaModel.rowSelectionModel = new Ae(g));
4270
4915
  } else
4271
- e.bodyAreaModel = new me(
4916
+ e.bodyAreaModel = new Ee(
4272
4917
  "body",
4273
4918
  e.rows,
4274
4919
  e.columnDefs,
4275
4920
  e.defaultRowHeights.body
4276
4921
  );
4277
4922
  else
4278
- e.bodyData ? e.bodyAreaModel = new D(
4923
+ e.bodyData ? e.bodyAreaModel = new P(
4279
4924
  "body",
4280
4925
  e.bodyData,
4281
4926
  e.defaultRowHeights.body
4282
4927
  ) : e.bodyAreaModel = new F("body");
4283
- 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 J(
4928
+ 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(
4284
4929
  e.headerAreaModel,
4285
4930
  e.bodyAreaModel,
4286
4931
  e.footerAreaModel,
@@ -4314,10 +4959,10 @@ class O {
4314
4959
  * @method
4315
4960
  */
4316
4961
  static buildByTypedRowsParam(e) {
4317
- return O.buildByTypedRows(
4962
+ return _.buildByTypedRows(
4318
4963
  e.rows ?? [],
4319
4964
  e.columnDefs,
4320
- e.tableOptions ?? new z(),
4965
+ e.tableOptions ?? new X(),
4321
4966
  e.fixedLeftColumnCount ?? 0,
4322
4967
  e.fixedRightColumnCount ?? 0
4323
4968
  );
@@ -4358,19 +5003,19 @@ class O {
4358
5003
  * columnDef is "CheckboxColumn". If the first column is not a checkbox column, ensure that the first columnDef does not have "CheckboxColumn"
4359
5004
  * as its property.
4360
5005
  */
4361
- static buildByTypedRows(e, t, s = new z(), o = 0, i = 0) {
5006
+ static buildByTypedRows(e, t, s = new X(), o = 0, i = 0) {
4362
5007
  const r = s.defaultRowHeights, n = t[0].property === "CheckboxColumn";
4363
- if (e != null && e.length && W(e[0])) {
4364
- const c = e, a = new ge(
5008
+ if (e != null && e.length && N(e[0])) {
5009
+ const a = e, c = new ve(
4365
5010
  "body",
4366
- c,
5011
+ a,
4367
5012
  r.body,
4368
5013
  t
4369
5014
  );
4370
- return (n || s.showCheckboxWihoutExtraColumn) && (a.rowSelectionModel = new pe(c)), O.createByAreaModelsParam({
4371
- headerAreaModel: new D("header", [t.map((d) => d.headerLabel)], r.header),
4372
- bodyAreaModel: a,
4373
- footerAreaModel: new D("footer", [], r.footer),
5015
+ return (n || s.showCheckboxWihoutExtraColumn) && (c.rowSelectionModel = new Ae(a)), _.createByAreaModelsParam({
5016
+ headerAreaModel: new P("header", [t.map((d) => d.headerLabel)], r.header),
5017
+ bodyAreaModel: c,
5018
+ footerAreaModel: new P("footer", [], r.footer),
4374
5019
  columnDefs: t,
4375
5020
  fixedLeftColumnCount: o,
4376
5021
  fixedRightColumnCount: i,
@@ -4381,7 +5026,7 @@ class O {
4381
5026
  overridingColumnWidth: -1
4382
5027
  });
4383
5028
  }
4384
- return O.createByObjectArrayParam({
5029
+ return _.createByObjectArrayParam({
4385
5030
  rows: e,
4386
5031
  columnDefs: t,
4387
5032
  fixedLeftColumnCount: o,
@@ -4435,14 +5080,14 @@ class O {
4435
5080
  */
4436
5081
  static createByObjectArrayParam(e) {
4437
5082
  const t = e.rowCheckboxVisible !== void 0 ? e.rowCheckboxVisible : !1;
4438
- return O.createByObjectArray(
5083
+ return _.createByObjectArray(
4439
5084
  e.rows,
4440
5085
  e.header ?? [],
4441
5086
  e.footer ?? [],
4442
5087
  e.fixedLeftColumnCount ?? 0,
4443
5088
  e.fixedRightColumnCount ?? 0,
4444
5089
  t,
4445
- e.defaultRowHeights ?? new V(),
5090
+ e.defaultRowHeights ?? new G(),
4446
5091
  e.columnDefs ?? [],
4447
5092
  e.columnSizes ?? []
4448
5093
  );
@@ -4488,8 +5133,8 @@ class O {
4488
5133
  * @return A new instance of `TableModel` is created using the provided parameters.
4489
5134
  * If a parameter isn't provided, the default value is used.
4490
5135
  */
4491
- static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, n = new V(), l, c = [], a = -1, d) {
4492
- return new J(
5136
+ static createByAreaModels(e = new F(), t, s = new F(), o = 0, i = 0, r = !1, n = new G(), l, a = [], c = -1, d) {
5137
+ return new se(
4493
5138
  e,
4494
5139
  t,
4495
5140
  s,
@@ -4498,8 +5143,8 @@ class O {
4498
5143
  r,
4499
5144
  n,
4500
5145
  l,
4501
- c,
4502
5146
  a,
5147
+ c,
4503
5148
  d
4504
5149
  );
4505
5150
  }
@@ -4540,7 +5185,7 @@ class O {
4540
5185
  * });
4541
5186
  */
4542
5187
  static createByAreaModelsParam(e) {
4543
- return O.createByAreaModels(
5188
+ return _.createByAreaModels(
4544
5189
  e.headerAreaModel ?? new F(),
4545
5190
  e.bodyAreaModel,
4546
5191
  e.footerAreaModel ?? new F(),
@@ -4602,12 +5247,12 @@ class O {
4602
5247
  *
4603
5248
  * Reference: For more details regarding the `DefaultRowHeightsIf`, `ColumnDefIf`, `AreaModelIf`, and `AreaModelArrayOfArrays` classes/interfaces, please refer to the respective API documents.
4604
5249
  */
4605
- static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new V(), l, c = []) {
4606
- let a;
4607
- t != null && t.length ? a = new D("header", t, n.header, l) : l != null && l.length ? a = new D("header", [l.map((f) => f.headerLabel)], n.header, l) : a = new F();
4608
- const d = s ? new D("footer", s, n.footer, l) : new F(), u = new me("body", e, l, n.body);
4609
- return new J(
4610
- a,
5250
+ static createByObjectArray(e, t = [], s = [], o = 0, i = 0, r = !1, n = new G(), l, a = []) {
5251
+ let c;
5252
+ 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();
5253
+ const d = s ? new P("footer", s, n.footer, l) : new F(), u = new Ee("body", e, l, n.body);
5254
+ return new se(
5255
+ c,
4611
5256
  u,
4612
5257
  d,
4613
5258
  o,
@@ -4615,11 +5260,11 @@ class O {
4615
5260
  r,
4616
5261
  n,
4617
5262
  l,
4618
- c
5263
+ a
4619
5264
  );
4620
5265
  }
4621
5266
  }
4622
- const Ut = [
5267
+ const ys = [
4623
5268
  "COPY_2_CLIPBOARD",
4624
5269
  "START_EDITING",
4625
5270
  "TOGGLE_SELECTION",
@@ -4637,17 +5282,17 @@ const Ut = [
4637
5282
  // "PAGEUP_PRESSED",
4638
5283
  // "PAGEDOWN_PRESSED"
4639
5284
  ];
4640
- class ot {
5285
+ class Mt {
4641
5286
  constructor(e, t) {
4642
5287
  this.tableModel = e, this.tableOptions = t;
4643
5288
  }
4644
5289
  }
4645
- class it {
5290
+ class Tt {
4646
5291
  constructor(e, t, s, o, i, r, n) {
4647
5292
  this.emmitDataKey = e, this.emmitCancelKey = t, this.queryId = s, this.filter = o, this.sorting = i, this.startIndex = r, this.endIndex = n;
4648
5293
  }
4649
5294
  }
4650
- class jt extends it {
5295
+ class xs extends Tt {
4651
5296
  constructor(e, t, s, o, i, r, n, l) {
4652
5297
  super(
4653
5298
  e,
@@ -4660,34 +5305,34 @@ class jt extends it {
4660
5305
  ), this.rows = l;
4661
5306
  }
4662
5307
  }
4663
- class rt {
5308
+ class It {
4664
5309
  constructor(e, t) {
4665
5310
  this.value = e, this.label = t;
4666
5311
  }
4667
5312
  }
4668
- class Xt {
5313
+ class ws {
4669
5314
  constructor(e, t) {
4670
5315
  this.index = e, this.px = t;
4671
5316
  }
4672
5317
  }
4673
- const Kt = { body: ["ge-table-text-align-left"] }, Yt = { body: ["ge-table-text-align-center"] }, Jt = { body: ["ge-table-text-align-right"] }, qt = {
5318
+ const Ss = { body: ["ge-table-text-align-left"] }, Cs = { body: ["ge-table-text-align-center"] }, vs = { body: ["ge-table-text-align-right"] }, As = {
4674
5319
  header: ["ge-table-text-align-left"],
4675
5320
  body: ["ge-table-text-align-left"],
4676
5321
  footer: ["ge-table-text-align-left"]
4677
- }, Zt = {
5322
+ }, Rs = {
4678
5323
  header: ["ge-table-text-align-center"],
4679
5324
  body: ["ge-table-text-align-center"],
4680
5325
  footer: ["ge-table-text-align-center"]
4681
- }, Qt = {
5326
+ }, Es = {
4682
5327
  header: ["ge-table-text-align-right"],
4683
5328
  body: ["ge-table-text-align-right"],
4684
5329
  footer: ["ge-table-text-align-right"]
4685
5330
  };
4686
- class be {
5331
+ class Me {
4687
5332
  render(e, t, s, o, i, r, n) {
4688
5333
  if (i.isRowCheckable(t)) {
4689
5334
  n.addClass(e, "ge-table-row-checkbox-div");
4690
- const l = i.isRowChecked(t), c = l === "full" ? "checked" : "", a = l === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
5335
+ const l = i.isRowChecked(t), a = l === "full" ? "checked" : "", c = l === "semi" ? '<span style="opacity: 0.4;">✓<span>' : "";
4691
5336
  e.innerHTML = `
4692
5337
  <input
4693
5338
  type="checkbox"
@@ -4695,22 +5340,22 @@ class be {
4695
5340
  data-row-index="${t}"
4696
5341
  data-col-index="${s}"
4697
5342
  data-input-type="checkbox"
4698
- ${c}
5343
+ ${a}
4699
5344
  class="ge-table-row-checkbox">
4700
- ${a} `;
5345
+ ${c} `;
4701
5346
  }
4702
5347
  }
4703
5348
  }
4704
- class es {
5349
+ class Ms {
4705
5350
  constructor() {
4706
- this.type = "CheckboxColumnDef", this.property = "CheckboxColumn", this.headerLabel = "", this.width = new x(50, "px"), this.minWidth = new x(50, "px"), this.maxWidth = new x(100, "px"), this.rendererMap = new k(new be(), new be(), void 0), this.classes = new k(
5351
+ 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(
4707
5352
  [],
4708
5353
  ["ge-table-text-align-left"],
4709
5354
  []
4710
5355
  );
4711
5356
  }
4712
5357
  }
4713
- class ts {
5358
+ class Ts {
4714
5359
  /**
4715
5360
  * A factory that creates a new AreaObjectMap with the given body renderer.
4716
5361
  *
@@ -4718,24 +5363,24 @@ class ts {
4718
5363
  * @returns {AreaObjectMap<CellRendererIf>} The newly created AreaObjectMap.
4719
5364
  */
4720
5365
  static body(e) {
4721
- return new k(
5366
+ return new I(
4722
5367
  void 0,
4723
5368
  e,
4724
5369
  void 0
4725
5370
  );
4726
5371
  }
4727
5372
  }
4728
- class ss {
5373
+ class Is {
4729
5374
  constructor(e = "down", t) {
4730
5375
  this.status = e, this.originalEvent = t;
4731
5376
  }
4732
5377
  }
4733
- class os {
5378
+ class ks {
4734
5379
  constructor(e, t, s, o, i = {}) {
4735
5380
  this.area = e, this.rowIndex = t, this.columnIndex = s, this.value = o, this.cssClasses = i;
4736
5381
  }
4737
5382
  }
4738
- class is {
5383
+ class Ds {
4739
5384
  constructor() {
4740
5385
  this.autoRestoreSortingState = !1, this.autoRestoreCollapsedExpandedState = !1, this.autoRestoreScrollPosition = !1, this.autoRestoreCheckedState = !1, this.autoRestoreSelectedState = !1, this.getStorageKeyFn = void 0, this.isSame = (e, t, s) => {
4741
5386
  if (e && t && s.getRowId) {
@@ -4760,12 +5405,12 @@ class is {
4760
5405
  };
4761
5406
  }
4762
5407
  }
4763
- class nt {
5408
+ class kt {
4764
5409
  constructor(e, t, s, o = !1, i = "normal", r = void 0) {
4765
5410
  this.data = e, this.property = t, this.toggle = s, this.closed = o, this.visibility = i, this.children = r, this.impl = "CellGroup";
4766
5411
  }
4767
5412
  }
4768
- class lt extends nt {
5413
+ class Dt extends kt {
4769
5414
  constructor(e, t = 0, s = 0, o) {
4770
5415
  super(
4771
5416
  e.data,
@@ -4861,7 +5506,7 @@ class T {
4861
5506
  static buildColumnDefs(e, t = []) {
4862
5507
  for (const s of e)
4863
5508
  s.property && t.push(
4864
- _.create({
5509
+ H.create({
4865
5510
  property: s.property,
4866
5511
  headerLabel: s.data ? s.data : s.property,
4867
5512
  isVisible: () => typeof s.isVisible == "function" ? s.isVisible() : !0
@@ -4890,7 +5535,7 @@ class T {
4890
5535
  static buildGroupExts(e, t = [], s = 0, o) {
4891
5536
  let i;
4892
5537
  for (let r = 0; r < e.length; r++) {
4893
- const n = e[r], l = new lt(n, s, r, o);
5538
+ const n = e[r], l = new Dt(n, s, r, o);
4894
5539
  i && (l.leftNeighbour = i, i.rightNeighbour = l), t.push(l), n.children && (l.children = T.buildGroupExts(n.children, [], s + 1, l)), i = l;
4895
5540
  }
4896
5541
  return t;
@@ -4932,7 +5577,7 @@ class T {
4932
5577
  e.push(o.data + " rowIndex:" + o.rowIndex), (s = o.children) != null && s.length && T.iterateThrowColumns(e, o.children);
4933
5578
  }
4934
5579
  }
4935
- class rs {
5580
+ class Ps {
4936
5581
  constructor() {
4937
5582
  this.areaIdent = "body", this.rowSelectionModel = void 0;
4938
5583
  }
@@ -5002,15 +5647,15 @@ class rs {
5002
5647
  return !1;
5003
5648
  }
5004
5649
  }
5005
- const X = class X {
5006
- constructor(e = new re()) {
5650
+ const Z = class Z {
5651
+ constructor(e = new pe()) {
5007
5652
  this.headerGroupOptions = e;
5008
5653
  }
5009
5654
  render(e, t, s, o, i, r, n) {
5010
5655
  const l = r != null && r.data ? r.data : "";
5011
5656
  if (r) {
5012
- const { toggle: c, visibility: a, closed: d } = r, u = c ? X.toggleHeaderGroup : "";
5013
- this.addText(e, o, t, s, l, u), c && a !== "always" && this.addArrowDiv(n, e, !d, t, s, o, u);
5657
+ const { toggle: a, visibility: c, closed: d } = r, u = a ? Z.toggleHeaderGroup : "";
5658
+ this.addText(e, o, t, s, l, u), a && c !== "always" && this.addArrowDiv(n, e, !d, t, s, o, u);
5014
5659
  } else
5015
5660
  this.addText(e, o, t, s, l, "");
5016
5661
  }
@@ -5025,11 +5670,11 @@ const X = class X {
5025
5670
  addArrowDiv(e, t, s = !0, o = -1, i = -1, r = "header", n) {
5026
5671
  const l = e.createElement("div");
5027
5672
  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}`);
5028
- let c;
5029
- s ? c = this.headerGroupOptions.iconExpanded : c = this.headerGroupOptions.iconCollapsed;
5030
- const a = c.content, d = e.createText(a);
5031
- e.appendChild(l, d), c.style && this.applyStyleString(e, l, c.style);
5032
- for (const u of c.classes)
5673
+ let a;
5674
+ s ? a = this.headerGroupOptions.iconExpanded : a = this.headerGroupOptions.iconCollapsed;
5675
+ const c = a.content, d = e.createText(c);
5676
+ e.appendChild(l, d), a.style && this.applyStyleString(e, l, a.style);
5677
+ for (const u of a.classes)
5033
5678
  e.addClass(l, u);
5034
5679
  return e.appendChild(t, l), l;
5035
5680
  }
@@ -5041,11 +5686,11 @@ const X = class X {
5041
5686
  }
5042
5687
  }
5043
5688
  };
5044
- X.toggleHeaderGroup = "toggleHeaderGroup";
5045
- let ee = X;
5046
- class ns {
5047
- constructor(e = "header", t, s = [], o, i = new re()) {
5048
- 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 ee(this.headerGroupOptions), this.groupExts = T.buildGroupExts(t), this.init();
5689
+ Z.toggleHeaderGroup = "toggleHeaderGroup";
5690
+ let ne = Z;
5691
+ class Fs {
5692
+ constructor(e = "header", t, s = [], o, i = new pe()) {
5693
+ 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();
5049
5694
  }
5050
5695
  init() {
5051
5696
  var e;
@@ -5143,24 +5788,24 @@ class ns {
5143
5788
  return t != null && t.toggle && t.visibility !== "always" && (t.closed = !t.closed, this.init()), T.buildColumnDefs(this.groupExts);
5144
5789
  }
5145
5790
  }
5146
- class ls {
5791
+ class Ls {
5147
5792
  filterPredict(e, t, s = this.objectToString.bind(this)) {
5148
5793
  if (!e)
5149
5794
  return !1;
5150
5795
  if (!t)
5151
5796
  return !0;
5152
5797
  t = t.toLowerCase();
5153
- 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, "")), c = r.filter((d) => d.startsWith(i)).map((d) => d.replace(/-/g, ""));
5154
- let a = !n.length;
5798
+ 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, ""));
5799
+ let c = !n.length;
5155
5800
  for (let d = 0; d < n.length; d++)
5156
- (a || s(e).includes(n[d])) && (a = !0);
5157
- if (!a)
5801
+ (c || s(e).includes(n[d])) && (c = !0);
5802
+ if (!c)
5158
5803
  return !1;
5159
5804
  for (let d = 0; d < l.length; d++)
5160
5805
  if (!s(e).includes(l[d]))
5161
5806
  return !1;
5162
- for (let d = 0; d < c.length; d++)
5163
- if (s(e).includes(c[d]))
5807
+ for (let d = 0; d < a.length; d++)
5808
+ if (s(e).includes(a[d]))
5164
5809
  return !1;
5165
5810
  return !0;
5166
5811
  }
@@ -5170,18 +5815,18 @@ class ls {
5170
5815
  if (!t)
5171
5816
  return [...e];
5172
5817
  t = t.toLowerCase();
5173
- const o = "+", i = "-", r = t.toLowerCase().split(" ").filter((a) => a !== o && a !== i && a !== ""), n = r.filter((a) => !a.startsWith(o) && !a.startsWith(i)), l = r.filter((a) => a.startsWith(o)).map((a) => a.replace(/\+/g, "")), c = r.filter((a) => a.startsWith(i)).map((a) => a.replace(/-/g, ""));
5174
- return e == null ? void 0 : e.filter((a) => {
5818
+ 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, ""));
5819
+ return e == null ? void 0 : e.filter((c) => {
5175
5820
  let d = !n.length;
5176
5821
  for (let u = 0; u < n.length; u++)
5177
- (d || s(a).includes(n[u])) && (d = !0);
5822
+ (d || s(c).includes(n[u])) && (d = !0);
5178
5823
  if (!d)
5179
5824
  return !1;
5180
5825
  for (let u = 0; u < l.length; u++)
5181
- if (!s(a).includes(l[u]))
5826
+ if (!s(c).includes(l[u]))
5182
5827
  return !1;
5183
- for (let u = 0; u < c.length; u++)
5184
- if (s(a).includes(c[u]))
5828
+ for (let u = 0; u < a.length; u++)
5829
+ if (s(c).includes(a[u]))
5185
5830
  return !1;
5186
5831
  return !0;
5187
5832
  });
@@ -5197,19 +5842,19 @@ class ls {
5197
5842
  return t.join(" ").toLowerCase();
5198
5843
  }
5199
5844
  }
5200
- class as {
5845
+ class $s {
5201
5846
  static bodyRenderer(e) {
5202
- return new k(void 0, e, void 0);
5847
+ return new I(void 0, e, void 0);
5203
5848
  }
5204
5849
  }
5205
- class cs {
5850
+ class Os {
5206
5851
  constructor(e, t = !0, s = !1) {
5207
5852
  this.property = e, this.skipCheckableCheck = t, this.readonly = s;
5208
5853
  }
5209
5854
  render(e, t, s, o, i, r, n) {
5210
5855
  if (this.readonly || this.skipCheckableCheck || i.isRowCheckable(t)) {
5211
5856
  n.addClass(e, "ge-table-row-checkbox-div");
5212
- const l = i.getRowByIndex(t), a = i.getValueByT(l, this.property) === !0 ? "checked" : "", d = this.readonly ? " readonly " : "";
5857
+ const l = i.getRowByIndex(t), c = i.getValueByT(l, this.property) === !0 ? "checked" : "", d = this.readonly ? " readonly " : "";
5213
5858
  if (n.addClass(e, "ge-padding-property-checkbox"), e.innerHTML = `
5214
5859
  <input
5215
5860
  type="checkbox"
@@ -5218,7 +5863,7 @@ class cs {
5218
5863
  data-col-index="${s}"
5219
5864
  data-property-index="${this.property}"
5220
5865
  data-input-type="checkbox"
5221
- ${a}
5866
+ ${c}
5222
5867
  ${d}
5223
5868
  class="ge-input-checkbox">`, !this.readonly) {
5224
5869
  const u = e.querySelector(".ge-input-checkbox");
@@ -5227,12 +5872,12 @@ class cs {
5227
5872
  }
5228
5873
  }
5229
5874
  }
5230
- class ds {
5875
+ class _s {
5231
5876
  render(e, t, s, o, i, r, n) {
5232
5877
  r && (e.innerText = new Date(r).toISOString());
5233
5878
  }
5234
5879
  }
5235
- class hs {
5880
+ class Bs {
5236
5881
  constructor() {
5237
5882
  this.formatter = new Intl.DateTimeFormat("de-DE", {
5238
5883
  year: "numeric",
@@ -5255,29 +5900,29 @@ class hs {
5255
5900
  }
5256
5901
  }
5257
5902
  }
5258
- class us {
5903
+ class Hs {
5259
5904
  render(e, t, s, o, i, r, n) {
5260
5905
  r && (e.innerText = new Date(r).toLocaleDateString());
5261
5906
  }
5262
5907
  }
5263
- class gs {
5908
+ class Vs {
5264
5909
  render(e, t, s, o, i, r, n) {
5265
5910
  r === "male" || r === "m" ? e.innerText = "♂" : (r === "female" || r === "f") && (e.innerText = "♀");
5266
5911
  }
5267
5912
  }
5268
- class ps {
5913
+ class Ws {
5269
5914
  constructor(e = 100, t = !1) {
5270
5915
  this.maxValue = e, this.labelVisible = t;
5271
5916
  }
5272
5917
  render(e, t, s, o, i, r, n) {
5273
5918
  if (n.addClass(e, "ge-progressbar-div"), !isNaN(r)) {
5274
- const c = Number(r) * 100 / this.maxValue, a = this.labelVisible ? Math.round(c) + "%" : "";
5919
+ const a = Number(r) * 100 / this.maxValue, c = this.labelVisible ? Math.round(a) + "%" : "";
5275
5920
  e.innerHTML = `
5276
5921
  <div class="ge-table-label-div"
5277
5922
  data-row-index="${t}"
5278
5923
  data-col-index="${s}"
5279
5924
  data-area="${o}"
5280
- title="${a}"
5925
+ title="${c}"
5281
5926
  style="position: relative; background: transparent; width: 100%; height: 100%;">
5282
5927
  <div class="ge-table-progress-container"
5283
5928
  style="width:100%;height:50%;padding:0;margin-top:6px;"
@@ -5285,7 +5930,7 @@ class ps {
5285
5930
  data-col-index="${s}"
5286
5931
  data-area="${o}">
5287
5932
  <div class="ge-table-progress-bar"
5288
- style="width:${c}%;height:100%;padding:0;margin:0;"
5933
+ style="width:${a}%;height:100%;padding:0;margin:0;"
5289
5934
  data-row-index="${t}"
5290
5935
  data-col-index="${s}"
5291
5936
  data-area="${o}">&nbsp;
@@ -5295,36 +5940,39 @@ class ps {
5295
5940
  }
5296
5941
  }
5297
5942
  }
5298
- class fs {
5943
+ class Ns {
5299
5944
  render(e, t, s, o, i, r, n) {
5300
5945
  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 = "";
5301
5946
  }
5302
5947
  }
5303
- class ms {
5948
+ class Gs {
5304
5949
  render(e, t, s, o, i, r, n) {
5305
5950
  r && (e.innerText = new Date(r).toISOString().replace(/T/g, " ").replace(/\..*/g, ""));
5306
5951
  }
5307
5952
  }
5308
- class bs {
5953
+ class zs {
5309
5954
  constructor(e = Number.MIN_SAFE_INTEGER, t = Number.MAX_SAFE_INTEGER) {
5310
5955
  this.min = e, this.max = t;
5311
5956
  }
5312
5957
  render(e, t, s, o, i, r, n) {
5313
- r && (e.innerText = r, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && n.addClass(e, "ge-cell-error"));
5958
+ r && (e.innerHTML = `
5959
+ <div class="ge-table-label-div">
5960
+ <div class="ge-table-label">${r}</div>
5961
+ </div>`, (typeof r == "string" || isNaN(r) || r < this.min || r > this.max) && n.addClass(e, "ge-cell-error"));
5314
5962
  }
5315
5963
  }
5316
- class xs {
5964
+ class js {
5317
5965
  constructor(e) {
5318
5966
  this.property = e;
5319
5967
  }
5320
5968
  render(e, t, s, o, i, r, n) {
5321
5969
  n.addClass(e, "ge-star-rating-div");
5322
- const l = i.getRowByIndex(t), c = +("" + i.getValueByT(l, this.property));
5323
- if (!isNaN(c)) {
5324
- const a = [];
5325
- for (let u = 0; u < c; u++)
5326
- a.push("★");
5327
- const d = a.join(" ");
5970
+ const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
5971
+ if (!isNaN(a)) {
5972
+ const c = [];
5973
+ for (let u = 0; u < a; u++)
5974
+ c.push("★");
5975
+ const d = c.join(" ");
5328
5976
  e.innerHTML = `
5329
5977
  <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%;">
5330
5978
  <div class="ge-table-label" data-row-index="${t}" data-col-index="${s}" data-area="${o}">${d}</div>
@@ -5332,15 +5980,23 @@ class xs {
5332
5980
  }
5333
5981
  }
5334
5982
  }
5335
- class ws {
5983
+ class Us {
5984
+ render(e, t, s, o, i, r, n) {
5985
+ r != null && r.length ? e.innerHTML = `
5986
+ <div class="ge-table-label-div">
5987
+ <div class="ge-table-label">${r.join(", ")}</div>
5988
+ </div>` : e.innerText = "";
5989
+ }
5990
+ }
5991
+ class Ys {
5336
5992
  constructor(e, t = 100, s = !1) {
5337
5993
  this.property = e, this.maxValue = t, this.labelVisible = s;
5338
5994
  }
5339
5995
  render(e, t, s, o, i, r, n) {
5340
5996
  n.addClass(e, "ge-star-rating-div");
5341
- const l = i.getRowByIndex(t), c = +("" + i.getValueByT(l, this.property));
5342
- if (!isNaN(c)) {
5343
- const a = c * 100 / this.maxValue, d = this.labelVisible ? Math.round(a) + "%" : "";
5997
+ const l = i.getRowByIndex(t), a = +("" + i.getValueByT(l, this.property));
5998
+ if (!isNaN(a)) {
5999
+ const c = a * 100 / this.maxValue, d = this.labelVisible ? Math.round(c) + "%" : "";
5344
6000
  e.innerHTML = `
5345
6001
  <div class="ge-table-label-div"
5346
6002
  data-row-index="${t}"
@@ -5354,7 +6010,7 @@ class ws {
5354
6010
  data-col-index="${s}"
5355
6011
  data-area="${o}">
5356
6012
  <div class="ge-table-progress-bar"
5357
- style="width:${a}%;height:100%;padding:0;margin:0;"
6013
+ style="width:${c}%;height:100%;padding:0;margin:0;"
5358
6014
  data-row-index="${t}"
5359
6015
  data-col-index="${s}"
5360
6016
  data-area="${o}">&nbsp;
@@ -5364,7 +6020,7 @@ class ws {
5364
6020
  }
5365
6021
  }
5366
6022
  }
5367
- class ys {
6023
+ class Ks {
5368
6024
  render(e, t, s, o, i, r, n) {
5369
6025
  if (r) {
5370
6026
  e.innerHTML = `
@@ -5384,26 +6040,26 @@ class ys {
5384
6040
  }
5385
6041
  }
5386
6042
  }
5387
- class ve {
6043
+ class He {
5388
6044
  constructor(e, t, s, o, i, r) {
5389
6045
  this.action = e, this.area = t, this.areaModel = s, this.rowIndex = o, this.columnIndex = i, this.id = r;
5390
6046
  }
5391
6047
  }
5392
- class P {
6048
+ class O {
5393
6049
  constructor(e, t, s = "", o = "", i = "button", r = !0) {
5394
6050
  this.action = e, this.label = t, this.icon = s, this.elementClass = o, this.elementType = i, this.enabled = r;
5395
6051
  }
5396
6052
  }
5397
- class at {
6053
+ class Pt {
5398
6054
  constructor(e, t) {
5399
6055
  this.actionEventListener = e, this.crudActions = t;
5400
6056
  }
5401
6057
  render(e, t, s, o, i, r, n) {
5402
6058
  n.addClass(e, "ge-table-row-action-div");
5403
- const l = r, a = this.getCrudActions(r).map(
6059
+ const l = r, c = this.getCrudActions(r).map(
5404
6060
  (d) => d.elementType === "button" ? this.buildButtonHtml(d, o, t, s, l) : this.buildLinkHtml(d, o, t, s, l)
5405
6061
  );
5406
- e.innerHTML = a.join(""), this.addClickEventListeners(e, o, i);
6062
+ e.innerHTML = c.join(""), this.addClickEventListeners(e, o, i);
5407
6063
  }
5408
6064
  buildButtonHtml(e, t, s, o, i) {
5409
6065
  const r = e.enabled ? 'data-listen="click"' : "disabled";
@@ -5450,37 +6106,37 @@ class at {
5450
6106
  createActionEvent(e, t) {
5451
6107
  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";
5452
6108
  if (s && o && i) {
5453
- const l = K(s), c = Number(o), a = Number(i);
5454
- return new ve(r, l, t, c, a, n);
6109
+ const l = Q(s), a = Number(o), c = Number(i);
6110
+ return new He(r, l, t, a, c, n);
5455
6111
  }
5456
6112
  return null;
5457
6113
  }
5458
6114
  getCrudActions(e) {
5459
- return Array.isArray(e) && e.every((t) => t instanceof P) ? e : this.crudActions;
6115
+ return Array.isArray(e) && e.every((t) => t instanceof O) ? e : this.crudActions;
5460
6116
  }
5461
6117
  }
5462
- const Ss = function(h, e, t) {
6118
+ const Xs = function(h, e, t) {
5463
6119
  return h ? Number(h) : "";
5464
6120
  };
5465
- class Ae {
6121
+ class Ve {
5466
6122
  constructor(e) {
5467
6123
  this.options = e;
5468
6124
  }
5469
6125
  static create(e) {
5470
- return new Ae(
5471
- e.map((t) => new rt(t, t))
6126
+ return new Ve(
6127
+ e.map((t) => new It(t, t))
5472
6128
  );
5473
6129
  }
5474
6130
  render(e, t, s, o, i, r, n) {
5475
6131
  if (i.isEditable(t, s)) {
5476
6132
  n.addClass(e, "ge-table-row-select-div");
5477
6133
  const l = i.getValueAt(t, s);
5478
- let c = [];
6134
+ let a = [];
5479
6135
  for (let d of this.options) {
5480
6136
  const u = d.value === l ? " selected " : "";
5481
- c.push(`<option value="${d.value}" ${u}>${d.label}</option>`);
6137
+ a.push(`<option value="${d.value}" ${u}>${d.label}</option>`);
5482
6138
  }
5483
- const a = c.join("");
6139
+ const c = a.join("");
5484
6140
  e.innerHTML = `
5485
6141
  <select
5486
6142
  type="text"
@@ -5492,11 +6148,11 @@ class Ae {
5492
6148
  data-col-index="${s}"
5493
6149
  data-input-type="text"
5494
6150
  style="width:100%;height:100%;border:0;padding:0 0 0 8px;"
5495
- class="ge-table-cell-editor-select">${a}</select>`;
6151
+ class="ge-table-cell-editor-select">${c}</select>`;
5496
6152
  }
5497
6153
  }
5498
6154
  }
5499
- class Cs extends ie {
6155
+ class Js extends ue {
5500
6156
  constructor(e) {
5501
6157
  super("row", "multi"), this.model = e;
5502
6158
  }
@@ -5579,39 +6235,39 @@ class Cs extends ie {
5579
6235
  this.isSelected(e, 0) ? this.unselectRow(e) : this.selectRow(e);
5580
6236
  }
5581
6237
  }
5582
- class vs {
6238
+ class qs {
5583
6239
  constructor(e, t, s) {
5584
6240
  this.r = e, this.g = t, this.b = s;
5585
6241
  }
5586
6242
  }
5587
- class xe {
6243
+ class Te {
5588
6244
  constructor(e, t, s, o) {
5589
6245
  this.minValue = e, this.minColor = t, this.maxValue = s, this.maxColor = o;
5590
6246
  }
5591
6247
  }
5592
- class G {
6248
+ class Y {
5593
6249
  static normalize(e, t, s, o = 0, i = 1) {
5594
6250
  return (e - t) / (s - t) * (i - o) + o;
5595
6251
  }
5596
6252
  static getTwoColorGradientRGB(e, t) {
5597
- const s = G.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, c = r * s + t.minColor.b;
5598
- return `rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(c)})`;
6253
+ 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;
6254
+ return `rgb(${Math.round(n)}, ${Math.round(l)}, ${Math.round(a)})`;
5599
6255
  }
5600
6256
  static getThreeColorGradientRGB(e, t) {
5601
- return e < t.middleValue ? G.getTwoColorGradientRGB(e, new xe(t.minValue, t.minColor, t.middleValue, t.middleColor)) : e > t.middleValue ? G.getTwoColorGradientRGB(e, new xe(t.middleValue, t.middleColor, t.maxValue, t.maxColor)) : `rgb(${t.middleColor.r}, ${t.middleColor.g}, ${t.middleColor.b})`;
6257
+ 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})`;
5602
6258
  }
5603
6259
  }
5604
- class As {
6260
+ class Zs {
5605
6261
  constructor(e, t, s, o, i, r) {
5606
6262
  this.minValue = e, this.minColor = t, this.middleValue = s, this.middleColor = o, this.maxValue = i, this.maxColor = r;
5607
6263
  }
5608
6264
  }
5609
- class ct {
6265
+ class Ft {
5610
6266
  constructor(e = !0, t = !0, s = (r, n) => r * 10 + 10, o = 50, i = 450) {
5611
6267
  this.autoCalc = e, this.takeHeaderLabelsIntoAccount = t, this.charCountToWidth = s, this.minWidth = o, this.maxWidth = i;
5612
6268
  }
5613
6269
  }
5614
- class dt {
6270
+ class Lt {
5615
6271
  constructor(e) {
5616
6272
  this.object = e;
5617
6273
  }
@@ -5663,7 +6319,7 @@ class dt {
5663
6319
  return s.join("");
5664
6320
  }
5665
6321
  }
5666
- class q {
6322
+ class oe {
5667
6323
  constructor(e, t, s = "Edit Item") {
5668
6324
  this.idKey = e, this.dialogTitle = s, this.object = { ...t };
5669
6325
  }
@@ -5745,7 +6401,7 @@ class q {
5745
6401
  return e.replace(/\./g, " ");
5746
6402
  }
5747
6403
  }
5748
- class ht {
6404
+ class $t {
5749
6405
  constructor() {
5750
6406
  this.urls = {
5751
6407
  list: {
@@ -5753,15 +6409,15 @@ class ht {
5753
6409
  method: "GET"
5754
6410
  }
5755
6411
  }, this.singleRowActions = [
5756
- new P("VIEW", "View", "", "", "link"),
5757
- new P("EDIT", "Edit", "", "", "link"),
5758
- new P("CLONE", "Clone", "", "", "link"),
5759
- new P("DELETE", "Delete", "", "", "link")
6412
+ new O("VIEW", "View", "", "", "link"),
6413
+ new O("EDIT", "Edit", "", "", "link"),
6414
+ new O("CLONE", "Clone", "", "", "link"),
6415
+ new O("DELETE", "Delete", "", "", "link")
5760
6416
  // new CrudAction('CREATE', 'Create', '', '', 'link'),
5761
6417
  ], this.tableActions = [
5762
- new P("CREATE", "Create", "", "", "button"),
5763
- new P("DELETE_SELECTED", "Delete Selected", "", "", "button")
5764
- ], this.autoAddActionColumn = !0, this.columnWidths = new ct(), 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) => {
6418
+ new O("CREATE", "Create", "", "", "button"),
6419
+ new O("DELETE_SELECTED", "Delete Selected", "", "", "button")
6420
+ ], 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) => {
5765
6421
  const t = e.getHeadersInit ? e.getHeadersInit() : {};
5766
6422
  let s = e.urls.list.url, o = e.urls.list.method ?? "GET";
5767
6423
  return fetch(s, {
@@ -5788,7 +6444,7 @@ class ht {
5788
6444
  headers: o,
5789
6445
  method: r,
5790
6446
  body: JSON.stringify(s)
5791
- }).then((c) => c.json());
6447
+ }).then((a) => a.json());
5792
6448
  }, this.createItem = (e, t) => {
5793
6449
  var r, n;
5794
6450
  const s = e.getHeadersInit ? e.getHeadersInit() : {};
@@ -5812,54 +6468,59 @@ class ht {
5812
6468
  };
5813
6469
  }
5814
6470
  }
5815
- class Rs {
6471
+ class Qs {
5816
6472
  constructor() {
5817
- this.crudOptions = new ht(), this.listenActionEvent = (e) => {
6473
+ this.crudOptions = new $t(), this.listenActionEvent = (e) => {
5818
6474
  };
5819
6475
  }
5820
6476
  createTableModel(e, t, s = (i) => {
5821
6477
  }, o = (i) => {
5822
6478
  }) {
5823
6479
  this.crudOptions = e, this.listenActionEvent = o, e.fetchList(e).then((i) => {
5824
- var r, n;
6480
+ var r, n, l, a;
5825
6481
  if (t.rows = i, i != null && i.length) {
5826
- const l = this.extractProperties(i[0]), c = new ie("row", "multi"), a = () => c;
6482
+ 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;
5827
6483
  this.tableOptions = {
5828
- ...new z(),
6484
+ ...new X(),
5829
6485
  ...t.tableOptions,
5830
6486
  hoverColumnVisible: !1,
5831
- getSelectionModel: a
6487
+ getSelectionModel: u
5832
6488
  };
5833
- const d = this.calcAutoColumnWidths(i, l), u = (r = t.columnDefs) != null && r.length ? t.columnDefs : l.map((g, b) => new _(g, g.toUpperCase(), new x(d[b], "px")));
6489
+ 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")));
6490
+ if ((l = e == null ? void 0 : e.columnWidths) != null && l.autoCalc)
6491
+ for (let x = 0; x < p.length; x++) {
6492
+ const S = p[x];
6493
+ S.width = new y(f[x], "px");
6494
+ }
5834
6495
  if (e.autoAddActionColumn) {
5835
- let g = new _(
6496
+ let x = new H(
5836
6497
  "id",
5837
6498
  "Actions",
5838
- Qe,
5839
- new k(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
6499
+ vt,
6500
+ new I(["ge-table-text-align-left"], ["ge-table-text-align-left ge-table-actions-cell"], void 0)
5840
6501
  );
5841
- g.rendererMap = new k(
6502
+ x.rendererMap = new I(
5842
6503
  void 0,
5843
- new at(this, e.singleRowActions),
6504
+ new Pt(this, e.singleRowActions),
5844
6505
  void 0
5845
- ), u.push(g);
6506
+ ), p.push(x);
5846
6507
  }
5847
- const f = 0, p = e.calcFixedRightColumnCount(u.length);
5848
- this.tableModel = O.buildByTypedRowsParam({
6508
+ const m = 0, g = e.calcFixedRightColumnCount(p.length);
6509
+ this.tableModel = _.buildByTypedRowsParam({
5849
6510
  rows: i,
5850
- columnDefs: u,
6511
+ columnDefs: p,
5851
6512
  tableOptions: this.tableOptions,
5852
- fixedLeftColumnCount: f,
5853
- fixedRightColumnCount: p
5854
- }), this.tableModel.getSelectionModel = a, this.bodyModel = (n = this.tableModel) == null ? void 0 : n.getBodyModel();
5855
- const m = new ot(this.tableModel, this.tableOptions);
5856
- s(m);
6513
+ fixedLeftColumnCount: m,
6514
+ fixedRightColumnCount: g
6515
+ }), this.tableModel.getSelectionModel = u, this.bodyModel = (a = this.tableModel) == null ? void 0 : a.getBodyModel();
6516
+ const b = new Mt(this.tableModel, this.tableOptions);
6517
+ s(b);
5857
6518
  }
5858
6519
  });
5859
6520
  }
5860
6521
  openDialogForCreate() {
5861
6522
  if (this.bodyModel) {
5862
- const e = new ve("CREATE", "body", this.bodyModel, -1, -1, null);
6523
+ const e = new He("CREATE", "body", this.bodyModel, -1, -1, null);
5863
6524
  this.onActionEvent(e);
5864
6525
  }
5865
6526
  }
@@ -5867,32 +6528,32 @@ class Rs {
5867
6528
  var t, s, o, i;
5868
6529
  if (this.listenActionEvent && this.listenActionEvent(e), e.action === "VIEW") {
5869
6530
  let r = e.id;
5870
- (t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new dt(n).openDialog(), n));
6531
+ (t = this.crudOptions) == null || t.fetchItem(this.crudOptions, r).then((n) => (console.info(n), new Lt(n).openDialog(), n));
5871
6532
  } else if (e.action === "EDIT") {
5872
6533
  let r = e.id;
5873
6534
  const n = this.crudOptions.getIdKey() ?? "id";
5874
- (s = this.crudOptions) == null || s.fetchItem(this.crudOptions, r).then((l) => (console.info(l), new q(
6535
+ (s = this.crudOptions) == null || s.fetchItem(this.crudOptions, r).then((l) => (console.info(l), new oe(
5875
6536
  n,
5876
6537
  l
5877
- ).openDialog((c) => {
5878
- console.info(c), this.crudOptions.updateItem(this.crudOptions, r, c);
6538
+ ).openDialog((a) => {
6539
+ console.info(a), this.crudOptions.updateItem(this.crudOptions, r, a);
5879
6540
  }), l));
5880
6541
  } else if (e.action === "CLONE") {
5881
6542
  let r = e.id;
5882
6543
  const n = this.crudOptions.getIdKey() ?? "id";
5883
6544
  (o = this.crudOptions) == null || o.fetchItem(this.crudOptions, r).then((l) => {
5884
- const c = JSON.parse(JSON.stringify(l));
5885
- return new q(
6545
+ const a = JSON.parse(JSON.stringify(l));
6546
+ return new oe(
5886
6547
  n,
5887
- c,
6548
+ a,
5888
6549
  "Clone Item"
5889
- ).openDialog((a) => {
5890
- console.info(a), this.crudOptions.createItem(this.crudOptions, a);
5891
- }), c;
6550
+ ).openDialog((c) => {
6551
+ console.info(c), this.crudOptions.createItem(this.crudOptions, c);
6552
+ }), a;
5892
6553
  });
5893
6554
  } else if (e.action === "CREATE") {
5894
6555
  const r = this.crudOptions.getIdKey() ?? "id", n = JSON.parse(JSON.stringify(this.crudOptions.getEmptyItem()));
5895
- return new q(
6556
+ return new oe(
5896
6557
  r,
5897
6558
  n,
5898
6559
  "Create Item"
@@ -5902,32 +6563,32 @@ class Rs {
5902
6563
  } else if (e.action === "DELETE") {
5903
6564
  let r = e.id;
5904
6565
  (i = this.crudOptions) == null || i.deleteItem(this.crudOptions, r).then((n) => {
5905
- var l, c, a, d, u;
5906
- return (l = this.bodyModel) == null || l.filterRowsByPredict((f) => f.id != r), (a = (c = this.tableModel) == null ? void 0 : c.getTableScope()) == null || a.clearSelection(!0), (u = (d = this.tableModel) == null ? void 0 : d.getTableScope()) == null || u.repaintHard(), n;
6566
+ var l, a, c, d, u;
6567
+ 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;
5907
6568
  });
5908
6569
  }
5909
6570
  }
5910
6571
  calcAutoColumnWidths(e, t, s = t) {
5911
- var c;
6572
+ var a;
5912
6573
  const o = t.length;
5913
- if (!((c = this.crudOptions.columnWidths) != null && c.autoCalc))
6574
+ if (!((a = this.crudOptions.columnWidths) != null && a.autoCalc))
5914
6575
  return new Array(o).fill(200);
5915
6576
  const i = e.length ?? 0, r = new Array(o).fill(0);
5916
- for (let a = 0; a < i; a++)
6577
+ for (let c = 0; c < i; c++)
5917
6578
  for (let d = 0; d < o; d++) {
5918
- const u = t[d], f = this.getValueByT(e[a], u), p = (f == null ? void 0 : f.toString().length) || 0;
6579
+ const u = t[d], f = this.getValueByT(e[c], u), p = (f == null ? void 0 : f.toString().length) || 0;
5919
6580
  p > r[d] && (r[d] = p);
5920
6581
  }
5921
6582
  if (this.crudOptions.columnWidths.takeHeaderLabelsIntoAccount)
5922
- for (let a = 0; a < o; a++) {
5923
- const d = s[a].length || 0;
5924
- d > r[a] && (r[a] = d);
6583
+ for (let c = 0; c < o; c++) {
6584
+ const d = s[c].length || 0;
6585
+ d > r[c] && (r[c] = d);
5925
6586
  }
5926
6587
  const n = this.crudOptions.columnWidths.minWidth, l = this.crudOptions.columnWidths.maxWidth;
5927
- return r.map((a, d) => Math.min(
6588
+ return r.map((c, d) => Math.min(
5928
6589
  l,
5929
6590
  Math.max(
5930
- this.crudOptions.columnWidths.charCountToWidth(a, d),
6591
+ this.crudOptions.columnWidths.charCountToWidth(c, d),
5931
6592
  n
5932
6593
  )
5933
6594
  ));
@@ -5948,161 +6609,189 @@ class Rs {
5948
6609
  return s;
5949
6610
  }
5950
6611
  }
5951
- class Es {
6612
+ class eo {
5952
6613
  constructor(e, t) {
5953
6614
  this.method = e, this.url = t;
5954
6615
  }
5955
6616
  }
5956
6617
  export {
5957
- ne as AbstractAreaModel,
5958
- ve as ActionEvent,
5959
- at as ActionsCellRenderer,
5960
- ts as AreaMapFactory,
5961
- rs as AreaModel,
5962
- D as AreaModelArrayOfArrays,
5963
- ns as AreaModelCellGroups,
6618
+ ge as AbstractAreaModel,
6619
+ He as ActionEvent,
6620
+ Pt as ActionsCellRenderer,
6621
+ Fe as AnyPropertyType,
6622
+ Ts as AreaMapFactory,
6623
+ Ps as AreaModel,
6624
+ P as AreaModelArrayOfArrays,
6625
+ Fs as AreaModelCellGroups,
5964
6626
  F as AreaModelHidden,
5965
- st as AreaModelObjectArray,
5966
- me as AreaModelObjectArrayWithColumndefs,
5967
- ge as AreaModelTree,
5968
- k as AreaObjectMap,
5969
- is as AutoRestoreOptions,
5970
- gt as AvoidDoubleExecution,
5971
- nt as CellGroup,
5972
- lt as CellGroupExt,
5973
- ee as CellGroupExtCellRenderer,
6627
+ Et as AreaModelObjectArray,
6628
+ Ee as AreaModelObjectArrayWithColumndefs,
6629
+ ve as AreaModelTree,
6630
+ I as AreaObjectMap,
6631
+ B as ArrayPropertyType,
6632
+ Ds as AutoRestoreOptions,
6633
+ _t as AvoidDoubleExecution,
6634
+ je as BooleanPropertyType,
6635
+ kt as CellGroup,
6636
+ Dt as CellGroupExt,
6637
+ ne as CellGroupExtCellRenderer,
5974
6638
  R as CellRange,
5975
6639
  T as CellgroupFactory,
5976
- cs as CheckboxBooleanPropertyCellRenderer,
5977
- be as CheckboxCellRenderer,
5978
- es as CheckboxColumnDef,
5979
- tt as CheckboxModel,
5980
- jt as ChunkData,
5981
- Oe as ColAndRowspanModel,
5982
- Fe as CollapsedExpandedData,
5983
- vs as ColorRgb,
5984
- _ as ColumnDef,
5985
- ct as ColumnWidths,
5986
- Me as ConvenienceDomService,
5987
- U as CopyService,
5988
- P as CrudAction,
5989
- q as CrudObjectEdit,
5990
- dt as CrudObjectView,
5991
- ht as CrudOptions,
5992
- Rs as CrudTableModelFactory,
5993
- ce as CssVars,
5994
- hs as DateToIntlDDMMYYYYCellRenderer,
5995
- ds as DateToIsoCellRenderer,
5996
- us as DateToLocaleDateCellRenderer,
5997
- ms as DateToTecCellRenderer,
5998
- V as DefaultRowHeights,
5999
- Pe as EleScope,
6000
- ae as EventAdapter,
6001
- qe as ExcelService,
6002
- he as FalseFn,
6003
- Xe as FocusModel,
6004
- We as GeCellIndices,
6005
- G as GeCssColorUtil,
6006
- ls as GeFilterService,
6007
- ss as GeKeyEvent,
6008
- oe as GeModelChangeEvent,
6009
- te as GeMouseEvent,
6640
+ Os as CheckboxBooleanPropertyCellRenderer,
6641
+ Me as CheckboxCellRenderer,
6642
+ Ms as CheckboxColumnDef,
6643
+ Rt as CheckboxModel,
6644
+ xs as ChunkData,
6645
+ nt as ColAndRowspanModel,
6646
+ st as CollapsedExpandedData,
6647
+ qs as ColorRgb,
6648
+ H as ColumnDef,
6649
+ Bt as ColumnDefGenerator,
6650
+ Ft as ColumnWidths,
6651
+ qe as ConvenienceDomService,
6652
+ J as CopyService,
6653
+ O as CrudAction,
6654
+ oe as CrudObjectEdit,
6655
+ Lt as CrudObjectView,
6656
+ $t as CrudOptions,
6657
+ Qs as CrudTableModelFactory,
6658
+ xe as CssVars,
6659
+ Bs as DateToIntlDDMMYYYYCellRenderer,
6660
+ _s as DateToIsoCellRenderer,
6661
+ Hs as DateToLocaleDateCellRenderer,
6662
+ Gs as DateToTecCellRenderer,
6663
+ G as DefaultRowHeights,
6664
+ rt as EleScope,
6665
+ ye as EventAdapter,
6666
+ St as ExcelService,
6667
+ Se as FalseFn,
6668
+ bt as FocusModel,
6669
+ dt as GeCellIndices,
6670
+ Y as GeCssColorUtil,
6671
+ Ls as GeFilterService,
6672
+ Is as GeKeyEvent,
6673
+ he as GeModelChangeEvent,
6674
+ ce as GeMouseEvent,
6010
6675
  L as GeoData,
6011
6676
  $ as Icon,
6012
- Xt as IndexAndPx,
6013
- je as InputCellRenderer,
6014
- He as InputHandler,
6015
- B as LicenseManager,
6016
- gs as MaleFemaleToIconCellRenderer,
6017
- ke as MouseHandler,
6018
- Te as MouseTargetData,
6019
- Cs as MultiRowsSelectionModel,
6020
- ps as NumberCellProgressBarCellRenderer,
6021
- bs as NumberCellRenderer,
6022
- Ge as OsxShortcutActionIdMapping,
6023
- fe as Padding,
6024
- ys as PositiveAndNegativeNumberRenderer,
6025
- ws as ProgressBarCellRenderer,
6026
- _e as RenderScope,
6027
- as as Renderer,
6028
- it as RequestChunk,
6029
- Je as ResizeHandler,
6030
- Ae as SelectCellRenderer,
6031
- ie as SelectionModel,
6032
- Ve as SelectionService,
6033
- ze as ShortcutService,
6034
- Ue as SimpleDomService,
6035
- x as Size,
6036
- Be as SortItem,
6037
- ye as SortedOptions,
6038
- xs as StarRatingCellRenderer,
6039
- Le as StoreStateCollapsedExpandService,
6040
- De as StoreStateScrollPosService,
6041
- $e as StoreStateSortingService,
6042
- Ie as TableApi,
6043
- os as TableCellUpdateEvent,
6044
- O as TableFactory,
6045
- J as TableModel,
6046
- ot as TableModelAndOptions,
6047
- z as TableOptions,
6048
- Se as TableScope,
6049
- As as ThreeColorGradientArg,
6050
- pe as TreeCheckboxModel,
6051
- Q as TreeFactory,
6052
- we as TreeOptions,
6053
- de as TreeRow,
6054
- et as TreeRowService,
6055
- fs as TrueFalseCellRenderer,
6056
- Ze as TrueFn,
6057
- xe as TwoColorGradientArg,
6058
- Es as UrlInfo,
6059
- rt as ValueLabel,
6060
- Ne as WindowsShortcutActionIdMapping,
6061
- Ut as actionIds,
6062
- Zt as allCenter,
6063
- qt as allLeft,
6064
- Qt as allRight,
6065
- Yt as bodyCenter,
6066
- Kt as bodyLeft,
6067
- Jt as bodyRight,
6068
- Re as debounce,
6069
- Ss as editInputPipeForNumber,
6070
- K as getAreaIdentByString,
6071
- Z as isAreaModelTree,
6072
- Ee as isCheckboxColumnDef,
6073
- W as isTreeRow,
6074
- zt as px0,
6075
- Gt as px10,
6076
- $t as px100,
6077
- Lt as px110,
6078
- Ft as px120,
6079
- Dt as px130,
6080
- It as px140,
6081
- kt as px150,
6082
- Tt as px160,
6083
- Mt as px170,
6084
- Et as px180,
6085
- Rt as px190,
6086
- Nt as px20,
6087
- ue as px200,
6088
- At as px210,
6089
- vt as px220,
6090
- Ct as px230,
6091
- St as px240,
6092
- yt as px250,
6093
- wt as px260,
6094
- xt as px270,
6095
- bt as px280,
6096
- mt as px290,
6097
- Vt as px30,
6098
- Qe as px300,
6099
- Wt as px40,
6100
- ft as px400,
6101
- Ht as px50,
6102
- pt as px500,
6103
- Bt as px60,
6104
- _t as px70,
6105
- Ot as px80,
6106
- Pt as px90,
6107
- ut as throttle
6677
+ ws as IndexAndPx,
6678
+ mt as InputCellRenderer,
6679
+ ct as InputHandler,
6680
+ me as JsonService,
6681
+ V as LicenseManager,
6682
+ Vs as MaleFemaleToIconCellRenderer,
6683
+ Qe as MouseHandler,
6684
+ Ze as MouseTargetData,
6685
+ Js as MultiRowsSelectionModel,
6686
+ Ne as NullPropertyType,
6687
+ Ws as NumberCellProgressBarCellRenderer,
6688
+ zs as NumberCellRenderer,
6689
+ ze as NumberPropertyType,
6690
+ D as ObjectPropertyType,
6691
+ pt as OsxShortcutActionIdMapping,
6692
+ Ie as PROPERTY_TYPE_KEY_ANY,
6693
+ Pe as PROPERTY_TYPE_KEY_ARRAY,
6694
+ ae as PROPERTY_TYPE_KEY_BOOLEAN,
6695
+ ke as PROPERTY_TYPE_KEY_NULL,
6696
+ le as PROPERTY_TYPE_KEY_NUMBER,
6697
+ j as PROPERTY_TYPE_KEY_OBJECT,
6698
+ De as PROPERTY_TYPE_KEY_STRING,
6699
+ z as PROPERTY_TYPE_KEY_UNDEFINED,
6700
+ Re as Padding,
6701
+ Ks as PositiveAndNegativeNumberRenderer,
6702
+ Ys as ProgressBarCellRenderer,
6703
+ Le as PropertyItem,
6704
+ Ht as PropertyTypeService,
6705
+ lt as RenderScope,
6706
+ $s as Renderer,
6707
+ Tt as RequestChunk,
6708
+ wt as ResizeHandler,
6709
+ Vt as SchemeGenerator,
6710
+ Ve as SelectCellRenderer,
6711
+ ue as SelectionModel,
6712
+ ht as SelectionService,
6713
+ gt as ShortcutService,
6714
+ Us as SimpleArrayCellRenderer,
6715
+ ft as SimpleDomService,
6716
+ y as Size,
6717
+ at as SortItem,
6718
+ Oe as SortedOptions,
6719
+ js as StarRatingCellRenderer,
6720
+ ot as StoreStateCollapsedExpandService,
6721
+ tt as StoreStateScrollPosService,
6722
+ it as StoreStateSortingService,
6723
+ Ge as StringPropertyType,
6724
+ et as TableApi,
6725
+ ks as TableCellUpdateEvent,
6726
+ _ as TableFactory,
6727
+ se as TableModel,
6728
+ Mt as TableModelAndOptions,
6729
+ X as TableOptions,
6730
+ _e as TableScope,
6731
+ Zs as ThreeColorGradientArg,
6732
+ Ae as TreeCheckboxModel,
6733
+ re as TreeFactory,
6734
+ $e as TreeOptions,
6735
+ we as TreeRow,
6736
+ At as TreeRowService,
6737
+ Ns as TrueFalseCellRenderer,
6738
+ Ct as TrueFn,
6739
+ Te as TwoColorGradientArg,
6740
+ K as UNIMPORTANT_TYPES,
6741
+ te as UndefinedPropertyType,
6742
+ eo as UrlInfo,
6743
+ Ue as ValueInfo,
6744
+ It as ValueLabel,
6745
+ ut as WindowsShortcutActionIdMapping,
6746
+ ys as actionIds,
6747
+ Rs as allCenter,
6748
+ As as allLeft,
6749
+ Es as allRight,
6750
+ Cs as bodyCenter,
6751
+ Ss as bodyLeft,
6752
+ vs as bodyRight,
6753
+ We as debounce,
6754
+ Xs as editInputPipeForNumber,
6755
+ be as entitySuffix,
6756
+ Xe as firstLetterUppercase,
6757
+ Q as getAreaIdentByString,
6758
+ Ye as getEntityName,
6759
+ ie as isAreaModelTree,
6760
+ Je as isCheckboxColumnDef,
6761
+ N as isTreeRow,
6762
+ bs as px0,
6763
+ ms as px10,
6764
+ ls as px100,
6765
+ ns as px110,
6766
+ rs as px120,
6767
+ is as px130,
6768
+ os as px140,
6769
+ ss as px150,
6770
+ ts as px160,
6771
+ es as px170,
6772
+ Qt as px180,
6773
+ Zt as px190,
6774
+ fs as px20,
6775
+ Ce as px200,
6776
+ qt as px210,
6777
+ Jt as px220,
6778
+ Xt as px230,
6779
+ Kt as px240,
6780
+ Yt as px250,
6781
+ Ut as px260,
6782
+ jt as px270,
6783
+ zt as px280,
6784
+ Gt as px290,
6785
+ gs as px30,
6786
+ vt as px300,
6787
+ ps as px40,
6788
+ Nt as px400,
6789
+ us as px50,
6790
+ Wt as px500,
6791
+ hs as px60,
6792
+ ds as px70,
6793
+ cs as px80,
6794
+ as as px90,
6795
+ Ot as throttle,
6796
+ Ke as trimArraySuffixes
6108
6797
  };