@bjsdistribution/dms-client-return 0.0.82 → 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/notification/ReminderTemplate.d.ts +1 -1
- package/dist/components/order-view/notification/Tabs.d.ts +1 -1
- 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 +3 -1
- package/dist/dms-client-return.cjs.development.js +2874 -2078
- 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 +2894 -2098
- 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/return-order-table/return-orders-filters/returnstyles.ts +1 -1
- 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 +26 -1
- package/src/components/order-view/notes/order-dropdown/NewReturnDropdown.tsx +17 -4
- package/src/components/order-view/notification/FlagTemplate.tsx +1 -1
- package/src/components/order-view/notification/ReminderTemplate.tsx +10 -11
- package/src/components/order-view/notification/Tabs.tsx +24 -6
- package/src/components/order-view/notification/index.tsx +47 -13
- 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/CreateReminderModal.tsx +3 -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 +7 -2
- 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/return-client-products/product-table/ReturnProductTable.tsx +16 -4
- 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 +13 -1
- 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 -173
package/src/components/order-view/order-actions/actions/update-product-type/UpdateProductType.tsx
DELETED
|
@@ -1,365 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
|
|
3
|
-
import OrderActionModal from '../../../../../common/modals/order-action-modal/OrderActionModal';
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
// GLobalPopupInner,
|
|
7
|
-
// GLobalPopupHeader,
|
|
8
|
-
GLobalPopupContent,
|
|
9
|
-
TableSkelton,
|
|
10
|
-
CustomCheckBox,
|
|
11
|
-
ContentContainer,
|
|
12
|
-
} from './UpdateProductTypeStyle';
|
|
13
|
-
import { AntSelect } from '@bjsdistribution/dms-component-library';
|
|
14
|
-
import { useCurrentAction } from '../../../store';
|
|
15
|
-
|
|
16
|
-
export const options = [
|
|
17
|
-
{ value: 'bjsCouriers', label: 'BJS COURIERS' },
|
|
18
|
-
{ value: 'bjsSales', label: 'BJS SALES' },
|
|
19
|
-
{ value: 'test', label: 'TEST' },
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
const UpdateProductType = () => {
|
|
23
|
-
const [, setCurrentAction] = useCurrentAction();
|
|
24
|
-
|
|
25
|
-
const onClose = () => {
|
|
26
|
-
setCurrentAction(undefined);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const onChange = async (event: any) => {
|
|
30
|
-
console.log(event);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
return (
|
|
34
|
-
// <GLobalPopupInner>
|
|
35
|
-
// {/* <GLobalPopupHeader>
|
|
36
|
-
// <div className="header">
|
|
37
|
-
// <h2>
|
|
38
|
-
// Bulk Update Product Type <i />
|
|
39
|
-
// </h2>
|
|
40
|
-
// <span className="label">Gemma Harris, LE12 6AW</span>
|
|
41
|
-
// </div>
|
|
42
|
-
// </GLobalPopupHeader> */}
|
|
43
|
-
// <ShadowElement>
|
|
44
|
-
// <GLobalPopupContent>
|
|
45
|
-
// <section>
|
|
46
|
-
// <div className="filterCover">
|
|
47
|
-
// <div className="col">
|
|
48
|
-
// <label>Collection Reason</label>
|
|
49
|
-
// <AntSelect
|
|
50
|
-
// options={options}
|
|
51
|
-
// placeholder="Select Collection Reason"
|
|
52
|
-
// onChange={onChange}
|
|
53
|
-
// disabled={false}
|
|
54
|
-
// // style={{ width: 120 }}
|
|
55
|
-
// popupClassName={'dropDownStyle'}
|
|
56
|
-
// selectWrapperClass={'rounded'}
|
|
57
|
-
// defaultValue={'Select Collection Reason'}
|
|
58
|
-
// ></AntSelect>
|
|
59
|
-
// </div>
|
|
60
|
-
// <div className="col">
|
|
61
|
-
// <label>Collection Reason</label>
|
|
62
|
-
// <AntSelect
|
|
63
|
-
// options={options}
|
|
64
|
-
// placeholder="Return Action"
|
|
65
|
-
// onChange={onChange}
|
|
66
|
-
// disabled={false}
|
|
67
|
-
// // style={{ width: 120 }}
|
|
68
|
-
// popupClassName={'dropDownStyle'}
|
|
69
|
-
// selectWrapperClass={'rounded'}
|
|
70
|
-
// defaultValue={'Select Return Action'}
|
|
71
|
-
// ></AntSelect>
|
|
72
|
-
// </div>
|
|
73
|
-
// <div className="col">
|
|
74
|
-
// <label>Collection Reason</label>
|
|
75
|
-
// <AntSelect
|
|
76
|
-
// options={options}
|
|
77
|
-
// placeholder="Return Reason"
|
|
78
|
-
// onChange={onChange}
|
|
79
|
-
// disabled={false}
|
|
80
|
-
// // style={{ width: 120 }}
|
|
81
|
-
// popupClassName={'dropDownStyle'}
|
|
82
|
-
// selectWrapperClass={'rounded'}
|
|
83
|
-
// defaultValue={'Select Return Reason'}
|
|
84
|
-
// ></AntSelect>
|
|
85
|
-
// </div>
|
|
86
|
-
// </div>
|
|
87
|
-
// </section>
|
|
88
|
-
// <TableSkelton>
|
|
89
|
-
// <table>
|
|
90
|
-
// <thead>
|
|
91
|
-
// <tr>
|
|
92
|
-
// <th>
|
|
93
|
-
// <CustomCheckBox>
|
|
94
|
-
// <label className="container">
|
|
95
|
-
// <input type="checkbox" />
|
|
96
|
-
// <span className="checkmark"></span>
|
|
97
|
-
// </label>
|
|
98
|
-
// </CustomCheckBox>
|
|
99
|
-
// </th>
|
|
100
|
-
// <th>Status</th>
|
|
101
|
-
// <th>Code</th>
|
|
102
|
-
// <th>Description</th>
|
|
103
|
-
// <th>SKU</th>
|
|
104
|
-
// </tr>
|
|
105
|
-
// </thead>
|
|
106
|
-
// <tbody>
|
|
107
|
-
// <tr>
|
|
108
|
-
// <td>
|
|
109
|
-
// <CustomCheckBox>
|
|
110
|
-
// <label className="container">
|
|
111
|
-
// <input type="checkbox" />
|
|
112
|
-
// <span className="checkmark"></span>
|
|
113
|
-
// </label>
|
|
114
|
-
// </CustomCheckBox>
|
|
115
|
-
// </td>
|
|
116
|
-
// <td>
|
|
117
|
-
// <AntSelect
|
|
118
|
-
// options={options}
|
|
119
|
-
// placeholder="Select Collection Reason"
|
|
120
|
-
// onChange={onChange}
|
|
121
|
-
// disabled={false}
|
|
122
|
-
// // style={{ width: 120 }}
|
|
123
|
-
// popupClassName={'dropDownStyle'}
|
|
124
|
-
// selectWrapperClass={'rounded'}
|
|
125
|
-
// defaultValue={'Select Collection Reason'}
|
|
126
|
-
// ></AntSelect>
|
|
127
|
-
// </td>
|
|
128
|
-
// <td>FFLMW-B1</td>
|
|
129
|
-
// <td>
|
|
130
|
-
// Flair Furnishings Loop Midsleeper White /DOUBLE COXMOOR NEST
|
|
131
|
-
// OF 3 TABLES - OAK
|
|
132
|
-
// </td>
|
|
133
|
-
// <td>007022530015429326</td>
|
|
134
|
-
// </tr>
|
|
135
|
-
// <tr>
|
|
136
|
-
// <td>
|
|
137
|
-
// <CustomCheckBox>
|
|
138
|
-
// <label className="container">
|
|
139
|
-
// <input type="checkbox" />
|
|
140
|
-
// <span className="checkmark"></span>
|
|
141
|
-
// </label>
|
|
142
|
-
// </CustomCheckBox>
|
|
143
|
-
// </td>
|
|
144
|
-
// <td>
|
|
145
|
-
// <AntSelect
|
|
146
|
-
// options={options}
|
|
147
|
-
// placeholder="Select Collection Reason"
|
|
148
|
-
// onChange={onChange}
|
|
149
|
-
// disabled={false}
|
|
150
|
-
// // style={{ width: 120 }}
|
|
151
|
-
// popupClassName={'dropDownStyle'}
|
|
152
|
-
// selectWrapperClass={'rounded'}
|
|
153
|
-
// defaultValue={'Select Collection Reason'}
|
|
154
|
-
// ></AntSelect>
|
|
155
|
-
// </td>
|
|
156
|
-
// <td>FFLMW-B1</td>
|
|
157
|
-
// <td>
|
|
158
|
-
// Flair Furnishings Loop Midsleeper White /DOUBLE COXMOOR NEST
|
|
159
|
-
// OF 3 TABLES - OAK
|
|
160
|
-
// </td>
|
|
161
|
-
// <td>007022530015429326</td>
|
|
162
|
-
// </tr>
|
|
163
|
-
// <tr>
|
|
164
|
-
// <td>
|
|
165
|
-
// <CustomCheckBox>
|
|
166
|
-
// <label className="container">
|
|
167
|
-
// <input type="checkbox" />
|
|
168
|
-
// <span className="checkmark"></span>
|
|
169
|
-
// </label>
|
|
170
|
-
// </CustomCheckBox>
|
|
171
|
-
// </td>
|
|
172
|
-
// <td>
|
|
173
|
-
// <AntSelect
|
|
174
|
-
// options={options}
|
|
175
|
-
// placeholder="Select Collection Reason"
|
|
176
|
-
// onChange={onChange}
|
|
177
|
-
// disabled={false}
|
|
178
|
-
// // style={{ width: 120 }}
|
|
179
|
-
// popupClassName={'dropDownStyle'}
|
|
180
|
-
// selectWrapperClass={'rounded'}
|
|
181
|
-
// defaultValue={'Select Collection Reason'}
|
|
182
|
-
// ></AntSelect>
|
|
183
|
-
// </td>
|
|
184
|
-
// <td>FFLMW-B1</td>
|
|
185
|
-
// <td>
|
|
186
|
-
// Flair Furnishings Loop Midsleeper White /DOUBLE COXMOOR NEST
|
|
187
|
-
// OF 3 TABLES - OAK
|
|
188
|
-
// </td>
|
|
189
|
-
// <td>007022530015429326</td>
|
|
190
|
-
// </tr>
|
|
191
|
-
// </tbody>
|
|
192
|
-
// </table>
|
|
193
|
-
// </TableSkelton>
|
|
194
|
-
// </GLobalPopupContent>
|
|
195
|
-
// <GLobalPopupFooter>
|
|
196
|
-
// <div className="justifyEnd">
|
|
197
|
-
// <a className="btn rounded">SUBMIT</a>
|
|
198
|
-
// <a className="btn retringle">CONFIRM DELETE</a>
|
|
199
|
-
// </div>
|
|
200
|
-
// </GLobalPopupFooter>
|
|
201
|
-
// </ShadowElement>
|
|
202
|
-
// </GLobalPopupInner>
|
|
203
|
-
|
|
204
|
-
<OrderActionModal
|
|
205
|
-
headerTitle="Bulk Update Product Type"
|
|
206
|
-
showAdditionalInfo
|
|
207
|
-
infoText="Gemma Harris, LE12 6AW"
|
|
208
|
-
onCloseHeader={onClose}
|
|
209
|
-
onSubmit={() => {}}
|
|
210
|
-
>
|
|
211
|
-
<ContentContainer>
|
|
212
|
-
<GLobalPopupContent>
|
|
213
|
-
<section>
|
|
214
|
-
<div className="filterCover">
|
|
215
|
-
<div className="col">
|
|
216
|
-
<label>Collection Reason</label>
|
|
217
|
-
<AntSelect
|
|
218
|
-
options={options}
|
|
219
|
-
placeholder="Select Collection Reason"
|
|
220
|
-
onChange={onChange}
|
|
221
|
-
disabled={false}
|
|
222
|
-
popupClassName={'dropDownStyle'}
|
|
223
|
-
selectWrapperClass={'rounded'}
|
|
224
|
-
defaultValue={'Select Collection Reason'}
|
|
225
|
-
></AntSelect>
|
|
226
|
-
</div>
|
|
227
|
-
<div className="col">
|
|
228
|
-
<label>Collection Reason</label>
|
|
229
|
-
<AntSelect
|
|
230
|
-
options={options}
|
|
231
|
-
placeholder="Return Action"
|
|
232
|
-
onChange={onChange}
|
|
233
|
-
disabled={false}
|
|
234
|
-
popupClassName={'dropDownStyle'}
|
|
235
|
-
selectWrapperClass={'rounded'}
|
|
236
|
-
defaultValue={'Select Return Action'}
|
|
237
|
-
></AntSelect>
|
|
238
|
-
</div>
|
|
239
|
-
<div className="col">
|
|
240
|
-
<label>Collection Reason</label>
|
|
241
|
-
<AntSelect
|
|
242
|
-
options={options}
|
|
243
|
-
placeholder="Return Reason"
|
|
244
|
-
onChange={onChange}
|
|
245
|
-
disabled={false}
|
|
246
|
-
popupClassName={'dropDownStyle'}
|
|
247
|
-
selectWrapperClass={'rounded'}
|
|
248
|
-
defaultValue={'Select Return Reason'}
|
|
249
|
-
></AntSelect>
|
|
250
|
-
</div>
|
|
251
|
-
</div>
|
|
252
|
-
</section>
|
|
253
|
-
<TableSkelton>
|
|
254
|
-
<table>
|
|
255
|
-
<thead>
|
|
256
|
-
<tr>
|
|
257
|
-
<th>
|
|
258
|
-
<CustomCheckBox>
|
|
259
|
-
<label className="container">
|
|
260
|
-
<input type="checkbox" />
|
|
261
|
-
<span className="checkmark"></span>
|
|
262
|
-
</label>
|
|
263
|
-
</CustomCheckBox>
|
|
264
|
-
</th>
|
|
265
|
-
<th>Status</th>
|
|
266
|
-
<th>Code</th>
|
|
267
|
-
<th>Description</th>
|
|
268
|
-
<th>SKU</th>
|
|
269
|
-
</tr>
|
|
270
|
-
</thead>
|
|
271
|
-
<tbody>
|
|
272
|
-
<tr>
|
|
273
|
-
<td>
|
|
274
|
-
<CustomCheckBox>
|
|
275
|
-
<label className="container">
|
|
276
|
-
<input type="checkbox" />
|
|
277
|
-
<span className="checkmark"></span>
|
|
278
|
-
</label>
|
|
279
|
-
</CustomCheckBox>
|
|
280
|
-
</td>
|
|
281
|
-
<td>
|
|
282
|
-
<AntSelect
|
|
283
|
-
options={options}
|
|
284
|
-
placeholder="Select Collection Reason"
|
|
285
|
-
onChange={onChange}
|
|
286
|
-
disabled={false}
|
|
287
|
-
// style={{ width: 120 }}
|
|
288
|
-
popupClassName={'dropDownStyle'}
|
|
289
|
-
selectWrapperClass={'rounded'}
|
|
290
|
-
defaultValue={'Select Collection Reason'}
|
|
291
|
-
></AntSelect>
|
|
292
|
-
</td>
|
|
293
|
-
<td>FFLMW-B1</td>
|
|
294
|
-
<td>
|
|
295
|
-
Flair Furnishings Loop Midsleeper White /DOUBLE COXMOOR NEST
|
|
296
|
-
OF 3 TABLES - OAK
|
|
297
|
-
</td>
|
|
298
|
-
<td>007022530015429326</td>
|
|
299
|
-
</tr>
|
|
300
|
-
<tr>
|
|
301
|
-
<td>
|
|
302
|
-
<CustomCheckBox>
|
|
303
|
-
<label className="container">
|
|
304
|
-
<input type="checkbox" />
|
|
305
|
-
<span className="checkmark"></span>
|
|
306
|
-
</label>
|
|
307
|
-
</CustomCheckBox>
|
|
308
|
-
</td>
|
|
309
|
-
<td>
|
|
310
|
-
<AntSelect
|
|
311
|
-
options={options}
|
|
312
|
-
placeholder="Select Collection Reason"
|
|
313
|
-
onChange={onChange}
|
|
314
|
-
disabled={false}
|
|
315
|
-
// style={{ width: 120 }}
|
|
316
|
-
popupClassName={'dropDownStyle'}
|
|
317
|
-
selectWrapperClass={'rounded'}
|
|
318
|
-
defaultValue={'Select Collection Reason'}
|
|
319
|
-
></AntSelect>
|
|
320
|
-
</td>
|
|
321
|
-
<td>FFLMW-B1</td>
|
|
322
|
-
<td>
|
|
323
|
-
Flair Furnishings Loop Midsleeper White /DOUBLE COXMOOR NEST
|
|
324
|
-
OF 3 TABLES - OAK
|
|
325
|
-
</td>
|
|
326
|
-
<td>007022530015429326</td>
|
|
327
|
-
</tr>
|
|
328
|
-
<tr>
|
|
329
|
-
<td>
|
|
330
|
-
<CustomCheckBox>
|
|
331
|
-
<label className="container">
|
|
332
|
-
<input type="checkbox" />
|
|
333
|
-
<span className="checkmark"></span>
|
|
334
|
-
</label>
|
|
335
|
-
</CustomCheckBox>
|
|
336
|
-
</td>
|
|
337
|
-
<td>
|
|
338
|
-
<AntSelect
|
|
339
|
-
options={options}
|
|
340
|
-
placeholder="Select Collection Reason"
|
|
341
|
-
onChange={onChange}
|
|
342
|
-
disabled={false}
|
|
343
|
-
// style={{ width: 120 }}
|
|
344
|
-
popupClassName={'dropDownStyle'}
|
|
345
|
-
selectWrapperClass={'rounded'}
|
|
346
|
-
defaultValue={'Select Collection Reason'}
|
|
347
|
-
></AntSelect>
|
|
348
|
-
</td>
|
|
349
|
-
<td>FFLMW-B1</td>
|
|
350
|
-
<td>
|
|
351
|
-
Flair Furnishings Loop Midsleeper White /DOUBLE COXMOOR NEST
|
|
352
|
-
OF 3 TABLES - OAK
|
|
353
|
-
</td>
|
|
354
|
-
<td>007022530015429326</td>
|
|
355
|
-
</tr>
|
|
356
|
-
</tbody>
|
|
357
|
-
</table>
|
|
358
|
-
</TableSkelton>
|
|
359
|
-
</GLobalPopupContent>
|
|
360
|
-
</ContentContainer>
|
|
361
|
-
</OrderActionModal>
|
|
362
|
-
);
|
|
363
|
-
};
|
|
364
|
-
|
|
365
|
-
export default UpdateProductType;
|
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
|
|
3
|
-
export const ContentContainer = styled.div`
|
|
4
|
-
display: flex;
|
|
5
|
-
padding: 0px 12px;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-items: flex-start;
|
|
9
|
-
gap: 15px;
|
|
10
|
-
flex: 1 0 0;
|
|
11
|
-
border-radius: 15px;
|
|
12
|
-
`;
|
|
13
|
-
|
|
14
|
-
export const GLobalPopupInner = styled.div`
|
|
15
|
-
padding: 10px;
|
|
16
|
-
border-radius: 16px;
|
|
17
|
-
|
|
18
|
-
* {
|
|
19
|
-
box-sizing: border-box;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
|
|
23
|
-
export const ShadowElement = styled.div`
|
|
24
|
-
box-shadow: -4px 3px 15px rgba(0, 0, 0, 0.2);
|
|
25
|
-
border-radius: 0 0 10px 10px;
|
|
26
|
-
`;
|
|
27
|
-
|
|
28
|
-
export const GLobalPopupHeader = styled.div`
|
|
29
|
-
.header {
|
|
30
|
-
background: linear-gradient(90deg, #313130 0%, rgba(0, 0, 0, 0.4) 100%),
|
|
31
|
-
linear-gradient(90deg, #191919 0%, #3a3630 100%);
|
|
32
|
-
display: flex;
|
|
33
|
-
height: 52px;
|
|
34
|
-
padding: 20px;
|
|
35
|
-
align-items: center;
|
|
36
|
-
gap: 10px;
|
|
37
|
-
border-radius: 15px 15px 0 0;
|
|
38
|
-
}
|
|
39
|
-
h2 {
|
|
40
|
-
color: #edebe8;
|
|
41
|
-
font-size: 20px;
|
|
42
|
-
font-style: normal;
|
|
43
|
-
font-weight: 900;
|
|
44
|
-
line-height: 32px;
|
|
45
|
-
text-transform: uppercase;
|
|
46
|
-
margin: 0;
|
|
47
|
-
position: relative;
|
|
48
|
-
i {
|
|
49
|
-
width: 9px;
|
|
50
|
-
height: 45px;
|
|
51
|
-
position: absolute;
|
|
52
|
-
right: -14px;
|
|
53
|
-
top: -7px;
|
|
54
|
-
background: linear-gradient(180deg, #232221 0%, #232221 116.67%),
|
|
55
|
-
linear-gradient(90deg, #191919 0%, #3a3630 100%);
|
|
56
|
-
box-shadow: 2px 3px 4px rgba(0, 0, 0, 0.5);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
.label {
|
|
60
|
-
color: #fff;
|
|
61
|
-
font-family: Lato;
|
|
62
|
-
font-size: 13px;
|
|
63
|
-
font-style: normal;
|
|
64
|
-
font-weight: 600;
|
|
65
|
-
line-height: 20px;
|
|
66
|
-
border-radius: 0px 15px 15px 0px;
|
|
67
|
-
background: rgba(63, 151, 188, 0.6);
|
|
68
|
-
box-shadow: 2px 0px 2px 0px rgba(0, 0, 0, 0.25) inset;
|
|
69
|
-
padding: 3px 10px;
|
|
70
|
-
}
|
|
71
|
-
`;
|
|
72
|
-
|
|
73
|
-
export const GLobalPopupContent = styled.div`
|
|
74
|
-
section {
|
|
75
|
-
padding: 0px 0 15px;
|
|
76
|
-
.filterCover {
|
|
77
|
-
border-radius: 16px;
|
|
78
|
-
border: 1px solid var(--tonal-brown-10, #edebe8);
|
|
79
|
-
background: #f8fafc;
|
|
80
|
-
display: flex;
|
|
81
|
-
gap: 30px;
|
|
82
|
-
padding: 15px;
|
|
83
|
-
gap: 15px;
|
|
84
|
-
.col {
|
|
85
|
-
width: 21%;
|
|
86
|
-
label {
|
|
87
|
-
color: #8d8f90;
|
|
88
|
-
font-size: 14px;
|
|
89
|
-
font-weight: 500;
|
|
90
|
-
line-height: 20px;
|
|
91
|
-
display: block;
|
|
92
|
-
margin-bottom: 4px;
|
|
93
|
-
}
|
|
94
|
-
.ant-select-single {
|
|
95
|
-
width: 100%;
|
|
96
|
-
}
|
|
97
|
-
select {
|
|
98
|
-
width: 100%;
|
|
99
|
-
}
|
|
100
|
-
&:first-child {
|
|
101
|
-
width: 43%;
|
|
102
|
-
}
|
|
103
|
-
&:last-child {
|
|
104
|
-
width: 33%;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
`;
|
|
110
|
-
|
|
111
|
-
export const TableSkelton = styled.div`
|
|
112
|
-
margin-top: -8px;
|
|
113
|
-
min-height: auto;
|
|
114
|
-
width: 100%;
|
|
115
|
-
|
|
116
|
-
table {
|
|
117
|
-
border-collapse: separate;
|
|
118
|
-
width: 100%;
|
|
119
|
-
border-spacing: 0px 8px;
|
|
120
|
-
thead {
|
|
121
|
-
tr {
|
|
122
|
-
th {
|
|
123
|
-
font-size: 14px;
|
|
124
|
-
font-weight: 600;
|
|
125
|
-
padding: 8px 15px;
|
|
126
|
-
text-align: left;
|
|
127
|
-
border-top: 1px solid rgba(0, 0, 0, 0.08);
|
|
128
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
|
129
|
-
|
|
130
|
-
background: #f0f2f2;
|
|
131
|
-
&:first-child {
|
|
132
|
-
border-radius: 20px 0 0 20px;
|
|
133
|
-
}
|
|
134
|
-
&:last-child {
|
|
135
|
-
border-radius: 0 20px 20px 0;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
tbody {
|
|
141
|
-
tr {
|
|
142
|
-
td {
|
|
143
|
-
color: #3a3630;
|
|
144
|
-
font-size: 13px;
|
|
145
|
-
font-weight: 400;
|
|
146
|
-
line-height: 16px;
|
|
147
|
-
padding: 6px 15px;
|
|
148
|
-
text-align: left;
|
|
149
|
-
box-shadow: 3px 1px 3px 0px rgba(16, 24, 40, 0.1);
|
|
150
|
-
|
|
151
|
-
background: #fff;
|
|
152
|
-
|
|
153
|
-
&:first-child {
|
|
154
|
-
border-radius: 20px 0 0 20px;
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
&:last-child {
|
|
158
|
-
border-radius: 0 20px 20px 0;
|
|
159
|
-
}
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
`;
|
|
165
|
-
|
|
166
|
-
export const CustomCheckBox = styled.div`
|
|
167
|
-
.container {
|
|
168
|
-
display: block;
|
|
169
|
-
position: relative;
|
|
170
|
-
cursor: pointer;
|
|
171
|
-
-webkit-user-select: none;
|
|
172
|
-
-moz-user-select: none;
|
|
173
|
-
-ms-user-select: none;
|
|
174
|
-
user-select: none;
|
|
175
|
-
width: 20px;
|
|
176
|
-
height: 20px;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.container input {
|
|
180
|
-
position: absolute;
|
|
181
|
-
opacity: 0;
|
|
182
|
-
cursor: pointer;
|
|
183
|
-
height: 100%;
|
|
184
|
-
width: 100%;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
.checkmark {
|
|
188
|
-
position: absolute;
|
|
189
|
-
top: 0;
|
|
190
|
-
left: 0;
|
|
191
|
-
width: 100%;
|
|
192
|
-
height: 100%;
|
|
193
|
-
border: 1px solid #cfcfcf;
|
|
194
|
-
border-radius: 4px;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.container:hover input ~ .checkmark {
|
|
198
|
-
border-color: #7f7a7a;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.container input:checked ~ .checkmark {
|
|
202
|
-
background-color: #000;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.checkmark:after {
|
|
206
|
-
content: '';
|
|
207
|
-
position: absolute;
|
|
208
|
-
display: none;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.container input:checked ~ .checkmark:after {
|
|
212
|
-
display: block;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
.container .checkmark:after {
|
|
216
|
-
left: 8px;
|
|
217
|
-
top: 4px;
|
|
218
|
-
width: 3px;
|
|
219
|
-
height: 6px;
|
|
220
|
-
border: solid white;
|
|
221
|
-
border-width: 0 2px 2px 0;
|
|
222
|
-
-webkit-transform: rotate(45deg);
|
|
223
|
-
-ms-transform: rotate(45deg);
|
|
224
|
-
transform: rotate(45deg);
|
|
225
|
-
}
|
|
226
|
-
`;
|
|
227
|
-
|
|
228
|
-
export const GLobalPopupFooter = styled.div`
|
|
229
|
-
border-top: 1px solid #edebe8;
|
|
230
|
-
background: #f8fafc;
|
|
231
|
-
padding: 10px 15px;
|
|
232
|
-
border-radius: 0 0 10px 10px;
|
|
233
|
-
.justifyEnd {
|
|
234
|
-
display: flex;
|
|
235
|
-
justify-content: end;
|
|
236
|
-
.btn {
|
|
237
|
-
padding: 6px 14px;
|
|
238
|
-
border-radius: 15px;
|
|
239
|
-
background: #3a3630;
|
|
240
|
-
color: #fff;
|
|
241
|
-
font-family: Lato;
|
|
242
|
-
font-size: 14px;
|
|
243
|
-
font-weight: 600;
|
|
244
|
-
line-height: 20px;
|
|
245
|
-
&.retringle {
|
|
246
|
-
background: #fecdca;
|
|
247
|
-
border-radius: 6px;
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
`;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { getBaseEndpoint } from '@bjsdistribution/dms-component-library';
|
|
2
|
-
import { useFlagsLoading, useReminderRefId } from '../store';
|
|
3
|
-
import { getCookie } from '../../utils';
|
|
4
|
-
import { notification } from 'antd';
|
|
5
|
-
|
|
6
|
-
function useFetchSingleReminderData() {
|
|
7
|
-
const [reminderRefId] = useReminderRefId();
|
|
8
|
-
|
|
9
|
-
const [, setLoading] = useFlagsLoading();
|
|
10
|
-
const ssoToken = getCookie('id_token');
|
|
11
|
-
|
|
12
|
-
const res = async () => {
|
|
13
|
-
const endpoint = `${getBaseEndpoint()}/tasks/reminder/${reminderRefId}`;
|
|
14
|
-
setLoading(true);
|
|
15
|
-
try {
|
|
16
|
-
const headers = {
|
|
17
|
-
accept: 'application/json',
|
|
18
|
-
'Content-Type': 'application/json',
|
|
19
|
-
Authorization: `Bearer ${ssoToken}`,
|
|
20
|
-
};
|
|
21
|
-
const response = await fetch(endpoint, {
|
|
22
|
-
method: 'GET',
|
|
23
|
-
headers,
|
|
24
|
-
});
|
|
25
|
-
if (!response.ok) {
|
|
26
|
-
const json = await response.json();
|
|
27
|
-
const detail = json?.detail;
|
|
28
|
-
const msg = detail[0]?.msg;
|
|
29
|
-
// alert(`${msg}`);
|
|
30
|
-
notification.error({
|
|
31
|
-
message: 'Error',
|
|
32
|
-
description:
|
|
33
|
-
`${msg}` || 'An error has occurred. Please try again later.',
|
|
34
|
-
});
|
|
35
|
-
setLoading(false);
|
|
36
|
-
return [];
|
|
37
|
-
}
|
|
38
|
-
const json = await response.json();
|
|
39
|
-
if (json.code === 200) {
|
|
40
|
-
setLoading(false);
|
|
41
|
-
|
|
42
|
-
return { ...json.data[0] };
|
|
43
|
-
}
|
|
44
|
-
return [];
|
|
45
|
-
} catch (err) {
|
|
46
|
-
//setloading(false);
|
|
47
|
-
|
|
48
|
-
// console.error('Error fetching data:', err);
|
|
49
|
-
notification.error({
|
|
50
|
-
message: 'Error',
|
|
51
|
-
description:
|
|
52
|
-
`${err}` || 'An error has occurred. Please try again later.',
|
|
53
|
-
});
|
|
54
|
-
return [];
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
return res;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export default useFetchSingleReminderData;
|