@golemui/gui-shared 1.1.1-rc.1 → 1.1.1-rc.2
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 +4 -0
- package/index.js +22 -366
- package/index.umd.cjs +1 -1
- package/internals.js +7 -7
- package/internals.umd.cjs +1 -1
- package/lib/dx/formDef.domain.d.ts +2 -1
- package/lib/dx/formDefs.d.ts +4 -2
- package/lib/dx/gui.d.ts +281 -52
- package/lib/dx/guiDependencyTypes.d.ts +14 -0
- package/lib/dx/index.d.ts +2 -1
- package/lib/dx/resolveFormInput.d.ts +5 -3
- package/lib/shared.d.ts +16 -1
- package/lib/widgets.d.ts +1 -1
- package/package.json +4 -4
- package/{resolveFormInput-Dp0TB3LB.js → resolveFormInput-CsFeoGjz.js} +1455 -1310
- package/resolveFormInput-UcmQ-kme.cjs +1 -0
- package/lib/dx/shortcuts/scopes/scopeChain.d.ts +0 -132
- package/resolveFormInput-DDKerzen.cjs +0 -1
|
@@ -1,607 +1,207 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createShortcutType as u, processAutoLabel as d, processAutoPlaceholder as m, extractWidgetProps as p, buildTypedValidator as c, eventWiringService as ye, withForm as pe, createGslSelector as Ie, createItemTypeRegistry as _e, registerShortcutType as ke, defineShortcutType as Se, GuiItemTypes as y, createSelectors as Ae, createImplementation as Ee } from "@golemui/dx";
|
|
2
2
|
import "@golemui/core";
|
|
3
|
-
function
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
3
|
+
function he(e) {
|
|
4
|
+
switch (e.type) {
|
|
5
|
+
case "text":
|
|
6
|
+
return De(e);
|
|
7
|
+
case "number":
|
|
8
|
+
return Pe(e);
|
|
9
|
+
case "boolean":
|
|
10
|
+
return Ue(e);
|
|
11
|
+
default:
|
|
12
|
+
throw new Error(`Unsupported field type "${e.type}"`);
|
|
12
13
|
}
|
|
13
|
-
|
|
14
|
+
}
|
|
15
|
+
function Ue(e) {
|
|
16
|
+
const t = p(e);
|
|
14
17
|
return {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
uid: e.uid ?? "",
|
|
19
|
+
kind: "input",
|
|
20
|
+
type: "toggle",
|
|
21
|
+
path: e.path ?? "",
|
|
22
|
+
...e.label != null ? { label: e.label } : {},
|
|
23
|
+
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
24
|
+
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
25
|
+
...e.validator != null ? { validator: c(e.validator, "boolean") } : {},
|
|
26
|
+
props: t
|
|
19
27
|
};
|
|
20
28
|
}
|
|
21
|
-
function
|
|
22
|
-
|
|
23
|
-
const i = t;
|
|
24
|
-
return {
|
|
25
|
-
items: [{ key: e, def: (l) => ({ type: "number", ...i(l) }) }],
|
|
26
|
-
type: "ITEMS",
|
|
27
|
-
itemType: y.INPUTS,
|
|
28
|
-
tags: s ?? []
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
const a = { type: "number", ...t };
|
|
29
|
+
function De(e) {
|
|
30
|
+
const t = p(e);
|
|
32
31
|
return {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
32
|
+
uid: e.uid ?? "",
|
|
33
|
+
kind: "input",
|
|
34
|
+
type: "textinput",
|
|
35
|
+
path: e.path ?? "",
|
|
36
|
+
...e.label != null ? { label: e.label } : {},
|
|
37
|
+
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
38
|
+
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
39
|
+
props: {
|
|
40
|
+
placeholder: t.placeholder ?? "",
|
|
41
|
+
...t
|
|
42
|
+
},
|
|
43
|
+
validator: c(e.validator, "string")
|
|
37
44
|
};
|
|
38
45
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
41
|
-
const i = t;
|
|
42
|
-
return {
|
|
43
|
-
items: [{ key: e, def: (l) => ({ type: "boolean", ...i(l) }) }],
|
|
44
|
-
type: "ITEMS",
|
|
45
|
-
itemType: y.INPUTS,
|
|
46
|
-
tags: s ?? []
|
|
47
|
-
};
|
|
48
|
-
}
|
|
49
|
-
const a = { type: "boolean", ...t };
|
|
46
|
+
function Pe(e) {
|
|
47
|
+
const t = p(e);
|
|
50
48
|
return {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
uid: e.uid ?? "",
|
|
50
|
+
kind: "input",
|
|
51
|
+
type: "number",
|
|
52
|
+
path: e.path ?? "",
|
|
53
|
+
...e.label != null ? { label: e.label } : {},
|
|
54
|
+
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
55
|
+
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
56
|
+
props: {
|
|
57
|
+
placeholder: t.placeholder ?? "",
|
|
58
|
+
...t
|
|
59
|
+
},
|
|
60
|
+
validator: c(e.validator, "number")
|
|
55
61
|
};
|
|
56
62
|
}
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
63
|
+
const k = u({
|
|
64
|
+
itemType: "INPUTS",
|
|
65
|
+
kind: "input",
|
|
66
|
+
entryShape: "keyed",
|
|
67
|
+
sensibleDefaults: {
|
|
68
|
+
base: {
|
|
69
|
+
suppressAutomaticLabels: !1,
|
|
70
|
+
suppressAutomaticPlaceholders: !1
|
|
71
|
+
},
|
|
72
|
+
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
73
|
+
apply: (e, t) => {
|
|
74
|
+
let s = d(e, t);
|
|
75
|
+
return s = m(s, t), s;
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
mapToWidget: he
|
|
79
|
+
}), b = k.gsl, Me = k.gslByUid;
|
|
80
|
+
function Be(e) {
|
|
81
|
+
const {
|
|
82
|
+
uid: t,
|
|
83
|
+
label: s,
|
|
84
|
+
actionType: a,
|
|
85
|
+
disabled: i,
|
|
86
|
+
on: n,
|
|
87
|
+
onClick: l,
|
|
88
|
+
data: r,
|
|
89
|
+
type: o,
|
|
90
|
+
tags: T,
|
|
91
|
+
size: g,
|
|
92
|
+
include: ge,
|
|
93
|
+
exclude: be,
|
|
94
|
+
states: re,
|
|
95
|
+
...I
|
|
96
|
+
} = e;
|
|
97
|
+
return {
|
|
98
|
+
uid: t ?? "",
|
|
99
|
+
kind: "action",
|
|
100
|
+
type: "button",
|
|
101
|
+
disabled: i,
|
|
102
|
+
actionType: a,
|
|
103
|
+
label: s,
|
|
104
|
+
...n != null ? { on: n } : {},
|
|
105
|
+
props: I
|
|
106
|
+
};
|
|
91
107
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
108
|
+
const S = u({
|
|
109
|
+
itemType: "ACTIONS",
|
|
110
|
+
kind: "action",
|
|
111
|
+
entryShape: "bare",
|
|
112
|
+
mapToWidget: Be,
|
|
113
|
+
afterMerge: (e, t) => ye.extractOnClickFromMergeResult(
|
|
114
|
+
e,
|
|
115
|
+
t.eventRegistry,
|
|
116
|
+
t.eventIdGenerator
|
|
117
|
+
)
|
|
118
|
+
}), Re = S.gsl, Le = S.gslByUid;
|
|
119
|
+
function ve(e) {
|
|
120
|
+
const {
|
|
121
|
+
uid: t,
|
|
122
|
+
widgetName: s,
|
|
123
|
+
tags: a,
|
|
124
|
+
size: i,
|
|
125
|
+
onChange: n,
|
|
126
|
+
include: l,
|
|
127
|
+
exclude: r,
|
|
128
|
+
...o
|
|
129
|
+
} = e, { on: T, ...g } = o;
|
|
130
|
+
return {
|
|
131
|
+
uid: t ?? "",
|
|
132
|
+
kind: "layout",
|
|
133
|
+
type: s ?? "flex",
|
|
134
|
+
props: {
|
|
135
|
+
direction: g.direction ?? "column",
|
|
136
|
+
...g
|
|
137
|
+
},
|
|
138
|
+
children: []
|
|
139
|
+
};
|
|
99
140
|
}
|
|
100
|
-
function
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
return {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
141
|
+
function fe(e, t) {
|
|
142
|
+
const s = t.walkChildren(t.children ?? []);
|
|
143
|
+
if (e.kind === "static")
|
|
144
|
+
return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: s };
|
|
145
|
+
const a = e.fn;
|
|
146
|
+
return ((i) => {
|
|
147
|
+
const n = a(i);
|
|
148
|
+
return { ...t.mapStaticDef(n, "LAYOUTS"), children: s };
|
|
149
|
+
});
|
|
107
150
|
}
|
|
108
|
-
function
|
|
109
|
-
|
|
110
|
-
const n = t;
|
|
111
|
-
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: (o) => ({ type: "currency", ...n(o) }) }], tags: s ?? [] };
|
|
112
|
-
}
|
|
113
|
-
const a = { type: "currency", ...t };
|
|
114
|
-
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
151
|
+
function Ce(e) {
|
|
152
|
+
return e.children;
|
|
115
153
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
154
|
+
const A = u({
|
|
155
|
+
itemType: "LAYOUTS",
|
|
156
|
+
kind: "layout",
|
|
157
|
+
entryShape: "compound",
|
|
158
|
+
mapToWidget: ve,
|
|
159
|
+
buildCustomWidget: fe,
|
|
160
|
+
getChildren: Ce
|
|
161
|
+
}), Ne = A.gsl, We = A.gslByUid;
|
|
162
|
+
function we(e) {
|
|
163
|
+
return {
|
|
164
|
+
uid: "",
|
|
165
|
+
kind: "display",
|
|
166
|
+
type: "renderer",
|
|
167
|
+
props: { render: e.render }
|
|
168
|
+
};
|
|
123
169
|
}
|
|
124
|
-
function
|
|
125
|
-
if (
|
|
126
|
-
const
|
|
127
|
-
return
|
|
170
|
+
function xe(e, t) {
|
|
171
|
+
if (e.kind === "static") {
|
|
172
|
+
const a = e.def;
|
|
173
|
+
return ((i) => ({
|
|
174
|
+
uid: "",
|
|
175
|
+
kind: "display",
|
|
176
|
+
type: "renderer",
|
|
177
|
+
...a.include != null ? { include: a.include } : {},
|
|
178
|
+
...a.exclude != null ? { exclude: a.exclude } : {},
|
|
179
|
+
props: { render: a.render(pe(i)) }
|
|
180
|
+
}));
|
|
128
181
|
}
|
|
129
|
-
const
|
|
130
|
-
return
|
|
131
|
-
|
|
132
|
-
function ct(e, t, s) {
|
|
133
|
-
if (typeof t == "function") {
|
|
134
|
-
const i = t;
|
|
182
|
+
const s = e.fn;
|
|
183
|
+
return ((a) => {
|
|
184
|
+
const i = s(a);
|
|
135
185
|
return {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
itemType: "CALENDAR",
|
|
143
|
-
tags: s ?? []
|
|
186
|
+
uid: "",
|
|
187
|
+
kind: "display",
|
|
188
|
+
type: "renderer",
|
|
189
|
+
...i.include != null ? { include: i.include } : {},
|
|
190
|
+
...i.exclude != null ? { exclude: i.exclude } : {},
|
|
191
|
+
props: { render: i.render(pe(a)) }
|
|
144
192
|
};
|
|
145
|
-
}
|
|
146
|
-
return {
|
|
147
|
-
items: [{ type: "calendar", path: e, ...t }],
|
|
148
|
-
type: "ITEMS",
|
|
149
|
-
itemType: "CALENDAR",
|
|
150
|
-
tags: s ?? []
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
function yt(e, t, s) {
|
|
154
|
-
if (typeof t == "function") {
|
|
155
|
-
const i = t;
|
|
156
|
-
return {
|
|
157
|
-
items: [(l) => ({
|
|
158
|
-
type: "dateTimeCalendar",
|
|
159
|
-
path: e,
|
|
160
|
-
...i(l)
|
|
161
|
-
})],
|
|
162
|
-
type: "ITEMS",
|
|
163
|
-
itemType: "DATE_TIME_CALENDAR",
|
|
164
|
-
tags: s ?? []
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
return {
|
|
168
|
-
items: [{ type: "dateTimeCalendar", path: e, ...t }],
|
|
169
|
-
type: "ITEMS",
|
|
170
|
-
itemType: "DATE_TIME_CALENDAR",
|
|
171
|
-
tags: s ?? []
|
|
172
|
-
};
|
|
173
|
-
}
|
|
174
|
-
function mt(e, t, s) {
|
|
175
|
-
if (typeof t == "function") {
|
|
176
|
-
const n = t;
|
|
177
|
-
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: (o) => ({ type: "dateInput", ...n(o) }) }], tags: s ?? [] };
|
|
178
|
-
}
|
|
179
|
-
const a = { type: "dateInput", ...t };
|
|
180
|
-
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
181
|
-
}
|
|
182
|
-
function Tt(e, t, s) {
|
|
183
|
-
if (typeof t == "function") {
|
|
184
|
-
const n = t;
|
|
185
|
-
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: (o) => ({
|
|
186
|
-
type: "datePicker",
|
|
187
|
-
...n(o)
|
|
188
|
-
}) }], tags: s ?? [] };
|
|
189
|
-
}
|
|
190
|
-
const a = { type: "datePicker", ...t };
|
|
191
|
-
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
192
|
-
}
|
|
193
|
-
function gt(e, t, s) {
|
|
194
|
-
if (typeof t == "function") {
|
|
195
|
-
const n = t;
|
|
196
|
-
return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: (o) => ({
|
|
197
|
-
type: "dateTimePicker",
|
|
198
|
-
...n(o)
|
|
199
|
-
}) }], tags: s ?? [] };
|
|
200
|
-
}
|
|
201
|
-
const a = { type: "dateTimePicker", ...t };
|
|
202
|
-
return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
203
|
-
}
|
|
204
|
-
function bt(e, t, s) {
|
|
205
|
-
if (typeof t == "function") {
|
|
206
|
-
const n = t;
|
|
207
|
-
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: (o) => ({
|
|
208
|
-
type: "rangeCalendar",
|
|
209
|
-
...n(o)
|
|
210
|
-
}) }], tags: s ?? [] };
|
|
211
|
-
}
|
|
212
|
-
const a = { type: "rangeCalendar", ...t };
|
|
213
|
-
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
214
|
-
}
|
|
215
|
-
function _t(e, t, s) {
|
|
216
|
-
if (typeof t == "function") {
|
|
217
|
-
const n = t;
|
|
218
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: (o) => ({
|
|
219
|
-
type: "rangeDateInput",
|
|
220
|
-
...n(o)
|
|
221
|
-
}) }], tags: s ?? [] };
|
|
222
|
-
}
|
|
223
|
-
const a = { type: "rangeDateInput", ...t };
|
|
224
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
225
|
-
}
|
|
226
|
-
function It(e, t, s) {
|
|
227
|
-
if (typeof t == "function") {
|
|
228
|
-
const n = t;
|
|
229
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: (o) => ({
|
|
230
|
-
type: "rangeDateTimeInput",
|
|
231
|
-
...n(o)
|
|
232
|
-
}) }], tags: s ?? [] };
|
|
233
|
-
}
|
|
234
|
-
const a = { type: "rangeDateTimeInput", ...t };
|
|
235
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
236
|
-
}
|
|
237
|
-
function St(e, t, s) {
|
|
238
|
-
if (typeof t == "function") {
|
|
239
|
-
const n = t;
|
|
240
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: (o) => ({
|
|
241
|
-
type: "rangeDateTimeCalendar",
|
|
242
|
-
...n(o)
|
|
243
|
-
}) }], tags: s ?? [] };
|
|
244
|
-
}
|
|
245
|
-
const a = { type: "rangeDateTimeCalendar", ...t };
|
|
246
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
247
|
-
}
|
|
248
|
-
function At(e, t, s) {
|
|
249
|
-
if (typeof t == "function") {
|
|
250
|
-
const n = t;
|
|
251
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: (o) => ({
|
|
252
|
-
type: "rangeDateTimePicker",
|
|
253
|
-
...n(o)
|
|
254
|
-
}) }], tags: s ?? [] };
|
|
255
|
-
}
|
|
256
|
-
const a = { type: "rangeDateTimePicker", ...t };
|
|
257
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
258
|
-
}
|
|
259
|
-
function Et(e, t, s) {
|
|
260
|
-
if (typeof t == "function") {
|
|
261
|
-
const n = t;
|
|
262
|
-
return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: (o) => ({
|
|
263
|
-
type: "rangeTimeInput",
|
|
264
|
-
...n(o)
|
|
265
|
-
}) }], tags: s ?? [] };
|
|
266
|
-
}
|
|
267
|
-
const a = { type: "rangeTimeInput", ...t };
|
|
268
|
-
return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
269
|
-
}
|
|
270
|
-
function ht(e, t, s) {
|
|
271
|
-
if (typeof t == "function") {
|
|
272
|
-
const n = t;
|
|
273
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: (o) => ({
|
|
274
|
-
type: "rangeDatePicker",
|
|
275
|
-
...n(o)
|
|
276
|
-
}) }], tags: s ?? [] };
|
|
277
|
-
}
|
|
278
|
-
const a = { type: "rangeDatePicker", ...t };
|
|
279
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
280
|
-
}
|
|
281
|
-
function kt(e, t, s) {
|
|
282
|
-
if (typeof t == "function") {
|
|
283
|
-
const n = t;
|
|
284
|
-
return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: (o) => ({
|
|
285
|
-
type: "rangeTimePicker",
|
|
286
|
-
...n(o)
|
|
287
|
-
}) }], tags: s ?? [] };
|
|
288
|
-
}
|
|
289
|
-
const a = { type: "rangeTimePicker", ...t };
|
|
290
|
-
return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
291
|
-
}
|
|
292
|
-
function Dt(e, t, s) {
|
|
293
|
-
if (typeof t == "function") {
|
|
294
|
-
const n = t;
|
|
295
|
-
return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: (o) => ({ type: "timeInput", ...n(o) }) }], tags: s ?? [] };
|
|
296
|
-
}
|
|
297
|
-
const a = { type: "timeInput", ...t };
|
|
298
|
-
return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
299
|
-
}
|
|
300
|
-
function Pt(e, t, s) {
|
|
301
|
-
if (typeof t == "function") {
|
|
302
|
-
const n = t;
|
|
303
|
-
return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: (o) => ({
|
|
304
|
-
type: "timePicker",
|
|
305
|
-
...n(o)
|
|
306
|
-
}) }], tags: s ?? [] };
|
|
307
|
-
}
|
|
308
|
-
const a = { type: "timePicker", ...t };
|
|
309
|
-
return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
310
|
-
}
|
|
311
|
-
function Mt(e, t, s) {
|
|
312
|
-
if (typeof t == "function") {
|
|
313
|
-
const n = t;
|
|
314
|
-
return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: (o) => ({
|
|
315
|
-
type: "dateTimeInput",
|
|
316
|
-
...n(o)
|
|
317
|
-
}) }], tags: s ?? [] };
|
|
318
|
-
}
|
|
319
|
-
const a = { type: "dateTimeInput", ...t };
|
|
320
|
-
return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
321
|
-
}
|
|
322
|
-
function Ut(e, t, s, a) {
|
|
323
|
-
if (typeof s == "function") {
|
|
324
|
-
const l = s;
|
|
325
|
-
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (T) => ({
|
|
326
|
-
customType: e,
|
|
327
|
-
...l(T)
|
|
328
|
-
}) }], tags: a ?? [] };
|
|
329
|
-
}
|
|
330
|
-
const i = { customType: e, ...s };
|
|
331
|
-
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: i }], tags: a ?? [] };
|
|
332
|
-
}
|
|
333
|
-
function Rt(e, t) {
|
|
334
|
-
return {
|
|
335
|
-
items: [e],
|
|
336
|
-
type: "ITEMS",
|
|
337
|
-
itemType: y.ACTIONS,
|
|
338
|
-
tags: t ?? []
|
|
339
|
-
};
|
|
340
|
-
}
|
|
341
|
-
function Lt(e, t, s) {
|
|
342
|
-
if (typeof t == "function") {
|
|
343
|
-
const n = t;
|
|
344
|
-
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
|
|
345
|
-
(p) => ({ customType: e, ...n(p) })
|
|
346
|
-
], tags: s ?? [] };
|
|
347
|
-
}
|
|
348
|
-
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType: e, ...t }], tags: s ?? [] };
|
|
349
|
-
}
|
|
350
|
-
const Ae = (e, t) => ({
|
|
351
|
-
type: "ITEMS",
|
|
352
|
-
itemType: y.DISPLAYS,
|
|
353
|
-
items: [{ render: e }],
|
|
354
|
-
tags: t ?? []
|
|
355
|
-
});
|
|
356
|
-
function vt(e, t) {
|
|
357
|
-
return { type: "ITEMS", itemType: "ALERTS", items: [e], tags: t ?? [] };
|
|
358
|
-
}
|
|
359
|
-
function ft(e, t) {
|
|
360
|
-
return { type: "ITEMS", itemType: "MARKDOWN_TEXTS", items: [e], tags: t ?? [] };
|
|
361
|
-
}
|
|
362
|
-
function Bt(e, t, s) {
|
|
363
|
-
if (typeof t == "function") {
|
|
364
|
-
const p = t;
|
|
365
|
-
return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
|
|
366
|
-
(T) => ({ customType: e, ...p(T) })
|
|
367
|
-
], tags: s ?? [] };
|
|
368
|
-
}
|
|
369
|
-
const { uid: a, ...i } = t ?? {};
|
|
370
|
-
return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [{
|
|
371
|
-
customType: e,
|
|
372
|
-
...a != null ? { uid: a } : {},
|
|
373
|
-
props: Object.keys(i).length > 0 ? i : void 0
|
|
374
|
-
}], tags: s ?? [] };
|
|
375
|
-
}
|
|
376
|
-
const re = (e, t, s) => ({
|
|
377
|
-
type: "ITEMS",
|
|
378
|
-
itemType: y.LAYOUTS,
|
|
379
|
-
items: [{ def: { widgetName: "flex", ...t ?? {} }, children: e }],
|
|
380
|
-
tags: s ?? []
|
|
381
|
-
}), Nt = (e, t, s) => re(e, { direction: "row", ...t ?? {} }, s), Ct = (e, t, s) => re(e, { direction: "column", ...t ?? {} }, s), de = (e, t, s) => ({
|
|
382
|
-
type: "ITEMS",
|
|
383
|
-
itemType: y.LAYOUTS,
|
|
384
|
-
items: [
|
|
385
|
-
{
|
|
386
|
-
def: {
|
|
387
|
-
widgetName: "grid",
|
|
388
|
-
direction: "row",
|
|
389
|
-
autoFit: !0,
|
|
390
|
-
...t ?? {}
|
|
391
|
-
},
|
|
392
|
-
children: e
|
|
393
|
-
}
|
|
394
|
-
],
|
|
395
|
-
tags: s ?? []
|
|
396
|
-
}), Wt = (e, t, s) => de(e, { direction: "row", ...t ?? {} }, s), wt = (e, t, s) => de(e, { direction: "column", ...t ?? {} }, s);
|
|
397
|
-
function oe(e) {
|
|
398
|
-
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
399
|
-
}
|
|
400
|
-
function xt(e, t, s) {
|
|
401
|
-
const a = e.map((l) => ({
|
|
402
|
-
label: l.label,
|
|
403
|
-
uid: l.uid ?? oe(l.label)
|
|
404
|
-
})), i = e.map((l) => ({
|
|
405
|
-
type: "ITEMS",
|
|
406
|
-
itemType: y.LAYOUTS,
|
|
407
|
-
items: [
|
|
408
|
-
{
|
|
409
|
-
def: { uid: l.uid ?? oe(l.label), direction: "column", widgetName: "flex" },
|
|
410
|
-
children: l.children
|
|
411
|
-
}
|
|
412
|
-
],
|
|
413
|
-
tags: []
|
|
414
|
-
}));
|
|
415
|
-
return {
|
|
416
|
-
type: "ITEMS",
|
|
417
|
-
itemType: "TABS",
|
|
418
|
-
items: [{ def: {
|
|
419
|
-
tabs: a,
|
|
420
|
-
...t
|
|
421
|
-
}, children: i }],
|
|
422
|
-
tags: s ?? []
|
|
423
|
-
};
|
|
424
|
-
}
|
|
425
|
-
function ue(e) {
|
|
426
|
-
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
193
|
+
});
|
|
427
194
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
{
|
|
437
|
-
def: { uid: l.uid ?? ue(l.label), direction: "column", widgetName: "flex" },
|
|
438
|
-
children: l.children
|
|
439
|
-
}
|
|
440
|
-
],
|
|
441
|
-
tags: []
|
|
442
|
-
}));
|
|
443
|
-
return {
|
|
444
|
-
type: "ITEMS",
|
|
445
|
-
itemType: "ACCORDION",
|
|
446
|
-
items: [{ def: {
|
|
447
|
-
sections: a,
|
|
448
|
-
...t
|
|
449
|
-
}, children: i }],
|
|
450
|
-
tags: s ?? []
|
|
451
|
-
};
|
|
452
|
-
}
|
|
453
|
-
function Kt(e, t, s, a) {
|
|
454
|
-
if (typeof s == "function") {
|
|
455
|
-
const l = s;
|
|
456
|
-
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (T) => ({
|
|
457
|
-
customType: e,
|
|
458
|
-
...l(T)
|
|
459
|
-
}), children: t }], tags: a ?? [] };
|
|
460
|
-
}
|
|
461
|
-
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: e, ...s }, children: t }], tags: a ?? [] };
|
|
462
|
-
}
|
|
463
|
-
function Yt(e, t, s) {
|
|
464
|
-
const { template: a, ...i } = t;
|
|
465
|
-
return {
|
|
466
|
-
type: "ITEMS",
|
|
467
|
-
itemType: "REPEATER",
|
|
468
|
-
items: [{ key: e, def: i, children: a }],
|
|
469
|
-
tags: s ?? []
|
|
470
|
-
};
|
|
471
|
-
}
|
|
472
|
-
function $t(e, t, s) {
|
|
473
|
-
if (typeof t == "function") {
|
|
474
|
-
const n = t;
|
|
475
|
-
return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: (o) => ({ type: "tags", ...n(o) }) }], tags: s ?? [] };
|
|
476
|
-
}
|
|
477
|
-
const a = { type: "tags", ...t };
|
|
478
|
-
return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
479
|
-
}
|
|
480
|
-
function Ee(e) {
|
|
481
|
-
switch (e.type) {
|
|
482
|
-
case "text":
|
|
483
|
-
return ke(e);
|
|
484
|
-
case "number":
|
|
485
|
-
return De(e);
|
|
486
|
-
case "boolean":
|
|
487
|
-
return he(e);
|
|
488
|
-
default:
|
|
489
|
-
throw new Error(`Unsupported field type "${e.type}"`);
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
function he(e) {
|
|
493
|
-
const t = r(e);
|
|
494
|
-
return {
|
|
495
|
-
uid: e.uid ?? "",
|
|
496
|
-
kind: "input",
|
|
497
|
-
type: "toggle",
|
|
498
|
-
path: e.path ?? "",
|
|
499
|
-
...e.label != null ? { label: e.label } : {},
|
|
500
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
501
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
502
|
-
...e.validator != null ? { validator: c(e.validator, "boolean") } : {},
|
|
503
|
-
props: t
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
function ke(e) {
|
|
507
|
-
const t = r(e);
|
|
508
|
-
return {
|
|
509
|
-
uid: e.uid ?? "",
|
|
510
|
-
kind: "input",
|
|
511
|
-
type: "textinput",
|
|
512
|
-
path: e.path ?? "",
|
|
513
|
-
...e.label != null ? { label: e.label } : {},
|
|
514
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
515
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
516
|
-
props: {
|
|
517
|
-
placeholder: t.placeholder ?? "",
|
|
518
|
-
...t
|
|
519
|
-
},
|
|
520
|
-
validator: c(e.validator, "string")
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
function De(e) {
|
|
524
|
-
const t = r(e);
|
|
525
|
-
return {
|
|
526
|
-
uid: e.uid ?? "",
|
|
527
|
-
kind: "input",
|
|
528
|
-
type: "number",
|
|
529
|
-
path: e.path ?? "",
|
|
530
|
-
...e.label != null ? { label: e.label } : {},
|
|
531
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
532
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
533
|
-
props: {
|
|
534
|
-
placeholder: t.placeholder ?? "",
|
|
535
|
-
...t
|
|
536
|
-
},
|
|
537
|
-
validator: c(e.validator, "number")
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
const I = u({
|
|
541
|
-
itemType: "INPUTS",
|
|
542
|
-
kind: "input",
|
|
543
|
-
entryShape: "keyed",
|
|
544
|
-
sensibleDefaults: {
|
|
545
|
-
base: {
|
|
546
|
-
suppressAutomaticLabels: !1,
|
|
547
|
-
suppressAutomaticPlaceholders: !1
|
|
548
|
-
},
|
|
549
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
550
|
-
apply: (e, t) => {
|
|
551
|
-
let s = d(e, t);
|
|
552
|
-
return s = m(s, t), s;
|
|
553
|
-
}
|
|
554
|
-
},
|
|
555
|
-
mapToWidget: Ee
|
|
556
|
-
}), S = I.gsl, zt = I.gslByUid, Ft = (e) => S(e, (t) => t.type === "text"), Ot = (e) => S(e, (t) => t.type === "number"), Xt = (e) => S(e, (t) => t.type === "boolean"), A = u(
|
|
557
|
-
{
|
|
558
|
-
itemType: "SELECT",
|
|
559
|
-
kind: "input",
|
|
560
|
-
entryShape: "keyed",
|
|
561
|
-
sensibleDefaults: {
|
|
562
|
-
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
563
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
564
|
-
apply: (e, t) => m(d(e, t), t)
|
|
565
|
-
},
|
|
566
|
-
mapToWidget: (e) => ({
|
|
567
|
-
uid: e.uid ?? "",
|
|
568
|
-
kind: "input",
|
|
569
|
-
type: "select",
|
|
570
|
-
path: e.path ?? "",
|
|
571
|
-
...e.label != null ? { label: e.label } : {},
|
|
572
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
573
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
574
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
575
|
-
props: r(e)
|
|
576
|
-
})
|
|
577
|
-
}
|
|
578
|
-
), Ht = A.gsl, Vt = A.gslByUid, E = u({
|
|
579
|
-
itemType: "DROPDOWN",
|
|
580
|
-
kind: "input",
|
|
581
|
-
entryShape: "keyed",
|
|
582
|
-
sensibleDefaults: {
|
|
583
|
-
base: {
|
|
584
|
-
suppressAutomaticLabels: !1,
|
|
585
|
-
suppressAutomaticPlaceholders: !1
|
|
586
|
-
},
|
|
587
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
588
|
-
apply: (e, t) => m(d(e, t), t)
|
|
589
|
-
},
|
|
590
|
-
mapToWidget: (e) => ({
|
|
591
|
-
uid: e.uid ?? "",
|
|
592
|
-
kind: "input",
|
|
593
|
-
type: "dropdown",
|
|
594
|
-
path: e.path ?? "",
|
|
595
|
-
...e.label != null ? { label: e.label } : {},
|
|
596
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
597
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
598
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
599
|
-
props: r(e)
|
|
600
|
-
})
|
|
601
|
-
}), jt = E.gsl, qt = E.gslByUid, h = u({
|
|
602
|
-
itemType: "RADIOGROUP",
|
|
195
|
+
const E = u({
|
|
196
|
+
itemType: "DISPLAYS",
|
|
197
|
+
kind: "display",
|
|
198
|
+
entryShape: "bare",
|
|
199
|
+
mapToWidget: we,
|
|
200
|
+
buildCustomWidget: xe
|
|
201
|
+
}), Ge = E.gsl, Ke = E.gslByUid, h = u({
|
|
202
|
+
itemType: "CALENDAR",
|
|
603
203
|
kind: "input",
|
|
604
|
-
entryShape: "
|
|
204
|
+
entryShape: "bare",
|
|
605
205
|
sensibleDefaults: {
|
|
606
206
|
base: { suppressAutomaticLabels: !1 },
|
|
607
207
|
fields: ["suppressAutomaticLabels"],
|
|
@@ -610,18 +210,18 @@ const I = u({
|
|
|
610
210
|
mapToWidget: (e) => ({
|
|
611
211
|
uid: e.uid ?? "",
|
|
612
212
|
kind: "input",
|
|
613
|
-
type: "
|
|
213
|
+
type: "calendar",
|
|
614
214
|
path: e.path ?? "",
|
|
615
215
|
...e.label != null ? { label: e.label } : {},
|
|
616
216
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
617
217
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
618
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
619
|
-
props:
|
|
218
|
+
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
219
|
+
props: p(e)
|
|
620
220
|
})
|
|
621
|
-
}),
|
|
622
|
-
itemType: "
|
|
221
|
+
}), Ye = h.gsl, $e = h.gslByUid, U = u({
|
|
222
|
+
itemType: "DATE_TIME_CALENDAR",
|
|
623
223
|
kind: "input",
|
|
624
|
-
entryShape: "
|
|
224
|
+
entryShape: "bare",
|
|
625
225
|
sensibleDefaults: {
|
|
626
226
|
base: { suppressAutomaticLabels: !1 },
|
|
627
227
|
fields: ["suppressAutomaticLabels"],
|
|
@@ -630,56 +230,39 @@ const I = u({
|
|
|
630
230
|
mapToWidget: (e) => ({
|
|
631
231
|
uid: e.uid ?? "",
|
|
632
232
|
kind: "input",
|
|
633
|
-
type: "
|
|
634
|
-
path: e.path ?? "",
|
|
635
|
-
...e.label != null ? { label: e.label } : {},
|
|
636
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
637
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
638
|
-
...e.validator != null ? { validator: c(e.validator, "boolean") } : {},
|
|
639
|
-
props: r(e)
|
|
640
|
-
})
|
|
641
|
-
}), Zt = k.gsl, es = k.gslByUid, D = u({
|
|
642
|
-
itemType: "TEXTAREA",
|
|
643
|
-
kind: "input",
|
|
644
|
-
entryShape: "keyed",
|
|
645
|
-
sensibleDefaults: {
|
|
646
|
-
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
647
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
648
|
-
apply: (e, t) => m(d(e, t), t)
|
|
649
|
-
},
|
|
650
|
-
mapToWidget: (e) => ({
|
|
651
|
-
uid: e.uid ?? "",
|
|
652
|
-
kind: "input",
|
|
653
|
-
type: "textarea",
|
|
233
|
+
type: "dateTimeCalendar",
|
|
654
234
|
path: e.path ?? "",
|
|
655
235
|
...e.label != null ? { label: e.label } : {},
|
|
656
236
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
657
237
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
658
238
|
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
659
|
-
props:
|
|
239
|
+
props: p(e)
|
|
660
240
|
})
|
|
661
|
-
}),
|
|
662
|
-
itemType: "
|
|
241
|
+
}), Fe = U.gsl, ze = U.gslByUid, D = u({
|
|
242
|
+
itemType: "DATE_TIME_PICKER",
|
|
663
243
|
kind: "input",
|
|
664
244
|
entryShape: "keyed",
|
|
665
245
|
sensibleDefaults: {
|
|
666
|
-
base: {
|
|
246
|
+
base: {
|
|
247
|
+
suppressAutomaticLabels: !1,
|
|
248
|
+
suppressAutomaticPlaceholders: !1
|
|
249
|
+
},
|
|
667
250
|
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
668
251
|
apply: (e, t) => m(d(e, t), t)
|
|
669
252
|
},
|
|
670
253
|
mapToWidget: (e) => ({
|
|
671
254
|
uid: e.uid ?? "",
|
|
672
255
|
kind: "input",
|
|
673
|
-
type: "
|
|
256
|
+
type: "dateTimePicker",
|
|
674
257
|
path: e.path ?? "",
|
|
675
258
|
...e.label != null ? { label: e.label } : {},
|
|
676
259
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
677
260
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
678
261
|
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
679
|
-
props:
|
|
262
|
+
props: p(e)
|
|
680
263
|
})
|
|
681
|
-
}),
|
|
682
|
-
itemType: "
|
|
264
|
+
}), Oe = D.gsl, Xe = D.gslByUid, P = u({
|
|
265
|
+
itemType: "TEXTAREA",
|
|
683
266
|
kind: "input",
|
|
684
267
|
entryShape: "keyed",
|
|
685
268
|
sensibleDefaults: {
|
|
@@ -690,16 +273,16 @@ const I = u({
|
|
|
690
273
|
mapToWidget: (e) => ({
|
|
691
274
|
uid: e.uid ?? "",
|
|
692
275
|
kind: "input",
|
|
693
|
-
type: "
|
|
276
|
+
type: "textarea",
|
|
694
277
|
path: e.path ?? "",
|
|
695
278
|
...e.label != null ? { label: e.label } : {},
|
|
696
279
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
697
280
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
698
|
-
...e.validator != null ? { validator: c(e.validator, "
|
|
699
|
-
props:
|
|
281
|
+
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
282
|
+
props: p(e)
|
|
700
283
|
})
|
|
701
|
-
}),
|
|
702
|
-
itemType: "
|
|
284
|
+
}), He = P.gsl, Ve = P.gslByUid, M = u({
|
|
285
|
+
itemType: "PASSWORD",
|
|
703
286
|
kind: "input",
|
|
704
287
|
entryShape: "keyed",
|
|
705
288
|
sensibleDefaults: {
|
|
@@ -710,16 +293,16 @@ const I = u({
|
|
|
710
293
|
mapToWidget: (e) => ({
|
|
711
294
|
uid: e.uid ?? "",
|
|
712
295
|
kind: "input",
|
|
713
|
-
type: "
|
|
296
|
+
type: "password",
|
|
714
297
|
path: e.path ?? "",
|
|
715
298
|
...e.label != null ? { label: e.label } : {},
|
|
716
299
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
717
300
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
718
301
|
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
719
|
-
props:
|
|
302
|
+
props: p(e)
|
|
720
303
|
})
|
|
721
|
-
}),
|
|
722
|
-
itemType: "
|
|
304
|
+
}), je = M.gsl, qe = M.gslByUid, B = u({
|
|
305
|
+
itemType: "CHECKBOX",
|
|
723
306
|
kind: "input",
|
|
724
307
|
entryShape: "keyed",
|
|
725
308
|
sensibleDefaults: {
|
|
@@ -730,18 +313,18 @@ const I = u({
|
|
|
730
313
|
mapToWidget: (e) => ({
|
|
731
314
|
uid: e.uid ?? "",
|
|
732
315
|
kind: "input",
|
|
733
|
-
type: "
|
|
316
|
+
type: "checkbox",
|
|
734
317
|
path: e.path ?? "",
|
|
735
318
|
...e.label != null ? { label: e.label } : {},
|
|
736
319
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
737
320
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
738
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
739
|
-
props:
|
|
321
|
+
...e.validator != null ? { validator: c(e.validator, "boolean") } : {},
|
|
322
|
+
props: p(e)
|
|
740
323
|
})
|
|
741
|
-
}),
|
|
742
|
-
itemType: "
|
|
324
|
+
}), Je = B.gsl, Qe = B.gslByUid, R = u({
|
|
325
|
+
itemType: "DATE_INPUT",
|
|
743
326
|
kind: "input",
|
|
744
|
-
entryShape: "
|
|
327
|
+
entryShape: "keyed",
|
|
745
328
|
sensibleDefaults: {
|
|
746
329
|
base: { suppressAutomaticLabels: !1 },
|
|
747
330
|
fields: ["suppressAutomaticLabels"],
|
|
@@ -750,18 +333,18 @@ const I = u({
|
|
|
750
333
|
mapToWidget: (e) => ({
|
|
751
334
|
uid: e.uid ?? "",
|
|
752
335
|
kind: "input",
|
|
753
|
-
type: "
|
|
336
|
+
type: "dateInput",
|
|
754
337
|
path: e.path ?? "",
|
|
755
338
|
...e.label != null ? { label: e.label } : {},
|
|
756
339
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
757
340
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
758
341
|
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
759
|
-
props:
|
|
342
|
+
props: p(e)
|
|
760
343
|
})
|
|
761
|
-
}),
|
|
762
|
-
itemType: "
|
|
344
|
+
}), Ze = R.gsl, et = R.gslByUid, L = u({
|
|
345
|
+
itemType: "TIME_INPUT",
|
|
763
346
|
kind: "input",
|
|
764
|
-
entryShape: "
|
|
347
|
+
entryShape: "keyed",
|
|
765
348
|
sensibleDefaults: {
|
|
766
349
|
base: { suppressAutomaticLabels: !1 },
|
|
767
350
|
fields: ["suppressAutomaticLabels"],
|
|
@@ -770,81 +353,78 @@ const I = u({
|
|
|
770
353
|
mapToWidget: (e) => ({
|
|
771
354
|
uid: e.uid ?? "",
|
|
772
355
|
kind: "input",
|
|
773
|
-
type: "
|
|
356
|
+
type: "timeInput",
|
|
774
357
|
path: e.path ?? "",
|
|
775
358
|
...e.label != null ? { label: e.label } : {},
|
|
776
359
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
777
360
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
778
361
|
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
779
|
-
props:
|
|
362
|
+
props: p(e)
|
|
780
363
|
})
|
|
781
|
-
}),
|
|
782
|
-
itemType: "
|
|
364
|
+
}), tt = L.gsl, st = L.gslByUid, v = u({
|
|
365
|
+
itemType: "TIME_PICKER",
|
|
783
366
|
kind: "input",
|
|
784
367
|
entryShape: "keyed",
|
|
785
368
|
sensibleDefaults: {
|
|
786
|
-
base: {
|
|
787
|
-
|
|
788
|
-
|
|
369
|
+
base: {
|
|
370
|
+
suppressAutomaticLabels: !1,
|
|
371
|
+
suppressAutomaticPlaceholders: !1
|
|
372
|
+
},
|
|
373
|
+
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
374
|
+
apply: (e, t) => m(d(e, t), t)
|
|
789
375
|
},
|
|
790
376
|
mapToWidget: (e) => ({
|
|
791
377
|
uid: e.uid ?? "",
|
|
792
378
|
kind: "input",
|
|
793
|
-
type: "
|
|
379
|
+
type: "timePicker",
|
|
794
380
|
path: e.path ?? "",
|
|
795
381
|
...e.label != null ? { label: e.label } : {},
|
|
796
382
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
797
383
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
798
384
|
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
799
|
-
props:
|
|
385
|
+
props: p(e)
|
|
800
386
|
})
|
|
801
|
-
}),
|
|
802
|
-
itemType: "
|
|
387
|
+
}), at = v.gsl, it = v.gslByUid, f = u({
|
|
388
|
+
itemType: "DATE_TIME_INPUT",
|
|
803
389
|
kind: "input",
|
|
804
390
|
entryShape: "keyed",
|
|
805
391
|
sensibleDefaults: {
|
|
806
|
-
base: {
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
},
|
|
810
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
811
|
-
apply: (e, t) => m(d(e, t), t)
|
|
392
|
+
base: { suppressAutomaticLabels: !1 },
|
|
393
|
+
fields: ["suppressAutomaticLabels"],
|
|
394
|
+
apply: (e, t) => d(e, t)
|
|
812
395
|
},
|
|
813
396
|
mapToWidget: (e) => ({
|
|
814
397
|
uid: e.uid ?? "",
|
|
815
398
|
kind: "input",
|
|
816
|
-
type: "
|
|
399
|
+
type: "dateTimeInput",
|
|
817
400
|
path: e.path ?? "",
|
|
818
401
|
...e.label != null ? { label: e.label } : {},
|
|
819
402
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
820
403
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
821
404
|
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
822
|
-
props:
|
|
405
|
+
props: p(e)
|
|
823
406
|
})
|
|
824
|
-
}),
|
|
825
|
-
itemType: "
|
|
407
|
+
}), nt = f.gsl, lt = f.gslByUid, C = u({
|
|
408
|
+
itemType: "CURRENCY",
|
|
826
409
|
kind: "input",
|
|
827
410
|
entryShape: "keyed",
|
|
828
411
|
sensibleDefaults: {
|
|
829
|
-
base: {
|
|
830
|
-
suppressAutomaticLabels: !1,
|
|
831
|
-
suppressAutomaticPlaceholders: !1
|
|
832
|
-
},
|
|
412
|
+
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
833
413
|
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
834
414
|
apply: (e, t) => m(d(e, t), t)
|
|
835
415
|
},
|
|
836
416
|
mapToWidget: (e) => ({
|
|
837
417
|
uid: e.uid ?? "",
|
|
838
418
|
kind: "input",
|
|
839
|
-
type: "
|
|
419
|
+
type: "currency",
|
|
840
420
|
path: e.path ?? "",
|
|
841
421
|
...e.label != null ? { label: e.label } : {},
|
|
842
422
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
843
423
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
844
|
-
...e.validator != null ? { validator: c(e.validator, "
|
|
845
|
-
props:
|
|
424
|
+
...e.validator != null ? { validator: c(e.validator, "number") } : {},
|
|
425
|
+
props: p(e)
|
|
846
426
|
})
|
|
847
|
-
}),
|
|
427
|
+
}), ot = C.gsl, ut = C.gslByUid, N = u({
|
|
848
428
|
itemType: "RANGE_CALENDAR",
|
|
849
429
|
kind: "input",
|
|
850
430
|
entryShape: "keyed",
|
|
@@ -862,12 +442,34 @@ const I = u({
|
|
|
862
442
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
863
443
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
864
444
|
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
865
|
-
props:
|
|
445
|
+
props: p(e)
|
|
866
446
|
})
|
|
867
|
-
}),
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
447
|
+
}), rt = N.gsl, pt = N.gslByUid, W = u(
|
|
448
|
+
{
|
|
449
|
+
itemType: "SELECT",
|
|
450
|
+
kind: "input",
|
|
451
|
+
entryShape: "keyed",
|
|
452
|
+
sensibleDefaults: {
|
|
453
|
+
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
454
|
+
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
455
|
+
apply: (e, t) => m(d(e, t), t)
|
|
456
|
+
},
|
|
457
|
+
mapToWidget: (e) => ({
|
|
458
|
+
uid: e.uid ?? "",
|
|
459
|
+
kind: "input",
|
|
460
|
+
type: "select",
|
|
461
|
+
path: e.path ?? "",
|
|
462
|
+
...e.label != null ? { label: e.label } : {},
|
|
463
|
+
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
464
|
+
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
465
|
+
...e.validator != null ? { validator: e.validator } : {},
|
|
466
|
+
props: p(e)
|
|
467
|
+
})
|
|
468
|
+
}
|
|
469
|
+
), dt = W.gsl, ct = W.gslByUid, w = u({
|
|
470
|
+
itemType: "RADIOGROUP",
|
|
471
|
+
kind: "input",
|
|
472
|
+
entryShape: "keyed",
|
|
871
473
|
sensibleDefaults: {
|
|
872
474
|
base: { suppressAutomaticLabels: !1 },
|
|
873
475
|
fields: ["suppressAutomaticLabels"],
|
|
@@ -876,16 +478,50 @@ const I = u({
|
|
|
876
478
|
mapToWidget: (e) => ({
|
|
877
479
|
uid: e.uid ?? "",
|
|
878
480
|
kind: "input",
|
|
879
|
-
type: "
|
|
481
|
+
type: "radiogroup",
|
|
880
482
|
path: e.path ?? "",
|
|
881
483
|
...e.label != null ? { label: e.label } : {},
|
|
882
484
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
883
485
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
884
|
-
...e.validator != null ? { validator:
|
|
885
|
-
props:
|
|
486
|
+
...e.validator != null ? { validator: e.validator } : {},
|
|
487
|
+
props: p(e)
|
|
886
488
|
})
|
|
887
|
-
}),
|
|
888
|
-
|
|
489
|
+
}), yt = w.gsl, mt = w.gslByUid;
|
|
490
|
+
function Tt(e) {
|
|
491
|
+
return {
|
|
492
|
+
uid: e.uid ?? "",
|
|
493
|
+
kind: "layout",
|
|
494
|
+
type: "tabs",
|
|
495
|
+
props: {
|
|
496
|
+
tabs: e.tabs,
|
|
497
|
+
renderMode: e.renderMode ?? "all",
|
|
498
|
+
...e.defaultOpen != null ? { defaultOpen: e.defaultOpen } : {}
|
|
499
|
+
},
|
|
500
|
+
children: []
|
|
501
|
+
};
|
|
502
|
+
}
|
|
503
|
+
function gt(e, t) {
|
|
504
|
+
const s = t.walkChildren(t.children ?? []);
|
|
505
|
+
if (e.kind === "static")
|
|
506
|
+
return { ...t.mapStaticDef(e.def, "TABS"), children: s };
|
|
507
|
+
const a = e.fn;
|
|
508
|
+
return ((i) => {
|
|
509
|
+
const n = a(i);
|
|
510
|
+
return { ...t.mapStaticDef(n, "TABS"), children: s };
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
function bt(e) {
|
|
514
|
+
return e.children;
|
|
515
|
+
}
|
|
516
|
+
const x = u({
|
|
517
|
+
itemType: "TABS",
|
|
518
|
+
kind: "layout",
|
|
519
|
+
entryShape: "compound",
|
|
520
|
+
mapToWidget: Tt,
|
|
521
|
+
buildCustomWidget: gt,
|
|
522
|
+
getChildren: bt
|
|
523
|
+
}), It = x.gsl, _t = x.gslByUid, G = u({
|
|
524
|
+
itemType: "LIST",
|
|
889
525
|
kind: "input",
|
|
890
526
|
entryShape: "keyed",
|
|
891
527
|
sensibleDefaults: {
|
|
@@ -896,119 +532,241 @@ const I = u({
|
|
|
896
532
|
mapToWidget: (e) => ({
|
|
897
533
|
uid: e.uid ?? "",
|
|
898
534
|
kind: "input",
|
|
899
|
-
type: "
|
|
535
|
+
type: "list",
|
|
900
536
|
path: e.path ?? "",
|
|
901
537
|
...e.label != null ? { label: e.label } : {},
|
|
902
538
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
903
539
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
904
|
-
...e.validator != null ? { validator:
|
|
905
|
-
props:
|
|
540
|
+
...e.validator != null ? { validator: e.validator } : {},
|
|
541
|
+
props: p(e)
|
|
906
542
|
})
|
|
907
|
-
}),
|
|
908
|
-
itemType: "
|
|
543
|
+
}), kt = G.gsl, St = G.gslByUid, K = u({
|
|
544
|
+
itemType: "TAGS",
|
|
909
545
|
kind: "input",
|
|
910
546
|
entryShape: "keyed",
|
|
911
547
|
sensibleDefaults: {
|
|
912
|
-
base: { suppressAutomaticLabels: !1 },
|
|
913
|
-
fields: ["suppressAutomaticLabels"],
|
|
914
|
-
apply: (e, t) => d(e, t)
|
|
548
|
+
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
549
|
+
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
550
|
+
apply: (e, t) => m(d(e, t), t)
|
|
915
551
|
},
|
|
916
552
|
mapToWidget: (e) => ({
|
|
917
553
|
uid: e.uid ?? "",
|
|
918
554
|
kind: "input",
|
|
919
|
-
type: "
|
|
555
|
+
type: "tags",
|
|
920
556
|
path: e.path ?? "",
|
|
921
557
|
...e.label != null ? { label: e.label } : {},
|
|
922
558
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
923
559
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
924
560
|
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
925
|
-
props:
|
|
561
|
+
props: p(e)
|
|
926
562
|
})
|
|
927
|
-
}),
|
|
928
|
-
itemType: "
|
|
563
|
+
}), ya = K.gsl, ma = K.gslByUid, Y = u({
|
|
564
|
+
itemType: "ALERTS",
|
|
565
|
+
kind: "display",
|
|
566
|
+
entryShape: "bare",
|
|
567
|
+
mapToWidget: (e) => ({
|
|
568
|
+
uid: e.uid ?? "",
|
|
569
|
+
kind: "display",
|
|
570
|
+
type: "alert",
|
|
571
|
+
props: {
|
|
572
|
+
text: e.text,
|
|
573
|
+
...e.level != null ? { level: e.level } : {}
|
|
574
|
+
}
|
|
575
|
+
})
|
|
576
|
+
}), At = Y.gsl, Et = Y.gslByUid, $ = u({
|
|
577
|
+
itemType: "MARKDOWN_TEXTS",
|
|
578
|
+
kind: "display",
|
|
579
|
+
entryShape: "bare",
|
|
580
|
+
mapToWidget: (e) => ({
|
|
581
|
+
uid: e.uid ?? "",
|
|
582
|
+
kind: "display",
|
|
583
|
+
type: "markdownText",
|
|
584
|
+
props: {
|
|
585
|
+
md: e.md
|
|
586
|
+
}
|
|
587
|
+
})
|
|
588
|
+
}), ht = $.gsl, Ut = $.gslByUid, F = u({
|
|
589
|
+
itemType: "DATE_PICKER",
|
|
929
590
|
kind: "input",
|
|
930
591
|
entryShape: "keyed",
|
|
931
592
|
sensibleDefaults: {
|
|
932
|
-
base: {
|
|
933
|
-
|
|
934
|
-
|
|
593
|
+
base: {
|
|
594
|
+
suppressAutomaticLabels: !1,
|
|
595
|
+
suppressAutomaticPlaceholders: !1
|
|
596
|
+
},
|
|
597
|
+
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
598
|
+
apply: (e, t) => m(d(e, t), t)
|
|
935
599
|
},
|
|
936
600
|
mapToWidget: (e) => ({
|
|
937
601
|
uid: e.uid ?? "",
|
|
938
602
|
kind: "input",
|
|
939
|
-
type: "
|
|
603
|
+
type: "datePicker",
|
|
940
604
|
path: e.path ?? "",
|
|
941
605
|
...e.label != null ? { label: e.label } : {},
|
|
942
606
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
943
607
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
944
|
-
...e.validator != null ? { validator: c(e.validator, "
|
|
945
|
-
props:
|
|
608
|
+
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
609
|
+
props: p(e)
|
|
946
610
|
})
|
|
947
|
-
}),
|
|
948
|
-
itemType: "
|
|
611
|
+
}), Dt = F.gsl, Pt = F.gslByUid, z = u({
|
|
612
|
+
itemType: "DROPDOWN",
|
|
949
613
|
kind: "input",
|
|
950
614
|
entryShape: "keyed",
|
|
951
615
|
sensibleDefaults: {
|
|
952
|
-
base: {
|
|
953
|
-
|
|
954
|
-
|
|
616
|
+
base: {
|
|
617
|
+
suppressAutomaticLabels: !1,
|
|
618
|
+
suppressAutomaticPlaceholders: !1
|
|
619
|
+
},
|
|
620
|
+
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
621
|
+
apply: (e, t) => m(d(e, t), t)
|
|
955
622
|
},
|
|
956
623
|
mapToWidget: (e) => ({
|
|
957
624
|
uid: e.uid ?? "",
|
|
958
625
|
kind: "input",
|
|
959
|
-
type: "
|
|
626
|
+
type: "dropdown",
|
|
960
627
|
path: e.path ?? "",
|
|
961
628
|
...e.label != null ? { label: e.label } : {},
|
|
962
629
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
963
630
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
964
|
-
...e.validator != null ? { validator:
|
|
965
|
-
props:
|
|
631
|
+
...e.validator != null ? { validator: e.validator } : {},
|
|
632
|
+
props: p(e)
|
|
966
633
|
})
|
|
967
|
-
}),
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
634
|
+
}), Mt = z.gsl, Bt = z.gslByUid;
|
|
635
|
+
function Rt(e) {
|
|
636
|
+
return {
|
|
637
|
+
uid: e.uid ?? "",
|
|
638
|
+
kind: "layout",
|
|
639
|
+
type: "accordion",
|
|
640
|
+
props: {
|
|
641
|
+
sections: e.sections,
|
|
642
|
+
renderMode: e.renderMode ?? "all",
|
|
643
|
+
...e.singleOpen != null ? { singleOpen: e.singleOpen } : {},
|
|
644
|
+
...e.defaultOpen != null ? { defaultOpen: e.defaultOpen } : {}
|
|
645
|
+
},
|
|
646
|
+
children: []
|
|
647
|
+
};
|
|
648
|
+
}
|
|
649
|
+
function Lt(e, t) {
|
|
650
|
+
const s = t.walkChildren(t.children ?? []);
|
|
651
|
+
if (e.kind === "static")
|
|
652
|
+
return { ...t.mapStaticDef(e.def, "ACCORDION"), children: s };
|
|
653
|
+
const a = e.fn;
|
|
654
|
+
return ((i) => {
|
|
655
|
+
const n = a(i);
|
|
656
|
+
return { ...t.mapStaticDef(n, "ACCORDION"), children: s };
|
|
657
|
+
});
|
|
658
|
+
}
|
|
659
|
+
function vt(e) {
|
|
660
|
+
return e.children;
|
|
661
|
+
}
|
|
662
|
+
const O = u({
|
|
663
|
+
itemType: "ACCORDION",
|
|
664
|
+
kind: "layout",
|
|
665
|
+
entryShape: "compound",
|
|
666
|
+
mapToWidget: Rt,
|
|
667
|
+
buildCustomWidget: Lt,
|
|
668
|
+
getChildren: vt
|
|
669
|
+
}), ft = O.gsl, Ct = O.gslByUid;
|
|
670
|
+
function Nt(e) {
|
|
671
|
+
const t = {};
|
|
672
|
+
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;
|
|
673
|
+
}
|
|
674
|
+
function Wt(e) {
|
|
675
|
+
return {
|
|
977
676
|
uid: e.uid ?? "",
|
|
978
677
|
kind: "input",
|
|
979
|
-
type: "
|
|
678
|
+
type: "repeater",
|
|
980
679
|
path: e.path ?? "",
|
|
981
680
|
...e.label != null ? { label: e.label } : {},
|
|
982
681
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
983
682
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
984
|
-
...e.validator != null ? { validator: c(e.validator, "
|
|
985
|
-
props:
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
683
|
+
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
684
|
+
props: {
|
|
685
|
+
...Nt(e),
|
|
686
|
+
template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
|
|
687
|
+
}
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
function _(e, t) {
|
|
691
|
+
for (const s of e) {
|
|
692
|
+
if (typeof s == "function") continue;
|
|
693
|
+
const a = s;
|
|
694
|
+
typeof a.path == "string" && a.path && !a.path.startsWith(t) && (a.path = t + a.path), "children" in a && Array.isArray(a.children) && _(a.children, t);
|
|
695
|
+
const i = a.props;
|
|
696
|
+
i?.template?.children && Array.isArray(i.template.children) && _(i.template.children, t);
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
function wt(e, t) {
|
|
700
|
+
const s = t.walkChildren(t.children ?? []), a = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
|
|
701
|
+
a && _(s, a + ".items.");
|
|
702
|
+
const i = {
|
|
703
|
+
kind: "layout",
|
|
704
|
+
type: "flex",
|
|
705
|
+
uid: "",
|
|
706
|
+
children: s,
|
|
707
|
+
props: { direction: "column" }
|
|
708
|
+
};
|
|
709
|
+
if (e.kind === "static") {
|
|
710
|
+
const l = t.mapStaticDef(e.def, "REPEATER");
|
|
711
|
+
return {
|
|
712
|
+
...l,
|
|
713
|
+
props: { ...l.props, template: i }
|
|
714
|
+
};
|
|
715
|
+
}
|
|
716
|
+
const n = e.fn;
|
|
717
|
+
return ((l) => {
|
|
718
|
+
const r = n(l), o = t.mapStaticDef(r, "REPEATER");
|
|
719
|
+
return {
|
|
720
|
+
...o,
|
|
721
|
+
props: { ...o.props, template: i }
|
|
722
|
+
};
|
|
723
|
+
});
|
|
724
|
+
}
|
|
725
|
+
function xt(e) {
|
|
726
|
+
return {
|
|
727
|
+
baseDef: e.def,
|
|
728
|
+
path: e.key,
|
|
729
|
+
children: e.children
|
|
730
|
+
};
|
|
731
|
+
}
|
|
732
|
+
function Gt(e) {
|
|
733
|
+
return e.children;
|
|
734
|
+
}
|
|
735
|
+
const Kt = {
|
|
736
|
+
parseEntry: xt,
|
|
737
|
+
rollUpSensibleDefaults: () => ({}),
|
|
738
|
+
applySensibleDefaults: (e) => e,
|
|
739
|
+
mapToWidget: Wt,
|
|
740
|
+
buildCustomWidget: wt,
|
|
741
|
+
getChildren: Gt
|
|
742
|
+
}, X = Ie("REPEATER"), me = (e, t) => X(t, ((s) => s.uid === e)), Yt = {
|
|
743
|
+
itemType: "REPEATER",
|
|
744
|
+
kind: "input",
|
|
745
|
+
handler: Kt,
|
|
746
|
+
gsl: X,
|
|
747
|
+
gslByUid: me
|
|
748
|
+
}, H = u({
|
|
749
|
+
itemType: "MARKDOWN",
|
|
989
750
|
kind: "input",
|
|
990
751
|
entryShape: "keyed",
|
|
991
752
|
sensibleDefaults: {
|
|
992
|
-
base: {
|
|
993
|
-
suppressAutomaticLabels: !1,
|
|
994
|
-
suppressAutomaticPlaceholders: !1
|
|
995
|
-
},
|
|
753
|
+
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
996
754
|
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
997
755
|
apply: (e, t) => m(d(e, t), t)
|
|
998
756
|
},
|
|
999
757
|
mapToWidget: (e) => ({
|
|
1000
758
|
uid: e.uid ?? "",
|
|
1001
759
|
kind: "input",
|
|
1002
|
-
type: "
|
|
760
|
+
type: "markdown",
|
|
1003
761
|
path: e.path ?? "",
|
|
1004
762
|
...e.label != null ? { label: e.label } : {},
|
|
1005
763
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1006
764
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1007
765
|
...e.validator != null ? { validator: c(e.validator, "string") } : {},
|
|
1008
|
-
props:
|
|
766
|
+
props: p(e)
|
|
1009
767
|
})
|
|
1010
|
-
}),
|
|
1011
|
-
itemType: "
|
|
768
|
+
}), $t = H.gsl, Ft = H.gslByUid, V = u({
|
|
769
|
+
itemType: "RANGE_DATE_INPUT",
|
|
1012
770
|
kind: "input",
|
|
1013
771
|
entryShape: "keyed",
|
|
1014
772
|
sensibleDefaults: {
|
|
@@ -1019,39 +777,36 @@ const I = u({
|
|
|
1019
777
|
mapToWidget: (e) => ({
|
|
1020
778
|
uid: e.uid ?? "",
|
|
1021
779
|
kind: "input",
|
|
1022
|
-
type: "
|
|
780
|
+
type: "rangeDateInput",
|
|
1023
781
|
path: e.path ?? "",
|
|
1024
782
|
...e.label != null ? { label: e.label } : {},
|
|
1025
783
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1026
784
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1027
|
-
...e.validator != null ? { validator: c(e.validator, "
|
|
1028
|
-
props:
|
|
785
|
+
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
786
|
+
props: p(e)
|
|
1029
787
|
})
|
|
1030
|
-
}),
|
|
1031
|
-
itemType: "
|
|
788
|
+
}), zt = V.gsl, Ot = V.gslByUid, j = u({
|
|
789
|
+
itemType: "RANGE_TIME_INPUT",
|
|
1032
790
|
kind: "input",
|
|
1033
791
|
entryShape: "keyed",
|
|
1034
792
|
sensibleDefaults: {
|
|
1035
|
-
base: {
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
},
|
|
1039
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
1040
|
-
apply: (e, t) => m(d(e, t), t)
|
|
793
|
+
base: { suppressAutomaticLabels: !1 },
|
|
794
|
+
fields: ["suppressAutomaticLabels"],
|
|
795
|
+
apply: (e, t) => d(e, t)
|
|
1041
796
|
},
|
|
1042
797
|
mapToWidget: (e) => ({
|
|
1043
798
|
uid: e.uid ?? "",
|
|
1044
799
|
kind: "input",
|
|
1045
|
-
type: "
|
|
800
|
+
type: "rangeTimeInput",
|
|
1046
801
|
path: e.path ?? "",
|
|
1047
802
|
...e.label != null ? { label: e.label } : {},
|
|
1048
803
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1049
804
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1050
805
|
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
1051
|
-
props:
|
|
806
|
+
props: p(e)
|
|
1052
807
|
})
|
|
1053
|
-
}),
|
|
1054
|
-
itemType: "
|
|
808
|
+
}), Xt = j.gsl, Ht = j.gslByUid, q = u({
|
|
809
|
+
itemType: "RANGE_DATE_TIME_INPUT",
|
|
1055
810
|
kind: "input",
|
|
1056
811
|
entryShape: "keyed",
|
|
1057
812
|
sensibleDefaults: {
|
|
@@ -1062,479 +817,807 @@ const I = u({
|
|
|
1062
817
|
mapToWidget: (e) => ({
|
|
1063
818
|
uid: e.uid ?? "",
|
|
1064
819
|
kind: "input",
|
|
1065
|
-
type: "
|
|
820
|
+
type: "rangeDateTimeInput",
|
|
1066
821
|
path: e.path ?? "",
|
|
1067
822
|
...e.label != null ? { label: e.label } : {},
|
|
1068
823
|
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1069
824
|
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1070
825
|
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
1071
|
-
props:
|
|
826
|
+
props: p(e)
|
|
1072
827
|
})
|
|
1073
|
-
}),
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
828
|
+
}), Vt = q.gsl, jt = q.gslByUid, J = u({
|
|
829
|
+
itemType: "RANGE_DATE_TIME_CALENDAR",
|
|
830
|
+
kind: "input",
|
|
831
|
+
entryShape: "keyed",
|
|
832
|
+
sensibleDefaults: {
|
|
833
|
+
base: { suppressAutomaticLabels: !1 },
|
|
834
|
+
fields: ["suppressAutomaticLabels"],
|
|
835
|
+
apply: (e, t) => d(e, t)
|
|
836
|
+
},
|
|
837
|
+
mapToWidget: (e) => ({
|
|
838
|
+
uid: e.uid ?? "",
|
|
839
|
+
kind: "input",
|
|
840
|
+
type: "rangeDateTimeCalendar",
|
|
841
|
+
path: e.path ?? "",
|
|
842
|
+
...e.label != null ? { label: e.label } : {},
|
|
843
|
+
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
844
|
+
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
845
|
+
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
846
|
+
props: p(e)
|
|
847
|
+
})
|
|
848
|
+
}), qt = J.gsl, Jt = J.gslByUid, Q = u({
|
|
849
|
+
itemType: "RANGE_DATE_TIME_PICKER",
|
|
850
|
+
kind: "input",
|
|
851
|
+
entryShape: "keyed",
|
|
852
|
+
sensibleDefaults: {
|
|
853
|
+
base: { suppressAutomaticLabels: !1 },
|
|
854
|
+
fields: ["suppressAutomaticLabels"],
|
|
855
|
+
apply: (e, t) => d(e, t)
|
|
856
|
+
},
|
|
857
|
+
mapToWidget: (e) => ({
|
|
858
|
+
uid: e.uid ?? "",
|
|
859
|
+
kind: "input",
|
|
860
|
+
type: "rangeDateTimePicker",
|
|
861
|
+
path: e.path ?? "",
|
|
862
|
+
...e.label != null ? { label: e.label } : {},
|
|
863
|
+
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
864
|
+
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
865
|
+
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
866
|
+
props: p(e)
|
|
867
|
+
})
|
|
868
|
+
}), Qt = Q.gsl, Zt = Q.gslByUid, Z = u({
|
|
869
|
+
itemType: "RANGE_DATE_PICKER",
|
|
870
|
+
kind: "input",
|
|
871
|
+
entryShape: "keyed",
|
|
872
|
+
sensibleDefaults: {
|
|
873
|
+
base: {
|
|
874
|
+
suppressAutomaticLabels: !1,
|
|
875
|
+
suppressAutomaticPlaceholders: !1
|
|
876
|
+
},
|
|
877
|
+
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
878
|
+
apply: (e, t) => m(d(e, t), t)
|
|
879
|
+
},
|
|
880
|
+
mapToWidget: (e) => ({
|
|
881
|
+
uid: e.uid ?? "",
|
|
882
|
+
kind: "input",
|
|
883
|
+
type: "rangeDatePicker",
|
|
884
|
+
path: e.path ?? "",
|
|
885
|
+
...e.label != null ? { label: e.label } : {},
|
|
886
|
+
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
887
|
+
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
888
|
+
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
889
|
+
props: p(e)
|
|
890
|
+
})
|
|
891
|
+
}), es = Z.gsl, ts = Z.gslByUid, ee = u({
|
|
892
|
+
itemType: "RANGE_TIME_PICKER",
|
|
893
|
+
kind: "input",
|
|
894
|
+
entryShape: "keyed",
|
|
895
|
+
sensibleDefaults: {
|
|
896
|
+
base: { suppressAutomaticLabels: !1 },
|
|
897
|
+
fields: ["suppressAutomaticLabels"],
|
|
898
|
+
apply: (e, t) => d(e, t)
|
|
899
|
+
},
|
|
900
|
+
mapToWidget: (e) => ({
|
|
901
|
+
uid: e.uid ?? "",
|
|
902
|
+
kind: "input",
|
|
903
|
+
type: "rangeTimePicker",
|
|
904
|
+
path: e.path ?? "",
|
|
905
|
+
...e.label != null ? { label: e.label } : {},
|
|
906
|
+
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
907
|
+
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
908
|
+
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
909
|
+
props: p(e)
|
|
910
|
+
})
|
|
911
|
+
}), ss = ee.gsl, as = ee.gslByUid, te = u({
|
|
912
|
+
itemType: "CUSTOM_DISPLAY",
|
|
913
|
+
kind: "display",
|
|
914
|
+
entryShape: "bare",
|
|
915
|
+
mapToWidget: (e) => ({
|
|
916
|
+
uid: e.uid ?? "",
|
|
917
|
+
kind: "display",
|
|
918
|
+
type: e.customType,
|
|
919
|
+
props: e.props ?? {}
|
|
920
|
+
})
|
|
921
|
+
}), is = te.gsl, ns = te.gslByUid, se = u({
|
|
922
|
+
itemType: "CUSTOM_INPUT",
|
|
923
|
+
kind: "input",
|
|
924
|
+
entryShape: "keyed",
|
|
925
|
+
sensibleDefaults: {
|
|
926
|
+
base: {
|
|
927
|
+
suppressAutomaticLabels: !1
|
|
928
|
+
},
|
|
929
|
+
fields: ["suppressAutomaticLabels"],
|
|
930
|
+
apply: (e, t) => d(e, t)
|
|
931
|
+
},
|
|
932
|
+
mapToWidget: (e) => ({
|
|
933
|
+
uid: e.uid ?? "",
|
|
934
|
+
kind: "input",
|
|
935
|
+
type: e.customType,
|
|
936
|
+
path: e.path ?? "",
|
|
937
|
+
...e.label != null ? { label: e.label } : {},
|
|
938
|
+
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
939
|
+
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
940
|
+
...e.defaultValue != null ? { defaultValue: e.defaultValue } : {},
|
|
941
|
+
...e.validator != null ? { validator: e.validator } : {},
|
|
942
|
+
props: e.props ?? {}
|
|
943
|
+
})
|
|
944
|
+
}), ls = se.gsl, os = se.gslByUid, ae = u({
|
|
945
|
+
itemType: "CUSTOM_ACTION",
|
|
946
|
+
kind: "action",
|
|
947
|
+
entryShape: "bare",
|
|
948
|
+
mapToWidget: (e) => {
|
|
949
|
+
const {
|
|
950
|
+
uid: t,
|
|
951
|
+
label: s,
|
|
952
|
+
disabled: a,
|
|
953
|
+
on: i,
|
|
954
|
+
onClick: n,
|
|
955
|
+
data: l,
|
|
956
|
+
customType: r,
|
|
957
|
+
tags: o,
|
|
958
|
+
size: T,
|
|
959
|
+
include: g,
|
|
960
|
+
exclude: ge,
|
|
961
|
+
states: be,
|
|
962
|
+
props: re,
|
|
963
|
+
...I
|
|
964
|
+
} = e;
|
|
965
|
+
return {
|
|
966
|
+
uid: t ?? "",
|
|
967
|
+
kind: "action",
|
|
968
|
+
type: e.customType,
|
|
969
|
+
label: s,
|
|
970
|
+
disabled: a,
|
|
971
|
+
...i != null ? { on: i } : {},
|
|
972
|
+
props: { ...re, ...I }
|
|
973
|
+
};
|
|
974
|
+
},
|
|
975
|
+
afterMerge: (e, t) => ye.extractOnClickFromMergeResult(
|
|
976
|
+
e,
|
|
977
|
+
t.eventRegistry,
|
|
978
|
+
t.eventIdGenerator
|
|
979
|
+
)
|
|
980
|
+
}), us = ae.gsl, rs = ae.gslByUid;
|
|
981
|
+
function ps(e) {
|
|
982
|
+
return {
|
|
983
|
+
uid: e.uid ?? "",
|
|
984
|
+
kind: "layout",
|
|
985
|
+
type: e.customType,
|
|
986
|
+
props: e.props ?? {},
|
|
987
|
+
children: []
|
|
988
|
+
};
|
|
989
|
+
}
|
|
990
|
+
function ds(e, t) {
|
|
991
|
+
const s = t.walkChildren(t.children ?? []);
|
|
992
|
+
if (e.kind === "static")
|
|
993
|
+
return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: s };
|
|
994
|
+
const a = e.fn;
|
|
995
|
+
return ((i) => {
|
|
996
|
+
const n = a(i);
|
|
997
|
+
return { ...t.mapStaticDef(n, "CUSTOM_LAYOUT"), children: s };
|
|
998
|
+
});
|
|
999
|
+
}
|
|
1000
|
+
function cs(e) {
|
|
1001
|
+
return e.children;
|
|
1002
|
+
}
|
|
1003
|
+
const ie = u({
|
|
1004
|
+
itemType: "CUSTOM_LAYOUT",
|
|
1005
|
+
kind: "layout",
|
|
1006
|
+
entryShape: "compound",
|
|
1007
|
+
mapToWidget: ps,
|
|
1008
|
+
buildCustomWidget: ds,
|
|
1009
|
+
getChildren: cs
|
|
1010
|
+
}), ys = ie.gsl, ms = ie.gslByUid, Ts = [
|
|
1011
|
+
k,
|
|
1012
|
+
S,
|
|
1013
|
+
A,
|
|
1014
|
+
E,
|
|
1015
|
+
h,
|
|
1016
|
+
U,
|
|
1017
|
+
D,
|
|
1018
|
+
P,
|
|
1019
|
+
M,
|
|
1020
|
+
B,
|
|
1021
|
+
R,
|
|
1022
|
+
L,
|
|
1023
|
+
v,
|
|
1024
|
+
f,
|
|
1025
|
+
C,
|
|
1026
|
+
N,
|
|
1027
|
+
W,
|
|
1028
|
+
w,
|
|
1029
|
+
x,
|
|
1030
|
+
G,
|
|
1031
|
+
K,
|
|
1032
|
+
Y,
|
|
1033
|
+
$,
|
|
1034
|
+
F,
|
|
1035
|
+
z,
|
|
1036
|
+
O,
|
|
1037
|
+
Yt,
|
|
1038
|
+
H,
|
|
1039
|
+
V,
|
|
1040
|
+
j,
|
|
1041
|
+
q,
|
|
1042
|
+
J,
|
|
1043
|
+
Q,
|
|
1044
|
+
Z,
|
|
1045
|
+
ee,
|
|
1046
|
+
te,
|
|
1047
|
+
se,
|
|
1048
|
+
ae,
|
|
1049
|
+
ie
|
|
1050
|
+
], ne = _e();
|
|
1051
|
+
for (const e of Ts)
|
|
1052
|
+
ke(ne, e);
|
|
1053
|
+
function Ta(e) {
|
|
1054
|
+
return Se(
|
|
1055
|
+
ne,
|
|
1056
|
+
e
|
|
1057
|
+
);
|
|
1058
|
+
}
|
|
1059
|
+
function gs(e, t, s) {
|
|
1060
|
+
if (typeof t == "function") {
|
|
1061
|
+
const i = t;
|
|
1062
|
+
return {
|
|
1063
|
+
items: [{ key: e, def: (l) => ({ type: "text", ...i(l) }) }],
|
|
1064
|
+
type: "ITEMS",
|
|
1065
|
+
itemType: y.INPUTS,
|
|
1066
|
+
tags: s ?? []
|
|
1067
|
+
};
|
|
1068
|
+
}
|
|
1069
|
+
const a = { type: "text", ...t };
|
|
1070
|
+
return {
|
|
1071
|
+
items: [{ key: e, def: a }],
|
|
1072
|
+
type: "ITEMS",
|
|
1073
|
+
itemType: y.INPUTS,
|
|
1074
|
+
tags: s ?? []
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
function bs(e, t, s) {
|
|
1078
|
+
if (typeof t == "function") {
|
|
1079
|
+
const i = t;
|
|
1080
|
+
return {
|
|
1081
|
+
items: [{ key: e, def: (l) => ({ type: "number", ...i(l) }) }],
|
|
1082
|
+
type: "ITEMS",
|
|
1083
|
+
itemType: y.INPUTS,
|
|
1084
|
+
tags: s ?? []
|
|
1085
|
+
};
|
|
1086
|
+
}
|
|
1087
|
+
const a = { type: "number", ...t };
|
|
1088
|
+
return {
|
|
1089
|
+
items: [{ key: e, def: a }],
|
|
1090
|
+
type: "ITEMS",
|
|
1091
|
+
itemType: y.INPUTS,
|
|
1092
|
+
tags: s ?? []
|
|
1093
|
+
};
|
|
1094
|
+
}
|
|
1095
|
+
function Is(e, t, s) {
|
|
1096
|
+
if (typeof t == "function") {
|
|
1097
|
+
const i = t;
|
|
1098
|
+
return {
|
|
1099
|
+
items: [{ key: e, def: (l) => ({ type: "boolean", ...i(l) }) }],
|
|
1100
|
+
type: "ITEMS",
|
|
1101
|
+
itemType: y.INPUTS,
|
|
1102
|
+
tags: s ?? []
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
const a = { type: "boolean", ...t };
|
|
1106
|
+
return {
|
|
1107
|
+
items: [{ key: e, def: a }],
|
|
1108
|
+
type: "ITEMS",
|
|
1109
|
+
itemType: y.INPUTS,
|
|
1110
|
+
tags: s ?? []
|
|
1111
|
+
};
|
|
1112
|
+
}
|
|
1113
|
+
function _s(e, t, s) {
|
|
1114
|
+
if (typeof t == "function") {
|
|
1115
|
+
const n = t;
|
|
1116
|
+
return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: (o) => ({ type: "select", ...n(o) }) }], tags: s ?? [] };
|
|
1117
|
+
}
|
|
1118
|
+
const a = { type: "select", ...t };
|
|
1119
|
+
return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1120
|
+
}
|
|
1121
|
+
function ks(e, t, s) {
|
|
1122
|
+
if (typeof t == "function") {
|
|
1123
|
+
const n = t;
|
|
1124
|
+
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: (o) => ({
|
|
1125
|
+
type: "dropdown",
|
|
1126
|
+
...n(o)
|
|
1127
|
+
}) }], tags: s ?? [] };
|
|
1128
|
+
}
|
|
1129
|
+
const a = { type: "dropdown", ...t };
|
|
1130
|
+
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1131
|
+
}
|
|
1132
|
+
function Ss(e, t, s) {
|
|
1133
|
+
if (typeof t == "function") {
|
|
1134
|
+
const n = t;
|
|
1135
|
+
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: (o) => ({ type: "radiogroup", ...n(o) }) }], tags: s ?? [] };
|
|
1136
|
+
}
|
|
1137
|
+
const a = { type: "radiogroup", ...t };
|
|
1138
|
+
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1139
|
+
}
|
|
1140
|
+
function As(e, t, s) {
|
|
1141
|
+
if (typeof t == "function") {
|
|
1142
|
+
const n = t;
|
|
1143
|
+
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: (o) => ({ type: "checkbox", ...n(o) }) }], tags: s ?? [] };
|
|
1144
|
+
}
|
|
1145
|
+
const a = { type: "checkbox", ...t };
|
|
1146
|
+
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1147
|
+
}
|
|
1148
|
+
function Es(e, t, s) {
|
|
1149
|
+
if (typeof t == "function") {
|
|
1150
|
+
const n = t;
|
|
1151
|
+
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: (o) => ({ type: "textarea", ...n(o) }) }], tags: s ?? [] };
|
|
1152
|
+
}
|
|
1153
|
+
const a = { type: "textarea", ...t };
|
|
1154
|
+
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1155
|
+
}
|
|
1156
|
+
function hs(e, t, s) {
|
|
1157
|
+
if (typeof t == "function") {
|
|
1158
|
+
const n = t;
|
|
1159
|
+
return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: (o) => ({ type: "password", ...n(o) }) }], tags: s ?? [] };
|
|
1160
|
+
}
|
|
1161
|
+
const a = { type: "password", ...t };
|
|
1162
|
+
return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1163
|
+
}
|
|
1164
|
+
function Us(e, t, s) {
|
|
1165
|
+
if (typeof t == "function") {
|
|
1166
|
+
const n = t;
|
|
1167
|
+
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: (o) => ({ type: "currency", ...n(o) }) }], tags: s ?? [] };
|
|
1168
|
+
}
|
|
1169
|
+
const a = { type: "currency", ...t };
|
|
1170
|
+
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1171
|
+
}
|
|
1172
|
+
function Ds(e, t, s) {
|
|
1173
|
+
if (typeof t == "function") {
|
|
1174
|
+
const n = t;
|
|
1175
|
+
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: (o) => ({ type: "markdown", ...n(o) }) }], tags: s ?? [] };
|
|
1176
|
+
}
|
|
1177
|
+
const a = { type: "markdown", ...t };
|
|
1178
|
+
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1179
|
+
}
|
|
1180
|
+
function Ps(e, t, s) {
|
|
1181
|
+
if (typeof t == "function") {
|
|
1182
|
+
const n = t;
|
|
1183
|
+
return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: (o) => ({ type: "list", ...n(o) }) }], tags: s ?? [] };
|
|
1184
|
+
}
|
|
1185
|
+
const a = { type: "list", ...t };
|
|
1186
|
+
return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1187
|
+
}
|
|
1188
|
+
function Ms(e, t, s) {
|
|
1189
|
+
if (typeof t == "function") {
|
|
1190
|
+
const i = t;
|
|
1191
|
+
return {
|
|
1192
|
+
items: [(l) => ({
|
|
1193
|
+
type: "calendar",
|
|
1194
|
+
path: e,
|
|
1195
|
+
...i(l)
|
|
1196
|
+
})],
|
|
1197
|
+
type: "ITEMS",
|
|
1198
|
+
itemType: "CALENDAR",
|
|
1199
|
+
tags: s ?? []
|
|
1200
|
+
};
|
|
1201
|
+
}
|
|
1202
|
+
return {
|
|
1203
|
+
items: [{ type: "calendar", path: e, ...t }],
|
|
1204
|
+
type: "ITEMS",
|
|
1205
|
+
itemType: "CALENDAR",
|
|
1206
|
+
tags: s ?? []
|
|
1207
|
+
};
|
|
1208
|
+
}
|
|
1209
|
+
function Bs(e, t, s) {
|
|
1210
|
+
if (typeof t == "function") {
|
|
1211
|
+
const i = t;
|
|
1212
|
+
return {
|
|
1213
|
+
items: [(l) => ({
|
|
1214
|
+
type: "dateTimeCalendar",
|
|
1215
|
+
path: e,
|
|
1216
|
+
...i(l)
|
|
1217
|
+
})],
|
|
1218
|
+
type: "ITEMS",
|
|
1219
|
+
itemType: "DATE_TIME_CALENDAR",
|
|
1220
|
+
tags: s ?? []
|
|
1221
|
+
};
|
|
1222
|
+
}
|
|
1223
|
+
return {
|
|
1224
|
+
items: [{ type: "dateTimeCalendar", path: e, ...t }],
|
|
1225
|
+
type: "ITEMS",
|
|
1226
|
+
itemType: "DATE_TIME_CALENDAR",
|
|
1227
|
+
tags: s ?? []
|
|
1228
|
+
};
|
|
1229
|
+
}
|
|
1230
|
+
function Rs(e, t, s) {
|
|
1231
|
+
if (typeof t == "function") {
|
|
1232
|
+
const n = t;
|
|
1233
|
+
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: (o) => ({ type: "dateInput", ...n(o) }) }], tags: s ?? [] };
|
|
1234
|
+
}
|
|
1235
|
+
const a = { type: "dateInput", ...t };
|
|
1236
|
+
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1237
|
+
}
|
|
1238
|
+
function Ls(e, t, s) {
|
|
1239
|
+
if (typeof t == "function") {
|
|
1240
|
+
const n = t;
|
|
1241
|
+
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: (o) => ({
|
|
1242
|
+
type: "datePicker",
|
|
1243
|
+
...n(o)
|
|
1244
|
+
}) }], tags: s ?? [] };
|
|
1245
|
+
}
|
|
1246
|
+
const a = { type: "datePicker", ...t };
|
|
1247
|
+
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1248
|
+
}
|
|
1249
|
+
function vs(e, t, s) {
|
|
1250
|
+
if (typeof t == "function") {
|
|
1251
|
+
const n = t;
|
|
1252
|
+
return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: (o) => ({
|
|
1253
|
+
type: "dateTimePicker",
|
|
1254
|
+
...n(o)
|
|
1255
|
+
}) }], tags: s ?? [] };
|
|
1256
|
+
}
|
|
1257
|
+
const a = { type: "dateTimePicker", ...t };
|
|
1258
|
+
return { type: "ITEMS", itemType: "DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1259
|
+
}
|
|
1260
|
+
function fs(e, t, s) {
|
|
1261
|
+
if (typeof t == "function") {
|
|
1262
|
+
const n = t;
|
|
1263
|
+
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: (o) => ({
|
|
1264
|
+
type: "rangeCalendar",
|
|
1265
|
+
...n(o)
|
|
1266
|
+
}) }], tags: s ?? [] };
|
|
1267
|
+
}
|
|
1268
|
+
const a = { type: "rangeCalendar", ...t };
|
|
1269
|
+
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1270
|
+
}
|
|
1271
|
+
function Cs(e, t, s) {
|
|
1272
|
+
if (typeof t == "function") {
|
|
1273
|
+
const n = t;
|
|
1274
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: (o) => ({
|
|
1275
|
+
type: "rangeDateInput",
|
|
1276
|
+
...n(o)
|
|
1277
|
+
}) }], tags: s ?? [] };
|
|
1278
|
+
}
|
|
1279
|
+
const a = { type: "rangeDateInput", ...t };
|
|
1280
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1281
|
+
}
|
|
1282
|
+
function Ns(e, t, s) {
|
|
1283
|
+
if (typeof t == "function") {
|
|
1284
|
+
const n = t;
|
|
1285
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: (o) => ({
|
|
1286
|
+
type: "rangeDateTimeInput",
|
|
1287
|
+
...n(o)
|
|
1288
|
+
}) }], tags: s ?? [] };
|
|
1289
|
+
}
|
|
1290
|
+
const a = { type: "rangeDateTimeInput", ...t };
|
|
1291
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1292
|
+
}
|
|
1293
|
+
function Ws(e, t, s) {
|
|
1294
|
+
if (typeof t == "function") {
|
|
1295
|
+
const n = t;
|
|
1296
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: (o) => ({
|
|
1297
|
+
type: "rangeDateTimeCalendar",
|
|
1298
|
+
...n(o)
|
|
1299
|
+
}) }], tags: s ?? [] };
|
|
1300
|
+
}
|
|
1301
|
+
const a = { type: "rangeDateTimeCalendar", ...t };
|
|
1302
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1303
|
+
}
|
|
1304
|
+
function ws(e, t, s) {
|
|
1305
|
+
if (typeof t == "function") {
|
|
1306
|
+
const n = t;
|
|
1307
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: (o) => ({
|
|
1308
|
+
type: "rangeDateTimePicker",
|
|
1309
|
+
...n(o)
|
|
1310
|
+
}) }], tags: s ?? [] };
|
|
1311
|
+
}
|
|
1312
|
+
const a = { type: "rangeDateTimePicker", ...t };
|
|
1313
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1077
1314
|
}
|
|
1078
|
-
function
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
props: {
|
|
1089
|
-
...Pe(e),
|
|
1090
|
-
template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1315
|
+
function xs(e, t, s) {
|
|
1316
|
+
if (typeof t == "function") {
|
|
1317
|
+
const n = t;
|
|
1318
|
+
return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: (o) => ({
|
|
1319
|
+
type: "rangeTimeInput",
|
|
1320
|
+
...n(o)
|
|
1321
|
+
}) }], tags: s ?? [] };
|
|
1322
|
+
}
|
|
1323
|
+
const a = { type: "rangeTimeInput", ...t };
|
|
1324
|
+
return { type: "ITEMS", itemType: "RANGE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1093
1325
|
}
|
|
1094
|
-
function
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1326
|
+
function Gs(e, t, s) {
|
|
1327
|
+
if (typeof t == "function") {
|
|
1328
|
+
const n = t;
|
|
1329
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: (o) => ({
|
|
1330
|
+
type: "rangeDatePicker",
|
|
1331
|
+
...n(o)
|
|
1332
|
+
}) }], tags: s ?? [] };
|
|
1101
1333
|
}
|
|
1334
|
+
const a = { type: "rangeDatePicker", ...t };
|
|
1335
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1102
1336
|
}
|
|
1103
|
-
function
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
children: s,
|
|
1111
|
-
props: { direction: "column" }
|
|
1112
|
-
};
|
|
1113
|
-
if (e.kind === "static") {
|
|
1114
|
-
const l = t.mapStaticDef(e.def, "REPEATER");
|
|
1115
|
-
return {
|
|
1116
|
-
...l,
|
|
1117
|
-
props: { ...l.props, template: i }
|
|
1118
|
-
};
|
|
1337
|
+
function Ks(e, t, s) {
|
|
1338
|
+
if (typeof t == "function") {
|
|
1339
|
+
const n = t;
|
|
1340
|
+
return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: (o) => ({
|
|
1341
|
+
type: "rangeTimePicker",
|
|
1342
|
+
...n(o)
|
|
1343
|
+
}) }], tags: s ?? [] };
|
|
1119
1344
|
}
|
|
1120
|
-
const
|
|
1121
|
-
return
|
|
1122
|
-
const p = n(l), o = t.mapStaticDef(p, "REPEATER");
|
|
1123
|
-
return {
|
|
1124
|
-
...o,
|
|
1125
|
-
props: { ...o.props, template: i }
|
|
1126
|
-
};
|
|
1127
|
-
});
|
|
1345
|
+
const a = { type: "rangeTimePicker", ...t };
|
|
1346
|
+
return { type: "ITEMS", itemType: "RANGE_TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1128
1347
|
}
|
|
1129
|
-
function
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
};
|
|
1348
|
+
function Ys(e, t, s) {
|
|
1349
|
+
if (typeof t == "function") {
|
|
1350
|
+
const n = t;
|
|
1351
|
+
return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: (o) => ({ type: "timeInput", ...n(o) }) }], tags: s ?? [] };
|
|
1352
|
+
}
|
|
1353
|
+
const a = { type: "timeInput", ...t };
|
|
1354
|
+
return { type: "ITEMS", itemType: "TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1135
1355
|
}
|
|
1136
|
-
function
|
|
1137
|
-
|
|
1356
|
+
function $s(e, t, s) {
|
|
1357
|
+
if (typeof t == "function") {
|
|
1358
|
+
const n = t;
|
|
1359
|
+
return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: (o) => ({
|
|
1360
|
+
type: "timePicker",
|
|
1361
|
+
...n(o)
|
|
1362
|
+
}) }], tags: s ?? [] };
|
|
1363
|
+
}
|
|
1364
|
+
const a = { type: "timePicker", ...t };
|
|
1365
|
+
return { type: "ITEMS", itemType: "TIME_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1138
1366
|
}
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
}
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
handler: ve,
|
|
1150
|
-
gsl: ce,
|
|
1151
|
-
gslByUid: fe
|
|
1152
|
-
};
|
|
1153
|
-
function Ne(e) {
|
|
1154
|
-
const {
|
|
1155
|
-
uid: t,
|
|
1156
|
-
label: s,
|
|
1157
|
-
actionType: a,
|
|
1158
|
-
disabled: i,
|
|
1159
|
-
on: n,
|
|
1160
|
-
onClick: l,
|
|
1161
|
-
data: p,
|
|
1162
|
-
type: o,
|
|
1163
|
-
tags: T,
|
|
1164
|
-
size: g,
|
|
1165
|
-
include: ye,
|
|
1166
|
-
exclude: me,
|
|
1167
|
-
states: ne,
|
|
1168
|
-
...b
|
|
1169
|
-
} = e;
|
|
1170
|
-
return {
|
|
1171
|
-
uid: t ?? "",
|
|
1172
|
-
kind: "action",
|
|
1173
|
-
type: "button",
|
|
1174
|
-
disabled: i,
|
|
1175
|
-
actionType: a,
|
|
1176
|
-
label: s,
|
|
1177
|
-
...n != null ? { on: n } : {},
|
|
1178
|
-
props: b
|
|
1179
|
-
};
|
|
1367
|
+
function Fs(e, t, s) {
|
|
1368
|
+
if (typeof t == "function") {
|
|
1369
|
+
const n = t;
|
|
1370
|
+
return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: (o) => ({
|
|
1371
|
+
type: "dateTimeInput",
|
|
1372
|
+
...n(o)
|
|
1373
|
+
}) }], tags: s ?? [] };
|
|
1374
|
+
}
|
|
1375
|
+
const a = { type: "dateTimeInput", ...t };
|
|
1376
|
+
return { type: "ITEMS", itemType: "DATE_TIME_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1180
1377
|
}
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
}
|
|
1192
|
-
function
|
|
1193
|
-
const {
|
|
1194
|
-
uid: t,
|
|
1195
|
-
widgetName: s,
|
|
1196
|
-
tags: a,
|
|
1197
|
-
size: i,
|
|
1198
|
-
onChange: n,
|
|
1199
|
-
include: l,
|
|
1200
|
-
exclude: p,
|
|
1201
|
-
...o
|
|
1202
|
-
} = e, { on: T, ...g } = o;
|
|
1378
|
+
function zs(e, t, s, a) {
|
|
1379
|
+
if (typeof s == "function") {
|
|
1380
|
+
const l = s;
|
|
1381
|
+
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (T) => ({
|
|
1382
|
+
customType: e,
|
|
1383
|
+
...l(T)
|
|
1384
|
+
}) }], tags: a ?? [] };
|
|
1385
|
+
}
|
|
1386
|
+
const i = { customType: e, ...s };
|
|
1387
|
+
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: i }], tags: a ?? [] };
|
|
1388
|
+
}
|
|
1389
|
+
function Os(e, t) {
|
|
1203
1390
|
return {
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
direction: g.direction ?? "column",
|
|
1209
|
-
...g
|
|
1210
|
-
},
|
|
1211
|
-
children: []
|
|
1391
|
+
items: [e],
|
|
1392
|
+
type: "ITEMS",
|
|
1393
|
+
itemType: y.ACTIONS,
|
|
1394
|
+
tags: t ?? []
|
|
1212
1395
|
};
|
|
1213
1396
|
}
|
|
1214
|
-
function
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
return {
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
});
|
|
1397
|
+
function Xs(e, t, s) {
|
|
1398
|
+
if (typeof t == "function") {
|
|
1399
|
+
const n = t;
|
|
1400
|
+
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
|
|
1401
|
+
(r) => ({ customType: e, ...n(r) })
|
|
1402
|
+
], tags: s ?? [] };
|
|
1403
|
+
}
|
|
1404
|
+
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType: e, ...t }], tags: s ?? [] };
|
|
1223
1405
|
}
|
|
1224
|
-
|
|
1225
|
-
|
|
1406
|
+
const Te = (e, t) => ({
|
|
1407
|
+
type: "ITEMS",
|
|
1408
|
+
itemType: y.DISPLAYS,
|
|
1409
|
+
items: [{ render: e }],
|
|
1410
|
+
tags: t ?? []
|
|
1411
|
+
});
|
|
1412
|
+
function Hs(e, t) {
|
|
1413
|
+
return { type: "ITEMS", itemType: "ALERTS", items: [e], tags: t ?? [] };
|
|
1226
1414
|
}
|
|
1227
|
-
|
|
1228
|
-
itemType: "
|
|
1229
|
-
kind: "layout",
|
|
1230
|
-
entryShape: "compound",
|
|
1231
|
-
mapToWidget: Ce,
|
|
1232
|
-
buildCustomWidget: We,
|
|
1233
|
-
getChildren: we
|
|
1234
|
-
}), Os = H.gsl, Xs = H.gslByUid;
|
|
1235
|
-
function xe(e) {
|
|
1236
|
-
return {
|
|
1237
|
-
uid: "",
|
|
1238
|
-
kind: "display",
|
|
1239
|
-
type: "renderer",
|
|
1240
|
-
props: { render: e.render }
|
|
1241
|
-
};
|
|
1415
|
+
function Vs(e, t) {
|
|
1416
|
+
return { type: "ITEMS", itemType: "MARKDOWN_TEXTS", items: [e], tags: t ?? [] };
|
|
1242
1417
|
}
|
|
1243
|
-
function
|
|
1244
|
-
if (
|
|
1245
|
-
const
|
|
1246
|
-
return
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
type: "renderer",
|
|
1250
|
-
...a.include != null ? { include: a.include } : {},
|
|
1251
|
-
...a.exclude != null ? { exclude: a.exclude } : {},
|
|
1252
|
-
props: { render: a.render(le(i)) }
|
|
1253
|
-
}));
|
|
1418
|
+
function js(e, t, s) {
|
|
1419
|
+
if (typeof t == "function") {
|
|
1420
|
+
const r = t;
|
|
1421
|
+
return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
|
|
1422
|
+
(T) => ({ customType: e, ...r(T) })
|
|
1423
|
+
], tags: s ?? [] };
|
|
1254
1424
|
}
|
|
1255
|
-
const
|
|
1256
|
-
return
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
type: "renderer",
|
|
1262
|
-
...i.include != null ? { include: i.include } : {},
|
|
1263
|
-
...i.exclude != null ? { exclude: i.exclude } : {},
|
|
1264
|
-
props: { render: i.render(le(a)) }
|
|
1265
|
-
};
|
|
1266
|
-
});
|
|
1425
|
+
const { uid: a, ...i } = t ?? {};
|
|
1426
|
+
return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [{
|
|
1427
|
+
customType: e,
|
|
1428
|
+
...a != null ? { uid: a } : {},
|
|
1429
|
+
props: Object.keys(i).length > 0 ? i : void 0
|
|
1430
|
+
}], tags: s ?? [] };
|
|
1267
1431
|
}
|
|
1268
|
-
const
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
itemType:
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
}
|
|
1286
|
-
})
|
|
1287
|
-
}), js = j.gsl, qs = j.gslByUid, q = u({
|
|
1288
|
-
itemType: "MARKDOWN_TEXTS",
|
|
1289
|
-
kind: "display",
|
|
1290
|
-
entryShape: "bare",
|
|
1291
|
-
mapToWidget: (e) => ({
|
|
1292
|
-
uid: e.uid ?? "",
|
|
1293
|
-
kind: "display",
|
|
1294
|
-
type: "markdownText",
|
|
1295
|
-
props: {
|
|
1296
|
-
md: e.md
|
|
1432
|
+
const le = (e, t, s) => ({
|
|
1433
|
+
type: "ITEMS",
|
|
1434
|
+
itemType: y.LAYOUTS,
|
|
1435
|
+
items: [{ def: { widgetName: "flex", ...t ?? {} }, children: e }],
|
|
1436
|
+
tags: s ?? []
|
|
1437
|
+
}), qs = (e, t, s) => le(e, { direction: "row", ...t ?? {} }, s), Js = (e, t, s) => le(e, { direction: "column", ...t ?? {} }, s), oe = (e, t, s) => ({
|
|
1438
|
+
type: "ITEMS",
|
|
1439
|
+
itemType: y.LAYOUTS,
|
|
1440
|
+
items: [
|
|
1441
|
+
{
|
|
1442
|
+
def: {
|
|
1443
|
+
widgetName: "grid",
|
|
1444
|
+
direction: "row",
|
|
1445
|
+
autoFit: !0,
|
|
1446
|
+
...t ?? {}
|
|
1447
|
+
},
|
|
1448
|
+
children: e
|
|
1297
1449
|
}
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1450
|
+
],
|
|
1451
|
+
tags: s ?? []
|
|
1452
|
+
}), Qs = (e, t, s) => oe(e, { direction: "row", ...t ?? {} }, s), Zs = (e, t, s) => oe(e, { direction: "column", ...t ?? {} }, s);
|
|
1453
|
+
function de(e) {
|
|
1454
|
+
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
1455
|
+
}
|
|
1456
|
+
function ea(e, t, s) {
|
|
1457
|
+
const a = e.map((l) => ({
|
|
1458
|
+
label: l.label,
|
|
1459
|
+
uid: l.uid ?? de(l.label)
|
|
1460
|
+
})), i = e.map((l) => ({
|
|
1461
|
+
type: "ITEMS",
|
|
1462
|
+
itemType: y.LAYOUTS,
|
|
1463
|
+
items: [
|
|
1464
|
+
{
|
|
1465
|
+
def: { uid: l.uid ?? de(l.label), direction: "column", widgetName: "flex" },
|
|
1466
|
+
children: l.children
|
|
1467
|
+
}
|
|
1468
|
+
],
|
|
1469
|
+
tags: []
|
|
1470
|
+
}));
|
|
1301
1471
|
return {
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
},
|
|
1310
|
-
children: []
|
|
1472
|
+
type: "ITEMS",
|
|
1473
|
+
itemType: "TABS",
|
|
1474
|
+
items: [{ def: {
|
|
1475
|
+
tabs: a,
|
|
1476
|
+
...t
|
|
1477
|
+
}, children: i }],
|
|
1478
|
+
tags: s ?? []
|
|
1311
1479
|
};
|
|
1312
1480
|
}
|
|
1313
|
-
function
|
|
1314
|
-
|
|
1315
|
-
if (e.kind === "static")
|
|
1316
|
-
return { ...t.mapStaticDef(e.def, "TABS"), children: s };
|
|
1317
|
-
const a = e.fn;
|
|
1318
|
-
return ((i) => {
|
|
1319
|
-
const n = a(i);
|
|
1320
|
-
return { ...t.mapStaticDef(n, "TABS"), children: s };
|
|
1321
|
-
});
|
|
1322
|
-
}
|
|
1323
|
-
function $e(e) {
|
|
1324
|
-
return e.children;
|
|
1481
|
+
function ce(e) {
|
|
1482
|
+
return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
1325
1483
|
}
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1484
|
+
function ta(e, t, s) {
|
|
1485
|
+
const a = e.map((l) => ({
|
|
1486
|
+
label: l.label,
|
|
1487
|
+
uid: l.uid ?? ce(l.label)
|
|
1488
|
+
})), i = e.map((l) => ({
|
|
1489
|
+
type: "ITEMS",
|
|
1490
|
+
itemType: y.LAYOUTS,
|
|
1491
|
+
items: [
|
|
1492
|
+
{
|
|
1493
|
+
def: { uid: l.uid ?? ce(l.label), direction: "column", widgetName: "flex" },
|
|
1494
|
+
children: l.children
|
|
1495
|
+
}
|
|
1496
|
+
],
|
|
1497
|
+
tags: []
|
|
1498
|
+
}));
|
|
1335
1499
|
return {
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
...e.defaultOpen != null ? { defaultOpen: e.defaultOpen } : {}
|
|
1344
|
-
},
|
|
1345
|
-
children: []
|
|
1500
|
+
type: "ITEMS",
|
|
1501
|
+
itemType: "ACCORDION",
|
|
1502
|
+
items: [{ def: {
|
|
1503
|
+
sections: a,
|
|
1504
|
+
...t
|
|
1505
|
+
}, children: i }],
|
|
1506
|
+
tags: s ?? []
|
|
1346
1507
|
};
|
|
1347
1508
|
}
|
|
1348
|
-
function
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
return {
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
}
|
|
1357
|
-
}
|
|
1358
|
-
function Oe(e) {
|
|
1359
|
-
return e.children;
|
|
1509
|
+
function sa(e, t, s, a) {
|
|
1510
|
+
if (typeof s == "function") {
|
|
1511
|
+
const l = s;
|
|
1512
|
+
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (T) => ({
|
|
1513
|
+
customType: e,
|
|
1514
|
+
...l(T)
|
|
1515
|
+
}), children: t }], tags: a ?? [] };
|
|
1516
|
+
}
|
|
1517
|
+
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: e, ...s }, children: t }], tags: a ?? [] };
|
|
1360
1518
|
}
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
kind: "layout",
|
|
1364
|
-
entryShape: "compound",
|
|
1365
|
-
mapToWidget: ze,
|
|
1366
|
-
buildCustomWidget: Fe,
|
|
1367
|
-
getChildren: Oe
|
|
1368
|
-
}), ta = Q.gsl, sa = Q.gslByUid, Z = u({
|
|
1369
|
-
itemType: "CUSTOM_INPUT",
|
|
1370
|
-
kind: "input",
|
|
1371
|
-
entryShape: "keyed",
|
|
1372
|
-
sensibleDefaults: {
|
|
1373
|
-
base: {
|
|
1374
|
-
suppressAutomaticLabels: !1
|
|
1375
|
-
},
|
|
1376
|
-
fields: ["suppressAutomaticLabels"],
|
|
1377
|
-
apply: (e, t) => d(e, t)
|
|
1378
|
-
},
|
|
1379
|
-
mapToWidget: (e) => ({
|
|
1380
|
-
uid: e.uid ?? "",
|
|
1381
|
-
kind: "input",
|
|
1382
|
-
type: e.customType,
|
|
1383
|
-
path: e.path ?? "",
|
|
1384
|
-
...e.label != null ? { label: e.label } : {},
|
|
1385
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1386
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1387
|
-
...e.defaultValue != null ? { defaultValue: e.defaultValue } : {},
|
|
1388
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
1389
|
-
props: e.props ?? {}
|
|
1390
|
-
})
|
|
1391
|
-
}), aa = Z.gsl, ia = Z.gslByUid, ee = u({
|
|
1392
|
-
itemType: "CUSTOM_ACTION",
|
|
1393
|
-
kind: "action",
|
|
1394
|
-
entryShape: "bare",
|
|
1395
|
-
mapToWidget: (e) => {
|
|
1396
|
-
const {
|
|
1397
|
-
uid: t,
|
|
1398
|
-
label: s,
|
|
1399
|
-
disabled: a,
|
|
1400
|
-
on: i,
|
|
1401
|
-
onClick: n,
|
|
1402
|
-
data: l,
|
|
1403
|
-
customType: p,
|
|
1404
|
-
tags: o,
|
|
1405
|
-
size: T,
|
|
1406
|
-
include: g,
|
|
1407
|
-
exclude: ye,
|
|
1408
|
-
states: me,
|
|
1409
|
-
props: ne,
|
|
1410
|
-
...b
|
|
1411
|
-
} = e;
|
|
1412
|
-
return {
|
|
1413
|
-
uid: t ?? "",
|
|
1414
|
-
kind: "action",
|
|
1415
|
-
type: e.customType,
|
|
1416
|
-
label: s,
|
|
1417
|
-
disabled: a,
|
|
1418
|
-
...i != null ? { on: i } : {},
|
|
1419
|
-
props: { ...ne, ...b }
|
|
1420
|
-
};
|
|
1421
|
-
},
|
|
1422
|
-
afterMerge: (e, t) => pe.extractOnClickFromMergeResult(
|
|
1423
|
-
e,
|
|
1424
|
-
t.eventRegistry,
|
|
1425
|
-
t.eventIdGenerator
|
|
1426
|
-
)
|
|
1427
|
-
}), na = ee.gsl, la = ee.gslByUid, te = u({
|
|
1428
|
-
itemType: "CUSTOM_DISPLAY",
|
|
1429
|
-
kind: "display",
|
|
1430
|
-
entryShape: "bare",
|
|
1431
|
-
mapToWidget: (e) => ({
|
|
1432
|
-
uid: e.uid ?? "",
|
|
1433
|
-
kind: "display",
|
|
1434
|
-
type: e.customType,
|
|
1435
|
-
props: e.props ?? {}
|
|
1436
|
-
})
|
|
1437
|
-
}), oa = te.gsl, ua = te.gslByUid;
|
|
1438
|
-
function Xe(e) {
|
|
1519
|
+
function aa(e, t, s) {
|
|
1520
|
+
const { template: a, ...i } = t;
|
|
1439
1521
|
return {
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
children: []
|
|
1522
|
+
type: "ITEMS",
|
|
1523
|
+
itemType: "REPEATER",
|
|
1524
|
+
items: [{ key: e, def: i, children: a }],
|
|
1525
|
+
tags: s ?? []
|
|
1445
1526
|
};
|
|
1446
1527
|
}
|
|
1447
|
-
function
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
return {
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
return { ...t.mapStaticDef(n, "CUSTOM_LAYOUT"), children: s };
|
|
1455
|
-
});
|
|
1456
|
-
}
|
|
1457
|
-
function Ve(e) {
|
|
1458
|
-
return e.children;
|
|
1459
|
-
}
|
|
1460
|
-
const se = u({
|
|
1461
|
-
itemType: "CUSTOM_LAYOUT",
|
|
1462
|
-
kind: "layout",
|
|
1463
|
-
entryShape: "compound",
|
|
1464
|
-
mapToWidget: Xe,
|
|
1465
|
-
buildCustomWidget: He,
|
|
1466
|
-
getChildren: Ve
|
|
1467
|
-
}), pa = se.gsl, ra = se.gslByUid, ae = u({
|
|
1468
|
-
itemType: "TAGS",
|
|
1469
|
-
kind: "input",
|
|
1470
|
-
entryShape: "keyed",
|
|
1471
|
-
sensibleDefaults: {
|
|
1472
|
-
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
1473
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
1474
|
-
apply: (e, t) => m(d(e, t), t)
|
|
1475
|
-
},
|
|
1476
|
-
mapToWidget: (e) => ({
|
|
1477
|
-
uid: e.uid ?? "",
|
|
1478
|
-
kind: "input",
|
|
1479
|
-
type: "tags",
|
|
1480
|
-
path: e.path ?? "",
|
|
1481
|
-
...e.label != null ? { label: e.label } : {},
|
|
1482
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1483
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1484
|
-
...e.validator != null ? { validator: c(e.validator, "array") } : {},
|
|
1485
|
-
props: r(e)
|
|
1486
|
-
})
|
|
1487
|
-
}), da = ae.gsl, ca = ae.gslByUid, je = [
|
|
1488
|
-
I,
|
|
1489
|
-
X,
|
|
1490
|
-
H,
|
|
1491
|
-
V,
|
|
1492
|
-
L,
|
|
1493
|
-
v,
|
|
1494
|
-
N,
|
|
1495
|
-
D,
|
|
1496
|
-
P,
|
|
1497
|
-
k,
|
|
1498
|
-
f,
|
|
1499
|
-
Y,
|
|
1500
|
-
$,
|
|
1501
|
-
z,
|
|
1502
|
-
M,
|
|
1503
|
-
C,
|
|
1504
|
-
A,
|
|
1505
|
-
h,
|
|
1506
|
-
J,
|
|
1507
|
-
R,
|
|
1508
|
-
ae,
|
|
1509
|
-
j,
|
|
1510
|
-
q,
|
|
1511
|
-
B,
|
|
1512
|
-
E,
|
|
1513
|
-
Q,
|
|
1514
|
-
Be,
|
|
1515
|
-
U,
|
|
1516
|
-
W,
|
|
1517
|
-
K,
|
|
1518
|
-
w,
|
|
1519
|
-
x,
|
|
1520
|
-
G,
|
|
1521
|
-
F,
|
|
1522
|
-
O,
|
|
1523
|
-
te,
|
|
1524
|
-
Z,
|
|
1525
|
-
ee,
|
|
1526
|
-
se
|
|
1527
|
-
], ie = ge();
|
|
1528
|
-
for (const e of je)
|
|
1529
|
-
be(ie, e);
|
|
1530
|
-
function ya(e) {
|
|
1531
|
-
return _e(
|
|
1532
|
-
ie,
|
|
1533
|
-
e
|
|
1534
|
-
);
|
|
1528
|
+
function ia(e, t, s) {
|
|
1529
|
+
if (typeof t == "function") {
|
|
1530
|
+
const n = t;
|
|
1531
|
+
return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: (o) => ({ type: "tags", ...n(o) }) }], tags: s ?? [] };
|
|
1532
|
+
}
|
|
1533
|
+
const a = { type: "tags", ...t };
|
|
1534
|
+
return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: a }], tags: s ?? [] };
|
|
1535
1535
|
}
|
|
1536
|
-
const
|
|
1537
|
-
|
|
1536
|
+
const na = (e) => b(e, (t) => t.type === "text"), la = (e) => b(e, (t) => t.type === "number"), oa = (e) => b(e, (t) => t.type === "boolean"), ua = Ae({
|
|
1537
|
+
// Inputs
|
|
1538
|
+
inputs: b,
|
|
1539
|
+
inputByUid: Me,
|
|
1540
|
+
textInputs: na,
|
|
1541
|
+
numberInputs: la,
|
|
1542
|
+
booleanInputs: oa,
|
|
1543
|
+
selects: dt,
|
|
1544
|
+
selectByUid: ct,
|
|
1545
|
+
dropdowns: Mt,
|
|
1546
|
+
dropdownByUid: Bt,
|
|
1547
|
+
radiogroups: yt,
|
|
1548
|
+
radiogroupByUid: mt,
|
|
1549
|
+
checkboxes: Je,
|
|
1550
|
+
checkboxByUid: Qe,
|
|
1551
|
+
textareas: He,
|
|
1552
|
+
textareaByUid: Ve,
|
|
1553
|
+
passwords: je,
|
|
1554
|
+
passwordByUid: qe,
|
|
1555
|
+
currencies: ot,
|
|
1556
|
+
currencyByUid: ut,
|
|
1557
|
+
markdowns: $t,
|
|
1558
|
+
markdownByUid: Ft,
|
|
1559
|
+
lists: kt,
|
|
1560
|
+
listByUid: St,
|
|
1561
|
+
calendars: Ye,
|
|
1562
|
+
calendarByUid: $e,
|
|
1563
|
+
dateTimeCalendars: Fe,
|
|
1564
|
+
dateTimeCalendarByUid: ze,
|
|
1565
|
+
dateInputs: Ze,
|
|
1566
|
+
dateInputByUid: et,
|
|
1567
|
+
timeInputs: tt,
|
|
1568
|
+
timeInputByUid: st,
|
|
1569
|
+
timePickers: at,
|
|
1570
|
+
timePickerByUid: it,
|
|
1571
|
+
dateTimeInputs: nt,
|
|
1572
|
+
dateTimeInputByUid: lt,
|
|
1573
|
+
datePickers: Dt,
|
|
1574
|
+
datePickerByUid: Pt,
|
|
1575
|
+
dateTimePickers: Oe,
|
|
1576
|
+
dateTimePickerByUid: Xe,
|
|
1577
|
+
rangeCalendars: rt,
|
|
1578
|
+
rangeCalendarByUid: pt,
|
|
1579
|
+
rangeDateInputs: zt,
|
|
1580
|
+
rangeDateInputByUid: Ot,
|
|
1581
|
+
rangeTimeInputs: Xt,
|
|
1582
|
+
rangeTimeInputByUid: Ht,
|
|
1583
|
+
rangeDateTimeInputs: Vt,
|
|
1584
|
+
rangeDateTimeInputByUid: jt,
|
|
1585
|
+
rangeDateTimeCalendars: qt,
|
|
1586
|
+
rangeDateTimeCalendarByUid: Jt,
|
|
1587
|
+
rangeDateTimePickers: Qt,
|
|
1588
|
+
rangeDateTimePickerByUid: Zt,
|
|
1589
|
+
rangeDatePickers: es,
|
|
1590
|
+
rangeDatePickerByUid: ts,
|
|
1591
|
+
rangeTimePickers: ss,
|
|
1592
|
+
rangeTimePickerByUid: as,
|
|
1593
|
+
repeaters: X,
|
|
1594
|
+
repeaterByUid: me,
|
|
1595
|
+
// Actions, displays, layouts
|
|
1596
|
+
actions: Re,
|
|
1597
|
+
actionByUid: Le,
|
|
1598
|
+
layouts: Ne,
|
|
1599
|
+
layoutByUid: We,
|
|
1600
|
+
displays: Ge,
|
|
1601
|
+
displayByUid: Ke,
|
|
1602
|
+
alerts: At,
|
|
1603
|
+
alertByUid: Et,
|
|
1604
|
+
markdownTexts: ht,
|
|
1605
|
+
markdownTextByUid: Ut,
|
|
1606
|
+
tabs: It,
|
|
1607
|
+
tabsByUid: _t,
|
|
1608
|
+
accordions: ft,
|
|
1609
|
+
accordionByUid: Ct,
|
|
1610
|
+
// Custom kinds
|
|
1611
|
+
customInputs: ls,
|
|
1612
|
+
customInputByUid: os,
|
|
1613
|
+
customActions: us,
|
|
1614
|
+
customActionByUid: rs,
|
|
1615
|
+
customDisplays: is,
|
|
1616
|
+
customDisplayByUid: ns,
|
|
1617
|
+
customLayouts: ys,
|
|
1618
|
+
customLayoutByUid: ms
|
|
1619
|
+
}), ra = {
|
|
1620
|
+
bareItemToWidget: (e) => Te(e),
|
|
1538
1621
|
rootEntry: (e) => {
|
|
1539
1622
|
const t = {
|
|
1540
1623
|
def: { uid: "#root", direction: "column", widgetName: "flex" },
|
|
@@ -1542,136 +1625,198 @@ const qe = {
|
|
|
1542
1625
|
};
|
|
1543
1626
|
return { type: "ITEMS", itemType: y.LAYOUTS, items: [t], tags: [] };
|
|
1544
1627
|
}
|
|
1545
|
-
},
|
|
1628
|
+
}, pa = {
|
|
1629
|
+
inputs: {
|
|
1630
|
+
textInput: gs,
|
|
1631
|
+
numberInput: bs,
|
|
1632
|
+
booleanInput: Is,
|
|
1633
|
+
select: _s,
|
|
1634
|
+
dropdown: ks,
|
|
1635
|
+
radiogroup: Ss,
|
|
1636
|
+
checkbox: As,
|
|
1637
|
+
textarea: Es,
|
|
1638
|
+
password: hs,
|
|
1639
|
+
currency: Us,
|
|
1640
|
+
markdown: Ds,
|
|
1641
|
+
list: Ps,
|
|
1642
|
+
calendar: Ms,
|
|
1643
|
+
dateTimeCalendar: Bs,
|
|
1644
|
+
dateInput: Rs,
|
|
1645
|
+
datePicker: Ls,
|
|
1646
|
+
dateTimePicker: vs,
|
|
1647
|
+
timeInput: Ys,
|
|
1648
|
+
timePicker: $s,
|
|
1649
|
+
dateTimeInput: Fs,
|
|
1650
|
+
rangeCalendar: fs,
|
|
1651
|
+
rangeDateInput: Cs,
|
|
1652
|
+
rangeDateTimeInput: Ns,
|
|
1653
|
+
rangeDateTimeCalendar: Ws,
|
|
1654
|
+
rangeDateTimePicker: ws,
|
|
1655
|
+
rangeTimeInput: xs,
|
|
1656
|
+
rangeDatePicker: Gs,
|
|
1657
|
+
rangeTimePicker: Ks,
|
|
1658
|
+
repeater: aa,
|
|
1659
|
+
tags: ia,
|
|
1660
|
+
custom: zs
|
|
1661
|
+
},
|
|
1662
|
+
actions: {
|
|
1663
|
+
button: Os,
|
|
1664
|
+
custom: Xs
|
|
1665
|
+
},
|
|
1666
|
+
displays: {
|
|
1667
|
+
display: Te,
|
|
1668
|
+
alert: Hs,
|
|
1669
|
+
markdownText: Vs,
|
|
1670
|
+
custom: js
|
|
1671
|
+
},
|
|
1672
|
+
layouts: {
|
|
1673
|
+
flex: le,
|
|
1674
|
+
horizontalFlex: qs,
|
|
1675
|
+
verticalFlex: Js,
|
|
1676
|
+
grid: oe,
|
|
1677
|
+
horizontalGrid: Qs,
|
|
1678
|
+
verticalGrid: Zs,
|
|
1679
|
+
tabs: ea,
|
|
1680
|
+
accordion: ta,
|
|
1681
|
+
custom: sa
|
|
1682
|
+
}
|
|
1683
|
+
}, ue = Ee({
|
|
1684
|
+
name: "gui",
|
|
1685
|
+
registry: ne,
|
|
1686
|
+
facade: pa,
|
|
1687
|
+
selectors: ua,
|
|
1688
|
+
adapter: ra
|
|
1689
|
+
}), ga = ue.namespace, ba = ue.formDefs, Ia = ue.resolveFormInput;
|
|
1546
1690
|
export {
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
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
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
ns as
|
|
1668
|
-
|
|
1669
|
-
os as
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1691
|
+
Ot as $,
|
|
1692
|
+
Fe as A,
|
|
1693
|
+
lt as B,
|
|
1694
|
+
nt as C,
|
|
1695
|
+
Xe as D,
|
|
1696
|
+
Oe as E,
|
|
1697
|
+
Ke as F,
|
|
1698
|
+
Ge as G,
|
|
1699
|
+
Bt as H,
|
|
1700
|
+
Mt as I,
|
|
1701
|
+
Me as J,
|
|
1702
|
+
b as K,
|
|
1703
|
+
We as L,
|
|
1704
|
+
Ne as M,
|
|
1705
|
+
St as N,
|
|
1706
|
+
kt as O,
|
|
1707
|
+
Ft as P,
|
|
1708
|
+
Ut as Q,
|
|
1709
|
+
ht as R,
|
|
1710
|
+
$t as S,
|
|
1711
|
+
la as T,
|
|
1712
|
+
qe as U,
|
|
1713
|
+
je as V,
|
|
1714
|
+
mt as W,
|
|
1715
|
+
yt as X,
|
|
1716
|
+
pt as Y,
|
|
1717
|
+
rt as Z,
|
|
1718
|
+
Ct as _,
|
|
1719
|
+
ft as a,
|
|
1720
|
+
Ks as a$,
|
|
1721
|
+
zt as a0,
|
|
1722
|
+
ts as a1,
|
|
1723
|
+
es as a2,
|
|
1724
|
+
Jt as a3,
|
|
1725
|
+
qt as a4,
|
|
1726
|
+
jt as a5,
|
|
1727
|
+
Vt as a6,
|
|
1728
|
+
Zt as a7,
|
|
1729
|
+
Qt as a8,
|
|
1730
|
+
Ht as a9,
|
|
1731
|
+
js as aA,
|
|
1732
|
+
zs as aB,
|
|
1733
|
+
sa as aC,
|
|
1734
|
+
Rs as aD,
|
|
1735
|
+
Ls as aE,
|
|
1736
|
+
Bs as aF,
|
|
1737
|
+
Fs as aG,
|
|
1738
|
+
vs as aH,
|
|
1739
|
+
Te as aI,
|
|
1740
|
+
ks as aJ,
|
|
1741
|
+
le as aK,
|
|
1742
|
+
oe as aL,
|
|
1743
|
+
qs as aM,
|
|
1744
|
+
Qs as aN,
|
|
1745
|
+
Ps as aO,
|
|
1746
|
+
Ds as aP,
|
|
1747
|
+
Vs as aQ,
|
|
1748
|
+
bs as aR,
|
|
1749
|
+
hs as aS,
|
|
1750
|
+
Ss as aT,
|
|
1751
|
+
fs as aU,
|
|
1752
|
+
Cs as aV,
|
|
1753
|
+
Gs as aW,
|
|
1754
|
+
Ws as aX,
|
|
1755
|
+
Ns as aY,
|
|
1756
|
+
ws as aZ,
|
|
1757
|
+
xs as a_,
|
|
1758
|
+
Xt as aa,
|
|
1759
|
+
as as ab,
|
|
1760
|
+
ss as ac,
|
|
1761
|
+
me as ad,
|
|
1762
|
+
X as ae,
|
|
1763
|
+
ct as af,
|
|
1764
|
+
dt as ag,
|
|
1765
|
+
It as ah,
|
|
1766
|
+
_t as ai,
|
|
1767
|
+
ya as aj,
|
|
1768
|
+
ma as ak,
|
|
1769
|
+
na as al,
|
|
1770
|
+
Ve as am,
|
|
1771
|
+
He as an,
|
|
1772
|
+
st as ao,
|
|
1773
|
+
tt as ap,
|
|
1774
|
+
it as aq,
|
|
1775
|
+
at as ar,
|
|
1776
|
+
ta as as,
|
|
1777
|
+
Hs as at,
|
|
1778
|
+
Is as au,
|
|
1779
|
+
Os as av,
|
|
1780
|
+
Ms as aw,
|
|
1781
|
+
As as ax,
|
|
1782
|
+
Us as ay,
|
|
1783
|
+
Xs as az,
|
|
1784
|
+
Le as b,
|
|
1785
|
+
aa as b0,
|
|
1786
|
+
_s as b1,
|
|
1787
|
+
ea as b2,
|
|
1788
|
+
ia as b3,
|
|
1789
|
+
gs as b4,
|
|
1790
|
+
Es as b5,
|
|
1791
|
+
Ys as b6,
|
|
1792
|
+
$s as b7,
|
|
1793
|
+
Js as b8,
|
|
1794
|
+
Zs as b9,
|
|
1795
|
+
Ta as ba,
|
|
1796
|
+
ba as bb,
|
|
1797
|
+
Ia as bc,
|
|
1798
|
+
Re as c,
|
|
1799
|
+
Et as d,
|
|
1800
|
+
At as e,
|
|
1801
|
+
oa as f,
|
|
1802
|
+
ga as g,
|
|
1803
|
+
$e as h,
|
|
1804
|
+
Ye as i,
|
|
1805
|
+
Qe as j,
|
|
1806
|
+
Je as k,
|
|
1807
|
+
ot as l,
|
|
1808
|
+
ut as m,
|
|
1809
|
+
rs as n,
|
|
1810
|
+
us as o,
|
|
1811
|
+
ns as p,
|
|
1812
|
+
is as q,
|
|
1813
|
+
os as r,
|
|
1814
|
+
ls as s,
|
|
1815
|
+
ms as t,
|
|
1816
|
+
ys as u,
|
|
1817
|
+
et as v,
|
|
1818
|
+
Ze as w,
|
|
1819
|
+
Pt as x,
|
|
1820
|
+
Dt as y,
|
|
1821
|
+
ze as z
|
|
1677
1822
|
};
|