@golemui/gui-shared 1.1.0 → 1.1.1-rc.0
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/CHANGELOG.md +15 -0
- package/index.js +1 -1
- package/index.umd.cjs +1 -1
- package/internals.js +2 -2
- package/internals.umd.cjs +1 -1
- package/lib/dx/core/defineShortcutType.d.ts +2 -1
- package/lib/dx/core/itemTypeRegistry.d.ts +13 -1
- package/lib/widget.props.d.ts +55 -6
- package/package.json +3 -3
- package/register-B3CJMfX9.cjs +1 -0
- package/{register-C4dCzlrS.js → register-De8Y1vW5.js} +371 -333
- package/register-KU4CGoTQ.cjs +0 -1
|
@@ -15,10 +15,10 @@ function P(e) {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
function
|
|
18
|
+
function y(e, t) {
|
|
19
19
|
return typeof e == "function" ? e : { type: t, ...e ?? {} };
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Te(e, t, s) {
|
|
22
22
|
if (typeof t == "function") {
|
|
23
23
|
const i = t;
|
|
24
24
|
return {
|
|
@@ -36,7 +36,7 @@ function me(e, t, s) {
|
|
|
36
36
|
tags: s ?? []
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
|
-
function
|
|
39
|
+
function ge(e, t, s) {
|
|
40
40
|
if (typeof t == "function") {
|
|
41
41
|
const i = t;
|
|
42
42
|
return {
|
|
@@ -54,7 +54,7 @@ function Te(e, t, s) {
|
|
|
54
54
|
tags: s ?? []
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function be(e, t, s) {
|
|
58
58
|
if (typeof t == "function") {
|
|
59
59
|
const i = t;
|
|
60
60
|
return {
|
|
@@ -72,7 +72,7 @@ function ge(e, t, s) {
|
|
|
72
72
|
tags: s ?? []
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function _e(e, t, s) {
|
|
76
76
|
if (typeof t == "function") {
|
|
77
77
|
const n = t;
|
|
78
78
|
return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: (l) => ({ type: "select", ...n(l) }) }], tags: s ?? [] };
|
|
@@ -80,7 +80,7 @@ function be(e, t, s) {
|
|
|
80
80
|
const a = { type: "select", ...t };
|
|
81
81
|
return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function Ee(e, t, s) {
|
|
84
84
|
if (typeof t == "function") {
|
|
85
85
|
const n = t;
|
|
86
86
|
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: (l) => ({
|
|
@@ -91,7 +91,7 @@ function _e(e, t, s) {
|
|
|
91
91
|
const a = { type: "dropdown", ...t };
|
|
92
92
|
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Ie(e, t, s) {
|
|
95
95
|
if (typeof t == "function") {
|
|
96
96
|
const n = t;
|
|
97
97
|
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: (l) => ({ type: "radiogroup", ...n(l) }) }], tags: s ?? [] };
|
|
@@ -99,7 +99,7 @@ function Ee(e, t, s) {
|
|
|
99
99
|
const a = { type: "radiogroup", ...t };
|
|
100
100
|
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ae(e, t, s) {
|
|
103
103
|
if (typeof t == "function") {
|
|
104
104
|
const n = t;
|
|
105
105
|
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: (l) => ({ type: "checkbox", ...n(l) }) }], tags: s ?? [] };
|
|
@@ -107,7 +107,7 @@ function Ie(e, t, s) {
|
|
|
107
107
|
const a = { type: "checkbox", ...t };
|
|
108
108
|
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function ke(e, t, s) {
|
|
111
111
|
if (typeof t == "function") {
|
|
112
112
|
const n = t;
|
|
113
113
|
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: (l) => ({ type: "textarea", ...n(l) }) }], tags: s ?? [] };
|
|
@@ -131,7 +131,7 @@ function Se(e, t, s) {
|
|
|
131
131
|
const a = { type: "currency", ...t };
|
|
132
132
|
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function De(e, t, s) {
|
|
135
135
|
if (typeof t == "function") {
|
|
136
136
|
const n = t;
|
|
137
137
|
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: (l) => ({ type: "markdown", ...n(l) }) }], tags: s ?? [] };
|
|
@@ -139,7 +139,7 @@ function ke(e, t, s) {
|
|
|
139
139
|
const a = { type: "markdown", ...t };
|
|
140
140
|
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
141
141
|
}
|
|
142
|
-
function
|
|
142
|
+
function fe(e, t, s) {
|
|
143
143
|
if (typeof t == "function") {
|
|
144
144
|
const n = t;
|
|
145
145
|
return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: (l) => ({ type: "list", ...n(l) }) }], tags: s ?? [] };
|
|
@@ -147,7 +147,7 @@ function De(e, t, s) {
|
|
|
147
147
|
const a = { type: "list", ...t };
|
|
148
148
|
return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
149
149
|
}
|
|
150
|
-
function
|
|
150
|
+
function Pe(e, t, s) {
|
|
151
151
|
if (typeof t == "function") {
|
|
152
152
|
const i = t;
|
|
153
153
|
return {
|
|
@@ -168,7 +168,7 @@ function fe(e, t, s) {
|
|
|
168
168
|
tags: s ?? []
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function Ue(e, t, s) {
|
|
172
172
|
if (typeof t == "function") {
|
|
173
173
|
const i = t;
|
|
174
174
|
return {
|
|
@@ -189,7 +189,7 @@ function Pe(e, t, s) {
|
|
|
189
189
|
tags: s ?? []
|
|
190
190
|
};
|
|
191
191
|
}
|
|
192
|
-
function
|
|
192
|
+
function Me(e, t, s) {
|
|
193
193
|
if (typeof t == "function") {
|
|
194
194
|
const n = t;
|
|
195
195
|
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: (l) => ({ type: "dateInput", ...n(l) }) }], tags: s ?? [] };
|
|
@@ -197,7 +197,7 @@ function Ue(e, t, s) {
|
|
|
197
197
|
const a = { type: "dateInput", ...t };
|
|
198
198
|
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
199
199
|
}
|
|
200
|
-
function
|
|
200
|
+
function Le(e, t, s) {
|
|
201
201
|
if (typeof t == "function") {
|
|
202
202
|
const n = t;
|
|
203
203
|
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: (l) => ({
|
|
@@ -208,7 +208,7 @@ function Me(e, t, s) {
|
|
|
208
208
|
const a = { type: "datePicker", ...t };
|
|
209
209
|
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ve(e, t, s) {
|
|
212
212
|
if (typeof t == "function") {
|
|
213
213
|
const n = t;
|
|
214
214
|
return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: (l) => ({
|
|
@@ -219,7 +219,7 @@ function Le(e, t, s) {
|
|
|
219
219
|
const a = { type: "dateTimePicker", ...t };
|
|
220
220
|
return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Re(e, t, s) {
|
|
223
223
|
if (typeof t == "function") {
|
|
224
224
|
const n = t;
|
|
225
225
|
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: (l) => ({
|
|
@@ -230,7 +230,7 @@ function ve(e, t, s) {
|
|
|
230
230
|
const a = { type: "rangeCalendar", ...t };
|
|
231
231
|
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
232
232
|
}
|
|
233
|
-
function
|
|
233
|
+
function Ne(e, t, s) {
|
|
234
234
|
if (typeof t == "function") {
|
|
235
235
|
const n = t;
|
|
236
236
|
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: (l) => ({
|
|
@@ -241,7 +241,7 @@ function Re(e, t, s) {
|
|
|
241
241
|
const a = { type: "rangeDateInput", ...t };
|
|
242
242
|
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function Ce(e, t, s) {
|
|
245
245
|
if (typeof t == "function") {
|
|
246
246
|
const n = t;
|
|
247
247
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: (l) => ({
|
|
@@ -252,7 +252,7 @@ function Ne(e, t, s) {
|
|
|
252
252
|
const a = { type: "rangeDateTimeInput", ...t };
|
|
253
253
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
254
254
|
}
|
|
255
|
-
function
|
|
255
|
+
function Be(e, t, s) {
|
|
256
256
|
if (typeof t == "function") {
|
|
257
257
|
const n = t;
|
|
258
258
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: (l) => ({
|
|
@@ -263,7 +263,7 @@ function Ce(e, t, s) {
|
|
|
263
263
|
const a = { type: "rangeDateTimeCalendar", ...t };
|
|
264
264
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function We(e, t, s) {
|
|
267
267
|
if (typeof t == "function") {
|
|
268
268
|
const n = t;
|
|
269
269
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: (l) => ({
|
|
@@ -274,7 +274,7 @@ function Be(e, t, s) {
|
|
|
274
274
|
const a = { type: "rangeDateTimePicker", ...t };
|
|
275
275
|
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function we(e, t, s) {
|
|
278
278
|
if (typeof t == "function") {
|
|
279
279
|
const n = t;
|
|
280
280
|
return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: (l) => ({
|
|
@@ -285,7 +285,7 @@ function We(e, t, s) {
|
|
|
285
285
|
const a = { type: "rangeTimeInput", ...t };
|
|
286
286
|
return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function xe(e, t, s) {
|
|
289
289
|
if (typeof t == "function") {
|
|
290
290
|
const n = t;
|
|
291
291
|
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: (l) => ({
|
|
@@ -296,7 +296,7 @@ function we(e, t, s) {
|
|
|
296
296
|
const a = { type: "rangeDatePicker", ...t };
|
|
297
297
|
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function Ge(e, t, s) {
|
|
300
300
|
if (typeof t == "function") {
|
|
301
301
|
const n = t;
|
|
302
302
|
return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: (l) => ({
|
|
@@ -307,7 +307,7 @@ function xe(e, t, s) {
|
|
|
307
307
|
const a = { type: "rangeTimePicker", ...t };
|
|
308
308
|
return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function Ke(e, t, s) {
|
|
311
311
|
if (typeof t == "function") {
|
|
312
312
|
const n = t;
|
|
313
313
|
return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: (l) => ({ type: "timeInput", ...n(l) }) }], tags: s ?? [] };
|
|
@@ -315,7 +315,7 @@ function Ge(e, t, s) {
|
|
|
315
315
|
const a = { type: "timeInput", ...t };
|
|
316
316
|
return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
317
317
|
}
|
|
318
|
-
function
|
|
318
|
+
function Ye(e, t, s) {
|
|
319
319
|
if (typeof t == "function") {
|
|
320
320
|
const n = t;
|
|
321
321
|
return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: (l) => ({
|
|
@@ -326,7 +326,7 @@ function Ke(e, t, s) {
|
|
|
326
326
|
const a = { type: "timePicker", ...t };
|
|
327
327
|
return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function $e(e, t, s) {
|
|
330
330
|
if (typeof t == "function") {
|
|
331
331
|
const n = t;
|
|
332
332
|
return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: (l) => ({
|
|
@@ -337,18 +337,18 @@ function Ye(e, t, s) {
|
|
|
337
337
|
const a = { type: "dateTimeInput", ...t };
|
|
338
338
|
return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
339
339
|
}
|
|
340
|
-
function
|
|
340
|
+
function Oe(e, t, s, a) {
|
|
341
341
|
if (typeof s == "function") {
|
|
342
342
|
const o = s;
|
|
343
|
-
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (
|
|
343
|
+
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (c) => ({
|
|
344
344
|
customType: e,
|
|
345
|
-
...o(
|
|
345
|
+
...o(c)
|
|
346
346
|
}) }], tags: a ?? [] };
|
|
347
347
|
}
|
|
348
348
|
const i = { customType: e, ...s };
|
|
349
349
|
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: i }], tags: a ?? [] };
|
|
350
350
|
}
|
|
351
|
-
function
|
|
351
|
+
function Fe(e, t) {
|
|
352
352
|
return {
|
|
353
353
|
items: [e],
|
|
354
354
|
type: "ITEMS",
|
|
@@ -356,32 +356,32 @@ function Oe(e, t) {
|
|
|
356
356
|
tags: t ?? []
|
|
357
357
|
};
|
|
358
358
|
}
|
|
359
|
-
function
|
|
359
|
+
function ze(e, t, s) {
|
|
360
360
|
if (typeof t == "function") {
|
|
361
361
|
const n = t;
|
|
362
362
|
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
|
|
363
|
-
(
|
|
363
|
+
(u) => ({ customType: e, ...n(u) })
|
|
364
364
|
], tags: s ?? [] };
|
|
365
365
|
}
|
|
366
366
|
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType: e, ...t }], tags: s ?? [] };
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const He = (e, t) => ({
|
|
369
369
|
type: "ITEMS",
|
|
370
370
|
itemType: m.DISPLAYS,
|
|
371
371
|
items: [{ render: e }],
|
|
372
372
|
tags: t ?? []
|
|
373
373
|
});
|
|
374
|
-
function
|
|
374
|
+
function Ve(e, t) {
|
|
375
375
|
return { type: "ITEMS", itemType: "ALERTS", items: [e], tags: t ?? [] };
|
|
376
376
|
}
|
|
377
|
-
function
|
|
377
|
+
function Xe(e, t) {
|
|
378
378
|
return { type: "ITEMS", itemType: "MARKDOWN_TEXTS", items: [e], tags: t ?? [] };
|
|
379
379
|
}
|
|
380
|
-
function
|
|
380
|
+
function je(e, t, s) {
|
|
381
381
|
if (typeof t == "function") {
|
|
382
|
-
const
|
|
382
|
+
const u = t;
|
|
383
383
|
return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
|
|
384
|
-
(
|
|
384
|
+
(c) => ({ customType: e, ...u(c) })
|
|
385
385
|
], tags: s ?? [] };
|
|
386
386
|
}
|
|
387
387
|
const { uid: a, ...i } = t ?? {};
|
|
@@ -396,7 +396,7 @@ const U = (e, t, s) => ({
|
|
|
396
396
|
itemType: m.LAYOUTS,
|
|
397
397
|
items: [{ def: { widgetName: "flex", ...t ?? {} }, children: e }],
|
|
398
398
|
tags: s ?? []
|
|
399
|
-
}),
|
|
399
|
+
}), Ze = (e, t, s) => U(e, { direction: "row", ...t ?? {} }, s), qe = (e, t, s) => U(e, { direction: "column", ...t ?? {} }, s), M = (e, t, s) => ({
|
|
400
400
|
type: "ITEMS",
|
|
401
401
|
itemType: m.LAYOUTS,
|
|
402
402
|
items: [
|
|
@@ -411,20 +411,20 @@ const U = (e, t, s) => ({
|
|
|
411
411
|
}
|
|
412
412
|
],
|
|
413
413
|
tags: s ?? []
|
|
414
|
-
}),
|
|
415
|
-
function
|
|
414
|
+
}), Je = (e, t, s) => M(e, { direction: "row", ...t ?? {} }, s), Qe = (e, t, s) => M(e, { direction: "column", ...t ?? {} }, s);
|
|
415
|
+
function S(e) {
|
|
416
416
|
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
417
417
|
}
|
|
418
|
-
function
|
|
418
|
+
function et(e, t, s) {
|
|
419
419
|
const a = e.map((o) => ({
|
|
420
420
|
label: o.label,
|
|
421
|
-
uid: o.uid ??
|
|
421
|
+
uid: o.uid ?? S(o.label)
|
|
422
422
|
})), i = e.map((o) => ({
|
|
423
423
|
type: "ITEMS",
|
|
424
424
|
itemType: m.LAYOUTS,
|
|
425
425
|
items: [
|
|
426
426
|
{
|
|
427
|
-
def: { uid: o.uid ??
|
|
427
|
+
def: { uid: o.uid ?? S(o.label), direction: "column", widgetName: "flex" },
|
|
428
428
|
children: o.children
|
|
429
429
|
}
|
|
430
430
|
],
|
|
@@ -443,7 +443,7 @@ function Qe(e, t, s) {
|
|
|
443
443
|
function D(e) {
|
|
444
444
|
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function tt(e, t, s) {
|
|
447
447
|
const a = e.map((o) => ({
|
|
448
448
|
label: o.label,
|
|
449
449
|
uid: o.uid ?? D(o.label)
|
|
@@ -468,17 +468,17 @@ function et(e, t, s) {
|
|
|
468
468
|
tags: s ?? []
|
|
469
469
|
};
|
|
470
470
|
}
|
|
471
|
-
function
|
|
471
|
+
function st(e, t, s, a) {
|
|
472
472
|
if (typeof s == "function") {
|
|
473
473
|
const o = s;
|
|
474
|
-
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (
|
|
474
|
+
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (c) => ({
|
|
475
475
|
customType: e,
|
|
476
|
-
...o(
|
|
476
|
+
...o(c)
|
|
477
477
|
}), children: t }], tags: a ?? [] };
|
|
478
478
|
}
|
|
479
479
|
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: e, ...s }, children: t }], tags: a ?? [] };
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function at(e, t, s) {
|
|
482
482
|
const { template: a, ...i } = t;
|
|
483
483
|
return {
|
|
484
484
|
type: "ITEMS",
|
|
@@ -487,7 +487,7 @@ function st(e, t, s) {
|
|
|
487
487
|
tags: s ?? []
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
function
|
|
490
|
+
function it(e, t, s) {
|
|
491
491
|
if (typeof t == "function") {
|
|
492
492
|
const n = t;
|
|
493
493
|
return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: (l) => ({ type: "tags", ...n(l) }) }], tags: s ?? [] };
|
|
@@ -495,13 +495,13 @@ function at(e, t, s) {
|
|
|
495
495
|
const a = { type: "tags", ...t };
|
|
496
496
|
return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
497
497
|
}
|
|
498
|
-
const I = /* @__PURE__ */ new Map();
|
|
499
|
-
function L(e, t) {
|
|
498
|
+
const I = /* @__PURE__ */ new Map(), C = /* @__PURE__ */ new Map();
|
|
499
|
+
function L(e, t, s) {
|
|
500
500
|
if (I.has(e))
|
|
501
501
|
throw new Error(`Item type "${e}" is already registered.`);
|
|
502
|
-
I.set(e, t);
|
|
502
|
+
I.set(e, t), s && C.set(e, s);
|
|
503
503
|
}
|
|
504
|
-
function
|
|
504
|
+
function nt(e) {
|
|
505
505
|
const t = I.get(e);
|
|
506
506
|
if (!t)
|
|
507
507
|
throw new Error(
|
|
@@ -509,32 +509,32 @@ function it(e) {
|
|
|
509
509
|
);
|
|
510
510
|
return t;
|
|
511
511
|
}
|
|
512
|
-
function
|
|
512
|
+
function lt(e) {
|
|
513
513
|
return I.has(e);
|
|
514
514
|
}
|
|
515
|
-
function
|
|
516
|
-
const t = (
|
|
515
|
+
function r(e) {
|
|
516
|
+
const t = (u) => {
|
|
517
517
|
if (!e.sensibleDefaults)
|
|
518
518
|
return {};
|
|
519
519
|
let l = { ...e.sensibleDefaults.base };
|
|
520
|
-
for (const
|
|
521
|
-
const g =
|
|
520
|
+
for (const c of u) {
|
|
521
|
+
const g = c.config;
|
|
522
522
|
for (const b of e.sensibleDefaults.fields) {
|
|
523
523
|
const _ = b;
|
|
524
524
|
g[_] != null && (l = { ...l, [_]: g[_] });
|
|
525
525
|
}
|
|
526
526
|
}
|
|
527
527
|
return l;
|
|
528
|
-
}, s = (
|
|
528
|
+
}, s = (u, l) => e.sensibleDefaults ? e.sensibleDefaults.apply(u, l) : u, a = (u) => {
|
|
529
529
|
switch (e.entryShape) {
|
|
530
530
|
case "bare":
|
|
531
|
-
return { baseDef:
|
|
531
|
+
return { baseDef: u };
|
|
532
532
|
case "keyed": {
|
|
533
|
-
const l =
|
|
533
|
+
const l = u;
|
|
534
534
|
return { baseDef: l.def, path: l.key };
|
|
535
535
|
}
|
|
536
536
|
case "compound": {
|
|
537
|
-
const l =
|
|
537
|
+
const l = u;
|
|
538
538
|
return { baseDef: l.def, children: l.children };
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -547,9 +547,9 @@ function u(e) {
|
|
|
547
547
|
...e.buildCustomWidget ? { buildCustomWidget: e.buildCustomWidget } : {},
|
|
548
548
|
...e.getChildren ? { getChildren: e.getChildren } : {}
|
|
549
549
|
};
|
|
550
|
-
L(e.itemType, i);
|
|
550
|
+
L(e.itemType, i, e.kind);
|
|
551
551
|
const n = P(e.itemType);
|
|
552
|
-
return { gsl: n, gslByUid: (
|
|
552
|
+
return { gsl: n, gslByUid: (u, l) => n(l, ((c) => c.uid === u)) };
|
|
553
553
|
}
|
|
554
554
|
function p(e) {
|
|
555
555
|
const {
|
|
@@ -559,43 +559,43 @@ function p(e) {
|
|
|
559
559
|
disabled: i,
|
|
560
560
|
readonly: n,
|
|
561
561
|
defaultValue: o,
|
|
562
|
-
tags:
|
|
562
|
+
tags: u,
|
|
563
563
|
type: l,
|
|
564
|
-
size:
|
|
564
|
+
size: c,
|
|
565
565
|
onLoad: g,
|
|
566
566
|
onChange: b,
|
|
567
567
|
onFilter: _,
|
|
568
568
|
on: A,
|
|
569
569
|
states: E,
|
|
570
|
-
include:
|
|
571
|
-
exclude:
|
|
570
|
+
include: de,
|
|
571
|
+
exclude: ye,
|
|
572
572
|
validator: ce,
|
|
573
573
|
...N
|
|
574
574
|
} = e;
|
|
575
575
|
return N;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
577
|
+
function B(e) {
|
|
578
578
|
return e ? e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (t) => t.toUpperCase()) : "";
|
|
579
579
|
}
|
|
580
580
|
function d(e, t) {
|
|
581
|
-
return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label:
|
|
581
|
+
return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: B(e.path) };
|
|
582
582
|
}
|
|
583
583
|
function T(e, t) {
|
|
584
584
|
return e.placeholder != null || t.suppressAutomaticPlaceholders || !e.path ? e : { ...e, placeholder: e.path };
|
|
585
585
|
}
|
|
586
|
-
function
|
|
586
|
+
function W(e) {
|
|
587
587
|
switch (e.type) {
|
|
588
588
|
case "text":
|
|
589
|
-
return w(e);
|
|
590
|
-
case "number":
|
|
591
589
|
return x(e);
|
|
590
|
+
case "number":
|
|
591
|
+
return G(e);
|
|
592
592
|
case "boolean":
|
|
593
|
-
return
|
|
593
|
+
return w(e);
|
|
594
594
|
default:
|
|
595
595
|
throw new Error(`Unsupported field type "${e.type}"`);
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
|
-
function
|
|
598
|
+
function w(e) {
|
|
599
599
|
const t = p(e);
|
|
600
600
|
return {
|
|
601
601
|
uid: e.uid ?? "",
|
|
@@ -605,11 +605,11 @@ function W(e) {
|
|
|
605
605
|
...e.label != null ? { label: e.label } : {},
|
|
606
606
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
607
607
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
608
|
-
...e.validator != null ? { validator:
|
|
608
|
+
...e.validator != null ? { validator: y(e.validator, "boolean") } : {},
|
|
609
609
|
props: t
|
|
610
610
|
};
|
|
611
611
|
}
|
|
612
|
-
function
|
|
612
|
+
function x(e) {
|
|
613
613
|
const t = p(e);
|
|
614
614
|
return {
|
|
615
615
|
uid: e.uid ?? "",
|
|
@@ -623,10 +623,10 @@ function w(e) {
|
|
|
623
623
|
placeholder: t.placeholder ?? "",
|
|
624
624
|
...t
|
|
625
625
|
},
|
|
626
|
-
validator:
|
|
626
|
+
validator: y(e.validator, "string")
|
|
627
627
|
};
|
|
628
628
|
}
|
|
629
|
-
function
|
|
629
|
+
function G(e) {
|
|
630
630
|
const t = p(e);
|
|
631
631
|
return {
|
|
632
632
|
uid: e.uid ?? "",
|
|
@@ -640,11 +640,12 @@ function x(e) {
|
|
|
640
640
|
placeholder: t.placeholder ?? "",
|
|
641
641
|
...t
|
|
642
642
|
},
|
|
643
|
-
validator:
|
|
643
|
+
validator: y(e.validator, "number")
|
|
644
644
|
};
|
|
645
645
|
}
|
|
646
|
-
const { gsl:
|
|
646
|
+
const { gsl: h, gslByUid: ot } = r({
|
|
647
647
|
itemType: "INPUTS",
|
|
648
|
+
kind: "input",
|
|
648
649
|
entryShape: "keyed",
|
|
649
650
|
sensibleDefaults: {
|
|
650
651
|
base: {
|
|
@@ -657,9 +658,10 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
657
658
|
return s = T(s, t), s;
|
|
658
659
|
}
|
|
659
660
|
},
|
|
660
|
-
mapToWidget:
|
|
661
|
-
}),
|
|
661
|
+
mapToWidget: W
|
|
662
|
+
}), ut = (e) => h(e, (t) => t.type === "text"), rt = (e) => h(e, (t) => t.type === "number"), pt = (e) => h(e, (t) => t.type === "boolean"), { gsl: dt, gslByUid: yt } = r({
|
|
662
663
|
itemType: "SELECT",
|
|
664
|
+
kind: "input",
|
|
663
665
|
entryShape: "keyed",
|
|
664
666
|
sensibleDefaults: {
|
|
665
667
|
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
@@ -677,8 +679,9 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
677
679
|
...e.validator != null ? { validator: e.validator } : {},
|
|
678
680
|
props: p(e)
|
|
679
681
|
})
|
|
680
|
-
}), { gsl: ct, gslByUid:
|
|
682
|
+
}), { gsl: ct, gslByUid: mt } = r({
|
|
681
683
|
itemType: "DROPDOWN",
|
|
684
|
+
kind: "input",
|
|
682
685
|
entryShape: "keyed",
|
|
683
686
|
sensibleDefaults: {
|
|
684
687
|
base: {
|
|
@@ -699,8 +702,9 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
699
702
|
...e.validator != null ? { validator: e.validator } : {},
|
|
700
703
|
props: p(e)
|
|
701
704
|
})
|
|
702
|
-
}), { gsl:
|
|
705
|
+
}), { gsl: Tt, gslByUid: gt } = r({
|
|
703
706
|
itemType: "RADIOGROUP",
|
|
707
|
+
kind: "input",
|
|
704
708
|
entryShape: "keyed",
|
|
705
709
|
sensibleDefaults: {
|
|
706
710
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -718,8 +722,9 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
718
722
|
...e.validator != null ? { validator: e.validator } : {},
|
|
719
723
|
props: p(e)
|
|
720
724
|
})
|
|
721
|
-
}), { gsl:
|
|
725
|
+
}), { gsl: bt, gslByUid: _t } = r({
|
|
722
726
|
itemType: "CHECKBOX",
|
|
727
|
+
kind: "input",
|
|
723
728
|
entryShape: "keyed",
|
|
724
729
|
sensibleDefaults: {
|
|
725
730
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -734,11 +739,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
734
739
|
...e.label != null ? { label: e.label } : {},
|
|
735
740
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
736
741
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
737
|
-
...e.validator != null ? { validator:
|
|
742
|
+
...e.validator != null ? { validator: y(e.validator, "boolean") } : {},
|
|
738
743
|
props: p(e)
|
|
739
744
|
})
|
|
740
|
-
}), { gsl:
|
|
745
|
+
}), { gsl: Et, gslByUid: It } = r({
|
|
741
746
|
itemType: "TEXTAREA",
|
|
747
|
+
kind: "input",
|
|
742
748
|
entryShape: "keyed",
|
|
743
749
|
sensibleDefaults: {
|
|
744
750
|
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
@@ -753,11 +759,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
753
759
|
...e.label != null ? { label: e.label } : {},
|
|
754
760
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
755
761
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
756
|
-
...e.validator != null ? { validator:
|
|
762
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
757
763
|
props: p(e)
|
|
758
764
|
})
|
|
759
|
-
}), { gsl:
|
|
765
|
+
}), { gsl: At, gslByUid: kt } = r({
|
|
760
766
|
itemType: "PASSWORD",
|
|
767
|
+
kind: "input",
|
|
761
768
|
entryShape: "keyed",
|
|
762
769
|
sensibleDefaults: {
|
|
763
770
|
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
@@ -772,11 +779,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
772
779
|
...e.label != null ? { label: e.label } : {},
|
|
773
780
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
774
781
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
775
|
-
...e.validator != null ? { validator:
|
|
782
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
776
783
|
props: p(e)
|
|
777
784
|
})
|
|
778
|
-
}), { gsl: ht, gslByUid: St } =
|
|
785
|
+
}), { gsl: ht, gslByUid: St } = r({
|
|
779
786
|
itemType: "CURRENCY",
|
|
787
|
+
kind: "input",
|
|
780
788
|
entryShape: "keyed",
|
|
781
789
|
sensibleDefaults: {
|
|
782
790
|
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
@@ -791,11 +799,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
791
799
|
...e.label != null ? { label: e.label } : {},
|
|
792
800
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
793
801
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
794
|
-
...e.validator != null ? { validator:
|
|
802
|
+
...e.validator != null ? { validator: y(e.validator, "number") } : {},
|
|
795
803
|
props: p(e)
|
|
796
804
|
})
|
|
797
|
-
}), { gsl:
|
|
805
|
+
}), { gsl: Dt, gslByUid: ft } = r({
|
|
798
806
|
itemType: "MARKDOWN",
|
|
807
|
+
kind: "input",
|
|
799
808
|
entryShape: "keyed",
|
|
800
809
|
sensibleDefaults: {
|
|
801
810
|
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
@@ -810,11 +819,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
810
819
|
...e.label != null ? { label: e.label } : {},
|
|
811
820
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
812
821
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
813
|
-
...e.validator != null ? { validator:
|
|
822
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
814
823
|
props: p(e)
|
|
815
824
|
})
|
|
816
|
-
}), { gsl:
|
|
825
|
+
}), { gsl: Pt, gslByUid: Ut } = r({
|
|
817
826
|
itemType: "LIST",
|
|
827
|
+
kind: "input",
|
|
818
828
|
entryShape: "keyed",
|
|
819
829
|
sensibleDefaults: {
|
|
820
830
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -832,8 +842,9 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
832
842
|
...e.validator != null ? { validator: e.validator } : {},
|
|
833
843
|
props: p(e)
|
|
834
844
|
})
|
|
835
|
-
}), { gsl:
|
|
845
|
+
}), { gsl: Mt, gslByUid: Lt } = r({
|
|
836
846
|
itemType: "CALENDAR",
|
|
847
|
+
kind: "input",
|
|
837
848
|
entryShape: "bare",
|
|
838
849
|
sensibleDefaults: {
|
|
839
850
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -848,11 +859,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
848
859
|
...e.label != null ? { label: e.label } : {},
|
|
849
860
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
850
861
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
851
|
-
...e.validator != null ? { validator:
|
|
862
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
852
863
|
props: p(e)
|
|
853
864
|
})
|
|
854
|
-
}), { gsl:
|
|
865
|
+
}), { gsl: vt, gslByUid: Rt } = r({
|
|
855
866
|
itemType: "DATE_TIME_CALENDAR",
|
|
867
|
+
kind: "input",
|
|
856
868
|
entryShape: "bare",
|
|
857
869
|
sensibleDefaults: {
|
|
858
870
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -867,11 +879,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
867
879
|
...e.label != null ? { label: e.label } : {},
|
|
868
880
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
869
881
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
870
|
-
...e.validator != null ? { validator:
|
|
882
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
871
883
|
props: p(e)
|
|
872
884
|
})
|
|
873
|
-
}), { gsl:
|
|
885
|
+
}), { gsl: Nt, gslByUid: Ct } = r({
|
|
874
886
|
itemType: "DATE_INPUT",
|
|
887
|
+
kind: "input",
|
|
875
888
|
entryShape: "keyed",
|
|
876
889
|
sensibleDefaults: {
|
|
877
890
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -886,11 +899,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
886
899
|
...e.label != null ? { label: e.label } : {},
|
|
887
900
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
888
901
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
889
|
-
...e.validator != null ? { validator:
|
|
902
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
890
903
|
props: p(e)
|
|
891
904
|
})
|
|
892
|
-
}), { gsl:
|
|
905
|
+
}), { gsl: Bt, gslByUid: Wt } = r({
|
|
893
906
|
itemType: "DATE_PICKER",
|
|
907
|
+
kind: "input",
|
|
894
908
|
entryShape: "keyed",
|
|
895
909
|
sensibleDefaults: {
|
|
896
910
|
base: {
|
|
@@ -908,11 +922,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
908
922
|
...e.label != null ? { label: e.label } : {},
|
|
909
923
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
910
924
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
911
|
-
...e.validator != null ? { validator:
|
|
925
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
912
926
|
props: p(e)
|
|
913
927
|
})
|
|
914
|
-
}), { gsl:
|
|
928
|
+
}), { gsl: wt, gslByUid: xt } = r({
|
|
915
929
|
itemType: "DATE_TIME_PICKER",
|
|
930
|
+
kind: "input",
|
|
916
931
|
entryShape: "keyed",
|
|
917
932
|
sensibleDefaults: {
|
|
918
933
|
base: {
|
|
@@ -930,11 +945,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
930
945
|
...e.label != null ? { label: e.label } : {},
|
|
931
946
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
932
947
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
933
|
-
...e.validator != null ? { validator:
|
|
948
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
934
949
|
props: p(e)
|
|
935
950
|
})
|
|
936
|
-
}), { gsl:
|
|
951
|
+
}), { gsl: Gt, gslByUid: Kt } = r({
|
|
937
952
|
itemType: "RANGE_CALENDAR",
|
|
953
|
+
kind: "input",
|
|
938
954
|
entryShape: "keyed",
|
|
939
955
|
sensibleDefaults: {
|
|
940
956
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -949,11 +965,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
949
965
|
...e.label != null ? { label: e.label } : {},
|
|
950
966
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
951
967
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
952
|
-
...e.validator != null ? { validator:
|
|
968
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
953
969
|
props: p(e)
|
|
954
970
|
})
|
|
955
|
-
}), { gsl:
|
|
971
|
+
}), { gsl: Yt, gslByUid: $t } = r({
|
|
956
972
|
itemType: "RANGE_DATE_INPUT",
|
|
973
|
+
kind: "input",
|
|
957
974
|
entryShape: "keyed",
|
|
958
975
|
sensibleDefaults: {
|
|
959
976
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -968,11 +985,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
968
985
|
...e.label != null ? { label: e.label } : {},
|
|
969
986
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
970
987
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
971
|
-
...e.validator != null ? { validator:
|
|
988
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
972
989
|
props: p(e)
|
|
973
990
|
})
|
|
974
|
-
}), { gsl:
|
|
991
|
+
}), { gsl: Ot, gslByUid: Ft } = r({
|
|
975
992
|
itemType: "RANGE_DATE_TIME_INPUT",
|
|
993
|
+
kind: "input",
|
|
976
994
|
entryShape: "keyed",
|
|
977
995
|
sensibleDefaults: {
|
|
978
996
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -987,11 +1005,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
987
1005
|
...e.label != null ? { label: e.label } : {},
|
|
988
1006
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
989
1007
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
990
|
-
...e.validator != null ? { validator:
|
|
1008
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
991
1009
|
props: p(e)
|
|
992
1010
|
})
|
|
993
|
-
}), { gsl:
|
|
1011
|
+
}), { gsl: zt, gslByUid: Ht } = r({
|
|
994
1012
|
itemType: "RANGE_DATE_TIME_CALENDAR",
|
|
1013
|
+
kind: "input",
|
|
995
1014
|
entryShape: "keyed",
|
|
996
1015
|
sensibleDefaults: {
|
|
997
1016
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -1006,11 +1025,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
1006
1025
|
...e.label != null ? { label: e.label } : {},
|
|
1007
1026
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1008
1027
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1009
|
-
...e.validator != null ? { validator:
|
|
1028
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
1010
1029
|
props: p(e)
|
|
1011
1030
|
})
|
|
1012
|
-
}), { gsl:
|
|
1031
|
+
}), { gsl: Vt, gslByUid: Xt } = r({
|
|
1013
1032
|
itemType: "RANGE_DATE_TIME_PICKER",
|
|
1033
|
+
kind: "input",
|
|
1014
1034
|
entryShape: "keyed",
|
|
1015
1035
|
sensibleDefaults: {
|
|
1016
1036
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -1025,11 +1045,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
1025
1045
|
...e.label != null ? { label: e.label } : {},
|
|
1026
1046
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1027
1047
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1028
|
-
...e.validator != null ? { validator:
|
|
1048
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
1029
1049
|
props: p(e)
|
|
1030
1050
|
})
|
|
1031
|
-
}), { gsl:
|
|
1051
|
+
}), { gsl: jt, gslByUid: Zt } = r({
|
|
1032
1052
|
itemType: "RANGE_TIME_INPUT",
|
|
1053
|
+
kind: "input",
|
|
1033
1054
|
entryShape: "keyed",
|
|
1034
1055
|
sensibleDefaults: {
|
|
1035
1056
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -1044,11 +1065,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
1044
1065
|
...e.label != null ? { label: e.label } : {},
|
|
1045
1066
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1046
1067
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1047
|
-
...e.validator != null ? { validator:
|
|
1068
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
1048
1069
|
props: p(e)
|
|
1049
1070
|
})
|
|
1050
|
-
}), { gsl:
|
|
1071
|
+
}), { gsl: qt, gslByUid: Jt } = r({
|
|
1051
1072
|
itemType: "TIME_INPUT",
|
|
1073
|
+
kind: "input",
|
|
1052
1074
|
entryShape: "keyed",
|
|
1053
1075
|
sensibleDefaults: {
|
|
1054
1076
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -1063,11 +1085,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
1063
1085
|
...e.label != null ? { label: e.label } : {},
|
|
1064
1086
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1065
1087
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1066
|
-
...e.validator != null ? { validator:
|
|
1088
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
1067
1089
|
props: p(e)
|
|
1068
1090
|
})
|
|
1069
|
-
}), { gsl:
|
|
1091
|
+
}), { gsl: Qt, gslByUid: es } = r({
|
|
1070
1092
|
itemType: "TIME_PICKER",
|
|
1093
|
+
kind: "input",
|
|
1071
1094
|
entryShape: "keyed",
|
|
1072
1095
|
sensibleDefaults: {
|
|
1073
1096
|
base: {
|
|
@@ -1085,11 +1108,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
1085
1108
|
...e.label != null ? { label: e.label } : {},
|
|
1086
1109
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1087
1110
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1088
|
-
...e.validator != null ? { validator:
|
|
1111
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
1089
1112
|
props: p(e)
|
|
1090
1113
|
})
|
|
1091
|
-
}), { gsl:
|
|
1114
|
+
}), { gsl: ts, gslByUid: ss } = r({
|
|
1092
1115
|
itemType: "DATE_TIME_INPUT",
|
|
1116
|
+
kind: "input",
|
|
1093
1117
|
entryShape: "keyed",
|
|
1094
1118
|
sensibleDefaults: {
|
|
1095
1119
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -1104,11 +1128,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
1104
1128
|
...e.label != null ? { label: e.label } : {},
|
|
1105
1129
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1106
1130
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1107
|
-
...e.validator != null ? { validator:
|
|
1131
|
+
...e.validator != null ? { validator: y(e.validator, "string") } : {},
|
|
1108
1132
|
props: p(e)
|
|
1109
1133
|
})
|
|
1110
|
-
}), { gsl:
|
|
1134
|
+
}), { gsl: as, gslByUid: is } = r({
|
|
1111
1135
|
itemType: "RANGE_DATE_PICKER",
|
|
1136
|
+
kind: "input",
|
|
1112
1137
|
entryShape: "keyed",
|
|
1113
1138
|
sensibleDefaults: {
|
|
1114
1139
|
base: {
|
|
@@ -1126,11 +1151,12 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
1126
1151
|
...e.label != null ? { label: e.label } : {},
|
|
1127
1152
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1128
1153
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1129
|
-
...e.validator != null ? { validator:
|
|
1154
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
1130
1155
|
props: p(e)
|
|
1131
1156
|
})
|
|
1132
|
-
}), { gsl:
|
|
1157
|
+
}), { gsl: ns, gslByUid: ls } = r({
|
|
1133
1158
|
itemType: "RANGE_TIME_PICKER",
|
|
1159
|
+
kind: "input",
|
|
1134
1160
|
entryShape: "keyed",
|
|
1135
1161
|
sensibleDefaults: {
|
|
1136
1162
|
base: { suppressAutomaticLabels: !1 },
|
|
@@ -1145,15 +1171,15 @@ const { gsl: S, gslByUid: lt } = u({
|
|
|
1145
1171
|
...e.label != null ? { label: e.label } : {},
|
|
1146
1172
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1147
1173
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1148
|
-
...e.validator != null ? { validator:
|
|
1174
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
1149
1175
|
props: p(e)
|
|
1150
1176
|
})
|
|
1151
1177
|
});
|
|
1152
|
-
function
|
|
1178
|
+
function K(e) {
|
|
1153
1179
|
const t = {};
|
|
1154
1180
|
return e.addLabel != null && (t.addLabel = e.addLabel), e.removeLabel != null && (t.removeLabel = e.removeLabel), e.limit != null && (t.limit = e.limit), e.title != null && (t.title = e.title), e.addButtonIcon != null && (t.addButtonIcon = e.addButtonIcon), e.removeButtonIcon != null && (t.removeButtonIcon = e.removeButtonIcon), t;
|
|
1155
1181
|
}
|
|
1156
|
-
function
|
|
1182
|
+
function Y(e) {
|
|
1157
1183
|
return {
|
|
1158
1184
|
uid: e.uid ?? "",
|
|
1159
1185
|
kind: "input",
|
|
@@ -1162,25 +1188,25 @@ function K(e) {
|
|
|
1162
1188
|
...e.label != null ? { label: e.label } : {},
|
|
1163
1189
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1164
1190
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1165
|
-
...e.validator != null ? { validator:
|
|
1191
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
1166
1192
|
props: {
|
|
1167
|
-
...
|
|
1193
|
+
...K(e),
|
|
1168
1194
|
template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
|
|
1169
1195
|
}
|
|
1170
1196
|
};
|
|
1171
1197
|
}
|
|
1172
|
-
function
|
|
1198
|
+
function k(e, t) {
|
|
1173
1199
|
for (const s of e) {
|
|
1174
1200
|
if (typeof s == "function") continue;
|
|
1175
1201
|
const a = s;
|
|
1176
|
-
typeof a.path == "string" && a.path && !a.path.startsWith(t) && (a.path = t + a.path), "children" in a && Array.isArray(a.children) &&
|
|
1202
|
+
typeof a.path == "string" && a.path && !a.path.startsWith(t) && (a.path = t + a.path), "children" in a && Array.isArray(a.children) && k(a.children, t);
|
|
1177
1203
|
const i = a.props;
|
|
1178
|
-
i?.template?.children && Array.isArray(i.template.children) &&
|
|
1204
|
+
i?.template?.children && Array.isArray(i.template.children) && k(i.template.children, t);
|
|
1179
1205
|
}
|
|
1180
1206
|
}
|
|
1181
|
-
function
|
|
1207
|
+
function $(e, t) {
|
|
1182
1208
|
const s = t.walkChildren(t.children ?? []), a = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
|
|
1183
|
-
a &&
|
|
1209
|
+
a && k(s, a + ".items.");
|
|
1184
1210
|
const i = {
|
|
1185
1211
|
kind: "layout",
|
|
1186
1212
|
type: "flex",
|
|
@@ -1197,39 +1223,39 @@ function Y(e, t) {
|
|
|
1197
1223
|
}
|
|
1198
1224
|
const n = e.fn;
|
|
1199
1225
|
return ((o) => {
|
|
1200
|
-
const
|
|
1226
|
+
const u = n(o), l = t.mapStaticDef(u, "REPEATER");
|
|
1201
1227
|
return {
|
|
1202
1228
|
...l,
|
|
1203
1229
|
props: { ...l.props, template: i }
|
|
1204
1230
|
};
|
|
1205
1231
|
});
|
|
1206
1232
|
}
|
|
1207
|
-
function
|
|
1233
|
+
function O(e) {
|
|
1208
1234
|
return {
|
|
1209
1235
|
baseDef: e.def,
|
|
1210
1236
|
path: e.key,
|
|
1211
1237
|
children: e.children
|
|
1212
1238
|
};
|
|
1213
1239
|
}
|
|
1214
|
-
function
|
|
1240
|
+
function F(e) {
|
|
1215
1241
|
return e.children;
|
|
1216
1242
|
}
|
|
1217
|
-
const
|
|
1218
|
-
parseEntry:
|
|
1243
|
+
const z = {
|
|
1244
|
+
parseEntry: O,
|
|
1219
1245
|
rollUpSensibleDefaults: () => ({}),
|
|
1220
1246
|
applySensibleDefaults: (e) => e,
|
|
1221
|
-
mapToWidget:
|
|
1222
|
-
buildCustomWidget:
|
|
1223
|
-
getChildren:
|
|
1247
|
+
mapToWidget: Y,
|
|
1248
|
+
buildCustomWidget: $,
|
|
1249
|
+
getChildren: F
|
|
1224
1250
|
};
|
|
1225
|
-
L("REPEATER",
|
|
1226
|
-
const
|
|
1251
|
+
L("REPEATER", z, "input");
|
|
1252
|
+
const H = P("REPEATER"), os = (e, t) => H(t, ((s) => s.uid === e)), v = {
|
|
1227
1253
|
onLoad: "load",
|
|
1228
1254
|
onChange: "change",
|
|
1229
1255
|
onFilter: "filter",
|
|
1230
1256
|
onBlur: "blur"
|
|
1231
|
-
},
|
|
1232
|
-
function
|
|
1257
|
+
}, V = Object.keys(v);
|
|
1258
|
+
function X(e) {
|
|
1233
1259
|
if (e.length > 0)
|
|
1234
1260
|
return null;
|
|
1235
1261
|
try {
|
|
@@ -1239,14 +1265,14 @@ function V(e) {
|
|
|
1239
1265
|
return null;
|
|
1240
1266
|
}
|
|
1241
1267
|
}
|
|
1242
|
-
class
|
|
1268
|
+
class j {
|
|
1243
1269
|
// ── Action-specific: onClick ───────────────────────────────────
|
|
1244
1270
|
extractOnClickFromMergeResult(t, s, a) {
|
|
1245
1271
|
if (t.kind === "dynamic") {
|
|
1246
1272
|
const o = t.fn;
|
|
1247
1273
|
return { kind: "dynamic", fn: (l) => {
|
|
1248
|
-
const
|
|
1249
|
-
return this.wireOnClick(
|
|
1274
|
+
const c = o(l);
|
|
1275
|
+
return this.wireOnClick(c, s, a);
|
|
1250
1276
|
} };
|
|
1251
1277
|
}
|
|
1252
1278
|
const i = t.def;
|
|
@@ -1255,8 +1281,8 @@ class X {
|
|
|
1255
1281
|
wireOnClick(t, s, a) {
|
|
1256
1282
|
const i = a.next(), n = t.onClick;
|
|
1257
1283
|
if (typeof n == "function") {
|
|
1258
|
-
const { onClick: o, ...
|
|
1259
|
-
return typeof l == "string" ? { ...
|
|
1284
|
+
const { onClick: o, ...u } = t, l = n(void 0);
|
|
1285
|
+
return typeof l == "string" ? { ...u, uid: i, on: { click: l } } : (s.set(i, (c) => n(c.data)), { ...u, uid: i, on: { click: i } });
|
|
1260
1286
|
}
|
|
1261
1287
|
return { ...t, uid: i };
|
|
1262
1288
|
}
|
|
@@ -1264,8 +1290,8 @@ class X {
|
|
|
1264
1290
|
wireInputLayoutEvents(t, s, a) {
|
|
1265
1291
|
if (t.kind === "dynamic") {
|
|
1266
1292
|
const n = t.fn;
|
|
1267
|
-
return { kind: "dynamic", fn: (
|
|
1268
|
-
const l = n(
|
|
1293
|
+
return { kind: "dynamic", fn: (u) => {
|
|
1294
|
+
const l = n(u);
|
|
1269
1295
|
return this.wireEventProperties(l, s, a);
|
|
1270
1296
|
} };
|
|
1271
1297
|
}
|
|
@@ -1275,27 +1301,27 @@ class X {
|
|
|
1275
1301
|
const i = { ...t.on || {} };
|
|
1276
1302
|
let n = !1;
|
|
1277
1303
|
const o = { ...t };
|
|
1278
|
-
for (const
|
|
1279
|
-
const l = t[
|
|
1304
|
+
for (const u of V) {
|
|
1305
|
+
const l = t[u];
|
|
1280
1306
|
if (l == null) continue;
|
|
1281
|
-
const
|
|
1307
|
+
const c = v[u];
|
|
1282
1308
|
if (typeof l == "function") {
|
|
1283
|
-
const g =
|
|
1309
|
+
const g = X(l);
|
|
1284
1310
|
if (g != null)
|
|
1285
|
-
i[
|
|
1311
|
+
i[c] = g;
|
|
1286
1312
|
else {
|
|
1287
1313
|
const b = a.next();
|
|
1288
|
-
s.set(b, l), i[
|
|
1314
|
+
s.set(b, l), i[c] = b;
|
|
1289
1315
|
}
|
|
1290
1316
|
n = !0;
|
|
1291
|
-
} else typeof l == "string" && (i[
|
|
1292
|
-
delete o[
|
|
1317
|
+
} else typeof l == "string" && (i[c] = l, n = !0);
|
|
1318
|
+
delete o[u];
|
|
1293
1319
|
}
|
|
1294
1320
|
return n && (o.on = i), o;
|
|
1295
1321
|
}
|
|
1296
1322
|
}
|
|
1297
|
-
const R = new
|
|
1298
|
-
function
|
|
1323
|
+
const R = new j();
|
|
1324
|
+
function Z(e) {
|
|
1299
1325
|
const {
|
|
1300
1326
|
uid: t,
|
|
1301
1327
|
label: s,
|
|
@@ -1303,9 +1329,9 @@ function j(e) {
|
|
|
1303
1329
|
disabled: i,
|
|
1304
1330
|
on: n,
|
|
1305
1331
|
onClick: o,
|
|
1306
|
-
data:
|
|
1332
|
+
data: u,
|
|
1307
1333
|
type: l,
|
|
1308
|
-
tags:
|
|
1334
|
+
tags: c,
|
|
1309
1335
|
size: g,
|
|
1310
1336
|
include: b,
|
|
1311
1337
|
exclude: _,
|
|
@@ -1323,17 +1349,18 @@ function j(e) {
|
|
|
1323
1349
|
props: E
|
|
1324
1350
|
};
|
|
1325
1351
|
}
|
|
1326
|
-
const { gsl:
|
|
1352
|
+
const { gsl: us, gslByUid: rs } = r({
|
|
1327
1353
|
itemType: "ACTIONS",
|
|
1354
|
+
kind: "action",
|
|
1328
1355
|
entryShape: "bare",
|
|
1329
|
-
mapToWidget:
|
|
1356
|
+
mapToWidget: Z,
|
|
1330
1357
|
afterMerge: (e, t) => R.extractOnClickFromMergeResult(
|
|
1331
1358
|
e,
|
|
1332
1359
|
t.eventRegistry,
|
|
1333
1360
|
t.eventIdGenerator
|
|
1334
1361
|
)
|
|
1335
1362
|
});
|
|
1336
|
-
function
|
|
1363
|
+
function q(e) {
|
|
1337
1364
|
const {
|
|
1338
1365
|
uid: t,
|
|
1339
1366
|
widgetName: s,
|
|
@@ -1341,9 +1368,9 @@ function Z(e) {
|
|
|
1341
1368
|
size: i,
|
|
1342
1369
|
onChange: n,
|
|
1343
1370
|
include: o,
|
|
1344
|
-
exclude:
|
|
1371
|
+
exclude: u,
|
|
1345
1372
|
...l
|
|
1346
|
-
} = e, { on:
|
|
1373
|
+
} = e, { on: c, ...g } = l;
|
|
1347
1374
|
return {
|
|
1348
1375
|
uid: t ?? "",
|
|
1349
1376
|
kind: "layout",
|
|
@@ -1355,7 +1382,7 @@ function Z(e) {
|
|
|
1355
1382
|
children: []
|
|
1356
1383
|
};
|
|
1357
1384
|
}
|
|
1358
|
-
function
|
|
1385
|
+
function J(e, t) {
|
|
1359
1386
|
const s = t.walkChildren(t.children ?? []);
|
|
1360
1387
|
if (e.kind === "static")
|
|
1361
1388
|
return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: s };
|
|
@@ -1365,15 +1392,16 @@ function q(e, t) {
|
|
|
1365
1392
|
return { ...t.mapStaticDef(n, "LAYOUTS"), children: s };
|
|
1366
1393
|
});
|
|
1367
1394
|
}
|
|
1368
|
-
function
|
|
1395
|
+
function Q(e) {
|
|
1369
1396
|
return e.children;
|
|
1370
1397
|
}
|
|
1371
|
-
const { gsl:
|
|
1398
|
+
const { gsl: ps, gslByUid: ds } = r({
|
|
1372
1399
|
itemType: "LAYOUTS",
|
|
1400
|
+
kind: "layout",
|
|
1373
1401
|
entryShape: "compound",
|
|
1374
|
-
mapToWidget:
|
|
1375
|
-
buildCustomWidget:
|
|
1376
|
-
getChildren:
|
|
1402
|
+
mapToWidget: q,
|
|
1403
|
+
buildCustomWidget: J,
|
|
1404
|
+
getChildren: Q
|
|
1377
1405
|
});
|
|
1378
1406
|
function f(e) {
|
|
1379
1407
|
return {
|
|
@@ -1384,7 +1412,7 @@ function f(e) {
|
|
|
1384
1412
|
$form: e?.$form ?? {}
|
|
1385
1413
|
};
|
|
1386
1414
|
}
|
|
1387
|
-
function
|
|
1415
|
+
function ee(e) {
|
|
1388
1416
|
return {
|
|
1389
1417
|
uid: "",
|
|
1390
1418
|
kind: "display",
|
|
@@ -1392,7 +1420,7 @@ function Q(e) {
|
|
|
1392
1420
|
props: { render: e.render }
|
|
1393
1421
|
};
|
|
1394
1422
|
}
|
|
1395
|
-
function
|
|
1423
|
+
function te(e, t) {
|
|
1396
1424
|
if (e.kind === "static") {
|
|
1397
1425
|
const a = e.def;
|
|
1398
1426
|
return ((i) => ({
|
|
@@ -1417,13 +1445,15 @@ function ee(e, t) {
|
|
|
1417
1445
|
};
|
|
1418
1446
|
});
|
|
1419
1447
|
}
|
|
1420
|
-
const { gsl:
|
|
1448
|
+
const { gsl: ys, gslByUid: cs } = r({
|
|
1421
1449
|
itemType: "DISPLAYS",
|
|
1450
|
+
kind: "display",
|
|
1422
1451
|
entryShape: "bare",
|
|
1423
|
-
mapToWidget:
|
|
1424
|
-
buildCustomWidget:
|
|
1425
|
-
}), { gsl:
|
|
1452
|
+
mapToWidget: ee,
|
|
1453
|
+
buildCustomWidget: te
|
|
1454
|
+
}), { gsl: ms, gslByUid: Ts } = r({
|
|
1426
1455
|
itemType: "ALERTS",
|
|
1456
|
+
kind: "display",
|
|
1427
1457
|
entryShape: "bare",
|
|
1428
1458
|
mapToWidget: (e) => ({
|
|
1429
1459
|
uid: e.uid ?? "",
|
|
@@ -1434,8 +1464,9 @@ const { gsl: ds, gslByUid: cs } = u({
|
|
|
1434
1464
|
...e.level != null ? { level: e.level } : {}
|
|
1435
1465
|
}
|
|
1436
1466
|
})
|
|
1437
|
-
}), { gsl:
|
|
1467
|
+
}), { gsl: gs, gslByUid: bs } = r({
|
|
1438
1468
|
itemType: "MARKDOWN_TEXTS",
|
|
1469
|
+
kind: "display",
|
|
1439
1470
|
entryShape: "bare",
|
|
1440
1471
|
mapToWidget: (e) => ({
|
|
1441
1472
|
uid: e.uid ?? "",
|
|
@@ -1446,7 +1477,7 @@ const { gsl: ds, gslByUid: cs } = u({
|
|
|
1446
1477
|
}
|
|
1447
1478
|
})
|
|
1448
1479
|
});
|
|
1449
|
-
function
|
|
1480
|
+
function se(e) {
|
|
1450
1481
|
return {
|
|
1451
1482
|
uid: e.uid ?? "",
|
|
1452
1483
|
kind: "layout",
|
|
@@ -1459,7 +1490,7 @@ function te(e) {
|
|
|
1459
1490
|
children: []
|
|
1460
1491
|
};
|
|
1461
1492
|
}
|
|
1462
|
-
function
|
|
1493
|
+
function ae(e, t) {
|
|
1463
1494
|
const s = t.walkChildren(t.children ?? []);
|
|
1464
1495
|
if (e.kind === "static")
|
|
1465
1496
|
return { ...t.mapStaticDef(e.def, "TABS"), children: s };
|
|
@@ -1469,17 +1500,18 @@ function se(e, t) {
|
|
|
1469
1500
|
return { ...t.mapStaticDef(n, "TABS"), children: s };
|
|
1470
1501
|
});
|
|
1471
1502
|
}
|
|
1472
|
-
function
|
|
1503
|
+
function ie(e) {
|
|
1473
1504
|
return e.children;
|
|
1474
1505
|
}
|
|
1475
|
-
const { gsl:
|
|
1506
|
+
const { gsl: _s, gslByUid: Es } = r({
|
|
1476
1507
|
itemType: "TABS",
|
|
1508
|
+
kind: "layout",
|
|
1477
1509
|
entryShape: "compound",
|
|
1478
|
-
mapToWidget:
|
|
1479
|
-
buildCustomWidget:
|
|
1480
|
-
getChildren:
|
|
1510
|
+
mapToWidget: se,
|
|
1511
|
+
buildCustomWidget: ae,
|
|
1512
|
+
getChildren: ie
|
|
1481
1513
|
});
|
|
1482
|
-
function
|
|
1514
|
+
function ne(e) {
|
|
1483
1515
|
return {
|
|
1484
1516
|
uid: e.uid ?? "",
|
|
1485
1517
|
kind: "layout",
|
|
@@ -1493,7 +1525,7 @@ function ie(e) {
|
|
|
1493
1525
|
children: []
|
|
1494
1526
|
};
|
|
1495
1527
|
}
|
|
1496
|
-
function
|
|
1528
|
+
function le(e, t) {
|
|
1497
1529
|
const s = t.walkChildren(t.children ?? []);
|
|
1498
1530
|
if (e.kind === "static")
|
|
1499
1531
|
return { ...t.mapStaticDef(e.def, "ACCORDION"), children: s };
|
|
@@ -1503,17 +1535,19 @@ function ne(e, t) {
|
|
|
1503
1535
|
return { ...t.mapStaticDef(n, "ACCORDION"), children: s };
|
|
1504
1536
|
});
|
|
1505
1537
|
}
|
|
1506
|
-
function
|
|
1538
|
+
function oe(e) {
|
|
1507
1539
|
return e.children;
|
|
1508
1540
|
}
|
|
1509
|
-
const { gsl:
|
|
1541
|
+
const { gsl: Is, gslByUid: As } = r({
|
|
1510
1542
|
itemType: "ACCORDION",
|
|
1543
|
+
kind: "layout",
|
|
1511
1544
|
entryShape: "compound",
|
|
1512
|
-
mapToWidget:
|
|
1513
|
-
buildCustomWidget:
|
|
1514
|
-
getChildren:
|
|
1515
|
-
}), { gsl:
|
|
1545
|
+
mapToWidget: ne,
|
|
1546
|
+
buildCustomWidget: le,
|
|
1547
|
+
getChildren: oe
|
|
1548
|
+
}), { gsl: ks, gslByUid: hs } = r({
|
|
1516
1549
|
itemType: "CUSTOM_INPUT",
|
|
1550
|
+
kind: "input",
|
|
1517
1551
|
entryShape: "keyed",
|
|
1518
1552
|
sensibleDefaults: {
|
|
1519
1553
|
base: {
|
|
@@ -1534,8 +1568,9 @@ const { gsl: Es, gslByUid: Is } = u({
|
|
|
1534
1568
|
...e.validator != null ? { validator: e.validator } : {},
|
|
1535
1569
|
props: e.props ?? {}
|
|
1536
1570
|
})
|
|
1537
|
-
}), { gsl: Ss, gslByUid:
|
|
1571
|
+
}), { gsl: Ss, gslByUid: Ds } = r({
|
|
1538
1572
|
itemType: "CUSTOM_ACTION",
|
|
1573
|
+
kind: "action",
|
|
1539
1574
|
entryShape: "bare",
|
|
1540
1575
|
mapToWidget: (e) => {
|
|
1541
1576
|
const {
|
|
@@ -1545,9 +1580,9 @@ const { gsl: Es, gslByUid: Is } = u({
|
|
|
1545
1580
|
on: i,
|
|
1546
1581
|
onClick: n,
|
|
1547
1582
|
data: o,
|
|
1548
|
-
customType:
|
|
1583
|
+
customType: u,
|
|
1549
1584
|
tags: l,
|
|
1550
|
-
size:
|
|
1585
|
+
size: c,
|
|
1551
1586
|
include: g,
|
|
1552
1587
|
exclude: b,
|
|
1553
1588
|
states: _,
|
|
@@ -1569,8 +1604,9 @@ const { gsl: Es, gslByUid: Is } = u({
|
|
|
1569
1604
|
t.eventRegistry,
|
|
1570
1605
|
t.eventIdGenerator
|
|
1571
1606
|
)
|
|
1572
|
-
}), { gsl:
|
|
1607
|
+
}), { gsl: fs, gslByUid: Ps } = r({
|
|
1573
1608
|
itemType: "CUSTOM_DISPLAY",
|
|
1609
|
+
kind: "display",
|
|
1574
1610
|
entryShape: "bare",
|
|
1575
1611
|
mapToWidget: (e) => ({
|
|
1576
1612
|
uid: e.uid ?? "",
|
|
@@ -1579,7 +1615,7 @@ const { gsl: Es, gslByUid: Is } = u({
|
|
|
1579
1615
|
props: e.props ?? {}
|
|
1580
1616
|
})
|
|
1581
1617
|
});
|
|
1582
|
-
function
|
|
1618
|
+
function ue(e) {
|
|
1583
1619
|
return {
|
|
1584
1620
|
uid: e.uid ?? "",
|
|
1585
1621
|
kind: "layout",
|
|
@@ -1598,17 +1634,19 @@ function re(e, t) {
|
|
|
1598
1634
|
return { ...t.mapStaticDef(n, "CUSTOM_LAYOUT"), children: s };
|
|
1599
1635
|
});
|
|
1600
1636
|
}
|
|
1601
|
-
function
|
|
1637
|
+
function pe(e) {
|
|
1602
1638
|
return e.children;
|
|
1603
1639
|
}
|
|
1604
|
-
const { gsl:
|
|
1640
|
+
const { gsl: Us, gslByUid: Ms } = r({
|
|
1605
1641
|
itemType: "CUSTOM_LAYOUT",
|
|
1642
|
+
kind: "layout",
|
|
1606
1643
|
entryShape: "compound",
|
|
1607
|
-
mapToWidget:
|
|
1644
|
+
mapToWidget: ue,
|
|
1608
1645
|
buildCustomWidget: re,
|
|
1609
|
-
getChildren:
|
|
1610
|
-
}), { gsl:
|
|
1646
|
+
getChildren: pe
|
|
1647
|
+
}), { gsl: Ls, gslByUid: vs } = r({
|
|
1611
1648
|
itemType: "TAGS",
|
|
1649
|
+
kind: "input",
|
|
1612
1650
|
entryShape: "keyed",
|
|
1613
1651
|
sensibleDefaults: {
|
|
1614
1652
|
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
@@ -1623,147 +1661,147 @@ const { gsl: Ps, gslByUid: Us } = u({
|
|
|
1623
1661
|
...e.label != null ? { label: e.label } : {},
|
|
1624
1662
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1625
1663
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1626
|
-
...e.validator != null ? { validator:
|
|
1664
|
+
...e.validator != null ? { validator: y(e.validator, "array") } : {},
|
|
1627
1665
|
props: p(e)
|
|
1628
1666
|
})
|
|
1629
1667
|
});
|
|
1630
1668
|
export {
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1669
|
+
ns as $,
|
|
1670
|
+
Nt as A,
|
|
1671
|
+
Ct as B,
|
|
1672
|
+
qt as C,
|
|
1673
|
+
Jt as D,
|
|
1674
|
+
Qt as E,
|
|
1675
|
+
es as F,
|
|
1676
|
+
ts as G,
|
|
1677
|
+
ss as H,
|
|
1678
|
+
Bt as I,
|
|
1679
|
+
Wt as J,
|
|
1680
|
+
wt as K,
|
|
1681
|
+
xt as L,
|
|
1682
|
+
Gt as M,
|
|
1683
|
+
Kt as N,
|
|
1684
|
+
Yt as O,
|
|
1685
|
+
$t as P,
|
|
1686
|
+
jt as Q,
|
|
1687
|
+
Zt as R,
|
|
1688
|
+
Ot as S,
|
|
1689
|
+
Ft as T,
|
|
1690
|
+
zt as U,
|
|
1691
|
+
Ht as V,
|
|
1692
|
+
Vt as W,
|
|
1693
|
+
Xt as X,
|
|
1694
|
+
as as Y,
|
|
1695
|
+
is as Z,
|
|
1696
|
+
h as _,
|
|
1697
|
+
ot as a,
|
|
1698
|
+
ke as a$,
|
|
1699
|
+
ls as a0,
|
|
1700
|
+
H as a1,
|
|
1701
|
+
os as a2,
|
|
1702
|
+
us as a3,
|
|
1665
1703
|
rs as a4,
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1704
|
+
ps as a5,
|
|
1705
|
+
ds as a6,
|
|
1706
|
+
ys as a7,
|
|
1669
1707
|
cs as a8,
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1708
|
+
ms as a9,
|
|
1709
|
+
Ve as aA,
|
|
1710
|
+
He as aB,
|
|
1711
|
+
ze as aC,
|
|
1712
|
+
Fe as aD,
|
|
1713
|
+
Oe as aE,
|
|
1714
|
+
it as aF,
|
|
1715
|
+
at as aG,
|
|
1716
|
+
Ge as aH,
|
|
1717
|
+
xe as aI,
|
|
1718
|
+
we as aJ,
|
|
1719
|
+
We as aK,
|
|
1720
|
+
Be as aL,
|
|
1721
|
+
Ce as aM,
|
|
1722
|
+
Ne as aN,
|
|
1723
|
+
Re as aO,
|
|
1724
|
+
$e as aP,
|
|
1725
|
+
Ye as aQ,
|
|
1726
|
+
Ke as aR,
|
|
1727
|
+
ve as aS,
|
|
1728
|
+
Le as aT,
|
|
1729
|
+
Me as aU,
|
|
1730
|
+
Ue as aV,
|
|
1731
|
+
Pe as aW,
|
|
1732
|
+
fe as aX,
|
|
1733
|
+
De as aY,
|
|
1696
1734
|
Se as aZ,
|
|
1697
1735
|
he as a_,
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1736
|
+
Ts as aa,
|
|
1737
|
+
gs as ab,
|
|
1738
|
+
bs as ac,
|
|
1739
|
+
_s as ad,
|
|
1740
|
+
Es as ae,
|
|
1741
|
+
Is as af,
|
|
1742
|
+
As as ag,
|
|
1743
|
+
ks as ah,
|
|
1706
1744
|
hs as ai,
|
|
1707
1745
|
Ss as aj,
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1746
|
+
Ds as ak,
|
|
1747
|
+
fs as al,
|
|
1748
|
+
Ps as am,
|
|
1749
|
+
Us as an,
|
|
1750
|
+
Ms as ao,
|
|
1751
|
+
st as ap,
|
|
1752
|
+
tt as aq,
|
|
1753
|
+
et as ar,
|
|
1754
|
+
Qe as as,
|
|
1755
|
+
Je as at,
|
|
1718
1756
|
M as au,
|
|
1719
|
-
|
|
1720
|
-
|
|
1757
|
+
qe as av,
|
|
1758
|
+
Ze as aw,
|
|
1721
1759
|
U as ax,
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1760
|
+
je as ay,
|
|
1761
|
+
Xe as az,
|
|
1762
|
+
ut as b,
|
|
1763
|
+
Ae as b0,
|
|
1764
|
+
Ie as b1,
|
|
1765
|
+
Ee as b2,
|
|
1766
|
+
_e as b3,
|
|
1767
|
+
be as b4,
|
|
1768
|
+
ge as b5,
|
|
1769
|
+
Te as b6,
|
|
1770
|
+
lt as b7,
|
|
1771
|
+
nt as b8,
|
|
1772
|
+
X as b9,
|
|
1735
1773
|
f as ba,
|
|
1736
1774
|
m as bb,
|
|
1737
1775
|
R as bc,
|
|
1738
|
-
|
|
1739
|
-
|
|
1776
|
+
Ls as bd,
|
|
1777
|
+
vs as be,
|
|
1740
1778
|
P as bf,
|
|
1741
|
-
|
|
1779
|
+
r as bg,
|
|
1742
1780
|
p as bh,
|
|
1743
1781
|
d as bi,
|
|
1744
1782
|
T as bj,
|
|
1745
1783
|
rt as c,
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1784
|
+
pt as d,
|
|
1785
|
+
dt as e,
|
|
1786
|
+
yt as f,
|
|
1749
1787
|
ct as g,
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1788
|
+
mt as h,
|
|
1789
|
+
Tt as i,
|
|
1790
|
+
gt as j,
|
|
1791
|
+
bt as k,
|
|
1792
|
+
_t as l,
|
|
1793
|
+
Et as m,
|
|
1794
|
+
It as n,
|
|
1795
|
+
At as o,
|
|
1796
|
+
kt as p,
|
|
1759
1797
|
ht as q,
|
|
1760
1798
|
St as r,
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1799
|
+
Dt as s,
|
|
1800
|
+
ft as t,
|
|
1801
|
+
Pt as u,
|
|
1802
|
+
Ut as v,
|
|
1803
|
+
Mt as w,
|
|
1804
|
+
Lt as x,
|
|
1805
|
+
vt as y,
|
|
1806
|
+
Rt as z
|
|
1769
1807
|
};
|