@jaak.ai/stamps 1.0.0-beta.1
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 +8540 -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 +416 -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 +8518 -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-66d9fb33.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 +86 -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 +1382 -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,22 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5e4e5e7d.js');
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
9
|
+
*/
|
|
10
|
+
const patchEsm = () => {
|
|
11
|
+
return index.promiseResolve();
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const defineCustomElements = (win, options) => {
|
|
15
|
+
if (typeof window === 'undefined') return Promise.resolve();
|
|
16
|
+
return patchEsm().then(() => {
|
|
17
|
+
return index.bootstrapLazy([["mb-tooltip.cjs",[[1,"mb-tooltip",{"show":[4],"message":[1],"arrowPosition":[1,"arrow-position"],"showWarningIcon":[4,"show-warning-icon"],"showInfoIcon":[4,"show-info-icon"],"textAlign":[1,"text-align"],"containerWidth":[1,"container-width"]}]]],["document-detector_19.cjs",[[1,"document-detector",{"licenseKey":[1025,"license-key"],"config":[1040],"restart":[32],"setUiState":[64],"startCameraScan":[64],"startImageScan":[64],"startMultiSideImageScan":[64],"setUiMessage":[64],"getProductIntegrationInfo":[64],"restartComponent":[64]}],[1,"mb-component",{"allowHelloMessage":[4,"allow-hello-message"],"engineLocation":[1,"engine-location"],"workerLocation":[1,"worker-location"],"licenseKey":[1,"license-key"],"wasmType":[1025,"wasm-type"],"blinkIdVariant":[1,"blink-id-variant"],"recognizers":[1040],"recognizerOptions":[1040],"recognitionTimeout":[2,"recognition-timeout"],"recognitionPauseTimeout":[2,"recognition-pause-timeout"],"cameraExperienceStateDurations":[16],"includeSuccessFrame":[4,"include-success-frame"],"enableDrag":[4,"enable-drag"],"hideLoadingAndErrorUi":[4,"hide-loading-and-error-ui"],"rtl":[4],"scanFromCamera":[4,"scan-from-camera"],"scanFromImage":[4,"scan-from-image"],"thoroughScanFromImage":[4,"thorough-scan-from-image"],"galleryOverlayType":[1,"gallery-overlay-type"],"galleryDropType":[1,"gallery-drop-type"],"showActionLabels":[4,"show-action-labels"],"showModalWindows":[4,"show-modal-windows"],"showCameraFeedbackBarcodeMessage":[4,"show-camera-feedback-barcode-message"],"showScanningLine":[4,"show-scanning-line"],"iconCameraDefault":[1,"icon-camera-default"],"iconCameraActive":[1,"icon-camera-active"],"iconGalleryDefault":[1,"icon-gallery-default"],"iconDragAndDropGalleryDefault":[1,"icon-drag-and-drop-gallery-default"],"iconDragAndDropWarningDefault":[1,"icon-drag-and-drop-warning-default"],"iconGalleryActive":[1,"icon-gallery-active"],"iconInvalidFormat":[1,"icon-invalid-format"],"iconSpinnerScreenLoading":[1,"icon-spinner-screen-loading"],"iconSpinnerFromGalleryExperience":[1,"icon-spinner-from-gallery-experience"],"iconGalleryScanningCompleted":[1,"icon-gallery-scanning-completed"],"sdkService":[16],"translationService":[16],"cameraId":[1,"camera-id"],"allowHelpScreens":[4,"allow-help-screens"],"allowHelpScreensFab":[4,"allow-help-screens-fab"],"allowHelpScreensOnboarding":[4,"allow-help-screens-onboarding"],"allowHelpScreensOnboardingPerpetuity":[4,"allow-help-screens-onboarding-perpetuity"],"helpScreensTooltipPauseTimeout":[2,"help-screens-tooltip-pause-timeout"],"pingProxyUrl":[1,"ping-proxy-url"],"galleryExperienceModalErrorWindowVisible":[32],"clearIsCameraActive":[32],"apiProcessStatusVisible":[32],"apiProcessStatusState":[32],"startCameraScan":[64],"startImageScan":[64],"startMultiSideImageScan":[64],"setUiState":[64]},[[8,"keyup","handleKeyUp"]]],[1,"mb-container"],[1,"mb-feedback",{"visible":[4],"paragraphClassName":[32],"paragraphValue":[32],"show":[64]}],[1,"mb-camera-experience",{"type":[1],"cameraExperienceStateDurations":[16],"showOverlay":[4,"show-overlay"],"translationService":[16],"apiState":[1,"api-state"],"cameraFlipped":[1028,"camera-flipped"],"showScanningLine":[4,"show-scanning-line"],"showCameraFeedbackBarcodeMessage":[4,"show-camera-feedback-barcode-message"],"clearIsCameraActive":[4,"clear-is-camera-active"],"allowHelpScreens":[4,"allow-help-screens"],"allowHelpScreensFab":[4,"allow-help-screens-fab"],"allowHelpScreensOnboarding":[4,"allow-help-screens-onboarding"],"allowHelpScreensOnboardingPerpetuity":[4,"allow-help-screens-onboarding-perpetuity"],"helpScreensTooltipPauseTimeout":[2,"help-screens-tooltip-pause-timeout"],"cameraCursorBarcodeClassName":[32],"cameraCursorIdentityCardClassName":[32],"scanningLineBarcodeClassName":[32],"cameraMessageIdentityCardContent":[32],"cameraMessageIdentityCardClassName":[32],"setActiveCamera":[64],"populateCameraDevices":[64],"setCameraFlipState":[64],"initializeHelpScreens":[64],"openHelpScreensOnboarding":[64],"terminateHelpScreens":[64],"setState":[64],"resetState":[64]}],[1,"mb-api-process-status",{"visible":[4],"state":[1],"translationService":[16]}],[1,"mb-button",{"clickHandler":[16],"disabled":[4],"visible":[4],"selected":[4],"imageSrcDefault":[1,"image-src-default"],"imageSrcActive":[1,"image-src-active"],"imageAlt":[1,"image-alt"],"label":[1],"buttonTitle":[1,"button-title"]}],[1,"mb-completed",{"icon":[1]}],[1,"mb-image-box",{"boxTitle":[1,"box-title"],"anchorText":[1,"anchor-text"],"clear":[64]}],[1,"mb-screen",{"visible":[4]}],[1,"mb-spinner",{"icon":[1],"size":[1]}],[1,"mb-help",{"allow":[4],"allowFab":[4,"allow-fab"],"allowOnboarding":[4,"allow-onboarding"],"allowOnboardingPerpetuity":[4,"allow-onboarding-perpetuity"],"tooltipPauseTimeout":[2,"tooltip-pause-timeout"],"translationService":[16],"isInitialized":[32],"isTooltipShownHover":[32],"isTooltipShownTimer":[32],"isModalShown":[32],"activeStepIndex":[32],"initialize":[64],"openOnboarding":[64],"openHelpScreens":[64],"close":[64],"terminate":[64]}],[1,"mb-camera-toolbar",{"showClose":[4,"show-close"],"clearIsCameraActive":[4,"clear-is-camera-active"],"enableCameraFlip":[4,"enable-camera-flip"],"cameraFlipped":[4,"camera-flipped"],"showCloseButton":[32],"isDesktop":[32],"setActiveCamera":[64],"populateCameraDevices":[64]},[[2,"setIsCameraActive","handleSetIsCameraActive"]]],[1,"mb-button-classic",{"inverted":[4],"quit":[4],"disabled":[4],"preventDefault":[4,"prevent-default"],"clickHandler":[16]}],[1,"mb-camera-selection",{"clearIsCameraActive":[4,"clear-is-camera-active"],"activeCamera":[32],"cameraList":[32],"isListVisible":[32],"setActiveCamera":[64],"populateCameraDevices":[64]}],[1,"mb-overlay",{"fullscreen":[4],"visible":[4]}],[1,"mb-progress-tracker",{"size":[2],"current":[2]}],[1,"mb-tooltip-advanced",{"show":[4],"message":[1],"arrowPosition":[1,"arrow-position"],"textAlign":[1,"text-align"]}],[1,"mb-modal",{"visible":[4],"elevated":[4],"centered":[4],"modalTitle":[1,"modal-title"],"content":[1],"contentCentered":[4,"content-centered"],"showBackButton":[4,"show-back-button"],"hideFooter":[4,"hide-footer"],"hideCloseButton":[4,"hide-close-button"]}]]]], options);
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
exports.setNonce = index.setNonce;
|
|
22
|
+
exports.defineCustomElements = defineCustomElements;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5e4e5e7d.js');
|
|
6
|
+
|
|
7
|
+
const mbTooltipCss = ":host{display:block}.mb-tooltip{display:none;position:absolute;margin:2px 40px 2px 32px;padding:8px;font-size:12px;line-height:16px;color:#374151;background-color:#fff;border:1px solid rgba(120, 120, 128, 0.2);filter:drop-shadow(0px 2px 4px rgba(31, 41, 55, 0.06)) drop-shadow(0px 4px 6px rgba(31, 41, 55, 0.1));border-radius:4px}.mb-tooltip.text-center{text-align:center}.mb-tooltip.text-left{text-align:left}.mb-tooltip.text-right{text-align:right}.mb-tooltip svg{display:block;float:left;margin:6px 14px 6px 6px}.mb-tooltip::after{position:absolute;display:block;content:\" \";background-color:#fff;width:10px;height:10px;transform:rotate(-45deg)}.mb-tooltip.arrow-none::after{display:none}.mb-tooltip.arrow-left::after{left:-3px;top:calc(50% - 5px)}.mb-tooltip.arrow-right::after{right:-3px;top:calc(50% - 5px)}.mb-tooltip.arrow-up::after{top:-3px;left:calc(50% - 5px)}.mb-tooltip.arrow-down::after{bottom:-3px;left:calc(50% - 5px)}.mb-tooltip.visible{display:block}";
|
|
8
|
+
|
|
9
|
+
const MbTooltip = class {
|
|
10
|
+
constructor(hostRef) {
|
|
11
|
+
index.registerInstance(this, hostRef);
|
|
12
|
+
this.show = undefined;
|
|
13
|
+
this.message = undefined;
|
|
14
|
+
this.arrowPosition = undefined;
|
|
15
|
+
this.showWarningIcon = undefined;
|
|
16
|
+
this.showInfoIcon = undefined;
|
|
17
|
+
this.textAlign = undefined;
|
|
18
|
+
this.containerWidth = undefined;
|
|
19
|
+
}
|
|
20
|
+
render() {
|
|
21
|
+
return (index.h(index.Host, null, index.h("p", { part: "tooltip", class: `mb-tooltip ${this.show ? "visible" : ""} ${this.arrowPosition ? this.arrowPosition : "arrow-none"} ${this.textAlign ? this.textAlign : "text-center"} ` }, this.message)));
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
MbTooltip.style = mbTooltipCss;
|
|
25
|
+
|
|
26
|
+
exports.mb_tooltip = MbTooltip;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-5e4e5e7d.js');
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
Stencil Client Patch Browser v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
9
|
+
*/
|
|
10
|
+
const patchBrowser = () => {
|
|
11
|
+
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('stamps.cjs.js', document.baseURI).href));
|
|
12
|
+
const opts = {};
|
|
13
|
+
if (importMeta !== '') {
|
|
14
|
+
opts.resourcesUrl = new URL('.', importMeta).href;
|
|
15
|
+
}
|
|
16
|
+
return index.promiseResolve(opts);
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
patchBrowser().then(options => {
|
|
20
|
+
return index.bootstrapLazy([["mb-tooltip.cjs",[[1,"mb-tooltip",{"show":[4],"message":[1],"arrowPosition":[1,"arrow-position"],"showWarningIcon":[4,"show-warning-icon"],"showInfoIcon":[4,"show-info-icon"],"textAlign":[1,"text-align"],"containerWidth":[1,"container-width"]}]]],["document-detector_19.cjs",[[1,"document-detector",{"licenseKey":[1025,"license-key"],"config":[1040],"restart":[32],"setUiState":[64],"startCameraScan":[64],"startImageScan":[64],"startMultiSideImageScan":[64],"setUiMessage":[64],"getProductIntegrationInfo":[64],"restartComponent":[64]}],[1,"mb-component",{"allowHelloMessage":[4,"allow-hello-message"],"engineLocation":[1,"engine-location"],"workerLocation":[1,"worker-location"],"licenseKey":[1,"license-key"],"wasmType":[1025,"wasm-type"],"blinkIdVariant":[1,"blink-id-variant"],"recognizers":[1040],"recognizerOptions":[1040],"recognitionTimeout":[2,"recognition-timeout"],"recognitionPauseTimeout":[2,"recognition-pause-timeout"],"cameraExperienceStateDurations":[16],"includeSuccessFrame":[4,"include-success-frame"],"enableDrag":[4,"enable-drag"],"hideLoadingAndErrorUi":[4,"hide-loading-and-error-ui"],"rtl":[4],"scanFromCamera":[4,"scan-from-camera"],"scanFromImage":[4,"scan-from-image"],"thoroughScanFromImage":[4,"thorough-scan-from-image"],"galleryOverlayType":[1,"gallery-overlay-type"],"galleryDropType":[1,"gallery-drop-type"],"showActionLabels":[4,"show-action-labels"],"showModalWindows":[4,"show-modal-windows"],"showCameraFeedbackBarcodeMessage":[4,"show-camera-feedback-barcode-message"],"showScanningLine":[4,"show-scanning-line"],"iconCameraDefault":[1,"icon-camera-default"],"iconCameraActive":[1,"icon-camera-active"],"iconGalleryDefault":[1,"icon-gallery-default"],"iconDragAndDropGalleryDefault":[1,"icon-drag-and-drop-gallery-default"],"iconDragAndDropWarningDefault":[1,"icon-drag-and-drop-warning-default"],"iconGalleryActive":[1,"icon-gallery-active"],"iconInvalidFormat":[1,"icon-invalid-format"],"iconSpinnerScreenLoading":[1,"icon-spinner-screen-loading"],"iconSpinnerFromGalleryExperience":[1,"icon-spinner-from-gallery-experience"],"iconGalleryScanningCompleted":[1,"icon-gallery-scanning-completed"],"sdkService":[16],"translationService":[16],"cameraId":[1,"camera-id"],"allowHelpScreens":[4,"allow-help-screens"],"allowHelpScreensFab":[4,"allow-help-screens-fab"],"allowHelpScreensOnboarding":[4,"allow-help-screens-onboarding"],"allowHelpScreensOnboardingPerpetuity":[4,"allow-help-screens-onboarding-perpetuity"],"helpScreensTooltipPauseTimeout":[2,"help-screens-tooltip-pause-timeout"],"pingProxyUrl":[1,"ping-proxy-url"],"galleryExperienceModalErrorWindowVisible":[32],"clearIsCameraActive":[32],"apiProcessStatusVisible":[32],"apiProcessStatusState":[32],"startCameraScan":[64],"startImageScan":[64],"startMultiSideImageScan":[64],"setUiState":[64]},[[8,"keyup","handleKeyUp"]]],[1,"mb-container"],[1,"mb-feedback",{"visible":[4],"paragraphClassName":[32],"paragraphValue":[32],"show":[64]}],[1,"mb-camera-experience",{"type":[1],"cameraExperienceStateDurations":[16],"showOverlay":[4,"show-overlay"],"translationService":[16],"apiState":[1,"api-state"],"cameraFlipped":[1028,"camera-flipped"],"showScanningLine":[4,"show-scanning-line"],"showCameraFeedbackBarcodeMessage":[4,"show-camera-feedback-barcode-message"],"clearIsCameraActive":[4,"clear-is-camera-active"],"allowHelpScreens":[4,"allow-help-screens"],"allowHelpScreensFab":[4,"allow-help-screens-fab"],"allowHelpScreensOnboarding":[4,"allow-help-screens-onboarding"],"allowHelpScreensOnboardingPerpetuity":[4,"allow-help-screens-onboarding-perpetuity"],"helpScreensTooltipPauseTimeout":[2,"help-screens-tooltip-pause-timeout"],"cameraCursorBarcodeClassName":[32],"cameraCursorIdentityCardClassName":[32],"scanningLineBarcodeClassName":[32],"cameraMessageIdentityCardContent":[32],"cameraMessageIdentityCardClassName":[32],"setActiveCamera":[64],"populateCameraDevices":[64],"setCameraFlipState":[64],"initializeHelpScreens":[64],"openHelpScreensOnboarding":[64],"terminateHelpScreens":[64],"setState":[64],"resetState":[64]}],[1,"mb-api-process-status",{"visible":[4],"state":[1],"translationService":[16]}],[1,"mb-button",{"clickHandler":[16],"disabled":[4],"visible":[4],"selected":[4],"imageSrcDefault":[1,"image-src-default"],"imageSrcActive":[1,"image-src-active"],"imageAlt":[1,"image-alt"],"label":[1],"buttonTitle":[1,"button-title"]}],[1,"mb-completed",{"icon":[1]}],[1,"mb-image-box",{"boxTitle":[1,"box-title"],"anchorText":[1,"anchor-text"],"clear":[64]}],[1,"mb-screen",{"visible":[4]}],[1,"mb-spinner",{"icon":[1],"size":[1]}],[1,"mb-help",{"allow":[4],"allowFab":[4,"allow-fab"],"allowOnboarding":[4,"allow-onboarding"],"allowOnboardingPerpetuity":[4,"allow-onboarding-perpetuity"],"tooltipPauseTimeout":[2,"tooltip-pause-timeout"],"translationService":[16],"isInitialized":[32],"isTooltipShownHover":[32],"isTooltipShownTimer":[32],"isModalShown":[32],"activeStepIndex":[32],"initialize":[64],"openOnboarding":[64],"openHelpScreens":[64],"close":[64],"terminate":[64]}],[1,"mb-camera-toolbar",{"showClose":[4,"show-close"],"clearIsCameraActive":[4,"clear-is-camera-active"],"enableCameraFlip":[4,"enable-camera-flip"],"cameraFlipped":[4,"camera-flipped"],"showCloseButton":[32],"isDesktop":[32],"setActiveCamera":[64],"populateCameraDevices":[64]},[[2,"setIsCameraActive","handleSetIsCameraActive"]]],[1,"mb-button-classic",{"inverted":[4],"quit":[4],"disabled":[4],"preventDefault":[4,"prevent-default"],"clickHandler":[16]}],[1,"mb-camera-selection",{"clearIsCameraActive":[4,"clear-is-camera-active"],"activeCamera":[32],"cameraList":[32],"isListVisible":[32],"setActiveCamera":[64],"populateCameraDevices":[64]}],[1,"mb-overlay",{"fullscreen":[4],"visible":[4]}],[1,"mb-progress-tracker",{"size":[2],"current":[2]}],[1,"mb-tooltip-advanced",{"show":[4],"message":[1],"arrowPosition":[1,"arrow-position"],"textAlign":[1,"text-align"]}],[1,"mb-modal",{"visible":[4],"elevated":[4],"centered":[4],"modalTitle":[1,"modal-title"],"content":[1],"contentCentered":[4,"content-centered"],"showBackButton":[4,"show-back-button"],"hideFooter":[4,"hide-footer"],"hideCloseButton":[4,"hide-close-button"]}]]]], options);
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
exports.setNonce = index.setNonce;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"entries": [
|
|
3
|
+
"./components/document-detector/document-detector.js",
|
|
4
|
+
"./components/shared/mb-api-process-status/mb-api-process-status.js",
|
|
5
|
+
"./components/shared/mb-button/mb-button.js",
|
|
6
|
+
"./components/shared/mb-button-classic/mb-button-classic.js",
|
|
7
|
+
"./components/shared/mb-camera-experience/mb-camera-experience.js",
|
|
8
|
+
"./components/shared/mb-camera-selection/mb-camera-selection.js",
|
|
9
|
+
"./components/shared/mb-camera-toolbar/mb-camera-toolbar.js",
|
|
10
|
+
"./components/shared/mb-completed/mb-completed.js",
|
|
11
|
+
"./components/shared/mb-component/mb-component.js",
|
|
12
|
+
"./components/shared/mb-container/mb-container.js",
|
|
13
|
+
"./components/shared/mb-feedback/mb-feedback.js",
|
|
14
|
+
"./components/shared/mb-help/mb-help.js",
|
|
15
|
+
"./components/shared/mb-image-box/mb-image-box.js",
|
|
16
|
+
"./components/shared/mb-modal/mb-modal.js",
|
|
17
|
+
"./components/shared/mb-overlay/mb-overlay.js",
|
|
18
|
+
"./components/shared/mb-progress-tracker/mb-progress-tracker.js",
|
|
19
|
+
"./components/shared/mb-screen/mb-screen.js",
|
|
20
|
+
"./components/shared/mb-spinner/mb-spinner.js",
|
|
21
|
+
"./components/shared/mb-tooltip/mb-tooltip.js",
|
|
22
|
+
"./components/shared/mb-tooltip-advanced/mb-tooltip-advanced.js"
|
|
23
|
+
],
|
|
24
|
+
"compiler": {
|
|
25
|
+
"name": "@stencil/core",
|
|
26
|
+
"version": "2.22.3",
|
|
27
|
+
"typescriptVersion": "4.9.4"
|
|
28
|
+
},
|
|
29
|
+
"collections": [],
|
|
30
|
+
"bundles": []
|
|
31
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Microblink Ltd. All rights reserved.
|
|
3
|
+
*
|
|
4
|
+
* SASS variables, not customizable via CSS variables
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Camera experiences
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* CSS variables
|
|
11
|
+
*
|
|
12
|
+
* Note: when adding or modifying these values during development, Stencil must
|
|
13
|
+
* be reloaded for the changes to take effect.
|
|
14
|
+
*/
|
|
15
|
+
:host {
|
|
16
|
+
/* General properties */
|
|
17
|
+
--mb-font-family: inherit;
|
|
18
|
+
--mb-font-size: max(16px, 1rem);
|
|
19
|
+
--mb-font-size-desktop: max(20px, 1rem);
|
|
20
|
+
--mb-font-style: normal;
|
|
21
|
+
--mb-font-weight: 400;
|
|
22
|
+
--mb-letter-spacing: normal;
|
|
23
|
+
--mb-line-height: 1.5em;
|
|
24
|
+
/* Component (UI with buttons) */
|
|
25
|
+
--mb-component-background: #f9fafb;
|
|
26
|
+
--mb-component-width: 100%;
|
|
27
|
+
--mb-component-font-color: #000;
|
|
28
|
+
--mb-component-font-color-secondary: #3c3c43b2;
|
|
29
|
+
--mb-component-font-size: 14px;
|
|
30
|
+
--mb-component-text-transform: none;
|
|
31
|
+
--mb-component-border-color: rgba(120, 120, 128, 0.2);
|
|
32
|
+
--mb-component-border-radius: 5px;
|
|
33
|
+
--mb-component-border-style: solid;
|
|
34
|
+
--mb-component-border-width: 1px;
|
|
35
|
+
--mb-component-box-shadow: none;
|
|
36
|
+
--mb-component-button-size: 36px;
|
|
37
|
+
--mb-component-button-icon-size: 20px;
|
|
38
|
+
--mb-component-button-background: #fff;
|
|
39
|
+
--mb-component-button-hover-background: #f9fafb;
|
|
40
|
+
--mb-component-button-background-selected: rgba(72, 178, 232, 0.1);
|
|
41
|
+
--mb-component-button-border-color: #d1d5db;
|
|
42
|
+
--mb-component-button-border-color-selected: rgba(120, 120, 128, 0.2);
|
|
43
|
+
--mb-component-button-border-color-focus: #9ca3af;
|
|
44
|
+
--mb-component-button-border-color-hover: rgba(60, 60, 67, 0.29);
|
|
45
|
+
--mb-component-button-border-color-disabled: rgba(116, 116, 128, 0.08);
|
|
46
|
+
--mb-component-button-border-radius: 50%;
|
|
47
|
+
--mb-component-button-border-style: solid;
|
|
48
|
+
--mb-component-button-border-width: 1px;
|
|
49
|
+
--mb-component-button-box-shadow: 0px 1px 4px rgba(0, 0, 0, 0.1);
|
|
50
|
+
--mb-component-button-box-shadow-disabled: none;
|
|
51
|
+
--mb-component-button-classic-background: #0062f2;
|
|
52
|
+
--mb-component-button-classic-hover-background: #3a89fd;
|
|
53
|
+
--mb-component-button-classic-inverted-hover-background: #f9fafb;
|
|
54
|
+
--mb-component-button-classic-focused-border-color: #142641;
|
|
55
|
+
--mb-component-button-classic-inverted-text-color: #374151;
|
|
56
|
+
--mb-component-button-classic-inverted-border-color: #9ca3af;
|
|
57
|
+
--mb-component-button-classic-font-size: 14px;
|
|
58
|
+
--mb-component-button-classic-font-weight: 700;
|
|
59
|
+
--mb-component-button-classic-text-color: #fff;
|
|
60
|
+
--mb-component-button-classic-line-height: 20px;
|
|
61
|
+
--mb-component-button-classic-border-radius: 100px;
|
|
62
|
+
--mb-component-image-box-border-color: rgba(120, 120, 128, 0.2);
|
|
63
|
+
--mb-component-image-box-border-radius: 2px;
|
|
64
|
+
--mb-component-image-box-border-width: 1px;
|
|
65
|
+
--mb-component-image-box-label-height: 16px;
|
|
66
|
+
--mb-component-image-box-label-color: rgba(60, 60, 67, 0.5);
|
|
67
|
+
--mb-component-image-box-label-font-size: 14px;
|
|
68
|
+
--mb-component-image-box-label-font-weight: 400;
|
|
69
|
+
--mb-component-image-box-cta-height: 20px;
|
|
70
|
+
--mb-component-image-box-cta-label-height: 20px;
|
|
71
|
+
--mb-component-image-box-cta-color: var(
|
|
72
|
+
--mb-component-button-classic-background
|
|
73
|
+
);
|
|
74
|
+
--mb-component-image-box-cta-color-hover: var(
|
|
75
|
+
--mb-component-button-classic-hover-background
|
|
76
|
+
);
|
|
77
|
+
--mb-component-image-box-cta-font-size: 14px;
|
|
78
|
+
--mb-component-image-box-cta-font-weight: 500;
|
|
79
|
+
--mb-component-image-box-file-color: #000;
|
|
80
|
+
--mb-component-image-box-file-font-weight: 400;
|
|
81
|
+
--mb-component-action-buttons-justify-content: flex-end;
|
|
82
|
+
--mb-component-action-buttons-gap: 8px;
|
|
83
|
+
--mb-component-action-label: block;
|
|
84
|
+
--mb-component-action-label-font-size: 14px;
|
|
85
|
+
/* Camera scanning UI */
|
|
86
|
+
--mb-blur-filter: 27px;
|
|
87
|
+
--mb-blur-scanning-line: 4px;
|
|
88
|
+
--mb-toolbar-color: #fff;
|
|
89
|
+
--mb-toolbar-border-color: #fff;
|
|
90
|
+
--mb-toolbar-border-radius: 4px;
|
|
91
|
+
--mb-toolbar-list-border-radius: 4px;
|
|
92
|
+
--mb-toolbar-list-item-border-radius: 2px;
|
|
93
|
+
--mb-toolbar-list-item-active-text-color: #0062f2;
|
|
94
|
+
--mb-toolbar-list-item-active-background-color: #e7f0ff;
|
|
95
|
+
--mb-toolbar-selection-width: 298px;
|
|
96
|
+
--mb-toolbar-list-background: #fff;
|
|
97
|
+
--mb-toolbar-list-shadow: 0px 2px 8px rgba(0, 0, 0, 0.05),
|
|
98
|
+
0px 2px 24px rgba(0, 0, 0, 0.1);
|
|
99
|
+
--mb-toolbar-camera-name-font-weight: 500;
|
|
100
|
+
--mb-reticle-size: 6em;
|
|
101
|
+
/* User feedback (messages below buttons) */
|
|
102
|
+
--mb-feedback-font-color-error: #f43f5e;
|
|
103
|
+
--mb-feedback-font-color-info: #6b7280;
|
|
104
|
+
--mb-feedback-font-size: 12px;
|
|
105
|
+
--mb-feedback-font-style: normal;
|
|
106
|
+
--mb-feedback-font-weight: 400;
|
|
107
|
+
--mb-feedback-letter-spacing: normal;
|
|
108
|
+
--mb-feedback-line-height: 16px;
|
|
109
|
+
--mb-feedback-text-transform: none;
|
|
110
|
+
/* Overlays */
|
|
111
|
+
--mb-overlay-draganddrop-background: #dceaff;
|
|
112
|
+
--mb-overlay-draganddrop-background-error: #ffeaee;
|
|
113
|
+
--mb-overlay-draganddrop-border-color: #3a89fd;
|
|
114
|
+
--mb-overlay-draganddrop-text-color: #0062f2;
|
|
115
|
+
--mb-overlay-draganddrop-text-error-color: #e11d48;
|
|
116
|
+
--mb-overlay-draganddrop-border-color-error: #ff2d55;
|
|
117
|
+
--mb-overlay-draganddrop-border-style: dashed;
|
|
118
|
+
--mb-overlay-gallery-experience-background: rgba(0, 0, 0, 0.6);
|
|
119
|
+
--mb-overlay-gallery-experience-font-color: #fff;
|
|
120
|
+
--mb-overlay-gallery-experience-font-size: 1em;
|
|
121
|
+
--mb-overlay-gallery-experience-font-weight: 500;
|
|
122
|
+
--mb-overlay-gallery-experience-line-height: 1.5em;
|
|
123
|
+
--mb-overlay-deviceselection-background: rgba(17, 24, 39, 0.15);
|
|
124
|
+
/* Modals */
|
|
125
|
+
--mb-modal-title-font-size: 1em;
|
|
126
|
+
--mb-modal-title-line-height: 32px;
|
|
127
|
+
--mb-modal-content-font-size: 0.875em;
|
|
128
|
+
--mb-modal-content-line-height: 1.4em;
|
|
129
|
+
--mb-modal-border-radius: 8px;
|
|
130
|
+
--mb-modal-background: #ffffff;
|
|
131
|
+
/* Help Screens */
|
|
132
|
+
--mb-help-color-success: #10b981;
|
|
133
|
+
--mb-help-color-danger: #f43f5e;
|
|
134
|
+
--mb-help-font-color-primary: #142641;
|
|
135
|
+
--mb-help-font-color-secondary: #4b5563;
|
|
136
|
+
--mb-help-modal-background-color: var(--mb-modal-background);
|
|
137
|
+
--mb-help-modal-backdrop-color: rgba(17, 23, 39, 0.5);
|
|
138
|
+
--mb-help-lobby-button-background-color: white;
|
|
139
|
+
--mb-help-lobby-button-border-color: white;
|
|
140
|
+
--mb-help-lobby-button-hovered-background-color: #f3f4f6;
|
|
141
|
+
--mb-help-lobby-button-hovered-border-color: #e7f0ff;
|
|
142
|
+
--mb-help-lobby-button-focused-background-color: #f3f4f6;
|
|
143
|
+
--mb-help-lobby-button-focused-border-color: #e7f0ff;
|
|
144
|
+
--mb-help-lobby-button-icon-color: #0062f2;
|
|
145
|
+
--mb-help-progress-tracker-dot-active-color: #0062f2;
|
|
146
|
+
--mb-help-progress-tracker-dot-inactive-color: #c6c6c8;
|
|
147
|
+
--mb-help-lobby-button-tooltip-background-color: #0062f2;
|
|
148
|
+
--mb-help-lobby-button-tooltip-font-color: white;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
:host {
|
|
152
|
+
display: block;
|
|
153
|
+
width: 100%;
|
|
154
|
+
}
|