@dereekb/dbx-firebase 11.1.7 → 12.0.0
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/analytics/analytics.user.events.providers.mjs +25 -0
- package/esm2022/lib/analytics/analytics.user.events.service.mjs +37 -0
- package/esm2022/lib/analytics/analytics.user.source.mjs +4 -4
- package/esm2022/lib/analytics/index.mjs +3 -2
- package/esm2022/lib/auth/appcheck/appcheck.interceptor.mjs +6 -6
- package/esm2022/lib/auth/firebase.auth.module.mjs +11 -23
- package/esm2022/lib/auth/firebase.auth.providers.mjs +27 -0
- package/esm2022/lib/auth/index.mjs +2 -1
- package/esm2022/lib/auth/login/firebase.login.module.mjs +56 -201
- package/esm2022/lib/auth/login/firebase.login.providers.default.mjs +109 -0
- package/esm2022/lib/auth/login/firebase.login.providers.mjs +59 -0
- package/esm2022/lib/auth/login/index.mjs +2 -1
- package/esm2022/lib/auth/login/login.anonymous.component.mjs +9 -6
- package/esm2022/lib/auth/login/login.apple.component.mjs +9 -6
- package/esm2022/lib/auth/login/login.button.component.mjs +68 -49
- package/esm2022/lib/auth/login/login.component.mjs +21 -26
- package/esm2022/lib/auth/login/login.context.back.component.mjs +8 -5
- package/esm2022/lib/auth/login/login.context.directive.mjs +5 -4
- package/esm2022/lib/auth/login/login.email.component.mjs +9 -6
- package/esm2022/lib/auth/login/login.email.content.component.mjs +29 -28
- package/esm2022/lib/auth/login/login.email.form.component.mjs +17 -26
- package/esm2022/lib/auth/login/login.email.recovery.form.component.mjs +11 -12
- package/esm2022/lib/auth/login/login.facebook.component.mjs +9 -6
- package/esm2022/lib/auth/login/login.github.component.mjs +9 -6
- package/esm2022/lib/auth/login/login.google.component.mjs +9 -6
- package/esm2022/lib/auth/login/login.list.component.mjs +45 -56
- package/esm2022/lib/auth/login/login.microsoft.component.mjs +9 -6
- package/esm2022/lib/auth/login/login.service.mjs +10 -13
- package/esm2022/lib/auth/login/login.terms.component.mjs +10 -8
- package/esm2022/lib/auth/login/login.terms.mjs +6 -3
- package/esm2022/lib/auth/login/login.terms.simple.component.mjs +11 -9
- package/esm2022/lib/auth/login/login.twitter.component.mjs +9 -6
- package/esm2022/lib/auth/login/register.component.mjs +9 -7
- package/esm2022/lib/auth/login/register.email.component.mjs +11 -6
- package/esm2022/lib/auth/service/firebase.auth.rxjs.mjs +1 -1
- package/esm2022/lib/auth/service/firebase.auth.service.delegate.mjs +1 -1
- package/esm2022/lib/auth/service/firebase.auth.service.mjs +4 -4
- package/esm2022/lib/development/development.directive.mjs +78 -0
- package/esm2022/lib/development/development.module.mjs +32 -70
- package/esm2022/lib/development/development.popup.component.mjs +13 -15
- package/esm2022/lib/development/development.popup.content.component.mjs +28 -19
- package/esm2022/lib/development/development.popup.content.form.component.mjs +11 -12
- package/esm2022/lib/development/development.providers.mjs +47 -0
- package/esm2022/lib/development/development.scheduler.list.component.mjs +32 -23
- package/esm2022/lib/development/development.scheduler.service.mjs +5 -8
- package/esm2022/lib/development/development.scheduler.widget.component.mjs +13 -10
- package/esm2022/lib/development/development.service.mjs +9 -20
- package/esm2022/lib/development/development.widget.service.mjs +7 -10
- package/esm2022/lib/development/index.mjs +3 -2
- package/esm2022/lib/firebase/emulators.mjs +1 -1
- package/esm2022/lib/firebase/firebase.emulator.module.mjs +9 -25
- package/esm2022/lib/firebase/firebase.emulator.providers.mjs +33 -0
- package/esm2022/lib/firebase/firebase.emulator.service.mjs +5 -8
- package/esm2022/lib/firebase/firebase.module.mjs +11 -297
- package/esm2022/lib/firebase/firebase.options.environment.mjs +2 -0
- package/esm2022/lib/firebase/firebase.options.mjs +3 -0
- package/esm2022/lib/firebase/firebase.providers.mjs +149 -0
- package/esm2022/lib/firebase/index.mjs +5 -2
- package/esm2022/lib/firestore/firebase.firestore.context.service.mjs +4 -4
- package/esm2022/lib/firestore/firebase.firestore.module.mjs +9 -50
- package/esm2022/lib/firestore/firebase.firestore.providers.mjs +67 -0
- package/esm2022/lib/firestore/index.mjs +2 -1
- package/esm2022/lib/function/firebase.function.module.mjs +8 -48
- package/esm2022/lib/function/firebase.function.providers.mjs +54 -0
- package/esm2022/lib/function/index.mjs +2 -1
- package/esm2022/lib/index.mjs +2 -1
- package/esm2022/lib/model/loader/collection.change.trigger.mjs +1 -1
- package/esm2022/lib/model/loader/collection.loader.instance.mjs +1 -1
- package/esm2022/lib/model/model.module.mjs +6 -6
- package/esm2022/lib/model/modules/model/history/index.mjs +7 -0
- package/esm2022/lib/model/modules/model/history/model.history.component.mjs +36 -0
- package/esm2022/lib/model/modules/model/history/model.history.module.mjs +26 -0
- package/esm2022/lib/model/modules/model/history/model.history.popover.button.component.mjs +40 -0
- package/esm2022/lib/model/modules/model/history/model.history.popover.component.mjs +36 -0
- package/esm2022/lib/model/modules/model/history/model.sourceselect.history.mjs +18 -0
- package/esm2022/lib/model/modules/model/history/model.tracker.service.mjs +58 -0
- package/esm2022/lib/model/modules/model/index.mjs +2 -7
- package/esm2022/lib/model/modules/model/model.types.list.component.mjs +33 -28
- package/esm2022/lib/model/modules/model/model.types.module.mjs +17 -12
- package/esm2022/lib/model/modules/model/model.types.providers.mjs +20 -0
- package/esm2022/lib/model/modules/model/model.types.service.mjs +9 -14
- package/esm2022/lib/model/modules/model/model.types.view.directive.mjs +11 -13
- package/esm2022/lib/model/modules/store/model.store.module.mjs +6 -8
- package/esm2022/lib/model/modules/store/store.collection.change.directive.mjs +3 -3
- package/esm2022/lib/model/modules/store/store.collection.change.if.directive.mjs +4 -4
- package/esm2022/lib/model/modules/store/store.collection.directive.mjs +5 -5
- package/esm2022/lib/model/modules/store/store.collection.list.directive.mjs +6 -6
- package/esm2022/lib/model/modules/store/store.collection.mjs +3 -3
- package/esm2022/lib/model/modules/store/store.document.auth.directive.mjs +3 -3
- package/esm2022/lib/model/modules/store/store.document.crud.mjs +1 -1
- package/esm2022/lib/model/modules/store/store.document.directive.mjs +5 -5
- package/esm2022/lib/model/modules/store/store.document.mjs +6 -5
- package/esm2022/lib/model/modules/store/store.document.router.directive.mjs +3 -3
- package/esm2022/lib/model/modules/store/store.document.router.key.directive.mjs +4 -4
- package/esm2022/lib/model/modules/store/store.document.twoway.key.directive.mjs +3 -3
- package/esm2022/lib/model/modules/store/store.document.twoway.key.source.directive.mjs +3 -3
- package/esm2022/lib/model/modules/store/store.subcollection.directive.mjs +3 -3
- package/esm2022/lib/model/modules/store/store.subcollection.document.mjs +4 -4
- package/esm2022/lib/model/modules/store/store.subcollection.mjs +6 -6
- package/esm2022/lib/model/modules/store/store.subcollection.rxjs.mjs +1 -1
- package/esm2022/lib/model/service/index.mjs +2 -1
- package/esm2022/lib/model/service/model.context.providers.mjs +32 -0
- package/esm2022/lib/model/service/model.context.service.mjs +1 -1
- package/esm2022/lib/model/system/systemstate.collection.store.directive.mjs +4 -4
- package/esm2022/lib/model/system/systemstate.collection.store.mjs +4 -4
- package/esm2022/lib/model/system/systemstate.document.store.accessor.mjs +5 -5
- package/esm2022/lib/model/system/systemstate.document.store.directive.mjs +4 -4
- package/esm2022/lib/model/system/systemstate.document.store.mjs +4 -4
- package/esm2022/lib/module.mjs +4 -4
- package/esm2022/lib/modules/notification/component/index.mjs +2 -1
- package/esm2022/lib/modules/notification/component/notificationitem.content.component.mjs +11 -17
- package/esm2022/lib/modules/notification/component/notificationitem.list.component.mjs +30 -21
- package/esm2022/lib/modules/notification/component/notificationitem.view.component.mjs +28 -35
- package/esm2022/lib/modules/notification/component/notificationitem.view.default.component.mjs +8 -6
- package/esm2022/lib/modules/notification/component/notificationitem.view.directive.mjs +3 -3
- package/esm2022/lib/modules/notification/container/notification.item.store.popover.button.component.mjs +17 -21
- package/esm2022/lib/modules/notification/container/notification.item.store.popover.component.mjs +14 -26
- package/esm2022/lib/modules/notification/index.mjs +3 -1
- package/esm2022/lib/modules/notification/notification.module.mjs +33 -32
- package/esm2022/lib/modules/notification/notification.providers.mjs +47 -0
- package/esm2022/lib/modules/notification/service/notification.template.service.mjs +3 -3
- package/esm2022/lib/modules/notification/service/notificationitem.widget.service.mjs +5 -8
- package/esm2022/lib/modules/notification/store/index.mjs +6 -2
- package/esm2022/lib/modules/notification/store/notification.item.store.mjs +4 -4
- package/esm2022/lib/modules/notification/store/notificationbox.collection.store.directive.mjs +7 -6
- package/esm2022/lib/modules/notification/store/notificationbox.collection.store.mjs +4 -4
- package/esm2022/lib/modules/notification/store/notificationbox.document.store.directive.mjs +7 -6
- package/esm2022/lib/modules/notification/store/notificationbox.document.store.mjs +4 -4
- package/esm2022/lib/modules/notification/store/notificationsummary.collection.store.directive.mjs +7 -6
- package/esm2022/lib/modules/notification/store/notificationsummary.collection.store.mjs +4 -4
- package/esm2022/lib/modules/notification/store/notificationsummary.document.store.directive.mjs +7 -6
- package/esm2022/lib/modules/notification/store/notificationsummary.document.store.mjs +4 -4
- package/esm2022/lib/modules/notification/store/notificationuser.collection.store.directive.mjs +7 -6
- package/esm2022/lib/modules/notification/store/notificationuser.collection.store.mjs +4 -4
- package/esm2022/lib/modules/notification/store/notificationuser.document.store.directive.mjs +7 -6
- package/esm2022/lib/modules/notification/store/notificationuser.document.store.mjs +4 -4
- package/esm2022/lib/pipe/key.pipe.mjs +7 -7
- package/esm2022/lib/pipe/pipe.module.mjs +4 -4
- package/esm2022/lib/providers.mjs +40 -0
- package/esm2022/lib/router/id.param.redirect.mjs +1 -1
- package/esm2022/lib/storage/firebase.storage.module.mjs +11 -34
- package/esm2022/lib/storage/firebase.storage.providers.mjs +43 -0
- package/esm2022/lib/storage/firebase.storage.service.mjs +3 -3
- package/esm2022/lib/storage/index.mjs +2 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +1893 -1762
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/analytics/analytics.user.events.providers.d.ts +6 -0
- package/lib/analytics/{analytics.user.events.d.ts → analytics.user.events.service.d.ts} +5 -5
- package/lib/analytics/index.d.ts +2 -1
- package/lib/auth/firebase.auth.module.d.ts +6 -5
- package/lib/auth/firebase.auth.providers.d.ts +21 -0
- package/lib/auth/index.d.ts +1 -0
- package/lib/auth/login/_login.scss +3 -3
- package/lib/auth/login/firebase.login.module.d.ts +8 -21
- package/lib/auth/login/firebase.login.providers.d.ts +32 -0
- package/lib/auth/login/firebase.login.providers.default.d.ts +7 -0
- package/lib/auth/login/index.d.ts +1 -0
- package/lib/auth/login/login.anonymous.component.d.ts +2 -2
- package/lib/auth/login/login.apple.component.d.ts +2 -2
- package/lib/auth/login/login.button.component.d.ts +19 -14
- package/lib/auth/login/login.component.d.ts +6 -6
- package/lib/auth/login/login.context.back.component.d.ts +1 -1
- package/lib/auth/login/login.context.directive.d.ts +1 -1
- package/lib/auth/login/login.email.component.d.ts +1 -1
- package/lib/auth/login/login.email.content.component.d.ts +10 -9
- package/lib/auth/login/login.email.form.component.d.ts +5 -8
- package/lib/auth/login/login.email.recovery.form.component.d.ts +1 -1
- package/lib/auth/login/login.facebook.component.d.ts +2 -2
- package/lib/auth/login/login.github.component.d.ts +2 -2
- package/lib/auth/login/login.google.component.d.ts +2 -2
- package/lib/auth/login/login.list.component.d.ts +11 -17
- package/lib/auth/login/login.microsoft.component.d.ts +2 -2
- package/lib/auth/login/login.service.d.ts +3 -3
- package/lib/auth/login/login.terms.component.d.ts +1 -1
- package/lib/auth/login/login.terms.d.ts +17 -3
- package/lib/auth/login/login.terms.simple.component.d.ts +2 -3
- package/lib/auth/login/login.twitter.component.d.ts +2 -2
- package/lib/auth/login/register.component.d.ts +1 -1
- package/lib/auth/login/register.email.component.d.ts +1 -1
- package/lib/development/{development.popup.directive.d.ts → development.directive.d.ts} +2 -2
- package/lib/development/development.module.d.ts +2 -19
- package/lib/development/development.popup.component.d.ts +2 -2
- package/lib/development/development.popup.content.component.d.ts +10 -6
- package/lib/development/development.popup.content.form.component.d.ts +1 -1
- package/lib/development/development.providers.d.ts +32 -0
- package/lib/development/development.scheduler.list.component.d.ts +3 -3
- package/lib/development/development.scheduler.service.d.ts +4 -4
- package/lib/development/development.scheduler.widget.component.d.ts +1 -1
- package/lib/development/development.service.d.ts +2 -3
- package/lib/development/index.d.ts +2 -1
- package/lib/firebase/emulators.d.ts +21 -19
- package/lib/firebase/firebase.emulator.module.d.ts +2 -0
- package/lib/firebase/firebase.emulator.providers.d.ts +13 -0
- package/lib/firebase/firebase.module.d.ts +5 -51
- package/lib/firebase/{options.d.ts → firebase.options.d.ts} +11 -9
- package/lib/firebase/firebase.options.environment.d.ts +10 -0
- package/lib/firebase/firebase.providers.d.ts +51 -0
- package/lib/firebase/index.d.ts +4 -1
- package/lib/firestore/firebase.firestore.module.d.ts +4 -20
- package/lib/firestore/firebase.firestore.providers.d.ts +49 -0
- package/lib/firestore/index.d.ts +1 -0
- package/lib/function/firebase.function.module.d.ts +4 -20
- package/lib/function/firebase.function.providers.d.ts +43 -0
- package/lib/function/index.d.ts +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/model/loader/document.loader.instance.d.ts +1 -1
- package/lib/model/model.module.d.ts +1 -1
- package/lib/model/modules/model/history/index.d.ts +6 -0
- package/lib/model/modules/model/history/model.history.component.d.ts +16 -0
- package/lib/model/modules/model/history/model.history.module.d.ts +16 -0
- package/lib/model/modules/model/{model.history.popover.button.component.d.ts → history/model.history.popover.button.component.d.ts} +7 -6
- package/lib/model/modules/model/{model.history.popover.component.d.ts → history/model.history.popover.component.d.ts} +18 -17
- package/lib/model/modules/model/{model.sourceselect.history.d.ts → history/model.sourceselect.history.d.ts} +5 -5
- package/lib/model/modules/model/{model.tracker.service.d.ts → history/model.tracker.service.d.ts} +6 -6
- package/lib/model/modules/model/index.d.ts +1 -6
- package/lib/model/modules/model/model.types.list.component.d.ts +12 -12
- package/lib/model/modules/model/model.types.module.d.ts +9 -3
- package/lib/model/modules/model/model.types.providers.d.ts +22 -0
- package/lib/model/modules/model/model.types.service.d.ts +6 -3
- package/lib/model/modules/model/model.types.view.directive.d.ts +5 -5
- package/lib/model/modules/store/model.store.module.d.ts +7 -9
- package/lib/model/modules/store/store.document.router.key.directive.d.ts +2 -1
- package/lib/model/service/index.d.ts +1 -0
- package/lib/model/service/model.context.providers.d.ts +18 -0
- package/lib/modules/notification/component/index.d.ts +1 -0
- package/lib/modules/notification/component/notificationitem.content.component.d.ts +4 -4
- package/lib/modules/notification/component/notificationitem.list.component.d.ts +3 -3
- package/lib/modules/notification/component/notificationitem.view.component.d.ts +4 -9
- package/lib/modules/notification/component/notificationitem.view.default.component.d.ts +1 -1
- package/lib/modules/notification/container/notification.item.store.popover.button.component.d.ts +4 -4
- package/lib/modules/notification/container/notification.item.store.popover.component.d.ts +7 -7
- package/lib/modules/notification/index.d.ts +2 -0
- package/lib/modules/notification/notification.module.d.ts +18 -10
- package/lib/modules/notification/notification.providers.d.ts +24 -0
- package/lib/modules/notification/store/index.d.ts +5 -1
- package/lib/modules/notification/store/notificationbox.collection.store.directive.d.ts +1 -1
- package/lib/modules/notification/store/notificationbox.document.store.directive.d.ts +1 -1
- package/lib/modules/notification/store/notificationsummary.collection.store.directive.d.ts +1 -1
- package/lib/modules/notification/store/notificationsummary.document.store.directive.d.ts +1 -1
- package/lib/modules/notification/store/notificationuser.collection.store.directive.d.ts +1 -1
- package/lib/modules/notification/store/notificationuser.document.store.directive.d.ts +1 -1
- package/lib/providers.d.ts +55 -0
- package/lib/storage/firebase.storage.module.d.ts +6 -9
- package/lib/storage/firebase.storage.providers.d.ts +31 -0
- package/lib/storage/index.d.ts +1 -0
- package/lib/style/_theming.scss +1 -1
- package/package.json +7 -8
- package/esm2022/lib/analytics/analytics.user.events.mjs +0 -40
- package/esm2022/lib/development/development.popup.directive.mjs +0 -77
- package/esm2022/lib/firebase/options.mjs +0 -3
- package/esm2022/lib/model/modules/model/model.history.component.mjs +0 -46
- package/esm2022/lib/model/modules/model/model.history.module.mjs +0 -23
- package/esm2022/lib/model/modules/model/model.history.popover.button.component.mjs +0 -44
- package/esm2022/lib/model/modules/model/model.history.popover.component.mjs +0 -47
- package/esm2022/lib/model/modules/model/model.sourceselect.history.mjs +0 -18
- package/esm2022/lib/model/modules/model/model.tracker.service.mjs +0 -58
- package/lib/model/modules/model/model.history.component.d.ts +0 -19
- package/lib/model/modules/model/model.history.module.d.ts +0 -12
|
@@ -5,7 +5,7 @@ import { NgPopoverRef } from 'ng-overlay-container';
|
|
|
5
5
|
import { DbxFirebaseDevelopmentService } from './development.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
|
-
* Directive for
|
|
8
|
+
* Directive for showing the development tools snackbar when the app opens up and listening for keybindings for opening the popup.
|
|
9
9
|
*/
|
|
10
10
|
export declare class DbxFirebaseDevelopmentDirective implements OnDestroy, AfterViewInit {
|
|
11
11
|
readonly popupService: DbxPopupService;
|
|
@@ -20,5 +20,5 @@ export declare class DbxFirebaseDevelopmentDirective implements OnDestroy, After
|
|
|
20
20
|
ngAfterViewInit(): void;
|
|
21
21
|
ngOnDestroy(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentDirective, never>;
|
|
23
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDevelopmentDirective, "[dbxFirebaseDevelopment]", never, {}, {}, never, never,
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDevelopmentDirective, "[dbxFirebaseDevelopment]", never, {}, {}, never, never, true, never>;
|
|
24
24
|
}
|
|
@@ -1,32 +1,15 @@
|
|
|
1
|
-
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import { DbxFirebaseDevelopmentSchedulerService } from './development.scheduler.service';
|
|
3
|
-
import { DbxFirebaseDevelopmentWidgetEntry } from './development.widget';
|
|
4
1
|
import * as i0 from "@angular/core";
|
|
5
2
|
import * as i1 from "./development.popup.content.form.component";
|
|
6
|
-
import * as i2 from "./development.
|
|
3
|
+
import * as i2 from "./development.directive";
|
|
7
4
|
import * as i3 from "./development.popup.component";
|
|
8
5
|
import * as i4 from "./development.popup.content.component";
|
|
9
6
|
import * as i5 from "./development.scheduler.widget.component";
|
|
10
7
|
import * as i6 from "./development.scheduler.list.component";
|
|
11
|
-
import * as i7 from "@angular/common";
|
|
12
|
-
import * as i8 from "@angular/material/icon";
|
|
13
|
-
import * as i9 from "@dereekb/dbx-web";
|
|
14
|
-
import * as i10 from "@angular/material/button";
|
|
15
|
-
import * as i11 from "@dereekb/dbx-form";
|
|
16
|
-
import * as i12 from "@dereekb/dbx-core";
|
|
17
|
-
export declare abstract class DbxFirebaseDevelopmentModuleRootConfig {
|
|
18
|
-
abstract readonly enabled: boolean;
|
|
19
|
-
abstract readonly entries: DbxFirebaseDevelopmentWidgetEntry[];
|
|
20
|
-
abstract readonly addDevelopmentSchedulerWidget?: boolean;
|
|
21
|
-
}
|
|
22
8
|
/**
|
|
23
9
|
* Contains components related to logging in.
|
|
24
10
|
*/
|
|
25
11
|
export declare class DbxFirebaseDevelopmentModule {
|
|
26
|
-
readonly dbxFirebaseDevelopmentSchedulerService: DbxFirebaseDevelopmentSchedulerService;
|
|
27
|
-
constructor();
|
|
28
|
-
static forRoot(config: DbxFirebaseDevelopmentModuleRootConfig): ModuleWithProviders<DbxFirebaseDevelopmentModule>;
|
|
29
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentModule, never>;
|
|
30
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseDevelopmentModule, [typeof i1.DbxFirebaseDevelopmentPopupContentFormComponent, typeof i2.DbxFirebaseDevelopmentDirective, typeof i3.DbxFirebaseDevelopmentPopupComponent, typeof i4.DbxFirebaseDevelopmentPopupContentComponent, typeof i5.DbxFirebaseDevelopmentSchedulerWidgetComponent, typeof i6.DbxFirebaseDevelopmentSchedulerListComponent, typeof i6.DbxFirebaseDevelopmentSchedulerListViewComponent, typeof i6.DbxFirebaseDevelopmentSchedulerListViewItemComponent], [typeof
|
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseDevelopmentModule, never, [typeof i1.DbxFirebaseDevelopmentPopupContentFormComponent, typeof i2.DbxFirebaseDevelopmentDirective, typeof i3.DbxFirebaseDevelopmentPopupComponent, typeof i4.DbxFirebaseDevelopmentPopupContentComponent, typeof i5.DbxFirebaseDevelopmentSchedulerWidgetComponent, typeof i6.DbxFirebaseDevelopmentSchedulerListComponent, typeof i6.DbxFirebaseDevelopmentSchedulerListViewComponent, typeof i6.DbxFirebaseDevelopmentSchedulerListViewItemComponent], [typeof i1.DbxFirebaseDevelopmentPopupContentFormComponent, typeof i2.DbxFirebaseDevelopmentDirective, typeof i3.DbxFirebaseDevelopmentPopupComponent, typeof i4.DbxFirebaseDevelopmentPopupContentComponent, typeof i5.DbxFirebaseDevelopmentSchedulerWidgetComponent, typeof i6.DbxFirebaseDevelopmentSchedulerListComponent, typeof i6.DbxFirebaseDevelopmentSchedulerListViewComponent, typeof i6.DbxFirebaseDevelopmentSchedulerListViewItemComponent]>;
|
|
31
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseDevelopmentModule>;
|
|
32
15
|
}
|
|
@@ -5,10 +5,10 @@ import * as i0 from "@angular/core";
|
|
|
5
5
|
export declare const DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY = "devpopup";
|
|
6
6
|
export declare class DbxFirebaseDevelopmentPopupComponent extends AbstractPopupDirective {
|
|
7
7
|
private readonly popupService;
|
|
8
|
-
content: DbxFirebaseDevelopmentPopupContentComponent
|
|
8
|
+
readonly content: import("@angular/core").Signal<DbxFirebaseDevelopmentPopupContentComponent>;
|
|
9
9
|
readonly header = "Development Tools";
|
|
10
10
|
static openPopup(popupService: DbxPopupService, popupKey?: DbxPopupKey): NgPopoverRef;
|
|
11
11
|
reopen: () => void;
|
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentPopupComponent, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentPopupComponent, "ng-component", never, {}, {}, never, never,
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentPopupComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
14
14
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ClickableAnchor, DbxAuthService } from '@dereekb/dbx-core';
|
|
2
2
|
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { TwoColumnsContextStore } from '@dereekb/dbx-web';
|
|
4
4
|
import { WorkUsingContext, IsModifiedFunction } from '@dereekb/rxjs';
|
|
5
5
|
import { type Maybe } from '@dereekb/util';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
7
|
import { DbxFirebaseDevelopmentWidgetService } from './development.widget.service';
|
|
8
8
|
import { DbxFirebaseDevelopmentSchedulerService } from './development.scheduler.service';
|
|
9
9
|
import { DbxFirebaseDevelopmentPopupContentFormValue } from './development.popup.content.form.component';
|
|
10
|
-
import { DbxFirebaseEmulatorService } from '../firebase';
|
|
10
|
+
import { DbxFirebaseEmulatorService } from '../firebase/firebase.emulator.service';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class DbxFirebaseDevelopmentPopupContentComponent implements OnInit, OnDestroy {
|
|
13
13
|
readonly twoColumnsContextStore: TwoColumnsContextStore;
|
|
@@ -28,18 +28,22 @@ export declare class DbxFirebaseDevelopmentPopupContentComponent implements OnIn
|
|
|
28
28
|
readonly activeEntrySelector$: Observable<Maybe<string>>;
|
|
29
29
|
readonly currentActiveEntry$: Observable<import("@dereekb/dbx-firebase").DbxFirebaseDevelopmentWidgetEntry | undefined>;
|
|
30
30
|
readonly showRight$: Observable<boolean>;
|
|
31
|
-
readonly activeEntry$: Observable<import("@dereekb/dbx-firebase").DbxFirebaseDevelopmentWidgetEntry>;
|
|
32
|
-
readonly rightTitle$: Observable<string>;
|
|
33
|
-
readonly widgetConfig$: Observable<DbxWidgetDataPair>;
|
|
31
|
+
readonly activeEntry$: Observable<import("@dereekb/dbx-firebase").DbxFirebaseDevelopmentWidgetEntry | undefined>;
|
|
34
32
|
readonly schedulerRunning$: Observable<boolean>;
|
|
35
33
|
readonly schedulerInterval$: Observable<number>;
|
|
36
34
|
readonly schedulerError$: Observable<"Error Occured" | "Ok">;
|
|
37
35
|
readonly formData$: Observable<DbxFirebaseDevelopmentPopupContentFormValue>;
|
|
36
|
+
readonly schedulerRunningSignal: import("@angular/core").Signal<boolean | undefined>;
|
|
37
|
+
readonly schedulerIntervalSignal: import("@angular/core").Signal<number | undefined>;
|
|
38
|
+
readonly schedulerErrorSignal: import("@angular/core").Signal<"Error Occured" | "Ok" | undefined>;
|
|
39
|
+
readonly activeEntrySignal: import("@angular/core").Signal<import("@dereekb/dbx-firebase").DbxFirebaseDevelopmentWidgetEntry | undefined>;
|
|
40
|
+
readonly rightTitleSignal: import("@angular/core").Signal<string | undefined>;
|
|
41
|
+
readonly widgetConfigSignal: import("@angular/core").Signal<Maybe<Readonly<import("@dereekb/util").ModelTypeDataPair<unknown, string>>>>;
|
|
38
42
|
ngOnInit(): void;
|
|
39
43
|
ngOnDestroy(): void;
|
|
40
44
|
readonly handleFormUpdate: WorkUsingContext<DbxFirebaseDevelopmentPopupContentFormValue, void>;
|
|
41
45
|
readonly isFormModified: IsModifiedFunction<DbxFirebaseDevelopmentPopupContentFormValue>;
|
|
42
46
|
clearSelection(): void;
|
|
43
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentPopupContentComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentPopupContentComponent, "dbx-firebase-development-popup-content", never, {}, {}, never, never,
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentPopupContentComponent, "dbx-firebase-development-popup-content", never, {}, {}, never, never, true, never>;
|
|
45
49
|
}
|
|
@@ -13,5 +13,5 @@ export interface DbxFirebaseDevelopmentPopupContentFormValue {
|
|
|
13
13
|
export declare class DbxFirebaseDevelopmentPopupContentFormComponent extends AbstractConfigAsyncFormlyFormDirective<DbxFirebaseDevelopmentPopupContentFormValue, DbxFirebaseDevelopmentPopupContentFormInput> {
|
|
14
14
|
readonly fields$: Observable<FormlyFieldConfig[]>;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentPopupContentFormComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentPopupContentFormComponent, "dbx-firebase-development-popup-content-form", never, {}, {}, never, never,
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentPopupContentFormComponent, "dbx-firebase-development-popup-content-form", never, {}, {}, never, never, true, never>;
|
|
17
17
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { DbxFirebaseDevelopmentWidgetEntry } from './development.widget';
|
|
3
|
+
/**
|
|
4
|
+
* Configuration for provideDbxFirebaseDevelopment().
|
|
5
|
+
*/
|
|
6
|
+
export interface ProvideDbxFirebaseDevelopmentConfig {
|
|
7
|
+
/**
|
|
8
|
+
* Whether or not to automatically add the developmentFirebaseServerSchedulerWidgetEntry() to the developmentWidgetEntries.
|
|
9
|
+
*
|
|
10
|
+
* Defaults to true.
|
|
11
|
+
*/
|
|
12
|
+
readonly addDevelopmentSchedulerWidget?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Widgets to add to the DbxFirebaseDevelopmentWidgetService module.
|
|
15
|
+
*
|
|
16
|
+
* Configured via the DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN.
|
|
17
|
+
*/
|
|
18
|
+
readonly developmentWidgetEntries?: DbxFirebaseDevelopmentWidgetEntry[];
|
|
19
|
+
/**
|
|
20
|
+
* Whether or not the development module is currently enabled.
|
|
21
|
+
*
|
|
22
|
+
* Corresponds to DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN.
|
|
23
|
+
*/
|
|
24
|
+
readonly enabled?: boolean;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Creates providers for DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentWidgetService, and DbxFirebaseDevelopmentService.
|
|
28
|
+
*
|
|
29
|
+
* @param config
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
export declare function provideDbxFirebaseDevelopment(config: ProvideDbxFirebaseDevelopmentConfig): EnvironmentProviders;
|
|
@@ -7,17 +7,17 @@ export type ScheduledFunctionDevelopmentFirebaseFunctionListEntryWithSelection =
|
|
|
7
7
|
export declare class DbxFirebaseDevelopmentSchedulerListComponent extends AbstractDbxSelectionListWrapperDirective<ScheduledFunctionDevelopmentFirebaseFunctionListEntry> {
|
|
8
8
|
constructor();
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentSchedulerListComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentSchedulerListComponent, "dbx-firebase-development-scheduler-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]"],
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentSchedulerListComponent, "dbx-firebase-development-scheduler-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]"], true, never>;
|
|
11
11
|
}
|
|
12
12
|
export declare class DbxFirebaseDevelopmentSchedulerListViewComponent extends AbstractDbxSelectionListViewDirective<ScheduledFunctionDevelopmentFirebaseFunctionListEntry> {
|
|
13
13
|
readonly config: DbxSelectionValueListViewConfig<ScheduledFunctionDevelopmentFirebaseFunctionListEntryWithSelection>;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentSchedulerListViewComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentSchedulerListViewComponent, "dbx-firebase-development-scheduler-list-view", never, {}, {}, never, never,
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentSchedulerListViewComponent, "dbx-firebase-development-scheduler-list-view", never, {}, {}, never, never, true, never>;
|
|
16
16
|
}
|
|
17
17
|
export declare class DbxFirebaseDevelopmentSchedulerListViewItemComponent extends AbstractDbxValueListViewItemComponent<ScheduledFunctionDevelopmentFirebaseFunctionListEntry> {
|
|
18
18
|
readonly dbxFirebaseDevelopmentSchedulerService: DbxFirebaseDevelopmentSchedulerService;
|
|
19
19
|
get name(): string;
|
|
20
20
|
readonly handleRun: WorkUsingContext<unknown, unknown>;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentSchedulerListViewItemComponent, never>;
|
|
22
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentSchedulerListViewItemComponent, "ng-component", never, {}, {}, never, never,
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentSchedulerListViewItemComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
23
23
|
}
|
|
@@ -14,10 +14,10 @@ export declare const DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN: Injec
|
|
|
14
14
|
export declare class DbxFirebaseDevelopmentSchedulerService implements Initialized {
|
|
15
15
|
readonly dbxAuthService: DbxAuthService;
|
|
16
16
|
readonly firebaseDevelopmentFunctions: FirebaseDevelopmentFunctions;
|
|
17
|
-
private _sub;
|
|
18
|
-
private _enabled;
|
|
19
|
-
private _timerInterval;
|
|
20
|
-
private _error;
|
|
17
|
+
private readonly _sub;
|
|
18
|
+
private readonly _enabled;
|
|
19
|
+
private readonly _timerInterval;
|
|
20
|
+
private readonly _error;
|
|
21
21
|
readonly enabled$: Observable<boolean>;
|
|
22
22
|
readonly running$: Observable<boolean>;
|
|
23
23
|
readonly timerInterval$: Observable<number>;
|
|
@@ -8,5 +8,5 @@ export declare class DbxFirebaseDevelopmentSchedulerWidgetComponent {
|
|
|
8
8
|
readonly entries$: import("rxjs").Observable<import("dist/packages/firebase/src").ScheduledFunctionDevelopmentFirebaseFunctionListEntry[]>;
|
|
9
9
|
readonly state$: import("rxjs").Observable<import("@dereekb/rxjs").LoadingState<import("dist/packages/firebase/src").ScheduledFunctionDevelopmentFirebaseFunctionListEntry[]>>;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentSchedulerWidgetComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentSchedulerWidgetComponent, "ng-component", never, {}, {}, never, never,
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentSchedulerWidgetComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* Corresponds to the enabled value on the DbxFirebaseDevelopmentService.
|
|
5
5
|
*/
|
|
6
6
|
export declare const DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN: InjectionToken<unknown>;
|
|
7
7
|
/**
|
|
@@ -11,7 +11,6 @@ export declare const DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN: InjectionToken<
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class DbxFirebaseDevelopmentService {
|
|
13
13
|
readonly enabled: boolean;
|
|
14
|
-
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentService, [{ optional: true; }]>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentService, never>;
|
|
16
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<DbxFirebaseDevelopmentService>;
|
|
17
16
|
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export * from './development.module';
|
|
2
|
+
export * from './development.providers';
|
|
2
3
|
export * from './development.widget.service';
|
|
3
4
|
export * from './development.popup.component';
|
|
4
5
|
export * from './development.popup.content.component';
|
|
5
6
|
export * from './development.popup.content.form.component';
|
|
6
|
-
export * from './development.
|
|
7
|
+
export * from './development.directive';
|
|
7
8
|
export * from './development.scheduler.list.component';
|
|
8
9
|
export * from './development.scheduler.service';
|
|
9
10
|
export * from './development.scheduler.widget.component';
|
|
@@ -2,57 +2,59 @@ export interface DbxFirebaseEmulatorConfig {
|
|
|
2
2
|
/**
|
|
3
3
|
* Port to target.
|
|
4
4
|
*/
|
|
5
|
-
port: number;
|
|
5
|
+
readonly port: number;
|
|
6
6
|
/**
|
|
7
7
|
* Defaults to localhost if not provided.
|
|
8
8
|
*/
|
|
9
|
-
host?: string;
|
|
9
|
+
readonly host?: string;
|
|
10
10
|
}
|
|
11
11
|
export interface DbxFirebaseEmulatorsConfig {
|
|
12
12
|
/**
|
|
13
13
|
* Whether or not to enable the emulators.
|
|
14
|
+
*
|
|
15
|
+
* Defaults to false.
|
|
14
16
|
*/
|
|
15
|
-
useEmulators?: boolean;
|
|
17
|
+
readonly useEmulators?: boolean;
|
|
16
18
|
/**
|
|
17
19
|
* Default host to target. Defaults to localhost if not provided.
|
|
18
20
|
*/
|
|
19
|
-
host?: string;
|
|
21
|
+
readonly host?: string;
|
|
20
22
|
/**
|
|
21
23
|
* emulator UI configuration
|
|
22
24
|
*/
|
|
23
|
-
ui?: DbxFirebaseEmulatorConfig;
|
|
25
|
+
readonly ui?: DbxFirebaseEmulatorConfig;
|
|
24
26
|
/**
|
|
25
27
|
* Auth emulator configuration
|
|
26
28
|
*/
|
|
27
|
-
auth?: DbxFirebaseEmulatorConfig;
|
|
29
|
+
readonly auth?: DbxFirebaseEmulatorConfig;
|
|
28
30
|
/**
|
|
29
31
|
* Firestore emulator configuration
|
|
30
32
|
*/
|
|
31
|
-
firestore?: DbxFirebaseEmulatorConfig;
|
|
33
|
+
readonly firestore?: DbxFirebaseEmulatorConfig;
|
|
32
34
|
/**
|
|
33
35
|
* Firestore emulator configuration
|
|
34
36
|
*/
|
|
35
|
-
storage?: DbxFirebaseEmulatorConfig;
|
|
37
|
+
readonly storage?: DbxFirebaseEmulatorConfig;
|
|
36
38
|
/**
|
|
37
39
|
* Functions emulator configuration
|
|
38
40
|
*/
|
|
39
|
-
functions?: DbxFirebaseEmulatorConfig;
|
|
41
|
+
readonly functions?: DbxFirebaseEmulatorConfig;
|
|
40
42
|
/**
|
|
41
43
|
* Database emulator configuration
|
|
42
44
|
*/
|
|
43
|
-
database?: DbxFirebaseEmulatorConfig;
|
|
45
|
+
readonly database?: DbxFirebaseEmulatorConfig;
|
|
44
46
|
}
|
|
45
47
|
export declare abstract class DbxFirebaseParsedEmulatorsConfig implements DbxFirebaseEmulatorsConfig {
|
|
46
|
-
abstract useEmulators: boolean;
|
|
47
|
-
host?: string;
|
|
48
|
+
abstract readonly useEmulators: boolean;
|
|
49
|
+
readonly host?: string;
|
|
48
50
|
/**
|
|
49
51
|
* Fix used by some components to allow changing 0.0.0.0 to localhost. Defaults to true.
|
|
50
52
|
*/
|
|
51
|
-
allow0000ToLocalhost?: boolean;
|
|
52
|
-
ui?: Required<DbxFirebaseEmulatorConfig>;
|
|
53
|
-
auth?: Required<DbxFirebaseEmulatorConfig>;
|
|
54
|
-
firestore?: Required<DbxFirebaseEmulatorConfig>;
|
|
55
|
-
storage?: Required<DbxFirebaseEmulatorConfig>;
|
|
56
|
-
functions?: Required<DbxFirebaseEmulatorConfig>;
|
|
57
|
-
database?: Required<DbxFirebaseEmulatorConfig>;
|
|
53
|
+
readonly allow0000ToLocalhost?: boolean;
|
|
54
|
+
readonly ui?: Required<DbxFirebaseEmulatorConfig>;
|
|
55
|
+
readonly auth?: Required<DbxFirebaseEmulatorConfig>;
|
|
56
|
+
readonly firestore?: Required<DbxFirebaseEmulatorConfig>;
|
|
57
|
+
readonly storage?: Required<DbxFirebaseEmulatorConfig>;
|
|
58
|
+
readonly functions?: Required<DbxFirebaseEmulatorConfig>;
|
|
59
|
+
readonly database?: Required<DbxFirebaseEmulatorConfig>;
|
|
58
60
|
}
|
|
@@ -3,6 +3,8 @@ import { DbxFirebaseEmulatorsConfig } from './emulators';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Used to configure the DbxFirebaseEmulatorsConfig provider.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated use provideDbxFirebaseEmulator instead.
|
|
6
8
|
*/
|
|
7
9
|
export declare class DbxFirebaseEmulatorModule {
|
|
8
10
|
static forRoot(config: DbxFirebaseEmulatorsConfig): ModuleWithProviders<DbxFirebaseEmulatorModule>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { DbxFirebaseEmulatorsConfig } from './emulators';
|
|
3
|
+
/**
|
|
4
|
+
* Config for provideDbxFirebaseEmulator().
|
|
5
|
+
*/
|
|
6
|
+
export type ProvideDbxFirebaseEmulatorsConfig = DbxFirebaseEmulatorsConfig;
|
|
7
|
+
/**
|
|
8
|
+
* Creates EnvironmentProviders for the DbxFirebaseEmulatorService.
|
|
9
|
+
*
|
|
10
|
+
* @param config
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function provideDbxFirebaseEmulator(config: ProvideDbxFirebaseEmulatorsConfig): EnvironmentProviders;
|
|
@@ -1,60 +1,14 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { DbxFirebaseAppOptions } from './firebase.options';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/fire/firestore";
|
|
5
|
-
import * as i2 from "@angular/fire/app-check";
|
|
6
|
-
import * as i3 from "@angular/fire/auth";
|
|
7
|
-
import * as i4 from "@angular/fire/storage";
|
|
8
|
-
import * as i5 from "@angular/fire/functions";
|
|
9
|
-
import * as i6 from "@angular/fire/app";
|
|
10
|
-
/**
|
|
11
|
-
* Default firebase firestore provider module.
|
|
12
|
-
*/
|
|
13
|
-
export declare class DbxFirebaseDefaultFirestoreProviderModule {
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDefaultFirestoreProviderModule, never>;
|
|
15
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseDefaultFirestoreProviderModule, never, [typeof i1.FirestoreModule], never>;
|
|
16
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseDefaultFirestoreProviderModule>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Default firebase app check provider module.
|
|
20
|
-
*
|
|
21
|
-
* Also configures the DbxFirebaseAppCheckHttpInterceptor with HTTP_INTERCEPTORS in order for appCheck to be appended to requests to the api.
|
|
22
|
-
*/
|
|
23
|
-
export declare class DbxFirebaseDefaultAppCheckProviderModule {
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDefaultAppCheckProviderModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseDefaultAppCheckProviderModule, never, [typeof i2.AppCheckModule], never>;
|
|
26
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseDefaultAppCheckProviderModule>;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Default firebase auth provider module.
|
|
30
|
-
*/
|
|
31
|
-
export declare class DbxFirebaseDefaultAuthProviderModule {
|
|
32
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDefaultAuthProviderModule, never>;
|
|
33
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseDefaultAuthProviderModule, never, [typeof i3.AuthModule], never>;
|
|
34
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseDefaultAuthProviderModule>;
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Default firebase storage provider module.
|
|
38
|
-
*/
|
|
39
|
-
export declare class DbxFirebaseDefaultStorageProviderModule {
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDefaultStorageProviderModule, never>;
|
|
41
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseDefaultStorageProviderModule, never, [typeof i4.StorageModule], never>;
|
|
42
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseDefaultStorageProviderModule>;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Default firebase functions provider module.
|
|
46
|
-
*/
|
|
47
|
-
export declare class DbxFirebaseDefaultFunctionsProviderModule {
|
|
48
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDefaultFunctionsProviderModule, never>;
|
|
49
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseDefaultFunctionsProviderModule, never, [typeof i5.FunctionsModule], never>;
|
|
50
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseDefaultFunctionsProviderModule>;
|
|
51
|
-
}
|
|
52
4
|
/**
|
|
53
5
|
* Default provider module.
|
|
6
|
+
*
|
|
7
|
+
* @deprecated use provideDbxFirebaseApp() instead
|
|
54
8
|
*/
|
|
55
9
|
export declare class DbxFirebaseDefaultFirebaseProvidersModule {
|
|
56
|
-
static forRoot(
|
|
10
|
+
static forRoot(dbxFirebaseOptions: DbxFirebaseAppOptions): ModuleWithProviders<DbxFirebaseDefaultFirebaseProvidersModule>;
|
|
57
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDefaultFirebaseProvidersModule, never>;
|
|
58
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseDefaultFirebaseProvidersModule, never,
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseDefaultFirebaseProvidersModule, never, never, never>;
|
|
59
13
|
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseDefaultFirebaseProvidersModule>;
|
|
60
14
|
}
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { PersistentCacheSettings } from 'firebase/firestore';
|
|
3
3
|
import { FirebaseOptions } from 'firebase/app';
|
|
4
|
-
import { DbxFirebaseLoginModuleRootConfig } from '../auth/login/firebase.login.module';
|
|
5
4
|
import { DbxFirebaseAppCheckConfig } from './appcheck';
|
|
6
5
|
import { DbxFirebaseEmulatorsConfig } from './emulators';
|
|
7
|
-
export declare const
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export declare const DBX_FIREBASE_APP_OPTIONS_TOKEN: InjectionToken<unknown>;
|
|
7
|
+
/**
|
|
8
|
+
* Extends FirebaseOptions with additional properties for configuring the underlying client-side Firebase services.
|
|
9
|
+
*/
|
|
10
|
+
export interface DbxFirebaseAppOptions extends FirebaseOptions {
|
|
11
|
+
readonly emulators: DbxFirebaseEmulatorsConfig;
|
|
10
12
|
/**
|
|
11
13
|
* Firebase AppCheck handling
|
|
12
14
|
*/
|
|
13
|
-
appCheck?: DbxFirebaseAppCheckConfig;
|
|
15
|
+
readonly appCheck?: DbxFirebaseAppCheckConfig;
|
|
14
16
|
/**
|
|
15
17
|
* Passed to the Functions initialization to set the domain to use when sending requests.
|
|
16
18
|
*/
|
|
17
|
-
functionsRegionOrCustomDomain?: string | undefined;
|
|
19
|
+
readonly functionsRegionOrCustomDomain?: string | undefined;
|
|
18
20
|
/**
|
|
19
21
|
* Whether or not to call enableMultiTabIndexedDbPersistence() for firestore at setup time.
|
|
20
22
|
*
|
|
21
23
|
* True by default.
|
|
22
24
|
*/
|
|
23
|
-
enableMultiTabIndexedDbPersistence?: boolean;
|
|
25
|
+
readonly enableMultiTabIndexedDbPersistence?: boolean;
|
|
24
26
|
/**
|
|
25
27
|
* Whether or not to call enableIndexedDbPersistence() for firestore at setup time.
|
|
26
28
|
*
|
|
27
29
|
* True by default if enableMultiTabIndexedDbPersistence is false.
|
|
28
30
|
*/
|
|
29
|
-
enableIndexedDbPersistence?: boolean;
|
|
31
|
+
readonly enableIndexedDbPersistence?: boolean;
|
|
30
32
|
/**
|
|
31
33
|
* Optional persistent cache setting to pass to the Firestore cache.
|
|
32
34
|
*/
|
|
33
|
-
persistentCacheSettings?: Omit<PersistentCacheSettings, 'tabManager'>;
|
|
35
|
+
readonly persistentCacheSettings?: Omit<PersistentCacheSettings, 'tabManager'>;
|
|
34
36
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ProvideDbxFirebaseLoginConfig } from '../auth/login/firebase.login.providers';
|
|
2
|
+
import { DbxFirebaseAppOptions } from './firebase.options';
|
|
3
|
+
/**
|
|
4
|
+
* Convenience type used in .environment.ts files for building configuration.
|
|
5
|
+
*/
|
|
6
|
+
export type DbxFirebaseEnvironmentOptions = DbxFirebaseAppOptions & Pick<ProvideDbxFirebaseLoginConfig, 'enabledLoginMethods'>;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated use DbxFirebaseEnvironmentOptions instead.
|
|
9
|
+
*/
|
|
10
|
+
export type DbxFirebaseOptions = DbxFirebaseEnvironmentOptions;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { DbxFirebaseAppOptions } from './firebase.options';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
/**
|
|
5
|
+
* Configuration for provideDbxFirebaseApp().
|
|
6
|
+
*/
|
|
7
|
+
export interface ProvideDbxFirebaseAppConfig {
|
|
8
|
+
/**
|
|
9
|
+
* DbxFirebaseAppOptions for the app.
|
|
10
|
+
*
|
|
11
|
+
* Is automatically configured as a provider for the DBX_FIREBASE_APP_OPTIONS_TOKEN.
|
|
12
|
+
*/
|
|
13
|
+
readonly dbxFirebaseAppOptions: DbxFirebaseAppOptions;
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not to provide Firestore configuration.
|
|
16
|
+
*
|
|
17
|
+
* True by default.
|
|
18
|
+
*/
|
|
19
|
+
readonly provideFirestore?: Maybe<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether or not to provide App Check configuration.
|
|
22
|
+
*
|
|
23
|
+
* True by default.
|
|
24
|
+
*/
|
|
25
|
+
readonly provideAppCheck?: Maybe<boolean>;
|
|
26
|
+
/**
|
|
27
|
+
* Whether or not to provide Auth configuration.
|
|
28
|
+
*
|
|
29
|
+
* True by default.
|
|
30
|
+
*/
|
|
31
|
+
readonly provideAuth?: Maybe<boolean>;
|
|
32
|
+
/**
|
|
33
|
+
* Whether or not to provide Storage configuration.
|
|
34
|
+
*
|
|
35
|
+
* True by default.
|
|
36
|
+
*/
|
|
37
|
+
readonly provideStorage?: Maybe<boolean>;
|
|
38
|
+
/**
|
|
39
|
+
* Whether or not to provide Functions configuration.
|
|
40
|
+
*
|
|
41
|
+
* True by default.
|
|
42
|
+
*/
|
|
43
|
+
readonly provideFunctions?: Maybe<boolean>;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Provides EnvironmentProviders for all Firebase services.
|
|
47
|
+
*
|
|
48
|
+
* @param config
|
|
49
|
+
* @returns EnvironmentProviders
|
|
50
|
+
*/
|
|
51
|
+
export declare function provideDbxFirebaseApp(config: ProvideDbxFirebaseAppConfig): EnvironmentProviders;
|
package/lib/firebase/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
export * from './appcheck';
|
|
2
2
|
export * from './emulators';
|
|
3
|
+
export * from './firebase.providers';
|
|
3
4
|
export * from './firebase.module';
|
|
4
5
|
export * from './firebase.emulator.module';
|
|
5
6
|
export * from './firebase.emulator.service';
|
|
6
|
-
export * from './
|
|
7
|
+
export * from './firebase.emulator.providers';
|
|
8
|
+
export * from './firebase.options';
|
|
9
|
+
export * from './firebase.options.environment';
|
|
@@ -1,27 +1,11 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { ClassLikeType } from '@dereekb/util';
|
|
2
|
+
import { ProvideDbxFirebaseFirestoreCollectionConfig } from './firebase.firestore.providers';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
6
|
-
export declare function provideNotificationFirestoreCollections(appCollection: NotificationFirestoreCollections): NotificationFirestoreCollections;
|
|
7
|
-
export interface DbxFirebaseFirestoreCollectionModuleConfig<T> {
|
|
8
|
-
readonly appCollectionClass: ClassLikeType<T>;
|
|
9
|
-
readonly collectionFactory: (context: FirestoreContext) => T;
|
|
10
|
-
/**
|
|
11
|
-
* Whether or not to provide the SystemStateFirestoreCollections.
|
|
12
|
-
*
|
|
13
|
-
* True by default.
|
|
14
|
-
*/
|
|
15
|
-
readonly provideSystemStateFirestoreCollections?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Whether or not to provide the NotificationFirestoreCollections.
|
|
18
|
-
*
|
|
19
|
-
* False by default.
|
|
20
|
-
*/
|
|
21
|
-
readonly provideNotificationFirestoreCollections?: boolean;
|
|
22
|
-
}
|
|
4
|
+
export type DbxFirebaseFirestoreCollectionModuleConfig<T> = ProvideDbxFirebaseFirestoreCollectionConfig<T>;
|
|
23
5
|
/**
|
|
24
6
|
* Used to initialize the FirestoreCollection for a DbxFirebase app.
|
|
7
|
+
*
|
|
8
|
+
* @deprecated use provideDbxFirestoreCollection() instead.
|
|
25
9
|
*/
|
|
26
10
|
export declare class DbxFirebaseFirestoreCollectionModule {
|
|
27
11
|
static forRoot<T>(config: DbxFirebaseFirestoreCollectionModuleConfig<T>): ModuleWithProviders<DbxFirebaseFirestoreCollectionModule>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { EnvironmentProviders } from '@angular/core';
|
|
2
|
+
import { FirestoreContext, NotificationFirestoreCollections, SystemStateFirestoreCollections } from '@dereekb/firebase';
|
|
3
|
+
import { ClassLikeType } from '@dereekb/util';
|
|
4
|
+
/**
|
|
5
|
+
* Provider factory for the SystemStateFirestoreCollections.
|
|
6
|
+
*
|
|
7
|
+
* @param appCollection The app collection class to use.
|
|
8
|
+
* @returns Provider factory for the SystemStateFirestoreCollections.
|
|
9
|
+
*/
|
|
10
|
+
export declare function provideSystemStateFirestoreCollections(appCollection: SystemStateFirestoreCollections): SystemStateFirestoreCollections;
|
|
11
|
+
/**
|
|
12
|
+
* Provider factory for the NotificationFirestoreCollections.
|
|
13
|
+
*
|
|
14
|
+
* @param appCollection The app collection class to use.
|
|
15
|
+
* @returns Provider factory for the NotificationFirestoreCollections.
|
|
16
|
+
*/
|
|
17
|
+
export declare function provideNotificationFirestoreCollections(appCollection: NotificationFirestoreCollections): NotificationFirestoreCollections;
|
|
18
|
+
/**
|
|
19
|
+
* Configuration for provideDbxFirestoreCollection().
|
|
20
|
+
*/
|
|
21
|
+
export interface ProvideDbxFirebaseFirestoreCollectionConfig<T> {
|
|
22
|
+
/**
|
|
23
|
+
* The app collection class to use.
|
|
24
|
+
*/
|
|
25
|
+
readonly appCollectionClass: ClassLikeType<T>;
|
|
26
|
+
/**
|
|
27
|
+
* The collection factory to use.
|
|
28
|
+
*/
|
|
29
|
+
readonly collectionFactory: (context: FirestoreContext) => T;
|
|
30
|
+
/**
|
|
31
|
+
* Whether or not to provide the SystemStateFirestoreCollections.
|
|
32
|
+
*
|
|
33
|
+
* True by default.
|
|
34
|
+
*/
|
|
35
|
+
readonly provideSystemStateFirestoreCollections?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Whether or not to provide the NotificationFirestoreCollections.
|
|
38
|
+
*
|
|
39
|
+
* False by default.
|
|
40
|
+
*/
|
|
41
|
+
readonly provideNotificationFirestoreCollections?: boolean;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Creates EnvironmentProviders for the DBX_FIRESTORE_CONTEXT_TOKEN, appCollectionClass, and optionally the SystemStateFirestoreCollections and NotificationFirestoreCollections.
|
|
45
|
+
*
|
|
46
|
+
* @param config Configuration for the providers.
|
|
47
|
+
* @returns EnvironmentProviders
|
|
48
|
+
*/
|
|
49
|
+
export declare function provideDbxFirestoreCollection<T>(config: ProvideDbxFirebaseFirestoreCollectionConfig<T>): EnvironmentProviders;
|
package/lib/firestore/index.d.ts
CHANGED