@dsivd/prestations-ng 19.0.2-beta.3 → 19.0.2-beta.5

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.
@@ -5,8 +5,9 @@ Back offices that are behind IAM ACV should migrate to OIDC, IAM headers are now
5
5
  ## ADMIN
6
6
 
7
7
  - You have to request a new VIP for your application (<env>-<deployunit>.etat-de-vaud.ch)
8
- - i.e. for eldoradobo (R260219_00034) : https://int-eldoradobo.etat-de-vaud.ch/
8
+ - i.e. for sesamebo (R260429_00018) : https://int-sesame.etat-de-vaud.ch/
9
9
  - On IAM side, you have to request a client id / secret on every environment to be used in your configuration
10
+ - i.e. for sesamebo (S260429_00110)
10
11
 
11
12
  ## FRONTEND
12
13
 
@@ -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
@@ -1667,8 +1667,6 @@ class ComponentError {
1667
1667
 
1668
1668
  class FoehnFormComponent {
1669
1669
  constructor() {
1670
- // Class of this input is manually instantiated. This is discouraged and prevents
1671
- // migration.
1672
1670
  this.shouldDisplayAlertSummary = input(true, ...(ngDevMode ? [{ debugName: "shouldDisplayAlertSummary" }] : /* istanbul ignore next */ []));
1673
1671
  this.ngFormComponent = viewChild(NgForm, ...(ngDevMode ? [{ debugName: "ngFormComponent" }] : /* istanbul ignore next */ []));
1674
1672
  this.childrenInputComponents = contentChildren(FoehnInputComponent, { ...(ngDevMode ? { debugName: "childrenInputComponents" } : /* istanbul ignore next */ {}), descendants: true });
@@ -8641,7 +8639,7 @@ class FoehnInputAddressComponent extends FoehnInputComponent {
8641
8639
  if (value) {
8642
8640
  // Need to manually load localities because country "modelChange" event does not fire anymore because a signal
8643
8641
  // only fires when value has changed
8644
- if (!this.isOnlySwiss() && this.country?.iso2Id === SWISS_ISO_ID) {
8642
+ if (!this.isOnlySwiss() && value.country?.iso2Id === SWISS_ISO_ID) {
8645
8643
  this.iso2IdSubject.next(SWISS_ISO_ID);
8646
8644
  }
8647
8645
  this.country = value.country;
@@ -9156,7 +9154,7 @@ class FoehnMultiselectAutocompleteComponent extends FoehnAutocompleteComponent {
9156
9154
  hasErrorsToDisplay() {
9157
9155
  const autocompleteComponent = this.autocompleteComponent();
9158
9156
  return !!autocompleteComponent
9159
- ? autocompleteComponent.hasErrorsToDisplay()
9157
+ ? !!autocompleteComponent.hasErrorsToDisplay()
9160
9158
  : false;
9161
9159
  }
9162
9160
  getLabel(value) {