imng-kendo-schematics 19.232.4 → 19.259.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.232.4",
3
+ "version": "19.259.2",
4
4
  "description": "Angular Schematics facilitating Angular, Kendo, NGRX and imng package integration",
5
5
  "scripts": {
6
6
  "build": "tsc -p tsconfig.json",
@@ -10,7 +10,7 @@ import { of } from 'rxjs';<% } %>
10
10
 
11
11
  import { <%= classify(name) %>AddComponent } from './add.component';
12
12
  import { <%= classify(name) %>CrudFacade } from './crud.facade';<% if (modelFolderLocation) { %>
13
- import { I<%= classify(singularizedName) %>, createTest<%= classify(singularizedName) %> } from '<%= modelFolderLocation %>';<% } %>
13
+ import { I<%= classify(singularizedName) %>, createTest<%= classify(singularizedName) %>, <% swaggerObjectProperties.forEach(function(swaggerProperty, i, arr){ %>createTest<%= classify(swaggerProperty.propertyTypeName) %><% if(arr.length != i + 1) {%>, <%} }); %> } from '<%= modelFolderLocation %>';<% } %>
14
14
 
15
15
  <% if (hasObjects) { %>export function createMock<%= classify(name) %>Facade() {
16
16
  return {
@@ -5,7 +5,7 @@ import { BaseDataEntryComponent } from 'imng-kendo-data-entry';<% if (hasObjects
5
5
  import { BehaviorSubject, map, Observable, switchMap } from 'rxjs';<% } %>
6
6
 
7
7
  import { <%= classify(name) %>CrudFacade } from './crud.facade';<% if (modelFolderLocation) { %>
8
- import { <%= classify(singularizedName) %>Properties, I<%= classify(singularizedName) %>Form, <%= classify(singularizedName) %>FormGroupFac, <% swaggerObjectProperties.forEach(function(swaggerProperty, i, arr){ %>I<%= classify(swaggerProperty.propertyTypeName) %><% if(arr.length != i + 1) {%>, <%} }); %> } from '<%= modelFolderLocation %>';<% } %>
8
+ import { <%= classify(singularizedName) %>Properties, I<%= classify(singularizedName) %>Form, <%= classify(singularizedName) %>FormGroupFac, <% swaggerObjectProperties.forEach(function(swaggerProperty, i, arr){ %>I<%= classify(swaggerProperty.propertyTypeName) %>, <%= classify(swaggerProperty.propertyTypeName) %>Properties<% if(arr.length != i + 1) {%>, <%} }); %> } from '<%= modelFolderLocation %>';<% } %>
9
9
 
10
10
  @Component({
11
11
  template: '',
@@ -25,7 +25,7 @@ export abstract class <%= classify(name) %>BaseEntryComponent extends BaseDataEn
25
25
  this.<%= camelize(swaggerProperty.pluralizedName) %>$ = this.facade.<%= camelize(swaggerProperty.pluralizedName) %>$.pipe(
26
26
  switchMap(<%= camelize(swaggerProperty.pluralizedName) %> => this.<%= camelize(swaggerProperty.name) %>Filter$.pipe(
27
27
  map(<%= camelize(swaggerProperty.name) %>Filter => <%= camelize(swaggerProperty.name) %>Filter ? <%= camelize(swaggerProperty.pluralizedName) %>
28
- .filter(<%= camelize(swaggerProperty.name) %> => (<% swaggerProperty.properties.filter(f => f.name !== 'id' && f.htmlInputType !== 'object' && !f.hidden).forEach(function(swaggerSubProperty, i, arr){%>
28
+ .filter(<%= camelize(swaggerProperty.name) %> => (<% swaggerProperty.properties.filter(f => f.name !== 'id' && f.htmlInputType !== 'object' && f.htmlInputType !== 'checkbox' && !f.hidden).forEach(function(swaggerSubProperty, i, arr){%>
29
29
  (<%= camelize(swaggerProperty.name) %>.<%= camelize(swaggerSubProperty.name) %> && <%= camelize(swaggerProperty.name) %>.<%= camelize(swaggerSubProperty.name) %><% if(swaggerSubProperty.format){ %>.toString()<% } %>.toLowerCase().indexOf(<%= camelize(swaggerProperty.name) %>Filter) >= 0)<% if (i + 1 != arr.length) { %> ||<% } }) %>
30
30
  )) : <%= camelize(swaggerProperty.pluralizedName) %>
31
31
  ))));<% }) %>
@@ -23,7 +23,7 @@ describe('<%= classify(singularizedName) %>ListComponent', () => {
23
23
  declarations: [<%= classify(singularizedName) %>ListComponent],
24
24
  imports: [],
25
25
  providers: [
26
- { provide: <%= classify(singularizedName) %>ListFacade, useValue: createODataGridMockFacade()) },
26
+ { provide: <%= classify(singularizedName) %>ListFacade, useValue: createODataGridMockFacade() },
27
27
  { provide: <%= classify(singularizedName) %>CrudFacade, useValue: createDataEntryMockFacade() },
28
28
  provideRouter(<%= camelize(singularizedName) %>Routes),
29
29
  provideOidcMockFacade(),
@@ -7,7 +7,7 @@ import { ModalStates } from 'imng-kendo-data-entry';
7
7
  import { <%= classify(singularizedName) %>ListFacade } from './list.facade';
8
8
  import { <%= classify(singularizedName) %>CrudFacade } from '../<%= dasherize(pluralizedName) %>-crud';
9
9
  import { <%= camelize(singularizedName) %>GridState } from './list.grid-state';<% if (modelFolderLocation) { %>
10
- import { I<%= classify(singularizedName) %>, <%= classify(singularizedName) %>Properties } from '<%= modelFolderLocation %>';<% } %>
10
+ import { I<%= classify(singularizedName) %>, <%= classify(singularizedName) %>Properties, <% swaggerObjectProperties.forEach(function(swaggerProperty, i, arr){ %><%= classify(swaggerProperty.propertyTypeName) %>Properties<% if(arr.length != i + 1) {%>, <%} }); %> } from '<%= modelFolderLocation %>';<% } %>
11
11
 
12
12
  @Component({
13
13
  selector: '<%= appPrefix %>-<%= dasherize(singularizedName) %>-list',