@osovitny/anatoly 3.19.35 → 3.19.37
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,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, EventEmitter, Component, Output, Input, Inject, Pipe, provideAppInitializer, inject, NgModule, Directive, ChangeDetectionStrategy, ViewChild, ViewEncapsulation, HostListener, HostBinding } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject,
|
|
3
|
+
import { BehaviorSubject, forkJoin, Subject, filter, takeUntil, map as map$1, catchError, of, merge, timer, fromEvent, firstValueFrom } from 'rxjs';
|
|
4
4
|
import { map, tap, mergeMap } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
6
|
import { HttpResponse, HttpClient, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
@@ -404,7 +404,7 @@ class AppContextService extends ApiServiceBase {
|
|
|
404
404
|
return;
|
|
405
405
|
}
|
|
406
406
|
//Logging
|
|
407
|
-
let stopwatch = new Stopwatch("AppContextService: Requesting a new AppContext");
|
|
407
|
+
let stopwatch = new Stopwatch("@osovitny/anatoly. AppContextService: Requesting a new AppContext");
|
|
408
408
|
stopwatch.start();
|
|
409
409
|
this.subscription = this.get('getCurrentContext', null).subscribe({
|
|
410
410
|
next: (data) => {
|
|
@@ -472,11 +472,11 @@ class AppContextService extends ApiServiceBase {
|
|
|
472
472
|
this.usStates = data;
|
|
473
473
|
}
|
|
474
474
|
}));
|
|
475
|
-
let tasks$ =
|
|
475
|
+
let tasks$ = forkJoin([countries$, languages$, timezones$, usStates$]);
|
|
476
476
|
//Logging
|
|
477
|
-
let stopwatch = new Stopwatch("AppContextService: standard json files
|
|
477
|
+
let stopwatch = new Stopwatch("@osovitny/anatoly. AppContextService: loading standard json files");
|
|
478
478
|
stopwatch.start();
|
|
479
|
-
return tasks$.pipe(
|
|
479
|
+
return tasks$.pipe(tap(() => {
|
|
480
480
|
this.fireJsonFilesLoaded();
|
|
481
481
|
//Logging
|
|
482
482
|
stopwatch.stop();
|
|
@@ -2745,14 +2745,12 @@ class StarterService extends ApiServiceBase {
|
|
|
2745
2745
|
let context = this.appContext.current;
|
|
2746
2746
|
if (!is.objectNullOrEmpty(context)) {
|
|
2747
2747
|
//Logging
|
|
2748
|
-
this.logger.info('StarterService
|
|
2748
|
+
this.logger.info('@osovitny/anatoly. StarterService: getting AppContext from Session Storage');
|
|
2749
2749
|
this.appContext.init(context);
|
|
2750
2750
|
return of(context);
|
|
2751
2751
|
}
|
|
2752
2752
|
//Logging
|
|
2753
|
-
|
|
2754
|
-
//Logging
|
|
2755
|
-
let stopwatch = new Stopwatch("StarterService.applicationStarting: getting AppContext");
|
|
2753
|
+
let stopwatch = new Stopwatch("@osovitny/anatoly. StarterService: getting AppContext from API");
|
|
2756
2754
|
stopwatch.start();
|
|
2757
2755
|
this.baseUrl = `${ApiUrl}/appContext`;
|
|
2758
2756
|
return this.get('applicationStarting').pipe(map(data => {
|
|
@@ -2795,7 +2793,7 @@ class StarterService extends ApiServiceBase {
|
|
|
2795
2793
|
tasks$ = applicationStarting$;
|
|
2796
2794
|
}
|
|
2797
2795
|
//Logging
|
|
2798
|
-
let stopwatch = new Stopwatch("StarterService: ensureApplicationStarted");
|
|
2796
|
+
let stopwatch = new Stopwatch("@osovitny/anatoly. StarterService: ensureApplicationStarted");
|
|
2799
2797
|
stopwatch.start();
|
|
2800
2798
|
return tasks$.pipe(map(() => {
|
|
2801
2799
|
//Logging
|