ets-fe-ng-sdk 19.0.88 → 19.0.89

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.
@@ -1,5 +1,6 @@
1
1
  import * as i3$1 from '@angular/forms';
2
2
  import { FormControl, Validators, FormArray, FormGroup, FormBuilder, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule, UntypedFormArray } from '@angular/forms';
3
+ import { ReplaySubject, filter, debounceTime, lastValueFrom, Observable, BehaviorSubject, isObservable, merge, of, firstValueFrom, throwError, interval, switchMap, map as map$1, startWith, tap as tap$1, forkJoin, catchError as catchError$1, first, distinctUntilChanged, fromEvent, mergeMap, debounce, timer, Subject, distinct, concat } from 'rxjs';
3
4
  import 'zone.js/plugins/zone-error';
4
5
  import { cloneDeep, clone, uniqBy, uniq, isEqual, isEmpty } from 'lodash-es';
5
6
  import * as i0 from '@angular/core';
@@ -8,7 +9,6 @@ import * as i1 from '@angular/common';
8
9
  import { Location, CurrencyPipe, TitleCasePipe, DatePipe, DecimalPipe, CommonModule, NgClass, JsonPipe, AsyncPipe, NgIf, NgFor, UpperCasePipe, NgTemplateOutlet, NgSwitch, NgSwitchCase, NgSwitchDefault, NgStyle } from '@angular/common';
9
10
  import { faPlus, faSlidersH, faMoneyCheck, faCancel, faCheck, faListAlt, faClone, faCogs, faTrash, faDownload, faEdit, faFileExport, faFile, faFilter, faPenFancy, faUserShield, faHistory, faHome, faFileImport, faInfoCircle, faLock, faArrowRight, faPause, faPen, faArrowLeft, faRecycle, faSave, faSearch, faEye, faBellSlash, faUpload, faUnlock, faUsers, faStop, faTruck, faTag, faReceipt, faBank, faArrowsH, faPlay, faPercent, faHandshake, faCircleExclamation, faTable, faSpoon } from '@fortawesome/free-solid-svg-icons';
10
11
  import { faPaperPlane } from '@fortawesome/free-regular-svg-icons';
11
- import { ReplaySubject, filter, debounceTime, lastValueFrom, Observable, BehaviorSubject, isObservable, merge, of, firstValueFrom, throwError, interval, switchMap, map as map$1, startWith, tap as tap$1, forkJoin, catchError as catchError$1, first, distinctUntilChanged, fromEvent, mergeMap, debounce, timer, Subject, distinct, concat } from 'rxjs';
12
12
  import { map, tap, catchError, retry, filter as filter$1, debounceTime as debounceTime$1, switchMap as switchMap$1, startWith as startWith$1, first as first$1, timeout } from 'rxjs/operators';
13
13
  import { ToastNotificationsService } from '@serene-dev/toast-notifications';
14
14
  import { HttpClient, HttpHeaders, HttpRequest, HttpResponse, HttpErrorResponse } from '@angular/common/http';
@@ -412,6 +412,7 @@ class SDKEnvironment {
412
412
  this.requestTimeout = new Date(86400000 * 365 + Date.now());
413
413
  this.useUserMenu = true;
414
414
  this.pageLoader = new PageLoader();
415
+ this.requestLoader$ = new ReplaySubject();
415
416
  this.requestCount = 0;
416
417
  this.logsKey = 'logs';
417
418
  this.appName = 'Evolutics';
@@ -17881,20 +17882,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.1", ngImpor
17881
17882
  const min = 5;
17882
17883
 
17883
17884
  class RequestLoggerInterceptorService {
17884
- constructor() {
17885
- this.requestLoader$ = new ReplaySubject();
17886
- }
17885
+ constructor() { }
17887
17886
  intercept(req, next) {
17888
17887
  environment.pageLoader.startPl();
17889
- this.requestLoader$.next(environment.pageLoader.isLoading);
17888
+ environment.requestLoader$.next(environment.pageLoader.isLoading);
17890
17889
  return next.handle(req).pipe(tap((event) => {
17891
17890
  if (event instanceof HttpResponse || event instanceof HttpErrorResponse) {
17892
17891
  environment.pageLoader.stopPl();
17893
- this.requestLoader$.next(environment.pageLoader.isLoading);
17892
+ environment.requestLoader$.next(environment.pageLoader.isLoading);
17894
17893
  }
17895
- }, (err) => {
17894
+ }), catchError((err) => {
17896
17895
  environment.pageLoader.stopPl();
17897
- this.requestLoader$.next(environment.pageLoader.isLoading);
17896
+ environment.requestLoader$.next(environment.pageLoader.isLoading);
17897
+ throw err;
17898
17898
  }));
17899
17899
  }
17900
17900
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.1", ngImport: i0, type: RequestLoggerInterceptorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }