@dereekb/dbx-firebase 11.0.21 → 11.1.1
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.source.mjs +1 -1
- package/esm2022/lib/auth/auth.mjs +1 -1
- package/esm2022/lib/auth/login/login.component.mjs +1 -1
- package/esm2022/lib/auth/login/login.email.content.component.mjs +1 -1
- package/esm2022/lib/auth/login/login.email.form.component.mjs +1 -1
- package/esm2022/lib/auth/login/login.service.mjs +4 -4
- package/esm2022/lib/auth/login/register.component.mjs +1 -1
- package/esm2022/lib/auth/service/firebase.auth.service.delegate.mjs +3 -3
- package/esm2022/lib/auth/service/firebase.auth.service.mjs +1 -1
- package/esm2022/lib/development/development.popup.content.component.mjs +1 -1
- package/esm2022/lib/development/development.popup.content.form.component.mjs +1 -1
- package/esm2022/lib/development/development.widget.mjs +1 -1
- package/esm2022/lib/development/development.widget.service.mjs +1 -1
- package/esm2022/lib/firebase/firebase.emulator.module.mjs +1 -1
- package/esm2022/lib/firebase/firebase.emulator.service.mjs +1 -1
- package/esm2022/lib/firestore/firebase.firestore.module.mjs +16 -3
- package/esm2022/lib/index.mjs +2 -1
- package/esm2022/lib/model/loader/document.loader.instance.mjs +1 -1
- package/esm2022/lib/model/modules/model/model.history.component.mjs +1 -1
- package/esm2022/lib/model/modules/model/model.history.popover.component.mjs +3 -3
- package/esm2022/lib/model/modules/model/model.tracker.service.mjs +4 -4
- package/esm2022/lib/model/modules/model/model.types.list.component.mjs +1 -1
- package/esm2022/lib/model/modules/model/model.types.service.mjs +7 -4
- package/esm2022/lib/model/modules/store/index.mjs +4 -1
- package/esm2022/lib/model/modules/store/model.store.module.mjs +5 -3
- package/esm2022/lib/model/modules/store/store.collection.change.directive.mjs +1 -1
- package/esm2022/lib/model/modules/store/store.collection.change.if.directive.mjs +1 -1
- package/esm2022/lib/model/modules/store/store.document.directive.mjs +20 -5
- package/esm2022/lib/model/modules/store/store.document.mjs +17 -4
- package/esm2022/lib/model/modules/store/store.document.router.directive.mjs +15 -28
- package/esm2022/lib/model/modules/store/store.document.router.key.directive.mjs +15 -23
- package/esm2022/lib/model/modules/store/store.document.twoway.key.directive.mjs +24 -0
- package/esm2022/lib/model/modules/store/store.document.twoway.key.source.directive.mjs +21 -0
- package/esm2022/lib/model/modules/store/store.document.twoway.key.source.mjs +16 -0
- package/esm2022/lib/model/modules/store/store.subcollection.directive.mjs +1 -1
- package/esm2022/lib/model/modules/store/store.subcollection.document.mjs +1 -1
- package/esm2022/lib/model/modules/store/store.subcollection.mjs +1 -1
- package/esm2022/lib/model/modules/store/store.subcollection.rxjs.mjs +1 -1
- package/esm2022/lib/model/service/model.context.mjs +1 -1
- package/esm2022/lib/modules/index.mjs +2 -0
- package/esm2022/lib/modules/notification/component/index.mjs +5 -0
- package/esm2022/lib/modules/notification/component/notificationitem.content.component.mjs +21 -0
- package/esm2022/lib/modules/notification/component/notificationitem.list.component.mjs +81 -0
- package/esm2022/lib/modules/notification/component/notificationitem.view.component.mjs +44 -0
- package/esm2022/lib/modules/notification/component/notificationitem.view.default.component.mjs +25 -0
- package/esm2022/lib/modules/notification/component/notificationitem.view.directive.mjs +14 -0
- package/esm2022/lib/modules/notification/container/index.mjs +3 -0
- package/esm2022/lib/modules/notification/container/notification.item.store.popover.button.component.mjs +52 -0
- package/esm2022/lib/modules/notification/container/notification.item.store.popover.component.mjs +47 -0
- package/esm2022/lib/modules/notification/index.mjs +5 -0
- package/esm2022/lib/modules/notification/notification.module.mjs +102 -0
- package/esm2022/lib/modules/notification/service/index.mjs +4 -0
- package/esm2022/lib/modules/notification/service/notification.template.service.mjs +28 -0
- package/esm2022/lib/modules/notification/service/notificationitem.widget.mjs +11 -0
- package/esm2022/lib/modules/notification/service/notificationitem.widget.service.mjs +58 -0
- package/esm2022/lib/modules/notification/store/index.mjs +10 -0
- package/esm2022/lib/modules/notification/store/notification.item.store.mjs +30 -0
- package/esm2022/lib/modules/notification/store/notificationbox.collection.store.directive.mjs +20 -0
- package/esm2022/lib/modules/notification/store/notificationbox.collection.store.mjs +16 -0
- package/esm2022/lib/modules/notification/store/notificationbox.document.store.directive.mjs +20 -0
- package/esm2022/lib/modules/notification/store/notificationbox.document.store.mjs +22 -0
- package/esm2022/lib/modules/notification/store/notificationsummary.collection.store.directive.mjs +20 -0
- package/esm2022/lib/modules/notification/store/notificationsummary.collection.store.mjs +16 -0
- package/esm2022/lib/modules/notification/store/notificationsummary.document.store.directive.mjs +20 -0
- package/esm2022/lib/modules/notification/store/notificationsummary.document.store.mjs +34 -0
- package/esm2022/lib/modules/notification/store/notificationuser.collection.store.directive.mjs +20 -0
- package/esm2022/lib/modules/notification/store/notificationuser.collection.store.mjs +16 -0
- package/esm2022/lib/modules/notification/store/notificationuser.document.store.directive.mjs +20 -0
- package/esm2022/lib/modules/notification/store/notificationuser.document.store.mjs +18 -0
- package/esm2022/lib/pipe/key.pipe.mjs +1 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +839 -135
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/analytics/analytics.user.source.d.ts +1 -1
- package/lib/auth/auth.d.ts +1 -1
- package/lib/auth/login/login.component.d.ts +1 -1
- package/lib/auth/login/login.email.content.component.d.ts +1 -1
- package/lib/auth/login/login.email.form.component.d.ts +1 -1
- package/lib/auth/login/register.component.d.ts +1 -1
- package/lib/auth/service/firebase.auth.service.d.ts +1 -1
- package/lib/development/development.popup.content.component.d.ts +2 -2
- package/lib/development/development.popup.content.form.component.d.ts +1 -1
- package/lib/development/development.widget.d.ts +2 -2
- package/lib/development/development.widget.service.d.ts +1 -1
- package/lib/firebase/firebase.emulator.service.d.ts +1 -1
- package/lib/firestore/firebase.firestore.module.d.ts +11 -4
- package/lib/index.d.ts +1 -0
- package/lib/model/loader/document.loader.instance.d.ts +1 -1
- package/lib/model/modules/model/model.history.component.d.ts +2 -2
- package/lib/model/modules/model/model.history.popover.component.d.ts +2 -2
- package/lib/model/modules/model/model.types.list.component.d.ts +2 -2
- package/lib/model/modules/model/model.types.service.d.ts +2 -1
- package/lib/model/modules/store/index.d.ts +3 -0
- package/lib/model/modules/store/model.store.module.d.ts +3 -1
- package/lib/model/modules/store/store.collection.change.directive.d.ts +1 -1
- package/lib/model/modules/store/store.collection.change.if.directive.d.ts +1 -1
- package/lib/model/modules/store/store.document.directive.d.ts +23 -16
- package/lib/model/modules/store/store.document.router.directive.d.ts +7 -15
- package/lib/model/modules/store/store.document.router.key.directive.d.ts +8 -14
- package/lib/model/modules/store/store.document.twoway.key.directive.d.ts +15 -0
- package/lib/model/modules/store/store.document.twoway.key.source.d.ts +10 -0
- package/lib/model/modules/store/store.document.twoway.key.source.directive.d.ts +13 -0
- package/lib/model/modules/store/store.subcollection.d.ts +1 -1
- package/lib/model/modules/store/store.subcollection.directive.d.ts +1 -1
- package/lib/model/modules/store/store.subcollection.document.d.ts +1 -1
- package/lib/model/modules/store/store.subcollection.rxjs.d.ts +1 -1
- package/lib/model/service/model.context.d.ts +3 -3
- package/lib/modules/index.d.ts +1 -0
- package/lib/modules/notification/component/index.d.ts +4 -0
- package/lib/modules/notification/component/notificationitem.content.component.d.ts +9 -0
- package/lib/modules/notification/component/notificationitem.content.scss +5 -0
- package/lib/modules/notification/component/notificationitem.list.component.d.ts +24 -0
- package/lib/modules/notification/component/notificationitem.view.component.d.ts +15 -0
- package/lib/modules/notification/component/notificationitem.view.default.component.d.ts +9 -0
- package/lib/modules/notification/component/notificationitem.view.directive.d.ts +8 -0
- package/lib/modules/notification/container/index.d.ts +2 -0
- package/lib/modules/notification/container/notification.item.store.popover.button.component.d.ts +17 -0
- package/lib/modules/notification/container/notification.item.store.popover.component.d.ts +50 -0
- package/lib/modules/notification/index.d.ts +4 -0
- package/lib/modules/notification/notification.module.d.ts +30 -0
- package/lib/modules/notification/service/index.d.ts +3 -0
- package/lib/modules/notification/service/notification.template.service.d.ts +11 -0
- package/lib/modules/notification/service/notificationitem.widget.d.ts +26 -0
- package/lib/modules/notification/service/notificationitem.widget.service.d.ts +22 -0
- package/lib/modules/notification/store/index.d.ts +9 -0
- package/lib/modules/notification/store/notification.item.store.d.ts +28 -0
- package/lib/modules/notification/store/notificationbox.collection.store.d.ts +8 -0
- package/lib/modules/notification/store/notificationbox.collection.store.directive.d.ts +9 -0
- package/lib/modules/notification/store/notificationbox.document.store.d.ts +13 -0
- package/lib/modules/notification/store/notificationbox.document.store.directive.d.ts +9 -0
- package/lib/modules/notification/store/notificationsummary.collection.store.d.ts +8 -0
- package/lib/modules/notification/store/notificationsummary.collection.store.directive.d.ts +9 -0
- package/lib/modules/notification/store/notificationsummary.document.store.d.ts +21 -0
- package/lib/modules/notification/store/notificationsummary.document.store.directive.d.ts +9 -0
- package/lib/modules/notification/store/notificationuser.collection.store.d.ts +8 -0
- package/lib/modules/notification/store/notificationuser.collection.store.directive.d.ts +9 -0
- package/lib/modules/notification/store/notificationuser.document.store.d.ts +11 -0
- package/lib/modules/notification/store/notificationuser.document.store.directive.d.ts +9 -0
- package/lib/pipe/key.pipe.d.ts +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { DbxWidgetViewComponentConfig } from '@dereekb/dbx-web';
|
|
3
|
+
import { NotificationItem, NotificationItemMetadata } from '@dereekb/firebase';
|
|
4
|
+
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DbxFirebaseNotificationItemViewComponent<D extends NotificationItemMetadata = {}> implements OnDestroy {
|
|
8
|
+
private readonly _item;
|
|
9
|
+
readonly config$: Observable<DbxWidgetViewComponentConfig>;
|
|
10
|
+
ngOnDestroy(): void;
|
|
11
|
+
get item(): Maybe<NotificationItem<D>>;
|
|
12
|
+
set item(value: Maybe<NotificationItem<D>>);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationItemViewComponent<any>, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseNotificationItemViewComponent<any>, "dbx-firebase-notificationitem-view", never, { "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AbstractDbxFirebaseNotificationItemWidgetComponent } from './notificationitem.view.directive';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DbxFirebaseNotificationItemDefaultViewComponent extends AbstractDbxFirebaseNotificationItemWidgetComponent {
|
|
4
|
+
get subject(): import("dist/packages/util/src").Maybe<string>;
|
|
5
|
+
get message(): import("dist/packages/util/src").Maybe<string>;
|
|
6
|
+
get date(): Date;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationItemDefaultViewComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseNotificationItemDefaultViewComponent, "dbx-firebase-notificationitem-view-default", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractDbxWidgetComponent } from '@dereekb/dbx-web';
|
|
2
|
+
import { NotificationItem, NotificationItemMetadata } from '@dereekb/firebase';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare abstract class AbstractDbxFirebaseNotificationItemWidgetComponent<D extends NotificationItemMetadata = {}> extends AbstractDbxWidgetComponent<NotificationItem<D>> {
|
|
5
|
+
get notificationItem(): NotificationItem<D>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractDbxFirebaseNotificationItemWidgetComponent<any>, never>;
|
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractDbxFirebaseNotificationItemWidgetComponent<any>, never, never, {}, {}, never, never, false, never>;
|
|
8
|
+
}
|
package/lib/modules/notification/container/notification.item.store.popover.button.component.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { AbstractPopoverRefDirective } from '@dereekb/dbx-web';
|
|
3
|
+
import { NgPopoverRef } from 'ng-overlay-container';
|
|
4
|
+
import { DbxFirebaseNotificationItemStorePopoverParams } from './notification.item.store.popover.component';
|
|
5
|
+
import { Maybe } from '@dereekb/util';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export type DbxFirebaseNotificationItemStorePopoverButtonConfig = DbxFirebaseNotificationItemStorePopoverParams;
|
|
8
|
+
export declare class DbxFirebaseNotificationItemStorePopoverButtonComponent extends AbstractPopoverRefDirective<unknown, unknown> {
|
|
9
|
+
private readonly _dbxPopoverService;
|
|
10
|
+
private readonly _dbxFirebaseNotificationItemStore;
|
|
11
|
+
buttonElement: ElementRef;
|
|
12
|
+
config?: Maybe<Partial<DbxFirebaseNotificationItemStorePopoverButtonConfig>>;
|
|
13
|
+
protected _makePopoverRef(origin?: ElementRef): NgPopoverRef<unknown, unknown>;
|
|
14
|
+
showNotificationsPopover(): void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationItemStorePopoverButtonComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseNotificationItemStorePopoverButtonComponent, "dbx-firebase-notification-item-store-popover-button", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { NgPopoverRef } from 'ng-overlay-container';
|
|
3
|
+
import { AbstractPopoverDirective, AnchorForValueFunction, DbxPopoverKey, DbxPopoverService } from '@dereekb/dbx-web';
|
|
4
|
+
import { type Maybe } from '@dereekb/util';
|
|
5
|
+
import { NotificationItem } from '@dereekb/firebase';
|
|
6
|
+
import { Observable } from 'rxjs';
|
|
7
|
+
import { LoadingState } from '@dereekb/rxjs';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export interface DbxFirebaseNotificationItemStorePopoverParams {
|
|
10
|
+
/**
|
|
11
|
+
* Custom icon
|
|
12
|
+
*
|
|
13
|
+
* Defaults to "history"
|
|
14
|
+
*/
|
|
15
|
+
readonly icon?: string;
|
|
16
|
+
/**
|
|
17
|
+
* Custom header text
|
|
18
|
+
*
|
|
19
|
+
* Defaults to "History"
|
|
20
|
+
*/
|
|
21
|
+
readonly header?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Custom empty text when no items exist.
|
|
24
|
+
*/
|
|
25
|
+
readonly emptyText?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Origin to add the popover to.
|
|
28
|
+
*/
|
|
29
|
+
readonly origin: ElementRef;
|
|
30
|
+
/**
|
|
31
|
+
* Items loading state.
|
|
32
|
+
*/
|
|
33
|
+
readonly notificationItemsLoadingState$: Observable<LoadingState<NotificationItem[]>>;
|
|
34
|
+
/**
|
|
35
|
+
* Anchor
|
|
36
|
+
*/
|
|
37
|
+
readonly makeNotificationItemAnchor?: Maybe<AnchorForValueFunction<NotificationItem>>;
|
|
38
|
+
}
|
|
39
|
+
export declare const DEFAULT_DBX_FIREBASE_NOTIFICATION_ITEM_STORE_POPOVER_KEY = "notification-item-store-notifications";
|
|
40
|
+
export declare class DbxFirebaseNotificationItemStorePopoverComponent extends AbstractPopoverDirective<unknown, DbxFirebaseNotificationItemStorePopoverParams> {
|
|
41
|
+
static openPopover(popupService: DbxPopoverService, { origin, header, icon, emptyText, makeNotificationItemAnchor, notificationItemsLoadingState$ }: DbxFirebaseNotificationItemStorePopoverParams, popoverKey?: DbxPopoverKey): NgPopoverRef;
|
|
42
|
+
get params(): DbxFirebaseNotificationItemStorePopoverParams;
|
|
43
|
+
get icon(): string;
|
|
44
|
+
get header(): string;
|
|
45
|
+
get emptyText(): string;
|
|
46
|
+
get notificationItemsLoadingState$(): Observable<LoadingState<NotificationItem<{}>[]>>;
|
|
47
|
+
get makeNotificationItemAnchor(): Maybe<AnchorForValueFunction<NotificationItem<{}>>>;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationItemStorePopoverComponent, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseNotificationItemStorePopoverComponent, "ng-component", never, {}, {}, never, never, false, never>;
|
|
50
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
|
+
import { AppNotificationTemplateTypeInfoRecordService } from '@dereekb/firebase';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "./component/notificationitem.list.component";
|
|
5
|
+
import * as i2 from "./component/notificationitem.content.component";
|
|
6
|
+
import * as i3 from "./component/notificationitem.view.component";
|
|
7
|
+
import * as i4 from "./component/notificationitem.view.default.component";
|
|
8
|
+
import * as i5 from "./container/notification.item.store.popover.button.component";
|
|
9
|
+
import * as i6 from "./container/notification.item.store.popover.component";
|
|
10
|
+
import * as i7 from "./store/notificationbox.collection.store.directive";
|
|
11
|
+
import * as i8 from "./store/notificationbox.document.store.directive";
|
|
12
|
+
import * as i9 from "./store/notificationsummary.collection.store.directive";
|
|
13
|
+
import * as i10 from "./store/notificationsummary.document.store.directive";
|
|
14
|
+
import * as i11 from "./store/notificationuser.collection.store.directive";
|
|
15
|
+
import * as i12 from "./store/notificationuser.document.store.directive";
|
|
16
|
+
import * as i13 from "@angular/common";
|
|
17
|
+
import * as i14 from "@dereekb/dbx-web";
|
|
18
|
+
import * as i15 from "@dereekb/dbx-core";
|
|
19
|
+
export interface DbxFirebaseNotificationModuleConfig {
|
|
20
|
+
readonly appNotificationTemplateTypeInfoRecordService: AppNotificationTemplateTypeInfoRecordService;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Used to initialize the DbxFirebaseNotificationModule.
|
|
24
|
+
*/
|
|
25
|
+
export declare class DbxFirebaseNotificationModule {
|
|
26
|
+
static forRoot(config: DbxFirebaseNotificationModuleConfig): ModuleWithProviders<DbxFirebaseNotificationModule>;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationModule, never>;
|
|
28
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DbxFirebaseNotificationModule, [typeof i1.DbxFirebaseNotificationItemListComponent, typeof i1.DbxFirebaseNotificationItemListViewComponent, typeof i1.DbxFirebaseNotificationItemListViewItemComponent, typeof i2.DbxFirebaseNotificationItemContentComponent, typeof i3.DbxFirebaseNotificationItemViewComponent, typeof i4.DbxFirebaseNotificationItemDefaultViewComponent, typeof i5.DbxFirebaseNotificationItemStorePopoverButtonComponent, typeof i6.DbxFirebaseNotificationItemStorePopoverComponent, typeof i7.DbxFirebaseNotificationBoxCollectionStoreDirective, typeof i8.DbxFirebaseNotificationBoxDocumentStoreDirective, typeof i9.DbxFirebaseNotificationSummaryCollectionStoreDirective, typeof i10.DbxFirebaseNotificationSummaryDocumentStoreDirective, typeof i11.DbxFirebaseNotificationUserCollectionStoreDirective, typeof i12.DbxFirebaseNotificationUserDocumentStoreDirective], [typeof i13.CommonModule, typeof i14.DbxButtonModule, typeof i14.DbxRouterListModule, typeof i14.DbxPopoverInteractionModule, typeof i14.DbxSectionLayoutModule, typeof i14.DbxListLayoutModule, typeof i14.DbxWidgetModule, typeof i15.DbxValuePipeModule], [typeof i1.DbxFirebaseNotificationItemListComponent, typeof i1.DbxFirebaseNotificationItemListViewComponent, typeof i1.DbxFirebaseNotificationItemListViewItemComponent, typeof i2.DbxFirebaseNotificationItemContentComponent, typeof i3.DbxFirebaseNotificationItemViewComponent, typeof i4.DbxFirebaseNotificationItemDefaultViewComponent, typeof i5.DbxFirebaseNotificationItemStorePopoverButtonComponent, typeof i6.DbxFirebaseNotificationItemStorePopoverComponent, typeof i7.DbxFirebaseNotificationBoxCollectionStoreDirective, typeof i8.DbxFirebaseNotificationBoxDocumentStoreDirective, typeof i9.DbxFirebaseNotificationSummaryCollectionStoreDirective, typeof i10.DbxFirebaseNotificationSummaryDocumentStoreDirective, typeof i11.DbxFirebaseNotificationUserCollectionStoreDirective, typeof i12.DbxFirebaseNotificationUserDocumentStoreDirective]>;
|
|
29
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DbxFirebaseNotificationModule>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AppNotificationTemplateTypeInfoRecordService, NotificationItem, NotificationItemMetadata, NotificationItemSubjectMessagePair } from '@dereekb/firebase';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Client-side service used for retrieving notification templates.
|
|
5
|
+
*/
|
|
6
|
+
export declare class DbxFirebaseNotificationTemplateService {
|
|
7
|
+
readonly appNotificationTemplateTypeInfoRecordService: AppNotificationTemplateTypeInfoRecordService;
|
|
8
|
+
notificationItemSubjectMessagePairForNotificationSummaryItem<D extends NotificationItemMetadata = {}>(item: NotificationItem<D>): NotificationItemSubjectMessagePair<D>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationTemplateService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxFirebaseNotificationTemplateService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DbxWidgetEntry, DbxWidgetType } from '@dereekb/dbx-web';
|
|
2
|
+
import { NotificationTemplateType, NotificationTemplateTypeInfo } from '@dereekb/firebase';
|
|
3
|
+
/**
|
|
4
|
+
* Prefix used by all widgets.
|
|
5
|
+
*
|
|
6
|
+
* Does not include the "-" between the prefix and the template type returned by dbxWidgetTypeForNotificationTemplateType().
|
|
7
|
+
*/
|
|
8
|
+
export declare const FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE_PREFIX: string;
|
|
9
|
+
export declare const DEFAULT_FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE: DbxWidgetType;
|
|
10
|
+
export declare function dbxWidgetTypeForNotificationTemplateType(notificationTemplateType: NotificationTemplateType): DbxWidgetType;
|
|
11
|
+
/**
|
|
12
|
+
* Used for registering a DbxFirebaseNotificationItemWidgetEntry.
|
|
13
|
+
*
|
|
14
|
+
* The notificationTemplateType should be known by the app, otherwise a warning may be thrown.
|
|
15
|
+
*/
|
|
16
|
+
export interface DbxFirebaseNotificationItemWidgetEntryRegistration extends Omit<DbxWidgetEntry, 'type'> {
|
|
17
|
+
readonly notificationTemplateType: NotificationTemplateType;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A widget used for DbxFirebaseNotificationItem views.
|
|
21
|
+
*/
|
|
22
|
+
export interface DbxFirebaseNotificationItemWidgetEntry {
|
|
23
|
+
readonly notificationTemplateType: NotificationTemplateType;
|
|
24
|
+
readonly notificationTemplateTypeInfo: NotificationTemplateTypeInfo;
|
|
25
|
+
readonly widget: DbxWidgetEntry;
|
|
26
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { DbxFirebaseNotificationTemplateService } from './notification.template.service';
|
|
2
|
+
import { DbxWidgetEntry, DbxWidgetService } from '@dereekb/dbx-web';
|
|
3
|
+
import { DbxFirebaseNotificationItemWidgetEntryRegistration } from './notificationitem.widget';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/**
|
|
6
|
+
* Service used for registering widgets used for notification items.
|
|
7
|
+
*/
|
|
8
|
+
export declare class DbxFirebaseNotificationItemWidgetService {
|
|
9
|
+
readonly dbxWidgetService: DbxWidgetService;
|
|
10
|
+
readonly dbxFirebaseNotificationTemplateService: DbxFirebaseNotificationTemplateService;
|
|
11
|
+
private readonly _entries;
|
|
12
|
+
/**
|
|
13
|
+
* Used to register a item widget. If widget for the given type is already registered, this will override it by default.
|
|
14
|
+
*
|
|
15
|
+
* @param provider
|
|
16
|
+
* @param override
|
|
17
|
+
*/
|
|
18
|
+
register(provider: DbxFirebaseNotificationItemWidgetEntryRegistration, override?: boolean): boolean;
|
|
19
|
+
registerDefaultWidget(entry: Omit<DbxWidgetEntry, 'type'>, override?: boolean): boolean;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationItemWidgetService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxFirebaseNotificationItemWidgetService>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './notificationsummary.collection.store.directive';
|
|
2
|
+
export * from './notificationsummary.collection.store';
|
|
3
|
+
export * from './notificationsummary.document.store.directive';
|
|
4
|
+
export * from './notificationsummary.document.store';
|
|
5
|
+
export * from './notification.item.store';
|
|
6
|
+
export * from './notificationuser.collection.store.directive';
|
|
7
|
+
export * from './notificationuser.collection.store';
|
|
8
|
+
export * from './notificationuser.document.store.directive';
|
|
9
|
+
export * from './notificationuser.document.store';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { OnDestroy } from '@angular/core';
|
|
2
|
+
import { NotificationId, NotificationItem } from '@dereekb/firebase';
|
|
3
|
+
import { Maybe } from '@dereekb/util';
|
|
4
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface DbxFirebaseNotificationItemStoreState {
|
|
7
|
+
/**
|
|
8
|
+
* The NotificationSummary to pull items from
|
|
9
|
+
*/
|
|
10
|
+
readonly items: NotificationItem[];
|
|
11
|
+
/**
|
|
12
|
+
* The currently selected id
|
|
13
|
+
*/
|
|
14
|
+
readonly selectedId: Maybe<NotificationId>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Store used for selecting a specific NotificationItem from a list of notification items.
|
|
18
|
+
*/
|
|
19
|
+
export declare class DbxFirebaseNotificationItemStore extends ComponentStore<DbxFirebaseNotificationItemStoreState> implements OnDestroy {
|
|
20
|
+
constructor();
|
|
21
|
+
readonly items$: import("rxjs").Observable<NotificationItem<{}>[]>;
|
|
22
|
+
readonly selectedId$: import("rxjs").Observable<Maybe<string>>;
|
|
23
|
+
readonly selectedItem$: import("rxjs").Observable<NotificationItem<{}> | undefined>;
|
|
24
|
+
readonly setItems: (observableOrValue: NotificationItem<{}>[] | import("rxjs").Observable<NotificationItem<{}>[]>) => import("rxjs").Subscription;
|
|
25
|
+
readonly setSelectedId: (() => void) | ((observableOrValue: Maybe<string> | import("rxjs").Observable<Maybe<string>>) => import("rxjs").Subscription);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationItemStore, never>;
|
|
27
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbxFirebaseNotificationItemStore>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractDbxFirebaseCollectionStore } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationFirestoreCollections, NotificationBox, NotificationBoxDocument } from '@dereekb/firebase';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NotificationBoxCollectionStore extends AbstractDbxFirebaseCollectionStore<NotificationBox, NotificationBoxDocument> {
|
|
5
|
+
constructor(collections: NotificationFirestoreCollections);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationBoxCollectionStore, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationBoxCollectionStore>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { NotificationBoxCollectionStore } from './notificationbox.collection.store';
|
|
2
|
+
import { NotificationBox, NotificationBoxDocument } from '@dereekb/firebase';
|
|
3
|
+
import { DbxFirebaseCollectionStoreDirective } from '../../../model/modules/store';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DbxFirebaseNotificationBoxCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective<NotificationBox, NotificationBoxDocument, NotificationBoxCollectionStore> {
|
|
6
|
+
constructor(store: NotificationBoxCollectionStore);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationBoxCollectionStoreDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseNotificationBoxCollectionStoreDirective, "[dbxFirebaseNotificationBoxCollection]", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AbstractDbxFirebaseDocumentStore } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationFunctions, NotificationBox, NotificationBoxDocument } from '@dereekb/firebase';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NotificationBoxDocumentStore extends AbstractDbxFirebaseDocumentStore<NotificationBox, NotificationBoxDocument> {
|
|
5
|
+
readonly notificationFunctions: NotificationFunctions;
|
|
6
|
+
constructor();
|
|
7
|
+
readonly createdAt$: import("rxjs").Observable<import("dist/packages/util/src").Maybe<Date>>;
|
|
8
|
+
readonly recipients$: import("rxjs").Observable<import("@dereekb/firebase").NotificationBoxRecipient[]>;
|
|
9
|
+
readonly updateNotificationBox: import("../../../model/modules/store").DbxFirebaseDocumentStoreFunction<import("@dereekb/firebase").UpdateNotificationBoxParams, void>;
|
|
10
|
+
readonly updateNotificationBoxRecipient: import("../../../model/modules/store").DbxFirebaseDocumentStoreFunction<import("@dereekb/firebase").UpdateNotificationBoxRecipientParams, void>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationBoxDocumentStore, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationBoxDocumentStore>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbxFirebaseDocumentStoreDirective } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationBoxDocumentStore } from './notificationbox.document.store';
|
|
3
|
+
import { NotificationBox, NotificationBoxDocument } from '@dereekb/firebase';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DbxFirebaseNotificationBoxDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective<NotificationBox, NotificationBoxDocument, NotificationBoxDocumentStore> {
|
|
6
|
+
constructor(store: NotificationBoxDocumentStore);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationBoxDocumentStoreDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseNotificationBoxDocumentStoreDirective, "[dbxFirebaseNotificationBoxDocument]", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractDbxFirebaseCollectionStore } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationFirestoreCollections, NotificationSummary, NotificationSummaryDocument } from '@dereekb/firebase';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NotificationSummaryCollectionStore extends AbstractDbxFirebaseCollectionStore<NotificationSummary, NotificationSummaryDocument> {
|
|
5
|
+
constructor(collections: NotificationFirestoreCollections);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationSummaryCollectionStore, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationSummaryCollectionStore>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbxFirebaseCollectionStoreDirective } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationSummaryCollectionStore } from './notificationsummary.collection.store';
|
|
3
|
+
import { NotificationSummary, NotificationSummaryDocument } from '@dereekb/firebase';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DbxFirebaseNotificationSummaryCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective<NotificationSummary, NotificationSummaryDocument, NotificationSummaryCollectionStore> {
|
|
6
|
+
constructor(store: NotificationSummaryCollectionStore);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationSummaryCollectionStoreDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseNotificationSummaryCollectionStoreDirective, "[dbxFirebaseNotificationSummaryCollection]", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AbstractDbxFirebaseDocumentStore } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationFunctions, NotificationItem, NotificationItemMetadata, NotificationSummary, NotificationSummaryDocument, UnreadNotificationItemsResult } from '@dereekb/firebase';
|
|
3
|
+
import { LoadingState, ObservableOrValue } from '@dereekb/rxjs';
|
|
4
|
+
import { Maybe } from '@dereekb/util';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class NotificationSummaryDocumentStore extends AbstractDbxFirebaseDocumentStore<NotificationSummary, NotificationSummaryDocument> {
|
|
8
|
+
readonly notificationFunctions: NotificationFunctions;
|
|
9
|
+
constructor();
|
|
10
|
+
readonly notificationItemsLoadingState$: Observable<LoadingState<NotificationItem<any>[]>>;
|
|
11
|
+
readonly createdAt$: Observable<Maybe<Date>>;
|
|
12
|
+
readonly lastReadAt$: Observable<Maybe<Date>>;
|
|
13
|
+
readonly lastUpdateAt$: Observable<Maybe<Date>>;
|
|
14
|
+
readonly notificationItems$: Observable<NotificationItem<{}>[]>;
|
|
15
|
+
readonly needsSync$: Observable<Maybe<boolean>>;
|
|
16
|
+
notificationItemsLoadingState<D extends NotificationItemMetadata = {}>(): Observable<LoadingState<NotificationItem<D>[]>>;
|
|
17
|
+
unreadNotificationItems<D extends NotificationItemMetadata = {}>(checkLastReadIfCreatedBeforeObs?: ObservableOrValue<Maybe<Date>>): Observable<UnreadNotificationItemsResult<D>>;
|
|
18
|
+
readonly updateNotificationSummary: import("../../../model/modules/store").DbxFirebaseDocumentStoreFunction<import("@dereekb/firebase").UpdateNotificationSummaryParams, void>;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationSummaryDocumentStore, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationSummaryDocumentStore>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbxFirebaseDocumentStoreDirective } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationSummaryDocumentStore } from './notificationsummary.document.store';
|
|
3
|
+
import { NotificationSummary, NotificationSummaryDocument } from '@dereekb/firebase';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DbxFirebaseNotificationSummaryDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective<NotificationSummary, NotificationSummaryDocument, NotificationSummaryDocumentStore> {
|
|
6
|
+
constructor(store: NotificationSummaryDocumentStore);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationSummaryDocumentStoreDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseNotificationSummaryDocumentStoreDirective, "[dbxFirebaseNotificationSummaryDocument]", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AbstractDbxFirebaseCollectionStore } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationFirestoreCollections, NotificationUser, NotificationUserDocument } from '@dereekb/firebase';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NotificationUserCollectionStore extends AbstractDbxFirebaseCollectionStore<NotificationUser, NotificationUserDocument> {
|
|
5
|
+
constructor(collections: NotificationFirestoreCollections);
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationUserCollectionStore, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationUserCollectionStore>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbxFirebaseCollectionStoreDirective } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationUserCollectionStore } from './notificationuser.collection.store';
|
|
3
|
+
import { NotificationUser, NotificationUserDocument } from '@dereekb/firebase';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DbxFirebaseNotificationUserCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective<NotificationUser, NotificationUserDocument, NotificationUserCollectionStore> {
|
|
6
|
+
constructor(store: NotificationUserCollectionStore);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationUserCollectionStoreDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseNotificationUserCollectionStoreDirective, "[dbxFirebaseNotificationUserCollection]", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AbstractDbxFirebaseDocumentStore } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationFunctions, NotificationUser, NotificationUserDocument } from '@dereekb/firebase';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NotificationUserDocumentStore extends AbstractDbxFirebaseDocumentStore<NotificationUser, NotificationUserDocument> {
|
|
5
|
+
readonly notificationFunctions: NotificationFunctions;
|
|
6
|
+
constructor();
|
|
7
|
+
readonly updateNotificationUser: import("../../../model/modules/store").DbxFirebaseDocumentStoreFunction<import("@dereekb/firebase").UpdateNotificationUserParams, void>;
|
|
8
|
+
readonly resyncNotificationUser: import("../../../model/modules/store").DbxFirebaseDocumentStoreFunction<import("@dereekb/firebase").ResyncNotificationUserParams, import("@dereekb/firebase").ResyncNotificationUserResult>;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationUserDocumentStore, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationUserDocumentStore>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DbxFirebaseDocumentStoreDirective } from '../../../model/modules/store';
|
|
2
|
+
import { NotificationUserDocumentStore } from './notificationuser.document.store';
|
|
3
|
+
import { NotificationUser, NotificationUserDocument } from '@dereekb/firebase';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class DbxFirebaseNotificationUserDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective<NotificationUser, NotificationUserDocument, NotificationUserDocumentStore> {
|
|
6
|
+
constructor(store: NotificationUserDocumentStore);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationUserDocumentStoreDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseNotificationUserDocumentStoreDirective, "[dbxFirebaseNotificationUserDocument]", never, {}, {}, never, never, false, never>;
|
|
9
|
+
}
|
package/lib/pipe/key.pipe.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import { FirestoreModelKey } from '@dereekb/firebase';
|
|
3
|
-
import { Maybe } from '@dereekb/util';
|
|
3
|
+
import { type Maybe } from '@dereekb/util';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class FlatFirestoreModelKeyPipe implements PipeTransform {
|
|
6
6
|
transform(input: Maybe<FirestoreModelKey>): string;
|