@dsivd/prestations-ng 19.0.2-beta.3 → 19.0.2-beta.4
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.
|
Binary file
|
|
@@ -793,6 +793,11 @@ class FoehnInputComponent {
|
|
|
793
793
|
this.modelEffect = effect(() => {
|
|
794
794
|
this.onModelChange(this.model());
|
|
795
795
|
}, ...(ngDevMode ? [{ debugName: "modelEffect" }] : /* istanbul ignore next */ []));
|
|
796
|
+
}
|
|
797
|
+
get errors() {
|
|
798
|
+
return this._errors?.sort((a, b) => ObjectHelper.stripHtml(a.message).localeCompare(ObjectHelper.stripHtml(b.message)));
|
|
799
|
+
}
|
|
800
|
+
ngOnInit() {
|
|
796
801
|
combineLatest([
|
|
797
802
|
this.validationHandlerService.validationErrorsSubject,
|
|
798
803
|
this.validationHandlerService.validationDisplaySubject,
|
|
@@ -801,11 +806,6 @@ class FoehnInputComponent {
|
|
|
801
806
|
.subscribe((values) => {
|
|
802
807
|
this.refreshErrors(values);
|
|
803
808
|
});
|
|
804
|
-
}
|
|
805
|
-
get errors() {
|
|
806
|
-
return this._errors?.sort((a, b) => ObjectHelper.stripHtml(a.message).localeCompare(ObjectHelper.stripHtml(b.message)));
|
|
807
|
-
}
|
|
808
|
-
ngOnInit() {
|
|
809
809
|
this.userInputSubject
|
|
810
810
|
.pipe(
|
|
811
811
|
// This is used to ensure that we only catch the latest of multiple
|
|
@@ -9156,7 +9156,7 @@ class FoehnMultiselectAutocompleteComponent extends FoehnAutocompleteComponent {
|
|
|
9156
9156
|
hasErrorsToDisplay() {
|
|
9157
9157
|
const autocompleteComponent = this.autocompleteComponent();
|
|
9158
9158
|
return !!autocompleteComponent
|
|
9159
|
-
? autocompleteComponent.hasErrorsToDisplay()
|
|
9159
|
+
? !!autocompleteComponent.hasErrorsToDisplay()
|
|
9160
9160
|
: false;
|
|
9161
9161
|
}
|
|
9162
9162
|
getLabel(value) {
|