@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,16 +1,16 @@
|
|
|
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-
|
|
2
|
-
import { t as u } from "./arrow-left-
|
|
3
|
-
import { t as d } from "./box-
|
|
4
|
-
import { t as f } from "./dollar-sign-
|
|
5
|
-
import { t as p } from "./package-
|
|
6
|
-
import { t as m } from "./square-pen-
|
|
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-D3N8MCTm.js";
|
|
2
|
+
import { t as u } from "./arrow-left-CBpZKkpq.js";
|
|
3
|
+
import { t as d } from "./box-CAaiElsb.js";
|
|
4
|
+
import { t as f } from "./dollar-sign-IB4O0wuQ.js";
|
|
5
|
+
import { t as p } from "./package-BE7U0wQE.js";
|
|
6
|
+
import { t as m } from "./square-pen-hLIbFQFV.js";
|
|
7
7
|
import { r as h } from "./graphqlClient-CdJyR_ed.js";
|
|
8
8
|
import { r as g } from "./useInventory-Dwn18FPz.js";
|
|
9
9
|
import { n as _ } from "./formatters-_vJlC-47.js";
|
|
10
10
|
import { t as v } from "./navigation-BgnOfsVd.js";
|
|
11
11
|
import { useParams as y } from "react-router-dom";
|
|
12
12
|
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
13
|
-
//#region
|
|
13
|
+
//#region node_modules/lucide-react/dist/esm/icons/tag.js
|
|
14
14
|
var S = a("Tag", [["path", {
|
|
15
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
16
|
key: "vktsd0"
|
|
@@ -78,7 +78,7 @@ function C() {
|
|
|
78
78
|
className: "grid grid-cols-2 md:grid-cols-4 gap-4",
|
|
79
79
|
children: [
|
|
80
80
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
81
|
-
className: "text-sm text-
|
|
81
|
+
className: "text-sm text-text-secondary",
|
|
82
82
|
children: "Length"
|
|
83
83
|
}), /* @__PURE__ */ x("p", {
|
|
84
84
|
className: "text-2xl font-bold",
|
|
@@ -88,7 +88,7 @@ function C() {
|
|
|
88
88
|
})]
|
|
89
89
|
})] }),
|
|
90
90
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
91
|
-
className: "text-sm text-
|
|
91
|
+
className: "text-sm text-text-secondary",
|
|
92
92
|
children: "Width"
|
|
93
93
|
}), /* @__PURE__ */ x("p", {
|
|
94
94
|
className: "text-2xl font-bold",
|
|
@@ -98,7 +98,7 @@ function C() {
|
|
|
98
98
|
})]
|
|
99
99
|
})] }),
|
|
100
100
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
101
|
-
className: "text-sm text-
|
|
101
|
+
className: "text-sm text-text-secondary",
|
|
102
102
|
children: "Height"
|
|
103
103
|
}), /* @__PURE__ */ x("p", {
|
|
104
104
|
className: "text-2xl font-bold",
|
|
@@ -108,7 +108,7 @@ function C() {
|
|
|
108
108
|
})]
|
|
109
109
|
})] }),
|
|
110
110
|
/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
111
|
-
className: "text-sm text-
|
|
111
|
+
className: "text-sm text-text-secondary",
|
|
112
112
|
children: "Weight"
|
|
113
113
|
}), /* @__PURE__ */ x("p", {
|
|
114
114
|
className: "text-2xl font-bold",
|
|
@@ -125,7 +125,7 @@ function C() {
|
|
|
125
125
|
}) }), /* @__PURE__ */ b(t, { children: /* @__PURE__ */ b("div", {
|
|
126
126
|
className: "grid grid-cols-2 md:grid-cols-3 gap-4",
|
|
127
127
|
children: T.attributes.map((e, t) => /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
128
|
-
className: "text-sm text-
|
|
128
|
+
className: "text-sm text-text-secondary",
|
|
129
129
|
children: e.name
|
|
130
130
|
}), /* @__PURE__ */ b("p", {
|
|
131
131
|
className: "font-medium",
|
|
@@ -142,18 +142,18 @@ function C() {
|
|
|
142
142
|
className: "text-3xl font-bold",
|
|
143
143
|
children: _(T.value)
|
|
144
144
|
}), /* @__PURE__ */ b("p", {
|
|
145
|
-
className: "text-sm text-
|
|
145
|
+
className: "text-sm text-text-secondary",
|
|
146
146
|
children: "Unit price"
|
|
147
147
|
})] })] }), /* @__PURE__ */ x(e, { children: [/* @__PURE__ */ b(r, { children: /* @__PURE__ */ b(n, { children: "Identifiers" }) }), /* @__PURE__ */ x(t, {
|
|
148
148
|
className: "space-y-3",
|
|
149
149
|
children: [/* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
150
|
-
className: "text-sm text-
|
|
150
|
+
className: "text-sm text-text-secondary",
|
|
151
151
|
children: "SKU"
|
|
152
152
|
}), /* @__PURE__ */ b("p", {
|
|
153
153
|
className: "font-mono",
|
|
154
154
|
children: T.sku
|
|
155
155
|
})] }), T.barcode && /* @__PURE__ */ x("div", { children: [/* @__PURE__ */ b("p", {
|
|
156
|
-
className: "text-sm text-
|
|
156
|
+
className: "text-sm text-text-secondary",
|
|
157
157
|
children: "Barcode"
|
|
158
158
|
}), /* @__PURE__ */ b("p", {
|
|
159
159
|
className: "font-mono",
|
|
@@ -1,44 +1,46 @@
|
|
|
1
|
-
import { i as e, l as t
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { t as
|
|
7
|
-
import { r as
|
|
8
|
-
import { i as
|
|
9
|
-
import { n as
|
|
10
|
-
import { t as
|
|
11
|
-
import { jsx as
|
|
1
|
+
import { i as e, l as t } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as n } from "./DataTable-CfWvFw5B.js";
|
|
3
|
+
import { t as r } from "./download-Dpa9vqoG.js";
|
|
4
|
+
import { t as i } from "./package-BE7U0wQE.js";
|
|
5
|
+
import { t as a } from "./plus-Dl1rLeJR.js";
|
|
6
|
+
import { t as o } from "./refresh-cw-CWfERAit.js";
|
|
7
|
+
import { r as s } from "./graphqlClient-CdJyR_ed.js";
|
|
8
|
+
import { i as c } from "./useInventory-Dwn18FPz.js";
|
|
9
|
+
import { n as l } from "./formatters-_vJlC-47.js";
|
|
10
|
+
import { t as u } from "./navigation-BgnOfsVd.js";
|
|
11
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
12
|
+
import { CTAOverflowMenu as p } from "@burdenoff/fe-libs/ui";
|
|
12
13
|
//#region src/movethewheels/pages/ProductsPage.tsx
|
|
13
14
|
function m() {
|
|
14
|
-
let { basePath: m, navigate: h } =
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
let { basePath: m, navigate: h } = s(), { products: g, totalProducts: _, isLoading: v, refetch: y } = c(), b = (e) => h?.(u(m, e));
|
|
16
|
+
return /* @__PURE__ */ d(e, {
|
|
16
17
|
title: "Products",
|
|
17
18
|
subtitle: `${_} products`,
|
|
18
|
-
icon: /* @__PURE__ */
|
|
19
|
-
headerActions: /* @__PURE__ */ p
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
/* @__PURE__ */
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
19
|
+
icon: /* @__PURE__ */ d(i, { size: 24 }),
|
|
20
|
+
headerActions: /* @__PURE__ */ d(p, {
|
|
21
|
+
primary: {
|
|
22
|
+
label: "Add Product",
|
|
23
|
+
icon: /* @__PURE__ */ d(a, { size: 16 }),
|
|
24
|
+
onSelect: () => {}
|
|
25
|
+
},
|
|
26
|
+
actions: [{
|
|
27
|
+
label: "Refresh",
|
|
28
|
+
icon: /* @__PURE__ */ d(o, { size: 16 }),
|
|
29
|
+
onSelect: () => y()
|
|
30
|
+
}, {
|
|
31
|
+
label: "Export",
|
|
32
|
+
icon: /* @__PURE__ */ d(r, { size: 16 }),
|
|
33
|
+
onSelect: () => {}
|
|
34
|
+
}]
|
|
33
35
|
}),
|
|
34
|
-
children: /* @__PURE__ */
|
|
36
|
+
children: /* @__PURE__ */ d(n, {
|
|
35
37
|
columns: [
|
|
36
38
|
{
|
|
37
39
|
id: "sku",
|
|
38
40
|
header: "SKU",
|
|
39
41
|
accessorKey: "sku",
|
|
40
42
|
sortable: !0,
|
|
41
|
-
cell: (e) => /* @__PURE__ */
|
|
43
|
+
cell: (e) => /* @__PURE__ */ d("span", {
|
|
42
44
|
className: "font-mono",
|
|
43
45
|
children: e.sku
|
|
44
46
|
})
|
|
@@ -48,11 +50,11 @@ function m() {
|
|
|
48
50
|
header: "Product Name",
|
|
49
51
|
accessorKey: "name",
|
|
50
52
|
sortable: !0,
|
|
51
|
-
cell: (e) => /* @__PURE__ */
|
|
53
|
+
cell: (e) => /* @__PURE__ */ f("div", { children: [/* @__PURE__ */ d("p", {
|
|
52
54
|
className: "font-medium",
|
|
53
55
|
children: e.name
|
|
54
|
-
}), /* @__PURE__ */
|
|
55
|
-
className: "text-sm text-
|
|
56
|
+
}), /* @__PURE__ */ d("p", {
|
|
57
|
+
className: "text-sm text-text-secondary line-clamp-1",
|
|
56
58
|
children: e.description
|
|
57
59
|
})] })
|
|
58
60
|
},
|
|
@@ -61,7 +63,7 @@ function m() {
|
|
|
61
63
|
header: "Category",
|
|
62
64
|
accessorKey: "category",
|
|
63
65
|
sortable: !0,
|
|
64
|
-
cell: (e) => /* @__PURE__ */
|
|
66
|
+
cell: (e) => /* @__PURE__ */ d(t, {
|
|
65
67
|
variant: "outline",
|
|
66
68
|
children: e.category
|
|
67
69
|
})
|
|
@@ -83,28 +85,28 @@ function m() {
|
|
|
83
85
|
header: "Value",
|
|
84
86
|
accessorKey: "value",
|
|
85
87
|
sortable: !0,
|
|
86
|
-
cell: (e) => /* @__PURE__ */
|
|
88
|
+
cell: (e) => /* @__PURE__ */ d("span", {
|
|
87
89
|
className: "font-medium",
|
|
88
|
-
children:
|
|
90
|
+
children: l(e.value)
|
|
89
91
|
})
|
|
90
92
|
},
|
|
91
93
|
{
|
|
92
94
|
id: "flags",
|
|
93
95
|
header: "Flags",
|
|
94
|
-
cell: (e) => /* @__PURE__ */
|
|
96
|
+
cell: (e) => /* @__PURE__ */ f("div", {
|
|
95
97
|
className: "flex gap-1",
|
|
96
98
|
children: [
|
|
97
|
-
e.fragile && /* @__PURE__ */
|
|
99
|
+
e.fragile && /* @__PURE__ */ d(t, {
|
|
98
100
|
variant: "destructive",
|
|
99
101
|
className: "text-xs",
|
|
100
102
|
children: "Fragile"
|
|
101
103
|
}),
|
|
102
|
-
e.hazardous && /* @__PURE__ */
|
|
104
|
+
e.hazardous && /* @__PURE__ */ d(t, {
|
|
103
105
|
variant: "destructive",
|
|
104
106
|
className: "text-xs",
|
|
105
107
|
children: "Hazardous"
|
|
106
108
|
}),
|
|
107
|
-
e.temperatureControlled && /* @__PURE__ */
|
|
109
|
+
e.temperatureControlled && /* @__PURE__ */ d(t, {
|
|
108
110
|
variant: "secondary",
|
|
109
111
|
className: "text-xs",
|
|
110
112
|
children: "Temp Control"
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
2
|
-
import { t as p } from "./clock-
|
|
3
|
-
import { t as m } from "./download-
|
|
4
|
-
import { t as h } from "./filter-
|
|
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-D3N8MCTm.js";
|
|
2
|
+
import { t as p } from "./clock-BjkdnddD.js";
|
|
3
|
+
import { t as m } from "./download-Dpa9vqoG.js";
|
|
4
|
+
import { t as h } from "./filter-Da5OZaHI.js";
|
|
5
5
|
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
6
|
-
//#region
|
|
6
|
+
//#region node_modules/lucide-react/dist/esm/icons/calendar.js
|
|
7
7
|
var v = u("Calendar", [
|
|
8
8
|
["path", {
|
|
9
9
|
d: "M8 2v4",
|
|
@@ -132,7 +132,7 @@ function b() {
|
|
|
132
132
|
children: [/* @__PURE__ */ _("div", {
|
|
133
133
|
className: "flex items-center gap-3",
|
|
134
134
|
children: [/* @__PURE__ */ g("div", {
|
|
135
|
-
className: "w-10 h-10 rounded-lg bg-primary/10 flex items-center justify-center",
|
|
135
|
+
className: "w-10 h-10 rounded-lg bg-action-primary-bg/10 flex items-center justify-center",
|
|
136
136
|
children: /* @__PURE__ */ g(y, {
|
|
137
137
|
size: 20,
|
|
138
138
|
className: "text-primary"
|
|
@@ -141,7 +141,7 @@ function b() {
|
|
|
141
141
|
className: "font-medium",
|
|
142
142
|
children: e.name
|
|
143
143
|
}), /* @__PURE__ */ g("p", {
|
|
144
|
-
className: "text-sm text-
|
|
144
|
+
className: "text-sm text-text-secondary",
|
|
145
145
|
children: e.description
|
|
146
146
|
})] })]
|
|
147
147
|
}), /* @__PURE__ */ _("div", {
|
|
@@ -152,7 +152,7 @@ function b() {
|
|
|
152
152
|
variant: "outline",
|
|
153
153
|
children: e.frequency
|
|
154
154
|
}), /* @__PURE__ */ _("p", {
|
|
155
|
-
className: "text-xs text-
|
|
155
|
+
className: "text-xs text-text-secondary mt-1",
|
|
156
156
|
children: ["Last: ", e.lastGenerated]
|
|
157
157
|
})]
|
|
158
158
|
}), /* @__PURE__ */ g(f, {
|
|
@@ -186,11 +186,11 @@ function b() {
|
|
|
186
186
|
children: e.name
|
|
187
187
|
}),
|
|
188
188
|
/* @__PURE__ */ _("p", {
|
|
189
|
-
className: "text-sm text-
|
|
189
|
+
className: "text-sm text-text-secondary",
|
|
190
190
|
children: ["Next: ", e.nextRun]
|
|
191
191
|
}),
|
|
192
192
|
/* @__PURE__ */ _("p", {
|
|
193
|
-
className: "text-xs text-
|
|
193
|
+
className: "text-xs text-text-secondary",
|
|
194
194
|
children: [e.recipients, " recipients"]
|
|
195
195
|
})
|
|
196
196
|
]
|
|
@@ -1,18 +1,18 @@
|
|
|
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-
|
|
2
|
-
import { t as u } from "./arrow-left-
|
|
3
|
-
import { t as d } from "./circle-check-big-
|
|
4
|
-
import { t as f } from "./clock-
|
|
5
|
-
import { t as p } from "./map-pin-
|
|
6
|
-
import { t as m } from "./navigation-
|
|
7
|
-
import { t as h } from "./square-pen-
|
|
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-D3N8MCTm.js";
|
|
2
|
+
import { t as u } from "./arrow-left-CBpZKkpq.js";
|
|
3
|
+
import { t as d } from "./circle-check-big-CjuPVo3_.js";
|
|
4
|
+
import { t as f } from "./clock-BjkdnddD.js";
|
|
5
|
+
import { t as p } from "./map-pin-BSaf5IDL.js";
|
|
6
|
+
import { t as m } from "./navigation-DaTbrhw2.js";
|
|
7
|
+
import { t as h } from "./square-pen-hLIbFQFV.js";
|
|
8
8
|
import { r as g } from "./graphqlClient-CdJyR_ed.js";
|
|
9
9
|
import { r as _, t as v } from "./useRoutes-v4aBaS-E.js";
|
|
10
|
-
import { r as y } from "./StatusBadge-
|
|
10
|
+
import { r as y } from "./StatusBadge-CijYQXtb.js";
|
|
11
11
|
import { r as b, t as x } from "./formatters-_vJlC-47.js";
|
|
12
12
|
import { t as S } from "./navigation-BgnOfsVd.js";
|
|
13
13
|
import { useParams as C } from "react-router-dom";
|
|
14
14
|
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
15
|
-
//#region
|
|
15
|
+
//#region node_modules/lucide-react/dist/esm/icons/zap.js
|
|
16
16
|
var E = a("Zap", [["path", {
|
|
17
17
|
d: "M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",
|
|
18
18
|
key: "1xq2db"
|
|
@@ -82,9 +82,9 @@ function D() {
|
|
|
82
82
|
children: [/* @__PURE__ */ T("div", {
|
|
83
83
|
className: "lg:col-span-2 space-y-6",
|
|
84
84
|
children: [/* @__PURE__ */ T(e, { children: [/* @__PURE__ */ w(r, { children: /* @__PURE__ */ w(n, { children: "Route Map" }) }), /* @__PURE__ */ w(t, { children: /* @__PURE__ */ w("div", {
|
|
85
|
-
className: "aspect-video bg-
|
|
85
|
+
className: "aspect-video bg-bg-sunken rounded-lg flex items-center justify-center",
|
|
86
86
|
children: /* @__PURE__ */ T("div", {
|
|
87
|
-
className: "text-center text-
|
|
87
|
+
className: "text-center text-text-secondary",
|
|
88
88
|
children: [/* @__PURE__ */ w(p, {
|
|
89
89
|
size: 48,
|
|
90
90
|
className: "mx-auto mb-2 opacity-50"
|
|
@@ -101,7 +101,7 @@ function D() {
|
|
|
101
101
|
children: [/* @__PURE__ */ T("div", {
|
|
102
102
|
className: "relative",
|
|
103
103
|
children: [/* @__PURE__ */ w("div", {
|
|
104
|
-
className: `w-8 h-8 rounded-full flex items-center justify-center ${e.status === "completed" ? "bg-green-500 text-white" : "bg-
|
|
104
|
+
className: `w-8 h-8 rounded-full flex items-center justify-center ${e.status === "completed" ? "bg-green-500 text-white" : "bg-bg-sunken"}`,
|
|
105
105
|
children: e.status === "completed" ? /* @__PURE__ */ w(d, { size: 16 }) : e.sequence
|
|
106
106
|
}), t < k.stops.length - 1 && /* @__PURE__ */ w("div", { className: "absolute top-8 left-4 w-px h-12 bg-border" })]
|
|
107
107
|
}), /* @__PURE__ */ w("div", {
|
|
@@ -119,7 +119,7 @@ function D() {
|
|
|
119
119
|
children: ["Order #", e.orderId]
|
|
120
120
|
})]
|
|
121
121
|
}), /* @__PURE__ */ w("p", {
|
|
122
|
-
className: "text-sm text-
|
|
122
|
+
className: "text-sm text-text-secondary mt-1",
|
|
123
123
|
children: x(e.address)
|
|
124
124
|
})] }), /* @__PURE__ */ T("div", {
|
|
125
125
|
className: "text-right",
|
|
@@ -133,7 +133,7 @@ function D() {
|
|
|
133
133
|
children: ["Actual: ", b(e.actualTime, "time")]
|
|
134
134
|
}),
|
|
135
135
|
/* @__PURE__ */ T("p", {
|
|
136
|
-
className: "text-xs text-
|
|
136
|
+
className: "text-xs text-text-secondary",
|
|
137
137
|
children: [e.duration, " min stop"]
|
|
138
138
|
})
|
|
139
139
|
]
|
|
@@ -149,7 +149,7 @@ function D() {
|
|
|
149
149
|
className: "space-y-4",
|
|
150
150
|
children: [
|
|
151
151
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
152
|
-
className: "text-sm text-
|
|
152
|
+
className: "text-sm text-text-secondary",
|
|
153
153
|
children: "Total Distance"
|
|
154
154
|
}), /* @__PURE__ */ T("p", {
|
|
155
155
|
className: "text-2xl font-bold",
|
|
@@ -159,7 +159,7 @@ function D() {
|
|
|
159
159
|
})]
|
|
160
160
|
})] }),
|
|
161
161
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
162
|
-
className: "text-sm text-
|
|
162
|
+
className: "text-sm text-text-secondary",
|
|
163
163
|
children: "Est. Duration"
|
|
164
164
|
}), /* @__PURE__ */ T("p", {
|
|
165
165
|
className: "text-2xl font-bold",
|
|
@@ -169,7 +169,7 @@ function D() {
|
|
|
169
169
|
})]
|
|
170
170
|
})] }),
|
|
171
171
|
k.actualDuration && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
172
|
-
className: "text-sm text-
|
|
172
|
+
className: "text-sm text-text-secondary",
|
|
173
173
|
children: "Actual Duration"
|
|
174
174
|
}), /* @__PURE__ */ T("p", {
|
|
175
175
|
className: "text-2xl font-bold",
|
|
@@ -187,15 +187,15 @@ function D() {
|
|
|
187
187
|
className: "space-y-3",
|
|
188
188
|
children: [
|
|
189
189
|
k.startTime && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
190
|
-
className: "text-sm text-
|
|
190
|
+
className: "text-sm text-text-secondary",
|
|
191
191
|
children: "Started"
|
|
192
192
|
}), /* @__PURE__ */ w("p", { children: b(k.startTime, "full") })] }),
|
|
193
193
|
k.endTime && /* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
194
|
-
className: "text-sm text-
|
|
194
|
+
className: "text-sm text-text-secondary",
|
|
195
195
|
children: "Completed"
|
|
196
196
|
}), /* @__PURE__ */ w("p", { children: b(k.endTime, "full") })] }),
|
|
197
197
|
/* @__PURE__ */ T("div", { children: [/* @__PURE__ */ w("p", {
|
|
198
|
-
className: "text-sm text-
|
|
198
|
+
className: "text-sm text-text-secondary",
|
|
199
199
|
children: "Created"
|
|
200
200
|
}), /* @__PURE__ */ w("p", { children: b(k.createdAt, "full") })] })
|
|
201
201
|
]
|
|
@@ -206,7 +206,7 @@ function D() {
|
|
|
206
206
|
className: "text-sm font-medium capitalize",
|
|
207
207
|
children: [e.condition, " traffic"]
|
|
208
208
|
}), /* @__PURE__ */ T("p", {
|
|
209
|
-
className: "text-xs text-
|
|
209
|
+
className: "text-xs text-text-secondary",
|
|
210
210
|
children: [
|
|
211
211
|
e.location,
|
|
212
212
|
" - +",
|
|
@@ -230,7 +230,7 @@ function D() {
|
|
|
230
230
|
children: /* @__PURE__ */ w(e, { children: /* @__PURE__ */ w(t, {
|
|
231
231
|
className: "p-8 text-center",
|
|
232
232
|
children: /* @__PURE__ */ w("p", {
|
|
233
|
-
className: "text-
|
|
233
|
+
className: "text-text-secondary",
|
|
234
234
|
children: "Route creation form would go here"
|
|
235
235
|
})
|
|
236
236
|
}) })
|
|
@@ -1,40 +1,42 @@
|
|
|
1
|
-
import { i as e, l as t
|
|
2
|
-
import { t as
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import { t as
|
|
6
|
-
import { r as
|
|
7
|
-
import { r as
|
|
8
|
-
import { r as
|
|
9
|
-
import { r as
|
|
10
|
-
import { t as
|
|
11
|
-
import { jsx as
|
|
1
|
+
import { i as e, l as t } from "./PageLayout-D3N8MCTm.js";
|
|
2
|
+
import { t as n } from "./DataTable-CfWvFw5B.js";
|
|
3
|
+
import { t as r } from "./navigation-DaTbrhw2.js";
|
|
4
|
+
import { t as i } from "./plus-Dl1rLeJR.js";
|
|
5
|
+
import { t as a } from "./refresh-cw-CWfERAit.js";
|
|
6
|
+
import { r as o } from "./graphqlClient-CdJyR_ed.js";
|
|
7
|
+
import { r as s } from "./useRoutes-v4aBaS-E.js";
|
|
8
|
+
import { r as c } from "./StatusBadge-CijYQXtb.js";
|
|
9
|
+
import { r as l } from "./formatters-_vJlC-47.js";
|
|
10
|
+
import { t as u } from "./navigation-BgnOfsVd.js";
|
|
11
|
+
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
12
|
+
import { CTAOverflowMenu as p } from "@burdenoff/fe-libs/ui";
|
|
12
13
|
//#region src/movethewheels/pages/RoutesPage.tsx
|
|
13
14
|
function m() {
|
|
14
|
-
let { basePath: m, navigate: h } =
|
|
15
|
-
return /* @__PURE__ */
|
|
15
|
+
let { basePath: m, navigate: h } = o(), { routes: g, totalRoutes: _, isLoading: v, refetch: y } = s(), b = (e) => h?.(u(m, e));
|
|
16
|
+
return /* @__PURE__ */ d(e, {
|
|
16
17
|
title: "Routes",
|
|
17
18
|
subtitle: `${_} routes`,
|
|
18
|
-
icon: /* @__PURE__ */
|
|
19
|
-
headerActions: /* @__PURE__ */ p
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
icon: /* @__PURE__ */ d(r, { size: 24 }),
|
|
20
|
+
headerActions: /* @__PURE__ */ d(p, {
|
|
21
|
+
primary: {
|
|
22
|
+
label: "Create Route",
|
|
23
|
+
icon: /* @__PURE__ */ d(i, { size: 16 }),
|
|
24
|
+
onSelect: () => b("routes/new")
|
|
25
|
+
},
|
|
26
|
+
actions: [{
|
|
27
|
+
label: "Refresh",
|
|
28
|
+
icon: /* @__PURE__ */ d(a, { size: 16 }),
|
|
29
|
+
onSelect: () => y()
|
|
30
|
+
}]
|
|
29
31
|
}),
|
|
30
|
-
children: /* @__PURE__ */
|
|
32
|
+
children: /* @__PURE__ */ d(n, {
|
|
31
33
|
columns: [
|
|
32
34
|
{
|
|
33
35
|
id: "name",
|
|
34
36
|
header: "Route Name",
|
|
35
37
|
accessorKey: "name",
|
|
36
38
|
sortable: !0,
|
|
37
|
-
cell: (e) => /* @__PURE__ */
|
|
39
|
+
cell: (e) => /* @__PURE__ */ d("span", {
|
|
38
40
|
className: "font-medium",
|
|
39
41
|
children: e.name
|
|
40
42
|
})
|
|
@@ -44,7 +46,7 @@ function m() {
|
|
|
44
46
|
header: "Status",
|
|
45
47
|
accessorKey: "status",
|
|
46
48
|
sortable: !0,
|
|
47
|
-
cell: (e) => /* @__PURE__ */
|
|
49
|
+
cell: (e) => /* @__PURE__ */ d(c, {
|
|
48
50
|
status: e.status,
|
|
49
51
|
customColors: {
|
|
50
52
|
planned: {
|
|
@@ -69,7 +71,7 @@ function m() {
|
|
|
69
71
|
{
|
|
70
72
|
id: "stops",
|
|
71
73
|
header: "Stops",
|
|
72
|
-
cell: (e) => /* @__PURE__ */
|
|
74
|
+
cell: (e) => /* @__PURE__ */ f(t, {
|
|
73
75
|
variant: "secondary",
|
|
74
76
|
children: [e.stops.length, " stops"]
|
|
75
77
|
})
|
|
@@ -89,7 +91,7 @@ function m() {
|
|
|
89
91
|
{
|
|
90
92
|
id: "optimized",
|
|
91
93
|
header: "Optimized",
|
|
92
|
-
cell: (e) => /* @__PURE__ */
|
|
94
|
+
cell: (e) => /* @__PURE__ */ d(t, {
|
|
93
95
|
variant: e.optimized ? "default" : "outline",
|
|
94
96
|
children: e.optimized ? "Yes" : "No"
|
|
95
97
|
})
|
|
@@ -99,7 +101,7 @@ function m() {
|
|
|
99
101
|
header: "Created",
|
|
100
102
|
accessorKey: "createdAt",
|
|
101
103
|
sortable: !0,
|
|
102
|
-
cell: (e) =>
|
|
104
|
+
cell: (e) => l(e.createdAt, "short")
|
|
103
105
|
}
|
|
104
106
|
],
|
|
105
107
|
data: g,
|
|
@@ -1,9 +1,9 @@
|
|
|
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-
|
|
2
|
-
import { n as b, t as x } from "./settings-
|
|
3
|
-
import { t as S } from "./save-
|
|
4
|
-
import { t as C } from "./user-
|
|
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-D3N8MCTm.js";
|
|
2
|
+
import { n as b, t as x } from "./settings-3Rw5NwFF.js";
|
|
3
|
+
import { t as S } from "./save-XH8vydOn.js";
|
|
4
|
+
import { t as C } from "./user-Dz5TJZFs.js";
|
|
5
5
|
import { jsx as w, jsxs as T } from "react/jsx-runtime";
|
|
6
|
-
//#region
|
|
6
|
+
//#region node_modules/lucide-react/dist/esm/icons/bell.js
|
|
7
7
|
var E = g("Bell", [["path", {
|
|
8
8
|
d: "M10.268 21a2 2 0 0 0 3.464 0",
|
|
9
9
|
key: "vwvbt9"
|
|
@@ -163,7 +163,7 @@ function k() {
|
|
|
163
163
|
className: "font-medium",
|
|
164
164
|
children: e.label
|
|
165
165
|
}), /* @__PURE__ */ w("p", {
|
|
166
|
-
className: "text-sm text-
|
|
166
|
+
className: "text-sm text-text-secondary",
|
|
167
167
|
children: e.desc
|
|
168
168
|
})] }), /* @__PURE__ */ w(s, { defaultChecked: !0 })]
|
|
169
169
|
}, e.label))
|
|
@@ -199,7 +199,7 @@ function k() {
|
|
|
199
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
200
|
className: "space-y-4",
|
|
201
201
|
children: [/* @__PURE__ */ T("div", {
|
|
202
|
-
className: "p-4 bg-
|
|
202
|
+
className: "p-4 bg-bg-sunken rounded-lg",
|
|
203
203
|
children: [/* @__PURE__ */ w("p", {
|
|
204
204
|
className: "font-medium",
|
|
205
205
|
children: "Production API Key"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as e, rt as t } from "./PageLayout-
|
|
1
|
+
import { l as e, rt as t } from "./PageLayout-D3N8MCTm.js";
|
|
2
2
|
import { jsx as n, jsxs as r } from "react/jsx-runtime";
|
|
3
3
|
//#region src/movethewheels/constants/index.ts
|
|
4
4
|
var i = {
|
|
@@ -116,7 +116,10 @@ function c({ status: c, type: l = "custom", customColors: u, size: d = "md", sho
|
|
|
116
116
|
return /* @__PURE__ */ r(e, {
|
|
117
117
|
variant: "outline",
|
|
118
118
|
className: t("font-medium capitalize border-0 whitespace-nowrap inline-flex items-center", m.bg, m.text, s[d], p),
|
|
119
|
-
children: [f && /* @__PURE__ */ n("span", {
|
|
119
|
+
children: [f && /* @__PURE__ */ n("span", {
|
|
120
|
+
"aria-hidden": "true",
|
|
121
|
+
className: t("w-1.5 h-1.5 rounded-full mr-1.5 flex-shrink-0 motion-safe:animate-vc-glow-pulse", m.text.replace("text-", "bg-"))
|
|
122
|
+
}), h]
|
|
120
123
|
});
|
|
121
124
|
}
|
|
122
125
|
function l({ priority: r, size: i = "md", className: a }) {
|