@burdenoff/microfe-movethewheels 2026.626.2 → 2026.703.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-AvsMbunM.js → AIAssistantPage-C3ovZ0Fh.js} +100 -73
- package/dist/AnalyticsPage-O8SpY-V4.js +215 -0
- package/dist/{CreateOrderPage-CjlnEtk3.js → CreateOrderPage-CB1_-_mN.js} +33 -35
- package/dist/{CustomerDetailsPage-I6cdDHUi.js → CustomerDetailsPage-BaeKEI1D.js} +42 -44
- package/dist/{CustomersPage-CGGfD4ki.js → CustomersPage-DRaLuHMC.js} +26 -28
- package/dist/{DashboardPage-D2HRqwg9.js → DashboardPage-DPjhNfKB.js} +85 -83
- package/dist/{DataTable-CD9ZhpLB.js → DataTable-DmciIKKM.js} +3 -3
- package/dist/{DriverDetailsPage-rg_pGNuP.js → DriverDetailsPage-CSSQTOzn.js} +52 -54
- package/dist/{DriversPage-DKiynISH.js → DriversPage-C2Bk0w4Q.js} +24 -26
- package/dist/{FinancePage-Vg8WPs38.js → FinancePage-lmp0Sdsw.js} +9 -9
- package/dist/FleetPage-DZn5pIqd.js +365 -0
- package/dist/ImportExportPage-BIUJZc7O.js +290 -0
- package/dist/InventoryPage-Cxh1zYJd.js +253 -0
- package/dist/{LiveTrackingPage-DQ1q4Id3.js → LiveTrackingPage-BY1yAkIt.js} +60 -56
- package/dist/MarketplacePage-RMuL17EA.js +247 -0
- package/dist/{MetricCard-B7yMyvMX.js → MetricCard-7aYgzZHK.js} +1 -1
- package/dist/{OrderDetailsPage-CFASgsYX.js → OrderDetailsPage-C2Mf4KSy.js} +83 -85
- package/dist/{OrdersListPage-BHeT8S5o.js → OrdersListPage-BrPBtnhp.js} +31 -33
- package/dist/{PageLayout-D3N8MCTm.js → PageLayout-D4LDHJJq.js} +483 -422
- package/dist/{ProductDetailsPage-CFGcbaHo.js → ProductDetailsPage-CezzzZcj.js} +27 -29
- package/dist/{ProductsPage--xEpbQ8A.js → ProductsPage-I5DilIoY.js} +21 -23
- package/dist/ReportsPage-BDXNmUng.js +284 -0
- package/dist/RouteDetailsPage-BcomL20M.js +263 -0
- package/dist/RoutesPage-lqX9ylHP.js +144 -0
- package/dist/SettingsPage-CQVIOaNs.js +421 -0
- package/dist/StatusBadge-NpTeHVlw.js +152 -0
- package/dist/{TrackingPage-CcRc_dva.js → TrackingPage-BXrjz7V8.js} +59 -61
- package/dist/{VehicleDetailsPage-3YDMPsPs.js → VehicleDetailsPage-DZjLcJgr.js} +40 -42
- package/dist/{VehiclesPage-UlxPWP9K.js → VehiclesPage-6W39XT5W.js} +19 -21
- package/dist/{WarehouseDetailsPage-Db7KeN-d.js → WarehouseDetailsPage-C10pgRGW.js} +38 -40
- package/dist/{WarehousesPage-CuTO-OPp.js → WarehousesPage-CHvBqNaQ.js} +15 -17
- package/dist/{arrow-left-CBpZKkpq.js → arrow-left-n48Y-Wis.js} +1 -1
- package/dist/{box-CAaiElsb.js → box-D9Pal4HM.js} +1 -1
- package/dist/{chart-column-D1Ym15-S.js → chart-column-BFIJysDR.js} +1 -1
- package/dist/{chevron-right-BIFGi0UA.js → chevron-right-EMIIyyJ1.js} +1 -1
- package/dist/{circle-alert-DjmNo5_L.js → circle-alert-iY24lSlp.js} +1 -1
- package/dist/{circle-check-big-CjuPVo3_.js → circle-check-big-w0TrLKMF.js} +1 -1
- package/dist/{clock-BjkdnddD.js → clock-DJZtdl8u.js} +1 -1
- package/dist/{dollar-sign-IB4O0wuQ.js → dollar-sign-CgKQRz_e.js} +1 -1
- package/dist/{download-Dpa9vqoG.js → download-DRXxoiQR.js} +1 -1
- package/dist/{file-text-C8Uioy11.js → file-text-DWWY6_f5.js} +1 -1
- package/dist/{filter-Da5OZaHI.js → filter-DloLC2eE.js} +1 -1
- package/dist/index.js +119 -111
- package/dist/{map-_Per4sT9.js → map-CkJaULb2.js} +1 -1
- package/dist/{map-pin-BSaf5IDL.js → map-pin-BGiCvyCs.js} +1 -1
- package/dist/{navigation-DaTbrhw2.js → navigation-D36prnAn.js} +1 -1
- package/dist/{package-BE7U0wQE.js → package-BChUzpJS.js} +1 -1
- package/dist/{phone-DV4StZiA.js → phone-Ac9s3mo_.js} +1 -1
- package/dist/{plus-Dl1rLeJR.js → plus-Z76q-FZm.js} +1 -1
- package/dist/{refresh-cw-CWfERAit.js → refresh-cw-DKt6f5T6.js} +1 -1
- package/dist/{save-XH8vydOn.js → save-CojywNhG.js} +1 -1
- package/dist/{search-OxoIiL_C.js → search-CDGefqb3.js} +1 -1
- package/dist/{square-pen-hLIbFQFV.js → square-pen-CopE9GmB.js} +1 -1
- package/dist/{star-YsVV3MNQ.js → star-nHlLjDKR.js} +1 -1
- package/dist/{store-RCBl7HB-.js → store-BR9Voi5E.js} +1 -1
- package/dist/{trending-up-C-85AwGT.js → trending-up-B7W-GL6P.js} +1 -1
- package/dist/{triangle-alert-BOhfGgmh.js → triangle-alert-BonHFFNz.js} +1 -1
- package/dist/{truck-CtDjNFbi.js → truck-DrlfSpRC.js} +1 -1
- package/dist/{useAnalytics-ph7eTIK6.js → useAnalytics-CgdzUfY_.js} +40 -40
- package/dist/useAssistant-D4v3oxD3.js +84 -0
- package/dist/{useCustomers-bS3a4ytk.js → useCustomers-QrlozybF.js} +24 -24
- package/dist/{useFleet-BdETplNE.js → useFleet-DiAC-IiH.js} +70 -67
- package/dist/useImportExport-BLMnAKCC.js +55 -0
- package/dist/{useInventory-Dwn18FPz.js → useInventory-DKoks37x.js} +33 -33
- package/dist/{useOrders-D_3_hGMp.js → useOrders-D3UZVy8Y.js} +42 -42
- package/dist/useReports-Puq4DCH9.js +78 -0
- package/dist/{useRoutes-v4aBaS-E.js → useRoutes-Do57LvRb.js} +31 -31
- package/dist/useSettings-CkDH_-gM.js +81 -0
- package/dist/{useTracking-De2KIUNu.js → useTracking-GJify4HN.js} +22 -22
- package/dist/{user-Dz5TJZFs.js → user-CjSoudeu.js} +1 -1
- package/dist/{users-g2N0eL-Z.js → users-BAM4gHTn.js} +1 -1
- package/dist/{warehouse-D3WWDeTX.js → warehouse-C7MSr47B.js} +1 -1
- package/dist/{wrench-CmxY1n4I.js → wrench-CANXWxF-.js} +1 -1
- package/package.json +1 -1
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +27 -3
- package/src/movethewheels/components/StatusBadge.tsx +18 -37
- package/src/movethewheels/constants/index.ts +67 -26
- package/src/movethewheels/hooks/index.ts +12 -0
- package/src/movethewheels/hooks/useAnalytics.ts +20 -6
- package/src/movethewheels/hooks/useAssistant.ts +74 -0
- package/src/movethewheels/hooks/useFleet.ts +63 -59
- package/src/movethewheels/hooks/useImportExport.ts +101 -0
- package/src/movethewheels/hooks/useReports.ts +158 -0
- package/src/movethewheels/hooks/useSettings.ts +120 -0
- package/src/movethewheels/pages/AIAssistantPage.tsx +53 -15
- package/src/movethewheels/pages/AnalyticsPage.tsx +67 -64
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +1 -1
- package/src/movethewheels/pages/CustomersPage.tsx +1 -1
- package/src/movethewheels/pages/DashboardPage.tsx +42 -22
- package/src/movethewheels/pages/DriverDetailsPage.tsx +1 -1
- package/src/movethewheels/pages/DriversPage.tsx +1 -1
- package/src/movethewheels/pages/FleetPage.tsx +96 -38
- package/src/movethewheels/pages/ImportExportPage.tsx +174 -68
- package/src/movethewheels/pages/InventoryPage.tsx +66 -28
- package/src/movethewheels/pages/LiveTrackingPage.tsx +12 -3
- package/src/movethewheels/pages/MarketplacePage.tsx +87 -45
- package/src/movethewheels/pages/OrderDetailsPage.tsx +2 -2
- package/src/movethewheels/pages/ReportsPage.tsx +194 -90
- package/src/movethewheels/pages/RouteDetailsPage.tsx +5 -11
- package/src/movethewheels/pages/RoutesPage.tsx +4 -9
- package/src/movethewheels/pages/SettingsPage.tsx +234 -56
- package/src/movethewheels/pages/TrackingPage.tsx +6 -6
- package/src/movethewheels/providers/MoveTheWheelsProvider.tsx +7 -6
- package/src/movethewheels/store/movethewheelsStore.ts +1 -1
- package/dist/AnalyticsPage-CCLfHgQZ.js +0 -212
- package/dist/FleetPage-DddXt8r8.js +0 -332
- package/dist/ImportExportPage-BW6qO3kc.js +0 -248
- package/dist/InventoryPage-rMGuaJN-.js +0 -222
- package/dist/MarketplacePage-DKrXAv62.js +0 -219
- package/dist/ReportsPage-Bb7_90rK.js +0 -235
- package/dist/RouteDetailsPage-CVtDVb1N.js +0 -282
- package/dist/RoutesPage-s57PtgcQ.js +0 -163
- package/dist/SettingsPage-BYNCBOpN.js +0 -298
- package/dist/StatusBadge-CijYQXtb.js +0 -209
- package/dist/graphqlClient-CdJyR_ed.js +0 -55
- package/dist/navigation-BgnOfsVd.js +0 -6
- package/dist/route-Dp9JiN_E.js +0 -51
- package/dist/settings-3Rw5NwFF.js +0 -28
- package/src/movethewheels/constants/mockData.ts +0 -1342
- /package/dist/{formatters-_vJlC-47.js → formatters-DhKZ-eA1.js} +0 -0
|
@@ -1,45 +1,43 @@
|
|
|
1
|
-
import { M as e,
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { t as
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as y } from "./formatters-_vJlC-47.js";
|
|
12
|
-
import { t as b } from "./navigation-BgnOfsVd.js";
|
|
1
|
+
import { M as e, ct as t, d as n, f as r, g as i, h as a, i as o, l as s, n as c, ot as l, r as u, u as d } from "./PageLayout-D4LDHJJq.js";
|
|
2
|
+
import { t as f } from "./arrow-left-n48Y-Wis.js";
|
|
3
|
+
import { t as p } from "./box-D9Pal4HM.js";
|
|
4
|
+
import { t as m } from "./clock-DJZtdl8u.js";
|
|
5
|
+
import { t as h } from "./map-pin-BGiCvyCs.js";
|
|
6
|
+
import { t as g } from "./square-pen-CopE9GmB.js";
|
|
7
|
+
import { t as _ } from "./users-BAM4gHTn.js";
|
|
8
|
+
import { t as v } from "./warehouse-C7MSr47B.js";
|
|
9
|
+
import { a as y } from "./useInventory-DKoks37x.js";
|
|
10
|
+
import { t as b } from "./formatters-DhKZ-eA1.js";
|
|
13
11
|
import { useParams as x } from "react-router-dom";
|
|
14
12
|
import { jsx as S, jsxs as C } from "react/jsx-runtime";
|
|
15
13
|
import { EmphasisPanel as w, NextSteps as T, PagePurpose as E } from "@burdenoff/fe-libs/ui";
|
|
16
14
|
//#region src/movethewheels/pages/WarehouseDetailsPage.tsx
|
|
17
15
|
function D() {
|
|
18
|
-
let { warehouseId: D } = x(), { basePath: O, navigate: k } =
|
|
19
|
-
if (j) return /* @__PURE__ */ S(
|
|
20
|
-
if (M || !A) return /* @__PURE__ */ S(
|
|
16
|
+
let { warehouseId: D } = x(), { basePath: O, navigate: k } = l(), { warehouse: A, isLoading: j, error: M, refetch: N } = y(D), P = () => k?.(t(O, "inventory/warehouses")), F = (e) => k?.(t(O, e));
|
|
17
|
+
if (j) return /* @__PURE__ */ S(u, { message: "Loading warehouse details..." });
|
|
18
|
+
if (M || !A) return /* @__PURE__ */ S(c, {
|
|
21
19
|
title: "Warehouse not found",
|
|
22
20
|
onRetry: N
|
|
23
21
|
});
|
|
24
22
|
let I = A.capacity.usedSpace / A.capacity.totalSpace * 100;
|
|
25
|
-
return /* @__PURE__ */ C(
|
|
23
|
+
return /* @__PURE__ */ C(o, {
|
|
26
24
|
title: A.name,
|
|
27
25
|
subtitle: `Code: ${A.code}`,
|
|
28
|
-
icon: /* @__PURE__ */ S(
|
|
26
|
+
icon: /* @__PURE__ */ S(v, { size: 24 }),
|
|
29
27
|
headerActions: /* @__PURE__ */ C("div", {
|
|
30
28
|
className: "flex gap-2",
|
|
31
|
-
children: [/* @__PURE__ */ C(
|
|
29
|
+
children: [/* @__PURE__ */ C(d, {
|
|
32
30
|
variant: "outline",
|
|
33
31
|
onClick: P,
|
|
34
|
-
children: [/* @__PURE__ */ S(
|
|
35
|
-
}), /* @__PURE__ */ C(
|
|
32
|
+
children: [/* @__PURE__ */ S(f, { size: 16 }), " Back"]
|
|
33
|
+
}), /* @__PURE__ */ C(d, { children: [/* @__PURE__ */ S(g, { size: 16 }), " Edit"] })]
|
|
36
34
|
}),
|
|
37
35
|
headerContent: /* @__PURE__ */ C("div", {
|
|
38
36
|
className: "flex gap-2",
|
|
39
|
-
children: [/* @__PURE__ */ S(
|
|
37
|
+
children: [/* @__PURE__ */ S(s, {
|
|
40
38
|
variant: A.isActive ? "default" : "secondary",
|
|
41
39
|
children: A.isActive ? "Active" : "Inactive"
|
|
42
|
-
}), /* @__PURE__ */ S(
|
|
40
|
+
}), /* @__PURE__ */ S(s, {
|
|
43
41
|
variant: "outline",
|
|
44
42
|
className: "capitalize",
|
|
45
43
|
children: A.type.replace("_", " ")
|
|
@@ -47,7 +45,7 @@ function D() {
|
|
|
47
45
|
}),
|
|
48
46
|
children: [
|
|
49
47
|
/* @__PURE__ */ S(E, {
|
|
50
|
-
icon: /* @__PURE__ */ S(
|
|
48
|
+
icon: /* @__PURE__ */ S(v, { size: 18 }),
|
|
51
49
|
children: "A storage and fulfilment site at a glance — how full it is, its zones, operating hours, throughput and staff. Use it to decide whether this warehouse has the space and hours to fulfil an order, and where stock is running tight."
|
|
52
50
|
}),
|
|
53
51
|
/* @__PURE__ */ S(T, {
|
|
@@ -56,13 +54,13 @@ function D() {
|
|
|
56
54
|
id: "inventory",
|
|
57
55
|
label: "Review stock here",
|
|
58
56
|
description: "See which products are stored at this site.",
|
|
59
|
-
icon: /* @__PURE__ */ S(
|
|
57
|
+
icon: /* @__PURE__ */ S(p, { size: 16 }),
|
|
60
58
|
onClick: () => F("inventory/products")
|
|
61
59
|
}, {
|
|
62
60
|
id: "fulfil",
|
|
63
61
|
label: "Fulfil an order from this site",
|
|
64
62
|
description: "Pick a pending order to ship out of this warehouse.",
|
|
65
|
-
icon: /* @__PURE__ */ S(
|
|
63
|
+
icon: /* @__PURE__ */ S(h, { size: 16 }),
|
|
66
64
|
onClick: () => F("orders")
|
|
67
65
|
}]
|
|
68
66
|
}),
|
|
@@ -73,7 +71,7 @@ function D() {
|
|
|
73
71
|
children: [
|
|
74
72
|
/* @__PURE__ */ C(w, { children: [/* @__PURE__ */ C("h2", {
|
|
75
73
|
className: "flex items-center gap-2 text-base font-semibold text-text-primary mb-4",
|
|
76
|
-
children: [/* @__PURE__ */ S(
|
|
74
|
+
children: [/* @__PURE__ */ S(p, { size: 18 }), " Capacity"]
|
|
77
75
|
}), /* @__PURE__ */ C("div", {
|
|
78
76
|
className: "space-y-4",
|
|
79
77
|
children: [/* @__PURE__ */ C("div", { children: [
|
|
@@ -110,11 +108,11 @@ function D() {
|
|
|
110
108
|
})] })
|
|
111
109
|
})]
|
|
112
110
|
})] }),
|
|
113
|
-
/* @__PURE__ */ C(
|
|
111
|
+
/* @__PURE__ */ C(n, { children: [/* @__PURE__ */ S(a, { children: /* @__PURE__ */ C(i, { children: [
|
|
114
112
|
"Zones (",
|
|
115
113
|
A.zones.length,
|
|
116
114
|
")"
|
|
117
|
-
] }) }), /* @__PURE__ */ S(
|
|
115
|
+
] }) }), /* @__PURE__ */ S(r, { children: /* @__PURE__ */ S("div", {
|
|
118
116
|
className: "space-y-3",
|
|
119
117
|
children: A.zones.map((t) => /* @__PURE__ */ C("div", {
|
|
120
118
|
className: "flex items-center justify-between p-3 border rounded-lg",
|
|
@@ -144,10 +142,10 @@ function D() {
|
|
|
144
142
|
})]
|
|
145
143
|
}, t.id))
|
|
146
144
|
}) })] }),
|
|
147
|
-
/* @__PURE__ */ C(
|
|
145
|
+
/* @__PURE__ */ C(n, { children: [/* @__PURE__ */ S(a, { children: /* @__PURE__ */ C(i, {
|
|
148
146
|
className: "flex items-center gap-2",
|
|
149
|
-
children: [/* @__PURE__ */ S(
|
|
150
|
-
}) }), /* @__PURE__ */ S(
|
|
147
|
+
children: [/* @__PURE__ */ S(m, { size: 18 }), " Operating Hours"]
|
|
148
|
+
}) }), /* @__PURE__ */ S(r, { children: /* @__PURE__ */ S("div", {
|
|
151
149
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
152
150
|
children: Object.entries(A.operatingHours).map(([e, t]) => /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
153
151
|
className: "text-sm font-medium",
|
|
@@ -161,14 +159,14 @@ function D() {
|
|
|
161
159
|
}), /* @__PURE__ */ C("div", {
|
|
162
160
|
className: "space-y-6",
|
|
163
161
|
children: [
|
|
164
|
-
/* @__PURE__ */ C(
|
|
162
|
+
/* @__PURE__ */ C(n, { children: [/* @__PURE__ */ S(a, { children: /* @__PURE__ */ C(i, {
|
|
165
163
|
className: "flex items-center gap-2",
|
|
166
|
-
children: [/* @__PURE__ */ S(
|
|
167
|
-
}) }), /* @__PURE__ */ S(
|
|
164
|
+
children: [/* @__PURE__ */ S(h, { size: 18 }), " Location"]
|
|
165
|
+
}) }), /* @__PURE__ */ S(r, { children: /* @__PURE__ */ S("p", {
|
|
168
166
|
className: "text-sm",
|
|
169
|
-
children:
|
|
167
|
+
children: b(A.address)
|
|
170
168
|
}) })] }),
|
|
171
|
-
/* @__PURE__ */ C(
|
|
169
|
+
/* @__PURE__ */ C(n, { children: [/* @__PURE__ */ S(a, { children: /* @__PURE__ */ S(i, { children: "Metrics" }) }), /* @__PURE__ */ C(r, {
|
|
172
170
|
className: "space-y-3",
|
|
173
171
|
children: [
|
|
174
172
|
/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("p", {
|
|
@@ -204,22 +202,22 @@ function D() {
|
|
|
204
202
|
})] })
|
|
205
203
|
]
|
|
206
204
|
})] }),
|
|
207
|
-
/* @__PURE__ */ C(
|
|
205
|
+
/* @__PURE__ */ C(n, { children: [/* @__PURE__ */ S(a, { children: /* @__PURE__ */ C(i, {
|
|
208
206
|
className: "flex items-center gap-2",
|
|
209
207
|
children: [
|
|
210
|
-
/* @__PURE__ */ S(
|
|
208
|
+
/* @__PURE__ */ S(_, { size: 18 }),
|
|
211
209
|
" Staff (",
|
|
212
210
|
A.staff.length,
|
|
213
211
|
")"
|
|
214
212
|
]
|
|
215
|
-
}) }), /* @__PURE__ */ S(
|
|
213
|
+
}) }), /* @__PURE__ */ S(r, { children: A.staff.length > 0 ? /* @__PURE__ */ S("div", {
|
|
216
214
|
className: "space-y-2",
|
|
217
215
|
children: A.staff.map((e, t) => /* @__PURE__ */ C("div", {
|
|
218
216
|
className: "flex items-center justify-between p-2 border rounded",
|
|
219
217
|
children: [/* @__PURE__ */ S("span", {
|
|
220
218
|
className: "text-sm capitalize",
|
|
221
219
|
children: e.role
|
|
222
|
-
}), /* @__PURE__ */ S(
|
|
220
|
+
}), /* @__PURE__ */ S(s, {
|
|
223
221
|
variant: "outline",
|
|
224
222
|
children: e.shift
|
|
225
223
|
})]
|
|
@@ -1,35 +1,33 @@
|
|
|
1
|
-
import { M as e,
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import {
|
|
7
|
-
import { o as c } from "./useInventory-Dwn18FPz.js";
|
|
8
|
-
import { t as l } from "./navigation-BgnOfsVd.js";
|
|
1
|
+
import { M as e, ct as t, i as n, l as r, ot as i } from "./PageLayout-D4LDHJJq.js";
|
|
2
|
+
import { t as a } from "./DataTable-DmciIKKM.js";
|
|
3
|
+
import { t as o } from "./plus-Z76q-FZm.js";
|
|
4
|
+
import { t as s } from "./refresh-cw-DKt6f5T6.js";
|
|
5
|
+
import { t as c } from "./warehouse-C7MSr47B.js";
|
|
6
|
+
import { o as l } from "./useInventory-DKoks37x.js";
|
|
9
7
|
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
8
|
import { CTAOverflowMenu as f, EmphasisPanel as p, PagePurpose as m } from "@burdenoff/fe-libs/ui";
|
|
11
9
|
//#region src/movethewheels/pages/WarehousesPage.tsx
|
|
12
10
|
function h() {
|
|
13
|
-
let { basePath: h, navigate: g } =
|
|
14
|
-
return /* @__PURE__ */ d(
|
|
11
|
+
let { basePath: h, navigate: g } = i(), { warehouses: _, totalWarehouses: v, isLoading: y, refetch: b } = l(), x = (e) => g?.(t(h, e));
|
|
12
|
+
return /* @__PURE__ */ d(n, {
|
|
15
13
|
title: "Warehouses",
|
|
16
14
|
subtitle: `${v} warehouses`,
|
|
17
|
-
icon: /* @__PURE__ */ u(
|
|
15
|
+
icon: /* @__PURE__ */ u(c, { size: 24 }),
|
|
18
16
|
headerActions: /* @__PURE__ */ u(f, {
|
|
19
17
|
primary: {
|
|
20
18
|
label: "Add Warehouse",
|
|
21
|
-
icon: /* @__PURE__ */ u(
|
|
19
|
+
icon: /* @__PURE__ */ u(o, { size: 16 }),
|
|
22
20
|
onSelect: () => {}
|
|
23
21
|
},
|
|
24
22
|
actions: [{
|
|
25
23
|
label: "Refresh",
|
|
26
|
-
icon: /* @__PURE__ */ u(
|
|
24
|
+
icon: /* @__PURE__ */ u(s, { size: 16 }),
|
|
27
25
|
onSelect: () => b()
|
|
28
26
|
}]
|
|
29
27
|
}),
|
|
30
28
|
children: [
|
|
31
29
|
/* @__PURE__ */ u(m, {
|
|
32
|
-
icon: /* @__PURE__ */ u(
|
|
30
|
+
icon: /* @__PURE__ */ u(c, { size: 18 }),
|
|
33
31
|
children: "Your storage and fulfilment sites. Watch space and pallet utilization across each warehouse to balance stock, spot capacity crunches, and decide where to fulfil an order from."
|
|
34
32
|
}),
|
|
35
33
|
/* @__PURE__ */ d(p, { children: [/* @__PURE__ */ u("p", {
|
|
@@ -61,7 +59,7 @@ function h() {
|
|
|
61
59
|
})] })
|
|
62
60
|
]
|
|
63
61
|
})] }),
|
|
64
|
-
/* @__PURE__ */ u(
|
|
62
|
+
/* @__PURE__ */ u(a, {
|
|
65
63
|
columns: [
|
|
66
64
|
{
|
|
67
65
|
id: "name",
|
|
@@ -92,7 +90,7 @@ function h() {
|
|
|
92
90
|
id: "type",
|
|
93
91
|
header: "Type",
|
|
94
92
|
accessorKey: "type",
|
|
95
|
-
cell: (e) => /* @__PURE__ */ u(
|
|
93
|
+
cell: (e) => /* @__PURE__ */ u(r, {
|
|
96
94
|
variant: "outline",
|
|
97
95
|
className: "capitalize",
|
|
98
96
|
children: e.type.replace("_", " ")
|
|
@@ -140,7 +138,7 @@ function h() {
|
|
|
140
138
|
{
|
|
141
139
|
id: "status",
|
|
142
140
|
header: "Status",
|
|
143
|
-
cell: (e) => /* @__PURE__ */ u(
|
|
141
|
+
cell: (e) => /* @__PURE__ */ u(r, {
|
|
144
142
|
variant: e.isActive ? "default" : "secondary",
|
|
145
143
|
children: e.isActive ? "Active" : "Inactive"
|
|
146
144
|
})
|