@regulaforensics/idv-gui 3.5.319-nightly → 3.5.320-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 +133 -2
- package/dist/main.iife.js +4 -4
- package/dist/main.js +3066 -2615
- package/dist/main.umd.cjs +4 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -38,6 +38,13 @@ declare type FailedAssets = {
|
|
|
38
38
|
blockingAssets: Set<string>;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
+
declare const FontWeight: {
|
|
42
|
+
readonly NORMAL: "NORMAL";
|
|
43
|
+
readonly BOLD: "BOLD";
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
declare type FontWeight = (typeof FontWeight)[keyof typeof FontWeight];
|
|
47
|
+
|
|
41
48
|
export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
|
|
42
49
|
private _mounted;
|
|
43
50
|
private _shadowRoot;
|
|
@@ -54,7 +61,7 @@ export declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig>
|
|
|
54
61
|
private render;
|
|
55
62
|
disconnectedCallback(): void;
|
|
56
63
|
static isReady(): boolean;
|
|
57
|
-
static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION" | "DEVICE_TRANSFER")[];
|
|
64
|
+
static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS" | "CAMERA" | "GALLERY" | "GEOLOCATION" | "DEVICE_TRANSFER" | "GENERIC")[];
|
|
58
65
|
static initialize(_modulesConfig: Record<string, unknown>): void;
|
|
59
66
|
static deinitialize(): void;
|
|
60
67
|
static getIdentifier: () => string;
|
|
@@ -74,6 +81,7 @@ export declare const GuiIdvSteps: {
|
|
|
74
81
|
readonly GALLERY: "GALLERY";
|
|
75
82
|
readonly GEOLOCATION: "GEOLOCATION";
|
|
76
83
|
readonly DEVICE_TRANSFER: "DEVICE_TRANSFER";
|
|
84
|
+
readonly GENERIC: "GENERIC";
|
|
77
85
|
};
|
|
78
86
|
|
|
79
87
|
export declare type GuiIdvSteps = (typeof GuiIdvSteps)[keyof typeof GuiIdvSteps];
|
|
@@ -135,6 +143,9 @@ export declare type GuiModuleProps = {
|
|
|
135
143
|
templateId: typeof GuiIdvSteps.DEVICE_TRANSFER;
|
|
136
144
|
templateLayout: UIDeviceTransferScreenClientConfig;
|
|
137
145
|
url?: string;
|
|
146
|
+
} | {
|
|
147
|
+
templateId: typeof GuiIdvSteps.GENERIC;
|
|
148
|
+
templateLayout: UIGenericScreenClientConfig;
|
|
138
149
|
});
|
|
139
150
|
|
|
140
151
|
export declare const IDV_UI_ICONS: {
|
|
@@ -266,6 +277,10 @@ declare type QuestionsDataSource = {
|
|
|
266
277
|
|
|
267
278
|
declare type QuestionsItemTypes = Array<UITextQuestion | UISelectorQuestion | UIMultiSelectorQuestion>;
|
|
268
279
|
|
|
280
|
+
declare const RootElementTypes: {
|
|
281
|
+
readonly SCAFFOLD: "scaffold";
|
|
282
|
+
};
|
|
283
|
+
|
|
269
284
|
declare type SessionPropertiesItem = {
|
|
270
285
|
id: string;
|
|
271
286
|
createdAt: string;
|
|
@@ -294,9 +309,11 @@ declare type TEXT_INPUT_TYPES = (typeof TEXT_INPUT_TYPES)[keyof typeof TEXT_INPU
|
|
|
294
309
|
|
|
295
310
|
/** Common UI elements types */
|
|
296
311
|
declare const TextAlignment: {
|
|
312
|
+
readonly START: "START";
|
|
297
313
|
readonly LEFT: "LEFT";
|
|
298
314
|
readonly CENTER: "CENTER";
|
|
299
315
|
readonly RIGHT: "RIGHT";
|
|
316
|
+
readonly END: "END";
|
|
300
317
|
};
|
|
301
318
|
|
|
302
319
|
declare type TextAlignment = (typeof TextAlignment)[keyof typeof TextAlignment];
|
|
@@ -311,6 +328,7 @@ declare type UIButton = {
|
|
|
311
328
|
highlightColor?: string;
|
|
312
329
|
borderColor?: string;
|
|
313
330
|
borderWidth?: number;
|
|
331
|
+
paddings?: UIPaddings;
|
|
314
332
|
};
|
|
315
333
|
|
|
316
334
|
declare type UIButtonOption = UIButton;
|
|
@@ -330,6 +348,15 @@ declare type UIChip = {
|
|
|
330
348
|
backgroundColor?: string;
|
|
331
349
|
};
|
|
332
350
|
|
|
351
|
+
declare type UIColumn = {
|
|
352
|
+
elements?: UIElement[];
|
|
353
|
+
horizontalAlignment?: UIHorizontalAlignment;
|
|
354
|
+
verticalAlignment?: UIVerticalAlignment;
|
|
355
|
+
backgroundColor?: string;
|
|
356
|
+
cornerRadius?: number;
|
|
357
|
+
paddings?: UIPaddings;
|
|
358
|
+
};
|
|
359
|
+
|
|
333
360
|
declare type UIDetailsItem = {
|
|
334
361
|
title?: UILabel;
|
|
335
362
|
description?: UILabel;
|
|
@@ -375,6 +402,39 @@ declare type UIDropdownPicker = {
|
|
|
375
402
|
borderColor?: string;
|
|
376
403
|
};
|
|
377
404
|
|
|
405
|
+
declare type UIElement = {
|
|
406
|
+
type: typeof UIElementTypes.LABEL;
|
|
407
|
+
content: WithWeightProp<UILabel>;
|
|
408
|
+
} | {
|
|
409
|
+
type: typeof UIElementTypes.IMAGE;
|
|
410
|
+
content: WithWeightProp<WithWidthAndHeightProps<UIImage>>;
|
|
411
|
+
} | {
|
|
412
|
+
type: typeof UIElementTypes.IMAGE_BUTTON;
|
|
413
|
+
content: WithWeightProp<WithWidthAndHeightProps<UIImageButton>>;
|
|
414
|
+
} | {
|
|
415
|
+
type: typeof UIElementTypes.BUTTON;
|
|
416
|
+
content: WithWeightProp<UIButton>;
|
|
417
|
+
} | {
|
|
418
|
+
type: typeof UIElementTypes.COLUMN;
|
|
419
|
+
content: WithWeightProp<UIColumn>;
|
|
420
|
+
} | {
|
|
421
|
+
type: typeof UIElementTypes.ROW;
|
|
422
|
+
content: WithWeightProp<UIRow>;
|
|
423
|
+
} | {
|
|
424
|
+
type: typeof UIElementTypes.SPACER;
|
|
425
|
+
content: WithWeightProp<WithWidthAndHeightProps<UISpacer>>;
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
declare const UIElementTypes: {
|
|
429
|
+
readonly LABEL: "label";
|
|
430
|
+
readonly IMAGE: "image";
|
|
431
|
+
readonly IMAGE_BUTTON: "imageButton";
|
|
432
|
+
readonly BUTTON: "button";
|
|
433
|
+
readonly COLUMN: "column";
|
|
434
|
+
readonly ROW: "row";
|
|
435
|
+
readonly SPACER: "spacer";
|
|
436
|
+
};
|
|
437
|
+
|
|
378
438
|
declare type UIGalleryScreenClientConfig = {
|
|
379
439
|
header?: UIInfoHeaderView;
|
|
380
440
|
footer?: UIInfoFooterView;
|
|
@@ -383,6 +443,10 @@ declare type UIGalleryScreenClientConfig = {
|
|
|
383
443
|
selectionLimit?: number;
|
|
384
444
|
};
|
|
385
445
|
|
|
446
|
+
declare type UIGenericScreenClientConfig = {
|
|
447
|
+
rootElement: UIRootElement;
|
|
448
|
+
};
|
|
449
|
+
|
|
386
450
|
declare type UIGeolocationPopupSystemRestrictedOnly = UIPopup & {
|
|
387
451
|
reason: typeof PopupReason.SYSTEM_RESTRICTED;
|
|
388
452
|
};
|
|
@@ -397,7 +461,16 @@ declare type UIGeolocationScreenClientConfig = {
|
|
|
397
461
|
backgroundColor?: string;
|
|
398
462
|
popups: [UIGeolocationPopupSystemRestrictedOnly];
|
|
399
463
|
askEveryTime?: boolean;
|
|
400
|
-
|
|
464
|
+
};
|
|
465
|
+
|
|
466
|
+
declare type UIHorizontalAlignment = (typeof UIHorizontalAlignments)[keyof typeof UIHorizontalAlignments];
|
|
467
|
+
|
|
468
|
+
declare const UIHorizontalAlignments: {
|
|
469
|
+
readonly START: "START";
|
|
470
|
+
readonly LEFT: "LEFT";
|
|
471
|
+
readonly CENTER: "CENTER";
|
|
472
|
+
readonly RIGHT: "RIGHT";
|
|
473
|
+
readonly END: "END";
|
|
401
474
|
};
|
|
402
475
|
|
|
403
476
|
declare type UIImage = ImageBase & {
|
|
@@ -407,6 +480,12 @@ declare type UIImage = ImageBase & {
|
|
|
407
480
|
cornerRadius?: number;
|
|
408
481
|
};
|
|
409
482
|
|
|
483
|
+
declare type UIImageButton = {
|
|
484
|
+
paddings?: UIPaddings;
|
|
485
|
+
image: UIImage;
|
|
486
|
+
responseBody?: JsonObject;
|
|
487
|
+
};
|
|
488
|
+
|
|
410
489
|
declare type UIInfoDetailsScreenClientConfig = {
|
|
411
490
|
header?: UIInfoHeaderView;
|
|
412
491
|
title?: UILabel;
|
|
@@ -442,6 +521,8 @@ declare type UILabel = {
|
|
|
442
521
|
alignment?: TextAlignment;
|
|
443
522
|
backgroundColor?: string;
|
|
444
523
|
cornerRadius?: number;
|
|
524
|
+
paddings?: UIPaddings;
|
|
525
|
+
fontWeight?: FontWeight;
|
|
445
526
|
};
|
|
446
527
|
|
|
447
528
|
declare type UIMultiDropdownControl = DropdownControl & {
|
|
@@ -456,6 +537,13 @@ declare type UIMultiSelectorQuestion = QuestionItem & {
|
|
|
456
537
|
dropdownPicker: UIDropdownPicker;
|
|
457
538
|
};
|
|
458
539
|
|
|
540
|
+
declare type UIPaddings = {
|
|
541
|
+
right?: number;
|
|
542
|
+
left?: number;
|
|
543
|
+
top?: number;
|
|
544
|
+
bottom?: number;
|
|
545
|
+
};
|
|
546
|
+
|
|
459
547
|
declare type UIPopup = {
|
|
460
548
|
reason: PopupReason;
|
|
461
549
|
actionButton1: PopupActionButton;
|
|
@@ -499,6 +587,27 @@ declare type UIRadioOption = {
|
|
|
499
587
|
highlightColor?: string;
|
|
500
588
|
};
|
|
501
589
|
|
|
590
|
+
declare type UIRootElement = {
|
|
591
|
+
type: typeof RootElementTypes.SCAFFOLD;
|
|
592
|
+
content: UIScaffoldContainer;
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
declare type UIRow = {
|
|
596
|
+
elements?: UIElement[];
|
|
597
|
+
horizontalAlignment?: UIHorizontalAlignment;
|
|
598
|
+
verticalAlignment?: UIVerticalAlignment;
|
|
599
|
+
backgroundColor?: string;
|
|
600
|
+
cornerRadius?: number;
|
|
601
|
+
paddings?: UIPaddings;
|
|
602
|
+
};
|
|
603
|
+
|
|
604
|
+
declare type UIScaffoldContainer = {
|
|
605
|
+
topColumn?: UIColumn;
|
|
606
|
+
mainColumn?: UIColumn;
|
|
607
|
+
bottomColumn?: UIColumn;
|
|
608
|
+
backgroundColor?: string;
|
|
609
|
+
};
|
|
610
|
+
|
|
502
611
|
declare type UISelectorButtonsQuestion = QuestionItem & {
|
|
503
612
|
displayType: typeof QUESTIONS_DISPLAY_TYPES.SELECTOR_BUTTONS;
|
|
504
613
|
option: UIButtonOption;
|
|
@@ -521,6 +630,11 @@ declare type UISelectorOptionsQuestion = QuestionItem & {
|
|
|
521
630
|
|
|
522
631
|
declare type UISelectorQuestion = UISelectorOptionsQuestion | UISelectorButtonsQuestion | UISelectorDropdownQuestion;
|
|
523
632
|
|
|
633
|
+
declare type UISpacer = {
|
|
634
|
+
backgroundColor?: string;
|
|
635
|
+
cornerRadius?: number;
|
|
636
|
+
};
|
|
637
|
+
|
|
524
638
|
declare type UIStatusScreenClientConfig = {
|
|
525
639
|
header?: UIInfoHeaderView;
|
|
526
640
|
image?: UIImage;
|
|
@@ -545,6 +659,14 @@ declare type UITextQuestion = QuestionItem & {
|
|
|
545
659
|
textField?: UITextField;
|
|
546
660
|
};
|
|
547
661
|
|
|
662
|
+
declare type UIVerticalAlignment = (typeof UIVerticalAlignments)[keyof typeof UIVerticalAlignments];
|
|
663
|
+
|
|
664
|
+
declare const UIVerticalAlignments: {
|
|
665
|
+
readonly TOP: "TOP";
|
|
666
|
+
readonly CENTER: "CENTER";
|
|
667
|
+
readonly BOTTOM: "BOTTOM";
|
|
668
|
+
};
|
|
669
|
+
|
|
548
670
|
declare type Validator = {
|
|
549
671
|
type: typeof VALIDATOR_TYPE.NOT_EMPTY;
|
|
550
672
|
message: string;
|
|
@@ -561,4 +683,13 @@ declare const VALIDATOR_TYPE: {
|
|
|
561
683
|
|
|
562
684
|
declare type VALIDATOR_TYPE = (typeof VALIDATOR_TYPE)[keyof typeof VALIDATOR_TYPE];
|
|
563
685
|
|
|
686
|
+
declare type WithWeightProp<T> = T & {
|
|
687
|
+
weight?: number;
|
|
688
|
+
};
|
|
689
|
+
|
|
690
|
+
declare type WithWidthAndHeightProps<T> = T & {
|
|
691
|
+
width?: number;
|
|
692
|
+
height?: number;
|
|
693
|
+
};
|
|
694
|
+
|
|
564
695
|
export { }
|