@breadstone/mosaik-elements-angular 0.0.200 → 0.0.201
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.
|
@@ -60618,13 +60618,14 @@ class SignalFormValidator {
|
|
|
60618
60618
|
// what we know is this doesn't work with nested structures.
|
|
60619
60619
|
// we have to check this in the future again.
|
|
60620
60620
|
for (const [key, field] of Object.entries(form)) {
|
|
60621
|
-
field
|
|
60622
|
-
|
|
60621
|
+
const state = field();
|
|
60622
|
+
state.markAsTouched();
|
|
60623
|
+
const errs = state.errors();
|
|
60623
60624
|
if (errs.length > 0) {
|
|
60624
60625
|
const issue = {
|
|
60625
60626
|
path: key,
|
|
60626
60627
|
errors: errs,
|
|
60627
|
-
fieldRef:
|
|
60628
|
+
fieldRef: state
|
|
60628
60629
|
};
|
|
60629
60630
|
hooks?.onEachError?.(issue);
|
|
60630
60631
|
issues.push(issue);
|
|
@@ -60665,12 +60666,13 @@ class SignalFormValidator {
|
|
|
60665
60666
|
// we have to check this in the future again.
|
|
60666
60667
|
const issues = [];
|
|
60667
60668
|
for (const [key, field] of Object.entries(form)) {
|
|
60668
|
-
const
|
|
60669
|
+
const state = field();
|
|
60670
|
+
const errs = state.errors();
|
|
60669
60671
|
if (errs.length > 0) {
|
|
60670
60672
|
issues.push({
|
|
60671
60673
|
path: key,
|
|
60672
60674
|
errors: errs,
|
|
60673
|
-
fieldRef:
|
|
60675
|
+
fieldRef: state
|
|
60674
60676
|
});
|
|
60675
60677
|
}
|
|
60676
60678
|
}
|