@dereekb/dbx-firebase 12.1.5 → 12.1.7
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/development/development.scheduler.list.component.mjs +2 -2
- package/esm2022/lib/model/loader/collection.loader.instance.mjs +14 -2
- package/esm2022/lib/model/modules/model/model.types.list.component.mjs +2 -2
- package/esm2022/lib/model/modules/store/store.collection.mjs +9 -4
- package/esm2022/lib/modules/notification/component/notificationitem.list.component.mjs +2 -2
- package/fesm2022/dereekb-dbx-firebase.mjs +23 -6
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/development/development.scheduler.list.component.d.ts +1 -1
- package/lib/model/loader/collection.loader.instance.d.ts +8 -0
- package/lib/model/modules/model/model.types.list.component.d.ts +1 -1
- package/lib/model/modules/store/store.collection.d.ts +20 -0
- package/lib/modules/notification/component/notificationitem.list.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@ 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]"], true, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseDevelopmentSchedulerListComponent, "dbx-firebase-development-scheduler-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]", "[end]"], true, never>;
|
|
11
11
|
}
|
|
12
12
|
export declare class DbxFirebaseDevelopmentSchedulerListViewComponent extends AbstractDbxSelectionListViewDirective<ScheduledFunctionDevelopmentFirebaseFunctionListEntry> {
|
|
13
13
|
readonly config: DbxSelectionValueListViewConfig<ScheduledFunctionDevelopmentFirebaseFunctionListEntryWithSelection>;
|
|
@@ -26,6 +26,9 @@ export declare class DbxFirebaseCollectionLoaderInstance<T = unknown, D extends
|
|
|
26
26
|
readonly firestoreIteration$: Observable<FirestoreItemPageIterationInstance<T>>;
|
|
27
27
|
readonly queryChangeWatcher$: Observable<IterationQueryDocChangeWatcher<T>>;
|
|
28
28
|
readonly snapshotAccumulator$: Observable<FirebaseQuerySnapshotAccumulator<T>>;
|
|
29
|
+
readonly hasNext$: Observable<boolean>;
|
|
30
|
+
readonly canLoadMore$: Observable<boolean>;
|
|
31
|
+
readonly hasNextAndCanLoadMore$: Observable<boolean>;
|
|
29
32
|
readonly snapshotAccumulatorDocumentRefs$: Observable<DocumentReference<T>[][]>;
|
|
30
33
|
readonly snapshotAccumulatorDocuments$: Observable<D[][]>;
|
|
31
34
|
readonly accumulator$: Observable<FirebaseQueryItemAccumulator<T>>;
|
|
@@ -38,6 +41,9 @@ export declare class DbxFirebaseCollectionLoaderInstance<T = unknown, D extends
|
|
|
38
41
|
* Passthrough for allItems$ from the accumulator.
|
|
39
42
|
*/
|
|
40
43
|
readonly accumulatorItems$: Observable<DocumentDataWithIdAndKey<T>[][]>;
|
|
44
|
+
/**
|
|
45
|
+
* Returns true if the first page result has one or more documents.
|
|
46
|
+
*/
|
|
41
47
|
readonly hasDocuments$: Observable<boolean>;
|
|
42
48
|
readonly allDocumentRefs$: Observable<DocumentReference<T>[]>;
|
|
43
49
|
readonly allDocuments$: Observable<D[]>;
|
|
@@ -56,6 +62,8 @@ export declare class DbxFirebaseCollectionLoaderInstance<T = unknown, D extends
|
|
|
56
62
|
set collection(collection: Maybe<FirestoreCollectionLike<T, D>>);
|
|
57
63
|
next(): void;
|
|
58
64
|
restart(): void;
|
|
65
|
+
setMaxPages(maxPages: Maybe<number>): void;
|
|
66
|
+
setItemsPerPage(itemsPerPage: Maybe<number>): void;
|
|
59
67
|
setConstraints(constraints: Maybe<ArrayOrValue<FirestoreQueryConstraint>>): void;
|
|
60
68
|
setCollection(firestoreCollection: Maybe<FirestoreCollectionLike<T, D>>): void;
|
|
61
69
|
loadPagesUntilResultsCount(maxResultsLimit: GetterOrValue<number>, countResultsFunction?: FirebaseQueryItemAccumulatorNextPageUntilResultsCountFunction<T> | undefined): Observable<ItemAccumulatorNextPageUntilResultsCountResult>;
|
|
@@ -8,7 +8,7 @@ export type DbxFirebaseModelTypeInstanceListItem = DbxValueAsListItem<DbxFirebas
|
|
|
8
8
|
export declare class DbxFirebaseModelTypeInstanceListComponent extends AbstractDbxSelectionListWrapperDirective<DbxFirebaseModelTypesServiceInstancePair> {
|
|
9
9
|
constructor();
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseModelTypeInstanceListComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseModelTypeInstanceListComponent, "dbx-firebase-model-type-instance-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]"], true, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseModelTypeInstanceListComponent, "dbx-firebase-model-type-instance-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]", "[end]"], true, never>;
|
|
12
12
|
}
|
|
13
13
|
export declare class DbxFirebaseModelTypeInstanceListViewComponent extends AbstractDbxSelectionListViewDirective<DbxFirebaseModelTypesServiceInstancePair> {
|
|
14
14
|
readonly config: DbxSelectionValueListViewConfig<DbxFirebaseModelTypeInstanceListItem>;
|
|
@@ -9,6 +9,21 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
export interface DbxFirebaseCollectionStore<T, D extends FirestoreDocument<T> = FirestoreDocument<T>> extends DbxFirebaseCollectionLoaderAccessorWithAccumulator<T>, DbxFirebaseCollectionLoaderInstanceData<T, D> {
|
|
10
10
|
readonly firestoreCollection$: Observable<Maybe<FirestoreCollectionLike<T, D>>>;
|
|
11
11
|
readonly loader$: Observable<DbxFirebaseCollectionLoaderInstance<T, D>>;
|
|
12
|
+
/**
|
|
13
|
+
* Whether or not the iterator has more pages to load.
|
|
14
|
+
*/
|
|
15
|
+
readonly hasNext$: Observable<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* Whether or not the iterator can load more pages.
|
|
18
|
+
*/
|
|
19
|
+
readonly canLoadMore$: Observable<boolean>;
|
|
20
|
+
/**
|
|
21
|
+
* Whether or not the iterator has more pages to load and can load more pages.
|
|
22
|
+
*/
|
|
23
|
+
readonly hasNextAndCanLoadMore$: Observable<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the collection has documents.
|
|
26
|
+
*/
|
|
12
27
|
readonly hasDocuments$: Observable<boolean>;
|
|
13
28
|
/**
|
|
14
29
|
* Returns all document references loaded by the accumulator.
|
|
@@ -50,11 +65,16 @@ export declare class AbstractDbxFirebaseCollectionStore<T, D extends FirestoreDo
|
|
|
50
65
|
readonly pageLoadingState$: Observable<PageListLoadingState<DocumentDataWithIdAndKey<T>>>;
|
|
51
66
|
readonly snapshotAccumulator$: Observable<FirebaseQuerySnapshotAccumulator<T>>;
|
|
52
67
|
readonly accumulator$: Observable<FirebaseQueryItemAccumulator<T>>;
|
|
68
|
+
readonly hasNext$: Observable<boolean>;
|
|
69
|
+
readonly canLoadMore$: Observable<boolean>;
|
|
70
|
+
readonly hasNextAndCanLoadMore$: Observable<boolean>;
|
|
53
71
|
readonly hasDocuments$: Observable<boolean>;
|
|
54
72
|
readonly allDocumentRefs$: Observable<DocumentReference<T>[]>;
|
|
55
73
|
readonly allDocuments$: Observable<D[]>;
|
|
56
74
|
readonly allDocumentData$: Observable<DocumentDataWithIdAndKey<T>[]>;
|
|
57
75
|
readonly setFirestoreCollection: (() => void) | ((observableOrValue: FirestoreCollectionLike<T, D, import("@dereekb/firebase").LimitedFirestoreDocumentAccessor<T, D>> | Observable<FirestoreCollectionLike<T, D, import("@dereekb/firebase").LimitedFirestoreDocumentAccessor<T, D>> | null | undefined> | null | undefined) => Subscription);
|
|
76
|
+
readonly setWaitForConstraints: (observableOrValue: boolean | Observable<boolean>) => Subscription;
|
|
77
|
+
readonly setPauseInitialLoader: (observableOrValue: boolean | Observable<boolean>) => Subscription;
|
|
58
78
|
loadToPage(page: PageNumber): Observable<PageNumber>;
|
|
59
79
|
loadPagesUntilResultsCount(maxResultsCount: number, countFunction?: FirebaseQueryItemAccumulatorNextPageUntilResultsCountFunction<T> | undefined): Observable<ItemAccumulatorNextPageUntilResultsCountResult>;
|
|
60
80
|
loadAllResults(): Observable<PageNumber>;
|
|
@@ -6,7 +6,7 @@ export type NotificationItemWithSelection = DbxValueAsListItem<NotificationItem>
|
|
|
6
6
|
export declare class DbxFirebaseNotificationItemListComponent extends AbstractDbxSelectionListWrapperDirective<NotificationItem> {
|
|
7
7
|
constructor();
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseNotificationItemListComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseNotificationItemListComponent, "dbx-firebase-notificationitem-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]"], true, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseNotificationItemListComponent, "dbx-firebase-notificationitem-list", never, {}, {}, never, ["[top]", "[bottom]", "[empty]", "[emptyLoading]", "[end]"], true, never>;
|
|
10
10
|
}
|
|
11
11
|
export declare class DbxFirebaseNotificationItemListViewComponent extends AbstractDbxSelectionListViewDirective<NotificationItem> {
|
|
12
12
|
readonly config: DbxSelectionValueListViewConfig<NotificationItemWithSelection>;
|