@ngrx/data 13.0.2 → 14.0.0-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/esm2020/src/actions/entity-action-factory.mjs +4 -4
- package/esm2020/src/dataservices/default-data-service-config.mjs +1 -1
- package/esm2020/src/dataservices/default-data.service.mjs +9 -8
- package/esm2020/src/dataservices/entity-cache-data.service.mjs +7 -7
- package/esm2020/src/dataservices/entity-data.service.mjs +4 -4
- package/esm2020/src/dataservices/http-url-generator.mjs +9 -8
- package/esm2020/src/dataservices/persistence-result-handler.service.mjs +4 -4
- package/esm2020/src/dispatchers/entity-cache-dispatcher.mjs +6 -6
- package/esm2020/src/dispatchers/entity-dispatcher-base.mjs +3 -3
- package/esm2020/src/dispatchers/entity-dispatcher-default-options.mjs +4 -4
- package/esm2020/src/dispatchers/entity-dispatcher-factory.mjs +4 -4
- package/esm2020/src/effects/entity-cache-effects.mjs +4 -4
- package/esm2020/src/effects/entity-effects.mjs +4 -4
- package/esm2020/src/entity-data-without-effects.module.mjs +6 -8
- package/esm2020/src/entity-data.module.mjs +7 -9
- package/esm2020/src/entity-metadata/entity-definition.service.mjs +4 -4
- package/esm2020/src/entity-services/entity-collection-service-base.mjs +1 -1
- package/esm2020/src/entity-services/entity-collection-service-elements-factory.mjs +4 -4
- package/esm2020/src/entity-services/entity-collection-service-factory.mjs +4 -4
- package/esm2020/src/entity-services/entity-services-base.mjs +4 -4
- package/esm2020/src/entity-services/entity-services-elements.mjs +4 -4
- package/esm2020/src/entity-services/entity-services.mjs +1 -1
- package/esm2020/src/reducers/entity-cache-reducer.mjs +4 -4
- package/esm2020/src/reducers/entity-collection-creator.mjs +4 -4
- package/esm2020/src/reducers/entity-collection-reducer-methods.mjs +4 -4
- package/esm2020/src/reducers/entity-collection-reducer-registry.mjs +4 -4
- package/esm2020/src/reducers/entity-collection-reducer.mjs +4 -4
- package/esm2020/src/selectors/entity-selectors$.mjs +5 -5
- package/esm2020/src/selectors/entity-selectors.mjs +4 -4
- package/esm2020/src/utils/correlation-id-generator.mjs +4 -4
- package/esm2020/src/utils/default-logger.mjs +4 -4
- package/esm2020/src/utils/default-pluralizer.mjs +5 -5
- package/fesm2015/ngrx-data.mjs +109 -110
- package/fesm2015/ngrx-data.mjs.map +1 -1
- package/fesm2020/ngrx-data.mjs +109 -110
- package/fesm2020/ngrx-data.mjs.map +1 -1
- package/package.json +11 -10
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics-core/index.js +5 -1
- package/schematics-core/index.js.map +1 -1
- package/schematics-core/utility/ast-utils.js +26 -26
- package/schematics-core/utility/ast-utils.js.map +1 -1
- package/schematics-core/utility/change.js +7 -7
- package/schematics-core/utility/change.js.map +1 -1
- package/schematics-core/utility/config.js +1 -1
- package/schematics-core/utility/config.js.map +1 -1
- package/schematics-core/utility/find-component.js +4 -4
- package/schematics-core/utility/find-component.js.map +1 -1
- package/schematics-core/utility/find-module.js +4 -4
- package/schematics-core/utility/find-module.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/ngrx-utils.js +19 -21
- package/schematics-core/utility/ngrx-utils.js.map +1 -1
- package/schematics-core/utility/project.js +3 -3
- package/schematics-core/utility/project.js.map +1 -1
- package/schematics-core/utility/strings.js +5 -5
- package/schematics-core/utility/strings.js.map +1 -1
- package/schematics-core/utility/update.js +2 -2
- package/schematics-core/utility/update.js.map +1 -1
- package/src/dataservices/default-data-service-config.d.ts +2 -0
- package/src/dataservices/default-data.service.d.ts +1 -0
- package/src/dataservices/http-url-generator.d.ts +3 -3
- package/ngrx-data.d.ts +0 -5
package/fesm2015/ngrx-data.mjs
CHANGED
|
@@ -48,9 +48,9 @@ class EntityActionFactory {
|
|
|
48
48
|
// return `${op} [${tag}]`.toUpperCase(); // example of an alternative
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
/** @nocollapse */
|
|
52
|
-
/** @nocollapse */
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
51
|
+
/** @nocollapse */ EntityActionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityActionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
52
|
+
/** @nocollapse */ EntityActionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityActionFactory });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityActionFactory, decorators: [{
|
|
54
54
|
type: Injectable
|
|
55
55
|
}] });
|
|
56
56
|
|
|
@@ -615,10 +615,10 @@ class DefaultHttpUrlGenerator {
|
|
|
615
615
|
* @param entityName {string} Name of the entity type, e.g, 'Hero'
|
|
616
616
|
* @param root {string} Root path to the resource, e.g., 'some-api`
|
|
617
617
|
*/
|
|
618
|
-
getResourceUrls(entityName, root) {
|
|
618
|
+
getResourceUrls(entityName, root, trailingSlashEndpoints = false) {
|
|
619
619
|
let resourceUrls = this.knownHttpResourceUrls[entityName];
|
|
620
620
|
if (!resourceUrls) {
|
|
621
|
-
const nRoot = normalizeRoot(root);
|
|
621
|
+
const nRoot = trailingSlashEndpoints ? root : normalizeRoot(root);
|
|
622
622
|
resourceUrls = {
|
|
623
623
|
entityResourceUrl: `${nRoot}/${entityName}/`.toLowerCase(),
|
|
624
624
|
collectionResourceUrl: `${nRoot}/${this.pluralizer.pluralize(entityName)}/`.toLowerCase(),
|
|
@@ -633,8 +633,9 @@ class DefaultHttpUrlGenerator {
|
|
|
633
633
|
* @param root {string} Root path to the resource, e.g., 'some-api`
|
|
634
634
|
* @returns complete path to resource, e.g, 'some-api/hero'
|
|
635
635
|
*/
|
|
636
|
-
entityResource(entityName, root) {
|
|
637
|
-
return this.getResourceUrls(entityName, root)
|
|
636
|
+
entityResource(entityName, root, trailingSlashEndpoints) {
|
|
637
|
+
return this.getResourceUrls(entityName, root, trailingSlashEndpoints)
|
|
638
|
+
.entityResourceUrl;
|
|
638
639
|
}
|
|
639
640
|
/**
|
|
640
641
|
* Create the path to a multiple entity (collection) resource
|
|
@@ -655,9 +656,9 @@ class DefaultHttpUrlGenerator {
|
|
|
655
656
|
this.knownHttpResourceUrls = Object.assign(Object.assign({}, this.knownHttpResourceUrls), (entityHttpResourceUrls || {}));
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
|
-
/** @nocollapse */
|
|
659
|
-
/** @nocollapse */
|
|
660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
659
|
+
/** @nocollapse */ DefaultHttpUrlGenerator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultHttpUrlGenerator, deps: [{ token: Pluralizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
660
|
+
/** @nocollapse */ DefaultHttpUrlGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultHttpUrlGenerator });
|
|
661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultHttpUrlGenerator, decorators: [{
|
|
661
662
|
type: Injectable
|
|
662
663
|
}], ctorParameters: function () { return [{ type: Pluralizer }]; } });
|
|
663
664
|
/** Remove leading & trailing spaces or slashes */
|
|
@@ -677,11 +678,12 @@ class DefaultDataService {
|
|
|
677
678
|
this.getDelay = 0;
|
|
678
679
|
this.saveDelay = 0;
|
|
679
680
|
this.timeout = 0;
|
|
681
|
+
this.trailingSlashEndpoints = false;
|
|
680
682
|
this._name = `${entityName} DefaultDataService`;
|
|
681
683
|
this.entityName = entityName;
|
|
682
|
-
const { root = 'api', delete404OK = true, getDelay = 0, saveDelay = 0, timeout: to = 0, } = config || {};
|
|
684
|
+
const { root = 'api', delete404OK = true, getDelay = 0, saveDelay = 0, timeout: to = 0, trailingSlashEndpoints = false, } = config || {};
|
|
683
685
|
this.delete404OK = delete404OK;
|
|
684
|
-
this.entityUrl = httpUrlGenerator.entityResource(entityName, root);
|
|
686
|
+
this.entityUrl = httpUrlGenerator.entityResource(entityName, root, trailingSlashEndpoints);
|
|
685
687
|
this.entitiesUrl = httpUrlGenerator.collectionResource(entityName, root);
|
|
686
688
|
this.getDelay = getDelay;
|
|
687
689
|
this.saveDelay = saveDelay;
|
|
@@ -771,7 +773,7 @@ class DefaultDataService {
|
|
|
771
773
|
}
|
|
772
774
|
default: {
|
|
773
775
|
const error = new Error('Unimplemented HTTP method, ' + method);
|
|
774
|
-
result$ = throwError(error);
|
|
776
|
+
result$ = throwError(() => error);
|
|
775
777
|
}
|
|
776
778
|
}
|
|
777
779
|
if (this.timeout) {
|
|
@@ -786,7 +788,7 @@ class DefaultDataService {
|
|
|
786
788
|
return ok;
|
|
787
789
|
}
|
|
788
790
|
const error = new DataServiceError(err, reqData);
|
|
789
|
-
return throwError(error);
|
|
791
|
+
return throwError(() => error);
|
|
790
792
|
};
|
|
791
793
|
}
|
|
792
794
|
handleDelete404(error, reqData) {
|
|
@@ -819,9 +821,9 @@ class DefaultDataServiceFactory {
|
|
|
819
821
|
return new DefaultDataService(entityName, this.http, this.httpUrlGenerator, this.config);
|
|
820
822
|
}
|
|
821
823
|
}
|
|
822
|
-
/** @nocollapse */
|
|
823
|
-
/** @nocollapse */
|
|
824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
824
|
+
/** @nocollapse */ DefaultDataServiceFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", 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: "14.0.0-rc.1", ngImport: i0, type: DefaultDataServiceFactory });
|
|
826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultDataServiceFactory, decorators: [{
|
|
825
827
|
type: Injectable
|
|
826
828
|
}], ctorParameters: function () {
|
|
827
829
|
return [{ type: i1.HttpClient }, { type: HttpUrlGenerator }, { type: DefaultDataServiceConfig, decorators: [{
|
|
@@ -933,9 +935,9 @@ class EntityDefinitionService {
|
|
|
933
935
|
Object.assign(this.definitions, definitions);
|
|
934
936
|
}
|
|
935
937
|
}
|
|
936
|
-
/** @nocollapse */
|
|
937
|
-
/** @nocollapse */
|
|
938
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
938
|
+
/** @nocollapse */ EntityDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", 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: "14.0.0-rc.1", ngImport: i0, type: EntityDefinitionService });
|
|
940
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDefinitionService, decorators: [{
|
|
939
941
|
type: Injectable
|
|
940
942
|
}], ctorParameters: function () {
|
|
941
943
|
return [{ type: undefined, decorators: [{
|
|
@@ -993,7 +995,7 @@ class EntityCacheDataService {
|
|
|
993
995
|
handleError(reqData) {
|
|
994
996
|
return (err) => {
|
|
995
997
|
const error = new DataServiceError(err, reqData);
|
|
996
|
-
return throwError(error);
|
|
998
|
+
return throwError(() => error);
|
|
997
999
|
};
|
|
998
1000
|
}
|
|
999
1001
|
/**
|
|
@@ -1062,16 +1064,16 @@ class EntityCacheDataService {
|
|
|
1062
1064
|
getIdSelector(entityName) {
|
|
1063
1065
|
let idSelector = this.idSelectors[entityName];
|
|
1064
1066
|
if (!idSelector) {
|
|
1065
|
-
idSelector =
|
|
1066
|
-
.selectId;
|
|
1067
|
+
idSelector =
|
|
1068
|
+
this.entityDefinitionService.getDefinition(entityName).selectId;
|
|
1067
1069
|
this.idSelectors[entityName] = idSelector;
|
|
1068
1070
|
}
|
|
1069
1071
|
return idSelector;
|
|
1070
1072
|
}
|
|
1071
1073
|
}
|
|
1072
|
-
/** @nocollapse */
|
|
1073
|
-
/** @nocollapse */
|
|
1074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1074
|
+
/** @nocollapse */ EntityCacheDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", 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: "14.0.0-rc.1", ngImport: i0, type: EntityCacheDataService });
|
|
1076
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheDataService, decorators: [{
|
|
1075
1077
|
type: Injectable
|
|
1076
1078
|
}], ctorParameters: function () {
|
|
1077
1079
|
return [{ type: EntityDefinitionService }, { type: i1.HttpClient }, { type: DefaultDataServiceConfig, decorators: [{
|
|
@@ -1133,9 +1135,9 @@ class EntityDataService {
|
|
|
1133
1135
|
this.services = Object.assign(Object.assign({}, this.services), services);
|
|
1134
1136
|
}
|
|
1135
1137
|
}
|
|
1136
|
-
/** @nocollapse */
|
|
1137
|
-
/** @nocollapse */
|
|
1138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1138
|
+
/** @nocollapse */ EntityDataService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataService, deps: [{ token: DefaultDataServiceFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1139
|
+
/** @nocollapse */ EntityDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataService });
|
|
1140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataService, decorators: [{
|
|
1139
1141
|
type: Injectable
|
|
1140
1142
|
}], ctorParameters: function () { return [{ type: DefaultDataServiceFactory }]; } });
|
|
1141
1143
|
|
|
@@ -1176,9 +1178,9 @@ class DefaultPersistenceResultHandler {
|
|
|
1176
1178
|
};
|
|
1177
1179
|
}
|
|
1178
1180
|
}
|
|
1179
|
-
/** @nocollapse */
|
|
1180
|
-
/** @nocollapse */
|
|
1181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1181
|
+
/** @nocollapse */ DefaultPersistenceResultHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPersistenceResultHandler, deps: [{ token: Logger }, { token: EntityActionFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1182
|
+
/** @nocollapse */ DefaultPersistenceResultHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPersistenceResultHandler });
|
|
1183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPersistenceResultHandler, decorators: [{
|
|
1182
1184
|
type: Injectable
|
|
1183
1185
|
}], ctorParameters: function () { return [{ type: Logger }, { type: EntityActionFactory }]; } });
|
|
1184
1186
|
|
|
@@ -1214,9 +1216,9 @@ class CorrelationIdGenerator {
|
|
|
1214
1216
|
return this.prefix + this.seed;
|
|
1215
1217
|
}
|
|
1216
1218
|
}
|
|
1217
|
-
/** @nocollapse */
|
|
1218
|
-
/** @nocollapse */
|
|
1219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1219
|
+
/** @nocollapse */ CorrelationIdGenerator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: CorrelationIdGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1220
|
+
/** @nocollapse */ CorrelationIdGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: CorrelationIdGenerator });
|
|
1221
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: CorrelationIdGenerator, decorators: [{
|
|
1220
1222
|
type: Injectable
|
|
1221
1223
|
}] });
|
|
1222
1224
|
|
|
@@ -1242,9 +1244,9 @@ class EntityDispatcherDefaultOptions {
|
|
|
1242
1244
|
this.optimisticSaveEntities = false;
|
|
1243
1245
|
}
|
|
1244
1246
|
}
|
|
1245
|
-
/** @nocollapse */
|
|
1246
|
-
/** @nocollapse */
|
|
1247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1247
|
+
/** @nocollapse */ EntityDispatcherDefaultOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherDefaultOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1248
|
+
/** @nocollapse */ EntityDispatcherDefaultOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherDefaultOptions });
|
|
1249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherDefaultOptions, decorators: [{
|
|
1248
1250
|
type: Injectable
|
|
1249
1251
|
}] });
|
|
1250
1252
|
|
|
@@ -1384,16 +1386,16 @@ class EntityCacheDispatcher {
|
|
|
1384
1386
|
act.type === EntityCacheAction.SAVE_ENTITIES_ERROR ||
|
|
1385
1387
|
act.type === EntityCacheAction.SAVE_ENTITIES_CANCEL), filter((act) => crid === act.payload.correlationId), take(1), mergeMap((act) => {
|
|
1386
1388
|
return act.type === EntityCacheAction.SAVE_ENTITIES_CANCEL
|
|
1387
|
-
? throwError(new PersistanceCanceled(act.payload.reason))
|
|
1389
|
+
? throwError(() => new PersistanceCanceled(act.payload.reason))
|
|
1388
1390
|
: act.type === EntityCacheAction.SAVE_ENTITIES_SUCCESS
|
|
1389
1391
|
? of(act.payload.changeSet)
|
|
1390
|
-
: throwError(act.payload);
|
|
1392
|
+
: throwError(() => act.payload);
|
|
1391
1393
|
}));
|
|
1392
1394
|
}
|
|
1393
1395
|
}
|
|
1394
|
-
/** @nocollapse */
|
|
1395
|
-
/** @nocollapse */
|
|
1396
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1396
|
+
/** @nocollapse */ EntityCacheDispatcher.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheDispatcher, deps: [{ token: CorrelationIdGenerator }, { token: EntityDispatcherDefaultOptions }, { token: ScannedActionsSubject }, { token: i1$1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1397
|
+
/** @nocollapse */ EntityCacheDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheDispatcher });
|
|
1398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheDispatcher, decorators: [{
|
|
1397
1399
|
type: Injectable
|
|
1398
1400
|
}], ctorParameters: function () {
|
|
1399
1401
|
return [{ type: CorrelationIdGenerator }, { type: EntityDispatcherDefaultOptions }, { type: i4.Observable, decorators: [{
|
|
@@ -1771,10 +1773,10 @@ class EntityDispatcherBase {
|
|
|
1771
1773
|
}), take(1), mergeMap((act) => {
|
|
1772
1774
|
const { entityOp } = act.payload;
|
|
1773
1775
|
return entityOp === EntityOp.CANCEL_PERSIST
|
|
1774
|
-
? throwError(new PersistanceCanceled(act.payload.data))
|
|
1776
|
+
? throwError(() => new PersistanceCanceled(act.payload.data))
|
|
1775
1777
|
: entityOp.endsWith(OP_SUCCESS)
|
|
1776
1778
|
? of(act.payload.data)
|
|
1777
|
-
: throwError(act.payload.data.error);
|
|
1779
|
+
: throwError(() => act.payload.data.error);
|
|
1778
1780
|
}));
|
|
1779
1781
|
}
|
|
1780
1782
|
setQueryEntityActionOptions(options) {
|
|
@@ -1851,9 +1853,9 @@ class EntityDispatcherFactory {
|
|
|
1851
1853
|
this.raSubscription.unsubscribe();
|
|
1852
1854
|
}
|
|
1853
1855
|
}
|
|
1854
|
-
/** @nocollapse */
|
|
1855
|
-
/** @nocollapse */
|
|
1856
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1856
|
+
/** @nocollapse */ EntityDispatcherFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherFactory, deps: [{ token: EntityActionFactory }, { token: i1$1.Store }, { token: EntityDispatcherDefaultOptions }, { token: ScannedActionsSubject }, { token: ENTITY_CACHE_SELECTOR_TOKEN }, { token: CorrelationIdGenerator }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1857
|
+
/** @nocollapse */ EntityDispatcherFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherFactory });
|
|
1858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherFactory, decorators: [{
|
|
1857
1859
|
type: Injectable
|
|
1858
1860
|
}], ctorParameters: function () {
|
|
1859
1861
|
return [{ type: EntityActionFactory }, { type: i1$1.Store }, { type: EntityDispatcherDefaultOptions }, { type: i4.Observable, decorators: [{
|
|
@@ -1959,9 +1961,9 @@ class EntityCacheEffects {
|
|
|
1959
1961
|
};
|
|
1960
1962
|
}
|
|
1961
1963
|
}
|
|
1962
|
-
/** @nocollapse */
|
|
1963
|
-
/** @nocollapse */
|
|
1964
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1964
|
+
/** @nocollapse */ EntityCacheEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheEffects, deps: [{ token: i1$2.Actions }, { token: EntityCacheDataService }, { token: EntityActionFactory }, { token: Logger }, { token: ENTITY_EFFECTS_SCHEDULER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1965
|
+
/** @nocollapse */ EntityCacheEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheEffects });
|
|
1966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheEffects, decorators: [{
|
|
1965
1967
|
type: Injectable
|
|
1966
1968
|
}], ctorParameters: function () {
|
|
1967
1969
|
return [{ type: i1$2.Actions }, { type: EntityCacheDataService }, { type: EntityActionFactory }, { type: Logger }, { type: undefined, decorators: [{
|
|
@@ -2097,9 +2099,9 @@ class EntityEffects {
|
|
|
2097
2099
|
return of(successAction).pipe(delay(this.responseDelay, this.scheduler || asyncScheduler));
|
|
2098
2100
|
}
|
|
2099
2101
|
}
|
|
2100
|
-
/** @nocollapse */
|
|
2101
|
-
/** @nocollapse */
|
|
2102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2102
|
+
/** @nocollapse */ EntityEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityEffects, deps: [{ token: i1$2.Actions }, { token: EntityDataService }, { token: EntityActionFactory }, { token: PersistenceResultHandler }, { token: ENTITY_EFFECTS_SCHEDULER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2103
|
+
/** @nocollapse */ EntityEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityEffects });
|
|
2104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityEffects, decorators: [{
|
|
2103
2105
|
type: Injectable
|
|
2104
2106
|
}], ctorParameters: function () {
|
|
2105
2107
|
return [{ type: i1$2.Actions }, { type: EntityDataService }, { type: EntityActionFactory }, { type: PersistenceResultHandler }, { type: undefined, decorators: [{
|
|
@@ -2408,9 +2410,9 @@ class EntityCollectionCreator {
|
|
|
2408
2410
|
return (initialState || createEmptyEntityCollection(entityName));
|
|
2409
2411
|
}
|
|
2410
2412
|
}
|
|
2411
|
-
/** @nocollapse */
|
|
2412
|
-
/** @nocollapse */
|
|
2413
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2413
|
+
/** @nocollapse */ EntityCollectionCreator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionCreator, deps: [{ token: EntityDefinitionService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2414
|
+
/** @nocollapse */ EntityCollectionCreator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionCreator });
|
|
2415
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionCreator, decorators: [{
|
|
2414
2416
|
type: Injectable
|
|
2415
2417
|
}], ctorParameters: function () {
|
|
2416
2418
|
return [{ type: EntityDefinitionService, decorators: [{
|
|
@@ -2498,9 +2500,9 @@ class EntitySelectorsFactory {
|
|
|
2498
2500
|
selectCollection, selectEntityCache: this.selectEntityCache }, entitySelectors);
|
|
2499
2501
|
}
|
|
2500
2502
|
}
|
|
2501
|
-
/** @nocollapse */
|
|
2502
|
-
/** @nocollapse */
|
|
2503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2503
|
+
/** @nocollapse */ EntitySelectorsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectorsFactory, deps: [{ token: EntityCollectionCreator, optional: true }, { token: ENTITY_CACHE_SELECTOR_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2504
|
+
/** @nocollapse */ EntitySelectorsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectorsFactory });
|
|
2505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectorsFactory, decorators: [{
|
|
2504
2506
|
type: Injectable
|
|
2505
2507
|
}], ctorParameters: function () {
|
|
2506
2508
|
return [{ type: EntityCollectionCreator, decorators: [{
|
|
@@ -2539,7 +2541,7 @@ class EntitySelectors$Factory {
|
|
|
2539
2541
|
if (name.startsWith('select')) {
|
|
2540
2542
|
// strip 'select' prefix from the selector fn name and append `$`
|
|
2541
2543
|
// Ex: 'selectEntities' => 'entities$'
|
|
2542
|
-
const name$ = name[6].toLowerCase() + name.
|
|
2544
|
+
const name$ = name[6].toLowerCase() + name.substring(7) + '$';
|
|
2543
2545
|
selectors$[name$] = this.store.select(selectors[name]);
|
|
2544
2546
|
}
|
|
2545
2547
|
});
|
|
@@ -2548,9 +2550,9 @@ class EntitySelectors$Factory {
|
|
|
2548
2550
|
return selectors$;
|
|
2549
2551
|
}
|
|
2550
2552
|
}
|
|
2551
|
-
/** @nocollapse */
|
|
2552
|
-
/** @nocollapse */
|
|
2553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2553
|
+
/** @nocollapse */ EntitySelectors$Factory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectors$Factory, deps: [{ token: i1$1.Store }, { token: i1$2.Actions }, { token: ENTITY_CACHE_SELECTOR_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2554
|
+
/** @nocollapse */ EntitySelectors$Factory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectors$Factory });
|
|
2555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectors$Factory, decorators: [{
|
|
2554
2556
|
type: Injectable
|
|
2555
2557
|
}], ctorParameters: function () {
|
|
2556
2558
|
return [{ type: i1$1.Store }, { type: i1$2.Actions }, { type: undefined, decorators: [{
|
|
@@ -2585,9 +2587,9 @@ class EntityCollectionServiceElementsFactory {
|
|
|
2585
2587
|
};
|
|
2586
2588
|
}
|
|
2587
2589
|
}
|
|
2588
|
-
/** @nocollapse */
|
|
2589
|
-
/** @nocollapse */
|
|
2590
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2590
|
+
/** @nocollapse */ EntityCollectionServiceElementsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceElementsFactory, deps: [{ token: EntityDispatcherFactory }, { token: EntityDefinitionService }, { token: EntitySelectorsFactory }, { token: EntitySelectors$Factory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2591
|
+
/** @nocollapse */ EntityCollectionServiceElementsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceElementsFactory });
|
|
2592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceElementsFactory, decorators: [{
|
|
2591
2593
|
type: Injectable
|
|
2592
2594
|
}], ctorParameters: function () { return [{ type: EntityDispatcherFactory }, { type: EntityDefinitionService }, { type: EntitySelectorsFactory }, { type: EntitySelectors$Factory }]; } });
|
|
2593
2595
|
|
|
@@ -2609,9 +2611,9 @@ class EntityCollectionServiceFactory {
|
|
|
2609
2611
|
return new EntityCollectionServiceBase(entityName, this.entityCollectionServiceElementsFactory);
|
|
2610
2612
|
}
|
|
2611
2613
|
}
|
|
2612
|
-
/** @nocollapse */
|
|
2613
|
-
/** @nocollapse */
|
|
2614
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2614
|
+
/** @nocollapse */ EntityCollectionServiceFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceFactory, deps: [{ token: EntityCollectionServiceElementsFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2615
|
+
/** @nocollapse */ EntityCollectionServiceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceFactory });
|
|
2616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceFactory, decorators: [{
|
|
2615
2617
|
type: Injectable
|
|
2616
2618
|
}], ctorParameters: function () { return [{ type: EntityCollectionServiceElementsFactory }]; } });
|
|
2617
2619
|
|
|
@@ -2636,9 +2638,9 @@ class EntityServicesElements {
|
|
|
2636
2638
|
this.reducedActions$ = entityDispatcherFactory.reducedActions$;
|
|
2637
2639
|
}
|
|
2638
2640
|
}
|
|
2639
|
-
/** @nocollapse */
|
|
2640
|
-
/** @nocollapse */
|
|
2641
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2641
|
+
/** @nocollapse */ EntityServicesElements.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesElements, deps: [{ token: EntityCollectionServiceFactory }, { token: EntityDispatcherFactory }, { token: EntitySelectors$Factory }, { token: i1$1.Store }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2642
|
+
/** @nocollapse */ EntityServicesElements.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesElements });
|
|
2643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesElements, decorators: [{
|
|
2642
2644
|
type: Injectable
|
|
2643
2645
|
}], ctorParameters: function () { return [{ type: EntityCollectionServiceFactory }, { type: EntityDispatcherFactory }, { type: EntitySelectors$Factory }, { type: i1$1.Store }]; } });
|
|
2644
2646
|
|
|
@@ -2752,9 +2754,9 @@ class EntityServicesBase {
|
|
|
2752
2754
|
}
|
|
2753
2755
|
}
|
|
2754
2756
|
}
|
|
2755
|
-
/** @nocollapse */
|
|
2756
|
-
/** @nocollapse */
|
|
2757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2757
|
+
/** @nocollapse */ EntityServicesBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesBase, deps: [{ token: EntityServicesElements }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2758
|
+
/** @nocollapse */ EntityServicesBase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesBase });
|
|
2759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesBase, decorators: [{
|
|
2758
2760
|
type: Injectable
|
|
2759
2761
|
}], ctorParameters: function () { return [{ type: EntityServicesElements }]; } });
|
|
2760
2762
|
|
|
@@ -4123,9 +4125,9 @@ class EntityCollectionReducerMethodsFactory {
|
|
|
4123
4125
|
return methodsClass.methods;
|
|
4124
4126
|
}
|
|
4125
4127
|
}
|
|
4126
|
-
/** @nocollapse */
|
|
4127
|
-
/** @nocollapse */
|
|
4128
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4128
|
+
/** @nocollapse */ EntityCollectionReducerMethodsFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerMethodsFactory, deps: [{ token: EntityDefinitionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4129
|
+
/** @nocollapse */ EntityCollectionReducerMethodsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerMethodsFactory });
|
|
4130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerMethodsFactory, decorators: [{
|
|
4129
4131
|
type: Injectable
|
|
4130
4132
|
}], ctorParameters: function () { return [{ type: EntityDefinitionService }]; } });
|
|
4131
4133
|
|
|
@@ -4144,9 +4146,9 @@ class EntityCollectionReducerFactory {
|
|
|
4144
4146
|
};
|
|
4145
4147
|
}
|
|
4146
4148
|
}
|
|
4147
|
-
/** @nocollapse */
|
|
4148
|
-
/** @nocollapse */
|
|
4149
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4149
|
+
/** @nocollapse */ EntityCollectionReducerFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerFactory, deps: [{ token: EntityCollectionReducerMethodsFactory }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4150
|
+
/** @nocollapse */ EntityCollectionReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerFactory });
|
|
4151
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerFactory, decorators: [{
|
|
4150
4152
|
type: Injectable
|
|
4151
4153
|
}], ctorParameters: function () { return [{ type: EntityCollectionReducerMethodsFactory }]; } });
|
|
4152
4154
|
|
|
@@ -4202,9 +4204,9 @@ class EntityCollectionReducerRegistry {
|
|
|
4202
4204
|
keys.forEach((key) => this.registerReducer(key, reducers[key]));
|
|
4203
4205
|
}
|
|
4204
4206
|
}
|
|
4205
|
-
/** @nocollapse */
|
|
4206
|
-
/** @nocollapse */
|
|
4207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4207
|
+
/** @nocollapse */ EntityCollectionReducerRegistry.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerRegistry, deps: [{ token: EntityCollectionReducerFactory }, { token: ENTITY_COLLECTION_META_REDUCERS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4208
|
+
/** @nocollapse */ EntityCollectionReducerRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerRegistry });
|
|
4209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerRegistry, decorators: [{
|
|
4208
4210
|
type: Injectable
|
|
4209
4211
|
}], ctorParameters: function () {
|
|
4210
4212
|
return [{ type: EntityCollectionReducerFactory }, { type: undefined, decorators: [{
|
|
@@ -4471,9 +4473,9 @@ class EntityCacheReducerFactory {
|
|
|
4471
4473
|
return entityCache;
|
|
4472
4474
|
}
|
|
4473
4475
|
}
|
|
4474
|
-
/** @nocollapse */
|
|
4475
|
-
/** @nocollapse */
|
|
4476
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4476
|
+
/** @nocollapse */ EntityCacheReducerFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheReducerFactory, deps: [{ token: EntityCollectionCreator }, { token: EntityCollectionReducerRegistry }, { token: Logger }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4477
|
+
/** @nocollapse */ EntityCacheReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheReducerFactory });
|
|
4478
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheReducerFactory, decorators: [{
|
|
4477
4479
|
type: Injectable
|
|
4478
4480
|
}], ctorParameters: function () { return [{ type: EntityCollectionCreator }, { type: EntityCollectionReducerRegistry }, { type: Logger }]; } });
|
|
4479
4481
|
|
|
@@ -4494,9 +4496,9 @@ class DefaultLogger {
|
|
|
4494
4496
|
}
|
|
4495
4497
|
}
|
|
4496
4498
|
}
|
|
4497
|
-
/** @nocollapse */
|
|
4498
|
-
/** @nocollapse */
|
|
4499
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4499
|
+
/** @nocollapse */ DefaultLogger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultLogger, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4500
|
+
/** @nocollapse */ DefaultLogger.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultLogger });
|
|
4501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultLogger, decorators: [{
|
|
4500
4502
|
type: Injectable
|
|
4501
4503
|
}] });
|
|
4502
4504
|
|
|
@@ -4539,7 +4541,7 @@ class DefaultPluralizer {
|
|
|
4539
4541
|
// consonant + y
|
|
4540
4542
|
}
|
|
4541
4543
|
else if (name.endsWith('y')) {
|
|
4542
|
-
return name.
|
|
4544
|
+
return name.substring(0, name.length - 1) + 'ies';
|
|
4543
4545
|
// endings typically pluralized with 'es'
|
|
4544
4546
|
}
|
|
4545
4547
|
else if (/[s|ss|sh|ch|x|z]$/.test(name)) {
|
|
@@ -4557,9 +4559,9 @@ class DefaultPluralizer {
|
|
|
4557
4559
|
this.pluralNames = Object.assign(Object.assign({}, this.pluralNames), (pluralNames || {}));
|
|
4558
4560
|
}
|
|
4559
4561
|
}
|
|
4560
|
-
/** @nocollapse */
|
|
4561
|
-
/** @nocollapse */
|
|
4562
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4562
|
+
/** @nocollapse */ DefaultPluralizer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPluralizer, deps: [{ token: PLURAL_NAMES_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4563
|
+
/** @nocollapse */ DefaultPluralizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPluralizer });
|
|
4564
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPluralizer, decorators: [{
|
|
4563
4565
|
type: Injectable
|
|
4564
4566
|
}], ctorParameters: function () {
|
|
4565
4567
|
return [{ type: undefined, decorators: [{
|
|
@@ -4700,9 +4702,9 @@ class EntityDataModuleWithoutEffects {
|
|
|
4700
4702
|
this.reducerManager.removeFeature(this.entityCacheFeature);
|
|
4701
4703
|
}
|
|
4702
4704
|
}
|
|
4703
|
-
/** @nocollapse */
|
|
4704
|
-
/** @nocollapse */
|
|
4705
|
-
/** @nocollapse */
|
|
4705
|
+
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModuleWithoutEffects, deps: [{ token: i1$1.ReducerManager }, { token: EntityCacheReducerFactory }, { token: i0.Injector }, { token: ENTITY_CACHE_NAME_TOKEN, optional: true }, { token: INITIAL_ENTITY_CACHE_STATE, optional: true }, { token: ENTITY_CACHE_META_REDUCERS, optional: true }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4706
|
+
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModuleWithoutEffects, imports: [StoreModule] });
|
|
4707
|
+
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModuleWithoutEffects, providers: [
|
|
4706
4708
|
CorrelationIdGenerator,
|
|
4707
4709
|
EntityDispatcherDefaultOptions,
|
|
4708
4710
|
EntityActionFactory,
|
|
@@ -4723,10 +4725,8 @@ class EntityDataModuleWithoutEffects {
|
|
|
4723
4725
|
{ provide: ENTITY_CACHE_NAME_TOKEN, useValue: ENTITY_CACHE_NAME },
|
|
4724
4726
|
{ provide: EntityServices, useClass: EntityServicesBase },
|
|
4725
4727
|
{ provide: Logger, useClass: DefaultLogger },
|
|
4726
|
-
], imports: [
|
|
4727
|
-
|
|
4728
|
-
]] });
|
|
4729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EntityDataModuleWithoutEffects, decorators: [{
|
|
4728
|
+
], imports: [StoreModule] });
|
|
4729
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModuleWithoutEffects, decorators: [{
|
|
4730
4730
|
type: NgModule,
|
|
4731
4731
|
args: [{
|
|
4732
4732
|
imports: [
|
|
@@ -4835,10 +4835,10 @@ class EntityDataModule {
|
|
|
4835
4835
|
this.effectSources.addEffects(effectSourceInstance);
|
|
4836
4836
|
}
|
|
4837
4837
|
}
|
|
4838
|
-
/** @nocollapse */
|
|
4839
|
-
/** @nocollapse */
|
|
4838
|
+
/** @nocollapse */ EntityDataModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModule, deps: [{ token: i1$2.EffectSources }, { token: EntityCacheEffects }, { token: EntityEffects }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4839
|
+
/** @nocollapse */ EntityDataModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModule, imports: [EntityDataModuleWithoutEffects,
|
|
4840
4840
|
EffectsModule] });
|
|
4841
|
-
/** @nocollapse */
|
|
4841
|
+
/** @nocollapse */ EntityDataModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModule, providers: [
|
|
4842
4842
|
DefaultDataServiceFactory,
|
|
4843
4843
|
EntityCacheDataService,
|
|
4844
4844
|
EntityDataService,
|
|
@@ -4850,11 +4850,9 @@ class EntityDataModule {
|
|
|
4850
4850
|
useClass: DefaultPersistenceResultHandler,
|
|
4851
4851
|
},
|
|
4852
4852
|
{ provide: Pluralizer, useClass: DefaultPluralizer },
|
|
4853
|
-
], imports: [
|
|
4854
|
-
|
|
4855
|
-
|
|
4856
|
-
]] });
|
|
4857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EntityDataModule, decorators: [{
|
|
4853
|
+
], imports: [EntityDataModuleWithoutEffects,
|
|
4854
|
+
EffectsModule] });
|
|
4855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModule, decorators: [{
|
|
4858
4856
|
type: NgModule,
|
|
4859
4857
|
args: [{
|
|
4860
4858
|
imports: [
|
|
@@ -4890,3 +4888,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
|
4890
4888
|
*/
|
|
4891
4889
|
|
|
4892
4890
|
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 };
|
|
4891
|
+
//# sourceMappingURL=ngrx-data.mjs.map
|