@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,383 @@
|
|
|
1
|
+
import { Host, h, } from "@stencil/core";
|
|
2
|
+
import { SdkService } from "../../utils/sdk.service";
|
|
3
|
+
import { TranslationService } from "../../utils/translation.service";
|
|
4
|
+
import * as GenericHelpers from "../../utils/generic.helpers";
|
|
5
|
+
import { StatusDocumentDetector } from "../../utils/status.document-detector";
|
|
6
|
+
export class DocumentDetector {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.blocked = false;
|
|
9
|
+
this.allowHelloMessage = false;
|
|
10
|
+
this.engineLocation = "https://storage.googleapis.com/jaak-storage/models/web/document-detector/v2.0.0";
|
|
11
|
+
this.workerLocation = "https://storage.googleapis.com/jaak-storage/models/web/document-detector/v2.0.0/BlinkIDWasmSDK.worker.min.js";
|
|
12
|
+
this.wasmType = "ADVANCE";
|
|
13
|
+
this.blinkIdVariant = "lightweight";
|
|
14
|
+
this.recognizers = ['BlinkIdMultiSideRecognizer'];
|
|
15
|
+
this.recognizerOptions = {
|
|
16
|
+
BlinkIdMultiSideRecognizer: {
|
|
17
|
+
returnEncodedFullDocumentImage: true,
|
|
18
|
+
returnEncodedFaceImage: true,
|
|
19
|
+
returnEncodedSignatureImage: true,
|
|
20
|
+
fullDocumentImageExtensionFactors: {
|
|
21
|
+
upFactor: 0.1,
|
|
22
|
+
downFactor: 0.1,
|
|
23
|
+
leftFactor: 0.1,
|
|
24
|
+
rightFactor: 0.1
|
|
25
|
+
},
|
|
26
|
+
fullDocumentImageDpi: 300
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
this.recognitionPauseTimeout = 3800;
|
|
30
|
+
this.cameraExperienceStateDurations = null;
|
|
31
|
+
this.enableDrag = false;
|
|
32
|
+
this.hideFeedback = true;
|
|
33
|
+
this.hideLoadingAndErrorUi = false;
|
|
34
|
+
this.scanFromCamera = true;
|
|
35
|
+
this.scanFromImage = false;
|
|
36
|
+
this.thoroughScanFromImage = false;
|
|
37
|
+
this.galleryOverlayType = "INLINE";
|
|
38
|
+
this.galleryDropType = "INLINE";
|
|
39
|
+
this.showActionLabels = false;
|
|
40
|
+
this.showModalWindows = false;
|
|
41
|
+
this.showCameraFeedbackBarcodeMessage = false;
|
|
42
|
+
this.cameraId = null;
|
|
43
|
+
this.allowHelpScreensFab = false;
|
|
44
|
+
this.allowHelpScreensOnboarding = false;
|
|
45
|
+
this.allowHelpScreensOnboardingPerpetuity = false;
|
|
46
|
+
this.helpScreensTooltipPauseTimeout = 15000;
|
|
47
|
+
this.pingProxyUrl = null;
|
|
48
|
+
this.fatalError = {
|
|
49
|
+
emit: (data) => {
|
|
50
|
+
this.status.emit(StatusDocumentDetector.ERROR);
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
this.ready = {
|
|
55
|
+
emit: (data) => {
|
|
56
|
+
this.status.emit(StatusDocumentDetector.INITIALIZING);
|
|
57
|
+
return undefined;
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
this.scanError = {
|
|
61
|
+
emit: (data) => {
|
|
62
|
+
this.status.emit(StatusDocumentDetector.ERROR);
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
this.scanSuccess = {
|
|
67
|
+
emit: (data) => {
|
|
68
|
+
this.results.emit(data?.data?.data);
|
|
69
|
+
this.status.emit(StatusDocumentDetector.RESULTS_SUCCESS);
|
|
70
|
+
return undefined;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
this.feedback = {
|
|
74
|
+
emit: (data) => {
|
|
75
|
+
console.log(data);
|
|
76
|
+
return undefined;
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
this.cameraScanStarted = {
|
|
80
|
+
emit: () => {
|
|
81
|
+
this.status.emit(StatusDocumentDetector.RECORDING);
|
|
82
|
+
return undefined;
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
this.imageScanStarted = {
|
|
86
|
+
emit: () => {
|
|
87
|
+
this.status.emit(StatusDocumentDetector.RUNNING);
|
|
88
|
+
return undefined;
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
this.scanAborted = {
|
|
92
|
+
emit: () => {
|
|
93
|
+
this.status.emit(StatusDocumentDetector.DETECTION_FAILED);
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
this.licenseKey = undefined;
|
|
98
|
+
this.config = undefined;
|
|
99
|
+
}
|
|
100
|
+
configHandler(newConfig) {
|
|
101
|
+
if (newConfig && newConfig.key) {
|
|
102
|
+
this.licenseKey = newConfig.key;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async setUiState(state) {
|
|
106
|
+
this.mbComponentEl.setUiState(state);
|
|
107
|
+
}
|
|
108
|
+
async startCameraScan() {
|
|
109
|
+
this.mbComponentEl.startCameraScan();
|
|
110
|
+
}
|
|
111
|
+
async startImageScan(file) {
|
|
112
|
+
this.mbComponentEl.startImageScan(file);
|
|
113
|
+
}
|
|
114
|
+
async startMultiSideImageScan(firstFile, secondFile) {
|
|
115
|
+
this.mbComponentEl.startMultiSideImageScan(firstFile, secondFile);
|
|
116
|
+
}
|
|
117
|
+
async setUiMessage(state, message) {
|
|
118
|
+
this.feedbackEl.show({ state, message });
|
|
119
|
+
}
|
|
120
|
+
async getProductIntegrationInfo() {
|
|
121
|
+
return this.sdkService?.getProductIntegrationInfo();
|
|
122
|
+
}
|
|
123
|
+
componentWillLoad() {
|
|
124
|
+
if (this.config && this.config.key) {
|
|
125
|
+
this.licenseKey = this.config.key;
|
|
126
|
+
}
|
|
127
|
+
this.init();
|
|
128
|
+
}
|
|
129
|
+
componentWillUpdate() {
|
|
130
|
+
if (this.blocked) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (this.config && this.config.key) {
|
|
134
|
+
this.licenseKey = this.config.key;
|
|
135
|
+
}
|
|
136
|
+
this.sdkService?.delete();
|
|
137
|
+
this.init();
|
|
138
|
+
}
|
|
139
|
+
disconnectedCallback() {
|
|
140
|
+
this.sdkService?.delete();
|
|
141
|
+
}
|
|
142
|
+
init() {
|
|
143
|
+
const rawRecognizers = GenericHelpers.stringToArray(this.rawRecognizers);
|
|
144
|
+
this.finalRecognizers = this.recognizers
|
|
145
|
+
? this.recognizers
|
|
146
|
+
: rawRecognizers;
|
|
147
|
+
const rawTranslations = GenericHelpers.stringToObject(this.rawTranslations);
|
|
148
|
+
this.finalTranslations = this.translations
|
|
149
|
+
? this.translations
|
|
150
|
+
: rawTranslations;
|
|
151
|
+
this.translationService = new TranslationService(this.finalTranslations || {});
|
|
152
|
+
this.sdkService = new SdkService();
|
|
153
|
+
}
|
|
154
|
+
render() {
|
|
155
|
+
return (h(Host, null, h("mb-container", null, h("mb-component", { dir: this.hostEl.getAttribute("dir"), ref: (el) => (this.mbComponentEl = el), allowHelloMessage: this.allowHelloMessage, recognitionPauseTimeout: this.recognitionPauseTimeout, cameraExperienceStateDurations: this.cameraExperienceStateDurations, engineLocation: this.engineLocation, workerLocation: this.workerLocation, licenseKey: this.licenseKey, wasmType: this.wasmType, blinkIdVariant: this.blinkIdVariant, recognizers: this.finalRecognizers, recognizerOptions: this.recognizerOptions, recognitionTimeout: this.recognitionTimeout, enableDrag: this.enableDrag, hideLoadingAndErrorUi: this.hideLoadingAndErrorUi, scanFromCamera: this.scanFromCamera, scanFromImage: this.scanFromImage, thoroughScanFromImage: this.thoroughScanFromImage, galleryOverlayType: this.galleryOverlayType, galleryDropType: this.galleryDropType, showActionLabels: this.showActionLabels, showModalWindows: this.showModalWindows, showCameraFeedbackBarcodeMessage: this.showCameraFeedbackBarcodeMessage, iconCameraDefault: this.iconCameraDefault, iconCameraActive: this.iconCameraActive, iconGalleryDefault: this.iconGalleryDefault, iconGalleryActive: this.iconGalleryActive, iconInvalidFormat: this.iconInvalidFormat, iconSpinnerScreenLoading: this.iconSpinnerScreenLoading, iconSpinnerFromGalleryExperience: this.iconSpinnerFromGalleryExperience, iconGalleryScanningCompleted: this.iconGalleryScanningCompleted, sdkService: this.sdkService, translationService: this.translationService, cameraId: this.cameraId, allowHelpScreens: false, pingProxyUrl: this.pingProxyUrl, allowHelpScreensFab: this.allowHelpScreensFab, allowHelpScreensOnboarding: this.allowHelpScreensOnboarding, allowHelpScreensOnboardingPerpetuity: this.allowHelpScreensOnboardingPerpetuity, helpScreensTooltipPauseTimeout: this.helpScreensTooltipPauseTimeout, onBlock: (ev) => {
|
|
156
|
+
this.blocked = ev.detail;
|
|
157
|
+
}, onFeedback: (ev) => {
|
|
158
|
+
this.feedbackEl.show(ev.detail);
|
|
159
|
+
this.feedback.emit(ev.detail);
|
|
160
|
+
}, onScanSuccess: (ev) => this.scanSuccess.emit(ev.detail), onReady: (ev) => this.ready.emit(ev.detail), onCameraScanStarted: (ev) => this.cameraScanStarted.emit(ev.detail), onImageScanStarted: (ev) => this.imageScanStarted.emit(ev.detail), onScanError: (ev) => this.scanError.emit(ev.detail), onScanAborted: (ev) => this.scanAborted.emit(ev.detail) }), h("mb-feedback", { dir: this.hostEl.getAttribute("dir"), visible: !this.hideFeedback, ref: (el) => (this.feedbackEl = el) }))));
|
|
161
|
+
}
|
|
162
|
+
static get is() { return "document-detector"; }
|
|
163
|
+
static get encapsulation() { return "shadow"; }
|
|
164
|
+
static get originalStyleUrls() {
|
|
165
|
+
return {
|
|
166
|
+
"$": ["document-detector.scss"]
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
static get styleUrls() {
|
|
170
|
+
return {
|
|
171
|
+
"$": ["document-detector.css"]
|
|
172
|
+
};
|
|
173
|
+
}
|
|
174
|
+
static get properties() {
|
|
175
|
+
return {
|
|
176
|
+
"licenseKey": {
|
|
177
|
+
"type": "string",
|
|
178
|
+
"mutable": true,
|
|
179
|
+
"complexType": {
|
|
180
|
+
"original": "string",
|
|
181
|
+
"resolved": "string",
|
|
182
|
+
"references": {}
|
|
183
|
+
},
|
|
184
|
+
"required": false,
|
|
185
|
+
"optional": false,
|
|
186
|
+
"docs": {
|
|
187
|
+
"tags": [],
|
|
188
|
+
"text": ""
|
|
189
|
+
},
|
|
190
|
+
"attribute": "license-key",
|
|
191
|
+
"reflect": false
|
|
192
|
+
},
|
|
193
|
+
"config": {
|
|
194
|
+
"type": "unknown",
|
|
195
|
+
"mutable": true,
|
|
196
|
+
"complexType": {
|
|
197
|
+
"original": "{\n key: string;\n }",
|
|
198
|
+
"resolved": "{ key: string; }",
|
|
199
|
+
"references": {}
|
|
200
|
+
},
|
|
201
|
+
"required": false,
|
|
202
|
+
"optional": false,
|
|
203
|
+
"docs": {
|
|
204
|
+
"tags": [],
|
|
205
|
+
"text": ""
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
static get events() {
|
|
211
|
+
return [{
|
|
212
|
+
"method": "results",
|
|
213
|
+
"name": "results",
|
|
214
|
+
"bubbles": true,
|
|
215
|
+
"cancelable": true,
|
|
216
|
+
"composed": true,
|
|
217
|
+
"docs": {
|
|
218
|
+
"tags": [],
|
|
219
|
+
"text": ""
|
|
220
|
+
},
|
|
221
|
+
"complexType": {
|
|
222
|
+
"original": "any",
|
|
223
|
+
"resolved": "any",
|
|
224
|
+
"references": {}
|
|
225
|
+
}
|
|
226
|
+
}, {
|
|
227
|
+
"method": "status",
|
|
228
|
+
"name": "status",
|
|
229
|
+
"bubbles": true,
|
|
230
|
+
"cancelable": true,
|
|
231
|
+
"composed": true,
|
|
232
|
+
"docs": {
|
|
233
|
+
"tags": [],
|
|
234
|
+
"text": ""
|
|
235
|
+
},
|
|
236
|
+
"complexType": {
|
|
237
|
+
"original": "StatusDocumentDetector",
|
|
238
|
+
"resolved": "StatusDocumentDetector.BACK_SIDE_DETECTION | StatusDocumentDetector.CHANGE_SIDE | StatusDocumentDetector.DETECTION_FAILED | StatusDocumentDetector.DOCUMENT_DETECTED | StatusDocumentDetector.DOCUMENT_NOT_FOUND | StatusDocumentDetector.ERROR | StatusDocumentDetector.FRONT_SIDE_DETECTION | StatusDocumentDetector.INITIALIZING | StatusDocumentDetector.RECORDING | StatusDocumentDetector.RESULTS_EMPTY | StatusDocumentDetector.RESULTS_SUCCESS | StatusDocumentDetector.RUNNING",
|
|
239
|
+
"references": {
|
|
240
|
+
"StatusDocumentDetector": {
|
|
241
|
+
"location": "import",
|
|
242
|
+
"path": "../../utils/status.document-detector"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}];
|
|
247
|
+
}
|
|
248
|
+
static get methods() {
|
|
249
|
+
return {
|
|
250
|
+
"setUiState": {
|
|
251
|
+
"complexType": {
|
|
252
|
+
"signature": "(state: \"ERROR\" | \"LOADING\" | \"NONE\" | \"SUCCESS\") => Promise<void>",
|
|
253
|
+
"parameters": [{
|
|
254
|
+
"tags": [],
|
|
255
|
+
"text": ""
|
|
256
|
+
}],
|
|
257
|
+
"references": {
|
|
258
|
+
"Promise": {
|
|
259
|
+
"location": "global"
|
|
260
|
+
}
|
|
261
|
+
},
|
|
262
|
+
"return": "Promise<void>"
|
|
263
|
+
},
|
|
264
|
+
"docs": {
|
|
265
|
+
"text": "",
|
|
266
|
+
"tags": []
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"startCameraScan": {
|
|
270
|
+
"complexType": {
|
|
271
|
+
"signature": "() => Promise<void>",
|
|
272
|
+
"parameters": [],
|
|
273
|
+
"references": {
|
|
274
|
+
"Promise": {
|
|
275
|
+
"location": "global"
|
|
276
|
+
}
|
|
277
|
+
},
|
|
278
|
+
"return": "Promise<void>"
|
|
279
|
+
},
|
|
280
|
+
"docs": {
|
|
281
|
+
"text": "",
|
|
282
|
+
"tags": []
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"startImageScan": {
|
|
286
|
+
"complexType": {
|
|
287
|
+
"signature": "(file: File) => Promise<void>",
|
|
288
|
+
"parameters": [{
|
|
289
|
+
"tags": [],
|
|
290
|
+
"text": ""
|
|
291
|
+
}],
|
|
292
|
+
"references": {
|
|
293
|
+
"Promise": {
|
|
294
|
+
"location": "global"
|
|
295
|
+
},
|
|
296
|
+
"File": {
|
|
297
|
+
"location": "global"
|
|
298
|
+
}
|
|
299
|
+
},
|
|
300
|
+
"return": "Promise<void>"
|
|
301
|
+
},
|
|
302
|
+
"docs": {
|
|
303
|
+
"text": "",
|
|
304
|
+
"tags": []
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"startMultiSideImageScan": {
|
|
308
|
+
"complexType": {
|
|
309
|
+
"signature": "(firstFile: File, secondFile: File) => Promise<void>",
|
|
310
|
+
"parameters": [{
|
|
311
|
+
"tags": [],
|
|
312
|
+
"text": ""
|
|
313
|
+
}, {
|
|
314
|
+
"tags": [],
|
|
315
|
+
"text": ""
|
|
316
|
+
}],
|
|
317
|
+
"references": {
|
|
318
|
+
"Promise": {
|
|
319
|
+
"location": "global"
|
|
320
|
+
},
|
|
321
|
+
"File": {
|
|
322
|
+
"location": "global"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
"return": "Promise<void>"
|
|
326
|
+
},
|
|
327
|
+
"docs": {
|
|
328
|
+
"text": "",
|
|
329
|
+
"tags": []
|
|
330
|
+
}
|
|
331
|
+
},
|
|
332
|
+
"setUiMessage": {
|
|
333
|
+
"complexType": {
|
|
334
|
+
"signature": "(state: \"FEEDBACK_ERROR\" | \"FEEDBACK_INFO\" | \"FEEDBACK_OK\", message: string) => Promise<void>",
|
|
335
|
+
"parameters": [{
|
|
336
|
+
"tags": [],
|
|
337
|
+
"text": ""
|
|
338
|
+
}, {
|
|
339
|
+
"tags": [],
|
|
340
|
+
"text": ""
|
|
341
|
+
}],
|
|
342
|
+
"references": {
|
|
343
|
+
"Promise": {
|
|
344
|
+
"location": "global"
|
|
345
|
+
}
|
|
346
|
+
},
|
|
347
|
+
"return": "Promise<void>"
|
|
348
|
+
},
|
|
349
|
+
"docs": {
|
|
350
|
+
"text": "",
|
|
351
|
+
"tags": []
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
"getProductIntegrationInfo": {
|
|
355
|
+
"complexType": {
|
|
356
|
+
"signature": "() => Promise<ProductIntegrationInfo>",
|
|
357
|
+
"parameters": [],
|
|
358
|
+
"references": {
|
|
359
|
+
"Promise": {
|
|
360
|
+
"location": "global"
|
|
361
|
+
},
|
|
362
|
+
"ProductIntegrationInfo": {
|
|
363
|
+
"location": "import",
|
|
364
|
+
"path": "../../utils/data-structures"
|
|
365
|
+
}
|
|
366
|
+
},
|
|
367
|
+
"return": "Promise<ProductIntegrationInfo>"
|
|
368
|
+
},
|
|
369
|
+
"docs": {
|
|
370
|
+
"text": "",
|
|
371
|
+
"tags": []
|
|
372
|
+
}
|
|
373
|
+
}
|
|
374
|
+
};
|
|
375
|
+
}
|
|
376
|
+
static get elementRef() { return "hostEl"; }
|
|
377
|
+
static get watchers() {
|
|
378
|
+
return [{
|
|
379
|
+
"propName": "config",
|
|
380
|
+
"methodName": "configHandler"
|
|
381
|
+
}];
|
|
382
|
+
}
|
|
383
|
+
}
|