@burdenoff/microfe-movethewheels 2026.1031.3 → 2026.1031.4

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 (58) hide show
  1. package/dist/MoveTheWheelsRoot.js +136 -127
  2. package/dist/MoveTheWheelsRoutes.js +140 -135
  3. package/dist/components/DocumentsCard.js +11 -11
  4. package/dist/components/ProofOfDeliveryCard.js +13 -13
  5. package/dist/components/ShipmentRiskDialog.js +24 -24
  6. package/dist/components/ShippingQuoteResults.js +46 -46
  7. package/dist/components/TrackingAlertList.js +17 -17
  8. package/dist/generated/tracking-quality-operations.d.ts +56 -0
  9. package/dist/hooks/useOrderDispatch.js +17 -17
  10. package/dist/movethewheels/pages/SettingsPage.d.ts +1 -0
  11. package/dist/movethewheels/providers/ModuleSettingsProvider.d.ts +17 -0
  12. package/dist/movethewheels/utils/formatters.d.ts +23 -3
  13. package/dist/movethewheels/utils/moduleSettings.d.ts +52 -0
  14. package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +11 -0
  15. package/dist/node_modules/lucide-react/dist/esm/icons/key-round.js +14 -0
  16. package/dist/node_modules/lucide-react/dist/esm/icons/plug.js +22 -0
  17. package/dist/node_modules/lucide-react/dist/esm/icons/rotate-ccw.js +11 -0
  18. package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
  19. package/dist/pages/AnalyticsPage.js +27 -27
  20. package/dist/pages/CreateOrderPage.js +340 -317
  21. package/dist/pages/CustomerDetailsPage.js +246 -246
  22. package/dist/pages/CustomersPage.js +19 -19
  23. package/dist/pages/DashboardPage.js +24 -24
  24. package/dist/pages/DeliveryCapturePage.js +74 -74
  25. package/dist/pages/DriverDetailsPage.js +337 -337
  26. package/dist/pages/DriversPage.js +26 -26
  27. package/dist/pages/FinancePage.js +26 -26
  28. package/dist/pages/InventoryPage.js +28 -28
  29. package/dist/pages/LiveTrackingPage.js +108 -108
  30. package/dist/pages/MarketplacePage.js +44 -44
  31. package/dist/pages/OrderDetailsPage.js +306 -306
  32. package/dist/pages/OrdersListPage.js +27 -27
  33. package/dist/pages/ProductDetailsPage.js +89 -89
  34. package/dist/pages/ProductsPage.js +73 -73
  35. package/dist/pages/RouteDetailsPage.js +282 -285
  36. package/dist/pages/RoutesPage.js +78 -78
  37. package/dist/pages/SettingsPage.js +459 -0
  38. package/dist/pages/TrackingPage.js +41 -41
  39. package/dist/pages/VehicleDetailsPage.js +207 -207
  40. package/dist/pages/VehiclesPage.js +17 -16
  41. package/dist/pages/WarehouseDetailsPage.js +132 -132
  42. package/dist/providers/ModuleSettingsProvider.js +74 -0
  43. package/dist/utils/formatters.js +53 -26
  44. package/dist/utils/moduleSettings.js +132 -0
  45. package/package.json +3 -2
  46. package/src/generated/tracking-quality-operations.ts +62 -0
  47. package/src/movethewheels/MoveTheWheelsRoot.tsx +14 -3
  48. package/src/movethewheels/MoveTheWheelsRoutes.tsx +9 -0
  49. package/src/movethewheels/pages/CreateOrderPage.tsx +38 -6
  50. package/src/movethewheels/pages/ProductsPage.tsx +2 -2
  51. package/src/movethewheels/pages/RouteDetailsPage.tsx +3 -6
  52. package/src/movethewheels/pages/RoutesPage.tsx +2 -2
  53. package/src/movethewheels/pages/SettingsPage.tsx +516 -0
  54. package/src/movethewheels/pages/VehicleDetailsPage.tsx +4 -2
  55. package/src/movethewheels/pages/VehiclesPage.tsx +2 -1
  56. package/src/movethewheels/providers/ModuleSettingsProvider.tsx +133 -0
  57. package/src/movethewheels/utils/formatters.ts +69 -10
  58. package/src/movethewheels/utils/moduleSettings.ts +224 -0
@@ -9,8 +9,9 @@ import { Upload as s } from "../node_modules/lucide-react/dist/esm/icons/upload.
9
9
  import { Wrench as c } from "../node_modules/lucide-react/dist/esm/icons/wrench.js";
10
10
  import { joinPath as l } from "../utils/navigation.js";
11
11
  import { useMoveTheWheels as u } from "../providers/MoveTheWheelsProvider.js";
12
- import { useFleetStats as d, useVehicles as f } from "../hooks/useFleet.js";
13
- import { Button as p, Card as m, CardContent as h, Progress as g, Select as ee, SelectContent as te, SelectItem as ne, SelectTrigger as re, SelectValue as _ } from "../components/ui.js";
12
+ import { formatWeight as d } from "../utils/formatters.js";
13
+ import { useFleetStats as f, useVehicles as ee } from "../hooks/useFleet.js";
14
+ import { Button as te, Card as p, CardContent as m, Progress as h, Select as g, SelectContent as ne, SelectItem as re, SelectTrigger as ie, SelectValue as _ } from "../components/ui.js";
14
15
  import { PageLayout as v } from "../components/PageLayout.js";
15
16
  import { MetricCard as y, MetricGrid as b } from "../components/MetricCard.js";
16
17
  import { VEHICLE_STATUS_LABELS as x } from "../constants/index.js";
@@ -31,12 +32,12 @@ var N = [{
31
32
  label: t
32
33
  }))];
33
34
  function P() {
34
- let { basePath: x, navigate: P } = u(), { state: F, isExporting: I, startExport: ie, dismiss: L } = E("vehicles", "vehicle"), [R, z] = O(0), [B, V] = O(25), [H, U] = O(""), [W, G] = O("all"), K = T(H), { vehicles: q, totalVehicles: J, hasMore: Y, isLoading: ae, error: oe, refetch: X } = f({
35
+ let { basePath: x, navigate: P } = u(), { state: F, isExporting: ae, startExport: I, dismiss: L } = E("vehicles", "vehicle"), [R, z] = O(0), [B, V] = O(25), [H, U] = O(""), [W, G] = O("all"), K = T(H), { vehicles: q, totalVehicles: J, hasMore: oe, isLoading: Y, error: se, refetch: X } = ee({
35
36
  limit: B,
36
37
  offset: R * B,
37
38
  search: K || void 0,
38
39
  status: W === "all" ? void 0 : W
39
- }), se = W !== "all" || H.length > 0, { stats: Z } = d(), Q = Z.totalVehicles, $ = (e) => {
40
+ }), ce = W !== "all" || H.length > 0, { stats: Z } = f(), Q = Z.totalVehicles, $ = (e) => {
40
41
  P && P(l(x, e));
41
42
  };
42
43
  return /* @__PURE__ */ A(v, {
@@ -61,9 +62,9 @@ function P() {
61
62
  onSelect: () => $("import-export?entity=VEHICLE")
62
63
  },
63
64
  {
64
- label: I ? "Exporting…" : "Export",
65
+ label: ae ? "Exporting…" : "Export",
65
66
  icon: /* @__PURE__ */ k(t, { size: 16 }),
66
- onSelect: ie
67
+ onSelect: I
67
68
  }
68
69
  ]
69
70
  }),
@@ -109,7 +110,7 @@ function P() {
109
110
  })
110
111
  ]
111
112
  })] }),
112
- /* @__PURE__ */ k(m, { children: /* @__PURE__ */ k(h, {
113
+ /* @__PURE__ */ k(p, { children: /* @__PURE__ */ k(m, {
113
114
  className: "p-4",
114
115
  children: /* @__PURE__ */ A("div", {
115
116
  className: "flex flex-wrap items-center gap-4",
@@ -124,20 +125,20 @@ function P() {
124
125
  children: "Filters:"
125
126
  })]
126
127
  }),
127
- /* @__PURE__ */ A(ee, {
128
+ /* @__PURE__ */ A(g, {
128
129
  value: W,
129
130
  onValueChange: (e) => {
130
131
  G(e), z(0);
131
132
  },
132
- children: [/* @__PURE__ */ k(re, {
133
+ children: [/* @__PURE__ */ k(ie, {
133
134
  className: "w-[180px]",
134
135
  children: /* @__PURE__ */ k(_, { placeholder: "Status" })
135
- }), /* @__PURE__ */ k(te, { children: N.map((e) => /* @__PURE__ */ k(ne, {
136
+ }), /* @__PURE__ */ k(ne, { children: N.map((e) => /* @__PURE__ */ k(re, {
136
137
  value: e.value,
137
138
  children: e.label
138
139
  }, e.value)) })]
139
140
  }),
140
- se && /* @__PURE__ */ k(p, {
141
+ ce && /* @__PURE__ */ k(te, {
141
142
  variant: "ghost",
142
143
  size: "sm",
143
144
  onClick: () => {
@@ -196,7 +197,7 @@ function P() {
196
197
  header: "Capacity",
197
198
  cell: (e) => /* @__PURE__ */ A("div", {
198
199
  className: "text-sm",
199
- children: [/* @__PURE__ */ k("p", { children: e.capacity.weight === void 0 ? "—" : `${e.capacity.weight} kg` }), /* @__PURE__ */ k("p", {
200
+ children: [/* @__PURE__ */ k("p", { children: e.capacity.weight === void 0 ? "—" : d(e.capacity.weight) }), /* @__PURE__ */ k("p", {
200
201
  className: "text-text-secondary",
201
202
  children: e.capacity.volume === void 0 ? "—" : `${e.capacity.volume} m³`
202
203
  })]
@@ -207,7 +208,7 @@ function P() {
207
208
  header: "Fuel Level",
208
209
  cell: (e) => e.fuelLevel === void 0 ? "-" : /* @__PURE__ */ A("div", {
209
210
  className: "flex items-center gap-2",
210
- children: [/* @__PURE__ */ k(g, {
211
+ children: [/* @__PURE__ */ k(h, {
211
212
  value: e.fuelLevel,
212
213
  className: "w-16 h-2"
213
214
  }), /* @__PURE__ */ A("span", {
@@ -225,8 +226,8 @@ function P() {
225
226
  }
226
227
  ],
227
228
  data: q,
228
- isLoading: ae,
229
- error: oe,
229
+ isLoading: Y,
230
+ error: se,
230
231
  onRetry: X,
231
232
  searchable: !0,
232
233
  searchPlaceholder: "Search vehicles...",
@@ -248,7 +249,7 @@ function P() {
248
249
  V(e), z(0);
249
250
  },
250
251
  totalItems: J,
251
- hasNextPage: Y,
252
+ hasNextPage: oe,
252
253
  emptyIllustration: "empty-data",
253
254
  emptyTitle: "No vehicles yet",
254
255
  emptyDescription: "Add vehicles to your fleet to start assigning them to deliveries."