@osovitny/anatoly 3.19.46 → 3.19.47
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.
|
@@ -356,9 +356,9 @@ class AppContextService extends ApiServiceBase {
|
|
|
356
356
|
//userUpdated
|
|
357
357
|
this._userUpdated = new BehaviorSubject(null);
|
|
358
358
|
this.userUpdated$ = this._userUpdated.asObservable();
|
|
359
|
-
//
|
|
360
|
-
this.
|
|
361
|
-
this.
|
|
359
|
+
//standardJsonFilesLoaded
|
|
360
|
+
this._standardJsonFilesLoaded = new BehaviorSubject(null);
|
|
361
|
+
this.standardJsonFilesLoaded$ = this._standardJsonFilesLoaded.asObservable();
|
|
362
362
|
this.baseUrl = `${ApiUrl}/appContext`;
|
|
363
363
|
}
|
|
364
364
|
//fires
|
|
@@ -371,8 +371,8 @@ class AppContextService extends ApiServiceBase {
|
|
|
371
371
|
fireUserUpdated() {
|
|
372
372
|
this._userUpdated.next(null);
|
|
373
373
|
}
|
|
374
|
-
|
|
375
|
-
this.
|
|
374
|
+
fireStandardJsonFilesLoaded() {
|
|
375
|
+
this._standardJsonFilesLoaded.next(null);
|
|
376
376
|
}
|
|
377
377
|
//API
|
|
378
378
|
getCountriesJsonFile() {
|
|
@@ -477,7 +477,7 @@ class AppContextService extends ApiServiceBase {
|
|
|
477
477
|
let stopwatch = new Stopwatch("@osovitny/anatoly. AppContextService: loading standard json files");
|
|
478
478
|
stopwatch.start();
|
|
479
479
|
return tasks$.pipe(tap(() => {
|
|
480
|
-
this.
|
|
480
|
+
this.fireStandardJsonFilesLoaded();
|
|
481
481
|
//Logging
|
|
482
482
|
stopwatch.stop();
|
|
483
483
|
stopwatch.printElapsedAsMilliseconds();
|
|
@@ -7210,7 +7210,7 @@ class CountryDropdownlist extends EditComponentBase {
|
|
|
7210
7210
|
this.setValues();
|
|
7211
7211
|
}
|
|
7212
7212
|
setValues() {
|
|
7213
|
-
this.appContext.
|
|
7213
|
+
this.appContext.standardJsonFilesLoaded$.subscribe({
|
|
7214
7214
|
next: () => {
|
|
7215
7215
|
this.items = Utils.sortArray(this.appContext.countries);
|
|
7216
7216
|
}
|
|
@@ -7279,7 +7279,7 @@ class LanguageDropdownlist extends EditComponentBase {
|
|
|
7279
7279
|
this.appContext = appContext;
|
|
7280
7280
|
}
|
|
7281
7281
|
ngOnInit() {
|
|
7282
|
-
this.appContext.
|
|
7282
|
+
this.appContext.standardJsonFilesLoaded$.subscribe({
|
|
7283
7283
|
next: () => {
|
|
7284
7284
|
this.items = Utils.sortArray(this.appContext.languages);
|
|
7285
7285
|
}
|
|
@@ -7688,7 +7688,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
7688
7688
|
this.setValues();
|
|
7689
7689
|
}
|
|
7690
7690
|
setValues() {
|
|
7691
|
-
this.appContext.
|
|
7691
|
+
this.appContext.standardJsonFilesLoaded$.subscribe({
|
|
7692
7692
|
next: () => {
|
|
7693
7693
|
this.items = Utils.sortArray(this.appContext.timezones);
|
|
7694
7694
|
}
|
|
@@ -9737,7 +9737,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
9737
9737
|
this.title = 'Address';
|
|
9738
9738
|
}
|
|
9739
9739
|
ngOnInit() {
|
|
9740
|
-
this.appContext.
|
|
9740
|
+
this.appContext.standardJsonFilesLoaded$.subscribe({
|
|
9741
9741
|
next: () => {
|
|
9742
9742
|
this.countryData = Utils.sortArray(this.appContext.countries);
|
|
9743
9743
|
this.usStateData = Utils.sortArray(this.appContext.usStates);
|