@effect-app/vue-components 4.0.0-beta.320 → 4.0.0-beta.321
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.
|
@@ -72,17 +72,17 @@ var t = (e) => {
|
|
|
72
72
|
if (a(t)) {
|
|
73
73
|
if (t.annotations?.message !== void 0) return t;
|
|
74
74
|
let r = t.types.map((e) => e.literal);
|
|
75
|
-
return new e.AST.Union(t.types, t.
|
|
75
|
+
return new e.AST.Union(t.types, t.options, {
|
|
76
76
|
...t.annotations,
|
|
77
77
|
message: n("validation.not_a_valid", {
|
|
78
78
|
type: "select",
|
|
79
79
|
message: r.join(", ")
|
|
80
80
|
})
|
|
81
|
-
}, t.checks, t.encoding, t.context);
|
|
81
|
+
}, t.checks, t.encoding, t.context, t.encodingChecks);
|
|
82
82
|
}
|
|
83
83
|
if (e.AST.isUnion(t)) {
|
|
84
84
|
let r = t.types.map((e) => o(e, n));
|
|
85
|
-
return r.some((e, n) => e !== t.types[n]) ? new e.AST.Union(r, t.
|
|
85
|
+
return r.some((e, n) => e !== t.types[n]) ? new e.AST.Union(r, t.options, t.annotations, t.checks, t.encoding, t.context, t.encodingChecks) : t;
|
|
86
86
|
}
|
|
87
87
|
if (e.AST.isArrays(t)) {
|
|
88
88
|
let r = t.rest.map((e) => o(e, n)), i = t.elements.map((e) => o(e, n)), s = t.annotations;
|
|
@@ -97,14 +97,14 @@ var t = (e) => {
|
|
|
97
97
|
};
|
|
98
98
|
}
|
|
99
99
|
let c = r.some((e, n) => e !== t.rest[n]), l = i.some((e, n) => e !== t.elements[n]);
|
|
100
|
-
return !c && !l && s === t.annotations ? t : new e.AST.Arrays(t.isMutable, i, r, s, t.checks, t.encoding, t.context);
|
|
100
|
+
return !c && !l && s === t.annotations ? t : new e.AST.Arrays(t.isMutable, i, r, s, t.checks, t.encoding, t.context, t.encodingChecks);
|
|
101
101
|
}
|
|
102
102
|
if (e.AST.isObjects(t)) {
|
|
103
103
|
let r = t.propertySignatures.map((t) => {
|
|
104
104
|
let r = o(t.type, n);
|
|
105
105
|
return r === t.type ? t : new e.AST.PropertySignature(t.name, r);
|
|
106
106
|
});
|
|
107
|
-
return r.some((e, n) => e !== t.propertySignatures[n]) ? new e.AST.Objects(r, t.indexSignatures, t.annotations, t.checks, t.encoding, t.context) : t;
|
|
107
|
+
return r.some((e, n) => e !== t.propertySignatures[n]) ? new e.AST.Objects(r, t.indexSignatures, t.annotations, t.checks, t.encoding, t.context, t.encodingChecks) : t;
|
|
108
108
|
}
|
|
109
109
|
return t;
|
|
110
110
|
}, s = (t, n) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-app/vue-components",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.321",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/effect-app/libs.git",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"@mdi/js": "^7.4.47",
|
|
11
|
-
"effect": "^4.0.0-rc.
|
|
11
|
+
"effect": "^4.0.0-rc.114",
|
|
12
12
|
"intl-messageformat": "^11.2.7",
|
|
13
13
|
"mdi-js": "^1.0.1",
|
|
14
14
|
"primeflex": "^4.0.0",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"highlight.js": "^11.11.1",
|
|
63
63
|
"mitt": "^3.0.1",
|
|
64
64
|
"vue3-highlightjs": "^1.0.5",
|
|
65
|
-
"@effect-app/vue": "4.0.0-beta.
|
|
66
|
-
"effect-app": "4.0.0-beta.
|
|
65
|
+
"@effect-app/vue": "4.0.0-beta.321",
|
|
66
|
+
"effect-app": "4.0.0-beta.321"
|
|
67
67
|
},
|
|
68
68
|
"scripts": {
|
|
69
69
|
"check": "vue-tsc",
|
|
@@ -156,14 +156,15 @@ const walkAst = (ast: S.AST.AST, trans: TransFn): S.AST.AST => {
|
|
|
156
156
|
const members = ast.types.map((t) => t.literal)
|
|
157
157
|
return new S.AST.Union(
|
|
158
158
|
ast.types,
|
|
159
|
-
ast.
|
|
159
|
+
ast.options,
|
|
160
160
|
{
|
|
161
161
|
...ast.annotations,
|
|
162
162
|
message: trans("validation.not_a_valid", { type: "select", message: members.join(", ") })
|
|
163
163
|
},
|
|
164
164
|
ast.checks,
|
|
165
165
|
ast.encoding,
|
|
166
|
-
ast.context
|
|
166
|
+
ast.context,
|
|
167
|
+
ast.encodingChecks
|
|
167
168
|
)
|
|
168
169
|
}
|
|
169
170
|
// Mixed unions (e.g. `S.NullOr(S.Literals(...))` → Union<Null, Union<Literals>>)
|
|
@@ -175,11 +176,12 @@ const walkAst = (ast: S.AST.AST, trans: TransFn): S.AST.AST => {
|
|
|
175
176
|
if (!changed) return ast
|
|
176
177
|
return new S.AST.Union(
|
|
177
178
|
newTypes,
|
|
178
|
-
ast.
|
|
179
|
+
ast.options,
|
|
179
180
|
ast.annotations,
|
|
180
181
|
ast.checks,
|
|
181
182
|
ast.encoding,
|
|
182
|
-
ast.context
|
|
183
|
+
ast.context,
|
|
184
|
+
ast.encodingChecks
|
|
183
185
|
)
|
|
184
186
|
}
|
|
185
187
|
if (S.AST.isArrays(ast)) {
|
|
@@ -207,7 +209,8 @@ const walkAst = (ast: S.AST.AST, trans: TransFn): S.AST.AST => {
|
|
|
207
209
|
annotations,
|
|
208
210
|
ast.checks,
|
|
209
211
|
ast.encoding,
|
|
210
|
-
ast.context
|
|
212
|
+
ast.context,
|
|
213
|
+
ast.encodingChecks
|
|
211
214
|
)
|
|
212
215
|
}
|
|
213
216
|
if (S.AST.isObjects(ast)) {
|
|
@@ -223,7 +226,8 @@ const walkAst = (ast: S.AST.AST, trans: TransFn): S.AST.AST => {
|
|
|
223
226
|
ast.annotations,
|
|
224
227
|
ast.checks,
|
|
225
228
|
ast.encoding,
|
|
226
|
-
ast.context
|
|
229
|
+
ast.context,
|
|
230
|
+
ast.encodingChecks
|
|
227
231
|
)
|
|
228
232
|
}
|
|
229
233
|
return ast
|