@dsivd/prestations-ng 18.3.4 → 18.3.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.
package/CHANGELOG.md CHANGED
@@ -6,6 +6,13 @@
6
6
 
7
7
  ---
8
8
 
9
+ ## [18.3.5]
10
+
11
+ ### Fixed
12
+
13
+ - [redirect.component.ts](projects/prestations-ng/src/sdk-redirect/redirect.component.ts)
14
+ - do not display native browser alert message when being redirected to login
15
+
9
16
  ## [18.3.4]
10
17
 
11
18
  ### Fixed
Binary file
@@ -14258,10 +14258,11 @@ const HTTP_LOADER_FILTERED_URL = [
14258
14258
  ];
14259
14259
 
14260
14260
  class RedirectComponent {
14261
- constructor(iamInterceptor, foehnPageModalService, sessionInfo) {
14261
+ constructor(iamInterceptor, foehnPageModalService, sessionInfo, registerNgModelService) {
14262
14262
  this.iamInterceptor = iamInterceptor;
14263
14263
  this.foehnPageModalService = foehnPageModalService;
14264
14264
  this.sessionInfo = sessionInfo;
14265
+ this.registerNgModelService = registerNgModelService;
14265
14266
  this.redirectUrl = '';
14266
14267
  this.sessionInfo.data
14267
14268
  .pipe(first(), switchMap$1(data => {
@@ -14287,6 +14288,7 @@ class RedirectComponent {
14287
14288
  }
14288
14289
  reloadPage() {
14289
14290
  this.cancelSetInterval();
14291
+ this.registerNgModelService.setHasInteractions(false);
14290
14292
  if (!this.redirectUrl?.length) {
14291
14293
  window.location.reload();
14292
14294
  return;
@@ -14309,13 +14311,13 @@ class RedirectComponent {
14309
14311
  clearInterval(this.intervalId);
14310
14312
  }
14311
14313
  }
14312
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: RedirectComponent, deps: [{ token: IamExpiredInterceptorService }, { token: FoehnPageModalService }, { token: SessionInfo }], target: i0.ɵɵFactoryTarget.Component }); }
14314
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: RedirectComponent, deps: [{ token: IamExpiredInterceptorService }, { token: FoehnPageModalService }, { token: SessionInfo }, { token: RegisterNgModelService }], target: i0.ɵɵFactoryTarget.Component }); }
14313
14315
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: RedirectComponent, isStandalone: false, selector: "redirector", ngImport: i0, template: "<foehn-modal\n [modalHeaderText]=\"'Information'\"\n [isModalVisible]=\"isModalVisible | async\"\n [closeable]=\"false\"\n>\n <p>Votre session a expir\u00E9.</p>\n <p>\n Vous pouvez\n <a href=\"#\" (click)=\"$event.preventDefault(); reloadPage()\">\n vous connecter\n </a>\n \u00E0 nouveau pour continuer \u00E0 utiliser nos services.\n </p>\n\n <div modal-footer class=\"w-100 text-end fw-bold\">\n Vous allez \u00EAtre redirig\u00E9 dans {{ counter }} s.\n </div>\n</foehn-modal>\n", dependencies: [{ kind: "component", type: FoehnModalComponent, selector: "foehn-modal", inputs: ["id", "name", "modalSize", "modalBodyText", "modalHeaderText", "closeable", "draggable", "hideable", "modalTriggerHtmlElement", "isModalVisible"], outputs: ["isModalVisibleChange"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] }); }
14314
14316
  }
14315
14317
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: RedirectComponent, decorators: [{
14316
14318
  type: Component,
14317
14319
  args: [{ selector: 'redirector', standalone: false, template: "<foehn-modal\n [modalHeaderText]=\"'Information'\"\n [isModalVisible]=\"isModalVisible | async\"\n [closeable]=\"false\"\n>\n <p>Votre session a expir\u00E9.</p>\n <p>\n Vous pouvez\n <a href=\"#\" (click)=\"$event.preventDefault(); reloadPage()\">\n vous connecter\n </a>\n \u00E0 nouveau pour continuer \u00E0 utiliser nos services.\n </p>\n\n <div modal-footer class=\"w-100 text-end fw-bold\">\n Vous allez \u00EAtre redirig\u00E9 dans {{ counter }} s.\n </div>\n</foehn-modal>\n" }]
14318
- }], ctorParameters: () => [{ type: IamExpiredInterceptorService }, { type: FoehnPageModalService }, { type: SessionInfo }] });
14320
+ }], ctorParameters: () => [{ type: IamExpiredInterceptorService }, { type: FoehnPageModalService }, { type: SessionInfo }, { type: RegisterNgModelService }] });
14319
14321
 
14320
14322
  class SdkRedirectModule {
14321
14323
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdkRedirectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }