@trudb/tru-common-lib 0.0.338 → 0.0.339
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/directives/breeze-validator/tru-breeze-validator.mjs +8 -6
- package/fesm2015/trudb-tru-common-lib.mjs +7 -5
- package/fesm2015/trudb-tru-common-lib.mjs.map +1 -1
- package/fesm2020/trudb-tru-common-lib.mjs +7 -5
- package/fesm2020/trudb-tru-common-lib.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -4952,8 +4952,13 @@ class TruBreezeValidator {
|
|
|
4952
4952
|
this.valErrsChanged = (validationObject) => {
|
|
4953
4953
|
let validationTableName = validationObject.entity.constructor.name;
|
|
4954
4954
|
if (this.config.rootTable === validationTableName) {
|
|
4955
|
-
|
|
4956
|
-
let
|
|
4955
|
+
this.mergeData = this.getMergeData();
|
|
4956
|
+
let addedPropertyValdations = validationObject.added.filter((v) => {
|
|
4957
|
+
return v.propertyName === this.config.propertyName;
|
|
4958
|
+
});
|
|
4959
|
+
let removedPropertyValdations = validationObject.removed.filter((v) => {
|
|
4960
|
+
return v.propertyName === this.config.propertyName;
|
|
4961
|
+
});
|
|
4957
4962
|
if (addedPropertyValdations.length) {
|
|
4958
4963
|
this.addValidation(addedPropertyValdations);
|
|
4959
4964
|
}
|
|
@@ -4961,9 +4966,6 @@ class TruBreezeValidator {
|
|
|
4961
4966
|
this.removeValidation();
|
|
4962
4967
|
}
|
|
4963
4968
|
}
|
|
4964
|
-
if (this.config.rootTable === validationTableName) {
|
|
4965
|
-
this.mergeData = this.getMergeData();
|
|
4966
|
-
}
|
|
4967
4969
|
};
|
|
4968
4970
|
}
|
|
4969
4971
|
ngOnInit() {
|