@infrab4a/connect-angular 3.3.0-beta.4 → 3.3.0-beta.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/angular-firestore.module.d.ts +2 -6
- package/bundles/infrab4a-connect-angular.umd.js +21 -7
- package/bundles/infrab4a-connect-angular.umd.js.map +1 -1
- package/esm2015/angular-firestore.module.js +22 -11
- package/fesm2015/infrab4a-connect-angular.js +21 -9
- package/fesm2015/infrab4a-connect-angular.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
{
|
|
@@ -1540,6 +1536,15 @@
|
|
|
1540
1536
|
},
|
|
1541
1537
|
deps: [i1$1.AngularFirestore, i2.ProductFirestoreRepository],
|
|
1542
1538
|
},
|
|
1539
|
+
{
|
|
1540
|
+
provide: i0.APP_INITIALIZER,
|
|
1541
|
+
useFactory: function (firestore) { return function () {
|
|
1542
|
+
console.log('testeeee');
|
|
1543
|
+
firestore.firestore.settings({ ignoreUndefinedProperties: true });
|
|
1544
|
+
}; },
|
|
1545
|
+
deps: [i1$1.AngularFirestore],
|
|
1546
|
+
multi: true,
|
|
1547
|
+
},
|
|
1543
1548
|
], imports: [[fire.AngularFireModule, AngularElasticSeachModule]] });
|
|
1544
1549
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.12", ngImport: i0__namespace, type: AngularFirestoreModule, decorators: [{
|
|
1545
1550
|
type: i0.NgModule,
|
|
@@ -1700,9 +1705,18 @@
|
|
|
1700
1705
|
},
|
|
1701
1706
|
deps: [i1$1.AngularFirestore, i2.ProductFirestoreRepository],
|
|
1702
1707
|
},
|
|
1708
|
+
{
|
|
1709
|
+
provide: i0.APP_INITIALIZER,
|
|
1710
|
+
useFactory: function (firestore) { return function () {
|
|
1711
|
+
console.log('testeeee');
|
|
1712
|
+
firestore.firestore.settings({ ignoreUndefinedProperties: true });
|
|
1713
|
+
}; },
|
|
1714
|
+
deps: [i1$1.AngularFirestore],
|
|
1715
|
+
multi: true,
|
|
1716
|
+
},
|
|
1703
1717
|
],
|
|
1704
1718
|
}]
|
|
1705
|
-
}]
|
|
1719
|
+
}] });
|
|
1706
1720
|
|
|
1707
1721
|
var AngularHasuraGraphQLModule = /** @class */ (function () {
|
|
1708
1722
|
function AngularHasuraGraphQLModule() {
|