@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
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
import { M as e, d as t, f as n, g as r, h as i, i as a, l as o, n as s, r as c, u as l } from "./PageLayout-xDTiBTDS.js";
|
|
2
|
-
import { t as u } from "./arrow-left-Bk5GsGNk.js";
|
|
3
|
-
import { t as d } from "./box-BAMv2-7M.js";
|
|
4
|
-
import { t as f } from "./clock-Be95bq7_.js";
|
|
5
|
-
import { t as p } from "./map-pin-96FeqL7H.js";
|
|
6
|
-
import { t as m } from "./square-pen-DmW36Bau.js";
|
|
7
|
-
import { t as h } from "./users-CfG0J8wP.js";
|
|
8
|
-
import { t as g } from "./warehouse-Dt_bAr82.js";
|
|
9
|
-
import { r as _ } from "./graphqlClient-CdJyR_ed.js";
|
|
10
|
-
import { a as v } from "./useInventory-Dwn18FPz.js";
|
|
11
|
-
import { t as y } from "./formatters-_vJlC-47.js";
|
|
12
|
-
import { t as b } from "./navigation-BgnOfsVd.js";
|
|
13
|
-
import { useParams as x } from "react-router-dom";
|
|
14
|
-
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
15
|
-
//#region src/movethewheels/pages/WarehouseDetailsPage.tsx
|
|
16
|
-
function w() {
|
|
17
|
-
let { warehouseId: w } = x(), { basePath: T, navigate: E } = _(), { warehouse: D, isLoading: O, error: k, refetch: A } = v(w), j = () => E?.(b(T, "inventory/warehouses"));
|
|
18
|
-
if (O) return /* @__PURE__ */ S(c, { message: "Loading warehouse details..." });
|
|
19
|
-
if (k || !D) return /* @__PURE__ */ S(s, {
|
|
20
|
-
title: "Warehouse not found",
|
|
21
|
-
onRetry: A
|
|
22
|
-
});
|
|
23
|
-
let M = D.capacity.usedSpace / D.capacity.totalSpace * 100;
|
|
24
|
-
return /* @__PURE__ */ S(a, {
|
|
25
|
-
title: D.name,
|
|
26
|
-
subtitle: `Code: ${D.code}`,
|
|
27
|
-
icon: /* @__PURE__ */ S(g, { size: 24 }),
|
|
28
|
-
headerActions: /* @__PURE__ */ C("div", {
|
|
29
|
-
className: "flex gap-2",
|
|
30
|
-
children: [/* @__PURE__ */ C(l, {
|
|
31
|
-
variant: "outline",
|
|
32
|
-
onClick: j,
|
|
33
|
-
children: [/* @__PURE__ */ S(u, { size: 16 }), " Back"]
|
|
34
|
-
}), /* @__PURE__ */ C(l, { children: [/* @__PURE__ */ S(m, { size: 16 }), " Edit"] })]
|
|
35
|
-
}),
|
|
36
|
-
headerContent: /* @__PURE__ */ C("div", {
|
|
37
|
-
className: "flex gap-2",
|
|
38
|
-
children: [/* @__PURE__ */ S(o, {
|
|
39
|
-
variant: D.isActive ? "default" : "secondary",
|
|
40
|
-
children: D.isActive ? "Active" : "Inactive"
|
|
41
|
-
}), /* @__PURE__ */ S(o, {
|
|
42
|
-
variant: "outline",
|
|
43
|
-
className: "capitalize",
|
|
44
|
-
children: D.type.replace("_", " ")
|
|
45
|
-
})]
|
|
46
|
-
}),
|
|
47
|
-
children: /* @__PURE__ */ C("div", {
|
|
48
|
-
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
49
|
-
children: [/* @__PURE__ */ C("div", {
|
|
50
|
-
className: "lg:col-span-2 space-y-6",
|
|
51
|
-
children: [
|
|
52
|
-
/* @__PURE__ */ C(t, { children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ C(r, {
|
|
53
|
-
className: "flex items-center gap-2",
|
|
54
|
-
children: [/* @__PURE__ */ S(d, { size: 18 }), " Capacity"]
|
|
55
|
-
}) }), /* @__PURE__ */ S(n, { children: /* @__PURE__ */ C("div", {
|
|
56
|
-
className: "space-y-4",
|
|
57
|
-
children: [/* @__PURE__ */ C("div", { children: [
|
|
58
|
-
/* @__PURE__ */ C("div", {
|
|
59
|
-
className: "flex justify-between text-sm mb-2",
|
|
60
|
-
children: [/* @__PURE__ */ S("span", { children: "Space Utilization" }), /* @__PURE__ */ C("span", { children: [M.toFixed(0), "%"] })]
|
|
61
|
-
}),
|
|
62
|
-
/* @__PURE__ */ S(e, { value: M }),
|
|
63
|
-
/* @__PURE__ */ C("p", {
|
|
64
|
-
className: "text-sm text-text-secondary mt-1",
|
|
65
|
-
children: [
|
|
66
|
-
D.capacity.usedSpace.toLocaleString(),
|
|
67
|
-
" /",
|
|
68
|
-
" ",
|
|
69
|
-
D.capacity.totalSpace.toLocaleString(),
|
|
70
|
-
" sq ft"
|
|
71
|
-
]
|
|
72
|
-
})
|
|
73
|
-
] }), /* @__PURE__ */ S("div", {
|
|
74
|
-
className: "grid grid-cols-2 gap-4",
|
|
75
|
-
children: /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
76
|
-
className: "text-sm text-text-secondary",
|
|
77
|
-
children: "Pallets Used"
|
|
78
|
-
}), /* @__PURE__ */ C("p", {
|
|
79
|
-
className: "text-2xl font-bold",
|
|
80
|
-
children: [D.capacity.usedPallets, /* @__PURE__ */ C("span", {
|
|
81
|
-
className: "text-sm font-normal text-text-secondary",
|
|
82
|
-
children: [
|
|
83
|
-
" ",
|
|
84
|
-
"/ ",
|
|
85
|
-
D.capacity.totalPallets
|
|
86
|
-
]
|
|
87
|
-
})]
|
|
88
|
-
})] })
|
|
89
|
-
})]
|
|
90
|
-
}) })] }),
|
|
91
|
-
/* @__PURE__ */ C(t, { children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ C(r, { children: [
|
|
92
|
-
"Zones (",
|
|
93
|
-
D.zones.length,
|
|
94
|
-
")"
|
|
95
|
-
] }) }), /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S("div", {
|
|
96
|
-
className: "space-y-3",
|
|
97
|
-
children: D.zones.map((t) => /* @__PURE__ */ C("div", {
|
|
98
|
-
className: "flex items-center justify-between p-3 border rounded-lg",
|
|
99
|
-
children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
100
|
-
className: "font-medium",
|
|
101
|
-
children: t.name
|
|
102
|
-
}), /* @__PURE__ */ C("p", {
|
|
103
|
-
className: "text-sm text-text-secondary capitalize",
|
|
104
|
-
children: [
|
|
105
|
-
t.type,
|
|
106
|
-
" - ",
|
|
107
|
-
t.location
|
|
108
|
-
]
|
|
109
|
-
})] }), /* @__PURE__ */ C("div", {
|
|
110
|
-
className: "text-right",
|
|
111
|
-
children: [/* @__PURE__ */ S(e, {
|
|
112
|
-
value: t.currentOccupancy / t.capacity * 100,
|
|
113
|
-
className: "w-24 h-2"
|
|
114
|
-
}), /* @__PURE__ */ C("p", {
|
|
115
|
-
className: "text-sm text-text-secondary",
|
|
116
|
-
children: [
|
|
117
|
-
t.currentOccupancy,
|
|
118
|
-
" / ",
|
|
119
|
-
t.capacity
|
|
120
|
-
]
|
|
121
|
-
})]
|
|
122
|
-
})]
|
|
123
|
-
}, t.id))
|
|
124
|
-
}) })] }),
|
|
125
|
-
/* @__PURE__ */ C(t, { children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ C(r, {
|
|
126
|
-
className: "flex items-center gap-2",
|
|
127
|
-
children: [/* @__PURE__ */ S(f, { size: 18 }), " Operating Hours"]
|
|
128
|
-
}) }), /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S("div", {
|
|
129
|
-
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
130
|
-
children: Object.entries(D.operatingHours).map(([e, t]) => /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
131
|
-
className: "text-sm font-medium",
|
|
132
|
-
children: e
|
|
133
|
-
}), /* @__PURE__ */ S("p", {
|
|
134
|
-
className: "text-sm text-text-secondary",
|
|
135
|
-
children: t ? `${t.open} - ${t.close}` : "Closed"
|
|
136
|
-
})] }, e))
|
|
137
|
-
}) })] })
|
|
138
|
-
]
|
|
139
|
-
}), /* @__PURE__ */ C("div", {
|
|
140
|
-
className: "space-y-6",
|
|
141
|
-
children: [
|
|
142
|
-
/* @__PURE__ */ C(t, { children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ C(r, {
|
|
143
|
-
className: "flex items-center gap-2",
|
|
144
|
-
children: [/* @__PURE__ */ S(p, { size: 18 }), " Location"]
|
|
145
|
-
}) }), /* @__PURE__ */ S(n, { children: /* @__PURE__ */ S("p", {
|
|
146
|
-
className: "text-sm",
|
|
147
|
-
children: y(D.address)
|
|
148
|
-
}) })] }),
|
|
149
|
-
/* @__PURE__ */ C(t, { children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ S(r, { children: "Metrics" }) }), /* @__PURE__ */ C(n, {
|
|
150
|
-
className: "space-y-3",
|
|
151
|
-
children: [
|
|
152
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
153
|
-
className: "text-sm text-text-secondary",
|
|
154
|
-
children: "Throughput"
|
|
155
|
-
}), /* @__PURE__ */ C("p", {
|
|
156
|
-
className: "text-2xl font-bold",
|
|
157
|
-
children: [D.metrics.throughput, /* @__PURE__ */ S("span", {
|
|
158
|
-
className: "text-sm font-normal",
|
|
159
|
-
children: " orders/day"
|
|
160
|
-
})]
|
|
161
|
-
})] }),
|
|
162
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
163
|
-
className: "text-sm text-text-secondary",
|
|
164
|
-
children: "Accuracy"
|
|
165
|
-
}), /* @__PURE__ */ C("p", {
|
|
166
|
-
className: "text-2xl font-bold",
|
|
167
|
-
children: [D.metrics.accuracy, "%"]
|
|
168
|
-
})] }),
|
|
169
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
170
|
-
className: "text-sm text-text-secondary",
|
|
171
|
-
children: "Productivity"
|
|
172
|
-
}), /* @__PURE__ */ C("p", {
|
|
173
|
-
className: "text-2xl font-bold",
|
|
174
|
-
children: [D.metrics.productivity, "%"]
|
|
175
|
-
})] }),
|
|
176
|
-
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
177
|
-
className: "text-sm text-text-secondary",
|
|
178
|
-
children: "Orders Fulfilled"
|
|
179
|
-
}), /* @__PURE__ */ S("p", {
|
|
180
|
-
className: "text-2xl font-bold",
|
|
181
|
-
children: D.metrics.ordersFulfilled.toLocaleString()
|
|
182
|
-
})] })
|
|
183
|
-
]
|
|
184
|
-
})] }),
|
|
185
|
-
/* @__PURE__ */ C(t, { children: [/* @__PURE__ */ S(i, { children: /* @__PURE__ */ C(r, {
|
|
186
|
-
className: "flex items-center gap-2",
|
|
187
|
-
children: [
|
|
188
|
-
/* @__PURE__ */ S(h, { size: 18 }),
|
|
189
|
-
" Staff (",
|
|
190
|
-
D.staff.length,
|
|
191
|
-
")"
|
|
192
|
-
]
|
|
193
|
-
}) }), /* @__PURE__ */ S(n, { children: D.staff.length > 0 ? /* @__PURE__ */ S("div", {
|
|
194
|
-
className: "space-y-2",
|
|
195
|
-
children: D.staff.map((e, t) => /* @__PURE__ */ C("div", {
|
|
196
|
-
className: "flex items-center justify-between p-2 border rounded",
|
|
197
|
-
children: [/* @__PURE__ */ S("span", {
|
|
198
|
-
className: "text-sm capitalize",
|
|
199
|
-
children: e.role
|
|
200
|
-
}), /* @__PURE__ */ S(o, {
|
|
201
|
-
variant: "outline",
|
|
202
|
-
children: e.shift
|
|
203
|
-
})]
|
|
204
|
-
}, t))
|
|
205
|
-
}) : /* @__PURE__ */ S("p", {
|
|
206
|
-
className: "text-text-secondary",
|
|
207
|
-
children: "No staff assigned"
|
|
208
|
-
}) })] })
|
|
209
|
-
]
|
|
210
|
-
})]
|
|
211
|
-
})
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
//#endregion
|
|
215
|
-
export { w as default };
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { M as e, i as t, l as n, u as r } from "./PageLayout-xDTiBTDS.js";
|
|
2
|
-
import { t as i } from "./DataTable-CZGz3SJu.js";
|
|
3
|
-
import { t as a } from "./plus-D2BYAzMn.js";
|
|
4
|
-
import { t as o } from "./refresh-cw-D5Sy01s-.js";
|
|
5
|
-
import { t as s } from "./warehouse-Dt_bAr82.js";
|
|
6
|
-
import { r as c } from "./graphqlClient-CdJyR_ed.js";
|
|
7
|
-
import { o as l } from "./useInventory-Dwn18FPz.js";
|
|
8
|
-
import { t as u } from "./navigation-BgnOfsVd.js";
|
|
9
|
-
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
10
|
-
//#region src/movethewheels/pages/WarehousesPage.tsx
|
|
11
|
-
function p() {
|
|
12
|
-
let { basePath: p, navigate: m } = c(), { warehouses: h, totalWarehouses: g, isLoading: _, refetch: v } = l(), y = (e) => m?.(u(p, e));
|
|
13
|
-
return /* @__PURE__ */ d(t, {
|
|
14
|
-
title: "Warehouses",
|
|
15
|
-
subtitle: `${g} warehouses`,
|
|
16
|
-
icon: /* @__PURE__ */ d(s, { size: 24 }),
|
|
17
|
-
headerActions: /* @__PURE__ */ f("div", {
|
|
18
|
-
className: "flex gap-2",
|
|
19
|
-
children: [/* @__PURE__ */ f(r, {
|
|
20
|
-
variant: "outline",
|
|
21
|
-
onClick: v,
|
|
22
|
-
children: [/* @__PURE__ */ d(o, { size: 16 }), " Refresh"]
|
|
23
|
-
}), /* @__PURE__ */ f(r, { children: [/* @__PURE__ */ d(a, { size: 16 }), " Add Warehouse"] })]
|
|
24
|
-
}),
|
|
25
|
-
children: /* @__PURE__ */ d(i, {
|
|
26
|
-
columns: [
|
|
27
|
-
{
|
|
28
|
-
id: "name",
|
|
29
|
-
header: "Warehouse",
|
|
30
|
-
accessorKey: "name",
|
|
31
|
-
sortable: !0,
|
|
32
|
-
cell: (e) => /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
33
|
-
className: "font-medium",
|
|
34
|
-
children: e.name
|
|
35
|
-
}), /* @__PURE__ */ d("p", {
|
|
36
|
-
className: "text-sm text-text-secondary",
|
|
37
|
-
children: e.code
|
|
38
|
-
})] })
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
id: "location",
|
|
42
|
-
header: "Location",
|
|
43
|
-
cell: (e) => /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ f("p", { children: [
|
|
44
|
-
e.address.city,
|
|
45
|
-
", ",
|
|
46
|
-
e.address.state
|
|
47
|
-
] }), /* @__PURE__ */ d("p", {
|
|
48
|
-
className: "text-sm text-text-secondary",
|
|
49
|
-
children: e.address.country
|
|
50
|
-
})] })
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
id: "type",
|
|
54
|
-
header: "Type",
|
|
55
|
-
accessorKey: "type",
|
|
56
|
-
cell: (e) => /* @__PURE__ */ d(n, {
|
|
57
|
-
variant: "outline",
|
|
58
|
-
className: "capitalize",
|
|
59
|
-
children: e.type.replace("_", " ")
|
|
60
|
-
})
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: "utilization",
|
|
64
|
-
header: "Utilization",
|
|
65
|
-
cell: (t) => {
|
|
66
|
-
let n = t.capacity.usedSpace / t.capacity.totalSpace * 100;
|
|
67
|
-
return /* @__PURE__ */ f("div", {
|
|
68
|
-
className: "flex items-center gap-2",
|
|
69
|
-
children: [/* @__PURE__ */ d(e, {
|
|
70
|
-
value: n,
|
|
71
|
-
className: "w-16 h-2"
|
|
72
|
-
}), /* @__PURE__ */ f("span", {
|
|
73
|
-
className: "text-sm",
|
|
74
|
-
children: [n.toFixed(0), "%"]
|
|
75
|
-
})]
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: "capacity",
|
|
81
|
-
header: "Capacity",
|
|
82
|
-
cell: (e) => /* @__PURE__ */ f("div", {
|
|
83
|
-
className: "text-sm",
|
|
84
|
-
children: [/* @__PURE__ */ f("p", { children: [
|
|
85
|
-
e.capacity.usedSpace.toLocaleString(),
|
|
86
|
-
" / ",
|
|
87
|
-
e.capacity.totalSpace.toLocaleString(),
|
|
88
|
-
" ",
|
|
89
|
-
"sq ft"
|
|
90
|
-
] }), /* @__PURE__ */ f("p", {
|
|
91
|
-
className: "text-text-secondary",
|
|
92
|
-
children: [
|
|
93
|
-
e.capacity.usedPallets,
|
|
94
|
-
" / ",
|
|
95
|
-
e.capacity.totalPallets,
|
|
96
|
-
" pallets"
|
|
97
|
-
]
|
|
98
|
-
})]
|
|
99
|
-
})
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
id: "status",
|
|
103
|
-
header: "Status",
|
|
104
|
-
cell: (e) => /* @__PURE__ */ d(n, {
|
|
105
|
-
variant: e.isActive ? "default" : "secondary",
|
|
106
|
-
children: e.isActive ? "Active" : "Inactive"
|
|
107
|
-
})
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
data: h,
|
|
111
|
-
isLoading: _,
|
|
112
|
-
searchable: !0,
|
|
113
|
-
searchPlaceholder: "Search warehouses...",
|
|
114
|
-
searchFields: ["name", "code"],
|
|
115
|
-
onRowClick: (e) => y(`inventory/warehouses/${e.id}`),
|
|
116
|
-
getRowId: (e) => e.id
|
|
117
|
-
})
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
//#endregion
|
|
121
|
-
export { p as default };
|