@regulaforensics/idv-gui 2.5.171 → 2.5.175-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.
Files changed (3) hide show
  1. package/dist/index.d.ts +77 -13
  2. package/dist/main.js +4458 -3858
  3. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ declare abstract class BaseModule<TModuleProps = unknown, TModulesConfig = unknown> extends HTMLElement {
2
+ abstract props: IdvModuleProps<TModuleProps, TModulesConfig> | null;
3
+ abstract setProps(config: IdvModuleProps<TModuleProps, TModulesConfig>): void;
4
+ }
5
+
1
6
  declare const ContentMode: {
2
7
  readonly ASPECT_FILL: "ASPECT_FILL";
3
8
  readonly ASPECT_FIT: "ASPECT_FIT";
@@ -14,9 +19,37 @@ declare const DATA_SOURCE_ANSWER_TYPE: {
14
19
 
15
20
  declare type DATA_SOURCE_ANSWER_TYPE = (typeof DATA_SOURCE_ANSWER_TYPE)[keyof typeof DATA_SOURCE_ANSWER_TYPE];
16
21
 
17
- declare const GuiIdv: React.FC<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>> & IdvModuleMethods;
22
+ declare type DropdownControl = {
23
+ backgroundColor?: string;
24
+ cornerRadius?: number;
25
+ borderWidth?: number;
26
+ borderColor?: string;
27
+ highlightBorderColor?: string;
28
+ clearButton?: UIImage;
29
+ expandButton?: UIImage;
30
+ };
31
+
32
+ declare class GuiIdv extends BaseModule<GuiModuleProps, GuiModuleConfig> {
33
+ private _root;
34
+ private _mounted;
35
+ props: IdvModuleProps<GuiModuleProps, GuiModuleConfig> | null;
36
+ constructor();
37
+ static displayName: string;
38
+ setProps(props: IdvModuleProps<GuiModuleProps, GuiModuleConfig>): void;
39
+ connectedCallback(): void;
40
+ private render;
41
+ disconnectedCallback(): void;
42
+ static isReady(): boolean;
43
+ static getSupportedTemplates: () => ("INFO" | "INFO_DETAILS" | "STATUS" | "PROGRESS" | "QUESTIONS")[];
44
+ static initialize(modulesConfig: Record<string, unknown>): void;
45
+ static deinitialize(): void;
46
+ static getIdentifier: () => string;
47
+ }
48
+ export { GuiIdv }
18
49
  export default GuiIdv;
19
50
 
51
+ export declare const GuiIdvReactComponent: React.FC<IdvModuleProps<GuiModuleProps | GuiModulePropsUnknown, GuiModuleConfig>>;
52
+
20
53
  export declare const GuiIdvSteps: {
21
54
  readonly INFO: "INFO";
22
55
  readonly INFO_DETAILS: "INFO_DETAILS";
@@ -27,6 +60,10 @@ export declare const GuiIdvSteps: {
27
60
 
28
61
  export declare type GuiIdvSteps = (typeof GuiIdvSteps)[keyof typeof GuiIdvSteps];
29
62
 
63
+ export declare const GuiIdvStyleInjectionWrapper: React.FC<{
64
+ children: React.ReactNode;
65
+ }>;
66
+
30
67
  declare type GuiModuleConfig = Record<string, any>;
31
68
 
32
69
  export declare const GuiModuleError: {
@@ -96,22 +133,22 @@ export declare const IDV_UI_ICONS: {
96
133
 
97
134
  export declare type IDV_UI_ICONS = (typeof IDV_UI_ICONS)[keyof typeof IDV_UI_ICONS];
98
135
 
99
- declare type IdvModuleMethods = {
100
- isReady: () => boolean;
101
- getSupportedTemplates: () => string[];
102
- getIdentifier: () => string;
103
- initialize: (modulesConfig: Record<string, any>) => void;
104
- deinitialize?: () => void;
105
- };
106
-
107
- declare type IdvModuleProps<T, R> = {
136
+ declare type IdvModuleProps<TModuleProps, TModulesConfig> = {
108
137
  isProcessing?: (isProcessing: boolean) => void;
109
- moduleProps: T;
110
- modulesConfig?: R;
138
+ moduleProps: TModuleProps;
139
+ modulesConfig?: TModulesConfig;
111
140
  perform: (data: any) => void;
112
141
  idvEventListener: (module: string, data: any) => void;
113
142
  };
114
143
 
144
+ declare type JsonArray = JsonValue[];
145
+
146
+ declare type JsonObject = {
147
+ [key: string]: JsonValue;
148
+ };
149
+
150
+ declare type JsonValue = string | number | boolean | null | JsonObject | JsonArray;
151
+
115
152
  declare type QuestionDataSource = {
116
153
  id: string | number;
117
154
  placeholder?: string | null;
@@ -198,7 +235,7 @@ declare type UIButton = {
198
235
  type?: 'RESPONSE_BODY' | 'FORM';
199
236
  title?: UILabel;
200
237
  image?: UIImage;
201
- responseBody?: string | Record<string, any>;
238
+ responseBody?: JsonObject;
202
239
  backgroundColor?: string;
203
240
  cornerRadius?: number;
204
241
  highlightColor?: string;
@@ -208,6 +245,13 @@ declare type UIButton = {
208
245
 
209
246
  declare type UIButtonOption = UIButton;
210
247
 
248
+ declare type UIChip = {
249
+ title?: UILabel;
250
+ removeImage?: UIImage;
251
+ cornerRadius?: number;
252
+ backgroundColor?: string;
253
+ };
254
+
211
255
  declare type UIDetailsItem = {
212
256
  title?: UILabel;
213
257
  description?: UILabel;
@@ -222,6 +266,10 @@ declare type UIDetailsList = {
222
266
  cornerRadius: number;
223
267
  };
224
268
 
269
+ declare type UIDropdownControl = DropdownControl & {
270
+ title: UILabel;
271
+ };
272
+
225
273
  declare type UIDropdownOption = {
226
274
  title?: UILabel;
227
275
  image?: UIImage;
@@ -230,6 +278,13 @@ declare type UIDropdownOption = {
230
278
  highlightColor?: string;
231
279
  };
232
280
 
281
+ declare type UIDropdownPicker = {
282
+ backgroundColor?: string;
283
+ cornerRadius?: number;
284
+ borderWidth?: number;
285
+ borderColor?: string;
286
+ };
287
+
233
288
  declare type UIImage = {
234
289
  imageURL?: string;
235
290
  base64?: string;
@@ -276,10 +331,16 @@ declare type UILabel = {
276
331
  cornerRadius?: number;
277
332
  };
278
333
 
334
+ declare type UIMultiDropdownControl = DropdownControl & {
335
+ chip: UIChip;
336
+ };
337
+
279
338
  declare type UIMultiSelectorQuestion = QuestionItem & {
280
339
  displayType: typeof QUESTIONS_DISPLAY_TYPES.MULTI_SELECTOR_DROPDOWN;
281
340
  option: UIDropdownOption;
282
341
  optionSelected: UIDropdownOption;
342
+ dropdownControl: UIMultiDropdownControl;
343
+ dropdownPicker: UIDropdownPicker;
283
344
  };
284
345
 
285
346
  declare type UIProgressScreenClientConfig = {
@@ -325,6 +386,8 @@ declare type UISelectorDropdownQuestion = QuestionItem & {
325
386
  displayType: typeof QUESTIONS_DISPLAY_TYPES.SELECTOR_DROPDOWN;
326
387
  option: UIDropdownOption;
327
388
  optionSelected: UIDropdownOption;
389
+ dropdownControl: UIDropdownControl;
390
+ dropdownPicker: UIDropdownPicker;
328
391
  };
329
392
 
330
393
  declare type UISelectorOptionsQuestion = QuestionItem & {
@@ -339,6 +402,7 @@ declare type UIStatusScreenClientConfig = {
339
402
  header?: UIInfoHeaderView;
340
403
  image?: UIImage;
341
404
  title?: UILabel;
405
+ description: UILabel;
342
406
  buttons?: UIButton[];
343
407
  footer?: UIInfoFooterView;
344
408
  backgroundColor?: string;