kwikid-forms 0.1.4 → 0.1.7

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 (68) hide show
  1. package/README.md +43 -43
  2. package/bundles/kwikid-forms.umd.js +4286 -4213
  3. package/bundles/kwikid-forms.umd.js.map +1 -1
  4. package/esm2015/kwikid-forms.js +4 -4
  5. package/esm2015/lib/builder/builder.component.js +138 -138
  6. package/esm2015/lib/builder/builder.module.js +21 -21
  7. package/esm2015/lib/kwikid-forms.module.js +38 -38
  8. package/esm2015/lib/renderer/form-view/definitions/actions/form-view.actions.enum.definitions.js +20 -20
  9. package/esm2015/lib/renderer/form-view/definitions/actions/form-view.actions.type.definitions.js +2 -2
  10. package/esm2015/lib/renderer/form-view/definitions/apis/form-view.apis.enum.definitions.js +8 -8
  11. package/esm2015/lib/renderer/form-view/definitions/apis/form-view.apis.type.definitions.js +2 -2
  12. package/esm2015/lib/renderer/form-view/definitions/common/form-view.common.enum.definitions.js +101 -101
  13. package/esm2015/lib/renderer/form-view/definitions/common/form-view.common.type.definitions.js +2 -2
  14. package/esm2015/lib/renderer/form-view/definitions/fields/form-view.fields.enum.definitions.js +15 -15
  15. package/esm2015/lib/renderer/form-view/definitions/fields/form-view.fields.type.definitions.js +2 -2
  16. package/esm2015/lib/renderer/form-view/definitions/sources/form-view.sources.type.definitions.js +2 -2
  17. package/esm2015/lib/renderer/form-view/definitions/triggers/form-view.triggers.type.definitions.js +2 -2
  18. package/esm2015/lib/renderer/form-view/definitions/validations/form-view.validations.type.definitions.js +2 -2
  19. package/esm2015/lib/renderer/form-view/form-view.component.js +814 -814
  20. package/esm2015/lib/renderer/form-view/form-view.module.js +44 -44
  21. package/esm2015/lib/renderer/form-view/form-view.service.js +29 -29
  22. package/esm2015/lib/renderer/form-view/helpers/form-view.apis.helper.js +137 -137
  23. package/esm2015/lib/renderer/form-view/helpers/form-view.common.helper.js +136 -136
  24. package/esm2015/lib/renderer/form-view/helpers/form-view.defaults.helper.js +63 -63
  25. package/esm2015/lib/renderer/form-view/helpers/form-view.fields.helper.js +203 -203
  26. package/esm2015/lib/renderer/form-view/helpers/form-view.validations.helper.js +161 -161
  27. package/esm2015/lib/renderer/forms-list/forms-list.component.js +89 -89
  28. package/esm2015/lib/renderer/forms-list/forms-list.module.js +37 -37
  29. package/esm2015/lib/renderer/renderer.component.js +282 -267
  30. package/esm2015/lib/renderer/renderer.config-converter.helper.js +586 -586
  31. package/esm2015/lib/renderer/renderer.helper.js +50 -50
  32. package/esm2015/lib/renderer/renderer.module.js +50 -50
  33. package/esm2015/lib/renderer/renderer.service.js +172 -172
  34. package/esm2015/public_api.js +17 -17
  35. package/fesm2015/kwikid-forms.js +3031 -3016
  36. package/fesm2015/kwikid-forms.js.map +1 -1
  37. package/kwikid-forms.d.ts +5 -5
  38. package/lib/builder/builder.component.d.ts +68 -68
  39. package/lib/builder/builder.module.d.ts +10 -10
  40. package/lib/kwikid-forms.module.d.ts +10 -10
  41. package/lib/renderer/form-view/definitions/actions/form-view.actions.enum.definitions.d.ts +18 -18
  42. package/lib/renderer/form-view/definitions/actions/form-view.actions.type.definitions.d.ts +91 -91
  43. package/lib/renderer/form-view/definitions/apis/form-view.apis.enum.definitions.d.ts +6 -6
  44. package/lib/renderer/form-view/definitions/apis/form-view.apis.type.definitions.d.ts +40 -40
  45. package/lib/renderer/form-view/definitions/common/form-view.common.enum.definitions.d.ts +97 -97
  46. package/lib/renderer/form-view/definitions/common/form-view.common.type.definitions.d.ts +7 -7
  47. package/lib/renderer/form-view/definitions/fields/form-view.fields.enum.definitions.d.ts +13 -13
  48. package/lib/renderer/form-view/definitions/fields/form-view.fields.type.definitions.d.ts +136 -136
  49. package/lib/renderer/form-view/definitions/sources/form-view.sources.type.definitions.d.ts +16 -16
  50. package/lib/renderer/form-view/definitions/triggers/form-view.triggers.type.definitions.d.ts +1 -1
  51. package/lib/renderer/form-view/definitions/validations/form-view.validations.type.definitions.d.ts +16 -16
  52. package/lib/renderer/form-view/form-view.component.d.ts +80 -80
  53. package/lib/renderer/form-view/form-view.module.d.ts +12 -12
  54. package/lib/renderer/form-view/form-view.service.d.ts +5 -5
  55. package/lib/renderer/form-view/helpers/form-view.apis.helper.d.ts +17 -17
  56. package/lib/renderer/form-view/helpers/form-view.common.helper.d.ts +19 -19
  57. package/lib/renderer/form-view/helpers/form-view.defaults.helper.d.ts +10 -10
  58. package/lib/renderer/form-view/helpers/form-view.fields.helper.d.ts +24 -24
  59. package/lib/renderer/form-view/helpers/form-view.validations.helper.d.ts +25 -25
  60. package/lib/renderer/forms-list/forms-list.component.d.ts +22 -22
  61. package/lib/renderer/forms-list/forms-list.module.d.ts +11 -11
  62. package/lib/renderer/renderer.component.d.ts +36 -35
  63. package/lib/renderer/renderer.config-converter.helper.d.ts +7 -7
  64. package/lib/renderer/renderer.helper.d.ts +6 -6
  65. package/lib/renderer/renderer.module.d.ts +14 -14
  66. package/lib/renderer/renderer.service.d.ts +28 -28
  67. package/package.json +1 -1
  68. package/public_api.d.ts +9 -9
package/kwikid-forms.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="kwikid-forms" />
5
- export * from './public_api';
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="kwikid-forms" />
5
+ export * from './public_api';
@@ -1,68 +1,68 @@
1
- import { OnInit } from "@angular/core";
2
- import { FormGroup } from "@angular/forms";
3
- import * as i0 from "@angular/core";
4
- declare type IMenu = {
5
- title: string;
6
- id?: string;
7
- key?: string;
8
- temp?: string;
9
- component?: any;
10
- props?: any;
11
- };
12
- export declare class KwikIDFormsBuilderComponent implements OnInit {
13
- buttonComponent: {
14
- disabled: boolean;
15
- id: string;
16
- label: string;
17
- showLoader: boolean;
18
- styles: string;
19
- class: string;
20
- type: string;
21
- appearance: string;
22
- icon: string;
23
- iconRight: string;
24
- shape: any;
25
- size: string;
26
- };
27
- progressSegmentedComponent: {
28
- colors: string;
29
- max: string;
30
- size: string;
31
- value: string;
32
- };
33
- inputComponent: {
34
- case: string;
35
- disabled: boolean;
36
- focus: boolean;
37
- id: string;
38
- invalid: boolean;
39
- label: string;
40
- placeholder: string;
41
- type: string;
42
- validators: {
43
- required: boolean;
44
- };
45
- };
46
- formGroup: FormGroup;
47
- constructor();
48
- ngOnInit(): void;
49
- revisedRandId(): string;
50
- handleOnChange(event: {
51
- target: {
52
- value: any;
53
- };
54
- }, id: string | number, key: string | number, idx: any): void;
55
- toggleShow(id: any): void;
56
- name: string;
57
- menu: Array<IMenu>;
58
- table: Array<IMenu>;
59
- drop(event: any): void;
60
- exited(event: any): void;
61
- entered(): void;
62
- isNumber(val: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
63
- removeElement(idx: number, id: string): void;
64
- getJSON(): void;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormsBuilderComponent, never>;
66
- static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDFormsBuilderComponent, "kwikid-forms-builder", never, {}, {}, never, never>;
67
- }
68
- export {};
1
+ import { OnInit } from "@angular/core";
2
+ import { FormGroup } from "@angular/forms";
3
+ import * as i0 from "@angular/core";
4
+ declare type IMenu = {
5
+ title: string;
6
+ id?: string;
7
+ key?: string;
8
+ temp?: string;
9
+ component?: any;
10
+ props?: any;
11
+ };
12
+ export declare class KwikIDFormsBuilderComponent implements OnInit {
13
+ buttonComponent: {
14
+ disabled: boolean;
15
+ id: string;
16
+ label: string;
17
+ showLoader: boolean;
18
+ styles: string;
19
+ class: string;
20
+ type: string;
21
+ appearance: string;
22
+ icon: string;
23
+ iconRight: string;
24
+ shape: any;
25
+ size: string;
26
+ };
27
+ progressSegmentedComponent: {
28
+ colors: string;
29
+ max: string;
30
+ size: string;
31
+ value: string;
32
+ };
33
+ inputComponent: {
34
+ case: string;
35
+ disabled: boolean;
36
+ focus: boolean;
37
+ id: string;
38
+ invalid: boolean;
39
+ label: string;
40
+ placeholder: string;
41
+ type: string;
42
+ validators: {
43
+ required: boolean;
44
+ };
45
+ };
46
+ formGroup: FormGroup;
47
+ constructor();
48
+ ngOnInit(): void;
49
+ revisedRandId(): string;
50
+ handleOnChange(event: {
51
+ target: {
52
+ value: any;
53
+ };
54
+ }, id: string | number, key: string | number, idx: any): void;
55
+ toggleShow(id: any): void;
56
+ name: string;
57
+ menu: Array<IMenu>;
58
+ table: Array<IMenu>;
59
+ drop(event: any): void;
60
+ exited(event: any): void;
61
+ entered(): void;
62
+ isNumber(val: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
63
+ removeElement(idx: number, id: string): void;
64
+ getJSON(): void;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormsBuilderComponent, never>;
66
+ static ɵcmp: i0.ɵɵComponentDeclaration<KwikIDFormsBuilderComponent, "kwikid-forms-builder", never, {}, {}, never, never>;
67
+ }
68
+ export {};
@@ -1,10 +1,10 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./builder.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/forms";
5
- import * as i4 from "@angular/cdk/drag-drop";
6
- export declare class KwikIDFormBuilderModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormBuilderModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDFormBuilderModule, [typeof i1.KwikIDFormsBuilderComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.DragDropModule], [typeof i1.KwikIDFormsBuilderComponent]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDFormBuilderModule>;
10
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./builder.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/cdk/drag-drop";
6
+ export declare class KwikIDFormBuilderModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormBuilderModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDFormBuilderModule, [typeof i1.KwikIDFormsBuilderComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.DragDropModule], [typeof i1.KwikIDFormsBuilderComponent]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDFormBuilderModule>;
10
+ }
@@ -1,10 +1,10 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "@angular/common";
3
- import * as i2 from "@angular/forms";
4
- import * as i3 from "./builder/builder.module";
5
- import * as i4 from "./renderer/renderer.module";
6
- export declare class KwikIDFormsModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormsModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDFormsModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.KwikIDFormBuilderModule, typeof i4.KwikIDFormRendererModule], [typeof i3.KwikIDFormBuilderModule, typeof i4.KwikIDFormRendererModule]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDFormsModule>;
10
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/forms";
4
+ import * as i3 from "./builder/builder.module";
5
+ import * as i4 from "./renderer/renderer.module";
6
+ export declare class KwikIDFormsModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormsModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDFormsModule, never, [typeof i1.CommonModule, typeof i2.FormsModule, typeof i2.ReactiveFormsModule, typeof i3.KwikIDFormBuilderModule, typeof i4.KwikIDFormRendererModule], [typeof i3.KwikIDFormBuilderModule, typeof i4.KwikIDFormRendererModule]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDFormsModule>;
10
+ }
@@ -1,18 +1,18 @@
1
- export declare enum EActionKey {
2
- SET_VALUE = "SET_VALUE",
3
- FIELD_MESSAGE_SHOW = "FIELD_MESSAGE_SHOW",
4
- FIELD_MESSAGES_HIDE = "FIELD_MESSAGES_HIDE",
5
- FIELD_ERROR_SHOW = "FIELD_ERROR_SHOW",
6
- FIELD_ERROR_HIDE = "FIELD_ERROR_HIDE",
7
- FIELD_SHOW = "FIELD_SHOW",
8
- FIELD_HIDE = "FIELD_HIDE",
9
- FIELD_ENABLE = "FIELD_ENABLE",
10
- FIELD_DISABLE = "FIELD_DISABLE",
11
- FIELD_RESET = "FIELD_RESET",
12
- HANDLE_CONNECTED_ELEMENTS = "HANDLE_CONNECTED_ELEMENTS",
13
- CUSTOM = "CUSTOM",
14
- FIELD_GROUP_SHOW = "FIELD_GROUP_SHOW",
15
- FIELD_GROUP_HIDE = "FIELD_GROUP_HIDE",
16
- FIELD_GROUP_ENABLE = "FIELD_GROUP_ENABLE",
17
- FIELD_GROUP_DISABLE = "FIELD_GROUP_DISABLE"
18
- }
1
+ export declare enum EActionKey {
2
+ SET_VALUE = "SET_VALUE",
3
+ FIELD_MESSAGE_SHOW = "FIELD_MESSAGE_SHOW",
4
+ FIELD_MESSAGES_HIDE = "FIELD_MESSAGES_HIDE",
5
+ FIELD_ERROR_SHOW = "FIELD_ERROR_SHOW",
6
+ FIELD_ERROR_HIDE = "FIELD_ERROR_HIDE",
7
+ FIELD_SHOW = "FIELD_SHOW",
8
+ FIELD_HIDE = "FIELD_HIDE",
9
+ FIELD_ENABLE = "FIELD_ENABLE",
10
+ FIELD_DISABLE = "FIELD_DISABLE",
11
+ FIELD_RESET = "FIELD_RESET",
12
+ HANDLE_CONNECTED_ELEMENTS = "HANDLE_CONNECTED_ELEMENTS",
13
+ CUSTOM = "CUSTOM",
14
+ FIELD_GROUP_SHOW = "FIELD_GROUP_SHOW",
15
+ FIELD_GROUP_HIDE = "FIELD_GROUP_HIDE",
16
+ FIELD_GROUP_ENABLE = "FIELD_GROUP_ENABLE",
17
+ FIELD_GROUP_DISABLE = "FIELD_GROUP_DISABLE"
18
+ }
@@ -1,91 +1,91 @@
1
- import { TMessage } from "../common/form-view.common.type.definitions";
2
- import { TSourceKey } from "../sources/form-view.sources.type.definitions";
3
- import { EActionKey } from "./form-view.actions.enum.definitions";
4
- export declare type TActionKey = EActionKey.SET_VALUE | EActionKey.FIELD_MESSAGE_SHOW | EActionKey.FIELD_MESSAGES_HIDE | EActionKey.FIELD_ERROR_SHOW | EActionKey.FIELD_ERROR_HIDE | EActionKey.FIELD_SHOW | EActionKey.FIELD_HIDE | EActionKey.FIELD_ENABLE | EActionKey.FIELD_DISABLE | EActionKey.FIELD_RESET | EActionKey.HANDLE_CONNECTED_ELEMENTS | EActionKey.CUSTOM | EActionKey.FIELD_GROUP_SHOW | EActionKey.FIELD_GROUP_HIDE | EActionKey.FIELD_GROUP_ENABLE | EActionKey.FIELD_GROUP_DISABLE;
5
- export declare type TAction = {
6
- id: string;
7
- key: TActionKey;
8
- condition: string;
9
- props: any;
10
- };
11
- export declare type TActionSetValue = TAction & {
12
- key: EActionKey.SET_VALUE;
13
- props: {
14
- value: {
15
- source: {
16
- key: TSourceKey;
17
- path?: string;
18
- value?: any;
19
- };
20
- destination: {
21
- key: TSourceKey;
22
- path?: string;
23
- value?: any;
24
- };
25
- };
26
- };
27
- };
28
- export declare type TActionFieldMessageShow = TAction & {
29
- key: EActionKey.FIELD_MESSAGE_SHOW;
30
- props: {
31
- fieldKey: string;
32
- message: TMessage;
33
- };
34
- };
35
- export declare type TActionFieldMessageHide = TAction & {
36
- key: EActionKey.FIELD_MESSAGES_HIDE;
37
- props: {
38
- fieldKey: string;
39
- message: TMessage;
40
- };
41
- };
42
- export declare type TActionFieldErrorShow = TAction & {
43
- key: EActionKey.FIELD_ERROR_SHOW;
44
- props: {
45
- fieldKey: string;
46
- message: TMessage;
47
- };
48
- };
49
- export declare type IFieldErrorHide = TAction & {
50
- key: EActionKey.FIELD_ERROR_HIDE;
51
- props: {
52
- fieldKey: string;
53
- message: TMessage;
54
- };
55
- };
56
- export declare type TActionFieldShow = TAction & {
57
- key: EActionKey.FIELD_SHOW;
58
- props: {
59
- fieldKey: string;
60
- };
61
- };
62
- export declare type TActionFieldHide = TAction & {
63
- key: EActionKey.FIELD_HIDE;
64
- props: {
65
- fieldKey: string;
66
- };
67
- };
68
- export declare type TActionFieldEnable = TAction & {
69
- key: EActionKey.FIELD_ENABLE;
70
- props: {
71
- fieldKey: string;
72
- };
73
- };
74
- export declare type TActionFieldDisable = TAction & {
75
- key: EActionKey.FIELD_DISABLE;
76
- props: {
77
- fieldKey: string;
78
- };
79
- };
80
- export declare type TActionFieldReset = TAction & {
81
- key: EActionKey.FIELD_RESET;
82
- props: {
83
- fieldKey: string;
84
- };
85
- };
86
- export declare type TActionHandleConnectedElement = TAction & {
87
- key: EActionKey.HANDLE_CONNECTED_ELEMENTS;
88
- props: {
89
- fieldKey: string;
90
- };
91
- };
1
+ import { TMessage } from "../common/form-view.common.type.definitions";
2
+ import { TSourceKey } from "../sources/form-view.sources.type.definitions";
3
+ import { EActionKey } from "./form-view.actions.enum.definitions";
4
+ export declare type TActionKey = EActionKey.SET_VALUE | EActionKey.FIELD_MESSAGE_SHOW | EActionKey.FIELD_MESSAGES_HIDE | EActionKey.FIELD_ERROR_SHOW | EActionKey.FIELD_ERROR_HIDE | EActionKey.FIELD_SHOW | EActionKey.FIELD_HIDE | EActionKey.FIELD_ENABLE | EActionKey.FIELD_DISABLE | EActionKey.FIELD_RESET | EActionKey.HANDLE_CONNECTED_ELEMENTS | EActionKey.CUSTOM | EActionKey.FIELD_GROUP_SHOW | EActionKey.FIELD_GROUP_HIDE | EActionKey.FIELD_GROUP_ENABLE | EActionKey.FIELD_GROUP_DISABLE;
5
+ export declare type TAction = {
6
+ id: string;
7
+ key: TActionKey;
8
+ condition: string;
9
+ props: any;
10
+ };
11
+ export declare type TActionSetValue = TAction & {
12
+ key: EActionKey.SET_VALUE;
13
+ props: {
14
+ value: {
15
+ source: {
16
+ key: TSourceKey;
17
+ path?: string;
18
+ value?: any;
19
+ };
20
+ destination: {
21
+ key: TSourceKey;
22
+ path?: string;
23
+ value?: any;
24
+ };
25
+ };
26
+ };
27
+ };
28
+ export declare type TActionFieldMessageShow = TAction & {
29
+ key: EActionKey.FIELD_MESSAGE_SHOW;
30
+ props: {
31
+ fieldKey: string;
32
+ message: TMessage;
33
+ };
34
+ };
35
+ export declare type TActionFieldMessageHide = TAction & {
36
+ key: EActionKey.FIELD_MESSAGES_HIDE;
37
+ props: {
38
+ fieldKey: string;
39
+ message: TMessage;
40
+ };
41
+ };
42
+ export declare type TActionFieldErrorShow = TAction & {
43
+ key: EActionKey.FIELD_ERROR_SHOW;
44
+ props: {
45
+ fieldKey: string;
46
+ message: TMessage;
47
+ };
48
+ };
49
+ export declare type IFieldErrorHide = TAction & {
50
+ key: EActionKey.FIELD_ERROR_HIDE;
51
+ props: {
52
+ fieldKey: string;
53
+ message: TMessage;
54
+ };
55
+ };
56
+ export declare type TActionFieldShow = TAction & {
57
+ key: EActionKey.FIELD_SHOW;
58
+ props: {
59
+ fieldKey: string;
60
+ };
61
+ };
62
+ export declare type TActionFieldHide = TAction & {
63
+ key: EActionKey.FIELD_HIDE;
64
+ props: {
65
+ fieldKey: string;
66
+ };
67
+ };
68
+ export declare type TActionFieldEnable = TAction & {
69
+ key: EActionKey.FIELD_ENABLE;
70
+ props: {
71
+ fieldKey: string;
72
+ };
73
+ };
74
+ export declare type TActionFieldDisable = TAction & {
75
+ key: EActionKey.FIELD_DISABLE;
76
+ props: {
77
+ fieldKey: string;
78
+ };
79
+ };
80
+ export declare type TActionFieldReset = TAction & {
81
+ key: EActionKey.FIELD_RESET;
82
+ props: {
83
+ fieldKey: string;
84
+ };
85
+ };
86
+ export declare type TActionHandleConnectedElement = TAction & {
87
+ key: EActionKey.HANDLE_CONNECTED_ELEMENTS;
88
+ props: {
89
+ fieldKey: string;
90
+ };
91
+ };
@@ -1,6 +1,6 @@
1
- export declare enum EApiStatusType {
2
- DEFAULT = "default",
3
- LOADING = "loading",
4
- SUCCESS = "success",
5
- FAILED = "failed"
6
- }
1
+ export declare enum EApiStatusType {
2
+ DEFAULT = "default",
3
+ LOADING = "loading",
4
+ SUCCESS = "success",
5
+ FAILED = "failed"
6
+ }
@@ -1,40 +1,40 @@
1
- import { TSource } from "kwikid-toolkit";
2
- import { TValidation } from "../validations/form-view.validations.type.definitions";
3
- import { EApiStatusType } from "./form-view.apis.enum.definitions";
4
- export declare type TApiRequestBodyParam = {
5
- key: string;
6
- sources: Array<TSource>;
7
- value: any;
8
- };
9
- export declare type TApiRequestBody = {
10
- value: any;
11
- params: Array<TApiRequestBodyParam>;
12
- validation: TValidation;
13
- };
14
- export declare type TApiRequestHeaders = any;
15
- export declare type TApiRequest = {
16
- url: string;
17
- headers?: TApiRequestHeaders;
18
- body: TApiRequestBody;
19
- };
20
- export declare type TApiResponseBody = any;
21
- export declare type TApiResponse = {
22
- is_valid: boolean;
23
- body: TApiResponseBody;
24
- validation: TValidation;
25
- };
26
- export declare type TApiStatusType = EApiStatusType.DEFAULT | EApiStatusType.LOADING | EApiStatusType.SUCCESS | EApiStatusType.FAILED;
27
- export declare type TApiStatus = {
28
- value: TApiStatusType;
29
- labels: {
30
- default: EApiStatusType.DEFAULT;
31
- loading: EApiStatusType.LOADING;
32
- success: EApiStatusType.SUCCESS;
33
- failed: EApiStatusType.FAILED;
34
- };
35
- };
36
- export declare type TApi = {
37
- request: TApiRequest;
38
- response: TApiResponse;
39
- status: TApiStatus;
40
- };
1
+ import { TSource } from "kwikid-toolkit";
2
+ import { TValidation } from "../validations/form-view.validations.type.definitions";
3
+ import { EApiStatusType } from "./form-view.apis.enum.definitions";
4
+ export declare type TApiRequestBodyParam = {
5
+ key: string;
6
+ sources: Array<TSource>;
7
+ value: any;
8
+ };
9
+ export declare type TApiRequestBody = {
10
+ value: any;
11
+ params: Array<TApiRequestBodyParam>;
12
+ validation: TValidation;
13
+ };
14
+ export declare type TApiRequestHeaders = any;
15
+ export declare type TApiRequest = {
16
+ url: string;
17
+ headers?: TApiRequestHeaders;
18
+ body: TApiRequestBody;
19
+ };
20
+ export declare type TApiResponseBody = any;
21
+ export declare type TApiResponse = {
22
+ is_valid: boolean;
23
+ body: TApiResponseBody;
24
+ validation: TValidation;
25
+ };
26
+ export declare type TApiStatusType = EApiStatusType.DEFAULT | EApiStatusType.LOADING | EApiStatusType.SUCCESS | EApiStatusType.FAILED;
27
+ export declare type TApiStatus = {
28
+ value: TApiStatusType;
29
+ labels: {
30
+ default: EApiStatusType.DEFAULT;
31
+ loading: EApiStatusType.LOADING;
32
+ success: EApiStatusType.SUCCESS;
33
+ failed: EApiStatusType.FAILED;
34
+ };
35
+ };
36
+ export declare type TApi = {
37
+ request: TApiRequest;
38
+ response: TApiResponse;
39
+ status: TApiStatus;
40
+ };