skyflow-js 1.21.2 → 1.21.4

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.
Binary file
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "skyflow-js",
3
3
  "preferGlobal": true,
4
4
  "analyze": false,
5
- "version": "1.21.2",
5
+ "version": "1.21.4",
6
6
  "author": "Skyflow",
7
7
  "description": "Skyflow JavaScript SDK",
8
8
  "homepage": "https://github.com/skyflowapi/skyflow-js",
@@ -260,9 +260,9 @@ export declare const INPUT_WITH_ICON_DEFAULT_STYLES: {
260
260
  'text-indent': string;
261
261
  padding: string;
262
262
  };
263
- export declare const INPUT_ICON_STYLES = "position: absolute; left:8px; top:calc(50% - 10px)";
264
- export declare const COLLECT_COPY_ICON_STYLES = "position: absolute; right:8px; top:calc(50% - 10px); cursor:pointer;";
265
- export declare const REVEAL_COPY_ICON_STYLES = "position: absolute; right:8px; top:calc(50% - 16px); cursor:pointer;";
263
+ export declare const INPUT_ICON_STYLES = "position: absolute; left:8px; bottom:calc(50% - 12px)";
264
+ export declare const COLLECT_COPY_ICON_STYLES = "position: absolute; right:8px; bottom:calc(50% - 12px); cursor:pointer;";
265
+ export declare const REVEAL_COPY_ICON_STYLES = "position: absolute; right:8px; top:calc(50% - 12px); cursor:pointer;";
266
266
  export declare const ERROR_TEXT_STYLES: {
267
267
  color: string;
268
268
  padding: string;
@@ -15,6 +15,7 @@ declare class CollectElement extends SkyflowElement {
15
15
  isValid: boolean;
16
16
  isFocused: boolean;
17
17
  value: string | Object | Blob | undefined;
18
+ required: boolean;
18
19
  };
19
20
  getOptions: () => any;
20
21
  on(eventName: string, handler: any): void;
@@ -8,6 +8,7 @@ export declare class IFrameFormElement extends EventEmitter {
8
8
  isEmpty: boolean;
9
9
  isComplete: boolean;
10
10
  name: string;
11
+ isRequired: boolean;
11
12
  };
12
13
  readonly fieldType: string;
13
14
  private sensitive;
@@ -34,7 +35,7 @@ export declare class IFrameFormElement extends EventEmitter {
34
35
  setValidation(validations: IValidationRule[] | undefined): void;
35
36
  setFormat(format: string): void;
36
37
  setSensitive(sensitive?: boolean): void;
37
- setValue: (value: any, valid?: boolean) => void;
38
+ setValue: (value?: any, valid?: boolean) => void;
38
39
  getValue: () => any;
39
40
  getUnformattedValue: () => any;
40
41
  getStatus: () => {
@@ -42,6 +43,7 @@ export declare class IFrameFormElement extends EventEmitter {
42
43
  isValid: boolean;
43
44
  isEmpty: boolean;
44
45
  isComplete: boolean;
46
+ isRequired: boolean;
45
47
  value: string | Blob | undefined;
46
48
  };
47
49
  validator(value: any): boolean;
@@ -16,12 +16,14 @@ export declare class FrameElement {
16
16
  private iFrameFormElement;
17
17
  private domLabel?;
18
18
  private domInput?;
19
- private domError?;
19
+ domError?: HTMLSpanElement;
20
20
  private domImg?;
21
21
  private inputParent?;
22
22
  private domCopy?;
23
23
  private copyText?;
24
24
  private hasError?;
25
+ private labelDiv?;
26
+ private isRequiredLabel?;
25
27
  constructor(iFrameFormElement: IFrameFormElement, options: any, htmlDivElement: HTMLDivElement);
26
28
  mount: () => void;
27
29
  setupInputField(newValue?: boolean): void;
@@ -37,6 +39,7 @@ export declare class FrameElement {
37
39
  isValid: boolean;
38
40
  isEmpty: boolean;
39
41
  isComplete: boolean;
42
+ value: string | Blob | undefined;
40
43
  }): void;
41
44
  setClass(types: string[], dom?: HTMLElement, preText?: string): void;
42
45
  updateOptions(options: any): void;
@@ -8,3 +8,4 @@ export declare const getReturnValue: (value: string | Blob, element: string, doe
8
8
  export declare const copyToClipboard: (text: string) => void;
9
9
  export declare const handleCopyIconClick: (textToCopy: string, domCopy: any) => void;
10
10
  export declare const fileValidation: (value: any) => boolean;
11
+ export declare const styleToString: (style: any) => string;
@@ -73,6 +73,8 @@ declare const logs: {
73
73
  INVALID_CONTAINER_TYPE: string;
74
74
  INVALID_COLLECT_VALUE: string;
75
75
  INVALID_COLLECT_VALUE_WITH_LABEL: string;
76
+ REQUIRED_COLLECT_VALUE: string;
77
+ DEFAULT_REQUIRED_COLLECT_VALUE: string;
76
78
  RECORDS_KEY_NOT_FOUND: string;
77
79
  INVALID_RECORDS_IN_INSERT: string;
78
80
  EMPTY_RECORDS_IN_INSERT: string;