@os1-platform/dispatch-mobile 2.1.2 → 2.1.4
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/android/.gradle/6.8/fileChanges/last-build.bin +0 -0
- package/android/.gradle/6.8/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/6.8/gc.properties +0 -0
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/configuration-cache/gc.properties +0 -0
- package/android/.gradle/vcs-1/gc.properties +0 -0
- package/android/.idea/gradle.xml +13 -0
- package/android/.idea/misc.xml +10 -0
- package/android/.idea/vcs.xml +6 -0
- package/dispatch-mobile.podspec +35 -0
- package/ios/DispatchSdk-Bridging-Header.h +3 -0
- package/ios/DispatchSdk.m +9 -0
- package/ios/DispatchSdk.swift +8 -0
- package/ios/DispatchSdk.xcodeproj/project.pbxproj +317 -0
- package/ios/EventEmitter.swift +21 -0
- package/ios/EventsConstant.swift +13 -0
- package/ios/RNEventEmitter.m +15 -0
- package/ios/RNEventEmitter.swift +24 -0
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +3 -4
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +13 -8
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +3 -4
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +3 -4
- 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 +112 -27
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +7 -8
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +113 -48
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +3 -4
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +7 -8
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +23 -24
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +4 -5
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +3 -4
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +3 -4
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +3 -4
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +3 -4
- 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 +138 -25
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +228 -132
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/camera.svg +3 -0
- package/lib/commonjs/components/executiontasks/imageCapture/circle-xmark.svg +5 -0
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +6 -7
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +6 -7
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +4 -5
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +4 -5
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickpSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +3 -4
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +89 -17
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +14 -15
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +1 -2
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/constants.js +6 -12
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +4 -8
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +4 -5
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +5 -6
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js +8 -9
- package/lib/commonjs/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/utils.js +2 -2
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +8 -9
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +1 -2
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js +6 -12
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +5 -6
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +2 -2
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +2 -2
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +3 -4
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -4
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js +14 -9
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +5 -6
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/Card.js +2 -3
- package/lib/commonjs/components/widgets/Card.js.map +1 -1
- package/lib/commonjs/components/widgets/GoBackModal.js +1 -2
- package/lib/commonjs/components/widgets/GoBackModal.js.map +1 -1
- package/lib/commonjs/components/widgets/IconButton.js +1 -2
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -1
- package/lib/commonjs/components/widgets/ModalWidget.js +3 -4
- package/lib/commonjs/components/widgets/ModalWidget.js.map +1 -1
- package/lib/commonjs/components/widgets/ProgressDialog.js +2 -3
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SearchBar.js +1 -2
- package/lib/commonjs/components/widgets/SearchBar.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +3 -5
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +3 -4
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -1
- package/lib/commonjs/components/widgets/TabsComponent.js +3 -4
- package/lib/commonjs/components/widgets/TabsComponent.js.map +1 -1
- package/lib/commonjs/config/DispatchSDKConfig.js +1 -2
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
- package/lib/commonjs/constants/apiConstants.js +2 -4
- package/lib/commonjs/constants/apiConstants.js.map +1 -1
- package/lib/commonjs/constants/constants.js +11 -22
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/constants/statuscode.js +1 -2
- package/lib/commonjs/constants/statuscode.js.map +1 -1
- package/lib/commonjs/errors/ErrorCodes.js +7 -14
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +5 -3
- package/lib/commonjs/events/EventDispatcher.js.map +1 -1
- package/lib/commonjs/events/EventListener.js +1 -2
- package/lib/commonjs/events/EventListener.js.map +1 -1
- package/lib/commonjs/events/constants.js +1 -2
- package/lib/commonjs/events/constants.js.map +1 -1
- package/lib/commonjs/events/index.js +1 -2
- package/lib/commonjs/events/index.js.map +1 -1
- package/lib/commonjs/icons/ScanIcon.js +1 -2
- package/lib/commonjs/icons/ScanIcon.js.map +1 -1
- package/lib/commonjs/icons/circleMark.svg +3 -0
- package/lib/commonjs/icons/file.js +1 -2
- package/lib/commonjs/icons/file.js.map +1 -1
- package/lib/commonjs/index.js +15 -2
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/locale/Str.js +21 -0
- package/lib/commonjs/locale/Str.js.map +1 -0
- package/lib/commonjs/locale/en.json +7 -0
- package/lib/commonjs/locale/i18n.js +32 -0
- package/lib/commonjs/locale/i18n.js.map +1 -0
- package/lib/commonjs/locale/util.js +27 -0
- package/lib/commonjs/locale/util.js.map +1 -0
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +5 -3
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +2 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +4 -2
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +4 -2
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +4 -2
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/location/LocationManager.js +7 -4
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +4 -2
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +2 -0
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/sdk/callbacksHandler.js +1 -2
- package/lib/commonjs/manager/sdk/callbacksHandler.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +4 -2
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +15 -26
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +1 -2
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/constants.js +5 -10
- package/lib/commonjs/manager/syncmanager/constants.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js +2 -2
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +5 -4
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +4 -2
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +4 -2
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +15 -3
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +4 -2
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js +1 -2
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +6 -12
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/fcm.js.map +1 -1
- package/lib/commonjs/models/sdk.js +1 -2
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +1 -2
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js +48 -4
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/Queries.js +5 -10
- package/lib/commonjs/network/Queries.js.map +1 -1
- package/lib/commonjs/res/strings.js +1 -2
- package/lib/commonjs/res/strings.js.map +1 -1
- package/lib/commonjs/resources/Login.js +1 -2
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js +1 -2
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +2 -4
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +8 -11
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +3 -4
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +5 -5
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +3 -4
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +36 -10
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +3 -4
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +27 -6
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +29 -10
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +25 -5
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +3 -4
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +1 -2
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +27 -9
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +31 -10
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +38 -10
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +3 -4
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +8 -7
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +3 -4
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +4 -4
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +1 -2
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +2 -4
- package/lib/commonjs/utils/ApiUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +10 -9
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +1 -2
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +12 -8
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +2 -2
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +3 -4
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +14 -2
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js +46 -4
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useModal.js +3 -4
- package/lib/commonjs/utils/hooks/useModal.js.map +1 -1
- package/lib/commonjs/utils/hooks/useTimer.js +1 -2
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -1
- package/lib/commonjs/utils/loginHelper.js +1 -2
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +71 -13
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +11 -5
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverETInput.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +112 -25
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +5 -5
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +111 -45
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashSchema.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +5 -5
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +21 -21
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormSchema.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureSchema.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js +133 -21
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +226 -130
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/camera.svg +3 -0
- package/lib/module/components/executiontasks/imageCapture/circle-xmark.svg +5 -0
- package/lib/module/components/executiontasks/payments/PaymentStyles.js +6 -6
- package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +4 -4
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentSchema.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentSchema.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentSchema.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickpSchema.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +89 -16
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +12 -12
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +2 -2
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +3 -3
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js +6 -6
- package/lib/module/components/executiontasks/scan/sub_components/SummaryPage.js.map +1 -1
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +6 -6
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +3 -3
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -1
- package/lib/module/components/widgets/AlertDisplay.js +12 -7
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +3 -3
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/Card.js +1 -1
- package/lib/module/components/widgets/Card.js.map +1 -1
- package/lib/module/components/widgets/ModalWidget.js +3 -3
- package/lib/module/components/widgets/ModalWidget.js.map +1 -1
- package/lib/module/components/widgets/ProgressDialog.js +2 -2
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +2 -2
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/constants/constants.js +1 -1
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +5 -2
- package/lib/module/events/EventDispatcher.js.map +1 -1
- package/lib/module/icons/circleMark.svg +3 -0
- package/lib/module/index.js +4 -2
- package/lib/module/index.js.map +1 -1
- package/lib/module/locale/Str.js +15 -0
- package/lib/module/locale/Str.js.map +1 -0
- package/lib/module/locale/en.json +7 -0
- package/lib/module/locale/i18n.js +25 -0
- package/lib/module/locale/i18n.js.map +1 -0
- package/lib/module/locale/util.js +18 -0
- package/lib/module/locale/util.js.map +1 -0
- package/lib/module/manager/dispatch/DispatchStateContainer.js +3 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +2 -0
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +2 -0
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +2 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +2 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/location/LocationManager.js +2 -0
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +2 -0
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +2 -0
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/syncmanager/AppSyncManager.js +2 -0
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +1 -0
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +2 -0
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +2 -0
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +13 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +2 -0
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/models/fcm.js.map +1 -1
- package/lib/module/network/GraphQLClient.js +48 -3
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +2 -1
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +2 -1
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +33 -6
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +24 -2
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +26 -6
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +22 -1
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +24 -5
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +28 -6
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +35 -6
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/StartWorkFlowScreen.js +6 -4
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +1 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/utils/Logger.js +2 -0
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +11 -7
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +11 -0
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js +46 -4
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/storage.js +69 -10
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +5 -0
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +1 -0
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +1 -0
- package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +1 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +1 -0
- package/lib/typescript/components/executiontasks/imageCapture/CaptureUtils.d.ts +6 -1
- package/lib/typescript/components/executiontasks/imageCapture/ImageCapture.d.ts +1 -2
- package/lib/typescript/components/executiontasks/payments/PaymentStyles.d.ts +4 -5
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +1 -0
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +1 -0
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +1 -0
- package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +2 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +1 -1
- package/lib/typescript/constants/constants.d.ts +1 -1
- package/lib/typescript/index.d.ts +4 -2
- package/lib/typescript/locale/Str.d.ts +13 -0
- package/lib/typescript/locale/i18n.d.ts +3 -0
- package/lib/typescript/locale/util.d.ts +2 -0
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +2 -1
- package/lib/typescript/models/fcm.d.ts +3 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +1 -0
- package/lib/typescript/utils/fcm/FcmUtils.d.ts +2 -1
- package/lib/typescript/utils/helper.d.ts +4 -3
- package/lib/typescript/utils/storage.d.ts +3 -2
- package/package.json +22 -7
- package/src/@types/assets/index.d.ts +6 -0
- package/src/components/dispatch/DispatchExecNavigator.tsx +273 -0
- package/src/components/executiontasks/CompletedWFSchema.ts +24 -0
- package/src/components/executiontasks/ExecutionTasksIndex.ts +137 -0
- package/src/components/executiontasks/cancellation/CancelET.tsx +281 -0
- package/src/components/executiontasks/cancellation/CancellationSchema.ts +30 -0
- package/src/components/executiontasks/captureInput/CaptureInputSchema.ts +52 -0
- package/src/components/executiontasks/captureInput/CaptureText.tsx +172 -0
- package/src/components/executiontasks/captureInput/utils.ts +9 -0
- package/src/components/executiontasks/deliver/DeliverET.tsx +124 -0
- package/src/components/executiontasks/deliver/DeliverETInput.ts +52 -0
- package/src/components/executiontasks/deliver/SLDeliverET.tsx +522 -0
- package/src/components/executiontasks/display/DisplayModalET.tsx +174 -0
- package/src/components/executiontasks/display/DisplaySchema.ts +29 -0
- package/src/components/executiontasks/doodle/SignatureET.tsx +325 -0
- package/src/components/executiontasks/doodle/SignatureSchema.ts +52 -0
- package/src/components/executiontasks/dropCash/DropCashET.tsx +145 -0
- package/src/components/executiontasks/dropCash/DropCashSchema.ts +23 -0
- package/src/components/executiontasks/dropCash/SLDropCash.tsx +286 -0
- package/src/components/executiontasks/forms/FormGenerator.tsx +277 -0
- package/src/components/executiontasks/forms/FormSchema.ts +30 -0
- package/src/components/executiontasks/forms/widgets/DateTimeWidget.tsx +144 -0
- package/src/components/executiontasks/forms/widgets/DropdownWidget.tsx +52 -0
- package/src/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.tsx +158 -0
- package/src/components/executiontasks/forms/widgets/TimeRangeSelector.tsx +38 -0
- package/src/components/executiontasks/httpRequest/HttpEtUtils.ts +49 -0
- package/src/components/executiontasks/httpRequest/HttpRequestET.tsx +59 -0
- package/src/components/executiontasks/httpRequest/HttpRequestETSchema.ts +42 -0
- package/src/components/executiontasks/imageCapture/CaptureSchema.ts +94 -0
- package/src/components/executiontasks/imageCapture/CaptureUtils.ts +321 -0
- package/src/components/executiontasks/imageCapture/ImageCapture.tsx +457 -0
- package/src/components/executiontasks/imageCapture/camera.svg +3 -0
- package/src/components/executiontasks/imageCapture/circle-xmark.svg +5 -0
- package/src/components/executiontasks/payments/PaymentStyles.ts +93 -0
- package/src/components/executiontasks/payments/PaymentUtils.ts +7 -0
- package/src/components/executiontasks/payments/completePayment/CompletePaymentET.tsx +238 -0
- package/src/components/executiontasks/payments/completePayment/CompletePaymentSchema.ts +24 -0
- package/src/components/executiontasks/payments/init/InitPaymentET.tsx +246 -0
- package/src/components/executiontasks/payments/init/InitPaymentSchema.ts +38 -0
- package/src/components/executiontasks/payments/processPayment/ProcessPaymentET.tsx +273 -0
- package/src/components/executiontasks/payments/processPayment/ProcessPaymentSchema.ts +39 -0
- package/src/components/executiontasks/pickup/PickpSchema.ts +30 -0
- package/src/components/executiontasks/pickup/PickupET.tsx +126 -0
- package/src/components/executiontasks/pickup/SLPickupET.tsx +372 -0
- package/src/components/executiontasks/scan/ScanET.tsx +1059 -0
- package/src/components/executiontasks/scan/ScanSchema.ts +121 -0
- package/src/components/executiontasks/scan/constants.ts +6 -0
- package/src/components/executiontasks/scan/interfaces.ts +109 -0
- package/src/components/executiontasks/scan/modalConstant.ts +120 -0
- package/src/components/executiontasks/scan/sub_components/CScanner.tsx +107 -0
- package/src/components/executiontasks/scan/sub_components/DropDownUtils.ts +119 -0
- package/src/components/executiontasks/scan/sub_components/ERDropDown.tsx +134 -0
- package/src/components/executiontasks/scan/sub_components/SummaryPage.tsx +1296 -0
- package/src/components/executiontasks/scan/utils.ts +1108 -0
- package/src/components/executiontasks/validateOTP/ValidateOTPET.tsx +436 -0
- package/src/components/executiontasks/validateOTP/ValidateOTPSchema.ts +68 -0
- package/src/components/executiontasks/validateOTP/constants.ts +24 -0
- package/src/components/executiontasks/validateOTP/sub-components/OTPInput.tsx +83 -0
- package/src/components/executiontasks/validateOTP/utils.ts +180 -0
- package/src/components/executiontasks/verifyInput/VerifyInputSchema.ts +49 -0
- package/src/components/executiontasks/verifyLocation/GeofenceUtils.ts +55 -0
- package/src/components/executiontasks/verifyLocation/VerifyLocSchema.ts +56 -0
- package/src/components/executiontasks/verifyLocation/VerifyLocationET.tsx +69 -0
- package/src/components/executiontasks/verifyOtp/VerifyOtpET.tsx +96 -0
- package/src/components/executiontasks/verifyOtp/VerifyOtpSchema.ts +27 -0
- package/src/components/utils/index.ts +18 -0
- package/src/components/widgets/AlertDisplay.tsx +38 -0
- package/src/components/widgets/CancelOrderDialog.tsx +112 -0
- package/src/components/widgets/Card.tsx +99 -0
- package/src/components/widgets/GoBackModal.tsx +49 -0
- package/src/components/widgets/IconButton.tsx +32 -0
- package/src/components/widgets/ModalWidget.tsx +157 -0
- package/src/components/widgets/ProgressDialog.tsx +54 -0
- package/src/components/widgets/SearchBar.tsx +71 -0
- package/src/components/widgets/SnackBarCustom.tsx +212 -0
- package/src/components/widgets/SplitTextInput.tsx +116 -0
- package/src/components/widgets/TabsComponent.tsx +84 -0
- package/src/components/widgets/Toaster.ts +8 -0
- package/src/config/DispatchSDKConfig.ts +4 -0
- package/src/constants/apiConstants.ts +11 -0
- package/src/constants/constants.ts +12 -0
- package/src/constants/statuscode.ts +8 -0
- package/src/errors/BaseError.ts +16 -0
- package/src/errors/ErrorCodes.ts +38 -0
- package/src/events/EventDispatcher.ts +22 -0
- package/src/events/EventListener.ts +14 -0
- package/src/events/constants.ts +7 -0
- package/src/events/index.ts +3 -0
- package/src/events/interface.ts +1 -0
- package/src/icons/ScanIcon.tsx +24 -0
- package/src/icons/circleMark.svg +3 -0
- package/src/icons/file.tsx +24 -0
- package/src/icons/interface.ts +5 -0
- package/src/index.tsx +82 -0
- package/src/locale/Str.ts +15 -0
- package/src/locale/en.json +7 -0
- package/src/locale/i18n.ts +26 -0
- package/src/locale/util.ts +20 -0
- package/src/manager/dispatch/DispatchStateContainer.tsx +842 -0
- package/src/manager/dispatchCodes/EventCodeContainer.ts +75 -0
- package/src/manager/dispatchCodes/EventCodeRepo.ts +82 -0
- package/src/manager/dispatchCodes/ReasonCodeContainer.ts +121 -0
- package/src/manager/dispatchCodes/ReasonCodeRepo.ts +90 -0
- package/src/manager/dispatchCodes/reasonCodes.json +137 -0
- package/src/manager/jobRemoval/JobRemovalManager.ts +21 -0
- package/src/manager/location/LocationManager.ts +77 -0
- package/src/manager/sdk/DispatchSDKManager.ts +99 -0
- package/src/manager/sdk/DispatchSdkCache.ts +47 -0
- package/src/manager/sdk/callbacksHandler.ts +25 -0
- package/src/manager/syncmanager/AppSyncManager.ts +187 -0
- package/src/manager/syncmanager/DBConfig.ts +181 -0
- package/src/manager/syncmanager/NativeSyncManager.ts +14 -0
- package/src/manager/syncmanager/constants.ts +5 -0
- package/src/manager/syncmanager/database.ts +93 -0
- package/src/manager/syncmanager/document/DocumentHttpClient.ts +111 -0
- package/src/manager/syncmanager/document/DocumentManager.ts +143 -0
- package/src/manager/syncmanager/document/DocumentSyncManager.ts +233 -0
- package/src/manager/syncmanager/document/models.ts +4 -0
- package/src/manager/syncmanager/events/ETEventsManager.ts +647 -0
- package/src/manager/syncmanager/events/EventsGraphQLClient.ts +0 -0
- package/src/manager/syncmanager/events/EventsSyncManager.ts +490 -0
- package/src/manager/syncmanager/events/SyncHttpClient.ts +202 -0
- package/src/models/DispatchModels.ts +97 -0
- package/src/models/ReasonCodes.ts +12 -0
- package/src/models/auth.ts +43 -0
- package/src/models/execTasks/ETBaseModels.ts +113 -0
- package/src/models/execTasks/ETConfig.ts +94 -0
- package/src/models/execution.ts +9 -0
- package/src/models/fcm.ts +6 -0
- package/src/models/sdk.ts +35 -0
- package/src/native/signature/SignatureCapture.tsx +110 -0
- package/src/network/GraphQLClient.ts +147 -0
- package/src/network/NetworkClient.ts +58 -0
- package/src/network/NetworkUtils.ts +41 -0
- package/src/network/Queries.ts +46 -0
- package/src/network/client.ts +61 -0
- package/src/res/strings.ts +1 -0
- package/src/resources/Login.ts +36 -0
- package/src/resources/network.ts +13 -0
- package/src/styles/SdkColors.ts +24 -0
- package/src/styles/executionTasks/CommonStyles.ts +189 -0
- package/src/ui/screens/CancellationScreen.tsx +144 -0
- package/src/ui/screens/CaptureInputScreen.tsx +79 -0
- package/src/ui/screens/CompleteObjectiveScreen.tsx +72 -0
- package/src/ui/screens/DeliverScreen.tsx +136 -0
- package/src/ui/screens/DisplayScreen.tsx +52 -0
- package/src/ui/screens/DoodleScreen.tsx +107 -0
- package/src/ui/screens/DropCashScreen.tsx +132 -0
- package/src/ui/screens/ETScreensIndex.ts +35 -0
- package/src/ui/screens/FormsScreen.tsx +186 -0
- package/src/ui/screens/GeofenceScreen.tsx +54 -0
- package/src/ui/screens/HttpRequestScreen.tsx +47 -0
- package/src/ui/screens/ImageCaptureScreen.tsx +95 -0
- package/src/ui/screens/PaymentScreen.tsx +213 -0
- package/src/ui/screens/PickupScreen.tsx +112 -0
- package/src/ui/screens/ScanScreen.tsx +159 -0
- package/src/ui/screens/StartWorkFlowScreen.tsx +233 -0
- package/src/ui/screens/ValidateOTPScreen.tsx +62 -0
- package/src/ui/screens/WithBaseDispatchScreen.tsx +33 -0
- package/src/ui/uiConfig/RouteParams.ts +28 -0
- package/src/utils/ApiUtils.ts +157 -0
- package/src/utils/ExecTaskUtils.ts +214 -0
- package/src/utils/Logger.ts +110 -0
- package/src/utils/NetworkUtil.ts +50 -0
- package/src/utils/SdkUtils.ts +155 -0
- package/src/utils/SyncManagerUtils.ts +223 -0
- package/src/utils/fcm/FCM.ts +118 -0
- package/src/utils/fcm/FcmUtils.ts +130 -0
- package/src/utils/helper.ts +67 -0
- package/src/utils/hooks/useModal.tsx +67 -0
- package/src/utils/hooks/useTimer.ts +44 -0
- package/src/utils/loginHelper.ts +51 -0
- package/src/utils/storage.ts +292 -0
- package/src/utils/test.json +17 -0
- package/src/utils/utils.ts +30 -0
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +0 -5
- package/android/gradlew +0 -185
- package/android/gradlew.bat +0 -89
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { BackHandler, StyleSheet, Text, View, Modal } from 'react-native';
|
|
2
|
-
import React, { useState, useLayoutEffect } from 'react';
|
|
1
|
+
import { BackHandler, StyleSheet, Text, View, Modal, Platform, TouchableOpacity } from 'react-native';
|
|
2
|
+
import React, { useState, useLayoutEffect, useCallback } from 'react';
|
|
3
3
|
import { Button, Portal, Provider } from 'react-native-paper';
|
|
4
4
|
import { CommonStyles, DeliverPickupStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
|
|
5
5
|
import { getBaseETResponse } from '../../../utils/ExecTaskUtils';
|
|
6
6
|
import { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';
|
|
7
7
|
import { EntityCode, ExecutionTaskID } from '../../../models/execTasks/ETConfig';
|
|
8
|
-
import {
|
|
8
|
+
import { DEFAULT_PICKUP_TITLE, GO_BACK_EVENT_CODE } from '../../../constants/constants';
|
|
9
9
|
import Icon from 'react-native-vector-icons/MaterialIcons';
|
|
10
10
|
import { hasGoBackConnector } from '../../../components/utils';
|
|
11
11
|
import GoBackModal from '../../../components/widgets/GoBackModal';
|
|
12
12
|
import { useFocusEffect } from '@react-navigation/native';
|
|
13
|
+
import { getStrVal } from '../../../locale/util';
|
|
14
|
+
import Str from '../../../locale/Str';
|
|
15
|
+
import CircleMark from '../../../icons/circleMark.svg';
|
|
16
|
+
import ModalWidget from '../../../components/widgets/ModalWidget';
|
|
13
17
|
const ListItem = _ref => {
|
|
14
18
|
let {
|
|
15
19
|
lineItem
|
|
@@ -24,8 +28,8 @@ const ListItem = _ref => {
|
|
|
24
28
|
};
|
|
25
29
|
const getMessage = (pickupCount, message) => {
|
|
26
30
|
try {
|
|
27
|
-
const msg = message || DEFAULT_PICKUP_MESSAGE;
|
|
28
|
-
return msg
|
|
31
|
+
const msg = message || getStrVal(Str.DEFAULT_PICKUP_MESSAGE, Str.count, pickupCount);
|
|
32
|
+
return msg;
|
|
29
33
|
} catch (error) {
|
|
30
34
|
return message || '';
|
|
31
35
|
}
|
|
@@ -42,9 +46,8 @@ const SLPickupET = props => {
|
|
|
42
46
|
const [disableProceed, setDisableProceed] = useState(false);
|
|
43
47
|
const [showBackModal, setShowBackModal] = useState(false);
|
|
44
48
|
const [showPickupModal, setShowPickupModal] = useState(true);
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
useFocusEffect(React.useCallback(() => {
|
|
49
|
+
const [goBack, setGoBack] = useState(false);
|
|
50
|
+
useFocusEffect(useCallback(() => {
|
|
48
51
|
const onBackPress = () => {
|
|
49
52
|
var _props$taskMeta;
|
|
50
53
|
if ((_props$taskMeta = props.taskMeta) !== null && _props$taskMeta !== void 0 && _props$taskMeta.enableGoBack && hasGoBackConnector(props.applicableReasons)) {
|
|
@@ -91,13 +94,52 @@ const SLPickupET = props => {
|
|
|
91
94
|
onFailure: () => setShowBackModal(false)
|
|
92
95
|
});
|
|
93
96
|
};
|
|
94
|
-
|
|
97
|
+
const renderGoBackModal = () => {
|
|
98
|
+
return /*#__PURE__*/React.createElement(ModalWidget, {
|
|
99
|
+
dismissable: true,
|
|
100
|
+
showModal: goBack,
|
|
101
|
+
title: {
|
|
102
|
+
label: `Are you sure you want to exit ${DEFAULT_PICKUP_TITLE}?`
|
|
103
|
+
},
|
|
104
|
+
subTitle: {
|
|
105
|
+
label: 'All progress will be lost',
|
|
106
|
+
styles: {
|
|
107
|
+
alignSelf: 'center'
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
primaryButton: {
|
|
111
|
+
label: 'Exit',
|
|
112
|
+
onPress: async () => {
|
|
113
|
+
var _props$taskMeta3;
|
|
114
|
+
if ((_props$taskMeta3 = props.taskMeta) !== null && _props$taskMeta3 !== void 0 && _props$taskMeta3.enableGoBack && hasGoBackConnector(props.applicableReasons)) {
|
|
115
|
+
props.onSubmitET({
|
|
116
|
+
...(await getBaseETResponse(EntityCode.PICKUP, false, GO_BACK_EVENT_CODE, '', props.mergedObjectiveId, ExecutionTaskID.PICKUP))
|
|
117
|
+
});
|
|
118
|
+
setShowBackModal(false);
|
|
119
|
+
} else {
|
|
120
|
+
props.navigation.goBack();
|
|
121
|
+
}
|
|
122
|
+
setShowBackModal(false);
|
|
123
|
+
},
|
|
124
|
+
styles: styles.primaryButtonStyles
|
|
125
|
+
},
|
|
126
|
+
secondaryButton: {
|
|
127
|
+
label: 'Cancel',
|
|
128
|
+
onPress: () => {
|
|
129
|
+
setGoBack(false);
|
|
130
|
+
setShowPickupModal(true);
|
|
131
|
+
},
|
|
132
|
+
styles: styles.secondaryButtonStyles
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
return /*#__PURE__*/React.createElement(Provider, null, /*#__PURE__*/React.createElement(Portal, null, renderModal()), /*#__PURE__*/React.createElement(Portal, null, renderGoBackModal()), /*#__PURE__*/React.createElement(View, {
|
|
95
137
|
style: styles.container
|
|
96
138
|
}, /*#__PURE__*/React.createElement(Modal, {
|
|
97
139
|
visible: showPickupModal,
|
|
98
140
|
onRequestClose: () => {
|
|
99
|
-
var _props$
|
|
100
|
-
if ((_props$
|
|
141
|
+
var _props$taskMeta4;
|
|
142
|
+
if ((_props$taskMeta4 = props.taskMeta) !== null && _props$taskMeta4 !== void 0 && _props$taskMeta4.enableGoBack && hasGoBackConnector(props.applicableReasons)) {
|
|
101
143
|
setShowPickupModal(false);
|
|
102
144
|
setShowBackModal(true);
|
|
103
145
|
return true;
|
|
@@ -111,13 +153,27 @@ const SLPickupET = props => {
|
|
|
111
153
|
style: styles.modalView
|
|
112
154
|
}, /*#__PURE__*/React.createElement(View, {
|
|
113
155
|
style: styles.modalStyle
|
|
114
|
-
}, /*#__PURE__*/React.createElement(
|
|
156
|
+
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
157
|
+
onPress: () => {
|
|
158
|
+
setShowPickupModal(false);
|
|
159
|
+
setGoBack(true);
|
|
160
|
+
},
|
|
161
|
+
style: styles.crossIcon,
|
|
162
|
+
hitSlop: {
|
|
163
|
+
bottom: 10,
|
|
164
|
+
top: 10,
|
|
165
|
+
right: 10,
|
|
166
|
+
left: 10
|
|
167
|
+
}
|
|
168
|
+
}, /*#__PURE__*/React.createElement(CircleMark, null)), /*#__PURE__*/React.createElement(View, {
|
|
115
169
|
style: styles.modalBody
|
|
116
170
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
117
171
|
style: DeliverPickupStyles.titleText
|
|
118
172
|
}, props.title || DEFAULT_PICKUP_TITLE), /*#__PURE__*/React.createElement(Text, {
|
|
119
173
|
style: DeliverPickupStyles.messageText
|
|
120
|
-
}, getMessage(props.pickupCount, props.message))
|
|
174
|
+
}, getMessage(props.pickupCount, props.message)), /*#__PURE__*/React.createElement(Text, {
|
|
175
|
+
style: DeliverPickupStyles.messageText
|
|
176
|
+
}, props !== null && props !== void 0 && props.shipCount ? getStrVal(Str.shipments, Str.count, props.shipCount) : '')), /*#__PURE__*/React.createElement(View, {
|
|
121
177
|
style: styles.bottomButtons
|
|
122
178
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
123
179
|
disabled: disableProceed,
|
|
@@ -135,7 +191,7 @@ const SLPickupET = props => {
|
|
|
135
191
|
...(await getBaseETResponse(EntityCode.PICKUP, true, getEventCodeByET(ExecutionTaskID.PICKUP, true, (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.success), '', props.mergedObjectiveId, ExecutionTaskID.PICKUP))
|
|
136
192
|
});
|
|
137
193
|
}
|
|
138
|
-
}, "Yes"), /*#__PURE__*/React.createElement(Button, {
|
|
194
|
+
}, "Yes"), (props === null || props === void 0 ? void 0 : props.isSelfLoop) == false && /*#__PURE__*/React.createElement(Button, {
|
|
139
195
|
disabled: disableProceed,
|
|
140
196
|
uppercase: false,
|
|
141
197
|
style: [CommonStyles.cancelButton, {
|
|
@@ -174,6 +230,9 @@ const styles = StyleSheet.create({
|
|
|
174
230
|
paddingHorizontal: 40,
|
|
175
231
|
alignItems: 'center'
|
|
176
232
|
},
|
|
233
|
+
crossIcon: {
|
|
234
|
+
alignSelf: 'flex-end'
|
|
235
|
+
},
|
|
177
236
|
bottomButtons: {
|
|
178
237
|
marginTop: 12
|
|
179
238
|
},
|
|
@@ -183,7 +242,7 @@ const styles = StyleSheet.create({
|
|
|
183
242
|
flexDirection: 'row'
|
|
184
243
|
},
|
|
185
244
|
subTitle: {
|
|
186
|
-
fontFamily: Fonts.IBMPlexSans_400Regular,
|
|
245
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
|
|
187
246
|
fontStyle: 'normal',
|
|
188
247
|
fontWeight: '400',
|
|
189
248
|
fontSize: 14,
|
|
@@ -198,7 +257,21 @@ const styles = StyleSheet.create({
|
|
|
198
257
|
lineHeight: 28,
|
|
199
258
|
fontStyle: 'normal',
|
|
200
259
|
color: '#111111',
|
|
201
|
-
fontFamily: Fonts.IBMPlexSans_600SemiBold
|
|
260
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_600SemiBold : 'IBMPlexSans-SemiBold'
|
|
261
|
+
},
|
|
262
|
+
primaryButtonStyles: {
|
|
263
|
+
marginTop: 16,
|
|
264
|
+
height: 40,
|
|
265
|
+
borderRadius: 6,
|
|
266
|
+
justifyContent: 'center',
|
|
267
|
+
alignItems: 'center'
|
|
268
|
+
},
|
|
269
|
+
secondaryButtonStyles: {
|
|
270
|
+
marginVertical: 16,
|
|
271
|
+
height: 40,
|
|
272
|
+
borderRadius: 6,
|
|
273
|
+
justifyContent: 'center',
|
|
274
|
+
alignItems: 'center'
|
|
202
275
|
}
|
|
203
276
|
});
|
|
204
277
|
//# sourceMappingURL=SLPickupET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["BackHandler","StyleSheet","Text","View","Modal","React","useState","useLayoutEffect","Button","Portal","Provider","CommonStyles","DeliverPickupStyles","Fonts","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","DEFAULT_PICKUP_MESSAGE","DEFAULT_PICKUP_TITLE","GO_BACK_EVENT_CODE","Icon","hasGoBackConnector","GoBackModal","useFocusEffect","ListItem","_ref","lineItem","createElement","style","justifyContent","itemTextStyle","skuId","getMessage","pickupCount","message","msg","replace","toString","error","renderItem","_ref2","item","SLPickupET","props","disableProceed","setDisableProceed","showBackModal","setShowBackModal","showPickupModal","setShowPickupModal","useCallback","onBackPress","_props$taskMeta","taskMeta","enableGoBack","applicableReasons","navigation","goBack","addEventListener","removeEventListener","setOptions","title","headerLeft","onPress","_props$taskMeta2","name","color","size","paddingRight","paddingTop","renderModal","showModal","setShowModal","onSuccess","onSubmitET","PICKUP","mergedObjectiveId","onFailure","styles","container","visible","onRequestClose","_props$taskMeta3","modalView","modalStyle","modalBody","titleText","messageText","bottomButtons","disabled","uppercase","labelStyle","nextButtonLabel","nextButton","marginTop","mode","_props$applicableReas","remark","success","cancelButton","cancelButtonLabel","_props$applicableReas2","failure","create","flex","alignItems","backgroundColor","padding","borderRadius","elevation","paddingHorizontal","returnView","marginBottom","flexDirection","subTitle","fontFamily","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","textAlign","lineHeight","IBMPlexSans_600SemiBold"],"sources":["SLPickupET.tsx"],"sourcesContent":["import { BackHandler, StyleSheet, Text, View, Modal } from 'react-native';\nimport React, { useState, useLayoutEffect } from 'react';\nimport { Button, Portal, Provider } from 'react-native-paper';\n\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { PickupETInput } from './PickpSchema';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_PICKUP_MESSAGE,\n DEFAULT_PICKUP_TITLE,\n GO_BACK_EVENT_CODE,\n} from '../../../constants/constants';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport { hasGoBackConnector } from '../../../components/utils';\nimport GoBackModal from '../../../components/widgets/GoBackModal';\nimport { useFocusEffect } from '@react-navigation/native';\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${lineItem.skuId}`}</Text>\n </View>\n);\n\nconst getMessage = (\n pickupCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_PICKUP_MESSAGE;\n return msg.replace('$', pickupCount?.toString() || '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\nconst SLPickupET = (props: PickupETInput) => {\n const [disableProceed, setDisableProceed] = useState(false);\n const [showBackModal, setShowBackModal] = useState(false);\n const [showPickupModal, setShowPickupModal] = useState(true);\n\n // Handle back-button click\n useFocusEffect(\n React.useCallback(() => {\n const onBackPress = () => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowBackModal(true);\n return true;\n } else {\n props.navigation.goBack();\n return true;\n }\n };\n BackHandler.addEventListener('hardwareBackPress', onBackPress);\n return () =>\n BackHandler.removeEventListener('hardwareBackPress', onBackPress);\n }, [])\n );\n\n useLayoutEffect(() => {\n props.navigation.setOptions({\n title: props.title,\n headerLeft: () => {\n return (\n <Icon\n onPress={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n )\n setShowBackModal(true);\n else props.navigation.goBack();\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n );\n },\n });\n }, [props.navigation, props.title]);\n\n const renderModal = () => {\n return (\n <GoBackModal\n showModal={showBackModal}\n setShowModal={setShowBackModal}\n onSuccess={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n setShowBackModal(false);\n }}\n onFailure={() => setShowBackModal(false)}\n />\n );\n };\n\n return (\n <Provider>\n <Portal>{renderModal()}</Portal>\n <View style={styles.container}>\n <Modal\n visible={showPickupModal}\n onRequestClose={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowPickupModal(false);\n setShowBackModal(true);\n return true;\n } else {\n setShowPickupModal(false);\n props.navigation.goBack();\n return true;\n }\n }}\n >\n <View style={styles.modalView}>\n <View style={styles.modalStyle}>\n <View style={styles.modalBody}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_PICKUP_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.pickupCount, props.message)}\n </Text>\n {/* Removed showing the item when item.length === 1 */}\n {/* {props.pickupCount === 1 && props.items.length ? (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${props.items[0].skuId}`}</Text>\n </View>\n ) : null} */}\n </View>\n <View style={styles.bottomButtons}>\n <Button\n disabled={disableProceed}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n mode={'contained'}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n true,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n Yes\n </Button>\n <Button\n disabled={disableProceed}\n uppercase={false}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n mode=\"outlined\"\n labelStyle={CommonStyles.cancelButtonLabel}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n false,\n props.applicableReasons?.failure\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n No\n </Button>\n </View>\n </View>\n </View>\n </Modal>\n </View>\n </Provider>\n );\n};\n\nexport default SLPickupET;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n modalView: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n modalStyle: {\n backgroundColor: 'white',\n padding: 20,\n borderRadius: 8,\n elevation: 5,\n },\n modalBody: {\n paddingHorizontal: 40,\n alignItems: 'center',\n },\n bottomButtons: {\n marginTop: 12,\n },\n returnView: {\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n },\n subTitle: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n flex: 1,\n textAlign: 'left',\n lineHeight: 28,\n color: '#111111',\n },\n title: {\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n },\n});\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,EAAEC,KAAK,QAAQ,cAAc;AACzE,OAAOC,KAAK,IAAIC,QAAQ,EAAEC,eAAe,QAAQ,OAAO;AACxD,SAASC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,oBAAoB;AAE7D,SACEC,YAAY,EACZC,mBAAmB,EACnBC,KAAK,QACA,6CAA6C;AACpD,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,gBAAgB,QAAQ,mDAAmD;AACpF,SACEC,UAAU,EACVC,eAAe,QACV,oCAAoC;AAG3C,SACEC,sBAAsB,EACtBC,oBAAoB,EACpBC,kBAAkB,QACb,8BAA8B;AACrC,OAAOC,IAAI,MAAM,yCAAyC;AAC1D,SAASC,kBAAkB,QAAQ,2BAA2B;AAC9D,OAAOC,WAAW,MAAM,yCAAyC;AACjE,SAASC,cAAc,QAAQ,0BAA0B;AAEzD,MAAMC,QAAQ,GAAGC,IAAA;EAAA,IAAC;IAAEC;EAAiC,CAAC,GAAAD,IAAA;EAAA,oBACpDrB,KAAA,CAAAuB,aAAA,CAACzB,IAAI;IAAC0B,KAAK,EAAE;MAAEC,cAAc,EAAE;IAAS;EAAE,gBACxCzB,KAAA,CAAAuB,aAAA,CA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C;EACDjB,aAAa,EAAE;IACbM,SAAS,EAAE;EACb,CAAC;EACDiB,UAAU,EAAE;IACVjB,SAAS,EAAE,EAAE;IACbkB,YAAY,EAAE,EAAE;IAChBC,aAAa,EAAE;EACjB,CAAC;EACDC,QAAQ,EAAE;IACRC,UAAU,EAAEvG,KAAK,CAACwG,sBAAsB;IACxCC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAE,EAAE;IACZf,IAAI,EAAE,CAAC;IACPgB,SAAS,EAAE,MAAM;IACjBC,UAAU,EAAE,EAAE;IACdvD,KAAK,EAAE;EACT,CAAC;EACDL,KAAK,EAAE;IACL2D,SAAS,EAAE,OAAO;IAClBD,QAAQ,EAAE,EAAE;IACZE,UAAU,EAAE,EAAE;IACdJ,SAAS,EAAE,QAAQ;IACnBnD,KAAK,EAAE,SAAS;IAChBiD,UAAU,EAAEvG,KAAK,CAAC8G;EACpB;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["BackHandler","StyleSheet","Text","View","Modal","Platform","TouchableOpacity","React","useState","useLayoutEffect","useCallback","Button","Portal","Provider","CommonStyles","DeliverPickupStyles","Fonts","getBaseETResponse","getEventCodeByET","EntityCode","ExecutionTaskID","DEFAULT_PICKUP_TITLE","GO_BACK_EVENT_CODE","Icon","hasGoBackConnector","GoBackModal","useFocusEffect","getStrVal","Str","CircleMark","ModalWidget","ListItem","_ref","lineItem","createElement","style","justifyContent","itemTextStyle","skuId","getMessage","pickupCount","message","msg","DEFAULT_PICKUP_MESSAGE","count","error","renderItem","_ref2","item","SLPickupET","props","disableProceed","setDisableProceed","showBackModal","setShowBackModal","showPickupModal","setShowPickupModal","goBack","setGoBack","onBackPress","_props$taskMeta","taskMeta","enableGoBack","applicableReasons","navigation","addEventListener","removeEventListener","setOptions","title","headerLeft","onPress","_props$taskMeta2","name","color","size","paddingRight","paddingTop","renderModal","showModal","setShowModal","onSuccess","onSubmitET","PICKUP","mergedObjectiveId","onFailure","renderGoBackModal","dismissable","label","subTitle","styles","alignSelf","primaryButton","_props$taskMeta3","primaryButtonStyles","secondaryButton","secondaryButtonStyles","container","visible","onRequestClose","_props$taskMeta4","modalView","modalStyle","crossIcon","hitSlop","bottom","top","right","left","modalBody","titleText","messageText","shipCount","shipments","bottomButtons","disabled","uppercase","labelStyle","nextButtonLabel","nextButton","marginTop","mode","_props$applicableReas","remark","success","isSelfLoop","cancelButton","cancelButtonLabel","_props$applicableReas2","failure","create","flex","alignItems","backgroundColor","padding","borderRadius","elevation","paddingHorizontal","returnView","marginBottom","flexDirection","fontFamily","OS","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","textAlign","lineHeight","IBMPlexSans_600SemiBold","height","marginVertical"],"sources":["SLPickupET.tsx"],"sourcesContent":["import { BackHandler, StyleSheet, Text, View, Modal, Platform, TouchableOpacity } from 'react-native';\nimport React, { useState, useLayoutEffect, useCallback, useEffect } from 'react';\nimport { Button, Portal, Provider } from 'react-native-paper';\n\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport type { PickupETInput } from './PickpSchema';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_PICKUP_MESSAGE,\n DEFAULT_PICKUP_TITLE,\n GO_BACK_EVENT_CODE,\n} from '../../../constants/constants';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\nimport { hasGoBackConnector } from '../../../components/utils';\nimport GoBackModal from '../../../components/widgets/GoBackModal';\nimport { useFocusEffect } from '@react-navigation/native';\nimport { getStrVal } from '../../../locale/util';\nimport Str from '../../../locale/Str';\nimport CircleMark from '../../../icons/circleMark.svg';\nimport ModalWidget from '../../../components/widgets/ModalWidget';\n\n\nconst ListItem = ({ lineItem }: { lineItem: LineItem }) => (\n <View style={{ justifyContent: 'center' }}>\n <Text style={DeliverPickupStyles.itemTextStyle}>\n {`Order ID: ${lineItem.skuId}`}\n </Text>\n </View>\n);\n\nconst getMessage = (\n pickupCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || getStrVal(Str.DEFAULT_PICKUP_MESSAGE, Str.count, pickupCount);\n return msg;\n } catch (error: any) {\n return message || '';\n }\n};\n\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\nconst SLPickupET = (props: PickupETInput) => {\n const [disableProceed, setDisableProceed] = useState(false);\n const [showBackModal, setShowBackModal] = useState(false);\n const [showPickupModal, setShowPickupModal] = useState(true);\n const [goBack, setGoBack] = useState(false);\n\n\n useFocusEffect(\n useCallback(() => {\n const onBackPress = () => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowBackModal(true);\n return true;\n } else {\n props.navigation.goBack();\n return true;\n }\n };\n BackHandler.addEventListener('hardwareBackPress', onBackPress);\n return () =>\n BackHandler.removeEventListener('hardwareBackPress', onBackPress);\n }, [])\n );\n\n useLayoutEffect(() => {\n props.navigation.setOptions({\n title: props.title,\n headerLeft: () => {\n return (\n <Icon\n onPress={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n )\n setShowBackModal(true);\n else props.navigation.goBack();\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n );\n },\n });\n }, [props.navigation, props.title]);\n\n const renderModal = () => {\n return (\n <GoBackModal\n showModal={showBackModal}\n setShowModal={setShowBackModal}\n onSuccess={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n setShowBackModal(false);\n }}\n onFailure={() => setShowBackModal(false)}\n />\n );\n };\n\n const renderGoBackModal = () => {\n return (\n <ModalWidget\n dismissable={true}\n showModal={goBack}\n title={{\n label: `Are you sure you want to exit ${DEFAULT_PICKUP_TITLE}?`,\n }}\n subTitle={{\n label: 'All progress will be lost',\n styles: {\n alignSelf: 'center',\n },\n }}\n primaryButton={{\n label: 'Exit',\n onPress: async () => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n GO_BACK_EVENT_CODE,\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n setShowBackModal(false);\n } else {\n props.navigation.goBack();\n }\n setShowBackModal(false);\n },\n styles: styles.primaryButtonStyles,\n }}\n secondaryButton={{\n label: 'Cancel',\n onPress: () => {\n setGoBack(false);\n setShowPickupModal(true);\n },\n styles: styles.secondaryButtonStyles,\n }}\n />\n );\n };\n\n return (\n <Provider>\n <Portal>{renderModal()}</Portal>\n <Portal>{renderGoBackModal()}</Portal>\n <View style={styles.container}>\n <Modal\n visible={showPickupModal}\n onRequestClose={() => {\n if (\n props.taskMeta?.enableGoBack &&\n hasGoBackConnector(props.applicableReasons)\n ) {\n setShowPickupModal(false);\n setShowBackModal(true);\n return true;\n } else {\n setShowPickupModal(false);\n props.navigation.goBack();\n return true;\n }\n }}\n >\n <View style={styles.modalView}>\n <View style={styles.modalStyle}>\n <TouchableOpacity\n onPress={() => {\n setShowPickupModal(false);\n setGoBack(true);\n }}\n style={styles.crossIcon}\n hitSlop={{ bottom: 10, top: 10, right: 10, left: 10 }}\n >\n <CircleMark />\n </TouchableOpacity>\n <View style={styles.modalBody}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_PICKUP_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.pickupCount, props.message)}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {props?.shipCount ? getStrVal(Str.shipments, Str.count, props.shipCount) : ''}\n </Text>\n {/* Removed showing the item when item.length === 1 */}\n {/* {props.pickupCount === 1 && props.items.length ? (\n <View style={{ justifyContent: 'center' }}>\n <Text\n style={DeliverPickupStyles.itemTextStyle}\n >{`Order ID: ${props.items[0].skuId}`}</Text>\n </View>\n ) : null} */}\n </View>\n <View style={styles.bottomButtons}>\n <Button\n disabled={disableProceed}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n mode={'contained'}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n true,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n true,\n props.applicableReasons?.success\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n Yes\n </Button>\n {(props?.isSelfLoop == false) && <Button\n disabled={disableProceed}\n uppercase={false}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n mode=\"outlined\"\n labelStyle={CommonStyles.cancelButtonLabel}\n onPress={async () => {\n setDisableProceed(true);\n props.onSubmitET({\n remark: '',\n ...(await getBaseETResponse(\n EntityCode.PICKUP,\n false,\n getEventCodeByET(\n ExecutionTaskID.PICKUP,\n false,\n props.applicableReasons?.failure\n ),\n '',\n props.mergedObjectiveId,\n ExecutionTaskID.PICKUP\n )),\n });\n }}\n >\n No\n </Button>}\n </View>\n </View>\n </View>\n </Modal>\n </View>\n </Provider>\n );\n};\n\nexport default SLPickupET;\n\nconst styles = StyleSheet.create({\n container: {\n flex: 1,\n },\n modalView: {\n flex: 1,\n justifyContent: 'center',\n alignItems: 'center',\n backgroundColor: 'rgba(0, 0, 0, 0.5)',\n },\n modalStyle: {\n backgroundColor: 'white',\n padding: 20,\n borderRadius: 8,\n elevation: 5,\n },\n modalBody: {\n paddingHorizontal: 40,\n alignItems: 'center',\n },\n crossIcon: {\n alignSelf: 'flex-end',\n },\n bottomButtons: {\n marginTop: 12,\n },\n returnView: {\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n },\n subTitle: {\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_400Regular\n : 'IBMPlexSans-Regular',\n fontStyle: 'normal',\n fontWeight: '400',\n fontSize: 14,\n flex: 1,\n textAlign: 'left',\n lineHeight: 28,\n color: '#111111',\n },\n title: {\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily:\n Platform.OS === 'android'\n ? Fonts.IBMPlexSans_600SemiBold\n : 'IBMPlexSans-SemiBold',\n },\n primaryButtonStyles: {\n marginTop: 16,\n height: 40,\n borderRadius: 6,\n justifyContent: 'center',\n alignItems: 'center',\n },\n secondaryButtonStyles: {\n marginVertical: 16,\n height: 40,\n borderRadius: 6,\n justifyContent: 'center',\n alignItems: 'center',\n },\n});\n"],"mappings":"AAAA,SAASA,WAAW,EAAEC,UAAU,EAAEC,IAAI,EAAEC,IAAI,EAAEC,KAAK,EAAEC,QAAQ,EAAEC,gBAAgB,QAAQ,cAAc;AACrG,OAAOC,KAAK,IAAIC,QAAQ,EAAEC,eAAe,EAAEC,WAAW,QAAmB,OAAO;AAChF,SAASC,MAAM,EAAEC,MAAM,EAAEC,QAAQ,QAAQ,oBAAoB;AAE7D,SACEC,YAAY,EACZC,mBAAmB,EACnBC,KAAK,QACA,6CAA6C;AACpD,SAASC,iBAAiB,QAAQ,8BAA8B;AAChE,SAASC,gBAAgB,QAAQ,mDAAmD;AACpF,SACEC,UAAU,EACVC,eAAe,QACV,oCAAoC;AAG3C,SAEEC,oBAAoB,EACpBC,kBAAkB,QACb,8BAA8B;AACrC,OAAOC,IAAI,MAAM,yCAAyC;AAC1D,SAASC,kBAAkB,QAAQ,2BAA2B;AAC9D,OAAOC,WAAW,MAAM,yCAAyC;AACjE,SAASC,cAAc,QAAQ,0BAA0B;AACzD,SAASC,SAAS,QA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AAE,EAAE;IACbmB,YAAY,EAAE,EAAE;IAChBC,aAAa,EAAE;EACjB,CAAC;EACDnD,QAAQ,EAAE;IACRoD,UAAU,EACRvI,QAAQ,CAACwI,EAAE,KAAK,SAAS,GACrB7H,KAAK,CAAC8H,sBAAsB,GAC5B,qBAAqB;IAC3BC,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,KAAK;IACjBC,QAAQ,EAAE,EAAE;IACZf,IAAI,EAAE,CAAC;IACPgB,SAAS,EAAE,MAAM;IACjBC,UAAU,EAAE,EAAE;IACd1E,KAAK,EAAE;EACT,CAAC;EACDL,KAAK,EAAE;IACL8E,SAAS,EAAE,OAAO;IAClBD,QAAQ,EAAE,EAAE;IACZE,UAAU,EAAE,EAAE;IACdJ,SAAS,EAAE,QAAQ;IACnBtE,KAAK,EAAE,SAAS;IAChBmE,UAAU,EACRvI,QAAQ,CAACwI,EAAE,KAAK,SAAS,GACrB7H,KAAK,CAACoI,uBAAuB,GAC7B;EACR,CAAC;EACDvD,mBAAmB,EAAE;IACnB0B,SAAS,EAAE,EAAE;IACb8B,MAAM,EAAE,EAAE;IACVf,YAAY,EAAE,CAAC;IACflG,cAAc,EAAE,QAAQ;IACxB+F,UAAU,EAAE;EACd,CAAC;EACDpC,qBAAqB,EAAE;IACrBuD,cAAc,EAAE,EAAE;IAClBD,MAAM,EAAE,EAAE;IACVf,YAAY,EAAE,CAAC;IACflG,cAAc,EAAE,QAAQ;IACxB+F,UAAU,EAAE;EACd;AACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { View, Text, StyleSheet, TextInput, TouchableOpacity, BackHandler } from 'react-native';
|
|
1
|
+
import { View, Text, StyleSheet, TextInput, TouchableOpacity, BackHandler, Platform } from 'react-native';
|
|
2
2
|
import React, { useEffect, useRef, useState, useLayoutEffect } from 'react';
|
|
3
3
|
import { DeliverState } from './ScanSchema';
|
|
4
4
|
import { CommonStyles, Fonts } from '../../../styles/executionTasks/CommonStyles';
|
|
@@ -176,11 +176,11 @@ const ScanET = props => {
|
|
|
176
176
|
setScannedInput('');
|
|
177
177
|
setScanText('');
|
|
178
178
|
})();
|
|
179
|
-
if (refInput) (_refInput$current = refInput.current) === null || _refInput$current === void 0
|
|
179
|
+
if (refInput) (_refInput$current = refInput.current) === null || _refInput$current === void 0 || _refInput$current.focus();
|
|
180
180
|
}, [scannedInput]);
|
|
181
181
|
useEffect(() => {
|
|
182
182
|
var _refInput$current2;
|
|
183
|
-
if (!showCamera && refInput) (_refInput$current2 = refInput.current) === null || _refInput$current2 === void 0
|
|
183
|
+
if (!showCamera && refInput) (_refInput$current2 = refInput.current) === null || _refInput$current2 === void 0 || _refInput$current2.focus();
|
|
184
184
|
}, [showCamera]);
|
|
185
185
|
const handleSubmitET = async (status, count, erc) => {
|
|
186
186
|
if (status === PROCEED_STATUS.DELIVER_LATER) {
|
|
@@ -590,7 +590,7 @@ const ScanET = props => {
|
|
|
590
590
|
}, /*#__PURE__*/React.createElement(ScanIcon, null), /*#__PURE__*/React.createElement(Text, {
|
|
591
591
|
style: {
|
|
592
592
|
color: '#A3AAC2',
|
|
593
|
-
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
593
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
594
594
|
fontSize: 14,
|
|
595
595
|
fontStyle: 'normal',
|
|
596
596
|
fontWeight: '500'
|
|
@@ -614,7 +614,7 @@ const ScanET = props => {
|
|
|
614
614
|
marginEnd: 20,
|
|
615
615
|
flex: 1,
|
|
616
616
|
fontSize: 16,
|
|
617
|
-
fontFamily: Fonts.IBMPlexSans_600SemiBold,
|
|
617
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_600SemiBold : 'IBMPlexSans-SemiBold',
|
|
618
618
|
color: '#A3AAC2'
|
|
619
619
|
},
|
|
620
620
|
placeholder: 'Enter Shipment ID'
|
|
@@ -639,7 +639,7 @@ const ScanET = props => {
|
|
|
639
639
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
640
640
|
style: {
|
|
641
641
|
fontSize: 14,
|
|
642
|
-
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
642
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
643
643
|
color: '#3D445C'
|
|
644
644
|
}
|
|
645
645
|
}, 'Apply')))))), /*#__PURE__*/React.createElement(View, {
|
|
@@ -686,7 +686,7 @@ const styles = StyleSheet.create({
|
|
|
686
686
|
},
|
|
687
687
|
addButtonLabel: {
|
|
688
688
|
color: '#3D445C',
|
|
689
|
-
fontFamily: Fonts.IBMPlexSans_600SemiBold,
|
|
689
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_600SemiBold : 'IBMPlexSans-SemiBold',
|
|
690
690
|
fontSize: 16,
|
|
691
691
|
fontWeight: '600',
|
|
692
692
|
lineHeight: 20,
|
|
@@ -712,7 +712,7 @@ const styles = StyleSheet.create({
|
|
|
712
712
|
},
|
|
713
713
|
titleText: {
|
|
714
714
|
justifyContent: 'center',
|
|
715
|
-
fontFamily: Fonts.IBMPlexSans_600SemiBold,
|
|
715
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_600SemiBold : 'IBMPlexSans-SemiBold',
|
|
716
716
|
fontStyle: 'normal',
|
|
717
717
|
fontSize: 14,
|
|
718
718
|
lineHeight: 20,
|
|
@@ -722,7 +722,7 @@ const styles = StyleSheet.create({
|
|
|
722
722
|
},
|
|
723
723
|
subText: {
|
|
724
724
|
justifyContent: 'center',
|
|
725
|
-
fontFamily: 'IBMPlexSans_400Regular',
|
|
725
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
|
|
726
726
|
fontStyle: 'normal',
|
|
727
727
|
fontSize: 14,
|
|
728
728
|
letterSpacing: 0.25,
|
|
@@ -738,7 +738,7 @@ const styles = StyleSheet.create({
|
|
|
738
738
|
},
|
|
739
739
|
unscannedShipmentModalSubText: {
|
|
740
740
|
justifyContent: 'center',
|
|
741
|
-
fontFamily: 'IBMPlexSans_400Regular',
|
|
741
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular',
|
|
742
742
|
fontStyle: 'normal',
|
|
743
743
|
fontSize: 14,
|
|
744
744
|
letterSpacing: 0.25,
|
|
@@ -749,11 +749,11 @@ const styles = StyleSheet.create({
|
|
|
749
749
|
modalDefaultERCStyle: {
|
|
750
750
|
color: '#A3AAC2',
|
|
751
751
|
fontSize: 14,
|
|
752
|
-
fontFamily: Fonts.IBMPlexSans_400Regular
|
|
752
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_400Regular : 'IBMPlexSans-Regular'
|
|
753
753
|
},
|
|
754
754
|
toggleText: {
|
|
755
755
|
fontSize: 14,
|
|
756
|
-
fontFamily: Fonts.IBMPlexSans_500Medium,
|
|
756
|
+
fontFamily: Platform.OS === 'android' ? Fonts.IBMPlexSans_500Medium : 'IBMPlexSans-Medium',
|
|
757
757
|
color: '#3D445C'
|
|
758
758
|
},
|
|
759
759
|
scanIcon: {
|