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.
|
@@ -3276,9 +3276,6 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
3276
3276
|
return true;
|
|
3277
3277
|
}
|
|
3278
3278
|
async startFieldValidation(code, intrinsicValidation = true) {
|
|
3279
|
-
console.log('startFieldValidation');
|
|
3280
|
-
console.log(code);
|
|
3281
|
-
console.log(intrinsicValidation);
|
|
3282
3279
|
this.notifyFormActivity();
|
|
3283
3280
|
const fieldToValidate = this.getField(code);
|
|
3284
3281
|
if (!fieldToValidate) {
|
|
@@ -3290,24 +3287,14 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
3290
3287
|
for (const validationMethod of validationCallbacks) {
|
|
3291
3288
|
const { callback, properties } = validationMethod;
|
|
3292
3289
|
const clientValidationPromise = callback(fieldToValidate);
|
|
3293
|
-
console.log('validationMethod');
|
|
3294
|
-
console.log({ callback, properties });
|
|
3295
3290
|
clientValidationPromises.push(clientValidationPromise);
|
|
3296
3291
|
}
|
|
3297
|
-
console.log('clientValidationPromises');
|
|
3298
|
-
console.log(clientValidationPromises);
|
|
3299
3292
|
const clientValidationResults = await Promise.all(clientValidationPromises);
|
|
3300
|
-
console.log('clientValidationResults');
|
|
3301
|
-
console.log(clientValidationResults);
|
|
3302
3293
|
const continueValidation = clientValidationResults.reduce((total, curr) => (total && (curr !== false)), true);
|
|
3303
|
-
console.log('continueValidation');
|
|
3304
|
-
console.log(continueValidation);
|
|
3305
3294
|
if (!continueValidation) {
|
|
3306
3295
|
return;
|
|
3307
3296
|
}
|
|
3308
3297
|
}
|
|
3309
|
-
console.log('intrinsicValidation');
|
|
3310
|
-
console.log(intrinsicValidation);
|
|
3311
3298
|
if (intrinsicValidation) {
|
|
3312
3299
|
this.startServerFieldValidation(fieldToValidate);
|
|
3313
3300
|
}
|