@lenne.tech/ng-base 14.0.2 → 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.
- package/base-components/components/model-form/model-form.component.d.ts +7 -2
- package/base-components/components/model-form-sub/model-form-sub.component.d.ts +7 -3
- package/base-components/components/refence-input/refence-input.component.d.ts +10 -4
- package/base-components/components/upload-image/upload-image.component.d.ts +3 -1
- package/esm2020/base-components/components/model-form/model-form.component.mjs +56 -12
- package/esm2020/base-components/components/model-form-sub/model-form-sub.component.mjs +9 -3
- package/esm2020/base-components/components/model-table/model-table.component.mjs +4 -4
- package/esm2020/base-components/components/refence-input/refence-input.component.mjs +28 -22
- package/esm2020/base-components/components/tags/tags.component.mjs +2 -2
- package/esm2020/base-components/components/upload-image/upload-image.component.mjs +22 -9
- package/esm2020/shared/classes/graphql-meta.class.mjs +52 -28
- package/esm2020/shared/classes/graphql-type.class.mjs +2 -1
- package/esm2020/shared/services/graphql.service.mjs +30 -36
- package/fesm2015/lenne.tech-ng-base-base-components.mjs +127 -61
- package/fesm2015/lenne.tech-ng-base-base-components.mjs.map +1 -1
- package/fesm2015/lenne.tech-ng-base-shared.mjs +81 -61
- package/fesm2015/lenne.tech-ng-base-shared.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-base-components.mjs +112 -45
- package/fesm2020/lenne.tech-ng-base-base-components.mjs.map +1 -1
- package/fesm2020/lenne.tech-ng-base-shared.mjs +81 -61
- package/fesm2020/lenne.tech-ng-base-shared.mjs.map +1 -1
- package/package.json +1 -1
- package/shared/classes/graphql-meta.class.d.ts +7 -4
- package/shared/classes/graphql-type.class.d.ts +1 -0
- package/shared/services/graphql.service.d.ts +4 -4
package/package.json
CHANGED
|
@@ -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
|
-
}):
|
|
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
|
-
}):
|
|
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?:
|
|
57
|
+
protected getDeepType(type: any, prepared?: Record<string, any>, setMetaData?: boolean): GraphQLType;
|
|
55
58
|
}
|
|
@@ -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 {
|
|
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
|
|
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?:
|
|
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?:
|
|
43
|
+
allowed?: GraphQLType;
|
|
44
44
|
schemaFields?: string[];
|
|
45
45
|
usedFields?: string[];
|
|
46
46
|
parent?: string;
|