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.
- package/bundles/tuain-ng-forms-lib.umd.js +14 -0
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/classes/forms/form.js +3 -1
- package/esm2015/lib/components/forms/basic-form.js +5 -1
- package/fesm2015/tuain-ng-forms-lib.js +6 -0
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/classes/forms/form.d.ts +2 -0
- package/lib/components/forms/basic-form.d.ts +2 -0
- package/package.json +1 -1
|
@@ -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 {
|