@scandit/web-datacapture-barcode 7.1.0-beta.2 → 7.1.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/BarcodeBatch.js +1 -1
- package/build/js/BarcodeBatchBasicOverlay.js +1 -1
- package/build/js/BarcodeBatchSettings.js +1 -1
- package/build/js/BarcodeCapture.js +1 -1
- package/build/js/BarcodeCaptureOverlay.js +1 -1
- package/build/js/BarcodeCaptureSettings.js +1 -1
- package/build/js/Defaults.js +1 -1
- package/build/js/{SparkScanView-DEmQKYC3.d.ts → SparkScanView-LXH0ExAN.d.ts} +2 -0
- package/build/js/check/BarcodeCheck.js +1 -1
- package/build/js/check/BarcodeCheckFeedback.js +1 -1
- package/build/js/check/BarcodeCheckPresenter.js +1 -1
- package/build/js/check/BarcodeCheckSettings.js +1 -1
- package/build/js/check/BarcodeCheckView.d.ts +4 -2
- package/build/js/check/BarcodeCheckView.js +1 -1
- package/build/js/check/hashedId.d.ts +3 -2
- package/build/js/check/hashedId.js +1 -1
- package/build/js/chunks/chunk-3C4HMC5F.js +1 -0
- package/build/js/chunks/{chunk-WFXN545G.js → chunk-3I3FVXFK.js} +1 -1
- package/build/js/chunks/{chunk-MOV435I6.js → chunk-44HCLNRQ.js} +1 -1
- package/build/js/chunks/{chunk-52TEL5IL.js → chunk-45ESK6RO.js} +1 -1
- package/build/js/chunks/{chunk-2BSBY2XN.js → chunk-6IUKFY3D.js} +1 -1
- package/build/js/chunks/{chunk-DFWMCRAQ.js → chunk-7AIAIG5T.js} +2 -2
- package/build/js/chunks/chunk-ATSBKHNK.js +1 -0
- package/build/js/chunks/{chunk-L5FSK5S3.js → chunk-BDMG75S4.js} +1 -1
- package/build/js/chunks/{chunk-JBJLR6VZ.js → chunk-CGGRMJUB.js} +1 -1
- package/build/js/chunks/chunk-EB3IYU5V.js +1 -0
- package/build/js/chunks/chunk-ENVM4L4Z.js +2 -0
- package/build/js/chunks/{chunk-EH6LSUC6.js → chunk-EZI7OJEV.js} +1 -1
- package/build/js/chunks/{chunk-O7HKGUL6.js → chunk-FUS5WQC4.js} +1 -1
- package/build/js/chunks/chunk-G3LSLZYT.js +1 -0
- package/build/js/chunks/{chunk-ACPQETCY.js → chunk-GKYQONEA.js} +1 -1
- package/build/js/chunks/{chunk-JCFTGM54.js → chunk-HDKZXP5Y.js} +1 -1
- package/build/js/chunks/{chunk-Q7QP637B.js → chunk-HRHBXIPB.js} +1 -1
- package/build/js/chunks/{chunk-QT5IZEQ2.js → chunk-N7VOTJDF.js} +1 -1
- package/build/js/chunks/{chunk-T3O56T3W.js → chunk-NTBYC47J.js} +1 -1
- package/build/js/chunks/{chunk-UCRYM76Z.js → chunk-OGDQ76GD.js} +1 -1
- package/build/js/chunks/{chunk-QAOMM34T.js → chunk-PFYODZHW.js} +1 -1
- package/build/js/chunks/chunk-PL47B3H5.js +1 -0
- package/build/js/chunks/chunk-PWPSTL4C.js +1 -0
- package/build/js/chunks/{chunk-Q2SSZ52Z.js → chunk-Q6DVAVA5.js} +1 -1
- package/build/js/chunks/{chunk-TKQ5XNNP.js → chunk-Q6IBYUJQ.js} +1 -1
- package/build/js/chunks/{chunk-4X7YKFAF.js → chunk-QQUMOT3B.js} +1 -1
- package/build/js/chunks/{chunk-GOOVP4MZ.js → chunk-TCMZMAI3.js} +1 -1
- package/build/js/chunks/{chunk-Z4233S5W.js → chunk-UIE2K36Z.js} +1 -1
- package/build/js/chunks/chunk-WF7OHN7I.js +1 -0
- package/build/js/chunks/{chunk-V2UUOKFA.js → chunk-YAFD2FYD.js} +1 -1
- package/build/js/chunks/{chunk-BHVNYF7I.js → chunk-YPGRTA4N.js} +1 -1
- package/build/js/chunks/{chunk-5BTYZANK.js → chunk-Z53C3VA7.js} +1 -1
- package/build/js/chunks/chunk-ZY3JZELC.js +1 -0
- package/build/js/find/BarcodeFind.js +1 -1
- package/build/js/find/BarcodeFindFeedback.js +1 -1
- package/build/js/find/BarcodeFindPresenter.js +1 -1
- package/build/js/find/BarcodeFindSettings.js +1 -1
- package/build/js/find/BarcodeFindView.js +1 -1
- package/build/js/find/index.js +1 -1
- package/build/js/index.d.ts +1 -1
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/spark/SparkScan.d.ts +1 -0
- package/build/js/spark/SparkScan.js +1 -1
- package/build/js/spark/SparkScanBarcodeFeedback.js +1 -1
- package/build/js/spark/SparkScanOverlay.js +1 -1
- package/build/js/spark/SparkScanSettings.d.ts +3 -0
- package/build/js/spark/SparkScanSettings.js +1 -1
- package/build/js/spark/SparkScanTargetAimerViewfinder.js +1 -1
- package/build/js/spark/index.d.ts +1 -1
- package/build/js/spark/index.js +1 -1
- package/build/js/spark/ui/SparkScanView.d.ts +1 -1
- package/build/js/spark/ui/SparkScanView.js +1 -1
- package/build/js/spark/ui/SparkScanViewFeedbackManager.js +1 -1
- package/build/js/spark/ui/SparkScanViewMiniPreview.js +1 -1
- package/build/js/spark/ui/SparkScanViewPresenter.d.ts +2 -1
- package/build/js/spark/ui/SparkScanViewPresenter.js +1 -1
- package/build/js/spark/ui/SparkScanViewSettings.js +1 -1
- package/build/js/spark/ui/SparkScanViewTriggerButton.d.ts +1 -0
- package/build/js/spark/ui/SparkScanViewTriggerButton.js +1 -1
- package/build/js/spark/ui/SparkScanViewUiListener.d.ts +1 -1
- package/build/js/spark/ui/constants/constants.d.ts +2 -1
- package/build/js/spark/ui/constants/constants.js +1 -1
- package/build/js/spark/ui/index.d.ts +1 -1
- package/build/js/spark/ui/index.js +1 -1
- package/build/js/worker/BarcodeBatchMode.d.ts +1 -1
- package/build/js/worker/BarcodeCaptureMode.d.ts +1 -1
- package/build/js/worker/BarcodeCaptureWorkerManager.d.ts +1 -1
- package/build/js/worker/BarcodeCaptureWorkerManager.js +1 -1
- package/build/js/worker/BarcodeCheckMode.d.ts +1 -1
- package/build/js/worker/BarcodeFindMode.d.ts +1 -1
- package/build/js/worker/SparkScanMode.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/dataCapture.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/dataCaptureWorkerRelated.d.ts +1 -1
- package/build/js/worker/index.d.ts +1 -1
- package/package.json +2 -2
- 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-7G2KDE7D.js +0 -1
- package/build/js/chunks/chunk-AF2UZ65J.js +0 -1
- package/build/js/chunks/chunk-BP2XS7PR.js +0 -2
- package/build/js/chunks/chunk-CTAAWFQZ.js +0 -1
- package/build/js/chunks/chunk-K5KNOMBP.js +0 -1
- package/build/js/chunks/chunk-M72E3HI7.js +0 -1
- package/build/js/chunks/chunk-QTESUINX.js +0 -1
- package/build/js/chunks/chunk-W2TZOKNT.js +0 -1
- package/build/js/chunks/chunk-YMDDWM44.js +0 -1
- /package/build/js/chunks/{chunk-7O55MGB4.js → chunk-B6TRFCTV.js} +0 -0
- /package/build/js/chunks/{chunk-TC3DRH5D.js → chunk-HDL4B7UY.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-44HCLNRQ.js';import {TorchState,FrameSourceState,Camera}from'@scandit/web-datacapture-core';var h=(t=>(t.Started="started",t.Paused="paused",t.Stopped="stopped",t))(h||{}),c=class{constructor(e,i,t,s,o){this.viewState="paused";this.barcodeFindViewUiListener=null;this.torchState=TorchState.Off;this.sessionState=null;this.barcodeFindView=e,this.barcodeFind=t,this.context=i,this.viewSettings=s,this.cameraSettings=o,t.feedback=a.createWithOptions(this.viewSettings.soundEnabled,this.viewSettings.hapticEnabled);}async prepare(){await this.barcodeFind.setEnabled(!1),this.barcodeFind.addPrivateListener(this);let e=Camera.default;await this.context.setFrameSource(e),await this.context.frameSource.applySettings(this.cameraSettings),this.isTorchAvailable=await e.isTorchAvailable();}async dispose(){await this.context.removeMode(this.barcodeFind),this.barcodeFind.removePrivateListener(this);}async didPauseSearch(e){this.barcodeFindView.switchToPaused(Object.values(this.customerItemsListState),e);}async didStartSearch(){this.barcodeFindView.switchToStarted();}async didStopSearch(e){var i;(i=this.barcodeFindViewUiListener)==null||i.didTapFinishButton(e);}async onSetItemList(e){this.customerItemsListState=e.reduce((i,t)=>(i[t.searchOptions.barcodeData]=t,i),{}),this.barcodeFind.feedback.itemListUpdated.emit(),this.barcodeFindView.updateProgressBar(0,Object.values(this.customerItemsListState).length);}onDidUpdateSession(e,i,t){this.sessionState=i,this.barcodeFindView.updateProgressBar(this.sessionState.allFoundItems.length),this.barcodeFindView.renderDots(this.sessionState);}async onShutterButtonClicked(){this.viewState==="paused"||this.viewState==="stopped"?await this.startSearching():await this.pauseSearching();}async onTorchButtonClicked(){this.isTorchAvailable&&(await this.context.frameSource.setDesiredTorchState(this.torchState===TorchState.Off?TorchState.On:TorchState.Off),this.torchState=this.torchState===TorchState.Off?TorchState.On:TorchState.Off,this.barcodeFindView.toggleTorchIcon(this.torchState));}onDotClick(e){var t,s;let i=(t=this.sessionState)==null?void 0:t.trackedBarcodes[e];if(i!=null){let o=this.customerItemsListState[(s=i.barcode.data)!=null?s:""];this.barcodeFindView.moveCardOnTheFront(o);}}onFinishButtonClicked(){this.stopSearching();}onFindListUpdatedFeedback(){this.barcodeFind.feedback.itemListUpdated.emit();}onFeedback(){this.barcodeFind.feedback.found.emit(),this.barcodeFindView.setShutterButtonPulse(!0);}async pauseSearching(){var e;this.viewState="paused",await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Standby)),await this.barcodeFind.setEnabled(!1),await this.barcodeFind.pause(),this.barcodeFindView.setShutterButtonPulse(!1);}async startSearching(){var e;this.viewState="started",await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.On)),await this.barcodeFind.setEnabled(!0),await this.barcodeFind.start();}async stopSearching(){var e;this.viewState="stopped",await this.barcodeFind.setEnabled(!1),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Off)),await this.barcodeFind.stop(),this.barcodeFindView.setShutterButtonPulse(!1),this.sessionState=null;}};export{h as a,c as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-Q6IBYUJQ.js';import {a as a$1}from'./chunk-KQ3LRAYO.js';import {unknownErrorToString}from'@scandit/web-datacapture-core/build/js/private/utils/unknownErrorToString.js';import {WorkerMain}from'@scandit/web-datacapture-core/build/js/worker/index.js';var i=class extends WorkerMain{constructor(e,a$1){super(e,a$1),this.dataCaptureInstance=new a(a$1,{postMessage:this.postMessage.bind(this),getOffscreenCanvas:this.getOffscreenCanvas.bind(this)});}async respondWith(e,a,r){let d=null,t;try{t=r(),t instanceof Promise&&(t=await t);}catch(c){t=void 0,d=unknownErrorToString(c);}let s={type:"workerTaskId",command:e,id:a,payload:this.hasPayload(t)?t.payload:void 0};d!=null&&(s.error=d),this.postMessage(s,this.hasTransferables(t)?t.transferables:[]);}onMessage(e){switch(e.data.command){case"sparkScanEmitErrorFeedback":{let{data:a}=e;return this.respondWith(a.command,a.id,()=>{this.dataCaptureInstance.sparkScanMode.emitErrorFeedback(a.shouldRemoveBrush);}),!0}case"sparkScanOverlayReadyForDraw":{let{data:a}=e;return this.respondWith(a.command,a.id,()=>{this.dataCaptureInstance.sparkScanMode.overlayReadyForDraw();}),!0}case"sparkScanAnalyticsManagerPropertyChanged":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.sparkScanMode.analyticsManagerPropertyChanged(a.property);}),!0}case"barcodeFindForSettings":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.forSettings(a.settings)),!0}case"barcodeFindModeRemove":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.removeMode()),!0}case"barcodeFindSearchStart":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.start();}),!0;case"barcodeFindSearchPause":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.pause();}),!0;case"barcodeFindSearchStop":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.stop();}),!0;case"barcodeFindSetItemList":{let{data:a}=e;return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setItemList(a.itemList);}),!0}case"barcodeFindSetEnabled":{let{data:a}=e;return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeFindMode.setEnabled(a.enabled);}),!0}case"barcodeFindApplySettings":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeFindMode.applySettings(a.settings)),!0}case"barcodeFindAddBasicOverlay":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.addBasicOverlay();}),!0}case"barcodeFindRemoveBasicOverlay":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.removeBasicOverlay();}),!0}case"barcodeFindUpdateBasicOverlay":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeFindMode.updateBasicOverlay(a.jsonOverlay);}),!0}case"barcodeFindSetTransformerFunction":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>{let r=a$1(a.functionAsString);this.dataCaptureInstance.barcodeFindMode.setTransformerFunction(r);}),!0}case"barcodeCheckForSettings":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeCheckMode.forSettings(a.settings)),!0}case"barcodeCheckModeRemove":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>this.dataCaptureInstance.barcodeCheckMode.removeMode()),!0}case"barcodeCheckSearchStart":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeCheckMode.start();}),!0;case"barcodeCheckSearchPause":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeCheckMode.pause();}),!0;case"barcodeCheckSearchStop":return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeCheckMode.stop();}),!0;case"barcodeCheckSetEnabled":{let{data:a}=e;return this.respondWith(e.data.command,e.data.id,()=>{this.dataCaptureInstance.barcodeCheckMode.setEnabled(a.enabled);}),!0}case"barcodeCheckApplySettings":{let{data:a}=e;return this.respondWith(a.command,a.id,async()=>{this.dataCaptureInstance.barcodeCheckMode.applySettings(a.settings);}),!0}default:return super.onMessage(e)}}};export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {b}from'./chunk-3I3FVXFK.js';import {RadiusLocationSelection,NumberWithUnit}from'@scandit/web-datacapture-core';var S=class{constructor(){this.codeDuplicateFilter=b.SparkScan.SparkScanSettings.codeDuplicateFilter;this.scanIntention="manual";this._scanIntention=this.scanIntention;this.desiredScanIntention=this.scanIntention;this.locationSelection=new RadiusLocationSelection(new NumberWithUnit(b.SparkScan.SparkScanSettings.locationSelection.radius,b.SparkScan.SparkScanSettings.locationSelection.unit));this.properties={};this.symbologies={};return this.enableTargetModeHiddenProperties(1),new Proxy(this,{get:(e,t,o)=>t==="scanIntention"?e._scanIntention:Reflect.get(e,t,o),set:(e,t,o,i)=>(t==="scanIntention"&&(e._scanIntention=o,e.desiredScanIntention=o),Reflect.set(e,t,o,i))})}get enabledSymbologies(){return Object.keys(this.symbologies).filter(t=>{var o;return (o=this.symbologies[t])==null?void 0:o.isEnabled})}settingsForSymbology(e){if(!this.symbologies[e]){let t=b.SymbologySettings[e];t._symbology=e,this.symbologies[e]=t;}return this.symbologies[e]}setProperty(e,t){this.properties[e]=t;}getProperty(e){return this.properties[e]}enableSymbologies(e){for(let t of e)this.enableSymbology(t,!0);}enableSymbology(e,t){this.settingsForSymbology(e).isEnabled=t;}toJSONObject(){var o;let e={},t=Object.keys(this.symbologies);return {codeDuplicateFilter:this.codeDuplicateFilter,locationSelection:this.locationSelection.toJSONObject(),properties:{...this.properties},symbologies:t.reduce((i,r)=>{var a;let s=(a=this.symbologies[r])==null?void 0:a.toJSONObject();return s&&(i[r]=s),i},e),scanIntention:(o=this.scanIntention)!=null?o:null}}setScanIntentionForTargetMode(e){this._scanIntention=e?"manual":this.desiredScanIntention;}enableTargetModeHiddenProperties(e){var o;let t=(o={1:b.SparkScan.SparkScanSettings.hiddenProperties.zoom1x,2:b.SparkScan.SparkScanSettings.hiddenProperties.zoom2x}[e])!=null?o:{};for(let[i,r]of Object.entries(t))this.setProperty(i,r);}disableTargetModeHiddenProperties(){let e={...b.SparkScan.SparkScanSettings.hiddenProperties.zoom1x,...b.SparkScan.SparkScanSettings.hiddenProperties.zoom2x};for(let[t]of Object.entries(e))this.setProperty(t,void 0);}};export{S as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a,b as b$1}from'./chunk-E5OIMFVX.js';import {b}from'./chunk-
|
|
1
|
+
import {a,b as b$1}from'./chunk-E5OIMFVX.js';import {b}from'./chunk-3I3FVXFK.js';import {Vibration,Feedback,Brush,Color}from'@scandit/web-datacapture-core';var r=class{constructor(e,c){this.visualFeedbackColor=e,this.feedback=c;}static defaultSuccessFeedback(){let e=Vibration.withPattern([300]);return new Feedback(e,a)}static defaultErrorFeedback(){let e=Vibration.withPattern(b.SparkScan.SparkScanFeedback.errorVibrationPattern);return new Feedback(e,b$1)}static defaultSuccessBrush(){return new Brush(Color.fromRGBA(0,0,0,0),Color.fromRGBA(250,250,250,1),3)}static defaultErrorBrush(){return new Brush(Color.fromRGBA(0,0,0,0),Color.fromRGBA(250,68,70,1),1)}static success(){return new u}},k=class extends r{constructor(e,c,a,s,o){super(a!=null?a:Color.fromRGBA(250,68,70,1),o!=null?o:r.defaultErrorFeedback()),this.message=e,this.resumeCapturingDelay=c,this.brush=s!=null?s:r.defaultErrorBrush();}toJSONObject(){return {type:"error",barcodeFeedback:{feedback:this.feedback.toJSONObject(),message:this.message,resumeCapturingDelay:this.resumeCapturingDelay,visualFeedbackColor:this.visualFeedbackColor.toJSON(),brush:this.brush.toJSONObject()}}}},u=class extends r{constructor(e,c,a){super(e!=null?e:Color.fromRGBA(46,193,206,1),a!=null?a:r.defaultSuccessFeedback()),this.brush=c!=null?c:r.defaultSuccessBrush();}toJSONObject(){return {type:"success",barcodeFeedback:{visualFeedbackColor:this.visualFeedbackColor.toJSON(),feedback:this.feedback.toJSONObject(),brush:this.brush.toJSONObject()}}}};export{r as a,k as b,u as c};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-W3YHPFLY.js';import {b}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-W3YHPFLY.js';import {b}from'./chunk-3I3FVXFK.js';import {Brush}from'@scandit/web-datacapture-core';var h=(a=>(a.Frame="frame",a.Dot="dot",a))(h||{}),o=class s{constructor(){this.type="barcodeTrackingBasic";this._style=b.BarcodeBatch.BarcodeBatchBasicOverlay.defaultStyle;this._shouldShowScanAreaGuides=!1;this._brushesForBarcodes=new Map;}get style(){return this._style}get listener(){return this._listener}set listener(e){this._listener=e;}get brush(){return this._brush}static async withBarcodeBatch(e){return s.withBarcodeBatchForView(e,null)}static async withBarcodeBatchForView(e,a){return this.withBarcodeBatchForViewWithStyle(e,a,b.BarcodeBatch.BarcodeBatchBasicOverlay.defaultStyle)}static async withBarcodeBatchForViewWithStyle(e,a$1,c){let r=new s;return r.barcodeBatch=e,r._style=c,r._brush=new Brush(b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.fillColor,b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.strokeColor,b.BarcodeBatch.BarcodeBatchBasicOverlay.styles[r.style].DefaultBrush.strokeWidth),a$1&&await a$1.addOverlay(r),r.privateListener=new a(r),e.addPrivateListener(r.privateListener),r}async setBrush(e){this._brush=e,await this.barcodeBatch.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}async setShouldShowScanAreaGuides(e){this._shouldShowScanAreaGuides=e,await this.barcodeBatch.notifyContext();}async setBrushForTrackedBarcode(e,a){this._brushesForBarcodes.set(a.identifier,e),await this.barcodeBatch.notifyContext();}async clearTrackedBarcodeBrushes(){this._brushesForBarcodes.clear(),await this.barcodeBatch.notifyContext();}toJSONObject(){return {type:this.type,brush:this._brush.toJSONObject(),shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,style:this._style,brushesForBarcodes:[...this._brushesForBarcodes.entries()].reduce((e,[a,c])=>(e[a]=c.toJSONObject(),e),{})}}};export{h as a,o as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$
|
|
1
|
+
import {a as a$3}from'./chunk-W7TZ36EI.js';import {a as a$2,b as b$2}from'./chunk-HTKUJZG2.js';import {a}from'./chunk-44HCLNRQ.js';import {a as a$1}from'./chunk-BGXJMGXV.js';import {b as b$1}from'./chunk-3I3FVXFK.js';import {CameraSettings,convertToPublicFrameData}from'@scandit/web-datacapture-core';var b=class u{constructor(){this.feedback=a.createDefaultFeedback();this.skipSerialization=!0;this.type="barcodeFind";this._isEnabled=!0;this._context=null;this.listeners=new Set;this.privateListeners=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);this._transformer=null;}static get recommendedCameraSettings(){let e=new CameraSettings(b$1.BarcodeFind.CameraSettings.settings);for(let[r,a]of Object.entries(b$1.BarcodeFind.CameraSettings.hiddenProperties))e.setProperty(r,a);return e}get context(){return this._context}get allListeners(){return [...this.privateListeners,...this.listeners]}static async forSettings(e){a$1();let r=new u;return r.settings=e,r}isEnabled(){return this._isEnabled}async setEnabled(e){this._isEnabled=e,await this.workerCommand("barcodeFindSetEnabled",{enabled:e});}async applySettings(e){this.settings=e,await this.workerCommand("barcodeFindApplySettings",{settings:e.toJSONObject()});}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}async setItemList(e){var r;for(let a of this.privateListeners)(r=a.onSetItemList)==null||r.call(a,e);return this.workerCommand("barcodeFindSetItemList",{itemList:e.map(a=>a.toJSONObject())})}async setBarcodeTransformer(e){var r;return this._transformer=e,this.workerCommand("barcodeFindSetTransformerFunction",{functionAsString:(r=this._transformer)==null?void 0:r.transformBarcodeData.toString()})}async start(){return this.workerCommand("barcodeFindSearchStart",{})}async stop(){return this.workerCommand("barcodeFindSearchStop",{})}async pause(){return this.workerCommand("barcodeFindSearchPause",{})}toJSONObject(){return {type:this.type,enabled:this.isEnabled(),settings:this.settings.toJSONObject()}}async workerCommand(e,r){this.context!=null&&await this.context.workerCommand(e,r);}async attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener),await this.workerCommand("barcodeFindForSettings",{settings:this.settings.toJSONObject()});}async detachedFromContext(){var e;await this.workerCommand("barcodeFindModeRemove",{}),(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}async onWorkerMessage(e){var r,a,c;switch(e.type){case"barcodeFindDidUpdateSession":{if(this._context==null)return;for(let t of this.allListeners)(r=t.onDidUpdateSession)==null||r.call(t,this,a$3.fromJSON(e.payload.session),convertToPublicFrameData(e.payload.frameData,this._context));break}case"barcodeFindSearchPaused":{for(let t of this.allListeners){let i=e.payload.foundItems.map(o=>new a$2(new b$2(o),null));t.didPauseSearch(i);}break}case"barcodeFindSearchStarted":{for(let t of this.allListeners)t.didStartSearch();break}case"barcodeFindSearchStopped":{for(let t of this.allListeners){let i=e.payload.foundItems.map(o=>new a$2(new b$2(o),null));t.didStopSearch(i);}break}case"barcodeFindListUpdatedFeedback":{for(let t of this.allListeners)(a=t.onFindListUpdatedFeedback)==null||a.call(t);break}case"barcodeFindFeedback":{for(let t of this.allListeners)(c=t.onFeedback)==null||c.call(t);break}}}addPrivateListener(e){this.privateListeners.add(e);}removePrivateListener(e){this.privateListeners.delete(e);}};export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-BRRT6GC7.js';import {b as b$1}from'./chunk-SZUPDKV5.js';import {b}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-BRRT6GC7.js';import {b as b$1}from'./chunk-SZUPDKV5.js';import {b}from'./chunk-3I3FVXFK.js';var n=class{constructor(){this.defaultHandMode=b.SparkScan.SparkScanViewSettings.defaultHandMode;this.defaultScanningMode=new b$1("single","default");this.defaultTorchState=b.SparkScan.SparkScanViewSettings.defaultTorchState;this.defaultMiniPreviewSize=b.SparkScan.SparkScanViewSettings.defaultMiniPreviewSize;this.defaultCameraPosition=b.SparkScan.SparkScanViewSettings.defaultCameraPosition;this.hapticEnabled=b.SparkScan.SparkScanViewSettings.hapticEnabled;this.holdToScanEnabled=b.SparkScan.SparkScanViewSettings.holdToScanEnabled;this.inactiveStateTimeout=b.SparkScan.SparkScanViewSettings.inactiveStateTimeout;this.soundEnabled=b.SparkScan.SparkScanViewSettings.soundEnabled;this.toastSettings=new a;this.triggerButtonCollapseTimeout=b.SparkScan.SparkScanViewSettings.triggerButtonCollapseTimeout;this.visualFeedbackEnabled=b.SparkScan.SparkScanViewSettings.visualFeedbackEnabled;this.zoomFactorIn=b.SparkScan.SparkScanViewSettings.zoomFactorIn;this.zoomFactorOut=b.SparkScan.SparkScanViewSettings.zoomFactorOut;}toJSONObject(){return {defaultHandMode:this.defaultHandMode,defaultScanningMode:this.defaultScanningMode.toJSONObject(),defaultTorchState:this.defaultTorchState,defaultMiniPreviewSize:this.defaultMiniPreviewSize,defaultCameraPosition:this.defaultCameraPosition,hapticEnabled:this.hapticEnabled,holdToScanEnabled:this.holdToScanEnabled,inactiveStateTimeout:this.inactiveStateTimeout,soundEnabled:this.soundEnabled,toastSettings:this.toastSettings.toJSONObject(),triggerButtonCollapseTimeout:this.triggerButtonCollapseTimeout,visualFeedbackEnabled:this.visualFeedbackEnabled,zoomFactorIn:this.zoomFactorIn,zoomFactorOut:this.zoomFactorOut}}};export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-ENVM4L4Z.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?void 0:r.libraryLocation)!=null&&(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:!1})}}}export{b as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-3I3FVXFK.js';var i=class{constructor(){this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(e=>this.symbologies[e].isEnabled)}settingsForSymbology(e){if(!this.symbologies[e]){let o=b.SymbologySettings[e];o._symbology=e,this.symbologies[e]=o;}return this.symbologies[e]}setProperty(e,o){this.properties[e]=o;}getProperty(e){return this.properties[e]}enableSymbologies(e){for(let o of e)this.enableSymbology(o,!0);}enableSymbology(e,o){this.settingsForSymbology(e).isEnabled=o;}toJSONObject(){return {properties:this.properties,symbologies:Object.keys(this.symbologies).reduce((e,o)=>(e[o]=this.symbologies[o].toJSONObject(),e),{})}}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a,b}from'./chunk-E5OIMFVX.js';import {b as b$1}from'./chunk-
|
|
1
|
+
import {a,b}from'./chunk-E5OIMFVX.js';import {b as b$1}from'./chunk-3I3FVXFK.js';import {Vibration,Feedback}from'@scandit/web-datacapture-core';var o=Vibration.withPattern([40]),c=class b$2{constructor(i,t){this.soundEnabled=!0;this.hapticEnabled=!0;this.tapVibration=this.hapticEnabled?o:null;this.tapFeedback=new Feedback(this.tapVibration,null);this.successSound=this.soundEnabled?a:null;this.successVibration=this.hapticEnabled?o:null;this.successFeedback=new Feedback(this.successVibration,this.successSound);this.errorSound=this.soundEnabled?b:null;this.noFeedback=new Feedback(null,null);this.errorVibration=this.hapticEnabled?Vibration.withPattern(b$1.SparkScan.SparkScanFeedback.errorVibrationPattern):null;this.errorFeedback=new Feedback(this.errorVibration,this.errorSound);this.soundEnabled=i,this.hapticEnabled=t;}static withDefaults(i,t){return new b$2(i,t)}setSoundEnabled(i){this.soundEnabled=i,this.successSound=i?a:null,this.successFeedback=new Feedback(this.successVibration,this.successSound),this.errorSound=i?b:null,this.errorFeedback=new Feedback(this.errorVibration,this.errorSound);}setHapticEnabled(i){this.hapticEnabled=i,this.tapVibration=i?o:null,this.tapFeedback=new Feedback(this.tapVibration,null),this.successVibration=i?Vibration.defaultVibration:null,this.successFeedback=new Feedback(this.successVibration,this.successSound),this.errorVibration=i?Vibration.withPattern(b$1.SparkScan.SparkScanFeedback.errorVibrationPattern):null,this.errorFeedback=new Feedback(this.errorVibration,this.errorSound);}emitTapFeedback(){this.tapFeedback.emit();}emitBarcodeFeedback(i){var l,u;new Feedback(this.hapticEnabled&&(l=i==null?void 0:i.feedback.vibration)!=null?l:null,this.soundEnabled&&(u=i==null?void 0:i.feedback.sound)!=null?u:null).emit();}};export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c={"scandit-datacapture-sdk-barcode-pthreads.wasm":{bytes:6796889},"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":{bytes:6739645},"scandit-datacapture-sdk-barcode-simd.wasm":{bytes:6616640},"scandit-datacapture-sdk-barcode.wasm":{bytes:6674466}};export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var d=new TextEncoder;function m(n){var s;let i=(s=n.barcode.data)!=null?s:n.barcode.rawData,g=n.barcode.symbology,r=d.encode(i),t=d.encode(g),o=Math.min(r.length,t.length),a=new Uint8Array(o);for(let e=0;e<o;e++)a[e]=r[e]^t[e];let c="";for(let e of a)c+=String.fromCodePoint(e);return btoa(c).replace(/=+$/,"_")}export{m as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-Z53C3VA7.js';import {b}from'./chunk-3I3FVXFK.js';import {Brush}from'@scandit/web-datacapture-core';var s=class o{constructor(){this.type="sparkScan";this._shouldShowScanAreaGuides=!1;this._shouldRemoveLocationsAfterScan=!0;this._shouldDrawViewfinder=!1;this._style=b.SparkScan.SparkScanOverlay.defaultStyle;this._viewfinder=new a;}get style(){return this._style}static async withSparkScanForView(a,r){let t=new o;return t.sparkScan=a,await t.setBrush(new Brush(b.SparkScan.SparkScanOverlay.DefaultBrush.fillColor,b.SparkScan.SparkScanOverlay.DefaultBrush.strokeColor,b.SparkScan.SparkScanOverlay.DefaultBrush.strokeWidth)),r&&await r.addOverlay(t),t}setRadius(a){this._viewfinder.radius=a;}getBrush(){return this._brush}async setBrush(a){this._brush=a,await this.sparkScan.notifyContext();}async overlayReadyForDraw(){await this.sparkScan.workerCommand("sparkScanOverlayReadyForDraw",{});}async setErrorBrush(a){this._errorBrush=a,await this.sparkScan.notifyContext();}async setShouldShowScanAreaGuides(a){this._shouldShowScanAreaGuides=a,await this.sparkScan.notifyContext();}async setShouldRemoveLocationsAfterScan(a){this._shouldRemoveLocationsAfterScan=a,await this.sparkScan.notifyContext();}async setShouldDrawViewfinder(a){this._shouldDrawViewfinder=a,await this.sparkScan.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}shouldRemoveLocationsAfterScan(){return this._shouldRemoveLocationsAfterScan}toJSONObject(){var a,r;return {type:this.type,brush:this._brush.toJSONObject(),errorBrush:(r=(a=this._errorBrush)==null?void 0:a.toJSONObject())!=null?r:this._brush.toJSONObject(),shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,shouldRemoveLocationsAfterScan:this._shouldRemoveLocationsAfterScan,viewfinder:this._viewfinder.toJSONObject(),style:this.style,shouldDrawViewfinder:this._shouldDrawViewfinder}}};export{s as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$4}from'./chunk-FYHMFCYX.js';import {a as a$3}from'./chunk-NSBGJLIO.js';import {a as a$2}from'./chunk-LTNZJEG4.js';import {a as a$1}from'./chunk-2ZSOWJ2F.js';import {a}from'./chunk-WVIC3JWX.js';import {a as a$5}from'./chunk-
|
|
1
|
+
import {a as a$4}from'./chunk-FYHMFCYX.js';import {a as a$3}from'./chunk-NSBGJLIO.js';import {a as a$2}from'./chunk-LTNZJEG4.js';import {a as a$1}from'./chunk-2ZSOWJ2F.js';import {a}from'./chunk-WVIC3JWX.js';import {a as a$5}from'./chunk-PL47B3H5.js';import {DataCaptureEngine}from'@scandit/web-datacapture-core/build/js/worker/index.js';var c=class extends DataCaptureEngine{constructor(e,r){super(e,r);}getModeDeserializers(){this.barcodeCaptureMode=new a(this,this.Module,this.workerFunctions),this.barcodeBatchMode=new a$1(this,this.Module,this.workerFunctions),this.sparkScanMode=new a$2(this,this.Module,this.workerFunctions),this.barcodeFindMode=new a$3(this,this.Module,this.workerFunctions),this.barcodeCheckMode=new a$4(this,this.Module,this.workerFunctions);let e=super.getModeDeserializers();return e.push_back(this.barcodeCaptureMode.getCaptureDeserializer()),e.push_back(this.barcodeBatchMode.getBatchDeserializer()),e.push_back(this.sparkScanMode.getSparkScanDeserializer()),e}getWasmSideModuleFileName(){return ""}getWasmCoreFileName(e,r){return r?e?"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":"scandit-datacapture-sdk-barcode-pthreads.wasm":e?"scandit-datacapture-sdk-barcode-simd.wasm":"scandit-datacapture-sdk-barcode.wasm"}getWasmCoreExpectedHash(e,r){return r?e?"cfb47d912a19974393e3daedd7799f3e7b219700dbcf830031770af09ba1a116":"d4fcda637ec2b306040f4f36f487e952c07ba2d3bfad31dc0e2d8445cdd85b02":e?"a1dde610d88a06391a5ac7fb07623d3f21c3a1e9e5510d179e2d4174c24295c0":"db18616364305f303ebab1150a7d02be193fa6529d7d72201daaedbbffdcd95b"}getWasmMetadata(){return a$5}};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-FRG4ACMI.js';import {b}from'./chunk-LXROKZUG.js';import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-FRG4ACMI.js';import {b}from'./chunk-LXROKZUG.js';import {a as a$1}from'./chunk-B6TRFCTV.js';import {a}from'./chunk-BGXJMGXV.js';import {CameraSettings,convertToPublicFrameData}from'@scandit/web-datacapture-core';var c=class n{constructor(){this.skipSerialization=!0;this.type="barcodeCheck";this._isEnabled=!0;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",!0),e}set context(e){this._context=e;}get allListeners(){return [...this.privateListeners,...this.listeners]}static async forContext(e,a$2){a();let t=new n;return t.feedback=await a$1.createDefaultBarcodeCheckFeedback(),t.settings=a$2,await(e==null?void 0:e.addMode(t)),t}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){this._isEnabled=e,await this.workerCommand("barcodeCheckSetEnabled",{enabled:e});}async applySettings(e){this.settings=e,await this.workerCommand("barcodeCheckApplySettings",{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("barcodeCheckForSettings",{settings:this.settings.toJSONObject()});}async detachedFromContext(){var e;await this.workerCommand("barcodeCheckModeRemove",{}),(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}async start(){return this.workerCommand("barcodeCheckSearchStart",{})}async stop(){return this.workerCommand("barcodeCheckSearchStop",{})}async pause(){return this.workerCommand("barcodeCheckSearchPause",{})}async workerCommand(e,a){this.context!=null&&await this.context.workerCommand(e,a);}addPrivateListener(e){this.privateListeners.add(e);}removePrivateListener(e){this.privateListeners.delete(e);}async onWorkerMessage(e){var a;switch(e.type){case"barcodeCheckDidUpdateSession":{if(!this._isEnabled||!this._context)return;for(let t of this.allListeners)(a=t.didUpdateSession)==null||a.call(t,this,a$2.fromJSON(e.payload.session),convertToPublicFrameData(e.payload.frameData,this._context));break}}}};export{c as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {a as a$7}from'./chunk-QPNMXE7H.js';import {b}from'./chunk-
|
|
1
|
+
import {a as a$7}from'./chunk-QPNMXE7H.js';import {b as b$1}from'./chunk-HQL4OJUZ.js';import {a}from'./chunk-X2U6LCRU.js';import {b}from'./chunk-ZDBP2TPZ.js';import {a as a$6}from'./chunk-OXLBBRZT.js';import {a as a$8}from'./chunk-K3EIYQPY.js';import {a as a$2}from'./chunk-VI6FIL4E.js';import {a as a$4}from'./chunk-HRHBXIPB.js';import {a as a$5}from'./chunk-POONUNDO.js';import {b as b$2}from'./chunk-EZI7OJEV.js';import {a as a$1}from'./chunk-FCUTPMMU.js';import {a as a$3}from'./chunk-I53W7VSB.js';import {b as b$3}from'./chunk-3I3FVXFK.js';import {Anchor,Localization,DataCaptureView,Size,Point}from'@scandit/web-datacapture-core';import {ShutterButton}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/ShutterButton.js';import {ScanditHTMLElement}from'@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js';import {defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js';import {html}from'@scandit/web-datacapture-core/build/js/private/utils/html.js';var d={FinishButton:a$2.tag,ShutterButton:ShutterButton.tag,ProgressBarWithLabel:a.tag,CardListContainer:b$1.tag,TorchIconButton:a$1.tag},c=class c extends ScanditHTMLElement{constructor(){super(...arguments);this.shouldShowCarousel=!0;this.shouldShowPauseButton=!0;this.shouldShowFinishButton=!0;this.shouldShowProgressBar=!0;this.shouldShowTorchControl=!1;this.torchControlPosition=Anchor.TopLeft;this.textForItemListUpdatedWhenPausedHint=null;this.textForItemListUpdatedHint=null;this.textForTapShutterToResumeSearchHint=null;this.textForTapShutterToPauseScreenHint=null;this.textForMoveCloserToBarcodesHint=null;this.textForPointAtBarcodesToSearchHint=null;this.textForAllItemsFoundSuccessfullyHint=null;this.textForCollapseCardsButton=Localization.getInstance().get("barcode.find.view.textForCollapseCardsButton");this.barcodeFindViewUiListener=null;this.shutterButton=null;this.finishButton=null;this.progressBar=null;this.cardList=null;this.onShutterButtonClickedHandler=this.onShutterButtonClicked.bind(this);this.onFinishButtonClickedHandler=this.onFinishButtonClicked.bind(this);this.onTorchButtonClickedHandler=this.onTorchButtonClicked.bind(this);this.torchIconButton=null;this.onDotClickHandler=this.onDotClick.bind(this);}get camera(){return this.presenter.context.frameSource}static async createWithSettings(t,o,i,s,r){let e=document.createElement(c.tag);return e.barcodeFindViewSettings=s,e.layout=b.create(),e.layout.innerHTML=html`
|
|
2
2
|
<${a.tag} slot="progress" value="0" max="1" ${e.shouldShowProgressBar?"":"hidden"}></${a.tag}>
|
|
3
3
|
<${a$1.tag} slot="top-controls-left" ${e.shouldShowTorchControl?"":"hidden"}></${a$1.tag}>
|
|
4
4
|
<${b$1.tag} slot="card-list" hidden text-for-collapse-cards-button=${e.textForCollapseCardsButton}></${b$1.tag}>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-3I3FVXFK.js';var i=class{constructor(){this.properties={};this.symbologies={};}get enabledSymbologies(){return Object.keys(this.symbologies).filter(e=>this.symbologies[e].isEnabled)}settingsForSymbology(e){if(!this.symbologies[e]){let o=b.SymbologySettings[e];o._symbology=e,this.symbologies[e]=o;}return this.symbologies[e]}setProperty(e,o){this.properties[e]=o;}getProperty(e){return this.properties[e]}enableSymbologies(e){for(let o of e)this.enableSymbology(o,!0);}enableSymbology(e,o){this.settingsForSymbology(e).isEnabled=o;}toJSONObject(){return {properties:this.properties,symbologies:Object.keys(this.symbologies).reduce((e,o)=>(e[o]=this.symbologies[o].toJSONObject(),e),{})}}};export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=500,n=16,t=32,o=400;export{e as a,n as b,t as c,o as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-B6TRFCTV.js';import {TorchState,isCameraFrameSource,Camera,FrameSourceState,CameraPosition}from'@scandit/web-datacapture-core';var h=class{constructor(e,t,c,n,d){this.torchState=TorchState.Off;this.cameraSupportMap=new Map;this.zoomFactor=1;this.view=e,this.context=t,this.barcodeCheck=c,this.viewSettings=n,this.cameraSettings=d;}get currentCamera(){if(isCameraFrameSource(this.context.frameSource))return this.context.frameSource;throw new Error("The current frame source is not a Camera")}async prepare(){await this.barcodeCheck.setEnabled(!1),this.barcodeCheck.feedback=await a.createWithOptions(!0,!0),this.barcodeCheck.addPrivateListener(this);let e=Camera.atPosition(this.viewSettings.defaultCameraPosition);await this.context.setFrameSource(e),await this.currentCamera.applySettings(this.cameraSettings),await this.currentCamera.switchToDesiredState(FrameSourceState.Standby),this.zoomFactor=this.currentCamera.settings.zoomFactor,this.view.changeZoomButtonIcon(this.zoomFactor);}async dispose(){var e;this.view.deleteAllViews(),await this.context.removeMode(this.barcodeCheck),this.barcodeCheck.removePrivateListener(this),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Off));}async startSearching(){var e;this.view.deleteAllViews(),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.On)),await this.barcodeCheck.setEnabled(!0),await this.barcodeCheck.start();}async stopSearching(){var e;this.view.deleteAllViews(),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Off)),await this.barcodeCheck.setEnabled(!1),await this.barcodeCheck.stop();}async pauseSearching(){var e;this.view.deletePendingViews(),await((e=this.context.frameSource)==null?void 0:e.switchToDesiredState(FrameSourceState.Standby)),await this.barcodeCheck.setEnabled(!1),await this.barcodeCheck.pause();}emitTappedFeedback(){this.barcodeCheck.feedback.tapped.emit();}didUpdateSession(e,t){Object.keys(t.addedTrackedBarcodes).length>0&&this.barcodeCheck.feedback.scanned.emit(),this.view.render(t);}async onTorchButtonClicked(){var e,t;this.cameraSupportMap.get(this.currentCamera.label)||this.cameraSupportMap.set(this.currentCamera.label,{torch:await this.currentCamera.isTorchAvailable()}),(t=(e=this.cameraSupportMap.get(this.currentCamera.label))==null?void 0:e.torch)!=null&&t&&(await this.currentCamera.setDesiredTorchState(this.torchState===TorchState.Off?TorchState.On:TorchState.Off),this.torchState=this.torchState===TorchState.Off?TorchState.On:TorchState.Off,this.view.toggleTorchIcon(this.torchState));}async onZoomButtonClicked(){var t;if(!this.currentCamera.isZoomAvailable())return;let e=(t={1:2,2:1}[this.zoomFactor])!=null?t:1;this.currentCamera.settings.zoomFactor=e,await this.currentCamera.applySettings(this.currentCamera.settings),this.zoomFactor=e,this.view.changeZoomButtonIcon(e);}async onCameraSwitchButtonClicked(){let e=this.currentCamera.getCurrentState(),t=Camera.atPosition(this.currentCamera.position===CameraPosition.UserFacing?CameraPosition.WorldFacing:CameraPosition.UserFacing);await this.context.setFrameSource(t),await this.currentCamera.switchToDesiredState(e);}};export{h as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-3I3FVXFK.js';import {Brush,NoViewfinder}from'@scandit/web-datacapture-core';var c=(e=>(e.Frame="frame",e))(c||{}),i=class o{constructor(){this.type="barcodeCapture";this._shouldShowScanAreaGuides=!1;this._shouldRemoveLocationsAfterScan=!0;this._style=b.BarcodeCapture.BarcodeCaptureOverlay.defaultStyle;this._viewfinder=null;}get style(){return this._style}static async withBarcodeCapture(e){return o.withBarcodeCaptureForView(e,null)}static async withBarcodeCaptureForView(e,a){return o.withBarcodeCaptureForViewWithStyle(e,a,b.BarcodeCapture.BarcodeCaptureOverlay.defaultStyle)}static async withBarcodeCaptureForViewWithStyle(e,a,u){let r=new o;return r.barcodeCapture=e,r._style=u,await r.setBrush(new Brush(b.BarcodeCapture.BarcodeCaptureOverlay.styles[r.style].DefaultBrush.fillColor,b.BarcodeCapture.BarcodeCaptureOverlay.styles[r.style].DefaultBrush.strokeColor,b.BarcodeCapture.BarcodeCaptureOverlay.styles[r.style].DefaultBrush.strokeWidth)),a&&await a.addOverlay(r),r}getBrush(){return this._brush}getViewfinder(){return this._viewfinder}async setBrush(e){this._brush=e,await this.barcodeCapture.notifyContext();}async setShouldShowScanAreaGuides(e){this._shouldShowScanAreaGuides=e,await this.barcodeCapture.notifyContext();}async setShouldRemoveLocationsAfterScan(e){this._shouldRemoveLocationsAfterScan=e,await this.barcodeCapture.notifyContext();}async setViewfinder(e){this._viewfinder=e,await this.barcodeCapture.notifyContext();}shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}shouldRemoveLocationsAfterScan(){return this._shouldRemoveLocationsAfterScan}toJSONObject(){var e,a;return {type:this.type,brush:this._brush.toJSONObject(),drawLocalizedOnlyBarcodes:!1,shouldShowScanAreaGuides:this._shouldShowScanAreaGuides,shouldRemoveLocationsAfterScan:this._shouldRemoveLocationsAfterScan,viewfinder:(a=(e=this._viewfinder)==null?void 0:e.toJSONObject())!=null?a:NoViewfinder.toJSONObject(),style:this.style}}};export{c as a,i as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-3I3FVXFK.js';import {NumberWithUnit}from'@scandit/web-datacapture-core';var i=class{constructor(){this.radius=new NumberWithUnit(b.SparkScan.SparkScanSettings.locationSelection.radius,b.SparkScan.SparkScanSettings.locationSelection.unit);this.type="targetAimer";}toJSONObject(){return {type:this.type,radius:this.radius.toJSONObject()}}};export{i as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-QHNNJFNX.js';import {b}from'./chunk-3I3FVXFK.js';import {CameraSettings,convertToPublicFrameData,Logger}from'@scandit/web-datacapture-core';var c=class S{constructor(){this.type="sparkScan";this._isEnabled=!0;this._isSuppressed=!1;this._context=null;this.listeners=new Set;this.allowedRemainingWorkerMessages=new Set;this.workerMessageListener=this.onWorkerMessage.bind(this);}static get recommendedCameraSettings(){return new CameraSettings(b.SparkScan.CameraSettings.settings)}get context(){return this._context}static forSettings(e){let a=new S;return a.settings=e,a}isEnabled(){return this._isEnabled&&!this._isSuppressed}async setEnabled(e){this._isEnabled=e,await this.notifyContext();}async setResultSuppressionEnabled(e){this._isSuppressed=e,await this.notifyContext();}async applySettings(e){return this.settings=e,this.notifyContext()}addListener(e){this.listeners.add(e);}removeListener(e){this.listeners.delete(e);}toJSONObject(){return {type:this.type,enabled:this._isEnabled,settings:this.settings.toJSONObject(),isSuppressed:this._isSuppressed}}async workerCommand(e,a){this.context&&await this.context.workerCommand(e,a);}attachedToContext(e){this._context=e,this._context.subscribeToWorkerMessages(this.workerMessageListener);}async detachedFromContext(){var e;(e=this._context)==null||e.unsubscribeToWorkerMessages(this.workerMessageListener),this._context=null;}sendClearFrameDataRequest(e){queueMicrotask(()=>{var a;(a=this.context)==null||a.workerCommand("deleteFrameData",{frameId:e});});}async onDidScan(e){if(this.context==null)return;let a$1=a.fromJSON(e.payload.session),{frameData:t}=e.payload;if(!this._isEnabled){this.sendClearFrameDataRequest(t.frameId),this.allowedRemainingWorkerMessages.clear();return}this.allowedRemainingWorkerMessages.add("successFeedback");let s=[];for(let r of this.listeners)if(r.didScan)try{let i=r.didScan(this,a$1,convertToPublicFrameData(t,this.context));i instanceof Promise&&await i;}catch(i){s.push(i);}this.sendClearFrameDataRequest(t.frameId),this.allowedRemainingWorkerMessages.add("sparkScanDidUpdateSession");for(let r of s)Logger.log(Logger.Level.Error,r);}onDidUpdateSession(e){var t;let a$1=a.fromJSON(e.payload);if(!(!this._isEnabled&&!this.allowedRemainingWorkerMessages.has(e.type))){this.allowedRemainingWorkerMessages.delete(e.type);for(let s of this.listeners)(t=s.didUpdateSession)==null||t.call(s,this,a$1);}}async onWorkerMessage(e){switch(e.type){case"sparkScanDidScan":{this.onDidScan(e);break}case"sparkScanDidUpdateSession":{this.onDidUpdateSession(e);break}}}async notifyContext(){this.context&&await this.context.update();}};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFind}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFind}from'../chunks/chunk-HRHBXIPB.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFindFeedback}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFindFeedback}from'../chunks/chunk-44HCLNRQ.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeFindPresenter,a as ViewState}from'../chunks/chunk-
|
|
1
|
+
export{b as BarcodeFindPresenter,a as ViewState}from'../chunks/chunk-EZI7OJEV.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFindSettings}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFindSettings}from'../chunks/chunk-BDMG75S4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFindView}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFindView}from'../chunks/chunk-TCMZMAI3.js';
|
package/build/js/find/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeFindSettings}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeFindSettings}from'../chunks/chunk-BDMG75S4.js';export{a as BarcodeFindView}from'../chunks/chunk-TCMZMAI3.js';export{a as BarcodeFind}from'../chunks/chunk-HRHBXIPB.js';export{a as BarcodeFindItem,c as BarcodeFindItemContent,b as BarcodeFindItemSearchOptions}from'../chunks/chunk-HTKUJZG2.js';export{a as BarcodeFindViewSettings}from'../chunks/chunk-4PTIOBXM.js';
|
package/build/js/index.d.ts
CHANGED
|
@@ -25,7 +25,7 @@ export { SparkScanScanningMode, SparkScanScanningModeDefault, SparkScanScanningM
|
|
|
25
25
|
export { SparkScanSession, SparkScanSessionJSON } from './spark/SparkScanSession.js';
|
|
26
26
|
export { SparkScanSettings, SparkScanSettingsJSON } from './spark/SparkScanSettings.js';
|
|
27
27
|
export { SparkScanToastSettings } from './spark/ui/SparkScanToastSettings.js';
|
|
28
|
-
export { a as SparkScanView, S as SparkScanViewUiListener } from './SparkScanView-
|
|
28
|
+
export { a as SparkScanView, S as SparkScanViewUiListener } from './SparkScanView-LXH0ExAN.js';
|
|
29
29
|
export { SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback } from './spark/SparkScanBarcodeFeedback.js';
|
|
30
30
|
import './spark/ui/SparkScanViewIcon.js';
|
|
31
31
|
import './spark/ui/SparkScanViewMiniPreview.js';
|
package/build/js/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckStatusIconAnnotation}from'./chunks/chunk-AU5BUV3N.js';export{a as BarcodeStatusIconContainer}from'./chunks/chunk-BTW5QIG7.js';export{b as BarcodeCheckCircleHighlight,a as BarcodeCheckCircleHighlightPreset}from'./chunks/chunk-XFGU5IHR.js';export{a as SparkScanView}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckStatusIconAnnotation}from'./chunks/chunk-AU5BUV3N.js';export{a as BarcodeStatusIconContainer}from'./chunks/chunk-BTW5QIG7.js';export{b as BarcodeCheckCircleHighlight,a as BarcodeCheckCircleHighlightPreset}from'./chunks/chunk-XFGU5IHR.js';export{a as SparkScanView}from'./chunks/chunk-3C4HMC5F.js';export{a as SparkScanViewState}from'./chunks/chunk-L6IZLBEM.js';export{a as SparkScanViewSettings}from'./chunks/chunk-N7VOTJDF.js';export{a as SparkScanToastSettings}from'./chunks/chunk-BRRT6GC7.js';export{a as SparkScanSettings}from'./chunks/chunk-G3LSLZYT.js';export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'./chunks/chunk-GKYQONEA.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-BDMG75S4.js';export{a as BarcodeFindView}from'./chunks/chunk-TCMZMAI3.js';export{a as SparkScan}from'./chunks/chunk-ZY3JZELC.js';export{a as SparkScanSession}from'./chunks/chunk-QHNNJFNX.js';export{a as BarcodeFind}from'./chunks/chunk-HRHBXIPB.js';export{a as BarcodeFindItem,c as BarcodeFindItemContent,b as BarcodeFindItemSearchOptions}from'./chunks/chunk-HTKUJZG2.js';export{a as BarcodeCheckSettings}from'./chunks/chunk-OGDQ76GD.js';export{a as BarcodeCheckView}from'./chunks/chunk-ATSBKHNK.js';export{a as BarcodeCheckRectangleHighlight}from'./chunks/chunk-Y2XISTOT.js';export{a as BarcodeCheckPopoverAnnotation}from'./chunks/chunk-QPUY23QD.js';export{a as BarcodeCheckPopoverAnnotationButton}from'./chunks/chunk-X5Z57UUL.js';export{d as BarcodeCheckInfoAnnotation,a as BarcodeCheckInfoAnnotationAnchor}from'./chunks/chunk-QKAIJQPA.js';export{a as BarcodeCheckInfoAnnotationBodyComponent}from'./chunks/chunk-7YWUYXR2.js';export{a as BarcodeCheckInfoAnnotationFooter}from'./chunks/chunk-5DXIU4KL.js';export{a as BarcodeCheckInfoAnnotationHeader}from'./chunks/chunk-DQW2EMPB.js';export{a as BarcodeCheckAnnotationTrigger}from'./chunks/chunk-ILGTNFTI.js';export{a as BarcodeCheckViewSettings}from'./chunks/chunk-YLCNLTYD.js';export{a as barcodeCaptureLoader}from'./chunks/chunk-NTBYC47J.js';export{a as BarcodeCheck}from'./chunks/chunk-QQUMOT3B.js';export{a as BarcodeCheckSession}from'./chunks/chunk-FRG4ACMI.js';export{a as BarcodeCheckFeedback}from'./chunks/chunk-B6TRFCTV.js';export{b as BarcodeCaptureOverlay,a as BarcodeCaptureOverlayStyle}from'./chunks/chunk-YPGRTA4N.js';export{a as BarcodeCaptureSettings}from'./chunks/chunk-6IUKFY3D.js';export{a as ScanIntention}from'./chunks/chunk-NH3EDXZZ.js';export{a as BarcodeBatch}from'./chunks/chunk-45ESK6RO.js';export{a as BarcodeBatchAdvancedOverlay}from'./chunks/chunk-HNWVLPRV.js';export{a as TrackedBarcodeView}from'./chunks/chunk-WTBGDD52.js';export{b as BarcodeBatchBasicOverlay,a as BarcodeBatchBasicOverlayStyle}from'./chunks/chunk-HDKZXP5Y.js';export{a as BarcodeBatchSession}from'./chunks/chunk-FLTJ6FPP.js';export{a as TrackedBarcode}from'./chunks/chunk-TBCQMBEE.js';export{a as BarcodeBatchSettings}from'./chunks/chunk-UIE2K36Z.js';export{a as BarcodeCapture}from'./chunks/chunk-CGGRMJUB.js';export{a as BarcodeCaptureSession}from'./chunks/chunk-FPZJIOQH.js';export{a as LocalizedOnlyBarcode}from'./chunks/chunk-MUX2WWWH.js';export{e as Barcode,c as Checksum,d as CompositeFlag,b as CompositeType,a as Symbology}from'./chunks/chunk-PE6EDL2S.js';export{a as StructuredAppendData}from'./chunks/chunk-IEE5MKEA.js';export{a as EncodingRange}from'./chunks/chunk-J4VFWBJ7.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-KBO3YYBN.js';export{a as Range}from'./chunks/chunk-7SWSAHI5.js';export{a as SymbologySettings}from'./chunks/chunk-LBAL6OCN.js';export{a as BarcodeCaptureFeedback}from'./chunks/chunk-WPSMXGDG.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-NTBYC47J.js';
|
|
@@ -16,6 +16,7 @@ type SparkScanJSON = DataCaptureModeJSON<SparkScanSettingsJSON>;
|
|
|
16
16
|
declare class SparkScan implements DataCaptureMode, Serializable<SparkScanJSON> {
|
|
17
17
|
private readonly type;
|
|
18
18
|
private _isEnabled;
|
|
19
|
+
private _isSuppressed;
|
|
19
20
|
private settings;
|
|
20
21
|
private _context;
|
|
21
22
|
private readonly listeners;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScan}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScan}from'../chunks/chunk-ZY3JZELC.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'../chunks/chunk-
|
|
1
|
+
export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'../chunks/chunk-GKYQONEA.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanOverlay}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScanOverlay}from'../chunks/chunk-Q6DVAVA5.js';
|
|
@@ -16,6 +16,8 @@ interface SparkScanSettingsJSON {
|
|
|
16
16
|
declare class SparkScanSettings implements Serializable<SparkScanSettingsJSON> {
|
|
17
17
|
codeDuplicateFilter: number;
|
|
18
18
|
scanIntention?: ScanIntention;
|
|
19
|
+
private _scanIntention?;
|
|
20
|
+
private desiredScanIntention?;
|
|
19
21
|
private locationSelection;
|
|
20
22
|
private properties;
|
|
21
23
|
private symbologies;
|
|
@@ -27,6 +29,7 @@ declare class SparkScanSettings implements Serializable<SparkScanSettingsJSON> {
|
|
|
27
29
|
enableSymbologies(symbologies: Symbology[]): void;
|
|
28
30
|
enableSymbology(symbology: Symbology, enabled: boolean): void;
|
|
29
31
|
toJSONObject(): SparkScanSettingsJSON;
|
|
32
|
+
private setScanIntentionForTargetMode;
|
|
30
33
|
private enableTargetModeHiddenProperties;
|
|
31
34
|
private disableTargetModeHiddenProperties;
|
|
32
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanSettings}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScanSettings}from'../chunks/chunk-G3LSLZYT.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanTargetAimerViewfinder}from'../chunks/chunk-
|
|
1
|
+
export{a as SparkScanTargetAimerViewfinder}from'../chunks/chunk-Z53C3VA7.js';
|
|
@@ -5,7 +5,7 @@ export { SparkScanScanningMode, SparkScanScanningModeDefault, SparkScanScanningM
|
|
|
5
5
|
export { SparkScanSession, SparkScanSessionJSON } from './SparkScanSession.js';
|
|
6
6
|
export { SparkScanSettings, SparkScanSettingsJSON } from './SparkScanSettings.js';
|
|
7
7
|
export { SparkScanToastSettings } from './ui/SparkScanToastSettings.js';
|
|
8
|
-
export { a as SparkScanView, S as SparkScanViewUiListener } from '../SparkScanView-
|
|
8
|
+
export { a as SparkScanView, S as SparkScanViewUiListener } from '../SparkScanView-LXH0ExAN.js';
|
|
9
9
|
export { SparkScanBarcodeErrorFeedback, SparkScanBarcodeFeedback, SparkScanBarcodeSuccessFeedback } from './SparkScanBarcodeFeedback.js';
|
|
10
10
|
import './ui/SparkScanViewIcon.js';
|
|
11
11
|
import './ui/SparkScanViewMiniPreview.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-3C4HMC5F.js';export{a as SparkScanViewState}from'../chunks/chunk-L6IZLBEM.js';export{a as SparkScanViewSettings}from'../chunks/chunk-N7VOTJDF.js';export{a as SparkScanToastSettings}from'../chunks/chunk-BRRT6GC7.js';export{a as SparkScanSettings}from'../chunks/chunk-G3LSLZYT.js';export{b as SparkScanBarcodeErrorFeedback,a as SparkScanBarcodeFeedback,c as SparkScanBarcodeSuccessFeedback}from'../chunks/chunk-GKYQONEA.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-ZY3JZELC.js';export{a as SparkScanSession}from'../chunks/chunk-QHNNJFNX.js';export{a as SparkScanMiniPreviewSize}from'../chunks/chunk-MVDPXLVX.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@scandit/web-datacapture-core';
|
|
2
2
|
import '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
3
|
-
export { a as SparkScanView } from '../../SparkScanView-
|
|
3
|
+
export { a as SparkScanView } from '../../SparkScanView-LXH0ExAN.js';
|
|
4
4
|
import '../SparkScan.js';
|
|
5
5
|
import '../SparkScanFeedbackDelegate.js';
|
|
6
6
|
import './SparkScanViewSettings.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanView}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanView}from'../../chunks/chunk-3C4HMC5F.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanViewFeedbackManager}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanViewFeedbackManager}from'../../chunks/chunk-PFYODZHW.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-HDL4B7UY.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DataCaptureContextListener, DataCaptureContext, Feedback, Point, FrameSource } from '@scandit/web-datacapture-core';
|
|
2
2
|
import { SparkScanViewSessionStopReason } from '../SparkScanAnalyticsManager.js';
|
|
3
|
-
import { a as SparkScanView, S as SparkScanViewUiListener } from '../../SparkScanView-
|
|
3
|
+
import { a as SparkScanView, S as SparkScanViewUiListener } from '../../SparkScanView-LXH0ExAN.js';
|
|
4
4
|
import { SparkScanListener, SparkScan } from '../SparkScan.js';
|
|
5
5
|
import { SparkScanSession } from '../SparkScanSession.js';
|
|
6
6
|
import { SparkScanViewSettings } from './SparkScanViewSettings.js';
|
|
@@ -59,6 +59,7 @@ declare class SparkScanViewPresenter implements SparkScanListener, DataCaptureCo
|
|
|
59
59
|
stopScanning(options: {
|
|
60
60
|
sessionStopReason: SparkScanViewSessionStopReason;
|
|
61
61
|
}): Promise<void>;
|
|
62
|
+
onTriggerButtonPointerDown(): Promise<void>;
|
|
62
63
|
onTriggerButtonTap(): Promise<void>;
|
|
63
64
|
onTriggerButtonLongPressStart(): Promise<void>;
|
|
64
65
|
onTriggerButtonLongPressEnd(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanViewPresenter}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanViewPresenter}from'../../chunks/chunk-EB3IYU5V.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanViewSettings}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanViewSettings}from'../../chunks/chunk-N7VOTJDF.js';
|
|
@@ -11,6 +11,7 @@ declare class SparkScanViewTriggerButton extends ScanditHTMLElement {
|
|
|
11
11
|
private _longPressStartListener;
|
|
12
12
|
private _pulse;
|
|
13
13
|
private _pulseAnimation?;
|
|
14
|
+
private _holdStart?;
|
|
14
15
|
get minimized(): boolean;
|
|
15
16
|
set minimized(minimized: boolean);
|
|
16
17
|
get expanded(): boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanViewTriggerButton}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanViewTriggerButton}from'../../chunks/chunk-7AIAIG5T.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../SparkScanScanningMode.js';
|
|
2
|
-
export { S as SparkScanViewUiListener } from '../../SparkScanView-
|
|
2
|
+
export { S as SparkScanViewUiListener } from '../../SparkScanView-LXH0ExAN.js';
|
|
3
3
|
import './SparkScanViewState.js';
|
|
4
4
|
import '@scandit/web-datacapture-core/build/js/private/Serializable';
|
|
5
5
|
import '../SparkScanPreviewBehavior.js';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const miniPreviewTimeoutDuration = 500;
|
|
2
2
|
declare const miniPreviewPadding = 16;
|
|
3
3
|
declare const miniPreviewPaddingPerAxis: number;
|
|
4
|
+
declare const triggerButtonLongPressTimeout = 400;
|
|
4
5
|
|
|
5
|
-
export { miniPreviewPadding, miniPreviewPaddingPerAxis, miniPreviewTimeoutDuration };
|
|
6
|
+
export { miniPreviewPadding, miniPreviewPaddingPerAxis, miniPreviewTimeoutDuration, triggerButtonLongPressTimeout };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as miniPreviewPadding,c as miniPreviewPaddingPerAxis,a as miniPreviewTimeoutDuration}from'../../../chunks/chunk-
|
|
1
|
+
export{b as miniPreviewPadding,c as miniPreviewPaddingPerAxis,a as miniPreviewTimeoutDuration,d as triggerButtonLongPressTimeout}from'../../../chunks/chunk-WF7OHN7I.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { SparkScanToastSettings, SparkScanToastSettingsJSON } from './SparkScanToastSettings.js';
|
|
2
|
-
export { a as SparkScanView, S as SparkScanViewUiListener } from '../../SparkScanView-
|
|
2
|
+
export { a as SparkScanView, S as SparkScanViewUiListener } from '../../SparkScanView-LXH0ExAN.js';
|
|
3
3
|
export { SparkScanViewFeedbackManager } from './SparkScanViewFeedbackManager.js';
|
|
4
4
|
export { SparkScanViewIcon } from './SparkScanViewIcon.js';
|
|
5
5
|
export { SparkScanViewMiniPreview, SparkScanViewMiniPreviewButtonType } from './SparkScanViewMiniPreview.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SparkScanView}from'../../chunks/chunk-
|
|
1
|
+
export{a as SparkScanView}from'../../chunks/chunk-3C4HMC5F.js';export{a as SparkScanViewTriggerButton}from'../../chunks/chunk-7AIAIG5T.js';export{a as SparkScanViewVisualFeedback}from'../../chunks/chunk-TBXQSBKX.js';export{b as SparkScanViewMiniPreview,a as SparkScanViewMiniPreviewButtonType}from'../../chunks/chunk-HDL4B7UY.js';export{a as SparkScanViewToast}from'../../chunks/chunk-K4MHNZXA.js';export{a as SparkScanViewToolbar}from'../../chunks/chunk-KALGMDTS.js';export{a as SparkScanViewIcon}from'../../chunks/chunk-DTO5ICFV.js';export{a as SparkScanViewPresenter}from'../../chunks/chunk-EB3IYU5V.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-PFYODZHW.js';export{a as SparkScanViewPreferenceManager}from'../../chunks/chunk-QCD3RIT4.js';export{a as SparkScanViewSettings}from'../../chunks/chunk-N7VOTJDF.js';export{a as SparkScanToastSettings}from'../../chunks/chunk-BRRT6GC7.js';export{a as SparkScanMiniPreviewSize}from'../../chunks/chunk-MVDPXLVX.js';
|
|
@@ -24,7 +24,7 @@ import '../BarcodeCaptureSession.js';
|
|
|
24
24
|
import '../LocalizedOnlyBarcode.js';
|
|
25
25
|
import '../check/BarcodeCheckSession.js';
|
|
26
26
|
import '../spark/SparkScanSession.js';
|
|
27
|
-
import '../SparkScanView-
|
|
27
|
+
import '../SparkScanView-LXH0ExAN.js';
|
|
28
28
|
import '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
29
29
|
import '../spark/SparkScanScanningMode.js';
|
|
30
30
|
import '../spark/SparkScanPreviewBehavior.js';
|
|
@@ -24,7 +24,7 @@ import '../BarcodeCaptureSession.js';
|
|
|
24
24
|
import '../LocalizedOnlyBarcode.js';
|
|
25
25
|
import '../check/BarcodeCheckSession.js';
|
|
26
26
|
import '../spark/SparkScanSession.js';
|
|
27
|
-
import '../SparkScanView-
|
|
27
|
+
import '../SparkScanView-LXH0ExAN.js';
|
|
28
28
|
import '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
29
29
|
import '../spark/SparkScanScanningMode.js';
|
|
30
30
|
import '../spark/SparkScanPreviewBehavior.js';
|
|
@@ -21,7 +21,7 @@ import '../find/BarcodeFindSession.js';
|
|
|
21
21
|
import '../find/BarcodeFindTransformer.js';
|
|
22
22
|
import '../find/BarcodeFindSettings.js';
|
|
23
23
|
import '../spark/SparkScanSession.js';
|
|
24
|
-
import '../SparkScanView-
|
|
24
|
+
import '../SparkScanView-LXH0ExAN.js';
|
|
25
25
|
import '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
26
26
|
import '../spark/SparkScanScanningMode.js';
|
|
27
27
|
import '../spark/SparkScanPreviewBehavior.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCaptureWorkerManager}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCaptureWorkerManager}from'../chunks/chunk-ENVM4L4Z.js';
|
|
@@ -24,7 +24,7 @@ import '../BarcodeCaptureSession.js';
|
|
|
24
24
|
import '../LocalizedOnlyBarcode.js';
|
|
25
25
|
import '../check/BarcodeCheckSession.js';
|
|
26
26
|
import '../spark/SparkScanSession.js';
|
|
27
|
-
import '../SparkScanView-
|
|
27
|
+
import '../SparkScanView-LXH0ExAN.js';
|
|
28
28
|
import '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
29
29
|
import '../spark/SparkScanScanningMode.js';
|
|
30
30
|
import '../spark/SparkScanPreviewBehavior.js';
|
|
@@ -21,7 +21,7 @@ import '../LocalizedOnlyBarcode.js';
|
|
|
21
21
|
import '../check/BarcodeCheckSession.js';
|
|
22
22
|
import '../find/BarcodeFindSession.js';
|
|
23
23
|
import '../spark/SparkScanSession.js';
|
|
24
|
-
import '../SparkScanView-
|
|
24
|
+
import '../SparkScanView-LXH0ExAN.js';
|
|
25
25
|
import '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
26
26
|
import '../spark/SparkScanScanningMode.js';
|
|
27
27
|
import '../spark/SparkScanPreviewBehavior.js';
|
|
@@ -24,7 +24,7 @@ import '../BarcodeCaptureSession.js';
|
|
|
24
24
|
import '../LocalizedOnlyBarcode.js';
|
|
25
25
|
import '../check/BarcodeCheckSession.js';
|
|
26
26
|
import '../spark/SparkScanSession.js';
|
|
27
|
-
import '../SparkScanView-
|
|
27
|
+
import '../SparkScanView-LXH0ExAN.js';
|
|
28
28
|
import '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
29
29
|
import '../spark/SparkScanScanningMode.js';
|
|
30
30
|
import '../spark/SparkScanPreviewBehavior.js';
|