@esfaenza/forms-and-validations 15.2.33 → 15.2.35
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/form-autocomplete/form-autocomplete.component.mjs +4 -1
- package/esm2020/lib/forms/form-date/form-date.component.mjs +7 -3
- package/fesm2015/esfaenza-forms-and-validations.mjs +9 -2
- package/fesm2015/esfaenza-forms-and-validations.mjs.map +1 -1
- package/fesm2020/esfaenza-forms-and-validations.mjs +9 -2
- package/fesm2020/esfaenza-forms-and-validations.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -3108,8 +3108,12 @@ class FormDateComponent extends BaseFormControl {
|
|
|
3108
3108
|
super.writeValue(obj);
|
|
3109
3109
|
}
|
|
3110
3110
|
changed() {
|
|
3111
|
-
|
|
3112
|
-
|
|
3111
|
+
let newlyEvaluatedModel = this.Model ? this.datesExts.getFormatted(this.Model, true, false) : '';
|
|
3112
|
+
// Evito che l'inputChange lato html mi faccia sparare fuori dai changed finti. L'input cambia solo quando cambia il modello presentato
|
|
3113
|
+
if (newlyEvaluatedModel != this.EvaluatedModel) {
|
|
3114
|
+
this.EvaluatedModel = newlyEvaluatedModel;
|
|
3115
|
+
super.changed(null, false, true);
|
|
3116
|
+
}
|
|
3113
3117
|
}
|
|
3114
3118
|
/** @ignore */
|
|
3115
3119
|
onNotNullValueSet() { }
|
|
@@ -3681,6 +3685,7 @@ class FormAutocompleteComponent extends BaseFormControl {
|
|
|
3681
3685
|
setTimeout(() => {
|
|
3682
3686
|
this.Model = val ? val.description : value;
|
|
3683
3687
|
this.EvaluatedModel = this.Model;
|
|
3688
|
+
this.cdr.markForCheck();
|
|
3684
3689
|
});
|
|
3685
3690
|
}
|
|
3686
3691
|
/**
|
|
@@ -3727,10 +3732,12 @@ class FormAutocompleteComponent extends BaseFormControl {
|
|
|
3727
3732
|
super.changed(null);
|
|
3728
3733
|
if (!event && this.MinChars == 0 && !this.SearchFunction) {
|
|
3729
3734
|
this.FilteredBoundSource = this.BoundSource;
|
|
3735
|
+
this.cdr.markForCheck();
|
|
3730
3736
|
return;
|
|
3731
3737
|
}
|
|
3732
3738
|
if (!event || event.length < this.MinChars) {
|
|
3733
3739
|
this.FilteredBoundSource = [];
|
|
3740
|
+
this.cdr.markForCheck();
|
|
3734
3741
|
return;
|
|
3735
3742
|
}
|
|
3736
3743
|
if (!this.SearchFunction && (!this.Source || this.Source.length == 0))
|