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
|
@@ -431,6 +431,7 @@ class LibTableComponent extends ElementComponent {
|
|
|
431
431
|
if (!this.table) {
|
|
432
432
|
return;
|
|
433
433
|
}
|
|
434
|
+
this.table.setWidget(this);
|
|
434
435
|
this.formConfig = (_a = this.table) === null || _a === void 0 ? void 0 : _a._formConfig;
|
|
435
436
|
this.tableFieldStyles = (_b = this.formConfig) === null || _b === void 0 ? void 0 : _b.tableFieldStyles;
|
|
436
437
|
this.selectable = (_c = this.table) === null || _c === void 0 ? void 0 : _c.selectable;
|
|
@@ -1569,6 +1570,7 @@ class RecordTable extends FormElement {
|
|
|
1569
1570
|
columnDefinition(fieldCode) { return this._tableColumnObj[fieldCode]; }
|
|
1570
1571
|
putOnWait() { this.waiting = true; }
|
|
1571
1572
|
freeWaiting() { this.waiting = false; }
|
|
1573
|
+
setWidget(widget) { this.widget = widget; }
|
|
1572
1574
|
notifyGlobalAction(actionCode) {
|
|
1573
1575
|
const tableEvent = {
|
|
1574
1576
|
tableCode: this.tableCode,
|
|
@@ -2793,6 +2795,7 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
2793
2795
|
this._originToken = null;
|
|
2794
2796
|
this._formRoute = null;
|
|
2795
2797
|
this._definitionObtained = false;
|
|
2798
|
+
this._notifyFormActivity = true;
|
|
2796
2799
|
// Eventos de acciones y campos
|
|
2797
2800
|
this._formChangeState = [];
|
|
2798
2801
|
this._formSectionsCanDeactivate = {};
|
|
@@ -2900,6 +2903,8 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
2900
2903
|
target.extra = (_h = target === null || target === void 0 ? void 0 : target.extra) !== null && _h !== void 0 ? _h : {};
|
|
2901
2904
|
this.formManagerService.openForm(origin, target);
|
|
2902
2905
|
}
|
|
2906
|
+
enableActivityNotification() { this._notifyFormActivity = true; }
|
|
2907
|
+
disableActivityNotification() { this._notifyFormActivity = false; }
|
|
2903
2908
|
canGoBack() { return this._originToken !== null; }
|
|
2904
2909
|
goBack() { return this.formManagerService.backTo(); }
|
|
2905
2910
|
goBackForm() { return this.goBack(); }
|
|
@@ -4024,7 +4029,11 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
4024
4029
|
}
|
|
4025
4030
|
return false;
|
|
4026
4031
|
}
|
|
4027
|
-
notifyFormActivity() {
|
|
4032
|
+
notifyFormActivity() {
|
|
4033
|
+
if (this._notifyFormActivity) {
|
|
4034
|
+
this._eventEmiter.next('formActivity', { code: this.formCode });
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4028
4037
|
/**
|
|
4029
4038
|
* Métodos Legacy de compatibilidad hacia atrás
|
|
4030
4039
|
*/
|