@scandit/web-datacapture-label 8.4.0-beta.1 → 8.4.0
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/api/CapturedLabel.js +1 -1
- package/build/js/api/CustomBarcodeBuilder.js +1 -1
- package/build/js/api/CustomTextBuilder.js +1 -1
- package/build/js/api/ExpiryDateTextBuilder.d.ts +1 -1
- package/build/js/api/ExpiryDateTextBuilder.js +1 -1
- package/build/js/api/ImeiOneBarcodeBuilder.js +1 -1
- package/build/js/api/ImeiTwoBarcodeBuilder.js +1 -1
- package/build/js/api/LabelCapture.js +1 -1
- package/build/js/api/LabelCaptureAdvancedOverlay.js +1 -1
- package/build/js/api/LabelCaptureBasicOverlay.js +1 -1
- package/build/js/api/LabelCaptureSession.js +1 -1
- package/build/js/api/LabelCaptureValidationFlow/LabelCaptureValidationFlowOverlay.js +1 -1
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowPresenter.d.ts +7 -0
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowPresenter.js +1 -1
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowStateManager.d.ts +40 -1
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowStateManager.js +1 -1
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowView.js +1 -1
- package/build/js/api/LabelField.js +1 -1
- package/build/js/api/PartNumberBarcodeBuilder.js +1 -1
- package/build/js/api/PrivateValidationFlowHandler.js +1 -1
- package/build/js/api/SerialNumberBarcodeBuilder.js +1 -1
- package/build/js/api/ValidationFlowField.js +1 -1
- package/build/js/chunks/{chunk-NY6UU4OC.js → chunk-2K4IDUBI.js} +1 -1
- package/build/js/chunks/{chunk-OGERPOPP.js → chunk-36FUBGEZ.js} +1 -1
- package/build/js/chunks/{chunk-UZ2W2CJH.js → chunk-5JGE6TIK.js} +1 -1
- package/build/js/chunks/{chunk-O3LIL6A5.js → chunk-6AJOOQM4.js} +1 -1
- package/build/js/chunks/chunk-7D7JLKMH.js +1 -0
- package/build/js/chunks/{chunk-LQCSGQVX.js → chunk-A6QIZJQN.js} +1 -1
- package/build/js/chunks/{chunk-IKDUT4HS.js → chunk-AI6PEJT5.js} +1 -1
- package/build/js/chunks/{chunk-XTTGCSBA.js → chunk-AWVMQD6I.js} +1 -1
- package/build/js/chunks/{chunk-SIJVFBZR.js → chunk-B5ARNEBW.js} +1 -1
- package/build/js/chunks/{chunk-CVVZR6MJ.js → chunk-CDFFSVSO.js} +1 -1
- package/build/js/chunks/{chunk-M6KOA6NQ.js → chunk-FMGM62PL.js} +1 -1
- package/build/js/chunks/{chunk-4QEBUJAR.js → chunk-IIBMH4UP.js} +1 -1
- package/build/js/chunks/{chunk-MIF4OREL.js → chunk-LJPJTX67.js} +1 -1
- package/build/js/chunks/chunk-LLBGDMYR.js +1 -0
- package/build/js/chunks/{chunk-6DWFIFUC.js → chunk-LTIUWWPC.js} +1 -1
- package/build/js/chunks/{chunk-TFLJLW4K.js → chunk-MQ3C6JQR.js} +1 -1
- package/build/js/chunks/{chunk-QCDC57QB.js → chunk-QOVY54UR.js} +1 -1
- package/build/js/chunks/chunk-R3R62BOL.js +1 -0
- package/build/js/chunks/chunk-SQTZDMV3.js +2 -0
- package/build/js/chunks/{chunk-NRVY22W7.js → chunk-T6RBACQT.js} +1 -1
- package/build/js/chunks/{chunk-CYK3ORCG.js → chunk-UNYPWXEG.js} +1 -1
- package/build/js/chunks/{chunk-EPDDVGLY.js → chunk-XAZBXHAS.js} +1 -1
- package/build/js/chunks/{chunk-74H5UWMJ.js → chunk-XQBJ3GXA.js} +1 -1
- package/build/js/chunks/{chunk-OI3DYGBC.js → chunk-Y45KHLIU.js} +1 -1
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/private/viewfinderTranslator.js +1 -1
- package/build/js/ui/organisms/LabelCaptureValidationFlowLayout.js +1 -1
- package/build/js/worker/LabelCaptureWorkerManager.js +1 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/handlers/FieldBuilderHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureAdvancedOverlayHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureBasicOverlayHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureHandler.js +1 -1
- package/build/js/worker/handlers/ReceiptScanningHandler.js +1 -1
- package/build/js/worker/handlers/SettingsHandler.js +1 -1
- package/build/js/worker/handlers/ValidationFlowHandler.js +1 -1
- package/build/js/worker/labelCapture.inlineWorker.js +1 -1
- package/build/js/worker/proxies/AimerViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/BarcodeFieldProxy.js +1 -1
- package/build/js/worker/proxies/CapturedLabelProxy.js +1 -1
- package/build/js/worker/proxies/CustomBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/CustomTextProxy.js +1 -1
- package/build/js/worker/proxies/DateTextProxy.js +1 -1
- package/build/js/worker/proxies/ExpiryDateTextProxy.js +1 -1
- package/build/js/worker/proxies/ImeiOneBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/ImeiTwoBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSessionProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.js +1 -1
- package/build/js/worker/proxies/LabelDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldLocationProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldProxy.js +1 -1
- package/build/js/worker/proxies/NativeProxy.js +1 -1
- package/build/js/worker/proxies/NoViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/PackingDateTextProxy.js +1 -1
- package/build/js/worker/proxies/PartNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/ReceiptScanningOverlayProxy.js +1 -1
- package/build/js/worker/proxies/ReceiptScanningSettingsProxy.js +1 -1
- package/build/js/worker/proxies/RectangularViewfinderAnimationProxy.js +1 -1
- package/build/js/worker/proxies/RectangularViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/SerialNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/TotalPriceTextProxy.js +1 -1
- package/build/js/worker/proxies/UnitPriceTextProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowOverlayProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowSettingsProxy.js +1 -1
- package/build/js/worker/proxies/WeightTextProxy.js +1 -1
- package/build/js/worker/proxies/base/BarcodeFieldProxyBase.js +1 -1
- package/build/js/worker/proxies/base/LabelFieldDefinitionBaseProxy.js +1 -1
- 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/chunks/chunk-2W6E3GQH.js +0 -2
- package/build/js/chunks/chunk-NT3LCYW2.js +0 -1
- package/build/js/chunks/chunk-TZB6SCQB.js +0 -1
- package/build/js/chunks/chunk-V7FLLMXI.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CapturedLabel}from'../chunks/chunk-
|
|
1
|
+
export{a as CapturedLabel}from'../chunks/chunk-36FUBGEZ.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CustomBarcodeBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as CustomBarcodeBuilder}from'../chunks/chunk-CDFFSVSO.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CustomTextBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as CustomTextBuilder}from'../chunks/chunk-IIBMH4UP.js';
|
|
@@ -38,8 +38,8 @@ import './ReceiptScanningLineItem.js';
|
|
|
38
38
|
import './ValidationFlowField.js';
|
|
39
39
|
import './TextField.js';
|
|
40
40
|
import './LabelFieldDefinition.js';
|
|
41
|
-
import './LabelDateComponentFormat.js';
|
|
42
41
|
import './LabelFieldDefinitionBuilder.js';
|
|
42
|
+
import './LabelDateComponentFormat.js';
|
|
43
43
|
|
|
44
44
|
declare class ExpiryDateTextBuilder extends TextFieldBuilder<ExpiryDateTextBuilder, ExpiryDateText> {
|
|
45
45
|
private anchorRegexes?;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ExpiryDateTextBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as ExpiryDateTextBuilder}from'../chunks/chunk-FMGM62PL.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ImeiOneBarcodeBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as ImeiOneBarcodeBuilder}from'../chunks/chunk-B5ARNEBW.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ImeiTwoBarcodeBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as ImeiTwoBarcodeBuilder}from'../chunks/chunk-AWVMQD6I.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LabelCapture}from'../chunks/chunk-
|
|
1
|
+
export{a as LabelCapture}from'../chunks/chunk-Y45KHLIU.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LabelCaptureAdvancedOverlay}from'../chunks/chunk-
|
|
1
|
+
export{a as LabelCaptureAdvancedOverlay}from'../chunks/chunk-5JGE6TIK.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LabelCaptureBasicOverlay}from'../chunks/chunk-
|
|
1
|
+
export{a as LabelCaptureBasicOverlay}from'../chunks/chunk-XQBJ3GXA.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LabelCaptureSession}from'../chunks/chunk-
|
|
1
|
+
export{a as LabelCaptureSession}from'../chunks/chunk-2K4IDUBI.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LabelCaptureValidationFlowOverlay}from'../../chunks/chunk-
|
|
1
|
+
export{a as LabelCaptureValidationFlowOverlay}from'../../chunks/chunk-XAZBXHAS.js';
|
|
@@ -150,6 +150,7 @@ declare class ValidationFlowPresenter implements PrivateValidationFlowListener,
|
|
|
150
150
|
*/
|
|
151
151
|
goToCompleteScan(): Promise<void>;
|
|
152
152
|
resumeScan(): Promise<void>;
|
|
153
|
+
private resumePreviousScanMode;
|
|
153
154
|
/**
|
|
154
155
|
* Initialize inputs from validation flow fields
|
|
155
156
|
*/
|
|
@@ -337,6 +338,12 @@ declare class ValidationFlowPresenter implements PrivateValidationFlowListener,
|
|
|
337
338
|
onPauseButtonClicked(_event: LabelCaptureValidationFlowLayoutEventMap[typeof LabelCaptureValidationFlowLayoutEvents.PauseButtonClicked]): Promise<void>;
|
|
338
339
|
/**
|
|
339
340
|
* Event handler: Clicked outside list
|
|
341
|
+
*
|
|
342
|
+
* If a field is focused the tap will blur it naturally, triggering onTextInputBlur which
|
|
343
|
+
* owns validation. This handler steps aside in that case.
|
|
344
|
+
*
|
|
345
|
+
* If already paused with no focused field, restores the previous scan mode: partial scan
|
|
346
|
+
* if target fields were recorded, complete scan otherwise.
|
|
340
347
|
*/
|
|
341
348
|
onClickedOutsideList(_event: LabelCaptureValidationFlowLayoutEventMap[typeof LabelCaptureValidationFlowLayoutEvents.ClickedOutsideList]): Promise<void>;
|
|
342
349
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{c as ValidationFlowPresenter,a as convertToPx,b as toPixelMargins}from'../../../chunks/chunk-
|
|
1
|
+
export{c as ValidationFlowPresenter,a as convertToPx,b as toPixelMargins}from'../../../chunks/chunk-R3R62BOL.js';
|
|
@@ -65,13 +65,22 @@ declare class ValidationFlowStateManager {
|
|
|
65
65
|
private fieldStates;
|
|
66
66
|
/** Scan results from the last onFieldsScanned event, keyed by field name. CLEARED_SCAN_RESULT indicates a cleared/deleted result. */
|
|
67
67
|
private scanResultMap;
|
|
68
|
+
/** Whether the current paused state was entered because scanning timed out. */
|
|
69
|
+
private hasTimeout_;
|
|
70
|
+
/** Whether the current paused state was entered by clicking the pause button from a scanning state. */
|
|
71
|
+
private pausedFromScanningState_;
|
|
72
|
+
/** Field names targeted by the most recent partial (target) scan; empty when no partial scan is active. */
|
|
73
|
+
private partialScanFieldNames;
|
|
68
74
|
constructor();
|
|
69
75
|
/**
|
|
70
76
|
* Current validation flow state from the native handler
|
|
71
77
|
*/
|
|
72
78
|
get validationFlowHandlerState(): ValidationFlowState;
|
|
73
79
|
/**
|
|
74
|
-
* Set the validation flow state (called when receiving state updates from native handler)
|
|
80
|
+
* Set the validation flow state (called when receiving state updates from native handler).
|
|
81
|
+
* Leaving PAUSED clears the timeout flag since the resume reason no longer applies.
|
|
82
|
+
* Moving into a non-partial scanning state (IN_COMPLETE_SCAN, IDLE, FINISHED) clears the
|
|
83
|
+
* recorded partial scan field names so a subsequent standby doesn't restart target mode.
|
|
75
84
|
*/
|
|
76
85
|
set validationFlowHandlerState(state: ValidationFlowState);
|
|
77
86
|
/**
|
|
@@ -110,6 +119,36 @@ declare class ValidationFlowStateManager {
|
|
|
110
119
|
* Get the name of the currently focused input
|
|
111
120
|
*/
|
|
112
121
|
getCurrentInputName(): string | null;
|
|
122
|
+
/**
|
|
123
|
+
* Whether the current paused state was entered via a scan timeout.
|
|
124
|
+
*/
|
|
125
|
+
get hasTimeout(): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Mark the current pause as resulting from a scan timeout.
|
|
128
|
+
*/
|
|
129
|
+
markTimeout(): void;
|
|
130
|
+
/**
|
|
131
|
+
* Whether the current paused state was entered by clicking the pause button from a scanning
|
|
132
|
+
* state (Initial or Target). Tapping the preview should resume scanning in this case,
|
|
133
|
+
* matching the same click-to-resume behaviour as a timeout-induced standby.
|
|
134
|
+
*/
|
|
135
|
+
get isPausedFromScanningState(): boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Mark the current pause as initiated from the scanning state via the pause button.
|
|
138
|
+
*/
|
|
139
|
+
markPausedFromScanningState(): void;
|
|
140
|
+
/**
|
|
141
|
+
* Get the field names of the most recent partial (target) scan; empty if none is active.
|
|
142
|
+
*/
|
|
143
|
+
getPartialScanFieldNames(): string[];
|
|
144
|
+
/**
|
|
145
|
+
* Record the field names for a partial (target) scan so we can restart it after a timeout.
|
|
146
|
+
*/
|
|
147
|
+
setPartialScanFieldNames(fieldNames: string[]): void;
|
|
148
|
+
/**
|
|
149
|
+
* Clear the recorded partial scan field names (when leaving target mode).
|
|
150
|
+
*/
|
|
151
|
+
clearPartialScanFieldNames(): void;
|
|
113
152
|
/**
|
|
114
153
|
* Set the focused input by name
|
|
115
154
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as CloudBackupState,b as InputState,c as ValidationFlowStateManager}from'../../../chunks/chunk-
|
|
1
|
+
export{a as CloudBackupState,b as InputState,c as ValidationFlowStateManager}from'../../../chunks/chunk-LLBGDMYR.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ValidationFlowView}from'../../../chunks/chunk-
|
|
1
|
+
export{a as ValidationFlowView}from'../../../chunks/chunk-AI6PEJT5.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as LabelField}from'../chunks/chunk-
|
|
1
|
+
export{a as LabelField}from'../chunks/chunk-MQ3C6JQR.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as PartNumberBarcodeBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as PartNumberBarcodeBuilder}from'../chunks/chunk-LTIUWWPC.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as PrivateValidationFlowHandler}from'../chunks/chunk-
|
|
1
|
+
export{a as PrivateValidationFlowHandler}from'../chunks/chunk-6AJOOQM4.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as SerialNumberBarcodeBuilder}from'../chunks/chunk-
|
|
1
|
+
export{a as SerialNumberBarcodeBuilder}from'../chunks/chunk-T6RBACQT.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as ValidationFlowField}from'../chunks/chunk-
|
|
1
|
+
export{a as ValidationFlowField}from'../chunks/chunk-A6QIZJQN.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-36FUBGEZ.js';var t=class s{get lastProcessedFrameId(){return this._lastProcessedFrameId}get frameSequenceId(){return this._frameSequenceId}get capturedLabels(){return this._capturedLabels}get canShowLocations(){return this._canShowLocations}static fromJSON(a$1){let e=new s;return e._canShowLocations=a$1.canShowLocations,e._lastProcessedFrameId=a$1.lastFrameId,e._frameSequenceId=a$1.frameSequenceId,e._capturedLabels=a$1.labels.map(n=>a.fromJSON(n)),e}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-MQ3C6JQR.js';import {Quadrilateral}from'@scandit/web-datacapture-core';var r=class d{get fields(){return this._fields}get name(){return this._name}get isComplete(){return this._isComplete}get predictedBounds(){return this._predictedBounds}get deltaTimeToPrediction(){return this._deltaTimeToPrediction}get trackingId(){return this._trackingId}static fromJSON(e){let t=new d;return t._fields=e.fields.map(a$1=>a.fromJSON(a$1)),t._name=e.name,t._isComplete=e.isComplete,t._predictedBounds=Quadrilateral.fromJSON(e.predictedBounds),t._deltaTimeToPrediction=e.deltaTimeToPrediction,t._trackingId=e.trackingId,t}toJSONObject(){return {fields:this._fields.map(e=>e.toJSONObject()),name:this._name,isComplete:this._isComplete,predictedBounds:this._predictedBounds.toJSONObject(),deltaTimeToPrediction:this._deltaTimeToPrediction,trackingId:this._trackingId}}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-2K4IDUBI.js';import {a}from'./chunk-SYDG6PPD.js';import {PointWithUnit,NumberWithUnit,MeasureUnit,Anchor}from'@scandit/web-datacapture-core';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';var m=class m{constructor(e){this.onWorkerMessageHandler=this.onWorkerMessage.bind(this);this.defaultOffset=new PointWithUnit(new NumberWithUnit(0,MeasureUnit.Pixel),new NumberWithUnit(0,MeasureUnit.Pixel));this._viewForCapturedLabelMap=new Map;this._viewForCapturedLabelFieldMap=new Map;this._anchorForCapturedLabelMap=new Map;this._offsetForCapturedLabelMap=new Map;this._offsetForCapturedLabelFieldMap=new Map;this._anchorForCapturedLabelFieldMap=new Map;this.listener=null;this[nativeHandle]=e;}static async withLabelCaptureForView(e,a$1){let t=await a().workerCommand("labelCaptureAdvancedOverlayForLabelCapture",{payload:{labelCaptureHandle:e[nativeHandle]}}),i=new m(t);return i._dataCaptureView=a$1,await a$1.addOverlay(i),a().addWorkerListener(i.onWorkerMessageHandler),i}keyForCapturedLabelField(e,a){return `${e.trackingId}-${e.name}-${a.name}`}async setShouldShowScanAreaGuides(e){return await a().workerCommand("labelCaptureAdvancedOverlaySetShouldShowScanAreaGuides",{payload:{labelCaptureAdvancedOverlayHandle:this[nativeHandle],show:e}})}async getShouldShowScanAreaGuides(){return await a().workerCommand("labelCaptureAdvancedOverlayGetShouldShowScanAreaGuides",{payload:{labelCaptureAdvancedOverlayHandle:this[nativeHandle]}})}setViewForCapturedLabel(e,a){if(a==null){this._viewForCapturedLabelMap.set(e.name,null);return}this._viewForCapturedLabelMap.has(e.name)||this._viewForCapturedLabelMap.set(e.name,a);}setAnchorForCapturedLabel(e,a){this._anchorForCapturedLabelMap.set(e.name,a);}setOffsetForCapturedLabel(e,a){this._offsetForCapturedLabelMap.set(e.name,a);}setViewForCapturedLabelField(e,a,t){let i=this.keyForCapturedLabelField(a,e);if(t==null){this._viewForCapturedLabelFieldMap.set(i,null);return}this._viewForCapturedLabelFieldMap.has(i)||this._viewForCapturedLabelFieldMap.set(i,t);}setAnchorForCapturedLabelField(e,a,t){this._anchorForCapturedLabelFieldMap.set(this.keyForCapturedLabelField(a,e),t);}setOffsetForCapturedLabelField(e,a,t){this._offsetForCapturedLabelFieldMap.set(this.keyForCapturedLabelField(a,e),t);}clearCapturedLabelViews(){this._viewForCapturedLabelMap.clear(),this._viewForCapturedLabelFieldMap.clear(),this._dataCaptureView.renderCustomLocationsView({elements:[]});}onWorkerMessage(e){e.type==="labelCaptureOnSessionUpdated"&&this.update(a$1.fromJSON(e.payload.session));}handleUpdateField(e){var t,i,u,o,b,h,n,C;let a=[];for(let r of e.fields){let l=this.keyForCapturedLabelField(e,r),p=(u=this._viewForCapturedLabelFieldMap.get(l))!=null?u:(i=(t=this.listener)==null?void 0:t.viewForCapturedLabelField)==null?void 0:i.call(t,this,r),s=(h=this._anchorForCapturedLabelFieldMap.get(l))!=null?h:(b=(o=this.listener)==null?void 0:o.anchorForCapturedLabelField)==null?void 0:b.call(o,this,r),L=this._offsetForCapturedLabelFieldMap.get(l);L==null&&p!=null&&(L=(C=(n=this.listener)==null?void 0:n.offsetForCapturedLabelField)==null?void 0:C.call(n,this,r,p)),a.push({identifier:l,anchorPositions:r.anchorPositions,view:p!=null?p:null,anchor:s!=null?s:Anchor.BottomCenter,offset:L!=null?L:this.defaultOffset});}return a}update(e){var t,i,u,o,b,h,n,C;let a=[];for(let r of e.capturedLabels){let l=(u=this._viewForCapturedLabelMap.get(r.name))!=null?u:(i=(t=this.listener)==null?void 0:t.viewForCapturedLabel)==null?void 0:i.call(t,this,r),p=(h=this._anchorForCapturedLabelMap.get(r.name))!=null?h:(b=(o=this.listener)==null?void 0:o.anchorForCapturedLabel)==null?void 0:b.call(o,this,r),s=this._offsetForCapturedLabelMap.get(r.name);s==null&&l!=null&&(s=(C=(n=this.listener)==null?void 0:n.offsetForCapturedLabel)==null?void 0:C.call(n,this,r,l)),r.fields.length>0&&a.push({identifier:`${r.trackingId}-${r.name}`,anchorPositions:r.fields[0].anchorPositions,view:l!=null?l:null,anchor:p!=null?p:Anchor.BottomCenter,offset:s!=null?s:this.defaultOffset}),a.push(...this.handleUpdateField(r));}this._dataCaptureView.renderCustomLocationsView({elements:a});}toJSONObject(){return {type:this[nativeHandle].className,nativeHandle:this[nativeHandle]}}},M=m;export{M as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$1}from'./chunk-
|
|
1
|
+
import {a as a$1}from'./chunk-A6QIZJQN.js';import {a}from'./chunk-SYDG6PPD.js';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';var s=class s{constructor(a,t){this.validationFlowListeners=new Set;this.onWorkerMessageHandler=this.onWorkerMessage.bind(this);this[nativeHandle]=a,this.labelCaptureWorkerManager=t;}static async create(a$1){let t=a(),n=await t.workerCommand("validationFlowHandlerCreate",{payload:{labelCaptureHandle:a$1[nativeHandle]}});return new s(n,t)}async startCompleteLabelScan(a){await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerStartCompleteLabelScan",{payload:{labelCaptureHandle:this[nativeHandle],labelName:a}});}async startPartialLabelScan(a){await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerStartPartialLabelScan",{payload:{labelCaptureHandle:this[nativeHandle],fieldNames:a}});}async updateFieldValue(a,t){return await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerUpdateFieldValue",{payload:{labelCaptureHandle:this[nativeHandle],fieldName:a,value:t}})}async onFinishFlowRequested(){return await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerFinishFlow",{payload:{labelCaptureHandle:this[nativeHandle]}})}async pauseScan(){await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerPauseScan",{payload:{labelCaptureHandle:this[nativeHandle]}});}async reset(){await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerReset",{payload:{labelCaptureHandle:this[nativeHandle]}});}async resumeScan(){await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerResumeScan",{payload:{labelCaptureHandle:this[nativeHandle]}});}async validationFlowFields(){return (await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerGetValidationFlowFields",{payload:{labelCaptureHandle:this[nativeHandle]}})).map(t=>a$1.fromJSONObject(t))}async clearAllFields(){await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerClearAllFields",{payload:{labelCaptureHandle:this[nativeHandle]}});}async cancelCloudBackupTaskForField(a){await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerCancelCloudBackupTaskForField",{payload:{labelCaptureHandle:this[nativeHandle],fieldName:a}});}async uncancelCloudBackupTaskForField(a){await this.labelCaptureWorkerManager.workerCommand("validationFlowHandlerUncancelCloudBackupTaskForField",{payload:{labelCaptureHandle:this[nativeHandle],fieldName:a}});}addListener(a){this.validationFlowListeners.size===0&&this.labelCaptureWorkerManager.addWorkerListener(this.onWorkerMessageHandler),this.validationFlowListeners.add(a);}removeListener(a){this.validationFlowListeners.delete(a),this.validationFlowListeners.size===0&&this.labelCaptureWorkerManager.removeWorkerListener(this.onWorkerMessageHandler);}async onWorkerMessage(a){var t,n,d,p,u,c,F,w,m;if(this.validationFlowListeners.size!==0)switch(a.type){case "validationFlowListenerOnFieldsScanned":{let i=a.payload.fields.map(e=>a$1.fromJSONObject(e));for(let e of this.validationFlowListeners)(t=e.onFieldsScanned)==null||t.call(e,i);break}case "validationFlowListenerOnScanTimeout":{let i=[];for(let e of this.validationFlowListeners)i.push((n=e.onScanTimeout)==null?void 0:n.call(e));await Promise.all(i);break}case "validationFlowListenerOnLabelIsMissingRequiredField":{let i=a.payload.fields.map(o=>a$1.fromJSONObject(o)),e=[];for(let o of this.validationFlowListeners)e.push((d=o.onLabelIsMissingRequiredField)==null?void 0:d.call(o,i));await Promise.all(e);break}case "validationFlowListenerOnManualInput":{let i=a$1.fromJSONObject(a.payload.field);for(let e of this.validationFlowListeners)(p=e.onManualInput)==null||p.call(e,i,a.payload.oldValue,a.payload.newValue);break}case "validationFlowListenerOnStateChanged":{let i=a.payload.state,e=[];for(let o of this.validationFlowListeners)e.push((u=o.onStateChanged)==null?void 0:u.call(o,i));await Promise.all(e);break}case "validationFlowListenerOnCloudBackupServiceStarted":{let i=[];for(let e of this.validationFlowListeners)i.push((c=e.onCloudBackupServiceStarted)==null?void 0:c.call(e));await Promise.all(i);break}case "validationFlowListenerOnCloudBackupServiceStopped":{for(let i of this.validationFlowListeners)(F=i.onCloudBackupServiceStopped)==null||F.call(i);break}case "validationFlowListenerOnResultUpdate":{let i=a.payload.updateType,e=a.payload.fields.map(o=>a$1.fromJSONObject(o));for(let o of this.validationFlowListeners)(w=o.onResultUpdate)==null||w.call(o,i,e,a.payload.data);break}case "validationFlowFeedbackForCloudBackupEmit":{for(let i of this.validationFlowListeners)(m=i.onCloudBackupFeedbackEmit)==null||m.call(i);break}}}},k=s;export{k as a};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t={"scandit-datacapture-sdk-label-pthreads.wasm":{bytes:8032932},"scandit-datacapture-sdk-label-simd-pthreads.wasm":{bytes:7919126},"scandit-datacapture-sdk-label-simd.wasm":{bytes:7992353},"scandit-datacapture-sdk-label.wasm":{bytes:8121576}};export{t as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a}from'./chunk-MQ3C6JQR.js';var i=class o{constructor(l,a,d){this.labelField=l,this.valid=a,this.processingInCloud=d;}getLabelField(){return this.labelField}isValid(){return this.valid}isProcessingInCloud(){return this.processingInCloud}toJSONObject(){return {labelField:this.labelField.toJSONObject(),valid:this.valid,isProcessingInCloud:this.processingInCloud}}static fromJSONObject(l){return new o(a.fromJSON(l.labelField),l.valid,l.isProcessingInCloud)}};export{i as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {b}from'./chunk-
|
|
1
|
+
import {b}from'./chunk-UNYPWXEG.js';import {h}from'./chunk-BEKGYADV.js';import {BrowserHelper,Orientation,Logger}from'@scandit/web-datacapture-core';var r=class d{constructor(){this.layout=null;this.dataCaptureViewRoot=null;this.scrollIntoView=null;d.ensureCustomElementsRegistered();}static ensureCustomElementsRegistered(){b.register(),h.register();}getInputs(){var t,e;return (e=(t=this.layout)==null?void 0:t.getInputs())!=null?e:[]}getInputByName(t){var e,i;return (i=(e=this.layout)==null?void 0:e.getInputByName(t))!=null?i:null}hasInput(t){return this.getInputByName(t)!==null}isInputFocused(t){var i;let e=this.getInputByName(t);return e?e.hasAttribute("focused")||((i=document.activeElement)==null?void 0:i.closest(h.tag))===e:false}isFocusedElementAnTextInput(){var t,e;return ((e=(t=document.activeElement)==null?void 0:t.closest(h.tag))==null?void 0:e.tagName.toLowerCase())===h.tag}showScanningButtons(){var t;(t=this.layout)==null||t.showScanningButtons();}showValidationButtons(){var t;(t=this.layout)==null||t.showValidationButtons();}hideAllButtons(){var t;(t=this.layout)==null||t.hideAllButtons();}setSubmitButtonDisabled(t){var e;(e=this.layout)!=null&&e.submitButton&&(this.layout.submitButton.disabled=t);}updateInputVisualState(t,e){let i=this.getInputByName(t);i&&(e.value!==void 0&&(i.value=e.value),e.loading!==void 0&&(i.loading=e.loading),e.loadingText!==void 0&&(i.loadingText=e.loadingText),e.invalid!==void 0&&(e.invalid&&e.hintMessage?i.setValidationState(false,e.hintMessage):e.invalid||i.resetValidation()),e.backgroundColor!==void 0&&(i.backgroundColor=e.backgroundColor));}resetInputValidation(t){let e=this.getInputByName(t);e&&e.resetValidation();}updateScanIconVisibility(t,e){let i=this.getInputByName(t);i&&(i.hideScanIcon=!e);}updateAllScanIconVisibility(t){let e=this.getInputs();for(let i of e)i.hideScanIcon=!t;}updateInputForState(t,e,i,n){switch(e){case "initial":this.updateInputVisualState(t,{value:i,loading:false,loadingText:"",invalid:false,backgroundColor:""});break;case "scanning":this.updateInputVisualState(t,{value:i,loading:true,loadingText:n.scanningText||"Scanning",invalid:false,backgroundColor:""});break;case "cloudBackup":this.updateInputVisualState(t,{value:i,loading:true,loadingText:n.adaptiveScanningText||"Processing, tap to type manually",invalid:false,backgroundColor:""});break;case "validated":this.updateInputVisualState(t,{value:i,loading:false,invalid:false,backgroundColor:n.backgroundColor||""});break;case "error":{this.updateInputVisualState(t,{value:i,loading:false,invalid:true,hintMessage:n.hintMessage||"",backgroundColor:""});break}}n.scanIconVisible!==void 0&&this.updateScanIconVisibility(t,n.scanIconVisible);}showAdaptiveRecognitionOverlay(){var t;(t=this.layout)==null||t.showAdaptiveRecognitionOverlay();}hideAdaptiveRecognitionOverlay(){var t;(t=this.layout)==null||t.hideAdaptiveRecognitionOverlay();}async showBackdrop(){var t,e;await((e=(t=this.layout)==null?void 0:t.backdrop)==null?void 0:e.show());}async hideBackdrop(){var t,e;await((e=(t=this.layout)==null?void 0:t.backdrop)==null?void 0:e.hide());}async moveInputToTop(t){var i;let e=this.getInputByName(t);e&&await((i=this.layout)==null?void 0:i.moveInputToTop(e));}async restoreInputsPositions(){var t;await((t=this.layout)==null?void 0:t.restoreInputsPositions());}updateButtonText(t){this.layout&&(t.finishButtonText!==void 0&&(this.layout.finishButtonText=t.finishButtonText),t.restartButtonText!==void 0&&(this.layout.restartButtonText=t.restartButtonText),t.pauseButtonText!==void 0&&(this.layout.pauseButtonText=t.pauseButtonText));}setInputPlaceholder(t,e){let i=this.getInputByName(t);i&&(i.placeholder=e);}clearInputPlaceholder(t){let e=this.getInputByName(t);e&&(e.placeholder="");}setInputValue(t,e){let i=this.getInputByName(t);i&&(i.value=e);}getInputValue(t){var i;let e=this.getInputByName(t);return (i=e==null?void 0:e.value)!=null?i:""}setInputBackgroundColor(t,e){let i=this.getInputByName(t);i&&(i.backgroundColor=e);}initializeInputs(t){var i;this.clearInputs();let e=[];for(let n of t){let o=h.create();o.type=n.type,o.label=n.label,o.value=n.value,o.required=n.required,o.name=n.name,o.loadingText=n.loadingText,e.push(o);}(i=this.layout)==null||i.appendInputs(...e);}appendInputs(...t){var e;(e=this.layout)==null||e.appendInputs(...t);}clearInputs(){for(let t of this.getInputs())t.remove();}focusInput(t){let e=this.getInputByName(t);e==null||e.focus();}blurInput(t){let e=this.getInputByName(t);e==null||e.blur();}scrollInputIntoView(t,e){var n;let i=this.getInputByName(t);if(i){if(BrowserHelper.isIOS()){e.detail.orientation===Orientation.LandscapeLeft||e.detail.orientation===Orientation.LandscapeRight?i.style.scrollMarginBottom="-20px":i.style.removeProperty("scroll-margin-bottom"),(n=this.scrollIntoView)==null||n.call(this,i,{behavior:"smooth",block:"end",inline:"nearest"});return}i.scrollIntoView({behavior:"smooth",block:"end",inline:"nearest"});}}isInputActiveElement(t){return this.getInputByName(t)===document.activeElement}blurActiveElement(){var t;(t=document.activeElement)==null||t.blur();}addEventListener(t,e){var i;(i=this.layout)==null||i.addEventListener(t,e);}removeEventListener(t,e){var i;(i=this.layout)==null||i.removeEventListener(t,e);}addSubmitButtonListener(t){var e,i;(i=(e=this.layout)==null?void 0:e.submitButton)==null||i.addEventListener("click",t);}removeSubmitButtonListener(t){var e,i;(i=(e=this.layout)==null?void 0:e.submitButton)==null||i.removeEventListener("click",t);}async mount(t){var e;this.layout=b.create(),this.dataCaptureViewRoot=t.htmlElement,t.detachFromElement(),(e=this.dataCaptureViewRoot)==null||e.append(this.layout),t.connectToElement(this.layout.dataCaptureViewContainer),BrowserHelper.isIOS()&&(this.scrollIntoView=(await import('../private/scrollIntoView/index.js')).default);}async unmount(t){var e;(e=this.layout)==null||e.remove(),t.detachFromElement(),this.dataCaptureViewRoot?t.connectToElement(this.dataCaptureViewRoot):Logger.warn("LabelCaptureValidationFlowOverlay: dataCaptureViewRoot is not set"),this.layout=null,this.dataCaptureViewRoot=null;}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$2}from'./chunk-MGEXMPRG.js';import {a}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-MGEXMPRG.js';import {a as a$1}from'./chunk-SYDG6PPD.js';import {a}from'./chunk-BDA5SYXG.js';var o=class extends a{constructor(){super(...arguments);this.anchorRegexes=[];}setAnchorRegexes(e){return this.anchorRegexes=e,this.getThis()}setAnchorRegex(e){return this.anchorRegexes=[String(e)],this.getThis()}async build(e){let a=await a$1().workerCommand("labelCaptureBuildImeiTwoBarcode",{payload:{name:e,dataTypePatterns:this.anchorRegexes,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,numberOfMandatoryInstances:this._numberOfMandatoryInstances,patterns:this.valueRegexes,symbologies:this.symbologies}}),t=a$2.forHandle(a);return t._isOptional=this._isOptional,t._numberOfMandatoryInstances=this._numberOfMandatoryInstances,t._name=e,t._valueRegexes=this.valueRegexes,t._symbologies=this.symbologySettings,t}getThis(){return this}};export{o as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$3}from'./chunk-LAW7AY4G.js';import {a as a$
|
|
1
|
+
import {a as a$3}from'./chunk-LAW7AY4G.js';import {a as a$2}from'./chunk-SYDG6PPD.js';import {a as a$1}from'./chunk-BDA5SYXG.js';var a=class extends a$1{constructor(){super(...arguments);this.anchorRegexes=[];}setAnchorRegexes(e){return this.anchorRegexes=e,this.getThis()}setAnchorRegex(e){return this.anchorRegexes=[String(e)],this.getThis()}async build(e){let n=await a$2().workerCommand("labelCaptureBuildImeiOneBarcode",{payload:{name:e,dataTypePatterns:this.anchorRegexes,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,numberOfMandatoryInstances:this._numberOfMandatoryInstances,patterns:this.valueRegexes,symbologies:this.symbologies}}),t=a$3.forHandle(n);return t._isOptional=this._isOptional,t._numberOfMandatoryInstances=this._numberOfMandatoryInstances,t._name=e,t._valueRegexes=this.valueRegexes,t._symbologies=this.symbologySettings,t}getThis(){return this}};export{a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a}from'./chunk-
|
|
1
|
+
import {a as a$2}from'./chunk-BYXHNUWR.js';import {a as a$1}from'./chunk-SYDG6PPD.js';import {a}from'./chunk-BDA5SYXG.js';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';var r=class extends a{constructor(){super(...arguments);this.anchorRegexes=[];}setAnchorRegexes(e){return this.anchorRegexes=e,this.getThis()}setAnchorRegex(e){return this.anchorRegexes=[String(e)],this.getThis()}setLocation(e){return this.location=e,this.getThis()}async build(e){var i;let n=await a$1().workerCommand("labelCaptureBuildCustomBarcode",{payload:{name:e,dataTypePatterns:this.anchorRegexes.map(l=>l.toString()),hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,numberOfMandatoryInstances:this._numberOfMandatoryInstances,patterns:this.valueRegexes,symbologies:this.symbologies,locationHandle:(i=this.location)==null?void 0:i[nativeHandle]}}),t=a$2.forHandle(n);return t._anchorRegexes=this.anchorRegexes,t._isOptional=this._isOptional,t._numberOfMandatoryInstances=this._numberOfMandatoryInstances,t._name=e,t._valueRegexes=this.valueRegexes,t._symbologies=this.symbologySettings,t._location=this.location,t}getThis(){return this}};export{r as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a
|
|
1
|
+
import {a}from'./chunk-M4E4AARR.js';import {a as a$2}from'./chunk-NCZG3BTH.js';import {a as a$1}from'./chunk-SYDG6PPD.js';var n=class extends a{constructor(){super(...arguments);this.shouldResetAnchorRegexes=false;}setAnchorRegexes(e){return this.anchorRegexes=e,this}setAnchorRegex(e){return this.anchorRegexes=[e],this}resetAnchorRegexes(){return this.shouldResetAnchorRegexes=true,this}setLabelDateFormat(e){return this.labelDateFormat=e,this}async build(e){var a,r;let l=await a$1().workerCommand("labelCaptureBuildExpiryDateText",{payload:{name:e,hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,numberOfMandatoryInstances:this._numberOfMandatoryInstances,patterns:this.valueRegexes,dataTypePatterns:this.anchorRegexes,shouldResetDataTypePatterns:this.shouldResetAnchorRegexes,labelDateFormat:(a=this.labelDateFormat)==null?void 0:a.toJSONObject()}}),t=a$2.forHandle(l);return t._isOptional=this._isOptional,t._numberOfMandatoryInstances=this._numberOfMandatoryInstances,t._name=e,t._valueRegexes=this.valueRegexes,t._dateFormat=this.labelDateFormat,t._anchorRegexes=(r=this.anchorRegexes)!=null?r:[],t}getThis(){return this}};export{n as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import {a as a$
|
|
1
|
+
import {a as a$3}from'./chunk-ZWWBOSQM.js';import {a as a$1}from'./chunk-M4E4AARR.js';import {a as a$2}from'./chunk-SYDG6PPD.js';import {nativeHandle}from'@scandit/web-datacapture-core/build/js/private/nativeHandle.js';var a=class extends a$1{constructor(){super(...arguments);this.anchorRegexes=[];this.shouldResetAnchorRegexes=false;}setAnchorRegexes(e){return this.anchorRegexes=e,this.getThis()}setAnchorRegex(e){return this.anchorRegexes=[String(e)],this.getThis()}resetAnchorRegexes(){return this.shouldResetAnchorRegexes=true,this.getThis()}setLocation(e){return this.location=e,this.getThis()}async build(e){var s;let n=await a$2().workerCommand("labelCaptureBuildCustomText",{payload:{name:e,dataTypePatterns:this.anchorRegexes.map(h=>h.toString()),hiddenProperties:this.hiddenProperties,isOptional:this._isOptional,numberOfMandatoryInstances:this._numberOfMandatoryInstances,patterns:this.valueRegexes,locationHandle:(s=this.location)==null?void 0:s[nativeHandle],shouldResetDataTypePatterns:this.shouldResetAnchorRegexes}}),t=a$3.forHandle(n);return t._anchorRegexes=this.anchorRegexes,t._isOptional=this._isOptional,t._numberOfMandatoryInstances=this._numberOfMandatoryInstances,t._name=e,t._valueRegexes=this.valueRegexes,t._location=this.location,t}getThis(){return this}};export{a};
|