@golemui/gui-shared 0.13.3 → 0.15.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/index.js CHANGED
@@ -1,12 +1,12 @@
1
- import { G as y, o as _, _ as p, a as E, b as S, c as U, d as h, e as A, f as M, g as k, h as B, i as D, j as R, k as P, l as w, m as N, n as x, p as b, q as L, r as C, s as G, t as F, u as Y, v as $, w as j, x as K, y as W, z as v, A as z, B as H, C as X, D as V, E as q, F as Q, H as Z, I as J, J as O, K as tt, L as et, M as st, N as nt, O as it, P as rt, Q as ot, R as at, S as ut, T as yt, U as ct, V as dt, W as pt, X as mt, Y as lt, Z as ft, $ as gt, a0 as Tt, a1 as It, a2 as _t } from "./resolveFormInput-B3y_InQZ.js";
2
- import { a3 as le, a4 as fe, a5 as ge, a6 as Te, a7 as Ie, a8 as _e, a9 as Ee, aa as Se } from "./resolveFormInput-B3y_InQZ.js";
1
+ import { G as y, _ as p, a as I, b as _, c as E, d as S, e as h, f as U, g as A, h as M, i as k, j as B, k as D, l as P, m as R, n as w, o as N, p as x, q as b, r as L, s as G, t as C, u as v, v as F, w as Y, x as $, y as W, z as K, 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 Et, a5 as St, a6 as ht } from "./resolveFormInput-ZK1cOA9Y.js";
2
+ import { a7 as Ee, a8 as Se, a9 as he, aa as Ue } from "./resolveFormInput-ZK1cOA9Y.js";
3
3
  import "@golemui/core";
4
4
  import "@golemui/gui-validators";
5
- function Et(s, t, e) {
5
+ function Ut(s, t, e) {
6
6
  if (typeof t == "function") {
7
7
  const o = t;
8
8
  return {
9
- items: [{ key: s, def: (i) => ({ type: "text", ...o(i) }) }],
9
+ items: [{ key: s, def: (r) => ({ type: "text", ...o(r) }) }],
10
10
  type: "ITEMS",
11
11
  itemType: y.INPUTS,
12
12
  tags: e ?? []
@@ -20,11 +20,11 @@ function Et(s, t, e) {
20
20
  tags: e ?? []
21
21
  };
22
22
  }
23
- function St(s, t, e) {
23
+ function At(s, t, e) {
24
24
  if (typeof t == "function") {
25
25
  const o = t;
26
26
  return {
27
- items: [{ key: s, def: (i) => ({ type: "number", ...o(i) }) }],
27
+ items: [{ key: s, def: (r) => ({ type: "number", ...o(r) }) }],
28
28
  type: "ITEMS",
29
29
  itemType: y.INPUTS,
30
30
  tags: e ?? []
@@ -38,11 +38,11 @@ function St(s, t, e) {
38
38
  tags: e ?? []
39
39
  };
40
40
  }
41
- function Ut(s, t, e) {
41
+ function Mt(s, t, e) {
42
42
  if (typeof t == "function") {
43
43
  const o = t;
44
44
  return {
45
- items: [{ key: s, def: (i) => ({ type: "boolean", ...o(i) }) }],
45
+ items: [{ key: s, def: (r) => ({ type: "boolean", ...o(r) }) }],
46
46
  type: "ITEMS",
47
47
  itemType: y.INPUTS,
48
48
  tags: e ?? []
@@ -56,89 +56,89 @@ function Ut(s, t, e) {
56
56
  tags: e ?? []
57
57
  };
58
58
  }
59
- function ht(s, t, e) {
59
+ function kt(s, t, e) {
60
60
  if (typeof t == "function") {
61
- const r = t;
62
- return { type: "ITEMS", itemType: "SELECT", items: [{ key: s, def: (a) => ({ type: "select", ...r(a) }) }], tags: e ?? [] };
61
+ const i = t;
62
+ return { type: "ITEMS", itemType: "SELECT", items: [{ key: s, def: (a) => ({ type: "select", ...i(a) }) }], tags: e ?? [] };
63
63
  }
64
64
  const n = { type: "select", ...t };
65
65
  return { type: "ITEMS", itemType: "SELECT", items: [{ key: s, def: n }], tags: e ?? [] };
66
66
  }
67
- function At(s, t, e) {
67
+ function Bt(s, t, e) {
68
68
  if (typeof t == "function") {
69
- const r = t;
69
+ const i = t;
70
70
  return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: s, def: (a) => ({
71
71
  type: "dropdown",
72
- ...r(a)
72
+ ...i(a)
73
73
  }) }], tags: e ?? [] };
74
74
  }
75
75
  const n = { type: "dropdown", ...t };
76
76
  return { type: "ITEMS", itemType: "DROPDOWN", items: [{ key: s, def: n }], tags: e ?? [] };
77
77
  }
78
- function Mt(s, t, e) {
78
+ function Dt(s, t, e) {
79
79
  if (typeof t == "function") {
80
- const r = t;
81
- return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: s, def: (a) => ({ type: "radiogroup", ...r(a) }) }], tags: e ?? [] };
80
+ const i = t;
81
+ return { type: "ITEMS", itemType: "RADIOGROUP", items: [{ key: s, def: (a) => ({ type: "radiogroup", ...i(a) }) }], tags: e ?? [] };
82
82
  }
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 kt(s, t, e) {
86
+ function Pt(s, t, e) {
87
87
  if (typeof t == "function") {
88
- const r = t;
89
- return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: s, def: (a) => ({ type: "checkbox", ...r(a) }) }], tags: e ?? [] };
88
+ const i = t;
89
+ return { type: "ITEMS", itemType: "CHECKBOX", items: [{ key: s, def: (a) => ({ type: "checkbox", ...i(a) }) }], tags: e ?? [] };
90
90
  }
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 Bt(s, t, e) {
94
+ function Rt(s, t, e) {
95
95
  if (typeof t == "function") {
96
- const r = t;
97
- return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: s, def: (a) => ({ type: "textarea", ...r(a) }) }], tags: e ?? [] };
96
+ const i = t;
97
+ return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: s, def: (a) => ({ type: "textarea", ...i(a) }) }], tags: e ?? [] };
98
98
  }
99
99
  const n = { type: "textarea", ...t };
100
100
  return { type: "ITEMS", itemType: "TEXTAREA", items: [{ key: s, def: n }], tags: e ?? [] };
101
101
  }
102
- function Dt(s, t, e) {
102
+ function wt(s, t, e) {
103
103
  if (typeof t == "function") {
104
- const r = t;
105
- return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: s, def: (a) => ({ type: "password", ...r(a) }) }], tags: e ?? [] };
104
+ const i = t;
105
+ return { type: "ITEMS", itemType: "PASSWORD", items: [{ key: s, def: (a) => ({ type: "password", ...i(a) }) }], tags: e ?? [] };
106
106
  }
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 Rt(s, t, e) {
110
+ function Nt(s, t, e) {
111
111
  if (typeof t == "function") {
112
- const r = t;
113
- return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: s, def: (a) => ({ type: "currency", ...r(a) }) }], tags: e ?? [] };
112
+ const i = t;
113
+ return { type: "ITEMS", itemType: "CURRENCY", items: [{ key: s, def: (a) => ({ type: "currency", ...i(a) }) }], tags: e ?? [] };
114
114
  }
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 Pt(s, t, e) {
118
+ function xt(s, t, e) {
119
119
  if (typeof t == "function") {
120
- const r = t;
121
- return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: s, def: (a) => ({ type: "markdown", ...r(a) }) }], tags: e ?? [] };
120
+ const i = t;
121
+ return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: s, def: (a) => ({ type: "markdown", ...i(a) }) }], tags: e ?? [] };
122
122
  }
123
123
  const n = { type: "markdown", ...t };
124
124
  return { type: "ITEMS", itemType: "MARKDOWN", items: [{ key: s, def: n }], tags: e ?? [] };
125
125
  }
126
- function wt(s, t, e) {
126
+ function bt(s, t, e) {
127
127
  if (typeof t == "function") {
128
- const r = t;
129
- return { type: "ITEMS", itemType: "LIST", items: [{ key: s, def: (a) => ({ type: "list", ...r(a) }) }], tags: e ?? [] };
128
+ const i = t;
129
+ return { type: "ITEMS", itemType: "LIST", items: [{ key: s, def: (a) => ({ type: "list", ...i(a) }) }], tags: e ?? [] };
130
130
  }
131
131
  const n = { type: "list", ...t };
132
132
  return { type: "ITEMS", itemType: "LIST", items: [{ key: s, def: n }], tags: e ?? [] };
133
133
  }
134
- function Nt(s, t, e) {
134
+ function Lt(s, t, e) {
135
135
  if (typeof t == "function") {
136
136
  const o = t;
137
137
  return {
138
- items: [(i) => ({
138
+ items: [(r) => ({
139
139
  type: "calendar",
140
140
  path: s,
141
- ...o(i)
141
+ ...o(r)
142
142
  })],
143
143
  type: "ITEMS",
144
144
  itemType: "CALENDAR",
@@ -152,70 +152,70 @@ function Nt(s, t, e) {
152
152
  tags: e ?? []
153
153
  };
154
154
  }
155
- function xt(s, t, e) {
155
+ function Gt(s, t, e) {
156
156
  if (typeof t == "function") {
157
- const r = t;
158
- return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: s, def: (a) => ({ type: "dateInput", ...r(a) }) }], tags: e ?? [] };
157
+ const i = t;
158
+ return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: s, def: (a) => ({ type: "dateInput", ...i(a) }) }], tags: e ?? [] };
159
159
  }
160
160
  const n = { type: "dateInput", ...t };
161
161
  return { type: "ITEMS", itemType: "DATE_INPUT", items: [{ key: s, def: n }], tags: e ?? [] };
162
162
  }
163
- function bt(s, t, e) {
163
+ function Ct(s, t, e) {
164
164
  if (typeof t == "function") {
165
- const r = t;
165
+ const i = t;
166
166
  return { type: "ITEMS", itemType: "DATE_PICKER", items: [{ key: s, def: (a) => ({
167
167
  type: "datePicker",
168
- ...r(a)
168
+ ...i(a)
169
169
  }) }], tags: e ?? [] };
170
170
  }
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 Lt(s, t, e) {
174
+ function vt(s, t, e) {
175
175
  if (typeof t == "function") {
176
- const r = t;
176
+ const i = t;
177
177
  return { type: "ITEMS", itemType: "RANGE_CALENDAR", items: [{ key: s, def: (a) => ({
178
178
  type: "rangeCalendar",
179
- ...r(a)
179
+ ...i(a)
180
180
  }) }], tags: e ?? [] };
181
181
  }
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 Ct(s, t, e) {
185
+ function Ft(s, t, e) {
186
186
  if (typeof t == "function") {
187
- const r = t;
187
+ const i = t;
188
188
  return { type: "ITEMS", itemType: "RANGE_DATE_INPUT", items: [{ key: s, def: (a) => ({
189
189
  type: "rangeDateInput",
190
- ...r(a)
190
+ ...i(a)
191
191
  }) }], tags: e ?? [] };
192
192
  }
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 Gt(s, t, e) {
196
+ function Yt(s, t, e) {
197
197
  if (typeof t == "function") {
198
- const r = t;
198
+ const i = t;
199
199
  return { type: "ITEMS", itemType: "RANGE_DATE_PICKER", items: [{ key: s, def: (a) => ({
200
200
  type: "rangeDatePicker",
201
- ...r(a)
201
+ ...i(a)
202
202
  }) }], tags: e ?? [] };
203
203
  }
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 Ft(s, t, e, n) {
207
+ function $t(s, t, e, n) {
208
208
  if (typeof e == "function") {
209
- const i = e;
209
+ const r = e;
210
210
  return { type: "ITEMS", itemType: "CUSTOM_INPUT", items: [{ key: t, def: (d) => ({
211
211
  customType: s,
212
- ...i(d)
212
+ ...r(d)
213
213
  }) }], tags: n ?? [] };
214
214
  }
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 I(s, t) {
218
+ function Wt(s, t) {
219
219
  return {
220
220
  items: [s],
221
221
  type: "ITEMS",
@@ -223,18 +223,11 @@ function I(s, t) {
223
223
  tags: t ?? []
224
224
  };
225
225
  }
226
- const Yt = (s) => {
227
- const t = {
228
- uid: "#submit",
229
- label: "Submit"
230
- }, e = s != null ? _.deepMerge(t, s) : t;
231
- return I(e);
232
- };
233
- function $t(s, t, e) {
226
+ function Kt(s, t, e) {
234
227
  if (typeof t == "function") {
235
- const r = t;
228
+ const i = t;
236
229
  return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [
237
- (u) => ({ customType: s, ...r(u) })
230
+ (u) => ({ customType: s, ...i(u) })
238
231
  ], tags: e ?? [] };
239
232
  }
240
233
  return { type: "ITEMS", itemType: "CUSTOM_ACTION", items: [{ customType: s, ...t }], tags: e ?? [] };
@@ -242,7 +235,7 @@ function $t(s, t, e) {
242
235
  function jt(s, t) {
243
236
  return { type: "ITEMS", itemType: "ALERTS", items: [s], tags: t ?? [] };
244
237
  }
245
- function Kt(s, t, e) {
238
+ function zt(s, t, e) {
246
239
  if (typeof t == "function") {
247
240
  const u = t;
248
241
  return { type: "ITEMS", itemType: "CUSTOM_DISPLAY", items: [
@@ -256,12 +249,12 @@ function Kt(s, t, e) {
256
249
  props: Object.keys(o).length > 0 ? o : void 0
257
250
  }], tags: e ?? [] };
258
251
  }
259
- const m = (s, t, e) => ({
252
+ const l = (s, t, e) => ({
260
253
  type: "ITEMS",
261
254
  itemType: y.LAYOUTS,
262
255
  items: [{ def: { widgetName: "flex", ...t ?? {} }, children: s }],
263
256
  tags: e ?? []
264
- }), Wt = (s, t, e) => m(s, { direction: "row", ...t ?? {} }, e), vt = (s, t, e) => m(s, { direction: "column", ...t ?? {} }, e), l = (s, t, e) => ({
257
+ }), Ht = (s, t, e) => l(s, { direction: "row", ...t ?? {} }, e), Xt = (s, t, e) => l(s, { direction: "column", ...t ?? {} }, e), m = (s, t, e) => ({
265
258
  type: "ITEMS",
266
259
  itemType: y.LAYOUTS,
267
260
  items: [
@@ -276,21 +269,21 @@ const m = (s, t, e) => ({
276
269
  }
277
270
  ],
278
271
  tags: e ?? []
279
- }), zt = (s, t, e) => l(s, { direction: "row", ...t ?? {} }, e), Ht = (s, t, e) => l(s, { direction: "column", ...t ?? {} }, e);
272
+ }), Vt = (s, t, e) => m(s, { direction: "row", ...t ?? {} }, e), qt = (s, t, e) => m(s, { direction: "column", ...t ?? {} }, e);
280
273
  function g(s) {
281
274
  return s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
282
275
  }
283
- function Xt(s, t, e) {
284
- const n = s.map((i) => ({
285
- label: i.label,
286
- uid: i.uid ?? g(i.label)
287
- })), o = s.map((i) => ({
276
+ function Qt(s, t, e) {
277
+ const n = s.map((r) => ({
278
+ label: r.label,
279
+ uid: r.uid ?? g(r.label)
280
+ })), o = s.map((r) => ({
288
281
  type: "ITEMS",
289
282
  itemType: y.LAYOUTS,
290
283
  items: [
291
284
  {
292
- def: { uid: i.uid ?? g(i.label), direction: "column", widgetName: "flex" },
293
- children: i.children
285
+ def: { uid: r.uid ?? g(r.label), direction: "column", widgetName: "flex" },
286
+ children: r.children
294
287
  }
295
288
  ],
296
289
  tags: []
@@ -308,17 +301,17 @@ function Xt(s, t, e) {
308
301
  function T(s) {
309
302
  return s.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/(^-|-$)/g, "");
310
303
  }
311
- function Vt(s, t, e) {
312
- const n = s.map((i) => ({
313
- label: i.label,
314
- uid: i.uid ?? T(i.label)
315
- })), o = s.map((i) => ({
304
+ function Zt(s, t, e) {
305
+ const n = s.map((r) => ({
306
+ label: r.label,
307
+ uid: r.uid ?? T(r.label)
308
+ })), o = s.map((r) => ({
316
309
  type: "ITEMS",
317
310
  itemType: y.LAYOUTS,
318
311
  items: [
319
312
  {
320
- def: { uid: i.uid ?? T(i.label), direction: "column", widgetName: "flex" },
321
- children: i.children
313
+ def: { uid: r.uid ?? T(r.label), direction: "column", widgetName: "flex" },
314
+ children: r.children
322
315
  }
323
316
  ],
324
317
  tags: []
@@ -333,17 +326,17 @@ function Vt(s, t, e) {
333
326
  tags: e ?? []
334
327
  };
335
328
  }
336
- function qt(s, t, e, n) {
329
+ function Jt(s, t, e, n) {
337
330
  if (typeof e == "function") {
338
- const i = e;
331
+ const r = e;
339
332
  return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: (d) => ({
340
333
  customType: s,
341
- ...i(d)
334
+ ...r(d)
342
335
  }), children: t }], tags: n ?? [] };
343
336
  }
344
337
  return { type: "ITEMS", itemType: "CUSTOM_LAYOUT", items: [{ def: { customType: s, ...e }, children: t }], tags: n ?? [] };
345
338
  }
346
- function Qt(s, t, e) {
339
+ function Ot(s, t, e) {
347
340
  const { template: n, ...o } = t;
348
341
  return {
349
342
  type: "ITEMS",
@@ -352,7 +345,15 @@ function Qt(s, t, e) {
352
345
  tags: e ?? []
353
346
  };
354
347
  }
355
- const Zt = (s) => p(s, (t) => t.type === "text"), Jt = (s) => p(s, (t) => t.type === "number"), Ot = (s) => p(s, (t) => t.type === "boolean");
348
+ function te(s, t, e) {
349
+ if (typeof t == "function") {
350
+ const i = t;
351
+ return { type: "ITEMS", itemType: "TAGS", items: [{ key: s, def: (a) => ({ type: "tags", ...i(a) }) }], tags: e ?? [] };
352
+ }
353
+ const n = { type: "tags", ...t };
354
+ return { type: "ITEMS", itemType: "TAGS", items: [{ key: s, def: n }], tags: e ?? [] };
355
+ }
356
+ const ee = (s) => p(s, (t) => t.type === "text"), se = (s) => p(s, (t) => t.type === "number"), ne = (s) => p(s, (t) => t.type === "boolean");
356
357
  class c {
357
358
  constructor(t) {
358
359
  this.conditions = t;
@@ -376,22 +377,22 @@ class c {
376
377
  apply(t) {
377
378
  if (this.conditions.length === 0) return t;
378
379
  const e = this.conditions.find(
379
- (r) => r.kind === "state"
380
+ (i) => i.kind === "state"
380
381
  ), n = this.conditions.filter(
381
- (r) => r.kind !== "state"
382
+ (i) => i.kind !== "state"
382
383
  ), o = t.matcher;
383
384
  return {
384
385
  ...t,
385
- matcher: (r) => {
386
- if (!o(r)) return !1;
387
- for (const i of n) {
388
- const u = r.tags ?? [];
389
- if (i.kind === "tagsAnd") {
390
- for (const a of i.tags)
386
+ matcher: (i) => {
387
+ if (!o(i)) return !1;
388
+ for (const r of n) {
389
+ const u = i.tags ?? [];
390
+ if (r.kind === "tagsAnd") {
391
+ for (const a of r.tags)
391
392
  if (!u.includes(a)) return !1;
392
393
  } else {
393
- if (i.tags.length === 0) continue;
394
- if (!i.tags.some((a) => u.includes(a))) return !1;
394
+ if (r.tags.length === 0) continue;
395
+ if (!r.tags.some((a) => u.includes(a))) return !1;
395
396
  }
396
397
  }
397
398
  return !0;
@@ -404,236 +405,255 @@ class c {
404
405
  return this.apply(p(t));
405
406
  }
406
407
  inputByUid(t, e) {
407
- return this.apply(E(t, e));
408
+ return this.apply(I(t, e));
408
409
  }
409
410
  textInputs(t) {
410
- return this.apply(Zt(t));
411
+ return this.apply(ee(t));
411
412
  }
412
413
  numberInputs(t) {
413
- return this.apply(Jt(t));
414
+ return this.apply(se(t));
414
415
  }
415
416
  booleanInputs(t) {
416
- return this.apply(Ot(t));
417
+ return this.apply(ne(t));
417
418
  }
418
419
  selects(t) {
419
- return this.apply(S(t));
420
+ return this.apply(_(t));
420
421
  }
421
422
  selectByUid(t, e) {
422
- return this.apply(U(t, e));
423
+ return this.apply(E(t, e));
423
424
  }
424
425
  dropdowns(t) {
425
- return this.apply(h(t));
426
+ return this.apply(S(t));
426
427
  }
427
428
  dropdownByUid(t, e) {
428
- return this.apply(A(t, e));
429
+ return this.apply(h(t, e));
429
430
  }
430
431
  radiogroups(t) {
431
- return this.apply(M(t));
432
+ return this.apply(U(t));
432
433
  }
433
434
  radiogroupByUid(t, e) {
434
- return this.apply(k(t, e));
435
+ return this.apply(A(t, e));
435
436
  }
436
437
  checkboxes(t) {
437
- return this.apply(B(t));
438
+ return this.apply(M(t));
438
439
  }
439
440
  checkboxByUid(t, e) {
440
- return this.apply(D(t, e));
441
+ return this.apply(k(t, e));
441
442
  }
442
443
  textareas(t) {
443
- return this.apply(R(t));
444
+ return this.apply(B(t));
444
445
  }
445
446
  textareaByUid(t, e) {
446
- return this.apply(P(t, e));
447
+ return this.apply(D(t, e));
447
448
  }
448
449
  passwords(t) {
449
- return this.apply(w(t));
450
+ return this.apply(P(t));
450
451
  }
451
452
  passwordByUid(t, e) {
452
- return this.apply(N(t, e));
453
+ return this.apply(R(t, e));
453
454
  }
454
455
  currencies(t) {
455
- return this.apply(x(t));
456
+ return this.apply(w(t));
456
457
  }
457
458
  currencyByUid(t, e) {
458
- return this.apply(b(t, e));
459
+ return this.apply(N(t, e));
459
460
  }
460
461
  markdowns(t) {
461
- return this.apply(L(t));
462
+ return this.apply(x(t));
462
463
  }
463
464
  markdownByUid(t, e) {
464
- return this.apply(C(t, e));
465
+ return this.apply(b(t, e));
465
466
  }
466
467
  lists(t) {
467
- return this.apply(G(t));
468
+ return this.apply(L(t));
468
469
  }
469
470
  listByUid(t, e) {
470
- return this.apply(F(t, e));
471
+ return this.apply(G(t, e));
471
472
  }
472
473
  calendars(t) {
473
- return this.apply(Y(t));
474
+ return this.apply(C(t));
474
475
  }
475
476
  calendarByUid(t, e) {
476
- return this.apply($(t, e));
477
+ return this.apply(v(t, e));
477
478
  }
478
479
  dateInputs(t) {
479
- return this.apply(j(t));
480
+ return this.apply(F(t));
480
481
  }
481
482
  dateInputByUid(t, e) {
482
- return this.apply(K(t, e));
483
+ return this.apply(Y(t, e));
483
484
  }
484
485
  datePickers(t) {
485
- return this.apply(W(t));
486
+ return this.apply($(t));
486
487
  }
487
488
  datePickerByUid(t, e) {
488
- return this.apply(v(t, e));
489
+ return this.apply(W(t, e));
489
490
  }
490
491
  rangeCalendars(t) {
491
- return this.apply(z(t));
492
+ return this.apply(K(t));
492
493
  }
493
494
  rangeCalendarByUid(t, e) {
494
- return this.apply(H(t, e));
495
+ return this.apply(j(t, e));
495
496
  }
496
497
  rangeDateInputs(t) {
497
- return this.apply(X(t));
498
+ return this.apply(z(t));
498
499
  }
499
500
  rangeDateInputByUid(t, e) {
500
- return this.apply(V(t, e));
501
+ return this.apply(H(t, e));
501
502
  }
502
503
  rangeDatePickers(t) {
503
- return this.apply(q(t));
504
+ return this.apply(X(t));
504
505
  }
505
506
  rangeDatePickerByUid(t, e) {
506
- return this.apply(Q(t, e));
507
+ return this.apply(V(t, e));
507
508
  }
508
509
  repeaters(t) {
509
- return this.apply(Z(t));
510
+ return this.apply(q(t));
510
511
  }
511
512
  repeaterByUid(t, e) {
512
- return this.apply(J(t, e));
513
+ return this.apply(Q(t, e));
513
514
  }
514
515
  // ─── Type selectors — actions, displays, layouts ───
515
516
  actions(t) {
516
- return this.apply(O(t));
517
+ return this.apply(Z(t));
517
518
  }
518
519
  actionByUid(t, e) {
519
- return this.apply(tt(t, e));
520
+ return this.apply(J(t, e));
520
521
  }
521
522
  layouts(t) {
522
- return this.apply(et(t));
523
+ return this.apply(O(t));
523
524
  }
524
525
  layoutByUid(t, e) {
525
- return this.apply(st(t, e));
526
+ return this.apply(tt(t, e));
526
527
  }
527
528
  displays(t) {
528
- return this.apply(nt(t));
529
+ return this.apply(et(t));
529
530
  }
530
531
  displayByUid(t, e) {
531
- return this.apply(it(t, e));
532
+ return this.apply(st(t, e));
532
533
  }
533
534
  alerts(t) {
534
- return this.apply(rt(t));
535
+ return this.apply(nt(t));
535
536
  }
536
537
  alertByUid(t, e) {
537
- return this.apply(ot(t, e));
538
+ return this.apply(it(t, e));
538
539
  }
539
540
  tabs(t) {
540
- return this.apply(at(t));
541
+ return this.apply(rt(t));
541
542
  }
542
543
  tabsByUid(t, e) {
543
- return this.apply(ut(t, e));
544
+ return this.apply(ot(t, e));
544
545
  }
545
546
  accordions(t) {
546
- return this.apply(yt(t));
547
+ return this.apply(at(t));
547
548
  }
548
549
  accordionByUid(t, e) {
549
- return this.apply(ct(t, e));
550
+ return this.apply(ut(t, e));
550
551
  }
551
552
  // ─── Type selectors — custom kinds ───
552
553
  customInputs(t) {
553
- return this.apply(dt(t));
554
+ return this.apply(yt(t));
554
555
  }
555
556
  customInputByUid(t, e) {
556
- return this.apply(pt(t, e));
557
+ return this.apply(ct(t, e));
557
558
  }
558
559
  customActions(t) {
559
- return this.apply(mt(t));
560
+ return this.apply(dt(t));
560
561
  }
561
562
  customActionByUid(t, e) {
562
- return this.apply(lt(t, e));
563
+ return this.apply(pt(t, e));
563
564
  }
564
565
  customDisplays(t) {
565
- return this.apply(ft(t));
566
+ return this.apply(lt(t));
566
567
  }
567
568
  customDisplayByUid(t, e) {
568
- return this.apply(gt(t, e));
569
+ return this.apply(mt(t, e));
569
570
  }
570
571
  customLayouts(t) {
571
- return this.apply(Tt(t));
572
+ return this.apply(ft(t));
572
573
  }
573
574
  customLayoutByUid(t, e) {
574
- return this.apply(It(t, e));
575
+ return this.apply(gt(t, e));
575
576
  }
576
577
  }
577
- const oe = {
578
+ const ce = {
578
579
  inputs: {
579
- textInput: Et,
580
- numberInput: St,
581
- booleanInput: Ut,
582
- select: ht,
583
- dropdown: At,
584
- radiogroup: Mt,
585
- checkbox: kt,
586
- textarea: Bt,
587
- password: Dt,
588
- currency: Rt,
589
- markdown: Pt,
590
- list: wt,
591
- calendar: Nt,
592
- dateInput: xt,
593
- datePicker: bt,
594
- rangeCalendar: Lt,
595
- rangeDateInput: Ct,
596
- rangeDatePicker: Gt,
597
- repeater: Qt,
598
- custom: Ft
580
+ textInput: Ut,
581
+ numberInput: At,
582
+ booleanInput: Mt,
583
+ select: kt,
584
+ dropdown: Bt,
585
+ radiogroup: Dt,
586
+ checkbox: Pt,
587
+ textarea: Rt,
588
+ password: wt,
589
+ currency: Nt,
590
+ markdown: xt,
591
+ list: bt,
592
+ calendar: Lt,
593
+ dateInput: Gt,
594
+ datePicker: Ct,
595
+ rangeCalendar: vt,
596
+ rangeDateInput: Ft,
597
+ rangeDatePicker: Yt,
598
+ repeater: Ot,
599
+ tags: te,
600
+ custom: $t
599
601
  },
600
602
  actions: {
601
- button: I,
602
- submitButton: Yt,
603
- custom: $t
603
+ button: Wt,
604
+ custom: Kt
604
605
  },
605
606
  displays: {
606
- display: _t,
607
+ display: Tt,
607
608
  alert: jt,
608
- custom: Kt
609
+ custom: zt
609
610
  },
610
611
  layouts: {
611
- flex: m,
612
- horizontalFlex: Wt,
613
- verticalFlex: vt,
614
- grid: l,
615
- horizontalGrid: zt,
616
- verticalGrid: Ht,
617
- tabs: Xt,
618
- accordion: Vt,
619
- custom: qt
612
+ flex: l,
613
+ horizontalFlex: Ht,
614
+ verticalFlex: Xt,
615
+ grid: m,
616
+ horizontalGrid: Vt,
617
+ verticalGrid: qt,
618
+ tabs: Qt,
619
+ accordion: Zt,
620
+ custom: Jt
620
621
  },
621
622
  selectors: c.root()
622
- };
623
- function ae(s, ...t) {
623
+ }, { gsl: de, gslByUid: pe } = It({
624
+ itemType: "TAGS",
625
+ entryShape: "keyed",
626
+ sensibleDefaults: {
627
+ base: { suppressAutomaticLabels: !1, suppressAutomaticPlaceholders: !1 },
628
+ fields: ["suppressAutomaticLabels", "suppressAutomaticPlaceholders"],
629
+ apply: (s, t) => St(ht(s, t), t)
630
+ },
631
+ mapToWidget: (s) => ({
632
+ uid: s.uid ?? "",
633
+ kind: "input",
634
+ type: "tags",
635
+ path: s.path ?? "",
636
+ ...s.label != null ? { label: s.label } : {},
637
+ ...s.disabled != null ? { disabled: s.disabled } : {},
638
+ ...s.readonly != null ? { readonly: s.readonly } : {},
639
+ ...s.validator != null ? { validator: Et(s.validator, "array") } : {},
640
+ props: _t(s)
641
+ })
642
+ });
643
+ function le(s, ...t) {
624
644
  return t.map((e) => ({
625
645
  ...e,
626
646
  targetState: s
627
647
  }));
628
648
  }
629
- function ue(s, ...t) {
649
+ function me(s, ...t) {
630
650
  return {
631
651
  kind: "aggregated",
632
652
  matcher: (e) => e.tags?.includes(s) ?? !1,
633
653
  children: t
634
654
  };
635
655
  }
636
- class te {
656
+ class ie {
637
657
  create(t) {
638
658
  return {
639
659
  states: t.states,
@@ -646,21 +666,21 @@ class te {
646
666
  };
647
667
  }
648
668
  }
649
- function ye() {
650
- return new te();
669
+ function fe() {
670
+ return new ie();
651
671
  }
652
- const ce = (s) => s !== null && typeof s == "object" && Object.prototype.hasOwnProperty.call(s, "label") && Object.prototype.hasOwnProperty.call(s, "value");
653
- function ee(s) {
672
+ const ge = (s) => s !== null && typeof s == "object" && Object.prototype.hasOwnProperty.call(s, "label") && Object.prototype.hasOwnProperty.call(s, "value");
673
+ function re(s) {
654
674
  return typeof s == "object" && s !== null && "$ref" in s && typeof s.$ref == "string" && Object.keys(s).length === 1;
655
675
  }
656
- async function se(s, t) {
676
+ async function oe(s, t) {
657
677
  const e = new URL(s, t).href, n = await fetch(e);
658
678
  if (!n.ok) throw new Error(`Failed to load form chunk ${e}: ${n.status}`);
659
- const { $schema: o, ...r } = await n.json();
660
- return f(r, e);
679
+ const { $schema: o, ...i } = await n.json();
680
+ return f(i, e);
661
681
  }
662
682
  async function f(s, t) {
663
- if (ee(s)) return se(s.$ref, t);
683
+ if (re(s)) return oe(s.$ref, t);
664
684
  const e = s;
665
685
  if (Array.isArray(e.children)) {
666
686
  const n = await Promise.all(e.children.map((o) => f(o, t)));
@@ -668,117 +688,116 @@ async function f(s, t) {
668
688
  }
669
689
  return s;
670
690
  }
671
- async function de(s, t) {
691
+ async function Te(s, t) {
672
692
  const e = await Promise.all(
673
693
  s.form.map((n) => f(n, t))
674
694
  );
675
695
  return { ...s, form: e };
676
696
  }
677
697
  export {
678
- ct as _gslAccordionByUid,
679
- yt as _gslAccordions,
680
- tt as _gslActionByUid,
681
- O as _gslActions,
682
- ot as _gslAlertByUid,
683
- rt as _gslAlerts,
684
- Ot as _gslBooleanInputs,
685
- $ as _gslCalendarByUid,
686
- Y as _gslCalendars,
687
- D as _gslCheckboxByUid,
688
- B as _gslCheckboxes,
689
- x as _gslCurrencies,
690
- b as _gslCurrencyByUid,
691
- lt as _gslCustomActionByUid,
692
- mt as _gslCustomActions,
693
- gt as _gslCustomDisplayByUid,
694
- ft as _gslCustomDisplays,
695
- pt as _gslCustomInputByUid,
696
- dt as _gslCustomInputs,
697
- It as _gslCustomLayoutByUid,
698
- Tt as _gslCustomLayouts,
699
- K as _gslDateInputByUid,
700
- j as _gslDateInputs,
701
- v as _gslDatePickerByUid,
702
- W as _gslDatePickers,
703
- it as _gslDisplayByUid,
704
- nt as _gslDisplays,
705
- A as _gslDropdownByUid,
706
- h as _gslDropdowns,
707
- E as _gslInputByUid,
698
+ ut as _gslAccordionByUid,
699
+ at as _gslAccordions,
700
+ J as _gslActionByUid,
701
+ Z as _gslActions,
702
+ it as _gslAlertByUid,
703
+ nt as _gslAlerts,
704
+ ne as _gslBooleanInputs,
705
+ v as _gslCalendarByUid,
706
+ C as _gslCalendars,
707
+ k as _gslCheckboxByUid,
708
+ M as _gslCheckboxes,
709
+ w as _gslCurrencies,
710
+ N as _gslCurrencyByUid,
711
+ pt as _gslCustomActionByUid,
712
+ dt as _gslCustomActions,
713
+ mt as _gslCustomDisplayByUid,
714
+ lt as _gslCustomDisplays,
715
+ ct as _gslCustomInputByUid,
716
+ yt as _gslCustomInputs,
717
+ gt as _gslCustomLayoutByUid,
718
+ ft as _gslCustomLayouts,
719
+ Y as _gslDateInputByUid,
720
+ F as _gslDateInputs,
721
+ W as _gslDatePickerByUid,
722
+ $ as _gslDatePickers,
723
+ st as _gslDisplayByUid,
724
+ et as _gslDisplays,
725
+ h as _gslDropdownByUid,
726
+ S as _gslDropdowns,
727
+ I as _gslInputByUid,
708
728
  p as _gslInputs,
709
- st as _gslLayoutByUid,
710
- et as _gslLayouts,
711
- F as _gslListByUid,
712
- G as _gslLists,
713
- C as _gslMarkdownByUid,
714
- L as _gslMarkdowns,
715
- Jt as _gslNumberInputs,
716
- N as _gslPasswordByUid,
717
- w as _gslPasswords,
718
- k as _gslRadiogroupByUid,
719
- M as _gslRadiogroups,
720
- H as _gslRangeCalendarByUid,
721
- z as _gslRangeCalendars,
722
- V as _gslRangeDateInputByUid,
723
- X as _gslRangeDateInputs,
724
- Q as _gslRangeDatePickerByUid,
725
- q as _gslRangeDatePickers,
726
- J as _gslRepeaterByUid,
727
- Z as _gslRepeaters,
728
- U as _gslSelectByUid,
729
- S as _gslSelects,
730
- ae as _gslStates,
731
- at as _gslTabs,
732
- ut as _gslTabsByUid,
733
- ue as _gslTag,
734
- Zt as _gslTextInputs,
735
- P as _gslTextareaByUid,
736
- R as _gslTextareas,
737
- Vt as _guiAccordion,
729
+ tt as _gslLayoutByUid,
730
+ O as _gslLayouts,
731
+ G as _gslListByUid,
732
+ L as _gslLists,
733
+ b as _gslMarkdownByUid,
734
+ x as _gslMarkdowns,
735
+ se as _gslNumberInputs,
736
+ R as _gslPasswordByUid,
737
+ P as _gslPasswords,
738
+ A as _gslRadiogroupByUid,
739
+ U as _gslRadiogroups,
740
+ j as _gslRangeCalendarByUid,
741
+ K as _gslRangeCalendars,
742
+ H as _gslRangeDateInputByUid,
743
+ z as _gslRangeDateInputs,
744
+ V as _gslRangeDatePickerByUid,
745
+ X as _gslRangeDatePickers,
746
+ Q as _gslRepeaterByUid,
747
+ q as _gslRepeaters,
748
+ E as _gslSelectByUid,
749
+ _ as _gslSelects,
750
+ le as _gslStates,
751
+ rt as _gslTabs,
752
+ ot as _gslTabsByUid,
753
+ me as _gslTag,
754
+ ee as _gslTextInputs,
755
+ D as _gslTextareaByUid,
756
+ B as _gslTextareas,
757
+ Zt as _guiAccordion,
738
758
  jt as _guiAlert,
739
- Ut as _guiBooleanInput,
740
- I as _guiButton,
741
- Nt as _guiCalendar,
742
- kt as _guiCheckbox,
743
- Rt as _guiCurrency,
744
- $t as _guiCustomAction,
745
- Kt as _guiCustomDisplay,
746
- Ft as _guiCustomInput,
747
- qt as _guiCustomLayout,
748
- xt as _guiDateInput,
749
- bt as _guiDatePicker,
750
- _t as _guiDisplay,
751
- At as _guiDropdown,
752
- m as _guiFlex,
753
- l as _guiGrid,
754
- Wt as _guiHorizontalFlex,
755
- zt as _guiHorizontalGrid,
756
- wt as _guiList,
757
- Pt as _guiMarkdown,
758
- St as _guiNumberInput,
759
- Dt as _guiPassword,
760
- Mt as _guiRadiogroup,
761
- Lt as _guiRangeCalendar,
762
- Ct as _guiRangeDateInput,
763
- Gt as _guiRangeDatePicker,
764
- Qt as _guiRepeater,
765
- ht as _guiSelect,
766
- Yt as _guiSubmitButton,
767
- Xt as _guiTabs,
768
- Et as _guiTextInput,
769
- Bt as _guiTextarea,
770
- vt as _guiVerticalFlex,
771
- Ht as _guiVerticalGrid,
772
- le as createGslSelector,
773
- fe as defineShortcutType,
774
- ge as extractWidgetProps,
775
- Te as formDefs,
776
- ye as golemForm,
777
- oe as gui,
778
- Ie as isDxDefinitions,
779
- ce as isOption,
780
- _e as processAutoLabel,
781
- Ee as processAutoPlaceholder,
782
- de as resolveChunkRefs,
783
- Se as resolveFormInput
759
+ Mt as _guiBooleanInput,
760
+ Wt as _guiButton,
761
+ Lt as _guiCalendar,
762
+ Pt as _guiCheckbox,
763
+ Nt as _guiCurrency,
764
+ Kt as _guiCustomAction,
765
+ zt as _guiCustomDisplay,
766
+ $t as _guiCustomInput,
767
+ Jt as _guiCustomLayout,
768
+ Gt as _guiDateInput,
769
+ Ct as _guiDatePicker,
770
+ Tt as _guiDisplay,
771
+ Bt as _guiDropdown,
772
+ l as _guiFlex,
773
+ m as _guiGrid,
774
+ Ht as _guiHorizontalFlex,
775
+ Vt as _guiHorizontalGrid,
776
+ bt as _guiList,
777
+ xt as _guiMarkdown,
778
+ At as _guiNumberInput,
779
+ wt as _guiPassword,
780
+ Dt as _guiRadiogroup,
781
+ vt as _guiRangeCalendar,
782
+ Ft as _guiRangeDateInput,
783
+ Yt as _guiRangeDatePicker,
784
+ Ot as _guiRepeater,
785
+ kt as _guiSelect,
786
+ Qt as _guiTabs,
787
+ Ut as _guiTextInput,
788
+ Rt as _guiTextarea,
789
+ Xt as _guiVerticalFlex,
790
+ qt as _guiVerticalGrid,
791
+ Ee as createGslSelector,
792
+ It as defineShortcutType,
793
+ _t as extractWidgetProps,
794
+ Se as formDefs,
795
+ fe as golemForm,
796
+ ce as gui,
797
+ he as isDxDefinitions,
798
+ ge as isOption,
799
+ ht as processAutoLabel,
800
+ St as processAutoPlaceholder,
801
+ Te as resolveChunkRefs,
802
+ Ue as resolveFormInput
784
803
  };