@esfaenza/forms-and-validations 15.2.10 → 15.2.12
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/forms/base-form-control.mjs +3 -2
- package/esm2020/lib/forms/form-adaptive/form-adaptive.component.mjs +3 -2
- package/fesm2015/esfaenza-forms-and-validations.mjs +4 -2
- package/fesm2015/esfaenza-forms-and-validations.mjs.map +1 -1
- package/fesm2020/esfaenza-forms-and-validations.mjs +4 -2
- package/fesm2020/esfaenza-forms-and-validations.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1902,7 +1902,8 @@ class BaseFormControl {
|
|
|
1902
1902
|
v._createValidator();
|
|
1903
1903
|
});
|
|
1904
1904
|
}
|
|
1905
|
-
|
|
1905
|
+
if (this._validators)
|
|
1906
|
+
this.ngControl.control.addValidators(this._validators.filter(v => !v.ngOnInit));
|
|
1906
1907
|
this.ngControl.control.updateValueAndValidity();
|
|
1907
1908
|
}
|
|
1908
1909
|
}
|
|
@@ -2561,7 +2562,8 @@ class FormAdaptiveComponent extends BaseFormControl {
|
|
|
2561
2562
|
this.Pattern = this.nvl(this.Options?.Pattern, this.Pattern);
|
|
2562
2563
|
}
|
|
2563
2564
|
if (this.ngControl) {
|
|
2564
|
-
|
|
2565
|
+
// Esclusi i validatori a componenti
|
|
2566
|
+
let validators = [...(this._validators || [])].filter(v => !v.ngOnInit);
|
|
2565
2567
|
var pv = new PatternValidator();
|
|
2566
2568
|
switch (this.Type) {
|
|
2567
2569
|
case 'int':
|