tuain-ng-forms-lib 15.0.21 → 15.0.22
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.
|
@@ -3357,9 +3357,6 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
3357
3357
|
}
|
|
3358
3358
|
startFieldValidation(code, intrinsicValidation = true) {
|
|
3359
3359
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3360
|
-
console.log('startFieldValidation');
|
|
3361
|
-
console.log(code);
|
|
3362
|
-
console.log(intrinsicValidation);
|
|
3363
3360
|
this.notifyFormActivity();
|
|
3364
3361
|
const fieldToValidate = this.getField(code);
|
|
3365
3362
|
if (!fieldToValidate) {
|
|
@@ -3371,24 +3368,14 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
3371
3368
|
for (const validationMethod of validationCallbacks) {
|
|
3372
3369
|
const { callback, properties } = validationMethod;
|
|
3373
3370
|
const clientValidationPromise = callback(fieldToValidate);
|
|
3374
|
-
console.log('validationMethod');
|
|
3375
|
-
console.log({ callback, properties });
|
|
3376
3371
|
clientValidationPromises.push(clientValidationPromise);
|
|
3377
3372
|
}
|
|
3378
|
-
console.log('clientValidationPromises');
|
|
3379
|
-
console.log(clientValidationPromises);
|
|
3380
3373
|
const clientValidationResults = yield Promise.all(clientValidationPromises);
|
|
3381
|
-
console.log('clientValidationResults');
|
|
3382
|
-
console.log(clientValidationResults);
|
|
3383
3374
|
const continueValidation = clientValidationResults.reduce((total, curr) => (total && (curr !== false)), true);
|
|
3384
|
-
console.log('continueValidation');
|
|
3385
|
-
console.log(continueValidation);
|
|
3386
3375
|
if (!continueValidation) {
|
|
3387
3376
|
return;
|
|
3388
3377
|
}
|
|
3389
3378
|
}
|
|
3390
|
-
console.log('intrinsicValidation');
|
|
3391
|
-
console.log(intrinsicValidation);
|
|
3392
3379
|
if (intrinsicValidation) {
|
|
3393
3380
|
this.startServerFieldValidation(fieldToValidate);
|
|
3394
3381
|
}
|