@bjsdistribution/dms-client-return 0.0.60 → 0.0.61
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/return-after-table/table/OrderTable.d.ts +1 -1
- package/dist/dms-client-return.cjs.development.js +10 -4
- 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 +10 -4
- 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 +6 -0
- package/src/components/order-daily-overview/return-after-table/table/OrderTable.tsx +4 -3
package/package.json
CHANGED
|
@@ -331,6 +331,12 @@ function SelectionFilter() {
|
|
|
331
331
|
value={selectedClient}
|
|
332
332
|
allowClear
|
|
333
333
|
onClear={handleClear}
|
|
334
|
+
filterOption={(input: any, option: any) =>
|
|
335
|
+
(option?.label ?? '')
|
|
336
|
+
.toLowerCase()
|
|
337
|
+
.includes(input.toLowerCase())
|
|
338
|
+
}
|
|
339
|
+
showSearch
|
|
334
340
|
/>
|
|
335
341
|
</FilterColumn>
|
|
336
342
|
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
CustomDrop,
|
|
13
13
|
} from '../../return-order-table/return-orders-filters/returnstyles';
|
|
14
14
|
import LoadIcon from '../../../../assets/icons/LoadIcon';
|
|
15
|
-
import { usePrintOptionTOggle } from '../../store/store';
|
|
15
|
+
import { useLoading, usePrintOptionTOggle } from '../../store/store';
|
|
16
16
|
import { NavLink } from 'react-router-dom';
|
|
17
17
|
import { displayValueOrNA, formatDate } from '../../shared/utlis';
|
|
18
18
|
import PrintDropDown from '../../shared/elements/PrintDropDown';
|
|
@@ -28,7 +28,7 @@ import Loader from '../../header/loader/Loader';
|
|
|
28
28
|
import CaretDownFilledIcon from '../../../../common/CaretDownFilledIcon';
|
|
29
29
|
import SortIcon from '../../../../common/SortIcon';
|
|
30
30
|
|
|
31
|
-
const OrderTable = (
|
|
31
|
+
const OrderTable = () => {
|
|
32
32
|
// const [, setSelectedReturnOrder] = useSelectedOrders();
|
|
33
33
|
// const [selectAll, setSelectAll] = useState(false);
|
|
34
34
|
const dropdownRefParent = useRef<HTMLDivElement>(null);
|
|
@@ -40,6 +40,7 @@ const OrderTable = ({ loadingskeleton }: any) => {
|
|
|
40
40
|
const [assignPayload, setAssignPayload] = useAssignPayload();
|
|
41
41
|
const [, setAssign] = useState<boolean>(false);
|
|
42
42
|
const [, setCallAPi] = useCallApiAgain();
|
|
43
|
+
const [loading] = useLoading();
|
|
43
44
|
|
|
44
45
|
//sorting
|
|
45
46
|
const [sortConfig, setSortConfig] = useState<{
|
|
@@ -254,7 +255,7 @@ const OrderTable = ({ loadingskeleton }: any) => {
|
|
|
254
255
|
</tr>
|
|
255
256
|
</thead>
|
|
256
257
|
<tbody>
|
|
257
|
-
{
|
|
258
|
+
{loading ? (
|
|
258
259
|
<tr>
|
|
259
260
|
<td colSpan={16}>
|
|
260
261
|
<Skeleton active />
|