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

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.
@@ -18,7 +18,7 @@ function P(e) {
18
18
  function y(e, t) {
19
19
  return typeof e == "function" ? e : { type: t, ...e ?? {} };
20
20
  }
21
- function ye(e, t, s) {
21
+ function me(e, t, s) {
22
22
  if (typeof t == "function") {
23
23
  const n = t;
24
24
  return {
@@ -36,7 +36,7 @@ function ye(e, t, s) {
36
36
  tags: s ?? []
37
37
  };
38
38
  }
39
- function me(e, t, s) {
39
+ function Te(e, t, s) {
40
40
  if (typeof t == "function") {
41
41
  const n = t;
42
42
  return {
@@ -54,7 +54,7 @@ function me(e, t, s) {
54
54
  tags: s ?? []
55
55
  };
56
56
  }
57
- function Te(e, t, s) {
57
+ function ge(e, t, s) {
58
58
  if (typeof t == "function") {
59
59
  const n = t;
60
60
  return {
@@ -72,7 +72,7 @@ function Te(e, t, s) {
72
72
  tags: s ?? []
73
73
  };
74
74
  }
75
- function ge(e, t, s) {
75
+ function be(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 ge(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 be(e, t, s) {
83
+ function he(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 be(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 he(e, t, s) {
94
+ function _e(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 he(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 _e(e, t, s) {
102
+ function Se(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 _e(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 Se(e, t, s) {
110
+ function Ae(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 Se(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 Ae(e, t, s) {
118
+ function Ie(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 Ae(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 Ie(e, t, s) {
126
+ function Ee(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 Ie(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 Ee(e, t, s) {
134
+ function fe(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 Ee(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 fe(e, t, s) {
142
+ function ke(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 fe(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 ke(e, t, s) {
150
+ function Ue(e, t, s) {
151
151
  if (typeof t == "function") {
152
152
  const n = t;
153
153
  return {
@@ -168,7 +168,7 @@ function ke(e, t, s) {
168
168
  tags: s ?? []
169
169
  };
170
170
  }
171
- function Ue(e, t, s) {
171
+ function Pe(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 Ue(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 Pe(e, t, s) {
179
+ function Le(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 Pe(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 Le(e, t, s) {
190
+ function De(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 Le(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 De(e, t, s) {
201
+ function Me(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 De(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 Me(e, t, s) {
212
+ function Ce(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 Me(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 Ce(e, t, s, a) {
223
+ function ve(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 Ce(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 ve(e, t) {
234
+ function Be(e, t) {
235
235
  return {
236
236
  items: [e],
237
237
  type: "ITEMS",
@@ -239,7 +239,7 @@ function ve(e, t) {
239
239
  tags: t ?? []
240
240
  };
241
241
  }
242
- function Be(e, t, s) {
242
+ function Ne(e, t, s) {
243
243
  if (typeof t == "function") {
244
244
  const i = t;
245
245
  return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
@@ -254,13 +254,13 @@ const we = (e, t) => ({
254
254
  items: [{ render: e }],
255
255
  tags: t ?? []
256
256
  });
257
- function Ne(e, t) {
257
+ function We(e, t) {
258
258
  return { type: "ITEMS", itemType: "ALERTS", items: [e], tags: t ?? [] };
259
259
  }
260
- function We(e, t) {
260
+ function Re(e, t) {
261
261
  return { type: "ITEMS", itemType: "MARKDOWN_TEXTS", items: [e], tags: t ?? [] };
262
262
  }
263
- function Re(e, t, s) {
263
+ function Oe(e, t, s) {
264
264
  if (typeof t == "function") {
265
265
  const r = t;
266
266
  return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
@@ -279,7 +279,7 @@ const L = (e, t, s) => ({
279
279
  itemType: m.LAYOUTS,
280
280
  items: [{ def: { widgetName: "flex", ...t ?? {} }, children: e }],
281
281
  tags: 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) => ({
282
+ }), xe = (e, t, s) => L(e, { direction: "row", ...t ?? {} }, s), Ye = (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 L = (e, t, s) => ({
294
294
  }
295
295
  ],
296
296
  tags: s ?? []
297
- }), Ye = (e, t, s) => D(e, { direction: "row", ...t ?? {} }, s), $e = (e, t, s) => D(e, { direction: "column", ...t ?? {} }, s);
297
+ }), $e = (e, t, s) => D(e, { direction: "row", ...t ?? {} }, s), Ge = (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 Ge(e, t, s) {
301
+ function Fe(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 Ge(e, t, s) {
326
326
  function k(e) {
327
327
  return e.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
328
328
  }
329
- function Fe(e, t, s) {
329
+ function Ke(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 Fe(e, t, s) {
351
351
  tags: s ?? []
352
352
  };
353
353
  }
354
- function Ke(e, t, s, a) {
354
+ function ze(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 Ke(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 ze(e, t, s) {
364
+ function He(e, t, s) {
365
365
  const { template: a, ...n } = t;
366
366
  return {
367
367
  type: "ITEMS",
@@ -370,7 +370,7 @@ function ze(e, t, s) {
370
370
  tags: s ?? []
371
371
  };
372
372
  }
373
- function He(e, t, s) {
373
+ function Ve(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 ?? [] };
@@ -384,7 +384,7 @@ function M(e, t) {
384
384
  throw new Error(`Item type "${e}" is already registered.`);
385
385
  S.set(e, t);
386
386
  }
387
- function Ve(e) {
387
+ function Xe(e) {
388
388
  const t = S.get(e);
389
389
  if (!t)
390
390
  throw new Error(
@@ -392,7 +392,7 @@ function Ve(e) {
392
392
  );
393
393
  return t;
394
394
  }
395
- function Xe(e) {
395
+ function je(e) {
396
396
  return S.has(e);
397
397
  }
398
398
  function u(e) {
@@ -402,9 +402,9 @@ function u(e) {
402
402
  let l = { ...e.sensibleDefaults.base };
403
403
  for (const p of r) {
404
404
  const T = p.config;
405
- for (const h of e.sensibleDefaults.fields) {
406
- const b = h;
407
- T[b] != null && (l = { ...l, [b]: T[b] });
405
+ for (const b of e.sensibleDefaults.fields) {
406
+ const h = b;
407
+ T[h] != null && (l = { ...l, [h]: T[h] });
408
408
  }
409
409
  }
410
410
  return l;
@@ -446,27 +446,27 @@ function d(e) {
446
446
  type: l,
447
447
  size: p,
448
448
  onLoad: T,
449
- onChange: h,
450
- onFilter: b,
449
+ onChange: b,
450
+ onFilter: h,
451
451
  on: A,
452
452
  states: _,
453
- include: ue,
454
- exclude: pe,
455
- validator: de,
453
+ include: pe,
454
+ exclude: de,
455
+ validator: ce,
456
456
  ...B
457
457
  } = e;
458
458
  return B;
459
459
  }
460
- function w(e) {
460
+ function N(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: w(e.path) };
464
+ return e.label != null || t.suppressAutomaticLabels || !e.path ? e : { ...e, label: N(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 N(e) {
469
+ function w(e) {
470
470
  switch (e.type) {
471
471
  case "text":
472
472
  return R(e);
@@ -526,7 +526,7 @@ function O(e) {
526
526
  validator: y(e.validator, "number")
527
527
  };
528
528
  }
529
- const { gsl: E, gslByUid: je } = u({
529
+ const { gsl: E, gslByUid: qe } = u({
530
530
  itemType: "INPUTS",
531
531
  entryShape: "keyed",
532
532
  sensibleDefaults: {
@@ -540,8 +540,8 @@ const { gsl: E, gslByUid: je } = u({
540
540
  return s = g(s, t), s;
541
541
  }
542
542
  },
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({
543
+ mapToWidget: w
544
+ }), Je = (e) => E(e, (t) => t.type === "text"), Qe = (e) => E(e, (t) => t.type === "number"), Ze = (e) => E(e, (t) => t.type === "boolean"), { gsl: et, gslByUid: tt } = u({
545
545
  itemType: "SELECT",
546
546
  entryShape: "keyed",
547
547
  sensibleDefaults: {
@@ -560,7 +560,7 @@ const { gsl: E, gslByUid: je } = u({
560
560
  ...e.validator != null ? { validator: e.validator } : {},
561
561
  props: d(e)
562
562
  })
563
- }), { gsl: tt, gslByUid: st } = u({
563
+ }), { gsl: st, gslByUid: at } = u({
564
564
  itemType: "DROPDOWN",
565
565
  entryShape: "keyed",
566
566
  sensibleDefaults: {
@@ -582,7 +582,7 @@ const { gsl: E, gslByUid: je } = u({
582
582
  ...e.validator != null ? { validator: e.validator } : {},
583
583
  props: d(e)
584
584
  })
585
- }), { gsl: at, gslByUid: nt } = u({
585
+ }), { gsl: nt, gslByUid: it } = u({
586
586
  itemType: "RADIOGROUP",
587
587
  entryShape: "keyed",
588
588
  sensibleDefaults: {
@@ -601,7 +601,7 @@ const { gsl: E, gslByUid: je } = u({
601
601
  ...e.validator != null ? { validator: e.validator } : {},
602
602
  props: d(e)
603
603
  })
604
- }), { gsl: it, gslByUid: lt } = u({
604
+ }), { gsl: lt, gslByUid: ot } = u({
605
605
  itemType: "CHECKBOX",
606
606
  entryShape: "keyed",
607
607
  sensibleDefaults: {
@@ -620,7 +620,7 @@ const { gsl: E, gslByUid: je } = u({
620
620
  ...e.validator != null ? { validator: y(e.validator, "boolean") } : {},
621
621
  props: d(e)
622
622
  })
623
- }), { gsl: ot, gslByUid: rt } = u({
623
+ }), { gsl: rt, gslByUid: ut } = u({
624
624
  itemType: "TEXTAREA",
625
625
  entryShape: "keyed",
626
626
  sensibleDefaults: {
@@ -639,7 +639,7 @@ const { gsl: E, gslByUid: je } = u({
639
639
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
640
640
  props: d(e)
641
641
  })
642
- }), { gsl: ut, gslByUid: pt } = u({
642
+ }), { gsl: pt, gslByUid: dt } = u({
643
643
  itemType: "PASSWORD",
644
644
  entryShape: "keyed",
645
645
  sensibleDefaults: {
@@ -658,7 +658,7 @@ const { gsl: E, gslByUid: je } = u({
658
658
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
659
659
  props: d(e)
660
660
  })
661
- }), { gsl: dt, gslByUid: ct } = u({
661
+ }), { gsl: ct, gslByUid: yt } = u({
662
662
  itemType: "CURRENCY",
663
663
  entryShape: "keyed",
664
664
  sensibleDefaults: {
@@ -677,7 +677,7 @@ const { gsl: E, gslByUid: je } = u({
677
677
  ...e.validator != null ? { validator: y(e.validator, "number") } : {},
678
678
  props: d(e)
679
679
  })
680
- }), { gsl: yt, gslByUid: mt } = u({
680
+ }), { gsl: mt, gslByUid: Tt } = u({
681
681
  itemType: "MARKDOWN",
682
682
  entryShape: "keyed",
683
683
  sensibleDefaults: {
@@ -696,7 +696,7 @@ const { gsl: E, gslByUid: je } = u({
696
696
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
697
697
  props: d(e)
698
698
  })
699
- }), { gsl: Tt, gslByUid: gt } = u({
699
+ }), { gsl: gt, gslByUid: bt } = u({
700
700
  itemType: "LIST",
701
701
  entryShape: "keyed",
702
702
  sensibleDefaults: {
@@ -715,7 +715,7 @@ const { gsl: E, gslByUid: je } = u({
715
715
  ...e.validator != null ? { validator: e.validator } : {},
716
716
  props: d(e)
717
717
  })
718
- }), { gsl: bt, gslByUid: ht } = u({
718
+ }), { gsl: ht, gslByUid: _t } = u({
719
719
  itemType: "CALENDAR",
720
720
  entryShape: "bare",
721
721
  sensibleDefaults: {
@@ -734,7 +734,7 @@ const { gsl: E, gslByUid: je } = u({
734
734
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
735
735
  props: d(e)
736
736
  })
737
- }), { gsl: _t, gslByUid: St } = u({
737
+ }), { gsl: St, gslByUid: At } = u({
738
738
  itemType: "DATE_INPUT",
739
739
  entryShape: "keyed",
740
740
  sensibleDefaults: {
@@ -753,7 +753,7 @@ const { gsl: E, gslByUid: je } = u({
753
753
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
754
754
  props: d(e)
755
755
  })
756
- }), { gsl: At, gslByUid: It } = u({
756
+ }), { gsl: It, gslByUid: Et } = u({
757
757
  itemType: "DATE_PICKER",
758
758
  entryShape: "keyed",
759
759
  sensibleDefaults: {
@@ -775,7 +775,7 @@ const { gsl: E, gslByUid: je } = u({
775
775
  ...e.validator != null ? { validator: y(e.validator, "string") } : {},
776
776
  props: d(e)
777
777
  })
778
- }), { gsl: Et, gslByUid: ft } = u({
778
+ }), { gsl: ft, gslByUid: kt } = u({
779
779
  itemType: "RANGE_CALENDAR",
780
780
  entryShape: "keyed",
781
781
  sensibleDefaults: {
@@ -794,7 +794,7 @@ const { gsl: E, gslByUid: je } = u({
794
794
  ...e.validator != null ? { validator: y(e.validator, "array") } : {},
795
795
  props: d(e)
796
796
  })
797
- }), { gsl: kt, gslByUid: Ut } = u({
797
+ }), { gsl: Ut, gslByUid: Pt } = u({
798
798
  itemType: "RANGE_DATE_INPUT",
799
799
  entryShape: "keyed",
800
800
  sensibleDefaults: {
@@ -813,7 +813,7 @@ const { gsl: E, gslByUid: je } = u({
813
813
  ...e.validator != null ? { validator: y(e.validator, "array") } : {},
814
814
  props: d(e)
815
815
  })
816
- }), { gsl: Pt, gslByUid: Lt } = u({
816
+ }), { gsl: Lt, gslByUid: Dt } = u({
817
817
  itemType: "RANGE_DATE_PICKER",
818
818
  entryShape: "keyed",
819
819
  sensibleDefaults: {
@@ -910,13 +910,23 @@ const K = {
910
910
  getChildren: F
911
911
  };
912
912
  M("REPEATER", K);
913
- const z = P("REPEATER"), Dt = (e, t) => z(t, ((s) => s.uid === e)), C = {
913
+ const z = P("REPEATER"), Mt = (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
918
  }, H = Object.keys(C);
919
- class V {
919
+ function V(e) {
920
+ if (e.length > 0)
921
+ return null;
922
+ try {
923
+ const t = e();
924
+ return typeof t == "string" ? t : null;
925
+ } catch {
926
+ return null;
927
+ }
928
+ }
929
+ class X {
920
930
  // ── Action-specific: onClick ───────────────────────────────────
921
931
  extractOnClickFromMergeResult(t, s, a) {
922
932
  if (t.kind === "dynamic") {
@@ -957,16 +967,22 @@ class V {
957
967
  if (l == null) continue;
958
968
  const p = C[r];
959
969
  if (typeof l == "function") {
960
- const T = a.next();
961
- s.set(T, l), n[p] = T, i = !0;
970
+ const T = V(l);
971
+ if (T != null)
972
+ n[p] = T;
973
+ else {
974
+ const b = a.next();
975
+ s.set(b, l), n[p] = b;
976
+ }
977
+ i = !0;
962
978
  } else typeof l == "string" && (n[p] = l, i = !0);
963
979
  delete o[r];
964
980
  }
965
981
  return i && (o.on = n), o;
966
982
  }
967
983
  }
968
- const v = new V();
969
- function X(e) {
984
+ const v = new X();
985
+ function j(e) {
970
986
  const {
971
987
  uid: t,
972
988
  label: s,
@@ -978,8 +994,8 @@ function X(e) {
978
994
  type: l,
979
995
  tags: p,
980
996
  size: T,
981
- include: h,
982
- exclude: b,
997
+ include: b,
998
+ exclude: h,
983
999
  states: A,
984
1000
  ..._
985
1001
  } = e;
@@ -994,17 +1010,17 @@ function X(e) {
994
1010
  props: _
995
1011
  };
996
1012
  }
997
- const { gsl: Mt, gslByUid: Ct } = u({
1013
+ const { gsl: Ct, gslByUid: vt } = u({
998
1014
  itemType: "ACTIONS",
999
1015
  entryShape: "bare",
1000
- mapToWidget: X,
1016
+ mapToWidget: j,
1001
1017
  afterMerge: (e, t) => v.extractOnClickFromMergeResult(
1002
1018
  e,
1003
1019
  t.eventRegistry,
1004
1020
  t.eventIdGenerator
1005
1021
  )
1006
1022
  });
1007
- function j(e) {
1023
+ function q(e) {
1008
1024
  const {
1009
1025
  uid: t,
1010
1026
  widgetName: s,
@@ -1026,7 +1042,7 @@ function j(e) {
1026
1042
  children: []
1027
1043
  };
1028
1044
  }
1029
- function q(e, t) {
1045
+ function J(e, t) {
1030
1046
  const s = t.walkChildren(t.children ?? []);
1031
1047
  if (e.kind === "static")
1032
1048
  return { ...t.mapStaticDef(e.def, "LAYOUTS"), children: s };
@@ -1036,15 +1052,15 @@ function q(e, t) {
1036
1052
  return { ...t.mapStaticDef(i, "LAYOUTS"), children: s };
1037
1053
  });
1038
1054
  }
1039
- function J(e) {
1055
+ function Q(e) {
1040
1056
  return e.children;
1041
1057
  }
1042
- const { gsl: vt, gslByUid: Bt } = u({
1058
+ const { gsl: Bt, gslByUid: Nt } = u({
1043
1059
  itemType: "LAYOUTS",
1044
1060
  entryShape: "compound",
1045
- mapToWidget: j,
1046
- buildCustomWidget: q,
1047
- getChildren: J
1061
+ mapToWidget: q,
1062
+ buildCustomWidget: J,
1063
+ getChildren: Q
1048
1064
  });
1049
1065
  function U(e) {
1050
1066
  return {
@@ -1063,7 +1079,7 @@ function Z(e) {
1063
1079
  props: { render: e.render }
1064
1080
  };
1065
1081
  }
1066
- function Q(e, t) {
1082
+ function ee(e, t) {
1067
1083
  if (e.kind === "static") {
1068
1084
  const a = e.def;
1069
1085
  return ((n) => ({
@@ -1088,12 +1104,12 @@ function Q(e, t) {
1088
1104
  };
1089
1105
  });
1090
1106
  }
1091
- const { gsl: wt, gslByUid: Nt } = u({
1107
+ const { gsl: wt, gslByUid: Wt } = u({
1092
1108
  itemType: "DISPLAYS",
1093
1109
  entryShape: "bare",
1094
1110
  mapToWidget: Z,
1095
- buildCustomWidget: Q
1096
- }), { gsl: Wt, gslByUid: Rt } = u({
1111
+ buildCustomWidget: ee
1112
+ }), { gsl: Rt, gslByUid: Ot } = u({
1097
1113
  itemType: "ALERTS",
1098
1114
  entryShape: "bare",
1099
1115
  mapToWidget: (e) => ({
@@ -1105,7 +1121,7 @@ const { gsl: wt, gslByUid: Nt } = u({
1105
1121
  ...e.level != null ? { level: e.level } : {}
1106
1122
  }
1107
1123
  })
1108
- }), { gsl: Ot, gslByUid: xt } = u({
1124
+ }), { gsl: xt, gslByUid: Yt } = u({
1109
1125
  itemType: "MARKDOWN_TEXTS",
1110
1126
  entryShape: "bare",
1111
1127
  mapToWidget: (e) => ({
@@ -1117,7 +1133,7 @@ const { gsl: wt, gslByUid: Nt } = u({
1117
1133
  }
1118
1134
  })
1119
1135
  });
1120
- function ee(e) {
1136
+ function te(e) {
1121
1137
  return {
1122
1138
  uid: e.uid ?? "",
1123
1139
  kind: "layout",
@@ -1130,7 +1146,7 @@ function ee(e) {
1130
1146
  children: []
1131
1147
  };
1132
1148
  }
1133
- function te(e, t) {
1149
+ function se(e, t) {
1134
1150
  const s = t.walkChildren(t.children ?? []);
1135
1151
  if (e.kind === "static")
1136
1152
  return { ...t.mapStaticDef(e.def, "TABS"), children: s };
@@ -1140,17 +1156,17 @@ function te(e, t) {
1140
1156
  return { ...t.mapStaticDef(i, "TABS"), children: s };
1141
1157
  });
1142
1158
  }
1143
- function se(e) {
1159
+ function ae(e) {
1144
1160
  return e.children;
1145
1161
  }
1146
- const { gsl: Yt, gslByUid: $t } = u({
1162
+ const { gsl: $t, gslByUid: Gt } = u({
1147
1163
  itemType: "TABS",
1148
1164
  entryShape: "compound",
1149
- mapToWidget: ee,
1150
- buildCustomWidget: te,
1151
- getChildren: se
1165
+ mapToWidget: te,
1166
+ buildCustomWidget: se,
1167
+ getChildren: ae
1152
1168
  });
1153
- function ae(e) {
1169
+ function ne(e) {
1154
1170
  return {
1155
1171
  uid: e.uid ?? "",
1156
1172
  kind: "layout",
@@ -1164,7 +1180,7 @@ function ae(e) {
1164
1180
  children: []
1165
1181
  };
1166
1182
  }
1167
- function ne(e, t) {
1183
+ function ie(e, t) {
1168
1184
  const s = t.walkChildren(t.children ?? []);
1169
1185
  if (e.kind === "static")
1170
1186
  return { ...t.mapStaticDef(e.def, "ACCORDION"), children: s };
@@ -1174,16 +1190,16 @@ function ne(e, t) {
1174
1190
  return { ...t.mapStaticDef(i, "ACCORDION"), children: s };
1175
1191
  });
1176
1192
  }
1177
- function ie(e) {
1193
+ function le(e) {
1178
1194
  return e.children;
1179
1195
  }
1180
- const { gsl: Gt, gslByUid: Ft } = u({
1196
+ const { gsl: Ft, gslByUid: Kt } = u({
1181
1197
  itemType: "ACCORDION",
1182
1198
  entryShape: "compound",
1183
- mapToWidget: ae,
1184
- buildCustomWidget: ne,
1185
- getChildren: ie
1186
- }), { gsl: Kt, gslByUid: zt } = u({
1199
+ mapToWidget: ne,
1200
+ buildCustomWidget: ie,
1201
+ getChildren: le
1202
+ }), { gsl: zt, gslByUid: Ht } = u({
1187
1203
  itemType: "CUSTOM_INPUT",
1188
1204
  entryShape: "keyed",
1189
1205
  sensibleDefaults: {
@@ -1205,7 +1221,7 @@ const { gsl: Gt, gslByUid: Ft } = u({
1205
1221
  ...e.validator != null ? { validator: e.validator } : {},
1206
1222
  props: e.props ?? {}
1207
1223
  })
1208
- }), { gsl: Ht, gslByUid: Vt } = u({
1224
+ }), { gsl: Vt, gslByUid: Xt } = u({
1209
1225
  itemType: "CUSTOM_ACTION",
1210
1226
  entryShape: "bare",
1211
1227
  mapToWidget: (e) => {
@@ -1220,8 +1236,8 @@ const { gsl: Gt, gslByUid: Ft } = u({
1220
1236
  tags: l,
1221
1237
  size: p,
1222
1238
  include: T,
1223
- exclude: h,
1224
- states: b,
1239
+ exclude: b,
1240
+ states: h,
1225
1241
  props: A,
1226
1242
  ..._
1227
1243
  } = e;
@@ -1240,7 +1256,7 @@ const { gsl: Gt, gslByUid: Ft } = u({
1240
1256
  t.eventRegistry,
1241
1257
  t.eventIdGenerator
1242
1258
  )
1243
- }), { gsl: Xt, gslByUid: jt } = u({
1259
+ }), { gsl: jt, gslByUid: qt } = u({
1244
1260
  itemType: "CUSTOM_DISPLAY",
1245
1261
  entryShape: "bare",
1246
1262
  mapToWidget: (e) => ({
@@ -1250,7 +1266,7 @@ const { gsl: Gt, gslByUid: Ft } = u({
1250
1266
  props: e.props ?? {}
1251
1267
  })
1252
1268
  });
1253
- function le(e) {
1269
+ function oe(e) {
1254
1270
  return {
1255
1271
  uid: e.uid ?? "",
1256
1272
  kind: "layout",
@@ -1259,7 +1275,7 @@ function le(e) {
1259
1275
  children: []
1260
1276
  };
1261
1277
  }
1262
- function oe(e, t) {
1278
+ function re(e, t) {
1263
1279
  const s = t.walkChildren(t.children ?? []);
1264
1280
  if (e.kind === "static")
1265
1281
  return { ...t.mapStaticDef(e.def, "CUSTOM_LAYOUT"), children: s };
@@ -1269,16 +1285,16 @@ function oe(e, t) {
1269
1285
  return { ...t.mapStaticDef(i, "CUSTOM_LAYOUT"), children: s };
1270
1286
  });
1271
1287
  }
1272
- function re(e) {
1288
+ function ue(e) {
1273
1289
  return e.children;
1274
1290
  }
1275
- const { gsl: qt, gslByUid: Jt } = u({
1291
+ const { gsl: Jt, gslByUid: Qt } = u({
1276
1292
  itemType: "CUSTOM_LAYOUT",
1277
1293
  entryShape: "compound",
1278
- mapToWidget: le,
1279
- buildCustomWidget: oe,
1280
- getChildren: re
1281
- }), { gsl: Zt, gslByUid: Qt } = u({
1294
+ mapToWidget: oe,
1295
+ buildCustomWidget: re,
1296
+ getChildren: ue
1297
+ }), { gsl: Zt, gslByUid: es } = u({
1282
1298
  itemType: "TAGS",
1283
1299
  entryShape: "keyed",
1284
1300
  sensibleDefaults: {
@@ -1299,110 +1315,111 @@ const { gsl: qt, gslByUid: Jt } = u({
1299
1315
  })
1300
1316
  });
1301
1317
  export {
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,
1318
+ Vt as $,
1319
+ It as A,
1320
+ Et as B,
1321
+ ft as C,
1322
+ kt as D,
1323
+ Ut as E,
1324
+ Pt as F,
1325
+ Lt as G,
1326
+ Dt as H,
1311
1327
  z as I,
1312
- Dt as J,
1313
- Mt as K,
1314
- Ct as L,
1315
- vt as M,
1316
- Bt as N,
1328
+ Mt as J,
1329
+ Ct as K,
1330
+ vt as L,
1331
+ Bt as M,
1332
+ Nt as N,
1317
1333
  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,
1334
+ Wt as P,
1335
+ Rt as Q,
1336
+ Ot as R,
1337
+ xt as S,
1338
+ Yt as T,
1339
+ $t as U,
1340
+ Gt as V,
1341
+ Ft as W,
1342
+ Kt as X,
1343
+ zt as Y,
1344
+ Ht as Z,
1329
1345
  E as _,
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,
1348
- m as aH,
1349
- v as aI,
1350
- Zt as aJ,
1351
- Qt as aK,
1352
- P as aL,
1353
- u as aM,
1354
- d as aN,
1355
- c as aO,
1356
- g as aP,
1346
+ qe as a,
1347
+ Xt as a0,
1348
+ jt as a1,
1349
+ qt as a2,
1350
+ Jt as a3,
1351
+ Qt as a4,
1352
+ ze as a5,
1353
+ Ke as a6,
1354
+ Fe as a7,
1355
+ Ge as a8,
1356
+ $e as a9,
1357
+ he as aA,
1358
+ be as aB,
1359
+ ge as aC,
1360
+ Te as aD,
1361
+ me as aE,
1362
+ je as aF,
1363
+ Xe as aG,
1364
+ V as aH,
1365
+ m as aI,
1366
+ v as aJ,
1367
+ Zt as aK,
1368
+ es as aL,
1369
+ P as aM,
1370
+ u as aN,
1371
+ d as aO,
1372
+ c as aP,
1373
+ g as aQ,
1357
1374
  D as aa,
1358
- xe as ab,
1359
- Oe as ac,
1375
+ Ye as ab,
1376
+ xe as ac,
1360
1377
  L as ad,
1361
- Re as ae,
1362
- We as af,
1363
- Ne as ag,
1378
+ Oe as ae,
1379
+ Re as af,
1380
+ We as ag,
1364
1381
  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,
1382
+ Ne as ai,
1383
+ Be as aj,
1384
+ ve as ak,
1385
+ Ve as al,
1386
+ He as am,
1387
+ Ce as an,
1388
+ Me as ao,
1389
+ De as ap,
1390
+ Le as aq,
1391
+ Pe as ar,
1392
+ Ue as as,
1393
+ ke as at,
1394
+ fe as au,
1395
+ Ee as av,
1396
+ Ie as aw,
1397
+ Ae as ax,
1398
+ Se as ay,
1399
+ _e as az,
1400
+ Je as b,
1401
+ Qe as c,
1385
1402
  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
1403
+ et as e,
1404
+ tt as f,
1405
+ st as g,
1406
+ at as h,
1407
+ nt as i,
1408
+ it as j,
1409
+ lt as k,
1410
+ ot as l,
1411
+ rt as m,
1412
+ ut as n,
1413
+ pt as o,
1414
+ dt as p,
1415
+ ct as q,
1416
+ yt as r,
1417
+ mt as s,
1418
+ Tt as t,
1419
+ gt as u,
1420
+ bt as v,
1421
+ ht as w,
1422
+ _t as x,
1423
+ St as y,
1424
+ At as z
1408
1425
  };