@ngrx/data 14.3.2 → 15.0.0-beta.1
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/src/actions/entity-action-factory.mjs +3 -3
- package/esm2020/src/dataservices/default-data.service.mjs +3 -3
- package/esm2020/src/dataservices/entity-cache-data.service.mjs +3 -3
- package/esm2020/src/dataservices/entity-data.service.mjs +3 -3
- package/esm2020/src/dataservices/http-url-generator.mjs +3 -3
- package/esm2020/src/dataservices/persistence-result-handler.service.mjs +3 -3
- package/esm2020/src/dispatchers/entity-cache-dispatcher.mjs +3 -3
- package/esm2020/src/dispatchers/entity-dispatcher-default-options.mjs +3 -3
- package/esm2020/src/dispatchers/entity-dispatcher-factory.mjs +3 -3
- package/esm2020/src/effects/entity-cache-effects.mjs +3 -3
- package/esm2020/src/effects/entity-effects.mjs +3 -3
- package/esm2020/src/entity-data-config.mjs +2 -0
- package/esm2020/src/entity-data-without-effects.module.mjs +10 -141
- package/esm2020/src/entity-data.module.mjs +11 -102
- package/esm2020/src/entity-metadata/entity-definition.service.mjs +3 -3
- package/esm2020/src/entity-services/entity-collection-service-elements-factory.mjs +3 -3
- package/esm2020/src/entity-services/entity-collection-service-factory.mjs +3 -3
- package/esm2020/src/entity-services/entity-services-base.mjs +3 -3
- package/esm2020/src/entity-services/entity-services-elements.mjs +3 -3
- package/esm2020/src/index.mjs +4 -2
- package/esm2020/src/provide-entity-data.mjs +222 -0
- package/esm2020/src/reducers/entity-cache-reducer.mjs +3 -3
- package/esm2020/src/reducers/entity-collection-creator.mjs +3 -3
- package/esm2020/src/reducers/entity-collection-reducer-methods.mjs +3 -3
- package/esm2020/src/reducers/entity-collection-reducer-registry.mjs +3 -3
- package/esm2020/src/reducers/entity-collection-reducer.mjs +3 -3
- package/esm2020/src/selectors/entity-selectors$.mjs +3 -3
- package/esm2020/src/selectors/entity-selectors.mjs +3 -3
- package/esm2020/src/utils/correlation-id-generator.mjs +3 -3
- package/esm2020/src/utils/default-logger.mjs +3 -3
- package/esm2020/src/utils/default-pluralizer.mjs +3 -3
- package/fesm2015/ngrx-data.mjs +293 -291
- package/fesm2015/ngrx-data.mjs.map +1 -1
- package/fesm2020/ngrx-data.mjs +293 -289
- package/fesm2020/ngrx-data.mjs.map +1 -1
- package/package.json +6 -6
- package/schematics-core/index.js +1 -3
- package/schematics-core/index.js.map +1 -1
- package/schematics-core/utility/libs-version.js +1 -1
- package/schematics-core/utility/libs-version.js.map +1 -1
- package/schematics-core/utility/visitors.js +1 -2
- package/schematics-core/utility/visitors.js.map +1 -1
- package/src/entity-data-config.d.ts +15 -0
- package/src/entity-data-without-effects.module.d.ts +5 -28
- package/src/entity-data.module.d.ts +2 -14
- package/src/index.d.ts +3 -1
- package/src/provide-entity-data.d.ts +78 -0
- package/src/selectors/entity-selectors.d.ts +1 -1
- package/schematics-core/utility/decorators.js +0 -15
- package/schematics-core/utility/decorators.js.map +0 -1
package/fesm2015/ngrx-data.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, InjectionToken, Optional, Inject, NgModule } from '@angular/core';
|
|
2
|
+
import { Injectable, InjectionToken, Optional, Inject, ENVIRONMENT_INITIALIZER, inject, makeEnvironmentProviders, NgModule } from '@angular/core';
|
|
3
3
|
import { filter, map, delay, timeout, catchError, shareReplay, take, mergeMap, withLatestFrom, concatMap } from 'rxjs/operators';
|
|
4
4
|
import * as i1 from '@angular/common/http';
|
|
5
5
|
import { HttpParams } from '@angular/common/http';
|
|
6
6
|
import * as i4 from 'rxjs';
|
|
7
7
|
import { throwError, of, race, asyncScheduler, merge } from 'rxjs';
|
|
8
8
|
import { createEntityAdapter } from '@ngrx/entity';
|
|
9
|
-
import * as
|
|
10
|
-
import { ScannedActionsSubject, createSelector, createFeatureSelector, compose,
|
|
11
|
-
import * as i1$
|
|
12
|
-
import { createEffect, ofType,
|
|
9
|
+
import * as i3 from '@ngrx/store';
|
|
10
|
+
import { ScannedActionsSubject, createSelector, createFeatureSelector, compose, ReducerManager, combineReducers } from '@ngrx/store';
|
|
11
|
+
import * as i1$1 from '@ngrx/effects';
|
|
12
|
+
import { createEffect, ofType, EffectSources } from '@ngrx/effects';
|
|
13
13
|
|
|
14
14
|
class EntityActionFactory {
|
|
15
15
|
// polymorphic create for the two signatures
|
|
@@ -48,9 +48,9 @@ class EntityActionFactory {
|
|
|
48
48
|
// return `${op} [${tag}]`.toUpperCase(); // example of an alternative
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
/** @nocollapse */ EntityActionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
/** @nocollapse */ EntityActionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
51
|
+
/** @nocollapse */ EntityActionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityActionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
52
|
+
/** @nocollapse */ EntityActionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityActionFactory });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityActionFactory, decorators: [{
|
|
54
54
|
type: Injectable
|
|
55
55
|
}] });
|
|
56
56
|
|
|
@@ -656,9 +656,9 @@ class DefaultHttpUrlGenerator {
|
|
|
656
656
|
this.knownHttpResourceUrls = Object.assign(Object.assign({}, this.knownHttpResourceUrls), (entityHttpResourceUrls || {}));
|
|
657
657
|
}
|
|
658
658
|
}
|
|
659
|
-
/** @nocollapse */ DefaultHttpUrlGenerator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
660
|
-
/** @nocollapse */ DefaultHttpUrlGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
659
|
+
/** @nocollapse */ DefaultHttpUrlGenerator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultHttpUrlGenerator, deps: [{ token: Pluralizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
660
|
+
/** @nocollapse */ DefaultHttpUrlGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultHttpUrlGenerator });
|
|
661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultHttpUrlGenerator, decorators: [{
|
|
662
662
|
type: Injectable
|
|
663
663
|
}], ctorParameters: function () { return [{ type: Pluralizer }]; } });
|
|
664
664
|
/** Remove leading & trailing spaces or slashes */
|
|
@@ -821,9 +821,9 @@ class DefaultDataServiceFactory {
|
|
|
821
821
|
return new DefaultDataService(entityName, this.http, this.httpUrlGenerator, this.config);
|
|
822
822
|
}
|
|
823
823
|
}
|
|
824
|
-
/** @nocollapse */ DefaultDataServiceFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
825
|
-
/** @nocollapse */ DefaultDataServiceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
824
|
+
/** @nocollapse */ DefaultDataServiceFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultDataServiceFactory, deps: [{ token: i1.HttpClient }, { token: HttpUrlGenerator }, { token: DefaultDataServiceConfig, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
825
|
+
/** @nocollapse */ DefaultDataServiceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultDataServiceFactory });
|
|
826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultDataServiceFactory, decorators: [{
|
|
827
827
|
type: Injectable
|
|
828
828
|
}], ctorParameters: function () {
|
|
829
829
|
return [{ type: i1.HttpClient }, { type: HttpUrlGenerator }, { type: DefaultDataServiceConfig, decorators: [{
|
|
@@ -935,9 +935,9 @@ class EntityDefinitionService {
|
|
|
935
935
|
Object.assign(this.definitions, definitions);
|
|
936
936
|
}
|
|
937
937
|
}
|
|
938
|
-
/** @nocollapse */ EntityDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
939
|
-
/** @nocollapse */ EntityDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
940
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
938
|
+
/** @nocollapse */ EntityDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDefinitionService, deps: [{ token: ENTITY_METADATA_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
939
|
+
/** @nocollapse */ EntityDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDefinitionService });
|
|
940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDefinitionService, decorators: [{
|
|
941
941
|
type: Injectable
|
|
942
942
|
}], ctorParameters: function () {
|
|
943
943
|
return [{ type: undefined, decorators: [{
|
|
@@ -1071,9 +1071,9 @@ class EntityCacheDataService {
|
|
|
1071
1071
|
return idSelector;
|
|
1072
1072
|
}
|
|
1073
1073
|
}
|
|
1074
|
-
/** @nocollapse */ EntityCacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1075
|
-
/** @nocollapse */ EntityCacheDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1074
|
+
/** @nocollapse */ EntityCacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDataService, deps: [{ token: EntityDefinitionService }, { token: i1.HttpClient }, { token: DefaultDataServiceConfig, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1075
|
+
/** @nocollapse */ EntityCacheDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDataService });
|
|
1076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDataService, decorators: [{
|
|
1077
1077
|
type: Injectable
|
|
1078
1078
|
}], ctorParameters: function () {
|
|
1079
1079
|
return [{ type: EntityDefinitionService }, { type: i1.HttpClient }, { type: DefaultDataServiceConfig, decorators: [{
|
|
@@ -1135,9 +1135,9 @@ class EntityDataService {
|
|
|
1135
1135
|
this.services = Object.assign(Object.assign({}, this.services), services);
|
|
1136
1136
|
}
|
|
1137
1137
|
}
|
|
1138
|
-
/** @nocollapse */ EntityDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1139
|
-
/** @nocollapse */ EntityDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1138
|
+
/** @nocollapse */ EntityDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataService, deps: [{ token: DefaultDataServiceFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1139
|
+
/** @nocollapse */ EntityDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataService });
|
|
1140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataService, decorators: [{
|
|
1141
1141
|
type: Injectable
|
|
1142
1142
|
}], ctorParameters: function () { return [{ type: DefaultDataServiceFactory }]; } });
|
|
1143
1143
|
|
|
@@ -1178,9 +1178,9 @@ class DefaultPersistenceResultHandler {
|
|
|
1178
1178
|
};
|
|
1179
1179
|
}
|
|
1180
1180
|
}
|
|
1181
|
-
/** @nocollapse */ DefaultPersistenceResultHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1182
|
-
/** @nocollapse */ DefaultPersistenceResultHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1181
|
+
/** @nocollapse */ DefaultPersistenceResultHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPersistenceResultHandler, deps: [{ token: Logger }, { token: EntityActionFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1182
|
+
/** @nocollapse */ DefaultPersistenceResultHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPersistenceResultHandler });
|
|
1183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPersistenceResultHandler, decorators: [{
|
|
1184
1184
|
type: Injectable
|
|
1185
1185
|
}], ctorParameters: function () { return [{ type: Logger }, { type: EntityActionFactory }]; } });
|
|
1186
1186
|
|
|
@@ -1216,9 +1216,9 @@ class CorrelationIdGenerator {
|
|
|
1216
1216
|
return this.prefix + this.seed;
|
|
1217
1217
|
}
|
|
1218
1218
|
}
|
|
1219
|
-
/** @nocollapse */ CorrelationIdGenerator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1220
|
-
/** @nocollapse */ CorrelationIdGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1221
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1219
|
+
/** @nocollapse */ CorrelationIdGenerator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorrelationIdGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1220
|
+
/** @nocollapse */ CorrelationIdGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorrelationIdGenerator });
|
|
1221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorrelationIdGenerator, decorators: [{
|
|
1222
1222
|
type: Injectable
|
|
1223
1223
|
}] });
|
|
1224
1224
|
|
|
@@ -1244,9 +1244,9 @@ class EntityDispatcherDefaultOptions {
|
|
|
1244
1244
|
this.optimisticSaveEntities = false;
|
|
1245
1245
|
}
|
|
1246
1246
|
}
|
|
1247
|
-
/** @nocollapse */ EntityDispatcherDefaultOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1248
|
-
/** @nocollapse */ EntityDispatcherDefaultOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1247
|
+
/** @nocollapse */ EntityDispatcherDefaultOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherDefaultOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1248
|
+
/** @nocollapse */ EntityDispatcherDefaultOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherDefaultOptions });
|
|
1249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherDefaultOptions, decorators: [{
|
|
1250
1250
|
type: Injectable
|
|
1251
1251
|
}] });
|
|
1252
1252
|
|
|
@@ -1393,15 +1393,15 @@ class EntityCacheDispatcher {
|
|
|
1393
1393
|
}));
|
|
1394
1394
|
}
|
|
1395
1395
|
}
|
|
1396
|
-
/** @nocollapse */ EntityCacheDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1397
|
-
/** @nocollapse */ EntityCacheDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1396
|
+
/** @nocollapse */ EntityCacheDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDispatcher, deps: [{ token: CorrelationIdGenerator }, { token: EntityDispatcherDefaultOptions }, { token: ScannedActionsSubject }, { token: i3.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1397
|
+
/** @nocollapse */ EntityCacheDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDispatcher });
|
|
1398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDispatcher, decorators: [{
|
|
1399
1399
|
type: Injectable
|
|
1400
1400
|
}], ctorParameters: function () {
|
|
1401
1401
|
return [{ type: CorrelationIdGenerator }, { type: EntityDispatcherDefaultOptions }, { type: i4.Observable, decorators: [{
|
|
1402
1402
|
type: Inject,
|
|
1403
1403
|
args: [ScannedActionsSubject]
|
|
1404
|
-
}] }, { type:
|
|
1404
|
+
}] }, { type: i3.Store }];
|
|
1405
1405
|
} });
|
|
1406
1406
|
|
|
1407
1407
|
/**
|
|
@@ -1855,12 +1855,12 @@ class EntityDispatcherFactory {
|
|
|
1855
1855
|
this.raSubscription.unsubscribe();
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
|
-
/** @nocollapse */ EntityDispatcherFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1859
|
-
/** @nocollapse */ EntityDispatcherFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1858
|
+
/** @nocollapse */ EntityDispatcherFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherFactory, deps: [{ token: EntityActionFactory }, { token: i3.Store }, { token: EntityDispatcherDefaultOptions }, { token: ScannedActionsSubject }, { token: ENTITY_CACHE_SELECTOR_TOKEN }, { token: CorrelationIdGenerator }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1859
|
+
/** @nocollapse */ EntityDispatcherFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherFactory });
|
|
1860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherFactory, decorators: [{
|
|
1861
1861
|
type: Injectable
|
|
1862
1862
|
}], ctorParameters: function () {
|
|
1863
|
-
return [{ type: EntityActionFactory }, { type:
|
|
1863
|
+
return [{ type: EntityActionFactory }, { type: i3.Store }, { type: EntityDispatcherDefaultOptions }, { type: i4.Observable, decorators: [{
|
|
1864
1864
|
type: Inject,
|
|
1865
1865
|
args: [ScannedActionsSubject]
|
|
1866
1866
|
}] }, { type: undefined, decorators: [{
|
|
@@ -1963,12 +1963,12 @@ class EntityCacheEffects {
|
|
|
1963
1963
|
};
|
|
1964
1964
|
}
|
|
1965
1965
|
}
|
|
1966
|
-
/** @nocollapse */ EntityCacheEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1967
|
-
/** @nocollapse */ EntityCacheEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1968
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1966
|
+
/** @nocollapse */ EntityCacheEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheEffects, deps: [{ token: i1$1.Actions }, { token: EntityCacheDataService }, { token: EntityActionFactory }, { token: Logger }, { token: ENTITY_EFFECTS_SCHEDULER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1967
|
+
/** @nocollapse */ EntityCacheEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheEffects });
|
|
1968
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheEffects, decorators: [{
|
|
1969
1969
|
type: Injectable
|
|
1970
1970
|
}], ctorParameters: function () {
|
|
1971
|
-
return [{ type: i1$
|
|
1971
|
+
return [{ type: i1$1.Actions }, { type: EntityCacheDataService }, { type: EntityActionFactory }, { type: Logger }, { type: undefined, decorators: [{
|
|
1972
1972
|
type: Optional
|
|
1973
1973
|
}, {
|
|
1974
1974
|
type: Inject,
|
|
@@ -2101,12 +2101,12 @@ class EntityEffects {
|
|
|
2101
2101
|
return of(successAction).pipe(delay(this.responseDelay, this.scheduler || asyncScheduler));
|
|
2102
2102
|
}
|
|
2103
2103
|
}
|
|
2104
|
-
/** @nocollapse */ EntityEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2105
|
-
/** @nocollapse */ EntityEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2104
|
+
/** @nocollapse */ EntityEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityEffects, deps: [{ token: i1$1.Actions }, { token: EntityDataService }, { token: EntityActionFactory }, { token: PersistenceResultHandler }, { token: ENTITY_EFFECTS_SCHEDULER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2105
|
+
/** @nocollapse */ EntityEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityEffects });
|
|
2106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityEffects, decorators: [{
|
|
2107
2107
|
type: Injectable
|
|
2108
2108
|
}], ctorParameters: function () {
|
|
2109
|
-
return [{ type: i1$
|
|
2109
|
+
return [{ type: i1$1.Actions }, { type: EntityDataService }, { type: EntityActionFactory }, { type: PersistenceResultHandler }, { type: undefined, decorators: [{
|
|
2110
2110
|
type: Optional
|
|
2111
2111
|
}, {
|
|
2112
2112
|
type: Inject,
|
|
@@ -2412,9 +2412,9 @@ class EntityCollectionCreator {
|
|
|
2412
2412
|
return (initialState || createEmptyEntityCollection(entityName));
|
|
2413
2413
|
}
|
|
2414
2414
|
}
|
|
2415
|
-
/** @nocollapse */ EntityCollectionCreator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2416
|
-
/** @nocollapse */ EntityCollectionCreator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2415
|
+
/** @nocollapse */ EntityCollectionCreator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionCreator, deps: [{ token: EntityDefinitionService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2416
|
+
/** @nocollapse */ EntityCollectionCreator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionCreator });
|
|
2417
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionCreator, decorators: [{
|
|
2418
2418
|
type: Injectable
|
|
2419
2419
|
}], ctorParameters: function () {
|
|
2420
2420
|
return [{ type: EntityDefinitionService, decorators: [{
|
|
@@ -2502,9 +2502,9 @@ class EntitySelectorsFactory {
|
|
|
2502
2502
|
selectCollection, selectEntityCache: this.selectEntityCache }, entitySelectors);
|
|
2503
2503
|
}
|
|
2504
2504
|
}
|
|
2505
|
-
/** @nocollapse */ EntitySelectorsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2506
|
-
/** @nocollapse */ EntitySelectorsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2507
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2505
|
+
/** @nocollapse */ EntitySelectorsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectorsFactory, deps: [{ token: EntityCollectionCreator, optional: true }, { token: ENTITY_CACHE_SELECTOR_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2506
|
+
/** @nocollapse */ EntitySelectorsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectorsFactory });
|
|
2507
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectorsFactory, decorators: [{
|
|
2508
2508
|
type: Injectable
|
|
2509
2509
|
}], ctorParameters: function () {
|
|
2510
2510
|
return [{ type: EntityCollectionCreator, decorators: [{
|
|
@@ -2552,12 +2552,12 @@ class EntitySelectors$Factory {
|
|
|
2552
2552
|
return selectors$;
|
|
2553
2553
|
}
|
|
2554
2554
|
}
|
|
2555
|
-
/** @nocollapse */ EntitySelectors$Factory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2556
|
-
/** @nocollapse */ EntitySelectors$Factory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2555
|
+
/** @nocollapse */ EntitySelectors$Factory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectors$Factory, deps: [{ token: i3.Store }, { token: i1$1.Actions }, { token: ENTITY_CACHE_SELECTOR_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2556
|
+
/** @nocollapse */ EntitySelectors$Factory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectors$Factory });
|
|
2557
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectors$Factory, decorators: [{
|
|
2558
2558
|
type: Injectable
|
|
2559
2559
|
}], ctorParameters: function () {
|
|
2560
|
-
return [{ type:
|
|
2560
|
+
return [{ type: i3.Store }, { type: i1$1.Actions }, { type: undefined, decorators: [{
|
|
2561
2561
|
type: Inject,
|
|
2562
2562
|
args: [ENTITY_CACHE_SELECTOR_TOKEN]
|
|
2563
2563
|
}] }];
|
|
@@ -2589,9 +2589,9 @@ class EntityCollectionServiceElementsFactory {
|
|
|
2589
2589
|
};
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
/** @nocollapse */ EntityCollectionServiceElementsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2593
|
-
/** @nocollapse */ EntityCollectionServiceElementsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2592
|
+
/** @nocollapse */ EntityCollectionServiceElementsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceElementsFactory, deps: [{ token: EntityDispatcherFactory }, { token: EntityDefinitionService }, { token: EntitySelectorsFactory }, { token: EntitySelectors$Factory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2593
|
+
/** @nocollapse */ EntityCollectionServiceElementsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceElementsFactory });
|
|
2594
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceElementsFactory, decorators: [{
|
|
2595
2595
|
type: Injectable
|
|
2596
2596
|
}], ctorParameters: function () { return [{ type: EntityDispatcherFactory }, { type: EntityDefinitionService }, { type: EntitySelectorsFactory }, { type: EntitySelectors$Factory }]; } });
|
|
2597
2597
|
|
|
@@ -2613,9 +2613,9 @@ class EntityCollectionServiceFactory {
|
|
|
2613
2613
|
return new EntityCollectionServiceBase(entityName, this.entityCollectionServiceElementsFactory);
|
|
2614
2614
|
}
|
|
2615
2615
|
}
|
|
2616
|
-
/** @nocollapse */ EntityCollectionServiceFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2617
|
-
/** @nocollapse */ EntityCollectionServiceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2616
|
+
/** @nocollapse */ EntityCollectionServiceFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceFactory, deps: [{ token: EntityCollectionServiceElementsFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2617
|
+
/** @nocollapse */ EntityCollectionServiceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceFactory });
|
|
2618
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceFactory, decorators: [{
|
|
2619
2619
|
type: Injectable
|
|
2620
2620
|
}], ctorParameters: function () { return [{ type: EntityCollectionServiceElementsFactory }]; } });
|
|
2621
2621
|
|
|
@@ -2640,11 +2640,11 @@ class EntityServicesElements {
|
|
|
2640
2640
|
this.reducedActions$ = entityDispatcherFactory.reducedActions$;
|
|
2641
2641
|
}
|
|
2642
2642
|
}
|
|
2643
|
-
/** @nocollapse */ EntityServicesElements.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2644
|
-
/** @nocollapse */ EntityServicesElements.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2645
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2643
|
+
/** @nocollapse */ EntityServicesElements.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesElements, deps: [{ token: EntityCollectionServiceFactory }, { token: EntityDispatcherFactory }, { token: EntitySelectors$Factory }, { token: i3.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2644
|
+
/** @nocollapse */ EntityServicesElements.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesElements });
|
|
2645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesElements, decorators: [{
|
|
2646
2646
|
type: Injectable
|
|
2647
|
-
}], ctorParameters: function () { return [{ type: EntityCollectionServiceFactory }, { type: EntityDispatcherFactory }, { type: EntitySelectors$Factory }, { type:
|
|
2647
|
+
}], ctorParameters: function () { return [{ type: EntityCollectionServiceFactory }, { type: EntityDispatcherFactory }, { type: EntitySelectors$Factory }, { type: i3.Store }]; } });
|
|
2648
2648
|
|
|
2649
2649
|
/* eslint-disable @typescript-eslint/member-ordering */
|
|
2650
2650
|
/**
|
|
@@ -2756,9 +2756,9 @@ class EntityServicesBase {
|
|
|
2756
2756
|
}
|
|
2757
2757
|
}
|
|
2758
2758
|
}
|
|
2759
|
-
/** @nocollapse */ EntityServicesBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2760
|
-
/** @nocollapse */ EntityServicesBase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2761
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2759
|
+
/** @nocollapse */ EntityServicesBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesBase, deps: [{ token: EntityServicesElements }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2760
|
+
/** @nocollapse */ EntityServicesBase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesBase });
|
|
2761
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesBase, decorators: [{
|
|
2762
2762
|
type: Injectable
|
|
2763
2763
|
}], ctorParameters: function () { return [{ type: EntityServicesElements }]; } });
|
|
2764
2764
|
|
|
@@ -4127,9 +4127,9 @@ class EntityCollectionReducerMethodsFactory {
|
|
|
4127
4127
|
return methodsClass.methods;
|
|
4128
4128
|
}
|
|
4129
4129
|
}
|
|
4130
|
-
/** @nocollapse */ EntityCollectionReducerMethodsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4131
|
-
/** @nocollapse */ EntityCollectionReducerMethodsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4130
|
+
/** @nocollapse */ EntityCollectionReducerMethodsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerMethodsFactory, deps: [{ token: EntityDefinitionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4131
|
+
/** @nocollapse */ EntityCollectionReducerMethodsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerMethodsFactory });
|
|
4132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerMethodsFactory, decorators: [{
|
|
4133
4133
|
type: Injectable
|
|
4134
4134
|
}], ctorParameters: function () { return [{ type: EntityDefinitionService }]; } });
|
|
4135
4135
|
|
|
@@ -4148,9 +4148,9 @@ class EntityCollectionReducerFactory {
|
|
|
4148
4148
|
};
|
|
4149
4149
|
}
|
|
4150
4150
|
}
|
|
4151
|
-
/** @nocollapse */ EntityCollectionReducerFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4152
|
-
/** @nocollapse */ EntityCollectionReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4151
|
+
/** @nocollapse */ EntityCollectionReducerFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerFactory, deps: [{ token: EntityCollectionReducerMethodsFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4152
|
+
/** @nocollapse */ EntityCollectionReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerFactory });
|
|
4153
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerFactory, decorators: [{
|
|
4154
4154
|
type: Injectable
|
|
4155
4155
|
}], ctorParameters: function () { return [{ type: EntityCollectionReducerMethodsFactory }]; } });
|
|
4156
4156
|
|
|
@@ -4206,9 +4206,9 @@ class EntityCollectionReducerRegistry {
|
|
|
4206
4206
|
keys.forEach((key) => this.registerReducer(key, reducers[key]));
|
|
4207
4207
|
}
|
|
4208
4208
|
}
|
|
4209
|
-
/** @nocollapse */ EntityCollectionReducerRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4210
|
-
/** @nocollapse */ EntityCollectionReducerRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4211
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4209
|
+
/** @nocollapse */ EntityCollectionReducerRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerRegistry, deps: [{ token: EntityCollectionReducerFactory }, { token: ENTITY_COLLECTION_META_REDUCERS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4210
|
+
/** @nocollapse */ EntityCollectionReducerRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerRegistry });
|
|
4211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerRegistry, decorators: [{
|
|
4212
4212
|
type: Injectable
|
|
4213
4213
|
}], ctorParameters: function () {
|
|
4214
4214
|
return [{ type: EntityCollectionReducerFactory }, { type: undefined, decorators: [{
|
|
@@ -4475,9 +4475,9 @@ class EntityCacheReducerFactory {
|
|
|
4475
4475
|
return entityCache;
|
|
4476
4476
|
}
|
|
4477
4477
|
}
|
|
4478
|
-
/** @nocollapse */ EntityCacheReducerFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4479
|
-
/** @nocollapse */ EntityCacheReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4478
|
+
/** @nocollapse */ EntityCacheReducerFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheReducerFactory, deps: [{ token: EntityCollectionCreator }, { token: EntityCollectionReducerRegistry }, { token: Logger }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4479
|
+
/** @nocollapse */ EntityCacheReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheReducerFactory });
|
|
4480
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheReducerFactory, decorators: [{
|
|
4481
4481
|
type: Injectable
|
|
4482
4482
|
}], ctorParameters: function () { return [{ type: EntityCollectionCreator }, { type: EntityCollectionReducerRegistry }, { type: Logger }]; } });
|
|
4483
4483
|
|
|
@@ -4498,9 +4498,9 @@ class DefaultLogger {
|
|
|
4498
4498
|
}
|
|
4499
4499
|
}
|
|
4500
4500
|
}
|
|
4501
|
-
/** @nocollapse */ DefaultLogger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4502
|
-
/** @nocollapse */ DefaultLogger.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4501
|
+
/** @nocollapse */ DefaultLogger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultLogger, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4502
|
+
/** @nocollapse */ DefaultLogger.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultLogger });
|
|
4503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultLogger, decorators: [{
|
|
4504
4504
|
type: Injectable
|
|
4505
4505
|
}] });
|
|
4506
4506
|
|
|
@@ -4561,9 +4561,9 @@ class DefaultPluralizer {
|
|
|
4561
4561
|
this.pluralNames = Object.assign(Object.assign({}, this.pluralNames), (pluralNames || {}));
|
|
4562
4562
|
}
|
|
4563
4563
|
}
|
|
4564
|
-
/** @nocollapse */ DefaultPluralizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4565
|
-
/** @nocollapse */ DefaultPluralizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4564
|
+
/** @nocollapse */ DefaultPluralizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPluralizer, deps: [{ token: PLURAL_NAMES_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4565
|
+
/** @nocollapse */ DefaultPluralizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPluralizer });
|
|
4566
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPluralizer, decorators: [{
|
|
4567
4567
|
type: Injectable
|
|
4568
4568
|
}], ctorParameters: function () {
|
|
4569
4569
|
return [{ type: undefined, decorators: [{
|
|
@@ -4643,6 +4643,194 @@ function guidComparer(l, r) {
|
|
|
4643
4643
|
: +(l !== r);
|
|
4644
4644
|
}
|
|
4645
4645
|
|
|
4646
|
+
const BASE_ENTITY_DATA_PROVIDERS = [
|
|
4647
|
+
CorrelationIdGenerator,
|
|
4648
|
+
EntityDispatcherDefaultOptions,
|
|
4649
|
+
EntityActionFactory,
|
|
4650
|
+
EntityCacheDispatcher,
|
|
4651
|
+
EntityCacheReducerFactory,
|
|
4652
|
+
entityCacheSelectorProvider,
|
|
4653
|
+
EntityCollectionCreator,
|
|
4654
|
+
EntityCollectionReducerFactory,
|
|
4655
|
+
EntityCollectionReducerMethodsFactory,
|
|
4656
|
+
EntityCollectionReducerRegistry,
|
|
4657
|
+
EntityCollectionServiceElementsFactory,
|
|
4658
|
+
EntityCollectionServiceFactory,
|
|
4659
|
+
EntityDefinitionService,
|
|
4660
|
+
EntityDispatcherFactory,
|
|
4661
|
+
EntitySelectorsFactory,
|
|
4662
|
+
EntitySelectors$Factory,
|
|
4663
|
+
EntityServicesElements,
|
|
4664
|
+
{ provide: ENTITY_CACHE_NAME_TOKEN, useValue: ENTITY_CACHE_NAME },
|
|
4665
|
+
{ provide: EntityServices, useClass: EntityServicesBase },
|
|
4666
|
+
{ provide: Logger, useClass: DefaultLogger },
|
|
4667
|
+
{
|
|
4668
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
4669
|
+
multi: true,
|
|
4670
|
+
useValue: () => initializeBaseEntityData(),
|
|
4671
|
+
},
|
|
4672
|
+
];
|
|
4673
|
+
function initializeBaseEntityData() {
|
|
4674
|
+
const reducerManager = inject(ReducerManager);
|
|
4675
|
+
const entityCacheReducerFactory = inject(EntityCacheReducerFactory);
|
|
4676
|
+
const entityCacheName = inject(ENTITY_CACHE_NAME_TOKEN, {
|
|
4677
|
+
optional: true,
|
|
4678
|
+
});
|
|
4679
|
+
const initialStateOrFn = inject(INITIAL_ENTITY_CACHE_STATE, {
|
|
4680
|
+
optional: true,
|
|
4681
|
+
});
|
|
4682
|
+
const metaReducersOrTokens = inject(ENTITY_CACHE_META_REDUCERS, {
|
|
4683
|
+
optional: true,
|
|
4684
|
+
});
|
|
4685
|
+
// Add the @ngrx/data feature to the Store's features
|
|
4686
|
+
const key = entityCacheName || ENTITY_CACHE_NAME;
|
|
4687
|
+
const metaReducers = (metaReducersOrTokens || []).map((mr) => {
|
|
4688
|
+
return mr instanceof InjectionToken ? inject(mr) : mr;
|
|
4689
|
+
});
|
|
4690
|
+
const initialState = typeof initialStateOrFn === 'function'
|
|
4691
|
+
? initialStateOrFn()
|
|
4692
|
+
: initialStateOrFn;
|
|
4693
|
+
const entityCacheFeature = {
|
|
4694
|
+
key,
|
|
4695
|
+
reducers: entityCacheReducerFactory.create(),
|
|
4696
|
+
reducerFactory: combineReducers,
|
|
4697
|
+
initialState: initialState || {},
|
|
4698
|
+
metaReducers: metaReducers,
|
|
4699
|
+
};
|
|
4700
|
+
reducerManager.addFeature(entityCacheFeature);
|
|
4701
|
+
}
|
|
4702
|
+
const ENTITY_DATA_EFFECTS_PROVIDERS = [
|
|
4703
|
+
DefaultDataServiceFactory,
|
|
4704
|
+
EntityCacheDataService,
|
|
4705
|
+
EntityDataService,
|
|
4706
|
+
EntityCacheEffects,
|
|
4707
|
+
EntityEffects,
|
|
4708
|
+
{ provide: HttpUrlGenerator, useClass: DefaultHttpUrlGenerator },
|
|
4709
|
+
{
|
|
4710
|
+
provide: PersistenceResultHandler,
|
|
4711
|
+
useClass: DefaultPersistenceResultHandler,
|
|
4712
|
+
},
|
|
4713
|
+
{ provide: Pluralizer, useClass: DefaultPluralizer },
|
|
4714
|
+
{
|
|
4715
|
+
provide: ENVIRONMENT_INITIALIZER,
|
|
4716
|
+
multi: true,
|
|
4717
|
+
useValue: () => initializeEntityDataEffects(),
|
|
4718
|
+
},
|
|
4719
|
+
];
|
|
4720
|
+
function initializeEntityDataEffects() {
|
|
4721
|
+
const effectsSources = inject(EffectSources);
|
|
4722
|
+
const entityCacheEffects = inject(EntityCacheEffects);
|
|
4723
|
+
const entityEffects = inject(EntityEffects);
|
|
4724
|
+
effectsSources.addEffects(entityCacheEffects);
|
|
4725
|
+
effectsSources.addEffects(entityEffects);
|
|
4726
|
+
}
|
|
4727
|
+
function provideEntityDataConfig(config) {
|
|
4728
|
+
return [
|
|
4729
|
+
{
|
|
4730
|
+
provide: ENTITY_CACHE_META_REDUCERS,
|
|
4731
|
+
useValue: config.entityCacheMetaReducers
|
|
4732
|
+
? config.entityCacheMetaReducers
|
|
4733
|
+
: [],
|
|
4734
|
+
},
|
|
4735
|
+
{
|
|
4736
|
+
provide: ENTITY_COLLECTION_META_REDUCERS,
|
|
4737
|
+
useValue: config.entityCollectionMetaReducers
|
|
4738
|
+
? config.entityCollectionMetaReducers
|
|
4739
|
+
: [],
|
|
4740
|
+
},
|
|
4741
|
+
{
|
|
4742
|
+
provide: PLURAL_NAMES_TOKEN,
|
|
4743
|
+
multi: true,
|
|
4744
|
+
useValue: config.pluralNames ? config.pluralNames : {},
|
|
4745
|
+
},
|
|
4746
|
+
{
|
|
4747
|
+
provide: ENTITY_METADATA_TOKEN,
|
|
4748
|
+
multi: true,
|
|
4749
|
+
useValue: config.entityMetadata ? config.entityMetadata : [],
|
|
4750
|
+
},
|
|
4751
|
+
];
|
|
4752
|
+
}
|
|
4753
|
+
/**
|
|
4754
|
+
* Sets up base entity data providers with entity config.
|
|
4755
|
+
* This function should to be used at the root level.
|
|
4756
|
+
*
|
|
4757
|
+
* @usageNotes
|
|
4758
|
+
*
|
|
4759
|
+
* ### Providing entity data with effects
|
|
4760
|
+
*
|
|
4761
|
+
* When used with `withEffects` feature, the `provideEntityData` function is
|
|
4762
|
+
* an alternative to `EntityDataModule.forRoot`
|
|
4763
|
+
*
|
|
4764
|
+
* ```ts
|
|
4765
|
+
* import { provideStore } from '@ngrx/store';
|
|
4766
|
+
* import { provideEffects } from '@ngrx/effects';
|
|
4767
|
+
* import {
|
|
4768
|
+
* EntityMetadataMap,
|
|
4769
|
+
* provideEntityData,
|
|
4770
|
+
* withEffects,
|
|
4771
|
+
* } from '@ngrx/data';
|
|
4772
|
+
*
|
|
4773
|
+
* const entityMetadata: EntityMetadataMap = {
|
|
4774
|
+
* Hero: {},
|
|
4775
|
+
* Villain: {},
|
|
4776
|
+
* };
|
|
4777
|
+
* const pluralNames = { Hero: 'Heroes' };
|
|
4778
|
+
*
|
|
4779
|
+
* bootstrapApplication(AppComponent, {
|
|
4780
|
+
* providers: [
|
|
4781
|
+
* provideStore(),
|
|
4782
|
+
* provideEffects(),
|
|
4783
|
+
* provideEntityData({ entityMetadata, pluralNames }, withEffects()),
|
|
4784
|
+
* ],
|
|
4785
|
+
* });
|
|
4786
|
+
* ```
|
|
4787
|
+
*
|
|
4788
|
+
* ### Providing entity data without effects
|
|
4789
|
+
*
|
|
4790
|
+
* When used without `withEffects` feature, the `provideEntityData` function is
|
|
4791
|
+
* an alternative to `EntityDataModuleWithoutEffects.forRoot`.
|
|
4792
|
+
*
|
|
4793
|
+
* ```ts
|
|
4794
|
+
* import { provideStore } from '@ngrx/store';
|
|
4795
|
+
* import { EntityMetadataMap, provideEntityData } from '@ngrx/data';
|
|
4796
|
+
*
|
|
4797
|
+
* const entityMetadata: EntityMetadataMap = {
|
|
4798
|
+
* Musician: {},
|
|
4799
|
+
* Song: {},
|
|
4800
|
+
* };
|
|
4801
|
+
*
|
|
4802
|
+
* bootstrapApplication(AppComponent, {
|
|
4803
|
+
* providers: [
|
|
4804
|
+
* provideStore(),
|
|
4805
|
+
* provideEntityData({ entityMetadata }),
|
|
4806
|
+
* ],
|
|
4807
|
+
* });
|
|
4808
|
+
* ```
|
|
4809
|
+
*
|
|
4810
|
+
*/
|
|
4811
|
+
function provideEntityData(config, ...features) {
|
|
4812
|
+
return makeEnvironmentProviders([
|
|
4813
|
+
BASE_ENTITY_DATA_PROVIDERS,
|
|
4814
|
+
provideEntityDataConfig(config),
|
|
4815
|
+
...features.map((feature) => feature.ɵproviders),
|
|
4816
|
+
]);
|
|
4817
|
+
}
|
|
4818
|
+
var EntityDataFeatureKind;
|
|
4819
|
+
(function (EntityDataFeatureKind) {
|
|
4820
|
+
EntityDataFeatureKind[EntityDataFeatureKind["WithEffects"] = 0] = "WithEffects";
|
|
4821
|
+
})(EntityDataFeatureKind || (EntityDataFeatureKind = {}));
|
|
4822
|
+
/**
|
|
4823
|
+
* Registers entity data effects and provides HTTP data services.
|
|
4824
|
+
*
|
|
4825
|
+
* @see `provideEntityData`
|
|
4826
|
+
*/
|
|
4827
|
+
function withEffects() {
|
|
4828
|
+
return {
|
|
4829
|
+
ɵkind: EntityDataFeatureKind.WithEffects,
|
|
4830
|
+
ɵproviders: [ENTITY_DATA_EFFECTS_PROVIDERS],
|
|
4831
|
+
};
|
|
4832
|
+
}
|
|
4833
|
+
|
|
4646
4834
|
/**
|
|
4647
4835
|
* Module without effects or dataservices which means no HTTP calls
|
|
4648
4836
|
* This module helpful for internal testing.
|
|
@@ -4650,131 +4838,22 @@ function guidComparer(l, r) {
|
|
|
4650
4838
|
* therefore opt-out of @ngrx/effects for entities
|
|
4651
4839
|
*/
|
|
4652
4840
|
class EntityDataModuleWithoutEffects {
|
|
4653
|
-
constructor(reducerManager, entityCacheReducerFactory, injector,
|
|
4654
|
-
// optional params
|
|
4655
|
-
entityCacheName, initialState, metaReducers) {
|
|
4656
|
-
this.reducerManager = reducerManager;
|
|
4657
|
-
this.injector = injector;
|
|
4658
|
-
this.entityCacheName = entityCacheName;
|
|
4659
|
-
this.initialState = initialState;
|
|
4660
|
-
this.metaReducers = metaReducers;
|
|
4661
|
-
// Add the @ngrx/data feature to the Store's features
|
|
4662
|
-
// as Store.forFeature does for StoreFeatureModule
|
|
4663
|
-
const key = entityCacheName || ENTITY_CACHE_NAME;
|
|
4664
|
-
initialState =
|
|
4665
|
-
typeof initialState === 'function' ? initialState() : initialState;
|
|
4666
|
-
const reducers = (metaReducers || []).map((mr) => {
|
|
4667
|
-
return mr instanceof InjectionToken ? injector.get(mr) : mr;
|
|
4668
|
-
});
|
|
4669
|
-
this.entityCacheFeature = {
|
|
4670
|
-
key,
|
|
4671
|
-
reducers: entityCacheReducerFactory.create(),
|
|
4672
|
-
reducerFactory: combineReducers,
|
|
4673
|
-
initialState: initialState || {},
|
|
4674
|
-
metaReducers: reducers,
|
|
4675
|
-
};
|
|
4676
|
-
reducerManager.addFeature(this.entityCacheFeature);
|
|
4677
|
-
}
|
|
4678
4841
|
static forRoot(config) {
|
|
4679
4842
|
return {
|
|
4680
4843
|
ngModule: EntityDataModuleWithoutEffects,
|
|
4681
|
-
providers: [
|
|
4682
|
-
{
|
|
4683
|
-
provide: ENTITY_CACHE_META_REDUCERS,
|
|
4684
|
-
useValue: config.entityCacheMetaReducers
|
|
4685
|
-
? config.entityCacheMetaReducers
|
|
4686
|
-
: [],
|
|
4687
|
-
},
|
|
4688
|
-
{
|
|
4689
|
-
provide: ENTITY_COLLECTION_META_REDUCERS,
|
|
4690
|
-
useValue: config.entityCollectionMetaReducers
|
|
4691
|
-
? config.entityCollectionMetaReducers
|
|
4692
|
-
: [],
|
|
4693
|
-
},
|
|
4694
|
-
{
|
|
4695
|
-
provide: PLURAL_NAMES_TOKEN,
|
|
4696
|
-
multi: true,
|
|
4697
|
-
useValue: config.pluralNames ? config.pluralNames : {},
|
|
4698
|
-
},
|
|
4699
|
-
],
|
|
4844
|
+
providers: [provideEntityDataConfig(config)],
|
|
4700
4845
|
};
|
|
4701
4846
|
}
|
|
4702
|
-
// eslint-disable-next-line @angular-eslint/contextual-lifecycle
|
|
4703
|
-
ngOnDestroy() {
|
|
4704
|
-
this.reducerManager.removeFeature(this.entityCacheFeature);
|
|
4705
|
-
}
|
|
4706
4847
|
}
|
|
4707
|
-
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4708
|
-
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4709
|
-
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4710
|
-
|
|
4711
|
-
EntityDispatcherDefaultOptions,
|
|
4712
|
-
EntityActionFactory,
|
|
4713
|
-
EntityCacheDispatcher,
|
|
4714
|
-
EntityCacheReducerFactory,
|
|
4715
|
-
entityCacheSelectorProvider,
|
|
4716
|
-
EntityCollectionCreator,
|
|
4717
|
-
EntityCollectionReducerFactory,
|
|
4718
|
-
EntityCollectionReducerMethodsFactory,
|
|
4719
|
-
EntityCollectionReducerRegistry,
|
|
4720
|
-
EntityCollectionServiceElementsFactory,
|
|
4721
|
-
EntityCollectionServiceFactory,
|
|
4722
|
-
EntityDefinitionService,
|
|
4723
|
-
EntityDispatcherFactory,
|
|
4724
|
-
EntitySelectorsFactory,
|
|
4725
|
-
EntitySelectors$Factory,
|
|
4726
|
-
EntityServicesElements,
|
|
4727
|
-
{ provide: ENTITY_CACHE_NAME_TOKEN, useValue: ENTITY_CACHE_NAME },
|
|
4728
|
-
{ provide: EntityServices, useClass: EntityServicesBase },
|
|
4729
|
-
{ provide: Logger, useClass: DefaultLogger },
|
|
4730
|
-
], imports: [StoreModule] });
|
|
4731
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EntityDataModuleWithoutEffects, decorators: [{
|
|
4848
|
+
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModuleWithoutEffects, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4849
|
+
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModuleWithoutEffects });
|
|
4850
|
+
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModuleWithoutEffects, providers: [BASE_ENTITY_DATA_PROVIDERS] });
|
|
4851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModuleWithoutEffects, decorators: [{
|
|
4732
4852
|
type: NgModule,
|
|
4733
4853
|
args: [{
|
|
4734
|
-
|
|
4735
|
-
StoreModule, // rely on Store feature providers rather than Store.forFeature()
|
|
4736
|
-
],
|
|
4737
|
-
providers: [
|
|
4738
|
-
CorrelationIdGenerator,
|
|
4739
|
-
EntityDispatcherDefaultOptions,
|
|
4740
|
-
EntityActionFactory,
|
|
4741
|
-
EntityCacheDispatcher,
|
|
4742
|
-
EntityCacheReducerFactory,
|
|
4743
|
-
entityCacheSelectorProvider,
|
|
4744
|
-
EntityCollectionCreator,
|
|
4745
|
-
EntityCollectionReducerFactory,
|
|
4746
|
-
EntityCollectionReducerMethodsFactory,
|
|
4747
|
-
EntityCollectionReducerRegistry,
|
|
4748
|
-
EntityCollectionServiceElementsFactory,
|
|
4749
|
-
EntityCollectionServiceFactory,
|
|
4750
|
-
EntityDefinitionService,
|
|
4751
|
-
EntityDispatcherFactory,
|
|
4752
|
-
EntitySelectorsFactory,
|
|
4753
|
-
EntitySelectors$Factory,
|
|
4754
|
-
EntityServicesElements,
|
|
4755
|
-
{ provide: ENTITY_CACHE_NAME_TOKEN, useValue: ENTITY_CACHE_NAME },
|
|
4756
|
-
{ provide: EntityServices, useClass: EntityServicesBase },
|
|
4757
|
-
{ provide: Logger, useClass: DefaultLogger },
|
|
4758
|
-
],
|
|
4854
|
+
providers: [BASE_ENTITY_DATA_PROVIDERS],
|
|
4759
4855
|
}]
|
|
4760
|
-
}]
|
|
4761
|
-
return [{ type: i1$1.ReducerManager }, { type: EntityCacheReducerFactory }, { type: i0.Injector }, { type: undefined, decorators: [{
|
|
4762
|
-
type: Optional
|
|
4763
|
-
}, {
|
|
4764
|
-
type: Inject,
|
|
4765
|
-
args: [ENTITY_CACHE_NAME_TOKEN]
|
|
4766
|
-
}] }, { type: undefined, decorators: [{
|
|
4767
|
-
type: Optional
|
|
4768
|
-
}, {
|
|
4769
|
-
type: Inject,
|
|
4770
|
-
args: [INITIAL_ENTITY_CACHE_STATE]
|
|
4771
|
-
}] }, { type: undefined, decorators: [{
|
|
4772
|
-
type: Optional
|
|
4773
|
-
}, {
|
|
4774
|
-
type: Inject,
|
|
4775
|
-
args: [ENTITY_CACHE_META_REDUCERS]
|
|
4776
|
-
}] }];
|
|
4777
|
-
} });
|
|
4856
|
+
}] });
|
|
4778
4857
|
|
|
4779
4858
|
/**
|
|
4780
4859
|
* entity-data main module includes effects and HTTP data services
|
|
@@ -4782,100 +4861,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
4782
4861
|
* No `forFeature` yet.
|
|
4783
4862
|
*/
|
|
4784
4863
|
class EntityDataModule {
|
|
4785
|
-
constructor(effectSources, entityCacheEffects, entityEffects) {
|
|
4786
|
-
this.effectSources = effectSources;
|
|
4787
|
-
// We can't use `forFeature()` because, if we did, the developer could not
|
|
4788
|
-
// replace the entity-data `EntityEffects` with a custom alternative.
|
|
4789
|
-
// Replacing that class is an extensibility point we need.
|
|
4790
|
-
//
|
|
4791
|
-
// The FEATURE_EFFECTS token is not exposed, so can't use that technique.
|
|
4792
|
-
// Warning: this alternative approach relies on an undocumented API
|
|
4793
|
-
// to add effect directly rather than through `forFeature()`.
|
|
4794
|
-
// The danger is that EffectsModule.forFeature evolves and we no longer perform a crucial step.
|
|
4795
|
-
this.addEffects(entityCacheEffects);
|
|
4796
|
-
this.addEffects(entityEffects);
|
|
4797
|
-
}
|
|
4798
4864
|
static forRoot(config) {
|
|
4799
4865
|
return {
|
|
4800
4866
|
ngModule: EntityDataModule,
|
|
4801
|
-
providers: [
|
|
4802
|
-
// TODO: Moved these effects classes up to EntityDataModule itself
|
|
4803
|
-
// Remove this comment if that was a mistake.
|
|
4804
|
-
// EntityCacheEffects,
|
|
4805
|
-
// EntityEffects,
|
|
4806
|
-
{
|
|
4807
|
-
provide: ENTITY_METADATA_TOKEN,
|
|
4808
|
-
multi: true,
|
|
4809
|
-
useValue: config.entityMetadata ? config.entityMetadata : [],
|
|
4810
|
-
},
|
|
4811
|
-
{
|
|
4812
|
-
provide: ENTITY_CACHE_META_REDUCERS,
|
|
4813
|
-
useValue: config.entityCacheMetaReducers
|
|
4814
|
-
? config.entityCacheMetaReducers
|
|
4815
|
-
: [],
|
|
4816
|
-
},
|
|
4817
|
-
{
|
|
4818
|
-
provide: ENTITY_COLLECTION_META_REDUCERS,
|
|
4819
|
-
useValue: config.entityCollectionMetaReducers
|
|
4820
|
-
? config.entityCollectionMetaReducers
|
|
4821
|
-
: [],
|
|
4822
|
-
},
|
|
4823
|
-
{
|
|
4824
|
-
provide: PLURAL_NAMES_TOKEN,
|
|
4825
|
-
multi: true,
|
|
4826
|
-
useValue: config.pluralNames ? config.pluralNames : {},
|
|
4827
|
-
},
|
|
4828
|
-
],
|
|
4867
|
+
providers: [provideEntityDataConfig(config)],
|
|
4829
4868
|
};
|
|
4830
4869
|
}
|
|
4831
|
-
/**
|
|
4832
|
-
* Add another class instance that contains effects.
|
|
4833
|
-
* @param effectSourceInstance a class instance that implements effects.
|
|
4834
|
-
* Warning: undocumented @ngrx/effects API
|
|
4835
|
-
*/
|
|
4836
|
-
addEffects(effectSourceInstance) {
|
|
4837
|
-
this.effectSources.addEffects(effectSourceInstance);
|
|
4838
|
-
}
|
|
4839
4870
|
}
|
|
4840
|
-
/** @nocollapse */ EntityDataModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4841
|
-
/** @nocollapse */ EntityDataModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
DefaultDataServiceFactory,
|
|
4845
|
-
EntityCacheDataService,
|
|
4846
|
-
EntityDataService,
|
|
4847
|
-
EntityCacheEffects,
|
|
4848
|
-
EntityEffects,
|
|
4849
|
-
{ provide: HttpUrlGenerator, useClass: DefaultHttpUrlGenerator },
|
|
4850
|
-
{
|
|
4851
|
-
provide: PersistenceResultHandler,
|
|
4852
|
-
useClass: DefaultPersistenceResultHandler,
|
|
4853
|
-
},
|
|
4854
|
-
{ provide: Pluralizer, useClass: DefaultPluralizer },
|
|
4855
|
-
], imports: [EntityDataModuleWithoutEffects,
|
|
4856
|
-
EffectsModule] });
|
|
4857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: EntityDataModule, decorators: [{
|
|
4871
|
+
/** @nocollapse */ EntityDataModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4872
|
+
/** @nocollapse */ EntityDataModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModule, imports: [EntityDataModuleWithoutEffects] });
|
|
4873
|
+
/** @nocollapse */ EntityDataModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModule, providers: [ENTITY_DATA_EFFECTS_PROVIDERS], imports: [EntityDataModuleWithoutEffects] });
|
|
4874
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModule, decorators: [{
|
|
4858
4875
|
type: NgModule,
|
|
4859
4876
|
args: [{
|
|
4860
|
-
imports: [
|
|
4861
|
-
|
|
4862
|
-
EffectsModule, // do not supply effects because can't replace later
|
|
4863
|
-
],
|
|
4864
|
-
providers: [
|
|
4865
|
-
DefaultDataServiceFactory,
|
|
4866
|
-
EntityCacheDataService,
|
|
4867
|
-
EntityDataService,
|
|
4868
|
-
EntityCacheEffects,
|
|
4869
|
-
EntityEffects,
|
|
4870
|
-
{ provide: HttpUrlGenerator, useClass: DefaultHttpUrlGenerator },
|
|
4871
|
-
{
|
|
4872
|
-
provide: PersistenceResultHandler,
|
|
4873
|
-
useClass: DefaultPersistenceResultHandler,
|
|
4874
|
-
},
|
|
4875
|
-
{ provide: Pluralizer, useClass: DefaultPluralizer },
|
|
4876
|
-
],
|
|
4877
|
+
imports: [EntityDataModuleWithoutEffects],
|
|
4878
|
+
providers: [ENTITY_DATA_EFFECTS_PROVIDERS],
|
|
4877
4879
|
}]
|
|
4878
|
-
}]
|
|
4880
|
+
}] });
|
|
4879
4881
|
|
|
4880
4882
|
// actions
|
|
4881
4883
|
|
|
@@ -4889,5 +4891,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImpor
|
|
|
4889
4891
|
* Generated bundle index. Do not edit.
|
|
4890
4892
|
*/
|
|
4891
4893
|
|
|
4892
|
-
export { ChangeSetItemFactory, ChangeSetOperation, ChangeType, ClearCollections, CorrelationIdGenerator, DataServiceError, DefaultDataService, DefaultDataServiceConfig, DefaultDataServiceFactory, DefaultHttpUrlGenerator, DefaultLogger, DefaultPersistenceResultHandler, DefaultPluralizer, ENTITY_CACHE_META_REDUCERS, ENTITY_CACHE_NAME, ENTITY_CACHE_NAME_TOKEN, ENTITY_CACHE_SELECTOR_TOKEN, ENTITY_COLLECTION_META_REDUCERS, ENTITY_METADATA_TOKEN, EntityActionFactory, EntityActionGuard, EntityCacheAction, EntityCacheDataService, EntityCacheDispatcher, EntityCacheEffects, EntityCacheReducerFactory, EntityChangeTrackerBase, EntityCollectionCreator, EntityCollectionReducerFactory, EntityCollectionReducerMethods, EntityCollectionReducerMethodsFactory, EntityCollectionReducerRegistry, EntityCollectionServiceBase, EntityCollectionServiceElementsFactory, EntityCollectionServiceFactory, EntityDataModule, EntityDataModuleWithoutEffects, EntityDataService, EntityDefinitionService, EntityDispatcherBase, EntityDispatcherDefaultOptions, EntityDispatcherFactory, EntityEffects, EntityHttpResourceUrls, EntityOp, EntitySelectors$Factory, EntitySelectorsFactory, EntityServices, EntityServicesBase, EntityServicesElements, HttpUrlGenerator, INITIAL_ENTITY_CACHE_STATE, LoadCollections, Logger, MergeQuerySet, MergeStrategy, OP_ERROR, OP_SUCCESS, PLURAL_NAMES_TOKEN, PersistanceCanceled, PersistenceResultHandler, Pluralizer, PropsFilterFnFactory, SaveEntities, SaveEntitiesCancel, SaveEntitiesCanceled, SaveEntitiesError, SaveEntitiesSuccess, SetEntityCache, changeSetItemFactory, createEmptyEntityCollection, createEntityCacheSelector, createEntityDefinition, defaultSelectId, entityCacheSelectorProvider, excludeEmptyChangeSetItems, flattenArgs, getGuid, getGuidComb, guidComparer, makeErrorOp, makeSuccessOp, normalizeRoot, ofEntityOp, ofEntityType, persistOps, toUpdateFactory };
|
|
4894
|
+
export { ChangeSetItemFactory, ChangeSetOperation, ChangeType, ClearCollections, CorrelationIdGenerator, DataServiceError, DefaultDataService, DefaultDataServiceConfig, DefaultDataServiceFactory, DefaultHttpUrlGenerator, DefaultLogger, DefaultPersistenceResultHandler, DefaultPluralizer, ENTITY_CACHE_META_REDUCERS, ENTITY_CACHE_NAME, ENTITY_CACHE_NAME_TOKEN, ENTITY_CACHE_SELECTOR_TOKEN, ENTITY_COLLECTION_META_REDUCERS, ENTITY_METADATA_TOKEN, EntityActionFactory, EntityActionGuard, EntityCacheAction, EntityCacheDataService, EntityCacheDispatcher, EntityCacheEffects, EntityCacheReducerFactory, EntityChangeTrackerBase, EntityCollectionCreator, EntityCollectionReducerFactory, EntityCollectionReducerMethods, EntityCollectionReducerMethodsFactory, EntityCollectionReducerRegistry, EntityCollectionServiceBase, EntityCollectionServiceElementsFactory, EntityCollectionServiceFactory, EntityDataModule, EntityDataModuleWithoutEffects, EntityDataService, EntityDefinitionService, EntityDispatcherBase, EntityDispatcherDefaultOptions, EntityDispatcherFactory, EntityEffects, EntityHttpResourceUrls, EntityOp, EntitySelectors$Factory, EntitySelectorsFactory, EntityServices, EntityServicesBase, EntityServicesElements, HttpUrlGenerator, INITIAL_ENTITY_CACHE_STATE, LoadCollections, Logger, MergeQuerySet, MergeStrategy, OP_ERROR, OP_SUCCESS, PLURAL_NAMES_TOKEN, PersistanceCanceled, PersistenceResultHandler, Pluralizer, PropsFilterFnFactory, SaveEntities, SaveEntitiesCancel, SaveEntitiesCanceled, SaveEntitiesError, SaveEntitiesSuccess, SetEntityCache, changeSetItemFactory, createEmptyEntityCollection, createEntityCacheSelector, createEntityDefinition, defaultSelectId, entityCacheSelectorProvider, excludeEmptyChangeSetItems, flattenArgs, getGuid, getGuidComb, guidComparer, makeErrorOp, makeSuccessOp, normalizeRoot, ofEntityOp, ofEntityType, persistOps, provideEntityData, toUpdateFactory, withEffects };
|
|
4893
4895
|
//# sourceMappingURL=ngrx-data.mjs.map
|