@formio/js 5.0.0-dev.5778.eb7f268 → 5.0.0-dev.5780.6637ffb
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/formio.form.js +518 -518
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.full.js +518 -518
- package/dist/formio.full.min.js +1 -1
- package/lib/cjs/Webform.js +2 -2
- package/lib/cjs/components/_classes/component/Component.js +2 -2
- package/lib/mjs/Webform.js +6 -2
- package/lib/mjs/components/_classes/component/Component.js +2 -2
- package/package.json +2 -2
package/lib/cjs/Webform.js
CHANGED
|
@@ -1245,10 +1245,10 @@ class Webform extends NestedDataComponent_1.default {
|
|
|
1245
1245
|
}
|
|
1246
1246
|
this.checkData(value.data, flags);
|
|
1247
1247
|
const shouldValidate = !flags.noValidate ||
|
|
1248
|
-
flags.
|
|
1248
|
+
flags.fromIframe ||
|
|
1249
1249
|
(flags.fromSubmission && this.rootPristine && this.pristine && flags.changed);
|
|
1250
1250
|
const errors = shouldValidate
|
|
1251
|
-
? this.validate(value.data, Object.assign(Object.assign({}, flags), { process:
|
|
1251
|
+
? this.validate(value.data, Object.assign(Object.assign({}, flags), { noValidate: flags.fromIframe && this.submitted ? false : flags.noValidate, process: 'change' }))
|
|
1252
1252
|
: [];
|
|
1253
1253
|
value.isValid = errors.length === 0;
|
|
1254
1254
|
this.loading = false;
|
|
@@ -3024,7 +3024,7 @@ class Component extends Element_1.default {
|
|
|
3024
3024
|
this.parent.childErrors.push(...errors);
|
|
3025
3025
|
}
|
|
3026
3026
|
else {
|
|
3027
|
-
lodash_1.default.remove(this.parent.childErrors, (err) => err.component.key === this.component.key);
|
|
3027
|
+
lodash_1.default.remove(this.parent.childErrors, (err) => { var _a, _b; return (((_a = err === null || err === void 0 ? void 0 : err.component) === null || _a === void 0 ? void 0 : _a.key) || ((_b = err === null || err === void 0 ? void 0 : err.context) === null || _b === void 0 ? void 0 : _b.key)) === this.component.key; });
|
|
3028
3028
|
}
|
|
3029
3029
|
}
|
|
3030
3030
|
this.showValidationErrors(errors, data, row, flags);
|
|
@@ -3040,7 +3040,7 @@ class Component extends Element_1.default {
|
|
|
3040
3040
|
this.parent.childErrors.push(...errors);
|
|
3041
3041
|
}
|
|
3042
3042
|
else {
|
|
3043
|
-
lodash_1.default.remove(this.parent.childErrors, (err) => err.component.key === this.component.key);
|
|
3043
|
+
lodash_1.default.remove(this.parent.childErrors, (err) => { var _a, _b; return (((_a = err === null || err === void 0 ? void 0 : err.component) === null || _a === void 0 ? void 0 : _a.key) || ((_b = err === null || err === void 0 ? void 0 : err.context) === null || _b === void 0 ? void 0 : _b.key)) === this.component.key; });
|
|
3044
3044
|
}
|
|
3045
3045
|
}
|
|
3046
3046
|
return errors.length === 0;
|
package/lib/mjs/Webform.js
CHANGED
|
@@ -1247,10 +1247,14 @@ export default class Webform extends NestedDataComponent {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
this.checkData(value.data, flags);
|
|
1249
1249
|
const shouldValidate = !flags.noValidate ||
|
|
1250
|
-
flags.
|
|
1250
|
+
flags.fromIframe ||
|
|
1251
1251
|
(flags.fromSubmission && this.rootPristine && this.pristine && flags.changed);
|
|
1252
1252
|
const errors = shouldValidate
|
|
1253
|
-
? this.validate(value.data, {
|
|
1253
|
+
? this.validate(value.data, {
|
|
1254
|
+
...flags,
|
|
1255
|
+
noValidate: flags.fromIframe && this.submitted ? false : flags.noValidate,
|
|
1256
|
+
process: 'change'
|
|
1257
|
+
})
|
|
1254
1258
|
: [];
|
|
1255
1259
|
value.isValid = errors.length === 0;
|
|
1256
1260
|
this.loading = false;
|
|
@@ -2988,7 +2988,7 @@ export default class Component extends Element {
|
|
|
2988
2988
|
this.parent.childErrors.push(...errors);
|
|
2989
2989
|
}
|
|
2990
2990
|
else {
|
|
2991
|
-
_.remove(this.parent.childErrors, (err) => err
|
|
2991
|
+
_.remove(this.parent.childErrors, (err) => (err?.component?.key || err?.context?.key) === this.component.key);
|
|
2992
2992
|
}
|
|
2993
2993
|
}
|
|
2994
2994
|
this.showValidationErrors(errors, data, row, flags);
|
|
@@ -3004,7 +3004,7 @@ export default class Component extends Element {
|
|
|
3004
3004
|
this.parent.childErrors.push(...errors);
|
|
3005
3005
|
}
|
|
3006
3006
|
else {
|
|
3007
|
-
_.remove(this.parent.childErrors, (err) => err
|
|
3007
|
+
_.remove(this.parent.childErrors, (err) => (err?.component?.key || err?.context?.key) === this.component.key);
|
|
3008
3008
|
}
|
|
3009
3009
|
}
|
|
3010
3010
|
return errors.length === 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@formio/js",
|
|
3
|
-
"version": "5.0.0-dev.
|
|
3
|
+
"version": "5.0.0-dev.5780.6637ffb",
|
|
4
4
|
"description": "JavaScript powered Forms with JSON Form Builder",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"browser-cookies": "^1.2.0",
|
|
91
91
|
"browser-md5-file": "^1.1.1",
|
|
92
92
|
"compare-versions": "^6.1.1",
|
|
93
|
-
"core-js": "^3.
|
|
93
|
+
"core-js": "^3.37.1",
|
|
94
94
|
"dialog-polyfill": "^0.5.6",
|
|
95
95
|
"dom-autoscroller": "^2.3.4",
|
|
96
96
|
"dompurify": "^3.1.6",
|