@scandit/web-datacapture-barcode 7.4.1 → 7.5.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/build/js/ar/BarcodeAr.js +1 -1
- package/build/js/ar/BarcodeArAnnotationProvider.d.ts +1 -0
- package/build/js/ar/BarcodeArFeedback.js +1 -1
- package/build/js/ar/BarcodeArPresenter.d.ts +1 -0
- package/build/js/ar/BarcodeArPresenter.js +1 -1
- package/build/js/ar/BarcodeArView.d.ts +6 -1
- package/build/js/ar/BarcodeArView.js +1 -1
- package/build/js/ar/ui/atoms/private/BarcodeStatusIconContainer.d.ts +2 -3
- package/build/js/ar/ui/atoms/private/BarcodeStatusIconContainer.js +1 -1
- package/build/js/ar/ui/organisms/BarcodeArAnnotation.d.ts +2 -0
- package/build/js/ar/ui/organisms/BarcodeArInfoAnnotation.d.ts +1 -0
- package/build/js/ar/ui/organisms/BarcodeArInfoAnnotation.js +1 -1
- package/build/js/ar/ui/organisms/BarcodeArPopoverAnnotation.d.ts +1 -0
- package/build/js/ar/ui/organisms/BarcodeArResponsiveAnnotation.d.ts +41 -0
- package/build/js/ar/ui/organisms/BarcodeArResponsiveAnnotation.js +1 -0
- package/build/js/ar/ui/organisms/BarcodeArStatusIconAnnotation.d.ts +4 -0
- package/build/js/ar/ui/organisms/BarcodeArStatusIconAnnotation.js +1 -1
- package/build/js/ar/ui/organisms/private/AnchorAndDirectionUtils.d.ts +1 -0
- package/build/js/ar/ui/organisms/private/BarcodeArAnnotationVariation.d.ts +7 -0
- package/build/js/ar/ui/organisms/private/BarcodeArAnnotationVariation.js +1 -0
- package/build/js/chunks/{chunk-D55IVUHN.js → chunk-4ONJXB3L.js} +1 -1
- package/build/js/chunks/{chunk-TBEB6P5W.js → chunk-54LBQVFM.js} +1 -1
- package/build/js/chunks/chunk-5F4G55DT.js +1 -0
- package/build/js/chunks/chunk-5YBQLHNM.js +1 -0
- package/build/js/chunks/chunk-6KQHES2D.js +2 -0
- package/build/js/chunks/chunk-7MBNAVTN.js +1 -0
- package/build/js/chunks/{chunk-EUPONI3T.js → chunk-C3BYC73L.js} +1 -1
- package/build/js/chunks/chunk-FVXCVRYF.js +1 -0
- package/build/js/chunks/{chunk-WRSF34UR.js → chunk-KY4LFBPK.js} +1 -1
- package/build/js/chunks/chunk-P3AIUGBT.js +1 -0
- package/build/js/chunks/chunk-RKWHXL4Z.js +7 -0
- package/build/js/chunks/{chunk-KLLRZ5ML.js → chunk-SYIVGMBU.js} +1 -1
- package/build/js/chunks/chunk-TJDS5SWC.js +9 -0
- package/build/js/chunks/{chunk-FLVXOM3V.js → chunk-VND63O24.js} +1 -1
- package/build/js/chunks/{chunk-LGBIU7XO.js → chunk-WXR7X3J5.js} +1 -1
- package/build/js/chunks/{chunk-Z5XSYMXM.js → chunk-XX7JKNC6.js} +1 -1
- package/build/js/index.d.ts +2 -0
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/spark/index.js +1 -1
- package/build/js/spark/ui/SparkScanView.js +1 -1
- package/build/js/spark/ui/SparkScanViewMiniPreview.js +1 -1
- package/build/js/spark/ui/SparkScanViewTriggerButton.js +1 -1
- package/build/js/spark/ui/index.js +1 -1
- package/build/js/worker/BarcodeCaptureWorkerManager.js +1 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/barcodeCapture.inlineWorker.js +1 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/package.json +3 -3
- package/sdc-lib/resources/models/barcode_classification_default.fde280355f0b.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_default.ea245fd6454e.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_dpm_default.313e68d94ae1.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default.42a9746ffe91.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_oned_default.33db0e688e2c.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_twod_default.547ff0613d2c.model +0 -0
- package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_detector_default.d02cb8506d3f.model +0 -0
- package/sdc-lib/resources/models/barcode_semantics_ocr_detector_default.9e7b3e9f0b6c.model +0 -0
- package/sdc-lib/resources/models/eu_dl_localization.d02cb8506d3f.model +0 -0
- package/sdc-lib/resources/models/invalidated_id_classification_default.373f114cb966.model +0 -0
- package/sdc-lib/resources/models/ocr_barcode_semantics_default.f48356d94444.model +0 -0
- package/sdc-lib/resources/models/price_label_localization.b1f6616d5e10.model +0 -0
- package/sdc-lib/resources/models/price_localization_in_whole_label.614fcbe425d2.model +0 -0
- package/sdc-lib/resources/models/uk_dl_code_localization.d02cb8506d3f.model +0 -0
- package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-barcode-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-barcode-simd-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-barcode-simd.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-barcode-simd.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-barcode.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-barcode.wasm +0 -0
- package/build/js/chunks/chunk-A2BKX6QD.js +0 -1
- package/build/js/chunks/chunk-BSEQX52V.js +0 -1
- package/build/js/chunks/chunk-GWSHGACY.js +0 -9
- package/build/js/chunks/chunk-ICRLCCOF.js +0 -1
- package/build/js/chunks/chunk-IRK7SW2B.js +0 -2
- package/build/js/chunks/chunk-XUOTM7YW.js +0 -7
- package/sdc-lib/resources/models/barcode_classification_default.b90ecc5d362d.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_default.47d1f96d10cc.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_dpm_default.2373d8bc7a9a.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default.4c1ba34eafc0.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_oned_default.5f2c85a7773b.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_twod_default.795c17cef2bf.model +0 -0
- package/sdc-lib/resources/models/barcode_ocr_fallback_ocr_detector_default.e440ae4acaf7.model +0 -0
- package/sdc-lib/resources/models/barcode_semantics_ocr_detector_default.f383d4282ee9.model +0 -0
- package/sdc-lib/resources/models/eu_dl_localization.e440ae4acaf7.model +0 -0
- package/sdc-lib/resources/models/invalidated_id_classification_default.a055873831c9.model +0 -0
- package/sdc-lib/resources/models/ocr_barcode_semantics_default.b8e0fdb8dc2c.model +0 -0
- package/sdc-lib/resources/models/price_label_localization.ae780fb79426.model +0 -0
- package/sdc-lib/resources/models/price_localization_in_whole_label.ae70141639d3.model +0 -0
- package/sdc-lib/resources/models/uk_dl_code_localization.e440ae4acaf7.model +0 -0
- /package/build/js/chunks/{chunk-3MQAMNCQ.js → chunk-HLOYWQPM.js} +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import {a}from'./chunk-LAYALN2H.js';import {a as a$1}from'./chunk-CYVVGAZ4.js';import {a as a$4}from'./chunk-JSJOGGUQ.js';import {a as a$2}from'./chunk-PGZPJXZN.js';import {a as a$3}from'./chunk-AOYPDGOI.js';import {Color,ScanditIcon}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var m=(o=>(o[o.Top="top-center"]="Top",o[o.Bottom="bottom-center"]="Bottom",o[o.Left="left-center"]="Left",o[o.Right="right-center"]="Right",o))(m||{}),N=(e=>(e.Small="small",e.Medium="medium",e.Large="large",e))(N||{}),U=(T=>(T.InfoAnnotationTap="BarcodeArInfoAnnotationEventTap",T))(U||{}),p="slot[name='header']",h="slot[name='footer']",v="--arrow-background-color",s=class s extends ScanditHTMLElement{constructor(){super();this.isEntireAnnotationTappable=false;this.annotationTrigger="highlightTapAndBarcodeScan";this.onPointerUpListener=this.onPointerUp.bind(this);this.onSlotChangeListener=this.onSlotChange.bind(this);this.highlightableElementListenerMap=new Map;let t=this.attachShadow({mode:"open"});t.innerHTML=html`<div
|
|
2
|
+
class="container arw-${m.Bottom} ${"small"}"
|
|
3
|
+
>
|
|
4
|
+
<slot name="header"></slot>
|
|
5
|
+
<div class="body-container">
|
|
6
|
+
<slot></slot>
|
|
7
|
+
</div>
|
|
8
|
+
<slot name="footer"></slot>
|
|
9
|
+
</div>`,this.containerElement=t.querySelector(".container"),t.append(s.createStyleElement().cloneNode(true)),t.append(a());}get barcode(){return this._barcode}set barcode(t){this._barcode=t;}updatePosition(t,e,o){a$1(this,t,e,0);}set anchor(t){for(let e of Object.values(m))this.containerElement.classList.remove(`arw-${e}`);this.containerElement.classList.add(`arw-${t}`),this.updateArrowColor();}get anchor(){for(let t of Object.values(m))if(this.containerElement.classList.contains(`arw-${t}`))return t;return m.Bottom}set widthPreset(t){this.containerElement.classList.remove("small","medium","large"),this.containerElement.classList.add(t);}get widthPreset(){switch(true){case this.containerElement.classList.contains("small"):return "small";case this.containerElement.classList.contains("medium"):return "medium";case this.containerElement.classList.contains("large"):return "large";default:return "small"}}get backgroundColor(){let t=this.containerElement.style.getPropertyValue("--background-color");return Color.fromHex(t)}set backgroundColor(t){this.containerElement.style.setProperty("--background-color",`#${t.toJSON()}`),this.updateArrowColor();}set body(t){this.append(...t);}get body(){var e,o;let t=(e=this.shadowRoot)==null?void 0:e.querySelector("slot:not([name])");return (o=t==null?void 0:t.assignedElements({flatten:true}))!=null?o:[]}set header(t){let e=this.querySelector(p);t!=null&&(e==null?void 0:e.assignedElements()[0])!==t&&(e==null||e.remove(),t.setAttribute("slot","header"),this.append(t));}get header(){var e,o;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(p);return ((o=t==null?void 0:t.assignedElements())!=null?o:[])[0]}set footer(t){let e=this.querySelector(h);t!=null&&(e==null?void 0:e.assignedElements()[0])!==t&&(e==null||e.remove(),t.setAttribute("slot","footer"),this.append(t));}get footer(){var e,o;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(h);return ((o=t==null?void 0:t.assignedElements())!=null?o:[])[0]}set hasTip(t){this.containerElement.classList.toggle(`arw-${this.anchor}`,t);}get hasTip(){return this.containerElement.classList.contains(`arw-${this.anchor}`)}static create(t){s.register();let e=document.createElement(s.tag);return e.barcode=t,e}static register(){defineCustomElements({[a$4.tag]:a$4,[a$3.tag]:a$3,[a$2.tag]:a$2,[s.tag]:s});}static createStyleElement(){return css`:host{--background-color:#fff;--arrow-size:7px;--arrow-background-color:var(--background-color);--arrow-offset:10px;font-family:SF Pro Display,sans-serif}.container{background-color:var(--background-color);border-radius:16px;display:flex;flex-direction:column;min-width:100px;position:relative;transition:opacity .3s ease;width:100%}.container.highlighted{opacity:.75}.container.${"small"}{width:180px}.container.${"medium"}{width:210px}.container.${"large"}{width:240px}.body-container{padding-bottom:1rem}`}connectedCallback(){var o,n;this.addEventListener("pointerup",this.onPointerUpListener);let t=(o=this.shadowRoot)==null?void 0:o.querySelector(p),e=(n=this.shadowRoot)==null?void 0:n.querySelector(h);t==null||t.addEventListener("slotchange",this.onSlotChangeListener),e==null||e.addEventListener("slotchange",this.onSlotChangeListener),this.onSlotChange(),this.isEntireAnnotationTappable&&this.makeHighlightable(this.containerElement);}disconnectedCallback(){var o,n;let t=(o=this.shadowRoot)==null?void 0:o.querySelector(p),e=(n=this.shadowRoot)==null?void 0:n.querySelector(h);t==null||t.removeEventListener("slotchange",this.onSlotChangeListener),e==null||e.removeEventListener("slotchange",this.onSlotChangeListener),this.removeEventListener("pointerup",this.onPointerUpListener);for(let[i,a]of this.highlightableElementListenerMap)i.removeEventListener("pointerdown",a.pointerdown),i.removeEventListener("pointerup",a.pointerup);}onSlotChange(){var i,a,c,d;let t=(i=this.shadowRoot)==null?void 0:i.querySelector(p),e=(a=this.shadowRoot)==null?void 0:a.querySelector(h),o=(c=t==null?void 0:t.assignedElements())!=null?c:[],n=(d=e==null?void 0:e.assignedElements())!=null?d:[];for(let r of o)r.style.setProperty("--top-left-corner-radius","16px"),r.style.setProperty("--top-right-corner-radius","16px"),this.isEntireAnnotationTappable||this.makeHighlightable(r);for(let r of n)r.style.setProperty("--bottom-left-corner-radius","16px"),r.style.setProperty("--bottom-right-corner-radius","16px"),this.isEntireAnnotationTappable||this.makeHighlightable(r);this.updateArrowColor();}updateArrowColor(){this.style.removeProperty(v),this.header||this.footer?this.header&&this.anchor.startsWith("top")?this.style.setProperty(v,`#${this.header.backgroundColor.toJSON()}`):this.footer&&this.anchor.startsWith("bottom")&&this.style.setProperty(v,`#${this.footer.backgroundColor.toJSON()}`):this.body.length>0&&!this.header&&!this.footer&&this.style.setProperty(v,`#${this.backgroundColor.toJSON()}`);}makeHighlightable(t){var i;let e=t.classList.contains("container")?t:(i=t.shadowRoot)==null?void 0:i.querySelector(".container");if(!e||this.highlightableElementListenerMap.has(e))return;let o=()=>{e.classList.add("highlighted");},n=()=>{e.classList.remove("highlighted");};e.addEventListener("pointerdown",o),e.addEventListener("pointerup",n),this.highlightableElementListenerMap.set(e,{pointerdown:o,pointerup:n});}onPointerUp(t){var a,c,d,r,B,f,I,u,S,g,w,b,M;let e=(a=t.target)==null?void 0:a.closest(a$3.tag),o=(c=t.target)==null?void 0:c.closest(a$2.tag),n=(d=t.target)==null?void 0:d.closest(`${a$4.tag} ${ScanditIcon.tag}`),i=new CustomEvent("BarcodeArInfoAnnotationEventTap",{bubbles:true});if(e&&((B=(r=this.listener)==null?void 0:r.onInfoAnnotationHeaderTapped)==null||B.call(r,this),this.dispatchEvent(i)),o&&((I=(f=this.listener)==null?void 0:f.onInfoAnnotationFooterTapped)==null||I.call(f,this),this.dispatchEvent(i)),(n==null?void 0:n.slot)==="left-barcode-icon"){let l=this.body.findIndex(y=>y.contains(n));this.body[l].isLeftIconTappable&&((S=(u=this.listener)==null?void 0:u.onInfoAnnotationLeftIconTapped)==null||S.call(u,this,this.body[l],l),this.dispatchEvent(i));}if((n==null?void 0:n.slot)==="right-barcode-icon"){let l=this.body.findIndex(y=>y.contains(n));this.body[l].isRightIconTappable&&((w=(g=this.listener)==null?void 0:g.onInfoAnnotationRightIconTapped)==null||w.call(g,this,this.body[l],l),this.dispatchEvent(i));}this.isEntireAnnotationTappable&&((M=(b=this.listener)==null?void 0:b.onInfoAnnotationTapped)==null||M.call(b,this),this.dispatchEvent(i));}};s.tag="scandit-barcode-ar-info-annotation";var H=s;export{m as a,N as b,U as c,H as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-6KQHES2D.js';import {a}from'./chunk-LKZBVQXD.js';import {Localization}from'@scandit/web-datacapture-core';import {normalizeLibraryLocation}from'@scandit/web-datacapture-core/build/js/private/Helper.js';function b(r){return Localization.getInstance().updateIfMissing({...a}),r!=null&&r.libraryLocation&&(r.libraryLocation=normalizeLibraryLocation(r.libraryLocation)),{moduleName:"BarcodeCapture",load:async n=>{var e,o;let a=n;return await a$1.create({...a,libraryLocation:(e=r==null?void 0:r.libraryLocation)!=null?e:a.libraryLocation,highEndBlurryRecognition:(o=r==null?void 0:r.highEndBlurryRecognition)!=null?o:false})}}}export{b as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-XSJEGOGN.js';import {a as a$1}from'./chunk-YQNNEW67.js';import {a as a$
|
|
1
|
+
import {a as a$2}from'./chunk-XSJEGOGN.js';import {a as a$1}from'./chunk-YQNNEW67.js';import {a as a$5,b as b$2}from'./chunk-OPL5NVVM.js';import {a as a$6,b as b$3}from'./chunk-RWDAYBTQ.js';import {b}from'./chunk-5DP5VNWQ.js';import {g as g$2}from'./chunk-3A6GSH7S.js';import {g as g$1}from'./chunk-DVHTYKDX.js';import {a as a$3}from'./chunk-DOA2Q3CZ.js';import {j,i,f,a,g,n}from'./chunk-4JEIREAU.js';import {c,e,a as a$4,b as b$1}from'./chunk-YBD5JYCX.js';import {Point}from'@scandit/web-datacapture-core';import {ScanditHTMLElement,defineCustomElements,html,Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var H=(i=>(i.ResizeButton="resizeButton",i.ZoomButton="zoomButton",i.TorchButton="torchButton",i.CloseButton="closeButton",i))(H||{}),I=1200,w=class w extends ScanditHTMLElement{constructor(){super(...arguments);this.resizeButtonTapListener=this.onResizeButtonTap.bind(this);this.zoomButtonTapListener=this.onZoomButtonTap.bind(this);this.torchButtonTapListener=this.onTorchButtonTap.bind(this);this.closeButtonTapListener=this.onCloseButtonTap.bind(this);this.pointerDownListener=this.onPointerDown.bind(this);this.longPressStartListener=this.onLongPressStart.bind(this);this.toolbarVisibilityChangeListener=this.onToolbarVisibilityChange.bind(this);this.longPressEndListener=this.onLongPressEnd.bind(this);this.dragEndListener=this.onDragEnd.bind(this);this.fadeOutAnimation=new Animation(new KeyframeEffect(this,[{opacity:1},{opacity:0}],{duration:500,fill:"both"}));this.replayFadeOutTimeout=null;this.longPressController=new b(this);}get visible(){return this.hasAttribute("visible")}set visible(t){this.toggleAttribute("visible",t);}get size(){return this.expanded?"expanded":"regular"}set size(t){var i;this.toggleAttribute("expanded",t==="expanded");let o=this.getNextTranslate();(i=this.dragController)==null||i.translateTo(o,false).then(async()=>{var n;return (n=this.dragController)==null?void 0:n.repositionIfOutOfBounds()});}get expanded(){return this.hasAttribute("expanded")}get[a](){var t;return Number((t=this.getAttribute(a))!=null?t:"1")}set[a](t){this.setAttribute(a,String(t));}get darkened(){return this.hasAttribute("darkened")}set darkened(t){this.toggleAttribute("darkened",t);}get orientation(){var t;return (t=this.getAttribute("orientation"))!=null?t:"portrait-primary"}set orientation(t){this.setAttribute("orientation",t);}get[g](){return this.hasAttribute(g)}set[g](t){this.toggleAttribute(g,t);}get[j](){return this.hasAttribute(j)}set[j](t){this.toggleAttribute(j,t);}get[i](){return this.hasAttribute(i)}set[i](t){this.toggleAttribute(i,t);}get[f](){return this.hasAttribute(f)}set[f](t){this.toggleAttribute(f,t);}get[n](){return this.hasAttribute(n)}set[n](t){this.toggleAttribute(n,t);}get cover(){return this.hasAttribute("cover")}set cover(t){this.toggleAttribute("cover",t);}get pressed(){return this.hasAttribute("pressed")}set pressed(t){this.toggleAttribute("pressed",t);}static create(){return defineCustomElements({[b$1]:w,[a$4]:a$3,[e]:a$2,[c]:a$1}),document.createElement(b$1)}repositionIfOutOfBounds(){var t;(t=this.dragController)==null||t.repositionIfOutOfBounds();}showToast(t,o,i){this.toast.show(t,o,i);}hideToast(){this.toast.hide();}zoomIn(){this.zoomButton&&(this[a]=2,this.zoomButton.textContent="2x",this.showToast("warning","2x zoom",1e3));}zoomOut(){this.zoomButton&&(this[a]=1,this.zoomButton.textContent="1x",this.showToast("info","1x zoom",1e3));}async fadeOut(){try{this.fadeOutAnimation.play(),await this.fadeOutAnimation.finished,this.visible=false;}catch(t){}}cancelFadeOut(){var t;(t=this.replayFadeOutTimeout)==null||t.stop(),this.fadeOutAnimation.cancel();}async rewindAnimation(){var t,o;(((t=this.replayFadeOutTimeout)==null?void 0:t.running)===true||this.fadeOutAnimation.playState!=="idle")&&(this.cancelFadeOut(),(o=this.replayFadeOutTimeout)==null||o.start());}translateTo(t){var o;(o=this.dragController)==null||o.translateTo(t,false);}render(){var t,o,i$1,n$1,a$1,l,b;this.innerHTML=html`
|
|
2
2
|
<spark-scan-view-toast></spark-scan-view-toast>
|
|
3
3
|
<div id="host"></div>
|
|
4
4
|
<div id="controls">
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-HLOYWQPM.js';import {a as a$1}from'./chunk-D26TRBZS.js';import {b}from'./chunk-EWNVCDJ6.js';import {CameraSettings,convertToPublicFrameData}from'@scandit/web-datacapture-core';import {warnMultithreadingUnavailable}from'@scandit/web-datacapture-core/build/js/private/utils/warnMultithreadingUnavailable.js';var o=class n{constructor(){this.skipSerialization=true;this.type="barcodeAr";this._isEnabled=true;this._context=null;this.listeners=new Set;this.privateListeners=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);}get context(){return this._context}static createRecommendedCameraSettings(){let e=new CameraSettings(b);return e.setProperty("grayScaleFrameReader",true),e}set context(e){this._context=e;}get allListeners(){return [...this.privateListeners,...this.listeners]}static async forContext(e,t){warnMultithreadingUnavailable();let r=new n;return r.feedback=await a.createDefaultBarcodeArFeedback(),r.settings=t,await(e==null?void 0:e.addMode(r)),r}isEnabled(){return this._isEnabled}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}set feedback(e){this._feedback=e;}get feedback(){return this._feedback}async setEnabled(e){var t;this._isEnabled=e,await this.workerCommand("barcodeArSetEnabled",{enabled:e}),await((t=this.context)==null?void 0:t.update([{type:"modeEnabled",newValue:e}],{updateContext:false}));}async applySettings(e){this.settings=e,await this.workerCommand("barcodeArApplySettings",{settings:e.toJSONObject()});}toJSONObject(){return {type:this.type,enabled:this._isEnabled,settings:this.settings.toJSONObject()}}async attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener),await this.workerCommand("barcodeArForSettings",{settings:this.settings.toJSONObject()});}async detachedFromContext(){var e;await this.workerCommand("barcodeArModeRemove",{}),(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}async start(){return this.workerCommand("barcodeArSearchStart",{})}async stop(){return this.workerCommand("barcodeArSearchStop",{})}async pause(){return this.workerCommand("barcodeArSearchPause",{})}async workerCommand(e,t){this.context!=null&&await this.context.workerCommand(e,t);}addPrivateListener(e){this.privateListeners.add(e);}removePrivateListener(e){this.privateListeners.delete(e);}async onWorkerMessage(e){var t;switch(e.type){case "barcodeArDidUpdateSession":{if(!this._isEnabled||!this._context)return;for(let r of this.allListeners)(t=r.didUpdateSession)==null||t.call(r,this,a$1.fromJSON(e.payload.session),convertToPublicFrameData(e.payload.frameData,this._context));break}}}};export{o as a};
|
package/build/js/index.d.ts
CHANGED
|
@@ -64,6 +64,7 @@ export { BarcodeArHighlight } from './ar/ui/organisms/BarcodeArHighlight.js';
|
|
|
64
64
|
export { BarcodeArInfoAnnotation, BarcodeArInfoAnnotationAnchor } from './ar/ui/organisms/BarcodeArInfoAnnotation.js';
|
|
65
65
|
export { BarcodeArPopoverAnnotation, BarcodeArPopoverAnnotationAnchor } from './ar/ui/organisms/BarcodeArPopoverAnnotation.js';
|
|
66
66
|
export { BarcodeArPopoverAnnotationButton } from './ar/ui/organisms/BarcodeArPopoverAnnotationButton.js';
|
|
67
|
+
export { BarcodeArResponsiveAnnotation } from './ar/ui/organisms/BarcodeArResponsiveAnnotation.js';
|
|
67
68
|
export { BarcodeArStatusIconAnnotation, BarcodeArStatusIconAnnotationAnchor } from './ar/ui/organisms/BarcodeArStatusIconAnnotation.js';
|
|
68
69
|
export { ArucoDictionary, ArucoDictionaryJSON } from './ArucoDictionary.js';
|
|
69
70
|
export { ArucoDictionaryPreset } from './ArucoDictionaryPreset.js';
|
|
@@ -78,4 +79,5 @@ import './spark/ui/SparkScanViewHandMode.js';
|
|
|
78
79
|
import './find/BarcodeFindFeedback.js';
|
|
79
80
|
import './find/BarcodeFindSession.js';
|
|
80
81
|
import '@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js';
|
|
82
|
+
import './ar/ui/organisms/private/BarcodeArAnnotationVariation.js';
|
|
81
83
|
import '@scandit/web-datacapture-core/build/js/private/Serializable.js';
|
package/build/js/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeArStatusIconAnnotation,a as BarcodeArStatusIconAnnotationAnchor}from'./chunks/chunk-
|
|
1
|
+
export{b as BarcodeArStatusIconAnnotation,a as BarcodeArStatusIconAnnotationAnchor}from'./chunks/chunk-P3AIUGBT.js';export{a as BarcodeStatusIconContainer}from'./chunks/chunk-RKWHXL4Z.js';export{a as SparkScanView}from'./chunks/chunk-4ONJXB3L.js';export{a as SparkScanViewState}from'./chunks/chunk-L6IZLBEM.js';export{a as SparkScanViewSettings}from'./chunks/chunk-ZQ3QRLEZ.js';export{a as SparkScanToastSettings}from'./chunks/chunk-BRRT6GC7.js';export{a as SparkScanSettings}from'./chunks/chunk-LN6NHJTD.js';export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'./chunks/chunk-P4F5WUAR.js';export{a as SparkScanPreviewBehavior}from'./chunks/chunk-DFK7AQTK.js';export{a as SparkScanScanningBehavior}from'./chunks/chunk-IMYBB4ZA.js';export{a as SparkScanScanningMode,b as SparkScanScanningModeDefault,c as SparkScanScanningModeTarget}from'./chunks/chunk-SZUPDKV5.js';export{a as BarcodeFindSettings}from'./chunks/chunk-7MDNYMWU.js';export{a as BarcodeFindView}from'./chunks/chunk-2R3AXF37.js';export{a as SparkScan}from'./chunks/chunk-XTOFHCOV.js';export{a as SparkScanSession}from'./chunks/chunk-XS6RV73B.js';export{a as BarcodeFind}from'./chunks/chunk-WYBHX6B2.js';export{a as BarcodeFindItem,c as BarcodeFindItemContent,b as BarcodeFindItemSearchOptions}from'./chunks/chunk-HTKUJZG2.js';export{a as BarcodeArSettings}from'./chunks/chunk-UZD5DJXU.js';export{a as BarcodeArView}from'./chunks/chunk-FVXCVRYF.js';export{a as BarcodeArResponsiveAnnotation}from'./chunks/chunk-5F4G55DT.js';export{b as BarcodeArCircleHighlight,a as BarcodeArCircleHighlightPreset}from'./chunks/chunk-4KRKVW3B.js';export{d as BarcodeArInfoAnnotation,a as BarcodeArInfoAnnotationAnchor}from'./chunks/chunk-TJDS5SWC.js';export{b as BarcodeArPopoverAnnotation,a as BarcodeArPopoverAnnotationAnchor}from'./chunks/chunk-DGF7ODRH.js';export{a as BarcodeArAnnotationTrigger}from'./chunks/chunk-MMMW73IQ.js';export{a as BarcodeArPopoverAnnotationButton}from'./chunks/chunk-2A2DLPAB.js';export{a as BarcodeArRectangleHighlight}from'./chunks/chunk-GBKJMQMZ.js';export{a as BarcodeArInfoAnnotationBodyComponent}from'./chunks/chunk-JSJOGGUQ.js';export{a as BarcodeArInfoAnnotationFooter}from'./chunks/chunk-PGZPJXZN.js';export{a as BarcodeArInfoAnnotationHeader}from'./chunks/chunk-AOYPDGOI.js';export{a as BarcodeArViewSettings}from'./chunks/chunk-LKQMBRKB.js';export{a as TrackedBarcodeView}from'./chunks/chunk-644ETSOC.js';export{a as barcodeCaptureLoader}from'./chunks/chunk-VND63O24.js';export{a as BarcodeAr}from'./chunks/chunk-XX7JKNC6.js';export{a as BarcodeArFeedback}from'./chunks/chunk-HLOYWQPM.js';export{a as BarcodeArSession}from'./chunks/chunk-D26TRBZS.js';export{a as BarcodeBatchSettings}from'./chunks/chunk-D66HVQKO.js';export{a as BarcodeCapture}from'./chunks/chunk-WYDK7FDG.js';export{a as BarcodeCaptureFeedback}from'./chunks/chunk-WPSMXGDG.js';export{b as BarcodeCaptureOverlay,a as BarcodeCaptureOverlayStyle}from'./chunks/chunk-5HCHOM4R.js';export{a as BarcodeCaptureSession}from'./chunks/chunk-OLFIL5XY.js';export{a as LocalizedOnlyBarcode}from'./chunks/chunk-MUX2WWWH.js';export{a as BarcodeCaptureSettings}from'./chunks/chunk-I3E2HP2L.js';export{a as ScanIntention}from'./chunks/chunk-NH3EDXZZ.js';export{a as ArucoDictionary}from'./chunks/chunk-DCUKY2F4.js';export{a as ArucoDictionaryPreset}from'./chunks/chunk-S5FTF2QC.js';export{a as ArucoMarker}from'./chunks/chunk-SSODGMFG.js';export{a as BarcodeBatch}from'./chunks/chunk-ZI75KHWU.js';export{a as BarcodeBatchAdvancedOverlay}from'./chunks/chunk-QBMLA2J7.js';export{b as BarcodeBatchBasicOverlay,a as BarcodeBatchBasicOverlayStyle}from'./chunks/chunk-VINHRCNE.js';export{a as SparkScanMiniPreviewSize}from'./chunks/chunk-MVDPXLVX.js';export{a as BarcodeFindViewSettings}from'./chunks/chunk-4PTIOBXM.js';export{a as SymbologyDescription}from'./chunks/chunk-OEYNGWOX.js';export{a as Range}from'./chunks/chunk-7SWSAHI5.js';export{a as SymbologySettings}from'./chunks/chunk-LBAL6OCN.js';export{a as BarcodeBatchSession}from'./chunks/chunk-IHTTMWUR.js';export{a as TrackedBarcode}from'./chunks/chunk-L2JLFSNM.js';export{e as Barcode,c as Checksum,d as CompositeFlag,b as CompositeType,a as Symbology}from'./chunks/chunk-R3B72E4T.js';export{a as StructuredAppendData}from'./chunks/chunk-IEE5MKEA.js';export{a as EncodingRange}from'./chunks/chunk-J4VFWBJ7.js';
|
package/build/js/moduleLoader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as barcodeCaptureLoader}from'./chunks/chunk-
|
|
1
|
+
export{a as barcodeCaptureLoader}from'./chunks/chunk-VND63O24.js';
|
package/build/js/spark/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanView}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScanView}from'../chunks/chunk-4ONJXB3L.js';export{a as SparkScanViewState}from'../chunks/chunk-L6IZLBEM.js';export{a as SparkScanViewSettings}from'../chunks/chunk-ZQ3QRLEZ.js';export{a as SparkScanToastSettings}from'../chunks/chunk-BRRT6GC7.js';export{a as SparkScanSettings}from'../chunks/chunk-LN6NHJTD.js';export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'../chunks/chunk-P4F5WUAR.js';export{a as SparkScanPreviewBehavior}from'../chunks/chunk-DFK7AQTK.js';export{a as SparkScanScanningBehavior}from'../chunks/chunk-IMYBB4ZA.js';export{a as SparkScanScanningMode,b as SparkScanScanningModeDefault,c as SparkScanScanningModeTarget}from'../chunks/chunk-SZUPDKV5.js';export{a as SparkScan}from'../chunks/chunk-XTOFHCOV.js';export{a as SparkScanSession}from'../chunks/chunk-XS6RV73B.js';export{a as SparkScanMiniPreviewSize}from'../chunks/chunk-MVDPXLVX.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanView}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanView}from'../../chunks/chunk-4ONJXB3L.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as SparkScanViewMiniPreview,a as SparkScanViewMiniPreviewButtonType}from'../../chunks/chunk-
|
|
1
|
+
export{b as SparkScanViewMiniPreview,a as SparkScanViewMiniPreviewButtonType}from'../../chunks/chunk-WXR7X3J5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanViewTriggerButton}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanViewTriggerButton}from'../../chunks/chunk-C3BYC73L.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanView}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanView}from'../../chunks/chunk-4ONJXB3L.js';export{a as SparkScanViewTriggerButton}from'../../chunks/chunk-C3BYC73L.js';export{a as SparkScanViewVisualFeedback}from'../../chunks/chunk-62I36ZHW.js';export{b as SparkScanViewMiniPreview,a as SparkScanViewMiniPreviewButtonType}from'../../chunks/chunk-WXR7X3J5.js';export{a as SparkScanViewToast}from'../../chunks/chunk-XSJEGOGN.js';export{a as SparkScanViewToolbar}from'../../chunks/chunk-YQNNEW67.js';export{a as SparkScanViewIcon}from'../../chunks/chunk-DOA2Q3CZ.js';export{a as SparkScanViewPresenter}from'../../chunks/chunk-RDEBUZMC.js';export{a as SparkScanViewStateManager}from'../../chunks/chunk-OTZPCIBD.js';export{a as SparkScanViewState}from'../../chunks/chunk-L6IZLBEM.js';export{a as SparkScanViewFeedbackManager}from'../../chunks/chunk-NKRL5HIU.js';export{a as SparkScanViewPreferenceManager}from'../../chunks/chunk-QCD3RIT4.js';export{a as SparkScanViewSettings}from'../../chunks/chunk-ZQ3QRLEZ.js';export{a as SparkScanToastSettings}from'../../chunks/chunk-BRRT6GC7.js';export{a as SparkScanMiniPreviewSize}from'../../chunks/chunk-MVDPXLVX.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCaptureWorkerManager}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCaptureWorkerManager}from'../chunks/chunk-6KQHES2D.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as WorkerMain}from'../chunks/chunk-
|
|
1
|
+
export{a as WorkerMain}from'../chunks/chunk-SYIVGMBU.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'../chunks/chunk-
|
|
1
|
+
import {a}from'../chunks/chunk-SYIVGMBU.js';new a(globalThis,{get:()=>globalThis.Module,set:e=>{globalThis.Module=e;}});function n(e){}export{n as InlineWorker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as DataCaptureEngine}from'../chunks/chunk-
|
|
1
|
+
export{a as DataCaptureEngine}from'../chunks/chunk-KY4LFBPK.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scandit/web-datacapture-barcode",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.5.0-beta.1",
|
|
4
4
|
"description": "Scandit Data Capture SDK for the Web",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -93,9 +93,9 @@
|
|
|
93
93
|
"test-ci-coverage": "jest --ci --coverage --silent"
|
|
94
94
|
},
|
|
95
95
|
"peerDependencies": {
|
|
96
|
-
"@scandit/web-datacapture-core": "7.
|
|
96
|
+
"@scandit/web-datacapture-core": "7.5.0-beta.1"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@types/emscripten": "
|
|
99
|
+
"@types/emscripten": "1.40.1"
|
|
100
100
|
}
|
|
101
101
|
}
|
|
Binary file
|
|
Binary file
|
package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default.42a9746ffe91.model
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|