@dereekb/dbx-firebase 13.8.0 → 13.9.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/fesm2022/dereekb-dbx-firebase-oidc.mjs +32 -28
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +20 -18
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/package.json +12 -12
- package/types/dereekb-dbx-firebase-oidc.d.ts +12 -12
- package/types/dereekb-dbx-firebase.d.ts +4 -4
|
@@ -15,7 +15,7 @@ import * as i1 from '@angular/material/icon';
|
|
|
15
15
|
import { MatIconModule, MatIcon } from '@angular/material/icon';
|
|
16
16
|
import { firebaseAuthErrorToReadableError, FIREBASE_AUTH_PASSWORD_MIN_LENGTH, FirebaseDevelopmentFunctions, ScheduledFunctionDevelopmentFunctionTypeEnum, clientFirebaseFirestoreContextFactory, SystemStateFirestoreCollections, NotificationFirestoreCollections, StorageFileFirestoreCollections, FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY, iterationQueryDocChangeWatcher, firebaseQuerySnapshotAccumulator, firebaseQueryItemAccumulator, firestoreModelKeysFromDocuments, firestoreModelIdsFromDocuments, documentReferencesFromDocuments, getDocumentSnapshots, getDataFromDocumentSnapshots, latestSnapshotsFromDocuments, dataFromDocumentSnapshots, loadDocumentsForKeys, loadDocumentsForDocumentReferences, loadDocumentsForIds, firestoreModelKeyCollectionTypePair, buildFirebaseCollectionTypeModelTypeMap, firestoreModelId, flatFirestoreModelKey, twoWayFlatFirestoreModelKey, FirestoreAccessorStreamMode, firestoreModelIdsFromKey, firestoreModelKeyPartPairs, firestoreModelKeyPairObject, documentDataWithIdAndKey, isClientFirebaseError, FIRESTORE_PERMISSION_DENIED_ERROR_CODE, inferKeyFromTwoWayFlatFirestoreModelKey, firestoreModelKeyParentKey, AppNotificationTemplateTypeInfoRecordService, NotificationFunctions, unreadNotificationItems, StorageFileFunctions, firestoreModelKey, storageFileIdentity, clientFirebaseStorageContextFactory } from '@dereekb/firebase';
|
|
17
17
|
import * as i1$2 from '@dereekb/dbx-form';
|
|
18
|
-
import { AbstractSyncForgeFormDirective,
|
|
18
|
+
import { AbstractSyncForgeFormDirective, dbxForgeEmailField, DbxForgeFormComponentImportsModule, dbxForgeFormComponentProviders, DBX_FORGE_FORM_COMPONENT_TEMPLATE, AbstractConfigAsyncForgeFormDirective, dbxForgeUsernameLoginField, dbxForgeTextPasswordField, dbxForgeTextVerifyPasswordField, DbxActionFormDirective, DbxFormSourceDirective, dbxForgePickableChipField, filterPickableItemFieldValuesByLabel } from '@dereekb/dbx-form';
|
|
19
19
|
import { NgTemplateOutlet, DatePipe } from '@angular/common';
|
|
20
20
|
import * as i1$3 from '@angular/material/button';
|
|
21
21
|
import { MatButtonModule } from '@angular/material/button';
|
|
@@ -1202,7 +1202,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1202
1202
|
* Forge-based form component for password recovery, containing a single email field.
|
|
1203
1203
|
*/
|
|
1204
1204
|
class DbxFirebaseEmailRecoveryForgeFormComponent extends AbstractSyncForgeFormDirective {
|
|
1205
|
-
|
|
1205
|
+
formConfig = { fields: [dbxForgeEmailField({ key: 'email', required: true })] };
|
|
1206
1206
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseEmailRecoveryForgeFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1207
1207
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseEmailRecoveryForgeFormComponent, isStandalone: true, selector: "dbx-firebase-email-recovery-forge-form", providers: dbxForgeFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-forge></dbx-forge>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxForgeFormComponentImportsModule }, { kind: "component", type: i1$2.DbxForgeFormComponent, selector: "dbx-forge" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1208
1208
|
}
|
|
@@ -1224,13 +1224,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1224
1224
|
* In register mode, includes a password verification field.
|
|
1225
1225
|
*/
|
|
1226
1226
|
class DbxFirebaseEmailForgeFormComponent extends AbstractConfigAsyncForgeFormDirective {
|
|
1227
|
-
|
|
1227
|
+
formConfig$ = this.currentConfig$.pipe(map((config) => {
|
|
1228
1228
|
if (!config) {
|
|
1229
1229
|
return undefined;
|
|
1230
1230
|
}
|
|
1231
1231
|
const loginMode = config.loginMode ?? 'login';
|
|
1232
1232
|
const passwordConfig = config.passwordConfig;
|
|
1233
|
-
const fields = [
|
|
1233
|
+
const fields = [dbxForgeUsernameLoginField('email'), dbxForgeTextPasswordField(passwordConfig), ...(loginMode === 'register' ? [dbxForgeTextVerifyPasswordField()] : [])];
|
|
1234
1234
|
return { fields };
|
|
1235
1235
|
}));
|
|
1236
1236
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseEmailForgeFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -1861,11 +1861,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImpor
|
|
|
1861
1861
|
* Forge-based form component for completing a password reset, containing new password and verify password fields.
|
|
1862
1862
|
*/
|
|
1863
1863
|
class DbxFirebasePasswordResetFormComponent extends AbstractSyncForgeFormDirective {
|
|
1864
|
-
|
|
1864
|
+
formConfig = {
|
|
1865
1865
|
fields: [
|
|
1866
|
-
|
|
1866
|
+
dbxForgeTextPasswordField({ minLength: FIREBASE_AUTH_PASSWORD_MIN_LENGTH }),
|
|
1867
1867
|
{
|
|
1868
|
-
...
|
|
1868
|
+
...dbxForgeTextVerifyPasswordField(),
|
|
1869
1869
|
validators: [
|
|
1870
1870
|
{
|
|
1871
1871
|
type: 'custom',
|
|
@@ -2234,20 +2234,22 @@ const DISPLAY_FOR_DEVELOPMENT_POPUP_STRING_VALUE = (values) => {
|
|
|
2234
2234
|
* Forge form component for selecting development widget entries from a popup.
|
|
2235
2235
|
*/
|
|
2236
2236
|
class DbxFirebaseDevelopmentPopupContentForgeFormComponent extends AbstractConfigAsyncForgeFormDirective {
|
|
2237
|
-
|
|
2237
|
+
formConfig$ = this.currentConfig$.pipe(map((config) => {
|
|
2238
2238
|
if (!config) {
|
|
2239
2239
|
return undefined;
|
|
2240
2240
|
}
|
|
2241
2241
|
return {
|
|
2242
2242
|
fields: [
|
|
2243
|
-
|
|
2243
|
+
dbxForgePickableChipField({
|
|
2244
2244
|
key: 'specifier',
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2245
|
+
hint: 'Pick a tool to get started.',
|
|
2246
|
+
props: {
|
|
2247
|
+
filterLabel: 'Tools',
|
|
2248
|
+
filterValues: filterPickableItemFieldValuesByLabel,
|
|
2249
|
+
loadValues: () => of(config.entries.map((y) => ({ value: y.widget.type, meta: y }))),
|
|
2250
|
+
displayForValue: DISPLAY_FOR_DEVELOPMENT_POPUP_STRING_VALUE,
|
|
2251
|
+
asArrayValue: false
|
|
2252
|
+
}
|
|
2251
2253
|
})
|
|
2252
2254
|
]
|
|
2253
2255
|
};
|
|
@@ -2275,7 +2277,7 @@ class DbxFirebaseDevelopmentSchedulerListComponent extends AbstractDbxSelectionL
|
|
|
2275
2277
|
});
|
|
2276
2278
|
}
|
|
2277
2279
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2278
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseDevelopmentSchedulerListComponent, isStandalone: true, selector: "dbx-firebase-development-scheduler-list", providers: provideDbxListViewWrapper(DbxFirebaseDevelopmentSchedulerListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"
|
|
2280
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseDevelopmentSchedulerListComponent, isStandalone: true, selector: "dbx-firebase-development-scheduler-list", providers: provideDbxListViewWrapper(DbxFirebaseDevelopmentSchedulerListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabledSignal()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1$1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2279
2281
|
}
|
|
2280
2282
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListComponent, decorators: [{
|
|
2281
2283
|
type: Component,
|
|
@@ -3797,7 +3799,7 @@ class DbxFirebaseModelTypeInstanceListComponent extends AbstractDbxSelectionList
|
|
|
3797
3799
|
});
|
|
3798
3800
|
}
|
|
3799
3801
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseModelTypeInstanceListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3800
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseModelTypeInstanceListComponent, isStandalone: true, selector: "dbx-firebase-model-type-instance-list", providers: provideDbxListViewWrapper(DbxFirebaseModelTypeInstanceListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"
|
|
3802
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseModelTypeInstanceListComponent, isStandalone: true, selector: "dbx-firebase-model-type-instance-list", providers: provideDbxListViewWrapper(DbxFirebaseModelTypeInstanceListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabledSignal()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1$1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3801
3803
|
}
|
|
3802
3804
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseModelTypeInstanceListComponent, decorators: [{
|
|
3803
3805
|
type: Component,
|
|
@@ -5786,7 +5788,7 @@ class DbxFirebaseNotificationItemListComponent extends AbstractDbxSelectionListW
|
|
|
5786
5788
|
});
|
|
5787
5789
|
}
|
|
5788
5790
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseNotificationItemListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5789
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseNotificationItemListComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-list", providers: provideDbxListViewWrapper(DbxFirebaseNotificationItemListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"
|
|
5791
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.4", type: DbxFirebaseNotificationItemListComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-list", providers: provideDbxListViewWrapper(DbxFirebaseNotificationItemListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabledSignal()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1$1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5790
5792
|
}
|
|
5791
5793
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.4", ngImport: i0, type: DbxFirebaseNotificationItemListComponent, decorators: [{
|
|
5792
5794
|
type: Component,
|