tuain-ng-forms-lib 12.0.10 → 12.0.11

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.
@@ -1868,6 +1868,7 @@ class FormStructureAndData {
1868
1868
  ? this._sectionsObj[sectionCode] : null;
1869
1869
  return (section) ? section.getSubsection(subsectionCode) : null;
1870
1870
  }
1871
+ get actions() { return this.getActions(); }
1871
1872
  getSection(sectionCode) {
1872
1873
  return (this._sectionsObj && this._sectionsObj[sectionCode])
1873
1874
  ? this._sectionsObj[sectionCode] : null;
@@ -1999,6 +2000,7 @@ class FormStructureAndData {
1999
2000
  const actionNames = (Array.isArray(actionArray)) ? actionArray : [actionArray];
2000
2001
  actionNames.forEach(actionCode => this.disableAction(actionCode));
2001
2002
  }
2003
+ get fields() { return this.getFields(); }
2002
2004
  enableField(fieldCode) {
2003
2005
  const fieldObject = this.getFieldObject(fieldCode);
2004
2006
  return (fieldObject) ? fieldObject.enable() : null;
@@ -2379,6 +2381,8 @@ class BasicFormComponent {
2379
2381
  this.errorMessage = '';
2380
2382
  this.errorDetail = '';
2381
2383
  this.formStructure = null;
2384
+ this.fields = null;
2385
+ this.actions = null;
2382
2386
  this.controlToken = null;
2383
2387
  this.inputDataFields = {};
2384
2388
  this.definitionObtained = false;
@@ -2644,6 +2648,8 @@ class BasicFormComponent {
2644
2648
  const formDefinition = yield this.formManagerService.getFormDefinition(this.name);
2645
2649
  this.inServerProcess = false;
2646
2650
  this.formStructure = new FormStructureAndData(formDefinition, this.formConfig);
2651
+ this.fields = this.formStructure.fields;
2652
+ this.actions = this.formStructure.actions;
2647
2653
  this.definitionObtained = true;
2648
2654
  }
2649
2655
  else {