@burdenoff/microfe-movethewheels 2026.703.3 → 2026.703.5
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-C3cPsWt-.js → AIAssistantPage-D2gaEL1U.js} +16 -15
- package/dist/AnalyticsPage-DZMlEoBi.js +194 -0
- package/dist/CreateOrderPage-CWHx8yys.js +490 -0
- package/dist/CustomerDetailsPage-nR4oZ_ju.js +615 -0
- package/dist/CustomersPage-Bbvwvn8k.js +205 -0
- package/dist/DashboardPage-DrEhNf7N.js +542 -0
- package/dist/DataTable-CqMUD4er.js +340 -0
- package/dist/DocumentsCard-edDkgnJj.js +169 -0
- package/dist/DriverDetailsPage-whEMOWs9.js +490 -0
- package/dist/DriversPage-CHF2ZEzd.js +221 -0
- package/dist/FinancePage-Dn9GrW-1.js +175 -0
- package/dist/{FleetPage-DqkFi3s3.js → FleetPage-CrtGPy-p.js} +36 -35
- package/dist/{FormError-BlOjnXOq.js → FormError-BKcb_wT-.js} +1 -1
- package/dist/{ImportExportPage-DKJRCezl.js → ImportExportPage-WYdwZomZ.js} +52 -72
- package/dist/InventoryPage-l5A1f753.js +259 -0
- package/dist/LiveTrackingPage-DhEaNKZ4.js +429 -0
- package/dist/MarketplacePage-B9RYOb1Y.js +426 -0
- package/dist/MetricCard-y3bWHKUQ.js +191 -0
- package/dist/Notice-DOO-tjpV.js +46 -0
- package/dist/OrderDetailsPage-CwYHwk1K.js +584 -0
- package/dist/OrdersListPage-DhZJoQeI.js +386 -0
- package/dist/{PageLayout-D4LDHJJq.js → PageLayout-BniRJaQ6.js} +1 -1
- package/dist/{ProductDetailsPage-C9uOiYLp.js → ProductDetailsPage-1Gm9JKy0.js} +56 -56
- package/dist/ProductsPage-C8sn-1tN.js +186 -0
- package/dist/ReportsPage-D1tb0dcz.js +377 -0
- package/dist/RouteDetailsPage-CkMyR9b_.js +610 -0
- package/dist/{RoutesPage-DMfoicM1.js → RoutesPage-QkENzsE5.js} +58 -47
- package/dist/{SettingsPage-Bn-v0mbQ.js → SettingsPage-DV3_tU_X.js} +16 -38
- package/dist/Sparkline-K2RMJ58u.js +16729 -0
- package/dist/{StatusBadge-BZurYHMy.js → StatusBadge-BNHXYvZx.js} +7 -7
- package/dist/TrackingPage-BZrg4RCu.js +368 -0
- package/dist/VehicleDetailsPage-D-8XPZ2G.js +393 -0
- package/dist/VehiclesPage-D5BELbtM.js +184 -0
- package/dist/{WarehouseDetailsPage-L_6sWigM.js → WarehouseDetailsPage-Cmg-8Frn.js} +70 -70
- package/dist/WarehousesPage-C1Y1M867.js +182 -0
- package/dist/{arrow-left-n48Y-Wis.js → arrow-left-ClW4Isj7.js} +1 -1
- package/dist/arrow-right-CmKOmIkh.js +11 -0
- package/dist/arrow-up-BJijRLAZ.js +17 -0
- package/dist/{box-D9Pal4HM.js → box-BT3NsRQP.js} +1 -1
- package/dist/boxes-B_OGvQiW.js +54 -0
- package/dist/{chart-column-BFIJysDR.js → chart-column-DQTTdUPk.js} +1 -1
- package/dist/charts-Tj_PPTfA.js +2018 -0
- package/dist/chevron-left-B1rZyWWb.js +8 -0
- package/dist/{chevron-right-EMIIyyJ1.js → chevron-right-BIcwUJZq.js} +1 -1
- package/dist/chunk-BdsCSvBP.js +20 -0
- package/dist/{circle-alert-iY24lSlp.js → circle-alert-CNkuDNc6.js} +1 -1
- package/dist/circle-check-Cs1OVjtV.js +13 -0
- package/dist/{circle-check-big-w0TrLKMF.js → circle-check-big-C-p4eNwn.js} +1 -1
- package/dist/{clock-DJZtdl8u.js → clock-dRGG4rkF.js} +1 -1
- package/dist/{dollar-sign-CgKQRz_e.js → dollar-sign-B6RoYHHz.js} +1 -1
- package/dist/{download-DRXxoiQR.js → download-DP04iWTd.js} +1 -1
- package/dist/{file-text-DWWY6_f5.js → file-text-BuDx4hZp.js} +1 -1
- package/dist/{filter-DloLC2eE.js → filter-BD483_8g.js} +1 -1
- package/dist/{wrench-CANXWxF-.js → fuel-DLH1ag04.js} +3 -6
- package/dist/index.css +2 -0
- package/dist/index.js +150 -172
- package/dist/{map-CkJaULb2.js → map-DNQn9fyY.js} +1 -1
- package/dist/{map-pin-BGiCvyCs.js → map-pin-CqN1bbT1.js} +1 -1
- package/dist/mapMarkers-NCV9MRKR.js +28 -0
- package/dist/maps-yzLqiK_C.js +5070 -0
- package/dist/{navigation-D36prnAn.js → navigation-CgGUt2tR.js} +1 -1
- package/dist/{package-BChUzpJS.js → package-DmRF7iQD.js} +1 -1
- package/dist/{phone-Ac9s3mo_.js → phone-Cl32EXKW.js} +1 -1
- package/dist/{plus-Z76q-FZm.js → plus-DlANgOFx.js} +1 -1
- package/dist/{refresh-cw-DKt6f5T6.js → refresh-cw-rW59D4b7.js} +1 -1
- package/dist/route-CWjPrtAN.js +22 -0
- package/dist/{save-CojywNhG.js → save-UDlog7hg.js} +1 -1
- package/dist/{search-CDGefqb3.js → search-DNIG5Ck7.js} +1 -1
- package/dist/{square-pen-CopE9GmB.js → square-pen-BcfB3Grd.js} +1 -1
- package/dist/{star-nHlLjDKR.js → star-CVZHFwDx.js} +1 -1
- package/dist/{store-BR9Voi5E.js → store-bwnmCK9f.js} +1 -1
- package/dist/{trash-2-BKhar6Hs.js → trash-2-B80G12d4.js} +1 -1
- package/dist/{trending-up-Dohgd4t_.js → trending-up-CH4R4KOa.js} +1 -1
- package/dist/{triangle-alert-i-XQL9Rd.js → triangle-alert-CmS8AUU6.js} +1 -1
- package/dist/{truck-C0v_hbLR.js → truck-9rLDncav.js} +1 -1
- package/dist/upload-DanJY1Vo.js +21 -0
- package/dist/{useAssistant-D4v3oxD3.js → useAssistant-CnEwkTLm.js} +11 -28
- package/dist/{useCustomers-BmTNGxiI.js → useCustomers-ChJao1ET.js} +30 -27
- package/dist/{useFleet-DKqXZ16m.js → useFleet-g5Yri0G8.js} +82 -70
- package/dist/{useImportExport-DHr-SWSw.js → useImportExport-MYwIT3rE.js} +1 -1
- package/dist/{useInventory-DkyiVY_A.js → useInventory-BSOn-R1c.js} +84 -39
- package/dist/{useOrders-Cfk1GLiq.js → useOrders-BSiqo61w.js} +59 -48
- package/dist/{useReports-CTqZr-AB.js → useReports-fWESfsF9.js} +41 -35
- package/dist/{useRoutes-BQWO607N.js → useRoutes-zD8Yp323.js} +50 -42
- package/dist/{useSettings-CkDH_-gM.js → useSettings-B1lsWeZ1.js} +6 -6
- package/dist/{useTracking-B-va1kO3.js → useTracking-BKG0I2ln.js} +3 -3
- package/dist/{user-jyFU3lXk.js → user-DU51el3m.js} +1 -1
- package/dist/user-check-IMhk-qkX.js +20 -0
- package/dist/{users-DZ-ilS6B.js → users-B8KhJBGg.js} +1 -1
- package/dist/{warehouse-6m5kXMLu.js → warehouse-CcMMioeY.js} +1 -1
- package/dist/wrench-Dg-sgH2e.js +8 -0
- package/dist/x-C4ObLVEa.js +11 -0
- package/package.json +5 -1
- package/src/movethewheels/components/DataTable.tsx +252 -84
- package/src/movethewheels/components/DocumentsCard.tsx +102 -0
- package/src/movethewheels/components/GlassPanel.tsx +71 -0
- package/src/movethewheels/components/MetricCard.tsx +171 -73
- package/src/movethewheels/components/Notice.tsx +61 -0
- package/src/movethewheels/components/StatusBadge.tsx +7 -6
- package/src/movethewheels/components/charts/ChartShell.tsx +78 -0
- package/src/movethewheels/components/charts/Sparkline.tsx +85 -0
- package/src/movethewheels/components/charts/StatusDonut.tsx +115 -0
- package/src/movethewheels/components/charts/TrendChart.tsx +179 -0
- package/src/movethewheels/components/charts/VolumeBar.tsx +97 -0
- package/src/movethewheels/components/charts/chartTokens.ts +43 -0
- package/src/movethewheels/components/charts/index.ts +9 -0
- package/src/movethewheels/components/index.ts +51 -1
- package/src/movethewheels/components/maps/LogisticsMap.tsx +94 -0
- package/src/movethewheels/components/maps/MapCanvas.tsx +118 -0
- package/src/movethewheels/components/maps/RouteMap.tsx +71 -0
- package/src/movethewheels/components/maps/TrackingMap.tsx +102 -0
- package/src/movethewheels/components/maps/index.ts +16 -0
- package/src/movethewheels/components/maps/leaflet-setup.ts +124 -0
- package/src/movethewheels/components/maps/map-markers.css +121 -0
- package/src/movethewheels/hooks/index.ts +9 -0
- package/src/movethewheels/hooks/useAnalytics.ts +109 -4
- package/src/movethewheels/hooks/useCustomers.ts +11 -4
- package/src/movethewheels/hooks/useEntityDocuments.ts +132 -0
- package/src/movethewheels/hooks/useFleet.ts +26 -7
- package/src/movethewheels/hooks/useInventory.ts +70 -7
- package/src/movethewheels/hooks/useOrders.ts +32 -2
- package/src/movethewheels/hooks/useReports.ts +14 -4
- package/src/movethewheels/hooks/useRoutes.ts +20 -3
- package/src/movethewheels/pages/AnalyticsPage.tsx +93 -73
- package/src/movethewheels/pages/CreateOrderPage.tsx +48 -20
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +239 -33
- package/src/movethewheels/pages/CustomersPage.tsx +53 -28
- package/src/movethewheels/pages/DashboardPage.tsx +238 -12
- package/src/movethewheels/pages/DriverDetailsPage.tsx +17 -31
- package/src/movethewheels/pages/DriversPage.tsx +59 -31
- package/src/movethewheels/pages/FinancePage.tsx +103 -82
- package/src/movethewheels/pages/InventoryPage.tsx +15 -3
- package/src/movethewheels/pages/LiveTrackingPage.tsx +124 -16
- package/src/movethewheels/pages/MarketplacePage.tsx +265 -50
- package/src/movethewheels/pages/OrderDetailsPage.tsx +214 -10
- package/src/movethewheels/pages/OrdersListPage.tsx +118 -47
- package/src/movethewheels/pages/ProductsPage.tsx +52 -28
- package/src/movethewheels/pages/ReportsPage.tsx +88 -4
- package/src/movethewheels/pages/RouteDetailsPage.tsx +119 -19
- package/src/movethewheels/pages/RoutesPage.tsx +22 -6
- package/src/movethewheels/pages/SettingsPage.tsx +5 -21
- package/src/movethewheels/pages/TrackingPage.tsx +76 -6
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +4 -34
- package/src/movethewheels/pages/VehiclesPage.tsx +58 -27
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +1 -1
- package/src/movethewheels/pages/WarehousesPage.tsx +47 -36
- package/src/movethewheels/types/index.ts +9 -1
- package/src/movethewheels/utils/download.ts +62 -0
- package/src/movethewheels/utils/mapMarkers.ts +58 -0
- package/dist/AnalyticsPage-Dz6g2MvK.js +0 -215
- package/dist/CreateOrderPage-C5iwnjp4.js +0 -479
- package/dist/CustomerDetailsPage-B6nwFyLO.js +0 -406
- package/dist/CustomersPage-BKxMS1AV.js +0 -161
- package/dist/DashboardPage-BVjQi0EB.js +0 -387
- package/dist/DataTable-DmciIKKM.js +0 -249
- package/dist/DriverDetailsPage-CN3WQ0B9.js +0 -507
- package/dist/DriversPage-CH9rjQC-.js +0 -165
- package/dist/FinancePage-DEDykSOP.js +0 -158
- package/dist/InventoryPage-e0ze63iX.js +0 -253
- package/dist/LiveTrackingPage-DCX-K-LR.js +0 -379
- package/dist/MarketplacePage-CIQ97_zp.js +0 -247
- package/dist/MetricCard-BY0QrMD4.js +0 -146
- package/dist/OrderDetailsPage-DYiZ-9UK.js +0 -429
- package/dist/OrdersListPage-Cn90P1Xx.js +0 -307
- package/dist/ProductsPage-QJfHHpqB.js +0 -169
- package/dist/ReportsPage-Zp53q3_8.js +0 -284
- package/dist/RouteDetailsPage-DUStXSf9.js +0 -531
- package/dist/TrackingPage-W-jtdM3Y.js +0 -325
- package/dist/VehicleDetailsPage-Bceo5oz3.js +0 -410
- package/dist/VehiclesPage-ApKThYeG.js +0 -165
- package/dist/WarehousesPage-DCbXXXWE.js +0 -162
- package/dist/useAnalytics-DS8n0xgg.js +0 -297
- /package/dist/{formatters-CF2S2l1m.js → formatters-FWJDwTFv.js} +0 -0
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
import { F as e, I as t, L as n, P as r, R as i, ct as a, d as o, f as s, i as c, l, ot as u, u as d } from "./PageLayout-D4LDHJJq.js";
|
|
2
|
-
import { t as f } from "./DataTable-DmciIKKM.js";
|
|
3
|
-
import { t as p } from "./download-DRXxoiQR.js";
|
|
4
|
-
import { t as m } from "./filter-DloLC2eE.js";
|
|
5
|
-
import { t as h } from "./package-BChUzpJS.js";
|
|
6
|
-
import { t as g } from "./plus-Z76q-FZm.js";
|
|
7
|
-
import { t as _ } from "./refresh-cw-DKt6f5T6.js";
|
|
8
|
-
import { r as v } from "./useOrders-Cfk1GLiq.js";
|
|
9
|
-
import { i as y, n as b, r as x } from "./StatusBadge-BZurYHMy.js";
|
|
10
|
-
import { n as S, r as C } from "./formatters-CF2S2l1m.js";
|
|
11
|
-
import { useState as w } from "react";
|
|
12
|
-
import { jsx as T, jsxs as E } from "react/jsx-runtime";
|
|
13
|
-
import { CTAOverflowMenu as D, EmphasisPanel as O, PagePurpose as k } from "@burdenoff/fe-libs/ui";
|
|
14
|
-
import { useI18n as A } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
15
|
-
//#region src/movethewheels/pages/OrdersListPage.tsx
|
|
16
|
-
function j() {
|
|
17
|
-
let { t: j } = A(), M = (e, t) => {
|
|
18
|
-
let n = j(e);
|
|
19
|
-
return n === e ? t : n;
|
|
20
|
-
}, { basePath: N, navigate: P } = u(), [F, I] = w("all"), [L, R] = w("all"), { orders: z, totalOrders: B, isLoading: V, refetch: H } = v({
|
|
21
|
-
filters: {
|
|
22
|
-
status: F === "all" ? void 0 : F,
|
|
23
|
-
orderType: L === "all" ? void 0 : L
|
|
24
|
-
},
|
|
25
|
-
limit: 50
|
|
26
|
-
}), U = (e) => {
|
|
27
|
-
P && P(a(N, e));
|
|
28
|
-
}, W = [
|
|
29
|
-
{
|
|
30
|
-
id: "orderNumber",
|
|
31
|
-
header: M("movethewheels.orders.table.orderNumber", "Order #"),
|
|
32
|
-
accessorKey: "orderNumber",
|
|
33
|
-
sortable: !0,
|
|
34
|
-
className: "min-w-[100px] whitespace-nowrap",
|
|
35
|
-
cell: (e) => /* @__PURE__ */ T("span", {
|
|
36
|
-
className: "font-medium text-primary",
|
|
37
|
-
children: e.orderNumber
|
|
38
|
-
})
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: "customer",
|
|
42
|
-
header: M("movethewheels.orders.table.customer", "Customer"),
|
|
43
|
-
className: "min-w-[180px] max-w-[220px]",
|
|
44
|
-
cell: (e) => /* @__PURE__ */ E("div", {
|
|
45
|
-
className: "min-w-0",
|
|
46
|
-
children: [/* @__PURE__ */ T("p", {
|
|
47
|
-
className: "font-medium truncate",
|
|
48
|
-
children: e.customerInfo.name
|
|
49
|
-
}), /* @__PURE__ */ T("p", {
|
|
50
|
-
className: "text-sm text-text-secondary truncate",
|
|
51
|
-
children: e.customerInfo.email
|
|
52
|
-
})]
|
|
53
|
-
})
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
id: "status",
|
|
57
|
-
header: M("movethewheels.orders.table.status", "Status"),
|
|
58
|
-
accessorKey: "status",
|
|
59
|
-
sortable: !0,
|
|
60
|
-
className: "min-w-[130px] whitespace-nowrap",
|
|
61
|
-
cell: (e) => /* @__PURE__ */ T(x, {
|
|
62
|
-
status: e.status,
|
|
63
|
-
type: "order"
|
|
64
|
-
})
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
id: "type",
|
|
68
|
-
header: M("movethewheels.orders.table.type", "Type"),
|
|
69
|
-
accessorKey: "orderType",
|
|
70
|
-
className: "min-w-[70px] whitespace-nowrap",
|
|
71
|
-
cell: (e) => /* @__PURE__ */ T(y, { type: e.orderType })
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
id: "priority",
|
|
75
|
-
header: M("movethewheels.orders.table.priority", "Priority"),
|
|
76
|
-
accessorKey: "priority",
|
|
77
|
-
sortable: !0,
|
|
78
|
-
className: "min-w-[90px] whitespace-nowrap",
|
|
79
|
-
cell: (e) => /* @__PURE__ */ T(b, { priority: e.priority })
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
id: "items",
|
|
83
|
-
header: M("movethewheels.orders.table.items", "Items"),
|
|
84
|
-
className: "min-w-[80px] whitespace-nowrap",
|
|
85
|
-
cell: (e) => /* @__PURE__ */ E(l, {
|
|
86
|
-
variant: "secondary",
|
|
87
|
-
children: [
|
|
88
|
-
e.items.length,
|
|
89
|
-
" ",
|
|
90
|
-
M("movethewheels.orders.table.itemsSuffix", "items")
|
|
91
|
-
]
|
|
92
|
-
})
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
id: "total",
|
|
96
|
-
header: M("movethewheels.orders.table.total", "Total"),
|
|
97
|
-
accessorKey: "pricing",
|
|
98
|
-
sortable: !0,
|
|
99
|
-
className: "min-w-[100px] whitespace-nowrap text-right",
|
|
100
|
-
cell: (e) => /* @__PURE__ */ T("span", {
|
|
101
|
-
className: "font-medium",
|
|
102
|
-
children: S(e.pricing.total)
|
|
103
|
-
})
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
id: "scheduledDelivery",
|
|
107
|
-
header: M("movethewheels.orders.table.deliveryDate", "Delivery Date"),
|
|
108
|
-
accessorKey: "scheduledDelivery",
|
|
109
|
-
sortable: !0,
|
|
110
|
-
className: "min-w-[110px] whitespace-nowrap",
|
|
111
|
-
cell: (e) => e.scheduledDelivery ? C(e.scheduledDelivery) : "-"
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
id: "createdAt",
|
|
115
|
-
header: M("movethewheels.orders.table.created", "Created"),
|
|
116
|
-
accessorKey: "createdAt",
|
|
117
|
-
sortable: !0,
|
|
118
|
-
className: "min-w-[100px] whitespace-nowrap",
|
|
119
|
-
cell: (e) => C(e.createdAt, "relative")
|
|
120
|
-
}
|
|
121
|
-
], G = [
|
|
122
|
-
{
|
|
123
|
-
value: "all",
|
|
124
|
-
label: M("movethewheels.orders.filters.allStatuses", "All Statuses")
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
value: "pending",
|
|
128
|
-
label: M("movethewheels.orders.status.pending", "Pending")
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
value: "confirmed",
|
|
132
|
-
label: M("movethewheels.orders.status.confirmed", "Confirmed")
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
value: "assigned",
|
|
136
|
-
label: M("movethewheels.orders.status.assigned", "Assigned")
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
value: "picked_up",
|
|
140
|
-
label: M("movethewheels.orders.status.pickedUp", "Picked Up")
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
value: "in_transit",
|
|
144
|
-
label: M("movethewheels.orders.status.inTransit", "In Transit")
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
value: "out_for_delivery",
|
|
148
|
-
label: M("movethewheels.orders.status.outForDelivery", "Out for Delivery")
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
value: "delivered",
|
|
152
|
-
label: M("movethewheels.orders.status.delivered", "Delivered")
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
value: "cancelled",
|
|
156
|
-
label: M("movethewheels.orders.status.cancelled", "Cancelled")
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
value: "failed",
|
|
160
|
-
label: M("movethewheels.orders.status.failed", "Failed")
|
|
161
|
-
}
|
|
162
|
-
];
|
|
163
|
-
return /* @__PURE__ */ E(c, {
|
|
164
|
-
title: M("movethewheels.orders.title", "Orders"),
|
|
165
|
-
subtitle: `${B} ${M("movethewheels.orders.subtitle", "total orders")}`,
|
|
166
|
-
icon: /* @__PURE__ */ T(h, { size: 24 }),
|
|
167
|
-
headerActions: /* @__PURE__ */ T(D, {
|
|
168
|
-
primary: {
|
|
169
|
-
label: M("movethewheels.orders.actions.newOrder", "New Order"),
|
|
170
|
-
icon: /* @__PURE__ */ T(g, { size: 16 }),
|
|
171
|
-
onSelect: () => U("orders/new")
|
|
172
|
-
},
|
|
173
|
-
actions: [{
|
|
174
|
-
label: M("movethewheels.orders.actions.refresh", "Refresh"),
|
|
175
|
-
icon: /* @__PURE__ */ T(_, { size: 16 }),
|
|
176
|
-
onSelect: () => H()
|
|
177
|
-
}, {
|
|
178
|
-
label: M("movethewheels.orders.actions.export", "Export"),
|
|
179
|
-
icon: /* @__PURE__ */ T(p, { size: 16 }),
|
|
180
|
-
onSelect: () => U("import-export")
|
|
181
|
-
}]
|
|
182
|
-
}),
|
|
183
|
-
children: [
|
|
184
|
-
/* @__PURE__ */ T(k, {
|
|
185
|
-
icon: /* @__PURE__ */ T(h, { size: 18 }),
|
|
186
|
-
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.")
|
|
187
|
-
}),
|
|
188
|
-
/* @__PURE__ */ E(O, { children: [/* @__PURE__ */ T("p", {
|
|
189
|
-
className: "text-sm font-medium text-text-secondary",
|
|
190
|
-
children: M("movethewheels.orders.glance.title", "Pipeline at a glance")
|
|
191
|
-
}), /* @__PURE__ */ E("div", {
|
|
192
|
-
className: "mt-3 grid grid-cols-2 sm:grid-cols-4 gap-4",
|
|
193
|
-
children: [
|
|
194
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
195
|
-
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
196
|
-
children: B
|
|
197
|
-
}), /* @__PURE__ */ T("p", {
|
|
198
|
-
className: "text-xs text-text-secondary",
|
|
199
|
-
children: M("movethewheels.orders.glance.total", "Total orders")
|
|
200
|
-
})] }),
|
|
201
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
202
|
-
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
203
|
-
children: z.filter((e) => e.status === "pending").length
|
|
204
|
-
}), /* @__PURE__ */ T("p", {
|
|
205
|
-
className: "text-xs text-text-secondary",
|
|
206
|
-
children: M("movethewheels.orders.glance.pending", "Pending")
|
|
207
|
-
})] }),
|
|
208
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
209
|
-
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
210
|
-
children: z.filter((e) => e.status === "in_transit" || e.status === "out_for_delivery").length
|
|
211
|
-
}), /* @__PURE__ */ T("p", {
|
|
212
|
-
className: "text-xs text-text-secondary",
|
|
213
|
-
children: M("movethewheels.orders.glance.inTransit", "In transit")
|
|
214
|
-
})] }),
|
|
215
|
-
/* @__PURE__ */ E("div", { children: [/* @__PURE__ */ T("p", {
|
|
216
|
-
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
217
|
-
children: z.filter((e) => e.status === "delivered").length
|
|
218
|
-
}), /* @__PURE__ */ T("p", {
|
|
219
|
-
className: "text-xs text-text-secondary",
|
|
220
|
-
children: M("movethewheels.orders.glance.delivered", "Delivered")
|
|
221
|
-
})] })
|
|
222
|
-
]
|
|
223
|
-
})] }),
|
|
224
|
-
/* @__PURE__ */ T(o, { children: /* @__PURE__ */ T(s, {
|
|
225
|
-
className: "p-4",
|
|
226
|
-
children: /* @__PURE__ */ E("div", {
|
|
227
|
-
className: "flex flex-wrap items-center gap-4",
|
|
228
|
-
children: [
|
|
229
|
-
/* @__PURE__ */ E("div", {
|
|
230
|
-
className: "flex items-center gap-2",
|
|
231
|
-
children: [/* @__PURE__ */ T(m, {
|
|
232
|
-
size: 16,
|
|
233
|
-
className: "text-text-secondary"
|
|
234
|
-
}), /* @__PURE__ */ T("span", {
|
|
235
|
-
className: "text-sm font-medium",
|
|
236
|
-
children: M("movethewheels.orders.filters.label", "Filters:")
|
|
237
|
-
})]
|
|
238
|
-
}),
|
|
239
|
-
/* @__PURE__ */ E(r, {
|
|
240
|
-
value: F,
|
|
241
|
-
onValueChange: (e) => I(e),
|
|
242
|
-
children: [/* @__PURE__ */ T(n, {
|
|
243
|
-
className: "w-[180px]",
|
|
244
|
-
children: /* @__PURE__ */ T(i, { placeholder: M("movethewheels.orders.filters.status", "Status") })
|
|
245
|
-
}), /* @__PURE__ */ T(e, { children: G.map((e) => /* @__PURE__ */ T(t, {
|
|
246
|
-
value: e.value,
|
|
247
|
-
children: e.label
|
|
248
|
-
}, e.value)) })]
|
|
249
|
-
}),
|
|
250
|
-
/* @__PURE__ */ E(r, {
|
|
251
|
-
value: L,
|
|
252
|
-
onValueChange: (e) => R(e),
|
|
253
|
-
children: [/* @__PURE__ */ T(n, {
|
|
254
|
-
className: "w-[150px]",
|
|
255
|
-
children: /* @__PURE__ */ T(i, { placeholder: M("movethewheels.orders.filters.type", "Type") })
|
|
256
|
-
}), /* @__PURE__ */ E(e, { children: [
|
|
257
|
-
/* @__PURE__ */ T(t, {
|
|
258
|
-
value: "all",
|
|
259
|
-
children: M("movethewheels.orders.filters.allTypes", "All Types")
|
|
260
|
-
}),
|
|
261
|
-
/* @__PURE__ */ T(t, {
|
|
262
|
-
value: "b2b",
|
|
263
|
-
children: "B2B"
|
|
264
|
-
}),
|
|
265
|
-
/* @__PURE__ */ T(t, {
|
|
266
|
-
value: "b2c",
|
|
267
|
-
children: "B2C"
|
|
268
|
-
})
|
|
269
|
-
] })]
|
|
270
|
-
}),
|
|
271
|
-
(F !== "all" || L !== "all") && /* @__PURE__ */ T(d, {
|
|
272
|
-
variant: "ghost",
|
|
273
|
-
size: "sm",
|
|
274
|
-
onClick: () => {
|
|
275
|
-
I("all"), R("all");
|
|
276
|
-
},
|
|
277
|
-
children: M("movethewheels.orders.filters.clear", "Clear filters")
|
|
278
|
-
})
|
|
279
|
-
]
|
|
280
|
-
})
|
|
281
|
-
}) }),
|
|
282
|
-
/* @__PURE__ */ T(f, {
|
|
283
|
-
columns: W,
|
|
284
|
-
data: z,
|
|
285
|
-
isLoading: V,
|
|
286
|
-
searchable: !0,
|
|
287
|
-
searchPlaceholder: M("movethewheels.orders.searchPlaceholder", "Search orders..."),
|
|
288
|
-
searchFields: ["orderNumber", "customerInfo"],
|
|
289
|
-
onRowClick: (e) => U(`orders/${e.id}`),
|
|
290
|
-
getRowId: (e) => e.id,
|
|
291
|
-
emptyMessage: M("movethewheels.orders.empty", "No orders found"),
|
|
292
|
-
emptyIllustration: "empty-data",
|
|
293
|
-
emptyTitle: M("movethewheels.orders.emptyTitle", "No orders yet"),
|
|
294
|
-
emptyDescription: M("movethewheels.orders.emptyDescription", "Create your first order to start moving shipments through the pipeline."),
|
|
295
|
-
emptyAction: /* @__PURE__ */ E(d, {
|
|
296
|
-
onClick: () => U("orders/new"),
|
|
297
|
-
children: [/* @__PURE__ */ T(g, {
|
|
298
|
-
size: 16,
|
|
299
|
-
className: "mr-1.5"
|
|
300
|
-
}), M("movethewheels.orders.actions.newOrder", "New Order")]
|
|
301
|
-
})
|
|
302
|
-
})
|
|
303
|
-
]
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
//#endregion
|
|
307
|
-
export { j as default };
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { ct as e, i as t, l as n, ot as r } from "./PageLayout-D4LDHJJq.js";
|
|
2
|
-
import { t as i } from "./DataTable-DmciIKKM.js";
|
|
3
|
-
import { t as a } from "./download-DRXxoiQR.js";
|
|
4
|
-
import { t as o } from "./package-BChUzpJS.js";
|
|
5
|
-
import { t as s } from "./plus-Z76q-FZm.js";
|
|
6
|
-
import { t as c } from "./refresh-cw-DKt6f5T6.js";
|
|
7
|
-
import { i as l } from "./useInventory-DkyiVY_A.js";
|
|
8
|
-
import { n as u } from "./formatters-CF2S2l1m.js";
|
|
9
|
-
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
-
import { CTAOverflowMenu as p, EmphasisPanel as m, PagePurpose as h } from "@burdenoff/fe-libs/ui";
|
|
11
|
-
//#region src/movethewheels/pages/ProductsPage.tsx
|
|
12
|
-
function g() {
|
|
13
|
-
let { basePath: g, navigate: _ } = r(), { products: v, totalProducts: y, isLoading: b, refetch: x } = l(), S = (t) => _?.(e(g, t));
|
|
14
|
-
return /* @__PURE__ */ f(t, {
|
|
15
|
-
title: "Products",
|
|
16
|
-
subtitle: `${y} products`,
|
|
17
|
-
icon: /* @__PURE__ */ d(o, { size: 24 }),
|
|
18
|
-
headerActions: /* @__PURE__ */ d(p, {
|
|
19
|
-
primary: {
|
|
20
|
-
label: "Add Product",
|
|
21
|
-
icon: /* @__PURE__ */ d(s, { size: 16 }),
|
|
22
|
-
onSelect: () => S("inventory/products/new")
|
|
23
|
-
},
|
|
24
|
-
actions: [{
|
|
25
|
-
label: "Refresh",
|
|
26
|
-
icon: /* @__PURE__ */ d(c, { size: 16 }),
|
|
27
|
-
onSelect: () => x()
|
|
28
|
-
}, {
|
|
29
|
-
label: "Export",
|
|
30
|
-
icon: /* @__PURE__ */ d(a, { size: 16 }),
|
|
31
|
-
onSelect: () => S("import-export")
|
|
32
|
-
}]
|
|
33
|
-
}),
|
|
34
|
-
children: [
|
|
35
|
-
/* @__PURE__ */ d(h, {
|
|
36
|
-
icon: /* @__PURE__ */ d(o, { size: 18 }),
|
|
37
|
-
children: "The catalog of items you ship. Each product's dimensions, weight, value and handling flags (fragile, hazardous, temperature-controlled) drive how it's packed, priced and routed — keep them accurate so shipments are quoted and handled correctly."
|
|
38
|
-
}),
|
|
39
|
-
/* @__PURE__ */ f(m, { children: [/* @__PURE__ */ d("p", {
|
|
40
|
-
className: "text-sm font-medium text-text-secondary",
|
|
41
|
-
children: "Catalog at a glance"
|
|
42
|
-
}), /* @__PURE__ */ f("div", {
|
|
43
|
-
className: "mt-3 grid grid-cols-3 gap-4",
|
|
44
|
-
children: [
|
|
45
|
-
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
46
|
-
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
47
|
-
children: y
|
|
48
|
-
}), /* @__PURE__ */ d("p", {
|
|
49
|
-
className: "text-xs text-text-secondary",
|
|
50
|
-
children: "Total products"
|
|
51
|
-
})] }),
|
|
52
|
-
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
53
|
-
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
54
|
-
children: v.filter((e) => e.fragile || e.hazardous).length
|
|
55
|
-
}), /* @__PURE__ */ d("p", {
|
|
56
|
-
className: "text-xs text-text-secondary",
|
|
57
|
-
children: "Special handling"
|
|
58
|
-
})] }),
|
|
59
|
-
/* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
60
|
-
className: "text-2xl font-bold text-text-primary tabular-nums",
|
|
61
|
-
children: v.filter((e) => e.temperatureControlled).length
|
|
62
|
-
}), /* @__PURE__ */ d("p", {
|
|
63
|
-
className: "text-xs text-text-secondary",
|
|
64
|
-
children: "Temp-controlled"
|
|
65
|
-
})] })
|
|
66
|
-
]
|
|
67
|
-
})] }),
|
|
68
|
-
/* @__PURE__ */ d(i, {
|
|
69
|
-
columns: [
|
|
70
|
-
{
|
|
71
|
-
id: "sku",
|
|
72
|
-
header: "SKU",
|
|
73
|
-
accessorKey: "sku",
|
|
74
|
-
sortable: !0,
|
|
75
|
-
cell: (e) => /* @__PURE__ */ d("span", {
|
|
76
|
-
className: "font-mono",
|
|
77
|
-
children: e.sku
|
|
78
|
-
})
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
id: "name",
|
|
82
|
-
header: "Product Name",
|
|
83
|
-
accessorKey: "name",
|
|
84
|
-
sortable: !0,
|
|
85
|
-
cell: (e) => /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
86
|
-
className: "font-medium",
|
|
87
|
-
children: e.name
|
|
88
|
-
}), /* @__PURE__ */ d("p", {
|
|
89
|
-
className: "text-sm text-text-secondary line-clamp-1",
|
|
90
|
-
children: e.description
|
|
91
|
-
})] })
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
id: "category",
|
|
95
|
-
header: "Category",
|
|
96
|
-
accessorKey: "category",
|
|
97
|
-
sortable: !0,
|
|
98
|
-
cell: (e) => /* @__PURE__ */ d(n, {
|
|
99
|
-
variant: "outline",
|
|
100
|
-
children: e.category
|
|
101
|
-
})
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
id: "dimensions",
|
|
105
|
-
header: "Dimensions",
|
|
106
|
-
cell: (e) => `${e.dimensions.length}x${e.dimensions.width}x${e.dimensions.height} ${e.dimensions.unit}`
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
id: "weight",
|
|
110
|
-
header: "Weight",
|
|
111
|
-
accessorKey: "weight",
|
|
112
|
-
sortable: !0,
|
|
113
|
-
cell: (e) => `${e.weight} kg`
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
id: "value",
|
|
117
|
-
header: "Value",
|
|
118
|
-
accessorKey: "value",
|
|
119
|
-
sortable: !0,
|
|
120
|
-
cell: (e) => /* @__PURE__ */ d("span", {
|
|
121
|
-
className: "font-medium",
|
|
122
|
-
children: u(e.value)
|
|
123
|
-
})
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
id: "flags",
|
|
127
|
-
header: "Flags",
|
|
128
|
-
cell: (e) => /* @__PURE__ */ f("div", {
|
|
129
|
-
className: "flex gap-1",
|
|
130
|
-
children: [
|
|
131
|
-
e.fragile && /* @__PURE__ */ d(n, {
|
|
132
|
-
variant: "destructive",
|
|
133
|
-
className: "text-xs",
|
|
134
|
-
children: "Fragile"
|
|
135
|
-
}),
|
|
136
|
-
e.hazardous && /* @__PURE__ */ d(n, {
|
|
137
|
-
variant: "destructive",
|
|
138
|
-
className: "text-xs",
|
|
139
|
-
children: "Hazardous"
|
|
140
|
-
}),
|
|
141
|
-
e.temperatureControlled && /* @__PURE__ */ d(n, {
|
|
142
|
-
variant: "secondary",
|
|
143
|
-
className: "text-xs",
|
|
144
|
-
children: "Temp Control"
|
|
145
|
-
})
|
|
146
|
-
]
|
|
147
|
-
})
|
|
148
|
-
}
|
|
149
|
-
],
|
|
150
|
-
data: v,
|
|
151
|
-
isLoading: b,
|
|
152
|
-
searchable: !0,
|
|
153
|
-
searchPlaceholder: "Search products...",
|
|
154
|
-
searchFields: [
|
|
155
|
-
"name",
|
|
156
|
-
"sku",
|
|
157
|
-
"category"
|
|
158
|
-
],
|
|
159
|
-
onRowClick: (e) => S(`inventory/products/${e.id}`),
|
|
160
|
-
getRowId: (e) => e.id,
|
|
161
|
-
emptyIllustration: "empty-files",
|
|
162
|
-
emptyTitle: "No products yet",
|
|
163
|
-
emptyDescription: "Add products to your catalog so they can be added to orders and stocked in warehouses."
|
|
164
|
-
})
|
|
165
|
-
]
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
//#endregion
|
|
169
|
-
export { g as default };
|