imng-kendo-schematics 19.178.4 → 19.179.2

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": "imng-kendo-schematics",
3
- "version": "19.178.4",
3
+ "version": "19.179.2",
4
4
  "description": "Angular Schematics facilitating Angular, Kendo, NGRX and imng package integration",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
@@ -1,5 +1,4 @@
1
1
  import { Component, ChangeDetectionStrategy, OnInit, OnDestroy } from '@angular/core';
2
- import { <%= classify(name) %>CrudFacade } from './crud.facade';
3
2
  import { <%= classify(name) %>BaseEntryComponent } from './base-entry.component';
4
3
 
5
4
  @Component({
@@ -13,9 +12,6 @@ export class <%= classify(name) %>AddComponent extends <%= classify(name) %>Base
13
12
  public dialogTitle = 'Add <%= classify(name) %>';
14
13
  public active$ = this.facade.isNewActive$;
15
14
 
16
- constructor(facade: <%= classify(name) %>CrudFacade) {
17
- super(facade);
18
- }
19
15
  public override initForm(): void {
20
16
  super.initForm();
21
17
  this.addEditForm.patchValue({});
@@ -1,4 +1,4 @@
1
- import { OnInit, Component } from '@angular/core';
1
+ import { OnInit, Component, inject } from '@angular/core';
2
2
  import { FormGroup } from '@angular/forms';
3
3
  import { BaseDataEntryComponent } from 'imng-kendo-data-entry';<% if (hasObjects) { %>
4
4
  import { BehaviorSubject, map, Observable, switchMap } from 'rxjs';<% } %>
@@ -18,9 +18,9 @@ export abstract class <%= classify(name) %>BaseEntryComponent extends BaseDataEn
18
18
  public readonly <%= camelize(swaggerProperty.pluralizedName) %>$ = new BehaviorSubject(<%= camelize(swaggerProperty.singularizedPropertyTypeName) %>Values);<% }) %>
19
19
  public addEditForm: FormGroup<I<%= classify(name) %>Form>;
20
20
 
21
- constructor(facade: <%= classify(name) %>CrudFacade) {
22
- super(facade);<% swaggerObjectProperties.filter(t=> !t.enum).forEach(function(swaggerProperty){ %>
23
- this.<%= camelize(swaggerProperty.pluralizedName) %>$ = facade.<%= camelize(swaggerProperty.pluralizedName) %>$.pipe(
21
+ constructor() {
22
+ super(inject(<%= classify(name) %>CrudFacade));<% swaggerObjectProperties.filter(t=> !t.enum).forEach(function(swaggerProperty){ %>
23
+ this.<%= camelize(swaggerProperty.pluralizedName) %>$ = this.facade.<%= camelize(swaggerProperty.pluralizedName) %>$.pipe(
24
24
  switchMap(<%= camelize(swaggerProperty.pluralizedName) %> => this.<%= camelize(swaggerProperty.name) %>Filter$.pipe(
25
25
  map(<%= camelize(swaggerProperty.name) %>Filter => <%= camelize(swaggerProperty.name) %>Filter ? <%= camelize(swaggerProperty.pluralizedName) %>
26
26
  .filter(<%= camelize(swaggerProperty.name) %> => (<% swaggerProperty.properties.filter(f => f.name !== 'id' && f.htmlInputType !== 'object' && !f.hidden).forEach(function(swaggerSubProperty, i, arr){%>
@@ -2,7 +2,6 @@ import { Component, ChangeDetectionStrategy, OnInit, OnDestroy } from '@angular/
2
2
  import { formGroupPatcher } from 'imng-kendo-data-entry';
3
3
 
4
4
  import { <%= classify(name) %>BaseEntryComponent } from './base-entry.component';
5
- import { <%= classify(name) %>CrudFacade } from './crud.facade';
6
5
 
7
6
  @Component({
8
7
  selector: '<%= appPrefix %>-<%= dasherize(name) %>-edit',
@@ -15,9 +14,6 @@ export class <%= classify(name) %>EditComponent extends <%= classify(name) %>Bas
15
14
  public dialogTitle = 'Edit <%= classify(name) %>';
16
15
  public active$ = this.facade.isEditActive$;
17
16
 
18
- constructor(facade: <%= classify(name) %>CrudFacade) {
19
- super(facade);
20
- }
21
17
  public override initForm(): void {
22
18
  super.initForm();
23
19
  if (this.addEditForm) {