@scandit/web-datacapture-label 8.2.0 → 8.2.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/{LabelCapture-DGLkCHVN.d.ts → LabelCapture-DrHOFOh1.d.ts} +0 -1
- package/build/js/{LabelCaptureAdvancedOverlay-Gh80a5hZ.d.ts → LabelCaptureAdvancedOverlay-Dq97psgW.d.ts} +2 -2
- package/build/js/{LabelCaptureBasicOverlay-C6TRvWxE.d.ts → LabelCaptureBasicOverlay-C3OSXO1g.d.ts} +2 -2
- package/build/js/{NativeProxy-DreJVzqM.d.ts → NativeProxy-CYZsx-_W.d.ts} +28 -8
- package/build/js/api/AdaptiveRecognitionResult.d.ts +2 -3
- package/build/js/api/CustomText.d.ts +2 -3
- package/build/js/api/CustomTextBuilder.d.ts +4 -3
- package/build/js/api/CustomTextBuilder.js +1 -1
- package/build/js/api/DateText.d.ts +2 -3
- package/build/js/api/DateTextBuilder.d.ts +2 -3
- package/build/js/api/ExpiryDateText.d.ts +2 -3
- package/build/js/api/ExpiryDateTextBuilder.d.ts +2 -3
- package/build/js/api/LabelCapture.d.ts +3 -4
- package/build/js/api/LabelCapture.js +1 -1
- package/build/js/api/LabelCaptureAdaptiveRecognitionOverlay.d.ts +3 -4
- package/build/js/api/LabelCaptureAdaptiveRecognitionSettings.d.ts +2 -3
- package/build/js/api/LabelCaptureAdvancedOverlay.d.ts +4 -5
- package/build/js/api/LabelCaptureAdvancedOverlayListener.d.ts +4 -5
- package/build/js/api/LabelCaptureBasicOverlay.d.ts +4 -5
- package/build/js/api/LabelCaptureBasicOverlayListener.d.ts +4 -5
- package/build/js/api/LabelCaptureListener.d.ts +3 -4
- package/build/js/api/LabelCaptureOverlayJSON.d.ts +2 -3
- package/build/js/api/LabelCaptureSettings.d.ts +2 -3
- package/build/js/api/LabelCaptureValidationFlow/LabelCaptureValidationFlowOverlay.d.ts +95 -0
- package/build/js/api/LabelCaptureValidationFlow/LabelCaptureValidationFlowOverlay.js +1 -0
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowPresenter.d.ts +349 -0
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowPresenter.js +1 -0
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowStateManager.d.ts +194 -0
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowStateManager.js +1 -0
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowView.d.ts +297 -0
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowView.js +1 -0
- package/build/js/api/LabelDefinition.d.ts +2 -3
- package/build/js/api/PackingDateText.d.ts +2 -3
- package/build/js/api/PackingDateTextBuilder.d.ts +2 -3
- package/build/js/api/PrivateReceiptScanningHandler.d.ts +2 -3
- package/build/js/api/PrivateReceiptScanningListener.d.ts +2 -3
- package/build/js/api/PrivateValidationFlowHandler.d.ts +47 -4
- package/build/js/api/PrivateValidationFlowHandler.js +1 -1
- package/build/js/api/ReceiptScanningResult.d.ts +2 -3
- package/build/js/api/TotalPriceText.d.ts +2 -3
- package/build/js/api/TotalPriceTextBuilder.d.ts +2 -3
- package/build/js/api/UnitPriceText.d.ts +2 -3
- package/build/js/api/UnitPriceTextBuilder.d.ts +2 -3
- package/build/js/api/ValidationFlowField.d.ts +1 -1
- package/build/js/api/WeightText.d.ts +2 -3
- package/build/js/api/WeightTextBuilder.d.ts +2 -3
- package/build/js/chunks/chunk-4LEONM2D.js +1 -0
- package/build/js/chunks/chunk-AONFYCPA.js +1 -0
- package/build/js/chunks/chunk-DVWSNT7T.js +1 -0
- package/build/js/chunks/chunk-DXLTMLGV.js +2 -0
- package/build/js/chunks/chunk-F5UH7T5M.js +1 -0
- package/build/js/chunks/chunk-HMFPC3RG.js +1 -0
- package/build/js/chunks/chunk-KBXWH2TW.js +1 -0
- package/build/js/chunks/chunk-KFIB6ALQ.js +1 -0
- package/build/js/chunks/chunk-NDYVHCIR.js +1 -0
- package/build/js/chunks/chunk-OWLFTMGR.js +1 -0
- package/build/js/chunks/{chunk-SQXVN7WR.js → chunk-QBLOKSED.js} +1 -1
- package/build/js/chunks/chunk-TBGGF77V.js +1 -0
- package/build/js/chunks/chunk-TTPFUFVN.js +1 -0
- package/build/js/chunks/chunk-VEAIPJDT.js +1 -0
- package/build/js/chunks/chunk-WFKHPFU2.js +1 -0
- package/build/js/chunks/chunk-XZAS7UFN.js +1 -0
- package/build/js/djinni-types/sdcLabelInternalModuleCapture.d.ts +10 -442
- package/build/js/djinni-types/sdcLabelInternalModuleCapture.js +1 -1
- package/build/js/djinni-types/sdcLabelInternalModuleUiOverlay.d.ts +2 -3
- package/build/js/index.d.ts +6 -7
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/private/PrivateLabelFieldDefinition.d.ts +2 -3
- package/build/js/private/createProxiedViewFinder.d.ts +4 -5
- package/build/js/private/viewfinderTranslator.js +1 -1
- package/build/js/sdcLabelInternalModuleCapture-wUz3FjZK.d.ts +479 -0
- package/build/js/ui/atoms/Button.d.ts +0 -1
- package/build/js/ui/atoms/TextInput.d.ts +45 -47
- package/build/js/ui/atoms/TextInput.js +1 -1
- package/build/js/ui/controllers/KeyboardVisibilityController.d.ts +100 -0
- package/build/js/ui/controllers/KeyboardVisibilityController.js +1 -0
- package/build/js/ui/organisms/LabelCaptureValidationFlowLayout.d.ts +18 -13
- package/build/js/ui/organisms/LabelCaptureValidationFlowLayout.js +1 -1
- package/build/js/worker/LabelCaptureWorkerManager.d.ts +2 -3
- package/build/js/worker/LabelCaptureWorkerManager.js +1 -1
- package/build/js/worker/WorkerMain.d.ts +2 -3
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/WorkerRegistry.d.ts +2 -3
- package/build/js/worker/dataCaptureEngine.d.ts +2 -3
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +2 -3
- package/build/js/worker/handlers/FieldBuilderHandler.d.ts +2 -3
- package/build/js/worker/handlers/FieldBuilderHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureAdvancedOverlayHandler.d.ts +2 -3
- package/build/js/worker/handlers/LabelCaptureAdvancedOverlayHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureBasicOverlayHandler.d.ts +2 -3
- package/build/js/worker/handlers/LabelCaptureBasicOverlayHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureHandler.d.ts +2 -3
- package/build/js/worker/handlers/LabelCaptureHandler.js +1 -1
- package/build/js/worker/handlers/ReceiptScanningHandler.d.ts +2 -3
- package/build/js/worker/handlers/ReceiptScanningHandler.js +1 -1
- package/build/js/worker/handlers/SettingsHandler.d.ts +2 -3
- package/build/js/worker/handlers/SettingsHandler.js +1 -1
- package/build/js/worker/handlers/ValidationFlowHandler.d.ts +2 -3
- package/build/js/worker/handlers/ValidationFlowHandler.js +1 -1
- package/build/js/worker/labelCapture.inlineWorker.d.ts +2 -3
- package/build/js/worker/labelCapture.inlineWorker.js +1 -1
- package/build/js/worker/labelWorkerHandler.d.ts +2 -3
- package/build/js/worker/proxies/AimerViewfinderProxy.d.ts +2 -3
- package/build/js/worker/proxies/AimerViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/BarcodeFieldProxy.d.ts +2 -3
- package/build/js/worker/proxies/BarcodeFieldProxy.js +1 -1
- package/build/js/worker/proxies/CapturedLabelProxy.d.ts +2 -3
- package/build/js/worker/proxies/CapturedLabelProxy.js +1 -1
- package/build/js/worker/proxies/CustomBarcodeProxy.d.ts +2 -3
- package/build/js/worker/proxies/CustomBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/CustomTextProxy.d.ts +3 -3
- package/build/js/worker/proxies/CustomTextProxy.js +1 -1
- package/build/js/worker/proxies/DateTextProxy.d.ts +2 -3
- package/build/js/worker/proxies/DateTextProxy.js +1 -1
- package/build/js/worker/proxies/ExpiryDateTextProxy.d.ts +2 -3
- package/build/js/worker/proxies/ExpiryDateTextProxy.js +1 -1
- package/build/js/worker/proxies/ImeiOneBarcodeProxy.d.ts +2 -3
- package/build/js/worker/proxies/ImeiOneBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/ImeiTwoBarcodeProxy.d.ts +2 -3
- package/build/js/worker/proxies/ImeiTwoBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureHelperProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelCaptureHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureProxy.d.ts +3 -3
- package/build/js/worker/proxies/LabelCaptureProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSessionProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelCaptureSessionProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.js +1 -1
- package/build/js/worker/proxies/LabelDefinitionProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldDefinitionProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelFieldDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldLocationProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelFieldLocationProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldProxy.d.ts +2 -3
- package/build/js/worker/proxies/LabelFieldProxy.js +1 -1
- package/build/js/worker/proxies/NativeProxy.d.ts +2 -3
- package/build/js/worker/proxies/NativeProxy.js +1 -1
- package/build/js/worker/proxies/NoViewfinderProxy.d.ts +2 -3
- package/build/js/worker/proxies/NoViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/PackingDateTextProxy.d.ts +2 -3
- package/build/js/worker/proxies/PackingDateTextProxy.js +1 -1
- package/build/js/worker/proxies/PartNumberBarcodeProxy.d.ts +2 -3
- package/build/js/worker/proxies/PartNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/ReceiptScanningHandlerProxy.d.ts +2 -3
- package/build/js/worker/proxies/ReceiptScanningOverlayProxy.d.ts +2 -3
- package/build/js/worker/proxies/ReceiptScanningOverlayProxy.js +1 -1
- package/build/js/worker/proxies/ReceiptScanningSettingsProxy.d.ts +2 -3
- package/build/js/worker/proxies/ReceiptScanningSettingsProxy.js +1 -1
- package/build/js/worker/proxies/RectangularViewfinderAnimationProxy.d.ts +2 -3
- package/build/js/worker/proxies/RectangularViewfinderAnimationProxy.js +1 -1
- package/build/js/worker/proxies/RectangularViewfinderProxy.d.ts +2 -3
- package/build/js/worker/proxies/RectangularViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/SerialNumberBarcodeProxy.d.ts +2 -3
- package/build/js/worker/proxies/SerialNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/TotalPriceTextProxy.d.ts +2 -3
- package/build/js/worker/proxies/TotalPriceTextProxy.js +1 -1
- package/build/js/worker/proxies/UnitPriceTextProxy.d.ts +2 -3
- package/build/js/worker/proxies/UnitPriceTextProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowListenerProxy.d.ts +3 -3
- package/build/js/worker/proxies/ValidationFlowListenerProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowOverlayProxy.d.ts +2 -3
- package/build/js/worker/proxies/ValidationFlowOverlayProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowSettingsProxy.d.ts +2 -3
- package/build/js/worker/proxies/ValidationFlowSettingsProxy.js +1 -1
- package/build/js/worker/proxies/WeightTextProxy.d.ts +2 -3
- package/build/js/worker/proxies/WeightTextProxy.js +1 -1
- package/build/js/worker/proxies/base/BarcodeFieldProxyBase.d.ts +2 -3
- package/build/js/worker/proxies/base/BarcodeFieldProxyBase.js +1 -1
- package/build/js/worker/proxies/base/LabelFieldDefinitionBaseProxy.d.ts +2 -3
- package/build/js/worker/proxies/base/LabelFieldDefinitionBaseProxy.js +1 -1
- package/build/js/worker/proxies/base/index.d.ts +2 -3
- package/build/js/worker/proxies/base/index.js +1 -1
- package/package.json +3 -3
- 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/ResultOrError-wVDzYSuC.d.ts +0 -27
- package/build/js/api/LabelCaptureValidationFlowOverlay.d.ts +0 -166
- package/build/js/api/LabelCaptureValidationFlowOverlay.js +0 -1
- package/build/js/chunks/chunk-3WFVV6LL.js +0 -1
- package/build/js/chunks/chunk-6EPGEBWT.js +0 -1
- package/build/js/chunks/chunk-7LN4ULNN.js +0 -1
- package/build/js/chunks/chunk-BILNKC2Q.js +0 -1
- package/build/js/chunks/chunk-DV4WMUFU.js +0 -1
- package/build/js/chunks/chunk-IK62R3BD.js +0 -1
- package/build/js/chunks/chunk-IXBSL67X.js +0 -2
- package/build/js/chunks/chunk-NF5D6YGW.js +0 -1
- package/build/js/chunks/chunk-PLBJGJHF.js +0 -1
- package/build/js/chunks/chunk-TCXD3SSH.js +0 -1
- package/build/js/chunks/chunk-X6DRW2HT.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-C3OSXO1g.js';
|
|
5
5
|
import '@scandit/web-datacapture-barcode';
|
|
6
6
|
import './LabelFieldState.js';
|
|
7
7
|
import './LabelFieldType.js';
|
|
@@ -10,19 +10,18 @@ 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-CYZsx-_W.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';
|
|
17
17
|
import '../djinni-types/sdcCoreCommonGeometry.js';
|
|
18
18
|
import '../djinni-types/sdcCoreCommonBuffer.js';
|
|
19
|
-
import '../
|
|
19
|
+
import '../sdcLabelInternalModuleCapture-wUz3FjZK.js';
|
|
20
20
|
import '../djinni-types/sdcSymbologySettings.js';
|
|
21
21
|
import '../djinni-types/sdcCoreInternalSdkArea.js';
|
|
22
22
|
import '../djinni-types/sdcCoreInternalSdkCommonGeometry.js';
|
|
23
23
|
import '../djinni-types/sdcCoreCommonGraphic.js';
|
|
24
24
|
import '../djinni-types/sdcCoreInternalSdkCommonAsync.js';
|
|
25
|
-
import '../ResultOrError-wVDzYSuC.js';
|
|
26
25
|
import '../djinni-types/sdcCoreInternalSdkOcr.js';
|
|
27
26
|
import '../djinni-types/sdcCoreCommon.js';
|
|
28
27
|
import '../djinni-types/sdcLabelInternalModuleData.js';
|
|
@@ -38,7 +37,7 @@ import './LabelDateComponentFormat.js';
|
|
|
38
37
|
import './LabelFieldLocationType.js';
|
|
39
38
|
import './ReceiptScanningLineItem.js';
|
|
40
39
|
import './ValidationFlowField.js';
|
|
41
|
-
import '../LabelCapture-
|
|
40
|
+
import '../LabelCapture-DrHOFOh1.js';
|
|
42
41
|
import './LabelCaptureFeedback.js';
|
|
43
42
|
import './LabelCaptureSettings.js';
|
|
44
43
|
import './LabelDefinition.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@scandit/web-datacapture-core';
|
|
2
2
|
import './LabelCaptureSession.js';
|
|
3
|
-
export { a as LabelCaptureListener } from '../LabelCapture-
|
|
3
|
+
export { a as LabelCaptureListener } from '../LabelCapture-DrHOFOh1.js';
|
|
4
4
|
import './CapturedLabel.js';
|
|
5
5
|
import './LabelField.js';
|
|
6
6
|
import '@scandit/web-datacapture-barcode';
|
|
@@ -19,19 +19,18 @@ import './BarcodeField.js';
|
|
|
19
19
|
import './LabelFieldDefinition.js';
|
|
20
20
|
import './ImeiTwoBarcode.js';
|
|
21
21
|
import './PackingDateText.js';
|
|
22
|
-
import '../NativeProxy-
|
|
22
|
+
import '../NativeProxy-CYZsx-_W.js';
|
|
23
23
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
24
24
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
25
25
|
import '../djinni-types/sdcBarcodeData.js';
|
|
26
26
|
import '../djinni-types/sdcCoreCommonGeometry.js';
|
|
27
27
|
import '../djinni-types/sdcCoreCommonBuffer.js';
|
|
28
|
-
import '../
|
|
28
|
+
import '../sdcLabelInternalModuleCapture-wUz3FjZK.js';
|
|
29
29
|
import '../djinni-types/sdcSymbologySettings.js';
|
|
30
30
|
import '../djinni-types/sdcCoreInternalSdkArea.js';
|
|
31
31
|
import '../djinni-types/sdcCoreInternalSdkCommonGeometry.js';
|
|
32
32
|
import '../djinni-types/sdcCoreCommonGraphic.js';
|
|
33
33
|
import '../djinni-types/sdcCoreInternalSdkCommonAsync.js';
|
|
34
|
-
import '../ResultOrError-wVDzYSuC.js';
|
|
35
34
|
import '../djinni-types/sdcCoreInternalSdkOcr.js';
|
|
36
35
|
import '../djinni-types/sdcCoreCommon.js';
|
|
37
36
|
import '../djinni-types/sdcLabelData.js';
|
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { N as NativeProxyHandle } from '../NativeProxy-
|
|
1
|
+
import { N as NativeProxyHandle } from '../NativeProxy-CYZsx-_W.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';
|
|
5
5
|
import '../djinni-types/sdcBarcodeData.js';
|
|
6
6
|
import '../djinni-types/sdcCoreCommonGeometry.js';
|
|
7
7
|
import '../djinni-types/sdcCoreCommonBuffer.js';
|
|
8
|
-
import '../
|
|
8
|
+
import '../sdcLabelInternalModuleCapture-wUz3FjZK.js';
|
|
9
9
|
import '../djinni-types/sdcSymbologySettings.js';
|
|
10
10
|
import '../djinni-types/sdcCoreInternalSdkArea.js';
|
|
11
11
|
import '../djinni-types/sdcCoreInternalSdkCommonGeometry.js';
|
|
12
12
|
import '../djinni-types/sdcCoreCommonGraphic.js';
|
|
13
13
|
import '../djinni-types/sdcCoreInternalSdkCommonAsync.js';
|
|
14
|
-
import '../ResultOrError-wVDzYSuC.js';
|
|
15
14
|
import '../djinni-types/sdcCoreInternalSdkOcr.js';
|
|
16
15
|
import '../djinni-types/sdcCoreCommon.js';
|
|
17
16
|
import '../djinni-types/sdcLabelData.js';
|
|
@@ -8,19 +8,18 @@ import './BarcodeField.js';
|
|
|
8
8
|
import './LabelFieldDefinition.js';
|
|
9
9
|
import './ImeiTwoBarcode.js';
|
|
10
10
|
import './PackingDateText.js';
|
|
11
|
-
import '../NativeProxy-
|
|
11
|
+
import '../NativeProxy-CYZsx-_W.js';
|
|
12
12
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
13
13
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
14
14
|
import '../djinni-types/sdcBarcodeData.js';
|
|
15
15
|
import '../djinni-types/sdcCoreCommonGeometry.js';
|
|
16
16
|
import '../djinni-types/sdcCoreCommonBuffer.js';
|
|
17
|
-
import '../
|
|
17
|
+
import '../sdcLabelInternalModuleCapture-wUz3FjZK.js';
|
|
18
18
|
import '../djinni-types/sdcSymbologySettings.js';
|
|
19
19
|
import '../djinni-types/sdcCoreInternalSdkArea.js';
|
|
20
20
|
import '../djinni-types/sdcCoreInternalSdkCommonGeometry.js';
|
|
21
21
|
import '../djinni-types/sdcCoreCommonGraphic.js';
|
|
22
22
|
import '../djinni-types/sdcCoreInternalSdkCommonAsync.js';
|
|
23
|
-
import '../ResultOrError-wVDzYSuC.js';
|
|
24
23
|
import '../djinni-types/sdcCoreInternalSdkOcr.js';
|
|
25
24
|
import '../djinni-types/sdcCoreCommon.js';
|
|
26
25
|
import '../djinni-types/sdcLabelData.js';
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { DataCaptureOverlay, DataCaptureView } from '@scandit/web-datacapture-core';
|
|
2
|
+
import { Serializable } from '@scandit/web-datacapture-core/build/js/private/Serializable.js';
|
|
3
|
+
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
4
|
+
import { N as NativeProxyHandle } from '../../NativeProxy-CYZsx-_W.js';
|
|
5
|
+
import { L as LabelCapture } from '../../LabelCapture-DrHOFOh1.js';
|
|
6
|
+
import { LabelCaptureValidationFlowSettings } from '../LabelCaptureValidationFlowSettings.js';
|
|
7
|
+
import { LabelField } from '../LabelField.js';
|
|
8
|
+
import '@scandit/web-datacapture-barcode';
|
|
9
|
+
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
10
|
+
import '../../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
11
|
+
import '../../djinni-types/sdcBarcodeData.js';
|
|
12
|
+
import '../../djinni-types/sdcCoreCommonGeometry.js';
|
|
13
|
+
import '../../djinni-types/sdcCoreCommonBuffer.js';
|
|
14
|
+
import '../../sdcLabelInternalModuleCapture-wUz3FjZK.js';
|
|
15
|
+
import '../../djinni-types/sdcSymbologySettings.js';
|
|
16
|
+
import '../../djinni-types/sdcCoreInternalSdkArea.js';
|
|
17
|
+
import '../../djinni-types/sdcCoreInternalSdkCommonGeometry.js';
|
|
18
|
+
import '../../djinni-types/sdcCoreCommonGraphic.js';
|
|
19
|
+
import '../../djinni-types/sdcCoreInternalSdkCommonAsync.js';
|
|
20
|
+
import '../../djinni-types/sdcCoreInternalSdkOcr.js';
|
|
21
|
+
import '../../djinni-types/sdcCoreCommon.js';
|
|
22
|
+
import '../../djinni-types/sdcLabelData.js';
|
|
23
|
+
import '../../djinni-types/sdcLabelInternalModuleData.js';
|
|
24
|
+
import '../../djinni-types/sdcCoreInternalSdkUiViewfinder.js';
|
|
25
|
+
import '../../djinni-types/sdcCoreInternalSdkCommonGraphics.js';
|
|
26
|
+
import '../../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
27
|
+
import '../../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
28
|
+
import '../../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
29
|
+
import '../AdaptiveRecognitionMode.js';
|
|
30
|
+
import '../CapturedLabel.js';
|
|
31
|
+
import '../LabelFieldState.js';
|
|
32
|
+
import '../LabelFieldType.js';
|
|
33
|
+
import '../LabelFieldValueType.js';
|
|
34
|
+
import '../LabelDateResult.js';
|
|
35
|
+
import '../LabelCaptureSession.js';
|
|
36
|
+
import '../LabelDateFormat.js';
|
|
37
|
+
import '../LabelDateComponentFormat.js';
|
|
38
|
+
import '../LabelFieldLocationType.js';
|
|
39
|
+
import '../ReceiptScanningLineItem.js';
|
|
40
|
+
import '../ValidationFlowField.js';
|
|
41
|
+
import '../LabelCaptureFeedback.js';
|
|
42
|
+
import '@scandit/web-datacapture-core/build/js/private/Serializable';
|
|
43
|
+
import '../LabelCaptureSettings.js';
|
|
44
|
+
import '../LabelDefinition.js';
|
|
45
|
+
import '../ImeiOneBarcode.js';
|
|
46
|
+
import '../BarcodeField.js';
|
|
47
|
+
import '../LabelFieldDefinition.js';
|
|
48
|
+
import '../ImeiTwoBarcode.js';
|
|
49
|
+
import '../PackingDateText.js';
|
|
50
|
+
import '../TextField.js';
|
|
51
|
+
import '../PartNumberBarcode.js';
|
|
52
|
+
import '../SerialNumberBarcode.js';
|
|
53
|
+
import '../TotalPriceText.js';
|
|
54
|
+
import '../UnitPriceText.js';
|
|
55
|
+
import '../WeightText.js';
|
|
56
|
+
import '../CustomBarcode.js';
|
|
57
|
+
import '../LabelFieldLocation.js';
|
|
58
|
+
import '../CustomText.js';
|
|
59
|
+
import '../DateText.js';
|
|
60
|
+
import '../ExpiryDateText.js';
|
|
61
|
+
|
|
62
|
+
interface LabelCaptureValidationFlowOverlayJSON {
|
|
63
|
+
type: "ValidationFlowOverlay";
|
|
64
|
+
nativeHandle: NativeProxyHandle;
|
|
65
|
+
}
|
|
66
|
+
interface LabelCaptureValidationFlowListener {
|
|
67
|
+
onValidationFlowLabelCaptured(fields: LabelField[]): void;
|
|
68
|
+
onManualInput(field: LabelField, oldValue: string | undefined, newValue: string): void;
|
|
69
|
+
}
|
|
70
|
+
declare class LabelCaptureValidationFlowOverlay implements DataCaptureOverlay, Serializable<LabelCaptureValidationFlowOverlayJSON> {
|
|
71
|
+
[nativeHandle]: NativeProxyHandle;
|
|
72
|
+
listener: LabelCaptureValidationFlowListener;
|
|
73
|
+
private labelCapture;
|
|
74
|
+
private stateManager;
|
|
75
|
+
private presenter;
|
|
76
|
+
private onContextUpdatedListenerHandler;
|
|
77
|
+
private feedback_;
|
|
78
|
+
private originalLabelCaptureFeedback;
|
|
79
|
+
private beforeMountScanArea;
|
|
80
|
+
private settings;
|
|
81
|
+
private dataCaptureView;
|
|
82
|
+
static withLabelCaptureForView(labelCapture: LabelCapture, dataCaptureView: DataCaptureView): Promise<LabelCaptureValidationFlowOverlay>;
|
|
83
|
+
applySettings(settings: LabelCaptureValidationFlowSettings): Promise<void>;
|
|
84
|
+
private constructor();
|
|
85
|
+
toJSONObject(): LabelCaptureValidationFlowOverlayJSON;
|
|
86
|
+
private onAddOverlay;
|
|
87
|
+
private onRemoveOverlay;
|
|
88
|
+
/**
|
|
89
|
+
* This listener is used to remove the event listeners when the overlay is removed
|
|
90
|
+
* from the data capture view
|
|
91
|
+
*/
|
|
92
|
+
private onContextUpdatedListener;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export { type LabelCaptureValidationFlowListener, LabelCaptureValidationFlowOverlay, type LabelCaptureValidationFlowOverlayJSON };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as LabelCaptureValidationFlowOverlay}from'../../chunks/chunk-VEAIPJDT.js';
|
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
import { Color, DataCaptureView } from '@scandit/web-datacapture-core';
|
|
2
|
+
import { ValidationFlowStateManager } from './ValidationFlowStateManager.js';
|
|
3
|
+
import { ValidationFlowView } from './ValidationFlowView.js';
|
|
4
|
+
import { LabelCaptureValidationFlowSettings } from '../../LabelCaptureValidationFlowSettings.js';
|
|
5
|
+
import { ValidationFlowField } from '../../ValidationFlowField.js';
|
|
6
|
+
import { PrivateValidationFlowListener, PrivateValidationFlowHandler } from '../../PrivateValidationFlowHandler.js';
|
|
7
|
+
import { V as ValidationFlowState, a as LabelResultUpdateType } from '../../../sdcLabelInternalModuleCapture-wUz3FjZK.js';
|
|
8
|
+
import { L as LabelCapture } from '../../../LabelCapture-DrHOFOh1.js';
|
|
9
|
+
import { LabelCaptureValidationFlowFeedback } from '../../LabelCaptureValidationFlowFeedback.js';
|
|
10
|
+
import { TextInputScanEvent, TextInputClearEvent, TextInputFocusEvent, TextInputBlurEvent, TextInputKeydownEvent } from '../../../ui/atoms/TextInput.js';
|
|
11
|
+
import { LabelCaptureValidationFlowLayoutEventMap, LabelCaptureValidationFlowLayoutEvents } from '../../../ui/organisms/LabelCaptureValidationFlowLayout.js';
|
|
12
|
+
import { KeyboardVisibilityController, KeyboardVisibilityChangedEvent } from '../../../ui/controllers/KeyboardVisibilityController.js';
|
|
13
|
+
import { LabelCaptureValidationFlowListener } from '../LabelCaptureValidationFlowOverlay.js';
|
|
14
|
+
import '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
15
|
+
import '../../LabelField.js';
|
|
16
|
+
import '@scandit/web-datacapture-barcode';
|
|
17
|
+
import '../../LabelFieldState.js';
|
|
18
|
+
import '../../LabelFieldType.js';
|
|
19
|
+
import '../../LabelFieldValueType.js';
|
|
20
|
+
import '../../LabelDateResult.js';
|
|
21
|
+
import '../../../NativeProxy-CYZsx-_W.js';
|
|
22
|
+
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
23
|
+
import '../../../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
24
|
+
import '../../../djinni-types/sdcBarcodeData.js';
|
|
25
|
+
import '../../../djinni-types/sdcCoreCommonGeometry.js';
|
|
26
|
+
import '../../../djinni-types/sdcCoreCommonBuffer.js';
|
|
27
|
+
import '../../../djinni-types/sdcLabelInternalModuleData.js';
|
|
28
|
+
import '../../../djinni-types/sdcLabelData.js';
|
|
29
|
+
import '../../../djinni-types/sdcCoreInternalSdkArea.js';
|
|
30
|
+
import '../../../djinni-types/sdcCoreInternalSdkCommonGeometry.js';
|
|
31
|
+
import '../../../djinni-types/sdcCoreCommonGraphic.js';
|
|
32
|
+
import '../../../djinni-types/sdcCoreInternalSdkUiViewfinder.js';
|
|
33
|
+
import '../../../djinni-types/sdcCoreInternalSdkCommonGraphics.js';
|
|
34
|
+
import '../../../djinni-types/sdcLabelInternalModuleUiOverlay.js';
|
|
35
|
+
import '../../../djinni-types/sdcCoreInternalSdkCapture.js';
|
|
36
|
+
import '../../../djinni-types/sdcCoreInternalSdkUiStyle.js';
|
|
37
|
+
import '../../../djinni-types/sdcSymbologySettings.js';
|
|
38
|
+
import '../../../djinni-types/sdcCoreInternalSdkCommonAsync.js';
|
|
39
|
+
import '../../../djinni-types/sdcCoreInternalSdkOcr.js';
|
|
40
|
+
import '../../../djinni-types/sdcCoreCommon.js';
|
|
41
|
+
import '../../AdaptiveRecognitionMode.js';
|
|
42
|
+
import '../../CapturedLabel.js';
|
|
43
|
+
import '../../LabelCaptureSession.js';
|
|
44
|
+
import '../../LabelDateFormat.js';
|
|
45
|
+
import '../../LabelDateComponentFormat.js';
|
|
46
|
+
import '../../LabelFieldLocationType.js';
|
|
47
|
+
import '../../ReceiptScanningLineItem.js';
|
|
48
|
+
import '../../LabelCaptureFeedback.js';
|
|
49
|
+
import '@scandit/web-datacapture-core/build/js/private/Serializable';
|
|
50
|
+
import '../../LabelCaptureSettings.js';
|
|
51
|
+
import '../../LabelDefinition.js';
|
|
52
|
+
import '../../ImeiOneBarcode.js';
|
|
53
|
+
import '../../BarcodeField.js';
|
|
54
|
+
import '../../LabelFieldDefinition.js';
|
|
55
|
+
import '../../ImeiTwoBarcode.js';
|
|
56
|
+
import '../../PackingDateText.js';
|
|
57
|
+
import '../../TextField.js';
|
|
58
|
+
import '../../PartNumberBarcode.js';
|
|
59
|
+
import '../../SerialNumberBarcode.js';
|
|
60
|
+
import '../../TotalPriceText.js';
|
|
61
|
+
import '../../UnitPriceText.js';
|
|
62
|
+
import '../../WeightText.js';
|
|
63
|
+
import '../../CustomBarcode.js';
|
|
64
|
+
import '../../LabelFieldLocation.js';
|
|
65
|
+
import '../../CustomText.js';
|
|
66
|
+
import '../../DateText.js';
|
|
67
|
+
import '../../ExpiryDateText.js';
|
|
68
|
+
import '@scandit/web-datacapture-core/build/js/commons/Color.js';
|
|
69
|
+
import '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
70
|
+
import '@scandit/web-datacapture-core/build/js/private/ui/atoms/Backdrop.js';
|
|
71
|
+
import '../../../ui/atoms/Button.js';
|
|
72
|
+
import '@scandit/web-datacapture-core/build/js/private/GestureRecognizer/GestureRecognizer.js';
|
|
73
|
+
import '@scandit/web-datacapture-core/build/js/private/Serializable.js';
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Business logic presenter for validation flow.
|
|
77
|
+
* Handles all business rules and coordination between the view, state manager, and validation handler.
|
|
78
|
+
* Implements ValidationFlowListenerCallbacks to receive validation flow events from the handler.
|
|
79
|
+
*
|
|
80
|
+
* Responsibilities:
|
|
81
|
+
* - Input initialization and configuration
|
|
82
|
+
* - Scan icon visibility business rules
|
|
83
|
+
* - Submit button enablement business rules
|
|
84
|
+
* - Blur validation orchestration
|
|
85
|
+
* - Field validation and state updates
|
|
86
|
+
* - Cloud backup task management
|
|
87
|
+
* - Layout restoration after validation
|
|
88
|
+
* - Event handling and UI coordination
|
|
89
|
+
* - Keyboard visibility management
|
|
90
|
+
*
|
|
91
|
+
* This presenter is the coordination hub that brings together state management, view operations,
|
|
92
|
+
* and validation handler calls to orchestrate the complete validation flow.
|
|
93
|
+
*/
|
|
94
|
+
declare class ValidationFlowPresenter implements PrivateValidationFlowListener {
|
|
95
|
+
private stateManager;
|
|
96
|
+
private settings;
|
|
97
|
+
private validationFlowHandler;
|
|
98
|
+
private labelCapture;
|
|
99
|
+
private feedback;
|
|
100
|
+
private keyboardController;
|
|
101
|
+
private _view;
|
|
102
|
+
private externalListener?;
|
|
103
|
+
private beforeMountScanArea;
|
|
104
|
+
private dataCaptureView;
|
|
105
|
+
/**
|
|
106
|
+
* Getter for the view - exposed for testing purposes
|
|
107
|
+
*/
|
|
108
|
+
get view(): ValidationFlowView;
|
|
109
|
+
private readonly onTextInputScanIconClickHandler;
|
|
110
|
+
private readonly onTextInputClearIconClickHandler;
|
|
111
|
+
private readonly onTextInputFocusHandler;
|
|
112
|
+
private readonly onTextInputBlurHandler;
|
|
113
|
+
private readonly onTextInputKeydownHandler;
|
|
114
|
+
private readonly onClearAllButtonClickedHandler;
|
|
115
|
+
private readonly onSubmitButtonClickedHandler;
|
|
116
|
+
private readonly onPauseButtonClickedHandler;
|
|
117
|
+
private readonly onClickedOutsideListHandler;
|
|
118
|
+
private readonly onValidationFlowLayoutChangeHandler;
|
|
119
|
+
private readonly onKeyboardVisibilityChangedHandler;
|
|
120
|
+
constructor(stateManager: ValidationFlowStateManager, settings: LabelCaptureValidationFlowSettings, validationFlowHandler: PrivateValidationFlowHandler, labelCapture: LabelCapture, feedback: LabelCaptureValidationFlowFeedback, view?: ValidationFlowView, keyboardController?: KeyboardVisibilityController);
|
|
121
|
+
/**
|
|
122
|
+
* Update the settings reference when applySettings is called on the overlay.
|
|
123
|
+
* This ensures the presenter always uses the most up-to-date settings.
|
|
124
|
+
*/
|
|
125
|
+
updateSettings(settings: LabelCaptureValidationFlowSettings): void;
|
|
126
|
+
private get camera();
|
|
127
|
+
/**
|
|
128
|
+
* Set dependencies needed for event handling
|
|
129
|
+
*/
|
|
130
|
+
/**
|
|
131
|
+
* Set the external listener for validation flow events.
|
|
132
|
+
* This should be called before mounting the presenter.
|
|
133
|
+
*/
|
|
134
|
+
setExternalListener(listener: LabelCaptureValidationFlowListener): void;
|
|
135
|
+
/**
|
|
136
|
+
* Start a complete scan and initialize inputs with validation flow fields.
|
|
137
|
+
* This method orchestrates the initialization of the validation flow.
|
|
138
|
+
*/
|
|
139
|
+
goToCompleteScan(): Promise<void>;
|
|
140
|
+
resumeScan(): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Initialize inputs from validation flow fields
|
|
143
|
+
*/
|
|
144
|
+
initializeInputs(validationFlowFields: ValidationFlowField[]): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* Update scan icon visibility for a specific input based on business rules.
|
|
147
|
+
* Logic: showScanIcon = !scanningState && (isFocused || isEmpty)
|
|
148
|
+
*
|
|
149
|
+
* Rules:
|
|
150
|
+
* - If scanning locally (camera active): ALWAYS hide scan icon
|
|
151
|
+
* - If NOT scanning locally:
|
|
152
|
+
* - If field is focused: show scan icon
|
|
153
|
+
* - If field is NOT focused AND filled: hide scan icon
|
|
154
|
+
* - If field is NOT focused AND empty: show scan icon
|
|
155
|
+
*/
|
|
156
|
+
updateScanIconVisibility(fieldName: string): void;
|
|
157
|
+
/**
|
|
158
|
+
* Update scan icon visibility for all inputs
|
|
159
|
+
*/
|
|
160
|
+
updateAllScanIconsVisibility(): void;
|
|
161
|
+
/**
|
|
162
|
+
* Update submit button enabled/disabled state based on business rule:
|
|
163
|
+
* Submit button is enabled only when all required fields are filled and valid.
|
|
164
|
+
*/
|
|
165
|
+
updateSubmitButtonState(): void;
|
|
166
|
+
private updateFieldValueAndState;
|
|
167
|
+
private refocusInputForCorrection;
|
|
168
|
+
private restoreLayout;
|
|
169
|
+
/**
|
|
170
|
+
* Update cloud backup task state for a specific field
|
|
171
|
+
* @param fieldName - Name of the field
|
|
172
|
+
* @param mode - 'cancel' to cancel task, 'uncancel' to restore task
|
|
173
|
+
*/
|
|
174
|
+
private updateCloudBackupTaskState;
|
|
175
|
+
/**
|
|
176
|
+
* Update the cloud backup fields map based on validation flow fields from backend.
|
|
177
|
+
* Syncs the state manager with the current backend state.
|
|
178
|
+
*/
|
|
179
|
+
private updateCloudBackupFieldsMap;
|
|
180
|
+
/**
|
|
181
|
+
* Builds the standard configuration object for updateInputForState calls.
|
|
182
|
+
* Centralizes the repetitive config to avoid duplication across the codebase.
|
|
183
|
+
*/
|
|
184
|
+
getInputStateConfig(options?: {
|
|
185
|
+
hintMessage?: string;
|
|
186
|
+
backgroundColor?: Color | string;
|
|
187
|
+
}): {
|
|
188
|
+
scanningText: string;
|
|
189
|
+
adaptiveScanningText: string;
|
|
190
|
+
hintMessage: string;
|
|
191
|
+
backgroundColor: Color | string;
|
|
192
|
+
scanIconVisible: boolean;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Centralised two-step update: store state in state manager (invariant enforced),
|
|
196
|
+
* then reflect the stored state in the view.
|
|
197
|
+
*/
|
|
198
|
+
private applyInputState;
|
|
199
|
+
/**
|
|
200
|
+
* Implementation of ValidationFlowListenerCallbacks.onFieldsScanned
|
|
201
|
+
* Handles the fields scanned event - updates state and processes fields
|
|
202
|
+
*/
|
|
203
|
+
onFieldsScanned(fields: ValidationFlowField[]): Promise<void>;
|
|
204
|
+
/**
|
|
205
|
+
* Implementation of ValidationFlowListenerCallbacks.onLabelIsMissingRequiredField
|
|
206
|
+
* Handles validation error event - updates state and processes fields
|
|
207
|
+
*/
|
|
208
|
+
onLabelIsMissingRequiredField(fields: ValidationFlowField[]): Promise<void>;
|
|
209
|
+
/**
|
|
210
|
+
* Implementation of ValidationFlowListenerCallbacks.onScanTimeout
|
|
211
|
+
* Handles scan timeout event
|
|
212
|
+
*/
|
|
213
|
+
onScanTimeout(): Promise<void>;
|
|
214
|
+
/**
|
|
215
|
+
* Single-pass state sync for all inputs.
|
|
216
|
+
*
|
|
217
|
+
* Reads the latest scan results from the state manager (stored by onFieldsScanned).
|
|
218
|
+
* Callers that don't originate from onFieldsScanned operate with an empty result map,
|
|
219
|
+
* which matches the previous behavior of passing no scan results.
|
|
220
|
+
* After processing, scan results are cleared so subsequent calls start clean.
|
|
221
|
+
*
|
|
222
|
+
* State resolution priority (per input):
|
|
223
|
+
* 1. Field has a stored scan result AND non-empty scanned value → Validated / Error / Initial
|
|
224
|
+
* 2. Scanning active AND field empty → Scanning
|
|
225
|
+
* 3. Cloud backup active for field AND field empty → CloudBackup
|
|
226
|
+
* 4. Otherwise → Initial
|
|
227
|
+
*
|
|
228
|
+
* The focused-field invariant (focused field never gets Scanning/CloudBackup) is enforced
|
|
229
|
+
* inside setInputState in ValidationFlowStateManager.
|
|
230
|
+
*/
|
|
231
|
+
private syncInputWithState;
|
|
232
|
+
/**
|
|
233
|
+
* Implementation of ValidationFlowListenerCallbacks.onManualInput
|
|
234
|
+
* Handles manual input event from user
|
|
235
|
+
*/
|
|
236
|
+
onManualInput(field: ValidationFlowField, oldValue: string | undefined, newValue: string): void;
|
|
237
|
+
/**
|
|
238
|
+
* Restore button visibility based on current validation flow state.
|
|
239
|
+
*/
|
|
240
|
+
private restoreButtonsBasedOnState;
|
|
241
|
+
/**
|
|
242
|
+
* Implementation of ValidationFlowListenerCallbacks.onStateChanged
|
|
243
|
+
* Handles state changes - updates button visibility and processes state
|
|
244
|
+
*/
|
|
245
|
+
onStateChanged(state: ValidationFlowState): Promise<void>;
|
|
246
|
+
/**
|
|
247
|
+
* Implementation of ValidationFlowListenerCallbacks.onCloudBackupServiceStarted
|
|
248
|
+
* Handles cloud backup service started event - updates inputs and processes cloud backup start
|
|
249
|
+
*/
|
|
250
|
+
onCloudBackupServiceStarted(): Promise<void>;
|
|
251
|
+
/**
|
|
252
|
+
* Implementation of ValidationFlowListenerCallbacks.onCloudBackupServiceStopped
|
|
253
|
+
* Handles cloud backup service stopped event - resets inputs and processes cloud backup stop
|
|
254
|
+
*/
|
|
255
|
+
onCloudBackupServiceStopped(): Promise<void>;
|
|
256
|
+
/**
|
|
257
|
+
* Implementation of ValidationFlowListener.onResultUpdate
|
|
258
|
+
* - SYNC: confirmed scanner capture → apply teal background
|
|
259
|
+
* - ASYNC_FINISHED: cloud backup recognition complete → emit adaptiveRecognitionResult feedback
|
|
260
|
+
*/
|
|
261
|
+
onResultUpdate(updateType: LabelResultUpdateType, fields: ValidationFlowField[]): Promise<void>;
|
|
262
|
+
/**
|
|
263
|
+
* Camera management helpers
|
|
264
|
+
*/
|
|
265
|
+
private standByCamera;
|
|
266
|
+
private activateCamera;
|
|
267
|
+
/**
|
|
268
|
+
* Event handler: Text input scan icon clicked
|
|
269
|
+
*/
|
|
270
|
+
onTextInputScanIconClick(event: TextInputScanEvent): Promise<void>;
|
|
271
|
+
/**
|
|
272
|
+
* Event handler: Text input clear icon clicked
|
|
273
|
+
*/
|
|
274
|
+
onTextInputClearIconClick(event: TextInputClearEvent): Promise<void>;
|
|
275
|
+
/**
|
|
276
|
+
* Event handler: Text input focused
|
|
277
|
+
*/
|
|
278
|
+
onTextInputFocus(event: TextInputFocusEvent): Promise<void>;
|
|
279
|
+
/**
|
|
280
|
+
* Event handler: Text input blurred
|
|
281
|
+
*/
|
|
282
|
+
onTextInputBlur(event: TextInputBlurEvent): Promise<void>;
|
|
283
|
+
/**
|
|
284
|
+
* Orchestrate blur validation for a field.
|
|
285
|
+
* Directly handles validation, state updates, and layout restoration.
|
|
286
|
+
*
|
|
287
|
+
* Flow:
|
|
288
|
+
* - If field is empty: re-enable cloud backup and restore layout
|
|
289
|
+
* - If field is not empty: validate field value
|
|
290
|
+
* - If valid: restore layout
|
|
291
|
+
* - If invalid: refocus for correction
|
|
292
|
+
* - Always clear focused input at end
|
|
293
|
+
*
|
|
294
|
+
* Returns true if field is valid, false otherwise.
|
|
295
|
+
*/
|
|
296
|
+
runBlurValidation(currentInputName: string): Promise<boolean>;
|
|
297
|
+
/**
|
|
298
|
+
* Event handler: Text input keydown (Enter/Escape)
|
|
299
|
+
*/
|
|
300
|
+
onTextInputKeydown(event: TextInputKeydownEvent): Promise<void>;
|
|
301
|
+
/**
|
|
302
|
+
* Event handler: Keyboard visibility changed
|
|
303
|
+
*/
|
|
304
|
+
onKeyboardVisibilityChanged(event: KeyboardVisibilityChangedEvent): Promise<void>;
|
|
305
|
+
/**
|
|
306
|
+
* Event handler: Clear all button clicked
|
|
307
|
+
*/
|
|
308
|
+
onClearAllButtonClicked(_event: LabelCaptureValidationFlowLayoutEventMap[typeof LabelCaptureValidationFlowLayoutEvents.ClearAllButtonClicked]): Promise<void>;
|
|
309
|
+
/**
|
|
310
|
+
* Event handler: Submit button clicked
|
|
311
|
+
*/
|
|
312
|
+
onSubmitButtonClicked(): Promise<void>;
|
|
313
|
+
/**
|
|
314
|
+
* Event handler: Pause button clicked
|
|
315
|
+
*/
|
|
316
|
+
onPauseButtonClicked(_event: LabelCaptureValidationFlowLayoutEventMap[typeof LabelCaptureValidationFlowLayoutEvents.PauseButtonClicked]): Promise<void>;
|
|
317
|
+
/**
|
|
318
|
+
* Event handler: Clicked outside list
|
|
319
|
+
*/
|
|
320
|
+
onClickedOutsideList(_event: LabelCaptureValidationFlowLayoutEventMap[typeof LabelCaptureValidationFlowLayoutEvents.ClickedOutsideList]): Promise<void>;
|
|
321
|
+
/**
|
|
322
|
+
* Event handler: Validation flow layout changed (scan area margins)
|
|
323
|
+
*/
|
|
324
|
+
onValidationFlowLayoutChange(event: LabelCaptureValidationFlowLayoutEventMap[typeof LabelCaptureValidationFlowLayoutEvents.ValidationFlowLayoutChange]): void;
|
|
325
|
+
/**
|
|
326
|
+
* Helper: Cancel all cloud backup tasks
|
|
327
|
+
*/
|
|
328
|
+
private cancelAllCloudBackupTasks;
|
|
329
|
+
/**
|
|
330
|
+
* Helper: Handle in pause scan state
|
|
331
|
+
*/
|
|
332
|
+
onPauseStateChanged(): Promise<void>;
|
|
333
|
+
/**
|
|
334
|
+
* Helper: Handle in scan state
|
|
335
|
+
*/
|
|
336
|
+
onScanStateChanged(): Promise<void>;
|
|
337
|
+
/**
|
|
338
|
+
* Mount the validation flow - sets up all event listeners and initializes the view
|
|
339
|
+
*/
|
|
340
|
+
mount(dataCaptureView: DataCaptureView): Promise<void>;
|
|
341
|
+
/**
|
|
342
|
+
* Unmount the validation flow - removes all event listeners and cleans up
|
|
343
|
+
*/
|
|
344
|
+
unmount(dataCaptureView: DataCaptureView): Promise<void>;
|
|
345
|
+
registerEventListeners(): void;
|
|
346
|
+
unregisterEventListeners(): void;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
export { ValidationFlowPresenter };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as ValidationFlowPresenter}from'../../../chunks/chunk-KBXWH2TW.js';
|