@effect-app/vue-components 2.10.7 → 2.10.9
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/dist/vue-components.es12.js +85 -88
- package/dist/vue-components.es17.js +1 -1
- package/dist/vue-components.es20.js +2 -2
- package/dist/vue-components.es21.js +2 -2
- package/dist/vue-components.es30.js +191 -41
- package/dist/vue-components.es32.js +42 -2
- package/dist/vue-components.es33.js +2 -111
- package/dist/vue-components.es34.js +4 -0
- package/dist/vue-components.es35.js +111 -7
- package/dist/vue-components.es37.js +9 -0
- package/dist/vue-components.es38.js +27 -187
- package/dist/vue-components.es40.js +1 -1
- package/dist/vue-components.es7.js +1 -1
- package/package.json +3 -3
- package/src/components/OmegaForm/OmegaFormStuff.ts +2 -1
- package/dist/vue-components.es31.js +0 -4
- package/dist/vue-components.es36.js +0 -34
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { S as
|
|
1
|
+
import { S as i, Option as q } from "effect-app";
|
|
2
2
|
import { getMetadataFromSchema as k } from "@effect-app/vue/form";
|
|
3
3
|
import { useIntl as V, getTransformationFrom as _ } from "./vue-components.es3.js";
|
|
4
4
|
import { isObject as E } from "./vue-components.es16.js";
|
|
5
|
-
const $ = (e) =>
|
|
5
|
+
const $ = (e) => i.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKeyword" || n === i.Null.ast), g = (e) => !e || !i.AST.isUnion(e) ? !1 : e.types.find((n) => n._tag === "UndefinedKeyword") ? "undefined" : e.types.find((n) => n === i.Null.ast) ? "null" : !1, L = (e) => {
|
|
6
6
|
const n = [];
|
|
7
7
|
for (const t of e)
|
|
8
|
-
if (
|
|
8
|
+
if (i.AST.isUnion(t)) {
|
|
9
9
|
const p = L(t.types);
|
|
10
10
|
n.push(...p);
|
|
11
11
|
} else
|
|
@@ -25,24 +25,24 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
25
25
|
});
|
|
26
26
|
if (p) {
|
|
27
27
|
for (const s of p) {
|
|
28
|
-
const
|
|
28
|
+
const r = n ? `${n}.${s.name.toString()}` : s.name.toString(), l = g(s.type);
|
|
29
29
|
let a;
|
|
30
30
|
e._isNullableDiscriminatedUnion && s.name.toString() === "_tag" || e.required === !1 ? a = !1 : a = !l;
|
|
31
31
|
const m = s.type;
|
|
32
|
-
if (
|
|
32
|
+
if (i.AST.isUnion(s.type)) {
|
|
33
33
|
const c = L(s.type.types).filter(
|
|
34
|
-
(u) => u._tag !== "UndefinedKeyword" && u !==
|
|
34
|
+
(u) => u._tag !== "UndefinedKeyword" && u !== i.Null.ast
|
|
35
35
|
).map(_);
|
|
36
36
|
if (c.some(
|
|
37
37
|
(u) => "propertySignatures" in u
|
|
38
38
|
)) {
|
|
39
39
|
if (!l) {
|
|
40
40
|
const u = f({
|
|
41
|
-
parent:
|
|
41
|
+
parent: r,
|
|
42
42
|
property: s.type,
|
|
43
43
|
meta: { required: a, nullableOrUndefined: l }
|
|
44
44
|
});
|
|
45
|
-
o[
|
|
45
|
+
o[r] = u;
|
|
46
46
|
}
|
|
47
47
|
for (const u of c)
|
|
48
48
|
if ("propertySignatures" in u) {
|
|
@@ -50,17 +50,17 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
50
50
|
Object.assign(
|
|
51
51
|
o,
|
|
52
52
|
f({
|
|
53
|
-
parent:
|
|
53
|
+
parent: r,
|
|
54
54
|
propertySignatures: u.propertySignatures,
|
|
55
55
|
meta: y ? { _isNullableDiscriminatedUnion: !0 } : {}
|
|
56
56
|
})
|
|
57
57
|
);
|
|
58
58
|
}
|
|
59
59
|
} else {
|
|
60
|
-
const u = c.filter(
|
|
60
|
+
const u = c.filter(i.AST.isTupleType);
|
|
61
61
|
if (u.length > 0) {
|
|
62
62
|
const y = u[0];
|
|
63
|
-
if (o[
|
|
63
|
+
if (o[r] = {
|
|
64
64
|
type: "multiple",
|
|
65
65
|
members: y.elements,
|
|
66
66
|
rest: y.rest,
|
|
@@ -70,7 +70,7 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
70
70
|
const S = y.rest[0];
|
|
71
71
|
if (S.type._tag === "TypeLiteral" && "propertySignatures" in S.type)
|
|
72
72
|
for (const d of S.type.propertySignatures) {
|
|
73
|
-
const h = `${
|
|
73
|
+
const h = `${r}.${d.name.toString()}`, T = f({
|
|
74
74
|
parent: h,
|
|
75
75
|
property: d.type,
|
|
76
76
|
meta: {
|
|
@@ -78,7 +78,7 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
78
78
|
nullableOrUndefined: g(d.type)
|
|
79
79
|
}
|
|
80
80
|
});
|
|
81
|
-
if (T && typeof T == "object" && "type" in T && (o[h] = T, T.type === "multiple" &&
|
|
81
|
+
if (T && typeof T == "object" && "type" in T && (o[h] = T, T.type === "multiple" && i.AST.isTupleType(d.type) && d.type.rest && d.type.rest.length > 0)) {
|
|
82
82
|
const w = d.type.rest[0];
|
|
83
83
|
if (w.type._tag === "TypeLiteral" && "propertySignatures" in w.type)
|
|
84
84
|
for (const A of w.type.propertySignatures) {
|
|
@@ -97,11 +97,11 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
97
97
|
}
|
|
98
98
|
} else {
|
|
99
99
|
const y = f({
|
|
100
|
-
parent:
|
|
100
|
+
parent: r,
|
|
101
101
|
property: s.type,
|
|
102
102
|
meta: { required: a, nullableOrUndefined: l }
|
|
103
103
|
});
|
|
104
|
-
o[
|
|
104
|
+
o[r] = y;
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
} else {
|
|
@@ -110,18 +110,18 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
110
110
|
Object.assign(
|
|
111
111
|
o,
|
|
112
112
|
f({
|
|
113
|
-
parent:
|
|
113
|
+
parent: r,
|
|
114
114
|
propertySignatures: b.propertySignatures,
|
|
115
115
|
meta: { required: a, nullableOrUndefined: l }
|
|
116
116
|
})
|
|
117
117
|
);
|
|
118
|
-
else if (
|
|
118
|
+
else if (i.AST.isTupleType(s.type))
|
|
119
119
|
if (s.type.rest.length > 0 && s.type.rest[0].type._tag === "TypeLiteral" && "propertySignatures" in s.type.rest[0].type) {
|
|
120
120
|
const v = s.type.rest[0].type;
|
|
121
121
|
if (v._tag === "TypeLiteral" && "propertySignatures" in v)
|
|
122
122
|
for (const u of v.propertySignatures) {
|
|
123
|
-
const y = `${
|
|
124
|
-
if (
|
|
123
|
+
const y = `${r}.${u.name.toString()}`;
|
|
124
|
+
if (i.AST.isTupleType(u.type) && u.type.rest.length > 0) {
|
|
125
125
|
const S = u.type.rest[0].type;
|
|
126
126
|
if (S._tag === "TypeLiteral" && "propertySignatures" in S)
|
|
127
127
|
for (const d of S.propertySignatures) {
|
|
@@ -156,7 +156,7 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
156
156
|
}
|
|
157
157
|
}
|
|
158
158
|
} else
|
|
159
|
-
o[
|
|
159
|
+
o[r] = {
|
|
160
160
|
type: "multiple",
|
|
161
161
|
members: s.type.elements,
|
|
162
162
|
rest: s.type.rest,
|
|
@@ -165,7 +165,7 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
165
165
|
};
|
|
166
166
|
else {
|
|
167
167
|
const c = f({
|
|
168
|
-
parent:
|
|
168
|
+
parent: r,
|
|
169
169
|
property: s.type,
|
|
170
170
|
meta: {
|
|
171
171
|
// an empty string is valid for a S.String field, so we should not mark it as required
|
|
@@ -174,7 +174,7 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
174
174
|
nullableOrUndefined: l
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
|
-
o[
|
|
177
|
+
o[r] = c;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
}
|
|
@@ -182,15 +182,15 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
182
182
|
}
|
|
183
183
|
if (t) {
|
|
184
184
|
const s = $(t);
|
|
185
|
-
if (Object.hasOwnProperty.call(e, "required") || (e.required = !s),
|
|
185
|
+
if (Object.hasOwnProperty.call(e, "required") || (e.required = !s), i.AST.isUnion(t)) {
|
|
186
186
|
const l = L(t.types), a = l.find(
|
|
187
|
-
(m) => m._tag !== "UndefinedKeyword" && m !==
|
|
187
|
+
(m) => m._tag !== "UndefinedKeyword" && m !== i.Null.ast
|
|
188
188
|
);
|
|
189
189
|
return "propertySignatures" in a ? f({
|
|
190
190
|
propertySignatures: a.propertySignatures,
|
|
191
191
|
parent: n,
|
|
192
192
|
meta: e
|
|
193
|
-
}) : l.every(
|
|
193
|
+
}) : l.every(i.AST.isLiteral) ? {
|
|
194
194
|
...e,
|
|
195
195
|
type: "select",
|
|
196
196
|
members: l.map((m) => m.literal)
|
|
@@ -203,43 +203,40 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
203
203
|
})
|
|
204
204
|
};
|
|
205
205
|
}
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
};
|
|
213
|
-
const i = r.AST.getAnnotation(
|
|
206
|
+
return i.AST.isTupleType(t) ? {
|
|
207
|
+
...e,
|
|
208
|
+
type: "multiple",
|
|
209
|
+
members: t.elements,
|
|
210
|
+
rest: t.rest
|
|
211
|
+
} : (e = { ...i.AST.getAnnotation(
|
|
214
212
|
t,
|
|
215
|
-
|
|
216
|
-
).pipe(q.getOrElse(() => ({})))
|
|
217
|
-
return e = { ...e, ...i }, "from" in t ? f({
|
|
213
|
+
i.AST.JSONSchemaAnnotationId
|
|
214
|
+
).pipe(q.getOrElse(() => ({}))), ...e }, "from" in t ? f({
|
|
218
215
|
parent: n,
|
|
219
216
|
meta: e,
|
|
220
217
|
property: t.from
|
|
221
|
-
}) : (e.type =
|
|
218
|
+
}) : (e.type = i.AST.getAnnotation(
|
|
222
219
|
t,
|
|
223
|
-
|
|
220
|
+
i.AST.TitleAnnotationId
|
|
224
221
|
).pipe(
|
|
225
222
|
q.getOrElse(() => "unknown")
|
|
226
|
-
), e);
|
|
223
|
+
), e));
|
|
227
224
|
}
|
|
228
225
|
return o;
|
|
229
226
|
}, N = (e) => {
|
|
230
227
|
const n = e.ast, t = {}, p = {};
|
|
231
228
|
if (n._tag === "Transformation" || n._tag === "Refinement")
|
|
232
|
-
return N(
|
|
229
|
+
return N(i.make(n.from));
|
|
233
230
|
if (n._tag === "Union") {
|
|
234
|
-
const
|
|
235
|
-
if (
|
|
231
|
+
const r = (n.types || []).filter((a) => a._tag !== "UndefinedKeyword" && a !== i.Null.ast).map(_);
|
|
232
|
+
if (r.every((a) => a._tag === "TypeLiteral" && "propertySignatures" in a) && r.length > 0) {
|
|
236
233
|
const a = [];
|
|
237
|
-
for (const m of
|
|
234
|
+
for (const m of r)
|
|
238
235
|
if ("propertySignatures" in m) {
|
|
239
236
|
const b = m.propertySignatures.find(
|
|
240
237
|
(v) => v.name.toString() === "_tag"
|
|
241
238
|
);
|
|
242
|
-
b &&
|
|
239
|
+
b && i.AST.isLiteral(b.type) && a.push(b.type.literal);
|
|
243
240
|
const c = f({
|
|
244
241
|
propertySignatures: m.propertySignatures
|
|
245
242
|
});
|
|
@@ -256,67 +253,67 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
256
253
|
const o = f({
|
|
257
254
|
propertySignatures: n.propertySignatures
|
|
258
255
|
});
|
|
259
|
-
if (Object.values(o).every((
|
|
256
|
+
if (Object.values(o).every((r) => r && "type" in r))
|
|
260
257
|
return { meta: o, defaultValues: p };
|
|
261
|
-
const s = (
|
|
262
|
-
for (const a in
|
|
258
|
+
const s = (r, l = "") => {
|
|
259
|
+
for (const a in r) {
|
|
263
260
|
const m = l ? `${l}.${a}` : a;
|
|
264
|
-
|
|
261
|
+
r[a] && typeof r[a] == "object" && "type" in r[a] ? t[m] = r[a] : r[a] && typeof r[a] == "object" && s(r[a], m);
|
|
265
262
|
}
|
|
266
263
|
};
|
|
267
264
|
s(o);
|
|
268
265
|
}
|
|
269
266
|
return { meta: t, defaultValues: p };
|
|
270
|
-
},
|
|
267
|
+
}, J = (e) => i.extend(e, i.Struct({})), z = (e) => {
|
|
271
268
|
const { meta: n } = N(e);
|
|
272
269
|
return { schema: e, meta: n };
|
|
273
|
-
},
|
|
270
|
+
}, B = (e) => {
|
|
274
271
|
const { trans: n } = V();
|
|
275
272
|
let t;
|
|
276
273
|
switch (e.type) {
|
|
277
274
|
case "string":
|
|
278
|
-
t =
|
|
275
|
+
t = i.String.annotations({
|
|
279
276
|
message: () => n("validation.empty")
|
|
280
|
-
}), e.format === "email" && (t =
|
|
277
|
+
}), e.format === "email" && (t = i.compose(
|
|
281
278
|
t,
|
|
282
|
-
|
|
279
|
+
i.Email.annotations({
|
|
283
280
|
message: () => n("validation.email.invalid")
|
|
284
281
|
})
|
|
285
282
|
)), e.required && (t = t.annotations({
|
|
286
283
|
message: () => n("validation.empty")
|
|
287
|
-
}).pipe(
|
|
284
|
+
}).pipe(i.minLength(1)).annotations({
|
|
288
285
|
message: () => n("validation.empty")
|
|
289
|
-
})), typeof e.maxLength == "number" && (t = t.pipe(
|
|
286
|
+
})), typeof e.maxLength == "number" && (t = t.pipe(i.maxLength(e.maxLength)).annotations({
|
|
290
287
|
message: () => n("validation.string.maxLength", {
|
|
291
288
|
maxLength: e.maxLength
|
|
292
289
|
})
|
|
293
|
-
})), typeof e.minLength == "number" && (t = t.pipe(
|
|
290
|
+
})), typeof e.minLength == "number" && (t = t.pipe(i.minLength(e.minLength)).annotations({
|
|
294
291
|
message: () => n("validation.string.minLength", {
|
|
295
292
|
minLength: e.minLength
|
|
296
293
|
})
|
|
297
294
|
}));
|
|
298
295
|
break;
|
|
299
296
|
case "number":
|
|
300
|
-
t =
|
|
297
|
+
t = i.Number.annotations({
|
|
301
298
|
message: () => n("validation.empty")
|
|
302
299
|
}), e.required && t.annotations({
|
|
303
300
|
message: () => n("validation.empty")
|
|
304
|
-
}), typeof e.minimum == "number" && (t = t.pipe(
|
|
301
|
+
}), typeof e.minimum == "number" && (console.log("pippocazzo", e), t = t.pipe(i.greaterThanOrEqualTo(e.minimum)).annotations({
|
|
305
302
|
message: () => n(e.minimum === 0 ? "validation.number.positive" : "validation.number.min", {
|
|
306
303
|
minimum: e.minimum,
|
|
307
304
|
isExclusive: !0
|
|
308
305
|
})
|
|
309
|
-
})), typeof e.maximum == "number" && (t = t.pipe(
|
|
306
|
+
})), typeof e.maximum == "number" && (t = t.pipe(i.lessThanOrEqualTo(e.maximum)).annotations({
|
|
310
307
|
message: () => n("validation.number.max", {
|
|
311
308
|
maximum: e.maximum,
|
|
312
309
|
isExclusive: !0
|
|
313
310
|
})
|
|
314
|
-
})), typeof e.exclusiveMinimum == "number" && (t = t.pipe(
|
|
311
|
+
})), typeof e.exclusiveMinimum == "number" && (t = t.pipe(i.greaterThan(e.exclusiveMinimum)).annotations({
|
|
315
312
|
message: () => n(e.exclusiveMinimum === 0 ? "validation.number.positive" : "validation.number.min", {
|
|
316
313
|
minimum: e.exclusiveMinimum,
|
|
317
314
|
isExclusive: !1
|
|
318
315
|
})
|
|
319
|
-
})), typeof e.exclusiveMaximum == "number" && (t = t.pipe(
|
|
316
|
+
})), typeof e.exclusiveMaximum == "number" && (t = t.pipe(i.lessThan(e.exclusiveMaximum)).annotations({
|
|
320
317
|
message: () => n("validation.number.max", {
|
|
321
318
|
maximum: e.exclusiveMaximum,
|
|
322
319
|
isExclusive: !1
|
|
@@ -324,7 +321,7 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
324
321
|
}));
|
|
325
322
|
break;
|
|
326
323
|
case "select":
|
|
327
|
-
t =
|
|
324
|
+
t = i.Literal(...e.members).annotations({
|
|
328
325
|
message: () => ({
|
|
329
326
|
message: n("validation.not_a_valid", {
|
|
330
327
|
type: "select",
|
|
@@ -335,7 +332,7 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
335
332
|
});
|
|
336
333
|
break;
|
|
337
334
|
case "multiple":
|
|
338
|
-
t =
|
|
335
|
+
t = i.Array(i.String).annotations({
|
|
339
336
|
message: () => n("validation.not_a_valid", {
|
|
340
337
|
type: "multiple",
|
|
341
338
|
message: e.members.join(", ")
|
|
@@ -343,22 +340,22 @@ const $ = (e) => r.AST.isUnion(e) && e.types.find((n) => n._tag === "UndefinedKe
|
|
|
343
340
|
});
|
|
344
341
|
break;
|
|
345
342
|
case "boolean":
|
|
346
|
-
t =
|
|
343
|
+
t = i.Boolean;
|
|
347
344
|
break;
|
|
348
345
|
case "unknown":
|
|
349
|
-
t =
|
|
346
|
+
t = i.Unknown;
|
|
350
347
|
break;
|
|
351
348
|
default:
|
|
352
|
-
console.warn(`Unhandled field type: ${e}`), t =
|
|
349
|
+
console.warn(`Unhandled field type: ${e}`), t = i.Unknown;
|
|
353
350
|
break;
|
|
354
351
|
}
|
|
355
352
|
return e.required ? t.pipe(
|
|
356
|
-
|
|
353
|
+
i.annotations({
|
|
357
354
|
message: () => n("validation.empty")
|
|
358
355
|
})
|
|
359
|
-
) : t =
|
|
360
|
-
}, C = (e, n) =>
|
|
361
|
-
|
|
356
|
+
) : t = i.NullishOr(t), i.standardSchemaV1(t);
|
|
357
|
+
}, C = (e, n) => i.NullOr(e).pipe(
|
|
358
|
+
i.transform(i.typeSchema(e), {
|
|
362
359
|
decode: (t) => t ?? n(),
|
|
363
360
|
encode: (t) => t
|
|
364
361
|
})
|
|
@@ -401,10 +398,10 @@ const x = (e, n = {}) => {
|
|
|
401
398
|
if (U(e)) {
|
|
402
399
|
const p = {};
|
|
403
400
|
for (const [o, s] of Object.entries(e.fields)) {
|
|
404
|
-
const
|
|
405
|
-
if (
|
|
401
|
+
const r = s?.ast;
|
|
402
|
+
if (r?.defaultValue)
|
|
406
403
|
try {
|
|
407
|
-
p[o] =
|
|
404
|
+
p[o] = r.defaultValue();
|
|
408
405
|
continue;
|
|
409
406
|
} catch {
|
|
410
407
|
}
|
|
@@ -416,33 +413,33 @@ const x = (e, n = {}) => {
|
|
|
416
413
|
if (e?.from && U(e.from))
|
|
417
414
|
return x(e.from, n);
|
|
418
415
|
if (F(e)) {
|
|
419
|
-
const p = e.members.reduce((o, s) => (U(s) && Object.entries(s.fields).forEach(([
|
|
420
|
-
const a = l.ast, m = o[
|
|
421
|
-
(!o[
|
|
416
|
+
const p = e.members.reduce((o, s) => (U(s) && Object.entries(s.fields).forEach(([r, l]) => {
|
|
417
|
+
const a = l.ast, m = o[r]?.ast;
|
|
418
|
+
(!o[r] || a?.defaultValue && !m?.defaultValue) && (o[r] = l);
|
|
422
419
|
}), o), {});
|
|
423
|
-
return Object.entries(p).reduce((o, [s,
|
|
420
|
+
return Object.entries(p).reduce((o, [s, r]) => (o[s] = x(r, n[s] || {}), o), n);
|
|
424
421
|
}
|
|
425
422
|
if (Object.keys(n).length === 0)
|
|
426
423
|
switch (e.ast._tag) {
|
|
427
424
|
case "Refinement":
|
|
428
|
-
return x(
|
|
425
|
+
return x(i.make(e.ast.from), n);
|
|
429
426
|
case "Transformation": {
|
|
430
|
-
const p =
|
|
427
|
+
const p = i.make(e.ast.from);
|
|
431
428
|
return x(p, n);
|
|
432
429
|
}
|
|
433
430
|
case "TypeLiteral": {
|
|
434
431
|
const p = { ...n };
|
|
435
432
|
for (const o of t.propertySignatures) {
|
|
436
|
-
const s = o.name.toString(),
|
|
437
|
-
if (
|
|
438
|
-
p[s] =
|
|
433
|
+
const s = o.name.toString(), r = o.type;
|
|
434
|
+
if (r._tag === "Transformation" && r.defaultValue) {
|
|
435
|
+
p[s] = r.defaultValue();
|
|
439
436
|
continue;
|
|
440
437
|
}
|
|
441
|
-
if (
|
|
442
|
-
p[s] =
|
|
438
|
+
if (r.defaultValue) {
|
|
439
|
+
p[s] = r.defaultValue();
|
|
443
440
|
continue;
|
|
444
441
|
}
|
|
445
|
-
const l =
|
|
442
|
+
const l = i.make(r), a = x(l, n[s] || {});
|
|
446
443
|
a !== void 0 && (p[s] = a);
|
|
447
444
|
}
|
|
448
445
|
return p;
|
|
@@ -458,9 +455,9 @@ export {
|
|
|
458
455
|
f as createMeta,
|
|
459
456
|
j as deepMerge,
|
|
460
457
|
x as defaultsValueFromSchema,
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
458
|
+
J as duplicateSchema,
|
|
459
|
+
B as generateInputStandardSchemaFromFieldMeta,
|
|
460
|
+
z as generateMetaFromSchema,
|
|
464
461
|
G as getInputType,
|
|
465
462
|
g as isNullableOrUndefined,
|
|
466
463
|
C as nullableInput
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Exit as c, Runtime as u } from "effect";
|
|
2
|
-
import { dual as n, isFunction as m } from "./vue-components.
|
|
2
|
+
import { dual as n, isFunction as m } from "./vue-components.es32.js";
|
|
3
3
|
const i = Symbol.for("clone-trait"), a = n(2, (e, t) => i in e ? e[i](t) : Object.setPrototypeOf(t, Object.getPrototypeOf(e)));
|
|
4
4
|
n(2, (e, t) => a(e, { ...e, ...m(t) ? t(e) : t }));
|
|
5
5
|
const p = (e, t) => new Promise((o, s) => e.addObserver((r) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");if(a.appendChild(document.createTextNode('.v-enter-from[data-v-6b2bf87e],.v-leave-to[data-v-6b2bf87e]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6b2bf87e],.v-leave-active[data-v-6b2bf87e]{display:grid;transition:all .15s}.v-enter-to[data-v-6b2bf87e],.v-leave-from[data-v-6b2bf87e]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6b2bf87e]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6b2bf87e]{min-height:0}.error-list[data-v-6b2bf87e]{list-style-position:inside}.error-list [data-v-6b2bf87e]::marker{margin:0;padding:0}.error-alert-content[data-v-6b2bf87e]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-6b2bf87e]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-6b2bf87e]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-6b2bf87e]{font-weight:700;font-size:1.25em}.error-message[data-v-6b2bf87e]{font-style:italic}.error-item[data-v-6b2bf87e]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-6b2bf87e]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-6b2bf87e]{display:flex;gap:1.5em}.container svg[data-v-6b2bf87e]{width:3em}.container .single-error[data-v-6b2bf87e]{display:inline-block}')),document.head.appendChild(a),window.customElements){const e=window.customElements.define;window.customElements.define=function(i,t){const r=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(r&&r.call(this),this.shadowRoot){const o=document.createElement("style");o.appendChild(document.createTextNode('.v-enter-from[data-v-6b2bf87e],.v-leave-to[data-v-6b2bf87e]{max-height:0px;grid-template-rows:0fr;opacity:0}.v-enter-active[data-v-6b2bf87e],.v-leave-active[data-v-6b2bf87e]{display:grid;transition:all .15s}.v-enter-to[data-v-6b2bf87e],.v-leave-from[data-v-6b2bf87e]{grid-template-rows:1fr;max-height:50vh;opacity:1}.error-alert[data-v-6b2bf87e]{transition-behavior:allow-discrete;display:grid;overflow:hidden;min-height:0}.error-alert>*[data-v-6b2bf87e]{min-height:0}.error-list[data-v-6b2bf87e]{list-style-position:inside}.error-list [data-v-6b2bf87e]::marker{margin:0;padding:0}.error-alert-content[data-v-6b2bf87e]{background-color:var(--error-background, #fff5f5);color:var(--error-color, #c92a2a);padding:1em}.error-link[data-v-6b2bf87e]{font-weight:700;position:relative;color:var(--error-color, #c92a2a);cursor:pointer}.error-link[data-v-6b2bf87e]:after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:rgba(from var(--error-color, #c92a2a) r g b / .5)}.text-h6[data-v-6b2bf87e]{font-weight:700;font-size:1.25em}.error-message[data-v-6b2bf87e]{font-style:italic}.error-item[data-v-6b2bf87e]{margin-bottom:.5em;overflow:hidden}.error-item>div[data-v-6b2bf87e]{float:right;width:100%;max-width:calc(100% - 1.5em)}.container[data-v-6b2bf87e]{display:flex;gap:1.5em}.container svg[data-v-6b2bf87e]{width:3em}.container .single-error[data-v-6b2bf87e]{display:inline-block}')),this.shadowRoot.appendChild(o)}},e.call(window.customElements,i,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import r from "./vue-components.
|
|
2
|
+
import r from "./vue-components.es35.js";
|
|
3
3
|
|
|
4
|
-
import o from "./vue-components.
|
|
4
|
+
import o from "./vue-components.es37.js";
|
|
5
5
|
const m = /* @__PURE__ */ o(r, [["__scopeId", "data-v-6b2bf87e"]]);
|
|
6
6
|
export {
|
|
7
7
|
m as default
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var n=document.createElement("style");if(n.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),document.head.appendChild(n),window.customElements){const e=window.customElements.define;window.customElements.define=function(o,t){const d=t.prototype.connectedCallback;return t.prototype.connectedCallback=function(){if(d&&d.call(this),this.shadowRoot){const c=document.createElement("style");c.appendChild(document.createTextNode("fieldset[data-v-8c9cb27c]{display:contents}fieldset[disabled][data-v-8c9cb27c]>*{pointer-events:none}")),this.shadowRoot.appendChild(c)}},e.call(window.customElements,o,t)}}}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import o from "./vue-components.
|
|
2
|
+
import o from "./vue-components.es38.js";
|
|
3
3
|
|
|
4
|
-
import m from "./vue-components.
|
|
4
|
+
import m from "./vue-components.es37.js";
|
|
5
5
|
const a = /* @__PURE__ */ m(o, [["__scopeId", "data-v-8c9cb27c"]]);
|
|
6
6
|
export {
|
|
7
7
|
a as default
|