tuain-ng-forms-lib 15.0.26 → 15.0.27
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/esm2020/lib/components/forms/basic-form.mjs +9 -2
- package/fesm2015/tuain-ng-forms-lib.mjs +8 -1
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +8 -1
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/components/forms/basic-form.d.ts +3 -0
- package/package.json +1 -1
|
@@ -2795,6 +2795,7 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
2795
2795
|
this._originToken = null;
|
|
2796
2796
|
this._formRoute = null;
|
|
2797
2797
|
this._definitionObtained = false;
|
|
2798
|
+
this._notifyFormActivity = true;
|
|
2798
2799
|
// Eventos de acciones y campos
|
|
2799
2800
|
this._formChangeState = [];
|
|
2800
2801
|
this._formSectionsCanDeactivate = {};
|
|
@@ -2902,6 +2903,8 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
2902
2903
|
target.extra = (_h = target === null || target === void 0 ? void 0 : target.extra) !== null && _h !== void 0 ? _h : {};
|
|
2903
2904
|
this.formManagerService.openForm(origin, target);
|
|
2904
2905
|
}
|
|
2906
|
+
enableActivityNotification() { this._notifyFormActivity = true; }
|
|
2907
|
+
disableActivityNotification() { this._notifyFormActivity = false; }
|
|
2905
2908
|
canGoBack() { return this._originToken !== null; }
|
|
2906
2909
|
goBack() { return this.formManagerService.backTo(); }
|
|
2907
2910
|
goBackForm() { return this.goBack(); }
|
|
@@ -4026,7 +4029,11 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
4026
4029
|
}
|
|
4027
4030
|
return false;
|
|
4028
4031
|
}
|
|
4029
|
-
notifyFormActivity() {
|
|
4032
|
+
notifyFormActivity() {
|
|
4033
|
+
if (this._notifyFormActivity) {
|
|
4034
|
+
this._eventEmiter.next('formActivity', { code: this.formCode });
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4030
4037
|
/**
|
|
4031
4038
|
* Métodos Legacy de compatibilidad hacia atrás
|
|
4032
4039
|
*/
|