@osovitny/anatoly 3.19.9 → 3.19.11
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.
|
@@ -3,7 +3,7 @@ import { Injectable, EventEmitter, Component, Output, Input, Inject, Pipe, provi
|
|
|
3
3
|
import { BehaviorSubject, Subject, filter, takeUntil, map as map$1, catchError, of, merge, forkJoin, timer, fromEvent, firstValueFrom } from 'rxjs';
|
|
4
4
|
import { map, tap, mergeMap } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
|
-
import { HttpResponse, HttpClient,
|
|
6
|
+
import { HttpResponse, HttpClient, HTTP_INTERCEPTORS, HttpClientModule } from '@angular/common/http';
|
|
7
7
|
import * as i1$1 from '@angular/common';
|
|
8
8
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
9
9
|
import js_beautify from 'js-beautify';
|
|
@@ -2423,29 +2423,36 @@ class LoadingService extends BehaviorSubject {
|
|
|
2423
2423
|
//Public
|
|
2424
2424
|
this.isFreezed = false;
|
|
2425
2425
|
}
|
|
2426
|
-
|
|
2427
|
-
this.counter++;
|
|
2426
|
+
setTimeout(fn, timeout = 500) {
|
|
2428
2427
|
let that = this;
|
|
2429
2428
|
setTimeout(() => {
|
|
2429
|
+
if (fn)
|
|
2430
|
+
fn(that);
|
|
2431
|
+
}, timeout);
|
|
2432
|
+
}
|
|
2433
|
+
show() {
|
|
2434
|
+
this.counter++;
|
|
2435
|
+
this.setTimeout((that) => {
|
|
2430
2436
|
if (that.counter > 0) {
|
|
2431
2437
|
that.next(true);
|
|
2432
2438
|
}
|
|
2433
|
-
}
|
|
2439
|
+
});
|
|
2434
2440
|
}
|
|
2435
2441
|
hide() {
|
|
2436
2442
|
if (this.counter <= 0) {
|
|
2437
2443
|
return;
|
|
2438
2444
|
}
|
|
2439
2445
|
this.counter--;
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2446
|
+
this.setTimeout((that) => {
|
|
2447
|
+
if (that.counter == 0) {
|
|
2448
|
+
that.next(false);
|
|
2449
|
+
}
|
|
2450
|
+
});
|
|
2443
2451
|
}
|
|
2444
2452
|
freeze(timeout = 1000) {
|
|
2445
2453
|
this.isFreezed = true;
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
this.isFreezed = false;
|
|
2454
|
+
this.setTimeout((that) => {
|
|
2455
|
+
that.isFreezed = false;
|
|
2449
2456
|
}, timeout);
|
|
2450
2457
|
}
|
|
2451
2458
|
reset() {
|
|
@@ -3060,7 +3067,6 @@ class LocalizationSettingsModule {
|
|
|
3060
3067
|
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
3061
3068
|
TranslateService,
|
|
3062
3069
|
LocalizationService,
|
|
3063
|
-
provideHttpClient(withFetch()),
|
|
3064
3070
|
provideAppInitializer(() => {
|
|
3065
3071
|
const translate = inject(TranslateService);
|
|
3066
3072
|
const localizationService = inject(LocalizationService);
|
|
@@ -3090,7 +3096,6 @@ class LocalizationSettingsModule {
|
|
|
3090
3096
|
providers: [
|
|
3091
3097
|
TranslateService,
|
|
3092
3098
|
LocalizationService,
|
|
3093
|
-
provideHttpClient(withFetch()),
|
|
3094
3099
|
provideAppInitializer(() => {
|
|
3095
3100
|
const translate = inject(TranslateService);
|
|
3096
3101
|
const localizationService = inject(LocalizationService);
|