@golemui/gui-shared 0.15.0 → 0.16.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 +23 -0
- package/index.js +215 -194
- package/index.umd.cjs +1 -1
- package/internals.js +1 -1
- package/internals.umd.cjs +1 -1
- package/lib/dx/gui.d.ts +2 -0
- package/lib/dx/index.d.ts +2 -0
- package/lib/dx/shortcuts/markdown-text/guiMarkdownText.impl.d.ts +6 -0
- package/lib/dx/shortcuts/markdown-text/markdownText.domain.d.ts +9 -0
- package/lib/dx/shortcuts/markdown-text/register.d.ts +2 -0
- package/lib/dx/shortcuts/scopes/scopeChain.d.ts +3 -0
- package/lib/widgets.d.ts +1 -1
- package/package.json +3 -3
- package/{resolveFormInput-DevnNiv0.cjs → resolveFormInput-BkRkdOqj.cjs} +1 -1
- package/{resolveFormInput-ZK1cOA9Y.js → resolveFormInput-DoBisQ5Q.js} +53 -53
package/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { G as y, _ as p,
|
|
2
|
-
import { a7 as
|
|
1
|
+
import { G as y, _ as p, d as I, a as _, b as S, c as E, e as h, f as U, g as A, h as k, i as M, j as B, k as D, l as R, m as P, n as w, o as x, p as N, q as b, r as L, s as G, t as C, u as W, v, w as F, x as K, y as Y, z as $, A as j, B as z, C as H, D as X, E as V, F as q, H as Q, I as Z, J, K as O, L as tt, M as et, N as st, O as nt, P as it, Q as rt, R as ot, S as at, T as ut, U as yt, V as ct, W as dt, X as pt, Y as lt, Z as mt, $ as ft, a0 as gt, a1 as Tt, a2 as It, a3 as _t, a4 as St, a5 as Et, a6 as ht } from "./resolveFormInput-DoBisQ5Q.js";
|
|
2
|
+
import { a7 as Ue, a8 as Ae, a9 as ke, aa as Me } from "./resolveFormInput-DoBisQ5Q.js";
|
|
3
3
|
import "@golemui/core";
|
|
4
4
|
import "@golemui/gui-validators";
|
|
5
5
|
function Ut(s, t, e) {
|
|
@@ -38,7 +38,7 @@ function At(s, t, e) {
|
|
|
38
38
|
tags: e ?? []
|
|
39
39
|
};
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function kt(s, t, e) {
|
|
42
42
|
if (typeof t == "function") {
|
|
43
43
|
const o = t;
|
|
44
44
|
return {
|
|
@@ -56,7 +56,7 @@ function Mt(s, t, e) {
|
|
|
56
56
|
tags: e ?? []
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
function
|
|
59
|
+
function Mt(s, t, e) {
|
|
60
60
|
if (typeof t == "function") {
|
|
61
61
|
const i = t;
|
|
62
62
|
return { type: "ITEMS", itemType: "SELECT", items: [{ key: s, def: (a) => ({ type: "select", ...i(a) }) }], tags: e ?? [] };
|
|
@@ -83,7 +83,7 @@ function Dt(s, t, e) {
|
|
|
83
83
|
const n = { type: "radiogroup", ...t };
|
|
84
84
|
return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function Rt(s, t, e) {
|
|
87
87
|
if (typeof t == "function") {
|
|
88
88
|
const i = t;
|
|
89
89
|
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: s, def: (a) => ({ type: "checkbox", ...i(a) }) }], tags: e ?? [] };
|
|
@@ -91,7 +91,7 @@ function Pt(s, t, e) {
|
|
|
91
91
|
const n = { type: "checkbox", ...t };
|
|
92
92
|
return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function Pt(s, t, e) {
|
|
95
95
|
if (typeof t == "function") {
|
|
96
96
|
const i = t;
|
|
97
97
|
return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: s, def: (a) => ({ type: "textarea", ...i(a) }) }], tags: e ?? [] };
|
|
@@ -107,7 +107,7 @@ function wt(s, t, e) {
|
|
|
107
107
|
const n = { type: "password", ...t };
|
|
108
108
|
return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function xt(s, t, e) {
|
|
111
111
|
if (typeof t == "function") {
|
|
112
112
|
const i = t;
|
|
113
113
|
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: s, def: (a) => ({ type: "currency", ...i(a) }) }], tags: e ?? [] };
|
|
@@ -115,7 +115,7 @@ function Nt(s, t, e) {
|
|
|
115
115
|
const n = { type: "currency", ...t };
|
|
116
116
|
return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function Nt(s, t, e) {
|
|
119
119
|
if (typeof t == "function") {
|
|
120
120
|
const i = t;
|
|
121
121
|
return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: s, def: (a) => ({ type: "markdown", ...i(a) }) }], tags: e ?? [] };
|
|
@@ -171,7 +171,7 @@ function Ct(s, t, e) {
|
|
|
171
171
|
const n = { type: "datePicker", ...t };
|
|
172
172
|
return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
173
173
|
}
|
|
174
|
-
function
|
|
174
|
+
function Wt(s, t, e) {
|
|
175
175
|
if (typeof t == "function") {
|
|
176
176
|
const i = t;
|
|
177
177
|
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: s, def: (a) => ({
|
|
@@ -182,7 +182,7 @@ function vt(s, t, e) {
|
|
|
182
182
|
const n = { type: "rangeCalendar", ...t };
|
|
183
183
|
return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
184
184
|
}
|
|
185
|
-
function
|
|
185
|
+
function vt(s, t, e) {
|
|
186
186
|
if (typeof t == "function") {
|
|
187
187
|
const i = t;
|
|
188
188
|
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: s, def: (a) => ({
|
|
@@ -193,7 +193,7 @@ function Ft(s, t, e) {
|
|
|
193
193
|
const n = { type: "rangeDateInput", ...t };
|
|
194
194
|
return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function Ft(s, t, e) {
|
|
197
197
|
if (typeof t == "function") {
|
|
198
198
|
const i = t;
|
|
199
199
|
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: s, def: (a) => ({
|
|
@@ -204,7 +204,7 @@ function Yt(s, t, e) {
|
|
|
204
204
|
const n = { type: "rangeDatePicker", ...t };
|
|
205
205
|
return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Kt(s, t, e, n) {
|
|
208
208
|
if (typeof e == "function") {
|
|
209
209
|
const r = e;
|
|
210
210
|
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (d) => ({
|
|
@@ -215,7 +215,7 @@ function $t(s, t, e, n) {
|
|
|
215
215
|
const o = { customType: s, ...e };
|
|
216
216
|
return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: o }], tags: n ?? [] };
|
|
217
217
|
}
|
|
218
|
-
function
|
|
218
|
+
function Yt(s, t) {
|
|
219
219
|
return {
|
|
220
220
|
items: [s],
|
|
221
221
|
type: "ITEMS",
|
|
@@ -223,7 +223,7 @@ function Wt(s, t) {
|
|
|
223
223
|
tags: t ?? []
|
|
224
224
|
};
|
|
225
225
|
}
|
|
226
|
-
function
|
|
226
|
+
function $t(s, t, e) {
|
|
227
227
|
if (typeof t == "function") {
|
|
228
228
|
const i = t;
|
|
229
229
|
return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
|
|
@@ -235,7 +235,10 @@ function Kt(s, t, e) {
|
|
|
235
235
|
function jt(s, t) {
|
|
236
236
|
return { type: "ITEMS", itemType: "ALERTS", items: [s], tags: t ?? [] };
|
|
237
237
|
}
|
|
238
|
-
function zt(s, t
|
|
238
|
+
function zt(s, t) {
|
|
239
|
+
return { type: "ITEMS", itemType: "MARKDOWN_TEXTS", items: [s], tags: t ?? [] };
|
|
240
|
+
}
|
|
241
|
+
function Ht(s, t, e) {
|
|
239
242
|
if (typeof t == "function") {
|
|
240
243
|
const u = t;
|
|
241
244
|
return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
|
|
@@ -254,7 +257,7 @@ const l = (s, t, e) => ({
|
|
|
254
257
|
itemType: y.LAYOUTS,
|
|
255
258
|
items: [{ def: { widgetName: "flex", ...t ?? {} }, children: s }],
|
|
256
259
|
tags: e ?? []
|
|
257
|
-
}),
|
|
260
|
+
}), Xt = (s, t, e) => l(s, { direction: "row", ...t ?? {} }, e), Vt = (s, t, e) => l(s, { direction: "column", ...t ?? {} }, e), m = (s, t, e) => ({
|
|
258
261
|
type: "ITEMS",
|
|
259
262
|
itemType: y.LAYOUTS,
|
|
260
263
|
items: [
|
|
@@ -269,11 +272,11 @@ const l = (s, t, e) => ({
|
|
|
269
272
|
}
|
|
270
273
|
],
|
|
271
274
|
tags: e ?? []
|
|
272
|
-
}),
|
|
275
|
+
}), qt = (s, t, e) => m(s, { direction: "row", ...t ?? {} }, e), Qt = (s, t, e) => m(s, { direction: "column", ...t ?? {} }, e);
|
|
273
276
|
function g(s) {
|
|
274
277
|
return s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
275
278
|
}
|
|
276
|
-
function
|
|
279
|
+
function Zt(s, t, e) {
|
|
277
280
|
const n = s.map((r) => ({
|
|
278
281
|
label: r.label,
|
|
279
282
|
uid: r.uid ?? g(r.label)
|
|
@@ -301,7 +304,7 @@ function Qt(s, t, e) {
|
|
|
301
304
|
function T(s) {
|
|
302
305
|
return s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
|
|
303
306
|
}
|
|
304
|
-
function
|
|
307
|
+
function Jt(s, t, e) {
|
|
305
308
|
const n = s.map((r) => ({
|
|
306
309
|
label: r.label,
|
|
307
310
|
uid: r.uid ?? T(r.label)
|
|
@@ -326,7 +329,7 @@ function Zt(s, t, e) {
|
|
|
326
329
|
tags: e ?? []
|
|
327
330
|
};
|
|
328
331
|
}
|
|
329
|
-
function
|
|
332
|
+
function Ot(s, t, e, n) {
|
|
330
333
|
if (typeof e == "function") {
|
|
331
334
|
const r = e;
|
|
332
335
|
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (d) => ({
|
|
@@ -336,7 +339,7 @@ function Jt(s, t, e, n) {
|
|
|
336
339
|
}
|
|
337
340
|
return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: s, ...e }, children: t }], tags: n ?? [] };
|
|
338
341
|
}
|
|
339
|
-
function
|
|
342
|
+
function te(s, t, e) {
|
|
340
343
|
const { template: n, ...o } = t;
|
|
341
344
|
return {
|
|
342
345
|
type: "ITEMS",
|
|
@@ -345,7 +348,7 @@ function Ot(s, t, e) {
|
|
|
345
348
|
tags: e ?? []
|
|
346
349
|
};
|
|
347
350
|
}
|
|
348
|
-
function
|
|
351
|
+
function ee(s, t, e) {
|
|
349
352
|
if (typeof t == "function") {
|
|
350
353
|
const i = t;
|
|
351
354
|
return { type: "ITEMS", itemType: "TAGS", items: [{ key: s, def: (a) => ({ type: "tags", ...i(a) }) }], tags: e ?? [] };
|
|
@@ -353,7 +356,18 @@ function te(s, t, e) {
|
|
|
353
356
|
const n = { type: "tags", ...t };
|
|
354
357
|
return { type: "ITEMS", itemType: "TAGS", items: [{ key: s, def: n }], tags: e ?? [] };
|
|
355
358
|
}
|
|
356
|
-
const
|
|
359
|
+
const se = (s) => p(s, (t) => t.type === "text"), ne = (s) => p(s, (t) => t.type === "number"), ie = (s) => p(s, (t) => t.type === "boolean"), { gsl: re, gslByUid: oe } = I({
|
|
360
|
+
itemType: "MARKDOWN_TEXTS",
|
|
361
|
+
entryShape: "bare",
|
|
362
|
+
mapToWidget: (s) => ({
|
|
363
|
+
uid: s.uid ?? "",
|
|
364
|
+
kind: "display",
|
|
365
|
+
type: "markdownText",
|
|
366
|
+
props: {
|
|
367
|
+
md: s.md
|
|
368
|
+
}
|
|
369
|
+
})
|
|
370
|
+
});
|
|
357
371
|
class c {
|
|
358
372
|
constructor(t) {
|
|
359
373
|
this.conditions = t;
|
|
@@ -405,73 +419,73 @@ class c {
|
|
|
405
419
|
return this.apply(p(t));
|
|
406
420
|
}
|
|
407
421
|
inputByUid(t, e) {
|
|
408
|
-
return this.apply(
|
|
422
|
+
return this.apply(_(t, e));
|
|
409
423
|
}
|
|
410
424
|
textInputs(t) {
|
|
411
|
-
return this.apply(
|
|
425
|
+
return this.apply(se(t));
|
|
412
426
|
}
|
|
413
427
|
numberInputs(t) {
|
|
414
|
-
return this.apply(
|
|
428
|
+
return this.apply(ne(t));
|
|
415
429
|
}
|
|
416
430
|
booleanInputs(t) {
|
|
417
|
-
return this.apply(
|
|
431
|
+
return this.apply(ie(t));
|
|
418
432
|
}
|
|
419
433
|
selects(t) {
|
|
420
|
-
return this.apply(
|
|
434
|
+
return this.apply(S(t));
|
|
421
435
|
}
|
|
422
436
|
selectByUid(t, e) {
|
|
423
437
|
return this.apply(E(t, e));
|
|
424
438
|
}
|
|
425
439
|
dropdowns(t) {
|
|
426
|
-
return this.apply(
|
|
440
|
+
return this.apply(h(t));
|
|
427
441
|
}
|
|
428
442
|
dropdownByUid(t, e) {
|
|
429
|
-
return this.apply(
|
|
443
|
+
return this.apply(U(t, e));
|
|
430
444
|
}
|
|
431
445
|
radiogroups(t) {
|
|
432
|
-
return this.apply(
|
|
446
|
+
return this.apply(A(t));
|
|
433
447
|
}
|
|
434
448
|
radiogroupByUid(t, e) {
|
|
435
|
-
return this.apply(
|
|
449
|
+
return this.apply(k(t, e));
|
|
436
450
|
}
|
|
437
451
|
checkboxes(t) {
|
|
438
452
|
return this.apply(M(t));
|
|
439
453
|
}
|
|
440
454
|
checkboxByUid(t, e) {
|
|
441
|
-
return this.apply(
|
|
455
|
+
return this.apply(B(t, e));
|
|
442
456
|
}
|
|
443
457
|
textareas(t) {
|
|
444
|
-
return this.apply(
|
|
458
|
+
return this.apply(D(t));
|
|
445
459
|
}
|
|
446
460
|
textareaByUid(t, e) {
|
|
447
|
-
return this.apply(
|
|
461
|
+
return this.apply(R(t, e));
|
|
448
462
|
}
|
|
449
463
|
passwords(t) {
|
|
450
464
|
return this.apply(P(t));
|
|
451
465
|
}
|
|
452
466
|
passwordByUid(t, e) {
|
|
453
|
-
return this.apply(
|
|
467
|
+
return this.apply(w(t, e));
|
|
454
468
|
}
|
|
455
469
|
currencies(t) {
|
|
456
|
-
return this.apply(
|
|
470
|
+
return this.apply(x(t));
|
|
457
471
|
}
|
|
458
472
|
currencyByUid(t, e) {
|
|
459
473
|
return this.apply(N(t, e));
|
|
460
474
|
}
|
|
461
475
|
markdowns(t) {
|
|
462
|
-
return this.apply(
|
|
476
|
+
return this.apply(b(t));
|
|
463
477
|
}
|
|
464
478
|
markdownByUid(t, e) {
|
|
465
|
-
return this.apply(
|
|
479
|
+
return this.apply(L(t, e));
|
|
466
480
|
}
|
|
467
481
|
lists(t) {
|
|
468
|
-
return this.apply(
|
|
482
|
+
return this.apply(G(t));
|
|
469
483
|
}
|
|
470
484
|
listByUid(t, e) {
|
|
471
|
-
return this.apply(
|
|
485
|
+
return this.apply(C(t, e));
|
|
472
486
|
}
|
|
473
487
|
calendars(t) {
|
|
474
|
-
return this.apply(
|
|
488
|
+
return this.apply(W(t));
|
|
475
489
|
}
|
|
476
490
|
calendarByUid(t, e) {
|
|
477
491
|
return this.apply(v(t, e));
|
|
@@ -480,153 +494,160 @@ class c {
|
|
|
480
494
|
return this.apply(F(t));
|
|
481
495
|
}
|
|
482
496
|
dateInputByUid(t, e) {
|
|
483
|
-
return this.apply(
|
|
497
|
+
return this.apply(K(t, e));
|
|
484
498
|
}
|
|
485
499
|
datePickers(t) {
|
|
486
|
-
return this.apply(
|
|
500
|
+
return this.apply(Y(t));
|
|
487
501
|
}
|
|
488
502
|
datePickerByUid(t, e) {
|
|
489
|
-
return this.apply(
|
|
503
|
+
return this.apply($(t, e));
|
|
490
504
|
}
|
|
491
505
|
rangeCalendars(t) {
|
|
492
|
-
return this.apply(
|
|
506
|
+
return this.apply(j(t));
|
|
493
507
|
}
|
|
494
508
|
rangeCalendarByUid(t, e) {
|
|
495
|
-
return this.apply(
|
|
509
|
+
return this.apply(z(t, e));
|
|
496
510
|
}
|
|
497
511
|
rangeDateInputs(t) {
|
|
498
|
-
return this.apply(
|
|
512
|
+
return this.apply(H(t));
|
|
499
513
|
}
|
|
500
514
|
rangeDateInputByUid(t, e) {
|
|
501
|
-
return this.apply(
|
|
515
|
+
return this.apply(X(t, e));
|
|
502
516
|
}
|
|
503
517
|
rangeDatePickers(t) {
|
|
504
|
-
return this.apply(
|
|
518
|
+
return this.apply(V(t));
|
|
505
519
|
}
|
|
506
520
|
rangeDatePickerByUid(t, e) {
|
|
507
|
-
return this.apply(
|
|
521
|
+
return this.apply(q(t, e));
|
|
508
522
|
}
|
|
509
523
|
repeaters(t) {
|
|
510
|
-
return this.apply(
|
|
524
|
+
return this.apply(Q(t));
|
|
511
525
|
}
|
|
512
526
|
repeaterByUid(t, e) {
|
|
513
|
-
return this.apply(
|
|
527
|
+
return this.apply(Z(t, e));
|
|
514
528
|
}
|
|
515
529
|
// ─── Type selectors — actions, displays, layouts ───
|
|
516
530
|
actions(t) {
|
|
517
|
-
return this.apply(
|
|
531
|
+
return this.apply(J(t));
|
|
518
532
|
}
|
|
519
533
|
actionByUid(t, e) {
|
|
520
|
-
return this.apply(
|
|
534
|
+
return this.apply(O(t, e));
|
|
521
535
|
}
|
|
522
536
|
layouts(t) {
|
|
523
|
-
return this.apply(
|
|
537
|
+
return this.apply(tt(t));
|
|
524
538
|
}
|
|
525
539
|
layoutByUid(t, e) {
|
|
526
|
-
return this.apply(
|
|
540
|
+
return this.apply(et(t, e));
|
|
527
541
|
}
|
|
528
542
|
displays(t) {
|
|
529
|
-
return this.apply(
|
|
543
|
+
return this.apply(st(t));
|
|
530
544
|
}
|
|
531
545
|
displayByUid(t, e) {
|
|
532
|
-
return this.apply(
|
|
546
|
+
return this.apply(nt(t, e));
|
|
533
547
|
}
|
|
534
548
|
alerts(t) {
|
|
535
|
-
return this.apply(
|
|
549
|
+
return this.apply(it(t));
|
|
536
550
|
}
|
|
537
551
|
alertByUid(t, e) {
|
|
538
|
-
return this.apply(
|
|
552
|
+
return this.apply(rt(t, e));
|
|
553
|
+
}
|
|
554
|
+
markdownTexts(t) {
|
|
555
|
+
return this.apply(re(t));
|
|
556
|
+
}
|
|
557
|
+
markdownTextByUid(t, e) {
|
|
558
|
+
return this.apply(oe(t, e));
|
|
539
559
|
}
|
|
540
560
|
tabs(t) {
|
|
541
|
-
return this.apply(
|
|
561
|
+
return this.apply(ot(t));
|
|
542
562
|
}
|
|
543
563
|
tabsByUid(t, e) {
|
|
544
|
-
return this.apply(
|
|
564
|
+
return this.apply(at(t, e));
|
|
545
565
|
}
|
|
546
566
|
accordions(t) {
|
|
547
|
-
return this.apply(
|
|
567
|
+
return this.apply(ut(t));
|
|
548
568
|
}
|
|
549
569
|
accordionByUid(t, e) {
|
|
550
|
-
return this.apply(
|
|
570
|
+
return this.apply(yt(t, e));
|
|
551
571
|
}
|
|
552
572
|
// ─── Type selectors — custom kinds ───
|
|
553
573
|
customInputs(t) {
|
|
554
|
-
return this.apply(
|
|
574
|
+
return this.apply(ct(t));
|
|
555
575
|
}
|
|
556
576
|
customInputByUid(t, e) {
|
|
557
|
-
return this.apply(
|
|
577
|
+
return this.apply(dt(t, e));
|
|
558
578
|
}
|
|
559
579
|
customActions(t) {
|
|
560
|
-
return this.apply(
|
|
580
|
+
return this.apply(pt(t));
|
|
561
581
|
}
|
|
562
582
|
customActionByUid(t, e) {
|
|
563
|
-
return this.apply(
|
|
583
|
+
return this.apply(lt(t, e));
|
|
564
584
|
}
|
|
565
585
|
customDisplays(t) {
|
|
566
|
-
return this.apply(
|
|
586
|
+
return this.apply(mt(t));
|
|
567
587
|
}
|
|
568
588
|
customDisplayByUid(t, e) {
|
|
569
|
-
return this.apply(
|
|
589
|
+
return this.apply(ft(t, e));
|
|
570
590
|
}
|
|
571
591
|
customLayouts(t) {
|
|
572
|
-
return this.apply(
|
|
592
|
+
return this.apply(gt(t));
|
|
573
593
|
}
|
|
574
594
|
customLayoutByUid(t, e) {
|
|
575
|
-
return this.apply(
|
|
595
|
+
return this.apply(Tt(t, e));
|
|
576
596
|
}
|
|
577
597
|
}
|
|
578
|
-
const
|
|
598
|
+
const le = {
|
|
579
599
|
inputs: {
|
|
580
600
|
textInput: Ut,
|
|
581
601
|
numberInput: At,
|
|
582
|
-
booleanInput:
|
|
583
|
-
select:
|
|
602
|
+
booleanInput: kt,
|
|
603
|
+
select: Mt,
|
|
584
604
|
dropdown: Bt,
|
|
585
605
|
radiogroup: Dt,
|
|
586
|
-
checkbox:
|
|
587
|
-
textarea:
|
|
606
|
+
checkbox: Rt,
|
|
607
|
+
textarea: Pt,
|
|
588
608
|
password: wt,
|
|
589
|
-
currency:
|
|
590
|
-
markdown:
|
|
609
|
+
currency: xt,
|
|
610
|
+
markdown: Nt,
|
|
591
611
|
list: bt,
|
|
592
612
|
calendar: Lt,
|
|
593
613
|
dateInput: Gt,
|
|
594
614
|
datePicker: Ct,
|
|
595
|
-
rangeCalendar:
|
|
596
|
-
rangeDateInput:
|
|
597
|
-
rangeDatePicker:
|
|
598
|
-
repeater:
|
|
599
|
-
tags:
|
|
600
|
-
custom:
|
|
615
|
+
rangeCalendar: Wt,
|
|
616
|
+
rangeDateInput: vt,
|
|
617
|
+
rangeDatePicker: Ft,
|
|
618
|
+
repeater: te,
|
|
619
|
+
tags: ee,
|
|
620
|
+
custom: Kt
|
|
601
621
|
},
|
|
602
622
|
actions: {
|
|
603
|
-
button:
|
|
604
|
-
custom:
|
|
623
|
+
button: Yt,
|
|
624
|
+
custom: $t
|
|
605
625
|
},
|
|
606
626
|
displays: {
|
|
607
|
-
display:
|
|
627
|
+
display: It,
|
|
608
628
|
alert: jt,
|
|
609
|
-
|
|
629
|
+
markdownText: zt,
|
|
630
|
+
custom: Ht
|
|
610
631
|
},
|
|
611
632
|
layouts: {
|
|
612
633
|
flex: l,
|
|
613
|
-
horizontalFlex:
|
|
614
|
-
verticalFlex:
|
|
634
|
+
horizontalFlex: Xt,
|
|
635
|
+
verticalFlex: Vt,
|
|
615
636
|
grid: m,
|
|
616
|
-
horizontalGrid:
|
|
617
|
-
verticalGrid:
|
|
618
|
-
tabs:
|
|
619
|
-
accordion:
|
|
620
|
-
custom:
|
|
637
|
+
horizontalGrid: qt,
|
|
638
|
+
verticalGrid: Qt,
|
|
639
|
+
tabs: Zt,
|
|
640
|
+
accordion: Jt,
|
|
641
|
+
custom: Ot
|
|
621
642
|
},
|
|
622
643
|
selectors: c.root()
|
|
623
|
-
}, { gsl:
|
|
644
|
+
}, { gsl: me, gslByUid: fe } = I({
|
|
624
645
|
itemType: "TAGS",
|
|
625
646
|
entryShape: "keyed",
|
|
626
647
|
sensibleDefaults: {
|
|
627
648
|
base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
|
|
628
649
|
fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
|
|
629
|
-
apply: (s, t) =>
|
|
650
|
+
apply: (s, t) => Et(ht(s, t), t)
|
|
630
651
|
},
|
|
631
652
|
mapToWidget: (s) => ({
|
|
632
653
|
uid: s.uid ?? "",
|
|
@@ -636,24 +657,24 @@ const ce = {
|
|
|
636
657
|
...s.label != null ? { label: s.label } : {},
|
|
637
658
|
...s.disabled != null ? { disabled: s.disabled } : {},
|
|
638
659
|
...s.readonly != null ? { readonly: s.readonly } : {},
|
|
639
|
-
...s.validator != null ? { validator:
|
|
660
|
+
...s.validator != null ? { validator: St(s.validator, "array") } : {},
|
|
640
661
|
props: _t(s)
|
|
641
662
|
})
|
|
642
663
|
});
|
|
643
|
-
function
|
|
664
|
+
function ge(s, ...t) {
|
|
644
665
|
return t.map((e) => ({
|
|
645
666
|
...e,
|
|
646
667
|
targetState: s
|
|
647
668
|
}));
|
|
648
669
|
}
|
|
649
|
-
function
|
|
670
|
+
function Te(s, ...t) {
|
|
650
671
|
return {
|
|
651
672
|
kind: "aggregated",
|
|
652
673
|
matcher: (e) => e.tags?.includes(s) ?? !1,
|
|
653
674
|
children: t
|
|
654
675
|
};
|
|
655
676
|
}
|
|
656
|
-
class
|
|
677
|
+
class ae {
|
|
657
678
|
create(t) {
|
|
658
679
|
return {
|
|
659
680
|
states: t.states,
|
|
@@ -666,21 +687,21 @@ class ie {
|
|
|
666
687
|
};
|
|
667
688
|
}
|
|
668
689
|
}
|
|
669
|
-
function
|
|
670
|
-
return new
|
|
690
|
+
function Ie() {
|
|
691
|
+
return new ae();
|
|
671
692
|
}
|
|
672
|
-
const
|
|
673
|
-
function
|
|
693
|
+
const _e = (s) => s !== null && typeof s == "object" && Object.prototype.hasOwnProperty.call(s, "label") && Object.prototype.hasOwnProperty.call(s, "value");
|
|
694
|
+
function ue(s) {
|
|
674
695
|
return typeof s == "object" && s !== null && "$ref" in s && typeof s.$ref == "string" && Object.keys(s).length === 1;
|
|
675
696
|
}
|
|
676
|
-
async function
|
|
697
|
+
async function ye(s, t) {
|
|
677
698
|
const e = new URL(s, t).href, n = await fetch(e);
|
|
678
699
|
if (!n.ok) throw new Error(`Failed to load form chunk ${e}: ${n.status}`);
|
|
679
700
|
const { $schema: o, ...i } = await n.json();
|
|
680
701
|
return f(i, e);
|
|
681
702
|
}
|
|
682
703
|
async function f(s, t) {
|
|
683
|
-
if (
|
|
704
|
+
if (ue(s)) return ye(s.$ref, t);
|
|
684
705
|
const e = s;
|
|
685
706
|
if (Array.isArray(e.children)) {
|
|
686
707
|
const n = await Promise.all(e.children.map((o) => f(o, t)));
|
|
@@ -688,116 +709,116 @@ async function f(s, t) {
|
|
|
688
709
|
}
|
|
689
710
|
return s;
|
|
690
711
|
}
|
|
691
|
-
async function
|
|
712
|
+
async function Se(s, t) {
|
|
692
713
|
const e = await Promise.all(
|
|
693
714
|
s.form.map((n) => f(n, t))
|
|
694
715
|
);
|
|
695
716
|
return { ...s, form: e };
|
|
696
717
|
}
|
|
697
718
|
export {
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
719
|
+
yt as _gslAccordionByUid,
|
|
720
|
+
ut as _gslAccordions,
|
|
721
|
+
O as _gslActionByUid,
|
|
722
|
+
J as _gslActions,
|
|
723
|
+
rt as _gslAlertByUid,
|
|
724
|
+
it as _gslAlerts,
|
|
725
|
+
ie as _gslBooleanInputs,
|
|
705
726
|
v as _gslCalendarByUid,
|
|
706
|
-
|
|
707
|
-
|
|
727
|
+
W as _gslCalendars,
|
|
728
|
+
B as _gslCheckboxByUid,
|
|
708
729
|
M as _gslCheckboxes,
|
|
709
|
-
|
|
730
|
+
x as _gslCurrencies,
|
|
710
731
|
N as _gslCurrencyByUid,
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
732
|
+
lt as _gslCustomActionByUid,
|
|
733
|
+
pt as _gslCustomActions,
|
|
734
|
+
ft as _gslCustomDisplayByUid,
|
|
735
|
+
mt as _gslCustomDisplays,
|
|
736
|
+
dt as _gslCustomInputByUid,
|
|
737
|
+
ct as _gslCustomInputs,
|
|
738
|
+
Tt as _gslCustomLayoutByUid,
|
|
739
|
+
gt as _gslCustomLayouts,
|
|
740
|
+
K as _gslDateInputByUid,
|
|
720
741
|
F as _gslDateInputs,
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
742
|
+
$ as _gslDatePickerByUid,
|
|
743
|
+
Y as _gslDatePickers,
|
|
744
|
+
nt as _gslDisplayByUid,
|
|
745
|
+
st as _gslDisplays,
|
|
746
|
+
U as _gslDropdownByUid,
|
|
747
|
+
h as _gslDropdowns,
|
|
748
|
+
_ as _gslInputByUid,
|
|
728
749
|
p as _gslInputs,
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
750
|
+
et as _gslLayoutByUid,
|
|
751
|
+
tt as _gslLayouts,
|
|
752
|
+
C as _gslListByUid,
|
|
753
|
+
G as _gslLists,
|
|
754
|
+
L as _gslMarkdownByUid,
|
|
755
|
+
b as _gslMarkdowns,
|
|
756
|
+
ne as _gslNumberInputs,
|
|
757
|
+
w as _gslPasswordByUid,
|
|
737
758
|
P as _gslPasswords,
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
759
|
+
k as _gslRadiogroupByUid,
|
|
760
|
+
A as _gslRadiogroups,
|
|
761
|
+
z as _gslRangeCalendarByUid,
|
|
762
|
+
j as _gslRangeCalendars,
|
|
763
|
+
X as _gslRangeDateInputByUid,
|
|
764
|
+
H as _gslRangeDateInputs,
|
|
765
|
+
q as _gslRangeDatePickerByUid,
|
|
766
|
+
V as _gslRangeDatePickers,
|
|
767
|
+
Z as _gslRepeaterByUid,
|
|
768
|
+
Q as _gslRepeaters,
|
|
748
769
|
E as _gslSelectByUid,
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
770
|
+
S as _gslSelects,
|
|
771
|
+
ge as _gslStates,
|
|
772
|
+
ot as _gslTabs,
|
|
773
|
+
at as _gslTabsByUid,
|
|
774
|
+
Te as _gslTag,
|
|
775
|
+
se as _gslTextInputs,
|
|
776
|
+
R as _gslTextareaByUid,
|
|
777
|
+
D as _gslTextareas,
|
|
778
|
+
Jt as _guiAccordion,
|
|
758
779
|
jt as _guiAlert,
|
|
759
|
-
|
|
760
|
-
|
|
780
|
+
kt as _guiBooleanInput,
|
|
781
|
+
Yt as _guiButton,
|
|
761
782
|
Lt as _guiCalendar,
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
783
|
+
Rt as _guiCheckbox,
|
|
784
|
+
xt as _guiCurrency,
|
|
785
|
+
$t as _guiCustomAction,
|
|
786
|
+
Ht as _guiCustomDisplay,
|
|
787
|
+
Kt as _guiCustomInput,
|
|
788
|
+
Ot as _guiCustomLayout,
|
|
768
789
|
Gt as _guiDateInput,
|
|
769
790
|
Ct as _guiDatePicker,
|
|
770
|
-
|
|
791
|
+
It as _guiDisplay,
|
|
771
792
|
Bt as _guiDropdown,
|
|
772
793
|
l as _guiFlex,
|
|
773
794
|
m as _guiGrid,
|
|
774
|
-
|
|
775
|
-
|
|
795
|
+
Xt as _guiHorizontalFlex,
|
|
796
|
+
qt as _guiHorizontalGrid,
|
|
776
797
|
bt as _guiList,
|
|
777
|
-
|
|
798
|
+
Nt as _guiMarkdown,
|
|
778
799
|
At as _guiNumberInput,
|
|
779
800
|
wt as _guiPassword,
|
|
780
801
|
Dt as _guiRadiogroup,
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
802
|
+
Wt as _guiRangeCalendar,
|
|
803
|
+
vt as _guiRangeDateInput,
|
|
804
|
+
Ft as _guiRangeDatePicker,
|
|
805
|
+
te as _guiRepeater,
|
|
806
|
+
Mt as _guiSelect,
|
|
807
|
+
Zt as _guiTabs,
|
|
787
808
|
Ut as _guiTextInput,
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
809
|
+
Pt as _guiTextarea,
|
|
810
|
+
Vt as _guiVerticalFlex,
|
|
811
|
+
Qt as _guiVerticalGrid,
|
|
812
|
+
Ue as createGslSelector,
|
|
813
|
+
I as defineShortcutType,
|
|
793
814
|
_t as extractWidgetProps,
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
815
|
+
Ae as formDefs,
|
|
816
|
+
Ie as golemForm,
|
|
817
|
+
le as gui,
|
|
818
|
+
ke as isDxDefinitions,
|
|
819
|
+
_e as isOption,
|
|
799
820
|
ht as processAutoLabel,
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
821
|
+
Et as processAutoPlaceholder,
|
|
822
|
+
Se as resolveChunkRefs,
|
|
823
|
+
Me as resolveFormInput
|
|
803
824
|
};
|