@angular-architects/ngrx-toolkit 0.0.6 → 0.1.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.
Files changed (61) hide show
  1. package/.eslintrc.json +43 -0
  2. package/README.md +404 -369
  3. package/jest.config.ts +22 -0
  4. package/ng-package.json +7 -0
  5. package/package.json +3 -16
  6. package/project.json +37 -0
  7. package/{index.d.ts → src/index.ts} +4 -2
  8. package/src/lib/assertions/assertions.ts +9 -0
  9. package/src/lib/redux-connector/create-redux.ts +94 -0
  10. package/{lib/redux-connector/index.d.ts → src/lib/redux-connector/index.ts} +1 -0
  11. package/src/lib/redux-connector/model.ts +67 -0
  12. package/{lib/redux-connector/rxjs-interop/index.d.ts → src/lib/redux-connector/rxjs-interop/index.ts} +1 -0
  13. package/src/lib/redux-connector/rxjs-interop/redux-method.ts +61 -0
  14. package/src/lib/redux-connector/signal-redux-store.ts +54 -0
  15. package/src/lib/redux-connector/util.ts +22 -0
  16. package/src/lib/shared/empty.ts +2 -0
  17. package/src/lib/with-call-state.spec.ts +24 -0
  18. package/src/lib/with-call-state.ts +136 -0
  19. package/src/lib/with-data-service.ts +312 -0
  20. package/src/lib/with-devtools.spec.ts +157 -0
  21. package/src/lib/with-devtools.ts +128 -0
  22. package/src/lib/with-redux.spec.ts +100 -0
  23. package/src/lib/with-redux.ts +261 -0
  24. package/src/lib/with-storage-sync.spec.ts +237 -0
  25. package/src/lib/with-storage-sync.ts +160 -0
  26. package/src/lib/with-undo-redo.ts +184 -0
  27. package/src/test-setup.ts +8 -0
  28. package/tsconfig.json +29 -0
  29. package/tsconfig.lib.json +17 -0
  30. package/tsconfig.lib.prod.json +9 -0
  31. package/tsconfig.spec.json +16 -0
  32. package/esm2022/angular-architects-ngrx-toolkit.mjs +0 -5
  33. package/esm2022/index.mjs +0 -8
  34. package/esm2022/lib/assertions/assertions.mjs +0 -6
  35. package/esm2022/lib/redux-connector/create-redux.mjs +0 -41
  36. package/esm2022/lib/redux-connector/index.mjs +0 -2
  37. package/esm2022/lib/redux-connector/model.mjs +0 -2
  38. package/esm2022/lib/redux-connector/rxjs-interop/index.mjs +0 -2
  39. package/esm2022/lib/redux-connector/rxjs-interop/redux-method.mjs +0 -22
  40. package/esm2022/lib/redux-connector/signal-redux-store.mjs +0 -43
  41. package/esm2022/lib/redux-connector/util.mjs +0 -13
  42. package/esm2022/lib/shared/empty.mjs +0 -2
  43. package/esm2022/lib/with-call-state.mjs +0 -58
  44. package/esm2022/lib/with-data-service.mjs +0 -161
  45. package/esm2022/lib/with-devtools.mjs +0 -79
  46. package/esm2022/lib/with-redux.mjs +0 -95
  47. package/esm2022/lib/with-undo-redo.mjs +0 -93
  48. package/fesm2022/angular-architects-ngrx-toolkit.mjs +0 -600
  49. package/fesm2022/angular-architects-ngrx-toolkit.mjs.map +0 -1
  50. package/lib/assertions/assertions.d.ts +0 -2
  51. package/lib/redux-connector/create-redux.d.ts +0 -13
  52. package/lib/redux-connector/model.d.ts +0 -36
  53. package/lib/redux-connector/rxjs-interop/redux-method.d.ts +0 -11
  54. package/lib/redux-connector/signal-redux-store.d.ts +0 -11
  55. package/lib/redux-connector/util.d.ts +0 -5
  56. package/lib/shared/empty.d.ts +0 -1
  57. package/lib/with-call-state.d.ts +0 -55
  58. package/lib/with-data-service.d.ts +0 -115
  59. package/lib/with-devtools.d.ts +0 -32
  60. package/lib/with-redux.d.ts +0 -57
  61. package/lib/with-undo-redo.d.ts +0 -55
package/.eslintrc.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "extends": ["../../.eslintrc.json"],
3
+ "ignorePatterns": ["!**/*"],
4
+ "overrides": [
5
+ {
6
+ "files": ["*.ts"],
7
+ "extends": [
8
+ "plugin:@nx/angular",
9
+ "plugin:@angular-eslint/template/process-inline-templates"
10
+ ],
11
+ "rules": {
12
+ "@angular-eslint/directive-selector": [
13
+ "error",
14
+ {
15
+ "type": "attribute",
16
+ "prefix": "ngrxToolkit",
17
+ "style": "camelCase"
18
+ }
19
+ ],
20
+ "@angular-eslint/component-selector": [
21
+ "error",
22
+ {
23
+ "type": "element",
24
+ "prefix": "ngrx-toolkit",
25
+ "style": "kebab-case"
26
+ }
27
+ ]
28
+ }
29
+ },
30
+ {
31
+ "files": ["*.html"],
32
+ "extends": ["plugin:@nx/angular-template"],
33
+ "rules": {}
34
+ },
35
+ {
36
+ "files": ["*.json"],
37
+ "parser": "jsonc-eslint-parser",
38
+ "rules": {
39
+ "@nx/dependency-checks": "error"
40
+ }
41
+ }
42
+ ]
43
+ }