ets-fe-ng-sdk 19.0.87 → 19.0.88

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.
@@ -17881,16 +17881,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
17881
17881
  const min = 5;
17882
17882
 
17883
17883
  class RequestLoggerInterceptorService {
17884
- constructor() { }
17884
+ constructor() {
17885
+ this.requestLoader$ = new ReplaySubject();
17886
+ }
17885
17887
  intercept(req, next) {
17886
17888
  environment.pageLoader.startPl();
17889
+ this.requestLoader$.next(environment.pageLoader.isLoading);
17887
17890
  return next.handle(req).pipe(tap((event) => {
17888
- if (event instanceof HttpResponse ||
17889
- event instanceof HttpErrorResponse) {
17891
+ if (event instanceof HttpResponse || event instanceof HttpErrorResponse) {
17890
17892
  environment.pageLoader.stopPl();
17893
+ this.requestLoader$.next(environment.pageLoader.isLoading);
17891
17894
  }
17892
- }, err => {
17895
+ }, (err) => {
17893
17896
  environment.pageLoader.stopPl();
17897
+ this.requestLoader$.next(environment.pageLoader.isLoading);
17894
17898
  }));
17895
17899
  }
17896
17900
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: RequestLoggerInterceptorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }