@bolttech/form-engine-core 0.0.1-beta.40 → 0.0.1-beta.42
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 -2
- package/package.json +1 -1
- package/src/managers/form.d.ts +1 -1
package/index.esm.js
CHANGED
|
@@ -2448,6 +2448,7 @@ class FormField {
|
|
|
2448
2448
|
mapper
|
|
2449
2449
|
}) {
|
|
2450
2450
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
2451
|
+
this.valueSubscription$ = new Subscription();
|
|
2451
2452
|
this.fieldStateSubscription$ = new Subscription();
|
|
2452
2453
|
this.originalSchema = schemaComponent;
|
|
2453
2454
|
this.config = {
|
|
@@ -3014,6 +3015,7 @@ class FormCore {
|
|
|
3014
3015
|
*/
|
|
3015
3016
|
constructor(entry) {
|
|
3016
3017
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
3018
|
+
this.templateSubscription$ = new Subscription();
|
|
3017
3019
|
this.mappers = new Map();
|
|
3018
3020
|
this.schema = entry.schema;
|
|
3019
3021
|
this.fields = new Map();
|
|
@@ -3037,7 +3039,7 @@ class FormCore {
|
|
|
3037
3039
|
this.subscribedTemplates = [];
|
|
3038
3040
|
this.schema && this.serializeStructure(this.schema.components);
|
|
3039
3041
|
this.schema && this.subscribeTemplates();
|
|
3040
|
-
this.templateSubscription = this.templateSubject$.subscribe(this.refreshTemplates.bind(this));
|
|
3042
|
+
this.templateSubscription$ = this.templateSubject$.subscribe(this.refreshTemplates.bind(this));
|
|
3041
3043
|
this.templateSubject$.next({
|
|
3042
3044
|
key: IVARPROPNAME,
|
|
3043
3045
|
event: 'ON_IVARS'
|
|
@@ -3673,7 +3675,7 @@ class FormCore {
|
|
|
3673
3675
|
}
|
|
3674
3676
|
destroy() {
|
|
3675
3677
|
this.submitSubject$.unsubscribe();
|
|
3676
|
-
this.templateSubscription
|
|
3678
|
+
this.templateSubscription$.unsubscribe();
|
|
3677
3679
|
this.fieldEventSubject$.unsubscribe();
|
|
3678
3680
|
this.dataSubject$.unsubscribe();
|
|
3679
3681
|
this.fields.forEach(field => field.destroyField());
|
package/package.json
CHANGED
package/src/managers/form.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ declare class FormCore {
|
|
|
18
18
|
key: string;
|
|
19
19
|
event: TMutationEvents;
|
|
20
20
|
}>;
|
|
21
|
-
templateSubscription
|
|
21
|
+
templateSubscription$: Subscription;
|
|
22
22
|
submitSubject$: Subject<TFormValues<any>>;
|
|
23
23
|
mountSubject$: Subject<TFormValues<any>>;
|
|
24
24
|
fieldEventSubject$: Subject<TFieldEvent>;
|