@scandit/web-datacapture-barcode 8.5.2 → 8.6.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/{ArucoDictionary-DuC_Oe_h.d.ts → ArucoDictionary-B4i3FxdW.d.ts} +2 -3
- package/build/js/ArucoDictionary.d.ts +1 -1
- package/build/js/ArucoDictionaryPreset.d.ts +1 -1
- package/build/js/{ArucoMarker-DjTyUZtQ.d.ts → ArucoMarker-ClkAmCGW.d.ts} +0 -1
- package/build/js/ArucoMarker.d.ts +1 -1
- package/build/js/{Barcode-B7a-T3RA.d.ts → Barcode-DNvaiOyn.d.ts} +2 -3
- package/build/js/Barcode.d.ts +1 -1
- package/build/js/{BarcodeAr-BDmLyoF_.d.ts → BarcodeAr-nMS8-gBi.d.ts} +3 -4
- package/build/js/{BarcodeArAnnotation-nsUjxSNs.d.ts → BarcodeArAnnotation-BTMTqI9o.d.ts} +1 -3
- package/build/js/{BarcodeArAnnotationProvider-LUZtD48c.d.ts → BarcodeArAnnotationProvider-CxeuM7yt.d.ts} +2 -3
- package/build/js/{BarcodeArFeedback-DvLnrL8K.d.ts → BarcodeArFeedback-MR22moJS.d.ts} +0 -1
- package/build/js/{BarcodeArHighlight-BIm0-lDz.d.ts → BarcodeArHighlight-D002fuWB.d.ts} +1 -2
- package/build/js/{BarcodeArHighlightProvider-DqpmyBWi.d.ts → BarcodeArHighlightProvider-MWB0XIoQ.d.ts} +2 -3
- package/build/js/{BarcodeArInfoAnnotationBodyComponent-Dj3jXTGL.d.ts → BarcodeArInfoAnnotationBodyComponent-BXOaa1oT.d.ts} +0 -1
- package/build/js/{BarcodeArInfoAnnotationFooter-h5YON8XZ.d.ts → BarcodeArInfoAnnotationFooter-C3KhPT6G.d.ts} +0 -1
- package/build/js/{BarcodeArInfoAnnotationHeader-BmWO5pBg.d.ts → BarcodeArInfoAnnotationHeader-DCzML4Pn.d.ts} +0 -1
- package/build/js/{BarcodeArMode-BngW0xHt.d.ts → BarcodeArMode-D1D82tXQ.d.ts} +21 -24
- package/build/js/{BarcodeArSession-Bz03lXAV.d.ts → BarcodeArSession-DdcD0LaC.d.ts} +1 -2
- package/build/js/{BarcodeArSettings-B9BVP7j6.d.ts → BarcodeArSettings-CDjBEQBe.d.ts} +2 -3
- package/build/js/BarcodeArViewUiListener-x9WJWosB.d.ts +9 -0
- package/build/js/{BarcodeBatch-CNcFT3L0.d.ts → BarcodeBatch-p4sN7NPo.d.ts} +3 -4
- package/build/js/BarcodeBatch.d.ts +1 -1
- package/build/js/BarcodeBatchAdvancedOverlay.d.ts +3 -4
- package/build/js/BarcodeBatchBasicOverlay.d.ts +1 -1
- package/build/js/{BarcodeBatchSession-uyS3c7kn.d.ts → BarcodeBatchSession-DUD47AV4.d.ts} +1 -2
- package/build/js/BarcodeBatchSession.d.ts +1 -1
- package/build/js/{BarcodeBatchSettings-C-KZgt56.d.ts → BarcodeBatchSettings-CWobhass.d.ts} +3 -4
- package/build/js/BarcodeBatchSettings.d.ts +1 -1
- package/build/js/BarcodeCapture.d.ts +3 -4
- package/build/js/{BarcodeCaptureFeedback-CsqAl7Fd.d.ts → BarcodeCaptureFeedback-DZfIn9Lo.d.ts} +0 -1
- package/build/js/BarcodeCaptureFeedback.d.ts +1 -1
- package/build/js/BarcodeCaptureOverlay.d.ts +4 -1
- package/build/js/BarcodeCaptureOverlay.js +1 -1
- package/build/js/{BarcodeCaptureSession-3Ds1nRs3.d.ts → BarcodeCaptureSession-Lyn8h1Oc.d.ts} +2 -3
- package/build/js/BarcodeCaptureSession.d.ts +1 -1
- package/build/js/{BarcodeCaptureSettings-D7PcXdhH.d.ts → BarcodeCaptureSettings-Cjf__Ral.d.ts} +5 -6
- package/build/js/BarcodeCaptureSettings.d.ts +1 -1
- package/build/js/BarcodeCaptureWorkerManager-9BBiSAdI.js +1 -0
- package/build/js/{BarcodeFind-BxTFN3aw.d.ts → BarcodeFind-BGD6ZGHA.d.ts} +5 -6
- package/build/js/{BarcodeFindBasicOverlay-d6CI-m5J.d.ts → BarcodeFindBasicOverlay-o6FxUPuD.d.ts} +1 -2
- package/build/js/{BarcodeFindFeedback-twyr6gYt.d.ts → BarcodeFindFeedback-DhzeI79U.d.ts} +0 -1
- package/build/js/{BarcodeFindItem-DY4hEDJC.d.ts → BarcodeFindItem-B-Z3k7wI.d.ts} +0 -1
- package/build/js/{BarcodeFindSession-U-vVWF91.d.ts → BarcodeFindSession-Dl0aK2JX.d.ts} +1 -2
- package/build/js/{BarcodeFindSettings-MEVLcw5G.d.ts → BarcodeFindSettings-B_STCRxz.d.ts} +2 -3
- package/build/js/{BarcodeFindView-asGkr2P-.d.ts → BarcodeFindView-D1z5F-7a.d.ts} +3 -4
- package/build/js/{BarcodeFindViewSettings-BBORmBR5.d.ts → BarcodeFindViewSettings-BqP5mC_A.d.ts} +0 -1
- package/build/js/{BarcodeFindViewUiListener-IoaQ_suq.d.ts → BarcodeFindViewUiListener-BHXZYAKK.d.ts} +1 -2
- package/build/js/{EncodingRange-DI-35kMB.d.ts → EncodingRange-D2G25vRe.d.ts} +0 -1
- package/build/js/EncodingRange.d.ts +1 -1
- package/build/js/{LocalizedOnlyBarcode-ohkk7Vyx.d.ts → LocalizedOnlyBarcode-DIdJKLsZ.d.ts} +0 -1
- package/build/js/LocalizedOnlyBarcode.d.ts +1 -1
- package/build/js/PrivateBarcodeBatchAdvancedOverlayListener.d.ts +2 -3
- package/build/js/PrivateBarcodeBatchBasicOverlayListener.d.ts +1 -1
- package/build/js/Range.d.ts +1 -1
- package/build/js/ScanIntention.d.ts +1 -1
- package/build/js/SelectionMode.d.ts +1 -1
- package/build/js/{SparkScan-ZI65oTyn.d.ts → SparkScan-DJSLIr1F.d.ts} +2 -3
- package/build/js/{SparkScanAnalyticsManager-DguhUbs9.d.ts → SparkScanAnalyticsManager-CQU_edU0.d.ts} +1 -2
- package/build/js/{SparkScanBarcodeFeedback-C79-SSrQ.d.ts → SparkScanBarcodeFeedback-Dt25wQTc.d.ts} +0 -1
- package/build/js/{SparkScanFeedbackDelegate-DQm6ix7E.d.ts → SparkScanFeedbackDelegate-qMCBitM8.d.ts} +2 -3
- package/build/js/{SparkScanScanningMode-uQ4skb_0.d.ts → SparkScanScanningMode-OfggiH2E.d.ts} +2 -3
- package/build/js/{SparkScanSession-C5xa7P_3.d.ts → SparkScanSession-CI6W5VK1.d.ts} +1 -2
- package/build/js/{SparkScanSettings-diHbVL5F.d.ts → SparkScanSettings-C6heTRHy.d.ts} +4 -5
- package/build/js/{SparkScanTimeoutManager-BAsbUodW.d.ts → SparkScanTimeoutManager-010BnuQP.d.ts} +1 -2
- package/build/js/{SparkScanToastSettings-B134rU9_.d.ts → SparkScanToastSettings-DmruiKQ3.d.ts} +0 -1
- package/build/js/{SparkScanView-BYn_4_zd.d.ts → SparkScanView-Ca5H_6lT.d.ts} +6 -7
- package/build/js/{SparkScanViewFeedbackManager-BWe7G9rf.d.ts → SparkScanViewFeedbackManager-DYKsRfY-.d.ts} +1 -2
- package/build/js/{SparkScanViewIcon-DCLmO1H-.d.ts → SparkScanViewIcon-Drh2Iain.d.ts} +2 -3
- package/build/js/{SparkScanViewMiniPreview-EfStrLLi.d.ts → SparkScanViewMiniPreview-CXYokFio.d.ts} +6 -7
- package/build/js/{SparkScanViewPreferenceManager-DT0zv8xs.d.ts → SparkScanViewPreferenceManager-BzTXb_KR.d.ts} +1 -2
- package/build/js/SparkScanViewPresenter-CxLG_H-K.js +1 -0
- package/build/js/{SparkScanViewPresenter-u_eIF0eg.d.ts → SparkScanViewPresenter-iBLQ63pl.d.ts} +10 -8
- package/build/js/{SparkScanViewSettings-d9lkb1df.d.ts → SparkScanViewSettings-D5HpDX8Z.d.ts} +5 -6
- package/build/js/{SparkScanViewStateManager-B1nnUruM.d.ts → SparkScanViewStateManager-Rf2Ftt8s.d.ts} +7 -8
- package/build/js/{SparkScanViewToast-BuoTSMje.d.ts → SparkScanViewToast-DdHGQi9D.d.ts} +1 -2
- package/build/js/{SparkScanViewToolbar-Dgq37_sM.d.ts → SparkScanViewToolbar-DLdMXvsM.d.ts} +4 -5
- package/build/js/{SparkScanViewTriggerButton-COY3Xg8a.d.ts → SparkScanViewTriggerButton-0C1PbogB.d.ts} +2 -3
- package/build/js/{SparkScanViewVisualFeedback-CFFxRzT-.d.ts → SparkScanViewVisualFeedback-BdYJS-hA.d.ts} +1 -2
- package/build/js/{StructuredAppendData-BR2Zp0-o.d.ts → StructuredAppendData-DwivILbp.d.ts} +1 -2
- package/build/js/StructuredAppendData.d.ts +1 -1
- package/build/js/{SymbologyDescription-BzgUJLwn.d.ts → SymbologyDescription-DJHzvaD2.d.ts} +2 -3
- package/build/js/SymbologyDescription.d.ts +1 -1
- package/build/js/{SymbologySettings-DcULuhzx.d.ts → SymbologySettings-BGlJWvRh.d.ts} +1 -2
- package/build/js/SymbologySettings.d.ts +1 -1
- package/build/js/{TrackedBarcode-CdGDhF7j.d.ts → TrackedBarcode-BAmndpF_.d.ts} +1 -2
- package/build/js/TrackedBarcode.d.ts +1 -1
- package/build/js/{TrackedBarcodeView-Do4QxIB8.d.ts → TrackedBarcodeView-CVjlyWkQ.d.ts} +0 -1
- package/build/js/TrackedBarcodeView.d.ts +1 -1
- package/build/js/ar/BarcodeAr.d.ts +1 -1
- package/build/js/ar/BarcodeArAnnotationProvider.d.ts +1 -1
- package/build/js/ar/BarcodeArFeedback.d.ts +1 -1
- package/build/js/ar/BarcodeArHighlightProvider.d.ts +1 -1
- package/build/js/ar/BarcodeArListener.d.ts +1 -1
- package/build/js/ar/BarcodeArPresenter.d.ts +3 -4
- package/build/js/ar/BarcodeArPresenter.js +1 -1
- package/build/js/ar/BarcodeArSession.d.ts +1 -1
- package/build/js/ar/BarcodeArSettings.d.ts +1 -1
- package/build/js/ar/BarcodeArView.d.ts +8 -9
- package/build/js/ar/BarcodeArView.js +1 -1
- package/build/js/ar/BarcodeArViewSettings.d.ts +0 -1
- package/build/js/ar/BarcodeArViewUiListener.d.ts +1 -1
- package/build/js/ar/defaults/Defaults.d.ts +0 -1
- package/build/js/ar/hashedId.d.ts +1 -2
- package/build/js/ar/ui/atoms/BarcodeArInfoAnnotationBodyComponent.d.ts +1 -1
- package/build/js/ar/ui/atoms/BarcodeArInfoAnnotationFooter.d.ts +1 -1
- package/build/js/ar/ui/atoms/BarcodeArInfoAnnotationHeader.d.ts +1 -1
- package/build/js/ar/ui/atoms/private/BarcodeArInfoAnnotationHeaderFooterUtils.d.ts +0 -1
- package/build/js/ar/ui/atoms/private/BarcodeStatusIconContainer.d.ts +0 -1
- package/build/js/ar/ui/molecules/private/CameraSwitchButton.d.ts +0 -1
- package/build/js/ar/ui/organisms/BarcodeArAnnotation.d.ts +1 -1
- package/build/js/ar/ui/organisms/BarcodeArCircleHighlight.d.ts +2 -3
- package/build/js/ar/ui/organisms/BarcodeArHighlight.d.ts +1 -1
- package/build/js/ar/ui/organisms/BarcodeArInfoAnnotation.d.ts +5 -6
- package/build/js/ar/ui/organisms/BarcodeArPopoverAnnotation.d.ts +2 -3
- package/build/js/ar/ui/organisms/BarcodeArPopoverAnnotationButton.d.ts +0 -1
- package/build/js/ar/ui/organisms/BarcodeArRectangleHighlight.d.ts +2 -3
- package/build/js/ar/ui/organisms/BarcodeArResponsiveAnnotation.d.ts +18 -10
- package/build/js/ar/ui/organisms/BarcodeArResponsiveAnnotation.js +1 -1
- package/build/js/ar/ui/organisms/BarcodeArStatusIconAnnotation.d.ts +2 -3
- package/build/js/ar/ui/organisms/private/AnchorAndDirectionUtils.d.ts +1 -2
- package/build/js/ar/ui/organisms/private/AnchorAndDirectionUtils.js +1 -1
- package/build/js/ar/ui/organisms/private/CheckLayout.d.ts +0 -1
- package/build/js/ar/ui/organisms/private/updatePosition.d.ts +0 -1
- package/build/js/dataCaptureWorkerRelated-CLcrOCqV.d.ts +415 -0
- package/build/js/defaults/DefaultsBarcodeBatch.d.ts +1 -2
- package/build/js/defaults/DefaultsBarcodeCapture.d.ts +1 -2
- package/build/js/defaults/DefaultsBarcodeFind.d.ts +1 -2
- package/build/js/defaults/DefaultsBarcodeFind.js +1 -1
- package/build/js/defaults/DefaultsSparkScan.d.ts +2 -3
- package/build/js/defaults/DefaultsSymbologies.d.ts +4 -5
- package/build/js/{events-Ca6wkIHV.d.ts → events-BgAvu2tI.d.ts} +1 -1
- package/build/js/find/BarcodeFind.d.ts +1 -1
- package/build/js/find/BarcodeFindBasicOverlay.d.ts +1 -1
- package/build/js/find/BarcodeFindFeedback.d.ts +1 -1
- package/build/js/find/BarcodeFindItem.d.ts +1 -1
- package/build/js/find/BarcodeFindPresenter.d.ts +6 -7
- package/build/js/find/BarcodeFindSession.d.ts +1 -1
- package/build/js/find/BarcodeFindSettings.d.ts +1 -1
- package/build/js/find/BarcodeFindTransformer.d.ts +1 -1
- package/build/js/find/BarcodeFindView.d.ts +1 -1
- package/build/js/find/BarcodeFindViewSettings.d.ts +1 -1
- package/build/js/find/BarcodeFindViewUiListener.d.ts +1 -1
- package/build/js/find/index.d.ts +7 -7
- package/build/js/find/ui/atoms/BarcodeSvgIcon.d.ts +0 -1
- package/build/js/find/ui/atoms/CardListButton.d.ts +0 -1
- package/build/js/find/ui/atoms/Dot.d.ts +1 -5
- package/build/js/find/ui/atoms/ExitSvgIcon.d.ts +0 -1
- package/build/js/find/ui/atoms/ItemFoundSvgIcon.d.ts +0 -1
- package/build/js/find/ui/atoms/TorchOffSvgIcon.d.ts +0 -1
- package/build/js/find/ui/atoms/TorchOnSvgIcon.d.ts +0 -1
- package/build/js/find/ui/molecules/CardListContainer.d.ts +0 -1
- package/build/js/find/ui/molecules/ImageAndTextCardLayout.d.ts +0 -1
- package/build/js/find/ui/molecules/ProgressBarWithLabel.d.ts +0 -1
- package/build/js/find/ui/molecules/ProgressBarWithLabel.js +1 -1
- package/build/js/find/ui/organisms/FindLayout.d.ts +1 -2
- package/build/js/find/ui/organisms/FindLayout.js +1 -1
- package/build/js/global.d.ts +5 -3
- package/build/js/index-BQubBIYz.d.ts +12 -0
- package/build/js/index-CJ6S6C6z.d.ts +7 -0
- package/build/js/index.d.ts +55 -53
- package/build/js/moduleLoader.d.ts +0 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/private/SmartScanSelectionOverlay.d.ts +0 -1
- package/build/js/private/isDataCaptureView.d.ts +0 -1
- package/build/js/private/sandbox.d.ts +0 -1
- package/build/js/private/smartScanIntentionHelper.d.ts +1 -2
- package/build/js/spark/SparkScan.d.ts +1 -1
- package/build/js/spark/SparkScanAnalyticsManager.d.ts +1 -1
- package/build/js/spark/SparkScanBarcodeFeedback.d.ts +1 -1
- package/build/js/spark/SparkScanBarcodeFeedback.js +1 -1
- package/build/js/spark/SparkScanFeedbackDelegate.d.ts +1 -1
- package/build/js/spark/SparkScanOverlay.d.ts +2 -3
- package/build/js/spark/SparkScanOverlayStyle.d.ts +1 -1
- package/build/js/spark/SparkScanPreviewBehavior.d.ts +1 -1
- package/build/js/spark/SparkScanScanningBehavior.d.ts +1 -1
- package/build/js/spark/SparkScanScanningMode.d.ts +1 -1
- package/build/js/spark/SparkScanSession.d.ts +1 -1
- package/build/js/spark/SparkScanSettings.d.ts +1 -1
- package/build/js/spark/SparkScanTargetAimerViewfinder.d.ts +0 -1
- package/build/js/spark/index.d.ts +15 -14
- package/build/js/spark/sounds.d.ts +0 -1
- package/build/js/spark/ui/SparkScanCameraManager.d.ts +2 -3
- package/build/js/spark/ui/SparkScanMiniPreviewSize.d.ts +1 -1
- package/build/js/spark/ui/SparkScanOverlayManager.d.ts +5 -6
- package/build/js/spark/ui/SparkScanTimeoutManager.d.ts +1 -1
- package/build/js/spark/ui/SparkScanToastSettings.d.ts +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.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewIcon.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewMiniPreview.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewPreferenceManager.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewPresenter.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewPresenter.js +1 -1
- package/build/js/spark/ui/SparkScanViewSettings.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewState.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewStateManager.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewToast.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewToolbar.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewTriggerButton.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewUiListener.d.ts +1 -1
- package/build/js/spark/ui/SparkScanViewVisualFeedback.d.ts +1 -1
- package/build/js/spark/ui/constants/attributes.d.ts +1 -1
- package/build/js/spark/ui/constants/colors.d.ts +2 -4
- package/build/js/spark/ui/constants/events.d.ts +2 -2
- package/build/js/spark/ui/constants/tags.d.ts +1 -1
- package/build/js/spark/ui/controllers/DragController.d.ts +0 -1
- package/build/js/spark/ui/controllers/LongPressController.d.ts +1 -2
- package/build/js/spark/ui/index.d.ts +16 -15
- package/build/js/spark/ui/index.js +1 -1
- package/build/js/umd/index.js +1 -0
- package/build/js/vite-env.d.ts +1 -1
- package/build/js/worker/BarcodeArMode.d.ts +1 -1
- package/build/js/worker/BarcodeArMode.js +1 -1
- package/build/js/worker/BarcodeBatchMode.d.ts +1 -1
- package/build/js/worker/BarcodeBatchMode.js +1 -1
- package/build/js/worker/BarcodeCaptureMode.d.ts +1 -1
- package/build/js/worker/BarcodeCaptureWorkerManager.d.ts +1 -2
- package/build/js/worker/BarcodeCaptureWorkerManager.js +1 -1
- package/build/js/worker/BarcodeFindMode.d.ts +1 -1
- package/build/js/worker/BarcodeFindMode.js +1 -1
- package/build/js/worker/PropertyBehaviorSubject.d.ts +1 -1
- package/build/js/worker/PropertyPushSource.d.ts +1 -2
- package/build/js/worker/SparkScanMode.d.ts +1 -1
- package/build/js/worker/SparkScanMode.js +1 -1
- package/build/js/worker/WorkerMain.d.ts +2 -3
- 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 -376
- package/build/js/worker/index.d.ts +1 -1
- package/package.json +11 -7
- package/sdc-lib/barcode-worker-8.6.0-beta.1.js +6 -0
- package/sdc-lib/resources/models/aus_mdl_keypoint_detection.1b3529e0e8a3.model +0 -0
- package/sdc-lib/resources/models/barcode_classification_default.5afae5235672.model +0 -0
- package/sdc-lib/resources/models/barcode_keypoints_oned.963fc43efda2.model +0 -0
- package/sdc-lib/resources/models/barcode_keypoints_twod.90548e549497.model +0 -0
- package/sdc-lib/resources/models/barcode_label_localization_mslc_model_s.cf4be2418f6d.model +0 -0
- package/sdc-lib/resources/models/barcode_label_localization_mslc_model_smartphone.d37117f6a058.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_clutter_aware.40a9ddd42447.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_default.67ae150de2e5.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_dpm_default.96d5335f10a1.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default.3aff51b79974.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_oned_default.ca3e3afb3c45.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_twod_default.62d5ab2b650d.model +0 -0
- package/sdc-lib/resources/models/id_outline_localization_model_kpts.376104335628.model +0 -0
- package/sdc-lib/resources/models/mqr_model_1.f74eb91b2d3b.model +0 -0
- package/sdc-lib/resources/models/mqr_model_2.300660c7d3db.model +0 -0
- package/sdc-lib/resources/models/mrz_line_localization.6598e20b3c9e.model +0 -0
- package/sdc-lib/resources/models/mrz_localization.07beaad40bbd.model +0 -0
- package/sdc-lib/resources/models/ocr_attention.61cf55c1930f.model +0 -0
- package/sdc-lib/resources/models/ocr_attention_big.81959e2e4ef4.model +0 -0
- package/sdc-lib/resources/models/price_localization_in_whole_label.ef6641ccf26f.model +0 -0
- package/sdc-lib/resources/models/qr_model_1.d46cc8f45676.model +0 -0
- package/sdc-lib/resources/models/via_id_template_database.948ef137372d.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/BarcodeArAnnotationVariation-nsxy75aq.d.ts +0 -8
- package/build/js/BarcodeArViewUiListener-BwMQnGJV.d.ts +0 -10
- package/build/js/BarcodeCaptureWorkerManager-CKnx0TUF.js +0 -1
- package/build/js/SparkScanViewPresenter-26JfPd8a.js +0 -1
- package/build/js/ar/ui/organisms/private/BarcodeArAnnotationVariation.d.ts +0 -2
- package/build/js/ar/ui/organisms/private/BarcodeArAnnotationVariation.js +0 -1
- package/build/js/index-BFQkemCh.d.ts +0 -1
- package/build/js/index-LOv54jhI.d.ts +0 -1
- package/sdc-lib/barcode-worker-8.5.2.js +0 -6
- package/sdc-lib/resources/models/aus_mdl_keypoint_detection.17f1b2958a9e.model +0 -0
- package/sdc-lib/resources/models/barcode_classification_default.48685f5fe19b.model +0 -0
- package/sdc-lib/resources/models/barcode_keypoints_oned.c499e5bd6ed4.model +0 -0
- package/sdc-lib/resources/models/barcode_label_localization_mslc_model_s.616a59ec3a8d.model +0 -0
- package/sdc-lib/resources/models/barcode_label_localization_mslc_model_smartphone.29decf3dd9e6.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_clutter_aware.69933853e03e.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_default.59f74a846b63.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_dpm_default.7e4fe5631f81.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default.184ecbeb5b83.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_oned_default.c547484132c1.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_twod_default.4b64523bf755.model +0 -0
- package/sdc-lib/resources/models/id_outline_localization_model_kpts.b74ff5cc58cf.model +0 -0
- package/sdc-lib/resources/models/mrz_line_localization.577844e2ebed.model +0 -0
- package/sdc-lib/resources/models/mrz_localization.77e331c44b52.model +0 -0
- package/sdc-lib/resources/models/ocr_attention.75e86b6ca0ca.model +0 -0
- package/sdc-lib/resources/models/price_localization_in_whole_label.555b33695325.model +0 -0
- package/sdc-lib/resources/models/qr_model_1.e790edc14d39.model +0 -0
- package/sdc-lib/resources/models/via_id_template_database.e54ca9420de3.model +0 -0
- /package/build/js/{ArucoDictionaryPreset-CsmMpOvV.d.ts → ArucoDictionaryPreset-DYb-qGsX.d.ts} +0 -0
- /package/build/js/{BarcodeFindTransformer-BUhcJDTx.d.ts → BarcodeFindTransformer-BwqxNv3w.d.ts} +0 -0
- /package/build/js/{PropertyBehaviorSubject-ChzH7iRU.d.ts → PropertyBehaviorSubject-C6JRRRVs.d.ts} +0 -0
- /package/build/js/{Range-DU0W-YMk.d.ts → Range-OX89uo_V.d.ts} +0 -0
- /package/build/js/{ScanIntention-BSTJBjPO.d.ts → ScanIntention-BGrIZvQ0.d.ts} +0 -0
- /package/build/js/{SelectionMode-AuD4eRzF.d.ts → SelectionMode-BJr-FYzy.d.ts} +0 -0
- /package/build/js/{SparkScanMiniPreviewSize-De0jKtsO.d.ts → SparkScanMiniPreviewSize-1kgiK7Y2.d.ts} +0 -0
- /package/build/js/{SparkScanOverlayStyle-DN9ZBjx9.d.ts → SparkScanOverlayStyle-z5snxb98.d.ts} +0 -0
- /package/build/js/{SparkScanPreviewBehavior-DUe7DkaL.d.ts → SparkScanPreviewBehavior-D_gxTRwy.d.ts} +0 -0
- /package/build/js/{SparkScanScanningBehavior-DQLdEXPW.d.ts → SparkScanScanningBehavior-CqzNsaaK.d.ts} +0 -0
- /package/build/js/{SparkScanViewState-QCAjXmlR.d.ts → SparkScanViewState-DQ4Mf4ZI.d.ts} +0 -0
- /package/build/js/{attributes-DLzV3au6.d.ts → attributes-DsoB2PgM.d.ts} +0 -0
- /package/build/js/{tags-DWZEPE_e.d.ts → tags-CHq3dmB8.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isDataCaptureView as e}from"../private/isDataCaptureView.js";import{BarcodeAr as t}from"./BarcodeAr.js";import{BarcodeArPresenter as n}from"./BarcodeArPresenter.js";import{BarcodeArViewSettings as r}from"./BarcodeArViewSettings.js";import{hashedId as i}from"./hashedId.js";import{CameraSwitchButton as a}from"./ui/molecules/private/CameraSwitchButton.js";import"./ui/organisms/BarcodeArAnnotation.js";import"./ui/organisms/BarcodeArInfoAnnotation.js";import{BarcodeArPopoverAnnotation as o}from"./ui/organisms/BarcodeArPopoverAnnotation.js";import{CheckLayout as s}from"./ui/organisms/private/CheckLayout.js";import{BarcodeArCircleHighlight as c}from"./ui/organisms/BarcodeArCircleHighlight.js";import{BarcodeArRectangleHighlight as l}from"./ui/organisms/BarcodeArRectangleHighlight.js";import"./ui/organisms/private/BarcodeArAnnotationVariation.js";import{BarcodeArResponsiveAnnotation as u}from"./ui/organisms/BarcodeArResponsiveAnnotation.js";import{Anchor as d,DataCaptureView as f,Direction as p,Point as m,Size as h,ZoomSwitchControl as g}from"@scandit/web-datacapture-core";import{Timeout as _}from"@scandit/web-datacapture-core/build/js/private/utils/timeout.js";import{ScanditHTMLElement as v}from"@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js";import{defineCustomElements as y}from"@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js";import{TorchSwitchIconButton as b}from"@scandit/web-datacapture-core/build/js/private/ui/molecules/TorchSwitchIconButton.js";import{Backdrop as x}from"@scandit/web-datacapture-core/build/js/private/ui/atoms/Backdrop.js";import{css as S}from"@scandit/web-datacapture-core/build/js/private/utils/css.js";import{calculateArea as C,calculateHeight as w,calculateWidth as T}from"@scandit/web-datacapture-core/build/js/private/utils/quadrilateralUtils.js";const E={async highlightForBarcode(e,t){t(l.create(e))}};var D=class l extends v{constructor(...e){super(...e),this.torchSwitchIconButton=null,this.cameraSwitchButton=null,this.zoomSwitchControl=null,this._shouldShowTorchControl=!1,this._isTorchAvailable=!1,this.onTorchButtonClickHandler=this.onTorchButtonClick.bind(this),this.onCameraSwitchButtonHandler=this.onCameraSwitchButtonClick.bind(this),this.onLayoutPointerDownHandler=this.onLayoutPointerDown.bind(this),this.onInfoAnnotationTapHandler=this.onInfoAnnotationTap.bind(this),this.pendingDeletionTimeout=null}set shouldShowZoomControl(e){var t;let n=(t=this.zoomSwitchControl)==null?void 0:t.zoomSwitchPill;n&&(n.hidden=!e)}get shouldShowZoomControl(){var e;let t=(e=this.zoomSwitchControl)==null?void 0:e.zoomSwitchPill;return t?!t.hidden:!1}set shouldShowCameraSwitchControl(e){this.cameraSwitchButton&&(this.cameraSwitchButton.hidden=!e)}get shouldShowCameraSwitchControl(){return this.cameraSwitchButton===null?!1:!this.cameraSwitchButton.hidden}set shouldShowTorchControl(e){this.torchSwitchIconButton!==null&&(this._shouldShowTorchControl=e,this.torchSwitchIconButton.hidden=!(e&&this._isTorchAvailable))}get shouldShowTorchControl(){return this._shouldShowTorchControl}set torchControlPosition(e){var t;(t=this.torchSwitchIconButton)==null||t.setAttribute(`slot`,`controls-${e===d.Center?d.TopLeft:e}`)}get torchControlPosition(){var e;let t=((e=this.torchSwitchIconButton)==null?void 0:e.getAttribute(`slot`))??``;return t===``?d.TopLeft:t.replace(`controls-`,``)}set zoomControlPosition(e){var t;let n=(t=this.zoomSwitchControl)==null?void 0:t.zoomSwitchPill;n==null||n.setAttribute(`slot`,`controls-${e===d.Center?d.BottomRight:e}`)}get zoomControlPosition(){var e;let t=(e=this.zoomSwitchControl)==null?void 0:e.zoomSwitchPill,n=(t==null?void 0:t.getAttribute(`slot`))??``;return n===``?d.BottomRight:n.replace(`controls-`,``)}set cameraSwitchControlPosition(e){var t;(t=this.cameraSwitchButton)==null||t.setAttribute(`slot`,`controls-${e===d.Center?d.TopRight:e}`)}get cameraSwitchControlPosition(){var e;let t=((e=this.cameraSwitchButton)==null?void 0:e.getAttribute(`slot`))??``;return t===``?d.TopRight:t.replace(`controls-`,``)}get logoStyle(){return this.dataCaptureView.logoStyle}set logoStyle(e){this.dataCaptureView.logoStyle=e}get logoAnchor(){return this.dataCaptureView.logoAnchor}set logoAnchor(e){this.dataCaptureView.logoAnchor=e}get logoOffset(){return this.dataCaptureView.logoOffset}set logoOffset(e){this.dataCaptureView.logoOffset=e}static async createWithSettings(r,i,a,o,c){l.register();let u=document.createElement(l.tag);return u.barcodeArViewSettings=o,u.layout=s.create(),u.append(u.layout),e(r)?(u.dataCaptureView=r,u.dataCaptureView.containerElement.prepend(u),await r.setContext(i)):(u.dataCaptureView=await f.forContext(i),u.dataCaptureView.connectToElement(r),u.dataCaptureView.containerElement.prepend(u)),u.presenter=new n(u,i,a,o,c??t.createRecommendedCameraSettings()),await u.presenter.prepare(),await u.installZoomControl(),u}static async create(e,t,n){return l.createWithSettings(e,t,n,new r)}static register(){y({[s.tag]:s,[a.tag]:a,[b.tag]:b,[l.tag]:l,[x.tag]:x,[u.tag]:u})}static createStyleElement(){return S`[data-could-be-deleted=true]{display:none!important}[data-on-foreground=true]{z-index:3}${l.tag}{inset:0;position:absolute;z-index:1}`}getHighlightForBarcode(e){return this.queryHighlightByDataId(i(e))}getAnnotationForBarcode(e){return this.queryAnnotationByDataId(i(e))}async start(){return this.presenter.startSearching()}async stop(){return this.presenter.stopSearching()}async pause(){return this.presenter.pauseSearching()}reset(){this.deletePendingViews(),this.deleteAllViews()}getNotificationPresenter(){return this.dataCaptureView.getNotificationPresenter()}setTorchAvailable(e){this._isTorchAvailable=e,this.torchSwitchIconButton!==null&&(this.torchSwitchIconButton.hidden=!(this._shouldShowTorchControl&&this._isTorchAvailable))}toggleTorchIcon(e){this.torchSwitchIconButton!==null&&(this.torchSwitchIconButton.state=e)}onTorchButtonClick(){this.presenter.onTorchButtonClicked()}onCameraSwitchButtonClick(){this.presenter.onCameraSwitchButtonClicked()}async installZoomControl(){this.zoomSwitchControl=new g,await this.zoomSwitchControl.install(this.dataCaptureView);let e=this.zoomSwitchControl.zoomSwitchPill;e&&(e.setAttribute(`slot`,`controls-${d.BottomRight}`),e.hidden=!0,this.layout.append(e))}connectedCallback(){this.torchSwitchIconButton=b.create(),this.torchSwitchIconButton.shadow=!0,this.torchSwitchIconButton.size=36,this.torchSwitchIconButton.slot=`controls-${this.torchControlPosition}`,this.torchSwitchIconButton.hidden=!0,this.torchSwitchIconButton.addEventListener(`pointerdown`,this.onTorchButtonClickHandler),this.cameraSwitchButton=a.create(),this.cameraSwitchButton.slot=`controls-${this.cameraSwitchControlPosition}`,this.cameraSwitchButton.hidden=!0,this.cameraSwitchButton.addEventListener(`pointerdown`,this.onCameraSwitchButtonHandler),this.layout.append(this.torchSwitchIconButton,this.cameraSwitchButton),this.layout.addEventListener(`pointerdown`,this.onLayoutPointerDownHandler),this.layout.addEventListener(`BarcodeArInfoAnnotationEventTap`,this.onInfoAnnotationTapHandler),this.backdrop=x.create(),this.layout.append(this.backdrop),this.pendingDeletionTimeout=new _(1e3,()=>{this.deletePendingViews()}),this.prepend(l.createStyleElement())}disconnectedCallback(){var e,t,n;this.deleteAllViews(),(e=this.torchSwitchIconButton)==null||e.removeEventListener(`pointerdown`,this.onTorchButtonClickHandler),(t=this.cameraSwitchButton)==null||t.removeEventListener(`pointerdown`,this.onCameraSwitchButtonHandler),(n=this.zoomSwitchControl)==null||n.remove(),this.layout.removeEventListener(`pointerdown`,this.onLayoutPointerDownHandler),this.layout.removeEventListener(`BarcodeArInfoAnnotationEventTap`,this.onInfoAnnotationTapHandler)}isPopoverAnnotation(e){return e instanceof o}isAnnotation(e){var t;return((t=e.dataset)==null?void 0:t.identifier)==null?!1:e.dataset.identifier.endsWith(`-annotation`)}areMultiplePopoverAllowed(){for(let e of this.layout.querySelectorAll(`[data-identifier$='-annotation']`))if(e&&this.isPopoverAnnotation(e)&&e.annotationTrigger===`highlightTapAndBarcodeScan`)return!0;return!1}async onLayoutPointerDown(e){let t=e.target,n=t==null?void 0:t.closest(`[data-identifier$='-highlight']`),r=t==null?void 0:t.closest(o.tag);if((n==null?void 0:n.dataset.id)!=null){await this.handleHighlightClick(n);return}if((r==null?void 0:r.dataset.id)!=null){await this.handleAnnotationClick(r);return}await this.handleClickOutside()}async handleHighlightClick(e){var t;this.presenter.emitTappedFeedback(),(t=this.listener)==null||t.didTapHighlightForBarcode(this.presenter.barcodeAr,e.barcode,e);let n=this.queryAnnotationByDataIdentifier(e.dataset.identifier.replace(`-highlight`,``));!n||n.annotationTrigger===`barcodeScan`||(this.isPopoverAnnotation(n)?await this.handlePopoverHighlightClick(n,e):n.hidden=!n.hidden)}async handlePopoverHighlightClick(e,t){if(!this.areMultiplePopoverAllowed()){var n;let e=this.layout.querySelector(`${o.tag}[data-on-foreground="true"]`),t=e==null||(n=e.dataset.identifier)==null?void 0:n.replace(`-annotation`,`-highlight`),r=this.layout.querySelector(`[data-identifier="${t}"]`);e!=null&&r!=null&&await this.hideBarcodeArPopover(e,r,!1)}await this.toggleBarcodeArPopover(e,t)}async handleAnnotationClick(e){var t;let n=(t=e.dataset.identifier)==null?void 0:t.replace(`-annotation`,`-highlight`),r=this.layout.querySelector(`[data-identifier="${n}"]`);r&&await this.toggleBarcodeArPopover(e,r)}async handleClickOutside(){var e;if(this.areMultiplePopoverAllowed())return;let t=this.layout.querySelector(`${o.tag}[data-on-foreground="true"]`);if(!t)return;let n=(e=t.dataset.identifier)==null?void 0:e.replace(`-annotation`,`-highlight`),r=this.layout.querySelector(`[data-identifier="${n}"]`);r&&await this.hideBarcodeArPopover(t,r)}onInfoAnnotationTap(){this.presenter.emitTappedFeedback()}async showBarcodeArPopover(e,t){e.dataset.onForeground=`true`,e.hidden=!1,t.dataset.onForeground=`true`,this.backdrop.open=!0}async hideBarcodeArPopover(e,t,n=!0){e.dataset.onForeground=`false`,e.hidden=!0,t&&(t.dataset.onForeground=`false`),n&&this.hideBackdropIfNoPopovers()}hideBackdropIfNoPopovers(){[...this.layout.querySelectorAll(`${o.tag}`)].every(e=>e.hidden)&&(this.backdrop.open=!1)}async toggleBarcodeArPopover(e,t){e.hidden?await this.showBarcodeArPopover(e,t):await this.hideBarcodeArPopover(e,t)}deleteAllViews(){for(let e of this.layout.querySelectorAll(`[data-identifier]`))e.remove()}deletePendingViews(){for(let e of this.layout.querySelectorAll(`[data-could-be-deleted='true']`))e.remove();this.hideBackdropIfNoPopovers()}identifierForHighlight(e){return`${e}-highlight`}identifierForAnnotation(e){return`${e}-annotation`}async onHighlightsOrAnnotationForTrackedBarcode(e){var t,n;await((t=this.highlightProvider??E)==null?void 0:t.highlightForBarcode(e.barcode,async t=>this.onHighlight(e,t))),await((n=this.annotationProvider)==null?void 0:n.annotationForBarcode(e.barcode,async t=>this.onAnnotation(e,t)))}async onAnnotation(e,t){let n=t,r=i(e.barcode);this.updateExistingAnnotation(r)||(await this.setupNewAnnotation(n,r,e),this.updateAnnotationPosition(e,n))}updateExistingAnnotation(e){let t=this.queryAnnotationByDataId(e);return t?(t.dataset.couldBeDeleted=`false`,!0):!1}async setupNewAnnotation(e,t,n){if(e.dataset.id=t,e.dataset.identifier=this.identifierForAnnotation(n.identifier),e.hidden=!0,this.layout.append(e),this.isPopoverAnnotation(e)){if(e.direction=p.Vertical,e.anchor??=`bottom-center`,this.areMultiplePopoverAllowed()||e.annotationTrigger===`highlightTapAndBarcodeScan`){let n=this.queryHighlightByDataId(t);n&&await this.showBarcodeArPopover(e,n)}}else e.hidden=e.annotationTrigger===`highlightTap`}getAnnotationVariationForQuad(e,t){let n=Math.max(0,Math.min(1,t)),r=e.anchorPositions,i=C(r),a=this.dataCaptureView.width*this.dataCaptureView.height;if(i<=0||a<=0)return 0;let o=i/a;return Math.max(0,Math.min(1,o))<=n?2:1}async onHighlight(e,t){let n=i(e.barcode),r=this.queryHighlightByDataId(n);r?r.dataset.couldBeDeleted=`false`:(t.dataset.id=n,t.dataset.identifier=this.identifierForHighlight(e.identifier),this.updateHighlightPosition(e,t),this.layout.append(t))}queryHighlightByDataIdentifier(e){return this.layout.querySelector(`[data-identifier$="${e}-highlight"]`)}queryAnnotationByDataIdentifier(e){return this.layout.querySelector(`[data-identifier$="${e}-annotation"]`)}queryHighlightByDataId(e){return this.layout.querySelector(`[data-identifier$="-highlight"][data-id="${e}"]`)}queryAnnotationByDataId(e){return this.layout.querySelector(`[data-identifier$="-annotation"][data-id="${e}"]`)}updateRemovedTrackedBarcodes(e){var t;let n=this.querySelectorAll(`[data-identifier]`);if(Object.keys(e.allTrackedBarcodes).length===0){var r;for(let e of n)e.dataset.couldBeDeleted=`true`;if(!((r=this.pendingDeletionTimeout)!=null&&r.running)){var i;(i=this.pendingDeletionTimeout)==null||i.start()}return}let a=new Set(e.removedTrackedBarcodes);for(let e of n){var o;let t=(o=e.dataset.identifier)==null?void 0:o.replace(`-highlight`,``).replace(`-annotation`,``);t!=null&&a.has(t)&&(e.dataset.couldBeDeleted=`true`)}if(!((t=this.pendingDeletionTimeout)!=null&&t.running)){var s;(s=this.pendingDeletionTimeout)==null||s.start()}}render(e){for(let[t,n]of Object.entries(e.allTrackedBarcodes)){e.addedTrackedBarcodes[t]!=null&&this.onHighlightsOrAnnotationForTrackedBarcode(n);let r=i(n.barcode),a=this.queryAnnotationByDataId(r),o=this.queryHighlightByDataId(r);o&&(this.updateBrushSize(o,n),this.updateHighlightPosition(n,o)),a&&this.updateAnnotationPosition(n,a,o)}this.updateRemovedTrackedBarcodes(e)}updateHighlightPosition(e,t,n=`center`){if(t.hidden)return;let r=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(e.anchorPositions),i=this.normalizedViewPointFromFrameAnchorPositions(r,n);t.updatePosition(i,new m(-50,-50),this.calculateRotationAngle(r.topLeft,r.topRight))}updateBrushSize(e,t){if(e.width==null||e.height==null)return;let n=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(t.anchorPositions),r=Math.round(T(n)),i=Math.round(w(n));e.width!==r&&(e.width=r),e.height!==i&&(e.height=i)}getTransformOrigin(e){return{"top-center":new m(-50,0),"bottom-center":new m(-50,-100),"left-center":new m(0,-50),"right-center":new m(-100,-50)}[e]}calculateAnnotationPosition(e,t,n){let r=e.orderVerticesByPosition(),i=this.normalizedViewPointFromFrameAnchorPositions(e,`center`),a={"bottom-center":()=>{let e=this.normalizedViewPointFromFrameAnchorPositions(r,`topCenter`);return new m(e.x,e.y-7)},"top-center":()=>{let e=this.normalizedViewPointFromFrameAnchorPositions(r,`bottomCenter`);return new m(e.x,e.y+7)},"right-center":()=>{let e=this.normalizedViewPointFromFrameAnchorPositions(r,`centerLeft`);return new m(e.x-7,e.y)},"left-center":()=>{let e=this.normalizedViewPointFromFrameAnchorPositions(r,`centerRight`);return new m(e.x+7,e.y)}}[t]();return n?(n instanceof c,{"bottom-center":new m(i.x,i.y-7-n.clientHeight/2),"top-center":new m(i.x,i.y+7+n.clientHeight/2),"right-center":new m(i.x-7-n.clientWidth/2,i.y),"left-center":new m(i.x+7+n.clientWidth/2,i.y)}[t]??a):a}updateAnnotationPosition(e,t,n){let r=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(e.anchorPositions);t.anchor||=`top-center`,t.annotationVariation!=null&&(t.annotationVariation=this.getAnnotationVariationForQuad(e,u.threshold));let i=this.getTransformOrigin(t.anchor),a=this.calculateAnnotationPosition(r,t.anchor,n);t.updatePosition(a,i,this.calculateRotationAngle(r.topLeft,r.topRight))}normalizedViewPointFromFrameAnchorPositions(e,t=`center`){let n=this.presenter.currentCamera.getMirrorImageEnabled(),r=new h(this.dataCaptureView.width,this.dataCaptureView.height);if(n){let n=e[{centerLeft:`centerRight`,centerRight:`centerLeft`,center:`center`,topCenter:`topCenter`,bottomCenter:`bottomCenter`}[t]];return m.mirrorX(n,r)}return e[t]}calculateRotationAngle(e,t){let n=t.x-e.x,r=this.presenter.isCameraMirrored()?-(t.y-e.y):t.y-e.y;return Math.round(180/Math.PI*Math.atan2(r,n))}};D.tag=`scandit-barcode-ar-view`;export{D as BarcodeArView};
|
|
1
|
+
import{isDataCaptureView as e}from"../private/isDataCaptureView.js";import{BarcodeAr as t}from"./BarcodeAr.js";import{BarcodeArPresenter as n}from"./BarcodeArPresenter.js";import{BarcodeArViewSettings as r}from"./BarcodeArViewSettings.js";import{hashedId as i}from"./hashedId.js";import{CameraSwitchButton as a}from"./ui/molecules/private/CameraSwitchButton.js";import"./ui/organisms/BarcodeArAnnotation.js";import"./ui/organisms/BarcodeArInfoAnnotation.js";import{BarcodeArPopoverAnnotation as o}from"./ui/organisms/BarcodeArPopoverAnnotation.js";import{CheckLayout as s}from"./ui/organisms/private/CheckLayout.js";import{BarcodeArCircleHighlight as c}from"./ui/organisms/BarcodeArCircleHighlight.js";import{BarcodeArRectangleHighlight as l}from"./ui/organisms/BarcodeArRectangleHighlight.js";import{BarcodeArResponsiveAnnotation as u}from"./ui/organisms/BarcodeArResponsiveAnnotation.js";import{Anchor as d,DataCaptureView as f,Direction as p,Point as m,Size as h,ZoomSwitchControl as g}from"@scandit/web-datacapture-core";import{clamp as _}from"@scandit/web-datacapture-core/build/js/private/utils/clamp.js";import{Timeout as v}from"@scandit/web-datacapture-core/build/js/private/utils/timeout.js";import{ScanditHTMLElement as y}from"@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js";import{defineCustomElements as b}from"@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js";import{TorchSwitchIconButton as x}from"@scandit/web-datacapture-core/build/js/private/ui/molecules/TorchSwitchIconButton.js";import{Backdrop as S}from"@scandit/web-datacapture-core/build/js/private/ui/atoms/Backdrop.js";import{css as C}from"@scandit/web-datacapture-core/build/js/private/utils/css.js";import{calculateArea as w,calculateHeight as T,calculateWidth as E}from"@scandit/web-datacapture-core/build/js/private/utils/quadrilateralUtils.js";const D={async highlightForBarcode(e,t){t(l.create(e))}};var O=class l extends y{constructor(...e){super(...e),this.torchSwitchIconButton=null,this.cameraSwitchButton=null,this.zoomSwitchControl=null,this._shouldShowTorchControl=!1,this._isTorchAvailable=!1,this.onTorchButtonClickHandler=this.onTorchButtonClick.bind(this),this.onCameraSwitchButtonHandler=this.onCameraSwitchButtonClick.bind(this),this.onLayoutPointerDownHandler=this.onLayoutPointerDown.bind(this),this.onInfoAnnotationTapHandler=this.onInfoAnnotationTap.bind(this),this.pendingDeletionTimeout=null}set shouldShowZoomControl(e){var t;let n=(t=this.zoomSwitchControl)==null?void 0:t.zoomSwitchPill;n&&(n.hidden=!e)}get shouldShowZoomControl(){var e;let t=(e=this.zoomSwitchControl)==null?void 0:e.zoomSwitchPill;return t?!t.hidden:!1}set shouldShowCameraSwitchControl(e){this.cameraSwitchButton&&(this.cameraSwitchButton.hidden=!e)}get shouldShowCameraSwitchControl(){return this.cameraSwitchButton!==null&&!this.cameraSwitchButton.hidden}set shouldShowTorchControl(e){this.torchSwitchIconButton!==null&&(this._shouldShowTorchControl=e,this.torchSwitchIconButton.hidden=!(e&&this._isTorchAvailable))}get shouldShowTorchControl(){return this._shouldShowTorchControl}set torchControlPosition(e){var t;(t=this.torchSwitchIconButton)==null||t.setAttribute(`slot`,`controls-${e===d.Center?d.TopLeft:e}`)}get torchControlPosition(){var e;let t=((e=this.torchSwitchIconButton)==null?void 0:e.getAttribute(`slot`))??``;return t===``?d.TopLeft:t.replace(`controls-`,``)}set zoomControlPosition(e){var t;let n=(t=this.zoomSwitchControl)==null?void 0:t.zoomSwitchPill;n==null||n.setAttribute(`slot`,`controls-${e===d.Center?d.BottomRight:e}`)}get zoomControlPosition(){var e;let t=(e=this.zoomSwitchControl)==null?void 0:e.zoomSwitchPill,n=(t==null?void 0:t.getAttribute(`slot`))??``;return n===``?d.BottomRight:n.replace(`controls-`,``)}set cameraSwitchControlPosition(e){var t;(t=this.cameraSwitchButton)==null||t.setAttribute(`slot`,`controls-${e===d.Center?d.TopRight:e}`)}get cameraSwitchControlPosition(){var e;let t=((e=this.cameraSwitchButton)==null?void 0:e.getAttribute(`slot`))??``;return t===``?d.TopRight:t.replace(`controls-`,``)}get logoStyle(){return this.dataCaptureView.logoStyle}set logoStyle(e){this.dataCaptureView.logoStyle=e}get logoAnchor(){return this.dataCaptureView.logoAnchor}set logoAnchor(e){this.dataCaptureView.logoAnchor=e}get logoOffset(){return this.dataCaptureView.logoOffset}set logoOffset(e){this.dataCaptureView.logoOffset=e}static async createWithSettings(r,i,a,o,c){l.register();let u=document.createElement(l.tag);return u.barcodeArViewSettings=o,u.layout=s.create(),u.append(u.layout),e(r)?(u.dataCaptureView=r,u.dataCaptureView.containerElement.prepend(u),await r.setContext(i)):(u.dataCaptureView=await f.forContext(i),u.dataCaptureView.connectToElement(r),u.dataCaptureView.containerElement.prepend(u)),u.presenter=new n(u,i,a,o,c??t.createRecommendedCameraSettings()),await u.presenter.prepare(),await u.installZoomControl(),u}static async create(e,t,n){return l.createWithSettings(e,t,n,new r)}static register(){b({[s.tag]:s,[a.tag]:a,[x.tag]:x,[l.tag]:l,[S.tag]:S,[u.tag]:u})}static createStyleElement(){return C`[data-could-be-deleted=true]{display:none!important}[data-on-foreground=true]{z-index:3}${l.tag}{inset:0;position:absolute;z-index:1}`}getHighlightForBarcode(e){return this.queryHighlightByDataId(i(e))}getAnnotationForBarcode(e){return this.queryAnnotationByDataId(i(e))}async start(){return this.presenter.startSearching()}async stop(){return this.presenter.stopSearching()}async pause(){return this.presenter.pauseSearching()}reset(){this.deletePendingViews(),this.deleteAllViews()}getNotificationPresenter(){return this.dataCaptureView.getNotificationPresenter()}setTorchAvailable(e){this._isTorchAvailable=e,this.torchSwitchIconButton!==null&&(this.torchSwitchIconButton.hidden=!(this._shouldShowTorchControl&&this._isTorchAvailable))}toggleTorchIcon(e){this.torchSwitchIconButton!==null&&(this.torchSwitchIconButton.state=e)}onTorchButtonClick(){this.presenter.onTorchButtonClicked()}onCameraSwitchButtonClick(){this.presenter.onCameraSwitchButtonClicked()}async installZoomControl(){this.zoomSwitchControl=new g,await this.zoomSwitchControl.install(this.dataCaptureView);let e=this.zoomSwitchControl.zoomSwitchPill;e&&(e.setAttribute(`slot`,`controls-${d.BottomRight}`),e.hidden=!0,this.layout.append(e))}connectedCallback(){this.torchSwitchIconButton=x.create(),this.torchSwitchIconButton.shadow=!0,this.torchSwitchIconButton.size=36,this.torchSwitchIconButton.slot=`controls-${this.torchControlPosition}`,this.torchSwitchIconButton.hidden=!0,this.torchSwitchIconButton.addEventListener(`pointerdown`,this.onTorchButtonClickHandler),this.cameraSwitchButton=a.create(),this.cameraSwitchButton.slot=`controls-${this.cameraSwitchControlPosition}`,this.cameraSwitchButton.hidden=!0,this.cameraSwitchButton.addEventListener(`pointerdown`,this.onCameraSwitchButtonHandler),this.layout.append(this.torchSwitchIconButton,this.cameraSwitchButton),this.layout.addEventListener(`pointerdown`,this.onLayoutPointerDownHandler),this.layout.addEventListener(`BarcodeArInfoAnnotationEventTap`,this.onInfoAnnotationTapHandler),this.backdrop=S.create(),this.layout.append(this.backdrop),this.pendingDeletionTimeout=new v(1e3,()=>{this.deletePendingViews()}),this.prepend(l.createStyleElement())}disconnectedCallback(){var e,t,n;this.deleteAllViews(),this.presenter.release(),(e=this.torchSwitchIconButton)==null||e.removeEventListener(`pointerdown`,this.onTorchButtonClickHandler),(t=this.cameraSwitchButton)==null||t.removeEventListener(`pointerdown`,this.onCameraSwitchButtonHandler),(n=this.zoomSwitchControl)==null||n.remove(),this.layout.removeEventListener(`pointerdown`,this.onLayoutPointerDownHandler),this.layout.removeEventListener(`BarcodeArInfoAnnotationEventTap`,this.onInfoAnnotationTapHandler)}isPopoverAnnotation(e){return e instanceof o}isAnnotation(e){var t;return((t=e.dataset)==null?void 0:t.identifier)!=null&&e.dataset.identifier.endsWith(`-annotation`)}areMultiplePopoverAllowed(){for(let e of this.layout.querySelectorAll(`[data-identifier$='-annotation']`))if(e&&this.isPopoverAnnotation(e)&&e.annotationTrigger===`highlightTapAndBarcodeScan`)return!0;return!1}async onLayoutPointerDown(e){let t=e.target,n=t==null?void 0:t.closest(`[data-identifier$='-highlight']`),r=t==null?void 0:t.closest(o.tag);if((n==null?void 0:n.dataset.id)!=null){await this.handleHighlightClick(n);return}if((r==null?void 0:r.dataset.id)!=null){await this.handleAnnotationClick(r);return}await this.handleClickOutside()}async handleHighlightClick(e){var t;this.presenter.emitTappedFeedback(),(t=this.listener)==null||t.didTapHighlightForBarcode(this.presenter.barcodeAr,e.barcode,e);let n=this.queryAnnotationByDataIdentifier(e.dataset.identifier.replace(`-highlight`,``));!n||n.annotationTrigger===`barcodeScan`||(this.isPopoverAnnotation(n)?await this.handlePopoverHighlightClick(n,e):n.hidden=!n.hidden)}async handlePopoverHighlightClick(e,t){if(!this.areMultiplePopoverAllowed()){var n;let e=this.layout.querySelector(`${o.tag}[data-on-foreground="true"]`),t=e==null||(n=e.dataset.identifier)==null?void 0:n.replace(`-annotation`,`-highlight`),r=this.layout.querySelector(`[data-identifier="${t}"]`);e!=null&&r!=null&&await this.hideBarcodeArPopover(e,r,!1)}await this.toggleBarcodeArPopover(e,t)}async handleAnnotationClick(e){var t;let n=(t=e.dataset.identifier)==null?void 0:t.replace(`-annotation`,`-highlight`),r=this.layout.querySelector(`[data-identifier="${n}"]`);r&&await this.toggleBarcodeArPopover(e,r)}async handleClickOutside(){var e;if(this.areMultiplePopoverAllowed())return;let t=this.layout.querySelector(`${o.tag}[data-on-foreground="true"]`);if(!t)return;let n=(e=t.dataset.identifier)==null?void 0:e.replace(`-annotation`,`-highlight`),r=this.layout.querySelector(`[data-identifier="${n}"]`);r&&await this.hideBarcodeArPopover(t,r)}onInfoAnnotationTap(){this.presenter.emitTappedFeedback()}async showBarcodeArPopover(e,t){e.dataset.onForeground=`true`,e.hidden=!1,t.dataset.onForeground=`true`,this.backdrop.open=!0}async hideBarcodeArPopover(e,t,n=!0){e.dataset.onForeground=`false`,e.hidden=!0,t&&(t.dataset.onForeground=`false`),n&&this.hideBackdropIfNoPopovers()}hideBackdropIfNoPopovers(){[...this.layout.querySelectorAll(`${o.tag}`)].every(e=>e.hidden)&&(this.backdrop.open=!1)}async toggleBarcodeArPopover(e,t){e.hidden?await this.showBarcodeArPopover(e,t):await this.hideBarcodeArPopover(e,t)}deleteAllViews(){for(let e of this.layout.querySelectorAll(`[data-identifier]`))e.remove()}deletePendingViews(){for(let e of this.layout.querySelectorAll(`[data-could-be-deleted='true']`))e.remove();this.hideBackdropIfNoPopovers()}identifierForHighlight(e){return`${e}-highlight`}identifierForAnnotation(e){return`${e}-annotation`}async onHighlightsOrAnnotationForTrackedBarcode(e){var t,n;await((t=this.highlightProvider??D)==null?void 0:t.highlightForBarcode(e.barcode,async t=>this.onHighlight(e,t))),await((n=this.annotationProvider)==null?void 0:n.annotationForBarcode(e.barcode,async t=>this.onAnnotation(e,t)))}async onAnnotation(e,t){let n=t,r=i(e.barcode);this.updateExistingAnnotation(r)||(await this.setupNewAnnotation(n,r,e),this.updateAnnotationPosition(e,n))}updateExistingAnnotation(e){let t=this.queryAnnotationByDataId(e);return t?(t.dataset.couldBeDeleted=`false`,!0):!1}async setupNewAnnotation(e,t,n){if(e.dataset.id=t,e.dataset.identifier=this.identifierForAnnotation(n.identifier),e.hidden=!0,this.layout.append(e),this.isPopoverAnnotation(e)){if(e.direction=p.Vertical,e.anchor??=`bottom-center`,this.areMultiplePopoverAllowed()||e.annotationTrigger===`highlightTapAndBarcodeScan`){let n=this.queryHighlightByDataId(t);n&&await this.showBarcodeArPopover(e,n)}}else e.hidden=e.annotationTrigger===`highlightTap`}getAreaRatioForQuad(e){let t=e.anchorPositions,n=w(t),r=this.dataCaptureView.width*this.dataCaptureView.height;return n<=0||r<=0?NaN:_(n/r,0,1)}async onHighlight(e,t){let n=i(e.barcode),r=this.queryHighlightByDataId(n);r?r.dataset.couldBeDeleted=`false`:(t.dataset.id=n,t.dataset.identifier=this.identifierForHighlight(e.identifier),this.updateHighlightPosition(e,t),this.layout.append(t))}queryHighlightByDataIdentifier(e){return this.layout.querySelector(`[data-identifier$="${e}-highlight"]`)}queryAnnotationByDataIdentifier(e){return this.layout.querySelector(`[data-identifier$="${e}-annotation"]`)}queryHighlightByDataId(e){return this.layout.querySelector(`[data-identifier$="-highlight"][data-id="${e}"]`)}queryAnnotationByDataId(e){return this.layout.querySelector(`[data-identifier$="-annotation"][data-id="${e}"]`)}updateRemovedTrackedBarcodes(e){var t;let n=this.querySelectorAll(`[data-identifier]`);if(Object.keys(e.allTrackedBarcodes).length===0){var r;for(let e of n)e.dataset.couldBeDeleted=`true`;if(!((r=this.pendingDeletionTimeout)!=null&&r.running)){var i;(i=this.pendingDeletionTimeout)==null||i.start()}return}let a=new Set(e.removedTrackedBarcodes);for(let e of n){var o;let t=(o=e.dataset.identifier)==null?void 0:o.replace(`-highlight`,``).replace(`-annotation`,``);t!=null&&a.has(t)&&(e.dataset.couldBeDeleted=`true`)}if(!((t=this.pendingDeletionTimeout)!=null&&t.running)){var s;(s=this.pendingDeletionTimeout)==null||s.start()}}render(e){for(let[t,n]of Object.entries(e.allTrackedBarcodes)){e.addedTrackedBarcodes[t]!=null&&this.onHighlightsOrAnnotationForTrackedBarcode(n);let r=i(n.barcode),a=this.queryAnnotationByDataId(r),o=this.queryHighlightByDataId(r);o&&(this.updateBrushSize(o,n),this.updateHighlightPosition(n,o)),a&&this.updateAnnotationPosition(n,a,o)}this.updateRemovedTrackedBarcodes(e)}updateHighlightPosition(e,t,n=`center`){if(t.hidden)return;let r=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(e.anchorPositions),i=this.normalizedViewPointFromFrameAnchorPositions(r,n);t.updatePosition(i,new m(-50,-50),this.calculateRotationAngle(r.topLeft,r.topRight))}updateBrushSize(e,t){if(e.width==null||e.height==null)return;let n=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(t.anchorPositions),r=Math.round(E(n)),i=Math.round(T(n));e.width!==r&&(e.width=r),e.height!==i&&(e.height=i)}getTransformOrigin(e){return{"top-center":new m(-50,0),"bottom-center":new m(-50,-100),"left-center":new m(0,-50),"right-center":new m(-100,-50)}[e]}calculateAnnotationPosition(e,t,n){let r=e.orderVerticesByPosition(),i=this.normalizedViewPointFromFrameAnchorPositions(e,`center`),a={"bottom-center":()=>{let e=this.normalizedViewPointFromFrameAnchorPositions(r,`topCenter`);return new m(e.x,e.y-7)},"top-center":()=>{let e=this.normalizedViewPointFromFrameAnchorPositions(r,`bottomCenter`);return new m(e.x,e.y+7)},"right-center":()=>{let e=this.normalizedViewPointFromFrameAnchorPositions(r,`centerLeft`);return new m(e.x-7,e.y)},"left-center":()=>{let e=this.normalizedViewPointFromFrameAnchorPositions(r,`centerRight`);return new m(e.x+7,e.y)}}[t]();return n?(n instanceof c,{"bottom-center":new m(i.x,i.y-7-n.clientHeight/2),"top-center":new m(i.x,i.y+7+n.clientHeight/2),"right-center":new m(i.x-7-n.clientWidth/2,i.y),"left-center":new m(i.x+7+n.clientWidth/2,i.y)}[t]??a):a}updateAnnotationPosition(e,t,n){var r;let i=this.dataCaptureView.viewAnchorPositionsForFrameAnchorPositions(e.anchorPositions);t.anchor||=`top-center`,(r=t.updateForAreaRatio)==null||r.call(t,this.getAreaRatioForQuad(e));let a=this.getTransformOrigin(t.anchor),o=this.calculateAnnotationPosition(i,t.anchor,n);t.updatePosition(o,a,this.calculateRotationAngle(i.topLeft,i.topRight))}normalizedViewPointFromFrameAnchorPositions(e,t=`center`){let n=this.presenter.currentCamera.getMirrorImageEnabled(),r=new h(this.dataCaptureView.width,this.dataCaptureView.height);if(n){let n=e[{centerLeft:`centerRight`,centerRight:`centerLeft`,center:`center`,topCenter:`topCenter`,bottomCenter:`bottomCenter`}[t]];return m.mirrorX(n,r)}return e[t]}calculateRotationAngle(e,t){let n=t.x-e.x,r=this.presenter.isCameraMirrored()?-(t.y-e.y):t.y-e.y;return Math.round(180/Math.PI*Math.atan2(r,n))}};O.tag=`scandit-barcode-ar-view`;export{O as BarcodeArView};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as BarcodeArViewUiListener } from "../BarcodeArViewUiListener-
|
|
1
|
+
import { t as BarcodeArViewUiListener } from "../BarcodeArViewUiListener-x9WJWosB.js";
|
|
2
2
|
export { BarcodeArViewUiListener };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as BarcodeArInfoAnnotationBodyComponent } from "../../../BarcodeArInfoAnnotationBodyComponent-
|
|
1
|
+
import { t as BarcodeArInfoAnnotationBodyComponent } from "../../../BarcodeArInfoAnnotationBodyComponent-BXOaa1oT.js";
|
|
2
2
|
export { BarcodeArInfoAnnotationBodyComponent };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as BarcodeArInfoAnnotationFooter } from "../../../BarcodeArInfoAnnotationFooter-
|
|
1
|
+
import { t as BarcodeArInfoAnnotationFooter } from "../../../BarcodeArInfoAnnotationFooter-C3KhPT6G.js";
|
|
2
2
|
export { BarcodeArInfoAnnotationFooter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as BarcodeArInfoAnnotationHeader } from "../../../BarcodeArInfoAnnotationHeader-
|
|
1
|
+
import { t as BarcodeArInfoAnnotationHeader } from "../../../BarcodeArInfoAnnotationHeader-DCzML4Pn.js";
|
|
2
2
|
export { BarcodeArInfoAnnotationHeader };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Color, Optional, ScanditIcon } from "@scandit/web-datacapture-core";
|
|
2
2
|
import { ScanditHTMLElement as ScanditHTMLElement$1 } from "@scandit/web-datacapture-core/build/js/private/utils/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/main/ar/ui/atoms/private/BarcodeArInfoAnnotationHeaderFooterUtils.d.ts
|
|
5
4
|
declare const CONTAINER_SELECTOR = ".container";
|
|
6
5
|
declare const ICON_TEXT_SELECTOR = ".icon-text";
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Color } from "@scandit/web-datacapture-core";
|
|
2
2
|
import { ScanditHTMLElement as ScanditHTMLElement$1 } from "@scandit/web-datacapture-core/build/js/private/utils/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/main/ar/ui/atoms/private/BarcodeStatusIconContainer.d.ts
|
|
5
4
|
declare class BarcodeStatusIconContainer extends ScanditHTMLElement$1 {
|
|
6
5
|
static tag: "scandit-status-icon-container";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ScanditHTMLElement } from "@scandit/web-datacapture-core/build/js/private/utils/index.js";
|
|
2
|
-
|
|
3
2
|
//#region src/main/ar/ui/molecules/private/CameraSwitchButton.d.ts
|
|
4
3
|
declare class CameraSwitchButton extends ScanditHTMLElement {
|
|
5
4
|
static tag: "scandit-check-switch-camera-button";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as PrivateBarcodeArAnnotation, n as BarcodeArAnnotationAnchor, r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-
|
|
1
|
+
import { i as PrivateBarcodeArAnnotation, n as BarcodeArAnnotationAnchor, r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-BTMTqI9o.js";
|
|
2
2
|
export { BarcodeArAnnotation, BarcodeArAnnotationAnchor, BarcodeArAnnotationTrigger, PrivateBarcodeArAnnotation };
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as Barcode } from "../../../Barcode-
|
|
2
|
-
import { t as BarcodeArHighlight } from "../../../BarcodeArHighlight-
|
|
1
|
+
import { t as Barcode } from "../../../Barcode-DNvaiOyn.js";
|
|
2
|
+
import { t as BarcodeArHighlight } from "../../../BarcodeArHighlight-D002fuWB.js";
|
|
3
3
|
import { Brush, Point, ScanditIcon } from "@scandit/web-datacapture-core";
|
|
4
4
|
import { ScanditHTMLElement as ScanditHTMLElement$1 } from "@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js";
|
|
5
|
-
|
|
6
5
|
//#region src/main/ar/ui/organisms/BarcodeArCircleHighlight.d.ts
|
|
7
6
|
declare enum BarcodeArCircleHighlightPreset {
|
|
8
7
|
Dot = "dot",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as PrivateBarcodeArHighlight, t as BarcodeArHighlight } from "../../../BarcodeArHighlight-
|
|
1
|
+
import { n as PrivateBarcodeArHighlight, t as BarcodeArHighlight } from "../../../BarcodeArHighlight-D002fuWB.js";
|
|
2
2
|
export { BarcodeArHighlight, PrivateBarcodeArHighlight };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { t as Barcode } from "../../../Barcode-
|
|
2
|
-
import { r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-
|
|
3
|
-
import { t as BarcodeArInfoAnnotationBodyComponent } from "../../../BarcodeArInfoAnnotationBodyComponent-
|
|
4
|
-
import { t as BarcodeArInfoAnnotationFooter } from "../../../BarcodeArInfoAnnotationFooter-
|
|
5
|
-
import { t as BarcodeArInfoAnnotationHeader } from "../../../BarcodeArInfoAnnotationHeader-
|
|
1
|
+
import { t as Barcode } from "../../../Barcode-DNvaiOyn.js";
|
|
2
|
+
import { r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-BTMTqI9o.js";
|
|
3
|
+
import { t as BarcodeArInfoAnnotationBodyComponent } from "../../../BarcodeArInfoAnnotationBodyComponent-BXOaa1oT.js";
|
|
4
|
+
import { t as BarcodeArInfoAnnotationFooter } from "../../../BarcodeArInfoAnnotationFooter-C3KhPT6G.js";
|
|
5
|
+
import { t as BarcodeArInfoAnnotationHeader } from "../../../BarcodeArInfoAnnotationHeader-DCzML4Pn.js";
|
|
6
6
|
import { Color, Optional, Point } from "@scandit/web-datacapture-core";
|
|
7
7
|
import { ScanditHTMLElement as ScanditHTMLElement$1 } from "@scandit/web-datacapture-core/build/js/private/utils/index.js";
|
|
8
|
-
|
|
9
8
|
//#region src/main/ar/ui/organisms/BarcodeArInfoAnnotation.d.ts
|
|
10
9
|
declare enum BarcodeArInfoAnnotationAnchor {
|
|
11
10
|
Top = "top-center",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as Barcode } from "../../../Barcode-
|
|
2
|
-
import { r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-
|
|
1
|
+
import { t as Barcode } from "../../../Barcode-DNvaiOyn.js";
|
|
2
|
+
import { r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-BTMTqI9o.js";
|
|
3
3
|
import { BarcodeArPopoverAnnotationButton } from "./BarcodeArPopoverAnnotationButton.js";
|
|
4
4
|
import { Point } from "@scandit/web-datacapture-core";
|
|
5
5
|
import { ScanditHTMLElement as ScanditHTMLElement$1 } from "@scandit/web-datacapture-core/build/js/private/utils/index.js";
|
|
6
|
-
|
|
7
6
|
//#region src/main/ar/ui/organisms/BarcodeArPopoverAnnotation.d.ts
|
|
8
7
|
interface BarcodeArPopoverAnnotationListener {
|
|
9
8
|
onPopoverButtonTapped?(popover: BarcodeArPopoverAnnotation, button: BarcodeArPopoverAnnotationButton, buttonIndex: number): void;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Color, ScanditIcon } from "@scandit/web-datacapture-core";
|
|
2
2
|
import { ScanditHTMLElement as ScanditHTMLElement$1 } from "@scandit/web-datacapture-core/build/js/private/utils/index.js";
|
|
3
|
-
|
|
4
3
|
//#region src/main/ar/ui/organisms/BarcodeArPopoverAnnotationButton.d.ts
|
|
5
4
|
declare class BarcodeArPopoverAnnotationButton extends ScanditHTMLElement$1 {
|
|
6
5
|
static tag: "scandit-barcode-ar-popover-button-annotation";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as Barcode } from "../../../Barcode-
|
|
2
|
-
import { t as BarcodeArHighlight } from "../../../BarcodeArHighlight-
|
|
1
|
+
import { t as Barcode } from "../../../Barcode-DNvaiOyn.js";
|
|
2
|
+
import { t as BarcodeArHighlight } from "../../../BarcodeArHighlight-D002fuWB.js";
|
|
3
3
|
import { Brush, Point, ScanditIcon } from "@scandit/web-datacapture-core";
|
|
4
4
|
import { ScanditHTMLElement as ScanditHTMLElement$1 } from "@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js";
|
|
5
|
-
|
|
6
5
|
//#region src/main/ar/ui/organisms/BarcodeArRectangleHighlight.d.ts
|
|
7
6
|
declare class BarcodeArRectangleHighlight extends ScanditHTMLElement$1 implements BarcodeArHighlight {
|
|
8
7
|
static tag: "scandit-barcode-ar-rectangle-highlight";
|
|
@@ -1,28 +1,36 @@
|
|
|
1
|
-
import { t as Barcode } from "../../../Barcode-
|
|
2
|
-
import { r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-
|
|
1
|
+
import { t as Barcode } from "../../../Barcode-DNvaiOyn.js";
|
|
2
|
+
import { r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-BTMTqI9o.js";
|
|
3
3
|
import { BarcodeArInfoAnnotation } from "./BarcodeArInfoAnnotation.js";
|
|
4
4
|
import { Point, ScanditHTMLElement } from "@scandit/web-datacapture-core";
|
|
5
|
-
|
|
6
5
|
//#region src/main/ar/ui/organisms/BarcodeArResponsiveAnnotation.d.ts
|
|
7
6
|
declare class BarcodeArResponsiveAnnotation extends ScanditHTMLElement implements BarcodeArAnnotation {
|
|
8
7
|
static tag: "scandit-barcode-ar-responsive-annotation";
|
|
9
8
|
private _barcode;
|
|
10
|
-
private
|
|
11
|
-
private
|
|
9
|
+
private _annotationsWithThreshold;
|
|
10
|
+
private _currentAnnotation;
|
|
12
11
|
private static _threshold;
|
|
13
|
-
private _annotationVariation;
|
|
14
12
|
protected static register(): void;
|
|
13
|
+
static create(barcode: Barcode, annotationsByThreshold: Record<number, BarcodeArInfoAnnotation | null>): BarcodeArResponsiveAnnotation;
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `create(barcode, annotationsByThreshold)` instead. Maps to
|
|
16
|
+
* `{ [BarcodeArResponsiveAnnotation.threshold]: farAway, 1.0: closeUp }`.
|
|
17
|
+
*/
|
|
15
18
|
static create(barcode: Barcode, closeUp: BarcodeArInfoAnnotation | null, farAway: BarcodeArInfoAnnotation | null): BarcodeArResponsiveAnnotation;
|
|
16
|
-
private
|
|
19
|
+
private static isValidThreshold;
|
|
20
|
+
private static dropOutOfBoundThresholds;
|
|
21
|
+
get barcode(): Barcode;
|
|
17
22
|
get annotationTrigger(): BarcodeArAnnotationTrigger;
|
|
18
23
|
set annotationTrigger(trigger: BarcodeArAnnotationTrigger);
|
|
19
24
|
private set anchor(value);
|
|
20
25
|
private get anchor();
|
|
21
|
-
get barcode(): Barcode;
|
|
22
26
|
updatePosition(point: Point, transformOrigin: Point, rotationAngle: number): void;
|
|
23
|
-
private
|
|
24
|
-
private
|
|
27
|
+
private selectAnnotation;
|
|
28
|
+
private getChildAnnotations;
|
|
25
29
|
private updateAnnotationVisibility;
|
|
30
|
+
/**
|
|
31
|
+
* @deprecated Use the `annotationsByThreshold` map passed to `create` instead. Per-instance
|
|
32
|
+
* thresholds supersede this shared property.
|
|
33
|
+
*/
|
|
26
34
|
static get threshold(): number;
|
|
27
35
|
static set threshold(threshold: number);
|
|
28
36
|
private connectedCallback;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./BarcodeArAnnotation.js";import{updatePosition as e}from"./private/updatePosition.js";import{BarcodeArInfoAnnotation as t}from"./BarcodeArInfoAnnotation.js";import
|
|
1
|
+
import"./BarcodeArAnnotation.js";import{updatePosition as e}from"./private/updatePosition.js";import{BarcodeArInfoAnnotation as t}from"./BarcodeArInfoAnnotation.js";import{Logger as n,ScanditHTMLElement as r}from"@scandit/web-datacapture-core";import{clamp as i}from"@scandit/web-datacapture-core/build/js/private/utils/clamp.js";import{defineCustomElements as a}from"@scandit/web-datacapture-core/build/js/private/utils/defineCustomElements.js";var o=class o extends r{constructor(...e){super(...e),this._annotationsWithThreshold=[],this._currentAnnotation=null}static register(){a({[o.tag]:o})}static create(e,n,r){let i=document.createElement(o.tag);i._barcode=e;let a=n===null||n instanceof t?{[o.threshold]:r??null,1:n}:n;i._annotationsWithThreshold=o.dropOutOfBoundThresholds(a);let s=i._annotationsWithThreshold.length-1,c=i._annotationsWithThreshold[s];i._currentAnnotation=c?c.annotation:null;for(let e of i.getChildAnnotations())e.hidden=!0;return i}static isValidThreshold(e){return Number.isFinite(e)&&e>0&&e<=1}static dropOutOfBoundThresholds(e){let t=[],r=[];for(let n of Object.keys(e)){let i=Number(n);o.isValidThreshold(i)?r.push({threshold:i,annotation:e[i]}):t.push(i)}if(t.length>0&&n.warn(`BarcodeArResponsiveAnnotation: ignoring thresholds outside (0, 1]: ${t.join(`, `)}.`),r.sort((e,t)=>e.threshold-t.threshold),r.length>0){let e=r.length-1;r[e].threshold=1}return r}get barcode(){return this._barcode}get annotationTrigger(){var e;return((e=this._currentAnnotation)==null?void 0:e.annotationTrigger)??`highlightTapAndBarcodeScan`}set annotationTrigger(e){for(let t of this.getChildAnnotations())t.annotationTrigger=e}set anchor(e){for(let t of this.getChildAnnotations())t.anchor=e}get anchor(){var e;return((e=this._currentAnnotation)==null?void 0:e.anchor)??void 0}updatePosition(t,n,r){this.updateAnnotationVisibility(),e(this,t,n)}updateForAreaRatio(e){if(!Number.isFinite(e))return;let t=i(e,0,1),n=this.selectAnnotation(t);n!==this._currentAnnotation&&(this._currentAnnotation=n,this.updateAnnotationVisibility())}selectAnnotation(e){for(let t of this._annotationsWithThreshold)if(t.threshold>=e)return t.annotation;let t=this._annotationsWithThreshold.length-1,n=this._annotationsWithThreshold[t];return n?n.annotation:null}getChildAnnotations(){let e=new Set;for(let t of this._annotationsWithThreshold)t.annotation!=null&&e.add(t.annotation);return Array.from(e)}updateAnnotationVisibility(){for(let e of this.getChildAnnotations())e.hidden=e!==this._currentAnnotation}static get threshold(){return o._threshold}static set threshold(e){o._threshold=e}connectedCallback(){this.append(...this.getChildAnnotations()),this.updateAnnotationVisibility()}disconnectedCallback(){for(let e of this.getChildAnnotations())e.remove()}};o.tag=`scandit-barcode-ar-responsive-annotation`,o._threshold=.1;export{o as BarcodeArResponsiveAnnotation};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as Barcode } from "../../../Barcode-
|
|
2
|
-
import { r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-
|
|
1
|
+
import { t as Barcode } from "../../../Barcode-DNvaiOyn.js";
|
|
2
|
+
import { r as BarcodeArAnnotationTrigger, t as BarcodeArAnnotation } from "../../../BarcodeArAnnotation-BTMTqI9o.js";
|
|
3
3
|
import { Color, Point, ScanditIcon } from "@scandit/web-datacapture-core";
|
|
4
4
|
import { ScanditHTMLElement as ScanditHTMLElement$1 } from "@scandit/web-datacapture-core/build/js/private/utils/ScanditHTMLElement.js";
|
|
5
|
-
|
|
6
5
|
//#region src/main/ar/ui/organisms/BarcodeArStatusIconAnnotation.d.ts
|
|
7
6
|
declare enum BarcodeArStatusIconAnnotationAnchor {
|
|
8
7
|
Top = "top-center",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { n as BarcodeArAnnotationAnchor } from "../../../../BarcodeArAnnotation-
|
|
1
|
+
import { n as BarcodeArAnnotationAnchor } from "../../../../BarcodeArAnnotation-BTMTqI9o.js";
|
|
2
2
|
import { Direction } from "@scandit/web-datacapture-core";
|
|
3
|
-
|
|
4
3
|
//#region src/main/ar/ui/organisms/private/AnchorAndDirectionUtils.d.ts
|
|
5
4
|
declare const isDirectionHorizontal: (direction: Direction | undefined) => boolean;
|
|
6
5
|
declare const isDirectionVertical: (direction: Direction | undefined) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import"../BarcodeArAnnotation.js";import{Direction as e}from"@scandit/web-datacapture-core";const t=t=>t
|
|
1
|
+
import"../BarcodeArAnnotation.js";import{Direction as e}from"@scandit/web-datacapture-core";const t=t=>t!=null&&t===e.Horizontal,n=e=>!t(e),r=e=>e===`top-center`||e===`bottom-center`,i=e=>e===`left-center`||e===`right-center`;export{i as isAnchorXcenter,r as isAnchorYcenter,t as isDirectionHorizontal,n as isDirectionVertical};
|