@bjsdistribution/dms-client-return 0.0.83 → 0.0.84
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-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 +1 -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 +2644 -2227
- 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 +3062 -2645
- 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 +23 -1
- 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/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/remove-from-route/RemoveFromRoute.tsx +91 -0
- 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/orders-section/Carrier.tsx +29 -10
- 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 +5 -10
- 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,100 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import styled from 'styled-components';
|
|
3
|
-
import { optionsPrint } from './fakedata';
|
|
4
|
-
import { PrintData } from '../shared/interface';
|
|
5
|
-
|
|
6
|
-
const options: PrintData[] = optionsPrint;
|
|
7
|
-
interface IProps {
|
|
8
|
-
gsitOrderId: number;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
const PrintDropDown = (props: IProps) => {
|
|
12
|
-
const getUrl = (option: string) => {
|
|
13
|
-
const val = option?.toLowerCase()?.replaceAll(' ', '');
|
|
14
|
-
if (val === 'proofofdelivery') {
|
|
15
|
-
return '';
|
|
16
|
-
}
|
|
17
|
-
if (val === 'proofofdelivery(doc)') {
|
|
18
|
-
return '';
|
|
19
|
-
}
|
|
20
|
-
if (val === 'orderdeliverylabels') {
|
|
21
|
-
return `https://staging.toolbox.bjshomedelivery.com/api/v1/gsit/generate_labels?pdf=true&product_type=Deliver&order_id=${props?.gsitOrderId}`;
|
|
22
|
-
}
|
|
23
|
-
if (val === 'ordercollectionlabels') {
|
|
24
|
-
return `https://staging.toolbox.bjshomedelivery.com/api/v1/gsit/generate_labels?pdf=true&product_type=Collect&order_id=${props?.gsitOrderId}`;
|
|
25
|
-
}
|
|
26
|
-
if (val === 'orderreturnlabels') {
|
|
27
|
-
return `https://staging.toolbox.bjshomedelivery.com/api/v1/gsit/generate_labels?pdf=true&product_type=Return&order_id=${props?.gsitOrderId}`;
|
|
28
|
-
}
|
|
29
|
-
if (val === 'returnscovernote') {
|
|
30
|
-
return '';
|
|
31
|
-
} else {
|
|
32
|
-
return '';
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<OptionsList>
|
|
38
|
-
{options.map((item, index) => {
|
|
39
|
-
return (
|
|
40
|
-
<OptionsListItems key={index}>
|
|
41
|
-
<a
|
|
42
|
-
href={getUrl(item?.label)}
|
|
43
|
-
target="_blank"
|
|
44
|
-
id={item?.label?.toLowerCase()?.replaceAll(' ', '_')}
|
|
45
|
-
download
|
|
46
|
-
>
|
|
47
|
-
{item?.label}
|
|
48
|
-
</a>
|
|
49
|
-
</OptionsListItems>
|
|
50
|
-
);
|
|
51
|
-
})}
|
|
52
|
-
</OptionsList>
|
|
53
|
-
);
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
export default PrintDropDown;
|
|
57
|
-
|
|
58
|
-
export const OptionsList = styled.ul`
|
|
59
|
-
margin: 0;
|
|
60
|
-
padding: 0;
|
|
61
|
-
list-style: none;
|
|
62
|
-
box-sizing: border-box;
|
|
63
|
-
border-radius: 6px;
|
|
64
|
-
border: 1px solid rgba(224, 226, 231, 0.5);
|
|
65
|
-
background: #fff;
|
|
66
|
-
width: 177px;
|
|
67
|
-
padding: 5px 1px 3px 1px;
|
|
68
|
-
position: absolute;
|
|
69
|
-
top: 29px;
|
|
70
|
-
right: 0;
|
|
71
|
-
z-index: 99;
|
|
72
|
-
min-width: 194px;
|
|
73
|
-
`;
|
|
74
|
-
|
|
75
|
-
export const OptionsListItems = styled.li`
|
|
76
|
-
border-bottom: 1px solid #f0f2f2;
|
|
77
|
-
padding: 12px 10px;
|
|
78
|
-
display: flex;
|
|
79
|
-
gap: 12px;
|
|
80
|
-
align-items: center;
|
|
81
|
-
font-size: 13px;
|
|
82
|
-
cursor: pointer;
|
|
83
|
-
|
|
84
|
-
a {
|
|
85
|
-
text-decoration: none;
|
|
86
|
-
color: #8d8f90;
|
|
87
|
-
font-family: 'Lato', sans-serif;
|
|
88
|
-
font-size: 13px;
|
|
89
|
-
font-style: normal;
|
|
90
|
-
font-weight: 400;
|
|
91
|
-
|
|
92
|
-
&:hover {
|
|
93
|
-
color: #3a3630;
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
&:last-child {
|
|
98
|
-
border: none;
|
|
99
|
-
}
|
|
100
|
-
`;
|
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
// Styled components
|
|
4
|
-
export const TableWrapper = styled.div`
|
|
5
|
-
overflow-x: auto;
|
|
6
|
-
|
|
7
|
-
margin-top: 10px;
|
|
8
|
-
`;
|
|
9
|
-
|
|
10
|
-
export const Table = styled.table`
|
|
11
|
-
width: 100%;
|
|
12
|
-
border-collapse: separate;
|
|
13
|
-
border-spacing: 0 12px;
|
|
14
|
-
|
|
15
|
-
thead tr {
|
|
16
|
-
border-radius: 40px;
|
|
17
|
-
|
|
18
|
-
th:first-child {
|
|
19
|
-
border-radius: 100px 0 0 100px;
|
|
20
|
-
border-left: 1px solid rgba(0, 0, 0, 0.08);
|
|
21
|
-
}
|
|
22
|
-
th:last-child {
|
|
23
|
-
border-radius: 0px 100px 100px 0;
|
|
24
|
-
border-right: 1px solid rgba(0, 0, 0, 0.08);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
tbody tr {
|
|
29
|
-
border-radius: 40px;
|
|
30
|
-
&.completed td {
|
|
31
|
-
background: rgba(87, 219, 122, 0.2) !important;
|
|
32
|
-
}
|
|
33
|
-
td:first-child {
|
|
34
|
-
border-radius: 100px 0 0 100px;
|
|
35
|
-
border-left: 1px solid rgba(0, 0, 0, 0.08);
|
|
36
|
-
}
|
|
37
|
-
td:last-child {
|
|
38
|
-
border-radius: 0px 100px 100px 0;
|
|
39
|
-
border-right: 1px solid rgba(0, 0, 0, 0.08);
|
|
40
|
-
}
|
|
41
|
-
&:nth-child(even) td {
|
|
42
|
-
background: #f6fbff;
|
|
43
|
-
}
|
|
44
|
-
td {
|
|
45
|
-
.red path {
|
|
46
|
-
fill: #e95252;
|
|
47
|
-
}
|
|
48
|
-
.green path {
|
|
49
|
-
fill: #29cc6a;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
`;
|
|
54
|
-
|
|
55
|
-
export const Th = styled.th`
|
|
56
|
-
color: #3a3630;
|
|
57
|
-
font-size: 14px;
|
|
58
|
-
font-style: normal;
|
|
59
|
-
font-weight: 600;
|
|
60
|
-
line-height: normal;
|
|
61
|
-
padding: 6px 15px;
|
|
62
|
-
background: #f0f2f2;
|
|
63
|
-
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
64
|
-
border-right: none;
|
|
65
|
-
border-left: none;
|
|
66
|
-
text-align: left;
|
|
67
|
-
`;
|
|
68
|
-
|
|
69
|
-
export const Td = styled.td`
|
|
70
|
-
color: #3a3630;
|
|
71
|
-
font-size: 14px;
|
|
72
|
-
font-style: normal;
|
|
73
|
-
font-weight: 400;
|
|
74
|
-
line-height: normal;
|
|
75
|
-
padding: 6px 15px;
|
|
76
|
-
background: #fff;
|
|
77
|
-
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
78
|
-
border-right: none;
|
|
79
|
-
border-left: none;
|
|
80
|
-
`;
|
|
81
|
-
|
|
82
|
-
export const Flex = styled.div`
|
|
83
|
-
display: flex;
|
|
84
|
-
gap: 8px;
|
|
85
|
-
align-items: center;
|
|
86
|
-
em {
|
|
87
|
-
padding-left: 8px;
|
|
88
|
-
border-left: 2px dotted #758588;
|
|
89
|
-
font-style: normal;
|
|
90
|
-
}
|
|
91
|
-
span {
|
|
92
|
-
display: block;
|
|
93
|
-
line-height: 1;
|
|
94
|
-
&:first-child {
|
|
95
|
-
margin-bottom: 5px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
`;
|
|
99
|
-
export const RoundedBorder = styled.div`
|
|
100
|
-
border-radius: 30px;
|
|
101
|
-
border: 1px solid #edefef;
|
|
102
|
-
background: #f6fbff;
|
|
103
|
-
width: 24px;
|
|
104
|
-
height: 24px;
|
|
105
|
-
display: flex;
|
|
106
|
-
align-items: center;
|
|
107
|
-
justify-content: center;
|
|
108
|
-
`;
|
|
109
|
-
|
|
110
|
-
export const RouteName = styled.div`
|
|
111
|
-
font-weight: 600;
|
|
112
|
-
color: #09f;
|
|
113
|
-
margin-bottom: 6px;
|
|
114
|
-
`;
|
|
115
|
-
|
|
116
|
-
export const FlexGap4 = styled.div`
|
|
117
|
-
display: flex;
|
|
118
|
-
gap: 4px;
|
|
119
|
-
align-items: center;
|
|
120
|
-
`;
|
|
121
|
-
|
|
122
|
-
export const TomtomName = styled.div`
|
|
123
|
-
color: #29cc6a;
|
|
124
|
-
font-size: 14px;
|
|
125
|
-
font-weight: 600;
|
|
126
|
-
line-height: 24px;
|
|
127
|
-
`;
|
|
128
|
-
export const LineBreak = styled.div``;
|
|
129
|
-
export const Weight = styled.div`
|
|
130
|
-
font-size: 10px;
|
|
131
|
-
font-style: normal;
|
|
132
|
-
font-weight: 700;
|
|
133
|
-
line-height: 16px;
|
|
134
|
-
`;
|
|
135
|
-
|
|
136
|
-
export const IconCover = styled.div`
|
|
137
|
-
display: flex;
|
|
138
|
-
align-items: center;
|
|
139
|
-
gap: 8px;
|
|
140
|
-
span {
|
|
141
|
-
margin-top: 4px;
|
|
142
|
-
}
|
|
143
|
-
`;
|
|
144
|
-
|
|
145
|
-
export const TomtomCover = styled.div`
|
|
146
|
-
transform: scale(0.5);
|
|
147
|
-
`;
|
|
148
|
-
|
|
149
|
-
export const CustomDrop = styled.div`
|
|
150
|
-
border-radius: 20px;
|
|
151
|
-
border: 1px solid #e2e0db;
|
|
152
|
-
background: #fff;
|
|
153
|
-
display: flex;
|
|
154
|
-
padding: 4px 8px;
|
|
155
|
-
gap: 8px;
|
|
156
|
-
align-items: center;
|
|
157
|
-
cursor: pointer;
|
|
158
|
-
&.active .drop {
|
|
159
|
-
transform: rotate(180deg);
|
|
160
|
-
}
|
|
161
|
-
`;
|
|
162
|
-
|
|
163
|
-
export const CoverCustomDrop = styled.div`
|
|
164
|
-
position: relative;
|
|
165
|
-
`;
|
|
166
|
-
|
|
167
|
-
export const IconCoverData = styled.div`
|
|
168
|
-
display: flex;
|
|
169
|
-
gap: 8px;
|
|
170
|
-
align-items: center;
|
|
171
|
-
svg {
|
|
172
|
-
cursor: pointer;
|
|
173
|
-
}
|
|
174
|
-
`;
|
|
175
|
-
|
|
176
|
-
//Route Details Style
|
|
177
|
-
export const AuditTableWrapper = styled.div`
|
|
178
|
-
overflow-x: auto;
|
|
179
|
-
`;
|
|
180
|
-
|
|
181
|
-
export const RowHeading = styled.div`
|
|
182
|
-
font-family: 'lato', sans-serif;
|
|
183
|
-
font-size: 15px;
|
|
184
|
-
font-style: normal;
|
|
185
|
-
font-weight: 500;
|
|
186
|
-
`;
|
|
187
|
-
|
|
188
|
-
export const Heading = styled.div`
|
|
189
|
-
color: var(--Neutral-Gray-Gray-500, #667085);
|
|
190
|
-
font-family: 'lato', sans-serif;
|
|
191
|
-
font-size: 13px;
|
|
192
|
-
font-style: normal;
|
|
193
|
-
font-weight: 700;
|
|
194
|
-
`;
|
|
195
|
-
|
|
196
|
-
export const SubHeading = styled.span`
|
|
197
|
-
color: var(--Neutral-Gray-Gray-500, #667085);
|
|
198
|
-
font-family: 'lato', sans-serif;
|
|
199
|
-
font-size: 13px;
|
|
200
|
-
font-style: normal;
|
|
201
|
-
font-weight: 400;
|
|
202
|
-
`;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
const size = {
|
|
2
|
-
mobilePortrait: '450px',
|
|
3
|
-
mobileLandscape: '767px',
|
|
4
|
-
tabletPortrait: '950px',
|
|
5
|
-
tabletlandscape: '1200',
|
|
6
|
-
smallScreen: '1800px',
|
|
7
|
-
// largerDevice:''
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export const device = {
|
|
11
|
-
smallScreen: `(max-width: ${size.smallScreen})`,
|
|
12
|
-
tabletlandscape: `(max-width: ${size.tabletlandscape})`,
|
|
13
|
-
};
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { atom, useAtom } from 'jotai';
|
|
2
|
-
// import { formatDate } from '../shared/utlis';
|
|
3
|
-
import { format } from 'date-fns';
|
|
4
|
-
|
|
5
|
-
const date = atom(new Date());
|
|
6
|
-
export const usedate = () => {
|
|
7
|
-
return useAtom(date);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
interface Filter {
|
|
11
|
-
field: string;
|
|
12
|
-
op: string;
|
|
13
|
-
value: any;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface Pagination {
|
|
17
|
-
page: number;
|
|
18
|
-
per_page: number;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
interface FilterState {
|
|
22
|
-
'x-filters': Filter[];
|
|
23
|
-
'x-pagination': Pagination;
|
|
24
|
-
}
|
|
25
|
-
let todayDate = new Date();
|
|
26
|
-
const initialState: FilterState = {
|
|
27
|
-
'x-filters': [
|
|
28
|
-
{
|
|
29
|
-
field: 'action_date',
|
|
30
|
-
op: '>=',
|
|
31
|
-
value: `${format(new Date(todayDate), 'yyyy-MM-dd')}T00:00:00+00:00`,
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
field: 'action_date',
|
|
35
|
-
op: '<=',
|
|
36
|
-
value: `${format(new Date(todayDate), 'yyyy-MM-dd')}T23:59:59+00:00`,
|
|
37
|
-
},
|
|
38
|
-
|
|
39
|
-
{ field: 'status', op: 'count', value: '' },
|
|
40
|
-
],
|
|
41
|
-
'x-pagination': { page: 1, per_page: 50 },
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
const filterReducer = (state: FilterState, action: any): FilterState => {
|
|
45
|
-
|
|
46
|
-
switch (action.type) {
|
|
47
|
-
case 'SET_DATE_FILTER':
|
|
48
|
-
return {
|
|
49
|
-
...state,
|
|
50
|
-
'x-filters': [
|
|
51
|
-
...state['x-filters'].filter(f => f.field !== 'action_date' && f.field !== 'status'),
|
|
52
|
-
{
|
|
53
|
-
field: 'action_date',
|
|
54
|
-
op: '>=',
|
|
55
|
-
value: `${format(
|
|
56
|
-
new Date(action.payload),
|
|
57
|
-
'yyyy-MM-dd'
|
|
58
|
-
)}T00:00:00+00:00`,
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
field: 'action_date',
|
|
62
|
-
op: '<=',
|
|
63
|
-
value: `${format(
|
|
64
|
-
new Date(action.payload),
|
|
65
|
-
'yyyy-MM-dd'
|
|
66
|
-
)}T23:59:59+00:00`,
|
|
67
|
-
},
|
|
68
|
-
{ field: 'status', op: 'count', value: '' },
|
|
69
|
-
],
|
|
70
|
-
};
|
|
71
|
-
|
|
72
|
-
case 'SET_PAGE':
|
|
73
|
-
return {
|
|
74
|
-
...state,
|
|
75
|
-
'x-pagination': {
|
|
76
|
-
...state['x-pagination'],
|
|
77
|
-
page: action.payload,
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
case 'SET_PERPAGE':
|
|
82
|
-
return {
|
|
83
|
-
...state,
|
|
84
|
-
'x-pagination': {
|
|
85
|
-
...state['x-pagination'],
|
|
86
|
-
per_page: action.payload,
|
|
87
|
-
},
|
|
88
|
-
};
|
|
89
|
-
default:
|
|
90
|
-
return state;
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const filtersStateAtom = atom(initialState);
|
|
95
|
-
|
|
96
|
-
export const filtersReducerAtom = atom(
|
|
97
|
-
get => get(filtersStateAtom),
|
|
98
|
-
(get, set, action) =>
|
|
99
|
-
set(filtersStateAtom, filterReducer(get(filtersStateAtom), action))
|
|
100
|
-
);
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const routeInfoInitialValue = {
|
|
2
|
-
id: 0,
|
|
3
|
-
depot_id: 0,
|
|
4
|
-
tomtom_id: 0,
|
|
5
|
-
route_name: '',
|
|
6
|
-
action_date: '',
|
|
7
|
-
assets: '',
|
|
8
|
-
fuel_card_id: 0,
|
|
9
|
-
total_weight: 0,
|
|
10
|
-
total_cube: 0,
|
|
11
|
-
contains_collection: false,
|
|
12
|
-
contains_heavy_item: false,
|
|
13
|
-
route_detail: [],
|
|
14
|
-
route_crew_info: [],
|
|
15
|
-
route_breaks: [],
|
|
16
|
-
};
|