@bjsdistribution/dms-client-return 0.0.83 → 0.0.85
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/dist/components/order-daily-overview/common/interface.d.ts +0 -80
- package/dist/components/order-view/hooks/AddResources.d.ts +2 -0
- package/dist/components/order-view/notes/logs/helper.d.ts +1 -2
- package/dist/components/order-view/order-actions/actions/add-resources/DocFileUpload.d.ts +3 -0
- package/dist/components/order-view/order-actions/actions/clear-booking-status/ClearBookingStatus.d.ts +3 -0
- package/dist/components/order-view/order-actions/actions/create-task-reminder/TaskModal.d.ts +4 -0
- package/dist/components/order-view/order-actions/actions/remove-from-route/RemoveFromRoute.d.ts +3 -0
- package/dist/components/order-view/order-actions/store.d.ts +15 -0
- package/dist/components/order-view/order-details/expanded-content/orders-section/Depot.d.ts +2 -0
- package/dist/components/order-view/order-resources/columns/actions/index.d.ts +12 -2
- package/dist/components/order-view/order-resources/columns/index.d.ts +1 -0
- package/dist/components/order-view/order-resources/helper.d.ts +2 -2
- package/dist/components/order-view/store.d.ts +2 -1
- package/dist/components/order-view/types.d.ts +2 -1
- package/dist/components/store.d.ts +1 -0
- package/dist/dms-client-return.cjs.development.js +2267 -1842
- package/dist/dms-client-return.cjs.development.js.map +1 -1
- package/dist/dms-client-return.cjs.production.min.js +1 -1
- package/dist/dms-client-return.cjs.production.min.js.map +1 -1
- package/dist/dms-client-return.esm.js +2302 -1877
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/components/order-daily-overview/common/interface.ts +0 -85
- package/src/components/order-daily-overview/filters/Filters.tsx +0 -56
- package/src/components/order-daily-overview/header/input/dropdown/index.tsx +0 -1
- package/src/components/order-daily-overview/header/route-header/RouterHeader.tsx +1 -35
- package/src/components/order-daily-overview/header/table-filter/TableFilter.tsx +3 -4
- package/src/components/order-daily-overview/header-filters/HeaderFilter.tsx +0 -65
- package/src/components/order-daily-overview/return-after-table/table-filters/TableFilters.tsx +1 -106
- package/src/components/order-daily-overview/store/store.ts +0 -13
- package/src/components/order-view/details-filters/left-side-filters/ActionsMenu.tsx +0 -2
- package/src/components/order-view/details-filters/left-side-filters/actions/Actions.tsx +0 -13
- package/src/components/order-view/fakedata.ts +14 -5
- package/src/components/order-view/hooks/AddResources.tsx +54 -0
- package/src/components/order-view/index.tsx +44 -3
- package/src/components/order-view/notification/FlagTemplate.tsx +1 -1
- package/src/components/order-view/notification/Tabs.tsx +0 -2
- package/src/components/order-view/order-actions/actions/add-resources/CategoryDropdown.tsx +24 -9
- package/src/components/order-view/order-actions/actions/add-resources/DocFileUpload.tsx +141 -49
- package/src/components/order-view/order-actions/actions/add-resources/DocumentTypeDropdown.tsx +28 -5
- package/src/components/order-view/order-actions/actions/add-resources/Visibility.tsx +31 -14
- package/src/components/order-view/order-actions/actions/add-resources/index.tsx +99 -11
- package/src/components/order-view/order-actions/actions/cancel-order/index.tsx +0 -4
- package/src/components/order-view/order-actions/actions/clear-booking-status/ClearBookingStatus.tsx +113 -0
- package/src/components/order-view/order-actions/actions/confirm-order/index.tsx +6 -31
- package/src/components/order-view/order-actions/actions/create-task-reminder/CreateTaskModal.tsx +3 -3
- package/src/components/order-view/order-actions/actions/create-task-reminder/TaskModal.tsx +149 -0
- package/src/components/order-view/order-actions/actions/order-lock/index.tsx +13 -1
- package/src/components/order-view/order-actions/actions/remove-from-route/RemoveFromRoute.tsx +91 -0
- package/src/components/order-view/order-actions/actions/split-order/index.tsx +15 -20
- package/src/components/order-view/order-actions/hooks/useCreateReminder.ts +0 -5
- package/src/components/order-view/order-actions/index.tsx +10 -9
- package/src/components/order-view/order-actions/store.ts +6 -0
- package/src/components/order-view/order-details/expanded-content/footer/index.tsx +6 -0
- package/src/components/order-view/order-details/expanded-content/orders-section/Carrier.tsx +29 -10
- package/src/components/order-view/order-details/expanded-content/orders-section/Depot.tsx +5 -3
- package/src/components/order-view/order-details/expanded-content/orders-section/ScheduleAfter.tsx +2 -1
- package/src/components/order-view/order-details/expanded-content/orders-section/VehicleType.tsx +3 -2
- package/src/components/order-view/order-details/expanded-content/orders-section/index.tsx +0 -3
- package/src/components/order-view/order-resources/collapsed-content/index.tsx +2 -2
- package/src/components/order-view/order-resources/columns/Date.tsx +2 -1
- package/src/components/order-view/order-resources/columns/actions/index.tsx +133 -5
- package/src/components/order-view/order-resources/columns/index.tsx +1 -0
- package/src/components/order-view/order-resources/expanded-content/index.tsx +11 -11
- package/src/components/order-view/order-resources/helper.ts +7 -1
- package/src/components/order-view/store.ts +10 -8
- package/src/components/order-view/system-event-logs/columns/index.tsx +0 -1
- package/src/components/order-view/types.ts +6 -3
- package/src/components/order-view/utils.ts +17 -1
- package/src/components/store.ts +6 -0
- package/dist/assets/PostCodeIcon.d.ts +0 -3
- package/dist/assets/icons/ArrivalIcon.d.ts +0 -3
- package/dist/assets/icons/ArrowIcon.d.ts +0 -3
- package/dist/assets/icons/AssemblyIcons.d.ts +0 -3
- package/dist/assets/icons/BarCode.d.ts +0 -3
- package/dist/assets/icons/BoxIcon.d.ts +0 -3
- package/dist/assets/icons/BoxTickIcon.d.ts +0 -3
- package/dist/assets/icons/CallIcon.d.ts +0 -3
- package/dist/assets/icons/CarIcon.d.ts +0 -3
- package/dist/assets/icons/CardsIcon.d.ts +0 -3
- package/dist/assets/icons/CbmIcon.d.ts +0 -3
- package/dist/assets/icons/ClockIcon.d.ts +0 -3
- package/dist/assets/icons/Complete.d.ts +0 -3
- package/dist/assets/icons/CompleteIcon.d.ts +0 -3
- package/dist/assets/icons/CompletedIcon.d.ts +0 -3
- package/dist/assets/icons/DeleteIcon.d.ts +0 -3
- package/dist/assets/icons/DownArrowIcon.d.ts +0 -3
- package/dist/assets/icons/DownloadIcon.d.ts +0 -3
- package/dist/assets/icons/DriverIcon.d.ts +0 -3
- package/dist/assets/icons/DropDownLarge.d.ts +0 -3
- package/dist/assets/icons/EditIcon.d.ts +0 -3
- package/dist/assets/icons/ExportIcon.d.ts +0 -3
- package/dist/assets/icons/EyeIcon.d.ts +0 -3
- package/dist/assets/icons/FailedIcon.d.ts +0 -3
- package/dist/assets/icons/HeavyItemIcon.d.ts +0 -3
- package/dist/assets/icons/InComplete.d.ts +0 -3
- package/dist/assets/icons/LargeItemIcon.d.ts +0 -3
- package/dist/assets/icons/LateIcon.d.ts +0 -3
- package/dist/assets/icons/LineIcon.d.ts +0 -3
- package/dist/assets/icons/LockIcon.d.ts +0 -3
- package/dist/assets/icons/MapIcon.d.ts +0 -3
- package/dist/assets/icons/OctaIcon.d.ts +0 -3
- package/dist/assets/icons/OntimeTrackingIcons.d.ts +0 -3
- package/dist/assets/icons/PaperIcon.d.ts +0 -3
- package/dist/assets/icons/PendingIcon.d.ts +0 -3
- package/dist/assets/icons/PersonIcon.d.ts +0 -3
- package/dist/assets/icons/PointIcon.d.ts +0 -3
- package/dist/assets/icons/PrintIcon.d.ts +0 -3
- package/dist/assets/icons/PrivateIcon.d.ts +0 -3
- package/dist/assets/icons/RecipientIcon.d.ts +0 -3
- package/dist/assets/icons/ReminderIcon.d.ts +0 -3
- package/dist/assets/icons/RightArrowIcon.d.ts +0 -3
- package/dist/assets/icons/RoundCheckbox.d.ts +0 -3
- package/dist/assets/icons/StartIcon.d.ts +0 -3
- package/dist/assets/icons/TableIcon.d.ts +0 -3
- package/dist/assets/icons/TextIcon.d.ts +0 -3
- package/dist/assets/icons/ThreeIcon.d.ts +0 -3
- package/dist/assets/icons/TickIon.d.ts +0 -3
- package/dist/assets/icons/TomtomIcon.d.ts +0 -3
- package/dist/assets/icons/TotalOrderIcon.d.ts +0 -3
- package/dist/assets/icons/TrackIcon.d.ts +0 -3
- package/dist/assets/icons/TruckIcon.d.ts +0 -3
- package/dist/assets/icons/UnlockIcon.d.ts +0 -3
- package/dist/assets/icons/UserIcon.d.ts +0 -3
- package/dist/assets/icons/VehicleIcon.d.ts +0 -3
- package/dist/assets/icons/WeightIcon.d.ts +0 -3
- package/dist/assets/icons/ZigZagIcon.d.ts +0 -3
- package/dist/components/order-daily-overview/common/PrintDropDown.d.ts +0 -8
- package/dist/components/order-daily-overview/common/css/TableStyle.d.ts +0 -21
- package/dist/components/order-daily-overview/common/css/mediaQuery.d.ts +0 -4
- package/dist/components/order-daily-overview/store/filterStore.d.ts +0 -16
- package/dist/components/order-daily-overview/store/initialValues.d.ts +0 -16
- package/dist/components/order-daily-overview/table/table-data/Fakedata.d.ts +0 -144
- package/dist/components/order-view/ProductData.d.ts +0 -14
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDownItem.d.ts +0 -8
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDownMenu.d.ts +0 -10
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropdownStyles.d.ts +0 -3
- package/dist/components/order-view/general-information/LockOrder.d.ts +0 -4
- package/dist/components/order-view/general-information/dropdowns/BjsMenu.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/CreateTask.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/SendEmail.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/SendSms.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/Tasks.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/Videos.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/ViewEpod.d.ts +0 -3
- package/dist/components/order-view/general-information/dropdowns/helper.d.ts +0 -1
- package/dist/components/order-view/general-information/dropdowns/index.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/AddProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/BulkUpdateProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/DeleteProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/ProductAction.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/RepackModal.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/UnReceiveProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/UpdateProducts.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/AddDefect.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/DefetcDetails.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/OtherDamage.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/RepackDetails.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/RepackProduct.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/index.d.ts +0 -3
- package/dist/components/order-view/modalsPopup/qclogs/logsTable.d.ts +0 -3
- package/dist/components/order-view/notes/logs/columns/Details.d.ts +0 -3
- package/dist/components/order-view/notes/logs/columns/index.d.ts +0 -2
- package/dist/components/order-view/notification/OrderTemplate.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelationNote.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelationReason.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/charge-log/DeleteLogModal.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/charge-log/index.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/Dropdowns.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/EscalationModal.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/NewEscalation.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/Notes.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/index.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/escalation/upgrade/index.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/restore-products/RestoreProducts.d.ts +0 -3
- package/dist/components/order-view/order-actions/actions/update-product-type/UpdateProductType.d.ts +0 -7
- package/dist/components/order-view/order-actions/actions/update-product-type/UpdateProductTypeStyle.d.ts +0 -9
- package/dist/components/order-view/order-actions/hooks/useFetchSingleReminder.d.ts +0 -2
- package/dist/components/order-view/order-actions/hooks/useUpdateReminder.d.ts +0 -3
- package/dist/components/order-view/order-details/expanded-content/orders-section/ValueField.d.ts +0 -3
- package/dist/components/order-view/order-resources/columns/Id.d.ts +0 -3
- package/dist/components/order-view/products-info/expanded-content/productList.d.ts +0 -0
- package/dist/components/order-view/products-info/expanded-content/products/Badge.d.ts +0 -6
- package/dist/components/order-view/products-info/expanded-content/products/index.d.ts +0 -7
- package/dist/components/order-view/products-info/types.d.ts +0 -1
- package/dist/components/order-view/products-info/utils.d.ts +0 -2
- package/dist/components/order-view/return-client-products/product-table-footer/ProductDetailsFooter.d.ts +0 -3
- package/dist/components/order-view/toolbox-resources/collapsed-content/index.d.ts +0 -3
- package/dist/components/order-view/toolbox-resources/expanded-content/index.d.ts +0 -3
- package/dist/components/order-view/view-reminder/AssigneeDropdown.d.ts +0 -3
- package/dist/components/order-view/view-reminder/ViewReminder.d.ts +0 -3
- package/dist/components/order-view/view-reminder/reminder-styles.d.ts +0 -25
- package/src/assets/PostCodeIcon.tsx +0 -32
- package/src/assets/icons/ArrivalIcon.tsx +0 -11
- package/src/assets/icons/ArrowIcon.tsx +0 -11
- package/src/assets/icons/AssemblyIcons.tsx +0 -11
- package/src/assets/icons/BarCode.tsx +0 -11
- package/src/assets/icons/BoxIcon.tsx +0 -19
- package/src/assets/icons/BoxTickIcon.tsx +0 -19
- package/src/assets/icons/CallIcon.tsx +0 -9
- package/src/assets/icons/CarIcon.tsx +0 -10
- package/src/assets/icons/CardsIcon.tsx +0 -12
- package/src/assets/icons/CbmIcon.tsx +0 -11
- package/src/assets/icons/ClockIcon.tsx +0 -10
- package/src/assets/icons/Complete.tsx +0 -15
- package/src/assets/icons/CompleteIcon.tsx +0 -34
- package/src/assets/icons/CompletedIcon.tsx +0 -11
- package/src/assets/icons/DeleteIcon.tsx +0 -20
- package/src/assets/icons/DownArrowIcon.tsx +0 -18
- package/src/assets/icons/DownloadIcon.tsx +0 -26
- package/src/assets/icons/DriverIcon.tsx +0 -28
- package/src/assets/icons/DropDownLarge.tsx +0 -25
- package/src/assets/icons/EditIcon.tsx +0 -34
- package/src/assets/icons/ExportIcon.tsx +0 -14
- package/src/assets/icons/EyeIcon.tsx +0 -10
- package/src/assets/icons/FailedIcon.tsx +0 -44
- package/src/assets/icons/HeavyItemIcon.tsx +0 -36
- package/src/assets/icons/InComplete.tsx +0 -15
- package/src/assets/icons/LargeItemIcon.tsx +0 -60
- package/src/assets/icons/LateIcon.tsx +0 -12
- package/src/assets/icons/LineIcon.tsx +0 -10
- package/src/assets/icons/LockIcon.tsx +0 -35
- package/src/assets/icons/MapIcon.tsx +0 -11
- package/src/assets/icons/OctaIcon.tsx +0 -10
- package/src/assets/icons/OntimeTrackingIcons.tsx +0 -19
- package/src/assets/icons/PaperIcon.tsx +0 -10
- package/src/assets/icons/PendingIcon.tsx +0 -32
- package/src/assets/icons/PersonIcon.tsx +0 -27
- package/src/assets/icons/PointIcon.tsx +0 -10
- package/src/assets/icons/PrintIcon.tsx +0 -10
- package/src/assets/icons/PrivateIcon.tsx +0 -29
- package/src/assets/icons/RecipientIcon.tsx +0 -10
- package/src/assets/icons/ReminderIcon.tsx +0 -35
- package/src/assets/icons/RightArrowIcon.tsx +0 -15
- package/src/assets/icons/RoundCheckbox.tsx +0 -11
- package/src/assets/icons/StartIcon.tsx +0 -10
- package/src/assets/icons/TableIcon.tsx +0 -12
- package/src/assets/icons/TextIcon.tsx +0 -10
- package/src/assets/icons/ThreeIcon.tsx +0 -19
- package/src/assets/icons/TickIon.tsx +0 -10
- package/src/assets/icons/TomtomIcon.tsx +0 -23
- package/src/assets/icons/TotalOrderIcon.tsx +0 -12
- package/src/assets/icons/TrackIcon.tsx +0 -12
- package/src/assets/icons/TruckIcon.tsx +0 -20
- package/src/assets/icons/UnlockIcon.tsx +0 -35
- package/src/assets/icons/UserIcon.tsx +0 -10
- package/src/assets/icons/VehicleIcon.tsx +0 -11
- package/src/assets/icons/WeightIcon.tsx +0 -11
- package/src/assets/icons/ZigZagIcon.tsx +0 -10
- package/src/components/order-daily-overview/common/PrintDropDown.tsx +0 -100
- package/src/components/order-daily-overview/common/css/TableStyle.tsx +0 -202
- package/src/components/order-daily-overview/common/css/mediaQuery.ts +0 -13
- package/src/components/order-daily-overview/store/filterStore.ts +0 -100
- package/src/components/order-daily-overview/store/initialValues.ts +0 -16
- package/src/components/order-daily-overview/table/table-data/Fakedata.tsx +0 -432
- package/src/components/order-view/ProductData.tsx +0 -81
- package/src/components/order-view/details-filters/left-side-filters/dropdowns/DropDownItem.tsx +0 -33
- package/src/components/order-view/details-filters/left-side-filters/dropdowns/DropDownMenu.tsx +0 -42
- package/src/components/order-view/details-filters/left-side-filters/dropdowns/DropdownStyles.tsx +0 -25
- package/src/components/order-view/general-information/LockOrder.tsx +0 -113
- package/src/components/order-view/general-information/dropdowns/BjsMenu.tsx +0 -66
- package/src/components/order-view/general-information/dropdowns/CreateTask.tsx +0 -34
- package/src/components/order-view/general-information/dropdowns/SendEmail.tsx +0 -14
- package/src/components/order-view/general-information/dropdowns/SendSms.tsx +0 -14
- package/src/components/order-view/general-information/dropdowns/Tasks.tsx +0 -8
- package/src/components/order-view/general-information/dropdowns/Videos.tsx +0 -8
- package/src/components/order-view/general-information/dropdowns/ViewEpod.tsx +0 -8
- package/src/components/order-view/general-information/dropdowns/helper.tsx +0 -17
- package/src/components/order-view/general-information/dropdowns/index.tsx +0 -46
- package/src/components/order-view/modalsPopup/AddProduct.tsx +0 -234
- package/src/components/order-view/modalsPopup/BulkUpdateProduct.tsx +0 -145
- package/src/components/order-view/modalsPopup/DeleteProduct.tsx +0 -117
- package/src/components/order-view/modalsPopup/ProductAction.tsx +0 -79
- package/src/components/order-view/modalsPopup/RepackModal.tsx +0 -42
- package/src/components/order-view/modalsPopup/UnReceiveProduct.tsx +0 -72
- package/src/components/order-view/modalsPopup/UpdateProducts.tsx +0 -145
- package/src/components/order-view/modalsPopup/qclogs/AddDefect.tsx +0 -135
- package/src/components/order-view/modalsPopup/qclogs/DefetcDetails.tsx +0 -97
- package/src/components/order-view/modalsPopup/qclogs/OtherDamage.tsx +0 -125
- package/src/components/order-view/modalsPopup/qclogs/RepackDetails.tsx +0 -118
- package/src/components/order-view/modalsPopup/qclogs/RepackProduct.tsx +0 -63
- package/src/components/order-view/modalsPopup/qclogs/index.tsx +0 -62
- package/src/components/order-view/modalsPopup/qclogs/logsTable.tsx +0 -74
- package/src/components/order-view/notes/logs/columns/Details.tsx +0 -56
- package/src/components/order-view/notes/logs/columns/index.tsx +0 -2
- package/src/components/order-view/notification/OrderTemplate.tsx +0 -108
- package/src/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.tsx +0 -95
- package/src/components/order-view/order-actions/actions/cancel-order/CancelationNote.tsx +0 -28
- package/src/components/order-view/order-actions/actions/cancel-order/CancelationReason.tsx +0 -18
- package/src/components/order-view/order-actions/actions/charge-log/DeleteLogModal.tsx +0 -39
- package/src/components/order-view/order-actions/actions/charge-log/index.tsx +0 -171
- package/src/components/order-view/order-actions/actions/escalation/Dropdowns.tsx +0 -95
- package/src/components/order-view/order-actions/actions/escalation/EscalationModal.tsx +0 -28
- package/src/components/order-view/order-actions/actions/escalation/NewEscalation.tsx +0 -139
- package/src/components/order-view/order-actions/actions/escalation/Notes.tsx +0 -36
- package/src/components/order-view/order-actions/actions/escalation/index.tsx +0 -31
- package/src/components/order-view/order-actions/actions/escalation/upgrade/index.tsx +0 -198
- package/src/components/order-view/order-actions/actions/restore-products/RestoreProducts.tsx +0 -139
- package/src/components/order-view/order-actions/actions/update-product-type/UpdateProductType.tsx +0 -365
- package/src/components/order-view/order-actions/actions/update-product-type/UpdateProductTypeStyle.tsx +0 -251
- package/src/components/order-view/order-actions/hooks/useFetchSingleReminder.ts +0 -60
- package/src/components/order-view/order-actions/hooks/useUpdateReminder.ts +0 -54
- package/src/components/order-view/order-details/expanded-content/orders-section/ValueField.tsx +0 -36
- package/src/components/order-view/order-resources/columns/Id.tsx +0 -17
- package/src/components/order-view/products-info/expanded-content/productList.tsx +0 -28
- package/src/components/order-view/products-info/expanded-content/products/Badge.tsx +0 -34
- package/src/components/order-view/products-info/expanded-content/products/index.tsx +0 -305
- package/src/components/order-view/products-info/types.ts +0 -1
- package/src/components/order-view/products-info/utils.ts +0 -14
- package/src/components/order-view/return-client-products/product-table-footer/ProductDetailsFooter.tsx +0 -37
- package/src/components/order-view/toolbox-resources/collapsed-content/index.tsx +0 -16
- package/src/components/order-view/toolbox-resources/expanded-content/index.tsx +0 -84
- package/src/components/order-view/view-reminder/AssigneeDropdown.tsx +0 -34
- package/src/components/order-view/view-reminder/ViewReminder.tsx +0 -315
- package/src/components/order-view/view-reminder/reminder-styles.tsx +0 -174
|
@@ -1,22 +1,41 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Label, SelectDropdown } from '@bjsdistribution/dms-component-library';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
|
-
import
|
|
4
|
+
import { useOrderDetails } from '../../../store';
|
|
5
|
+
import { useSubContracterData } from '../../../../store';
|
|
5
6
|
|
|
6
7
|
function Carrier() {
|
|
7
|
-
|
|
8
|
+
const [orderDetails, setOrderDetails] = useOrderDetails();
|
|
9
|
+
const [subContracterData] = useSubContracterData();
|
|
10
|
+
|
|
11
|
+
const carrierOptions = subContracterData?.map((carrier: any) => ({
|
|
12
|
+
label: carrier.name,
|
|
13
|
+
value: carrier.id,
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
const onChange = (selectedOption: any) => {
|
|
17
|
+
setOrderDetails(prev => ({
|
|
18
|
+
...prev,
|
|
19
|
+
carrier_id: selectedOption.value,
|
|
20
|
+
}));
|
|
21
|
+
};
|
|
22
|
+
|
|
8
23
|
return (
|
|
9
24
|
<Container>
|
|
10
25
|
<Wrapper>
|
|
11
26
|
<Label label="Carrier" htmlFor="carrier" />
|
|
12
|
-
<CopyText text="hello234e" />
|
|
13
27
|
</Wrapper>
|
|
14
|
-
<
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
28
|
+
<SelectDropdown
|
|
29
|
+
placeholder="Select Carrier"
|
|
30
|
+
inputId="CarrierDropdown"
|
|
31
|
+
openMenuOnFocus={false}
|
|
32
|
+
value={
|
|
33
|
+
carrierOptions.find(
|
|
34
|
+
(option: any) => option.value === orderDetails?.carrier_id
|
|
35
|
+
) || null
|
|
36
|
+
}
|
|
37
|
+
options={carrierOptions}
|
|
38
|
+
onChange={onChange}
|
|
20
39
|
/>
|
|
21
40
|
</Container>
|
|
22
41
|
);
|
|
@@ -21,7 +21,7 @@ function DepotDropdown() {
|
|
|
21
21
|
return (
|
|
22
22
|
<FormContainer>
|
|
23
23
|
<Label label="Depot" htmlFor="depotDropdown" />
|
|
24
|
-
<
|
|
24
|
+
<StyledSelectDropdown
|
|
25
25
|
placeholder="Select Depot"
|
|
26
26
|
inputId="depotDropdown"
|
|
27
27
|
openMenuOnFocus={false}
|
|
@@ -33,7 +33,7 @@ function DepotDropdown() {
|
|
|
33
33
|
styles={{
|
|
34
34
|
...dropdownStyles,
|
|
35
35
|
|
|
36
|
-
control: styles => ({
|
|
36
|
+
control: (styles: any) => ({
|
|
37
37
|
...styles,
|
|
38
38
|
borderRadius: '25px',
|
|
39
39
|
cursor: 'pointer',
|
|
@@ -50,5 +50,7 @@ const FormContainer = styled.div`
|
|
|
50
50
|
gap: 6px;
|
|
51
51
|
flex: 1;
|
|
52
52
|
`;
|
|
53
|
-
|
|
53
|
+
export const StyledSelectDropdown = styled(SelectDropdown)`
|
|
54
|
+
min-width: 160px;
|
|
55
|
+
`;
|
|
54
56
|
export default DepotDropdown;
|
package/src/components/order-view/order-details/expanded-content/orders-section/ScheduleAfter.tsx
CHANGED
|
@@ -52,7 +52,8 @@ function ScheduleAfter() {
|
|
|
52
52
|
onChange={onChange}
|
|
53
53
|
value={scheduleDate === null ? scheduleDate : dayjs(scheduleDate)}
|
|
54
54
|
format="DD/MM/YY"
|
|
55
|
-
|
|
55
|
+
disabledDate={current => current && current < dayjs().startOf('day')}
|
|
56
|
+
allowClear={false}
|
|
56
57
|
/>
|
|
57
58
|
</MainContainer>
|
|
58
59
|
);
|
package/src/components/order-view/order-details/expanded-content/orders-section/VehicleType.tsx
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Label
|
|
1
|
+
import { Label } from '@bjsdistribution/dms-component-library';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import { vehicleTypeOptions } from '../../helper';
|
|
5
5
|
import { useOrderDetails } from '../../../store';
|
|
6
|
+
import { StyledSelectDropdown } from './Depot';
|
|
6
7
|
|
|
7
8
|
function VehicleTypeDropdown() {
|
|
8
9
|
const [orderDetails, setOrderDetails] = useOrderDetails();
|
|
@@ -18,7 +19,7 @@ function VehicleTypeDropdown() {
|
|
|
18
19
|
return (
|
|
19
20
|
<FormContainer>
|
|
20
21
|
<Label label="Vehicle Type" htmlFor="vehicleType" />
|
|
21
|
-
<
|
|
22
|
+
<StyledSelectDropdown
|
|
22
23
|
placeholder="Select vehicle type"
|
|
23
24
|
options={vehicleTypeOptions}
|
|
24
25
|
inputId="vehicleType"
|
|
@@ -2,11 +2,9 @@ import { FormSection } from '@bjsdistribution/dms-component-library';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import Header from '../../common/Header';
|
|
5
|
-
// import OrderNumber from './OrderNumber';
|
|
6
5
|
import ConsignmentNumber from './ConsignmentNumber';
|
|
7
6
|
import RecipientReference from './RecipientReference';
|
|
8
7
|
import DepotDropdown from './Depot';
|
|
9
|
-
// import ValueField from './ValueField';
|
|
10
8
|
import Droptime from './Droptime';
|
|
11
9
|
import DeliveryDate from './DeliveryDate';
|
|
12
10
|
import Carrier from './Carrier';
|
|
@@ -32,7 +30,6 @@ function OrdersSection() {
|
|
|
32
30
|
<ScheduleAfter />
|
|
33
31
|
</GroupedInputs>
|
|
34
32
|
<GroupedInputs>
|
|
35
|
-
{/* <ValueField OrdersSection={ Data}/> */}
|
|
36
33
|
<Droptime />
|
|
37
34
|
</GroupedInputs>
|
|
38
35
|
<GroupedInputs>
|
|
@@ -2,13 +2,13 @@ import React from 'react';
|
|
|
2
2
|
import styled from 'styled-components';
|
|
3
3
|
|
|
4
4
|
function CollapsedContent() {
|
|
5
|
-
return <Font>
|
|
5
|
+
return <Font>ORDER RESOURCES</Font>;
|
|
6
6
|
}
|
|
7
7
|
const Font = styled.div`
|
|
8
8
|
font-family: 'Roboto', sans-serif;
|
|
9
9
|
font-size: 16px;
|
|
10
10
|
font-style: normal;
|
|
11
11
|
font-weight: 500;
|
|
12
|
-
line-height:
|
|
12
|
+
line-height: 24px; /* 150% */
|
|
13
13
|
`;
|
|
14
14
|
export default CollapsedContent;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
+
import { formatDate } from '../../order-actions/utils';
|
|
3
4
|
|
|
4
5
|
function Date(props: any) {
|
|
5
6
|
const data = props?.row?.original.date;
|
|
6
7
|
return (
|
|
7
8
|
<RowContainer>
|
|
8
|
-
<Row>{data}</Row>
|
|
9
|
+
<Row>{formatDate(data)}</Row>
|
|
9
10
|
</RowContainer>
|
|
10
11
|
);
|
|
11
12
|
}
|
|
@@ -1,12 +1,140 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ViewIcon } from '@bjsdistribution/dms-component-library';
|
|
2
|
+
import Tippy from '@tippyjs/react';
|
|
3
|
+
import React, { useState } from 'react';
|
|
2
4
|
import styled from 'styled-components';
|
|
5
|
+
import { atom } from 'jotai';
|
|
6
|
+
import { useOrderProductsResources } from '../../../store';
|
|
7
|
+
import { notification } from 'antd';
|
|
8
|
+
import DownIcon from '../../../../../assets/icons/DownIcon';
|
|
9
|
+
|
|
10
|
+
export const selectedOrderIdAtom = atom<number[]>([]);
|
|
11
|
+
|
|
12
|
+
interface ActionProps {
|
|
13
|
+
row: {
|
|
14
|
+
original: {
|
|
15
|
+
id: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function Action({ row }: ActionProps) {
|
|
21
|
+
const [orderResources] = useOrderProductsResources();
|
|
22
|
+
const [isDownloading, setIsDownloading] = useState(false);
|
|
23
|
+
const urlID = row?.original?.id;
|
|
24
|
+
|
|
25
|
+
const matchingResource = orderResources?.data?.find(
|
|
26
|
+
(resource: any) => resource.id === urlID
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
const resourceUrl = matchingResource?.url;
|
|
30
|
+
|
|
31
|
+
const handleView = () => {
|
|
32
|
+
if (resourceUrl) {
|
|
33
|
+
window.open(resourceUrl, '_blank');
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
const handleDownload = async () => {
|
|
38
|
+
if (!resourceUrl) {
|
|
39
|
+
notification.error({
|
|
40
|
+
message: 'Error',
|
|
41
|
+
description: 'Resource URL is not available',
|
|
42
|
+
});
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
setIsDownloading(true); // disable button
|
|
47
|
+
notification.info({
|
|
48
|
+
message: 'Info',
|
|
49
|
+
description: `Download is in progress. Please wait`,
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
fetch(resourceUrl, {
|
|
53
|
+
method: 'GET',
|
|
54
|
+
headers: {},
|
|
55
|
+
})
|
|
56
|
+
.then(response => {
|
|
57
|
+
if (!response.ok) {
|
|
58
|
+
throw new Error('Network response was not ok');
|
|
59
|
+
}
|
|
60
|
+
return response.blob();
|
|
61
|
+
})
|
|
62
|
+
.then(blob => {
|
|
63
|
+
// Create a temporary URL for the blob
|
|
64
|
+
const urlObject = window.URL.createObjectURL(blob);
|
|
65
|
+
|
|
66
|
+
// Create a temporary anchor element
|
|
67
|
+
const link = document.createElement('a');
|
|
68
|
+
link.href = urlObject;
|
|
69
|
+
|
|
70
|
+
// Generate a filename (you can customize this)
|
|
71
|
+
const filename = `Downloads`;
|
|
72
|
+
link.download = filename;
|
|
73
|
+
|
|
74
|
+
// Append to body, click, and remove
|
|
75
|
+
document.body.appendChild(link);
|
|
76
|
+
link.click();
|
|
77
|
+
document.body.removeChild(link);
|
|
78
|
+
|
|
79
|
+
// Revoke the blob URL
|
|
80
|
+
window.URL.revokeObjectURL(urlObject);
|
|
81
|
+
|
|
82
|
+
notification.success({
|
|
83
|
+
message: 'Success',
|
|
84
|
+
description: 'Document downloaded successfully.',
|
|
85
|
+
});
|
|
86
|
+
|
|
87
|
+
setIsDownloading(false); // enable button
|
|
88
|
+
})
|
|
89
|
+
.catch(error => {
|
|
90
|
+
console.error('Error downloading the document:', error);
|
|
91
|
+
notification.error({
|
|
92
|
+
message: 'Error',
|
|
93
|
+
description: 'Failed to download the document.',
|
|
94
|
+
});
|
|
95
|
+
})
|
|
96
|
+
.finally(() => {
|
|
97
|
+
setIsDownloading(false);
|
|
98
|
+
});
|
|
99
|
+
};
|
|
3
100
|
|
|
4
|
-
function index() {
|
|
5
101
|
return (
|
|
6
|
-
|
|
7
|
-
|
|
102
|
+
<Actions>
|
|
103
|
+
<Row>
|
|
104
|
+
<Tippy content="View" placement="top" trigger="mouseenter">
|
|
105
|
+
<TippyContainer onClick={handleView}>
|
|
106
|
+
<ViewIcon style={{ cursor: 'pointer' }} />
|
|
107
|
+
</TippyContainer>
|
|
108
|
+
</Tippy>
|
|
109
|
+
<Tippy content="Download" placement="top" trigger="mouseenter">
|
|
110
|
+
<TippyContainer
|
|
111
|
+
onClick={isDownloading ? undefined : handleDownload}
|
|
112
|
+
style={{
|
|
113
|
+
cursor: isDownloading ? 'not-allowed' : 'pointer',
|
|
114
|
+
opacity: isDownloading ? 0.6 : 1,
|
|
115
|
+
}}
|
|
116
|
+
>
|
|
117
|
+
<DownIcon />
|
|
118
|
+
</TippyContainer>
|
|
119
|
+
</Tippy>
|
|
120
|
+
</Row>
|
|
121
|
+
</Actions>
|
|
8
122
|
);
|
|
9
123
|
}
|
|
124
|
+
|
|
125
|
+
// Styled components for styling
|
|
10
126
|
const Actions = styled.div``;
|
|
11
127
|
|
|
12
|
-
|
|
128
|
+
const TippyContainer = styled.div`
|
|
129
|
+
display: inline-block;
|
|
130
|
+
margin: 7px;
|
|
131
|
+
`;
|
|
132
|
+
|
|
133
|
+
const Row = styled.div`
|
|
134
|
+
gap: 10px;
|
|
135
|
+
cursor: pointer;
|
|
136
|
+
display: flex;
|
|
137
|
+
align-items: center;
|
|
138
|
+
`;
|
|
139
|
+
|
|
140
|
+
export default Action;
|
|
@@ -2,22 +2,22 @@ import React from 'react';
|
|
|
2
2
|
import CollapsedContent from '../collapsed-content';
|
|
3
3
|
import styled from 'styled-components';
|
|
4
4
|
import CollapsableForm from '../../../../common/expand-collapse';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
import {
|
|
5
|
+
import DynamicTable from '../../DynamicTable';
|
|
6
|
+
import { useOrderProductsResources } from '../../store';
|
|
7
|
+
import { tableColumns } from '../helper';
|
|
8
8
|
|
|
9
9
|
function Order() {
|
|
10
|
+
const [orderResources] = useOrderProductsResources();
|
|
11
|
+
|
|
12
|
+
const data =
|
|
13
|
+
orderResources?.data && orderResources?.data?.length > 0
|
|
14
|
+
? orderResources?.data
|
|
15
|
+
: '';
|
|
16
|
+
|
|
10
17
|
return (
|
|
11
18
|
<Table>
|
|
12
19
|
<CollapsableForm collapsedContent={<CollapsedContent />}>
|
|
13
|
-
|
|
14
|
-
<Alert
|
|
15
|
-
description=""
|
|
16
|
-
onClose={() => {}}
|
|
17
|
-
type="warn"
|
|
18
|
-
title="No records found"
|
|
19
|
-
showOkButton={false}
|
|
20
|
-
/>
|
|
20
|
+
<DynamicTable columns={tableColumns} data={data} />
|
|
21
21
|
</CollapsableForm>
|
|
22
22
|
</Table>
|
|
23
23
|
);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Category, Date, Reference, Type } from './columns';
|
|
1
|
+
import { Actions, Category, Date, Reference, Type } from './columns';
|
|
2
2
|
|
|
3
3
|
export const tableColumns = [
|
|
4
4
|
{
|
|
@@ -25,4 +25,10 @@ export const tableColumns = [
|
|
|
25
25
|
cell: Reference,
|
|
26
26
|
enableSorting: false,
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
header: 'Actions',
|
|
30
|
+
accessorKey: 'action',
|
|
31
|
+
cell: Actions,
|
|
32
|
+
enableSorting: false,
|
|
33
|
+
},
|
|
28
34
|
];
|
|
@@ -24,11 +24,10 @@ interface OrderRecipient {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
const customerInfoAtom = atom<OrderRecipient>({
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
recipient_name: '',
|
|
28
|
+
postcode: '',
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
|
|
32
31
|
export const ordersInitialValue: OrdersType = {
|
|
33
32
|
depot_id: null,
|
|
34
33
|
gsit_order_id: null,
|
|
@@ -105,6 +104,7 @@ export const ordersInitialValue: OrdersType = {
|
|
|
105
104
|
order_communications: [],
|
|
106
105
|
id: null,
|
|
107
106
|
name: '',
|
|
107
|
+
carrier_id: null,
|
|
108
108
|
};
|
|
109
109
|
|
|
110
110
|
export const orderProductInitialvalue: CreateProduct = {
|
|
@@ -169,7 +169,8 @@ function useIsOnHoldOrder() {
|
|
|
169
169
|
}
|
|
170
170
|
//value
|
|
171
171
|
const orderId = atom<any>(undefined);
|
|
172
|
-
export const useOrderId = () => {
|
|
172
|
+
export const useOrderId = () => {
|
|
173
|
+
//dddddddddddd
|
|
173
174
|
return useAtom(orderId);
|
|
174
175
|
};
|
|
175
176
|
|
|
@@ -372,7 +373,6 @@ export {
|
|
|
372
373
|
useClientData,
|
|
373
374
|
};
|
|
374
375
|
|
|
375
|
-
|
|
376
376
|
const notes = atom<any>([]);
|
|
377
377
|
|
|
378
378
|
export function usegetNotes() {
|
|
@@ -445,7 +445,6 @@ export function useUpdateApiCall() {
|
|
|
445
445
|
return useAtom(apiUpdateCalling);
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
|
|
449
448
|
const liveRecalling = atom<boolean>(false);
|
|
450
449
|
|
|
451
450
|
//re api call of live status
|
|
@@ -468,18 +467,21 @@ export const letselectedProductIdAtom = atom<number | null>(null);
|
|
|
468
467
|
// return useAtom(BulkUPdateDisabledState);
|
|
469
468
|
// };
|
|
470
469
|
|
|
471
|
-
|
|
472
470
|
const auditLogLoadingState = atom<boolean>(true);
|
|
473
471
|
export function useAuditLogLoadingState() {
|
|
474
472
|
return useAtom(auditLogLoadingState);
|
|
475
473
|
}
|
|
476
474
|
|
|
477
|
-
|
|
478
475
|
const globalStateHitAuditLog = atom<boolean>(false);
|
|
479
476
|
export function useGlobalStateHitAuditLog() {
|
|
480
477
|
return useAtom(globalStateHitAuditLog);
|
|
481
478
|
}
|
|
482
479
|
|
|
480
|
+
const globalOrderGetApi = atom<boolean>(true);
|
|
481
|
+
|
|
482
|
+
export function useGlobalStateHitOrder() {
|
|
483
|
+
return useAtom(globalOrderGetApi);
|
|
484
|
+
}
|
|
483
485
|
|
|
484
486
|
|
|
485
487
|
// Popup state Manage
|
|
@@ -34,6 +34,7 @@ export type OrderActionsType =
|
|
|
34
34
|
| 'change-customer-account'
|
|
35
35
|
| 'escalations'
|
|
36
36
|
| 'create-task'
|
|
37
|
+
| 'create-reminder'
|
|
37
38
|
| 'log-feedback'
|
|
38
39
|
| 'hold-order'
|
|
39
40
|
| 'unhold-order'
|
|
@@ -48,7 +49,8 @@ export type OrderActionsType =
|
|
|
48
49
|
| 'release-order'
|
|
49
50
|
| 'unrelease-order'
|
|
50
51
|
| 'clear-date'
|
|
51
|
-
| 'uncancel-order'
|
|
52
|
+
| 'uncancel-order'
|
|
53
|
+
| 'remove-from-route';
|
|
52
54
|
|
|
53
55
|
export interface ChargeLogData {
|
|
54
56
|
id: number;
|
|
@@ -157,14 +159,15 @@ export interface OrdersType {
|
|
|
157
159
|
order_communications: any[];
|
|
158
160
|
id: number | null;
|
|
159
161
|
status_value: string | null;
|
|
160
|
-
name: string
|
|
162
|
+
name: string;
|
|
161
163
|
order_locked_by: string | null;
|
|
162
164
|
delivery_instructions: string | null;
|
|
163
165
|
drop_time: string | null;
|
|
164
166
|
created_by: any;
|
|
165
167
|
created_at: any;
|
|
166
168
|
recipient_name: any;
|
|
167
|
-
postcode: any
|
|
169
|
+
postcode: any;
|
|
170
|
+
carrier_id: number | null;
|
|
168
171
|
}
|
|
169
172
|
|
|
170
173
|
export type DeleteProds = {
|
|
@@ -110,7 +110,23 @@ export const getCookie = (name: string): string | null => {
|
|
|
110
110
|
|
|
111
111
|
export const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {
|
|
112
112
|
// Allowed keys: numbers (0-9), '.', '-', '+'
|
|
113
|
-
const allowedKeys = [
|
|
113
|
+
const allowedKeys = [
|
|
114
|
+
'0',
|
|
115
|
+
'1',
|
|
116
|
+
'2',
|
|
117
|
+
'3',
|
|
118
|
+
'4',
|
|
119
|
+
'5',
|
|
120
|
+
'6',
|
|
121
|
+
'7',
|
|
122
|
+
'8',
|
|
123
|
+
'9',
|
|
124
|
+
'.',
|
|
125
|
+
'-',
|
|
126
|
+
'+',
|
|
127
|
+
'ArrowLeft',
|
|
128
|
+
'ArrowRight',
|
|
129
|
+
];
|
|
114
130
|
|
|
115
131
|
// Allow backspace, delete, and Tab keys
|
|
116
132
|
if (e.key === 'Backspace' || e.key === 'Delete' || e.key === 'Tab') {
|
package/src/components/store.ts
CHANGED
|
@@ -78,6 +78,12 @@ const selectedProductsMove = atom<any>([]);
|
|
|
78
78
|
|
|
79
79
|
const newReturnOrderData = atom<any>([]);
|
|
80
80
|
|
|
81
|
+
const subContracterData = atom<any>([]);
|
|
82
|
+
|
|
83
|
+
export function useSubContracterData() {
|
|
84
|
+
return useAtom(subContracterData);
|
|
85
|
+
}
|
|
86
|
+
|
|
81
87
|
function useReminderData() {
|
|
82
88
|
return useAtom(reminderTableData);
|
|
83
89
|
}
|