@effect-app/vue-components 4.0.0-beta.33 → 4.0.0-beta.36

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.
@@ -1,12 +1,12 @@
1
- import { S as i, Effect as P, Option as N } from "effect-app";
1
+ import { S as i, Effect as R, Option as w } from "effect-app";
2
2
  import { useIntl as I, getTransformationFrom as q } from "./vue-components.es3.js";
3
3
  import { isObject as G } from "./vue-components.es16.js";
4
- const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV !== "production", S = (e) => {
4
+ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV !== "production", T = (e) => {
5
5
  let t = q(e);
6
6
  for (; i.AST.isDeclaration(t) && t.typeParameters.length > 0; )
7
7
  t = q(t.typeParameters[0]);
8
8
  return t;
9
- }, j = (e) => i.AST.isUndefined(e) || i.AST.isNull(e), F = (e) => i.AST.isUnion(e) && e.types.length === 1 && i.AST.isLiteral(e.types[0]) ? e.types[0] : e, B = (e) => i.AST.isUnion(e) ? e.types.find((t) => j(t)) : !1, g = (e) => !e || !i.AST.isUnion(e) ? !1 : e.types.find((t) => i.AST.isUndefined(t)) ? "undefined" : e.types.find((t) => i.AST.isNull(t)) ? "null" : !1, U = (e) => {
9
+ }, j = (e) => i.AST.isUndefined(e) || i.AST.isNull(e), _ = (e) => i.AST.isUnion(e) && e.types.length === 1 && i.AST.isLiteral(e.types[0]) ? e.types[0] : e, B = (e) => i.AST.isUnion(e) ? e.types.find((t) => j(t)) : !1, g = (e) => !e || !i.AST.isUnion(e) ? !1 : e.types.find((t) => i.AST.isUndefined(t)) ? "undefined" : e.types.find((t) => i.AST.isNull(t)) ? "null" : !1, U = (e) => {
10
10
  const t = [];
11
11
  for (const n of e)
12
12
  if (i.AST.isUnion(n)) {
@@ -15,35 +15,35 @@ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV
15
15
  } else
16
16
  t.push(n);
17
17
  return t;
18
- }, _ = (e) => U(e).map(S).filter((t) => !j(t)), C = (e) => {
18
+ }, V = (e) => U(e).map(T).filter((t) => !j(t)), C = (e) => {
19
19
  const t = i.AST.resolve(e)?.jsonSchema;
20
20
  return t && typeof t == "object" ? t : {};
21
21
  }, D = (e) => {
22
22
  if (e?.transformation?.decode?.run)
23
23
  try {
24
- const t = P.runSync(e.transformation.decode.run(N.none()));
25
- return N.isSome(t) ? t.value : void 0;
24
+ const t = R.runSync(e.transformation.decode.run(w.none()));
25
+ return w.isSome(t) ? t.value : void 0;
26
26
  } catch {
27
27
  return;
28
28
  }
29
- }, A = (e) => {
29
+ }, v = (e) => {
30
30
  const t = e.context?.defaultValue?.[0], n = D(t);
31
31
  if (n !== void 0) return n;
32
32
  const r = e.encoding?.[0];
33
33
  if (r && e.context?.isOptional)
34
34
  return D(r);
35
- }, R = (e) => (e.checks ?? []).flatMap((n) => {
35
+ }, W = (e) => (e.checks ?? []).flatMap((n) => {
36
36
  if (n._tag === "FilterGroup")
37
- return n.checks.flatMap((a) => {
38
- const s = a.annotations?.meta;
37
+ return n.checks.flatMap((o) => {
38
+ const s = o.annotations?.meta;
39
39
  return s && typeof s == "object" ? [s] : [];
40
40
  });
41
41
  const r = n.annotations?.meta;
42
42
  return r && typeof r == "object" ? [r] : [];
43
- }), $ = (e) => {
43
+ }), F = (e) => {
44
44
  const t = {
45
45
  description: i.AST.resolveDescription(e)
46
- }, n = R(e);
46
+ }, n = W(e);
47
47
  if (i.AST.isString(e)) {
48
48
  t.type = "string";
49
49
  for (const r of n)
@@ -81,81 +81,81 @@ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV
81
81
  }
82
82
  } else i.AST.isBoolean(e) ? t.type = "boolean" : i.AST.isDeclaration(e) && e.annotations?.typeConstructor?._tag === "Date" ? t.type = "date" : t.type = "unknown";
83
83
  return t;
84
- }, y = ({ meta: e = {}, parent: t = "", property: n, propertySignatures: r }, a = {}) => {
85
- if (n && (n = S(n)), n && i.AST.isObjects(n))
84
+ }, y = ({ meta: e = {}, parent: t = "", property: n, propertySignatures: r }, o = {}) => {
85
+ if (n && (n = T(n)), n && i.AST.isObjects(n))
86
86
  return y({
87
87
  meta: e,
88
88
  propertySignatures: n.propertySignatures
89
89
  });
90
90
  if (r) {
91
91
  for (const s of r) {
92
- const l = t ? `${t}.${s.name.toString()}` : s.name.toString(), o = g(s.type);
93
- let m;
94
- e._isNullableDiscriminatedUnion && s.name.toString() === "_tag" || e.required === !1 ? m = !1 : m = !o;
95
- const c = S(s.type);
92
+ const l = t ? `${t}.${s.name.toString()}` : s.name.toString(), a = g(s.type);
93
+ let c;
94
+ e._isNullableDiscriminatedUnion && s.name.toString() === "_tag" || e.required === !1 ? c = !1 : c = !a;
95
+ const m = T(s.type);
96
96
  if (i.AST.isUnion(s.type)) {
97
- const u = _(s.type.types);
97
+ const u = V(s.type.types);
98
98
  if (u.some(i.AST.isObjects)) {
99
- if (!o) {
99
+ if (!a) {
100
100
  const f = y({
101
101
  parent: l,
102
102
  property: s.type,
103
- meta: { required: m, nullableOrUndefined: o }
103
+ meta: { required: c, nullableOrUndefined: a }
104
104
  });
105
- a[l] = f;
105
+ o[l] = f;
106
106
  }
107
107
  for (const f of u)
108
108
  if (i.AST.isObjects(f)) {
109
- const p = o && u.length > 1, h = y({
109
+ const p = a && u.length > 1, A = y({
110
110
  parent: l,
111
111
  propertySignatures: f.propertySignatures,
112
112
  meta: p ? { _isNullableDiscriminatedUnion: !0 } : {}
113
113
  });
114
- for (const [d, T] of Object.entries(h)) {
115
- const b = a[d];
116
- b && b.type === "select" && T?.type === "select" ? b.members = [
117
- ...b.members,
118
- ...T.members.filter(
119
- (x) => !b.members.includes(x)
114
+ for (const [d, h] of Object.entries(A)) {
115
+ const S = o[d];
116
+ S && S.type === "select" && h?.type === "select" ? S.members = [
117
+ ...S.members,
118
+ ...h.members.filter(
119
+ (x) => !S.members.includes(x)
120
120
  )
121
- ] : a[d] = T;
121
+ ] : o[d] = h;
122
122
  }
123
123
  }
124
124
  } else {
125
125
  const f = u.filter(i.AST.isArrays);
126
126
  if (f.length > 0) {
127
127
  const p = f[0];
128
- if (a[l] = {
128
+ if (o[l] = {
129
129
  type: "multiple",
130
130
  members: p.elements,
131
131
  rest: p.rest,
132
- required: m,
133
- nullableOrUndefined: o
132
+ required: c,
133
+ nullableOrUndefined: a
134
134
  }, p.rest && p.rest.length > 0) {
135
- const h = S(p.rest[0]);
136
- if (i.AST.isObjects(h))
137
- for (const d of h.propertySignatures) {
138
- const T = `${l}.${d.name.toString()}`, b = y({
139
- parent: T,
135
+ const A = T(p.rest[0]);
136
+ if (i.AST.isObjects(A))
137
+ for (const d of A.propertySignatures) {
138
+ const h = `${l}.${d.name.toString()}`, S = y({
139
+ parent: h,
140
140
  property: d.type,
141
141
  meta: {
142
142
  required: !g(d.type),
143
143
  nullableOrUndefined: g(d.type)
144
144
  }
145
145
  });
146
- if (b && typeof b == "object" && "type" in b && (a[T] = b, b.type === "multiple" && i.AST.isArrays(d.type) && d.type.rest && d.type.rest.length > 0)) {
147
- const x = S(d.type.rest[0]);
146
+ if (S && typeof S == "object" && "type" in S && (o[h] = S, S.type === "multiple" && i.AST.isArrays(d.type) && d.type.rest && d.type.rest.length > 0)) {
147
+ const x = T(d.type.rest[0]);
148
148
  if (i.AST.isObjects(x))
149
149
  for (const O of x.propertySignatures) {
150
- const w = `${T}.${O.name.toString()}`, k = y({
151
- parent: w,
150
+ const N = `${h}.${O.name.toString()}`, k = y({
151
+ parent: N,
152
152
  property: O.type,
153
153
  meta: {
154
154
  required: !g(O.type),
155
155
  nullableOrUndefined: g(O.type)
156
156
  }
157
157
  });
158
- k && typeof k == "object" && "type" in k && (a[w] = k);
158
+ k && typeof k == "object" && "type" in k && (o[N] = k);
159
159
  }
160
160
  }
161
161
  }
@@ -164,42 +164,42 @@ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV
164
164
  const p = y({
165
165
  parent: l,
166
166
  property: s.type,
167
- meta: { required: m, nullableOrUndefined: o }
167
+ meta: { required: c, nullableOrUndefined: a }
168
168
  });
169
- a[l] = p;
169
+ o[l] = p;
170
170
  }
171
171
  }
172
- } else if (i.AST.isObjects(c))
172
+ } else if (i.AST.isObjects(m))
173
173
  Object.assign(
174
- a,
174
+ o,
175
175
  y({
176
176
  parent: l,
177
- propertySignatures: c.propertySignatures,
178
- meta: { required: m, nullableOrUndefined: o }
177
+ propertySignatures: m.propertySignatures,
178
+ meta: { required: c, nullableOrUndefined: a }
179
179
  })
180
180
  );
181
181
  else if (i.AST.isArrays(s.type))
182
- if (s.type.rest.length > 0 && i.AST.isObjects(S(s.type.rest[0]))) {
183
- const v = S(s.type.rest[0]);
184
- if (i.AST.isObjects(v))
185
- for (const f of v.propertySignatures) {
182
+ if (s.type.rest.length > 0 && i.AST.isObjects(T(s.type.rest[0]))) {
183
+ const b = T(s.type.rest[0]);
184
+ if (i.AST.isObjects(b))
185
+ for (const f of b.propertySignatures) {
186
186
  const p = `${l}.${f.name.toString()}`;
187
187
  if (i.AST.isArrays(f.type) && f.type.rest.length > 0) {
188
- const h = S(f.type.rest[0]);
189
- if (i.AST.isObjects(h))
190
- for (const d of h.propertySignatures) {
191
- const T = `${p}.${d.name.toString()}`, b = y({
192
- parent: T,
188
+ const A = T(f.type.rest[0]);
189
+ if (i.AST.isObjects(A))
190
+ for (const d of A.propertySignatures) {
191
+ const h = `${p}.${d.name.toString()}`, S = y({
192
+ parent: h,
193
193
  property: d.type,
194
194
  meta: {
195
195
  required: !g(d.type),
196
196
  nullableOrUndefined: g(d.type)
197
197
  }
198
198
  });
199
- a[T] = b;
199
+ o[h] = S;
200
200
  }
201
201
  else
202
- a[p] = {
202
+ o[p] = {
203
203
  type: "multiple",
204
204
  members: f.type.elements,
205
205
  rest: f.type.rest,
@@ -207,7 +207,7 @@ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV
207
207
  nullableOrUndefined: g(f.type)
208
208
  };
209
209
  } else {
210
- const h = y({
210
+ const A = y({
211
211
  parent: p,
212
212
  property: f.type,
213
213
  meta: {
@@ -215,16 +215,16 @@ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV
215
215
  nullableOrUndefined: g(f.type)
216
216
  }
217
217
  });
218
- a[p] = h;
218
+ o[p] = A;
219
219
  }
220
220
  }
221
221
  } else
222
- a[l] = {
222
+ o[l] = {
223
223
  type: "multiple",
224
224
  members: s.type.elements,
225
225
  rest: s.type.rest,
226
- required: m,
227
- nullableOrUndefined: o
226
+ required: c,
227
+ nullableOrUndefined: a
228
228
  };
229
229
  else {
230
230
  const u = y({
@@ -233,39 +233,39 @@ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV
233
233
  meta: {
234
234
  // an empty string is valid for a S.String field, so we should not mark it as required
235
235
  // TODO: handle this better via the createMeta minLength parsing
236
- required: m && (!i.AST.isString(c) || !!$(s.type).minLength),
237
- nullableOrUndefined: o
236
+ required: c && (!i.AST.isString(m) || !!F(m).minLength),
237
+ nullableOrUndefined: a
238
238
  }
239
239
  });
240
- a[l] = u;
240
+ o[l] = u;
241
241
  }
242
242
  }
243
- return a;
243
+ return o;
244
244
  }
245
245
  if (n) {
246
246
  const s = B(n);
247
- if (n = S(n), Object.hasOwnProperty.call(e, "required") || (e.required = !s), i.AST.isUnion(n)) {
248
- const l = U(n.types).map(S), o = l.filter((u) => !j(u));
249
- if (o.length === 1 && i.AST.isLiteral(o[0]) && typeof o[0].literal == "boolean")
250
- return y({ parent: t, meta: e, property: o[0] });
251
- const m = o[0];
252
- if (i.AST.isObjects(m))
247
+ if (n = T(n), Object.hasOwnProperty.call(e, "required") || (e.required = !s), i.AST.isUnion(n)) {
248
+ const l = U(n.types).map(T), a = l.filter((u) => !j(u));
249
+ if (a.length === 1 && i.AST.isLiteral(a[0]) && typeof a[0].literal == "boolean")
250
+ return y({ parent: t, meta: e, property: a[0] });
251
+ const c = a[0];
252
+ if (i.AST.isObjects(c))
253
253
  return y({
254
- propertySignatures: m.propertySignatures,
254
+ propertySignatures: c.propertySignatures,
255
255
  parent: t,
256
256
  meta: e
257
257
  });
258
- const c = l.map(F);
259
- return c.every((u) => j(u) || i.AST.isLiteral(u)) ? {
258
+ const m = l.map(_);
259
+ return m.every((u) => j(u) || i.AST.isLiteral(u)) ? {
260
260
  ...e,
261
261
  type: "select",
262
- members: c.filter(i.AST.isLiteral).map((u) => u.literal)
262
+ members: m.filter(i.AST.isLiteral).map((u) => u.literal)
263
263
  } : {
264
264
  ...e,
265
265
  ...y({
266
266
  parent: t,
267
267
  meta: e,
268
- property: m
268
+ property: c
269
269
  })
270
270
  };
271
271
  }
@@ -274,63 +274,84 @@ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV
274
274
  type: "multiple",
275
275
  members: n.elements,
276
276
  rest: n.rest
277
- } : (e = { ...C(n), ...$(n), ...e }, e);
277
+ } : (e = { ...C(n), ...F(n), ...e }, e);
278
278
  }
279
- return a;
280
- }, V = (e, t = "") => {
279
+ return o;
280
+ }, P = (e, t = "") => {
281
281
  const n = {};
282
282
  for (const r in e) {
283
- const a = e[r], s = t ? `${t}.${r}` : r;
284
- a && typeof a == "object" && "type" in a ? n[s] = a : a && typeof a == "object" && Object.assign(n, V(a, s));
283
+ const o = e[r], s = t ? `${t}.${r}` : r;
284
+ o && typeof o == "object" && "type" in o ? n[s] = o : o && typeof o == "object" && Object.assign(n, P(o, s));
285
285
  }
286
286
  return n;
287
287
  }, J = (e) => {
288
- const t = S(e.ast), n = {}, r = {}, a = {};
288
+ const t = T(e.ast), n = {}, r = {}, o = {};
289
289
  if (i.AST.isUnion(t)) {
290
- const s = _(t.types);
290
+ const s = V(t.types);
291
291
  if (s.every(i.AST.isObjects) && s.length > 0) {
292
- const o = [];
293
- for (const m of s)
294
- if (i.AST.isObjects(m)) {
295
- const c = m.propertySignatures.find(
292
+ const a = [];
293
+ for (const c of s)
294
+ if (i.AST.isObjects(c)) {
295
+ const m = c.propertySignatures.find(
296
296
  (p) => p.name.toString() === "_tag"
297
297
  );
298
298
  let u = null;
299
- const v = c ? F(c.type) : null;
300
- v && i.AST.isLiteral(v) && (u = v.literal, o.push(u), c && i.AST.isUnion(c.type) && K() && u != null && !E.has(u) && (E.add(u), console.warn(
299
+ const b = m ? _(m.type) : null;
300
+ b && i.AST.isLiteral(b) && (u = b.literal, a.push(u), m && i.AST.isUnion(m.type) && K() && u != null && !E.has(u) && (E.add(u), console.warn(
301
301
  `[OmegaForm] Union member with _tag "${u}" uses S.Struct({ _tag: S.Literal("${u}"), ... }). Please migrate to S.TaggedStruct("${u}", { ... }) for cleaner AST handling.`
302
302
  )));
303
303
  const f = y({
304
- propertySignatures: m.propertySignatures
304
+ propertySignatures: c.propertySignatures
305
305
  });
306
- u && (a[u] = V(f)), Object.assign(n, f);
306
+ u && (o[u] = P(f)), Object.assign(n, f);
307
307
  }
308
- return o.length > 0 && (n._tag = {
308
+ return a.length > 0 && (n._tag = {
309
309
  type: "select",
310
- members: o,
310
+ members: a,
311
311
  required: !0
312
- }), { meta: n, defaultValues: r, unionMeta: a };
312
+ }), { meta: n, defaultValues: r, unionMeta: o };
313
313
  }
314
314
  }
315
315
  if (i.AST.isObjects(t)) {
316
316
  const s = y({
317
317
  propertySignatures: t.propertySignatures
318
318
  });
319
- if (Object.values(s).every((o) => o && "type" in o))
320
- return { meta: s, defaultValues: r, unionMeta: a };
321
- const l = (o, m = "") => {
322
- for (const c in o) {
323
- const u = m ? `${m}.${c}` : c;
324
- o[c] && typeof o[c] == "object" && "type" in o[c] ? n[u] = o[c] : o[c] && typeof o[c] == "object" && l(o[c], u);
319
+ if (Object.values(s).every((a) => a && "type" in a))
320
+ return { meta: s, defaultValues: r, unionMeta: o };
321
+ const l = (a, c = "") => {
322
+ for (const m in a) {
323
+ const u = c ? `${c}.${m}` : m;
324
+ a[m] && typeof a[m] == "object" && "type" in a[m] ? n[u] = a[m] : a[m] && typeof a[m] == "object" && l(a[m], u);
325
325
  }
326
326
  };
327
327
  l(s);
328
328
  }
329
- return { meta: n, defaultValues: r, unionMeta: a };
330
- }, Z = (e) => e, ee = (e) => {
329
+ return { meta: n, defaultValues: r, unionMeta: o };
330
+ }, $ = (e) => i.AST.isDeclaration(e) && e.annotations?.typeConstructor?._tag === "effect/Redacted" && !e.encoding, ee = (e) => {
331
+ const t = e.ast, n = i.AST.isObjects(t) ? t : i.AST.isDeclaration(t) ? i.AST.toEncoded(t) : null;
332
+ if (!n || !("propertySignatures" in n)) return e;
333
+ let r = !1;
334
+ const o = {};
335
+ for (const s of n.propertySignatures)
336
+ if ($(s.type)) {
337
+ r = !0;
338
+ const l = i.make(s.type.typeParameters[0]);
339
+ o[s.name] = i.RedactedFromValue(l);
340
+ } else if (i.AST.isUnion(s.type)) {
341
+ const l = s.type.types, a = l.find($);
342
+ if (a) {
343
+ r = !0;
344
+ const c = i.make(a.typeParameters[0]), m = l.some(i.AST.isNull), u = l.some(i.AST.isUndefined), b = i.RedactedFromValue(c);
345
+ o[s.name] = m && u ? i.NullishOr(b) : m ? i.NullOr(b) : u ? i.UndefinedOr(b) : b;
346
+ } else
347
+ o[s.name] = i.make(s.type);
348
+ } else
349
+ o[s.name] = i.make(s.type);
350
+ return r ? i.Struct(o) : e;
351
+ }, te = (e) => e, ne = (e) => {
331
352
  const { meta: t, unionMeta: n } = J(e);
332
353
  return { schema: e, meta: t, unionMeta: n };
333
- }, te = (e, t) => {
354
+ }, ie = (e, t) => {
334
355
  t || (t = I().trans);
335
356
  let n;
336
357
  switch (e.type) {
@@ -412,7 +433,7 @@ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV
412
433
  break;
413
434
  }
414
435
  return e.required || (n = i.NullishOr(n)), i.toStandardSchemaV1(n);
415
- }, W = [
436
+ }, z = [
416
437
  "button",
417
438
  "checkbox",
418
439
  "color",
@@ -428,61 +449,61 @@ const E = /* @__PURE__ */ new Set(), K = () => globalThis.process?.env?.NODE_ENV
428
449
  "text",
429
450
  "time",
430
451
  "url"
431
- ], ne = (e) => W.includes(e) ? e : "text";
432
- function z(e, t) {
452
+ ], se = (e) => z.includes(e) ? e : "text";
453
+ function H(e, t) {
433
454
  const n = { ...e };
434
455
  for (const r in t)
435
- Array.isArray(t[r]) ? n[r] = t[r] : t[r] && G(t[r]) ? n[r] = z(n[r], t[r]) : n[r] = t[r];
456
+ Array.isArray(t[r]) ? n[r] = t[r] : t[r] && G(t[r]) ? n[r] = H(n[r], t[r]) : n[r] = t[r];
436
457
  return n;
437
458
  }
438
459
  function L(e) {
439
460
  return e && "fields" in e && typeof e.fields == "object";
440
461
  }
441
- function H(e) {
462
+ function Q(e) {
442
463
  return e && "members" in e && Array.isArray(e.members);
443
464
  }
444
465
  const M = (e, t = {}) => {
445
- const n = e.ast, r = A(n);
466
+ const n = e.ast, r = v(n);
446
467
  if (r !== void 0)
447
468
  return r;
448
469
  if (g(e.ast) === "null")
449
470
  return null;
450
471
  if (g(e.ast) !== "undefined") {
451
472
  if (L(e)) {
452
- const a = {};
473
+ const o = {};
453
474
  for (const [s, l] of Object.entries(e.fields)) {
454
- const o = A(l?.ast);
455
- if (o !== void 0) {
456
- a[s] = o;
475
+ const a = v(l?.ast);
476
+ if (a !== void 0) {
477
+ o[s] = a;
457
478
  continue;
458
479
  }
459
- const m = M(l, t[s] || {});
460
- m !== void 0 ? a[s] = m : g(l.ast) === "undefined" && (a[s] = void 0);
480
+ const c = M(l, t[s] || {});
481
+ c !== void 0 ? o[s] = c : g(l.ast) === "undefined" && (o[s] = void 0);
461
482
  }
462
- return { ...a, ...t };
483
+ return { ...o, ...t };
463
484
  }
464
485
  if (e?.from && L(e.from))
465
486
  return M(e.from, t);
466
- if (H(e)) {
467
- const a = e.members.reduce((s, l) => (L(l) && Object.entries(l.fields).forEach(([o, m]) => {
468
- const c = A(m.ast), u = s[o] ? A(s[o].ast) : void 0;
469
- (!s[o] || c !== void 0 && u === void 0) && (s[o] = m);
487
+ if (Q(e)) {
488
+ const o = e.members.reduce((s, l) => (L(l) && Object.entries(l.fields).forEach(([a, c]) => {
489
+ const m = v(c.ast), u = s[a] ? v(s[a].ast) : void 0;
490
+ (!s[a] || m !== void 0 && u === void 0) && (s[a] = c);
470
491
  }), s), {});
471
- return Object.keys(a).length === 0 ? Object.keys(t).length > 0 ? t : void 0 : Object.entries(a).reduce((s, [l, o]) => (s[l] = M(o, t[l] || {}), s), t);
492
+ return Object.keys(o).length === 0 ? Object.keys(t).length > 0 ? t : void 0 : Object.entries(o).reduce((s, [l, a]) => (s[l] = M(a, t[l] || {}), s), t);
472
493
  }
473
494
  if (Object.keys(t).length === 0) {
474
495
  if (i.AST.isObjects(n)) {
475
- const a = { ...t };
496
+ const o = { ...t };
476
497
  for (const s of n.propertySignatures) {
477
- const l = s.name.toString(), o = s.type, m = A(o);
478
- if (m !== void 0) {
479
- a[l] = m;
498
+ const l = s.name.toString(), a = s.type, c = v(a);
499
+ if (c !== void 0) {
500
+ o[l] = c;
480
501
  continue;
481
502
  }
482
- const c = i.make(o), u = M(c, t[l] || {});
483
- u !== void 0 ? a[l] = u : g(o) === "undefined" && (a[l] = void 0);
503
+ const m = i.make(a), u = M(m, t[l] || {});
504
+ u !== void 0 ? o[l] = u : g(a) === "undefined" && (o[l] = void 0);
484
505
  }
485
- return a;
506
+ return o;
486
507
  }
487
508
  if (i.AST.isString(n))
488
509
  return "";
@@ -493,11 +514,12 @@ const M = (e, t = {}) => {
493
514
  };
494
515
  export {
495
516
  y as createMeta,
496
- z as deepMerge,
517
+ H as deepMerge,
497
518
  M as defaultsValueFromSchema,
498
- Z as duplicateSchema,
499
- te as generateInputStandardSchemaFromFieldMeta,
500
- ee as generateMetaFromSchema,
501
- ne as getInputType,
502
- g as isNullableOrUndefined
519
+ te as duplicateSchema,
520
+ ie as generateInputStandardSchemaFromFieldMeta,
521
+ ne as generateMetaFromSchema,
522
+ se as getInputType,
523
+ g as isNullableOrUndefined,
524
+ ee as toFormSchema
503
525
  };
@@ -1,22 +1,22 @@
1
1
  import { default as t } from "./vue-components.es4.js";
2
- import { default as o } from "./vue-components.es5.js";
3
- import { createMeta as u, deepMerge as n, defaultsValueFromSchema as f, duplicateSchema as p, generateInputStandardSchemaFromFieldMeta as d, generateMetaFromSchema as l, getInputType as s, isNullableOrUndefined as g } from "./vue-components.es12.js";
4
- import { useOmegaForm as i } from "./vue-components.es10.js";
2
+ import { default as r } from "./vue-components.es5.js";
3
+ import { createMeta as u, deepMerge as n, defaultsValueFromSchema as f, duplicateSchema as p, generateInputStandardSchemaFromFieldMeta as d, generateMetaFromSchema as l, getInputType as s, isNullableOrUndefined as g, toFormSchema as x } from "./vue-components.es12.js";
4
+ import { useOmegaForm as c } from "./vue-components.es10.js";
5
5
  import { default as O } from "./vue-components.es6.js";
6
6
  import { default as I } from "./vue-components.es7.js";
7
- import { default as S } from "./vue-components.es8.js";
8
- import { default as M } from "./vue-components.es9.js";
9
- import { useOnClose as T, usePreventClose as y } from "./vue-components.es11.js";
10
- import { createUseFormWithCustomInput as b } from "./vue-components.es13.js";
7
+ import { default as C } from "./vue-components.es8.js";
8
+ import { default as U } from "./vue-components.es9.js";
9
+ import { useOnClose as y, usePreventClose as V } from "./vue-components.es11.js";
10
+ import { createUseFormWithCustomInput as v } from "./vue-components.es13.js";
11
11
  export {
12
12
  t as CommandButton,
13
- o as Dialog,
13
+ r as Dialog,
14
14
  O as OmegaInput,
15
- S as OmegaTaggedUnion,
16
- M as OmegaTaggedUnionInternal,
15
+ C as OmegaTaggedUnion,
16
+ U as OmegaTaggedUnionInternal,
17
17
  I as OmegaVuetifyInput,
18
18
  u as createMeta,
19
- b as createUseFormWithCustomInput,
19
+ v as createUseFormWithCustomInput,
20
20
  n as deepMerge,
21
21
  f as defaultsValueFromSchema,
22
22
  p as duplicateSchema,
@@ -24,7 +24,8 @@ export {
24
24
  l as generateMetaFromSchema,
25
25
  s as getInputType,
26
26
  g as isNullableOrUndefined,
27
- i as useOmegaForm,
28
- T as useOnClose,
29
- y as usePreventClose
27
+ x as toFormSchema,
28
+ c as useOmegaForm,
29
+ y as useOnClose,
30
+ V as usePreventClose
30
31
  };
@@ -1,5 +1,5 @@
1
1
  import { ContextAPI as l } from "./vue-components.es52.js";
2
- import { getSpanContext as m, setSpan as d } from "./vue-components.es59.js";
2
+ import { getSpanContext as m, setSpan as d } from "./vue-components.es55.js";
3
3
  import { NonRecordingSpan as p } from "./vue-components.es51.js";
4
4
  import { isSpanContextValid as S } from "./vue-components.es49.js";
5
5
  var f = l.getInstance(), I = (
@@ -1,6 +1,6 @@
1
1
  import { NoopContextManager as f } from "./vue-components.es60.js";
2
- import { registerGlobal as s, getGlobal as p, unregisterGlobal as g } from "./vue-components.es58.js";
3
- import { DiagAPI as u } from "./vue-components.es55.js";
2
+ import { registerGlobal as s, getGlobal as p, unregisterGlobal as g } from "./vue-components.es59.js";
3
+ import { DiagAPI as u } from "./vue-components.es56.js";
4
4
  var y = function(t, e) {
5
5
  var a = typeof Symbol == "function" && t[Symbol.iterator];
6
6
  if (!a) return t;
@@ -1,8 +1,8 @@
1
- import { registerGlobal as a, getGlobal as p, unregisterGlobal as s } from "./vue-components.es58.js";
1
+ import { registerGlobal as a, getGlobal as p, unregisterGlobal as s } from "./vue-components.es59.js";
2
2
  import { ProxyTracerProvider as i } from "./vue-components.es46.js";
3
3
  import { wrapSpanContext as c, isSpanContextValid as h } from "./vue-components.es49.js";
4
- import { deleteSpan as g, getSpan as S, getActiveSpan as x, getSpanContext as d, setSpan as f, setSpanContext as l } from "./vue-components.es59.js";
5
- import { DiagAPI as o } from "./vue-components.es55.js";
4
+ import { deleteSpan as g, getSpan as S, getActiveSpan as x, getSpanContext as d, setSpan as f, setSpanContext as l } from "./vue-components.es55.js";
5
+ import { DiagAPI as o } from "./vue-components.es56.js";
6
6
  var n = "trace", y = (
7
7
  /** @class */
8
8
  (function() {