ngrx-entity-crud 12.8.6 → 12.9.0-beta.4

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 (25) hide show
  1. package/README.md +77 -20
  2. package/bundles/ngrx-entity-crud.umd.js +1 -0
  3. package/bundles/ngrx-entity-crud.umd.js.map +1 -1
  4. package/esm2015/public-api.js +2 -2
  5. package/fesm2015/ngrx-entity-crud.js +1 -1
  6. package/ngrx-entity-crud.metadata.json +1 -1
  7. package/package.json +6 -1
  8. package/public-api.d.ts +1 -1
  9. package/public-api.d.ts.map +1 -1
  10. package/schematics/ng-add/files/root-store/index.d.ts +0 -1
  11. package/schematics/ng-add/files/root-store/index.ts +0 -1
  12. package/schematics/ng-add/files/root-store/root-store.module.ts +0 -2
  13. package/schematics/ng-add/files/root-store/router-store/selectors.ts +1 -1
  14. package/schematics/ng-add/index.js +3 -26
  15. package/schematics/ng-add/index.js.map +1 -1
  16. package/schematics/ng-add/files/root-store/slide-menu-store/actions.ts +0 -11
  17. package/schematics/ng-add/files/root-store/slide-menu-store/effects.ts +0 -10
  18. package/schematics/ng-add/files/root-store/slide-menu-store/index.d.ts +0 -13
  19. package/schematics/ng-add/files/root-store/slide-menu-store/index.ts +0 -13
  20. package/schematics/ng-add/files/root-store/slide-menu-store/names.ts +0 -3
  21. package/schematics/ng-add/files/root-store/slide-menu-store/operators.ts +0 -24
  22. package/schematics/ng-add/files/root-store/slide-menu-store/reducer.ts +0 -8
  23. package/schematics/ng-add/files/root-store/slide-menu-store/selectors.ts +0 -41
  24. package/schematics/ng-add/files/root-store/slide-menu-store/slide-menu-store.module.ts +0 -27
  25. package/schematics/ng-add/files/root-store/slide-menu-store/state.ts +0 -14
package/README.md CHANGED
@@ -38,48 +38,105 @@ Name of the class that will be managed
38
38
  - Default: `false`
39
39
 
40
40
  Store type:
41
- - CRUD: generate action, effect and reducer for the crud management of the entity.
41
+ - CRUD-PLURAL: generate action, effect and reducer for the crud management of the entity.
42
+ - CRUD-SINGULAR: generate action, effect and reducer for the crud management of the entity.
43
+ - CRUD+GRAPHQL: generate action, effect and reducer for the crud management of the entity.
42
44
  - BASE: generate an empty boilerplate
43
45
 
46
+
44
47
  - `--type`
45
48
  - Type: `string`
46
- - Enum: `"CRUD" or "BASE"`
49
+ - Enum: `"CRUD-PLURAL", "CRUD-SINGULAR", "CRUD+GRAPHQL", "BASE"`
47
50
  - Default: `false`
48
51
 
49
52
  #### Examples
50
53
 
51
54
  ```sh
52
- ng generate ngrx-entity-crud:store --name=coin --clazz=Coin --type=CRUD
55
+ ng generate ngrx-entity-crud:store --name=coin --clazz=Coin --type=CRUD-PLURAL
53
56
  ```
57
+ <details><summary>Show files generated/changed</summary>
54
58
 
55
- or
59
+ ```shell
60
+ CREATE src/app/main/models/vo/coin.ts (221 bytes)
61
+ CREATE src/app/root-store/coin-store/coin-store.module.ts (807 bytes)
62
+ CREATE src/app/root-store/coin-store/coin.actions.ts (779 bytes)
63
+ CREATE src/app/root-store/coin-store/coin.effects.ts (3184 bytes)
64
+ CREATE src/app/root-store/coin-store/coin.names.ts (46 bytes)
65
+ CREATE src/app/root-store/coin-store/coin.reducer.ts (2045 bytes)
66
+ CREATE src/app/root-store/coin-store/coin.selectors.ts (673 bytes)
67
+ CREATE src/app/root-store/coin-store/coin.state.ts (385 bytes)
68
+ CREATE src/app/root-store/coin-store/index.d.ts (282 bytes)
69
+ CREATE src/app/root-store/coin-store/index.ts (284 bytes)
70
+ CREATE src/app/main/services/coin.service.ts (344 bytes)
71
+
72
+ UPDATE src/app/root-store/index.ts (309 bytes)
73
+ UPDATE src/app/root-store/index.d.ts (309 bytes)
74
+ UPDATE src/app/root-store/state.ts (217 bytes)
75
+ UPDATE src/app/root-store/selectors.ts (665 bytes)
76
+ UPDATE src/app/root-store/root-store.module.ts (1051 bytes)
77
+
78
+ ```
79
+ </details>
56
80
 
57
81
  ```sh
58
- ng generate ngrx-entity-crud:store --name=coin --clazz=Coin --type=BASE
82
+ ng generate ngrx-entity-crud:store --name=coin --clazz=Coin --type=CRUD-SINGULAR
59
83
  ```
84
+ <details><summary>Show files generated/changed</summary>
60
85
 
61
- #### Files generated/changed by the “:store” command
86
+ ```shell
87
+ CREATE src/app/main/models/vo/coin.ts (221 bytes)
88
+ CREATE src/app/root-store/coin-store/coin-store.module.ts (827 bytes)
89
+ CREATE src/app/root-store/coin-store/coin.actions.ts (524 bytes)
90
+ CREATE src/app/root-store/coin-store/coin.effects.ts (1470 bytes)
91
+ CREATE src/app/root-store/coin-store/coin.names.ts (46 bytes)
92
+ CREATE src/app/root-store/coin-store/coin.reducer.ts (1015 bytes)
93
+ CREATE src/app/root-store/coin-store/coin.selectors.ts (516 bytes)
94
+ CREATE src/app/root-store/coin-store/coin.state.ts (257 bytes)
95
+ CREATE src/app/root-store/coin-store/index.d.ts (282 bytes)
96
+ CREATE src/app/root-store/coin-store/index.ts (282 bytes)
97
+ CREATE src/app/main/services/coin.service.ts (360 bytes)
98
+
99
+ UPDATE src/app/root-store/index.ts (309 bytes)
100
+ UPDATE src/app/root-store/index.d.ts (309 bytes)
101
+ UPDATE src/app/root-store/state.ts (217 bytes)
102
+ UPDATE src/app/root-store/selectors.ts (665 bytes)
103
+ UPDATE src/app/root-store/root-store.module.ts (1051 bytes)
104
+
105
+ ```
106
+ </details>
62
107
 
63
108
  ```sh
64
- CREATE src/app/root-store/coin-store/coin-store.module.ts (787 bytes)
65
- CREATE src/app/root-store/coin-store/__clazz@dasherize__.actions.ts (462 bytes)
66
- CREATE src/app/root-store/coin-store/__clazz@dasherize__.effects.ts (1186 bytes)
67
- CREATE src/app/root-store/coin-store/index.d.ts (265 bytes)
68
- CREATE src/app/root-store/coin-store/index.ts (267 bytes)
69
- CREATE src/app/root-store/coin-store/__clazz@dasherize__.names.ts (46 bytes)
70
- CREATE src/app/root-store/coin-store/__clazz@dasherize__.reducer.ts (162 bytes)
71
- CREATE src/app/root-store/coin-store/__clazz@dasherize__.selectors.ts (543 bytes)
72
- CREATE src/app/root-store/coin-store/__clazz@dasherize__.state.ts (385 bytes)
73
- CREATE src/app/main/services/coin.service.ts (347 bytes)
74
- CREATE src/app/main/models/vo/coin.ts (221 bytes)
109
+ ng generate ngrx-entity-crud:store --name=coin --clazz=Coin --type=CRUD+GRAPHQL
110
+ ```
111
+ <details><summary>Show files generated/changed</summary>
112
+
113
+ </details>
75
114
 
76
- UPDATE src/app/root-store/index.ts (309 bytes)
115
+ ```sh
116
+ ng generate ngrx-entity-crud:store --name=coin --clazz=Coin --type=BASE
117
+ ```
118
+ <details><summary>Show files generated/changed</summary>
119
+
120
+ ```shell
121
+ CREATE src/app/root-store/coin-store/coin-store.module.ts (807 bytes)
122
+ CREATE src/app/root-store/coin-store/coin.actions.ts (319 bytes)
123
+ CREATE src/app/root-store/coin-store/coin.effects.ts (190 bytes)
124
+ CREATE src/app/root-store/coin-store/coin.names.ts (46 bytes)
125
+ CREATE src/app/root-store/coin-store/coin.reducer.ts (337 bytes)
126
+ CREATE src/app/root-store/coin-store/coin.selectors.ts (593 bytes)
127
+ CREATE src/app/root-store/coin-store/coin.state.ts (116 bytes)
128
+ CREATE src/app/root-store/coin-store/index.d.ts (282 bytes)
129
+ CREATE src/app/root-store/coin-store/index.ts (282 bytes)
130
+ CREATE src/app/main/models/vo/coin.ts (137 bytes)
131
+
132
+ UPDATE src/app/root-store/index.ts (309 bytes)
77
133
  UPDATE src/app/root-store/index.d.ts (309 bytes)
78
- UPDATE src/app/root-store/__clazz@dasherize__.state.ts (217 bytes)
79
- UPDATE src/app/root-store/__clazz@dasherize__.selectors.ts (665 bytes)
134
+ UPDATE src/app/root-store/state.ts (184 bytes)
80
135
  UPDATE src/app/root-store/root-store.module.ts (1051 bytes)
81
136
  ```
137
+ </details>
82
138
 
139
+ #### Files generated/changed by the “:store” command
83
140
 
84
141
  ## section
85
142
 
@@ -1919,6 +1919,7 @@
1919
1919
  exports.editRequest = editRequest;
1920
1920
  exports.editRequestEffect = editRequestEffect;
1921
1921
  exports.editResponse = editResponse;
1922
+ exports.evalData = evalData;
1922
1923
  exports.getInitialSingleCrudState = getInitialSingleCrudState;
1923
1924
  exports.getSingeCrudSelectors = getSingeCrudSelectors;
1924
1925
  exports.searchCall = searchCall;