@scandit/web-datacapture-label 7.6.1 → 8.0.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/{LabelCaptureAdvancedOverlay-ChUrueV6.d.ts → LabelCaptureAdvancedOverlay-C0Ie95D5.d.ts} +1 -1
- package/build/js/{LabelCaptureBasicOverlay-GO1AxzZR.d.ts → LabelCaptureBasicOverlay-O-KyAIqk.d.ts} +1 -1
- package/build/js/{NativeProxy-C1lJ_0p-.d.ts → NativeProxy-C4pEanT_.d.ts} +63 -6
- package/build/js/api/AdaptiveRecognitionMode.d.ts +18 -0
- package/build/js/api/AdaptiveRecognitionMode.js +1 -0
- package/build/js/api/CustomText.d.ts +2 -1
- package/build/js/api/CustomTextBuilder.d.ts +2 -1
- package/build/js/api/DateText.d.ts +57 -0
- package/build/js/api/DateText.js +1 -0
- package/build/js/api/DateTextBuilder.d.ts +57 -0
- package/build/js/api/DateTextBuilder.js +1 -0
- package/build/js/api/ExpiryDateText.d.ts +2 -1
- package/build/js/api/ExpiryDateTextBuilder.d.ts +2 -1
- package/build/js/api/ExpiryDateTextBuilder.js +1 -1
- package/build/js/api/ImeiOneBarcodeBuilder.js +1 -1
- package/build/js/api/LabelCapture.d.ts +3 -1
- package/build/js/api/LabelCapture.js +1 -1
- package/build/js/api/LabelCaptureAdvancedOverlay.d.ts +4 -2
- package/build/js/api/LabelCaptureAdvancedOverlayListener.d.ts +4 -2
- package/build/js/api/LabelCaptureBasicOverlay.d.ts +4 -2
- package/build/js/api/LabelCaptureBasicOverlay.js +1 -1
- package/build/js/api/LabelCaptureBasicOverlayListener.d.ts +4 -2
- package/build/js/api/LabelCaptureListener.d.ts +3 -1
- package/build/js/api/LabelCaptureOverlayJSON.d.ts +2 -1
- package/build/js/api/LabelCaptureSettings.d.ts +3 -1
- package/build/js/api/LabelCaptureValidationFlowOverlay.d.ts +7 -3
- package/build/js/api/LabelCaptureValidationFlowOverlay.js +1 -1
- package/build/js/api/LabelDefinition.d.ts +11 -3
- package/build/js/api/LabelDefinition.js +1 -1
- package/build/js/api/PackingDateText.d.ts +2 -1
- package/build/js/api/PackingDateTextBuilder.d.ts +2 -1
- package/build/js/api/PrivateValidationFlowHandler.d.ts +3 -0
- package/build/js/api/PrivateValidationFlowHandler.js +1 -1
- package/build/js/api/TotalPriceText.d.ts +2 -1
- package/build/js/api/TotalPriceTextBuilder.d.ts +2 -1
- package/build/js/api/UnitPriceText.d.ts +2 -1
- package/build/js/api/UnitPriceTextBuilder.d.ts +2 -1
- package/build/js/api/WeightText.d.ts +2 -1
- package/build/js/api/WeightTextBuilder.d.ts +2 -1
- package/build/js/chunks/chunk-2JJNU34C.js +1 -0
- package/build/js/chunks/chunk-2Q56KC4Q.js +1 -0
- package/build/js/chunks/{chunk-XDPQXJ7N.js → chunk-3KGQKDI6.js} +1 -1
- package/build/js/chunks/chunk-3PRLDLLC.js +1 -0
- package/build/js/chunks/chunk-67ANQYNA.js +1 -0
- package/build/js/chunks/chunk-6QWXDVDE.js +1 -0
- package/build/js/chunks/{chunk-AJ47RO4E.js → chunk-6ZRD5AHI.js} +1 -1
- package/build/js/chunks/chunk-7V7K3PCH.js +1 -0
- package/build/js/chunks/chunk-7W7VDXJD.js +1 -0
- package/build/js/chunks/chunk-7YYY7VA3.js +1 -0
- package/build/js/chunks/chunk-ANZRGHEQ.js +1 -0
- package/build/js/chunks/chunk-CFCNGKD6.js +1 -0
- package/build/js/chunks/{chunk-K546LWO4.js → chunk-FLGWGEP3.js} +1 -1
- package/build/js/chunks/chunk-GZ6X3W44.js +1 -0
- package/build/js/chunks/chunk-JP7KLQYX.js +1 -0
- package/build/js/chunks/chunk-JS2S7CAY.js +1 -0
- package/build/js/chunks/{chunk-INKFF3U2.js → chunk-LVUNHV32.js} +1 -1
- package/build/js/chunks/chunk-N7HKYUQ6.js +1 -0
- package/build/js/chunks/chunk-RTUZ7UNX.js +1 -0
- package/build/js/chunks/chunk-S5KQRE45.js +2 -0
- package/build/js/chunks/chunk-SH7ED7RU.js +1 -0
- package/build/js/chunks/chunk-SWSQIF4W.js +1 -0
- package/build/js/chunks/chunk-VSH23DF3.js +1 -0
- package/build/js/chunks/chunk-XKSRWFDE.js +1 -0
- package/build/js/chunks/{chunk-34D3STCA.js → chunk-XNIAPBI3.js} +1 -1
- package/build/js/chunks/chunk-XW4HFTSX.js +1 -0
- package/build/js/djinni-types/sdcBarcodeData.d.ts +1 -1
- package/build/js/djinni-types/sdcBarcodeData.js +1 -1
- package/build/js/djinni-types/sdcCoreInternalSdkCommonGeometry.d.ts +4 -5
- package/build/js/djinni-types/sdcLabelData.d.ts +5 -1
- package/build/js/djinni-types/sdcLabelData.js +1 -1
- package/build/js/djinni-types/sdcLabelInternalModuleCapture.d.ts +5 -6
- package/build/js/index.d.ts +6 -3
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/private/PrivateLabelFieldDefinition.d.ts +2 -1
- package/build/js/private/adaptiveRecognitionModeTranslator.d.ts +6 -0
- package/build/js/private/adaptiveRecognitionModeTranslator.js +1 -0
- package/build/js/private/createProxiedViewFinder.d.ts +4 -2
- package/build/js/private/symbologiesTranslator.js +1 -1
- package/build/js/private/viewfinderTranslator.js +1 -1
- package/build/js/ui/atoms/InputManuallyButton.js +1 -1
- package/build/js/ui/atoms/RoundedButton.js +1 -1
- package/build/js/ui/atoms/TextInput.js +1 -1
- package/build/js/ui/molecules/CardListContainer.js +1 -1
- package/build/js/ui/molecules/CardListRestartBackButton.js +1 -1
- package/build/js/ui/organisms/LabelCaptureValidationFlowLayout.js +1 -1
- package/build/js/worker/LabelCaptureWorkerManager.d.ts +2 -1
- package/build/js/worker/LabelCaptureWorkerManager.js +1 -1
- package/build/js/worker/WorkerMain.d.ts +2 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/WorkerRegistry.d.ts +2 -1
- package/build/js/worker/dataCaptureEngine.d.ts +2 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +3 -2
- package/build/js/worker/labelCapture.inlineWorker.d.ts +2 -1
- package/build/js/worker/labelCapture.inlineWorker.js +1 -1
- package/build/js/worker/labelWorkerHandler.d.ts +2 -1
- package/build/js/worker/proxies/AimerViewfinderProxy.d.ts +2 -1
- package/build/js/worker/proxies/AimerViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/BarcodeFieldProxy.d.ts +2 -1
- package/build/js/worker/proxies/BarcodeFieldProxy.js +1 -1
- package/build/js/worker/proxies/CapturedLabelProxy.d.ts +2 -1
- package/build/js/worker/proxies/CapturedLabelProxy.js +1 -1
- package/build/js/worker/proxies/CustomBarcodeProxy.d.ts +2 -1
- package/build/js/worker/proxies/CustomBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/CustomTextProxy.d.ts +2 -1
- package/build/js/worker/proxies/CustomTextProxy.js +1 -1
- package/build/js/worker/proxies/DateTextProxy.d.ts +56 -0
- package/build/js/worker/proxies/DateTextProxy.js +1 -0
- package/build/js/worker/proxies/ExpiryDateTextProxy.d.ts +2 -1
- package/build/js/worker/proxies/ExpiryDateTextProxy.js +1 -1
- package/build/js/worker/proxies/ImageConverterProxy.d.ts +45 -0
- package/build/js/worker/proxies/ImageConverterProxy.js +1 -0
- package/build/js/worker/proxies/ImeiOneBarcodeProxy.d.ts +2 -1
- package/build/js/worker/proxies/ImeiOneBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/ImeiTwoBarcodeProxy.d.ts +2 -1
- package/build/js/worker/proxies/ImeiTwoBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.d.ts +2 -1
- package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.d.ts +2 -1
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureHelperProxy.d.ts +2 -1
- package/build/js/worker/proxies/LabelCaptureHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.d.ts +2 -1
- package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureProxy.d.ts +2 -1
- package/build/js/worker/proxies/LabelCaptureProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSessionProxy.d.ts +2 -1
- package/build/js/worker/proxies/LabelCaptureSessionProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.d.ts +4 -3
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.js +1 -1
- package/build/js/worker/proxies/LabelDefinitionProxy.d.ts +3 -1
- package/build/js/worker/proxies/LabelDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldDefinitionProxy.d.ts +2 -1
- package/build/js/worker/proxies/LabelFieldDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldLocationProxy.d.ts +2 -1
- package/build/js/worker/proxies/LabelFieldLocationProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldProxy.d.ts +2 -1
- package/build/js/worker/proxies/LabelFieldProxy.js +1 -1
- package/build/js/worker/proxies/NativeProxy.d.ts +2 -1
- package/build/js/worker/proxies/NativeProxy.js +1 -1
- package/build/js/worker/proxies/NoViewfinderProxy.d.ts +2 -1
- package/build/js/worker/proxies/NoViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/PackingDateTextProxy.d.ts +2 -1
- package/build/js/worker/proxies/PackingDateTextProxy.js +1 -1
- package/build/js/worker/proxies/PartNumberBarcodeProxy.d.ts +2 -1
- package/build/js/worker/proxies/PartNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/RectangularViewfinderAnimationProxy.d.ts +2 -1
- package/build/js/worker/proxies/RectangularViewfinderAnimationProxy.js +1 -1
- package/build/js/worker/proxies/RectangularViewfinderProxy.d.ts +2 -1
- package/build/js/worker/proxies/RectangularViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/SerialNumberBarcodeProxy.d.ts +2 -1
- package/build/js/worker/proxies/SerialNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/TotalPriceTextProxy.d.ts +2 -1
- package/build/js/worker/proxies/TotalPriceTextProxy.js +1 -1
- package/build/js/worker/proxies/UnitPriceTextProxy.d.ts +2 -1
- package/build/js/worker/proxies/UnitPriceTextProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowListenerProxy.d.ts +4 -3
- package/build/js/worker/proxies/ValidationFlowListenerProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowOverlayProxy.d.ts +2 -1
- package/build/js/worker/proxies/ValidationFlowOverlayProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowSettingsProxy.d.ts +2 -1
- package/build/js/worker/proxies/ValidationFlowSettingsProxy.js +1 -1
- package/build/js/worker/proxies/WebAsyncImageConverterInstance.d.ts +30 -0
- package/build/js/worker/proxies/WebAsyncImageConverterInstance.js +1 -0
- package/build/js/worker/proxies/WeightTextProxy.d.ts +2 -1
- package/build/js/worker/proxies/WeightTextProxy.js +1 -1
- package/package.json +2 -2
- package/sdc-lib/resources/models/barcode_keypoints_oned.43a682cdf24a.model +0 -0
- package/sdc-lib/resources/models/text_semantics_ocr_detector.290bf42945e3.model +0 -0
- package/sdc-lib/scandit-datacapture-sdk-label-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-label-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-label-simd-pthreads.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-label-simd-pthreads.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-label-simd.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-label-simd.wasm +0 -0
- package/sdc-lib/scandit-datacapture-sdk-label.js +1 -1
- package/sdc-lib/scandit-datacapture-sdk-label.wasm +0 -0
- package/build/js/chunks/chunk-3FUUGYCW.js +0 -6
- package/build/js/chunks/chunk-47L7ORWZ.js +0 -6
- package/build/js/chunks/chunk-G5CC2IW4.js +0 -1
- package/build/js/chunks/chunk-IMCPLSWW.js +0 -1
- package/build/js/chunks/chunk-IWEHPW7C.js +0 -1
- package/build/js/chunks/chunk-J7TDBHLN.js +0 -1
- package/build/js/chunks/chunk-JFUNQSVG.js +0 -1
- package/build/js/chunks/chunk-JI4PBJP4.js +0 -2
- package/build/js/chunks/chunk-K2TTSRPP.js +0 -10
- package/build/js/chunks/chunk-P7B72XJK.js +0 -1
- package/build/js/chunks/chunk-PELX4NCZ.js +0 -1
- package/build/js/chunks/chunk-YDCOTN7Q.js +0 -1
- package/build/js/chunks/chunk-YZSW6NH3.js +0 -1
- package/build/js/chunks/chunk-ZFSFV2DF.js +0 -8
- package/build/js/chunks/chunk-ZQLGCNVJ.js +0 -11
- package/build/js/chunks/chunk-ZRDTJCIB.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '@scandit/web-datacapture-core';
|
|
2
2
|
import './CapturedLabel.js';
|
|
3
3
|
import './LabelField.js';
|
|
4
|
-
export { a as LabelCaptureBasicOverlayListener } from '../LabelCaptureBasicOverlay-
|
|
4
|
+
export { a as LabelCaptureBasicOverlayListener } from '../LabelCaptureBasicOverlay-O-KyAIqk.js';
|
|
5
5
|
import '@scandit/web-datacapture-barcode';
|
|
6
6
|
import './LabelFieldState.js';
|
|
7
7
|
import './LabelFieldType.js';
|
|
@@ -10,7 +10,7 @@ import './LabelDateResult.js';
|
|
|
10
10
|
import '../djinni-types/sdcLabelData.js';
|
|
11
11
|
import '@scandit/web-datacapture-core/build/js/private/Serializable';
|
|
12
12
|
import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
13
|
-
import '../NativeProxy-
|
|
13
|
+
import '../NativeProxy-C4pEanT_.js';
|
|
14
14
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
15
15
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
16
16
|
import '../djinni-types/sdcBarcodeData.js';
|
|
@@ -31,6 +31,7 @@ import '../djinni-types/sdcCoreInternalSdkCommonGraphics.js';
|
|
|
31
31
|
import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
32
32
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
33
33
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
34
|
+
import './AdaptiveRecognitionMode.js';
|
|
34
35
|
import './LabelCaptureSession.js';
|
|
35
36
|
import './LabelDateFormat.js';
|
|
36
37
|
import './LabelDateComponentFormat.js';
|
|
@@ -54,5 +55,6 @@ import './WeightText.js';
|
|
|
54
55
|
import './CustomBarcode.js';
|
|
55
56
|
import './LabelFieldLocation.js';
|
|
56
57
|
import './CustomText.js';
|
|
58
|
+
import './DateText.js';
|
|
57
59
|
import './ExpiryDateText.js';
|
|
58
60
|
import './LabelCaptureOverlayJSON.js';
|
|
@@ -12,13 +12,14 @@ import './LabelCaptureFeedback.js';
|
|
|
12
12
|
import '@scandit/web-datacapture-core/build/js/private/Serializable';
|
|
13
13
|
import './LabelCaptureSettings.js';
|
|
14
14
|
import './LabelDefinition.js';
|
|
15
|
+
import './AdaptiveRecognitionMode.js';
|
|
15
16
|
import './ImeiOneBarcode.js';
|
|
16
17
|
import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
17
18
|
import './BarcodeField.js';
|
|
18
19
|
import './LabelFieldDefinition.js';
|
|
19
20
|
import './ImeiTwoBarcode.js';
|
|
20
21
|
import './PackingDateText.js';
|
|
21
|
-
import '../NativeProxy-
|
|
22
|
+
import '../NativeProxy-C4pEanT_.js';
|
|
22
23
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
23
24
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
24
25
|
import '../djinni-types/sdcBarcodeData.js';
|
|
@@ -53,4 +54,5 @@ import './WeightText.js';
|
|
|
53
54
|
import './CustomBarcode.js';
|
|
54
55
|
import './LabelFieldLocation.js';
|
|
55
56
|
import './CustomText.js';
|
|
57
|
+
import './DateText.js';
|
|
56
58
|
import './ExpiryDateText.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { N as NativeProxyHandle } from '../NativeProxy-
|
|
1
|
+
import { N as NativeProxyHandle } from '../NativeProxy-C4pEanT_.js';
|
|
2
2
|
import '@scandit/web-datacapture-barcode';
|
|
3
3
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
4
4
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
@@ -22,6 +22,7 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
22
22
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
23
23
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
24
24
|
import '@scandit/web-datacapture-core';
|
|
25
|
+
import './AdaptiveRecognitionMode.js';
|
|
25
26
|
import './CapturedLabel.js';
|
|
26
27
|
import './LabelField.js';
|
|
27
28
|
import './LabelFieldState.js';
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { LocationSelection } from '@scandit/web-datacapture-core';
|
|
2
2
|
import { LabelDefinition } from './LabelDefinition.js';
|
|
3
3
|
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
4
|
+
import './AdaptiveRecognitionMode.js';
|
|
4
5
|
import './ImeiOneBarcode.js';
|
|
5
6
|
import '@scandit/web-datacapture-barcode';
|
|
6
7
|
import './BarcodeField.js';
|
|
7
8
|
import './LabelFieldDefinition.js';
|
|
8
9
|
import './ImeiTwoBarcode.js';
|
|
9
10
|
import './PackingDateText.js';
|
|
10
|
-
import '../NativeProxy-
|
|
11
|
+
import '../NativeProxy-C4pEanT_.js';
|
|
11
12
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
12
13
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
13
14
|
import '../djinni-types/sdcBarcodeData.js';
|
|
@@ -49,6 +50,7 @@ import './WeightText.js';
|
|
|
49
50
|
import './CustomBarcode.js';
|
|
50
51
|
import './LabelFieldLocation.js';
|
|
51
52
|
import './CustomText.js';
|
|
53
|
+
import './DateText.js';
|
|
52
54
|
import './ExpiryDateText.js';
|
|
53
55
|
|
|
54
56
|
declare class LabelCaptureSettings {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { DataCaptureOverlay, DataCaptureView } from '@scandit/web-datacapture-core';
|
|
2
2
|
import { Serializable } from '@scandit/web-datacapture-core/build/js/private/Serializable.js';
|
|
3
3
|
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
4
|
-
import { N as NativeProxyHandle } from '../NativeProxy-
|
|
4
|
+
import { N as NativeProxyHandle } from '../NativeProxy-C4pEanT_.js';
|
|
5
5
|
import { L as LabelCapture } from '../LabelCapture-r1VXyYY1.js';
|
|
6
6
|
import { LabelCaptureValidationFlowSettings } from './LabelCaptureValidationFlowSettings.js';
|
|
7
7
|
import { LabelField } from './LabelField.js';
|
|
@@ -27,6 +27,7 @@ import '../djinni-types/sdcCoreInternalSdkCommonGraphics.js';
|
|
|
27
27
|
import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
28
28
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
29
29
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
30
|
+
import './AdaptiveRecognitionMode.js';
|
|
30
31
|
import './CapturedLabel.js';
|
|
31
32
|
import './LabelCaptureSession.js';
|
|
32
33
|
import './LabelDateFormat.js';
|
|
@@ -51,6 +52,7 @@ import './WeightText.js';
|
|
|
51
52
|
import './CustomBarcode.js';
|
|
52
53
|
import './LabelFieldLocation.js';
|
|
53
54
|
import './CustomText.js';
|
|
55
|
+
import './DateText.js';
|
|
54
56
|
import './ExpiryDateText.js';
|
|
55
57
|
import './LabelFieldState.js';
|
|
56
58
|
import './LabelFieldType.js';
|
|
@@ -89,6 +91,7 @@ declare class LabelCaptureValidationFlowOverlay implements DataCaptureOverlay, S
|
|
|
89
91
|
private backdrop;
|
|
90
92
|
private validationFlowHandlerState;
|
|
91
93
|
private validationFieldsState;
|
|
94
|
+
private cloudBackupProcessingFields;
|
|
92
95
|
static withLabelCaptureForView(labelCapture: LabelCapture, dataCaptureView: DataCaptureView): Promise<LabelCaptureValidationFlowOverlay>;
|
|
93
96
|
applySettings(settings: LabelCaptureValidationFlowSettings): Promise<void>;
|
|
94
97
|
private constructor();
|
|
@@ -115,11 +118,10 @@ declare class LabelCaptureValidationFlowOverlay implements DataCaptureOverlay, S
|
|
|
115
118
|
private onRestartButtonClick;
|
|
116
119
|
private expandListAndShowSubmitAndRestartButton;
|
|
117
120
|
private onBackButton;
|
|
118
|
-
private resetCardTextInputField;
|
|
119
121
|
private resetAllCardsTextInputFields;
|
|
120
122
|
private standByCamera;
|
|
121
123
|
private activateCamera;
|
|
122
|
-
private
|
|
124
|
+
private updateCard;
|
|
123
125
|
private handleLabelIsMissingRequiredFieldState;
|
|
124
126
|
private handleOnFinished;
|
|
125
127
|
private showCardListAndHideInputManuallyButton;
|
|
@@ -129,6 +131,8 @@ declare class LabelCaptureValidationFlowOverlay implements DataCaptureOverlay, S
|
|
|
129
131
|
private handleInPauseScan;
|
|
130
132
|
private handleInCompleteScan;
|
|
131
133
|
private handleInPartialScan;
|
|
134
|
+
private handleOnCloudBackupServiceStartedForFields;
|
|
135
|
+
private handleOnCloudBackupServiceFailedForFields;
|
|
132
136
|
private onWorkerMessage;
|
|
133
137
|
}
|
|
134
138
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LabelCaptureValidationFlowOverlay}from'../chunks/chunk-
|
|
1
|
+
export{a as LabelCaptureValidationFlowOverlay}from'../chunks/chunk-3PRLDLLC.js';
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AdaptiveRecognitionMode } from './AdaptiveRecognitionMode.js';
|
|
1
2
|
import { ImeiOneBarcode } from './ImeiOneBarcode.js';
|
|
2
3
|
import { ImeiTwoBarcode } from './ImeiTwoBarcode.js';
|
|
3
4
|
import { LabelFieldDefinition } from './LabelFieldDefinition.js';
|
|
@@ -10,10 +11,11 @@ import { WeightText } from './WeightText.js';
|
|
|
10
11
|
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
11
12
|
import { CustomBarcode } from './CustomBarcode.js';
|
|
12
13
|
import { CustomText } from './CustomText.js';
|
|
14
|
+
import { DateText } from './DateText.js';
|
|
13
15
|
import { ExpiryDateText } from './ExpiryDateText.js';
|
|
14
16
|
import '@scandit/web-datacapture-barcode';
|
|
15
17
|
import './BarcodeField.js';
|
|
16
|
-
import '../NativeProxy-
|
|
18
|
+
import '../NativeProxy-C4pEanT_.js';
|
|
17
19
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
18
20
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
19
21
|
import '../djinni-types/sdcBarcodeData.js';
|
|
@@ -55,17 +57,21 @@ declare class LabelDefinition {
|
|
|
55
57
|
private _name;
|
|
56
58
|
private _fields;
|
|
57
59
|
private _hiddenProperties;
|
|
60
|
+
private _adaptiveRecognitionMode;
|
|
58
61
|
private constructor();
|
|
59
62
|
get name(): string;
|
|
60
63
|
get fields(): LabelFieldDefinition[];
|
|
64
|
+
get adaptiveRecognitionMode(): AdaptiveRecognitionMode;
|
|
65
|
+
setAdaptiveRecognitionMode(mode: AdaptiveRecognitionMode): Promise<void>;
|
|
61
66
|
static builder(): LabelDefinitionBuilder;
|
|
62
|
-
static createVinLabelDefinition(name: string): Promise<LabelDefinition>;
|
|
63
|
-
static createPriceCaptureDefinition(name: string): Promise<LabelDefinition>;
|
|
67
|
+
static createVinLabelDefinition(name: string, adaptiveRecognitionMode?: AdaptiveRecognitionMode): Promise<LabelDefinition>;
|
|
68
|
+
static createPriceCaptureDefinition(name: string, adaptiveRecognitionMode?: AdaptiveRecognitionMode): Promise<LabelDefinition>;
|
|
64
69
|
private static forHandle;
|
|
65
70
|
}
|
|
66
71
|
declare class LabelDefinitionBuilder {
|
|
67
72
|
private fieldDefinitions;
|
|
68
73
|
private hiddenProperties;
|
|
74
|
+
private adaptiveRecognitionMode_;
|
|
69
75
|
addSerialNumberBarcode(barcode: SerialNumberBarcode): this;
|
|
70
76
|
addPartNumberBarcode(barcode: PartNumberBarcode): this;
|
|
71
77
|
addImeiOneBarcode(barcode: ImeiOneBarcode): this;
|
|
@@ -76,9 +82,11 @@ declare class LabelDefinitionBuilder {
|
|
|
76
82
|
addWeightText(text: WeightText): this;
|
|
77
83
|
addPackingDateText(text: PackingDateText): this;
|
|
78
84
|
addExpiryDateText(text: ExpiryDateText): this;
|
|
85
|
+
addDateText(text: DateText): this;
|
|
79
86
|
addCustomText(text: CustomText): this;
|
|
80
87
|
setHiddenProperty(key: string, value: unknown): this;
|
|
81
88
|
setHiddenProperties(hiddenProperties: Record<string, unknown>): this;
|
|
89
|
+
adaptiveRecognitionMode(mode: AdaptiveRecognitionMode): this;
|
|
82
90
|
build(name: string): Promise<LabelDefinition>;
|
|
83
91
|
}
|
|
84
92
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LabelDefinition,b as LabelDefinitionBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as LabelDefinition,b as LabelDefinitionBuilder}from'../chunks/chunk-XKSRWFDE.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
2
|
-
import { N as NativeProxyHandle } from '../NativeProxy-
|
|
2
|
+
import { N as NativeProxyHandle } from '../NativeProxy-C4pEanT_.js';
|
|
3
3
|
import { LabelDateFormat } from './LabelDateFormat.js';
|
|
4
4
|
import { TextField } from './TextField.js';
|
|
5
5
|
import '@scandit/web-datacapture-barcode';
|
|
@@ -25,6 +25,7 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
25
25
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
26
26
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
27
27
|
import '@scandit/web-datacapture-core';
|
|
28
|
+
import './AdaptiveRecognitionMode.js';
|
|
28
29
|
import './CapturedLabel.js';
|
|
29
30
|
import './LabelField.js';
|
|
30
31
|
import './LabelFieldState.js';
|
|
@@ -2,7 +2,7 @@ import { PackingDateText } from './PackingDateText.js';
|
|
|
2
2
|
import { TextFieldBuilder } from './TextFieldBuilder.js';
|
|
3
3
|
import { LabelDateFormat } from './LabelDateFormat.js';
|
|
4
4
|
import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
5
|
-
import '../NativeProxy-
|
|
5
|
+
import '../NativeProxy-C4pEanT_.js';
|
|
6
6
|
import '@scandit/web-datacapture-barcode';
|
|
7
7
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
8
8
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
@@ -26,6 +26,7 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
26
26
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
27
27
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
28
28
|
import '@scandit/web-datacapture-core';
|
|
29
|
+
import './AdaptiveRecognitionMode.js';
|
|
29
30
|
import './CapturedLabel.js';
|
|
30
31
|
import './LabelField.js';
|
|
31
32
|
import './LabelFieldState.js';
|
|
@@ -11,6 +11,7 @@ import './LabelDateResult.js';
|
|
|
11
11
|
|
|
12
12
|
declare class PrivateValidationFlowHandler {
|
|
13
13
|
private [nativeHandle];
|
|
14
|
+
private labelCaptureWorkerManager;
|
|
14
15
|
private constructor();
|
|
15
16
|
private static create;
|
|
16
17
|
startCompleteLabelScan(name: string): Promise<void>;
|
|
@@ -20,6 +21,8 @@ declare class PrivateValidationFlowHandler {
|
|
|
20
21
|
pauseScan(): Promise<void>;
|
|
21
22
|
resumeScan(): Promise<void>;
|
|
22
23
|
validationFlowFields(): Promise<ValidationFlowField[]>;
|
|
24
|
+
cancelCloudBackupTaskForField(fieldName: string): Promise<void>;
|
|
25
|
+
uncancelCloudBackupTaskForField(fieldName: string): Promise<void>;
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export { PrivateValidationFlowHandler };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as PrivateValidationFlowHandler}from'../chunks/chunk-
|
|
1
|
+
export{a as PrivateValidationFlowHandler}from'../chunks/chunk-SWSQIF4W.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
2
|
-
import { N as NativeProxyHandle } from '../NativeProxy-
|
|
2
|
+
import { N as NativeProxyHandle } from '../NativeProxy-C4pEanT_.js';
|
|
3
3
|
import { TextField } from './TextField.js';
|
|
4
4
|
import '@scandit/web-datacapture-barcode';
|
|
5
5
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
@@ -24,6 +24,7 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
24
24
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
25
25
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
26
26
|
import '@scandit/web-datacapture-core';
|
|
27
|
+
import './AdaptiveRecognitionMode.js';
|
|
27
28
|
import './CapturedLabel.js';
|
|
28
29
|
import './LabelField.js';
|
|
29
30
|
import './LabelFieldState.js';
|
|
@@ -2,7 +2,7 @@ import { TextFieldBuilder } from './TextFieldBuilder.js';
|
|
|
2
2
|
import { TotalPriceText } from './TotalPriceText.js';
|
|
3
3
|
import './LabelFieldDefinitionBuilder.js';
|
|
4
4
|
import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
5
|
-
import '../NativeProxy-
|
|
5
|
+
import '../NativeProxy-C4pEanT_.js';
|
|
6
6
|
import '@scandit/web-datacapture-barcode';
|
|
7
7
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
8
8
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
@@ -26,6 +26,7 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
26
26
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
27
27
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
28
28
|
import '@scandit/web-datacapture-core';
|
|
29
|
+
import './AdaptiveRecognitionMode.js';
|
|
29
30
|
import './CapturedLabel.js';
|
|
30
31
|
import './LabelField.js';
|
|
31
32
|
import './LabelFieldState.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
2
|
-
import { N as NativeProxyHandle } from '../NativeProxy-
|
|
2
|
+
import { N as NativeProxyHandle } from '../NativeProxy-C4pEanT_.js';
|
|
3
3
|
import { TextField } from './TextField.js';
|
|
4
4
|
import '@scandit/web-datacapture-barcode';
|
|
5
5
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
@@ -24,6 +24,7 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
24
24
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
25
25
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
26
26
|
import '@scandit/web-datacapture-core';
|
|
27
|
+
import './AdaptiveRecognitionMode.js';
|
|
27
28
|
import './CapturedLabel.js';
|
|
28
29
|
import './LabelField.js';
|
|
29
30
|
import './LabelFieldState.js';
|
|
@@ -2,7 +2,7 @@ import { TextFieldBuilder } from './TextFieldBuilder.js';
|
|
|
2
2
|
import { UnitPriceText } from './UnitPriceText.js';
|
|
3
3
|
import './LabelFieldDefinitionBuilder.js';
|
|
4
4
|
import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
5
|
-
import '../NativeProxy-
|
|
5
|
+
import '../NativeProxy-C4pEanT_.js';
|
|
6
6
|
import '@scandit/web-datacapture-barcode';
|
|
7
7
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
8
8
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
@@ -26,6 +26,7 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
26
26
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
27
27
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
28
28
|
import '@scandit/web-datacapture-core';
|
|
29
|
+
import './AdaptiveRecognitionMode.js';
|
|
29
30
|
import './CapturedLabel.js';
|
|
30
31
|
import './LabelField.js';
|
|
31
32
|
import './LabelFieldState.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
2
|
-
import { N as NativeProxyHandle } from '../NativeProxy-
|
|
2
|
+
import { N as NativeProxyHandle } from '../NativeProxy-C4pEanT_.js';
|
|
3
3
|
import { TextField } from './TextField.js';
|
|
4
4
|
import '@scandit/web-datacapture-barcode';
|
|
5
5
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
@@ -24,6 +24,7 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
24
24
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
25
25
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
26
26
|
import '@scandit/web-datacapture-core';
|
|
27
|
+
import './AdaptiveRecognitionMode.js';
|
|
27
28
|
import './CapturedLabel.js';
|
|
28
29
|
import './LabelField.js';
|
|
29
30
|
import './LabelFieldState.js';
|
|
@@ -2,7 +2,7 @@ import { TextFieldBuilder } from './TextFieldBuilder.js';
|
|
|
2
2
|
import { WeightText } from './WeightText.js';
|
|
3
3
|
import './LabelFieldDefinitionBuilder.js';
|
|
4
4
|
import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
5
|
-
import '../NativeProxy-
|
|
5
|
+
import '../NativeProxy-C4pEanT_.js';
|
|
6
6
|
import '@scandit/web-datacapture-barcode';
|
|
7
7
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
8
8
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
@@ -26,6 +26,7 @@ import '../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
|
26
26
|
import '../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
27
27
|
import '../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
28
28
|
import '@scandit/web-datacapture-core';
|
|
29
|
+
import './AdaptiveRecognitionMode.js';
|
|
29
30
|
import './CapturedLabel.js';
|
|
30
31
|
import './LabelField.js';
|
|
31
32
|
import './LabelFieldState.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var B=(E=>(E[E.CAPTURED=0]="CAPTURED",E[E.PREDICTED=1]="PREDICTED",E[E.UNKNOWN=2]="UNKNOWN",E))(B||{}),_=(N=>(N[N.BARCODE=0]="BARCODE",N[N.TEXT=1]="TEXT",N[N.OBJECT=2]="OBJECT",N[N.UNKNOWN=3]="UNKNOWN",N))(_||{}),u=(O=>(O[O.TOP_LEFT=0]="TOP_LEFT",O[O.TOP_RIGHT=1]="TOP_RIGHT",O[O.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",O[O.BOTTOM_LEFT=3]="BOTTOM_LEFT",O[O.TOP=4]="TOP",O[O.RIGHT=5]="RIGHT",O[O.BOTTOM=6]="BOTTOM",O[O.LEFT=7]="LEFT",O[O.CENTER=8]="CENTER",O[O.WHOLE_LABEL=9]="WHOLE_LABEL",O))(u||{}),P=(E=>(E[E.DMY=0]="DMY",E[E.MDY=1]="MDY",E[E.YMD=2]="YMD",E))(P||{}),H=(x=>(x[x.OFF=0]="OFF",x[x.AUTO=1]="AUTO",x))(H||{});export{B as a,_ as b,u as c,P as d,H as e};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {Logger}from'@scandit/web-datacapture-core';var f=class{constructor(a={quality:1}){this.options=a;}async convertToJpeg(a){Logger.info("Converting image to JPEG");try{let{width:e,height:r,planes:t}=this.validateAndExtractImageData(a);this.prepareCanvas(e,r);let s=this.processImageData(a,t,e,r);return await this.convertToJpegBytes(s)}catch(e){throw Logger.warn(`Failed to convert image to JPEG: ${e}`),e instanceof Error?e:new Error("Failed to convert image to JPEG")}}validateAndExtractImageData(a){let e=a.getWidth(),r=a.getHeight(),t=a.getPlanes();if(e<=0||r<=0)throw Logger.warn(`Invalid image dimensions: ${e}x${r}`),new Error(`Invalid image dimensions: ${e}x${r}`);if(!t||t.length===0)throw Logger.warn("ImageBuffer has no planes"),new Error("ImageBuffer has no planes");return {width:e,height:r,planes:t}}prepareCanvas(a,e){if(!this.ensureCanvas(a,e))throw new Error("Failed to create OffscreenCanvas");if(!this.canvas||!this.context)throw new Error("Canvas or context not properly initialized")}processImageData(a,e,r,t){let s=this.createImageDataFromBuffer(a,e,r,t);if(s===null)throw new Error("Failed to create ImageData");return this.validateImageData(s,r,t),s}validateImageData(a,e,r){var t;if(a.width!==e||a.height!==r)throw Logger.warn(`ImageData dimensions mismatch: expected ${e}x${r}, got ${a.width}x${a.height}`),new Error("ImageData dimensions mismatch");if(!a.data||a.data.length!==e*r*4)throw Logger.warn(`ImageData has invalid data length: expected ${e*r*4}, got ${((t=a.data)==null?void 0:t.length)||0}`),new Error("ImageData has invalid data length")}async convertToJpegBytes(a){if(!this.context||!this.canvas)throw new Error("Canvas or context not available");try{this.context.putImageData(a,0,0);}catch(t){throw Logger.warn(`Failed to put image data on canvas: ${t}`),new Error(`Failed to put image data on canvas: ${t}`)}let e;try{e=await this.canvas.convertToBlob({type:"image/jpeg",quality:this.options.quality});}catch(t){throw Logger.warn(`Failed to convert canvas to blob: ${t}`),new Error(`Failed to convert canvas to blob: ${t}`)}if(!e||e.size===0)throw Logger.warn("Canvas convertToBlob returned empty or null blob"),new Error("Failed to create JPEG blob");let r;try{r=await e.arrayBuffer();}catch(t){throw Logger.warn(`Failed to get array buffer from blob: ${t}`),new Error(`Failed to get array buffer from blob: ${t}`)}if(!r||r.byteLength===0)throw Logger.warn("Blob arrayBuffer returned empty or null buffer"),new Error("Failed to get array buffer from blob");return new Uint8Array(r)}ensureCanvas(a,e){try{return (!this.canvas||this.canvas.width!==a||this.canvas.height!==e)&&(this.canvas=new OffscreenCanvas(a,e),this.context=this.canvas.getContext("2d")),this.context!==null}catch(r){return Logger.warn(`Failed to create OffscreenCanvas. OffScreenCanvas is not supported in this browser: ${r}`),false}}createImageDataFromBuffer(a,e,r,t){let s=new Set(e.map(i=>i.channel));try{if(this.isYUVFormat(s)){let n=a.toBitmap();return !n||n.length!==r*t*4?(Logger.warn(`Invalid bitmap data from toBitmap(): expected ${r*t*4} bytes, got ${(n==null?void 0:n.length)||0}`),null):new ImageData(new Uint8ClampedArray(n),r,t)}if(this.isRGBAFormat(s))return this.createImageDataFromRGBAPlanes(e,r,t);if(this.isRGBFormat(s))return this.createImageDataFromRGBPlanes(e,r,t);if(this.isGrayscaleFormat(s))return this.createImageDataFromGrayscalePlanes(e,r,t);Logger.warn(`Unknown image format with channels: ${Array.from(s).join(", ")}, falling back to toBitmap()`);let i=a.toBitmap();if(!i||i.length===0)return Logger.warn("toBitmap() returned empty or null data"),null;let m=i.length/(r*t);return m===4?new ImageData(new Uint8ClampedArray(i),r,t):(Logger.warn(`Unsupported format: ${m} bytes per pixel`),null)}catch(i){return Logger.warn(`Failed to create ImageData: ${i}`),null}}isYUVFormat(a){return a.has(0)&&a.has(1)&&a.has(2)}isRGBAFormat(a){return a.has(3)&&a.has(4)&&a.has(5)&&a.has(6)}isRGBFormat(a){return a.has(3)&&a.has(4)&&a.has(5)&&!a.has(6)}isGrayscaleFormat(a){return a.has(0)&&!a.has(1)&&!a.has(2)}createImageDataFromRGBAPlanes(a,e,r){let t=a.find(o=>o.channel===3),s=a.find(o=>o.channel===4),i=a.find(o=>o.channel===5),m=a.find(o=>o.channel===6);if(!t||!s||!i||!m)return Logger.warn("Missing RGBA planes"),null;let n=new Uint8ClampedArray(e*r*4);for(let o=0;o<r;o++)for(let c=0;c<e;c++){let u=(o*e+c)*4;n[u]=this.getPixelFromPlane(t,c,o),n[u+1]=this.getPixelFromPlane(s,c,o),n[u+2]=this.getPixelFromPlane(i,c,o),n[u+3]=this.getPixelFromPlane(m,c,o);}return new ImageData(n,e,r)}createImageDataFromRGBPlanes(a,e,r){let t=a.find(n=>n.channel===3),s=a.find(n=>n.channel===4),i=a.find(n=>n.channel===5);if(!t||!s||!i)return Logger.warn("Missing RGB planes"),null;let m=new Uint8ClampedArray(e*r*4);for(let n=0;n<r;n++)for(let o=0;o<e;o++){let c=(n*e+o)*4;m[c]=this.getPixelFromPlane(t,o,n),m[c+1]=this.getPixelFromPlane(s,o,n),m[c+2]=this.getPixelFromPlane(i,o,n),m[c+3]=255;}return new ImageData(m,e,r)}createImageDataFromGrayscalePlanes(a,e,r){let t=a.find(i=>i.channel===0);if(!t)return Logger.warn("Missing Y plane for grayscale"),null;let s=new Uint8ClampedArray(e*r*4);for(let i=0;i<r;i++)for(let m=0;m<e;m++){let n=(i*e+m)*4,o=this.getPixelFromPlane(t,m,i);s[n]=o,s[n+1]=o,s[n+2]=o,s[n+3]=255;}return new ImageData(s,e,r)}getPixelFromPlane(a,e,r){let t=Math.floor(e/(a.subsamplingX||1)),s=Math.floor(r/(a.subsamplingY||1)),i=a.rowStride,m=a.pixelStride,n=s*i+t*m,o=a.data;return n<o.length?o[n]:0}};export{f as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-QWUV2OFD.js';import {a as a$
|
|
1
|
+
import {a}from'./chunk-QWUV2OFD.js';import {a as a$1}from'./chunk-SYDG6PPD.js';import {a as a$2}from'./chunk-6KUX2QIV.js';var p=class extends a{constructor(){super(...arguments);this.shouldResetDataTypePatterns=false;}setDataTypePatterns(t){return this.dataTypePatterns=t,this}setDataTypePattern(t){return this.dataTypePatterns=[t],this}resetDataTypePatterns(){return this.shouldResetDataTypePatterns=true,this}setLabelDateFormat(t){return this.labelDateFormat=t,this}async build(t){var a,r;let l=await a$1().workerCommand("labelCaptureBuildExpiryDateText",{payload:{name:t,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,patterns:this.patterns,dataTypePatterns:this.dataTypePatterns,shouldResetDataTypePatterns:this.shouldResetDataTypePatterns,labelDateFormat:(a=this.labelDateFormat)==null?void 0:a.toJSONObject()}}),e=a$2.forHandle(l);return e._isOptional=this._isOptional,e._name=t,e._patterns=this.patterns,e._dateFormat=this.labelDateFormat,e._dataTypePatterns=(r=this.dataTypePatterns)!=null?r:[],e}getThis(){return this}};export{p as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a as a$3}from'./chunk-7YYY7VA3.js';import {a as a$2}from'./chunk-RTUZ7UNX.js';import {a as a$4}from'./chunk-XW4HFTSX.js';import {b}from'./chunk-7W7VDXJD.js';import {a as a$9}from'./chunk-CWOXTL6A.js';import {a as a$1}from'./chunk-FLGWGEP3.js';import {a}from'./chunk-VSH23DF3.js';import {a as a$6}from'./chunk-2BXP3X3H.js';import {a as a$7}from'./chunk-SUEFKTEN.js';import {a as a$5}from'./chunk-SYDG6PPD.js';import {a as a$8}from'./chunk-ZU6C4VWO.js';import {Logger,Color,ScanditIconType,BrowserHelper,FrameSourceState}from'@scandit/web-datacapture-core';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';import {Backdrop}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Backdrop.js';import {Card}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';import {CardListEvents}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/CardList.js';import {SecondaryBlue60,SecondaryBlue10}from'@scandit/web-datacapture-core/build/js/private/ui/colors.js';function v(d){let t=btoa(d).replace(/=/g,"");return /^[a-z]/.test(t)?t:`id-${t}`}function q(d){return d?`${d.day} - ${d.month} - ${d.year}`:""}function j({name:d,type:t,label:a,value:e,errorMessage:i,loadingText:r,required:n}){let o=Card.create(),u=a$9.create(),l=a$4.create();return l.errorMessage=i,l.type=t,l.label=a,l.value=e,l.required=n,l.name=d,l.loadingText=r,u.append(l),o.append(u),o.backgroundColor=Color.fromHex("#fff"),o.id=v(d),o}var W={3:"Paused",4:"Finished",2:"In complete scan",1:"In partial scan",0:"Idle"};function F(d){return d.map(t=>a$7.fromJSONObject(t))}var H=class H{constructor(t,a$5,e){this.listener={onValidationFlowLabelCaptured:t=>{}};this.onWorkerMessageHandler=this.onWorkerMessage.bind(this);this.onInputManuallyButtonClickHandler=this.onInputManuallyButtonClick.bind(this);this.onSubmitButtonClickHandler=this.onSubmitButtonClick.bind(this);this.onRestartButtonClickHandler=this.onRestartButtonClick.bind(this);this.onBackButtonClickHandler=this.onBackButton.bind(this);this.onContextUpdatedListenerHandler=this.onContextUpdatedListener.bind(this);this.onTextInputAimerIconClickHandler=this.onTextInputAimerIconClick.bind(this);this.onTextInputClearIconClickHandler=this.onTextInputClearIconClick.bind(this);this.currentInput=null;this.onCardListClickHandler=this.onCardListClick.bind(this);this.onClickOutsideHandler=this.onClickOutside.bind(this);this.validationFieldsState=new Map;this.cloudBackupProcessingFields=new Set;this[nativeHandle]=t,this.validationFlowHandler=a$5,this.validationSettings=e;for(let i of [a,a$1,a$2,b,a$3,a$4])i.register();}static async withLabelCaptureForView(t,a){var o;let e=await a$5().workerCommand("validationFlowOverlayForLabelCapture",{payload:{labelCaptureHandle:t[nativeHandle]}}),i=await t.validationFlowHandler(),r=await a$6.create(),n=new H(e,i,r);return n.labelCapture=t,await a.addOverlay(n),(o=t.context)==null||o.updateListeners.add(n.onContextUpdatedListenerHandler),await n.mount(a),await n.goToCompleteScan(),n}async applySettings(t){this.validationSettings=t,await a$5().workerCommand("validationFlowOverlayApplySettings",{payload:{overlayHandle:this[nativeHandle],settingsHandle:t[nativeHandle]}}),this.inputManuallyButton.text=this.validationSettings.manualInputButtonText;}toJSONObject(){return {type:"ValidationFlowOverlay",nativeHandle:this[nativeHandle]}}async goToCompleteScan(){this.hideCardListAndShowInputManuallyButton(),await this.validationFlowHandler.startCompleteLabelScan("");let t=await this.validationFlowHandler.validationFlowFields();Logger.debug("ValidationFlowHandler::validationFlowFields",t),this.initializeCards(t),t.length===1&&(await this.onInputManuallyButtonClickHandler(),await this.onTextInputAimerIconClickHandler());}async mount(t){a$5().addWorkerListener(this.onWorkerMessageHandler),this.layout=a$3.create(),this.cardListContainer=b.create(),this.cardListContainer.slot="card-list",this.cardListContainer.hidden=true,this.backAndRestartButton=a$1.create(),this.backAndRestartButton.variant="restart",this.submitButton=a.create(),this.submitButton.ariaLabel="Submit",this.submitButton.backgroundColor=SecondaryBlue60,this.submitButton.iconColor=Color.fromHex("#fff"),this.submitButton.icon=ScanditIconType.Checkmark,this.cardListContainer.append(this.backAndRestartButton,this.submitButton),this.inputManuallyButton=a$2.create(),this.inputManuallyButton.slot="bottom-button",this.inputManuallyButton.text=this.validationSettings.manualInputButtonText,this.layout.append(this.cardListContainer,this.inputManuallyButton),this.backdrop=Backdrop.create(),this.backdrop.slot="backdrop",this.layout.append(this.backdrop),t.htmlElement.prepend(this.layout),this.inputManuallyButton.addEventListener("click",this.onInputManuallyButtonClickHandler),this.submitButton.addEventListener("click",this.onSubmitButtonClickHandler),this.backAndRestartButton.addEventListener("restart",this.onRestartButtonClickHandler),this.backAndRestartButton.addEventListener("back",this.onBackButtonClickHandler),this.layout.addEventListener("click",this.onClickOutsideHandler),this.cardListContainer.addEventListener("on-button-container-click",this.onClickOutsideHandler),this.cardListContainer.addEventListener(CardListEvents.Tap,this.onCardListClickHandler),this.cardListContainer.addEventListener("text-input-aimer-icon-click",this.onTextInputAimerIconClickHandler),this.cardListContainer.addEventListener("text-input-clear-icon-click",this.onTextInputClearIconClickHandler);}async unmount(){var t,a,e,i,r,n,o,u,l,s,c,b;a$5().removeWorkerListener(this.onWorkerMessageHandler),(a=(t=this.labelCapture)==null?void 0:t.context)==null||a.updateListeners.delete(this.onContextUpdatedListenerHandler),(e=this.inputManuallyButton)==null||e.removeEventListener("click",this.onInputManuallyButtonClickHandler),(i=this.submitButton)==null||i.removeEventListener("click",this.onSubmitButtonClickHandler),(r=this.backAndRestartButton)==null||r.removeEventListener("restart",this.onRestartButtonClickHandler),(n=this.backAndRestartButton)==null||n.removeEventListener("back",this.onBackButtonClickHandler),(o=this.layout)==null||o.removeEventListener("click",this.onClickOutsideHandler),(u=this.cardListContainer)==null||u.removeEventListener("on-button-container-click",this.onClickOutsideHandler),(l=this.cardListContainer)==null||l.removeEventListener(CardListEvents.Tap,this.onCardListClickHandler),(s=this.cardListContainer)==null||s.removeEventListener("text-input-aimer-icon-click",this.onTextInputAimerIconClickHandler),(c=this.cardListContainer)==null||c.removeEventListener("text-input-clear-icon-click",this.onTextInputClearIconClickHandler),(b=this.layout)==null||b.remove(),this.validationFieldsState.clear(),this.cloudBackupProcessingFields.clear();}async onContextUpdatedListener(t){t.type==="removeOverlay"&&t.newValue===this&&await this.unmount(),t.type==="modeEnabled"&&t.newValue&&(this.validationFlowHandlerState===4||this.validationFlowHandlerState===0)&&(Logger.debug("Validation flow overlay: mode enabled and validation flow finished, going to complete scan"),await this.goToCompleteScan());}hasClickedOutsideOfCardList(t){return t.type==="on-button-container-click"&&t.target instanceof b||t.type==="click"&&t.target instanceof a$3||t.type==="click"&&t.target instanceof Backdrop}async onClickOutside(t){if(this.hasClickedOutsideOfCardList(t)){if(this.cloudBackupProcessingFields.size>0){let a=[];for(let e of this.cloudBackupProcessingFields)a.push(this.validationFlowHandler.uncancelCloudBackupTaskForField(e));await Promise.all(a);}await this.onBackButtonClickHandler();}}initializeCards(t){var e;let a=[];for(let i of t){let r=i.getLabelField(),n=j({name:r.name,type:"text",label:r.isRequired?`${r.name} *`:r.name,loadingText:"Processing, type to type manually",value:(e=r.text)!=null?e:"",errorMessage:r.isRequired?this.validationSettings.requiredFieldErrorText:this.validationSettings.validationErrorText,required:r.isRequired});a.push(n);}this.cardListContainer.renderCards(a);}async onCardListClick(t){let a=t.detail.card;if(this.currentInput=a==null?void 0:a.querySelector(a$4.tag),!a||!this.currentInput)return;let e=this.currentInput.name;if(this.cloudBackupProcessingFields.has(e)){await this.validationFlowHandler.cancelCloudBackupTaskForField(e),this.cloudBackupProcessingFields.delete(e);let i=this.cardListContainer.getCardBySelector(`#${v(e)}`);this.updateCard({card:i,valid:true,value:"",resetBackgroundColor:true});}this.currentInput.showKeyboard(BrowserHelper.isDesktopDevice()?0:1e3,()=>{this.cardListContainer.focusCard(a);}),this.updateCard({card:a,valid:true,resetBackgroundColor:true}),this.backAndRestartButton.variant="back",this.submitButton.hide(),this.cardListContainer.buttonSidePositionIfLandscape=true,await this.validationFlowHandler.pauseScan(),await this.cardListContainer.unshiftCard(a),await this.cardListContainer.collapse();}async onTextInputAimerIconClick(t){var e,i;this.currentInput=(e=t==null?void 0:t.detail.target)!=null?e:this.cardListContainer.cards[0].querySelector(a$4.tag);let a=(i=this.currentInput)==null?void 0:i.closest(Card.tag);a&&(await this.cardListContainer.unshiftCard(a),this.backAndRestartButton.variant="back",this.submitButton.hide(),this.cardListContainer.unfocusCard(a),await this.cardListContainer.collapse()),await this.validationFlowHandler.startPartialLabelScan([this.currentInput.name]);}async onTextInputClearIconClick(t){let a=t.detail.target.closest(Card.tag),e=t.detail.target;this.updateCard({card:a,valid:true,value:"",resetBackgroundColor:true}),await this.validationFlowHandler.pauseScan();let i=await this.validationFlowHandler.updateFieldValue(e.name,"");this.validationFieldsState.set(e,i),await this.cardListContainer.unshiftCard(a),await this.expandListAndShowSubmitAndRestartButton();}async onInputManuallyButtonClick(){this.showCardListAndHideInputManuallyButton(),await this.validationFlowHandler.pauseScan();}async onSubmitButtonClick(){this.currentInput=null;let t=await this.validationFlowHandler.onFinishFlowRequested();if(t.type==="result"){let a=t.result.map(e=>a$7.fromJSONObject(e));this.hideCardListAndShowInputManuallyButton(),this.listener.onValidationFlowLabelCaptured(a.map(e=>e.getLabelField()));}else {for(let[a,e]of this.validationFieldsState.entries()){let i=a.closest(Card.tag);i!=null&&a.value!==""&&this.updateCard({card:i,valid:e});}Logger.info("Validation flow overlay: on finish flow requested error:",t.error);}}async onRestartButtonClick(){this.resetAllCardsTextInputFields(),this.hideCardListAndShowInputManuallyButton(),this.submitButton.show(),this.validationFieldsState.clear(),await this.validationFlowHandler.pauseScan(),await this.validationFlowHandler.startCompleteLabelScan("");}async expandListAndShowSubmitAndRestartButton(){await this.cardListContainer.expand(),this.submitButton.show(),this.cardListContainer.buttonSidePositionIfLandscape=false,this.backAndRestartButton.variant="restart";}async onBackButton(){if(!this.currentInput)return;await this.validationFlowHandler.pauseScan();let t=await this.validationFlowHandler.updateFieldValue(this.currentInput.name,this.currentInput.value);if(this.validationFieldsState.set(this.currentInput,t),this.currentInput.value===""){await this.expandListAndShowSubmitAndRestartButton();return}this.updateCard({card:this.currentInput.closest(Card.tag),valid:t}),t&&await this.expandListAndShowSubmitAndRestartButton();}resetAllCardsTextInputFields(){for(let t of this.cardListContainer.cards)this.updateCard({card:t,valid:true,value:"",resetBackgroundColor:true});}async standByCamera(){var t;this.labelCapture.context&&await((t=this.labelCapture.context.frameSource)==null?void 0:t.switchToDesiredState(FrameSourceState.Standby));}async activateCamera(){var t;this.labelCapture.context&&await((t=this.labelCapture.context.frameSource)==null?void 0:t.switchToDesiredState(FrameSourceState.On));}updateCard({card:t,value:a,valid:e=true,loading:i=false,resetBackgroundColor:r=false}){if(!t)return;let n=t.querySelector(a$4.tag);if(!n)return;t.haloGlow=i,t.withBorder=!e&&!i,n.loading=i,n.invalid=!e&&!i,n.errorMessage=n.required?this.validationSettings.requiredFieldErrorText:this.validationSettings.validationErrorText,a!==void 0&&(n.value=a);let o=Color.fromHex("#fff"),u=e&&!i&&n.value!=="";t.backgroundColor=r?o:u?SecondaryBlue10:o;}async handleLabelIsMissingRequiredFieldState(t){for(let a of t){let e=this.cardListContainer.getCardBySelector(`#${v(a.getLabelField().name)}`);e!=null&&this.updateCard({card:e,valid:a.isValid()});}}handleOnFinished(){this.backAndRestartButton.variant="restart";}showCardListAndHideInputManuallyButton(){this.cardListContainer.hidden=false,this.inputManuallyButton.hidden=true;}hideCardListAndShowInputManuallyButton(){this.cardListContainer.hidden=true,this.inputManuallyButton.hidden=false;}handleOnFieldsScanned(t){var a,e,i,r,n,o,u;this.cardListContainer.hidden&&this.showCardListAndHideInputManuallyButton();for(let l of t){let s=l.getLabelField(),c=this.cardListContainer.getCardBySelector(`#${v(s.name)}`),b=c==null?void 0:c.querySelector(a$4.tag);if(!(!c||!b))switch(s.type){case a$8.Text:this.updateCard({card:c,valid:l.isValid(),value:(a=s.text)!=null?a:""});break;case a$8.Barcode:this.updateCard({card:c,valid:l.isValid(),value:(r=(i=(e=s.barcode)==null?void 0:e.data)!=null?i:s.text)!=null?r:""});break;default:{let O=(u=(o=s.text)!=null?o:(n=s.barcode)==null?void 0:n.data)!=null?u:s.date?q(s.date):"";this.updateCard({card:c,valid:l.isValid(),value:O});break}}}this.cardListContainer.isCollapsed()&&this.onBackButtonClickHandler();}async handleScanTimeout(){this.showCardListAndHideInputManuallyButton(),await this.validationFlowHandler.pauseScan();}async handleInPauseScan(){await Promise.all([this.backdrop.show(),this.standByCamera()]);}async handleInCompleteScan(){await Promise.all([this.backdrop.hide(),this.activateCamera()]);}async handleInPartialScan(){await Promise.all([this.backdrop.hide(),this.activateCamera()]);}handleOnCloudBackupServiceStartedForFields(t){for(let a of t){let e=a.getLabelField().name;this.cloudBackupProcessingFields.add(e);let i=this.cardListContainer.getCardBySelector(`#${v(e)}`);this.updateCard({card:i,loading:true});}}handleOnCloudBackupServiceFailedForFields(t){for(let a of t){let e=a.getLabelField().name;this.cloudBackupProcessingFields.delete(e);let i=this.cardListContainer.getCardBySelector(`#${v(e)}`);this.updateCard({card:i,loading:false});}}async onWorkerMessage(t){switch(t.type){case "validationFlowListenerOnFieldsScanned":{this.labelCapture.emitFeedback(),this.handleOnFieldsScanned(F(t.payload.fields));break}case "validationFlowListenerOnScanTimeout":{await this.handleScanTimeout();break}case "validationFlowListenerOnLabelIsMissingRequiredField":{let a=F(t.payload.fields);await this.handleLabelIsMissingRequiredFieldState(a);break}case "validationFlowListenerOnStateChanged":switch(this.validationFlowHandlerState=t.payload.state,Logger.debug(`Validation flow overlay: entering in ${W[t.payload.state]} state`),t.payload.state){case 4:this.handleOnFinished();break;case 2:await this.handleInCompleteScan();break;case 1:await this.handleInPartialScan();break;case 3:await this.handleInPauseScan();break}break;case "validationFlowListenerOnCloudBackupServiceStartedForFields":this.handleOnCloudBackupServiceStartedForFields(F(t.payload.fields));break;case "validationFlowListenerOnCloudBackupServiceFailedForFields":this.handleOnCloudBackupServiceFailedForFields(F(t.payload.fields));break}}},V=H;export{V as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _=(A=>(A[A.EAN13_UPCA=0]="EAN13_UPCA",A[A.UPCE=1]="UPCE",A[A.EAN8=2]="EAN8",A[A.CODE39=3]="CODE39",A[A.CODE93=4]="CODE93",A[A.CODE128=5]="CODE128",A[A.CODE11=6]="CODE11",A[A.CODE25=7]="CODE25",A[A.CODABAR=8]="CODABAR",A[A.INTERLEAVED_TWO_OF_FIVE=9]="INTERLEAVED_TWO_OF_FIVE",A[A.MSI_PLESSEY=10]="MSI_PLESSEY",A[A.QR=11]="QR",A[A.DATA_MATRIX=12]="DATA_MATRIX",A[A.AZTEC=13]="AZTEC",A[A.MAXI_CODE=14]="MAXI_CODE",A[A.DOT_CODE=15]="DOT_CODE",A[A.KIX=16]="KIX",A[A.ROYAL_MAIL_4STATE=17]="ROYAL_MAIL_4STATE",A[A.GS1_DATABAR=18]="GS1_DATABAR",A[A.GS1_DATABAR_EXPANDED=19]="GS1_DATABAR_EXPANDED",A[A.GS1_DATABAR_LIMITED=20]="GS1_DATABAR_LIMITED",A[A.PDF417=21]="PDF417",A[A.MICRO_PDF417=22]="MICRO_PDF417",A[A.MICRO_QR=23]="MICRO_QR",A[A.CODE32=24]="CODE32",A[A.LAPA4SC=25]="LAPA4SC",A[A.IATA_TWO_OF_FIVE=26]="IATA_TWO_OF_FIVE",A[A.MATRIX_TWO_OF_FIVE=27]="MATRIX_TWO_OF_FIVE",A[A.USPS_INTELLIGENT_MAIL=28]="USPS_INTELLIGENT_MAIL",A[A.ARUCO=29]="ARUCO",A[A.UPU4STATE=30]="UPU4STATE",A[A.AUSTRALIANPOST=31]="AUSTRALIANPOST",A[A.FRENCHPOST=32]="FRENCHPOST",A))(_||{}),T=(E=>(E[E.NONE=0]="NONE",E[E.UNKNOWN=1]="UNKNOWN",E[E.LINKED=2]="LINKED",E[E.GS1_TYPE_A=3]="GS1_TYPE_A",E[E.GS1_TYPE_B=4]="GS1_TYPE_B",E[E.GS1_TYPE_C=5]="GS1_TYPE_C",E))(T||{});export{_ as a,T as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var i=class{constructor(a){this.workerMain=a;}onFieldsScanned(a){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnFieldsScanned",payload:{fields:a.map(e=>({labelField:JSON.parse(e.getLabelField().toJson()),valid:e.isValid()}))}});}onScanTimeout(){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnScanTimeout"});}onLabelIsMissingRequiredField(a){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnLabelIsMissingRequiredField",payload:{fields:a.map(e=>({labelField:JSON.parse(e.getLabelField().toJson()),valid:e.isValid()}))}});}onCloudBackupServiceStartedForFields(a){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnCloudBackupServiceStartedForFields",payload:{fields:a.map(e=>({labelField:JSON.parse(e.getLabelField().toJson()),valid:e.isValid()}))}});}onCloudBackupServiceFailedForFields(a){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnCloudBackupServiceFailedForFields",payload:{fields:a.map(e=>({labelField:JSON.parse(e.getLabelField().toJson()),valid:e.isValid()}))}});}onStateChanged(a){this.workerMain.postCallbackMessage({type:"validationFlowListenerOnStateChanged",payload:{state:a}});}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-SWSQIF4W.js';import {a}from'./chunk-XETUH5HN.js';import {a as a$3}from'./chunk-2WECOW4F.js';import {a as a$2}from'./chunk-SYDG6PPD.js';import {CameraSettings,FocusGestureStrategy,VideoResolution,convertToPublicFrameData}from'@scandit/web-datacapture-core';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';import {warnMultithreadingUnavailable}from'@scandit/web-datacapture-core/build/js/private/utils/warnMultithreadingUnavailable.js';var l=class l{constructor(e,a$1){this.skipSerialization=true;this.context=null;this.listeners=new Set;this._validationFlowHandler=null;this.workerListener=this.onWorkerMessage.bind(this);this._isEnabled=true;this._feedback=a.default;this[nativeHandle]=e,this.context=a$1;}toJSONObject(){return {type:"labelCapture",enabled:this.isEnabled(),settings:{}}}async validationFlowHandler(){return this._validationFlowHandler||(this._validationFlowHandler=await a$1.create(this)),this._validationFlowHandler}static createRecommendedCameraSettings(){let e=CameraSettings.fromJSON({preferredResolution:VideoResolution.FullHD,zoomFactor:1,zoomGestureZoomFactor:1,focusGestureStrategy:FocusGestureStrategy.ManualUntilCapture});return e.setProperty("grayScaleFrameReader",true),e}static async forContext(e,a){warnMultithreadingUnavailable();let i=await a$2().workerCommand("labelCaptureCreate",{payload:{settingsHandle:a[nativeHandle]}}),o=new l(i,e);return await e.addMode(o),o}async attachedToContext(e){this.context=e,await a$2().workerCommand("labelCaptureAddToContext",{payload:{labelCaptureHandle:this[nativeHandle]}});}async detachedFromContext(){await a$2().workerCommand("labelCaptureRemoveFromContext",{payload:{labelCaptureHandle:this[nativeHandle]}}),this.context=null;}get feedback(){return this._feedback}set feedback(e){this._feedback=e;}isEnabled(){return this._isEnabled}async setEnabled(e){var a;this._isEnabled=e;try{await a$2().workerCommand("labelCaptureSetEnabled",{payload:{enabled:e,labelCaptureHandle:this[nativeHandle]}}),await((a=this.context)==null?void 0:a.update([{type:"modeEnabled",newValue:e}],{updateContext:false}));}catch(i){throw this._isEnabled=!e,i}}async applySettings(e){await a$2().workerCommand("labelCaptureApplySettings",{payload:{settingsHandle:e[nativeHandle],labelCaptureHandle:this[nativeHandle]}});}addListener(e){var a;this.listeners.add(e),(a=e.didStartObservingLabelCapture)==null||a.call(e,this),this.listeners.size===1&&(a$2().addWorkerListener(this.workerListener),a$2().workerCommand("labelCaptureAddListener",{payload:{labelCaptureHandle:this[nativeHandle]}}));}removeListener(e){var a;this.listeners.delete(e),(a=e.didStopObservingLabelCapture)==null||a.call(e,this),this.listeners.size===0&&(a$2().removeWorkerListener(this.workerListener),a$2().workerCommand("labelCaptureRemoveListener",{payload:{labelCaptureHandle:this[nativeHandle]}}));}onWorkerMessage(e){switch(e.type){case "labelCaptureOnObservationStarted":this.didStartObservingLabelCapture();break;case "labelCaptureOnObservationStopped":this.didStopObservingLabelCapture();break;case "labelCaptureOnSessionUpdated":this.didUpdateSession(e.payload.session,e.payload.data);break}}didStartObservingLabelCapture(){var e;for(let a of this.listeners)(e=a.didStartObservingLabelCapture)==null||e.call(a,this);}didStopObservingLabelCapture(){var e;for(let a of this.listeners)(e=a.didStopObservingLabelCapture)==null||e.call(a,this);}didUpdateSession(e,a){var n;let i=a$3.fromJSON(e),o=convertToPublicFrameData(a,this.context);i.capturedLabels.length>0&&this.emitFeedback();for(let s of this.listeners)(n=s.didUpdateSession)==null||n.call(s,this,i,o);}emitFeedback(){var e;(e=this._feedback)!=null&&e.success&&this._feedback.success.emit();}},u=l;export{u as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-67ANQYNA.js';import {Symbology}from'@scandit/web-datacapture-barcode';function D(e){return {[Symbology.Aztec]:13,[Symbology.Codabar]:8,[Symbology.Code11]:6,[Symbology.Code128]:5,[Symbology.Code25]:7,[Symbology.Code32]:24,[Symbology.Code39]:3,[Symbology.Code93]:4,[Symbology.DataMatrix]:12,[Symbology.DotCode]:15,[Symbology.EAN13UPCA]:0,[Symbology.EAN8]:2,[Symbology.GS1Databar]:18,[Symbology.GS1DatabarExpanded]:19,[Symbology.GS1DatabarLimited]:20,[Symbology.IATATwoOfFive]:26,[Symbology.InterleavedTwoOfFive]:9,[Symbology.KIX]:16,[Symbology.Lapa4SC]:25,[Symbology.MSIPlessey]:10,[Symbology.MatrixTwoOfFive]:27,[Symbology.MaxiCode]:14,[Symbology.MicroPDF417]:22,[Symbology.MicroQR]:23,[Symbology.PDF417]:21,[Symbology.QR]:11,[Symbology.RoyalMail4state]:17,[Symbology.UPCE]:1,[Symbology.USPSIntelligentMail]:28,[Symbology.ArUco]:29}[e]}function T(e){if(e===29||e===31||e===32||e===30)throw new Error(`${a[e]} is not currently supported on the web.`);return {13:Symbology.Aztec,8:Symbology.Codabar,6:Symbology.Code11,5:Symbology.Code128,7:Symbology.Code25,24:Symbology.Code32,3:Symbology.Code39,4:Symbology.Code93,12:Symbology.DataMatrix,15:Symbology.DotCode,0:Symbology.EAN13UPCA,2:Symbology.EAN8,18:Symbology.GS1Databar,19:Symbology.GS1DatabarExpanded,20:Symbology.GS1DatabarLimited,26:Symbology.IATATwoOfFive,9:Symbology.InterleavedTwoOfFive,16:Symbology.KIX,25:Symbology.Lapa4SC,10:Symbology.MSIPlessey,27:Symbology.MatrixTwoOfFive,14:Symbology.MaxiCode,22:Symbology.MicroPDF417,23:Symbology.MicroQR,21:Symbology.PDF417,11:Symbology.QR,17:Symbology.RoyalMail4state,1:Symbology.UPCE,28:Symbology.USPSIntelligentMail}[e]}export{D as a,T as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {a}from'./chunk-CWOXTL6A.js';import {ScanditHTMLElement,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';import {Card}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/Card.js';import {CardList}from'@scandit/web-datacapture-core/build/js/private/ui/atoms/CardList.js';var b=(t=>(t.TextForSubmitCardsButton="text-for-submit-cards-button",t.ButtonSidePositionLandscape="button-side-position-landscape",t))(b||{}),i=class i extends ScanditHTMLElement{constructor(){var o;super();this.onButtonContainerClickHandler=this.onButtonContainerClick.bind(this);let t=this.attachShadow({mode:"open"});t.append(i.createStyleElement().cloneNode(true));let e=document.createElement("div");e.id="root",e.innerHTML=html`<div class="button-container"><slot></slot></div><${CardList.tag}></${CardList.tag}>`,t.append(e),this.buttonsContainer=(o=this.shadowRoot)==null?void 0:o.querySelector(".button-container");}get cardsList(){return this.shadowRoot.querySelector(CardList.tag)}get cards(){return Array.from(this.cardsList.querySelectorAll(Card.tag))}get buttonSidePositionIfLandscape(){return this.hasAttribute("button-side-position-landscape")}set buttonSidePositionIfLandscape(t){t?this.setAttribute("button-side-position-landscape",""):this.removeAttribute("button-side-position-landscape");}static create(){return document.createElement(i.tag)}static register(){for(let t of i.deps)t.register();defineCustomElements({[i.tag]:i});}static createStyleElement(){return css`:host #root{align-items:center;display:flex;flex-direction:column;gap:.5rem;height:100%}.button-container{align-items:center;display:flex;flex-direction:row;gap:.5rem;justify-content:space-between;width:100%}.button-container ::slotted(:last-child){margin-left:auto}@media (orientation:landscape){:host([button-side-position-landscape]) .button-container ::slotted(:first-child){position:absolute;transform:translate(-45px,50px);transition:transform .3s ease-in-out}:host(:not([button-side-position-landscape])) .button-container ::slotted(:first-child){position:absolute;transform:translate(0);transition:transform .3s ease-in-out}}`}connectedCallback(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(".button-container");t&&t.addEventListener("click",this.onButtonContainerClickHandler);}disconnectedCallback(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(".button-container");t&&t.removeEventListener("click",this.onButtonContainerClickHandler);}onButtonContainerClick(t){this.dispatchEvent(new CustomEvent("on-button-container-click",{detail:{event:t}}));}collapse(){return this.cardsList.collapse()}focusCard(t){for(let e of this.cards)e!==t&&(e.style.opacity="0");}unfocusCard(t){for(let e of this.cards)e!==t&&(e.style.opacity="unset");}isCollapsed(){return this.cardsList.collapsed}expand(){return this.cardsList.expand()}toggle(){this.cardsList.collapsed?this.expand():this.collapse();}renderCards(t){this.cardsList.clearCards(),this.cardsList.renderCards(t);}async unshiftCard(t){return this.cardsList.unshift(t)}getCardBySelector(t){return this.cardsList.querySelector(t)}updateHeight(t){var o,s;let e=(s=(o=this.buttonsContainer)==null?void 0:o.clientHeight)!=null?s:0;this.cardsList.style.setProperty("--list-height",`${t}px`),this.cardsList.style.setProperty("--top-offset",`calc(${e===0?32:e}px + 5rem)`);}};i.deps=[CardList,Card,a],i.tag="scandit-label-card-list-container";var c=i;export{b as a,c as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import {OrientationObserver,orientationChangeEvent}from'@scandit/web-datacapture-core/build/js/private/OrientationObserver.js';import {ScanditHTMLElement,debounce,html,defineCustomElements,css}from'@scandit/web-datacapture-core/build/js/private/utils/index.js';var i=class i extends ScanditHTMLElement{constructor(){super();this.orientationObserver=new OrientationObserver;this.onOrientationChangeHandler=debounce(this.onOrientationChange.bind(this),50);let e=this.attachShadow({mode:"open"});e.append(i.createStyleElement().cloneNode(true));let t=document.createElement("div");t.id="root",t.innerHTML=html`<div class="wrapper"><div class="main"><slot name="backdrop"></slot><slot name="card-list"></slot></div><div class="bottom-container"><slot name="bottom-button"></slot></div></div>`,e.append(t);}get cardListContainer(){return this.querySelector('[slot="card-list"]')}get main(){var e;return (e=this.shadowRoot)==null?void 0:e.querySelector(".main")}static create(){return document.createElement(i.tag)}static register(){defineCustomElements({[i.tag]:i});}addButtons(e){var t;(t=this.cardListContainer)==null||t.append(...e);}static createStyleElement(){return css`:host{inset:0;overflow:hidden;position:absolute;z-index:1}:host #root{--padding:1rem;box-sizing:border-box;display:flex;flex-direction:column;gap:.5rem;height:100%;justify-content:space-between;margin:0 auto;max-width:960px;padding:calc(var(--padding))}.main{display:flex;flex-direction:column;height:100%;overflow:hidden}:host .main ::slotted([slot=card-list]){margin-top:auto!important}.wrapper{display:flex;flex-direction:column;gap:.5rem;height:100%;justify-content:flex-end}.bottom-container{align-items:center;display:flex;justify-content:center}@media (orientation:landscape){.wrapper{flex:0 70%;height:100%;margin:0 auto}:host #root{flex-direction:row}}`}connectedCallback(){this.orientationObserver.addEventListener(orientationChangeEvent,this.onOrientationChangeHandler),this.orientationObserver.register();}disconnectedCallback(){this.orientationObserver.unregister(),this.orientationObserver.removeEventListener(orientationChangeEvent,this.onOrientationChangeHandler);}onOrientationChange(e){var t,n,a,o,r;(t=this.main)==null||t.style.setProperty("height","100%"),(o=this.cardListContainer)==null||o.updateHeight((a=(n=this.main)==null?void 0:n.getBoundingClientRect().height)!=null?a:0),(r=this.main)==null||r.style.setProperty("height","unset");}};i.tag="scandit-label-capture-validation-flow-layout";var l=i;export{l as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function i(o){return {off:0,auto:1}[o]}export{i as a};
|