@esfaenza/forms-and-validations 11.2.130 → 11.2.132
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/bundles/esfaenza-forms-and-validations.umd.js +3 -9
- package/bundles/esfaenza-forms-and-validations.umd.js.map +1 -1
- package/esfaenza-forms-and-validations.metadata.json +1 -1
- package/esm2015/lib/forms/base-form-control.js +2 -10
- package/esm2015/lib/forms/form-adaptive/form-adaptive.component.js +3 -1
- package/fesm2015/esfaenza-forms-and-validations.js +3 -9
- package/fesm2015/esfaenza-forms-and-validations.js.map +1 -1
- package/lib/forms/base-form-control.d.ts +0 -6
- package/package.json +1 -1
|
@@ -1956,12 +1956,6 @@
|
|
|
1956
1956
|
this.Required = false;
|
|
1957
1957
|
/** Indica se il Form che contiene questo campo è già stato registrato */
|
|
1958
1958
|
this.formHasBennBound = false;
|
|
1959
|
-
/**
|
|
1960
|
-
* Indica se questo campo è staccato dal Form, ad esempio nel caso sia in un ng-template proiettato nel form.
|
|
1961
|
-
*
|
|
1962
|
-
* In quel caso la variabile **Form** del componente dev'essere valorizzata
|
|
1963
|
-
*/
|
|
1964
|
-
this.detatchedFromform = false;
|
|
1965
1959
|
/** @ignore */
|
|
1966
1960
|
this.propagateChange = function (_) { };
|
|
1967
1961
|
/** @ignore */
|
|
@@ -2059,8 +2053,6 @@
|
|
|
2059
2053
|
//.. il quale a sua volta contiene il controllo <form-*> quindi avrò il form nell'input "Form"
|
|
2060
2054
|
if (ngControl._parent)
|
|
2061
2055
|
this.Form = ngControl._parent;
|
|
2062
|
-
else
|
|
2063
|
-
this.detatchedFromform = true;
|
|
2064
2056
|
//Questa serve per impostare me stesso come si deve, il validatore invece lo passo al validation-input quando viene settato il validationControl
|
|
2065
2057
|
if (this.ngControl) {
|
|
2066
2058
|
//Per tutti i validatori: rigenero la funzione di validazione. Per qualche motivo a volte ho validatori senza...
|
|
@@ -2315,7 +2307,7 @@
|
|
|
2315
2307
|
if (this.UseUserValidators)
|
|
2316
2308
|
this.validationControl.control.setValidators(this._validators);
|
|
2317
2309
|
//Se sono staccato dal Form (vuol dire che sono ad esempio dentro un ng-template) aggiungo il controllo al Form passato come input (context del template)
|
|
2318
|
-
if (this.
|
|
2310
|
+
if (this.Form && !this.formHasBennBound) {
|
|
2319
2311
|
this.Form.addControl(this.validationControl);
|
|
2320
2312
|
this.formHasBennBound = true;
|
|
2321
2313
|
}
|
|
@@ -2696,9 +2688,11 @@
|
|
|
2696
2688
|
}
|
|
2697
2689
|
break;
|
|
2698
2690
|
}
|
|
2691
|
+
this.ngControl._setValidators(validators);
|
|
2699
2692
|
this.ngControl.control.setValidators(validators);
|
|
2700
2693
|
this.ngControl.control.updateValueAndValidity();
|
|
2701
2694
|
}
|
|
2695
|
+
_super.prototype.ngOnInit.call(this);
|
|
2702
2696
|
};
|
|
2703
2697
|
/** @ignore */
|
|
2704
2698
|
FormAdaptiveComponent.prototype.ngOnChanges = function (changes) {
|