@dereekb/dbx-firebase 11.0.1 → 11.0.2
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/esm2022/lib/auth/service/firebase.auth.service.mjs +27 -30
- package/esm2022/lib/model/loader/collection.change.trigger.mjs +7 -4
- package/esm2022/lib/model/loader/collection.loader.instance.mjs +8 -10
- package/esm2022/lib/model/loader/document.loader.instance.mjs +3 -5
- package/esm2022/lib/model/modules/store/store.collection.change.directive.mjs +1 -1
- package/esm2022/lib/model/modules/store/store.collection.directive.mjs +19 -4
- package/esm2022/lib/model/modules/store/store.document.directive.mjs +4 -4
- package/esm2022/lib/model/modules/store/store.subcollection.mjs +2 -1
- package/esm2022/lib/model/service/model.context.instance.mjs +50 -32
- package/esm2022/lib/model/system/systemstate.collection.store.mjs +1 -3
- package/esm2022/lib/model/system/systemstate.document.store.accessor.mjs +2 -3
- package/esm2022/lib/model/system/systemstate.document.store.mjs +1 -3
- package/fesm2022/dereekb-dbx-firebase.mjs +112 -89
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/auth/service/firebase.auth.service.d.ts +11 -11
- package/lib/model/loader/collection.change.trigger.d.ts +4 -3
- package/lib/model/loader/collection.loader.instance.d.ts +2 -3
- package/lib/model/loader/document.loader.instance.d.ts +1 -2
- package/lib/model/modules/store/store.collection.change.directive.d.ts +4 -4
- package/lib/model/modules/store/store.collection.change.if.directive.d.ts +1 -1
- package/lib/model/modules/store/store.collection.directive.d.ts +11 -4
- package/lib/model/modules/store/store.collection.list.directive.d.ts +1 -1
- package/lib/model/modules/store/store.document.directive.d.ts +1 -1
- package/lib/model/service/model.context.instance.d.ts +9 -23
- package/lib/model/system/systemstate.collection.store.d.ts +0 -1
- package/lib/model/system/systemstate.document.store.accessor.d.ts +1 -1
- package/lib/model/system/systemstate.document.store.d.ts +0 -1
- package/package.json +1 -1
|
@@ -196,7 +196,7 @@ class DbxFirebaseAuthService {
|
|
|
196
196
|
let result;
|
|
197
197
|
if (user) {
|
|
198
198
|
const jwtToken = await user.getIdTokenResult();
|
|
199
|
-
result =
|
|
199
|
+
result = dbxFirebaseAuthContextInfo(this, user, jwtToken);
|
|
200
200
|
}
|
|
201
201
|
return result;
|
|
202
202
|
}
|
|
@@ -258,35 +258,32 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
258
258
|
type: Injectable
|
|
259
259
|
}] });
|
|
260
260
|
/**
|
|
261
|
-
*
|
|
261
|
+
* Creates a new DbxFirebaseAuthContextInfo instance.
|
|
262
|
+
*
|
|
263
|
+
* @param service
|
|
264
|
+
* @param user
|
|
265
|
+
* @param jwtToken
|
|
266
|
+
* @returns
|
|
262
267
|
*/
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
}
|
|
281
|
-
|
|
282
|
-
return this.jwtToken.claims;
|
|
283
|
-
}
|
|
284
|
-
getAuthRoles() {
|
|
285
|
-
return this._roles();
|
|
286
|
-
}
|
|
287
|
-
get token() {
|
|
288
|
-
return this._token();
|
|
289
|
-
}
|
|
268
|
+
function dbxFirebaseAuthContextInfo(service, user, jwtToken) {
|
|
269
|
+
function getClaims() {
|
|
270
|
+
return jwtToken.claims;
|
|
271
|
+
}
|
|
272
|
+
const { uid } = user;
|
|
273
|
+
const token = firebaseAuthTokenFromUser(user);
|
|
274
|
+
const getAuthRoles = cachedGetter(() => service.rolesForClaims(getClaims()));
|
|
275
|
+
const isAdmin = cachedGetter(() => service.isAdminInAuthRoleSet(getAuthRoles()));
|
|
276
|
+
const result = {
|
|
277
|
+
service,
|
|
278
|
+
user,
|
|
279
|
+
jwtToken,
|
|
280
|
+
uid,
|
|
281
|
+
isAdmin,
|
|
282
|
+
getClaims,
|
|
283
|
+
getAuthRoles,
|
|
284
|
+
token
|
|
285
|
+
};
|
|
286
|
+
return result;
|
|
290
287
|
}
|
|
291
288
|
|
|
292
289
|
function readDbxAnalyticsUserPropertiesFromAuthUserInfo(user) {
|
|
@@ -2591,15 +2588,18 @@ function dbxFirebaseCollectionChangeWatcher(store, initialMode) {
|
|
|
2591
2588
|
*/
|
|
2592
2589
|
const DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION = (instance) => instance.watcher.store.restart();
|
|
2593
2590
|
class DbxFirebaseCollectionChangeTriggerInstance {
|
|
2594
|
-
config;
|
|
2595
2591
|
watcher;
|
|
2592
|
+
_config;
|
|
2596
2593
|
_triggerFunction = new BehaviorSubject(undefined);
|
|
2597
2594
|
_sub = new SubscriptionObject();
|
|
2598
2595
|
constructor(config) {
|
|
2599
|
-
this.
|
|
2596
|
+
this._config = config;
|
|
2600
2597
|
this.watcher = config.watcher;
|
|
2601
2598
|
this.triggerFunction = config.triggerFunction ?? DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION;
|
|
2602
2599
|
}
|
|
2600
|
+
get config() {
|
|
2601
|
+
return this._config;
|
|
2602
|
+
}
|
|
2603
2603
|
init() {
|
|
2604
2604
|
this._sub.subscription = this._triggerFunction
|
|
2605
2605
|
.pipe(switchMap((triggerFunction) => {
|
|
@@ -2614,7 +2614,7 @@ class DbxFirebaseCollectionChangeTriggerInstance {
|
|
|
2614
2614
|
}
|
|
2615
2615
|
destroy() {
|
|
2616
2616
|
this._triggerFunction.complete();
|
|
2617
|
-
if (this.
|
|
2617
|
+
if (this._config.destroyWatcherOnDestroy === true) {
|
|
2618
2618
|
this.watcher?.destroy();
|
|
2619
2619
|
}
|
|
2620
2620
|
}
|
|
@@ -2661,13 +2661,12 @@ function dbxFirebaseCollectionChangeTrigger(config) {
|
|
|
2661
2661
|
* DbxFirebaseModelLoader implementation within an instance.
|
|
2662
2662
|
*/
|
|
2663
2663
|
class DbxFirebaseCollectionLoaderInstance {
|
|
2664
|
-
|
|
2664
|
+
_maxPagesSub = new SubscriptionObject();
|
|
2665
2665
|
_collection = new BehaviorSubject(undefined);
|
|
2666
2666
|
_maxPages = new BehaviorSubject(undefined);
|
|
2667
2667
|
_itemsPerPage = new BehaviorSubject(undefined);
|
|
2668
2668
|
_constraints = new BehaviorSubject(undefined);
|
|
2669
2669
|
_restart = new Subject();
|
|
2670
|
-
_maxPagesSub = new SubscriptionObject();
|
|
2671
2670
|
collection$ = this._collection.pipe(distinctUntilChanged());
|
|
2672
2671
|
constraints$ = this._constraints.pipe(distinctUntilChanged());
|
|
2673
2672
|
iteratorFilter$ = combineLatest([this._itemsPerPage.pipe(distinctUntilChanged()), this.constraints$]).pipe(map(([limit, constraints]) => ({ limit, constraints, maxPageLoadLimit: this.maxPages })), shareReplay(1));
|
|
@@ -2704,19 +2703,18 @@ class DbxFirebaseCollectionLoaderInstance {
|
|
|
2704
2703
|
allDocuments$ = this.snapshotAccumulatorDocuments$.pipe(map((x) => x.flat()), shareReplay(1));
|
|
2705
2704
|
allDocumentData$ = this.accumulatorItems$.pipe(map((x) => x.flat()), shareReplay(1));
|
|
2706
2705
|
pageLoadingState$ = this.accumulator$.pipe(switchMap((x) => accumulatorFlattenPageListLoadingState(x)), shareReplay(1));
|
|
2707
|
-
constructor(
|
|
2708
|
-
this.
|
|
2709
|
-
this.
|
|
2710
|
-
this.
|
|
2711
|
-
this.
|
|
2712
|
-
this._constraints.next(this._initConfig?.constraints);
|
|
2706
|
+
constructor(initConfig) {
|
|
2707
|
+
this._collection.next(initConfig?.collection);
|
|
2708
|
+
this._maxPages.next(initConfig?.maxPages);
|
|
2709
|
+
this._itemsPerPage.next(initConfig?.itemsPerPage);
|
|
2710
|
+
this._constraints.next(initConfig?.constraints);
|
|
2713
2711
|
}
|
|
2714
2712
|
init() {
|
|
2715
2713
|
// When max pages changes, update the iteration's max page limit.
|
|
2716
2714
|
this._maxPagesSub.subscription = this._maxPages
|
|
2717
2715
|
.pipe(distinctUntilChanged(), filterMaybe(), // do not pass null/undefined values
|
|
2718
2716
|
switchMap((maxPageLoadLimit) => this.firestoreIteration$.pipe(tap((iteration) => {
|
|
2719
|
-
iteration.maxPageLoadLimit
|
|
2717
|
+
iteration.setMaxPageLoadLimit(maxPageLoadLimit);
|
|
2720
2718
|
}))))
|
|
2721
2719
|
.subscribe();
|
|
2722
2720
|
}
|
|
@@ -2796,7 +2794,6 @@ function dbxFirebaseCollectionLoaderInstanceWithCollection(collection) {
|
|
|
2796
2794
|
* DbxLimitedFirebaseDocumentLoader implementation within an instance.
|
|
2797
2795
|
*/
|
|
2798
2796
|
class DbxLimitedFirebaseDocumentLoaderInstance {
|
|
2799
|
-
_initConfig;
|
|
2800
2797
|
accessor;
|
|
2801
2798
|
_documents = new BehaviorSubject(undefined);
|
|
2802
2799
|
_restart = new Subject();
|
|
@@ -2817,9 +2814,8 @@ class DbxLimitedFirebaseDocumentLoaderInstance {
|
|
|
2817
2814
|
dataStream$ = this.snapshotsStream$.pipe(dataFromDocumentSnapshots(), shareReplay(1));
|
|
2818
2815
|
pageLoadingState$ = pageLoadingStateFromObs(this.data$, false);
|
|
2819
2816
|
pageLoadingStateStream$ = pageLoadingStateFromObs(this.dataStream$, false);
|
|
2820
|
-
constructor(
|
|
2821
|
-
this.
|
|
2822
|
-
this.accessor = this._initConfig.accessor;
|
|
2817
|
+
constructor(initConfig) {
|
|
2818
|
+
this.accessor = initConfig.accessor;
|
|
2823
2819
|
}
|
|
2824
2820
|
destroy() {
|
|
2825
2821
|
this._documents.complete();
|
|
@@ -2862,53 +2858,71 @@ function dbxFirebaseInContextFirebaseModelServiceInstanceFactory(context$) {
|
|
|
2862
2858
|
return (type, keyObs) => {
|
|
2863
2859
|
const key$ = asObservable(keyObs);
|
|
2864
2860
|
const modelServiceObs = context$.pipe(map((x) => x(type)), switchMap((service) => key$.pipe(map((key) => service(key)))));
|
|
2865
|
-
return
|
|
2861
|
+
return dbxFirebaseInContextFirebaseModelServiceInstance(modelServiceObs);
|
|
2866
2862
|
};
|
|
2867
2863
|
}
|
|
2868
2864
|
/**
|
|
2865
|
+
* Creates a new DbxFirebaseInContextFirebaseModelServiceInstance.
|
|
2866
|
+
*
|
|
2869
2867
|
* Wraps an InModelContextFirebaseModelService observable and provides different piped observables.
|
|
2870
2868
|
*/
|
|
2871
|
-
|
|
2872
|
-
modelService
|
|
2873
|
-
constructor(modelService$) {
|
|
2874
|
-
this.modelService$ = modelService$;
|
|
2875
|
-
}
|
|
2876
|
-
key$ = this.modelService$.pipe(map((x) => x.model.key));
|
|
2869
|
+
function dbxFirebaseInContextFirebaseModelServiceInstance(modelService$) {
|
|
2870
|
+
const key$ = modelService$.pipe(map((x) => x.model.key));
|
|
2877
2871
|
// MARK: Model
|
|
2878
|
-
modelType$ =
|
|
2879
|
-
model$ =
|
|
2880
|
-
snapshotData$ =
|
|
2881
|
-
snapshotStream(mode) {
|
|
2882
|
-
return
|
|
2872
|
+
const modelType$ = modelService$.pipe(map((x) => x.model.modelType), distinctUntilChanged());
|
|
2873
|
+
const model$ = modelService$.pipe(map((x) => x.model), distinctUntilChanged((a, b) => a.key === b.key), shareReplay(1));
|
|
2874
|
+
const snapshotData$ = model$.pipe(switchMap((x) => x.snapshotData()), shareReplay(1));
|
|
2875
|
+
function snapshotStream(mode) {
|
|
2876
|
+
return model$.pipe(switchMap((x) => x.snapshotStream(mode)), shareReplay(1));
|
|
2883
2877
|
}
|
|
2884
|
-
snapshotDataStream(mode, options) {
|
|
2885
|
-
return
|
|
2878
|
+
function snapshotDataStream(mode, options) {
|
|
2879
|
+
return model$.pipe(switchMap((x) => x.snapshotDataStream(mode)), shareReplay(1));
|
|
2886
2880
|
}
|
|
2887
2881
|
// MARK: Roles
|
|
2888
|
-
roleReader$ =
|
|
2889
|
-
roleMap$ =
|
|
2890
|
-
hasNoAccess$ =
|
|
2891
|
-
truthMap(input) {
|
|
2892
|
-
return
|
|
2882
|
+
const roleReader$ = modelService$.pipe(switchMap((x) => x.roleReader()), shareReplay(1));
|
|
2883
|
+
const roleMap$ = roleReader$.pipe(map((x) => x.roleMap), shareReplay(1));
|
|
2884
|
+
const hasNoAccess$ = roleReader$.pipe(map((x) => x.hasNoAccess()), shareReplay(1));
|
|
2885
|
+
function truthMap(input) {
|
|
2886
|
+
return roleReader$.pipe(map((x) => x.truthMap(input)), shareReplay(1));
|
|
2893
2887
|
}
|
|
2894
|
-
hasAnyRoles(roles) {
|
|
2895
|
-
return
|
|
2888
|
+
function hasAnyRoles(roles) {
|
|
2889
|
+
return hasRoles('any', roles);
|
|
2896
2890
|
}
|
|
2897
|
-
hasAllRoles(roles) {
|
|
2898
|
-
return
|
|
2891
|
+
function hasAllRoles(roles) {
|
|
2892
|
+
return hasRoles('all', roles);
|
|
2899
2893
|
}
|
|
2900
|
-
hasRoles(setIncludes, roles) {
|
|
2901
|
-
return
|
|
2894
|
+
function hasRoles(setIncludes, roles) {
|
|
2895
|
+
return roleReader$.pipe(map((x) => x.hasRoles(setIncludes, roles)), distinctUntilChanged(), shareReplay(1));
|
|
2902
2896
|
}
|
|
2903
|
-
containsAnyRoles(roles) {
|
|
2904
|
-
return
|
|
2897
|
+
function containsAnyRoles(roles) {
|
|
2898
|
+
return containsRoles('any', roles);
|
|
2905
2899
|
}
|
|
2906
|
-
containsAllRoles(roles) {
|
|
2907
|
-
return
|
|
2900
|
+
function containsAllRoles(roles) {
|
|
2901
|
+
return containsRoles('all', roles);
|
|
2908
2902
|
}
|
|
2909
|
-
containsRoles(setIncludes, roles) {
|
|
2910
|
-
return
|
|
2903
|
+
function containsRoles(setIncludes, roles) {
|
|
2904
|
+
return roleReader$.pipe(map((x) => x.containsRoles(setIncludes, roles)), distinctUntilChanged(), shareReplay(1));
|
|
2911
2905
|
}
|
|
2906
|
+
const result = {
|
|
2907
|
+
modelService$,
|
|
2908
|
+
key$,
|
|
2909
|
+
modelType$,
|
|
2910
|
+
model$,
|
|
2911
|
+
snapshotData$,
|
|
2912
|
+
snapshotStream,
|
|
2913
|
+
snapshotDataStream,
|
|
2914
|
+
roleReader$,
|
|
2915
|
+
roleMap$,
|
|
2916
|
+
hasNoAccess$,
|
|
2917
|
+
truthMap,
|
|
2918
|
+
hasAnyRoles,
|
|
2919
|
+
hasAllRoles,
|
|
2920
|
+
hasRoles,
|
|
2921
|
+
containsAnyRoles,
|
|
2922
|
+
containsAllRoles,
|
|
2923
|
+
containsRoles
|
|
2924
|
+
};
|
|
2925
|
+
return result;
|
|
2912
2926
|
}
|
|
2913
2927
|
|
|
2914
2928
|
/**
|
|
@@ -3311,6 +3325,9 @@ class DbxFirebaseDocumentStoreDirective {
|
|
|
3311
3325
|
ngOnDestroy() {
|
|
3312
3326
|
this._store.complete();
|
|
3313
3327
|
}
|
|
3328
|
+
get store() {
|
|
3329
|
+
return this._store.value;
|
|
3330
|
+
}
|
|
3314
3331
|
/**
|
|
3315
3332
|
* Replaces the internal store.
|
|
3316
3333
|
*/
|
|
@@ -3318,9 +3335,6 @@ class DbxFirebaseDocumentStoreDirective {
|
|
|
3318
3335
|
this._store.next(store);
|
|
3319
3336
|
}
|
|
3320
3337
|
// MARK: Inputs
|
|
3321
|
-
get store() {
|
|
3322
|
-
return this._store.value;
|
|
3323
|
-
}
|
|
3324
3338
|
set documentId(documentId) {
|
|
3325
3339
|
useFirst(this.store$, (x) => x.setId(documentId));
|
|
3326
3340
|
}
|
|
@@ -3450,11 +3464,24 @@ function dbxFirebaseSourceSelectLoadSource(config) {
|
|
|
3450
3464
|
* Abstract directive that contains a DbxFirebaseCollectionStore and provides an interface for communicating with other directives.
|
|
3451
3465
|
*/
|
|
3452
3466
|
class DbxFirebaseCollectionStoreDirective {
|
|
3453
|
-
|
|
3467
|
+
_store = new BehaviorSubject(undefined);
|
|
3468
|
+
store$ = this._store.pipe(filterMaybe(), shareReplay(1));
|
|
3469
|
+
pageLoadingState$ = this.store$.pipe(switchMap((x) => x.pageLoadingState$));
|
|
3454
3470
|
constructor(store) {
|
|
3455
|
-
this.store
|
|
3471
|
+
this.replaceStore(store);
|
|
3472
|
+
}
|
|
3473
|
+
get store() {
|
|
3474
|
+
return this._store.value;
|
|
3475
|
+
}
|
|
3476
|
+
ngOnDestroy() {
|
|
3477
|
+
this._store.complete();
|
|
3478
|
+
}
|
|
3479
|
+
/**
|
|
3480
|
+
* Replaces the internal store.
|
|
3481
|
+
*/
|
|
3482
|
+
replaceStore(store) {
|
|
3483
|
+
this._store.next(store);
|
|
3456
3484
|
}
|
|
3457
|
-
pageLoadingState$ = this.store.pageLoadingState$;
|
|
3458
3485
|
// MARK: Inputs
|
|
3459
3486
|
set maxPages(maxPages) {
|
|
3460
3487
|
this.store.setMaxPages(maxPages);
|
|
@@ -4137,6 +4164,7 @@ function setParentStoreEffect(store) {
|
|
|
4137
4164
|
* Abstract DbxFirebaseCollectionStore that has a parent document from which is derives it's FiresbaseCollection from.
|
|
4138
4165
|
*/
|
|
4139
4166
|
class AbstractDbxFirebaseCollectionWithParentStore extends AbstractDbxFirebaseCollectionStore {
|
|
4167
|
+
// NOTE: Injection does not occur here, but we need @Injectable to compile properly for Angular usage
|
|
4140
4168
|
constructor(state, defaultSourceMode) {
|
|
4141
4169
|
super(state);
|
|
4142
4170
|
this.setSourceMode(defaultSourceMode || 'parent');
|
|
@@ -4326,10 +4354,8 @@ function provideDbxFirebaseCollectionWithParentStoreDirective(sourceType, storeT
|
|
|
4326
4354
|
}
|
|
4327
4355
|
|
|
4328
4356
|
class SystemStateCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
4329
|
-
collections;
|
|
4330
4357
|
constructor(collections) {
|
|
4331
4358
|
super({ firestoreCollection: collections.systemStateCollection });
|
|
4332
|
-
this.collections = collections;
|
|
4333
4359
|
}
|
|
4334
4360
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SystemStateCollectionStore, deps: [{ token: i1$3.SystemStateFirestoreCollections }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4335
4361
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SystemStateCollectionStore });
|
|
@@ -4354,10 +4380,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4354
4380
|
}], ctorParameters: function () { return [{ type: SystemStateCollectionStore }]; } });
|
|
4355
4381
|
|
|
4356
4382
|
class SystemStateDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
4357
|
-
collections;
|
|
4358
4383
|
constructor(collections) {
|
|
4359
4384
|
super({ firestoreCollection: collections.systemStateCollection });
|
|
4360
|
-
this.collections = collections;
|
|
4361
4385
|
}
|
|
4362
4386
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SystemStateDocumentStore, deps: [{ token: i1$3.SystemStateFirestoreCollections }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4363
4387
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SystemStateDocumentStore });
|
|
@@ -4370,15 +4394,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4370
4394
|
* Abstract class used for accessing a SystemStateDocumentStore's data.
|
|
4371
4395
|
*/
|
|
4372
4396
|
class AbstractSystemStateDocumentStoreAccessor {
|
|
4373
|
-
type;
|
|
4374
4397
|
systemStateDocumentStore = inject((SystemStateDocumentStore));
|
|
4375
4398
|
documentData$ = this.systemStateDocumentStore.data$;
|
|
4376
4399
|
data$ = this.documentData$.pipe(map((x) => x.data), shareReplay(1));
|
|
4377
4400
|
dataState$ = this.systemStateDocumentStore.dataLoadingState$.pipe(mapLoadingState({ mapValue: (x) => x.data }), shareReplay(1));
|
|
4378
4401
|
exists$ = this.systemStateDocumentStore.exists$;
|
|
4379
4402
|
doesNotExist$ = this.systemStateDocumentStore.doesNotExist$;
|
|
4403
|
+
type$ = this.systemStateDocumentStore.id$;
|
|
4380
4404
|
constructor(type) {
|
|
4381
|
-
this.type = type;
|
|
4382
4405
|
this.systemStateDocumentStore.setId(type);
|
|
4383
4406
|
}
|
|
4384
4407
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AbstractSystemStateDocumentStoreAccessor, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
@@ -4549,5 +4572,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4549
4572
|
* Generated bundle index. Do not edit.
|
|
4550
4573
|
*/
|
|
4551
4574
|
|
|
4552
|
-
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractRootSingleItemDbxFirebaseDocument, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_OPTIONS_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_CONFIG_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_TOKEN, DBX_FIRESTORE_CONTEXT_TOKEN, DEFAULT_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_TEMPLATE, DEFAULT_DBX_FIREBASE_ANALYTICS_USER_PROPERTIES_FACTORY, DEFAULT_DBX_FIREBASE_AUTH_SERVICE_DELEGATE, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN, DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION, DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY, DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN, DEFAULT_FIREBASE_HISTORY_COMPONENT_POPOVER_KEY, DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DbxFirebaseAnalyticsUserEventsListener, DbxFirebaseAnalyticsUserSource, DbxFirebaseAppCheckHttpInterceptor,
|
|
4575
|
+
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractRootSingleItemDbxFirebaseDocument, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_OPTIONS_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_CONFIG_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_TOKEN, DBX_FIRESTORE_CONTEXT_TOKEN, DEFAULT_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_TEMPLATE, DEFAULT_DBX_FIREBASE_ANALYTICS_USER_PROPERTIES_FACTORY, DEFAULT_DBX_FIREBASE_AUTH_SERVICE_DELEGATE, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN, DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION, DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY, DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN, DEFAULT_FIREBASE_HISTORY_COMPONENT_POPOVER_KEY, DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DbxFirebaseAnalyticsUserEventsListener, DbxFirebaseAnalyticsUserSource, DbxFirebaseAppCheckHttpInterceptor, DbxFirebaseAuthLoginService, DbxFirebaseAuthModule, DbxFirebaseAuthService, DbxFirebaseAuthServiceDelegate, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionChangeTriggerInstance, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionLoaderInstance, DbxFirebaseCollectionStoreDirective, DbxFirebaseCollectionWithParentStoreDirective, DbxFirebaseDefaultAppCheckProviderModule, DbxFirebaseDefaultAuthProviderModule, DbxFirebaseDefaultFirebaseProvidersModule, DbxFirebaseDefaultFirestoreProviderModule, DbxFirebaseDefaultFunctionsProviderModule, DbxFirebaseDefaultStorageProviderModule, DbxFirebaseDevelopmentDirective, DbxFirebaseDevelopmentModule, DbxFirebaseDevelopmentModuleRootConfig, DbxFirebaseDevelopmentPopupComponent, DbxFirebaseDevelopmentPopupContentComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxFirebaseDevelopmentSchedulerListComponent, DbxFirebaseDevelopmentSchedulerListViewComponent, DbxFirebaseDevelopmentSchedulerListViewItemComponent, DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentSchedulerWidgetComponent, DbxFirebaseDevelopmentService, DbxFirebaseDevelopmentWidgetService, DbxFirebaseDocumentAuthIdDirective, DbxFirebaseDocumentLoaderInstance, DbxFirebaseDocumentStoreDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseDocumentStoreRouteKeyDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFirebaseEmulatorModule, DbxFirebaseEmulatorService, DbxFirebaseFirestoreCollectionModule, DbxFirebaseFunctionsModule, DbxFirebaseLoginAnonymousComponent, DbxFirebaseLoginAppleComponent, DbxFirebaseLoginButtonComponent, DbxFirebaseLoginButtonContainerComponent, DbxFirebaseLoginComponent, DbxFirebaseLoginContext, DbxFirebaseLoginContextBackButtonComponent, DbxFirebaseLoginContextDirective, DbxFirebaseLoginEmailComponent, DbxFirebaseLoginEmailContentComponent, DbxFirebaseLoginFacebookComponent, DbxFirebaseLoginGitHubComponent, DbxFirebaseLoginGoogleComponent, DbxFirebaseLoginListComponent, DbxFirebaseLoginMicrosoftComponent, DbxFirebaseLoginModule, DbxFirebaseLoginModuleRootConfig, DbxFirebaseLoginTermsComponent, DbxFirebaseLoginTermsSimpleComponent, DbxFirebaseLoginTwitterComponent, DbxFirebaseModelContextService, DbxFirebaseModelHistoryComponent, DbxFirebaseModelHistoryModule, DbxFirebaseModelHistoryPopoverButtonComponent, DbxFirebaseModelHistoryPopoverComponent, DbxFirebaseModelModule, DbxFirebaseModelStoreModule, DbxFirebaseModelTrackerService, DbxFirebaseModelTypeInstanceComponent, DbxFirebaseModelTypeInstanceViewComponent, DbxFirebaseModelTypeInstanceViewItemComponent, DbxFirebaseModelTypesModule, DbxFirebaseModelTypesService, DbxFirebaseModelTypesServiceConfig, DbxFirebaseModule, DbxFirebaseParsedEmulatorsConfig, DbxFirebasePipeModule, DbxFirebaseRegisterComponent, DbxFirebaseRegisterEmailComponent, DbxFirebaseStorageModule, DbxFirebaseStorageService, DbxFirebaseSystemStateCollectionStoreDirective, DbxFirebaseSystemStateDocumentStoreDirective, DbxFirestoreContextService, DbxLimitedFirebaseDocumentLoaderInstance, DbxfirebaseModelViewedEventDirective, FlatFirestoreModelKeyPipe, OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY, SystemStateCollectionStore, SystemStateDocumentStore, TwoWayFlatFirestoreModelKeyPipe, authRolesObsWithClaimsService, authUserInfoFromAuthUser, authUserStateFromFirebaseAuthServiceFunction, dbxFirebaseAuthContextInfo, dbxFirebaseCollectionChangeTrigger, dbxFirebaseCollectionChangeTriggerForStore, dbxFirebaseCollectionChangeTriggerForWatcher, dbxFirebaseCollectionChangeWatcher, dbxFirebaseCollectionLoaderInstance, dbxFirebaseCollectionLoaderInstanceWithCollection, dbxFirebaseDocumentLoaderInstance, dbxFirebaseDocumentLoaderInstanceWithAccessor, dbxFirebaseIdRouteParamRedirect, dbxFirebaseInContextFirebaseModelServiceInstance, dbxFirebaseInContextFirebaseModelServiceInstanceFactory, dbxFirebaseKeyRouteParamRedirect, dbxFirebaseModelContextServiceInfoInstanceFactory, dbxFirebaseModelTypesServiceInstance, dbxFirebaseModelTypesServiceInstancePairForKeysFactory, dbxFirebaseSourceSelectLoadSource, dbxFirebaseStorageModuleContextConfigFactory, dbxLimitedFirebaseDocumentLoaderInstance, dbxLimitedFirebaseDocumentLoaderInstanceWithAccessor, defaultDbxFirebaseAuthServiceDelegateWithClaimsService, defaultFirebaseAuthLoginProvidersFactory, developmentFirebaseServerSchedulerWidgetEntry, enableAppCheckDebugTokenGeneration, firebaseAuthTokenFromUser, firebaseContextServiceEntityMap, firebaseDocumentStoreCreateFunction, firebaseDocumentStoreCrudFunction, firebaseDocumentStoreDeleteFunction, firebaseDocumentStoreReadFunction, firebaseDocumentStoreUpdateFunction, modelDoesNotExistError, provideDbxFirebaseCollectionStoreDirective, provideDbxFirebaseCollectionWithParentStoreDirective, provideDbxFirebaseDocumentStoreDirective, provideSystemStateFirestoreCollections, readDbxAnalyticsUserPropertiesFromAuthUserInfo, readValueFromIdToken, setParentStoreEffect, stateFromTokenForLoggedInUserFunction };
|
|
4553
4576
|
//# sourceMappingURL=dereekb-dbx-firebase.mjs.map
|