@osovitny/anatoly 3.19.36 → 3.19.38
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';
|
|
@@ -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("@osovitny/anatoly. 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();
|
|
@@ -7246,7 +7246,7 @@ class CountryDropdownlist extends EditComponentBase {
|
|
|
7246
7246
|
setValues() {
|
|
7247
7247
|
this.appContext.jsonFilesLoaded$.subscribe({
|
|
7248
7248
|
next: () => {
|
|
7249
|
-
this.items = this.appContext.countries
|
|
7249
|
+
this.items = this.appContext.countries?.reverse();
|
|
7250
7250
|
}
|
|
7251
7251
|
});
|
|
7252
7252
|
if (this.isNgModelBased) {
|
|
@@ -7659,7 +7659,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
7659
7659
|
setValues() {
|
|
7660
7660
|
this.appContext.jsonFilesLoaded$.subscribe({
|
|
7661
7661
|
next: () => {
|
|
7662
|
-
this.items = this.appContext.timezones
|
|
7662
|
+
this.items = this.appContext.timezones?.reverse();
|
|
7663
7663
|
}
|
|
7664
7664
|
});
|
|
7665
7665
|
if (this.isNgModelBased) {
|