@burdenoff/microfe-movethewheels 2026.510.105
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/README.md +82 -0
- package/dist/AIAssistantPage-hD0VYJdH.js +210 -0
- package/dist/AnalyticsPage-DHTHCUtr.js +201 -0
- package/dist/CreateOrderPage-Cprg4Y9V.js +471 -0
- package/dist/CustomerDetailsPage-DNDEw7IW.js +239 -0
- package/dist/CustomersPage-CDjjeCEL.js +119 -0
- package/dist/DashboardPage-8iTPXRAG.js +374 -0
- package/dist/DataTable-CRIKfdIN.js +239 -0
- package/dist/DriverDetailsPage-CRyRCno7.js +297 -0
- package/dist/DriversPage-16O8fVmf.js +127 -0
- package/dist/FinancePage-BYUxK5dR.js +154 -0
- package/dist/FleetPage-CHYETCWT.js +293 -0
- package/dist/ImportExportPage-C3MKKxfc.js +232 -0
- package/dist/InventoryPage--822AxZM.js +223 -0
- package/dist/LiveTrackingPage-Dp3rTJDr.js +332 -0
- package/dist/MarketplacePage-DjEqudfM.js +192 -0
- package/dist/MetricCard-GTbxAk1a.js +135 -0
- package/dist/OrderDetailsPage-BIuYG0ub.js +398 -0
- package/dist/OrdersListPage-CW5V0Uvh.js +257 -0
- package/dist/PageLayout-B7b0vl0R.js +1894 -0
- package/dist/ProductDetailsPage-Q3X7AT-7.js +168 -0
- package/dist/ProductsPage-CUj9JpnW.js +131 -0
- package/dist/ReportsPage-DblO5CdJ.js +227 -0
- package/dist/RouteDetailsPage-CLctgk6A.js +240 -0
- package/dist/RoutesPage-8hrv6RWT.js +116 -0
- package/dist/SettingsPage-BJ5BQeqn.js +247 -0
- package/dist/StatusBadge-BrrwraIA.js +206 -0
- package/dist/TrackingPage-BGqHDh-w.js +322 -0
- package/dist/VehicleDetailsPage-XnDH4iQR.js +194 -0
- package/dist/VehiclesPage-Cs4XxHkA.js +127 -0
- package/dist/WarehouseDetailsPage-GemdMvr_.js +215 -0
- package/dist/WarehousesPage-QTiuDuXy.js +121 -0
- package/dist/arrow-left-6CiLhqVp.js +11 -0
- package/dist/box-BunB_4UH.js +18 -0
- package/dist/chart-column-DWwVEVQ-.js +22 -0
- package/dist/chevron-right-DhZVf20o.js +8 -0
- package/dist/circle-alert-D5f6RZxt.js +26 -0
- package/dist/circle-check-big-D-JMHcTe.js +11 -0
- package/dist/clock-CvwBKbQP.js +13 -0
- package/dist/dev/main.d.ts +1 -0
- package/dist/dollar-sign-CP9qeU5d.js +14 -0
- package/dist/download-CIuG04pJ.js +21 -0
- package/dist/file-text-Dd_thxkn.js +26 -0
- package/dist/filter-DyRMX9CU.js +8 -0
- package/dist/formatters-_vJlC-47.js +50 -0
- package/dist/generated/global-operations.d.ts +1 -0
- package/dist/generated/global-types.d.ts +20715 -0
- package/dist/generated/wspace-operations.d.ts +3704 -0
- package/dist/generated/wspace-types.d.ts +53362 -0
- package/dist/graphqlClient-CdJyR_ed.js +55 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +772 -0
- package/dist/map-BqH1cBJi.js +18 -0
- package/dist/map-pin-CFBOmh-A.js +13 -0
- package/dist/movethewheels/MoveTheWheelsRoot.d.ts +25 -0
- package/dist/movethewheels/MoveTheWheelsRoutes.d.ts +7 -0
- package/dist/movethewheels/components/DataTable.d.ts +32 -0
- package/dist/movethewheels/components/MetricCard.d.ts +43 -0
- package/dist/movethewheels/components/PageLayout.d.ts +68 -0
- package/dist/movethewheels/components/StatusBadge.d.ts +49 -0
- package/dist/movethewheels/components/index.d.ts +10 -0
- package/dist/movethewheels/components/ui.d.ts +22 -0
- package/dist/movethewheels/constants/index.d.ts +24 -0
- package/dist/movethewheels/constants/mockData.d.ts +33 -0
- package/dist/movethewheels/hooks/index.d.ts +12 -0
- package/dist/movethewheels/hooks/useAnalytics.d.ts +118 -0
- package/dist/movethewheels/hooks/useCustomers.d.ts +37 -0
- package/dist/movethewheels/hooks/useFleet.d.ts +71 -0
- package/dist/movethewheels/hooks/useInventory.d.ts +60 -0
- package/dist/movethewheels/hooks/useOrders.d.ts +47 -0
- package/dist/movethewheels/hooks/useRoutes.d.ts +41 -0
- package/dist/movethewheels/hooks/useTracking.d.ts +69 -0
- package/dist/movethewheels/index.d.ts +30 -0
- package/dist/movethewheels/pages/AIAssistantPage.d.ts +4 -0
- package/dist/movethewheels/pages/AnalyticsPage.d.ts +4 -0
- package/dist/movethewheels/pages/CreateOrderPage.d.ts +6 -0
- package/dist/movethewheels/pages/CustomerDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/CustomersPage.d.ts +4 -0
- package/dist/movethewheels/pages/DashboardPage.d.ts +6 -0
- package/dist/movethewheels/pages/DriverDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/DriversPage.d.ts +4 -0
- package/dist/movethewheels/pages/FinancePage.d.ts +4 -0
- package/dist/movethewheels/pages/FleetPage.d.ts +6 -0
- package/dist/movethewheels/pages/ImportExportPage.d.ts +4 -0
- package/dist/movethewheels/pages/InventoryPage.d.ts +4 -0
- package/dist/movethewheels/pages/LiveTrackingPage.d.ts +6 -0
- package/dist/movethewheels/pages/MarketplacePage.d.ts +4 -0
- package/dist/movethewheels/pages/OrderDetailsPage.d.ts +6 -0
- package/dist/movethewheels/pages/OrdersListPage.d.ts +6 -0
- package/dist/movethewheels/pages/ProductDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/ProductsPage.d.ts +4 -0
- package/dist/movethewheels/pages/ReportsPage.d.ts +4 -0
- package/dist/movethewheels/pages/RouteDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/RoutesPage.d.ts +4 -0
- package/dist/movethewheels/pages/SettingsPage.d.ts +4 -0
- package/dist/movethewheels/pages/TrackingPage.d.ts +6 -0
- package/dist/movethewheels/pages/VehicleDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/VehiclesPage.d.ts +4 -0
- package/dist/movethewheels/pages/WarehouseDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/WarehousesPage.d.ts +4 -0
- package/dist/movethewheels/providers/MoveTheWheelsProvider.d.ts +16 -0
- package/dist/movethewheels/store/movethewheelsStore.d.ts +73 -0
- package/dist/movethewheels/types/index.d.ts +655 -0
- package/dist/movethewheels/utils/cn.d.ts +6 -0
- package/dist/movethewheels/utils/formatters.d.ts +60 -0
- package/dist/movethewheels/utils/graphqlClient.d.ts +11 -0
- package/dist/movethewheels/utils/index.d.ts +7 -0
- package/dist/movethewheels/utils/navigation.d.ts +23 -0
- package/dist/navigation-BgnOfsVd.js +6 -0
- package/dist/navigation-C2fY_aS9.js +8 -0
- package/dist/package-DVZbDRcV.js +22 -0
- package/dist/phone-KdwpVmC4.js +18 -0
- package/dist/plus-Bl7uX6Ji.js +11 -0
- package/dist/refresh-cw-BYjl3K-8.js +22 -0
- package/dist/route-Ce_poKFi.js +51 -0
- package/dist/save-C-qDVat-.js +18 -0
- package/dist/search-5pdn5eOO.js +13 -0
- package/dist/settings-C4kIDsYg.js +28 -0
- package/dist/square-pen-BwQ67vLE.js +11 -0
- package/dist/star-BlVsC3Ad.js +8 -0
- package/dist/store-DTmQT5M0.js +26 -0
- package/dist/trending-up-C1faflCI.js +11 -0
- package/dist/triangle-alert-CUoVAA4L.js +18 -0
- package/dist/truck-BmDAzu05.js +30 -0
- package/dist/useAnalytics-ph7eTIK6.js +297 -0
- package/dist/useCustomers-bS3a4ytk.js +186 -0
- package/dist/useFleet-BdETplNE.js +398 -0
- package/dist/useInventory-Dwn18FPz.js +323 -0
- package/dist/useOrders-D_3_hGMp.js +324 -0
- package/dist/useRoutes-v4aBaS-E.js +224 -0
- package/dist/useTracking-De2KIUNu.js +261 -0
- package/dist/user-BplzDrLP.js +13 -0
- package/dist/users-i-igmsP4.js +24 -0
- package/dist/warehouse-DewG0PXh.js +25 -0
- package/dist/wrench-CoSDEIC7.js +31 -0
- package/package.json +107 -0
- package/src/dev/main.tsx +110 -0
- package/src/dev/styles.css +139 -0
- package/src/generated/global-operations.ts +2 -0
- package/src/generated/global-types.ts +24048 -0
- package/src/generated/wspace-operations.ts +3734 -0
- package/src/generated/wspace-types.ts +60715 -0
- package/src/index.ts +4 -0
- package/src/movethewheels/MoveTheWheelsRoot.tsx +258 -0
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +119 -0
- package/src/movethewheels/components/DataTable.tsx +367 -0
- package/src/movethewheels/components/MetricCard.tsx +180 -0
- package/src/movethewheels/components/PageLayout.tsx +234 -0
- package/src/movethewheels/components/StatusBadge.tsx +243 -0
- package/src/movethewheels/components/index.ts +26 -0
- package/src/movethewheels/components/ui.tsx +124 -0
- package/src/movethewheels/constants/index.ts +65 -0
- package/src/movethewheels/constants/mockData.ts +1342 -0
- package/src/movethewheels/hooks/index.ts +55 -0
- package/src/movethewheels/hooks/useAnalytics.ts +476 -0
- package/src/movethewheels/hooks/useCustomers.ts +359 -0
- package/src/movethewheels/hooks/useFleet.ts +778 -0
- package/src/movethewheels/hooks/useInventory.ts +632 -0
- package/src/movethewheels/hooks/useOrders.ts +703 -0
- package/src/movethewheels/hooks/useRoutes.ts +453 -0
- package/src/movethewheels/hooks/useTracking.ts +505 -0
- package/src/movethewheels/index.ts +68 -0
- package/src/movethewheels/pages/AIAssistantPage.tsx +160 -0
- package/src/movethewheels/pages/AnalyticsPage.tsx +190 -0
- package/src/movethewheels/pages/CreateOrderPage.tsx +454 -0
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +207 -0
- package/src/movethewheels/pages/CustomersPage.tsx +115 -0
- package/src/movethewheels/pages/DashboardPage.tsx +414 -0
- package/src/movethewheels/pages/DriverDetailsPage.tsx +261 -0
- package/src/movethewheels/pages/DriversPage.tsx +118 -0
- package/src/movethewheels/pages/FinancePage.tsx +141 -0
- package/src/movethewheels/pages/FleetPage.tsx +289 -0
- package/src/movethewheels/pages/ImportExportPage.tsx +165 -0
- package/src/movethewheels/pages/InventoryPage.tsx +212 -0
- package/src/movethewheels/pages/LiveTrackingPage.tsx +325 -0
- package/src/movethewheels/pages/MarketplacePage.tsx +235 -0
- package/src/movethewheels/pages/OrderDetailsPage.tsx +387 -0
- package/src/movethewheels/pages/OrdersListPage.tsx +241 -0
- package/src/movethewheels/pages/ProductDetailsPage.tsx +155 -0
- package/src/movethewheels/pages/ProductsPage.tsx +124 -0
- package/src/movethewheels/pages/ReportsPage.tsx +164 -0
- package/src/movethewheels/pages/RouteDetailsPage.tsx +245 -0
- package/src/movethewheels/pages/RoutesPage.tsx +104 -0
- package/src/movethewheels/pages/SettingsPage.tsx +242 -0
- package/src/movethewheels/pages/TrackingPage.tsx +419 -0
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +218 -0
- package/src/movethewheels/pages/VehiclesPage.tsx +124 -0
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +216 -0
- package/src/movethewheels/pages/WarehousesPage.tsx +122 -0
- package/src/movethewheels/providers/MoveTheWheelsProvider.tsx +66 -0
- package/src/movethewheels/store/movethewheelsStore.ts +136 -0
- package/src/movethewheels/types/index.ts +744 -0
- package/src/movethewheels/utils/cn.ts +9 -0
- package/src/movethewheels/utils/formatters.ts +215 -0
- package/src/movethewheels/utils/graphqlClient.ts +63 -0
- package/src/movethewheels/utils/index.ts +8 -0
- package/src/movethewheels/utils/navigation.ts +70 -0
- package/src/operations/global/.gitkeep +0 -0
- package/src/operations/wspace/movethewheels/fragments/core.graphql +191 -0
- package/src/operations/wspace/movethewheels/mutations/entities.graphql +87 -0
- package/src/operations/wspace/movethewheels/mutations/logistics.graphql +86 -0
- package/src/operations/wspace/movethewheels/mutations/marketplace-reports.graphql +81 -0
- package/src/operations/wspace/movethewheels/mutations/orders.graphql +21 -0
- package/src/operations/wspace/movethewheels/queries/dashboard.graphql +61 -0
- package/src/operations/wspace/movethewheels/queries/entities.graphql +83 -0
- package/src/operations/wspace/movethewheels/queries/logistics.graphql +84 -0
- package/src/operations/wspace/movethewheels/queries/marketplace-reports.graphql +40 -0
- package/src/operations/wspace/movethewheels/queries/orders.graphql +43 -0
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { d as e, f as t, g as n, h as r, i, it as a, l as o, n as s, r as c, u as l } from "./PageLayout-B7b0vl0R.js";
|
|
2
|
+
import { t as u } from "./arrow-left-6CiLhqVp.js";
|
|
3
|
+
import { t as d } from "./box-BunB_4UH.js";
|
|
4
|
+
import { t as f } from "./dollar-sign-CP9qeU5d.js";
|
|
5
|
+
import { t as p } from "./package-DVZbDRcV.js";
|
|
6
|
+
import { t as m } from "./square-pen-BwQ67vLE.js";
|
|
7
|
+
import { r as h } from "./graphqlClient-CdJyR_ed.js";
|
|
8
|
+
import { r as g } from "./useInventory-Dwn18FPz.js";
|
|
9
|
+
import { n as _ } from "./formatters-_vJlC-47.js";
|
|
10
|
+
import { t as v } from "./navigation-BgnOfsVd.js";
|
|
11
|
+
import { useParams as y } from "react-router-dom";
|
|
12
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
13
|
+
//#region node_modules/lucide-react/dist/esm/icons/tag.js
|
|
14
|
+
var S = a("Tag", [["path", {
|
|
15
|
+
d: "M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",
|
|
16
|
+
key: "vktsd0"
|
|
17
|
+
}], ["circle", {
|
|
18
|
+
cx: "7.5",
|
|
19
|
+
cy: "7.5",
|
|
20
|
+
r: ".5",
|
|
21
|
+
fill: "currentColor",
|
|
22
|
+
key: "kqv944"
|
|
23
|
+
}]]);
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/movethewheels/pages/ProductDetailsPage.tsx
|
|
26
|
+
function C() {
|
|
27
|
+
let { productId: a } = y(), { basePath: C, navigate: w } = h(), { product: T, isLoading: E, error: D, refetch: O } = g(a);
|
|
28
|
+
return E ? /* @__PURE__ */ b(c, { message: "Loading product details..." }) : D || !T ? /* @__PURE__ */ b(s, {
|
|
29
|
+
title: "Product not found",
|
|
30
|
+
onRetry: O
|
|
31
|
+
}) : /* @__PURE__ */ b(i, {
|
|
32
|
+
title: T.name,
|
|
33
|
+
subtitle: `SKU: ${T.sku}`,
|
|
34
|
+
icon: /* @__PURE__ */ b(p, { size: 24 }),
|
|
35
|
+
headerActions: /* @__PURE__ */ x("div", {
|
|
36
|
+
className: "flex gap-2",
|
|
37
|
+
children: [/* @__PURE__ */ x(l, {
|
|
38
|
+
variant: "outline",
|
|
39
|
+
onClick: () => w?.(v(C, "inventory/products")),
|
|
40
|
+
children: [/* @__PURE__ */ b(u, { size: 16 }), " Back"]
|
|
41
|
+
}), /* @__PURE__ */ x(l, { children: [/* @__PURE__ */ b(m, { size: 16 }), " Edit"] })]
|
|
42
|
+
}),
|
|
43
|
+
headerContent: /* @__PURE__ */ x("div", {
|
|
44
|
+
className: "flex gap-2",
|
|
45
|
+
children: [
|
|
46
|
+
/* @__PURE__ */ b(o, {
|
|
47
|
+
variant: "outline",
|
|
48
|
+
children: T.category
|
|
49
|
+
}),
|
|
50
|
+
T.brand && /* @__PURE__ */ b(o, {
|
|
51
|
+
variant: "secondary",
|
|
52
|
+
children: T.brand
|
|
53
|
+
}),
|
|
54
|
+
T.fragile && /* @__PURE__ */ b(o, {
|
|
55
|
+
variant: "destructive",
|
|
56
|
+
children: "Fragile"
|
|
57
|
+
}),
|
|
58
|
+
T.hazardous && /* @__PURE__ */ b(o, {
|
|
59
|
+
variant: "destructive",
|
|
60
|
+
children: "Hazardous"
|
|
61
|
+
}),
|
|
62
|
+
T.temperatureControlled && /* @__PURE__ */ b(o, {
|
|
63
|
+
variant: "secondary",
|
|
64
|
+
children: "Temp Controlled"
|
|
65
|
+
})
|
|
66
|
+
]
|
|
67
|
+
}),
|
|
68
|
+
children: /* @__PURE__ */ x("div", {
|
|
69
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
70
|
+
children: [/* @__PURE__ */ x("div", {
|
|
71
|
+
className: "lg:col-span-2 space-y-6",
|
|
72
|
+
children: [
|
|
73
|
+
/* @__PURE__ */ x(e, { children: [/* @__PURE__ */ b(r, { children: /* @__PURE__ */ b(n, { children: "Description" }) }), /* @__PURE__ */ b(t, { children: /* @__PURE__ */ b("p", { children: T.description }) })] }),
|
|
74
|
+
/* @__PURE__ */ x(e, { children: [/* @__PURE__ */ b(r, { children: /* @__PURE__ */ x(n, {
|
|
75
|
+
className: "flex items-center gap-2",
|
|
76
|
+
children: [/* @__PURE__ */ b(d, { size: 18 }), " Dimensions & Weight"]
|
|
77
|
+
}) }), /* @__PURE__ */ b(t, { children: /* @__PURE__ */ x("div", {
|
|
78
|
+
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
79
|
+
children: [
|
|
80
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
81
|
+
className: "text-sm text-muted-foreground",
|
|
82
|
+
children: "Length"
|
|
83
|
+
}), /* @__PURE__ */ x("p", {
|
|
84
|
+
className: "text-2xl font-bold",
|
|
85
|
+
children: [T.dimensions.length, /* @__PURE__ */ x("span", {
|
|
86
|
+
className: "text-sm font-normal",
|
|
87
|
+
children: [" ", T.dimensions.unit]
|
|
88
|
+
})]
|
|
89
|
+
})] }),
|
|
90
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
91
|
+
className: "text-sm text-muted-foreground",
|
|
92
|
+
children: "Width"
|
|
93
|
+
}), /* @__PURE__ */ x("p", {
|
|
94
|
+
className: "text-2xl font-bold",
|
|
95
|
+
children: [T.dimensions.width, /* @__PURE__ */ x("span", {
|
|
96
|
+
className: "text-sm font-normal",
|
|
97
|
+
children: [" ", T.dimensions.unit]
|
|
98
|
+
})]
|
|
99
|
+
})] }),
|
|
100
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
101
|
+
className: "text-sm text-muted-foreground",
|
|
102
|
+
children: "Height"
|
|
103
|
+
}), /* @__PURE__ */ x("p", {
|
|
104
|
+
className: "text-2xl font-bold",
|
|
105
|
+
children: [T.dimensions.height, /* @__PURE__ */ x("span", {
|
|
106
|
+
className: "text-sm font-normal",
|
|
107
|
+
children: [" ", T.dimensions.unit]
|
|
108
|
+
})]
|
|
109
|
+
})] }),
|
|
110
|
+
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
111
|
+
className: "text-sm text-muted-foreground",
|
|
112
|
+
children: "Weight"
|
|
113
|
+
}), /* @__PURE__ */ x("p", {
|
|
114
|
+
className: "text-2xl font-bold",
|
|
115
|
+
children: [T.weight, /* @__PURE__ */ b("span", {
|
|
116
|
+
className: "text-sm font-normal",
|
|
117
|
+
children: " kg"
|
|
118
|
+
})]
|
|
119
|
+
})] })
|
|
120
|
+
]
|
|
121
|
+
}) })] }),
|
|
122
|
+
T.attributes.length > 0 && /* @__PURE__ */ x(e, { children: [/* @__PURE__ */ b(r, { children: /* @__PURE__ */ x(n, {
|
|
123
|
+
className: "flex items-center gap-2",
|
|
124
|
+
children: [/* @__PURE__ */ b(S, { size: 18 }), " Attributes"]
|
|
125
|
+
}) }), /* @__PURE__ */ b(t, { children: /* @__PURE__ */ b("div", {
|
|
126
|
+
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
127
|
+
children: T.attributes.map((e, t) => /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
128
|
+
className: "text-sm text-muted-foreground",
|
|
129
|
+
children: e.name
|
|
130
|
+
}), /* @__PURE__ */ b("p", {
|
|
131
|
+
className: "font-medium",
|
|
132
|
+
children: e.value
|
|
133
|
+
})] }, t))
|
|
134
|
+
}) })] })
|
|
135
|
+
]
|
|
136
|
+
}), /* @__PURE__ */ x("div", {
|
|
137
|
+
className: "space-y-6",
|
|
138
|
+
children: [/* @__PURE__ */ x(e, { children: [/* @__PURE__ */ b(r, { children: /* @__PURE__ */ x(n, {
|
|
139
|
+
className: "flex items-center gap-2",
|
|
140
|
+
children: [/* @__PURE__ */ b(f, { size: 18 }), " Pricing"]
|
|
141
|
+
}) }), /* @__PURE__ */ x(t, { children: [/* @__PURE__ */ b("p", {
|
|
142
|
+
className: "text-3xl font-bold",
|
|
143
|
+
children: _(T.value)
|
|
144
|
+
}), /* @__PURE__ */ b("p", {
|
|
145
|
+
className: "text-sm text-muted-foreground",
|
|
146
|
+
children: "Unit price"
|
|
147
|
+
})] })] }), /* @__PURE__ */ x(e, { children: [/* @__PURE__ */ b(r, { children: /* @__PURE__ */ b(n, { children: "Identifiers" }) }), /* @__PURE__ */ x(t, {
|
|
148
|
+
className: "space-y-3",
|
|
149
|
+
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
150
|
+
className: "text-sm text-muted-foreground",
|
|
151
|
+
children: "SKU"
|
|
152
|
+
}), /* @__PURE__ */ b("p", {
|
|
153
|
+
className: "font-mono",
|
|
154
|
+
children: T.sku
|
|
155
|
+
})] }), T.barcode && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
156
|
+
className: "text-sm text-muted-foreground",
|
|
157
|
+
children: "Barcode"
|
|
158
|
+
}), /* @__PURE__ */ b("p", {
|
|
159
|
+
className: "font-mono",
|
|
160
|
+
children: T.barcode
|
|
161
|
+
})] })]
|
|
162
|
+
})] })]
|
|
163
|
+
})]
|
|
164
|
+
})
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
//#endregion
|
|
168
|
+
export { C as default };
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { i as e, l as t, u as n } from "./PageLayout-B7b0vl0R.js";
|
|
2
|
+
import { t as r } from "./DataTable-CRIKfdIN.js";
|
|
3
|
+
import { t as i } from "./download-CIuG04pJ.js";
|
|
4
|
+
import { t as a } from "./package-DVZbDRcV.js";
|
|
5
|
+
import { t as o } from "./plus-Bl7uX6Ji.js";
|
|
6
|
+
import { t as s } from "./refresh-cw-BYjl3K-8.js";
|
|
7
|
+
import { r as c } from "./graphqlClient-CdJyR_ed.js";
|
|
8
|
+
import { i as l } from "./useInventory-Dwn18FPz.js";
|
|
9
|
+
import { n as u } from "./formatters-_vJlC-47.js";
|
|
10
|
+
import { t as d } from "./navigation-BgnOfsVd.js";
|
|
11
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
12
|
+
//#region src/movethewheels/pages/ProductsPage.tsx
|
|
13
|
+
function m() {
|
|
14
|
+
let { basePath: m, navigate: h } = c(), { products: g, totalProducts: _, isLoading: v, refetch: y } = l(), b = (e) => h?.(d(m, e));
|
|
15
|
+
return /* @__PURE__ */ f(e, {
|
|
16
|
+
title: "Products",
|
|
17
|
+
subtitle: `${_} products`,
|
|
18
|
+
icon: /* @__PURE__ */ f(a, { size: 24 }),
|
|
19
|
+
headerActions: /* @__PURE__ */ p("div", {
|
|
20
|
+
className: "flex gap-2",
|
|
21
|
+
children: [
|
|
22
|
+
/* @__PURE__ */ p(n, {
|
|
23
|
+
variant: "outline",
|
|
24
|
+
onClick: y,
|
|
25
|
+
children: [/* @__PURE__ */ f(s, { size: 16 }), " Refresh"]
|
|
26
|
+
}),
|
|
27
|
+
/* @__PURE__ */ p(n, {
|
|
28
|
+
variant: "outline",
|
|
29
|
+
children: [/* @__PURE__ */ f(i, { size: 16 }), " Export"]
|
|
30
|
+
}),
|
|
31
|
+
/* @__PURE__ */ p(n, { children: [/* @__PURE__ */ f(o, { size: 16 }), " Add Product"] })
|
|
32
|
+
]
|
|
33
|
+
}),
|
|
34
|
+
children: /* @__PURE__ */ f(r, {
|
|
35
|
+
columns: [
|
|
36
|
+
{
|
|
37
|
+
id: "sku",
|
|
38
|
+
header: "SKU",
|
|
39
|
+
accessorKey: "sku",
|
|
40
|
+
sortable: !0,
|
|
41
|
+
cell: (e) => /* @__PURE__ */ f("span", {
|
|
42
|
+
className: "font-mono",
|
|
43
|
+
children: e.sku
|
|
44
|
+
})
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
id: "name",
|
|
48
|
+
header: "Product Name",
|
|
49
|
+
accessorKey: "name",
|
|
50
|
+
sortable: !0,
|
|
51
|
+
cell: (e) => /* @__PURE__ */ p("div", { children: [/* @__PURE__ */ f("p", {
|
|
52
|
+
className: "font-medium",
|
|
53
|
+
children: e.name
|
|
54
|
+
}), /* @__PURE__ */ f("p", {
|
|
55
|
+
className: "text-sm text-muted-foreground line-clamp-1",
|
|
56
|
+
children: e.description
|
|
57
|
+
})] })
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
id: "category",
|
|
61
|
+
header: "Category",
|
|
62
|
+
accessorKey: "category",
|
|
63
|
+
sortable: !0,
|
|
64
|
+
cell: (e) => /* @__PURE__ */ f(t, {
|
|
65
|
+
variant: "outline",
|
|
66
|
+
children: e.category
|
|
67
|
+
})
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: "dimensions",
|
|
71
|
+
header: "Dimensions",
|
|
72
|
+
cell: (e) => `${e.dimensions.length}x${e.dimensions.width}x${e.dimensions.height} ${e.dimensions.unit}`
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "weight",
|
|
76
|
+
header: "Weight",
|
|
77
|
+
accessorKey: "weight",
|
|
78
|
+
sortable: !0,
|
|
79
|
+
cell: (e) => `${e.weight} kg`
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
id: "value",
|
|
83
|
+
header: "Value",
|
|
84
|
+
accessorKey: "value",
|
|
85
|
+
sortable: !0,
|
|
86
|
+
cell: (e) => /* @__PURE__ */ f("span", {
|
|
87
|
+
className: "font-medium",
|
|
88
|
+
children: u(e.value)
|
|
89
|
+
})
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
id: "flags",
|
|
93
|
+
header: "Flags",
|
|
94
|
+
cell: (e) => /* @__PURE__ */ p("div", {
|
|
95
|
+
className: "flex gap-1",
|
|
96
|
+
children: [
|
|
97
|
+
e.fragile && /* @__PURE__ */ f(t, {
|
|
98
|
+
variant: "destructive",
|
|
99
|
+
className: "text-xs",
|
|
100
|
+
children: "Fragile"
|
|
101
|
+
}),
|
|
102
|
+
e.hazardous && /* @__PURE__ */ f(t, {
|
|
103
|
+
variant: "destructive",
|
|
104
|
+
className: "text-xs",
|
|
105
|
+
children: "Hazardous"
|
|
106
|
+
}),
|
|
107
|
+
e.temperatureControlled && /* @__PURE__ */ f(t, {
|
|
108
|
+
variant: "secondary",
|
|
109
|
+
className: "text-xs",
|
|
110
|
+
children: "Temp Control"
|
|
111
|
+
})
|
|
112
|
+
]
|
|
113
|
+
})
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
data: g,
|
|
117
|
+
isLoading: v,
|
|
118
|
+
searchable: !0,
|
|
119
|
+
searchPlaceholder: "Search products...",
|
|
120
|
+
searchFields: [
|
|
121
|
+
"name",
|
|
122
|
+
"sku",
|
|
123
|
+
"category"
|
|
124
|
+
],
|
|
125
|
+
onRowClick: (e) => b(`inventory/products/${e.id}`),
|
|
126
|
+
getRowId: (e) => e.id
|
|
127
|
+
})
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
//#endregion
|
|
131
|
+
export { m as default };
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { F as e, I as t, L as n, P as r, R as i, d as a, f as o, g as s, h as c, i as l, it as u, l as d, u as f } from "./PageLayout-B7b0vl0R.js";
|
|
2
|
+
import { t as p } from "./clock-CvwBKbQP.js";
|
|
3
|
+
import { t as m } from "./download-CIuG04pJ.js";
|
|
4
|
+
import { t as h } from "./filter-DyRMX9CU.js";
|
|
5
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
6
|
+
//#region node_modules/lucide-react/dist/esm/icons/calendar.js
|
|
7
|
+
var v = u("Calendar", [
|
|
8
|
+
["path", {
|
|
9
|
+
d: "M8 2v4",
|
|
10
|
+
key: "1cmpym"
|
|
11
|
+
}],
|
|
12
|
+
["path", {
|
|
13
|
+
d: "M16 2v4",
|
|
14
|
+
key: "4m81vk"
|
|
15
|
+
}],
|
|
16
|
+
["rect", {
|
|
17
|
+
width: "18",
|
|
18
|
+
height: "18",
|
|
19
|
+
x: "3",
|
|
20
|
+
y: "4",
|
|
21
|
+
rx: "2",
|
|
22
|
+
key: "1hopcy"
|
|
23
|
+
}],
|
|
24
|
+
["path", {
|
|
25
|
+
d: "M3 10h18",
|
|
26
|
+
key: "8toen8"
|
|
27
|
+
}]
|
|
28
|
+
]), y = u("FileChartColumnIncreasing", [
|
|
29
|
+
["path", {
|
|
30
|
+
d: "M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",
|
|
31
|
+
key: "1rqfz7"
|
|
32
|
+
}],
|
|
33
|
+
["path", {
|
|
34
|
+
d: "M14 2v4a2 2 0 0 0 2 2h4",
|
|
35
|
+
key: "tnqrlb"
|
|
36
|
+
}],
|
|
37
|
+
["path", {
|
|
38
|
+
d: "M8 18v-2",
|
|
39
|
+
key: "qcmpov"
|
|
40
|
+
}],
|
|
41
|
+
["path", {
|
|
42
|
+
d: "M12 18v-4",
|
|
43
|
+
key: "q1q25u"
|
|
44
|
+
}],
|
|
45
|
+
["path", {
|
|
46
|
+
d: "M16 18v-6",
|
|
47
|
+
key: "15y0np"
|
|
48
|
+
}]
|
|
49
|
+
]);
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region src/movethewheels/pages/ReportsPage.tsx
|
|
52
|
+
function b() {
|
|
53
|
+
return /* @__PURE__ */ g(l, {
|
|
54
|
+
title: "Reports",
|
|
55
|
+
subtitle: "Generate and schedule reports",
|
|
56
|
+
icon: /* @__PURE__ */ g(y, { size: 24 }),
|
|
57
|
+
headerActions: /* @__PURE__ */ _("div", {
|
|
58
|
+
className: "flex gap-2",
|
|
59
|
+
children: [/* @__PURE__ */ _(r, {
|
|
60
|
+
defaultValue: "30d",
|
|
61
|
+
children: [/* @__PURE__ */ g(n, {
|
|
62
|
+
className: "w-[150px]",
|
|
63
|
+
children: /* @__PURE__ */ g(i, {})
|
|
64
|
+
}), /* @__PURE__ */ _(e, { children: [
|
|
65
|
+
/* @__PURE__ */ g(t, {
|
|
66
|
+
value: "7d",
|
|
67
|
+
children: "Last 7 days"
|
|
68
|
+
}),
|
|
69
|
+
/* @__PURE__ */ g(t, {
|
|
70
|
+
value: "30d",
|
|
71
|
+
children: "Last 30 days"
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ g(t, {
|
|
74
|
+
value: "90d",
|
|
75
|
+
children: "Last 90 days"
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ g(t, {
|
|
78
|
+
value: "custom",
|
|
79
|
+
children: "Custom"
|
|
80
|
+
})
|
|
81
|
+
] })]
|
|
82
|
+
}), /* @__PURE__ */ _(f, { children: [/* @__PURE__ */ g(y, { size: 16 }), " Create Report"] })]
|
|
83
|
+
}),
|
|
84
|
+
children: /* @__PURE__ */ _("div", {
|
|
85
|
+
className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
|
|
86
|
+
children: [/* @__PURE__ */ _("div", {
|
|
87
|
+
className: "lg:col-span-2 space-y-4",
|
|
88
|
+
children: [/* @__PURE__ */ g("h3", {
|
|
89
|
+
className: "font-semibold",
|
|
90
|
+
children: "Available Reports"
|
|
91
|
+
}), [
|
|
92
|
+
{
|
|
93
|
+
name: "Daily Operations Summary",
|
|
94
|
+
description: "Overview of daily deliveries and performance",
|
|
95
|
+
frequency: "Daily",
|
|
96
|
+
lastGenerated: "2024-01-15"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
name: "Weekly Performance Report",
|
|
100
|
+
description: "KPIs and metrics for the week",
|
|
101
|
+
frequency: "Weekly",
|
|
102
|
+
lastGenerated: "2024-01-14"
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "Monthly Financial Report",
|
|
106
|
+
description: "Revenue, expenses, and profit analysis",
|
|
107
|
+
frequency: "Monthly",
|
|
108
|
+
lastGenerated: "2024-01-01"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
name: "Fleet Utilization Report",
|
|
112
|
+
description: "Vehicle and driver utilization metrics",
|
|
113
|
+
frequency: "Weekly",
|
|
114
|
+
lastGenerated: "2024-01-14"
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
name: "Customer Analytics Report",
|
|
118
|
+
description: "Customer satisfaction and retention",
|
|
119
|
+
frequency: "Monthly",
|
|
120
|
+
lastGenerated: "2024-01-01"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "Inventory Status Report",
|
|
124
|
+
description: "Stock levels and movement analysis",
|
|
125
|
+
frequency: "Daily",
|
|
126
|
+
lastGenerated: "2024-01-15"
|
|
127
|
+
}
|
|
128
|
+
].map((e) => /* @__PURE__ */ g(a, { children: /* @__PURE__ */ g(o, {
|
|
129
|
+
className: "p-4",
|
|
130
|
+
children: /* @__PURE__ */ _("div", {
|
|
131
|
+
className: "flex items-center justify-between",
|
|
132
|
+
children: [/* @__PURE__ */ _("div", {
|
|
133
|
+
className: "flex items-center gap-3",
|
|
134
|
+
children: [/* @__PURE__ */ g("div", {
|
|
135
|
+
className: "w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",
|
|
136
|
+
children: /* @__PURE__ */ g(y, {
|
|
137
|
+
size: 20,
|
|
138
|
+
className: "text-primary"
|
|
139
|
+
})
|
|
140
|
+
}), /* @__PURE__ */ _("div", { children: [/* @__PURE__ */ g("p", {
|
|
141
|
+
className: "font-medium",
|
|
142
|
+
children: e.name
|
|
143
|
+
}), /* @__PURE__ */ g("p", {
|
|
144
|
+
className: "text-sm text-muted-foreground",
|
|
145
|
+
children: e.description
|
|
146
|
+
})] })]
|
|
147
|
+
}), /* @__PURE__ */ _("div", {
|
|
148
|
+
className: "flex items-center gap-3",
|
|
149
|
+
children: [/* @__PURE__ */ _("div", {
|
|
150
|
+
className: "text-right",
|
|
151
|
+
children: [/* @__PURE__ */ g(d, {
|
|
152
|
+
variant: "outline",
|
|
153
|
+
children: e.frequency
|
|
154
|
+
}), /* @__PURE__ */ _("p", {
|
|
155
|
+
className: "text-xs text-muted-foreground mt-1",
|
|
156
|
+
children: ["Last: ", e.lastGenerated]
|
|
157
|
+
})]
|
|
158
|
+
}), /* @__PURE__ */ g(f, {
|
|
159
|
+
variant: "outline",
|
|
160
|
+
size: "sm",
|
|
161
|
+
children: /* @__PURE__ */ g(m, { size: 14 })
|
|
162
|
+
})]
|
|
163
|
+
})]
|
|
164
|
+
})
|
|
165
|
+
}) }, e.name))]
|
|
166
|
+
}), /* @__PURE__ */ _("div", {
|
|
167
|
+
className: "space-y-6",
|
|
168
|
+
children: [/* @__PURE__ */ _(a, { children: [/* @__PURE__ */ g(c, { children: /* @__PURE__ */ _(s, {
|
|
169
|
+
className: "flex items-center gap-2",
|
|
170
|
+
children: [/* @__PURE__ */ g(p, { size: 18 }), " Scheduled Reports"]
|
|
171
|
+
}) }), /* @__PURE__ */ _(o, {
|
|
172
|
+
className: "space-y-3",
|
|
173
|
+
children: [[{
|
|
174
|
+
name: "Daily Summary",
|
|
175
|
+
nextRun: "Tomorrow 6:00 AM",
|
|
176
|
+
recipients: 3
|
|
177
|
+
}, {
|
|
178
|
+
name: "Weekly Review",
|
|
179
|
+
nextRun: "Monday 9:00 AM",
|
|
180
|
+
recipients: 5
|
|
181
|
+
}].map((e) => /* @__PURE__ */ _("div", {
|
|
182
|
+
className: "p-3 border rounded-lg",
|
|
183
|
+
children: [
|
|
184
|
+
/* @__PURE__ */ g("p", {
|
|
185
|
+
className: "font-medium",
|
|
186
|
+
children: e.name
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ _("p", {
|
|
189
|
+
className: "text-sm text-muted-foreground",
|
|
190
|
+
children: ["Next: ", e.nextRun]
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ _("p", {
|
|
193
|
+
className: "text-xs text-muted-foreground",
|
|
194
|
+
children: [e.recipients, " recipients"]
|
|
195
|
+
})
|
|
196
|
+
]
|
|
197
|
+
}, e.name)), /* @__PURE__ */ g(f, {
|
|
198
|
+
variant: "outline",
|
|
199
|
+
className: "w-full",
|
|
200
|
+
children: "Schedule New Report"
|
|
201
|
+
})]
|
|
202
|
+
})] }), /* @__PURE__ */ _(a, { children: [/* @__PURE__ */ g(c, { children: /* @__PURE__ */ g(s, { children: "Quick Actions" }) }), /* @__PURE__ */ _(o, {
|
|
203
|
+
className: "space-y-2",
|
|
204
|
+
children: [
|
|
205
|
+
/* @__PURE__ */ _(f, {
|
|
206
|
+
variant: "outline",
|
|
207
|
+
className: "w-full justify-start",
|
|
208
|
+
children: [/* @__PURE__ */ g(v, { size: 16 }), " Schedule Report"]
|
|
209
|
+
}),
|
|
210
|
+
/* @__PURE__ */ _(f, {
|
|
211
|
+
variant: "outline",
|
|
212
|
+
className: "w-full justify-start",
|
|
213
|
+
children: [/* @__PURE__ */ g(h, { size: 16 }), " Custom Report"]
|
|
214
|
+
}),
|
|
215
|
+
/* @__PURE__ */ _(f, {
|
|
216
|
+
variant: "outline",
|
|
217
|
+
className: "w-full justify-start",
|
|
218
|
+
children: [/* @__PURE__ */ g(m, { size: 16 }), " Export All"]
|
|
219
|
+
})
|
|
220
|
+
]
|
|
221
|
+
})] })]
|
|
222
|
+
})]
|
|
223
|
+
})
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
//#endregion
|
|
227
|
+
export { b as default };
|