@ngrx-traits/common 17.9.0 → 18.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/async-action/async-action.model.d.ts +2 -2
  2. package/crud-entities/crud-entities.model.d.ts +8 -8
  3. package/crud-entities/crud-entities.trait.reducer.d.ts +1 -1
  4. package/entities-pagination/entities-pagination.model.d.ts +9 -9
  5. package/entities-pagination/entities-pagination.model.internal.d.ts +3 -3
  6. package/entities-pagination/entities-pagination.trait.effects.d.ts +2 -2
  7. package/entities-pagination/entities-pagination.trait.reducer.d.ts +1 -1
  8. package/entities-sync-to-route-query-params/entities-sync-to-route-query-params.d.ts +2 -2
  9. package/esm2022/async-action/async-action.model.mjs +1 -1
  10. package/esm2022/crud-entities/crud-entities.model.mjs +1 -1
  11. package/esm2022/entities-pagination/entities-pagination.model.internal.mjs +1 -1
  12. package/esm2022/entities-pagination/entities-pagination.model.mjs +1 -1
  13. package/esm2022/entities-pagination/entities-pagination.trait.effects.mjs +6 -5
  14. package/esm2022/entities-sync-to-route-query-params/entities-sync-to-route-query-params.mjs +10 -9
  15. package/esm2022/filter-entities/filter-entities.model.internal.mjs +1 -1
  16. package/esm2022/filter-entities/filter-entities.model.mjs +1 -1
  17. package/esm2022/filter-entities/filter-entities.trait.effect.mjs +3 -3
  18. package/esm2022/load-entities/load-entities.model.mjs +1 -1
  19. package/esm2022/reset/reset.trait.mjs +1 -1
  20. package/esm2022/select-entities/select-entities.model.mjs +1 -1
  21. package/esm2022/select-entity/select-entity.model.mjs +1 -1
  22. package/esm2022/set-entity/set-entity.model.mjs +1 -1
  23. package/esm2022/sort-entities/sort-entities.model.mjs +1 -1
  24. package/esm2022/sort-entities/sort-entities.trait.effect.mjs +3 -3
  25. package/fesm2022/ngrx-traits-common.mjs +14 -13
  26. package/fesm2022/ngrx-traits-common.mjs.map +1 -1
  27. package/filter-entities/filter-entities.model.d.ts +3 -3
  28. package/filter-entities/filter-entities.model.internal.d.ts +2 -2
  29. package/filter-entities/filter-entities.trait.reducer.d.ts +1 -1
  30. package/load-entities/load-entities.model.d.ts +6 -6
  31. package/load-entities/load-entities.trait.reducer.d.ts +1 -1
  32. package/load-entity/load-entity.traits.d.ts +7 -7
  33. package/package.json +6 -6
  34. package/reset/reset.trait.d.ts +2 -2
  35. package/select-entities/select-entities.model.d.ts +7 -6
  36. package/select-entities/select-entities.trait.reducer.d.ts +1 -1
  37. package/select-entity/select-entity.model.d.ts +5 -4
  38. package/select-entity/select-entity.trait.reducer.d.ts +1 -1
  39. package/set-entity/set-entity.model.d.ts +3 -2
  40. package/set-entity/set-entity.trait.d.ts +1 -1
  41. package/sort-entities/sort-entities.model.d.ts +5 -4
  42. package/sort-entities/sort-entities.trait.reducer.d.ts +1 -1
@@ -3,9 +3,10 @@ import { insertIf, createTraitFactory, TraitEffect, toMap, camelCaseToSentence,
3
3
  import { createEntityAdapter } from '@ngrx/entity';
4
4
  import * as i0 from '@angular/core';
5
5
  import { Injectable, inject } from '@angular/core';
6
- import { createEffect, ofType, concatLatestFrom } from '@ngrx/effects';
6
+ import { createEffect, ofType } from '@ngrx/effects';
7
7
  import { of, timer, pipe, asyncScheduler } from 'rxjs';
8
8
  import { debounce, concatMap, first, map, distinctUntilChanged, startWith, pairwise, concatMapTo, filter, mapTo, tap, delay } from 'rxjs/operators';
9
+ import { concatLatestFrom } from '@ngrx/operators';
9
10
  import { ActivatedRoute, Router } from '@angular/router';
10
11
 
11
12
  const loadEntitiesTraitKey = 'loadEntities';
@@ -206,10 +207,10 @@ function createFilterTraitEffects(allActions, allSelectors, allConfigs) {
206
207
  : [allActions.loadEntities()]));
207
208
  });
208
209
  }
209
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FilterEffect, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
210
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FilterEffect }); }
210
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: FilterEffect, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
211
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: FilterEffect }); }
211
212
  }
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: FilterEffect, decorators: [{
213
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: FilterEffect, decorators: [{
213
214
  type: Injectable
214
215
  }] });
215
216
  return [FilterEffect];
@@ -544,10 +545,10 @@ function createPaginationTraitEffects(allActions, allSelectors) {
544
545
  : allActions.loadEntitiesPageFail()));
545
546
  });
546
547
  }
547
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PaginationEffect, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
548
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PaginationEffect }); }
548
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: PaginationEffect, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
549
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: PaginationEffect }); }
549
550
  }
550
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: PaginationEffect, decorators: [{
551
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: PaginationEffect, decorators: [{
551
552
  type: Injectable
552
553
  }] });
553
554
  return [PaginationEffect];
@@ -1403,10 +1404,10 @@ function createSortTraitEffect(allActions, allConfigs) {
1403
1404
  : [allActions.loadEntities()]));
1404
1405
  });
1405
1406
  }
1406
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SortEffect, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1407
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SortEffect }); }
1407
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: SortEffect, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1408
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: SortEffect }); }
1408
1409
  }
1409
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SortEffect, decorators: [{
1410
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: SortEffect, decorators: [{
1410
1411
  type: Injectable
1411
1412
  }] });
1412
1413
  return remote ? [SortEffect] : [];
@@ -1861,10 +1862,10 @@ function addEntitiesSyncToRouteQueryParams() {
1861
1862
  queryParamsHandling: 'merge', // remove to replace all query params by provided
1862
1863
  });
1863
1864
  }
1864
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SyncEntitiesStateToUrlEffect, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1865
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SyncEntitiesStateToUrlEffect }); }
1865
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: SyncEntitiesStateToUrlEffect, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
1866
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: SyncEntitiesStateToUrlEffect }); }
1866
1867
  }
1867
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SyncEntitiesStateToUrlEffect, decorators: [{
1868
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.5", ngImport: i0, type: SyncEntitiesStateToUrlEffect, decorators: [{
1868
1869
  type: Injectable
1869
1870
  }] });
1870
1871
  return [SyncEntitiesStateToUrlEffect];