@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/fesm2020/ngrx-data.mjs
CHANGED
|
@@ -53,9 +53,9 @@ class EntityActionFactory {
|
|
|
53
53
|
// return `${op} [${tag}]`.toUpperCase(); // example of an alternative
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
/** @nocollapse */
|
|
57
|
-
/** @nocollapse */
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
56
|
+
/** @nocollapse */ EntityActionFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityActionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
57
|
+
/** @nocollapse */ EntityActionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityActionFactory });
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityActionFactory, decorators: [{
|
|
59
59
|
type: Injectable
|
|
60
60
|
}] });
|
|
61
61
|
|
|
@@ -620,10 +620,10 @@ class DefaultHttpUrlGenerator {
|
|
|
620
620
|
* @param entityName {string} Name of the entity type, e.g, 'Hero'
|
|
621
621
|
* @param root {string} Root path to the resource, e.g., 'some-api`
|
|
622
622
|
*/
|
|
623
|
-
getResourceUrls(entityName, root) {
|
|
623
|
+
getResourceUrls(entityName, root, trailingSlashEndpoints = false) {
|
|
624
624
|
let resourceUrls = this.knownHttpResourceUrls[entityName];
|
|
625
625
|
if (!resourceUrls) {
|
|
626
|
-
const nRoot = normalizeRoot(root);
|
|
626
|
+
const nRoot = trailingSlashEndpoints ? root : normalizeRoot(root);
|
|
627
627
|
resourceUrls = {
|
|
628
628
|
entityResourceUrl: `${nRoot}/${entityName}/`.toLowerCase(),
|
|
629
629
|
collectionResourceUrl: `${nRoot}/${this.pluralizer.pluralize(entityName)}/`.toLowerCase(),
|
|
@@ -638,8 +638,9 @@ class DefaultHttpUrlGenerator {
|
|
|
638
638
|
* @param root {string} Root path to the resource, e.g., 'some-api`
|
|
639
639
|
* @returns complete path to resource, e.g, 'some-api/hero'
|
|
640
640
|
*/
|
|
641
|
-
entityResource(entityName, root) {
|
|
642
|
-
return this.getResourceUrls(entityName, root)
|
|
641
|
+
entityResource(entityName, root, trailingSlashEndpoints) {
|
|
642
|
+
return this.getResourceUrls(entityName, root, trailingSlashEndpoints)
|
|
643
|
+
.entityResourceUrl;
|
|
643
644
|
}
|
|
644
645
|
/**
|
|
645
646
|
* Create the path to a multiple entity (collection) resource
|
|
@@ -663,9 +664,9 @@ class DefaultHttpUrlGenerator {
|
|
|
663
664
|
};
|
|
664
665
|
}
|
|
665
666
|
}
|
|
666
|
-
/** @nocollapse */
|
|
667
|
-
/** @nocollapse */
|
|
668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
667
|
+
/** @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 });
|
|
668
|
+
/** @nocollapse */ DefaultHttpUrlGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultHttpUrlGenerator });
|
|
669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultHttpUrlGenerator, decorators: [{
|
|
669
670
|
type: Injectable
|
|
670
671
|
}], ctorParameters: function () { return [{ type: Pluralizer }]; } });
|
|
671
672
|
/** Remove leading & trailing spaces or slashes */
|
|
@@ -685,11 +686,12 @@ class DefaultDataService {
|
|
|
685
686
|
this.getDelay = 0;
|
|
686
687
|
this.saveDelay = 0;
|
|
687
688
|
this.timeout = 0;
|
|
689
|
+
this.trailingSlashEndpoints = false;
|
|
688
690
|
this._name = `${entityName} DefaultDataService`;
|
|
689
691
|
this.entityName = entityName;
|
|
690
|
-
const { root = 'api', delete404OK = true, getDelay = 0, saveDelay = 0, timeout: to = 0, } = config || {};
|
|
692
|
+
const { root = 'api', delete404OK = true, getDelay = 0, saveDelay = 0, timeout: to = 0, trailingSlashEndpoints = false, } = config || {};
|
|
691
693
|
this.delete404OK = delete404OK;
|
|
692
|
-
this.entityUrl = httpUrlGenerator.entityResource(entityName, root);
|
|
694
|
+
this.entityUrl = httpUrlGenerator.entityResource(entityName, root, trailingSlashEndpoints);
|
|
693
695
|
this.entitiesUrl = httpUrlGenerator.collectionResource(entityName, root);
|
|
694
696
|
this.getDelay = getDelay;
|
|
695
697
|
this.saveDelay = saveDelay;
|
|
@@ -779,7 +781,7 @@ class DefaultDataService {
|
|
|
779
781
|
}
|
|
780
782
|
default: {
|
|
781
783
|
const error = new Error('Unimplemented HTTP method, ' + method);
|
|
782
|
-
result$ = throwError(error);
|
|
784
|
+
result$ = throwError(() => error);
|
|
783
785
|
}
|
|
784
786
|
}
|
|
785
787
|
if (this.timeout) {
|
|
@@ -794,7 +796,7 @@ class DefaultDataService {
|
|
|
794
796
|
return ok;
|
|
795
797
|
}
|
|
796
798
|
const error = new DataServiceError(err, reqData);
|
|
797
|
-
return throwError(error);
|
|
799
|
+
return throwError(() => error);
|
|
798
800
|
};
|
|
799
801
|
}
|
|
800
802
|
handleDelete404(error, reqData) {
|
|
@@ -827,9 +829,9 @@ class DefaultDataServiceFactory {
|
|
|
827
829
|
return new DefaultDataService(entityName, this.http, this.httpUrlGenerator, this.config);
|
|
828
830
|
}
|
|
829
831
|
}
|
|
830
|
-
/** @nocollapse */
|
|
831
|
-
/** @nocollapse */
|
|
832
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
832
|
+
/** @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 });
|
|
833
|
+
/** @nocollapse */ DefaultDataServiceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultDataServiceFactory });
|
|
834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultDataServiceFactory, decorators: [{
|
|
833
835
|
type: Injectable
|
|
834
836
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HttpUrlGenerator }, { type: DefaultDataServiceConfig, decorators: [{
|
|
835
837
|
type: Optional
|
|
@@ -946,9 +948,9 @@ class EntityDefinitionService {
|
|
|
946
948
|
Object.assign(this.definitions, definitions);
|
|
947
949
|
}
|
|
948
950
|
}
|
|
949
|
-
/** @nocollapse */
|
|
950
|
-
/** @nocollapse */
|
|
951
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
951
|
+
/** @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 });
|
|
952
|
+
/** @nocollapse */ EntityDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDefinitionService });
|
|
953
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDefinitionService, decorators: [{
|
|
952
954
|
type: Injectable
|
|
953
955
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
954
956
|
type: Optional
|
|
@@ -1004,7 +1006,7 @@ class EntityCacheDataService {
|
|
|
1004
1006
|
handleError(reqData) {
|
|
1005
1007
|
return (err) => {
|
|
1006
1008
|
const error = new DataServiceError(err, reqData);
|
|
1007
|
-
return throwError(error);
|
|
1009
|
+
return throwError(() => error);
|
|
1008
1010
|
};
|
|
1009
1011
|
}
|
|
1010
1012
|
/**
|
|
@@ -1079,16 +1081,16 @@ class EntityCacheDataService {
|
|
|
1079
1081
|
getIdSelector(entityName) {
|
|
1080
1082
|
let idSelector = this.idSelectors[entityName];
|
|
1081
1083
|
if (!idSelector) {
|
|
1082
|
-
idSelector =
|
|
1083
|
-
.selectId;
|
|
1084
|
+
idSelector =
|
|
1085
|
+
this.entityDefinitionService.getDefinition(entityName).selectId;
|
|
1084
1086
|
this.idSelectors[entityName] = idSelector;
|
|
1085
1087
|
}
|
|
1086
1088
|
return idSelector;
|
|
1087
1089
|
}
|
|
1088
1090
|
}
|
|
1089
|
-
/** @nocollapse */
|
|
1090
|
-
/** @nocollapse */
|
|
1091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1091
|
+
/** @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 });
|
|
1092
|
+
/** @nocollapse */ EntityCacheDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheDataService });
|
|
1093
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheDataService, decorators: [{
|
|
1092
1094
|
type: Injectable
|
|
1093
1095
|
}], ctorParameters: function () { return [{ type: EntityDefinitionService }, { type: i1.HttpClient }, { type: DefaultDataServiceConfig, decorators: [{
|
|
1094
1096
|
type: Optional
|
|
@@ -1148,9 +1150,9 @@ class EntityDataService {
|
|
|
1148
1150
|
this.services = { ...this.services, ...services };
|
|
1149
1151
|
}
|
|
1150
1152
|
}
|
|
1151
|
-
/** @nocollapse */
|
|
1152
|
-
/** @nocollapse */
|
|
1153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1153
|
+
/** @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 });
|
|
1154
|
+
/** @nocollapse */ EntityDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataService });
|
|
1155
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataService, decorators: [{
|
|
1154
1156
|
type: Injectable
|
|
1155
1157
|
}], ctorParameters: function () { return [{ type: DefaultDataServiceFactory }]; } });
|
|
1156
1158
|
|
|
@@ -1191,9 +1193,9 @@ class DefaultPersistenceResultHandler {
|
|
|
1191
1193
|
};
|
|
1192
1194
|
}
|
|
1193
1195
|
}
|
|
1194
|
-
/** @nocollapse */
|
|
1195
|
-
/** @nocollapse */
|
|
1196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1196
|
+
/** @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 });
|
|
1197
|
+
/** @nocollapse */ DefaultPersistenceResultHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPersistenceResultHandler });
|
|
1198
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPersistenceResultHandler, decorators: [{
|
|
1197
1199
|
type: Injectable
|
|
1198
1200
|
}], ctorParameters: function () { return [{ type: Logger }, { type: EntityActionFactory }]; } });
|
|
1199
1201
|
|
|
@@ -1229,9 +1231,9 @@ class CorrelationIdGenerator {
|
|
|
1229
1231
|
return this.prefix + this.seed;
|
|
1230
1232
|
}
|
|
1231
1233
|
}
|
|
1232
|
-
/** @nocollapse */
|
|
1233
|
-
/** @nocollapse */
|
|
1234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1234
|
+
/** @nocollapse */ CorrelationIdGenerator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: CorrelationIdGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1235
|
+
/** @nocollapse */ CorrelationIdGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: CorrelationIdGenerator });
|
|
1236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: CorrelationIdGenerator, decorators: [{
|
|
1235
1237
|
type: Injectable
|
|
1236
1238
|
}] });
|
|
1237
1239
|
|
|
@@ -1257,9 +1259,9 @@ class EntityDispatcherDefaultOptions {
|
|
|
1257
1259
|
this.optimisticSaveEntities = false;
|
|
1258
1260
|
}
|
|
1259
1261
|
}
|
|
1260
|
-
/** @nocollapse */
|
|
1261
|
-
/** @nocollapse */
|
|
1262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1262
|
+
/** @nocollapse */ EntityDispatcherDefaultOptions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherDefaultOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1263
|
+
/** @nocollapse */ EntityDispatcherDefaultOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherDefaultOptions });
|
|
1264
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherDefaultOptions, decorators: [{
|
|
1263
1265
|
type: Injectable
|
|
1264
1266
|
}] });
|
|
1265
1267
|
|
|
@@ -1399,16 +1401,16 @@ class EntityCacheDispatcher {
|
|
|
1399
1401
|
act.type === EntityCacheAction.SAVE_ENTITIES_ERROR ||
|
|
1400
1402
|
act.type === EntityCacheAction.SAVE_ENTITIES_CANCEL), filter((act) => crid === act.payload.correlationId), take(1), mergeMap((act) => {
|
|
1401
1403
|
return act.type === EntityCacheAction.SAVE_ENTITIES_CANCEL
|
|
1402
|
-
? throwError(new PersistanceCanceled(act.payload.reason))
|
|
1404
|
+
? throwError(() => new PersistanceCanceled(act.payload.reason))
|
|
1403
1405
|
: act.type === EntityCacheAction.SAVE_ENTITIES_SUCCESS
|
|
1404
1406
|
? of(act.payload.changeSet)
|
|
1405
|
-
: throwError(act.payload);
|
|
1407
|
+
: throwError(() => act.payload);
|
|
1406
1408
|
}));
|
|
1407
1409
|
}
|
|
1408
1410
|
}
|
|
1409
|
-
/** @nocollapse */
|
|
1410
|
-
/** @nocollapse */
|
|
1411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1411
|
+
/** @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 });
|
|
1412
|
+
/** @nocollapse */ EntityCacheDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheDispatcher });
|
|
1413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheDispatcher, decorators: [{
|
|
1412
1414
|
type: Injectable
|
|
1413
1415
|
}], ctorParameters: function () { return [{ type: CorrelationIdGenerator }, { type: EntityDispatcherDefaultOptions }, { type: i4.Observable, decorators: [{
|
|
1414
1416
|
type: Inject,
|
|
@@ -1788,10 +1790,10 @@ class EntityDispatcherBase {
|
|
|
1788
1790
|
}), take(1), mergeMap((act) => {
|
|
1789
1791
|
const { entityOp } = act.payload;
|
|
1790
1792
|
return entityOp === EntityOp.CANCEL_PERSIST
|
|
1791
|
-
? throwError(new PersistanceCanceled(act.payload.data))
|
|
1793
|
+
? throwError(() => new PersistanceCanceled(act.payload.data))
|
|
1792
1794
|
: entityOp.endsWith(OP_SUCCESS)
|
|
1793
1795
|
? of(act.payload.data)
|
|
1794
|
-
: throwError(act.payload.data.error);
|
|
1796
|
+
: throwError(() => act.payload.data.error);
|
|
1795
1797
|
}));
|
|
1796
1798
|
}
|
|
1797
1799
|
setQueryEntityActionOptions(options) {
|
|
@@ -1871,9 +1873,9 @@ class EntityDispatcherFactory {
|
|
|
1871
1873
|
this.raSubscription.unsubscribe();
|
|
1872
1874
|
}
|
|
1873
1875
|
}
|
|
1874
|
-
/** @nocollapse */
|
|
1875
|
-
/** @nocollapse */
|
|
1876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1876
|
+
/** @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 });
|
|
1877
|
+
/** @nocollapse */ EntityDispatcherFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherFactory });
|
|
1878
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDispatcherFactory, decorators: [{
|
|
1877
1879
|
type: Injectable
|
|
1878
1880
|
}], ctorParameters: function () { return [{ type: EntityActionFactory }, { type: i1$1.Store }, { type: EntityDispatcherDefaultOptions }, { type: i4.Observable, decorators: [{
|
|
1879
1881
|
type: Inject,
|
|
@@ -1977,9 +1979,9 @@ class EntityCacheEffects {
|
|
|
1977
1979
|
};
|
|
1978
1980
|
}
|
|
1979
1981
|
}
|
|
1980
|
-
/** @nocollapse */
|
|
1981
|
-
/** @nocollapse */
|
|
1982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1982
|
+
/** @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 });
|
|
1983
|
+
/** @nocollapse */ EntityCacheEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheEffects });
|
|
1984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheEffects, decorators: [{
|
|
1983
1985
|
type: Injectable
|
|
1984
1986
|
}], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: EntityCacheDataService }, { type: EntityActionFactory }, { type: Logger }, { type: undefined, decorators: [{
|
|
1985
1987
|
type: Optional
|
|
@@ -2113,9 +2115,9 @@ class EntityEffects {
|
|
|
2113
2115
|
return of(successAction).pipe(delay(this.responseDelay, this.scheduler || asyncScheduler));
|
|
2114
2116
|
}
|
|
2115
2117
|
}
|
|
2116
|
-
/** @nocollapse */
|
|
2117
|
-
/** @nocollapse */
|
|
2118
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2118
|
+
/** @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 });
|
|
2119
|
+
/** @nocollapse */ EntityEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityEffects });
|
|
2120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityEffects, decorators: [{
|
|
2119
2121
|
type: Injectable
|
|
2120
2122
|
}], ctorParameters: function () { return [{ type: i1$2.Actions }, { type: EntityDataService }, { type: EntityActionFactory }, { type: PersistenceResultHandler }, { type: undefined, decorators: [{
|
|
2121
2123
|
type: Optional
|
|
@@ -2422,9 +2424,9 @@ class EntityCollectionCreator {
|
|
|
2422
2424
|
return (initialState || createEmptyEntityCollection(entityName));
|
|
2423
2425
|
}
|
|
2424
2426
|
}
|
|
2425
|
-
/** @nocollapse */
|
|
2426
|
-
/** @nocollapse */
|
|
2427
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2427
|
+
/** @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 });
|
|
2428
|
+
/** @nocollapse */ EntityCollectionCreator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionCreator });
|
|
2429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionCreator, decorators: [{
|
|
2428
2430
|
type: Injectable
|
|
2429
2431
|
}], ctorParameters: function () { return [{ type: EntityDefinitionService, decorators: [{
|
|
2430
2432
|
type: Optional
|
|
@@ -2517,9 +2519,9 @@ class EntitySelectorsFactory {
|
|
|
2517
2519
|
};
|
|
2518
2520
|
}
|
|
2519
2521
|
}
|
|
2520
|
-
/** @nocollapse */
|
|
2521
|
-
/** @nocollapse */
|
|
2522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2522
|
+
/** @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 });
|
|
2523
|
+
/** @nocollapse */ EntitySelectorsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectorsFactory });
|
|
2524
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectorsFactory, decorators: [{
|
|
2523
2525
|
type: Injectable
|
|
2524
2526
|
}], ctorParameters: function () { return [{ type: EntityCollectionCreator, decorators: [{
|
|
2525
2527
|
type: Optional
|
|
@@ -2556,7 +2558,7 @@ class EntitySelectors$Factory {
|
|
|
2556
2558
|
if (name.startsWith('select')) {
|
|
2557
2559
|
// strip 'select' prefix from the selector fn name and append `$`
|
|
2558
2560
|
// Ex: 'selectEntities' => 'entities$'
|
|
2559
|
-
const name$ = name[6].toLowerCase() + name.
|
|
2561
|
+
const name$ = name[6].toLowerCase() + name.substring(7) + '$';
|
|
2560
2562
|
selectors$[name$] = this.store.select(selectors[name]);
|
|
2561
2563
|
}
|
|
2562
2564
|
});
|
|
@@ -2565,9 +2567,9 @@ class EntitySelectors$Factory {
|
|
|
2565
2567
|
return selectors$;
|
|
2566
2568
|
}
|
|
2567
2569
|
}
|
|
2568
|
-
/** @nocollapse */
|
|
2569
|
-
/** @nocollapse */
|
|
2570
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2570
|
+
/** @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 });
|
|
2571
|
+
/** @nocollapse */ EntitySelectors$Factory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectors$Factory });
|
|
2572
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntitySelectors$Factory, decorators: [{
|
|
2571
2573
|
type: Injectable
|
|
2572
2574
|
}], ctorParameters: function () { return [{ type: i1$1.Store }, { type: i1$2.Actions }, { type: undefined, decorators: [{
|
|
2573
2575
|
type: Inject,
|
|
@@ -2600,9 +2602,9 @@ class EntityCollectionServiceElementsFactory {
|
|
|
2600
2602
|
};
|
|
2601
2603
|
}
|
|
2602
2604
|
}
|
|
2603
|
-
/** @nocollapse */
|
|
2604
|
-
/** @nocollapse */
|
|
2605
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2605
|
+
/** @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 });
|
|
2606
|
+
/** @nocollapse */ EntityCollectionServiceElementsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceElementsFactory });
|
|
2607
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceElementsFactory, decorators: [{
|
|
2606
2608
|
type: Injectable
|
|
2607
2609
|
}], ctorParameters: function () { return [{ type: EntityDispatcherFactory }, { type: EntityDefinitionService }, { type: EntitySelectorsFactory }, { type: EntitySelectors$Factory }]; } });
|
|
2608
2610
|
|
|
@@ -2624,9 +2626,9 @@ class EntityCollectionServiceFactory {
|
|
|
2624
2626
|
return new EntityCollectionServiceBase(entityName, this.entityCollectionServiceElementsFactory);
|
|
2625
2627
|
}
|
|
2626
2628
|
}
|
|
2627
|
-
/** @nocollapse */
|
|
2628
|
-
/** @nocollapse */
|
|
2629
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2629
|
+
/** @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 });
|
|
2630
|
+
/** @nocollapse */ EntityCollectionServiceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceFactory });
|
|
2631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionServiceFactory, decorators: [{
|
|
2630
2632
|
type: Injectable
|
|
2631
2633
|
}], ctorParameters: function () { return [{ type: EntityCollectionServiceElementsFactory }]; } });
|
|
2632
2634
|
|
|
@@ -2651,9 +2653,9 @@ class EntityServicesElements {
|
|
|
2651
2653
|
this.reducedActions$ = entityDispatcherFactory.reducedActions$;
|
|
2652
2654
|
}
|
|
2653
2655
|
}
|
|
2654
|
-
/** @nocollapse */
|
|
2655
|
-
/** @nocollapse */
|
|
2656
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2656
|
+
/** @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 });
|
|
2657
|
+
/** @nocollapse */ EntityServicesElements.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesElements });
|
|
2658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesElements, decorators: [{
|
|
2657
2659
|
type: Injectable
|
|
2658
2660
|
}], ctorParameters: function () { return [{ type: EntityCollectionServiceFactory }, { type: EntityDispatcherFactory }, { type: EntitySelectors$Factory }, { type: i1$1.Store }]; } });
|
|
2659
2661
|
|
|
@@ -2767,9 +2769,9 @@ class EntityServicesBase {
|
|
|
2767
2769
|
}
|
|
2768
2770
|
}
|
|
2769
2771
|
}
|
|
2770
|
-
/** @nocollapse */
|
|
2771
|
-
/** @nocollapse */
|
|
2772
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2772
|
+
/** @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 });
|
|
2773
|
+
/** @nocollapse */ EntityServicesBase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesBase });
|
|
2774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityServicesBase, decorators: [{
|
|
2773
2775
|
type: Injectable
|
|
2774
2776
|
}], ctorParameters: function () { return [{ type: EntityServicesElements }]; } });
|
|
2775
2777
|
|
|
@@ -4173,9 +4175,9 @@ class EntityCollectionReducerMethodsFactory {
|
|
|
4173
4175
|
return methodsClass.methods;
|
|
4174
4176
|
}
|
|
4175
4177
|
}
|
|
4176
|
-
/** @nocollapse */
|
|
4177
|
-
/** @nocollapse */
|
|
4178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4178
|
+
/** @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 });
|
|
4179
|
+
/** @nocollapse */ EntityCollectionReducerMethodsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerMethodsFactory });
|
|
4180
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerMethodsFactory, decorators: [{
|
|
4179
4181
|
type: Injectable
|
|
4180
4182
|
}], ctorParameters: function () { return [{ type: EntityDefinitionService }]; } });
|
|
4181
4183
|
|
|
@@ -4194,9 +4196,9 @@ class EntityCollectionReducerFactory {
|
|
|
4194
4196
|
};
|
|
4195
4197
|
}
|
|
4196
4198
|
}
|
|
4197
|
-
/** @nocollapse */
|
|
4198
|
-
/** @nocollapse */
|
|
4199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4199
|
+
/** @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 });
|
|
4200
|
+
/** @nocollapse */ EntityCollectionReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerFactory });
|
|
4201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerFactory, decorators: [{
|
|
4200
4202
|
type: Injectable
|
|
4201
4203
|
}], ctorParameters: function () { return [{ type: EntityCollectionReducerMethodsFactory }]; } });
|
|
4202
4204
|
|
|
@@ -4252,9 +4254,9 @@ class EntityCollectionReducerRegistry {
|
|
|
4252
4254
|
keys.forEach((key) => this.registerReducer(key, reducers[key]));
|
|
4253
4255
|
}
|
|
4254
4256
|
}
|
|
4255
|
-
/** @nocollapse */
|
|
4256
|
-
/** @nocollapse */
|
|
4257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4257
|
+
/** @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 });
|
|
4258
|
+
/** @nocollapse */ EntityCollectionReducerRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerRegistry });
|
|
4259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCollectionReducerRegistry, decorators: [{
|
|
4258
4260
|
type: Injectable
|
|
4259
4261
|
}], ctorParameters: function () { return [{ type: EntityCollectionReducerFactory }, { type: undefined, decorators: [{
|
|
4260
4262
|
type: Optional
|
|
@@ -4519,9 +4521,9 @@ class EntityCacheReducerFactory {
|
|
|
4519
4521
|
return entityCache;
|
|
4520
4522
|
}
|
|
4521
4523
|
}
|
|
4522
|
-
/** @nocollapse */
|
|
4523
|
-
/** @nocollapse */
|
|
4524
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4524
|
+
/** @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 });
|
|
4525
|
+
/** @nocollapse */ EntityCacheReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheReducerFactory });
|
|
4526
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityCacheReducerFactory, decorators: [{
|
|
4525
4527
|
type: Injectable
|
|
4526
4528
|
}], ctorParameters: function () { return [{ type: EntityCollectionCreator }, { type: EntityCollectionReducerRegistry }, { type: Logger }]; } });
|
|
4527
4529
|
|
|
@@ -4542,9 +4544,9 @@ class DefaultLogger {
|
|
|
4542
4544
|
}
|
|
4543
4545
|
}
|
|
4544
4546
|
}
|
|
4545
|
-
/** @nocollapse */
|
|
4546
|
-
/** @nocollapse */
|
|
4547
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4547
|
+
/** @nocollapse */ DefaultLogger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultLogger, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4548
|
+
/** @nocollapse */ DefaultLogger.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultLogger });
|
|
4549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultLogger, decorators: [{
|
|
4548
4550
|
type: Injectable
|
|
4549
4551
|
}] });
|
|
4550
4552
|
|
|
@@ -4587,7 +4589,7 @@ class DefaultPluralizer {
|
|
|
4587
4589
|
// consonant + y
|
|
4588
4590
|
}
|
|
4589
4591
|
else if (name.endsWith('y')) {
|
|
4590
|
-
return name.
|
|
4592
|
+
return name.substring(0, name.length - 1) + 'ies';
|
|
4591
4593
|
// endings typically pluralized with 'es'
|
|
4592
4594
|
}
|
|
4593
4595
|
else if (/[s|ss|sh|ch|x|z]$/.test(name)) {
|
|
@@ -4605,9 +4607,9 @@ class DefaultPluralizer {
|
|
|
4605
4607
|
this.pluralNames = { ...this.pluralNames, ...(pluralNames || {}) };
|
|
4606
4608
|
}
|
|
4607
4609
|
}
|
|
4608
|
-
/** @nocollapse */
|
|
4609
|
-
/** @nocollapse */
|
|
4610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4610
|
+
/** @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 });
|
|
4611
|
+
/** @nocollapse */ DefaultPluralizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPluralizer });
|
|
4612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: DefaultPluralizer, decorators: [{
|
|
4611
4613
|
type: Injectable
|
|
4612
4614
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
4613
4615
|
type: Optional
|
|
@@ -4746,9 +4748,9 @@ class EntityDataModuleWithoutEffects {
|
|
|
4746
4748
|
this.reducerManager.removeFeature(this.entityCacheFeature);
|
|
4747
4749
|
}
|
|
4748
4750
|
}
|
|
4749
|
-
/** @nocollapse */
|
|
4750
|
-
/** @nocollapse */
|
|
4751
|
-
/** @nocollapse */
|
|
4751
|
+
/** @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 });
|
|
4752
|
+
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModuleWithoutEffects, imports: [StoreModule] });
|
|
4753
|
+
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModuleWithoutEffects, providers: [
|
|
4752
4754
|
CorrelationIdGenerator,
|
|
4753
4755
|
EntityDispatcherDefaultOptions,
|
|
4754
4756
|
EntityActionFactory,
|
|
@@ -4769,10 +4771,8 @@ class EntityDataModuleWithoutEffects {
|
|
|
4769
4771
|
{ provide: ENTITY_CACHE_NAME_TOKEN, useValue: ENTITY_CACHE_NAME },
|
|
4770
4772
|
{ provide: EntityServices, useClass: EntityServicesBase },
|
|
4771
4773
|
{ provide: Logger, useClass: DefaultLogger },
|
|
4772
|
-
], imports: [
|
|
4773
|
-
|
|
4774
|
-
]] });
|
|
4775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EntityDataModuleWithoutEffects, decorators: [{
|
|
4774
|
+
], imports: [StoreModule] });
|
|
4775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModuleWithoutEffects, decorators: [{
|
|
4776
4776
|
type: NgModule,
|
|
4777
4777
|
args: [{
|
|
4778
4778
|
imports: [
|
|
@@ -4879,10 +4879,10 @@ class EntityDataModule {
|
|
|
4879
4879
|
this.effectSources.addEffects(effectSourceInstance);
|
|
4880
4880
|
}
|
|
4881
4881
|
}
|
|
4882
|
-
/** @nocollapse */
|
|
4883
|
-
/** @nocollapse */
|
|
4882
|
+
/** @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 });
|
|
4883
|
+
/** @nocollapse */ EntityDataModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModule, imports: [EntityDataModuleWithoutEffects,
|
|
4884
4884
|
EffectsModule] });
|
|
4885
|
-
/** @nocollapse */
|
|
4885
|
+
/** @nocollapse */ EntityDataModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModule, providers: [
|
|
4886
4886
|
DefaultDataServiceFactory,
|
|
4887
4887
|
EntityCacheDataService,
|
|
4888
4888
|
EntityDataService,
|
|
@@ -4894,11 +4894,9 @@ class EntityDataModule {
|
|
|
4894
4894
|
useClass: DefaultPersistenceResultHandler,
|
|
4895
4895
|
},
|
|
4896
4896
|
{ provide: Pluralizer, useClass: DefaultPluralizer },
|
|
4897
|
-
], imports: [
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
]] });
|
|
4901
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImport: i0, type: EntityDataModule, decorators: [{
|
|
4897
|
+
], imports: [EntityDataModuleWithoutEffects,
|
|
4898
|
+
EffectsModule] });
|
|
4899
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0-rc.1", ngImport: i0, type: EntityDataModule, decorators: [{
|
|
4902
4900
|
type: NgModule,
|
|
4903
4901
|
args: [{
|
|
4904
4902
|
imports: [
|
|
@@ -4934,3 +4932,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.0.0", ngImpor
|
|
|
4934
4932
|
*/
|
|
4935
4933
|
|
|
4936
4934
|
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 };
|
|
4935
|
+
//# sourceMappingURL=ngrx-data.mjs.map
|