@burdenoff/microfe-movethewheels 2026.719.3 → 2026.725.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/MoveTheWheelsRoot.js +45 -35
- package/dist/hooks/useOrders.js +119 -100
- package/dist/movethewheels/types/index.d.ts +1 -3
- package/dist/pages/CreateOrderPage.js +53 -79
- package/dist/pages/MarketplacePage.js +143 -124
- package/dist/pages/OrderDetailsPage.js +19 -20
- package/dist/pages/OrdersListPage.js +82 -113
- package/package.json +2 -1
- package/src/movethewheels/MoveTheWheelsRoot.tsx +57 -29
- package/src/movethewheels/hooks/useOrders.ts +83 -208
- package/src/movethewheels/pages/CreateOrderPage.tsx +1 -19
- package/src/movethewheels/pages/MarketplacePage.tsx +34 -1
- package/src/movethewheels/pages/OrderDetailsPage.tsx +1 -7
- package/src/movethewheels/pages/OrdersListPage.tsx +3 -31
- package/src/movethewheels/types/index.ts +1 -3
|
@@ -20,7 +20,6 @@ import { EmphasisPanel as M, NextSteps as ne, PagePurpose as re } from "@burdeno
|
|
|
20
20
|
function N() {
|
|
21
21
|
let { orderId: N } = k(), { basePath: P, navigate: F } = c(), { order: I } = ee(N), { createOrder: L, updateOrder: R } = te(), { customers: z } = l({ limit: 100 }), B = !!N && !!I, [V, H] = O({
|
|
22
22
|
customerId: I?.customerId || "",
|
|
23
|
-
orderType: I?.orderType || "b2c",
|
|
24
23
|
priority: I?.priority || "normal",
|
|
25
24
|
pickupAddress: {
|
|
26
25
|
street: I?.pickupAddress.street || "",
|
|
@@ -42,7 +41,6 @@ function N() {
|
|
|
42
41
|
D(() => {
|
|
43
42
|
I && H({
|
|
44
43
|
customerId: I.customerId || "",
|
|
45
|
-
orderType: I.orderType || "b2c",
|
|
46
44
|
priority: I.priority || "normal",
|
|
47
45
|
pickupAddress: {
|
|
48
46
|
street: I.pickupAddress.street || "",
|
|
@@ -89,7 +87,6 @@ function N() {
|
|
|
89
87
|
phone: n.phone,
|
|
90
88
|
company: n.company
|
|
91
89
|
},
|
|
92
|
-
orderType: V.orderType,
|
|
93
90
|
priority: V.priority,
|
|
94
91
|
pickupAddress: V.pickupAddress,
|
|
95
92
|
deliveryAddress: V.deliveryAddress,
|
|
@@ -209,82 +206,59 @@ function N() {
|
|
|
209
206
|
}), /* @__PURE__ */ A("div", {
|
|
210
207
|
className: "space-y-4",
|
|
211
208
|
children: /* @__PURE__ */ j("div", {
|
|
212
|
-
className: "grid grid-cols-1 md:grid-cols-
|
|
213
|
-
children: [
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
/* @__PURE__ */
|
|
237
|
-
|
|
238
|
-
children:
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
children:
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
value: "
|
|
252
|
-
children: "
|
|
253
|
-
})
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
id: "priority",
|
|
266
|
-
children: /* @__PURE__ */ A(x, {})
|
|
267
|
-
}), /* @__PURE__ */ j(v, { children: [
|
|
268
|
-
/* @__PURE__ */ A(y, {
|
|
269
|
-
value: "low",
|
|
270
|
-
children: "Low"
|
|
271
|
-
}),
|
|
272
|
-
/* @__PURE__ */ A(y, {
|
|
273
|
-
value: "normal",
|
|
274
|
-
children: "Normal"
|
|
275
|
-
}),
|
|
276
|
-
/* @__PURE__ */ A(y, {
|
|
277
|
-
value: "high",
|
|
278
|
-
children: "High"
|
|
279
|
-
}),
|
|
280
|
-
/* @__PURE__ */ A(y, {
|
|
281
|
-
value: "urgent",
|
|
282
|
-
children: "Urgent"
|
|
283
|
-
})
|
|
284
|
-
] })]
|
|
285
|
-
})]
|
|
286
|
-
})
|
|
287
|
-
]
|
|
209
|
+
className: "grid grid-cols-1 md:grid-cols-2 gap-4",
|
|
210
|
+
children: [/* @__PURE__ */ j("div", {
|
|
211
|
+
className: "space-y-2",
|
|
212
|
+
children: [/* @__PURE__ */ A(g, {
|
|
213
|
+
htmlFor: "customer",
|
|
214
|
+
children: "Customer"
|
|
215
|
+
}), /* @__PURE__ */ j(_, {
|
|
216
|
+
value: V.customerId,
|
|
217
|
+
onValueChange: (e) => X("customerId", e),
|
|
218
|
+
children: [/* @__PURE__ */ A(b, {
|
|
219
|
+
id: "customer",
|
|
220
|
+
children: /* @__PURE__ */ A(x, { placeholder: "Select customer" })
|
|
221
|
+
}), /* @__PURE__ */ A(v, { children: z.map((e) => /* @__PURE__ */ j(y, {
|
|
222
|
+
value: e.id,
|
|
223
|
+
children: [
|
|
224
|
+
e.name,
|
|
225
|
+
" (",
|
|
226
|
+
e.email,
|
|
227
|
+
")"
|
|
228
|
+
]
|
|
229
|
+
}, e.id)) })]
|
|
230
|
+
})]
|
|
231
|
+
}), /* @__PURE__ */ j("div", {
|
|
232
|
+
className: "space-y-2",
|
|
233
|
+
children: [/* @__PURE__ */ A(g, {
|
|
234
|
+
htmlFor: "priority",
|
|
235
|
+
children: "Priority"
|
|
236
|
+
}), /* @__PURE__ */ j(_, {
|
|
237
|
+
value: V.priority,
|
|
238
|
+
onValueChange: (e) => X("priority", e),
|
|
239
|
+
children: [/* @__PURE__ */ A(b, {
|
|
240
|
+
id: "priority",
|
|
241
|
+
children: /* @__PURE__ */ A(x, {})
|
|
242
|
+
}), /* @__PURE__ */ j(v, { children: [
|
|
243
|
+
/* @__PURE__ */ A(y, {
|
|
244
|
+
value: "low",
|
|
245
|
+
children: "Low"
|
|
246
|
+
}),
|
|
247
|
+
/* @__PURE__ */ A(y, {
|
|
248
|
+
value: "normal",
|
|
249
|
+
children: "Normal"
|
|
250
|
+
}),
|
|
251
|
+
/* @__PURE__ */ A(y, {
|
|
252
|
+
value: "high",
|
|
253
|
+
children: "High"
|
|
254
|
+
}),
|
|
255
|
+
/* @__PURE__ */ A(y, {
|
|
256
|
+
value: "urgent",
|
|
257
|
+
children: "Urgent"
|
|
258
|
+
})
|
|
259
|
+
] })]
|
|
260
|
+
})]
|
|
261
|
+
})]
|
|
288
262
|
})
|
|
289
263
|
})] }),
|
|
290
264
|
/* @__PURE__ */ j("div", {
|