@dsivd/prestations-ng 18.3.4-beta.2 → 18.3.4-beta.4
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.
|
Binary file
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Optional, Inject, Injectable, EventEmitter, Input, HostBinding, Output, forwardRef, ViewChildren, ViewChild, Directive, Pipe, Component, ContentChildren, InjectionToken, HostListener, inject, NgModule, TemplateRef, ContentChild
|
|
2
|
+
import { Optional, Inject, Injectable, EventEmitter, Input, HostBinding, Output, forwardRef, ViewChildren, ViewChild, Directive, Pipe, Component, ContentChildren, InjectionToken, HostListener, inject, ErrorHandler, NgModule, TemplateRef, ContentChild } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/router';
|
|
4
4
|
import { ActivatedRoute, NavigationStart, RouterModule, NavigationEnd, RouterLink } from '@angular/router';
|
|
5
5
|
import { of, Subject, BehaviorSubject, combineLatest, throwError, switchMap as switchMap$1, forkJoin, tap as tap$1, from, concatMap, toArray, EMPTY, takeUntil, startWith, filter as filter$1, merge, interval, withLatestFrom, map as map$1, debounceTime as debounceTime$1, concat } from 'rxjs';
|
|
@@ -5557,11 +5557,35 @@ const oidcNotAuthenticatedInterceptor = (req, next) => {
|
|
|
5557
5557
|
}));
|
|
5558
5558
|
};
|
|
5559
5559
|
|
|
5560
|
-
|
|
5561
|
-
|
|
5562
|
-
|
|
5563
|
-
|
|
5564
|
-
|
|
5560
|
+
class ChunkLoadErrorHandler {
|
|
5561
|
+
constructor() {
|
|
5562
|
+
this.iamExpiredInterceptorService = inject(IamExpiredInterceptorService);
|
|
5563
|
+
}
|
|
5564
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5565
|
+
handleError(error) {
|
|
5566
|
+
// Chunk load failures triggered by 401s appear as ChunkLoadError
|
|
5567
|
+
// or as a failed dynamic import with a network error
|
|
5568
|
+
const isChunkLoadError = error?.name === 'ChunkLoadError' ||
|
|
5569
|
+
error?.message?.includes('Loading chunk') ||
|
|
5570
|
+
error?.message?.includes('Failed to fetch dynamically imported module');
|
|
5571
|
+
if (isChunkLoadError) {
|
|
5572
|
+
this.iamExpiredInterceptorService.setIamSessionExpiredManually();
|
|
5573
|
+
}
|
|
5574
|
+
else {
|
|
5575
|
+
// Re-throw other errors so they aren't silently swallowed
|
|
5576
|
+
throw error;
|
|
5577
|
+
}
|
|
5578
|
+
}
|
|
5579
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ChunkLoadErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5580
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ChunkLoadErrorHandler, providedIn: 'root' }); }
|
|
5581
|
+
}
|
|
5582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ChunkLoadErrorHandler, decorators: [{
|
|
5583
|
+
type: Injectable,
|
|
5584
|
+
args: [{
|
|
5585
|
+
providedIn: 'root'
|
|
5586
|
+
}]
|
|
5587
|
+
}] });
|
|
5588
|
+
|
|
5565
5589
|
class PrestationsNgCoreModule {
|
|
5566
5590
|
constructor(injector, faConfig) {
|
|
5567
5591
|
this.injector = injector;
|
|
@@ -5574,7 +5598,15 @@ class PrestationsNgCoreModule {
|
|
|
5574
5598
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: PrestationsNgCoreModule, deps: [{ token: i0.Injector }, { token: i1$2.FaConfig }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
5575
5599
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: PrestationsNgCoreModule, imports: [RouterModule] }); }
|
|
5576
5600
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: PrestationsNgCoreModule, providers: [
|
|
5577
|
-
|
|
5601
|
+
{
|
|
5602
|
+
provide: HTTP_INTERCEPTORS,
|
|
5603
|
+
useExisting: IamExpiredInterceptorService,
|
|
5604
|
+
multi: true
|
|
5605
|
+
},
|
|
5606
|
+
{
|
|
5607
|
+
provide: ErrorHandler,
|
|
5608
|
+
useClass: ChunkLoadErrorHandler
|
|
5609
|
+
},
|
|
5578
5610
|
provideHttpClient(withInterceptorsFromDi(), withInterceptors([oidcNotAuthenticatedInterceptor]))
|
|
5579
5611
|
], imports: [RouterModule] }); }
|
|
5580
5612
|
}
|
|
@@ -5583,7 +5615,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
5583
5615
|
args: [{
|
|
5584
5616
|
imports: [RouterModule],
|
|
5585
5617
|
providers: [
|
|
5586
|
-
|
|
5618
|
+
{
|
|
5619
|
+
provide: HTTP_INTERCEPTORS,
|
|
5620
|
+
useExisting: IamExpiredInterceptorService,
|
|
5621
|
+
multi: true
|
|
5622
|
+
},
|
|
5623
|
+
{
|
|
5624
|
+
provide: ErrorHandler,
|
|
5625
|
+
useClass: ChunkLoadErrorHandler
|
|
5626
|
+
},
|
|
5587
5627
|
provideHttpClient(withInterceptorsFromDi(), withInterceptors([oidcNotAuthenticatedInterceptor]))
|
|
5588
5628
|
]
|
|
5589
5629
|
}]
|
|
@@ -14217,35 +14257,6 @@ const HTTP_LOADER_FILTERED_URL = [
|
|
|
14217
14257
|
'(api\\/document(\\/([a-zA-Z0-9])+)*\\/upload)'
|
|
14218
14258
|
];
|
|
14219
14259
|
|
|
14220
|
-
class ChunkLoadErrorHandler {
|
|
14221
|
-
constructor() {
|
|
14222
|
-
this.iamExpiredInterceptorService = inject(IamExpiredInterceptorService);
|
|
14223
|
-
}
|
|
14224
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
14225
|
-
handleError(error) {
|
|
14226
|
-
// Chunk load failures triggered by 401s appear as ChunkLoadError
|
|
14227
|
-
// or as a failed dynamic import with a network error
|
|
14228
|
-
const isChunkLoadError = error?.name === 'ChunkLoadError' ||
|
|
14229
|
-
error?.message?.includes('Loading chunk') ||
|
|
14230
|
-
error?.message?.includes('Failed to fetch dynamically imported module');
|
|
14231
|
-
if (isChunkLoadError) {
|
|
14232
|
-
this.iamExpiredInterceptorService.setIamSessionExpiredManually();
|
|
14233
|
-
}
|
|
14234
|
-
else {
|
|
14235
|
-
// Re-throw other errors so they aren't silently swallowed
|
|
14236
|
-
throw error;
|
|
14237
|
-
}
|
|
14238
|
-
}
|
|
14239
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ChunkLoadErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
14240
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ChunkLoadErrorHandler, providedIn: 'root' }); }
|
|
14241
|
-
}
|
|
14242
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ChunkLoadErrorHandler, decorators: [{
|
|
14243
|
-
type: Injectable,
|
|
14244
|
-
args: [{
|
|
14245
|
-
providedIn: 'root'
|
|
14246
|
-
}]
|
|
14247
|
-
}] });
|
|
14248
|
-
|
|
14249
14260
|
class RedirectComponent {
|
|
14250
14261
|
constructor(iamInterceptor, foehnPageModalService, sessionInfo) {
|
|
14251
14262
|
this.iamInterceptor = iamInterceptor;
|
|
@@ -14309,24 +14320,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
14309
14320
|
class SdkRedirectModule {
|
|
14310
14321
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdkRedirectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
14311
14322
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: SdkRedirectModule, declarations: [RedirectComponent], imports: [CommonModule, FoehnModalModule], exports: [RedirectComponent] }); }
|
|
14312
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdkRedirectModule,
|
|
14313
|
-
{
|
|
14314
|
-
provide: ErrorHandler,
|
|
14315
|
-
useClass: ChunkLoadErrorHandler
|
|
14316
|
-
}
|
|
14317
|
-
], imports: [CommonModule, FoehnModalModule] }); }
|
|
14323
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdkRedirectModule, imports: [CommonModule, FoehnModalModule] }); }
|
|
14318
14324
|
}
|
|
14319
14325
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SdkRedirectModule, decorators: [{
|
|
14320
14326
|
type: NgModule,
|
|
14321
14327
|
args: [{
|
|
14322
14328
|
imports: [CommonModule, FoehnModalModule],
|
|
14323
14329
|
declarations: [RedirectComponent],
|
|
14324
|
-
providers: [
|
|
14325
|
-
{
|
|
14326
|
-
provide: ErrorHandler,
|
|
14327
|
-
useClass: ChunkLoadErrorHandler
|
|
14328
|
-
}
|
|
14329
|
-
],
|
|
14330
14330
|
exports: [RedirectComponent]
|
|
14331
14331
|
}]
|
|
14332
14332
|
}] });
|