@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.
Files changed (119) hide show
  1. package/dist/{AIAssistantPage-BrHX2lQn.js → AIAssistantPage-AvsMbunM.js} +39 -33
  2. package/dist/{AnalyticsPage-DI6Wcaw5.js → AnalyticsPage-CCLfHgQZ.js} +44 -33
  3. package/dist/CreateOrderPage-CjlnEtk3.js +510 -0
  4. package/dist/CustomerDetailsPage-I6cdDHUi.js +265 -0
  5. package/dist/CustomersPage-CGGfD4ki.js +163 -0
  6. package/dist/{DashboardPage-3ZOnwg1a.js → DashboardPage-D2HRqwg9.js} +122 -111
  7. package/dist/DataTable-CD9ZhpLB.js +249 -0
  8. package/dist/DriverDetailsPage-rg_pGNuP.js +330 -0
  9. package/dist/DriversPage-DKiynISH.js +167 -0
  10. package/dist/FinancePage-Vg8WPs38.js +158 -0
  11. package/dist/{FleetPage-CPS7r4J3.js → FleetPage-DddXt8r8.js} +124 -85
  12. package/dist/ImportExportPage-BW6qO3kc.js +248 -0
  13. package/dist/InventoryPage-rMGuaJN-.js +222 -0
  14. package/dist/LiveTrackingPage-DQ1q4Id3.js +375 -0
  15. package/dist/MarketplacePage-DKrXAv62.js +219 -0
  16. package/dist/MetricCard-B7yMyvMX.js +146 -0
  17. package/dist/OrderDetailsPage-CFASgsYX.js +431 -0
  18. package/dist/OrdersListPage-BHeT8S5o.js +309 -0
  19. package/dist/{PageLayout-xDTiBTDS.js → PageLayout-D3N8MCTm.js} +213 -195
  20. package/dist/ProductDetailsPage-CFGcbaHo.js +195 -0
  21. package/dist/ProductsPage--xEpbQ8A.js +171 -0
  22. package/dist/{ReportsPage-B8OyWGzl.js → ReportsPage-Bb7_90rK.js} +57 -49
  23. package/dist/RouteDetailsPage-CVtDVb1N.js +282 -0
  24. package/dist/RoutesPage-s57PtgcQ.js +163 -0
  25. package/dist/SettingsPage-BYNCBOpN.js +298 -0
  26. package/dist/{StatusBadge-C--7NhoW.js → StatusBadge-CijYQXtb.js} +5 -2
  27. package/dist/{TrackingPage-BldUm_g7.js → TrackingPage-CcRc_dva.js} +88 -83
  28. package/dist/VehicleDetailsPage-3YDMPsPs.js +220 -0
  29. package/dist/VehiclesPage-UlxPWP9K.js +167 -0
  30. package/dist/WarehouseDetailsPage-Db7KeN-d.js +238 -0
  31. package/dist/WarehousesPage-CuTO-OPp.js +164 -0
  32. package/dist/{arrow-left-Bk5GsGNk.js → arrow-left-CBpZKkpq.js} +1 -1
  33. package/dist/{box-BAMv2-7M.js → box-CAaiElsb.js} +1 -1
  34. package/dist/{chart-column-CAfkf4o6.js → chart-column-D1Ym15-S.js} +1 -1
  35. package/dist/{chevron-right-Czrt_Qew.js → chevron-right-BIFGi0UA.js} +1 -1
  36. package/dist/{circle-alert-CEuV9Pij.js → circle-alert-DjmNo5_L.js} +1 -1
  37. package/dist/{circle-check-big-Cx8aO6B-.js → circle-check-big-CjuPVo3_.js} +1 -1
  38. package/dist/{clock-Be95bq7_.js → clock-BjkdnddD.js} +1 -1
  39. package/dist/{dollar-sign-kJqItPli.js → dollar-sign-IB4O0wuQ.js} +1 -1
  40. package/dist/{download-caab0D3V.js → download-Dpa9vqoG.js} +1 -1
  41. package/dist/{file-text-b1qhrJn1.js → file-text-C8Uioy11.js} +1 -1
  42. package/dist/{filter-BWmLTZB-.js → filter-Da5OZaHI.js} +1 -1
  43. package/dist/index.js +16 -16
  44. package/dist/{map-CS2aFgyO.js → map-_Per4sT9.js} +1 -1
  45. package/dist/{map-pin-96FeqL7H.js → map-pin-BSaf5IDL.js} +1 -1
  46. package/dist/{navigation-i6UXEjTC.js → navigation-DaTbrhw2.js} +1 -1
  47. package/dist/{package-KhSi3xaT.js → package-BE7U0wQE.js} +1 -1
  48. package/dist/{phone-B-h3tbsr.js → phone-DV4StZiA.js} +1 -1
  49. package/dist/{plus-D2BYAzMn.js → plus-Dl1rLeJR.js} +1 -1
  50. package/dist/{refresh-cw-D5Sy01s-.js → refresh-cw-CWfERAit.js} +1 -1
  51. package/dist/{route-CBDXuwH9.js → route-Dp9JiN_E.js} +1 -1
  52. package/dist/{save-CMc7h-Vi.js → save-XH8vydOn.js} +1 -1
  53. package/dist/{search-DVrUQbOg.js → search-OxoIiL_C.js} +1 -1
  54. package/dist/{settings-BwzIRYv3.js → settings-3Rw5NwFF.js} +1 -1
  55. package/dist/{square-pen-DmW36Bau.js → square-pen-hLIbFQFV.js} +1 -1
  56. package/dist/{star-Cv2MzxZL.js → star-YsVV3MNQ.js} +1 -1
  57. package/dist/{store-CLH957vl.js → store-RCBl7HB-.js} +1 -1
  58. package/dist/{trending-up-l8M0BO_w.js → trending-up-C-85AwGT.js} +1 -1
  59. package/dist/{triangle-alert-BI45s6bH.js → triangle-alert-BOhfGgmh.js} +1 -1
  60. package/dist/{truck-DX3lNQkz.js → truck-CtDjNFbi.js} +1 -1
  61. package/dist/{user-D8EY1uvt.js → user-Dz5TJZFs.js} +1 -1
  62. package/dist/{users-CfG0J8wP.js → users-g2N0eL-Z.js} +1 -1
  63. package/dist/{warehouse-Dt_bAr82.js → warehouse-D3WWDeTX.js} +1 -1
  64. package/dist/{wrench-C50eI_Iy.js → wrench-CmxY1n4I.js} +1 -1
  65. package/package.json +2 -2
  66. package/src/movethewheels/components/DataTable.tsx +41 -6
  67. package/src/movethewheels/components/MetricCard.tsx +51 -20
  68. package/src/movethewheels/components/PageLayout.tsx +60 -5
  69. package/src/movethewheels/components/StatusBadge.tsx +2 -1
  70. package/src/movethewheels/pages/AIAssistantPage.tsx +11 -3
  71. package/src/movethewheels/pages/AnalyticsPage.tsx +31 -25
  72. package/src/movethewheels/pages/CreateOrderPage.tsx +56 -17
  73. package/src/movethewheels/pages/CustomerDetailsPage.tsx +63 -38
  74. package/src/movethewheels/pages/CustomersPage.tsx +51 -12
  75. package/src/movethewheels/pages/DashboardPage.tsx +62 -48
  76. package/src/movethewheels/pages/DriverDetailsPage.tsx +57 -26
  77. package/src/movethewheels/pages/DriversPage.tsx +45 -12
  78. package/src/movethewheels/pages/FinancePage.tsx +45 -41
  79. package/src/movethewheels/pages/FleetPage.tsx +82 -34
  80. package/src/movethewheels/pages/ImportExportPage.tsx +46 -29
  81. package/src/movethewheels/pages/InventoryPage.tsx +37 -33
  82. package/src/movethewheels/pages/LiveTrackingPage.tsx +58 -20
  83. package/src/movethewheels/pages/MarketplacePage.tsx +37 -3
  84. package/src/movethewheels/pages/OrderDetailsPage.tsx +74 -46
  85. package/src/movethewheels/pages/OrdersListPage.tsx +81 -14
  86. package/src/movethewheels/pages/ProductDetailsPage.tsx +36 -11
  87. package/src/movethewheels/pages/ProductsPage.tsx +41 -12
  88. package/src/movethewheels/pages/ReportsPage.tsx +23 -19
  89. package/src/movethewheels/pages/RouteDetailsPage.tsx +71 -31
  90. package/src/movethewheels/pages/RoutesPage.tsx +48 -9
  91. package/src/movethewheels/pages/SettingsPage.tsx +68 -26
  92. package/src/movethewheels/pages/TrackingPage.tsx +52 -49
  93. package/src/movethewheels/pages/VehicleDetailsPage.tsx +49 -24
  94. package/src/movethewheels/pages/VehiclesPage.tsx +41 -15
  95. package/src/movethewheels/pages/WarehouseDetailsPage.tsx +55 -30
  96. package/src/movethewheels/pages/WarehousesPage.tsx +46 -9
  97. package/dist/CreateOrderPage-DfkSi6JF.js +0 -471
  98. package/dist/CustomerDetailsPage-DzAIu_tH.js +0 -239
  99. package/dist/CustomersPage-d21ixOYa.js +0 -119
  100. package/dist/DataTable-CZGz3SJu.js +0 -239
  101. package/dist/DriverDetailsPage-YuZSlPSV.js +0 -297
  102. package/dist/DriversPage-BOhqEBTv.js +0 -127
  103. package/dist/FinancePage-CnjUNXOb.js +0 -154
  104. package/dist/ImportExportPage-zNjs7xsV.js +0 -232
  105. package/dist/InventoryPage-C9g5d3SW.js +0 -223
  106. package/dist/LiveTrackingPage-DoBvtdBG.js +0 -332
  107. package/dist/MarketplacePage-BEj5hcBF.js +0 -192
  108. package/dist/MetricCard-DeHVeVwl.js +0 -135
  109. package/dist/OrderDetailsPage-D-9lDZYU.js +0 -398
  110. package/dist/OrdersListPage-CJzHbgY3.js +0 -257
  111. package/dist/ProductDetailsPage-3rKtzXpy.js +0 -168
  112. package/dist/ProductsPage-B0P_wjBJ.js +0 -131
  113. package/dist/RouteDetailsPage-DGjKTUMj.js +0 -240
  114. package/dist/RoutesPage-CpopY8xN.js +0 -116
  115. package/dist/SettingsPage-BvXSa3gi.js +0 -247
  116. package/dist/VehicleDetailsPage-Dqv--MVW.js +0 -194
  117. package/dist/VehiclesPage-CCBHRDHu.js +0 -127
  118. package/dist/WarehouseDetailsPage-ZObC_c7W.js +0 -215
  119. package/dist/WarehousesPage-CpgZEVW9.js +0 -121
@@ -1,247 +0,0 @@
1
- import { A as e, F as t, I as n, J as r, L as i, P as a, R as o, V as s, X as c, Y as l, Z as u, d, f, g as p, h as m, i as h, it as g, j as _, p as v, u as y } from "./PageLayout-xDTiBTDS.js";
2
- import { n as b, t as x } from "./settings-BwzIRYv3.js";
3
- import { t as S } from "./save-CMc7h-Vi.js";
4
- import { t as C } from "./user-D8EY1uvt.js";
5
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
6
- //#region node_modules/lucide-react/dist/esm/icons/bell.js
7
- var E = g("Bell", [["path", {
8
- d: "M10.268 21a2 2 0 0 0 3.464 0",
9
- key: "vwvbt9"
10
- }], ["path", {
11
- d: "M3.262 15.326A1 1 0 0 0 4 17h16a1 1 0 0 0 .74-1.673C19.41 13.956 18 12.499 18 8A6 6 0 0 0 6 8c0 4.499-1.411 5.956-2.738 7.326",
12
- key: "11g9vi"
13
- }]]), D = g("Shield", [["path", {
14
- d: "M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",
15
- key: "oel41y"
16
- }]]), O = g("Webhook", [
17
- ["path", {
18
- d: "M18 16.98h-5.99c-1.1 0-1.95.94-2.48 1.9A4 4 0 0 1 2 17c.01-.7.2-1.4.57-2",
19
- key: "q3hayz"
20
- }],
21
- ["path", {
22
- d: "m6 17 3.13-5.78c.53-.97.1-2.18-.5-3.1a4 4 0 1 1 6.89-4.06",
23
- key: "1go1hn"
24
- }],
25
- ["path", {
26
- d: "m12 6 3.13 5.73C15.66 12.7 16.9 13 18 13a4 4 0 0 1 0 8",
27
- key: "qlwsc0"
28
- }]
29
- ]);
30
- //#endregion
31
- //#region src/movethewheels/pages/SettingsPage.tsx
32
- function k() {
33
- return /* @__PURE__ */ T(h, {
34
- title: "Settings",
35
- subtitle: "Manage your account and preferences",
36
- icon: /* @__PURE__ */ w(x, { size: 24 }),
37
- children: [/* @__PURE__ */ T(r, {
38
- defaultValue: "general",
39
- children: [
40
- /* @__PURE__ */ T(c, {
41
- className: "mb-6",
42
- children: [
43
- /* @__PURE__ */ T(u, {
44
- value: "general",
45
- children: [/* @__PURE__ */ w(C, { size: 16 }), " General"]
46
- }),
47
- /* @__PURE__ */ T(u, {
48
- value: "notifications",
49
- children: [/* @__PURE__ */ w(E, { size: 16 }), " Notifications"]
50
- }),
51
- /* @__PURE__ */ T(u, {
52
- value: "security",
53
- children: [/* @__PURE__ */ w(D, { size: 16 }), " Security"]
54
- }),
55
- /* @__PURE__ */ T(u, {
56
- value: "integrations",
57
- children: [/* @__PURE__ */ w(O, { size: 16 }), " Integrations"]
58
- })
59
- ]
60
- }),
61
- /* @__PURE__ */ T(l, {
62
- value: "general",
63
- className: "space-y-6",
64
- children: [/* @__PURE__ */ T(d, { children: [/* @__PURE__ */ T(m, { children: [/* @__PURE__ */ w(p, { children: "Company Information" }), /* @__PURE__ */ w(v, { children: "Basic company details" })] }), /* @__PURE__ */ w(f, {
65
- className: "space-y-4",
66
- children: /* @__PURE__ */ T("div", {
67
- className: "grid grid-cols-2 gap-4",
68
- children: [
69
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Company Name" }), /* @__PURE__ */ w(e, { defaultValue: "QuickLogistics Pro" })] }),
70
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Contact Email" }), /* @__PURE__ */ w(e, { defaultValue: "contact@quicklogistics.com" })] }),
71
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Phone" }), /* @__PURE__ */ w(e, { defaultValue: "+1-555-QUICK" })] }),
72
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Website" }), /* @__PURE__ */ w(e, { defaultValue: "https://quicklogistics.com" })] })
73
- ]
74
- })
75
- })] }), /* @__PURE__ */ T(d, { children: [/* @__PURE__ */ w(m, { children: /* @__PURE__ */ T(p, {
76
- className: "flex items-center gap-2",
77
- children: [/* @__PURE__ */ w(b, { size: 18 }), " Localization"]
78
- }) }), /* @__PURE__ */ w(f, {
79
- className: "space-y-4",
80
- children: /* @__PURE__ */ T("div", {
81
- className: "grid grid-cols-3 gap-4",
82
- children: [
83
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Timezone" }), /* @__PURE__ */ T(a, {
84
- defaultValue: "pst",
85
- children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(o, {}) }), /* @__PURE__ */ T(t, { children: [
86
- /* @__PURE__ */ w(n, {
87
- value: "pst",
88
- children: "Pacific Time (PST)"
89
- }),
90
- /* @__PURE__ */ w(n, {
91
- value: "est",
92
- children: "Eastern Time (EST)"
93
- }),
94
- /* @__PURE__ */ w(n, {
95
- value: "utc",
96
- children: "UTC"
97
- })
98
- ] })]
99
- })] }),
100
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Currency" }), /* @__PURE__ */ T(a, {
101
- defaultValue: "usd",
102
- children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(o, {}) }), /* @__PURE__ */ T(t, { children: [
103
- /* @__PURE__ */ w(n, {
104
- value: "usd",
105
- children: "USD ($)"
106
- }),
107
- /* @__PURE__ */ w(n, {
108
- value: "eur",
109
- children: "EUR (€)"
110
- }),
111
- /* @__PURE__ */ w(n, {
112
- value: "gbp",
113
- children: "GBP (£)"
114
- })
115
- ] })]
116
- })] }),
117
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Language" }), /* @__PURE__ */ T(a, {
118
- defaultValue: "en",
119
- children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(o, {}) }), /* @__PURE__ */ T(t, { children: [
120
- /* @__PURE__ */ w(n, {
121
- value: "en",
122
- children: "English"
123
- }),
124
- /* @__PURE__ */ w(n, {
125
- value: "es",
126
- children: "Spanish"
127
- }),
128
- /* @__PURE__ */ w(n, {
129
- value: "fr",
130
- children: "French"
131
- })
132
- ] })]
133
- })] })
134
- ]
135
- })
136
- })] })]
137
- }),
138
- /* @__PURE__ */ w(l, {
139
- value: "notifications",
140
- className: "space-y-6",
141
- children: /* @__PURE__ */ T(d, { children: [/* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(p, { children: "Email Notifications" }) }), /* @__PURE__ */ w(f, {
142
- className: "space-y-4",
143
- children: [
144
- {
145
- label: "Order updates",
146
- desc: "Receive notifications for order status changes"
147
- },
148
- {
149
- label: "Delivery alerts",
150
- desc: "Get notified about delivery issues"
151
- },
152
- {
153
- label: "System notifications",
154
- desc: "Important system updates and maintenance"
155
- },
156
- {
157
- label: "Weekly reports",
158
- desc: "Receive weekly performance summary"
159
- }
160
- ].map((e) => /* @__PURE__ */ T("div", {
161
- className: "flex items-center justify-between",
162
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
163
- className: "font-medium",
164
- children: e.label
165
- }), /* @__PURE__ */ w("p", {
166
- className: "text-sm text-text-secondary",
167
- children: e.desc
168
- })] }), /* @__PURE__ */ w(s, { defaultChecked: !0 })]
169
- }, e.label))
170
- })] })
171
- }),
172
- /* @__PURE__ */ T(l, {
173
- value: "security",
174
- className: "space-y-6",
175
- children: [/* @__PURE__ */ T(d, { children: [/* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(p, { children: "Password" }) }), /* @__PURE__ */ T(f, {
176
- className: "space-y-4",
177
- children: [
178
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Current Password" }), /* @__PURE__ */ w(e, { type: "password" })] }),
179
- /* @__PURE__ */ T("div", {
180
- className: "grid grid-cols-2 gap-4",
181
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "New Password" }), /* @__PURE__ */ w(e, { type: "password" })] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w(_, { children: "Confirm Password" }), /* @__PURE__ */ w(e, { type: "password" })] })]
182
- }),
183
- /* @__PURE__ */ w(y, { children: "Update Password" })
184
- ]
185
- })] }), /* @__PURE__ */ T(d, { children: [/* @__PURE__ */ T(m, { children: [/* @__PURE__ */ w(p, { children: "Two-Factor Authentication" }), /* @__PURE__ */ w(v, { children: "Add an extra layer of security" })] }), /* @__PURE__ */ w(f, { children: /* @__PURE__ */ T("div", {
186
- className: "flex items-center justify-between",
187
- children: [/* @__PURE__ */ w("div", { children: /* @__PURE__ */ T("p", { children: ["Status: ", /* @__PURE__ */ w("span", {
188
- className: "text-red-500 font-medium",
189
- children: "Disabled"
190
- })] }) }), /* @__PURE__ */ w(y, {
191
- variant: "outline",
192
- children: "Enable 2FA"
193
- })]
194
- }) })] })]
195
- }),
196
- /* @__PURE__ */ T(l, {
197
- value: "integrations",
198
- className: "space-y-6",
199
- children: [/* @__PURE__ */ T(d, { children: [/* @__PURE__ */ T(m, { children: [/* @__PURE__ */ w(p, { children: "API Keys" }), /* @__PURE__ */ w(v, { children: "Manage your API access" })] }), /* @__PURE__ */ T(f, {
200
- className: "space-y-4",
201
- children: [/* @__PURE__ */ T("div", {
202
- className: "p-4 bg-bg-sunken rounded-lg",
203
- children: [/* @__PURE__ */ w("p", {
204
- className: "font-medium",
205
- children: "Production API Key"
206
- }), /* @__PURE__ */ w("code", {
207
- className: "text-sm",
208
- children: "pk_live_••••••••••••••••"
209
- })]
210
- }), /* @__PURE__ */ w(y, {
211
- variant: "outline",
212
- children: "Generate New Key"
213
- })]
214
- })] }), /* @__PURE__ */ T(d, { children: [/* @__PURE__ */ w(m, { children: /* @__PURE__ */ w(p, { children: "Connected Services" }) }), /* @__PURE__ */ w(f, {
215
- className: "space-y-3",
216
- children: [
217
- {
218
- name: "Google Maps",
219
- status: "Connected"
220
- },
221
- {
222
- name: "Stripe",
223
- status: "Connected"
224
- },
225
- {
226
- name: "Twilio",
227
- status: "Not Connected"
228
- }
229
- ].map((e) => /* @__PURE__ */ T("div", {
230
- className: "flex items-center justify-between p-3 border rounded-lg",
231
- children: [/* @__PURE__ */ w("span", { children: e.name }), /* @__PURE__ */ w(y, {
232
- variant: e.status === "Connected" ? "outline" : "default",
233
- size: "sm",
234
- children: e.status === "Connected" ? "Manage" : "Connect"
235
- })]
236
- }, e.name))
237
- })] })]
238
- })
239
- ]
240
- }), /* @__PURE__ */ w("div", {
241
- className: "flex justify-end",
242
- children: /* @__PURE__ */ T(y, { children: [/* @__PURE__ */ w(S, { size: 16 }), " Save Changes"] })
243
- })]
244
- });
245
- }
246
- //#endregion
247
- export { k as default };
@@ -1,194 +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 "./file-text-b1qhrJn1.js";
4
- import { n as f, t as p } from "./wrench-C50eI_Iy.js";
5
- import { t as m } from "./map-pin-96FeqL7H.js";
6
- import { t as h } from "./square-pen-DmW36Bau.js";
7
- import { t as g } from "./truck-DX3lNQkz.js";
8
- import { r as _ } from "./graphqlClient-CdJyR_ed.js";
9
- import { a as v } from "./useFleet-BdETplNE.js";
10
- import { a as y, r as b } from "./StatusBadge-C--7NhoW.js";
11
- import { r as x } from "./formatters-_vJlC-47.js";
12
- import { t as S } from "./navigation-BgnOfsVd.js";
13
- import { useParams as C } from "react-router-dom";
14
- import { jsx as w, jsxs as T } from "react/jsx-runtime";
15
- //#region src/movethewheels/pages/VehicleDetailsPage.tsx
16
- function E() {
17
- let { vehicleId: E } = C(), { basePath: D, navigate: O } = _(), { vehicle: k, isLoading: A, error: j, refetch: M } = v(E);
18
- return A ? /* @__PURE__ */ w(c, { message: "Loading vehicle details..." }) : j || !k ? /* @__PURE__ */ w(s, {
19
- title: "Vehicle not found",
20
- onRetry: M
21
- }) : /* @__PURE__ */ w(a, {
22
- title: k.vehicleNumber,
23
- subtitle: `${k.make} ${k.model} (${k.year})`,
24
- icon: /* @__PURE__ */ w(g, { size: 24 }),
25
- headerActions: /* @__PURE__ */ T("div", {
26
- className: "flex gap-2",
27
- children: [/* @__PURE__ */ T(l, {
28
- variant: "outline",
29
- onClick: () => O?.(S(D, "fleet/vehicles")),
30
- children: [/* @__PURE__ */ w(u, { size: 16 }), " Back"]
31
- }), /* @__PURE__ */ T(l, { children: [/* @__PURE__ */ w(h, { size: 16 }), " Edit"] })]
32
- }),
33
- headerContent: /* @__PURE__ */ T("div", {
34
- className: "flex gap-2",
35
- children: [/* @__PURE__ */ w(b, {
36
- status: k.status,
37
- type: "vehicle"
38
- }), /* @__PURE__ */ w(y, { type: k.type })]
39
- }),
40
- children: /* @__PURE__ */ T("div", {
41
- className: "grid grid-cols-1 lg:grid-cols-3 gap-6",
42
- children: [/* @__PURE__ */ T("div", {
43
- className: "lg:col-span-2 space-y-6",
44
- children: [
45
- /* @__PURE__ */ T(t, { children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(r, { children: "Vehicle Information" }) }), /* @__PURE__ */ w(n, { children: /* @__PURE__ */ T("div", {
46
- className: "grid grid-cols-2 md:grid-cols-4 gap-6",
47
- children: [
48
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
49
- className: "text-sm text-text-secondary",
50
- children: "Type"
51
- }), /* @__PURE__ */ w("p", {
52
- className: "font-medium capitalize",
53
- children: k.type
54
- })] }),
55
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
56
- className: "text-sm text-text-secondary",
57
- children: "Make"
58
- }), /* @__PURE__ */ w("p", {
59
- className: "font-medium",
60
- children: k.make
61
- })] }),
62
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
63
- className: "text-sm text-text-secondary",
64
- children: "Model"
65
- }), /* @__PURE__ */ w("p", {
66
- className: "font-medium",
67
- children: k.model
68
- })] }),
69
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
70
- className: "text-sm text-text-secondary",
71
- children: "Year"
72
- }), /* @__PURE__ */ w("p", {
73
- className: "font-medium",
74
- children: k.year
75
- })] })
76
- ]
77
- }) })] }),
78
- /* @__PURE__ */ T(t, { children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ w(r, { children: "Capacity" }) }), /* @__PURE__ */ w(n, { children: /* @__PURE__ */ T("div", {
79
- className: "grid grid-cols-3 gap-6",
80
- children: [
81
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
82
- className: "text-sm text-text-secondary",
83
- children: "Weight"
84
- }), /* @__PURE__ */ T("p", {
85
- className: "text-2xl font-bold",
86
- children: [k.capacity.weight, /* @__PURE__ */ w("span", {
87
- className: "text-sm font-normal",
88
- children: " kg"
89
- })]
90
- })] }),
91
- /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
92
- className: "text-sm text-text-secondary",
93
- children: "Volume"
94
- }), /* @__PURE__ */ T("p", {
95
- className: "text-2xl font-bold",
96
- children: [k.capacity.volume, /* @__PURE__ */ w("span", {
97
- className: "text-sm font-normal",
98
- children: " m³"
99
- })]
100
- })] }),
101
- k.capacity.pallets && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
102
- className: "text-sm text-text-secondary",
103
- children: "Pallets"
104
- }), /* @__PURE__ */ w("p", {
105
- className: "text-2xl font-bold",
106
- children: k.capacity.pallets
107
- })] })
108
- ]
109
- }) })] }),
110
- /* @__PURE__ */ T(t, { children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ T(r, {
111
- className: "flex items-center gap-2",
112
- children: [/* @__PURE__ */ w(d, { size: 18 }), " Documents"]
113
- }) }), /* @__PURE__ */ w(n, { children: k.documents.length > 0 ? /* @__PURE__ */ w("div", {
114
- className: "space-y-3",
115
- children: k.documents.map((e) => /* @__PURE__ */ T("div", {
116
- className: "flex items-center justify-between p-3 border rounded-lg",
117
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
118
- className: "font-medium capitalize",
119
- children: e.type.replace("_", " ")
120
- }), /* @__PURE__ */ T("p", {
121
- className: "text-sm text-text-secondary",
122
- children: ["Expires: ", x(e.expiryDate)]
123
- })] }), /* @__PURE__ */ w(o, {
124
- variant: e.verified ? "default" : "secondary",
125
- children: e.verified ? "Verified" : "Pending"
126
- })]
127
- }, e.id))
128
- }) : /* @__PURE__ */ w("p", {
129
- className: "text-text-secondary text-center py-4",
130
- children: "No documents uploaded"
131
- }) })] })
132
- ]
133
- }), /* @__PURE__ */ T("div", {
134
- className: "space-y-6",
135
- children: [
136
- /* @__PURE__ */ T(t, { children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ T(r, {
137
- className: "flex items-center gap-2",
138
- children: [/* @__PURE__ */ w(f, { size: 18 }), " Fuel & Mileage"]
139
- }) }), /* @__PURE__ */ T(n, {
140
- className: "space-y-4",
141
- children: [k.fuelLevel !== void 0 && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ T("div", {
142
- className: "flex justify-between text-sm mb-2",
143
- children: [/* @__PURE__ */ w("span", { children: "Fuel Level" }), /* @__PURE__ */ T("span", { children: [k.fuelLevel, "%"] })]
144
- }), /* @__PURE__ */ w(e, { value: k.fuelLevel })] }), k.mileage !== void 0 && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
145
- className: "text-sm text-text-secondary",
146
- children: "Total Mileage"
147
- }), /* @__PURE__ */ T("p", {
148
- className: "text-2xl font-bold",
149
- children: [
150
- k.mileage.toLocaleString(),
151
- " ",
152
- /* @__PURE__ */ w("span", {
153
- className: "text-sm font-normal",
154
- children: "miles"
155
- })
156
- ]
157
- })] })]
158
- })] }),
159
- /* @__PURE__ */ T(t, { children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ T(r, {
160
- className: "flex items-center gap-2",
161
- children: [/* @__PURE__ */ w(p, { size: 18 }), " Maintenance"]
162
- }) }), /* @__PURE__ */ T(n, {
163
- className: "space-y-3",
164
- children: [/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
165
- className: "text-sm text-text-secondary",
166
- children: "Last Maintenance"
167
- }), /* @__PURE__ */ w("p", {
168
- className: "font-medium",
169
- children: k.lastMaintenance ? x(k.lastMaintenance) : "N/A"
170
- })] }), /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
171
- className: "text-sm text-text-secondary",
172
- children: "Next Scheduled"
173
- }), /* @__PURE__ */ w("p", {
174
- className: "font-medium",
175
- children: k.nextMaintenance ? x(k.nextMaintenance) : "N/A"
176
- })] })]
177
- })] }),
178
- k.currentLocation && /* @__PURE__ */ T(t, { children: [/* @__PURE__ */ w(i, { children: /* @__PURE__ */ T(r, {
179
- className: "flex items-center gap-2",
180
- children: [/* @__PURE__ */ w(m, { size: 18 }), " Current Location"]
181
- }) }), /* @__PURE__ */ T(n, { children: [/* @__PURE__ */ w("p", {
182
- className: "text-sm",
183
- children: k.currentLocation.address || "Location updating..."
184
- }), /* @__PURE__ */ T("p", {
185
- className: "text-xs text-text-secondary mt-1",
186
- children: ["Updated ", x(k.currentLocation.timestamp || /* @__PURE__ */ new Date(), "relative")]
187
- })] })] })
188
- ]
189
- })]
190
- })
191
- });
192
- }
193
- //#endregion
194
- export { E as default };
@@ -1,127 +0,0 @@
1
- import { M as e, i as t, u as n } from "./PageLayout-xDTiBTDS.js";
2
- import { t as r } from "./DataTable-CZGz3SJu.js";
3
- import { t as i } from "./download-caab0D3V.js";
4
- import { t as a } from "./plus-D2BYAzMn.js";
5
- import { t as o } from "./refresh-cw-D5Sy01s-.js";
6
- import { t as s } from "./truck-DX3lNQkz.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-C--7NhoW.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-text-secondary",
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-text-secondary",
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 };