@lenne.tech/ng-base 13.11.0 → 13.14.0

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 (30) hide show
  1. package/base-components/base-components.module.d.ts +5 -3
  2. package/base-components/components/model-form/model-form.component.d.ts +66 -0
  3. package/base-components/components/model-table/model-table.component.d.ts +55 -0
  4. package/base-components/public-api.d.ts +2 -0
  5. package/esm2020/base-components/base-components.module.mjs +11 -3
  6. package/esm2020/base-components/components/checkbox/checkbox.component.mjs +2 -2
  7. package/esm2020/base-components/components/input/input.component.mjs +2 -2
  8. package/esm2020/base-components/components/model-form/model-form.component.mjs +177 -0
  9. package/esm2020/base-components/components/model-table/model-table.component.mjs +137 -0
  10. package/esm2020/base-components/components/select/select.component.mjs +2 -2
  11. package/esm2020/base-components/components/tags/tags.component.mjs +2 -2
  12. package/esm2020/base-components/components/textarea/textarea.component.mjs +2 -2
  13. package/esm2020/base-components/public-api.mjs +3 -1
  14. package/esm2020/shared/classes/graphql-meta.class.mjs +58 -6
  15. package/esm2020/shared/classes/graphql-type.class.mjs +4 -1
  16. package/esm2020/shared/interfaces/graphql-crud-type.interface.mjs +2 -0
  17. package/esm2020/shared/public-api.mjs +2 -1
  18. package/fesm2015/lenne.tech-ng-base-base-components.mjs +322 -16
  19. package/fesm2015/lenne.tech-ng-base-base-components.mjs.map +1 -1
  20. package/fesm2015/lenne.tech-ng-base-shared.mjs +60 -6
  21. package/fesm2015/lenne.tech-ng-base-shared.mjs.map +1 -1
  22. package/fesm2020/lenne.tech-ng-base-base-components.mjs +320 -16
  23. package/fesm2020/lenne.tech-ng-base-base-components.mjs.map +1 -1
  24. package/fesm2020/lenne.tech-ng-base-shared.mjs +60 -6
  25. package/fesm2020/lenne.tech-ng-base-shared.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/shared/classes/graphql-meta.class.d.ts +3 -7
  28. package/shared/classes/graphql-type.class.d.ts +3 -0
  29. package/shared/interfaces/graphql-crud-type.interface.d.ts +6 -0
  30. package/shared/public-api.d.ts +1 -0
package/package.json CHANGED
@@ -10,7 +10,7 @@
10
10
  "angular-library",
11
11
  "angular13+"
12
12
  ],
13
- "version": "13.11.0",
13
+ "version": "13.14.0",
14
14
  "author": "lenne.Tech <info@lenne.tech> (https://lenne.tech)",
15
15
  "homepage": "https://github.com/lenneTech/ng-base",
16
16
  "license": "MIT",
@@ -2,6 +2,7 @@ import { GraphQLNamedType, GraphQLSchema } from 'graphql';
2
2
  import { GraphQLRequestType } from '../enums/graphql-request-type.enum';
3
3
  import { GraphQLType } from './graphql-type.class';
4
4
  import { IGraphQLTypeCollection } from '../interfaces/graphql-type-collection.interface';
5
+ import { GraphqlCrudType } from '../interfaces/graphql-crud-type.interface';
5
6
  /**
6
7
  * GraphQL meta
7
8
  */
@@ -20,12 +21,7 @@ export declare class GraphQLMeta {
20
21
  *
21
22
  * @returns An array of objects with the name of the model, and the CRUD operations that are available for that model.
22
23
  */
23
- getTypes(): [{
24
- name: string;
25
- create: boolean;
26
- update: boolean;
27
- delete: boolean;
28
- }];
24
+ getTypes(): GraphqlCrudType[];
29
25
  /**
30
26
  * Get arguments of GraphQL function
31
27
  */
@@ -55,5 +51,5 @@ export declare class GraphQLMeta {
55
51
  /**
56
52
  * Get deep type data
57
53
  */
58
- protected getDeepType(type: any, prepared?: WeakMap<any, any>): IGraphQLTypeCollection | GraphQLType;
54
+ protected getDeepType(type: any, prepared?: WeakMap<any, any>, setMetaData?: boolean): IGraphQLTypeCollection | GraphQLType;
59
55
  }
@@ -4,6 +4,9 @@ import { Standard } from './standard.class';
4
4
  */
5
5
  export declare class GraphQLType extends Standard {
6
6
  type: string;
7
+ isRequired: boolean;
8
+ isItemRequired: boolean;
9
+ isList: boolean;
7
10
  isEnum: boolean;
8
11
  validEnums: string[];
9
12
  }
@@ -0,0 +1,6 @@
1
+ export interface GraphqlCrudType {
2
+ name: string;
3
+ create: boolean;
4
+ update: boolean;
5
+ delete: boolean;
6
+ }
@@ -43,6 +43,7 @@ export * from './interfaces/find-args.interface';
43
43
  export * from './interfaces/time-components.interface';
44
44
  export * from './interfaces/toast.interface';
45
45
  export * from './interfaces/breadcrumb.interface';
46
+ export * from './interfaces/graphql-crud-type.interface';
46
47
  export * from './types/storage.type';
47
48
  export * from './types/graphql-fields.type';
48
49
  export * from './validators/match.validator';