@golemui/gui-shared 1.0.0-rc.2 → 1.0.0-rc.3

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.
@@ -5,7 +5,7 @@ const m = {
5
5
  LAYOUTS: "LAYOUTS",
6
6
  DISPLAYS: "DISPLAYS"
7
7
  };
8
- function U(e) {
8
+ function P(e) {
9
9
  return function(t, s = () => !0) {
10
10
  return {
11
11
  kind: "leaf",
@@ -18,7 +18,7 @@ function U(e) {
18
18
  function y(e, t) {
19
19
  return typeof e == "function" ? e : { type: t, ...e ?? {} };
20
20
  }
21
- function ce(e, t, s) {
21
+ function ye(e, t, s) {
22
22
  if (typeof t == "function") {
23
23
  const n = t;
24
24
  return {
@@ -36,7 +36,7 @@ function ce(e, t, s) {
36
36
  tags: s ?? []
37
37
  };
38
38
  }
39
- function ye(e, t, s) {
39
+ function me(e, t, s) {
40
40
  if (typeof t == "function") {
41
41
  const n = t;
42
42
  return {
@@ -54,7 +54,7 @@ function ye(e, t, s) {
54
54
  tags: s ?? []
55
55
  };
56
56
  }
57
- function me(e, t, s) {
57
+ function Te(e, t, s) {
58
58
  if (typeof t == "function") {
59
59
  const n = t;
60
60
  return {
@@ -72,7 +72,7 @@ function me(e, t, s) {
72
72
  tags: s ?? []
73
73
  };
74
74
  }
75
- function Te(e, t, s) {
75
+ function ge(e, t, s) {
76
76
  if (typeof t == "function") {
77
77
  const i = t;
78
78
  return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: (l) => ({ type: "select", ...i(l) }) }], tags: s ?? [] };
@@ -80,7 +80,7 @@ function Te(e, t, s) {
80
80
  const a = { type: "select", ...t };
81
81
  return { type: "ITEMS", itemType: "SELECT", items: [{ key: e, def: a }], tags: s ?? [] };
82
82
  }
83
- function ge(e, t, s) {
83
+ function be(e, t, s) {
84
84
  if (typeof t == "function") {
85
85
  const i = t;
86
86
  return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: (l) => ({
@@ -91,7 +91,7 @@ function ge(e, t, s) {
91
91
  const a = { type: "dropdown", ...t };
92
92
  return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
93
93
  }
94
- function be(e, t, s) {
94
+ function he(e, t, s) {
95
95
  if (typeof t == "function") {
96
96
  const i = t;
97
97
  return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: (l) => ({ type: "radiogroup", ...i(l) }) }], tags: s ?? [] };
@@ -99,7 +99,7 @@ function be(e, t, s) {
99
99
  const a = { type: "radiogroup", ...t };
100
100
  return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: e, def: a }], tags: s ?? [] };
101
101
  }
102
- function he(e, t, s) {
102
+ function _e(e, t, s) {
103
103
  if (typeof t == "function") {
104
104
  const i = t;
105
105
  return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: (l) => ({ type: "checkbox", ...i(l) }) }], tags: s ?? [] };
@@ -107,7 +107,7 @@ function he(e, t, s) {
107
107
  const a = { type: "checkbox", ...t };
108
108
  return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: e, def: a }], tags: s ?? [] };
109
109
  }
110
- function _e(e, t, s) {
110
+ function Se(e, t, s) {
111
111
  if (typeof t == "function") {
112
112
  const i = t;
113
113
  return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: (l) => ({ type: "textarea", ...i(l) }) }], tags: s ?? [] };
@@ -115,7 +115,7 @@ function _e(e, t, s) {
115
115
  const a = { type: "textarea", ...t };
116
116
  return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: e, def: a }], tags: s ?? [] };
117
117
  }
118
- function Se(e, t, s) {
118
+ function Ae(e, t, s) {
119
119
  if (typeof t == "function") {
120
120
  const i = t;
121
121
  return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: (l) => ({ type: "password", ...i(l) }) }], tags: s ?? [] };
@@ -123,7 +123,7 @@ function Se(e, t, s) {
123
123
  const a = { type: "password", ...t };
124
124
  return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: e, def: a }], tags: s ?? [] };
125
125
  }
126
- function Ae(e, t, s) {
126
+ function Ie(e, t, s) {
127
127
  if (typeof t == "function") {
128
128
  const i = t;
129
129
  return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: (l) => ({ type: "currency", ...i(l) }) }], tags: s ?? [] };
@@ -131,7 +131,7 @@ function Ae(e, t, s) {
131
131
  const a = { type: "currency", ...t };
132
132
  return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: e, def: a }], tags: s ?? [] };
133
133
  }
134
- function Ie(e, t, s) {
134
+ function Ee(e, t, s) {
135
135
  if (typeof t == "function") {
136
136
  const i = t;
137
137
  return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: (l) => ({ type: "markdown", ...i(l) }) }], tags: s ?? [] };
@@ -139,7 +139,7 @@ function Ie(e, t, s) {
139
139
  const a = { type: "markdown", ...t };
140
140
  return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: e, def: a }], tags: s ?? [] };
141
141
  }
142
- function Ee(e, t, s) {
142
+ function fe(e, t, s) {
143
143
  if (typeof t == "function") {
144
144
  const i = t;
145
145
  return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: (l) => ({ type: "list", ...i(l) }) }], tags: s ?? [] };
@@ -147,7 +147,7 @@ function Ee(e, t, s) {
147
147
  const a = { type: "list", ...t };
148
148
  return { type: "ITEMS", itemType: "LIST", items: [{ key: e, def: a }], tags: s ?? [] };
149
149
  }
150
- function fe(e, t, s) {
150
+ function ke(e, t, s) {
151
151
  if (typeof t == "function") {
152
152
  const n = t;
153
153
  return {
@@ -168,7 +168,7 @@ function fe(e, t, s) {
168
168
  tags: s ?? []
169
169
  };
170
170
  }
171
- function ke(e, t, s) {
171
+ function Ue(e, t, s) {
172
172
  if (typeof t == "function") {
173
173
  const i = t;
174
174
  return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: (l) => ({ type: "dateInput", ...i(l) }) }], tags: s ?? [] };
@@ -176,7 +176,7 @@ function ke(e, t, s) {
176
176
  const a = { type: "dateInput", ...t };
177
177
  return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
178
178
  }
179
- function Ue(e, t, s) {
179
+ function Pe(e, t, s) {
180
180
  if (typeof t == "function") {
181
181
  const i = t;
182
182
  return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: (l) => ({
@@ -187,7 +187,7 @@ function Ue(e, t, s) {
187
187
  const a = { type: "datePicker", ...t };
188
188
  return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
189
189
  }
190
- function Pe(e, t, s) {
190
+ function Le(e, t, s) {
191
191
  if (typeof t == "function") {
192
192
  const i = t;
193
193
  return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: (l) => ({
@@ -198,7 +198,7 @@ function Pe(e, t, s) {
198
198
  const a = { type: "rangeCalendar", ...t };
199
199
  return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: e, def: a }], tags: s ?? [] };
200
200
  }
201
- function Le(e, t, s) {
201
+ function De(e, t, s) {
202
202
  if (typeof t == "function") {
203
203
  const i = t;
204
204
  return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: (l) => ({
@@ -209,7 +209,7 @@ function Le(e, t, s) {
209
209
  const a = { type: "rangeDateInput", ...t };
210
210
  return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: e, def: a }], tags: s ?? [] };
211
211
  }
212
- function De(e, t, s) {
212
+ function Me(e, t, s) {
213
213
  if (typeof t == "function") {
214
214
  const i = t;
215
215
  return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: (l) => ({
@@ -220,7 +220,7 @@ function De(e, t, s) {
220
220
  const a = { type: "rangeDatePicker", ...t };
221
221
  return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: e, def: a }], tags: s ?? [] };
222
222
  }
223
- function Me(e, t, s, a) {
223
+ function Ce(e, t, s, a) {
224
224
  if (typeof s == "function") {
225
225
  const o = s;
226
226
  return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (p) => ({
@@ -231,7 +231,7 @@ function Me(e, t, s, a) {
231
231
  const n = { customType: e, ...s };
232
232
  return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: n }], tags: a ?? [] };
233
233
  }
234
- function Ce(e, t) {
234
+ function ve(e, t) {
235
235
  return {
236
236
  items: [e],
237
237
  type: "ITEMS",
@@ -239,7 +239,7 @@ function Ce(e, t) {
239
239
  tags: t ?? []
240
240
  };
241
241
  }
242
- function ve(e, t, s) {
242
+ function Be(e, t, s) {
243
243
  if (typeof t == "function") {
244
244
  const i = t;
245
245
  return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
@@ -248,19 +248,19 @@ function ve(e, t, s) {
248
248
  }
249
249
  return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType: e, ...t }], tags: s ?? [] };
250
250
  }
251
- const Be = (e, t) => ({
251
+ const we = (e, t) => ({
252
252
  type: "ITEMS",
253
253
  itemType: m.DISPLAYS,
254
254
  items: [{ render: e }],
255
255
  tags: t ?? []
256
256
  });
257
- function we(e, t) {
257
+ function Ne(e, t) {
258
258
  return { type: "ITEMS", itemType: "ALERTS", items: [e], tags: t ?? [] };
259
259
  }
260
- function Ne(e, t) {
260
+ function We(e, t) {
261
261
  return { type: "ITEMS", itemType: "MARKDOWN_TEXTS", items: [e], tags: t ?? [] };
262
262
  }
263
- function We(e, t, s) {
263
+ function Re(e, t, s) {
264
264
  if (typeof t == "function") {
265
265
  const r = t;
266
266
  return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
@@ -274,12 +274,12 @@ function We(e, t, s) {
274
274
  props: Object.keys(n).length > 0 ? n : void 0
275
275
  }], tags: s ?? [] };
276
276
  }
277
- const P = (e, t, s) => ({
277
+ const L = (e, t, s) => ({
278
278
  type: "ITEMS",
279
279
  itemType: m.LAYOUTS,
280
280
  items: [{ def: { widgetName: "flex", ...t ?? {} }, children: e }],
281
281
  tags: s ?? []
282
- }), Re = (e, t, s) => P(e, { direction: "row", ...t ?? {} }, s), Oe = (e, t, s) => P(e, { direction: "column", ...t ?? {} }, s), L = (e, t, s) => ({
282
+ }), Oe = (e, t, s) => L(e, { direction: "row", ...t ?? {} }, s), xe = (e, t, s) => L(e, { direction: "column", ...t ?? {} }, s), D = (e, t, s) => ({
283
283
  type: "ITEMS",
284
284
  itemType: m.LAYOUTS,
285
285
  items: [
@@ -294,11 +294,11 @@ const P = (e, t, s) => ({
294
294
  }
295
295
  ],
296
296
  tags: s ?? []
297
- }), xe = (e, t, s) => L(e, { direction: "row", ...t ?? {} }, s), Ye = (e, t, s) => L(e, { direction: "column", ...t ?? {} }, s);
297
+ }), Ye = (e, t, s) => D(e, { direction: "row", ...t ?? {} }, s), $e = (e, t, s) => D(e, { direction: "column", ...t ?? {} }, s);
298
298
  function f(e) {
299
299
  return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
300
300
  }
301
- function $e(e, t, s) {
301
+ function Ge(e, t, s) {
302
302
  const a = e.map((o) => ({
303
303
  label: o.label,
304
304
  uid: o.uid ?? f(o.label)
@@ -326,7 +326,7 @@ function $e(e, t, s) {
326
326
  function k(e) {
327
327
  return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
328
328
  }
329
- function Ge(e, t, s) {
329
+ function Fe(e, t, s) {
330
330
  const a = e.map((o) => ({
331
331
  label: o.label,
332
332
  uid: o.uid ?? k(o.label)
@@ -351,7 +351,7 @@ function Ge(e, t, s) {
351
351
  tags: s ?? []
352
352
  };
353
353
  }
354
- function Fe(e, t, s, a) {
354
+ function Ke(e, t, s, a) {
355
355
  if (typeof s == "function") {
356
356
  const o = s;
357
357
  return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (p) => ({
@@ -361,7 +361,7 @@ function Fe(e, t, s, a) {
361
361
  }
362
362
  return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: e, ...s }, children: t }], tags: a ?? [] };
363
363
  }
364
- function Ke(e, t, s) {
364
+ function ze(e, t, s) {
365
365
  const { template: a, ...n } = t;
366
366
  return {
367
367
  type: "ITEMS",
@@ -370,7 +370,7 @@ function Ke(e, t, s) {
370
370
  tags: s ?? []
371
371
  };
372
372
  }
373
- function ze(e, t, s) {
373
+ function He(e, t, s) {
374
374
  if (typeof t == "function") {
375
375
  const i = t;
376
376
  return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: (l) => ({ type: "tags", ...i(l) }) }], tags: s ?? [] };
@@ -379,12 +379,12 @@ function ze(e, t, s) {
379
379
  return { type: "ITEMS", itemType: "TAGS", items: [{ key: e, def: a }], tags: s ?? [] };
380
380
  }
381
381
  const S = /* @__PURE__ */ new Map();
382
- function D(e, t) {
382
+ function M(e, t) {
383
383
  if (S.has(e))
384
384
  throw new Error(`Item type "${e}" is already registered.`);
385
385
  S.set(e, t);
386
386
  }
387
- function He(e) {
387
+ function Ve(e) {
388
388
  const t = S.get(e);
389
389
  if (!t)
390
390
  throw new Error(
@@ -392,7 +392,7 @@ function He(e) {
392
392
  );
393
393
  return t;
394
394
  }
395
- function Ve(e) {
395
+ function Xe(e) {
396
396
  return S.has(e);
397
397
  }
398
398
  function u(e) {
@@ -430,8 +430,8 @@ function u(e) {
430
430
  ...e.buildCustomWidget ? { buildCustomWidget: e.buildCustomWidget } : {},
431
431
  ...e.getChildren ? { getChildren: e.getChildren } : {}
432
432
  };
433
- D(e.itemType, n);
434
- const i = U(e.itemType);
433
+ M(e.itemType, n);
434
+ const i = P(e.itemType);
435
435
  return { gsl: i, gslByUid: (r, l) => i(l, ((p) => p.uid === r)) };
436
436
  }
437
437
  function d(e) {
@@ -450,35 +450,35 @@ function d(e) {
450
450
  onFilter: b,
451
451
  on: A,
452
452
  states: _,
453
- include: re,
454
- exclude: ue,
455
- validator: pe,
456
- ...v
453
+ include: ue,
454
+ exclude: pe,
455
+ validator: de,
456
+ ...B
457
457
  } = e;
458
- return v;
458
+ return B;
459
459
  }
460
- function B(e) {
460
+ function w(e) {
461
461
  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()) : "";
462
462
  }
463
463
  function c(e, t) {
464
- return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: B(e.path) };
464
+ return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: w(e.path) };
465
465
  }
466
466
  function g(e, t) {
467
467
  return e.placeholder != null || t.suppressAutomaticPlaceholders || !e.path ? e : { ...e, placeholder: e.path };
468
468
  }
469
- function w(e) {
469
+ function N(e) {
470
470
  switch (e.type) {
471
471
  case "text":
472
- return W(e);
473
- case "number":
474
472
  return R(e);
473
+ case "number":
474
+ return O(e);
475
475
  case "boolean":
476
- return N(e);
476
+ return W(e);
477
477
  default:
478
478
  throw new Error(`Unsupported field type "${e.type}"`);
479
479
  }
480
480
  }
481
- function N(e) {
481
+ function W(e) {
482
482
  const t = d(e);
483
483
  return {
484
484
  uid: e.uid ?? "",
@@ -492,7 +492,7 @@ function N(e) {
492
492
  props: t
493
493
  };
494
494
  }
495
- function W(e) {
495
+ function R(e) {
496
496
  const t = d(e);
497
497
  return {
498
498
  uid: e.uid ?? "",
@@ -509,7 +509,7 @@ function W(e) {
509
509
  validator: y(e.validator, "string")
510
510
  };
511
511
  }
512
- function R(e) {
512
+ function O(e) {
513
513
  const t = d(e);
514
514
  return {
515
515
  uid: e.uid ?? "",
@@ -526,7 +526,7 @@ function R(e) {
526
526
  validator: y(e.validator, "number")
527
527
  };
528
528
  }
529
- const { gsl: E, gslByUid: Xe } = u({
529
+ const { gsl: E, gslByUid: je } = u({
530
530
  itemType: "INPUTS",
531
531
  entryShape: "keyed",
532
532
  sensibleDefaults: {
@@ -540,8 +540,8 @@ const { gsl: E, gslByUid: Xe } = u({
540
540
  return s = g(s, t), s;
541
541
  }
542
542
  },
543
- mapToWidget: w
544
- }), je = (e) => E(e, (t) => t.type === "text"), qe = (e) => E(e, (t) => t.type === "number"), Je = (e) => E(e, (t) => t.type === "boolean"), { gsl: Ze, gslByUid: Qe } = u({
543
+ mapToWidget: N
544
+ }), qe = (e) => E(e, (t) => t.type === "text"), Je = (e) => E(e, (t) => t.type === "number"), Ze = (e) => E(e, (t) => t.type === "boolean"), { gsl: Qe, gslByUid: et } = u({
545
545
  itemType: "SELECT",
546
546
  entryShape: "keyed",
547
547
  sensibleDefaults: {
@@ -560,7 +560,7 @@ const { gsl: E, gslByUid: Xe } = u({
560
560
  ...e.validator != null ? { validator: e.validator } : {},
561
561
  props: d(e)
562
562
  })
563
- }), { gsl: et, gslByUid: tt } = u({
563
+ }), { gsl: tt, gslByUid: st } = u({
564
564
  itemType: "DROPDOWN",
565
565
  entryShape: "keyed",
566
566
  sensibleDefaults: {
@@ -582,7 +582,7 @@ const { gsl: E, gslByUid: Xe } = u({
582
582
  ...e.validator != null ? { validator: e.validator } : {},
583
583
  props: d(e)
584
584
  })
585
- }), { gsl: st, gslByUid: at } = u({
585
+ }), { gsl: at, gslByUid: nt } = u({
586
586
  itemType: "RADIOGROUP",
587
587
  entryShape: "keyed",
588
588
  sensibleDefaults: {
@@ -601,7 +601,7 @@ const { gsl: E, gslByUid: Xe } = u({
601
601
  ...e.validator != null ? { validator: e.validator } : {},
602
602
  props: d(e)
603
603
  })
604
- }), { gsl: nt, gslByUid: it } = u({
604
+ }), { gsl: it, gslByUid: lt } = u({
605
605
  itemType: "CHECKBOX",
606
606
  entryShape: "keyed",
607
607
  sensibleDefaults: {
@@ -620,7 +620,7 @@ const { gsl: E, gslByUid: Xe } = u({
620
620
  ...e.validator != null ? { validator: y(e.validator, "boolean") } : {},
621
621
  props: d(e)
622
622
  })
623
- }), { gsl: lt, gslByUid: ot } = u({
623
+ }), { gsl: ot, gslByUid: rt } = u({
624
624
  itemType: "TEXTAREA",
625
625
  entryShape: "keyed",
626
626
  sensibleDefaults: {
@@ -639,7 +639,7 @@ const { gsl: E, gslByUid: Xe } = u({
639
639
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
640
640
  props: d(e)
641
641
  })
642
- }), { gsl: rt, gslByUid: ut } = u({
642
+ }), { gsl: ut, gslByUid: pt } = u({
643
643
  itemType: "PASSWORD",
644
644
  entryShape: "keyed",
645
645
  sensibleDefaults: {
@@ -658,7 +658,7 @@ const { gsl: E, gslByUid: Xe } = u({
658
658
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
659
659
  props: d(e)
660
660
  })
661
- }), { gsl: pt, gslByUid: dt } = u({
661
+ }), { gsl: dt, gslByUid: ct } = u({
662
662
  itemType: "CURRENCY",
663
663
  entryShape: "keyed",
664
664
  sensibleDefaults: {
@@ -677,7 +677,7 @@ const { gsl: E, gslByUid: Xe } = u({
677
677
  ...e.validator != null ? { validator: y(e.validator, "number") } : {},
678
678
  props: d(e)
679
679
  })
680
- }), { gsl: ct, gslByUid: yt } = u({
680
+ }), { gsl: yt, gslByUid: mt } = u({
681
681
  itemType: "MARKDOWN",
682
682
  entryShape: "keyed",
683
683
  sensibleDefaults: {
@@ -696,7 +696,7 @@ const { gsl: E, gslByUid: Xe } = u({
696
696
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
697
697
  props: d(e)
698
698
  })
699
- }), { gsl: mt, gslByUid: Tt } = u({
699
+ }), { gsl: Tt, gslByUid: gt } = u({
700
700
  itemType: "LIST",
701
701
  entryShape: "keyed",
702
702
  sensibleDefaults: {
@@ -715,7 +715,7 @@ const { gsl: E, gslByUid: Xe } = u({
715
715
  ...e.validator != null ? { validator: e.validator } : {},
716
716
  props: d(e)
717
717
  })
718
- }), { gsl: gt, gslByUid: bt } = u({
718
+ }), { gsl: bt, gslByUid: ht } = u({
719
719
  itemType: "CALENDAR",
720
720
  entryShape: "bare",
721
721
  sensibleDefaults: {
@@ -734,7 +734,7 @@ const { gsl: E, gslByUid: Xe } = u({
734
734
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
735
735
  props: d(e)
736
736
  })
737
- }), { gsl: ht, gslByUid: _t } = u({
737
+ }), { gsl: _t, gslByUid: St } = u({
738
738
  itemType: "DATE_INPUT",
739
739
  entryShape: "keyed",
740
740
  sensibleDefaults: {
@@ -753,7 +753,7 @@ const { gsl: E, gslByUid: Xe } = u({
753
753
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
754
754
  props: d(e)
755
755
  })
756
- }), { gsl: St, gslByUid: At } = u({
756
+ }), { gsl: At, gslByUid: It } = u({
757
757
  itemType: "DATE_PICKER",
758
758
  entryShape: "keyed",
759
759
  sensibleDefaults: {
@@ -775,7 +775,7 @@ const { gsl: E, gslByUid: Xe } = u({
775
775
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
776
776
  props: d(e)
777
777
  })
778
- }), { gsl: It, gslByUid: Et } = u({
778
+ }), { gsl: Et, gslByUid: ft } = u({
779
779
  itemType: "RANGE_CALENDAR",
780
780
  entryShape: "keyed",
781
781
  sensibleDefaults: {
@@ -794,7 +794,7 @@ const { gsl: E, gslByUid: Xe } = u({
794
794
  ...e.validator != null ? { validator: y(e.validator, "array") } : {},
795
795
  props: d(e)
796
796
  })
797
- }), { gsl: ft, gslByUid: kt } = u({
797
+ }), { gsl: kt, gslByUid: Ut } = u({
798
798
  itemType: "RANGE_DATE_INPUT",
799
799
  entryShape: "keyed",
800
800
  sensibleDefaults: {
@@ -813,7 +813,7 @@ const { gsl: E, gslByUid: Xe } = u({
813
813
  ...e.validator != null ? { validator: y(e.validator, "array") } : {},
814
814
  props: d(e)
815
815
  })
816
- }), { gsl: Ut, gslByUid: Pt } = u({
816
+ }), { gsl: Pt, gslByUid: Lt } = u({
817
817
  itemType: "RANGE_DATE_PICKER",
818
818
  entryShape: "keyed",
819
819
  sensibleDefaults: {
@@ -836,11 +836,11 @@ const { gsl: E, gslByUid: Xe } = u({
836
836
  props: d(e)
837
837
  })
838
838
  });
839
- function O(e) {
839
+ function x(e) {
840
840
  const t = {};
841
841
  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;
842
842
  }
843
- function x(e) {
843
+ function Y(e) {
844
844
  return {
845
845
  uid: e.uid ?? "",
846
846
  kind: "input",
@@ -851,7 +851,7 @@ function x(e) {
851
851
  ...e.readonly != null ? { readonly: e.readonly } : {},
852
852
  ...e.validator != null ? { validator: y(e.validator, "array") } : {},
853
853
  props: {
854
- ...O(e),
854
+ ...x(e),
855
855
  template: { kind: "layout", type: "flex", children: [], props: { direction: "column" } }
856
856
  }
857
857
  };
@@ -860,12 +860,12 @@ function I(e, t) {
860
860
  for (const s of e) {
861
861
  if (typeof s == "function") continue;
862
862
  const a = s;
863
- typeof a.path == "string" && a.path && (a.path = t + a.path), "children" in a && Array.isArray(a.children) && I(a.children, t);
863
+ typeof a.path == "string" && a.path && !a.path.startsWith(t) && (a.path = t + a.path), "children" in a && Array.isArray(a.children) && I(a.children, t);
864
864
  const n = a.props;
865
865
  n?.template?.children && Array.isArray(n.template.children) && I(n.template.children, t);
866
866
  }
867
867
  }
868
- function Y(e, t) {
868
+ function $(e, t) {
869
869
  const s = t.walkChildren(t.children ?? []), a = e.kind === "static" ? e.def.path ?? "" : e.fn({})?.path ?? "";
870
870
  a && I(s, a + ".items.");
871
871
  const n = {
@@ -891,32 +891,32 @@ function Y(e, t) {
891
891
  };
892
892
  });
893
893
  }
894
- function $(e) {
894
+ function G(e) {
895
895
  return {
896
896
  baseDef: e.def,
897
897
  path: e.key,
898
898
  children: e.children
899
899
  };
900
900
  }
901
- function G(e) {
901
+ function F(e) {
902
902
  return e.children;
903
903
  }
904
- const F = {
905
- parseEntry: $,
904
+ const K = {
905
+ parseEntry: G,
906
906
  rollUpSensibleDefaults: () => ({}),
907
907
  applySensibleDefaults: (e) => e,
908
- mapToWidget: x,
909
- buildCustomWidget: Y,
910
- getChildren: G
908
+ mapToWidget: Y,
909
+ buildCustomWidget: $,
910
+ getChildren: F
911
911
  };
912
- D("REPEATER", F);
913
- const K = U("REPEATER"), Lt = (e, t) => K(t, ((s) => s.uid === e)), M = {
912
+ M("REPEATER", K);
913
+ const z = P("REPEATER"), Dt = (e, t) => z(t, ((s) => s.uid === e)), C = {
914
914
  onLoad: "load",
915
915
  onChange: "change",
916
916
  onFilter: "filter",
917
917
  onBlur: "blur"
918
- }, z = Object.keys(M);
919
- class H {
918
+ }, H = Object.keys(C);
919
+ class V {
920
920
  // ── Action-specific: onClick ───────────────────────────────────
921
921
  extractOnClickFromMergeResult(t, s, a) {
922
922
  if (t.kind === "dynamic") {
@@ -952,10 +952,10 @@ class H {
952
952
  const n = { ...t.on || {} };
953
953
  let i = !1;
954
954
  const o = { ...t };
955
- for (const r of z) {
955
+ for (const r of H) {
956
956
  const l = t[r];
957
957
  if (l == null) continue;
958
- const p = M[r];
958
+ const p = C[r];
959
959
  if (typeof l == "function") {
960
960
  const T = a.next();
961
961
  s.set(T, l), n[p] = T, i = !0;
@@ -965,8 +965,8 @@ class H {
965
965
  return i && (o.on = n), o;
966
966
  }
967
967
  }
968
- const C = new H();
969
- function V(e) {
968
+ const v = new V();
969
+ function X(e) {
970
970
  const {
971
971
  uid: t,
972
972
  label: s,
@@ -994,17 +994,17 @@ function V(e) {
994
994
  props: _
995
995
  };
996
996
  }
997
- const { gsl: Dt, gslByUid: Mt } = u({
997
+ const { gsl: Mt, gslByUid: Ct } = u({
998
998
  itemType: "ACTIONS",
999
999
  entryShape: "bare",
1000
- mapToWidget: V,
1001
- afterMerge: (e, t) => C.extractOnClickFromMergeResult(
1000
+ mapToWidget: X,
1001
+ afterMerge: (e, t) => v.extractOnClickFromMergeResult(
1002
1002
  e,
1003
1003
  t.eventRegistry,
1004
1004
  t.eventIdGenerator
1005
1005
  )
1006
1006
  });
1007
- function X(e) {
1007
+ function j(e) {
1008
1008
  const {
1009
1009
  uid: t,
1010
1010
  widgetName: s,
@@ -1026,7 +1026,7 @@ function X(e) {
1026
1026
  children: []
1027
1027
  };
1028
1028
  }
1029
- function j(e, t) {
1029
+ function q(e, t) {
1030
1030
  const s = t.walkChildren(t.children ?? []);
1031
1031
  if (e.kind === "static")
1032
1032
  return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: s };
@@ -1036,17 +1036,26 @@ function j(e, t) {
1036
1036
  return { ...t.mapStaticDef(i, "LAYOUTS"), children: s };
1037
1037
  });
1038
1038
  }
1039
- function q(e) {
1039
+ function J(e) {
1040
1040
  return e.children;
1041
1041
  }
1042
- const { gsl: Ct, gslByUid: vt } = u({
1042
+ const { gsl: vt, gslByUid: Bt } = u({
1043
1043
  itemType: "LAYOUTS",
1044
1044
  entryShape: "compound",
1045
- mapToWidget: X,
1046
- buildCustomWidget: j,
1047
- getChildren: q
1045
+ mapToWidget: j,
1046
+ buildCustomWidget: q,
1047
+ getChildren: J
1048
1048
  });
1049
- function J(e) {
1049
+ function U(e) {
1050
+ return {
1051
+ errors: void 0,
1052
+ touched: void 0,
1053
+ translate: void 0,
1054
+ ...e ?? {},
1055
+ $form: e?.$form ?? {}
1056
+ };
1057
+ }
1058
+ function Z(e) {
1050
1059
  return {
1051
1060
  uid: "",
1052
1061
  kind: "display",
@@ -1054,7 +1063,7 @@ function J(e) {
1054
1063
  props: { render: e.render }
1055
1064
  };
1056
1065
  }
1057
- function Z(e, t) {
1066
+ function Q(e, t) {
1058
1067
  if (e.kind === "static") {
1059
1068
  const a = e.def;
1060
1069
  return ((n) => ({
@@ -1063,7 +1072,7 @@ function Z(e, t) {
1063
1072
  type: "renderer",
1064
1073
  ...a.include != null ? { include: a.include } : {},
1065
1074
  ...a.exclude != null ? { exclude: a.exclude } : {},
1066
- props: { render: a.render(n ?? {}) }
1075
+ props: { render: a.render(U(n)) }
1067
1076
  }));
1068
1077
  }
1069
1078
  const s = e.fn;
@@ -1075,16 +1084,16 @@ function Z(e, t) {
1075
1084
  type: "renderer",
1076
1085
  ...n.include != null ? { include: n.include } : {},
1077
1086
  ...n.exclude != null ? { exclude: n.exclude } : {},
1078
- props: { render: n.render(a ?? {}) }
1087
+ props: { render: n.render(U(a)) }
1079
1088
  };
1080
1089
  });
1081
1090
  }
1082
- const { gsl: Bt, gslByUid: wt } = u({
1091
+ const { gsl: wt, gslByUid: Nt } = u({
1083
1092
  itemType: "DISPLAYS",
1084
1093
  entryShape: "bare",
1085
- mapToWidget: J,
1086
- buildCustomWidget: Z
1087
- }), { gsl: Nt, gslByUid: Wt } = u({
1094
+ mapToWidget: Z,
1095
+ buildCustomWidget: Q
1096
+ }), { gsl: Wt, gslByUid: Rt } = u({
1088
1097
  itemType: "ALERTS",
1089
1098
  entryShape: "bare",
1090
1099
  mapToWidget: (e) => ({
@@ -1096,7 +1105,7 @@ const { gsl: Bt, gslByUid: wt } = u({
1096
1105
  ...e.level != null ? { level: e.level } : {}
1097
1106
  }
1098
1107
  })
1099
- }), { gsl: Rt, gslByUid: Ot } = u({
1108
+ }), { gsl: Ot, gslByUid: xt } = u({
1100
1109
  itemType: "MARKDOWN_TEXTS",
1101
1110
  entryShape: "bare",
1102
1111
  mapToWidget: (e) => ({
@@ -1108,7 +1117,7 @@ const { gsl: Bt, gslByUid: wt } = u({
1108
1117
  }
1109
1118
  })
1110
1119
  });
1111
- function Q(e) {
1120
+ function ee(e) {
1112
1121
  return {
1113
1122
  uid: e.uid ?? "",
1114
1123
  kind: "layout",
@@ -1121,7 +1130,7 @@ function Q(e) {
1121
1130
  children: []
1122
1131
  };
1123
1132
  }
1124
- function ee(e, t) {
1133
+ function te(e, t) {
1125
1134
  const s = t.walkChildren(t.children ?? []);
1126
1135
  if (e.kind === "static")
1127
1136
  return { ...t.mapStaticDef(e.def, "TABS"), children: s };
@@ -1131,17 +1140,17 @@ function ee(e, t) {
1131
1140
  return { ...t.mapStaticDef(i, "TABS"), children: s };
1132
1141
  });
1133
1142
  }
1134
- function te(e) {
1143
+ function se(e) {
1135
1144
  return e.children;
1136
1145
  }
1137
- const { gsl: xt, gslByUid: Yt } = u({
1146
+ const { gsl: Yt, gslByUid: $t } = u({
1138
1147
  itemType: "TABS",
1139
1148
  entryShape: "compound",
1140
- mapToWidget: Q,
1141
- buildCustomWidget: ee,
1142
- getChildren: te
1149
+ mapToWidget: ee,
1150
+ buildCustomWidget: te,
1151
+ getChildren: se
1143
1152
  });
1144
- function se(e) {
1153
+ function ae(e) {
1145
1154
  return {
1146
1155
  uid: e.uid ?? "",
1147
1156
  kind: "layout",
@@ -1155,7 +1164,7 @@ function se(e) {
1155
1164
  children: []
1156
1165
  };
1157
1166
  }
1158
- function ae(e, t) {
1167
+ function ne(e, t) {
1159
1168
  const s = t.walkChildren(t.children ?? []);
1160
1169
  if (e.kind === "static")
1161
1170
  return { ...t.mapStaticDef(e.def, "ACCORDION"), children: s };
@@ -1165,16 +1174,16 @@ function ae(e, t) {
1165
1174
  return { ...t.mapStaticDef(i, "ACCORDION"), children: s };
1166
1175
  });
1167
1176
  }
1168
- function ne(e) {
1177
+ function ie(e) {
1169
1178
  return e.children;
1170
1179
  }
1171
- const { gsl: $t, gslByUid: Gt } = u({
1180
+ const { gsl: Gt, gslByUid: Ft } = u({
1172
1181
  itemType: "ACCORDION",
1173
1182
  entryShape: "compound",
1174
- mapToWidget: se,
1175
- buildCustomWidget: ae,
1176
- getChildren: ne
1177
- }), { gsl: Ft, gslByUid: Kt } = u({
1183
+ mapToWidget: ae,
1184
+ buildCustomWidget: ne,
1185
+ getChildren: ie
1186
+ }), { gsl: Kt, gslByUid: zt } = u({
1178
1187
  itemType: "CUSTOM_INPUT",
1179
1188
  entryShape: "keyed",
1180
1189
  sensibleDefaults: {
@@ -1196,7 +1205,7 @@ const { gsl: $t, gslByUid: Gt } = u({
1196
1205
  ...e.validator != null ? { validator: e.validator } : {},
1197
1206
  props: e.props ?? {}
1198
1207
  })
1199
- }), { gsl: zt, gslByUid: Ht } = u({
1208
+ }), { gsl: Ht, gslByUid: Vt } = u({
1200
1209
  itemType: "CUSTOM_ACTION",
1201
1210
  entryShape: "bare",
1202
1211
  mapToWidget: (e) => {
@@ -1226,12 +1235,12 @@ const { gsl: $t, gslByUid: Gt } = u({
1226
1235
  props: { ...A, ..._ }
1227
1236
  };
1228
1237
  },
1229
- afterMerge: (e, t) => C.extractOnClickFromMergeResult(
1238
+ afterMerge: (e, t) => v.extractOnClickFromMergeResult(
1230
1239
  e,
1231
1240
  t.eventRegistry,
1232
1241
  t.eventIdGenerator
1233
1242
  )
1234
- }), { gsl: Vt, gslByUid: Xt } = u({
1243
+ }), { gsl: Xt, gslByUid: jt } = u({
1235
1244
  itemType: "CUSTOM_DISPLAY",
1236
1245
  entryShape: "bare",
1237
1246
  mapToWidget: (e) => ({
@@ -1241,7 +1250,7 @@ const { gsl: $t, gslByUid: Gt } = u({
1241
1250
  props: e.props ?? {}
1242
1251
  })
1243
1252
  });
1244
- function ie(e) {
1253
+ function le(e) {
1245
1254
  return {
1246
1255
  uid: e.uid ?? "",
1247
1256
  kind: "layout",
@@ -1250,7 +1259,7 @@ function ie(e) {
1250
1259
  children: []
1251
1260
  };
1252
1261
  }
1253
- function le(e, t) {
1262
+ function oe(e, t) {
1254
1263
  const s = t.walkChildren(t.children ?? []);
1255
1264
  if (e.kind === "static")
1256
1265
  return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: s };
@@ -1260,16 +1269,16 @@ function le(e, t) {
1260
1269
  return { ...t.mapStaticDef(i, "CUSTOM_LAYOUT"), children: s };
1261
1270
  });
1262
1271
  }
1263
- function oe(e) {
1272
+ function re(e) {
1264
1273
  return e.children;
1265
1274
  }
1266
- const { gsl: jt, gslByUid: qt } = u({
1275
+ const { gsl: qt, gslByUid: Jt } = u({
1267
1276
  itemType: "CUSTOM_LAYOUT",
1268
1277
  entryShape: "compound",
1269
- mapToWidget: ie,
1270
- buildCustomWidget: le,
1271
- getChildren: oe
1272
- }), { gsl: Jt, gslByUid: Zt } = u({
1278
+ mapToWidget: le,
1279
+ buildCustomWidget: oe,
1280
+ getChildren: re
1281
+ }), { gsl: Zt, gslByUid: Qt } = u({
1273
1282
  itemType: "TAGS",
1274
1283
  entryShape: "keyed",
1275
1284
  sensibleDefaults: {
@@ -1290,110 +1299,110 @@ const { gsl: jt, gslByUid: qt } = u({
1290
1299
  })
1291
1300
  });
1292
1301
  export {
1293
- zt as $,
1294
- St as A,
1295
- At as B,
1296
- It as C,
1297
- Et as D,
1298
- ft as E,
1299
- kt as F,
1300
- Ut as G,
1301
- Pt as H,
1302
- K as I,
1303
- Lt as J,
1304
- Dt as K,
1305
- Mt as L,
1306
- Ct as M,
1307
- vt as N,
1308
- Bt as O,
1309
- wt as P,
1310
- Nt as Q,
1311
- Wt as R,
1312
- Rt as S,
1313
- Ot as T,
1314
- xt as U,
1315
- Yt as V,
1316
- $t as W,
1317
- Gt as X,
1318
- Ft as Y,
1319
- Kt as Z,
1302
+ Ht as $,
1303
+ At as A,
1304
+ It as B,
1305
+ Et as C,
1306
+ ft as D,
1307
+ kt as E,
1308
+ Ut as F,
1309
+ Pt as G,
1310
+ Lt as H,
1311
+ z as I,
1312
+ Dt as J,
1313
+ Mt as K,
1314
+ Ct as L,
1315
+ vt as M,
1316
+ Bt as N,
1317
+ wt as O,
1318
+ Nt as P,
1319
+ Wt as Q,
1320
+ Rt as R,
1321
+ Ot as S,
1322
+ xt as T,
1323
+ Yt as U,
1324
+ $t as V,
1325
+ Gt as W,
1326
+ Ft as X,
1327
+ Kt as Y,
1328
+ zt as Z,
1320
1329
  E as _,
1321
- Xe as a,
1322
- Ht as a0,
1323
- Vt as a1,
1324
- Xt as a2,
1325
- jt as a3,
1326
- qt as a4,
1327
- Fe as a5,
1328
- Ge as a6,
1329
- $e as a7,
1330
- Ye as a8,
1331
- xe as a9,
1332
- ge as aA,
1333
- Te as aB,
1334
- me as aC,
1335
- ye as aD,
1336
- ce as aE,
1337
- Ve as aF,
1338
- He as aG,
1330
+ je as a,
1331
+ Vt as a0,
1332
+ Xt as a1,
1333
+ jt as a2,
1334
+ qt as a3,
1335
+ Jt as a4,
1336
+ Ke as a5,
1337
+ Fe as a6,
1338
+ Ge as a7,
1339
+ $e as a8,
1340
+ Ye as a9,
1341
+ be as aA,
1342
+ ge as aB,
1343
+ Te as aC,
1344
+ me as aD,
1345
+ ye as aE,
1346
+ Xe as aF,
1347
+ Ve as aG,
1339
1348
  m as aH,
1340
- C as aI,
1341
- Jt as aJ,
1342
- Zt as aK,
1343
- U as aL,
1349
+ v as aI,
1350
+ Zt as aJ,
1351
+ Qt as aK,
1352
+ P as aL,
1344
1353
  u as aM,
1345
1354
  d as aN,
1346
1355
  c as aO,
1347
1356
  g as aP,
1348
- L as aa,
1349
- Oe as ab,
1350
- Re as ac,
1351
- P as ad,
1352
- We as ae,
1353
- Ne as af,
1354
- we as ag,
1355
- Be as ah,
1356
- ve as ai,
1357
- Ce as aj,
1358
- Me as ak,
1359
- ze as al,
1360
- Ke as am,
1361
- De as an,
1362
- Le as ao,
1363
- Pe as ap,
1364
- Ue as aq,
1365
- ke as ar,
1366
- fe as as,
1367
- Ee as at,
1368
- Ie as au,
1369
- Ae as av,
1370
- Se as aw,
1371
- _e as ax,
1372
- he as ay,
1373
- be as az,
1374
- je as b,
1375
- qe as c,
1376
- Je as d,
1377
- Ze as e,
1378
- Qe as f,
1379
- et as g,
1380
- tt as h,
1381
- st as i,
1382
- at as j,
1383
- nt as k,
1384
- it as l,
1385
- lt as m,
1386
- ot as n,
1387
- rt as o,
1388
- ut as p,
1389
- pt as q,
1390
- dt as r,
1391
- ct as s,
1392
- yt as t,
1393
- mt as u,
1394
- Tt as v,
1395
- gt as w,
1396
- bt as x,
1397
- ht as y,
1398
- _t as z
1357
+ D as aa,
1358
+ xe as ab,
1359
+ Oe as ac,
1360
+ L as ad,
1361
+ Re as ae,
1362
+ We as af,
1363
+ Ne as ag,
1364
+ we as ah,
1365
+ Be as ai,
1366
+ ve as aj,
1367
+ Ce as ak,
1368
+ He as al,
1369
+ ze as am,
1370
+ Me as an,
1371
+ De as ao,
1372
+ Le as ap,
1373
+ Pe as aq,
1374
+ Ue as ar,
1375
+ ke as as,
1376
+ fe as at,
1377
+ Ee as au,
1378
+ Ie as av,
1379
+ Ae as aw,
1380
+ Se as ax,
1381
+ _e as ay,
1382
+ he as az,
1383
+ qe as b,
1384
+ Je as c,
1385
+ Ze as d,
1386
+ Qe as e,
1387
+ et as f,
1388
+ tt as g,
1389
+ st as h,
1390
+ at as i,
1391
+ nt as j,
1392
+ it as k,
1393
+ lt as l,
1394
+ ot as m,
1395
+ rt as n,
1396
+ ut as o,
1397
+ pt as p,
1398
+ dt as q,
1399
+ ct as r,
1400
+ yt as s,
1401
+ mt as t,
1402
+ Tt as u,
1403
+ gt as v,
1404
+ bt as w,
1405
+ ht as x,
1406
+ _t as y,
1407
+ St as z
1399
1408
  };