tuain-ng-forms-lib 15.1.15 → 15.1.17
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/form.mjs +5 -1
- package/esm2020/lib/components/forms/basic-form.mjs +2 -4
- package/fesm2015/tuain-ng-forms-lib.mjs +5 -3
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +5 -3
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/form.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2304,6 +2304,10 @@ class FormStructureAndData {
|
|
|
2304
2304
|
get states() { return this.stateFlow.states; }
|
|
2305
2305
|
get stateDescriptions() { return this.stateFlow.stateDescriptions; }
|
|
2306
2306
|
supportState(state = '') { var _a; return (!!state && ((_a = this.stateFlow.states) === null || _a === void 0 ? void 0 : _a.includes(state))); }
|
|
2307
|
+
getNextStates() {
|
|
2308
|
+
return this.stateFlow.transitions.filter(trns => trns.source === this.state)
|
|
2309
|
+
.map(trns => trns.destination);
|
|
2310
|
+
}
|
|
2307
2311
|
changeState(newState) {
|
|
2308
2312
|
const currentState = this.state;
|
|
2309
2313
|
if (!newState || !this.supportState(newState) || currentState === newState) {
|
|
@@ -3059,9 +3063,7 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
3059
3063
|
formTables.forEach(table => {
|
|
3060
3064
|
table.inlineActionTrigger.subscribe(event => this.startTableAction(event));
|
|
3061
3065
|
table.globalActionTrigger.subscribe(event => this.startTableGlobalAction(event));
|
|
3062
|
-
table.recordSelectionTrigger.subscribe(event =>
|
|
3063
|
-
this.startTableRecordSelection(event);
|
|
3064
|
-
});
|
|
3066
|
+
table.recordSelectionTrigger.subscribe(event => this.startTableRecordSelection(event));
|
|
3065
3067
|
table.selectionActionTrigger.subscribe(event => this.startTableSelectionAction(event));
|
|
3066
3068
|
table.getDataTrigger.subscribe(event => this.startTableGetData(event));
|
|
3067
3069
|
// Adicionalmente se le pide a la tabla se subscriba al cambio de estado del formulario
|