@dereekb/dbx-firebase 12.6.21 → 12.7.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/auth/login/login.email.form.component.mjs +1 -1
- package/esm2022/lib/development/development.directive.mjs +6 -5
- package/esm2022/lib/development/development.popup.content.component.mjs +7 -13
- package/esm2022/lib/model/modules/model/entities/model.entities.component.mjs +4 -6
- package/esm2022/lib/model/modules/model/entities/model.entities.entity.component.mjs +4 -7
- package/esm2022/lib/model/modules/model/entities/model.entities.widget.entity.debug.component.mjs +3 -6
- package/esm2022/lib/model/modules/model/model.types.view.directive.mjs +9 -9
- package/esm2022/lib/model/modules/store/store.collection.change.directive.mjs +6 -9
- package/esm2022/lib/model/modules/store/store.collection.directive.mjs +6 -10
- package/esm2022/lib/model/modules/store/store.collection.list.directive.mjs +9 -10
- package/esm2022/lib/model/modules/store/store.document.directive.mjs +6 -11
- package/esm2022/lib/model/modules/store/store.document.twoway.key.directive.mjs +5 -6
- package/esm2022/lib/model/modules/store/store.subcollection.directive.mjs +5 -9
- package/esm2022/lib/model/system/systemstate.document.store.accessor.mjs +1 -4
- package/esm2022/lib/modules/notification/store/notification.item.store.mjs +1 -1
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.action.handler.directive.mjs +12 -19
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.initialize.document.directive.mjs +7 -12
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.store.directive.mjs +5 -10
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.sync.directive.mjs +5 -13
- package/esm2022/lib/modules/storagefile/store/storagefile.upload.store.mjs +1 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +62 -126
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/auth/login/login.email.form.component.d.ts +1 -2
- package/lib/development/development.directive.d.ts +3 -3
- package/lib/development/development.popup.content.component.d.ts +2 -5
- package/lib/model/modules/model/entities/model.entities.component.d.ts +1 -3
- package/lib/model/modules/model/entities/model.entities.entity.component.d.ts +1 -3
- package/lib/model/modules/model/entities/model.entities.widget.entity.debug.component.d.ts +3 -4
- package/lib/model/modules/model/model.types.view.directive.d.ts +2 -4
- package/lib/model/modules/store/store.collection.change.directive.d.ts +2 -4
- package/lib/model/modules/store/store.collection.directive.d.ts +2 -4
- package/lib/model/modules/store/store.collection.list.directive.d.ts +1 -4
- package/lib/model/modules/store/store.document.directive.d.ts +2 -4
- package/lib/model/modules/store/store.document.twoway.key.directive.d.ts +1 -2
- package/lib/model/modules/store/store.subcollection.directive.d.ts +2 -4
- package/lib/model/system/systemstate.document.store.accessor.d.ts +1 -3
- package/lib/modules/notification/store/notification.item.store.d.ts +1 -2
- package/lib/modules/storagefile/container/storagefile.upload.action.handler.directive.d.ts +2 -8
- package/lib/modules/storagefile/container/storagefile.upload.initialize.document.directive.d.ts +1 -4
- package/lib/modules/storagefile/container/storagefile.upload.store.directive.d.ts +1 -5
- package/lib/modules/storagefile/container/storagefile.upload.sync.directive.d.ts +1 -6
- package/lib/modules/storagefile/store/storagefile.upload.store.d.ts +1 -2
- package/package.json +1 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { TextPasswordFieldConfig, DefaultUsernameLoginFieldsValue, AbstractConfigAsyncFormlyFormDirective } from '@dereekb/dbx-form';
|
|
3
2
|
import { type Maybe } from '@dereekb/util';
|
|
4
3
|
import { FormlyFieldConfig } from '@ngx-formly/core';
|
|
@@ -10,7 +9,7 @@ export interface DbxFirebaseEmailFormConfig {
|
|
|
10
9
|
readonly loginMode: DbxFirebaseLoginMode;
|
|
11
10
|
readonly passwordConfig?: TextPasswordFieldConfig;
|
|
12
11
|
}
|
|
13
|
-
export declare class DbxFirebaseEmailFormComponent extends AbstractConfigAsyncFormlyFormDirective<DbxFirebaseEmailFormValue, DbxFirebaseEmailFormConfig>
|
|
12
|
+
export declare class DbxFirebaseEmailFormComponent extends AbstractConfigAsyncFormlyFormDirective<DbxFirebaseEmailFormValue, DbxFirebaseEmailFormConfig> {
|
|
14
13
|
readonly fields$: Observable<Maybe<FormlyFieldConfig[]>>;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseEmailFormComponent, never>;
|
|
16
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseEmailFormComponent, "dbx-firebase-email-form", never, {}, {}, never, never, true, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
2
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
3
|
import { DbxPopupService } from '@dereekb/dbx-web';
|
|
4
4
|
import { NgPopoverRef } from 'ng-overlay-container';
|
|
@@ -7,18 +7,18 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Directive for showing the development tools snackbar when the app opens up and listening for keybindings for opening the popup.
|
|
9
9
|
*/
|
|
10
|
-
export declare class DbxFirebaseDevelopmentDirective implements
|
|
10
|
+
export declare class DbxFirebaseDevelopmentDirective implements AfterViewInit {
|
|
11
11
|
readonly popupService: DbxPopupService;
|
|
12
12
|
readonly matSnackBar: MatSnackBar;
|
|
13
13
|
readonly dbxFirebaseDevelopmentService: DbxFirebaseDevelopmentService;
|
|
14
14
|
ref?: NgPopoverRef<any, any>;
|
|
15
15
|
get enabled(): boolean;
|
|
16
|
+
constructor();
|
|
16
17
|
handleKeyboardEvent(event: KeyboardEvent): void;
|
|
17
18
|
togglePopup(): void;
|
|
18
19
|
openPopup(): void;
|
|
19
20
|
closePopup(): void;
|
|
20
21
|
ngAfterViewInit(): void;
|
|
21
|
-
ngOnDestroy(): void;
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseDevelopmentDirective, never>;
|
|
23
23
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseDevelopmentDirective, "[dbxFirebaseDevelopment]", never, {}, {}, never, never, true, never>;
|
|
24
24
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ClickableAnchor, DbxAuthService } from '@dereekb/dbx-core';
|
|
2
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
3
2
|
import { TwoColumnsContextStore } from '@dereekb/dbx-web';
|
|
4
3
|
import { WorkUsingContext, IsModifiedFunction } from '@dereekb/rxjs';
|
|
5
4
|
import { type Maybe } from '@dereekb/util';
|
|
@@ -9,13 +8,12 @@ import { DbxFirebaseDevelopmentSchedulerService } from './development.scheduler.
|
|
|
9
8
|
import { DbxFirebaseDevelopmentPopupContentFormValue } from './development.popup.content.form.component';
|
|
10
9
|
import { DbxFirebaseEmulatorService } from '../firebase/firebase.emulator.service';
|
|
11
10
|
import * as i0 from "@angular/core";
|
|
12
|
-
export declare class DbxFirebaseDevelopmentPopupContentComponent
|
|
11
|
+
export declare class DbxFirebaseDevelopmentPopupContentComponent {
|
|
13
12
|
readonly twoColumnsContextStore: TwoColumnsContextStore;
|
|
14
13
|
readonly dbxAuthService: DbxAuthService;
|
|
15
14
|
readonly dbxFirebaseDevelopmentWidgetService: DbxFirebaseDevelopmentWidgetService;
|
|
16
15
|
readonly dbxFirebaseDevelopmentSchedulerService: DbxFirebaseDevelopmentSchedulerService;
|
|
17
16
|
readonly dbxFirebaseEmulatorService: DbxFirebaseEmulatorService;
|
|
18
|
-
private readonly _backSub;
|
|
19
17
|
readonly showEmulatorButton: boolean;
|
|
20
18
|
readonly emulatorUIAnchor: ClickableAnchor;
|
|
21
19
|
readonly entries: import("@dereekb/dbx-firebase").DbxFirebaseDevelopmentWidgetEntry[];
|
|
@@ -39,8 +37,7 @@ export declare class DbxFirebaseDevelopmentPopupContentComponent implements OnIn
|
|
|
39
37
|
readonly activeEntrySignal: import("@angular/core").Signal<import("@dereekb/dbx-firebase").DbxFirebaseDevelopmentWidgetEntry | undefined>;
|
|
40
38
|
readonly rightTitleSignal: import("@angular/core").Signal<string | undefined>;
|
|
41
39
|
readonly widgetConfigSignal: import("@angular/core").Signal<Maybe<Readonly<import("@dereekb/util").ModelTypeDataPair<unknown, string>>>>;
|
|
42
|
-
|
|
43
|
-
ngOnDestroy(): void;
|
|
40
|
+
constructor();
|
|
44
41
|
readonly handleFormUpdate: WorkUsingContext<DbxFirebaseDevelopmentPopupContentFormValue, void>;
|
|
45
42
|
readonly isFormModified: IsModifiedFunction<DbxFirebaseDevelopmentPopupContentFormValue>;
|
|
46
43
|
clearSelection(): void;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { DbxFirebaseModelEntity, DbxFirebaseModelEntityWithKeyAndStore } from './model.entities';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { Maybe } from '@dereekb/util';
|
|
@@ -11,7 +10,7 @@ interface DbxFirebaseModelEntitiesComponentAllEntities {
|
|
|
11
10
|
readonly unregisteredEntities: DbxFirebaseModelEntityWithKeyAndStore[];
|
|
12
11
|
readonly onlyShowRegisteredTypes?: Maybe<boolean>;
|
|
13
12
|
}
|
|
14
|
-
export declare class DbxFirebaseModelEntitiesComponent
|
|
13
|
+
export declare class DbxFirebaseModelEntitiesComponent {
|
|
15
14
|
readonly entitiesWidgetService: DbxFirebaseModelEntitiesWidgetService;
|
|
16
15
|
/**
|
|
17
16
|
* Whether the accordion should allow multiple expanded panels.
|
|
@@ -39,7 +38,6 @@ export declare class DbxFirebaseModelEntitiesComponent implements OnDestroy {
|
|
|
39
38
|
readonly showViewUnregisteredEntitiesButtonSignal: import("@angular/core").Signal<boolean | import("@dereekb/util").MaybeNot>;
|
|
40
39
|
readonly hasNoEntitiesSignal: import("@angular/core").Signal<boolean>;
|
|
41
40
|
readonly context: import("@dereekb/rxjs").MutableLoadingStateContext<unknown, LoadingState<DbxFirebaseModelEntitiesComponentAllEntities>, import("@dereekb/rxjs").LoadingContextEvent & LoadingState<DbxFirebaseModelEntitiesComponentAllEntities>>;
|
|
42
|
-
ngOnDestroy(): void;
|
|
43
41
|
clickShowUnregisteredEntities(): void;
|
|
44
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseModelEntitiesComponent, never>;
|
|
45
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseModelEntitiesComponent, "dbx-firebase-model-entities", never, { "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "onlyShowRegisteredTypes": { "alias": "onlyShowRegisteredTypes"; "required": false; "isSignal": true; }; "entities": { "alias": "entities"; "required": false; "isSignal": true; }; }, {}, never, ["[empty]"], true, never>;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { DbxFirebaseModelEntity, DbxFirebaseModelEntityWithStore } from './model.entities';
|
|
3
2
|
import { Observable } from 'rxjs';
|
|
4
3
|
import { DbxFirebaseModelEntitiesWidgetService } from './model.entities.widget.service';
|
|
5
4
|
import { DbxFirebaseModelTypesService, type DbxFirebaseModelDisplayInfo, type DbxFirebaseModelTypeInfo } from '../model.types.service';
|
|
6
5
|
import { type Maybe } from '@dereekb/util';
|
|
7
6
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class DbxFirebaseModelEntitiesEntityComponent
|
|
7
|
+
export declare class DbxFirebaseModelEntitiesEntityComponent {
|
|
9
8
|
readonly widgetInjectionConfigFactory: import("./model.entities.widget").DbxFirebaseModelEntitiesWidgetInjectionConfigFactory;
|
|
10
9
|
readonly entitiesWidgetService: DbxFirebaseModelEntitiesWidgetService;
|
|
11
10
|
readonly dbxFirebaseModelTypesService: DbxFirebaseModelTypesService;
|
|
@@ -37,7 +36,6 @@ export declare class DbxFirebaseModelEntitiesEntityComponent implements OnDestro
|
|
|
37
36
|
readonly commonWidgetConfigSignal: import("@angular/core").Signal<Maybe<import("@dereekb/dbx-core").DbxInjectionComponentConfig<unknown>>>;
|
|
38
37
|
readonly debugWidgetConfigSignal: import("@angular/core").Signal<Maybe<import("@dereekb/dbx-core").DbxInjectionComponentConfig<unknown>>>;
|
|
39
38
|
readonly loadingContext: import("@dereekb/rxjs").MutableLoadingStateContext<unknown, import("@dereekb/rxjs").LoadingState<any>, import("@dereekb/rxjs").LoadingContextEvent & import("@dereekb/rxjs").LoadingState<any>>;
|
|
40
|
-
ngOnDestroy(): void;
|
|
41
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseModelEntitiesEntityComponent, never>;
|
|
42
40
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseModelEntitiesEntityComponent, "dbx-firebase-model-entities-entity", never, { "entity": { "alias": "entity"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
43
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Signal } from '@angular/core';
|
|
2
2
|
import { AbstractDbxFirebaseModelEntityWidgetDirective } from './model.entities.widget.entity.abstract.directive';
|
|
3
3
|
import { DownloadTextContent } from '@dereekb/dbx-web';
|
|
4
4
|
import { Maybe } from '@dereekb/util';
|
|
@@ -6,12 +6,11 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
/**
|
|
7
7
|
* A debug widget component that displays entity data and metadata.
|
|
8
8
|
*/
|
|
9
|
-
export declare class DbxFirebaseModelEntitiesDebugWidgetComponent extends AbstractDbxFirebaseModelEntityWidgetDirective
|
|
9
|
+
export declare class DbxFirebaseModelEntitiesDebugWidgetComponent extends AbstractDbxFirebaseModelEntityWidgetDirective {
|
|
10
10
|
readonly currentKey: Signal<Maybe<string>>;
|
|
11
11
|
readonly currentData: Signal<any>;
|
|
12
12
|
readonly contentSignal: Signal<Maybe<DownloadTextContent>>;
|
|
13
|
-
readonly context: import("
|
|
14
|
-
ngOnDestroy(): void;
|
|
13
|
+
readonly context: import("dist/packages/rxjs/src").MutableLoadingStateContext<unknown, import("dist/packages/rxjs/src").LoadingState<any>, import("dist/packages/rxjs/src").LoadingContextEvent & import("dist/packages/rxjs/src").LoadingState<any>>;
|
|
15
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseModelEntitiesDebugWidgetComponent, never>;
|
|
16
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseModelEntitiesDebugWidgetComponent, "dbx-firebase-model-entities-debug-widget", never, {}, {}, never, never, true, never>;
|
|
17
16
|
}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { DbxModelObjectStateService } from '@dereekb/dbx-web';
|
|
2
|
-
import { OnInit } from '@angular/core';
|
|
3
|
-
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
4
2
|
import { DbxFirebaseDocumentStoreDirective } from '../store/store.document.directive';
|
|
5
3
|
import { DbxFirebaseModelTypesService } from './model.types.service';
|
|
6
4
|
import { Maybe } from '@dereekb/util';
|
|
@@ -8,12 +6,12 @@ import * as i0 from "@angular/core";
|
|
|
8
6
|
/**
|
|
9
7
|
* Used with a DbxFirebaseDocumentStoreDirective to emit model viewed events.
|
|
10
8
|
*/
|
|
11
|
-
export declare class DbxFirebaseModelViewedEventDirective
|
|
9
|
+
export declare class DbxFirebaseModelViewedEventDirective {
|
|
12
10
|
readonly dbxFirebaseDocumentStoreDirective: DbxFirebaseDocumentStoreDirective<unknown, import("dist/packages/firebase/src").FirestoreDocument<unknown, import("dist/packages/firebase/src").FirestoreModelIdentity>, import("@dereekb/dbx-firebase").DbxFirebaseDocumentStore<unknown, import("dist/packages/firebase/src").FirestoreDocument<unknown, import("dist/packages/firebase/src").FirestoreModelIdentity>>>;
|
|
13
11
|
readonly dbxModelObjectStateService: DbxModelObjectStateService;
|
|
14
12
|
readonly dbxFirebaseModelTypesService: DbxFirebaseModelTypesService;
|
|
15
13
|
readonly modelViewContext: import("@angular/core").InputSignal<Maybe<string>>;
|
|
16
|
-
|
|
14
|
+
constructor();
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseModelViewedEventDirective, never>;
|
|
18
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseModelViewedEventDirective, "[dbxFirebaseModelViewedEvent]", never, { "modelViewContext": { "alias": "dbxFirebaseModelViewedEvent"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
17
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
1
|
import { FirestoreDocument } from '@dereekb/firebase';
|
|
3
2
|
import { DbxFirebaseCollectionStore } from './store.collection';
|
|
4
3
|
import { DbxFirebaseCollectionStoreDirective } from './store.collection.directive';
|
|
@@ -8,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
8
7
|
/**
|
|
9
8
|
* Used to watch query doc changes and respond to them accordingly.
|
|
10
9
|
*/
|
|
11
|
-
export declare class DbxFirebaseCollectionChangeDirective<T = unknown, D extends FirestoreDocument<T> = FirestoreDocument<T>, S extends DbxFirebaseCollectionStore<T, D> = DbxFirebaseCollectionStore<T, D>> implements DbxFirebaseCollectionChangeWatcher<S
|
|
10
|
+
export declare class DbxFirebaseCollectionChangeDirective<T = unknown, D extends FirestoreDocument<T> = FirestoreDocument<T>, S extends DbxFirebaseCollectionStore<T, D> = DbxFirebaseCollectionStore<T, D>> implements DbxFirebaseCollectionChangeWatcher<S> {
|
|
12
11
|
readonly dbxFirebaseCollectionStoreDirective: DbxFirebaseCollectionStoreDirective<T, D, S>;
|
|
13
12
|
readonly mode: import("@angular/core").InputSignalWithTransform<DbxFirebaseCollectionChangeWatcherTriggerMode, "" | DbxFirebaseCollectionChangeWatcherTriggerMode>;
|
|
14
13
|
private readonly _watcher;
|
|
@@ -20,8 +19,7 @@ export declare class DbxFirebaseCollectionChangeDirective<T = unknown, D extends
|
|
|
20
19
|
readonly trigger$: Observable<void>;
|
|
21
20
|
protected readonly modeEffect: import("@angular/core").EffectRef;
|
|
22
21
|
get store(): S;
|
|
23
|
-
|
|
24
|
-
ngOnDestroy(): void;
|
|
22
|
+
constructor();
|
|
25
23
|
restart(): void;
|
|
26
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseCollectionChangeDirective<any, any, any>, never>;
|
|
27
25
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseCollectionChangeDirective<any, any, any>, "[dbxFirebaseCollectionChange]", never, { "mode": { "alias": "dbxFirebaseCollectionChange"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Provider, Type } from '@angular/core';
|
|
2
2
|
import { DocumentReference, FirestoreDocument, FirestoreModelKey, FirestoreQueryConstraint } from '@dereekb/firebase';
|
|
3
3
|
import { Maybe, ArrayOrValue } from '@dereekb/util';
|
|
4
4
|
import { DbxFirebaseCollectionStore } from './store.collection';
|
|
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Abstract directive that contains a DbxFirebaseCollectionStore and provides an interface for communicating with other directives.
|
|
9
9
|
*/
|
|
10
|
-
export declare abstract class DbxFirebaseCollectionStoreDirective<T = unknown, D extends FirestoreDocument<T> = FirestoreDocument<T>, S extends DbxFirebaseCollectionStore<T, D> = DbxFirebaseCollectionStore<T, D>>
|
|
10
|
+
export declare abstract class DbxFirebaseCollectionStoreDirective<T = unknown, D extends FirestoreDocument<T> = FirestoreDocument<T>, S extends DbxFirebaseCollectionStore<T, D> = DbxFirebaseCollectionStore<T, D>> {
|
|
11
11
|
readonly collectionMode: import("@angular/core").ModelSignal<DbxFirebaseCollectionMode>;
|
|
12
12
|
readonly collectionKeys: import("@angular/core").ModelSignal<Maybe<string[]>>;
|
|
13
13
|
readonly collectionRefs: import("@angular/core").ModelSignal<Maybe<DocumentReference<T>[]>>;
|
|
@@ -23,12 +23,10 @@ export declare abstract class DbxFirebaseCollectionStoreDirective<T = unknown, D
|
|
|
23
23
|
private readonly _constraints;
|
|
24
24
|
private readonly _waitForNonNullConstraints;
|
|
25
25
|
private readonly _store;
|
|
26
|
-
private readonly _storeSub;
|
|
27
26
|
readonly store$: import("rxjs").Observable<S>;
|
|
28
27
|
readonly pageLoadingState$: import("rxjs").Observable<import("@dereekb/rxjs").PageListLoadingState<import("@dereekb/firebase").DocumentDataWithIdAndKey<T>>>;
|
|
29
28
|
constructor(store: S);
|
|
30
29
|
get store(): S;
|
|
31
|
-
ngOnDestroy(): void;
|
|
32
30
|
/**
|
|
33
31
|
* Replaces the internal store.
|
|
34
32
|
*/
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
2
1
|
import { DbxListViewWrapper } from '@dereekb/dbx-web';
|
|
3
|
-
import { OnInit } from '@angular/core';
|
|
4
2
|
import { DbxFirebaseCollectionStoreDirective } from './store.collection.directive';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
/**
|
|
7
5
|
* Directive that connects a host DbxListView to a DbxFirebaseCollectionStoreDirective to pass data for rendering items from a collection and query parameters.
|
|
8
6
|
*/
|
|
9
|
-
export declare class DbxFirebaseCollectionListDirective<T>
|
|
7
|
+
export declare class DbxFirebaseCollectionListDirective<T> {
|
|
10
8
|
readonly dbxFirebaseCollectionStoreDirective: DbxFirebaseCollectionStoreDirective<T, import("dist/packages/firebase/src").FirestoreDocument<T, import("dist/packages/firebase/src").FirestoreModelIdentity>, import("@dereekb/dbx-firebase").DbxFirebaseCollectionStore<T, import("dist/packages/firebase/src").FirestoreDocument<T, import("dist/packages/firebase/src").FirestoreModelIdentity>>>;
|
|
11
9
|
readonly dbxListViewWrapper: DbxListViewWrapper<any, any>;
|
|
12
10
|
constructor();
|
|
13
|
-
ngOnInit(): void;
|
|
14
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseCollectionListDirective<any>, never>;
|
|
15
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseCollectionListDirective<any>, "[dbxFirebaseCollectionList]", never, {}, {}, never, never, true, never>;
|
|
16
13
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Provider, Type } from '@angular/core';
|
|
2
2
|
import { DocumentReference, FirestoreAccessorStreamMode, FirestoreDocument, FirestoreModelKey, FirestoreModelId, TwoWayFlatFirestoreModelKey } from '@dereekb/firebase';
|
|
3
3
|
import { ModelKey, type Maybe } from '@dereekb/util';
|
|
4
4
|
import { DbxFirebaseDocumentStore } from './store';
|
|
@@ -9,7 +9,7 @@ import * as i0 from "@angular/core";
|
|
|
9
9
|
/**
|
|
10
10
|
* Abstract directive that contains a DbxFirebaseDocumentStore and provides an interface for communicating with other directives.
|
|
11
11
|
*/
|
|
12
|
-
export declare abstract class DbxFirebaseDocumentStoreDirective<T = unknown, D extends FirestoreDocument<T> = FirestoreDocument<T>, S extends DbxFirebaseDocumentStore<T, D> = DbxFirebaseDocumentStore<T, D>> implements DbxFirebaseDocumentStoreTwoWayKeyProvider, DbxRouteModelIdDirectiveDelegate, DbxRouteModelKeyDirectiveDelegate
|
|
12
|
+
export declare abstract class DbxFirebaseDocumentStoreDirective<T = unknown, D extends FirestoreDocument<T> = FirestoreDocument<T>, S extends DbxFirebaseDocumentStore<T, D> = DbxFirebaseDocumentStore<T, D>> implements DbxFirebaseDocumentStoreTwoWayKeyProvider, DbxRouteModelIdDirectiveDelegate, DbxRouteModelKeyDirectiveDelegate {
|
|
13
13
|
readonly storeName: import("@angular/core").ModelSignal<Maybe<string>>;
|
|
14
14
|
readonly documentId: import("@angular/core").ModelSignal<Maybe<string>>;
|
|
15
15
|
readonly key: import("@angular/core").ModelSignal<Maybe<string>>;
|
|
@@ -23,7 +23,6 @@ export declare abstract class DbxFirebaseDocumentStoreDirective<T = unknown, D e
|
|
|
23
23
|
private readonly _ref$;
|
|
24
24
|
private readonly _streamMode$;
|
|
25
25
|
private readonly _store;
|
|
26
|
-
private readonly _storeSub;
|
|
27
26
|
readonly store$: Observable<S>;
|
|
28
27
|
readonly exists$: Observable<boolean>;
|
|
29
28
|
readonly document$: Observable<D>;
|
|
@@ -38,7 +37,6 @@ export declare abstract class DbxFirebaseDocumentStoreDirective<T = unknown, D e
|
|
|
38
37
|
readonly data$: Observable<import("@dereekb/firebase").DocumentDataWithIdAndKey<T>>;
|
|
39
38
|
readonly loadingState$: Observable<import("@dereekb/rxjs").LoadingState<import("@dereekb/firebase").DocumentDataWithIdAndKey<T>>>;
|
|
40
39
|
constructor(store: S);
|
|
41
|
-
ngOnDestroy(): void;
|
|
42
40
|
get store(): S;
|
|
43
41
|
setStoreName(storeName: Maybe<string>): void;
|
|
44
42
|
setDocumentId(documentId: Maybe<FirestoreModelId>): void;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { DbxFirebaseDocumentStoreDirective } from './store.document.directive';
|
|
2
2
|
import { DbxFirebaseDocumentStoreTwoWayKeyProvider } from './store.document.twoway.key.source';
|
|
3
|
-
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* Used for providing an id from the twoWayFlatKey$ from a DbxFirebaseDocumentStoreTwoWayKeyProvider.
|
|
7
6
|
*/
|
|
8
|
-
export declare class DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective
|
|
7
|
+
export declare class DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective {
|
|
9
8
|
readonly dbxFirebaseDocumentStoreDirective: DbxFirebaseDocumentStoreDirective<unknown, import("dist/packages/firebase/src").FirestoreDocument<unknown, import("dist/packages/firebase/src").FirestoreModelIdentity>, import("@dereekb/dbx-firebase").DbxFirebaseDocumentStore<unknown, import("dist/packages/firebase/src").FirestoreDocument<unknown, import("dist/packages/firebase/src").FirestoreModelIdentity>>>;
|
|
10
9
|
readonly dbxFirebaseDocumentStoreTwoWayKeyProvider: DbxFirebaseDocumentStoreTwoWayKeyProvider;
|
|
11
10
|
constructor();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Provider, Type
|
|
1
|
+
import { Provider, Type } from '@angular/core';
|
|
2
2
|
import { FirestoreDocument } from '@dereekb/firebase';
|
|
3
3
|
import { type Maybe } from '@dereekb/util';
|
|
4
4
|
import { DbxFirebaseCollectionStoreDirective } from './store.collection.directive';
|
|
@@ -7,12 +7,10 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
/**
|
|
8
8
|
* Abstract directive that contains a DbxFirebaseCollectionWithParentStore and provides an interface for communicating with other directives.
|
|
9
9
|
*/
|
|
10
|
-
export declare abstract class DbxFirebaseCollectionWithParentStoreDirective<T, PT, D extends FirestoreDocument<T> = FirestoreDocument<T>, PD extends FirestoreDocument<PT> = FirestoreDocument<PT>, S extends DbxFirebaseCollectionWithParentStore<T, PT, D, PD> = DbxFirebaseCollectionWithParentStore<T, PT, D, PD>> extends DbxFirebaseCollectionStoreDirective<T, D, S>
|
|
10
|
+
export declare abstract class DbxFirebaseCollectionWithParentStoreDirective<T, PT, D extends FirestoreDocument<T> = FirestoreDocument<T>, PD extends FirestoreDocument<PT> = FirestoreDocument<PT>, S extends DbxFirebaseCollectionWithParentStore<T, PT, D, PD> = DbxFirebaseCollectionWithParentStore<T, PT, D, PD>> extends DbxFirebaseCollectionStoreDirective<T, D, S> {
|
|
11
11
|
readonly sourceMode: import("@angular/core").ModelSignal<Maybe<DbxFirebaseComponentStoreWithParentSourceMode>>;
|
|
12
12
|
private readonly _sourceMode$;
|
|
13
|
-
private readonly _parentSourceModeSub;
|
|
14
13
|
constructor(store: S);
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
14
|
setSourceMode(sourceMode: Maybe<DbxFirebaseComponentStoreWithParentSourceMode>): void;
|
|
17
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseCollectionWithParentStoreDirective<any, any, any, any, any>, never>;
|
|
18
16
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseCollectionWithParentStoreDirective<any, any, any, any, any>, never, never, { "sourceMode": { "alias": "sourceMode"; "required": false; "isSignal": true; }; }, { "sourceMode": "sourceModeChange"; }, never, never, false, never>;
|
|
@@ -2,12 +2,11 @@ import { SystemState, SystemStateStoredData, SystemStateTypeIdentifier } from '@
|
|
|
2
2
|
import { LoadingState } from '@dereekb/rxjs';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { SystemStateDocumentStore } from './systemstate.document.store';
|
|
5
|
-
import { OnDestroy } from '@angular/core';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
/**
|
|
8
7
|
* Abstract class used for accessing a SystemStateDocumentStore's data.
|
|
9
8
|
*/
|
|
10
|
-
export declare abstract class AbstractSystemStateDocumentStoreAccessor<T extends SystemStateStoredData = SystemStateStoredData>
|
|
9
|
+
export declare abstract class AbstractSystemStateDocumentStoreAccessor<T extends SystemStateStoredData = SystemStateStoredData> {
|
|
11
10
|
readonly systemStateDocumentStore: SystemStateDocumentStore<T>;
|
|
12
11
|
readonly documentData$: Observable<import("@dereekb/firebase").DocumentDataWithIdAndKey<SystemState<T>>>;
|
|
13
12
|
readonly data$: Observable<T>;
|
|
@@ -16,7 +15,6 @@ export declare abstract class AbstractSystemStateDocumentStoreAccessor<T extends
|
|
|
16
15
|
readonly doesNotExist$: Observable<boolean>;
|
|
17
16
|
readonly type$: Observable<SystemStateTypeIdentifier>;
|
|
18
17
|
constructor(type: SystemStateTypeIdentifier);
|
|
19
|
-
ngOnDestroy(): void;
|
|
20
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractSystemStateDocumentStoreAccessor<any>, [{ optional: true; }]>;
|
|
21
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<AbstractSystemStateDocumentStoreAccessor<any>>;
|
|
22
20
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { NotificationId, NotificationItem } from '@dereekb/firebase';
|
|
3
2
|
import { Maybe } from '@dereekb/util';
|
|
4
3
|
import { ComponentStore } from '@ngrx/component-store';
|
|
@@ -16,7 +15,7 @@ export interface DbxFirebaseNotificationItemStoreState {
|
|
|
16
15
|
/**
|
|
17
16
|
* Store used for selecting a specific NotificationItem from a list of notification items.
|
|
18
17
|
*/
|
|
19
|
-
export declare class DbxFirebaseNotificationItemStore extends ComponentStore<DbxFirebaseNotificationItemStoreState>
|
|
18
|
+
export declare class DbxFirebaseNotificationItemStore extends ComponentStore<DbxFirebaseNotificationItemStoreState> {
|
|
20
19
|
constructor();
|
|
21
20
|
readonly items$: import("rxjs").Observable<NotificationItem<{}>[]>;
|
|
22
21
|
readonly selectedId$: import("rxjs").Observable<Maybe<string>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
1
|
import { Maybe } from '@dereekb/util';
|
|
3
2
|
import { DbxFirebaseStorageFileUploadStore } from '../store/storagefile.upload.store';
|
|
4
3
|
import { StorageFileUploadFilesFinalResult, StorageFileUploadHandler } from './storagefile.upload.handler';
|
|
@@ -7,11 +6,7 @@ import * as i0 from "@angular/core";
|
|
|
7
6
|
/**
|
|
8
7
|
* Connects a DbxFirebaseStorageFileUploadStore to a DbxActionContext, and handles the upload action.
|
|
9
8
|
*/
|
|
10
|
-
export declare class DbxFirebaseStorageFileUploadActionHandlerDirective
|
|
11
|
-
private readonly _triggerSub;
|
|
12
|
-
private readonly _readySub;
|
|
13
|
-
private readonly _isWorkingSub;
|
|
14
|
-
private readonly _progressSub;
|
|
9
|
+
export declare class DbxFirebaseStorageFileUploadActionHandlerDirective {
|
|
15
10
|
readonly source: DbxActionContextStoreSourceInstance<File[], StorageFileUploadFilesFinalResult>;
|
|
16
11
|
readonly uploadStore: DbxFirebaseStorageFileUploadStore;
|
|
17
12
|
readonly _dbxActionHandlerInstance: DbxActionHandlerInstance<File[], StorageFileUploadFilesFinalResult>;
|
|
@@ -40,8 +35,7 @@ export declare class DbxFirebaseStorageFileUploadActionHandlerDirective implemen
|
|
|
40
35
|
protected readonly _uploadHandlerEffect: import("@angular/core").EffectRef;
|
|
41
36
|
readonly files$: import("rxjs").Observable<File[]>;
|
|
42
37
|
readonly uploadHandler$: import("rxjs").Observable<Maybe<StorageFileUploadHandler>>;
|
|
43
|
-
|
|
44
|
-
ngOnDestroy(): void;
|
|
38
|
+
constructor();
|
|
45
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseStorageFileUploadActionHandlerDirective, never>;
|
|
46
40
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseStorageFileUploadActionHandlerDirective, "[dbxFirebaseStorageFileUploadActionHandler]", never, { "triggerOnFiles": { "alias": "triggerOnFiles"; "required": false; "isSignal": true; }; "cancelUploadsOnUploadError": { "alias": "cancelUploadsOnUploadError"; "required": false; "isSignal": true; }; "actionFailureOnUploadError": { "alias": "actionFailureOnUploadError"; "required": false; "isSignal": true; }; "uploadHandler": { "alias": "dbxFirebaseStorageFileUploadActionHandler"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
47
41
|
}
|
package/lib/modules/storagefile/container/storagefile.upload.initialize.document.directive.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { DbxFirebaseStorageFileUploadStore, StorageFileDocumentStore } from '../store';
|
|
3
|
-
import { AbstractSubscriptionDirective } from '@dereekb/dbx-core';
|
|
4
2
|
import { Maybe } from '@dereekb/util';
|
|
5
3
|
import * as i0 from "@angular/core";
|
|
6
4
|
/**
|
|
@@ -8,14 +6,13 @@ import * as i0 from "@angular/core";
|
|
|
8
6
|
*
|
|
9
7
|
* Use with a DbxAction instance.
|
|
10
8
|
*/
|
|
11
|
-
export declare class DbxFirebaseStorageFileUploadInitializeDocumentDirective
|
|
9
|
+
export declare class DbxFirebaseStorageFileUploadInitializeDocumentDirective {
|
|
12
10
|
readonly uploadStore: DbxFirebaseStorageFileUploadStore;
|
|
13
11
|
readonly storageFileDocumentStore: StorageFileDocumentStore;
|
|
14
12
|
readonly initializeWithExpediteProcessing: import("@angular/core").InputSignal<Maybe<boolean>>;
|
|
15
13
|
private readonly source;
|
|
16
14
|
private readonly _dbxActionHandlerInstance;
|
|
17
15
|
constructor();
|
|
18
|
-
ngOnDestroy(): void;
|
|
19
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseStorageFileUploadInitializeDocumentDirective, never>;
|
|
20
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseStorageFileUploadInitializeDocumentDirective, "[dbxFirebaseStorageFileUploadInitializeDocument]", ["dbxFirebaseStorageFileUploadInitializeDocument"], { "initializeWithExpediteProcessing": { "alias": "initializeWithExpediteProcessing"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
21
18
|
}
|
|
@@ -1,20 +1,16 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { DbxFirebaseStorageFileUploadStore } from '../store';
|
|
3
2
|
import { ArrayOrValue, Maybe } from '@dereekb/util';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* Directive that provides a DbxFirebaseStorageFileUploadStore, and sync's the inputs to the store.
|
|
7
6
|
*/
|
|
8
|
-
export declare class DbxFirebaseStorageFileUploadStoreDirective
|
|
9
|
-
private readonly _allowedSub;
|
|
10
|
-
private readonly _multiSub;
|
|
7
|
+
export declare class DbxFirebaseStorageFileUploadStoreDirective {
|
|
11
8
|
readonly uploadStore: DbxFirebaseStorageFileUploadStore;
|
|
12
9
|
readonly multipleUpload: import("@angular/core").InputSignal<Maybe<boolean>>;
|
|
13
10
|
readonly fileTypesAccepted: import("@angular/core").InputSignal<Maybe<ArrayOrValue<string>>>;
|
|
14
11
|
readonly fileTypesAccepted$: import("rxjs").Observable<Maybe<ArrayOrValue<string>>>;
|
|
15
12
|
readonly isMultiUploadAllowed$: import("rxjs").Observable<Maybe<boolean>>;
|
|
16
13
|
constructor();
|
|
17
|
-
ngOnDestroy(): void;
|
|
18
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseStorageFileUploadStoreDirective, never>;
|
|
19
15
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseStorageFileUploadStoreDirective, "[dbxFirebaseStorageFileUploadStore]", ["dbxFirebaseStorageFileUploadStore"], { "multipleUpload": { "alias": "multipleUpload"; "required": false; "isSignal": true; }; "fileTypesAccepted": { "alias": "fileTypesAccepted"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
16
|
}
|
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { DbxFirebaseStorageFileUploadStore } from '../store';
|
|
3
2
|
import { DbxFileUploadComponent } from '@dereekb/dbx-web';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
/**
|
|
6
5
|
* Directive that syncs a DbxFirebaseStorageFileUploadStore's configuration to a DbxFileUploadComponent.
|
|
7
6
|
*/
|
|
8
|
-
export declare class DbxFirebaseStorageFileUploadSyncDirective
|
|
9
|
-
private readonly _allowedSub;
|
|
10
|
-
private readonly _multiSub;
|
|
11
|
-
private readonly _filesSub;
|
|
7
|
+
export declare class DbxFirebaseStorageFileUploadSyncDirective {
|
|
12
8
|
readonly uploadStore: DbxFirebaseStorageFileUploadStore;
|
|
13
9
|
readonly uploadComponent: DbxFileUploadComponent;
|
|
14
10
|
constructor();
|
|
15
|
-
ngOnDestroy(): void;
|
|
16
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseStorageFileUploadSyncDirective, never>;
|
|
17
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseStorageFileUploadSyncDirective, "[dbxFirebaseStorageFileUploadSync]", ["dbxFirebaseStorageFileUploadSync"], {}, {}, never, never, true, never>;
|
|
18
13
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
1
|
import { FileAcceptFilterTypeString } from '@dereekb/dbx-web';
|
|
3
2
|
import { FirebaseStorageAccessorFile, StoragePathInput } from '@dereekb/firebase';
|
|
4
3
|
import { ArrayOrValue, Maybe, PercentDecimal } from '@dereekb/util';
|
|
@@ -119,7 +118,7 @@ export interface DbxFirebaseStorageFileUploadStoreState {
|
|
|
119
118
|
/**
|
|
120
119
|
* Store used for selecting a specific NotificationItem from a list of notification items.
|
|
121
120
|
*/
|
|
122
|
-
export declare class DbxFirebaseStorageFileUploadStore extends ComponentStore<DbxFirebaseStorageFileUploadStoreState>
|
|
121
|
+
export declare class DbxFirebaseStorageFileUploadStore extends ComponentStore<DbxFirebaseStorageFileUploadStoreState> {
|
|
123
122
|
constructor();
|
|
124
123
|
readonly componentFileTypesAccepted$: import("rxjs").Observable<Maybe<DbxFirebaseStorageFileUploadStoreAllowedTypes>>;
|
|
125
124
|
readonly isComponentMultiUploadAllowed$: import("rxjs").Observable<Maybe<boolean>>;
|