@dereekb/dbx-firebase 13.43.0 → 14.0.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/package.json CHANGED
@@ -1,25 +1,25 @@
1
1
  {
2
2
  "name": "@dereekb/dbx-firebase",
3
- "version": "13.43.0",
3
+ "version": "14.0.1",
4
4
  "peerDependencies": {
5
- "@angular/common": "21.2.11",
6
- "@angular/core": "21.2.11",
7
- "@angular/material": "^21.2.9",
8
- "@dereekb/date": "13.43.0",
9
- "@dereekb/dbx-analytics": "13.43.0",
10
- "@dereekb/dbx-core": "13.43.0",
11
- "@dereekb/dbx-form": "13.43.0",
12
- "@dereekb/dbx-web": "13.43.0",
13
- "@dereekb/firebase": "13.43.0",
14
- "@dereekb/model": "13.43.0",
15
- "@dereekb/rxjs": "13.43.0",
16
- "@dereekb/util": "13.43.0",
17
- "@dereekb/vitest": "13.43.0",
18
- "@ng-forge/dynamic-forms": "0.10.0-next.4",
19
- "@ngrx/component-store": "^21.1.0",
20
- "firebase": "^12.12.1",
5
+ "@angular/common": "22.1.4",
6
+ "@angular/core": "22.1.4",
7
+ "@angular/material": "^22.1.4",
8
+ "@dereekb/date": "14.0.1",
9
+ "@dereekb/dbx-analytics": "14.0.1",
10
+ "@dereekb/dbx-core": "14.0.1",
11
+ "@dereekb/dbx-form": "14.0.1",
12
+ "@dereekb/dbx-web": "14.0.1",
13
+ "@dereekb/firebase": "14.0.1",
14
+ "@dereekb/model": "14.0.1",
15
+ "@dereekb/rxjs": "14.0.1",
16
+ "@dereekb/util": "14.0.1",
17
+ "@dereekb/vitest": "14.0.1",
18
+ "@ng-forge/dynamic-forms": "1.2.0-next.8",
19
+ "@ngrx/component-store": "^22.0.0",
20
+ "firebase": "^12.18.0",
21
21
  "make-error": "^1.3.6",
22
- "ng-overlay-container": "^21.0.1",
22
+ "ng-overlay-container": "^22.0.1",
23
23
  "rxjs": "^7.8.2"
24
24
  },
25
25
  "dependencies": {
@@ -16,9 +16,9 @@ import { DbxForgeTextPasswordFieldPasswordParameters, AbstractSyncForgeFormDirec
16
16
  import * as _dereekb_dbx_firebase from '@dereekb/dbx-firebase';
17
17
  import * as _dereekb_rxjs from '@dereekb/rxjs';
18
18
  import { WorkUsingContext, WorkUsingObservable, ObservableOrValue, IsModifiedFunction, PageListLoadingState, ItemAccumulatorNextPageUntilResultsCountResult, SubscriptionObject, ObservableDecisionFunction, ListLoadingState, LoadingState, MaybeObservableOrValue, SwitchMapToDefaultFilterFunction, MaybeObservableOrValueGetter } from '@dereekb/rxjs';
19
- import * as dist_packages_dbx_form_types_dereekb_dbx_form from 'dist/packages/dbx-form/types/dereekb-dbx-form';
19
+ import * as __________________dist_packages_dbx_form_types_dereekb_dbx_form from '../../../dist/packages/dbx-form/types/dereekb-dbx-form';
20
20
  import * as i1 from '@dereekb/dbx-web';
21
- import { DbxColorInput, DbxActionConfirmConfig, DbxWidgetEntry, DbxPopupService, DbxWidgetService, DbxWidgetType, TwoColumnsContextStore, AbstractPopupDirective, DbxPopupKey, AbstractDbxSelectionListWrapperDirective, AbstractDbxSelectionListViewDirective, DbxSelectionValueListViewConfig, DbxValueAsListItem, AbstractDbxValueListViewItemComponent, DbxModelTypesService, DbxModelTypeInfo, DbxModelTypesMap, DbxModelTrackerService, AnchorForValueFunction, AbstractPopoverDirective, DbxPopoverService, DbxPopoverKey, AbstractPopoverRefDirective, DbxPopoverConfigSizing, DbxButtonStyle, DownloadTextContent, DbxModelObjectStateService, DbxListViewWrapper, AbstractDialogDirective, CopyToClipboardFunctionWithSnackbarMessageSnackbarConfig, AbstractDbxListWrapperDirective, AbstractDbxListViewDirective, DbxValueListViewConfig, DbxThemeColor, DbxWebFilePreviewService, DbxActionDialogFunction, DbxFileListItemComponentConfig, FileAcceptFilterTypeString, DbxImageCompressionConfig, ImageBitmapToBlobEncoder, CompressImageFileResult, DbxFileUploadComponent, DbxPdfMergeEditorStore, DbxActionModule, DbxLoadingComponent, DbxActionSnackbarErrorDirective, DbxActionLoadingContextDirective, DbxFileUploadActionSyncDirective, DbxWidgetViewComponentConfig, AbstractDbxWidgetComponent } from '@dereekb/dbx-web';
21
+ import { DbxColorInput, DbxActionConfirmConfig, DbxButtonStyle, DbxWidgetEntry, DbxPopupService, DbxWidgetService, DbxWidgetType, TwoColumnsContextStore, AbstractPopupDirective, DbxPopupKey, AbstractDbxSelectionListWrapperDirective, AbstractDbxSelectionListViewDirective, DbxSelectionValueListViewConfig, DbxValueAsListItem, AbstractDbxValueListViewItemComponent, DbxModelTypesService, DbxModelTypeInfo, DbxModelTypesMap, DbxModelTrackerService, AnchorForValueFunction, AbstractPopoverDirective, DbxPopoverService, DbxPopoverKey, AbstractPopoverRefDirective, DbxPopoverConfigSizing, DownloadTextContent, DbxModelObjectStateService, DbxListViewWrapper, AbstractDialogDirective, CopyToClipboardFunctionWithSnackbarMessageSnackbarConfig, AbstractDbxListWrapperDirective, AbstractDbxListViewDirective, DbxValueListViewConfig, DbxThemeColor, DbxWebFilePreviewService, DbxActionDialogFunction, DbxFileListItemComponentConfig, FileAcceptFilterTypeString, DbxImageCompressionConfig, ImageBitmapToBlobEncoder, CompressImageFileResult, DbxFileUploadComponent, DbxPdfMergeEditorStore, DbxActionSnackbarErrorDirective, DbxActionModule, DbxLoadingComponent, DbxActionLoadingContextDirective, DbxFileUploadActionSyncDirective, DbxWidgetViewComponentConfig, AbstractDbxWidgetComponent } from '@dereekb/dbx-web';
22
22
  import { FormConfig } from '@ng-forge/dynamic-forms';
23
23
  import { MatSnackBar } from '@angular/material/snack-bar';
24
24
  import { NgPopoverRef } from 'ng-overlay-container';
@@ -29,7 +29,7 @@ import { FirebaseStorage } from 'firebase/storage';
29
29
  import { Functions } from 'firebase/functions';
30
30
  import { GrantedRole, GrantedRoleMapReader, GrantedRoleMap, GrantedRoleTruthMapObject, GrantedRoleTruthMap } from '@dereekb/model';
31
31
  import { ComponentStore } from '@ngrx/component-store';
32
- import * as dist_packages_dbx_core_types_dereekb_dbx_core from 'dist/packages/dbx-core/types/dereekb-dbx-core';
32
+ import * as _____________________dist_packages_dbx_core_types_dereekb_dbx_core from '../../../dist/packages/dbx-core/types/dereekb-dbx-core';
33
33
  import { MatDialog, MatDialogRef } from '@angular/material/dialog';
34
34
  import { BaseError } from 'make-error';
35
35
 
@@ -424,14 +424,6 @@ declare class DbxFirebaseAuthService implements DbxAuthService {
424
424
  * @returns Observable of the loaded details, or `undefined` when none are available.
425
425
  */
426
426
  loadImpersonationAuthDetails(userId: AuthUserIdentifier): Observable<Maybe<DbxAuthImpersonationDetails>>;
427
- /**
428
- * @param email - The email address to send the reset to.
429
- * @returns Resolves when the email has been sent.
430
- *
431
- * @deprecated use {@link sendPasswordReset} instead, which delegates to the configured
432
- * {@link DbxFirebaseAuthServiceDelegate.sendPasswordReset} implementation.
433
- */
434
- sendPasswordResetEmail(email: string): Promise<void>;
435
427
  logInWithEmailAndPassword(email: string, password: string): Promise<UserCredential>;
436
428
  logInAsAnonymous(): Promise<UserCredential>;
437
429
  logOut(): Promise<void>;
@@ -643,7 +635,7 @@ declare function provideDbxFirebaseLogin(config: ProvideDbxFirebaseLoginConfig):
643
635
  */
644
636
  declare const DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN: InjectionToken<DbxFirebaseAuthLoginProvider<unknown>[]>;
645
637
  declare const DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN: InjectionToken<Type<unknown>>;
646
- declare const DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN: InjectionToken<Partial<Pick<dist_packages_dbx_form_types_dereekb_dbx_form.DbxForgeTextFieldConfig, "maxLength" | "minLength" | "pattern">>>;
638
+ declare const DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN: InjectionToken<Partial<Pick<__________________dist_packages_dbx_form_types_dereekb_dbx_form.DbxForgeTextFieldConfig, "maxLength" | "minLength" | "pattern">>>;
647
639
  interface DbxFirebaseAuthLoginProvider<D = unknown> {
648
640
  /**
649
641
  * Category for this login method.
@@ -774,7 +766,7 @@ declare class DbxFirebaseAuthLoginService {
774
766
  */
775
767
  getAllProviderAssets(): Map<FirebaseLoginMethodType, DbxFirebaseAuthLoginProviderAssets>;
776
768
  getProviderAssets(type: FirebaseLoginMethodType): Maybe<DbxFirebaseAuthLoginProviderAssets>;
777
- getPasswordConfig(): Partial<Pick<dist_packages_dbx_form_types_dereekb_dbx_form.DbxForgeTextFieldConfig, "maxLength" | "minLength" | "pattern">>;
769
+ getPasswordConfig(): Partial<Pick<__________________dist_packages_dbx_form_types_dereekb_dbx_form.DbxForgeTextFieldConfig, "maxLength" | "minLength" | "pattern">>;
778
770
  setPasswordConfig(passwordConfig: DbxFirebaseAuthLoginPasswordConfig): void;
779
771
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseAuthLoginService, never>;
780
772
  static ɵprov: i0.ɵɵInjectableDeclaration<DbxFirebaseAuthLoginService>;
@@ -817,9 +809,14 @@ declare class DbxFirebaseLoginButtonComponent {
817
809
  readonly iconSignal: i0.Signal<string | undefined>;
818
810
  readonly iconFilterSignal: i0.Signal<string | undefined>;
819
811
  readonly textSignal: i0.Signal<string>;
820
- readonly buttonColorSignal: i0.Signal<string | undefined>;
821
- readonly buttonTextColorSignal: i0.Signal<string | undefined>;
822
- readonly colorSignal: i0.Signal<DbxColorInput | undefined>;
812
+ /**
813
+ * Style passed to the underlying `dbx-button`, carrying the configured button and text colors.
814
+ *
815
+ * A raw CSS button color is expressed as a `DbxColorConfig` on {@link DbxButtonStyle.color}, pairing the
816
+ * background with the text color as its `contrast`. An explicit {@link DbxFirebaseLoginButtonConfig.color}
817
+ * takes precedence; with neither set the button falls back to a transparent background.
818
+ */
819
+ readonly buttonStyleSignal: i0.Signal<DbxButtonStyle>;
823
820
  readonly confirmConfigSignal: i0.Signal<DbxActionConfirmConfig<unknown> | undefined>;
824
821
  setConfig(config: Maybe<DbxFirebaseLoginButtonConfig>): void;
825
822
  readonly handleAction: WorkUsingContext;
@@ -3616,8 +3613,8 @@ declare class DbxFirebaseModelKeyComponent {
3616
3613
  readonly modelIdentitySignal: i0.Signal<_dereekb_firebase.FirestoreModelIdentity | undefined>;
3617
3614
  readonly typeInfoSignal: i0.Signal<Maybe<_dereekb_dbx_firebase.DbxFirebaseModelTypeInfo<unknown>>>;
3618
3615
  readonly typeCanSegueToViewSignal: i0.Signal<boolean>;
3619
- readonly sref$: rxjs.Observable<Maybe<dist_packages_dbx_core_types_dereekb_dbx_core.SegueRef<object>>>;
3620
- readonly srefSignal: i0.Signal<Maybe<dist_packages_dbx_core_types_dereekb_dbx_core.SegueRef<object>>>;
3616
+ readonly sref$: rxjs.Observable<Maybe<_____________________dist_packages_dbx_core_types_dereekb_dbx_core.SegueRef<object>>>;
3617
+ readonly srefSignal: i0.Signal<Maybe<_____________________dist_packages_dbx_core_types_dereekb_dbx_core.SegueRef<object>>>;
3621
3618
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseModelKeyComponent, never>;
3622
3619
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseModelKeyComponent, "dbx-firebase-model-key", never, { "modelKey": { "alias": "modelKey"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
3623
3620
  }
@@ -5326,7 +5323,7 @@ declare class DbxFirebaseExternalConnectionsComponent {
5326
5323
  * @param providerType - The provider to disconnect.
5327
5324
  * @returns The loading state observable of the callable.
5328
5325
  */
5329
- disconnectFromProvider(providerType: UserExternalConnectionProviderType): rxjs.Observable<LoadingState<void>>;
5326
+ disconnectFromProvider(providerType: UserExternalConnectionProviderType): rxjs.Observable<_dereekb_rxjs.LoadingState<void>>;
5330
5327
  static ɵfac: i0.ɵɵFactoryDeclaration<DbxFirebaseExternalConnectionsComponent, never>;
5331
5328
  static ɵcmp: i0.ɵɵComponentDeclaration<DbxFirebaseExternalConnectionsComponent, "dbx-firebase-external-connections", never, {}, {}, never, never, true, never>;
5332
5329
  }
@@ -5525,6 +5522,18 @@ declare class FormSpaceDocumentStore extends AbstractDbxFirebaseDocumentStore<Fo
5525
5522
  */
5526
5523
  readonly updateFormSpace: _dereekb_dbx_firebase.DbxFirebaseDocumentStoreFunction<_dereekb_firebase.UpdateFormSpaceParams<FormSpaceData>, void>;
5527
5524
  readonly submitFormSpace: _dereekb_dbx_firebase.DbxFirebaseDocumentStoreFunction<_dereekb_firebase.SubmitFormSpaceParams, _dereekb_firebase.SubmitFormSpaceResult>;
5525
+ /**
5526
+ * Returns a submitted space to an editable draft, if its type allows it and the window is still open.
5527
+ *
5528
+ * Gate a control on {@link isReopenable$} rather than on the state alone: whether a space may be reopened
5529
+ * is the type's policy, and offering the action to a space the server will refuse is the one thing the
5530
+ * predicate exists to prevent.
5531
+ */
5532
+ readonly reopenFormSpace: _dereekb_dbx_firebase.DbxFirebaseDocumentStoreFunction<_dereekb_firebase.ReopenFormSpaceParams, void>;
5533
+ /**
5534
+ * Ends the reopen window immediately, making the submission final.
5535
+ */
5536
+ readonly lockFormSpace: _dereekb_dbx_firebase.DbxFirebaseDocumentStoreFunction<_dereekb_firebase.LockFormSpaceParams, void>;
5528
5537
  readonly removeFormSpaceFile: _dereekb_dbx_firebase.DbxFirebaseDocumentStoreFunction<_dereekb_firebase.RemoveFormSpaceFileParams, void>;
5529
5538
  readonly deleteFormSpace: _dereekb_dbx_firebase.DbxFirebaseDocumentStoreFunction<_dereekb_firebase.DeleteFormSpaceParams, void>;
5530
5539
  readonly formSpaceType$: Observable<string | undefined>;
@@ -5590,6 +5599,28 @@ declare class FormSpaceDocumentStore extends AbstractDbxFirebaseDocumentStore<Fo
5590
5599
  * enablement off.
5591
5600
  */
5592
5601
  readonly isSubmittable$: Observable<boolean>;
5602
+ /**
5603
+ * Whether the space may be reopened into an editable draft right now.
5604
+ *
5605
+ * Evaluated with the same `isFormSpaceReopenable()` the reopen action rejects on. FALSE while the answer
5606
+ * is unknown — no type registry means no reopen policy to read — for the same reason `isComplete$` is:
5607
+ * a disabled control is recoverable, an enabled one that fails against the server is not.
5608
+ *
5609
+ * Being the policy, it does not know about `ps === PROCESSING`, which the action refuses separately and
5610
+ * transiently. A reopen offered during processing can still come back with
5611
+ * `FORM_SPACE_PROCESSING_IN_PROGRESS`, and that is the right thing to surface — the user should try
5612
+ * again, not be told their submission is final.
5613
+ */
5614
+ readonly isReopenable$: Observable<boolean>;
5615
+ /**
5616
+ * Whether nothing further can be done to the space: neither editable nor reopenable.
5617
+ *
5618
+ * The predicate a "this is final" affordance hangs off, and deliberately not the inverse of
5619
+ * {@link isEditable$} — a submitted space inside its reopen window is neither editable nor final.
5620
+ * Undefined config resolves to the editable answer alone, so an app with no registry still distinguishes
5621
+ * a live draft from a closed submission.
5622
+ */
5623
+ readonly isFullyLocked$: Observable<boolean>;
5593
5624
  /**
5594
5625
  * What one slot holds and whether that satisfies its requirement, or undefined when no type registry was
5595
5626
  * provided.
@@ -7488,7 +7519,7 @@ declare class DbxFirebaseFormSpaceDocumentStoreDirective extends DbxFirebaseDocu
7488
7519
  static ɵdir: i0.ɵɵDirectiveDeclaration<DbxFirebaseFormSpaceDocumentStoreDirective, "[dbxFirebaseFormSpaceDocument]", ["dbxFirebaseFormSpaceDocument"], {}, {}, never, never, true, never>;
7489
7520
  }
7490
7521
 
7491
- declare const IMPORTS_AND_EXPORTS: (typeof DbxActionModule | typeof DbxLoadingComponent | typeof DbxActionSnackbarErrorDirective | typeof DbxFirebaseStorageFileCollectionStoreDirective | typeof DbxFirebaseStorageFileDocumentStoreDirective | typeof DbxFirebaseStorageFileUploadInitializeDocumentDirective | typeof DbxFirebaseStorageFileUploadStoreDirective | typeof DbxFirebaseStorageFileUploadSyncDirective | typeof DbxFileUploadComponent | typeof DbxFirebaseStoragePdfMergeUploadSyncDirective | typeof DbxFirebaseStorageFileUploadActionHandlerDirective | typeof DbxActionLoadingContextDirective | typeof DbxFileUploadActionSyncDirective)[];
7522
+ declare const IMPORTS_AND_EXPORTS: (typeof DbxActionSnackbarErrorDirective | typeof DbxActionModule | typeof DbxLoadingComponent | typeof DbxFirebaseStorageFileCollectionStoreDirective | typeof DbxFirebaseStorageFileDocumentStoreDirective | typeof DbxFirebaseStorageFileUploadInitializeDocumentDirective | typeof DbxFirebaseStorageFileUploadStoreDirective | typeof DbxFirebaseStorageFileUploadSyncDirective | typeof DbxFileUploadComponent | typeof DbxFirebaseStoragePdfMergeUploadSyncDirective | typeof DbxFirebaseStorageFileUploadActionHandlerDirective | typeof DbxActionLoadingContextDirective | typeof DbxFileUploadActionSyncDirective)[];
7492
7523
  /**
7493
7524
  * Convenience module for importing various modules/components that are relevant to the storage file upload feature.
7494
7525
  *