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