tuain-ng-forms-lib 15.0.25 → 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/classes/forms/table/table.mjs +2 -1
- package/esm2020/lib/components/elements/tables/table.component.mjs +2 -1
- package/esm2020/lib/components/forms/basic-form.mjs +9 -2
- package/fesm2015/tuain-ng-forms-lib.mjs +10 -1
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +10 -1
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/table/table.d.ts +2 -0
- package/lib/components/forms/basic-form.d.ts +3 -0
- package/package.json +1 -1
|
@@ -417,6 +417,7 @@ class LibTableComponent extends ElementComponent {
|
|
|
417
417
|
if (!this.table) {
|
|
418
418
|
return;
|
|
419
419
|
}
|
|
420
|
+
this.table.setWidget(this);
|
|
420
421
|
this.formConfig = this.table?._formConfig;
|
|
421
422
|
this.tableFieldStyles = this.formConfig?.tableFieldStyles;
|
|
422
423
|
this.selectable = this.table?.selectable;
|
|
@@ -1540,6 +1541,7 @@ class RecordTable extends FormElement {
|
|
|
1540
1541
|
columnDefinition(fieldCode) { return this._tableColumnObj[fieldCode]; }
|
|
1541
1542
|
putOnWait() { this.waiting = true; }
|
|
1542
1543
|
freeWaiting() { this.waiting = false; }
|
|
1544
|
+
setWidget(widget) { this.widget = widget; }
|
|
1543
1545
|
notifyGlobalAction(actionCode) {
|
|
1544
1546
|
const tableEvent = {
|
|
1545
1547
|
tableCode: this.tableCode,
|
|
@@ -2736,6 +2738,7 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
2736
2738
|
this._originToken = null;
|
|
2737
2739
|
this._formRoute = null;
|
|
2738
2740
|
this._definitionObtained = false;
|
|
2741
|
+
this._notifyFormActivity = true;
|
|
2739
2742
|
// Eventos de acciones y campos
|
|
2740
2743
|
this._formChangeState = [];
|
|
2741
2744
|
this._formSectionsCanDeactivate = {};
|
|
@@ -2842,6 +2845,8 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
2842
2845
|
target.extra = target?.extra ?? {};
|
|
2843
2846
|
this.formManagerService.openForm(origin, target);
|
|
2844
2847
|
}
|
|
2848
|
+
enableActivityNotification() { this._notifyFormActivity = true; }
|
|
2849
|
+
disableActivityNotification() { this._notifyFormActivity = false; }
|
|
2845
2850
|
canGoBack() { return this._originToken !== null; }
|
|
2846
2851
|
goBack() { return this.formManagerService.backTo(); }
|
|
2847
2852
|
goBackForm() { return this.goBack(); }
|
|
@@ -3893,7 +3898,11 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
3893
3898
|
}
|
|
3894
3899
|
return false;
|
|
3895
3900
|
}
|
|
3896
|
-
notifyFormActivity() {
|
|
3901
|
+
notifyFormActivity() {
|
|
3902
|
+
if (this._notifyFormActivity) {
|
|
3903
|
+
this._eventEmiter.next('formActivity', { code: this.formCode });
|
|
3904
|
+
}
|
|
3905
|
+
}
|
|
3897
3906
|
/**
|
|
3898
3907
|
* Métodos Legacy de compatibilidad hacia atrás
|
|
3899
3908
|
*/
|