kwikid-forms 0.6.18 → 0.6.20

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.
@@ -135,6 +135,7 @@ export declare const FIELD_PROPERTIES: {
135
135
  uploadFileToServer: boolean;
136
136
  isCroppedImage: boolean;
137
137
  isMaskedImage: boolean;
138
+ watermarkDataSources: any[];
138
139
  cameraConfig: {
139
140
  header: {
140
141
  title: string;
@@ -149,6 +150,7 @@ export declare const FIELD_PROPERTIES: {
149
150
  };
150
151
  others: {
151
152
  isFrontCamera: boolean;
153
+ isWatermark: boolean;
152
154
  flipHorizontal: boolean;
153
155
  mask: {
154
156
  shape: string;
@@ -160,6 +160,7 @@ export declare type TFieldCaptureProperties = TFieldProperties & {
160
160
  uploadFileToServer: boolean;
161
161
  isCroppedImage: boolean;
162
162
  isMaskedImage: boolean;
163
+ watermarkDataSources: TSource[];
163
164
  cameraConfig: {
164
165
  header: {
165
166
  title: string;
@@ -173,6 +174,7 @@ export declare type TFieldCaptureProperties = TFieldProperties & {
173
174
  isSwitch: boolean;
174
175
  };
175
176
  others: {
177
+ isWatermark: boolean;
176
178
  isFrontCamera: boolean;
177
179
  flipHorizontal: boolean;
178
180
  mask: {
@@ -45,6 +45,7 @@ export declare class KwikIDFormViewComponent implements OnInit, AfterViewInit, O
45
45
  isShowCamera: boolean;
46
46
  isShowCameraFullscreen: boolean;
47
47
  cameraFieldKey: string;
48
+ cameraData: any;
48
49
  cameraType: "CAPTURE" | "RECORD";
49
50
  cameraImage: string;
50
51
  cameraVideo: string;
@@ -96,7 +97,7 @@ export declare class KwikIDFormViewComponent implements OnInit, AfterViewInit, O
96
97
  handleGetKeyValueFile(e: any): Promise<void>;
97
98
  /** Methods for Camera related fields like 'CAPTURE' or 'RECORD' */
98
99
  handleOnClickGetRemovedMediaFile(e: any): void;
99
- handleOnClickInputCamera(e: any, field: any): void;
100
+ handleOnClickInputCamera(e: any, field: any): Promise<void>;
100
101
  /** KwikID Camera Methods */
101
102
  /** CameraType = CAPTURE */
102
103
  setCameraMedia(media: string): Promise<void>;
@@ -0,0 +1,11 @@
1
+ import { TFieldCapture } from "../definitions/form-view.fields.definition";
2
+ export declare class CameraHelper {
3
+ private _allFormsData;
4
+ private _field;
5
+ private _formFields;
6
+ private _formData;
7
+ private _previousFormData;
8
+ private cameraData;
9
+ constructor(field: TFieldCapture, formFields: any[], allFormsData: any, formData: any, previousFormData: any);
10
+ getCameraWatermarkData(): Promise<any>;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kwikid-forms",
3
- "version": "0.6.18",
3
+ "version": "0.6.20",
4
4
  "description": "KwikID's JSON Configuration based Forms Renderer and Builder",
5
5
  "author": {
6
6
  "name": "Baiju Dodhia"