@burdenoff/microfe-movethewheels 2026.703.5 → 2026.703.7
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/{AIAssistantPage-D2gaEL1U.js → AIAssistantPage-B7FGmmKT.js} +5 -5
- package/dist/{AnalyticsPage-DZMlEoBi.js → AnalyticsPage-DXduj5KB.js} +9 -9
- package/dist/{CreateOrderPage-CWHx8yys.js → CreateOrderPage-DuJJQ16b.js} +11 -11
- package/dist/{CustomerDetailsPage-nR4oZ_ju.js → CustomerDetailsPage-C98SKw7Z.js} +16 -16
- package/dist/{CustomersPage-Bbvwvn8k.js → CustomersPage-s8hK55JL.js} +24 -22
- package/dist/{DashboardPage-DrEhNf7N.js → DashboardPage-BsEgcKEN.js} +17 -17
- package/dist/DataTable-Da7yHjM1.js +369 -0
- package/dist/{DocumentsCard-edDkgnJj.js → DocumentsCard-CziaTJhP.js} +4 -4
- package/dist/{DriverDetailsPage-whEMOWs9.js → DriverDetailsPage-CBzAmM6s.js} +14 -14
- package/dist/{DriversPage-CHF2ZEzd.js → DriversPage-Duy_ITG6.js} +26 -24
- package/dist/{FinancePage-Dn9GrW-1.js → FinancePage-BZtPTpmT.js} +9 -9
- package/dist/{FleetPage-CrtGPy-p.js → FleetPage-DJfzoHbs.js} +10 -10
- package/dist/{FormError-BKcb_wT-.js → FormError-CWjGwOW8.js} +1 -1
- package/dist/{ImportExportPage-WYdwZomZ.js → ImportExportPage-DJ77GK_7.js} +6 -6
- package/dist/{InventoryPage-l5A1f753.js → InventoryPage-Dpnwk_N3.js} +10 -10
- package/dist/{LiveTrackingPage-DhEaNKZ4.js → LiveTrackingPage-CLlvsP1B.js} +10 -10
- package/dist/{MarketplacePage-B9RYOb1Y.js → MarketplacePage-d99r-v6p.js} +9 -9
- package/dist/{MetricCard-y3bWHKUQ.js → MetricCard-DA5ZqAVl.js} +2 -2
- package/dist/{Notice-DOO-tjpV.js → Notice-kkjV2rLR.js} +2 -2
- package/dist/{OrderDetailsPage-CwYHwk1K.js → OrderDetailsPage-BePtkyN0.js} +20 -20
- package/dist/OrdersListPage-Csy_KScx.js +388 -0
- package/dist/{PageLayout-BniRJaQ6.js → PageLayout-h_q9l8af.js} +267 -230
- package/dist/{ProductDetailsPage-1Gm9JKy0.js → ProductDetailsPage-BMlRoR9E.js} +9 -9
- package/dist/{ProductsPage-C8sn-1tN.js → ProductsPage-B4jWJ5bv.js} +21 -19
- package/dist/{ReportsPage-D1tb0dcz.js → ReportsPage-ALRYfXtz.js} +9 -9
- package/dist/{RouteDetailsPage-CkMyR9b_.js → RouteDetailsPage-Btb1MSIS.js} +18 -18
- package/dist/{RoutesPage-QkENzsE5.js → RoutesPage-CQHCDInT.js} +19 -17
- package/dist/{SettingsPage-DV3_tU_X.js → SettingsPage-BYBRrlGe.js} +4 -4
- package/dist/{Sparkline-K2RMJ58u.js → Sparkline-Q-6bJ24J.js} +1 -1
- package/dist/{StatusBadge-BNHXYvZx.js → StatusBadge-1W2p8fEi.js} +1 -1
- package/dist/{TrackingPage-BZrg4RCu.js → TrackingPage-CFndTIyk.js} +11 -11
- package/dist/{VehicleDetailsPage-D-8XPZ2G.js → VehicleDetailsPage-DNLrMljV.js} +12 -12
- package/dist/{VehiclesPage-D5BELbtM.js → VehiclesPage-ClkfFZxL.js} +26 -24
- package/dist/{WarehouseDetailsPage-Cmg-8Frn.js → WarehouseDetailsPage-CAQFz7l_.js} +11 -11
- package/dist/{WarehousesPage-C1Y1M867.js → WarehousesPage-kNba6cr3.js} +19 -17
- package/dist/{arrow-left-ClW4Isj7.js → arrow-left-XOzFvBFD.js} +1 -1
- package/dist/{arrow-right-CmKOmIkh.js → arrow-right-CRrwlvFe.js} +1 -1
- package/dist/{arrow-up-BJijRLAZ.js → arrow-up-ClFaLPly.js} +1 -1
- package/dist/{box-BT3NsRQP.js → box-BX4WyCLv.js} +1 -1
- package/dist/{boxes-B_OGvQiW.js → boxes-R3nq5f0_.js} +1 -1
- package/dist/{chart-column-DQTTdUPk.js → chart-column-BgF8J9bx.js} +1 -1
- package/dist/{charts-Tj_PPTfA.js → charts-BS_OnWc6.js} +2 -2
- package/dist/{chevron-left-B1rZyWWb.js → chevron-left-D3hcLQ1g.js} +1 -1
- package/dist/{chevron-right-BIcwUJZq.js → chevron-right-BpfSrzQF.js} +1 -1
- package/dist/{circle-alert-CNkuDNc6.js → circle-alert-CLqT8iCQ.js} +1 -1
- package/dist/{circle-check-Cs1OVjtV.js → circle-check-CWLAr_8f.js} +1 -1
- package/dist/{circle-check-big-C-p4eNwn.js → circle-check-big-Dsuz8dJ2.js} +1 -1
- package/dist/{clock-dRGG4rkF.js → clock-DrZOQD8h.js} +1 -1
- package/dist/{dollar-sign-B6RoYHHz.js → dollar-sign-CJfKfYul.js} +1 -1
- package/dist/{download-DP04iWTd.js → download-C-yNvUiL.js} +1 -1
- package/dist/{file-text-BuDx4hZp.js → file-text-m2SyQgBo.js} +1 -1
- package/dist/{filter-BD483_8g.js → filter-uA6govE9.js} +1 -1
- package/dist/{fuel-DLH1ag04.js → fuel-BroSIBo1.js} +1 -1
- package/dist/index.js +33 -33
- package/dist/{map-DNQn9fyY.js → map-BzwQ__kD.js} +1 -1
- package/dist/{map-pin-CqN1bbT1.js → map-pin-BGbmEGn3.js} +1 -1
- package/dist/{maps-yzLqiK_C.js → maps-DpIuSSmg.js} +1 -1
- package/dist/{navigation-CgGUt2tR.js → navigation-CjKGLL9T.js} +1 -1
- package/dist/{package-DmRF7iQD.js → package-D36cKFvu.js} +1 -1
- package/dist/{phone-Cl32EXKW.js → phone-mMZFHd1Z.js} +1 -1
- package/dist/{plus-DlANgOFx.js → plus-DY5R-c1j.js} +1 -1
- package/dist/{refresh-cw-rW59D4b7.js → refresh-cw-DyOLYuDU.js} +1 -1
- package/dist/{route-CWjPrtAN.js → route-CuaZ1wU3.js} +1 -1
- package/dist/{save-UDlog7hg.js → save-h9dzHwJE.js} +1 -1
- package/dist/{search-DNIG5Ck7.js → search-stTGSec-.js} +1 -1
- package/dist/{square-pen-BcfB3Grd.js → square-pen-DT5srCPD.js} +1 -1
- package/dist/{star-CVZHFwDx.js → star-gp4yO3PF.js} +1 -1
- package/dist/{store-bwnmCK9f.js → store-DJZDAvCY.js} +1 -1
- package/dist/{trash-2-B80G12d4.js → trash-2-DwcjTxYE.js} +1 -1
- package/dist/{trending-up-CH4R4KOa.js → trending-up-2q2sPVsb.js} +1 -1
- package/dist/{triangle-alert-CmS8AUU6.js → triangle-alert-CU60xaOi.js} +1 -1
- package/dist/{truck-9rLDncav.js → truck-ByZxqZhI.js} +1 -1
- package/dist/{upload-DanJY1Vo.js → upload-CWor1uj3.js} +1 -1
- package/dist/{useAssistant-CnEwkTLm.js → useAssistant-uoc8wjr0.js} +1 -1
- package/dist/{useCustomers-ChJao1ET.js → useCustomers-BPPhQXSH.js} +1 -1
- package/dist/{useFleet-g5Yri0G8.js → useFleet-CT_iW2V9.js} +1 -1
- package/dist/{useImportExport-MYwIT3rE.js → useImportExport-BG0Cg_D9.js} +1 -1
- package/dist/{useInventory-BSOn-R1c.js → useInventory-BtBGnOC2.js} +1 -1
- package/dist/{useOrders-BSiqo61w.js → useOrders-BC-1mCc0.js} +1 -1
- package/dist/{useReports-fWESfsF9.js → useReports-Cx8blThR.js} +1 -1
- package/dist/{useRoutes-zD8Yp323.js → useRoutes-8fw8oO6y.js} +1 -1
- package/dist/{useSettings-B1lsWeZ1.js → useSettings-Do5WSUaI.js} +1 -1
- package/dist/{useTracking-BKG0I2ln.js → useTracking-Dogilo5C.js} +3 -3
- package/dist/{user-DU51el3m.js → user-Dr_JS2FF.js} +1 -1
- package/dist/{user-check-IMhk-qkX.js → user-check-CBSiMH6I.js} +1 -1
- package/dist/{users-B8KhJBGg.js → users-BRV9-2nV.js} +1 -1
- package/dist/{warehouse-CcMMioeY.js → warehouse-CmIAl0_w.js} +1 -1
- package/dist/{wrench-Dg-sgH2e.js → wrench-6U-BTSbg.js} +1 -1
- package/dist/{x-C4ObLVEa.js → x-DX8sZrkd.js} +1 -1
- package/package.json +1 -1
- package/src/movethewheels/components/DataTable.tsx +40 -0
- package/src/movethewheels/pages/CustomersPage.tsx +3 -1
- package/src/movethewheels/pages/DriversPage.tsx +3 -1
- package/src/movethewheels/pages/OrdersListPage.tsx +3 -1
- package/src/movethewheels/pages/ProductsPage.tsx +3 -1
- package/src/movethewheels/pages/RoutesPage.tsx +3 -1
- package/src/movethewheels/pages/VehiclesPage.tsx +3 -1
- package/src/movethewheels/pages/WarehousesPage.tsx +3 -1
- package/src/movethewheels/utils/graphqlClient.ts +126 -31
- package/dist/DataTable-CqMUD4er.js +0 -340
- package/dist/OrdersListPage-DhZJoQeI.js +0 -386
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
import { F as e, I as t, L as n, P as r, R as i, d as ee, f as a, i as o, l as s, lt as c, st as l, u, ut as d } from "./PageLayout-BniRJaQ6.js";
|
|
2
|
-
import { t as te } from "./DataTable-CqMUD4er.js";
|
|
3
|
-
import { t as ne } from "./circle-check-Cs1OVjtV.js";
|
|
4
|
-
import { t as f } from "./clock-dRGG4rkF.js";
|
|
5
|
-
import { t as p } from "./download-DP04iWTd.js";
|
|
6
|
-
import { t as m } from "./filter-BD483_8g.js";
|
|
7
|
-
import { t as h } from "./package-DmRF7iQD.js";
|
|
8
|
-
import { t as g } from "./plus-DlANgOFx.js";
|
|
9
|
-
import { t as re } from "./refresh-cw-rW59D4b7.js";
|
|
10
|
-
import { t as _ } from "./truck-9rLDncav.js";
|
|
11
|
-
import { t as v } from "./user-check-IMhk-qkX.js";
|
|
12
|
-
import { n as y, r as b } from "./useOrders-BSiqo61w.js";
|
|
13
|
-
import { r as x, t as S } from "./MetricCard-y3bWHKUQ.js";
|
|
14
|
-
import { i as C, n as w, r as T } from "./StatusBadge-BNHXYvZx.js";
|
|
15
|
-
import { n as E, r as D } from "./formatters-FWJDwTFv.js";
|
|
16
|
-
import { useState as O } from "react";
|
|
17
|
-
import { jsx as k, jsxs as A } from "react/jsx-runtime";
|
|
18
|
-
import { CTAOverflowMenu as j, PagePurpose as M } from "@burdenoff/fe-libs/ui";
|
|
19
|
-
import { useI18n as N } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
20
|
-
//#region node_modules/lucide-react/dist/esm/icons/user-plus.js
|
|
21
|
-
var P = d("UserPlus", [
|
|
22
|
-
["path", {
|
|
23
|
-
d: "M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",
|
|
24
|
-
key: "1yyitq"
|
|
25
|
-
}],
|
|
26
|
-
["circle", {
|
|
27
|
-
cx: "9",
|
|
28
|
-
cy: "7",
|
|
29
|
-
r: "4",
|
|
30
|
-
key: "nufk8"
|
|
31
|
-
}],
|
|
32
|
-
["line", {
|
|
33
|
-
x1: "19",
|
|
34
|
-
x2: "19",
|
|
35
|
-
y1: "8",
|
|
36
|
-
y2: "14",
|
|
37
|
-
key: "1bvyxn"
|
|
38
|
-
}],
|
|
39
|
-
["line", {
|
|
40
|
-
x1: "22",
|
|
41
|
-
x2: "16",
|
|
42
|
-
y1: "11",
|
|
43
|
-
y2: "11",
|
|
44
|
-
key: "1shjgl"
|
|
45
|
-
}]
|
|
46
|
-
]);
|
|
47
|
-
//#endregion
|
|
48
|
-
//#region src/movethewheels/pages/OrdersListPage.tsx
|
|
49
|
-
function F() {
|
|
50
|
-
let { t: d } = N(), F = (e, t) => {
|
|
51
|
-
let n = d(e);
|
|
52
|
-
return n === e ? t : n;
|
|
53
|
-
}, { basePath: I, navigate: L } = l(), [R, z] = O("all"), [B, V] = O("all"), [H, U] = O(!1), [W, G] = O(0), [K, q] = O(25), J = R !== "all" || B !== "all" || H, { orders: Y, hasMore: ie, isLoading: ae, refetch: oe } = b({
|
|
54
|
-
filters: {
|
|
55
|
-
status: R === "all" ? void 0 : R,
|
|
56
|
-
orderType: B === "all" ? void 0 : B,
|
|
57
|
-
unassigned: H || void 0
|
|
58
|
-
},
|
|
59
|
-
limit: K,
|
|
60
|
-
offset: W * K
|
|
61
|
-
}), { stats: X } = y(), Z = X.total, Q = (e) => {
|
|
62
|
-
L && L(c(I, e));
|
|
63
|
-
}, $ = () => G(0), se = [
|
|
64
|
-
{
|
|
65
|
-
id: "orderNumber",
|
|
66
|
-
header: F("movethewheels.orders.table.orderNumber", "Order #"),
|
|
67
|
-
accessorKey: "orderNumber",
|
|
68
|
-
sortable: !0,
|
|
69
|
-
className: "min-w-[100px] whitespace-nowrap",
|
|
70
|
-
cell: (e) => /* @__PURE__ */ k("span", {
|
|
71
|
-
className: "font-medium text-primary",
|
|
72
|
-
children: e.orderNumber
|
|
73
|
-
})
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
id: "customer",
|
|
77
|
-
header: F("movethewheels.orders.table.customer", "Customer"),
|
|
78
|
-
className: "min-w-[180px] max-w-[220px]",
|
|
79
|
-
cell: (e) => /* @__PURE__ */ A("div", {
|
|
80
|
-
className: "min-w-0",
|
|
81
|
-
children: [/* @__PURE__ */ k("p", {
|
|
82
|
-
className: "font-medium truncate",
|
|
83
|
-
children: e.customerInfo.name
|
|
84
|
-
}), /* @__PURE__ */ k("p", {
|
|
85
|
-
className: "text-sm text-text-secondary truncate",
|
|
86
|
-
children: e.customerInfo.email
|
|
87
|
-
})]
|
|
88
|
-
})
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
id: "status",
|
|
92
|
-
header: F("movethewheels.orders.table.status", "Status"),
|
|
93
|
-
accessorKey: "status",
|
|
94
|
-
sortable: !0,
|
|
95
|
-
className: "min-w-[130px] whitespace-nowrap",
|
|
96
|
-
cell: (e) => /* @__PURE__ */ k(T, {
|
|
97
|
-
status: e.status,
|
|
98
|
-
type: "order"
|
|
99
|
-
})
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
id: "type",
|
|
103
|
-
header: F("movethewheels.orders.table.type", "Type"),
|
|
104
|
-
accessorKey: "orderType",
|
|
105
|
-
className: "min-w-[70px] whitespace-nowrap",
|
|
106
|
-
cell: (e) => /* @__PURE__ */ k(C, { type: e.orderType })
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
id: "priority",
|
|
110
|
-
header: F("movethewheels.orders.table.priority", "Priority"),
|
|
111
|
-
accessorKey: "priority",
|
|
112
|
-
sortable: !0,
|
|
113
|
-
className: "min-w-[90px] whitespace-nowrap",
|
|
114
|
-
cell: (e) => /* @__PURE__ */ k(w, { priority: e.priority })
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
id: "items",
|
|
118
|
-
header: F("movethewheels.orders.table.items", "Items"),
|
|
119
|
-
className: "min-w-[80px] whitespace-nowrap",
|
|
120
|
-
cell: (e) => /* @__PURE__ */ A(s, {
|
|
121
|
-
variant: "secondary",
|
|
122
|
-
children: [
|
|
123
|
-
e.items.length,
|
|
124
|
-
" ",
|
|
125
|
-
F("movethewheels.orders.table.itemsSuffix", "items")
|
|
126
|
-
]
|
|
127
|
-
})
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
id: "total",
|
|
131
|
-
header: F("movethewheels.orders.table.total", "Total"),
|
|
132
|
-
accessorKey: "pricing",
|
|
133
|
-
sortable: !0,
|
|
134
|
-
className: "min-w-[100px] whitespace-nowrap text-right",
|
|
135
|
-
cell: (e) => /* @__PURE__ */ k("span", {
|
|
136
|
-
className: "font-medium",
|
|
137
|
-
children: E(e.pricing.total)
|
|
138
|
-
})
|
|
139
|
-
},
|
|
140
|
-
{
|
|
141
|
-
id: "scheduledDelivery",
|
|
142
|
-
header: F("movethewheels.orders.table.deliveryDate", "Delivery Date"),
|
|
143
|
-
accessorKey: "scheduledDelivery",
|
|
144
|
-
sortable: !0,
|
|
145
|
-
className: "min-w-[110px] whitespace-nowrap",
|
|
146
|
-
cell: (e) => e.scheduledDelivery ? D(e.scheduledDelivery) : "-"
|
|
147
|
-
},
|
|
148
|
-
{
|
|
149
|
-
id: "createdAt",
|
|
150
|
-
header: F("movethewheels.orders.table.created", "Created"),
|
|
151
|
-
accessorKey: "createdAt",
|
|
152
|
-
sortable: !0,
|
|
153
|
-
className: "min-w-[100px] whitespace-nowrap",
|
|
154
|
-
cell: (e) => D(e.createdAt, "relative")
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
id: "driver",
|
|
158
|
-
header: F("movethewheels.orders.table.driver", "Driver"),
|
|
159
|
-
className: "min-w-[120px] whitespace-nowrap",
|
|
160
|
-
cell: (e) => e.driverId ? /* @__PURE__ */ A("span", {
|
|
161
|
-
className: "inline-flex items-center gap-1 text-sm text-status-success-text",
|
|
162
|
-
children: [
|
|
163
|
-
/* @__PURE__ */ k(v, { size: 14 }),
|
|
164
|
-
" ",
|
|
165
|
-
F("movethewheels.orders.table.assigned", "Assigned")
|
|
166
|
-
]
|
|
167
|
-
}) : /* @__PURE__ */ A(u, {
|
|
168
|
-
variant: "outline",
|
|
169
|
-
size: "sm",
|
|
170
|
-
onClick: (t) => {
|
|
171
|
-
t.stopPropagation(), Q(`orders/${e.id}`);
|
|
172
|
-
},
|
|
173
|
-
children: [/* @__PURE__ */ k(P, {
|
|
174
|
-
size: 14,
|
|
175
|
-
className: "mr-1"
|
|
176
|
-
}), F("movethewheels.orders.table.assign", "Assign")]
|
|
177
|
-
})
|
|
178
|
-
}
|
|
179
|
-
], ce = [
|
|
180
|
-
{
|
|
181
|
-
value: "all",
|
|
182
|
-
label: F("movethewheels.orders.filters.allStatuses", "All Statuses")
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
value: "pending",
|
|
186
|
-
label: F("movethewheels.orders.status.pending", "Pending")
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
value: "confirmed",
|
|
190
|
-
label: F("movethewheels.orders.status.confirmed", "Confirmed")
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
value: "assigned",
|
|
194
|
-
label: F("movethewheels.orders.status.assigned", "Assigned")
|
|
195
|
-
},
|
|
196
|
-
{
|
|
197
|
-
value: "picked_up",
|
|
198
|
-
label: F("movethewheels.orders.status.pickedUp", "Picked Up")
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
value: "in_transit",
|
|
202
|
-
label: F("movethewheels.orders.status.inTransit", "In Transit")
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
value: "out_for_delivery",
|
|
206
|
-
label: F("movethewheels.orders.status.outForDelivery", "Out for Delivery")
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
value: "delivered",
|
|
210
|
-
label: F("movethewheels.orders.status.delivered", "Delivered")
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
value: "cancelled",
|
|
214
|
-
label: F("movethewheels.orders.status.cancelled", "Cancelled")
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
value: "failed",
|
|
218
|
-
label: F("movethewheels.orders.status.failed", "Failed")
|
|
219
|
-
}
|
|
220
|
-
];
|
|
221
|
-
return /* @__PURE__ */ A(o, {
|
|
222
|
-
title: F("movethewheels.orders.title", "Orders"),
|
|
223
|
-
subtitle: `${Z} ${F("movethewheels.orders.subtitle", "total orders")}`,
|
|
224
|
-
icon: /* @__PURE__ */ k(h, { size: 24 }),
|
|
225
|
-
headerActions: /* @__PURE__ */ k(j, {
|
|
226
|
-
primary: {
|
|
227
|
-
label: F("movethewheels.orders.actions.newOrder", "New Order"),
|
|
228
|
-
icon: /* @__PURE__ */ k(g, { size: 16 }),
|
|
229
|
-
onSelect: () => Q("orders/new")
|
|
230
|
-
},
|
|
231
|
-
actions: [{
|
|
232
|
-
label: F("movethewheels.orders.actions.refresh", "Refresh"),
|
|
233
|
-
icon: /* @__PURE__ */ k(re, { size: 16 }),
|
|
234
|
-
onSelect: () => oe()
|
|
235
|
-
}, {
|
|
236
|
-
label: F("movethewheels.orders.actions.export", "Export"),
|
|
237
|
-
icon: /* @__PURE__ */ k(p, { size: 16 }),
|
|
238
|
-
onSelect: () => Q("import-export")
|
|
239
|
-
}]
|
|
240
|
-
}),
|
|
241
|
-
children: [
|
|
242
|
-
/* @__PURE__ */ k(M, {
|
|
243
|
-
icon: /* @__PURE__ */ k(h, { size: 18 }),
|
|
244
|
-
children: F("movethewheels.orders.purpose", "Every delivery job lives here — B2B and B2C orders, their status, priority and value. Use this list to find an order, filter by status or type, and open one to assign a driver, track it, or update fulfilment.")
|
|
245
|
-
}),
|
|
246
|
-
/* @__PURE__ */ A("div", { children: [/* @__PURE__ */ k("p", {
|
|
247
|
-
className: "mb-3 text-sm font-medium text-text-secondary",
|
|
248
|
-
children: F("movethewheels.orders.glance.title", "Pipeline at a glance")
|
|
249
|
-
}), /* @__PURE__ */ A(x, {
|
|
250
|
-
columns: 4,
|
|
251
|
-
children: [
|
|
252
|
-
/* @__PURE__ */ k(S, {
|
|
253
|
-
label: F("movethewheels.orders.glance.total", "Total orders"),
|
|
254
|
-
value: Z,
|
|
255
|
-
icon: /* @__PURE__ */ k(h, { size: 20 }),
|
|
256
|
-
accent: "brand"
|
|
257
|
-
}),
|
|
258
|
-
/* @__PURE__ */ k(S, {
|
|
259
|
-
label: F("movethewheels.orders.glance.pending", "Pending"),
|
|
260
|
-
value: X.byStatus.pending,
|
|
261
|
-
icon: /* @__PURE__ */ k(f, { size: 20 }),
|
|
262
|
-
accent: "warning",
|
|
263
|
-
subtitle: F("movethewheels.orders.glance.pendingSub", "Awaiting fulfilment")
|
|
264
|
-
}),
|
|
265
|
-
/* @__PURE__ */ k(S, {
|
|
266
|
-
label: F("movethewheels.orders.glance.inTransit", "In transit"),
|
|
267
|
-
value: X.byStatus.in_transit + X.byStatus.out_for_delivery,
|
|
268
|
-
icon: /* @__PURE__ */ k(_, { size: 20 }),
|
|
269
|
-
accent: "blue",
|
|
270
|
-
subtitle: F("movethewheels.orders.glance.inTransitSub", "On the road now")
|
|
271
|
-
}),
|
|
272
|
-
/* @__PURE__ */ k(S, {
|
|
273
|
-
label: F("movethewheels.orders.glance.delivered", "Delivered"),
|
|
274
|
-
value: X.byStatus.delivered,
|
|
275
|
-
icon: /* @__PURE__ */ k(ne, { size: 20 }),
|
|
276
|
-
accent: "success"
|
|
277
|
-
})
|
|
278
|
-
]
|
|
279
|
-
})] }),
|
|
280
|
-
/* @__PURE__ */ k(ee, { children: /* @__PURE__ */ k(a, {
|
|
281
|
-
className: "p-4",
|
|
282
|
-
children: /* @__PURE__ */ A("div", {
|
|
283
|
-
className: "flex flex-wrap items-center gap-4",
|
|
284
|
-
children: [
|
|
285
|
-
/* @__PURE__ */ A("div", {
|
|
286
|
-
className: "flex items-center gap-2",
|
|
287
|
-
children: [/* @__PURE__ */ k(m, {
|
|
288
|
-
size: 16,
|
|
289
|
-
className: "text-text-secondary"
|
|
290
|
-
}), /* @__PURE__ */ k("span", {
|
|
291
|
-
className: "text-sm font-medium",
|
|
292
|
-
children: F("movethewheels.orders.filters.label", "Filters:")
|
|
293
|
-
})]
|
|
294
|
-
}),
|
|
295
|
-
/* @__PURE__ */ A(r, {
|
|
296
|
-
value: R,
|
|
297
|
-
onValueChange: (e) => {
|
|
298
|
-
z(e), $();
|
|
299
|
-
},
|
|
300
|
-
children: [/* @__PURE__ */ k(n, {
|
|
301
|
-
className: "w-[180px]",
|
|
302
|
-
children: /* @__PURE__ */ k(i, { placeholder: F("movethewheels.orders.filters.status", "Status") })
|
|
303
|
-
}), /* @__PURE__ */ k(e, { children: ce.map((e) => /* @__PURE__ */ k(t, {
|
|
304
|
-
value: e.value,
|
|
305
|
-
children: e.label
|
|
306
|
-
}, e.value)) })]
|
|
307
|
-
}),
|
|
308
|
-
/* @__PURE__ */ A(r, {
|
|
309
|
-
value: B,
|
|
310
|
-
onValueChange: (e) => {
|
|
311
|
-
V(e), $();
|
|
312
|
-
},
|
|
313
|
-
children: [/* @__PURE__ */ k(n, {
|
|
314
|
-
className: "w-[150px]",
|
|
315
|
-
children: /* @__PURE__ */ k(i, { placeholder: F("movethewheels.orders.filters.type", "Type") })
|
|
316
|
-
}), /* @__PURE__ */ A(e, { children: [
|
|
317
|
-
/* @__PURE__ */ k(t, {
|
|
318
|
-
value: "all",
|
|
319
|
-
children: F("movethewheels.orders.filters.allTypes", "All Types")
|
|
320
|
-
}),
|
|
321
|
-
/* @__PURE__ */ k(t, {
|
|
322
|
-
value: "b2b",
|
|
323
|
-
children: "B2B"
|
|
324
|
-
}),
|
|
325
|
-
/* @__PURE__ */ k(t, {
|
|
326
|
-
value: "b2c",
|
|
327
|
-
children: "B2C"
|
|
328
|
-
})
|
|
329
|
-
] })]
|
|
330
|
-
}),
|
|
331
|
-
/* @__PURE__ */ A(u, {
|
|
332
|
-
variant: H ? "default" : "outline",
|
|
333
|
-
size: "sm",
|
|
334
|
-
onClick: () => {
|
|
335
|
-
U((e) => !e), $();
|
|
336
|
-
},
|
|
337
|
-
children: [/* @__PURE__ */ k(P, {
|
|
338
|
-
size: 14,
|
|
339
|
-
className: "mr-1"
|
|
340
|
-
}), F("movethewheels.orders.filters.unassigned", "Needs driver")]
|
|
341
|
-
}),
|
|
342
|
-
J && /* @__PURE__ */ k(u, {
|
|
343
|
-
variant: "ghost",
|
|
344
|
-
size: "sm",
|
|
345
|
-
onClick: () => {
|
|
346
|
-
z("all"), V("all"), U(!1), $();
|
|
347
|
-
},
|
|
348
|
-
children: F("movethewheels.orders.filters.clear", "Clear filters")
|
|
349
|
-
})
|
|
350
|
-
]
|
|
351
|
-
})
|
|
352
|
-
}) }),
|
|
353
|
-
/* @__PURE__ */ k(te, {
|
|
354
|
-
columns: se,
|
|
355
|
-
data: Y,
|
|
356
|
-
isLoading: ae,
|
|
357
|
-
searchable: !0,
|
|
358
|
-
searchPlaceholder: F("movethewheels.orders.searchPlaceholder", "Search orders..."),
|
|
359
|
-
searchFields: ["orderNumber", "customerInfo"],
|
|
360
|
-
onRowClick: (e) => Q(`orders/${e.id}`),
|
|
361
|
-
getRowId: (e) => e.id,
|
|
362
|
-
pageIndex: W,
|
|
363
|
-
pageSize: K,
|
|
364
|
-
onPageChange: G,
|
|
365
|
-
onPageSizeChange: (e) => {
|
|
366
|
-
q(e), G(0);
|
|
367
|
-
},
|
|
368
|
-
totalItems: J ? void 0 : Z,
|
|
369
|
-
hasNextPage: ie,
|
|
370
|
-
emptyMessage: F("movethewheels.orders.empty", "No orders found"),
|
|
371
|
-
emptyIllustration: "empty-data",
|
|
372
|
-
emptyTitle: F("movethewheels.orders.emptyTitle", "No orders yet"),
|
|
373
|
-
emptyDescription: F("movethewheels.orders.emptyDescription", "Create your first order to start moving shipments through the pipeline."),
|
|
374
|
-
emptyAction: /* @__PURE__ */ A(u, {
|
|
375
|
-
onClick: () => Q("orders/new"),
|
|
376
|
-
children: [/* @__PURE__ */ k(g, {
|
|
377
|
-
size: 16,
|
|
378
|
-
className: "mr-1.5"
|
|
379
|
-
}), F("movethewheels.orders.actions.newOrder", "New Order")]
|
|
380
|
-
})
|
|
381
|
-
})
|
|
382
|
-
]
|
|
383
|
-
});
|
|
384
|
-
}
|
|
385
|
-
//#endregion
|
|
386
|
-
export { F as default };
|