@golemui/gui-shared 0.12.1 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -1
- package/index.js +492 -2021
- package/index.umd.cjs +1 -1
- package/internals.d.ts +2 -0
- package/internals.js +5 -0
- package/internals.umd.cjs +1 -0
- package/lib/dx/formDef.domain.d.ts +4 -5
- package/lib/dx/resolveFormInput.d.ts +7 -5
- package/lib/dx/shortcuts/inputs/inputs.domain.d.ts +3 -4
- package/lib/golem-form.d.ts +35 -35
- package/lib/utils/repeater.d.ts +2 -0
- package/lib/widget.factory.d.ts +25 -25
- package/package.json +11 -3
package/index.js
CHANGED
|
@@ -1,297 +1,254 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
7
|
-
function se(e, t, n) {
|
|
1
|
+
import { G as c, _ as p, a as I, b as _, c as E, d as h, e as S, f as U, h as k, i as A, j as M, k as B, l as D, m as P, n as w, o as R, p as x, q as N, s as b, t as L, u as C, v as G, w as W, x as F, y as Y, z as $, A as K, B as j, C as z, D as H, E as X, F as v, H as V, I as q, J as Q, K as Z, L as J, M as O, N as tt, O as et, P as st, Q as nt, R as it, S as rt, T as ot, U as at, V as ut, W as ct, X as yt, Y as dt, Z as pt, $ as mt, a0 as lt, a1 as ft, a2 as gt, a3 as Tt, a4 as It, a5 as _t } from "./repeater-Cy3ziFdR.js";
|
|
2
|
+
import { aa as _e, a8 as Ee, a9 as he, a6 as Se, g as Ue, a7 as ke, ab as Ae, ac as Me, r as Be } from "./repeater-Cy3ziFdR.js";
|
|
3
|
+
import "@golemui/core";
|
|
4
|
+
import "@golemui/gui-validators";
|
|
5
|
+
function Et(s, t, e) {
|
|
8
6
|
if (typeof t == "function") {
|
|
9
|
-
const
|
|
7
|
+
const o = t;
|
|
10
8
|
return {
|
|
11
|
-
items: [{ key:
|
|
9
|
+
items: [{ key: s, def: (i) => ({ type: "text", ...o(i) }) }],
|
|
12
10
|
type: "ITEMS",
|
|
13
|
-
itemType:
|
|
14
|
-
tags:
|
|
11
|
+
itemType: c.INPUTS,
|
|
12
|
+
tags: e ?? []
|
|
15
13
|
};
|
|
16
14
|
}
|
|
17
|
-
const
|
|
15
|
+
const n = { type: "text", ...t };
|
|
18
16
|
return {
|
|
19
|
-
items: [{ key:
|
|
17
|
+
items: [{ key: s, def: n }],
|
|
20
18
|
type: "ITEMS",
|
|
21
|
-
itemType:
|
|
22
|
-
tags:
|
|
19
|
+
itemType: c.INPUTS,
|
|
20
|
+
tags: e ?? []
|
|
23
21
|
};
|
|
24
22
|
}
|
|
25
|
-
function
|
|
23
|
+
function ht(s, t, e) {
|
|
26
24
|
if (typeof t == "function") {
|
|
27
|
-
const
|
|
25
|
+
const o = t;
|
|
28
26
|
return {
|
|
29
|
-
items: [{ key:
|
|
27
|
+
items: [{ key: s, def: (i) => ({ type: "number", ...o(i) }) }],
|
|
30
28
|
type: "ITEMS",
|
|
31
|
-
itemType:
|
|
32
|
-
tags:
|
|
29
|
+
itemType: c.INPUTS,
|
|
30
|
+
tags: e ?? []
|
|
33
31
|
};
|
|
34
32
|
}
|
|
35
|
-
const
|
|
33
|
+
const n = { type: "number", ...t };
|
|
36
34
|
return {
|
|
37
|
-
items: [{ key:
|
|
35
|
+
items: [{ key: s, def: n }],
|
|
38
36
|
type: "ITEMS",
|
|
39
|
-
itemType:
|
|
40
|
-
tags:
|
|
37
|
+
itemType: c.INPUTS,
|
|
38
|
+
tags: e ?? []
|
|
41
39
|
};
|
|
42
40
|
}
|
|
43
|
-
function
|
|
41
|
+
function St(s, t, e) {
|
|
44
42
|
if (typeof t == "function") {
|
|
45
|
-
const
|
|
43
|
+
const o = t;
|
|
46
44
|
return {
|
|
47
|
-
items: [{ key:
|
|
45
|
+
items: [{ key: s, def: (i) => ({ type: "boolean", ...o(i) }) }],
|
|
48
46
|
type: "ITEMS",
|
|
49
|
-
itemType:
|
|
50
|
-
tags:
|
|
47
|
+
itemType: c.INPUTS,
|
|
48
|
+
tags: e ?? []
|
|
51
49
|
};
|
|
52
50
|
}
|
|
53
|
-
const
|
|
51
|
+
const n = { type: "boolean", ...t };
|
|
54
52
|
return {
|
|
55
|
-
items: [{ key:
|
|
53
|
+
items: [{ key: s, def: n }],
|
|
56
54
|
type: "ITEMS",
|
|
57
|
-
itemType:
|
|
58
|
-
tags:
|
|
55
|
+
itemType: c.INPUTS,
|
|
56
|
+
tags: e ?? []
|
|
59
57
|
};
|
|
60
58
|
}
|
|
61
|
-
function
|
|
59
|
+
function Ut(s, t, e) {
|
|
62
60
|
if (typeof t == "function") {
|
|
63
61
|
const r = t;
|
|
64
|
-
return { type: "ITEMS", itemType: "SELECT", items: [{ key:
|
|
62
|
+
return { type: "ITEMS", itemType: "SELECT", items: [{ key: s, def: (a) => ({ type: "select", ...r(a) }) }], tags: e ?? [] };
|
|
65
63
|
}
|
|
66
|
-
const
|
|
67
|
-
return { type: "ITEMS", itemType: "SELECT", items: [{ key:
|
|
64
|
+
const n = { type: "select", ...t };
|
|
65
|
+
return { type: "ITEMS", itemType: "SELECT", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
68
66
|
}
|
|
69
|
-
function
|
|
67
|
+
function kt(s, t, e) {
|
|
70
68
|
if (typeof t == "function") {
|
|
71
69
|
const r = t;
|
|
72
|
-
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key:
|
|
70
|
+
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: s, def: (a) => ({
|
|
73
71
|
type: "dropdown",
|
|
74
72
|
...r(a)
|
|
75
|
-
}) }], tags:
|
|
73
|
+
}) }], tags: e ?? [] };
|
|
76
74
|
}
|
|
77
|
-
const
|
|
78
|
-
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key:
|
|
75
|
+
const n = { type: "dropdown", ...t };
|
|
76
|
+
return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
79
77
|
}
|
|
80
|
-
function
|
|
78
|
+
function At(s, t, e) {
|
|
81
79
|
if (typeof t == "function") {
|
|
82
80
|
const r = t;
|
|
83
|
-
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key:
|
|
81
|
+
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: s, def: (a) => ({ type: "radiogroup", ...r(a) }) }], tags: e ?? [] };
|
|
84
82
|
}
|
|
85
|
-
const
|
|
86
|
-
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key:
|
|
83
|
+
const n = { type: "radiogroup", ...t };
|
|
84
|
+
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
87
85
|
}
|
|
88
|
-
function
|
|
86
|
+
function Mt(s, t, e) {
|
|
89
87
|
if (typeof t == "function") {
|
|
90
88
|
const r = t;
|
|
91
|
-
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key:
|
|
89
|
+
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: s, def: (a) => ({ type: "checkbox", ...r(a) }) }], tags: e ?? [] };
|
|
92
90
|
}
|
|
93
|
-
const
|
|
94
|
-
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key:
|
|
91
|
+
const n = { type: "checkbox", ...t };
|
|
92
|
+
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
95
93
|
}
|
|
96
|
-
function
|
|
94
|
+
function Bt(s, t, e) {
|
|
97
95
|
if (typeof t == "function") {
|
|
98
96
|
const r = t;
|
|
99
|
-
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key:
|
|
97
|
+
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: s, def: (a) => ({ type: "textarea", ...r(a) }) }], tags: e ?? [] };
|
|
100
98
|
}
|
|
101
|
-
const
|
|
102
|
-
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key:
|
|
99
|
+
const n = { type: "textarea", ...t };
|
|
100
|
+
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
103
101
|
}
|
|
104
|
-
function
|
|
102
|
+
function Dt(s, t, e) {
|
|
105
103
|
if (typeof t == "function") {
|
|
106
104
|
const r = t;
|
|
107
|
-
return { type: "ITEMS", itemType: "PASSWORD", items: [{ key:
|
|
105
|
+
return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: s, def: (a) => ({ type: "password", ...r(a) }) }], tags: e ?? [] };
|
|
108
106
|
}
|
|
109
|
-
const
|
|
110
|
-
return { type: "ITEMS", itemType: "PASSWORD", items: [{ key:
|
|
107
|
+
const n = { type: "password", ...t };
|
|
108
|
+
return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
111
109
|
}
|
|
112
|
-
function
|
|
110
|
+
function Pt(s, t, e) {
|
|
113
111
|
if (typeof t == "function") {
|
|
114
112
|
const r = t;
|
|
115
|
-
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key:
|
|
113
|
+
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: s, def: (a) => ({ type: "currency", ...r(a) }) }], tags: e ?? [] };
|
|
116
114
|
}
|
|
117
|
-
const
|
|
118
|
-
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key:
|
|
115
|
+
const n = { type: "currency", ...t };
|
|
116
|
+
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
119
117
|
}
|
|
120
|
-
function
|
|
118
|
+
function wt(s, t, e) {
|
|
121
119
|
if (typeof t == "function") {
|
|
122
120
|
const r = t;
|
|
123
|
-
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key:
|
|
121
|
+
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: s, def: (a) => ({ type: "markdown", ...r(a) }) }], tags: e ?? [] };
|
|
124
122
|
}
|
|
125
|
-
const
|
|
126
|
-
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key:
|
|
123
|
+
const n = { type: "markdown", ...t };
|
|
124
|
+
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
127
125
|
}
|
|
128
|
-
function
|
|
126
|
+
function Rt(s, t, e) {
|
|
129
127
|
if (typeof t == "function") {
|
|
130
128
|
const r = t;
|
|
131
|
-
return { type: "ITEMS", itemType: "LIST", items: [{ key:
|
|
129
|
+
return { type: "ITEMS", itemType: "LIST", items: [{ key: s, def: (a) => ({ type: "list", ...r(a) }) }], tags: e ?? [] };
|
|
132
130
|
}
|
|
133
|
-
const
|
|
134
|
-
return { type: "ITEMS", itemType: "LIST", items: [{ key:
|
|
131
|
+
const n = { type: "list", ...t };
|
|
132
|
+
return { type: "ITEMS", itemType: "LIST", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
135
133
|
}
|
|
136
|
-
function
|
|
134
|
+
function xt(s, t, e) {
|
|
137
135
|
if (typeof t == "function") {
|
|
138
|
-
const
|
|
136
|
+
const o = t;
|
|
139
137
|
return {
|
|
140
|
-
items: [(
|
|
138
|
+
items: [(i) => ({
|
|
141
139
|
type: "calendar",
|
|
142
|
-
path:
|
|
143
|
-
...i
|
|
140
|
+
path: s,
|
|
141
|
+
...o(i)
|
|
144
142
|
})],
|
|
145
143
|
type: "ITEMS",
|
|
146
144
|
itemType: "CALENDAR",
|
|
147
|
-
tags:
|
|
145
|
+
tags: e ?? []
|
|
148
146
|
};
|
|
149
147
|
}
|
|
150
148
|
return {
|
|
151
|
-
items: [{ type: "calendar", path:
|
|
149
|
+
items: [{ type: "calendar", path: s, ...t }],
|
|
152
150
|
type: "ITEMS",
|
|
153
151
|
itemType: "CALENDAR",
|
|
154
|
-
tags:
|
|
152
|
+
tags: e ?? []
|
|
155
153
|
};
|
|
156
154
|
}
|
|
157
|
-
function
|
|
155
|
+
function Nt(s, t, e) {
|
|
158
156
|
if (typeof t == "function") {
|
|
159
157
|
const r = t;
|
|
160
|
-
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key:
|
|
158
|
+
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: s, def: (a) => ({ type: "dateInput", ...r(a) }) }], tags: e ?? [] };
|
|
161
159
|
}
|
|
162
|
-
const
|
|
163
|
-
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key:
|
|
160
|
+
const n = { type: "dateInput", ...t };
|
|
161
|
+
return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
164
162
|
}
|
|
165
|
-
function
|
|
163
|
+
function bt(s, t, e) {
|
|
166
164
|
if (typeof t == "function") {
|
|
167
165
|
const r = t;
|
|
168
|
-
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key:
|
|
166
|
+
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: s, def: (a) => ({
|
|
169
167
|
type: "datePicker",
|
|
170
168
|
...r(a)
|
|
171
|
-
}) }], tags:
|
|
169
|
+
}) }], tags: e ?? [] };
|
|
172
170
|
}
|
|
173
|
-
const
|
|
174
|
-
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key:
|
|
171
|
+
const n = { type: "datePicker", ...t };
|
|
172
|
+
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
175
173
|
}
|
|
176
|
-
function
|
|
174
|
+
function Lt(s, t, e) {
|
|
177
175
|
if (typeof t == "function") {
|
|
178
176
|
const r = t;
|
|
179
|
-
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key:
|
|
177
|
+
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: s, def: (a) => ({
|
|
180
178
|
type: "rangeCalendar",
|
|
181
179
|
...r(a)
|
|
182
|
-
}) }], tags:
|
|
180
|
+
}) }], tags: e ?? [] };
|
|
183
181
|
}
|
|
184
|
-
const
|
|
185
|
-
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key:
|
|
182
|
+
const n = { type: "rangeCalendar", ...t };
|
|
183
|
+
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
186
184
|
}
|
|
187
|
-
function
|
|
185
|
+
function Ct(s, t, e) {
|
|
188
186
|
if (typeof t == "function") {
|
|
189
187
|
const r = t;
|
|
190
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key:
|
|
188
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: s, def: (a) => ({
|
|
191
189
|
type: "rangeDateInput",
|
|
192
190
|
...r(a)
|
|
193
|
-
}) }], tags:
|
|
191
|
+
}) }], tags: e ?? [] };
|
|
194
192
|
}
|
|
195
|
-
const
|
|
196
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key:
|
|
193
|
+
const n = { type: "rangeDateInput", ...t };
|
|
194
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
197
195
|
}
|
|
198
|
-
function
|
|
196
|
+
function Gt(s, t, e) {
|
|
199
197
|
if (typeof t == "function") {
|
|
200
198
|
const r = t;
|
|
201
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key:
|
|
199
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: s, def: (a) => ({
|
|
202
200
|
type: "rangeDatePicker",
|
|
203
201
|
...r(a)
|
|
204
|
-
}) }], tags:
|
|
202
|
+
}) }], tags: e ?? [] };
|
|
205
203
|
}
|
|
206
|
-
const
|
|
207
|
-
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key:
|
|
208
|
-
}
|
|
209
|
-
function Ae(e, t, n, s) {
|
|
210
|
-
if (typeof n == "function") {
|
|
211
|
-
const l = n;
|
|
212
|
-
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (u) => ({
|
|
213
|
-
customType: e,
|
|
214
|
-
...l(u)
|
|
215
|
-
}) }], tags: s ?? [] };
|
|
216
|
-
}
|
|
217
|
-
const i = { customType: e, ...n };
|
|
218
|
-
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: i }], tags: s ?? [] };
|
|
204
|
+
const n = { type: "rangeDatePicker", ...t };
|
|
205
|
+
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
219
206
|
}
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
*/
|
|
228
|
-
deepMerge(t, n) {
|
|
229
|
-
if (n == null)
|
|
230
|
-
return t;
|
|
231
|
-
if (t == null || typeof t != "object" || typeof n != "object" || Array.isArray(t) || Array.isArray(n))
|
|
232
|
-
return n;
|
|
233
|
-
const s = { ...t };
|
|
234
|
-
for (const i in n)
|
|
235
|
-
Object.prototype.hasOwnProperty.call(n, i) && (typeof n[i] == "object" && !Array.isArray(n[i]) && n[i] !== null && typeof t[i] == "object" && !Array.isArray(t[i]) && t[i] !== null ? s[i] = this.deepMerge(t[i], n[i]) : s[i] = n[i]);
|
|
236
|
-
return s;
|
|
207
|
+
function Wt(s, t, e, n) {
|
|
208
|
+
if (typeof e == "function") {
|
|
209
|
+
const i = e;
|
|
210
|
+
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (d) => ({
|
|
211
|
+
customType: s,
|
|
212
|
+
...i(d)
|
|
213
|
+
}) }], tags: n ?? [] };
|
|
237
214
|
}
|
|
215
|
+
const o = { customType: s, ...e };
|
|
216
|
+
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: o }], tags: n ?? [] };
|
|
238
217
|
}
|
|
239
|
-
|
|
240
|
-
function K(e, t) {
|
|
241
|
-
return {
|
|
242
|
-
items: [e],
|
|
243
|
-
type: "ITEMS",
|
|
244
|
-
itemType: h.ACTIONS,
|
|
245
|
-
tags: t ?? []
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
const V = (e) => {
|
|
249
|
-
const t = {
|
|
250
|
-
uid: "#submit",
|
|
251
|
-
label: "Submit"
|
|
252
|
-
}, n = e != null ? G.deepMerge(t, e) : t;
|
|
253
|
-
return K(n);
|
|
254
|
-
};
|
|
255
|
-
function _e(e, t, n) {
|
|
218
|
+
function Ft(s, t, e) {
|
|
256
219
|
if (typeof t == "function") {
|
|
257
220
|
const r = t;
|
|
258
221
|
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
|
|
259
|
-
(
|
|
260
|
-
], tags:
|
|
222
|
+
(u) => ({ customType: s, ...r(u) })
|
|
223
|
+
], tags: e ?? [] };
|
|
261
224
|
}
|
|
262
|
-
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType:
|
|
225
|
+
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType: s, ...t }], tags: e ?? [] };
|
|
263
226
|
}
|
|
264
|
-
|
|
265
|
-
type: "ITEMS",
|
|
266
|
-
itemType: h.DISPLAYS,
|
|
267
|
-
items: [{ render: e }],
|
|
268
|
-
tags: t ?? []
|
|
269
|
-
});
|
|
270
|
-
function Ie(e, t) {
|
|
271
|
-
return { type: "ITEMS", itemType: "ALERTS", items: [e], tags: t ?? [] };
|
|
227
|
+
function Yt(s, t) {
|
|
228
|
+
return { type: "ITEMS", itemType: "ALERTS", items: [s], tags: t ?? [] };
|
|
272
229
|
}
|
|
273
|
-
function
|
|
230
|
+
function $t(s, t, e) {
|
|
274
231
|
if (typeof t == "function") {
|
|
275
|
-
const
|
|
232
|
+
const u = t;
|
|
276
233
|
return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
|
|
277
|
-
(
|
|
278
|
-
], tags:
|
|
234
|
+
(d) => ({ customType: s, ...u(d) })
|
|
235
|
+
], tags: e ?? [] };
|
|
279
236
|
}
|
|
280
|
-
const { uid:
|
|
237
|
+
const { uid: n, ...o } = t ?? {};
|
|
281
238
|
return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [{
|
|
282
|
-
customType:
|
|
283
|
-
...
|
|
284
|
-
props: Object.keys(
|
|
285
|
-
}], tags:
|
|
239
|
+
customType: s,
|
|
240
|
+
...n != null ? { uid: n } : {},
|
|
241
|
+
props: Object.keys(o).length > 0 ? o : void 0
|
|
242
|
+
}], tags: e ?? [] };
|
|
286
243
|
}
|
|
287
|
-
const
|
|
244
|
+
const m = (s, t, e) => ({
|
|
288
245
|
type: "ITEMS",
|
|
289
|
-
itemType:
|
|
290
|
-
items: [{ def: { widgetName: "flex", ...t ?? {} }, children:
|
|
291
|
-
tags:
|
|
292
|
-
}),
|
|
246
|
+
itemType: c.LAYOUTS,
|
|
247
|
+
items: [{ def: { widgetName: "flex", ...t ?? {} }, children: s }],
|
|
248
|
+
tags: e ?? []
|
|
249
|
+
}), Kt = (s, t, e) => m(s, { direction: "row", ...t ?? {} }, e), jt = (s, t, e) => m(s, { direction: "column", ...t ?? {} }, e), l = (s, t, e) => ({
|
|
293
250
|
type: "ITEMS",
|
|
294
|
-
itemType:
|
|
251
|
+
itemType: c.LAYOUTS,
|
|
295
252
|
items: [
|
|
296
253
|
{
|
|
297
254
|
def: {
|
|
@@ -300,25 +257,25 @@ const L = (e, t, n) => ({
|
|
|
300
257
|
autoFit: !0,
|
|
301
258
|
...t ?? {}
|
|
302
259
|
},
|
|
303
|
-
children:
|
|
260
|
+
children: s
|
|
304
261
|
}
|
|
305
262
|
],
|
|
306
|
-
tags:
|
|
307
|
-
}),
|
|
308
|
-
function
|
|
309
|
-
return
|
|
310
|
-
}
|
|
311
|
-
function
|
|
312
|
-
const
|
|
313
|
-
label:
|
|
314
|
-
uid:
|
|
315
|
-
})),
|
|
263
|
+
tags: e ?? []
|
|
264
|
+
}), zt = (s, t, e) => l(s, { direction: "row", ...t ?? {} }, e), Ht = (s, t, e) => l(s, { direction: "column", ...t ?? {} }, e);
|
|
265
|
+
function g(s) {
|
|
266
|
+
return s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
267
|
+
}
|
|
268
|
+
function Xt(s, t, e) {
|
|
269
|
+
const n = s.map((i) => ({
|
|
270
|
+
label: i.label,
|
|
271
|
+
uid: i.uid ?? g(i.label)
|
|
272
|
+
})), o = s.map((i) => ({
|
|
316
273
|
type: "ITEMS",
|
|
317
|
-
itemType:
|
|
274
|
+
itemType: c.LAYOUTS,
|
|
318
275
|
items: [
|
|
319
276
|
{
|
|
320
|
-
def: { uid:
|
|
321
|
-
children:
|
|
277
|
+
def: { uid: i.uid ?? g(i.label), direction: "column", widgetName: "flex" },
|
|
278
|
+
children: i.children
|
|
322
279
|
}
|
|
323
280
|
],
|
|
324
281
|
tags: []
|
|
@@ -327,26 +284,26 @@ function ve(e, t, n) {
|
|
|
327
284
|
type: "ITEMS",
|
|
328
285
|
itemType: "TABS",
|
|
329
286
|
items: [{ def: {
|
|
330
|
-
tabs:
|
|
287
|
+
tabs: n,
|
|
331
288
|
...t
|
|
332
|
-
}, children:
|
|
333
|
-
tags:
|
|
289
|
+
}, children: o }],
|
|
290
|
+
tags: e ?? []
|
|
334
291
|
};
|
|
335
292
|
}
|
|
336
|
-
function
|
|
337
|
-
return
|
|
293
|
+
function T(s) {
|
|
294
|
+
return s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
338
295
|
}
|
|
339
|
-
function
|
|
340
|
-
const
|
|
341
|
-
label:
|
|
342
|
-
uid:
|
|
343
|
-
})),
|
|
296
|
+
function vt(s, t, e) {
|
|
297
|
+
const n = s.map((i) => ({
|
|
298
|
+
label: i.label,
|
|
299
|
+
uid: i.uid ?? T(i.label)
|
|
300
|
+
})), o = s.map((i) => ({
|
|
344
301
|
type: "ITEMS",
|
|
345
|
-
itemType:
|
|
302
|
+
itemType: c.LAYOUTS,
|
|
346
303
|
items: [
|
|
347
304
|
{
|
|
348
|
-
def: { uid:
|
|
349
|
-
children:
|
|
305
|
+
def: { uid: i.uid ?? T(i.label), direction: "column", widgetName: "flex" },
|
|
306
|
+
children: i.children
|
|
350
307
|
}
|
|
351
308
|
],
|
|
352
309
|
tags: []
|
|
@@ -355,1789 +312,313 @@ function we(e, t, n) {
|
|
|
355
312
|
type: "ITEMS",
|
|
356
313
|
itemType: "ACCORDION",
|
|
357
314
|
items: [{ def: {
|
|
358
|
-
sections:
|
|
315
|
+
sections: n,
|
|
359
316
|
...t
|
|
360
|
-
}, children:
|
|
361
|
-
tags:
|
|
317
|
+
}, children: o }],
|
|
318
|
+
tags: e ?? []
|
|
362
319
|
};
|
|
363
320
|
}
|
|
364
|
-
function
|
|
365
|
-
if (typeof
|
|
366
|
-
const
|
|
367
|
-
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (
|
|
368
|
-
customType:
|
|
369
|
-
...
|
|
370
|
-
}), children: t }], tags:
|
|
371
|
-
}
|
|
372
|
-
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType:
|
|
321
|
+
function Vt(s, t, e, n) {
|
|
322
|
+
if (typeof e == "function") {
|
|
323
|
+
const i = e;
|
|
324
|
+
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (d) => ({
|
|
325
|
+
customType: s,
|
|
326
|
+
...i(d)
|
|
327
|
+
}), children: t }], tags: n ?? [] };
|
|
328
|
+
}
|
|
329
|
+
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: s, ...e }, children: t }], tags: n ?? [] };
|
|
373
330
|
}
|
|
374
|
-
function
|
|
375
|
-
const { template:
|
|
331
|
+
function qt(s, t, e) {
|
|
332
|
+
const { template: n, ...o } = t;
|
|
376
333
|
return {
|
|
377
334
|
type: "ITEMS",
|
|
378
335
|
itemType: "REPEATER",
|
|
379
|
-
items: [{ key:
|
|
380
|
-
tags:
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
function X(e) {
|
|
384
|
-
return function(t, n = () => !0) {
|
|
385
|
-
return {
|
|
386
|
-
kind: "leaf",
|
|
387
|
-
selectorType: e,
|
|
388
|
-
matcher: n,
|
|
389
|
-
config: t
|
|
390
|
-
};
|
|
391
|
-
};
|
|
392
|
-
}
|
|
393
|
-
const D = /* @__PURE__ */ new Map();
|
|
394
|
-
function Z(e, t) {
|
|
395
|
-
if (D.has(e))
|
|
396
|
-
throw new Error(`Item type "${e}" is already registered.`);
|
|
397
|
-
D.set(e, t);
|
|
398
|
-
}
|
|
399
|
-
function I(e) {
|
|
400
|
-
const t = D.get(e);
|
|
401
|
-
if (!t)
|
|
402
|
-
throw new Error(
|
|
403
|
-
`No handler registered for item type "${e}". Did you forget to import the registration module?`
|
|
404
|
-
);
|
|
405
|
-
return t;
|
|
406
|
-
}
|
|
407
|
-
function q(e) {
|
|
408
|
-
return D.has(e);
|
|
409
|
-
}
|
|
410
|
-
function p(e) {
|
|
411
|
-
const t = (o) => {
|
|
412
|
-
if (!e.sensibleDefaults)
|
|
413
|
-
return {};
|
|
414
|
-
let a = { ...e.sensibleDefaults.base };
|
|
415
|
-
for (const u of o) {
|
|
416
|
-
const c = u.config;
|
|
417
|
-
for (const y of e.sensibleDefaults.fields) {
|
|
418
|
-
const d = y;
|
|
419
|
-
c[d] != null && (a = { ...a, [d]: c[d] });
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
|
-
return a;
|
|
423
|
-
}, n = (o, a) => e.sensibleDefaults ? e.sensibleDefaults.apply(o, a) : o, s = (o) => {
|
|
424
|
-
switch (e.entryShape) {
|
|
425
|
-
case "bare":
|
|
426
|
-
return { baseDef: o };
|
|
427
|
-
case "keyed": {
|
|
428
|
-
const a = o;
|
|
429
|
-
return { baseDef: a.def, path: a.key };
|
|
430
|
-
}
|
|
431
|
-
case "compound": {
|
|
432
|
-
const a = o;
|
|
433
|
-
return { baseDef: a.def, children: a.children };
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
}, i = {
|
|
437
|
-
rollUpSensibleDefaults: t,
|
|
438
|
-
applySensibleDefaults: n,
|
|
439
|
-
mapToWidget: e.mapToWidget,
|
|
440
|
-
parseEntry: s,
|
|
441
|
-
...e.afterMerge ? { afterMerge: e.afterMerge } : {},
|
|
442
|
-
...e.buildCustomWidget ? { buildCustomWidget: e.buildCustomWidget } : {},
|
|
443
|
-
...e.getChildren ? { getChildren: e.getChildren } : {}
|
|
444
|
-
};
|
|
445
|
-
Z(e.itemType, i);
|
|
446
|
-
const r = X(e.itemType);
|
|
447
|
-
return { gsl: r, gslByUid: (o, a) => r(a, ((u) => u.uid === o)) };
|
|
448
|
-
}
|
|
449
|
-
function m(e) {
|
|
450
|
-
const {
|
|
451
|
-
uid: t,
|
|
452
|
-
path: n,
|
|
453
|
-
label: s,
|
|
454
|
-
disabled: i,
|
|
455
|
-
readonly: r,
|
|
456
|
-
defaultValue: l,
|
|
457
|
-
tags: o,
|
|
458
|
-
type: a,
|
|
459
|
-
size: u,
|
|
460
|
-
onLoad: c,
|
|
461
|
-
onChange: y,
|
|
462
|
-
onFilter: d,
|
|
463
|
-
on: T,
|
|
464
|
-
states: E,
|
|
465
|
-
include: U,
|
|
466
|
-
exclude: R,
|
|
467
|
-
validator: N,
|
|
468
|
-
...k
|
|
469
|
-
} = e;
|
|
470
|
-
return k;
|
|
471
|
-
}
|
|
472
|
-
function f(e, t) {
|
|
473
|
-
return typeof e == "function" ? e : { type: t, ...e ?? {} };
|
|
474
|
-
}
|
|
475
|
-
function Be(e) {
|
|
476
|
-
return e ? e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").replace(/\s+/g, " ").trim().replace(/\b\w/g, (t) => t.toUpperCase()) : "";
|
|
477
|
-
}
|
|
478
|
-
function g(e, t) {
|
|
479
|
-
return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: Be(e.path) };
|
|
480
|
-
}
|
|
481
|
-
function A(e, t) {
|
|
482
|
-
return e.placeholder != null || t.suppressAutomaticPlaceholders || !e.path ? e : { ...e, placeholder: e.path };
|
|
483
|
-
}
|
|
484
|
-
function Oe(e) {
|
|
485
|
-
switch (e.type) {
|
|
486
|
-
case "text":
|
|
487
|
-
return Ne(e);
|
|
488
|
-
case "number":
|
|
489
|
-
return We(e);
|
|
490
|
-
case "boolean":
|
|
491
|
-
return Re(e);
|
|
492
|
-
default:
|
|
493
|
-
throw new Error(`Unsupported field type "${e.type}"`);
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
function Re(e) {
|
|
497
|
-
const t = m(e);
|
|
498
|
-
return {
|
|
499
|
-
uid: e.uid ?? "",
|
|
500
|
-
kind: "input",
|
|
501
|
-
type: "toggle",
|
|
502
|
-
path: e.path ?? "",
|
|
503
|
-
...e.label != null ? { label: e.label } : {},
|
|
504
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
505
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
506
|
-
...e.validator != null ? { validator: f(e.validator, "boolean") } : {},
|
|
507
|
-
props: t
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
function Ne(e) {
|
|
511
|
-
const t = m(e);
|
|
512
|
-
return {
|
|
513
|
-
uid: e.uid ?? "",
|
|
514
|
-
kind: "input",
|
|
515
|
-
type: "textinput",
|
|
516
|
-
path: e.path ?? "",
|
|
517
|
-
...e.label != null ? { label: e.label } : {},
|
|
518
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
519
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
520
|
-
props: {
|
|
521
|
-
placeholder: t.placeholder ?? "",
|
|
522
|
-
...t
|
|
523
|
-
},
|
|
524
|
-
validator: f(e.validator, "string")
|
|
525
|
-
};
|
|
526
|
-
}
|
|
527
|
-
function We(e) {
|
|
528
|
-
const t = m(e);
|
|
529
|
-
return {
|
|
530
|
-
uid: e.uid ?? "",
|
|
531
|
-
kind: "input",
|
|
532
|
-
type: "number",
|
|
533
|
-
path: e.path ?? "",
|
|
534
|
-
...e.label != null ? { label: e.label } : {},
|
|
535
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
536
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
537
|
-
props: {
|
|
538
|
-
placeholder: t.placeholder ?? "",
|
|
539
|
-
...t
|
|
540
|
-
},
|
|
541
|
-
validator: f(e.validator, "number")
|
|
542
|
-
};
|
|
543
|
-
}
|
|
544
|
-
const { gsl: P, gslByUid: xe } = p({
|
|
545
|
-
itemType: "INPUTS",
|
|
546
|
-
entryShape: "keyed",
|
|
547
|
-
sensibleDefaults: {
|
|
548
|
-
base: {
|
|
549
|
-
suppressAutomaticLabels: !1,
|
|
550
|
-
suppressAutomaticPlaceholders: !1
|
|
551
|
-
},
|
|
552
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
553
|
-
apply: (e, t) => {
|
|
554
|
-
let n = g(e, t);
|
|
555
|
-
return n = A(n, t), n;
|
|
556
|
-
}
|
|
557
|
-
},
|
|
558
|
-
mapToWidget: Oe
|
|
559
|
-
}), Fe = (e) => P(e, (t) => t.type === "text"), $e = (e) => P(e, (t) => t.type === "number"), je = (e) => P(e, (t) => t.type === "boolean"), { gsl: Ye, gslByUid: ze } = p({
|
|
560
|
-
itemType: "SELECT",
|
|
561
|
-
entryShape: "keyed",
|
|
562
|
-
sensibleDefaults: {
|
|
563
|
-
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
564
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
565
|
-
apply: (e, t) => A(g(e, t), t)
|
|
566
|
-
},
|
|
567
|
-
mapToWidget: (e) => ({
|
|
568
|
-
uid: e.uid ?? "",
|
|
569
|
-
kind: "input",
|
|
570
|
-
type: "select",
|
|
571
|
-
path: e.path ?? "",
|
|
572
|
-
...e.label != null ? { label: e.label } : {},
|
|
573
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
574
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
575
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
576
|
-
props: m(e)
|
|
577
|
-
})
|
|
578
|
-
}), { gsl: Ge, gslByUid: Ke } = p({
|
|
579
|
-
itemType: "DROPDOWN",
|
|
580
|
-
entryShape: "keyed",
|
|
581
|
-
sensibleDefaults: {
|
|
582
|
-
base: {
|
|
583
|
-
suppressAutomaticLabels: !1,
|
|
584
|
-
suppressAutomaticPlaceholders: !1
|
|
585
|
-
},
|
|
586
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
587
|
-
apply: (e, t) => A(g(e, t), t)
|
|
588
|
-
},
|
|
589
|
-
mapToWidget: (e) => ({
|
|
590
|
-
uid: e.uid ?? "",
|
|
591
|
-
kind: "input",
|
|
592
|
-
type: "dropdown",
|
|
593
|
-
path: e.path ?? "",
|
|
594
|
-
...e.label != null ? { label: e.label } : {},
|
|
595
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
596
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
597
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
598
|
-
props: m(e)
|
|
599
|
-
})
|
|
600
|
-
}), { gsl: Ve, gslByUid: He } = p({
|
|
601
|
-
itemType: "RADIOGROUP",
|
|
602
|
-
entryShape: "keyed",
|
|
603
|
-
sensibleDefaults: {
|
|
604
|
-
base: { suppressAutomaticLabels: !1 },
|
|
605
|
-
fields: ["suppressAutomaticLabels"],
|
|
606
|
-
apply: (e, t) => g(e, t)
|
|
607
|
-
},
|
|
608
|
-
mapToWidget: (e) => ({
|
|
609
|
-
uid: e.uid ?? "",
|
|
610
|
-
kind: "input",
|
|
611
|
-
type: "radiogroup",
|
|
612
|
-
path: e.path ?? "",
|
|
613
|
-
...e.label != null ? { label: e.label } : {},
|
|
614
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
615
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
616
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
617
|
-
props: m(e)
|
|
618
|
-
})
|
|
619
|
-
}), { gsl: Xe, gslByUid: Ze } = p({
|
|
620
|
-
itemType: "CHECKBOX",
|
|
621
|
-
entryShape: "keyed",
|
|
622
|
-
sensibleDefaults: {
|
|
623
|
-
base: { suppressAutomaticLabels: !1 },
|
|
624
|
-
fields: ["suppressAutomaticLabels"],
|
|
625
|
-
apply: (e, t) => g(e, t)
|
|
626
|
-
},
|
|
627
|
-
mapToWidget: (e) => ({
|
|
628
|
-
uid: e.uid ?? "",
|
|
629
|
-
kind: "input",
|
|
630
|
-
type: "checkbox",
|
|
631
|
-
path: e.path ?? "",
|
|
632
|
-
...e.label != null ? { label: e.label } : {},
|
|
633
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
634
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
635
|
-
...e.validator != null ? { validator: f(e.validator, "boolean") } : {},
|
|
636
|
-
props: m(e)
|
|
637
|
-
})
|
|
638
|
-
}), { gsl: qe, gslByUid: Qe } = p({
|
|
639
|
-
itemType: "TEXTAREA",
|
|
640
|
-
entryShape: "keyed",
|
|
641
|
-
sensibleDefaults: {
|
|
642
|
-
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
643
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
644
|
-
apply: (e, t) => A(g(e, t), t)
|
|
645
|
-
},
|
|
646
|
-
mapToWidget: (e) => ({
|
|
647
|
-
uid: e.uid ?? "",
|
|
648
|
-
kind: "input",
|
|
649
|
-
type: "textarea",
|
|
650
|
-
path: e.path ?? "",
|
|
651
|
-
...e.label != null ? { label: e.label } : {},
|
|
652
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
653
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
654
|
-
...e.validator != null ? { validator: f(e.validator, "string") } : {},
|
|
655
|
-
props: m(e)
|
|
656
|
-
})
|
|
657
|
-
}), { gsl: Je, gslByUid: et } = p({
|
|
658
|
-
itemType: "PASSWORD",
|
|
659
|
-
entryShape: "keyed",
|
|
660
|
-
sensibleDefaults: {
|
|
661
|
-
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
662
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
663
|
-
apply: (e, t) => A(g(e, t), t)
|
|
664
|
-
},
|
|
665
|
-
mapToWidget: (e) => ({
|
|
666
|
-
uid: e.uid ?? "",
|
|
667
|
-
kind: "input",
|
|
668
|
-
type: "password",
|
|
669
|
-
path: e.path ?? "",
|
|
670
|
-
...e.label != null ? { label: e.label } : {},
|
|
671
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
672
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
673
|
-
...e.validator != null ? { validator: f(e.validator, "string") } : {},
|
|
674
|
-
props: m(e)
|
|
675
|
-
})
|
|
676
|
-
}), { gsl: tt, gslByUid: nt } = p({
|
|
677
|
-
itemType: "CURRENCY",
|
|
678
|
-
entryShape: "keyed",
|
|
679
|
-
sensibleDefaults: {
|
|
680
|
-
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
681
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
682
|
-
apply: (e, t) => A(g(e, t), t)
|
|
683
|
-
},
|
|
684
|
-
mapToWidget: (e) => ({
|
|
685
|
-
uid: e.uid ?? "",
|
|
686
|
-
kind: "input",
|
|
687
|
-
type: "currency",
|
|
688
|
-
path: e.path ?? "",
|
|
689
|
-
...e.label != null ? { label: e.label } : {},
|
|
690
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
691
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
692
|
-
...e.validator != null ? { validator: f(e.validator, "number") } : {},
|
|
693
|
-
props: m(e)
|
|
694
|
-
})
|
|
695
|
-
}), { gsl: st, gslByUid: it } = p({
|
|
696
|
-
itemType: "MARKDOWN",
|
|
697
|
-
entryShape: "keyed",
|
|
698
|
-
sensibleDefaults: {
|
|
699
|
-
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
700
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
701
|
-
apply: (e, t) => A(g(e, t), t)
|
|
702
|
-
},
|
|
703
|
-
mapToWidget: (e) => ({
|
|
704
|
-
uid: e.uid ?? "",
|
|
705
|
-
kind: "input",
|
|
706
|
-
type: "markdown",
|
|
707
|
-
path: e.path ?? "",
|
|
708
|
-
...e.label != null ? { label: e.label } : {},
|
|
709
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
710
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
711
|
-
...e.validator != null ? { validator: f(e.validator, "string") } : {},
|
|
712
|
-
props: m(e)
|
|
713
|
-
})
|
|
714
|
-
}), { gsl: rt, gslByUid: lt } = p({
|
|
715
|
-
itemType: "LIST",
|
|
716
|
-
entryShape: "keyed",
|
|
717
|
-
sensibleDefaults: {
|
|
718
|
-
base: { suppressAutomaticLabels: !1 },
|
|
719
|
-
fields: ["suppressAutomaticLabels"],
|
|
720
|
-
apply: (e, t) => g(e, t)
|
|
721
|
-
},
|
|
722
|
-
mapToWidget: (e) => ({
|
|
723
|
-
uid: e.uid ?? "",
|
|
724
|
-
kind: "input",
|
|
725
|
-
type: "list",
|
|
726
|
-
path: e.path ?? "",
|
|
727
|
-
...e.label != null ? { label: e.label } : {},
|
|
728
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
729
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
730
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
731
|
-
props: m(e)
|
|
732
|
-
})
|
|
733
|
-
}), { gsl: at, gslByUid: ot } = p({
|
|
734
|
-
itemType: "CALENDAR",
|
|
735
|
-
entryShape: "bare",
|
|
736
|
-
sensibleDefaults: {
|
|
737
|
-
base: { suppressAutomaticLabels: !1 },
|
|
738
|
-
fields: ["suppressAutomaticLabels"],
|
|
739
|
-
apply: (e, t) => g(e, t)
|
|
740
|
-
},
|
|
741
|
-
mapToWidget: (e) => ({
|
|
742
|
-
uid: e.uid ?? "",
|
|
743
|
-
kind: "input",
|
|
744
|
-
type: "calendar",
|
|
745
|
-
path: e.path ?? "",
|
|
746
|
-
...e.label != null ? { label: e.label } : {},
|
|
747
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
748
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
749
|
-
...e.validator != null ? { validator: f(e.validator, "string") } : {},
|
|
750
|
-
props: m(e)
|
|
751
|
-
})
|
|
752
|
-
}), { gsl: ut, gslByUid: ct } = p({
|
|
753
|
-
itemType: "DATE_INPUT",
|
|
754
|
-
entryShape: "keyed",
|
|
755
|
-
sensibleDefaults: {
|
|
756
|
-
base: { suppressAutomaticLabels: !1 },
|
|
757
|
-
fields: ["suppressAutomaticLabels"],
|
|
758
|
-
apply: (e, t) => g(e, t)
|
|
759
|
-
},
|
|
760
|
-
mapToWidget: (e) => ({
|
|
761
|
-
uid: e.uid ?? "",
|
|
762
|
-
kind: "input",
|
|
763
|
-
type: "dateInput",
|
|
764
|
-
path: e.path ?? "",
|
|
765
|
-
...e.label != null ? { label: e.label } : {},
|
|
766
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
767
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
768
|
-
...e.validator != null ? { validator: f(e.validator, "string") } : {},
|
|
769
|
-
props: m(e)
|
|
770
|
-
})
|
|
771
|
-
}), { gsl: pt, gslByUid: dt } = p({
|
|
772
|
-
itemType: "DATE_PICKER",
|
|
773
|
-
entryShape: "keyed",
|
|
774
|
-
sensibleDefaults: {
|
|
775
|
-
base: {
|
|
776
|
-
suppressAutomaticLabels: !1,
|
|
777
|
-
suppressAutomaticPlaceholders: !1
|
|
778
|
-
},
|
|
779
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
780
|
-
apply: (e, t) => A(g(e, t), t)
|
|
781
|
-
},
|
|
782
|
-
mapToWidget: (e) => ({
|
|
783
|
-
uid: e.uid ?? "",
|
|
784
|
-
kind: "input",
|
|
785
|
-
type: "datePicker",
|
|
786
|
-
path: e.path ?? "",
|
|
787
|
-
...e.label != null ? { label: e.label } : {},
|
|
788
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
789
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
790
|
-
...e.validator != null ? { validator: f(e.validator, "string") } : {},
|
|
791
|
-
props: m(e)
|
|
792
|
-
})
|
|
793
|
-
}), { gsl: yt, gslByUid: mt } = p({
|
|
794
|
-
itemType: "RANGE_CALENDAR",
|
|
795
|
-
entryShape: "keyed",
|
|
796
|
-
sensibleDefaults: {
|
|
797
|
-
base: { suppressAutomaticLabels: !1 },
|
|
798
|
-
fields: ["suppressAutomaticLabels"],
|
|
799
|
-
apply: (e, t) => g(e, t)
|
|
800
|
-
},
|
|
801
|
-
mapToWidget: (e) => ({
|
|
802
|
-
uid: e.uid ?? "",
|
|
803
|
-
kind: "input",
|
|
804
|
-
type: "rangeCalendar",
|
|
805
|
-
path: e.path ?? "",
|
|
806
|
-
...e.label != null ? { label: e.label } : {},
|
|
807
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
808
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
809
|
-
...e.validator != null ? { validator: f(e.validator, "array") } : {},
|
|
810
|
-
props: m(e)
|
|
811
|
-
})
|
|
812
|
-
}), { gsl: gt, gslByUid: bt } = p({
|
|
813
|
-
itemType: "RANGE_DATE_INPUT",
|
|
814
|
-
entryShape: "keyed",
|
|
815
|
-
sensibleDefaults: {
|
|
816
|
-
base: { suppressAutomaticLabels: !1 },
|
|
817
|
-
fields: ["suppressAutomaticLabels"],
|
|
818
|
-
apply: (e, t) => g(e, t)
|
|
819
|
-
},
|
|
820
|
-
mapToWidget: (e) => ({
|
|
821
|
-
uid: e.uid ?? "",
|
|
822
|
-
kind: "input",
|
|
823
|
-
type: "rangeDateInput",
|
|
824
|
-
path: e.path ?? "",
|
|
825
|
-
...e.label != null ? { label: e.label } : {},
|
|
826
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
827
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
828
|
-
...e.validator != null ? { validator: f(e.validator, "array") } : {},
|
|
829
|
-
props: m(e)
|
|
830
|
-
})
|
|
831
|
-
}), { gsl: ft, gslByUid: ht } = p({
|
|
832
|
-
itemType: "RANGE_DATE_PICKER",
|
|
833
|
-
entryShape: "keyed",
|
|
834
|
-
sensibleDefaults: {
|
|
835
|
-
base: {
|
|
836
|
-
suppressAutomaticLabels: !1,
|
|
837
|
-
suppressAutomaticPlaceholders: !1
|
|
838
|
-
},
|
|
839
|
-
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
840
|
-
apply: (e, t) => A(g(e, t), t)
|
|
841
|
-
},
|
|
842
|
-
mapToWidget: (e) => ({
|
|
843
|
-
uid: e.uid ?? "",
|
|
844
|
-
kind: "input",
|
|
845
|
-
type: "rangeDatePicker",
|
|
846
|
-
path: e.path ?? "",
|
|
847
|
-
...e.label != null ? { label: e.label } : {},
|
|
848
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
849
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
850
|
-
...e.validator != null ? { validator: f(e.validator, "array") } : {},
|
|
851
|
-
props: m(e)
|
|
852
|
-
})
|
|
853
|
-
});
|
|
854
|
-
function Tt(e) {
|
|
855
|
-
const t = {};
|
|
856
|
-
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;
|
|
857
|
-
}
|
|
858
|
-
function St(e) {
|
|
859
|
-
return {
|
|
860
|
-
uid: e.uid ?? "",
|
|
861
|
-
kind: "input",
|
|
862
|
-
type: "repeater",
|
|
863
|
-
path: e.path ?? "",
|
|
864
|
-
...e.label != null ? { label: e.label } : {},
|
|
865
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
866
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
867
|
-
...e.validator != null ? { validator: f(e.validator, "array") } : {},
|
|
868
|
-
props: {
|
|
869
|
-
...Tt(e),
|
|
870
|
-
template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
|
|
871
|
-
}
|
|
336
|
+
items: [{ key: s, def: o, children: n }],
|
|
337
|
+
tags: e ?? []
|
|
872
338
|
};
|
|
873
339
|
}
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
if (typeof n == "function") continue;
|
|
877
|
-
const s = n;
|
|
878
|
-
typeof s.path == "string" && s.path && (s.path = t + s.path), "children" in s && Array.isArray(s.children) && M(s.children, t);
|
|
879
|
-
const i = s.props;
|
|
880
|
-
i?.template?.children && Array.isArray(i.template.children) && M(i.template.children, t);
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
function At(e, t) {
|
|
884
|
-
const n = t.walkChildren(t.children ?? []), s = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
|
|
885
|
-
s && M(n, s + ".items.");
|
|
886
|
-
const i = {
|
|
887
|
-
kind: "layout",
|
|
888
|
-
type: "flex",
|
|
889
|
-
uid: "",
|
|
890
|
-
children: n,
|
|
891
|
-
props: { direction: "column" }
|
|
892
|
-
};
|
|
893
|
-
if (e.kind === "static") {
|
|
894
|
-
const l = t.mapStaticDef(e.def, "REPEATER");
|
|
895
|
-
return {
|
|
896
|
-
...l,
|
|
897
|
-
props: { ...l.props, template: i }
|
|
898
|
-
};
|
|
899
|
-
}
|
|
900
|
-
const r = e.fn;
|
|
901
|
-
return ((l) => {
|
|
902
|
-
const o = r(l), a = t.mapStaticDef(o, "REPEATER");
|
|
903
|
-
return {
|
|
904
|
-
...a,
|
|
905
|
-
props: { ...a.props, template: i }
|
|
906
|
-
};
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
|
-
function kt(e) {
|
|
910
|
-
return {
|
|
911
|
-
baseDef: e.def,
|
|
912
|
-
path: e.key,
|
|
913
|
-
children: e.children
|
|
914
|
-
};
|
|
915
|
-
}
|
|
916
|
-
function _t(e) {
|
|
917
|
-
return e.children;
|
|
918
|
-
}
|
|
919
|
-
const It = {
|
|
920
|
-
parseEntry: kt,
|
|
921
|
-
rollUpSensibleDefaults: () => ({}),
|
|
922
|
-
applySensibleDefaults: (e) => e,
|
|
923
|
-
mapToWidget: St,
|
|
924
|
-
buildCustomWidget: At,
|
|
925
|
-
getChildren: _t
|
|
926
|
-
};
|
|
927
|
-
Z("REPEATER", It);
|
|
928
|
-
const Q = X("REPEATER"), Et = (e, t) => Q(t, ((n) => n.uid === e)), J = {
|
|
929
|
-
onLoad: "load",
|
|
930
|
-
onChange: "change",
|
|
931
|
-
onFilter: "filter",
|
|
932
|
-
onBlur: "blur"
|
|
933
|
-
}, Ut = Object.keys(J);
|
|
934
|
-
class Dt {
|
|
935
|
-
// ── Action-specific: onClick + submit ─────────────────────────
|
|
936
|
-
extractOnClickFromMergeResult(t, n, s, i) {
|
|
937
|
-
if (t.kind === "dynamic") {
|
|
938
|
-
const o = t.fn;
|
|
939
|
-
return { kind: "dynamic", fn: (u) => {
|
|
940
|
-
const c = o(u);
|
|
941
|
-
return this.wireOnClick(c, n, s, i);
|
|
942
|
-
} };
|
|
943
|
-
}
|
|
944
|
-
const r = t.def;
|
|
945
|
-
return { kind: "static", def: this.wireOnClick(r, n, s, i) };
|
|
946
|
-
}
|
|
947
|
-
countSubmitButtons(t) {
|
|
948
|
-
let n = 0;
|
|
949
|
-
for (const s of t) {
|
|
950
|
-
if (s.type !== "ITEMS") continue;
|
|
951
|
-
const i = I(s.itemType);
|
|
952
|
-
for (const r of s.items) {
|
|
953
|
-
const l = i.getChildren?.(r);
|
|
954
|
-
if (l && (n += this.countSubmitButtons(l)), s.itemType === h.ACTIONS) {
|
|
955
|
-
if (typeof r == "function") continue;
|
|
956
|
-
const o = r;
|
|
957
|
-
(o.uid === "#submit" || o.onClick === "submit") && n++;
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
}
|
|
961
|
-
return n;
|
|
962
|
-
}
|
|
963
|
-
wireOnClick(t, n, s, i) {
|
|
964
|
-
const r = t.uid === "#submit" || t.onClick === "submit", l = r ? "#submit" : i.next(), o = r ? "submit" : l, a = t.onClick, c = (typeof a == "function" ? a : void 0) ?? (r ? s.onSubmit : void 0);
|
|
965
|
-
if (c) {
|
|
966
|
-
n.set(o, (T) => c(T.data));
|
|
967
|
-
const { onClick: y, ...d } = t;
|
|
968
|
-
return { ...d, uid: l, on: { click: o } };
|
|
969
|
-
}
|
|
970
|
-
if (r) {
|
|
971
|
-
const { onClick: y, ...d } = t;
|
|
972
|
-
return { ...d, uid: l, on: { click: "submit" } };
|
|
973
|
-
}
|
|
974
|
-
if (typeof a == "string") {
|
|
975
|
-
const { onClick: y, ...d } = t;
|
|
976
|
-
return { ...d, uid: l, on: { click: a } };
|
|
977
|
-
}
|
|
978
|
-
return { ...t, uid: l };
|
|
979
|
-
}
|
|
980
|
-
// ── Universal: onLoad, onChange, onFilter ──────────────────────
|
|
981
|
-
wireInputLayoutEvents(t, n, s) {
|
|
982
|
-
if (t.kind === "dynamic") {
|
|
983
|
-
const r = t.fn;
|
|
984
|
-
return { kind: "dynamic", fn: (o) => {
|
|
985
|
-
const a = r(o);
|
|
986
|
-
return this.wireEventProperties(a, n, s);
|
|
987
|
-
} };
|
|
988
|
-
}
|
|
989
|
-
return { kind: "static", def: this.wireEventProperties(t.def, n, s) };
|
|
990
|
-
}
|
|
991
|
-
wireEventProperties(t, n, s) {
|
|
992
|
-
const i = { ...t.on || {} };
|
|
993
|
-
let r = !1;
|
|
994
|
-
const l = { ...t };
|
|
995
|
-
for (const o of Ut) {
|
|
996
|
-
const a = t[o];
|
|
997
|
-
if (a == null) continue;
|
|
998
|
-
const u = J[o];
|
|
999
|
-
if (typeof a == "function") {
|
|
1000
|
-
const c = s.next();
|
|
1001
|
-
n.set(c, a), i[u] = c, r = !0;
|
|
1002
|
-
} else typeof a == "string" && (i[u] = a, r = !0);
|
|
1003
|
-
delete l[o];
|
|
1004
|
-
}
|
|
1005
|
-
return r && (l.on = i), l;
|
|
1006
|
-
}
|
|
1007
|
-
}
|
|
1008
|
-
const C = new Dt();
|
|
1009
|
-
function Pt(e) {
|
|
1010
|
-
const {
|
|
1011
|
-
uid: t,
|
|
1012
|
-
label: n,
|
|
1013
|
-
disabled: s,
|
|
1014
|
-
on: i,
|
|
1015
|
-
onClick: r,
|
|
1016
|
-
data: l,
|
|
1017
|
-
type: o,
|
|
1018
|
-
tags: a,
|
|
1019
|
-
size: u,
|
|
1020
|
-
include: c,
|
|
1021
|
-
exclude: y,
|
|
1022
|
-
states: d,
|
|
1023
|
-
...T
|
|
1024
|
-
} = e;
|
|
1025
|
-
return {
|
|
1026
|
-
uid: t ?? "",
|
|
1027
|
-
kind: "action",
|
|
1028
|
-
type: "button",
|
|
1029
|
-
disabled: s,
|
|
1030
|
-
label: n,
|
|
1031
|
-
...i != null ? { on: i } : {},
|
|
1032
|
-
props: T
|
|
1033
|
-
};
|
|
1034
|
-
}
|
|
1035
|
-
const { gsl: Ct, gslByUid: vt } = p({
|
|
1036
|
-
itemType: "ACTIONS",
|
|
1037
|
-
entryShape: "bare",
|
|
1038
|
-
mapToWidget: Pt,
|
|
1039
|
-
afterMerge: (e, t) => C.extractOnClickFromMergeResult(
|
|
1040
|
-
e,
|
|
1041
|
-
t.eventRegistry,
|
|
1042
|
-
t.formConfig,
|
|
1043
|
-
t.eventIdGenerator
|
|
1044
|
-
)
|
|
1045
|
-
});
|
|
1046
|
-
function wt(e) {
|
|
1047
|
-
const {
|
|
1048
|
-
uid: t,
|
|
1049
|
-
widgetName: n,
|
|
1050
|
-
tags: s,
|
|
1051
|
-
size: i,
|
|
1052
|
-
onChange: r,
|
|
1053
|
-
include: l,
|
|
1054
|
-
exclude: o,
|
|
1055
|
-
...a
|
|
1056
|
-
} = e, { on: u, ...c } = a;
|
|
1057
|
-
return {
|
|
1058
|
-
uid: t ?? "",
|
|
1059
|
-
kind: "layout",
|
|
1060
|
-
type: n ?? "flex",
|
|
1061
|
-
props: {
|
|
1062
|
-
direction: c.direction ?? "column",
|
|
1063
|
-
...c
|
|
1064
|
-
},
|
|
1065
|
-
children: []
|
|
1066
|
-
};
|
|
1067
|
-
}
|
|
1068
|
-
function Mt(e, t) {
|
|
1069
|
-
const n = t.walkChildren(t.children ?? []);
|
|
1070
|
-
if (e.kind === "static")
|
|
1071
|
-
return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: n };
|
|
1072
|
-
const s = e.fn;
|
|
1073
|
-
return ((i) => {
|
|
1074
|
-
const r = s(i);
|
|
1075
|
-
return { ...t.mapStaticDef(r, "LAYOUTS"), children: n };
|
|
1076
|
-
});
|
|
1077
|
-
}
|
|
1078
|
-
function Lt(e) {
|
|
1079
|
-
return e.children;
|
|
1080
|
-
}
|
|
1081
|
-
const { gsl: Bt, gslByUid: Ot } = p({
|
|
1082
|
-
itemType: "LAYOUTS",
|
|
1083
|
-
entryShape: "compound",
|
|
1084
|
-
mapToWidget: wt,
|
|
1085
|
-
buildCustomWidget: Mt,
|
|
1086
|
-
getChildren: Lt
|
|
1087
|
-
});
|
|
1088
|
-
function Rt(e) {
|
|
1089
|
-
return {
|
|
1090
|
-
uid: "",
|
|
1091
|
-
kind: "display",
|
|
1092
|
-
type: "renderer",
|
|
1093
|
-
props: { render: e.render }
|
|
1094
|
-
};
|
|
1095
|
-
}
|
|
1096
|
-
function Nt(e, t) {
|
|
1097
|
-
if (e.kind === "static") {
|
|
1098
|
-
const s = e.def;
|
|
1099
|
-
return ((i) => ({
|
|
1100
|
-
uid: "",
|
|
1101
|
-
kind: "display",
|
|
1102
|
-
type: "renderer",
|
|
1103
|
-
...s.include != null ? { include: s.include } : {},
|
|
1104
|
-
...s.exclude != null ? { exclude: s.exclude } : {},
|
|
1105
|
-
props: { render: s.render(i ?? {}) }
|
|
1106
|
-
}));
|
|
1107
|
-
}
|
|
1108
|
-
const n = e.fn;
|
|
1109
|
-
return ((s) => {
|
|
1110
|
-
const i = n(s);
|
|
1111
|
-
return {
|
|
1112
|
-
uid: "",
|
|
1113
|
-
kind: "display",
|
|
1114
|
-
type: "renderer",
|
|
1115
|
-
...i.include != null ? { include: i.include } : {},
|
|
1116
|
-
...i.exclude != null ? { exclude: i.exclude } : {},
|
|
1117
|
-
props: { render: i.render(s ?? {}) }
|
|
1118
|
-
};
|
|
1119
|
-
});
|
|
1120
|
-
}
|
|
1121
|
-
const { gsl: Wt, gslByUid: xt } = p({
|
|
1122
|
-
itemType: "DISPLAYS",
|
|
1123
|
-
entryShape: "bare",
|
|
1124
|
-
mapToWidget: Rt,
|
|
1125
|
-
buildCustomWidget: Nt
|
|
1126
|
-
}), { gsl: Ft, gslByUid: $t } = p({
|
|
1127
|
-
itemType: "ALERTS",
|
|
1128
|
-
entryShape: "bare",
|
|
1129
|
-
mapToWidget: (e) => ({
|
|
1130
|
-
uid: e.uid ?? "",
|
|
1131
|
-
kind: "display",
|
|
1132
|
-
type: "alert",
|
|
1133
|
-
props: {
|
|
1134
|
-
text: e.text,
|
|
1135
|
-
...e.level != null ? { level: e.level } : {}
|
|
1136
|
-
}
|
|
1137
|
-
})
|
|
1138
|
-
});
|
|
1139
|
-
function jt(e) {
|
|
1140
|
-
return {
|
|
1141
|
-
uid: e.uid ?? "",
|
|
1142
|
-
kind: "layout",
|
|
1143
|
-
type: "tabs",
|
|
1144
|
-
props: {
|
|
1145
|
-
tabs: e.tabs,
|
|
1146
|
-
renderMode: e.renderMode ?? "all",
|
|
1147
|
-
...e.defaultOpen != null ? { defaultOpen: e.defaultOpen } : {}
|
|
1148
|
-
},
|
|
1149
|
-
children: []
|
|
1150
|
-
};
|
|
1151
|
-
}
|
|
1152
|
-
function Yt(e, t) {
|
|
1153
|
-
const n = t.walkChildren(t.children ?? []);
|
|
1154
|
-
if (e.kind === "static")
|
|
1155
|
-
return { ...t.mapStaticDef(e.def, "TABS"), children: n };
|
|
1156
|
-
const s = e.fn;
|
|
1157
|
-
return ((i) => {
|
|
1158
|
-
const r = s(i);
|
|
1159
|
-
return { ...t.mapStaticDef(r, "TABS"), children: n };
|
|
1160
|
-
});
|
|
1161
|
-
}
|
|
1162
|
-
function zt(e) {
|
|
1163
|
-
return e.children;
|
|
1164
|
-
}
|
|
1165
|
-
const { gsl: Gt, gslByUid: Kt } = p({
|
|
1166
|
-
itemType: "TABS",
|
|
1167
|
-
entryShape: "compound",
|
|
1168
|
-
mapToWidget: jt,
|
|
1169
|
-
buildCustomWidget: Yt,
|
|
1170
|
-
getChildren: zt
|
|
1171
|
-
});
|
|
1172
|
-
function Vt(e) {
|
|
1173
|
-
return {
|
|
1174
|
-
uid: e.uid ?? "",
|
|
1175
|
-
kind: "layout",
|
|
1176
|
-
type: "accordion",
|
|
1177
|
-
props: {
|
|
1178
|
-
sections: e.sections,
|
|
1179
|
-
renderMode: e.renderMode ?? "all",
|
|
1180
|
-
...e.singleOpen != null ? { singleOpen: e.singleOpen } : {},
|
|
1181
|
-
...e.defaultOpen != null ? { defaultOpen: e.defaultOpen } : {}
|
|
1182
|
-
},
|
|
1183
|
-
children: []
|
|
1184
|
-
};
|
|
1185
|
-
}
|
|
1186
|
-
function Ht(e, t) {
|
|
1187
|
-
const n = t.walkChildren(t.children ?? []);
|
|
1188
|
-
if (e.kind === "static")
|
|
1189
|
-
return { ...t.mapStaticDef(e.def, "ACCORDION"), children: n };
|
|
1190
|
-
const s = e.fn;
|
|
1191
|
-
return ((i) => {
|
|
1192
|
-
const r = s(i);
|
|
1193
|
-
return { ...t.mapStaticDef(r, "ACCORDION"), children: n };
|
|
1194
|
-
});
|
|
1195
|
-
}
|
|
1196
|
-
function Xt(e) {
|
|
1197
|
-
return e.children;
|
|
1198
|
-
}
|
|
1199
|
-
const { gsl: Zt, gslByUid: qt } = p({
|
|
1200
|
-
itemType: "ACCORDION",
|
|
1201
|
-
entryShape: "compound",
|
|
1202
|
-
mapToWidget: Vt,
|
|
1203
|
-
buildCustomWidget: Ht,
|
|
1204
|
-
getChildren: Xt
|
|
1205
|
-
}), { gsl: Qt, gslByUid: Jt } = p({
|
|
1206
|
-
itemType: "CUSTOM_INPUT",
|
|
1207
|
-
entryShape: "keyed",
|
|
1208
|
-
sensibleDefaults: {
|
|
1209
|
-
base: {
|
|
1210
|
-
suppressAutomaticLabels: !1
|
|
1211
|
-
},
|
|
1212
|
-
fields: ["suppressAutomaticLabels"],
|
|
1213
|
-
apply: (e, t) => g(e, t)
|
|
1214
|
-
},
|
|
1215
|
-
mapToWidget: (e) => ({
|
|
1216
|
-
uid: e.uid ?? "",
|
|
1217
|
-
kind: "input",
|
|
1218
|
-
type: e.customType,
|
|
1219
|
-
path: e.path ?? "",
|
|
1220
|
-
...e.label != null ? { label: e.label } : {},
|
|
1221
|
-
...e.disabled != null ? { disabled: e.disabled } : {},
|
|
1222
|
-
...e.readonly != null ? { readonly: e.readonly } : {},
|
|
1223
|
-
...e.defaultValue != null ? { defaultValue: e.defaultValue } : {},
|
|
1224
|
-
...e.validator != null ? { validator: e.validator } : {},
|
|
1225
|
-
props: e.props ?? {}
|
|
1226
|
-
})
|
|
1227
|
-
}), { gsl: en, gslByUid: tn } = p({
|
|
1228
|
-
itemType: "CUSTOM_ACTION",
|
|
1229
|
-
entryShape: "bare",
|
|
1230
|
-
mapToWidget: (e) => {
|
|
1231
|
-
const {
|
|
1232
|
-
uid: t,
|
|
1233
|
-
label: n,
|
|
1234
|
-
disabled: s,
|
|
1235
|
-
on: i,
|
|
1236
|
-
onClick: r,
|
|
1237
|
-
data: l,
|
|
1238
|
-
customType: o,
|
|
1239
|
-
tags: a,
|
|
1240
|
-
size: u,
|
|
1241
|
-
include: c,
|
|
1242
|
-
exclude: y,
|
|
1243
|
-
states: d,
|
|
1244
|
-
props: T,
|
|
1245
|
-
...E
|
|
1246
|
-
} = e;
|
|
1247
|
-
return {
|
|
1248
|
-
uid: t ?? "",
|
|
1249
|
-
kind: "action",
|
|
1250
|
-
type: e.customType,
|
|
1251
|
-
label: n,
|
|
1252
|
-
disabled: s,
|
|
1253
|
-
...i != null ? { on: i } : {},
|
|
1254
|
-
props: { ...T, ...E }
|
|
1255
|
-
};
|
|
1256
|
-
},
|
|
1257
|
-
afterMerge: (e, t) => C.extractOnClickFromMergeResult(
|
|
1258
|
-
e,
|
|
1259
|
-
t.eventRegistry,
|
|
1260
|
-
t.formConfig,
|
|
1261
|
-
t.eventIdGenerator
|
|
1262
|
-
)
|
|
1263
|
-
}), { gsl: nn, gslByUid: sn } = p({
|
|
1264
|
-
itemType: "CUSTOM_DISPLAY",
|
|
1265
|
-
entryShape: "bare",
|
|
1266
|
-
mapToWidget: (e) => ({
|
|
1267
|
-
uid: e.uid ?? "",
|
|
1268
|
-
kind: "display",
|
|
1269
|
-
type: e.customType,
|
|
1270
|
-
props: e.props ?? {}
|
|
1271
|
-
})
|
|
1272
|
-
});
|
|
1273
|
-
function rn(e) {
|
|
1274
|
-
return {
|
|
1275
|
-
uid: e.uid ?? "",
|
|
1276
|
-
kind: "layout",
|
|
1277
|
-
type: e.customType,
|
|
1278
|
-
props: e.props ?? {},
|
|
1279
|
-
children: []
|
|
1280
|
-
};
|
|
1281
|
-
}
|
|
1282
|
-
function ln(e, t) {
|
|
1283
|
-
const n = t.walkChildren(t.children ?? []);
|
|
1284
|
-
if (e.kind === "static")
|
|
1285
|
-
return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: n };
|
|
1286
|
-
const s = e.fn;
|
|
1287
|
-
return ((i) => {
|
|
1288
|
-
const r = s(i);
|
|
1289
|
-
return { ...t.mapStaticDef(r, "CUSTOM_LAYOUT"), children: n };
|
|
1290
|
-
});
|
|
1291
|
-
}
|
|
1292
|
-
function an(e) {
|
|
1293
|
-
return e.children;
|
|
1294
|
-
}
|
|
1295
|
-
const { gsl: on, gslByUid: un } = p({
|
|
1296
|
-
itemType: "CUSTOM_LAYOUT",
|
|
1297
|
-
entryShape: "compound",
|
|
1298
|
-
mapToWidget: rn,
|
|
1299
|
-
buildCustomWidget: ln,
|
|
1300
|
-
getChildren: an
|
|
1301
|
-
});
|
|
1302
|
-
class _ {
|
|
340
|
+
const Qt = (s) => p(s, (t) => t.type === "text"), Zt = (s) => p(s, (t) => t.type === "number"), Jt = (s) => p(s, (t) => t.type === "boolean");
|
|
341
|
+
class y {
|
|
1303
342
|
constructor(t) {
|
|
1304
343
|
this.conditions = t;
|
|
1305
344
|
}
|
|
1306
345
|
static root() {
|
|
1307
|
-
return new
|
|
346
|
+
return new y([]);
|
|
1308
347
|
}
|
|
1309
348
|
// ─── Scope methods (chain-extending, immutable) ───
|
|
1310
349
|
tag(t) {
|
|
1311
|
-
return new
|
|
350
|
+
return new y([...this.conditions, { kind: "tagsAnd", tags: [t] }]);
|
|
1312
351
|
}
|
|
1313
352
|
state(t) {
|
|
1314
|
-
return new
|
|
353
|
+
return new y([...this.conditions, { kind: "state", name: t }]);
|
|
1315
354
|
}
|
|
1316
355
|
tagsAnd(t) {
|
|
1317
|
-
return new
|
|
356
|
+
return new y([...this.conditions, { kind: "tagsAnd", tags: t }]);
|
|
1318
357
|
}
|
|
1319
358
|
tagsOr(t) {
|
|
1320
|
-
return new
|
|
359
|
+
return new y([...this.conditions, { kind: "tagsOr", tags: t }]);
|
|
1321
360
|
}
|
|
1322
361
|
apply(t) {
|
|
1323
362
|
if (this.conditions.length === 0) return t;
|
|
1324
|
-
const
|
|
363
|
+
const e = this.conditions.find(
|
|
1325
364
|
(r) => r.kind === "state"
|
|
1326
|
-
),
|
|
365
|
+
), n = this.conditions.filter(
|
|
1327
366
|
(r) => r.kind !== "state"
|
|
1328
|
-
),
|
|
367
|
+
), o = t.matcher;
|
|
1329
368
|
return {
|
|
1330
369
|
...t,
|
|
1331
370
|
matcher: (r) => {
|
|
1332
|
-
if (!
|
|
1333
|
-
for (const
|
|
1334
|
-
const
|
|
1335
|
-
if (
|
|
1336
|
-
for (const a of
|
|
1337
|
-
if (!
|
|
371
|
+
if (!o(r)) return !1;
|
|
372
|
+
for (const i of n) {
|
|
373
|
+
const u = r.tags ?? [];
|
|
374
|
+
if (i.kind === "tagsAnd") {
|
|
375
|
+
for (const a of i.tags)
|
|
376
|
+
if (!u.includes(a)) return !1;
|
|
1338
377
|
} else {
|
|
1339
|
-
if (
|
|
1340
|
-
if (!
|
|
378
|
+
if (i.tags.length === 0) continue;
|
|
379
|
+
if (!i.tags.some((a) => u.includes(a))) return !1;
|
|
1341
380
|
}
|
|
1342
381
|
}
|
|
1343
382
|
return !0;
|
|
1344
383
|
},
|
|
1345
|
-
...
|
|
384
|
+
...e ? { targetState: e.name } : {}
|
|
1346
385
|
};
|
|
1347
386
|
}
|
|
1348
387
|
// ─── Type selectors — inputs ───
|
|
1349
388
|
inputs(t) {
|
|
1350
|
-
return this.apply(
|
|
389
|
+
return this.apply(p(t));
|
|
1351
390
|
}
|
|
1352
|
-
inputByUid(t,
|
|
1353
|
-
return this.apply(
|
|
391
|
+
inputByUid(t, e) {
|
|
392
|
+
return this.apply(I(t, e));
|
|
1354
393
|
}
|
|
1355
394
|
textInputs(t) {
|
|
1356
|
-
return this.apply(
|
|
395
|
+
return this.apply(Qt(t));
|
|
1357
396
|
}
|
|
1358
397
|
numberInputs(t) {
|
|
1359
|
-
return this.apply(
|
|
398
|
+
return this.apply(Zt(t));
|
|
1360
399
|
}
|
|
1361
400
|
booleanInputs(t) {
|
|
1362
|
-
return this.apply(
|
|
401
|
+
return this.apply(Jt(t));
|
|
1363
402
|
}
|
|
1364
403
|
selects(t) {
|
|
1365
|
-
return this.apply(
|
|
404
|
+
return this.apply(_(t));
|
|
1366
405
|
}
|
|
1367
|
-
selectByUid(t,
|
|
1368
|
-
return this.apply(
|
|
406
|
+
selectByUid(t, e) {
|
|
407
|
+
return this.apply(E(t, e));
|
|
1369
408
|
}
|
|
1370
409
|
dropdowns(t) {
|
|
1371
|
-
return this.apply(
|
|
410
|
+
return this.apply(h(t));
|
|
1372
411
|
}
|
|
1373
|
-
dropdownByUid(t,
|
|
1374
|
-
return this.apply(
|
|
412
|
+
dropdownByUid(t, e) {
|
|
413
|
+
return this.apply(S(t, e));
|
|
1375
414
|
}
|
|
1376
415
|
radiogroups(t) {
|
|
1377
|
-
return this.apply(
|
|
416
|
+
return this.apply(U(t));
|
|
1378
417
|
}
|
|
1379
|
-
radiogroupByUid(t,
|
|
1380
|
-
return this.apply(
|
|
418
|
+
radiogroupByUid(t, e) {
|
|
419
|
+
return this.apply(k(t, e));
|
|
1381
420
|
}
|
|
1382
421
|
checkboxes(t) {
|
|
1383
|
-
return this.apply(
|
|
422
|
+
return this.apply(A(t));
|
|
1384
423
|
}
|
|
1385
|
-
checkboxByUid(t,
|
|
1386
|
-
return this.apply(
|
|
424
|
+
checkboxByUid(t, e) {
|
|
425
|
+
return this.apply(M(t, e));
|
|
1387
426
|
}
|
|
1388
427
|
textareas(t) {
|
|
1389
|
-
return this.apply(
|
|
428
|
+
return this.apply(B(t));
|
|
1390
429
|
}
|
|
1391
|
-
textareaByUid(t,
|
|
1392
|
-
return this.apply(
|
|
430
|
+
textareaByUid(t, e) {
|
|
431
|
+
return this.apply(D(t, e));
|
|
1393
432
|
}
|
|
1394
433
|
passwords(t) {
|
|
1395
|
-
return this.apply(
|
|
434
|
+
return this.apply(P(t));
|
|
1396
435
|
}
|
|
1397
|
-
passwordByUid(t,
|
|
1398
|
-
return this.apply(
|
|
436
|
+
passwordByUid(t, e) {
|
|
437
|
+
return this.apply(w(t, e));
|
|
1399
438
|
}
|
|
1400
439
|
currencies(t) {
|
|
1401
|
-
return this.apply(
|
|
440
|
+
return this.apply(R(t));
|
|
1402
441
|
}
|
|
1403
|
-
currencyByUid(t,
|
|
1404
|
-
return this.apply(
|
|
442
|
+
currencyByUid(t, e) {
|
|
443
|
+
return this.apply(x(t, e));
|
|
1405
444
|
}
|
|
1406
445
|
markdowns(t) {
|
|
1407
|
-
return this.apply(
|
|
446
|
+
return this.apply(N(t));
|
|
1408
447
|
}
|
|
1409
|
-
markdownByUid(t,
|
|
1410
|
-
return this.apply(
|
|
448
|
+
markdownByUid(t, e) {
|
|
449
|
+
return this.apply(b(t, e));
|
|
1411
450
|
}
|
|
1412
451
|
lists(t) {
|
|
1413
|
-
return this.apply(
|
|
452
|
+
return this.apply(L(t));
|
|
1414
453
|
}
|
|
1415
|
-
listByUid(t,
|
|
1416
|
-
return this.apply(
|
|
454
|
+
listByUid(t, e) {
|
|
455
|
+
return this.apply(C(t, e));
|
|
1417
456
|
}
|
|
1418
457
|
calendars(t) {
|
|
1419
|
-
return this.apply(
|
|
458
|
+
return this.apply(G(t));
|
|
1420
459
|
}
|
|
1421
|
-
calendarByUid(t,
|
|
1422
|
-
return this.apply(
|
|
460
|
+
calendarByUid(t, e) {
|
|
461
|
+
return this.apply(W(t, e));
|
|
1423
462
|
}
|
|
1424
463
|
dateInputs(t) {
|
|
1425
|
-
return this.apply(
|
|
464
|
+
return this.apply(F(t));
|
|
1426
465
|
}
|
|
1427
|
-
dateInputByUid(t,
|
|
1428
|
-
return this.apply(
|
|
466
|
+
dateInputByUid(t, e) {
|
|
467
|
+
return this.apply(Y(t, e));
|
|
1429
468
|
}
|
|
1430
469
|
datePickers(t) {
|
|
1431
|
-
return this.apply(
|
|
470
|
+
return this.apply($(t));
|
|
1432
471
|
}
|
|
1433
|
-
datePickerByUid(t,
|
|
1434
|
-
return this.apply(
|
|
472
|
+
datePickerByUid(t, e) {
|
|
473
|
+
return this.apply(K(t, e));
|
|
1435
474
|
}
|
|
1436
475
|
rangeCalendars(t) {
|
|
1437
|
-
return this.apply(
|
|
476
|
+
return this.apply(j(t));
|
|
1438
477
|
}
|
|
1439
|
-
rangeCalendarByUid(t,
|
|
1440
|
-
return this.apply(
|
|
478
|
+
rangeCalendarByUid(t, e) {
|
|
479
|
+
return this.apply(z(t, e));
|
|
1441
480
|
}
|
|
1442
481
|
rangeDateInputs(t) {
|
|
1443
|
-
return this.apply(
|
|
482
|
+
return this.apply(H(t));
|
|
1444
483
|
}
|
|
1445
|
-
rangeDateInputByUid(t,
|
|
1446
|
-
return this.apply(
|
|
484
|
+
rangeDateInputByUid(t, e) {
|
|
485
|
+
return this.apply(X(t, e));
|
|
1447
486
|
}
|
|
1448
487
|
rangeDatePickers(t) {
|
|
1449
|
-
return this.apply(
|
|
488
|
+
return this.apply(v(t));
|
|
1450
489
|
}
|
|
1451
|
-
rangeDatePickerByUid(t,
|
|
1452
|
-
return this.apply(
|
|
490
|
+
rangeDatePickerByUid(t, e) {
|
|
491
|
+
return this.apply(V(t, e));
|
|
1453
492
|
}
|
|
1454
493
|
repeaters(t) {
|
|
1455
|
-
return this.apply(
|
|
494
|
+
return this.apply(q(t));
|
|
1456
495
|
}
|
|
1457
|
-
repeaterByUid(t,
|
|
1458
|
-
return this.apply(
|
|
496
|
+
repeaterByUid(t, e) {
|
|
497
|
+
return this.apply(Q(t, e));
|
|
1459
498
|
}
|
|
1460
499
|
// ─── Type selectors — actions, displays, layouts ───
|
|
1461
500
|
actions(t) {
|
|
1462
|
-
return this.apply(
|
|
501
|
+
return this.apply(Z(t));
|
|
1463
502
|
}
|
|
1464
|
-
actionByUid(t,
|
|
1465
|
-
return this.apply(
|
|
503
|
+
actionByUid(t, e) {
|
|
504
|
+
return this.apply(J(t, e));
|
|
1466
505
|
}
|
|
1467
506
|
layouts(t) {
|
|
1468
|
-
return this.apply(
|
|
507
|
+
return this.apply(O(t));
|
|
1469
508
|
}
|
|
1470
|
-
layoutByUid(t,
|
|
1471
|
-
return this.apply(
|
|
509
|
+
layoutByUid(t, e) {
|
|
510
|
+
return this.apply(tt(t, e));
|
|
1472
511
|
}
|
|
1473
512
|
displays(t) {
|
|
1474
|
-
return this.apply(
|
|
513
|
+
return this.apply(et(t));
|
|
1475
514
|
}
|
|
1476
|
-
displayByUid(t,
|
|
1477
|
-
return this.apply(
|
|
515
|
+
displayByUid(t, e) {
|
|
516
|
+
return this.apply(st(t, e));
|
|
1478
517
|
}
|
|
1479
518
|
alerts(t) {
|
|
1480
|
-
return this.apply(
|
|
519
|
+
return this.apply(nt(t));
|
|
1481
520
|
}
|
|
1482
|
-
alertByUid(t,
|
|
1483
|
-
return this.apply(
|
|
521
|
+
alertByUid(t, e) {
|
|
522
|
+
return this.apply(it(t, e));
|
|
1484
523
|
}
|
|
1485
524
|
tabs(t) {
|
|
1486
|
-
return this.apply(
|
|
525
|
+
return this.apply(rt(t));
|
|
1487
526
|
}
|
|
1488
|
-
tabsByUid(t,
|
|
1489
|
-
return this.apply(
|
|
527
|
+
tabsByUid(t, e) {
|
|
528
|
+
return this.apply(ot(t, e));
|
|
1490
529
|
}
|
|
1491
530
|
accordions(t) {
|
|
1492
|
-
return this.apply(
|
|
531
|
+
return this.apply(at(t));
|
|
1493
532
|
}
|
|
1494
|
-
accordionByUid(t,
|
|
1495
|
-
return this.apply(
|
|
533
|
+
accordionByUid(t, e) {
|
|
534
|
+
return this.apply(ut(t, e));
|
|
1496
535
|
}
|
|
1497
536
|
// ─── Type selectors — custom kinds ───
|
|
1498
537
|
customInputs(t) {
|
|
1499
|
-
return this.apply(
|
|
538
|
+
return this.apply(ct(t));
|
|
1500
539
|
}
|
|
1501
|
-
customInputByUid(t,
|
|
1502
|
-
return this.apply(
|
|
540
|
+
customInputByUid(t, e) {
|
|
541
|
+
return this.apply(yt(t, e));
|
|
1503
542
|
}
|
|
1504
543
|
customActions(t) {
|
|
1505
|
-
return this.apply(
|
|
544
|
+
return this.apply(dt(t));
|
|
1506
545
|
}
|
|
1507
|
-
customActionByUid(t,
|
|
1508
|
-
return this.apply(
|
|
546
|
+
customActionByUid(t, e) {
|
|
547
|
+
return this.apply(pt(t, e));
|
|
1509
548
|
}
|
|
1510
549
|
customDisplays(t) {
|
|
1511
|
-
return this.apply(
|
|
550
|
+
return this.apply(mt(t));
|
|
1512
551
|
}
|
|
1513
|
-
customDisplayByUid(t,
|
|
1514
|
-
return this.apply(
|
|
552
|
+
customDisplayByUid(t, e) {
|
|
553
|
+
return this.apply(lt(t, e));
|
|
1515
554
|
}
|
|
1516
555
|
customLayouts(t) {
|
|
1517
|
-
return this.apply(
|
|
556
|
+
return this.apply(ft(t));
|
|
1518
557
|
}
|
|
1519
|
-
customLayoutByUid(t,
|
|
1520
|
-
return this.apply(
|
|
558
|
+
customLayoutByUid(t, e) {
|
|
559
|
+
return this.apply(gt(t, e));
|
|
1521
560
|
}
|
|
1522
561
|
}
|
|
1523
|
-
const
|
|
562
|
+
const ce = {
|
|
1524
563
|
inputs: {
|
|
1525
|
-
textInput:
|
|
1526
|
-
numberInput:
|
|
1527
|
-
booleanInput:
|
|
1528
|
-
select:
|
|
1529
|
-
dropdown:
|
|
1530
|
-
radiogroup:
|
|
1531
|
-
checkbox:
|
|
1532
|
-
textarea:
|
|
1533
|
-
password:
|
|
1534
|
-
currency:
|
|
1535
|
-
markdown:
|
|
1536
|
-
list:
|
|
1537
|
-
calendar:
|
|
1538
|
-
dateInput:
|
|
1539
|
-
datePicker:
|
|
1540
|
-
rangeCalendar:
|
|
1541
|
-
rangeDateInput:
|
|
1542
|
-
rangeDatePicker:
|
|
1543
|
-
repeater:
|
|
1544
|
-
custom:
|
|
564
|
+
textInput: Et,
|
|
565
|
+
numberInput: ht,
|
|
566
|
+
booleanInput: St,
|
|
567
|
+
select: Ut,
|
|
568
|
+
dropdown: kt,
|
|
569
|
+
radiogroup: At,
|
|
570
|
+
checkbox: Mt,
|
|
571
|
+
textarea: Bt,
|
|
572
|
+
password: Dt,
|
|
573
|
+
currency: Pt,
|
|
574
|
+
markdown: wt,
|
|
575
|
+
list: Rt,
|
|
576
|
+
calendar: xt,
|
|
577
|
+
dateInput: Nt,
|
|
578
|
+
datePicker: bt,
|
|
579
|
+
rangeCalendar: Lt,
|
|
580
|
+
rangeDateInput: Ct,
|
|
581
|
+
rangeDatePicker: Gt,
|
|
582
|
+
repeater: qt,
|
|
583
|
+
custom: Wt
|
|
1545
584
|
},
|
|
1546
585
|
actions: {
|
|
1547
|
-
button:
|
|
1548
|
-
submitButton:
|
|
1549
|
-
custom:
|
|
586
|
+
button: _t,
|
|
587
|
+
submitButton: It,
|
|
588
|
+
custom: Ft
|
|
1550
589
|
},
|
|
1551
590
|
displays: {
|
|
1552
|
-
display:
|
|
1553
|
-
alert:
|
|
1554
|
-
custom:
|
|
591
|
+
display: Tt,
|
|
592
|
+
alert: Yt,
|
|
593
|
+
custom: $t
|
|
1555
594
|
},
|
|
1556
595
|
layouts: {
|
|
1557
|
-
flex:
|
|
1558
|
-
horizontalFlex:
|
|
1559
|
-
verticalFlex:
|
|
1560
|
-
grid:
|
|
1561
|
-
horizontalGrid:
|
|
1562
|
-
verticalGrid:
|
|
1563
|
-
tabs:
|
|
1564
|
-
accordion:
|
|
1565
|
-
custom:
|
|
596
|
+
flex: m,
|
|
597
|
+
horizontalFlex: Kt,
|
|
598
|
+
verticalFlex: jt,
|
|
599
|
+
grid: l,
|
|
600
|
+
horizontalGrid: zt,
|
|
601
|
+
verticalGrid: Ht,
|
|
602
|
+
tabs: Xt,
|
|
603
|
+
accordion: vt,
|
|
604
|
+
custom: Vt
|
|
1566
605
|
},
|
|
1567
|
-
selectors:
|
|
606
|
+
selectors: y.root()
|
|
1568
607
|
};
|
|
1569
|
-
function
|
|
1570
|
-
return t.map((
|
|
1571
|
-
...
|
|
1572
|
-
targetState:
|
|
608
|
+
function ye(s, ...t) {
|
|
609
|
+
return t.map((e) => ({
|
|
610
|
+
...e,
|
|
611
|
+
targetState: s
|
|
1573
612
|
}));
|
|
1574
613
|
}
|
|
1575
|
-
function
|
|
614
|
+
function de(s, ...t) {
|
|
1576
615
|
return {
|
|
1577
616
|
kind: "aggregated",
|
|
1578
|
-
matcher: (
|
|
617
|
+
matcher: (e) => e.tags?.includes(s) ?? !1,
|
|
1579
618
|
children: t
|
|
1580
619
|
};
|
|
1581
620
|
}
|
|
1582
|
-
|
|
1583
|
-
INPUTS: /* @__PURE__ */ new Set([
|
|
1584
|
-
"INPUTS",
|
|
1585
|
-
"TEXTAREA",
|
|
1586
|
-
"PASSWORD",
|
|
1587
|
-
"SELECT",
|
|
1588
|
-
"DROPDOWN",
|
|
1589
|
-
"RADIOGROUP",
|
|
1590
|
-
"CHECKBOX",
|
|
1591
|
-
"CALENDAR",
|
|
1592
|
-
"DATE_INPUT",
|
|
1593
|
-
"DATE_PICKER",
|
|
1594
|
-
"RANGE_CALENDAR",
|
|
1595
|
-
"RANGE_DATE_INPUT",
|
|
1596
|
-
"RANGE_DATE_PICKER",
|
|
1597
|
-
"CURRENCY",
|
|
1598
|
-
"MARKDOWN",
|
|
1599
|
-
"LIST",
|
|
1600
|
-
"CUSTOM_INPUT",
|
|
1601
|
-
"REPEATER"
|
|
1602
|
-
]),
|
|
1603
|
-
ACTIONS: /* @__PURE__ */ new Set(["ACTIONS", "CUSTOM_ACTION"]),
|
|
1604
|
-
DISPLAYS: /* @__PURE__ */ new Set(["DISPLAYS", "ALERTS", "CUSTOM_DISPLAY"]),
|
|
1605
|
-
LAYOUTS: /* @__PURE__ */ new Set(["LAYOUTS", "TABS", "ACCORDION", "CUSTOM_LAYOUT"])
|
|
1606
|
-
};
|
|
1607
|
-
function cn(e, t) {
|
|
1608
|
-
const n = ee[e];
|
|
1609
|
-
return n ? n.has(t) : e === t;
|
|
1610
|
-
}
|
|
1611
|
-
class pn {
|
|
1612
|
-
resolve(t, n) {
|
|
1613
|
-
const s = [];
|
|
1614
|
-
for (const r of n)
|
|
1615
|
-
r.kind === "aggregated" ? this.collectFromAggregated(r, t, s) : this.collectFromLeaf(r, t, s);
|
|
1616
|
-
const i = this.rollUpSensibleDefaults(s);
|
|
1617
|
-
return {
|
|
1618
|
-
leafSelectors: s,
|
|
1619
|
-
sensibleDefaults: i
|
|
1620
|
-
};
|
|
1621
|
-
}
|
|
1622
|
-
collectFromAggregated(t, n, s) {
|
|
1623
|
-
if (t.matcher(n))
|
|
1624
|
-
for (const i of t.children)
|
|
1625
|
-
this.collectFromLeaf(i, n, s);
|
|
1626
|
-
}
|
|
1627
|
-
collectFromLeaf(t, n, s) {
|
|
1628
|
-
cn(t.selectorType, n.itemType ?? "") && t.matcher(n) && s.push(t);
|
|
1629
|
-
}
|
|
1630
|
-
rollUpSensibleDefaults(t) {
|
|
1631
|
-
const n = /* @__PURE__ */ new Map(), s = (r, l) => {
|
|
1632
|
-
const o = n.get(r) ?? [];
|
|
1633
|
-
o.push(l), n.set(r, o);
|
|
1634
|
-
};
|
|
1635
|
-
for (const r of t) {
|
|
1636
|
-
const l = ee[r.selectorType];
|
|
1637
|
-
if (l)
|
|
1638
|
-
for (const o of l) s(o, r);
|
|
1639
|
-
else
|
|
1640
|
-
s(r.selectorType, r);
|
|
1641
|
-
}
|
|
1642
|
-
const i = {};
|
|
1643
|
-
for (const [r, l] of n)
|
|
1644
|
-
q(r) && (i[r] = I(r).rollUpSensibleDefaults(l));
|
|
1645
|
-
return i;
|
|
1646
|
-
}
|
|
1647
|
-
}
|
|
1648
|
-
const dn = new pn();
|
|
1649
|
-
class yn {
|
|
1650
|
-
constructor(t) {
|
|
1651
|
-
this.objectUtils = t;
|
|
1652
|
-
}
|
|
1653
|
-
merge(t, n, s) {
|
|
1654
|
-
let i = {}, r = null;
|
|
1655
|
-
typeof t == "function" && (r = t);
|
|
1656
|
-
const l = this.collectDecorators(s);
|
|
1657
|
-
for (const u of l) {
|
|
1658
|
-
if (r != null) {
|
|
1659
|
-
r = this.composeRuntimeFunctions(r, u);
|
|
1660
|
-
continue;
|
|
1661
|
-
}
|
|
1662
|
-
if (typeof u == "function") {
|
|
1663
|
-
const c = u({
|
|
1664
|
-
...i,
|
|
1665
|
-
...typeof t == "function" ? {} : t
|
|
1666
|
-
});
|
|
1667
|
-
if (typeof c == "function") {
|
|
1668
|
-
r = this.createPromotedFunction(
|
|
1669
|
-
i,
|
|
1670
|
-
t,
|
|
1671
|
-
c,
|
|
1672
|
-
n,
|
|
1673
|
-
s
|
|
1674
|
-
);
|
|
1675
|
-
continue;
|
|
1676
|
-
}
|
|
1677
|
-
i = this.objectUtils.deepMerge(i, c);
|
|
1678
|
-
} else
|
|
1679
|
-
i = this.objectUtils.deepMerge(i, u);
|
|
1680
|
-
}
|
|
1681
|
-
if (r != null)
|
|
1682
|
-
return {
|
|
1683
|
-
kind: "dynamic",
|
|
1684
|
-
fn: this.wrapWithSensibleDefaults(r, i, n, s)
|
|
1685
|
-
};
|
|
1686
|
-
const o = this.objectUtils.deepMerge(t, i);
|
|
1687
|
-
return { kind: "static", def: this.applySensibleDefaults({ ...o }, n, s) };
|
|
1688
|
-
}
|
|
1689
|
-
// ── Collect all decorators in priority order ──
|
|
1690
|
-
collectDecorators(t) {
|
|
1691
|
-
const n = [];
|
|
1692
|
-
for (const s of t.leafSelectors) {
|
|
1693
|
-
const i = s.config;
|
|
1694
|
-
i.override != null && n.push(i.override);
|
|
1695
|
-
}
|
|
1696
|
-
return n;
|
|
1697
|
-
}
|
|
1698
|
-
// ── Apply sensible defaults via registry ──
|
|
1699
|
-
applySensibleDefaults(t, n, s) {
|
|
1700
|
-
if (!q(n)) return t;
|
|
1701
|
-
const i = s.sensibleDefaults[n] ?? {};
|
|
1702
|
-
return I(n).applySensibleDefaults(t, i);
|
|
1703
|
-
}
|
|
1704
|
-
// ── Create promoted FunctionWidget ──
|
|
1705
|
-
createPromotedFunction(t, n, s, i, r) {
|
|
1706
|
-
return (l) => {
|
|
1707
|
-
const o = s(l);
|
|
1708
|
-
let a = this.objectUtils.deepMerge(t, o);
|
|
1709
|
-
return a = this.objectUtils.deepMerge(a, n), this.applySensibleDefaults(a, i, r);
|
|
1710
|
-
};
|
|
1711
|
-
}
|
|
1712
|
-
// ── Wrap runtime function with accumulated static decorators and sensible defaults ──
|
|
1713
|
-
wrapWithSensibleDefaults(t, n, s, i) {
|
|
1714
|
-
return (r) => {
|
|
1715
|
-
let l = t(r);
|
|
1716
|
-
return Object.keys(n).length > 0 && (l = this.objectUtils.deepMerge(n, l)), this.applySensibleDefaults(l, s, i);
|
|
1717
|
-
};
|
|
1718
|
-
}
|
|
1719
|
-
// ── Compose two runtime functions ──
|
|
1720
|
-
composeRuntimeFunctions(t, n) {
|
|
1721
|
-
return typeof n == "function" ? (s) => {
|
|
1722
|
-
const i = t(s), r = n(i);
|
|
1723
|
-
return typeof r == "function" ? r(s) : this.objectUtils.deepMerge(r, i);
|
|
1724
|
-
} : (s) => {
|
|
1725
|
-
const i = t(s);
|
|
1726
|
-
return this.objectUtils.deepMerge(i, n);
|
|
1727
|
-
};
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
const mn = new yn(G);
|
|
1731
|
-
class gn {
|
|
1732
|
-
mapToWidget(t, n) {
|
|
1733
|
-
if (t.kind === "dynamic") {
|
|
1734
|
-
const s = t.fn;
|
|
1735
|
-
return ((i) => {
|
|
1736
|
-
const r = s(i);
|
|
1737
|
-
return this.mapStaticDef(r, n);
|
|
1738
|
-
});
|
|
1739
|
-
}
|
|
1740
|
-
return this.mapStaticDef(t.def, n);
|
|
1741
|
-
}
|
|
1742
|
-
mapStaticDef(t, n) {
|
|
1743
|
-
const s = I(n).mapToWidget(t);
|
|
1744
|
-
return this.applyBaseWidgetFields(s, t);
|
|
1745
|
-
}
|
|
1746
|
-
/**
|
|
1747
|
-
* Injects BaseWidget-level fields that all widget types share.
|
|
1748
|
-
* Centralized here so individual mappers don't need to repeat the pattern.
|
|
1749
|
-
*/
|
|
1750
|
-
applyBaseWidgetFields(t, n) {
|
|
1751
|
-
return n.size != null && (t.size = n.size), n.defaultValue != null && t.kind === "input" && (t.defaultValue = n.defaultValue), n.on != null && (t.on = n.on), n.include != null && (t.include = n.include), n.exclude != null && (t.exclude = n.exclude), t;
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
const bn = new gn();
|
|
1755
|
-
class fn {
|
|
1756
|
-
/**
|
|
1757
|
-
* Ensures the output is always a uniform GslSelector[] of aggregated selectors.
|
|
1758
|
-
*
|
|
1759
|
-
* Callers can pass flat leaf selectors (single styling rules) or pre-grouped
|
|
1760
|
-
* aggregated selectors. This method separates them into two buckets, then wraps
|
|
1761
|
-
* any bare leaves into a catch-all aggregated selector so downstream code only
|
|
1762
|
-
* deals with one shape.
|
|
1763
|
-
*/
|
|
1764
|
-
normalizeSelectors(t) {
|
|
1765
|
-
const n = Array.isArray(t) ? t : [t], s = [], i = [];
|
|
1766
|
-
for (const r of n)
|
|
1767
|
-
r.kind === "leaf" ? i.push(r) : s.push(r);
|
|
1768
|
-
return i.length > 0 && s.unshift({
|
|
1769
|
-
kind: "aggregated",
|
|
1770
|
-
matcher: () => !0,
|
|
1771
|
-
children: i
|
|
1772
|
-
}), s;
|
|
1773
|
-
}
|
|
1774
|
-
extractFormConfig() {
|
|
1775
|
-
return {
|
|
1776
|
-
suppressAutomaticStack: !1,
|
|
1777
|
-
suppressAutomaticSubmit: !1,
|
|
1778
|
-
onSubmit: (t) => console.log("Form submitted:", t)
|
|
1779
|
-
};
|
|
1780
|
-
}
|
|
1781
|
-
}
|
|
1782
|
-
const hn = new fn();
|
|
1783
|
-
function Tn() {
|
|
1784
|
-
let e = 0;
|
|
1785
|
-
return { next: () => `event_${e++}` };
|
|
1786
|
-
}
|
|
1787
|
-
class Sn {
|
|
1788
|
-
constructor(t, n, s, i, r) {
|
|
1789
|
-
this.resolver = t, this.merger = n, this.mapper = s, this.eventWiring = i, this.stateExpansion = r;
|
|
1790
|
-
}
|
|
1791
|
-
walkAndMap(t, n, s) {
|
|
1792
|
-
const i = /* @__PURE__ */ new Map(), r = Tn(), l = { value: 0 }, o = /* @__PURE__ */ new Set();
|
|
1793
|
-
return { widgets: this.walkItems(
|
|
1794
|
-
t,
|
|
1795
|
-
n,
|
|
1796
|
-
i,
|
|
1797
|
-
s,
|
|
1798
|
-
r,
|
|
1799
|
-
l,
|
|
1800
|
-
o
|
|
1801
|
-
), eventRegistry: i };
|
|
1802
|
-
}
|
|
1803
|
-
walkItems(t, n, s, i, r, l, o) {
|
|
1804
|
-
return t.flatMap((a) => {
|
|
1805
|
-
if (a.type !== "ITEMS")
|
|
1806
|
-
throw new Error("Unexpected gui shortcut type");
|
|
1807
|
-
return a.items.map((u) => this.processItem(
|
|
1808
|
-
u,
|
|
1809
|
-
a.itemType,
|
|
1810
|
-
a.tags,
|
|
1811
|
-
n,
|
|
1812
|
-
s,
|
|
1813
|
-
i,
|
|
1814
|
-
r,
|
|
1815
|
-
l,
|
|
1816
|
-
o
|
|
1817
|
-
));
|
|
1818
|
-
});
|
|
1819
|
-
}
|
|
1820
|
-
processItem(t, n, s, i, r, l, o, a, u) {
|
|
1821
|
-
const c = n, y = I(n), d = y.parseEntry(t), T = this.buildBaseDef(d), E = this.buildDecoratorForMatching(T, c, s), U = this.resolver.resolve(E, i), R = U.leafSelectors.filter((b) => b.targetState != null), N = {
|
|
1822
|
-
leafSelectors: U.leafSelectors.filter((b) => b.targetState == null),
|
|
1823
|
-
sensibleDefaults: U.sensibleDefaults
|
|
1824
|
-
};
|
|
1825
|
-
let k = this.merger.merge(T, c, N);
|
|
1826
|
-
y.afterMerge && (k = y.afterMerge(k, {
|
|
1827
|
-
eventRegistry: r,
|
|
1828
|
-
formConfig: l,
|
|
1829
|
-
eventIdGenerator: o
|
|
1830
|
-
})), k = this.eventWiring.wireInputLayoutEvents(
|
|
1831
|
-
k,
|
|
1832
|
-
r,
|
|
1833
|
-
o
|
|
1834
|
-
);
|
|
1835
|
-
const { cleanedResult: W, stateData: v } = this.stateExpansion.extractFromMergeResult(
|
|
1836
|
-
k,
|
|
1837
|
-
R
|
|
1838
|
-
);
|
|
1839
|
-
let S;
|
|
1840
|
-
if (y.buildCustomWidget) {
|
|
1841
|
-
const b = this.buildCustomWidgetContext(
|
|
1842
|
-
d.children,
|
|
1843
|
-
i,
|
|
1844
|
-
r,
|
|
1845
|
-
l,
|
|
1846
|
-
o,
|
|
1847
|
-
a,
|
|
1848
|
-
u
|
|
1849
|
-
);
|
|
1850
|
-
S = this.buildCustomWidget(y, W, b);
|
|
1851
|
-
} else
|
|
1852
|
-
S = this.mapper.mapToWidget(W, c);
|
|
1853
|
-
if (typeof S != "function") {
|
|
1854
|
-
const b = S;
|
|
1855
|
-
b.uid || (b.path && !u.has(b.path) ? (b.uid = b.path, u.add(b.path)) : b.uid = `dx_${a.value++}`);
|
|
1856
|
-
}
|
|
1857
|
-
if (this.stateExpansion.hasStateData(v))
|
|
1858
|
-
if (typeof S == "function") {
|
|
1859
|
-
const b = S;
|
|
1860
|
-
S = ((te) => {
|
|
1861
|
-
const ne = b(te);
|
|
1862
|
-
return this.stateExpansion.applyToWidget(
|
|
1863
|
-
ne,
|
|
1864
|
-
v,
|
|
1865
|
-
r,
|
|
1866
|
-
o
|
|
1867
|
-
);
|
|
1868
|
-
});
|
|
1869
|
-
} else
|
|
1870
|
-
S = this.stateExpansion.applyToWidget(
|
|
1871
|
-
S,
|
|
1872
|
-
v,
|
|
1873
|
-
r,
|
|
1874
|
-
o
|
|
1875
|
-
);
|
|
1876
|
-
return S;
|
|
1877
|
-
}
|
|
1878
|
-
buildCustomWidgetContext(t, n, s, i, r, l, o) {
|
|
1879
|
-
return {
|
|
1880
|
-
children: t,
|
|
1881
|
-
mapStaticDef: (a, u) => this.mapper.mapStaticDef(a, u),
|
|
1882
|
-
walkChildren: (a) => this.walkItems(
|
|
1883
|
-
a,
|
|
1884
|
-
n,
|
|
1885
|
-
s,
|
|
1886
|
-
i,
|
|
1887
|
-
r,
|
|
1888
|
-
l,
|
|
1889
|
-
o
|
|
1890
|
-
)
|
|
1891
|
-
};
|
|
1892
|
-
}
|
|
1893
|
-
buildCustomWidget(t, n, s) {
|
|
1894
|
-
return t.buildCustomWidget(n, s);
|
|
1895
|
-
}
|
|
1896
|
-
/**
|
|
1897
|
-
* Resolves the base definition from a parsed entry, injecting the path for keyed entries.
|
|
1898
|
-
* For runtime (function) providers, wraps them to inject the path at evaluation time.
|
|
1899
|
-
*/
|
|
1900
|
-
buildBaseDef(t) {
|
|
1901
|
-
const n = t.baseDef;
|
|
1902
|
-
return typeof n == "function" ? (s) => {
|
|
1903
|
-
const r = n(s ?? {});
|
|
1904
|
-
return t.path != null ? { ...r, path: t.path } : r;
|
|
1905
|
-
} : t.path != null ? { ...n, path: t.path } : n;
|
|
1906
|
-
}
|
|
1907
|
-
buildDecoratorForMatching(t, n, s) {
|
|
1908
|
-
if (typeof t == "function")
|
|
1909
|
-
return { itemType: n, tags: [...s] };
|
|
1910
|
-
const i = [...s, ..."tags" in t && t.tags ? t.tags : []], r = "uid" in t ? t.uid : void 0, l = "type" in t ? t.type : void 0;
|
|
1911
|
-
return { itemType: n, tags: i, uid: r, type: l };
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
const An = {
|
|
1915
|
-
input: /* @__PURE__ */ new Set(["disabled", "readonly", "label", "validator", "size"]),
|
|
1916
|
-
action: /* @__PURE__ */ new Set(["disabled", "label", "size"]),
|
|
1917
|
-
layout: /* @__PURE__ */ new Set(["size"]),
|
|
1918
|
-
display: /* @__PURE__ */ new Set([])
|
|
1919
|
-
}, $ = {
|
|
1920
|
-
onChange: "change",
|
|
1921
|
-
onLoad: "load",
|
|
1922
|
-
onFilter: "filter",
|
|
1923
|
-
onClick: "click"
|
|
1924
|
-
};
|
|
1925
|
-
class kn {
|
|
1926
|
-
/**
|
|
1927
|
-
* Extracts `states` from a merge result, combining with state-targeted
|
|
1928
|
-
* GSL leaf selectors from `_gslStates`.
|
|
1929
|
-
*
|
|
1930
|
-
* Returns a cleaned merge result (no states) and accumulated state data.
|
|
1931
|
-
*/
|
|
1932
|
-
extractFromMergeResult(t, n) {
|
|
1933
|
-
const s = {};
|
|
1934
|
-
for (const o of n) {
|
|
1935
|
-
const a = o.targetState, u = o.config, c = u.override && typeof u.override != "function" ? u.override : u;
|
|
1936
|
-
s[a] = {
|
|
1937
|
-
...s[a] || {},
|
|
1938
|
-
...c
|
|
1939
|
-
};
|
|
1940
|
-
}
|
|
1941
|
-
if (t.kind === "dynamic") {
|
|
1942
|
-
const o = t.fn;
|
|
1943
|
-
return {
|
|
1944
|
-
cleanedResult: { kind: "dynamic", fn: (u) => {
|
|
1945
|
-
const c = o(u), { states: y, ...d } = c;
|
|
1946
|
-
return d;
|
|
1947
|
-
} },
|
|
1948
|
-
stateData: { stateOverrides: s }
|
|
1949
|
-
};
|
|
1950
|
-
}
|
|
1951
|
-
const { states: i, ...r } = t.def, l = {};
|
|
1952
|
-
for (const [o, a] of Object.entries(s))
|
|
1953
|
-
l[o] = { ...a };
|
|
1954
|
-
if (i)
|
|
1955
|
-
for (const [o, a] of Object.entries(
|
|
1956
|
-
i
|
|
1957
|
-
))
|
|
1958
|
-
l[o] = { ...l[o] || {}, ...a };
|
|
1959
|
-
return {
|
|
1960
|
-
cleanedResult: { kind: "static", def: r },
|
|
1961
|
-
stateData: { stateOverrides: l }
|
|
1962
|
-
};
|
|
1963
|
-
}
|
|
1964
|
-
/**
|
|
1965
|
-
* Applies state overrides to a core widget. Each override produces:
|
|
1966
|
-
* - `visible: true/false` → `include: { in }` / `exclude: { from }`
|
|
1967
|
-
* - Core suffixable props → `'prop.stateName': value` at widget root
|
|
1968
|
-
* - Event handlers → `on: { 'eventType.stateName': eventId }` with registry wiring
|
|
1969
|
-
* - Custom props → `props: { 'prop.stateName': value }`
|
|
1970
|
-
*/
|
|
1971
|
-
applyToWidget(t, n, s, i) {
|
|
1972
|
-
const { stateOverrides: r } = n;
|
|
1973
|
-
if (Object.keys(r).length === 0)
|
|
1974
|
-
return t;
|
|
1975
|
-
const l = { ...t }, o = t.kind, a = An[o] || /* @__PURE__ */ new Set();
|
|
1976
|
-
t.props && (l.props = { ...t.props }), t.on && (l.on = { ...t.on });
|
|
1977
|
-
for (const [u, c] of Object.entries(r))
|
|
1978
|
-
for (const [y, d] of Object.entries(c))
|
|
1979
|
-
y === "visible" ? this.applyVisibility(l, u, d) : $[y] ? this.applyStateEvent(l, u, y, d, s, i) : a.has(y) ? l[`${y}.${u}`] = d : (l.props || (l.props = {}), l.props[`${y}.${u}`] = d);
|
|
1980
|
-
return l;
|
|
1981
|
-
}
|
|
1982
|
-
hasStateData(t) {
|
|
1983
|
-
return Object.keys(t.stateOverrides).length > 0;
|
|
1984
|
-
}
|
|
1985
|
-
// ── Visibility helpers ──
|
|
1986
|
-
applyVisibility(t, n, s) {
|
|
1987
|
-
if (s) {
|
|
1988
|
-
const i = t.include?.in || [];
|
|
1989
|
-
t.include = { ...t.include || {}, in: [...i, n] };
|
|
1990
|
-
} else {
|
|
1991
|
-
const i = t.exclude?.from || [];
|
|
1992
|
-
t.exclude = { ...t.exclude || {}, from: [...i, n] };
|
|
1993
|
-
}
|
|
1994
|
-
}
|
|
1995
|
-
// ── State-suffixed event helpers ──
|
|
1996
|
-
applyStateEvent(t, n, s, i, r, l) {
|
|
1997
|
-
const o = $[s];
|
|
1998
|
-
if (t.on || (t.on = {}), typeof i == "function") {
|
|
1999
|
-
const a = l.next();
|
|
2000
|
-
r.set(a, i), t.on[`${o}.${n}`] = a;
|
|
2001
|
-
} else typeof i == "string" && (t.on[`${o}.${n}`] = i);
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
const _n = new kn();
|
|
2005
|
-
class In {
|
|
2006
|
-
constructor(t, n, s) {
|
|
2007
|
-
this.selectorNormalizer = t, this.eventWiring = n, this.walker = s;
|
|
2008
|
-
}
|
|
2009
|
-
processDxFacade(t, n = [], s) {
|
|
2010
|
-
const { defs: i, gslSelectors: r, formConfig: l } = this.prepareForm(
|
|
2011
|
-
t,
|
|
2012
|
-
n,
|
|
2013
|
-
s
|
|
2014
|
-
), { widgets: o, eventRegistry: a } = this.walker.walkAndMap(
|
|
2015
|
-
i,
|
|
2016
|
-
r,
|
|
2017
|
-
l
|
|
2018
|
-
), u = o[0];
|
|
2019
|
-
return this.buildResult({ form: u }, a, l);
|
|
2020
|
-
}
|
|
2021
|
-
/**
|
|
2022
|
-
* Normalizes raw form definitions and applies form-level defaults.
|
|
2023
|
-
*
|
|
2024
|
-
* Steps:
|
|
2025
|
-
* 1. Normalize definitions — ensure a flat array; convert bare functions to display widgets.
|
|
2026
|
-
* 2. Normalize selectors — convert mixed leaf/aggregated selectors into a uniform
|
|
2027
|
-
* aggregated shape, and extract form-level config (see {@link FormConfig}).
|
|
2028
|
-
* 3. Auto-submit — unless suppressed, append a submit button if none was declared.
|
|
2029
|
-
* Throws if more than one submit button is found.
|
|
2030
|
-
* 4. Auto-stack — unless suppressed, wrap all definitions in a synthetic root
|
|
2031
|
-
* flex column layout so the form renders as a single vertical container.
|
|
2032
|
-
*/
|
|
2033
|
-
prepareForm(t, n, s) {
|
|
2034
|
-
const r = (Array.isArray(t) ? [...t] : [t]).map(
|
|
2035
|
-
(u) => typeof u == "function" ? H(u) : u
|
|
2036
|
-
), l = this.selectorNormalizer.normalizeSelectors(n), o = {
|
|
2037
|
-
...this.selectorNormalizer.extractFormConfig(),
|
|
2038
|
-
...s
|
|
2039
|
-
}, a = this.eventWiring.countSubmitButtons(r);
|
|
2040
|
-
if (a > 1)
|
|
2041
|
-
throw new Error(
|
|
2042
|
-
`Only one submit button is allowed per form, but ${a} were found. A button is a submit button if it has uid: '#submit' or onClick: 'submit'.`
|
|
2043
|
-
);
|
|
2044
|
-
if (!o.suppressAutomaticSubmit && a === 0 && r.push(V()), !o.suppressAutomaticStack) {
|
|
2045
|
-
const u = {
|
|
2046
|
-
def: { uid: "#root", direction: "column", widgetName: "flex" },
|
|
2047
|
-
children: r
|
|
2048
|
-
};
|
|
2049
|
-
return {
|
|
2050
|
-
defs: [{ type: "ITEMS", itemType: h.LAYOUTS, items: [u], tags: [] }],
|
|
2051
|
-
gslSelectors: l,
|
|
2052
|
-
formConfig: o
|
|
2053
|
-
};
|
|
2054
|
-
}
|
|
2055
|
-
return { defs: r, gslSelectors: l, formConfig: o };
|
|
2056
|
-
}
|
|
2057
|
-
/**
|
|
2058
|
-
* Converts DX `$`-separated state names to core's `:`-separated names.
|
|
2059
|
-
* E.g. `{ register$adult: 'expr' }` → `{ 'register:adult': 'expr' }`.
|
|
2060
|
-
*/
|
|
2061
|
-
convertStateNames(t) {
|
|
2062
|
-
const n = {};
|
|
2063
|
-
for (const [s, i] of Object.entries(t))
|
|
2064
|
-
n[s.replace(/\$/g, ":")] = i;
|
|
2065
|
-
return n;
|
|
2066
|
-
}
|
|
2067
|
-
buildResult(t, n, s) {
|
|
2068
|
-
s.states && Object.keys(s.states).length > 0 && (t = {
|
|
2069
|
-
...t,
|
|
2070
|
-
states: this.convertStateNames(s.states)
|
|
2071
|
-
});
|
|
2072
|
-
const i = { form: t };
|
|
2073
|
-
return n.size > 0 && (i.events = (r) => {
|
|
2074
|
-
const l = n.get(r.name);
|
|
2075
|
-
if (l) {
|
|
2076
|
-
const o = (u) => {
|
|
2077
|
-
if (u && typeof u == "object" && "path" in u && !("type" in u)) {
|
|
2078
|
-
const { path: c, ...y } = u;
|
|
2079
|
-
for (const [d, T] of Object.entries(y))
|
|
2080
|
-
r.callback({
|
|
2081
|
-
type: "OVERRIDE_WIDGET_PROP",
|
|
2082
|
-
payload: { path: c, prop: d, value: T }
|
|
2083
|
-
});
|
|
2084
|
-
} else
|
|
2085
|
-
r.callback(u);
|
|
2086
|
-
}, a = {
|
|
2087
|
-
...r,
|
|
2088
|
-
callback: o,
|
|
2089
|
-
update: o
|
|
2090
|
-
};
|
|
2091
|
-
l(a);
|
|
2092
|
-
}
|
|
2093
|
-
}), s.dependencies && (i.dependencies = s.dependencies), s.widgetLoaders && (i.widgetLoaders = s.widgetLoaders), s.validateOn && (i.validateOn = s.validateOn), s.itemRenderers && (i.itemRenderers = s.itemRenderers), i;
|
|
2094
|
-
}
|
|
2095
|
-
}
|
|
2096
|
-
const En = new Sn(
|
|
2097
|
-
dn,
|
|
2098
|
-
mn,
|
|
2099
|
-
bn,
|
|
2100
|
-
C,
|
|
2101
|
-
_n
|
|
2102
|
-
), Un = new In(hn, C, En);
|
|
2103
|
-
function Dn(e) {
|
|
2104
|
-
return typeof e == "function" ? !0 : Array.isArray(e) ? e.length === 0 || e.every(j) : j(e);
|
|
2105
|
-
}
|
|
2106
|
-
function j(e) {
|
|
2107
|
-
if (typeof e == "function") return !0;
|
|
2108
|
-
if (e === null || typeof e != "object") return !1;
|
|
2109
|
-
const t = e;
|
|
2110
|
-
return t.type === "ITEMS" && typeof t.itemType == "string";
|
|
2111
|
-
}
|
|
2112
|
-
const Y = Object.freeze({}), Pn = Object.freeze({}), z = /* @__PURE__ */ new WeakMap();
|
|
2113
|
-
function w(e, t) {
|
|
2114
|
-
return e == null ? t : typeof e == "object" ? e : {};
|
|
2115
|
-
}
|
|
2116
|
-
function xn(e, t, n) {
|
|
2117
|
-
if (!Dn(e))
|
|
2118
|
-
return { formDef: e };
|
|
2119
|
-
const s = w(e, Y), i = w(t, Y), r = w(n, Pn);
|
|
2120
|
-
let l = z.get(s);
|
|
2121
|
-
l || (l = /* @__PURE__ */ new WeakMap(), z.set(s, l));
|
|
2122
|
-
let o = l.get(i);
|
|
2123
|
-
o || (o = /* @__PURE__ */ new WeakMap(), l.set(i, o));
|
|
2124
|
-
const a = o.get(r);
|
|
2125
|
-
if (a) return a;
|
|
2126
|
-
const u = Un.processDxFacade(
|
|
2127
|
-
e,
|
|
2128
|
-
t,
|
|
2129
|
-
n
|
|
2130
|
-
), c = {
|
|
2131
|
-
formDef: u.form,
|
|
2132
|
-
formEvent: u.events,
|
|
2133
|
-
dependencies: u.dependencies,
|
|
2134
|
-
widgetLoaders: u.widgetLoaders,
|
|
2135
|
-
validateOn: u.validateOn,
|
|
2136
|
-
itemRenderers: u.itemRenderers
|
|
2137
|
-
};
|
|
2138
|
-
return o.set(r, c), c;
|
|
2139
|
-
}
|
|
2140
|
-
class Cn {
|
|
621
|
+
class Ot {
|
|
2141
622
|
create(t) {
|
|
2142
623
|
return {
|
|
2143
624
|
states: t.states,
|
|
@@ -2150,152 +631,142 @@ class Cn {
|
|
|
2150
631
|
};
|
|
2151
632
|
}
|
|
2152
633
|
}
|
|
2153
|
-
function
|
|
2154
|
-
return new
|
|
634
|
+
function pe() {
|
|
635
|
+
return new Ot();
|
|
2155
636
|
}
|
|
2156
|
-
const
|
|
2157
|
-
function
|
|
2158
|
-
|
|
2159
|
-
return e.__rid;
|
|
2160
|
-
const n = t();
|
|
2161
|
-
return Object.defineProperty(e, "__rid", {
|
|
2162
|
-
value: n,
|
|
2163
|
-
enumerable: !1,
|
|
2164
|
-
configurable: !1
|
|
2165
|
-
}), n;
|
|
637
|
+
const me = (s) => s !== null && typeof s == "object" && Object.prototype.hasOwnProperty.call(s, "label") && Object.prototype.hasOwnProperty.call(s, "value");
|
|
638
|
+
function te(s) {
|
|
639
|
+
return typeof s == "object" && s !== null && "$ref" in s && typeof s.$ref == "string" && Object.keys(s).length === 1;
|
|
2166
640
|
}
|
|
2167
|
-
function
|
|
2168
|
-
|
|
641
|
+
async function ee(s, t) {
|
|
642
|
+
const e = new URL(s, t).href, n = await fetch(e);
|
|
643
|
+
if (!n.ok) throw new Error(`Failed to load form chunk ${e}: ${n.status}`);
|
|
644
|
+
const { $schema: o, ...r } = await n.json();
|
|
645
|
+
return f(r, e);
|
|
2169
646
|
}
|
|
2170
|
-
async function
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
}
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
const n = e;
|
|
2179
|
-
if (Array.isArray(n.children)) {
|
|
2180
|
-
const s = await Promise.all(n.children.map((i) => O(i, t)));
|
|
2181
|
-
return { ...n, children: s };
|
|
2182
|
-
}
|
|
2183
|
-
return e;
|
|
647
|
+
async function f(s, t) {
|
|
648
|
+
if (te(s)) return ee(s.$ref, t);
|
|
649
|
+
const e = s;
|
|
650
|
+
if (Array.isArray(e.children)) {
|
|
651
|
+
const n = await Promise.all(e.children.map((o) => f(o, t)));
|
|
652
|
+
return { ...e, children: n };
|
|
653
|
+
}
|
|
654
|
+
return s;
|
|
2184
655
|
}
|
|
2185
|
-
async function
|
|
2186
|
-
const
|
|
2187
|
-
|
|
656
|
+
async function le(s, t) {
|
|
657
|
+
const e = await Promise.all(
|
|
658
|
+
s.form.map((n) => f(n, t))
|
|
2188
659
|
);
|
|
2189
|
-
return { ...
|
|
660
|
+
return { ...s, form: e };
|
|
2190
661
|
}
|
|
2191
|
-
const
|
|
662
|
+
const fe = {
|
|
2192
663
|
//
|
|
2193
664
|
// Input widgets
|
|
2194
665
|
//
|
|
2195
666
|
textinput: ({
|
|
2196
|
-
config:
|
|
667
|
+
config: s,
|
|
2197
668
|
props: t,
|
|
2198
|
-
validator:
|
|
669
|
+
validator: e
|
|
2199
670
|
}) => ({
|
|
2200
671
|
uid: "",
|
|
2201
672
|
kind: "input",
|
|
2202
673
|
type: "textinput",
|
|
2203
674
|
// The `props` key only exists in the returned object when `props` is actually provided
|
|
2204
675
|
...t && { props: t },
|
|
2205
|
-
...
|
|
2206
|
-
...
|
|
676
|
+
...e && { validator: e },
|
|
677
|
+
...s
|
|
2207
678
|
}),
|
|
2208
679
|
password: ({
|
|
2209
|
-
config:
|
|
680
|
+
config: s,
|
|
2210
681
|
props: t,
|
|
2211
|
-
validator:
|
|
682
|
+
validator: e
|
|
2212
683
|
}) => ({
|
|
2213
684
|
uid: "",
|
|
2214
685
|
kind: "input",
|
|
2215
686
|
type: "password",
|
|
2216
687
|
// The `props` key only exists in the returned object when `props` is actually provided
|
|
2217
688
|
...t && { props: t },
|
|
2218
|
-
...
|
|
2219
|
-
...
|
|
689
|
+
...e && { validator: e },
|
|
690
|
+
...s
|
|
2220
691
|
}),
|
|
2221
692
|
numberinput: ({
|
|
2222
|
-
config:
|
|
693
|
+
config: s,
|
|
2223
694
|
props: t,
|
|
2224
|
-
validator:
|
|
695
|
+
validator: e
|
|
2225
696
|
}) => ({
|
|
2226
697
|
uid: "",
|
|
2227
698
|
kind: "input",
|
|
2228
699
|
type: "numberinput",
|
|
2229
700
|
...t && { props: t },
|
|
2230
|
-
...
|
|
2231
|
-
...
|
|
701
|
+
...e && { validator: e },
|
|
702
|
+
...s
|
|
2232
703
|
}),
|
|
2233
704
|
checkbox: ({
|
|
2234
|
-
config:
|
|
705
|
+
config: s,
|
|
2235
706
|
props: t,
|
|
2236
|
-
validator:
|
|
707
|
+
validator: e
|
|
2237
708
|
}) => ({
|
|
2238
709
|
uid: "",
|
|
2239
710
|
kind: "input",
|
|
2240
711
|
type: "checkbox",
|
|
2241
712
|
...t && { props: t },
|
|
2242
|
-
...
|
|
2243
|
-
...
|
|
713
|
+
...e && { validator: e },
|
|
714
|
+
...s
|
|
2244
715
|
}),
|
|
2245
716
|
select: ({
|
|
2246
|
-
config:
|
|
717
|
+
config: s,
|
|
2247
718
|
props: t,
|
|
2248
|
-
validator:
|
|
719
|
+
validator: e
|
|
2249
720
|
}) => ({
|
|
2250
721
|
uid: "",
|
|
2251
722
|
kind: "input",
|
|
2252
723
|
type: "select",
|
|
2253
724
|
...t && { props: t },
|
|
2254
|
-
...
|
|
2255
|
-
...
|
|
725
|
+
...e && { validator: e },
|
|
726
|
+
...s
|
|
2256
727
|
}),
|
|
2257
728
|
//
|
|
2258
729
|
// Layout widgets
|
|
2259
730
|
//
|
|
2260
|
-
flex: (
|
|
731
|
+
flex: (s, t) => ({
|
|
2261
732
|
uid: "",
|
|
2262
733
|
kind: "layout",
|
|
2263
734
|
type: "flex",
|
|
2264
735
|
...t && { props: t },
|
|
2265
|
-
...
|
|
736
|
+
...s
|
|
2266
737
|
}),
|
|
2267
|
-
grid: (
|
|
738
|
+
grid: (s, t) => ({
|
|
2268
739
|
uid: "",
|
|
2269
740
|
kind: "layout",
|
|
2270
741
|
type: "grid",
|
|
2271
742
|
...t && { props: t },
|
|
2272
|
-
...
|
|
743
|
+
...s
|
|
2273
744
|
}),
|
|
2274
|
-
tabs: (
|
|
745
|
+
tabs: (s, t) => ({
|
|
2275
746
|
uid: "",
|
|
2276
747
|
kind: "layout",
|
|
2277
748
|
type: "tabs",
|
|
2278
749
|
...t && { props: t },
|
|
2279
|
-
...
|
|
750
|
+
...s
|
|
2280
751
|
}),
|
|
2281
752
|
//
|
|
2282
753
|
// Display widgets
|
|
2283
754
|
//
|
|
2284
|
-
alert: (
|
|
755
|
+
alert: (s, t) => ({
|
|
2285
756
|
uid: "",
|
|
2286
757
|
kind: "display",
|
|
2287
758
|
type: "alert",
|
|
2288
759
|
...t && { props: t },
|
|
2289
|
-
...
|
|
760
|
+
...s
|
|
2290
761
|
}),
|
|
2291
|
-
markdownText: (
|
|
762
|
+
markdownText: (s, t) => ({
|
|
2292
763
|
uid: "",
|
|
2293
764
|
kind: "display",
|
|
2294
765
|
type: "markdownText",
|
|
2295
766
|
...t && { props: t },
|
|
2296
|
-
...
|
|
767
|
+
...s
|
|
2297
768
|
})
|
|
2298
|
-
},
|
|
769
|
+
}, se = [
|
|
2299
770
|
"calendar",
|
|
2300
771
|
"checkbox",
|
|
2301
772
|
"currency",
|
|
@@ -2315,124 +786,124 @@ const zn = {
|
|
|
2315
786
|
"textarea",
|
|
2316
787
|
"textinput",
|
|
2317
788
|
"toggle"
|
|
2318
|
-
],
|
|
2319
|
-
...
|
|
2320
|
-
...
|
|
2321
|
-
...
|
|
2322
|
-
...
|
|
789
|
+
], ne = ["accordion", "flex", "grid", "tabs"], ie = ["alert", "markdownText", "renderer"], re = ["button"], ge = [
|
|
790
|
+
...se,
|
|
791
|
+
...ne,
|
|
792
|
+
...ie,
|
|
793
|
+
...re
|
|
2323
794
|
];
|
|
2324
795
|
export {
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
796
|
+
fe as GolemWidgets,
|
|
797
|
+
ut as _gslAccordionByUid,
|
|
798
|
+
at as _gslAccordions,
|
|
799
|
+
J as _gslActionByUid,
|
|
800
|
+
Z as _gslActions,
|
|
801
|
+
it as _gslAlertByUid,
|
|
802
|
+
nt as _gslAlerts,
|
|
803
|
+
Jt as _gslBooleanInputs,
|
|
804
|
+
W as _gslCalendarByUid,
|
|
805
|
+
G as _gslCalendars,
|
|
806
|
+
M as _gslCheckboxByUid,
|
|
807
|
+
A as _gslCheckboxes,
|
|
808
|
+
R as _gslCurrencies,
|
|
809
|
+
x as _gslCurrencyByUid,
|
|
810
|
+
pt as _gslCustomActionByUid,
|
|
811
|
+
dt as _gslCustomActions,
|
|
812
|
+
lt as _gslCustomDisplayByUid,
|
|
813
|
+
mt as _gslCustomDisplays,
|
|
814
|
+
yt as _gslCustomInputByUid,
|
|
815
|
+
ct as _gslCustomInputs,
|
|
816
|
+
gt as _gslCustomLayoutByUid,
|
|
817
|
+
ft as _gslCustomLayouts,
|
|
818
|
+
Y as _gslDateInputByUid,
|
|
819
|
+
F as _gslDateInputs,
|
|
820
|
+
K as _gslDatePickerByUid,
|
|
821
|
+
$ as _gslDatePickers,
|
|
822
|
+
st as _gslDisplayByUid,
|
|
823
|
+
et as _gslDisplays,
|
|
824
|
+
S as _gslDropdownByUid,
|
|
825
|
+
h as _gslDropdowns,
|
|
826
|
+
I as _gslInputByUid,
|
|
827
|
+
p as _gslInputs,
|
|
828
|
+
tt as _gslLayoutByUid,
|
|
829
|
+
O as _gslLayouts,
|
|
830
|
+
C as _gslListByUid,
|
|
831
|
+
L as _gslLists,
|
|
832
|
+
b as _gslMarkdownByUid,
|
|
833
|
+
N as _gslMarkdowns,
|
|
834
|
+
Zt as _gslNumberInputs,
|
|
835
|
+
w as _gslPasswordByUid,
|
|
836
|
+
P as _gslPasswords,
|
|
837
|
+
k as _gslRadiogroupByUid,
|
|
838
|
+
U as _gslRadiogroups,
|
|
839
|
+
z as _gslRangeCalendarByUid,
|
|
840
|
+
j as _gslRangeCalendars,
|
|
841
|
+
X as _gslRangeDateInputByUid,
|
|
842
|
+
H as _gslRangeDateInputs,
|
|
843
|
+
V as _gslRangeDatePickerByUid,
|
|
844
|
+
v as _gslRangeDatePickers,
|
|
845
|
+
Q as _gslRepeaterByUid,
|
|
846
|
+
q as _gslRepeaters,
|
|
847
|
+
E as _gslSelectByUid,
|
|
848
|
+
_ as _gslSelects,
|
|
849
|
+
ye as _gslStates,
|
|
850
|
+
rt as _gslTabs,
|
|
851
|
+
ot as _gslTabsByUid,
|
|
852
|
+
de as _gslTag,
|
|
853
|
+
Qt as _gslTextInputs,
|
|
854
|
+
D as _gslTextareaByUid,
|
|
855
|
+
B as _gslTextareas,
|
|
856
|
+
vt as _guiAccordion,
|
|
857
|
+
Yt as _guiAlert,
|
|
858
|
+
St as _guiBooleanInput,
|
|
859
|
+
_t as _guiButton,
|
|
860
|
+
xt as _guiCalendar,
|
|
861
|
+
Mt as _guiCheckbox,
|
|
862
|
+
Pt as _guiCurrency,
|
|
863
|
+
Ft as _guiCustomAction,
|
|
864
|
+
$t as _guiCustomDisplay,
|
|
865
|
+
Wt as _guiCustomInput,
|
|
866
|
+
Vt as _guiCustomLayout,
|
|
867
|
+
Nt as _guiDateInput,
|
|
868
|
+
bt as _guiDatePicker,
|
|
869
|
+
Tt as _guiDisplay,
|
|
870
|
+
kt as _guiDropdown,
|
|
871
|
+
m as _guiFlex,
|
|
872
|
+
l as _guiGrid,
|
|
873
|
+
Kt as _guiHorizontalFlex,
|
|
874
|
+
zt as _guiHorizontalGrid,
|
|
875
|
+
Rt as _guiList,
|
|
876
|
+
wt as _guiMarkdown,
|
|
877
|
+
ht as _guiNumberInput,
|
|
878
|
+
Dt as _guiPassword,
|
|
879
|
+
At as _guiRadiogroup,
|
|
880
|
+
Lt as _guiRangeCalendar,
|
|
881
|
+
Ct as _guiRangeDateInput,
|
|
882
|
+
Gt as _guiRangeDatePicker,
|
|
883
|
+
qt as _guiRepeater,
|
|
884
|
+
Ut as _guiSelect,
|
|
885
|
+
It as _guiSubmitButton,
|
|
886
|
+
Xt as _guiTabs,
|
|
887
|
+
Et as _guiTextInput,
|
|
888
|
+
Bt as _guiTextarea,
|
|
889
|
+
jt as _guiVerticalFlex,
|
|
890
|
+
Ht as _guiVerticalGrid,
|
|
891
|
+
re as actionWidgets,
|
|
892
|
+
_e as createGslSelector,
|
|
893
|
+
Ee as defineShortcutType,
|
|
894
|
+
ie as displayWidgets,
|
|
895
|
+
he as extractWidgetProps,
|
|
896
|
+
Se as formDefs,
|
|
897
|
+
Ue as getItemKey,
|
|
898
|
+
pe as golemForm,
|
|
899
|
+
ge as golemWidgets,
|
|
900
|
+
ce as gui,
|
|
901
|
+
se as inputWidgets,
|
|
902
|
+
ke as isDxDefinitions,
|
|
903
|
+
me as isOption,
|
|
904
|
+
ne as layoutWidgets,
|
|
905
|
+
Ae as processAutoLabel,
|
|
906
|
+
Me as processAutoPlaceholder,
|
|
907
|
+
le as resolveChunkRefs,
|
|
908
|
+
Be as resolveFormInput
|
|
2438
909
|
};
|