@dereekb/dbx-firebase 9.20.2 → 9.20.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/development/development.popup.content.component.mjs +3 -3
- package/esm2020/lib/development/development.scheduler.widget.component.mjs +3 -3
- package/fesm2015/dereekb-dbx-firebase.mjs +3 -3
- package/fesm2015/dereekb-dbx-firebase.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-firebase.mjs +3 -3
- package/fesm2020/dereekb-dbx-firebase.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, Optional, InjectionToken, Inject, Component, Input, Directive, EventEmitter, Output, NgModule, Injector, ViewChild, HostListener, forwardRef, Host } from '@angular/core';
|
|
3
3
|
import { switchMap, of, shareReplay, map, distinctUntilChanged, catchError, firstValueFrom, BehaviorSubject, combineLatest, from, first, tap, interval, exhaustMap, filter, take, startWith, EMPTY, Subject, throttleTime, NEVER, combineLatestWith } from 'rxjs';
|
|
4
|
-
import { asObservable, timeoutStartWith, filterMaybe, isNot, SubscriptionObject, lazyFrom, switchMapWhileTrue, loadingStateFromObs,
|
|
4
|
+
import { asObservable, timeoutStartWith, filterMaybe, isNot, SubscriptionObject, lazyFrom, switchMapWhileTrue, loadingStateFromObs, cleanupDestroyable, accumulatorFlattenPageListLoadingState, useFirst, pageLoadingStateFromObs, useAsObservable, distinctUntilModelKeyChange, successResult, beginLoading, errorResult, cleanup, mapLoadingState } from '@dereekb/rxjs';
|
|
5
5
|
import * as i2$2 from '@dereekb/dbx-core';
|
|
6
6
|
import { loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, authUserIdentifier, DbxInjectionContext, AbstractForwardDbxInjectionContextDirective, DBX_INJECTION_COMPONENT_DATA, DbxInjectionComponentModule, DbxAuthService, AbstractSubscriptionDirective, AbstractIfDirective, DbxRouteParamReaderInstance, DbxRouteParamDefaultRedirectInstance, LockSetComponentStore } from '@dereekb/dbx-core';
|
|
7
7
|
import * as i1 from '@angular/fire/auth';
|
|
@@ -1728,7 +1728,7 @@ class DbxFirebaseDevelopmentSchedulerWidgetComponent {
|
|
|
1728
1728
|
constructor(dbxFirebaseDevelopmentSchedulerService) {
|
|
1729
1729
|
this.dbxFirebaseDevelopmentSchedulerService = dbxFirebaseDevelopmentSchedulerService;
|
|
1730
1730
|
this.entries$ = this.dbxFirebaseDevelopmentSchedulerService.schedulerList$;
|
|
1731
|
-
this.state$ = loadingStateFromObs(this.entries$)
|
|
1731
|
+
this.state$ = loadingStateFromObs(this.entries$);
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
1734
|
DbxFirebaseDevelopmentSchedulerWidgetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerWidgetComponent, deps: [{ token: DbxFirebaseDevelopmentSchedulerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -2124,7 +2124,7 @@ class DbxFirebaseDevelopmentPopupContentComponent {
|
|
|
2124
2124
|
this.entries = this.dbxFirebaseDevelopmentWidgetService.getEntries();
|
|
2125
2125
|
this._activeEntrySelector = new BehaviorSubject(DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY);
|
|
2126
2126
|
this.isLoggedIn$ = this.dbxAuthService.isLoggedIn$;
|
|
2127
|
-
this.entries$ = this.isLoggedIn$.pipe(distinctUntilChanged(), map((isLoggedIn) => this.entries),
|
|
2127
|
+
this.entries$ = this.isLoggedIn$.pipe(distinctUntilChanged(), map((isLoggedIn) => this.entries), shareReplay(1));
|
|
2128
2128
|
this.formConfig$ = this.entries$.pipe(map((entries) => ({ entries })));
|
|
2129
2129
|
this.activeEntrySelector$ = this._activeEntrySelector.pipe(distinctUntilChanged());
|
|
2130
2130
|
this.currentActiveEntry$ = combineLatest([this.entries$, this.activeEntrySelector$]).pipe(map(([entries, selector]) => (selector ? entries.find((e) => e.widget.type === selector) : undefined)), shareReplay(1));
|