@bjsdistribution/dms-client-return 0.0.44 → 0.0.46
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/dms-client-return.cjs.development.js +13 -10
- 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 +13 -10
- package/dist/dms-client-return.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/order-daily-overview/header-filters/SelectionFilter.tsx +11 -7
- package/src/components/order-daily-overview/table/ReturnTable.tsx +5 -1
- package/src/components/order-view/general-information/Status.tsx +1 -0
|
@@ -3443,7 +3443,7 @@ var renderIcon = function renderIcon(value, orderStatus) {
|
|
|
3443
3443
|
}
|
|
3444
3444
|
};
|
|
3445
3445
|
var BoxContainer = /*#__PURE__*/styled__default.div(_templateObject$S || (_templateObject$S = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border: 1px solid #e3e3e3;\n display: flex;\n justify-content: space-evenly;\n border-radius: 8px;\n background: #f8fafc;\n align-items: center;\n height: 5%;\n"])));
|
|
3446
|
-
var Heading = /*#__PURE__*/styled__default.div(_templateObject2$F || (_templateObject2$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n"])));
|
|
3446
|
+
var Heading = /*#__PURE__*/styled__default.div(_templateObject2$F || (_templateObject2$F = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-family: 'lato', sans-serif;\n font-size: 14px;\n font-style: normal;\n font-weight: 500;\n line-height: 18px;\n text-transform: uppercase;\n"])));
|
|
3447
3447
|
var Container$A = /*#__PURE__*/styled__default.div(_templateObject3$l || (_templateObject3$l = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 15px;\n margin-top: 25px;\n"])));
|
|
3448
3448
|
var TextContainer$1 = /*#__PURE__*/styled__default.div(_templateObject4$9 || (_templateObject4$9 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n gap: 10px;\n display: flex;\n align-items: center;\n"])));
|
|
3449
3449
|
|
|
@@ -8938,7 +8938,7 @@ function SelectionFilter() {
|
|
|
8938
8938
|
}
|
|
8939
8939
|
}, [accountNumber, urlCustomerId]);
|
|
8940
8940
|
React.useEffect(function () {
|
|
8941
|
-
if (urlCustomerId
|
|
8941
|
+
if (urlCustomerId) {
|
|
8942
8942
|
var filteredClient = clientOptions == null ? void 0 : clientOptions.find(function (client) {
|
|
8943
8943
|
return (client == null ? void 0 : client.value) == urlCustomerId;
|
|
8944
8944
|
});
|
|
@@ -8975,10 +8975,13 @@ function SelectionFilter() {
|
|
|
8975
8975
|
var queryParams = new URLSearchParams({
|
|
8976
8976
|
customerId: selectedClient == null ? void 0 : selectedClient.toString()
|
|
8977
8977
|
});
|
|
8978
|
-
|
|
8979
|
-
|
|
8980
|
-
|
|
8981
|
-
|
|
8978
|
+
var currentSearch = window.location.search;
|
|
8979
|
+
if (!currentSearch.includes('filter')) {
|
|
8980
|
+
// for dev
|
|
8981
|
+
navigate("filter?" + queryParams.toString());
|
|
8982
|
+
// for local
|
|
8983
|
+
// navigate(`/filter?${queryParams.toString()}`);
|
|
8984
|
+
}
|
|
8982
8985
|
}
|
|
8983
8986
|
var selectedClientValue = clientOptions == null ? void 0 : clientOptions.find(function (client) {
|
|
8984
8987
|
return (client == null ? void 0 : client.value) === selectedClient;
|
|
@@ -8993,8 +8996,8 @@ function SelectionFilter() {
|
|
|
8993
8996
|
}) : []);
|
|
8994
8997
|
setLocationOptions(Array.isArray(clientLocations) ? clientLocations == null ? void 0 : clientLocations.map(function (location) {
|
|
8995
8998
|
return {
|
|
8996
|
-
label: location,
|
|
8997
|
-
value: location
|
|
8999
|
+
label: location == null ? void 0 : location.location_name,
|
|
9000
|
+
value: location == null ? void 0 : location.token
|
|
8998
9001
|
};
|
|
8999
9002
|
}) : []);
|
|
9000
9003
|
//client value
|
|
@@ -11606,9 +11609,9 @@ var ReturnTable$1 = function ReturnTable() {
|
|
|
11606
11609
|
fontWeight: (key == null ? void 0 : key.RTS) > 0 ? 600 : 'normal',
|
|
11607
11610
|
cursor: (key == null ? void 0 : key.RTS) > 0 ? 'pointer' : 'default'
|
|
11608
11611
|
},
|
|
11609
|
-
onClick: function
|
|
11612
|
+
onClick: (key == null ? void 0 : key.RTS) > 0 ? function () {
|
|
11610
11613
|
return handleRedirectRTS(key == null ? void 0 : key.customer_id, 'RTS');
|
|
11611
|
-
}
|
|
11614
|
+
} : undefined
|
|
11612
11615
|
}, React__default.createElement(ColumStyle, null, React__default.createElement(GreyBox, {
|
|
11613
11616
|
style: {
|
|
11614
11617
|
backgroundColor: (key == null ? void 0 : key.RTS) > 0 ? 'rgba(99, 150, 229, 0.1)' : 'rgba(153, 153, 153, 0.1)'
|