@bolttech/form-engine-core 1.0.0-beta.21 → 1.0.0-beta.23
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/index.esm.js +8 -5
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -4132,7 +4132,10 @@ class FormCore {
|
|
|
4132
4132
|
}) => this.index === formIndex), debounceTime(this.config.defaultStateRefreshTimeMS), map(() => ({
|
|
4133
4133
|
formIndex: this.index,
|
|
4134
4134
|
valid: this.valid
|
|
4135
|
-
})), distinctUntilKeyChanged('valid')
|
|
4135
|
+
})), distinctUntilKeyChanged('valid'), startWith({
|
|
4136
|
+
formIndex: this.index,
|
|
4137
|
+
valid: this.valid
|
|
4138
|
+
})).subscribe({
|
|
4136
4139
|
next: callback
|
|
4137
4140
|
});
|
|
4138
4141
|
return sub;
|
|
@@ -4295,10 +4298,10 @@ class FormGroup {
|
|
|
4295
4298
|
formIndex,
|
|
4296
4299
|
fieldIndex
|
|
4297
4300
|
}) {
|
|
4298
|
-
var _a;
|
|
4299
4301
|
const form = this.forms.get(formIndex);
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
+
form === null || form === void 0 ? void 0 : form.removeField({
|
|
4303
|
+
key: fieldIndex
|
|
4304
|
+
});
|
|
4302
4305
|
if ((form === null || form === void 0 ? void 0 : form.fields.size) === 0) {
|
|
4303
4306
|
this.removeForm({
|
|
4304
4307
|
key: formIndex
|
|
@@ -4390,7 +4393,7 @@ class FormGroup {
|
|
|
4390
4393
|
}), map(() => ({
|
|
4391
4394
|
groupValid: ids.every(id => {
|
|
4392
4395
|
var _a;
|
|
4393
|
-
return (_a = this.forms.get(id)) === null || _a === void 0 ? void 0 : _a.valid;
|
|
4396
|
+
return !this.forms.get(id) || ((_a = this.forms.get(id)) === null || _a === void 0 ? void 0 : _a.valid);
|
|
4394
4397
|
}),
|
|
4395
4398
|
forms: ids.reduce((acc, curr) => {
|
|
4396
4399
|
const formInstance = this.forms.get(curr);
|