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.
@@ -2260,6 +2260,10 @@ class FormStructureAndData {
2260
2260
  get states() { return this.stateFlow.states; }
2261
2261
  get stateDescriptions() { return this.stateFlow.stateDescriptions; }
2262
2262
  supportState(state = '') { return (!!state && this.stateFlow.states?.includes(state)); }
2263
+ getNextStates() {
2264
+ return this.stateFlow.transitions.filter(trns => trns.source === this.state)
2265
+ .map(trns => trns.destination);
2266
+ }
2263
2267
  changeState(newState) {
2264
2268
  const currentState = this.state;
2265
2269
  if (!newState || !this.supportState(newState) || currentState === newState) {
@@ -2997,9 +3001,7 @@ class BasicFormComponent extends FormStructureAndData {
2997
3001
  formTables.forEach(table => {
2998
3002
  table.inlineActionTrigger.subscribe(event => this.startTableAction(event));
2999
3003
  table.globalActionTrigger.subscribe(event => this.startTableGlobalAction(event));
3000
- table.recordSelectionTrigger.subscribe(event => {
3001
- this.startTableRecordSelection(event);
3002
- });
3004
+ table.recordSelectionTrigger.subscribe(event => this.startTableRecordSelection(event));
3003
3005
  table.selectionActionTrigger.subscribe(event => this.startTableSelectionAction(event));
3004
3006
  table.getDataTrigger.subscribe(event => this.startTableGetData(event));
3005
3007
  // Adicionalmente se le pide a la tabla se subscriba al cambio de estado del formulario