@lenne.tech/ng-base 14.0.4 → 14.0.5

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 (24) hide show
  1. package/base-components/components/model-form/model-form.component.d.ts +7 -2
  2. package/base-components/components/model-form-sub/model-form-sub.component.d.ts +7 -3
  3. package/base-components/components/refence-input/refence-input.component.d.ts +10 -4
  4. package/esm2020/base-components/components/model-form/model-form.component.mjs +56 -12
  5. package/esm2020/base-components/components/model-form-sub/model-form-sub.component.mjs +9 -3
  6. package/esm2020/base-components/components/model-table/model-table.component.mjs +4 -4
  7. package/esm2020/base-components/components/refence-input/refence-input.component.mjs +28 -22
  8. package/esm2020/base-components/components/tags/tags.component.mjs +2 -2
  9. package/esm2020/base-components/components/upload-image/upload-image.component.mjs +3 -3
  10. package/esm2020/shared/classes/graphql-meta.class.mjs +52 -28
  11. package/esm2020/shared/classes/graphql-type.class.mjs +2 -1
  12. package/esm2020/shared/services/graphql.service.mjs +30 -36
  13. package/fesm2015/lenne.tech-ng-base-base-components.mjs +110 -56
  14. package/fesm2015/lenne.tech-ng-base-base-components.mjs.map +1 -1
  15. package/fesm2015/lenne.tech-ng-base-shared.mjs +81 -61
  16. package/fesm2015/lenne.tech-ng-base-shared.mjs.map +1 -1
  17. package/fesm2020/lenne.tech-ng-base-base-components.mjs +95 -40
  18. package/fesm2020/lenne.tech-ng-base-base-components.mjs.map +1 -1
  19. package/fesm2020/lenne.tech-ng-base-shared.mjs +81 -61
  20. package/fesm2020/lenne.tech-ng-base-shared.mjs.map +1 -1
  21. package/package.json +1 -1
  22. package/shared/classes/graphql-meta.class.d.ts +7 -4
  23. package/shared/classes/graphql-type.class.d.ts +1 -0
  24. package/shared/services/graphql.service.d.ts +4 -4
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "angular-library",
11
11
  "angular13+"
12
12
  ],
13
- "version": "14.0.4",
13
+ "version": "14.0.5",
14
14
  "author": "lenne.Tech <info@lenne.tech> (https://lenne.tech)",
15
15
  "homepage": "https://github.com/lenneTech/ng-base",
16
16
  "license": "MIT",
@@ -1,7 +1,6 @@
1
1
  import { GraphQLNamedType, GraphQLSchema } from 'graphql';
2
2
  import { GraphQLRequestType } from '../enums/graphql-request-type.enum';
3
3
  import { GraphQLType } from './graphql-type.class';
4
- import { IGraphQLTypeCollection } from '../interfaces/graphql-type-collection.interface';
5
4
  import { GraphqlCrudType } from '../interfaces/graphql-crud-type.interface';
6
5
  /**
7
6
  * GraphQL meta
@@ -29,7 +28,7 @@ export declare class GraphQLMeta {
29
28
  cache?: boolean;
30
29
  freeze?: boolean;
31
30
  type?: GraphQLRequestType;
32
- }): IGraphQLTypeCollection;
31
+ }): GraphQLType;
33
32
  /**
34
33
  * Get fields of GraphQL function
35
34
  */
@@ -37,7 +36,7 @@ export declare class GraphQLMeta {
37
36
  cache?: boolean;
38
37
  freeze?: boolean;
39
38
  type?: GraphQLRequestType;
40
- }): IGraphQLTypeCollection;
39
+ }): GraphQLType;
41
40
  /**
42
41
  * Get GraphQL function
43
42
  */
@@ -48,8 +47,12 @@ export declare class GraphQLMeta {
48
47
  * Get type
49
48
  */
50
49
  protected getType(name: string): GraphQLNamedType | null | undefined;
50
+ /**
51
+ * Get (deep) type name
52
+ */
53
+ protected getTypeName(type: any): any;
51
54
  /**
52
55
  * Get deep type data
53
56
  */
54
- protected getDeepType(type: any, prepared?: WeakMap<any, any>, setMetaData?: boolean): IGraphQLTypeCollection | GraphQLType;
57
+ protected getDeepType(type: any, prepared?: Record<string, any>, setMetaData?: boolean): GraphQLType;
55
58
  }
@@ -4,6 +4,7 @@ import { Standard } from './standard.class';
4
4
  */
5
5
  export declare class GraphQLType extends Standard {
6
6
  type: string;
7
+ fields: Record<string, GraphQLType>;
7
8
  isRequired: boolean;
8
9
  isItemRequired: boolean;
9
10
  isList: boolean;
@@ -2,7 +2,7 @@ import { Apollo } from 'apollo-angular';
2
2
  import { IGraphQLOptions } from '../interfaces/graphql-options.interface';
3
3
  import { Observable } from 'rxjs';
4
4
  import { GraphQLMetaService } from './graphql-meta.service';
5
- import { IGraphQLTypeCollection } from '../interfaces/graphql-type-collection.interface';
5
+ import { GraphQLType } from '../classes/graphql-type.class';
6
6
  import * as i0 from "@angular/core";
7
7
  /**
8
8
  * GraphQL service
@@ -21,12 +21,12 @@ export declare class GraphQLService {
21
21
  /**
22
22
  * Get fields / args from IGraphQLTypeCollection
23
23
  */
24
- protected graphQLTypeCollectionToStringArray(collection: IGraphQLTypeCollection, current?: string, result?: any[], cacheNode?: any[]): any[];
24
+ protected graphQLTypeToStringArray(graphQLType: GraphQLType, current?: string, result?: any[], cacheNode?: any[]): any[];
25
25
  /**
26
26
  * Prepare arguments for GraphQL request
27
27
  */
28
28
  protected prepareArguments(args: any, options?: {
29
- allowed?: any;
29
+ allowed?: GraphQLType;
30
30
  level?: number;
31
31
  parent?: string;
32
32
  schemaArgs?: string[];
@@ -40,7 +40,7 @@ export declare class GraphQLService {
40
40
  * Prepare fields for GraphQL request
41
41
  */
42
42
  protected prepareFields(fields: any, options?: {
43
- allowed?: any;
43
+ allowed?: GraphQLType;
44
44
  schemaFields?: string[];
45
45
  usedFields?: string[];
46
46
  parent?: string;