tuain-ng-forms-lib 15.0.18 → 15.0.20
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/classes/forms/table/table.mjs +1 -1
- package/esm2020/lib/components/forms/basic-form.mjs +9 -1
- package/esm2020/lib/services/event-manager.service.mjs +2 -2
- package/fesm2015/tuain-ng-forms-lib.mjs +9 -1
- package/fesm2015/tuain-ng-forms-lib.mjs.map +1 -1
- package/fesm2020/tuain-ng-forms-lib.mjs +9 -1
- package/fesm2020/tuain-ng-forms-lib.mjs.map +1 -1
- package/lib/classes/forms/table/table.d.ts +1 -1
- package/lib/services/event-manager.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -2696,7 +2696,7 @@ class LibEventManagerService {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
getEventNames() { return Object.keys(this.eventSubjects); }
|
|
2698
2698
|
getSubject(eventClassName) { return eventClassName ? this.eventSubjects[eventClassName] : null; }
|
|
2699
|
-
subscribe(eventClassName, callback) { this.getSubject(eventClassName).subscribe(callback); }
|
|
2699
|
+
subscribe(eventClassName, callback) { return this.getSubject(eventClassName).subscribe(callback); }
|
|
2700
2700
|
next(eventClassName, data) { this.getSubject(eventClassName).next(data); }
|
|
2701
2701
|
}
|
|
2702
2702
|
|
|
@@ -3289,12 +3289,20 @@ class BasicFormComponent extends FormStructureAndData {
|
|
|
3289
3289
|
const clientValidationPromise = callback(fieldToValidate);
|
|
3290
3290
|
clientValidationPromises.push(clientValidationPromise);
|
|
3291
3291
|
}
|
|
3292
|
+
console.log('clientValidationPromises');
|
|
3293
|
+
console.log(clientValidationPromises);
|
|
3292
3294
|
const clientValidationResults = await Promise.all(clientValidationPromises);
|
|
3295
|
+
console.log('clientValidationResults');
|
|
3296
|
+
console.log(clientValidationResults);
|
|
3293
3297
|
const continueValidation = clientValidationResults.reduce((total, curr) => (total && (curr !== false)), true);
|
|
3298
|
+
console.log('continueValidation');
|
|
3299
|
+
console.log(continueValidation);
|
|
3294
3300
|
if (!continueValidation) {
|
|
3295
3301
|
return;
|
|
3296
3302
|
}
|
|
3297
3303
|
}
|
|
3304
|
+
console.log('intrinsicValidation');
|
|
3305
|
+
console.log(intrinsicValidation);
|
|
3298
3306
|
if (intrinsicValidation) {
|
|
3299
3307
|
this.startServerFieldValidation(fieldToValidate);
|
|
3300
3308
|
}
|