@scandit/web-datacapture-label 8.1.1 → 8.2.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/{LabelCaptureAdvancedOverlay-B1hVlOzu.d.ts → LabelCaptureAdvancedOverlay-Gh80a5hZ.d.ts} +1 -1
- package/build/js/{LabelCaptureBasicOverlay-BjmQOKkn.d.ts → LabelCaptureBasicOverlay-C6TRvWxE.d.ts} +1 -1
- package/build/js/{NativeProxy-B98bIlIp.d.ts → NativeProxy-DreJVzqM.d.ts} +101 -13
- package/build/js/api/AdaptiveRecognitionResult.d.ts +1 -1
- package/build/js/api/CapturedLabel.js +1 -1
- package/build/js/api/CustomBarcodeBuilder.js +1 -1
- package/build/js/api/CustomText.d.ts +1 -1
- package/build/js/api/CustomTextBuilder.d.ts +1 -1
- package/build/js/api/CustomTextBuilder.js +1 -1
- package/build/js/api/DateText.d.ts +1 -1
- package/build/js/api/DateTextBuilder.d.ts +1 -1
- package/build/js/api/ExpiryDateText.d.ts +1 -1
- package/build/js/api/ExpiryDateTextBuilder.d.ts +2 -2
- 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.d.ts +1 -1
- package/build/js/api/LabelCapture.js +1 -1
- package/build/js/api/LabelCaptureAdaptiveRecognitionOverlay.d.ts +1 -1
- package/build/js/api/LabelCaptureAdaptiveRecognitionOverlay.js +1 -1
- package/build/js/api/LabelCaptureAdaptiveRecognitionSettings.d.ts +1 -1
- package/build/js/api/LabelCaptureAdvancedOverlay.d.ts +2 -2
- package/build/js/api/LabelCaptureAdvancedOverlay.js +1 -1
- package/build/js/api/LabelCaptureAdvancedOverlayListener.d.ts +2 -2
- package/build/js/api/LabelCaptureBasicOverlay.d.ts +2 -2
- package/build/js/api/LabelCaptureBasicOverlay.js +1 -1
- package/build/js/api/LabelCaptureBasicOverlayListener.d.ts +2 -2
- package/build/js/api/LabelCaptureListener.d.ts +1 -1
- package/build/js/api/LabelCaptureOverlayJSON.d.ts +1 -1
- package/build/js/api/LabelCaptureSession.js +1 -1
- package/build/js/api/LabelCaptureSettings.d.ts +1 -1
- package/build/js/api/LabelCaptureValidationFlowFeedback.d.ts +15 -0
- package/build/js/api/LabelCaptureValidationFlowFeedback.js +1 -0
- package/build/js/api/LabelCaptureValidationFlowOverlay.d.ts +59 -38
- package/build/js/api/LabelCaptureValidationFlowOverlay.js +1 -1
- package/build/js/api/LabelCaptureValidationFlowSettings.d.ts +30 -6
- package/build/js/api/LabelCaptureValidationFlowSettings.js +1 -1
- package/build/js/api/LabelDefinition.d.ts +1 -1
- package/build/js/api/LabelField.js +1 -1
- package/build/js/api/PackingDateText.d.ts +1 -1
- package/build/js/api/PackingDateTextBuilder.d.ts +1 -1
- package/build/js/api/PartNumberBarcodeBuilder.js +1 -1
- package/build/js/api/PrivateReceiptScanningHandler.d.ts +1 -1
- package/build/js/api/PrivateReceiptScanningListener.d.ts +1 -1
- package/build/js/api/PrivateValidationFlowHandler.d.ts +1 -0
- package/build/js/api/PrivateValidationFlowHandler.js +1 -1
- package/build/js/api/ReceiptScanningResult.d.ts +1 -1
- package/build/js/api/SerialNumberBarcodeBuilder.js +1 -1
- package/build/js/api/TotalPriceText.d.ts +1 -1
- package/build/js/api/TotalPriceTextBuilder.d.ts +1 -1
- package/build/js/api/UnitPriceText.d.ts +1 -1
- package/build/js/api/UnitPriceTextBuilder.d.ts +1 -1
- package/build/js/api/ValidationFlowField.d.ts +3 -0
- package/build/js/api/ValidationFlowField.js +1 -1
- package/build/js/api/WeightText.d.ts +1 -1
- package/build/js/api/WeightTextBuilder.d.ts +1 -1
- package/build/js/chunks/{chunk-2WECOW4F.js → chunk-2K4IDUBI.js} +1 -1
- package/build/js/chunks/{chunk-GOW3A5CW.js → chunk-36FUBGEZ.js} +1 -1
- package/build/js/chunks/chunk-3WFVV6LL.js +1 -0
- package/build/js/chunks/{chunk-AVU64GAK.js → chunk-5CNHCL7M.js} +1 -1
- package/build/js/chunks/{chunk-6WMMNFP2.js → chunk-5JGE6TIK.js} +1 -1
- package/build/js/chunks/chunk-6EPGEBWT.js +1 -0
- package/build/js/chunks/chunk-7LN4ULNN.js +1 -0
- package/build/js/chunks/{chunk-G37GYNDK.js → chunk-A537ABTE.js} +1 -1
- package/build/js/chunks/chunk-A6QIZJQN.js +1 -0
- package/build/js/chunks/chunk-BILNKC2Q.js +1 -0
- package/build/js/chunks/chunk-CS7EEHHH.js +1 -0
- package/build/js/chunks/{chunk-RPOZ2B2F.js → chunk-DV4WMUFU.js} +1 -1
- package/build/js/chunks/{chunk-SWSQIF4W.js → chunk-IK62R3BD.js} +1 -1
- package/build/js/chunks/chunk-IXBSL67X.js +2 -0
- package/build/js/chunks/chunk-MQ3C6JQR.js +1 -0
- package/build/js/chunks/{chunk-32ZWMZFO.js → chunk-NF5D6YGW.js} +1 -1
- package/build/js/chunks/chunk-O5PVNK4O.js +1 -0
- package/build/js/chunks/chunk-PLBJGJHF.js +1 -0
- package/build/js/chunks/{chunk-GEFDYKTD.js → chunk-RMO2SLDR.js} +1 -1
- package/build/js/chunks/{chunk-UANOODAK.js → chunk-SQXVN7WR.js} +1 -1
- package/build/js/chunks/{chunk-H7A45TQE.js → chunk-T5PFYQ2F.js} +1 -1
- package/build/js/chunks/{chunk-QVLYUSDL.js → chunk-THXK2CAH.js} +1 -1
- package/build/js/chunks/{chunk-K44FWZYF.js → chunk-U77DVACF.js} +1 -1
- package/build/js/chunks/chunk-X2BMTDWA.js +1 -0
- package/build/js/chunks/chunk-X6DRW2HT.js +1 -0
- package/build/js/chunks/{chunk-INKFF3U2.js → chunk-XQBJ3GXA.js} +1 -1
- package/build/js/chunks/{chunk-HTEZ5TMC.js → chunk-ZMEFT4CJ.js} +1 -1
- package/build/js/djinni-types/sdcCoreInternalSdkCommonGeometry.d.ts +10 -1
- package/build/js/djinni-types/sdcCoreInternalSdkCommonGeometry.js +1 -0
- package/build/js/djinni-types/sdcLabelInternalModuleCapture.d.ts +5 -3
- package/build/js/djinni-types/sdcLabelInternalModuleUiOverlay.d.ts +12 -2
- package/build/js/index.d.ts +3 -3
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/private/PrivateLabelFieldDefinition.d.ts +1 -1
- package/build/js/private/createProxiedViewFinder.d.ts +2 -2
- package/build/js/private/viewfinderTranslator.js +1 -1
- package/build/js/ui/atoms/AdaptiveRecognitionOverlay.js +1 -0
- package/build/js/ui/atoms/Button.d.ts +68 -0
- package/build/js/ui/atoms/Button.js +1 -0
- package/build/js/ui/atoms/TextInput.d.ts +167 -64
- package/build/js/ui/atoms/TextInput.js +1 -1
- package/build/js/ui/organisms/LabelCaptureValidationFlowLayout.d.ts +84 -9
- package/build/js/ui/organisms/LabelCaptureValidationFlowLayout.js +1 -1
- package/build/js/worker/LabelCaptureWorkerManager.d.ts +1 -1
- package/build/js/worker/LabelCaptureWorkerManager.js +1 -1
- package/build/js/worker/WorkerMain.d.ts +1 -1
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/WorkerRegistry.d.ts +1 -1
- package/build/js/worker/dataCaptureEngine.d.ts +1 -1
- package/build/js/worker/dataCaptureEngine.js +1 -1
- package/build/js/worker/dataCaptureWorkerRelated.d.ts +1 -1
- package/build/js/worker/handlers/FieldBuilderHandler.d.ts +1 -1
- package/build/js/worker/handlers/FieldBuilderHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureAdvancedOverlayHandler.d.ts +1 -1
- package/build/js/worker/handlers/LabelCaptureAdvancedOverlayHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureBasicOverlayHandler.d.ts +1 -1
- package/build/js/worker/handlers/LabelCaptureBasicOverlayHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureHandler.d.ts +1 -1
- package/build/js/worker/handlers/LabelCaptureHandler.js +1 -1
- package/build/js/worker/handlers/ReceiptScanningHandler.d.ts +1 -1
- package/build/js/worker/handlers/ReceiptScanningHandler.js +1 -1
- package/build/js/worker/handlers/SettingsHandler.d.ts +1 -1
- package/build/js/worker/handlers/SettingsHandler.js +1 -1
- package/build/js/worker/handlers/ValidationFlowHandler.d.ts +1 -1
- package/build/js/worker/handlers/ValidationFlowHandler.js +1 -1
- package/build/js/worker/labelCapture.inlineWorker.d.ts +1 -1
- package/build/js/worker/labelCapture.inlineWorker.js +1 -1
- package/build/js/worker/labelWorkerHandler.d.ts +1 -1
- package/build/js/worker/proxies/AimerViewfinderProxy.d.ts +1 -1
- package/build/js/worker/proxies/AimerViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/BarcodeFieldProxy.d.ts +1 -1
- package/build/js/worker/proxies/BarcodeFieldProxy.js +1 -1
- package/build/js/worker/proxies/CapturedLabelProxy.d.ts +1 -1
- package/build/js/worker/proxies/CapturedLabelProxy.js +1 -1
- package/build/js/worker/proxies/CustomBarcodeProxy.d.ts +1 -1
- package/build/js/worker/proxies/CustomBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/CustomTextProxy.d.ts +1 -1
- package/build/js/worker/proxies/CustomTextProxy.js +1 -1
- package/build/js/worker/proxies/DateTextProxy.d.ts +1 -1
- package/build/js/worker/proxies/DateTextProxy.js +1 -1
- package/build/js/worker/proxies/ExpiryDateTextProxy.d.ts +1 -1
- package/build/js/worker/proxies/ExpiryDateTextProxy.js +1 -1
- package/build/js/worker/proxies/ImeiOneBarcodeProxy.d.ts +1 -1
- package/build/js/worker/proxies/ImeiOneBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/ImeiTwoBarcodeProxy.d.ts +1 -1
- package/build/js/worker/proxies/ImeiTwoBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelCaptureAdvancedOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureHelperProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelCaptureHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelCaptureOverlayHelperProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelCaptureProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSessionProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelCaptureSessionProxy.js +1 -1
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.js +1 -1
- package/build/js/worker/proxies/LabelDefinitionProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldDefinitionProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelFieldDefinitionProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldLocationProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelFieldLocationProxy.js +1 -1
- package/build/js/worker/proxies/LabelFieldProxy.d.ts +1 -1
- package/build/js/worker/proxies/LabelFieldProxy.js +1 -1
- package/build/js/worker/proxies/NativeProxy.d.ts +1 -1
- package/build/js/worker/proxies/NativeProxy.js +1 -1
- package/build/js/worker/proxies/NoViewfinderProxy.d.ts +1 -1
- package/build/js/worker/proxies/NoViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/PackingDateTextProxy.d.ts +1 -1
- package/build/js/worker/proxies/PackingDateTextProxy.js +1 -1
- package/build/js/worker/proxies/PartNumberBarcodeProxy.d.ts +1 -1
- package/build/js/worker/proxies/PartNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/ReceiptScanningHandlerProxy.d.ts +1 -1
- package/build/js/worker/proxies/ReceiptScanningOverlayProxy.d.ts +1 -1
- package/build/js/worker/proxies/ReceiptScanningOverlayProxy.js +1 -1
- package/build/js/worker/proxies/ReceiptScanningSettingsProxy.d.ts +1 -1
- package/build/js/worker/proxies/ReceiptScanningSettingsProxy.js +1 -1
- package/build/js/worker/proxies/RectangularViewfinderAnimationProxy.d.ts +1 -1
- package/build/js/worker/proxies/RectangularViewfinderAnimationProxy.js +1 -1
- package/build/js/worker/proxies/RectangularViewfinderProxy.d.ts +1 -1
- package/build/js/worker/proxies/RectangularViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/SerialNumberBarcodeProxy.d.ts +1 -1
- package/build/js/worker/proxies/SerialNumberBarcodeProxy.js +1 -1
- package/build/js/worker/proxies/TotalPriceTextProxy.d.ts +1 -1
- package/build/js/worker/proxies/TotalPriceTextProxy.js +1 -1
- package/build/js/worker/proxies/UnitPriceTextProxy.d.ts +1 -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 +3 -5
- package/build/js/worker/proxies/ValidationFlowOverlayProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowSettingsProxy.d.ts +13 -1
- package/build/js/worker/proxies/ValidationFlowSettingsProxy.js +1 -1
- package/build/js/worker/proxies/WeightTextProxy.d.ts +1 -1
- package/build/js/worker/proxies/WeightTextProxy.js +1 -1
- package/build/js/worker/proxies/base/BarcodeFieldProxyBase.d.ts +1 -1
- package/build/js/worker/proxies/base/BarcodeFieldProxyBase.js +1 -1
- package/build/js/worker/proxies/base/LabelFieldDefinitionBaseProxy.d.ts +1 -1
- package/build/js/worker/proxies/base/LabelFieldDefinitionBaseProxy.js +1 -1
- package/build/js/worker/proxies/base/index.d.ts +1 -1
- package/build/js/worker/proxies/base/index.js +1 -1
- package/package.json +3 -3
- package/sdc-lib/resources/models/barcode_keypoints_oned.ef764d7717ba.model +0 -0
- package/sdc-lib/resources/models/ocr_barcode_semantics_default.b60d72805695.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-2BXP3X3H.js +0 -1
- package/build/js/chunks/chunk-6QWXDVDE.js +0 -1
- package/build/js/chunks/chunk-7W7VDXJD.js +0 -1
- package/build/js/chunks/chunk-7YYY7VA3.js +0 -1
- package/build/js/chunks/chunk-CWOXTL6A.js +0 -1
- package/build/js/chunks/chunk-FLGWGEP3.js +0 -1
- package/build/js/chunks/chunk-JOID6HRH.js +0 -2
- package/build/js/chunks/chunk-LUJD6U2A.js +0 -1
- package/build/js/chunks/chunk-PS75BP7X.js +0 -1
- package/build/js/chunks/chunk-RTUZ7UNX.js +0 -1
- package/build/js/chunks/chunk-SUEFKTEN.js +0 -1
- package/build/js/chunks/chunk-VSH23DF3.js +0 -1
- package/build/js/chunks/chunk-WR7V5D4H.js +0 -1
- package/build/js/chunks/chunk-XW4HFTSX.js +0 -1
- package/build/js/chunks/chunk-ZF2JCWBF.js +0 -1
- package/build/js/ui/atoms/InputManuallyButton.d.ts +0 -19
- package/build/js/ui/atoms/InputManuallyButton.js +0 -1
- package/build/js/ui/atoms/RoundedButton.d.ts +0 -29
- package/build/js/ui/atoms/RoundedButton.js +0 -1
- package/build/js/ui/atoms/TextInputCardLayout.d.ts +0 -16
- package/build/js/ui/atoms/TextInputCardLayout.js +0 -1
- package/build/js/ui/molecules/CardListContainer.d.ts +0 -46
- package/build/js/ui/molecules/CardListContainer.js +0 -1
- package/build/js/ui/molecules/CardListRestartBackButton.d.ts +0 -27
- package/build/js/ui/molecules/CardListRestartBackButton.js +0 -1
- package/build/js/ui/organisms/AdaptiveRecognitionOverlay.js +0 -1
- package/sdc-lib/resources/models/barcode_keypoints_oned.43a682cdf24a.model +0 -0
- package/sdc-lib/resources/models/ocr_barcode_semantics_default.afe40f85a32d.model +0 -0
- /package/build/js/chunks/{chunk-IUFE5KAN.js → chunk-CHBH6UKJ.js} +0 -0
- /package/build/js/ui/{organisms → atoms}/AdaptiveRecognitionOverlay.d.ts +0 -0
|
@@ -23,8 +23,17 @@ interface ImageBuffer {
|
|
|
23
23
|
toBitmap(): Uint8Array;
|
|
24
24
|
getBitmapRepresentationFromYUV(imageCrop: Rect): Uint8Array;
|
|
25
25
|
}
|
|
26
|
+
declare enum BitmapByteOrder {
|
|
27
|
+
RGBA = 0,
|
|
28
|
+
BGRA = 1
|
|
29
|
+
}
|
|
30
|
+
interface BitmapWithFormat {
|
|
31
|
+
data: Uint8Array;
|
|
32
|
+
byteOrder: BitmapByteOrder;
|
|
33
|
+
}
|
|
26
34
|
interface ImageConverterInstance {
|
|
27
35
|
convertToJpeg(imageBuffer: ImageBuffer, orientation: number): Promise<Uint8Array>;
|
|
36
|
+
convertToBitmap(imageBuffer: ImageBuffer): BitmapWithFormat;
|
|
28
37
|
}
|
|
29
38
|
interface ImageConverter {
|
|
30
39
|
}
|
|
@@ -37,4 +46,4 @@ interface SdcCoreInternalSdkCommonGeometry_statics {
|
|
|
37
46
|
ImageConverter: ImageConverter_statics;
|
|
38
47
|
}
|
|
39
48
|
|
|
40
|
-
export type
|
|
49
|
+
export { BitmapByteOrder, type BitmapWithFormat, type ImageBuffer, type ImageConverter, type ImageConverterInstance, type ImageConverter_statics, type SdcCoreInternalSdkCommonGeometry_statics, type SizeWithUnitAndAspect, type SizeWithUnitAndAspect_statics };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var t=(e=>(e[e.RGBA=0]="RGBA",e[e.BGRA=1]="BGRA",e))(t||{});export{t as BitmapByteOrder};
|
|
@@ -398,21 +398,23 @@ declare enum ValidationFlowState {
|
|
|
398
398
|
interface ValidationFlowField {
|
|
399
399
|
getLabelField(): LabelField;
|
|
400
400
|
isValid(): boolean;
|
|
401
|
+
isProcessingInCloud(): boolean;
|
|
401
402
|
}
|
|
402
403
|
interface ValidationFlowListener {
|
|
403
404
|
onFieldsScanned(fields: Array<ValidationFlowField>): void;
|
|
404
405
|
onScanTimeout(): void;
|
|
405
406
|
onLabelIsMissingRequiredField(fields: Array<ValidationFlowField>): void;
|
|
407
|
+
onManualInput(field: ValidationFlowField, oldValue: string | undefined, newValue: string): void;
|
|
406
408
|
onStateChanged(state: ValidationFlowState): void;
|
|
407
|
-
|
|
408
|
-
|
|
409
|
+
onCloudBackupServiceStarted(): void;
|
|
410
|
+
onCloudBackupServiceStopped(): void;
|
|
409
411
|
}
|
|
410
412
|
interface ValidationFlowHandler {
|
|
411
413
|
startCompleteLabelScan(labelName: string): void;
|
|
412
414
|
startPartialLabelScan(fieldNames: Array<string>): void;
|
|
413
|
-
leavePartialLabelScan(): void;
|
|
414
415
|
updateFieldValue(fieldName: string, value: string): boolean;
|
|
415
416
|
finishFlow(): ResultOrError<Array<ValidationFlowField>, string>;
|
|
417
|
+
clearAllFields(): void;
|
|
416
418
|
validationFlowFields(): Array<ValidationFlowField>;
|
|
417
419
|
pauseScan(): void;
|
|
418
420
|
resumeScan(): void;
|
|
@@ -87,14 +87,24 @@ interface ValidationFlowSettings {
|
|
|
87
87
|
getRequiredFieldErrorText(): string;
|
|
88
88
|
setManualInputButtonText(text: string): void;
|
|
89
89
|
getManualInputButtonText(): string;
|
|
90
|
+
setValidationFinishButtonText(text: string): void;
|
|
91
|
+
getValidationFinishButtonText(): string;
|
|
92
|
+
setValidationRestartButtonText(text: string): void;
|
|
93
|
+
getValidationRestartButtonText(): string;
|
|
94
|
+
setValidationPauseButtonText(text: string): void;
|
|
95
|
+
getValidationPauseButtonText(): string;
|
|
96
|
+
setValidationAdaptiveScanningText(text: string): void;
|
|
97
|
+
getValidationAdaptiveScanningText(): string;
|
|
98
|
+
setValidationScanningText(text: string): void;
|
|
99
|
+
getValidationScanningText(): string;
|
|
100
|
+
setPlaceholderTextForLabelDefinition(fieldName: string, placeholder: string | undefined): void;
|
|
101
|
+
getPlaceholderTextForLabelDefinition(fieldName: string): string | undefined;
|
|
90
102
|
}
|
|
91
103
|
interface ValidationFlowSettings_statics {
|
|
92
104
|
create(): ValidationFlowSettings;
|
|
93
105
|
}
|
|
94
106
|
interface ValidationFlowOverlay {
|
|
95
107
|
applySettings(settings: ValidationFlowSettings): void;
|
|
96
|
-
getLabelViewfinder(): Viewfinder;
|
|
97
|
-
getTargetViewfinder(): Viewfinder;
|
|
98
108
|
}
|
|
99
109
|
interface ValidationFlowOverlay_statics {
|
|
100
110
|
create(mode: LabelCapture): ValidationFlowOverlay;
|
package/build/js/index.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export { ImeiOneBarcodeBuilder } from './api/ImeiOneBarcodeBuilder.js';
|
|
|
14
14
|
export { ImeiTwoBarcode } from './api/ImeiTwoBarcode.js';
|
|
15
15
|
export { ImeiTwoBarcodeBuilder } from './api/ImeiTwoBarcodeBuilder.js';
|
|
16
16
|
export { L as LabelCapture, a as LabelCaptureListener } from './LabelCapture-DGLkCHVN.js';
|
|
17
|
-
export { L as LabelCaptureBasicOverlay, a as LabelCaptureBasicOverlayListener } from './LabelCaptureBasicOverlay-
|
|
17
|
+
export { L as LabelCaptureBasicOverlay, a as LabelCaptureBasicOverlayListener } from './LabelCaptureBasicOverlay-C6TRvWxE.js';
|
|
18
18
|
export { LabelCaptureFeedback, LabelCaptureFeedbackJSON } from './api/LabelCaptureFeedback.js';
|
|
19
19
|
export { LabelCaptureSession, LabelCaptureSessionJSON } from './api/LabelCaptureSession.js';
|
|
20
20
|
export { LabelCaptureSettings, LabelCaptureSettingsBuilder } from './api/LabelCaptureSettings.js';
|
|
@@ -42,12 +42,12 @@ export { UnitPriceText } from './api/UnitPriceText.js';
|
|
|
42
42
|
export { UnitPriceTextBuilder } from './api/UnitPriceTextBuilder.js';
|
|
43
43
|
export { WeightText } from './api/WeightText.js';
|
|
44
44
|
export { WeightTextBuilder } from './api/WeightTextBuilder.js';
|
|
45
|
-
export { L as LabelCaptureAdvancedOverlay, a as LabelCaptureAdvancedOverlayListener } from './LabelCaptureAdvancedOverlay-
|
|
45
|
+
export { L as LabelCaptureAdvancedOverlay, a as LabelCaptureAdvancedOverlayListener } from './LabelCaptureAdvancedOverlay-Gh80a5hZ.js';
|
|
46
46
|
export { labelCaptureLoader } from './moduleLoader.js';
|
|
47
47
|
export { LabelCaptureValidationFlowListener, LabelCaptureValidationFlowOverlay, LabelCaptureValidationFlowOverlayJSON } from './api/LabelCaptureValidationFlowOverlay.js';
|
|
48
48
|
export { LabelCaptureValidationFlowSettings } from './api/LabelCaptureValidationFlowSettings.js';
|
|
49
49
|
export { ReceiptScanningLineItem, ReceiptScanningLineItemJSON } from './api/ReceiptScanningLineItem.js';
|
|
50
|
-
export { b as AdaptiveRecognitionResult, A as AdaptiveRecognitionResultType, L as LabelCaptureAdaptiveRecognitionSettings, a as ReceiptScanningResult, R as ReceiptScanningResultJSON, c as ReceiptScanningSettingsJSON } from './NativeProxy-
|
|
50
|
+
export { b as AdaptiveRecognitionResult, A as AdaptiveRecognitionResultType, L as LabelCaptureAdaptiveRecognitionSettings, a as ReceiptScanningResult, R as ReceiptScanningResultJSON, c as ReceiptScanningSettingsJSON } from './NativeProxy-DreJVzqM.js';
|
|
51
51
|
export { LabelCaptureAdaptiveRecognitionListener, LabelCaptureAdaptiveRecognitionOverlay, LabelCaptureAdaptiveRecognitionOverlayJSON } from './api/LabelCaptureAdaptiveRecognitionOverlay.js';
|
|
52
52
|
import '@scandit/web-datacapture-barcode';
|
|
53
53
|
import '@scandit/web-datacapture-core';
|
package/build/js/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{a as WeightTextBuilder}from'./chunks/chunk-YH6BNOYC.js';export{a as WeightText}from'./chunks/chunk-N4GW7RGB.js';export{a as SerialNumberBarcodeBuilder}from'./chunks/chunk-5CNHCL7M.js';export{a as SerialNumberBarcode}from'./chunks/chunk-UDGNT475.js';export{a as TotalPriceTextBuilder}from'./chunks/chunk-NAWWKVI5.js';export{a as TotalPriceText}from'./chunks/chunk-JF7J7XP2.js';export{a as UnitPriceTextBuilder}from'./chunks/chunk-PBTK3XKJ.js';export{a as UnitPriceText}from'./chunks/chunk-VDVJDXZY.js';export{a as PackingDateTextBuilder}from'./chunks/chunk-CP4Y6VIT.js';export{a as PartNumberBarcodeBuilder}from'./chunks/chunk-RMO2SLDR.js';export{a as PartNumberBarcode}from'./chunks/chunk-7M5DXL6F.js';export{a as LabelFieldLocation}from'./chunks/chunk-BGVFXDGB.js';export{a as PackingDateText}from'./chunks/chunk-4IN2HVLU.js';export{a as LabelCaptureValidationFlowOverlay}from'./chunks/chunk-X6DRW2HT.js';export{a as LabelCaptureValidationFlowSettings}from'./chunks/chunk-CS7EEHHH.js';export{a as LabelDefinition,b as LabelDefinitionBuilder}from'./chunks/chunk-XKSRWFDE.js';export{a as LabelCaptureBasicOverlay}from'./chunks/chunk-XQBJ3GXA.js';export{a as LabelCaptureSettings,b as LabelCaptureSettingsBuilder}from'./chunks/chunk-QRSFFB7W.js';export{a as ImeiOneBarcodeBuilder}from'./chunks/chunk-THXK2CAH.js';export{a as ImeiOneBarcode}from'./chunks/chunk-OHZCXBA4.js';export{a as ImeiTwoBarcodeBuilder}from'./chunks/chunk-ZMEFT4CJ.js';export{a as ImeiTwoBarcode}from'./chunks/chunk-S7PTN3KC.js';export{a as LabelCapture}from'./chunks/chunk-NF5D6YGW.js';export{a as ReceiptScanningResult}from'./chunks/chunk-CUHE565K.js';export{a as ReceiptScanningLineItem}from'./chunks/chunk-D6QEVE6U.js';export{a as LabelCaptureFeedback}from'./chunks/chunk-XETUH5HN.js';export{a as LabelCaptureAdaptiveRecognitionOverlay}from'./chunks/chunk-A537ABTE.js';export{a as LabelCaptureAdvancedOverlay}from'./chunks/chunk-5JGE6TIK.js';export{a as LabelCaptureSession}from'./chunks/chunk-2K4IDUBI.js';export{a as CustomBarcodeBuilder}from'./chunks/chunk-T5PFYQ2F.js';export{a as CustomBarcode}from'./chunks/chunk-N2Q2DERV.js';export{a as CustomTextBuilder}from'./chunks/chunk-DV4WMUFU.js';export{a as CustomText}from'./chunks/chunk-K5Y26N6X.js';export{a as DateTextBuilder}from'./chunks/chunk-ZVURFK6X.js';export{a as LabelDateComponentFormat}from'./chunks/chunk-BJSBS5IL.js';export{a as LabelDateFormat}from'./chunks/chunk-BJFWGOUS.js';export{a as DateText}from'./chunks/chunk-DHFJ3EFE.js';export{a as ExpiryDateTextBuilder}from'./chunks/chunk-U77DVACF.js';export{a as TextFieldBuilder}from'./chunks/chunk-AVKEMR5W.js';export{a as ExpiryDateText}from'./chunks/chunk-SQEDHQIB.js';export{a as labelCaptureLoader}from'./chunks/chunk-SQXVN7WR.js';export{a as AdaptiveRecognitionMode}from'./chunks/chunk-N7HKYUQ6.js';export{a as AdaptiveRecognitionResult}from'./chunks/chunk-DDYADIOR.js';export{a as AdaptiveRecognitionResultType,b as LabelCaptureAdaptiveRecognitionSettings}from'./chunks/chunk-N2RCJCCU.js';export{a as LabelFieldDefinitionBuilder}from'./chunks/chunk-W4ZKJPWB.js';export{a as CapturedLabel}from'./chunks/chunk-36FUBGEZ.js';export{a as LabelField}from'./chunks/chunk-MQ3C6JQR.js';export{a as LabelFieldState}from'./chunks/chunk-COOCFN2K.js';export{a as LabelFieldType}from'./chunks/chunk-ZU6C4VWO.js';export{a as LabelDateResult}from'./chunks/chunk-D5PIEZCN.js';
|
package/build/js/moduleLoader.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as labelCaptureLoader}from'./chunks/chunk-
|
|
1
|
+
export{a as labelCaptureLoader}from'./chunks/chunk-SQXVN7WR.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { nativeHandle } from '@scandit/web-datacapture-core/build/js/private/nativeHandle.js';
|
|
2
2
|
import { LabelFieldDefinition } from '../api/LabelFieldDefinition.js';
|
|
3
|
-
import { N as NativeProxyHandle } from '../NativeProxy-
|
|
3
|
+
import { N as NativeProxyHandle } from '../NativeProxy-DreJVzqM.js';
|
|
4
4
|
import '@scandit/web-datacapture-barcode';
|
|
5
5
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
6
6
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AimerViewfinder, RectangularViewfinder } from '@scandit/web-datacapture-core';
|
|
2
|
-
import { L as LabelCaptureBasicOverlay } from '../LabelCaptureBasicOverlay-
|
|
2
|
+
import { L as LabelCaptureBasicOverlay } from '../LabelCaptureBasicOverlay-C6TRvWxE.js';
|
|
3
3
|
import { LabelCaptureWorkerManager } from '../worker/LabelCaptureWorkerManager.js';
|
|
4
4
|
import '../djinni-types/sdcLabelData.js';
|
|
5
5
|
import '@scandit/web-datacapture-core/build/js/private/Serializable';
|
|
@@ -11,7 +11,7 @@ import '../api/LabelFieldState.js';
|
|
|
11
11
|
import '../api/LabelFieldType.js';
|
|
12
12
|
import '../api/LabelFieldValueType.js';
|
|
13
13
|
import '../api/LabelDateResult.js';
|
|
14
|
-
import '../NativeProxy-
|
|
14
|
+
import '../NativeProxy-DreJVzqM.js';
|
|
15
15
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
16
16
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|
|
17
17
|
import '../djinni-types/sdcBarcodeData.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{Y as nativeViewfinderFromJSON}from'../chunks/chunk-
|
|
1
|
+
export{Y as nativeViewfinderFromJSON}from'../chunks/chunk-PLBJGJHF.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as AdaptiveRecognitionOverlay}from'../../chunks/chunk-CHBH6UKJ.js';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { GestureRecognizerListener } from '@scandit/web-datacapture-core/build/js/private/GestureRecognizer/GestureRecognizer.js';
|
|
2
|
+
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
3
|
+
|
|
4
|
+
type ButtonVariant = "primary" | "secondary" | "ghost";
|
|
5
|
+
type ButtonSize = "default" | "small";
|
|
6
|
+
type ButtonKind = "action" | "destructive";
|
|
7
|
+
type ButtonType = HTMLButtonElement["type"];
|
|
8
|
+
declare class Button extends ScanditHTMLElement implements GestureRecognizerListener {
|
|
9
|
+
static tag: "scandit-button";
|
|
10
|
+
static formAssociated: boolean;
|
|
11
|
+
private _internals;
|
|
12
|
+
private _variant;
|
|
13
|
+
private _size;
|
|
14
|
+
private _kind;
|
|
15
|
+
private _disabled;
|
|
16
|
+
private _type;
|
|
17
|
+
private iconStartSlot;
|
|
18
|
+
private iconEndSlot;
|
|
19
|
+
private onIconSlotChangeListener;
|
|
20
|
+
private gestureRecognizer;
|
|
21
|
+
private associatedForm;
|
|
22
|
+
constructor();
|
|
23
|
+
connectedCallback(): void;
|
|
24
|
+
disconnectedCallback(): void;
|
|
25
|
+
/**
|
|
26
|
+
* Called when the element is associated or disassociated with a form.
|
|
27
|
+
* @param _form - The form element or null if disassociated
|
|
28
|
+
*/
|
|
29
|
+
formAssociatedCallback(_form: HTMLFormElement | null): void;
|
|
30
|
+
/**
|
|
31
|
+
* Called when the disabled state of the form changes.
|
|
32
|
+
* @param disabled - Whether the form is now disabled
|
|
33
|
+
*/
|
|
34
|
+
formDisabledCallback(disabled: boolean): void;
|
|
35
|
+
onPress(): void;
|
|
36
|
+
onRelease(): void;
|
|
37
|
+
private onIconSlotChange;
|
|
38
|
+
private updateIconColors;
|
|
39
|
+
private isScanditIcon;
|
|
40
|
+
get variant(): ButtonVariant;
|
|
41
|
+
set variant(value: ButtonVariant);
|
|
42
|
+
get size(): ButtonSize;
|
|
43
|
+
set size(value: ButtonSize);
|
|
44
|
+
get kind(): ButtonKind;
|
|
45
|
+
set kind(value: ButtonKind);
|
|
46
|
+
get disabled(): boolean;
|
|
47
|
+
set disabled(value: boolean);
|
|
48
|
+
get type(): ButtonType;
|
|
49
|
+
set type(value: ButtonType);
|
|
50
|
+
private updateAttributes;
|
|
51
|
+
private updateButtonState;
|
|
52
|
+
static get observedAttributes(): string[];
|
|
53
|
+
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
54
|
+
set text(text: string);
|
|
55
|
+
get text(): string;
|
|
56
|
+
set textContent(text: string | null);
|
|
57
|
+
get textContent(): string;
|
|
58
|
+
static create(): Button;
|
|
59
|
+
static register(): void;
|
|
60
|
+
private static createStyleElement;
|
|
61
|
+
}
|
|
62
|
+
declare global {
|
|
63
|
+
interface HTMLElementTagNameMap {
|
|
64
|
+
[Button.tag]: Button;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export { Button, type ButtonKind, type ButtonSize, type ButtonType, type ButtonVariant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{a as Button}from'../../chunks/chunk-X2BMTDWA.js';
|
|
@@ -1,34 +1,77 @@
|
|
|
1
|
+
import { Color } from '@scandit/web-datacapture-core/build/js/commons/Color.js';
|
|
1
2
|
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
3
|
|
|
3
|
-
type TextInputType = "text" | "
|
|
4
|
+
type TextInputType = "text" | "number";
|
|
5
|
+
declare enum TextInputEvent {
|
|
6
|
+
Input = "scandit-text-input-input",
|
|
7
|
+
Focus = "scandit-text-input-focus",
|
|
8
|
+
Blur = "scandit-text-input-blur",
|
|
9
|
+
Clear = "scandit-text-input-clear",
|
|
10
|
+
Scan = "scandit-text-input-scan"
|
|
11
|
+
}
|
|
12
|
+
interface TextInputEventTypeDetail {
|
|
13
|
+
target: TextInput;
|
|
14
|
+
innerInput: HTMLInputElement;
|
|
15
|
+
value: string;
|
|
16
|
+
}
|
|
17
|
+
interface TextInputEventDetail {
|
|
18
|
+
target: TextInput;
|
|
19
|
+
innerInput: HTMLInputElement;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
22
|
+
interface VirtualKeyboard extends EventTarget {
|
|
23
|
+
overlaysContent: boolean;
|
|
24
|
+
boundingRect: DOMRect;
|
|
25
|
+
show(): void;
|
|
26
|
+
hide(): void;
|
|
27
|
+
addEventListener(type: "geometrychange", listener: (event: Event) => void): void;
|
|
28
|
+
}
|
|
29
|
+
type NavigatorWithVirtualKeyboard = Navigator & {
|
|
30
|
+
virtualKeyboard: VirtualKeyboard;
|
|
31
|
+
};
|
|
4
32
|
declare class TextInput extends ScanditHTMLElement {
|
|
5
33
|
static tag: "scandit-text-input";
|
|
34
|
+
static formAssociated: boolean;
|
|
35
|
+
private _internals;
|
|
6
36
|
private _inputElement;
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
private
|
|
37
|
+
private _labelElement;
|
|
38
|
+
private _mainWrapper;
|
|
39
|
+
private _inputContainer;
|
|
10
40
|
private _iconContainerElement;
|
|
41
|
+
private _hintMessageElement;
|
|
11
42
|
private _type;
|
|
12
43
|
private _value;
|
|
13
44
|
private _label;
|
|
14
|
-
private
|
|
15
|
-
private _currencyCode;
|
|
45
|
+
private _placeholder;
|
|
16
46
|
private _required;
|
|
17
|
-
private
|
|
18
|
-
private _beforeLoadingState;
|
|
47
|
+
private _isInitialized;
|
|
19
48
|
private _handleChange;
|
|
20
49
|
private _handleInput;
|
|
21
50
|
private _handleFocus;
|
|
22
51
|
private _handleBlur;
|
|
23
|
-
private
|
|
24
|
-
private
|
|
25
|
-
private
|
|
52
|
+
private _handleCrossIconPointerDown;
|
|
53
|
+
private _handleCrossIconPointerUp;
|
|
54
|
+
private _handleCrossIconKeyDown;
|
|
55
|
+
private _handleScanIconPointerDown;
|
|
56
|
+
private _handleScanIconPointerUp;
|
|
57
|
+
private _handleScanIconKeyDown;
|
|
26
58
|
private _crossIcon;
|
|
27
|
-
private
|
|
28
|
-
private _intlFormatter;
|
|
29
|
-
private _keyboardIcon;
|
|
59
|
+
private _scanIcon;
|
|
30
60
|
private _showKeyboardTimeout;
|
|
61
|
+
private _hintMessage;
|
|
62
|
+
private _loadingText;
|
|
63
|
+
private _useVirtualKeyboardAPI;
|
|
64
|
+
private _virtualKeyboard;
|
|
65
|
+
private _viewportMetaTag;
|
|
66
|
+
private _originalViewportContent;
|
|
67
|
+
private static createStyleElement;
|
|
31
68
|
constructor();
|
|
69
|
+
get hintMessage(): string;
|
|
70
|
+
set hintMessage(val: string);
|
|
71
|
+
get loading(): boolean;
|
|
72
|
+
set loading(val: boolean);
|
|
73
|
+
get loadingText(): string;
|
|
74
|
+
set loadingText(val: string);
|
|
32
75
|
get value(): string;
|
|
33
76
|
set value(val: string);
|
|
34
77
|
get name(): string;
|
|
@@ -37,21 +80,76 @@ declare class TextInput extends ScanditHTMLElement {
|
|
|
37
80
|
set type(val: TextInputType);
|
|
38
81
|
get label(): string;
|
|
39
82
|
set label(val: string);
|
|
40
|
-
get
|
|
41
|
-
set
|
|
42
|
-
get currencyCode(): string;
|
|
43
|
-
set currencyCode(val: string);
|
|
83
|
+
get placeholder(): string;
|
|
84
|
+
set placeholder(val: string);
|
|
44
85
|
get required(): boolean;
|
|
45
86
|
set required(val: boolean);
|
|
46
87
|
get invalid(): boolean;
|
|
47
88
|
set invalid(val: boolean);
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
set
|
|
51
|
-
get
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
89
|
+
set readOnly(val: boolean);
|
|
90
|
+
get readOnly(): boolean;
|
|
91
|
+
set disabled(val: boolean);
|
|
92
|
+
get disabled(): boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Enable or disable VirtualKeyboard API support for programmatic keyboard control.
|
|
95
|
+
* When enabled, the keyboard will be controlled via the VirtualKeyboard API if available.
|
|
96
|
+
* When disabled (default), standard browser keyboard behavior is used.
|
|
97
|
+
*/
|
|
98
|
+
set useVirtualKeyboardAPI(val: boolean);
|
|
99
|
+
get useVirtualKeyboardAPI(): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Hide or show the scan icon.
|
|
102
|
+
* When hidden, the icon will fade out and become non-interactive.
|
|
103
|
+
*/
|
|
104
|
+
set hideScanIcon(val: boolean);
|
|
105
|
+
get hideScanIcon(): boolean;
|
|
106
|
+
/**
|
|
107
|
+
* Override the background color of the input container.
|
|
108
|
+
* the TextInput component in the design system does not have
|
|
109
|
+
* the state will be used in the Validation flow v2
|
|
110
|
+
*/
|
|
111
|
+
set backgroundColor(val: Color | string);
|
|
112
|
+
/**
|
|
113
|
+
* Check the native HTML5 validity state without updating component state.
|
|
114
|
+
* Use setValidationState() to update the visual state.
|
|
115
|
+
*
|
|
116
|
+
* @returns true if the input is valid, false otherwise
|
|
117
|
+
*/
|
|
118
|
+
checkValidity(): boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Report validity through the form internals API.
|
|
121
|
+
* Shows the browser's validation UI and returns the validity state.
|
|
122
|
+
*
|
|
123
|
+
* @returns true if the input is valid, false otherwise
|
|
124
|
+
*/
|
|
125
|
+
reportValidity(): boolean;
|
|
126
|
+
/**
|
|
127
|
+
* Set the validation state and optionally display an error message.
|
|
128
|
+
* Consumers should call this after validating the input value.
|
|
129
|
+
*
|
|
130
|
+
* @param isValid - true if valid, false if invalid
|
|
131
|
+
* @param hintMessage - optional error message to display when invalid
|
|
132
|
+
*/
|
|
133
|
+
setValidationState(isValid: boolean, hintMessage?: string): void;
|
|
134
|
+
/**
|
|
135
|
+
* Reset the validation state to initial (not validation-triggered).
|
|
136
|
+
* Clears invalid state, error message, and validation-triggered class.
|
|
137
|
+
*/
|
|
138
|
+
resetValidation(): void;
|
|
139
|
+
/**
|
|
140
|
+
* Set custom validity message and sync with form internals.
|
|
141
|
+
* This allows custom validation messages to be set.
|
|
142
|
+
* @param message - The validation message (empty string = valid)
|
|
143
|
+
*/
|
|
144
|
+
setCustomValidity(message: string): void;
|
|
145
|
+
/**
|
|
146
|
+
* Unified internal method to set validity state across all systems.
|
|
147
|
+
* Handles visual state (invalid attribute), ARIA attributes, form internals, and messages.
|
|
148
|
+
*
|
|
149
|
+
* @param flags - ValidityStateFlags for form internals (pass empty object for valid)
|
|
150
|
+
* @param message - Error message to display (empty = clear message)
|
|
151
|
+
*/
|
|
152
|
+
private _setValidityState;
|
|
55
153
|
private _onInput;
|
|
56
154
|
private _onChange;
|
|
57
155
|
private _onFocus;
|
|
@@ -59,61 +157,66 @@ declare class TextInput extends ScanditHTMLElement {
|
|
|
59
157
|
focus(options?: FocusOptions): void;
|
|
60
158
|
/**
|
|
61
159
|
* Show the keyboard and focus on the input element after a delay.
|
|
62
|
-
*
|
|
63
|
-
*
|
|
64
|
-
* @param
|
|
160
|
+
* Uses VirtualKeyboard API if enabled, otherwise falls back to a workaround
|
|
161
|
+
* for mobile devices.
|
|
162
|
+
* @param scrollTimeout - The timeout to scroll into view after focusing
|
|
163
|
+
* @returns A promise that resolves when the keyboard is shown
|
|
65
164
|
*/
|
|
66
|
-
showKeyboard(
|
|
165
|
+
showKeyboard({ scrollTimeout }?: {
|
|
166
|
+
scrollTimeout?: number;
|
|
167
|
+
}): Promise<void>;
|
|
67
168
|
hideKeyboard(): void;
|
|
68
169
|
select(): void;
|
|
69
170
|
blur(): void;
|
|
70
171
|
scrollIntoView(options?: ScrollIntoViewOptions): void;
|
|
172
|
+
private _disableViewportZoom;
|
|
173
|
+
private _restoreViewportZoom;
|
|
174
|
+
private _initializeIcons;
|
|
175
|
+
private _updateCrossIconTabIndex;
|
|
176
|
+
private _updateInputDisplay;
|
|
71
177
|
connectedCallback(): void;
|
|
178
|
+
private _initializeAttributesFromElement;
|
|
179
|
+
private _setupVirtualKeyboardAPI;
|
|
72
180
|
disconnectedCallback(): void;
|
|
73
|
-
|
|
181
|
+
/**
|
|
182
|
+
* Called when the element is associated or disassociated with a form.
|
|
183
|
+
* @param _form - The form element or null if disassociated
|
|
184
|
+
*/
|
|
185
|
+
formAssociatedCallback(_form: HTMLFormElement | null): void;
|
|
186
|
+
/**
|
|
187
|
+
* Called when the disabled state of the form changes.
|
|
188
|
+
* @param disabled - Whether the form is now disabled
|
|
189
|
+
*/
|
|
190
|
+
formDisabledCallback(disabled: boolean): void;
|
|
191
|
+
/**
|
|
192
|
+
* Called when the form is reset.
|
|
193
|
+
* Resets the input to its initial value and clears validation state.
|
|
194
|
+
*/
|
|
195
|
+
formResetCallback(): void;
|
|
196
|
+
private _addEventListeners;
|
|
74
197
|
private _removeEventListeners;
|
|
75
|
-
private
|
|
76
|
-
private
|
|
77
|
-
private
|
|
78
|
-
private
|
|
198
|
+
private _onCrossIconPointerDown;
|
|
199
|
+
private _onCrossIconPointerUp;
|
|
200
|
+
private _onCrossIconKeyDown;
|
|
201
|
+
private _onScanIconPointerDown;
|
|
202
|
+
private _onScanIconPointerUp;
|
|
203
|
+
private _triggerClear;
|
|
204
|
+
private _onScanIconKeyDown;
|
|
205
|
+
private _triggerScan;
|
|
79
206
|
static create(): TextInput;
|
|
80
207
|
static register(): void;
|
|
81
|
-
private static createStyleElement;
|
|
82
208
|
}
|
|
83
209
|
declare global {
|
|
84
210
|
interface HTMLElementTagNameMap {
|
|
85
211
|
[TextInput.tag]: TextInput;
|
|
86
212
|
}
|
|
87
213
|
interface HTMLElementEventMap {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
target: TextInput;
|
|
94
|
-
innerInput: HTMLInputElement;
|
|
95
|
-
}>;
|
|
96
|
-
"text-input-keyboard-icon-click": CustomEvent<{
|
|
97
|
-
target: TextInput;
|
|
98
|
-
innerInput: HTMLInputElement;
|
|
99
|
-
}>;
|
|
100
|
-
"text-input-focus": CustomEvent<{
|
|
101
|
-
target: TextInput;
|
|
102
|
-
innerInput: HTMLInputElement;
|
|
103
|
-
}>;
|
|
104
|
-
"text-input-blur": CustomEvent<{
|
|
105
|
-
target: TextInput;
|
|
106
|
-
innerInput: HTMLInputElement;
|
|
107
|
-
}>;
|
|
108
|
-
"text-input-clear-icon-click": CustomEvent<{
|
|
109
|
-
target: TextInput;
|
|
110
|
-
innerInput: HTMLInputElement;
|
|
111
|
-
}>;
|
|
112
|
-
"text-input-click": CustomEvent<{
|
|
113
|
-
target: TextInput;
|
|
114
|
-
innerInput: HTMLInputElement;
|
|
115
|
-
}>;
|
|
214
|
+
[TextInputEvent.Input]: CustomEvent<TextInputEventDetail>;
|
|
215
|
+
[TextInputEvent.Focus]: CustomEvent<TextInputEventDetail>;
|
|
216
|
+
[TextInputEvent.Blur]: CustomEvent<TextInputEventDetail>;
|
|
217
|
+
[TextInputEvent.Clear]: CustomEvent<TextInputEventDetail>;
|
|
218
|
+
[TextInputEvent.Scan]: CustomEvent<TextInputEventDetail>;
|
|
116
219
|
}
|
|
117
220
|
}
|
|
118
221
|
|
|
119
|
-
export { TextInput, type TextInputType };
|
|
222
|
+
export { type NavigatorWithVirtualKeyboard, TextInput, TextInputEvent, type TextInputEventDetail, type TextInputEventTypeDetail, type TextInputType };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{b as TextInput,a as TextInputEvent}from'../../chunks/chunk-3WFVV6LL.js';
|
|
@@ -1,21 +1,96 @@
|
|
|
1
|
+
import { Backdrop } from '@scandit/web-datacapture-core/build/js/private/ui/atoms/Backdrop.js';
|
|
1
2
|
import { ScanditHTMLElement } from '@scandit/web-datacapture-core/build/js/private/utils/index.js';
|
|
2
|
-
import {
|
|
3
|
-
import '
|
|
3
|
+
import { Button } from '../atoms/Button.js';
|
|
4
|
+
import { TextInput } from '../atoms/TextInput.js';
|
|
5
|
+
import '@scandit/web-datacapture-core/build/js/private/GestureRecognizer/GestureRecognizer.js';
|
|
6
|
+
import '@scandit/web-datacapture-core/build/js/commons/Color.js';
|
|
4
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Custom events emitted by LabelCaptureValidationFlowLayout
|
|
10
|
+
*/
|
|
11
|
+
declare enum LabelCaptureValidationFlowLayoutEvent {
|
|
12
|
+
ClearAllButtonClicked = "scandit-clear-all-button-clicked",
|
|
13
|
+
PauseButtonClicked = "scandit-pause-button-clicked",
|
|
14
|
+
ClickedOutsideList = "scandit-clicked-outside-list",
|
|
15
|
+
ValidationFlowLayoutChange = "scandit-validation-flow-layout-change"
|
|
16
|
+
}
|
|
17
|
+
interface LabelCaptureValidationFlowLayoutEventMap {
|
|
18
|
+
[LabelCaptureValidationFlowLayoutEvent.ClearAllButtonClicked]: CustomEvent<{
|
|
19
|
+
inputs: TextInput[];
|
|
20
|
+
}>;
|
|
21
|
+
[LabelCaptureValidationFlowLayoutEvent.PauseButtonClicked]: CustomEvent<void>;
|
|
22
|
+
[LabelCaptureValidationFlowLayoutEvent.ClickedOutsideList]: CustomEvent<void>;
|
|
23
|
+
[LabelCaptureValidationFlowLayoutEvent.ValidationFlowLayoutChange]: CustomEvent<{
|
|
24
|
+
buttonContainerHeight: number;
|
|
25
|
+
safeAreaInsetBottom: number;
|
|
26
|
+
safeAreaInsetTop: number;
|
|
27
|
+
safeAreaInsetLeft: number;
|
|
28
|
+
safeAreaInsetRight: number;
|
|
29
|
+
}>;
|
|
30
|
+
}
|
|
31
|
+
declare global {
|
|
32
|
+
interface HTMLElementEventMap extends LabelCaptureValidationFlowLayoutEventMap {
|
|
33
|
+
}
|
|
34
|
+
}
|
|
5
35
|
declare class LabelCaptureValidationFlowLayout extends ScanditHTMLElement {
|
|
6
36
|
static tag: "scandit-label-capture-validation-flow-layout";
|
|
7
|
-
private
|
|
37
|
+
private static injectedStyleElement;
|
|
38
|
+
private dataCaptureViewContainer_;
|
|
39
|
+
private dataCaptureViewWrapper_;
|
|
40
|
+
private backdrop_;
|
|
41
|
+
private adaptiveRecognitionOverlay_;
|
|
42
|
+
private clearButton_;
|
|
43
|
+
private submitButton_;
|
|
44
|
+
private pauseButton_;
|
|
45
|
+
private gridLayoutContainer_;
|
|
46
|
+
private buttonsContainer_;
|
|
47
|
+
private orientationObserver_;
|
|
8
48
|
private onOrientationChangeHandler;
|
|
9
|
-
|
|
10
|
-
private
|
|
11
|
-
private
|
|
49
|
+
private onClearButtonClickHandler;
|
|
50
|
+
private onPauseButtonClickHandler;
|
|
51
|
+
private onDataCaptureViewWrapperClickHandler;
|
|
52
|
+
private collapseAnimations;
|
|
53
|
+
private focusedInput;
|
|
54
|
+
private focusedInputOffset;
|
|
55
|
+
private currentAnimationPromise;
|
|
56
|
+
private lastOrientationEvent_;
|
|
57
|
+
private static createStyleElement;
|
|
12
58
|
static create(): LabelCaptureValidationFlowLayout;
|
|
13
59
|
static register(): void;
|
|
14
|
-
|
|
15
|
-
|
|
60
|
+
get dataCaptureViewContainer(): HTMLDivElement | null;
|
|
61
|
+
get backdrop(): Backdrop | null;
|
|
62
|
+
get clearButton(): Button | null;
|
|
63
|
+
get submitButton(): Button | null;
|
|
64
|
+
get pauseButton(): Button | null;
|
|
65
|
+
getInputs(): TextInput[];
|
|
66
|
+
getInputByName(name: string): TextInput | undefined;
|
|
67
|
+
private static injectStyles;
|
|
16
68
|
connectedCallback(): void;
|
|
17
69
|
disconnectedCallback(): void;
|
|
70
|
+
private onClearButtonClick;
|
|
71
|
+
private onPauseButtonClick;
|
|
72
|
+
private onDataCaptureViewWrapperClick;
|
|
73
|
+
private addButtonIcons;
|
|
74
|
+
private setupOrientationObserver;
|
|
18
75
|
private onOrientationChange;
|
|
76
|
+
private showButton;
|
|
77
|
+
private hideButton;
|
|
78
|
+
showValidationButtons(): void;
|
|
79
|
+
showScanningButtons(): void;
|
|
80
|
+
hideAllButtons(): void;
|
|
81
|
+
private get buttonsContainerHeight();
|
|
82
|
+
get finishButtonText(): string;
|
|
83
|
+
set finishButtonText(text: string);
|
|
84
|
+
get restartButtonText(): string;
|
|
85
|
+
set restartButtonText(text: string);
|
|
86
|
+
get pauseButtonText(): string;
|
|
87
|
+
set pauseButtonText(text: string);
|
|
88
|
+
appendInputs(...inputs: TextInput[]): void;
|
|
89
|
+
waitForAnimations(): Promise<void>;
|
|
90
|
+
moveInputToTop(focusedInput: TextInput): Promise<void>;
|
|
91
|
+
restoreInputsPositions(): Promise<void>;
|
|
92
|
+
showAdaptiveRecognitionOverlay(): void;
|
|
93
|
+
hideAdaptiveRecognitionOverlay(): void;
|
|
19
94
|
}
|
|
20
95
|
declare global {
|
|
21
96
|
interface HTMLElementTagNameMap {
|
|
@@ -23,4 +98,4 @@ declare global {
|
|
|
23
98
|
}
|
|
24
99
|
}
|
|
25
100
|
|
|
26
|
-
export { LabelCaptureValidationFlowLayout };
|
|
101
|
+
export { LabelCaptureValidationFlowLayout, LabelCaptureValidationFlowLayoutEvent, type LabelCaptureValidationFlowLayoutEventMap };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export{a as
|
|
1
|
+
export{b as LabelCaptureValidationFlowLayout,a as LabelCaptureValidationFlowLayoutEvent}from'../../chunks/chunk-6EPGEBWT.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DataCaptureLoader, DataCaptureLoaderOptions } from '@scandit/web-datacapture-core';
|
|
2
|
-
import { D as DataCaptureWorker, d as DataCaptureActionMessageKey, W as WorkerCommandPayload, e as DataCaptureCallbackMessage } from '../NativeProxy-
|
|
2
|
+
import { D as DataCaptureWorker, d as DataCaptureActionMessageKey, W as WorkerCommandPayload, e as DataCaptureCallbackMessage } from '../NativeProxy-DreJVzqM.js';
|
|
3
3
|
import '@scandit/web-datacapture-barcode';
|
|
4
4
|
import '@scandit/web-datacapture-core/build/js/worker/dataCaptureWorkerRelated';
|
|
5
5
|
import '../djinni-types/sdcBarcodeInternalSdkData.js';
|