@effect-app/vue-components 4.0.0-beta.152 → 4.0.0-beta.153
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.
|
@@ -170,7 +170,7 @@ var O = class extends x.TaggedError("FormErrors") {}, k = (e) => function(t) {
|
|
|
170
170
|
i && !e && t > 0 && n.value && R.reset(r.value);
|
|
171
171
|
});
|
|
172
172
|
}
|
|
173
|
-
let G = R.handleSubmit, K = async (e) =>
|
|
173
|
+
let G = R.handleSubmit, K = async (e) => await G(e), q = (e) => S.currentSpan.pipe(S.option, S.flatMap((t) => S.promise(() => K(w.isSome(t) ? {
|
|
174
174
|
currentSpan: t.value,
|
|
175
175
|
...e
|
|
176
176
|
} : e)))), J = (e) => e?.checkErrors ? q(e?.meta).pipe(S.flatMap(S.fnUntraced(function* () {
|
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.153",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@mdi/js": "^7.4.47",
|
|
6
6
|
"effect": "^4.0.0-beta.56",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"highlight.js": "^11.11.1",
|
|
59
59
|
"mitt": "^3.0.1",
|
|
60
60
|
"vue3-highlightjs": "^1.0.5",
|
|
61
|
-
"effect-app": "4.0.0-beta.
|
|
62
|
-
"
|
|
61
|
+
"@effect-app/vue": "4.0.0-beta.153",
|
|
62
|
+
"effect-app": "4.0.0-beta.153"
|
|
63
63
|
},
|
|
64
64
|
"scripts": {
|
|
65
65
|
"check": "vue-tsc",
|
|
@@ -4,16 +4,15 @@
|
|
|
4
4
|
:key="fieldKey"
|
|
5
5
|
:name="name"
|
|
6
6
|
:validators="{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
...validators
|
|
7
|
+
...validators,
|
|
8
|
+
onSubmit: schema
|
|
10
9
|
}"
|
|
11
10
|
>
|
|
12
11
|
<template #default="{ field, state }">
|
|
13
12
|
<OmegaInternalInput
|
|
14
13
|
v-if="meta"
|
|
15
14
|
v-bind="{ ...$attrs, ...$props, inputClass: computedClass }"
|
|
16
|
-
:field="field"
|
|
15
|
+
:field="field as any"
|
|
17
16
|
:state="state"
|
|
18
17
|
:register="form.registerField"
|
|
19
18
|
:label="label ?? errori18n(propsName)"
|
|
@@ -927,7 +927,7 @@ export const useOmegaForm = <
|
|
|
927
927
|
|
|
928
928
|
const handleSubmit: typeof form.handleSubmit = async (meta?: Record<string, any>) => {
|
|
929
929
|
// workaround for not revealing all form errors on submit
|
|
930
|
-
await form.validateAllFields("blur")
|
|
930
|
+
// await form.validateAllFields("blur")
|
|
931
931
|
return await hs(meta)
|
|
932
932
|
}
|
|
933
933
|
|