@dereekb/dbx-firebase 13.4.2 → 13.5.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 +118 -118
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +922 -602
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/auth/login/_login.scss +1 -20
- package/lib/model/_model.scss +0 -1
- package/lib/model/modules/model/_model.scss +0 -19
- package/lib/style/_all-typography.scss +0 -2
- package/lib/style/_theming.scss +1 -5
- package/package.json +13 -13
- package/types/dereekb-dbx-firebase.d.ts +233 -15
|
@@ -5,19 +5,19 @@ import { asObservable, timeoutStartWith, filterMaybe, isNot, SubscriptionObject,
|
|
|
5
5
|
import { switchMap, of, shareReplay, map, distinctUntilChanged, EMPTY, catchError, firstValueFrom, BehaviorSubject, combineLatest, first, from, tap, interval, exhaustMap, filter, take, startWith, Subject, throttleTime, NEVER, defaultIfEmpty, combineLatestWith, mergeMap, Observable } from 'rxjs';
|
|
6
6
|
import * as i2 from '@dereekb/dbx-core';
|
|
7
7
|
import { loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, authUserIdentifier, DbxInjectionContext, DBX_INJECTION_COMPONENT_DATA, DbxInjectionComponent, AbstractForwardDbxInjectionContextDirective, DbxInjectionContextDirective, DbxAuthService, DbxActionButtonDirective, completeOnDestroy, cleanSubscription, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionAutoTriggerDirective, clean, cleanLoadingContext, provideDbxRouteModelIdDirectiveDelegate, provideDbxRouteModelKeyDirectiveDelegate, AbstractIfDirective, LockSetComponentStore, newWithInjector, CutTextPipe, DbxActionContextStoreSourceInstance, DbxActionHandlerInstance, cleanSubscriptionWithLockSet, SimpleStorageAccessorFactory, dbxRouteParamReaderInstance, DbxRouteParamDefaultRedirectInstance } from '@dereekb/dbx-core';
|
|
8
|
-
import { Auth, authState, idToken,
|
|
8
|
+
import { Auth, authState, idToken, signInWithPopup, linkWithPopup, linkWithCredential, unlink, createUserWithEmailAndPassword, signInWithEmailAndPassword, signInAnonymously, reauthenticateWithPopup, OAuthProvider, FacebookAuthProvider, GithubAuthProvider, GoogleAuthProvider, TwitterAuthProvider, provideAuth, getAuth, connectAuthEmulator } from '@angular/fire/auth';
|
|
9
9
|
import { AUTH_ADMIN_ROLE, cachedGetter, urlWithoutParameters, addToSet, removeFromSet, filterMaybeArrayValues, mapIterable, asArray, excludeValuesFromArray, containsStringAnyCase, addToSetCopy, iterableToArray, runAsyncTasksForValues, pushArrayItemsIntoArray, forEachKeyValue, countAllInNestedArray, invertDecision, useIterableOrValue, filterUniqueValues, reverseCompareFn, sortByNumberFunction, separateValues, readableError, isMaybeSo, firstValue, splitJoinRemainder, MS_IN_HOUR, SECONDS_IN_MINUTE, MS_IN_DAY, unixDateTimeSecondsNumberForNow, MS_IN_MINUTE, addMilliseconds, unixDateTimeSecondsNumberFromDate, dateFromDateOrTimeSecondsNumber, MS_IN_SECOND, isPast } from '@dereekb/util';
|
|
10
10
|
import { safeFormatToISO8601DateString, msToSeconds, isSameDate } from '@dereekb/date';
|
|
11
11
|
import { sendPasswordResetEmail } from 'firebase/auth';
|
|
12
12
|
import { getToken, initializeAppCheck, ReCaptchaV3Provider } from 'firebase/app-check';
|
|
13
13
|
import { AppCheck, provideAppCheck } from '@angular/fire/app-check';
|
|
14
14
|
import * as i1$1 from '@dereekb/dbx-web';
|
|
15
|
-
import { DbxLinkComponent, DbxActionModule, DbxButtonModule, DbxErrorComponent, DbxActionErrorDirective, DbxButtonComponent, DbxButtonSpacerDirective, DbxRouterAnchorModule, DbxWidgetService, AbstractDbxSelectionListWrapperDirective, DbxListWrapperComponentImportsModule, provideDbxListViewWrapper, DEFAULT_LIST_WRAPPER_COMPONENT_CONFIGURATION_TEMPLATE, AbstractDbxSelectionListViewDirective, DbxSelectionValueListViewComponentImportsModule, provideDbxListView, DEFAULT_DBX_SELECTION_VALUE_LIST_COMPONENT_CONFIGURATION_TEMPLATE, AbstractDbxValueListViewItemComponent, TwoColumnsContextStore, DbxAnchorComponent, DbxTwoColumnFullLeftDirective, DbxWidgetViewComponent, DbxTwoColumnComponent, DbxTwoBlockComponent, DbxTwoColumnRightComponent, AbstractPopupDirective, DbxPopupService, DbxPopupContentComponent, DbxPopupControlsComponent, DbxModelTypesService, DbxModelTrackerService, allDbxModelViewTrackerEventModelKeys, DbxListItemAnchorModifierDirective, DbxValueListItemModifierDirective, AbstractPopoverDirective, DbxPopoverContentComponent, DbxPopoverHeaderComponent, DbxPopoverScrollContentDirective, DbxListEmptyContentComponent, AbstractPopoverRefDirective, DbxPopoverService, DbxIconButtonComponent, DbxLoadingComponent, DbxDetailBlockComponent, DbxClickToCopyTextComponent, DbxDownloadTextViewComponent, DbxModelObjectStateService, DbxListViewWrapper, AbstractDbxWidgetComponent, DbxPopoverInteractionModule, DbxListModifierModule, DbxWebFilePreviewService, DbxActionSnackbarErrorDirective, DbxActionDialogDirective, DbxFileUploadComponent, DbxActionLoadingContextDirective, DbxFileUploadActionSyncDirective } from '@dereekb/dbx-web';
|
|
15
|
+
import { DbxLinkComponent, DbxActionModule, DbxButtonModule, DbxErrorComponent, DbxActionErrorDirective, DbxButtonComponent, DbxButtonSpacerDirective, DbxRouterAnchorModule, DbxSectionComponent, DbxWidgetService, AbstractDbxSelectionListWrapperDirective, DbxListWrapperComponentImportsModule, provideDbxListViewWrapper, DEFAULT_LIST_WRAPPER_COMPONENT_CONFIGURATION_TEMPLATE, AbstractDbxSelectionListViewDirective, DbxSelectionValueListViewComponentImportsModule, provideDbxListView, DEFAULT_DBX_SELECTION_VALUE_LIST_COMPONENT_CONFIGURATION_TEMPLATE, AbstractDbxValueListViewItemComponent, TwoColumnsContextStore, DbxAnchorComponent, DbxTwoColumnFullLeftDirective, DbxWidgetViewComponent, DbxTwoColumnComponent, DbxTwoBlockComponent, DbxTwoColumnRightComponent, AbstractPopupDirective, DbxPopupService, DbxPopupContentComponent, DbxPopupControlsComponent, DbxModelTypesService, DbxModelTrackerService, allDbxModelViewTrackerEventModelKeys, DbxListItemAnchorModifierDirective, DbxValueListItemModifierDirective, AbstractPopoverDirective, DbxPopoverContentComponent, DbxPopoverHeaderComponent, DbxPopoverScrollContentDirective, DbxListEmptyContentComponent, AbstractPopoverRefDirective, DbxPopoverService, DbxIconButtonComponent, DbxLoadingComponent, DbxDetailBlockComponent, DbxClickToCopyTextComponent, DbxDownloadTextViewComponent, DbxModelObjectStateService, DbxListViewWrapper, AbstractDbxWidgetComponent, DbxPopoverInteractionModule, DbxListModifierModule, DbxWebFilePreviewService, DbxActionSnackbarErrorDirective, DbxActionDialogDirective, DbxFileUploadComponent, DbxActionLoadingContextDirective, DbxFileUploadActionSyncDirective } from '@dereekb/dbx-web';
|
|
16
16
|
import * as i1 from '@angular/material/icon';
|
|
17
17
|
import { MatIconModule, MatIcon } from '@angular/material/icon';
|
|
18
|
+
import { firebaseAuthErrorToReadableError, 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';
|
|
18
19
|
import * as i1$2 from '@dereekb/dbx-form';
|
|
19
20
|
import { AbstractSyncFormlyFormDirective, emailField, DbxFormlyFormComponentImportsModule, dbxFormlyFormComponentProviders, DBX_FORMLY_FORM_COMPONENT_TEMPLATE, AbstractConfigAsyncFormlyFormDirective, usernamePasswordLoginFields, DbxActionFormDirective, DbxFormSourceDirective, pickableItemChipField, filterPickableItemFieldValuesByLabel } from '@dereekb/dbx-form';
|
|
20
|
-
import { firebaseAuthErrorToReadableError, 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';
|
|
21
21
|
import { NgTemplateOutlet, DatePipe } from '@angular/common';
|
|
22
22
|
import * as i1$3 from '@angular/material/button';
|
|
23
23
|
import { MatButtonModule } from '@angular/material/button';
|
|
@@ -49,7 +49,8 @@ function authUserInfoFromAuthUser(user) {
|
|
|
49
49
|
photoURL: user.photoURL,
|
|
50
50
|
uid: user.uid,
|
|
51
51
|
creationTime: safeFormatToISO8601DateString(user.metadata.creationTime),
|
|
52
|
-
lastSignInTime: safeFormatToISO8601DateString(user.metadata.lastSignInTime)
|
|
52
|
+
lastSignInTime: safeFormatToISO8601DateString(user.metadata.lastSignInTime),
|
|
53
|
+
providerData: user.providerData
|
|
53
54
|
};
|
|
54
55
|
}
|
|
55
56
|
/**
|
|
@@ -147,6 +148,16 @@ class DbxFirebaseAuthService {
|
|
|
147
148
|
hasAuthUser$ = this.currentAuthUser$.pipe(map((x) => Boolean(x)), distinctUntilChanged(), shareReplay(1));
|
|
148
149
|
isAnonymousUser$ = this.authUser$.pipe(map((x) => x.isAnonymous), distinctUntilChanged(), shareReplay(1));
|
|
149
150
|
isNotAnonymousUser$ = this.isAnonymousUser$.pipe(isNot(), distinctUntilChanged(), shareReplay(1));
|
|
151
|
+
/**
|
|
152
|
+
* Observable of provider IDs currently linked to the authenticated user.
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* ```ts
|
|
156
|
+
* authService.currentLinkedProviderIds$.subscribe(ids => console.log(ids));
|
|
157
|
+
* // ['google.com', 'facebook.com']
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
currentLinkedProviderIds$ = this.currentAuthUser$.pipe(map((user) => (user ? user.providerData.map((p) => p.providerId) : [])), distinctUntilChanged((a, b) => a.length === b.length && a.every((v, i) => v === b[i])), shareReplay(1));
|
|
150
161
|
isLoggedIn$ = this.hasAuthUser$;
|
|
151
162
|
isNotLoggedIn$ = this.isLoggedIn$.pipe(isNot());
|
|
152
163
|
onLogIn$ = loggedInObsFromIsLoggedIn(this.isLoggedIn$);
|
|
@@ -216,31 +227,73 @@ class DbxFirebaseAuthService {
|
|
|
216
227
|
}
|
|
217
228
|
return result;
|
|
218
229
|
}
|
|
219
|
-
|
|
220
|
-
return this.
|
|
221
|
-
}
|
|
222
|
-
logInWithFacebook() {
|
|
223
|
-
return this.logInWithPopup(new FacebookAuthProvider());
|
|
224
|
-
}
|
|
225
|
-
logInWithTwitter() {
|
|
226
|
-
return this.logInWithPopup(new TwitterAuthProvider());
|
|
227
|
-
}
|
|
228
|
-
logInWithGithub() {
|
|
229
|
-
return this.logInWithPopup(new GithubAuthProvider());
|
|
230
|
-
}
|
|
231
|
-
logInWithApple() {
|
|
232
|
-
throw new Error('todo');
|
|
230
|
+
logInWithPopup(provider, resolver) {
|
|
231
|
+
return signInWithPopup(this.firebaseAuth, provider, resolver);
|
|
233
232
|
}
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
233
|
+
/**
|
|
234
|
+
* Links an additional authentication provider to the current user via popup.
|
|
235
|
+
*
|
|
236
|
+
* @param provider - The auth provider to link.
|
|
237
|
+
* @param resolver - Optional popup redirect resolver.
|
|
238
|
+
* @returns A promise resolving to the user credential after linking.
|
|
239
|
+
*
|
|
240
|
+
* @example
|
|
241
|
+
* ```ts
|
|
242
|
+
* await authService.linkWithPopup(new GoogleAuthProvider());
|
|
243
|
+
* ```
|
|
244
|
+
*/
|
|
245
|
+
linkWithPopup(provider, resolver) {
|
|
246
|
+
return firstValueFrom(this.currentAuthUser$.pipe(switchMap((x) => {
|
|
247
|
+
if (x) {
|
|
248
|
+
return linkWithPopup(x, provider, resolver);
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
throw new Error('User is not logged in currently.');
|
|
252
|
+
}
|
|
253
|
+
})));
|
|
237
254
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
255
|
+
/**
|
|
256
|
+
* Links a credential to the current user. Useful for merging accounts
|
|
257
|
+
* when a credential-already-in-use error provides an {@link AuthCredential}.
|
|
258
|
+
*
|
|
259
|
+
* @param credential - The auth credential to link.
|
|
260
|
+
* @returns A promise resolving to the user credential after linking.
|
|
261
|
+
*
|
|
262
|
+
* @example
|
|
263
|
+
* ```ts
|
|
264
|
+
* await authService.linkWithCredential(credential);
|
|
265
|
+
* ```
|
|
266
|
+
*/
|
|
267
|
+
linkWithCredential(credential) {
|
|
268
|
+
return firstValueFrom(this.currentAuthUser$.pipe(switchMap((x) => {
|
|
269
|
+
if (x) {
|
|
270
|
+
return linkWithCredential(x, credential);
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
throw new Error('User is not logged in currently.');
|
|
274
|
+
}
|
|
275
|
+
})));
|
|
241
276
|
}
|
|
242
|
-
|
|
243
|
-
|
|
277
|
+
/**
|
|
278
|
+
* Unlinks an authentication provider from the current user.
|
|
279
|
+
*
|
|
280
|
+
* @param providerId - The provider ID to unlink (e.g., 'google.com').
|
|
281
|
+
* @returns A promise resolving to the updated user.
|
|
282
|
+
*
|
|
283
|
+
* @example
|
|
284
|
+
* ```ts
|
|
285
|
+
* await authService.unlinkProvider('google.com');
|
|
286
|
+
* ```
|
|
287
|
+
*/
|
|
288
|
+
unlinkProvider(providerId) {
|
|
289
|
+
return firstValueFrom(this.currentAuthUser$.pipe(switchMap((x) => {
|
|
290
|
+
if (x) {
|
|
291
|
+
return unlink(x, providerId);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
throw new Error('User is not logged in currently.');
|
|
295
|
+
}
|
|
296
|
+
})));
|
|
244
297
|
}
|
|
245
298
|
registerWithEmailAndPassword(email, password) {
|
|
246
299
|
return createUserWithEmailAndPassword(this.firebaseAuth, email, password);
|
|
@@ -267,10 +320,10 @@ class DbxFirebaseAuthService {
|
|
|
267
320
|
}
|
|
268
321
|
})));
|
|
269
322
|
}
|
|
270
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
271
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
323
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
324
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAuthService });
|
|
272
325
|
}
|
|
273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAuthService, decorators: [{
|
|
274
327
|
type: Injectable
|
|
275
328
|
}] });
|
|
276
329
|
/**
|
|
@@ -342,10 +395,10 @@ class DbxFirebaseAnalyticsUserSource {
|
|
|
342
395
|
set userPropertiesFactory(userPropertiesFactory) {
|
|
343
396
|
this._userPropertiesFactory.next(userPropertiesFactory);
|
|
344
397
|
}
|
|
345
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
346
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
398
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAnalyticsUserSource, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
399
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAnalyticsUserSource, providedIn: 'root' });
|
|
347
400
|
}
|
|
348
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAnalyticsUserSource, decorators: [{
|
|
349
402
|
type: Injectable,
|
|
350
403
|
args: [{
|
|
351
404
|
providedIn: 'root'
|
|
@@ -375,10 +428,10 @@ class DbxFirebaseAnalyticsUserEventsListenerService {
|
|
|
375
428
|
this._loginSub.destroy();
|
|
376
429
|
this._logoutSub.destroy();
|
|
377
430
|
}
|
|
378
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
379
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
431
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAnalyticsUserEventsListenerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
432
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAnalyticsUserEventsListenerService });
|
|
380
433
|
}
|
|
381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAnalyticsUserEventsListenerService, decorators: [{
|
|
382
435
|
type: Injectable
|
|
383
436
|
}] });
|
|
384
437
|
|
|
@@ -474,10 +527,10 @@ class DbxFirebaseAppCheckHttpInterceptor {
|
|
|
474
527
|
}
|
|
475
528
|
return from(this._appCheckRoutes).pipe(first((route) => isEnabledRouteMatch(route), false), map((x) => Boolean(x)));
|
|
476
529
|
}
|
|
477
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
478
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
530
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
531
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor });
|
|
479
532
|
}
|
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor, decorators: [{
|
|
481
534
|
type: Injectable
|
|
482
535
|
}] });
|
|
483
536
|
|
|
@@ -499,8 +552,8 @@ class DbxFirebaseLoginTermsSimpleComponent {
|
|
|
499
552
|
url: this.dbxFirebaseLoginTermsConfig.privacyUrl,
|
|
500
553
|
target: '_blank'
|
|
501
554
|
};
|
|
502
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
503
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
555
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginTermsSimpleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
556
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginTermsSimpleComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
504
557
|
<div class="dbx-firebase-login-terms-view">
|
|
505
558
|
<dbx-link [anchor]="tosAnchor">Terms</dbx-link>
|
|
506
559
|
<span class="dbx-link-spacer"></span>
|
|
@@ -508,7 +561,7 @@ class DbxFirebaseLoginTermsSimpleComponent {
|
|
|
508
561
|
</div>
|
|
509
562
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxLinkComponent, selector: "dbx-link", inputs: ["ref", "href", "anchor"] }] });
|
|
510
563
|
}
|
|
511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginTermsSimpleComponent, decorators: [{
|
|
512
565
|
type: Component,
|
|
513
566
|
args: [{
|
|
514
567
|
template: `
|
|
@@ -631,6 +684,17 @@ class DbxFirebaseAuthLoginService {
|
|
|
631
684
|
getRegisterProviders(types) {
|
|
632
685
|
return filterMaybeArrayValues(mapIterable(types ?? [], (x) => this._providers.get(x))).filter((x) => x.registrationComponentClass !== false);
|
|
633
686
|
}
|
|
687
|
+
getLinkProviders(types) {
|
|
688
|
+
return filterMaybeArrayValues(mapIterable(types ?? [], (x) => this._providers.get(x))).filter((x) => x.allowLinking !== false);
|
|
689
|
+
}
|
|
690
|
+
/**
|
|
691
|
+
* Returns all registered provider assets.
|
|
692
|
+
*
|
|
693
|
+
* @returns A map of login method types to their asset configurations.
|
|
694
|
+
*/
|
|
695
|
+
getAllProviderAssets() {
|
|
696
|
+
return new Map(this._assets);
|
|
697
|
+
}
|
|
634
698
|
getProviderAssets(type) {
|
|
635
699
|
return this._assets.get(type);
|
|
636
700
|
}
|
|
@@ -640,10 +704,10 @@ class DbxFirebaseAuthLoginService {
|
|
|
640
704
|
setPasswordConfig(passwordConfig) {
|
|
641
705
|
this._passwordConfig = passwordConfig;
|
|
642
706
|
}
|
|
643
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
644
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
707
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAuthLoginService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
708
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAuthLoginService });
|
|
645
709
|
}
|
|
646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
710
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseAuthLoginService, decorators: [{
|
|
647
711
|
type: Injectable
|
|
648
712
|
}], ctorParameters: () => [] });
|
|
649
713
|
|
|
@@ -668,12 +732,13 @@ class DbxFirebaseLoginContext extends DbxInjectionContext {
|
|
|
668
732
|
* Displays a logo image or icon alongside the login text with configurable colors.
|
|
669
733
|
*/
|
|
670
734
|
class DbxFirebaseLoginButtonComponent {
|
|
671
|
-
config = model(null, ...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
672
|
-
iconUrlSignal = computed(() => this.config()?.iconUrl, ...(ngDevMode ? [{ debugName: "iconUrlSignal" }] : []));
|
|
673
|
-
iconSignal = computed(() => this.config()?.icon, ...(ngDevMode ? [{ debugName: "iconSignal" }] : []));
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
735
|
+
config = model(null, ...(ngDevMode ? [{ debugName: "config" }] : /* istanbul ignore next */ []));
|
|
736
|
+
iconUrlSignal = computed(() => this.config()?.iconUrl, ...(ngDevMode ? [{ debugName: "iconUrlSignal" }] : /* istanbul ignore next */ []));
|
|
737
|
+
iconSignal = computed(() => this.config()?.icon, ...(ngDevMode ? [{ debugName: "iconSignal" }] : /* istanbul ignore next */ []));
|
|
738
|
+
iconFilterSignal = computed(() => this.config()?.iconFilter, ...(ngDevMode ? [{ debugName: "iconFilterSignal" }] : /* istanbul ignore next */ []));
|
|
739
|
+
textSignal = computed(() => this.config()?.text ?? '', ...(ngDevMode ? [{ debugName: "textSignal" }] : /* istanbul ignore next */ []));
|
|
740
|
+
buttonColorSignal = computed(() => this.config()?.buttonColor ?? 'transparent', ...(ngDevMode ? [{ debugName: "buttonColorSignal" }] : /* istanbul ignore next */ []));
|
|
741
|
+
buttonTextColorSignal = computed(() => this.config()?.buttonTextColor, ...(ngDevMode ? [{ debugName: "buttonTextColorSignal" }] : /* istanbul ignore next */ []));
|
|
677
742
|
setConfig(config) {
|
|
678
743
|
this.config.set(config);
|
|
679
744
|
}
|
|
@@ -690,14 +755,14 @@ class DbxFirebaseLoginButtonComponent {
|
|
|
690
755
|
onActionSuccess = () => {
|
|
691
756
|
// todo: show checkmark on success?
|
|
692
757
|
};
|
|
693
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
694
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
758
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
759
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseLoginButtonComponent, isStandalone: true, selector: "dbx-firebase-login-button", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { config: "configChange" }, host: { classAttribute: "dbx-firebase-login-button" }, ngImport: i0, template: `
|
|
695
760
|
<ng-container dbxAction [dbxActionHandler]="handleAction" dbxActionValue [dbxActionSuccessHandler]="onActionSuccess">
|
|
696
761
|
<dbx-button dbxActionButton [customTextColor]="buttonTextColorSignal()" [customButtonColor]="buttonColorSignal()" [raised]="true">
|
|
697
762
|
<div class="dbx-firebase-login-button-content">
|
|
698
763
|
<span class="dbx-firebase-login-button-icon dbx-icon-spacer">
|
|
699
764
|
@if (iconUrlSignal()) {
|
|
700
|
-
<img [src]="iconUrlSignal()" alt="" />
|
|
765
|
+
<img [src]="iconUrlSignal()" alt="" [style.filter]="iconFilterSignal()" />
|
|
701
766
|
}
|
|
702
767
|
@if (iconSignal()) {
|
|
703
768
|
<mat-icon>{{ iconSignal() }}</mat-icon>
|
|
@@ -707,9 +772,9 @@ class DbxFirebaseLoginButtonComponent {
|
|
|
707
772
|
</div>
|
|
708
773
|
</dbx-button>
|
|
709
774
|
</ng-container>
|
|
710
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "ngmodule", type: DbxButtonModule }, { kind: "component", type: i1$1.DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
775
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "ngmodule", type: DbxButtonModule }, { kind: "component", type: i1$1.DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "allowClickPropagation", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
711
776
|
}
|
|
712
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
777
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginButtonComponent, decorators: [{
|
|
713
778
|
type: Component,
|
|
714
779
|
args: [{
|
|
715
780
|
selector: 'dbx-firebase-login-button',
|
|
@@ -719,7 +784,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
719
784
|
<div class="dbx-firebase-login-button-content">
|
|
720
785
|
<span class="dbx-firebase-login-button-icon dbx-icon-spacer">
|
|
721
786
|
@if (iconUrlSignal()) {
|
|
722
|
-
<img [src]="iconUrlSignal()" alt="" />
|
|
787
|
+
<img [src]="iconUrlSignal()" alt="" [style.filter]="iconFilterSignal()" />
|
|
723
788
|
}
|
|
724
789
|
@if (iconSignal()) {
|
|
725
790
|
<mat-icon>{{ iconSignal() }}</mat-icon>
|
|
@@ -742,14 +807,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
742
807
|
* Container component that wraps login button content with consistent spacing.
|
|
743
808
|
*/
|
|
744
809
|
class DbxFirebaseLoginButtonContainerComponent {
|
|
745
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
746
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
810
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginButtonContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
811
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginButtonContainerComponent, isStandalone: true, selector: "dbx-firebase-login-button-container", ngImport: i0, template: `
|
|
747
812
|
<div class="dbx-firebase-login-button-container">
|
|
748
813
|
<ng-content></ng-content>
|
|
749
814
|
</div>
|
|
750
815
|
`, isInline: true });
|
|
751
816
|
}
|
|
752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginButtonContainerComponent, decorators: [{
|
|
753
818
|
type: Component,
|
|
754
819
|
args: [{
|
|
755
820
|
selector: 'dbx-firebase-login-button-container',
|
|
@@ -780,25 +845,56 @@ const DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION = {
|
|
|
780
845
|
/**
|
|
781
846
|
* Abstract base directive for login provider buttons that auto-configures appearance
|
|
782
847
|
* from the registered provider assets and delegates login handling to subclasses.
|
|
848
|
+
*
|
|
849
|
+
* Supports login, register, and link modes. In link mode, the button text is derived from
|
|
850
|
+
* the provider's `linkText` or defaults to "Connect " + `providerName`.
|
|
851
|
+
*
|
|
852
|
+
* @example
|
|
853
|
+
* ```typescript
|
|
854
|
+
* export class MyProviderComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
855
|
+
* readonly loginProvider = 'myprovider';
|
|
856
|
+
* handleLogin() { return this.dbxFirebaseAuthService.logInWithPopup(new MyProvider()); }
|
|
857
|
+
* handleLink() { return this.dbxFirebaseAuthService.linkWithPopup(new MyProvider()); }
|
|
858
|
+
* }
|
|
859
|
+
* ```
|
|
783
860
|
*/
|
|
784
861
|
class AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
785
862
|
dbxFirebaseAuthService = inject(DbxFirebaseAuthService);
|
|
786
863
|
dbxFirebaseAuthLoginService = inject(DbxFirebaseAuthLoginService);
|
|
787
864
|
dbxFirebaseLoginContext = inject(DbxFirebaseLoginContext);
|
|
788
|
-
|
|
789
|
-
_config = signal(null, ...(ngDevMode ? [{ debugName: "_config" }] : []));
|
|
790
|
-
configSignal = computed(() => this._config(), ...(ngDevMode ? [{ debugName: "configSignal" }] : []));
|
|
865
|
+
_injectionData = inject(DBX_INJECTION_COMPONENT_DATA, { optional: true });
|
|
866
|
+
_config = signal(null, ...(ngDevMode ? [{ debugName: "_config" }] : /* istanbul ignore next */ []));
|
|
867
|
+
configSignal = computed(() => this._config(), ...(ngDevMode ? [{ debugName: "configSignal" }] : /* istanbul ignore next */ []));
|
|
868
|
+
/**
|
|
869
|
+
* The effective login mode, derived from injection data or defaulting to 'login'.
|
|
870
|
+
*
|
|
871
|
+
* @returns The login mode for this button instance.
|
|
872
|
+
*/
|
|
873
|
+
get effectiveLoginMode() {
|
|
874
|
+
return this._injectionData?.loginMode ?? 'login';
|
|
875
|
+
}
|
|
791
876
|
ngOnInit() {
|
|
792
877
|
const assets = this.assetConfig;
|
|
878
|
+
const text = this._textForMode(assets);
|
|
793
879
|
this._config.set({
|
|
794
|
-
text
|
|
880
|
+
text,
|
|
795
881
|
icon: assets.loginIcon,
|
|
796
882
|
iconUrl: assets.logoUrl,
|
|
883
|
+
iconFilter: assets.logoFilter,
|
|
797
884
|
buttonColor: assets.backgroundColor,
|
|
798
885
|
buttonTextColor: assets.textColor,
|
|
799
|
-
handleLogin: () => this.
|
|
886
|
+
handleLogin: () => this._handleAction()
|
|
800
887
|
});
|
|
801
888
|
}
|
|
889
|
+
/**
|
|
890
|
+
* Handles the link action. Override in subclasses that support linking.
|
|
891
|
+
* Throws by default for providers that do not support linking.
|
|
892
|
+
*
|
|
893
|
+
* @returns A promise that resolves when the link action completes.
|
|
894
|
+
*/
|
|
895
|
+
handleLink() {
|
|
896
|
+
throw new Error(`Linking is not supported for the "${this.loginProvider}" provider.`);
|
|
897
|
+
}
|
|
802
898
|
get providerConfig() {
|
|
803
899
|
return this.dbxFirebaseAuthLoginService.getLoginProvider(this.loginProvider);
|
|
804
900
|
}
|
|
@@ -808,10 +904,32 @@ class AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
|
808
904
|
get config() {
|
|
809
905
|
return this._config();
|
|
810
906
|
}
|
|
811
|
-
|
|
812
|
-
|
|
907
|
+
_textForMode(assets) {
|
|
908
|
+
let text;
|
|
909
|
+
if (this.effectiveLoginMode === 'link') {
|
|
910
|
+
text = assets.linkText ?? (assets.providerName ? `Connect ${assets.providerName}` : '<linkText not configured>');
|
|
911
|
+
}
|
|
912
|
+
else {
|
|
913
|
+
text = assets.loginText ?? '<loginText not configured>';
|
|
914
|
+
}
|
|
915
|
+
return text;
|
|
916
|
+
}
|
|
917
|
+
_handleAction() {
|
|
918
|
+
let promise;
|
|
919
|
+
if (this.effectiveLoginMode === 'link') {
|
|
920
|
+
promise = this.handleLink();
|
|
921
|
+
}
|
|
922
|
+
else {
|
|
923
|
+
promise = this.handleLogin();
|
|
924
|
+
}
|
|
925
|
+
return promise.catch((error) => {
|
|
926
|
+
throw firebaseAuthErrorToReadableError(error);
|
|
927
|
+
});
|
|
928
|
+
}
|
|
929
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractConfiguredDbxFirebaseLoginButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
930
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractConfiguredDbxFirebaseLoginButtonDirective, isStandalone: true, ngImport: i0 });
|
|
813
931
|
}
|
|
814
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractConfiguredDbxFirebaseLoginButtonDirective, decorators: [{
|
|
815
933
|
type: Directive
|
|
816
934
|
}] });
|
|
817
935
|
|
|
@@ -823,10 +941,10 @@ class DbxFirebaseLoginAnonymousComponent extends AbstractConfiguredDbxFirebaseLo
|
|
|
823
941
|
handleLogin() {
|
|
824
942
|
return this.dbxFirebaseAuthService.logInAsAnonymous();
|
|
825
943
|
}
|
|
826
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
827
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
944
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginAnonymousComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
945
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginAnonymousComponent, isStandalone: true, selector: "dbx-firebase-login-anonymous", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
828
946
|
}
|
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginAnonymousComponent, decorators: [{
|
|
830
948
|
type: Component,
|
|
831
949
|
args: [{
|
|
832
950
|
selector: 'dbx-firebase-login-anonymous',
|
|
@@ -837,15 +955,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
837
955
|
}]
|
|
838
956
|
}] });
|
|
839
957
|
|
|
958
|
+
/**
|
|
959
|
+
* Creates an Apple OAuthProvider configured with email and name scopes.
|
|
960
|
+
*
|
|
961
|
+
* @returns A configured {@link OAuthProvider} for Apple sign-in.
|
|
962
|
+
*/
|
|
963
|
+
function createAppleAuthProvider() {
|
|
964
|
+
const provider = new OAuthProvider('apple.com');
|
|
965
|
+
provider.addScope('email');
|
|
966
|
+
provider.addScope('name');
|
|
967
|
+
return provider;
|
|
968
|
+
}
|
|
969
|
+
/**
|
|
970
|
+
* Login button component for Apple OAuth authentication.
|
|
971
|
+
*/
|
|
972
|
+
class DbxFirebaseLoginAppleComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
973
|
+
loginProvider = 'apple';
|
|
974
|
+
handleLogin() {
|
|
975
|
+
return this.dbxFirebaseAuthService.logInWithPopup(createAppleAuthProvider());
|
|
976
|
+
}
|
|
977
|
+
handleLink() {
|
|
978
|
+
return this.dbxFirebaseAuthService.linkWithPopup(createAppleAuthProvider());
|
|
979
|
+
}
|
|
980
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginAppleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
981
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginAppleComponent, isStandalone: true, selector: "dbx-firebase-login-apple", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
982
|
+
}
|
|
983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginAppleComponent, decorators: [{
|
|
984
|
+
type: Component,
|
|
985
|
+
args: [{
|
|
986
|
+
selector: 'dbx-firebase-login-apple',
|
|
987
|
+
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
988
|
+
template: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.template,
|
|
989
|
+
changeDetection: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.changeDetection,
|
|
990
|
+
standalone: true
|
|
991
|
+
}]
|
|
992
|
+
}] });
|
|
993
|
+
|
|
840
994
|
/**
|
|
841
995
|
* Formly-based form component for password recovery, containing a single email field.
|
|
842
996
|
*/
|
|
843
997
|
class DbxFirebaseEmailRecoveryFormComponent extends AbstractSyncFormlyFormDirective {
|
|
844
998
|
fields = [emailField({ required: true })];
|
|
845
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
846
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
999
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseEmailRecoveryFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1000
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseEmailRecoveryFormComponent, isStandalone: true, selector: "dbx-firebase-email-recovery-form", providers: dbxFormlyFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-formly></dbx-formly>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxFormlyFormComponentImportsModule }, { kind: "component", type: i1$2.DbxFormlyComponent, selector: "dbx-formly", exportAs: ["formly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
847
1001
|
}
|
|
848
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1002
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseEmailRecoveryFormComponent, decorators: [{
|
|
849
1003
|
type: Component,
|
|
850
1004
|
args: [{
|
|
851
1005
|
selector: 'dbx-firebase-email-recovery-form',
|
|
@@ -869,10 +1023,10 @@ class DbxFirebaseEmailFormComponent extends AbstractConfigAsyncFormlyFormDirecti
|
|
|
869
1023
|
const fields = usernamePasswordLoginFields({ username: 'email', password: passwordConfig, verifyPassword: loginMode === 'register' });
|
|
870
1024
|
return fields;
|
|
871
1025
|
}));
|
|
872
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
873
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1026
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseEmailFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1027
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseEmailFormComponent, isStandalone: true, selector: "dbx-firebase-email-form", providers: dbxFormlyFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-formly></dbx-formly>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxFormlyFormComponentImportsModule }, { kind: "component", type: i1$2.DbxFormlyComponent, selector: "dbx-formly", exportAs: ["formly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
874
1028
|
}
|
|
875
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseEmailFormComponent, decorators: [{
|
|
876
1030
|
type: Component,
|
|
877
1031
|
args: [{
|
|
878
1032
|
selector: 'dbx-firebase-email-form',
|
|
@@ -896,9 +1050,9 @@ class DbxFirebaseLoginEmailContentComponent {
|
|
|
896
1050
|
loginMode: this.config.loginMode,
|
|
897
1051
|
passwordConfig: this.config.passwordConfig
|
|
898
1052
|
};
|
|
899
|
-
_emailFormValueSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_emailFormValueSignal" }] : []));
|
|
900
|
-
_recoveryFormValueSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_recoveryFormValueSignal" }] : []));
|
|
901
|
-
_emailModeSignal = signal('login', ...(ngDevMode ? [{ debugName: "_emailModeSignal" }] : []));
|
|
1053
|
+
_emailFormValueSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_emailFormValueSignal" }] : /* istanbul ignore next */ []));
|
|
1054
|
+
_recoveryFormValueSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_recoveryFormValueSignal" }] : /* istanbul ignore next */ []));
|
|
1055
|
+
_emailModeSignal = signal('login', ...(ngDevMode ? [{ debugName: "_emailModeSignal" }] : /* istanbul ignore next */ []));
|
|
902
1056
|
emailFormValueSignal = this._emailFormValueSignal.asReadonly();
|
|
903
1057
|
recoveryFormValueSignal = this._recoveryFormValueSignal.asReadonly();
|
|
904
1058
|
emailModeSignal = this._emailModeSignal.asReadonly();
|
|
@@ -969,10 +1123,10 @@ class DbxFirebaseLoginEmailContentComponent {
|
|
|
969
1123
|
onCancelReset() {
|
|
970
1124
|
this.doneOrCancelled.next(false);
|
|
971
1125
|
}
|
|
972
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
973
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1126
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginEmailContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1127
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseLoginEmailContentComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div class=\"dbx-firebase-login-email-content\">\n @switch (emailModeSignal()) {\n @case ('login') {\n <ng-container *ngTemplateOutlet=\"loginView\"></ng-container>\n }\n @case ('recover') {\n <ng-container *ngTemplateOutlet=\"resetPassword\"></ng-container>\n }\n @case ('recoversent') {\n <ng-container *ngTemplateOutlet=\"resetPasswordSent\"></ng-container>\n }\n }\n</div>\n\n<!-- Login View -->\n<ng-template #loginView>\n <ng-container dbxAction [dbxActionHandler]=\"handleLoginAction\">\n <dbx-firebase-email-form [config]=\"formConfig\" dbxActionForm [dbxFormSource]=\"emailFormValueSignal()\"></dbx-firebase-email-form>\n @if (isLoginMode) {\n <div class=\"dbx-firebase-login-email-forgot-prompt\">\n <dbx-link [anchor]=\"forgotAnchor\">Forgot Password?</dbx-link>\n </div>\n }\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-button-wide\" [text]=\"buttonText\" [raised]=\"true\" color=\"primary\" dbxActionButton></dbx-button>\n <dbx-button-spacer></dbx-button-spacer>\n <span class=\"dbx-spacer\"></span>\n <button mat-flat-button (click)=\"onCancel()\">Cancel</button>\n </div>\n <dbx-error dbxActionError></dbx-error>\n </ng-container>\n</ng-template>\n\n<!-- Reset Password View -->\n<ng-template #resetPassword>\n <div class=\"dbx-firebase-login-email-content-recovery\" dbxAction [dbxActionHandler]=\"handleRecoveryAction\" [dbxActionSuccessHandler]=\"handleRecoverySuccess\">\n <dbx-firebase-email-recovery-form dbxActionForm [dbxFormSource]=\"recoveryFormValueSignal()\"></dbx-firebase-email-recovery-form>\n <p class=\"dbx-hint\">An email will be sent to the above address to help you reset your password.</p>\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-button-wide\" text=\"Send Recovery Email\" [raised]=\"true\" color=\"primary\" dbxActionButton></dbx-button>\n <span class=\"dbx-spacer\"></span>\n <button mat-flat-button (click)=\"onCancelReset()\">Cancel Recovery</button>\n </div>\n <dbx-error dbxActionError></dbx-error>\n </div>\n</ng-template>\n\n<!-- Reset Password Sent -->\n<ng-template #resetPasswordSent>\n <div class=\"dbx-firebase-login-email-content-recovery-sent\">\n <p class=\"dbx-hint\">A recovery email was sent to the specified address. Please check your email for next steps.</p>\n <button mat-raised-button (click)=\"clickedRecoveryAcknowledged()\">Ok</button>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DbxErrorComponent, selector: "dbx-error", inputs: ["error", "iconOnly"], outputs: ["popoverOpened"] }, { kind: "component", type: DbxLinkComponent, selector: "dbx-link", inputs: ["ref", "href", "anchor"] }, { kind: "directive", type: DbxActionErrorDirective, selector: "[dbxActionError]" }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "allowClickPropagation", "mode"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "component", type: DbxFirebaseEmailFormComponent, selector: "dbx-firebase-email-form" }, { kind: "component", type: DbxFirebaseEmailRecoveryFormComponent, selector: "dbx-firebase-email-recovery-form" }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
974
1128
|
}
|
|
975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginEmailContentComponent, decorators: [{
|
|
976
1130
|
type: Component,
|
|
977
1131
|
args: [{ imports: [NgTemplateOutlet, DbxErrorComponent, DbxLinkComponent, DbxActionErrorDirective, DbxActionFormDirective, MatButtonModule, DbxActionModule, DbxButtonComponent, DbxButtonSpacerDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFormSourceDirective], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<div class=\"dbx-firebase-login-email-content\">\n @switch (emailModeSignal()) {\n @case ('login') {\n <ng-container *ngTemplateOutlet=\"loginView\"></ng-container>\n }\n @case ('recover') {\n <ng-container *ngTemplateOutlet=\"resetPassword\"></ng-container>\n }\n @case ('recoversent') {\n <ng-container *ngTemplateOutlet=\"resetPasswordSent\"></ng-container>\n }\n }\n</div>\n\n<!-- Login View -->\n<ng-template #loginView>\n <ng-container dbxAction [dbxActionHandler]=\"handleLoginAction\">\n <dbx-firebase-email-form [config]=\"formConfig\" dbxActionForm [dbxFormSource]=\"emailFormValueSignal()\"></dbx-firebase-email-form>\n @if (isLoginMode) {\n <div class=\"dbx-firebase-login-email-forgot-prompt\">\n <dbx-link [anchor]=\"forgotAnchor\">Forgot Password?</dbx-link>\n </div>\n }\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-button-wide\" [text]=\"buttonText\" [raised]=\"true\" color=\"primary\" dbxActionButton></dbx-button>\n <dbx-button-spacer></dbx-button-spacer>\n <span class=\"dbx-spacer\"></span>\n <button mat-flat-button (click)=\"onCancel()\">Cancel</button>\n </div>\n <dbx-error dbxActionError></dbx-error>\n </ng-container>\n</ng-template>\n\n<!-- Reset Password View -->\n<ng-template #resetPassword>\n <div class=\"dbx-firebase-login-email-content-recovery\" dbxAction [dbxActionHandler]=\"handleRecoveryAction\" [dbxActionSuccessHandler]=\"handleRecoverySuccess\">\n <dbx-firebase-email-recovery-form dbxActionForm [dbxFormSource]=\"recoveryFormValueSignal()\"></dbx-firebase-email-recovery-form>\n <p class=\"dbx-hint\">An email will be sent to the above address to help you reset your password.</p>\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-button-wide\" text=\"Send Recovery Email\" [raised]=\"true\" color=\"primary\" dbxActionButton></dbx-button>\n <span class=\"dbx-spacer\"></span>\n <button mat-flat-button (click)=\"onCancelReset()\">Cancel Recovery</button>\n </div>\n <dbx-error dbxActionError></dbx-error>\n </div>\n</ng-template>\n\n<!-- Reset Password Sent -->\n<ng-template #resetPasswordSent>\n <div class=\"dbx-firebase-login-email-content-recovery-sent\">\n <p class=\"dbx-hint\">A recovery email was sent to the specified address. Please check your email for next steps.</p>\n <button mat-raised-button (click)=\"clickedRecoveryAcknowledged()\">Ok</button>\n </div>\n</ng-template>\n" }]
|
|
978
1132
|
}] });
|
|
@@ -985,10 +1139,10 @@ class DbxFirebaseLoginEmailComponent extends AbstractConfiguredDbxFirebaseLoginB
|
|
|
985
1139
|
handleLogin() {
|
|
986
1140
|
return DbxFirebaseLoginEmailContentComponent.openEmailLoginContext(this.dbxFirebaseLoginContext, { loginMode: 'login', passwordConfig: this.dbxFirebaseAuthLoginService.getPasswordConfig() });
|
|
987
1141
|
}
|
|
988
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
989
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1142
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginEmailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1143
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginEmailComponent, isStandalone: true, selector: "dbx-firebase-login-email", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
990
1144
|
}
|
|
991
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginEmailComponent, decorators: [{
|
|
992
1146
|
type: Component,
|
|
993
1147
|
args: [{
|
|
994
1148
|
selector: 'dbx-firebase-login-email',
|
|
@@ -1005,12 +1159,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1005
1159
|
class DbxFirebaseLoginFacebookComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1006
1160
|
loginProvider = 'facebook';
|
|
1007
1161
|
handleLogin() {
|
|
1008
|
-
return this.dbxFirebaseAuthService.
|
|
1162
|
+
return this.dbxFirebaseAuthService.logInWithPopup(new FacebookAuthProvider());
|
|
1163
|
+
}
|
|
1164
|
+
handleLink() {
|
|
1165
|
+
return this.dbxFirebaseAuthService.linkWithPopup(new FacebookAuthProvider());
|
|
1009
1166
|
}
|
|
1010
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1011
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1167
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginFacebookComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1168
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginFacebookComponent, isStandalone: true, selector: "dbx-firebase-login-facebook", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1012
1169
|
}
|
|
1013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1170
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginFacebookComponent, decorators: [{
|
|
1014
1171
|
type: Component,
|
|
1015
1172
|
args: [{
|
|
1016
1173
|
selector: 'dbx-firebase-login-facebook',
|
|
@@ -1027,12 +1184,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1027
1184
|
class DbxFirebaseLoginGitHubComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1028
1185
|
loginProvider = 'github';
|
|
1029
1186
|
handleLogin() {
|
|
1030
|
-
return this.dbxFirebaseAuthService.
|
|
1187
|
+
return this.dbxFirebaseAuthService.logInWithPopup(new GithubAuthProvider());
|
|
1031
1188
|
}
|
|
1032
|
-
|
|
1033
|
-
|
|
1189
|
+
handleLink() {
|
|
1190
|
+
return this.dbxFirebaseAuthService.linkWithPopup(new GithubAuthProvider());
|
|
1191
|
+
}
|
|
1192
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginGitHubComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1193
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginGitHubComponent, isStandalone: true, selector: "dbx-firebase-login-github", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1034
1194
|
}
|
|
1035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginGitHubComponent, decorators: [{
|
|
1036
1196
|
type: Component,
|
|
1037
1197
|
args: [{
|
|
1038
1198
|
selector: 'dbx-firebase-login-github',
|
|
@@ -1049,12 +1209,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1049
1209
|
class DbxFirebaseLoginGoogleComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1050
1210
|
loginProvider = 'google';
|
|
1051
1211
|
handleLogin() {
|
|
1052
|
-
return this.dbxFirebaseAuthService.
|
|
1212
|
+
return this.dbxFirebaseAuthService.logInWithPopup(new GoogleAuthProvider());
|
|
1213
|
+
}
|
|
1214
|
+
handleLink() {
|
|
1215
|
+
return this.dbxFirebaseAuthService.linkWithPopup(new GoogleAuthProvider());
|
|
1053
1216
|
}
|
|
1054
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1055
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1217
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginGoogleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1218
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginGoogleComponent, isStandalone: true, selector: "dbx-firebase-login-google", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1056
1219
|
}
|
|
1057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginGoogleComponent, decorators: [{
|
|
1058
1221
|
type: Component,
|
|
1059
1222
|
args: [{
|
|
1060
1223
|
selector: 'dbx-firebase-login-google',
|
|
@@ -1066,17 +1229,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1066
1229
|
}] });
|
|
1067
1230
|
|
|
1068
1231
|
/**
|
|
1069
|
-
* Login button component for Twitter OAuth authentication.
|
|
1232
|
+
* Login button component for X (formerly Twitter) OAuth authentication.
|
|
1070
1233
|
*/
|
|
1071
1234
|
class DbxFirebaseLoginTwitterComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1072
1235
|
loginProvider = 'twitter';
|
|
1073
1236
|
handleLogin() {
|
|
1074
|
-
return this.dbxFirebaseAuthService.
|
|
1237
|
+
return this.dbxFirebaseAuthService.logInWithPopup(new TwitterAuthProvider());
|
|
1238
|
+
}
|
|
1239
|
+
handleLink() {
|
|
1240
|
+
return this.dbxFirebaseAuthService.linkWithPopup(new TwitterAuthProvider());
|
|
1075
1241
|
}
|
|
1076
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1077
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginTwitterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1243
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginTwitterComponent, isStandalone: true, selector: "dbx-firebase-login-twitter", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1078
1244
|
}
|
|
1079
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginTwitterComponent, decorators: [{
|
|
1080
1246
|
type: Component,
|
|
1081
1247
|
args: [{
|
|
1082
1248
|
selector: 'dbx-firebase-login-twitter',
|
|
@@ -1095,10 +1261,10 @@ class DbxFirebaseRegisterEmailComponent extends AbstractConfiguredDbxFirebaseLog
|
|
|
1095
1261
|
handleLogin() {
|
|
1096
1262
|
return DbxFirebaseLoginEmailContentComponent.openEmailLoginContext(this.dbxFirebaseLoginContext, { loginMode: 'register', passwordConfig: this.dbxFirebaseAuthLoginService.getPasswordConfig() });
|
|
1097
1263
|
}
|
|
1098
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1099
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1264
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseRegisterEmailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1265
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseRegisterEmailComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1100
1266
|
}
|
|
1101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseRegisterEmailComponent, decorators: [{
|
|
1102
1268
|
type: Component,
|
|
1103
1269
|
args: [{
|
|
1104
1270
|
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
@@ -1114,9 +1280,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1114
1280
|
* @returns Array of DbxFirebaseAuthLoginProvider
|
|
1115
1281
|
*/
|
|
1116
1282
|
function defaultFirebaseAuthLoginProvidersFactory() {
|
|
1117
|
-
//
|
|
1118
|
-
// https://
|
|
1119
|
-
const
|
|
1283
|
+
// Brand logos from @firebase-oss/ui-core via jsdelivr CDN.
|
|
1284
|
+
// https://github.com/firebase/firebaseui-web/tree/master/packages/core/brands
|
|
1285
|
+
const brandLogoBaseUrl = `https://cdn.jsdelivr.net/npm/@firebase-oss/ui-core/brands`;
|
|
1120
1286
|
// NOTE: Colors are from https://brandcolors.net/
|
|
1121
1287
|
return [
|
|
1122
1288
|
{
|
|
@@ -1124,8 +1290,10 @@ function defaultFirebaseAuthLoginProvidersFactory() {
|
|
|
1124
1290
|
loginMethodType: 'email',
|
|
1125
1291
|
componentClass: DbxFirebaseLoginEmailComponent,
|
|
1126
1292
|
registrationComponentClass: DbxFirebaseRegisterEmailComponent,
|
|
1293
|
+
allowLinking: false,
|
|
1127
1294
|
assets: {
|
|
1128
|
-
|
|
1295
|
+
providerName: 'Email',
|
|
1296
|
+
loginIcon: 'mail',
|
|
1129
1297
|
loginText: 'Continue with Email',
|
|
1130
1298
|
backgroundColor: '#ea4335', // gmail red color
|
|
1131
1299
|
textColor: '#FFF'
|
|
@@ -1136,7 +1304,8 @@ function defaultFirebaseAuthLoginProvidersFactory() {
|
|
|
1136
1304
|
loginMethodType: 'google',
|
|
1137
1305
|
componentClass: DbxFirebaseLoginGoogleComponent,
|
|
1138
1306
|
assets: {
|
|
1139
|
-
|
|
1307
|
+
providerName: 'Google',
|
|
1308
|
+
logoUrl: `${brandLogoBaseUrl}/google/logo.svg`,
|
|
1140
1309
|
loginText: 'Continue with Google',
|
|
1141
1310
|
backgroundColor: '#FFF',
|
|
1142
1311
|
textColor: '#757575'
|
|
@@ -1147,9 +1316,11 @@ function defaultFirebaseAuthLoginProvidersFactory() {
|
|
|
1147
1316
|
loginMethodType: 'facebook',
|
|
1148
1317
|
componentClass: DbxFirebaseLoginFacebookComponent,
|
|
1149
1318
|
assets: {
|
|
1150
|
-
|
|
1319
|
+
providerName: 'Facebook',
|
|
1320
|
+
logoUrl: `${brandLogoBaseUrl}/facebook/logo.svg`,
|
|
1321
|
+
logoFilter: 'brightness(0) invert(1)',
|
|
1151
1322
|
loginText: 'Continue with Facebook',
|
|
1152
|
-
backgroundColor: '#
|
|
1323
|
+
backgroundColor: '#1877F2',
|
|
1153
1324
|
textColor: '#FFF'
|
|
1154
1325
|
}
|
|
1155
1326
|
},
|
|
@@ -1158,10 +1329,11 @@ function defaultFirebaseAuthLoginProvidersFactory() {
|
|
|
1158
1329
|
loginMethodType: 'twitter',
|
|
1159
1330
|
componentClass: DbxFirebaseLoginTwitterComponent,
|
|
1160
1331
|
assets: {
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1332
|
+
providerName: 'X',
|
|
1333
|
+
logoUrl: `${brandLogoBaseUrl}/twitter/logo.svg`,
|
|
1334
|
+
loginText: 'Continue with X',
|
|
1335
|
+
backgroundColor: '#FFF',
|
|
1336
|
+
textColor: '#000'
|
|
1165
1337
|
}
|
|
1166
1338
|
},
|
|
1167
1339
|
{
|
|
@@ -1169,37 +1341,33 @@ function defaultFirebaseAuthLoginProvidersFactory() {
|
|
|
1169
1341
|
loginMethodType: 'github',
|
|
1170
1342
|
componentClass: DbxFirebaseLoginGitHubComponent,
|
|
1171
1343
|
assets: {
|
|
1172
|
-
|
|
1173
|
-
|
|
1344
|
+
providerName: 'GitHub',
|
|
1345
|
+
logoUrl: `${brandLogoBaseUrl}/github/logo.svg`,
|
|
1346
|
+
logoFilter: 'brightness(0) invert(1)',
|
|
1347
|
+
loginText: 'Continue with GitHub',
|
|
1174
1348
|
backgroundColor: '#333',
|
|
1175
1349
|
textColor: '#FFF'
|
|
1176
1350
|
}
|
|
1177
1351
|
},
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
componentClass: DbxFirebaseLoginGitHubComponent,
|
|
1192
|
-
assets: {
|
|
1193
|
-
logoUrl: `${baseFirebaseJSUrl}/microsoft.svg`,
|
|
1194
|
-
loginText: 'Continue with Microsoft',
|
|
1195
|
-
backgroundColor: '#ea3e23',
|
|
1196
|
-
textColor: '#FFF'
|
|
1197
|
-
}
|
|
1198
|
-
},*/ {
|
|
1352
|
+
{
|
|
1353
|
+
category: OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY,
|
|
1354
|
+
loginMethodType: 'apple',
|
|
1355
|
+
componentClass: DbxFirebaseLoginAppleComponent,
|
|
1356
|
+
assets: {
|
|
1357
|
+
providerName: 'Apple',
|
|
1358
|
+
logoUrl: `${brandLogoBaseUrl}/apple/logo.svg`,
|
|
1359
|
+
loginText: 'Continue with Apple',
|
|
1360
|
+
backgroundColor: '#FFF',
|
|
1361
|
+
textColor: '#000'
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1199
1365
|
category: DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY,
|
|
1200
1366
|
loginMethodType: 'anonymous',
|
|
1201
1367
|
componentClass: DbxFirebaseLoginAnonymousComponent,
|
|
1368
|
+
allowLinking: false,
|
|
1202
1369
|
assets: {
|
|
1370
|
+
providerName: 'Guest',
|
|
1203
1371
|
loginIcon: 'account_circle',
|
|
1204
1372
|
loginText: 'Continue as Guest',
|
|
1205
1373
|
backgroundColor: '#000',
|
|
@@ -1257,28 +1425,6 @@ function provideDbxFirebaseLogin(config) {
|
|
|
1257
1425
|
return makeEnvironmentProviders(providers);
|
|
1258
1426
|
}
|
|
1259
1427
|
|
|
1260
|
-
/**
|
|
1261
|
-
* Login button component for Apple OAuth authentication.
|
|
1262
|
-
*/
|
|
1263
|
-
class DbxFirebaseLoginAppleComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1264
|
-
loginProvider = 'apple';
|
|
1265
|
-
handleLogin() {
|
|
1266
|
-
return this.dbxFirebaseAuthService.logInWithApple();
|
|
1267
|
-
}
|
|
1268
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginAppleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1269
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginAppleComponent, isStandalone: true, selector: "dbx-firebase-login-apple", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1270
|
-
}
|
|
1271
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginAppleComponent, decorators: [{
|
|
1272
|
-
type: Component,
|
|
1273
|
-
args: [{
|
|
1274
|
-
selector: 'dbx-firebase-login-apple',
|
|
1275
|
-
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
1276
|
-
template: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.template,
|
|
1277
|
-
changeDetection: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.changeDetection,
|
|
1278
|
-
standalone: true
|
|
1279
|
-
}]
|
|
1280
|
-
}] });
|
|
1281
|
-
|
|
1282
1428
|
/**
|
|
1283
1429
|
* Renders a list of login provider buttons, filtered by enabled types and categories.
|
|
1284
1430
|
*
|
|
@@ -1286,16 +1432,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1286
1432
|
*/
|
|
1287
1433
|
class DbxFirebaseLoginListComponent {
|
|
1288
1434
|
dbxFirebaseAuthLoginService = inject(DbxFirebaseAuthLoginService);
|
|
1289
|
-
loginMode = input('login', ...(ngDevMode ? [{ debugName: "loginMode" }] : []));
|
|
1290
|
-
providerTypes = input(...(ngDevMode ? [undefined, { debugName: "providerTypes" }] : []));
|
|
1291
|
-
omitProviderTypes = input(...(ngDevMode ? [undefined, { debugName: "omitProviderTypes" }] : []));
|
|
1292
|
-
providerCategories = input(...(ngDevMode ? [undefined, { debugName: "providerCategories" }] : []));
|
|
1435
|
+
loginMode = input('login', ...(ngDevMode ? [{ debugName: "loginMode" }] : /* istanbul ignore next */ []));
|
|
1436
|
+
providerTypes = input(...(ngDevMode ? [undefined, { debugName: "providerTypes" }] : /* istanbul ignore next */ []));
|
|
1437
|
+
omitProviderTypes = input(...(ngDevMode ? [undefined, { debugName: "omitProviderTypes" }] : /* istanbul ignore next */ []));
|
|
1438
|
+
providerCategories = input(...(ngDevMode ? [undefined, { debugName: "providerCategories" }] : /* istanbul ignore next */ []));
|
|
1293
1439
|
providerTypesSignal = computed(() => {
|
|
1294
1440
|
const providerTypes = this.providerTypes();
|
|
1295
1441
|
const omitProviderTypes = this.omitProviderTypes();
|
|
1296
1442
|
const baseTypes = providerTypes ? asArray(providerTypes) : this.dbxFirebaseAuthLoginService.getEnabledTypes();
|
|
1297
1443
|
return omitProviderTypes ? excludeValuesFromArray(baseTypes, asArray(omitProviderTypes)) : baseTypes;
|
|
1298
|
-
}, ...(ngDevMode ? [{ debugName: "providerTypesSignal" }] : []));
|
|
1444
|
+
}, ...(ngDevMode ? [{ debugName: "providerTypesSignal" }] : /* istanbul ignore next */ []));
|
|
1299
1445
|
providersSignal = computed(() => {
|
|
1300
1446
|
const providerCategories = asArray(this.providerCategories());
|
|
1301
1447
|
let providers = this.dbxFirebaseAuthLoginService.getLoginProviders(this.providerTypesSignal());
|
|
@@ -1304,21 +1450,28 @@ class DbxFirebaseLoginListComponent {
|
|
|
1304
1450
|
providers = providers.filter((x) => containsStringAnyCase(categories, x.category ?? ''));
|
|
1305
1451
|
}
|
|
1306
1452
|
return providers;
|
|
1307
|
-
}, ...(ngDevMode ? [{ debugName: "providersSignal" }] : []));
|
|
1453
|
+
}, ...(ngDevMode ? [{ debugName: "providersSignal" }] : /* istanbul ignore next */ []));
|
|
1308
1454
|
providersInjectionConfigsSignal = computed(() => {
|
|
1309
1455
|
let providers = this.providersSignal();
|
|
1456
|
+
const loginMode = this.loginMode();
|
|
1310
1457
|
let mapFn;
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1458
|
+
switch (loginMode) {
|
|
1459
|
+
case 'register':
|
|
1460
|
+
providers = providers.filter((x) => x.registrationComponentClass !== false);
|
|
1461
|
+
mapFn = (x) => ({ componentClass: (x.registrationComponentClass ?? x.componentClass), loginMethodType: x.loginMethodType, data: { loginMode } });
|
|
1462
|
+
break;
|
|
1463
|
+
case 'link':
|
|
1464
|
+
providers = providers.filter((x) => x.allowLinking !== false);
|
|
1465
|
+
mapFn = (x) => ({ componentClass: x.componentClass, loginMethodType: x.loginMethodType, data: { loginMode } });
|
|
1466
|
+
break;
|
|
1467
|
+
default:
|
|
1468
|
+
mapFn = (x) => ({ componentClass: x.componentClass, loginMethodType: x.loginMethodType, data: { loginMode } });
|
|
1469
|
+
break;
|
|
1317
1470
|
}
|
|
1318
1471
|
return providers.map(mapFn);
|
|
1319
|
-
}, ...(ngDevMode ? [{ debugName: "providersInjectionConfigsSignal" }] : []));
|
|
1320
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1321
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
1472
|
+
}, ...(ngDevMode ? [{ debugName: "providersInjectionConfigsSignal" }] : /* istanbul ignore next */ []));
|
|
1473
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1474
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseLoginListComponent, isStandalone: true, selector: "dbx-firebase-login-list", inputs: { loginMode: { classPropertyName: "loginMode", publicName: "loginMode", isSignal: true, isRequired: false, transformFunction: null }, providerTypes: { classPropertyName: "providerTypes", publicName: "providerTypes", isSignal: true, isRequired: false, transformFunction: null }, omitProviderTypes: { classPropertyName: "omitProviderTypes", publicName: "omitProviderTypes", isSignal: true, isRequired: false, transformFunction: null }, providerCategories: { classPropertyName: "providerCategories", publicName: "providerCategories", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "dbx-firebase-login-list" }, ngImport: i0, template: `
|
|
1322
1475
|
@for (config of providersInjectionConfigsSignal(); track config.loginMethodType) {
|
|
1323
1476
|
<div class="dbx-firebase-login-item">
|
|
1324
1477
|
<dbx-injection [config]="config"></dbx-injection>
|
|
@@ -1326,7 +1479,7 @@ class DbxFirebaseLoginListComponent {
|
|
|
1326
1479
|
}
|
|
1327
1480
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
1328
1481
|
}
|
|
1329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginListComponent, decorators: [{
|
|
1330
1483
|
type: Component,
|
|
1331
1484
|
args: [{
|
|
1332
1485
|
selector: 'dbx-firebase-login-list',
|
|
@@ -1351,15 +1504,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1351
1504
|
* Apply to a host element to establish a login context scope for child login components.
|
|
1352
1505
|
*/
|
|
1353
1506
|
class DbxFirebaseLoginContextDirective extends AbstractForwardDbxInjectionContextDirective {
|
|
1354
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1355
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
1507
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginContextDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1508
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginContextDirective, isStandalone: true, selector: "[dbxFirebaseLoginContext]", providers: [
|
|
1356
1509
|
{
|
|
1357
1510
|
provide: DbxFirebaseLoginContext,
|
|
1358
1511
|
useExisting: DbxFirebaseLoginContextDirective
|
|
1359
1512
|
}
|
|
1360
1513
|
], usesInheritance: true, ngImport: i0 });
|
|
1361
1514
|
}
|
|
1362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginContextDirective, decorators: [{
|
|
1363
1516
|
type: Directive,
|
|
1364
1517
|
args: [{
|
|
1365
1518
|
selector: '[dbxFirebaseLoginContext]',
|
|
@@ -1377,18 +1530,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1377
1530
|
* Pre-configured login component that displays all configured login types.
|
|
1378
1531
|
*/
|
|
1379
1532
|
class DbxFirebaseLoginComponent {
|
|
1380
|
-
loginMode = input('login', ...(ngDevMode ? [{ debugName: "loginMode" }] : []));
|
|
1381
|
-
providerTypes = input(...(ngDevMode ? [undefined, { debugName: "providerTypes" }] : []));
|
|
1382
|
-
omitProviderTypes = input(...(ngDevMode ? [undefined, { debugName: "omitProviderTypes" }] : []));
|
|
1383
|
-
providerCategories = input(...(ngDevMode ? [undefined, { debugName: "providerCategories" }] : []));
|
|
1384
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1385
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
1533
|
+
loginMode = input('login', ...(ngDevMode ? [{ debugName: "loginMode" }] : /* istanbul ignore next */ []));
|
|
1534
|
+
providerTypes = input(...(ngDevMode ? [undefined, { debugName: "providerTypes" }] : /* istanbul ignore next */ []));
|
|
1535
|
+
omitProviderTypes = input(...(ngDevMode ? [undefined, { debugName: "omitProviderTypes" }] : /* istanbul ignore next */ []));
|
|
1536
|
+
providerCategories = input(...(ngDevMode ? [undefined, { debugName: "providerCategories" }] : /* istanbul ignore next */ []));
|
|
1537
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1538
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseLoginComponent, isStandalone: true, selector: "dbx-firebase-login", inputs: { loginMode: { classPropertyName: "loginMode", publicName: "loginMode", isSignal: true, isRequired: false, transformFunction: null }, providerTypes: { classPropertyName: "providerTypes", publicName: "providerTypes", isSignal: true, isRequired: false, transformFunction: null }, omitProviderTypes: { classPropertyName: "omitProviderTypes", publicName: "omitProviderTypes", isSignal: true, isRequired: false, transformFunction: null }, providerCategories: { classPropertyName: "providerCategories", publicName: "providerCategories", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "{ \"dbx-firebase-register\": loginMode() === \"register\", \"dbx-firebase-link\": loginMode() === \"link\" }" }, classAttribute: "d-block dbx-firebase-login" }, ngImport: i0, template: `
|
|
1386
1539
|
<ng-container *dbxInjectionContext dbxFirebaseLoginContext>
|
|
1387
1540
|
<dbx-firebase-login-list [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()" [loginMode]="loginMode()"></dbx-firebase-login-list>
|
|
1388
1541
|
</ng-container>
|
|
1389
1542
|
`, isInline: true, dependencies: [{ kind: "directive", type: DbxInjectionContextDirective, selector: "[dbxInjectionContext]", inputs: ["config"] }, { kind: "directive", type: DbxFirebaseLoginContextDirective, selector: "[dbxFirebaseLoginContext]" }, { kind: "component", type: DbxFirebaseLoginListComponent, selector: "dbx-firebase-login-list", inputs: ["loginMode", "providerTypes", "omitProviderTypes", "providerCategories"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1390
1543
|
}
|
|
1391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1544
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginComponent, decorators: [{
|
|
1392
1545
|
type: Component,
|
|
1393
1546
|
args: [{
|
|
1394
1547
|
selector: 'dbx-firebase-login',
|
|
@@ -1401,7 +1554,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1401
1554
|
`,
|
|
1402
1555
|
host: {
|
|
1403
1556
|
class: 'd-block dbx-firebase-login',
|
|
1404
|
-
'[class]': '{ "dbx-firebase-register": loginMode() === "register" }'
|
|
1557
|
+
'[class]': '{ "dbx-firebase-register": loginMode() === "register", "dbx-firebase-link": loginMode() === "link" }'
|
|
1405
1558
|
},
|
|
1406
1559
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1407
1560
|
}]
|
|
@@ -1415,12 +1568,12 @@ class DbxFirebaseLoginContextBackButtonComponent {
|
|
|
1415
1568
|
anchor = {
|
|
1416
1569
|
onClick: () => this.cancelLogin.emit()
|
|
1417
1570
|
};
|
|
1418
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1419
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1571
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginContextBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1572
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginContextBackButtonComponent, isStandalone: true, selector: "dbx-firebase-login-context-back-button", outputs: { cancelLogin: "cancelLogin" }, ngImport: i0, template: `
|
|
1420
1573
|
<dbx-link [anchor]="anchor">Choose other login method.</dbx-link>
|
|
1421
1574
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: DbxRouterAnchorModule }, { kind: "component", type: i1$1.DbxLinkComponent, selector: "dbx-link", inputs: ["ref", "href", "anchor"] }] });
|
|
1422
1575
|
}
|
|
1423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginContextBackButtonComponent, decorators: [{
|
|
1424
1577
|
type: Component,
|
|
1425
1578
|
args: [{
|
|
1426
1579
|
selector: 'dbx-firebase-login-context-back-button',
|
|
@@ -1438,12 +1591,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1438
1591
|
class DbxFirebaseLoginMicrosoftComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1439
1592
|
loginProvider = 'microsoft';
|
|
1440
1593
|
handleLogin() {
|
|
1441
|
-
return this.dbxFirebaseAuthService.
|
|
1594
|
+
return this.dbxFirebaseAuthService.logInWithPopup(new OAuthProvider('microsoft.com'));
|
|
1595
|
+
}
|
|
1596
|
+
handleLink() {
|
|
1597
|
+
return this.dbxFirebaseAuthService.linkWithPopup(new OAuthProvider('microsoft.com'));
|
|
1442
1598
|
}
|
|
1443
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1444
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1599
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginMicrosoftComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1600
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginMicrosoftComponent, isStandalone: true, selector: "dbx-firebase-login-microsoft", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1445
1601
|
}
|
|
1446
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginMicrosoftComponent, decorators: [{
|
|
1447
1603
|
type: Component,
|
|
1448
1604
|
args: [{
|
|
1449
1605
|
selector: 'dbx-firebase-login-microsoft',
|
|
@@ -1462,12 +1618,12 @@ class DbxFirebaseLoginTermsComponent {
|
|
|
1462
1618
|
config = {
|
|
1463
1619
|
componentClass: this.dbxFirebaseAuthLoginService.loginTermsComponentClass
|
|
1464
1620
|
};
|
|
1465
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1466
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
1621
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginTermsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1622
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseLoginTermsComponent, isStandalone: true, selector: "dbx-firebase-login-terms", host: { classAttribute: "dbx-firebase-login-terms d-block" }, ngImport: i0, template: `
|
|
1467
1623
|
<dbx-injection [config]="config"></dbx-injection>
|
|
1468
1624
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
1469
1625
|
}
|
|
1470
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1626
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseLoginTermsComponent, decorators: [{
|
|
1471
1627
|
type: Component,
|
|
1472
1628
|
args: [{
|
|
1473
1629
|
selector: 'dbx-firebase-login-terms',
|
|
@@ -1482,19 +1638,183 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
1482
1638
|
}]
|
|
1483
1639
|
}] });
|
|
1484
1640
|
|
|
1641
|
+
/**
|
|
1642
|
+
* Map of Firebase provider IDs to known login method types.
|
|
1643
|
+
*
|
|
1644
|
+
* @example
|
|
1645
|
+
* ```ts
|
|
1646
|
+
* FIREBASE_PROVIDER_ID_TO_LOGIN_METHOD_TYPE_MAP['google.com']; // 'google'
|
|
1647
|
+
* ```
|
|
1648
|
+
*/
|
|
1649
|
+
const FIREBASE_PROVIDER_ID_TO_LOGIN_METHOD_TYPE_MAP = {
|
|
1650
|
+
'google.com': 'google',
|
|
1651
|
+
'facebook.com': 'facebook',
|
|
1652
|
+
'github.com': 'github',
|
|
1653
|
+
'twitter.com': 'twitter',
|
|
1654
|
+
'apple.com': 'apple',
|
|
1655
|
+
'microsoft.com': 'microsoft',
|
|
1656
|
+
phone: 'phone',
|
|
1657
|
+
password: 'email'
|
|
1658
|
+
};
|
|
1659
|
+
/**
|
|
1660
|
+
* Map of known login method types to Firebase provider IDs.
|
|
1661
|
+
*
|
|
1662
|
+
* @example
|
|
1663
|
+
* ```ts
|
|
1664
|
+
* LOGIN_METHOD_TYPE_TO_FIREBASE_PROVIDER_ID_MAP['google']; // 'google.com'
|
|
1665
|
+
* ```
|
|
1666
|
+
*/
|
|
1667
|
+
const LOGIN_METHOD_TYPE_TO_FIREBASE_PROVIDER_ID_MAP = {
|
|
1668
|
+
google: 'google.com',
|
|
1669
|
+
facebook: 'facebook.com',
|
|
1670
|
+
github: 'github.com',
|
|
1671
|
+
twitter: 'twitter.com',
|
|
1672
|
+
apple: 'apple.com',
|
|
1673
|
+
microsoft: 'microsoft.com',
|
|
1674
|
+
phone: 'phone',
|
|
1675
|
+
email: 'password'
|
|
1676
|
+
};
|
|
1677
|
+
/**
|
|
1678
|
+
* Converts a Firebase provider ID (e.g., 'google.com') to its corresponding login method type (e.g., 'google').
|
|
1679
|
+
*
|
|
1680
|
+
* @param providerId - The Firebase provider ID.
|
|
1681
|
+
* @returns The matching login method type, or undefined if unknown.
|
|
1682
|
+
*
|
|
1683
|
+
* @example
|
|
1684
|
+
* ```ts
|
|
1685
|
+
* firebaseProviderIdToLoginMethodType('google.com'); // 'google'
|
|
1686
|
+
* firebaseProviderIdToLoginMethodType('unknown.com'); // undefined
|
|
1687
|
+
* ```
|
|
1688
|
+
*/
|
|
1689
|
+
function firebaseProviderIdToLoginMethodType(providerId) {
|
|
1690
|
+
return FIREBASE_PROVIDER_ID_TO_LOGIN_METHOD_TYPE_MAP[providerId];
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* Converts a login method type (e.g., 'google') to its corresponding Firebase provider ID (e.g., 'google.com').
|
|
1694
|
+
*
|
|
1695
|
+
* @param type - The login method type.
|
|
1696
|
+
* @returns The matching Firebase provider ID, or undefined if unknown.
|
|
1697
|
+
*
|
|
1698
|
+
* @example
|
|
1699
|
+
* ```ts
|
|
1700
|
+
* loginMethodTypeToFirebaseProviderId('google'); // 'google.com'
|
|
1701
|
+
* loginMethodTypeToFirebaseProviderId('unknown'); // undefined
|
|
1702
|
+
* ```
|
|
1703
|
+
*/
|
|
1704
|
+
function loginMethodTypeToFirebaseProviderId(type) {
|
|
1705
|
+
return LOGIN_METHOD_TYPE_TO_FIREBASE_PROVIDER_ID_MAP[type];
|
|
1706
|
+
}
|
|
1707
|
+
|
|
1708
|
+
/**
|
|
1709
|
+
* Component for managing linked authentication providers on a user account.
|
|
1710
|
+
*
|
|
1711
|
+
* Displays two sections:
|
|
1712
|
+
* - **Connected Providers**: Shows currently linked providers with disconnect buttons.
|
|
1713
|
+
* - **Connect Provider**: Shows available OAuth providers that can be linked.
|
|
1714
|
+
*
|
|
1715
|
+
* @example
|
|
1716
|
+
* ```html
|
|
1717
|
+
* <dbx-firebase-manage-auth-providers></dbx-firebase-manage-auth-providers>
|
|
1718
|
+
* ```
|
|
1719
|
+
*/
|
|
1720
|
+
class DbxFirebaseManageAuthProvidersComponent {
|
|
1721
|
+
dbxFirebaseAuthService = inject(DbxFirebaseAuthService);
|
|
1722
|
+
dbxFirebaseAuthLoginService = inject(DbxFirebaseAuthLoginService);
|
|
1723
|
+
_linkedProviderIds = toSignal(this.dbxFirebaseAuthService.currentLinkedProviderIds$, { initialValue: [] });
|
|
1724
|
+
linkedProvidersSignal = computed(() => {
|
|
1725
|
+
const providerIds = this._linkedProviderIds();
|
|
1726
|
+
return providerIds.map((providerId) => {
|
|
1727
|
+
const loginMethodType = firebaseProviderIdToLoginMethodType(providerId);
|
|
1728
|
+
const assets = loginMethodType ? this.dbxFirebaseAuthLoginService.getProviderAssets(loginMethodType) : undefined;
|
|
1729
|
+
const providerName = assets?.providerName ?? providerId;
|
|
1730
|
+
const unlinkText = assets?.unlinkText ?? `Disconnect ${providerName}`;
|
|
1731
|
+
return { providerId, loginMethodType, providerName, unlinkText, assets };
|
|
1732
|
+
});
|
|
1733
|
+
}, ...(ngDevMode ? [{ debugName: "linkedProvidersSignal" }] : /* istanbul ignore next */ []));
|
|
1734
|
+
linkedMethodTypesSignal = computed(() => {
|
|
1735
|
+
return filterMaybeArrayValues(this.linkedProvidersSignal().map((p) => p.loginMethodType));
|
|
1736
|
+
}, ...(ngDevMode ? [{ debugName: "linkedMethodTypesSignal" }] : /* istanbul ignore next */ []));
|
|
1737
|
+
showLinkSectionSignal = computed(() => {
|
|
1738
|
+
const linkedTypes = new Set(this.linkedMethodTypesSignal());
|
|
1739
|
+
const oauthProviders = this.dbxFirebaseAuthLoginService.getLinkProviders(this.dbxFirebaseAuthLoginService.getEnabledTypes());
|
|
1740
|
+
return oauthProviders.some((p) => p.category === OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY && !linkedTypes.has(p.loginMethodType));
|
|
1741
|
+
}, ...(ngDevMode ? [{ debugName: "showLinkSectionSignal" }] : /* istanbul ignore next */ []));
|
|
1742
|
+
/**
|
|
1743
|
+
* Creates a work handler for unlinking a specific provider.
|
|
1744
|
+
*
|
|
1745
|
+
* @param providerId - The Firebase provider ID to unlink (e.g., 'google.com').
|
|
1746
|
+
* @returns A {@link WorkUsingContext} handler that unlinking the provider on execution.
|
|
1747
|
+
*/
|
|
1748
|
+
makeUnlinkHandler(providerId) {
|
|
1749
|
+
return (_, context) => {
|
|
1750
|
+
const promise = this.dbxFirebaseAuthService.unlinkProvider(providerId);
|
|
1751
|
+
context.startWorkingWithPromise(promise);
|
|
1752
|
+
};
|
|
1753
|
+
}
|
|
1754
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseManageAuthProvidersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1755
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseManageAuthProvidersComponent, isStandalone: true, selector: "dbx-firebase-manage-auth-providers", host: { classAttribute: "d-block dbx-firebase-manage-auth-providers" }, ngImport: i0, template: `
|
|
1756
|
+
@if (linkedProvidersSignal().length) {
|
|
1757
|
+
<dbx-section header="Connected Providers">
|
|
1758
|
+
@for (provider of linkedProvidersSignal(); track provider.providerId) {
|
|
1759
|
+
<div class="dbx-firebase-manage-provider-item">
|
|
1760
|
+
<ng-container dbxAction [dbxActionHandler]="makeUnlinkHandler(provider.providerId)" dbxActionValue>
|
|
1761
|
+
<dbx-button dbxActionButton [text]="provider.unlinkText" icon="link_off" color="warn"></dbx-button>
|
|
1762
|
+
</ng-container>
|
|
1763
|
+
</div>
|
|
1764
|
+
}
|
|
1765
|
+
</dbx-section>
|
|
1766
|
+
}
|
|
1767
|
+
@if (showLinkSectionSignal()) {
|
|
1768
|
+
<dbx-section header="Connect Provider">
|
|
1769
|
+
<dbx-firebase-login loginMode="link" [omitProviderTypes]="linkedMethodTypesSignal()" providerCategories="oauth"></dbx-firebase-login>
|
|
1770
|
+
</dbx-section>
|
|
1771
|
+
}
|
|
1772
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginComponent, selector: "dbx-firebase-login", inputs: ["loginMode", "providerTypes", "omitProviderTypes", "providerCategories"] }, { kind: "component", type: DbxSectionComponent, selector: "dbx-section", inputs: ["elevate"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "ngmodule", type: DbxButtonModule }, { kind: "component", type: i1$1.DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "allowClickPropagation", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1773
|
+
}
|
|
1774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseManageAuthProvidersComponent, decorators: [{
|
|
1775
|
+
type: Component,
|
|
1776
|
+
args: [{
|
|
1777
|
+
selector: 'dbx-firebase-manage-auth-providers',
|
|
1778
|
+
standalone: true,
|
|
1779
|
+
imports: [DbxFirebaseLoginComponent, DbxSectionComponent, MatIconModule, DbxActionModule, DbxButtonModule],
|
|
1780
|
+
template: `
|
|
1781
|
+
@if (linkedProvidersSignal().length) {
|
|
1782
|
+
<dbx-section header="Connected Providers">
|
|
1783
|
+
@for (provider of linkedProvidersSignal(); track provider.providerId) {
|
|
1784
|
+
<div class="dbx-firebase-manage-provider-item">
|
|
1785
|
+
<ng-container dbxAction [dbxActionHandler]="makeUnlinkHandler(provider.providerId)" dbxActionValue>
|
|
1786
|
+
<dbx-button dbxActionButton [text]="provider.unlinkText" icon="link_off" color="warn"></dbx-button>
|
|
1787
|
+
</ng-container>
|
|
1788
|
+
</div>
|
|
1789
|
+
}
|
|
1790
|
+
</dbx-section>
|
|
1791
|
+
}
|
|
1792
|
+
@if (showLinkSectionSignal()) {
|
|
1793
|
+
<dbx-section header="Connect Provider">
|
|
1794
|
+
<dbx-firebase-login loginMode="link" [omitProviderTypes]="linkedMethodTypesSignal()" providerCategories="oauth"></dbx-firebase-login>
|
|
1795
|
+
</dbx-section>
|
|
1796
|
+
}
|
|
1797
|
+
`,
|
|
1798
|
+
host: {
|
|
1799
|
+
class: 'd-block dbx-firebase-manage-auth-providers'
|
|
1800
|
+
},
|
|
1801
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1802
|
+
}]
|
|
1803
|
+
}] });
|
|
1804
|
+
|
|
1485
1805
|
/**
|
|
1486
1806
|
* Pre-configured register component that displays all configured login types and their registration components.
|
|
1487
1807
|
*/
|
|
1488
1808
|
class DbxFirebaseRegisterComponent {
|
|
1489
|
-
providerTypes = input(...(ngDevMode ? [undefined, { debugName: "providerTypes" }] : []));
|
|
1490
|
-
omitProviderTypes = input(...(ngDevMode ? [undefined, { debugName: "omitProviderTypes" }] : []));
|
|
1491
|
-
providerCategories = input(...(ngDevMode ? [undefined, { debugName: "providerCategories" }] : []));
|
|
1492
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1493
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
1809
|
+
providerTypes = input(...(ngDevMode ? [undefined, { debugName: "providerTypes" }] : /* istanbul ignore next */ []));
|
|
1810
|
+
omitProviderTypes = input(...(ngDevMode ? [undefined, { debugName: "omitProviderTypes" }] : /* istanbul ignore next */ []));
|
|
1811
|
+
providerCategories = input(...(ngDevMode ? [undefined, { debugName: "providerCategories" }] : /* istanbul ignore next */ []));
|
|
1812
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseRegisterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1813
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseRegisterComponent, isStandalone: true, selector: "dbx-firebase-register", inputs: { providerTypes: { classPropertyName: "providerTypes", publicName: "providerTypes", isSignal: true, isRequired: false, transformFunction: null }, omitProviderTypes: { classPropertyName: "omitProviderTypes", publicName: "omitProviderTypes", isSignal: true, isRequired: false, transformFunction: null }, providerCategories: { classPropertyName: "providerCategories", publicName: "providerCategories", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
1494
1814
|
<dbx-firebase-login loginMode="register" [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()"></dbx-firebase-login>
|
|
1495
1815
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginComponent, selector: "dbx-firebase-login", inputs: ["loginMode", "providerTypes", "omitProviderTypes", "providerCategories"] }] });
|
|
1496
1816
|
}
|
|
1497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1817
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseRegisterComponent, decorators: [{
|
|
1498
1818
|
type: Component,
|
|
1499
1819
|
args: [{
|
|
1500
1820
|
selector: 'dbx-firebase-register',
|
|
@@ -1612,10 +1932,10 @@ class DbxFirebaseDevelopmentWidgetService {
|
|
|
1612
1932
|
getEntries() {
|
|
1613
1933
|
return iterableToArray(this._entries.values());
|
|
1614
1934
|
}
|
|
1615
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1616
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
1935
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentWidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1936
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentWidgetService });
|
|
1617
1937
|
}
|
|
1618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
1938
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentWidgetService, decorators: [{
|
|
1619
1939
|
type: Injectable
|
|
1620
1940
|
}], ctorParameters: () => [] });
|
|
1621
1941
|
|
|
@@ -1683,10 +2003,10 @@ class DbxFirebaseDevelopmentSchedulerService {
|
|
|
1683
2003
|
setTimer(timerInterval) {
|
|
1684
2004
|
this._timerInterval.next(timerInterval);
|
|
1685
2005
|
}
|
|
1686
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1687
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
2006
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2007
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService });
|
|
1688
2008
|
}
|
|
1689
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService, decorators: [{
|
|
1690
2010
|
type: Injectable
|
|
1691
2011
|
}] });
|
|
1692
2012
|
|
|
@@ -1709,10 +2029,10 @@ class DbxFirebaseDevelopmentPopupContentFormComponent extends AbstractConfigAsyn
|
|
|
1709
2029
|
})
|
|
1710
2030
|
];
|
|
1711
2031
|
}));
|
|
1712
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1713
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2032
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2033
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseDevelopmentPopupContentFormComponent, isStandalone: true, selector: "dbx-firebase-development-popup-content-form", providers: dbxFormlyFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-formly></dbx-formly>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxFormlyFormComponentImportsModule }, { kind: "component", type: i1$2.DbxFormlyComponent, selector: "dbx-formly", exportAs: ["formly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1714
2034
|
}
|
|
1715
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2035
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentFormComponent, decorators: [{
|
|
1716
2036
|
type: Component,
|
|
1717
2037
|
args: [{
|
|
1718
2038
|
selector: 'dbx-firebase-development-popup-content-form',
|
|
@@ -1731,10 +2051,10 @@ class DbxFirebaseDevelopmentSchedulerListComponent extends AbstractDbxSelectionL
|
|
|
1731
2051
|
defaultSelectionMode: 'view'
|
|
1732
2052
|
});
|
|
1733
2053
|
}
|
|
1734
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1735
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2054
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2055
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", 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]=\"disabled()\" [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 });
|
|
1736
2056
|
}
|
|
1737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListComponent, decorators: [{
|
|
1738
2058
|
type: Component,
|
|
1739
2059
|
args: [{
|
|
1740
2060
|
selector: 'dbx-firebase-development-scheduler-list',
|
|
@@ -1750,10 +2070,10 @@ class DbxFirebaseDevelopmentSchedulerListViewComponent extends AbstractDbxSelect
|
|
|
1750
2070
|
componentClass: DbxFirebaseDevelopmentSchedulerListViewItemComponent,
|
|
1751
2071
|
mapValuesToItemValues: (x) => of(x.map((y) => ({ ...y, icon: y.icon, itemValue: y })))
|
|
1752
2072
|
};
|
|
1753
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1754
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2073
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2074
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseDevelopmentSchedulerListViewComponent, isStandalone: true, selector: "dbx-firebase-development-scheduler-list-view", providers: provideDbxListView(DbxFirebaseDevelopmentSchedulerListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1$1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1755
2075
|
}
|
|
1756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListViewComponent, decorators: [{
|
|
1757
2077
|
type: Component,
|
|
1758
2078
|
args: [{
|
|
1759
2079
|
selector: 'dbx-firebase-development-scheduler-list-view',
|
|
@@ -1772,15 +2092,15 @@ class DbxFirebaseDevelopmentSchedulerListViewItemComponent extends AbstractDbxVa
|
|
|
1772
2092
|
handleRun = (value, context) => {
|
|
1773
2093
|
context.startWorkingWithObservable(from(this.dbxFirebaseDevelopmentSchedulerService.runScheduledFunction(this.name)));
|
|
1774
2094
|
};
|
|
1775
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1776
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2095
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2096
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseDevelopmentSchedulerListViewItemComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
1777
2097
|
<div dbxAction dbxActionValue useFastTriggerPreset [dbxActionHandler]="handleRun">
|
|
1778
2098
|
<dbx-button dbxActionButton [text]="'Run ' + name"></dbx-button>
|
|
1779
2099
|
<div *dbxActionHasSuccess="3000" class="dbx-success">Success</div>
|
|
1780
2100
|
</div>
|
|
1781
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionHasSuccessDirective, selector: "[dbxActionHasSuccess]", inputs: ["dbxActionHasSuccess"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2101
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionHasSuccessDirective, selector: "[dbxActionHasSuccess]", inputs: ["dbxActionHasSuccess"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "allowClickPropagation", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1782
2102
|
}
|
|
1783
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2103
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListViewItemComponent, decorators: [{
|
|
1784
2104
|
type: Component,
|
|
1785
2105
|
args: [{
|
|
1786
2106
|
template: `
|
|
@@ -1814,14 +2134,14 @@ class DbxFirebaseDevelopmentSchedulerWidgetComponent {
|
|
|
1814
2134
|
dbxFirebaseDevelopmentSchedulerService = inject(DbxFirebaseDevelopmentSchedulerService);
|
|
1815
2135
|
entries$ = this.dbxFirebaseDevelopmentSchedulerService.schedulerList$;
|
|
1816
2136
|
state$ = loadingStateFromObs(this.entries$);
|
|
1817
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1818
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
2137
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2138
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseDevelopmentSchedulerWidgetComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
1819
2139
|
<div>
|
|
1820
2140
|
<dbx-firebase-development-scheduler-list [state]="state$"></dbx-firebase-development-scheduler-list>
|
|
1821
2141
|
</div>
|
|
1822
2142
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseDevelopmentSchedulerListComponent, selector: "dbx-firebase-development-scheduler-list" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1823
2143
|
}
|
|
1824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerWidgetComponent, decorators: [{
|
|
1825
2145
|
type: Component,
|
|
1826
2146
|
args: [{
|
|
1827
2147
|
template: `
|
|
@@ -1868,10 +2188,10 @@ class DbxFirebaseEmulatorService {
|
|
|
1868
2188
|
}
|
|
1869
2189
|
: undefined;
|
|
1870
2190
|
}
|
|
1871
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1872
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
2191
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseEmulatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2192
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseEmulatorService });
|
|
1873
2193
|
}
|
|
1874
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseEmulatorService, decorators: [{
|
|
1875
2195
|
type: Injectable
|
|
1876
2196
|
}] });
|
|
1877
2197
|
|
|
@@ -1900,7 +2220,7 @@ class DbxFirebaseDevelopmentPopupContentComponent {
|
|
|
1900
2220
|
schedulerIntervalSignal = toSignal(this.schedulerInterval$);
|
|
1901
2221
|
schedulerErrorSignal = toSignal(this.schedulerError$);
|
|
1902
2222
|
activeEntrySignal = toSignal(this.activeEntry$);
|
|
1903
|
-
rightTitleSignal = computed(() => this.activeEntrySignal()?.label, ...(ngDevMode ? [{ debugName: "rightTitleSignal" }] : []));
|
|
2223
|
+
rightTitleSignal = computed(() => this.activeEntrySignal()?.label, ...(ngDevMode ? [{ debugName: "rightTitleSignal" }] : /* istanbul ignore next */ []));
|
|
1904
2224
|
widgetConfigSignal = computed(() => {
|
|
1905
2225
|
const widget = this.activeEntrySignal()?.widget;
|
|
1906
2226
|
let widgetConfig = undefined;
|
|
@@ -1908,7 +2228,7 @@ class DbxFirebaseDevelopmentPopupContentComponent {
|
|
|
1908
2228
|
widgetConfig = { type: widget.type, data: undefined };
|
|
1909
2229
|
}
|
|
1910
2230
|
return widgetConfig;
|
|
1911
|
-
}, ...(ngDevMode ? [{ debugName: "widgetConfigSignal" }] : []));
|
|
2231
|
+
}, ...(ngDevMode ? [{ debugName: "widgetConfigSignal" }] : /* istanbul ignore next */ []));
|
|
1912
2232
|
constructor() {
|
|
1913
2233
|
this.twoColumnsContextStore.setShowRight(this.showRight$);
|
|
1914
2234
|
cleanSubscription(this.twoColumnsContextStore.back$.subscribe(() => {
|
|
@@ -1925,10 +2245,10 @@ class DbxFirebaseDevelopmentPopupContentComponent {
|
|
|
1925
2245
|
clearSelection() {
|
|
1926
2246
|
this._activeEntrySelector.next(undefined);
|
|
1927
2247
|
}
|
|
1928
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1929
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
2248
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2249
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseDevelopmentPopupContentComponent, isStandalone: true, selector: "dbx-firebase-development-popup-content", providers: [TwoColumnsContextStore], ngImport: i0, template: "<dbx-two-column class=\"dbx-firebase-development-popup-content\" [dbxTwoColumnFullLeft]=\"true\">\n <dbx-two-block left>\n <div>\n <h4>Info</h4>\n <p>Scheduler (Running): {{ schedulerRunningSignal() }} : {{ schedulerIntervalSignal() }}s : {{ schedulerErrorSignal() }}</p>\n <div>\n @if (showEmulatorButton) {\n <dbx-anchor [anchor]=\"emulatorUIAnchor\">\n <button mat-flat-button color=\"accent\">Emulator Enabled</button>\n </dbx-anchor>\n }\n </div>\n </div>\n <div>\n <h4>Tools</h4>\n <div dbxAction dbxActionEnforceModified dbxActionAutoTrigger useInstantTriggerPreset [dbxActionHandler]=\"handleFormUpdate\">\n <dbx-firebase-development-popup-content-form [config]=\"formConfig$\" dbxActionForm [dbxActionFormIsModified]=\"isFormModified\" [dbxFormSource]=\"formData$\" dbxFormSourceMode=\"always\"></dbx-firebase-development-popup-content-form>\n </div>\n </div>\n </dbx-two-block>\n <dbx-two-column-right right [header]=\"rightTitleSignal()\">\n <dbx-widget-view [config]=\"widgetConfigSignal()\"></dbx-widget-view>\n </dbx-two-column-right>\n</dbx-two-column>\n", styles: [".dbx-firebase-development-popup-content{height:400px;overflow:hidden}\n"], dependencies: [{ kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { kind: "directive", type: DbxTwoColumnFullLeftDirective, selector: "[dbxTwoColumnFullLeft]", inputs: ["dbxTwoColumnFullLeft"] }, { kind: "component", type: DbxWidgetViewComponent, selector: "dbx-widget-view", inputs: ["config"] }, { kind: "component", type: DbxTwoColumnComponent, selector: "dbx-two-column", inputs: ["reverseSizing", "inSectionPage", "hasRightContent"], exportAs: ["columns"] }, { kind: "component", type: DbxTwoBlockComponent, selector: "dbx-two-block", inputs: ["fixedTop"] }, { kind: "component", type: DbxTwoColumnRightComponent, selector: "dbx-two-column-right", inputs: ["full", "header", "block", "showBack", "minRightWidth"] }, { kind: "component", type: DbxFirebaseDevelopmentPopupContentFormComponent, selector: "dbx-firebase-development-popup-content-form" }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "directive", type: DbxActionAutoTriggerDirective, selector: "dbxActionAutoTrigger,[dbxActionAutoTrigger]", inputs: ["triggerDebounce", "triggerThrottle", "triggerErrorThrottle", "maxErrorsForThrottle", "triggerLimit", "dbxActionAutoTrigger", "useFastTriggerPreset", "useInstantTriggerPreset"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] });
|
|
1930
2250
|
}
|
|
1931
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentComponent, decorators: [{
|
|
1932
2252
|
type: Component,
|
|
1933
2253
|
args: [{ selector: 'dbx-firebase-development-popup-content', imports: [DbxAnchorComponent, DbxTwoColumnFullLeftDirective, DbxWidgetViewComponent, DbxTwoColumnComponent, DbxTwoBlockComponent, DbxTwoColumnRightComponent, DbxWidgetViewComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxFormSourceDirective, DbxActionAutoTriggerDirective, MatButtonModule], providers: [TwoColumnsContextStore], standalone: true, template: "<dbx-two-column class=\"dbx-firebase-development-popup-content\" [dbxTwoColumnFullLeft]=\"true\">\n <dbx-two-block left>\n <div>\n <h4>Info</h4>\n <p>Scheduler (Running): {{ schedulerRunningSignal() }} : {{ schedulerIntervalSignal() }}s : {{ schedulerErrorSignal() }}</p>\n <div>\n @if (showEmulatorButton) {\n <dbx-anchor [anchor]=\"emulatorUIAnchor\">\n <button mat-flat-button color=\"accent\">Emulator Enabled</button>\n </dbx-anchor>\n }\n </div>\n </div>\n <div>\n <h4>Tools</h4>\n <div dbxAction dbxActionEnforceModified dbxActionAutoTrigger useInstantTriggerPreset [dbxActionHandler]=\"handleFormUpdate\">\n <dbx-firebase-development-popup-content-form [config]=\"formConfig$\" dbxActionForm [dbxActionFormIsModified]=\"isFormModified\" [dbxFormSource]=\"formData$\" dbxFormSourceMode=\"always\"></dbx-firebase-development-popup-content-form>\n </div>\n </div>\n </dbx-two-block>\n <dbx-two-column-right right [header]=\"rightTitleSignal()\">\n <dbx-widget-view [config]=\"widgetConfigSignal()\"></dbx-widget-view>\n </dbx-two-column-right>\n</dbx-two-column>\n", styles: [".dbx-firebase-development-popup-content{height:400px;overflow:hidden}\n"] }]
|
|
1934
2254
|
}], ctorParameters: () => [] });
|
|
@@ -1950,15 +2270,15 @@ class DbxFirebaseDevelopmentPopupComponent extends AbstractPopupDirective {
|
|
|
1950
2270
|
reopen = () => {
|
|
1951
2271
|
DbxFirebaseDevelopmentPopupComponent.openPopup(this.popupService, this.popup.key);
|
|
1952
2272
|
};
|
|
1953
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1954
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
2273
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2274
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.3", type: DbxFirebaseDevelopmentPopupComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "content", first: true, predicate: DbxFirebaseDevelopmentPopupContentComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1955
2275
|
<dbx-popup-content>
|
|
1956
2276
|
<dbx-popup-controls [header]="header" controls></dbx-popup-controls>
|
|
1957
2277
|
<dbx-firebase-development-popup-content (shouldClose)="closePopup()"></dbx-firebase-development-popup-content>
|
|
1958
2278
|
</dbx-popup-content>
|
|
1959
2279
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxPopupContentComponent, selector: "dbx-popup-content" }, { kind: "component", type: DbxPopupControlsComponent, selector: "dbx-popup-controls", inputs: ["header"] }, { kind: "component", type: DbxFirebaseDevelopmentPopupContentComponent, selector: "dbx-firebase-development-popup-content" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1960
2280
|
}
|
|
1961
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentPopupComponent, decorators: [{
|
|
1962
2282
|
type: Component,
|
|
1963
2283
|
args: [{
|
|
1964
2284
|
template: `
|
|
@@ -1984,10 +2304,10 @@ const DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN = new InjectionToken('DefaultDb
|
|
|
1984
2304
|
*/
|
|
1985
2305
|
class DbxFirebaseDevelopmentService {
|
|
1986
2306
|
enabled = inject(DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, { optional: true }) ?? false;
|
|
1987
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
1988
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
2307
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2308
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentService });
|
|
1989
2309
|
}
|
|
1990
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2310
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentService, decorators: [{
|
|
1991
2311
|
type: Injectable
|
|
1992
2312
|
}] });
|
|
1993
2313
|
|
|
@@ -2049,10 +2369,10 @@ class DbxFirebaseDevelopmentDirective {
|
|
|
2049
2369
|
});
|
|
2050
2370
|
}
|
|
2051
2371
|
}
|
|
2052
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2053
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
2372
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2373
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseDevelopmentDirective, isStandalone: true, selector: "[dbxFirebaseDevelopment]", host: { listeners: { "window:keydown": "handleKeyboardEvent($event)" } }, ngImport: i0 });
|
|
2054
2374
|
}
|
|
2055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentDirective, decorators: [{
|
|
2056
2376
|
type: Directive,
|
|
2057
2377
|
args: [{
|
|
2058
2378
|
selector: '[dbxFirebaseDevelopment]',
|
|
@@ -2078,8 +2398,8 @@ const importsAndExports$1 = [
|
|
|
2078
2398
|
* Contains components related to logging in.
|
|
2079
2399
|
*/
|
|
2080
2400
|
class DbxFirebaseDevelopmentModule {
|
|
2081
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2082
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
2401
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2402
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentModule, imports: [
|
|
2083
2403
|
//
|
|
2084
2404
|
DbxFirebaseDevelopmentPopupContentFormComponent,
|
|
2085
2405
|
DbxFirebaseDevelopmentDirective,
|
|
@@ -2098,7 +2418,7 @@ class DbxFirebaseDevelopmentModule {
|
|
|
2098
2418
|
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2099
2419
|
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2100
2420
|
DbxFirebaseDevelopmentSchedulerListViewItemComponent] });
|
|
2101
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
2421
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentModule, imports: [
|
|
2102
2422
|
//
|
|
2103
2423
|
DbxFirebaseDevelopmentPopupContentFormComponent,
|
|
2104
2424
|
DbxFirebaseDevelopmentPopupComponent,
|
|
@@ -2108,7 +2428,7 @@ class DbxFirebaseDevelopmentModule {
|
|
|
2108
2428
|
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2109
2429
|
DbxFirebaseDevelopmentSchedulerListViewItemComponent] });
|
|
2110
2430
|
}
|
|
2111
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDevelopmentModule, decorators: [{
|
|
2112
2432
|
type: NgModule,
|
|
2113
2433
|
args: [{
|
|
2114
2434
|
imports: importsAndExports$1,
|
|
@@ -2408,10 +2728,10 @@ function provideDbxFirestoreCollection(config) {
|
|
|
2408
2728
|
*/
|
|
2409
2729
|
class DbxFirestoreContextService {
|
|
2410
2730
|
firestoreContext = inject(DBX_FIRESTORE_CONTEXT_TOKEN);
|
|
2411
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
2412
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
2731
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirestoreContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2732
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirestoreContextService, providedIn: 'root' });
|
|
2413
2733
|
}
|
|
2414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
2734
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirestoreContextService, decorators: [{
|
|
2415
2735
|
type: Injectable,
|
|
2416
2736
|
args: [{
|
|
2417
2737
|
providedIn: 'root'
|
|
@@ -3133,10 +3453,10 @@ class DbxFirebaseModelTypesService {
|
|
|
3133
3453
|
instancePairsForKeys(keys) {
|
|
3134
3454
|
return dbxFirebaseModelTypesServiceInstancePairForKeysFactory(this)(keys);
|
|
3135
3455
|
}
|
|
3136
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3137
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
3456
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTypesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3457
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTypesService });
|
|
3138
3458
|
}
|
|
3139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3459
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTypesService, decorators: [{
|
|
3140
3460
|
type: Injectable
|
|
3141
3461
|
}], ctorParameters: () => [] });
|
|
3142
3462
|
/**
|
|
@@ -3239,10 +3559,10 @@ class DbxFirebaseModelTrackerService {
|
|
|
3239
3559
|
const historyKeys$ = this.loadHistoryKeys();
|
|
3240
3560
|
return historyKeys$.pipe(switchMap((x) => this.dbxFirebaseModelTypesService.instancePairsForKeys(x)));
|
|
3241
3561
|
}
|
|
3242
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3243
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
3562
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTrackerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3563
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTrackerService, providedIn: 'root' });
|
|
3244
3564
|
}
|
|
3245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3565
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTrackerService, decorators: [{
|
|
3246
3566
|
type: Injectable,
|
|
3247
3567
|
args: [{
|
|
3248
3568
|
providedIn: 'root'
|
|
@@ -3259,10 +3579,10 @@ class DbxFirebaseModelTypeInstanceListComponent extends AbstractDbxSelectionList
|
|
|
3259
3579
|
defaultSelectionMode: 'view'
|
|
3260
3580
|
});
|
|
3261
3581
|
}
|
|
3262
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3263
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3582
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTypeInstanceListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3583
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", 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]=\"disabled()\" [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 });
|
|
3264
3584
|
}
|
|
3265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3585
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTypeInstanceListComponent, decorators: [{
|
|
3266
3586
|
type: Component,
|
|
3267
3587
|
args: [{
|
|
3268
3588
|
selector: 'dbx-firebase-model-type-instance-list',
|
|
@@ -3278,10 +3598,10 @@ class DbxFirebaseModelTypeInstanceListViewComponent extends AbstractDbxSelection
|
|
|
3278
3598
|
componentClass: DbxFirebaseModelTypeInstanceListViewItemComponent,
|
|
3279
3599
|
mapValuesToItemValues: (x) => of(x.map((y) => ({ itemValue: y, icon: y.displayInfo.icon ?? y.icon, anchor: y.segueRef })))
|
|
3280
3600
|
};
|
|
3281
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3282
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3601
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTypeInstanceListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3602
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseModelTypeInstanceListViewComponent, isStandalone: true, selector: "dbx-firebase-model-type-instance-list-view", providers: provideDbxListView(DbxFirebaseModelTypeInstanceListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1$1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3283
3603
|
}
|
|
3284
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTypeInstanceListViewComponent, decorators: [{
|
|
3285
3605
|
type: Component,
|
|
3286
3606
|
args: [{
|
|
3287
3607
|
selector: 'dbx-firebase-model-type-instance-list-view',
|
|
@@ -3294,12 +3614,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
3294
3614
|
}] });
|
|
3295
3615
|
class DbxFirebaseModelTypeInstanceListViewItemComponent extends AbstractDbxValueListViewItemComponent {
|
|
3296
3616
|
title = this.itemValue.displayInfo.title;
|
|
3297
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3298
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3617
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTypeInstanceListViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3618
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseModelTypeInstanceListViewItemComponent, isStandalone: true, selector: "dbx-firebase-model-type-instance-list-view-item", usesInheritance: true, ngImport: i0, template: `
|
|
3299
3619
|
<span>{{ title }}</span>
|
|
3300
3620
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3301
3621
|
}
|
|
3302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3622
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelTypeInstanceListViewItemComponent, decorators: [{
|
|
3303
3623
|
type: Component,
|
|
3304
3624
|
args: [{
|
|
3305
3625
|
selector: 'dbx-firebase-model-type-instance-list-view-item',
|
|
@@ -3313,18 +3633,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
3313
3633
|
|
|
3314
3634
|
class DbxFirebaseModelHistoryComponent {
|
|
3315
3635
|
dbxFirebaseModelTrackerService = inject(DbxFirebaseModelTrackerService);
|
|
3316
|
-
anchorForItem = input(...(ngDevMode ? [undefined, { debugName: "anchorForItem" }] : []));
|
|
3317
|
-
historyFilter = input(...(ngDevMode ? [undefined, { debugName: "historyFilter" }] : []));
|
|
3636
|
+
anchorForItem = input(...(ngDevMode ? [undefined, { debugName: "anchorForItem" }] : /* istanbul ignore next */ []));
|
|
3637
|
+
historyFilter = input(...(ngDevMode ? [undefined, { debugName: "historyFilter" }] : /* istanbul ignore next */ []));
|
|
3318
3638
|
historyPairs$ = toObservable(this.historyFilter).pipe(switchMap((x) => this.dbxFirebaseModelTrackerService.filterHistoryPairs(x)), shareReplay(1));
|
|
3319
3639
|
state = loadingStateFromObs(this.historyPairs$);
|
|
3320
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3321
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
3640
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3641
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseModelHistoryComponent, isStandalone: true, selector: "dbx-firebase-model-history", inputs: { anchorForItem: { classPropertyName: "anchorForItem", publicName: "anchorForItem", isSignal: true, isRequired: false, transformFunction: null }, historyFilter: { classPropertyName: "historyFilter", publicName: "historyFilter", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3322
3642
|
<dbx-firebase-model-type-instance-list [state]="state" dbxListItemModifier [dbxListItemAnchorModifier]="anchorForItem()">
|
|
3323
3643
|
<ng-content empty select="[empty]"></ng-content>
|
|
3324
3644
|
</dbx-firebase-model-type-instance-list>
|
|
3325
3645
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseModelTypeInstanceListComponent, selector: "dbx-firebase-model-type-instance-list" }, { kind: "directive", type: DbxListItemAnchorModifierDirective, selector: "[dbxListItemAnchorModifier]", inputs: ["dbxListItemAnchorModifier"] }, { kind: "directive", type: DbxValueListItemModifierDirective, selector: "dbxListItemModifier,[dbxListItemModifier]", inputs: ["dbxListItemModifier"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3326
3646
|
}
|
|
3327
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelHistoryComponent, decorators: [{
|
|
3328
3648
|
type: Component,
|
|
3329
3649
|
args: [{
|
|
3330
3650
|
selector: 'dbx-firebase-model-history',
|
|
@@ -3363,10 +3683,10 @@ class DbxFirebaseModelHistoryPopoverComponent extends AbstractPopoverDirective {
|
|
|
3363
3683
|
emptyText = this.config.emptyText ?? 'History is empty.';
|
|
3364
3684
|
historyFilter = this.config.historyFilter;
|
|
3365
3685
|
anchorForItem = this.config.anchorForItem;
|
|
3366
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3367
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
3686
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelHistoryPopoverComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3687
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseModelHistoryPopoverComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-model-history [historyFilter]=\"historyFilter\" [anchorForItem]=\"anchorForItem\">\n <dbx-list-empty-content empty>\n <p>{{ emptyText }}</p>\n </dbx-list-empty-content>\n </dbx-firebase-model-history>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", dependencies: [{ kind: "component", type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { kind: "component", type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { kind: "directive", type: DbxPopoverScrollContentDirective, selector: "dbx-popover-scroll-content,[dbxPopoverScrollContent],.dbx-popover-scroll-content" }, { kind: "component", type: DbxFirebaseModelHistoryComponent, selector: "dbx-firebase-model-history", inputs: ["anchorForItem", "historyFilter"] }, { kind: "component", type: DbxListEmptyContentComponent, selector: "dbx-list-empty-content" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3368
3688
|
}
|
|
3369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelHistoryPopoverComponent, decorators: [{
|
|
3370
3690
|
type: Component,
|
|
3371
3691
|
args: [{ imports: [DbxPopoverContentComponent, DbxPopoverHeaderComponent, DbxPopoverScrollContentDirective, DbxFirebaseModelHistoryComponent, DbxListEmptyContentComponent], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-model-history [historyFilter]=\"historyFilter\" [anchorForItem]=\"anchorForItem\">\n <dbx-list-empty-content empty>\n <p>{{ emptyText }}</p>\n </dbx-list-empty-content>\n </dbx-firebase-model-history>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n" }]
|
|
3372
3692
|
}] });
|
|
@@ -3374,7 +3694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
3374
3694
|
class DbxFirebaseModelHistoryPopoverButtonComponent extends AbstractPopoverRefDirective {
|
|
3375
3695
|
_dbxPopoverService = inject(DbxPopoverService);
|
|
3376
3696
|
buttonElement = viewChild.required('button', { read: ElementRef });
|
|
3377
|
-
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
3697
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : /* istanbul ignore next */ []));
|
|
3378
3698
|
_makePopoverRef(origin) {
|
|
3379
3699
|
const config = this.config();
|
|
3380
3700
|
if (!origin) {
|
|
@@ -3389,12 +3709,12 @@ class DbxFirebaseModelHistoryPopoverButtonComponent extends AbstractPopoverRefDi
|
|
|
3389
3709
|
const origin = this.buttonElement();
|
|
3390
3710
|
this.showPopover(origin);
|
|
3391
3711
|
}
|
|
3392
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3393
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
3712
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelHistoryPopoverButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3713
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.3", type: DbxFirebaseModelHistoryPopoverButtonComponent, isStandalone: true, selector: "dbx-firebase-model-history-popover-button", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "buttonElement", first: true, predicate: ["button"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3394
3714
|
<dbx-icon-button #button (buttonClick)="showHistoryPopover()" icon="history"></dbx-icon-button>
|
|
3395
3715
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxIconButtonComponent, selector: "dbx-icon-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3396
3716
|
}
|
|
3397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelHistoryPopoverButtonComponent, decorators: [{
|
|
3398
3718
|
type: Component,
|
|
3399
3719
|
args: [{
|
|
3400
3720
|
selector: 'dbx-firebase-model-history-popover-button',
|
|
@@ -3515,10 +3835,10 @@ class DbxFirebaseModelEntitiesWidgetService {
|
|
|
3515
3835
|
getSortPriorityMap() {
|
|
3516
3836
|
return this._sortPriorityMap();
|
|
3517
3837
|
}
|
|
3518
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3519
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
3838
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesWidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3839
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesWidgetService });
|
|
3520
3840
|
}
|
|
3521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3841
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesWidgetService, decorators: [{
|
|
3522
3842
|
type: Injectable
|
|
3523
3843
|
}], ctorParameters: () => [] });
|
|
3524
3844
|
|
|
@@ -3580,7 +3900,7 @@ class DbxFirebaseModelEntitiesEntityComponent {
|
|
|
3580
3900
|
widgetInjectionConfigFactory = dbxFirebaseModelEntityWidgetInjectionConfigFactory();
|
|
3581
3901
|
entitiesWidgetService = inject(DbxFirebaseModelEntitiesWidgetService);
|
|
3582
3902
|
dbxFirebaseModelTypesService = inject(DbxFirebaseModelTypesService);
|
|
3583
|
-
entity = input.required(...(ngDevMode ? [{ debugName: "entity" }] : []));
|
|
3903
|
+
entity = input.required(...(ngDevMode ? [{ debugName: "entity" }] : /* istanbul ignore next */ []));
|
|
3584
3904
|
entity$ = toObservable(this.entity);
|
|
3585
3905
|
currentEntityWithStore$ = this.entity$.pipe(map((x) => {
|
|
3586
3906
|
let result;
|
|
@@ -3624,16 +3944,16 @@ class DbxFirebaseModelEntitiesEntityComponent {
|
|
|
3624
3944
|
displayNameSignal = toSignal(this.displayName$);
|
|
3625
3945
|
displayInfoSignal = toSignal(this.displayInfo$);
|
|
3626
3946
|
modelIdentitySignal = toSignal(this.modelIdentity$);
|
|
3627
|
-
modelTypeSignal = computed(() => this.modelIdentitySignal()?.modelType, ...(ngDevMode ? [{ debugName: "modelTypeSignal" }] : []));
|
|
3947
|
+
modelTypeSignal = computed(() => this.modelIdentitySignal()?.modelType, ...(ngDevMode ? [{ debugName: "modelTypeSignal" }] : /* istanbul ignore next */ []));
|
|
3628
3948
|
widgetInjectionConfigSignal = toSignal(this.widgetInjectionConfig$);
|
|
3629
|
-
entityWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.entityComponentConfig, ...(ngDevMode ? [{ debugName: "entityWidgetConfigSignal" }] : []));
|
|
3630
|
-
commonWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.commonComponentConfig, ...(ngDevMode ? [{ debugName: "commonWidgetConfigSignal" }] : []));
|
|
3631
|
-
debugWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.debugComponentConfig, ...(ngDevMode ? [{ debugName: "debugWidgetConfigSignal" }] : []));
|
|
3949
|
+
entityWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.entityComponentConfig, ...(ngDevMode ? [{ debugName: "entityWidgetConfigSignal" }] : /* istanbul ignore next */ []));
|
|
3950
|
+
commonWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.commonComponentConfig, ...(ngDevMode ? [{ debugName: "commonWidgetConfigSignal" }] : /* istanbul ignore next */ []));
|
|
3951
|
+
debugWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.debugComponentConfig, ...(ngDevMode ? [{ debugName: "debugWidgetConfigSignal" }] : /* istanbul ignore next */ []));
|
|
3632
3952
|
loadingContext = cleanLoadingContext({ obs: this.loadingState$ });
|
|
3633
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3634
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
3953
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesEntityComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3954
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseModelEntitiesEntityComponent, isStandalone: true, selector: "dbx-firebase-model-entities-entity", inputs: { entity: { classPropertyName: "entity", publicName: "entity", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>\n @if (displayInfoSignal(); as displayInfo) {\n <div class=\"dbx-list-two-line-item\">\n <div class=\"item-left\">\n <span class=\"dbx-pb2 dbx-flex-bar\">\n @if (displayInfo.icon) {\n <mat-icon class=\"dbx-button-spacer\">{{ displayInfo.icon }}</mat-icon>\n }\n <span>{{ displayInfo.title }}</span>\n </span>\n <span>\n <span class=\"dbx-hint dbx-small\">{{ modelTypeSignal() }}</span>\n @if (displayNameSignal(); as displayName) {\n <span class=\"dbx-small dbx-u dbx-pl2\">{{ displayName }}</span>\n }\n </span>\n </div>\n </div>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n <ng-template matExpansionPanelContent>\n <div class=\"dbx-firebase-model-entities-entity-panel-content\">\n <dbx-loading [context]=\"loadingContext\">\n @if (entityWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-entity-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (commonWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-common-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (debugWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-debug-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n </dbx-loading>\n </div>\n </ng-template>\n</mat-expansion-panel>\n", dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "color", "diameter", "linear", "loading", "error", "context"] }, { kind: "component", type: MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3635
3955
|
}
|
|
3636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
3956
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesEntityComponent, decorators: [{
|
|
3637
3957
|
type: Component,
|
|
3638
3958
|
args: [{ selector: 'dbx-firebase-model-entities-entity', imports: [DbxInjectionComponent, DbxLoadingComponent, MatExpansionPanel, MatExpansionPanelHeader, MatExpansionPanelTitle, MatExpansionPanelContent, MatIcon], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>\n @if (displayInfoSignal(); as displayInfo) {\n <div class=\"dbx-list-two-line-item\">\n <div class=\"item-left\">\n <span class=\"dbx-pb2 dbx-flex-bar\">\n @if (displayInfo.icon) {\n <mat-icon class=\"dbx-button-spacer\">{{ displayInfo.icon }}</mat-icon>\n }\n <span>{{ displayInfo.title }}</span>\n </span>\n <span>\n <span class=\"dbx-hint dbx-small\">{{ modelTypeSignal() }}</span>\n @if (displayNameSignal(); as displayName) {\n <span class=\"dbx-small dbx-u dbx-pl2\">{{ displayName }}</span>\n }\n </span>\n </div>\n </div>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n <ng-template matExpansionPanelContent>\n <div class=\"dbx-firebase-model-entities-entity-panel-content\">\n <dbx-loading [context]=\"loadingContext\">\n @if (entityWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-entity-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (commonWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-common-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (debugWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-debug-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n </dbx-loading>\n </div>\n </ng-template>\n</mat-expansion-panel>\n" }]
|
|
3639
3959
|
}], propDecorators: { entity: [{ type: i0.Input, args: [{ isSignal: true, alias: "entity", required: true }] }] } });
|
|
@@ -3649,24 +3969,24 @@ class DbxFirebaseModelEntitiesComponent {
|
|
|
3649
3969
|
/**
|
|
3650
3970
|
* Whether the accordion should allow multiple expanded panels.
|
|
3651
3971
|
*/
|
|
3652
|
-
multi = input(true, ...(ngDevMode ? [{ debugName: "multi" }] : []));
|
|
3972
|
+
multi = input(true, ...(ngDevMode ? [{ debugName: "multi" }] : /* istanbul ignore next */ []));
|
|
3653
3973
|
/**
|
|
3654
3974
|
* If true, will only show entities that have a registered widget entry.
|
|
3655
3975
|
*
|
|
3656
3976
|
* Defaults to true.
|
|
3657
3977
|
*/
|
|
3658
|
-
onlyShowRegisteredTypes = input(true, ...(ngDevMode ? [{ debugName: "onlyShowRegisteredTypes" }] : []));
|
|
3978
|
+
onlyShowRegisteredTypes = input(true, ...(ngDevMode ? [{ debugName: "onlyShowRegisteredTypes" }] : /* istanbul ignore next */ []));
|
|
3659
3979
|
/**
|
|
3660
3980
|
* If true, will show unregistered entities, even if onlyShowRegisteredTypes is true.
|
|
3661
3981
|
*/
|
|
3662
|
-
showUnregisteredTypesSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "showUnregisteredTypesSignal" }] : []));
|
|
3982
|
+
showUnregisteredTypesSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "showUnregisteredTypesSignal" }] : /* istanbul ignore next */ []));
|
|
3663
3983
|
onlyShowRegisteredTypesSignal = computed(() => {
|
|
3664
3984
|
const onlyShowRegisteredTypes = this.onlyShowRegisteredTypes();
|
|
3665
3985
|
const showUnregisteredTypes = this.showUnregisteredTypesSignal();
|
|
3666
3986
|
return !showUnregisteredTypes && onlyShowRegisteredTypes;
|
|
3667
|
-
}, ...(ngDevMode ? [{ debugName: "onlyShowRegisteredTypesSignal" }] : []));
|
|
3987
|
+
}, ...(ngDevMode ? [{ debugName: "onlyShowRegisteredTypesSignal" }] : /* istanbul ignore next */ []));
|
|
3668
3988
|
onlyShowRegisteredTypes$ = toObservable(this.onlyShowRegisteredTypesSignal).pipe(distinctUntilChanged(), shareReplay(1));
|
|
3669
|
-
entities = input(...(ngDevMode ? [undefined, { debugName: "entities" }] : []));
|
|
3989
|
+
entities = input(...(ngDevMode ? [undefined, { debugName: "entities" }] : /* istanbul ignore next */ []));
|
|
3670
3990
|
entities$ = toObservable(this.entities).pipe(switchMapMaybe(), map((x) => x ?? beginLoading()), shareReplay(1));
|
|
3671
3991
|
allEntitiesState$ = this.entities$.pipe(mapLoadingStateValueWithOperator(switchMap((entities) => {
|
|
3672
3992
|
const sortPriorityMap = this.entitiesWidgetService.getSortPriorityMap();
|
|
@@ -3692,19 +4012,19 @@ class DbxFirebaseModelEntitiesComponent {
|
|
|
3692
4012
|
})), shareReplay(1));
|
|
3693
4013
|
allEntities$ = this.allEntitiesState$.pipe(valueFromFinishedLoadingState(), shareReplay(1));
|
|
3694
4014
|
allEntitiesSignal = toSignal(this.allEntities$, { initialValue: { entities: [], registeredEntities: [], unregisteredEntities: [], onlyShowRegisteredTypes: false } });
|
|
3695
|
-
entitiesWithKeysSignal = computed(() => this.allEntitiesSignal()?.entities, ...(ngDevMode ? [{ debugName: "entitiesWithKeysSignal" }] : []));
|
|
3696
|
-
unregisteredEntitiesCountSignal = computed(() => this.allEntitiesSignal()?.unregisteredEntities?.length ?? 0, ...(ngDevMode ? [{ debugName: "unregisteredEntitiesCountSignal" }] : []));
|
|
4015
|
+
entitiesWithKeysSignal = computed(() => this.allEntitiesSignal()?.entities, ...(ngDevMode ? [{ debugName: "entitiesWithKeysSignal" }] : /* istanbul ignore next */ []));
|
|
4016
|
+
unregisteredEntitiesCountSignal = computed(() => this.allEntitiesSignal()?.unregisteredEntities?.length ?? 0, ...(ngDevMode ? [{ debugName: "unregisteredEntitiesCountSignal" }] : /* istanbul ignore next */ []));
|
|
3697
4017
|
showViewUnregisteredEntitiesButtonSignal = computed(() => {
|
|
3698
4018
|
const { onlyShowRegisteredTypes, unregisteredEntities } = this.allEntitiesSignal() ?? {};
|
|
3699
4019
|
return onlyShowRegisteredTypes && Boolean(unregisteredEntities?.length);
|
|
3700
|
-
}, ...(ngDevMode ? [{ debugName: "showViewUnregisteredEntitiesButtonSignal" }] : []));
|
|
3701
|
-
hasNoEntitiesSignal = computed(() => !this.entitiesWithKeysSignal()?.length, ...(ngDevMode ? [{ debugName: "hasNoEntitiesSignal" }] : []));
|
|
4020
|
+
}, ...(ngDevMode ? [{ debugName: "showViewUnregisteredEntitiesButtonSignal" }] : /* istanbul ignore next */ []));
|
|
4021
|
+
hasNoEntitiesSignal = computed(() => !this.entitiesWithKeysSignal()?.length, ...(ngDevMode ? [{ debugName: "hasNoEntitiesSignal" }] : /* istanbul ignore next */ []));
|
|
3702
4022
|
context = cleanLoadingContext({ obs: this.allEntitiesState$ });
|
|
3703
4023
|
clickShowUnregisteredEntities() {
|
|
3704
4024
|
this.showUnregisteredTypesSignal.set(true);
|
|
3705
4025
|
}
|
|
3706
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3707
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
4026
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4027
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseModelEntitiesComponent, isStandalone: true, selector: "dbx-firebase-model-entities", inputs: { multi: { classPropertyName: "multi", publicName: "multi", isSignal: true, isRequired: false, transformFunction: null }, onlyShowRegisteredTypes: { classPropertyName: "onlyShowRegisteredTypes", publicName: "onlyShowRegisteredTypes", isSignal: true, isRequired: false, transformFunction: null }, entities: { classPropertyName: "entities", publicName: "entities", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3708
4028
|
<dbx-loading [linear]="true" [context]="context">
|
|
3709
4029
|
<mat-accordion class="dbx-firebase-model-entities-accordion" [multi]="multi()">
|
|
3710
4030
|
@for (entity of entitiesWithKeysSignal(); track entity.key) {
|
|
@@ -3724,7 +4044,7 @@ class DbxFirebaseModelEntitiesComponent {
|
|
|
3724
4044
|
</dbx-loading>
|
|
3725
4045
|
`, isInline: true, dependencies: [{ kind: "directive", type: MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "color", "diameter", "linear", "loading", "error", "context"] }, { kind: "component", type: DbxFirebaseModelEntitiesEntityComponent, selector: "dbx-firebase-model-entities-entity", inputs: ["entity"] }, { kind: "component", type: DbxListEmptyContentComponent, selector: "dbx-list-empty-content" }, { kind: "component", type: DbxIconButtonComponent, selector: "dbx-icon-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3726
4046
|
}
|
|
3727
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4047
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesComponent, decorators: [{
|
|
3728
4048
|
type: Component,
|
|
3729
4049
|
args: [{
|
|
3730
4050
|
selector: 'dbx-firebase-model-entities',
|
|
@@ -3786,10 +4106,10 @@ class DbxFirebaseModelEntitiesPopoverComponent extends AbstractPopoverDirective
|
|
|
3786
4106
|
header = this.config.header ?? 'Entities';
|
|
3787
4107
|
emptyText = this.config.emptyText ?? 'No entities found in current context.';
|
|
3788
4108
|
onlyShowRegisteredTypes = this.config.onlyShowRegisteredTypes;
|
|
3789
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3790
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
4109
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesPopoverComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4110
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseModelEntitiesPopoverComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-model-entities [entities]=\"entities$\" [onlyShowRegisteredTypes]=\"onlyShowRegisteredTypes\">\n <p empty>{{ emptyText }}</p>\n </dbx-firebase-model-entities>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", dependencies: [{ kind: "component", type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { kind: "component", type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { kind: "directive", type: DbxPopoverScrollContentDirective, selector: "dbx-popover-scroll-content,[dbxPopoverScrollContent],.dbx-popover-scroll-content" }, { kind: "component", type: DbxFirebaseModelEntitiesComponent, selector: "dbx-firebase-model-entities", inputs: ["multi", "onlyShowRegisteredTypes", "entities"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3791
4111
|
}
|
|
3792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesPopoverComponent, decorators: [{
|
|
3793
4113
|
type: Component,
|
|
3794
4114
|
args: [{ imports: [DbxPopoverContentComponent, DbxPopoverHeaderComponent, DbxPopoverScrollContentDirective, DbxFirebaseModelEntitiesComponent], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-model-entities [entities]=\"entities$\" [onlyShowRegisteredTypes]=\"onlyShowRegisteredTypes\">\n <p empty>{{ emptyText }}</p>\n </dbx-firebase-model-entities>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n" }]
|
|
3795
4115
|
}] });
|
|
@@ -3801,12 +4121,12 @@ class DbxFirebaseModelEntitiesPopoverButtonComponent extends AbstractPopoverRefD
|
|
|
3801
4121
|
_dbxPopoverService = inject(DbxPopoverService);
|
|
3802
4122
|
entitiesSource = inject(DbxFirebaseModelEntitiesSource);
|
|
3803
4123
|
buttonElement = viewChild.required('button', { read: ElementRef });
|
|
3804
|
-
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
4124
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : /* istanbul ignore next */ []));
|
|
3805
4125
|
buttonDisplaySignal = computed(() => {
|
|
3806
4126
|
const config = this.config();
|
|
3807
4127
|
return config?.buttonDisplay ?? { icon: config?.icon ?? 'data_object' };
|
|
3808
|
-
}, ...(ngDevMode ? [{ debugName: "buttonDisplaySignal" }] : []));
|
|
3809
|
-
buttonStyleSignal = computed(() => this.config()?.buttonStyle, ...(ngDevMode ? [{ debugName: "buttonStyleSignal" }] : []));
|
|
4128
|
+
}, ...(ngDevMode ? [{ debugName: "buttonDisplaySignal" }] : /* istanbul ignore next */ []));
|
|
4129
|
+
buttonStyleSignal = computed(() => this.config()?.buttonStyle, ...(ngDevMode ? [{ debugName: "buttonStyleSignal" }] : /* istanbul ignore next */ []));
|
|
3810
4130
|
_makePopoverRef(origin) {
|
|
3811
4131
|
if (!origin) {
|
|
3812
4132
|
throw new Error('Missing origin.');
|
|
@@ -3823,12 +4143,12 @@ class DbxFirebaseModelEntitiesPopoverButtonComponent extends AbstractPopoverRefD
|
|
|
3823
4143
|
const origin = this.buttonElement();
|
|
3824
4144
|
this.showPopover(origin);
|
|
3825
4145
|
}
|
|
3826
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3827
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
4146
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesPopoverButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4147
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.3", type: DbxFirebaseModelEntitiesPopoverButtonComponent, isStandalone: true, selector: "dbx-firebase-model-entities-popover-button", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "buttonElement", first: true, predicate: ["button"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3828
4148
|
<dbx-button #button (buttonClick)="showEntitiesPopover()" [buttonStyle]="buttonStyleSignal()" [buttonDisplay]="buttonDisplaySignal()"></dbx-button>
|
|
3829
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4149
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "allowClickPropagation", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3830
4150
|
}
|
|
3831
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesPopoverButtonComponent, decorators: [{
|
|
3832
4152
|
type: Component,
|
|
3833
4153
|
args: [{
|
|
3834
4154
|
selector: 'dbx-firebase-model-entities-popover-button',
|
|
@@ -3900,10 +4220,10 @@ class DbxFirebaseDocumentStoreContextStore extends ComponentStore {
|
|
|
3900
4220
|
// MARK: State Changes
|
|
3901
4221
|
addStore = this.updater(addStore);
|
|
3902
4222
|
removeStore = this.updater(removeStore);
|
|
3903
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3904
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4223
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreContextStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4224
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreContextStore });
|
|
3905
4225
|
}
|
|
3906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreContextStore, decorators: [{
|
|
3907
4227
|
type: Injectable
|
|
3908
4228
|
}], ctorParameters: () => [] });
|
|
3909
4229
|
function addStore(state, store) {
|
|
@@ -3957,8 +4277,8 @@ const dbxFirebaseDocumentStoreContextModelEntitiesSourceFactory = (storeContextS
|
|
|
3957
4277
|
* Directive that provides a {@link DbxFirebaseModelEntitiesSource} from the current document store context.
|
|
3958
4278
|
*/
|
|
3959
4279
|
class DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective {
|
|
3960
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3961
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4280
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4281
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, isStandalone: true, selector: "[dbxFirebaseDocumentStoreContextModelEntitiesSource]", providers: [
|
|
3962
4282
|
{
|
|
3963
4283
|
provide: DbxFirebaseModelEntitiesSource,
|
|
3964
4284
|
useFactory: dbxFirebaseDocumentStoreContextModelEntitiesSourceFactory,
|
|
@@ -3966,7 +4286,7 @@ class DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective {
|
|
|
3966
4286
|
}
|
|
3967
4287
|
], ngImport: i0 });
|
|
3968
4288
|
}
|
|
3969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, decorators: [{
|
|
3970
4290
|
type: Directive,
|
|
3971
4291
|
args: [{
|
|
3972
4292
|
selector: '[dbxFirebaseDocumentStoreContextModelEntitiesSource]',
|
|
@@ -3988,10 +4308,10 @@ class AbstractDbxFirebaseModelEntityWidgetDirective {
|
|
|
3988
4308
|
entityData = inject(DBX_FIREBASE_MODEL_ENTITY_WITH_STORE_TOKEN);
|
|
3989
4309
|
store = this.entityData.store;
|
|
3990
4310
|
data$ = this.store.data$;
|
|
3991
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
3992
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4311
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseModelEntityWidgetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4312
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractDbxFirebaseModelEntityWidgetDirective, isStandalone: true, ngImport: i0 });
|
|
3993
4313
|
}
|
|
3994
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseModelEntityWidgetDirective, decorators: [{
|
|
3995
4315
|
type: Directive,
|
|
3996
4316
|
args: [{}]
|
|
3997
4317
|
}] });
|
|
@@ -4001,19 +4321,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4001
4321
|
*/
|
|
4002
4322
|
class DbxFirebaseModelKeyComponent {
|
|
4003
4323
|
dbxFirebaseModelTypesService = inject(DbxFirebaseModelTypesService);
|
|
4004
|
-
modelKey = input(...(ngDevMode ? [undefined, { debugName: "modelKey" }] : []));
|
|
4324
|
+
modelKey = input(...(ngDevMode ? [undefined, { debugName: "modelKey" }] : /* istanbul ignore next */ []));
|
|
4005
4325
|
modelKeyIdSignal = computed(() => {
|
|
4006
4326
|
const modelKey = this.modelKey();
|
|
4007
4327
|
return modelKey ? firestoreModelId(modelKey) : undefined;
|
|
4008
|
-
}, ...(ngDevMode ? [{ debugName: "modelKeyIdSignal" }] : []));
|
|
4328
|
+
}, ...(ngDevMode ? [{ debugName: "modelKeyIdSignal" }] : /* istanbul ignore next */ []));
|
|
4009
4329
|
oneWayFlatModelKeySignal = computed(() => {
|
|
4010
4330
|
const modelKey = this.modelKey();
|
|
4011
4331
|
return modelKey ? flatFirestoreModelKey(modelKey) : undefined;
|
|
4012
|
-
}, ...(ngDevMode ? [{ debugName: "oneWayFlatModelKeySignal" }] : []));
|
|
4332
|
+
}, ...(ngDevMode ? [{ debugName: "oneWayFlatModelKeySignal" }] : /* istanbul ignore next */ []));
|
|
4013
4333
|
twoWayFlatModelKeySignal = computed(() => {
|
|
4014
4334
|
const modelKey = this.modelKey();
|
|
4015
4335
|
return modelKey ? twoWayFlatFirestoreModelKey(modelKey) : undefined;
|
|
4016
|
-
}, ...(ngDevMode ? [{ debugName: "twoWayFlatModelKeySignal" }] : []));
|
|
4336
|
+
}, ...(ngDevMode ? [{ debugName: "twoWayFlatModelKeySignal" }] : /* istanbul ignore next */ []));
|
|
4017
4337
|
// Convert signal to observable for types service
|
|
4018
4338
|
modelKey$ = toObservable(this.modelKey);
|
|
4019
4339
|
modelTypeInstance$ = this.modelKey$.pipe(switchMap((key) => {
|
|
@@ -4028,13 +4348,13 @@ class DbxFirebaseModelKeyComponent {
|
|
|
4028
4348
|
modelTypeInstanceSignal = toSignal(this.modelTypeInstance$);
|
|
4029
4349
|
modelIdentitySignal = toSignal(this.modelIdentity$);
|
|
4030
4350
|
typeInfoSignal = toSignal(this.typeInfo$);
|
|
4031
|
-
typeCanSegueToView = computed(() => this.typeInfoSignal()?.canSegueToView ?? false, ...(ngDevMode ? [{ debugName: "typeCanSegueToView" }] : []));
|
|
4351
|
+
typeCanSegueToView = computed(() => this.typeInfoSignal()?.canSegueToView ?? false, ...(ngDevMode ? [{ debugName: "typeCanSegueToView" }] : /* istanbul ignore next */ []));
|
|
4032
4352
|
sref$ = this.modelTypeInstance$.pipe(switchMap((x) => x?.segueRef$ ?? of(undefined)));
|
|
4033
4353
|
srefSignal = toSignal(this.sref$);
|
|
4034
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4035
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
4354
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelKeyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4355
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseModelKeyComponent, isStandalone: true, selector: "dbx-firebase-model-key", inputs: { modelKey: { classPropertyName: "modelKey", publicName: "modelKey", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"dbx-firebase-model-key\">\n @if (modelKey(); as key) {\n <!-- Key Data -->\n <dbx-detail-block icon=\"key\" header=\"Model Key\">\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\">{{ key }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\">{{ modelKeyIdSignal() }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\" [copyText]=\"oneWayFlatModelKeySignal()\">(Flat) {{ oneWayFlatModelKeySignal() }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\" [copyText]=\"twoWayFlatModelKeySignal()\">(Encoded Flat) {{ twoWayFlatModelKeySignal() }}</dbx-click-to-copy-text>\n </dbx-detail-block>\n\n <!-- Type Info -->\n @if (typeInfoSignal(); as typeInfo) {\n <!-- Model Meta Data -->\n <div>\n <dbx-detail-block [icon]=\"typeInfo.icon\" header=\"Model Type\">\n <dbx-click-to-copy-text class=\"dbx-block\">{{ typeInfo.modelType }}</dbx-click-to-copy-text>\n @if (typeInfo.icon) {\n <dbx-click-to-copy-text [copyText]=\"typeInfo.icon\" class=\"dbx-block\">\n Icon:\n <span class=\"dbx-u\">{{ typeInfo.icon }}</span>\n </dbx-click-to-copy-text>\n } @else {\n <span class=\"dbx-notice\">No Icon For Type</span>\n }\n </dbx-detail-block>\n <dbx-detail-block icon=\"dataset\" header=\"Collection Name\">\n <dbx-click-to-copy-text class=\"dbx-block\">{{ typeInfo.identity.collectionName }}</dbx-click-to-copy-text>\n </dbx-detail-block>\n </div>\n\n <!-- Segue Info -->\n @if (typeCanSegueToView()) {\n <dbx-detail-block icon=\"arrow_forward\" header=\"Segue To View\">\n <div class=\"dbx-hint dbx-small\">This model has a unique view within the app.</div>\n <dbx-anchor [anchor]=\"srefSignal()\"><dbx-button text=\"Go To View\"></dbx-button></dbx-anchor>\n </dbx-detail-block>\n } @else {\n <dbx-detail-block class=\"dbx-warn\" icon=\"warning\" header=\"No Segue View\">\n <span>This type provides no information for segue directly.</span>\n </dbx-detail-block>\n }\n } @else {\n <dbx-detail-block class=\"dbx-warn\" icon=\"warning\" header=\"No Type Info\">\n <span>There is no type info registered for this model type.</span>\n </dbx-detail-block>\n }\n } @else {\n <div class=\"dbx-firebase-model-key-empty\">No model key provided</div>\n }\n</div>\n", dependencies: [{ kind: "component", type: DbxDetailBlockComponent, selector: "dbx-detail-block", inputs: ["icon", "header", "alignHeader", "bigHeader"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "allowClickPropagation", "mode"] }, { kind: "component", type: DbxClickToCopyTextComponent, selector: "dbx-click-to-copy-text", inputs: ["copyText", "showIcon", "highlighted", "clipboardSnackbarMessagesConfig", "clipboardSnackbarMessagesEnabled", "clickToCopyIcon", "clickIconToCopyOnly"] }, { kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }] });
|
|
4036
4356
|
}
|
|
4037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4357
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelKeyComponent, decorators: [{
|
|
4038
4358
|
type: Component,
|
|
4039
4359
|
args: [{ selector: 'dbx-firebase-model-key', standalone: true, imports: [DbxDetailBlockComponent, DbxButtonComponent, DbxClickToCopyTextComponent, DbxAnchorComponent], template: "<div class=\"dbx-firebase-model-key\">\n @if (modelKey(); as key) {\n <!-- Key Data -->\n <dbx-detail-block icon=\"key\" header=\"Model Key\">\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\">{{ key }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\">{{ modelKeyIdSignal() }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\" [copyText]=\"oneWayFlatModelKeySignal()\">(Flat) {{ oneWayFlatModelKeySignal() }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\" [copyText]=\"twoWayFlatModelKeySignal()\">(Encoded Flat) {{ twoWayFlatModelKeySignal() }}</dbx-click-to-copy-text>\n </dbx-detail-block>\n\n <!-- Type Info -->\n @if (typeInfoSignal(); as typeInfo) {\n <!-- Model Meta Data -->\n <div>\n <dbx-detail-block [icon]=\"typeInfo.icon\" header=\"Model Type\">\n <dbx-click-to-copy-text class=\"dbx-block\">{{ typeInfo.modelType }}</dbx-click-to-copy-text>\n @if (typeInfo.icon) {\n <dbx-click-to-copy-text [copyText]=\"typeInfo.icon\" class=\"dbx-block\">\n Icon:\n <span class=\"dbx-u\">{{ typeInfo.icon }}</span>\n </dbx-click-to-copy-text>\n } @else {\n <span class=\"dbx-notice\">No Icon For Type</span>\n }\n </dbx-detail-block>\n <dbx-detail-block icon=\"dataset\" header=\"Collection Name\">\n <dbx-click-to-copy-text class=\"dbx-block\">{{ typeInfo.identity.collectionName }}</dbx-click-to-copy-text>\n </dbx-detail-block>\n </div>\n\n <!-- Segue Info -->\n @if (typeCanSegueToView()) {\n <dbx-detail-block icon=\"arrow_forward\" header=\"Segue To View\">\n <div class=\"dbx-hint dbx-small\">This model has a unique view within the app.</div>\n <dbx-anchor [anchor]=\"srefSignal()\"><dbx-button text=\"Go To View\"></dbx-button></dbx-anchor>\n </dbx-detail-block>\n } @else {\n <dbx-detail-block class=\"dbx-warn\" icon=\"warning\" header=\"No Segue View\">\n <span>This type provides no information for segue directly.</span>\n </dbx-detail-block>\n }\n } @else {\n <dbx-detail-block class=\"dbx-warn\" icon=\"warning\" header=\"No Type Info\">\n <span>There is no type info registered for this model type.</span>\n </dbx-detail-block>\n }\n } @else {\n <div class=\"dbx-firebase-model-key-empty\">No model key provided</div>\n }\n</div>\n" }]
|
|
4040
4360
|
}], propDecorators: { modelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "modelKey", required: false }] }] } });
|
|
@@ -4058,12 +4378,12 @@ class DbxFirebaseModelEntitiesDebugWidgetComponent extends AbstractDbxFirebaseMo
|
|
|
4058
4378
|
};
|
|
4059
4379
|
}
|
|
4060
4380
|
return content;
|
|
4061
|
-
}, ...(ngDevMode ? [{ debugName: "contentSignal" }] : []));
|
|
4381
|
+
}, ...(ngDevMode ? [{ debugName: "contentSignal" }] : /* istanbul ignore next */ []));
|
|
4062
4382
|
context = cleanLoadingContext(this.store.dataLoadingState$);
|
|
4063
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4064
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
4383
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesDebugWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4384
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseModelEntitiesDebugWidgetComponent, isStandalone: true, selector: "dbx-firebase-model-entities-debug-widget", usesInheritance: true, ngImport: i0, template: "<div class=\"dbx-firebase-model-entities-debug-widget\">\n <!-- Model Key Section -->\n <div class=\"dbx-debug-section\">\n <h4>Model Key Information</h4>\n @if (currentKey(); as key) {\n <dbx-firebase-model-key [modelKey]=\"key\"></dbx-firebase-model-key>\n }\n </div>\n\n <!-- Document Data Section -->\n <div class=\"dbx-debug-section\">\n <h4>Document Data</h4>\n <dbx-loading [context]=\"context\">\n @if (currentData(); as data) {\n <dbx-download-text-view [showTitle]=\"false\" [content]=\"contentSignal()\"></dbx-download-text-view>\n } @else {\n <p class=\"dbx-empty\">No data available</p>\n }\n </dbx-loading>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: DbxFirebaseModelKeyComponent, selector: "dbx-firebase-model-key", inputs: ["modelKey"] }, { kind: "component", type: DbxDownloadTextViewComponent, selector: "dbx-download-text-view", inputs: ["showDownloadButton", "loadingText", "linear", "showTitle", "showPreview", "showExpandPreviewButton", "expandPreview", "content", "contentState"], outputs: ["expandPreviewChange"] }, { kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "color", "diameter", "linear", "loading", "error", "context"] }] });
|
|
4065
4385
|
}
|
|
4066
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelEntitiesDebugWidgetComponent, decorators: [{
|
|
4067
4387
|
type: Component,
|
|
4068
4388
|
args: [{ selector: 'dbx-firebase-model-entities-debug-widget', standalone: true, imports: [DbxFirebaseModelKeyComponent, DbxDownloadTextViewComponent, DbxLoadingComponent], template: "<div class=\"dbx-firebase-model-entities-debug-widget\">\n <!-- Model Key Section -->\n <div class=\"dbx-debug-section\">\n <h4>Model Key Information</h4>\n @if (currentKey(); as key) {\n <dbx-firebase-model-key [modelKey]=\"key\"></dbx-firebase-model-key>\n }\n </div>\n\n <!-- Document Data Section -->\n <div class=\"dbx-debug-section\">\n <h4>Document Data</h4>\n <dbx-loading [context]=\"context\">\n @if (currentData(); as data) {\n <dbx-download-text-view [showTitle]=\"false\" [content]=\"contentSignal()\"></dbx-download-text-view>\n } @else {\n <p class=\"dbx-empty\">No data available</p>\n }\n </dbx-loading>\n </div>\n</div>\n" }]
|
|
4069
4389
|
}] });
|
|
@@ -4072,12 +4392,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4072
4392
|
* Abstract directive that contains a DbxFirebaseDocumentStore and provides an interface for communicating with other directives.
|
|
4073
4393
|
*/
|
|
4074
4394
|
class DbxFirebaseDocumentStoreDirective {
|
|
4075
|
-
storeName = model(undefined, ...(ngDevMode ? [{ debugName: "storeName" }] : []));
|
|
4076
|
-
documentId = model(undefined, ...(ngDevMode ? [{ debugName: "documentId" }] : []));
|
|
4077
|
-
key = model(undefined, ...(ngDevMode ? [{ debugName: "key" }] : []));
|
|
4078
|
-
flatKey = model(undefined, ...(ngDevMode ? [{ debugName: "flatKey" }] : []));
|
|
4079
|
-
ref = model(undefined, ...(ngDevMode ? [{ debugName: "ref" }] : []));
|
|
4080
|
-
streamMode = model(FirestoreAccessorStreamMode.STREAM, ...(ngDevMode ? [{ debugName: "streamMode" }] : []));
|
|
4395
|
+
storeName = model(undefined, ...(ngDevMode ? [{ debugName: "storeName" }] : /* istanbul ignore next */ []));
|
|
4396
|
+
documentId = model(undefined, ...(ngDevMode ? [{ debugName: "documentId" }] : /* istanbul ignore next */ []));
|
|
4397
|
+
key = model(undefined, ...(ngDevMode ? [{ debugName: "key" }] : /* istanbul ignore next */ []));
|
|
4398
|
+
flatKey = model(undefined, ...(ngDevMode ? [{ debugName: "flatKey" }] : /* istanbul ignore next */ []));
|
|
4399
|
+
ref = model(undefined, ...(ngDevMode ? [{ debugName: "ref" }] : /* istanbul ignore next */ []));
|
|
4400
|
+
streamMode = model(FirestoreAccessorStreamMode.STREAM, ...(ngDevMode ? [{ debugName: "streamMode" }] : /* istanbul ignore next */ []));
|
|
4081
4401
|
_storeName$ = toObservable(this.storeName).pipe(skipInitialMaybe());
|
|
4082
4402
|
_documentId$ = toObservable(this.documentId).pipe(skipInitialMaybe());
|
|
4083
4403
|
_key$ = toObservable(this.key).pipe(skipInitialMaybe());
|
|
@@ -4152,10 +4472,10 @@ class DbxFirebaseDocumentStoreDirective {
|
|
|
4152
4472
|
// we assume that the input model key is a TwoWayFlatFirestoreModelKey, since the TwoWayFlatFirestoreModelKey is safe to encode in the url
|
|
4153
4473
|
return keyFromParams.subscribe((x) => this.setFlatKey(x));
|
|
4154
4474
|
}
|
|
4155
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4156
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4475
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
4476
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseDocumentStoreDirective, isStandalone: true, inputs: { storeName: { classPropertyName: "storeName", publicName: "storeName", isSignal: true, isRequired: false, transformFunction: null }, documentId: { classPropertyName: "documentId", publicName: "documentId", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, flatKey: { classPropertyName: "flatKey", publicName: "flatKey", isSignal: true, isRequired: false, transformFunction: null }, ref: { classPropertyName: "ref", publicName: "ref", isSignal: true, isRequired: false, transformFunction: null }, streamMode: { classPropertyName: "streamMode", publicName: "streamMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { storeName: "storeNameChange", documentId: "documentIdChange", key: "keyChange", flatKey: "flatKeyChange", ref: "refChange", streamMode: "streamModeChange" }, ngImport: i0 });
|
|
4157
4477
|
}
|
|
4158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreDirective, decorators: [{
|
|
4159
4479
|
type: Directive
|
|
4160
4480
|
}], ctorParameters: () => [{ type: undefined }], propDecorators: { storeName: [{ type: i0.Input, args: [{ isSignal: true, alias: "storeName", required: false }] }, { type: i0.Output, args: ["storeNameChange"] }], documentId: [{ type: i0.Input, args: [{ isSignal: true, alias: "documentId", required: false }] }, { type: i0.Output, args: ["documentIdChange"] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }, { type: i0.Output, args: ["keyChange"] }], flatKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "flatKey", required: false }] }, { type: i0.Output, args: ["flatKeyChange"] }], ref: [{ type: i0.Input, args: [{ isSignal: true, alias: "ref", required: false }] }, { type: i0.Output, args: ["refChange"] }], streamMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "streamMode", required: false }] }, { type: i0.Output, args: ["streamModeChange"] }] } });
|
|
4161
4481
|
function provideDbxFirebaseDocumentStoreDirective(sourceType, storeType) {
|
|
@@ -4180,7 +4500,7 @@ class DbxFirebaseModelViewedEventDirective {
|
|
|
4180
4500
|
dbxFirebaseDocumentStoreDirective = inject(DbxFirebaseDocumentStoreDirective);
|
|
4181
4501
|
dbxModelObjectStateService = inject(DbxModelObjectStateService);
|
|
4182
4502
|
dbxFirebaseModelTypesService = inject(DbxFirebaseModelTypesService);
|
|
4183
|
-
modelViewContext = input(undefined, { ...(ngDevMode ? { debugName: "modelViewContext" } : {}), alias: 'dbxFirebaseModelViewedEvent' });
|
|
4503
|
+
modelViewContext = input(undefined, { ...(ngDevMode ? { debugName: "modelViewContext" } : /* istanbul ignore next */ {}), alias: 'dbxFirebaseModelViewedEvent' });
|
|
4184
4504
|
constructor() {
|
|
4185
4505
|
cleanSubscription(this.dbxFirebaseDocumentStoreDirective.data$
|
|
4186
4506
|
.pipe(
|
|
@@ -4199,10 +4519,10 @@ class DbxFirebaseModelViewedEventDirective {
|
|
|
4199
4519
|
this.dbxModelObjectStateService.emitModelViewEvent({ modelKeyTypeNamePair, context });
|
|
4200
4520
|
}));
|
|
4201
4521
|
}
|
|
4202
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4203
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4522
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelViewedEventDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4523
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseModelViewedEventDirective, isStandalone: true, selector: "[dbxFirebaseModelViewedEvent]", inputs: { modelViewContext: { classPropertyName: "modelViewContext", publicName: "dbxFirebaseModelViewedEvent", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
4204
4524
|
}
|
|
4205
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelViewedEventDirective, decorators: [{
|
|
4206
4526
|
type: Directive,
|
|
4207
4527
|
args: [{
|
|
4208
4528
|
selector: '[dbxFirebaseModelViewedEvent]',
|
|
@@ -4214,13 +4534,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4214
4534
|
* Abstract directive that contains a DbxFirebaseCollectionStore and provides an interface for communicating with other directives.
|
|
4215
4535
|
*/
|
|
4216
4536
|
class DbxFirebaseCollectionStoreDirective {
|
|
4217
|
-
collectionMode = model('query', ...(ngDevMode ? [{ debugName: "collectionMode" }] : []));
|
|
4218
|
-
collectionKeys = model(undefined, ...(ngDevMode ? [{ debugName: "collectionKeys" }] : []));
|
|
4219
|
-
collectionRefs = model(undefined, ...(ngDevMode ? [{ debugName: "collectionRefs" }] : []));
|
|
4220
|
-
maxPages = model(undefined, ...(ngDevMode ? [{ debugName: "maxPages" }] : []));
|
|
4221
|
-
itemsPerPage = model(undefined, ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : []));
|
|
4222
|
-
constraints = model(undefined, ...(ngDevMode ? [{ debugName: "constraints" }] : []));
|
|
4223
|
-
waitForNonNullConstraints = model(undefined, ...(ngDevMode ? [{ debugName: "waitForNonNullConstraints" }] : []));
|
|
4537
|
+
collectionMode = model('query', ...(ngDevMode ? [{ debugName: "collectionMode" }] : /* istanbul ignore next */ []));
|
|
4538
|
+
collectionKeys = model(undefined, ...(ngDevMode ? [{ debugName: "collectionKeys" }] : /* istanbul ignore next */ []));
|
|
4539
|
+
collectionRefs = model(undefined, ...(ngDevMode ? [{ debugName: "collectionRefs" }] : /* istanbul ignore next */ []));
|
|
4540
|
+
maxPages = model(undefined, ...(ngDevMode ? [{ debugName: "maxPages" }] : /* istanbul ignore next */ []));
|
|
4541
|
+
itemsPerPage = model(undefined, ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : /* istanbul ignore next */ []));
|
|
4542
|
+
constraints = model(undefined, ...(ngDevMode ? [{ debugName: "constraints" }] : /* istanbul ignore next */ []));
|
|
4543
|
+
waitForNonNullConstraints = model(undefined, ...(ngDevMode ? [{ debugName: "waitForNonNullConstraints" }] : /* istanbul ignore next */ []));
|
|
4224
4544
|
_collectionMode = toObservable(this.collectionMode).pipe(skipInitialMaybe());
|
|
4225
4545
|
_collectionKeys = toObservable(this.collectionKeys).pipe(skipInitialMaybe());
|
|
4226
4546
|
_collectionRefs = toObservable(this.collectionRefs).pipe(skipInitialMaybe());
|
|
@@ -4283,10 +4603,10 @@ class DbxFirebaseCollectionStoreDirective {
|
|
|
4283
4603
|
restart() {
|
|
4284
4604
|
this.store.restart();
|
|
4285
4605
|
}
|
|
4286
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4287
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4606
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionStoreDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
4607
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseCollectionStoreDirective, isStandalone: true, inputs: { collectionMode: { classPropertyName: "collectionMode", publicName: "collectionMode", isSignal: true, isRequired: false, transformFunction: null }, collectionKeys: { classPropertyName: "collectionKeys", publicName: "collectionKeys", isSignal: true, isRequired: false, transformFunction: null }, collectionRefs: { classPropertyName: "collectionRefs", publicName: "collectionRefs", isSignal: true, isRequired: false, transformFunction: null }, maxPages: { classPropertyName: "maxPages", publicName: "maxPages", isSignal: true, isRequired: false, transformFunction: null }, itemsPerPage: { classPropertyName: "itemsPerPage", publicName: "itemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, constraints: { classPropertyName: "constraints", publicName: "constraints", isSignal: true, isRequired: false, transformFunction: null }, waitForNonNullConstraints: { classPropertyName: "waitForNonNullConstraints", publicName: "waitForNonNullConstraints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collectionMode: "collectionModeChange", collectionKeys: "collectionKeysChange", collectionRefs: "collectionRefsChange", maxPages: "maxPagesChange", itemsPerPage: "itemsPerPageChange", constraints: "constraintsChange", waitForNonNullConstraints: "waitForNonNullConstraintsChange" }, ngImport: i0 });
|
|
4288
4608
|
}
|
|
4289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionStoreDirective, decorators: [{
|
|
4290
4610
|
type: Directive
|
|
4291
4611
|
}], ctorParameters: () => [{ type: undefined }], propDecorators: { collectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "collectionMode", required: false }] }, { type: i0.Output, args: ["collectionModeChange"] }], collectionKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "collectionKeys", required: false }] }, { type: i0.Output, args: ["collectionKeysChange"] }], collectionRefs: [{ type: i0.Input, args: [{ isSignal: true, alias: "collectionRefs", required: false }] }, { type: i0.Output, args: ["collectionRefsChange"] }], maxPages: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxPages", required: false }] }, { type: i0.Output, args: ["maxPagesChange"] }], itemsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsPerPage", required: false }] }, { type: i0.Output, args: ["itemsPerPageChange"] }], constraints: [{ type: i0.Input, args: [{ isSignal: true, alias: "constraints", required: false }] }, { type: i0.Output, args: ["constraintsChange"] }], waitForNonNullConstraints: [{ type: i0.Input, args: [{ isSignal: true, alias: "waitForNonNullConstraints", required: false }] }, { type: i0.Output, args: ["waitForNonNullConstraintsChange"] }] } });
|
|
4292
4612
|
function provideDbxFirebaseCollectionStoreDirective(sourceType, storeType) {
|
|
@@ -4307,7 +4627,7 @@ function provideDbxFirebaseCollectionStoreDirective(sourceType, storeType) {
|
|
|
4307
4627
|
*/
|
|
4308
4628
|
class DbxFirebaseCollectionChangeDirective {
|
|
4309
4629
|
dbxFirebaseCollectionStoreDirective = inject((DbxFirebaseCollectionStoreDirective));
|
|
4310
|
-
mode = input('off', { ...(ngDevMode ? { debugName: "mode" } : {}), alias: 'dbxFirebaseCollectionChange', transform: (x) => x || 'off' });
|
|
4630
|
+
mode = input('off', { ...(ngDevMode ? { debugName: "mode" } : /* istanbul ignore next */ {}), alias: 'dbxFirebaseCollectionChange', transform: (x) => x || 'off' });
|
|
4311
4631
|
_watcher = clean(dbxFirebaseCollectionChangeWatcher(this.dbxFirebaseCollectionStoreDirective.store));
|
|
4312
4632
|
_trigger = clean(dbxFirebaseCollectionChangeTriggerForWatcher(this._watcher, () => this.restart()));
|
|
4313
4633
|
mode$ = this._watcher.mode$;
|
|
@@ -4317,7 +4637,7 @@ class DbxFirebaseCollectionChangeDirective {
|
|
|
4317
4637
|
trigger$ = this._watcher.trigger$;
|
|
4318
4638
|
modeEffect = effect(() => {
|
|
4319
4639
|
this._watcher.setMode(this.mode());
|
|
4320
|
-
}, ...(ngDevMode ? [{ debugName: "modeEffect" }] : []));
|
|
4640
|
+
}, ...(ngDevMode ? [{ debugName: "modeEffect" }] : /* istanbul ignore next */ []));
|
|
4321
4641
|
get store() {
|
|
4322
4642
|
return this._watcher.store;
|
|
4323
4643
|
}
|
|
@@ -4327,10 +4647,10 @@ class DbxFirebaseCollectionChangeDirective {
|
|
|
4327
4647
|
restart() {
|
|
4328
4648
|
this.dbxFirebaseCollectionStoreDirective.store.restart();
|
|
4329
4649
|
}
|
|
4330
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4331
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4650
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionChangeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4651
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseCollectionChangeDirective, isStandalone: true, selector: "[dbxFirebaseCollectionChange]", inputs: { mode: { classPropertyName: "mode", publicName: "dbxFirebaseCollectionChange", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
4332
4652
|
}
|
|
4333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionChangeDirective, decorators: [{
|
|
4334
4654
|
type: Directive,
|
|
4335
4655
|
args: [{
|
|
4336
4656
|
selector: '[dbxFirebaseCollectionChange]',
|
|
@@ -4345,7 +4665,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4345
4665
|
*/
|
|
4346
4666
|
class DbxFirebaseCollectionHasChangeDirective extends AbstractIfDirective {
|
|
4347
4667
|
directive = inject(DbxFirebaseCollectionChangeDirective);
|
|
4348
|
-
mode = input('addedAndRemoved', { ...(ngDevMode ? { debugName: "mode" } : {}), alias: 'dbxFirebaseCollectionHasChange', transform: (x) => x || 'addedAndRemoved' });
|
|
4668
|
+
mode = input('addedAndRemoved', { ...(ngDevMode ? { debugName: "mode" } : /* istanbul ignore next */ {}), alias: 'dbxFirebaseCollectionHasChange', transform: (x) => x || 'addedAndRemoved' });
|
|
4349
4669
|
show$ = combineLatest([toObservable(this.mode), this.directive.event$]).pipe(map(([mode, event]) => {
|
|
4350
4670
|
let show = false;
|
|
4351
4671
|
if (event.type !== 'none') {
|
|
@@ -4363,10 +4683,10 @@ class DbxFirebaseCollectionHasChangeDirective extends AbstractIfDirective {
|
|
|
4363
4683
|
}
|
|
4364
4684
|
return show;
|
|
4365
4685
|
}), shareReplay(1));
|
|
4366
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4367
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
4686
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionHasChangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4687
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseCollectionHasChangeDirective, isStandalone: true, selector: "[dbxFirebaseCollectionHasChange]", inputs: { mode: { classPropertyName: "mode", publicName: "dbxFirebaseCollectionHasChange", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
4368
4688
|
}
|
|
4369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionHasChangeDirective, decorators: [{
|
|
4370
4690
|
type: Directive,
|
|
4371
4691
|
args: [{
|
|
4372
4692
|
selector: '[dbxFirebaseCollectionHasChange]',
|
|
@@ -4388,10 +4708,10 @@ class DbxFirebaseCollectionListDirective {
|
|
|
4388
4708
|
}));
|
|
4389
4709
|
}
|
|
4390
4710
|
}
|
|
4391
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4392
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4711
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4712
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseCollectionListDirective, isStandalone: true, selector: "[dbxFirebaseCollectionList]", ngImport: i0 });
|
|
4393
4713
|
}
|
|
4394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4714
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionListDirective, decorators: [{
|
|
4395
4715
|
type: Directive,
|
|
4396
4716
|
args: [{
|
|
4397
4717
|
selector: '[dbxFirebaseCollectionList]',
|
|
@@ -4423,10 +4743,10 @@ function provideDbxFirebaseDocumentStoreTwoWayKeyProvider(sourceType) {
|
|
|
4423
4743
|
class DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective {
|
|
4424
4744
|
dbxFirebaseDocumentStoreDirective = inject(DbxFirebaseDocumentStoreDirective, { host: true });
|
|
4425
4745
|
twoWayFlatKey$ = this.dbxFirebaseDocumentStoreDirective.twoWayFlatKey$;
|
|
4426
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4427
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4746
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4747
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, isStandalone: true, selector: "[dbxFirebaseDocumentStoreTwoWayModelKeySource]", providers: provideDbxFirebaseDocumentStoreTwoWayKeyProvider(DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective), ngImport: i0 });
|
|
4428
4748
|
}
|
|
4429
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4749
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, decorators: [{
|
|
4430
4750
|
type: Directive,
|
|
4431
4751
|
args: [{
|
|
4432
4752
|
selector: '[dbxFirebaseDocumentStoreTwoWayModelKeySource]',
|
|
@@ -4444,10 +4764,10 @@ class DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective {
|
|
|
4444
4764
|
constructor() {
|
|
4445
4765
|
cleanSubscription(this.dbxFirebaseDocumentStoreDirective.store.setId(this.dbxFirebaseDocumentStoreTwoWayKeyProvider.twoWayFlatKey$));
|
|
4446
4766
|
}
|
|
4447
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4448
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
4767
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4768
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, isStandalone: true, selector: "[dbxFirebaseDocumentStoreIdFromTwoWayModelKey]", ngImport: i0 });
|
|
4449
4769
|
}
|
|
4450
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, decorators: [{
|
|
4451
4771
|
type: Directive,
|
|
4452
4772
|
args: [{
|
|
4453
4773
|
selector: '[dbxFirebaseDocumentStoreIdFromTwoWayModelKey]',
|
|
@@ -4457,11 +4777,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
4457
4777
|
|
|
4458
4778
|
const importsAndExports = [DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective];
|
|
4459
4779
|
class DbxFirebaseModelStoreModule {
|
|
4460
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4461
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
4462
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
4780
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4781
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelStoreModule, imports: [DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective], exports: [DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective] });
|
|
4782
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelStoreModule });
|
|
4463
4783
|
}
|
|
4464
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelStoreModule, decorators: [{
|
|
4465
4785
|
type: NgModule,
|
|
4466
4786
|
args: [{
|
|
4467
4787
|
imports: importsAndExports,
|
|
@@ -4535,10 +4855,10 @@ class AbstractDbxFirebaseCollectionStore extends LockSetComponentStore {
|
|
|
4535
4855
|
loadAllResults() {
|
|
4536
4856
|
return this.loader$.pipe(switchMap((x) => x.loadAllResults()));
|
|
4537
4857
|
}
|
|
4538
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4539
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
4858
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseCollectionStore, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4859
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseCollectionStore });
|
|
4540
4860
|
}
|
|
4541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
4861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseCollectionStore, decorators: [{
|
|
4542
4862
|
type: Injectable
|
|
4543
4863
|
}] });
|
|
4544
4864
|
|
|
@@ -4738,10 +5058,10 @@ class AbstractDbxFirebaseDocumentStore extends LockSetComponentStore {
|
|
|
4738
5058
|
clearRefs = this.updater((state) => ({ ...state, id: undefined, key: undefined, ref: undefined }));
|
|
4739
5059
|
setFirestoreCollection = this.updater((state, firestoreCollection) => ({ ...state, firestoreCollection }));
|
|
4740
5060
|
setFirestoreCollectionLike = this.updater((state, firestoreCollectionLike) => ({ ...state, firestoreCollectionLike }));
|
|
4741
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4742
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5061
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseDocumentStore, deps: [{ token: null, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5062
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseDocumentStore });
|
|
4743
5063
|
}
|
|
4744
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseDocumentStore, decorators: [{
|
|
4745
5065
|
type: Injectable
|
|
4746
5066
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4747
5067
|
type: Inject,
|
|
@@ -4975,10 +5295,10 @@ class AbstractDbxFirebaseCollectionWithParentStore extends AbstractDbxFirebaseCo
|
|
|
4975
5295
|
*/
|
|
4976
5296
|
_setParentDocument = this.updater((state, parent) => ({ ...state, parent }));
|
|
4977
5297
|
_setParent = this._setParentDocument;
|
|
4978
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
4979
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5298
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseCollectionWithParentStore, deps: [{ token: null, optional: true }, { token: null, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5299
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseCollectionWithParentStore });
|
|
4980
5300
|
}
|
|
4981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseCollectionWithParentStore, decorators: [{
|
|
4982
5302
|
type: Injectable
|
|
4983
5303
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4984
5304
|
type: Inject,
|
|
@@ -5036,10 +5356,10 @@ class AbstractDbxFirebaseDocumentWithParentStore extends AbstractDbxFirebaseDocu
|
|
|
5036
5356
|
* Sets the parent on the current state.
|
|
5037
5357
|
*/
|
|
5038
5358
|
_setParentDocument = this.updater((state, parent) => ({ ...state, parent }));
|
|
5039
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5040
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5359
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseDocumentWithParentStore, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
5360
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseDocumentWithParentStore });
|
|
5041
5361
|
}
|
|
5042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseDocumentWithParentStore, decorators: [{
|
|
5043
5363
|
type: Injectable
|
|
5044
5364
|
}] });
|
|
5045
5365
|
/**
|
|
@@ -5088,7 +5408,7 @@ class AbstractSingleItemDbxFirebaseDocument extends AbstractDbxFirebaseDocumentW
|
|
|
5088
5408
|
* Abstract directive that contains a DbxFirebaseCollectionWithParentStore and provides an interface for communicating with other directives.
|
|
5089
5409
|
*/
|
|
5090
5410
|
class DbxFirebaseCollectionWithParentStoreDirective extends DbxFirebaseCollectionStoreDirective {
|
|
5091
|
-
sourceMode = model(undefined, ...(ngDevMode ? [{ debugName: "sourceMode" }] : []));
|
|
5411
|
+
sourceMode = model(undefined, ...(ngDevMode ? [{ debugName: "sourceMode" }] : /* istanbul ignore next */ []));
|
|
5092
5412
|
_sourceMode$ = toObservable(this.sourceMode).pipe(skipInitialMaybe());
|
|
5093
5413
|
// eslint-disable-next-line @angular-eslint/prefer-inject -- abstract class receives store from subclass constructors
|
|
5094
5414
|
constructor(store) {
|
|
@@ -5102,10 +5422,10 @@ class DbxFirebaseCollectionWithParentStoreDirective extends DbxFirebaseCollectio
|
|
|
5102
5422
|
setSourceMode(sourceMode) {
|
|
5103
5423
|
this.sourceMode.set(sourceMode);
|
|
5104
5424
|
}
|
|
5105
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5106
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
5425
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionWithParentStoreDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
5426
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseCollectionWithParentStoreDirective, isStandalone: true, inputs: { sourceMode: { classPropertyName: "sourceMode", publicName: "sourceMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sourceMode: "sourceModeChange" }, usesInheritance: true, ngImport: i0 });
|
|
5107
5427
|
}
|
|
5108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5428
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseCollectionWithParentStoreDirective, decorators: [{
|
|
5109
5429
|
type: Directive
|
|
5110
5430
|
}], ctorParameters: () => [{ type: undefined }], propDecorators: { sourceMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceMode", required: false }] }, { type: i0.Output, args: ["sourceModeChange"] }] } });
|
|
5111
5431
|
function provideDbxFirebaseCollectionWithParentStoreDirective(sourceType, storeType) {
|
|
@@ -5123,10 +5443,10 @@ function provideDbxFirebaseCollectionWithParentStoreDirective(sourceType, storeT
|
|
|
5123
5443
|
* Directive that provides a DbxFirebaseDocumentStoreContextStore.
|
|
5124
5444
|
*/
|
|
5125
5445
|
class DbxFirebaseDocumentStoreContextStoreDirective {
|
|
5126
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5127
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5446
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreContextStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5447
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseDocumentStoreContextStoreDirective, isStandalone: true, selector: "[dbxFirebaseDocumentStoreContextStore]", providers: provideDbxFirebaseDocumentStoreContextStore(), ngImport: i0 });
|
|
5128
5448
|
}
|
|
5129
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseDocumentStoreContextStoreDirective, decorators: [{
|
|
5130
5450
|
type: Directive,
|
|
5131
5451
|
args: [{
|
|
5132
5452
|
selector: '[dbxFirebaseDocumentStoreContextStore]',
|
|
@@ -5142,10 +5462,10 @@ class SystemStateCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
|
5142
5462
|
constructor() {
|
|
5143
5463
|
super({ firestoreCollection: inject(SystemStateFirestoreCollections).systemStateCollection });
|
|
5144
5464
|
}
|
|
5145
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5146
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5465
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SystemStateCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5466
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SystemStateCollectionStore });
|
|
5147
5467
|
}
|
|
5148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SystemStateCollectionStore, decorators: [{
|
|
5149
5469
|
type: Injectable
|
|
5150
5470
|
}], ctorParameters: () => [] });
|
|
5151
5471
|
|
|
@@ -5156,10 +5476,10 @@ class DbxFirebaseSystemStateCollectionStoreDirective extends DbxFirebaseCollecti
|
|
|
5156
5476
|
constructor() {
|
|
5157
5477
|
super(inject(SystemStateCollectionStore));
|
|
5158
5478
|
}
|
|
5159
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5160
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5479
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseSystemStateCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5480
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseSystemStateCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseSystemStateCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseSystemStateCollectionStoreDirective, SystemStateCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5161
5481
|
}
|
|
5162
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseSystemStateCollectionStoreDirective, decorators: [{
|
|
5163
5483
|
type: Directive,
|
|
5164
5484
|
args: [{
|
|
5165
5485
|
selector: '[dbxFirebaseSystemStateCollection]',
|
|
@@ -5174,10 +5494,10 @@ class SystemStateDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
5174
5494
|
constructor() {
|
|
5175
5495
|
super({ firestoreCollection: inject(SystemStateFirestoreCollections).systemStateCollection });
|
|
5176
5496
|
}
|
|
5177
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5178
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5497
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SystemStateDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5498
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SystemStateDocumentStore });
|
|
5179
5499
|
}
|
|
5180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: SystemStateDocumentStore, decorators: [{
|
|
5181
5501
|
type: Injectable
|
|
5182
5502
|
}], ctorParameters: () => [] });
|
|
5183
5503
|
|
|
@@ -5196,10 +5516,10 @@ class AbstractSystemStateDocumentStoreAccessor {
|
|
|
5196
5516
|
constructor(type) {
|
|
5197
5517
|
this.systemStateDocumentStore.setId(type);
|
|
5198
5518
|
}
|
|
5199
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5200
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5519
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractSystemStateDocumentStoreAccessor, deps: "invalid", target: i0.ɵɵFactoryTarget.Injectable });
|
|
5520
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractSystemStateDocumentStoreAccessor });
|
|
5201
5521
|
}
|
|
5202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractSystemStateDocumentStoreAccessor, decorators: [{
|
|
5203
5523
|
type: Injectable
|
|
5204
5524
|
}], ctorParameters: () => [{ type: undefined }] });
|
|
5205
5525
|
|
|
@@ -5210,10 +5530,10 @@ class DbxFirebaseSystemStateDocumentStoreDirective extends DbxFirebaseDocumentSt
|
|
|
5210
5530
|
constructor() {
|
|
5211
5531
|
super(inject((SystemStateDocumentStore)));
|
|
5212
5532
|
}
|
|
5213
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5214
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5533
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseSystemStateDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5534
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseSystemStateDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseSystemStateDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseSystemStateDocumentStoreDirective, SystemStateDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5215
5535
|
}
|
|
5216
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseSystemStateDocumentStoreDirective, decorators: [{
|
|
5217
5537
|
type: Directive,
|
|
5218
5538
|
args: [{
|
|
5219
5539
|
selector: '[dbxFirebaseSystemStateDocument]',
|
|
@@ -5222,11 +5542,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
5222
5542
|
}], ctorParameters: () => [] });
|
|
5223
5543
|
|
|
5224
5544
|
class DbxFirebaseModelModule {
|
|
5225
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5226
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
5227
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
5545
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5546
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelModule, exports: [DbxFirebaseModelStoreModule] });
|
|
5547
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelModule, imports: [DbxFirebaseModelStoreModule] });
|
|
5228
5548
|
}
|
|
5229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModelModule, decorators: [{
|
|
5230
5550
|
type: NgModule,
|
|
5231
5551
|
args: [{
|
|
5232
5552
|
exports: [DbxFirebaseModelStoreModule]
|
|
@@ -5251,10 +5571,10 @@ class DbxFirebaseNotificationTemplateService {
|
|
|
5251
5571
|
date
|
|
5252
5572
|
};
|
|
5253
5573
|
}
|
|
5254
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5255
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationTemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5575
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationTemplateService });
|
|
5256
5576
|
}
|
|
5257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationTemplateService, decorators: [{
|
|
5258
5578
|
type: Injectable
|
|
5259
5579
|
}] });
|
|
5260
5580
|
|
|
@@ -5268,10 +5588,10 @@ class DbxFirebaseNotificationItemListComponent extends AbstractDbxSelectionListW
|
|
|
5268
5588
|
defaultSelectionMode: 'view'
|
|
5269
5589
|
});
|
|
5270
5590
|
}
|
|
5271
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5272
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
5591
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5592
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", 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]=\"disabled()\" [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 });
|
|
5273
5593
|
}
|
|
5274
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemListComponent, decorators: [{
|
|
5275
5595
|
type: Component,
|
|
5276
5596
|
args: [{
|
|
5277
5597
|
selector: 'dbx-firebase-notificationitem-list',
|
|
@@ -5290,10 +5610,10 @@ class DbxFirebaseNotificationItemListViewComponent extends AbstractDbxSelectionL
|
|
|
5290
5610
|
componentClass: DbxFirebaseNotificationItemListViewItemComponent,
|
|
5291
5611
|
mapValuesToItemValues: (x) => of(x.map((y) => ({ ...y, icon: y.icon, itemValue: y })))
|
|
5292
5612
|
};
|
|
5293
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5294
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
5613
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5614
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationItemListViewComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-list-view", providers: provideDbxListView(DbxFirebaseNotificationItemListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1$1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5295
5615
|
}
|
|
5296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemListViewComponent, decorators: [{
|
|
5297
5617
|
type: Component,
|
|
5298
5618
|
args: [{
|
|
5299
5619
|
selector: 'dbx-firebase-notificationitem-list-view',
|
|
@@ -5319,8 +5639,8 @@ class DbxFirebaseNotificationItemListViewItemComponent extends AbstractDbxValueL
|
|
|
5319
5639
|
get date() {
|
|
5320
5640
|
return this.pairGetter().date;
|
|
5321
5641
|
}
|
|
5322
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5323
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
5642
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemListViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5643
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationItemListViewItemComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
5324
5644
|
<div class="dbx-list-item-padded dbx-list-two-line-item dbx-firebase-notificationitem-list-view-item">
|
|
5325
5645
|
<div class="item-left">
|
|
5326
5646
|
<span class="notificationitem-subject">{{ subject }}</span>
|
|
@@ -5330,7 +5650,7 @@ class DbxFirebaseNotificationItemListViewItemComponent extends AbstractDbxValueL
|
|
|
5330
5650
|
</div>
|
|
5331
5651
|
`, isInline: true, dependencies: [{ kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: CutTextPipe, name: "cutText" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5332
5652
|
}
|
|
5333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemListViewItemComponent, decorators: [{
|
|
5334
5654
|
type: Component,
|
|
5335
5655
|
args: [{
|
|
5336
5656
|
template: `
|
|
@@ -5352,13 +5672,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
5352
5672
|
* Presentational component for notification item content, displaying subject, message, and date.
|
|
5353
5673
|
*/
|
|
5354
5674
|
class DbxFirebaseNotificationItemContentComponent {
|
|
5355
|
-
subject = input(...(ngDevMode ? [undefined, { debugName: "subject" }] : []));
|
|
5356
|
-
message = input(...(ngDevMode ? [undefined, { debugName: "message" }] : []));
|
|
5357
|
-
date = input(...(ngDevMode ? [undefined, { debugName: "date" }] : []));
|
|
5358
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5359
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
5675
|
+
subject = input(...(ngDevMode ? [undefined, { debugName: "subject" }] : /* istanbul ignore next */ []));
|
|
5676
|
+
message = input(...(ngDevMode ? [undefined, { debugName: "message" }] : /* istanbul ignore next */ []));
|
|
5677
|
+
date = input(...(ngDevMode ? [undefined, { debugName: "date" }] : /* istanbul ignore next */ []));
|
|
5678
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5679
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseNotificationItemContentComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-content", inputs: { subject: { classPropertyName: "subject", publicName: "subject", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"dbx-firebase-notificationitem-content\">\n <div class=\"notificationitem-header dbx-pb2\">\n @if (subject()) {\n <div class=\"notificationitem-subject dbx-pb1\">{{ subject() }}</div>\n }\n <ng-content select=\"[header]\"></ng-content>\n @if (date()) {\n <div class=\"notificationitem-date dbx-label dbx-small\">{{ date() | date: 'medium' }}</div>\n }\n </div>\n <ng-content select=\"[premessage]\"></ng-content>\n <div class=\"notificationitem-message\">{{ message() }}</div>\n <ng-content></ng-content>\n</div>\n", styles: [".dbx-firebase-notificationitem-content .notificationitem-subject{font-size:1.25em}\n"], dependencies: [{ kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5360
5680
|
}
|
|
5361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemContentComponent, decorators: [{
|
|
5362
5682
|
type: Component,
|
|
5363
5683
|
args: [{ selector: 'dbx-firebase-notificationitem-content', imports: [DatePipe], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<div class=\"dbx-firebase-notificationitem-content\">\n <div class=\"notificationitem-header dbx-pb2\">\n @if (subject()) {\n <div class=\"notificationitem-subject dbx-pb1\">{{ subject() }}</div>\n }\n <ng-content select=\"[header]\"></ng-content>\n @if (date()) {\n <div class=\"notificationitem-date dbx-label dbx-small\">{{ date() | date: 'medium' }}</div>\n }\n </div>\n <ng-content select=\"[premessage]\"></ng-content>\n <div class=\"notificationitem-message\">{{ message() }}</div>\n <ng-content></ng-content>\n</div>\n", styles: [".dbx-firebase-notificationitem-content .notificationitem-subject{font-size:1.25em}\n"] }]
|
|
5364
5684
|
}], propDecorators: { subject: [{ type: i0.Input, args: [{ isSignal: true, alias: "subject", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], date: [{ type: i0.Input, args: [{ isSignal: true, alias: "date", required: false }] }] } });
|
|
@@ -5424,10 +5744,10 @@ class DbxFirebaseNotificationItemWidgetService {
|
|
|
5424
5744
|
type: DEFAULT_FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE
|
|
5425
5745
|
}, override);
|
|
5426
5746
|
}
|
|
5427
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5428
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5747
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemWidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5748
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemWidgetService });
|
|
5429
5749
|
}
|
|
5430
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemWidgetService, decorators: [{
|
|
5431
5751
|
type: Injectable
|
|
5432
5752
|
}] });
|
|
5433
5753
|
|
|
@@ -5436,7 +5756,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
5436
5756
|
* display component based on the notification's template type.
|
|
5437
5757
|
*/
|
|
5438
5758
|
class DbxFirebaseNotificationItemViewComponent {
|
|
5439
|
-
item = input(...(ngDevMode ? [undefined, { debugName: "item" }] : []));
|
|
5759
|
+
item = input(...(ngDevMode ? [undefined, { debugName: "item" }] : /* istanbul ignore next */ []));
|
|
5440
5760
|
configSignal = computed(() => {
|
|
5441
5761
|
const data = this.item();
|
|
5442
5762
|
let config = undefined;
|
|
@@ -5449,13 +5769,13 @@ class DbxFirebaseNotificationItemViewComponent {
|
|
|
5449
5769
|
};
|
|
5450
5770
|
}
|
|
5451
5771
|
return config;
|
|
5452
|
-
}, ...(ngDevMode ? [{ debugName: "configSignal" }] : []));
|
|
5453
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5454
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.
|
|
5772
|
+
}, ...(ngDevMode ? [{ debugName: "configSignal" }] : /* istanbul ignore next */ []));
|
|
5773
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5774
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseNotificationItemViewComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-view", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
5455
5775
|
<dbx-widget-view [config]="configSignal()"></dbx-widget-view>
|
|
5456
5776
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxWidgetViewComponent, selector: "dbx-widget-view", inputs: ["config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5457
5777
|
}
|
|
5458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5778
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemViewComponent, decorators: [{
|
|
5459
5779
|
type: Component,
|
|
5460
5780
|
args: [{
|
|
5461
5781
|
selector: 'dbx-firebase-notificationitem-view',
|
|
@@ -5477,10 +5797,10 @@ class AbstractDbxFirebaseNotificationItemWidgetComponent extends AbstractDbxWidg
|
|
|
5477
5797
|
get notificationItem() {
|
|
5478
5798
|
return this.data;
|
|
5479
5799
|
}
|
|
5480
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5481
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5800
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseNotificationItemWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5801
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: AbstractDbxFirebaseNotificationItemWidgetComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
5482
5802
|
}
|
|
5483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: AbstractDbxFirebaseNotificationItemWidgetComponent, decorators: [{
|
|
5484
5804
|
type: Directive
|
|
5485
5805
|
}] });
|
|
5486
5806
|
|
|
@@ -5497,10 +5817,10 @@ class DbxFirebaseNotificationItemDefaultViewComponent extends AbstractDbxFirebas
|
|
|
5497
5817
|
get date() {
|
|
5498
5818
|
return this.notificationItem.cat;
|
|
5499
5819
|
}
|
|
5500
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5501
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
5820
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemDefaultViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5821
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationItemDefaultViewComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-view-default", usesInheritance: true, ngImport: i0, template: '<dbx-firebase-notificationitem-content [subject]="subject" [message]="message" [date]="date"></dbx-firebase-notificationitem-content>', isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseNotificationItemContentComponent, selector: "dbx-firebase-notificationitem-content", inputs: ["subject", "message", "date"] }] });
|
|
5502
5822
|
}
|
|
5503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5823
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemDefaultViewComponent, decorators: [{
|
|
5504
5824
|
type: Component,
|
|
5505
5825
|
args: [{
|
|
5506
5826
|
selector: 'dbx-firebase-notificationitem-view-default',
|
|
@@ -5532,10 +5852,10 @@ class DbxFirebaseNotificationItemStorePopoverComponent extends AbstractPopoverDi
|
|
|
5532
5852
|
emptyText = this.params.header ?? 'There are no notifications.';
|
|
5533
5853
|
makeNotificationItemAnchor = this.params.makeNotificationItemAnchor;
|
|
5534
5854
|
notificationItemsLoadingState$ = this.params.notificationItemsLoadingState$;
|
|
5535
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5536
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.
|
|
5855
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemStorePopoverComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5856
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationItemStorePopoverComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-notificationitem-list [state]=\"notificationItemsLoadingState$\" dbxListItemModifier [dbxListItemAnchorModifier]=\"makeNotificationItemAnchor\">\n <dbx-list-empty-content empty>\n <p>{{ emptyText }}</p>\n </dbx-list-empty-content>\n </dbx-firebase-notificationitem-list>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", dependencies: [{ kind: "ngmodule", type: DbxPopoverInteractionModule }, { kind: "component", type: i1$1.DbxPopoverContentComponent, selector: "dbx-popover-content" }, { kind: "component", type: i1$1.DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { kind: "directive", type: i1$1.DbxPopoverScrollContentDirective, selector: "dbx-popover-scroll-content,[dbxPopoverScrollContent],.dbx-popover-scroll-content" }, { kind: "ngmodule", type: DbxListModifierModule }, { kind: "directive", type: i1$1.DbxValueListItemModifierDirective, selector: "dbxListItemModifier,[dbxListItemModifier]", inputs: ["dbxListItemModifier"] }, { kind: "component", type: DbxFirebaseNotificationItemListComponent, selector: "dbx-firebase-notificationitem-list" }, { kind: "component", type: DbxListEmptyContentComponent, selector: "dbx-list-empty-content" }, { kind: "directive", type: DbxListItemAnchorModifierDirective, selector: "[dbxListItemAnchorModifier]", inputs: ["dbxListItemAnchorModifier"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5537
5857
|
}
|
|
5538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemStorePopoverComponent, decorators: [{
|
|
5539
5859
|
type: Component,
|
|
5540
5860
|
args: [{ imports: [DbxPopoverInteractionModule, DbxListModifierModule, DbxFirebaseNotificationItemListComponent, DbxListEmptyContentComponent, DbxListItemAnchorModifierDirective], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-notificationitem-list [state]=\"notificationItemsLoadingState$\" dbxListItemModifier [dbxListItemAnchorModifier]=\"makeNotificationItemAnchor\">\n <dbx-list-empty-content empty>\n <p>{{ emptyText }}</p>\n </dbx-list-empty-content>\n </dbx-firebase-notificationitem-list>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n" }]
|
|
5541
5861
|
}] });
|
|
@@ -5559,18 +5879,18 @@ class DbxFirebaseNotificationItemStore extends ComponentStore {
|
|
|
5559
5879
|
// MARK: State Changes
|
|
5560
5880
|
setItems = this.updater((state, items) => ({ ...state, items }));
|
|
5561
5881
|
setSelectedId = this.updater((state, selectedId) => ({ ...state, selectedId }));
|
|
5562
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5563
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5882
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5883
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemStore });
|
|
5564
5884
|
}
|
|
5565
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5885
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemStore, decorators: [{
|
|
5566
5886
|
type: Injectable
|
|
5567
5887
|
}], ctorParameters: () => [] });
|
|
5568
5888
|
|
|
5569
5889
|
class DbxFirebaseNotificationItemStorePopoverButtonComponent extends AbstractPopoverRefDirective {
|
|
5570
5890
|
_dbxPopoverService = inject(DbxPopoverService);
|
|
5571
5891
|
_dbxFirebaseNotificationItemStore = inject(DbxFirebaseNotificationItemStore, { optional: true });
|
|
5572
|
-
buttonElement = viewChild('button', { ...(ngDevMode ? { debugName: "buttonElement" } : {}), read: ElementRef });
|
|
5573
|
-
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
5892
|
+
buttonElement = viewChild('button', { ...(ngDevMode ? { debugName: "buttonElement" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
5893
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : /* istanbul ignore next */ []));
|
|
5574
5894
|
showNotificationsPopover() {
|
|
5575
5895
|
const origin = this.buttonElement()?.nativeElement;
|
|
5576
5896
|
this.showPopover(origin);
|
|
@@ -5590,12 +5910,12 @@ class DbxFirebaseNotificationItemStorePopoverButtonComponent extends AbstractPop
|
|
|
5590
5910
|
...config
|
|
5591
5911
|
});
|
|
5592
5912
|
}
|
|
5593
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5594
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.
|
|
5913
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemStorePopoverButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5914
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.3", type: DbxFirebaseNotificationItemStorePopoverButtonComponent, isStandalone: true, selector: "dbx-firebase-notification-item-store-popover-button", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "buttonElement", first: true, predicate: ["button"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
5595
5915
|
<dbx-icon-button #button (buttonClick)="showNotificationsPopover()" icon="notifications"></dbx-icon-button>
|
|
5596
5916
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxIconButtonComponent, selector: "dbx-icon-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5597
5917
|
}
|
|
5598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5918
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationItemStorePopoverButtonComponent, decorators: [{
|
|
5599
5919
|
type: Component,
|
|
5600
5920
|
args: [{
|
|
5601
5921
|
selector: 'dbx-firebase-notification-item-store-popover-button',
|
|
@@ -5620,10 +5940,10 @@ class NotificationBoxDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
5620
5940
|
recipients$ = this.data$.pipe(map((x) => x.r), shareReplay(1));
|
|
5621
5941
|
updateNotificationBox = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationBox.updateNotificationBox.update);
|
|
5622
5942
|
updateNotificationBoxRecipient = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationBox.updateNotificationBox.recipient);
|
|
5623
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5624
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5943
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationBoxDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5944
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationBoxDocumentStore });
|
|
5625
5945
|
}
|
|
5626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationBoxDocumentStore, decorators: [{
|
|
5627
5947
|
type: Injectable
|
|
5628
5948
|
}], ctorParameters: () => [] });
|
|
5629
5949
|
|
|
@@ -5645,10 +5965,10 @@ class NotificationDocumentStore extends AbstractDbxFirebaseDocumentWithParentSto
|
|
|
5645
5965
|
sendAttemptsCount$ = this.data$.pipe(map((x) => x.a), distinctUntilChanged(), shareReplay(1));
|
|
5646
5966
|
isUnique$ = this.data$.pipe(map((x) => x.ut), distinctUntilChanged(), shareReplay(1));
|
|
5647
5967
|
sendNotification = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notification.updateNotification.send);
|
|
5648
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5649
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
5968
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5969
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationDocumentStore });
|
|
5650
5970
|
}
|
|
5651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationDocumentStore, decorators: [{
|
|
5652
5972
|
type: Injectable
|
|
5653
5973
|
}], ctorParameters: () => [] });
|
|
5654
5974
|
|
|
@@ -5659,10 +5979,10 @@ class DbxFirebaseNotificationDocumentStoreDirective extends DbxFirebaseDocumentS
|
|
|
5659
5979
|
constructor() {
|
|
5660
5980
|
super(inject(NotificationDocumentStore));
|
|
5661
5981
|
}
|
|
5662
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5663
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
5982
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5983
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationDocumentStoreDirective, NotificationDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5664
5984
|
}
|
|
5665
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
5985
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationDocumentStoreDirective, decorators: [{
|
|
5666
5986
|
type: Directive,
|
|
5667
5987
|
args: [{
|
|
5668
5988
|
selector: '[dbxFirebaseNotificationDocument]',
|
|
@@ -5682,10 +6002,10 @@ class NotificationCollectionStore extends AbstractDbxFirebaseCollectionWithParen
|
|
|
5682
6002
|
this.setParentStore(parent);
|
|
5683
6003
|
}
|
|
5684
6004
|
}
|
|
5685
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5686
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6005
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6006
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationCollectionStore });
|
|
5687
6007
|
}
|
|
5688
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6008
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationCollectionStore, decorators: [{
|
|
5689
6009
|
type: Injectable
|
|
5690
6010
|
}], ctorParameters: () => [] });
|
|
5691
6011
|
|
|
@@ -5696,10 +6016,10 @@ class DbxFirebaseNotificationCollectionStoreDirective extends DbxFirebaseCollect
|
|
|
5696
6016
|
constructor() {
|
|
5697
6017
|
super(inject(NotificationCollectionStore));
|
|
5698
6018
|
}
|
|
5699
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5700
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6019
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6020
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationCollection]", providers: provideDbxFirebaseCollectionWithParentStoreDirective(DbxFirebaseNotificationCollectionStoreDirective, NotificationCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5701
6021
|
}
|
|
5702
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6022
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationCollectionStoreDirective, decorators: [{
|
|
5703
6023
|
type: Directive,
|
|
5704
6024
|
args: [{
|
|
5705
6025
|
selector: '[dbxFirebaseNotificationCollection]',
|
|
@@ -5715,10 +6035,10 @@ class DbxFirebaseNotificationBoxDocumentStoreDirective extends DbxFirebaseDocume
|
|
|
5715
6035
|
constructor() {
|
|
5716
6036
|
super(inject(NotificationBoxDocumentStore));
|
|
5717
6037
|
}
|
|
5718
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5719
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6038
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationBoxDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6039
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationBoxDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationBoxDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationBoxDocumentStoreDirective, NotificationBoxDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5720
6040
|
}
|
|
5721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationBoxDocumentStoreDirective, decorators: [{
|
|
5722
6042
|
type: Directive,
|
|
5723
6043
|
args: [{
|
|
5724
6044
|
selector: '[dbxFirebaseNotificationBoxDocument]',
|
|
@@ -5734,10 +6054,10 @@ class NotificationBoxCollectionStore extends AbstractDbxFirebaseCollectionStore
|
|
|
5734
6054
|
constructor() {
|
|
5735
6055
|
super({ firestoreCollection: inject(NotificationFirestoreCollections).notificationBoxCollection });
|
|
5736
6056
|
}
|
|
5737
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5738
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6057
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationBoxCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6058
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationBoxCollectionStore });
|
|
5739
6059
|
}
|
|
5740
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6060
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationBoxCollectionStore, decorators: [{
|
|
5741
6061
|
type: Injectable
|
|
5742
6062
|
}], ctorParameters: () => [] });
|
|
5743
6063
|
|
|
@@ -5748,10 +6068,10 @@ class DbxFirebaseNotificationBoxCollectionStoreDirective extends DbxFirebaseColl
|
|
|
5748
6068
|
constructor() {
|
|
5749
6069
|
super(inject(NotificationBoxCollectionStore));
|
|
5750
6070
|
}
|
|
5751
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5752
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6071
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationBoxCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6072
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationBoxCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationBoxCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseNotificationBoxCollectionStoreDirective, NotificationBoxCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5753
6073
|
}
|
|
5754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationBoxCollectionStoreDirective, decorators: [{
|
|
5755
6075
|
type: Directive,
|
|
5756
6076
|
args: [{
|
|
5757
6077
|
selector: '[dbxFirebaseNotificationBoxCollection]',
|
|
@@ -5767,10 +6087,10 @@ class NotificationSummaryCollectionStore extends AbstractDbxFirebaseCollectionSt
|
|
|
5767
6087
|
constructor() {
|
|
5768
6088
|
super({ firestoreCollection: inject(NotificationFirestoreCollections).notificationSummaryCollection });
|
|
5769
6089
|
}
|
|
5770
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5771
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6090
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationSummaryCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6091
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationSummaryCollectionStore });
|
|
5772
6092
|
}
|
|
5773
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationSummaryCollectionStore, decorators: [{
|
|
5774
6094
|
type: Injectable
|
|
5775
6095
|
}], ctorParameters: () => [] });
|
|
5776
6096
|
|
|
@@ -5781,10 +6101,10 @@ class DbxFirebaseNotificationSummaryCollectionStoreDirective extends DbxFirebase
|
|
|
5781
6101
|
constructor() {
|
|
5782
6102
|
super(inject(NotificationSummaryCollectionStore));
|
|
5783
6103
|
}
|
|
5784
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5785
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6104
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationSummaryCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6105
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationSummaryCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationSummaryCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseNotificationSummaryCollectionStoreDirective, NotificationSummaryCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5786
6106
|
}
|
|
5787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationSummaryCollectionStoreDirective, decorators: [{
|
|
5788
6108
|
type: Directive,
|
|
5789
6109
|
args: [{
|
|
5790
6110
|
selector: '[dbxFirebaseNotificationSummaryCollection]',
|
|
@@ -5816,10 +6136,10 @@ class NotificationSummaryDocumentStore extends AbstractDbxFirebaseDocumentStore
|
|
|
5816
6136
|
return combineLatest([asObservable(checkLastReadIfCreatedBeforeObs), this.notificationItems$]).pipe(map(([c, items]) => unreadNotificationItems(items, c)));
|
|
5817
6137
|
}
|
|
5818
6138
|
updateNotificationSummary = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationSummary.updateNotificationSummary.update);
|
|
5819
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5820
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6139
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationSummaryDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6140
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationSummaryDocumentStore });
|
|
5821
6141
|
}
|
|
5822
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationSummaryDocumentStore, decorators: [{
|
|
5823
6143
|
type: Injectable
|
|
5824
6144
|
}], ctorParameters: () => [] });
|
|
5825
6145
|
|
|
@@ -5830,10 +6150,10 @@ class DbxFirebaseNotificationSummaryDocumentStoreDirective extends DbxFirebaseDo
|
|
|
5830
6150
|
constructor() {
|
|
5831
6151
|
super(inject(NotificationSummaryDocumentStore));
|
|
5832
6152
|
}
|
|
5833
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5834
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6153
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationSummaryDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6154
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationSummaryDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationSummaryDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationSummaryDocumentStoreDirective, NotificationSummaryDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5835
6155
|
}
|
|
5836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationSummaryDocumentStoreDirective, decorators: [{
|
|
5837
6157
|
type: Directive,
|
|
5838
6158
|
args: [{
|
|
5839
6159
|
selector: '[dbxFirebaseNotificationSummaryDocument]',
|
|
@@ -5849,10 +6169,10 @@ class NotificationUserCollectionStore extends AbstractDbxFirebaseCollectionStore
|
|
|
5849
6169
|
constructor() {
|
|
5850
6170
|
super({ firestoreCollection: inject(NotificationFirestoreCollections).notificationUserCollection });
|
|
5851
6171
|
}
|
|
5852
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5853
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6172
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationUserCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6173
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationUserCollectionStore });
|
|
5854
6174
|
}
|
|
5855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationUserCollectionStore, decorators: [{
|
|
5856
6176
|
type: Injectable
|
|
5857
6177
|
}], ctorParameters: () => [] });
|
|
5858
6178
|
|
|
@@ -5863,10 +6183,10 @@ class DbxFirebaseNotificationUserCollectionStoreDirective extends DbxFirebaseCol
|
|
|
5863
6183
|
constructor() {
|
|
5864
6184
|
super(inject(NotificationUserCollectionStore));
|
|
5865
6185
|
}
|
|
5866
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5867
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6186
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationUserCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6187
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationUserCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationUserCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseNotificationUserCollectionStoreDirective, NotificationUserCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5868
6188
|
}
|
|
5869
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationUserCollectionStoreDirective, decorators: [{
|
|
5870
6190
|
type: Directive,
|
|
5871
6191
|
args: [{
|
|
5872
6192
|
selector: '[dbxFirebaseNotificationUserCollection]',
|
|
@@ -5885,10 +6205,10 @@ class NotificationUserDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
5885
6205
|
}
|
|
5886
6206
|
updateNotificationUser = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationUser.updateNotificationUser.update);
|
|
5887
6207
|
resyncNotificationUser = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationUser.updateNotificationUser.resync);
|
|
5888
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5889
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6208
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationUserDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6209
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationUserDocumentStore });
|
|
5890
6210
|
}
|
|
5891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: NotificationUserDocumentStore, decorators: [{
|
|
5892
6212
|
type: Injectable
|
|
5893
6213
|
}], ctorParameters: () => [] });
|
|
5894
6214
|
|
|
@@ -5899,10 +6219,10 @@ class DbxFirebaseNotificationUserDocumentStoreDirective extends DbxFirebaseDocum
|
|
|
5899
6219
|
constructor() {
|
|
5900
6220
|
super(inject(NotificationUserDocumentStore));
|
|
5901
6221
|
}
|
|
5902
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
5903
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
6222
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationUserDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6223
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseNotificationUserDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationUserDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationUserDocumentStoreDirective, NotificationUserDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5904
6224
|
}
|
|
5905
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6225
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseNotificationUserDocumentStoreDirective, decorators: [{
|
|
5906
6226
|
type: Directive,
|
|
5907
6227
|
args: [{
|
|
5908
6228
|
selector: '[dbxFirebaseNotificationUserDocument]',
|
|
@@ -6024,10 +6344,10 @@ class DbxFirebaseStorageFileDownloadStorage {
|
|
|
6024
6344
|
getStorageKeyForUid(uid) {
|
|
6025
6345
|
return `sf_dl_cache_${uid}`;
|
|
6026
6346
|
}
|
|
6027
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6028
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6347
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDownloadStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6348
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDownloadStorage });
|
|
6029
6349
|
}
|
|
6030
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDownloadStorage, decorators: [{
|
|
6031
6351
|
type: Injectable
|
|
6032
6352
|
}] });
|
|
6033
6353
|
|
|
@@ -6184,10 +6504,10 @@ class DbxFirebaseStorageFileDownloadService {
|
|
|
6184
6504
|
};
|
|
6185
6505
|
});
|
|
6186
6506
|
}
|
|
6187
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6188
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6507
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6508
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDownloadService });
|
|
6189
6509
|
}
|
|
6190
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6510
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDownloadService, decorators: [{
|
|
6191
6511
|
type: Injectable
|
|
6192
6512
|
}] });
|
|
6193
6513
|
|
|
@@ -6198,31 +6518,31 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6198
6518
|
/**
|
|
6199
6519
|
* The StorageFileKey to set up the download button for.
|
|
6200
6520
|
*/
|
|
6201
|
-
storageFileKey = input(...(ngDevMode ? [undefined, { debugName: "storageFileKey" }] : []));
|
|
6521
|
+
storageFileKey = input(...(ngDevMode ? [undefined, { debugName: "storageFileKey" }] : /* istanbul ignore next */ []));
|
|
6202
6522
|
/**
|
|
6203
6523
|
* The download URL to use for the download button.
|
|
6204
6524
|
*/
|
|
6205
|
-
storageFileDownloadUrl = input(...(ngDevMode ? [undefined, { debugName: "storageFileDownloadUrl" }] : []));
|
|
6525
|
+
storageFileDownloadUrl = input(...(ngDevMode ? [undefined, { debugName: "storageFileDownloadUrl" }] : /* istanbul ignore next */ []));
|
|
6206
6526
|
/**
|
|
6207
6527
|
* The MIME type to use the embed component.
|
|
6208
6528
|
*/
|
|
6209
|
-
embedMimeType = input(...(ngDevMode ? [undefined, { debugName: "embedMimeType" }] : []));
|
|
6529
|
+
embedMimeType = input(...(ngDevMode ? [undefined, { debugName: "embedMimeType" }] : /* istanbul ignore next */ []));
|
|
6210
6530
|
/**
|
|
6211
6531
|
* Whether or not to show a preview button.
|
|
6212
6532
|
*
|
|
6213
6533
|
* Defaults to true.
|
|
6214
6534
|
*/
|
|
6215
|
-
showPreviewButton = input(true, ...(ngDevMode ? [{ debugName: "showPreviewButton" }] : []));
|
|
6535
|
+
showPreviewButton = input(true, ...(ngDevMode ? [{ debugName: "showPreviewButton" }] : /* istanbul ignore next */ []));
|
|
6216
6536
|
/**
|
|
6217
6537
|
* Whether or not to pre-load the download URL from the source.
|
|
6218
6538
|
*/
|
|
6219
|
-
preload = input(undefined, ...(ngDevMode ? [{ debugName: "preload" }] : []));
|
|
6539
|
+
preload = input(undefined, ...(ngDevMode ? [{ debugName: "preload" }] : /* istanbul ignore next */ []));
|
|
6220
6540
|
/**
|
|
6221
6541
|
* Output event emitted when the download details change.
|
|
6222
6542
|
*/
|
|
6223
6543
|
downloadDetailsChange = output();
|
|
6224
|
-
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
6225
|
-
source = input(...(ngDevMode ? [undefined, { debugName: "source" }] : []));
|
|
6544
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : /* istanbul ignore next */ []));
|
|
6545
|
+
source = input(...(ngDevMode ? [undefined, { debugName: "source" }] : /* istanbul ignore next */ []));
|
|
6226
6546
|
source$ = toObservable(this.source);
|
|
6227
6547
|
configSignal = computed(() => {
|
|
6228
6548
|
const config = this.config();
|
|
@@ -6237,22 +6557,22 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6237
6557
|
previewText: config?.previewText ?? 'View File'
|
|
6238
6558
|
};
|
|
6239
6559
|
return result;
|
|
6240
|
-
}, ...(ngDevMode ? [{ debugName: "configSignal" }] : []));
|
|
6560
|
+
}, ...(ngDevMode ? [{ debugName: "configSignal" }] : /* istanbul ignore next */ []));
|
|
6241
6561
|
preloadSignal = computed(() => {
|
|
6242
6562
|
const preload = this.preload();
|
|
6243
6563
|
const source = this.source();
|
|
6244
6564
|
return preload ?? source?.preload ?? false;
|
|
6245
|
-
}, ...(ngDevMode ? [{ debugName: "preloadSignal" }] : []));
|
|
6246
|
-
downloadUrlSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "downloadUrlSignal" }] : []));
|
|
6247
|
-
downloadMimeTypeSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "downloadMimeTypeSignal" }] : []));
|
|
6248
|
-
downloadUrlExpiresAtSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "downloadUrlExpiresAtSignal" }] : []));
|
|
6565
|
+
}, ...(ngDevMode ? [{ debugName: "preloadSignal" }] : /* istanbul ignore next */ []));
|
|
6566
|
+
downloadUrlSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "downloadUrlSignal" }] : /* istanbul ignore next */ []));
|
|
6567
|
+
downloadMimeTypeSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "downloadMimeTypeSignal" }] : /* istanbul ignore next */ []));
|
|
6568
|
+
downloadUrlExpiresAtSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "downloadUrlExpiresAtSignal" }] : /* istanbul ignore next */ []));
|
|
6249
6569
|
storageFileKeyFromInput$ = toObservable(this.storageFileKey).pipe(distinctUntilChanged(), shareReplay(1));
|
|
6250
6570
|
storageFileKeyFromSource$ = this.source$.pipe(map((source) => source?.storageFileKey), maybeValueFromObservableOrValue(), distinctUntilChanged(), shareReplay(1));
|
|
6251
6571
|
storageFileKey$ = combineLatest([this.storageFileKeyFromInput$, this.storageFileKeyFromSource$]).pipe(map(([storageFileKeyFromInput, storageFileKeyFromSource]) => {
|
|
6252
6572
|
return storageFileKeyFromInput ?? storageFileKeyFromSource;
|
|
6253
6573
|
}), distinctUntilChanged(), shareReplay(1));
|
|
6254
6574
|
storageFileKeySignal = toSignal(this.storageFileKey$);
|
|
6255
|
-
hasDownloadUrlSignal = computed(() => Boolean(this.downloadUrlSignal()), ...(ngDevMode ? [{ debugName: "hasDownloadUrlSignal" }] : []));
|
|
6575
|
+
hasDownloadUrlSignal = computed(() => Boolean(this.downloadUrlSignal()), ...(ngDevMode ? [{ debugName: "hasDownloadUrlSignal" }] : /* istanbul ignore next */ []));
|
|
6256
6576
|
buttonStyleSignal = computed(() => {
|
|
6257
6577
|
const config = this.configSignal();
|
|
6258
6578
|
const result = {
|
|
@@ -6260,7 +6580,7 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6260
6580
|
...config.buttonStyle
|
|
6261
6581
|
};
|
|
6262
6582
|
return result;
|
|
6263
|
-
}, ...(ngDevMode ? [{ debugName: "buttonStyleSignal" }] : []));
|
|
6583
|
+
}, ...(ngDevMode ? [{ debugName: "buttonStyleSignal" }] : /* istanbul ignore next */ []));
|
|
6264
6584
|
previewButtonStyleSignal = computed(() => {
|
|
6265
6585
|
const config = this.configSignal();
|
|
6266
6586
|
const result = {
|
|
@@ -6268,25 +6588,25 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6268
6588
|
...config.previewButtonStyle
|
|
6269
6589
|
};
|
|
6270
6590
|
return result;
|
|
6271
|
-
}, ...(ngDevMode ? [{ debugName: "previewButtonStyleSignal" }] : []));
|
|
6591
|
+
}, ...(ngDevMode ? [{ debugName: "previewButtonStyleSignal" }] : /* istanbul ignore next */ []));
|
|
6272
6592
|
iconSignal = computed(() => {
|
|
6273
6593
|
const config = this.configSignal();
|
|
6274
6594
|
const hasDownloadUrl = this.hasDownloadUrlSignal();
|
|
6275
6595
|
return hasDownloadUrl ? (config.downloadReadyIcon ?? config.icon) : config.icon;
|
|
6276
|
-
}, ...(ngDevMode ? [{ debugName: "iconSignal" }] : []));
|
|
6596
|
+
}, ...(ngDevMode ? [{ debugName: "iconSignal" }] : /* istanbul ignore next */ []));
|
|
6277
6597
|
textSignal = computed(() => {
|
|
6278
6598
|
const config = this.configSignal();
|
|
6279
6599
|
const hasDownloadUrl = this.hasDownloadUrlSignal();
|
|
6280
6600
|
return hasDownloadUrl ? (config.downloadReadyText ?? config.text) : config.text;
|
|
6281
|
-
}, ...(ngDevMode ? [{ debugName: "textSignal" }] : []));
|
|
6601
|
+
}, ...(ngDevMode ? [{ debugName: "textSignal" }] : /* istanbul ignore next */ []));
|
|
6282
6602
|
previewIconSignal = computed(() => {
|
|
6283
6603
|
const config = this.configSignal();
|
|
6284
6604
|
return config.previewIcon;
|
|
6285
|
-
}, ...(ngDevMode ? [{ debugName: "previewIconSignal" }] : []));
|
|
6605
|
+
}, ...(ngDevMode ? [{ debugName: "previewIconSignal" }] : /* istanbul ignore next */ []));
|
|
6286
6606
|
previewTextSignal = computed(() => {
|
|
6287
6607
|
const config = this.configSignal();
|
|
6288
6608
|
return config.previewText;
|
|
6289
|
-
}, ...(ngDevMode ? [{ debugName: "previewTextSignal" }] : []));
|
|
6609
|
+
}, ...(ngDevMode ? [{ debugName: "previewTextSignal" }] : /* istanbul ignore next */ []));
|
|
6290
6610
|
anchorSignal = computed(() => {
|
|
6291
6611
|
const downloadUrl = this.downloadUrlSignal();
|
|
6292
6612
|
let result;
|
|
@@ -6296,23 +6616,23 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6296
6616
|
};
|
|
6297
6617
|
}
|
|
6298
6618
|
return result;
|
|
6299
|
-
}, ...(ngDevMode ? [{ debugName: "anchorSignal" }] : []));
|
|
6619
|
+
}, ...(ngDevMode ? [{ debugName: "anchorSignal" }] : /* istanbul ignore next */ []));
|
|
6300
6620
|
storageFileDownloadUrlEffect = effect(() => {
|
|
6301
6621
|
const downloadUrl = this.storageFileDownloadUrl();
|
|
6302
6622
|
if (downloadUrl || downloadUrl === null) {
|
|
6303
6623
|
this.downloadUrlSignal.set(downloadUrl);
|
|
6304
6624
|
}
|
|
6305
|
-
}, { ...(ngDevMode ? { debugName: "storageFileDownloadUrlEffect" } : {}), allowSignalWrites: true });
|
|
6625
|
+
}, { ...(ngDevMode ? { debugName: "storageFileDownloadUrlEffect" } : /* istanbul ignore next */ {}), allowSignalWrites: true });
|
|
6306
6626
|
// Preview
|
|
6307
6627
|
showPreviewButtonSignal = computed(() => {
|
|
6308
6628
|
const config = this.configSignal();
|
|
6309
6629
|
const hasDownloadUrl = this.hasDownloadUrlSignal();
|
|
6310
6630
|
return hasDownloadUrl && (config.showPreviewButton ?? true);
|
|
6311
|
-
}, ...(ngDevMode ? [{ debugName: "showPreviewButtonSignal" }] : []));
|
|
6631
|
+
}, ...(ngDevMode ? [{ debugName: "showPreviewButtonSignal" }] : /* istanbul ignore next */ []));
|
|
6312
6632
|
openCustomPreviewSignal = computed(() => {
|
|
6313
6633
|
const config = this.configSignal();
|
|
6314
6634
|
return config.openCustomPreview;
|
|
6315
|
-
}, ...(ngDevMode ? [{ debugName: "openCustomPreviewSignal" }] : []));
|
|
6635
|
+
}, ...(ngDevMode ? [{ debugName: "openCustomPreviewSignal" }] : /* istanbul ignore next */ []));
|
|
6316
6636
|
handleOpenPreviewDialog = () => {
|
|
6317
6637
|
const openPreview = this.openCustomPreviewSignal();
|
|
6318
6638
|
const srcUrl = this.downloadUrlSignal();
|
|
@@ -6336,7 +6656,7 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6336
6656
|
this.downloadMimeTypeSignal.set(cachedPair.mimeType);
|
|
6337
6657
|
this.downloadUrlExpiresAtSignal.set(cachedPair.expiresAt);
|
|
6338
6658
|
}
|
|
6339
|
-
}, { ...(ngDevMode ? { debugName: "cachedUrlEffect" } : {}), allowSignalWrites: true });
|
|
6659
|
+
}, { ...(ngDevMode ? { debugName: "cachedUrlEffect" } : /* istanbul ignore next */ {}), allowSignalWrites: true });
|
|
6340
6660
|
// Expiration Effect
|
|
6341
6661
|
downloadUrlExpiresAtDate$ = toObservable(this.downloadUrlExpiresAtSignal).pipe(map(dateFromDateOrTimeSecondsNumber), distinctUntilChanged(isSameDate), shareReplay(1));
|
|
6342
6662
|
downloadUrlExpiresAtDateSignal = toSignal(this.downloadUrlExpiresAtDate$);
|
|
@@ -6358,7 +6678,7 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6358
6678
|
this.downloadMimeTypeSignal.set(undefined);
|
|
6359
6679
|
this.downloadUrlExpiresAtSignal.set(undefined);
|
|
6360
6680
|
}
|
|
6361
|
-
}, { ...(ngDevMode ? { debugName: "downloadUrlHasExpiredEffect" } : {}), allowSignalWrites: true });
|
|
6681
|
+
}, { ...(ngDevMode ? { debugName: "downloadUrlHasExpiredEffect" } : /* istanbul ignore next */ {}), allowSignalWrites: true });
|
|
6362
6682
|
// Output Effect
|
|
6363
6683
|
downloadDetailsSignal = computed(() => {
|
|
6364
6684
|
const downloadUrl = this.downloadUrlSignal();
|
|
@@ -6372,18 +6692,18 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6372
6692
|
}
|
|
6373
6693
|
: undefined;
|
|
6374
6694
|
return details;
|
|
6375
|
-
}, ...(ngDevMode ? [{ debugName: "downloadDetailsSignal" }] : []));
|
|
6695
|
+
}, ...(ngDevMode ? [{ debugName: "downloadDetailsSignal" }] : /* istanbul ignore next */ []));
|
|
6376
6696
|
downloadDetailsChangedEffect = effect(() => {
|
|
6377
6697
|
const details = this.downloadDetailsSignal();
|
|
6378
6698
|
this.downloadDetailsChange.emit(details);
|
|
6379
|
-
}, ...(ngDevMode ? [{ debugName: "downloadDetailsChangedEffect" }] : []));
|
|
6699
|
+
}, ...(ngDevMode ? [{ debugName: "downloadDetailsChangedEffect" }] : /* istanbul ignore next */ []));
|
|
6380
6700
|
sourceDownloadDetailsChangeCallbackEffect = effect(() => {
|
|
6381
6701
|
const details = this.downloadDetailsSignal();
|
|
6382
6702
|
const source = this.source();
|
|
6383
6703
|
if (source?.downloadDetailsChangeCallback) {
|
|
6384
6704
|
source.downloadDetailsChangeCallback(details);
|
|
6385
6705
|
}
|
|
6386
|
-
}, { ...(ngDevMode ? { debugName: "sourceDownloadDetailsChangeCallbackEffect" } : {}), allowSignalWrites: true });
|
|
6706
|
+
}, { ...(ngDevMode ? { debugName: "sourceDownloadDetailsChangeCallbackEffect" } : /* istanbul ignore next */ {}), allowSignalWrites: true });
|
|
6387
6707
|
// Handlers
|
|
6388
6708
|
handleGetDownloadUrl = (value, context) => {
|
|
6389
6709
|
const source = this.source();
|
|
@@ -6415,8 +6735,8 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6415
6735
|
handleGetDownloadUrlError(error);
|
|
6416
6736
|
}
|
|
6417
6737
|
};
|
|
6418
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6419
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.
|
|
6738
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDownloadButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6739
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.3", type: DbxFirebaseStorageFileDownloadButtonComponent, isStandalone: true, selector: "dbx-firebase-storagefile-download-button", inputs: { storageFileKey: { classPropertyName: "storageFileKey", publicName: "storageFileKey", isSignal: true, isRequired: false, transformFunction: null }, storageFileDownloadUrl: { classPropertyName: "storageFileDownloadUrl", publicName: "storageFileDownloadUrl", isSignal: true, isRequired: false, transformFunction: null }, embedMimeType: { classPropertyName: "embedMimeType", publicName: "embedMimeType", isSignal: true, isRequired: false, transformFunction: null }, showPreviewButton: { classPropertyName: "showPreviewButton", publicName: "showPreviewButton", isSignal: true, isRequired: false, transformFunction: null }, preload: { classPropertyName: "preload", publicName: "preload", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { downloadDetailsChange: "downloadDetailsChange" }, ngImport: i0, template: `
|
|
6420
6740
|
<dbx-anchor dbxActionAnchor [anchor]="anchorSignal()" dbxAction [dbxActionAutoTrigger]="preloadSignal()" dbxActionSnackbarError [dbxActionDisabled]="!storageFileKeySignal()" [dbxActionValue]="storageFileKeySignal()" [dbxActionHandler]="handleGetDownloadUrl" [dbxActionSuccessHandler]="handleGetDownloadUrlSuccess" [dbxActionErrorHandler]="handleGetDownloadUrlError">
|
|
6421
6741
|
<dbx-button dbxActionButton [buttonStyle]="buttonStyleSignal()" [icon]="iconSignal()" [text]="textSignal()"></dbx-button>
|
|
6422
6742
|
</dbx-anchor>
|
|
@@ -6426,9 +6746,9 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6426
6746
|
<dbx-button dbxActionButton [buttonStyle]="previewButtonStyleSignal()" [icon]="previewIconSignal()" [text]="previewTextSignal()"></dbx-button>
|
|
6427
6747
|
</ng-container>
|
|
6428
6748
|
}
|
|
6429
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionHandlerValueDirective, selector: "[dbxActionHandlerValue]", inputs: ["dbxActionHandlerValue"] }, { kind: "directive", type: i2.DbxActionDisabledDirective, selector: "[dbxActionDisabled]", inputs: ["dbxActionDisabled"] }, { kind: "directive", type: i2.DbxActionAutoTriggerDirective, selector: "dbxActionAutoTrigger,[dbxActionAutoTrigger]", inputs: ["triggerDebounce", "triggerThrottle", "triggerErrorThrottle", "maxErrorsForThrottle", "triggerLimit", "dbxActionAutoTrigger", "useFastTriggerPreset", "useInstantTriggerPreset"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i2.DbxActionErrorHandlerDirective, selector: "[dbxActionErrorHandler]", inputs: ["dbxActionErrorHandler"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDialogDirective, selector: "[dbxActionDialog]", inputs: ["dbxActionDialog", "dbxActionDialogIsModified", "dbxActionDialogIsEqual"], exportAs: ["dbxActionDialog"] }, { kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6749
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "allowClickPropagation", "mode"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionHandlerValueDirective, selector: "[dbxActionHandlerValue]", inputs: ["dbxActionHandlerValue"] }, { kind: "directive", type: i2.DbxActionDisabledDirective, selector: "[dbxActionDisabled]", inputs: ["dbxActionDisabled"] }, { kind: "directive", type: i2.DbxActionAutoTriggerDirective, selector: "dbxActionAutoTrigger,[dbxActionAutoTrigger]", inputs: ["triggerDebounce", "triggerThrottle", "triggerErrorThrottle", "maxErrorsForThrottle", "triggerLimit", "dbxActionAutoTrigger", "useFastTriggerPreset", "useInstantTriggerPreset"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i2.DbxActionErrorHandlerDirective, selector: "[dbxActionErrorHandler]", inputs: ["dbxActionErrorHandler"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDialogDirective, selector: "[dbxActionDialog]", inputs: ["dbxActionDialog", "dbxActionDialogIsModified", "dbxActionDialogIsEqual"], exportAs: ["dbxActionDialog"] }, { kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6430
6750
|
}
|
|
6431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6751
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDownloadButtonComponent, decorators: [{
|
|
6432
6752
|
type: Component,
|
|
6433
6753
|
args: [{
|
|
6434
6754
|
selector: 'dbx-firebase-storagefile-download-button',
|
|
@@ -6499,10 +6819,10 @@ class DbxFirebaseStorageFileUploadStore extends ComponentStore {
|
|
|
6499
6819
|
* Sets the upload result.
|
|
6500
6820
|
*/
|
|
6501
6821
|
setUploadResult = this.updater((state, uploadResult) => ({ ...state, isUploadHandlerWorking: false, uploadProgress: undefined, uploadResult }));
|
|
6502
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6503
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
6822
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6823
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadStore });
|
|
6504
6824
|
}
|
|
6505
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
6825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadStore, decorators: [{
|
|
6506
6826
|
type: Injectable
|
|
6507
6827
|
}], ctorParameters: () => [] });
|
|
6508
6828
|
|
|
@@ -6789,7 +7109,7 @@ class DbxFirebaseStorageFileUploadActionHandlerDirective {
|
|
|
6789
7109
|
*
|
|
6790
7110
|
* Defaults to false.
|
|
6791
7111
|
*/
|
|
6792
|
-
triggerOnFiles = input(false, ...(ngDevMode ? [{ debugName: "triggerOnFiles" }] : []));
|
|
7112
|
+
triggerOnFiles = input(false, ...(ngDevMode ? [{ debugName: "triggerOnFiles" }] : /* istanbul ignore next */ []));
|
|
6793
7113
|
triggerOnFiles$ = toObservable(this.triggerOnFiles);
|
|
6794
7114
|
/**
|
|
6795
7115
|
* Uploading of all/any files should be cancelled if any file fails to upload.
|
|
@@ -6798,14 +7118,14 @@ class DbxFirebaseStorageFileUploadActionHandlerDirective {
|
|
|
6798
7118
|
*
|
|
6799
7119
|
* Defaults to false.
|
|
6800
7120
|
*/
|
|
6801
|
-
cancelUploadsOnUploadError = input(false, ...(ngDevMode ? [{ debugName: "cancelUploadsOnUploadError" }] : []));
|
|
7121
|
+
cancelUploadsOnUploadError = input(false, ...(ngDevMode ? [{ debugName: "cancelUploadsOnUploadError" }] : /* istanbul ignore next */ []));
|
|
6802
7122
|
/**
|
|
6803
7123
|
* The upload should fail if any file fails to upload, rather than if all files fail to upload.
|
|
6804
7124
|
*
|
|
6805
7125
|
* Defaults to false.
|
|
6806
7126
|
*/
|
|
6807
|
-
actionFailureOnUploadError = input(false, ...(ngDevMode ? [{ debugName: "actionFailureOnUploadError" }] : []));
|
|
6808
|
-
uploadHandler = input.required({ ...(ngDevMode ? { debugName: "uploadHandler" } : {}), alias: 'dbxFirebaseStorageFileUploadActionHandler' });
|
|
7127
|
+
actionFailureOnUploadError = input(false, ...(ngDevMode ? [{ debugName: "actionFailureOnUploadError" }] : /* istanbul ignore next */ []));
|
|
7128
|
+
uploadHandler = input.required({ ...(ngDevMode ? { debugName: "uploadHandler" } : /* istanbul ignore next */ {}), alias: 'dbxFirebaseStorageFileUploadActionHandler' });
|
|
6809
7129
|
_uploadHandlerEffect = effect(() => {
|
|
6810
7130
|
const uploadHandler = this.uploadHandler();
|
|
6811
7131
|
let handlerFunction;
|
|
@@ -6839,7 +7159,7 @@ class DbxFirebaseStorageFileUploadActionHandlerDirective {
|
|
|
6839
7159
|
handlerFunction = undefined;
|
|
6840
7160
|
}
|
|
6841
7161
|
this._dbxActionHandlerInstance.setHandlerFunction(handlerFunction);
|
|
6842
|
-
}, ...(ngDevMode ? [{ debugName: "_uploadHandlerEffect" }] : []));
|
|
7162
|
+
}, ...(ngDevMode ? [{ debugName: "_uploadHandlerEffect" }] : /* istanbul ignore next */ []));
|
|
6843
7163
|
files$ = this.uploadStore.files$;
|
|
6844
7164
|
uploadHandler$ = toObservable(this.uploadHandler);
|
|
6845
7165
|
constructor() {
|
|
@@ -6877,10 +7197,10 @@ class DbxFirebaseStorageFileUploadActionHandlerDirective {
|
|
|
6877
7197
|
// sync progress amount
|
|
6878
7198
|
this.source.setWorkProgress(this.uploadStore.latestProgressEvent$.pipe(throttleTime(100, undefined, { leading: true, trailing: true }), map((x) => x?.overallProgress), distinctUntilChanged()));
|
|
6879
7199
|
}
|
|
6880
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6881
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
7200
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadActionHandlerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7201
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseStorageFileUploadActionHandlerDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadActionHandler]", inputs: { triggerOnFiles: { classPropertyName: "triggerOnFiles", publicName: "triggerOnFiles", isSignal: true, isRequired: false, transformFunction: null }, cancelUploadsOnUploadError: { classPropertyName: "cancelUploadsOnUploadError", publicName: "cancelUploadsOnUploadError", isSignal: true, isRequired: false, transformFunction: null }, actionFailureOnUploadError: { classPropertyName: "actionFailureOnUploadError", publicName: "actionFailureOnUploadError", isSignal: true, isRequired: false, transformFunction: null }, uploadHandler: { classPropertyName: "uploadHandler", publicName: "dbxFirebaseStorageFileUploadActionHandler", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
6882
7202
|
}
|
|
6883
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadActionHandlerDirective, decorators: [{
|
|
6884
7204
|
type: Directive,
|
|
6885
7205
|
args: [{
|
|
6886
7206
|
selector: '[dbxFirebaseStorageFileUploadActionHandler]',
|
|
@@ -6894,10 +7214,10 @@ class StorageFileCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
|
6894
7214
|
super({ firestoreCollection: inject(StorageFileFirestoreCollections).storageFileCollection });
|
|
6895
7215
|
}
|
|
6896
7216
|
initializeAllStorageFilesFromUpload = firebaseCollectionStoreCreateFunction(this, this.storageFileFunctions.storageFile.createStorageFile.allFromUpload);
|
|
6897
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6898
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
7217
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: StorageFileCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7218
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: StorageFileCollectionStore });
|
|
6899
7219
|
}
|
|
6900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: StorageFileCollectionStore, decorators: [{
|
|
6901
7221
|
type: Injectable
|
|
6902
7222
|
}], ctorParameters: () => [] });
|
|
6903
7223
|
|
|
@@ -6906,10 +7226,10 @@ class DbxFirebaseStorageFileCollectionStoreDirective extends DbxFirebaseCollecti
|
|
|
6906
7226
|
super(inject(StorageFileCollectionStore));
|
|
6907
7227
|
this.setConstraints([]);
|
|
6908
7228
|
}
|
|
6909
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6910
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7229
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7230
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseStorageFileCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseStorageFileCollectionStoreDirective, StorageFileCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
6911
7231
|
}
|
|
6912
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7232
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileCollectionStoreDirective, decorators: [{
|
|
6913
7233
|
type: Directive,
|
|
6914
7234
|
args: [{
|
|
6915
7235
|
selector: '[dbxFirebaseStorageFileCollection]',
|
|
@@ -6930,10 +7250,10 @@ class StorageFileDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
6930
7250
|
processStorageFile = firebaseDocumentStoreUpdateFunction(this, this.storageFileFunctions.storageFile.updateStorageFile.process);
|
|
6931
7251
|
deleteStorageFile = firebaseDocumentStoreDeleteFunction(this, this.storageFileFunctions.storageFile.deleteStorageFile.delete);
|
|
6932
7252
|
downloadStorageFile = firebaseDocumentStoreReadFunction(this, this.storageFileFunctions.storageFile.readStorageFile.download);
|
|
6933
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6934
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
7253
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: StorageFileDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7254
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: StorageFileDocumentStore });
|
|
6935
7255
|
}
|
|
6936
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: StorageFileDocumentStore, decorators: [{
|
|
6937
7257
|
type: Injectable
|
|
6938
7258
|
}], ctorParameters: () => [] });
|
|
6939
7259
|
|
|
@@ -6941,10 +7261,10 @@ class DbxFirebaseStorageFileDocumentStoreDirective extends DbxFirebaseDocumentSt
|
|
|
6941
7261
|
constructor() {
|
|
6942
7262
|
super(inject(StorageFileDocumentStore));
|
|
6943
7263
|
}
|
|
6944
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6945
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7264
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7265
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseStorageFileDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseStorageFileDocumentStoreDirective, StorageFileDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
6946
7266
|
}
|
|
6947
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileDocumentStoreDirective, decorators: [{
|
|
6948
7268
|
type: Directive,
|
|
6949
7269
|
args: [{
|
|
6950
7270
|
selector: '[dbxFirebaseStorageFileDocument]',
|
|
@@ -6960,10 +7280,10 @@ class StorageFileGroupDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
6960
7280
|
}
|
|
6961
7281
|
updateStorageFileGroup = firebaseDocumentStoreUpdateFunction(this, this.storageFileFunctions.storageFileGroup.updateStorageFileGroup.update);
|
|
6962
7282
|
regenerateStorageFileGroupContent = firebaseDocumentStoreCrudFunction(this.storageFileFunctions.storageFileGroup.updateStorageFileGroup.regenerateContent);
|
|
6963
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6964
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
7283
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: StorageFileGroupDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7284
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: StorageFileGroupDocumentStore });
|
|
6965
7285
|
}
|
|
6966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: StorageFileGroupDocumentStore, decorators: [{
|
|
6967
7287
|
type: Injectable
|
|
6968
7288
|
}], ctorParameters: () => [] });
|
|
6969
7289
|
|
|
@@ -6971,10 +7291,10 @@ class DbxFirebaseStorageFileGroupDocumentStoreDirective extends DbxFirebaseDocum
|
|
|
6971
7291
|
constructor() {
|
|
6972
7292
|
super(inject(StorageFileGroupDocumentStore));
|
|
6973
7293
|
}
|
|
6974
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
6975
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7294
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileGroupDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7295
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseStorageFileGroupDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileGroupDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseStorageFileGroupDocumentStoreDirective, StorageFileGroupDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
6976
7296
|
}
|
|
6977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileGroupDocumentStoreDirective, decorators: [{
|
|
6978
7298
|
type: Directive,
|
|
6979
7299
|
args: [{
|
|
6980
7300
|
selector: '[dbxFirebaseStorageFileGroupDocument]',
|
|
@@ -6991,7 +7311,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
6991
7311
|
class DbxFirebaseStorageFileUploadInitializeDocumentDirective {
|
|
6992
7312
|
uploadStore = inject(DbxFirebaseStorageFileUploadStore);
|
|
6993
7313
|
storageFileDocumentStore = inject(StorageFileDocumentStore);
|
|
6994
|
-
initializeWithExpediteProcessing = input(...(ngDevMode ? [undefined, { debugName: "initializeWithExpediteProcessing" }] : []));
|
|
7314
|
+
initializeWithExpediteProcessing = input(...(ngDevMode ? [undefined, { debugName: "initializeWithExpediteProcessing" }] : /* istanbul ignore next */ []));
|
|
6995
7315
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
6996
7316
|
_dbxActionHandlerInstance = clean(new DbxActionHandlerInstance(this.source));
|
|
6997
7317
|
constructor() {
|
|
@@ -7013,10 +7333,10 @@ class DbxFirebaseStorageFileUploadInitializeDocumentDirective {
|
|
|
7013
7333
|
});
|
|
7014
7334
|
this._dbxActionHandlerInstance.init();
|
|
7015
7335
|
}
|
|
7016
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7017
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
7336
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadInitializeDocumentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7337
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseStorageFileUploadInitializeDocumentDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadInitializeDocument]", inputs: { initializeWithExpediteProcessing: { classPropertyName: "initializeWithExpediteProcessing", publicName: "initializeWithExpediteProcessing", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["dbxFirebaseStorageFileUploadInitializeDocument"], ngImport: i0 });
|
|
7018
7338
|
}
|
|
7019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadInitializeDocumentDirective, decorators: [{
|
|
7020
7340
|
type: Directive,
|
|
7021
7341
|
args: [{
|
|
7022
7342
|
selector: '[dbxFirebaseStorageFileUploadInitializeDocument]',
|
|
@@ -7030,18 +7350,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImpor
|
|
|
7030
7350
|
*/
|
|
7031
7351
|
class DbxFirebaseStorageFileUploadStoreDirective {
|
|
7032
7352
|
uploadStore = inject(DbxFirebaseStorageFileUploadStore);
|
|
7033
|
-
multipleUpload = input(...(ngDevMode ? [undefined, { debugName: "multipleUpload" }] : []));
|
|
7034
|
-
fileTypesAccepted = input(...(ngDevMode ? [undefined, { debugName: "fileTypesAccepted" }] : []));
|
|
7353
|
+
multipleUpload = input(...(ngDevMode ? [undefined, { debugName: "multipleUpload" }] : /* istanbul ignore next */ []));
|
|
7354
|
+
fileTypesAccepted = input(...(ngDevMode ? [undefined, { debugName: "fileTypesAccepted" }] : /* istanbul ignore next */ []));
|
|
7035
7355
|
fileTypesAccepted$ = toObservable(this.fileTypesAccepted).pipe(skipAllInitialMaybe(), shareReplay(1));
|
|
7036
7356
|
isMultiUploadAllowed$ = toObservable(this.multipleUpload).pipe(skipAllInitialMaybe(), shareReplay(1));
|
|
7037
7357
|
constructor() {
|
|
7038
7358
|
cleanSubscription(this.fileTypesAccepted$.subscribe((x) => this.uploadStore.setFileTypesAccepted(x)));
|
|
7039
7359
|
cleanSubscription(this.isMultiUploadAllowed$.subscribe((x) => this.uploadStore.setIsMultiUploadAllowed(x)));
|
|
7040
7360
|
}
|
|
7041
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7042
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.
|
|
7361
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7362
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.3", type: DbxFirebaseStorageFileUploadStoreDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadStore]", inputs: { multipleUpload: { classPropertyName: "multipleUpload", publicName: "multipleUpload", isSignal: true, isRequired: false, transformFunction: null }, fileTypesAccepted: { classPropertyName: "fileTypesAccepted", publicName: "fileTypesAccepted", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DbxFirebaseStorageFileUploadStore], exportAs: ["dbxFirebaseStorageFileUploadStore"], ngImport: i0 });
|
|
7043
7363
|
}
|
|
7044
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadStoreDirective, decorators: [{
|
|
7045
7365
|
type: Directive,
|
|
7046
7366
|
args: [{
|
|
7047
7367
|
selector: '[dbxFirebaseStorageFileUploadStore]',
|
|
@@ -7062,10 +7382,10 @@ class DbxFirebaseStorageFileUploadSyncDirective {
|
|
|
7062
7382
|
cleanSubscription(this.uploadStore.isMultiUploadAllowed$.subscribe((x) => this.uploadComponent.setMultiple(x)));
|
|
7063
7383
|
cleanSubscription(this.uploadComponent.filesChanged.subscribe((files) => this.uploadStore.setFiles(files.matchResult.accepted)));
|
|
7064
7384
|
}
|
|
7065
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7066
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.
|
|
7385
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadSyncDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7386
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.3", type: DbxFirebaseStorageFileUploadSyncDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadSync]", exportAs: ["dbxFirebaseStorageFileUploadSync"], ngImport: i0 });
|
|
7067
7387
|
}
|
|
7068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadSyncDirective, decorators: [{
|
|
7069
7389
|
type: Directive,
|
|
7070
7390
|
args: [{
|
|
7071
7391
|
selector: '[dbxFirebaseStorageFileUploadSync]',
|
|
@@ -7103,8 +7423,8 @@ const IMPORTS_AND_EXPORTS = [
|
|
|
7103
7423
|
* - DbxFirebaseStorageFileUploadStore
|
|
7104
7424
|
*/
|
|
7105
7425
|
class DbxFirebaseStorageFileUploadModule {
|
|
7106
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7107
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
7426
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7427
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadModule, imports: [
|
|
7108
7428
|
// dbx-core/dbx-web modules/components
|
|
7109
7429
|
DbxActionModule,
|
|
7110
7430
|
DbxLoadingComponent,
|
|
@@ -7135,7 +7455,7 @@ class DbxFirebaseStorageFileUploadModule {
|
|
|
7135
7455
|
// stores
|
|
7136
7456
|
DbxFirebaseStorageFileCollectionStoreDirective,
|
|
7137
7457
|
DbxFirebaseStorageFileDocumentStoreDirective] });
|
|
7138
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
7458
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadModule, imports: [
|
|
7139
7459
|
// dbx-core/dbx-web modules/components
|
|
7140
7460
|
DbxActionModule,
|
|
7141
7461
|
DbxLoadingComponent,
|
|
@@ -7143,7 +7463,7 @@ class DbxFirebaseStorageFileUploadModule {
|
|
|
7143
7463
|
// dbx-core/dbx-web modules/components
|
|
7144
7464
|
DbxActionModule] });
|
|
7145
7465
|
}
|
|
7146
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7466
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageFileUploadModule, decorators: [{
|
|
7147
7467
|
type: NgModule,
|
|
7148
7468
|
args: [{
|
|
7149
7469
|
imports: IMPORTS_AND_EXPORTS,
|
|
@@ -7201,10 +7521,10 @@ class FlatFirestoreModelKeyPipe {
|
|
|
7201
7521
|
return '';
|
|
7202
7522
|
}
|
|
7203
7523
|
}
|
|
7204
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7205
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
7524
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: FlatFirestoreModelKeyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7525
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: FlatFirestoreModelKeyPipe, isStandalone: true, name: "flatFirestoreModelKey" });
|
|
7206
7526
|
}
|
|
7207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: FlatFirestoreModelKeyPipe, decorators: [{
|
|
7208
7528
|
type: Pipe,
|
|
7209
7529
|
args: [{ name: 'flatFirestoreModelKey', standalone: true }]
|
|
7210
7530
|
}] });
|
|
@@ -7229,10 +7549,10 @@ class TwoWayFlatFirestoreModelKeyPipe {
|
|
|
7229
7549
|
return '';
|
|
7230
7550
|
}
|
|
7231
7551
|
}
|
|
7232
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7233
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.
|
|
7552
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TwoWayFlatFirestoreModelKeyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
7553
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: TwoWayFlatFirestoreModelKeyPipe, isStandalone: true, name: "twoWayFlatFirestoreModelKey" });
|
|
7234
7554
|
}
|
|
7235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: TwoWayFlatFirestoreModelKeyPipe, decorators: [{
|
|
7236
7556
|
type: Pipe,
|
|
7237
7557
|
args: [{ name: 'twoWayFlatFirestoreModelKey', standalone: true }]
|
|
7238
7558
|
}] });
|
|
@@ -7336,10 +7656,10 @@ class DbxFirebaseStorageService {
|
|
|
7336
7656
|
folder(path) {
|
|
7337
7657
|
return this.storageContext.folder(path);
|
|
7338
7658
|
}
|
|
7339
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7340
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.
|
|
7659
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
7660
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageService, providedIn: 'root' });
|
|
7341
7661
|
}
|
|
7342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7662
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseStorageService, decorators: [{
|
|
7343
7663
|
type: Injectable,
|
|
7344
7664
|
args: [{
|
|
7345
7665
|
providedIn: 'root'
|
|
@@ -7385,11 +7705,11 @@ function providedDbxFirebaseStorage(config) {
|
|
|
7385
7705
|
}
|
|
7386
7706
|
|
|
7387
7707
|
class DbxFirebaseModule {
|
|
7388
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.
|
|
7389
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.
|
|
7390
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.
|
|
7708
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7709
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModule, exports: [DbxFirebaseModelModule] });
|
|
7710
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModule, imports: [DbxFirebaseModelModule] });
|
|
7391
7711
|
}
|
|
7392
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.
|
|
7712
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.3", ngImport: i0, type: DbxFirebaseModule, decorators: [{
|
|
7393
7713
|
type: NgModule,
|
|
7394
7714
|
args: [{
|
|
7395
7715
|
exports: [DbxFirebaseModelModule]
|
|
@@ -7451,5 +7771,5 @@ function provideDbxFirebase(config) {
|
|
|
7451
7771
|
* Generated bundle index. Do not edit.
|
|
7452
7772
|
*/
|
|
7453
7773
|
|
|
7454
|
-
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractDbxFirebaseModelEntityWidgetDirective, AbstractDbxFirebaseNotificationItemWidgetComponent, AbstractRootSingleItemDbxFirebaseDocument, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION, DBX_FIREBASE_APP_OPTIONS_TOKEN, DBX_FIREBASE_DOCUMENT_STORE_CONTEXT_STORE_TOKEN, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_MODEL_ENTITY_WITH_STORE_TOKEN, DBX_FIREBASE_STORAGEFILE_DOWNLOAD_STORAGE_ACCESSOR_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_CONFIG_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_TOKEN, DBX_FIRESTORE_CONTEXT_TOKEN, DEFAULT_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_TEMPLATE, DEFAULT_DBX_FIREBASE_ANALYTICS_USER_PROPERTIES_FACTORY, DEFAULT_DBX_FIREBASE_AUTH_SERVICE_DELEGATE, DEFAULT_DBX_FIREBASE_MODEL_ENTITIES_COMPONENT_POPOVER_KEY, DEFAULT_DBX_FIREBASE_MODEL_HISTORY_COMPONENT_POPOVER_KEY, DEFAULT_DBX_FIREBASE_NOTIFICATION_ITEM_STORE_POPOVER_KEY, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN, DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION, DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY, DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN, DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY, DEFAULT_FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DbxFirebaseAnalyticsUserEventsListenerService, DbxFirebaseAnalyticsUserSource, DbxFirebaseAppCheckHttpInterceptor, DbxFirebaseAuthLoginService, DbxFirebaseAuthService, DbxFirebaseAuthServiceDelegate, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionChangeTriggerInstance, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionLoaderInstance, DbxFirebaseCollectionStoreDirective, DbxFirebaseCollectionWithParentStoreDirective, DbxFirebaseDevelopmentDirective, DbxFirebaseDevelopmentModule, DbxFirebaseDevelopmentPopupComponent, DbxFirebaseDevelopmentPopupContentComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxFirebaseDevelopmentSchedulerListComponent, DbxFirebaseDevelopmentSchedulerListViewComponent, DbxFirebaseDevelopmentSchedulerListViewItemComponent, DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentSchedulerWidgetComponent, DbxFirebaseDevelopmentService, DbxFirebaseDevelopmentWidgetService, DbxFirebaseDocumentLoaderInstance, DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, DbxFirebaseDocumentStoreContextStore, DbxFirebaseDocumentStoreContextStoreDirective, DbxFirebaseDocumentStoreDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, DbxFirebaseDocumentStoreTwoWayKeyProvider, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFirebaseEmulatorService, DbxFirebaseLoginAnonymousComponent, DbxFirebaseLoginAppleComponent, DbxFirebaseLoginButtonComponent, DbxFirebaseLoginButtonContainerComponent, DbxFirebaseLoginComponent, DbxFirebaseLoginContext, DbxFirebaseLoginContextBackButtonComponent, DbxFirebaseLoginContextDirective, DbxFirebaseLoginEmailComponent, DbxFirebaseLoginEmailContentComponent, DbxFirebaseLoginFacebookComponent, DbxFirebaseLoginGitHubComponent, DbxFirebaseLoginGoogleComponent, DbxFirebaseLoginListComponent, DbxFirebaseLoginMicrosoftComponent, DbxFirebaseLoginTermsComponent, DbxFirebaseLoginTermsSimpleComponent, DbxFirebaseLoginTwitterComponent, DbxFirebaseModelContextService, DbxFirebaseModelEntitiesComponent, DbxFirebaseModelEntitiesDebugWidgetComponent, DbxFirebaseModelEntitiesPopoverButtonComponent, DbxFirebaseModelEntitiesPopoverComponent, DbxFirebaseModelEntitiesSource, DbxFirebaseModelEntitiesWidgetService, DbxFirebaseModelEntitiesWidgetServiceConfig, DbxFirebaseModelHistoryComponent, DbxFirebaseModelHistoryPopoverButtonComponent, DbxFirebaseModelHistoryPopoverComponent, DbxFirebaseModelKeyComponent, DbxFirebaseModelModule, DbxFirebaseModelStoreModule, DbxFirebaseModelTrackerService, DbxFirebaseModelTypeInstanceListComponent, DbxFirebaseModelTypeInstanceListViewComponent, DbxFirebaseModelTypeInstanceListViewItemComponent, DbxFirebaseModelTypesService, DbxFirebaseModelTypesServiceConfig, DbxFirebaseModelViewedEventDirective, DbxFirebaseModule, DbxFirebaseNotificationBoxCollectionStoreDirective, DbxFirebaseNotificationBoxDocumentStoreDirective, DbxFirebaseNotificationCollectionStoreDirective, DbxFirebaseNotificationDocumentStoreDirective, DbxFirebaseNotificationItemContentComponent, DbxFirebaseNotificationItemDefaultViewComponent, DbxFirebaseNotificationItemListComponent, DbxFirebaseNotificationItemListViewComponent, DbxFirebaseNotificationItemListViewItemComponent, DbxFirebaseNotificationItemStore, DbxFirebaseNotificationItemStorePopoverButtonComponent, DbxFirebaseNotificationItemStorePopoverComponent, DbxFirebaseNotificationItemViewComponent, DbxFirebaseNotificationItemWidgetService, DbxFirebaseNotificationSummaryCollectionStoreDirective, DbxFirebaseNotificationSummaryDocumentStoreDirective, DbxFirebaseNotificationTemplateService, DbxFirebaseNotificationUserCollectionStoreDirective, DbxFirebaseNotificationUserDocumentStoreDirective, DbxFirebaseParsedEmulatorsConfig, DbxFirebaseRegisterComponent, DbxFirebaseRegisterEmailComponent, DbxFirebaseStorageFileCollectionStoreDirective, DbxFirebaseStorageFileDocumentStoreDirective, DbxFirebaseStorageFileDownloadButtonComponent, DbxFirebaseStorageFileDownloadService, DbxFirebaseStorageFileDownloadStorage, DbxFirebaseStorageFileGroupDocumentStoreDirective, DbxFirebaseStorageFileUploadActionHandlerDirective, DbxFirebaseStorageFileUploadInitializeDocumentDirective, DbxFirebaseStorageFileUploadModule, DbxFirebaseStorageFileUploadStore, DbxFirebaseStorageFileUploadStoreDirective, DbxFirebaseStorageFileUploadSyncDirective, DbxFirebaseStorageService, DbxFirebaseSystemStateCollectionStoreDirective, DbxFirebaseSystemStateDocumentStoreDirective, DbxFirestoreContextService, DbxLimitedFirebaseDocumentLoaderInstance, FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE_PREFIX, FlatFirestoreModelKeyPipe, IMPORTS_AND_EXPORTS, NotificationBoxCollectionStore, NotificationBoxDocumentStore, NotificationCollectionStore, NotificationDocumentStore, NotificationSummaryCollectionStore, NotificationSummaryDocumentStore, NotificationUserCollectionStore, NotificationUserDocumentStore, OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY, StorageFileCollectionStore, StorageFileDocumentStore, StorageFileGroupDocumentStore, StorageFileUploadFilesError, SystemStateCollectionStore, SystemStateDocumentStore, TwoWayFlatFirestoreModelKeyPipe, authRolesObsWithClaimsService, authUserInfoFromAuthUser, authUserStateFromFirebaseAuthServiceFunction, dbxFirebaseAuthContextInfo, dbxFirebaseCollectionChangeTrigger, dbxFirebaseCollectionChangeTriggerForStore, dbxFirebaseCollectionChangeTriggerForWatcher, dbxFirebaseCollectionChangeWatcher, dbxFirebaseCollectionLoaderInstance, dbxFirebaseCollectionLoaderInstanceWithCollection, dbxFirebaseDocumentLoaderInstance, dbxFirebaseDocumentLoaderInstanceWithAccessor, dbxFirebaseDocumentStoreContextModelEntitiesSourceFactory, dbxFirebaseIdRouteParamRedirect, dbxFirebaseInContextFirebaseModelServiceInstance, dbxFirebaseInContextFirebaseModelServiceInstanceFactory, dbxFirebaseKeyRouteParamRedirect, dbxFirebaseModelContextServiceInfoInstanceFactory, dbxFirebaseModelEntityWidgetInjectionConfigFactory, dbxFirebaseModelTypesServiceInstance, dbxFirebaseModelTypesServiceInstancePairForKeysFactory, dbxFirebaseSourceSelectLoadSource, dbxFirebaseStorageFileDownloadServiceCustomSourceFromObs, dbxFirebaseStorageProvidersContextConfigFactory, dbxLimitedFirebaseDocumentLoaderInstance, dbxLimitedFirebaseDocumentLoaderInstanceWithAccessor, dbxWidgetTypeForNotificationTemplateType, defaultDbxFirebaseAuthServiceDelegateWithClaimsService, defaultDbxFirebaseStorageFileDownloadStorageAccessorFactory, developmentFirebaseServerSchedulerWidgetEntry, enableAppCheckDebugTokenGeneration, firebaseAuthTokenFromUser, firebaseCollectionStoreCreateFunction, firebaseCollectionStoreCrudFunction, firebaseContextServiceEntityMap, firebaseDocumentStoreCreateFunction, firebaseDocumentStoreCrudFunction, firebaseDocumentStoreDeleteFunction, firebaseDocumentStoreReadFunction, firebaseDocumentStoreUpdateFunction, isDbxFirebaseModelEntityWithStore, linkDocumentStoreToParentContextStores, modelDoesNotExistError, provideDbxFirebase, provideDbxFirebaseAnalyticsUserEventsListenerService, provideDbxFirebaseApp, provideDbxFirebaseAuth, provideDbxFirebaseCollectionStoreDirective, provideDbxFirebaseCollectionWithParentStoreDirective, provideDbxFirebaseDevelopment, provideDbxFirebaseDocumentStoreContextStore, provideDbxFirebaseDocumentStoreDirective, provideDbxFirebaseDocumentStoreTwoWayKeyProvider, provideDbxFirebaseEmulator, provideDbxFirebaseFunctions, provideDbxFirebaseLogin, provideDbxFirebaseModelContextService, provideDbxFirebaseModelEntitiesWidgetService, provideDbxFirebaseNotifications, provideDbxFirebaseStorageFileService, provideDbxFirestoreCollection, provideNotificationFirestoreCollections, provideStorageFileFirestoreCollections, provideSystemStateFirestoreCollections, providedDbxFirebaseStorage, readDbxAnalyticsUserPropertiesFromAuthUserInfo, readValueFromIdToken, setParentStoreEffect, stateFromTokenForLoggedInUserFunction, storageFileUploadFiles, storageFileUploadHandler };
|
|
7774
|
+
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractDbxFirebaseModelEntityWidgetDirective, AbstractDbxFirebaseNotificationItemWidgetComponent, AbstractRootSingleItemDbxFirebaseDocument, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION, DBX_FIREBASE_APP_OPTIONS_TOKEN, DBX_FIREBASE_DOCUMENT_STORE_CONTEXT_STORE_TOKEN, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_MODEL_ENTITY_WITH_STORE_TOKEN, DBX_FIREBASE_STORAGEFILE_DOWNLOAD_STORAGE_ACCESSOR_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_CONFIG_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_TOKEN, DBX_FIRESTORE_CONTEXT_TOKEN, DEFAULT_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_TEMPLATE, DEFAULT_DBX_FIREBASE_ANALYTICS_USER_PROPERTIES_FACTORY, DEFAULT_DBX_FIREBASE_AUTH_SERVICE_DELEGATE, DEFAULT_DBX_FIREBASE_MODEL_ENTITIES_COMPONENT_POPOVER_KEY, DEFAULT_DBX_FIREBASE_MODEL_HISTORY_COMPONENT_POPOVER_KEY, DEFAULT_DBX_FIREBASE_NOTIFICATION_ITEM_STORE_POPOVER_KEY, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN, DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION, DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY, DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN, DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY, DEFAULT_FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DbxFirebaseAnalyticsUserEventsListenerService, DbxFirebaseAnalyticsUserSource, DbxFirebaseAppCheckHttpInterceptor, DbxFirebaseAuthLoginService, DbxFirebaseAuthService, DbxFirebaseAuthServiceDelegate, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionChangeTriggerInstance, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionLoaderInstance, DbxFirebaseCollectionStoreDirective, DbxFirebaseCollectionWithParentStoreDirective, DbxFirebaseDevelopmentDirective, DbxFirebaseDevelopmentModule, DbxFirebaseDevelopmentPopupComponent, DbxFirebaseDevelopmentPopupContentComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxFirebaseDevelopmentSchedulerListComponent, DbxFirebaseDevelopmentSchedulerListViewComponent, DbxFirebaseDevelopmentSchedulerListViewItemComponent, DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentSchedulerWidgetComponent, DbxFirebaseDevelopmentService, DbxFirebaseDevelopmentWidgetService, DbxFirebaseDocumentLoaderInstance, DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, DbxFirebaseDocumentStoreContextStore, DbxFirebaseDocumentStoreContextStoreDirective, DbxFirebaseDocumentStoreDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, DbxFirebaseDocumentStoreTwoWayKeyProvider, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFirebaseEmulatorService, DbxFirebaseLoginAnonymousComponent, DbxFirebaseLoginAppleComponent, DbxFirebaseLoginButtonComponent, DbxFirebaseLoginButtonContainerComponent, DbxFirebaseLoginComponent, DbxFirebaseLoginContext, DbxFirebaseLoginContextBackButtonComponent, DbxFirebaseLoginContextDirective, DbxFirebaseLoginEmailComponent, DbxFirebaseLoginEmailContentComponent, DbxFirebaseLoginFacebookComponent, DbxFirebaseLoginGitHubComponent, DbxFirebaseLoginGoogleComponent, DbxFirebaseLoginListComponent, DbxFirebaseLoginMicrosoftComponent, DbxFirebaseLoginTermsComponent, DbxFirebaseLoginTermsSimpleComponent, DbxFirebaseLoginTwitterComponent, DbxFirebaseManageAuthProvidersComponent, DbxFirebaseModelContextService, DbxFirebaseModelEntitiesComponent, DbxFirebaseModelEntitiesDebugWidgetComponent, DbxFirebaseModelEntitiesPopoverButtonComponent, DbxFirebaseModelEntitiesPopoverComponent, DbxFirebaseModelEntitiesSource, DbxFirebaseModelEntitiesWidgetService, DbxFirebaseModelEntitiesWidgetServiceConfig, DbxFirebaseModelHistoryComponent, DbxFirebaseModelHistoryPopoverButtonComponent, DbxFirebaseModelHistoryPopoverComponent, DbxFirebaseModelKeyComponent, DbxFirebaseModelModule, DbxFirebaseModelStoreModule, DbxFirebaseModelTrackerService, DbxFirebaseModelTypeInstanceListComponent, DbxFirebaseModelTypeInstanceListViewComponent, DbxFirebaseModelTypeInstanceListViewItemComponent, DbxFirebaseModelTypesService, DbxFirebaseModelTypesServiceConfig, DbxFirebaseModelViewedEventDirective, DbxFirebaseModule, DbxFirebaseNotificationBoxCollectionStoreDirective, DbxFirebaseNotificationBoxDocumentStoreDirective, DbxFirebaseNotificationCollectionStoreDirective, DbxFirebaseNotificationDocumentStoreDirective, DbxFirebaseNotificationItemContentComponent, DbxFirebaseNotificationItemDefaultViewComponent, DbxFirebaseNotificationItemListComponent, DbxFirebaseNotificationItemListViewComponent, DbxFirebaseNotificationItemListViewItemComponent, DbxFirebaseNotificationItemStore, DbxFirebaseNotificationItemStorePopoverButtonComponent, DbxFirebaseNotificationItemStorePopoverComponent, DbxFirebaseNotificationItemViewComponent, DbxFirebaseNotificationItemWidgetService, DbxFirebaseNotificationSummaryCollectionStoreDirective, DbxFirebaseNotificationSummaryDocumentStoreDirective, DbxFirebaseNotificationTemplateService, DbxFirebaseNotificationUserCollectionStoreDirective, DbxFirebaseNotificationUserDocumentStoreDirective, DbxFirebaseParsedEmulatorsConfig, DbxFirebaseRegisterComponent, DbxFirebaseRegisterEmailComponent, DbxFirebaseStorageFileCollectionStoreDirective, DbxFirebaseStorageFileDocumentStoreDirective, DbxFirebaseStorageFileDownloadButtonComponent, DbxFirebaseStorageFileDownloadService, DbxFirebaseStorageFileDownloadStorage, DbxFirebaseStorageFileGroupDocumentStoreDirective, DbxFirebaseStorageFileUploadActionHandlerDirective, DbxFirebaseStorageFileUploadInitializeDocumentDirective, DbxFirebaseStorageFileUploadModule, DbxFirebaseStorageFileUploadStore, DbxFirebaseStorageFileUploadStoreDirective, DbxFirebaseStorageFileUploadSyncDirective, DbxFirebaseStorageService, DbxFirebaseSystemStateCollectionStoreDirective, DbxFirebaseSystemStateDocumentStoreDirective, DbxFirestoreContextService, DbxLimitedFirebaseDocumentLoaderInstance, FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE_PREFIX, FIREBASE_PROVIDER_ID_TO_LOGIN_METHOD_TYPE_MAP, FlatFirestoreModelKeyPipe, IMPORTS_AND_EXPORTS, LOGIN_METHOD_TYPE_TO_FIREBASE_PROVIDER_ID_MAP, NotificationBoxCollectionStore, NotificationBoxDocumentStore, NotificationCollectionStore, NotificationDocumentStore, NotificationSummaryCollectionStore, NotificationSummaryDocumentStore, NotificationUserCollectionStore, NotificationUserDocumentStore, OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY, StorageFileCollectionStore, StorageFileDocumentStore, StorageFileGroupDocumentStore, StorageFileUploadFilesError, SystemStateCollectionStore, SystemStateDocumentStore, TwoWayFlatFirestoreModelKeyPipe, authRolesObsWithClaimsService, authUserInfoFromAuthUser, authUserStateFromFirebaseAuthServiceFunction, dbxFirebaseAuthContextInfo, dbxFirebaseCollectionChangeTrigger, dbxFirebaseCollectionChangeTriggerForStore, dbxFirebaseCollectionChangeTriggerForWatcher, dbxFirebaseCollectionChangeWatcher, dbxFirebaseCollectionLoaderInstance, dbxFirebaseCollectionLoaderInstanceWithCollection, dbxFirebaseDocumentLoaderInstance, dbxFirebaseDocumentLoaderInstanceWithAccessor, dbxFirebaseDocumentStoreContextModelEntitiesSourceFactory, dbxFirebaseIdRouteParamRedirect, dbxFirebaseInContextFirebaseModelServiceInstance, dbxFirebaseInContextFirebaseModelServiceInstanceFactory, dbxFirebaseKeyRouteParamRedirect, dbxFirebaseModelContextServiceInfoInstanceFactory, dbxFirebaseModelEntityWidgetInjectionConfigFactory, dbxFirebaseModelTypesServiceInstance, dbxFirebaseModelTypesServiceInstancePairForKeysFactory, dbxFirebaseSourceSelectLoadSource, dbxFirebaseStorageFileDownloadServiceCustomSourceFromObs, dbxFirebaseStorageProvidersContextConfigFactory, dbxLimitedFirebaseDocumentLoaderInstance, dbxLimitedFirebaseDocumentLoaderInstanceWithAccessor, dbxWidgetTypeForNotificationTemplateType, defaultDbxFirebaseAuthServiceDelegateWithClaimsService, defaultDbxFirebaseStorageFileDownloadStorageAccessorFactory, developmentFirebaseServerSchedulerWidgetEntry, enableAppCheckDebugTokenGeneration, firebaseAuthTokenFromUser, firebaseCollectionStoreCreateFunction, firebaseCollectionStoreCrudFunction, firebaseContextServiceEntityMap, firebaseDocumentStoreCreateFunction, firebaseDocumentStoreCrudFunction, firebaseDocumentStoreDeleteFunction, firebaseDocumentStoreReadFunction, firebaseDocumentStoreUpdateFunction, firebaseProviderIdToLoginMethodType, isDbxFirebaseModelEntityWithStore, linkDocumentStoreToParentContextStores, loginMethodTypeToFirebaseProviderId, modelDoesNotExistError, provideDbxFirebase, provideDbxFirebaseAnalyticsUserEventsListenerService, provideDbxFirebaseApp, provideDbxFirebaseAuth, provideDbxFirebaseCollectionStoreDirective, provideDbxFirebaseCollectionWithParentStoreDirective, provideDbxFirebaseDevelopment, provideDbxFirebaseDocumentStoreContextStore, provideDbxFirebaseDocumentStoreDirective, provideDbxFirebaseDocumentStoreTwoWayKeyProvider, provideDbxFirebaseEmulator, provideDbxFirebaseFunctions, provideDbxFirebaseLogin, provideDbxFirebaseModelContextService, provideDbxFirebaseModelEntitiesWidgetService, provideDbxFirebaseNotifications, provideDbxFirebaseStorageFileService, provideDbxFirestoreCollection, provideNotificationFirestoreCollections, provideStorageFileFirestoreCollections, provideSystemStateFirestoreCollections, providedDbxFirebaseStorage, readDbxAnalyticsUserPropertiesFromAuthUserInfo, readValueFromIdToken, setParentStoreEffect, stateFromTokenForLoggedInUserFunction, storageFileUploadFiles, storageFileUploadHandler };
|
|
7455
7775
|
//# sourceMappingURL=dereekb-dbx-firebase.mjs.map
|