kwikid-forms 0.6.43 → 0.6.45

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 (59) hide show
  1. package/bundles/kwikid-forms.umd.js +1020 -835
  2. package/bundles/kwikid-forms.umd.js.map +1 -1
  3. package/esm2015/lib/builder/builder-form-editor/builder-form-editor.component.js +22 -32
  4. package/esm2015/lib/builder/builder-form-editor/builder-form-editor.definitions.js +2 -1
  5. package/esm2015/lib/builder/builder-form-editor/builder-form-editor.helper.js +2 -4
  6. package/esm2015/lib/builder/builder-form-editor/builder.form-editor.constants.js +5 -5
  7. package/esm2015/lib/builder/builder-form-editor/builder.form-editor.service.js +6 -5
  8. package/esm2015/lib/builder/builder-form-list/builder-forms-list.component.js +4 -6
  9. package/esm2015/lib/builder/builder.component.js +43 -53
  10. package/esm2015/lib/builder/builder.helper.js +11 -13
  11. package/esm2015/lib/renderer/config-converter/config-converter.constants.js +22 -7
  12. package/esm2015/lib/renderer/config-converter/config-converter.helper.js +9 -10
  13. package/esm2015/lib/renderer/config-converter/config-converter.js +61 -37
  14. package/esm2015/lib/renderer/form-view/definitions/form-view.actions.definition.js +1 -1
  15. package/esm2015/lib/renderer/form-view/definitions/form-view.apis.definition.js +1 -1
  16. package/esm2015/lib/renderer/form-view/definitions/form-view.commons.definition.js +2 -1
  17. package/esm2015/lib/renderer/form-view/definitions/form-view.fields.definition.js +2 -1
  18. package/esm2015/lib/renderer/form-view/definitions/form-view.logs.definition.js +2 -1
  19. package/esm2015/lib/renderer/form-view/form-view.api.service.js +25 -24
  20. package/esm2015/lib/renderer/form-view/form-view.component.js +456 -292
  21. package/esm2015/lib/renderer/form-view/form-view.constants.js +17 -0
  22. package/esm2015/lib/renderer/form-view/form-view.module.js +15 -3
  23. package/esm2015/lib/renderer/form-view/form-view.service.js +6 -7
  24. package/esm2015/lib/renderer/form-view/helpers/form-view.apis.helper.js +44 -58
  25. package/esm2015/lib/renderer/form-view/helpers/form-view.camera.helper.js +16 -20
  26. package/esm2015/lib/renderer/form-view/helpers/form-view.defaults.helper.js +36 -97
  27. package/esm2015/lib/renderer/form-view/helpers/form-view.fields.helper.js +95 -92
  28. package/esm2015/lib/renderer/form-view/helpers/form-view.form-validations.helper.js +23 -22
  29. package/esm2015/lib/renderer/form-view/helpers/form-view.tasks.helper.js +5 -5
  30. package/esm2015/lib/renderer/form-view/pipes/filter-image-url-or-base64-from-object.pipe.js +34 -0
  31. package/esm2015/lib/renderer/form-view/pipes/filter-video-url-or-base64-from-object.pipe.js +30 -0
  32. package/esm2015/lib/renderer/forms-list/forms-list.component.js +31 -39
  33. package/esm2015/lib/renderer/forms-list/forms-list.definitions.js +2 -1
  34. package/esm2015/lib/renderer/renderer.actions.definitions.js +1 -1
  35. package/esm2015/lib/renderer/renderer.component.js +87 -113
  36. package/esm2015/lib/renderer/renderer.definitions.js +2 -1
  37. package/esm2015/lib/renderer/renderer.helper.js +2 -4
  38. package/fesm2015/kwikid-forms.js +1063 -922
  39. package/fesm2015/kwikid-forms.js.map +1 -1
  40. package/lib/builder/builder-form-editor/builder-form-editor.component.d.ts +4 -5
  41. package/lib/builder/builder-form-editor/builder.form-editor.service.d.ts +0 -1
  42. package/lib/builder/builder-form-list/builder-forms-list.component.d.ts +3 -5
  43. package/lib/renderer/config-converter/config-converter.constants.d.ts +21 -6
  44. package/lib/renderer/config-converter/config-converter.helper.d.ts +1 -0
  45. package/lib/renderer/form-view/definitions/form-view.fields.definition.d.ts +45 -25
  46. package/lib/renderer/form-view/form-view.api.service.d.ts +0 -1
  47. package/lib/renderer/form-view/form-view.component.d.ts +13 -13
  48. package/lib/renderer/form-view/form-view.constants.d.ts +16 -0
  49. package/lib/renderer/form-view/form-view.module.d.ts +10 -8
  50. package/lib/renderer/form-view/form-view.service.d.ts +1 -2
  51. package/lib/renderer/form-view/helpers/form-view.camera.helper.d.ts +5 -7
  52. package/lib/renderer/form-view/helpers/form-view.defaults.helper.d.ts +4 -6
  53. package/lib/renderer/form-view/helpers/form-view.fields.helper.d.ts +1 -1
  54. package/lib/renderer/form-view/helpers/form-view.form-validations.helper.d.ts +1 -2
  55. package/lib/renderer/form-view/helpers/form-view.tasks.helper.d.ts +1 -1
  56. package/lib/renderer/form-view/pipes/filter-image-url-or-base64-from-object.pipe.d.ts +7 -0
  57. package/lib/renderer/form-view/pipes/filter-video-url-or-base64-from-object.pipe.d.ts +7 -0
  58. package/lib/renderer/forms-list/forms-list.component.d.ts +1 -2
  59. package/package.json +1 -1
@@ -1,10 +1,10 @@
1
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
1
+ import { EventEmitter, OnChanges, SimpleChanges } from "@angular/core";
2
2
  import { FormGroup } from "@angular/forms";
3
3
  import { KwikUILoaderService } from "kwikui";
4
4
  import { TFormEditorType } from "./builder-form-editor.definitions";
5
5
  import { KwikIDFormBuilderFormEditorService } from "./builder.form-editor.service";
6
6
  import * as i0 from "@angular/core";
7
- export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChanges {
7
+ export declare class KwikIDBuilderFormEditorComponent implements OnChanges {
8
8
  loaderService: KwikUILoaderService;
9
9
  kwikidBuilderFormEditorService: KwikIDFormBuilderFormEditorService;
10
10
  /**
@@ -30,7 +30,7 @@ export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChang
30
30
  editorTypeOptions: any[];
31
31
  activeEditorType: TFormEditorType;
32
32
  activeFormConfig_Fields: any[];
33
- activeFormConfig_NoFields: any;
33
+ activeFormConfigNoFields: any;
34
34
  showConfigPreview: boolean;
35
35
  formGroup: FormGroup;
36
36
  savedConfig: boolean;
@@ -46,7 +46,6 @@ export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChang
46
46
  /**
47
47
  * Angular Lifecycle Methods
48
48
  */
49
- ngOnInit(): void;
50
49
  ngOnChanges(changes: SimpleChanges): void;
51
50
  initFormEditor(activeFormConfig: any): void;
52
51
  /**
@@ -81,7 +80,7 @@ export declare class KwikIDBuilderFormEditorComponent implements OnInit, OnChang
81
80
  /**
82
81
  * Non Fields Editor Related Methods
83
82
  */
84
- handleOnClickSaveActiveFormConfig_NoFields(e: any): void;
83
+ handleOnClickSaveActiveFormConfigNoFields(e: any): void;
85
84
  /**
86
85
  * Other Component Methods
87
86
  */
@@ -1,6 +1,5 @@
1
1
  import { FormGroup } from "@angular/forms";
2
2
  export declare class KwikIDFormBuilderFormEditorService {
3
- constructor();
4
3
  createNestedFormGroup(object: any[]): FormGroup;
5
4
  downloadJSON(object: any): void;
6
5
  copyToClipboard(text: any): void;
@@ -1,16 +1,14 @@
1
- import { EventEmitter, OnChanges, OnInit, SimpleChanges } from "@angular/core";
1
+ import { EventEmitter, OnChanges, SimpleChanges } from "@angular/core";
2
2
  import { FormGroup } from "@angular/forms";
3
3
  import * as i0 from "@angular/core";
4
- export declare class KwikIDBuilderFormsListComponent implements OnInit, OnChanges {
4
+ export declare class KwikIDBuilderFormsListComponent implements OnChanges {
5
5
  activeFormConfig: any;
6
6
  formsList: any[];
7
7
  onClickSetActiveForm: EventEmitter<any>;
8
8
  getFormsList: EventEmitter<any>;
9
9
  selectedForm: string;
10
- setSelectedForm(selected_form: string): void;
10
+ setSelectedForm(selectedForm: string): void;
11
11
  addForm: FormGroup;
12
- constructor();
13
- ngOnInit(): void;
14
12
  ngOnChanges(changes: SimpleChanges): void;
15
13
  handleOnClickSetActiveForm(selectedForm: string): void;
16
14
  handleOnClickAddForm(): void;
@@ -143,14 +143,31 @@ export declare const FIELD_PROPERTIES: {
143
143
  uploadFileToServer: boolean;
144
144
  };
145
145
  capture: {
146
- containerStyles: string;
147
146
  buttonText: string;
147
+ containerStyles: string;
148
148
  icon: string;
149
- showMediaFiles: boolean;
150
- uploadFileToServer: boolean;
151
149
  isCroppedImage: boolean;
152
150
  isMaskedImage: boolean;
153
- watermarkDataSources: any[];
151
+ showMediaFiles: boolean;
152
+ uploadFileToServer: boolean;
153
+ features: {
154
+ ocr: {
155
+ isEnabled: boolean;
156
+ documentType: string;
157
+ documentSide: string;
158
+ isOcrFromServer: boolean;
159
+ };
160
+ facematch: {
161
+ isEnabled: boolean;
162
+ isFacematchFromServer: boolean;
163
+ sources: any[];
164
+ };
165
+ watermark: {
166
+ isEnabled: boolean;
167
+ isWatermarkFromServer: boolean;
168
+ sources: any[];
169
+ };
170
+ };
154
171
  cameraConfig: {
155
172
  header: {
156
173
  title: string;
@@ -165,8 +182,6 @@ export declare const FIELD_PROPERTIES: {
165
182
  };
166
183
  others: {
167
184
  isFrontCamera: boolean;
168
- isWatermark: boolean;
169
- isWatermarkForImageUpload: boolean;
170
185
  flipHorizontal: boolean;
171
186
  mask: {
172
187
  shape: string;
@@ -2,6 +2,7 @@ export declare const getFormFields: (formConfig: any) => any[];
2
2
  export declare const setMissingFieldKeyValue: (field: any, key: string, value: any) => any;
3
3
  export declare const setFieldKeyValue: (field: any, key: string, value: any) => any;
4
4
  export declare const setFieldKeyHidden: (field: any) => any;
5
+ export declare const setFieldKeyDisabled: (field: any) => any;
5
6
  export declare const setFieldAsFormElement: (field: any, value: boolean) => any;
6
7
  export declare const getMinDate: (field: any) => any;
7
8
  export declare const getMaxDate: (field: any) => any;
@@ -31,9 +31,10 @@ export declare enum EFieldType {
31
31
  RECORD = "record",
32
32
  STAR_RATING = "star-rating",
33
33
  LIVE_LOCATION = "live-location",
34
+ DATA_HOLDER = "data-holder",
34
35
  CURRENCY = "currency"
35
36
  }
36
- export declare type TFieldType = EFieldType.HTML | EFieldType.TITLE | EFieldType.BUTTON | EFieldType.TEXT | EFieldType.TEXTAREA | EFieldType.CHECKBOX | EFieldType.NUMBER | EFieldType.DATE | EFieldType.TIME | EFieldType.PREVIEW_IMAGE | EFieldType.PHONE | EFieldType.RADIO | EFieldType.DROPDOWN_WITH_SEARCH | EFieldType.SELECT | EFieldType.API | EFieldType.API_CALL | EFieldType.OTP | EFieldType.AADHAAR_NUMBER | EFieldType.SLIDER | EFieldType.FILE | EFieldType.PASSWORD | EFieldType.EMAIL | EFieldType.CAPTURE | EFieldType.RECORD | EFieldType.STAR_RATING | EFieldType.LIVE_LOCATION | EFieldType.CURRENCY;
37
+ export declare type TFieldType = EFieldType.HTML | EFieldType.TITLE | EFieldType.BUTTON | EFieldType.TEXT | EFieldType.TEXTAREA | EFieldType.CHECKBOX | EFieldType.NUMBER | EFieldType.DATE | EFieldType.TIME | EFieldType.PREVIEW_IMAGE | EFieldType.PHONE | EFieldType.RADIO | EFieldType.DROPDOWN_WITH_SEARCH | EFieldType.SELECT | EFieldType.API | EFieldType.API_CALL | EFieldType.OTP | EFieldType.AADHAAR_NUMBER | EFieldType.SLIDER | EFieldType.FILE | EFieldType.PASSWORD | EFieldType.EMAIL | EFieldType.CAPTURE | EFieldType.RECORD | EFieldType.STAR_RATING | EFieldType.LIVE_LOCATION | EFieldType.DATA_HOLDER | EFieldType.CURRENCY;
37
38
  export declare type TFieldSelectOption = {
38
39
  title: string;
39
40
  value: string;
@@ -62,40 +63,39 @@ export declare type TFieldDefault = {
62
63
  options: TFieldDefaultDropdownOptions;
63
64
  api: TFieldDefaultApiValue;
64
65
  };
65
- export declare type TFieldProperties = {};
66
- export declare type TFieldTextProperties = TFieldProperties & {
66
+ export declare type TFieldTextProperties = {
67
67
  case: string;
68
68
  placeholder: string;
69
69
  readOnly: string;
70
70
  };
71
- export declare type TFieldCurrencyProperties = TFieldProperties & {
71
+ export declare type TFieldCurrencyProperties = {
72
72
  containerStyles: string;
73
73
  currencyType: string;
74
74
  placeholder: string;
75
75
  readOnly: string;
76
76
  };
77
- export declare type TFieldEmailProperties = TFieldProperties & {
77
+ export declare type TFieldEmailProperties = {
78
78
  case: string;
79
79
  domains: Array<string>;
80
80
  placeholder: string;
81
81
  readOnly: string;
82
82
  };
83
- export declare type TFieldPasswordProperties = TFieldProperties & {
83
+ export declare type TFieldPasswordProperties = {
84
84
  placeholder: string;
85
85
  hintContent: string;
86
86
  readOnly: string;
87
87
  };
88
- export declare type TFieldTextareaProperties = TFieldProperties & {
88
+ export declare type TFieldTextareaProperties = {
89
89
  placeholder: string;
90
90
  readOnly: string;
91
91
  };
92
- export declare type TFieldCheckboxProperties = TFieldProperties & {
92
+ export declare type TFieldCheckboxProperties = {
93
93
  contentAlign: string;
94
94
  size: string;
95
95
  readOnly: string;
96
96
  placeholder: string;
97
97
  };
98
- export declare type TFieldNumberProperties = TFieldProperties & {
98
+ export declare type TFieldNumberProperties = {
99
99
  min: number;
100
100
  max: number;
101
101
  prefix: number;
@@ -105,7 +105,7 @@ export declare type TFieldNumberProperties = TFieldProperties & {
105
105
  decimal: string;
106
106
  readOnly: boolean;
107
107
  };
108
- export declare type TFieldDateProperties = TFieldProperties & {
108
+ export declare type TFieldDateProperties = {
109
109
  placeholder: string;
110
110
  min: {
111
111
  year: number;
@@ -119,14 +119,14 @@ export declare type TFieldDateProperties = TFieldProperties & {
119
119
  };
120
120
  readOnly: boolean;
121
121
  };
122
- export declare type TFieldPhoneProperties = TFieldProperties & {
122
+ export declare type TFieldPhoneProperties = {
123
123
  countryCode: string;
124
124
  phoneMaskAfterCountryCode: string;
125
125
  removeCountryCodeFromValue: boolean;
126
126
  placeholder: string;
127
127
  readOnly: boolean;
128
128
  };
129
- export declare type TFieldPreviewImageProperties = TFieldProperties & {
129
+ export declare type TFieldPreviewImageProperties = {
130
130
  altText: string;
131
131
  html: {
132
132
  before: string;
@@ -134,8 +134,9 @@ export declare type TFieldPreviewImageProperties = TFieldProperties & {
134
134
  };
135
135
  imageType: string;
136
136
  loadingType: string;
137
+ placeholder: string;
137
138
  };
138
- export declare type TFieldSliderProperties = TFieldProperties & {
139
+ export declare type TFieldSliderProperties = {
139
140
  min: number;
140
141
  max: number;
141
142
  step: number;
@@ -143,25 +144,27 @@ export declare type TFieldSliderProperties = TFieldProperties & {
143
144
  placeholder: string;
144
145
  readOnly: boolean;
145
146
  };
146
- export declare type TFieldRadioProperties = TFieldProperties & {
147
+ export declare type TFieldRadioProperties = {
147
148
  size: string;
148
149
  orientation: string;
149
150
  readOnly: string;
151
+ placeholder: string;
150
152
  };
151
- export declare type TFieldSelectProperties = TFieldProperties & {
153
+ export declare type TFieldSelectProperties = {
152
154
  placeholder: string;
153
155
  readOnly: boolean;
154
156
  };
155
- export declare type TFieldApiCallProperties = TFieldProperties & {};
156
- export declare type TFieldOtpProperties = TFieldProperties & {
157
+ export declare type TFieldApiCallProperties = {};
158
+ export declare type TFieldDataHolderProperties = {};
159
+ export declare type TFieldOtpProperties = {
157
160
  placeholder: string;
158
161
  mask: string;
159
162
  };
160
- export declare type TFieldAadhaarNumberProperties = TFieldProperties & {
163
+ export declare type TFieldAadhaarNumberProperties = {
161
164
  mask: string;
162
165
  readOnly: string;
163
166
  };
164
- export declare type TFieldCaptureProperties = TFieldProperties & {
167
+ export declare type TFieldCaptureProperties = {
165
168
  containerStyles: string;
166
169
  buttonText: string;
167
170
  icon: string;
@@ -169,7 +172,24 @@ export declare type TFieldCaptureProperties = TFieldProperties & {
169
172
  uploadFileToServer: boolean;
170
173
  isCroppedImage: boolean;
171
174
  isMaskedImage: boolean;
172
- watermarkDataSources: TSource[];
175
+ features: {
176
+ ocr: {
177
+ isEnabled: boolean;
178
+ documentType: "PAN" | "AADHAAR";
179
+ documentSide: "FRONT" | "BACK";
180
+ isOcrFromServer: boolean;
181
+ };
182
+ facematch: {
183
+ isEnabled: boolean;
184
+ isFacematchFromServer: boolean;
185
+ sources: TSource[];
186
+ };
187
+ watermark: {
188
+ isEnabled: boolean;
189
+ isWatermarkFromServer: boolean;
190
+ sources: TSource[];
191
+ };
192
+ };
173
193
  cameraConfig: {
174
194
  header: {
175
195
  title: string;
@@ -183,8 +203,6 @@ export declare type TFieldCaptureProperties = TFieldProperties & {
183
203
  isSwitch: boolean;
184
204
  };
185
205
  others: {
186
- isWatermark: boolean;
187
- isWatermarkForImageUpload: boolean;
188
206
  isFrontCamera: boolean;
189
207
  flipHorizontal: boolean;
190
208
  mask: {
@@ -200,7 +218,7 @@ export declare type TFieldCaptureProperties = TFieldProperties & {
200
218
  };
201
219
  };
202
220
  };
203
- export declare type TFieldRecordProperties = TFieldProperties & {
221
+ export declare type TFieldRecordProperties = {
204
222
  containerStyles: string;
205
223
  buttonText: string;
206
224
  icon: string;
@@ -233,7 +251,7 @@ export declare type TFieldRecordProperties = TFieldProperties & {
233
251
  };
234
252
  };
235
253
  };
236
- export declare type TFieldStarRatingProperties = TFieldProperties & {
254
+ export declare type TFieldStarRatingProperties = {
237
255
  color: string;
238
256
  icon: string;
239
257
  iconMarked: string;
@@ -242,7 +260,7 @@ export declare type TFieldStarRatingProperties = TFieldProperties & {
242
260
  placeholder: string;
243
261
  size: string;
244
262
  };
245
- export declare type TFieldLiveLocationProperties = TFieldProperties & {
263
+ export declare type TFieldLiveLocationProperties = {
246
264
  isGetLocationFromLatLong: boolean;
247
265
  isShowLatLongCaptureTimestamp: boolean;
248
266
  color: string;
@@ -252,6 +270,7 @@ export declare type TFieldLiveLocationProperties = TFieldProperties & {
252
270
  styles: string;
253
271
  shape: string;
254
272
  };
273
+ export declare type TFieldProperties = TFieldTextProperties | TFieldCurrencyProperties | TFieldEmailProperties | TFieldPasswordProperties | TFieldTextareaProperties | TFieldCheckboxProperties | TFieldNumberProperties | TFieldDateProperties | TFieldPhoneProperties | TFieldPreviewImageProperties | TFieldSliderProperties | TFieldRadioProperties | TFieldSelectProperties | TFieldApiCallProperties | TFieldOtpProperties | TFieldAadhaarNumberProperties | TFieldCaptureProperties | TFieldRecordProperties | TFieldStarRatingProperties | TFieldLiveLocationProperties;
255
274
  export declare type TField = {
256
275
  label: string;
257
276
  type: TFieldType;
@@ -317,6 +336,7 @@ export declare type TFieldSelect = TField & {
317
336
  };
318
337
  export declare type TFieldApiCall = TField & {
319
338
  api: TApi;
339
+ showLoader: boolean;
320
340
  properties: TFieldApiCallProperties;
321
341
  };
322
342
  export declare type TFieldLiveLocation = TField & {
@@ -1,7 +1,6 @@
1
1
  import { Observable } from "rxjs";
2
2
  export declare class KwikIDFormViewApiService {
3
3
  private bytecode;
4
- constructor();
5
4
  dataDerivativeLogic(data: any): string;
6
5
  preProcessHeader(headerData: any, isVerifySignature: boolean): any;
7
6
  verifySignature(data: any, header: any, url: any, isVerifySignature: any): Promise<unknown>;
@@ -51,18 +51,19 @@ export declare class KwikIDFormViewComponent implements OnInit, OnChanges, OnDes
51
51
  fieldGroups: any;
52
52
  formFields: any[];
53
53
  previousFormData: any;
54
+ cameraData: any;
54
55
  isShowCamera: boolean;
55
56
  isShowCameraFullscreen: boolean;
56
- cameraFieldKey: string;
57
- cameraData: any;
58
- cameraType: "CAPTURE" | "RECORD";
59
- cameraImage: string;
60
- cameraVideo: string;
61
- cameraConfig: any;
62
- cameraRecordingTime: number;
63
- cameraRecordingTimerSubcription: any;
64
- cameraRecordingState: string;
65
- cameraRecordingStateSubcription: any;
57
+ activeCameraFieldKey: string;
58
+ activeCameraData: any;
59
+ activeCameraType: "CAPTURE" | "RECORD";
60
+ activeCameraImage: string;
61
+ activeCameraVideo: string;
62
+ activeCameraConfig: any;
63
+ activeCameraRecordingTime: number;
64
+ activeCameraRecordingTimerSubcription: any;
65
+ activeCameraRecordingState: string;
66
+ activeCameraRecordingStateSubcription: any;
66
67
  resetCamera(): void;
67
68
  previewProperties: any;
68
69
  loading: boolean;
@@ -112,8 +113,8 @@ export declare class KwikIDFormViewComponent implements OnInit, OnChanges, OnDes
112
113
  /** CameraType = CAPTURE */
113
114
  setCameraMedia(media: string): Promise<void>;
114
115
  /** Camera Common Methods */
115
- handleGetCameraMedia(e: any, cameraType: "CAPTURE" | "RECORD"): void;
116
- handleOnClickSaveCameraMedia(e: any, cameraType: "CAPTURE" | "RECORD"): void;
116
+ handleGetCameraMedia(e: any, activeCameraType: "CAPTURE" | "RECORD"): void;
117
+ handleOnClickSaveCameraMedia(e: any, activeCameraType: "CAPTURE" | "RECORD"): void;
117
118
  handleOnClickCameraBack(e: any): void;
118
119
  handleOnClickCameraClose(e: any): void;
119
120
  /**
@@ -128,7 +129,6 @@ export declare class KwikIDFormViewComponent implements OnInit, OnChanges, OnDes
128
129
  handleOnLocationPermission(e: any): void;
129
130
  handleOnClickLiveLocation(e: any): Promise<void>;
130
131
  handleGetKeyValue(e: any): void;
131
- handleOnClickResetFormFields2(e: any, field: TFieldTitle): Promise<void>;
132
132
  handleOnClickResetFormFields(e: any, field: TFieldTitle): Promise<void>;
133
133
  handleFieldApiCall(field: TFieldApiCall, api: any): Promise<{
134
134
  field: TFieldApiCall;
@@ -0,0 +1,16 @@
1
+ export declare const FORM_VIEW_TIMERS: {
2
+ WAIT_FOR_CHANGES_BEFORE_MOVING_TO_NEXT_TASK: number;
3
+ WAIT_FOR_FILE_METADATA_DEEPCOPY: number;
4
+ WAIT_FOR_KWIKID_CAMERA_TO_LOAD: number;
5
+ WAIT_FOR_KWIKID_CAMERA_MEDIA_TO_BE_SET: number;
6
+ LOCATION_PERMISSION_ERROR_TOGGLE: number;
7
+ LOCATION_PERMISSION_RESET_BUTTON_STATUS: number;
8
+ INVALID_FIELDS_SAVE_FORM_ERROR_TOGGLE: number;
9
+ TIMER_300: number;
10
+ TIMER_500: number;
11
+ TIMER_1000: number;
12
+ TIMER_3000: number;
13
+ WAIT_FOR_API_MOCK_DATA: number;
14
+ API_MOCK_SUCCESS_STATUS_CODE: number;
15
+ API_MOCK_ERROR_STATUS_CODE: number;
16
+ };
@@ -2,15 +2,17 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./form-view.component";
3
3
  import * as i2 from "./helpers/styles-sanitizer.pipe";
4
4
  import * as i3 from "../../common/pipes/timer-formatter.pipe";
5
- import * as i4 from "@angular/common";
6
- import * as i5 from "@angular/forms";
7
- import * as i6 from "@taiga-ui/core";
8
- import * as i7 from "@taiga-ui/kit";
9
- import * as i8 from "@taiga-ui/addon-preview";
10
- import * as i9 from "kwikui";
11
- import * as i10 from "kwikid-camera";
5
+ import * as i4 from "./pipes/filter-image-url-or-base64-from-object.pipe";
6
+ import * as i5 from "./pipes/filter-video-url-or-base64-from-object.pipe";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "@angular/forms";
9
+ import * as i8 from "@taiga-ui/core";
10
+ import * as i9 from "@taiga-ui/kit";
11
+ import * as i10 from "@taiga-ui/addon-preview";
12
+ import * as i11 from "kwikui";
13
+ import * as i12 from "kwikid-camera";
12
14
  export declare class KwikIDFormViewModule {
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<KwikIDFormViewModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDFormViewModule, [typeof i1.KwikIDFormViewComponent, typeof i2.StyleSanitizerPipe, typeof i3.TimerPipe], [typeof i4.CommonModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.TuiLabelModule, typeof i7.TuiPushModule, typeof i6.TuiSvgModule, typeof i8.TuiPreviewModule, typeof i6.TuiButtonModule, typeof i8.TuiPreviewActionModule, typeof i6.TuiDialogModule, typeof i9.KwikUIPipeModule, typeof i9.KwikUIModule, typeof i10.KwikIDCameraModule, typeof i10.KwikUIInputCameraModule, typeof i9.KwikUIInputEmailModule], [typeof i1.KwikIDFormViewComponent]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<KwikIDFormViewModule, [typeof i1.KwikIDFormViewComponent, typeof i2.StyleSanitizerPipe, typeof i3.TimerPipe, typeof i4.FilterImageUrlOrBase64FromObjectPipe, typeof i5.FilterVideoUrlOrBase64FromObjectPipe], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.TuiLabelModule, typeof i9.TuiPushModule, typeof i8.TuiSvgModule, typeof i10.TuiPreviewModule, typeof i8.TuiButtonModule, typeof i10.TuiPreviewActionModule, typeof i8.TuiDialogModule, typeof i11.KwikUIPipeModule, typeof i11.KwikUIModule, typeof i12.KwikIDCameraModule, typeof i12.KwikUIInputCameraModule, typeof i11.KwikUIInputEmailModule], [typeof i1.KwikIDFormViewComponent]>;
15
17
  static ɵinj: i0.ɵɵInjectorDeclaration<KwikIDFormViewModule>;
16
18
  }
@@ -1,5 +1,4 @@
1
1
  import { FormGroup } from "@angular/forms";
2
2
  export declare class KwikIDFormViewService {
3
- constructor();
4
- createFormGroup(fields: any, formData: any, previousFormData: any, allFormsData: any, extraData: any, takeAction: Function): Promise<FormGroup>;
3
+ createFormGroup(fields: any, object: any, takeAction: any): Promise<FormGroup>;
5
4
  }
@@ -1,12 +1,10 @@
1
1
  import { TFieldCapture } from "../definitions/form-view.fields.definition";
2
2
  export declare class CameraHelper {
3
- private _allFormsData;
3
+ private _object;
4
+ get object(): any;
5
+ set object(value: any);
4
6
  private _field;
5
- private _formFields;
6
- private _formData;
7
- private _previousFormData;
8
- private _extraData;
9
- private cameraData;
10
- constructor(field: TFieldCapture, formFields: any[], allFormsData: any, formData: any, previousFormData: any, extraData: any);
7
+ private activeCameraData;
8
+ constructor(field: TFieldCapture, object: any);
11
9
  getCameraWatermarkData(): Promise<any>;
12
10
  }
@@ -1,13 +1,11 @@
1
1
  import { TField } from "../definitions/form-view.fields.definition";
2
2
  export declare class Defaults {
3
- private _allFormsData;
3
+ private _object;
4
+ get object(): any;
5
+ set object(value: any);
4
6
  private _field;
5
- private _formFields;
6
- private _formData;
7
- private _previousFormData;
8
- private _extraData;
9
7
  private _takeAction;
10
- constructor(field: TField, formFields: any[], allFormsData: any, formData: any, previousFormData: any, extraData: any, takeAction: Function);
8
+ constructor(field: TField, object: any, takeAction: any);
11
9
  getFormFieldValue(): Promise<any>;
12
10
  getFormFieldApiValue(): Promise<void>;
13
11
  getFormFieldOptions(): Promise<void>;
@@ -23,5 +23,5 @@ export declare const convertFormFieldTypeTimeToKwikUIFormat: (time: string) => T
23
23
  export declare const convertFormFieldTypeDateToStandardFormat: (date: TuiDay) => string;
24
24
  export declare const convertFormFieldTypeTimeToStandardFormat: (time: TuiTime) => string;
25
25
  export declare const convertFormFieldValueToStandardFormat: (field: TField, value: any) => any;
26
- export declare const convertFormFieldValueToKwikUIFormat: (field: TField, value: any) => any;
27
26
  export declare const convertFormFieldEmptyValueToKwikUIFormat: (field: TField) => any;
27
+ export declare const convertFormFieldValueToKwikUIFormat: (field: TField, value: any) => any;
@@ -1,6 +1,6 @@
1
1
  import { FormArray, FormGroup, ValidatorFn } from "@angular/forms";
2
+ export declare function NoWhitespacesValidator(): ValidatorFn;
2
3
  export declare class FormValidation {
3
- constructor();
4
4
  getFormFieldValidators(field: any): any[];
5
5
  getFormFieldsValidationErrors(formGroup: FormGroup): {
6
6
  name: string;
@@ -8,4 +8,3 @@ export declare class FormValidation {
8
8
  }[];
9
9
  getFormFieldsInvalidControls(formToInvestigate: FormGroup | FormArray): any[];
10
10
  }
11
- export declare function NoWhitespacesValidator(): ValidatorFn;
@@ -2,6 +2,6 @@ export declare class Tasks {
2
2
  private _object;
3
3
  private _task;
4
4
  private _takeAction;
5
- constructor(task: any, object: any, takeAction: Function);
5
+ constructor(task: any, object: any, takeAction: any);
6
6
  execute(): Promise<void>;
7
7
  }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class FilterImageUrlOrBase64FromObjectPipe implements PipeTransform {
4
+ transform(mediaFiles: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterImageUrlOrBase64FromObjectPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FilterImageUrlOrBase64FromObjectPipe, "filterImageUrlOrBase64FromObject">;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class FilterVideoUrlOrBase64FromObjectPipe implements PipeTransform {
4
+ transform(mediaFiles: any): any;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<FilterVideoUrlOrBase64FromObjectPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<FilterVideoUrlOrBase64FromObjectPipe, "filterVideoUrlOrBase64FromObject">;
7
+ }
@@ -15,11 +15,10 @@ export declare class KwikIDFormsListComponent implements OnInit, OnChanges {
15
15
  onClickHideFormsList: EventEmitter<any>;
16
16
  onClickSubmitForms: EventEmitter<any>;
17
17
  selectedForm: string;
18
- setSelectedForm(selected_form: string): void;
18
+ setSelectedForm(selectedForm: string): void;
19
19
  formsListLength: number;
20
20
  isAllFormsCompleted: boolean;
21
21
  loading: boolean;
22
- constructor();
23
22
  ngOnInit(): void;
24
23
  ngOnChanges(changes: SimpleChanges): void;
25
24
  triggerLogs(eventType: ELogEventType, logs: any): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwikid-forms",
3
- "version": "0.6.43",
3
+ "version": "0.6.45",
4
4
  "description": "KwikID's JSON Configuration based Forms Renderer and Builder",
5
5
  "author": {
6
6
  "name": "Baiju Dodhia"