@esfaenza/forms-and-validations 15.2.17 → 15.2.19
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 +2 -2
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/esfaenza-forms-and-validations.mjs +9 -9
- package/fesm2015/esfaenza-forms-and-validations.mjs.map +1 -1
- package/fesm2020/esfaenza-forms-and-validations.mjs +9 -9
- package/fesm2020/esfaenza-forms-and-validations.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -49,6 +49,13 @@ class AppFile {
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
class ChangeEvent {
|
|
53
|
+
constructor(internal, value) {
|
|
54
|
+
this.internal = internal;
|
|
55
|
+
this.value = value;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
52
59
|
/**
|
|
53
60
|
* Classe di configurazione del modulo
|
|
54
61
|
*/
|
|
@@ -1709,13 +1716,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1709
1716
|
args: [MatLegacyAutocompleteTrigger]
|
|
1710
1717
|
}] } });
|
|
1711
1718
|
|
|
1712
|
-
class ChangeEvent {
|
|
1713
|
-
constructor(internal, value) {
|
|
1714
|
-
this.internal = internal;
|
|
1715
|
-
this.value = value;
|
|
1716
|
-
}
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
1719
|
/** Componente base da cui tutti i componenti Form implementano */
|
|
1720
1720
|
class BaseFormControl {
|
|
1721
1721
|
/**
|
|
@@ -2037,7 +2037,7 @@ class BaseFormControl {
|
|
|
2037
2037
|
checkRequiredValidator() {
|
|
2038
2038
|
// controllo se è settato un required per decidere in maniera condizionale se utilizzare il validatore required nel componente interno
|
|
2039
2039
|
// Lo faccio qui e non in un eventuale ngOnInit o costruttore perché ngOnInit non sempre viene chiamato e da costruttore il validatore non ha ancora il valore giusto
|
|
2040
|
-
if (this._validators && this._validators.some(elem => elem.inputName == "required" && elem.
|
|
2040
|
+
if (this._validators && this._validators.some(elem => elem.inputName == "required" && (elem.required === true || elem.required === null || elem.required === undefined)))
|
|
2041
2041
|
this.Required = true;
|
|
2042
2042
|
}
|
|
2043
2043
|
/** @ignore */
|
|
@@ -4114,5 +4114,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
4114
4114
|
* Generated bundle index. Do not edit.
|
|
4115
4115
|
*/
|
|
4116
4116
|
|
|
4117
|
-
export { ACO_CUSTOMKEY, AppFile, BaseFormControl, CustomRequiredDirective, FAV_DEBUG_MODE, FAV_SLIDER_MODE, FormAdaptiveComponent, FormAutocompleteComponent, FormCheckboxComponent, FormDateComponent, FormDateTimeComponent, FormEmptyComponent, FormErrorComponent, FormFileComponent, FormInfoComponent, FormInputComponent, FormMultiSelectComponent, FormSelectComponent, FormTemplateComponent, FormTextareaComponent, FormTimeComponent, FormsAndValidationsModule, FormsAndValidationsModuleConfig, NgxExpandedDayJsDateAdapter, ValidationAutocompleteComponent, ValidationAutocompleteMultiComponent, ValidationCurrencyComponent, ValidationDateComponent, ValidationDateTimeComponent, ValidationInputComponent, ValidationSelectComponent, ValidationTextAreaComponent };
|
|
4117
|
+
export { ACO_CUSTOMKEY, AppFile, BaseFormControl, ChangeEvent, CustomRequiredDirective, FAV_DEBUG_MODE, FAV_SLIDER_MODE, FormAdaptiveComponent, FormAutocompleteComponent, FormCheckboxComponent, FormDateComponent, FormDateTimeComponent, FormEmptyComponent, FormErrorComponent, FormFileComponent, FormInfoComponent, FormInputComponent, FormMultiSelectComponent, FormSelectComponent, FormTemplateComponent, FormTextareaComponent, FormTimeComponent, FormsAndValidationsModule, FormsAndValidationsModuleConfig, NgxExpandedDayJsDateAdapter, ValidationAutocompleteComponent, ValidationAutocompleteMultiComponent, ValidationCurrencyComponent, ValidationDateComponent, ValidationDateTimeComponent, ValidationInputComponent, ValidationSelectComponent, ValidationTextAreaComponent };
|
|
4118
4118
|
//# sourceMappingURL=esfaenza-forms-and-validations.mjs.map
|