@dereekb/dbx-firebase 9.15.3 → 9.15.5
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/esm2020/lib/development/development.popup.content.component.mjs +15 -9
- package/esm2020/lib/firebase/emulators.mjs +1 -1
- package/esm2020/lib/firebase/firebase.emulator.module.mjs +2 -1
- package/esm2020/lib/firebase/firebase.emulator.service.mjs +30 -0
- package/esm2020/lib/firebase/index.mjs +2 -1
- package/esm2020/lib/router/id.param.redirect.mjs +4 -1
- package/fesm2015/dereekb-dbx-firebase.mjs +568 -533
- package/fesm2015/dereekb-dbx-firebase.mjs.map +1 -1
- package/fesm2020/dereekb-dbx-firebase.mjs +559 -526
- package/fesm2020/dereekb-dbx-firebase.mjs.map +1 -1
- package/lib/development/development.popup.content.component.d.ts +6 -2
- package/lib/firebase/emulators.d.ts +3 -1
- package/lib/firebase/firebase.emulator.service.d.ts +12 -0
- package/lib/firebase/index.d.ts +1 -0
- package/lib/router/id.param.redirect.d.ts +1 -0
- package/package.json +6 -6
|
@@ -20,22 +20,22 @@ import { asObservable, timeoutStartWith, filterMaybe, isNot, SubscriptionObject,
|
|
|
20
20
|
import * as i1$1 from '@angular/fire/auth';
|
|
21
21
|
import { authState, idToken, GoogleAuthProvider, FacebookAuthProvider, TwitterAuthProvider, GithubAuthProvider, signInWithPopup, createUserWithEmailAndPassword, signInWithEmailAndPassword, signInAnonymously, provideAuth, getAuth, connectAuthEmulator } from '@angular/fire/auth';
|
|
22
22
|
import { sendPasswordResetEmail } from 'firebase/auth';
|
|
23
|
-
import * as i1$
|
|
23
|
+
import * as i1$4 from '@dereekb/firebase';
|
|
24
24
|
import { firebaseAuthErrorToReadableError, ScheduledFunctionDevelopmentFunctionTypeEnum, clientFirebaseFirestoreContextFactory, SystemStateFirestoreCollections, FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY, FirebaseDevelopmentFunctions, iterationQueryDocChangeWatcher, firebaseQuerySnapshotAccumulator, firebaseQueryItemAccumulator, firestoreModelKeysFromDocuments, firestoreModelIdsFromDocuments, documentReferencesFromDocuments, getDocumentSnapshots, getDataFromDocumentSnapshots, latestSnapshotsFromDocuments, dataFromDocumentSnapshots, loadDocumentsForKeys, loadDocumentsForDocumentReferences, loadDocumentsForIds, FirestoreAccessorStreamMode, firestoreModelIdsFromKey, firestoreModelKeyPartPairs, firestoreModelKeyPairObject, documentDataWithIdAndKey, clientFirebaseStorageContextFactory } from '@dereekb/firebase';
|
|
25
|
-
import * as
|
|
25
|
+
import * as i1$3 from '@dereekb/dbx-form';
|
|
26
26
|
import { AbstractAsyncFormlyFormDirective, usernamePasswordLoginFields, provideFormlyContext, AbstractSyncFormlyFormDirective, emailField, DbxFormIoModule, DbxFormModule, DbxFormlyModule, DbxFormActionModule, DbxFormFormlyTextFieldModule, AbstractConfigAsyncFormlyFormDirective, pickableItemChipField, filterPickableItemFieldValuesByLabel } from '@dereekb/dbx-form';
|
|
27
27
|
import { msToSeconds } from '@dereekb/date';
|
|
28
|
-
import * as i2$3 from '@angular/material/snack-bar';
|
|
29
28
|
import { initializeApp } from 'firebase/app';
|
|
30
29
|
import * as i6 from '@angular/fire/app';
|
|
31
30
|
import { FirebaseApp, provideFirebaseApp } from '@angular/fire/app';
|
|
32
31
|
import * as i4 from '@angular/fire/storage';
|
|
33
32
|
import { provideStorage, getStorage, connectStorageEmulator, Storage } from '@angular/fire/storage';
|
|
34
|
-
import * as i5
|
|
33
|
+
import * as i5 from '@angular/fire/functions';
|
|
35
34
|
import { provideFunctions, getFunctions, connectFunctionsEmulator, Functions } from '@angular/fire/functions';
|
|
36
|
-
import * as i1$
|
|
35
|
+
import * as i1$5 from '@angular/fire/firestore';
|
|
37
36
|
import { provideFirestore, getFirestore, connectFirestoreEmulator, enableIndexedDbPersistence, Firestore } from '@angular/fire/firestore';
|
|
38
37
|
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
38
|
+
import * as i2$3 from '@angular/material/snack-bar';
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* Enables debug token generation for AppCheck by setting FIREBASE_APPCHECK_DEBUG_TOKEN in the browser's self/window.
|
|
@@ -866,7 +866,7 @@ class DbxFirebaseEmailFormComponent extends AbstractAsyncFormlyFormDirective {
|
|
|
866
866
|
DbxFirebaseEmailFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmailFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
867
867
|
DbxFirebaseEmailFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseEmailFormComponent, selector: "dbx-firebase-email-form", inputs: { config: "config" }, providers: [provideFormlyContext()], usesInheritance: true, ngImport: i0, template: `
|
|
868
868
|
<dbx-formly></dbx-formly>
|
|
869
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
869
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$3.DbxFormlyFormComponent, selector: "dbx-formly", exportAs: ["formly"] }] });
|
|
870
870
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmailFormComponent, decorators: [{
|
|
871
871
|
type: Component,
|
|
872
872
|
args: [{
|
|
@@ -889,7 +889,7 @@ class DbxFirebaseEmailRecoveryFormComponent extends AbstractSyncFormlyFormDirect
|
|
|
889
889
|
DbxFirebaseEmailRecoveryFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmailRecoveryFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
890
890
|
DbxFirebaseEmailRecoveryFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseEmailRecoveryFormComponent, selector: "dbx-firebase-email-recovery-form", providers: [provideFormlyContext()], usesInheritance: true, ngImport: i0, template: `
|
|
891
891
|
<dbx-formly></dbx-formly>
|
|
892
|
-
`, isInline: true, dependencies: [{ kind: "component", type:
|
|
892
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$3.DbxFormlyFormComponent, selector: "dbx-formly", exportAs: ["formly"] }] });
|
|
893
893
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmailRecoveryFormComponent, decorators: [{
|
|
894
894
|
type: Component,
|
|
895
895
|
args: [{
|
|
@@ -983,7 +983,7 @@ class DbxFirebaseLoginEmailContentComponent {
|
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
985
|
DbxFirebaseLoginEmailContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseLoginEmailContentComponent, deps: [{ token: DbxFirebaseAuthService }, { token: DBX_INJECTION_COMPONENT_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
986
|
-
DbxFirebaseLoginEmailContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseLoginEmailContentComponent, selector: "ng-component", ngImport: i0, template: "<div class=\"dbx-firebase-login-email-content\">\n <ng-container [ngSwitch]=\"emailMode$ | async\">\n <ng-container *ngSwitchCase=\"'login'\">\n <ng-container *ngTemplateOutlet=\"loginView\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'recover'\">\n <ng-container *ngTemplateOutlet=\"resetPassword\"></ng-container>\n </ng-container>\n </ng-container>\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]=\"emailFormValue\"></dbx-firebase-email-form>\n <div class=\"dbx-firebase-login-email-forgot-prompt\" *ngIf=\"isLoginMode\">\n <dbx-link [anchor]=\"forgotAnchor\">Forgot Password?</dbx-link>\n </div>\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-wide-button\" [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 <ng-container dbxAction [dbxActionHandler]=\"handleRecoveryAction\">\n <dbx-firebase-email-recovery-form dbxActionForm [dbxFormSource]=\"recoveryFormValue\"></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-wide-button\" 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 </ng-container>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i1$2.DbxAnchorLinkComponent, selector: "dbx-link", inputs: ["anchor", "ref", "href"] }, { kind: "directive", type:
|
|
986
|
+
DbxFirebaseLoginEmailContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseLoginEmailContentComponent, selector: "ng-component", ngImport: i0, template: "<div class=\"dbx-firebase-login-email-content\">\n <ng-container [ngSwitch]=\"emailMode$ | async\">\n <ng-container *ngSwitchCase=\"'login'\">\n <ng-container *ngTemplateOutlet=\"loginView\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'recover'\">\n <ng-container *ngTemplateOutlet=\"resetPassword\"></ng-container>\n </ng-container>\n </ng-container>\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]=\"emailFormValue\"></dbx-firebase-email-form>\n <div class=\"dbx-firebase-login-email-forgot-prompt\" *ngIf=\"isLoginMode\">\n <dbx-link [anchor]=\"forgotAnchor\">Forgot Password?</dbx-link>\n </div>\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-wide-button\" [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 <ng-container dbxAction [dbxActionHandler]=\"handleRecoveryAction\">\n <dbx-firebase-email-recovery-form dbxActionForm [dbxFormSource]=\"recoveryFormValue\"></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-wide-button\" 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 </ng-container>\n</ng-template>\n", dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i2.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i1$2.DbxAnchorLinkComponent, selector: "dbx-link", inputs: ["anchor", "ref", "href"] }, { kind: "directive", type: i1$3.DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "directive", type: i1$3.DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormValidator", "dbxActionFormModified", "formDisabledOnWorking"] }, { kind: "component", type: i1$2.DbxReadableErrorComponent, selector: "dbx-error", inputs: ["error"] }, { kind: "directive", type: i1$2.DbxActionErrorDirective, selector: "[dbxActionError]" }, { kind: "directive", type: i2$2.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2$2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2$2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: i1$2.DbxButtonComponent, selector: "dbx-button", inputs: ["type", "raised", "stroked", "flat", "color", "customButtonColor", "customTextColor", "customSpinnerColor"] }, { kind: "directive", type: i1$2.DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "component", type: DbxFirebaseEmailFormComponent, selector: "dbx-firebase-email-form", inputs: ["config"] }, { kind: "component", type: DbxFirebaseEmailRecoveryFormComponent, selector: "dbx-firebase-email-recovery-form" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
|
|
987
987
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseLoginEmailContentComponent, decorators: [{
|
|
988
988
|
type: Component,
|
|
989
989
|
args: [{ template: "<div class=\"dbx-firebase-login-email-content\">\n <ng-container [ngSwitch]=\"emailMode$ | async\">\n <ng-container *ngSwitchCase=\"'login'\">\n <ng-container *ngTemplateOutlet=\"loginView\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'recover'\">\n <ng-container *ngTemplateOutlet=\"resetPassword\"></ng-container>\n </ng-container>\n </ng-container>\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]=\"emailFormValue\"></dbx-firebase-email-form>\n <div class=\"dbx-firebase-login-email-forgot-prompt\" *ngIf=\"isLoginMode\">\n <dbx-link [anchor]=\"forgotAnchor\">Forgot Password?</dbx-link>\n </div>\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-wide-button\" [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 <ng-container dbxAction [dbxActionHandler]=\"handleRecoveryAction\">\n <dbx-firebase-email-recovery-form dbxActionForm [dbxFormSource]=\"recoveryFormValue\"></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-wide-button\" 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 </ng-container>\n</ng-template>\n" }]
|
|
@@ -1605,7 +1605,7 @@ class DbxFirebaseDevelopmentSchedulerService {
|
|
|
1605
1605
|
this._timerInterval.next(timerInterval);
|
|
1606
1606
|
}
|
|
1607
1607
|
}
|
|
1608
|
-
DbxFirebaseDevelopmentSchedulerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService, deps: [{ token: DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, optional: true }, { token: i2$2.DbxAuthService }, { token: i1$
|
|
1608
|
+
DbxFirebaseDevelopmentSchedulerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService, deps: [{ token: DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, optional: true }, { token: i2$2.DbxAuthService }, { token: i1$4.FirebaseDevelopmentFunctions }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1609
1609
|
DbxFirebaseDevelopmentSchedulerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService, providedIn: 'root' });
|
|
1610
1610
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService, decorators: [{
|
|
1611
1611
|
type: Injectable,
|
|
@@ -1618,7 +1618,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1618
1618
|
}, {
|
|
1619
1619
|
type: Inject,
|
|
1620
1620
|
args: [DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN]
|
|
1621
|
-
}] }, { type: i2$2.DbxAuthService }, { type: i1$
|
|
1621
|
+
}] }, { type: i2$2.DbxAuthService }, { type: i1$4.FirebaseDevelopmentFunctions }];
|
|
1622
1622
|
} });
|
|
1623
1623
|
|
|
1624
1624
|
class DbxFirebaseDevelopmentSchedulerListComponent extends AbstractDbxSelectionListWrapperDirective {
|
|
@@ -1727,445 +1727,129 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
1727
1727
|
}]
|
|
1728
1728
|
}], ctorParameters: function () { return [{ type: DbxFirebaseDevelopmentSchedulerService }]; } });
|
|
1729
1729
|
|
|
1730
|
-
|
|
1731
|
-
const displayValues = values.map((x) => { var _a; return (Object.assign(Object.assign({}, x), { label: ((_a = x.meta) === null || _a === void 0 ? void 0 : _a.label) || x.value })); });
|
|
1732
|
-
const obs = of(displayValues);
|
|
1733
|
-
return obs;
|
|
1734
|
-
};
|
|
1735
|
-
class DbxFirebaseDevelopmentPopupContentFormComponent extends AbstractConfigAsyncFormlyFormDirective {
|
|
1736
|
-
constructor() {
|
|
1737
|
-
super(...arguments);
|
|
1738
|
-
this.fields$ = this.config$.pipe(map((config) => {
|
|
1739
|
-
return [
|
|
1740
|
-
pickableItemChipField({
|
|
1741
|
-
key: 'specifier',
|
|
1742
|
-
filterLabel: 'Tools',
|
|
1743
|
-
description: 'Pick a tool to get started.',
|
|
1744
|
-
filterValues: filterPickableItemFieldValuesByLabel,
|
|
1745
|
-
loadValues: () => of(config.entries.map((y) => ({ value: y.widget.type, meta: y }))),
|
|
1746
|
-
displayForValue: DISPLAY_FOR_STRING_VALUE,
|
|
1747
|
-
asArrayValue: false
|
|
1748
|
-
})
|
|
1749
|
-
];
|
|
1750
|
-
}));
|
|
1751
|
-
}
|
|
1752
|
-
}
|
|
1753
|
-
DbxFirebaseDevelopmentPopupContentFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1754
|
-
DbxFirebaseDevelopmentPopupContentFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseDevelopmentPopupContentFormComponent, selector: "dbx-firebase-development-popup-content-form", providers: [provideFormlyContext()], usesInheritance: true, ngImport: i0, template: `
|
|
1755
|
-
<dbx-formly></dbx-formly>
|
|
1756
|
-
`, isInline: true, dependencies: [{ kind: "component", type: i5.DbxFormlyFormComponent, selector: "dbx-formly", exportAs: ["formly"] }] });
|
|
1757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentFormComponent, decorators: [{
|
|
1758
|
-
type: Component,
|
|
1759
|
-
args: [{
|
|
1760
|
-
template: `
|
|
1761
|
-
<dbx-formly></dbx-formly>
|
|
1762
|
-
`,
|
|
1763
|
-
selector: 'dbx-firebase-development-popup-content-form',
|
|
1764
|
-
providers: [provideFormlyContext()]
|
|
1765
|
-
}]
|
|
1766
|
-
}] });
|
|
1767
|
-
|
|
1768
|
-
class DbxFirebaseDevelopmentPopupContentComponent {
|
|
1769
|
-
constructor(twoColumnsContextStore, dbxAuthService, dbxFirebaseDevelopmentWidgetService, dbxFirebaseDevelopmentSchedulerService) {
|
|
1770
|
-
this.twoColumnsContextStore = twoColumnsContextStore;
|
|
1771
|
-
this.dbxAuthService = dbxAuthService;
|
|
1772
|
-
this.dbxFirebaseDevelopmentWidgetService = dbxFirebaseDevelopmentWidgetService;
|
|
1773
|
-
this.dbxFirebaseDevelopmentSchedulerService = dbxFirebaseDevelopmentSchedulerService;
|
|
1774
|
-
this._backSub = new SubscriptionObject();
|
|
1775
|
-
this.entries = this.dbxFirebaseDevelopmentWidgetService.getEntries();
|
|
1776
|
-
this._activeEntrySelector = new BehaviorSubject(DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY);
|
|
1777
|
-
this.isLoggedIn$ = this.dbxAuthService.isLoggedIn$;
|
|
1778
|
-
this.entries$ = this.isLoggedIn$.pipe(distinctUntilChanged(), map((isLoggedIn) => this.entries), tapLog('Entries'), shareReplay(1));
|
|
1779
|
-
this.formConfig$ = this.entries$.pipe(map((entries) => ({ entries })));
|
|
1780
|
-
this.activeEntrySelector$ = this._activeEntrySelector.pipe(distinctUntilChanged());
|
|
1781
|
-
this.currentActiveEntry$ = combineLatest([this.entries$, this.activeEntrySelector$]).pipe(map(([entries, selector]) => (selector ? entries.find((e) => e.widget.type === selector) : undefined)), shareReplay(1));
|
|
1782
|
-
this.showRight$ = this.currentActiveEntry$.pipe(map((x) => x != null));
|
|
1783
|
-
this.activeEntry$ = this.currentActiveEntry$.pipe(filterMaybe(), distinctUntilChanged(), shareReplay(1));
|
|
1784
|
-
this.rightTitle$ = this.activeEntry$.pipe(map((x) => x.label));
|
|
1785
|
-
this.widgetConfig$ = this.activeEntry$.pipe(map((x) => ({ data: undefined, type: x.widget.type })), shareReplay(1));
|
|
1786
|
-
this.schedulerRunning$ = this.dbxFirebaseDevelopmentSchedulerService.running$;
|
|
1787
|
-
this.schedulerInterval$ = this.dbxFirebaseDevelopmentSchedulerService.timerInterval$.pipe(map((x) => msToSeconds(x)), shareReplay(1));
|
|
1788
|
-
this.schedulerError$ = this.dbxFirebaseDevelopmentSchedulerService.error$.pipe(map((x) => (x ? 'Error Occured' : 'Ok')), shareReplay(1));
|
|
1789
|
-
this.formData$ = this._activeEntrySelector.pipe(distinctUntilChanged(), map((specifier) => ({ specifier })));
|
|
1790
|
-
this.handleFormUpdate = (value, context) => {
|
|
1791
|
-
this._activeEntrySelector.next(value.specifier);
|
|
1792
|
-
context.success();
|
|
1793
|
-
};
|
|
1794
|
-
this.isFormModified = (value) => {
|
|
1795
|
-
return this._activeEntrySelector.pipe(map((currentSelector) => value.specifier !== currentSelector), first());
|
|
1796
|
-
};
|
|
1797
|
-
}
|
|
1798
|
-
ngOnInit() {
|
|
1799
|
-
this.twoColumnsContextStore.setShowRight(this.showRight$);
|
|
1800
|
-
this._backSub.subscription = this.twoColumnsContextStore.back$.subscribe(() => {
|
|
1801
|
-
this.clearSelection();
|
|
1802
|
-
});
|
|
1803
|
-
}
|
|
1804
|
-
ngOnDestroy() {
|
|
1805
|
-
this._activeEntrySelector.complete();
|
|
1806
|
-
}
|
|
1807
|
-
clearSelection() {
|
|
1808
|
-
this._activeEntrySelector.next(undefined);
|
|
1809
|
-
}
|
|
1730
|
+
class DbxFirebaseParsedEmulatorsConfig {
|
|
1810
1731
|
}
|
|
1811
|
-
DbxFirebaseDevelopmentPopupContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentComponent, deps: [{ token: i1$2.TwoColumnsContextStore }, { token: i2$2.DbxAuthService }, { token: DbxFirebaseDevelopmentWidgetService }, { token: DbxFirebaseDevelopmentSchedulerService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1812
|
-
DbxFirebaseDevelopmentPopupContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseDevelopmentPopupContentComponent, 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): {{ schedulerRunning$ | async }} : {{ schedulerInterval$ | async }}s : {{ schedulerError$ | async }}</p>\n </div>\n <div>\n <h4>Tools</h4>\n <div dbxAction dbxActionEnforceModified dbxActionAutoTrigger instantTrigger dbxActionLogger [dbxActionHandler]=\"handleFormUpdate\">\n <dbx-firebase-development-popup-content-form dbxActionForm [dbxFormSource]=\"formData$\" dbxFormSourceMode=\"always\" [dbxActionFormModified]=\"isFormModified\" [config]=\"formConfig$ | async\"></dbx-firebase-development-popup-content-form>\n </div>\n </div>\n </dbx-two-block>\n <dbx-two-column-right right [header]=\"(rightTitle$ | async) || ''\">\n <dbx-widget-view [config]=\"widgetConfig$ | async\"></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: i1$2.DbxWidgetViewComponent, selector: "dbx-widget-view", inputs: ["config"] }, { kind: "component", type: i1$2.DbxTwoBlocksComponent, selector: "dbx-two-block", inputs: ["fixedTop"] }, { kind: "component", type: i1$2.DbxTwoColumnComponent, selector: "dbx-two-column", inputs: ["reverseSizing", "inSectionPage"], exportAs: ["columns"] }, { kind: "component", type: i1$2.DbxTwoColumnRightComponent, selector: "dbx-two-column-right", inputs: ["header", "block", "showBack", "minRightWidth"] }, { kind: "directive", type: i1$2.DbxTwoColumnFullLeftDirective, selector: "[dbxTwoColumnFullLeft]", inputs: ["dbxTwoColumnFullLeft"] }, { kind: "directive", type: i5.DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "directive", type: i5.DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormValidator", "dbxActionFormModified", "formDisabledOnWorking"] }, { kind: "directive", type: i2$2.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2$2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2$2.DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: i2$2.DbxActionAutoTriggerDirective, selector: "dbxActionAutoTrigger, [dbxActionAutoTrigger]", inputs: ["dbxActionAutoTrigger", "triggerDebounce", "triggerThrottle", "triggerErrorThrottle", "fastTrigger", "instantTrigger", "triggerLimit"] }, { kind: "directive", type: i2$2.DbxActionContextLoggerDirective, selector: "[dbxActionLogger],[dbxActionContextLogger]" }, { kind: "component", type: DbxFirebaseDevelopmentPopupContentFormComponent, selector: "dbx-firebase-development-popup-content-form" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
|
|
1813
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentComponent, decorators: [{
|
|
1814
|
-
type: Component,
|
|
1815
|
-
args: [{ selector: 'dbx-firebase-development-popup-content', providers: [TwoColumnsContextStore], 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): {{ schedulerRunning$ | async }} : {{ schedulerInterval$ | async }}s : {{ schedulerError$ | async }}</p>\n </div>\n <div>\n <h4>Tools</h4>\n <div dbxAction dbxActionEnforceModified dbxActionAutoTrigger instantTrigger dbxActionLogger [dbxActionHandler]=\"handleFormUpdate\">\n <dbx-firebase-development-popup-content-form dbxActionForm [dbxFormSource]=\"formData$\" dbxFormSourceMode=\"always\" [dbxActionFormModified]=\"isFormModified\" [config]=\"formConfig$ | async\"></dbx-firebase-development-popup-content-form>\n </div>\n </div>\n </dbx-two-block>\n <dbx-two-column-right right [header]=\"(rightTitle$ | async) || ''\">\n <dbx-widget-view [config]=\"widgetConfig$ | async\"></dbx-widget-view>\n </dbx-two-column-right>\n</dbx-two-column>\n", styles: [".dbx-firebase-development-popup-content{height:400px;overflow:hidden}\n"] }]
|
|
1816
|
-
}], ctorParameters: function () { return [{ type: i1$2.TwoColumnsContextStore }, { type: i2$2.DbxAuthService }, { type: DbxFirebaseDevelopmentWidgetService }, { type: DbxFirebaseDevelopmentSchedulerService }]; } });
|
|
1817
1732
|
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
this.header = 'Development Tools';
|
|
1824
|
-
this.reopen = () => {
|
|
1825
|
-
DbxFirebaseDevelopmentPopupComponent.openPopup(this.popupService, this.popup.key);
|
|
1826
|
-
};
|
|
1827
|
-
}
|
|
1828
|
-
static openPopup(popupService, popupKey) {
|
|
1829
|
-
return popupService.open({
|
|
1830
|
-
key: popupKey !== null && popupKey !== void 0 ? popupKey : DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY,
|
|
1831
|
-
componentClass: DbxFirebaseDevelopmentPopupComponent,
|
|
1832
|
-
closeOnTransition: false,
|
|
1833
|
-
isDraggable: true,
|
|
1834
|
-
position: 'center'
|
|
1835
|
-
});
|
|
1836
|
-
}
|
|
1733
|
+
// TODO: remove "as any" typescript casting - https://github.com/angular/angularfire/issues/3086
|
|
1734
|
+
/**
|
|
1735
|
+
* Default firebase firestore provider module.
|
|
1736
|
+
*/
|
|
1737
|
+
class DbxFirebaseDefaultFirestoreProviderModule {
|
|
1837
1738
|
}
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1739
|
+
DbxFirebaseDefaultFirestoreProviderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirestoreProviderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1740
|
+
DbxFirebaseDefaultFirestoreProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirestoreProviderModule, imports: [i1$5.FirestoreModule] });
|
|
1741
|
+
DbxFirebaseDefaultFirestoreProviderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirestoreProviderModule, imports: [provideFirestore(((injector) => {
|
|
1742
|
+
const firebaseApp = injector.get(FirebaseApp);
|
|
1743
|
+
const firestore = getFirestore(firebaseApp);
|
|
1744
|
+
const emulators = injector.get(DbxFirebaseParsedEmulatorsConfig, undefined);
|
|
1745
|
+
if ((emulators === null || emulators === void 0 ? void 0 : emulators.useEmulators) && (emulators === null || emulators === void 0 ? void 0 : emulators.firestore)) {
|
|
1746
|
+
connectFirestoreEmulator(firestore, emulators.firestore.host, emulators.firestore.port, {});
|
|
1747
|
+
}
|
|
1748
|
+
enableIndexedDbPersistence(firestore);
|
|
1749
|
+
return firestore;
|
|
1750
|
+
}))] });
|
|
1751
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirestoreProviderModule, decorators: [{
|
|
1752
|
+
type: NgModule,
|
|
1847
1753
|
args: [{
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1754
|
+
imports: [
|
|
1755
|
+
provideFirestore(((injector) => {
|
|
1756
|
+
const firebaseApp = injector.get(FirebaseApp);
|
|
1757
|
+
const firestore = getFirestore(firebaseApp);
|
|
1758
|
+
const emulators = injector.get(DbxFirebaseParsedEmulatorsConfig, undefined);
|
|
1759
|
+
if ((emulators === null || emulators === void 0 ? void 0 : emulators.useEmulators) && (emulators === null || emulators === void 0 ? void 0 : emulators.firestore)) {
|
|
1760
|
+
connectFirestoreEmulator(firestore, emulators.firestore.host, emulators.firestore.port, {});
|
|
1761
|
+
}
|
|
1762
|
+
enableIndexedDbPersistence(firestore);
|
|
1763
|
+
return firestore;
|
|
1764
|
+
}))
|
|
1765
|
+
]
|
|
1854
1766
|
}]
|
|
1855
|
-
}]
|
|
1856
|
-
type: ViewChild,
|
|
1857
|
-
args: [DbxFirebaseDevelopmentPopupContentComponent, { static: true }]
|
|
1858
|
-
}] } });
|
|
1859
|
-
|
|
1860
|
-
/**
|
|
1861
|
-
* Enabled state
|
|
1862
|
-
*/
|
|
1863
|
-
const DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN = new InjectionToken('DefaultDbxFirebaseDevelopmentEnabled');
|
|
1767
|
+
}] });
|
|
1864
1768
|
/**
|
|
1865
|
-
*
|
|
1769
|
+
* Default firebase app check provider module.
|
|
1866
1770
|
*
|
|
1867
|
-
*
|
|
1771
|
+
* Also configures the DbxFirebaseAppCheckHttpInterceptor with HTTP_INTERCEPTORS in order for appCheck to be appended to requests to the api.
|
|
1868
1772
|
*/
|
|
1869
|
-
class
|
|
1870
|
-
constructor(enabled) {
|
|
1871
|
-
this.enabled = enabled;
|
|
1872
|
-
}
|
|
1773
|
+
class DbxFirebaseDefaultAppCheckProviderModule {
|
|
1873
1774
|
}
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
i0.ɵɵ
|
|
1877
|
-
|
|
1775
|
+
DbxFirebaseDefaultAppCheckProviderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1776
|
+
DbxFirebaseDefaultAppCheckProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, imports: [i1.AppCheckModule] });
|
|
1777
|
+
DbxFirebaseDefaultAppCheckProviderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, providers: [
|
|
1778
|
+
{
|
|
1779
|
+
provide: HTTP_INTERCEPTORS,
|
|
1780
|
+
useClass: DbxFirebaseAppCheckHttpInterceptor,
|
|
1781
|
+
multi: true
|
|
1782
|
+
}
|
|
1783
|
+
], imports: [provideAppCheck((injector) => {
|
|
1784
|
+
var _a, _b, _c;
|
|
1785
|
+
const firebaseApp = injector.get(FirebaseApp);
|
|
1786
|
+
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
1787
|
+
const appCheckOptions = firebaseOptions.appCheck;
|
|
1788
|
+
const appCheckKnowinglyDisabled = (appCheckOptions === null || appCheckOptions === void 0 ? void 0 : appCheckOptions.disabled) === true || ((_a = firebaseOptions.emulators) === null || _a === void 0 ? void 0 : _a.useEmulators) === true;
|
|
1789
|
+
let appCheck;
|
|
1790
|
+
if (appCheckOptions && !appCheckKnowinglyDisabled) {
|
|
1791
|
+
// enable the debug tokens if not using emulators and allowDebugTokens is set true
|
|
1792
|
+
if (((_b = firebaseOptions.emulators) === null || _b === void 0 ? void 0 : _b.useEmulators) !== true && appCheckOptions.allowDebugTokens) {
|
|
1793
|
+
enableAppCheckDebugTokenGeneration(true);
|
|
1794
|
+
}
|
|
1795
|
+
// Only enabled outside of app-check environments. The emulators will not use appcheck.
|
|
1796
|
+
appCheck = initializeAppCheck(firebaseApp, {
|
|
1797
|
+
provider: new ReCaptchaV3Provider(appCheckOptions.reCaptchaV3),
|
|
1798
|
+
isTokenAutoRefreshEnabled: (_c = appCheckOptions.isTokenAutoRefreshEnabled) !== null && _c !== void 0 ? _c : true
|
|
1799
|
+
});
|
|
1800
|
+
console.log('Enabled AppCheck.');
|
|
1801
|
+
}
|
|
1802
|
+
else {
|
|
1803
|
+
appCheck = undefined;
|
|
1804
|
+
if (!appCheckKnowinglyDisabled) {
|
|
1805
|
+
console.error('dbx-firebase: No appcheck configuration for the app, and not specifically disabled in config either.');
|
|
1806
|
+
}
|
|
1807
|
+
}
|
|
1808
|
+
return appCheck;
|
|
1809
|
+
})] });
|
|
1810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, decorators: [{
|
|
1811
|
+
type: NgModule,
|
|
1878
1812
|
args: [{
|
|
1879
|
-
|
|
1813
|
+
imports: [
|
|
1814
|
+
provideAppCheck((injector) => {
|
|
1815
|
+
var _a, _b, _c;
|
|
1816
|
+
const firebaseApp = injector.get(FirebaseApp);
|
|
1817
|
+
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
1818
|
+
const appCheckOptions = firebaseOptions.appCheck;
|
|
1819
|
+
const appCheckKnowinglyDisabled = (appCheckOptions === null || appCheckOptions === void 0 ? void 0 : appCheckOptions.disabled) === true || ((_a = firebaseOptions.emulators) === null || _a === void 0 ? void 0 : _a.useEmulators) === true;
|
|
1820
|
+
let appCheck;
|
|
1821
|
+
if (appCheckOptions && !appCheckKnowinglyDisabled) {
|
|
1822
|
+
// enable the debug tokens if not using emulators and allowDebugTokens is set true
|
|
1823
|
+
if (((_b = firebaseOptions.emulators) === null || _b === void 0 ? void 0 : _b.useEmulators) !== true && appCheckOptions.allowDebugTokens) {
|
|
1824
|
+
enableAppCheckDebugTokenGeneration(true);
|
|
1825
|
+
}
|
|
1826
|
+
// Only enabled outside of app-check environments. The emulators will not use appcheck.
|
|
1827
|
+
appCheck = initializeAppCheck(firebaseApp, {
|
|
1828
|
+
provider: new ReCaptchaV3Provider(appCheckOptions.reCaptchaV3),
|
|
1829
|
+
isTokenAutoRefreshEnabled: (_c = appCheckOptions.isTokenAutoRefreshEnabled) !== null && _c !== void 0 ? _c : true
|
|
1830
|
+
});
|
|
1831
|
+
console.log('Enabled AppCheck.');
|
|
1832
|
+
}
|
|
1833
|
+
else {
|
|
1834
|
+
appCheck = undefined;
|
|
1835
|
+
if (!appCheckKnowinglyDisabled) {
|
|
1836
|
+
console.error('dbx-firebase: No appcheck configuration for the app, and not specifically disabled in config either.');
|
|
1837
|
+
}
|
|
1838
|
+
}
|
|
1839
|
+
return appCheck;
|
|
1840
|
+
})
|
|
1841
|
+
],
|
|
1842
|
+
providers: [
|
|
1843
|
+
{
|
|
1844
|
+
provide: HTTP_INTERCEPTORS,
|
|
1845
|
+
useClass: DbxFirebaseAppCheckHttpInterceptor,
|
|
1846
|
+
multi: true
|
|
1847
|
+
}
|
|
1848
|
+
]
|
|
1880
1849
|
}]
|
|
1881
|
-
}]
|
|
1882
|
-
return [{ type: undefined, decorators: [{
|
|
1883
|
-
type: Optional
|
|
1884
|
-
}, {
|
|
1885
|
-
type: Inject,
|
|
1886
|
-
args: [DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN]
|
|
1887
|
-
}] }];
|
|
1888
|
-
} });
|
|
1889
|
-
|
|
1850
|
+
}] });
|
|
1890
1851
|
/**
|
|
1891
|
-
*
|
|
1892
|
-
*/
|
|
1893
|
-
class DbxFirebaseDevelopmentDirective {
|
|
1894
|
-
constructor(popupService, matSnackBar, dbxFirebaseDevelopmentService) {
|
|
1895
|
-
this.popupService = popupService;
|
|
1896
|
-
this.matSnackBar = matSnackBar;
|
|
1897
|
-
this.dbxFirebaseDevelopmentService = dbxFirebaseDevelopmentService;
|
|
1898
|
-
}
|
|
1899
|
-
get enabled() {
|
|
1900
|
-
return this.dbxFirebaseDevelopmentService.enabled;
|
|
1901
|
-
}
|
|
1902
|
-
handleKeyboardEvent(event) {
|
|
1903
|
-
if (this.enabled && event.shiftKey && event.altKey && event.code === 'KeyD') {
|
|
1904
|
-
this.togglePopup();
|
|
1905
|
-
event.preventDefault();
|
|
1906
|
-
}
|
|
1907
|
-
}
|
|
1908
|
-
togglePopup() {
|
|
1909
|
-
if (this.ref) {
|
|
1910
|
-
this.closePopup();
|
|
1911
|
-
}
|
|
1912
|
-
else {
|
|
1913
|
-
this.openPopup();
|
|
1914
|
-
}
|
|
1915
|
-
}
|
|
1916
|
-
openPopup() {
|
|
1917
|
-
if (!this.ref) {
|
|
1918
|
-
const ref = DbxFirebaseDevelopmentPopupComponent.openPopup(this.popupService);
|
|
1919
|
-
ref.afterClosed$.subscribe(() => {
|
|
1920
|
-
if (this.ref === ref) {
|
|
1921
|
-
this.ref = undefined;
|
|
1922
|
-
}
|
|
1923
|
-
});
|
|
1924
|
-
this.ref = ref;
|
|
1925
|
-
}
|
|
1926
|
-
}
|
|
1927
|
-
closePopup() {
|
|
1928
|
-
if (this.ref != null) {
|
|
1929
|
-
this.ref.close();
|
|
1930
|
-
}
|
|
1931
|
-
}
|
|
1932
|
-
ngAfterViewInit() {
|
|
1933
|
-
if (this.enabled) {
|
|
1934
|
-
this.matSnackBar
|
|
1935
|
-
.open('Dev Tools: alt/option + shift + D', 'Open', {
|
|
1936
|
-
horizontalPosition: 'center',
|
|
1937
|
-
verticalPosition: 'bottom',
|
|
1938
|
-
duration: 8 * 1000
|
|
1939
|
-
})
|
|
1940
|
-
.onAction()
|
|
1941
|
-
.subscribe(() => {
|
|
1942
|
-
this.openPopup();
|
|
1943
|
-
});
|
|
1944
|
-
}
|
|
1945
|
-
}
|
|
1946
|
-
ngOnDestroy() {
|
|
1947
|
-
this.closePopup();
|
|
1948
|
-
}
|
|
1949
|
-
}
|
|
1950
|
-
DbxFirebaseDevelopmentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentDirective, deps: [{ token: i1$2.DbxPopupService }, { token: i2$3.MatSnackBar }, { token: DbxFirebaseDevelopmentService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1951
|
-
DbxFirebaseDevelopmentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseDevelopmentDirective, selector: "[dbxFirebaseDevelopment]", host: { listeners: { "window:keydown": "handleKeyboardEvent($event)" } }, ngImport: i0 });
|
|
1952
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentDirective, decorators: [{
|
|
1953
|
-
type: Directive,
|
|
1954
|
-
args: [{
|
|
1955
|
-
selector: '[dbxFirebaseDevelopment]'
|
|
1956
|
-
}]
|
|
1957
|
-
}], ctorParameters: function () { return [{ type: i1$2.DbxPopupService }, { type: i2$3.MatSnackBar }, { type: DbxFirebaseDevelopmentService }]; }, propDecorators: { handleKeyboardEvent: [{
|
|
1958
|
-
type: HostListener,
|
|
1959
|
-
args: ['window:keydown', ['$event']]
|
|
1960
|
-
}] } });
|
|
1961
|
-
|
|
1962
|
-
class DbxFirebaseDevelopmentModuleRootConfig {
|
|
1963
|
-
}
|
|
1964
|
-
/**
|
|
1965
|
-
* Contains components related to logging in.
|
|
1966
|
-
*/
|
|
1967
|
-
class DbxFirebaseDevelopmentModule {
|
|
1968
|
-
constructor(dbxFirebaseDevelopmentSchedulerService) {
|
|
1969
|
-
this.dbxFirebaseDevelopmentSchedulerService = dbxFirebaseDevelopmentSchedulerService;
|
|
1970
|
-
dbxFirebaseDevelopmentSchedulerService.init();
|
|
1971
|
-
}
|
|
1972
|
-
static forRoot(config) {
|
|
1973
|
-
let entries = config.entries;
|
|
1974
|
-
if (config.addDevelopmentSchedulerWidget !== false) {
|
|
1975
|
-
entries = [developmentFirebaseServerSchedulerWidgetEntry(), ...config.entries];
|
|
1976
|
-
}
|
|
1977
|
-
return {
|
|
1978
|
-
ngModule: DbxFirebaseDevelopmentModule,
|
|
1979
|
-
providers: [
|
|
1980
|
-
{
|
|
1981
|
-
provide: DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN,
|
|
1982
|
-
useValue: entries
|
|
1983
|
-
},
|
|
1984
|
-
{
|
|
1985
|
-
provide: DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN,
|
|
1986
|
-
useValue: config.enabled
|
|
1987
|
-
},
|
|
1988
|
-
{
|
|
1989
|
-
provide: DbxFirebaseDevelopmentModuleRootConfig,
|
|
1990
|
-
useValue: config
|
|
1991
|
-
}
|
|
1992
|
-
]
|
|
1993
|
-
};
|
|
1994
|
-
}
|
|
1995
|
-
}
|
|
1996
|
-
DbxFirebaseDevelopmentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentModule, deps: [{ token: DbxFirebaseDevelopmentSchedulerService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1997
|
-
DbxFirebaseDevelopmentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentModule, declarations: [
|
|
1998
|
-
//
|
|
1999
|
-
DbxFirebaseDevelopmentPopupContentFormComponent,
|
|
2000
|
-
DbxFirebaseDevelopmentDirective,
|
|
2001
|
-
DbxFirebaseDevelopmentPopupComponent,
|
|
2002
|
-
DbxFirebaseDevelopmentPopupContentComponent,
|
|
2003
|
-
DbxFirebaseDevelopmentSchedulerWidgetComponent,
|
|
2004
|
-
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2005
|
-
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2006
|
-
DbxFirebaseDevelopmentSchedulerListViewItemComponent
|
|
2007
|
-
], imports: [CommonModule, MatIconModule, DbxWidgetModule, DbxTextModule, DbxBlockLayoutModule, DbxTwoColumnLayoutModule, MatButtonModule, DbxRouterAnchorModule, DbxPopupInteractionModule, DbxFormIoModule, DbxFormModule, DbxFormlyModule, DbxFormActionModule, DbxFormFormlyTextFieldModule, DbxReadableErrorModule, DbxActionModule, DbxButtonModule, DbxInjectionComponentModule, DbxListLayoutModule], exports: [
|
|
2008
|
-
//
|
|
2009
|
-
DbxFirebaseDevelopmentDirective,
|
|
2010
|
-
DbxFirebaseDevelopmentPopupComponent,
|
|
2011
|
-
DbxFirebaseDevelopmentPopupContentComponent,
|
|
2012
|
-
DbxFirebaseDevelopmentSchedulerWidgetComponent,
|
|
2013
|
-
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2014
|
-
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2015
|
-
DbxFirebaseDevelopmentSchedulerListViewItemComponent
|
|
2016
|
-
] });
|
|
2017
|
-
DbxFirebaseDevelopmentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentModule, imports: [CommonModule, MatIconModule, DbxWidgetModule, DbxTextModule, DbxBlockLayoutModule, DbxTwoColumnLayoutModule, MatButtonModule, DbxRouterAnchorModule, DbxPopupInteractionModule, DbxFormIoModule, DbxFormModule, DbxFormlyModule, DbxFormActionModule, DbxFormFormlyTextFieldModule, DbxReadableErrorModule, DbxActionModule, DbxButtonModule, DbxInjectionComponentModule, DbxListLayoutModule] });
|
|
2018
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentModule, decorators: [{
|
|
2019
|
-
type: NgModule,
|
|
2020
|
-
args: [{
|
|
2021
|
-
imports: [CommonModule, MatIconModule, DbxWidgetModule, DbxTextModule, DbxBlockLayoutModule, DbxTwoColumnLayoutModule, MatButtonModule, DbxRouterAnchorModule, DbxPopupInteractionModule, DbxFormIoModule, DbxFormModule, DbxFormlyModule, DbxFormActionModule, DbxFormFormlyTextFieldModule, DbxReadableErrorModule, DbxActionModule, DbxButtonModule, DbxInjectionComponentModule, DbxListLayoutModule],
|
|
2022
|
-
declarations: [
|
|
2023
|
-
//
|
|
2024
|
-
DbxFirebaseDevelopmentPopupContentFormComponent,
|
|
2025
|
-
DbxFirebaseDevelopmentDirective,
|
|
2026
|
-
DbxFirebaseDevelopmentPopupComponent,
|
|
2027
|
-
DbxFirebaseDevelopmentPopupContentComponent,
|
|
2028
|
-
DbxFirebaseDevelopmentSchedulerWidgetComponent,
|
|
2029
|
-
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2030
|
-
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2031
|
-
DbxFirebaseDevelopmentSchedulerListViewItemComponent
|
|
2032
|
-
],
|
|
2033
|
-
exports: [
|
|
2034
|
-
//
|
|
2035
|
-
DbxFirebaseDevelopmentDirective,
|
|
2036
|
-
DbxFirebaseDevelopmentPopupComponent,
|
|
2037
|
-
DbxFirebaseDevelopmentPopupContentComponent,
|
|
2038
|
-
DbxFirebaseDevelopmentSchedulerWidgetComponent,
|
|
2039
|
-
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2040
|
-
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2041
|
-
DbxFirebaseDevelopmentSchedulerListViewItemComponent
|
|
2042
|
-
]
|
|
2043
|
-
}]
|
|
2044
|
-
}], ctorParameters: function () { return [{ type: DbxFirebaseDevelopmentSchedulerService }]; } });
|
|
2045
|
-
|
|
2046
|
-
class DbxFirebaseParsedEmulatorsConfig {
|
|
2047
|
-
}
|
|
2048
|
-
|
|
2049
|
-
// TODO: remove "as any" typescript casting - https://github.com/angular/angularfire/issues/3086
|
|
2050
|
-
/**
|
|
2051
|
-
* Default firebase firestore provider module.
|
|
2052
|
-
*/
|
|
2053
|
-
class DbxFirebaseDefaultFirestoreProviderModule {
|
|
2054
|
-
}
|
|
2055
|
-
DbxFirebaseDefaultFirestoreProviderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirestoreProviderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2056
|
-
DbxFirebaseDefaultFirestoreProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirestoreProviderModule, imports: [i1$4.FirestoreModule] });
|
|
2057
|
-
DbxFirebaseDefaultFirestoreProviderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirestoreProviderModule, imports: [provideFirestore(((injector) => {
|
|
2058
|
-
const firebaseApp = injector.get(FirebaseApp);
|
|
2059
|
-
const firestore = getFirestore(firebaseApp);
|
|
2060
|
-
const emulators = injector.get(DbxFirebaseParsedEmulatorsConfig, undefined);
|
|
2061
|
-
if ((emulators === null || emulators === void 0 ? void 0 : emulators.useEmulators) && (emulators === null || emulators === void 0 ? void 0 : emulators.firestore)) {
|
|
2062
|
-
connectFirestoreEmulator(firestore, emulators.firestore.host, emulators.firestore.port, {});
|
|
2063
|
-
}
|
|
2064
|
-
enableIndexedDbPersistence(firestore);
|
|
2065
|
-
return firestore;
|
|
2066
|
-
}))] });
|
|
2067
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirestoreProviderModule, decorators: [{
|
|
2068
|
-
type: NgModule,
|
|
2069
|
-
args: [{
|
|
2070
|
-
imports: [
|
|
2071
|
-
provideFirestore(((injector) => {
|
|
2072
|
-
const firebaseApp = injector.get(FirebaseApp);
|
|
2073
|
-
const firestore = getFirestore(firebaseApp);
|
|
2074
|
-
const emulators = injector.get(DbxFirebaseParsedEmulatorsConfig, undefined);
|
|
2075
|
-
if ((emulators === null || emulators === void 0 ? void 0 : emulators.useEmulators) && (emulators === null || emulators === void 0 ? void 0 : emulators.firestore)) {
|
|
2076
|
-
connectFirestoreEmulator(firestore, emulators.firestore.host, emulators.firestore.port, {});
|
|
2077
|
-
}
|
|
2078
|
-
enableIndexedDbPersistence(firestore);
|
|
2079
|
-
return firestore;
|
|
2080
|
-
}))
|
|
2081
|
-
]
|
|
2082
|
-
}]
|
|
2083
|
-
}] });
|
|
2084
|
-
/**
|
|
2085
|
-
* Default firebase app check provider module.
|
|
2086
|
-
*
|
|
2087
|
-
* Also configures the DbxFirebaseAppCheckHttpInterceptor with HTTP_INTERCEPTORS in order for appCheck to be appended to requests to the api.
|
|
2088
|
-
*/
|
|
2089
|
-
class DbxFirebaseDefaultAppCheckProviderModule {
|
|
2090
|
-
}
|
|
2091
|
-
DbxFirebaseDefaultAppCheckProviderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2092
|
-
DbxFirebaseDefaultAppCheckProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, imports: [i1.AppCheckModule] });
|
|
2093
|
-
DbxFirebaseDefaultAppCheckProviderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, providers: [
|
|
2094
|
-
{
|
|
2095
|
-
provide: HTTP_INTERCEPTORS,
|
|
2096
|
-
useClass: DbxFirebaseAppCheckHttpInterceptor,
|
|
2097
|
-
multi: true
|
|
2098
|
-
}
|
|
2099
|
-
], imports: [provideAppCheck((injector) => {
|
|
2100
|
-
var _a, _b, _c;
|
|
2101
|
-
const firebaseApp = injector.get(FirebaseApp);
|
|
2102
|
-
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
2103
|
-
const appCheckOptions = firebaseOptions.appCheck;
|
|
2104
|
-
const appCheckKnowinglyDisabled = (appCheckOptions === null || appCheckOptions === void 0 ? void 0 : appCheckOptions.disabled) === true || ((_a = firebaseOptions.emulators) === null || _a === void 0 ? void 0 : _a.useEmulators) === true;
|
|
2105
|
-
let appCheck;
|
|
2106
|
-
if (appCheckOptions && !appCheckKnowinglyDisabled) {
|
|
2107
|
-
// enable the debug tokens if not using emulators and allowDebugTokens is set true
|
|
2108
|
-
if (((_b = firebaseOptions.emulators) === null || _b === void 0 ? void 0 : _b.useEmulators) !== true && appCheckOptions.allowDebugTokens) {
|
|
2109
|
-
enableAppCheckDebugTokenGeneration(true);
|
|
2110
|
-
}
|
|
2111
|
-
// Only enabled outside of app-check environments. The emulators will not use appcheck.
|
|
2112
|
-
appCheck = initializeAppCheck(firebaseApp, {
|
|
2113
|
-
provider: new ReCaptchaV3Provider(appCheckOptions.reCaptchaV3),
|
|
2114
|
-
isTokenAutoRefreshEnabled: (_c = appCheckOptions.isTokenAutoRefreshEnabled) !== null && _c !== void 0 ? _c : true
|
|
2115
|
-
});
|
|
2116
|
-
console.log('Enabled AppCheck.');
|
|
2117
|
-
}
|
|
2118
|
-
else {
|
|
2119
|
-
appCheck = undefined;
|
|
2120
|
-
if (!appCheckKnowinglyDisabled) {
|
|
2121
|
-
console.error('dbx-firebase: No appcheck configuration for the app, and not specifically disabled in config either.');
|
|
2122
|
-
}
|
|
2123
|
-
}
|
|
2124
|
-
return appCheck;
|
|
2125
|
-
})] });
|
|
2126
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultAppCheckProviderModule, decorators: [{
|
|
2127
|
-
type: NgModule,
|
|
2128
|
-
args: [{
|
|
2129
|
-
imports: [
|
|
2130
|
-
provideAppCheck((injector) => {
|
|
2131
|
-
var _a, _b, _c;
|
|
2132
|
-
const firebaseApp = injector.get(FirebaseApp);
|
|
2133
|
-
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
2134
|
-
const appCheckOptions = firebaseOptions.appCheck;
|
|
2135
|
-
const appCheckKnowinglyDisabled = (appCheckOptions === null || appCheckOptions === void 0 ? void 0 : appCheckOptions.disabled) === true || ((_a = firebaseOptions.emulators) === null || _a === void 0 ? void 0 : _a.useEmulators) === true;
|
|
2136
|
-
let appCheck;
|
|
2137
|
-
if (appCheckOptions && !appCheckKnowinglyDisabled) {
|
|
2138
|
-
// enable the debug tokens if not using emulators and allowDebugTokens is set true
|
|
2139
|
-
if (((_b = firebaseOptions.emulators) === null || _b === void 0 ? void 0 : _b.useEmulators) !== true && appCheckOptions.allowDebugTokens) {
|
|
2140
|
-
enableAppCheckDebugTokenGeneration(true);
|
|
2141
|
-
}
|
|
2142
|
-
// Only enabled outside of app-check environments. The emulators will not use appcheck.
|
|
2143
|
-
appCheck = initializeAppCheck(firebaseApp, {
|
|
2144
|
-
provider: new ReCaptchaV3Provider(appCheckOptions.reCaptchaV3),
|
|
2145
|
-
isTokenAutoRefreshEnabled: (_c = appCheckOptions.isTokenAutoRefreshEnabled) !== null && _c !== void 0 ? _c : true
|
|
2146
|
-
});
|
|
2147
|
-
console.log('Enabled AppCheck.');
|
|
2148
|
-
}
|
|
2149
|
-
else {
|
|
2150
|
-
appCheck = undefined;
|
|
2151
|
-
if (!appCheckKnowinglyDisabled) {
|
|
2152
|
-
console.error('dbx-firebase: No appcheck configuration for the app, and not specifically disabled in config either.');
|
|
2153
|
-
}
|
|
2154
|
-
}
|
|
2155
|
-
return appCheck;
|
|
2156
|
-
})
|
|
2157
|
-
],
|
|
2158
|
-
providers: [
|
|
2159
|
-
{
|
|
2160
|
-
provide: HTTP_INTERCEPTORS,
|
|
2161
|
-
useClass: DbxFirebaseAppCheckHttpInterceptor,
|
|
2162
|
-
multi: true
|
|
2163
|
-
}
|
|
2164
|
-
]
|
|
2165
|
-
}]
|
|
2166
|
-
}] });
|
|
2167
|
-
/**
|
|
2168
|
-
* Default firebase auth provider module.
|
|
1852
|
+
* Default firebase auth provider module.
|
|
2169
1853
|
*/
|
|
2170
1854
|
class DbxFirebaseDefaultAuthProviderModule {
|
|
2171
1855
|
}
|
|
@@ -2229,121 +1913,469 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
2229
1913
|
}]
|
|
2230
1914
|
}] });
|
|
2231
1915
|
/**
|
|
2232
|
-
* Default firebase functions provider module.
|
|
1916
|
+
* Default firebase functions provider module.
|
|
1917
|
+
*/
|
|
1918
|
+
class DbxFirebaseDefaultFunctionsProviderModule {
|
|
1919
|
+
}
|
|
1920
|
+
DbxFirebaseDefaultFunctionsProviderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFunctionsProviderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1921
|
+
DbxFirebaseDefaultFunctionsProviderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFunctionsProviderModule, imports: [i5.FunctionsModule] });
|
|
1922
|
+
DbxFirebaseDefaultFunctionsProviderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFunctionsProviderModule, imports: [provideFunctions((injector) => {
|
|
1923
|
+
const firebaseApp = injector.get(FirebaseApp);
|
|
1924
|
+
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
1925
|
+
const { functionsRegionOrCustomDomain } = firebaseOptions;
|
|
1926
|
+
const functions = getFunctions(firebaseApp, functionsRegionOrCustomDomain);
|
|
1927
|
+
const emulators = injector.get(DbxFirebaseParsedEmulatorsConfig, undefined);
|
|
1928
|
+
if ((emulators === null || emulators === void 0 ? void 0 : emulators.useEmulators) && (emulators === null || emulators === void 0 ? void 0 : emulators.functions)) {
|
|
1929
|
+
connectFunctionsEmulator(functions, emulators.functions.host, emulators.functions.port);
|
|
1930
|
+
}
|
|
1931
|
+
return functions;
|
|
1932
|
+
})] });
|
|
1933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFunctionsProviderModule, decorators: [{
|
|
1934
|
+
type: NgModule,
|
|
1935
|
+
args: [{
|
|
1936
|
+
imports: [
|
|
1937
|
+
provideFunctions((injector) => {
|
|
1938
|
+
const firebaseApp = injector.get(FirebaseApp);
|
|
1939
|
+
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
1940
|
+
const { functionsRegionOrCustomDomain } = firebaseOptions;
|
|
1941
|
+
const functions = getFunctions(firebaseApp, functionsRegionOrCustomDomain);
|
|
1942
|
+
const emulators = injector.get(DbxFirebaseParsedEmulatorsConfig, undefined);
|
|
1943
|
+
if ((emulators === null || emulators === void 0 ? void 0 : emulators.useEmulators) && (emulators === null || emulators === void 0 ? void 0 : emulators.functions)) {
|
|
1944
|
+
connectFunctionsEmulator(functions, emulators.functions.host, emulators.functions.port);
|
|
1945
|
+
}
|
|
1946
|
+
return functions;
|
|
1947
|
+
})
|
|
1948
|
+
]
|
|
1949
|
+
}]
|
|
1950
|
+
}] });
|
|
1951
|
+
/**
|
|
1952
|
+
* Default provider module.
|
|
1953
|
+
*/
|
|
1954
|
+
class DbxFirebaseDefaultFirebaseProvidersModule {
|
|
1955
|
+
static forRoot(firebaseOptions) {
|
|
1956
|
+
return {
|
|
1957
|
+
ngModule: DbxFirebaseDefaultFirebaseProvidersModule,
|
|
1958
|
+
providers: [
|
|
1959
|
+
{
|
|
1960
|
+
provide: DBX_FIREBASE_OPTIONS_TOKEN,
|
|
1961
|
+
useValue: firebaseOptions
|
|
1962
|
+
}
|
|
1963
|
+
]
|
|
1964
|
+
};
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
DbxFirebaseDefaultFirebaseProvidersModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirebaseProvidersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1968
|
+
DbxFirebaseDefaultFirebaseProvidersModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirebaseProvidersModule, imports: [i6.FirebaseAppModule, DbxFirebaseDefaultAppCheckProviderModule, DbxFirebaseDefaultFirestoreProviderModule, DbxFirebaseDefaultAuthProviderModule, DbxFirebaseDefaultStorageProviderModule, DbxFirebaseDefaultFunctionsProviderModule] });
|
|
1969
|
+
DbxFirebaseDefaultFirebaseProvidersModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirebaseProvidersModule, imports: [provideFirebaseApp((injector) => {
|
|
1970
|
+
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
1971
|
+
return initializeApp(firebaseOptions);
|
|
1972
|
+
}),
|
|
1973
|
+
DbxFirebaseDefaultAppCheckProviderModule,
|
|
1974
|
+
DbxFirebaseDefaultFirestoreProviderModule,
|
|
1975
|
+
DbxFirebaseDefaultAuthProviderModule,
|
|
1976
|
+
DbxFirebaseDefaultStorageProviderModule,
|
|
1977
|
+
DbxFirebaseDefaultFunctionsProviderModule] });
|
|
1978
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirebaseProvidersModule, decorators: [{
|
|
1979
|
+
type: NgModule,
|
|
1980
|
+
args: [{
|
|
1981
|
+
imports: [
|
|
1982
|
+
provideFirebaseApp((injector) => {
|
|
1983
|
+
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
1984
|
+
return initializeApp(firebaseOptions);
|
|
1985
|
+
}),
|
|
1986
|
+
DbxFirebaseDefaultAppCheckProviderModule,
|
|
1987
|
+
DbxFirebaseDefaultFirestoreProviderModule,
|
|
1988
|
+
DbxFirebaseDefaultAuthProviderModule,
|
|
1989
|
+
DbxFirebaseDefaultStorageProviderModule,
|
|
1990
|
+
DbxFirebaseDefaultFunctionsProviderModule
|
|
1991
|
+
]
|
|
1992
|
+
}]
|
|
1993
|
+
}] });
|
|
1994
|
+
|
|
1995
|
+
/**
|
|
1996
|
+
* Used to configure the DbxFirebaseEmulatorsConfig provider.
|
|
1997
|
+
*/
|
|
1998
|
+
class DbxFirebaseEmulatorModule {
|
|
1999
|
+
static forRoot(config) {
|
|
2000
|
+
var _a;
|
|
2001
|
+
const defaultHost = (_a = config.host) !== null && _a !== void 0 ? _a : 'localhost';
|
|
2002
|
+
function emulatorConfig(emulator) {
|
|
2003
|
+
var _a;
|
|
2004
|
+
return emulator ? { host: (_a = emulator.host) !== null && _a !== void 0 ? _a : defaultHost, port: emulator.port } : undefined;
|
|
2005
|
+
}
|
|
2006
|
+
const finalConfig = {
|
|
2007
|
+
useEmulators: config.useEmulators !== false,
|
|
2008
|
+
ui: emulatorConfig(config.ui),
|
|
2009
|
+
auth: emulatorConfig(config.auth),
|
|
2010
|
+
firestore: emulatorConfig(config.firestore),
|
|
2011
|
+
storage: emulatorConfig(config.storage),
|
|
2012
|
+
functions: emulatorConfig(config.functions),
|
|
2013
|
+
database: emulatorConfig(config.database)
|
|
2014
|
+
};
|
|
2015
|
+
return {
|
|
2016
|
+
ngModule: DbxFirebaseEmulatorModule,
|
|
2017
|
+
providers: [
|
|
2018
|
+
{
|
|
2019
|
+
provide: DbxFirebaseParsedEmulatorsConfig,
|
|
2020
|
+
useValue: finalConfig
|
|
2021
|
+
}
|
|
2022
|
+
]
|
|
2023
|
+
};
|
|
2024
|
+
}
|
|
2025
|
+
}
|
|
2026
|
+
DbxFirebaseEmulatorModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmulatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2027
|
+
DbxFirebaseEmulatorModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmulatorModule });
|
|
2028
|
+
DbxFirebaseEmulatorModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmulatorModule });
|
|
2029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmulatorModule, decorators: [{
|
|
2030
|
+
type: NgModule
|
|
2031
|
+
}] });
|
|
2032
|
+
|
|
2033
|
+
class DbxFirebaseEmulatorService {
|
|
2034
|
+
constructor(emulatorsConfig) {
|
|
2035
|
+
this.emulatorsConfig = emulatorsConfig;
|
|
2036
|
+
}
|
|
2037
|
+
get useEmulators() {
|
|
2038
|
+
return this.emulatorsConfig.useEmulators || false;
|
|
2039
|
+
}
|
|
2040
|
+
get emulatorUIAnchor() {
|
|
2041
|
+
var _a;
|
|
2042
|
+
const ui = this.emulatorsConfig.ui;
|
|
2043
|
+
return ui
|
|
2044
|
+
? {
|
|
2045
|
+
url: `http://${(_a = ui.host) !== null && _a !== void 0 ? _a : 'localhost'}:${ui.port}`,
|
|
2046
|
+
target: '_blank'
|
|
2047
|
+
}
|
|
2048
|
+
: undefined;
|
|
2049
|
+
}
|
|
2050
|
+
}
|
|
2051
|
+
DbxFirebaseEmulatorService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmulatorService, deps: [{ token: DbxFirebaseParsedEmulatorsConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2052
|
+
DbxFirebaseEmulatorService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmulatorService, providedIn: 'root' });
|
|
2053
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseEmulatorService, decorators: [{
|
|
2054
|
+
type: Injectable,
|
|
2055
|
+
args: [{
|
|
2056
|
+
providedIn: 'root'
|
|
2057
|
+
}]
|
|
2058
|
+
}], ctorParameters: function () { return [{ type: DbxFirebaseParsedEmulatorsConfig }]; } });
|
|
2059
|
+
|
|
2060
|
+
const DISPLAY_FOR_STRING_VALUE = (values) => {
|
|
2061
|
+
const displayValues = values.map((x) => { var _a; return (Object.assign(Object.assign({}, x), { label: ((_a = x.meta) === null || _a === void 0 ? void 0 : _a.label) || x.value })); });
|
|
2062
|
+
const obs = of(displayValues);
|
|
2063
|
+
return obs;
|
|
2064
|
+
};
|
|
2065
|
+
class DbxFirebaseDevelopmentPopupContentFormComponent extends AbstractConfigAsyncFormlyFormDirective {
|
|
2066
|
+
constructor() {
|
|
2067
|
+
super(...arguments);
|
|
2068
|
+
this.fields$ = this.config$.pipe(map((config) => {
|
|
2069
|
+
return [
|
|
2070
|
+
pickableItemChipField({
|
|
2071
|
+
key: 'specifier',
|
|
2072
|
+
filterLabel: 'Tools',
|
|
2073
|
+
description: 'Pick a tool to get started.',
|
|
2074
|
+
filterValues: filterPickableItemFieldValuesByLabel,
|
|
2075
|
+
loadValues: () => of(config.entries.map((y) => ({ value: y.widget.type, meta: y }))),
|
|
2076
|
+
displayForValue: DISPLAY_FOR_STRING_VALUE,
|
|
2077
|
+
asArrayValue: false
|
|
2078
|
+
})
|
|
2079
|
+
];
|
|
2080
|
+
}));
|
|
2081
|
+
}
|
|
2082
|
+
}
|
|
2083
|
+
DbxFirebaseDevelopmentPopupContentFormComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
2084
|
+
DbxFirebaseDevelopmentPopupContentFormComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseDevelopmentPopupContentFormComponent, selector: "dbx-firebase-development-popup-content-form", providers: [provideFormlyContext()], usesInheritance: true, ngImport: i0, template: `
|
|
2085
|
+
<dbx-formly></dbx-formly>
|
|
2086
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$3.DbxFormlyFormComponent, selector: "dbx-formly", exportAs: ["formly"] }] });
|
|
2087
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentFormComponent, decorators: [{
|
|
2088
|
+
type: Component,
|
|
2089
|
+
args: [{
|
|
2090
|
+
template: `
|
|
2091
|
+
<dbx-formly></dbx-formly>
|
|
2092
|
+
`,
|
|
2093
|
+
selector: 'dbx-firebase-development-popup-content-form',
|
|
2094
|
+
providers: [provideFormlyContext()]
|
|
2095
|
+
}]
|
|
2096
|
+
}] });
|
|
2097
|
+
|
|
2098
|
+
class DbxFirebaseDevelopmentPopupContentComponent {
|
|
2099
|
+
constructor(twoColumnsContextStore, dbxAuthService, dbxFirebaseDevelopmentWidgetService, dbxFirebaseDevelopmentSchedulerService, dbxFirebaseEmulatorService) {
|
|
2100
|
+
var _a;
|
|
2101
|
+
this.twoColumnsContextStore = twoColumnsContextStore;
|
|
2102
|
+
this.dbxAuthService = dbxAuthService;
|
|
2103
|
+
this.dbxFirebaseDevelopmentWidgetService = dbxFirebaseDevelopmentWidgetService;
|
|
2104
|
+
this.dbxFirebaseDevelopmentSchedulerService = dbxFirebaseDevelopmentSchedulerService;
|
|
2105
|
+
this.dbxFirebaseEmulatorService = dbxFirebaseEmulatorService;
|
|
2106
|
+
this._backSub = new SubscriptionObject();
|
|
2107
|
+
this.showEmulatorButton = this.dbxFirebaseEmulatorService.useEmulators === true;
|
|
2108
|
+
this.emulatorUIAnchor = (_a = this.dbxFirebaseEmulatorService.emulatorUIAnchor) !== null && _a !== void 0 ? _a : {};
|
|
2109
|
+
this.entries = this.dbxFirebaseDevelopmentWidgetService.getEntries();
|
|
2110
|
+
this._activeEntrySelector = new BehaviorSubject(DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY);
|
|
2111
|
+
this.isLoggedIn$ = this.dbxAuthService.isLoggedIn$;
|
|
2112
|
+
this.entries$ = this.isLoggedIn$.pipe(distinctUntilChanged(), map((isLoggedIn) => this.entries), tapLog('Entries'), shareReplay(1));
|
|
2113
|
+
this.formConfig$ = this.entries$.pipe(map((entries) => ({ entries })));
|
|
2114
|
+
this.activeEntrySelector$ = this._activeEntrySelector.pipe(distinctUntilChanged());
|
|
2115
|
+
this.currentActiveEntry$ = combineLatest([this.entries$, this.activeEntrySelector$]).pipe(map(([entries, selector]) => (selector ? entries.find((e) => e.widget.type === selector) : undefined)), shareReplay(1));
|
|
2116
|
+
this.showRight$ = this.currentActiveEntry$.pipe(map((x) => x != null));
|
|
2117
|
+
this.activeEntry$ = this.currentActiveEntry$.pipe(filterMaybe(), distinctUntilChanged(), shareReplay(1));
|
|
2118
|
+
this.rightTitle$ = this.activeEntry$.pipe(map((x) => x.label));
|
|
2119
|
+
this.widgetConfig$ = this.activeEntry$.pipe(map((x) => ({ data: undefined, type: x.widget.type })), shareReplay(1));
|
|
2120
|
+
this.schedulerRunning$ = this.dbxFirebaseDevelopmentSchedulerService.running$;
|
|
2121
|
+
this.schedulerInterval$ = this.dbxFirebaseDevelopmentSchedulerService.timerInterval$.pipe(map((x) => msToSeconds(x)), shareReplay(1));
|
|
2122
|
+
this.schedulerError$ = this.dbxFirebaseDevelopmentSchedulerService.error$.pipe(map((x) => (x ? 'Error Occured' : 'Ok')), shareReplay(1));
|
|
2123
|
+
this.formData$ = this._activeEntrySelector.pipe(distinctUntilChanged(), map((specifier) => ({ specifier })));
|
|
2124
|
+
this.handleFormUpdate = (value, context) => {
|
|
2125
|
+
this._activeEntrySelector.next(value.specifier);
|
|
2126
|
+
context.success();
|
|
2127
|
+
};
|
|
2128
|
+
this.isFormModified = (value) => {
|
|
2129
|
+
return this._activeEntrySelector.pipe(map((currentSelector) => value.specifier !== currentSelector), first());
|
|
2130
|
+
};
|
|
2131
|
+
}
|
|
2132
|
+
ngOnInit() {
|
|
2133
|
+
this.twoColumnsContextStore.setShowRight(this.showRight$);
|
|
2134
|
+
this._backSub.subscription = this.twoColumnsContextStore.back$.subscribe(() => {
|
|
2135
|
+
this.clearSelection();
|
|
2136
|
+
});
|
|
2137
|
+
}
|
|
2138
|
+
ngOnDestroy() {
|
|
2139
|
+
this._activeEntrySelector.complete();
|
|
2140
|
+
}
|
|
2141
|
+
clearSelection() {
|
|
2142
|
+
this._activeEntrySelector.next(undefined);
|
|
2143
|
+
}
|
|
2144
|
+
}
|
|
2145
|
+
DbxFirebaseDevelopmentPopupContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentComponent, deps: [{ token: i1$2.TwoColumnsContextStore }, { token: i2$2.DbxAuthService }, { token: DbxFirebaseDevelopmentWidgetService }, { token: DbxFirebaseDevelopmentSchedulerService }, { token: DbxFirebaseEmulatorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2146
|
+
DbxFirebaseDevelopmentPopupContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseDevelopmentPopupContentComponent, 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): {{ schedulerRunning$ | async }} : {{ schedulerInterval$ | async }}s : {{ schedulerError$ | async }}</p>\n <div>\n <dbx-anchor [anchor]=\"emulatorUIAnchor\" *ngIf=\"showEmulatorButton\">\n <button mat-flat-button color=\"accent\">Emulator Enabled</button>\n </dbx-anchor>\n </div>\n </div>\n <div>\n <h4>Tools</h4>\n <div dbxAction dbxActionEnforceModified dbxActionAutoTrigger instantTrigger dbxActionLogger [dbxActionHandler]=\"handleFormUpdate\">\n <dbx-firebase-development-popup-content-form dbxActionForm [dbxFormSource]=\"formData$\" dbxFormSourceMode=\"always\" [dbxActionFormModified]=\"isFormModified\" [config]=\"formConfig$ | async\"></dbx-firebase-development-popup-content-form>\n </div>\n </div>\n </dbx-two-block>\n <dbx-two-column-right right [header]=\"(rightTitle$ | async) || ''\">\n <dbx-widget-view [config]=\"widgetConfig$ | async\"></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: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$2.DbxWidgetViewComponent, selector: "dbx-widget-view", inputs: ["config"] }, { kind: "component", type: i1$2.DbxTwoBlocksComponent, selector: "dbx-two-block", inputs: ["fixedTop"] }, { kind: "component", type: i1$2.DbxTwoColumnComponent, selector: "dbx-two-column", inputs: ["reverseSizing", "inSectionPage"], exportAs: ["columns"] }, { kind: "component", type: i1$2.DbxTwoColumnRightComponent, selector: "dbx-two-column-right", inputs: ["header", "block", "showBack", "minRightWidth"] }, { kind: "directive", type: i1$2.DbxTwoColumnFullLeftDirective, selector: "[dbxTwoColumnFullLeft]", inputs: ["dbxTwoColumnFullLeft"] }, { kind: "component", type: i3.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i1$2.DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { kind: "directive", type: i1$3.DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "directive", type: i1$3.DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormValidator", "dbxActionFormModified", "formDisabledOnWorking"] }, { kind: "directive", type: i2$2.DbxActionDirective, selector: "dbx-action,[dbxAction],dbx-action-context,[dbxActionContext]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2$2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2$2.DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: i2$2.DbxActionAutoTriggerDirective, selector: "dbxActionAutoTrigger, [dbxActionAutoTrigger]", inputs: ["dbxActionAutoTrigger", "triggerDebounce", "triggerThrottle", "triggerErrorThrottle", "fastTrigger", "instantTrigger", "triggerLimit"] }, { kind: "directive", type: i2$2.DbxActionContextLoggerDirective, selector: "[dbxActionLogger],[dbxActionContextLogger]" }, { kind: "component", type: DbxFirebaseDevelopmentPopupContentFormComponent, selector: "dbx-firebase-development-popup-content-form" }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }] });
|
|
2147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentComponent, decorators: [{
|
|
2148
|
+
type: Component,
|
|
2149
|
+
args: [{ selector: 'dbx-firebase-development-popup-content', providers: [TwoColumnsContextStore], 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): {{ schedulerRunning$ | async }} : {{ schedulerInterval$ | async }}s : {{ schedulerError$ | async }}</p>\n <div>\n <dbx-anchor [anchor]=\"emulatorUIAnchor\" *ngIf=\"showEmulatorButton\">\n <button mat-flat-button color=\"accent\">Emulator Enabled</button>\n </dbx-anchor>\n </div>\n </div>\n <div>\n <h4>Tools</h4>\n <div dbxAction dbxActionEnforceModified dbxActionAutoTrigger instantTrigger dbxActionLogger [dbxActionHandler]=\"handleFormUpdate\">\n <dbx-firebase-development-popup-content-form dbxActionForm [dbxFormSource]=\"formData$\" dbxFormSourceMode=\"always\" [dbxActionFormModified]=\"isFormModified\" [config]=\"formConfig$ | async\"></dbx-firebase-development-popup-content-form>\n </div>\n </div>\n </dbx-two-block>\n <dbx-two-column-right right [header]=\"(rightTitle$ | async) || ''\">\n <dbx-widget-view [config]=\"widgetConfig$ | async\"></dbx-widget-view>\n </dbx-two-column-right>\n</dbx-two-column>\n", styles: [".dbx-firebase-development-popup-content{height:400px;overflow:hidden}\n"] }]
|
|
2150
|
+
}], ctorParameters: function () { return [{ type: i1$2.TwoColumnsContextStore }, { type: i2$2.DbxAuthService }, { type: DbxFirebaseDevelopmentWidgetService }, { type: DbxFirebaseDevelopmentSchedulerService }, { type: DbxFirebaseEmulatorService }]; } });
|
|
2151
|
+
|
|
2152
|
+
const DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY = 'devpopup';
|
|
2153
|
+
class DbxFirebaseDevelopmentPopupComponent extends AbstractPopupDirective {
|
|
2154
|
+
constructor(popup, popupService) {
|
|
2155
|
+
super(popup);
|
|
2156
|
+
this.popupService = popupService;
|
|
2157
|
+
this.header = 'Development Tools';
|
|
2158
|
+
this.reopen = () => {
|
|
2159
|
+
DbxFirebaseDevelopmentPopupComponent.openPopup(this.popupService, this.popup.key);
|
|
2160
|
+
};
|
|
2161
|
+
}
|
|
2162
|
+
static openPopup(popupService, popupKey) {
|
|
2163
|
+
return popupService.open({
|
|
2164
|
+
key: popupKey !== null && popupKey !== void 0 ? popupKey : DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY,
|
|
2165
|
+
componentClass: DbxFirebaseDevelopmentPopupComponent,
|
|
2166
|
+
closeOnTransition: false,
|
|
2167
|
+
isDraggable: true,
|
|
2168
|
+
position: 'center'
|
|
2169
|
+
});
|
|
2170
|
+
}
|
|
2171
|
+
}
|
|
2172
|
+
DbxFirebaseDevelopmentPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupComponent, deps: [{ token: i1$2.DbxPopupComponent }, { token: i1$2.DbxPopupService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2173
|
+
DbxFirebaseDevelopmentPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseDevelopmentPopupComponent, selector: "ng-component", viewQueries: [{ propertyName: "content", first: true, predicate: DbxFirebaseDevelopmentPopupContentComponent, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `
|
|
2174
|
+
<dbx-popup-content>
|
|
2175
|
+
<dbx-popup-controls [header]="header" controls></dbx-popup-controls>
|
|
2176
|
+
<dbx-firebase-development-popup-content (shouldClose)="closePopup()"></dbx-firebase-development-popup-content>
|
|
2177
|
+
</dbx-popup-content>
|
|
2178
|
+
`, isInline: true, dependencies: [{ kind: "component", type: i1$2.DbxPopupContentComponent, selector: "dbx-popup-content" }, { kind: "component", type: i1$2.DbxPopupControlsComponent, selector: "dbx-popup-controls", inputs: ["header"] }, { kind: "component", type: DbxFirebaseDevelopmentPopupContentComponent, selector: "dbx-firebase-development-popup-content" }] });
|
|
2179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentPopupComponent, decorators: [{
|
|
2180
|
+
type: Component,
|
|
2181
|
+
args: [{
|
|
2182
|
+
template: `
|
|
2183
|
+
<dbx-popup-content>
|
|
2184
|
+
<dbx-popup-controls [header]="header" controls></dbx-popup-controls>
|
|
2185
|
+
<dbx-firebase-development-popup-content (shouldClose)="closePopup()"></dbx-firebase-development-popup-content>
|
|
2186
|
+
</dbx-popup-content>
|
|
2187
|
+
`
|
|
2188
|
+
}]
|
|
2189
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxPopupComponent }, { type: i1$2.DbxPopupService }]; }, propDecorators: { content: [{
|
|
2190
|
+
type: ViewChild,
|
|
2191
|
+
args: [DbxFirebaseDevelopmentPopupContentComponent, { static: true }]
|
|
2192
|
+
}] } });
|
|
2193
|
+
|
|
2194
|
+
/**
|
|
2195
|
+
* Enabled state
|
|
2233
2196
|
*/
|
|
2234
|
-
|
|
2197
|
+
const DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN = new InjectionToken('DefaultDbxFirebaseDevelopmentEnabled');
|
|
2198
|
+
/**
|
|
2199
|
+
* Service used for registering widgets used for development.
|
|
2200
|
+
*
|
|
2201
|
+
* Default providers can be configured by the DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN injectable value.
|
|
2202
|
+
*/
|
|
2203
|
+
class DbxFirebaseDevelopmentService {
|
|
2204
|
+
constructor(enabled) {
|
|
2205
|
+
this.enabled = enabled;
|
|
2206
|
+
}
|
|
2235
2207
|
}
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
2241
|
-
const { functionsRegionOrCustomDomain } = firebaseOptions;
|
|
2242
|
-
const functions = getFunctions(firebaseApp, functionsRegionOrCustomDomain);
|
|
2243
|
-
const emulators = injector.get(DbxFirebaseParsedEmulatorsConfig, undefined);
|
|
2244
|
-
if ((emulators === null || emulators === void 0 ? void 0 : emulators.useEmulators) && (emulators === null || emulators === void 0 ? void 0 : emulators.functions)) {
|
|
2245
|
-
connectFunctionsEmulator(functions, emulators.functions.host, emulators.functions.port);
|
|
2246
|
-
}
|
|
2247
|
-
return functions;
|
|
2248
|
-
})] });
|
|
2249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFunctionsProviderModule, decorators: [{
|
|
2250
|
-
type: NgModule,
|
|
2208
|
+
DbxFirebaseDevelopmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentService, deps: [{ token: DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2209
|
+
DbxFirebaseDevelopmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentService, providedIn: 'root' });
|
|
2210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentService, decorators: [{
|
|
2211
|
+
type: Injectable,
|
|
2251
2212
|
args: [{
|
|
2252
|
-
|
|
2253
|
-
provideFunctions((injector) => {
|
|
2254
|
-
const firebaseApp = injector.get(FirebaseApp);
|
|
2255
|
-
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
2256
|
-
const { functionsRegionOrCustomDomain } = firebaseOptions;
|
|
2257
|
-
const functions = getFunctions(firebaseApp, functionsRegionOrCustomDomain);
|
|
2258
|
-
const emulators = injector.get(DbxFirebaseParsedEmulatorsConfig, undefined);
|
|
2259
|
-
if ((emulators === null || emulators === void 0 ? void 0 : emulators.useEmulators) && (emulators === null || emulators === void 0 ? void 0 : emulators.functions)) {
|
|
2260
|
-
connectFunctionsEmulator(functions, emulators.functions.host, emulators.functions.port);
|
|
2261
|
-
}
|
|
2262
|
-
return functions;
|
|
2263
|
-
})
|
|
2264
|
-
]
|
|
2213
|
+
providedIn: 'root'
|
|
2265
2214
|
}]
|
|
2266
|
-
}]
|
|
2215
|
+
}], ctorParameters: function () {
|
|
2216
|
+
return [{ type: undefined, decorators: [{
|
|
2217
|
+
type: Optional
|
|
2218
|
+
}, {
|
|
2219
|
+
type: Inject,
|
|
2220
|
+
args: [DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN]
|
|
2221
|
+
}] }];
|
|
2222
|
+
} });
|
|
2223
|
+
|
|
2267
2224
|
/**
|
|
2268
|
-
*
|
|
2225
|
+
* Directive for controlling and displaying
|
|
2269
2226
|
*/
|
|
2270
|
-
class
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2227
|
+
class DbxFirebaseDevelopmentDirective {
|
|
2228
|
+
constructor(popupService, matSnackBar, dbxFirebaseDevelopmentService) {
|
|
2229
|
+
this.popupService = popupService;
|
|
2230
|
+
this.matSnackBar = matSnackBar;
|
|
2231
|
+
this.dbxFirebaseDevelopmentService = dbxFirebaseDevelopmentService;
|
|
2232
|
+
}
|
|
2233
|
+
get enabled() {
|
|
2234
|
+
return this.dbxFirebaseDevelopmentService.enabled;
|
|
2235
|
+
}
|
|
2236
|
+
handleKeyboardEvent(event) {
|
|
2237
|
+
if (this.enabled && event.shiftKey && event.altKey && event.code === 'KeyD') {
|
|
2238
|
+
this.togglePopup();
|
|
2239
|
+
event.preventDefault();
|
|
2240
|
+
}
|
|
2241
|
+
}
|
|
2242
|
+
togglePopup() {
|
|
2243
|
+
if (this.ref) {
|
|
2244
|
+
this.closePopup();
|
|
2245
|
+
}
|
|
2246
|
+
else {
|
|
2247
|
+
this.openPopup();
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2250
|
+
openPopup() {
|
|
2251
|
+
if (!this.ref) {
|
|
2252
|
+
const ref = DbxFirebaseDevelopmentPopupComponent.openPopup(this.popupService);
|
|
2253
|
+
ref.afterClosed$.subscribe(() => {
|
|
2254
|
+
if (this.ref === ref) {
|
|
2255
|
+
this.ref = undefined;
|
|
2278
2256
|
}
|
|
2279
|
-
|
|
2280
|
-
|
|
2257
|
+
});
|
|
2258
|
+
this.ref = ref;
|
|
2259
|
+
}
|
|
2260
|
+
}
|
|
2261
|
+
closePopup() {
|
|
2262
|
+
if (this.ref != null) {
|
|
2263
|
+
this.ref.close();
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
ngAfterViewInit() {
|
|
2267
|
+
if (this.enabled) {
|
|
2268
|
+
this.matSnackBar
|
|
2269
|
+
.open('Dev Tools: alt/option + shift + D', 'Open', {
|
|
2270
|
+
horizontalPosition: 'center',
|
|
2271
|
+
verticalPosition: 'bottom',
|
|
2272
|
+
duration: 8 * 1000
|
|
2273
|
+
})
|
|
2274
|
+
.onAction()
|
|
2275
|
+
.subscribe(() => {
|
|
2276
|
+
this.openPopup();
|
|
2277
|
+
});
|
|
2278
|
+
}
|
|
2279
|
+
}
|
|
2280
|
+
ngOnDestroy() {
|
|
2281
|
+
this.closePopup();
|
|
2281
2282
|
}
|
|
2282
2283
|
}
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
return initializeApp(firebaseOptions);
|
|
2288
|
-
}),
|
|
2289
|
-
DbxFirebaseDefaultAppCheckProviderModule,
|
|
2290
|
-
DbxFirebaseDefaultFirestoreProviderModule,
|
|
2291
|
-
DbxFirebaseDefaultAuthProviderModule,
|
|
2292
|
-
DbxFirebaseDefaultStorageProviderModule,
|
|
2293
|
-
DbxFirebaseDefaultFunctionsProviderModule] });
|
|
2294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDefaultFirebaseProvidersModule, decorators: [{
|
|
2295
|
-
type: NgModule,
|
|
2284
|
+
DbxFirebaseDevelopmentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentDirective, deps: [{ token: i1$2.DbxPopupService }, { token: i2$3.MatSnackBar }, { token: DbxFirebaseDevelopmentService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2285
|
+
DbxFirebaseDevelopmentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.1.2", type: DbxFirebaseDevelopmentDirective, selector: "[dbxFirebaseDevelopment]", host: { listeners: { "window:keydown": "handleKeyboardEvent($event)" } }, ngImport: i0 });
|
|
2286
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentDirective, decorators: [{
|
|
2287
|
+
type: Directive,
|
|
2296
2288
|
args: [{
|
|
2297
|
-
|
|
2298
|
-
provideFirebaseApp((injector) => {
|
|
2299
|
-
const firebaseOptions = injector.get(DBX_FIREBASE_OPTIONS_TOKEN);
|
|
2300
|
-
return initializeApp(firebaseOptions);
|
|
2301
|
-
}),
|
|
2302
|
-
DbxFirebaseDefaultAppCheckProviderModule,
|
|
2303
|
-
DbxFirebaseDefaultFirestoreProviderModule,
|
|
2304
|
-
DbxFirebaseDefaultAuthProviderModule,
|
|
2305
|
-
DbxFirebaseDefaultStorageProviderModule,
|
|
2306
|
-
DbxFirebaseDefaultFunctionsProviderModule
|
|
2307
|
-
]
|
|
2289
|
+
selector: '[dbxFirebaseDevelopment]'
|
|
2308
2290
|
}]
|
|
2309
|
-
}] }
|
|
2291
|
+
}], ctorParameters: function () { return [{ type: i1$2.DbxPopupService }, { type: i2$3.MatSnackBar }, { type: DbxFirebaseDevelopmentService }]; }, propDecorators: { handleKeyboardEvent: [{
|
|
2292
|
+
type: HostListener,
|
|
2293
|
+
args: ['window:keydown', ['$event']]
|
|
2294
|
+
}] } });
|
|
2310
2295
|
|
|
2296
|
+
class DbxFirebaseDevelopmentModuleRootConfig {
|
|
2297
|
+
}
|
|
2311
2298
|
/**
|
|
2312
|
-
*
|
|
2299
|
+
* Contains components related to logging in.
|
|
2313
2300
|
*/
|
|
2314
|
-
class
|
|
2301
|
+
class DbxFirebaseDevelopmentModule {
|
|
2302
|
+
constructor(dbxFirebaseDevelopmentSchedulerService) {
|
|
2303
|
+
this.dbxFirebaseDevelopmentSchedulerService = dbxFirebaseDevelopmentSchedulerService;
|
|
2304
|
+
dbxFirebaseDevelopmentSchedulerService.init();
|
|
2305
|
+
}
|
|
2315
2306
|
static forRoot(config) {
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
var _a;
|
|
2320
|
-
return emulator ? { host: (_a = emulator.host) !== null && _a !== void 0 ? _a : defaultHost, port: emulator.port } : undefined;
|
|
2307
|
+
let entries = config.entries;
|
|
2308
|
+
if (config.addDevelopmentSchedulerWidget !== false) {
|
|
2309
|
+
entries = [developmentFirebaseServerSchedulerWidgetEntry(), ...config.entries];
|
|
2321
2310
|
}
|
|
2322
|
-
const finalConfig = {
|
|
2323
|
-
useEmulators: config.useEmulators !== false,
|
|
2324
|
-
auth: emulatorConfig(config.auth),
|
|
2325
|
-
firestore: emulatorConfig(config.firestore),
|
|
2326
|
-
storage: emulatorConfig(config.storage),
|
|
2327
|
-
functions: emulatorConfig(config.functions),
|
|
2328
|
-
database: emulatorConfig(config.database)
|
|
2329
|
-
};
|
|
2330
2311
|
return {
|
|
2331
|
-
ngModule:
|
|
2312
|
+
ngModule: DbxFirebaseDevelopmentModule,
|
|
2332
2313
|
providers: [
|
|
2333
2314
|
{
|
|
2334
|
-
provide:
|
|
2335
|
-
useValue:
|
|
2315
|
+
provide: DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN,
|
|
2316
|
+
useValue: entries
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
provide: DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN,
|
|
2320
|
+
useValue: config.enabled
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
provide: DbxFirebaseDevelopmentModuleRootConfig,
|
|
2324
|
+
useValue: config
|
|
2336
2325
|
}
|
|
2337
2326
|
]
|
|
2338
2327
|
};
|
|
2339
2328
|
}
|
|
2340
2329
|
}
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2330
|
+
DbxFirebaseDevelopmentModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentModule, deps: [{ token: DbxFirebaseDevelopmentSchedulerService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2331
|
+
DbxFirebaseDevelopmentModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentModule, declarations: [
|
|
2332
|
+
//
|
|
2333
|
+
DbxFirebaseDevelopmentPopupContentFormComponent,
|
|
2334
|
+
DbxFirebaseDevelopmentDirective,
|
|
2335
|
+
DbxFirebaseDevelopmentPopupComponent,
|
|
2336
|
+
DbxFirebaseDevelopmentPopupContentComponent,
|
|
2337
|
+
DbxFirebaseDevelopmentSchedulerWidgetComponent,
|
|
2338
|
+
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2339
|
+
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2340
|
+
DbxFirebaseDevelopmentSchedulerListViewItemComponent
|
|
2341
|
+
], imports: [CommonModule, MatIconModule, DbxWidgetModule, DbxTextModule, DbxBlockLayoutModule, DbxTwoColumnLayoutModule, MatButtonModule, DbxRouterAnchorModule, DbxPopupInteractionModule, DbxFormIoModule, DbxFormModule, DbxFormlyModule, DbxFormActionModule, DbxFormFormlyTextFieldModule, DbxReadableErrorModule, DbxActionModule, DbxButtonModule, DbxInjectionComponentModule, DbxListLayoutModule], exports: [
|
|
2342
|
+
//
|
|
2343
|
+
DbxFirebaseDevelopmentDirective,
|
|
2344
|
+
DbxFirebaseDevelopmentPopupComponent,
|
|
2345
|
+
DbxFirebaseDevelopmentPopupContentComponent,
|
|
2346
|
+
DbxFirebaseDevelopmentSchedulerWidgetComponent,
|
|
2347
|
+
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2348
|
+
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2349
|
+
DbxFirebaseDevelopmentSchedulerListViewItemComponent
|
|
2350
|
+
] });
|
|
2351
|
+
DbxFirebaseDevelopmentModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentModule, imports: [CommonModule, MatIconModule, DbxWidgetModule, DbxTextModule, DbxBlockLayoutModule, DbxTwoColumnLayoutModule, MatButtonModule, DbxRouterAnchorModule, DbxPopupInteractionModule, DbxFormIoModule, DbxFormModule, DbxFormlyModule, DbxFormActionModule, DbxFormFormlyTextFieldModule, DbxReadableErrorModule, DbxActionModule, DbxButtonModule, DbxInjectionComponentModule, DbxListLayoutModule] });
|
|
2352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: DbxFirebaseDevelopmentModule, decorators: [{
|
|
2353
|
+
type: NgModule,
|
|
2354
|
+
args: [{
|
|
2355
|
+
imports: [CommonModule, MatIconModule, DbxWidgetModule, DbxTextModule, DbxBlockLayoutModule, DbxTwoColumnLayoutModule, MatButtonModule, DbxRouterAnchorModule, DbxPopupInteractionModule, DbxFormIoModule, DbxFormModule, DbxFormlyModule, DbxFormActionModule, DbxFormFormlyTextFieldModule, DbxReadableErrorModule, DbxActionModule, DbxButtonModule, DbxInjectionComponentModule, DbxListLayoutModule],
|
|
2356
|
+
declarations: [
|
|
2357
|
+
//
|
|
2358
|
+
DbxFirebaseDevelopmentPopupContentFormComponent,
|
|
2359
|
+
DbxFirebaseDevelopmentDirective,
|
|
2360
|
+
DbxFirebaseDevelopmentPopupComponent,
|
|
2361
|
+
DbxFirebaseDevelopmentPopupContentComponent,
|
|
2362
|
+
DbxFirebaseDevelopmentSchedulerWidgetComponent,
|
|
2363
|
+
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2364
|
+
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2365
|
+
DbxFirebaseDevelopmentSchedulerListViewItemComponent
|
|
2366
|
+
],
|
|
2367
|
+
exports: [
|
|
2368
|
+
//
|
|
2369
|
+
DbxFirebaseDevelopmentDirective,
|
|
2370
|
+
DbxFirebaseDevelopmentPopupComponent,
|
|
2371
|
+
DbxFirebaseDevelopmentPopupContentComponent,
|
|
2372
|
+
DbxFirebaseDevelopmentSchedulerWidgetComponent,
|
|
2373
|
+
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2374
|
+
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2375
|
+
DbxFirebaseDevelopmentSchedulerListViewItemComponent
|
|
2376
|
+
]
|
|
2377
|
+
}]
|
|
2378
|
+
}], ctorParameters: function () { return [{ type: DbxFirebaseDevelopmentSchedulerService }]; } });
|
|
2347
2379
|
|
|
2348
2380
|
/**
|
|
2349
2381
|
* Token to access the FirestoreContext value.
|
|
@@ -3067,6 +3099,9 @@ class DbxFirebaseIdRouteParamRedirectInstance {
|
|
|
3067
3099
|
setDecider(decider) {
|
|
3068
3100
|
this._useDefaultParamDecider.next(decider);
|
|
3069
3101
|
}
|
|
3102
|
+
setParamValue(value) {
|
|
3103
|
+
this._paramReader.setParamValue(value);
|
|
3104
|
+
}
|
|
3070
3105
|
}
|
|
3071
3106
|
function dbxFirebaseIdRouteParamRedirect(dbxRouterService) {
|
|
3072
3107
|
return new DbxFirebaseIdRouteParamRedirectInstance(dbxRouterService);
|
|
@@ -3594,11 +3629,11 @@ class SystemStateCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
|
3594
3629
|
this.collections = collections;
|
|
3595
3630
|
}
|
|
3596
3631
|
}
|
|
3597
|
-
SystemStateCollectionStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SystemStateCollectionStore, deps: [{ token: i1$
|
|
3632
|
+
SystemStateCollectionStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SystemStateCollectionStore, deps: [{ token: i1$4.SystemStateFirestoreCollections }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3598
3633
|
SystemStateCollectionStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SystemStateCollectionStore });
|
|
3599
3634
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SystemStateCollectionStore, decorators: [{
|
|
3600
3635
|
type: Injectable
|
|
3601
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
3636
|
+
}], ctorParameters: function () { return [{ type: i1$4.SystemStateFirestoreCollections }]; } });
|
|
3602
3637
|
|
|
3603
3638
|
class DbxFirebaseSystemStateCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective {
|
|
3604
3639
|
constructor(store) {
|
|
@@ -3637,11 +3672,11 @@ class SystemStateDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
3637
3672
|
this.collections = collections;
|
|
3638
3673
|
}
|
|
3639
3674
|
}
|
|
3640
|
-
SystemStateDocumentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SystemStateDocumentStore, deps: [{ token: i1$
|
|
3675
|
+
SystemStateDocumentStore.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SystemStateDocumentStore, deps: [{ token: i1$4.SystemStateFirestoreCollections }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3641
3676
|
SystemStateDocumentStore.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SystemStateDocumentStore });
|
|
3642
3677
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImport: i0, type: SystemStateDocumentStore, decorators: [{
|
|
3643
3678
|
type: Injectable
|
|
3644
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
3679
|
+
}], ctorParameters: function () { return [{ type: i1$4.SystemStateFirestoreCollections }]; } });
|
|
3645
3680
|
|
|
3646
3681
|
class DbxFirebaseSystemStateDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective {
|
|
3647
3682
|
constructor(store) {
|
|
@@ -3766,5 +3801,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.2", ngImpor
|
|
|
3766
3801
|
* Generated bundle index. Do not edit.
|
|
3767
3802
|
*/
|
|
3768
3803
|
|
|
3769
|
-
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_OPTIONS_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_AUTH_SERVICE_DELEGATE, 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, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DISPLAY_FOR_STRING_VALUE, DbxFirebaseAppCheckHttpInterceptor, DbxFirebaseAuthContextInfo, DbxFirebaseAuthLoginService, DbxFirebaseAuthModule, DbxFirebaseAuthService, DbxFirebaseAuthServiceDelegate, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionChangeTriggerInstance, DbxFirebaseCollectionChangeWatcherInstance, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionLoaderInstance, DbxFirebaseCollectionStoreDirective, DbxFirebaseCollectionWithParentStoreDirective, DbxFirebaseDefaultAppCheckProviderModule, DbxFirebaseDefaultAuthProviderModule, DbxFirebaseDefaultFirebaseProvidersModule, DbxFirebaseDefaultFirestoreProviderModule, DbxFirebaseDefaultFunctionsProviderModule, DbxFirebaseDefaultStorageProviderModule, DbxFirebaseDevelopmentDirective, DbxFirebaseDevelopmentModule, DbxFirebaseDevelopmentModuleRootConfig, DbxFirebaseDevelopmentPopupComponent, DbxFirebaseDevelopmentPopupContentComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxFirebaseDevelopmentSchedulerListComponent, DbxFirebaseDevelopmentSchedulerListViewComponent, DbxFirebaseDevelopmentSchedulerListViewItemComponent, DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentSchedulerWidgetComponent, DbxFirebaseDevelopmentService, DbxFirebaseDevelopmentWidgetService, DbxFirebaseDocumentAuthIdDirective, DbxFirebaseDocumentLoaderInstance, DbxFirebaseDocumentStoreDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFirebaseEmulatorModule, DbxFirebaseFirestoreCollectionModule, DbxFirebaseFunctionsModule, DbxFirebaseIdRouteParamRedirectInstance, DbxFirebaseLoginAnonymousComponent, DbxFirebaseLoginAppleComponent, DbxFirebaseLoginButtonComponent, DbxFirebaseLoginButtonContainerComponent, DbxFirebaseLoginComponent, DbxFirebaseLoginContext, DbxFirebaseLoginContextBackButtonComponent, DbxFirebaseLoginContextDirective, DbxFirebaseLoginEmailComponent, DbxFirebaseLoginEmailContentComponent, DbxFirebaseLoginFacebookComponent, DbxFirebaseLoginGitHubComponent, DbxFirebaseLoginGoogleComponent, DbxFirebaseLoginListComponent, DbxFirebaseLoginMicrosoftComponent, DbxFirebaseLoginModule, DbxFirebaseLoginModuleRootConfig, DbxFirebaseLoginTermsComponent, DbxFirebaseLoginTermsSimpleComponent, DbxFirebaseLoginTwitterComponent, DbxFirebaseModelModule, DbxFirebaseModelStoreModule, DbxFirebaseModule, DbxFirebaseParsedEmulatorsConfig, DbxFirebaseRegisterComponent, DbxFirebaseRegisterEmailComponent, DbxFirebaseStorageModule, DbxFirebaseStorageService, DbxFirebaseSystemStateCollectionStoreDirective, DbxFirebaseSystemStateDocumentStoreDirective, DbxFirestoreContextService, DbxLimitedFirebaseDocumentLoaderInstance, OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY, SystemStateCollectionStore, SystemStateDocumentStore, authRolesObsWithClaimsService, authUserInfoFromAuthUser, authUserStateFromFirebaseAuthServiceFunction, dbxFirebaseCollectionChangeTrigger, dbxFirebaseCollectionChangeTriggerForStore, dbxFirebaseCollectionChangeTriggerForWatcher, dbxFirebaseCollectionChangeWatcher, dbxFirebaseCollectionLoaderInstance, dbxFirebaseCollectionLoaderInstanceWithCollection, dbxFirebaseDocumentLoaderInstance, dbxFirebaseDocumentLoaderInstanceWithAccessor, dbxFirebaseIdRouteParamRedirect, dbxFirebaseStorageModuleContextConfigFactory, dbxLimitedFirebaseDocumentLoaderInstance, dbxLimitedFirebaseDocumentLoaderInstanceWithAccessor, defaultDbxFirebaseAuthServiceDelegateWithClaimsService, defaultFirebaseAuthLoginProvidersFactory, developmentFirebaseServerSchedulerWidgetEntry, enableAppCheckDebugTokenGeneration, firebaseAuthTokenFromUser, firebaseDocumentStoreCreateFunction, firebaseDocumentStoreCrudFunction, firebaseDocumentStoreDeleteFunction, firebaseDocumentStoreReadFunction, firebaseDocumentStoreUpdateFunction, modelDoesNotExistError, provideDbxFirebaseCollectionStoreDirective, provideDbxFirebaseCollectionWithParentStoreDirective, provideDbxFirebaseDocumentStoreDirective, provideSystemStateFirestoreCollections, readValueFromIdToken, setParentStoreEffect, stateFromTokenForLoggedInUserFunction };
|
|
3804
|
+
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_OPTIONS_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_AUTH_SERVICE_DELEGATE, 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, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DISPLAY_FOR_STRING_VALUE, DbxFirebaseAppCheckHttpInterceptor, DbxFirebaseAuthContextInfo, DbxFirebaseAuthLoginService, DbxFirebaseAuthModule, DbxFirebaseAuthService, DbxFirebaseAuthServiceDelegate, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionChangeTriggerInstance, DbxFirebaseCollectionChangeWatcherInstance, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionLoaderInstance, DbxFirebaseCollectionStoreDirective, DbxFirebaseCollectionWithParentStoreDirective, DbxFirebaseDefaultAppCheckProviderModule, DbxFirebaseDefaultAuthProviderModule, DbxFirebaseDefaultFirebaseProvidersModule, DbxFirebaseDefaultFirestoreProviderModule, DbxFirebaseDefaultFunctionsProviderModule, DbxFirebaseDefaultStorageProviderModule, DbxFirebaseDevelopmentDirective, DbxFirebaseDevelopmentModule, DbxFirebaseDevelopmentModuleRootConfig, DbxFirebaseDevelopmentPopupComponent, DbxFirebaseDevelopmentPopupContentComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxFirebaseDevelopmentSchedulerListComponent, DbxFirebaseDevelopmentSchedulerListViewComponent, DbxFirebaseDevelopmentSchedulerListViewItemComponent, DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentSchedulerWidgetComponent, DbxFirebaseDevelopmentService, DbxFirebaseDevelopmentWidgetService, DbxFirebaseDocumentAuthIdDirective, DbxFirebaseDocumentLoaderInstance, DbxFirebaseDocumentStoreDirective, DbxFirebaseDocumentStoreRouteIdDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFirebaseEmulatorModule, DbxFirebaseEmulatorService, DbxFirebaseFirestoreCollectionModule, DbxFirebaseFunctionsModule, DbxFirebaseIdRouteParamRedirectInstance, DbxFirebaseLoginAnonymousComponent, DbxFirebaseLoginAppleComponent, DbxFirebaseLoginButtonComponent, DbxFirebaseLoginButtonContainerComponent, DbxFirebaseLoginComponent, DbxFirebaseLoginContext, DbxFirebaseLoginContextBackButtonComponent, DbxFirebaseLoginContextDirective, DbxFirebaseLoginEmailComponent, DbxFirebaseLoginEmailContentComponent, DbxFirebaseLoginFacebookComponent, DbxFirebaseLoginGitHubComponent, DbxFirebaseLoginGoogleComponent, DbxFirebaseLoginListComponent, DbxFirebaseLoginMicrosoftComponent, DbxFirebaseLoginModule, DbxFirebaseLoginModuleRootConfig, DbxFirebaseLoginTermsComponent, DbxFirebaseLoginTermsSimpleComponent, DbxFirebaseLoginTwitterComponent, DbxFirebaseModelModule, DbxFirebaseModelStoreModule, DbxFirebaseModule, DbxFirebaseParsedEmulatorsConfig, DbxFirebaseRegisterComponent, DbxFirebaseRegisterEmailComponent, DbxFirebaseStorageModule, DbxFirebaseStorageService, DbxFirebaseSystemStateCollectionStoreDirective, DbxFirebaseSystemStateDocumentStoreDirective, DbxFirestoreContextService, DbxLimitedFirebaseDocumentLoaderInstance, OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY, SystemStateCollectionStore, SystemStateDocumentStore, authRolesObsWithClaimsService, authUserInfoFromAuthUser, authUserStateFromFirebaseAuthServiceFunction, dbxFirebaseCollectionChangeTrigger, dbxFirebaseCollectionChangeTriggerForStore, dbxFirebaseCollectionChangeTriggerForWatcher, dbxFirebaseCollectionChangeWatcher, dbxFirebaseCollectionLoaderInstance, dbxFirebaseCollectionLoaderInstanceWithCollection, dbxFirebaseDocumentLoaderInstance, dbxFirebaseDocumentLoaderInstanceWithAccessor, dbxFirebaseIdRouteParamRedirect, dbxFirebaseStorageModuleContextConfigFactory, dbxLimitedFirebaseDocumentLoaderInstance, dbxLimitedFirebaseDocumentLoaderInstanceWithAccessor, defaultDbxFirebaseAuthServiceDelegateWithClaimsService, defaultFirebaseAuthLoginProvidersFactory, developmentFirebaseServerSchedulerWidgetEntry, enableAppCheckDebugTokenGeneration, firebaseAuthTokenFromUser, firebaseDocumentStoreCreateFunction, firebaseDocumentStoreCrudFunction, firebaseDocumentStoreDeleteFunction, firebaseDocumentStoreReadFunction, firebaseDocumentStoreUpdateFunction, modelDoesNotExistError, provideDbxFirebaseCollectionStoreDirective, provideDbxFirebaseCollectionWithParentStoreDirective, provideDbxFirebaseDocumentStoreDirective, provideSystemStateFirestoreCollections, readValueFromIdToken, setParentStoreEffect, stateFromTokenForLoggedInUserFunction };
|
|
3770
3805
|
//# sourceMappingURL=dereekb-dbx-firebase.mjs.map
|