@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,54 +0,0 @@
|
|
|
1
|
-
import { getBaseEndpoint } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import { useFlagsLoading } from '../store';
|
|
3
|
-
import { UpdateReminderPayload } from '../types';
|
|
4
|
-
import { getCookie } from '../../utils';
|
|
5
|
-
import { notification } from 'antd';
|
|
6
|
-
|
|
7
|
-
function useUpdateReminder() {
|
|
8
|
-
const ssoToken = getCookie('id_token');
|
|
9
|
-
const [, setLoading] = useFlagsLoading();
|
|
10
|
-
|
|
11
|
-
const update = async (data: UpdateReminderPayload[]) => {
|
|
12
|
-
const endpoint = `${getBaseEndpoint()}/tasks/reminder/update/`;
|
|
13
|
-
setLoading(true);
|
|
14
|
-
|
|
15
|
-
try {
|
|
16
|
-
const requestOptions = {
|
|
17
|
-
headers: {
|
|
18
|
-
'Content-Type': 'application/json',
|
|
19
|
-
Authorization: `Bearer ${ssoToken}`,
|
|
20
|
-
},
|
|
21
|
-
method: 'PUT',
|
|
22
|
-
body: JSON.stringify(data),
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const response = await fetch(endpoint, requestOptions);
|
|
26
|
-
|
|
27
|
-
if (!response.ok) {
|
|
28
|
-
throw new Error('response is not ok');
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const json = await response.json();
|
|
32
|
-
// alert('Reminder has been updated');
|
|
33
|
-
notification.success({
|
|
34
|
-
message: 'Success',
|
|
35
|
-
description: 'Reminder has been updated',
|
|
36
|
-
});
|
|
37
|
-
return json;
|
|
38
|
-
} catch (err) {
|
|
39
|
-
// console.error('Error:', err);
|
|
40
|
-
notification.error({
|
|
41
|
-
message: 'Error',
|
|
42
|
-
description:
|
|
43
|
-
`${err}` || 'An error has occurred. Please try again later.',
|
|
44
|
-
});
|
|
45
|
-
} finally {
|
|
46
|
-
setLoading(false);
|
|
47
|
-
}
|
|
48
|
-
setLoading(false);
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
return update;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export default useUpdateReminder;
|
package/src/components/order-view/order-details/expanded-content/orders-section/ValueField.tsx
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Input, Label } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
function ValueField() {
|
|
6
|
-
return (
|
|
7
|
-
<Container>
|
|
8
|
-
<Label label="Value (£)" htmlFor="value" />
|
|
9
|
-
<CustomInput name="value" type="number" placeholder="0.00" />
|
|
10
|
-
</Container>
|
|
11
|
-
);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
const CustomInput = styled(Input)`
|
|
15
|
-
&::-webkit-outer-spin-button,
|
|
16
|
-
&::-webkit-inner-spin-button {
|
|
17
|
-
-webkit-appearance: none;
|
|
18
|
-
margin: 0;
|
|
19
|
-
}
|
|
20
|
-
&:focus-visible {
|
|
21
|
-
outline: none;
|
|
22
|
-
}
|
|
23
|
-
border-radius: 6px;
|
|
24
|
-
border: 1px solid #e95252;
|
|
25
|
-
background: rgba(233, 82, 82, 0.33);
|
|
26
|
-
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
const Container = styled.div`
|
|
30
|
-
display: flex;
|
|
31
|
-
flex-direction: column;
|
|
32
|
-
gap: 6px;
|
|
33
|
-
flex: 1;
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
export default ValueField;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
function Id(props: any) {
|
|
5
|
-
const data = props?.row?.original;
|
|
6
|
-
return (
|
|
7
|
-
<RowContainer>
|
|
8
|
-
<Row>{data}</Row>
|
|
9
|
-
</RowContainer>
|
|
10
|
-
);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
const RowContainer = styled.div``;
|
|
14
|
-
|
|
15
|
-
const Row = styled.div``;
|
|
16
|
-
|
|
17
|
-
export default Id;
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// import React from 'react';
|
|
2
|
-
// import styled from 'styled-components';
|
|
3
|
-
// // import { useProductDetails } from '../../store';
|
|
4
|
-
// import Product from './products';
|
|
5
|
-
// import { useProductDetails } from '../../store';
|
|
6
|
-
|
|
7
|
-
// function ProductList() {
|
|
8
|
-
// const [productdata] = useProductDetails();
|
|
9
|
-
|
|
10
|
-
// return (
|
|
11
|
-
// <Container>
|
|
12
|
-
// {productdata?.map((products: any) => (
|
|
13
|
-
// <Product productId={products?.id} status={products?.status} />
|
|
14
|
-
// ))}
|
|
15
|
-
// </Container>
|
|
16
|
-
// );
|
|
17
|
-
// }
|
|
18
|
-
|
|
19
|
-
// const Container = styled.div`
|
|
20
|
-
// display: flex;
|
|
21
|
-
// flex-direction: column;
|
|
22
|
-
// gap: 10px;
|
|
23
|
-
// @media only screen and (max-width: 1500px) {
|
|
24
|
-
// overflow: auto;
|
|
25
|
-
// }
|
|
26
|
-
// `;
|
|
27
|
-
|
|
28
|
-
// export default ProductList;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
|
|
4
|
-
interface BadgeProps {
|
|
5
|
-
text: any;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function Badge(props: BadgeProps) {
|
|
9
|
-
return (
|
|
10
|
-
<Container>
|
|
11
|
-
<Text>{props.text}</Text>
|
|
12
|
-
</Container>
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const Text = styled.span`
|
|
17
|
-
font-family: 'Lato', sans-serif;
|
|
18
|
-
font-size: 13px;
|
|
19
|
-
font-weight: 400;
|
|
20
|
-
line-height: 16px;
|
|
21
|
-
color: #3a3630;
|
|
22
|
-
text-align: center;
|
|
23
|
-
`;
|
|
24
|
-
|
|
25
|
-
const Container = styled.div`
|
|
26
|
-
padding: 5px;
|
|
27
|
-
border-radius: 66px;
|
|
28
|
-
border: 1px solid #6a7378;
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
white-space: nowrap;
|
|
32
|
-
`;
|
|
33
|
-
|
|
34
|
-
export default Badge;
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import React, { useState } from 'react';
|
|
3
|
-
import {
|
|
4
|
-
Button,
|
|
5
|
-
displayValueOrNA,
|
|
6
|
-
} from '@bjsdistribution/dms-component-library';
|
|
7
|
-
import {
|
|
8
|
-
CopyIcon,
|
|
9
|
-
DefectsIcon,
|
|
10
|
-
QcIcon,
|
|
11
|
-
RepackLogsIcon,
|
|
12
|
-
UpArrowCircleOutlineIcon,
|
|
13
|
-
} from '../../../../../assets/icons';
|
|
14
|
-
import Badge from './Badge';
|
|
15
|
-
import {
|
|
16
|
-
countReducerAtom,
|
|
17
|
-
letselectedProductIdAtom,
|
|
18
|
-
useAtom,
|
|
19
|
-
useProductDetails,
|
|
20
|
-
} from '../../../store';
|
|
21
|
-
import { getProductStatusColor } from '../../utils';
|
|
22
|
-
import { productStatus } from '../../types';
|
|
23
|
-
// import { fakedata } from '../../../fakedata';
|
|
24
|
-
import Tippy from '@tippyjs/react';
|
|
25
|
-
import HeavyItemIcon from '../../../../../assets/icons/HeavyItemIcon';
|
|
26
|
-
import LargeItemIcon from '../../../../../assets/icons/LargeItemIcon';
|
|
27
|
-
interface IProps {
|
|
28
|
-
status: any;
|
|
29
|
-
productId: number;
|
|
30
|
-
}
|
|
31
|
-
function Product({ status, productId }: IProps) {
|
|
32
|
-
const [isExpanded, setIsExpanded] = useState<boolean>(false);
|
|
33
|
-
const [, dispatch] = useAtom(countReducerAtom);
|
|
34
|
-
const [multiProduct] = useProductDetails();
|
|
35
|
-
const productdata = multiProduct?.find((item: any) => item.id === productId);
|
|
36
|
-
const [, setSelectedProductId] = useAtom(letselectedProductIdAtom);
|
|
37
|
-
if (!productdata) {
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
const handleActionClick = () => {
|
|
42
|
-
setSelectedProductId(productId);
|
|
43
|
-
dispatch({ type: 'qclog', payload: productId });
|
|
44
|
-
console.log(productId, 'Selected Product ID');
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
let IconDefect = <DefectsIcon />;
|
|
48
|
-
let IconRepack = <RepackLogsIcon />;
|
|
49
|
-
let IconQCLogs = <QcIcon />;
|
|
50
|
-
let IconHeavy = <HeavyItemIcon />;
|
|
51
|
-
let IconBulky = <LargeItemIcon />;
|
|
52
|
-
|
|
53
|
-
return (
|
|
54
|
-
<Container>
|
|
55
|
-
<Content>
|
|
56
|
-
<Left>
|
|
57
|
-
<StatusAndSkuContainer status={status}>
|
|
58
|
-
<Wrapper>
|
|
59
|
-
<Status>{status}</Status>
|
|
60
|
-
<Tippy content={productdata?.sku}>
|
|
61
|
-
<span>
|
|
62
|
-
<Sku title={productdata?.sku}>{productdata?.sku}</Sku>
|
|
63
|
-
</span>
|
|
64
|
-
</Tippy>
|
|
65
|
-
</Wrapper>
|
|
66
|
-
<CopyIcon />
|
|
67
|
-
</StatusAndSkuContainer>
|
|
68
|
-
<TypeContainer>
|
|
69
|
-
<Type>{productdata?.order_product_type?.type}</Type>
|
|
70
|
-
<Badge text={productdata?.code} />
|
|
71
|
-
</TypeContainer>
|
|
72
|
-
<DimensionsContainer>
|
|
73
|
-
<Tippy content={productdata?.description}>
|
|
74
|
-
<span>
|
|
75
|
-
<Badge text={`${productdata?.description}`} />
|
|
76
|
-
</span>
|
|
77
|
-
</Tippy>
|
|
78
|
-
<Badge text={`${productdata?.weight}KG`} />
|
|
79
|
-
<Badge text={`Cube: ${productdata?.cube}m³`} />
|
|
80
|
-
</DimensionsContainer>
|
|
81
|
-
|
|
82
|
-
<DateContainer>
|
|
83
|
-
<DateWrapper>
|
|
84
|
-
<DateField>Released</DateField>
|
|
85
|
-
<DateValue>
|
|
86
|
-
{displayValueOrNA(
|
|
87
|
-
productdata?.orders_products_stock?.release_date
|
|
88
|
-
)}
|
|
89
|
-
</DateValue>
|
|
90
|
-
</DateWrapper>
|
|
91
|
-
<DateWrapper>
|
|
92
|
-
<DateField>Expected</DateField>
|
|
93
|
-
<DateValue>
|
|
94
|
-
{displayValueOrNA(
|
|
95
|
-
productdata?.orders_products_stock?.expected_date
|
|
96
|
-
)}
|
|
97
|
-
</DateValue>
|
|
98
|
-
</DateWrapper>
|
|
99
|
-
</DateContainer>
|
|
100
|
-
</Left>
|
|
101
|
-
<Right>
|
|
102
|
-
<ActionsIconContainer>
|
|
103
|
-
{productdata?.heavy_item && (
|
|
104
|
-
<Tippy
|
|
105
|
-
content={<TooltipContent>Heavy Item</TooltipContent>}
|
|
106
|
-
placement="top"
|
|
107
|
-
arrow={true}
|
|
108
|
-
>
|
|
109
|
-
<Icon>{IconHeavy}</Icon>
|
|
110
|
-
</Tippy>
|
|
111
|
-
)}
|
|
112
|
-
</ActionsIconContainer>
|
|
113
|
-
<ActionsIconContainer>
|
|
114
|
-
{productdata?.bulky_item && (
|
|
115
|
-
<Tippy
|
|
116
|
-
content={<TooltipContent>Large Item</TooltipContent>}
|
|
117
|
-
placement="top"
|
|
118
|
-
arrow={true}
|
|
119
|
-
>
|
|
120
|
-
<Icon>{IconBulky}</Icon>
|
|
121
|
-
</Tippy>
|
|
122
|
-
)}
|
|
123
|
-
</ActionsIconContainer>
|
|
124
|
-
<ActionsIconContainer
|
|
125
|
-
onClick={() => dispatch({ type: 'defectsModal' })}
|
|
126
|
-
>
|
|
127
|
-
<Tippy
|
|
128
|
-
content={<TooltipContent>{'Defects'}</TooltipContent>}
|
|
129
|
-
placement="bottom"
|
|
130
|
-
arrow={true}
|
|
131
|
-
>
|
|
132
|
-
<Icon>{IconDefect}</Icon>
|
|
133
|
-
</Tippy>
|
|
134
|
-
</ActionsIconContainer>
|
|
135
|
-
<ActionsIconContainer
|
|
136
|
-
onClick={() => dispatch({ type: 'repackModal' })}
|
|
137
|
-
>
|
|
138
|
-
<Tippy
|
|
139
|
-
content={<TooltipContent>{'Repack'}</TooltipContent>}
|
|
140
|
-
placement="bottom"
|
|
141
|
-
arrow={true}
|
|
142
|
-
>
|
|
143
|
-
<Icon>{IconRepack}</Icon>
|
|
144
|
-
</Tippy>
|
|
145
|
-
</ActionsIconContainer>
|
|
146
|
-
<ActionsIconContainer
|
|
147
|
-
onClick={() => dispatch({ type: 'qclogtable' })}
|
|
148
|
-
>
|
|
149
|
-
<Tippy
|
|
150
|
-
content={<TooltipContent>{'QC logs'}</TooltipContent>}
|
|
151
|
-
placement="bottom"
|
|
152
|
-
arrow={true}
|
|
153
|
-
>
|
|
154
|
-
<Icon>{IconQCLogs}</Icon>
|
|
155
|
-
</Tippy>
|
|
156
|
-
</ActionsIconContainer>
|
|
157
|
-
<Button colors="secondary" onClick={handleActionClick}>
|
|
158
|
-
ACTION
|
|
159
|
-
</Button>
|
|
160
|
-
<IconContainer
|
|
161
|
-
onClick={() => setIsExpanded(prev => !prev)}
|
|
162
|
-
isExpanded={isExpanded}
|
|
163
|
-
>
|
|
164
|
-
<ChevronUpIcon />
|
|
165
|
-
</IconContainer>
|
|
166
|
-
</Right>
|
|
167
|
-
</Content>
|
|
168
|
-
</Container>
|
|
169
|
-
);
|
|
170
|
-
}
|
|
171
|
-
const Icon = styled.div``;
|
|
172
|
-
|
|
173
|
-
const TooltipContent = styled.div`
|
|
174
|
-
background-color: #333;
|
|
175
|
-
color: #fff;
|
|
176
|
-
padding: 5px 10px;
|
|
177
|
-
border-radius: 5px;
|
|
178
|
-
`;
|
|
179
|
-
|
|
180
|
-
const ChevronUpIcon = styled(UpArrowCircleOutlineIcon)`
|
|
181
|
-
transform: rotate(180deg);
|
|
182
|
-
cursor: pointer;
|
|
183
|
-
`;
|
|
184
|
-
const ActionsIconContainer = styled.div`
|
|
185
|
-
display: flex;
|
|
186
|
-
align-items: center;
|
|
187
|
-
justify-content: center;
|
|
188
|
-
cursor: pointer;
|
|
189
|
-
`;
|
|
190
|
-
const DateValue = styled.span`
|
|
191
|
-
font-family: 'Lato', sans-serif;
|
|
192
|
-
font-size: 13px;
|
|
193
|
-
font-weight: 500;
|
|
194
|
-
color: #aea9a1;
|
|
195
|
-
white-space: nowrap;
|
|
196
|
-
`;
|
|
197
|
-
const DateField = styled.span`
|
|
198
|
-
font-family: 'Lato', sans-serif;
|
|
199
|
-
font-size: 13px;
|
|
200
|
-
font-weight: 600;
|
|
201
|
-
line-height: 1.2;
|
|
202
|
-
color: #3a3630;
|
|
203
|
-
`;
|
|
204
|
-
const DateWrapper = styled.div`
|
|
205
|
-
display: flex;
|
|
206
|
-
gap: 5px;
|
|
207
|
-
`;
|
|
208
|
-
const DateContainer = styled.div`
|
|
209
|
-
padding: 8px;
|
|
210
|
-
`;
|
|
211
|
-
|
|
212
|
-
const DimensionsContainer = styled.div`
|
|
213
|
-
display: flex;
|
|
214
|
-
gap: 10px;
|
|
215
|
-
align-items: center;
|
|
216
|
-
padding: 8px;
|
|
217
|
-
`;
|
|
218
|
-
const Type = styled.span`
|
|
219
|
-
font-family: 'Roboto', sans-serif;
|
|
220
|
-
font-size: 16px;
|
|
221
|
-
font-weight: 500;
|
|
222
|
-
line-height: 1.5;
|
|
223
|
-
color: #3a3630;
|
|
224
|
-
text-transform: uppercase;
|
|
225
|
-
`;
|
|
226
|
-
const TypeContainer = styled.div`
|
|
227
|
-
display: flex;
|
|
228
|
-
flex-direction: column;
|
|
229
|
-
align-items: center;
|
|
230
|
-
padding: 8px;
|
|
231
|
-
border-right: 1px solid #e2e0db;
|
|
232
|
-
`;
|
|
233
|
-
const Sku = styled.span`
|
|
234
|
-
color: #3a3630;
|
|
235
|
-
font-family: 'Lato', sans-serif;
|
|
236
|
-
font-size: 13px;
|
|
237
|
-
font-style: normal;
|
|
238
|
-
font-weight: 600;
|
|
239
|
-
width: 100px;
|
|
240
|
-
text-overflow: ellipsis;
|
|
241
|
-
white-space: nowrap;
|
|
242
|
-
overflow: hidden;
|
|
243
|
-
`;
|
|
244
|
-
const Status = styled.span`
|
|
245
|
-
font-family: 'Roboto', sans-serif;
|
|
246
|
-
font-size: 14px;
|
|
247
|
-
font-weight: 600;
|
|
248
|
-
text-transform: capitalize;
|
|
249
|
-
`;
|
|
250
|
-
const Wrapper = styled.div`
|
|
251
|
-
display: flex;
|
|
252
|
-
gap: 5px;
|
|
253
|
-
flex-direction: column;
|
|
254
|
-
`;
|
|
255
|
-
|
|
256
|
-
const StatusAndSkuContainer = styled.div<{ status: productStatus }>`
|
|
257
|
-
display: flex;
|
|
258
|
-
gap: 10px;
|
|
259
|
-
align-items: flex-end;
|
|
260
|
-
background: ${props => getProductStatusColor(props.status)};
|
|
261
|
-
border-radius: 18px 0 0 18px;
|
|
262
|
-
padding: 15px 10px;
|
|
263
|
-
min-width: 15%;
|
|
264
|
-
`;
|
|
265
|
-
|
|
266
|
-
const IconContainer = styled.div<{ isExpanded: boolean }>`
|
|
267
|
-
width: 34px;
|
|
268
|
-
padding-right: 10px;
|
|
269
|
-
svg {
|
|
270
|
-
transform: rotate(${props => (props.isExpanded ? '360deg' : '180deg')});
|
|
271
|
-
}
|
|
272
|
-
`;
|
|
273
|
-
const Right = styled.div`
|
|
274
|
-
display: flex;
|
|
275
|
-
align-items: center;
|
|
276
|
-
gap: 10px;
|
|
277
|
-
`;
|
|
278
|
-
const Left = styled.div`
|
|
279
|
-
display: flex;
|
|
280
|
-
align-items: center;
|
|
281
|
-
`;
|
|
282
|
-
|
|
283
|
-
const Content = styled.div`
|
|
284
|
-
display: flex;
|
|
285
|
-
align-items: center;
|
|
286
|
-
justify-content: space-between;
|
|
287
|
-
width: 100%;
|
|
288
|
-
border-radius: 18px;
|
|
289
|
-
border-top: 1px solid #edebe8;
|
|
290
|
-
border-bottom: 1px solid #edebe8;
|
|
291
|
-
`;
|
|
292
|
-
const Container = styled.div`
|
|
293
|
-
display: flex;
|
|
294
|
-
background: linear-gradient(
|
|
295
|
-
to bottom,
|
|
296
|
-
rgba(255, 255, 255, 0.9),
|
|
297
|
-
rgba(255, 255, 255, 0.5)
|
|
298
|
-
);
|
|
299
|
-
flex-direction: column;
|
|
300
|
-
gap: 14px;
|
|
301
|
-
border-radius: 18px;
|
|
302
|
-
box-shadow: 0 4px 30px 0 rgba(46, 45, 116, 0.05);
|
|
303
|
-
`;
|
|
304
|
-
|
|
305
|
-
export default Product;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type productStatus = 'received' | 'expected' | 'deleted' | 'pending'
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { productStatus } from './types';
|
|
2
|
-
|
|
3
|
-
export const getProductStatusColor = (input: productStatus): string => {
|
|
4
|
-
switch (input) {
|
|
5
|
-
case 'received':
|
|
6
|
-
return '#30BA2E';
|
|
7
|
-
case 'expected':
|
|
8
|
-
return '#feba30';
|
|
9
|
-
case 'pending':
|
|
10
|
-
return '#AEA9A1';
|
|
11
|
-
case 'deleted':
|
|
12
|
-
return '#FF555F';
|
|
13
|
-
}
|
|
14
|
-
};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { Button } from '@bjsdistribution/dms-component-library';
|
|
4
|
-
import NewReturnDropdown from '../../notes/order-dropdown/NewReturnDropdown';
|
|
5
|
-
// import { notification } from 'antd';
|
|
6
|
-
|
|
7
|
-
function OrderDetailsFooter() {
|
|
8
|
-
const onSave = () => {
|
|
9
|
-
// alert('saved');
|
|
10
|
-
// notification.success({
|
|
11
|
-
// message: 'Success',
|
|
12
|
-
// description: ' Saved successfully.',
|
|
13
|
-
// });
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
return (
|
|
17
|
-
<Container>
|
|
18
|
-
{/* <AllowTracking /> */}
|
|
19
|
-
<Button onClick={onSave}>Save Details</Button>
|
|
20
|
-
<NewReturnDropdown />
|
|
21
|
-
</Container>
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const Container = styled.div`
|
|
26
|
-
display: flex;
|
|
27
|
-
justify-content: space-between;
|
|
28
|
-
padding: 10px 15px;
|
|
29
|
-
align-items: flex-start;
|
|
30
|
-
border-top: 1px solid #edebe8;
|
|
31
|
-
background: #f8fafc;
|
|
32
|
-
margin: 0px -15px -15px -15px;
|
|
33
|
-
border-radius: 0px 0px 8px 8px;
|
|
34
|
-
margin-bottom: 22px;
|
|
35
|
-
`;
|
|
36
|
-
|
|
37
|
-
export default OrderDetailsFooter;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
// import styled from 'styled-components';
|
|
4
|
-
|
|
5
|
-
function CollapsedContent() {
|
|
6
|
-
return <Font>TOOLBOX RESOURCES</Font>;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
const Font = styled.div`
|
|
10
|
-
font-family: 'Roboto', sans-serif;
|
|
11
|
-
font-size: 16px;
|
|
12
|
-
font-style: normal;
|
|
13
|
-
font-weight: 500;
|
|
14
|
-
line-height: 24px; /* 150% */
|
|
15
|
-
`;
|
|
16
|
-
export default CollapsedContent;
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import CollapsedContent from '../collapsed-content';
|
|
3
|
-
import styled from 'styled-components';
|
|
4
|
-
import CollapsableForm from '../../../../common/expand-collapse';
|
|
5
|
-
import { useOrderProductsToolbox } from '../../store';
|
|
6
|
-
|
|
7
|
-
function Toolbox() {
|
|
8
|
-
const [orderToolbox] = useOrderProductsToolbox();
|
|
9
|
-
|
|
10
|
-
const htmlContent =
|
|
11
|
-
orderToolbox?.data && orderToolbox?.data?.length > 0
|
|
12
|
-
? orderToolbox?.data[0]?.html
|
|
13
|
-
: '';
|
|
14
|
-
|
|
15
|
-
return (
|
|
16
|
-
<StyledTable>
|
|
17
|
-
<CollapsableForm collapsedContent={<CollapsedContent />}>
|
|
18
|
-
<div style={{ overflow: 'auto' }}></div>
|
|
19
|
-
<div
|
|
20
|
-
className="tableStyle"
|
|
21
|
-
dangerouslySetInnerHTML={{ __html: htmlContent }}
|
|
22
|
-
></div>
|
|
23
|
-
</CollapsableForm>
|
|
24
|
-
</StyledTable>
|
|
25
|
-
);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const StyledTable = styled.table`
|
|
29
|
-
width: 100%;
|
|
30
|
-
border: none;
|
|
31
|
-
|
|
32
|
-
.tableStyle {
|
|
33
|
-
border-spacing: 0;
|
|
34
|
-
width: 100%;
|
|
35
|
-
table {
|
|
36
|
-
border-spacing: 0;
|
|
37
|
-
border: none !important;
|
|
38
|
-
max-height: 400px !important;
|
|
39
|
-
min-height: 100px !important;
|
|
40
|
-
thead {
|
|
41
|
-
background: #f8f8f8 !important;
|
|
42
|
-
tr {
|
|
43
|
-
border-spacing: 0;
|
|
44
|
-
border-bottom: 1px solid rgb(215, 214, 213);
|
|
45
|
-
th {
|
|
46
|
-
padding: 10px;
|
|
47
|
-
font-family: Roboto, sans-serif;
|
|
48
|
-
font-size: 14px;
|
|
49
|
-
font-weight: 500;
|
|
50
|
-
line-height: 24px;
|
|
51
|
-
letter-spacing: 0px;
|
|
52
|
-
/* min-width: 130px; */
|
|
53
|
-
&:first-child {
|
|
54
|
-
border-radius: 10px 0px 0px 0px;
|
|
55
|
-
}
|
|
56
|
-
&:last-child {
|
|
57
|
-
border-radius: 0px 10px 0px 0px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
tbody {
|
|
63
|
-
tr {
|
|
64
|
-
td {
|
|
65
|
-
color: #3a3630;
|
|
66
|
-
font-size: 13px;
|
|
67
|
-
font-style: normal;
|
|
68
|
-
font-weight: 400;
|
|
69
|
-
line-height: normal;
|
|
70
|
-
padding: 10px 5px;
|
|
71
|
-
background: #fff;
|
|
72
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
|
73
|
-
border-right: none;
|
|
74
|
-
border-left: none;
|
|
75
|
-
word-wrap: break-word;
|
|
76
|
-
max-width: 200px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
`;
|
|
83
|
-
|
|
84
|
-
export default Toolbox;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Label, AntSelect } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import { notification } from 'antd';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import styled from 'styled-components';
|
|
5
|
-
|
|
6
|
-
function AssigneeDropdown() {
|
|
7
|
-
const handleSelectChange = () => {
|
|
8
|
-
// alert('hello');
|
|
9
|
-
notification.success({
|
|
10
|
-
message: 'Success',
|
|
11
|
-
description: 'Order has been saved successfully.',
|
|
12
|
-
});
|
|
13
|
-
};
|
|
14
|
-
return (
|
|
15
|
-
<FormContainer>
|
|
16
|
-
<Label label="Assigned To" required htmlFor="assigneDropdown" />
|
|
17
|
-
<StyledAntSelect
|
|
18
|
-
options={[]}
|
|
19
|
-
onChange={handleSelectChange}
|
|
20
|
-
selectWrapperClass={'rounded'}
|
|
21
|
-
style={{ display: 'flex' }}
|
|
22
|
-
/>
|
|
23
|
-
</FormContainer>
|
|
24
|
-
);
|
|
25
|
-
}
|
|
26
|
-
const FormContainer = styled.div`
|
|
27
|
-
display: flex;
|
|
28
|
-
flex-direction: column;
|
|
29
|
-
gap: 6px;
|
|
30
|
-
flex: 1;
|
|
31
|
-
width: 285px;
|
|
32
|
-
`;
|
|
33
|
-
const StyledAntSelect = styled(AntSelect)``;
|
|
34
|
-
export default AssigneeDropdown;
|