@golemui/gui-shared 1.1.1-rc.1 → 1.1.1-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/index.js +22 -366
- package/index.umd.cjs +1 -1
- package/internals.js +7 -7
- package/internals.umd.cjs +1 -1
- package/lib/dx/formDef.domain.d.ts +2 -1
- package/lib/dx/formDefs.d.ts +4 -2
- package/lib/dx/gui.d.ts +281 -52
- package/lib/dx/guiDependencyTypes.d.ts +14 -0
- package/lib/dx/index.d.ts +2 -1
- package/lib/dx/resolveFormInput.d.ts +5 -3
- package/lib/shared.d.ts +16 -1
- package/lib/widgets.d.ts +1 -1
- package/package.json +4 -4
- package/{resolveFormInput-Dp0TB3LB.js → resolveFormInput-CsFeoGjz.js} +1455 -1310
- package/resolveFormInput-UcmQ-kme.cjs +1 -0
- package/lib/dx/shortcuts/scopes/scopeChain.d.ts +0 -132
- package/resolveFormInput-DDKerzen.cjs +0 -1
package/CHANGELOG.md
CHANGED
package/index.js
CHANGED
|
@@ -1,375 +1,31 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { g as p } from "./resolveFormInput-CsFeoGjz.js";
|
|
2
2
|
import "@golemui/dx";
|
|
3
3
|
import "@golemui/core";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
this.conditions = a;
|
|
7
|
-
}
|
|
8
|
-
static root() {
|
|
9
|
-
return new r([]);
|
|
10
|
-
}
|
|
11
|
-
// ─── Scope methods (chain-extending, immutable) ───
|
|
12
|
-
tag(a) {
|
|
13
|
-
return new r([...this.conditions, { kind: "tagsAnd", tags: [a] }]);
|
|
14
|
-
}
|
|
15
|
-
state(a) {
|
|
16
|
-
return new r([...this.conditions, { kind: "state", name: a }]);
|
|
17
|
-
}
|
|
18
|
-
tagsAnd(a) {
|
|
19
|
-
return new r([...this.conditions, { kind: "tagsAnd", tags: a }]);
|
|
20
|
-
}
|
|
21
|
-
tagsOr(a) {
|
|
22
|
-
return new r([...this.conditions, { kind: "tagsOr", tags: a }]);
|
|
23
|
-
}
|
|
24
|
-
apply(a) {
|
|
25
|
-
if (this.conditions.length === 0) return a;
|
|
26
|
-
const s = this.conditions.find(
|
|
27
|
-
(i) => i.kind === "state"
|
|
28
|
-
), e = this.conditions.filter(
|
|
29
|
-
(i) => i.kind !== "state"
|
|
30
|
-
), n = a.matcher;
|
|
31
|
-
return {
|
|
32
|
-
...a,
|
|
33
|
-
matcher: (i) => {
|
|
34
|
-
if (!n(i)) return !1;
|
|
35
|
-
for (const u of e) {
|
|
36
|
-
const g = i.tags ?? [];
|
|
37
|
-
if (u.kind === "tagsAnd") {
|
|
38
|
-
for (const l of u.tags)
|
|
39
|
-
if (!g.includes(l)) return !1;
|
|
40
|
-
} else {
|
|
41
|
-
if (u.tags.length === 0) continue;
|
|
42
|
-
if (!u.tags.some((l) => g.includes(l))) return !1;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
return !0;
|
|
46
|
-
},
|
|
47
|
-
...s ? { targetState: s.name } : {}
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
// ─── Type selectors — inputs ───
|
|
51
|
-
inputs(a) {
|
|
52
|
-
return this.apply(d(a));
|
|
53
|
-
}
|
|
54
|
-
inputByUid(a, s) {
|
|
55
|
-
return this.apply(y(a, s));
|
|
56
|
-
}
|
|
57
|
-
textInputs(a) {
|
|
58
|
-
return this.apply(o(a));
|
|
59
|
-
}
|
|
60
|
-
numberInputs(a) {
|
|
61
|
-
return this.apply(c(a));
|
|
62
|
-
}
|
|
63
|
-
booleanInputs(a) {
|
|
64
|
-
return this.apply(_(a));
|
|
65
|
-
}
|
|
66
|
-
selects(a) {
|
|
67
|
-
return this.apply(h(a));
|
|
68
|
-
}
|
|
69
|
-
selectByUid(a, s) {
|
|
70
|
-
return this.apply(m(a, s));
|
|
71
|
-
}
|
|
72
|
-
dropdowns(a) {
|
|
73
|
-
return this.apply(B(a));
|
|
74
|
-
}
|
|
75
|
-
dropdownByUid(a, s) {
|
|
76
|
-
return this.apply(U(a, s));
|
|
77
|
-
}
|
|
78
|
-
radiogroups(a) {
|
|
79
|
-
return this.apply(T(a));
|
|
80
|
-
}
|
|
81
|
-
radiogroupByUid(a, s) {
|
|
82
|
-
return this.apply(k(a, s));
|
|
83
|
-
}
|
|
84
|
-
checkboxes(a) {
|
|
85
|
-
return this.apply(D(a));
|
|
86
|
-
}
|
|
87
|
-
checkboxByUid(a, s) {
|
|
88
|
-
return this.apply(I(a, s));
|
|
89
|
-
}
|
|
90
|
-
textareas(a) {
|
|
91
|
-
return this.apply(P(a));
|
|
92
|
-
}
|
|
93
|
-
textareaByUid(a, s) {
|
|
94
|
-
return this.apply(C(a, s));
|
|
95
|
-
}
|
|
96
|
-
passwords(a) {
|
|
97
|
-
return this.apply(f(a));
|
|
98
|
-
}
|
|
99
|
-
passwordByUid(a, s) {
|
|
100
|
-
return this.apply(R(a, s));
|
|
101
|
-
}
|
|
102
|
-
currencies(a) {
|
|
103
|
-
return this.apply(w(a));
|
|
104
|
-
}
|
|
105
|
-
currencyByUid(a, s) {
|
|
106
|
-
return this.apply(x(a, s));
|
|
107
|
-
}
|
|
108
|
-
markdowns(a) {
|
|
109
|
-
return this.apply(b(a));
|
|
110
|
-
}
|
|
111
|
-
markdownByUid(a, s) {
|
|
112
|
-
return this.apply(A(a, s));
|
|
113
|
-
}
|
|
114
|
-
lists(a) {
|
|
115
|
-
return this.apply(L(a));
|
|
116
|
-
}
|
|
117
|
-
listByUid(a, s) {
|
|
118
|
-
return this.apply(M(a, s));
|
|
119
|
-
}
|
|
120
|
-
calendars(a) {
|
|
121
|
-
return this.apply($(a));
|
|
122
|
-
}
|
|
123
|
-
calendarByUid(a, s) {
|
|
124
|
-
return this.apply(F(a, s));
|
|
125
|
-
}
|
|
126
|
-
dateTimeCalendars(a) {
|
|
127
|
-
return this.apply(G(a));
|
|
128
|
-
}
|
|
129
|
-
dateTimeCalendarByUid(a, s) {
|
|
130
|
-
return this.apply(v(a, s));
|
|
131
|
-
}
|
|
132
|
-
dateInputs(a) {
|
|
133
|
-
return this.apply(z(a));
|
|
134
|
-
}
|
|
135
|
-
dateInputByUid(a, s) {
|
|
136
|
-
return this.apply(j(a, s));
|
|
137
|
-
}
|
|
138
|
-
timeInputs(a) {
|
|
139
|
-
return this.apply(O(a));
|
|
140
|
-
}
|
|
141
|
-
timeInputByUid(a, s) {
|
|
142
|
-
return this.apply(H(a, s));
|
|
143
|
-
}
|
|
144
|
-
timePickers(a) {
|
|
145
|
-
return this.apply(N(a));
|
|
146
|
-
}
|
|
147
|
-
timePickerByUid(a, s) {
|
|
148
|
-
return this.apply(V(a, s));
|
|
149
|
-
}
|
|
150
|
-
dateTimeInputs(a) {
|
|
151
|
-
return this.apply(E(a));
|
|
152
|
-
}
|
|
153
|
-
dateTimeInputByUid(a, s) {
|
|
154
|
-
return this.apply(W(a, s));
|
|
155
|
-
}
|
|
156
|
-
datePickers(a) {
|
|
157
|
-
return this.apply(q(a));
|
|
158
|
-
}
|
|
159
|
-
datePickerByUid(a, s) {
|
|
160
|
-
return this.apply(K(a, s));
|
|
161
|
-
}
|
|
162
|
-
dateTimePickers(a) {
|
|
163
|
-
return this.apply(Q(a));
|
|
164
|
-
}
|
|
165
|
-
dateTimePickerByUid(a, s) {
|
|
166
|
-
return this.apply(S(a, s));
|
|
167
|
-
}
|
|
168
|
-
rangeCalendars(a) {
|
|
169
|
-
return this.apply(X(a));
|
|
170
|
-
}
|
|
171
|
-
rangeCalendarByUid(a, s) {
|
|
172
|
-
return this.apply(Y(a, s));
|
|
173
|
-
}
|
|
174
|
-
rangeDateInputs(a) {
|
|
175
|
-
return this.apply(Z(a));
|
|
176
|
-
}
|
|
177
|
-
rangeDateInputByUid(a, s) {
|
|
178
|
-
return this.apply(J(a, s));
|
|
179
|
-
}
|
|
180
|
-
rangeTimeInputs(a) {
|
|
181
|
-
return this.apply(aa(a));
|
|
182
|
-
}
|
|
183
|
-
rangeTimeInputByUid(a, s) {
|
|
184
|
-
return this.apply(sa(a, s));
|
|
185
|
-
}
|
|
186
|
-
rangeDateTimeInputs(a) {
|
|
187
|
-
return this.apply(ta(a));
|
|
188
|
-
}
|
|
189
|
-
rangeDateTimeInputByUid(a, s) {
|
|
190
|
-
return this.apply(ea(a, s));
|
|
191
|
-
}
|
|
192
|
-
rangeDateTimeCalendars(a) {
|
|
193
|
-
return this.apply(ia(a));
|
|
194
|
-
}
|
|
195
|
-
rangeDateTimeCalendarByUid(a, s) {
|
|
196
|
-
return this.apply(ra(a, s));
|
|
197
|
-
}
|
|
198
|
-
rangeDateTimePickers(a) {
|
|
199
|
-
return this.apply(na(a));
|
|
200
|
-
}
|
|
201
|
-
rangeDateTimePickerByUid(a, s) {
|
|
202
|
-
return this.apply(ua(a, s));
|
|
203
|
-
}
|
|
204
|
-
rangeDatePickers(a) {
|
|
205
|
-
return this.apply(la(a));
|
|
206
|
-
}
|
|
207
|
-
rangeDatePickerByUid(a, s) {
|
|
208
|
-
return this.apply(pa(a, s));
|
|
209
|
-
}
|
|
210
|
-
rangeTimePickers(a) {
|
|
211
|
-
return this.apply(ga(a));
|
|
212
|
-
}
|
|
213
|
-
rangeTimePickerByUid(a, s) {
|
|
214
|
-
return this.apply(da(a, s));
|
|
215
|
-
}
|
|
216
|
-
repeaters(a) {
|
|
217
|
-
return this.apply(ya(a));
|
|
218
|
-
}
|
|
219
|
-
repeaterByUid(a, s) {
|
|
220
|
-
return this.apply(oa(a, s));
|
|
221
|
-
}
|
|
222
|
-
// ─── Type selectors — actions, displays, layouts ───
|
|
223
|
-
actions(a) {
|
|
224
|
-
return this.apply(ca(a));
|
|
225
|
-
}
|
|
226
|
-
actionByUid(a, s) {
|
|
227
|
-
return this.apply(_a(a, s));
|
|
228
|
-
}
|
|
229
|
-
layouts(a) {
|
|
230
|
-
return this.apply(ha(a));
|
|
231
|
-
}
|
|
232
|
-
layoutByUid(a, s) {
|
|
233
|
-
return this.apply(ma(a, s));
|
|
234
|
-
}
|
|
235
|
-
displays(a) {
|
|
236
|
-
return this.apply(Ba(a));
|
|
237
|
-
}
|
|
238
|
-
displayByUid(a, s) {
|
|
239
|
-
return this.apply(Ua(a, s));
|
|
240
|
-
}
|
|
241
|
-
alerts(a) {
|
|
242
|
-
return this.apply(Ta(a));
|
|
243
|
-
}
|
|
244
|
-
alertByUid(a, s) {
|
|
245
|
-
return this.apply(ka(a, s));
|
|
246
|
-
}
|
|
247
|
-
markdownTexts(a) {
|
|
248
|
-
return this.apply(Da(a));
|
|
249
|
-
}
|
|
250
|
-
markdownTextByUid(a, s) {
|
|
251
|
-
return this.apply(Ia(a, s));
|
|
252
|
-
}
|
|
253
|
-
tabs(a) {
|
|
254
|
-
return this.apply(Pa(a));
|
|
255
|
-
}
|
|
256
|
-
tabsByUid(a, s) {
|
|
257
|
-
return this.apply(Ca(a, s));
|
|
258
|
-
}
|
|
259
|
-
accordions(a) {
|
|
260
|
-
return this.apply(fa(a));
|
|
261
|
-
}
|
|
262
|
-
accordionByUid(a, s) {
|
|
263
|
-
return this.apply(Ra(a, s));
|
|
264
|
-
}
|
|
265
|
-
// ─── Type selectors — custom kinds ───
|
|
266
|
-
customInputs(a) {
|
|
267
|
-
return this.apply(wa(a));
|
|
268
|
-
}
|
|
269
|
-
customInputByUid(a, s) {
|
|
270
|
-
return this.apply(xa(a, s));
|
|
271
|
-
}
|
|
272
|
-
customActions(a) {
|
|
273
|
-
return this.apply(ba(a));
|
|
274
|
-
}
|
|
275
|
-
customActionByUid(a, s) {
|
|
276
|
-
return this.apply(Aa(a, s));
|
|
277
|
-
}
|
|
278
|
-
customDisplays(a) {
|
|
279
|
-
return this.apply(La(a));
|
|
280
|
-
}
|
|
281
|
-
customDisplayByUid(a, s) {
|
|
282
|
-
return this.apply(Ma(a, s));
|
|
283
|
-
}
|
|
284
|
-
customLayouts(a) {
|
|
285
|
-
return this.apply($a(a));
|
|
286
|
-
}
|
|
287
|
-
customLayoutByUid(a, s) {
|
|
288
|
-
return this.apply(Fa(a, s));
|
|
289
|
-
}
|
|
4
|
+
function s(r) {
|
|
5
|
+
return typeof r == "object" && r !== null && "$ref" in r && typeof r.$ref == "string" && Object.keys(r).length === 1;
|
|
290
6
|
}
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
select: Ps,
|
|
297
|
-
dropdown: Is,
|
|
298
|
-
radiogroup: Ds,
|
|
299
|
-
checkbox: ks,
|
|
300
|
-
textarea: Ts,
|
|
301
|
-
password: Us,
|
|
302
|
-
currency: Bs,
|
|
303
|
-
markdown: ms,
|
|
304
|
-
list: hs,
|
|
305
|
-
calendar: _s,
|
|
306
|
-
dateTimeCalendar: cs,
|
|
307
|
-
dateInput: os,
|
|
308
|
-
datePicker: ys,
|
|
309
|
-
dateTimePicker: ds,
|
|
310
|
-
timeInput: gs,
|
|
311
|
-
timePicker: ps,
|
|
312
|
-
dateTimeInput: ls,
|
|
313
|
-
rangeCalendar: us,
|
|
314
|
-
rangeDateInput: ns,
|
|
315
|
-
rangeDateTimeInput: rs,
|
|
316
|
-
rangeDateTimeCalendar: is,
|
|
317
|
-
rangeDateTimePicker: es,
|
|
318
|
-
rangeTimeInput: ts,
|
|
319
|
-
rangeDatePicker: ss,
|
|
320
|
-
rangeTimePicker: as,
|
|
321
|
-
repeater: Ja,
|
|
322
|
-
tags: Za,
|
|
323
|
-
custom: Ya
|
|
324
|
-
},
|
|
325
|
-
actions: {
|
|
326
|
-
button: Xa,
|
|
327
|
-
custom: Sa
|
|
328
|
-
},
|
|
329
|
-
displays: {
|
|
330
|
-
display: Qa,
|
|
331
|
-
alert: Ka,
|
|
332
|
-
markdownText: qa,
|
|
333
|
-
custom: Wa
|
|
334
|
-
},
|
|
335
|
-
layouts: {
|
|
336
|
-
flex: Ea,
|
|
337
|
-
horizontalFlex: Va,
|
|
338
|
-
verticalFlex: Na,
|
|
339
|
-
grid: Ha,
|
|
340
|
-
horizontalGrid: Oa,
|
|
341
|
-
verticalGrid: ja,
|
|
342
|
-
tabs: za,
|
|
343
|
-
accordion: va,
|
|
344
|
-
custom: Ga
|
|
345
|
-
},
|
|
346
|
-
selectors: r.root()
|
|
347
|
-
};
|
|
348
|
-
function ws(t) {
|
|
349
|
-
return typeof t == "object" && t !== null && "$ref" in t && typeof t.$ref == "string" && Object.keys(t).length === 1;
|
|
7
|
+
async function i(r, t) {
|
|
8
|
+
const n = new URL(r, t).href, e = await fetch(n);
|
|
9
|
+
if (!e.ok) throw new Error(`Failed to load form chunk ${n}: ${e.status}`);
|
|
10
|
+
const { $schema: a, ...c } = await e.json();
|
|
11
|
+
return o(c, n);
|
|
350
12
|
}
|
|
351
|
-
async function
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
const s = t;
|
|
360
|
-
if (Array.isArray(s.children)) {
|
|
361
|
-
const e = await Promise.all(s.children.map((n) => p(n, a)));
|
|
362
|
-
return { ...s, children: e };
|
|
363
|
-
}
|
|
364
|
-
return t;
|
|
13
|
+
async function o(r, t) {
|
|
14
|
+
if (s(r)) return i(r.$ref, t);
|
|
15
|
+
const n = r;
|
|
16
|
+
if (Array.isArray(n.children)) {
|
|
17
|
+
const e = await Promise.all(n.children.map((a) => o(a, t)));
|
|
18
|
+
return { ...n, children: e };
|
|
19
|
+
}
|
|
20
|
+
return r;
|
|
365
21
|
}
|
|
366
|
-
async function
|
|
367
|
-
const
|
|
368
|
-
|
|
22
|
+
async function l(r, t) {
|
|
23
|
+
const n = await Promise.all(
|
|
24
|
+
r.form.map((e) => o(e, t))
|
|
369
25
|
);
|
|
370
|
-
return { ...
|
|
26
|
+
return { ...r, form: n };
|
|
371
27
|
}
|
|
372
28
|
export {
|
|
373
|
-
|
|
374
|
-
|
|
29
|
+
p as gui,
|
|
30
|
+
l as resolveChunkRefs
|
|
375
31
|
};
|
package/index.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./resolveFormInput-UcmQ-kme.cjs");require("@golemui/dx");require("@golemui/core");function c(e){return typeof e=="object"&&e!==null&&"$ref"in e&&typeof e.$ref=="string"&&Object.keys(e).length===1}async function a(e,t){const r=new URL(e,t).href,n=await fetch(r);if(!n.ok)throw new Error(`Failed to load form chunk ${r}: ${n.status}`);const{$schema:s,...u}=await n.json();return o(u,r)}async function o(e,t){if(c(e))return a(e.$ref,t);const r=e;if(Array.isArray(r.children)){const n=await Promise.all(r.children.map(s=>o(s,t)));return{...r,children:n}}return e}async function f(e,t){const r=await Promise.all(e.form.map(n=>o(n,t)));return{...e,form:r}}exports.gui=i.gui;exports.resolveChunkRefs=f;
|
package/internals.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { _ as c, a as p, b as y, c as m, d as T, e as B, f as D, h as U, i as b, j as I, k as C, l as R, m as k, n as P, o as f, p as x, q as w, r as A, s as h, t as L, u as S, v as F, w as M, x as O, y as j, z as G, A as v, B as z, C as H, D as N, E as V, F as K, G as W, H as q, I as E, J, K as Q, L as X, M as Y, N as Z, O as $, P as aa, Q as sa, R as ea, S as ia, T as ga, U as ta, V as la, W as _a, X as ua, Y as ra, Z as na, $ as oa, a0 as da, a1 as ca, a2 as pa, a3 as ya, a4 as ma, a5 as Ta, a6 as Ba, a7 as Da, a8 as Ua, a9 as ba, aa as Ia, ab as Ca, ac as Ra, ad as ka, ae as Pa, af as fa, ag as xa, ah as wa, ai as Aa, aj as ha, ak as La, al as Sa, am as Fa, an as Ma, ao as Oa, ap as ja, aq as Ga, ar as va, as as za, at as Ha, au as Na, av as Va, aw as Ka, ax as Wa, ay as qa, az as Ea, aA as Ja, aB as Qa, aC as Xa, aD as Ya, aE as Za, aF as $a, aG as as, aH as ss, aI as es, aJ as is, aK as gs, aL as ts, aM as ls, aN as _s, aO as us, aP as rs, aQ as ns, aR as os, aS as ds, aT as cs, aU as ps, aV as ys, aW as ms, aX as Ts, aY as Bs, aZ as Ds, a_ as Us, a$ as bs, b0 as Is, b1 as Cs, b2 as Rs, b3 as ks, b4 as Ps, b5 as fs, b6 as xs, b7 as ws, b8 as As, b9 as hs, ba as Ls, bb as Ss, bc as Fs } from "./resolveFormInput-CsFeoGjz.js";
|
|
2
2
|
import { createGslSelector as Os, extractWidgetProps as js, isDxDefinitions as Gs, processAutoLabel as vs, processAutoPlaceholder as zs } from "@golemui/dx";
|
|
3
3
|
import "@golemui/gui-validators";
|
|
4
4
|
import "@golemui/core";
|
|
@@ -51,8 +51,8 @@ export {
|
|
|
51
51
|
B as _gslAlerts,
|
|
52
52
|
D as _gslBooleanInputs,
|
|
53
53
|
U as _gslCalendarByUid,
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
b as _gslCalendars,
|
|
55
|
+
I as _gslCheckboxByUid,
|
|
56
56
|
C as _gslCheckboxes,
|
|
57
57
|
R as _gslCurrencies,
|
|
58
58
|
k as _gslCurrencyByUid,
|
|
@@ -105,8 +105,8 @@ export {
|
|
|
105
105
|
Ba as _gslRangeDateTimeInputs,
|
|
106
106
|
Da as _gslRangeDateTimePickerByUid,
|
|
107
107
|
Ua as _gslRangeDateTimePickers,
|
|
108
|
-
|
|
109
|
-
|
|
108
|
+
ba as _gslRangeTimeInputByUid,
|
|
109
|
+
Ia as _gslRangeTimeInputs,
|
|
110
110
|
Ca as _gslRangeTimePickerByUid,
|
|
111
111
|
Ra as _gslRangeTimePickers,
|
|
112
112
|
ka as _gslRepeaterByUid,
|
|
@@ -161,8 +161,8 @@ export {
|
|
|
161
161
|
Bs as _guiRangeDateTimeInput,
|
|
162
162
|
Ds as _guiRangeDateTimePicker,
|
|
163
163
|
Us as _guiRangeTimeInput,
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
bs as _guiRangeTimePicker,
|
|
165
|
+
Is as _guiRepeater,
|
|
166
166
|
Cs as _guiSelect,
|
|
167
167
|
Rs as _guiTabs,
|
|
168
168
|
ks as _guiTags,
|
package/internals.umd.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resolveFormInput-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./resolveFormInput-UcmQ-kme.cjs"),t=require("@golemui/dx");require("@golemui/gui-validators");require("@golemui/core");function a(i,...s){return s.map(g=>({...g,targetState:i}))}function l(i,...s){return{kind:"aggregated",matcher:g=>g.tags?.includes(i)??!1,children:s}}class _{create(s){return{states:s.states,form:{uid:"gui-root-uid",type:"flex",kind:"layout",children:s.form}}}}function u(){return new _}const r=i=>i!==null&&typeof i=="object"&&Object.prototype.hasOwnProperty.call(i,"label")&&Object.prototype.hasOwnProperty.call(i,"value");function n(i,s){if(i!=null&&typeof i=="object"&&"__rid"in i)return i.__rid;const g=s();return Object.defineProperty(i,"__rid",{value:g,enumerable:!1,configurable:!1}),g}exports._gslAccordionByUid=e._gslAccordionByUid;exports._gslAccordions=e._gslAccordions;exports._gslActionByUid=e._gslActionByUid;exports._gslActions=e._gslActions;exports._gslAlertByUid=e._gslAlertByUid;exports._gslAlerts=e._gslAlerts;exports._gslBooleanInputs=e._gslBooleanInputs;exports._gslCalendarByUid=e._gslCalendarByUid;exports._gslCalendars=e._gslCalendars;exports._gslCheckboxByUid=e._gslCheckboxByUid;exports._gslCheckboxes=e._gslCheckboxes;exports._gslCurrencies=e._gslCurrencies;exports._gslCurrencyByUid=e._gslCurrencyByUid;exports._gslCustomActionByUid=e._gslCustomActionByUid;exports._gslCustomActions=e._gslCustomActions;exports._gslCustomDisplayByUid=e._gslCustomDisplayByUid;exports._gslCustomDisplays=e._gslCustomDisplays;exports._gslCustomInputByUid=e._gslCustomInputByUid;exports._gslCustomInputs=e._gslCustomInputs;exports._gslCustomLayoutByUid=e._gslCustomLayoutByUid;exports._gslCustomLayouts=e._gslCustomLayouts;exports._gslDateInputByUid=e._gslDateInputByUid;exports._gslDateInputs=e._gslDateInputs;exports._gslDatePickerByUid=e._gslDatePickerByUid;exports._gslDatePickers=e._gslDatePickers;exports._gslDateTimeCalendarByUid=e._gslDateTimeCalendarByUid;exports._gslDateTimeCalendars=e._gslDateTimeCalendars;exports._gslDateTimeInputByUid=e._gslDateTimeInputByUid;exports._gslDateTimeInputs=e._gslDateTimeInputs;exports._gslDateTimePickerByUid=e._gslDateTimePickerByUid;exports._gslDateTimePickers=e._gslDateTimePickers;exports._gslDisplayByUid=e._gslDisplayByUid;exports._gslDisplays=e._gslDisplays;exports._gslDropdownByUid=e._gslDropdownByUid;exports._gslDropdowns=e._gslDropdowns;exports._gslInputByUid=e._gslInputByUid;exports._gslInputs=e._gslInputs;exports._gslLayoutByUid=e._gslLayoutByUid;exports._gslLayouts=e._gslLayouts;exports._gslListByUid=e._gslListByUid;exports._gslLists=e._gslLists;exports._gslMarkdownByUid=e._gslMarkdownByUid;exports._gslMarkdownTextByUid=e._gslMarkdownTextByUid;exports._gslMarkdownTexts=e._gslMarkdownTexts;exports._gslMarkdowns=e._gslMarkdowns;exports._gslNumberInputs=e._gslNumberInputs;exports._gslPasswordByUid=e._gslPasswordByUid;exports._gslPasswords=e._gslPasswords;exports._gslRadiogroupByUid=e._gslRadiogroupByUid;exports._gslRadiogroups=e._gslRadiogroups;exports._gslRangeCalendarByUid=e._gslRangeCalendarByUid;exports._gslRangeCalendars=e._gslRangeCalendars;exports._gslRangeDateInputByUid=e._gslRangeDateInputByUid;exports._gslRangeDateInputs=e._gslRangeDateInputs;exports._gslRangeDatePickerByUid=e._gslRangeDatePickerByUid;exports._gslRangeDatePickers=e._gslRangeDatePickers;exports._gslRangeDateTimeCalendarByUid=e._gslRangeDateTimeCalendarByUid;exports._gslRangeDateTimeCalendars=e._gslRangeDateTimeCalendars;exports._gslRangeDateTimeInputByUid=e._gslRangeDateTimeInputByUid;exports._gslRangeDateTimeInputs=e._gslRangeDateTimeInputs;exports._gslRangeDateTimePickerByUid=e._gslRangeDateTimePickerByUid;exports._gslRangeDateTimePickers=e._gslRangeDateTimePickers;exports._gslRangeTimeInputByUid=e._gslRangeTimeInputByUid;exports._gslRangeTimeInputs=e._gslRangeTimeInputs;exports._gslRangeTimePickerByUid=e._gslRangeTimePickerByUid;exports._gslRangeTimePickers=e._gslRangeTimePickers;exports._gslRepeaterByUid=e._gslRepeaterByUid;exports._gslRepeaters=e._gslRepeaters;exports._gslSelectByUid=e._gslSelectByUid;exports._gslSelects=e._gslSelects;exports._gslTabs=e._gslTabs;exports._gslTabsByUid=e._gslTabsByUid;exports._gslTags=e._gslTags;exports._gslTagsByUid=e._gslTagsByUid;exports._gslTextInputs=e._gslTextInputs;exports._gslTextareaByUid=e._gslTextareaByUid;exports._gslTextareas=e._gslTextareas;exports._gslTimeInputByUid=e._gslTimeInputByUid;exports._gslTimeInputs=e._gslTimeInputs;exports._gslTimePickerByUid=e._gslTimePickerByUid;exports._gslTimePickers=e._gslTimePickers;exports._guiAccordion=e._guiAccordion;exports._guiAlert=e._guiAlert;exports._guiBooleanInput=e._guiBooleanInput;exports._guiButton=e._guiButton;exports._guiCalendar=e._guiCalendar;exports._guiCheckbox=e._guiCheckbox;exports._guiCurrency=e._guiCurrency;exports._guiCustomAction=e._guiCustomAction;exports._guiCustomDisplay=e._guiCustomDisplay;exports._guiCustomInput=e._guiCustomInput;exports._guiCustomLayout=e._guiCustomLayout;exports._guiDateInput=e._guiDateInput;exports._guiDatePicker=e._guiDatePicker;exports._guiDateTimeCalendar=e._guiDateTimeCalendar;exports._guiDateTimeInput=e._guiDateTimeInput;exports._guiDateTimePicker=e._guiDateTimePicker;exports._guiDisplay=e._guiDisplay;exports._guiDropdown=e._guiDropdown;exports._guiFlex=e._guiFlex;exports._guiGrid=e._guiGrid;exports._guiHorizontalFlex=e._guiHorizontalFlex;exports._guiHorizontalGrid=e._guiHorizontalGrid;exports._guiList=e._guiList;exports._guiMarkdown=e._guiMarkdown;exports._guiMarkdownText=e._guiMarkdownText;exports._guiNumberInput=e._guiNumberInput;exports._guiPassword=e._guiPassword;exports._guiRadiogroup=e._guiRadiogroup;exports._guiRangeCalendar=e._guiRangeCalendar;exports._guiRangeDateInput=e._guiRangeDateInput;exports._guiRangeDatePicker=e._guiRangeDatePicker;exports._guiRangeDateTimeCalendar=e._guiRangeDateTimeCalendar;exports._guiRangeDateTimeInput=e._guiRangeDateTimeInput;exports._guiRangeDateTimePicker=e._guiRangeDateTimePicker;exports._guiRangeTimeInput=e._guiRangeTimeInput;exports._guiRangeTimePicker=e._guiRangeTimePicker;exports._guiRepeater=e._guiRepeater;exports._guiSelect=e._guiSelect;exports._guiTabs=e._guiTabs;exports._guiTags=e._guiTags;exports._guiTextInput=e._guiTextInput;exports._guiTextarea=e._guiTextarea;exports._guiTimeInput=e._guiTimeInput;exports._guiTimePicker=e._guiTimePicker;exports._guiVerticalFlex=e._guiVerticalFlex;exports._guiVerticalGrid=e._guiVerticalGrid;exports.defineShortcutType=e.defineShortcutType;exports.formDefs=e.formDefs;exports.resolveFormInput=e.resolveFormInput;Object.defineProperty(exports,"createGslSelector",{enumerable:!0,get:()=>t.createGslSelector});Object.defineProperty(exports,"extractWidgetProps",{enumerable:!0,get:()=>t.extractWidgetProps});Object.defineProperty(exports,"isDxDefinitions",{enumerable:!0,get:()=>t.isDxDefinitions});Object.defineProperty(exports,"processAutoLabel",{enumerable:!0,get:()=>t.processAutoLabel});Object.defineProperty(exports,"processAutoPlaceholder",{enumerable:!0,get:()=>t.processAutoPlaceholder});exports._gslStates=a;exports._gslTag=l;exports.getItemKey=n;exports.golemForm=u;exports.isOption=r;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export type { GslItemType, WidgetItemDecorator, DxDisplayRenderFn, DxDefinitionItem, DxDefinitions, FormEvents,
|
|
1
|
+
export type { GslItemType, WidgetItemDecorator, DxDisplayRenderFn, DxDefinitionItem, DxDefinitions, FormEvents, } from '@golemui/dx';
|
|
2
|
+
export type { DxResult } from './guiDependencyTypes';
|
|
2
3
|
export type { DxEventHandler, DxInternalFields, DxCommonFields, DxInputBase, DxActionBase, DxLayoutBase, DxDisplayBase, } from '@golemui/dx';
|
|
3
4
|
export type { DataInputDecorator, NumberDataInputValidator, NumberDataInputDecorator, TextDataInputValidator, TextDataInputDecorator, BooleanDataInputDecorator, InputDecorator, ValidShortcutType, DxRuntimeParams, InputTags, } from './shortcuts/inputs/inputs.domain';
|
|
4
5
|
export type { ActionDecorator, ActionDefCallback, ActionDefOrCallback, } from './shortcuts/actions/actions.domain';
|
package/lib/dx/formDefs.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The gui widget set's DX form-definition service: transforms `gui.*` form
|
|
3
|
-
* definitions into fully-fledged core forms.
|
|
3
|
+
* definitions into fully-fledged core forms. Built by the gui
|
|
4
|
+
* `createImplementation` call in `gui.ts`; re-exported here so the
|
|
5
|
+
* pre-refactor import path keeps working.
|
|
4
6
|
*/
|
|
5
|
-
export declare const formDefs: import('@golemui/dx').DxService
|
|
7
|
+
export declare const formDefs: import('@golemui/dx').DxService<import('../shared').Dependencies>;
|