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
|
@@ -3293,7 +3293,7 @@
|
|
|
3293
3293
|
this.extraData = {};
|
|
3294
3294
|
this.definitionObtained = false;
|
|
3295
3295
|
this.formVisible = false;
|
|
3296
|
-
this.
|
|
3296
|
+
this.busy = false;
|
|
3297
3297
|
this.formSectionsActivate = {};
|
|
3298
3298
|
this.formSectionsInactivate = {};
|
|
3299
3299
|
this.formActionsStart = {};
|
|
@@ -3312,6 +3312,11 @@
|
|
|
3312
3312
|
this.cleanStart();
|
|
3313
3313
|
this.customPreProcessing();
|
|
3314
3314
|
}
|
|
3315
|
+
Object.defineProperty(BasicFormComponent.prototype, "inServerProcess", {
|
|
3316
|
+
get: function () { return this.busy; },
|
|
3317
|
+
enumerable: false,
|
|
3318
|
+
configurable: true
|
|
3319
|
+
});
|
|
3315
3320
|
BasicFormComponent.prototype.setConfig = function (formConfig) {
|
|
3316
3321
|
this.formConfig = formConfig;
|
|
3317
3322
|
};
|
|
@@ -3328,7 +3333,7 @@
|
|
|
3328
3333
|
this.definitionObtained = false;
|
|
3329
3334
|
// Se limpian los manejadores de eventos
|
|
3330
3335
|
this.formVisible = false;
|
|
3331
|
-
this.
|
|
3336
|
+
this.busy = false;
|
|
3332
3337
|
this.formSectionsActivate = {};
|
|
3333
3338
|
this.formSectionsInactivate = {};
|
|
3334
3339
|
this.formActionsStart = {};
|
|
@@ -3635,11 +3640,11 @@
|
|
|
3635
3640
|
return [2 /*return*/];
|
|
3636
3641
|
}
|
|
3637
3642
|
if (!!this.definitionObtained) return [3 /*break*/, 2];
|
|
3638
|
-
this.
|
|
3643
|
+
this.busy = true;
|
|
3639
3644
|
return [4 /*yield*/, this.formManagerService.getFormDefinition(this.name)];
|
|
3640
3645
|
case 1:
|
|
3641
3646
|
formDefinition = _j.sent();
|
|
3642
|
-
this.
|
|
3647
|
+
this.busy = false;
|
|
3643
3648
|
this.formStructure = new FormStructureAndData(formDefinition, this.formConfig);
|
|
3644
3649
|
this.fields = this.formStructure.fields;
|
|
3645
3650
|
this.actions = this.formStructure.actions;
|
|
@@ -3708,11 +3713,11 @@
|
|
|
3708
3713
|
this.errorCode = NO_ERROR;
|
|
3709
3714
|
this.errorMessage = '';
|
|
3710
3715
|
this.errorDetail = '';
|
|
3711
|
-
this.
|
|
3716
|
+
this.busy = true;
|
|
3712
3717
|
return [4 /*yield*/, this.formManagerService.execServerAction(actionDetail)];
|
|
3713
3718
|
case 1:
|
|
3714
3719
|
formActionResponse = _j.sent();
|
|
3715
|
-
this.
|
|
3720
|
+
this.busy = false;
|
|
3716
3721
|
if (formActionResponse && formActionResponse.error.errorType) {
|
|
3717
3722
|
console.log('Excepción no soportada');
|
|
3718
3723
|
}
|