@bolttech/form-engine-core 0.0.2-beta.4 → 0.0.2-beta.5
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 +4 -1
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -3895,7 +3895,7 @@ class FormGroup {
|
|
|
3895
3895
|
callback
|
|
3896
3896
|
}) {
|
|
3897
3897
|
const subs = ids.reduce((acc, formId) => {
|
|
3898
|
-
var _a;
|
|
3898
|
+
var _a, _b;
|
|
3899
3899
|
// @TODO add config on debounceTime on this events
|
|
3900
3900
|
const sub = (_a = this.forms.get(formId)) === null || _a === void 0 ? void 0 : _a.dataSubject$.pipe(groupBy(payload => `${formId}.${payload.event}`), mergeMap(group$ => group$.pipe(debounceTime(100))), map(({
|
|
3901
3901
|
key
|
|
@@ -3905,6 +3905,9 @@ class FormGroup {
|
|
|
3905
3905
|
formField: key,
|
|
3906
3906
|
values: (_a = this.forms.get(formId)) === null || _a === void 0 ? void 0 : _a.getFormValues()
|
|
3907
3907
|
};
|
|
3908
|
+
}), startWith({
|
|
3909
|
+
formField: null,
|
|
3910
|
+
values: (_b = this.forms.get(formId)) === null || _b === void 0 ? void 0 : _b.getFormValues()
|
|
3908
3911
|
}));
|
|
3909
3912
|
if (sub) {
|
|
3910
3913
|
acc[formId] = sub;
|