@scandit/web-datacapture-core 7.5.0 → 7.5.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/build/electron/main.cjs +1 -1
- package/build/electron/main.js +1 -1
- package/build/js/{Camera-BoUtNCzS.d.ts → Camera-bxDEtlUu.d.ts} +1 -1
- package/build/js/Camera.d.ts +1 -1
- package/build/js/Camera.js +1 -1
- package/build/js/CameraAccess.d.ts +1 -1
- package/build/js/CameraAccess.js +1 -1
- package/build/js/CameraRelated.d.ts +1 -1
- package/build/js/DataCaptureContext.d.ts +1 -1
- package/build/js/DataCaptureContext.js +1 -1
- package/build/js/DataCaptureContextRelated.d.ts +1 -1
- package/build/js/DataCaptureVersion.js +1 -1
- package/build/js/DataCaptureView.d.ts +1 -1
- package/build/js/DataCaptureView.js +1 -1
- package/build/js/Defaults.d.ts +1 -1
- package/build/js/Feedback.js +1 -1
- package/build/js/FrameData.d.ts +1 -1
- package/build/js/ImageFrameSource.d.ts +1 -1
- package/build/js/Localization.js +1 -1
- package/build/js/NotificationPresenter/index.d.ts +1 -1
- package/build/js/NotificationPresenter/private/ConcreteNotificationPresenter.d.ts +1 -1
- package/build/js/NotificationPresenter/private/presets.d.ts +1 -1
- package/build/js/ScanditIcon.js +1 -1
- package/build/js/ScanditIconBuilder.js +1 -1
- package/build/js/SingleImageUploader.d.ts +1 -1
- package/build/js/Sound.js +1 -1
- package/build/js/Vibration.js +1 -1
- package/build/js/browserCompatibility.d.ts +6 -1
- package/build/js/browserCompatibility.js +1 -1
- package/build/js/browserHelper.d.ts +6 -0
- package/build/js/browserHelper.js +1 -1
- package/build/js/chunks/{chunk-6X73W3EO.js → chunk-2AJGK77F.js} +1 -1
- package/build/js/chunks/{chunk-FPCLZS52.js → chunk-2QT7PJFA.js} +1 -1
- package/build/js/chunks/{chunk-R6YWFAMT.js → chunk-4W2T3TLN.js} +1 -1
- package/build/js/chunks/chunk-55IMEHJS.js +1 -0
- package/build/js/chunks/chunk-6VWIJ62O.js +2 -0
- package/build/js/chunks/chunk-7452WLDM.js +1 -0
- package/build/js/chunks/{chunk-TCJPGGHY.js → chunk-7B2VPGLP.js} +1 -1
- package/build/js/chunks/chunk-ACFJP5SR.js +1 -0
- package/build/js/chunks/chunk-BHIFOHFI.js +1 -0
- package/build/js/chunks/{chunk-UGUDXT2N.js → chunk-CXX2ZE7M.js} +1 -1
- package/build/js/chunks/{chunk-2XJKSSK4.js → chunk-DDYEOOSY.js} +1 -1
- package/build/js/chunks/{chunk-46WJFV3I.js → chunk-DUPLHZRJ.js} +1 -1
- package/build/js/chunks/{chunk-PFC2HW6V.js → chunk-F2YB7OLE.js} +2 -2
- package/build/js/chunks/{chunk-FRG4HXJT.js → chunk-G2BRTVN7.js} +1 -1
- package/build/js/chunks/chunk-GHTCNOQN.js +1 -0
- package/build/js/chunks/{chunk-BH742UD7.js → chunk-GPKU5XMS.js} +1 -1
- package/build/js/chunks/chunk-GSFBVAUZ.js +1 -0
- package/build/js/chunks/{chunk-RMKJUHZW.js → chunk-HHMOVH27.js} +1 -1
- package/build/js/chunks/{chunk-OFNRGDFQ.js → chunk-KC74WR2Q.js} +1 -1
- package/build/js/chunks/{chunk-L3SHJKNC.js → chunk-MDC2G4SQ.js} +1 -1
- package/build/js/chunks/chunk-MUJ7NKAY.js +1 -0
- package/build/js/chunks/{chunk-YZPUMXQ2.js → chunk-NFB6DO6C.js} +1 -1
- package/build/js/chunks/chunk-NVK73TNL.js +1 -0
- package/build/js/chunks/chunk-QEWYPYNF.js +1 -0
- package/build/js/chunks/{chunk-J3PS3NRY.js → chunk-QMWVSPM5.js} +1 -1
- package/build/js/chunks/{chunk-UUGROS73.js → chunk-QUHRBS4G.js} +1 -1
- package/build/js/chunks/chunk-RG272MAJ.js +1 -0
- package/build/js/chunks/{chunk-CMG3PSOW.js → chunk-RX2673AX.js} +1 -1
- package/build/js/chunks/{chunk-72A5262S.js → chunk-S24T6WS2.js} +1 -1
- package/build/js/chunks/chunk-SEAVQZN6.js +1 -0
- package/build/js/chunks/chunk-SM5S3DDC.js +1 -0
- package/build/js/chunks/{chunk-HNUWDILZ.js → chunk-SP777KFV.js} +1 -1
- package/build/js/chunks/{chunk-NPIPIS7X.js → chunk-TTGWNLNK.js} +1 -1
- package/build/js/chunks/chunk-TVQ54DA3.js +11 -0
- package/build/js/chunks/{chunk-4D2BPF6X.js → chunk-UOEN3RFJ.js} +1 -1
- package/build/js/chunks/chunk-UWLAKRB2.js +2 -0
- package/build/js/chunks/{chunk-FFTRSHP6.js → chunk-VT73QNQB.js} +1 -1
- package/build/js/chunks/{chunk-EKY4M37S.js → chunk-WKTLU3L4.js} +1 -1
- package/build/js/chunks/chunk-Y6SLVHK3.js +1 -0
- package/build/js/chunks/{chunk-DFRROFGN.js → chunk-ZXA6VEK2.js} +1 -1
- package/build/js/global.d.d.ts +5 -2
- package/build/js/index.d.ts +2 -2
- package/build/js/index.js +3 -3
- package/build/js/private/CameraAccess.d.ts +1 -1
- package/build/js/private/CameraAccess.js +1 -1
- package/build/js/private/CameraManager.d.ts +1 -1
- package/build/js/private/CameraManager.js +1 -1
- package/build/js/private/CanvasDrawerWithMetrics.d.ts +1 -1
- package/build/js/private/CoreModuleLicenseTextProvider.d.ts +1 -1
- package/build/js/private/DataCaptureContextRelated.d.ts +1 -1
- package/build/js/private/FrameReaders/FrameReader.d.ts +1 -1
- package/build/js/private/FrameReaders/FrameReaderAbstract.d.ts +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.d.ts +1 -1
- package/build/js/private/FrameReaders/GrayScaleFrameReader.js +1 -1
- package/build/js/private/FrameReaders/index.d.ts +1 -1
- package/build/js/private/FrameReaders/index.js +1 -1
- package/build/js/private/NormalizedConfigureOptions.d.ts +1 -1
- package/build/js/private/SingleImageUploaderView.js +1 -1
- package/build/js/private/ViewControls+related.js +1 -1
- package/build/js/private/ViewControls_related.d.ts +1 -1
- package/build/js/private/ViewStyles.js +1 -1
- package/build/js/private/ViewsRegistry.d.ts +1 -1
- package/build/js/private/hybridDesktopPlatformHelpers.js +1 -1
- package/build/js/private/ui/atoms/AimerSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ArrowsUp.js +1 -1
- package/build/js/private/ui/atoms/Backdrop.js +1 -1
- package/build/js/private/ui/atoms/CalendarExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchReverseSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CameraSwitchSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Card.js +1 -1
- package/build/js/private/ui/atoms/CardList.js +1 -1
- package/build/js/private/ui/atoms/CheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronDownSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronLeftSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronRightSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ChevronUpSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/CrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Dot5xSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/GlassSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/HandLensCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/KeyboardSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/LowStockSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/OnexSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/PrinterSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ProgressBar.js +1 -1
- package/build/js/private/ui/atoms/QuestionMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RestartSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCheckSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedCrossSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/RoundedExclamationMarkSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ShutterButton.js +2 -2
- package/build/js/private/ui/atoms/StarFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarHalfFilledSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/StarOutlinedSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/SvgIcon.js +1 -1
- package/build/js/private/ui/atoms/ToPickSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/Toast.d.ts +1 -1
- package/build/js/private/ui/atoms/Toast.js +1 -1
- package/build/js/private/ui/atoms/TwoxSvgIcon.js +1 -1
- package/build/js/private/ui/atoms/WrongItemSvgIcon.js +1 -1
- package/build/js/private/ui/molecules/HintPresenter.d.ts +1 -1
- package/build/js/private/ui/molecules/HintPresenter.js +1 -1
- package/build/js/private/ui/molecules/LoadingOverlay.js +1 -1
- package/build/js/private/utils/AnimationSimplePolyfill.d.ts +59 -0
- package/build/js/private/utils/AnimationSimplePolyfill.js +1 -0
- package/build/js/private/utils/finalizationRegistryPolyfill.d.ts +13 -0
- package/build/js/private/utils/finalizationRegistryPolyfill.js +1 -0
- package/build/js/private/utils/fromEntries.d.ts +14 -0
- package/build/js/private/utils/fromEntries.js +1 -0
- package/build/js/private/utils/globalThisPolyfill.d.ts +15 -0
- package/build/js/private/utils/globalThisPolyfill.js +1 -0
- package/build/js/private/utils/index.d.ts +2 -0
- package/build/js/private/utils/index.js +1 -1
- package/build/js/private/utils/replaceImagesInViewUtils.d.ts +1 -1
- package/build/js/private/utils/safeCancelAnimation.d.ts +53 -0
- package/build/js/private/utils/safeCancelAnimation.js +1 -0
- package/build/js/private/utils/warnMultithreadingUnavailable.js +1 -1
- package/build/js/sdk.d.ts +1 -1
- package/build/js/worker/WorkerMain.d.ts +1 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/coreCapture.inlineWorker.d.ts +1 -1
- package/build/js/worker/coreCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +1 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureLoader.d.ts +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +1 -1
- package/build/js/worker/finalizationRegistryPolyfill.test.d.ts +1 -0
- package/build/js/worker/finalizationRegistryPolyfill.test.js +1 -0
- package/build/js/worker/helper.js +1 -1
- package/build/js/worker/helperFetch.js +1 -1
- package/build/js/worker/importWasmScript.js +1 -1
- package/build/js/worker/index.d.ts +1 -1
- package/build/js/worker/index.js +1 -1
- package/package.json +1 -1
- package/build/js/chunks/chunk-2Q5FZVGV.js +0 -1
- package/build/js/chunks/chunk-3RIR7ALE.js +0 -1
- package/build/js/chunks/chunk-43NA46NY.js +0 -11
- package/build/js/chunks/chunk-5LIWL2C4.js +0 -1
- package/build/js/chunks/chunk-7CQVGY6N.js +0 -1
- package/build/js/chunks/chunk-7XQ3GHYH.js +0 -1
- package/build/js/chunks/chunk-B5JOQVFY.js +0 -2
- package/build/js/chunks/chunk-IDPD4BN6.js +0 -1
- package/build/js/chunks/chunk-IYYM2J7I.js +0 -2
- package/build/js/chunks/chunk-MFAA3FMX.js +0 -1
- package/build/js/chunks/chunk-TPU3JUZL.js +0 -1
- package/build/js/chunks/chunk-TTB5EF75.js +0 -1
- /package/build/js/chunks/{chunk-ZQFWULUQ.js → chunk-4OWLOWVE.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'../../../chunks/chunk-
|
|
1
|
+
import {a as a$2}from'../../../chunks/chunk-F2YB7OLE.js';import {a as a$5}from'../../../chunks/chunk-2HTI5D6Y.js';import {b}from'../../../chunks/chunk-SM5S3DDC.js';import {a as a$3}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$1}from'../../../chunks/chunk-MU6SADSF.js';import {a}from'../../../chunks/chunk-EV4OEANA.js';import {a as a$4}from'../../../chunks/chunk-LSZZVJ6B.js';var l="--position",x=(o=>(o.Collapsed="collapsed",o.WillCollapse="willcollapse",o.Expanded="expanded",o.WillExpand="willexpand",o.Tap="cardtap",o))(x||{}),w="cubic-bezier(0.4, 0, 0.2, 1)",r=class r extends a{constructor(){super();this.onCardClickHandler=this.onCardClick.bind(this);this.updateFadeMaskHandler=this.updateFadeMask.bind(this);let t=this.attachShadow({mode:"open"});t.prepend(r.createStyleElement().cloneNode(true));let e=document.createElement("div");if(e.role="list",e.id="root",e.innerHTML=a$1`<slot></slot>`,t.append(e),!CSS.supports("mask-image","linear-gradient(black, white)")){let a=document.createElement("div");a.innerHTML='<div class="fade top"></div><div class="fade bottom"></div>',a.classList.add("fade-layer"),t.prepend(a);}}set collapsed(t){if(!t){this.removeAttribute("collapsed");return}this.setAttribute("collapsed",t.toString());}get collapsed(){return !!this.getAttribute("collapsed")}get items(){return this.querySelectorAll(a$2.tag)}get root(){var t;return (t=this.shadowRoot)==null?void 0:t.querySelector("#root")}static create(){return document.createElement(r.tag)}static register(){a$3({[r.tag]:r});}static createStyleElement(){return a$4`:host{--top-offset:0rem;--list-height:600px;--elements-number:0;--max-expanded-height:min(calc((100px + 0.7rem)*var(--elements-number)),calc(var(--list-height) - var(--top-offset)));--animation-function:${w};--max-collapsed-height:115px;-webkit-tap-highlight-color:transparent;position:relative;width:100%}:host #root{cursor:pointer;display:block;height:calc(var(--max-expanded-height));mask-image:linear-gradient(to bottom,#0000 0,#000 var(--end-top-mask,0),#000 var(--start-bottom-mask,95%),#0000 100%);overflow-y:auto;scroll-behavior:smooth;scrollbar-width:none;transform-style:preserve-3d;transition:height .6s var(--animation-function);-webkit-overflow-scrolling:touch;-ms-overflow-style:none}:host .fade-layer{height:100%;left:0;pointer-events:none;position:absolute;top:0;width:100%;z-index:1}:host([collapsed]) .fade-layer div.fade{opacity:0!important}:host .fade-layer div.fade{height:64px;opacity:0;position:absolute;width:100%;z-index:1}:host .fade-layer div.fade.top{background:linear-gradient(180deg,#00000073,#0000);top:0}:host .fade-layer div.fade.bottom{background:linear-gradient(0deg,#00000073,#0000);bottom:0}:host #root::-webkit-scrollbar{display:none}:host([collapsed]) #root{height:var(--max-collapsed-height);mask:none;overflow:hidden}::slotted(${a$2.tag}){--position:0;--animation-duration:0.5s;--margin-bottom:calc(0.5rem*var(--position));--translate-y-value:calc(var(--position)*100% + var(--margin-bottom));--scale:1;opacity:1;position:absolute;transform:translateY(var(--translate-y-value)) scale(var(--scale));transition:transform var(--animation-duration) var(--animation-function),opacity var(--animation-duration) var(--animation-function);width:100%;will-change:transform,opacity;z-index:calc(var(--position)*-1)}:host([collapsed]) ::slotted(${a$2.tag}){--translate-y-value:calc(var(--position)*10%);--scale:calc(1 - var(--position)*0.05);opacity:1}:host([collapsed]) ::slotted(${a$2.tag}:nth-child(3)){opacity:.5}:host([collapsed]) ::slotted(${a$2.tag}:nth-child(n+4)){opacity:0}`}connectedCallback(){var t;this.addEventListener("click",this.onCardClickHandler),(t=this.root)==null||t.addEventListener("scroll",this.updateFadeMaskHandler),this.updateFadeMaskHandler();}disconnectedCallback(){var t;this.removeEventListener("click",this.onCardClickHandler),(t=this.root)==null||t.removeEventListener("scroll",this.updateFadeMaskHandler);}attributeChangedCallback(t,e,a){t==="collapsed"&&this._handleStateChange();}async _handleStateChange(){var o;let t=this.collapsed?"willcollapse":"willexpand",e=this.collapsed?"collapsed":"expanded";this.dispatchEvent(new CustomEvent(t)),this.collapsed&&((o=this.root)==null||o.scrollTo({behavior:"instant",top:0}));let a=[];for(let[n,i]of Object.entries(this.items))Number(n)!==0&&a.push(a$5(i,"transform")),this.collapsed||i.style.removeProperty("opacity"),i.style.setProperty(l,n);await Promise.all(a),this.dispatchEvent(new CustomEvent(e)),this.updateFadeMaskHandler();}async expand(){return this.collapsed?(this.collapsed=false,this._handleStateChange()):Promise.resolve()}async collapse(){return this.collapsed?Promise.resolve():(this.collapsed=true,this._handleStateChange())}updateListHeight(t){this.style.setProperty("--elements-number",t.length.toString()),this.updateFadeMaskHandler();}renderCards(t){let e=document.createDocumentFragment();for(let[a,o]of Object.entries(t))o.dataset.position=`${a}`,o.style.setProperty(l,a.toString()),e.append(o);this.append(e),this.updateListHeight(t);}clearCards(){for(let t of this.querySelectorAll(a$2.tag))t.remove();this.updateListHeight([]);}async unshift(t){if(t.dataset.position==="0"&&t.style.getPropertyValue(l)==="0")return;let e=new Animation(new KeyframeEffect(t,[{transform:"translateY(-100%)",scale:1.05,opacity:0},{transform:"translateY(0%)",scale:1,opacity:1}],{duration:500,easing:w}));t.remove(),t.dataset.position="0",t.style.setProperty(l,"0");let a="0";for(let[o,n]of Object.entries(this.items))a=`${Number(o)+1}`,n.dataset.position=a,n.style.setProperty(l,a);this.prepend(t),e.play(),await b(e);}onCardClick(t){let e=t.target.closest(a$2.tag);e!==null&&this.dispatchEvent(new CustomEvent("cardtap",{bubbles:true,composed:true,detail:{card:e}}));}updateFadeMask(t){var h,m,u,v,f;let{scrollTop:e=0,scrollHeight:a=0,clientHeight:o=0}=(h=t==null?void 0:t.target)!=null?h:this.root,n=a-o,i=Math.round(e/n*100);if(Number.isNaN(i))return;(m=this.root)==null||m.style.setProperty("--end-top-mask",`${Math.min(i,5)}%`),(u=this.root)==null||u.style.setProperty("--start-bottom-mask",`${Math.max(i,95)}%`);let c=(v=this.shadowRoot)==null?void 0:v.querySelector(".fade.top"),p=(f=this.shadowRoot)==null?void 0:f.querySelector(".fade.bottom");c!=null&&p!=null&&(c.style.setProperty("opacity",`${i/100}`),p.style.setProperty("opacity",`${1-i/100}`));}};r.tag="scandit-card-list",r.observedAttributes=["collapsed"];var d=r;d.register();export{d as CardList,x as CardListEvents};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var C=class C extends a{static create(){return document.createElement(C.tag)}static register(){a$1({[C.tag]:C});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${C.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ProgressBar}from'../../../chunks/chunk-
|
|
1
|
+
export{a as ProgressBar}from'../../../chunks/chunk-MDC2G4SQ.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as RoundedCheckSvgIcon}from'../../../chunks/chunk-
|
|
1
|
+
export{a as RoundedCheckSvgIcon}from'../../../chunks/chunk-2QT7PJFA.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as RoundedExclamationMarkSvgIcon}from'../../../chunks/chunk-
|
|
1
|
+
export{a as RoundedExclamationMarkSvgIcon}from'../../../chunks/chunk-QUHRBS4G.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$
|
|
1
|
+
import {a as a$2}from'../../../chunks/chunk-3A4KLILV.js';import {a}from'../../../chunks/chunk-MU6SADSF.js';import {a as a$1}from'../../../chunks/chunk-EV4OEANA.js';import {a as a$4}from'../../../chunks/chunk-LSZZVJ6B.js';import {a as a$3}from'../../../chunks/chunk-XR65N6EG.js';var c="play",p="pause",b=a`
|
|
2
2
|
<svg viewBox="0 0 100 100">
|
|
3
3
|
<defs>
|
|
4
4
|
<mask id="${c}">
|
|
@@ -19,4 +19,4 @@ import {a as a$1}from'../../../chunks/chunk-EV4OEANA.js';import {a as a$2}from'.
|
|
|
19
19
|
<circle class="border" cx="50" cy="50" r="48" fill="none" stroke-width="3" stroke="white" />
|
|
20
20
|
</g>
|
|
21
21
|
</svg>
|
|
22
|
-
`;function
|
|
22
|
+
`;function f(){return a$4`:host{--button-width:0px;display:inline-block;touch-action:manipulation}:host([hidden]){display:none}button{background:none;border:none;border-radius:100%;line-height:0;margin:0;padding:0;touch-action:manipulation}button.pulse{animation:pulsate 2s infinite;animation-delay:.3s;border-radius:100%;box-shadow:0 0 0 0 #ffffff80}svg{position:relative;width:100%}@keyframes pulsate{0%{transform:scale(1)}5%{box-shadow:0 0 0 0 #ffffff80;transform:scale(.9)}20%{transform:scale(1)}to{box-shadow:0 0 0 calc(var(--button-width)/2) #fff0}}`}function g(){return a$4`.rotating .border{stroke-dasharray:302 301;animation-direction:normal;animation-duration:4s;animation-fill-mode:forwards;animation-iteration-count:infinite;animation-name:rotating-stroke;animation-timing-function:linear;transform-origin:center}@keyframes rotating-stroke{0%{stroke-dasharray:302 301;transform:rotate(0)}50%{stroke-dasharray:1 301}51%{stroke-dasharray:0 291 10}to{stroke-dasharray:0 1 301;transform:rotate(-2turn)}}`}var d={default:"default",play:"play",pause:"pause"},i=class i extends a$1{constructor(){super();this._mainSVGCircle=null;this.shadowRoot||this.attachShadow({mode:"open"});}static get observedAttributes(){return ["variant","pulse","rotating"]}set variant(t){this.checkVariant(t)&&this.setAttribute("variant",t);}get variant(){var t;return (t=this.getAttribute("variant"))!=null?t:"default"}set pulse(t){t?this.setAttribute("pulse",""):this.removeAttribute("pulse");}get pulse(){return this.hasAttribute("pulse")}set rotating(t){t?this.setAttribute("rotating",""):this.removeAttribute("rotating");}get rotating(){return this.hasAttribute("rotating")}static register(){a$2({[i.tag]:i});}static create(){return document.createElement(i.tag)}attributeChangedCallback(t){var e,n,s;if(t==="variant"){if(!this.checkVariant(this.getAttribute("variant"))){this.variant="default";return}this._button&&(this.refreshButtonWidth(),this._button.classList.add(this.variant),(e=this._mainSVGCircle)==null||e.setAttribute("mask",`url(#${this.variant})`));}t==="pulse"&&(this.refreshButtonWidth(),(n=this._button)==null||n.classList.toggle("pulse",this.pulse)),t==="rotating"&&((s=this._button)==null||s.classList.toggle("rotating",this.rotating));}checkVariant(t){return this.isValidState(t)?true:(a$3.warn(`Invalid variant: "${t}". Must be one of ${Object.values(d).toString()}`),false)}refreshButtonWidth(){var e;let{width:t}=this.getBoundingClientRect();(e=this._button)==null||e.style.setProperty("--button-width",`${t}px`);}connectedCallback(){var t;this.hasAttribute("variant")||(this.variant="default"),this._button||(this._button=document.createElement("button"),this._button.innerHTML=b,this._button.classList.add(this.variant),this._button.classList.toggle("pulse",this.pulse),this._button.classList.toggle("rotating",this.rotating),this.shadowRoot.append(this._button),this.appendStyle(),this._mainSVGCircle=this._button.querySelector("#main-circle"),(t=this._mainSVGCircle)==null||t.setAttribute("mask",`url(#${this.variant})`),this.refreshButtonWidth());}isValidState(t){return t==null?false:Object.values(d).includes(t)}appendStyle(){var t;this.shadowRoot.append(f().cloneNode(true)),(t=this.shadowRoot.querySelector("svg"))==null||t.prepend(g().cloneNode(true));}};i.tag="scandit-shutter-button";var r=i;r.register();export{r as ShutterButton,d as VARIANTS};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SvgIcon}from'../../../chunks/chunk-
|
|
1
|
+
export{a as SvgIcon}from'../../../chunks/chunk-S24T6WS2.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { ScanditHTMLElement } from '../../utils/ScanditHTMLElement.js';
|
|
3
3
|
import { ScanditIcon } from '../../../ScanditIcon.js';
|
|
4
|
-
import { Z as GenericHint } from '../../../Camera-
|
|
4
|
+
import { Z as GenericHint } from '../../../Camera-bxDEtlUu.js';
|
|
5
5
|
import '../../../Common.js';
|
|
6
6
|
import '../../Serializable.js';
|
|
7
7
|
import '../../FrameReaders/WatermarkStack.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as Toast,a as ToastEvents}from'../../../chunks/chunk-
|
|
1
|
+
export{b as Toast,a as ToastEvents}from'../../../chunks/chunk-TVQ54DA3.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var t=class t extends a{static create(){return document.createElement(t.tag)}static register(){a$1({[t.tag]:t});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${t.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a}from'../../../chunks/chunk-
|
|
1
|
+
import {a}from'../../../chunks/chunk-S24T6WS2.js';import {a as a$1}from'../../../chunks/chunk-3A4KLILV.js';import {a as a$2}from'../../../chunks/chunk-MU6SADSF.js';var e=class e extends a{static create(){return document.createElement(e.tag)}static register(){a$1({[e.tag]:e});}render(){return a$2`
|
|
2
2
|
<style>
|
|
3
3
|
${e.tag} {
|
|
4
4
|
display: flex;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import '../../../ScanditIcon.js';
|
|
3
3
|
import '../../utils/ScanditHTMLElement.js';
|
|
4
4
|
import '../../../Common.js';
|
|
5
|
-
export { U as HintPresenter, bv as HintPresenterEvents } from '../../../Camera-
|
|
5
|
+
export { U as HintPresenter, bv as HintPresenterEvents } from '../../../Camera-bxDEtlUu.js';
|
|
6
6
|
import '../../Serializable.js';
|
|
7
7
|
import '../../FrameReaders/WatermarkStack.js';
|
|
8
8
|
import '../../../tsHelper.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as HintPresenter,a as HintPresenterEvents}from'../../../chunks/chunk-
|
|
1
|
+
export{b as HintPresenter,a as HintPresenterEvents}from'../../../chunks/chunk-WKTLU3L4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LoadingOverlay}from'../../../chunks/chunk-
|
|
1
|
+
export{a as LoadingOverlay}from'../../../chunks/chunk-HHMOVH27.js';
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
declare class MockAnimation extends EventTarget implements Animation {
|
|
3
|
+
private __isMockAnimation;
|
|
4
|
+
private element;
|
|
5
|
+
private keyFrameEffect;
|
|
6
|
+
private _playState;
|
|
7
|
+
get playState(): AnimationPlayState;
|
|
8
|
+
get replaceState(): AnimationReplaceState;
|
|
9
|
+
private resolver;
|
|
10
|
+
private readyResolver;
|
|
11
|
+
private timeoutId;
|
|
12
|
+
finished: Promise<any>;
|
|
13
|
+
timeline: AnimationTimeline | null;
|
|
14
|
+
effect: AnimationEffect | null;
|
|
15
|
+
id: string;
|
|
16
|
+
pending: boolean;
|
|
17
|
+
playbackRate: number;
|
|
18
|
+
private _replaceState;
|
|
19
|
+
ready: Promise<any>;
|
|
20
|
+
startTime: number | null;
|
|
21
|
+
currentTime: number | null;
|
|
22
|
+
constructor(effect?: AnimationEffect | null, timeline?: AnimationTimeline | null);
|
|
23
|
+
play(): void;
|
|
24
|
+
pause(): void;
|
|
25
|
+
finish(): void;
|
|
26
|
+
cancel(): void;
|
|
27
|
+
reverse(): void;
|
|
28
|
+
onfinish: (() => void) | null;
|
|
29
|
+
oncancel: (() => void) | null;
|
|
30
|
+
onremove: (() => void) | null;
|
|
31
|
+
private createReadyPromise;
|
|
32
|
+
private applyFinalStyles;
|
|
33
|
+
private cleanupAppliedStyles;
|
|
34
|
+
commitStyles(): void;
|
|
35
|
+
persist(): void;
|
|
36
|
+
updatePlaybackRate(playbackRate: number): void;
|
|
37
|
+
get overallProgress(): number;
|
|
38
|
+
}
|
|
39
|
+
declare class MockKeyframeEffect implements KeyframeEffect {
|
|
40
|
+
target: Element | null;
|
|
41
|
+
keyframes: Keyframe[];
|
|
42
|
+
options: KeyframeEffectOptions;
|
|
43
|
+
activeDuration: number;
|
|
44
|
+
composite: CompositeOperation;
|
|
45
|
+
pseudoElement: string | null;
|
|
46
|
+
iterationComposite: IterationCompositeOperation;
|
|
47
|
+
constructor(targetOrSource: Element | null | KeyframeEffect, keyframes?: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeEffectOptions);
|
|
48
|
+
private normalizeKeyframes;
|
|
49
|
+
calculateActiveDuration(): number;
|
|
50
|
+
getTiming(): EffectTiming;
|
|
51
|
+
updateTiming(timing?: Partial<EffectTiming>): void;
|
|
52
|
+
setKeyframes(newKeyframes: Keyframe[]): void;
|
|
53
|
+
getKeyframes(): ComputedKeyframe[];
|
|
54
|
+
getTarget(): Element | null;
|
|
55
|
+
getComputedTiming(): ComputedEffectTiming;
|
|
56
|
+
}
|
|
57
|
+
declare function polyfill(): () => void;
|
|
58
|
+
|
|
59
|
+
export { MockAnimation, MockKeyframeEffect, polyfill };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var u=class extends EventTarget{constructor(e,i){var t;super();this.__isMockAnimation=true;this._playState="idle";this.resolver=()=>{};this.readyResolver=()=>{};this.timeoutId=null;this.finished=Promise.resolve();this.timeline=null;this.effect=null;this.id="";this.pending=false;this.playbackRate=1;this._replaceState="active";this.startTime=null;this.currentTime=null;this.onfinish=null;this.oncancel=null;this.onremove=null;this.effect=e||null,this.timeline=i!==void 0?i:((t=globalThis.document)==null?void 0:t.timeline)||null,e&&"target"in e&&(this.element=e.target,this.keyFrameEffect=e),this.createReadyPromise();}get playState(){return this._playState}get replaceState(){return this._replaceState}play(){var i,t,r;if(this.timeoutId&&(clearTimeout(this.timeoutId),this._playState==="running"||this._playState==="paused"))try{this.resolver();}catch(a){}(this._playState==="finished"||this._playState==="running"&&this.timeoutId)&&this.createReadyPromise();let e=(t=(i=this.keyFrameEffect)==null?void 0:i.getTiming().duration)!=null?t:0;if(this._playState==="paused"){this._playState="running",this.pending=false;try{this.readyResolver(this);}catch(s){}let a=Math.max(0,e-((r=this.currentTime)!=null?r:0));this.timeoutId=setTimeout(()=>{var s;this._playState="finished",this.pending=false,this.currentTime=e,this.applyFinalStyles(),this.dispatchEvent(new Event("finish")),(s=this.onfinish)==null||s.call(this),this.resolver();},a);}else this._playState="running",this.pending=true,this.startTime=performance.now(),this.currentTime=0,this.finished=new Promise(a=>{this.resolver=a;}),Promise.resolve().then(()=>{if(this._playState==="running"){this.pending=false;try{this.readyResolver(this);}catch(a){}}}),this.timeoutId=setTimeout(()=>{var a;this._playState="finished",this.pending=false,this.currentTime=e,this.applyFinalStyles(),this.dispatchEvent(new Event("finish")),(a=this.onfinish)==null||a.call(this),this.resolver();},e);}pause(){this.timeoutId&&clearTimeout(this.timeoutId),this._playState="paused",this.pending=false,this.startTime!==null&&(this.currentTime=performance.now()-this.startTime);}finish(){var r,a,s,l,o;if(this.playbackRate===0){let m=new Error("Cannot finish animation with playbackRate of 0");throw m.name="InvalidStateError",m}let e=(a=(r=this.keyFrameEffect)==null?void 0:r.getTiming().duration)!=null?a:0,i=(l=(s=this.keyFrameEffect)==null?void 0:s.getTiming().iterations)!=null?l:1,t=e*i;if(this.playbackRate>0&&(t===Number.POSITIVE_INFINITY||i===Number.POSITIVE_INFINITY)){let m=new Error("Cannot finish animation with infinite end time and positive playbackRate");throw m.name="InvalidStateError",m}this.timeoutId&&clearTimeout(this.timeoutId),this._playState="finished",this.pending=false,this.currentTime=this.playbackRate<0?0:e,this.applyFinalStyles(),this.dispatchEvent(new Event("finish")),(o=this.onfinish)==null||o.call(this),this.resolver();}cancel(){var e;this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=null),this._playState="idle",this.pending=false,this.currentTime=null,this.startTime=null,this.cleanupAppliedStyles(),this.dispatchEvent(new Event("cancel")),(e=this.oncancel)==null||e.call(this);try{this.resolver();}catch(i){}this.createReadyPromise();}reverse(){this.playbackRate*=-1,this.dispatchEvent(new Event("reverse"));}createReadyPromise(){this.ready=new Promise(e=>{this.readyResolver=e;});}applyFinalStyles(){if(!this.keyFrameEffect||!this.element)return;let e=this.keyFrameEffect.getKeyframes(),i=e[e.length-1];if(i&&this.element instanceof HTMLElement){for(let[t,r]of Object.entries(i))if(t!=="offset"&&t!=="easing"&&t!=="composite")try{this.element.style.setProperty(t,String(r));}catch(a){}}}cleanupAppliedStyles(){if(!this.keyFrameEffect||!this.element)return;let e=this.keyFrameEffect.getKeyframes();if(this.element instanceof HTMLElement){for(let i of e)for(let[t]of Object.entries(i))if(t!=="offset"&&t!=="easing"&&t!=="composite")try{let r=t.replace(/[A-Z]/g,a=>`-${a.toLowerCase()}`);this.element.style.removeProperty(r);}catch(r){}}}commitStyles(){this.applyFinalStyles();}persist(){this._replaceState="persisted";}updatePlaybackRate(e){this.playbackRate=e;}get overallProgress(){var i,t,r;if(this._playState==="idle")return 0;if(this._playState==="finished")return 1;let e=(t=(i=this.keyFrameEffect)==null?void 0:i.getTiming().duration)!=null?t:0;return e===0?0:Math.min(1,Math.max(0,((r=this.currentTime)!=null?r:0)/e))}},f=class{constructor(n,e,i={}){this.composite="replace";this.pseudoElement=null;this.iterationComposite="replace";if(arguments.length===1&&n&&typeof n=="object"&&"getKeyframes"in n&&"target"in n){let t=n;this.target=t.target;let r=t.getKeyframes?t.getKeyframes():[];this.keyframes=r.map(a=>{let{easing:s,computedOffset:l,...o}=a;return s&&s!=="linear"&&(o.easing=s),o}),this.options=t.getTiming?t.getTiming():{},this.composite=t.composite||"replace",this.pseudoElement=t.pseudoElement||null,this.iterationComposite=t.iterationComposite||"replace";}else this.target=n,this.keyframes=this.normalizeKeyframes(e!=null?e:[]),this.options=typeof i=="number"?{duration:i}:i;this.activeDuration=this.calculateActiveDuration();}normalizeKeyframes(n){if(!n)return [];if(Array.isArray(n))return n;let e=[],i=Object.keys(n);if(i.length===0)return [];let t=0;for(let r of i){let a=n[r];Array.isArray(a)?t=Math.max(t,a.length):a!==void 0&&(t=Math.max(t,1));}for(let r=0;r<t;r++){let a={};for(let s of i){let l=n[s];Array.isArray(l)?a[s]=l[r]||l[l.length-1]:l!==void 0&&(a[s]=l);}e.push(a);}return e}calculateActiveDuration(){var i;let n=typeof this.options.duration=="number"?this.options.duration:0,e=(i=this.options.iterations)!=null?i:1;return n*e}getTiming(){return {...this.options}}updateTiming(n){this.options={...this.options,...n},this.activeDuration=this.calculateActiveDuration();}setKeyframes(n){this.keyframes=n;}getKeyframes(){return this.keyframes.map(n=>{var e,i;return {...n,computedOffset:(e=n.offset)!=null?e:null,easing:(i=n.easing)!=null?i:"linear"}})}getTarget(){return this.target}getComputedTiming(){let n=this.getTiming();return {...n,activeDuration:this.activeDuration,endTime:this.activeDuration+(n.delay||0)+(n.endDelay||0),localTime:null,progress:null,currentIteration:null}}};function c(){let h=globalThis.Animation,n=globalThis.KeyframeEffect,e=globalThis.Element.prototype.animate;return Object.defineProperty(globalThis,"Animation",{writable:true,configurable:true,value:u}),Object.defineProperty(globalThis,"KeyframeEffect",{writable:true,configurable:true,value:f}),Object.defineProperty(globalThis.Element.prototype,"animate",{writable:true,configurable:true,value:function(i,t){let r=new f(this,i,t),a=new u(r);return a.play(),a}}),()=>{Object.defineProperty(globalThis,"Animation",{writable:true,configurable:true,value:h}),Object.defineProperty(globalThis,"KeyframeEffect",{writable:true,configurable:true,value:n}),Object.defineProperty(globalThis.Element.prototype,"animate",{writable:true,configurable:true,value:e});}}export{u as MockAnimation,f as MockKeyframeEffect,c as polyfill};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
/**
|
|
3
|
+
* Polyfill for FinalizationRegistry to support environments where it's not available
|
|
4
|
+
* (e.g., some worker contexts). This provides a no-op implementation that maintains
|
|
5
|
+
* the same API but doesn't perform actual cleanup.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Provides FinalizationRegistry polyfill when not available
|
|
9
|
+
* @param target The target object (globalThis, self, or global) where FinalizationRegistry should be added
|
|
10
|
+
*/
|
|
11
|
+
declare function ensureFinalizationRegistry(target: any): void;
|
|
12
|
+
|
|
13
|
+
export { ensureFinalizationRegistry };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as ensureFinalizationRegistry}from'../../chunks/chunk-SEAVQZN6.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
/**
|
|
3
|
+
* Polyfill for Object.fromEntries() for Chrome 64+ compatibility.
|
|
4
|
+
* Object.fromEntries() was introduced in Chrome 73, so this provides
|
|
5
|
+
* backward compatibility for Chrome 64-72.
|
|
6
|
+
*
|
|
7
|
+
* @param entries An iterable object that contains key-value pairs
|
|
8
|
+
* @returns A new object whose properties are given by the entries
|
|
9
|
+
*/
|
|
10
|
+
declare function fromEntries<T = any>(entries: Iterable<readonly [PropertyKey, T]>): {
|
|
11
|
+
[k: string]: T;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
export { fromEntries };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as fromEntries}from'../../chunks/chunk-RG272MAJ.js';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
/**
|
|
3
|
+
* Copyright (C) 2024 Scandit AG. All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
* globalThis polyfill for older browsers
|
|
6
|
+
* This polyfill ensures globalThis is available in all supported browsers.
|
|
7
|
+
* Based on the polyfill from https://github.com/es-shims/globalThis
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Registers the globalThis polyfill if it's not already available
|
|
11
|
+
* @returns true if the polyfill was applied, false if globalThis already exists
|
|
12
|
+
*/
|
|
13
|
+
declare function globalThisPolyfill(): boolean;
|
|
14
|
+
|
|
15
|
+
export { globalThisPolyfill };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as globalThisPolyfill}from'../../chunks/chunk-ACFJP5SR.js';
|
|
@@ -9,7 +9,9 @@ export { css } from './css.js';
|
|
|
9
9
|
export { html } from './html.js';
|
|
10
10
|
export { waitTransitionEndForElement } from './waitTransitionEndForElement.js';
|
|
11
11
|
export { wait } from './wait.js';
|
|
12
|
+
export { safeAwaitAnimation, safeCancelAnimation } from './safeCancelAnimation.js';
|
|
12
13
|
export { ScanditHTMLElement } from './ScanditHTMLElement.js';
|
|
13
14
|
export { isWorkerScope } from './isWorkerScope.js';
|
|
14
15
|
export { throttle } from './throttle.js';
|
|
15
16
|
export { clamp } from './clamp.js';
|
|
17
|
+
export { fromEntries } from './fromEntries.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{a as waitTransitionEndForElement}from'../../chunks/chunk-2HTI5D6Y.js';export{b as safeAwaitAnimation,a as safeCancelAnimation}from'../../chunks/chunk-SM5S3DDC.js';export{a as throttle}from'../../chunks/chunk-T3AOBMAS.js';export{a as Timeout}from'../../chunks/chunk-Q7JWDX4U.js';export{a as wait}from'../../chunks/chunk-UZWBB65W.js';export{a as defineCustomElements}from'../../chunks/chunk-3A4KLILV.js';export{a as html}from'../../chunks/chunk-MU6SADSF.js';export{a as ScanditHTMLElement}from'../../chunks/chunk-EV4OEANA.js';export{a as clamp}from'../../chunks/chunk-L2STPTEN.js';export{a as css}from'../../chunks/chunk-LSZZVJ6B.js';export{a as unknownErrorToString}from'../../chunks/chunk-AIRWHLJH.js';export{a as isObject}from'../../chunks/chunk-FGO2SSRS.js';export{a as isWorkerScope}from'../../chunks/chunk-QCRFVRSS.js';export{a as Deferred}from'../../chunks/chunk-O7TZTIHO.js';export{a as fromEntries}from'../../chunks/chunk-RG272MAJ.js';export{a as debounce}from'../../chunks/chunk-R6E4CT22.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { Size } from '../../Common.js';
|
|
3
3
|
import { Optional } from '../../tsHelper.js';
|
|
4
4
|
import '../../ScanditIcon.js';
|
|
5
|
-
import '../../Camera-
|
|
5
|
+
import '../../Camera-bxDEtlUu.js';
|
|
6
6
|
import '../Serializable.js';
|
|
7
7
|
import './ScanditHTMLElement.js';
|
|
8
8
|
import '../FrameReaders/WatermarkStack.js';
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/// <reference types="emscripten" />
|
|
2
|
+
/**
|
|
3
|
+
* Web Animations API Robust Animation Utilities
|
|
4
|
+
*
|
|
5
|
+
* This module provides safe ways to work with Web Animations API animations,
|
|
6
|
+
* handling compatibility differences between different polyfills and native implementations.
|
|
7
|
+
*
|
|
8
|
+
* ## Background: Polyfill Compatibility Issues
|
|
9
|
+
*
|
|
10
|
+
* Different polyfills behave differently when cancelling animations:
|
|
11
|
+
* - **Our AnimationSimplePolyfill**: Resolves promises, no errors (permissive)
|
|
12
|
+
* - **web-animations-js**: Rejects promises, throws AbortError (strict spec)
|
|
13
|
+
* - **Native browsers**: Varies - some silent, some throw errors
|
|
14
|
+
*
|
|
15
|
+
* ## Our Solution: Handle All Scenarios
|
|
16
|
+
*
|
|
17
|
+
* Instead of assuming one behavior, we handle all possible outcomes:
|
|
18
|
+
* - Try to cancel animations and handle any errors
|
|
19
|
+
* - Safely await animation.finished promises with proper error handling
|
|
20
|
+
* - Ensure elements are always in a good state after operations
|
|
21
|
+
*
|
|
22
|
+
* ## Technical Details
|
|
23
|
+
*
|
|
24
|
+
* According to the Web Animations API specification:
|
|
25
|
+
* - An animation can be in one of several states: "idle", "running", "paused", "finished"
|
|
26
|
+
* - Calling `cancel()` on an animation in "idle" or "finished" state may throw AbortError
|
|
27
|
+
* - The `finished` promise may be rejected with AbortError when animations are cancelled
|
|
28
|
+
* - Different polyfills enforce this to varying degrees
|
|
29
|
+
* - Our utilities ensure compatibility across all implementations
|
|
30
|
+
*
|
|
31
|
+
* ## References
|
|
32
|
+
* - Web Animations API Specification: https://www.w3.org/TR/web-animations-1/
|
|
33
|
+
* - MDN Web Animations API: https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API
|
|
34
|
+
* - MDN Animation.cancel(): https://developer.mozilla.org/en-US/docs/Web/API/Animation/cancel
|
|
35
|
+
* - AbortError: https://developer.mozilla.org/en-US/docs/Web/API/AbortError
|
|
36
|
+
*/
|
|
37
|
+
/**
|
|
38
|
+
* Safely cancels a Web Animation, handling any errors that may be thrown by strict polyfills.
|
|
39
|
+
*
|
|
40
|
+
* @param animation - The animation to cancel
|
|
41
|
+
* @returns true if the animation was successfully cancelled, false if it failed or was already finished
|
|
42
|
+
*/
|
|
43
|
+
declare function safeCancelAnimation(animation: Animation | null | undefined): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Safely awaits an animation's finished promise, handling potential AbortError rejections
|
|
46
|
+
* from strict polyfills when animations are cancelled.
|
|
47
|
+
*
|
|
48
|
+
* @param animation - The animation to await
|
|
49
|
+
* @returns Promise that resolves when animation completes or is cancelled (never rejects)
|
|
50
|
+
*/
|
|
51
|
+
declare function safeAwaitAnimation(animation: Animation | null | undefined): Promise<void>;
|
|
52
|
+
|
|
53
|
+
export { safeAwaitAnimation, safeCancelAnimation };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{b as safeAwaitAnimation,a as safeCancelAnimation}from'../../chunks/chunk-SM5S3DDC.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {a as a$1}from'../../chunks/chunk-
|
|
1
|
+
import {a as a$1}from'../../chunks/chunk-6VWIJ62O.js';import {a as a$2}from'../../chunks/chunk-XR65N6EG.js';async function a(){let[{missingFeatures:t},i]=await Promise.all([a$1.checkBrowserCompatibility(),a$1.checkMultithreadingSupport()]);i||(a$2.warn("Multithreading is not supported."),t.includes("crossOriginIsolated")&&a$2.warn("Headers for Multithreading are absent or misconfigured: please check how to configure them properly: https://docs.scandit.com/sdks/web/matrixscan/get-started#enable-browser-multithreading"),t.includes("sharedArrayBuffer")&&a$2.warn("SharedArrayBuffer not supported. Check the requirements here: https://docs.scandit.com/system-requirements#web-sdk"));}
|
|
2
2
|
export{a as warnMultithreadingUnavailable};
|
package/build/js/sdk.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
2
|
import { LoadingStatus } from './LoadingStatus.js';
|
|
3
3
|
import './ScanditIcon.js';
|
|
4
|
-
import { D as DataCaptureLoader } from './Camera-
|
|
4
|
+
import { D as DataCaptureLoader } from './Camera-bxDEtlUu.js';
|
|
5
5
|
import './Common.js';
|
|
6
6
|
import './private/Serializable.js';
|
|
7
7
|
import './private/utils/ScanditHTMLElement.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { W as DataCaptureEngine, X as Module, _ as AnyDataCaptureActionMessage, $ as AugmentedWorker, a0 as ModuleHandler, a1 as DataCaptureCallbackMessage, a2 as DataCaptureActionMessageKey, a3 as EngineWorkerResponse } from '../Camera-bxDEtlUu.js';
|
|
3
3
|
import '../private/Serializable.js';
|
|
4
4
|
import '../Common.js';
|
|
5
5
|
import '../private/FrameReaders/WatermarkStack.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as WorkerMain}from'../chunks/chunk-
|
|
1
|
+
export{a as WorkerMain}from'../chunks/chunk-QEWYPYNF.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
import {
|
|
2
|
+
import { W as DataCaptureEngine, X as Module } from '../Camera-bxDEtlUu.js';
|
|
3
3
|
import { WorkerMain } from './WorkerMain.js';
|
|
4
4
|
import '../private/Serializable.js';
|
|
5
5
|
import '../Common.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-
|
|
1
|
+
export{b as InlineWorker,a as workerInstance}from'../chunks/chunk-7452WLDM.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="emscripten" />
|
|
2
|
-
export { bf as CreateContextParameters,
|
|
2
|
+
export { bf as CreateContextParameters, W as DataCaptureEngine, be as LoadLibraryParameters, bi as ProcessFrameParameters, bj as ReportCameraPropertiesParameters, bh as SetFrameSourceParameters, bg as UpdateContextParameters, bk as WorkerFunctions } from '../Camera-bxDEtlUu.js';
|
|
3
3
|
import './OverrideState.js';
|
|
4
4
|
import '../LoadingStatus.js';
|
|
5
5
|
import '../Common.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureEngine}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureEngine}from'../chunks/chunk-GPKU5XMS.js';
|