@dsivd/prestations-ng 15.2.3-beta3 → 15.2.3-beta4
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 +1 -2
- package/dsivd-prestations-ng-v15.2.3-beta4.tgz +0 -0
- package/esm2020/sdk-redirect/redirect.component.mjs +11 -24
- package/fesm2015/dsivd-prestations-ng.mjs +7 -19
- package/fesm2015/dsivd-prestations-ng.mjs.map +1 -1
- package/fesm2020/dsivd-prestations-ng.mjs +7 -19
- package/fesm2020/dsivd-prestations-ng.mjs.map +1 -1
- package/package.json +1 -1
- package/sdk-redirect/redirect.component.d.ts +4 -11
- package/dsivd-prestations-ng-v15.2.3-beta3.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -37,8 +37,7 @@ A change is considered **breaking** if you have to change your code or update yo
|
|
|
37
37
|
### Fixed
|
|
38
38
|
|
|
39
39
|
- [redirect.component.ts](projects/prestations-ng/src/sdk-redirect/redirect.component.ts)
|
|
40
|
-
-
|
|
41
|
-
- if used in a BO, you should set the property `application-info.portail.cyberLoginUrl=/iam/accueil`
|
|
40
|
+
- reload page instead of redirecting to `/iam/accueil` when session has expired
|
|
42
41
|
|
|
43
42
|
### Removed
|
|
44
43
|
|
|
Binary file
|
|
@@ -1,47 +1,34 @@
|
|
|
1
1
|
import { Component } from '@angular/core';
|
|
2
|
-
import { first
|
|
2
|
+
import { first } from 'rxjs/operators';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "./iam-expired-interceptor.service";
|
|
5
|
-
import * as i2 from "../foehn-
|
|
6
|
-
import * as i3 from "../foehn-modal/foehn-modal.component";
|
|
5
|
+
import * as i2 from "../foehn-modal/foehn-modal.component";
|
|
7
6
|
export class RedirectComponent {
|
|
8
|
-
constructor(iamInterceptor
|
|
7
|
+
constructor(iamInterceptor) {
|
|
9
8
|
this.iamInterceptor = iamInterceptor;
|
|
10
|
-
this.foehnPageModalService = foehnPageModalService;
|
|
11
|
-
this.subscription = this.iamInterceptor.iamExpirationHeaderPresence.subscribe(() => this.showModal());
|
|
12
|
-
}
|
|
13
|
-
ngOnInit() {
|
|
14
9
|
this.modalHeaderText = 'Information';
|
|
15
10
|
this.modalBodyText = `<p>Votre session a expiré.</p>
|
|
16
11
|
<p>Vous pouvez vous connecter à nouveau pour continuer à utiliser nos services.</p>`;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
redirect() {
|
|
22
|
-
this.foehnPageModalService
|
|
23
|
-
.buildSelfRedirectionThroughCyberLogin()
|
|
24
|
-
.pipe(first(), tap(redirectUrl => {
|
|
25
|
-
window.location.href = redirectUrl;
|
|
26
|
-
}))
|
|
27
|
-
.subscribe();
|
|
12
|
+
this.iamInterceptor.iamExpirationHeaderPresence
|
|
13
|
+
.pipe(first())
|
|
14
|
+
.subscribe(() => this.showModal());
|
|
28
15
|
}
|
|
29
16
|
showModal() {
|
|
30
17
|
this.counter = 10;
|
|
31
18
|
this.isModalVisible = true;
|
|
32
19
|
setInterval(() => {
|
|
33
20
|
if (0 === this.counter) {
|
|
34
|
-
|
|
21
|
+
window.location.reload();
|
|
35
22
|
return;
|
|
36
23
|
}
|
|
37
24
|
this.counter--;
|
|
38
25
|
}, 1000);
|
|
39
26
|
}
|
|
40
27
|
}
|
|
41
|
-
RedirectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: RedirectComponent, deps: [{ token: i1.IamExpiredInterceptorService }
|
|
42
|
-
RedirectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.5", type: RedirectComponent, selector: "redirector", ngImport: i0, template: "<foehn-modal\n [modalBodyText]=\"modalBodyText\"\n [isModalVisible]=\"isModalVisible\"\n [modalHeaderText]=\"modalHeaderText\"\n [closeable]=\"false\"\n>\n <div modal-footer class=\"w-100 text-right font-weight-bold\">\n Vous allez \u00EAtre redirig\u00E9 dans {{ counter }} s.\n </div>\n</foehn-modal>\n", components: [{ type:
|
|
28
|
+
RedirectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: RedirectComponent, deps: [{ token: i1.IamExpiredInterceptorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
29
|
+
RedirectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.5", type: RedirectComponent, selector: "redirector", ngImport: i0, template: "<foehn-modal\n [modalBodyText]=\"modalBodyText\"\n [isModalVisible]=\"isModalVisible\"\n [modalHeaderText]=\"modalHeaderText\"\n [closeable]=\"false\"\n>\n <div modal-footer class=\"w-100 text-right font-weight-bold\">\n Vous allez \u00EAtre redirig\u00E9 dans {{ counter }} s.\n </div>\n</foehn-modal>\n", components: [{ type: i2.FoehnModalComponent, selector: "foehn-modal", inputs: ["id", "name", "modalSize", "modalBodyText", "modalHeaderText", "closeable", "modalTriggerHtmlElement", "isModalVisible"], outputs: ["isModalVisibleChange"] }] });
|
|
43
30
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: RedirectComponent, decorators: [{
|
|
44
31
|
type: Component,
|
|
45
32
|
args: [{ selector: 'redirector', template: "<foehn-modal\n [modalBodyText]=\"modalBodyText\"\n [isModalVisible]=\"isModalVisible\"\n [modalHeaderText]=\"modalHeaderText\"\n [closeable]=\"false\"\n>\n <div modal-footer class=\"w-100 text-right font-weight-bold\">\n Vous allez \u00EAtre redirig\u00E9 dans {{ counter }} s.\n </div>\n</foehn-modal>\n" }]
|
|
46
|
-
}], ctorParameters: function () { return [{ type: i1.IamExpiredInterceptorService }
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
33
|
+
}], ctorParameters: function () { return [{ type: i1.IamExpiredInterceptorService }]; } });
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJma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1tb2RhbD5cbiJdfQ==
|
|
@@ -9930,45 +9930,33 @@ class TableSort {
|
|
|
9930
9930
|
}
|
|
9931
9931
|
|
|
9932
9932
|
class RedirectComponent {
|
|
9933
|
-
constructor(iamInterceptor
|
|
9933
|
+
constructor(iamInterceptor) {
|
|
9934
9934
|
this.iamInterceptor = iamInterceptor;
|
|
9935
|
-
this.foehnPageModalService = foehnPageModalService;
|
|
9936
|
-
this.subscription = this.iamInterceptor.iamExpirationHeaderPresence.subscribe(() => this.showModal());
|
|
9937
|
-
}
|
|
9938
|
-
ngOnInit() {
|
|
9939
9935
|
this.modalHeaderText = 'Information';
|
|
9940
9936
|
this.modalBodyText = `<p>Votre session a expiré.</p>
|
|
9941
9937
|
<p>Vous pouvez vous connecter à nouveau pour continuer à utiliser nos services.</p>`;
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
}
|
|
9946
|
-
redirect() {
|
|
9947
|
-
this.foehnPageModalService
|
|
9948
|
-
.buildSelfRedirectionThroughCyberLogin()
|
|
9949
|
-
.pipe(first(), tap(redirectUrl => {
|
|
9950
|
-
window.location.href = redirectUrl;
|
|
9951
|
-
}))
|
|
9952
|
-
.subscribe();
|
|
9938
|
+
this.iamInterceptor.iamExpirationHeaderPresence
|
|
9939
|
+
.pipe(first())
|
|
9940
|
+
.subscribe(() => this.showModal());
|
|
9953
9941
|
}
|
|
9954
9942
|
showModal() {
|
|
9955
9943
|
this.counter = 10;
|
|
9956
9944
|
this.isModalVisible = true;
|
|
9957
9945
|
setInterval(() => {
|
|
9958
9946
|
if (0 === this.counter) {
|
|
9959
|
-
|
|
9947
|
+
window.location.reload();
|
|
9960
9948
|
return;
|
|
9961
9949
|
}
|
|
9962
9950
|
this.counter--;
|
|
9963
9951
|
}, 1000);
|
|
9964
9952
|
}
|
|
9965
9953
|
}
|
|
9966
|
-
RedirectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: RedirectComponent, deps: [{ token: IamExpiredInterceptorService }
|
|
9954
|
+
RedirectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: RedirectComponent, deps: [{ token: IamExpiredInterceptorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9967
9955
|
RedirectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.5", type: RedirectComponent, selector: "redirector", ngImport: i0, template: "<foehn-modal\n [modalBodyText]=\"modalBodyText\"\n [isModalVisible]=\"isModalVisible\"\n [modalHeaderText]=\"modalHeaderText\"\n [closeable]=\"false\"\n>\n <div modal-footer class=\"w-100 text-right font-weight-bold\">\n Vous allez \u00EAtre redirig\u00E9 dans {{ counter }} s.\n </div>\n</foehn-modal>\n", components: [{ type: FoehnModalComponent, selector: "foehn-modal", inputs: ["id", "name", "modalSize", "modalBodyText", "modalHeaderText", "closeable", "modalTriggerHtmlElement", "isModalVisible"], outputs: ["isModalVisibleChange"] }] });
|
|
9968
9956
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: RedirectComponent, decorators: [{
|
|
9969
9957
|
type: Component,
|
|
9970
9958
|
args: [{ selector: 'redirector', template: "<foehn-modal\n [modalBodyText]=\"modalBodyText\"\n [isModalVisible]=\"isModalVisible\"\n [modalHeaderText]=\"modalHeaderText\"\n [closeable]=\"false\"\n>\n <div modal-footer class=\"w-100 text-right font-weight-bold\">\n Vous allez \u00EAtre redirig\u00E9 dans {{ counter }} s.\n </div>\n</foehn-modal>\n" }]
|
|
9971
|
-
}], ctorParameters: function () { return [{ type: IamExpiredInterceptorService }
|
|
9959
|
+
}], ctorParameters: function () { return [{ type: IamExpiredInterceptorService }]; } });
|
|
9972
9960
|
|
|
9973
9961
|
class SdkRedirectModule {
|
|
9974
9962
|
}
|