@os1-platform/dispatch-mobile 1.0.8 → 1.3.11
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 +116 -48
- 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/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -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 +4 -0
- package/android/.idea/vcs.xml +6 -0
- package/android/.idea/workspace.xml +131 -0
- package/android/gradle.properties +1 -1
- package/android/local.properties +8 -0
- package/android/src/main/AndroidManifest.xml +0 -1
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js +46 -39
- package/lib/commonjs/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js +14 -24
- package/lib/commonjs/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js +142 -23
- package/lib/commonjs/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js +64 -16
- package/lib/commonjs/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js +6 -16
- package/lib/commonjs/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js +68 -26
- package/lib/commonjs/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js +4 -13
- package/lib/commonjs/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js +0 -2
- package/lib/commonjs/components/executiontasks/doodle/DoodleUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js +61 -28
- package/lib/commonjs/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js +5 -19
- package/lib/commonjs/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js +62 -18
- package/lib/commonjs/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js +112 -28
- package/lib/commonjs/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -26
- package/lib/commonjs/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js +49 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -16
- package/lib/commonjs/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -10
- package/lib/commonjs/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js +4 -13
- package/lib/commonjs/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/httpRequest/HttpRequestET.js +0 -12
- 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 +7 -35
- package/lib/commonjs/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js +74 -49
- package/lib/commonjs/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js +0 -4
- package/lib/commonjs/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js +0 -2
- package/lib/commonjs/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js +64 -17
- package/lib/commonjs/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js +63 -24
- package/lib/commonjs/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -22
- package/lib/commonjs/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js +5 -15
- package/lib/commonjs/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js +60 -19
- package/lib/commonjs/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scan/ScanET.js +843 -0
- package/lib/commonjs/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js +6 -0
- package/lib/commonjs/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js +19 -0
- package/lib/commonjs/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js +29 -0
- package/lib/commonjs/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js +103 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js +74 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js +115 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js +134 -0
- package/lib/commonjs/components/executiontasks/scan/sub_components/ScanList.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js +373 -0
- package/lib/commonjs/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js +3 -21
- package/lib/commonjs/components/executiontasks/scanner/CScanner.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js +4 -9
- package/lib/commonjs/components/executiontasks/scanner/ScannerSchema.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js +7 -36
- package/lib/commonjs/components/executiontasks/scanner/ScannerUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js +0 -5
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js +0 -9
- package/lib/commonjs/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -14
- package/lib/commonjs/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js +1 -40
- package/lib/commonjs/components/executiontasks/scanner/returns/RTScan.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -17
- package/lib/commonjs/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -1
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js +0 -28
- package/lib/commonjs/components/executiontasks/scanner/returns/ScanList.js.map +1 -1
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js +334 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js +14 -0
- package/lib/commonjs/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js +37 -0
- package/lib/commonjs/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js +59 -0
- package/lib/commonjs/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js +147 -0
- package/lib/commonjs/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -13
- package/lib/commonjs/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -17
- package/lib/commonjs/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js +3 -18
- package/lib/commonjs/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/commonjs/components/widgets/AlertDisplay.js +0 -5
- package/lib/commonjs/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/commonjs/components/widgets/CancelOrderDialog.js +0 -12
- package/lib/commonjs/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/IconButton.js +34 -0
- package/lib/commonjs/components/widgets/IconButton.js.map +1 -0
- package/lib/commonjs/components/widgets/ProgressDialog.js +0 -7
- package/lib/commonjs/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/commonjs/components/widgets/SnackBarCustom.js +38 -38
- package/lib/commonjs/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/commonjs/components/widgets/SplitTextInput.js +93 -0
- package/lib/commonjs/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/commonjs/components/widgets/Toaster.js +0 -2
- package/lib/commonjs/components/widgets/Toaster.js.map +1 -1
- package/lib/commonjs/config/DispatchSDKConfig.js +4 -5
- package/lib/commonjs/config/DispatchSDKConfig.js.map +1 -1
- package/lib/commonjs/constants/apiConstants.js +15 -0
- package/lib/commonjs/constants/apiConstants.js.map +1 -0
- package/lib/commonjs/constants/constants.js +7 -3
- package/lib/commonjs/constants/constants.js.map +1 -1
- package/lib/commonjs/constants/statuscode.js +3 -5
- package/lib/commonjs/constants/statuscode.js.map +1 -1
- package/lib/commonjs/errors/BaseError.js +3 -8
- package/lib/commonjs/errors/BaseError.js.map +1 -1
- package/lib/commonjs/errors/ErrorCodes.js +7 -6
- package/lib/commonjs/errors/ErrorCodes.js.map +1 -1
- package/lib/commonjs/events/EventDispatcher.js +27 -0
- package/lib/commonjs/events/EventDispatcher.js.map +1 -0
- package/lib/commonjs/events/EventListener.js +20 -0
- package/lib/commonjs/events/EventListener.js.map +1 -0
- package/lib/commonjs/events/constants.js +13 -0
- package/lib/commonjs/events/constants.js.map +1 -0
- package/lib/commonjs/events/index.js +11 -0
- package/lib/commonjs/events/index.js.map +1 -0
- package/lib/commonjs/events/interface.js +2 -0
- package/lib/commonjs/events/interface.js.map +1 -0
- package/lib/commonjs/index.js +9 -23
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js +527 -177
- package/lib/commonjs/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js +55 -4
- package/lib/commonjs/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js +70 -0
- package/lib/commonjs/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js +3 -29
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js +6 -20
- package/lib/commonjs/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js +27 -0
- package/lib/commonjs/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/commonjs/manager/location/LocationManager.js +3 -20
- package/lib/commonjs/manager/location/LocationManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js +8 -36
- package/lib/commonjs/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js +6 -17
- package/lib/commonjs/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js +12 -46
- package/lib/commonjs/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/DBConfig.js +13 -7
- package/lib/commonjs/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js +0 -2
- package/lib/commonjs/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/database.js +28 -12
- package/lib/commonjs/manager/syncmanager/database.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js +0 -19
- package/lib/commonjs/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js +3 -20
- package/lib/commonjs/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js +3 -52
- package/lib/commonjs/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js +59 -25
- package/lib/commonjs/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js +77 -90
- package/lib/commonjs/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js +27 -19
- package/lib/commonjs/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/commonjs/models/DispatchModels.js +4 -5
- package/lib/commonjs/models/DispatchModels.js.map +1 -1
- package/lib/commonjs/models/ReasonCodes.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/commonjs/models/execTasks/ETConfig.js +28 -35
- package/lib/commonjs/models/execTasks/ETConfig.js.map +1 -1
- package/lib/commonjs/models/sdk.js +4 -5
- package/lib/commonjs/models/sdk.js.map +1 -1
- package/lib/commonjs/native/signature/SignatureCapture.js +3 -24
- package/lib/commonjs/native/signature/SignatureCapture.js.map +1 -1
- package/lib/commonjs/network/GraphQLClient.js +7 -35
- package/lib/commonjs/network/GraphQLClient.js.map +1 -1
- package/lib/commonjs/network/NetworkClient.js +2 -13
- package/lib/commonjs/network/NetworkClient.js.map +1 -1
- package/lib/commonjs/network/NetworkUtils.js +10 -8
- package/lib/commonjs/network/NetworkUtils.js.map +1 -1
- package/lib/commonjs/network/Queries.js +0 -2
- package/lib/commonjs/network/Queries.js.map +1 -1
- package/lib/commonjs/network/client.js +6 -21
- package/lib/commonjs/network/client.js.map +1 -1
- package/lib/commonjs/res/strings.js.map +1 -1
- package/lib/commonjs/resources/Login.js +4 -15
- package/lib/commonjs/resources/Login.js.map +1 -1
- package/lib/commonjs/resources/network.js +3 -8
- package/lib/commonjs/resources/network.js.map +1 -1
- package/lib/commonjs/styles/SdkColors.js +7 -7
- package/lib/commonjs/styles/SdkColors.js.map +1 -1
- package/lib/commonjs/styles/executionTasks/CommonStyles.js +42 -18
- package/lib/commonjs/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/commonjs/ui/screens/CancellationScreen.js +36 -27
- package/lib/commonjs/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CaptureInputScreen.js +6 -15
- package/lib/commonjs/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js +0 -19
- package/lib/commonjs/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DeliverScreen.js +6 -15
- package/lib/commonjs/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DisplayScreen.js +7 -12
- package/lib/commonjs/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DoodleScreen.js +6 -16
- package/lib/commonjs/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/DropCashScreen.js +6 -18
- package/lib/commonjs/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ETScreensIndex.js +14 -16
- package/lib/commonjs/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/commonjs/ui/screens/FormsScreen.js +36 -15
- package/lib/commonjs/ui/screens/FormsScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/GeofenceScreen.js +7 -13
- package/lib/commonjs/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/HttpRequestScreen.js +5 -10
- package/lib/commonjs/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js +27 -14
- package/lib/commonjs/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PaymentScreen.js +11 -23
- package/lib/commonjs/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/PickupScreen.js +9 -13
- package/lib/commonjs/ui/screens/PickupScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/RTScanScreen.js +8 -27
- package/lib/commonjs/ui/screens/RTScanScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ScanScreen.js +268 -0
- package/lib/commonjs/ui/screens/ScanScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js +21 -30
- package/lib/commonjs/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js +49 -0
- package/lib/commonjs/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js +0 -10
- package/lib/commonjs/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js +9 -1
- package/lib/commonjs/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/commonjs/utils/ApiUtils.js +115 -0
- package/lib/commonjs/utils/ApiUtils.js.map +1 -0
- package/lib/commonjs/utils/ExecTaskUtils.js +93 -31
- package/lib/commonjs/utils/ExecTaskUtils.js.map +1 -1
- package/lib/commonjs/utils/Logger.js +10 -29
- package/lib/commonjs/utils/Logger.js.map +1 -1
- package/lib/commonjs/utils/NetworkUtil.js +3 -19
- package/lib/commonjs/utils/NetworkUtil.js.map +1 -1
- package/lib/commonjs/utils/SdkUtils.js +2 -31
- package/lib/commonjs/utils/SdkUtils.js.map +1 -1
- package/lib/commonjs/utils/SyncManagerUtils.js +25 -40
- package/lib/commonjs/utils/SyncManagerUtils.js.map +1 -1
- package/lib/commonjs/utils/fcm/FCM.js +35 -16
- package/lib/commonjs/utils/fcm/FCM.js.map +1 -1
- package/lib/commonjs/utils/fcm/FcmUtils.js +50 -25
- package/lib/commonjs/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/commonjs/utils/helper.js +0 -5
- package/lib/commonjs/utils/helper.js.map +1 -1
- package/lib/commonjs/utils/hooks/useTimer.js +44 -0
- package/lib/commonjs/utils/hooks/useTimer.js.map +1 -0
- package/lib/commonjs/utils/loginHelper.js +6 -18
- package/lib/commonjs/utils/loginHelper.js.map +1 -1
- package/lib/commonjs/utils/storage.js +53 -32
- package/lib/commonjs/utils/storage.js.map +1 -1
- package/lib/commonjs/utils/utils.js +8 -11
- package/lib/commonjs/utils/utils.js.map +1 -1
- package/lib/module/components/dispatch/DispatchExecNavigator.js +46 -28
- package/lib/module/components/dispatch/DispatchExecNavigator.js.map +1 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js +3 -1
- package/lib/module/components/executiontasks/ExecutionTasksIndex.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancelET.js +145 -19
- package/lib/module/components/executiontasks/cancellation/CancelET.js.map +1 -1
- package/lib/module/components/executiontasks/cancellation/CancellationSchema.js.map +1 -1
- package/lib/module/components/executiontasks/captureInput/CaptureText.js +66 -9
- package/lib/module/components/executiontasks/captureInput/CaptureText.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/DeliverET.js +6 -7
- package/lib/module/components/executiontasks/deliver/DeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js +69 -16
- package/lib/module/components/executiontasks/deliver/SLDeliverET.js.map +1 -1
- package/lib/module/components/executiontasks/display/DisplayModalET.js +4 -3
- package/lib/module/components/executiontasks/display/DisplayModalET.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/DoodleUtils.js.map +1 -1
- package/lib/module/components/executiontasks/doodle/SignatureET.js +64 -14
- package/lib/module/components/executiontasks/doodle/SignatureET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/DropCashET.js +5 -6
- package/lib/module/components/executiontasks/dropCash/DropCashET.js.map +1 -1
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js +62 -8
- package/lib/module/components/executiontasks/dropCash/SLDropCash.js.map +1 -1
- package/lib/module/components/executiontasks/forms/FormGenerator.js +114 -14
- package/lib/module/components/executiontasks/forms/FormGenerator.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js +3 -15
- package/lib/module/components/executiontasks/forms/widgets/DateTimeWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js +39 -0
- package/lib/module/components/executiontasks/forms/widgets/DropdownWidget.js.map +1 -0
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js +1 -5
- package/lib/module/components/executiontasks/forms/widgets/QRBarcodeScannerWidget.js.map +1 -1
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js +0 -3
- package/lib/module/components/executiontasks/forms/widgets/TimeRangeSelector.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js +4 -2
- package/lib/module/components/executiontasks/httpRequest/HttpEtUtils.js.map +1 -1
- package/lib/module/components/executiontasks/httpRequest/HttpRequestET.js +0 -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 +7 -10
- package/lib/module/components/executiontasks/imageCapture/CaptureUtils.js.map +1 -1
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js +75 -35
- package/lib/module/components/executiontasks/imageCapture/ImageCapture.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentStyles.js.map +1 -1
- package/lib/module/components/executiontasks/payments/PaymentUtils.js.map +1 -1
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js +64 -6
- package/lib/module/components/executiontasks/payments/completePayment/CompletePaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js +63 -11
- package/lib/module/components/executiontasks/payments/init/InitPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js +71 -10
- package/lib/module/components/executiontasks/payments/processPayment/ProcessPaymentET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/PickupET.js +5 -6
- package/lib/module/components/executiontasks/pickup/PickupET.js.map +1 -1
- package/lib/module/components/executiontasks/pickup/SLPickupET.js +61 -10
- package/lib/module/components/executiontasks/pickup/SLPickupET.js.map +1 -1
- package/lib/module/components/executiontasks/scan/ScanET.js +833 -0
- package/lib/module/components/executiontasks/scan/ScanET.js.map +1 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js +2 -0
- package/lib/module/components/executiontasks/scan/ScanSchema.js.map +1 -0
- package/lib/module/components/executiontasks/scan/constants.js +7 -0
- package/lib/module/components/executiontasks/scan/constants.js.map +1 -0
- package/lib/module/components/executiontasks/scan/interfaces.js +21 -0
- package/lib/module/components/executiontasks/scan/interfaces.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js +94 -0
- package/lib/module/components/executiontasks/scan/sub_components/CScanner.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js +66 -0
- package/lib/module/components/executiontasks/scan/sub_components/DropDownUtils.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js +105 -0
- package/lib/module/components/executiontasks/scan/sub_components/ERDropDown.js.map +1 -0
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js +124 -0
- package/lib/module/components/executiontasks/scan/sub_components/ScanList.js.map +1 -0
- package/lib/module/components/executiontasks/scan/utils.js +358 -0
- package/lib/module/components/executiontasks/scan/utils.js.map +1 -0
- package/lib/module/components/executiontasks/scanner/CScanner.js +3 -8
- package/lib/module/components/executiontasks/scanner/CScanner.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js +3 -3
- package/lib/module/components/executiontasks/scanner/ScannerSchema.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js +6 -18
- package/lib/module/components/executiontasks/scanner/ScannerUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js +0 -2
- package/lib/module/components/executiontasks/scanner/returns/DropDownSelector.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js +0 -5
- package/lib/module/components/executiontasks/scanner/returns/DropDownUtils.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js +0 -3
- package/lib/module/components/executiontasks/scanner/returns/RTReasonSelection.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js +1 -19
- package/lib/module/components/executiontasks/scanner/returns/RTScan.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js +0 -7
- package/lib/module/components/executiontasks/scanner/returns/ReasonDropDown.js.map +1 -1
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js +0 -15
- package/lib/module/components/executiontasks/scanner/returns/ScanList.js.map +1 -1
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js +325 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPET.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js +8 -0
- package/lib/module/components/executiontasks/validateOTP/ValidateOTPSchema.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js +25 -0
- package/lib/module/components/executiontasks/validateOTP/constants.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js +49 -0
- package/lib/module/components/executiontasks/validateOTP/sub-components/OTPInput.js.map +1 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js +133 -0
- package/lib/module/components/executiontasks/validateOTP/utils.js.map +1 -0
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js +0 -6
- package/lib/module/components/executiontasks/verifyLocation/GeofenceUtils.js.map +1 -1
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js +4 -3
- package/lib/module/components/executiontasks/verifyLocation/VerifyLocationET.js.map +1 -1
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js +4 -8
- package/lib/module/components/executiontasks/verifyOtp/VerifyOtpET.js.map +1 -1
- package/lib/module/components/widgets/AlertDisplay.js.map +1 -1
- package/lib/module/components/widgets/CancelOrderDialog.js +0 -2
- package/lib/module/components/widgets/CancelOrderDialog.js.map +1 -1
- package/lib/module/components/widgets/IconButton.js +26 -0
- package/lib/module/components/widgets/IconButton.js.map +1 -0
- package/lib/module/components/widgets/ProgressDialog.js +0 -2
- package/lib/module/components/widgets/ProgressDialog.js.map +1 -1
- package/lib/module/components/widgets/SnackBarCustom.js +36 -18
- package/lib/module/components/widgets/SnackBarCustom.js.map +1 -1
- package/lib/module/components/widgets/SplitTextInput.js +84 -0
- package/lib/module/components/widgets/SplitTextInput.js.map +1 -0
- package/lib/module/components/widgets/Toaster.js.map +1 -1
- package/lib/module/config/DispatchSDKConfig.js +3 -4
- package/lib/module/config/DispatchSDKConfig.js.map +1 -1
- package/lib/module/constants/apiConstants.js +7 -0
- package/lib/module/constants/apiConstants.js.map +1 -0
- package/lib/module/constants/constants.js +4 -2
- package/lib/module/constants/constants.js.map +1 -1
- package/lib/module/constants/statuscode.js +3 -5
- package/lib/module/constants/statuscode.js.map +1 -1
- package/lib/module/errors/BaseError.js +3 -6
- package/lib/module/errors/BaseError.js.map +1 -1
- package/lib/module/errors/ErrorCodes.js +5 -5
- package/lib/module/errors/ErrorCodes.js.map +1 -1
- package/lib/module/events/EventDispatcher.js +19 -0
- package/lib/module/events/EventDispatcher.js.map +1 -0
- package/lib/module/events/EventListener.js +13 -0
- package/lib/module/events/EventListener.js.map +1 -0
- package/lib/module/events/constants.js +6 -0
- package/lib/module/events/constants.js.map +1 -0
- package/lib/module/events/index.js +3 -0
- package/lib/module/events/index.js.map +1 -0
- package/lib/module/events/interface.js +2 -0
- package/lib/module/events/interface.js.map +1 -0
- package/lib/module/index.js +4 -3
- package/lib/module/index.js.map +1 -1
- package/lib/module/manager/dispatch/DispatchStateContainer.js +529 -151
- package/lib/module/manager/dispatch/DispatchStateContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js +52 -2
- package/lib/module/manager/dispatchCodes/EventCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js +61 -0
- package/lib/module/manager/dispatchCodes/EventCodeRepo.js.map +1 -0
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js +3 -16
- package/lib/module/manager/dispatchCodes/ReasonCodeContainer.js.map +1 -1
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js +6 -14
- package/lib/module/manager/dispatchCodes/ReasonCodeRepo.js.map +1 -1
- package/lib/module/manager/jobRemoval/JobRemovalManager.js +20 -0
- package/lib/module/manager/jobRemoval/JobRemovalManager.js.map +1 -0
- package/lib/module/manager/location/LocationManager.js +3 -14
- package/lib/module/manager/location/LocationManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSDKManager.js +8 -14
- package/lib/module/manager/sdk/DispatchSDKManager.js.map +1 -1
- package/lib/module/manager/sdk/DispatchSdkCache.js +6 -13
- package/lib/module/manager/sdk/DispatchSdkCache.js.map +1 -1
- package/lib/module/manager/syncmanager/AppSyncManager.js +12 -26
- package/lib/module/manager/syncmanager/AppSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/DBConfig.js +9 -5
- package/lib/module/manager/syncmanager/DBConfig.js.map +1 -1
- package/lib/module/manager/syncmanager/NativeSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/database.js +27 -3
- package/lib/module/manager/syncmanager/database.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js +0 -7
- package/lib/module/manager/syncmanager/document/DocumentHttpClient.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentManager.js +3 -14
- package/lib/module/manager/syncmanager/document/DocumentManager.js.map +1 -1
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js +3 -35
- package/lib/module/manager/syncmanager/document/DocumentSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/ETEventsManager.js +59 -18
- package/lib/module/manager/syncmanager/events/ETEventsManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js +77 -68
- package/lib/module/manager/syncmanager/events/EventsSyncManager.js.map +1 -1
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js +26 -11
- package/lib/module/manager/syncmanager/events/SyncHttpClient.js.map +1 -1
- package/lib/module/models/DispatchModels.js +3 -4
- package/lib/module/models/DispatchModels.js.map +1 -1
- package/lib/module/models/ReasonCodes.js.map +1 -1
- package/lib/module/models/execTasks/ETBaseModels.js.map +1 -1
- package/lib/module/models/execTasks/ETConfig.js +22 -29
- package/lib/module/models/execTasks/ETConfig.js.map +1 -1
- package/lib/module/models/sdk.js +3 -4
- package/lib/module/models/sdk.js.map +1 -1
- package/lib/module/native/signature/SignatureCapture.js +3 -18
- package/lib/module/native/signature/SignatureCapture.js.map +1 -1
- package/lib/module/network/GraphQLClient.js +6 -26
- package/lib/module/network/GraphQLClient.js.map +1 -1
- package/lib/module/network/NetworkClient.js +2 -6
- package/lib/module/network/NetworkClient.js.map +1 -1
- package/lib/module/network/NetworkUtils.js +10 -3
- package/lib/module/network/NetworkUtils.js.map +1 -1
- package/lib/module/network/Queries.js.map +1 -1
- package/lib/module/network/client.js +7 -17
- package/lib/module/network/client.js.map +1 -1
- package/lib/module/res/strings.js.map +1 -1
- package/lib/module/resources/Login.js +4 -13
- package/lib/module/resources/Login.js.map +1 -1
- package/lib/module/resources/network.js +3 -6
- package/lib/module/resources/network.js.map +1 -1
- package/lib/module/styles/SdkColors.js +6 -6
- package/lib/module/styles/SdkColors.js.map +1 -1
- package/lib/module/styles/executionTasks/CommonStyles.js +41 -7
- package/lib/module/styles/executionTasks/CommonStyles.js.map +1 -1
- package/lib/module/ui/screens/CancellationScreen.js +36 -14
- package/lib/module/ui/screens/CancellationScreen.js.map +1 -1
- package/lib/module/ui/screens/CaptureInputScreen.js +7 -4
- package/lib/module/ui/screens/CaptureInputScreen.js.map +1 -1
- package/lib/module/ui/screens/CompleteObjectiveScreen.js +0 -3
- package/lib/module/ui/screens/CompleteObjectiveScreen.js.map +1 -1
- package/lib/module/ui/screens/DeliverScreen.js +7 -4
- package/lib/module/ui/screens/DeliverScreen.js.map +1 -1
- package/lib/module/ui/screens/DisplayScreen.js +5 -4
- package/lib/module/ui/screens/DisplayScreen.js.map +1 -1
- package/lib/module/ui/screens/DoodleScreen.js +7 -4
- package/lib/module/ui/screens/DoodleScreen.js.map +1 -1
- package/lib/module/ui/screens/DropCashScreen.js +7 -7
- package/lib/module/ui/screens/DropCashScreen.js.map +1 -1
- package/lib/module/ui/screens/ETScreensIndex.js +3 -1
- package/lib/module/ui/screens/ETScreensIndex.js.map +1 -1
- package/lib/module/ui/screens/FormsScreen.js +34 -6
- package/lib/module/ui/screens/FormsScreen.js.map +1 -1
- package/lib/module/ui/screens/GeofenceScreen.js +5 -4
- package/lib/module/ui/screens/GeofenceScreen.js.map +1 -1
- package/lib/module/ui/screens/HttpRequestScreen.js +5 -3
- package/lib/module/ui/screens/HttpRequestScreen.js.map +1 -1
- package/lib/module/ui/screens/ImageCaptureScreen.js +25 -5
- package/lib/module/ui/screens/ImageCaptureScreen.js.map +1 -1
- package/lib/module/ui/screens/PaymentScreen.js +12 -10
- package/lib/module/ui/screens/PaymentScreen.js.map +1 -1
- package/lib/module/ui/screens/PickupScreen.js +7 -5
- package/lib/module/ui/screens/PickupScreen.js.map +1 -1
- package/lib/module/ui/screens/RTScanScreen.js +9 -13
- package/lib/module/ui/screens/RTScanScreen.js.map +1 -1
- package/lib/module/ui/screens/ScanScreen.js +259 -0
- package/lib/module/ui/screens/ScanScreen.js.map +1 -0
- package/lib/module/ui/screens/StartWorkFlowScreen.js +22 -9
- package/lib/module/ui/screens/StartWorkFlowScreen.js.map +1 -1
- package/lib/module/ui/screens/ValidateOTPScreen.js +39 -0
- package/lib/module/ui/screens/ValidateOTPScreen.js.map +1 -0
- package/lib/module/ui/screens/WithBaseDispatchScreen.js +0 -3
- package/lib/module/ui/screens/WithBaseDispatchScreen.js.map +1 -1
- package/lib/module/ui/uiConfig/RouteParams.js +9 -1
- package/lib/module/ui/uiConfig/RouteParams.js.map +1 -1
- package/lib/module/utils/ApiUtils.js +101 -0
- package/lib/module/utils/ApiUtils.js.map +1 -0
- package/lib/module/utils/ExecTaskUtils.js +92 -21
- package/lib/module/utils/ExecTaskUtils.js.map +1 -1
- package/lib/module/utils/Logger.js +9 -21
- package/lib/module/utils/Logger.js.map +1 -1
- package/lib/module/utils/NetworkUtil.js +3 -15
- package/lib/module/utils/NetworkUtil.js.map +1 -1
- package/lib/module/utils/SdkUtils.js +2 -15
- package/lib/module/utils/SdkUtils.js.map +1 -1
- package/lib/module/utils/SyncManagerUtils.js +25 -10
- package/lib/module/utils/SyncManagerUtils.js.map +1 -1
- package/lib/module/utils/fcm/FCM.js +35 -4
- package/lib/module/utils/fcm/FCM.js.map +1 -1
- package/lib/module/utils/fcm/FcmUtils.js +50 -7
- package/lib/module/utils/fcm/FcmUtils.js.map +1 -1
- package/lib/module/utils/helper.js +0 -3
- package/lib/module/utils/helper.js.map +1 -1
- package/lib/module/utils/hooks/useTimer.js +37 -0
- package/lib/module/utils/hooks/useTimer.js.map +1 -0
- package/lib/module/utils/loginHelper.js +6 -16
- package/lib/module/utils/loginHelper.js.map +1 -1
- package/lib/module/utils/storage.js +51 -29
- package/lib/module/utils/storage.js.map +1 -1
- package/lib/module/utils/utils.js +8 -6
- package/lib/module/utils/utils.js.map +1 -1
- package/lib/typescript/components/executiontasks/CompletedWFSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/ExecutionTasksIndex.d.ts +6 -2
- package/lib/typescript/components/executiontasks/cancellation/CancellationSchema.d.ts +10 -5
- package/lib/typescript/components/executiontasks/captureInput/CaptureInputSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/deliver/DeliverETInput.d.ts +7 -7
- package/lib/typescript/components/executiontasks/display/DisplaySchema.d.ts +5 -5
- package/lib/typescript/components/executiontasks/doodle/SignatureSchema.d.ts +7 -7
- package/lib/typescript/components/executiontasks/dropCash/DropCashSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/FormSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/forms/widgets/DateTimeWidget.d.ts +1 -1
- package/lib/typescript/components/executiontasks/forms/widgets/DropdownWidget.d.ts +9 -0
- package/lib/typescript/components/executiontasks/httpRequest/HttpRequestETSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/imageCapture/CaptureSchema.d.ts +16 -11
- package/lib/typescript/components/executiontasks/payments/completePayment/CompletePaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/payments/init/InitPaymentSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/payments/processPayment/ProcessPaymentSchema.d.ts +2 -2
- package/lib/typescript/components/executiontasks/pickup/PickpSchema.d.ts +3 -3
- package/lib/typescript/components/executiontasks/scan/ScanET.d.ts +16 -0
- package/lib/typescript/components/executiontasks/scan/ScanSchema.d.ts +70 -0
- package/lib/typescript/components/executiontasks/scan/constants.d.ts +6 -0
- package/lib/typescript/components/executiontasks/scan/interfaces.d.ts +41 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/CScanner.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/DropDownUtils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/ERDropDown.d.ts +17 -0
- package/lib/typescript/components/executiontasks/scan/sub_components/ScanList.d.ts +8 -0
- package/lib/typescript/components/executiontasks/scan/utils.d.ts +21 -0
- package/lib/typescript/components/executiontasks/scanner/ScannerSchema.d.ts +6 -6
- package/lib/typescript/components/executiontasks/scanner/returns/DropDownUtils.d.ts +1 -2
- package/lib/typescript/components/executiontasks/scanner/returns/RTReasonSelection.d.ts +1 -1
- package/lib/typescript/components/executiontasks/scanner/returns/ScanList.d.ts +1 -1
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPET.d.ts +4 -0
- package/lib/typescript/components/executiontasks/validateOTP/ValidateOTPSchema.d.ts +54 -0
- package/lib/typescript/components/executiontasks/validateOTP/constants.d.ts +10 -0
- package/lib/typescript/components/executiontasks/validateOTP/sub-components/OTPInput.d.ts +12 -0
- package/lib/typescript/components/executiontasks/validateOTP/utils.d.ts +7 -0
- package/lib/typescript/components/executiontasks/verifyInput/VerifyInputSchema.d.ts +8 -8
- package/lib/typescript/components/executiontasks/verifyLocation/VerifyLocSchema.d.ts +9 -9
- package/lib/typescript/components/executiontasks/verifyOtp/VerifyOtpSchema.d.ts +3 -3
- package/lib/typescript/components/widgets/IconButton.d.ts +9 -0
- package/lib/typescript/components/widgets/SnackBarCustom.d.ts +9 -5
- package/lib/typescript/components/widgets/SplitTextInput.d.ts +12 -0
- package/lib/typescript/constants/apiConstants.d.ts +6 -0
- package/lib/typescript/constants/constants.d.ts +4 -2
- package/lib/typescript/errors/ErrorCodes.d.ts +3 -1
- package/lib/typescript/events/EventDispatcher.d.ts +5 -0
- package/lib/typescript/events/EventListener.d.ts +5 -0
- package/lib/typescript/events/constants.d.ts +5 -0
- package/lib/typescript/events/index.d.ts +2 -0
- package/lib/typescript/events/interface.d.ts +1 -0
- package/lib/typescript/index.d.ts +5 -4
- package/lib/typescript/manager/dispatch/DispatchStateContainer.d.ts +21 -8
- package/lib/typescript/manager/dispatchCodes/EventCodeContainer.d.ts +12 -1
- package/lib/typescript/manager/dispatchCodes/EventCodeRepo.d.ts +13 -0
- package/lib/typescript/manager/jobRemoval/JobRemovalManager.d.ts +6 -0
- package/lib/typescript/manager/sdk/DispatchSdkCache.d.ts +2 -0
- package/lib/typescript/manager/syncmanager/AppSyncManager.d.ts +1 -0
- package/lib/typescript/manager/syncmanager/DBConfig.d.ts +22 -2
- package/lib/typescript/manager/syncmanager/database.d.ts +5 -0
- package/lib/typescript/manager/syncmanager/document/models.d.ts +1 -1
- package/lib/typescript/manager/syncmanager/events/ETEventsManager.d.ts +5 -1
- package/lib/typescript/manager/syncmanager/events/EventsSyncManager.d.ts +5 -1
- package/lib/typescript/manager/syncmanager/events/SyncHttpClient.d.ts +3 -1
- package/lib/typescript/models/DispatchModels.d.ts +56 -1
- package/lib/typescript/models/ReasonCodes.d.ts +5 -0
- package/lib/typescript/models/auth.d.ts +1 -1
- package/lib/typescript/models/execTasks/ETBaseModels.d.ts +27 -8
- package/lib/typescript/models/execTasks/ETConfig.d.ts +8 -4
- package/lib/typescript/models/sdk.d.ts +5 -0
- package/lib/typescript/native/signature/SignatureCapture.d.ts +1 -1
- package/lib/typescript/network/NetworkUtils.d.ts +1 -5
- package/lib/typescript/styles/SdkColors.d.ts +1 -0
- package/lib/typescript/styles/executionTasks/CommonStyles.d.ts +36 -0
- package/lib/typescript/ui/screens/ETScreensIndex.d.ts +3 -1
- package/lib/typescript/ui/screens/ScanScreen.d.ts +3 -0
- package/lib/typescript/ui/screens/ValidateOTPScreen.d.ts +3 -0
- package/lib/typescript/ui/uiConfig/RouteParams.d.ts +8 -0
- package/lib/typescript/utils/ApiUtils.d.ts +61 -0
- package/lib/typescript/utils/ExecTaskUtils.d.ts +7 -2
- package/lib/typescript/utils/NetworkUtil.d.ts +1 -1
- package/lib/typescript/utils/SyncManagerUtils.d.ts +3 -1
- package/lib/typescript/utils/hooks/useTimer.d.ts +5 -0
- package/lib/typescript/utils/storage.d.ts +17 -0
- package/package.json +23 -24
- package/tsconfig.json +9 -8
- package/file_unzip.js +0 -5
- package/mobile-execution-lib-0.6.4.tgz +0 -0
|
@@ -4,29 +4,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.renderItem = exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _reactNativePaper = require("react-native-paper");
|
|
13
|
-
|
|
14
10
|
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
15
|
-
|
|
16
11
|
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
17
|
-
|
|
18
12
|
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
19
|
-
|
|
20
13
|
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
21
|
-
|
|
22
14
|
var _utils = require("../../../utils/utils");
|
|
23
|
-
|
|
24
15
|
var _constants = require("../../../constants/constants");
|
|
25
|
-
|
|
16
|
+
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
17
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
26
18
|
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); }
|
|
27
|
-
|
|
28
19
|
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; }
|
|
29
|
-
|
|
30
20
|
const ListItem = _ref => {
|
|
31
21
|
let {
|
|
32
22
|
lineItem
|
|
@@ -39,7 +29,6 @@ const ListItem = _ref => {
|
|
|
39
29
|
style: _CommonStyles.DeliverPickupStyles.itemTextStyle
|
|
40
30
|
}, `Order ID: ${lineItem.skuId}`));
|
|
41
31
|
};
|
|
42
|
-
|
|
43
32
|
const renderItem = _ref2 => {
|
|
44
33
|
let {
|
|
45
34
|
item
|
|
@@ -48,9 +37,7 @@ const renderItem = _ref2 => {
|
|
|
48
37
|
lineItem: item
|
|
49
38
|
});
|
|
50
39
|
};
|
|
51
|
-
|
|
52
40
|
exports.renderItem = renderItem;
|
|
53
|
-
|
|
54
41
|
const getMessage = (returnPackageCount, message) => {
|
|
55
42
|
try {
|
|
56
43
|
const msg = message || _constants.DEFAULT_DELIVER_MESSAGE;
|
|
@@ -59,15 +46,66 @@ const getMessage = (returnPackageCount, message) => {
|
|
|
59
46
|
return message || '';
|
|
60
47
|
}
|
|
61
48
|
};
|
|
62
|
-
|
|
63
49
|
const DeliverET = props => {
|
|
64
50
|
const [pkgCount, setPkgCount] = (0, _react.useState)(props.confirmShipments ? '' : `${props.returnPackageCount}`);
|
|
65
51
|
const [inputError, setInputError] = (0, _react.useState)('');
|
|
66
52
|
const [disableYes, setDisableYes] = (0, _react.useState)(false);
|
|
67
53
|
const [disableConfirm, setDisableConfirm] = (0, _react.useState)(false);
|
|
68
|
-
|
|
54
|
+
const [showBackModal, setShowBackModal] = (0, _react.useState)(false);
|
|
55
|
+
(0, _react.useLayoutEffect)(() => {
|
|
56
|
+
props.navigation.setOptions({
|
|
57
|
+
title: props.title,
|
|
58
|
+
headerLeft: () => {
|
|
59
|
+
var _props$taskMeta;
|
|
60
|
+
return (_props$taskMeta = props.taskMeta) !== null && _props$taskMeta !== void 0 && _props$taskMeta.enableGoBack ? /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
61
|
+
onPress: async () => {
|
|
62
|
+
setShowBackModal(true);
|
|
63
|
+
},
|
|
64
|
+
name: "arrow-back",
|
|
65
|
+
color: 'black',
|
|
66
|
+
size: 25,
|
|
67
|
+
style: {
|
|
68
|
+
paddingRight: 15,
|
|
69
|
+
paddingTop: 5
|
|
70
|
+
}
|
|
71
|
+
}) : null;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
}, [props.navigation, props.title]);
|
|
75
|
+
const renderModal = () => {
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
77
|
+
visible: showBackModal,
|
|
78
|
+
dismissable: true,
|
|
79
|
+
contentContainerStyle: _CommonStyles.CommonStyles.modalContent
|
|
80
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
81
|
+
style: _CommonStyles.CommonStyles.modalView
|
|
82
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
83
|
+
style: _CommonStyles.CommonStyles.subText
|
|
84
|
+
}, 'Are you sure you want to go back?'), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
85
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
86
|
+
style: {
|
|
87
|
+
..._CommonStyles.CommonStyles.nextButton,
|
|
88
|
+
marginTop: 10
|
|
89
|
+
},
|
|
90
|
+
uppercase: false,
|
|
91
|
+
onPress: async () => {
|
|
92
|
+
props.onSubmitET({
|
|
93
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, false, _constants.GO_BACK_EVENT_CODE, ''))
|
|
94
|
+
});
|
|
95
|
+
setShowBackModal(false);
|
|
96
|
+
}
|
|
97
|
+
}, "Yes"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
98
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
99
|
+
style: {
|
|
100
|
+
..._CommonStyles.CommonStyles.cancelButton,
|
|
101
|
+
marginTop: 10
|
|
102
|
+
},
|
|
103
|
+
uppercase: false,
|
|
104
|
+
onPress: () => setShowBackModal(false)
|
|
105
|
+
}, "No"))));
|
|
106
|
+
};
|
|
69
107
|
if (props.confirmCustodyExchange) {
|
|
70
|
-
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
108
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, renderModal(), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
71
109
|
style: _CommonStyles.DeliverPickupStyles.mainContainer
|
|
72
110
|
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
73
111
|
visible: true,
|
|
@@ -135,19 +173,20 @@ const DeliverET = props => {
|
|
|
135
173
|
mode: 'contained',
|
|
136
174
|
onPress: async () => {
|
|
137
175
|
if (!(0, _utils.isEmptyOrBlank)(pkgCount) && !Number.isNaN(+pkgCount)) {
|
|
176
|
+
var _props$applicableReas;
|
|
138
177
|
if (+pkgCount !== props.returnPackageCount) {
|
|
139
178
|
setInputError(`Package count should be equal to ${props.returnPackageCount}`);
|
|
140
179
|
return;
|
|
141
180
|
}
|
|
142
|
-
|
|
143
181
|
setDisableConfirm(true);
|
|
144
|
-
props.onSubmitET({
|
|
182
|
+
props.onSubmitET({
|
|
183
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, true, (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.success), '')),
|
|
145
184
|
remark: `${pkgCount} Packages returned`
|
|
146
185
|
});
|
|
147
186
|
} else setInputError('Please enter valid count.');
|
|
148
187
|
}
|
|
149
188
|
}, "Confirm"))))));
|
|
150
|
-
} else return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
189
|
+
} else return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, renderModal(), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
151
190
|
style: _CommonStyles.DeliverPickupStyles.mainContainer
|
|
152
191
|
}, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
153
192
|
visible: true,
|
|
@@ -173,12 +212,14 @@ const DeliverET = props => {
|
|
|
173
212
|
uppercase: false,
|
|
174
213
|
mode: 'contained',
|
|
175
214
|
onPress: async () => {
|
|
215
|
+
var _props$applicableReas2;
|
|
176
216
|
setDisableYes(true);
|
|
177
|
-
props.onSubmitET({
|
|
217
|
+
props.onSubmitET({
|
|
218
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, true, (_props$applicableReas2 = props.applicableReasons) === null || _props$applicableReas2 === void 0 ? void 0 : _props$applicableReas2.success), '')),
|
|
178
219
|
remark: ''
|
|
179
220
|
});
|
|
180
221
|
}
|
|
181
|
-
}, "
|
|
222
|
+
}, "Confirm"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
182
223
|
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
183
224
|
style: [_CommonStyles.CommonStyles.cancelButton, {
|
|
184
225
|
marginTop: 10
|
|
@@ -186,12 +227,13 @@ const DeliverET = props => {
|
|
|
186
227
|
mode: 'outlined',
|
|
187
228
|
uppercase: false,
|
|
188
229
|
onPress: async () => {
|
|
189
|
-
|
|
230
|
+
var _props$applicableReas3;
|
|
231
|
+
props.onSubmitET({
|
|
232
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DELIVER, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DELIVER, false, (_props$applicableReas3 = props.applicableReasons) === null || _props$applicableReas3 === void 0 ? void 0 : _props$applicableReas3.failure), ''))
|
|
190
233
|
});
|
|
191
234
|
}
|
|
192
|
-
}, "
|
|
235
|
+
}, "Cancel"))))));
|
|
193
236
|
};
|
|
194
|
-
|
|
195
237
|
var _default = DeliverET;
|
|
196
238
|
exports.default = _default;
|
|
197
239
|
//# sourceMappingURL=SLDeliverET.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ListItem","lineItem","justifyContent","DeliverPickupStyles","itemTextStyle","skuId","renderItem","item","getMessage","returnPackageCount","message","msg","DEFAULT_DELIVER_MESSAGE","replace","toString","error","DeliverET","props","pkgCount","setPkgCount","useState","confirmShipments","inputError","setInputError","disableYes","setDisableYes","disableConfirm","setDisableConfirm","confirmCustodyExchange","mainContainer","modalContent","modalView","titleText","title","DEFAULT_DELIVER_TITLE","marginTop","marginBottom","flexDirection","fontFamily","Fonts","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","flex","textAlign","lineHeight","color","IBMPlexSans_600SemiBold","isEmptyOrBlank","text","CommonStyles","nextButton","nextButtonLabel","Number","isNaN","onSubmitET","getBaseETResponse","EntityCode","DELIVER","getEventCodeByET","ExecutionTaskID","remark","messageText","flatList","items","cancelButtonLabel","cancelButton"],"sources":["SLDeliverET.tsx"],"sourcesContent":["import type { DeliverETInput } from './DeliverETInput';\nimport { FlatList, Text, View } from 'react-native';\nimport React, { useState } from 'react';\nimport { Button, Modal, Portal, Provider, TextInput } 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 { isEmptyOrBlank } from '../../../utils/utils';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_DELIVER_MESSAGE,\n DEFAULT_DELIVER_TITLE,\n} from '../../../constants/constants';\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\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\n\nconst getMessage = (\n returnPackageCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_DELIVER_MESSAGE;\n return returnPackageCount && returnPackageCount > 1\n ? msg.replace('$', returnPackageCount?.toString() || '')\n : msg.replace('$', '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nconst DeliverET = (props: DeliverETInput) => {\n const [pkgCount, setPkgCount] = useState(\n props.confirmShipments ? '' : `${props.returnPackageCount}`\n );\n const [inputError, setInputError] = useState('');\n const [disableYes, setDisableYes] = useState(false);\n const [disableConfirm, setDisableConfirm] = useState(false);\n\n if (props.confirmCustodyExchange) {\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_DELIVER_TITLE}\n </Text>\n <View\n style={{\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n }}\n >\n <Text\n style={{\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 >\n {'Expected Shipments'}\n </Text>\n <Text\n style={{\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n }}\n >\n {props.returnPackageCount}\n </Text>\n </View>\n {props.confirmShipments && (\n <TextInput\n style={{\n fontSize: 14,\n lineHeight: 24,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n }}\n multiline={false}\n autoComplete={'off'}\n label={`Shipment(s) handed over`}\n value={pkgCount}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setPkgCount(text);\n }}\n />\n )}\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n <Button\n disabled={disableConfirm}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n if (!isEmptyOrBlank(pkgCount) && !Number.isNaN(+pkgCount)) {\n if (+pkgCount !== props.returnPackageCount) {\n setInputError(\n `Package count should be equal to ${props.returnPackageCount}`\n );\n return;\n }\n setDisableConfirm(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: `${pkgCount} Packages returned`,\n });\n } else setInputError('Please enter valid count.');\n }}\n >\n Confirm\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n } else\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_DELIVER_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.returnPackageCount, props.message)}\n </Text>\n\n {props.returnPackageCount === 1 && (\n <FlatList\n style={DeliverPickupStyles.flatList}\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n )}\n <Button\n disabled={disableYes}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n setDisableYes(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(ExecutionTaskID.DELIVER, true),\n ''\n )),\n remark: '',\n });\n }}\n >\n Yes\n </Button>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode={'outlined'}\n uppercase={false}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n false,\n getEventCodeByET(ExecutionTaskID.DELIVER, false),\n ''\n )),\n });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AEjB,SAAS,EAAE;IAAb,CAA1B,CAFT;IAGE,UAAU,EAAEgB,0BAAA,CAAaE,eAH3B;IAIE,SAAS,EAAE,KAJb;IAKE,IAAI,EAAE,WALR;IAME,OAAO,EAAE,YAAY;MACnB5B,aAAa,CAAC,IAAD,CAAb;MACAR,KAAK,CAACuC,UAAN,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,OADH,EAER,IAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,OAAjC,EAA0C,IAA1C,CAHQ,EAIR,EAJQ,CAAV,CADe;QAOfG,MAAM,EAAE;MAPO,CAAjB;IASD;EAjBH,SAhBF,eAqCE,6BAAC,wBAAD;IACE,UAAU,EAAEX,0BAAA,CAAae,iBAD3B;IAEE,KAAK,EAAE,CAACf,0BAAA,CAAagB,YAAd,EAA4B;MAAEhC,SAAS,EAAE;IAAb,CAA5B,CAFT;IAGE,IAAI,EAAE,UAHR;IAIE,SAAS,EAAE,KAJb;IAKE,OAAO,EAAE,YAAY;MACnBlB,KAAK,CAACuC,UAAN,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,OADH,EAER,KAFQ,EAGR,IAAAC,oCAAA,EAAiBC,yBAAA,CAAgBF,OAAjC,EAA0C,KAA1C,CAHQ,EAIR,EAJQ,CAAV;MADe,CAAjB;IAQD;EAdH,QArCF,CALF,CADF,CADF,CADF,CADF;AAsEH,CA1LD;;eA4Le3C,S"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativePaper","_CommonStyles","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_utils","_constants","_MaterialIcons","_interopRequireDefault","obj","__esModule","default","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","ListItem","_ref","lineItem","createElement","View","style","justifyContent","Text","DeliverPickupStyles","itemTextStyle","skuId","renderItem","_ref2","item","exports","getMessage","returnPackageCount","message","msg","DEFAULT_DELIVER_MESSAGE","replace","toString","error","DeliverET","props","pkgCount","setPkgCount","useState","confirmShipments","inputError","setInputError","disableYes","setDisableYes","disableConfirm","setDisableConfirm","showBackModal","setShowBackModal","useLayoutEffect","navigation","setOptions","title","headerLeft","_props$taskMeta","taskMeta","enableGoBack","onPress","name","color","size","paddingRight","paddingTop","renderModal","Portal","Modal","visible","dismissable","contentContainerStyle","CommonStyles","modalContent","modalView","subText","Button","labelStyle","nextButtonLabel","nextButton","marginTop","uppercase","onSubmitET","getBaseETResponse","EntityCode","DELIVER","GO_BACK_EVENT_CODE","cancelButtonLabel","cancelButton","confirmCustodyExchange","Provider","mainContainer","titleText","DEFAULT_DELIVER_TITLE","marginBottom","flexDirection","fontFamily","Fonts","IBMPlexSans_400Regular","fontStyle","fontWeight","fontSize","flex","textAlign","lineHeight","IBMPlexSans_600SemiBold","TextInput","multiline","autoComplete","label","value","mode","isEmptyOrBlank","selectionColor","keyboardType","onChangeText","text","disabled","Number","isNaN","_props$applicableReas","getEventCodeByET","ExecutionTaskID","applicableReasons","success","remark","messageText","FlatList","flatList","data","items","keyExtractor","_props$applicableReas2","_props$applicableReas3","failure","_default"],"sources":["SLDeliverET.tsx"],"sourcesContent":["import type { DeliverETInput } from './DeliverETInput';\nimport { FlatList, Text, View } from 'react-native';\nimport React, { useState, useLayoutEffect } from 'react';\nimport { Button, Modal, Portal, Provider, TextInput } 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 { isEmptyOrBlank } from '../../../utils/utils';\nimport type { LineItem } from '../deliver/DeliverETInput';\nimport {\n DEFAULT_DELIVER_MESSAGE,\n DEFAULT_DELIVER_TITLE,\n GO_BACK_EVENT_CODE,\n} from '../../../constants/constants';\nimport Icon from 'react-native-vector-icons/MaterialIcons';\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\nexport const renderItem = ({ item }: { item: LineItem }) => (\n <ListItem lineItem={item} />\n);\n\nconst getMessage = (\n returnPackageCount: number | undefined,\n message: string | undefined\n) => {\n try {\n const msg = message || DEFAULT_DELIVER_MESSAGE;\n return returnPackageCount && returnPackageCount > 1\n ? msg.replace('$', returnPackageCount?.toString() || '')\n : msg.replace('$', '');\n } catch (error: any) {\n return message || '';\n }\n};\n\nconst DeliverET = (props: DeliverETInput) => {\n const [pkgCount, setPkgCount] = useState(\n props.confirmShipments ? '' : `${props.returnPackageCount}`\n );\n const [inputError, setInputError] = useState('');\n const [disableYes, setDisableYes] = useState(false);\n const [disableConfirm, setDisableConfirm] = useState(false);\n\n const [showBackModal, setShowBackModal] = useState(false);\n useLayoutEffect(() => {\n props.navigation.setOptions({\n title: props.title,\n headerLeft: () =>\n props.taskMeta?.enableGoBack ? (\n <Icon\n onPress={async () => {\n setShowBackModal(true);\n }}\n name=\"arrow-back\"\n color={'black'}\n size={25}\n style={{\n paddingRight: 15,\n paddingTop: 5,\n }}\n />\n ) : null,\n });\n }, [props.navigation, props.title]);\n\n const renderModal = () => {\n return (\n <Portal>\n <Modal\n visible={showBackModal}\n dismissable={true}\n contentContainerStyle={CommonStyles.modalContent}\n >\n <View style={CommonStyles.modalView}>\n <Text style={CommonStyles.subText}>\n {'Are you sure you want to go back?'}\n </Text>\n <Button\n labelStyle={CommonStyles.nextButtonLabel}\n style={{ ...CommonStyles.nextButton, marginTop: 10 }}\n uppercase={false}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n false,\n GO_BACK_EVENT_CODE,\n ''\n )),\n });\n setShowBackModal(false);\n }}\n >\n Yes\n </Button>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={{ ...CommonStyles.cancelButton, marginTop: 10 }}\n uppercase={false}\n onPress={() => setShowBackModal(false)}\n >\n No\n </Button>\n </View>\n </Modal>\n </Portal>\n );\n };\n\n if (props.confirmCustodyExchange) {\n return (\n <Provider>\n {renderModal()}\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_DELIVER_TITLE}\n </Text>\n <View\n style={{\n marginTop: 15,\n marginBottom: 15,\n flexDirection: 'row',\n }}\n >\n <Text\n style={{\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 >\n {'Expected Shipments'}\n </Text>\n <Text\n style={{\n textAlign: 'right',\n fontSize: 14,\n lineHeight: 28,\n fontStyle: 'normal',\n color: '#111111',\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n }}\n >\n {props.returnPackageCount}\n </Text>\n </View>\n {props.confirmShipments && (\n <TextInput\n style={{\n fontSize: 14,\n lineHeight: 24,\n fontFamily: Fonts.IBMPlexSans_400Regular,\n }}\n multiline={false}\n autoComplete={'off'}\n label={`Shipment(s) handed over`}\n value={pkgCount}\n mode={'outlined'}\n error={!isEmptyOrBlank(inputError)}\n selectionColor={'#6200EE'}\n keyboardType={'numeric'}\n onChangeText={(text) => {\n setInputError('');\n setPkgCount(text);\n }}\n />\n )}\n {!isEmptyOrBlank(inputError) && (\n <Text style={{ color: '#B00020' }}>{inputError}</Text>\n )}\n <Button\n disabled={disableConfirm}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n if (!isEmptyOrBlank(pkgCount) && !Number.isNaN(+pkgCount)) {\n if (+pkgCount !== props.returnPackageCount) {\n setInputError(\n `Package count should be equal to ${props.returnPackageCount}`\n );\n return;\n }\n setDisableConfirm(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(\n ExecutionTaskID.DELIVER,\n true,\n props.applicableReasons?.success\n ),\n ''\n )),\n remark: `${pkgCount} Packages returned`,\n });\n } else setInputError('Please enter valid count.');\n }}\n >\n Confirm\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n } else\n return (\n <Provider>\n {renderModal()}\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n visible={true}\n dismissable={false}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n <Text style={DeliverPickupStyles.titleText}>\n {props.title || DEFAULT_DELIVER_TITLE}\n </Text>\n <Text style={DeliverPickupStyles.messageText}>\n {getMessage(props.returnPackageCount, props.message)}\n </Text>\n\n {props.returnPackageCount === 1 && (\n <FlatList\n style={DeliverPickupStyles.flatList}\n data={props.items}\n renderItem={renderItem}\n keyExtractor={(item) => item.skuId}\n />\n )}\n <Button\n disabled={disableYes}\n style={[CommonStyles.nextButton, { marginTop: 20 }]}\n labelStyle={CommonStyles.nextButtonLabel}\n uppercase={false}\n mode={'contained'}\n onPress={async () => {\n setDisableYes(true);\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n true,\n getEventCodeByET(\n ExecutionTaskID.DELIVER,\n true,\n props.applicableReasons?.success\n ),\n ''\n )),\n remark: '',\n });\n }}\n >\n Confirm\n </Button>\n <Button\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 10 }]}\n mode={'outlined'}\n uppercase={false}\n onPress={async () => {\n props.onSubmitET({\n ...(await getBaseETResponse(\n EntityCode.DELIVER,\n false,\n getEventCodeByET(\n ExecutionTaskID.DELIVER,\n false,\n props.applicableReasons?.failure\n ),\n ''\n )),\n });\n }}\n >\n Cancel\n </Button>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\n\nexport default DeliverET;\n"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,iBAAA,GAAAH,OAAA;AAEA,IAAAI,aAAA,GAAAJ,OAAA;AAKA,IAAAK,cAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,SAAA,GAAAP,OAAA;AAIA,IAAAQ,MAAA,GAAAR,OAAA;AAEA,IAAAS,UAAA,GAAAT,OAAA;AAKA,IAAAU,cAAA,GAAAC,sBAAA,CAAAX,OAAA;AAA2D,SAAAW,uBAAAC,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,SAAAd,wBAAAU,GAAA,EAAAI,WAAA,SAAAA,WAAA,IAAAJ,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAQ,KAAA,GAAAL,wBAAA,CAAAC,WAAA,OAAAI,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAT,GAAA,YAAAQ,KAAA,CAAAE,GAAA,CAAAV,GAA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,UAAU,CAAC;QACf,IAAI,MAAM,IAAAC,gCAAiB,EACzBC,oBAAU,CAACC,OAAO,EAClB,KAAK,EACL,IAAAoC,oCAAgB,EACdC,yBAAe,CAACrC,OAAO,EACvB,KAAK,GAAAgD,sBAAA,GACL9F,KAAK,CAACoF,iBAAiB,cAAAU,sBAAA,uBAAvBA,sBAAA,CAAyBC,OAAO,CACjC,EACD,EAAE,CACH;MACH,CAAC,CAAC;IACJ;EAAE,GACH,QAED,CAAS,CACJ,CACD,CACH,CACA,CACA;AAEjB,CAAC;AAAC,IAAAC,QAAA,GAEajG,SAAS;AAAAT,OAAA,CAAAlC,OAAA,GAAA4I,QAAA"}
|
|
@@ -4,30 +4,23 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _reactNative = require("react-native");
|
|
9
|
-
|
|
10
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
9
|
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
13
|
-
|
|
14
10
|
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
15
|
-
|
|
16
11
|
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
17
|
-
|
|
18
12
|
var _reactNativePaper = require("react-native-paper");
|
|
19
|
-
|
|
20
13
|
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
21
|
-
|
|
22
14
|
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); }
|
|
23
|
-
|
|
24
15
|
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
|
-
|
|
26
16
|
const DisplayModalET = etProps => {
|
|
27
17
|
const [modalVisible, setModalVisible] = (0, _react.useState)(etProps.showDialog);
|
|
28
18
|
const sendEtOutput = (0, _react.useCallback)(async success => {
|
|
19
|
+
var _etProps$applicableRe, _etProps$applicableRe2;
|
|
29
20
|
setModalVisible(false);
|
|
30
|
-
|
|
21
|
+
const _appRC = success ? (_etProps$applicableRe = etProps.applicableReasons) === null || _etProps$applicableRe === void 0 ? void 0 : _etProps$applicableRe.success : (_etProps$applicableRe2 = etProps.applicableReasons) === null || _etProps$applicableRe2 === void 0 ? void 0 : _etProps$applicableRe2.failure;
|
|
22
|
+
etProps.onSubmit({
|
|
23
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DISPLAY, success, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DISPLAY, success, _appRC), ''))
|
|
31
24
|
});
|
|
32
25
|
}, [etProps]);
|
|
33
26
|
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
@@ -82,10 +75,8 @@ const DisplayModalET = etProps => {
|
|
|
82
75
|
testID: "secondary"
|
|
83
76
|
}, etProps.negativeBtn)))))));
|
|
84
77
|
};
|
|
85
|
-
|
|
86
78
|
var _default = DisplayModalET;
|
|
87
79
|
exports.default = _default;
|
|
88
|
-
|
|
89
80
|
const styles = _reactNative.StyleSheet.create({
|
|
90
81
|
warningTitle: {
|
|
91
82
|
fontFamily: _CommonStyles.Fonts.IBMPlexSans_600SemiBold,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DisplayModalET","etProps","modalVisible","setModalVisible","useState","showDialog","sendEtOutput","useCallback","success","onSubmit","getBaseETResponse","EntityCode","DISPLAY","getEventCodeByET","ExecutionTaskID","DeliverPickupStyles","mainContainer","modalContent","modalView","displayType","styles","warningTitle","title","alertTitle","messageTitle","text","messageText","message","image","imageView","width","height","uri","buttons","CommonStyles","nextButtonLabel","nextButton","marginBottom","positiveBtn","negativeBtn","cancelButtonLabel","cancelButton","marginTop","StyleSheet","create","fontFamily","Fonts","IBMPlexSans_600SemiBold","textAlign","color","IBMPlexSans_400Regular","fontSize","flexDirection","padding"],"sources":["DisplayModalET.tsx"],"sourcesContent":["import type { DisplayETInput } from './DisplaySchema';\nimport { Image, StyleSheet, View } from 'react-native';\nimport React, { useCallback, useState } from 'react';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport {\n Button,\n Modal,\n Paragraph,\n Portal,\n Provider,\n Text,\n Title,\n} from 'react-native-paper';\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\n\nconst DisplayModalET = (etProps: DisplayETInput) => {\n const [modalVisible, setModalVisible] = useState(etProps.showDialog);\n const sendEtOutput = useCallback(\n async (success: boolean) => {\n setModalVisible(false);\n etProps.onSubmit({\n ...(await getBaseETResponse(\n EntityCode.DISPLAY,\n success,\n getEventCodeByET(ExecutionTaskID.DISPLAY, success),\n ''\n )),\n });\n },\n [etProps]\n );\n\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n dismissable={false}\n visible={modalVisible}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n {etProps.displayType === 'WARNING' && (\n <Title style={styles.warningTitle}>{etProps.title}!</Title>\n )}\n {etProps.displayType === 'ALERT' && (\n <Title style={styles.alertTitle}>{etProps.title}</Title>\n )}\n {etProps.displayType === 'MESSAGE' && (\n <Title style={styles.messageTitle}>{etProps.title}</Title>\n )}\n {etProps.text && (\n <Paragraph style={styles.messageText}>{etProps.text}</Paragraph>\n )}\n {etProps.message && (\n <Text style={[styles.messageText]}>{etProps.message}</Text>\n )}\n {etProps.image && (\n <View style={styles.imageView}>\n <Image\n source={{\n width: 200,\n height: 300,\n uri: etProps.image,\n }}\n />\n </View>\n )}\n <View style={styles.buttons}>\n <Button\n mode={'outlined'}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[\n CommonStyles.nextButton,\n {\n marginBottom: 5,\n },\n ]}\n onPress={async () => {\n await sendEtOutput(true);\n }}\n testID=\"primary\"\n >\n {etProps.positiveBtn}\n </Button>\n {etProps.negativeBtn && (\n <Button\n uppercase={false}\n mode={'outlined'}\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n onPress={async () => {\n await sendEtOutput(false);\n }}\n testID=\"secondary\"\n >\n {etProps.negativeBtn}\n </Button>\n )}\n </View>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\n\nexport default DisplayModalET;\n\nconst styles = StyleSheet.create({\n warningTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#856404',\n },\n messageTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#000000',\n },\n alertTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: 'red',\n },\n messageText: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n marginTop: 20,\n fontSize: 16,\n textAlign: 'center',\n color: '#004085',\n },\n buttons: {\n marginTop: 25,\n flexDirection: 'column',\n },\n imageView: {\n padding: 10,\n },\n});\n"],"mappings":";;;;;;;AACA;;AACA;;AACA;;AACA;;AACA;;AAIA;;AASA;;;;;;AAMA,MAAMA,cAAc,GAAIC,OAAD,IAA6B;EAClD,MAAM,CAACC,YAAD,EAAeC,eAAf,IAAkC,IAAAC,eAAA,EAASH,OAAO,CAACI,UAAjB,CAAxC;EACA,MAAMC,YAAY,GAAG,IAAAC,kBAAA,EACnB,MAAOC,OAAP,IAA4B;IAC1BL,eAAe,CAAC,KAAD,CAAf;IACAF,OAAO,CAACQ,QAAR,CAAiB,EACf,IAAI,MAAM,IAAAC,gCAAA,EACRC,oBAAA,CAAWC,OADH,EAERJ,OAFQ,EAGR,IAAAK,oCAAA,EAAiBC,yBAAA,CAAgBF,OAAjC,EAA0CJ,OAA1C,CAHQ,EAIR,EAJQ,CAAV;IADe,CAAjB;EAQD,CAXkB,EAYnB,CAACP,OAAD,CAZmB,CAArB;EAeA,oBACE,6BAAC,0BAAD,qBACE,6BAAC,wBAAD,qBACE,6BAAC,iBAAD;IAAM,KAAK,EAAEc,iCAAA,CAAoBC;EAAjC,gBACE,6BAAC,uBAAD;IACE,WAAW,EAAE,KADf;IAEE,OAAO,EAAEd,YAFX;IAGE,qBAAqB,EAAEa,iCAAA,CAAoBE;EAH7C,gBAKE,6BAAC,iBAAD;IAAM,KAAK,EAAEF,iCAAA,CAAoBG;EAAjC,GACGjB,OAAO,CAACkB,WAAR,KAAwB,SAAxB,iBACC,6BAAC,uBAAD;IAAO,KAAK,EAAEC,MAAM,CAACC;EAArB,GAAoCpB,OAAO,CAACqB,KAA5C,MAFJ,EAIGrB,OAAO,CAACkB,WAAR,KAAwB,OAAxB,iBACC,6BAAC,uBAAD;IAAO,KAAK,EAAEC,MAA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,YAAd,EAA4B;MAAEC,SAAS,EAAE;IAAb,CAA5B,CAJT;IAKE,OAAO,EAAE,YAAY;MACnB,MAAMpC,YAAY,CAAC,KAAD,CAAlB;IACD,CAPH;IAQE,MAAM,EAAC;EART,GAUGL,OAAO,CAACsC,WAVX,CAnBJ,CA3BF,CALF,CADF,CADF,CADF,CADF;AA2ED,CA5FD;;eA8FevC,c;;;AAEf,MAAMoB,MAAM,GAAGuB,uBAAA,CAAWC,MAAX,CAAkB;EAC/BvB,YAAY,EAAE;IACZwB,UAAU,EAAEC,mBAAA,CAAMC,uBADN;IAEZL,SAAS,EAAE,CAFC;IAGZL,YAAY,EAAE,EAHF;IAIZW,SAAS,EAAE,QAJC;IAKZC,KAAK,EAAE;EALK,CADiB;EAQ/BzB,YAAY,EAAE;IACZqB,UAAU,EAAEC,mBAAA,CAAMC,uBADN;IAEZL,SAAS,EAAE,CAFC;IAGZL,YAAY,EAAE,EAHF;IAIZW,SAAS,EAAE,QAJC;IAKZC,KAAK,EAAE;EALK,CARiB;EAe/B1B,UAAU,EAAE;IACVsB,UAAU,EAAEC,mBAAA,CAAMC,uBADR;IAEVL,SAAS,EAAE,CAFD;IAGVL,YAAY,EAAE,EAHJ;IAIVW,SAAS,EAAE,QAJD;IAKVC,KAAK,EAAE;EALG,CAfmB;EAsB/BvB,WAAW,EAAE;IACXmB,UAAU,EAAEC,mBAAA,CAAMI,sBADP;IAEXR,SAAS,EAAE,EAFA;IAGXS,QAAQ,EAAE,EAHC;IAIXH,SAAS,EAAE,QAJA;IAKXC,KAAK,EAAE;EALI,CAtBkB;EA6B/BhB,OAAO,EAAE;IACPS,SAAS,EAAE,EADJ;IAEPU,aAAa,EAAE;EAFR,CA7BsB;EAiC/BvB,SAAS,EAAE;IACTwB,OAAO,EAAE;EADA;AAjCoB,CAAlB,CAAf"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_ExecTaskUtils","_EventCodeContainer","_ETConfig","_reactNativePaper","_CommonStyles","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","DisplayModalET","etProps","modalVisible","setModalVisible","useState","showDialog","sendEtOutput","useCallback","success","_etProps$applicableRe","_etProps$applicableRe2","_appRC","applicableReasons","failure","onSubmit","getBaseETResponse","EntityCode","DISPLAY","getEventCodeByET","ExecutionTaskID","createElement","Provider","Portal","View","style","DeliverPickupStyles","mainContainer","Modal","dismissable","visible","contentContainerStyle","modalContent","modalView","displayType","Title","styles","warningTitle","title","alertTitle","messageTitle","text","Paragraph","messageText","message","Text","image","imageView","Image","source","width","height","uri","buttons","Button","mode","uppercase","labelStyle","CommonStyles","nextButtonLabel","nextButton","marginBottom","onPress","testID","positiveBtn","negativeBtn","cancelButtonLabel","cancelButton","marginTop","_default","exports","StyleSheet","create","fontFamily","Fonts","IBMPlexSans_600SemiBold","textAlign","color","IBMPlexSans_400Regular","fontSize","flexDirection","padding"],"sources":["DisplayModalET.tsx"],"sourcesContent":["import type { DisplayETInput } from './DisplaySchema';\nimport { Image, StyleSheet, View } from 'react-native';\nimport React, { useCallback, useState } from 'react';\nimport { getBaseETResponse } from '../../../utils/ExecTaskUtils';\nimport { getEventCodeByET } from '../../../manager/dispatchCodes/EventCodeContainer';\nimport {\n EntityCode,\n ExecutionTaskID,\n} from '../../../models/execTasks/ETConfig';\nimport {\n Button,\n Modal,\n Paragraph,\n Portal,\n Provider,\n Text,\n Title,\n} from 'react-native-paper';\nimport {\n CommonStyles,\n DeliverPickupStyles,\n Fonts,\n} from '../../../styles/executionTasks/CommonStyles';\n\nconst DisplayModalET = (etProps: DisplayETInput) => {\n const [modalVisible, setModalVisible] = useState(etProps.showDialog);\n const sendEtOutput = useCallback(\n async (success: boolean) => {\n setModalVisible(false);\n const _appRC = success\n ? etProps.applicableReasons?.success\n : etProps.applicableReasons?.failure;\n etProps.onSubmit({\n ...(await getBaseETResponse(\n EntityCode.DISPLAY,\n success,\n getEventCodeByET(ExecutionTaskID.DISPLAY, success, _appRC),\n ''\n )),\n });\n },\n [etProps]\n );\n\n return (\n <Provider>\n <Portal>\n <View style={DeliverPickupStyles.mainContainer}>\n <Modal\n dismissable={false}\n visible={modalVisible}\n contentContainerStyle={DeliverPickupStyles.modalContent}\n >\n <View style={DeliverPickupStyles.modalView}>\n {etProps.displayType === 'WARNING' && (\n <Title style={styles.warningTitle}>{etProps.title}!</Title>\n )}\n {etProps.displayType === 'ALERT' && (\n <Title style={styles.alertTitle}>{etProps.title}</Title>\n )}\n {etProps.displayType === 'MESSAGE' && (\n <Title style={styles.messageTitle}>{etProps.title}</Title>\n )}\n {etProps.text && (\n <Paragraph style={styles.messageText}>{etProps.text}</Paragraph>\n )}\n {etProps.message && (\n <Text style={[styles.messageText]}>{etProps.message}</Text>\n )}\n {etProps.image && (\n <View style={styles.imageView}>\n <Image\n source={{\n width: 200,\n height: 300,\n uri: etProps.image,\n }}\n />\n </View>\n )}\n <View style={styles.buttons}>\n <Button\n mode={'outlined'}\n uppercase={false}\n labelStyle={CommonStyles.nextButtonLabel}\n style={[\n CommonStyles.nextButton,\n {\n marginBottom: 5,\n },\n ]}\n onPress={async () => {\n await sendEtOutput(true);\n }}\n testID=\"primary\"\n >\n {etProps.positiveBtn}\n </Button>\n {etProps.negativeBtn && (\n <Button\n uppercase={false}\n mode={'outlined'}\n labelStyle={CommonStyles.cancelButtonLabel}\n style={[CommonStyles.cancelButton, { marginTop: 5 }]}\n onPress={async () => {\n await sendEtOutput(false);\n }}\n testID=\"secondary\"\n >\n {etProps.negativeBtn}\n </Button>\n )}\n </View>\n </View>\n </Modal>\n </View>\n </Portal>\n </Provider>\n );\n};\n\nexport default DisplayModalET;\n\nconst styles = StyleSheet.create({\n warningTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#856404',\n },\n messageTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: '#000000',\n },\n alertTitle: {\n fontFamily: Fonts.IBMPlexSans_600SemiBold,\n marginTop: 0,\n marginBottom: 15,\n textAlign: 'center',\n color: 'red',\n },\n messageText: {\n fontFamily: Fonts.IBMPlexSans_400Regular,\n marginTop: 20,\n fontSize: 16,\n textAlign: 'center',\n color: '#004085',\n },\n buttons: {\n marginTop: 25,\n flexDirection: 'column',\n },\n imageView: {\n padding: 10,\n },\n});\n"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAJ,OAAA;AACA,IAAAK,SAAA,GAAAL,OAAA;AAIA,IAAAM,iBAAA,GAAAN,OAAA;AASA,IAAAO,aAAA,GAAAP,OAAA;AAIqD,SAAAQ,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,SAAAP,wBAAAW,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,oBAAAA,GAAA,wBAAAA,GAAA,4BAAAE,OAAA,EAAAF,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,GAAA,IAAAX,GAAA,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|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getJobIDs = getJobIDs;
|
|
7
7
|
exports.getObjectiveRefs = getObjectiveRefs;
|
|
8
|
-
|
|
9
8
|
function getJobIDs(nextStates) {
|
|
10
9
|
let result = [];
|
|
11
10
|
if (!nextStates || nextStates.length === 0) return result;else {
|
|
@@ -15,7 +14,6 @@ function getJobIDs(nextStates) {
|
|
|
15
14
|
return result;
|
|
16
15
|
}
|
|
17
16
|
}
|
|
18
|
-
|
|
19
17
|
function getObjectiveRefs(nextStates) {
|
|
20
18
|
let result = [];
|
|
21
19
|
if (!nextStates || nextStates.length === 0) return result;else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["getJobIDs","nextStates","result","length","forEach","s","push","jobId","getObjectiveRefs","objRef"],"sources":["DoodleUtils.ts"],"sourcesContent":["import type { stateWithObjRef } from '../../../models/DispatchModels';\n\nexport function getJobIDs(nextStates: stateWithObjRef[]): string[] {\n let result: string[] = [];\n if (!nextStates || nextStates.length === 0) return result;\n else {\n nextStates.forEach((s) => {\n result.push(s.jobId);\n });\n return result;\n }\n}\n\nexport function getObjectiveRefs(nextStates: stateWithObjRef[]): string[] {\n let result: string[] = [];\n if (!nextStates || nextStates.length === 0) return result;\n else {\n nextStates.forEach((s) => {\n result.push(s.objRef);\n });\n return result;\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":["getJobIDs","nextStates","result","length","forEach","s","push","jobId","getObjectiveRefs","objRef"],"sources":["DoodleUtils.ts"],"sourcesContent":["import type { stateWithObjRef } from '../../../models/DispatchModels';\n\nexport function getJobIDs(nextStates: stateWithObjRef[]): string[] {\n let result: string[] = [];\n if (!nextStates || nextStates.length === 0) return result;\n else {\n nextStates.forEach((s) => {\n result.push(s.jobId);\n });\n return result;\n }\n}\n\nexport function getObjectiveRefs(nextStates: stateWithObjRef[]): string[] {\n let result: string[] = [];\n if (!nextStates || nextStates.length === 0) return result;\n else {\n nextStates.forEach((s) => {\n result.push(s.objRef);\n });\n return result;\n }\n}\n"],"mappings":";;;;;;;AAEO,SAASA,SAASA,CAACC,UAA6B,EAAY;EACjE,IAAIC,MAAgB,GAAG,EAAE;EACzB,IAAI,CAACD,UAAU,IAAIA,UAAU,CAACE,MAAM,KAAK,CAAC,EAAE,OAAOD,MAAM,CAAC,KACrD;IACHD,UAAU,CAACG,OAAO,CAAEC,CAAC,IAAK;MACxBH,MAAM,CAACI,IAAI,CAACD,CAAC,CAACE,KAAK,CAAC;IACtB,CAAC,CAAC;IACF,OAAOL,MAAM;EACf;AACF;AAEO,SAASM,gBAAgBA,CAACP,UAA6B,EAAY;EACxE,IAAIC,MAAgB,GAAG,EAAE;EACzB,IAAI,CAACD,UAAU,IAAIA,UAAU,CAACE,MAAM,KAAK,CAAC,EAAE,OAAOD,MAAM,CAAC,KACrD;IACHD,UAAU,CAACG,OAAO,CAAEC,CAAC,IAAK;MACxBH,MAAM,CAACI,IAAI,CAACD,CAAC,CAACI,MAAM,CAAC;IACvB,CAAC,CAAC;IACF,OAAOP,MAAM;EACf;AACF"}
|
|
@@ -4,61 +4,99 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
-
|
|
8
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
|
|
10
8
|
var _reactNative = require("react-native");
|
|
11
|
-
|
|
12
9
|
var _reactNativePaper = require("react-native-paper");
|
|
13
|
-
|
|
14
10
|
var _ExecTaskUtils = require("../../../utils/ExecTaskUtils");
|
|
15
|
-
|
|
16
11
|
var _EventCodeContainer = require("../../../manager/dispatchCodes/EventCodeContainer");
|
|
17
|
-
|
|
18
12
|
var _ETConfig = require("../../../models/execTasks/ETConfig");
|
|
19
|
-
|
|
20
13
|
var _Toaster = require("../../widgets/Toaster");
|
|
21
|
-
|
|
22
14
|
var _DispatchSdkCache = _interopRequireDefault(require("../../../manager/sdk/DispatchSdkCache"));
|
|
23
|
-
|
|
24
15
|
var _CommonStyles = require("../../../styles/executionTasks/CommonStyles");
|
|
25
|
-
|
|
26
16
|
var _SyncManagerUtils = require("../../../utils/SyncManagerUtils");
|
|
27
|
-
|
|
28
17
|
var _SignatureCapture = _interopRequireDefault(require("../../../native/signature/SignatureCapture"));
|
|
29
|
-
|
|
30
18
|
var _SdkColors = _interopRequireWildcard(require("../../../styles/SdkColors"));
|
|
31
|
-
|
|
32
19
|
var _constants = require("../../../constants/constants");
|
|
33
|
-
|
|
20
|
+
var _MaterialIcons = _interopRequireDefault(require("react-native-vector-icons/MaterialIcons"));
|
|
34
21
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
35
|
-
|
|
36
22
|
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); }
|
|
37
|
-
|
|
38
23
|
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; }
|
|
39
|
-
|
|
40
24
|
const SignatureET = props => {
|
|
41
25
|
const signatureViewRef = (0, _react.useRef)();
|
|
42
26
|
const [dragged, setDragged] = (0, _react.useState)(0);
|
|
43
|
-
|
|
27
|
+
const [showBackModal, setShowBackModal] = (0, _react.useState)(false);
|
|
28
|
+
(0, _react.useLayoutEffect)(() => {
|
|
29
|
+
props.navigation.setOptions({
|
|
30
|
+
title: props.title,
|
|
31
|
+
headerLeft: () => {
|
|
32
|
+
var _props$taskMeta;
|
|
33
|
+
return (_props$taskMeta = props.taskMeta) !== null && _props$taskMeta !== void 0 && _props$taskMeta.enableGoBack ? /*#__PURE__*/_react.default.createElement(_MaterialIcons.default, {
|
|
34
|
+
onPress: async () => {
|
|
35
|
+
setShowBackModal(true);
|
|
36
|
+
},
|
|
37
|
+
name: "arrow-back",
|
|
38
|
+
color: 'black',
|
|
39
|
+
size: 25,
|
|
40
|
+
style: {
|
|
41
|
+
paddingRight: 15,
|
|
42
|
+
paddingTop: 5
|
|
43
|
+
}
|
|
44
|
+
}) : null;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}, [props.navigation, props.title]);
|
|
48
|
+
const renderModal = () => {
|
|
49
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Portal, null, /*#__PURE__*/_react.default.createElement(_reactNativePaper.Modal, {
|
|
50
|
+
visible: showBackModal,
|
|
51
|
+
dismissable: true,
|
|
52
|
+
contentContainerStyle: _CommonStyles.CommonStyles.modalContent
|
|
53
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
54
|
+
style: _CommonStyles.CommonStyles.modalView
|
|
55
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
56
|
+
style: _CommonStyles.CommonStyles.subText
|
|
57
|
+
}, 'Are you sure you want to go back?'), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
58
|
+
labelStyle: _CommonStyles.CommonStyles.nextButtonLabel,
|
|
59
|
+
style: {
|
|
60
|
+
..._CommonStyles.CommonStyles.nextButton,
|
|
61
|
+
marginTop: 10
|
|
62
|
+
},
|
|
63
|
+
uppercase: false,
|
|
64
|
+
onPress: async () => {
|
|
65
|
+
props.onSubmitET({
|
|
66
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DOODLE, false, _constants.GO_BACK_EVENT_CODE, ''))
|
|
67
|
+
});
|
|
68
|
+
setShowBackModal(false);
|
|
69
|
+
}
|
|
70
|
+
}, "Yes"), /*#__PURE__*/_react.default.createElement(_reactNativePaper.Button, {
|
|
71
|
+
labelStyle: _CommonStyles.CommonStyles.cancelButtonLabel,
|
|
72
|
+
style: {
|
|
73
|
+
..._CommonStyles.CommonStyles.cancelButton,
|
|
74
|
+
marginTop: 10
|
|
75
|
+
},
|
|
76
|
+
uppercase: false,
|
|
77
|
+
onPress: () => setShowBackModal(false)
|
|
78
|
+
}, "No"))));
|
|
79
|
+
};
|
|
44
80
|
async function saveAndSubmit(cancel, image) {
|
|
45
81
|
if (cancel) {
|
|
46
|
-
|
|
82
|
+
var _props$applicableReas;
|
|
83
|
+
props.onSubmitET({
|
|
84
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DOODLE, false, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DOODLE, false, (_props$applicableReas = props.applicableReasons) === null || _props$applicableReas === void 0 ? void 0 : _props$applicableReas.failure), ''))
|
|
47
85
|
});
|
|
48
86
|
} else {
|
|
49
87
|
if (image != null) {
|
|
50
88
|
const fileName = `SIG_${Date.now().toString()}.jpg`;
|
|
51
89
|
const folderName = (await _DispatchSdkCache.default.getInstance().getKeyFromCache(_DispatchSdkCache.default.KEYS.FMS_FOLDER)) ?? 'NULL';
|
|
52
90
|
let insertID = await (0, _SyncManagerUtils.insertDocumentInDB)(fileName, folderName, JSON.stringify(props.jobIDs), JSON.stringify(props.objRefs), image, props.title ?? 'Signature', null);
|
|
53
|
-
|
|
54
91
|
if (insertID) {
|
|
92
|
+
var _props$applicableReas2;
|
|
55
93
|
props.onSubmitET({
|
|
56
94
|
url: '',
|
|
57
95
|
file: {
|
|
58
96
|
folder: folderName,
|
|
59
97
|
name: fileName
|
|
60
98
|
},
|
|
61
|
-
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DOODLE, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DOODLE, true), ''))
|
|
99
|
+
...(await (0, _ExecTaskUtils.getBaseETResponse)(_ETConfig.EntityCode.DOODLE, true, (0, _EventCodeContainer.getEventCodeByET)(_ETConfig.ExecutionTaskID.DOODLE, true, (_props$applicableReas2 = props.applicableReasons) === null || _props$applicableReas2 === void 0 ? void 0 : _props$applicableReas2.success), ''))
|
|
62
100
|
});
|
|
63
101
|
} else {
|
|
64
102
|
(0, _Toaster.showToast)('Failed to save signature');
|
|
@@ -68,8 +106,7 @@ const SignatureET = props => {
|
|
|
68
106
|
}
|
|
69
107
|
}
|
|
70
108
|
}
|
|
71
|
-
|
|
72
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
109
|
+
return /*#__PURE__*/_react.default.createElement(_reactNativePaper.Provider, null, renderModal(), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
73
110
|
style: styles.mainContainer
|
|
74
111
|
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
75
112
|
style: styles.doodleView
|
|
@@ -80,7 +117,6 @@ const SignatureET = props => {
|
|
|
80
117
|
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, null, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
81
118
|
onPress: () => {
|
|
82
119
|
var _signatureViewRef$cur;
|
|
83
|
-
|
|
84
120
|
setDragged(0);
|
|
85
121
|
(_signatureViewRef$cur = signatureViewRef.current) === null || _signatureViewRef$cur === void 0 ? void 0 : _signatureViewRef$cur.resetImage();
|
|
86
122
|
}
|
|
@@ -134,12 +170,10 @@ const SignatureET = props => {
|
|
|
134
170
|
mode: 'contained',
|
|
135
171
|
onPress: async () => {
|
|
136
172
|
var _signatureViewRef$cur2;
|
|
137
|
-
|
|
138
173
|
return (_signatureViewRef$cur2 = signatureViewRef.current) === null || _signatureViewRef$cur2 === void 0 ? void 0 : _signatureViewRef$cur2.saveImage();
|
|
139
174
|
}
|
|
140
|
-
}, "Proceed")));
|
|
175
|
+
}, "Proceed"))));
|
|
141
176
|
};
|
|
142
|
-
|
|
143
177
|
const styles = _reactNative.StyleSheet.create({
|
|
144
178
|
horizontalLine: {
|
|
145
179
|
backgroundColor: '#DDDDDD',
|
|
@@ -184,7 +218,6 @@ const styles = _reactNative.StyleSheet.create({
|
|
|
184
218
|
fontFamily: _CommonStyles.Fonts.IBMPlexSans_400Regular
|
|
185
219
|
}
|
|
186
220
|
});
|
|
187
|
-
|
|
188
221
|
var _default = SignatureET;
|
|
189
222
|
exports.default = _default;
|
|
190
223
|
//# sourceMappingURL=SignatureET.js.map
|