@ngrx/data 15.3.0 → 16.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/esm2022/src/actions/entity-action-factory.mjs +51 -0
- package/esm2022/src/actions/entity-action-guard.mjs +130 -0
- package/esm2022/src/dataservices/default-data.service.mjs +210 -0
- package/esm2022/src/dataservices/entity-cache-data.service.mjs +147 -0
- package/esm2022/src/dataservices/entity-data.service.mjs +64 -0
- package/esm2022/src/dataservices/http-url-generator.mjs +88 -0
- package/esm2022/src/dataservices/persistence-result-handler.service.mjs +50 -0
- package/esm2022/src/dispatchers/entity-cache-dispatcher.mjs +164 -0
- package/esm2022/src/dispatchers/entity-dispatcher-default-options.mjs +31 -0
- package/esm2022/src/dispatchers/entity-dispatcher-factory.mjs +68 -0
- package/esm2022/src/effects/entity-cache-effects.mjs +116 -0
- package/esm2022/src/effects/entity-effects.mjs +149 -0
- package/esm2022/src/entity-data-without-effects.module.mjs +28 -0
- package/esm2022/src/entity-data.module.mjs +29 -0
- package/esm2022/src/entity-metadata/entity-definition.service.mjs +94 -0
- package/esm2022/src/entity-services/entity-collection-service-elements-factory.mjs +39 -0
- package/esm2022/src/entity-services/entity-collection-service-factory.mjs +29 -0
- package/esm2022/src/entity-services/entity-services-base.mjs +120 -0
- package/esm2022/src/entity-services/entity-services-elements.mjs +34 -0
- package/esm2022/src/reducers/entity-cache-reducer.mjs +272 -0
- package/esm2022/src/reducers/entity-collection-creator.mjs +38 -0
- package/{esm2020 → esm2022}/src/reducers/entity-collection-reducer-methods.mjs +6 -5
- package/esm2022/src/reducers/entity-collection-reducer-registry.mjs +69 -0
- package/esm2022/src/reducers/entity-collection-reducer.mjs +25 -0
- package/esm2022/src/selectors/entity-selectors$.mjs +53 -0
- package/esm2022/src/selectors/entity-selectors.mjs +97 -0
- package/esm2022/src/utils/correlation-id-generator.mjs +31 -0
- package/esm2022/src/utils/default-logger.mjs +26 -0
- package/esm2022/src/utils/default-pluralizer.mjs +72 -0
- package/{fesm2020 → fesm2022}/ngrx-data.mjs +113 -110
- package/fesm2022/ngrx-data.mjs.map +1 -0
- package/package.json +10 -16
- package/schematics/ng-add/index.js +6 -6
- package/schematics/ng-add/index.js.map +1 -1
- package/schematics/ng-add/schema.js +1 -1
- package/schematics-core/index.js +50 -61
- package/schematics-core/index.js.map +1 -1
- package/schematics-core/utility/ast-utils.js +3 -3
- package/schematics-core/utility/change.js +2 -2
- package/schematics-core/utility/config.js +1 -1
- package/schematics-core/utility/find-component.js +2 -2
- package/schematics-core/utility/find-module.js +2 -2
- package/schematics-core/utility/json-utilts.js +2 -2
- package/schematics-core/utility/libs-version.js +2 -2
- package/schematics-core/utility/libs-version.js.map +1 -1
- package/schematics-core/utility/ngrx-utils.js +3 -3
- package/schematics-core/utility/package.js +1 -1
- package/schematics-core/utility/parse-name.js +2 -2
- package/schematics-core/utility/project.js +1 -1
- package/schematics-core/utility/strings.js +1 -1
- package/schematics-core/utility/update.js +1 -1
- package/schematics-core/utility/visitors.js +7 -7
- package/src/actions/entity-cache-change-set.d.ts +1 -1
- package/src/dataservices/interfaces.d.ts +2 -2
- package/src/entity-metadata/entity-filters.d.ts +1 -1
- package/src/reducers/entity-collection-reducer.d.ts +1 -1
- package/src/reducers/entity-collection.d.ts +1 -1
- package/src/selectors/entity-cache-selector.d.ts +1 -1
- package/esm2020/src/actions/entity-action-factory.mjs +0 -50
- package/esm2020/src/actions/entity-action-guard.mjs +0 -130
- package/esm2020/src/dataservices/default-data.service.mjs +0 -206
- package/esm2020/src/dataservices/entity-cache-data.service.mjs +0 -146
- package/esm2020/src/dataservices/entity-data.service.mjs +0 -63
- package/esm2020/src/dataservices/http-url-generator.mjs +0 -87
- package/esm2020/src/dataservices/persistence-result-handler.service.mjs +0 -49
- package/esm2020/src/dispatchers/entity-cache-dispatcher.mjs +0 -163
- package/esm2020/src/dispatchers/entity-dispatcher-default-options.mjs +0 -30
- package/esm2020/src/dispatchers/entity-dispatcher-factory.mjs +0 -67
- package/esm2020/src/effects/entity-cache-effects.mjs +0 -115
- package/esm2020/src/effects/entity-effects.mjs +0 -148
- package/esm2020/src/entity-data-without-effects.module.mjs +0 -27
- package/esm2020/src/entity-data.module.mjs +0 -28
- package/esm2020/src/entity-metadata/entity-definition.service.mjs +0 -93
- package/esm2020/src/entity-services/entity-collection-service-elements-factory.mjs +0 -38
- package/esm2020/src/entity-services/entity-collection-service-factory.mjs +0 -28
- package/esm2020/src/entity-services/entity-services-base.mjs +0 -119
- package/esm2020/src/entity-services/entity-services-elements.mjs +0 -33
- package/esm2020/src/reducers/entity-cache-reducer.mjs +0 -271
- package/esm2020/src/reducers/entity-collection-creator.mjs +0 -37
- package/esm2020/src/reducers/entity-collection-reducer-registry.mjs +0 -68
- package/esm2020/src/reducers/entity-collection-reducer.mjs +0 -24
- package/esm2020/src/selectors/entity-selectors$.mjs +0 -52
- package/esm2020/src/selectors/entity-selectors.mjs +0 -96
- package/esm2020/src/utils/correlation-id-generator.mjs +0 -30
- package/esm2020/src/utils/default-logger.mjs +0 -25
- package/esm2020/src/utils/default-pluralizer.mjs +0 -71
- package/fesm2015/ngrx-data.mjs +0 -4957
- package/fesm2015/ngrx-data.mjs.map +0 -1
- package/fesm2020/ngrx-data.mjs.map +0 -1
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/ngrx-data.mjs +0 -0
- /package/{esm2020 → esm2022}/public_api.mjs +0 -0
- /package/{esm2020 → esm2022}/src/actions/entity-action-operators.mjs +0 -0
- /package/{esm2020 → esm2022}/src/actions/entity-action.mjs +0 -0
- /package/{esm2020 → esm2022}/src/actions/entity-cache-action.mjs +0 -0
- /package/{esm2020 → esm2022}/src/actions/entity-cache-change-set.mjs +0 -0
- /package/{esm2020 → esm2022}/src/actions/entity-op.mjs +0 -0
- /package/{esm2020 → esm2022}/src/actions/merge-strategy.mjs +0 -0
- /package/{esm2020 → esm2022}/src/actions/update-response-data.mjs +0 -0
- /package/{esm2020 → esm2022}/src/dataservices/data-service-error.mjs +0 -0
- /package/{esm2020 → esm2022}/src/dataservices/default-data-service-config.mjs +0 -0
- /package/{esm2020 → esm2022}/src/dataservices/interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/src/dispatchers/entity-commands.mjs +0 -0
- /package/{esm2020 → esm2022}/src/dispatchers/entity-dispatcher-base.mjs +0 -0
- /package/{esm2020 → esm2022}/src/dispatchers/entity-dispatcher.mjs +0 -0
- /package/{esm2020 → esm2022}/src/effects/entity-effects-scheduler.mjs +0 -0
- /package/{esm2020 → esm2022}/src/entity-data-config.mjs +0 -0
- /package/{esm2020 → esm2022}/src/entity-metadata/entity-definition.mjs +0 -0
- /package/{esm2020 → esm2022}/src/entity-metadata/entity-filters.mjs +0 -0
- /package/{esm2020 → esm2022}/src/entity-metadata/entity-metadata.mjs +0 -0
- /package/{esm2020 → esm2022}/src/entity-services/entity-collection-service-base.mjs +0 -0
- /package/{esm2020 → esm2022}/src/entity-services/entity-collection-service.mjs +0 -0
- /package/{esm2020 → esm2022}/src/entity-services/entity-services.mjs +0 -0
- /package/{esm2020 → esm2022}/src/index.mjs +0 -0
- /package/{esm2020 → esm2022}/src/provide-entity-data.mjs +0 -0
- /package/{esm2020 → esm2022}/src/reducers/constants.mjs +0 -0
- /package/{esm2020 → esm2022}/src/reducers/entity-cache.mjs +0 -0
- /package/{esm2020 → esm2022}/src/reducers/entity-change-tracker-base.mjs +0 -0
- /package/{esm2020 → esm2022}/src/reducers/entity-change-tracker.mjs +0 -0
- /package/{esm2020 → esm2022}/src/reducers/entity-collection.mjs +0 -0
- /package/{esm2020 → esm2022}/src/selectors/entity-cache-selector.mjs +0 -0
- /package/{esm2020 → esm2022}/src/utils/guid-fns.mjs +0 -0
- /package/{esm2020 → esm2022}/src/utils/interfaces.mjs +0 -0
- /package/{esm2020 → esm2022}/src/utils/utilities.mjs +0 -0
|
@@ -52,10 +52,10 @@ class EntityActionFactory {
|
|
|
52
52
|
return `[${tag}] ${op}`;
|
|
53
53
|
// return `${op} [${tag}]`.toUpperCase(); // example of an alternative
|
|
54
54
|
}
|
|
55
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityActionFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
56
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityActionFactory }); }
|
|
55
57
|
}
|
|
56
|
-
|
|
57
|
-
/** @nocollapse */ EntityActionFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityActionFactory });
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityActionFactory, decorators: [{
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityActionFactory, decorators: [{
|
|
59
59
|
type: Injectable
|
|
60
60
|
}] });
|
|
61
61
|
|
|
@@ -99,7 +99,7 @@ class EntityActionGuard {
|
|
|
99
99
|
/** Throw if the action payload is not a single, valid key */
|
|
100
100
|
mustBeKey(action) {
|
|
101
101
|
const data = this.extractData(action);
|
|
102
|
-
if (
|
|
102
|
+
if (data === undefined) {
|
|
103
103
|
throw new Error(`should be a single entity key`);
|
|
104
104
|
}
|
|
105
105
|
if (this.isNotKeyType(data)) {
|
|
@@ -663,10 +663,10 @@ class DefaultHttpUrlGenerator {
|
|
|
663
663
|
...(entityHttpResourceUrls || {}),
|
|
664
664
|
};
|
|
665
665
|
}
|
|
666
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultHttpUrlGenerator, deps: [{ token: Pluralizer }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
667
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultHttpUrlGenerator }); }
|
|
666
668
|
}
|
|
667
|
-
|
|
668
|
-
/** @nocollapse */ DefaultHttpUrlGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultHttpUrlGenerator });
|
|
669
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultHttpUrlGenerator, decorators: [{
|
|
669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultHttpUrlGenerator, decorators: [{
|
|
670
670
|
type: Injectable
|
|
671
671
|
}], ctorParameters: function () { return [{ type: Pluralizer }]; } });
|
|
672
672
|
/** Remove leading & trailing spaces or slashes */
|
|
@@ -680,6 +680,9 @@ function normalizeRoot(root) {
|
|
|
680
680
|
* Assumes a common REST-y web API
|
|
681
681
|
*/
|
|
682
682
|
class DefaultDataService {
|
|
683
|
+
get name() {
|
|
684
|
+
return this._name;
|
|
685
|
+
}
|
|
683
686
|
constructor(entityName, http, httpUrlGenerator, config) {
|
|
684
687
|
this.http = http;
|
|
685
688
|
this.httpUrlGenerator = httpUrlGenerator;
|
|
@@ -697,31 +700,28 @@ class DefaultDataService {
|
|
|
697
700
|
this.saveDelay = saveDelay;
|
|
698
701
|
this.timeout = to;
|
|
699
702
|
}
|
|
700
|
-
get name() {
|
|
701
|
-
return this._name;
|
|
702
|
-
}
|
|
703
703
|
add(entity, options) {
|
|
704
704
|
const entityOrError = entity || new Error(`No "${this.entityName}" entity to add`);
|
|
705
|
-
return this.execute('POST', this.entityUrl, entityOrError, options);
|
|
705
|
+
return this.execute('POST', this.entityUrl, entityOrError, null, options);
|
|
706
706
|
}
|
|
707
707
|
delete(key, options) {
|
|
708
708
|
let err;
|
|
709
709
|
if (key == null) {
|
|
710
710
|
err = new Error(`No "${this.entityName}" key to delete`);
|
|
711
711
|
}
|
|
712
|
-
return this.execute('DELETE', this.entityUrl + key, err, options).pipe(
|
|
712
|
+
return this.execute('DELETE', this.entityUrl + key, err, null, options).pipe(
|
|
713
713
|
// forward the id of deleted entity as the result of the HTTP DELETE
|
|
714
714
|
map((result) => key));
|
|
715
715
|
}
|
|
716
716
|
getAll(options) {
|
|
717
|
-
return this.execute('GET', this.entitiesUrl, options);
|
|
717
|
+
return this.execute('GET', this.entitiesUrl, null, options);
|
|
718
718
|
}
|
|
719
719
|
getById(key, options) {
|
|
720
720
|
let err;
|
|
721
721
|
if (key == null) {
|
|
722
722
|
err = new Error(`No "${this.entityName}" key to get`);
|
|
723
723
|
}
|
|
724
|
-
return this.execute('GET', this.entityUrl + key, err, options);
|
|
724
|
+
return this.execute('GET', this.entityUrl + key, err, null, options);
|
|
725
725
|
}
|
|
726
726
|
getWithQuery(queryParams, options) {
|
|
727
727
|
const qParams = typeof queryParams === 'string'
|
|
@@ -735,20 +735,20 @@ class DefaultDataService {
|
|
|
735
735
|
const updateOrError = id == null
|
|
736
736
|
? new Error(`No "${this.entityName}" update data or id`)
|
|
737
737
|
: update.changes;
|
|
738
|
-
return this.execute('PUT', this.entityUrl + id, updateOrError, options);
|
|
738
|
+
return this.execute('PUT', this.entityUrl + id, updateOrError, null, options);
|
|
739
739
|
}
|
|
740
740
|
// Important! Only call if the backend service supports upserts as a POST to the target URL
|
|
741
741
|
upsert(entity, options) {
|
|
742
742
|
const entityOrError = entity || new Error(`No "${this.entityName}" entity to upsert`);
|
|
743
|
-
return this.execute('POST', this.entityUrl, entityOrError, options);
|
|
743
|
+
return this.execute('POST', this.entityUrl, entityOrError, null, options);
|
|
744
744
|
}
|
|
745
745
|
execute(method, url, data, // data, error, or undefined/null
|
|
746
746
|
options, // options or undefined/null
|
|
747
747
|
httpOptions // these override any options passed via options
|
|
748
748
|
) {
|
|
749
|
-
let
|
|
749
|
+
let entityActionHttpClientOptions = undefined;
|
|
750
750
|
if (httpOptions) {
|
|
751
|
-
|
|
751
|
+
entityActionHttpClientOptions = {
|
|
752
752
|
headers: httpOptions?.httpHeaders
|
|
753
753
|
? new HttpHeaders(httpOptions?.httpHeaders)
|
|
754
754
|
: undefined,
|
|
@@ -757,21 +757,24 @@ class DefaultDataService {
|
|
|
757
757
|
: undefined,
|
|
758
758
|
};
|
|
759
759
|
}
|
|
760
|
+
// Now we may have:
|
|
761
|
+
// options: containing headers, params, or any other allowed http options already in angular's api
|
|
762
|
+
// entityActionHttpClientOptions: headers and params in angular's api
|
|
763
|
+
// We therefore need to merge these so that the action ones override the
|
|
764
|
+
// existing keys where applicable.
|
|
760
765
|
// If any options have been specified, pass them to http client. Note
|
|
761
766
|
// the new http options, if specified, will override any options passed
|
|
762
767
|
// from the deprecated options parameter
|
|
763
768
|
let mergedOptions = undefined;
|
|
764
|
-
if (options ||
|
|
765
|
-
if (isDevMode() && options &&
|
|
769
|
+
if (options || entityActionHttpClientOptions) {
|
|
770
|
+
if (isDevMode() && options && entityActionHttpClientOptions) {
|
|
766
771
|
console.warn('@ngrx/data: options.httpParams will be merged with queryParams when both are are provided to getWithQuery(). In the event of a conflict HttpOptions.httpParams will override queryParams`. The queryParams parameter of getWithQuery() will be removed in next major release.');
|
|
767
772
|
}
|
|
768
|
-
mergedOptions = {
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
mergedOptions.params = ngHttpClientOptions?.params ?? options?.params;
|
|
774
|
-
}
|
|
773
|
+
mergedOptions = {
|
|
774
|
+
...options,
|
|
775
|
+
headers: entityActionHttpClientOptions?.headers ?? options?.headers,
|
|
776
|
+
params: entityActionHttpClientOptions?.params ?? options?.params,
|
|
777
|
+
};
|
|
775
778
|
}
|
|
776
779
|
const req = {
|
|
777
780
|
method,
|
|
@@ -785,7 +788,7 @@ class DefaultDataService {
|
|
|
785
788
|
let result$;
|
|
786
789
|
switch (method) {
|
|
787
790
|
case 'DELETE': {
|
|
788
|
-
result$ = this.http.delete(url,
|
|
791
|
+
result$ = this.http.delete(url, mergedOptions);
|
|
789
792
|
if (this.saveDelay) {
|
|
790
793
|
result$ = result$.pipe(delay(this.saveDelay));
|
|
791
794
|
}
|
|
@@ -799,7 +802,7 @@ class DefaultDataService {
|
|
|
799
802
|
break;
|
|
800
803
|
}
|
|
801
804
|
case 'POST': {
|
|
802
|
-
result$ = this.http.post(url, data,
|
|
805
|
+
result$ = this.http.post(url, data, mergedOptions);
|
|
803
806
|
if (this.saveDelay) {
|
|
804
807
|
result$ = result$.pipe(delay(this.saveDelay));
|
|
805
808
|
}
|
|
@@ -807,7 +810,7 @@ class DefaultDataService {
|
|
|
807
810
|
}
|
|
808
811
|
// N.B.: It must return an Update<T>
|
|
809
812
|
case 'PUT': {
|
|
810
|
-
result$ = this.http.put(url, data,
|
|
813
|
+
result$ = this.http.put(url, data, mergedOptions);
|
|
811
814
|
if (this.saveDelay) {
|
|
812
815
|
result$ = result$.pipe(delay(this.saveDelay));
|
|
813
816
|
}
|
|
@@ -862,10 +865,10 @@ class DefaultDataServiceFactory {
|
|
|
862
865
|
create(entityName) {
|
|
863
866
|
return new DefaultDataService(entityName, this.http, this.httpUrlGenerator, this.config);
|
|
864
867
|
}
|
|
868
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultDataServiceFactory, deps: [{ token: i1.HttpClient }, { token: HttpUrlGenerator }, { token: DefaultDataServiceConfig, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
869
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultDataServiceFactory }); }
|
|
865
870
|
}
|
|
866
|
-
|
|
867
|
-
/** @nocollapse */ DefaultDataServiceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultDataServiceFactory });
|
|
868
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultDataServiceFactory, decorators: [{
|
|
871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultDataServiceFactory, decorators: [{
|
|
869
872
|
type: Injectable
|
|
870
873
|
}], ctorParameters: function () { return [{ type: i1.HttpClient }, { type: HttpUrlGenerator }, { type: DefaultDataServiceConfig, decorators: [{
|
|
871
874
|
type: Optional
|
|
@@ -981,10 +984,10 @@ class EntityDefinitionService {
|
|
|
981
984
|
registerDefinitions(definitions) {
|
|
982
985
|
Object.assign(this.definitions, definitions);
|
|
983
986
|
}
|
|
987
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDefinitionService, deps: [{ token: ENTITY_METADATA_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
988
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDefinitionService }); }
|
|
984
989
|
}
|
|
985
|
-
|
|
986
|
-
/** @nocollapse */ EntityDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDefinitionService });
|
|
987
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDefinitionService, decorators: [{
|
|
990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDefinitionService, decorators: [{
|
|
988
991
|
type: Injectable
|
|
989
992
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
990
993
|
type: Optional
|
|
@@ -1121,10 +1124,10 @@ class EntityCacheDataService {
|
|
|
1121
1124
|
}
|
|
1122
1125
|
return idSelector;
|
|
1123
1126
|
}
|
|
1127
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheDataService, deps: [{ token: EntityDefinitionService }, { token: i1.HttpClient }, { token: DefaultDataServiceConfig, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1128
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheDataService }); }
|
|
1124
1129
|
}
|
|
1125
|
-
|
|
1126
|
-
/** @nocollapse */ EntityCacheDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDataService });
|
|
1127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDataService, decorators: [{
|
|
1130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheDataService, decorators: [{
|
|
1128
1131
|
type: Injectable
|
|
1129
1132
|
}], ctorParameters: function () { return [{ type: EntityDefinitionService }, { type: i1.HttpClient }, { type: DefaultDataServiceConfig, decorators: [{
|
|
1130
1133
|
type: Optional
|
|
@@ -1183,10 +1186,10 @@ class EntityDataService {
|
|
|
1183
1186
|
registerServices(services) {
|
|
1184
1187
|
this.services = { ...this.services, ...services };
|
|
1185
1188
|
}
|
|
1189
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataService, deps: [{ token: DefaultDataServiceFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1190
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataService }); }
|
|
1186
1191
|
}
|
|
1187
|
-
|
|
1188
|
-
/** @nocollapse */ EntityDataService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataService });
|
|
1189
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataService, decorators: [{
|
|
1192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataService, decorators: [{
|
|
1190
1193
|
type: Injectable
|
|
1191
1194
|
}], ctorParameters: function () { return [{ type: DefaultDataServiceFactory }]; } });
|
|
1192
1195
|
|
|
@@ -1226,10 +1229,10 @@ class DefaultPersistenceResultHandler {
|
|
|
1226
1229
|
return action;
|
|
1227
1230
|
};
|
|
1228
1231
|
}
|
|
1232
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultPersistenceResultHandler, deps: [{ token: Logger }, { token: EntityActionFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1233
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultPersistenceResultHandler }); }
|
|
1229
1234
|
}
|
|
1230
|
-
|
|
1231
|
-
/** @nocollapse */ DefaultPersistenceResultHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPersistenceResultHandler });
|
|
1232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPersistenceResultHandler, decorators: [{
|
|
1235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultPersistenceResultHandler, decorators: [{
|
|
1233
1236
|
type: Injectable
|
|
1234
1237
|
}], ctorParameters: function () { return [{ type: Logger }, { type: EntityActionFactory }]; } });
|
|
1235
1238
|
|
|
@@ -1264,10 +1267,10 @@ class CorrelationIdGenerator {
|
|
|
1264
1267
|
this.seed += 1;
|
|
1265
1268
|
return this.prefix + this.seed;
|
|
1266
1269
|
}
|
|
1270
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: CorrelationIdGenerator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1271
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: CorrelationIdGenerator }); }
|
|
1267
1272
|
}
|
|
1268
|
-
|
|
1269
|
-
/** @nocollapse */ CorrelationIdGenerator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorrelationIdGenerator });
|
|
1270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: CorrelationIdGenerator, decorators: [{
|
|
1273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: CorrelationIdGenerator, decorators: [{
|
|
1271
1274
|
type: Injectable
|
|
1272
1275
|
}] });
|
|
1273
1276
|
|
|
@@ -1292,10 +1295,10 @@ class EntityDispatcherDefaultOptions {
|
|
|
1292
1295
|
/** True if entities in a cache saveEntities request are saved optimistically; false if saved pessimistically. */
|
|
1293
1296
|
this.optimisticSaveEntities = false;
|
|
1294
1297
|
}
|
|
1298
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDispatcherDefaultOptions, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1299
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDispatcherDefaultOptions }); }
|
|
1295
1300
|
}
|
|
1296
|
-
|
|
1297
|
-
/** @nocollapse */ EntityDispatcherDefaultOptions.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherDefaultOptions });
|
|
1298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherDefaultOptions, decorators: [{
|
|
1301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDispatcherDefaultOptions, decorators: [{
|
|
1299
1302
|
type: Injectable
|
|
1300
1303
|
}] });
|
|
1301
1304
|
|
|
@@ -1441,10 +1444,10 @@ class EntityCacheDispatcher {
|
|
|
1441
1444
|
: throwError(act.payload);
|
|
1442
1445
|
}));
|
|
1443
1446
|
}
|
|
1447
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheDispatcher, deps: [{ token: CorrelationIdGenerator }, { token: EntityDispatcherDefaultOptions }, { token: ScannedActionsSubject }, { token: i3.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1448
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheDispatcher }); }
|
|
1444
1449
|
}
|
|
1445
|
-
|
|
1446
|
-
/** @nocollapse */ EntityCacheDispatcher.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDispatcher });
|
|
1447
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheDispatcher, decorators: [{
|
|
1450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheDispatcher, decorators: [{
|
|
1448
1451
|
type: Injectable
|
|
1449
1452
|
}], ctorParameters: function () { return [{ type: CorrelationIdGenerator }, { type: EntityDispatcherDefaultOptions }, { type: i4.Observable, decorators: [{
|
|
1450
1453
|
type: Inject,
|
|
@@ -1923,10 +1926,10 @@ class EntityDispatcherFactory {
|
|
|
1923
1926
|
ngOnDestroy() {
|
|
1924
1927
|
this.raSubscription.unsubscribe();
|
|
1925
1928
|
}
|
|
1929
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", 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 }); }
|
|
1930
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDispatcherFactory }); }
|
|
1926
1931
|
}
|
|
1927
|
-
|
|
1928
|
-
/** @nocollapse */ EntityDispatcherFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherFactory });
|
|
1929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDispatcherFactory, decorators: [{
|
|
1932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDispatcherFactory, decorators: [{
|
|
1930
1933
|
type: Injectable
|
|
1931
1934
|
}], ctorParameters: function () { return [{ type: EntityActionFactory }, { type: i3.Store }, { type: EntityDispatcherDefaultOptions }, { type: i4.Observable, decorators: [{
|
|
1932
1935
|
type: Inject,
|
|
@@ -2029,10 +2032,10 @@ class EntityCacheEffects {
|
|
|
2029
2032
|
return merge(entityNames.map((name) => entityActionFactory.create(name, EntityOp.SET_LOADING, false)));
|
|
2030
2033
|
};
|
|
2031
2034
|
}
|
|
2035
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", 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 }); }
|
|
2036
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheEffects }); }
|
|
2032
2037
|
}
|
|
2033
|
-
|
|
2034
|
-
/** @nocollapse */ EntityCacheEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheEffects });
|
|
2035
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheEffects, decorators: [{
|
|
2038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheEffects, decorators: [{
|
|
2036
2039
|
type: Injectable
|
|
2037
2040
|
}], ctorParameters: function () { return [{ type: i1$1.Actions }, { type: EntityCacheDataService }, { type: EntityActionFactory }, { type: Logger }, { type: undefined, decorators: [{
|
|
2038
2041
|
type: Optional
|
|
@@ -2165,10 +2168,10 @@ class EntityEffects {
|
|
|
2165
2168
|
// as app likely assumes asynchronous response.
|
|
2166
2169
|
return of(successAction).pipe(delay(this.responseDelay, this.scheduler || asyncScheduler));
|
|
2167
2170
|
}
|
|
2171
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", 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 }); }
|
|
2172
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityEffects }); }
|
|
2168
2173
|
}
|
|
2169
|
-
|
|
2170
|
-
/** @nocollapse */ EntityEffects.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityEffects });
|
|
2171
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityEffects, decorators: [{
|
|
2174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityEffects, decorators: [{
|
|
2172
2175
|
type: Injectable
|
|
2173
2176
|
}], ctorParameters: function () { return [{ type: i1$1.Actions }, { type: EntityDataService }, { type: EntityActionFactory }, { type: PersistenceResultHandler }, { type: undefined, decorators: [{
|
|
2174
2177
|
type: Optional
|
|
@@ -2486,10 +2489,10 @@ class EntityCollectionCreator {
|
|
|
2486
2489
|
const initialState = def && def.initialState;
|
|
2487
2490
|
return (initialState || createEmptyEntityCollection(entityName));
|
|
2488
2491
|
}
|
|
2492
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionCreator, deps: [{ token: EntityDefinitionService, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2493
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionCreator }); }
|
|
2489
2494
|
}
|
|
2490
|
-
|
|
2491
|
-
/** @nocollapse */ EntityCollectionCreator.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionCreator });
|
|
2492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionCreator, decorators: [{
|
|
2495
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionCreator, decorators: [{
|
|
2493
2496
|
type: Injectable
|
|
2494
2497
|
}], ctorParameters: function () { return [{ type: EntityDefinitionService, decorators: [{
|
|
2495
2498
|
type: Optional
|
|
@@ -2581,10 +2584,10 @@ class EntitySelectorsFactory {
|
|
|
2581
2584
|
...entitySelectors,
|
|
2582
2585
|
};
|
|
2583
2586
|
}
|
|
2587
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntitySelectorsFactory, deps: [{ token: EntityCollectionCreator, optional: true }, { token: ENTITY_CACHE_SELECTOR_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2588
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntitySelectorsFactory }); }
|
|
2584
2589
|
}
|
|
2585
|
-
|
|
2586
|
-
/** @nocollapse */ EntitySelectorsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectorsFactory });
|
|
2587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectorsFactory, decorators: [{
|
|
2590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntitySelectorsFactory, decorators: [{
|
|
2588
2591
|
type: Injectable
|
|
2589
2592
|
}], ctorParameters: function () { return [{ type: EntityCollectionCreator, decorators: [{
|
|
2590
2593
|
type: Optional
|
|
@@ -2629,10 +2632,10 @@ class EntitySelectors$Factory {
|
|
|
2629
2632
|
selectors$['errors$'] = this.entityActionErrors$.pipe(ofEntityType(entityName));
|
|
2630
2633
|
return selectors$;
|
|
2631
2634
|
}
|
|
2635
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntitySelectors$Factory, deps: [{ token: i3.Store }, { token: i1$1.Actions }, { token: ENTITY_CACHE_SELECTOR_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2636
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntitySelectors$Factory }); }
|
|
2632
2637
|
}
|
|
2633
|
-
|
|
2634
|
-
/** @nocollapse */ EntitySelectors$Factory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectors$Factory });
|
|
2635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntitySelectors$Factory, decorators: [{
|
|
2638
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntitySelectors$Factory, decorators: [{
|
|
2636
2639
|
type: Injectable
|
|
2637
2640
|
}], ctorParameters: function () { return [{ type: i3.Store }, { type: i1$1.Actions }, { type: undefined, decorators: [{
|
|
2638
2641
|
type: Inject,
|
|
@@ -2664,10 +2667,10 @@ class EntityCollectionServiceElementsFactory {
|
|
|
2664
2667
|
selectors$,
|
|
2665
2668
|
};
|
|
2666
2669
|
}
|
|
2670
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionServiceElementsFactory, deps: [{ token: EntityDispatcherFactory }, { token: EntityDefinitionService }, { token: EntitySelectorsFactory }, { token: EntitySelectors$Factory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2671
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionServiceElementsFactory }); }
|
|
2667
2672
|
}
|
|
2668
|
-
|
|
2669
|
-
/** @nocollapse */ EntityCollectionServiceElementsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceElementsFactory });
|
|
2670
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceElementsFactory, decorators: [{
|
|
2673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionServiceElementsFactory, decorators: [{
|
|
2671
2674
|
type: Injectable
|
|
2672
2675
|
}], ctorParameters: function () { return [{ type: EntityDispatcherFactory }, { type: EntityDefinitionService }, { type: EntitySelectorsFactory }, { type: EntitySelectors$Factory }]; } });
|
|
2673
2676
|
|
|
@@ -2688,10 +2691,10 @@ class EntityCollectionServiceFactory {
|
|
|
2688
2691
|
create(entityName) {
|
|
2689
2692
|
return new EntityCollectionServiceBase(entityName, this.entityCollectionServiceElementsFactory);
|
|
2690
2693
|
}
|
|
2694
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionServiceFactory, deps: [{ token: EntityCollectionServiceElementsFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2695
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionServiceFactory }); }
|
|
2691
2696
|
}
|
|
2692
|
-
|
|
2693
|
-
/** @nocollapse */ EntityCollectionServiceFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceFactory });
|
|
2694
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionServiceFactory, decorators: [{
|
|
2697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionServiceFactory, decorators: [{
|
|
2695
2698
|
type: Injectable
|
|
2696
2699
|
}], ctorParameters: function () { return [{ type: EntityCollectionServiceElementsFactory }]; } });
|
|
2697
2700
|
|
|
@@ -2715,10 +2718,10 @@ class EntityServicesElements {
|
|
|
2715
2718
|
this.entityCache$ = entitySelectors$Factory.entityCache$;
|
|
2716
2719
|
this.reducedActions$ = entityDispatcherFactory.reducedActions$;
|
|
2717
2720
|
}
|
|
2721
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityServicesElements, deps: [{ token: EntityCollectionServiceFactory }, { token: EntityDispatcherFactory }, { token: EntitySelectors$Factory }, { token: i3.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2722
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityServicesElements }); }
|
|
2718
2723
|
}
|
|
2719
|
-
|
|
2720
|
-
/** @nocollapse */ EntityServicesElements.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesElements });
|
|
2721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesElements, decorators: [{
|
|
2724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityServicesElements, decorators: [{
|
|
2722
2725
|
type: Injectable
|
|
2723
2726
|
}], ctorParameters: function () { return [{ type: EntityCollectionServiceFactory }, { type: EntityDispatcherFactory }, { type: EntitySelectors$Factory }, { type: i3.Store }]; } });
|
|
2724
2727
|
|
|
@@ -2831,10 +2834,10 @@ class EntityServicesBase {
|
|
|
2831
2834
|
});
|
|
2832
2835
|
}
|
|
2833
2836
|
}
|
|
2837
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityServicesBase, deps: [{ token: EntityServicesElements }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2838
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityServicesBase }); }
|
|
2834
2839
|
}
|
|
2835
|
-
|
|
2836
|
-
/** @nocollapse */ EntityServicesBase.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesBase });
|
|
2837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityServicesBase, decorators: [{
|
|
2840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityServicesBase, decorators: [{
|
|
2838
2841
|
type: Injectable
|
|
2839
2842
|
}], ctorParameters: function () { return [{ type: EntityServicesElements }]; } });
|
|
2840
2843
|
|
|
@@ -4237,10 +4240,10 @@ class EntityCollectionReducerMethodsFactory {
|
|
|
4237
4240
|
const methodsClass = new EntityCollectionReducerMethods(entityName, definition);
|
|
4238
4241
|
return methodsClass.methods;
|
|
4239
4242
|
}
|
|
4243
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionReducerMethodsFactory, deps: [{ token: EntityDefinitionService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4244
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionReducerMethodsFactory }); }
|
|
4240
4245
|
}
|
|
4241
|
-
|
|
4242
|
-
/** @nocollapse */ EntityCollectionReducerMethodsFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerMethodsFactory });
|
|
4243
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerMethodsFactory, decorators: [{
|
|
4246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionReducerMethodsFactory, decorators: [{
|
|
4244
4247
|
type: Injectable
|
|
4245
4248
|
}], ctorParameters: function () { return [{ type: EntityDefinitionService }]; } });
|
|
4246
4249
|
|
|
@@ -4258,10 +4261,10 @@ class EntityCollectionReducerFactory {
|
|
|
4258
4261
|
return reducerMethod ? reducerMethod(collection, action) : collection;
|
|
4259
4262
|
};
|
|
4260
4263
|
}
|
|
4264
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionReducerFactory, deps: [{ token: EntityCollectionReducerMethodsFactory }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4265
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionReducerFactory }); }
|
|
4261
4266
|
}
|
|
4262
|
-
|
|
4263
|
-
/** @nocollapse */ EntityCollectionReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerFactory });
|
|
4264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerFactory, decorators: [{
|
|
4267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionReducerFactory, decorators: [{
|
|
4265
4268
|
type: Injectable
|
|
4266
4269
|
}], ctorParameters: function () { return [{ type: EntityCollectionReducerMethodsFactory }]; } });
|
|
4267
4270
|
|
|
@@ -4316,10 +4319,10 @@ class EntityCollectionReducerRegistry {
|
|
|
4316
4319
|
const keys = reducers ? Object.keys(reducers) : [];
|
|
4317
4320
|
keys.forEach((key) => this.registerReducer(key, reducers[key]));
|
|
4318
4321
|
}
|
|
4322
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionReducerRegistry, deps: [{ token: EntityCollectionReducerFactory }, { token: ENTITY_COLLECTION_META_REDUCERS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4323
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionReducerRegistry }); }
|
|
4319
4324
|
}
|
|
4320
|
-
|
|
4321
|
-
/** @nocollapse */ EntityCollectionReducerRegistry.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerRegistry });
|
|
4322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCollectionReducerRegistry, decorators: [{
|
|
4325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCollectionReducerRegistry, decorators: [{
|
|
4323
4326
|
type: Injectable
|
|
4324
4327
|
}], ctorParameters: function () { return [{ type: EntityCollectionReducerFactory }, { type: undefined, decorators: [{
|
|
4325
4328
|
type: Optional
|
|
@@ -4583,10 +4586,10 @@ class EntityCacheReducerFactory {
|
|
|
4583
4586
|
});
|
|
4584
4587
|
return entityCache;
|
|
4585
4588
|
}
|
|
4589
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheReducerFactory, deps: [{ token: EntityCollectionCreator }, { token: EntityCollectionReducerRegistry }, { token: Logger }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4590
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheReducerFactory }); }
|
|
4586
4591
|
}
|
|
4587
|
-
|
|
4588
|
-
/** @nocollapse */ EntityCacheReducerFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheReducerFactory });
|
|
4589
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityCacheReducerFactory, decorators: [{
|
|
4592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityCacheReducerFactory, decorators: [{
|
|
4590
4593
|
type: Injectable
|
|
4591
4594
|
}], ctorParameters: function () { return [{ type: EntityCollectionCreator }, { type: EntityCollectionReducerRegistry }, { type: Logger }]; } });
|
|
4592
4595
|
|
|
@@ -4606,10 +4609,10 @@ class DefaultLogger {
|
|
|
4606
4609
|
extra ? console.warn(message, extra) : console.warn(message);
|
|
4607
4610
|
}
|
|
4608
4611
|
}
|
|
4612
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultLogger, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4613
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultLogger }); }
|
|
4609
4614
|
}
|
|
4610
|
-
|
|
4611
|
-
/** @nocollapse */ DefaultLogger.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultLogger });
|
|
4612
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultLogger, decorators: [{
|
|
4615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultLogger, decorators: [{
|
|
4613
4616
|
type: Injectable
|
|
4614
4617
|
}] });
|
|
4615
4618
|
|
|
@@ -4669,10 +4672,10 @@ class DefaultPluralizer {
|
|
|
4669
4672
|
registerPluralNames(pluralNames) {
|
|
4670
4673
|
this.pluralNames = { ...this.pluralNames, ...(pluralNames || {}) };
|
|
4671
4674
|
}
|
|
4675
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultPluralizer, deps: [{ token: PLURAL_NAMES_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4676
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultPluralizer }); }
|
|
4672
4677
|
}
|
|
4673
|
-
|
|
4674
|
-
/** @nocollapse */ DefaultPluralizer.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPluralizer });
|
|
4675
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: DefaultPluralizer, decorators: [{
|
|
4678
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: DefaultPluralizer, decorators: [{
|
|
4676
4679
|
type: Injectable
|
|
4677
4680
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
4678
4681
|
type: Optional
|
|
@@ -4951,11 +4954,11 @@ class EntityDataModuleWithoutEffects {
|
|
|
4951
4954
|
providers: [provideEntityDataConfig(config)],
|
|
4952
4955
|
};
|
|
4953
4956
|
}
|
|
4957
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataModuleWithoutEffects, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4958
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataModuleWithoutEffects }); }
|
|
4959
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataModuleWithoutEffects, providers: [BASE_ENTITY_DATA_PROVIDERS] }); }
|
|
4954
4960
|
}
|
|
4955
|
-
|
|
4956
|
-
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModuleWithoutEffects });
|
|
4957
|
-
/** @nocollapse */ EntityDataModuleWithoutEffects.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModuleWithoutEffects, providers: [BASE_ENTITY_DATA_PROVIDERS] });
|
|
4958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModuleWithoutEffects, decorators: [{
|
|
4961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataModuleWithoutEffects, decorators: [{
|
|
4959
4962
|
type: NgModule,
|
|
4960
4963
|
args: [{
|
|
4961
4964
|
providers: [BASE_ENTITY_DATA_PROVIDERS],
|
|
@@ -4974,11 +4977,11 @@ class EntityDataModule {
|
|
|
4974
4977
|
providers: [provideEntityDataConfig(config)],
|
|
4975
4978
|
};
|
|
4976
4979
|
}
|
|
4980
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4981
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataModule, imports: [EntityDataModuleWithoutEffects] }); }
|
|
4982
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataModule, providers: [ENTITY_DATA_EFFECTS_PROVIDERS], imports: [EntityDataModuleWithoutEffects] }); }
|
|
4977
4983
|
}
|
|
4978
|
-
|
|
4979
|
-
/** @nocollapse */ EntityDataModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModule, imports: [EntityDataModuleWithoutEffects] });
|
|
4980
|
-
/** @nocollapse */ EntityDataModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModule, providers: [ENTITY_DATA_EFFECTS_PROVIDERS], imports: [EntityDataModuleWithoutEffects] });
|
|
4981
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: EntityDataModule, decorators: [{
|
|
4984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.2", ngImport: i0, type: EntityDataModule, decorators: [{
|
|
4982
4985
|
type: NgModule,
|
|
4983
4986
|
args: [{
|
|
4984
4987
|
imports: [EntityDataModuleWithoutEffects],
|