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
|
@@ -2692,6 +2692,9 @@ class BasicFormComponent {
|
|
|
2692
2692
|
this.errorMessage = '';
|
|
2693
2693
|
this.errorDetail = '';
|
|
2694
2694
|
this.visible = false;
|
|
2695
|
+
this.fieldsArray = null;
|
|
2696
|
+
this.actionsArray = null;
|
|
2697
|
+
this.sectionsArray = null;
|
|
2695
2698
|
this.busy = false;
|
|
2696
2699
|
this._eventEmiter = this._eventManager;
|
|
2697
2700
|
this.cleanStart();
|
|
@@ -3070,7 +3073,7 @@ class BasicFormComponent {
|
|
|
3070
3073
|
}
|
|
3071
3074
|
canGoBack() { return this._originToken !== null; }
|
|
3072
3075
|
goBack() { return this.formManagerService.backTo(); }
|
|
3073
|
-
goBackForm() { return this.goBack(); }
|
|
3076
|
+
goBackForm(forced = true) { return this.goBack(); }
|
|
3074
3077
|
getOriginDetail() { var _a, _b; return (_a = this.formManagerService) === null || _a === void 0 ? void 0 : _a.getFormInfo((_b = this._originToken) !== null && _b !== void 0 ? _b : ''); }
|
|
3075
3078
|
setError(errorType, errorMessage, errorDetail) {
|
|
3076
3079
|
this._errorType = errorType || '';
|
|
@@ -3185,6 +3188,12 @@ class BasicFormComponent {
|
|
|
3185
3188
|
this.fields = (_a = this._formStructure) === null || _a === void 0 ? void 0 : _a.fields;
|
|
3186
3189
|
this.actions = (_b = this._formStructure) === null || _b === void 0 ? void 0 : _b.actions;
|
|
3187
3190
|
this.sections = (_c = this._formStructure) === null || _c === void 0 ? void 0 : _c.sections;
|
|
3191
|
+
this.fieldsArray = Object.keys(this.fields)
|
|
3192
|
+
.reduce((accumulator, value) => accumulator.concat(this.fields[value]), []);
|
|
3193
|
+
this.actionsArray = Object.keys(this.actions)
|
|
3194
|
+
.reduce((accumulator, value) => accumulator.concat(this.actions[value]), []);
|
|
3195
|
+
this.sectionsArray = Object.keys(this.sections)
|
|
3196
|
+
.reduce((accumulator, value) => accumulator.concat(this.sections[value]), []);
|
|
3188
3197
|
this._definitionObtained = true;
|
|
3189
3198
|
}
|
|
3190
3199
|
else {
|