@barcidev/ngx-autogen 0.1.69 → 0.1.71

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@barcidev/ngx-autogen",
3
- "version": "0.1.69",
3
+ "version": "0.1.71",
4
4
  "description": "A collection of Angular schematics for essential functionalities.",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -30,7 +30,7 @@ export const <%= classify(name) %>Store = signalStore(
30
30
  withEntities(config),
31
31
  withEntityStatus(),
32
32
  withPagination(),
33
- withComputed(({ entities, entityMap, status: { idSelected } }) => ({
33
+ withComputed(({ entityMap, status: { idSelected } }) => ({
34
34
  <%= camelize(name) %>Seleccionado: computed(() => {
35
35
  const <%= pk %> = idSelected();
36
36
  return <%= pk %> ? entityMap()[<%= pk %>] : null;
@@ -211,10 +211,10 @@ export const <%= classify(name) %>Store = signalStore(
211
211
  );
212
212
 
213
213
  export function provide<%= classify(name) %>Store() {
214
- <% if (isProvideInRoot) { %> return [
215
- <%= classify(name) %>Service,
214
+ <% if (isProvideInRoot) { %> return [
216
215
  <%= classify(name) %>Store,
217
- ];<% } else { %> return [
216
+ ]; <% } else { %> return [
217
+ <%= classify(name) %>Service,
218
218
  <%= classify(name) %>Store,
219
219
  ];<% } %>
220
220
  }