tuain-ng-forms-lib 14.5.27 → 14.5.29
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/components/forms/basic-form.mjs +11 -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/components/forms/basic-form.d.ts +4 -1
- package/package.json +1 -1
|
@@ -2638,6 +2638,9 @@ class BasicFormComponent {
|
|
|
2638
2638
|
this.errorMessage = '';
|
|
2639
2639
|
this.errorDetail = '';
|
|
2640
2640
|
this.visible = false;
|
|
2641
|
+
this.fieldsArray = null;
|
|
2642
|
+
this.actionsArray = null;
|
|
2643
|
+
this.sectionsArray = null;
|
|
2641
2644
|
this.busy = false;
|
|
2642
2645
|
this._eventEmiter = this._eventManager;
|
|
2643
2646
|
this.cleanStart();
|
|
@@ -2962,7 +2965,7 @@ class BasicFormComponent {
|
|
|
2962
2965
|
}
|
|
2963
2966
|
canGoBack() { return this._originToken !== null; }
|
|
2964
2967
|
goBack() { return this.formManagerService.backTo(); }
|
|
2965
|
-
goBackForm() { return this.goBack(); }
|
|
2968
|
+
goBackForm(forced = true) { return this.goBack(); }
|
|
2966
2969
|
getOriginDetail() { return this.formManagerService?.getFormInfo(this._originToken ?? ''); }
|
|
2967
2970
|
setError(errorType, errorMessage, errorDetail) {
|
|
2968
2971
|
this._errorType = errorType || '';
|
|
@@ -3066,6 +3069,12 @@ class BasicFormComponent {
|
|
|
3066
3069
|
this.fields = this._formStructure?.fields;
|
|
3067
3070
|
this.actions = this._formStructure?.actions;
|
|
3068
3071
|
this.sections = this._formStructure?.sections;
|
|
3072
|
+
this.fieldsArray = Object.keys(this.fields)
|
|
3073
|
+
.reduce((accumulator, value) => accumulator.concat(this.fields[value]), []);
|
|
3074
|
+
this.actionsArray = Object.keys(this.actions)
|
|
3075
|
+
.reduce((accumulator, value) => accumulator.concat(this.actions[value]), []);
|
|
3076
|
+
this.sectionsArray = Object.keys(this.sections)
|
|
3077
|
+
.reduce((accumulator, value) => accumulator.concat(this.sections[value]), []);
|
|
3069
3078
|
this._definitionObtained = true;
|
|
3070
3079
|
}
|
|
3071
3080
|
else {
|