@dereekb/dbx-firebase 12.0.2 → 12.0.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.
Files changed (37) hide show
  1. package/esm2022/lib/development/development.popup.content.component.mjs +5 -3
  2. package/esm2022/lib/model/modules/model/history/model.history.popover.button.component.mjs +4 -4
  3. package/esm2022/lib/model/modules/store/index.mjs +1 -4
  4. package/esm2022/lib/model/modules/store/model.store.module.mjs +5 -7
  5. package/esm2022/lib/model/modules/store/store.collection.change.directive.mjs +10 -11
  6. package/esm2022/lib/model/modules/store/store.collection.change.if.directive.mjs +10 -21
  7. package/esm2022/lib/model/modules/store/store.collection.list.directive.mjs +4 -3
  8. package/esm2022/lib/model/modules/store/store.document.mjs +2 -2
  9. package/esm2022/lib/model/modules/store/store.document.twoway.key.directive.mjs +8 -6
  10. package/esm2022/lib/model/modules/store/store.document.twoway.key.source.directive.mjs +4 -3
  11. package/esm2022/lib/modules/notification/container/notification.item.store.popover.component.mjs +4 -4
  12. package/esm2022/lib/pipe/index.mjs +3 -2
  13. package/esm2022/lib/pipe/key.flat.pipe.mjs +20 -0
  14. package/esm2022/lib/pipe/key.twoway.pipe.mjs +20 -0
  15. package/esm2022/lib/pipe/pipe.module.mjs +12 -6
  16. package/esm2022/lib/storage/firebase.storage.providers.mjs +2 -1
  17. package/fesm2022/dereekb-dbx-firebase.mjs +70 -187
  18. package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
  19. package/lib/model/modules/store/index.d.ts +0 -3
  20. package/lib/model/modules/store/model.store.module.d.ts +3 -4
  21. package/lib/model/modules/store/store.collection.change.directive.d.ts +3 -3
  22. package/lib/model/modules/store/store.collection.change.if.directive.d.ts +3 -8
  23. package/lib/model/modules/store/store.collection.list.directive.d.ts +1 -1
  24. package/lib/model/modules/store/store.document.twoway.key.directive.d.ts +3 -4
  25. package/lib/model/modules/store/store.document.twoway.key.source.directive.d.ts +1 -1
  26. package/lib/pipe/index.d.ts +2 -1
  27. package/lib/pipe/key.flat.pipe.d.ts +9 -0
  28. package/lib/pipe/{key.pipe.d.ts → key.twoway.pipe.d.ts} +1 -6
  29. package/lib/pipe/pipe.module.d.ts +8 -2
  30. package/package.json +1 -1
  31. package/esm2022/lib/model/modules/store/store.document.auth.directive.mjs +0 -26
  32. package/esm2022/lib/model/modules/store/store.document.router.directive.mjs +0 -47
  33. package/esm2022/lib/model/modules/store/store.document.router.key.directive.mjs +0 -52
  34. package/esm2022/lib/pipe/key.pipe.mjs +0 -36
  35. package/lib/model/modules/store/store.document.auth.directive.d.ts +0 -18
  36. package/lib/model/modules/store/store.document.router.directive.d.ts +0 -21
  37. package/lib/model/modules/store/store.document.router.key.directive.d.ts +0 -25
@@ -6,10 +6,7 @@ export * from './store.collection.directive';
6
6
  export * from './store.collection.list.directive';
7
7
  export * from './store.document';
8
8
  export * from './store.document.crud';
9
- export * from './store.document.auth.directive';
10
9
  export * from './store.document.directive';
11
- export * from './store.document.router.directive';
12
- export * from './store.document.router.key.directive';
13
10
  export * from './store.document.twoway.key.directive';
14
11
  export * from './store.document.twoway.key.source.directive';
15
12
  export * from './store.document.twoway.key.source';
@@ -2,11 +2,10 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./store.collection.list.directive";
3
3
  import * as i2 from "./store.collection.change.directive";
4
4
  import * as i3 from "./store.collection.change.if.directive";
5
- import * as i4 from "./store.document.auth.directive";
6
- import * as i5 from "./store.document.twoway.key.source.directive";
7
- import * as i6 from "./store.document.twoway.key.directive";
5
+ import * as i4 from "./store.document.twoway.key.source.directive";
6
+ import * as i5 from "./store.document.twoway.key.directive";
8
7
  export declare class DbxFirebaseModelStoreModule {
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseModelStoreModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseModelStoreModule, [typeof i1.DbxFirebaseCollectionListDirective, typeof i2.DbxFirebaseCollectionChangeDirective, typeof i3.DbxFirebaseCollectionHasChangeDirective, typeof i4.DbxFirebaseDocumentAuthIdDirective, typeof i5.DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, typeof i6.DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective], never, [typeof i1.DbxFirebaseCollectionListDirective, typeof i2.DbxFirebaseCollectionChangeDirective, typeof i3.DbxFirebaseCollectionHasChangeDirective, typeof i4.DbxFirebaseDocumentAuthIdDirective, typeof i5.DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, typeof i6.DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseModelStoreModule, never, [typeof i1.DbxFirebaseCollectionListDirective, typeof i2.DbxFirebaseCollectionChangeDirective, typeof i3.DbxFirebaseCollectionHasChangeDirective, typeof i4.DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, typeof i5.DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective], [typeof i1.DbxFirebaseCollectionListDirective, typeof i2.DbxFirebaseCollectionChangeDirective, typeof i3.DbxFirebaseCollectionHasChangeDirective, typeof i4.DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, typeof i5.DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective]>;
11
10
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseModelStoreModule>;
12
11
  }
@@ -1,6 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { FirestoreDocument } from '@dereekb/firebase';
3
- import { type Maybe } from '@dereekb/util';
4
3
  import { DbxFirebaseCollectionStore } from './store.collection';
5
4
  import { DbxFirebaseCollectionStoreDirective } from './store.collection.directive';
6
5
  import { DbxFirebaseCollectionChangeWatcher, DbxFirebaseCollectionChangeWatcherEvent, DbxFirebaseCollectionChangeWatcherTriggerMode } from '../../loader/collection.change.watcher';
@@ -11,6 +10,7 @@ import * as i0 from "@angular/core";
11
10
  */
12
11
  export declare class DbxFirebaseCollectionChangeDirective<T = unknown, D extends FirestoreDocument<T> = FirestoreDocument<T>, S extends DbxFirebaseCollectionStore<T, D> = DbxFirebaseCollectionStore<T, D>> implements DbxFirebaseCollectionChangeWatcher<S>, OnInit, OnDestroy {
13
12
  readonly dbxFirebaseCollectionStoreDirective: DbxFirebaseCollectionStoreDirective<T, D, S>;
13
+ readonly mode: import("@angular/core").InputSignalWithTransform<DbxFirebaseCollectionChangeWatcherTriggerMode, "" | DbxFirebaseCollectionChangeWatcherTriggerMode>;
14
14
  private readonly _watcher;
15
15
  private readonly _trigger;
16
16
  readonly mode$: Observable<DbxFirebaseCollectionChangeWatcherTriggerMode>;
@@ -18,11 +18,11 @@ export declare class DbxFirebaseCollectionChangeDirective<T = unknown, D extends
18
18
  readonly hasChangeAvailable$: Observable<boolean>;
19
19
  readonly triggered$: Observable<boolean>;
20
20
  readonly trigger$: Observable<void>;
21
+ protected readonly modeEffect: import("@angular/core").EffectRef;
21
22
  get store(): S;
22
23
  ngOnInit(): void;
23
24
  ngOnDestroy(): void;
24
- set mode(mode: Maybe<DbxFirebaseCollectionChangeWatcherTriggerMode | ''>);
25
25
  restart(): void;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseCollectionChangeDirective<any, any, any>, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseCollectionChangeDirective<any, any, any>, "[dbxFirebaseCollectionChange]", never, { "mode": { "alias": "dbxFirebaseCollectionChange"; "required": false; }; }, {}, never, never, false, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseCollectionChangeDirective<any, any, any>, "[dbxFirebaseCollectionChange]", never, { "mode": { "alias": "dbxFirebaseCollectionChange"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
28
28
  }
@@ -1,9 +1,7 @@
1
- import { OnDestroy } from '@angular/core';
2
1
  import { AbstractIfDirective } from '@dereekb/dbx-core';
3
2
  import { Observable } from 'rxjs';
4
3
  import { DbxFirebaseCollectionChangeDirective } from './store.collection.change.directive';
5
4
  import { IterationQueryDocChangeWatcherChangeType } from '@dereekb/firebase';
6
- import { type Maybe } from '@dereekb/util';
7
5
  import * as i0 from "@angular/core";
8
6
  export type DbxFirebaseCollectionHasChangeDirectiveMode = 'all' | IterationQueryDocChangeWatcherChangeType;
9
7
  /**
@@ -11,13 +9,10 @@ export type DbxFirebaseCollectionHasChangeDirectiveMode = 'all' | IterationQuery
11
9
  *
12
10
  * Can specify which changes to appear on.
13
11
  */
14
- export declare class DbxFirebaseCollectionHasChangeDirective extends AbstractIfDirective implements OnDestroy {
15
- private _mode;
12
+ export declare class DbxFirebaseCollectionHasChangeDirective extends AbstractIfDirective {
16
13
  readonly directive: DbxFirebaseCollectionChangeDirective<unknown, import("@dereekb/firebase").FirestoreDocument<unknown, import("@dereekb/firebase").FirestoreModelIdentity>, import("@dereekb/dbx-firebase").DbxFirebaseCollectionStore<unknown, import("@dereekb/firebase").FirestoreDocument<unknown, import("@dereekb/firebase").FirestoreModelIdentity>>>;
14
+ readonly mode: import("@angular/core").InputSignalWithTransform<DbxFirebaseCollectionHasChangeDirectiveMode, "" | DbxFirebaseCollectionHasChangeDirectiveMode>;
17
15
  readonly show$: Observable<boolean>;
18
- get mode(): DbxFirebaseCollectionHasChangeDirectiveMode;
19
- set mode(mode: Maybe<DbxFirebaseCollectionHasChangeDirectiveMode | ''>);
20
- ngOnDestroy(): void;
21
16
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseCollectionHasChangeDirective, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseCollectionHasChangeDirective, "[dbxFirebaseCollectionHasChange]", never, { "mode": { "alias": "dbxFirebaseCollectionHasChange"; "required": false; }; }, {}, never, never, false, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseCollectionHasChangeDirective, "[dbxFirebaseCollectionHasChange]", never, { "mode": { "alias": "dbxFirebaseCollectionHasChange"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
23
18
  }
@@ -12,5 +12,5 @@ export declare class DbxFirebaseCollectionListDirective<T> extends AbstractSubsc
12
12
  constructor();
13
13
  ngOnInit(): void;
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseCollectionListDirective<any>, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseCollectionListDirective<any>, "[dbxFirebaseCollectionList]", never, {}, {}, never, never, false, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseCollectionListDirective<any>, "[dbxFirebaseCollectionList]", never, {}, {}, never, never, true, never>;
16
16
  }
@@ -1,4 +1,3 @@
1
- import { OnInit } from '@angular/core';
2
1
  import { DbxFirebaseDocumentStoreDirective } from './store.document.directive';
3
2
  import { DbxFirebaseDocumentStoreTwoWayKeyProvider } from './store.document.twoway.key.source';
4
3
  import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
@@ -6,10 +5,10 @@ import * as i0 from "@angular/core";
6
5
  /**
7
6
  * Used for providing an id from the twoWayFlatKey$ from a DbxFirebaseDocumentStoreTwoWayKeyProvider.
8
7
  */
9
- export declare class DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective extends AbstractSubscriptionDirective implements OnInit {
8
+ export declare class DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective extends AbstractSubscriptionDirective {
10
9
  readonly dbxFirebaseDocumentStoreDirective: DbxFirebaseDocumentStoreDirective<unknown, import("dist/packages/firebase/src").FirestoreDocument<unknown, import("dist/packages/firebase/src").FirestoreModelIdentity>, import("@dereekb/dbx-firebase").DbxFirebaseDocumentStore<unknown, import("dist/packages/firebase/src").FirestoreDocument<unknown, import("dist/packages/firebase/src").FirestoreModelIdentity>>>;
11
10
  readonly dbxFirebaseDocumentStoreTwoWayKeyProvider: DbxFirebaseDocumentStoreTwoWayKeyProvider;
12
- ngOnInit(): void;
11
+ constructor();
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, never>;
14
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, "[dbxFirebaseDocumentStoreIdFromTwoWayModelKey]", never, {}, {}, never, never, false, never>;
13
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, "[dbxFirebaseDocumentStoreIdFromTwoWayModelKey]", never, {}, {}, never, never, true, never>;
15
14
  }
@@ -9,5 +9,5 @@ export declare class DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective imple
9
9
  readonly dbxFirebaseDocumentStoreDirective: DbxFirebaseDocumentStoreDirective<unknown, import("dist/packages/firebase/src").FirestoreDocument<unknown, import("dist/packages/firebase/src").FirestoreModelIdentity>, import("@dereekb/dbx-firebase").DbxFirebaseDocumentStore<unknown, import("dist/packages/firebase/src").FirestoreDocument<unknown, import("dist/packages/firebase/src").FirestoreModelIdentity>>>;
10
10
  readonly twoWayFlatKey$: Observable<string>;
11
11
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, "[dbxFirebaseDocumentStoreTwoWayModelKeySource]", never, {}, {}, never, never, false, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, "[dbxFirebaseDocumentStoreTwoWayModelKeySource]", never, {}, {}, never, never, true, never>;
13
13
  }
@@ -1,2 +1,3 @@
1
- export * from './key.pipe';
1
+ export * from './key.flat.pipe';
2
+ export * from './key.twoway.pipe';
2
3
  export * from './pipe.module';
@@ -0,0 +1,9 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { FirestoreModelKey } from '@dereekb/firebase';
3
+ import { type Maybe } from '@dereekb/util';
4
+ import * as i0 from "@angular/core";
5
+ export declare class FlatFirestoreModelKeyPipe implements PipeTransform {
6
+ transform(input: Maybe<FirestoreModelKey>): string;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FlatFirestoreModelKeyPipe, never>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<FlatFirestoreModelKeyPipe, "flatFirestoreModelKey", true>;
9
+ }
@@ -2,13 +2,8 @@ import { PipeTransform } from '@angular/core';
2
2
  import { FirestoreModelKey } from '@dereekb/firebase';
3
3
  import { type Maybe } from '@dereekb/util';
4
4
  import * as i0 from "@angular/core";
5
- export declare class FlatFirestoreModelKeyPipe implements PipeTransform {
6
- transform(input: Maybe<FirestoreModelKey>): string;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<FlatFirestoreModelKeyPipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<FlatFirestoreModelKeyPipe, "flatFirestoreModelKey", false>;
9
- }
10
5
  export declare class TwoWayFlatFirestoreModelKeyPipe implements PipeTransform {
11
6
  transform(input: Maybe<FirestoreModelKey>): string;
12
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TwoWayFlatFirestoreModelKeyPipe, never>;
13
- static ɵpipe: i0.ɵɵPipeDeclaration<TwoWayFlatFirestoreModelKeyPipe, "twoWayFlatFirestoreModelKey", false>;
8
+ static ɵpipe: i0.ɵɵPipeDeclaration<TwoWayFlatFirestoreModelKeyPipe, "twoWayFlatFirestoreModelKey", true>;
14
9
  }
@@ -1,7 +1,13 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./key.pipe";
2
+ import * as i1 from "./key.flat.pipe";
3
+ import * as i2 from "./key.twoway.pipe";
4
+ /**
5
+ * Imports and exports all DbxFirebasePipe components.
6
+ *
7
+ * @deprecated consider importing the individual pipes instead.
8
+ */
3
9
  export declare class DbxFirebasePipeModule {
4
10
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebasePipeModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebasePipeModule, [typeof i1.FlatFirestoreModelKeyPipe, typeof i1.TwoWayFlatFirestoreModelKeyPipe], never, [typeof i1.FlatFirestoreModelKeyPipe, typeof i1.TwoWayFlatFirestoreModelKeyPipe]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebasePipeModule, never, [typeof i1.FlatFirestoreModelKeyPipe, typeof i2.TwoWayFlatFirestoreModelKeyPipe], [typeof i1.FlatFirestoreModelKeyPipe, typeof i2.TwoWayFlatFirestoreModelKeyPipe]>;
6
12
  static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebasePipeModule>;
7
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-firebase",
3
- "version": "12.0.2",
3
+ "version": "12.0.3",
4
4
  "peerDependencies": {
5
5
  "@angular/core": "^18.0.0",
6
6
  "@dereekb/dbx-analytics": "*",
@@ -1,26 +0,0 @@
1
- import { Directive, inject } from '@angular/core';
2
- import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
3
- import { DbxFirebaseAuthService } from '../../../auth/service/firebase.auth.service';
4
- import { DbxFirebaseDocumentStoreDirective } from './store.document.directive';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Utility directive for a host DbxFirebaseDocumentStoreDirective that sets the document's ID to match the ID of the current user.
8
- *
9
- * This is useful for cases where each document is keyed by the user (I.E. implements UserRelatedById).
10
- */
11
- export class DbxFirebaseDocumentAuthIdDirective extends AbstractSubscriptionDirective {
12
- dbxFirebaseAuthService = inject(DbxFirebaseAuthService);
13
- dbxFirebaseDocumentStoreDirective = inject((DbxFirebaseDocumentStoreDirective), { host: true });
14
- ngOnInit() {
15
- this.sub = this.dbxFirebaseDocumentStoreDirective.store.setId(this.dbxFirebaseAuthService.userIdentifier$);
16
- }
17
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDocumentAuthIdDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
18
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseDocumentAuthIdDirective, selector: "[dbxFirebaseDocumentAuthId]", usesInheritance: true, ngImport: i0 });
19
- }
20
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDocumentAuthIdDirective, decorators: [{
21
- type: Directive,
22
- args: [{
23
- selector: '[dbxFirebaseDocumentAuthId]'
24
- }]
25
- }] });
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmUuZG9jdW1lbnQuYXV0aC5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtZmlyZWJhc2Uvc3JjL2xpYi9tb2RlbC9tb2R1bGVzL3N0b3JlL3N0b3JlLmRvY3VtZW50LmF1dGguZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQVUsTUFBTSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBRTFELE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLG1CQUFtQixDQUFDO0FBQ2xFLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxNQUFNLDZDQUE2QyxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxpQ0FBaUMsRUFBRSxNQUFNLDRCQUE0QixDQUFDOztBQUUvRTs7OztHQUlHO0FBSUgsTUFBTSxPQUFPLGtDQUE2RixTQUFRLDZCQUE2QjtJQUNwSSxzQkFBc0IsR0FBRyxNQUFNLENBQUMsc0JBQXNCLENBQUMsQ0FBQztJQUN4RCxpQ0FBaUMsR0FBRyxNQUFNLENBQUMsQ0FBQSxpQ0FBdUMsQ0FBQSxFQUFFLEVBQUUsSUFBSSxFQUFFLElBQUksRUFB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Bkb2N1bWVudCBpcyBrZXllZCBieSB0aGUgdXNlciAoSS5FLiBpbXBsZW1lbnRzIFVzZXJSZWxhdGVkQnlJZCkuXG4gKi9cbkBEaXJlY3RpdmUoe1xuICBzZWxlY3RvcjogJ1tkYnhGaXJlYmFzZURvY3VtZW50QXV0aElkXSdcbn0pXG5leHBvcnQgY2xhc3MgRGJ4RmlyZWJhc2VEb2N1bWVudEF1dGhJZERpcmVjdGl2ZTxULCBEIGV4dGVuZHMgRmlyZXN0b3JlRG9jdW1lbnQ8VD4gPSBGaXJlc3RvcmVEb2N1bWVudDxUPj4gZXh0ZW5kcyBBYnN0cmFjdFN1YnNjcmlwdGlvbkRpcmVjdGl2ZSBpbXBsZW1lbnRzIE9uSW5pdCB7XG4gIHJlYWRvbmx5IGRieEZpcmViYXNlQXV0aFNlcnZpY2UgPSBpbmplY3QoRGJ4RmlyZWJhc2VBdXRoU2VydmljZSk7XG4gIHJlYWRvbmx5IGRieEZpcmViYXNlRG9jdW1lbnRTdG9yZURpcmVjdGl2ZSA9IGluamVjdChEYnhGaXJlYmFzZURvY3VtZW50U3RvcmVEaXJlY3RpdmU8VCwgRD4sIHsgaG9zdDogdHJ1ZSB9KTtcblxuICBuZ09uSW5pdCgpOiB2b2lkIHtcbiAgICB0aGlzLnN1YiA9IHRoaXMuZGJ4RmlyZWJhc2VEb2N1bWVudFN0b3JlRGlyZWN0aXZlLnN0b3JlLnNldElkKHRoaXMuZGJ4RmlyZWJhc2VBdXRoU2VydmljZS51c2VySWRlbnRpZmllciQpO1xuICB9XG59XG4iXX0=
@@ -1,47 +0,0 @@
1
- import { Directive, Input } from '@angular/core';
2
- import { DbxRouteModelIdDirective } from '@dereekb/dbx-core';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Used for synchronizing the document store id to the param of the route.
6
- *
7
- * @deprecated use DbxRouteModelIdDirective instead.
8
- */
9
- export class DbxFirebaseDocumentStoreRouteIdDirective extends DbxRouteModelIdDirective {
10
- // MARK: Input
11
- get dbxFirebaseDocumentStoreRouteId() {
12
- return this.idParam;
13
- }
14
- set dbxFirebaseDocumentStoreRouteId(idParam) {
15
- this.idParam = idParam;
16
- }
17
- set dbxFirebaseDocumentStoreRouteIdDefault(defaultValue) {
18
- this.dbxRouteModelIdDefault = defaultValue;
19
- }
20
- /**
21
- * Whether or not to enable the redirection. Is enabled by default.
22
- */
23
- set dbxFirebaseDocumentStoreRouteIdDefaultRedirect(redirect) {
24
- this.dbxRouteModelIdDefaultRedirect = redirect;
25
- }
26
- set dbxFirebaseDocumentStoreRouteIdDefaultDecision(decider) {
27
- this.dbxRouteModelIdDefaultDecision = decider;
28
- }
29
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDocumentStoreRouteIdDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
30
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseDocumentStoreRouteIdDirective, selector: "[dbxFirebaseDocumentStoreRouteId]", inputs: { dbxFirebaseDocumentStoreRouteId: "dbxFirebaseDocumentStoreRouteId", dbxFirebaseDocumentStoreRouteIdDefault: "dbxFirebaseDocumentStoreRouteIdDefault", dbxFirebaseDocumentStoreRouteIdDefaultRedirect: "dbxFirebaseDocumentStoreRouteIdDefaultRedirect", dbxFirebaseDocumentStoreRouteIdDefaultDecision: "dbxFirebaseDocumentStoreRouteIdDefaultDecision" }, usesInheritance: true, ngImport: i0 });
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDocumentStoreRouteIdDirective, decorators: [{
33
- type: Directive,
34
- args: [{
35
- selector: '[dbxFirebaseDocumentStoreRouteId]'
36
- }]
37
- }], propDecorators: { dbxFirebaseDocumentStoreRouteId: [{
38
- type: Input,
39
- args: ['dbxFirebaseDocumentStoreRouteId']
40
- }], dbxFirebaseDocumentStoreRouteIdDefault: [{
41
- type: Input
42
- }], dbxFirebaseDocumentStoreRouteIdDefaultRedirect: [{
43
- type: Input
44
- }], dbxFirebaseDocumentStoreRouteIdDefaultDecision: [{
45
- type: Input
46
- }] } });
47
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmUuZG9jdW1lbnQucm91dGVyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2RieC1maXJlYmFzZS9zcmMvbGliL21vZGVsL21vZHVsZXMvc3RvcmUvc3RvcmUuZG9jdW1lbnQucm91dGVyLmRpcmVjdGl2ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUNqRCxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7QUFJN0Q7Ozs7R0FJRztBQUlILE1BQU0sT0FBTyx3Q0FBc0QsU0FBUSx3QkFBd0I7SUFDakcsY0FBYztJQUNkLElBQ0ksK0JBQStCO1FBQ2pDLE9BQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQztJQUN0QixDQUFDO0lBRUQsSUFBSSwrQkFBK0IsQ0FBQyxPQUFlO1FBQ2pELElBQUksQ0FBQyxPQUFPLEdBQUcsT0FBTyxDQUFDO0lBQ3pCLENBQUM7SUFFRCxJQUNJLHNDQUFzQyxDQUFDLFlBQW9EO1FBQzdGLElBQUksQ0FBQyxzQkFBc0IsR0FBRyxZQUFZLENBQUM7SUFDN0MsQ0FBQztJQUVEOztPQUVHO0lBQ0gsSUFDSSw4Q0FBOEMsQ0FBQyxRQUE2QjtRQUM5RSxJQUFJLENBQUMsOEJBQThCLEdBQUcsUUFBUSxDQUFDO0lBQ2pELENBQUM7SUFFRCxJQUNJ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Y2lkZXI6IHN0cmluZyB8IFN3aXRjaE1hcFRvRGVmYXVsdEZpbHRlckZ1bmN0aW9uPE1vZGVsS2V5Pikge1xuICAgIHRoaXMuZGJ4Um91dGVNb2RlbElkRGVmYXVsdERlY2lzaW9uID0gZGVjaWRlcjtcbiAgfVxufVxuIl19
@@ -1,52 +0,0 @@
1
- import { Directive, Input, inject } from '@angular/core';
2
- import { DbxRouteModelKeyDirective } from '@dereekb/dbx-core';
3
- import { DbxFirebaseDocumentStoreDirective } from './store.document.directive';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Used for synchronizing the document store key to the param of the route. The param is interpreted as a TwoWayFlatFirestoreModelKey.
7
- *
8
- * @deprecated use DbxRouteModelKeyDirective ([dbxRouteModelKey]) instead.
9
- */
10
- export class DbxFirebaseDocumentStoreRouteKeyDirective extends DbxRouteModelKeyDirective {
11
- dbxFirebaseDocumentStoreDirective = inject((DbxFirebaseDocumentStoreDirective), { host: true });
12
- ngOnInit() {
13
- super.ngOnInit();
14
- }
15
- // MARK: Input
16
- get dbxFirebaseDocumentStoreRouteKey() {
17
- return this.keyParam;
18
- }
19
- set dbxFirebaseDocumentStoreRouteKey(keyParam) {
20
- this.keyParam = keyParam;
21
- }
22
- set dbxFirebaseDocumentStoreRouteKeyDefault(defaultValue) {
23
- this.dbxRouteModelKeyDefault = defaultValue;
24
- }
25
- /**
26
- * Whether or not to enable the redirection. Is enabled by default.
27
- */
28
- set dbxFirebaseDocumentStoreRouteKeyDefaultRedirect(redirect) {
29
- this.dbxRouteModelKeyDefaultRedirect = redirect;
30
- }
31
- set dbxFirebaseDocumentStoreRouteKeyDefaultDecision(decider) {
32
- this.dbxRouteModelKeyDefaultDecision = decider;
33
- }
34
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDocumentStoreRouteKeyDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
35
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseDocumentStoreRouteKeyDirective, selector: "[dbxFirebaseDocumentStoreRouteKey]", inputs: { dbxFirebaseDocumentStoreRouteKey: "dbxFirebaseDocumentStoreRouteKey", dbxFirebaseDocumentStoreRouteKeyDefault: "dbxFirebaseDocumentStoreRouteKeyDefault", dbxFirebaseDocumentStoreRouteKeyDefaultRedirect: "dbxFirebaseDocumentStoreRouteKeyDefaultRedirect", dbxFirebaseDocumentStoreRouteKeyDefaultDecision: "dbxFirebaseDocumentStoreRouteKeyDefaultDecision" }, usesInheritance: true, ngImport: i0 });
36
- }
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDocumentStoreRouteKeyDirective, decorators: [{
38
- type: Directive,
39
- args: [{
40
- selector: '[dbxFirebaseDocumentStoreRouteKey]'
41
- }]
42
- }], propDecorators: { dbxFirebaseDocumentStoreRouteKey: [{
43
- type: Input,
44
- args: ['dbxFirebaseDocumentStoreRouteKey']
45
- }], dbxFirebaseDocumentStoreRouteKeyDefault: [{
46
- type: Input
47
- }], dbxFirebaseDocumentStoreRouteKeyDefaultRedirect: [{
48
- type: Input
49
- }], dbxFirebaseDocumentStoreRouteKeyDefaultDecision: [{
50
- type: Input
51
- }] } });
52
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RvcmUuZG9jdW1lbnQucm91dGVyLmtleS5kaXJlY3RpdmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtZmlyZWJhc2Uvc3JjL2xpYi9tb2RlbC9tb2R1bGVzL3N0b3JlL3N0b3JlLmRvY3VtZW50LnJvdXRlci5rZXkuZGlyZWN0aXZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS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dXQoKVxuICBzZXQgZGJ4RmlyZWJhc2VEb2N1bWVudFN0b3JlUm91dGVLZXlEZWZhdWx0UmVkaXJlY3QocmVkaXJlY3Q6IE1heWJlPGJvb2xlYW4+IHwgJycpIHtcbiAgICB0aGlzLmRieFJvdXRlTW9kZWxLZXlEZWZhdWx0UmVkaXJlY3QgPSByZWRpcmVjdDtcbiAgfVxuXG4gIEBJbnB1dCgpXG4gIHNldCBkYnhGaXJlYmFzZURvY3VtZW50U3RvcmVSb3V0ZUtleURlZmF1bHREZWNpc2lvbihkZWNpZGVyOiBzdHJpbmcgfCBTd2l0Y2hNYXBUb0RlZmF1bHRGaWx0ZXJGdW5jdGlvbjxNb2RlbEtleT4pIHtcbiAgICB0aGlzLmRieFJvdXRlTW9kZWxLZXlEZWZhdWx0RGVjaXNpb24gPSBkZWNpZGVyO1xuICB9XG59XG4iXX0=
@@ -1,36 +0,0 @@
1
- import { Pipe } from '@angular/core';
2
- import { flatFirestoreModelKey, twoWayFlatFirestoreModelKey } from '@dereekb/firebase';
3
- import * as i0 from "@angular/core";
4
- export class FlatFirestoreModelKeyPipe {
5
- transform(input) {
6
- if (input != null) {
7
- return flatFirestoreModelKey(input);
8
- }
9
- else {
10
- return '';
11
- }
12
- }
13
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FlatFirestoreModelKeyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
14
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FlatFirestoreModelKeyPipe, name: "flatFirestoreModelKey" });
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FlatFirestoreModelKeyPipe, decorators: [{
17
- type: Pipe,
18
- args: [{ name: 'flatFirestoreModelKey' }]
19
- }] });
20
- export class TwoWayFlatFirestoreModelKeyPipe {
21
- transform(input) {
22
- if (input != null) {
23
- return twoWayFlatFirestoreModelKey(input);
24
- }
25
- else {
26
- return '';
27
- }
28
- }
29
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TwoWayFlatFirestoreModelKeyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
30
- static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: TwoWayFlatFirestoreModelKeyPipe, name: "twoWayFlatFirestoreModelKey" });
31
- }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: TwoWayFlatFirestoreModelKeyPipe, decorators: [{
33
- type: Pipe,
34
- args: [{ name: 'twoWayFlatFirestoreModelKey' }]
35
- }] });
36
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2V5LnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9kYngtZmlyZWJhc2Uvc3JjL2xpYi9waXBlL2tleS5waXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDO0FBQ3BELE9BQU8sRUFBcUIscUJBQXFCLEVBQUUsMkJBQTJCLEVBQUUsTUFBTSxtQkFBbUIsQ0FBQzs7QUFJMUcsTUFBTSxPQUFPLHlCQUF5QjtJQUNwQyxTQUFTLENBQUMsS0FBK0I7UUFDdkMsSUFBSSxLQUFLLElBQUksSUFBSSxFQUFFLENBQUM7WUFDbEIsT0FBTyxxQkFBcUIsQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUN0QyxDQUFDO2FBQU0sQ0FBQztZQUNOLE9BQU8sRUFBRSxDQUFDO1FBQ1osQ0FBQztJQUNILENBQUM7d0dBUFUseUJBQXlCO3NHQUF6Qix5QkFBeUI7OzRGQ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AgIH0gZWxzZSB7XG4gICAgICByZXR1cm4gJyc7XG4gICAgfVxuICB9XG59XG5cbkBQaXBlKHsgbmFtZTogJ3R3b1dheUZsYXRGaXJlc3RvcmVNb2RlbEtleScgfSlcbmV4cG9ydCBjbGFzcyBUd29XYXlGbGF0RmlyZXN0b3JlTW9kZWxLZXlQaXBlIGltcGxlbWVudHMgUGlwZVRyYW5zZm9ybSB7XG4gIHRyYW5zZm9ybShpbnB1dDogTWF5YmU8RmlyZXN0b3JlTW9kZWxLZXk+KTogc3RyaW5nIHtcbiAgICBpZiAoaW5wdXQgIT0gbnVsbCkge1xuICAgICAgcmV0dXJuIHR3b1dheUZsYXRGaXJlc3RvcmVNb2RlbEtleShpbnB1dCk7XG4gICAgfSBlbHNlIHtcbiAgICAgIHJldHVybiAnJztcbiAgICB9XG4gIH1cbn1cbiJdfQ==
@@ -1,18 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { FirestoreDocument } from '@dereekb/firebase';
3
- import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
4
- import { DbxFirebaseAuthService } from '../../../auth/service/firebase.auth.service';
5
- import { DbxFirebaseDocumentStoreDirective } from './store.document.directive';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Utility directive for a host DbxFirebaseDocumentStoreDirective that sets the document's ID to match the ID of the current user.
9
- *
10
- * This is useful for cases where each document is keyed by the user (I.E. implements UserRelatedById).
11
- */
12
- export declare class DbxFirebaseDocumentAuthIdDirective<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> extends AbstractSubscriptionDirective implements OnInit {
13
- readonly dbxFirebaseAuthService: DbxFirebaseAuthService;
14
- readonly dbxFirebaseDocumentStoreDirective: DbxFirebaseDocumentStoreDirective<T, D, import("@dereekb/dbx-firebase").DbxFirebaseDocumentStore<T, D>>;
15
- ngOnInit(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDocumentAuthIdDirective<any, any>, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDocumentAuthIdDirective<any, any>, "[dbxFirebaseDocumentAuthId]", never, {}, {}, never, never, false, never>;
18
- }
@@ -1,21 +0,0 @@
1
- import { DbxRouteModelIdDirective } from '@dereekb/dbx-core';
2
- import { Maybe, ModelKey } from '@dereekb/util';
3
- import { MaybeObservableOrValueGetter, SwitchMapToDefaultFilterFunction } from '@dereekb/rxjs';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Used for synchronizing the document store id to the param of the route.
7
- *
8
- * @deprecated use DbxRouteModelIdDirective instead.
9
- */
10
- export declare class DbxFirebaseDocumentStoreRouteIdDirective<T = unknown> extends DbxRouteModelIdDirective {
11
- get dbxFirebaseDocumentStoreRouteId(): string;
12
- set dbxFirebaseDocumentStoreRouteId(idParam: string);
13
- set dbxFirebaseDocumentStoreRouteIdDefault(defaultValue: MaybeObservableOrValueGetter<ModelKey>);
14
- /**
15
- * Whether or not to enable the redirection. Is enabled by default.
16
- */
17
- set dbxFirebaseDocumentStoreRouteIdDefaultRedirect(redirect: Maybe<boolean> | '');
18
- set dbxFirebaseDocumentStoreRouteIdDefaultDecision(decider: string | SwitchMapToDefaultFilterFunction<ModelKey>);
19
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDocumentStoreRouteIdDirective<any>, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDocumentStoreRouteIdDirective<any>, "[dbxFirebaseDocumentStoreRouteId]", never, { "dbxFirebaseDocumentStoreRouteId": { "alias": "dbxFirebaseDocumentStoreRouteId"; "required": false; }; "dbxFirebaseDocumentStoreRouteIdDefault": { "alias": "dbxFirebaseDocumentStoreRouteIdDefault"; "required": false; }; "dbxFirebaseDocumentStoreRouteIdDefaultRedirect": { "alias": "dbxFirebaseDocumentStoreRouteIdDefaultRedirect"; "required": false; }; "dbxFirebaseDocumentStoreRouteIdDefaultDecision": { "alias": "dbxFirebaseDocumentStoreRouteIdDefaultDecision"; "required": false; }; }, {}, never, never, false, never>;
21
- }
@@ -1,25 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { DbxRouteModelKeyDirective } from '@dereekb/dbx-core';
3
- import { DbxFirebaseDocumentStoreDirective } from './store.document.directive';
4
- import { Maybe, ModelKey } from '@dereekb/util';
5
- import { MaybeObservableOrValueGetter, SwitchMapToDefaultFilterFunction } from '@dereekb/rxjs';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Used for synchronizing the document store key to the param of the route. The param is interpreted as a TwoWayFlatFirestoreModelKey.
9
- *
10
- * @deprecated use DbxRouteModelKeyDirective ([dbxRouteModelKey]) instead.
11
- */
12
- export declare class DbxFirebaseDocumentStoreRouteKeyDirective<T = unknown> extends DbxRouteModelKeyDirective implements OnInit {
13
- readonly dbxFirebaseDocumentStoreDirective: DbxFirebaseDocumentStoreDirective<T, import("dist/packages/firebase/src").FirestoreDocument<T, import("dist/packages/firebase/src").FirestoreModelIdentity>, import("@dereekb/dbx-firebase").DbxFirebaseDocumentStore<T, import("dist/packages/firebase/src").FirestoreDocument<T, import("dist/packages/firebase/src").FirestoreModelIdentity>>>;
14
- ngOnInit(): void;
15
- get dbxFirebaseDocumentStoreRouteKey(): string;
16
- set dbxFirebaseDocumentStoreRouteKey(keyParam: string);
17
- set dbxFirebaseDocumentStoreRouteKeyDefault(defaultValue: MaybeObservableOrValueGetter<ModelKey>);
18
- /**
19
- * Whether or not to enable the redirection. Is enabled by default.
20
- */
21
- set dbxFirebaseDocumentStoreRouteKeyDefaultRedirect(redirect: Maybe<boolean> | '');
22
- set dbxFirebaseDocumentStoreRouteKeyDefaultDecision(decider: string | SwitchMapToDefaultFilterFunction<ModelKey>);
23
- static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDocumentStoreRouteKeyDirective<any>, never>;
24
- static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDocumentStoreRouteKeyDirective<any>, "[dbxFirebaseDocumentStoreRouteKey]", never, { "dbxFirebaseDocumentStoreRouteKey": { "alias": "dbxFirebaseDocumentStoreRouteKey"; "required": false; }; "dbxFirebaseDocumentStoreRouteKeyDefault": { "alias": "dbxFirebaseDocumentStoreRouteKeyDefault"; "required": false; }; "dbxFirebaseDocumentStoreRouteKeyDefaultRedirect": { "alias": "dbxFirebaseDocumentStoreRouteKeyDefaultRedirect"; "required": false; }; "dbxFirebaseDocumentStoreRouteKeyDefaultDecision": { "alias": "dbxFirebaseDocumentStoreRouteKeyDefaultDecision"; "required": false; }; }, {}, never, never, false, never>;
25
- }