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