@burdenoff/microfe-movethewheels 2026.614.1 → 2026.625.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-FGGTN-DA.js → AIAssistantPage-CNyoKtID.js} +8 -8
- package/dist/{AnalyticsPage-DSLYCnln.js → AnalyticsPage-Ck615ox7.js} +21 -21
- package/dist/{CreateOrderPage-BgjA_QFT.js → CreateOrderPage-C9Vb57Yn.js} +8 -8
- package/dist/{CustomerDetailsPage-Cfvfw12U.js → CustomerDetailsPage-BVkHRZvi.js} +24 -24
- package/dist/CustomersPage-DhQg-6h_.js +118 -0
- package/dist/{DashboardPage-BeyvN3Mr.js → DashboardPage-DTmyuC11.js} +134 -127
- package/dist/{DataTable-oNjXEcUO.js → DataTable-CfWvFw5B.js} +13 -13
- package/dist/{DriverDetailsPage-DGTUZG5S.js → DriverDetailsPage-DaaCQ-2O.js} +27 -27
- package/dist/DriversPage-D0RMBB_t.js +129 -0
- package/dist/{FinancePage-Cyi75iWa.js → FinancePage-BUXqW1IM.js} +11 -11
- package/dist/{FleetPage-Dlupg1NZ.js → FleetPage-DCfOmBa2.js} +74 -73
- package/dist/{ImportExportPage-D81vnXbH.js → ImportExportPage-BM1BoRcE.js} +9 -9
- package/dist/{InventoryPage-D0u2nxRd.js → InventoryPage-BW0QXWuf.js} +68 -73
- package/dist/{LiveTrackingPage-CKIlbMBA.js → LiveTrackingPage-DqcGXdkw.js} +26 -26
- package/dist/{MarketplacePage-3NpZ0_SK.js → MarketplacePage-DFqsxNYU.js} +13 -13
- package/dist/MetricCard-B7yMyvMX.js +146 -0
- package/dist/{OrderDetailsPage-BeGWzAws.js → OrderDetailsPage-Dx1m3cVA.js} +34 -34
- package/dist/{OrdersListPage-DczM6NXa.js → OrdersListPage-DHYBGrWf.js} +78 -79
- package/dist/{PageLayout-3DR4pMQ9.js → PageLayout-D3N8MCTm.js} +628 -568
- package/dist/{ProductDetailsPage-Czcrqe2F.js → ProductDetailsPage-DOXO90kb.js} +15 -15
- package/dist/{ProductsPage-DJhdrfox.js → ProductsPage-RLMTwWN0.js} +42 -40
- package/dist/{ReportsPage-DPqE4Q3D.js → ReportsPage-Df3hciPy.js} +10 -10
- package/dist/{RouteDetailsPage-j6ZczLRT.js → RouteDetailsPage-xzFDeR-X.js} +22 -22
- package/dist/{RoutesPage-OZM7lJDi.js → RoutesPage-DDFy1QVi.js} +32 -30
- package/dist/{SettingsPage-v6vRyIAp.js → SettingsPage-JH_-UPbf.js} +7 -7
- package/dist/{StatusBadge-elLZA4Wl.js → StatusBadge-CijYQXtb.js} +5 -2
- package/dist/{TrackingPage-CBmGvTW_.js → TrackingPage-CU0Vk4mx.js} +31 -31
- package/dist/{VehicleDetailsPage-DJXYkTN2.js → VehicleDetailsPage-P4xDttKw.js} +21 -21
- package/dist/VehiclesPage-tJZ64QKV.js +129 -0
- package/dist/{WarehouseDetailsPage-nMZvp56W.js → WarehouseDetailsPage-Bt_w2Yf7.js} +19 -19
- package/dist/{WarehousesPage-BcJ_QrK3.js → WarehousesPage-HsPpEFeG.js} +40 -35
- package/dist/arrow-left-CBpZKkpq.js +11 -0
- package/dist/{box-CnErOGkD.js → box-CAaiElsb.js} +2 -2
- package/dist/{chart-column-CFT0jC9N.js → chart-column-D1Ym15-S.js} +2 -2
- package/dist/chevron-right-BIFGi0UA.js +8 -0
- package/dist/{circle-alert-B2pZQFzu.js → circle-alert-DjmNo5_L.js} +2 -2
- package/dist/circle-check-big-CjuPVo3_.js +11 -0
- package/dist/{clock-DP-76dyQ.js → clock-BjkdnddD.js} +2 -2
- package/dist/{dollar-sign-CrwqdoEC.js → dollar-sign-IB4O0wuQ.js} +2 -2
- package/dist/{download-CQqBpPk5.js → download-Dpa9vqoG.js} +2 -2
- package/dist/{file-text-CnHcsdsc.js → file-text-C8Uioy11.js} +2 -2
- package/dist/filter-Da5OZaHI.js +8 -0
- package/dist/index.js +52 -50
- package/dist/{map-qljBUQ1N.js → map-_Per4sT9.js} +2 -2
- package/dist/{map-pin-4a-IA2NP.js → map-pin-BSaf5IDL.js} +2 -2
- package/dist/navigation-DaTbrhw2.js +8 -0
- package/dist/{package-CPePjBwW.js → package-BE7U0wQE.js} +2 -2
- package/dist/{phone-2rkA8w_3.js → phone-DV4StZiA.js} +2 -2
- package/dist/plus-Dl1rLeJR.js +11 -0
- package/dist/{refresh-cw-oWEqfHnS.js → refresh-cw-CWfERAit.js} +2 -2
- package/dist/{route-DBljW-z4.js → route-Dp9JiN_E.js} +2 -2
- package/dist/{save-Cjsx5R5Y.js → save-XH8vydOn.js} +2 -2
- package/dist/search-OxoIiL_C.js +13 -0
- package/dist/{settings-CX94mtOc.js → settings-3Rw5NwFF.js} +2 -2
- package/dist/{square-pen-BIgbw83U.js → square-pen-hLIbFQFV.js} +2 -2
- package/dist/{star-BW23nRLp.js → star-YsVV3MNQ.js} +2 -2
- package/dist/{store-Cdk0UEPT.js → store-RCBl7HB-.js} +2 -2
- package/dist/{trending-up-DYQ3Xns5.js → trending-up-C-85AwGT.js} +2 -2
- package/dist/{triangle-alert-Ck_oBZ7n.js → triangle-alert-BOhfGgmh.js} +2 -2
- package/dist/{truck-Cd54agV-.js → truck-CtDjNFbi.js} +2 -2
- package/dist/{user-CUEmQUkJ.js → user-Dz5TJZFs.js} +2 -2
- package/dist/{users-e-wRlQnX.js → users-g2N0eL-Z.js} +2 -2
- package/dist/{warehouse-DXnNb4kf.js → warehouse-D3WWDeTX.js} +2 -2
- package/dist/{wrench-DYJo0U8_.js → wrench-CmxY1n4I.js} +2 -2
- package/package.json +2 -2
- package/src/dev/main.tsx +4 -4
- package/src/movethewheels/MoveTheWheelsRoutes.tsx +1 -1
- package/src/movethewheels/components/DataTable.tsx +10 -10
- package/src/movethewheels/components/MetricCard.tsx +52 -23
- package/src/movethewheels/components/PageLayout.tsx +70 -15
- package/src/movethewheels/components/StatusBadge.tsx +2 -1
- package/src/movethewheels/components/ui.tsx +3 -3
- package/src/movethewheels/pages/AIAssistantPage.tsx +3 -3
- package/src/movethewheels/pages/AnalyticsPage.tsx +13 -13
- package/src/movethewheels/pages/CreateOrderPage.tsx +2 -2
- package/src/movethewheels/pages/CustomerDetailsPage.tsx +14 -14
- package/src/movethewheels/pages/CustomersPage.tsx +14 -13
- package/src/movethewheels/pages/DashboardPage.tsx +71 -64
- package/src/movethewheels/pages/DriverDetailsPage.tsx +17 -17
- package/src/movethewheels/pages/DriversPage.tsx +12 -15
- package/src/movethewheels/pages/FinancePage.tsx +4 -4
- package/src/movethewheels/pages/FleetPage.tsx +23 -18
- package/src/movethewheels/pages/ImportExportPage.tsx +5 -5
- package/src/movethewheels/pages/InventoryPage.tsx +25 -18
- package/src/movethewheels/pages/LiveTrackingPage.tsx +18 -18
- package/src/movethewheels/pages/MarketplacePage.tsx +6 -6
- package/src/movethewheels/pages/OrderDetailsPage.tsx +20 -20
- package/src/movethewheels/pages/OrdersListPage.tsx +22 -16
- package/src/movethewheels/pages/ProductDetailsPage.tsx +8 -8
- package/src/movethewheels/pages/ProductsPage.tsx +10 -13
- package/src/movethewheels/pages/ReportsPage.tsx +5 -5
- package/src/movethewheels/pages/RouteDetailsPage.tsx +13 -13
- package/src/movethewheels/pages/RoutesPage.tsx +12 -9
- package/src/movethewheels/pages/SettingsPage.tsx +2 -2
- package/src/movethewheels/pages/TrackingPage.tsx +23 -23
- package/src/movethewheels/pages/VehicleDetailsPage.tsx +13 -13
- package/src/movethewheels/pages/VehiclesPage.tsx +11 -17
- package/src/movethewheels/pages/WarehouseDetailsPage.tsx +11 -11
- package/src/movethewheels/pages/WarehousesPage.tsx +11 -12
- package/dist/CustomersPage-DXnx04Au.js +0 -119
- package/dist/DriversPage-CRursDRZ.js +0 -127
- package/dist/MetricCard-BDcT-7Ei.js +0 -135
- package/dist/VehiclesPage-r_snhuEj.js +0 -127
- package/dist/arrow-left-Crb7WKr1.js +0 -11
- package/dist/chevron-right-Bzo6Rr8_.js +0 -8
- package/dist/circle-check-big-R_fjEgxM.js +0 -11
- package/dist/filter-CgTF21j9.js +0 -8
- package/dist/navigation-CqRTj3vI.js +0 -8
- package/dist/plus-Dew5yoQK.js +0 -11
- package/dist/search-FWYzDbBx.js +0 -13
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { i as e, o as t, s as n, u as r } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
import { t as i } from "./DataTable-oNjXEcUO.js";
|
|
3
|
-
import { t as a } from "./download-CQqBpPk5.js";
|
|
4
|
-
import { t as o } from "./plus-Dew5yoQK.js";
|
|
5
|
-
import { t as s } from "./refresh-cw-oWEqfHnS.js";
|
|
6
|
-
import { t as c } from "./star-BW23nRLp.js";
|
|
7
|
-
import { t as l } from "./users-e-wRlQnX.js";
|
|
8
|
-
import { r as u } from "./graphqlClient-CdJyR_ed.js";
|
|
9
|
-
import { n as d } from "./useFleet-BdETplNE.js";
|
|
10
|
-
import { r as f } from "./StatusBadge-elLZA4Wl.js";
|
|
11
|
-
import { r as p } from "./formatters-_vJlC-47.js";
|
|
12
|
-
import { t as m } from "./navigation-BgnOfsVd.js";
|
|
13
|
-
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
14
|
-
//#region src/movethewheels/pages/DriversPage.tsx
|
|
15
|
-
function _() {
|
|
16
|
-
let { basePath: _, navigate: v } = u(), { drivers: y, totalDrivers: b, isLoading: x, refetch: S } = d(), C = (e) => v?.(m(_, e));
|
|
17
|
-
return /* @__PURE__ */ h(e, {
|
|
18
|
-
title: "Drivers",
|
|
19
|
-
subtitle: `${b} drivers`,
|
|
20
|
-
icon: /* @__PURE__ */ h(l, { size: 24 }),
|
|
21
|
-
headerActions: /* @__PURE__ */ g("div", {
|
|
22
|
-
className: "flex gap-2",
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ g(r, {
|
|
25
|
-
variant: "outline",
|
|
26
|
-
onClick: S,
|
|
27
|
-
children: [/* @__PURE__ */ h(s, { size: 16 }), " Refresh"]
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ g(r, {
|
|
30
|
-
variant: "outline",
|
|
31
|
-
children: [/* @__PURE__ */ h(a, { size: 16 }), " Export"]
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ g(r, { children: [/* @__PURE__ */ h(o, { size: 16 }), " Add Driver"] })
|
|
34
|
-
]
|
|
35
|
-
}),
|
|
36
|
-
children: /* @__PURE__ */ h(i, {
|
|
37
|
-
columns: [
|
|
38
|
-
{
|
|
39
|
-
id: "driver",
|
|
40
|
-
header: "Driver",
|
|
41
|
-
cell: (e) => /* @__PURE__ */ g("div", {
|
|
42
|
-
className: "flex items-center gap-3",
|
|
43
|
-
children: [/* @__PURE__ */ h(t, { children: /* @__PURE__ */ h(n, { children: e.fullName.split(" ").map((e) => e[0]).join("") }) }), /* @__PURE__ */ g("div", { children: [/* @__PURE__ */ h("p", {
|
|
44
|
-
className: "font-medium",
|
|
45
|
-
children: e.fullName
|
|
46
|
-
}), /* @__PURE__ */ h("p", {
|
|
47
|
-
className: "text-sm text-muted-foreground",
|
|
48
|
-
children: e.employeeId
|
|
49
|
-
})] })]
|
|
50
|
-
})
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
id: "status",
|
|
54
|
-
header: "Status",
|
|
55
|
-
accessorKey: "status",
|
|
56
|
-
sortable: !0,
|
|
57
|
-
cell: (e) => /* @__PURE__ */ h(f, {
|
|
58
|
-
status: e.status,
|
|
59
|
-
type: "driver"
|
|
60
|
-
})
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: "rating",
|
|
64
|
-
header: "Rating",
|
|
65
|
-
cell: (e) => /* @__PURE__ */ g("div", {
|
|
66
|
-
className: "flex items-center gap-1",
|
|
67
|
-
children: [
|
|
68
|
-
/* @__PURE__ */ h(c, {
|
|
69
|
-
size: 14,
|
|
70
|
-
className: "text-yellow-500 fill-yellow-500"
|
|
71
|
-
}),
|
|
72
|
-
/* @__PURE__ */ h("span", {
|
|
73
|
-
className: "font-medium",
|
|
74
|
-
children: e.ratings.overall.toFixed(1)
|
|
75
|
-
}),
|
|
76
|
-
/* @__PURE__ */ g("span", {
|
|
77
|
-
className: "text-muted-foreground text-sm",
|
|
78
|
-
children: [
|
|
79
|
-
"(",
|
|
80
|
-
e.ratings.totalRatings,
|
|
81
|
-
")"
|
|
82
|
-
]
|
|
83
|
-
})
|
|
84
|
-
]
|
|
85
|
-
})
|
|
86
|
-
},
|
|
87
|
-
{
|
|
88
|
-
id: "deliveries",
|
|
89
|
-
header: "Deliveries",
|
|
90
|
-
accessorKey: "completedOrders",
|
|
91
|
-
sortable: !0,
|
|
92
|
-
cell: (e) => /* @__PURE__ */ h("span", {
|
|
93
|
-
className: "font-medium",
|
|
94
|
-
children: e.completedOrders.toLocaleString()
|
|
95
|
-
})
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
id: "license",
|
|
99
|
-
header: "License",
|
|
100
|
-
cell: (e) => /* @__PURE__ */ g("div", {
|
|
101
|
-
className: "text-sm",
|
|
102
|
-
children: [/* @__PURE__ */ h("p", { children: e.licenseType }), /* @__PURE__ */ g("p", {
|
|
103
|
-
className: "text-muted-foreground",
|
|
104
|
-
children: ["Exp: ", p(e.licenseExpiry, "short")]
|
|
105
|
-
})]
|
|
106
|
-
})
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
id: "joined",
|
|
110
|
-
header: "Join Date",
|
|
111
|
-
accessorKey: "joinDate",
|
|
112
|
-
sortable: !0,
|
|
113
|
-
cell: (e) => p(e.joinDate, "short")
|
|
114
|
-
}
|
|
115
|
-
],
|
|
116
|
-
data: y,
|
|
117
|
-
isLoading: x,
|
|
118
|
-
searchable: !0,
|
|
119
|
-
searchPlaceholder: "Search drivers...",
|
|
120
|
-
searchFields: ["fullName", "employeeId"],
|
|
121
|
-
onRowClick: (e) => C(`fleet/drivers/${e.id}`),
|
|
122
|
-
getRowId: (e) => e.id
|
|
123
|
-
})
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
//#endregion
|
|
127
|
-
export { _ as default };
|
|
@@ -1,135 +0,0 @@
|
|
|
1
|
-
import { d as e, f as t, rt as n } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
-
//#region src/movethewheels/components/MetricCard.tsx
|
|
4
|
-
var a = {
|
|
5
|
-
sm: {
|
|
6
|
-
card: "p-3",
|
|
7
|
-
value: "text-xl font-bold",
|
|
8
|
-
label: "text-xs",
|
|
9
|
-
icon: "w-8 h-8"
|
|
10
|
-
},
|
|
11
|
-
md: {
|
|
12
|
-
card: "p-4",
|
|
13
|
-
value: "text-2xl font-bold",
|
|
14
|
-
label: "text-sm",
|
|
15
|
-
icon: "w-10 h-10"
|
|
16
|
-
},
|
|
17
|
-
lg: {
|
|
18
|
-
card: "p-6",
|
|
19
|
-
value: "text-3xl font-bold",
|
|
20
|
-
label: "text-base",
|
|
21
|
-
icon: "w-12 h-12"
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
function o({ value: o, label: s, icon: c, change: l, changeType: u = "neutral", subtitle: d, trend: f, size: p = "md", onClick: m, className: h }) {
|
|
25
|
-
let g = a[p], _ = {
|
|
26
|
-
positive: "text-green-600 dark:text-green-400",
|
|
27
|
-
negative: "text-red-600 dark:text-red-400",
|
|
28
|
-
neutral: "text-muted-foreground"
|
|
29
|
-
}, v = {
|
|
30
|
-
up: /* @__PURE__ */ r("svg", {
|
|
31
|
-
className: "w-4 h-4",
|
|
32
|
-
fill: "none",
|
|
33
|
-
viewBox: "0 0 24 24",
|
|
34
|
-
stroke: "currentColor",
|
|
35
|
-
children: /* @__PURE__ */ r("path", {
|
|
36
|
-
strokeLinecap: "round",
|
|
37
|
-
strokeLinejoin: "round",
|
|
38
|
-
strokeWidth: 2,
|
|
39
|
-
d: "M5 10l7-7m0 0l7 7m-7-7v18"
|
|
40
|
-
})
|
|
41
|
-
}),
|
|
42
|
-
down: /* @__PURE__ */ r("svg", {
|
|
43
|
-
className: "w-4 h-4",
|
|
44
|
-
fill: "none",
|
|
45
|
-
viewBox: "0 0 24 24",
|
|
46
|
-
stroke: "currentColor",
|
|
47
|
-
children: /* @__PURE__ */ r("path", {
|
|
48
|
-
strokeLinecap: "round",
|
|
49
|
-
strokeLinejoin: "round",
|
|
50
|
-
strokeWidth: 2,
|
|
51
|
-
d: "M19 14l-7 7m0 0l-7-7m7 7V3"
|
|
52
|
-
})
|
|
53
|
-
}),
|
|
54
|
-
flat: /* @__PURE__ */ r("svg", {
|
|
55
|
-
className: "w-4 h-4",
|
|
56
|
-
fill: "none",
|
|
57
|
-
viewBox: "0 0 24 24",
|
|
58
|
-
stroke: "currentColor",
|
|
59
|
-
children: /* @__PURE__ */ r("path", {
|
|
60
|
-
strokeLinecap: "round",
|
|
61
|
-
strokeLinejoin: "round",
|
|
62
|
-
strokeWidth: 2,
|
|
63
|
-
d: "M5 12h14"
|
|
64
|
-
})
|
|
65
|
-
})
|
|
66
|
-
};
|
|
67
|
-
return /* @__PURE__ */ r(e, {
|
|
68
|
-
className: n("overflow-hidden transition-all duration-200", m && "cursor-pointer hover:shadow-md hover:border-primary/30", h),
|
|
69
|
-
onClick: m,
|
|
70
|
-
children: /* @__PURE__ */ r(t, {
|
|
71
|
-
className: g.card,
|
|
72
|
-
children: /* @__PURE__ */ i("div", {
|
|
73
|
-
className: "flex items-start justify-between",
|
|
74
|
-
children: [/* @__PURE__ */ i("div", {
|
|
75
|
-
className: "space-y-1",
|
|
76
|
-
children: [
|
|
77
|
-
/* @__PURE__ */ r("p", {
|
|
78
|
-
className: n("text-muted-foreground", g.label),
|
|
79
|
-
children: s
|
|
80
|
-
}),
|
|
81
|
-
/* @__PURE__ */ r("p", {
|
|
82
|
-
className: n("text-foreground tracking-tight", g.value),
|
|
83
|
-
children: typeof o == "number" ? o.toLocaleString() : o
|
|
84
|
-
}),
|
|
85
|
-
d && /* @__PURE__ */ r("p", {
|
|
86
|
-
className: "text-xs text-muted-foreground",
|
|
87
|
-
children: d
|
|
88
|
-
}),
|
|
89
|
-
l && /* @__PURE__ */ i("div", {
|
|
90
|
-
className: n("flex items-center gap-1 text-sm", _[u]),
|
|
91
|
-
children: [f && v[f], /* @__PURE__ */ r("span", { children: l })]
|
|
92
|
-
})
|
|
93
|
-
]
|
|
94
|
-
}), c && /* @__PURE__ */ r("div", {
|
|
95
|
-
className: n("flex-shrink-0 p-2 rounded-lg bg-primary/10 text-primary", g.icon),
|
|
96
|
-
children: c
|
|
97
|
-
})]
|
|
98
|
-
})
|
|
99
|
-
})
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
function s({ size: o = "md" }) {
|
|
103
|
-
let s = a[o];
|
|
104
|
-
return /* @__PURE__ */ r(e, {
|
|
105
|
-
className: "overflow-hidden",
|
|
106
|
-
children: /* @__PURE__ */ r(t, {
|
|
107
|
-
className: s.card,
|
|
108
|
-
children: /* @__PURE__ */ i("div", {
|
|
109
|
-
className: "flex items-start justify-between",
|
|
110
|
-
children: [/* @__PURE__ */ i("div", {
|
|
111
|
-
className: "space-y-2 flex-1",
|
|
112
|
-
children: [
|
|
113
|
-
/* @__PURE__ */ r("div", { className: "h-4 w-24 bg-muted animate-pulse rounded" }),
|
|
114
|
-
/* @__PURE__ */ r("div", { className: "h-8 w-32 bg-muted animate-pulse rounded" }),
|
|
115
|
-
/* @__PURE__ */ r("div", { className: "h-3 w-20 bg-muted animate-pulse rounded" })
|
|
116
|
-
]
|
|
117
|
-
}), /* @__PURE__ */ r("div", { className: n("bg-muted animate-pulse rounded-lg", s.icon) })]
|
|
118
|
-
})
|
|
119
|
-
})
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
function c({ children: e, columns: t = 4, className: i }) {
|
|
123
|
-
return /* @__PURE__ */ r("div", {
|
|
124
|
-
className: n("grid gap-4", {
|
|
125
|
-
2: "grid-cols-1 sm:grid-cols-2",
|
|
126
|
-
3: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-3",
|
|
127
|
-
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4",
|
|
128
|
-
5: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-5",
|
|
129
|
-
6: "grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-6"
|
|
130
|
-
}[t], i),
|
|
131
|
-
children: e
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
//#endregion
|
|
135
|
-
export { s as n, c as r, o as t };
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { M as e, i as t, u as n } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
import { t as r } from "./DataTable-oNjXEcUO.js";
|
|
3
|
-
import { t as i } from "./download-CQqBpPk5.js";
|
|
4
|
-
import { t as a } from "./plus-Dew5yoQK.js";
|
|
5
|
-
import { t as o } from "./refresh-cw-oWEqfHnS.js";
|
|
6
|
-
import { t as s } from "./truck-Cd54agV-.js";
|
|
7
|
-
import { r as c } from "./graphqlClient-CdJyR_ed.js";
|
|
8
|
-
import { o as l } from "./useFleet-BdETplNE.js";
|
|
9
|
-
import { a as u, r as d } from "./StatusBadge-elLZA4Wl.js";
|
|
10
|
-
import { t as f } from "./navigation-BgnOfsVd.js";
|
|
11
|
-
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
12
|
-
//#region src/movethewheels/pages/VehiclesPage.tsx
|
|
13
|
-
function h() {
|
|
14
|
-
let { basePath: h, navigate: g } = c(), { vehicles: _, totalVehicles: v, isLoading: y, refetch: b } = l(), x = (e) => {
|
|
15
|
-
g && g(f(h, e));
|
|
16
|
-
};
|
|
17
|
-
return /* @__PURE__ */ p(t, {
|
|
18
|
-
title: "Vehicles",
|
|
19
|
-
subtitle: `${v} vehicles in fleet`,
|
|
20
|
-
icon: /* @__PURE__ */ p(s, { size: 24 }),
|
|
21
|
-
headerActions: /* @__PURE__ */ m("div", {
|
|
22
|
-
className: "flex gap-2",
|
|
23
|
-
children: [
|
|
24
|
-
/* @__PURE__ */ m(n, {
|
|
25
|
-
variant: "outline",
|
|
26
|
-
onClick: b,
|
|
27
|
-
children: [/* @__PURE__ */ p(o, { size: 16 }), "Refresh"]
|
|
28
|
-
}),
|
|
29
|
-
/* @__PURE__ */ m(n, {
|
|
30
|
-
variant: "outline",
|
|
31
|
-
children: [/* @__PURE__ */ p(i, { size: 16 }), "Export"]
|
|
32
|
-
}),
|
|
33
|
-
/* @__PURE__ */ m(n, { children: [/* @__PURE__ */ p(a, { size: 16 }), "Add Vehicle"] })
|
|
34
|
-
]
|
|
35
|
-
}),
|
|
36
|
-
children: /* @__PURE__ */ p(r, {
|
|
37
|
-
columns: [
|
|
38
|
-
{
|
|
39
|
-
id: "vehicleNumber",
|
|
40
|
-
header: "Vehicle #",
|
|
41
|
-
accessorKey: "vehicleNumber",
|
|
42
|
-
sortable: !0,
|
|
43
|
-
cell: (e) => /* @__PURE__ */ p("span", {
|
|
44
|
-
className: "font-medium",
|
|
45
|
-
children: e.vehicleNumber
|
|
46
|
-
})
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
id: "type",
|
|
50
|
-
header: "Type",
|
|
51
|
-
accessorKey: "type",
|
|
52
|
-
cell: (e) => /* @__PURE__ */ p(u, { type: e.type })
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
id: "details",
|
|
56
|
-
header: "Vehicle",
|
|
57
|
-
cell: (e) => /* @__PURE__ */ m("div", { children: [/* @__PURE__ */ m("p", {
|
|
58
|
-
className: "font-medium",
|
|
59
|
-
children: [
|
|
60
|
-
e.make,
|
|
61
|
-
" ",
|
|
62
|
-
e.model
|
|
63
|
-
]
|
|
64
|
-
}), /* @__PURE__ */ p("p", {
|
|
65
|
-
className: "text-sm text-muted-foreground",
|
|
66
|
-
children: e.year
|
|
67
|
-
})] })
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
id: "status",
|
|
71
|
-
header: "Status",
|
|
72
|
-
accessorKey: "status",
|
|
73
|
-
sortable: !0,
|
|
74
|
-
cell: (e) => /* @__PURE__ */ p(d, {
|
|
75
|
-
status: e.status,
|
|
76
|
-
type: "vehicle"
|
|
77
|
-
})
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
id: "capacity",
|
|
81
|
-
header: "Capacity",
|
|
82
|
-
cell: (e) => /* @__PURE__ */ m("div", {
|
|
83
|
-
className: "text-sm",
|
|
84
|
-
children: [/* @__PURE__ */ m("p", { children: [e.capacity.weight, " kg"] }), /* @__PURE__ */ m("p", {
|
|
85
|
-
className: "text-muted-foreground",
|
|
86
|
-
children: [e.capacity.volume, " m³"]
|
|
87
|
-
})]
|
|
88
|
-
})
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
id: "fuel",
|
|
92
|
-
header: "Fuel Level",
|
|
93
|
-
cell: (t) => t.fuelLevel === void 0 ? "-" : /* @__PURE__ */ m("div", {
|
|
94
|
-
className: "flex items-center gap-2",
|
|
95
|
-
children: [/* @__PURE__ */ p(e, {
|
|
96
|
-
value: t.fuelLevel,
|
|
97
|
-
className: "w-16 h-2"
|
|
98
|
-
}), /* @__PURE__ */ m("span", {
|
|
99
|
-
className: "text-sm",
|
|
100
|
-
children: [t.fuelLevel, "%"]
|
|
101
|
-
})]
|
|
102
|
-
})
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
id: "mileage",
|
|
106
|
-
header: "Mileage",
|
|
107
|
-
accessorKey: "mileage",
|
|
108
|
-
sortable: !0,
|
|
109
|
-
cell: (e) => e.mileage ? `${e.mileage.toLocaleString()} mi` : "-"
|
|
110
|
-
}
|
|
111
|
-
],
|
|
112
|
-
data: _,
|
|
113
|
-
isLoading: y,
|
|
114
|
-
searchable: !0,
|
|
115
|
-
searchPlaceholder: "Search vehicles...",
|
|
116
|
-
searchFields: [
|
|
117
|
-
"vehicleNumber",
|
|
118
|
-
"make",
|
|
119
|
-
"model"
|
|
120
|
-
],
|
|
121
|
-
onRowClick: (e) => x(`fleet/vehicles/${e.id}`),
|
|
122
|
-
getRowId: (e) => e.id
|
|
123
|
-
})
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
//#endregion
|
|
127
|
-
export { h as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { it as e } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
//#region ../../node_modules/.bun/lucide-react@0.468.0+3f10a4be4e334a9b/node_modules/lucide-react/dist/esm/icons/arrow-left.js
|
|
3
|
-
var t = e("ArrowLeft", [["path", {
|
|
4
|
-
d: "m12 19-7-7 7-7",
|
|
5
|
-
key: "1l729n"
|
|
6
|
-
}], ["path", {
|
|
7
|
-
d: "M19 12H5",
|
|
8
|
-
key: "x3x0zl"
|
|
9
|
-
}]]);
|
|
10
|
-
//#endregion
|
|
11
|
-
export { t };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { it as e } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
//#region ../../node_modules/.bun/lucide-react@0.468.0+3f10a4be4e334a9b/node_modules/lucide-react/dist/esm/icons/chevron-right.js
|
|
3
|
-
var t = e("ChevronRight", [["path", {
|
|
4
|
-
d: "m9 18 6-6-6-6",
|
|
5
|
-
key: "mthhwq"
|
|
6
|
-
}]]);
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { it as e } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
//#region ../../node_modules/.bun/lucide-react@0.468.0+3f10a4be4e334a9b/node_modules/lucide-react/dist/esm/icons/circle-check-big.js
|
|
3
|
-
var t = e("CircleCheckBig", [["path", {
|
|
4
|
-
d: "M21.801 10A10 10 0 1 1 17 3.335",
|
|
5
|
-
key: "yps3ct"
|
|
6
|
-
}], ["path", {
|
|
7
|
-
d: "m9 11 3 3L22 4",
|
|
8
|
-
key: "1pflzl"
|
|
9
|
-
}]]);
|
|
10
|
-
//#endregion
|
|
11
|
-
export { t };
|
package/dist/filter-CgTF21j9.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { it as e } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
//#region ../../node_modules/.bun/lucide-react@0.468.0+3f10a4be4e334a9b/node_modules/lucide-react/dist/esm/icons/filter.js
|
|
3
|
-
var t = e("Filter", [["polygon", {
|
|
4
|
-
points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",
|
|
5
|
-
key: "1yg77f"
|
|
6
|
-
}]]);
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { it as e } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
//#region ../../node_modules/.bun/lucide-react@0.468.0+3f10a4be4e334a9b/node_modules/lucide-react/dist/esm/icons/navigation.js
|
|
3
|
-
var t = e("Navigation", [["polygon", {
|
|
4
|
-
points: "3 11 22 2 13 21 11 13 3 11",
|
|
5
|
-
key: "1ltx0t"
|
|
6
|
-
}]]);
|
|
7
|
-
//#endregion
|
|
8
|
-
export { t };
|
package/dist/plus-Dew5yoQK.js
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { it as e } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
//#region ../../node_modules/.bun/lucide-react@0.468.0+3f10a4be4e334a9b/node_modules/lucide-react/dist/esm/icons/plus.js
|
|
3
|
-
var t = e("Plus", [["path", {
|
|
4
|
-
d: "M5 12h14",
|
|
5
|
-
key: "1ays0h"
|
|
6
|
-
}], ["path", {
|
|
7
|
-
d: "M12 5v14",
|
|
8
|
-
key: "s699le"
|
|
9
|
-
}]]);
|
|
10
|
-
//#endregion
|
|
11
|
-
export { t };
|
package/dist/search-FWYzDbBx.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { it as e } from "./PageLayout-3DR4pMQ9.js";
|
|
2
|
-
//#region ../../node_modules/.bun/lucide-react@0.468.0+3f10a4be4e334a9b/node_modules/lucide-react/dist/esm/icons/search.js
|
|
3
|
-
var t = e("Search", [["circle", {
|
|
4
|
-
cx: "11",
|
|
5
|
-
cy: "11",
|
|
6
|
-
r: "8",
|
|
7
|
-
key: "4ej97u"
|
|
8
|
-
}], ["path", {
|
|
9
|
-
d: "m21 21-4.3-4.3",
|
|
10
|
-
key: "1qie3q"
|
|
11
|
-
}]]);
|
|
12
|
-
//#endregion
|
|
13
|
-
export { t };
|