@regulaforensics/idv-gui 3.6.402-nightly → 3.6.404-nightly
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/dist/index.d.ts +53 -1
- package/dist/main.iife.js +4 -4
- package/dist/main.js +3999 -3439
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig>
|
|
|
61
61
|
private render;
|
|
62
62
|
disconnectedCallback(): void;
|
|
63
63
|
static isReady(): boolean;
|
|
64
|
-
static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION" | "DEVICE_TRANSFER" | "GENERIC")[];
|
|
64
|
+
static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION" | "DEVICE_TRANSFER" | "GENERIC" | "UPLOAD_FILES")[];
|
|
65
65
|
static initialize(_modulesConfig: Record<string, unknown>): void;
|
|
66
66
|
static deinitialize(): void;
|
|
67
67
|
static getIdentifier: () => string;
|
|
@@ -82,6 +82,7 @@ export declare const GuiIdvSteps: {
|
|
|
82
82
|
readonly GEOLOCATION: "GEOLOCATION";
|
|
83
83
|
readonly DEVICE_TRANSFER: "DEVICE_TRANSFER";
|
|
84
84
|
readonly GENERIC: "GENERIC";
|
|
85
|
+
readonly UPLOAD_FILES: "UPLOAD_FILES";
|
|
85
86
|
};
|
|
86
87
|
|
|
87
88
|
export declare type GuiIdvSteps = (typeof GuiIdvSteps)[keyof typeof GuiIdvSteps];
|
|
@@ -146,11 +147,18 @@ export declare type GuiModuleProps = {
|
|
|
146
147
|
} | {
|
|
147
148
|
templateId: typeof GuiIdvSteps.GENERIC;
|
|
148
149
|
templateLayout: UIGenericScreenClientConfig;
|
|
150
|
+
} | {
|
|
151
|
+
templateId: typeof GuiIdvSteps.UPLOAD_FILES;
|
|
152
|
+
templateLayout: UIUploadFilesScreenClientConfig;
|
|
153
|
+
serviceToken?: string;
|
|
154
|
+
uploadFileToTemp?: UploadFileToTemp;
|
|
155
|
+
abortRequest?: () => void;
|
|
149
156
|
});
|
|
150
157
|
|
|
151
158
|
export declare const IDV_UI_ICONS: {
|
|
152
159
|
readonly WARNING: "warning_icon";
|
|
153
160
|
readonly SPINNER: "spinner";
|
|
161
|
+
readonly LOADER: "loader";
|
|
154
162
|
readonly ERROR: "failure";
|
|
155
163
|
readonly AGE: "age";
|
|
156
164
|
readonly ANDROID: "android";
|
|
@@ -175,6 +183,9 @@ export declare const IDV_UI_ICONS: {
|
|
|
175
183
|
readonly CLOSE_ICON: "close_icon";
|
|
176
184
|
readonly GALLERY_ICON: "gallery";
|
|
177
185
|
readonly CAMERA_ICON: "camera";
|
|
186
|
+
readonly OK: "ok";
|
|
187
|
+
readonly FILE: "file";
|
|
188
|
+
readonly RELOAD: "reload";
|
|
178
189
|
};
|
|
179
190
|
|
|
180
191
|
export declare type IDV_UI_ICONS = (typeof IDV_UI_ICONS)[keyof typeof IDV_UI_ICONS];
|
|
@@ -226,6 +237,7 @@ declare type PopupActionButton = {
|
|
|
226
237
|
export declare const PopupReason: {
|
|
227
238
|
readonly APP_DENIED: "app_denied";
|
|
228
239
|
readonly SYSTEM_RESTRICTED: "system_restricted";
|
|
240
|
+
readonly FILES_NOT_SELECTED: "files_not_selected";
|
|
229
241
|
};
|
|
230
242
|
|
|
231
243
|
export declare type PopupReason = (typeof PopupReason)[keyof typeof PopupReason];
|
|
@@ -319,6 +331,7 @@ declare const TextAlignment: {
|
|
|
319
331
|
declare type TextAlignment = (typeof TextAlignment)[keyof typeof TextAlignment];
|
|
320
332
|
|
|
321
333
|
declare type UIButton = {
|
|
334
|
+
actionId?: string;
|
|
322
335
|
type?: 'RESPONSE_BODY' | 'FORM';
|
|
323
336
|
title?: UILabel;
|
|
324
337
|
image?: UIImage;
|
|
@@ -435,6 +448,10 @@ declare const UIElementTypes: {
|
|
|
435
448
|
readonly SPACER: "spacer";
|
|
436
449
|
};
|
|
437
450
|
|
|
451
|
+
declare type UIFileUploadPopupNoFilesOnly = UIPopup & {
|
|
452
|
+
reason: typeof PopupReason.FILES_NOT_SELECTED;
|
|
453
|
+
};
|
|
454
|
+
|
|
438
455
|
declare type UIGalleryScreenClientConfig = {
|
|
439
456
|
header?: UIInfoHeaderView;
|
|
440
457
|
footer?: UIInfoFooterView;
|
|
@@ -671,6 +688,26 @@ declare type UITextQuestion = QuestionItem & {
|
|
|
671
688
|
textField?: UITextField;
|
|
672
689
|
};
|
|
673
690
|
|
|
691
|
+
declare type UIUploadFilesScreenClientConfig = {
|
|
692
|
+
header?: UIInfoHeaderView;
|
|
693
|
+
title?: UILabel;
|
|
694
|
+
description?: UILabel;
|
|
695
|
+
buttons?: UIButton[];
|
|
696
|
+
footer?: UIInfoFooterView;
|
|
697
|
+
backgroundColor?: string;
|
|
698
|
+
popups?: [UIFileUploadPopupNoFilesOnly];
|
|
699
|
+
settings: {
|
|
700
|
+
supportedFileFormats: string[];
|
|
701
|
+
fileMaxSize: number;
|
|
702
|
+
selectionLimit: number;
|
|
703
|
+
};
|
|
704
|
+
errorMessages: {
|
|
705
|
+
invalidFileSize: string;
|
|
706
|
+
invalidFileFormat: string;
|
|
707
|
+
fileNotLoaded: string;
|
|
708
|
+
};
|
|
709
|
+
};
|
|
710
|
+
|
|
674
711
|
declare type UIVerticalAlignment = (typeof UIVerticalAlignments)[keyof typeof UIVerticalAlignments];
|
|
675
712
|
|
|
676
713
|
declare const UIVerticalAlignments: {
|
|
@@ -679,6 +716,21 @@ declare const UIVerticalAlignments: {
|
|
|
679
716
|
readonly BOTTOM: "BOTTOM";
|
|
680
717
|
};
|
|
681
718
|
|
|
719
|
+
declare type UploadFileToTemp = (file: File, onProgress: (sentBytes: number, total: number) => void, signal?: AbortSignal) => Promise<{
|
|
720
|
+
code: 0;
|
|
721
|
+
data: {
|
|
722
|
+
tempFileId: string;
|
|
723
|
+
};
|
|
724
|
+
} | {
|
|
725
|
+
code: number;
|
|
726
|
+
data: {
|
|
727
|
+
httpCode: number;
|
|
728
|
+
method: string;
|
|
729
|
+
url: string;
|
|
730
|
+
what?: string;
|
|
731
|
+
};
|
|
732
|
+
}>;
|
|
733
|
+
|
|
682
734
|
declare type Validator = {
|
|
683
735
|
type: typeof VALIDATOR_TYPE.NOT_EMPTY;
|
|
684
736
|
message: string;
|