@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
|
@@ -9917,45 +9917,33 @@ class TableSort {
|
|
|
9917
9917
|
}
|
|
9918
9918
|
|
|
9919
9919
|
class RedirectComponent {
|
|
9920
|
-
constructor(iamInterceptor
|
|
9920
|
+
constructor(iamInterceptor) {
|
|
9921
9921
|
this.iamInterceptor = iamInterceptor;
|
|
9922
|
-
this.foehnPageModalService = foehnPageModalService;
|
|
9923
|
-
this.subscription = this.iamInterceptor.iamExpirationHeaderPresence.subscribe(() => this.showModal());
|
|
9924
|
-
}
|
|
9925
|
-
ngOnInit() {
|
|
9926
9922
|
this.modalHeaderText = 'Information';
|
|
9927
9923
|
this.modalBodyText = `<p>Votre session a expiré.</p>
|
|
9928
9924
|
<p>Vous pouvez vous connecter à nouveau pour continuer à utiliser nos services.</p>`;
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
}
|
|
9933
|
-
redirect() {
|
|
9934
|
-
this.foehnPageModalService
|
|
9935
|
-
.buildSelfRedirectionThroughCyberLogin()
|
|
9936
|
-
.pipe(first(), tap(redirectUrl => {
|
|
9937
|
-
window.location.href = redirectUrl;
|
|
9938
|
-
}))
|
|
9939
|
-
.subscribe();
|
|
9925
|
+
this.iamInterceptor.iamExpirationHeaderPresence
|
|
9926
|
+
.pipe(first())
|
|
9927
|
+
.subscribe(() => this.showModal());
|
|
9940
9928
|
}
|
|
9941
9929
|
showModal() {
|
|
9942
9930
|
this.counter = 10;
|
|
9943
9931
|
this.isModalVisible = true;
|
|
9944
9932
|
setInterval(() => {
|
|
9945
9933
|
if (0 === this.counter) {
|
|
9946
|
-
|
|
9934
|
+
window.location.reload();
|
|
9947
9935
|
return;
|
|
9948
9936
|
}
|
|
9949
9937
|
this.counter--;
|
|
9950
9938
|
}, 1000);
|
|
9951
9939
|
}
|
|
9952
9940
|
}
|
|
9953
|
-
RedirectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: RedirectComponent, deps: [{ token: IamExpiredInterceptorService }
|
|
9941
|
+
RedirectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: RedirectComponent, deps: [{ token: IamExpiredInterceptorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
9954
9942
|
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"] }] });
|
|
9955
9943
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.5", ngImport: i0, type: RedirectComponent, decorators: [{
|
|
9956
9944
|
type: Component,
|
|
9957
9945
|
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" }]
|
|
9958
|
-
}], ctorParameters: function () { return [{ type: IamExpiredInterceptorService }
|
|
9946
|
+
}], ctorParameters: function () { return [{ type: IamExpiredInterceptorService }]; } });
|
|
9959
9947
|
|
|
9960
9948
|
class SdkRedirectModule {
|
|
9961
9949
|
}
|