@elderbyte/ngx-starter 15.6.2 → 15.6.3
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.
- package/esm2020/lib/common/data/data-context/data-context-auto-starter.mjs +6 -4
- package/esm2020/lib/common/data/data-context/data-context-base.mjs +1 -1
- package/esm2020/lib/common/data/data-context/data-context.mjs +1 -1
- package/fesm2015/elderbyte-ngx-starter.mjs +5 -3
- package/fesm2015/elderbyte-ngx-starter.mjs.map +1 -1
- package/fesm2020/elderbyte-ngx-starter.mjs +5 -3
- package/fesm2020/elderbyte-ngx-starter.mjs.map +1 -1
- package/lib/common/data/data-context/data-context.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import * as i1 from '@angular/platform-browser';
|
|
|
6
6
|
import { Duration, Period, TemporalQueries, LocalTime, Instant, LocalDate, nativeJs, ZoneId, ZonedDateTime, Temporal } from '@js-joda/core';
|
|
7
7
|
import { LoggerFactory } from '@elderbyte/ts-logger';
|
|
8
8
|
import { BehaviorSubject, Subject, EMPTY, combineLatest, merge, of, forkJoin, throwError, mergeWith, switchMap as switchMap$1, Observable, ReplaySubject, fromEvent, NEVER } from 'rxjs';
|
|
9
|
-
import { distinctUntilChanged, map, filter, takeUntil, debounceTime, catchError, first, take, switchMap, mergeMap,
|
|
9
|
+
import { distinctUntilChanged, map, filter, takeUntil, debounceTime, catchError, first, take, switchMap, mergeMap, tap, takeWhile, expand, reduce, startWith, skip, delay, share, throttleTime, combineLatestWith, timeout, skipWhile } from 'rxjs/operators';
|
|
10
10
|
import * as i1$2 from '@angular/common/http';
|
|
11
11
|
import { HttpParams, HttpEventType, HttpRequest, HttpClient, HttpErrorResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
12
12
|
import { DataSource } from '@angular/cdk/collections';
|
|
@@ -4385,8 +4385,10 @@ class DataContextAutoStarter extends DataContextLifeCycleBinding {
|
|
|
4385
4385
|
* *
|
|
4386
4386
|
**************************************************************************/
|
|
4387
4387
|
subscribe() {
|
|
4388
|
-
|
|
4389
|
-
|
|
4388
|
+
const hasRequiredFilters = !!this._autoStartConditionFulfilled$;
|
|
4389
|
+
if (hasRequiredFilters) {
|
|
4390
|
+
const startedTrue$ = this._dataContext.isStarted$.pipe(filter(t => t));
|
|
4391
|
+
this._subscription = this._autoStartConditionFulfilled$.pipe(takeUntil(startedTrue$), tap(fulfilled => this.logger.debug(`Got fulfilled event: ${fulfilled}`)), filter(fulfilled => !!fulfilled)).subscribe(() => this.startDataContext());
|
|
4390
4392
|
}
|
|
4391
4393
|
}
|
|
4392
4394
|
/***************************************************************************
|