@bjsdistribution/dms-client-return 0.0.68 → 0.0.70
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/common/date-picker/header/ClearDate.d.ts +1 -1
- package/dist/components/order-daily-overview/table/table-data/styles.d.ts +3 -3
- package/dist/components/order-daily-overview/table-view/TableStyle.d.ts +4 -4
- package/dist/components/order-view/view-reminder/reminder-styles.d.ts +2 -2
- package/dist/dms-client-return.cjs.development.js +31 -33
- 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 +31 -33
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-daily-overview/return-after-table/table/OrderTable.tsx +0 -3
- package/src/index.tsx +18 -11
|
@@ -62,7 +62,7 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
62
62
|
if (null == r) return {};
|
|
63
63
|
var t = {};
|
|
64
64
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
65
|
-
if (e.
|
|
65
|
+
if (e.includes(n)) continue;
|
|
66
66
|
t[n] = r[n];
|
|
67
67
|
}
|
|
68
68
|
return t;
|
|
@@ -2838,11 +2838,6 @@ var OrderTable = function OrderTable() {
|
|
|
2838
2838
|
color: '#845ADF',
|
|
2839
2839
|
background: 'rgba(132, 90, 223, 0.15)'
|
|
2840
2840
|
};
|
|
2841
|
-
case 'Awaiting':
|
|
2842
|
-
return {
|
|
2843
|
-
color: '#845ADF',
|
|
2844
|
-
background: 'rgba(132, 90, 223, 0.15)'
|
|
2845
|
-
};
|
|
2846
2841
|
case 'Completed':
|
|
2847
2842
|
return {
|
|
2848
2843
|
color: '#1F9254',
|
|
@@ -2961,7 +2956,6 @@ var OrderTable = function OrderTable() {
|
|
|
2961
2956
|
OO: 'On Hold',
|
|
2962
2957
|
SC: 'Sub-Contracted',
|
|
2963
2958
|
'awaiting route': 'Awaiting route',
|
|
2964
|
-
'awaiting confirmation': 'Awaiting',
|
|
2965
2959
|
completed: 'completed',
|
|
2966
2960
|
outstanding: 'Outstanding',
|
|
2967
2961
|
routed: 'Routed'
|
|
@@ -3843,7 +3837,7 @@ function SpokePhoneIcon() {
|
|
|
3843
3837
|
|
|
3844
3838
|
function useCopyToClipboard() {
|
|
3845
3839
|
var copy = /*#__PURE__*/function () {
|
|
3846
|
-
var _ref = _asyncToGenerator(
|
|
3840
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(text) {
|
|
3847
3841
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
3848
3842
|
while (1) switch (_context.prev = _context.next) {
|
|
3849
3843
|
case 0:
|
|
@@ -5236,7 +5230,7 @@ function useUpdateOrder() {
|
|
|
5236
5230
|
var _useUpdateApiCall = useUpdateApiCall(),
|
|
5237
5231
|
setCallApi = _useUpdateApiCall[1]; //single detail
|
|
5238
5232
|
var update = /*#__PURE__*/function () {
|
|
5239
|
-
var _ref = _asyncToGenerator(
|
|
5233
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
5240
5234
|
var endpoint, signal, requestOptions, response, json;
|
|
5241
5235
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5242
5236
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5344,7 +5338,7 @@ function OrderDetailsFooter() {
|
|
|
5344
5338
|
return !isSame;
|
|
5345
5339
|
};
|
|
5346
5340
|
var onSave = /*#__PURE__*/function () {
|
|
5347
|
-
var _ref = _asyncToGenerator(
|
|
5341
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5348
5342
|
var _response$data;
|
|
5349
5343
|
var payload, response, _response$data$, _response$data$2;
|
|
5350
5344
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
@@ -5462,7 +5456,7 @@ function AddNote() {
|
|
|
5462
5456
|
notificationData = _useState2[0],
|
|
5463
5457
|
setNotificationData = _useState2[1];
|
|
5464
5458
|
var saveNote = /*#__PURE__*/function () {
|
|
5465
|
-
var _ref = _asyncToGenerator(
|
|
5459
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5466
5460
|
var endpoint, payload, response;
|
|
5467
5461
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5468
5462
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -5965,7 +5959,7 @@ var tableColumns = [{
|
|
|
5965
5959
|
function useGetEventNotes() {
|
|
5966
5960
|
var ssoToken = getCookie('id_token');
|
|
5967
5961
|
var perform = /*#__PURE__*/function () {
|
|
5968
|
-
var _ref = _asyncToGenerator(
|
|
5962
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
5969
5963
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
5970
5964
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
5971
5965
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -6050,7 +6044,7 @@ function SystemLogs() {
|
|
|
6050
6044
|
setNotesData = _useEventNotesData[1];
|
|
6051
6045
|
// const gsitId = orderDetails?.gsit_order_id;
|
|
6052
6046
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
6053
|
-
var _ref = _asyncToGenerator(
|
|
6047
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
6054
6048
|
var result;
|
|
6055
6049
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
6056
6050
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -8254,7 +8248,7 @@ function ConfirmOrder() {
|
|
|
8254
8248
|
return Object.keys(obj).length === 1 && obj.hasOwnProperty('id');
|
|
8255
8249
|
}
|
|
8256
8250
|
var ConfirmOrder = /*#__PURE__*/function () {
|
|
8257
|
-
var _ref = _asyncToGenerator(
|
|
8251
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
8258
8252
|
var keysToRemovefromOrders, filteredOrderDetails, filteredPrevOrderDetails, payload, notUpdateOrder, _response$data, _response, formattedDate;
|
|
8259
8253
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
8260
8254
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9101,7 +9095,7 @@ function useFetchSingleReminderData() {
|
|
|
9101
9095
|
setLoading = _useFlagsLoading[1];
|
|
9102
9096
|
var ssoToken = getCookie('id_token');
|
|
9103
9097
|
var res = /*#__PURE__*/function () {
|
|
9104
|
-
var _ref = _asyncToGenerator(
|
|
9098
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9105
9099
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
9106
9100
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9107
9101
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9200,7 +9194,7 @@ function useUpdateReminder() {
|
|
|
9200
9194
|
var _useFlagsLoading = useFlagsLoading(),
|
|
9201
9195
|
setLoading = _useFlagsLoading[1];
|
|
9202
9196
|
var update = /*#__PURE__*/function () {
|
|
9203
|
-
var _ref = _asyncToGenerator(
|
|
9197
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
9204
9198
|
var endpoint, requestOptions, response, json;
|
|
9205
9199
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9206
9200
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9270,7 +9264,7 @@ function useFetchReminders() {
|
|
|
9270
9264
|
var _useOrderDetails = useOrderDetails(),
|
|
9271
9265
|
OrderData = _useOrderDetails[0];
|
|
9272
9266
|
var perform = /*#__PURE__*/function () {
|
|
9273
|
-
var _ref = _asyncToGenerator(
|
|
9267
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9274
9268
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
9275
9269
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9276
9270
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9378,7 +9372,7 @@ var ViewReminderModal = function ViewReminderModal() {
|
|
|
9378
9372
|
setCurrentAction(undefined);
|
|
9379
9373
|
};
|
|
9380
9374
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
9381
|
-
var _ref = _asyncToGenerator(
|
|
9375
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9382
9376
|
var result;
|
|
9383
9377
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9384
9378
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9451,7 +9445,7 @@ var ViewReminderModal = function ViewReminderModal() {
|
|
|
9451
9445
|
}));
|
|
9452
9446
|
};
|
|
9453
9447
|
var handleEditReminder = /*#__PURE__*/function () {
|
|
9454
|
-
var _ref2 = _asyncToGenerator(
|
|
9448
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
9455
9449
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
9456
9450
|
while (1) switch (_context2.prev = _context2.next) {
|
|
9457
9451
|
case 0:
|
|
@@ -9772,7 +9766,7 @@ function useCreateReminder() {
|
|
|
9772
9766
|
var _useFlagsLoading = useFlagsLoading(),
|
|
9773
9767
|
setLoading = _useFlagsLoading[1];
|
|
9774
9768
|
var create = /*#__PURE__*/function () {
|
|
9775
|
-
var _ref = _asyncToGenerator(
|
|
9769
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
9776
9770
|
var endpoint, requestOptions, response, json;
|
|
9777
9771
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9778
9772
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -9850,7 +9844,7 @@ function useFetchUnresolvedTasks() {
|
|
|
9850
9844
|
var _useOrderDetails = useOrderDetails(),
|
|
9851
9845
|
OrderData = _useOrderDetails[0];
|
|
9852
9846
|
var perform = /*#__PURE__*/function () {
|
|
9853
|
-
var _ref = _asyncToGenerator(
|
|
9847
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
9854
9848
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
9855
9849
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
9856
9850
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10000,7 +9994,7 @@ function TaskReminderModal() {
|
|
|
10000
9994
|
setReminderPayload(initialValue);
|
|
10001
9995
|
};
|
|
10002
9996
|
var handleReminderSubmit = /*#__PURE__*/function () {
|
|
10003
|
-
var _ref = _asyncToGenerator(
|
|
9997
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10004
9998
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10005
9999
|
while (1) switch (_context.prev = _context.next) {
|
|
10006
10000
|
case 0:
|
|
@@ -10050,7 +10044,7 @@ function OrderLock() {
|
|
|
10050
10044
|
setCurrentAction(undefined);
|
|
10051
10045
|
};
|
|
10052
10046
|
var onComplete = /*#__PURE__*/function () {
|
|
10053
|
-
var _ref = _asyncToGenerator(
|
|
10047
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10054
10048
|
var isLocked, payload, response;
|
|
10055
10049
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10056
10050
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10097,7 +10091,7 @@ function useUpdateFlag() {
|
|
|
10097
10091
|
var _useFlagsLoading = useFlagsLoading(),
|
|
10098
10092
|
setLoading = _useFlagsLoading[1];
|
|
10099
10093
|
var create = /*#__PURE__*/function () {
|
|
10100
|
-
var _ref = _asyncToGenerator(
|
|
10094
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(data) {
|
|
10101
10095
|
var endpoint, requestOptions, response, json;
|
|
10102
10096
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10103
10097
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10189,7 +10183,7 @@ function HeaderSection() {
|
|
|
10189
10183
|
setIsModalOpen(false);
|
|
10190
10184
|
};
|
|
10191
10185
|
var saveButton = /*#__PURE__*/function () {
|
|
10192
|
-
var _ref = _asyncToGenerator(
|
|
10186
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10193
10187
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10194
10188
|
while (1) switch (_context.prev = _context.next) {
|
|
10195
10189
|
case 0:
|
|
@@ -10365,7 +10359,7 @@ function ActionSection() {
|
|
|
10365
10359
|
setLoading = _useFlagsLoading[1];
|
|
10366
10360
|
var updateFlag = useUpdateFlag();
|
|
10367
10361
|
var onSubmit = /*#__PURE__*/function () {
|
|
10368
|
-
var _ref = _asyncToGenerator(
|
|
10362
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10369
10363
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10370
10364
|
while (1) switch (_context.prev = _context.next) {
|
|
10371
10365
|
case 0:
|
|
@@ -10472,7 +10466,7 @@ function useFetchSingleFlagsData() {
|
|
|
10472
10466
|
var ssoToken = getCookie('id_token');
|
|
10473
10467
|
console.log(loading, 'loading loading');
|
|
10474
10468
|
var res = /*#__PURE__*/function () {
|
|
10475
|
-
var _ref = _asyncToGenerator(
|
|
10469
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10476
10470
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
10477
10471
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10478
10472
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10603,7 +10597,7 @@ function ViewFlag() {
|
|
|
10603
10597
|
}
|
|
10604
10598
|
}, [staticData]);
|
|
10605
10599
|
var fetchAndSetSingleFlagData = /*#__PURE__*/function () {
|
|
10606
|
-
var _ref = _asyncToGenerator(
|
|
10600
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10607
10601
|
var result;
|
|
10608
10602
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10609
10603
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -10787,7 +10781,7 @@ function useSystemLogs() {
|
|
|
10787
10781
|
var _useOrderProductSyste = useOrderProductSystemLogs(),
|
|
10788
10782
|
setSystemLogsEvents = _useOrderProductSyste[1];
|
|
10789
10783
|
var perform = /*#__PURE__*/function () {
|
|
10790
|
-
var _ref = _asyncToGenerator(
|
|
10784
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
10791
10785
|
var endpoint, headers, response, _detail$, _json, detail, msg, json;
|
|
10792
10786
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
10793
10787
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -11392,7 +11386,7 @@ function OrderView() {
|
|
|
11392
11386
|
var _useOrderProductSyste = useOrderProductSystemLogs(),
|
|
11393
11387
|
setSystemLogsEvents = _useOrderProductSyste[1];
|
|
11394
11388
|
var fetchReminderData = /*#__PURE__*/function () {
|
|
11395
|
-
var _ref = _asyncToGenerator(
|
|
11389
|
+
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
11396
11390
|
var result;
|
|
11397
11391
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11398
11392
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -11914,7 +11908,7 @@ function ReturnClient() {
|
|
|
11914
11908
|
};
|
|
11915
11909
|
var paths = splitPath(location.pathname);
|
|
11916
11910
|
React.useEffect(function () {
|
|
11917
|
-
if (paths.
|
|
11911
|
+
if (paths[paths.length - 1] === 'orders/view/return') {
|
|
11918
11912
|
setActionTypeOptions([]);
|
|
11919
11913
|
setLocationOptions([]);
|
|
11920
11914
|
setSelectedClient(null);
|
|
@@ -11922,14 +11916,18 @@ function ReturnClient() {
|
|
|
11922
11916
|
setSelectedLocationValue(null);
|
|
11923
11917
|
}
|
|
11924
11918
|
}, [location.pathname, searchParams]);
|
|
11919
|
+
// useEffect(() => {
|
|
11920
|
+
// if (selectedClientId) {
|
|
11921
|
+
// navigate(`filter/${selectedClientId}`);
|
|
11922
|
+
// }
|
|
11923
|
+
// }, [selectedClientId]);
|
|
11925
11924
|
//API for client data
|
|
11926
11925
|
var _useApiHook = dmsComponentLibrary.useApiHook({
|
|
11927
11926
|
endpoint: "/return_orders/customers/",
|
|
11928
11927
|
method: 'GET',
|
|
11929
11928
|
//@ts-ignore
|
|
11930
11929
|
pagination: {
|
|
11931
|
-
|
|
11932
|
-
per_page: 50
|
|
11930
|
+
is_pagination: false
|
|
11933
11931
|
}
|
|
11934
11932
|
}),
|
|
11935
11933
|
fetchedCustomerData = _useApiHook.data,
|