@os1-platform/dispatch-mobile 1.3.11 → 2.0.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/README.md +198 -30
- package/android/.gradle/7.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.bin +0 -0
- package/android/.gradle/7.2/executionHistory/executionHistory.lock +0 -0
- package/android/.gradle/7.2/fileChanges/last-build.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.bin +0 -0
- package/android/.gradle/7.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/7.2/fileHashes/resourceHashesCache.bin +0 -0
- package/android/.gradle/7.2/gc.properties +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/.idea/compiler.xml +6 -0
- package/android/.idea/gradle.xml +6 -1
- package/android/.idea/jarRepositories.xml +35 -0
- package/android/.idea/kotlinc.xml +6 -0
- package/android/.idea/misc.xml +6 -1
- package/android/local.properties +1 -1
- package/android/src/main/java/com/dispatchsdk/DispatchSdkPackage.kt +3 -1
- package/android/src/main/java/com/dispatchsdk/sharedPref/SharedPreferenceModule.kt +166 -0
- package/lib/commonjs/@types/assets/index.d.js +2 -0
- package/lib/commonjs/@types/assets/index.d.js.map +1 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +4 -4
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +0 -28
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +35 -35
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/utils.js +13 -0
- package/lib/commonjs/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +2 -2
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +187 -112
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +16 -16
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +37 -34
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +2 -2
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +52 -52
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +71 -66
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +2 -2
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +34 -34
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +54 -54
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +33 -33
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +33 -33
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +2 -2
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +112 -47
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +326 -428
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +13 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +15 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js +104 -0
- package/lib/commonjs/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +1099 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js +548 -159
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +52 -53
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/commonjs/components/utils/index.js +14 -0
- package/lib/commonjs/components/utils/index.js.map +1 -0
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +88 -0
- package/lib/commonjs/components/widgets/Card.js.map +1 -0
- package/lib/commonjs/components/widgets/GoBackModal.js +48 -0
- package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -0
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js +99 -0
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +74 -0
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -0
- package/lib/commonjs/components/widgets/SnackBarCustom.js +12 -4
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +64 -0
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -0
- package/lib/commonjs/constants/apiConstants.js +3 -1
- package/lib/commonjs/constants/apiConstants.js.map +1 -1
- package/lib/commonjs/constants/constants.js +2 -2
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +1 -5
- package/lib/commonjs/events/EventDispatcher.js.map +1 -1
- package/lib/commonjs/events/constants.js +3 -1
- package/lib/commonjs/events/constants.js.map +1 -1
- package/lib/commonjs/events/interface.js.map +1 -1
- package/lib/commonjs/index.js +32 -13
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +315 -609
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +21 -25
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +15 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +2 -2
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +26 -0
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +15 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +36 -3
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/constants.js +17 -0
- package/lib/commonjs/manager/syncmanager/constants.js.map +1 -0
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +11 -17
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +5 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +16 -6
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +377 -26
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +183 -65
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +150 -37
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js +4 -0
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +4 -2
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +19 -10
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +38 -7
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +11 -3
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +11 -4
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +26 -4
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +11 -2
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +13 -6
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +39 -15
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +0 -7
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +95 -28
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +10 -2
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +10 -2
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +26 -18
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +22 -11
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +34 -8
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +72 -219
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +51 -16
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +13 -7
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +20 -5
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +16 -2
- package/lib/commonjs/utils/ApiUtils.js.map +1 -1
- package/lib/commonjs/utils/ExecTaskUtils.js +33 -25
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +37 -4
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +64 -35
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +82 -46
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +53 -0
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +37 -2
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/@types/assets/index.d.js +2 -0
- package/lib/module/@types/assets/index.d.js.map +1 -0
- package/lib/module/components/dispatch/DispatchExecNavigator.js +4 -4
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +1 -5
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +38 -37
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/utils.js +7 -0
- package/lib/module/components/executiontasks/captureInput/utils.js.map +1 -0
- package/lib/module/components/executiontasks/deliver/DeliverET.js +2 -2
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +189 -114
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +16 -16
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +39 -36
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +2 -2
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +53 -52
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +73 -68
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -1
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +3 -3
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +3 -3
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +6 -3
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +36 -36
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +55 -54
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +35 -34
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +35 -35
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +2 -2
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +114 -49
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +332 -433
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanSchema.js +16 -1
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/module/components/executiontasks/scan/interfaces.js +12 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/module/components/executiontasks/scan/modalConstant.js +94 -0
- package/lib/module/components/executiontasks/scan/modalConstant.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +72 -37
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +9 -7
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +1092 -0
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -0
- package/lib/module/components/executiontasks/scan/utils.js +528 -160
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +54 -55
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +4 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +2 -2
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpSchema.js.map +1 -1
- package/lib/module/components/utils/index.js +8 -0
- package/lib/module/components/utils/index.js.map +1 -0
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +80 -0
- package/lib/module/components/widgets/Card.js.map +1 -0
- package/lib/module/components/widgets/GoBackModal.js +40 -0
- package/lib/module/components/widgets/GoBackModal.js.map +1 -0
- package/lib/module/components/widgets/IconButton.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js +92 -0
- package/lib/module/components/widgets/ModalWidget.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SearchBar.js +66 -0
- package/lib/module/components/widgets/SearchBar.js.map +1 -0
- package/lib/module/components/widgets/SnackBarCustom.js +12 -4
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/module/components/widgets/TabsComponent.js +55 -0
- package/lib/module/components/widgets/TabsComponent.js.map +1 -0
- package/lib/module/constants/apiConstants.js +3 -1
- package/lib/module/constants/apiConstants.js.map +1 -1
- package/lib/module/constants/constants.js +2 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +0 -3
- package/lib/module/events/EventDispatcher.js.map +1 -1
- package/lib/module/events/constants.js +3 -1
- package/lib/module/events/constants.js.map +1 -1
- package/lib/module/events/interface.js.map +1 -1
- package/lib/module/index.js +6 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +319 -610
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +21 -19
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +15 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +2 -2
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/sdk/callbacksHandler.js +19 -0
- package/lib/module/manager/sdk/callbacksHandler.js.map +1 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js +15 -1
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +32 -2
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/constants.js +6 -0
- package/lib/module/manager/syncmanager/constants.js.map +1 -0
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +11 -17
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +5 -6
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +16 -6
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +377 -25
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +183 -65
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +147 -34
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +4 -2
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +19 -10
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +39 -8
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +12 -4
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +12 -5
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +27 -5
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +12 -3
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +14 -7
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +42 -16
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +1 -2
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +96 -29
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +11 -3
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +11 -3
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +27 -19
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +23 -12
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +36 -10
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +74 -222
- package/lib/module/ui/screens/ScanScreen.js.map +1 -1
- package/lib/module/ui/screens/StartWorkFlowScreen.js +51 -16
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +14 -8
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +19 -5
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +17 -2
- package/lib/module/utils/ApiUtils.js.map +1 -1
- package/lib/module/utils/ExecTaskUtils.js +33 -25
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +37 -4
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +64 -35
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +82 -46
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useModal.js +43 -0
- package/lib/module/utils/hooks/useModal.js.map +1 -0
- package/lib/module/utils/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +37 -2
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/dispatch/DispatchExecNavigator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +3 -8
- package/lib/typescript/components/executiontasks/cancellation/CancelET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/captureInput/CaptureText.d.ts +2 -2
- package/lib/typescript/components/executiontasks/captureInput/utils.d.ts +1 -0
- package/lib/typescript/components/executiontasks/deliver/DeliverET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +1 -0
- package/lib/typescript/components/executiontasks/deliver/SLDeliverET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/display/DisplayModalET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/doodle/SignatureET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/DropCashET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/dropCash/SLDropCash.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormGenerator.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/TimeRangeSelector.d.ts +2 -2
- package/lib/typescript/components/executiontasks/httpRequest/HttpEtUtils.d.ts +1 -1
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +1 -0
- package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/PickupET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/SLPickupET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +25 -9
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +54 -1
- package/lib/typescript/components/executiontasks/scan/modalConstant.d.ts +37 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scan/sub_components/SummaryPage.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +29 -13
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocationET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpET.d.ts +2 -2
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +3 -3
- package/lib/typescript/components/utils/index.d.ts +2 -0
- package/lib/typescript/components/widgets/CancelOrderDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/Card.d.ts +17 -0
- package/lib/typescript/components/widgets/GoBackModal.d.ts +9 -0
- package/lib/typescript/components/widgets/IconButton.d.ts +2 -2
- package/lib/typescript/components/widgets/ModalWidget.d.ts +30 -0
- package/lib/typescript/components/widgets/ProgressDialog.d.ts +2 -2
- package/lib/typescript/components/widgets/SearchBar.d.ts +10 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +3 -2
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +2 -2
- package/lib/typescript/components/widgets/TabsComponent.d.ts +15 -0
- package/lib/typescript/constants/apiConstants.d.ts +1 -0
- package/lib/typescript/constants/constants.d.ts +2 -2
- package/lib/typescript/events/EventDispatcher.d.ts +0 -2
- package/lib/typescript/events/constants.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -1
- package/lib/typescript/index.d.ts +8 -6
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +27 -19
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +0 -6
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +0 -1
- package/lib/typescript/manager/sdk/callbacksHandler.d.ts +13 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +2 -1
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +63 -7
- package/lib/typescript/manager/syncmanager/constants.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/document/DocumentManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/document/DocumentSyncManager.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +11 -2
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +3 -5
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +4 -3
- package/lib/typescript/models/DispatchModels.d.ts +40 -41
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +21 -16
- package/lib/typescript/models/sdk.d.ts +7 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
- package/lib/typescript/styles/SdkColors.d.ts +1 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +16 -7
- package/lib/typescript/ui/screens/CancellationScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CaptureInputScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/CompleteObjectiveScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DeliverScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DisplayScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DoodleScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/DropCashScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +1 -2
- package/lib/typescript/ui/screens/FormsScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/GeofenceScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/HttpRequestScreen.d.ts +1 -1
- package/lib/typescript/ui/screens/ImageCaptureScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PaymentScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/PickupScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ScanScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/StartWorkFlowScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +2 -2
- package/lib/typescript/ui/screens/WithBaseDispatchScreen.d.ts +2 -2
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +10 -4
- package/lib/typescript/utils/ExecTaskUtils.d.ts +5 -4
- package/lib/typescript/utils/SyncManagerUtils.d.ts +4 -5
- package/lib/typescript/utils/hooks/useModal.d.ts +6 -0
- package/lib/typescript/utils/storage.d.ts +15 -0
- package/package.json +5 -4
- package/tsconfig.json +0 -1
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.idea/workspace.xml +0 -131
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -26
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +0 -134
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js +0 -105
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +0 -27
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +0 -164
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -15
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -40
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -93
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +0 -278
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -83
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -248
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +0 -99
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js +0 -19
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js +0 -124
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/CScanner.js +0 -96
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +0 -24
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +0 -146
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -7
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -33
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -83
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +0 -269
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -73
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +0 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -238
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +0 -1
- package/lib/module/ui/screens/RTScanScreen.js +0 -89
- package/lib/module/ui/screens/RTScanScreen.js.map +0 -1
- package/lib/typescript/components/executiontasks/doodle/DoodleUtils.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scan/sub_components/ScanList.d.ts +0 -8
- package/lib/typescript/components/executiontasks/scanner/CScanner.d.ts +0 -7
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +0 -75
- package/lib/typescript/components/executiontasks/scanner/ScannerUtils.d.ts +0 -15
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownSelector.d.ts +0 -3
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +0 -2
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +0 -7
- package/lib/typescript/components/executiontasks/scanner/returns/RTScan.d.ts +0 -4
- package/lib/typescript/components/executiontasks/scanner/returns/ReasonDropDown.d.ts +0 -14
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +0 -17
- package/lib/typescript/ui/screens/RTScanScreen.d.ts +0 -3
- /package/android/.gradle/{6.8 → 7.0.2}/fileChanges/last-build.bin +0 -0
- /package/android/.gradle/{6.8 → 7.0.2}/gc.properties +0 -0
- /package/android/.gradle/{configuration-cache → 7.2/dependencies-accessors}/gc.properties +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_expoCamera","_utils","_CaptureUtils","_reactNativePaper","_expoBlur","_reactNativeSafeAreaContext","_CommonStyles","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","Hint","_ref","children","createElement","BlurView","style","styles","hint","intensity","tint","Text","headerText","CScanner","props","isVisible","setVisible","useState","hasPermission","setHasPermission","bottom","useSafeAreaInsets","useEffect","response","checkCameraPermissionUtil","_handleBarCodeScanned","scan","isEmptyOrBlank","data","onScanned","View","flex","justifyContent","alignItems","Title","container","Camera","barCodeScannerSettings","barCodeTypes","onBarCodeScanned","StyleSheet","absoluteFill","header","_default","memo","exports","create","backgroundColor","paddingHorizontal","paddingVertical","overflow","color","textAlign","fontSize","fontWeight","position","left","right","fontFamily","Fonts","IBMPlexSans_600SemiBold"],"sources":["CScanner.tsx"],"sourcesContent":["import React, { memo, useEffect, useState } from 'react';\nimport { StyleSheet, Text, View } from 'react-native';\nimport { BarCodeScanningResult, Camera } from 'expo-camera';\nimport { isEmptyOrBlank } from '../../../utils/utils';\nimport { checkCameraPermissionUtil } from '../imageCapture/CaptureUtils';\nimport { Title } from 'react-native-paper';\nimport { BlurView } from 'expo-blur';\nimport { useSafeAreaInsets } from 'react-native-safe-area-context';\nimport { Fonts } from '../../../styles/executionTasks/CommonStyles';\n\nfunction Hint({ children }: { children: string }) {\n return (\n <BlurView style={styles.hint} intensity={50} tint=\"dark\">\n <Text style={styles.headerText}>{children}</Text>\n </BlurView>\n );\n}\nconst CScanner = (props: CScannerProps) => {\n const [isVisible, setVisible] = useState(true);\n const [hasPermission, setHasPermission] = useState<boolean | null>(null);\n const { bottom } = useSafeAreaInsets();\n\n useEffect(() => {\n (async () => {\n let response = await checkCameraPermissionUtil();\n setHasPermission(response);\n })();\n }, []);\n\n const _handleBarCodeScanned = (scan: BarCodeScanningResult) => {\n if (!isEmptyOrBlank(scan.data)) {\n setVisible(false);\n props.onScanned(scan.data);\n }\n };\n\n if (!hasPermission) {\n return (\n <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>\n <Title>\n {\n 'No Permissions for Camera. Please provide camera permissions from app\\\n settings.'\n }\n </Title>\n </View>\n );\n }\n return (\n <View style={styles.container}>\n {isVisible ? (\n <Camera\n barCodeScannerSettings={{\n barCodeTypes: props.barCodeTypes,\n }}\n onBarCodeScanned={_handleBarCodeScanned}\n style={StyleSheet.absoluteFill}\n />\n ) : null}\n <View style={[styles.header, { bottom: 16 + bottom }]}>\n <Hint>{'or \\nScan Shipment ID'}</Hint>\n </View>\n </View>\n );\n};\n\n// exporting Scanner as Pure Component\nexport default memo(CScanner);\n\nexport interface CScannerProps {\n barCodeTypes: any[];\n onScanned: (value: string) => void;\n}\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n backgroundColor: '#000',\n justifyContent: 'center',\n alignItems: 'center',\n },\n hint: {\n paddingHorizontal: 16,\n paddingVertical: 20,\n overflow: 'hidden',\n justifyContent: 'center',\n alignItems: 'center',\n },\n\n headerText: {\n color: '#fff',\n backgroundColor: 'transparent',\n textAlign: 'center',\n fontSize: 16,\n fontWeight: '500',\n },\n header: {\n position: 'absolute',\n left: 0,\n right: 0,\n alignItems: 'center',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n});\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,aAAA,GAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAL,OAAA;AACA,IAAAM,SAAA,GAAAN,OAAA;AACA,IAAAO,2BAAA,GAAAP,OAAA;AACA,IAAAQ,aAAA,GAAAR,OAAA;AAAoE,SAAAS,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,C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AU,EAAE,QAAQ;IACpByB,UAAU,EAAEC,mBAAK,CAACC;EACpB;AACF,CAAC,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SCAN_STATUS = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* Type of scan
|
|
9
|
-
*/
|
|
10
|
-
/**
|
|
11
|
-
* Mode of scanning
|
|
12
|
-
*/
|
|
13
|
-
/**
|
|
14
|
-
* Max limit of items to be scanned in multi-scan mode
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Regex to validate scanned strings
|
|
18
|
-
*/
|
|
19
|
-
let SCAN_STATUS = /*#__PURE__*/function (SCAN_STATUS) {
|
|
20
|
-
SCAN_STATUS[SCAN_STATUS["ACCEPTED"] = 0] = "ACCEPTED";
|
|
21
|
-
SCAN_STATUS[SCAN_STATUS["REJECTED"] = 1] = "REJECTED";
|
|
22
|
-
SCAN_STATUS[SCAN_STATUS["TO_BE_SCANNED"] = 2] = "TO_BE_SCANNED";
|
|
23
|
-
SCAN_STATUS[SCAN_STATUS["NONE"] = 3] = "NONE";
|
|
24
|
-
return SCAN_STATUS;
|
|
25
|
-
}({});
|
|
26
|
-
exports.SCAN_STATUS = SCAN_STATUS;
|
|
27
|
-
//# sourceMappingURL=ScannerSchema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SCAN_STATUS","exports"],"sources":["ScannerSchema.ts"],"sourcesContent":["/**\n * Type of scan\n */\nimport type {\n BaseETRequest,\n BaseETResponse,\n} from '../../../models/execTasks/ETBaseModels';\nimport type { Headers, HTTPMethod } from '../httpRequest/HttpRequestETSchema';\n\nexport type ScanType = 'BARCODE' | 'QRCODE';\n/**\n * Mode of scanning\n */\nexport type ScanMode = 'SINGLE' | 'MULTI';\n/**\n * Max limit of items to be scanned in multi-scan mode\n */\nexport type MaxScanCount = number;\n/**\n * Regex to validate scanned strings\n */\nexport type ValidationRegex = string;\n\nexport type ScannerInput = BaseETRequest & {\n scanType: ScanType;\n scanMode: ScanMode;\n preSelectReasonCode?: boolean;\n scans?: string[];\n scanCountLimit?: MaxScanCount;\n onSubmitET: (scanETOutput: ScannerOutput | ScannedItemData[]) => void;\n\n validation?: API | ValidationRegex;\n};\n\nexport interface API {\n uri: string;\n timeout?: number;\n httpMethod: HTTPMethod;\n headers?: Headers[];\n responseJsonLogic: object;\n}\n\nexport interface ScanData {\n /**\n * Value of scanned item\n */\n value: string;\n /**\n * Boolean to denote if scan was validate successfully\n */\n validated?: boolean;\n /**\n * Epoch timestamp for the scan\n */\n timestamp: number;\n}\n\nexport interface ScannedItemData {\n /**\n * Value of scanned item\n */\n value: string;\n /**\n * Boolean to denote if scan was validate successfully\n */\n validated?: boolean;\n /**\n * Epoch timestamp for the scan\n */\n timestamp?: number;\n reasonCode?: string;\n reasonText?: string;\n success?: boolean;\n scanStatus: SCAN_STATUS;\n}\nexport enum SCAN_STATUS {\n ACCEPTED,\n REJECTED,\n TO_BE_SCANNED,\n NONE,\n}\n\nexport type ScannerOutput = BaseETResponse & {\n scans: ScanData[];\n};\n"],"mappings":";;;;;;AAAA;AACA;AACA;AAQA;AACA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AAFA,IAyDYA,WAAW,0BAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAXA,WAAW,CAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAAAC,OAAA,CAAAD,WAAA,GAAAA,WAAA"}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SCAN_ACTIONS = void 0;
|
|
7
|
-
exports.canScanMore = canScanMore;
|
|
8
|
-
exports.checkForValidation = checkForValidation;
|
|
9
|
-
exports.getBarCodeTypes = getBarCodeTypes;
|
|
10
|
-
exports.getItemsToBeScanned = getItemsToBeScanned;
|
|
11
|
-
exports.getScannedItemCount = getScannedItemCount;
|
|
12
|
-
exports.getScannedItemStatus = getScannedItemStatus;
|
|
13
|
-
exports.getScannedList = getScannedList;
|
|
14
|
-
exports.getScannerETOutput = getScannerETOutput;
|
|
15
|
-
exports.isScannedAlready = isScannedAlready;
|
|
16
|
-
var _ScannerSchema = require("./ScannerSchema");
|
|
17
|
-
var _expoBarcodeScanner = require("expo-barcode-scanner");
|
|
18
|
-
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
19
|
-
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
20
|
-
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
21
|
-
var _HttpEtUtils = require("../httpRequest/HttpEtUtils");
|
|
22
|
-
var jsonLogic = _interopRequireWildcard(require("json-logic-js"));
|
|
23
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
24
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
25
|
-
async function checkForValidation(data, validationRule, shipments) {
|
|
26
|
-
if (shipments && shipments.length > 0) {
|
|
27
|
-
const found = shipments.find(s => s === data);
|
|
28
|
-
return found !== undefined;
|
|
29
|
-
} else if (validationRule && typeof validationRule === 'string') {
|
|
30
|
-
const regex = new RegExp(validationRule);
|
|
31
|
-
return regex.test(data);
|
|
32
|
-
} else if (validationRule && typeof validationRule === 'object') {
|
|
33
|
-
try {
|
|
34
|
-
const validation = validationRule;
|
|
35
|
-
const apiResponse = await (0, _HttpEtUtils.getApiResponse)({
|
|
36
|
-
errorJsonPath: '',
|
|
37
|
-
responseJsonPath: '',
|
|
38
|
-
uri: validation.uri,
|
|
39
|
-
httpMethod: validation.httpMethod,
|
|
40
|
-
timeout: validation.timeout,
|
|
41
|
-
headers: validation.headers
|
|
42
|
-
});
|
|
43
|
-
return jsonLogic.apply(validation.responseJsonLogic, apiResponse.data);
|
|
44
|
-
} catch (error) {
|
|
45
|
-
return false;
|
|
46
|
-
}
|
|
47
|
-
} else return false;
|
|
48
|
-
}
|
|
49
|
-
function isScannedAlready(value, scansMap) {
|
|
50
|
-
var _scansMap$get;
|
|
51
|
-
if (!scansMap || scansMap.size === 0) return false;
|
|
52
|
-
return scansMap.has(value) && ((_scansMap$get = scansMap.get(value)) === null || _scansMap$get === void 0 ? void 0 : _scansMap$get.scanStatus) !== _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED;
|
|
53
|
-
}
|
|
54
|
-
function getBarCodeTypes(input) {
|
|
55
|
-
if (input.scanType === 'QRCODE') {
|
|
56
|
-
return [_expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.qr];
|
|
57
|
-
} else {
|
|
58
|
-
return [_expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.code128, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.code39, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.code93, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.codabar, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.itf14, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.upc_a, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.ean8, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.ean13, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.upc_e, _expoBarcodeScanner.BarCodeScanner.Constants.BarCodeType.upc_ean];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
async function getScannerETOutput(scanList) {
|
|
62
|
-
return {
|
|
63
|
-
scans: getScannedItems(scanList),
|
|
64
|
-
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.SCAN, true,
|
|
65
|
-
//this component is not used, if utilized, add applicableReasons.success in getEventCodeByET as 3rd param
|
|
66
|
-
(0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.SCAN, true), ''))
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function getScannedItems(scanList) {
|
|
70
|
-
const items = [];
|
|
71
|
-
if (!scanList || scanList.length === 0) return items;else {
|
|
72
|
-
scanList.forEach(ite => {
|
|
73
|
-
items.push({
|
|
74
|
-
value: ite.value,
|
|
75
|
-
validated: ite.validated,
|
|
76
|
-
timestamp: ite.timestamp ?? Date.now()
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
return items;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
function canScanMore(scanMode, size, limit) {
|
|
83
|
-
if (scanMode === 'SINGLE') {
|
|
84
|
-
return size <= 0;
|
|
85
|
-
} else {
|
|
86
|
-
//multi scan mode
|
|
87
|
-
if (limit && limit > 0) {
|
|
88
|
-
return size !== limit;
|
|
89
|
-
} else {
|
|
90
|
-
return true;
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
function getScannedList(rtScans) {
|
|
95
|
-
if (!rtScans || rtScans.length === 0) return [];
|
|
96
|
-
let result = [];
|
|
97
|
-
rtScans.forEach(s => {
|
|
98
|
-
result.push({
|
|
99
|
-
value: s.value,
|
|
100
|
-
validated: s.validated,
|
|
101
|
-
timestamp: s.timestamp ?? Date.now()
|
|
102
|
-
});
|
|
103
|
-
});
|
|
104
|
-
return result;
|
|
105
|
-
}
|
|
106
|
-
function getItemsToBeScanned(scansMap) {
|
|
107
|
-
if (!scansMap || scansMap.size === 0) return [];else {
|
|
108
|
-
const result = [];
|
|
109
|
-
scansMap.forEach(value => {
|
|
110
|
-
result.push(value);
|
|
111
|
-
});
|
|
112
|
-
return result;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
let SCAN_ACTIONS = /*#__PURE__*/function (SCAN_ACTIONS) {
|
|
116
|
-
SCAN_ACTIONS[SCAN_ACTIONS["DELETE"] = 0] = "DELETE";
|
|
117
|
-
SCAN_ACTIONS[SCAN_ACTIONS["CHANGE_STATUS"] = 1] = "CHANGE_STATUS";
|
|
118
|
-
return SCAN_ACTIONS;
|
|
119
|
-
}({});
|
|
120
|
-
exports.SCAN_ACTIONS = SCAN_ACTIONS;
|
|
121
|
-
function getScannedItemCount(scannedList, status) {
|
|
122
|
-
if (!scannedList || scannedList.length === 0) return 0;
|
|
123
|
-
let completed = 0;
|
|
124
|
-
let rejected = 0;
|
|
125
|
-
let toBeScanned = 0;
|
|
126
|
-
scannedList.forEach(r => {
|
|
127
|
-
switch (r.scanStatus) {
|
|
128
|
-
case _ScannerSchema.SCAN_STATUS.ACCEPTED:
|
|
129
|
-
case _ScannerSchema.SCAN_STATUS.NONE:
|
|
130
|
-
completed++;
|
|
131
|
-
break;
|
|
132
|
-
case _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED:
|
|
133
|
-
toBeScanned++;
|
|
134
|
-
break;
|
|
135
|
-
case _ScannerSchema.SCAN_STATUS.REJECTED:
|
|
136
|
-
rejected++;
|
|
137
|
-
break;
|
|
138
|
-
default:
|
|
139
|
-
break;
|
|
140
|
-
}
|
|
141
|
-
});
|
|
142
|
-
switch (status) {
|
|
143
|
-
case _ScannerSchema.SCAN_STATUS.ACCEPTED:
|
|
144
|
-
case _ScannerSchema.SCAN_STATUS.NONE:
|
|
145
|
-
return completed;
|
|
146
|
-
case _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED:
|
|
147
|
-
return toBeScanned;
|
|
148
|
-
case _ScannerSchema.SCAN_STATUS.REJECTED:
|
|
149
|
-
return rejected;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
function getScannedItemStatus(scanStatus) {
|
|
153
|
-
switch (scanStatus) {
|
|
154
|
-
case _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED:
|
|
155
|
-
return 'To be Scanned';
|
|
156
|
-
case _ScannerSchema.SCAN_STATUS.ACCEPTED:
|
|
157
|
-
return 'Completed';
|
|
158
|
-
case _ScannerSchema.SCAN_STATUS.REJECTED:
|
|
159
|
-
return 'Rejected';
|
|
160
|
-
case _ScannerSchema.SCAN_STATUS.NONE:
|
|
161
|
-
return '';
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
//# sourceMappingURL=ScannerUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_ScannerSchema","require","_expoBarcodeScanner","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_HttpEtUtils","jsonLogic","_interopRequireWildcard","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","checkForValidation","data","validationRule","shipments","length","found","find","s","undefined","regex","RegExp","test","validation","apiResponse","getApiResponse","errorJsonPath","responseJsonPath","uri","httpMethod","timeout","headers","apply","responseJsonLogic","error","isScannedAlready","value","scansMap","_scansMap$get","size","scanStatus","SCAN_STATUS","TO_BE_SCANNED","getBarCodeTypes","input","scanType","BarCodeScanner","Constants","BarCodeType","qr","code128","code39","code93","codabar","itf14","upc_a","ean8","ean13","upc_e","upc_ean","getScannerETOutput","scanList","scans","getScannedItems","getBaseETResponse","EntityCode","SCAN","getEventCodeByET","ExecutionTaskID","items","forEach","ite","push","validated","timestamp","Date","now","canScanMore","scanMode","limit","getScannedList","rtScans","result","getItemsToBeScanned","SCAN_ACTIONS","exports","getScannedItemCount","scannedList","status","completed","rejected","toBeScanned","r","ACCEPTED","NONE","REJECTED","getScannedItemStatus"],"sources":["ScannerUtils.ts"],"sourcesContent":["import type {\n API,\n ScanData,\n ScanMode,\n ScannedItemData,\n ScannerInput,\n ScannerOutput,\n} from './ScannerSchema';\nimport { SCAN_STATUS } from './ScannerSchema';\nimport { BarCodeScanner } from 'expo-barcode-scanner';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport { getApiResponse } from '../httpRequest/HttpEtUtils';\nimport type { RulesLogic } from 'json-logic-js';\nimport * as jsonLogic from 'json-logic-js';\n\nexport async function checkForValidation(\n data: string,\n validationRule: API | string | undefined,\n shipments: string[] | undefined\n) {\n if (shipments && shipments.length > 0) {\n const found = shipments.find((s) => s === data);\n return found !== undefined;\n } else if (validationRule && typeof validationRule === 'string') {\n const regex = new RegExp(validationRule);\n return regex.test(data);\n } else if (validationRule && typeof validationRule === 'object') {\n try {\n const validation = validationRule as API;\n const apiResponse = await getApiResponse({\n errorJsonPath: '',\n responseJsonPath: '',\n uri: validation.uri,\n httpMethod: validation.httpMethod,\n timeout: validation.timeout,\n headers: validation.headers,\n });\n return jsonLogic.apply(\n <RulesLogic>validation.responseJsonLogic,\n apiResponse.data\n );\n } catch (error: any) {\n return false;\n }\n } else return false;\n}\nexport function isScannedAlready(\n value: string,\n scansMap?: Map<string, ScannedItemData>\n) {\n if (!scansMap || scansMap.size === 0) return false;\n return (\n scansMap.has(value) &&\n scansMap.get(value)?.scanStatus !== SCAN_STATUS.TO_BE_SCANNED\n );\n}\n\nexport function getBarCodeTypes(input: ScannerInput): any[] {\n if (input.scanType === 'QRCODE') {\n return [BarCodeScanner.Constants.BarCodeType.qr];\n } else {\n return [\n BarCodeScanner.Constants.BarCodeType.code128,\n BarCodeScanner.Constants.BarCodeType.code39,\n BarCodeScanner.Constants.BarCodeType.code93,\n BarCodeScanner.Constants.BarCodeType.codabar,\n BarCodeScanner.Constants.BarCodeType.itf14,\n BarCodeScanner.Constants.BarCodeType.upc_a,\n BarCodeScanner.Constants.BarCodeType.ean8,\n BarCodeScanner.Constants.BarCodeType.ean13,\n BarCodeScanner.Constants.BarCodeType.upc_e,\n BarCodeScanner.Constants.BarCodeType.upc_ean,\n ];\n }\n}\n\nexport async function getScannerETOutput(\n scanList: ScannedItemData[]\n): Promise<ScannerOutput> {\n return {\n scans: getScannedItems(scanList),\n ...(await getBaseETResponse(\n EntityCode.SCAN,\n true,\n //this component is not used, if utilized, add applicableReasons.success in getEventCodeByET as 3rd param\n getEventCodeByET(ExecutionTaskID.SCAN, true),\n ''\n )),\n };\n}\n\nfunction getScannedItems(scanList: ScannedItemData[]): ScanData[] {\n const items: ScanData[] = [];\n if (!scanList || scanList.length === 0) return items;\n else {\n scanList.forEach((ite) => {\n items.push({\n value: ite.value,\n validated: ite.validated,\n timestamp: ite.timestamp ?? Date.now(),\n });\n });\n\n return items;\n }\n}\n\nexport function canScanMore(\n scanMode: ScanMode,\n size: number,\n limit?: number\n): boolean {\n if (scanMode === 'SINGLE') {\n return size <= 0;\n } else {\n //multi scan mode\n if (limit && limit > 0) {\n return size !== limit;\n } else {\n return true;\n }\n }\n}\nexport function getScannedList(rtScans?: ScannedItemData[]): ScanData[] {\n if (!rtScans || rtScans.length === 0) return [];\n let result: ScanData[] = [];\n rtScans.forEach((s) => {\n result.push({\n value: s.value,\n validated: s.validated,\n timestamp: s.timestamp ?? Date.now(),\n });\n });\n return result;\n}\nexport function getItemsToBeScanned(scansMap?: Map<string, ScannedItemData>) {\n if (!scansMap || scansMap.size === 0) return [];\n else {\n const result: ScannedItemData[] = [];\n scansMap.forEach((value) => {\n result.push(value);\n });\n return result;\n }\n}\n\nexport enum SCAN_ACTIONS {\n DELETE,\n CHANGE_STATUS,\n}\n\nexport function getScannedItemCount(\n scannedList: ScannedItemData[] | undefined,\n status: SCAN_STATUS\n) {\n if (!scannedList || scannedList.length === 0) return 0;\n let completed = 0;\n let rejected = 0;\n let toBeScanned = 0;\n scannedList.forEach((r) => {\n switch (r.scanStatus) {\n case SCAN_STATUS.ACCEPTED:\n case SCAN_STATUS.NONE:\n completed++;\n break;\n case SCAN_STATUS.TO_BE_SCANNED:\n toBeScanned++;\n break;\n case SCAN_STATUS.REJECTED:\n rejected++;\n break;\n default:\n break;\n }\n });\n switch (status) {\n case SCAN_STATUS.ACCEPTED:\n case SCAN_STATUS.NONE:\n return completed;\n case SCAN_STATUS.TO_BE_SCANNED:\n return toBeScanned;\n case SCAN_STATUS.REJECTED:\n return rejected;\n }\n}\nexport function getScannedItemStatus(scanStatus: SCAN_STATUS) {\n switch (scanStatus) {\n case SCAN_STATUS.TO_BE_SCANNED:\n return 'To be Scanned';\n case SCAN_STATUS.ACCEPTED:\n return 'Completed';\n case SCAN_STATUS.REJECTED:\n return 'Rejected';\n case SCAN_STATUS.NONE:\n return '';\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;AAQA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,mBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AAIA,IAAAK,YAAA,GAAAL,OAAA;AAEA,IAAAM,SAAA,GAAAC,uBAAA,CAAAP,OAAA;AAA2C,SAAAQ,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,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-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
const DropDownSelector = () => {
|
|
11
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, null);
|
|
12
|
-
};
|
|
13
|
-
var _default = DropDownSelector;
|
|
14
|
-
exports.default = _default;
|
|
15
|
-
//# sourceMappingURL=DropDownSelector.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","obj","__esModule","default","DropDownSelector","createElement","View","_default","exports"],"sources":["DropDownSelector.tsx"],"sourcesContent":["import React from 'react';\nimport { View } from 'react-native';\n\nconst DropDownSelector = () => {\n return <View></View>;\n};\n\nexport default DropDownSelector;\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAoC,SAAAD,uBAAAG,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEpC,MAAMG,gBAAgB,GAAGA,CAAA,KAAM;EAC7B,oBAAOP,MAAA,CAAAM,OAAA,CAAAE,aAAA,CAACL,YAAA,CAAAM,IAAI,OAAQ;AACtB,CAAC;AAAC,IAAAC,QAAA,GAEaH,gBAAgB;AAAAI,OAAA,CAAAL,OAAA,GAAAI,QAAA"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.getDropDownItems = getDropDownItems;
|
|
7
|
-
var _ETConfig = require("../../../../models/execTasks/ETConfig");
|
|
8
|
-
var _ReasonCodeContainer = _interopRequireDefault(require("../../../../manager/dispatchCodes/ReasonCodeContainer"));
|
|
9
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
10
|
-
async function getDropDownItems(reasonsList) {
|
|
11
|
-
if (!reasonsList) return [];
|
|
12
|
-
let reasons = [];
|
|
13
|
-
if (reasonsList[_ETConfig.BaseEventCodes.ENTITY_SUCCESS]) {
|
|
14
|
-
//todo all Image Icon for success and Failure
|
|
15
|
-
for (const r of reasonsList[_ETConfig.BaseEventCodes.ENTITY_SUCCESS]) {
|
|
16
|
-
let reasonByCode = await _ReasonCodeContainer.default.getInstance().getReasonByCode(r);
|
|
17
|
-
if (reasonByCode) {
|
|
18
|
-
reasons.push({
|
|
19
|
-
reasonText: (reasonByCode === null || reasonByCode === void 0 ? void 0 : reasonByCode.description) ?? 'NO DESCRIPTION FOUND',
|
|
20
|
-
reasonCode: r,
|
|
21
|
-
success: true
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
if (reasonsList[_ETConfig.BaseEventCodes.ENTITY_FAILURE]) {
|
|
27
|
-
for (const r of reasonsList[_ETConfig.BaseEventCodes.ENTITY_FAILURE]) {
|
|
28
|
-
let reasonByCode = await _ReasonCodeContainer.default.getInstance().getReasonByCode(r);
|
|
29
|
-
if (reasonByCode) {
|
|
30
|
-
reasons.push({
|
|
31
|
-
reasonText: (reasonByCode === null || reasonByCode === void 0 ? void 0 : reasonByCode.description) ?? 'NO DESCRIPTION FOUND',
|
|
32
|
-
reasonCode: r,
|
|
33
|
-
success: false
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
return reasons;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=DropDownUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_ETConfig","require","_ReasonCodeContainer","_interopRequireDefault","obj","__esModule","default","getDropDownItems","reasonsList","reasons","BaseEventCodes","ENTITY_SUCCESS","r","reasonByCode","ReasonCodeContainer","getInstance","getReasonByCode","push","reasonText","description","reasonCode","success","ENTITY_FAILURE"],"sources":["DropDownUtils.ts"],"sourcesContent":["import type { ReasonItem } from './ReasonDropDown';\nimport { BaseEventCodes } from '../../../../models/execTasks/ETConfig';\nimport ReasonCodeContainer from '../../../../manager/dispatchCodes/ReasonCodeContainer';\n\nexport async function getDropDownItems(\n reasonsList?: any //add applicable reason type when used\n): Promise<ReasonItem[]> {\n if (!reasonsList) return [];\n let reasons: ReasonItem[] = [];\n if (reasonsList[BaseEventCodes.ENTITY_SUCCESS]) {\n //todo all Image Icon for success and Failure\n for (const r of reasonsList[BaseEventCodes.ENTITY_SUCCESS]) {\n let reasonByCode =\n await ReasonCodeContainer.getInstance().getReasonByCode(r);\n if (reasonByCode) {\n reasons.push({\n reasonText: reasonByCode?.description ?? 'NO DESCRIPTION FOUND',\n reasonCode: r,\n success: true,\n });\n }\n }\n }\n if (reasonsList[BaseEventCodes.ENTITY_FAILURE]) {\n for (const r of reasonsList[BaseEventCodes.ENTITY_FAILURE]) {\n let reasonByCode =\n await ReasonCodeContainer.getInstance().getReasonByCode(r);\n if (reasonByCode) {\n reasons.push({\n reasonText: reasonByCode?.description ?? 'NO DESCRIPTION FOUND',\n reasonCode: r,\n success: false,\n });\n }\n }\n }\n return reasons;\n}\n"],"mappings":";;;;;;AACA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,oBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAwF,SAAAE,uBAAAC,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAEjF,eAAeG,gBAAgBA,CACpCC,WAAiB,EACM;EACvB,IAAI,CAACA,WAAW,EAAE,OAAO,EAAE;EAC3B,IAAIC,OAAqB,GAAG,EAAE;EAC9B,IAAID,WAAW,CAACE,wBAAc,CAACC,cAAc,CAAC,EAAE;IAC9C;IACA,KAAK,MAAMC,CAAC,IAAIJ,WAAW,CAACE,wBAAc,CAACC,cAAc,CAAC,EAAE;MAC1D,IAAIE,YAAY,GACd,MAAMC,4BAAmB,CAACC,WAAW,EAAE,CAACC,eAAe,CAACJ,CAAC,CAAC;MAC5D,IAAIC,YAAY,EAAE;QAChBJ,OAAO,CAACQ,IAAI,CAAC;UACXC,UAAU,EAAE,CAAAL,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAEM,WAAW,KAAI,sBAAsB;UAC/DC,UAAU,EAAER,CAAC;UACbS,OAAO,EAAE;QACX,CAAC,CAAC;MACJ;IACF;EACF;EACA,IAAIb,WAAW,CAACE,wBAAc,CAACY,cAAc,CAAC,EAAE;IAC9C,KAAK,MAAMV,CAAC,IAAIJ,WAAW,CAACE,wBAAc,CAACY,cAAc,CAAC,EAAE;MAC1D,IAAIT,YAAY,GACd,MAAMC,4BAAmB,CAACC,WAAW,EAAE,CAACC,eAAe,CAACJ,CAAC,CAAC;MAC5D,IAAIC,YAAY,EAAE;QAChBJ,OAAO,CAACQ,IAAI,CAAC;UACXC,UAAU,EAAE,CAAAL,YAAY,aAAZA,YAAY,uBAAZA,YAAY,CAAEM,WAAW,KAAI,sBAAsB;UAC/DC,UAAU,EAAER,CAAC;UACbS,OAAO,EAAE;QACX,CAAC,CAAC;MACJ;IACF;EACF;EACA,OAAOZ,OAAO;AAChB"}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _CommonStyles = require("../../../../styles/executionTasks/CommonStyles");
|
|
10
|
-
var _reactNativePaper = require("react-native-paper");
|
|
11
|
-
var _ReasonDropDown = _interopRequireDefault(require("./ReasonDropDown"));
|
|
12
|
-
var _ScannerUtils = require("../ScannerUtils");
|
|
13
|
-
var _ScannerSchema = require("../ScannerSchema");
|
|
14
|
-
var _Toaster = require("../../../widgets/Toaster");
|
|
15
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
17
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
|
-
const RTReasonSelection = props => {
|
|
19
|
-
const [selectedReason, setSelectedReason] = (0, _react.useState)();
|
|
20
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
21
|
-
style: _CommonStyles.CommonStyles.mainContainer
|
|
22
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
23
|
-
style: {
|
|
24
|
-
flex: 1,
|
|
25
|
-
marginTop: 20,
|
|
26
|
-
marginBottom: 20,
|
|
27
|
-
backgroundColor: '#ffffff',
|
|
28
|
-
padding: 18
|
|
29
|
-
}
|
|
30
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
31
|
-
style: {
|
|
32
|
-
lineHeight: 20,
|
|
33
|
-
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
|
|
34
|
-
color: '#111111',
|
|
35
|
-
fontSize: 16
|
|
36
|
-
}
|
|
37
|
-
}, `${(0, _ScannerUtils.getScannedItemCount)(props.scanList, _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED)} items not scanned`), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
38
|
-
style: {
|
|
39
|
-
marginTop: 5,
|
|
40
|
-
lineHeight: 20,
|
|
41
|
-
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular,
|
|
42
|
-
color: '#111111',
|
|
43
|
-
fontSize: 14,
|
|
44
|
-
marginBottom: 10
|
|
45
|
-
}
|
|
46
|
-
}, ` Do you want to proceed without scanning these shipments?`), /*#__PURE__*/_react.default.createElement(_ReasonDropDown.default, {
|
|
47
|
-
items: props.reasons,
|
|
48
|
-
onItemChange: reasonItem => {
|
|
49
|
-
if (reasonItem !== null) setSelectedReason(reasonItem);
|
|
50
|
-
},
|
|
51
|
-
style: {},
|
|
52
|
-
selectedReason: selectedReason
|
|
53
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
54
|
-
style: {
|
|
55
|
-
flex: 1,
|
|
56
|
-
marginStart: 16,
|
|
57
|
-
marginEnd: 16,
|
|
58
|
-
marginBottom: 16,
|
|
59
|
-
justifyContent: 'flex-end'
|
|
60
|
-
}
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
62
|
-
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
63
|
-
style: [_CommonStyles.CommonStyles.nextButton, {
|
|
64
|
-
marginBottom: 10
|
|
65
|
-
}],
|
|
66
|
-
mode: 'contained',
|
|
67
|
-
onPress: async () => {
|
|
68
|
-
if (selectedReason && props.scanList && props.scanList.length > 0) {
|
|
69
|
-
const scanResults = props.scanList.map(sc => {
|
|
70
|
-
if (sc.scanStatus === _ScannerSchema.SCAN_STATUS.TO_BE_SCANNED) {
|
|
71
|
-
sc.reasonCode = selectedReason.reasonCode;
|
|
72
|
-
sc.reasonText = selectedReason.reasonText;
|
|
73
|
-
sc.success = selectedReason.success;
|
|
74
|
-
}
|
|
75
|
-
return sc;
|
|
76
|
-
});
|
|
77
|
-
props.onSubmitET(scanResults);
|
|
78
|
-
} else {
|
|
79
|
-
(0, _Toaster.showToast)('No reason code selected!');
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}, "Proceed"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
83
|
-
style: [_CommonStyles.CommonStyles.cancelButton],
|
|
84
|
-
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
85
|
-
mode: 'outlined',
|
|
86
|
-
onPress: async () => {
|
|
87
|
-
props.showReasonSelectionPage(false);
|
|
88
|
-
}
|
|
89
|
-
}, "Cancel")));
|
|
90
|
-
};
|
|
91
|
-
var _default = RTReasonSelection;
|
|
92
|
-
exports.default = _default;
|
|
93
|
-
//# sourceMappingURL=RTReasonSelection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_CommonStyles","_reactNativePaper","_ReasonDropDown","_interopRequireDefault","_ScannerUtils","_ScannerSchema","_Toaster","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","RTReasonSelection","props","selectedReason","setSelectedReason","useState","createElement","View","style","CommonStyles","mainContainer","flex","marginTop","marginBottom","backgroundColor","padding","Text","lineHeight","fontFamily","Fonts","IBMPlexSans_600SemiBold","color","fontSize","getScannedItemCount","scanList","SCAN_STATUS","TO_BE_SCANNED","IBMPlexSans_400Regular","items","reasons","onItemChange","reasonItem","marginStart","marginEnd","justifyContent","Button","labelStyle","nextButtonLabel","nextButton","mode","onPress","length","scanResults","map","sc","scanStatus","reasonCode","reasonText","success","onSubmitET","showToast","cancelButton","cancelButtonLabel","showReasonSelectionPage","_default","exports"],"sources":["RTReasonSelection.tsx"],"sourcesContent":["import { Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport {\n CommonStyles,\n Fonts,\n} from '../../../../styles/executionTasks/CommonStyles';\nimport { Button } from 'react-native-paper';\nimport DropDownPicker, { ReasonItem } from './ReasonDropDown';\nimport type { ScanListProps } from './ScanList';\nimport { getScannedItemCount } from '../ScannerUtils';\nimport { SCAN_STATUS } from '../ScannerSchema';\nimport { showToast } from '../../../widgets/Toaster';\n\nconst RTReasonSelection = (props: RTReasonSelectionProps) => {\n const [selectedReason, setSelectedReason] = useState<ReasonItem>();\n\n return (\n <View style={CommonStyles.mainContainer}>\n <View\n style={{\n flex: 1,\n marginTop: 20,\n marginBottom: 20,\n backgroundColor: '#ffffff',\n padding: 18,\n }}\n >\n <Text\n style={{\n lineHeight: 20,\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n color: '#111111',\n fontSize: 16,\n }}\n >{`${getScannedItemCount(\n props.scanList,\n SCAN_STATUS.TO_BE_SCANNED\n )} items not scanned`}</Text>\n <Text\n style={{\n marginTop: 5,\n lineHeight: 20,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n color: '#111111',\n fontSize: 14,\n marginBottom: 10,\n }}\n >{` Do you want to proceed without scanning these shipments?`}</Text>\n\n <DropDownPicker\n items={props.reasons}\n onItemChange={(reasonItem: ReasonItem | null) => {\n if (reasonItem !== null) setSelectedReason(reasonItem);\n }}\n style={{}}\n selectedReason={selectedReason}\n />\n </View>\n\n <View\n style={{\n flex: 1,\n marginStart: 16,\n marginEnd: 16,\n marginBottom: 16,\n justifyContent: 'flex-end',\n }}\n >\n <Button\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginBottom: 10 }]}\n mode={'contained'}\n onPress={async () => {\n if (selectedReason && props.scanList && props.scanList.length > 0) {\n const scanResults = props.scanList.map((sc) => {\n if (sc.scanStatus === SCAN_STATUS.TO_BE_SCANNED) {\n sc.reasonCode = selectedReason.reasonCode;\n sc.reasonText = selectedReason.reasonText;\n sc.success = selectedReason.success;\n }\n return sc;\n });\n props.onSubmitET(scanResults);\n } else {\n showToast('No reason code selected!');\n }\n }}\n >\n Proceed\n </Button>\n <Button\n style={[CommonStyles.cancelButton]}\n labelStyle={CommonStyles.cancelButtonLabel}\n mode={'outlined'}\n onPress={async () => {\n props.showReasonSelectionPage(false);\n }}\n >\n Cancel\n </Button>\n </View>\n </View>\n );\n};\nexport default RTReasonSelection;\n\ntype RTReasonSelectionProps = ScanListProps & {\n showReasonSelectionPage: (show: boolean) => void;\n};\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,aAAA,GAAAH,OAAA;AAIA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,eAAA,GAAAC,sBAAA,CAAAN,OAAA;AAEA,IAAAO,aAAA,GAAAP,OAAA;AACA,IAAAQ,cAAA,GAAAR,OAAA;AACA,IAAAS,QAAA,GAAAT,OAAA;AAAqD,SAAAM,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAAA,SAAAG,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAZ,wBAAAQ,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAA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