@dsivd/prestations-ng 18.2.0-beta.4 → 18.2.0
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 +5 -0
- package/dsivd-prestations-ng-18.2.0.tgz +0 -0
- package/fesm2022/dsivd-prestations-ng.mjs +36 -8
- package/fesm2022/dsivd-prestations-ng.mjs.map +1 -1
- package/foehn-page/foehn-page.component.d.ts +10 -6
- package/package.json +1 -1
- package/sdk-appinfo/application-info.d.ts +1 -0
- package/dsivd-prestations-ng-18.2.0-beta.4.tgz +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -21,12 +21,17 @@
|
|
|
21
21
|
### Updated
|
|
22
22
|
|
|
23
23
|
- [default-dictionary.ts](projects/prestations-ng/src/sdk-dictionary/default-dictionary.ts)
|
|
24
|
+
|
|
24
25
|
- added new keys for `foehn-app-version-mis-match-modal` :
|
|
25
26
|
- `foehn-app-version-mismatch-modal.title` : Mise à jour détectée
|
|
26
27
|
- `foehn-app-version-mismatch-modal.content` : Cette application à été mise à jour. Avant de continuer votre saisie, merci de recharger la page.
|
|
27
28
|
- `foehn-app-version-mismatch-modal.btn.save-and-reload` : Sauver et recharger
|
|
28
29
|
- `foehn-app-version-mismatch-modal.btn.reload` : Recharger
|
|
29
30
|
|
|
31
|
+
- [foehn-page.component.ts](projects/prestations-ng/src/foehn-page/foehn-page.component.ts)
|
|
32
|
+
|
|
33
|
+
- updated `@Input() showBeforeUnloadNativeConfirmAlert = true;`: Now comes from CatPrest etape configuration (default is still `true`) but can still be overridden by `input`
|
|
34
|
+
|
|
30
35
|
### Fixed
|
|
31
36
|
|
|
32
37
|
- [i18n-form.ts](projects/prestations-ng/src/i18n-form.ts)
|
|
Binary file
|
|
@@ -7974,15 +7974,12 @@ class FoehnPageComponent {
|
|
|
7974
7974
|
* If set to 'false', hide the default Security Best Practice link.
|
|
7975
7975
|
*/
|
|
7976
7976
|
this.showDefaultSecurityBestPracticeLink = true;
|
|
7977
|
-
/**
|
|
7978
|
-
* If set to 'false', does not display native browser alert message when closing the tab, closing the browser or
|
|
7979
|
-
* reloading the page while having unsaved data.
|
|
7980
|
-
*/
|
|
7981
|
-
this.showBeforeUnloadNativeConfirmAlert = true;
|
|
7982
7977
|
this.showAppVersionMismatchAlert = true;
|
|
7983
7978
|
this.loginMessagesHidden = false;
|
|
7984
7979
|
this.browserLinkTitlePrefix = 'Lien pour le téléchargement du navigateur internet';
|
|
7985
7980
|
this.browserNotSupportedBypass = false;
|
|
7981
|
+
this.showBeforeUnloadNativeConfirmAlertBehavior = new BehaviorSubject(null);
|
|
7982
|
+
this._showBeforeUnloadNativeConfirmAlert = true;
|
|
7986
7983
|
this.hasBlockingSupportAlert =
|
|
7987
7984
|
this.supportAlertService.getHasAtLeastOneBlockingAlert();
|
|
7988
7985
|
this.blockedSubscription = combineLatest([
|
|
@@ -8004,6 +8001,16 @@ class FoehnPageComponent {
|
|
|
8004
8001
|
this.displayDemandeExpirationTimer =
|
|
8005
8002
|
this.demandeExpirationService.shouldDisplayExpirationTimerMessage();
|
|
8006
8003
|
}
|
|
8004
|
+
/**
|
|
8005
|
+
* If set to 'false', does not display native browser alert message when closing the tab, closing the browser or
|
|
8006
|
+
* reloading the page while having unsaved data.
|
|
8007
|
+
*/
|
|
8008
|
+
get showBeforeUnloadNativeConfirmAlert() {
|
|
8009
|
+
return this._showBeforeUnloadNativeConfirmAlert;
|
|
8010
|
+
}
|
|
8011
|
+
set showBeforeUnloadNativeConfirmAlert(value) {
|
|
8012
|
+
this.showBeforeUnloadNativeConfirmAlertBehavior.next(value);
|
|
8013
|
+
}
|
|
8007
8014
|
unloadNotification($event) {
|
|
8008
8015
|
// If the user has not interacted with the form, we don't display any alert.
|
|
8009
8016
|
// This allows users to reload the page or leave without being bothered if
|
|
@@ -8071,6 +8078,27 @@ class FoehnPageComponent {
|
|
|
8071
8078
|
isLastPage);
|
|
8072
8079
|
}));
|
|
8073
8080
|
}
|
|
8081
|
+
this.showBeforeUnloadNativeConfirmAlertSubscription = combineLatest([
|
|
8082
|
+
this.showBeforeUnloadNativeConfirmAlertBehavior.asObservable(), // starts with NULL as well
|
|
8083
|
+
this.applicationInfoService.currentEtapeInfo.pipe(startWith(null)) // start with NULL in case it is a BO
|
|
8084
|
+
])
|
|
8085
|
+
// eslint-disable-next-line rxjs-angular/prefer-async-pipe
|
|
8086
|
+
.subscribe(([showBeforeUnloadNativeConfirmAlert, etapeInfo]) => {
|
|
8087
|
+
if (showBeforeUnloadNativeConfirmAlert !== undefined &&
|
|
8088
|
+
showBeforeUnloadNativeConfirmAlert !== null) {
|
|
8089
|
+
this._showBeforeUnloadNativeConfirmAlert =
|
|
8090
|
+
showBeforeUnloadNativeConfirmAlert;
|
|
8091
|
+
// we return so we can override etapeInfo settings
|
|
8092
|
+
return;
|
|
8093
|
+
}
|
|
8094
|
+
if (etapeInfo?.alertePerteDonnees !== undefined &&
|
|
8095
|
+
etapeInfo?.alertePerteDonnees !== null) {
|
|
8096
|
+
this._showBeforeUnloadNativeConfirmAlert =
|
|
8097
|
+
etapeInfo.alertePerteDonnees;
|
|
8098
|
+
return;
|
|
8099
|
+
}
|
|
8100
|
+
this._showBeforeUnloadNativeConfirmAlert = true; // Default in case nothing is set
|
|
8101
|
+
});
|
|
8074
8102
|
}
|
|
8075
8103
|
ngOnChanges(changes) {
|
|
8076
8104
|
const etapeIdChange = changes.etapeId;
|
|
@@ -8103,7 +8131,7 @@ class FoehnPageComponent {
|
|
|
8103
8131
|
this.pageTitle = title;
|
|
8104
8132
|
}
|
|
8105
8133
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FoehnPageComponent, deps: [{ token: i1$3.Title }, { token: FoehnPageService }, { token: SupportAlertService }, { token: FoehnNavigationService }, { token: ApplicationInfoService }, { token: GesdemEventService }, { token: BreadcrumbEventService }, { token: i1$1.Router }, { token: SessionInfo }, { token: FoehnPageModalService }, { token: SdkDictionaryService }, { token: SdkStatisticsService }, { token: DemandeExpirationService }, { token: RegisterNgModelService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8106
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FoehnPageComponent, isStandalone: false, selector: "foehn-page", inputs: { appTitle: "appTitle", footerLinks: "footerLinks", supportAlertEnabled: "supportAlertEnabled", draftsEnabled: "draftsEnabled", supportAlertUrl: "supportAlertUrl", draftsUrl: "draftsUrl", etapeId: "etapeId", userConnectedAsDisplayed: "userConnectedAsDisplayed", statusProgressBarHidden: "statusProgressBarHidden", confirmLeavingAlert: "confirmLeavingAlert", showDefaultContactFooterLink: "showDefaultContactFooterLink", showDefaultGuideFooterLink: "showDefaultGuideFooterLink", showDefaultTermOfUseLink: "showDefaultTermOfUseLink", showDefaultSecurityBestPracticeLink: "showDefaultSecurityBestPracticeLink",
|
|
8134
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: FoehnPageComponent, isStandalone: false, selector: "foehn-page", inputs: { appTitle: "appTitle", footerLinks: "footerLinks", supportAlertEnabled: "supportAlertEnabled", draftsEnabled: "draftsEnabled", supportAlertUrl: "supportAlertUrl", draftsUrl: "draftsUrl", etapeId: "etapeId", userConnectedAsDisplayed: "userConnectedAsDisplayed", statusProgressBarHidden: "statusProgressBarHidden", confirmLeavingAlert: "confirmLeavingAlert", showDefaultContactFooterLink: "showDefaultContactFooterLink", showDefaultGuideFooterLink: "showDefaultGuideFooterLink", showDefaultTermOfUseLink: "showDefaultTermOfUseLink", showDefaultSecurityBestPracticeLink: "showDefaultSecurityBestPracticeLink", showAppVersionMismatchAlert: "showAppVersionMismatchAlert", routerLinkAppTitle: "routerLinkAppTitle", showBeforeUnloadNativeConfirmAlert: "showBeforeUnloadNativeConfirmAlert" }, host: { listeners: { "window:beforeunload": "unloadNotification($event)" } }, usesOnChanges: true, ngImport: i0, template: "<foehn-page-expiration-timer\n *ngIf=\"(displayDemandeExpirationTimer | async) === true\"\n id=\"foehn-page-expiration-timer\"\n></foehn-page-expiration-timer>\n<foehn-header\n id=\"foehn_header\"\n [title]=\"appTitle\"\n [routerLinkAppTitle]=\"routerLinkAppTitle\"\n [showSecuredAreaLoginButton]=\"showSecuredAreaLoginButton | async\"\n></foehn-header>\n<foehn-growl id=\"foehn_growl\"></foehn-growl>\n<div class=\"vd-bg-pattern-gray\">\n <div class=\"container\">\n <foehn-breadcrumb\n [confirmLeavingAlert]=\"confirmLeavingAlert\"\n ></foehn-breadcrumb>\n </div>\n</div>\n<main id=\"main\">\n <div class=\"vd-bg-pattern-gray\">\n <div class=\"container\">\n <!-- Fix annoying flickering when the page loads -->\n <div class=\"h1 mt-0\" *ngIf=\"!pageTitle\"> </div>\n <h1\n [tabIndex]=\"-1\"\n class=\"mt-0\"\n id=\"page-title\"\n *ngIf=\"!!pageTitle\"\n [innerHTML]=\"pageTitle\"\n ></h1>\n </div>\n </div>\n\n <foehn-status-progress-bar\n [hidden]=\"\n statusProgressBarHidden || !!(hasBlockingSupportAlert | async)\n \"\n ></foehn-status-progress-bar>\n\n <section\n *ngIf=\"!isBrowserSupported\"\n class=\"container alert alert-danger\"\n id=\"browser_not_supported_block\"\n role=\"alert\"\n >\n <p class=\"alert-heading\">\n <strong>\n {{ 'foehn-page.browser-not-supported' | fromDictionary }}\n </strong>\n </p>\n <p class=\"mb-0\">\n {{ 'foehn-page.browser-download-invitation' | fromDictionary }}\n <ng-container *ngIf=\"!isApplePlatform\">\n <a\n [title]=\"browserLinkTitlePrefix + ' Edge'\"\n href=\"https://www.microsoft.com/fr-ch/windows/microsoft-edge\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n Edge\n <span class=\"visually-hidden\">\n {{ 'foehn-page.external-link.srOnly' | fromDictionary }}\n </span>\n <span aria-hidden=\"true\">\n <foehn-icon-external-link-alt></foehn-icon-external-link-alt>\n </span>\n </a>\n ,\n </ng-container>\n <ng-container *ngIf=\"isApplePlatform\">\n <a\n [title]=\"browserLinkTitlePrefix + ' Safari'\"\n href=\"https://support.apple.com/downloads/safari\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n Safari\n <span class=\"visually-hidden\">\n {{ 'foehn-page.external-link.srOnly' | fromDictionary }}\n </span>\n <span aria-hidden=\"true\">\n <foehn-icon-external-link-alt></foehn-icon-external-link-alt>\n </span>\n </a>\n ,\n </ng-container>\n <a\n [title]=\"browserLinkTitlePrefix + ' Firefox'\"\n href=\"https://www.mozilla.org/fr/firefox/\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n Firefox\n <span class=\"visually-hidden\">\n {{ 'foehn-page.external-link.srOnly' | fromDictionary }}\n </span>\n <span aria-hidden=\"true\">\n <foehn-icon-external-link-alt></foehn-icon-external-link-alt>\n </span>\n </a>\n {{ 'foehn-page.browser-download-list.ou' | fromDictionary }}\n <a\n [title]=\"browserLinkTitlePrefix + ' Chrome'\"\n href=\"https://www.google.com/intl/fr/chrome/\"\n target=\"_blank\"\n rel=\"noopener\"\n >\n Chrome\n <span class=\"visually-hidden\">\n {{ 'foehn-page.external-link.srOnly' | fromDictionary }}\n </span>\n <span aria-hidden=\"true\">\n <foehn-icon-external-link-alt></foehn-icon-external-link-alt>\n </span>\n </a>\n .\n </p>\n <div class=\"row mt-3\">\n <div class=\"col-md-12\">\n <button\n id=\"browser_not_supported_bypass\"\n type=\"button\"\n class=\"float-end btn btn-danger\"\n *ngIf=\"!browserNotSupportedBypass\"\n (click)=\"browserNotSupportedBypass = true\"\n >\n {{\n 'foehn-page.continue-with-same-browser' | fromDictionary\n }}\n </button>\n </div>\n </div>\n </section>\n\n <sdk-support-alert-container\n *ngIf=\"supportAlertEnabled\"\n [etapeId]=\"etapeId\"\n [supportAlertUrl]=\"supportAlertUrl\"\n ></sdk-support-alert-container>\n <sdk-drafts-container\n *ngIf=\"draftsEnabled\"\n [etapeId]=\"etapeId\"\n [draftsUrl]=\"draftsUrl\"\n ></sdk-drafts-container>\n <ng-container\n *ngIf=\"\n !(hasBlockingSupportAlert | async) &&\n (isBrowserSupported || browserNotSupportedBypass)\n \"\n >\n <div class=\"container mt-5\" id=\"page_content\">\n <foehn-user-connected-as\n *ngIf=\"displayUserCategory | async\"\n ></foehn-user-connected-as>\n </div>\n <ng-content></ng-content>\n </ng-container>\n</main>\n<foehn-footer\n id=\"foehn_footer\"\n [links]=\"footerLinks\"\n [showDefaultContactLink]=\"showDefaultContactFooterLink\"\n [showDefaultGuideLink]=\"showDefaultGuideFooterLink\"\n [showDefaultTermOfUseLink]=\"showDefaultTermOfUseLink\"\n [showDefaultSecurityBestPracticeLink]=\"showDefaultSecurityBestPracticeLink\"\n></foehn-footer>\n<foehn-page-modal></foehn-page-modal>\n<foehn-confirm-modal></foehn-confirm-modal>\n<foehn-transmit-waiting-modal></foehn-transmit-waiting-modal>\n@if (showAppVersionMismatchAlert) {\n <foehn-app-version-mis-match-modal></foehn-app-version-mis-match-modal>\n}\n", styles: ["#loginAndContinueButton{text-decoration:underline}\n"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DraftsContainerComponent, selector: "sdk-drafts-container", inputs: ["etapeId", "draftsUrl"] }, { kind: "component", type: FoehnBreadcrumbComponent, selector: "foehn-breadcrumb", inputs: ["breadcrumbItems", "currentNav", "confirmLeavingAlert"] }, { kind: "component", type: FoehnGrowlComponent, selector: "foehn-growl" }, { kind: "component", type: FoehnHeaderComponent, selector: "foehn-header", inputs: ["title", "showSecuredAreaLoginButton", "routerLinkAppTitle", "userInfo"] }, { kind: "component", type: FoehnFooterComponent, selector: "foehn-footer", inputs: ["links", "showDefaultContactLink", "showDefaultGuideLink", "showDefaultTermOfUseLink", "showDefaultSecurityBestPracticeLink"] }, { kind: "component", type: FoehnUserConnectedAsComponent, selector: "foehn-user-connected-as" }, { kind: "component", type: SupportAlertContainerComponent, selector: "sdk-support-alert-container", inputs: ["etapeId", "supportAlertUrl"] }, { kind: "component", type: FoehnConfirmModalComponent, selector: "foehn-confirm-modal" }, { kind: "component", type: FoehnIconExternalLinkAltComponent, selector: "foehn-icon-external-link-alt" }, { kind: "component", type: FoehnStatusProgressBarComponent, selector: "foehn-status-progress-bar", inputs: ["hidden"] }, { kind: "component", type: FoehnPageModalComponent, selector: "foehn-page-modal" }, { kind: "component", type: FoehnPageExpirationTimerComponent, selector: "foehn-page-expiration-timer" }, { kind: "component", type: FoehnTransmitWaitingModalComponent, selector: "foehn-transmit-waiting-modal" }, { kind: "component", type: FoehnAppVersionMisMatchModalComponent, selector: "foehn-app-version-mis-match-modal" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "pipe", type: SdkDictionaryPipe, name: "fromDictionary" }] }); }
|
|
8107
8135
|
}
|
|
8108
8136
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: FoehnPageComponent, decorators: [{
|
|
8109
8137
|
type: Component,
|
|
@@ -8136,12 +8164,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
8136
8164
|
type: Input
|
|
8137
8165
|
}], showDefaultSecurityBestPracticeLink: [{
|
|
8138
8166
|
type: Input
|
|
8139
|
-
}], showBeforeUnloadNativeConfirmAlert: [{
|
|
8140
|
-
type: Input
|
|
8141
8167
|
}], showAppVersionMismatchAlert: [{
|
|
8142
8168
|
type: Input
|
|
8143
8169
|
}], routerLinkAppTitle: [{
|
|
8144
8170
|
type: Input
|
|
8171
|
+
}], showBeforeUnloadNativeConfirmAlert: [{
|
|
8172
|
+
type: Input
|
|
8145
8173
|
}], unloadNotification: [{
|
|
8146
8174
|
type: HostListener,
|
|
8147
8175
|
args: ['window:beforeunload', ['$event']]
|