@jaak.ai/stamps 1.0.0-dev.7
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/README.md +385 -0
- package/dist/cjs/document-detector_19.cjs.entry.js +8528 -0
- package/dist/cjs/index-5e4e5e7d.js +1685 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/cjs/mb-tooltip.cjs.entry.js +26 -0
- package/dist/cjs/stamps.cjs.js +23 -0
- package/dist/collection/collection-manifest.json +31 -0
- package/dist/collection/components/document-detector/document-detector.css +154 -0
- package/dist/collection/components/document-detector/document-detector.js +383 -0
- package/dist/collection/components/shared/mb-api-process-status/mb-api-process-status.css +360 -0
- package/dist/collection/components/shared/mb-api-process-status/mb-api-process-status.js +124 -0
- package/dist/collection/components/shared/mb-button/mb-button.css +95 -0
- package/dist/collection/components/shared/mb-button/mb-button.js +201 -0
- package/dist/collection/components/shared/mb-button-classic/mb-button-classic.css +100 -0
- package/dist/collection/components/shared/mb-button-classic/mb-button-classic.js +130 -0
- package/dist/collection/components/shared/mb-camera-experience/mb-camera-experience.css +740 -0
- package/dist/collection/components/shared/mb-camera-experience/mb-camera-experience.js +827 -0
- package/dist/collection/components/shared/mb-camera-experience/mb-camera-experience.utils.js +55 -0
- package/dist/collection/components/shared/mb-camera-selection/mb-camera-selection.css +124 -0
- package/dist/collection/components/shared/mb-camera-selection/mb-camera-selection.js +194 -0
- package/dist/collection/components/shared/mb-camera-toolbar/mb-camera-toolbar.css +80 -0
- package/dist/collection/components/shared/mb-camera-toolbar/mb-camera-toolbar.js +275 -0
- package/dist/collection/components/shared/mb-completed/mb-completed.css +17 -0
- package/dist/collection/components/shared/mb-completed/mb-completed.js +48 -0
- package/dist/collection/components/shared/mb-component/mb-component.css +321 -0
- package/dist/collection/components/shared/mb-component/mb-component.js +2269 -0
- package/dist/collection/components/shared/mb-component/mb-component.utils.js +14 -0
- package/dist/collection/components/shared/mb-container/mb-container.css +7 -0
- package/dist/collection/components/shared/mb-container/mb-container.js +23 -0
- package/dist/collection/components/shared/mb-feedback/mb-feedback.css +36 -0
- package/dist/collection/components/shared/mb-feedback/mb-feedback.js +91 -0
- package/dist/collection/components/shared/mb-feedback/mb-feedback.utils.js +11 -0
- package/dist/collection/components/shared/mb-help/mb-help.css +191 -0
- package/dist/collection/components/shared/mb-help/mb-help.js +409 -0
- package/dist/collection/components/shared/mb-help/mb-help.model.js +5 -0
- package/dist/collection/components/shared/mb-image-box/mb-image-box.css +78 -0
- package/dist/collection/components/shared/mb-image-box/mb-image-box.js +150 -0
- package/dist/collection/components/shared/mb-modal/mb-modal.css +106 -0
- package/dist/collection/components/shared/mb-modal/mb-modal.js +239 -0
- package/dist/collection/components/shared/mb-overlay/mb-overlay.css +46 -0
- package/dist/collection/components/shared/mb-overlay/mb-overlay.js +76 -0
- package/dist/collection/components/shared/mb-progress-tracker/mb-progress-tracker.css +24 -0
- package/dist/collection/components/shared/mb-progress-tracker/mb-progress-tracker.js +80 -0
- package/dist/collection/components/shared/mb-screen/mb-screen.css +19 -0
- package/dist/collection/components/shared/mb-screen/mb-screen.js +48 -0
- package/dist/collection/components/shared/mb-spinner/mb-spinner.css +30 -0
- package/dist/collection/components/shared/mb-spinner/mb-spinner.js +67 -0
- package/dist/collection/components/shared/mb-tooltip/mb-tooltip.css +62 -0
- package/dist/collection/components/shared/mb-tooltip/mb-tooltip.js +150 -0
- package/dist/collection/components/shared/mb-tooltip-advanced/mb-tooltip-advanced.css +91 -0
- package/dist/collection/components/shared/mb-tooltip-advanced/mb-tooltip-advanced.js +96 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/utils/data-structures.js +189 -0
- package/dist/collection/utils/device.helpers.js +37 -0
- package/dist/collection/utils/error-structures.js +47 -0
- package/dist/collection/utils/generic.helpers.js +82 -0
- package/dist/collection/utils/sdk.service.js +943 -0
- package/dist/collection/utils/state-lifter.js +3 -0
- package/dist/collection/utils/status.document-detector.js +15 -0
- package/dist/collection/utils/translation.service.js +97 -0
- package/dist/esm/document-detector_19.entry.js +8506 -0
- package/dist/esm/index-dc740acb.js +1656 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +18 -0
- package/dist/esm/mb-tooltip.entry.js +22 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/esm/stamps.js +18 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/stamps/index.esm.js +0 -0
- package/dist/stamps/p-02990b18.entry.js +9 -0
- package/dist/stamps/p-7f07a434.js +2 -0
- package/dist/stamps/p-ec3f5972.entry.js +1 -0
- package/dist/stamps/stamps.esm.js +1 -0
- package/dist/types/components/document-detector/document-detector.d.ts +84 -0
- package/dist/types/components/shared/mb-api-process-status/mb-api-process-status.d.ts +30 -0
- package/dist/types/components/shared/mb-button/mb-button.d.ts +41 -0
- package/dist/types/components/shared/mb-button-classic/mb-button-classic.d.ts +27 -0
- package/dist/types/components/shared/mb-camera-experience/mb-camera-experience.d.ts +141 -0
- package/dist/types/components/shared/mb-camera-experience/mb-camera-experience.utils.d.ts +3 -0
- package/dist/types/components/shared/mb-camera-selection/mb-camera-selection.d.ts +33 -0
- package/dist/types/components/shared/mb-camera-toolbar/mb-camera-toolbar.d.ts +54 -0
- package/dist/types/components/shared/mb-completed/mb-completed.d.ts +12 -0
- package/dist/types/components/shared/mb-component/mb-component.d.ts +308 -0
- package/dist/types/components/shared/mb-component/mb-component.utils.d.ts +3 -0
- package/dist/types/components/shared/mb-container/mb-container.d.ts +8 -0
- package/dist/types/components/shared/mb-feedback/mb-feedback.d.ts +19 -0
- package/dist/types/components/shared/mb-feedback/mb-feedback.utils.d.ts +2 -0
- package/dist/types/components/shared/mb-help/mb-help.d.ts +66 -0
- package/dist/types/components/shared/mb-help/mb-help.model.d.ts +9 -0
- package/dist/types/components/shared/mb-image-box/mb-image-box.d.ts +35 -0
- package/dist/types/components/shared/mb-modal/mb-modal.d.ts +53 -0
- package/dist/types/components/shared/mb-overlay/mb-overlay.d.ts +17 -0
- package/dist/types/components/shared/mb-progress-tracker/mb-progress-tracker.d.ts +19 -0
- package/dist/types/components/shared/mb-screen/mb-screen.d.ts +12 -0
- package/dist/types/components/shared/mb-spinner/mb-spinner.d.ts +16 -0
- package/dist/types/components/shared/mb-tooltip/mb-tooltip.d.ts +10 -0
- package/dist/types/components/shared/mb-tooltip-advanced/mb-tooltip-advanced.d.ts +7 -0
- package/dist/types/components.d.ts +1381 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1637 -0
- package/dist/types/utils/data-structures.d.ts +264 -0
- package/dist/types/utils/device.helpers.d.ts +7 -0
- package/dist/types/utils/error-structures.d.ts +44 -0
- package/dist/types/utils/generic.helpers.d.ts +21 -0
- package/dist/types/utils/sdk.service.d.ts +52 -0
- package/dist/types/utils/state-lifter.d.ts +3 -0
- package/dist/types/utils/status.document-detector.d.ts +14 -0
- package/dist/types/utils/translation.service.d.ts +77 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +63 -0
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { CameraExperienceStateDurations, EventReady, EventScanError, EventScanSuccess, FeedbackMessage, SDKError } from "../../../utils/data-structures";
|
|
3
|
+
import { SdkService } from "../../../utils/sdk.service";
|
|
4
|
+
import { BlinkIDVariant } from "@microblink/blinkid-in-browser-sdk";
|
|
5
|
+
import { TranslationService } from "../../../utils/translation.service";
|
|
6
|
+
export declare class MbComponent {
|
|
7
|
+
private screens;
|
|
8
|
+
private overlays;
|
|
9
|
+
private gracePeriodEntered;
|
|
10
|
+
private cameraExperience;
|
|
11
|
+
private dragAndDropZone;
|
|
12
|
+
private errorMessage;
|
|
13
|
+
private scanFromCameraButton;
|
|
14
|
+
private scanFromImageButton;
|
|
15
|
+
private scanFromImageInput;
|
|
16
|
+
private videoElement;
|
|
17
|
+
private licenseExperienceModal;
|
|
18
|
+
private scanReset;
|
|
19
|
+
private detectionSuccessLock;
|
|
20
|
+
private isBackSide;
|
|
21
|
+
private initialBodyOverflowValue;
|
|
22
|
+
private cameraChangeInProgress;
|
|
23
|
+
private blocked;
|
|
24
|
+
private multiSideGalleryOpened;
|
|
25
|
+
private imageRecognitionType;
|
|
26
|
+
private imageBoxFirst;
|
|
27
|
+
private imageBoxSecond;
|
|
28
|
+
private areHelpScreensOpen;
|
|
29
|
+
private galleryImageFirstFile;
|
|
30
|
+
private galleryImageSecondFile;
|
|
31
|
+
private multiSideScanFromImageButton;
|
|
32
|
+
private isCameraActive;
|
|
33
|
+
galleryExperienceModalErrorWindowVisible: boolean;
|
|
34
|
+
clearIsCameraActive: boolean;
|
|
35
|
+
apiProcessStatusVisible: boolean;
|
|
36
|
+
apiProcessStatusState: "ERROR" | "LOADING" | "NONE" | "SUCCESS";
|
|
37
|
+
/**
|
|
38
|
+
* Host element as variable for manipulation (CSS in this case)
|
|
39
|
+
*/
|
|
40
|
+
hostEl: HTMLElement;
|
|
41
|
+
/**
|
|
42
|
+
* See description in public component.
|
|
43
|
+
*/
|
|
44
|
+
allowHelloMessage: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* See description in public component.
|
|
47
|
+
*/
|
|
48
|
+
engineLocation: string;
|
|
49
|
+
/**
|
|
50
|
+
* See description in public component.
|
|
51
|
+
*/
|
|
52
|
+
workerLocation: string;
|
|
53
|
+
/**
|
|
54
|
+
* See description in public component.
|
|
55
|
+
*/
|
|
56
|
+
licenseKey: string;
|
|
57
|
+
/**
|
|
58
|
+
* See description in public component.
|
|
59
|
+
*/
|
|
60
|
+
wasmType: string | null;
|
|
61
|
+
blinkIdVariant?: BlinkIDVariant;
|
|
62
|
+
/**
|
|
63
|
+
* See description in public component.
|
|
64
|
+
*/
|
|
65
|
+
recognizers: Array<string>;
|
|
66
|
+
/**
|
|
67
|
+
* See description in public component.
|
|
68
|
+
*/
|
|
69
|
+
recognizerOptions: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* See description in public component.
|
|
74
|
+
*/
|
|
75
|
+
recognitionTimeout: number;
|
|
76
|
+
/**
|
|
77
|
+
* See description in public component.
|
|
78
|
+
*/
|
|
79
|
+
recognitionPauseTimeout: number;
|
|
80
|
+
/**
|
|
81
|
+
* See description in public component.
|
|
82
|
+
*/
|
|
83
|
+
cameraExperienceStateDurations: CameraExperienceStateDurations;
|
|
84
|
+
/**
|
|
85
|
+
* See description in public component.
|
|
86
|
+
*/
|
|
87
|
+
includeSuccessFrame: boolean;
|
|
88
|
+
/**
|
|
89
|
+
* See description in public component.
|
|
90
|
+
*/
|
|
91
|
+
enableDrag: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* See description in public component.
|
|
94
|
+
*/
|
|
95
|
+
hideLoadingAndErrorUi: boolean;
|
|
96
|
+
/**
|
|
97
|
+
* See description in public component.
|
|
98
|
+
*/
|
|
99
|
+
rtl: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* See description in public component.
|
|
102
|
+
*/
|
|
103
|
+
scanFromCamera: boolean;
|
|
104
|
+
/**
|
|
105
|
+
* See description in public component.
|
|
106
|
+
*/
|
|
107
|
+
scanFromImage: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* See description in public component.
|
|
110
|
+
*/
|
|
111
|
+
thoroughScanFromImage: boolean;
|
|
112
|
+
/**
|
|
113
|
+
* See description in public component.
|
|
114
|
+
*/
|
|
115
|
+
galleryOverlayType: "FULLSCREEN" | "INLINE";
|
|
116
|
+
/**
|
|
117
|
+
* See description in public component.
|
|
118
|
+
*/
|
|
119
|
+
galleryDropType: "FULLSCREEN" | "INLINE";
|
|
120
|
+
/**
|
|
121
|
+
* See description in public component.
|
|
122
|
+
*/
|
|
123
|
+
showActionLabels: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* See description in public component.
|
|
126
|
+
*/
|
|
127
|
+
showModalWindows: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* See description in public component.
|
|
130
|
+
*/
|
|
131
|
+
showCameraFeedbackBarcodeMessage: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* See description in public component.
|
|
134
|
+
*/
|
|
135
|
+
showScanningLine: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* See description in public component.
|
|
138
|
+
*/
|
|
139
|
+
iconCameraDefault: string;
|
|
140
|
+
/**
|
|
141
|
+
* See description in public component.
|
|
142
|
+
*/
|
|
143
|
+
iconCameraActive: string;
|
|
144
|
+
/**
|
|
145
|
+
* See description in public component.
|
|
146
|
+
*/
|
|
147
|
+
iconGalleryDefault: string;
|
|
148
|
+
/**
|
|
149
|
+
* See description in public component.
|
|
150
|
+
*/
|
|
151
|
+
iconDragAndDropGalleryDefault: string;
|
|
152
|
+
/**
|
|
153
|
+
* See description in public component.
|
|
154
|
+
*/
|
|
155
|
+
iconDragAndDropWarningDefault: string;
|
|
156
|
+
/**
|
|
157
|
+
* See description in public component.
|
|
158
|
+
*/
|
|
159
|
+
iconGalleryActive: string;
|
|
160
|
+
/**
|
|
161
|
+
* See description in public component.
|
|
162
|
+
*/
|
|
163
|
+
iconInvalidFormat: string;
|
|
164
|
+
/**
|
|
165
|
+
* See description in public component.
|
|
166
|
+
*/
|
|
167
|
+
iconSpinnerScreenLoading: string;
|
|
168
|
+
/**
|
|
169
|
+
* See description in public component.
|
|
170
|
+
*/
|
|
171
|
+
iconSpinnerFromGalleryExperience: string;
|
|
172
|
+
/**
|
|
173
|
+
* See description in public component.
|
|
174
|
+
*/
|
|
175
|
+
iconGalleryScanningCompleted: string;
|
|
176
|
+
/**
|
|
177
|
+
* Instance of SdkService passed from root component.
|
|
178
|
+
*/
|
|
179
|
+
sdkService: SdkService;
|
|
180
|
+
/**
|
|
181
|
+
* Instance of TranslationService passed from root component.
|
|
182
|
+
*/
|
|
183
|
+
translationService: TranslationService;
|
|
184
|
+
/**
|
|
185
|
+
* Camera device ID passed from root component.
|
|
186
|
+
*/
|
|
187
|
+
cameraId: string | null;
|
|
188
|
+
/**
|
|
189
|
+
* Dictates if Help Screens usage is allowed (turned on).
|
|
190
|
+
*/
|
|
191
|
+
allowHelpScreens: boolean;
|
|
192
|
+
/**
|
|
193
|
+
* See description in public component.
|
|
194
|
+
*/
|
|
195
|
+
allowHelpScreensFab: boolean;
|
|
196
|
+
/**
|
|
197
|
+
* See description in public component.
|
|
198
|
+
*/
|
|
199
|
+
allowHelpScreensOnboarding: boolean;
|
|
200
|
+
/**
|
|
201
|
+
* See description in public component.
|
|
202
|
+
*/
|
|
203
|
+
allowHelpScreensOnboardingPerpetuity: boolean;
|
|
204
|
+
/**
|
|
205
|
+
* See description in public component.
|
|
206
|
+
*/
|
|
207
|
+
helpScreensTooltipPauseTimeout: number;
|
|
208
|
+
/**
|
|
209
|
+
* See description in public component.
|
|
210
|
+
*/
|
|
211
|
+
pingProxyUrl: string | null;
|
|
212
|
+
/**
|
|
213
|
+
* Event containing boolean which used to check whether component is blocked.
|
|
214
|
+
*/
|
|
215
|
+
block: EventEmitter<boolean>;
|
|
216
|
+
/**
|
|
217
|
+
* See event 'fatalError' in public component.
|
|
218
|
+
*/
|
|
219
|
+
fatalError: EventEmitter<SDKError>;
|
|
220
|
+
/**
|
|
221
|
+
* See event 'ready' in public component.
|
|
222
|
+
*/
|
|
223
|
+
ready: EventEmitter<EventReady>;
|
|
224
|
+
/**
|
|
225
|
+
* See event 'scanError' in public component.
|
|
226
|
+
*/
|
|
227
|
+
scanError: EventEmitter<EventScanError>;
|
|
228
|
+
/**
|
|
229
|
+
* See event 'scanSuccess' in public component.
|
|
230
|
+
*/
|
|
231
|
+
scanSuccess: EventEmitter<EventScanSuccess>;
|
|
232
|
+
/**
|
|
233
|
+
* Event containing FeedbackMessage which can be passed to MbFeedback component.
|
|
234
|
+
*/
|
|
235
|
+
feedback: EventEmitter<FeedbackMessage>;
|
|
236
|
+
/**
|
|
237
|
+
* See event 'cameraScanStarted' in public component.
|
|
238
|
+
*/
|
|
239
|
+
cameraScanStarted: EventEmitter<null>;
|
|
240
|
+
/**
|
|
241
|
+
* See event 'imageScanStarted' in public component.
|
|
242
|
+
*/
|
|
243
|
+
imageScanStarted: EventEmitter<null>;
|
|
244
|
+
/**
|
|
245
|
+
* See event 'scanAborted' in public component.
|
|
246
|
+
*/
|
|
247
|
+
scanAborted: EventEmitter<null>;
|
|
248
|
+
/**
|
|
249
|
+
* Emitted when camera stream becomes active.
|
|
250
|
+
*/
|
|
251
|
+
setIsCameraActive: EventEmitter<boolean>;
|
|
252
|
+
componentDidLoad(): void;
|
|
253
|
+
componentDidUpdate(): void;
|
|
254
|
+
disconnectedCallback(): void;
|
|
255
|
+
handleKeyUp(ev: KeyboardEvent): void;
|
|
256
|
+
private handleSetIsCameraActive;
|
|
257
|
+
/**
|
|
258
|
+
* Starts camera scan using camera overlay with usage instructions.
|
|
259
|
+
*/
|
|
260
|
+
startCameraScan(): Promise<void>;
|
|
261
|
+
/**
|
|
262
|
+
* Starts image scan, emits results from provided file.
|
|
263
|
+
*
|
|
264
|
+
* @param file File to scan
|
|
265
|
+
*/
|
|
266
|
+
startImageScan(file: File): Promise<void>;
|
|
267
|
+
/**
|
|
268
|
+
* Starts multi-side image scan, emits results from provided files.
|
|
269
|
+
*
|
|
270
|
+
* @param firstFile File to scan as first image
|
|
271
|
+
* @param secondFile File to scan as second image
|
|
272
|
+
*/
|
|
273
|
+
startMultiSideImageScan(firstFile: File, secondFile: File): Promise<void>;
|
|
274
|
+
/**
|
|
275
|
+
* Method is exposed outside which allow us to control UI state from parent component.
|
|
276
|
+
*
|
|
277
|
+
* In case of state `ERROR` and if `showModalWindows` is set to `true`, modal window
|
|
278
|
+
* with error message will be displayed.
|
|
279
|
+
*/
|
|
280
|
+
setUiState(state: "ERROR" | "LOADING" | "NONE" | "SUCCESS"): Promise<void>;
|
|
281
|
+
closeApiProcessStatus(restart?: boolean): Promise<void>;
|
|
282
|
+
private init;
|
|
283
|
+
private flipCameraAction;
|
|
284
|
+
private changeCameraDevice;
|
|
285
|
+
private checkInputProperties;
|
|
286
|
+
private startScanFromCamera;
|
|
287
|
+
private startScanFromImage;
|
|
288
|
+
private startScanFromImageMultiSide;
|
|
289
|
+
private handleScanError;
|
|
290
|
+
private showLicenseInfoModal;
|
|
291
|
+
private showScreen;
|
|
292
|
+
private showOverlay;
|
|
293
|
+
private setDragAndDrop;
|
|
294
|
+
private setFatalError;
|
|
295
|
+
private abortScan;
|
|
296
|
+
private stopRecognition;
|
|
297
|
+
private closeGalleryExperienceModal;
|
|
298
|
+
private onFromImageClicked;
|
|
299
|
+
private clearInputImages;
|
|
300
|
+
private openMultiSideGalleryUpload;
|
|
301
|
+
private closeMultiSideGalleryUpload;
|
|
302
|
+
private onMultiSideImageChange;
|
|
303
|
+
private showScanFromImageUi;
|
|
304
|
+
private hideScanFromImageUi;
|
|
305
|
+
private terminateHelpScreens;
|
|
306
|
+
private initializeHelpScreensAndStartOnboarding;
|
|
307
|
+
render(): any;
|
|
308
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FeedbackMessage } from "../../../utils/data-structures";
|
|
2
|
+
export declare class MbFeedback {
|
|
3
|
+
paragraphClassName: string;
|
|
4
|
+
paragraphValue: string;
|
|
5
|
+
/**
|
|
6
|
+
* Set to 'true' if component should be visible.
|
|
7
|
+
*/
|
|
8
|
+
visible: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Call when FeedbackMessage which should be displayed.
|
|
11
|
+
*/
|
|
12
|
+
show(feedback: FeedbackMessage): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Host element as variable for manipulation
|
|
15
|
+
*/
|
|
16
|
+
hostEl: HTMLElement;
|
|
17
|
+
componentDidLoad(): void;
|
|
18
|
+
render(): any;
|
|
19
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { TranslationService } from "../../../utils/translation.service";
|
|
2
|
+
import { MbHelpCallbacks } from "./mb-help.model";
|
|
3
|
+
export declare class MbHelp {
|
|
4
|
+
private readonly ONBOARDING_OPEN_DELAY_MS;
|
|
5
|
+
private texts;
|
|
6
|
+
private onboardingOpenCount;
|
|
7
|
+
private tooltipTimerId;
|
|
8
|
+
private callbacks;
|
|
9
|
+
isInitialized: boolean;
|
|
10
|
+
isTooltipShownHover: boolean;
|
|
11
|
+
isTooltipShownTimer: boolean;
|
|
12
|
+
isModalShown: boolean;
|
|
13
|
+
activeStepIndex: number;
|
|
14
|
+
/**
|
|
15
|
+
* Dictates if usage is allowed (turned on).
|
|
16
|
+
*/
|
|
17
|
+
allow: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Dictates if Floating-Action-Button (Fab) is shown.
|
|
20
|
+
*/
|
|
21
|
+
allowFab: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Dictates if the onboarding is allowed.
|
|
24
|
+
*/
|
|
25
|
+
allowOnboarding: boolean;
|
|
26
|
+
/**
|
|
27
|
+
* Dictates if onboarding is executed all the time, or just once.
|
|
28
|
+
*/
|
|
29
|
+
allowOnboardingPerpetuity: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Dictates Milliseconds after which a "Need Help?" tooltip will be shown.
|
|
32
|
+
*/
|
|
33
|
+
tooltipPauseTimeout: number;
|
|
34
|
+
/**
|
|
35
|
+
* Translation service.
|
|
36
|
+
*/
|
|
37
|
+
translationService: TranslationService;
|
|
38
|
+
/**
|
|
39
|
+
* Initializes - starts tooltip timer, etc.
|
|
40
|
+
*/
|
|
41
|
+
initialize(callbacks: MbHelpCallbacks): Promise<void>;
|
|
42
|
+
/**
|
|
43
|
+
* Opens modal for Onboarding purpose.
|
|
44
|
+
*/
|
|
45
|
+
openOnboarding(): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Opens modal for Help Screens purpose.
|
|
48
|
+
*/
|
|
49
|
+
openHelpScreens(): Promise<void>;
|
|
50
|
+
/**
|
|
51
|
+
* Closes modal.
|
|
52
|
+
*/
|
|
53
|
+
close(): Promise<void>;
|
|
54
|
+
/**
|
|
55
|
+
* Terminates - cancels tooltip timer, closes modal, etc.
|
|
56
|
+
*/
|
|
57
|
+
terminate(): Promise<void>;
|
|
58
|
+
constructor();
|
|
59
|
+
private openInternal;
|
|
60
|
+
private closeInternal;
|
|
61
|
+
private startTooltipTimer;
|
|
62
|
+
private cancelTooltipTimer;
|
|
63
|
+
private amIVisible;
|
|
64
|
+
render(): any;
|
|
65
|
+
private prepareTexts;
|
|
66
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const DEFEAULT_MB_HELP_ALLOW = false;
|
|
2
|
+
export declare const DEFEAULT_MB_HELP_ALLOW_LOBBY = false;
|
|
3
|
+
export declare const DEFEAULT_MB_HELP_ALLOW_ONBOARDING = false;
|
|
4
|
+
export declare const DEFEAULT_MB_HELP_ALLOW_ONBOARDING_PERPETUITY = false;
|
|
5
|
+
export declare const DEFAULT_MB_HELP_TOOLTOP_PAUSE_TIMEOUT_MS = 15000;
|
|
6
|
+
export interface MbHelpCallbacks {
|
|
7
|
+
onOpen: () => void;
|
|
8
|
+
onClose: () => void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
export declare class MbImageBox {
|
|
3
|
+
private scanFromImageInput;
|
|
4
|
+
private ctaLabel;
|
|
5
|
+
private addIcon;
|
|
6
|
+
private removeIcon;
|
|
7
|
+
private hasImage;
|
|
8
|
+
/**
|
|
9
|
+
* Text which represents name of the image.
|
|
10
|
+
*/
|
|
11
|
+
boxTitle: string;
|
|
12
|
+
/**
|
|
13
|
+
* Text which should be displayed inside 'Add image' anchor element when file
|
|
14
|
+
* is not selected.
|
|
15
|
+
*/
|
|
16
|
+
anchorText: string;
|
|
17
|
+
/**
|
|
18
|
+
* Event which is triggered when selected image file is changed.
|
|
19
|
+
*/
|
|
20
|
+
imageChange: EventEmitter<FileList>;
|
|
21
|
+
/**
|
|
22
|
+
* Host element as variable for manipulation
|
|
23
|
+
*/
|
|
24
|
+
hostEl: HTMLElement;
|
|
25
|
+
componentDidLoad(): void;
|
|
26
|
+
componentDidRender(): void;
|
|
27
|
+
/**
|
|
28
|
+
* Clear input image.
|
|
29
|
+
*/
|
|
30
|
+
clear(): Promise<void>;
|
|
31
|
+
private onFromImageClicked;
|
|
32
|
+
private onImageChange;
|
|
33
|
+
private onClearImage;
|
|
34
|
+
render(): any;
|
|
35
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
export declare class MbModal {
|
|
3
|
+
/**
|
|
4
|
+
* Show modal content
|
|
5
|
+
*/
|
|
6
|
+
visible: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Show shadow drop
|
|
9
|
+
*/
|
|
10
|
+
elevated: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Center component
|
|
13
|
+
*/
|
|
14
|
+
centered: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Passed title content from parent component
|
|
17
|
+
*/
|
|
18
|
+
modalTitle: string;
|
|
19
|
+
/**
|
|
20
|
+
* Passed body content from parent component
|
|
21
|
+
*/
|
|
22
|
+
content: string;
|
|
23
|
+
/**
|
|
24
|
+
* Center content inside modal
|
|
25
|
+
*/
|
|
26
|
+
contentCentered: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to show back arrow or not
|
|
29
|
+
*/
|
|
30
|
+
showBackButton: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Whether to hide the footer or not
|
|
33
|
+
*/
|
|
34
|
+
hideFooter: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Whether to hide the close button or not.
|
|
37
|
+
*/
|
|
38
|
+
hideCloseButton: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Emitted when user clicks on 'X' button.
|
|
41
|
+
*/
|
|
42
|
+
close: EventEmitter<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Emitted when user clicks on 'Back Arrow' button.
|
|
45
|
+
*/
|
|
46
|
+
back: EventEmitter<void>;
|
|
47
|
+
/**
|
|
48
|
+
* Host element as variable for manipulation
|
|
49
|
+
*/
|
|
50
|
+
hostEl: HTMLElement;
|
|
51
|
+
componentDidLoad(): void;
|
|
52
|
+
render(): any;
|
|
53
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class MbOverlay {
|
|
2
|
+
/**
|
|
3
|
+
* Set to 'false' if overlay should not cover whole screen.
|
|
4
|
+
*/
|
|
5
|
+
fullscreen: boolean;
|
|
6
|
+
/**
|
|
7
|
+
* Set to 'true' if overlay should be visible.
|
|
8
|
+
*/
|
|
9
|
+
visible: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Host element as variable for manipulation
|
|
12
|
+
*/
|
|
13
|
+
hostEl: HTMLElement;
|
|
14
|
+
componentDidLoad(): void;
|
|
15
|
+
getHostClassNames(): string;
|
|
16
|
+
render(): any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class MbProgressTracker {
|
|
2
|
+
/**
|
|
3
|
+
* Steps count.
|
|
4
|
+
*
|
|
5
|
+
* Default is 3.
|
|
6
|
+
*/
|
|
7
|
+
size: number;
|
|
8
|
+
/**
|
|
9
|
+
* Current step.
|
|
10
|
+
*
|
|
11
|
+
* Steps start from 1 up to the size number.
|
|
12
|
+
*
|
|
13
|
+
* Default is 1.
|
|
14
|
+
*/
|
|
15
|
+
current: number;
|
|
16
|
+
render(): any;
|
|
17
|
+
private getCurrentCorrected;
|
|
18
|
+
private getSteps;
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare class MbSpinner {
|
|
2
|
+
/**
|
|
3
|
+
* Value of `src` attribute for <img> element.
|
|
4
|
+
*/
|
|
5
|
+
icon: string;
|
|
6
|
+
/**
|
|
7
|
+
* Spinner size, can be 'default' or 'large'.
|
|
8
|
+
*/
|
|
9
|
+
size: string;
|
|
10
|
+
/**
|
|
11
|
+
* Host element as variable for manipulation
|
|
12
|
+
*/
|
|
13
|
+
hostEl: HTMLElement;
|
|
14
|
+
componentDidLoad(): void;
|
|
15
|
+
render(): any;
|
|
16
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class MbTooltip {
|
|
2
|
+
show: boolean;
|
|
3
|
+
message: string;
|
|
4
|
+
arrowPosition?: "arrow-left" | "arrow-right" | "arrow-up" | "arrow-down" | "arrow-none";
|
|
5
|
+
showWarningIcon?: boolean;
|
|
6
|
+
showInfoIcon?: boolean;
|
|
7
|
+
textAlign?: "text-center" | "text-left" | "text-right";
|
|
8
|
+
containerWidth?: string;
|
|
9
|
+
render(): any;
|
|
10
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare class MbTooltipAdvanced {
|
|
2
|
+
show: boolean;
|
|
3
|
+
message: string;
|
|
4
|
+
arrowPosition?: "arrow-left" | "arrow-right" | "arrow-up" | "arrow-up-left" | "arrow-up-right" | "arrow-down" | "arrow-down-left" | "arrow-down-right";
|
|
5
|
+
textAlign?: "text-center" | "text-left" | "text-right";
|
|
6
|
+
render(): any;
|
|
7
|
+
}
|