@infrab4a/connect-angular 3.3.0-beta.4 → 3.3.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/angular-firestore.module.d.ts +2 -6
- package/bundles/infrab4a-connect-angular.umd.js +29 -7
- package/bundles/infrab4a-connect-angular.umd.js.map +1 -1
- package/esm2015/angular-firestore.module.js +31 -12
- package/fesm2015/infrab4a-connect-angular.js +30 -10
- package/fesm2015/infrab4a-connect-angular.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
import { ModuleWithProviders
|
|
1
|
+
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import { AngularFireModule, FirebaseAppConfig, FirebaseOptions } from '@angular/fire';
|
|
3
|
-
import { AngularFirestore } from '@angular/fire/firestore';
|
|
4
3
|
import { AxiosElasticSearchConfig } from '@infrab4a/connect';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
import * as i1 from "@angular/fire";
|
|
7
6
|
import * as i2 from "./angular-elastic-search.module";
|
|
8
|
-
export declare class AngularFirestoreModule
|
|
9
|
-
private readonly angularFirestore;
|
|
7
|
+
export declare class AngularFirestoreModule {
|
|
10
8
|
static initializeApp(options: {
|
|
11
9
|
firebase: FirebaseOptions;
|
|
12
10
|
elasticSearch: AxiosElasticSearchConfig;
|
|
13
11
|
}, nameOrConfig?: string | FirebaseAppConfig): ModuleWithProviders<AngularFireModule>;
|
|
14
|
-
constructor(angularFirestore: AngularFirestore);
|
|
15
|
-
ngOnInit(): void;
|
|
16
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngularFirestoreModule, never>;
|
|
17
13
|
static ɵmod: i0.ɵɵNgModuleDeclaration<AngularFirestoreModule, never, [typeof i1.AngularFireModule, typeof i2.AngularElasticSeachModule], never>;
|
|
18
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<AngularFirestoreModule>;
|
|
@@ -1365,8 +1365,7 @@
|
|
|
1365
1365
|
}] });
|
|
1366
1366
|
|
|
1367
1367
|
var AngularFirestoreModule = /** @class */ (function () {
|
|
1368
|
-
function AngularFirestoreModule(
|
|
1369
|
-
this.angularFirestore = angularFirestore;
|
|
1368
|
+
function AngularFirestoreModule() {
|
|
1370
1369
|
}
|
|
1371
1370
|
AngularFirestoreModule.initializeApp = function (options, nameOrConfig) {
|
|
1372
1371
|
return {
|
|
@@ -1378,12 +1377,9 @@
|
|
|
1378
1377
|
],
|
|
1379
1378
|
};
|
|
1380
1379
|
};
|
|
1381
|
-
AngularFirestoreModule.prototype.ngOnInit = function () {
|
|
1382
|
-
this.angularFirestore.firestore.settings({ ignoreUndefinedProperties: true });
|
|
1383
|
-
};
|
|
1384
1380
|
return AngularFirestoreModule;
|
|
1385
1381
|
}());
|
|
1386
|
-
AngularFirestoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularFirestoreModule, deps: [
|
|
1382
|
+
AngularFirestoreModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularFirestoreModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1387
1383
|
AngularFirestoreModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularFirestoreModule, imports: [fire.AngularFireModule, AngularElasticSeachModule] });
|
|
1388
1384
|
AngularFirestoreModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularFirestoreModule, providers: [
|
|
1389
1385
|
{
|
|
@@ -1484,6 +1480,13 @@
|
|
|
1484
1480
|
},
|
|
1485
1481
|
deps: [i1$1.AngularFirestore],
|
|
1486
1482
|
},
|
|
1483
|
+
{
|
|
1484
|
+
provide: 'ShopSettingsRepository',
|
|
1485
|
+
useFactory: function (firestore) {
|
|
1486
|
+
return new i2.ShopSettingsFirestoreRepository(firestore.firestore);
|
|
1487
|
+
},
|
|
1488
|
+
deps: [i1$1.AngularFirestore],
|
|
1489
|
+
},
|
|
1487
1490
|
{
|
|
1488
1491
|
provide: 'SubscriptionPaymentRepository',
|
|
1489
1492
|
useFactory: function (firestore, subscriptionRepository) {
|
|
@@ -1540,6 +1543,12 @@
|
|
|
1540
1543
|
},
|
|
1541
1544
|
deps: [i1$1.AngularFirestore, i2.ProductFirestoreRepository],
|
|
1542
1545
|
},
|
|
1546
|
+
{
|
|
1547
|
+
provide: i0.APP_INITIALIZER,
|
|
1548
|
+
useFactory: function (firestore) { return function () { return firestore.firestore.settings({ ignoreUndefinedProperties: true }); }; },
|
|
1549
|
+
deps: [i1$1.AngularFirestore],
|
|
1550
|
+
multi: true,
|
|
1551
|
+
},
|
|
1543
1552
|
], imports: [[fire.AngularFireModule, AngularElasticSeachModule]] });
|
|
1544
1553
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularFirestoreModule, decorators: [{
|
|
1545
1554
|
type: i0.NgModule,
|
|
@@ -1644,6 +1653,13 @@
|
|
|
1644
1653
|
},
|
|
1645
1654
|
deps: [i1$1.AngularFirestore],
|
|
1646
1655
|
},
|
|
1656
|
+
{
|
|
1657
|
+
provide: 'ShopSettingsRepository',
|
|
1658
|
+
useFactory: function (firestore) {
|
|
1659
|
+
return new i2.ShopSettingsFirestoreRepository(firestore.firestore);
|
|
1660
|
+
},
|
|
1661
|
+
deps: [i1$1.AngularFirestore],
|
|
1662
|
+
},
|
|
1647
1663
|
{
|
|
1648
1664
|
provide: 'SubscriptionPaymentRepository',
|
|
1649
1665
|
useFactory: function (firestore, subscriptionRepository) {
|
|
@@ -1700,9 +1716,15 @@
|
|
|
1700
1716
|
},
|
|
1701
1717
|
deps: [i1$1.AngularFirestore, i2.ProductFirestoreRepository],
|
|
1702
1718
|
},
|
|
1719
|
+
{
|
|
1720
|
+
provide: i0.APP_INITIALIZER,
|
|
1721
|
+
useFactory: function (firestore) { return function () { return firestore.firestore.settings({ ignoreUndefinedProperties: true }); }; },
|
|
1722
|
+
deps: [i1$1.AngularFirestore],
|
|
1723
|
+
multi: true,
|
|
1724
|
+
},
|
|
1703
1725
|
],
|
|
1704
1726
|
}]
|
|
1705
|
-
}]
|
|
1727
|
+
}] });
|
|
1706
1728
|
|
|
1707
1729
|
var AngularHasuraGraphQLModule = /** @class */ (function () {
|
|
1708
1730
|
function AngularHasuraGraphQLModule() {
|