@burdenoff/microfe-movethewheels 2026.624.1 → 2026.626.1
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-BrHX2lQn.js → AIAssistantPage-AvsMbunM.js} +39 -33
- package/dist/{AnalyticsPage-DI6Wcaw5.js → AnalyticsPage-CCLfHgQZ.js} +44 -33
- package/dist/CreateOrderPage-CjlnEtk3.js +510 -0
- package/dist/CustomerDetailsPage-I6cdDHUi.js +265 -0
- package/dist/CustomersPage-CGGfD4ki.js +163 -0
- package/dist/{DashboardPage-3ZOnwg1a.js → DashboardPage-D2HRqwg9.js} +122 -111
- package/dist/DataTable-CD9ZhpLB.js +249 -0
- package/dist/DriverDetailsPage-rg_pGNuP.js +330 -0
- package/dist/DriversPage-DKiynISH.js +167 -0
- package/dist/FinancePage-Vg8WPs38.js +158 -0
- package/dist/{FleetPage-CPS7r4J3.js → FleetPage-DddXt8r8.js} +124 -85
- package/dist/ImportExportPage-BW6qO3kc.js +248 -0
- package/dist/InventoryPage-rMGuaJN-.js +222 -0
- package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
- package/dist/MarketplacePage-DKrXAv62.js +219 -0
- package/dist/MetricCard-B7yMyvMX.js +146 -0
- package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
- package/dist/OrdersListPage-BHeT8S5o.js +309 -0
- package/dist/{PageLayout-xDTiBTDS.js → PageLayout-D3N8MCTm.js} +213 -195
- package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
- package/dist/ProductsPage--xEpbQ8A.js +171 -0
- package/dist/{ReportsPage-B8OyWGzl.js → ReportsPage-Bb7_90rK.js} +57 -49
- package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
- package/dist/RoutesPage-s57PtgcQ.js +163 -0
- package/dist/SettingsPage-BYNCBOpN.js +298 -0
- package/dist/{StatusBadge-C--7NhoW.js → StatusBadge-CijYQXtb.js} +5 -2
- package/dist/{TrackingPage-BldUm_g7.js → TrackingPage-CcRc_dva.js} +88 -83
- package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
- package/dist/VehiclesPage-UlxPWP9K.js +167 -0
- package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
- package/dist/WarehousesPage-CuTO-OPp.js +164 -0
- package/dist/{arrow-left-Bk5GsGNk.js → arrow-left-CBpZKkpq.js} +1 -1
- package/dist/{box-BAMv2-7M.js → box-CAaiElsb.js} +1 -1
- package/dist/{chart-column-CAfkf4o6.js → chart-column-D1Ym15-S.js} +1 -1
- package/dist/{chevron-right-Czrt_Qew.js → chevron-right-BIFGi0UA.js} +1 -1
- package/dist/{circle-alert-CEuV9Pij.js → circle-alert-DjmNo5_L.js} +1 -1
- package/dist/{circle-check-big-Cx8aO6B-.js → circle-check-big-CjuPVo3_.js} +1 -1
- package/dist/{clock-Be95bq7_.js → clock-BjkdnddD.js} +1 -1
- package/dist/{dollar-sign-kJqItPli.js → dollar-sign-IB4O0wuQ.js} +1 -1
- package/dist/{download-caab0D3V.js → download-Dpa9vqoG.js} +1 -1
- package/dist/{file-text-b1qhrJn1.js → file-text-C8Uioy11.js} +1 -1
- package/dist/{filter-BWmLTZB-.js → filter-Da5OZaHI.js} +1 -1
- package/dist/index.js +16 -16
- package/dist/{map-CS2aFgyO.js → map-_Per4sT9.js} +1 -1
- package/dist/{map-pin-96FeqL7H.js → map-pin-BSaf5IDL.js} +1 -1
- package/dist/{navigation-i6UXEjTC.js → navigation-DaTbrhw2.js} +1 -1
- package/dist/{package-KhSi3xaT.js → package-BE7U0wQE.js} +1 -1
- package/dist/{phone-B-h3tbsr.js → phone-DV4StZiA.js} +1 -1
- package/dist/{plus-D2BYAzMn.js → plus-Dl1rLeJR.js} +1 -1
- package/dist/{refresh-cw-D5Sy01s-.js → refresh-cw-CWfERAit.js} +1 -1
- package/dist/{route-CBDXuwH9.js → route-Dp9JiN_E.js} +1 -1
- package/dist/{save-CMc7h-Vi.js → save-XH8vydOn.js} +1 -1
- package/dist/{search-DVrUQbOg.js → search-OxoIiL_C.js} +1 -1
- package/dist/{settings-BwzIRYv3.js → settings-3Rw5NwFF.js} +1 -1
- package/dist/{square-pen-DmW36Bau.js → square-pen-hLIbFQFV.js} +1 -1
- package/dist/{star-Cv2MzxZL.js → star-YsVV3MNQ.js} +1 -1
- package/dist/{store-CLH957vl.js → store-RCBl7HB-.js} +1 -1
- package/dist/{trending-up-l8M0BO_w.js → trending-up-C-85AwGT.js} +1 -1
- package/dist/{triangle-alert-BI45s6bH.js → triangle-alert-BOhfGgmh.js} +1 -1
- package/dist/{truck-DX3lNQkz.js → truck-CtDjNFbi.js} +1 -1
- package/dist/{user-D8EY1uvt.js → user-Dz5TJZFs.js} +1 -1
- package/dist/{users-CfG0J8wP.js → users-g2N0eL-Z.js} +1 -1
- package/dist/{warehouse-Dt_bAr82.js → warehouse-D3WWDeTX.js} +1 -1
- package/dist/{wrench-C50eI_Iy.js → wrench-CmxY1n4I.js} +1 -1
- package/package.json +2 -2
- package/src/movethewheels/components/DataTable.tsx +41 -6
- package/src/movethewheels/components/MetricCard.tsx +51 -20
- package/src/movethewheels/components/PageLayout.tsx +60 -5
- package/src/movethewheels/components/StatusBadge.tsx +2 -1
- package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
- package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
- package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
- package/src/movethewheels/pages/CustomersPage.tsx +51 -12
- package/src/movethewheels/pages/DashboardPage.tsx +62 -48
- package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
- package/src/movethewheels/pages/DriversPage.tsx +45 -12
- package/src/movethewheels/pages/FinancePage.tsx +45 -41
- package/src/movethewheels/pages/FleetPage.tsx +82 -34
- package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
- package/src/movethewheels/pages/InventoryPage.tsx +37 -33
- package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
- package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
- package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
- package/src/movethewheels/pages/OrdersListPage.tsx +81 -14
- package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
- package/src/movethewheels/pages/ProductsPage.tsx +41 -12
- package/src/movethewheels/pages/ReportsPage.tsx +23 -19
- package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
- package/src/movethewheels/pages/RoutesPage.tsx +48 -9
- package/src/movethewheels/pages/SettingsPage.tsx +68 -26
- package/src/movethewheels/pages/TrackingPage.tsx +52 -49
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
- package/src/movethewheels/pages/VehiclesPage.tsx +41 -15
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
- package/src/movethewheels/pages/WarehousesPage.tsx +46 -9
- package/dist/CreateOrderPage-DfkSi6JF.js +0 -471
- package/dist/CustomerDetailsPage-DzAIu_tH.js +0 -239
- package/dist/CustomersPage-d21ixOYa.js +0 -119
- package/dist/DataTable-CZGz3SJu.js +0 -239
- package/dist/DriverDetailsPage-YuZSlPSV.js +0 -297
- package/dist/DriversPage-BOhqEBTv.js +0 -127
- package/dist/FinancePage-CnjUNXOb.js +0 -154
- package/dist/ImportExportPage-zNjs7xsV.js +0 -232
- package/dist/InventoryPage-C9g5d3SW.js +0 -223
- package/dist/LiveTrackingPage-DoBvtdBG.js +0 -332
- package/dist/MarketplacePage-BEj5hcBF.js +0 -192
- package/dist/MetricCard-DeHVeVwl.js +0 -135
- package/dist/OrderDetailsPage-D-9lDZYU.js +0 -398
- package/dist/OrdersListPage-CJzHbgY3.js +0 -257
- package/dist/ProductDetailsPage-3rKtzXpy.js +0 -168
- package/dist/ProductsPage-B0P_wjBJ.js +0 -131
- package/dist/RouteDetailsPage-DGjKTUMj.js +0 -240
- package/dist/RoutesPage-CpopY8xN.js +0 -116
- package/dist/SettingsPage-BvXSa3gi.js +0 -247
- package/dist/VehicleDetailsPage-Dqv--MVW.js +0 -194
- package/dist/VehiclesPage-CCBHRDHu.js +0 -127
- package/dist/WarehouseDetailsPage-ZObC_c7W.js +0 -215
- package/dist/WarehousesPage-CpgZEVW9.js +0 -121
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import { F as e, I as t, L as n, P as r, R as i, d as a, f as o, i as s, l as c, u as l } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as u } from "./DataTable-CD9ZhpLB.js";
|
|
3
|
+
import { t as d } from "./download-Dpa9vqoG.js";
|
|
4
|
+
import { t as f } from "./filter-Da5OZaHI.js";
|
|
5
|
+
import { t as p } from "./package-BE7U0wQE.js";
|
|
6
|
+
import { t as m } from "./plus-Dl1rLeJR.js";
|
|
7
|
+
import { t as h } from "./refresh-cw-CWfERAit.js";
|
|
8
|
+
import { r as g } from "./graphqlClient-CdJyR_ed.js";
|
|
9
|
+
import { r as _ } from "./useOrders-D_3_hGMp.js";
|
|
10
|
+
import { i as v, n as y, r as b } from "./StatusBadge-CijYQXtb.js";
|
|
11
|
+
import { n as x, r as S } from "./formatters-_vJlC-47.js";
|
|
12
|
+
import { t as C } from "./navigation-BgnOfsVd.js";
|
|
13
|
+
import { useState as w } from "react";
|
|
14
|
+
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
15
|
+
import { CTAOverflowMenu as D, EmphasisPanel as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
|
|
16
|
+
import { useI18n as A } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
17
|
+
//#region src/movethewheels/pages/OrdersListPage.tsx
|
|
18
|
+
function j() {
|
|
19
|
+
let { t: j } = A(), M = (e, t) => {
|
|
20
|
+
let n = j(e);
|
|
21
|
+
return n === e ? t : n;
|
|
22
|
+
}, { basePath: N, navigate: P } = g(), [F, I] = w("all"), [L, R] = w("all"), { orders: z, totalOrders: B, isLoading: V, refetch: H } = _({
|
|
23
|
+
filters: {
|
|
24
|
+
status: F === "all" ? void 0 : F,
|
|
25
|
+
orderType: L === "all" ? void 0 : L
|
|
26
|
+
},
|
|
27
|
+
limit: 50
|
|
28
|
+
}), U = (e) => {
|
|
29
|
+
P && P(C(N, e));
|
|
30
|
+
}, W = [
|
|
31
|
+
{
|
|
32
|
+
id: "orderNumber",
|
|
33
|
+
header: M("movethewheels.orders.table.orderNumber", "Order #"),
|
|
34
|
+
accessorKey: "orderNumber",
|
|
35
|
+
sortable: !0,
|
|
36
|
+
className: "min-w-[100px] whitespace-nowrap",
|
|
37
|
+
cell: (e) => /* @__PURE__ */ T("span", {
|
|
38
|
+
className: "font-medium text-primary",
|
|
39
|
+
children: e.orderNumber
|
|
40
|
+
})
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
id: "customer",
|
|
44
|
+
header: M("movethewheels.orders.table.customer", "Customer"),
|
|
45
|
+
className: "min-w-[180px] max-w-[220px]",
|
|
46
|
+
cell: (e) => /* @__PURE__ */ E("div", {
|
|
47
|
+
className: "min-w-0",
|
|
48
|
+
children: [/* @__PURE__ */ T("p", {
|
|
49
|
+
className: "font-medium truncate",
|
|
50
|
+
children: e.customerInfo.name
|
|
51
|
+
}), /* @__PURE__ */ T("p", {
|
|
52
|
+
className: "text-sm text-text-secondary truncate",
|
|
53
|
+
children: e.customerInfo.email
|
|
54
|
+
})]
|
|
55
|
+
})
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
id: "status",
|
|
59
|
+
header: M("movethewheels.orders.table.status", "Status"),
|
|
60
|
+
accessorKey: "status",
|
|
61
|
+
sortable: !0,
|
|
62
|
+
className: "min-w-[130px] whitespace-nowrap",
|
|
63
|
+
cell: (e) => /* @__PURE__ */ T(b, {
|
|
64
|
+
status: e.status,
|
|
65
|
+
type: "order"
|
|
66
|
+
})
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
id: "type",
|
|
70
|
+
header: M("movethewheels.orders.table.type", "Type"),
|
|
71
|
+
accessorKey: "orderType",
|
|
72
|
+
className: "min-w-[70px] whitespace-nowrap",
|
|
73
|
+
cell: (e) => /* @__PURE__ */ T(v, { type: e.orderType })
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
id: "priority",
|
|
77
|
+
header: M("movethewheels.orders.table.priority", "Priority"),
|
|
78
|
+
accessorKey: "priority",
|
|
79
|
+
sortable: !0,
|
|
80
|
+
className: "min-w-[90px] whitespace-nowrap",
|
|
81
|
+
cell: (e) => /* @__PURE__ */ T(y, { priority: e.priority })
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: "items",
|
|
85
|
+
header: M("movethewheels.orders.table.items", "Items"),
|
|
86
|
+
className: "min-w-[80px] whitespace-nowrap",
|
|
87
|
+
cell: (e) => /* @__PURE__ */ E(c, {
|
|
88
|
+
variant: "secondary",
|
|
89
|
+
children: [
|
|
90
|
+
e.items.length,
|
|
91
|
+
" ",
|
|
92
|
+
M("movethewheels.orders.table.itemsSuffix", "items")
|
|
93
|
+
]
|
|
94
|
+
})
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
id: "total",
|
|
98
|
+
header: M("movethewheels.orders.table.total", "Total"),
|
|
99
|
+
accessorKey: "pricing",
|
|
100
|
+
sortable: !0,
|
|
101
|
+
className: "min-w-[100px] whitespace-nowrap text-right",
|
|
102
|
+
cell: (e) => /* @__PURE__ */ T("span", {
|
|
103
|
+
className: "font-medium",
|
|
104
|
+
children: x(e.pricing.total)
|
|
105
|
+
})
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
id: "scheduledDelivery",
|
|
109
|
+
header: M("movethewheels.orders.table.deliveryDate", "Delivery Date"),
|
|
110
|
+
accessorKey: "scheduledDelivery",
|
|
111
|
+
sortable: !0,
|
|
112
|
+
className: "min-w-[110px] whitespace-nowrap",
|
|
113
|
+
cell: (e) => e.scheduledDelivery ? S(e.scheduledDelivery) : "-"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
id: "createdAt",
|
|
117
|
+
header: M("movethewheels.orders.table.created", "Created"),
|
|
118
|
+
accessorKey: "createdAt",
|
|
119
|
+
sortable: !0,
|
|
120
|
+
className: "min-w-[100px] whitespace-nowrap",
|
|
121
|
+
cell: (e) => S(e.createdAt, "relative")
|
|
122
|
+
}
|
|
123
|
+
], G = [
|
|
124
|
+
{
|
|
125
|
+
value: "all",
|
|
126
|
+
label: M("movethewheels.orders.filters.allStatuses", "All Statuses")
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
value: "pending",
|
|
130
|
+
label: M("movethewheels.orders.status.pending", "Pending")
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
value: "confirmed",
|
|
134
|
+
label: M("movethewheels.orders.status.confirmed", "Confirmed")
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
value: "assigned",
|
|
138
|
+
label: M("movethewheels.orders.status.assigned", "Assigned")
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
value: "picked_up",
|
|
142
|
+
label: M("movethewheels.orders.status.pickedUp", "Picked Up")
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
value: "in_transit",
|
|
146
|
+
label: M("movethewheels.orders.status.inTransit", "In Transit")
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
value: "out_for_delivery",
|
|
150
|
+
label: M("movethewheels.orders.status.outForDelivery", "Out for Delivery")
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
value: "delivered",
|
|
154
|
+
label: M("movethewheels.orders.status.delivered", "Delivered")
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
value: "cancelled",
|
|
158
|
+
label: M("movethewheels.orders.status.cancelled", "Cancelled")
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
value: "failed",
|
|
162
|
+
label: M("movethewheels.orders.status.failed", "Failed")
|
|
163
|
+
}
|
|
164
|
+
];
|
|
165
|
+
return /* @__PURE__ */ E(s, {
|
|
166
|
+
title: M("movethewheels.orders.title", "Orders"),
|
|
167
|
+
subtitle: `${B} ${M("movethewheels.orders.subtitle", "total orders")}`,
|
|
168
|
+
icon: /* @__PURE__ */ T(p, { size: 24 }),
|
|
169
|
+
headerActions: /* @__PURE__ */ T(D, {
|
|
170
|
+
primary: {
|
|
171
|
+
label: M("movethewheels.orders.actions.newOrder", "New Order"),
|
|
172
|
+
icon: /* @__PURE__ */ T(m, { size: 16 }),
|
|
173
|
+
onSelect: () => U("orders/new")
|
|
174
|
+
},
|
|
175
|
+
actions: [{
|
|
176
|
+
label: M("movethewheels.orders.actions.refresh", "Refresh"),
|
|
177
|
+
icon: /* @__PURE__ */ T(h, { size: 16 }),
|
|
178
|
+
onSelect: () => H()
|
|
179
|
+
}, {
|
|
180
|
+
label: M("movethewheels.orders.actions.export", "Export"),
|
|
181
|
+
icon: /* @__PURE__ */ T(d, { size: 16 }),
|
|
182
|
+
onSelect: () => {}
|
|
183
|
+
}]
|
|
184
|
+
}),
|
|
185
|
+
children: [
|
|
186
|
+
/* @__PURE__ */ T(k, {
|
|
187
|
+
icon: /* @__PURE__ */ T(p, { size: 18 }),
|
|
188
|
+
children: M("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.")
|
|
189
|
+
}),
|
|
190
|
+
/* @__PURE__ */ E(O, { children: [/* @__PURE__ */ T("p", {
|
|
191
|
+
className: "text-sm font-medium text-text-secondary",
|
|
192
|
+
children: M("movethewheels.orders.glance.title", "Pipeline at a glance")
|
|
193
|
+
}), /* @__PURE__ */ E("div", {
|
|
194
|
+
className: "mt-3 grid grid-cols-2 sm:grid-cols-4 gap-4",
|
|
195
|
+
children: [
|
|
196
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
197
|
+
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
198
|
+
children: B
|
|
199
|
+
}), /* @__PURE__ */ T("p", {
|
|
200
|
+
className: "text-xs text-text-secondary",
|
|
201
|
+
children: M("movethewheels.orders.glance.total", "Total orders")
|
|
202
|
+
})] }),
|
|
203
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
204
|
+
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
205
|
+
children: z.filter((e) => e.status === "pending").length
|
|
206
|
+
}), /* @__PURE__ */ T("p", {
|
|
207
|
+
className: "text-xs text-text-secondary",
|
|
208
|
+
children: M("movethewheels.orders.glance.pending", "Pending")
|
|
209
|
+
})] }),
|
|
210
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
211
|
+
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
212
|
+
children: z.filter((e) => e.status === "in_transit" || e.status === "out_for_delivery").length
|
|
213
|
+
}), /* @__PURE__ */ T("p", {
|
|
214
|
+
className: "text-xs text-text-secondary",
|
|
215
|
+
children: M("movethewheels.orders.glance.inTransit", "In transit")
|
|
216
|
+
})] }),
|
|
217
|
+
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
218
|
+
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
219
|
+
children: z.filter((e) => e.status === "delivered").length
|
|
220
|
+
}), /* @__PURE__ */ T("p", {
|
|
221
|
+
className: "text-xs text-text-secondary",
|
|
222
|
+
children: M("movethewheels.orders.glance.delivered", "Delivered")
|
|
223
|
+
})] })
|
|
224
|
+
]
|
|
225
|
+
})] }),
|
|
226
|
+
/* @__PURE__ */ T(a, { children: /* @__PURE__ */ T(o, {
|
|
227
|
+
className: "p-4",
|
|
228
|
+
children: /* @__PURE__ */ E("div", {
|
|
229
|
+
className: "flex flex-wrap items-center gap-4",
|
|
230
|
+
children: [
|
|
231
|
+
/* @__PURE__ */ E("div", {
|
|
232
|
+
className: "flex items-center gap-2",
|
|
233
|
+
children: [/* @__PURE__ */ T(f, {
|
|
234
|
+
size: 16,
|
|
235
|
+
className: "text-text-secondary"
|
|
236
|
+
}), /* @__PURE__ */ T("span", {
|
|
237
|
+
className: "text-sm font-medium",
|
|
238
|
+
children: M("movethewheels.orders.filters.label", "Filters:")
|
|
239
|
+
})]
|
|
240
|
+
}),
|
|
241
|
+
/* @__PURE__ */ E(r, {
|
|
242
|
+
value: F,
|
|
243
|
+
onValueChange: (e) => I(e),
|
|
244
|
+
children: [/* @__PURE__ */ T(n, {
|
|
245
|
+
className: "w-[180px]",
|
|
246
|
+
children: /* @__PURE__ */ T(i, { placeholder: M("movethewheels.orders.filters.status", "Status") })
|
|
247
|
+
}), /* @__PURE__ */ T(e, { children: G.map((e) => /* @__PURE__ */ T(t, {
|
|
248
|
+
value: e.value,
|
|
249
|
+
children: e.label
|
|
250
|
+
}, e.value)) })]
|
|
251
|
+
}),
|
|
252
|
+
/* @__PURE__ */ E(r, {
|
|
253
|
+
value: L,
|
|
254
|
+
onValueChange: (e) => R(e),
|
|
255
|
+
children: [/* @__PURE__ */ T(n, {
|
|
256
|
+
className: "w-[150px]",
|
|
257
|
+
children: /* @__PURE__ */ T(i, { placeholder: M("movethewheels.orders.filters.type", "Type") })
|
|
258
|
+
}), /* @__PURE__ */ E(e, { children: [
|
|
259
|
+
/* @__PURE__ */ T(t, {
|
|
260
|
+
value: "all",
|
|
261
|
+
children: M("movethewheels.orders.filters.allTypes", "All Types")
|
|
262
|
+
}),
|
|
263
|
+
/* @__PURE__ */ T(t, {
|
|
264
|
+
value: "b2b",
|
|
265
|
+
children: "B2B"
|
|
266
|
+
}),
|
|
267
|
+
/* @__PURE__ */ T(t, {
|
|
268
|
+
value: "b2c",
|
|
269
|
+
children: "B2C"
|
|
270
|
+
})
|
|
271
|
+
] })]
|
|
272
|
+
}),
|
|
273
|
+
(F !== "all" || L !== "all") && /* @__PURE__ */ T(l, {
|
|
274
|
+
variant: "ghost",
|
|
275
|
+
size: "sm",
|
|
276
|
+
onClick: () => {
|
|
277
|
+
I("all"), R("all");
|
|
278
|
+
},
|
|
279
|
+
children: M("movethewheels.orders.filters.clear", "Clear filters")
|
|
280
|
+
})
|
|
281
|
+
]
|
|
282
|
+
})
|
|
283
|
+
}) }),
|
|
284
|
+
/* @__PURE__ */ T(u, {
|
|
285
|
+
columns: W,
|
|
286
|
+
data: z,
|
|
287
|
+
isLoading: V,
|
|
288
|
+
searchable: !0,
|
|
289
|
+
searchPlaceholder: M("movethewheels.orders.searchPlaceholder", "Search orders..."),
|
|
290
|
+
searchFields: ["orderNumber", "customerInfo"],
|
|
291
|
+
onRowClick: (e) => U(`orders/${e.id}`),
|
|
292
|
+
getRowId: (e) => e.id,
|
|
293
|
+
emptyMessage: M("movethewheels.orders.empty", "No orders found"),
|
|
294
|
+
emptyIllustration: "empty-data",
|
|
295
|
+
emptyTitle: M("movethewheels.orders.emptyTitle", "No orders yet"),
|
|
296
|
+
emptyDescription: M("movethewheels.orders.emptyDescription", "Create your first order to start moving shipments through the pipeline."),
|
|
297
|
+
emptyAction: /* @__PURE__ */ E(l, {
|
|
298
|
+
onClick: () => U("orders/new"),
|
|
299
|
+
children: [/* @__PURE__ */ T(m, {
|
|
300
|
+
size: 16,
|
|
301
|
+
className: "mr-1.5"
|
|
302
|
+
}), M("movethewheels.orders.actions.newOrder", "New Order")]
|
|
303
|
+
})
|
|
304
|
+
})
|
|
305
|
+
]
|
|
306
|
+
});
|
|
307
|
+
}
|
|
308
|
+
//#endregion
|
|
309
|
+
export { j as default };
|