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
|
@@ -2738,6 +2738,7 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
2738
2738
|
this._originToken = null;
|
|
2739
2739
|
this._formRoute = null;
|
|
2740
2740
|
this._definitionObtained = false;
|
|
2741
|
+
this._notifyFormActivity = true;
|
|
2741
2742
|
// Eventos de acciones y campos
|
|
2742
2743
|
this._formChangeState = [];
|
|
2743
2744
|
this._formSectionsCanDeactivate = {};
|
|
@@ -2844,6 +2845,8 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
2844
2845
|
target.extra = target?.extra ?? {};
|
|
2845
2846
|
this.formManagerService.openForm(origin, target);
|
|
2846
2847
|
}
|
|
2848
|
+
enableActivityNotification() { this._notifyFormActivity = true; }
|
|
2849
|
+
disableActivityNotification() { this._notifyFormActivity = false; }
|
|
2847
2850
|
canGoBack() { return this._originToken !== null; }
|
|
2848
2851
|
goBack() { return this.formManagerService.backTo(); }
|
|
2849
2852
|
goBackForm() { return this.goBack(); }
|
|
@@ -3895,7 +3898,11 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
3895
3898
|
}
|
|
3896
3899
|
return false;
|
|
3897
3900
|
}
|
|
3898
|
-
notifyFormActivity() {
|
|
3901
|
+
notifyFormActivity() {
|
|
3902
|
+
if (this._notifyFormActivity) {
|
|
3903
|
+
this._eventEmiter.next('formActivity', { code: this.formCode });
|
|
3904
|
+
}
|
|
3905
|
+
}
|
|
3899
3906
|
/**
|
|
3900
3907
|
* Métodos Legacy de compatibilidad hacia atrás
|
|
3901
3908
|
*/
|