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.
- package/CHANGELOG.md +4 -0
- package/README.md +22 -2
- package/dist/sdkNodeBuild/index.js +1 -1
- package/dist/sdkNodeBuild/index.js.gz +0 -0
- package/package.json +1 -1
- package/types/core/constants.d.ts +3 -3
- package/types/core/external/collect/collect-element.d.ts +1 -0
- package/types/core/internal/iframe-form/index.d.ts +3 -1
- package/types/core/internal/index.d.ts +4 -1
- package/types/utils/helpers/index.d.ts +1 -0
- package/types/utils/logs.d.ts +2 -0
|
Binary file
|
package/package.json
CHANGED
|
@@ -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;
|
|
264
|
-
export declare const COLLECT_COPY_ICON_STYLES = "position: absolute; right:8px;
|
|
265
|
-
export declare const REVEAL_COPY_ICON_STYLES = "position: absolute; right:8px; top:calc(50% -
|
|
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;
|
|
@@ -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
|
|
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
|
-
|
|
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;
|
package/types/utils/logs.d.ts
CHANGED
|
@@ -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;
|