tuain-ng-forms-lib 12.0.14 → 12.0.15
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 +11 -6
- package/bundles/tuain-ng-forms-lib.umd.js.map +1 -1
- package/esm2015/lib/components/forms/basic-form.js +8 -7
- package/fesm2015/tuain-ng-forms-lib.js +7 -6
- package/fesm2015/tuain-ng-forms-lib.js.map +1 -1
- package/lib/components/forms/basic-form.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2379,7 +2379,7 @@ class BasicFormComponent {
|
|
|
2379
2379
|
this.extraData = {};
|
|
2380
2380
|
this.definitionObtained = false;
|
|
2381
2381
|
this.formVisible = false;
|
|
2382
|
-
this.
|
|
2382
|
+
this.busy = false;
|
|
2383
2383
|
this.formSectionsActivate = {};
|
|
2384
2384
|
this.formSectionsInactivate = {};
|
|
2385
2385
|
this.formActionsStart = {};
|
|
@@ -2398,6 +2398,7 @@ class BasicFormComponent {
|
|
|
2398
2398
|
this.cleanStart();
|
|
2399
2399
|
this.customPreProcessing();
|
|
2400
2400
|
}
|
|
2401
|
+
get inServerProcess() { return this.busy; }
|
|
2401
2402
|
setConfig(formConfig) {
|
|
2402
2403
|
this.formConfig = formConfig;
|
|
2403
2404
|
}
|
|
@@ -2414,7 +2415,7 @@ class BasicFormComponent {
|
|
|
2414
2415
|
this.definitionObtained = false;
|
|
2415
2416
|
// Se limpian los manejadores de eventos
|
|
2416
2417
|
this.formVisible = false;
|
|
2417
|
-
this.
|
|
2418
|
+
this.busy = false;
|
|
2418
2419
|
this.formSectionsActivate = {};
|
|
2419
2420
|
this.formSectionsInactivate = {};
|
|
2420
2421
|
this.formActionsStart = {};
|
|
@@ -2671,9 +2672,9 @@ class BasicFormComponent {
|
|
|
2671
2672
|
return;
|
|
2672
2673
|
}
|
|
2673
2674
|
if (!this.definitionObtained) {
|
|
2674
|
-
this.
|
|
2675
|
+
this.busy = true;
|
|
2675
2676
|
const formDefinition = yield this.formManagerService.getFormDefinition(this.name);
|
|
2676
|
-
this.
|
|
2677
|
+
this.busy = false;
|
|
2677
2678
|
this.formStructure = new FormStructureAndData(formDefinition, this.formConfig);
|
|
2678
2679
|
this.fields = this.formStructure.fields;
|
|
2679
2680
|
this.actions = this.formStructure.actions;
|
|
@@ -2731,9 +2732,9 @@ class BasicFormComponent {
|
|
|
2731
2732
|
this.errorCode = NO_ERROR;
|
|
2732
2733
|
this.errorMessage = '';
|
|
2733
2734
|
this.errorDetail = '';
|
|
2734
|
-
this.
|
|
2735
|
+
this.busy = true;
|
|
2735
2736
|
const formActionResponse = yield this.formManagerService.execServerAction(actionDetail);
|
|
2736
|
-
this.
|
|
2737
|
+
this.busy = false;
|
|
2737
2738
|
if (formActionResponse && formActionResponse.error.errorType) {
|
|
2738
2739
|
console.log('Excepción no soportada');
|
|
2739
2740
|
}
|