@bjsdistribution/dms-client-return 0.2.2-prod → 0.2.3-prod
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/expand-collapse/index.js +44 -26
- package/dist/common/expand-collapse/index.js.map +1 -1
- package/dist/common/modals/order-action-modal/OrderActionModal.js.map +1 -1
- package/dist/common/modals/order-action-modal/footer/OrderActionFooter.js.map +1 -1
- package/dist/components/client-portal/ClientPortalResponsive.js +148 -0
- package/dist/components/client-portal/ClientPortalResponsive.js.map +1 -0
- package/dist/components/client-portal/OutstandingTable.js +112 -118
- package/dist/components/client-portal/OutstandingTable.js.map +1 -1
- package/dist/components/client-portal/ReturnOverview.js +38 -37
- package/dist/components/client-portal/ReturnOverview.js.map +1 -1
- package/dist/components/client-portal/return-confirm/ConfirmedMain.js +4 -4
- package/dist/components/client-portal/return-confirm/ConfirmedMain.js.map +1 -1
- package/dist/components/client-portal/return-confirm/ReturnConfirmedTable.js +445 -185
- package/dist/components/client-portal/return-confirm/ReturnConfirmedTable.js.map +1 -1
- package/dist/components/fakeData.js.map +1 -1
- package/dist/components/order-daily-overview/common/fakedata.js.map +1 -1
- package/dist/components/order-daily-overview/common/mediaQuery.js +17 -0
- package/dist/components/order-daily-overview/common/mediaQuery.js.map +1 -0
- package/dist/components/order-daily-overview/filters/FilterStyle.js +174 -11
- package/dist/components/order-daily-overview/filters/FilterStyle.js.map +1 -1
- package/dist/components/order-daily-overview/header/route-header/RouterHeaderStyle.js +9 -4
- package/dist/components/order-daily-overview/header/route-header/RouterHeaderStyle.js.map +1 -1
- package/dist/components/order-daily-overview/header/route-header/title/HeaderTitle.js +11 -1
- package/dist/components/order-daily-overview/header/route-header/title/HeaderTitle.js.map +1 -1
- package/dist/components/order-daily-overview/header-filters/Styledfilters.js +46 -17
- package/dist/components/order-daily-overview/header-filters/Styledfilters.js.map +1 -1
- package/dist/components/order-daily-overview/index.js +76 -53
- package/dist/components/order-daily-overview/index.js.map +1 -1
- package/dist/components/order-daily-overview/return-after-table/table/OrderTable.js +101 -103
- package/dist/components/order-daily-overview/return-after-table/table/OrderTable.js.map +1 -1
- package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.js +135 -134
- package/dist/components/order-daily-overview/return-after-table/table-filters/ReturnOrderFilter.js.map +1 -1
- package/dist/components/order-daily-overview/return-after-table/table-filters/TableFilters.js +17 -11
- package/dist/components/order-daily-overview/return-after-table/table-filters/TableFilters.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnFilter.js +5 -5
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnFilter.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js +129 -135
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/ReturnOrderTable.js.map +1 -1
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js +346 -27
- package/dist/components/order-daily-overview/return-order-table/return-orders-filters/returnstyles.js.map +1 -1
- package/dist/components/order-daily-overview/table/ReturnTable.js +199 -183
- package/dist/components/order-daily-overview/table/ReturnTable.js.map +1 -1
- package/dist/components/order-daily-overview/table/table-data/styles.js +159 -38
- package/dist/components/order-daily-overview/table/table-data/styles.js.map +1 -1
- package/dist/components/order-daily-overview/table-view/PaginationStyle.js +21 -6
- package/dist/components/order-daily-overview/table-view/PaginationStyle.js.map +1 -1
- package/dist/components/order-view/DynamicTable.js +136 -35
- package/dist/components/order-view/DynamicTable.js.map +1 -1
- package/dist/components/order-view/details-filters/DetailsFilters.js +33 -8
- package/dist/components/order-view/details-filters/DetailsFilters.js.map +1 -1
- package/dist/components/order-view/details-filters/left-side-filters/ActionsMenu.js +23 -5
- package/dist/components/order-view/details-filters/left-side-filters/ActionsMenu.js.map +1 -1
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.js +39 -22
- package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.js.map +1 -1
- package/dist/components/order-view/details-filters/right-side-filters/Details.js +25 -12
- package/dist/components/order-view/details-filters/right-side-filters/Details.js.map +1 -1
- package/dist/components/order-view/general-information/Status.js +58 -28
- package/dist/components/order-view/general-information/Status.js.map +1 -1
- package/dist/components/order-view/generic-table/AuditLogs.js +129 -24
- package/dist/components/order-view/generic-table/AuditLogs.js.map +1 -1
- package/dist/components/order-view/notes/logs/index.js +15 -7
- package/dist/components/order-view/notes/logs/index.js.map +1 -1
- package/dist/components/order-view/notes/order-dropdown/NewReturnDropdown.js +7 -7
- package/dist/components/order-view/notes/order-dropdown/NewReturnDropdown.js.map +1 -1
- package/dist/components/order-view/notification/index.js +68 -55
- package/dist/components/order-view/notification/index.js.map +1 -1
- package/dist/components/order-view/order-actions/Dropdown.js +3 -3
- package/dist/components/order-view/order-actions/Dropdown.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.js +45 -47
- package/dist/components/order-view/order-actions/actions/cancel-order/CancelOrderTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/cancel-order/ReturnReason.js +23 -36
- package/dist/components/order-view/order-actions/actions/cancel-order/ReturnReason.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/confirm-order/tables/ProductTable.js +23 -25
- package/dist/components/order-view/order-actions/actions/confirm-order/tables/ProductTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/ForceDebriefModal.js +88 -89
- package/dist/components/order-view/order-actions/actions/force-debrief/ForceDebriefModal.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/charges/collection-add-ons/index.js +16 -16
- package/dist/components/order-view/order-actions/actions/force-debrief/charges/collection-add-ons/index.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/escalation/EscalationReason.js +22 -23
- package/dist/components/order-view/order-actions/actions/force-debrief/escalation/EscalationReason.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/RadioButtons.js +52 -56
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/RadioButtons.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/dropdowns/FailureReasonDropdown.js +26 -27
- package/dist/components/order-view/order-actions/actions/force-debrief/order-info/dropdowns/FailureReasonDropdown.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/hold-order/HoldOrderModal.js +29 -29
- package/dist/components/order-view/order-actions/actions/hold-order/HoldOrderModal.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/split-order/SplitOrderTable.js +54 -222
- package/dist/components/order-view/order-actions/actions/split-order/SplitOrderTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/split-order/index.js +37 -50
- package/dist/components/order-view/order-actions/actions/split-order/index.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/uncancel-order/UncancelOrderTable.js +35 -37
- package/dist/components/order-view/order-actions/actions/uncancel-order/UncancelOrderTable.js.map +1 -1
- package/dist/components/order-view/order-actions/actions/what3words/What3WordsModal.tsx.js +85 -85
- package/dist/components/order-view/order-actions/actions/what3words/What3WordsModal.tsx.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.js +12 -8
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactHome.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.js +22 -18
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/ContactMobile.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/index.js +14 -8
- package/dist/components/order-view/order-details/expanded-content/customer-section/contact-info/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/index.js +19 -13
- package/dist/components/order-view/order-details/expanded-content/customer-section/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Address.js +11 -6
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Address.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.js +23 -21
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Latitude.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.js +23 -21
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/Longitude.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/index.js +39 -21
- package/dist/components/order-view/order-details/expanded-content/customer-section/location-info/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/footer/index.js +28 -14
- package/dist/components/order-view/order-details/expanded-content/footer/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/orders-section/index.js +44 -28
- package/dist/components/order-view/order-details/expanded-content/orders-section/index.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/OrderServices.js +28 -20
- package/dist/components/order-view/order-details/expanded-content/services-section/OrderServices.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceLevel.js +17 -18
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceLevel.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceType.js +22 -26
- package/dist/components/order-view/order-details/expanded-content/services-section/ServiceType.js.map +1 -1
- package/dist/components/order-view/order-details/expanded-content/services-section/index.js +79 -25
- package/dist/components/order-view/order-details/expanded-content/services-section/index.js.map +1 -1
- package/dist/components/order-view/order-details/helper.js.map +1 -1
- package/dist/components/order-view/products-info/collapsed-content/index.js +21 -15
- package/dist/components/order-view/products-info/collapsed-content/index.js.map +1 -1
- package/dist/components/order-view/products-info/index.js +36 -36
- package/dist/components/order-view/products-info/index.js.map +1 -1
- package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.js +265 -334
- package/dist/components/order-view/return-client-products/product-table/ReturnProductTable.js.map +1 -1
- package/dist/components/order-view/store.js +155 -162
- package/dist/components/order-view/store.js.map +1 -1
- package/dist/components/order-view/toolbox-resources/expanded-content/index.js +281 -173
- package/dist/components/order-view/toolbox-resources/expanded-content/index.js.map +1 -1
- package/dist/components/utils.js +5 -4
- package/dist/components/utils.js.map +1 -1
- package/dist/types/common/modals/order-action-modal/OrderActionModal.d.ts +1 -2
- package/dist/types/common/modals/order-action-modal/footer/OrderActionFooter.d.ts +1 -1
- package/dist/types/components/client-portal/ClientPortalResponsive.d.ts +15 -0
- package/dist/types/components/order-daily-overview/common/mediaQuery.d.ts +4 -0
- package/dist/types/components/order-daily-overview/filters/FilterStyle.d.ts +1 -0
- package/dist/types/components/order-view/order-actions/Dropdown.d.ts +0 -1
- package/dist/types/components/order-view/return-client-products/product-table/ReturnProductTable.d.ts +1 -0
- package/dist/types/components/order-view/store.d.ts +0 -1
- package/dist/types/components/order-view/types.d.ts +1 -1
- package/dist/types/components/utils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/assets/icons/ChevronDownIcon.js +0 -26
- package/dist/assets/icons/ChevronDownIcon.js.map +0 -1
- package/dist/components/order-view/return-client-products/product-table/palletGrouping.js +0 -47
- package/dist/components/order-view/return-client-products/product-table/palletGrouping.js.map +0 -1
- package/dist/types/components/order-view/return-client-products/product-table/palletGrouping.d.ts +0 -23
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useReactTable as
|
|
1
|
+
import { jsx as e, jsxs as T } from "react/jsx-runtime";
|
|
2
|
+
import { useReactTable as k, getSortedRowModel as R, getCoreRowModel as D, flexRender as h } from "@tanstack/react-table";
|
|
3
3
|
import { useMemo as x } from "react";
|
|
4
4
|
import o from "styled-components";
|
|
5
|
-
import
|
|
6
|
-
import { atom as
|
|
7
|
-
import { Skeleton as
|
|
8
|
-
const N =
|
|
9
|
-
function O({ columns:
|
|
10
|
-
const
|
|
11
|
-
columns:
|
|
5
|
+
import S from "../../common/scrollbar/index.js";
|
|
6
|
+
import { atom as j, useAtom as z } from "jotai";
|
|
7
|
+
import { Skeleton as M } from "antd";
|
|
8
|
+
const N = j([]);
|
|
9
|
+
function O({ columns: a, data: l, loading: f }, r) {
|
|
10
|
+
const u = x(() => a, [a]), w = x(() => l, [l]), s = k({
|
|
11
|
+
columns: u,
|
|
12
12
|
data: w,
|
|
13
|
-
getCoreRowModel:
|
|
14
|
-
getSortedRowModel:
|
|
15
|
-
}),
|
|
13
|
+
getCoreRowModel: D(),
|
|
14
|
+
getSortedRowModel: R()
|
|
15
|
+
}), n = s.getRowModel().rows, y = s.getHeaderGroups(), v = r, [c] = z(N), p = [
|
|
16
16
|
"types",
|
|
17
17
|
"sources",
|
|
18
18
|
"event",
|
|
@@ -20,51 +20,52 @@ function O({ columns: i, data: s, loading: u }, a) {
|
|
|
20
20
|
"type",
|
|
21
21
|
"route",
|
|
22
22
|
"action"
|
|
23
|
-
], m = ["date", "reference", "note", "category"],
|
|
24
|
-
return console.log(
|
|
25
|
-
/* @__PURE__ */
|
|
23
|
+
], m = ["date", "reference", "note", "category"], b = ["details", "datetime"], C = ["id"];
|
|
24
|
+
return console.log(n, "<===========rows"), console.log(r, "props"), /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(H, { className: "mobile-table-container", children: /* @__PURE__ */ e($, { className: "mobile-table-wrapper", children: /* @__PURE__ */ e(S, { children: /* @__PURE__ */ T(G, { children: [
|
|
25
|
+
/* @__PURE__ */ e(A, { children: y?.map((i) => /* @__PURE__ */ e(d, { children: i.headers.map((t) => /* @__PURE__ */ e(
|
|
26
26
|
F,
|
|
27
27
|
{
|
|
28
28
|
className: `col
|
|
29
|
-
${p.includes(
|
|
30
|
-
onClick:
|
|
29
|
+
${p.includes(t?.id) ? "sm" : m.includes(t?.id) ? "md" : b.includes(t?.id) ? "lg" : ""}`,
|
|
30
|
+
onClick: t.column.getToggleSortingHandler(),
|
|
31
31
|
children: h(
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
t.column.columnDef.header,
|
|
33
|
+
t.getContext()
|
|
34
34
|
)
|
|
35
35
|
},
|
|
36
|
-
|
|
37
|
-
)) },
|
|
38
|
-
/* @__PURE__ */
|
|
36
|
+
t.id
|
|
37
|
+
)) }, i.id)) }),
|
|
38
|
+
/* @__PURE__ */ e(B, { children: f ? /* @__PURE__ */ e("tr", { children: /* @__PURE__ */ e("td", { colSpan: 5, children: /* @__PURE__ */ e(M, { active: !0 }) }) }) : n?.length === 0 ? /* @__PURE__ */ e(d, { children: /* @__PURE__ */ e(g, { colSpan: a.length, children: "No entries found." }) }) : n?.map((i) => /* @__PURE__ */ e(
|
|
39
39
|
d,
|
|
40
40
|
{
|
|
41
|
-
className:
|
|
42
|
-
(
|
|
41
|
+
className: `data-row ${c?.length > 0 && c?.filter(
|
|
42
|
+
(t) => t?.id === i?.original?.id
|
|
43
43
|
)?.length ? "isSelectedRow" : ""}`,
|
|
44
|
-
children:
|
|
45
|
-
|
|
44
|
+
children: i.getVisibleCells().map((t) => /* @__PURE__ */ e(
|
|
45
|
+
g,
|
|
46
46
|
{
|
|
47
47
|
className: `col
|
|
48
|
-
${
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
${C.includes(t?.column.id) ? "noFlex" : p.includes(t?.column.id) ? "sm" : m.includes(t?.column.id) ? "md" : b.includes(t?.column.id) ? "lg" : ""} ${t?.column.id}`,
|
|
49
|
+
"data-label": typeof t.column.columnDef.header == "string" ? t.column.columnDef.header : void 0,
|
|
50
|
+
children: h(t.column.columnDef.cell, {
|
|
51
|
+
...t.getContext(),
|
|
52
|
+
action: v
|
|
52
53
|
})
|
|
53
54
|
},
|
|
54
|
-
|
|
55
|
+
t.id
|
|
55
56
|
))
|
|
56
57
|
},
|
|
57
|
-
|
|
58
|
+
i.id
|
|
58
59
|
)) })
|
|
59
60
|
] }) }) }) }) });
|
|
60
61
|
}
|
|
61
|
-
const
|
|
62
|
+
const H = o.div`
|
|
62
63
|
height: 30vh;
|
|
63
64
|
pointer-events: initial;
|
|
64
65
|
@media (max-width: 1024px) {
|
|
65
66
|
height: 40vh;
|
|
66
67
|
}
|
|
67
|
-
`,
|
|
68
|
+
`, $ = o.div`
|
|
68
69
|
height: 100%;
|
|
69
70
|
overflow-x: auto;
|
|
70
71
|
scrollbar-width: thin;
|
|
@@ -77,7 +78,7 @@ const $ = o.div`
|
|
|
77
78
|
font-weight: 500;
|
|
78
79
|
line-height: 24px;
|
|
79
80
|
letter-spacing: 0px;
|
|
80
|
-
`,
|
|
81
|
+
`, g = o.td`
|
|
81
82
|
border-spacing: 0px;
|
|
82
83
|
padding: 10px 5px;
|
|
83
84
|
font-family: 'Lato', sans-serif;
|
|
@@ -109,6 +110,106 @@ const $ = o.div`
|
|
|
109
110
|
background: rgb(255, 255, 255);
|
|
110
111
|
box-shadow: 0px 4px 30px 0px #2e2d740d;
|
|
111
112
|
`, I = o.div`
|
|
113
|
+
@media screen and (max-width: 768px) {
|
|
114
|
+
.mobile-table-container {
|
|
115
|
+
height: auto;
|
|
116
|
+
}
|
|
117
|
+
.mobile-table-wrapper {
|
|
118
|
+
height: auto;
|
|
119
|
+
max-height: 60vh;
|
|
120
|
+
overflow-x: hidden;
|
|
121
|
+
overflow-y: auto;
|
|
122
|
+
border-radius: 0;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.mobile-table-wrapper > div,
|
|
126
|
+
.mobile-table-wrapper > div > div:first-child {
|
|
127
|
+
position: static !important;
|
|
128
|
+
height: auto !important;
|
|
129
|
+
overflow: visible !important;
|
|
130
|
+
margin: 0 !important;
|
|
131
|
+
inset: auto !important;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
table,
|
|
135
|
+
thead,
|
|
136
|
+
tbody {
|
|
137
|
+
display: block;
|
|
138
|
+
width: 100%;
|
|
139
|
+
min-width: 0;
|
|
140
|
+
height: auto;
|
|
141
|
+
box-shadow: none;
|
|
142
|
+
}
|
|
143
|
+
table {
|
|
144
|
+
background: transparent;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
/* header hidden visually, still available to screen readers */
|
|
148
|
+
thead {
|
|
149
|
+
position: absolute;
|
|
150
|
+
width: 1px;
|
|
151
|
+
height: 1px;
|
|
152
|
+
margin: -1px;
|
|
153
|
+
padding: 0;
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
clip: rect(0, 0, 0, 0);
|
|
156
|
+
white-space: nowrap;
|
|
157
|
+
border: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
tbody tr.data-row {
|
|
161
|
+
display: block;
|
|
162
|
+
width: 100%;
|
|
163
|
+
box-sizing: border-box;
|
|
164
|
+
margin-bottom: 12px;
|
|
165
|
+
padding: 10px 12px;
|
|
166
|
+
border: 1px solid #e3e3e3;
|
|
167
|
+
border-radius: 12px;
|
|
168
|
+
background: #fff;
|
|
169
|
+
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
tbody tr.data-row td.col {
|
|
173
|
+
display: flex;
|
|
174
|
+
flex: none;
|
|
175
|
+
align-items: flex-start;
|
|
176
|
+
justify-content: space-between;
|
|
177
|
+
gap: 12px;
|
|
178
|
+
width: 100%;
|
|
179
|
+
min-width: 0;
|
|
180
|
+
box-sizing: border-box;
|
|
181
|
+
padding: 8px 0;
|
|
182
|
+
border: 0;
|
|
183
|
+
border-bottom: 1px solid #f0f2f2;
|
|
184
|
+
text-align: right;
|
|
185
|
+
word-break: break-word;
|
|
186
|
+
white-space: normal;
|
|
187
|
+
}
|
|
188
|
+
tbody tr.data-row td.col:last-child {
|
|
189
|
+
border-bottom: 0;
|
|
190
|
+
justify-content: flex-end;
|
|
191
|
+
}
|
|
192
|
+
tbody tr.data-row td.col:empty {
|
|
193
|
+
display: none;
|
|
194
|
+
}
|
|
195
|
+
tbody tr.data-row td[data-label]::before {
|
|
196
|
+
content: attr(data-label);
|
|
197
|
+
flex: 0 0 38%;
|
|
198
|
+
text-align: left;
|
|
199
|
+
font-size: 12px;
|
|
200
|
+
font-weight: 600;
|
|
201
|
+
text-transform: uppercase;
|
|
202
|
+
color: #6a7378;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/* loading / empty rows */
|
|
206
|
+
tbody > tr:not(.data-row),
|
|
207
|
+
tbody > tr:not(.data-row) td {
|
|
208
|
+
display: block;
|
|
209
|
+
width: 100%;
|
|
210
|
+
box-sizing: border-box;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
112
213
|
.col {
|
|
113
214
|
display: flex;
|
|
114
215
|
align-items: center;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DynamicTable.js","sources":["../../../src/components/order-view/DynamicTable.tsx"],"sourcesContent":["import {\n flexRender,\n getCoreRowModel,\n getSortedRowModel,\n useReactTable,\n} from '@tanstack/react-table';\nimport React, { useMemo } from 'react';\nimport styled from 'styled-components';\nimport CustomScrollBar from '../../common/scrollbar';\nimport { atom, useAtom } from 'jotai';\nimport { Skeleton } from 'antd';\nexport const selectedID = atom<any>([]);\n\ninterface DynamicTableProps {\n columns: any;\n data: any[];\n loading: boolean;\n}\n\nfunction DynamicTable(\n { columns, data, loading }: DynamicTableProps,\n props: any\n) {\n const tableColumns = useMemo(() => columns, [columns]);\n const tableData = useMemo(() => data, [data]);\n\n const table = useReactTable({\n columns: tableColumns,\n data: tableData,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n });\n\n const rows = table.getRowModel().rows;\n const headerGroups = table.getHeaderGroups();\n const action = props;\n const [selectedRows] = useAtom(selectedID);\n\n const smallColumns = [\n 'types',\n 'sources',\n 'event',\n 'code',\n 'type',\n 'route',\n 'action',\n ];\n const mediumColumns = ['date', 'reference', 'note', 'category'];\n const largeColumns = ['details', 'datetime'];\n const noFlexColumns = ['id'];\n\n console.log(rows, '<===========rows');\n console.log(props, 'props');\n return (\n <MainContainer>\n <Container>\n <TableWrapper>\n <CustomScrollBar>\n <Table>\n <TableHead>\n {headerGroups?.map(headerGroup => (\n <TableRow key={headerGroup.id}>\n {headerGroup.headers.map(header => (\n <TableHeadData\n className={`col \n ${\n smallColumns.includes(header?.id)\n ? 'sm'\n : mediumColumns.includes(header?.id)\n ? 'md'\n : largeColumns.includes(header?.id)\n ? 'lg'\n : ''\n }`}\n key={header.id}\n onClick={header.column.getToggleSortingHandler()}\n >\n {flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </TableHeadData>\n ))}\n </TableRow>\n ))}\n </TableHead>\n <TableBody>\n {loading ? (\n <tr>\n <td colSpan={5}>\n <Skeleton active />\n </td>\n </tr>\n ) : rows?.length === 0 ? (\n <TableRow>\n <TableData colSpan={columns.length}>\n No entries found.\n </TableData>\n </TableRow>\n ) : (\n rows?.map(row => (\n <TableRow\n key={row.id}\n className={`${\n selectedRows?.length > 0 &&\n selectedRows?.filter(\n (f: any) => f?.id === (row?.original as any)?.id\n )?.length\n ? 'isSelectedRow'\n : ''\n }`}\n >\n {row.getVisibleCells().map(cell => (\n <TableData\n className={`col \n ${\n noFlexColumns.includes(cell?.column.id)\n ? 'noFlex'\n : smallColumns.includes(cell?.column.id)\n ? 'sm'\n : mediumColumns.includes(cell?.column.id)\n ? 'md'\n : largeColumns.includes(cell?.column.id)\n ? 'lg'\n : ''\n } ${cell?.column.id}`}\n key={cell.id}\n >\n {flexRender(cell.column.columnDef.cell, {\n ...cell.getContext(),\n action,\n })}\n </TableData>\n ))}\n </TableRow>\n ))\n )}\n </TableBody>\n </Table>\n </CustomScrollBar>\n </TableWrapper>\n </Container>\n </MainContainer>\n );\n}\n\nconst Container = styled.div`\n height: 30vh;\n pointer-events: initial;\n @media (max-width: 1024px) {\n height: 40vh;\n }\n`;\n\nconst TableWrapper = styled.div`\n height: 100%;\n overflow-x: auto;\n scrollbar-width: thin;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n`;\n\nconst TableHeadData = styled.th`\n padding: 10px 5px;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n letter-spacing: 0px;\n`;\n\nconst TableData = styled.td`\n border-spacing: 0px;\n padding: 10px 5px;\n font-family: 'Lato', sans-serif;\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n letter-spacing: 0px;\n`;\n\nconst TableRow = styled.tr`\n display: flex;\n align-items: stretch;\n width: 100%;\n border-bottom: 1px solid rgb(215, 214, 213);\n font-weight: 300;\n`;\n\nconst TableBody = styled.tbody`\n border-bottom-right-radius: 10px;\n background: rgb(255, 255, 255);\n height: 96%;\n overflow: auto;\n width: 100%;\n`;\n\nconst TableHead = styled.thead`\n position: sticky;\n top: 0px;\n z-index: 1;\n background: #f8f8f8;\n white-space: nowrap;\n`;\n\nconst Table = styled.table`\n width: 100%;\n height: 50%;\n background: rgb(255, 255, 255);\n box-shadow: 0px 4px 30px 0px #2e2d740d;\n`;\n\nconst MainContainer = styled.div`\n .col {\n display: flex;\n align-items: center;\n color: #3a3630;\n padding: 10px 5px;\n text-align: left;\n }\n\n .col.noFlex {\n flex: 0;\n }\n\n .col.sm {\n flex: 1;\n min-width: 100px;\n }\n\n .col.md {\n flex: 2;\n justify-content: flex-start;\n min-width: 85px;\n }\n\n .col.lg {\n flex: 4;\n justify-content: flex-start;\n min-width: 180px;\n }\n\n .col.date {\n }\n\n .col.amount,\n .col.price {\n justify-content: flex-end;\n }\n\n .TableHeadData,\n .TableData {\n padding: 10px 5px;\n text-align: left;\n white-space: nowrap;\n }\n\n .TableRow {\n display: flex;\n width: 100%;\n }\n\n .Table {\n width: 100%;\n }\n`;\n\nexport default DynamicTable;\n"],"names":["selectedID","atom","DynamicTable","columns","data","loading","props","tableColumns","useMemo","tableData","table","useReactTable","getCoreRowModel","getSortedRowModel","rows","headerGroups","action","selectedRows","useAtom","smallColumns","mediumColumns","largeColumns","noFlexColumns","jsx","MainContainer","Container","TableWrapper","CustomScrollBar","jsxs","Table","TableHead","headerGroup","TableRow","header","TableHeadData","flexRender","TableBody","Skeleton","TableData","row","f","cell","styled"],"mappings":";;;;;;;AAWO,MAAMA,IAAaC,EAAU,CAAA,CAAE;AAQtC,SAASC,EACP,EAAE,SAAAC,GAAS,MAAAC,GAAM,SAAAC,EAAA,GACjBC,GACA;AACA,QAAMC,I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AAAA,GAQnBhB,IAAegB,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQtBR,IAAgBQ,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASvBJ,IAAYI,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUnBV,IAAWU,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQlBN,IAAYM,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQnBZ,IAAYY,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQnBb,IAAQa,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,GAOflB,IAAgBkB,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"DynamicTable.js","sources":["../../../src/components/order-view/DynamicTable.tsx"],"sourcesContent":["import {\n flexRender,\n getCoreRowModel,\n getSortedRowModel,\n useReactTable,\n} from '@tanstack/react-table';\nimport React, { useMemo } from 'react';\nimport styled from 'styled-components';\nimport CustomScrollBar from '../../common/scrollbar';\nimport { atom, useAtom } from 'jotai';\nimport { Skeleton } from 'antd';\nexport const selectedID = atom<any>([]);\n\ninterface DynamicTableProps {\n columns: any;\n data: any[];\n loading: boolean;\n}\n\nfunction DynamicTable(\n { columns, data, loading }: DynamicTableProps,\n props: any\n) {\n const tableColumns = useMemo(() => columns, [columns]);\n const tableData = useMemo(() => data, [data]);\n\n const table = useReactTable({\n columns: tableColumns,\n data: tableData,\n getCoreRowModel: getCoreRowModel(),\n getSortedRowModel: getSortedRowModel(),\n });\n\n const rows = table.getRowModel().rows;\n const headerGroups = table.getHeaderGroups();\n const action = props;\n const [selectedRows] = useAtom(selectedID);\n\n const smallColumns = [\n 'types',\n 'sources',\n 'event',\n 'code',\n 'type',\n 'route',\n 'action',\n ];\n const mediumColumns = ['date', 'reference', 'note', 'category'];\n const largeColumns = ['details', 'datetime'];\n const noFlexColumns = ['id'];\n\n console.log(rows, '<===========rows');\n console.log(props, 'props');\n return (\n <MainContainer>\n <Container className=\"mobile-table-container\">\n <TableWrapper className=\"mobile-table-wrapper\">\n <CustomScrollBar>\n <Table>\n <TableHead>\n {headerGroups?.map(headerGroup => (\n <TableRow key={headerGroup.id}>\n {headerGroup.headers.map(header => (\n <TableHeadData\n className={`col \n ${\n smallColumns.includes(header?.id)\n ? 'sm'\n : mediumColumns.includes(header?.id)\n ? 'md'\n : largeColumns.includes(header?.id)\n ? 'lg'\n : ''\n }`}\n key={header.id}\n onClick={header.column.getToggleSortingHandler()}\n >\n {flexRender(\n header.column.columnDef.header,\n header.getContext()\n )}\n </TableHeadData>\n ))}\n </TableRow>\n ))}\n </TableHead>\n <TableBody>\n {loading ? (\n <tr>\n <td colSpan={5}>\n <Skeleton active />\n </td>\n </tr>\n ) : rows?.length === 0 ? (\n <TableRow>\n <TableData colSpan={columns.length}>\n No entries found.\n </TableData>\n </TableRow>\n ) : (\n rows?.map(row => (\n <TableRow\n key={row.id}\n className={`data-row ${\n selectedRows?.length > 0 &&\n selectedRows?.filter(\n (f: any) => f?.id === (row?.original as any)?.id\n )?.length\n ? 'isSelectedRow'\n : ''\n }`}\n >\n {row.getVisibleCells().map(cell => (\n <TableData\n className={`col \n ${\n noFlexColumns.includes(cell?.column.id)\n ? 'noFlex'\n : smallColumns.includes(cell?.column.id)\n ? 'sm'\n : mediumColumns.includes(cell?.column.id)\n ? 'md'\n : largeColumns.includes(cell?.column.id)\n ? 'lg'\n : ''\n } ${cell?.column.id}`}\n key={cell.id}\n data-label={\n typeof cell.column.columnDef.header === 'string'\n ? cell.column.columnDef.header\n : undefined\n }\n >\n {flexRender(cell.column.columnDef.cell, {\n ...cell.getContext(),\n action,\n })}\n </TableData>\n ))}\n </TableRow>\n ))\n )}\n </TableBody>\n </Table>\n </CustomScrollBar>\n </TableWrapper>\n </Container>\n </MainContainer>\n );\n}\n\nconst Container = styled.div`\n height: 30vh;\n pointer-events: initial;\n @media (max-width: 1024px) {\n height: 40vh;\n }\n`;\n\nconst TableWrapper = styled.div`\n height: 100%;\n overflow-x: auto;\n scrollbar-width: thin;\n border-top-left-radius: 15px;\n border-top-right-radius: 15px;\n`;\n\nconst TableHeadData = styled.th`\n padding: 10px 5px;\n font-family: 'Roboto', sans-serif;\n font-size: 14px;\n font-weight: 500;\n line-height: 24px;\n letter-spacing: 0px;\n`;\n\nconst TableData = styled.td`\n border-spacing: 0px;\n padding: 10px 5px;\n font-family: 'Lato', sans-serif;\n font-size: 13px;\n font-weight: 400;\n line-height: 16px;\n letter-spacing: 0px;\n`;\n\nconst TableRow = styled.tr`\n display: flex;\n align-items: stretch;\n width: 100%;\n border-bottom: 1px solid rgb(215, 214, 213);\n font-weight: 300;\n`;\n\nconst TableBody = styled.tbody`\n border-bottom-right-radius: 10px;\n background: rgb(255, 255, 255);\n height: 96%;\n overflow: auto;\n width: 100%;\n`;\n\nconst TableHead = styled.thead`\n position: sticky;\n top: 0px;\n z-index: 1;\n background: #f8f8f8;\n white-space: nowrap;\n`;\n\nconst Table = styled.table`\n width: 100%;\n height: 50%;\n background: rgb(255, 255, 255);\n box-shadow: 0px 4px 30px 0px #2e2d740d;\n`;\n\nconst MainContainer = styled.div`\n @media screen and (max-width: 768px) {\n .mobile-table-container {\n height: auto;\n }\n .mobile-table-wrapper {\n height: auto;\n max-height: 60vh;\n overflow-x: hidden;\n overflow-y: auto;\n border-radius: 0;\n }\n \n .mobile-table-wrapper > div,\n .mobile-table-wrapper > div > div:first-child {\n position: static !important;\n height: auto !important;\n overflow: visible !important;\n margin: 0 !important;\n inset: auto !important;\n }\n\n table,\n thead,\n tbody {\n display: block;\n width: 100%;\n min-width: 0;\n height: auto;\n box-shadow: none;\n }\n table {\n background: transparent;\n }\n\n /* header hidden visually, still available to screen readers */\n thead {\n position: absolute;\n width: 1px;\n height: 1px;\n margin: -1px;\n padding: 0;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border: 0;\n }\n\n tbody tr.data-row {\n display: block;\n width: 100%;\n box-sizing: border-box;\n margin-bottom: 12px;\n padding: 10px 12px;\n border: 1px solid #e3e3e3;\n border-radius: 12px;\n background: #fff;\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n }\n\n tbody tr.data-row td.col {\n display: flex;\n flex: none;\n align-items: flex-start;\n justify-content: space-between;\n gap: 12px;\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n padding: 8px 0;\n border: 0;\n border-bottom: 1px solid #f0f2f2;\n text-align: right;\n word-break: break-word;\n white-space: normal;\n }\n tbody tr.data-row td.col:last-child {\n border-bottom: 0;\n justify-content: flex-end;\n }\n tbody tr.data-row td.col:empty {\n display: none;\n }\n tbody tr.data-row td[data-label]::before {\n content: attr(data-label);\n flex: 0 0 38%;\n text-align: left;\n font-size: 12px;\n font-weight: 600;\n text-transform: uppercase;\n color: #6a7378;\n }\n\n /* loading / empty rows */\n tbody > tr:not(.data-row),\n tbody > tr:not(.data-row) td {\n display: block;\n width: 100%;\n box-sizing: border-box;\n }\n }\n .col {\n display: flex;\n align-items: center;\n color: #3a3630;\n padding: 10px 5px;\n text-align: left;\n }\n\n .col.noFlex {\n flex: 0;\n }\n\n .col.sm {\n flex: 1;\n min-width: 100px;\n }\n\n .col.md {\n flex: 2;\n justify-content: flex-start;\n min-width: 85px;\n }\n\n .col.lg {\n flex: 4;\n justify-content: flex-start;\n min-width: 180px;\n }\n\n .col.date {\n }\n\n .col.amount,\n .col.price {\n justify-content: flex-end;\n }\n\n .TableHeadData,\n .TableData {\n padding: 10px 5px;\n text-align: left;\n white-space: nowrap;\n }\n\n .TableRow {\n display: flex;\n width: 100%;\n }\n\n .Table {\n width: 100%;\n }\n`;\n\nexport default DynamicTable;\n"],"names":["selectedID","atom","DynamicTable","columns","data","loading","props","tableColumns","useMemo","tableData","table","useReactTable","getCoreRowModel","getSortedRowModel","rows","headerGroups","action","selectedRows","useAtom","smallColumns","mediumColumns","largeColumns","noFlexColumns","jsx","MainContainer","Container","TableWrapper","CustomScrollBar","Table","TableHead","headerGroup","TableRow","header","TableHeadData","flexRender","TableBody","Skeleton","TableData","row","f","cell","styled"],"mappings":";;;;;;;AAWO,MAAMA,IAAaC,EAAU,CAAA,CAAE;AAQtC,SAASC,EACP,EAAE,SAAAC,GAAS,MAAAC,GAAM,SAAAC,EAAA,GACjBC,GACA;AACA,QAAMC,IAAeC,EAAQ,MAAML,GAAS,CAACA,CAAO,CAAC,GAC/CM,IAAYD,EAAQ,MAAMJ,GAAM,CAACA,CAAI,CAAC,GAEtCM,IAAQC,EAAc;AAAA,IAC1B,SAASJ;AAAA,IACT,MAAME;AAAA,IACN,iBAAiBG,EAAA;AAAA,IACjB,mBAAmBC,EAAA;AAAA,EAAkB,CACtC,GAEKC,IAAOJ,EAAM,YAAA,EAAc,MAC3BK,IAAeL,EAAM,gBAAA,GACrBM,IAASV,GACT,CAACW,CAAY,IAAIC,EAAQlB,CAAU,GAEnCmB,IAAe;AAAA,IACnB;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EAAA,GAEIC,IAAgB,CAAC,QAAQ,aAAa,QAAQ,UAAU,GACxDC,IAAe,CAAC,WAAW,UAAU,GACrCC,IAAgB,CAAC,IAAI;AAE3B,iBAAQ,IAAIR,GAAM,kBAAkB,GACpC,QAAQ,IAAIR,GAAO,OAAO,GAExB,gBAAAiB,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACE,GAAA,EAA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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { jsxs as t, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import r from "styled-components";
|
|
3
|
+
import e from "./right-side-filters/Details.js";
|
|
4
4
|
import o from "./left-side-filters/ActionsMenu.js";
|
|
5
|
-
const
|
|
6
|
-
/* @__PURE__ */ e
|
|
7
|
-
/* @__PURE__ */
|
|
8
|
-
] }),
|
|
5
|
+
const s = () => /* @__PURE__ */ t(d, { children: [
|
|
6
|
+
/* @__PURE__ */ i(e, {}),
|
|
7
|
+
/* @__PURE__ */ i(o, {})
|
|
8
|
+
] }), d = r.div`
|
|
9
9
|
border-radius: 40px;
|
|
10
10
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
11
11
|
background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
|
|
@@ -23,8 +23,33 @@ const d = () => /* @__PURE__ */ r(p, { children: [
|
|
|
23
23
|
margin-left: 21px;
|
|
24
24
|
top: -132px;
|
|
25
25
|
justify-content: space-between;
|
|
26
|
+
|
|
27
|
+
@media screen and (max-width: 992px) {
|
|
28
|
+
flex-direction: column;
|
|
29
|
+
align-items: flex-start;
|
|
30
|
+
border-radius: 24px;
|
|
31
|
+
gap: 8px;
|
|
32
|
+
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
width: calc(100% - 32px);
|
|
35
|
+
margin-left: 16px;
|
|
36
|
+
|
|
37
|
+
top: 0;
|
|
38
|
+
margin-bottom: 0;
|
|
39
|
+
|
|
40
|
+
> div {
|
|
41
|
+
width: 100%;
|
|
42
|
+
min-width: 0;
|
|
43
|
+
box-sizing: border-box;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
> div:last-child {
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
overflow-x: auto;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
26
51
|
`;
|
|
27
52
|
export {
|
|
28
|
-
|
|
53
|
+
s as default
|
|
29
54
|
};
|
|
30
55
|
//# sourceMappingURL=DetailsFilters.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DetailsFilters.js","sources":["../../../../src/components/order-view/details-filters/DetailsFilters.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport Details from './right-side-filters/Details';\nimport ActionsMenu from './left-side-filters/ActionsMenu';\n\nconst DetailsFilters = () => {\n return (\n <Flex>\n <Details />\n <ActionsMenu />\n </Flex>\n );\n};\n\nconst Flex = styled.div`\n border-radius: 40px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);\n\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n /* z-index: 9999; */\n display: flex;\n padding: 10px;\n flex-direction: row;\n gap: 10px;\n align-self: stretch;\n position: relative;\n margin-bottom: -71px;\n width: 97%;\n margin-left: 21px;\n top: -132px;\n justify-content: space-between;\n`;\nexport default DetailsFilters;\n"],"names":["DetailsFilters","Flex","jsx","Details","ActionsMenu","styled"],"mappings":";;;;AAKA,MAAMA,IAAiB,wBAElBC,GAAA,EACC,UAAA;AAAA,EAAA,gBAAAC,EAACC,GAAA,EAAQ;AAAA,oBACRC,GAAA,CAAA,CAAY;AAAA,GACf,GAIEH,IAAOI,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"DetailsFilters.js","sources":["../../../../src/components/order-view/details-filters/DetailsFilters.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport Details from './right-side-filters/Details';\nimport ActionsMenu from './left-side-filters/ActionsMenu';\n\nconst DetailsFilters = () => {\n return (\n <Flex>\n <Details />\n <ActionsMenu />\n </Flex>\n );\n};\n\nconst Flex = styled.div`\n border-radius: 40px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);\n\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n /* z-index: 9999; */\n display: flex;\n padding: 10px;\n flex-direction: row;\n gap: 10px;\n align-self: stretch;\n position: relative;\n margin-bottom: -71px;\n width: 97%;\n margin-left: 21px;\n top: -132px;\n justify-content: space-between;\n\n @media screen and (max-width: 992px) {\n flex-direction: column;\n align-items: flex-start;\n border-radius: 24px;\n gap: 8px;\n\n box-sizing: border-box;\n width: calc(100% - 32px);\n margin-left: 16px;\n\n top: 0;\n margin-bottom: 0;\n\n > div {\n width: 100%;\n min-width: 0;\n box-sizing: border-box;\n }\n\n > div:last-child {\n max-width: 100%;\n overflow-x: auto;\n }\n }\n`;\nexport default DetailsFilters;\n"],"names":["DetailsFilters","Flex","jsx","Details","ActionsMenu","styled"],"mappings":";;;;AAKA,MAAMA,IAAiB,wBAElBC,GAAA,EACC,UAAA;AAAA,EAAA,gBAAAC,EAACC,GAAA,EAAQ;AAAA,oBACRC,GAAA,CAAA,CAAY;AAAA,GACf,GAIEH,IAAOI,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import r from "styled-components";
|
|
3
|
+
import e from "./dropdowns/DropDowns.js";
|
|
4
|
+
const n = () => /* @__PURE__ */ o(i, { children: /* @__PURE__ */ o(e, {}) }), i = r.div`
|
|
5
5
|
box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
6
6
|
display: flex;
|
|
7
7
|
height: 34px;
|
|
@@ -11,8 +11,26 @@ const x = () => /* @__PURE__ */ r(t, { children: /* @__PURE__ */ r(p, {}) }), t
|
|
|
11
11
|
border: 1px solid rgba(0, 0, 0, 0.08);
|
|
12
12
|
background: #f0f2f2;
|
|
13
13
|
cursor: pointer;
|
|
14
|
+
|
|
15
|
+
@media screen and (max-width: 992px) {
|
|
16
|
+
width: 100%;
|
|
17
|
+
max-width: 100%;
|
|
18
|
+
box-sizing: border-box;
|
|
19
|
+
overflow-x: auto;
|
|
20
|
+
overflow-y: hidden;
|
|
21
|
+
-webkit-overflow-scrolling: touch;
|
|
22
|
+
scrollbar-width: none;
|
|
23
|
+
&::-webkit-scrollbar {
|
|
24
|
+
display: none;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media screen and (max-width: 768px) {
|
|
29
|
+
height: auto;
|
|
30
|
+
overflow: visible;
|
|
31
|
+
}
|
|
14
32
|
`;
|
|
15
33
|
export {
|
|
16
|
-
|
|
34
|
+
n as default
|
|
17
35
|
};
|
|
18
36
|
//# sourceMappingURL=ActionsMenu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionsMenu.js","sources":["../../../../../src/components/order-view/details-filters/left-side-filters/ActionsMenu.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport DropDowns from './dropdowns/DropDowns';\n\nconst ActionsMenu = () => {\n return (\n <Flex>\n <DropDowns />\n </Flex>\n );\n};\nconst Flex = styled.div`\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n display: flex;\n height: 34px;\n padding: 1px;\n align-items: flex-start;\n border-radius: 20px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n background: #f0f2f2;\n cursor: pointer;\n`;\n\nexport default ActionsMenu;\n"],"names":["ActionsMenu","jsx","Flex","DropDowns","styled"],"mappings":";;;AAIA,MAAMA,IAAc,MAEhB,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACE,GAAA,CAAA,CAAU,GACb,GAGED,IAAOE,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
1
|
+
{"version":3,"file":"ActionsMenu.js","sources":["../../../../../src/components/order-view/details-filters/left-side-filters/ActionsMenu.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport DropDowns from './dropdowns/DropDowns';\n\nconst ActionsMenu = () => {\n return (\n <Flex>\n <DropDowns />\n </Flex>\n );\n};\nconst Flex = styled.div`\n box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);\n display: flex;\n height: 34px;\n padding: 1px;\n align-items: flex-start;\n border-radius: 20px;\n border: 1px solid rgba(0, 0, 0, 0.08);\n background: #f0f2f2;\n cursor: pointer;\n\n @media screen and (max-width: 992px) {\n width: 100%;\n max-width: 100%;\n box-sizing: border-box;\n overflow-x: auto;\n overflow-y: hidden;\n -webkit-overflow-scrolling: touch;\n scrollbar-width: none;\n &::-webkit-scrollbar {\n display: none;\n }\n }\n\n @media screen and (max-width: 768px) {\n height: auto;\n overflow: visible;\n }\n`;\n\nexport default ActionsMenu;\n"],"names":["ActionsMenu","jsx","Flex","DropDowns","styled"],"mappings":";;;AAIA,MAAMA,IAAc,MAEhB,gBAAAC,EAACC,GAAA,EACC,UAAA,gBAAAD,EAACE,GAAA,CAAA,CAAU,GACb,GAGED,IAAOE,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,41 +1,58 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
1
|
+
import { jsx as o, Fragment as C, jsxs as D } from "react/jsx-runtime";
|
|
2
|
+
import { useState as s } from "react";
|
|
3
|
+
import a from "styled-components";
|
|
4
|
+
import k from "./OptionsDropDown.js";
|
|
5
|
+
import y from "../../../general-information/dropdowns/Print.js";
|
|
6
|
+
import I from "./MenuDropDown.js";
|
|
7
7
|
import { useOrderDetails as A, useCurrentAction as S, errorAtom as V } from "../../../store.js";
|
|
8
|
-
import { useAtom as
|
|
8
|
+
import { useAtom as j } from "jotai";
|
|
9
9
|
function U() {
|
|
10
|
-
const [
|
|
11
|
-
return
|
|
10
|
+
const [e] = A(), [, n] = S(), [r] = j(V), [l, c] = s(!1), [d, p] = s(!1), m = e?.order_recipient?.contact_email, f = /^(07\d{8,12}|447\d{7,11})$/, x = /^(08[35679]\d{7}|3538[35679]\d{7}|\+3538[35679]\d{7})$/, h = (t) => typeof t == "string" && f.test(t), u = (t) => typeof t == "string" && x.test(t), w = (t) => h(t) || u(t), g = e?.order_recipient?.contact_mobile, _ = e?.order_recipient?.contact_home, b = e?.order_recipient?.contact_work, E = [g, _, b].some(w), i = [];
|
|
11
|
+
return E && (r?.mobileError ? l || c(!0) : i.push({
|
|
12
12
|
label: "Send SMS",
|
|
13
|
-
onClick: () =>
|
|
13
|
+
onClick: () => n("send-sms")
|
|
14
14
|
})), m && (r?.emailError ? d || p(!0) : i.push({
|
|
15
15
|
label: "Send Email",
|
|
16
|
-
onClick: () =>
|
|
17
|
-
})), /* @__PURE__ */
|
|
18
|
-
/* @__PURE__ */
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
/* @__PURE__ */
|
|
21
|
-
i?.map((t,
|
|
22
|
-
|
|
16
|
+
onClick: () => n("send-email")
|
|
17
|
+
})), /* @__PURE__ */ o(C, { children: /* @__PURE__ */ D(B, { children: [
|
|
18
|
+
/* @__PURE__ */ o(I, {}),
|
|
19
|
+
/* @__PURE__ */ o(k, {}),
|
|
20
|
+
/* @__PURE__ */ o(y, {}),
|
|
21
|
+
i?.map((t, M) => /* @__PURE__ */ o(
|
|
22
|
+
H,
|
|
23
23
|
{
|
|
24
24
|
onClick: t.onClick,
|
|
25
25
|
style: { cursor: "pointer" },
|
|
26
26
|
children: t?.label
|
|
27
27
|
},
|
|
28
|
-
|
|
28
|
+
M
|
|
29
29
|
))
|
|
30
30
|
] }) });
|
|
31
31
|
}
|
|
32
|
-
const
|
|
32
|
+
const B = a.section`
|
|
33
33
|
padding: 0 5px;
|
|
34
34
|
display: flex;
|
|
35
35
|
align-self: center;
|
|
36
36
|
gap: 10px;
|
|
37
37
|
align-items: center;
|
|
38
|
-
|
|
38
|
+
|
|
39
|
+
@media screen and (max-width: 992px) {
|
|
40
|
+
flex-shrink: 0;
|
|
41
|
+
white-space: nowrap;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@media screen and (max-width: 768px) {
|
|
45
|
+
flex-shrink: 1;
|
|
46
|
+
flex-wrap: wrap;
|
|
47
|
+
min-width: 0;
|
|
48
|
+
max-width: 100%;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
padding: 4px 10px;
|
|
51
|
+
gap: 6px 14px;
|
|
52
|
+
justify-content: flex-start;
|
|
53
|
+
white-space: normal;
|
|
54
|
+
}
|
|
55
|
+
`, H = a.div`
|
|
39
56
|
color: #6a7378;
|
|
40
57
|
text-align: center;
|
|
41
58
|
font-family: 'lato', sans-serif;
|
|
@@ -44,14 +61,14 @@ const H = l.section`
|
|
|
44
61
|
font-weight: 500;
|
|
45
62
|
line-height: 18px;
|
|
46
63
|
text-transform: uppercase;
|
|
47
|
-
cursor: ${(
|
|
64
|
+
cursor: ${(e) => e.disabled ? "not-allowed" : "pointer"};
|
|
48
65
|
@media screen and (max-width: 1210px) {
|
|
49
66
|
font-size: 11px;
|
|
50
67
|
line-height: 12px;
|
|
51
68
|
}
|
|
52
69
|
`;
|
|
53
70
|
export {
|
|
54
|
-
|
|
71
|
+
H as FontContainer,
|
|
55
72
|
U as default
|
|
56
73
|
};
|
|
57
74
|
//# sourceMappingURL=DropDowns.js.map
|
package/dist/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DropDowns.js","sources":["../../../../../../src/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport styled from 'styled-components';\nimport OptionsDropDown from './OptionsDropDown';\nimport Print from '../../../general-information/dropdowns/Print';\nimport BjsMenuDropDown from './MenuDropDown';\nimport {\n errorAtom,\n useAtom,\n useCurrentAction,\n useOrderDetails,\n} from '../../../store';\n// components\n\nfunction DropDowns() {\n const [orderDetails] = useOrderDetails();\n const [, setCurrentAction] = useCurrentAction();\n const [errors] = useAtom(errorAtom);\n const [hasNotifiedMobile, setHasNotifiedMobile] = useState(false);\n const [hasNotifiedEmail, setHasNotifiedEmail] = useState(false);\n\n const isEmailId = orderDetails?.order_recipient?.contact_email;\n // const isContactNum = orderDetails?.order_recipient?.contact_home;\n const VALID_UK_MOBILE_REGEX = /^(07\\d{8,12}|447\\d{7,11})$/;\n const VALID_IRISH_MOBILE_REGEX = /^(08[35679]\\d{7}|3538[35679]\\d{7}|\\+3538[35679]\\d{7})$/;\n\n const isValidUKMobile = (number: string | null | undefined): boolean =>\n typeof number === 'string' && VALID_UK_MOBILE_REGEX.test(number);\n const isValidIrishMobile = (number: string | null | undefined): boolean =>\n typeof number === 'string' && VALID_IRISH_MOBILE_REGEX.test(number);\n const isValidMobile = (number: string | null | undefined): boolean =>\n isValidUKMobile(number) || isValidIrishMobile(number);\n\n const contactMobile = orderDetails?.order_recipient?.contact_mobile;\n const contactHome = orderDetails?.order_recipient?.contact_home;\n const contactWork = orderDetails?.order_recipient?.contact_work;\n\n const allContacts = [contactMobile, contactHome, contactWork];\n const hasValidMobile = allContacts.some(isValidMobile);\n\n const actions = [];\n\n if (hasValidMobile) {\n if (errors?.mobileError) {\n if (!hasNotifiedMobile) {\n setHasNotifiedMobile(true);\n }\n } else {\n actions.push({\n label: 'Send SMS',\n onClick: () => setCurrentAction('send-sms'),\n });\n }\n }\n\n if (isEmailId) {\n if (errors?.emailError) {\n if (!hasNotifiedEmail) {\n setHasNotifiedEmail(true);\n }\n } else {\n actions.push({\n label: 'Send Email',\n onClick: () => setCurrentAction('send-email'),\n });\n }\n }\n\n return (\n <>\n <DashBoardWrapper>\n <BjsMenuDropDown />\n <OptionsDropDown />\n <Print />\n {actions?.map((action, index) => (\n <FontContainer\n key={index}\n onClick={action.onClick}\n style={{ cursor: 'pointer' }}\n >\n {action?.label}\n </FontContainer>\n ))}\n </DashBoardWrapper>\n </>\n );\n}\n\nconst DashBoardWrapper = styled.section`\n padding: 0 5px;\n display: flex;\n align-self: center;\n gap: 10px;\n align-items: center;\n`;\n\nexport const FontContainer: any = styled.div<{ disabled?: boolean }>`\n color: #6a7378;\n text-align: center;\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 cursor: ${props => (props.disabled ? 'not-allowed' : 'pointer')};\n @media screen and (max-width: 1210px) {\n font-size: 11px;\n line-height: 12px;\n }\n`;\n\nexport default DropDowns;\n"],"names":["DropDowns","orderDetails","useOrderDetails","setCurrentAction","useCurrentAction","errors","useAtom","errorAtom","hasNotifiedMobile","setHasNotifiedMobile","useState","hasNotifiedEmail","setHasNotifiedEmail","isEmailId","VALID_UK_MOBILE_REGEX","VALID_IRISH_MOBILE_REGEX","isValidUKMobile","number","isValidIrishMobile","isValidMobile","contactMobile","contactHome","contactWork","hasValidMobile","actions","jsx","Fragment","DashBoardWrapper","BjsMenuDropDown","OptionsDropDown","Print","action","index","FontContainer","styled","props"],"mappings":";;;;;;;;AAaA,SAASA,IAAY;AACnB,QAAM,CAACC,CAAY,IAAIC,EAAA,GACjB,CAAA,EAAGC,CAAgB,IAAIC,EAAA,GACvB,CAACC,CAAM,IAAIC,EAAQC,CAAS,GAC5B,CAACC,GAAmBC,CAAoB,IAAIC,EAAS,EAAK,GAC1D,CAACC,GAAkBC,CAAmB,IAAIF,EAAS,EAAK,GAExDG,IAAYZ,GAAc,iBAAiB,eAE3Ca,IAAwB,8BACxBC,IAA2B,0DAE3BC,IAAkB,CAACC,MACvB,OAAOA,KAAW,YAAYH,EAAsB,KAAKG,CAAM,GAC3DC,IAAqB,CAACD,MAC1B,OAAOA,KAAW,YAAYF,EAAyB,KAAKE,CAAM,GAC9DE,IAAgB,CAACF,MACrBD,EAAgBC,CAAM,KAAKC,EAAmBD,CAAM,GAEhDG,IAAgBnB,GAAc,iBAAiB,gBAC/CoB,IAAcpB,GAAc,iBAAiB,cAC7CqB,IAAcrB,GAAc,iBAAiB,cAG7CsB,IADc,CAACH,GAAeC,GAAaC,CAAW,EACzB,KAAKH,CAAa,GAE/CK,IAAU,CAAA;AAEhB,SAAID,MACElB,GAAQ,cACLG,KACHC,EAAqB,EAAI,IAG3Be,EAAQ,KAAK;AAAA,IACX,OAAO;AAAA,IACP,SAAS,MAAMrB,EAAiB,UAAU;AAAA,EAAA,CAC3C,IAIDU,MACER,GAAQ,aACLM,KACHC,EAAoB,EAAI,IAG1BY,EAAQ,KAAK;AAAA,IACX,OAAO;AAAA,IACP,SAAS,MAAMrB,EAAiB,YAAY;AAAA,EAAA,CAC7C,IAKH,gBAAAsB,EAAAC,GAAA,EACE,4BAACC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAF,EAACG,GAAA,EAAgB;AAAA,sBAChBC,GAAA,EAAgB;AAAA,sBAChBC,GAAA,EAAM;AAAA,IACNN,GAAS,IAAI,CAACO,GAAQC,MACrB,gBAAAP;AAAA,MAACQ;AAAA,MAAA;AAAA,QAEC,SAASF,EAAO;AAAA,QAChB,OAAO,EAAE,QAAQ,UAAA;AAAA,QAEhB,UAAAA,GAAQ;AAAA,MAAA;AAAA,MAJJC;AAAA,IAAA,CAMR;AAAA,EAAA,EAAA,CACH,EAAA,CACF;AAEJ;AAEA,MAAML,IAAmBO,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"DropDowns.js","sources":["../../../../../../src/components/order-view/details-filters/left-side-filters/dropdowns/DropDowns.tsx"],"sourcesContent":["import React, { useState } from 'react';\nimport styled from 'styled-components';\nimport OptionsDropDown from './OptionsDropDown';\nimport Print from '../../../general-information/dropdowns/Print';\nimport BjsMenuDropDown from './MenuDropDown';\nimport {\n errorAtom,\n useAtom,\n useCurrentAction,\n useOrderDetails,\n} from '../../../store';\n// components\n\nfunction DropDowns() {\n const [orderDetails] = useOrderDetails();\n const [, setCurrentAction] = useCurrentAction();\n const [errors] = useAtom(errorAtom);\n const [hasNotifiedMobile, setHasNotifiedMobile] = useState(false);\n const [hasNotifiedEmail, setHasNotifiedEmail] = useState(false);\n\n const isEmailId = orderDetails?.order_recipient?.contact_email;\n // const isContactNum = orderDetails?.order_recipient?.contact_home;\n const VALID_UK_MOBILE_REGEX = /^(07\\d{8,12}|447\\d{7,11})$/;\n const VALID_IRISH_MOBILE_REGEX = /^(08[35679]\\d{7}|3538[35679]\\d{7}|\\+3538[35679]\\d{7})$/;\n\n const isValidUKMobile = (number: string | null | undefined): boolean =>\n typeof number === 'string' && VALID_UK_MOBILE_REGEX.test(number);\n const isValidIrishMobile = (number: string | null | undefined): boolean =>\n typeof number === 'string' && VALID_IRISH_MOBILE_REGEX.test(number);\n const isValidMobile = (number: string | null | undefined): boolean =>\n isValidUKMobile(number) || isValidIrishMobile(number);\n\n const contactMobile = orderDetails?.order_recipient?.contact_mobile;\n const contactHome = orderDetails?.order_recipient?.contact_home;\n const contactWork = orderDetails?.order_recipient?.contact_work;\n\n const allContacts = [contactMobile, contactHome, contactWork];\n const hasValidMobile = allContacts.some(isValidMobile);\n\n const actions = [];\n\n if (hasValidMobile) {\n if (errors?.mobileError) {\n if (!hasNotifiedMobile) {\n setHasNotifiedMobile(true);\n }\n } else {\n actions.push({\n label: 'Send SMS',\n onClick: () => setCurrentAction('send-sms'),\n });\n }\n }\n\n if (isEmailId) {\n if (errors?.emailError) {\n if (!hasNotifiedEmail) {\n setHasNotifiedEmail(true);\n }\n } else {\n actions.push({\n label: 'Send Email',\n onClick: () => setCurrentAction('send-email'),\n });\n }\n }\n\n return (\n <>\n <DashBoardWrapper>\n <BjsMenuDropDown />\n <OptionsDropDown />\n <Print />\n {actions?.map((action, index) => (\n <FontContainer\n key={index}\n onClick={action.onClick}\n style={{ cursor: 'pointer' }}\n >\n {action?.label}\n </FontContainer>\n ))}\n </DashBoardWrapper>\n </>\n );\n}\n\nconst DashBoardWrapper = styled.section`\n padding: 0 5px;\n display: flex;\n align-self: center;\n gap: 10px;\n align-items: center;\n\n @media screen and (max-width: 992px) {\n flex-shrink: 0;\n white-space: nowrap;\n }\n\n @media screen and (max-width: 768px) {\n flex-shrink: 1;\n flex-wrap: wrap;\n min-width: 0;\n max-width: 100%;\n box-sizing: border-box;\n padding: 4px 10px;\n gap: 6px 14px;\n justify-content: flex-start;\n white-space: normal;\n }\n`;\n\nexport const FontContainer: any = styled.div<{ disabled?: boolean }>`\n color: #6a7378;\n text-align: center;\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 cursor: ${props => (props.disabled ? 'not-allowed' : 'pointer')};\n @media screen and (max-width: 1210px) {\n font-size: 11px;\n line-height: 12px;\n }\n`;\n\nexport default DropDowns;\n"],"names":["DropDowns","orderDetails","useOrderDetails","setCurrentAction","useCurrentAction","errors","useAtom","errorAtom","hasNotifiedMobile","setHasNotifiedMobile","useState","hasNotifiedEmail","setHasNotifiedEmail","isEmailId","VALID_UK_MOBILE_REGEX","VALID_IRISH_MOBILE_REGEX","isValidUKMobile","number","isValidIrishMobile","isValidMobile","contactMobile","contactHome","contactWork","hasValidMobile","actions","jsx","Fragment","DashBoardWrapper","BjsMenuDropDown","OptionsDropDown","Print","action","index","FontContainer","styled","props"],"mappings":";;;;;;;;AAaA,SAASA,IAAY;AACnB,QAAM,CAACC,CAAY,IAAIC,EAAA,GACjB,CAAA,EAAGC,CAAgB,IAAIC,EAAA,GACvB,CAACC,CAAM,IAAIC,EAAQC,CAAS,GAC5B,CAACC,GAAmBC,CAAoB,IAAIC,EAAS,EAAK,GAC1D,CAACC,GAAkBC,CAAmB,IAAIF,EAAS,EAAK,GAExDG,IAAYZ,GAAc,iBAAiB,eAE3Ca,IAAwB,8BACxBC,IAA2B,0DAE3BC,IAAkB,CAACC,MACvB,OAAOA,KAAW,YAAYH,EAAsB,KAAKG,CAAM,GAC3DC,IAAqB,CAACD,MAC1B,OAAOA,KAAW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M,WAAW,gBAAgB,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as o, jsxs as
|
|
1
|
+
import { jsx as o, jsxs as p } from "react/jsx-runtime";
|
|
2
2
|
import t from "styled-components";
|
|
3
|
-
import { useCustomerInfo as
|
|
4
|
-
import { Skeleton as
|
|
5
|
-
const
|
|
6
|
-
const [e] =
|
|
7
|
-
return /* @__PURE__ */ o(m, { children: /* @__PURE__ */
|
|
8
|
-
|
|
9
|
-
n?.length > 0 && !
|
|
3
|
+
import { useCustomerInfo as l, useGlobalEscData as c } from "../../store.js";
|
|
4
|
+
import { Skeleton as d } from "antd";
|
|
5
|
+
const b = () => {
|
|
6
|
+
const [e] = l(), i = e?.recipient_name || "", a = e?.postcode || "", r = e?.return_action?.length ? `${e.return_action.join(", ")} - ` : "", [n] = c(), s = !i && !a;
|
|
7
|
+
return /* @__PURE__ */ o(m, { children: /* @__PURE__ */ p(x, { children: [
|
|
8
|
+
s ? /* @__PURE__ */ o(d.Input, { active: !0, size: "small", style: { width: 350, borderRadius: 8 } }) : `RETURN - ${r}${i} - ${a}`,
|
|
9
|
+
n?.length > 0 && !s && /* @__PURE__ */ o(h, { children: `${n[0]?.escalation_type?.level} (${n[0]?.escalation_type?.name})` })
|
|
10
10
|
] }) });
|
|
11
11
|
}, m = t.div`
|
|
12
12
|
display: flex;
|
|
@@ -15,7 +15,12 @@ const w = () => {
|
|
|
15
15
|
> svg {
|
|
16
16
|
transform: scale(0.6);
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
|
|
19
|
+
@media screen and (max-width: 992px) {
|
|
20
|
+
width: 100%;
|
|
21
|
+
min-width: 0;
|
|
22
|
+
}
|
|
23
|
+
`, x = t.div`
|
|
19
24
|
display: flex;
|
|
20
25
|
flex-direction: row;
|
|
21
26
|
gap: 15px;
|
|
@@ -31,7 +36,15 @@ const w = () => {
|
|
|
31
36
|
@media screen and (max-width: 1220px) {
|
|
32
37
|
font-size: 14px;
|
|
33
38
|
}
|
|
34
|
-
|
|
39
|
+
|
|
40
|
+
@media screen and (max-width: 992px) {
|
|
41
|
+
flex-wrap: wrap;
|
|
42
|
+
gap: 4px 12px;
|
|
43
|
+
line-height: 20px;
|
|
44
|
+
padding: 4px 8px 0;
|
|
45
|
+
word-break: break-word;
|
|
46
|
+
}
|
|
47
|
+
`, f = t.div`
|
|
35
48
|
/* heading/h3-subHeader */
|
|
36
49
|
font-family: 'Roboto', sans-serif;
|
|
37
50
|
font-size: 20px;
|
|
@@ -39,11 +52,11 @@ const w = () => {
|
|
|
39
52
|
font-weight: 900;
|
|
40
53
|
line-height: 32px; /* 160% */
|
|
41
54
|
text-transform: uppercase;
|
|
42
|
-
`,
|
|
55
|
+
`, h = t(f)`
|
|
43
56
|
color: #6396e5;
|
|
44
57
|
font-size: 16px;
|
|
45
58
|
`;
|
|
46
59
|
export {
|
|
47
|
-
|
|
60
|
+
b as default
|
|
48
61
|
};
|
|
49
62
|
//# sourceMappingURL=Details.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Details.js","sources":["../../../../../src/components/order-view/details-filters/right-side-filters/Details.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { useCustomerInfo, useGlobalEscData } from '../../store';\n\nimport { Skeleton } from 'antd';\n\nconst Details = () => {\n // const [orderDetails] = useOrderDetails();\n const [customerInfo] = useCustomerInfo();\n const recipient = customerInfo?.recipient_name || '';\n const postcodeShow = customerInfo?.postcode || '';\n const returnActionString = customerInfo?.return_action?.length \n ? `${customerInfo.return_action.join(', ')} - ` \n : '';\n\n const [globalEscData] = useGlobalEscData();\n\n const isLoading = !recipient && !postcodeShow;\n\n return (\n <DetailsContainer>\n <Typo>\n {isLoading ? (\n <Skeleton.Input active size=\"small\" style={{ width: 350, borderRadius: 8 }} />\n ) : (\n `RETURN - ${returnActionString}${recipient} - ${postcodeShow}`\n )}\n {globalEscData?.length > 0 && !isLoading && (\n <EscInfo>\n {`${globalEscData[0]?.escalation_type?.level} (${globalEscData[0]?.escalation_type?.name})`}\n </EscInfo>\n )}\n </Typo>\n </DetailsContainer>\n );\n};\n\nconst DetailsContainer = styled.div`\n display: flex;\n align-items: center;\n gap: 10px;\n > svg {\n transform: scale(0.6);\n }\n`;\n\nconst Typo = styled.div`\n display: flex;\n flex-direction: row;\n gap: 15px;\n align-items: center;\n font-size: 20px;\n font-style: normal;\n font-weight: 600;\n line-height: 32px;\n text-transform: uppercase;\n margin: 0;\n padding: 0;\n\n @media screen and (max-width: 1220px) {\n font-size: 14px;\n }\n`;\n\nconst Name = styled.div`\n /* heading/h3-subHeader */\n font-family: 'Roboto', sans-serif;\n font-size: 20px;\n font-style: normal;\n font-weight: 900;\n line-height: 32px; /* 160% */\n text-transform: uppercase;\n`;\n\nconst EscInfo = styled(Name)`\n color: #6396e5;\n font-size: 16px;\n`;\n\nexport default Details;\n"],"names":["Details","customerInfo","useCustomerInfo","recipient","postcodeShow","returnActionString","globalEscData","useGlobalEscData","isLoading","jsx","DetailsContainer","jsxs","Typo","Skeleton","EscInfo","styled","Name"],"mappings":";;;;AAMA,MAAMA,IAAU,MAAM;AAEpB,QAAM,CAACC,CAAY,IAAIC,EAAA,GACjBC,IAAYF,GAAc,kBAAkB,IAC5CG,IAAeH,GAAc,YAAY,IACzCI,IAAqBJ,GAAc,eAAe,SACpD,GAAGA,EAAa,cAAc,KAAK,IAAI,CAAC,QACxC,IAEE,CAACK,CAAa,IAAIC,EAAA,GAElBC,IAAY,CAACL,KAAa,CAACC;AAEjC,SACE,gBAAAK,EAACC,GAAA,EACC,UAAA,gBAAAC,EAACC,GAAA,EACE,UAAA;AAAA,IAAAJ,IACC,gBAAAC,EAACI,EAAS,OAAT,EAAe,QAAM,IAAC,MAAK,SAAQ,OAAO,EAAE,OAAO,KAAK,cAAc,IAAE,CAAG,IAE5E,YAAYR,CAAkB,GAAGF,CAAS,MAAMC,CAAY;AAAA,IAE7DE,GAAe,SAAS,KAAK,CAACE,KAC7B,gBAAAC,EAACK,KACE,UAAA,GAAGR,EAAc,CAAC,GAAG,iBAAiB,KAAK,KAAKA,EAAc,CAAC,GAAG,iBAAiB,IAAI,IAAA,CAC1F;AAAA,EAAA,EAAA,CAEJ,EAAA,CACF;AAEJ,GAEMI,IAAmBK,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"Details.js","sources":["../../../../../src/components/order-view/details-filters/right-side-filters/Details.tsx"],"sourcesContent":["import React from 'react';\nimport styled from 'styled-components';\nimport { useCustomerInfo, useGlobalEscData } from '../../store';\n\nimport { Skeleton } from 'antd';\n\nconst Details = () => {\n // const [orderDetails] = useOrderDetails();\n const [customerInfo] = useCustomerInfo();\n const recipient = customerInfo?.recipient_name || '';\n const postcodeShow = customerInfo?.postcode || '';\n const returnActionString = customerInfo?.return_action?.length \n ? `${customerInfo.return_action.join(', ')} - ` \n : '';\n\n const [globalEscData] = useGlobalEscData();\n\n const isLoading = !recipient && !postcodeShow;\n\n return (\n <DetailsContainer>\n <Typo>\n {isLoading ? (\n <Skeleton.Input active size=\"small\" style={{ width: 350, borderRadius: 8 }} />\n ) : (\n `RETURN - ${returnActionString}${recipient} - ${postcodeShow}`\n )}\n {globalEscData?.length > 0 && !isLoading && (\n <EscInfo>\n {`${globalEscData[0]?.escalation_type?.level} (${globalEscData[0]?.escalation_type?.name})`}\n </EscInfo>\n )}\n </Typo>\n </DetailsContainer>\n );\n};\n\nconst DetailsContainer = styled.div`\n display: flex;\n align-items: center;\n gap: 10px;\n > svg {\n transform: scale(0.6);\n }\n\n @media screen and (max-width: 992px) {\n width: 100%;\n min-width: 0;\n }\n`;\n\nconst Typo = styled.div`\n display: flex;\n flex-direction: row;\n gap: 15px;\n align-items: center;\n font-size: 20px;\n font-style: normal;\n font-weight: 600;\n line-height: 32px;\n text-transform: uppercase;\n margin: 0;\n padding: 0;\n\n @media screen and (max-width: 1220px) {\n font-size: 14px;\n }\n\n @media screen and (max-width: 992px) {\n flex-wrap: wrap;\n gap: 4px 12px;\n line-height: 20px;\n padding: 4px 8px 0;\n word-break: break-word;\n }\n`;\n\nconst Name = styled.div`\n /* heading/h3-subHeader */\n font-family: 'Roboto', sans-serif;\n font-size: 20px;\n font-style: normal;\n font-weight: 900;\n line-height: 32px; /* 160% */\n text-transform: uppercase;\n`;\n\nconst EscInfo = styled(Name)`\n color: #6396e5;\n font-size: 16px;\n`;\n\nexport default Details;\n"],"names":["Details","customerInfo","useCustomerInfo","recipient","postcodeShow","returnActionString","globalEscData","useGlobalEscData","isLoading","jsx","DetailsContainer","jsxs","Typo","Skeleton","EscInfo","styled","Name"],"mappings":";;;;AAMA,MAAMA,IAAU,MAAM;AAEpB,QAAM,CAACC,CAAY,IAAIC,EAAA,GACjBC,IAAYF,GAAc,kBAAkB,IAC5CG,IAAeH,GAAc,YAAY,IACzCI,IAAqBJ,GAAc,eAAe,SACpD,GAAGA,EAAa,cAAc,KAAK,IAAI,CAAC,QACxC,IAEE,CAACK,CAAa,IAAIC,EAAA,GAElBC,IAAY,CAACL,KAAa,CAACC;AAEjC,SACE,gBAAAK,EAACC,GAAA,EACC,UAAA,gBAAAC,EAACC,GAAA,EACE,UAAA;AAAA,IAAAJ,IACC,gBAAAC,EAACI,EAAS,OAAT,EAAe,QAAM,IAAC,MAAK,SAAQ,OAAO,EAAE,OAAO,KAAK,cAAc,IAAE,CAAG,IAE5E,YAAYR,CAAkB,GAAGF,CAAS,MAAMC,CAAY;AAAA,IAE7DE,GAAe,SAAS,KAAK,CAACE,KAC7B,gBAAAC,EAACK,KACE,UAAA,GAAGR,EAAc,CAAC,GAAG,iBAAiB,KAAK,KAAKA,EAAc,CAAC,GAAG,iBAAiB,IAAI,IAAA,CAC1F;AAAA,EAAA,EAAA,CAEJ,EAAA,CACF;AAEJ,GAEMI,IAAmBK,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAc1BH,IAAOG,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GA0BdC,IAAOD,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAUdD,IAAUC,EAAOC,CAAI;AAAA;AAAA;AAAA;"}
|