@scandit/web-datacapture-label 8.5.3 → 8.6.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/{AdaptiveRecognitionResult-Clnk-SP8.d.ts → AdaptiveRecognitionResult-y66P3VQQ.d.ts} +224 -27
- package/build/js/{BarcodeField-CWg5Ve8v.d.ts → BarcodeField-DJn7-z-m.d.ts} +1 -2
- package/build/js/{BarcodeFieldBuilder-CSsj0EXY.d.ts → BarcodeFieldBuilder-C3ORgzp_.d.ts} +3 -4
- package/build/js/{Button-Ou77FlfL.d.ts → Button-BQw0QTaa.d.ts} +3 -2
- package/build/js/{CapturedLabel-PjFfeqht.d.ts → CapturedLabel-CxiHZPCl.d.ts} +1 -2
- package/build/js/Carrier-CjlU3MQ0.d.ts +38 -0
- package/build/js/{CustomBarcode-B9b3T3wr.d.ts → CustomBarcode-CDxDEuLW.d.ts} +2 -3
- package/build/js/{CustomBarcodeBuilder-DdWG8iCR.d.ts → CustomBarcodeBuilder-BbJ6y6wo.d.ts} +3 -4
- package/build/js/{CustomText-Cl2GuEWp.d.ts → CustomText-41Rtf4e7.d.ts} +3 -4
- package/build/js/{CustomTextBuilder-0AbdOASa.d.ts → CustomTextBuilder-Cx446FQo.d.ts} +3 -4
- package/build/js/{DateText-qQtIgcnZ.d.ts → DateText-wfiiLxGb.d.ts} +3 -4
- package/build/js/{DateTextBuilder-D4LModbR.d.ts → DateTextBuilder-hglQSv2l.d.ts} +3 -4
- package/build/js/{ExpiryDateText-DkTHW-n-.d.ts → ExpiryDateText-BtUI1uAf.d.ts} +3 -4
- package/build/js/{ExpiryDateTextBuilder-BGrTAbAB.d.ts → ExpiryDateTextBuilder-CGrQ7Hea.d.ts} +3 -4
- package/build/js/FieldId-BMwA9rgx.d.ts +32 -0
- package/build/js/{ImeiOneBarcode-d4T3iiT8.d.ts → ImeiOneBarcode-dhXCZMVi.d.ts} +1 -2
- package/build/js/{ImeiOneBarcodeBuilder-B9onIT76.d.ts → ImeiOneBarcodeBuilder-Bj3CjnCv.d.ts} +2 -3
- package/build/js/{ImeiTwoBarcode-DhmyWFV3.d.ts → ImeiTwoBarcode-Bm5fuVb-.d.ts} +1 -2
- package/build/js/{ImeiTwoBarcodeBuilder-JChbnrgN.d.ts → ImeiTwoBarcodeBuilder-CugRqyC8.d.ts} +2 -3
- package/build/js/{LabelCapture-BZi-QVCO.d.ts → LabelCapture-BsBYp-Tr.d.ts} +3 -4
- package/build/js/{LabelCaptureAdvancedOverlay-e09i_aoX.d.ts → LabelCaptureAdvancedOverlay-Bpt5QkPC.d.ts} +6 -6
- package/build/js/{LabelCaptureBasicOverlay-BZl1LJkD.d.ts → LabelCaptureBasicOverlay-CF4h_JL9.d.ts} +6 -7
- package/build/js/{LabelCaptureFeedback-Bc-zIaL_.d.ts → LabelCaptureFeedback-sBwE9pgJ.d.ts} +0 -1
- package/build/js/{LabelCaptureOverlayJSON-B6X3-JDh.d.ts → LabelCaptureOverlayJSON-B-Vo-158.d.ts} +1 -2
- package/build/js/{LabelCaptureSession-Dc8YZO9H.d.ts → LabelCaptureSession-lVHLczXv.d.ts} +1 -2
- package/build/js/{LabelCaptureSettings-D4GHiKnt.d.ts → LabelCaptureSettings-076qXEg4.d.ts} +1 -2
- package/build/js/{LabelCaptureWorkerManager-DAHFjhle.js → LabelCaptureWorkerManager-iwl00EZR.js} +1 -1
- package/build/js/{LabelDateFormat-C9T5qNMc.d.ts → LabelDateFormat-2KViYUuq.d.ts} +1 -2
- package/build/js/{LabelDefinition-CAZoQj1a.d.ts → LabelDefinition-DEROTlBM.d.ts} +26 -27
- package/build/js/{LabelField-BAO35-Eb.d.ts → LabelField-b2ukZfup.d.ts} +6 -5
- package/build/js/{LabelFieldDefinitionBuilder-rN0LybgZ.d.ts → LabelFieldDefinitionBuilder-D-yf34AO.d.ts} +1 -2
- package/build/js/{LabelFieldLocation-DDqgTh17.d.ts → LabelFieldLocation-eoZD3v4d.d.ts} +0 -1
- package/build/js/{PackingDateText-DH3NkY_K.d.ts → PackingDateText-BxwiZ4HS.d.ts} +3 -4
- package/build/js/{PackingDateTextBuilder-Cay2b3Se.d.ts → PackingDateTextBuilder-CgWv_e2L.d.ts} +3 -4
- package/build/js/{PartNumberBarcode-Dzx1zF4O.d.ts → PartNumberBarcode-D2mysndM.d.ts} +1 -2
- package/build/js/{PartNumberBarcodeBuilder-Bwg9UTcy.d.ts → PartNumberBarcodeBuilder-CU5oArvT.d.ts} +2 -3
- package/build/js/{SerialNumberBarcode-DWBGJVoz.d.ts → SerialNumberBarcode-Ck2AEyxm.d.ts} +1 -2
- package/build/js/{SerialNumberBarcodeBuilder-oSUDdRsf.d.ts → SerialNumberBarcodeBuilder-BZRf4Jyp.d.ts} +2 -3
- package/build/js/{TextField-CTCb88lU.d.ts → TextField-B5ize0NE.d.ts} +1 -2
- package/build/js/{TextFieldBuilder-biW0vkn0.d.ts → TextFieldBuilder-CaffaBBH.d.ts} +1 -2
- package/build/js/{TotalPriceText-BydB0NCL.d.ts → TotalPriceText-CiOJFnt4.d.ts} +2 -3
- package/build/js/{TotalPriceTextBuilder-B8MK5Xjy.d.ts → TotalPriceTextBuilder-CDwYNGhA.d.ts} +2 -3
- package/build/js/{UnitPriceText-C7EwC-Go.d.ts → UnitPriceText-DMdoMIGG.d.ts} +2 -3
- package/build/js/{UnitPriceTextBuilder-Bc7dIZF4.d.ts → UnitPriceTextBuilder-B7fFpVja.d.ts} +2 -3
- package/build/js/{ValidationFlowField-DL7FdqPM.d.ts → ValidationFlowField-B8BG6AoW.d.ts} +1 -2
- package/build/js/{WeightText-DrWQ9nBI.d.ts → WeightText-xC0IyyPL.d.ts} +2 -3
- package/build/js/{WeightTextBuilder-BzG1seYF.d.ts → WeightTextBuilder-Bm1dmTp5.d.ts} +2 -3
- package/build/js/api/AdaptiveRecognitionMode.d.ts +1 -1
- package/build/js/api/AdaptiveRecognitionResult.d.ts +1 -1
- package/build/js/api/BarcodeField.d.ts +1 -1
- package/build/js/api/BarcodeFieldBuilder.d.ts +1 -1
- package/build/js/api/BarcodeFieldBuilder.js +1 -1
- package/build/js/api/CapturedLabel.d.ts +1 -1
- package/build/js/api/Carrier.d.ts +2 -0
- package/build/js/api/Carrier.js +1 -0
- package/build/js/api/CustomBarcode.d.ts +1 -1
- package/build/js/api/CustomBarcodeBuilder.d.ts +1 -1
- package/build/js/api/CustomText.d.ts +1 -1
- package/build/js/api/CustomTextBuilder.d.ts +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 +1 -1
- package/build/js/api/ImeiOneBarcode.d.ts +1 -1
- package/build/js/api/ImeiOneBarcodeBuilder.d.ts +1 -1
- package/build/js/api/ImeiTwoBarcode.d.ts +1 -1
- package/build/js/api/ImeiTwoBarcodeBuilder.d.ts +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 +5 -5
- package/build/js/api/LabelCaptureAdaptiveRecognitionOverlay.js +1 -1
- package/build/js/api/LabelCaptureAdaptiveRecognitionSettings.d.ts +1 -1
- package/build/js/api/LabelCaptureAdaptiveRecognitionSettings.js +1 -1
- package/build/js/api/LabelCaptureAdvancedOverlay.d.ts +1 -1
- package/build/js/api/LabelCaptureAdvancedOverlay.js +1 -1
- package/build/js/api/LabelCaptureAdvancedOverlayListener.d.ts +1 -1
- package/build/js/api/LabelCaptureBasicOverlay.d.ts +1 -1
- package/build/js/api/LabelCaptureBasicOverlay.js +1 -1
- package/build/js/api/LabelCaptureBasicOverlayListener.d.ts +1 -1
- package/build/js/api/LabelCaptureFeedback.d.ts +1 -1
- package/build/js/api/LabelCaptureListener.d.ts +1 -1
- package/build/js/api/LabelCaptureOverlayJSON.d.ts +1 -1
- package/build/js/api/LabelCaptureSession.d.ts +1 -1
- package/build/js/api/LabelCaptureSettings.d.ts +1 -1
- package/build/js/api/LabelCaptureValidationFlow/LabelCaptureValidationFlowOverlay.d.ts +3 -4
- package/build/js/api/LabelCaptureValidationFlow/LabelCaptureValidationFlowOverlay.js +1 -1
- package/build/js/api/LabelCaptureValidationFlow/private/FieldId.d.ts +2 -0
- package/build/js/api/LabelCaptureValidationFlow/private/FieldId.js +1 -0
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowPresenter.d.ts +4 -5
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowPresenter.js +1 -1
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowStateManager.d.ts +14 -23
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowStateManager.js +1 -1
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowView.d.ts +2 -2
- package/build/js/api/LabelCaptureValidationFlow/private/ValidationFlowView.js +1 -1
- package/build/js/api/LabelCaptureValidationFlowFeedback.d.ts +0 -1
- package/build/js/api/LabelCaptureValidationFlowSettings.d.ts +0 -1
- package/build/js/api/LabelCaptureValidationFlowSettings.js +1 -1
- package/build/js/api/LabelDateComponentFormat.d.ts +1 -1
- package/build/js/api/LabelDateComponentFormat.js +1 -1
- package/build/js/api/LabelDateFormat.d.ts +1 -1
- package/build/js/api/LabelDateResult.d.ts +1 -1
- package/build/js/api/LabelDefinition.d.ts +1 -1
- package/build/js/api/LabelField.d.ts +1 -1
- package/build/js/api/LabelField.js +1 -1
- package/build/js/api/LabelFieldDefinition.d.ts +1 -1
- package/build/js/api/LabelFieldDefinitionBuilder.d.ts +1 -1
- package/build/js/api/LabelFieldLocation.d.ts +1 -1
- package/build/js/api/LabelFieldLocation.js +1 -1
- package/build/js/api/LabelFieldLocationType.js +1 -1
- package/build/js/api/LabelFieldState.d.ts +1 -1
- package/build/js/api/LabelFieldState.js +1 -1
- package/build/js/api/LabelFieldType.d.ts +1 -1
- package/build/js/api/LabelFieldType.js +1 -1
- package/build/js/api/LabelFieldValueType.d.ts +1 -1
- package/build/js/api/LabelFieldValueType.js +1 -1
- package/build/js/api/LabelResultUpdateType.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/PartNumberBarcode.d.ts +1 -1
- package/build/js/api/PartNumberBarcodeBuilder.d.ts +1 -1
- package/build/js/api/PrivateReceiptScanningHandler.d.ts +6 -3
- package/build/js/api/PrivateReceiptScanningHandler.js +1 -1
- package/build/js/api/PrivateReceiptScanningListener.d.ts +12 -4
- package/build/js/api/PrivateValidationFlowHandler.d.ts +5 -6
- package/build/js/api/PrivateValidationFlowHandler.js +1 -1
- package/build/js/api/ReceiptScanningLineItem.d.ts +1 -1
- package/build/js/api/ReceiptScanningResult.d.ts +1 -1
- package/build/js/api/SerialNumberBarcode.d.ts +1 -1
- package/build/js/api/SerialNumberBarcodeBuilder.d.ts +1 -1
- package/build/js/api/ShippingLabelScanningResult.d.ts +2 -0
- package/build/js/api/ShippingLabelScanningResult.js +1 -0
- package/build/js/api/TextField.d.ts +1 -1
- package/build/js/api/TextFieldBuilder.d.ts +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 +1 -1
- 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/{dataCaptureEngine-CqE4l_uy.d.ts → dataCaptureEngine-Qn62h3C8.d.ts} +1 -2
- package/build/js/global.d.ts +5 -3
- package/build/js/index.d.ts +49 -48
- package/build/js/index.js +1 -1
- package/build/js/moduleLoader.d.ts +0 -1
- package/build/js/moduleLoader.js +1 -1
- package/build/js/{nativeCall-q32Awp0L.d.ts → nativeCall-BACigfoX.d.ts} +2 -3
- package/build/js/private/PrivateLabelFieldDefinition.d.ts +2 -3
- package/build/js/private/PrivateRectangularLocationSelectionJSON.d.ts +0 -1
- package/build/js/private/adaptiveRecognitionModeTranslator.d.ts +2 -3
- package/build/js/private/adaptiveRecognitionModeTranslator.js +1 -1
- package/build/js/private/brushTranslator.d.ts +2 -3
- package/build/js/private/carrierTranslator.d.ts +6 -0
- package/build/js/private/carrierTranslator.js +1 -0
- package/build/js/private/createProxiedViewFinder.d.ts +1 -2
- package/build/js/private/fromWrappedFutureToPromise.d.ts +1 -2
- package/build/js/private/labelFieldLocationTypeTranslator.d.ts +1 -2
- package/build/js/private/labelFieldLocationTypeTranslator.js +1 -1
- package/build/js/private/measureTranslator.d.ts +1 -2
- package/build/js/private/measureTranslator.js +1 -1
- package/build/js/private/numberTranslator.d.ts +1 -2
- package/build/js/private/numberTranslator.js +1 -1
- package/build/js/private/resultTypeTranslator.d.ts +6 -0
- package/build/js/private/resultTypeTranslator.js +1 -0
- package/build/js/private/scrollIntoView/compute.d.ts +1 -1
- package/build/js/private/scrollIntoView/index.d.ts +0 -1
- package/build/js/private/scrollIntoView/index.js +1 -1
- package/build/js/private/symbologiesTranslator.d.ts +1 -2
- package/build/js/private/symbologiesTranslator.js +1 -1
- package/build/js/private/viewfinderTranslator.d.ts +1 -2
- package/build/js/private/viewfinderTranslator.js +1 -1
- package/build/js/{sdcBarcodeData-DOuUPRUb.d.ts → sdcBarcodeData-CXuQyyJf.d.ts} +2 -3
- package/build/js/{sdcCoreCommonGeometry-Bxvlllkc.d.ts → sdcCoreCommonGeometry-CS1rDunH.d.ts} +2 -13
- package/build/js/{sdcCoreInternalSdkCommonAsync-8G3-3n53.d.ts → sdcCoreInternalSdkCommonAsync-DNIa_gEu.d.ts} +2 -3
- package/build/js/sdcCoreInternalSdkCommonGeometry-DfRpk9ff.d.ts +41 -0
- package/build/js/sdcCoreInternalSdkCommonGraphics-Br9oizuP.d.ts +9 -0
- package/build/js/sdcCoreInternalSdkUiStyle-DrsrRbqR.d.ts +9 -0
- package/build/js/{sdcCoreInternalSdkUiViewfinder-BoG0LyRj.d.ts → sdcCoreInternalSdkUiViewfinder-CS6t26-R.d.ts} +5 -18
- package/build/js/{sdcLabelData-CHLquvuG.d.ts → sdcLabelData-BitL7YVQ.d.ts} +2 -3
- package/build/js/{sdcLabelInternalModuleCapture-B6-1Wjzn.d.ts → sdcLabelInternalModuleCapture-LDFRDPMF.d.ts} +165 -54
- package/build/js/sdcLabelInternalModuleData-sZpfq0Gd.d.ts +149 -0
- package/build/js/symbologiesTranslator-kd0DbiBX.js +1 -0
- package/build/js/ui/atoms/AdaptiveRecognitionOverlay.d.ts +0 -1
- package/build/js/ui/atoms/Button.d.ts +1 -1
- package/build/js/ui/atoms/Button.js +1 -1
- package/build/js/ui/atoms/TextInput.d.ts +0 -1
- package/build/js/ui/atoms/TextInput.js +1 -1
- package/build/js/ui/controllers/KeyboardVisibilityController.d.ts +0 -1
- package/build/js/ui/organisms/LabelCaptureValidationFlowLayout.d.ts +3 -3
- package/build/js/umd/index.js +1 -0
- package/build/js/viewfinderTranslator-C6Uufw4a.js +1 -0
- package/build/js/vite-env.d.ts +1 -1
- package/build/js/worker/LabelCaptureWorkerManager.d.ts +3 -4
- package/build/js/worker/LabelCaptureWorkerManager.js +1 -1
- package/build/js/worker/NativeImplementationRegistry.d.ts +1 -2
- package/build/js/worker/WorkerMain.d.ts +4 -5
- package/build/js/worker/WorkerMain.js +1 -1
- package/build/js/worker/WorkerRegistry.d.ts +0 -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 +2 -2
- package/build/js/worker/handlers/{ReceiptScanningHandler.d.ts → AdaptiveRecognitionHandler.d.ts} +5 -6
- package/build/js/worker/handlers/AdaptiveRecognitionHandler.js +1 -0
- package/build/js/worker/handlers/FieldBuilderHandler.d.ts +1 -2
- package/build/js/worker/handlers/FieldBuilderHandler.js +1 -1
- package/build/js/worker/handlers/LabelCaptureBasicOverlayHandler.d.ts +6 -4
- package/build/js/worker/handlers/LabelCaptureBasicOverlayHandler.js +1 -1
- package/build/js/worker/handlers/SettingsHandler.d.ts +1 -2
- package/build/js/worker/handlers/SettingsHandler.js +1 -1
- package/build/js/worker/handlers/ValidationFlowHandler.d.ts +1 -2
- package/build/js/worker/handlers/ValidationFlowHandler.js +1 -1
- package/build/js/worker/labelWorkerHandler.d.ts +0 -1
- package/build/js/worker/nativeCall.d.ts +1 -1
- package/build/js/worker/nativeDispatch.d.ts +1 -1
- package/build/js/worker/proxies/AdaptiveRecognitionHandlerProxy.d.ts +15 -0
- package/build/js/worker/proxies/AdaptiveRecognitionHandlerProxy.js +1 -0
- package/build/js/worker/proxies/AimerViewfinderProxy.d.ts +3 -4
- package/build/js/worker/proxies/AimerViewfinderProxy.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/LabelCaptureBasicOverlayProxy.d.ts +6 -8
- package/build/js/worker/proxies/LabelCaptureBasicOverlayProxy.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 -4
- package/build/js/worker/proxies/LabelCaptureSettingsProxy.js +1 -1
- package/build/js/worker/proxies/LabelDefinitionProxy.d.ts +3 -4
- 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/LabelFieldProxy.d.ts +3 -4
- 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 +2 -3
- package/build/js/worker/proxies/NoViewfinderProxy.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 +5 -6
- package/build/js/worker/proxies/RectangularViewfinderProxy.js +1 -1
- package/build/js/worker/proxies/ValidationFlowListenerProxy.d.ts +1 -3
- package/build/js/worker/proxies/base/BarcodeFieldProxyBase.d.ts +2 -4
- 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/workerHandles.d.ts +1 -1
- package/package.json +12 -8
- package/sdc-lib/label-worker-8.6.0.js +1 -0
- package/sdc-lib/resources/models/aus_mdl_keypoint_detection.1b3529e0e8a3.model +0 -0
- package/sdc-lib/resources/models/barcode_classification_default.5afae5235672.model +0 -0
- package/sdc-lib/resources/models/barcode_keypoints_oned.963fc43efda2.model +0 -0
- package/sdc-lib/resources/models/barcode_keypoints_twod.90548e549497.model +0 -0
- package/sdc-lib/resources/models/barcode_label_localization_mslc_model_s.cf4be2418f6d.model +0 -0
- package/sdc-lib/resources/models/barcode_label_localization_mslc_model_smartphone.d37117f6a058.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_clutter_aware.40a9ddd42447.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_default.67ae150de2e5.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_dpm_default.96d5335f10a1.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default.3aff51b79974.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_oned_default.ca3e3afb3c45.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_twod_default.62d5ab2b650d.model +0 -0
- package/sdc-lib/resources/models/id_outline_localization_model_kpts.376104335628.model +0 -0
- package/sdc-lib/resources/models/mqr_model_1.f74eb91b2d3b.model +0 -0
- package/sdc-lib/resources/models/mqr_model_2.300660c7d3db.model +0 -0
- package/sdc-lib/resources/models/mrz_line_localization.6598e20b3c9e.model +0 -0
- package/sdc-lib/resources/models/mrz_localization.07beaad40bbd.model +0 -0
- package/sdc-lib/resources/models/ocr_attention.61cf55c1930f.model +0 -0
- package/sdc-lib/resources/models/ocr_attention_big.81959e2e4ef4.model +0 -0
- package/sdc-lib/resources/models/price_localization_in_whole_label.ef6641ccf26f.model +0 -0
- package/sdc-lib/resources/models/qr_model_1.d46cc8f45676.model +0 -0
- package/sdc-lib/resources/models/via_id_template_database.948ef137372d.model +0 -0
- package/sdc-lib/scandit-datacapture-sdk-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/djinni-types/sdcAnalyticsModule.d.ts +0 -24
- package/build/js/djinni-types/sdcAnalyticsModule.js +0 -0
- package/build/js/djinni-types/sdcBarcodeData.d.ts +0 -2
- package/build/js/djinni-types/sdcBarcodeData.js +0 -1
- package/build/js/djinni-types/sdcBarcodeInternalSdkData.d.ts +0 -2
- package/build/js/djinni-types/sdcBarcodeInternalSdkData.js +0 -0
- package/build/js/djinni-types/sdcCoreCommon.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreCommon.js +0 -1
- package/build/js/djinni-types/sdcCoreCommonBuffer.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreCommonBuffer.js +0 -0
- package/build/js/djinni-types/sdcCoreCommonGeometry.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreCommonGeometry.js +0 -1
- package/build/js/djinni-types/sdcCoreCommonGraphic.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreCommonGraphic.js +0 -1
- package/build/js/djinni-types/sdcCoreInternalSdkArea.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreInternalSdkArea.js +0 -0
- package/build/js/djinni-types/sdcCoreInternalSdkCapture.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreInternalSdkCapture.js +0 -1
- package/build/js/djinni-types/sdcCoreInternalSdkCommonAsync.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreInternalSdkCommonAsync.js +0 -0
- package/build/js/djinni-types/sdcCoreInternalSdkCommonGeometry.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreInternalSdkCommonGeometry.js +0 -1
- package/build/js/djinni-types/sdcCoreInternalSdkCommonGraphics.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreInternalSdkCommonGraphics.js +0 -0
- package/build/js/djinni-types/sdcCoreInternalSdkOcr.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreInternalSdkOcr.js +0 -0
- package/build/js/djinni-types/sdcCoreInternalSdkUiStyle.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreInternalSdkUiStyle.js +0 -0
- package/build/js/djinni-types/sdcCoreInternalSdkUiViewfinder.d.ts +0 -2
- package/build/js/djinni-types/sdcCoreInternalSdkUiViewfinder.js +0 -1
- package/build/js/djinni-types/sdcLabelData.d.ts +0 -2
- package/build/js/djinni-types/sdcLabelData.js +0 -1
- package/build/js/djinni-types/sdcLabelInternalModuleCapture.d.ts +0 -2
- package/build/js/djinni-types/sdcLabelInternalModuleCapture.js +0 -1
- package/build/js/djinni-types/sdcLabelInternalModuleData.d.ts +0 -2
- package/build/js/djinni-types/sdcLabelInternalModuleData.js +0 -1
- package/build/js/djinni-types/sdcLabelInternalModuleUiOverlay.d.ts +0 -2
- package/build/js/djinni-types/sdcLabelInternalModuleUiOverlay.js +0 -0
- package/build/js/djinni-types/sdcSymbologySettings.d.ts +0 -2
- package/build/js/djinni-types/sdcSymbologySettings.js +0 -0
- package/build/js/sdcBarcodeInternalSdkData-CJZsjs8c.d.ts +0 -36
- package/build/js/sdcCoreCommon-kHUoe_GV.d.ts +0 -13
- package/build/js/sdcCoreCommonBuffer-DjQM-W5x.d.ts +0 -11
- package/build/js/sdcCoreCommonGraphic-hFLsxC6K.d.ts +0 -22
- package/build/js/sdcCoreInternalSdkArea-BDbnSRls.d.ts +0 -38
- package/build/js/sdcCoreInternalSdkCapture-CcabgRl6.d.ts +0 -9
- package/build/js/sdcCoreInternalSdkCommonGeometry-BdkRyMJ5.d.ts +0 -50
- package/build/js/sdcCoreInternalSdkCommonGraphics-DRTWPww6.d.ts +0 -10
- package/build/js/sdcCoreInternalSdkOcr-rkdYyZLs.d.ts +0 -34
- package/build/js/sdcCoreInternalSdkUiStyle-pVbYygcu.d.ts +0 -11
- package/build/js/sdcLabelInternalModuleData-D_O2Y4cu.d.ts +0 -63
- package/build/js/sdcLabelInternalModuleUiOverlay-CGIKcVOW.d.ts +0 -113
- package/build/js/sdcSymbologySettings-CR04eT_a.d.ts +0 -21
- package/build/js/viewfinderTranslator-BSoFZt6m.js +0 -1
- package/build/js/worker/handlers/ReceiptScanningHandler.js +0 -1
- package/build/js/worker/proxies/ReceiptScanningHandlerProxy.d.ts +0 -14
- package/build/js/worker/proxies/ReceiptScanningHandlerProxy.js +0 -1
- package/sdc-lib/label-worker-8.5.3.js +0 -1
- package/sdc-lib/resources/models/aus_mdl_keypoint_detection.17f1b2958a9e.model +0 -0
- package/sdc-lib/resources/models/barcode_classification_default.48685f5fe19b.model +0 -0
- package/sdc-lib/resources/models/barcode_keypoints_oned.c499e5bd6ed4.model +0 -0
- package/sdc-lib/resources/models/barcode_label_localization_mslc_model_s.616a59ec3a8d.model +0 -0
- package/sdc-lib/resources/models/barcode_label_localization_mslc_model_smartphone.29decf3dd9e6.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_clutter_aware.69933853e03e.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_default.59f74a846b63.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_dpm_default.7e4fe5631f81.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_generic_postal_code_default.184ecbeb5b83.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_oned_default.c547484132c1.model +0 -0
- package/sdc-lib/resources/models/barcode_localization_twod_default.4b64523bf755.model +0 -0
- package/sdc-lib/resources/models/id_outline_localization_model_kpts.b74ff5cc58cf.model +0 -0
- package/sdc-lib/resources/models/mrz_line_localization.577844e2ebed.model +0 -0
- package/sdc-lib/resources/models/mrz_localization.77e331c44b52.model +0 -0
- package/sdc-lib/resources/models/ocr_attention.75e86b6ca0ca.model +0 -0
- package/sdc-lib/resources/models/price_localization_in_whole_label.555b33695325.model +0 -0
- package/sdc-lib/resources/models/qr_model_1.e790edc14d39.model +0 -0
- package/sdc-lib/resources/models/via_id_template_database.e54ca9420de3.model +0 -0
- /package/build/js/{AdaptiveRecognitionMode-DBr--JVQ.d.ts → AdaptiveRecognitionMode-Ce7PcDLT.d.ts} +0 -0
- /package/build/js/{LabelDateComponentFormat-BDdyln8r.d.ts → LabelDateComponentFormat-BogF5Duc.d.ts} +0 -0
- /package/build/js/{LabelDateResult-CQ9G5zQl.d.ts → LabelDateResult-CXE4kE4_.d.ts} +0 -0
- /package/build/js/{LabelFieldDefinition-CuGI3QUq.d.ts → LabelFieldDefinition-Dx10zV00.d.ts} +0 -0
- /package/build/js/{LabelFieldState-JJ7Cbn3n.d.ts → LabelFieldState-PNXv3OG0.d.ts} +0 -0
- /package/build/js/{LabelFieldType-DEXmgciU.d.ts → LabelFieldType-DTWF1oEh.d.ts} +0 -0
- /package/build/js/{LabelFieldValueType-C8ZfGaCT.d.ts → LabelFieldValueType-Bpo3SRcL.d.ts} +0 -0
- /package/build/js/{ReceiptScanningLineItem-CZ--bISr.d.ts → ReceiptScanningLineItem-sJWucFWu.d.ts} +0 -0
- /package/build/js/{nativeDispatch-C7kZCRYA.d.ts → nativeDispatch-DihCPqt9.d.ts} +0 -0
- /package/build/js/{workerHandles-DhpaE-4P.d.ts → workerHandles-dyelIcCK.d.ts} +0 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { r as Quadrilateral } from "./sdcCoreCommonGeometry-CS1rDunH.js";
|
|
2
|
+
import { a as LabelFieldType, i as LabelFieldState } from "./sdcLabelData-BitL7YVQ.js";
|
|
3
|
+
import { n as Symbology, t as CompositeFlag } from "./sdcBarcodeData-CXuQyyJf.js";
|
|
4
|
+
//#region ../../@shared/wasm-types/src/djinni/sdcCoreCommonBuffer.d.ts
|
|
5
|
+
interface EncodingRange {
|
|
6
|
+
ianaName: string;
|
|
7
|
+
/** actually a u32, but this type is not supported by djinni */
|
|
8
|
+
startIndex: number;
|
|
9
|
+
/** actually a u32, but this type is not supported by djinni */
|
|
10
|
+
endIndex: number;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region ../../@shared/wasm-types/src/djinni/sdcBarcodeInternalSdkData.d.ts
|
|
14
|
+
interface Barcode {
|
|
15
|
+
getSymbology(): Symbology;
|
|
16
|
+
getDataEncoding(): Array<EncodingRange>;
|
|
17
|
+
getUtf8String(): string | undefined;
|
|
18
|
+
getLocation(): Quadrilateral;
|
|
19
|
+
isGs1DataCarrier(): boolean;
|
|
20
|
+
getCompositeFlag(): CompositeFlag;
|
|
21
|
+
getFrameId(): number;
|
|
22
|
+
getSymbolCount(): number;
|
|
23
|
+
isColorInverted(): boolean;
|
|
24
|
+
getData(): Uint8Array;
|
|
25
|
+
getAddOnData(): string | undefined;
|
|
26
|
+
getCompositeData(): string | undefined;
|
|
27
|
+
getCompositeRawData(): Uint8Array;
|
|
28
|
+
isStructuredAppend(): boolean;
|
|
29
|
+
getStructuredAppendData(): AbstractStructuredAppendData | undefined;
|
|
30
|
+
getPixelPerElement(): number;
|
|
31
|
+
toJson(): string;
|
|
32
|
+
}
|
|
33
|
+
interface AbstractStructuredAppendData {
|
|
34
|
+
isComplete(): boolean;
|
|
35
|
+
getBarcodeSetId(): string;
|
|
36
|
+
getScannedSegmentCount(): number;
|
|
37
|
+
getTotalSegmentCount(): number;
|
|
38
|
+
getCompleteDataRaw(): Uint8Array;
|
|
39
|
+
getCompleteDataEncodings(): Array<EncodingRange>;
|
|
40
|
+
getCompleteDataUtf8String(): string | undefined;
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region ../../@shared/wasm-types/src/djinni/sdcLabelInternalModuleData.d.ts
|
|
44
|
+
declare enum LabelFieldValueType {
|
|
45
|
+
DATE = 0,
|
|
46
|
+
PRICE = 1,
|
|
47
|
+
WEIGHT = 2,
|
|
48
|
+
TEXT = 3,
|
|
49
|
+
NUMERIC = 4
|
|
50
|
+
}
|
|
51
|
+
interface LabelDateResult {
|
|
52
|
+
day?: number;
|
|
53
|
+
month?: number;
|
|
54
|
+
year?: number;
|
|
55
|
+
dayStr: string;
|
|
56
|
+
monthStr: string;
|
|
57
|
+
yearStr: string;
|
|
58
|
+
}
|
|
59
|
+
interface LabelField {
|
|
60
|
+
getName(): string;
|
|
61
|
+
isRequired(): boolean;
|
|
62
|
+
getType(): LabelFieldType;
|
|
63
|
+
getPredictedLocation(): Quadrilateral;
|
|
64
|
+
getState(): LabelFieldState;
|
|
65
|
+
getValueType(): LabelFieldValueType;
|
|
66
|
+
getBarcode(): Barcode;
|
|
67
|
+
getText(): string | undefined;
|
|
68
|
+
getDate(): LabelDateResult | undefined;
|
|
69
|
+
getInstanceIndex(): number | undefined;
|
|
70
|
+
toJson(): string;
|
|
71
|
+
}
|
|
72
|
+
interface CapturedLabel {
|
|
73
|
+
getName(): string;
|
|
74
|
+
getDeltaTimeToPrediction(): number;
|
|
75
|
+
getFields(): Array<LabelField>;
|
|
76
|
+
getTrackingId(): number;
|
|
77
|
+
getPredictedBounds(): Quadrilateral;
|
|
78
|
+
isComplete(): boolean;
|
|
79
|
+
toJson(): string;
|
|
80
|
+
}
|
|
81
|
+
interface ReceiptScanningLineItem {
|
|
82
|
+
name: string;
|
|
83
|
+
unitPrice?: number;
|
|
84
|
+
discount?: number;
|
|
85
|
+
quantity: number;
|
|
86
|
+
totalPrice?: number;
|
|
87
|
+
}
|
|
88
|
+
interface ReceiptScanningResult {
|
|
89
|
+
storeName?: string;
|
|
90
|
+
storeCity?: string;
|
|
91
|
+
storeAddress?: string;
|
|
92
|
+
date?: string;
|
|
93
|
+
time?: string;
|
|
94
|
+
paymentPreTaxTotal?: number;
|
|
95
|
+
paymentTax?: number;
|
|
96
|
+
paymentTotal?: number;
|
|
97
|
+
loyaltyNumber?: number;
|
|
98
|
+
lineItems: Array<ReceiptScanningLineItem>;
|
|
99
|
+
}
|
|
100
|
+
declare enum Carrier {
|
|
101
|
+
FEDEX = 0,
|
|
102
|
+
UPS = 1,
|
|
103
|
+
USPS = 2,
|
|
104
|
+
DHL = 3,
|
|
105
|
+
DPD = 4,
|
|
106
|
+
GLS = 5,
|
|
107
|
+
TNT = 6,
|
|
108
|
+
AMAZON_LOGISTICS = 7,
|
|
109
|
+
ONTRAC = 8,
|
|
110
|
+
ROYAL_MAIL = 9,
|
|
111
|
+
PARCELFORCE = 10,
|
|
112
|
+
EVRI = 11,
|
|
113
|
+
YODEL = 12,
|
|
114
|
+
CHRONOPOST = 13,
|
|
115
|
+
COLISSIMO = 14,
|
|
116
|
+
MONDIAL_RELAY = 15,
|
|
117
|
+
POSTE_ITALIANE = 16,
|
|
118
|
+
BRT = 17,
|
|
119
|
+
SDA = 18,
|
|
120
|
+
HERMES = 19,
|
|
121
|
+
AUSTRIAN_POST = 20,
|
|
122
|
+
SWISS_POST = 21,
|
|
123
|
+
POSTNL = 22,
|
|
124
|
+
BPOST = 23,
|
|
125
|
+
POSTNORD = 24,
|
|
126
|
+
CORREOS = 25,
|
|
127
|
+
SEUR = 26,
|
|
128
|
+
INPOST = 27,
|
|
129
|
+
OTHER = 28,
|
|
130
|
+
NOT_AVAILABLE = 29
|
|
131
|
+
}
|
|
132
|
+
declare enum AdaptiveRecognitionResultType {
|
|
133
|
+
RECEIPT = 0,
|
|
134
|
+
SHIPPING_LABEL = 1
|
|
135
|
+
}
|
|
136
|
+
interface ShippingLabelScanningResult {
|
|
137
|
+
barcodes: Array<Barcode>;
|
|
138
|
+
trackingId: string;
|
|
139
|
+
receiverFullName: string;
|
|
140
|
+
receiverCompany?: string;
|
|
141
|
+
receiverStreet: string;
|
|
142
|
+
receiverCity: string;
|
|
143
|
+
receiverState?: string;
|
|
144
|
+
receiverPostalCode: string;
|
|
145
|
+
receiverCountry?: string;
|
|
146
|
+
carrier: Carrier;
|
|
147
|
+
}
|
|
148
|
+
//#endregion
|
|
149
|
+
export { LabelFieldValueType as a, ShippingLabelScanningResult as c, LabelField as i, Barcode as l, CapturedLabel as n, ReceiptScanningLineItem as o, Carrier as r, ReceiptScanningResult as s, AdaptiveRecognitionResultType as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Symbology as e}from"@scandit/web-datacapture-barcode";let t=function(e){return e[e.EAN13_UPCA=0]=`EAN13_UPCA`,e[e.UPCE=1]=`UPCE`,e[e.EAN8=2]=`EAN8`,e[e.CODE39=3]=`CODE39`,e[e.CODE93=4]=`CODE93`,e[e.CODE128=5]=`CODE128`,e[e.CODE11=6]=`CODE11`,e[e.CODE25=7]=`CODE25`,e[e.CODABAR=8]=`CODABAR`,e[e.INTERLEAVED_TWO_OF_FIVE=9]=`INTERLEAVED_TWO_OF_FIVE`,e[e.MSI_PLESSEY=10]=`MSI_PLESSEY`,e[e.QR=11]=`QR`,e[e.DATA_MATRIX=12]=`DATA_MATRIX`,e[e.AZTEC=13]=`AZTEC`,e[e.MAXI_CODE=14]=`MAXI_CODE`,e[e.DOT_CODE=15]=`DOT_CODE`,e[e.KIX=16]=`KIX`,e[e.ROYAL_MAIL_4STATE=17]=`ROYAL_MAIL_4STATE`,e[e.GS1_DATABAR=18]=`GS1_DATABAR`,e[e.GS1_DATABAR_EXPANDED=19]=`GS1_DATABAR_EXPANDED`,e[e.GS1_DATABAR_LIMITED=20]=`GS1_DATABAR_LIMITED`,e[e.PDF417=21]=`PDF417`,e[e.MICRO_PDF417=22]=`MICRO_PDF417`,e[e.MICRO_QR=23]=`MICRO_QR`,e[e.CODE32=24]=`CODE32`,e[e.LAPA4SC=25]=`LAPA4SC`,e[e.IATA_TWO_OF_FIVE=26]=`IATA_TWO_OF_FIVE`,e[e.MATRIX_TWO_OF_FIVE=27]=`MATRIX_TWO_OF_FIVE`,e[e.USPS_INTELLIGENT_MAIL=28]=`USPS_INTELLIGENT_MAIL`,e[e.ARUCO=29]=`ARUCO`,e[e.UPU4STATE=30]=`UPU4STATE`,e[e.AUSTRALIANPOST=31]=`AUSTRALIANPOST`,e[e.FRENCHPOST=32]=`FRENCHPOST`,e}({});function n(t){return{[e.Aztec]:13,[e.Codabar]:8,[e.Code11]:6,[e.Code128]:5,[e.Code25]:7,[e.Code32]:24,[e.Code39]:3,[e.Code93]:4,[e.DataMatrix]:12,[e.DotCode]:15,[e.EAN13UPCA]:0,[e.EAN8]:2,[e.GS1Databar]:18,[e.GS1DatabarExpanded]:19,[e.GS1DatabarLimited]:20,[e.IATATwoOfFive]:26,[e.InterleavedTwoOfFive]:9,[e.KIX]:16,[e.Lapa4SC]:25,[e.MSIPlessey]:10,[e.MatrixTwoOfFive]:27,[e.MaxiCode]:14,[e.MicroPDF417]:22,[e.MicroQR]:23,[e.PDF417]:21,[e.QR]:11,[e.RoyalMail4state]:17,[e.UPCE]:1,[e.USPSIntelligentMail]:28,[e.ArUco]:29}[t]}function r(n){if(n===29||n===31||n===32||n===30)throw Error(`${t[n]} is not currently supported on the web.`);return{13:e.Aztec,8:e.Codabar,6:e.Code11,5:e.Code128,7:e.Code25,24:e.Code32,3:e.Code39,4:e.Code93,12:e.DataMatrix,15:e.DotCode,0:e.EAN13UPCA,2:e.EAN8,18:e.GS1Databar,19:e.GS1DatabarExpanded,20:e.GS1DatabarLimited,26:e.IATATwoOfFive,9:e.InterleavedTwoOfFive,16:e.KIX,25:e.Lapa4SC,10:e.MSIPlessey,27:e.MatrixTwoOfFive,14:e.MaxiCode,22:e.MicroPDF417,23:e.MicroQR,21:e.PDF417,11:e.QR,17:e.RoyalMail4state,1:e.UPCE,28:e.USPSIntelligentMail}[n]}export{n,r as t};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ScanditHTMLElement } from "@scandit/web-datacapture-core/build/js/private/utils/index.js";
|
|
2
|
-
|
|
3
2
|
//#region src/main/ui/atoms/AdaptiveRecognitionOverlay.d.ts
|
|
4
3
|
declare class AdaptiveRecognitionOverlay extends ScanditHTMLElement {
|
|
5
4
|
static tag: "scandit-adaptive-recognition-overlay";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ButtonVariant, i as ButtonType, n as ButtonKind, r as ButtonSize, t as Button } from "../../Button-
|
|
1
|
+
import { a as ButtonVariant, i as ButtonType, n as ButtonKind, r as ButtonSize, t as Button } from "../../Button-BQw0QTaa.js";
|
|
2
2
|
export { Button, ButtonKind, ButtonSize, ButtonType, ButtonVariant };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ScanditIcon as e}from"@scandit/web-datacapture-core";import{ScanditHTMLElement as t,css as n,defineCustomElements as r,html as i}from"@scandit/web-datacapture-core/build/js/private/utils/index.js";import{GestureRecognizer as a}from"@scandit/web-datacapture-core/build/js/private/GestureRecognizer/
|
|
1
|
+
import{ScanditIcon as e}from"@scandit/web-datacapture-core";import{ScanditHTMLElement as t,css as n,defineCustomElements as r,html as i}from"@scandit/web-datacapture-core/build/js/private/utils/index.js";import{GestureRecognizer as a,PressGesturePlugin as o}from"@scandit/web-datacapture-core/build/js/private/GestureRecognizer/index.js";import{grays as s,neutrals as c,reds as l}from"@scandit/web-datacapture-core/build/js/private/ui/colors.js";var u=class u extends t{constructor(){super(),this._variant=`primary`,this._size=`default`,this._kind=`action`,this._disabled=!1,this._type=`button`,this.iconStartSlot=null,this.iconEndSlot=null,this.onIconSlotChangeListener=this.onIconSlotChange.bind(this),this.gestureRecognizer=null,this.associatedForm=null;let e=this.attachShadow({mode:`open`});e.innerHTML=i`<button type="button"><slot name="icon-start"></slot><span class="text"><slot></slot></span><slot name="icon-end"></slot></button>`,e.append(u.createStyleElement().cloneNode(!0)),this.iconStartSlot=e.querySelector(`slot[name="icon-start"]`),this.iconEndSlot=e.querySelector(`slot[name="icon-end"]`)}connectedCallback(){var e,t,n;let r=this.getAttribute(`variant`);(r===`primary`||r===`secondary`||r===`ghost`)&&(this._variant=r);let i=this.getAttribute(`size`);(i==="default"||i===`small`)&&(this._size=i);let s=this.getAttribute(`kind`);(s===`action`||s===`destructive`)&&(this._kind=s);let c=this.getAttribute(`type`);(c===`button`||c===`submit`||c===`reset`)&&(this._type=c);let l=this.getAttribute(`disabled`);this._disabled=l!==null,this.updateAttributes(),this.updateButtonState(),(e=this.iconStartSlot)==null||e.addEventListener(`slotchange`,this.onIconSlotChangeListener),(t=this.iconEndSlot)==null||t.addEventListener(`slotchange`,this.onIconSlotChangeListener),this.updateIconColors();let u=(n=this.shadowRoot)==null?void 0:n.querySelector(`button`);u&&(this.gestureRecognizer=new a(u,[new o]),this.gestureRecognizer.addListener(this))}disconnectedCallback(){var e,t,n;(e=this.iconStartSlot)==null||e.removeEventListener(`slotchange`,this.onIconSlotChangeListener),(t=this.iconEndSlot)==null||t.removeEventListener(`slotchange`,this.onIconSlotChangeListener),(n=this.gestureRecognizer)==null||n.removeAllListeners(),this.gestureRecognizer=null}formAssociatedCallback(e){this.associatedForm=e??null}formDisabledCallback(e){this.disabled=e}onPress(){if(!this._disabled){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(`button`);t==null||t.classList.add(`pressed`)}}onRelease(){this.unpress(),this._type===`submit`&&this.associatedForm&&this.associatedForm.requestSubmit()}onCancel(){this.unpress()}unpress(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(`button`);t==null||t.classList.remove(`pressed`)}onIconSlotChange(){this.updateIconColors()}updateIconColors(){let e=getComputedStyle(this).getPropertyValue(`--button-text-color`).trim();if(e){if(this.iconStartSlot){let t=this.iconStartSlot.assignedElements();for(let n of t)this.isScanditIcon(n)&&n.setAttribute(`iconcolor`,e)}if(this.iconEndSlot){let t=this.iconEndSlot.assignedElements();for(let n of t)this.isScanditIcon(n)&&n.setAttribute(`iconcolor`,e)}}}isScanditIcon(t){return t.tagName.toLowerCase()===e.tag.toLowerCase()}get variant(){return this._variant}set variant(e){this._variant!==e&&(this._variant=e,this.updateAttributes(),this.updateIconColors())}get size(){return this._size}set size(e){this._size!==e&&(this._size=e,this.updateAttributes())}get kind(){return this._kind}set kind(e){this._kind!==e&&(this._kind=e,this.updateAttributes(),this.updateIconColors())}get disabled(){return this._disabled}set disabled(e){this._disabled!==e&&(this._disabled=e,this.updateButtonState(),this.updateIconColors())}get type(){return this._type}set type(e){this._type!==e&&(this._type=e,this.updateAttributes(),this.updateButtonState())}updateAttributes(){this.setAttribute(`variant`,this._variant),this.setAttribute(`size`,this._size),this.setAttribute(`kind`,this._kind),this.setAttribute(`type`,this._type)}updateButtonState(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(`button`);t&&(t.type=this._type,this._disabled?(t.setAttribute(`disabled`,``),this.setAttribute(`disabled`,``),t.classList.remove(`pressed`)):(t.removeAttribute(`disabled`),this.removeAttribute(`disabled`)))}static get observedAttributes(){return[`variant`,`size`,`kind`,`disabled`,`type`]}attributeChangedCallback(e,t,n){if(t!==n)switch(e){case`variant`:(n===`primary`||n===`secondary`||n===`ghost`)&&(this._variant=n,this.updateIconColors());break;case`size`:(n==="default"||n===`small`)&&(this._size=n);break;case`kind`:(n===`action`||n===`destructive`)&&(this._kind=n,this.updateIconColors());break;case`disabled`:this._disabled=n!==null,this.updateButtonState(),this.updateIconColors();break;case`type`:(n===`button`||n===`submit`||n===`reset`)&&(this._type=n,this.updateButtonState());break}}set text(e){var t;let n=(t=this.shadowRoot)==null?void 0:t.querySelector(`.text`);n&&(n.innerHTML=e)}get text(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(`.text`);return(t==null?void 0:t.innerHTML)??``}set textContent(e){var t;let n=(t=this.shadowRoot)==null?void 0:t.querySelector(`.text`);n&&(n.textContent=e)}get textContent(){var e;let t=(e=this.shadowRoot)==null?void 0:e.querySelector(`.text`);return(t==null?void 0:t.textContent)??``}static create(){return u.register(),document.createElement(u.tag)}static register(){r({[u.tag]:u})}static createStyleElement(){return n`:host{display:inline-block;--button-text-color:#fff}:host([hidden]){display:none}:host button{align-items:center;border:1px solid #0000;border-radius:.5rem;cursor:pointer;display:flex;font-weight:700;gap:.25rem;justify-content:center;max-width:200px;min-width:140px;position:relative;text-align:center;transition:all .2s ease;width:100%;-webkit-tap-highlight-color:transparent}:host([size=default]) button{font-size:.875rem;padding:.5rem 1rem}:host([size=small]) button{font-size:.75rem;max-width:150px;min-width:auto;padding:.375rem .75rem}:host([variant=primary][kind=action]){--button-text-color:#${c.neutralWhite.toJSON()}}:host([variant=primary][kind=action]) button{background-color:#${s.gray90.toJSON()};color:var(--button-text-color)}:host([variant=primary][kind=action]) button:hover:not(:disabled){background-color:#${s.gray70.toJSON()}}:host([variant=primary][kind=action]) button.pressed:not(:disabled){background-color:#${c.neutralBlack.toJSON()}}:host([variant=primary][kind=destructive]){--button-text-color:#${c.neutralWhite.toJSON()}}:host([variant=primary][kind=destructive]) button{background-color:#${l.red60.toJSON()};color:var(--button-text-color)}:host([variant=primary][kind=destructive]) button:hover:not(:disabled){background-color:#${l.red50.toJSON()}}:host([variant=primary][kind=destructive]) button.pressed:not(:disabled){background-color:#${l.red70.toJSON()}}:host([variant=secondary][kind=action]){--button-text-color:#${c.neutralBlack.toJSON()}}:host([variant=secondary][kind=action]) button{background-color:#${c.neutralWhite.toJSON()};border-color:#${s.gray60.toJSON()};color:var(--button-text-color)}:host([variant=secondary][kind=action]) button:hover:not(:disabled){background-color:#${s.gray5.toJSON()}}:host([variant=secondary][kind=action]) button.pressed:not(:disabled){background-color:#${s.gray10.toJSON()}}:host([variant=secondary][kind=destructive]){--button-text-color:#${l.red60.toJSON()}}:host([variant=secondary][kind=destructive]) button{background-color:#${c.neutralWhite.toJSON()};border-color:#${l.red60.toJSON()};color:var(--button-text-color)}:host([variant=secondary][kind=destructive]) button:hover:not(:disabled){background-color:#${l.red5.toJSON()}}:host([variant=secondary][kind=destructive]) button.pressed:not(:disabled){background-color:#${l.red10.toJSON()};color:var(--button-text-color)}:host([variant=ghost][kind=action]){--button-text-color:#${c.neutralBlack.toJSON()}}:host([variant=ghost][kind=action]) button{background-color:#${c.neutralWhite.toJSON()};border-color:#0000;color:var(--button-text-color)}:host([variant=ghost][kind=action]) button:hover:not(:disabled){background-color:#${s.gray5.toJSON()}}:host([variant=ghost][kind=action]) button.pressed:not(:disabled){background-color:#${s.gray10.toJSON()}}:host([variant=ghost][kind=destructive]){--button-text-color:#${l.red60.toJSON()}}:host([variant=ghost][kind=destructive]) button{background-color:initial;border-color:#0000;color:var(--button-text-color)}:host([variant=ghost][kind=destructive]) button:hover:not(:disabled){background-color:#fedada;color:#fb696b}:host([variant=ghost][kind=destructive]) button.pressed:not(:disabled){background-color:#fc8f90;color:var(--button-text-color)}:host([disabled]),:host([variant][kind][disabled]){--button-text-color:#${s.gray30.toJSON()}}:host([disabled]) button:disabled,:host([variant][kind]) button:disabled{background-color:#${s.gray10.toJSON()};border-color:#0000;cursor:not-allowed;pointer-events:none}:host([variant=ghost][kind]) button:disabled{background-color:initial}:host button .text{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host button ::slotted([name=icon-end]),:host button ::slotted([name=icon-start]){align-items:center;display:inline-flex;flex:1 1 0;min-width:0}:host button ::slotted([name=icon-start]){justify-content:flex-start}:host button ::slotted([name=icon-end]){justify-content:flex-end}`}};u.tag=`scandit-button`,u.formAssociated=!0;export{u as Button};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ScanditHTMLElement } from "@scandit/web-datacapture-core/build/js/private/utils/index.js";
|
|
2
2
|
import { Color } from "@scandit/web-datacapture-core/build/js/commons/Color.js";
|
|
3
|
-
|
|
4
3
|
//#region src/main/ui/atoms/TextInput.d.ts
|
|
5
4
|
type TextInputType = "text" | "number";
|
|
6
5
|
declare const TextInputEvents: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ScanditHTMLElement as e,css as t,defineCustomElements as n,html as r}from"@scandit/web-datacapture-core/build/js/private/utils/index.js";import{grays as i,reds as a}from"@scandit/web-datacapture-core/build/js/private/ui/colors.js";import{Color as o}from"@scandit/web-datacapture-core/build/js/commons/Color.js";import{CrossSvgIcon as s}from"@scandit/web-datacapture-core/build/js/private/ui/atoms/CrossSvgIcon.js";import{ScanSvgIcon as c}from"@scandit/web-datacapture-core/build/js/private/ui/atoms/ScanSvgIcon.js";const l={Input:`scandit-text-input-input`,Focus:`scandit-text-input-focus`,Blur:`scandit-text-input-blur`,Clear:`scandit-text-input-clear`,Scan:`scandit-text-input-scan`,Keydown:`scandit-text-input-keydown`};var u=class extends CustomEvent{constructor(e){super(l.Scan,{detail:e,bubbles:!0,composed:!0})}},d=class extends CustomEvent{constructor(e){super(l.Clear,{detail:e,bubbles:!0,composed:!0})}},f=class extends CustomEvent{constructor(e){super(l.Focus,{detail:e,bubbles:!0,composed:!0})}},p=class extends CustomEvent{constructor(e){super(l.Blur,{detail:e,bubbles:!0,composed:!0})}},m=class extends CustomEvent{constructor(e){super(l.Input,{detail:e,bubbles:!0,composed:!0})}},h=class extends CustomEvent{constructor(e){super(l.Keydown,{detail:e,bubbles:!0,composed:!0})}};const g=r`<div class="main-wrapper"><label class="label-text"></label><div class="input-container"><input class="input" autocomplete="off" enterkeyhint="done"><div class="icons-container"><div id="icon-left"></div><hr class="icon-divider"><div id="icon-right"></div></div></div><div class="hint-message"></div></div>`;var _=class r extends e{static createStyleElement(){return t`:host{display:block;-webkit-tap-highlight-color:transparent}input{background-color:initial;border:none;font-size:1rem;font-style:normal;font-weight:400;outline:none;padding:0;-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;color:#${i.gray60.toJSON()};transition:color .2s ease-in-out;user-select:none;-webkit-user-select:none;width:100%}input::placeholder{color:#${i.gray30.toJSON()};opacity:1}:host([has-value]) input{color:#${i.gray90.toJSON()}}input:focus,input:focus-visible{color:#${i.gray90.toJSON()};outline:none}:host([disabled]) .hint-message,:host([disabled]) .label-text,:host([disabled]) input{color:#${i.gray30.toJSON()}}:host([disabled]) .input-container{border-color:#${i.gray5.toJSON()}}.main-wrapper{cursor:pointer;display:flex;flex-direction:column;flex-grow:1;gap:.25rem;padding:0 1px}.hint-message,.label-text{font-style:normal;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hint-message{font-size:.75rem;min-height:.875rem;transition:opacity .2s ease-in-out}.label-text{color:#${i.gray60.toJSON()};font-size:.875rem}:host(:hover:not([disabled]):not([readonly])) .input-container{background-color:#${i.gray5.toJSON()};border-color:#${i.gray20.toJSON()}}.input-container{background-color:#${i.gray5.toJSON()};border:1px solid #${i.gray10.toJSON()};border-radius:4px;box-shadow:0 0 0 1px #0000;display:flex;flex-direction:row;gap:.5rem;justify-content:space-evenly;min-height:1.5rem;padding:.5rem .75rem;transition:border-color .2s ease-in-out,background-color .2s ease-in-out,box-shadow .2s ease-in-out}.icons-container{align-items:center;display:flex;gap:.5rem;justify-content:center}:host([has-value][focused]) .icons-container .icon-divider{opacity:1}:host ${s.tag}{opacity:0;pointer-events:none;transition:opacity .2s ease-in-out}:host([has-value][focused]) ${s.tag}{opacity:1;pointer-events:auto}:host([hide-scan-icon]) .icons-container .icon-divider,:host([hide-scan-icon]) ${c.tag}{display:none}.icons-container .icon-divider{background-color:#${i.gray20.toJSON()};border:none;height:100%;margin:0;opacity:0;padding:0;transition:opacity .2s ease-in-out;width:1px}:host([disabled]) .icons-container,:host([readonly]) .icons-container{display:none}:host([disabled]),:host([readonly]){cursor:not-allowed;pointer-events:none}:host([focused]:not([disabled]):not([readonly])) .input-container{border-color:#${i.gray90.toJSON()};box-shadow:0 0 0 1px #${i.gray90.toJSON()}}:host([invalid]) .input-container{background-color:#${a.red5.toJSON()};border-color:#${a.red30.toJSON()};box-shadow:0 0 0 1px #${a.red30.toJSON()}}:host([invalid][focused]) .input-container{background-color:#${a.red5.toJSON()}!important;border-color:#${a.red60.toJSON()}!important;box-shadow:0 0 0 1px #${a.red60.toJSON()}!important}:host(:hover[invalid]:not([focused])) .input-container{background-color:#${a.red5.toJSON()}!important;border-color:#${a.red30.toJSON()}!important;box-shadow:0 0 0 1px #${a.red30.toJSON()}!important}:host([invalid]) .hint-message{color:#${a.red60.toJSON()}}:host([loading]) .input{animation:loading-shimmer 2.5s linear infinite;background:linear-gradient(90deg,#0000004d,#000c 40%,#000 50%,#000c 60%,#0000004d);background-clip:text;-webkit-background-clip:text;background-size:200% 100%;color:#000;color:#0000}@keyframes loading-shimmer{0%{background-position-x:-100%}to{background-position-x:100%}}@media (prefers-reduced-motion:reduce){:host([loading]) .input{animation:none;background:#0003;background-clip:unset;-webkit-background-clip:unset;color:#${i.gray60.toJSON()}}}`}constructor(){super(),this._inputElement=null,this._labelElement=null,this._mainWrapper=null,this._inputContainer=null,this._iconContainerElement=null,this._hintMessageElement=null,this._type=`text`,this._value=``,this._label=``,this._placeholder=``,this._required=!1,this._isInitialized=!1,this._handleInput=this._onInput.bind(this),this._handleFocus=this._onFocus.bind(this),this._handleBlur=this._onBlur.bind(this),this._handleKeydown=this._onKeydown.bind(this),this._handleCrossIconPointerDown=this._onCrossIconPointerDown.bind(this),this._handleCrossIconPointerUp=this._onCrossIconPointerUp.bind(this),this._handleCrossIconKeyDown=this._onCrossIconKeyDown.bind(this),this._handleScanIconPointerDown=this._onScanIconPointerDown.bind(this),this._handleScanIconPointerUp=this._onScanIconPointerUp.bind(this),this._handleScanIconKeyDown=this._onScanIconKeyDown.bind(this),this._crossIcon=null,this._scanIcon=null,this._hintMessage=``,this._loadingText=``,this._clearTabIndexTimeout=void 0,this._internals=typeof this.attachInternals==`function`?this.attachInternals():void 0;let e=this.attachShadow({mode:`open`});e.innerHTML=g,e.appendChild(r.createStyleElement()),this._inputElement=e.querySelector(`.input`),this._labelElement=e.querySelector(`.label-text`),this._mainWrapper=e.querySelector(`.main-wrapper`),this._inputContainer=e.querySelector(`.input-container`),this._iconContainerElement=e.querySelector(`.icons-container`),this._hintMessageElement=e.querySelector(`.hint-message`)}get hintMessage(){var e;return((e=this._hintMessageElement)==null?void 0:e.textContent)||``}set hintMessage(e){this.invalid?this._setValidityState({customError:!0},e):(this._hintMessage=e,this._hintMessageElement&&(this._hintMessageElement.textContent=e))}get loading(){return this.hasAttribute(`loading`)}set loading(e){this.toggleAttribute(`loading`,e),this._updateInputDisplay()}get loadingText(){return this._loadingText}set loadingText(e){this._loadingText=e,this._updateInputDisplay()}get value(){return this._value}set value(e){if(this._value=e,this._inputElement){var t;let n=e.length>0;this.toggleAttribute(`has-value`,n),this._updateCrossIconTabIndex(),(t=this._internals)==null||t.setFormValue(e),this._updateInputDisplay(),this._required&&n&&this.invalid&&this._setValidityState({})}}get name(){var e;return this.getAttribute(`name`)||((e=this._inputElement)==null?void 0:e.name)||``}set name(e){if(e?this.setAttribute(`name`,e):this.removeAttribute(`name`),this._inputElement&&this._labelElement){var t;(t=this._labelElement)==null||t.setAttribute(`for`,e),this._inputElement.name=e,this._inputElement.id=e}}get type(){return this._type}set type(e){this._type=e,this._inputElement&&(this._type===`number`?(this._inputElement.type=`number`,this._inputElement.inputMode=`numeric`):this._inputElement.type=`text`)}get label(){return this._label}set label(e){this._label=e,this._labelElement&&(this._labelElement.textContent=e||``),e?this.setAttribute(`aria-label`,e):this.removeAttribute(`aria-label`)}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,e?this.setAttribute(`placeholder`,e):this.removeAttribute(`placeholder`),this._inputElement&&(this._inputElement.placeholder=e)}get required(){var e;return((e=this._inputElement)==null?void 0:e.required)??this._required??!1}set required(e){this._required=e,this.toggleAttribute(`required`,e),this._inputElement&&(this._inputElement.required=e,this._inputElement.setAttribute(`aria-required`,String(e))),this._isInitialized&&e&&!this._value&&this._setValidityState({valueMissing:!0},`This field is required`)}get invalid(){return this.hasAttribute(`invalid`)}set invalid(e){e?this._setValidityState({customError:!0},this._hintMessage):this._setValidityState({})}set readOnly(e){this.toggleAttribute(`readonly`,e),this._inputElement&&(this._inputElement.readOnly=e)}get readOnly(){return this.hasAttribute(`readonly`)}set disabled(e){var t;this.toggleAttribute(`disabled`,e),this._inputElement&&(this._inputElement.disabled=e),(t=this._internals)==null||t.setFormValue(this._value)}get disabled(){return this.hasAttribute(`disabled`)}set hideScanIcon(e){this.toggleAttribute(`hide-scan-icon`,e)}get hideScanIcon(){return this.hasAttribute(`hide-scan-icon`)}set backgroundColor(e){this._inputContainer&&(this._inputContainer.style.backgroundColor=e instanceof o?`#${e.toJSON()}`:e)}checkValidity(){return this._inputElement?this._inputElement.validity.valid:!0}reportValidity(){var e;return((e=this._internals)==null?void 0:e.reportValidity())??!0}setValidationState(e,t){var n;if(e)this._setValidityState({});else{let e=t===void 0?``:t;this._setValidityState({customError:!0},e)}(n=this._mainWrapper)==null||n.classList.add(`validation-triggered`)}resetValidation(){var e;this._setValidityState({}),(e=this._mainWrapper)==null||e.classList.remove(`validation-triggered`)}setCustomValidity(e){this._inputElement&&(this._inputElement.setCustomValidity(e),e.length>0?this._setValidityState({customError:!0},e):this._setValidityState({}))}_setValidityState(e,t=``){let n=Object.values(e).some(e=>e===!0);if(this.toggleAttribute(`invalid`,n),n){var r;let n=t||`This field is invalid`;(r=this._internals)==null||r.setValidity(e,n)}else{var i;(i=this._internals)==null||i.setValidity({})}if(this._hintMessage=t,this._hintMessageElement&&(this._hintMessageElement.textContent=t||``),this._inputElement)if(this._inputElement.setAttribute(`aria-invalid`,String(n)),n&&t){var a;let e=`${this._inputElement.id||`text-input`}-hint`;(a=this._hintMessageElement)==null||a.setAttribute(`id`,e),this._inputElement.setAttribute(`aria-describedby`,e)}else this._inputElement.removeAttribute(`aria-describedby`)}_onInput(e){if(!this._inputElement)return;let t=e.target.value,n=t.length>0;this.toggleAttribute(`has-value`,n),this.value=t,this._updateCrossIconTabIndex(),this.invalid&&this.resetValidation(),this.dispatchEvent(new m({target:this,innerInput:this._inputElement,value:this._value}))}_onFocus(e){this.setAttribute(`focused`,``),this._updateCrossIconTabIndex(),this.dispatchEvent(new f({target:this,innerInput:this._inputElement,value:this._value}))}_onBlur(e){this.removeAttribute(`focused`),this._updateCrossIconTabIndex(),typeof document<`u`&&document.body&&this.contains(document.activeElement)&&(clearTimeout(this._clearTabIndexTimeout),document.body.tabIndex=-1,document.body.focus({preventScroll:!0}),this._clearTabIndexTimeout=setTimeout(()=>{document.body.removeAttribute(`tabindex`)},10)),this.dispatchEvent(new p({target:this,innerInput:this._inputElement,value:this._value}))}_onKeydown(e){this.dispatchEvent(new h({target:this,key:e.key,originalEvent:e}))}focus(e){super.focus(e),this._inputElement&&this._inputElement.focus(e)}select(){var e,t;(e=this._inputElement)==null||(t=e.select)==null||t.call(e)}blur(){var e,t;super.blur(),(e=this._inputElement)==null||(t=e.blur)==null||t.call(e)}scrollIntoView(e){var t;(t=this._inputElement)==null||t.scrollIntoView(e),super.scrollIntoView(e)}_initializeIcons(){var e,t;s.register(),c.register();let n=(e=this._iconContainerElement)==null?void 0:e.querySelector(`#icon-left`);n&&(this._crossIcon=s.create(),this._crossIcon.size=20,this._crossIcon.setAttribute(`aria-label`,`Clear input`),this._crossIcon.setAttribute(`role`,`button`),this._updateCrossIconTabIndex(),n.replaceWith(this._crossIcon));let r=(t=this._iconContainerElement)==null?void 0:t.querySelector(`#icon-right`);r&&(this._scanIcon=c.create(),this._scanIcon.size=20,this._scanIcon.setAttribute(`aria-label`,`Scan barcode`),this._scanIcon.setAttribute(`role`,`button`),this._scanIcon.setAttribute(`tabindex`,`0`),r.replaceWith(this._scanIcon))}_updateCrossIconTabIndex(){!this._crossIcon||!this._scanIcon||(this.hasAttribute(`has-value`)?(this._crossIcon.setAttribute(`tabindex`,`0`),this._scanIcon.setAttribute(`tabindex`,`0`)):(this._crossIcon.setAttribute(`tabindex`,`-1`),this._scanIcon.setAttribute(`tabindex`,`0`)))}_updateInputDisplay(){this._inputElement&&(this.loading&&this._loadingText?this._inputElement.value=this._loadingText:this._inputElement.value=this._value)}connectedCallback(){this.setAttribute(`role`,`textbox`),this._initializeAttributesFromElement(),this._initializeIcons(),this._addEventListeners(),this._isInitialized=!0}_initializeAttributesFromElement(){if(this.hasAttribute(`name`)&&(this.name=this.getAttribute(`name`)||``),this.hasAttribute(`label`)&&(this.label=this.getAttribute(`label`)||``),this.hasAttribute(`placeholder`)&&(this.placeholder=this.getAttribute(`placeholder`)||``),this.hasAttribute(`type`)){let e=this.getAttribute(`type`);(e===`text`||e===`number`)&&(this.type=e)}this.hasAttribute(`value`)&&(this.value=this.getAttribute(`value`)||``),this.hasAttribute(`required`)&&(this.required=this.getAttribute(`required`)!==null),this.hasAttribute(`invalid`)&&(this.invalid=this.getAttribute(`invalid`)!==null),this.hasAttribute(`hide-scan-icon`)&&(this.hideScanIcon=this.getAttribute(`hide-scan-icon`)!==null),this._hintMessageElement&&(this.hintMessage=this._hintMessage||``)}disconnectedCallback(){var e,t;this._isInitialized=!1,clearTimeout(this._clearTabIndexTimeout),this._removeEventListeners(),(e=this._crossIcon)==null||e.remove(),(t=this._scanIcon)==null||t.remove()}formAssociatedCallback(e){}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.getAttribute(`value`)||``,this.resetValidation()}_addEventListeners(){var e,t,n,r,i,a;this._inputElement&&(this._inputElement.addEventListener(`input`,this._handleInput),this._inputElement.addEventListener(`focus`,this._handleFocus),this._inputElement.addEventListener(`blur`,this._handleBlur),this._inputElement.addEventListener(`keydown`,this._handleKeydown),(e=this._crossIcon)==null||e.addEventListener(`pointerdown`,this._handleCrossIconPointerDown,{capture:!0}),(t=this._crossIcon)==null||t.addEventListener(`pointerup`,this._handleCrossIconPointerUp),(n=this._crossIcon)==null||n.addEventListener(`keydown`,this._handleCrossIconKeyDown),(r=this._scanIcon)==null||r.addEventListener(`pointerdown`,this._handleScanIconPointerDown,{capture:!0}),(i=this._scanIcon)==null||i.addEventListener(`pointerup`,this._handleScanIconPointerUp),(a=this._scanIcon)==null||a.addEventListener(`keydown`,this._handleScanIconKeyDown))}_removeEventListeners(){var e,t,n,r,i,a;this._inputElement&&(this._inputElement.removeEventListener(`input`,this._handleInput),this._inputElement.removeEventListener(`focus`,this._handleFocus),this._inputElement.removeEventListener(`blur`,this._handleBlur),this._inputElement.removeEventListener(`keydown`,this._handleKeydown),(e=this._crossIcon)==null||e.removeEventListener(`pointerdown`,this._handleCrossIconPointerDown),(t=this._crossIcon)==null||t.removeEventListener(`pointerup`,this._handleCrossIconPointerUp),(n=this._crossIcon)==null||n.removeEventListener(`keydown`,this._handleCrossIconKeyDown),(r=this._scanIcon)==null||r.removeEventListener(`pointerdown`,this._handleScanIconPointerDown),(i=this._scanIcon)==null||i.removeEventListener(`pointerup`,this._handleScanIconPointerUp),(a=this._scanIcon)==null||a.removeEventListener(`keydown`,this._handleScanIconKeyDown))}_onCrossIconPointerDown(e){e&&e.preventDefault()}_onCrossIconPointerUp(e){!e||!this._crossIcon||(e.preventDefault(),this._triggerClear())}_onCrossIconKeyDown(e){!e||!this._crossIcon||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),this._triggerClear())}_onScanIconPointerDown(e){e&&(e.preventDefault(),e.stopPropagation())}_onScanIconPointerUp(e){!e||!this._scanIcon||(e.preventDefault(),e.stopPropagation(),this._triggerScan())}_triggerClear(){this.dispatchEvent(new d({target:this,innerInput:this._inputElement,value:this._value}))}_onScanIconKeyDown(e){!e||!this._scanIcon||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),this._triggerScan())}_triggerScan(){this.dispatchEvent(new u({target:this,innerInput:this._inputElement,value:this._value}))}static create(){return document.createElement(r.tag)}static register(){n({[r.tag]:r})}};_.tag=`scandit-text-input`,_.formAssociated=!0;export{_ as TextInput,p as TextInputBlurEvent,d as TextInputClearEvent,l as TextInputEvents,f as TextInputFocusEvent,m as TextInputInputEvent,h as TextInputKeydownEvent,u as TextInputScanEvent};
|
|
1
|
+
import{ScanditHTMLElement as e,css as t,defineCustomElements as n,html as r}from"@scandit/web-datacapture-core/build/js/private/utils/index.js";import{grays as i,reds as a}from"@scandit/web-datacapture-core/build/js/private/ui/colors.js";import{Color as o}from"@scandit/web-datacapture-core/build/js/commons/Color.js";import{CrossSvgIcon as s}from"@scandit/web-datacapture-core/build/js/private/ui/atoms/CrossSvgIcon.js";import{ScanSvgIcon as c}from"@scandit/web-datacapture-core/build/js/private/ui/atoms/ScanSvgIcon.js";const l={Input:`scandit-text-input-input`,Focus:`scandit-text-input-focus`,Blur:`scandit-text-input-blur`,Clear:`scandit-text-input-clear`,Scan:`scandit-text-input-scan`,Keydown:`scandit-text-input-keydown`};var u=class extends CustomEvent{constructor(e){super(l.Scan,{detail:e,bubbles:!0,composed:!0})}},d=class extends CustomEvent{constructor(e){super(l.Clear,{detail:e,bubbles:!0,composed:!0})}},f=class extends CustomEvent{constructor(e){super(l.Focus,{detail:e,bubbles:!0,composed:!0})}},p=class extends CustomEvent{constructor(e){super(l.Blur,{detail:e,bubbles:!0,composed:!0})}},m=class extends CustomEvent{constructor(e){super(l.Input,{detail:e,bubbles:!0,composed:!0})}},h=class extends CustomEvent{constructor(e){super(l.Keydown,{detail:e,bubbles:!0,composed:!0})}};const g=r`<div class="main-wrapper"><label class="label-text"></label><div class="input-container"><input class="input" autocomplete="off" enterkeyhint="done"><div class="icons-container"><div id="icon-left"></div><hr class="icon-divider"><div id="icon-right"></div></div></div><div class="hint-message"></div></div>`;var _=class r extends e{static createStyleElement(){return t`:host{display:block;-webkit-tap-highlight-color:transparent}input{background-color:initial;border:none;font-size:1rem;font-style:normal;font-weight:400;outline:none;padding:0;-webkit-tap-highlight-color:transparent;-webkit-appearance:none;appearance:none;color:#${i.gray60.toJSON()};transition:color .2s ease-in-out;user-select:none;-webkit-user-select:none;width:100%}input::placeholder{color:#${i.gray30.toJSON()};opacity:1}:host([has-value]) input{color:#${i.gray90.toJSON()}}input:focus,input:focus-visible{color:#${i.gray90.toJSON()};outline:none}:host([disabled]) .hint-message,:host([disabled]) .label-text,:host([disabled]) input{color:#${i.gray30.toJSON()}}:host([disabled]) .input-container{border-color:#${i.gray5.toJSON()}}.main-wrapper{cursor:pointer;display:flex;flex-direction:column;flex-grow:1;gap:.25rem;padding:0 1px}.hint-message,.label-text{font-style:normal;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hint-message{font-size:.75rem;min-height:.875rem;transition:opacity .2s ease-in-out}.label-text{color:#${i.gray60.toJSON()};font-size:.875rem}:host(:hover:not([disabled]):not([readonly])) .input-container{background-color:#${i.gray5.toJSON()};border-color:#${i.gray20.toJSON()}}.input-container{background-color:#${i.gray5.toJSON()};border:1px solid #${i.gray10.toJSON()};border-radius:4px;box-shadow:0 0 0 1px #0000;display:flex;flex-direction:row;gap:.5rem;justify-content:space-evenly;min-height:1.5rem;padding:.5rem .75rem;transition:border-color .2s ease-in-out,background-color .2s ease-in-out,box-shadow .2s ease-in-out}.icons-container{align-items:center;display:flex;gap:.5rem;justify-content:center}:host([has-value][focused]) .icons-container .icon-divider{opacity:1}:host ${s.tag}{opacity:0;pointer-events:none;transition:opacity .2s ease-in-out}:host([has-value][focused]) ${s.tag}{opacity:1;pointer-events:auto}:host([hide-scan-icon]) .icons-container .icon-divider,:host([hide-scan-icon]) ${c.tag}{display:none}.icons-container .icon-divider{background-color:#${i.gray20.toJSON()};border:none;height:100%;margin:0;opacity:0;padding:0;transition:opacity .2s ease-in-out;width:1px}:host([disabled]) .icons-container,:host([readonly]) .icons-container{display:none}:host([disabled]),:host([readonly]){cursor:not-allowed;pointer-events:none}:host([focused]:not([disabled]):not([readonly])) .input-container{border-color:#${i.gray90.toJSON()};box-shadow:0 0 0 1px #${i.gray90.toJSON()}}:host([invalid]) .input-container{background-color:#${a.red5.toJSON()};border-color:#${a.red30.toJSON()};box-shadow:0 0 0 1px #${a.red30.toJSON()}}:host([invalid][focused]) .input-container{background-color:#${a.red5.toJSON()}!important;border-color:#${a.red60.toJSON()}!important;box-shadow:0 0 0 1px #${a.red60.toJSON()}!important}:host(:hover[invalid]:not([focused])) .input-container{background-color:#${a.red5.toJSON()}!important;border-color:#${a.red30.toJSON()}!important;box-shadow:0 0 0 1px #${a.red30.toJSON()}!important}:host([invalid]) .hint-message{color:#${a.red60.toJSON()}}:host([loading]) .input{animation:loading-shimmer 2.5s linear infinite;background:linear-gradient(90deg,#0000004d,#000c 40%,#000 50%,#000c 60%,#0000004d);background-clip:text;-webkit-background-clip:text;background-size:200% 100%;color:#000;color:#0000}@keyframes loading-shimmer{0%{background-position-x:-100%}to{background-position-x:100%}}@media (prefers-reduced-motion:reduce){:host([loading]) .input{animation:none;background:#0003;background-clip:unset;-webkit-background-clip:unset;color:#${i.gray60.toJSON()}}}`}constructor(){super(),this._inputElement=null,this._labelElement=null,this._mainWrapper=null,this._inputContainer=null,this._iconContainerElement=null,this._hintMessageElement=null,this._type=`text`,this._value=``,this._label=``,this._placeholder=``,this._required=!1,this._isInitialized=!1,this._handleInput=this._onInput.bind(this),this._handleFocus=this._onFocus.bind(this),this._handleBlur=this._onBlur.bind(this),this._handleKeydown=this._onKeydown.bind(this),this._handleCrossIconPointerDown=this._onCrossIconPointerDown.bind(this),this._handleCrossIconPointerUp=this._onCrossIconPointerUp.bind(this),this._handleCrossIconKeyDown=this._onCrossIconKeyDown.bind(this),this._handleScanIconPointerDown=this._onScanIconPointerDown.bind(this),this._handleScanIconPointerUp=this._onScanIconPointerUp.bind(this),this._handleScanIconKeyDown=this._onScanIconKeyDown.bind(this),this._crossIcon=null,this._scanIcon=null,this._hintMessage=``,this._loadingText=``,this._clearTabIndexTimeout=void 0,this._internals=typeof this.attachInternals==`function`?this.attachInternals():void 0;let e=this.attachShadow({mode:`open`});e.innerHTML=g,e.appendChild(r.createStyleElement()),this._inputElement=e.querySelector(`.input`),this._labelElement=e.querySelector(`.label-text`),this._mainWrapper=e.querySelector(`.main-wrapper`),this._inputContainer=e.querySelector(`.input-container`),this._iconContainerElement=e.querySelector(`.icons-container`),this._hintMessageElement=e.querySelector(`.hint-message`)}get hintMessage(){var e;return((e=this._hintMessageElement)==null?void 0:e.textContent)||``}set hintMessage(e){this.invalid?this._setValidityState({customError:!0},e):(this._hintMessage=e,this._hintMessageElement&&(this._hintMessageElement.textContent=e))}get loading(){return this.hasAttribute(`loading`)}set loading(e){this.toggleAttribute(`loading`,e),this._updateInputDisplay()}get loadingText(){return this._loadingText}set loadingText(e){this._loadingText=e,this._updateInputDisplay()}get value(){return this._value}set value(e){if(this._value=e,this._inputElement){var t;let n=e.length>0;this.toggleAttribute(`has-value`,n),this._updateCrossIconTabIndex(),(t=this._internals)==null||t.setFormValue(e),this._updateInputDisplay(),this._required&&n&&this.invalid&&this._setValidityState({})}}get name(){var e;return this.getAttribute(`name`)||((e=this._inputElement)==null?void 0:e.name)||``}set name(e){if(e?this.setAttribute(`name`,e):this.removeAttribute(`name`),this._inputElement&&this._labelElement){var t;(t=this._labelElement)==null||t.setAttribute(`for`,e),this._inputElement.name=e,this._inputElement.id=e}}get type(){return this._type}set type(e){this._type=e,this._inputElement&&(this._type===`number`?(this._inputElement.type=`number`,this._inputElement.inputMode=`numeric`):this._inputElement.type=`text`)}get label(){return this._label}set label(e){this._label=e,this._labelElement&&(this._labelElement.textContent=e||``),e?this.setAttribute(`aria-label`,e):this.removeAttribute(`aria-label`)}get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,e?this.setAttribute(`placeholder`,e):this.removeAttribute(`placeholder`),this._inputElement&&(this._inputElement.placeholder=e)}get required(){var e;return((e=this._inputElement)==null?void 0:e.required)??this._required??!1}set required(e){this._required=e,this.toggleAttribute(`required`,e),this._inputElement&&(this._inputElement.required=e,this._inputElement.setAttribute(`aria-required`,String(e))),this._isInitialized&&e&&!this._value&&this._setValidityState({valueMissing:!0},`This field is required`)}get invalid(){return this.hasAttribute(`invalid`)}set invalid(e){e?this._setValidityState({customError:!0},this._hintMessage):this._setValidityState({})}set readOnly(e){this.toggleAttribute(`readonly`,e),this._inputElement&&(this._inputElement.readOnly=e)}get readOnly(){return this.hasAttribute(`readonly`)}set disabled(e){var t;this.toggleAttribute(`disabled`,e),this._inputElement&&(this._inputElement.disabled=e),(t=this._internals)==null||t.setFormValue(this._value)}get disabled(){return this.hasAttribute(`disabled`)}set hideScanIcon(e){this.toggleAttribute(`hide-scan-icon`,e)}get hideScanIcon(){return this.hasAttribute(`hide-scan-icon`)}set backgroundColor(e){this._inputContainer&&(this._inputContainer.style.backgroundColor=e instanceof o?`#${e.toJSON()}`:e)}checkValidity(){return!this._inputElement||this._inputElement.validity.valid}reportValidity(){var e;return((e=this._internals)==null?void 0:e.reportValidity())??!0}setValidationState(e,t){var n;if(e)this._setValidityState({});else{let e=t===void 0?``:t;this._setValidityState({customError:!0},e)}(n=this._mainWrapper)==null||n.classList.add(`validation-triggered`)}resetValidation(){var e;this._setValidityState({}),(e=this._mainWrapper)==null||e.classList.remove(`validation-triggered`)}setCustomValidity(e){this._inputElement&&(this._inputElement.setCustomValidity(e),e.length>0?this._setValidityState({customError:!0},e):this._setValidityState({}))}_setValidityState(e,t=``){let n=Object.values(e).some(e=>e===!0);if(this.toggleAttribute(`invalid`,n),n){var r;let n=t||`This field is invalid`;(r=this._internals)==null||r.setValidity(e,n)}else{var i;(i=this._internals)==null||i.setValidity({})}if(this._hintMessage=t,this._hintMessageElement&&(this._hintMessageElement.textContent=t||``),this._inputElement)if(this._inputElement.setAttribute(`aria-invalid`,String(n)),n&&t){var a;let e=`${this._inputElement.id||`text-input`}-hint`;(a=this._hintMessageElement)==null||a.setAttribute(`id`,e),this._inputElement.setAttribute(`aria-describedby`,e)}else this._inputElement.removeAttribute(`aria-describedby`)}_onInput(e){if(!this._inputElement)return;let t=e.target.value,n=t.length>0;this.toggleAttribute(`has-value`,n),this.value=t,this._updateCrossIconTabIndex(),this.invalid&&this.resetValidation(),this.dispatchEvent(new m({target:this,innerInput:this._inputElement,value:this._value}))}_onFocus(e){this.setAttribute(`focused`,``),this._updateCrossIconTabIndex(),this.dispatchEvent(new f({target:this,innerInput:this._inputElement,value:this._value}))}_onBlur(e){this.removeAttribute(`focused`),this._updateCrossIconTabIndex(),typeof document<`u`&&document.body&&this.contains(document.activeElement)&&(clearTimeout(this._clearTabIndexTimeout),document.body.tabIndex=-1,document.body.focus({preventScroll:!0}),this._clearTabIndexTimeout=setTimeout(()=>{document.body.removeAttribute(`tabindex`)},10)),this.dispatchEvent(new p({target:this,innerInput:this._inputElement,value:this._value}))}_onKeydown(e){this.dispatchEvent(new h({target:this,key:e.key,originalEvent:e}))}focus(e){super.focus(e),this._inputElement&&this._inputElement.focus(e)}select(){var e,t;(e=this._inputElement)==null||(t=e.select)==null||t.call(e)}blur(){var e,t;super.blur(),(e=this._inputElement)==null||(t=e.blur)==null||t.call(e)}scrollIntoView(e){var t;(t=this._inputElement)==null||t.scrollIntoView(e),super.scrollIntoView(e)}_initializeIcons(){var e,t;s.register(),c.register();let n=(e=this._iconContainerElement)==null?void 0:e.querySelector(`#icon-left`);n&&(this._crossIcon=s.create(),this._crossIcon.size=20,this._crossIcon.setAttribute(`aria-label`,`Clear input`),this._crossIcon.setAttribute(`role`,`button`),this._updateCrossIconTabIndex(),n.replaceWith(this._crossIcon));let r=(t=this._iconContainerElement)==null?void 0:t.querySelector(`#icon-right`);r&&(this._scanIcon=c.create(),this._scanIcon.size=20,this._scanIcon.setAttribute(`aria-label`,`Scan barcode`),this._scanIcon.setAttribute(`role`,`button`),this._scanIcon.setAttribute(`tabindex`,`0`),r.replaceWith(this._scanIcon))}_updateCrossIconTabIndex(){!this._crossIcon||!this._scanIcon||(this.hasAttribute(`has-value`)?(this._crossIcon.setAttribute(`tabindex`,`0`),this._scanIcon.setAttribute(`tabindex`,`0`)):(this._crossIcon.setAttribute(`tabindex`,`-1`),this._scanIcon.setAttribute(`tabindex`,`0`)))}_updateInputDisplay(){this._inputElement&&(this.loading&&this._loadingText?this._inputElement.value=this._loadingText:this._inputElement.value=this._value)}connectedCallback(){this.setAttribute(`role`,`textbox`),this._initializeAttributesFromElement(),this._initializeIcons(),this._addEventListeners(),this._isInitialized=!0}_initializeAttributesFromElement(){if(this.hasAttribute(`name`)&&(this.name=this.getAttribute(`name`)||``),this.hasAttribute(`label`)&&(this.label=this.getAttribute(`label`)||``),this.hasAttribute(`placeholder`)&&(this.placeholder=this.getAttribute(`placeholder`)||``),this.hasAttribute(`type`)){let e=this.getAttribute(`type`);(e===`text`||e===`number`)&&(this.type=e)}this.hasAttribute(`value`)&&(this.value=this.getAttribute(`value`)||``),this.hasAttribute(`required`)&&(this.required=this.getAttribute(`required`)!==null),this.hasAttribute(`invalid`)&&(this.invalid=this.getAttribute(`invalid`)!==null),this.hasAttribute(`hide-scan-icon`)&&(this.hideScanIcon=this.getAttribute(`hide-scan-icon`)!==null),this._hintMessageElement&&(this.hintMessage=this._hintMessage||``)}disconnectedCallback(){var e,t;this._isInitialized=!1,clearTimeout(this._clearTabIndexTimeout),this._removeEventListeners(),(e=this._crossIcon)==null||e.remove(),(t=this._scanIcon)==null||t.remove()}formAssociatedCallback(e){}formDisabledCallback(e){this.disabled=e}formResetCallback(){this.value=this.getAttribute(`value`)||``,this.resetValidation()}_addEventListeners(){var e,t,n,r,i,a;this._inputElement&&(this._inputElement.addEventListener(`input`,this._handleInput),this._inputElement.addEventListener(`focus`,this._handleFocus),this._inputElement.addEventListener(`blur`,this._handleBlur),this._inputElement.addEventListener(`keydown`,this._handleKeydown),(e=this._crossIcon)==null||e.addEventListener(`pointerdown`,this._handleCrossIconPointerDown,{capture:!0}),(t=this._crossIcon)==null||t.addEventListener(`pointerup`,this._handleCrossIconPointerUp),(n=this._crossIcon)==null||n.addEventListener(`keydown`,this._handleCrossIconKeyDown),(r=this._scanIcon)==null||r.addEventListener(`pointerdown`,this._handleScanIconPointerDown,{capture:!0}),(i=this._scanIcon)==null||i.addEventListener(`pointerup`,this._handleScanIconPointerUp),(a=this._scanIcon)==null||a.addEventListener(`keydown`,this._handleScanIconKeyDown))}_removeEventListeners(){var e,t,n,r,i,a;this._inputElement&&(this._inputElement.removeEventListener(`input`,this._handleInput),this._inputElement.removeEventListener(`focus`,this._handleFocus),this._inputElement.removeEventListener(`blur`,this._handleBlur),this._inputElement.removeEventListener(`keydown`,this._handleKeydown),(e=this._crossIcon)==null||e.removeEventListener(`pointerdown`,this._handleCrossIconPointerDown),(t=this._crossIcon)==null||t.removeEventListener(`pointerup`,this._handleCrossIconPointerUp),(n=this._crossIcon)==null||n.removeEventListener(`keydown`,this._handleCrossIconKeyDown),(r=this._scanIcon)==null||r.removeEventListener(`pointerdown`,this._handleScanIconPointerDown),(i=this._scanIcon)==null||i.removeEventListener(`pointerup`,this._handleScanIconPointerUp),(a=this._scanIcon)==null||a.removeEventListener(`keydown`,this._handleScanIconKeyDown))}_onCrossIconPointerDown(e){e&&e.preventDefault()}_onCrossIconPointerUp(e){!e||!this._crossIcon||(e.preventDefault(),this._triggerClear())}_onCrossIconKeyDown(e){!e||!this._crossIcon||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),this._triggerClear())}_onScanIconPointerDown(e){e&&(e.preventDefault(),e.stopPropagation())}_onScanIconPointerUp(e){!e||!this._scanIcon||(e.preventDefault(),e.stopPropagation(),this._triggerScan())}_triggerClear(){this.dispatchEvent(new d({target:this,innerInput:this._inputElement,value:this._value}))}_onScanIconKeyDown(e){!e||!this._scanIcon||(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),this._triggerScan())}_triggerScan(){this.dispatchEvent(new u({target:this,innerInput:this._inputElement,value:this._value}))}static create(){return document.createElement(r.tag)}static register(){n({[r.tag]:r})}};_.tag=`scandit-text-input`,_.formAssociated=!0;export{_ as TextInput,p as TextInputBlurEvent,d as TextInputClearEvent,l as TextInputEvents,f as TextInputFocusEvent,m as TextInputInputEvent,h as TextInputKeydownEvent,u as TextInputScanEvent};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { t as Button } from "../../Button-
|
|
1
|
+
import { t as Button } from "../../Button-BQw0QTaa.js";
|
|
2
2
|
import { TextInput, TextInputEventMap } from "../atoms/TextInput.js";
|
|
3
3
|
import { Backdrop } from "@scandit/web-datacapture-core/build/js/private/ui/atoms/Backdrop.js";
|
|
4
4
|
import { ScanditHTMLElement } from "@scandit/web-datacapture-core/build/js/private/utils/index.js";
|
|
5
|
-
|
|
6
5
|
//#region src/main/ui/organisms/LabelCaptureValidationFlowLayout.d.ts
|
|
7
6
|
declare const SIDE_PANEL_MAX_WIDTH_PX = 960;
|
|
8
7
|
/**
|
|
@@ -24,7 +23,8 @@ interface LabelCaptureValidationFlowLayoutEventMap extends TextInputEventMap {
|
|
|
24
23
|
formHeight: number;
|
|
25
24
|
formWidth: number;
|
|
26
25
|
buttonsHeight: number;
|
|
27
|
-
isLandscape: boolean;
|
|
26
|
+
isLandscape: boolean;
|
|
27
|
+
/** True only when the side-panel landscape layout is active (landscape + width ≤ 960 px). */
|
|
28
28
|
isPanelOnRightSide: boolean;
|
|
29
29
|
safeAreaInsetBottom: number;
|
|
30
30
|
safeAreaInsetTop: number;
|