@scandit/web-datacapture-barcode 7.1.0 → 7.2.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/BarcodeBatch.js +1 -1
- package/build/js/BarcodeBatchAdvancedOverlay.d.ts +1 -1
- package/build/js/BarcodeBatchAdvancedOverlay.js +1 -1
- package/build/js/BarcodeBatchBasicOverlay.js +1 -1
- package/build/js/BarcodeBatchSession.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/PrivateBarcodeBatchAdvancedOverlayListener.d.ts +1 -1
- package/build/js/PrivateBarcodeBatchBasicOverlayListener.js +1 -1
- package/build/js/{SparkScanView-LXH0ExAN.d.ts → SparkScanView-BHTEutX-.d.ts} +3 -0
- package/build/js/SymbologyDescription.js +1 -1
- package/build/js/TrackedBarcode.js +1 -1
- package/build/js/TrackedBarcodeView.d.ts +1 -1
- package/build/js/TrackedBarcodeView.js +1 -1
- 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/BarcodeCheckSession.js +1 -1
- package/build/js/check/BarcodeCheckSettings.js +1 -1
- package/build/js/check/BarcodeCheckView.js +1 -1
- package/build/js/check/BarcodeCheckViewSettings.js +1 -1
- package/build/js/check/Defaults.js +1 -1
- package/build/js/check/ui/atoms/BarcodeCheckInfoAnnotationBodyComponent.js +1 -1
- package/build/js/check/ui/atoms/private/Backdrop.d.ts +1 -1
- package/build/js/check/ui/atoms/private/Backdrop.js +1 -1
- package/build/js/check/ui/atoms/private/BarcodeStatusIconContainer.js +1 -1
- package/build/js/check/ui/organisms/BarcodeCheckCircleHighlight.d.ts +3 -0
- package/build/js/check/ui/organisms/BarcodeCheckCircleHighlight.js +1 -1
- package/build/js/check/ui/organisms/BarcodeCheckInfoAnnotation.js +1 -1
- package/build/js/check/ui/organisms/BarcodeCheckPopoverAnnotation.js +1 -1
- package/build/js/check/ui/organisms/BarcodeCheckPopoverAnnotationButton.js +1 -1
- package/build/js/check/ui/organisms/BarcodeCheckStatusIconAnnotation.js +1 -1
- package/build/js/check/ui/organisms/private/CheckLayout.js +1 -1
- package/build/js/chunks/chunk-2FBL4IXV.js +1 -0
- package/build/js/chunks/{chunk-AU5BUV3N.js → chunk-3V5ISRFO.js} +1 -1
- package/build/js/chunks/chunk-4JEIREAU.js +1 -0
- package/build/js/chunks/chunk-4XFE7YMP.js +1 -0
- package/build/js/chunks/{chunk-QPUY23QD.js → chunk-5N7ZBGWC.js} +1 -1
- package/build/js/chunks/{chunk-FYHMFCYX.js → chunk-7JOXKPVL.js} +1 -1
- package/build/js/chunks/{chunk-YPGRTA4N.js → chunk-A6EZQ6R7.js} +1 -1
- package/build/js/chunks/chunk-A74KUZAS.js +1 -0
- package/build/js/chunks/chunk-AOU52W7O.js +1 -0
- package/build/js/chunks/{chunk-BDMG75S4.js → chunk-BQT57FBO.js} +1 -1
- package/build/js/chunks/chunk-BRFFJHOE.js +1 -0
- package/build/js/chunks/{chunk-PFYODZHW.js → chunk-BZ7BYARP.js} +1 -1
- package/build/js/chunks/chunk-C5GWADSL.js +1 -0
- package/build/js/chunks/chunk-D5WE7BQR.js +1 -0
- package/build/js/chunks/{chunk-HQL4OJUZ.js → chunk-DFIOIHPG.js} +1 -1
- package/build/js/chunks/chunk-DOA2Q3CZ.js +344 -0
- package/build/js/chunks/{chunk-W3YHPFLY.js → chunk-DOA33NUL.js} +1 -1
- package/build/js/chunks/chunk-DQT257RV.js +2 -0
- package/build/js/chunks/{chunk-CGGRMJUB.js → chunk-EI32ILEP.js} +1 -1
- package/build/js/chunks/{chunk-44HCLNRQ.js → chunk-EI4V2NZN.js} +1 -1
- package/build/js/chunks/chunk-EVBEQBF5.js +2 -0
- package/build/js/chunks/chunk-GHWLRMU5.js +1 -0
- package/build/js/chunks/{chunk-W7TZ36EI.js → chunk-GOGBXJU7.js} +1 -1
- package/build/js/chunks/chunk-GTHRQWPV.js +1 -0
- package/build/js/chunks/{chunk-FLTJ6FPP.js → chunk-H5VEANGI.js} +1 -1
- package/build/js/chunks/{chunk-7YWUYXR2.js → chunk-HFF47NXN.js} +1 -1
- package/build/js/chunks/{chunk-R2D7ULOM.js → chunk-HL6L6Q2I.js} +1 -1
- package/build/js/chunks/{chunk-SGAO2QOE.js → chunk-HWV5BPFU.js} +1 -1
- package/build/js/chunks/{chunk-3S7HHSDC.js → chunk-IVXQPFCR.js} +1 -1
- package/build/js/chunks/{chunk-GKYQONEA.js → chunk-J3CJTTKO.js} +1 -1
- package/build/js/chunks/{chunk-FCUTPMMU.js → chunk-JKO4EZPZ.js} +1 -1
- package/build/js/chunks/{chunk-Q6DVAVA5.js → chunk-KFQQXIWI.js} +1 -1
- package/build/js/chunks/{chunk-7OLJ6R22.js → chunk-KJJNY6TE.js} +1 -1
- package/build/js/chunks/chunk-L6RFD252.js +1 -0
- package/build/js/chunks/{chunk-OGDQ76GD.js → chunk-LFI7LFDQ.js} +1 -1
- package/build/js/chunks/{chunk-Z53C3VA7.js → chunk-MFWUTWZR.js} +1 -1
- package/build/js/chunks/{chunk-HCDON6SX.js → chunk-NAQF3FE4.js} +1 -1
- package/build/js/chunks/chunk-OEYNGWOX.js +1 -0
- package/build/js/chunks/{chunk-UIE2K36Z.js → chunk-PJRNZPHO.js} +1 -1
- package/build/js/chunks/{chunk-6IUKFY3D.js → chunk-PTOM2RHF.js} +1 -1
- package/build/js/chunks/chunk-QE4R77EM.js +1 -0
- package/build/js/chunks/{chunk-ZZZNJSAC.js → chunk-RKKRIK37.js} +1 -1
- package/build/js/chunks/{chunk-N7VOTJDF.js → chunk-RSGR6DP3.js} +1 -1
- package/build/js/chunks/{chunk-IBNNXNR6.js → chunk-RXYSNBJM.js} +1 -1
- package/build/js/chunks/{chunk-EZI7OJEV.js → chunk-S4DXFXOU.js} +1 -1
- package/build/js/chunks/{chunk-QKAIJQPA.js → chunk-SN5VMVMZ.js} +1 -1
- package/build/js/chunks/{chunk-G3LSLZYT.js → chunk-T44XGPSD.js} +1 -1
- package/build/js/chunks/chunk-UYTEE4UD.js +1 -0
- package/build/js/chunks/{chunk-FRG4ACMI.js → chunk-VIFEECK7.js} +1 -1
- package/build/js/chunks/{chunk-ZY3JZELC.js → chunk-WXMPKNQ2.js} +1 -1
- package/build/js/chunks/{chunk-K4MHNZXA.js → chunk-XSJEGOGN.js} +2 -2
- package/build/js/chunks/chunk-XXN5AMBG.js +211 -0
- package/build/js/chunks/chunk-YO7QRAX6.js +1 -0
- package/build/js/chunks/chunk-YQNNEW67.js +117 -0
- package/build/js/find/BarcodeFind.js +1 -1
- package/build/js/find/BarcodeFindFeedback.js +1 -1
- package/build/js/find/BarcodeFindPresenter.d.ts +1 -1
- package/build/js/find/BarcodeFindPresenter.js +1 -1
- package/build/js/find/BarcodeFindSession.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/find/ui/atoms/Card.js +1 -1
- package/build/js/find/ui/atoms/CardList.js +1 -1
- package/build/js/find/ui/atoms/CardListButton.js +1 -1
- package/build/js/find/ui/atoms/Dot.js +1 -1
- package/build/js/find/ui/atoms/ExitSvgIcon.js +1 -1
- package/build/js/find/ui/atoms/ItemFoundSvgIcon.js +1 -1
- package/build/js/find/ui/atoms/TorchOffSvgIcon.js +1 -1
- package/build/js/find/ui/atoms/TorchOnSvgIcon.js +1 -1
- package/build/js/find/ui/molecules/CardListContainer.js +1 -1
- package/build/js/find/ui/molecules/ProgressBarWithLabel.js +1 -1
- package/build/js/find/ui/molecules/TorchIconButton.d.ts +1 -1
- package/build/js/find/ui/molecules/TorchIconButton.js +1 -1
- package/build/js/find/ui/organisms/FindLayout.js +1 -1
- package/build/js/index.d.ts +2 -2
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- 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.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/SparkScanViewIcon.d.ts +1 -0
- package/build/js/spark/ui/SparkScanViewIcon.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/SparkScanViewToast.js +1 -1
- package/build/js/spark/ui/SparkScanViewToolbar.d.ts +9 -3
- package/build/js/spark/ui/SparkScanViewToolbar.js +1 -1
- package/build/js/spark/ui/SparkScanViewTriggerButton.js +1 -1
- package/build/js/spark/ui/SparkScanViewUiListener.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewVisualFeedback.js +1 -1
- package/build/js/spark/ui/constants/attributes.d.ts +2 -1
- package/build/js/spark/ui/constants/attributes.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/BarcodeCheckMode.js +1 -1
- package/build/js/worker/BarcodeFindMode.d.ts +1 -1
- package/build/js/worker/BarcodeFindMode.js +1 -1
- package/build/js/worker/PropertyPushSource.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.d.ts +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 +3 -12
- package/sdc-lib/resources/models/barcode_classification_default_model.b90ecc5d362d6cb82801c877fdde7c3e64b6b5ef.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default_model.4c1ba34eafc0f30fbafdd458c6eed156bd3b3498.model +0 -0
- package/sdc-lib/resources/models/barcode_semantics_ocr_detector_default_model.e440ae4acaf7c7a2f42814ddc46c0920423eb372.model +0 -0
- package/sdc-lib/resources/models/ocr_barcode_semantics_default_model.4df1cd250f2d31a69eecb30466b7823bbdd06730.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-3I3FVXFK.js +0 -1
- package/build/js/chunks/chunk-45ESK6RO.js +0 -1
- package/build/js/chunks/chunk-5KGWFDDE.js +0 -2
- package/build/js/chunks/chunk-BGXJMGXV.js +0 -2
- package/build/js/chunks/chunk-BQDC6XI3.js +0 -1
- package/build/js/chunks/chunk-DTO5ICFV.js +0 -246
- package/build/js/chunks/chunk-EB3IYU5V.js +0 -1
- package/build/js/chunks/chunk-FY762RPS.js +0 -211
- package/build/js/chunks/chunk-HDKZXP5Y.js +0 -1
- package/build/js/chunks/chunk-HNWVLPRV.js +0 -1
- package/build/js/chunks/chunk-HRHBXIPB.js +0 -1
- package/build/js/chunks/chunk-JFJU2O2C.js +0 -1
- package/build/js/chunks/chunk-KALGMDTS.js +0 -88
- package/build/js/chunks/chunk-KBO3YYBN.js +0 -1
- package/build/js/chunks/chunk-NVFF7ZI4.js +0 -1
- package/build/js/chunks/chunk-QHK2ZGUV.js +0 -1
- package/build/js/chunks/chunk-TBXQSBKX.js +0 -1
- package/build/js/chunks/chunk-WMUD7V77.js +0 -1
- package/build/js/chunks/chunk-WTBGDD52.js +0 -2
- package/build/js/chunks/chunk-XFGU5IHR.js +0 -1
- package/build/js/chunks/chunk-Y5ZY6264.js +0 -1
- package/build/js/chunks/chunk-Y6DC25EF.js +0 -1
- package/build/js/chunks/chunk-YLCNLTYD.js +0 -1
- package/build/js/private/symbols.d.ts +0 -6
- package/build/js/private/symbols.js +0 -1
- package/build/js/private/utils/trackedBarcodeViewUtils.d.ts +0 -14
- package/build/js/private/utils/trackedBarcodeViewUtils.js +0 -1
- package/build/js/private/warnMultithreadingUnavailable.d.ts +0 -3
- package/build/js/private/warnMultithreadingUnavailable.js +0 -1
- package/sdc-lib/resources/models/barcode_classification_default_model.0e0f78dcf2b31abc9b4fc5c1b7c5cb342a7d5e63.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_french_post_default_model.8843b5d5d2eb71ebeab43204fbb9574c76f94fe7.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default_model.48b44ea31495024d80a11e1ca3ecde3d958eaf2d.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_upu_enhanced_orange.da67055d9aa866fe157514a4d55c2c504ec68306.model +0 -0
- /package/build/js/chunks/{chunk-LXROKZUG.js → chunk-43WBSXOM.js} +0 -0
- /package/build/js/chunks/{chunk-QPNMXE7H.js → chunk-5GGUCEGU.js} +0 -0
- /package/build/js/chunks/{chunk-X5Z57UUL.js → chunk-65DU26S5.js} +0 -0
- /package/build/js/chunks/{chunk-K3EIYQPY.js → chunk-7J6MRLL2.js} +0 -0
- /package/build/js/chunks/{chunk-NSBGJLIO.js → chunk-7O2NHA3I.js} +0 -0
- /package/build/js/chunks/{chunk-BTW5QIG7.js → chunk-BDRKVLLV.js} +0 -0
- /package/build/js/chunks/{chunk-MSQTG4HE.js → chunk-CONYPETL.js} +0 -0
- /package/build/js/chunks/{chunk-TBCQMBEE.js → chunk-DORFGC2X.js} +0 -0
- /package/build/js/chunks/{chunk-OXLBBRZT.js → chunk-QJOHE5A3.js} +0 -0
- /package/build/js/chunks/{chunk-WBSINSMA.js → chunk-SEJXDETX.js} +0 -0
- /package/build/js/chunks/{chunk-FOZL6AM4.js → chunk-UHJ3O2ZT.js} +0 -0
- /package/build/js/chunks/{chunk-EK5TS63E.js → chunk-UOZAN2H7.js} +0 -0
- /package/build/js/chunks/{chunk-X2U6LCRU.js → chunk-WRTJHOS5.js} +0 -0
- /package/build/js/chunks/{chunk-ADMKAYF6.js → chunk-XLC2JHJV.js} +0 -0
- /package/build/js/chunks/{chunk-ZDBP2TPZ.js → chunk-XY65BTLP.js} +0 -0
- /package/build/js/chunks/{chunk-VI6FIL4E.js → chunk-YH5IBNOK.js} +0 -0
- /package/build/js/chunks/{chunk-7TXFJMMW.js → chunk-YWCXI7D5.js} +0 -0
package/build/js/BarcodeBatch.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeBatch}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeBatch}from'./chunks/chunk-QE4R77EM.js';
|
|
@@ -9,7 +9,7 @@ import './Barcode.js';
|
|
|
9
9
|
import './EncodingRange.js';
|
|
10
10
|
import './StructuredAppendData.js';
|
|
11
11
|
import './SymbologySettings.js';
|
|
12
|
-
import '
|
|
12
|
+
import '@scandit/web-datacapture-core/build/js/private/utils/symbols.js';
|
|
13
13
|
|
|
14
14
|
interface BarcodeBatchAdvancedOverlayListener {
|
|
15
15
|
viewForTrackedBarcode?(overlay: BarcodeBatchAdvancedOverlay, trackedBarcode: TrackedBarcode): Promise<TrackedBarcodeView | null>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeBatchAdvancedOverlay}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeBatchAdvancedOverlay}from'./chunks/chunk-2FBL4IXV.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeBatchBasicOverlay,a as BarcodeBatchBasicOverlayStyle}from'./chunks/chunk-
|
|
1
|
+
export{b as BarcodeBatchBasicOverlay,a as BarcodeBatchBasicOverlayStyle}from'./chunks/chunk-GHWLRMU5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeBatchSession}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeBatchSession}from'./chunks/chunk-H5VEANGI.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeBatchSettings}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeBatchSettings}from'./chunks/chunk-BQT57FBO.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCapture}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeCapture}from'./chunks/chunk-EI32ILEP.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeCaptureOverlay,a as BarcodeCaptureOverlayStyle}from'./chunks/chunk-
|
|
1
|
+
export{b as BarcodeCaptureOverlay,a as BarcodeCaptureOverlayStyle}from'./chunks/chunk-A6EZQ6R7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCaptureSettings}from'./chunks/chunk-
|
|
1
|
+
export{a as BarcodeCaptureSettings}from'./chunks/chunk-PTOM2RHF.js';
|
package/build/js/Defaults.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as defaultValues,a as defaultsFromJSON,c as setDefaults}from'./chunks/chunk-
|
|
1
|
+
export{b as defaultValues,a as defaultsFromJSON,c as setDefaults}from'./chunks/chunk-YO7QRAX6.js';
|
|
@@ -10,7 +10,7 @@ import './StructuredAppendData.js';
|
|
|
10
10
|
import './SymbologySettings.js';
|
|
11
11
|
import './TrackedBarcode.js';
|
|
12
12
|
import './TrackedBarcodeView.js';
|
|
13
|
-
import '
|
|
13
|
+
import '@scandit/web-datacapture-core/build/js/private/utils/symbols.js';
|
|
14
14
|
|
|
15
15
|
declare class PrivateBarcodeBatchAdvancedOverlayListener implements BarcodeBatchListener {
|
|
16
16
|
private readonly advancedOverlay;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as PrivateBarcodeBatchBasicOverlayListener}from'./chunks/chunk-
|
|
1
|
+
export{a as PrivateBarcodeBatchBasicOverlayListener}from'./chunks/chunk-DOA33NUL.js';
|
|
@@ -11,6 +11,7 @@ interface SparkScanViewUiListener {
|
|
|
11
11
|
didChangeScanningMode?(scanningMode: SparkScanScanningMode): void;
|
|
12
12
|
didChangeViewState?(state: SparkScanViewState): void;
|
|
13
13
|
didTapBarcodeFindButton?(view: SparkScanView): void;
|
|
14
|
+
didTapLabelCaptureButton?(view: SparkScanView): void;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
declare class SparkScanView extends ScanditHTMLElement {
|
|
@@ -20,6 +21,7 @@ declare class SparkScanView extends ScanditHTMLElement {
|
|
|
20
21
|
zoomSwitchControlVisible: boolean;
|
|
21
22
|
previewSizeControlVisible: boolean;
|
|
22
23
|
barcodeFindButtonVisible: boolean;
|
|
24
|
+
labelCaptureButtonVisible: boolean;
|
|
23
25
|
cameraSwitchButtonVisible: boolean;
|
|
24
26
|
previewCloseControlVisible: boolean;
|
|
25
27
|
triggerButtonVisible: boolean;
|
|
@@ -134,6 +136,7 @@ declare class SparkScanView extends ScanditHTMLElement {
|
|
|
134
136
|
private onTargetModeButtonTap;
|
|
135
137
|
private onScanningBehaviorButtonTap;
|
|
136
138
|
private onBarcodeFindButtonTap;
|
|
139
|
+
private onLabelCaptureButtonTap;
|
|
137
140
|
private onCameraSwitchButtonTap;
|
|
138
141
|
private onTorchButtonTap;
|
|
139
142
|
private onMiniPreviewTimeoutFinished;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SymbologyDescription}from'./chunks/chunk-
|
|
1
|
+
export{a as SymbologyDescription}from'./chunks/chunk-OEYNGWOX.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as TrackedBarcode}from'./chunks/chunk-
|
|
1
|
+
export{a as TrackedBarcode}from'./chunks/chunk-DORFGC2X.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Size, SizeJSON } from '@scandit/web-datacapture-core';
|
|
2
2
|
import { Serializable } from '@scandit/web-datacapture-core/build/js/private/Serializable';
|
|
3
|
-
import { stripImages } from '
|
|
3
|
+
import { stripImages } from '@scandit/web-datacapture-core/build/js/private/utils/symbols.js';
|
|
4
4
|
|
|
5
5
|
interface PrivateTrackedBarcodeView {
|
|
6
6
|
data: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as TrackedBarcodeView}from'./chunks/chunk-
|
|
1
|
+
export{a as TrackedBarcodeView}from'./chunks/chunk-EVBEQBF5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheck}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheck}from'../chunks/chunk-BRFFJHOE.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckFeedback}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckFeedback}from'../chunks/chunk-UOZAN2H7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckPresenter}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckPresenter}from'../chunks/chunk-RXYSNBJM.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckSession}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckSession}from'../chunks/chunk-VIFEECK7.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckSettings}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckSettings}from'../chunks/chunk-LFI7LFDQ.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckView}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckView}from'../chunks/chunk-KJJNY6TE.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckViewSettings}from'../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckViewSettings}from'../chunks/chunk-4XFE7YMP.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as RecommendedCameraSettings,a as defaultCameraPosition}from'../chunks/chunk-
|
|
1
|
+
export{b as RecommendedCameraSettings,a as defaultCameraPosition}from'../chunks/chunk-43WBSXOM.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckInfoAnnotationBodyComponent}from'../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckInfoAnnotationBodyComponent}from'../../../chunks/chunk-HFF47NXN.js';
|
|
@@ -14,7 +14,7 @@ declare class Backdrop extends ScanditHTMLElement {
|
|
|
14
14
|
static create(): Backdrop;
|
|
15
15
|
protected static register(): void;
|
|
16
16
|
private static createStyleElement;
|
|
17
|
-
attributeChangedCallback(name: string,
|
|
17
|
+
attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
|
|
18
18
|
show(): Promise<void>;
|
|
19
19
|
hide(): Promise<void>;
|
|
20
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as Backdrop}from'../../../../chunks/chunk-
|
|
1
|
+
export{a as Backdrop}from'../../../../chunks/chunk-CONYPETL.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeStatusIconContainer}from'../../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeStatusIconContainer}from'../../../../chunks/chunk-BDRKVLLV.js';
|
|
@@ -12,7 +12,10 @@ declare enum BarcodeCheckCircleHighlightPreset {
|
|
|
12
12
|
Icon = "icon"
|
|
13
13
|
}
|
|
14
14
|
declare class BarcodeCheckCircleHighlight extends ScanditHTMLElement implements BarcodeCheckHighlight {
|
|
15
|
+
private _isPulsing;
|
|
15
16
|
static tag: "scandit-check-circle-highlight";
|
|
17
|
+
set isPulsing(isPulsing: boolean);
|
|
18
|
+
get isPulsing(): boolean;
|
|
16
19
|
icon: ScanditIcon | null;
|
|
17
20
|
private type;
|
|
18
21
|
private preset;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{b as BarcodeCheckCircleHighlight,a as BarcodeCheckCircleHighlightPreset}from'../../../chunks/chunk-
|
|
1
|
+
export{b as BarcodeCheckCircleHighlight,a as BarcodeCheckCircleHighlightPreset}from'../../../chunks/chunk-L6RFD252.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{d as BarcodeCheckInfoAnnotation,a as BarcodeCheckInfoAnnotationAnchor,c as BarcodeCheckInfoAnnotationEvent,b as BarcodeCheckInfoAnnotationWidthPreset}from'../../../chunks/chunk-
|
|
1
|
+
export{d as BarcodeCheckInfoAnnotation,a as BarcodeCheckInfoAnnotationAnchor,c as BarcodeCheckInfoAnnotationEvent,b as BarcodeCheckInfoAnnotationWidthPreset}from'../../../chunks/chunk-SN5VMVMZ.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckPopoverAnnotation}from'../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckPopoverAnnotation}from'../../../chunks/chunk-5N7ZBGWC.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckPopoverAnnotationButton}from'../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckPopoverAnnotationButton}from'../../../chunks/chunk-65DU26S5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as BarcodeCheckStatusIconAnnotation}from'../../../chunks/chunk-
|
|
1
|
+
export{a as BarcodeCheckStatusIconAnnotation}from'../../../chunks/chunk-3V5ISRFO.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CheckLayout}from'../../../../chunks/chunk-
|
|
1
|
+
export{a as CheckLayout}from'../../../../chunks/chunk-UHJ3O2ZT.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-EVBEQBF5.js';import {a as a$1}from'./chunk-C52THG7K.js';import {NumberWithUnit,MeasureUnit,PointWithUnit,Anchor}from'@scandit/web-datacapture-core';import {LicensedFeature}from'@scandit/web-datacapture-core/build/js/worker/index.js';import {stripImages}from'@scandit/web-datacapture-core/build/js/private/utils/symbols.js';var p=new NumberWithUnit(0,MeasureUnit.Pixel),b=new PointWithUnit(p,p),_=Anchor.Center,v=class u{constructor(){this.listener=null;this.type="barcodeTrackingAdvanced";this._shouldShowScanAreaGuides=!1;this._viewForBarcode=new Map;this._anchorForBarcode=new Map;this._offsetForBarcode=new Map;this._viewForBarcodeFromListener=new Map;this._anchorForBarcodeFromListener=new Map;this._offsetForBarcodeFromListener=new Map;this._anchorPositions=new Map;this._barcodeForId=new Map;}get shouldShowScanAreaGuides(){return this._shouldShowScanAreaGuides}set shouldShowScanAreaGuides(a){this._shouldShowScanAreaGuides=a,this.barcodeBatch.notifyContext();}static async withBarcodeBatchForView(a$2,r){if(a$2.context){let c=!await a$2.context.isFeatureSupported(LicensedFeature.BarcodeArFull);a[stripImages]=c;}let e=new u;return e.barcodeBatch=a$2,r&&(await r.addOverlay(e),e.view=r,e.privateListener=new a$1(e),a$2.addPrivateListener(e.privateListener),e.view.setDidTapCustomLocationsViewListener({didTapView:c=>{var t,d;let o=e.getTrackedBarcodeForIdentifier(c);o&&((d=(t=e.listener)==null?void 0:t.didTapViewForTrackedBarcode)==null||d.call(t,e,o));}})),e}async setViewForTrackedBarcode(a,r){if(a==null){this._viewForBarcode.set(r.identifier,null);return}let e=await a;e!=null&&this._viewForBarcode.set(r.identifier,e),this.barcodeBatch.isEnabled()||this.update();}setAnchorForTrackedBarcode(a,r){this._anchorForBarcode.set(r.identifier,a),this.barcodeBatch.isEnabled()||this.update();}setOffsetForTrackedBarcode(a,r){this._offsetForBarcode.set(r.identifier,a),this.barcodeBatch.isEnabled()||this.update();}clearTrackedBarcodeViews(){this._viewForBarcode.clear(),this.barcodeBatch.isEnabled()||this.update();}toJSONObject(){return {type:this.type,shouldShowScanAreaGuides:this._shouldShowScanAreaGuides}}getTrackedBarcodeForIdentifier(a){return this._barcodeForId.get(a)}async setViewForTrackedBarcodeFromListener(a,r){if(a==null){this._viewForBarcodeFromListener.set(r.identifier,null);return}let e=await a;e!=null&&this._viewForBarcodeFromListener.set(r.identifier,e);}processRemovedBarcodes(a){for(let r of a){let e=Number.parseInt(r,10);this._viewForBarcode.delete(e),this._anchorForBarcode.delete(e),this._offsetForBarcode.delete(e),this._anchorPositions.delete(e),this._viewForBarcodeFromListener.delete(e),this._anchorForBarcodeFromListener.delete(e),this._offsetForBarcodeFromListener.delete(e);}}processAddedBarcodes(a){var r,e,c,o,t,d,h;for(let i of a){if(this._anchorPositions.set(i.identifier,i.anchorPositions),this._barcodeForId.set(i.identifier,i),!this._viewForBarcodeFromListener.has(i.identifier)){let s=(c=(e=(r=this.listener)==null?void 0:r.viewForTrackedBarcode)==null?void 0:e.call(r,this,i))!=null?c:Promise.resolve(null);this.setViewForTrackedBarcodeFromListener(s,i);}if(!this._offsetForBarcodeFromListener.has(i.identifier)){let s=(t=(o=this.listener)==null?void 0:o.offsetForTrackedBarcode)==null?void 0:t.call(o,this,i);s!=null&&this._offsetForBarcodeFromListener.set(i.identifier,s);}if(!this._anchorForBarcodeFromListener.has(i.identifier)){let s=(h=(d=this.listener)==null?void 0:d.anchorForTrackedBarcode)==null?void 0:h.call(d,this,i);s!=null&&this._anchorForBarcodeFromListener.set(i.identifier,s);}}}processUpdatedTrackedBarcodes(a){for(let r of a)this._anchorPositions.set(r.identifier,r.anchorPositions),this._barcodeForId.set(r.identifier,r);}update(a){var c,o,t,d,h,i;a!=null&&(this.lastSession=a);let r=this.view;if(r===null)return;this.processRemovedBarcodes(this.lastSession.removedTrackedBarcodes),this.processAddedBarcodes(this.lastSession.addedTrackedBarcodes),this.processUpdatedTrackedBarcodes(this.lastSession.updatedTrackedBarcodes);let e={removedIds:this.lastSession.removedTrackedBarcodes,elements:[]};for(let s of Object.keys(this.lastSession.trackedBarcodes)){let n=Number.parseInt(s,10),B=(o=(c=this._viewForBarcode.get(n))!=null?c:this._viewForBarcodeFromListener.get(n))==null?void 0:o.toJSONObject();B!=null&&e.elements.push({view:B,identifier:n,anchor:(d=(t=this._anchorForBarcode.get(n))!=null?t:this._anchorForBarcodeFromListener.get(n))!=null?d:_,offset:(i=(h=this._offsetForBarcode.get(n))!=null?h:this._offsetForBarcodeFromListener.get(n))!=null?i:b,anchorPositions:this._anchorPositions.get(n)});}r.renderCustomLocationsView(e);}};export{v as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-BDRKVLLV.js';import {SecondaryOrange100,gray900}from'@scandit/web-datacapture-core/build/js/private/ui/colors.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 {ScanditIcon,ScanditIconBuilder,ScanditIconType,ScanditIconShape}from'@scandit/web-datacapture-core';var o=class o extends ScanditHTMLElement{constructor(){super();this.annotationTrigger="highlightAndBarcodeScan";this.anchor="bottom-center";this.statusIconContainer=a.create();}get barcode(){return this._barcode}set barcode(t){this._barcode=t;}set text(t){this.statusIconContainer.text=t;}get text(){return this.statusIconContainer.text}set hasTip(t){this.statusIconContainer.toggleAttribute("tip",t);}get hasTip(){return this.statusIconContainer.hasAttribute("tip")}set icon(t){this.icon.remove(),t.slot="barcode-icon",t.width=24,t.height=24,t.setIconSize(16),this.statusIconContainer.append(t);}get icon(){return this.statusIconContainer.querySelector(ScanditIcon.tag)}set backgroundColor(t){this.icon.backgroundColor=t;}get backgroundColor(){return this.icon.backgroundColor}set textColor(t){this.statusIconContainer.textColor=t;}get textColor(){return this.statusIconContainer.textColor}static create(t){o.register();let n=document.createElement(o.tag);return n.barcode=t,n}static register(){defineCustomElements({[a.tag]:a,[o.tag]:o});}async connectedCallback(){let n=await new ScanditIconBuilder().withIcon(ScanditIconType.ExclamationMark).withBackgroundShape(ScanditIconShape.Circle).withBackgroundColor(SecondaryOrange100).withIconColor(gray900).withWidth(24).withHeight(24).withIconSize(16).build();n.slot="barcode-icon",this.append(this.statusIconContainer),this.statusIconContainer.append(n);}};o.tag="scandit-status-icon-annotation";var r=o;export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e="zoom-factor",o="scanning-behavior",i="scanning-behavior-button-visible",r="target-mode-button-visible",n="target-mode-enabled",b="torch-control-visible",s="torch-enabled",l="inline-style",c="zoom-switch-control-visible",a="preview-size-control-visible",u="barcode-find-button-visible",p="label-capture-button-visible",v="camera-switch-button-visible-attribute",x="preview-close-control-visible";export{e as a,o as b,i as c,r as d,n as e,b as f,s as g,l as h,c as i,a as j,u as k,p as l,v as m,x as n};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1}from'./chunk-43WBSXOM.js';var a=class{constructor(){this.soundEnabled=!0;this.hapticEnabled=!0;this.defaultCameraPosition=a$1;}};export{a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-65DU26S5.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var o=class o extends ScanditHTMLElement{constructor(){super();this.isEntirePopoverTappable=!1;this.annotationTrigger="highlightTap";this.onPointerUpListener=this.onPointerUp.bind(this);this.anchor="top-center";let e=this.attachShadow({mode:"open"});e.innerHTML=html`<div class="container" role="group"><slot></slot></div>`,e.append(o.createStyleElement().cloneNode(!0));}get barcode(){return this._barcode}set barcode(e){this._barcode=e;}set direction(e){this.setAttribute("direction",e);}get direction(){var e;return (e=this.getAttribute("direction"))!=null?e:"horizontal"}static register(){defineCustomElements({[o.tag]:o});}static create(e){o.register();let t=document.createElement(o.tag);return t.barcode=e,t}static createStyleElement(){return css`:host{background-color:unset;border:none;border-radius:14px;margin:0;overflow:hidden;padding:0}:host([direction=horizontal]) .container{flex-direction:row}:host([direction=vertical]) .container{flex-direction:column}.container{backdrop-filter:blur(16px);background:hsla(0,0%,100%,.7);box-shadow:0 6px 10px 4px rgba(18,22,25,.15);display:flex;gap:14px}`}connectedCallback(){let e=[...this.querySelectorAll(a.tag)];for(let[t,n]of Object.entries(e))n.setAttribute("data-position",t);this.addEventListener("pointerup",this.onPointerUpListener);}disconnectedCallback(){this.removeEventListener("pointerup",this.onPointerUpListener);}onPointerUp(e){var n,a$1,c,r,p;if(this.isEntirePopoverTappable){(a$1=(n=this.listener)==null?void 0:n.onPopoverTapped)==null||a$1.call(n,this);return}let t=(c=e.target)==null?void 0:c.closest(a.tag);t&&((p=(r=this.listener)==null?void 0:r.onPopoverButtonTapped)==null||p.call(r,this,t,Number(t.getAttribute("data-position"))));}};o.tag="scandit-barcode-popover-annotation";var d=o;export{d as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var c=class{constructor(e,t,o){this.barcodeCheck=null;this.coreEngine=e,this.Module=t,this.workerFunctions=o;}async forSettings(e){var o;(o=this.barcodeCheck)==null||o.delete(),this.barcodeCheck=new this.Module.BarcodeCheck(this.coreEngine.context,JSON.stringify(e));let t=this.Module.BarcodeCheckListener.extend("BarcodeCheckListener",{didUpdateSession:(i,r,a)=>{let s=this.coreEngine.convertToLoadableFrameData(a);this.workerFunctions.postMessage({type:"barcodeCheckDidUpdateSession",payload:{session:JSON.parse(r.toJson()),frameData:s}}),i.delete(),r.delete(),a.delete();}});this.barcodeCheck.addListener(new t,1),this.Module.addBarcodeCheckToContext(this.coreEngine.context,this.barcodeCheck);}start(){var e;(e=this.barcodeCheck)==null||e.start();}pause(){var e;(e=this.barcodeCheck)==null||e.pause();}stop(){var e;(e=this.barcodeCheck)==null||e.stop();}setEnabled(e){var t;(t=this.barcodeCheck)==null||t.setEnabled(e);}async removeMode(){this.barcodeCheck!=null&&this.Module.removeBarcodeCheckFromContext(this.coreEngine.context,this.barcodeCheck);}applySettings(e){var t;
|
|
1
|
+
var c=class{constructor(e,t,o){this.barcodeCheck=null;this.coreEngine=e,this.Module=t,this.workerFunctions=o;}async forSettings(e){var o;(o=this.barcodeCheck)==null||o.delete(),this.barcodeCheck=new this.Module.BarcodeCheck(this.coreEngine.context,JSON.stringify(e));let t=this.Module.BarcodeCheckListener.extend("BarcodeCheckListener",{didUpdateSession:(i,r,a)=>{let s=this.coreEngine.convertToLoadableFrameData(a);this.workerFunctions.postMessage({type:"barcodeCheckDidUpdateSession",payload:{session:JSON.parse(r.toJson()),frameData:s}}),i.delete(),r.delete(),a.delete();}});this.barcodeCheck.addListener(new t,1),this.Module.addBarcodeCheckToContext(this.coreEngine.context,this.barcodeCheck);}start(){var e;(e=this.barcodeCheck)==null||e.start();}pause(){var e;(e=this.barcodeCheck)==null||e.pause();}stop(){var e;(e=this.barcodeCheck)==null||e.stop();}setEnabled(e){var t;(t=this.barcodeCheck)==null||t.setEnabled(e);}async removeMode(){this.barcodeCheck!=null&&this.Module.removeBarcodeCheckFromContext(this.coreEngine.context,this.barcodeCheck);}applySettings(e){var t;(t=this.barcodeCheck)==null||t.applySettings(JSON.stringify(e));}};export{c as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-YO7QRAX6.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};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var c={"scandit-datacapture-sdk-barcode-pthreads.wasm":{bytes:6859658},"scandit-datacapture-sdk-barcode-simd.wasm":{bytes:6659049},"scandit-datacapture-sdk-barcode-simd-pthreads.wasm":{bytes:6779222},"scandit-datacapture-sdk-barcode.wasm":{bytes:6739990}};export{c as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$1,b as b$1}from'./chunk-HTKUJZG2.js';import {a}from'./chunk-EI4V2NZN.js';import {a as a$2}from'./chunk-GOGBXJU7.js';import {b}from'./chunk-YO7QRAX6.js';import {CameraSettings,convertToPublicFrameData}from'@scandit/web-datacapture-core';import {warnMultithreadingUnavailable}from'@scandit/web-datacapture-core/build/js/private/utils/warnMultithreadingUnavailable.js';var l=class b$2{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.BarcodeFind.CameraSettings.settings);for(let[r,a]of Object.entries(b.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){warnMultithreadingUnavailable();let r=new b$2;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$2.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$1(new b$1(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$1(new b$1(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{l as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-YO7QRAX6.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
|
+
import {a as a$1}from'./chunk-VIFEECK7.js';import {b}from'./chunk-43WBSXOM.js';import {a}from'./chunk-UOZAN2H7.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 c{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$1){warnMultithreadingUnavailable();let t=new c;return t.feedback=await a.createDefaultBarcodeCheckFeedback(),t.settings=a$1,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$1.fromJSON(e.payload.session),convertToPublicFrameData(e.payload.frameData,this._context));break}}}};export{o 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-YO7QRAX6.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
|
+
import {j,k}from'./chunk-DVHTYKDX.js';import {g}from'./chunk-YBD5JYCX.js';import {ScanditHTMLElement,css,defineCustomElements}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var r=class c extends ScanditHTMLElement{constructor(){super(...arguments);this.styleElement=css`${g}{height:100dvh;left:0;opacity:0;pointer-events:none;position:fixed;top:0;user-select:none;width:100dvw}${g}[success]{background:var(${j})}${g}[error]{background:var(${k})}`;}get success(){return this.hasAttribute("success")}set success(e){this.toggleAttribute("error",!e),this.toggleAttribute("success",e);}get error(){return this.hasAttribute("error")}set error(e){this.toggleAttribute("error",e),this.toggleAttribute("success",!e);}static create(){return defineCustomElements({[g]:c}),document.createElement(g)}async fadeIn(e,i){await this.animate([{opacity:"0"},{opacity:e}],{duration:i,easing:"linear"}).finished;}async fadeOut(e,i){await this.animate([{opacity:e},{opacity:"0"}],{duration:i,easing:"linear"}).finished;}async emitSuccessFeedback(){this.success=!0,await this.fadeIn("1",200),await this.fadeOut("1",0);}async emitErrorFeedback(){this.error=!0,await this.fadeIn("1",100),await this.fadeOut("1",100),await this.fadeIn("0.5",100),await this.fadeOut("0.5",0);}connectedCallback(){this.append(this.styleElement);}};export{r as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-QCD3RIT4.js';import {a as a$2}from'./chunk-OTZPCIBD.js';import {a as a$3}from'./chunk-BZ7BYARP.js';import {a as a$5}from'./chunk-KFQQXIWI.js';import {b as b$2,c as c$1}from'./chunk-SZUPDKV5.js';import {a as a$4}from'./chunk-WXMPKNQ2.js';import {b}from'./chunk-JMUNN3HX.js';import {a as a$1,c,b as b$1}from'./chunk-J3CJTTKO.js';import {b as b$3}from'./chunk-YO7QRAX6.js';import {DataCaptureView,Anchor,LogoStyle,CameraAccess,Camera,isCameraFrameSource,FrameSourceState,Color,TorchState,Logger,NumberWithUnit,RadiusLocationSelection,CameraPosition}from'@scandit/web-datacapture-core';import {Timeout}from'@scandit/web-datacapture-core/build/js/private/utils/timeout.js';var V=class O{constructor(a$4,e,t,i){this.cameras=[];this.preferenceManager=new a(localStorage);this.defaultSuccessBrush=a$1.defaultSuccessBrush();this.defaultErrorBrush=a$1.defaultErrorBrush();this.sparkScanView=a$4,this.context=e,this.sparkScan=t,this.sparkScanViewSettings=i,this.stateManager=new a$2(this.sparkScanViewSettings,this.preferenceManager),this.feedbackManager=a$3.withDefaults(i.soundEnabled,i.hapticEnabled),this.analyticsManager=b.forContext(e),this.triggerButtonCollapseTimeout=new Timeout(this.sparkScanViewSettings.triggerButtonCollapseTimeout,async()=>{this.stateManager.state!=="idle"&&await this.switchToIdleState({sessionStopReason:"timeout"});}),this.inactiveStateTimeout=new Timeout(i.inactiveStateTimeout,async()=>{this.stateManager.state!=="inactive"&&!this.stateManager.holdingToScan&&await this.switchToInactiveState({sessionStopReason:"timeout"});}),this.switchToIdleState();}get portraitOrientationTriggerButtonTranslateX(){var a;return (a=this.stateManager.portraitOrientationTriggerButtonTranslateX)!=null?a:window.innerWidth-90-16}get portraitOrientationTriggerButtonTranslateY(){var a;return (a=this.stateManager.portraitOrientationTriggerButtonTranslateY)!=null?a:window.innerHeight/2}get landscapeOrientationTriggerButtonTranslateX(){var a;return (a=this.stateManager.landscapeOrientationTriggerButtonTranslateX)!=null?a:window.innerWidth-90-16}get landscapeOrientationTriggerButtonTranslateY(){var a;return (a=this.stateManager.landscapeOrientationTriggerButtonTranslateY)!=null?a:window.innerHeight/2}get portraitOrientationMiniPreviewTranslateX(){var a;return (a=this.stateManager.portraitOrientationMiniPreviewTranslateX)!=null?a:window.innerWidth-225-16}get portraitOrientationMiniPreviewTranslateY(){var a;return (a=this.stateManager.portraitOrientationMiniPreviewTranslateY)!=null?a:16}get landscapeOrientationMiniPreviewTranslateX(){var a;return (a=this.stateManager.landscapeOrientationMiniPreviewTranslateX)!=null?a:16}get landscapeOrientationMiniPreviewTranslateY(){var a;return (a=this.stateManager.landscapeOrientationMiniPreviewTranslateY)!=null?a:16}static forView(a,e,t,i){return new O(a,e,t,i)}async prepareScanning(a){var i;this.context.addListener(this),this.dataCaptureView=await DataCaptureView.forContext(this.context),this.dataCaptureView.logoAnchor=Anchor.BottomCenter,this.dataCaptureView.logoStyle=LogoStyle.Minimal,this.dataCaptureView.setHiddenProperty("stopVideoTracksOnVisibilityChange",!1),this.dataCaptureView.setHiddenProperty("freezeFrameWhenStoppingFrameSource",!1),this.dataCaptureView.connectToElement(a);let e=await CameraAccess.getCameras();this.cameras=e.map(s=>Camera.fromDeviceCamera(s)),this.camera=isCameraFrameSource(this.context.frameSource)?this.context.frameSource:(i=this.cameras.find(s=>s.position===this.sparkScanViewSettings.defaultCameraPosition))!=null?i:Camera.default,await this.camera.applySettings(a$4.recommendedCameraSettings),await this.context.setFrameSource(this.camera),await this.camera.switchToDesiredState(FrameSourceState.Standby);let t=await this.camera.isTorchAvailable();this.sparkScanView.setTorchAvailable(t),this.sparkScanView.setZoomAvailable(this.camera.isZoomAvailable()),this.sparkScanView.cameraSwitchButtonTapped(t,this.camera.position),await this.context.addMode(this.sparkScan),this.sparkScan.addListener(this),this.sparkScanOverlay=await a$5.withSparkScanForView(this.sparkScan,this.dataCaptureView),await this.sparkScanOverlay.setShouldRemoveLocationsAfterScan(this.stateManager.scanningBehavior==="continuous"),this.analyticsManager.startSession({cameraPosition:this.camera.position,handMode:"right",hapticEnabled:this.sparkScanViewSettings.hapticEnabled,scanningMode:this.stateManager.scanningMode,soundEnabled:this.sparkScanViewSettings.soundEnabled,torchState:this.camera.getDesiredTorchState()}),await this.applyPreferences();}async startScanning(){await this.switchToActiveState();}async pauseScanning(){await this.switchToInactiveState({sessionStopReason:"user"});}async stopScanning(a){var e;await this.sparkScan.setEnabled(!1),this.sparkScan.removeListener(this),await((e=this.camera)==null?void 0:e.switchToDesiredState(FrameSourceState.Off)),this.dataCaptureView.detachFromElement(),this.context.removeListener(this),this.analyticsManager.setSessionStopReason(a.sessionStopReason);}async onTriggerButtonPointerDown(){await this.sparkScan.setResultSuppressionEnabled(!0);}async onTriggerButtonTap(){switch(await this.sparkScan.setResultSuppressionEnabled(!1),this.stateManager.state){case"Initial":return;case"idle":case"inactive":case"error":{await this.switchToActiveState({barcodeFeedback:new c(Color.fromRGBA(0,0,0,0),this.defaultSuccessBrush,this.feedbackManager.tapFeedback)});return}case"active":await(this.stateManager.continuousModeEnabled?this.switchToInactiveState({sessionStopReason:"user",barcodeFeedback:new c(Color.fromRGBA(0,0,0,0),this.defaultSuccessBrush,this.feedbackManager.tapFeedback)}):this.switchToActiveState({barcodeFeedback:new c(Color.fromRGBA(0,0,0,0),this.defaultSuccessBrush,this.feedbackManager.tapFeedback)}));}}async onTriggerButtonLongPressStart(){var a;await this.sparkScan.setResultSuppressionEnabled(!1),this.sparkScanViewSettings.holdToScanEnabled&&(this.scanningBehaviorCache=this.stateManager.scanningBehavior,this.stateManager.scanningBehavior="continuous",this.stateManager.holdingToScan=!0,await((a=this.sparkScanOverlay)==null?void 0:a.setShouldRemoveLocationsAfterScan(!0)),await this.switchToActiveState({barcodeFeedback:new c(Color.fromRGBA(0,0,0,0),this.defaultSuccessBrush,this.feedbackManager.tapFeedback)}));}async onTriggerButtonLongPressEnd(){var a,e;this.sparkScanViewSettings.holdToScanEnabled&&this.stateManager.state!=="error"&&(this.stateManager.scanningBehavior=(a=this.scanningBehaviorCache)!=null?a:"single",this.stateManager.holdingToScan=!1,await((e=this.sparkScanOverlay)==null?void 0:e.setShouldRemoveLocationsAfterScan(this.stateManager.continuousModeEnabled)),await this.switchToInactiveState({sessionStopReason:"user",barcodeFeedback:new b$1("",0,Color.fromRGBA(0,0,0,0),this.defaultErrorBrush,this.feedbackManager.noFeedback)}));}async onClickOutside(){this.stateManager.idleState||await this.switchToIdleState();}async onVisibilityChange(){await this.switchToIdleState();}async onTargetModeButtonTap(a,e=this.feedbackManager.tapFeedback,t=!0){var h,r,S;let i=String(a),s={true:a&&this.stateManager.scanningMode instanceof b$2,false:!a&&this.stateManager.scanningMode instanceof c$1}[i];s&&(this.stateManager.scanningMode=this.stateManager.scanningMode.changeMode()),this.enableTargetMode(a,this.stateManager.zoomFactor),await((h=this.sparkScanOverlay)==null?void 0:h.setShouldDrawViewfinder(a)),e.emit(),this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start()),this.sparkScanView.targetModeButtonTapped(a,t),s&&((S=(r=this.listener)==null?void 0:r.didChangeScanningMode)==null||S.call(r,this.stateManager.scanningMode),this.analyticsManager.setScanningMode(this.stateManager.scanningMode));}async onScanningBehaviorButtonTap(a,e=this.feedbackManager.tapFeedback,t=!0){var i;e.emit(),this.stateManager.scanningMode=this.stateManager.scanningMode.copyWith(a?"continuous":"single"),await((i=this.sparkScanOverlay)==null?void 0:i.setShouldRemoveLocationsAfterScan(a)),this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start()),this.sparkScanView.scanningBehaviorButtonTapped(a,t),this.analyticsManager.setScanningMode(this.stateManager.scanningMode);}async onBarcodeFindButtonTap(){var a,e;await this.switchToIdleState({sessionStopReason:"user"}),(e=(a=this.listener)==null?void 0:a.didTapBarcodeFindButton)==null||e.call(a,this.sparkScanView),this.restartTimeouts();}async onLabelCaptureButtonTap(){var a,e;await this.switchToIdleState({sessionStopReason:"user"}),(e=(a=this.listener)==null?void 0:a.didTapLabelCaptureButton)==null||e.call(a,this.sparkScanView),this.restartTimeouts();}async onCameraSwitchButtonTap(){if(this.feedbackManager.emitTapFeedback(),this.restartTimeouts(),!this.camera||this.stateManager.state==="error")return;let a={[CameraPosition.WorldFacing]:CameraPosition.UserFacing,[CameraPosition.UserFacing]:CameraPosition.WorldFacing}[this.camera.position],e=this.cameras.find(t=>t.position===a);e&&(await this.camera.switchToDesiredState(FrameSourceState.Off),await e.applySettings(this.camera.settings),await this.context.setFrameSource(e),await e.switchToDesiredState(FrameSourceState.On),this.sparkScanView.cameraSwitchButtonTapped(await e.isTorchAvailable(),a),this.analyticsManager.setCameraPosition(a),this.camera=e);}async onTorchButtonTap(a,e=this.feedbackManager.tapFeedback,t=!0){var i;e.emit(),this.stateManager.torchState=a?TorchState.On:TorchState.Off,((i=this.camera)==null?void 0:i.getCurrentState())===FrameSourceState.On&&await this.camera.setDesiredTorchState(this.stateManager.torchState),this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start()),this.sparkScanView.torchButtonTapped(a,t),this.analyticsManager.setTorchState(this.stateManager.torchState);}restartTimeouts(){for(let a of [this.triggerButtonCollapseTimeout,this.inactiveStateTimeout,this.resumeCapturingTimeout])(a==null?void 0:a.running)===!0&&a.start();}async onMiniPreviewCloseButtonTap(){await this.switchToIdleState({sessionStopReason:"user"});}onMiniPreviewResizeButtonTap(){this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.feedbackManager.emitTapFeedback(),this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start());}async onMiniPreviewZoomButtonTap(a){this.feedbackManager.emitTapFeedback(),this.stateManager.zoomFactor=a,this.camera&&(this.camera.settings.zoomFactor=a,await this.camera.applySettings(this.camera.settings)),this.stateManager.state!=="idle"&&this.stateManager.state!=="error"&&(this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.start()),this.enableTargetModeHiddenProperties(this.stateManager.targetModeEnabled,a);}async onMiniPreviewDrag(a,e){switch(this.stateManager.state==="active"&&await this.sparkScan.setEnabled(!1),e){case"landscape-primary":case"landscape-secondary":{this.stateManager.landscapeOrientationMiniPreviewTranslateX=a.x,this.stateManager.landscapeOrientationMiniPreviewTranslateY=a.y;break}case"portrait-primary":case"portrait-secondary":{this.stateManager.portraitOrientationMiniPreviewTranslateX=a.x,this.stateManager.portraitOrientationMiniPreviewTranslateY=a.y;break}}this.restartTimeouts();}onMiniPreviewPointerMove(){this.restartTimeouts();}async onMiniPreviewPointerUp(){await this.switchToActiveState();}async onMiniPreviewDragEnd(){this.stateManager.state==="active"&&await this.sparkScan.setEnabled(!0);}onTriggerButtonDrag(a,e){switch(e){case"landscape-primary":case"landscape-secondary":{this.stateManager.landscapeOrientationTriggerButtonTranslateX=a.x,this.stateManager.landscapeOrientationTriggerButtonTranslateY=a.y;break}case"portrait-primary":case"portrait-secondary":{this.stateManager.portraitOrientationTriggerButtonTranslateX=a.x,this.stateManager.portraitOrientationTriggerButtonTranslateY=a.y;break}}}async onOrientationChange(){this.stateManager.state==="error"&&await this.switchToInactiveState({sessionStopReason:"user"});}async didScan(a,e){if(!e.newlyRecognizedBarcode)return;let t=this.sparkScanView.feedbackDelegate.getFeedbackForBarcode(e.newlyRecognizedBarcode);t instanceof b$1?await this.switchToErrorState({barcodeFeedback:t}):t instanceof c&&await(this.stateManager.continuousModeEnabled?this.switchToActiveState({barcodeFeedback:t}):this.switchToInactiveState({sessionStopReason:"user",barcodeFeedback:t,emitSuccessFeedback:!0})),this.restartTimeouts();}didChangeFrameSource(a,e){var t;if(isCameraFrameSource(e))this.camera=e;else {let i=(t=e==null?void 0:e.toJSONObject().type)!=null?t:"unknown";Logger.log(Logger.Level.Warn,`SparkScanView instances require a camera frame source to work, but a frame source of type "${i}" was found.`);}}setListener(a){this.listener=a;}brushForFeedback(a){return a.brush}async switchToIdleState(a={}){var e,t,i;this.feedbackManager.emitTapFeedback(),await((e=this.sparkScanOverlay)==null?void 0:e.overlayReadyForDraw()),this.setState("idle"),await this.sparkScan.setEnabled(!1),await((t=this.camera)==null?void 0:t.switchToDesiredState(FrameSourceState.Standby)),this.triggerButtonCollapseTimeout.stop(),this.inactiveStateTimeout.stop(),(i=this.resumeCapturingTimeout)==null||i.stop(),this.sparkScanView.switchToIdleState(),a.sessionStopReason!=null&&this.analyticsManager.setSessionStopReason(a.sessionStopReason);}async switchToActiveState(a={}){var t,i,s,o,h,r,S;let e=this.stateManager.state;this.setState("active"),await((t=this.camera)==null?void 0:t.switchToDesiredState(FrameSourceState.On)),await((i=this.camera)==null?void 0:i.setDesiredTorchState(this.stateManager.torchState)),await this.sparkScan.setEnabled(!0),a.barcodeFeedback&&await((s=this.sparkScanOverlay)==null?void 0:s.setBrush(this.brushForFeedback(a.barcodeFeedback))),await((o=this.sparkScanOverlay)==null?void 0:o.setShouldRemoveLocationsAfterScan(this.stateManager.continuousModeEnabled)),await((h=this.sparkScanOverlay)==null?void 0:h.overlayReadyForDraw()),this.feedbackManager.emitBarcodeFeedback(a.barcodeFeedback),this.stateManager.holdingToScan||this.inactiveStateTimeout.start(),this.triggerButtonCollapseTimeout.stop(),(r=this.resumeCapturingTimeout)==null||r.stop(),await this.sparkScanView.switchToActiveState(this.sparkScanViewSettings.visualFeedbackEnabled&&a.barcodeFeedback instanceof c,this.stateManager.scanningBehavior,(S=a.barcodeFeedback)==null?void 0:S.visualFeedbackColor,this.stateManager.zoomedIn&&e!=="active");}async switchToInactiveState(a){var t,i,s,o,h,r;(a.emitSuccessFeedback)!=null||(a.emitSuccessFeedback=!0),this.setState("inactive"),a.barcodeFeedback&&await((t=this.sparkScanOverlay)==null?void 0:t.setBrush(this.brushForFeedback(a.barcodeFeedback))),await this.sparkScan.setEnabled(!1),await(a.barcodeFeedback instanceof c&&this.stateManager.scanningMode.previewBehavior==="persistent"?(i=this.sparkScanOverlay)==null?void 0:i.setShouldRemoveLocationsAfterScan(!0):(s=this.camera)==null?void 0:s.switchToDesiredState(FrameSourceState.Standby)),this.feedbackManager.emitBarcodeFeedback(a.barcodeFeedback),await((o=this.sparkScanOverlay)==null?void 0:o.overlayReadyForDraw()),this.triggerButtonCollapseTimeout.start(),this.inactiveStateTimeout.stop(),(h=this.resumeCapturingTimeout)==null||h.stop(),await this.sparkScanView.switchToInactiveState(this.sparkScanViewSettings.visualFeedbackEnabled&&a.barcodeFeedback instanceof c&&a.emitSuccessFeedback,this.stateManager.scanningBehavior,this.stateManager.previewBehavior,(r=a.barcodeFeedback)==null?void 0:r.visualFeedbackColor),this.analyticsManager.setSessionStopReason(a.sessionStopReason);}async switchToErrorState(a){var t,i,s,o;let e=a.barcodeFeedback.resumeCapturingDelay>0;e&&(this.setState("error"),this.stateManager.scanningBehavior="single",await this.sparkScan.setEnabled(!1),await((t=this.camera)==null?void 0:t.switchToDesiredState(FrameSourceState.Standby)),this.resumeCapturingTimeout=new Timeout(a.barcodeFeedback.resumeCapturingDelay,async()=>{this.stateManager.state!=="active"&&await this.switchToActiveState();}),this.resumeCapturingTimeout.start()),await((i=this.sparkScanOverlay)==null?void 0:i.setErrorBrush(a.barcodeFeedback.brush)),await((s=this.sparkScanOverlay)==null?void 0:s.overlayReadyForDraw()),await((o=this.sparkScanOverlay)==null?void 0:o.setShouldRemoveLocationsAfterScan(a.barcodeFeedback.resumeCapturingDelay===0)),await this.sparkScan.workerCommand("sparkScanEmitErrorFeedback",{shouldRemoveBrush:!e}),this.feedbackManager.emitBarcodeFeedback(a.barcodeFeedback),this.triggerButtonCollapseTimeout.stop(),this.inactiveStateTimeout.stop(),await this.sparkScanView.switchToErrorState(a.barcodeFeedback,this.sparkScanViewSettings.visualFeedbackEnabled);}enableTargetModeLocationSelection(a){var s;let e=a?b$3.SparkScan.SparkScanSettings.targetModeLocationSelection.radius:b$3.SparkScan.SparkScanSettings.locationSelection.radius,t=a?b$3.SparkScan.SparkScanSettings.targetModeLocationSelection.unit:b$3.SparkScan.SparkScanSettings.locationSelection.unit,i=new NumberWithUnit(e,t);this.sparkScan.settings.locationSelection=new RadiusLocationSelection(i),(s=this.sparkScanOverlay)==null||s.setRadius(i);}enableTargetModeScanIntention(a){this.sparkScan.settings.setScanIntentionForTargetMode(a);}enableTargetModeHiddenProperties(a,e){a?this.sparkScan.settings.enableTargetModeHiddenProperties(e===this.sparkScanViewSettings.zoomFactorOut?1:2):this.sparkScan.settings.disableTargetModeHiddenProperties();}enableTargetMode(a,e){this.enableTargetModeLocationSelection(a),this.enableTargetModeScanIntention(a),this.enableTargetModeHiddenProperties(a,e);}async applyPreferences(){await this.onTargetModeButtonTap(this.stateManager.targetModeEnabled,this.feedbackManager.noFeedback,!1),await this.onScanningBehaviorButtonTap(this.stateManager.continuousModeEnabled,this.feedbackManager.noFeedback,!1),await this.onTorchButtonTap(this.stateManager.torchEnabled,this.feedbackManager.noFeedback,!1);}setState(a){var e,t;a!==this.stateManager.state&&(this.stateManager.state=a,(t=(e=this.listener)==null?void 0:e.didChangeViewState)==null||t.call(e,a));}};export{V as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-HL6L6Q2I.js';import {a}from'./chunk-YWCXI7D5.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var n="cubic-bezier(0.4, 0, 0.2, 1)",C=(o=>(o.TextForCollapseCardsButton="text-for-collapse-cards-button",o))(C||{}),e=class e extends ScanditHTMLElement{constructor(){super();this.onCarListTapHandler=this.onCarListTap.bind(this);this.onCardListWillExpandHandler=this.onCardListWillExpand.bind(this);this.onCarouselButtonClickHandler=this.onCarouselButtonClick.bind(this);this.textNode=document.createTextNode("");let t=this.attachShadow({mode:"open"});t.append(e.createStyleElement().cloneNode(!0));let i=document.createElement("div");i.id="root",i.innerHTML=html`
|
|
2
2
|
<${a.tag} class="hide">
|
|
3
3
|
</${a.tag}>
|
|
4
4
|
<${b.tag} collapsed></${b.tag}>
|