ngrx-entity-crud 16.1.0 → 16.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngrx-entity-crud",
3
- "version": "16.1.0",
3
+ "version": "16.1.1",
4
4
  "repository": "https://github.com/jucasoft/ngrx-entity-crud",
5
5
  "license": "MIT",
6
6
  "schematics": "./schematics/collection.json",
@@ -43,7 +43,6 @@ export class LogoutButtonComponent implements OnInit {
43
43
  ButtonModule
44
44
  ],
45
45
  providers: [],
46
- entryComponents: []
47
46
  })
48
47
  export class LogoutButtonModule {
49
48
  }
@@ -24,7 +24,6 @@ import {InputTextModule} from 'primeng/inputtext';
24
24
  InputTextModule
25
25
  ],
26
26
  providers: [],
27
- entryComponents: []
28
27
  })
29
28
  export class LoginModule {
30
29
  }
@@ -1,7 +1,8 @@
1
1
  import {ActionReducerMap, MetaReducer} from '@ngrx/store';
2
- import {State} from '@root-store/state';
3
2
  import {environment} from '../../environments/environment';
4
3
 
5
- export const reducers: ActionReducerMap<State> = {};
4
+ export interface AppState {}
6
5
 
7
- export const metaReducers: MetaReducer<State>[] = !environment.production ? [] : [];
6
+ export const reducers: ActionReducerMap<AppState> = {};
7
+
8
+ export const metaReducers: MetaReducer<AppState>[] = !environment.production ? [] : [];
@@ -17,7 +17,6 @@ import {FormsModule, ReactiveFormsModule} from '@angular/forms';
17
17
  ReactiveFormsModule,
18
18
  ],
19
19
  providers: [],
20
- entryComponents: [],
21
20
  exports: [PopUpBaseComponent]
22
21
  })
23
22
  export class PopUpBaseModule {
@@ -3,7 +3,8 @@
3
3
  // The list of file replacements can be found in `angular.json`.
4
4
 
5
5
  export const environment = {
6
- production: false
6
+ production: false,
7
+ webServiceUri: ''
7
8
  };
8
9
 
9
10
  /*
@@ -16,14 +16,14 @@ export class <%= clazz %>EditComponent extends EditBaseComponent<<%= clazz %>> {
16
16
  form: FormGroup;
17
17
  keys: string[];
18
18
 
19
- setItemPerform(value: <%= clazz %>): void {
19
+ override setItemPerform(value: <%= clazz %>): void {
20
20
  const group = this.fb.group({});
21
21
  this.keys = Object.keys(value);
22
22
  this.keys.forEach(key => group.addControl(key, this.fb.control({value: value[key], disabled: key === 'id'})));
23
23
  this.form = group;
24
24
  }
25
25
 
26
- onSavePerform(item: <%= clazz %>): void {
26
+ override onSavePerform(item: <%= clazz %>): void {
27
27
  this.store$.dispatch(<%= clazz %>StoreActions.EditRequest({
28
28
  item, onResult: [
29
29
  // azione che verrà invocata al result della chiamata all'interno dell'effect.
@@ -27,7 +27,7 @@ import {PipesModule} from '@core/pipe/pipes.module';
27
27
  EditBaseModule
28
28
  ],
29
29
  providers: [],
30
- entryComponents: []
30
+
31
31
  })
32
32
  export class <%= clazz %>Module {
33
33
  }
@@ -20,7 +20,7 @@ import {<%= clazz %>RoutingModule} from './<%= dasherize(clazz) %>-routing.modul
20
20
  <%= clazz %>RoutingModule
21
21
  ],
22
22
  providers: [],
23
- entryComponents: []
23
+
24
24
  })
25
25
  export class <%= clazz %>Module {
26
26
  }
@@ -15,14 +15,14 @@ export class <%= clazz %>EditComponent extends PopUpBaseComponent<<%= clazz %>>
15
15
  form: FormGroup;
16
16
  keys: string[];
17
17
 
18
- setItemPerform(value: <%= clazz %>): void {
18
+ override setItemPerform(value: <%= clazz %>): void {
19
19
  const group = this.fb.group({});
20
20
  this.keys = Object.keys(value);
21
21
  this.keys.forEach(key => group.addControl(key, this.fb.control({value: value[key], disabled: key === 'id'})));
22
22
  this.form = group;
23
23
  }
24
24
 
25
- acceptPerform(mutationParams: <%= clazz %>): void {
25
+ override acceptPerform(mutationParams: <%= clazz %>): void {
26
26
  if (mutationParams.id) {
27
27
  this.store$.dispatch(<%= clazz %>StoreActions.EditRequest({
28
28
  mutationParams, onResult: [
@@ -43,7 +43,7 @@ import {ToolbarModule} from 'primeng/toolbar';
43
43
  ToolbarModule
44
44
  ],
45
45
  providers: [],
46
- entryComponents: []
46
+
47
47
  })
48
48
  export class <%= clazz %>Module {
49
49
  }
@@ -22,7 +22,7 @@ import {PipesModule} from '@core/pipe/pipes.module';
22
22
 
23
23
  ],
24
24
  providers: [],
25
- entryComponents: []
25
+
26
26
  })
27
27
  export class <%= clazz %>Module {
28
28
  }
@@ -7,5 +7,5 @@ import {BaseCrudService} from 'ngrx-entity-crud';
7
7
  providedIn: 'root'
8
8
  })
9
9
  export class <%= clazz %>Service extends BaseCrudService<<%= clazz %>> {
10
- public service = environment.webServiceUri + '<%= dasherize(clazz) %>';
10
+ public override service = environment.webServiceUri + '<%= dasherize(clazz) %>';
11
11
  }