@burdenoff/microfe-movethewheels 2026.930.4 → 2026.1010.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 (377) hide show
  1. package/dist/MoveTheWheelsRoot.js +177 -102
  2. package/dist/MoveTheWheelsRoutes.js +55 -11
  3. package/dist/_virtual/_rolldown/runtime.js +1 -1
  4. package/dist/components/ContainerEvidencePicker.js +143 -0
  5. package/dist/components/FreeTimeAgreementForm.js +496 -0
  6. package/dist/components/ReturnInstructionForm.js +108 -0
  7. package/dist/components/ReuseControls.js +91 -0
  8. package/dist/components/ReusePermissionForm.js +114 -0
  9. package/dist/components/ReuseProposalForm.js +455 -0
  10. package/dist/components/ReuseSourceFields.js +78 -0
  11. package/dist/components/consolidation/ConsolidationHistory.js +244 -0
  12. package/dist/components/consolidation/ConsolidationLotEditor.js +133 -0
  13. package/dist/components/consolidation/ConsolidationManifestWorkbench.js +143 -0
  14. package/dist/components/consolidation/ConsolidationPlanForm.js +172 -0
  15. package/dist/components/consolidation/ConsolidationPlanWorkbench.js +321 -0
  16. package/dist/components/consolidation/ConsolidationReportForm.js +94 -0
  17. package/dist/components/consolidation/ConsolidationReportsWorkbench.js +195 -0
  18. package/dist/components/consolidation/ConsolidationSummary.js +76 -0
  19. package/dist/components/consolidation/OriginalConsolidationHistory.js +112 -0
  20. package/dist/components/freight-cost/FreightDraftForm.js +213 -0
  21. package/dist/components/freight-cost/FreightFields.js +70 -0
  22. package/dist/components/freight-cost/FreightFxEditor.js +90 -0
  23. package/dist/components/freight-cost/FreightHistory.js +164 -0
  24. package/dist/components/freight-cost/FreightLineEditor.js +191 -0
  25. package/dist/components/freight-cost/FreightScopeEditor.js +72 -0
  26. package/dist/components/freight-cost/FreightTotals.js +66 -0
  27. package/dist/components/logistics-procedure/ProcedureDecisionForm.js +197 -0
  28. package/dist/components/logistics-procedure/ProcedureFields.js +31 -0
  29. package/dist/components/logistics-procedure/ProcedureHistory.js +177 -0
  30. package/dist/components/logistics-procedure/ProcedurePolicyForm.js +227 -0
  31. package/dist/components/logistics-procedure/ProcedurePolicyWorkbench.js +155 -0
  32. package/dist/components/logistics-procedure/ProcedureReviewWorkbench.js +221 -0
  33. package/dist/components/logistics-procedure/ProcedureRunWorkbench.js +190 -0
  34. package/dist/components/logistics-procedure/ProcedureSubjectPicker.js +130 -0
  35. package/dist/components/pending-pick/PendingPickDraft.js +84 -0
  36. package/dist/components/pending-pick/PendingPickHistory.js +113 -0
  37. package/dist/components/pending-pick/PickCapture.js +166 -0
  38. package/dist/components/pending-pick/PickLineSelection.js +111 -0
  39. package/dist/components/stock-binding/StockAssessmentDraft.js +48 -0
  40. package/dist/components/stock-binding/StockAssessmentHistory.js +61 -0
  41. package/dist/components/stock-binding/StockAssessmentSummary.js +199 -0
  42. package/dist/components/stock-binding/StockFactForm.js +232 -0
  43. package/dist/components/stock-observation/StockIssueForm.js +148 -0
  44. package/dist/components/stock-observation/StockIssueHistory.js +116 -0
  45. package/dist/components/stock-observation/StockIssueReadPanel.js +70 -0
  46. package/dist/components/trip-utilization/TripReportForm.js +118 -0
  47. package/dist/components/trip-utilization/TripReportHistory.js +54 -0
  48. package/dist/components/trip-utilization/TripReportSummary.js +216 -0
  49. package/dist/components/trip-utilization/TripSegmentFields.js +166 -0
  50. package/dist/generated/consolidation-operations.d.ts +1060 -0
  51. package/dist/generated/container-condition-operations.d.ts +868 -0
  52. package/dist/generated/container-operations.d.ts +356 -0
  53. package/dist/generated/empty-reuse-operations.d.ts +1578 -0
  54. package/dist/generated/free-time-operations.d.ts +938 -0
  55. package/dist/generated/freight-cost-operations.d.ts +716 -0
  56. package/dist/generated/logistics-procedure-operations.d.ts +938 -0
  57. package/dist/generated/pending-pick-operations.d.ts +1969 -0
  58. package/dist/generated/stock-binding-operations.d.ts +930 -0
  59. package/dist/generated/stock-observation-operations.d.ts +476 -0
  60. package/dist/generated/trip-utilization-operations.d.ts +651 -0
  61. package/dist/generated/wspace-operations.d.ts +143 -50
  62. package/dist/hooks/useConsolidationAction.js +119 -0
  63. package/dist/hooks/useContainerCondition.js +105 -0
  64. package/dist/hooks/useContainerLifecycle.js +192 -0
  65. package/dist/hooks/useEmptyReuseAction.js +45 -0
  66. package/dist/hooks/useFreightRecoveryAction.js +117 -0
  67. package/dist/hooks/useInventory.js +12 -1
  68. package/dist/hooks/useProcedureAction.js +119 -0
  69. package/dist/hooks/useProcedureSelection.js +53 -0
  70. package/dist/hooks/useReuseRecoveryAction.js +116 -0
  71. package/dist/movethewheels/components/ContainerEvidencePicker.d.ts +10 -0
  72. package/dist/movethewheels/components/FreeTimeAgreementForm.d.ts +14 -0
  73. package/dist/movethewheels/components/ReturnInstructionForm.d.ts +8 -0
  74. package/dist/movethewheels/components/ReuseControls.d.ts +42 -0
  75. package/dist/movethewheels/components/ReusePermissionForm.d.ts +9 -0
  76. package/dist/movethewheels/components/ReuseProposalForm.d.ts +11 -0
  77. package/dist/movethewheels/components/ReuseSourceFields.d.ts +9 -0
  78. package/dist/movethewheels/components/consolidation/ConsolidationHistory.d.ts +13 -0
  79. package/dist/movethewheels/components/consolidation/ConsolidationLotEditor.d.ts +6 -0
  80. package/dist/movethewheels/components/consolidation/ConsolidationManifestWorkbench.d.ts +8 -0
  81. package/dist/movethewheels/components/consolidation/ConsolidationPlanForm.d.ts +8 -0
  82. package/dist/movethewheels/components/consolidation/ConsolidationPlanWorkbench.d.ts +5 -0
  83. package/dist/movethewheels/components/consolidation/ConsolidationReportForm.d.ts +9 -0
  84. package/dist/movethewheels/components/consolidation/ConsolidationReportsWorkbench.d.ts +7 -0
  85. package/dist/movethewheels/components/consolidation/ConsolidationSummary.d.ts +6 -0
  86. package/dist/movethewheels/components/consolidation/OriginalConsolidationHistory.d.ts +8 -0
  87. package/dist/movethewheels/components/freight-cost/FreightDraftForm.d.ts +8 -0
  88. package/dist/movethewheels/components/freight-cost/FreightFields.d.ts +23 -0
  89. package/dist/movethewheels/components/freight-cost/FreightFxEditor.d.ts +6 -0
  90. package/dist/movethewheels/components/freight-cost/FreightHistory.d.ts +5 -0
  91. package/dist/movethewheels/components/freight-cost/FreightLineEditor.d.ts +8 -0
  92. package/dist/movethewheels/components/freight-cost/FreightScopeEditor.d.ts +6 -0
  93. package/dist/movethewheels/components/freight-cost/FreightTotals.d.ts +6 -0
  94. package/dist/movethewheels/components/logistics-procedure/ProcedureDecisionForm.d.ts +20 -0
  95. package/dist/movethewheels/components/logistics-procedure/ProcedureFields.d.ts +17 -0
  96. package/dist/movethewheels/components/logistics-procedure/ProcedureHistory.d.ts +7 -0
  97. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyForm.d.ts +10 -0
  98. package/dist/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.d.ts +5 -0
  99. package/dist/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.d.ts +5 -0
  100. package/dist/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.d.ts +6 -0
  101. package/dist/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.d.ts +7 -0
  102. package/dist/movethewheels/components/pending-pick/PendingPickDraft.d.ts +16 -0
  103. package/dist/movethewheels/components/pending-pick/PendingPickHistory.d.ts +5 -0
  104. package/dist/movethewheels/components/pending-pick/PickCapture.d.ts +6 -0
  105. package/dist/movethewheels/components/pending-pick/PickLineSelection.d.ts +17 -0
  106. package/dist/movethewheels/components/stock-binding/StockAssessmentDraft.d.ts +13 -0
  107. package/dist/movethewheels/components/stock-binding/StockAssessmentHistory.d.ts +18 -0
  108. package/dist/movethewheels/components/stock-binding/StockAssessmentSummary.d.ts +9 -0
  109. package/dist/movethewheels/components/stock-binding/StockFactForm.d.ts +6 -0
  110. package/dist/movethewheels/components/stock-observation/StockIssueForm.d.ts +7 -0
  111. package/dist/movethewheels/components/stock-observation/StockIssueHistory.d.ts +7 -0
  112. package/dist/movethewheels/components/stock-observation/StockIssueReadPanel.d.ts +5 -0
  113. package/dist/movethewheels/components/trip-utilization/TripReportForm.d.ts +6 -0
  114. package/dist/movethewheels/components/trip-utilization/TripReportHistory.d.ts +14 -0
  115. package/dist/movethewheels/components/trip-utilization/TripReportSummary.d.ts +5 -0
  116. package/dist/movethewheels/components/trip-utilization/TripSegmentFields.d.ts +9 -0
  117. package/dist/movethewheels/hooks/useConsolidationAction.d.ts +19 -0
  118. package/dist/movethewheels/hooks/useContainerCondition.d.ts +21 -0
  119. package/dist/movethewheels/hooks/useContainerLifecycle.d.ts +40 -0
  120. package/dist/movethewheels/hooks/useEmptyReuseAction.d.ts +14 -0
  121. package/dist/movethewheels/hooks/useFreightRecoveryAction.d.ts +23 -0
  122. package/dist/movethewheels/hooks/useProcedureAction.d.ts +18 -0
  123. package/dist/movethewheels/hooks/useProcedureSelection.d.ts +51 -0
  124. package/dist/movethewheels/hooks/useReuseRecoveryAction.d.ts +18 -0
  125. package/dist/movethewheels/pages/ConsolidationPage.d.ts +1 -0
  126. package/dist/movethewheels/pages/ContainerConditionPage.d.ts +1 -0
  127. package/dist/movethewheels/pages/ContainersPage.d.ts +2 -0
  128. package/dist/movethewheels/pages/EmptyReusePage.d.ts +1 -0
  129. package/dist/movethewheels/pages/FreeTimePage.d.ts +1 -0
  130. package/dist/movethewheels/pages/FreightEstimatePage.d.ts +1 -0
  131. package/dist/movethewheels/pages/LogisticsProceduresPage.d.ts +1 -0
  132. package/dist/movethewheels/pages/PendingPickPage.d.ts +1 -0
  133. package/dist/movethewheels/pages/StockBindingPage.d.ts +1 -0
  134. package/dist/movethewheels/pages/StockObservationsPage.d.ts +1 -0
  135. package/dist/movethewheels/pages/TripUtilizationPage.d.ts +1 -0
  136. package/dist/movethewheels/utils/consolidationHistoryTarget.d.ts +12 -0
  137. package/dist/movethewheels/utils/consolidationInput.d.ts +15 -0
  138. package/dist/movethewheels/utils/consolidationLot.d.ts +3 -0
  139. package/dist/movethewheels/utils/consolidationPins.d.ts +20 -0
  140. package/dist/movethewheels/utils/consolidationRecovery.d.ts +5 -0
  141. package/dist/movethewheels/utils/consolidationReportHead.d.ts +5 -0
  142. package/dist/movethewheels/utils/freeTimeDate.d.ts +1 -0
  143. package/dist/movethewheels/utils/freightAcknowledgement.d.ts +2 -0
  144. package/dist/movethewheels/utils/freightDraft.d.ts +36 -0
  145. package/dist/movethewheels/utils/freightRecovery.d.ts +5 -0
  146. package/dist/movethewheels/utils/graphqlClient.d.ts +2 -1
  147. package/dist/movethewheels/utils/pendingPickDraft.d.ts +8 -0
  148. package/dist/movethewheels/utils/procedureInput.d.ts +18 -0
  149. package/dist/movethewheels/utils/procedureRecovery.d.ts +5 -0
  150. package/dist/movethewheels/utils/reuseAttempt.d.ts +7 -0
  151. package/dist/movethewheels/utils/reuseForm.d.ts +6 -0
  152. package/dist/movethewheels/utils/reuseRecovery.d.ts +26 -0
  153. package/dist/movethewheels/utils/stockBindingForm.d.ts +23 -0
  154. package/dist/movethewheels/utils/stockBindingLabels.d.ts +10 -0
  155. package/dist/movethewheels/utils/stockObservationForm.d.ts +5 -0
  156. package/dist/movethewheels/utils/tripDraftContext.d.ts +25 -0
  157. package/dist/movethewheels/utils/tripUtilizationForm.d.ts +6 -0
  158. package/dist/node_modules/@react-leaflet/core/lib/component.js +5 -5
  159. package/dist/node_modules/fast-equals/dist/es/index.js +87 -74
  160. package/dist/node_modules/leaflet/dist/leaflet-src.js +8 -5
  161. package/dist/node_modules/lodash/_Stack.js +2 -1
  162. package/dist/node_modules/lucide-react/dist/esm/icons/clipboard-list.js +35 -0
  163. package/dist/node_modules/lucide-react/dist/esm/icons/repeat-2.js +22 -0
  164. package/dist/node_modules/react-leaflet/lib/MapContainer.js +3 -3
  165. package/dist/node_modules/react-smooth/es6/Animate.js +2 -2
  166. package/dist/node_modules/recharts/es6/cartesian/Area.js +13 -13
  167. package/dist/node_modules/recharts/es6/cartesian/Bar.js +9 -9
  168. package/dist/node_modules/recharts/es6/cartesian/Brush.js +12 -12
  169. package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +7 -7
  170. package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +13 -13
  171. package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +4 -4
  172. package/dist/node_modules/recharts/es6/cartesian/Line.js +10 -10
  173. package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +3 -3
  174. package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +3 -3
  175. package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +4 -4
  176. package/dist/node_modules/recharts/es6/cartesian/XAxis.js +3 -3
  177. package/dist/node_modules/recharts/es6/cartesian/YAxis.js +3 -3
  178. package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +1 -1
  179. package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +22 -22
  180. package/dist/node_modules/recharts/es6/component/Cursor.js +1 -1
  181. package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +11 -11
  182. package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +6 -6
  183. package/dist/node_modules/recharts/es6/component/Label.js +14 -14
  184. package/dist/node_modules/recharts/es6/component/LabelList.js +6 -6
  185. package/dist/node_modules/recharts/es6/component/Legend.js +5 -5
  186. package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +3 -3
  187. package/dist/node_modules/recharts/es6/component/Text.js +2 -2
  188. package/dist/node_modules/recharts/es6/component/Tooltip.js +3 -3
  189. package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +2 -2
  190. package/dist/node_modules/recharts/es6/container/Layer.js +2 -2
  191. package/dist/node_modules/recharts/es6/container/Surface.js +2 -2
  192. package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +2 -2
  193. package/dist/node_modules/recharts/es6/polar/Pie.js +13 -13
  194. package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +8 -8
  195. package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +6 -6
  196. package/dist/node_modules/recharts/es6/shape/Cross.js +1 -1
  197. package/dist/node_modules/recharts/es6/shape/Curve.js +1 -1
  198. package/dist/node_modules/recharts/es6/shape/Dot.js +1 -1
  199. package/dist/node_modules/recharts/es6/shape/Polygon.js +4 -4
  200. package/dist/node_modules/recharts/es6/shape/Rectangle.js +4 -4
  201. package/dist/node_modules/recharts/es6/shape/Sector.js +1 -1
  202. package/dist/node_modules/recharts/es6/shape/Symbols.js +1 -1
  203. package/dist/node_modules/recharts/es6/shape/Trapezoid.js +4 -4
  204. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +9 -9
  205. package/dist/node_modules/recharts/es6/util/BarUtils.js +1 -1
  206. package/dist/node_modules/recharts/es6/util/CartesianUtils.js +1 -1
  207. package/dist/node_modules/recharts/es6/util/PolarUtils.js +1 -1
  208. package/dist/node_modules/recharts/es6/util/ReactUtils.js +2 -2
  209. package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +1 -1
  210. package/dist/node_modules/recharts/es6/util/types.js +1 -1
  211. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.development.js +2 -2
  212. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/cjs/react-is.production.min.js +2 -2
  213. package/dist/node_modules/{react-is → recharts/node_modules/react-is}/index.js +2 -2
  214. package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +97 -18
  215. package/dist/node_modules/zustand/esm/middleware.js +2 -2
  216. package/dist/pages/ConsolidationPage.js +76 -0
  217. package/dist/pages/ContainerConditionPage.js +972 -0
  218. package/dist/pages/ContainersPage.js +522 -0
  219. package/dist/pages/EmptyReusePage.js +777 -0
  220. package/dist/pages/FreeTimePage.js +657 -0
  221. package/dist/pages/FreightEstimatePage.js +284 -0
  222. package/dist/pages/InventoryPage.js +77 -73
  223. package/dist/pages/LogisticsProceduresPage.js +100 -0
  224. package/dist/pages/PendingPickPage.js +155 -0
  225. package/dist/pages/StockBindingPage.js +236 -0
  226. package/dist/pages/StockObservationsPage.js +168 -0
  227. package/dist/pages/TripUtilizationPage.js +227 -0
  228. package/dist/src/generated/consolidation-operations.js +505 -0
  229. package/dist/src/generated/container-condition-operations.js +208 -0
  230. package/dist/src/generated/container-operations.js +101 -0
  231. package/dist/src/generated/empty-reuse-operations.js +749 -0
  232. package/dist/src/generated/free-time-operations.js +235 -0
  233. package/dist/src/generated/freight-cost-operations.js +325 -0
  234. package/dist/src/generated/logistics-procedure-operations.js +362 -0
  235. package/dist/src/generated/pending-pick-operations.js +1128 -0
  236. package/dist/src/generated/stock-binding-operations.js +175 -0
  237. package/dist/src/generated/stock-observation-operations.js +93 -0
  238. package/dist/src/generated/trip-utilization-operations.js +140 -0
  239. package/dist/src/generated/wspace-operations.js +708 -0
  240. package/dist/utils/consolidationHistoryTarget.js +27 -0
  241. package/dist/utils/consolidationInput.js +21 -0
  242. package/dist/utils/consolidationLot.js +29 -0
  243. package/dist/utils/consolidationPins.js +13 -0
  244. package/dist/utils/consolidationRecovery.js +40 -0
  245. package/dist/utils/consolidationReportHead.js +18 -0
  246. package/dist/utils/freeTimeDate.js +26 -0
  247. package/dist/utils/freightAcknowledgement.js +8 -0
  248. package/dist/utils/freightDraft.js +125 -0
  249. package/dist/utils/freightRecovery.js +36 -0
  250. package/dist/utils/graphqlClient.js +28 -28
  251. package/dist/utils/pendingPickDraft.js +46 -0
  252. package/dist/utils/procedureInput.js +43 -0
  253. package/dist/utils/procedureRecovery.js +42 -0
  254. package/dist/utils/reuseAttempt.js +20 -0
  255. package/dist/utils/reuseForm.js +25 -0
  256. package/dist/utils/reuseRecovery.js +71 -0
  257. package/dist/utils/stockBindingForm.js +142 -0
  258. package/dist/utils/stockBindingLabels.js +23 -0
  259. package/dist/utils/stockObservationForm.js +55 -0
  260. package/dist/utils/tripDraftContext.js +19 -0
  261. package/dist/utils/tripUtilizationForm.js +60 -0
  262. package/package.json +19 -5
  263. package/src/generated/consolidation-operations.ts +1138 -0
  264. package/src/generated/container-condition-operations.ts +771 -0
  265. package/src/generated/container-operations.ts +376 -0
  266. package/src/generated/empty-reuse-operations.ts +1648 -0
  267. package/src/generated/free-time-operations.ts +814 -0
  268. package/src/generated/freight-cost-operations.ts +753 -0
  269. package/src/generated/logistics-procedure-operations.ts +1047 -0
  270. package/src/generated/pending-pick-operations.ts +1508 -0
  271. package/src/generated/stock-binding-operations.ts +631 -0
  272. package/src/generated/stock-observation-operations.ts +373 -0
  273. package/src/generated/trip-utilization-operations.ts +500 -0
  274. package/src/generated/wspace-operations.ts +116 -0
  275. package/src/movethewheels/MoveTheWheelsRoot.tsx +79 -0
  276. package/src/movethewheels/MoveTheWheelsRoutes.tsx +22 -0
  277. package/src/movethewheels/components/ContainerEvidencePicker.tsx +146 -0
  278. package/src/movethewheels/components/FreeTimeAgreementForm.tsx +483 -0
  279. package/src/movethewheels/components/ReturnInstructionForm.tsx +102 -0
  280. package/src/movethewheels/components/ReuseControls.tsx +138 -0
  281. package/src/movethewheels/components/ReusePermissionForm.tsx +123 -0
  282. package/src/movethewheels/components/ReuseProposalForm.tsx +484 -0
  283. package/src/movethewheels/components/ReuseSourceFields.tsx +80 -0
  284. package/src/movethewheels/components/consolidation/ConsolidationHistory.tsx +159 -0
  285. package/src/movethewheels/components/consolidation/ConsolidationLotEditor.tsx +144 -0
  286. package/src/movethewheels/components/consolidation/ConsolidationManifestWorkbench.tsx +168 -0
  287. package/src/movethewheels/components/consolidation/ConsolidationPlanForm.tsx +185 -0
  288. package/src/movethewheels/components/consolidation/ConsolidationPlanWorkbench.tsx +395 -0
  289. package/src/movethewheels/components/consolidation/ConsolidationReportForm.tsx +124 -0
  290. package/src/movethewheels/components/consolidation/ConsolidationReportsWorkbench.tsx +233 -0
  291. package/src/movethewheels/components/consolidation/ConsolidationSummary.tsx +84 -0
  292. package/src/movethewheels/components/consolidation/OriginalConsolidationHistory.tsx +133 -0
  293. package/src/movethewheels/components/freight-cost/FreightDraftForm.tsx +224 -0
  294. package/src/movethewheels/components/freight-cost/FreightFields.tsx +91 -0
  295. package/src/movethewheels/components/freight-cost/FreightFxEditor.tsx +98 -0
  296. package/src/movethewheels/components/freight-cost/FreightHistory.tsx +91 -0
  297. package/src/movethewheels/components/freight-cost/FreightLineEditor.tsx +192 -0
  298. package/src/movethewheels/components/freight-cost/FreightScopeEditor.tsx +64 -0
  299. package/src/movethewheels/components/freight-cost/FreightTotals.tsx +68 -0
  300. package/src/movethewheels/components/logistics-procedure/ProcedureDecisionForm.tsx +204 -0
  301. package/src/movethewheels/components/logistics-procedure/ProcedureFields.tsx +43 -0
  302. package/src/movethewheels/components/logistics-procedure/ProcedureHistory.tsx +102 -0
  303. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyForm.tsx +226 -0
  304. package/src/movethewheels/components/logistics-procedure/ProcedurePolicyWorkbench.tsx +174 -0
  305. package/src/movethewheels/components/logistics-procedure/ProcedureReviewWorkbench.tsx +278 -0
  306. package/src/movethewheels/components/logistics-procedure/ProcedureRunWorkbench.tsx +292 -0
  307. package/src/movethewheels/components/logistics-procedure/ProcedureSubjectPicker.tsx +111 -0
  308. package/src/movethewheels/components/pending-pick/PendingPickDraft.tsx +82 -0
  309. package/src/movethewheels/components/pending-pick/PendingPickHistory.tsx +93 -0
  310. package/src/movethewheels/components/pending-pick/PickCapture.tsx +70 -0
  311. package/src/movethewheels/components/pending-pick/PickLineSelection.tsx +130 -0
  312. package/src/movethewheels/components/stock-binding/StockAssessmentDraft.tsx +52 -0
  313. package/src/movethewheels/components/stock-binding/StockAssessmentHistory.tsx +56 -0
  314. package/src/movethewheels/components/stock-binding/StockAssessmentSummary.tsx +108 -0
  315. package/src/movethewheels/components/stock-binding/StockFactForm.tsx +186 -0
  316. package/src/movethewheels/components/stock-observation/StockIssueForm.tsx +103 -0
  317. package/src/movethewheels/components/stock-observation/StockIssueHistory.tsx +96 -0
  318. package/src/movethewheels/components/stock-observation/StockIssueReadPanel.tsx +72 -0
  319. package/src/movethewheels/components/trip-utilization/TripReportForm.tsx +116 -0
  320. package/src/movethewheels/components/trip-utilization/TripReportHistory.tsx +51 -0
  321. package/src/movethewheels/components/trip-utilization/TripReportSummary.tsx +127 -0
  322. package/src/movethewheels/components/trip-utilization/TripSegmentFields.tsx +118 -0
  323. package/src/movethewheels/hooks/useConsolidationAction.ts +196 -0
  324. package/src/movethewheels/hooks/useContainerCondition.ts +129 -0
  325. package/src/movethewheels/hooks/useContainerLifecycle.ts +291 -0
  326. package/src/movethewheels/hooks/useEmptyReuseAction.ts +72 -0
  327. package/src/movethewheels/hooks/useFreightRecoveryAction.ts +201 -0
  328. package/src/movethewheels/hooks/useInventory.ts +2 -20
  329. package/src/movethewheels/hooks/useProcedureAction.ts +196 -0
  330. package/src/movethewheels/hooks/useProcedureSelection.ts +75 -0
  331. package/src/movethewheels/hooks/useReuseRecoveryAction.ts +192 -0
  332. package/src/movethewheels/pages/ConsolidationPage.tsx +70 -0
  333. package/src/movethewheels/pages/ContainerConditionPage.tsx +959 -0
  334. package/src/movethewheels/pages/ContainersPage.tsx +490 -0
  335. package/src/movethewheels/pages/EmptyReusePage.tsx +823 -0
  336. package/src/movethewheels/pages/FreeTimePage.tsx +720 -0
  337. package/src/movethewheels/pages/FreightEstimatePage.tsx +353 -0
  338. package/src/movethewheels/pages/InventoryPage.tsx +16 -2
  339. package/src/movethewheels/pages/LogisticsProceduresPage.tsx +86 -0
  340. package/src/movethewheels/pages/PendingPickPage.tsx +226 -0
  341. package/src/movethewheels/pages/StockBindingPage.tsx +299 -0
  342. package/src/movethewheels/pages/StockObservationsPage.tsx +181 -0
  343. package/src/movethewheels/pages/TripUtilizationPage.tsx +315 -0
  344. package/src/movethewheels/utils/consolidationHistoryTarget.ts +39 -0
  345. package/src/movethewheels/utils/consolidationInput.ts +70 -0
  346. package/src/movethewheels/utils/consolidationLot.ts +24 -0
  347. package/src/movethewheels/utils/consolidationPins.ts +52 -0
  348. package/src/movethewheels/utils/consolidationRecovery.ts +88 -0
  349. package/src/movethewheels/utils/consolidationReportHead.ts +29 -0
  350. package/src/movethewheels/utils/freeTimeDate.ts +31 -0
  351. package/src/movethewheels/utils/freightAcknowledgement.ts +31 -0
  352. package/src/movethewheels/utils/freightDraft.ts +170 -0
  353. package/src/movethewheels/utils/freightRecovery.ts +79 -0
  354. package/src/movethewheels/utils/graphqlClient.ts +14 -5
  355. package/src/movethewheels/utils/pendingPickDraft.ts +61 -0
  356. package/src/movethewheels/utils/procedureInput.ts +98 -0
  357. package/src/movethewheels/utils/procedureRecovery.ts +92 -0
  358. package/src/movethewheels/utils/reuseAttempt.ts +29 -0
  359. package/src/movethewheels/utils/reuseForm.ts +30 -0
  360. package/src/movethewheels/utils/reuseRecovery.ts +151 -0
  361. package/src/movethewheels/utils/stockBindingForm.ts +209 -0
  362. package/src/movethewheels/utils/stockBindingLabels.ts +41 -0
  363. package/src/movethewheels/utils/stockObservationForm.ts +73 -0
  364. package/src/movethewheels/utils/tripDraftContext.ts +61 -0
  365. package/src/movethewheels/utils/tripUtilizationForm.ts +105 -0
  366. package/src/operations/condition/container-condition.graphql +41 -0
  367. package/src/operations/consolidation/consolidation.graphql +490 -0
  368. package/src/operations/container/container-lifecycle.graphql +80 -0
  369. package/src/operations/empty-reuse/empty-reuse.graphql +737 -0
  370. package/src/operations/free-time/free-time.graphql +47 -0
  371. package/src/operations/freight-cost/freight.graphql +6 -0
  372. package/src/operations/logistics-procedure/procedure.graphql +15 -0
  373. package/src/operations/pending-pick/pending-pick.graphql +1122 -0
  374. package/src/operations/stock-binding/stock-binding.graphql +160 -0
  375. package/src/operations/stock-observation/stock-observation.graphql +20 -0
  376. package/src/operations/trip-utilization/trip-utilization.graphql +126 -0
  377. package/src/operations/wspace/container-evidence.graphql +6 -0
@@ -0,0 +1,232 @@
1
+ import { Button as e } from "../ui.js";
2
+ import { ReuseField as t, reuseSelect as n } from "../ReuseControls.js";
3
+ import { ContainerEvidencePicker as r } from "../ContainerEvidencePicker.js";
4
+ import { stockFactLabel as i } from "../../utils/stockBindingLabels.js";
5
+ import { readStockFactDraft as a } from "../../utils/stockBindingForm.js";
6
+ import { useState as o } from "react";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ //#region src/movethewheels/components/stock-binding/StockFactForm.tsx
9
+ function l({ name: e, label: t, options: r, onChange: a }) {
10
+ return /* @__PURE__ */ c("label", {
11
+ className: "block",
12
+ children: [t, /* @__PURE__ */ s("select", {
13
+ name: e,
14
+ className: n,
15
+ defaultValue: "UNKNOWN",
16
+ onChange: (e) => a?.(e.target.value),
17
+ children: r.map((e) => /* @__PURE__ */ s("option", {
18
+ value: e,
19
+ children: i(e)
20
+ }, e))
21
+ })]
22
+ });
23
+ }
24
+ function u({ prefix: e, label: n }) {
25
+ return /* @__PURE__ */ c("div", {
26
+ className: "grid gap-3 md:grid-cols-2",
27
+ children: [/* @__PURE__ */ s(t, {
28
+ label: `${n} reference (blank = unknown)`,
29
+ name: `${e}Reference`,
30
+ required: !1
31
+ }), /* @__PURE__ */ s(t, {
32
+ label: `${n} revision (blank = unknown)`,
33
+ name: `${e}Revision`,
34
+ required: !1,
35
+ maxLength: 120
36
+ })]
37
+ });
38
+ }
39
+ function d({ busy: n, onSubmit: i }) {
40
+ let [d, f] = o([]), [p, m] = o(!1), [h, g] = o(!1), [_, v] = o(null);
41
+ return /* @__PURE__ */ c("form", {
42
+ className: "space-y-4",
43
+ onSubmit: async (e) => {
44
+ e.preventDefault(), v(null);
45
+ try {
46
+ await i(a(new FormData(e.currentTarget), d));
47
+ } catch (e) {
48
+ v(e instanceof Error ? e.message : "Unable to record assessment.");
49
+ }
50
+ },
51
+ children: [/* @__PURE__ */ c("fieldset", {
52
+ disabled: n,
53
+ className: "space-y-4",
54
+ children: [
55
+ /* @__PURE__ */ s("p", {
56
+ className: "text-sm",
57
+ children: "Blank facts remain unknown. Physical labels are your reported observations; the selected database item and bin do not populate or authenticate scans. No EACH/case/pallet conversion is inferred."
58
+ }),
59
+ /* @__PURE__ */ s(t, {
60
+ label: "Assessment effective time (ISO with seconds and timezone)",
61
+ name: "effectiveAt"
62
+ }),
63
+ /* @__PURE__ */ s("p", {
64
+ className: "text-sm",
65
+ children: "Use Z or an explicit offset, e.g. 2026-10-04T08:00:00+05:30. A future effective time is recordable and does not replace current operational eligibility."
66
+ }),
67
+ /* @__PURE__ */ s(l, {
68
+ name: "scope",
69
+ label: "Declared line scope",
70
+ options: [
71
+ "UNKNOWN",
72
+ "WHOLE_LINE",
73
+ "UNSUPPORTED_MIXED_LOT"
74
+ ]
75
+ }),
76
+ /* @__PURE__ */ s(u, {
77
+ prefix: "source",
78
+ label: "Physical assessment source"
79
+ }),
80
+ /* @__PURE__ */ c("section", {
81
+ className: "space-y-3 rounded border p-3",
82
+ children: [
83
+ /* @__PURE__ */ s("h3", {
84
+ className: "font-semibold",
85
+ children: "Count unit declaration"
86
+ }),
87
+ /* @__PURE__ */ s(l, {
88
+ name: "unitPresent",
89
+ label: "Explicit unit kind",
90
+ options: ["UNKNOWN", "COUNT_UNIT"],
91
+ onChange: (e) => g(e === "COUNT_UNIT")
92
+ }),
93
+ h && /* @__PURE__ */ s(u, {
94
+ prefix: "unit",
95
+ label: "Count unit"
96
+ }, "count")
97
+ ]
98
+ }),
99
+ /* @__PURE__ */ c("section", {
100
+ className: "space-y-3 rounded border p-3",
101
+ children: [
102
+ /* @__PURE__ */ s("h3", {
103
+ className: "font-semibold",
104
+ children: "Reported item and bin label mapping"
105
+ }),
106
+ /* @__PURE__ */ s(t, {
107
+ label: "Reported item label (blank = unknown)",
108
+ name: "itemLabel",
109
+ required: !1
110
+ }),
111
+ /* @__PURE__ */ s(t, {
112
+ label: "Reported bin label (blank = unknown)",
113
+ name: "binLabel",
114
+ required: !1
115
+ }),
116
+ /* @__PURE__ */ s(u, {
117
+ prefix: "mapping",
118
+ label: "Mapping source"
119
+ })
120
+ ]
121
+ }),
122
+ /* @__PURE__ */ c("section", {
123
+ className: "space-y-3 rounded border p-3",
124
+ children: [
125
+ /* @__PURE__ */ s("h3", {
126
+ className: "font-semibold",
127
+ children: "Reported lot facts"
128
+ }),
129
+ /* @__PURE__ */ s(l, {
130
+ name: "lotPolicy",
131
+ label: "Declared lot requirement",
132
+ options: [
133
+ "UNKNOWN",
134
+ "REQUIRED",
135
+ "NOT_REQUIRED"
136
+ ]
137
+ }),
138
+ /* @__PURE__ */ s(l, {
139
+ name: "lotPresent",
140
+ label: "Lot identity observation",
141
+ options: ["UNKNOWN", "REPORTED"],
142
+ onChange: (e) => m(e === "REPORTED")
143
+ }),
144
+ p && /* @__PURE__ */ c("div", {
145
+ className: "space-y-3",
146
+ children: [
147
+ /* @__PURE__ */ s(u, {
148
+ prefix: "lot",
149
+ label: "Lot"
150
+ }),
151
+ /* @__PURE__ */ s(l, {
152
+ name: "lotDisposition",
153
+ label: "Reported lot disposition",
154
+ options: [
155
+ "UNKNOWN",
156
+ "RELEASED",
157
+ "HELD",
158
+ "EXPIRED"
159
+ ]
160
+ }),
161
+ /* @__PURE__ */ s(l, {
162
+ name: "expiryPolicy",
163
+ label: "Reported lot expiry policy",
164
+ options: [
165
+ "UNKNOWN",
166
+ "TIME_BOUNDED",
167
+ "NO_REQUIRED_EXPIRY"
168
+ ]
169
+ }),
170
+ /* @__PURE__ */ s(t, {
171
+ label: "Reported expiry cutoff (ISO with timezone; blank = unknown)",
172
+ name: "expiresAt",
173
+ required: !1
174
+ }),
175
+ /* @__PURE__ */ s(u, {
176
+ prefix: "expiry",
177
+ label: "Expiry source"
178
+ })
179
+ ]
180
+ }, "reported-lot")
181
+ ]
182
+ }),
183
+ /* @__PURE__ */ c("section", {
184
+ className: "space-y-3 rounded border p-3",
185
+ children: [
186
+ /* @__PURE__ */ s("h3", {
187
+ className: "font-semibold",
188
+ children: "Physical source validity declaration"
189
+ }),
190
+ /* @__PURE__ */ s(l, {
191
+ name: "validityPolicy",
192
+ label: "Declared validity policy",
193
+ options: [
194
+ "UNKNOWN",
195
+ "TIME_BOUNDED",
196
+ "NO_REQUIRED_EXPIRY"
197
+ ]
198
+ }),
199
+ /* @__PURE__ */ s(t, {
200
+ label: "Known validity start (ISO with timezone; blank = unknown)",
201
+ name: "validityFrom",
202
+ required: !1
203
+ }),
204
+ /* @__PURE__ */ s(t, {
205
+ label: "Known validity end (ISO with timezone; blank = unknown)",
206
+ name: "validityUntil",
207
+ required: !1
208
+ }),
209
+ /* @__PURE__ */ s(u, {
210
+ prefix: "validity",
211
+ label: "Validity source"
212
+ })
213
+ ]
214
+ }),
215
+ /* @__PURE__ */ s(r, {
216
+ value: d,
217
+ onChange: f,
218
+ description: "Choose readable Files versions that support these facts. Documents do not certify labels or make stock ready to pick."
219
+ }),
220
+ /* @__PURE__ */ s(e, {
221
+ type: "submit",
222
+ children: "Record reported facts"
223
+ })
224
+ ]
225
+ }), _ && /* @__PURE__ */ s("p", {
226
+ role: "alert",
227
+ children: _
228
+ })]
229
+ });
230
+ }
231
+ //#endregion
232
+ export { d as StockFactForm };
@@ -0,0 +1,148 @@
1
+ import { Button as e, Input as t } from "../ui.js";
2
+ import { ReuseField as n, reuseSelect as r } from "../ReuseControls.js";
3
+ import { stockObservationInput as i } from "../../utils/stockObservationForm.js";
4
+ import { useState as a } from "react";
5
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
6
+ //#region src/movethewheels/components/stock-observation/StockIssueForm.tsx
7
+ function c({ inventoryItemId: c, disabled: l, onSubmit: u }) {
8
+ let [d, f] = a(null);
9
+ return /* @__PURE__ */ s("form", {
10
+ className: "space-y-4",
11
+ onSubmit: async (e) => {
12
+ if (e.preventDefault(), !l) {
13
+ f(null);
14
+ try {
15
+ await u(i(c, new FormData(e.currentTarget)));
16
+ } catch (e) {
17
+ f(e instanceof Error ? e.message : "Check the reported fields.");
18
+ }
19
+ }
20
+ },
21
+ children: [/* @__PURE__ */ s("fieldset", {
22
+ disabled: l,
23
+ className: "space-y-4",
24
+ children: [
25
+ /* @__PURE__ */ s("div", {
26
+ className: "grid gap-3 md:grid-cols-2",
27
+ children: [
28
+ /* @__PURE__ */ s("label", { children: ["Issue", /* @__PURE__ */ s("select", {
29
+ name: "kind",
30
+ className: r,
31
+ defaultValue: "COUNT_DISCREPANCY",
32
+ children: [
33
+ /* @__PURE__ */ o("option", {
34
+ value: "COUNT_DISCREPANCY",
35
+ children: "Count discrepancy"
36
+ }),
37
+ /* @__PURE__ */ o("option", {
38
+ value: "DAMAGE",
39
+ children: "Damage"
40
+ }),
41
+ /* @__PURE__ */ o("option", {
42
+ value: "IDENTITY_UNCERTAIN",
43
+ children: "Uncertain item identity"
44
+ }),
45
+ /* @__PURE__ */ o("option", {
46
+ value: "OTHER",
47
+ children: "Other issue"
48
+ })
49
+ ]
50
+ })] }),
51
+ /* @__PURE__ */ s("label", { children: ["Count scope", /* @__PURE__ */ s("select", {
52
+ name: "countScope",
53
+ className: r,
54
+ defaultValue: "UNKNOWN",
55
+ children: [/* @__PURE__ */ o("option", {
56
+ value: "UNKNOWN",
57
+ children: "Not known"
58
+ }), /* @__PURE__ */ o("option", {
59
+ value: "WHOLE_LINE",
60
+ children: "Whole inventory line"
61
+ })]
62
+ })] }),
63
+ /* @__PURE__ */ o(n, {
64
+ name: "observedCount",
65
+ label: "Reported count (blank = not known)",
66
+ type: "number",
67
+ required: !1
68
+ }),
69
+ /* @__PURE__ */ s("label", { children: ["Reported observation time (your local time; optional)", /* @__PURE__ */ o(t, {
70
+ type: "datetime-local",
71
+ name: "reportedObservedAt"
72
+ })] }),
73
+ /* @__PURE__ */ s("label", { children: ["Reported unit", /* @__PURE__ */ s("select", {
74
+ name: "countUnit",
75
+ className: r,
76
+ defaultValue: "UNKNOWN",
77
+ children: [/* @__PURE__ */ o("option", {
78
+ value: "UNKNOWN",
79
+ children: "Not known"
80
+ }), /* @__PURE__ */ o("option", {
81
+ value: "COUNT_UNIT",
82
+ children: "Count unit"
83
+ })]
84
+ })] }),
85
+ /* @__PURE__ */ o(n, {
86
+ name: "unitReference",
87
+ label: "Count-unit reference (optional)",
88
+ required: !1
89
+ }),
90
+ /* @__PURE__ */ o(n, {
91
+ name: "unitRevision",
92
+ label: "Count-unit revision (optional)",
93
+ required: !1
94
+ }),
95
+ /* @__PURE__ */ o(n, {
96
+ name: "sourceReference",
97
+ label: "Reported source reference (optional)",
98
+ required: !1
99
+ }),
100
+ /* @__PURE__ */ o(n, {
101
+ name: "sourceRevision",
102
+ label: "Reported source revision (optional)",
103
+ required: !1
104
+ })
105
+ ]
106
+ }),
107
+ /* @__PURE__ */ s("label", {
108
+ className: "block",
109
+ children: ["What did you observe?", /* @__PURE__ */ o("textarea", {
110
+ name: "reason",
111
+ required: !0,
112
+ maxLength: 1e3,
113
+ rows: 3,
114
+ className: r
115
+ })]
116
+ }),
117
+ /* @__PURE__ */ s("details", { children: [
118
+ /* @__PURE__ */ o("summary", { children: "Optional unverified file references" }),
119
+ /* @__PURE__ */ o("p", {
120
+ className: "text-sm",
121
+ children: "These references are recorded as supplied. Files are not opened or verified when reporting an issue."
122
+ }),
123
+ /* @__PURE__ */ s("div", {
124
+ className: "grid gap-3 md:grid-cols-2",
125
+ children: [/* @__PURE__ */ o(n, {
126
+ name: "fileId",
127
+ label: "Exact file reference",
128
+ required: !1
129
+ }), /* @__PURE__ */ o(n, {
130
+ name: "versionId",
131
+ label: "Exact version reference",
132
+ required: !1
133
+ })]
134
+ })
135
+ ] }),
136
+ /* @__PURE__ */ o(e, {
137
+ type: "submit",
138
+ children: "Record unresolved issue"
139
+ })
140
+ ]
141
+ }), d && /* @__PURE__ */ o("p", {
142
+ role: "alert",
143
+ children: d
144
+ })]
145
+ });
146
+ }
147
+ //#endregion
148
+ export { c as StockIssueForm };
@@ -0,0 +1,116 @@
1
+ import { Button as e } from "../ui.js";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ //#region src/movethewheels/components/stock-observation/StockIssueHistory.tsx
4
+ var r = {
5
+ COUNT_DISCREPANCY: "Count discrepancy",
6
+ DAMAGE: "Damage",
7
+ IDENTITY_UNCERTAIN: "Uncertain item identity",
8
+ OTHER: "Other issue"
9
+ };
10
+ function i({ items: i, onSelect: a, disabled: o }) {
11
+ return /* @__PURE__ */ t("div", {
12
+ className: "space-y-3",
13
+ children: i.map((i) => /* @__PURE__ */ n("article", {
14
+ className: "rounded-lg border p-4 space-y-2",
15
+ children: [
16
+ /* @__PURE__ */ n("h3", {
17
+ className: "font-semibold",
18
+ children: [
19
+ r[i.kind],
20
+ " · report ",
21
+ i.sequence,
22
+ " · unresolved"
23
+ ]
24
+ }),
25
+ /* @__PURE__ */ t("p", {
26
+ className: "whitespace-pre-wrap break-words",
27
+ children: i.reason
28
+ }),
29
+ /* @__PURE__ */ n("p", {
30
+ className: "text-sm",
31
+ children: [
32
+ "Reported count: ",
33
+ i.observedCount ?? "Not known",
34
+ "; scope:",
35
+ " ",
36
+ i.countScope === "WHOLE_LINE" ? "Whole inventory line" : "Not known",
37
+ "; unit:",
38
+ " ",
39
+ i.reportedCountUnit ? "Reported count unit" : "Not known",
40
+ "."
41
+ ]
42
+ }),
43
+ /* @__PURE__ */ n("p", {
44
+ className: "text-sm",
45
+ children: [
46
+ "Received ",
47
+ new Date(i.recordedAt).toLocaleString(),
48
+ "; reported observation",
49
+ " ",
50
+ i.reportedObservedAt ? new Date(i.reportedObservedAt).toLocaleString() : "time not known",
51
+ "."
52
+ ]
53
+ }),
54
+ /* @__PURE__ */ n("details", { children: [
55
+ /* @__PURE__ */ t("summary", { children: "Recorded references and attribution" }),
56
+ /* @__PURE__ */ n("dl", {
57
+ className: "text-sm break-all",
58
+ children: [
59
+ /* @__PURE__ */ t("dt", { children: "Exact issue reference" }),
60
+ /* @__PURE__ */ t("dd", { children: i.id }),
61
+ /* @__PURE__ */ t("dt", { children: "Inventory line" }),
62
+ /* @__PURE__ */ t("dd", { children: i.inventoryItemId }),
63
+ /* @__PURE__ */ t("dt", { children: "Recorded actor" }),
64
+ /* @__PURE__ */ n("dd", { children: [
65
+ i.attribution.actorId,
66
+ " (",
67
+ i.attribution.provenance === "delegated" ? "Delegated operational session" : "Direct operational session",
68
+ ")"
69
+ ] }),
70
+ /* @__PURE__ */ t("dt", { children: "Reported count-unit reference and revision" }),
71
+ /* @__PURE__ */ n("dd", { children: [
72
+ i.reportedCountUnit?.reference ?? "Not known",
73
+ " /",
74
+ " ",
75
+ i.reportedCountUnit?.revision ?? "Revision not known"
76
+ ] }),
77
+ /* @__PURE__ */ t("dt", { children: "On behalf of" }),
78
+ /* @__PURE__ */ t("dd", { children: i.attribution.onBehalfOf ?? "Not supplied by verified context" }),
79
+ /* @__PURE__ */ t("dt", { children: "Source" }),
80
+ /* @__PURE__ */ n("dd", { children: [
81
+ i.source?.reference ?? "Not known",
82
+ " /",
83
+ " ",
84
+ i.source?.revision ?? "Revision not known"
85
+ ] }),
86
+ /* @__PURE__ */ t("dt", { children: "Originating application" }),
87
+ /* @__PURE__ */ t("dd", { children: i.attribution.originatingAppId ?? "Not supplied by verified context" })
88
+ ]
89
+ }),
90
+ i.evidenceDeclarations.length > 0 ? /* @__PURE__ */ t("ul", { children: i.evidenceDeclarations.map((e) => /* @__PURE__ */ n("li", {
91
+ className: "break-all",
92
+ children: [
93
+ e.fileId,
94
+ " / ",
95
+ e.versionId,
96
+ " — unverified declaration"
97
+ ]
98
+ }, JSON.stringify([e.fileId, e.versionId]))) }) : /* @__PURE__ */ t("p", { children: "No file references supplied." }),
99
+ /* @__PURE__ */ t("p", {
100
+ className: "text-sm",
101
+ children: "Operational reporting is not move-review authority or verified evidence."
102
+ })
103
+ ] }),
104
+ /* @__PURE__ */ t(e, {
105
+ variant: "outline",
106
+ type: "button",
107
+ disabled: o,
108
+ onClick: () => a(i.id),
109
+ children: "Read exact report"
110
+ })
111
+ ]
112
+ }, i.id))
113
+ });
114
+ }
115
+ //#endregion
116
+ export { i as StockIssueHistory };
@@ -0,0 +1,70 @@
1
+ import { useConditionQuery as e } from "../../hooks/useContainerCondition.js";
2
+ import { ReusePager as t, ReuseState as n, reuseCard as r } from "../ReuseControls.js";
3
+ import { StockIssueHistory as i } from "./StockIssueHistory.js";
4
+ import { ExactStockIssueDocument as a, StockIssueHistoryDocument as o } from "../../src/generated/stock-observation-operations.js";
5
+ import { useState as s } from "react";
6
+ import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
7
+ //#region src/movethewheels/components/stock-observation/StockIssueReadPanel.tsx
8
+ function d({ inventoryItemId: d, revision: f, busy: p }) {
9
+ let [m, h] = s(0), [g, _] = s(null), v = e(o, {
10
+ inventoryItemId: d,
11
+ pagination: {
12
+ limit: 25,
13
+ offset: m
14
+ }
15
+ }, f), y = e(a, g ? {
16
+ inventoryItemId: d,
17
+ id: g
18
+ } : null, f);
19
+ return /* @__PURE__ */ u("section", {
20
+ className: r,
21
+ children: [
22
+ /* @__PURE__ */ l("h2", {
23
+ className: "text-lg font-semibold",
24
+ children: "Immediate issue history"
25
+ }),
26
+ /* @__PURE__ */ l("p", {
27
+ className: "text-sm",
28
+ children: "All reports remain unresolved. This stream is independent of source assessments and their effective dates."
29
+ }),
30
+ /* @__PURE__ */ l(n, {
31
+ loading: v.loading,
32
+ error: v.error
33
+ }),
34
+ v.data && /* @__PURE__ */ u(c, { children: [
35
+ /* @__PURE__ */ l(i, {
36
+ items: v.data.mtwStockObservationPage.items,
37
+ disabled: p,
38
+ onSelect: _
39
+ }),
40
+ /* @__PURE__ */ l(t, {
41
+ page: v.data.mtwStockObservationPage,
42
+ offset: m,
43
+ onChange: h,
44
+ busy: p
45
+ }),
46
+ v.data.mtwStockObservationPage.total === 0 && /* @__PURE__ */ l("p", { children: "No reported issues." })
47
+ ] }),
48
+ g && /* @__PURE__ */ u("div", {
49
+ className: "space-y-3",
50
+ children: [
51
+ /* @__PURE__ */ l("h3", {
52
+ className: "font-semibold",
53
+ children: "Exact recorded report"
54
+ }),
55
+ /* @__PURE__ */ l(n, {
56
+ loading: y.loading,
57
+ error: y.error
58
+ }),
59
+ y.data && /* @__PURE__ */ l(i, {
60
+ items: [y.data.mtwStockObservation],
61
+ disabled: p,
62
+ onSelect: _
63
+ })
64
+ ]
65
+ })
66
+ ]
67
+ });
68
+ }
69
+ //#endregion
70
+ export { d as StockIssueReadPanel };
@@ -0,0 +1,118 @@
1
+ import { Button as e } from "../ui.js";
2
+ import { ReuseField as t, reuseSelect as n } from "../ReuseControls.js";
3
+ import { ContainerEvidencePicker as r } from "../ContainerEvidencePicker.js";
4
+ import { readTripDraft as i } from "../../utils/tripUtilizationForm.js";
5
+ import { TripSegmentFields as a } from "./TripSegmentFields.js";
6
+ import { useState as o } from "react";
7
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
8
+ //#region src/movethewheels/components/trip-utilization/TripReportForm.tsx
9
+ function l({ busy: l, onSubmit: u }) {
10
+ let [d, f] = o("OBSERVED"), [p, m] = o("PARTIAL"), [h, g] = o(() => [crypto.randomUUID()]), [_, v] = o([]), [y, b] = o(null);
11
+ return /* @__PURE__ */ c("form", {
12
+ className: "space-y-4",
13
+ onSubmit: async (e) => {
14
+ e.preventDefault(), b(null);
15
+ try {
16
+ await u(i(new FormData(e.currentTarget), h, d, p, _));
17
+ } catch (e) {
18
+ b(e instanceof Error ? e.message : "Unable to record report.");
19
+ }
20
+ },
21
+ children: [/* @__PURE__ */ c("fieldset", {
22
+ disabled: l,
23
+ className: "space-y-4",
24
+ children: [
25
+ /* @__PURE__ */ s(t, {
26
+ label: "Trip reference",
27
+ name: "tripReference"
28
+ }),
29
+ /* @__PURE__ */ c("div", {
30
+ className: "grid gap-3 md:grid-cols-2",
31
+ children: [/* @__PURE__ */ s(t, {
32
+ label: "Report interval starts (ISO with timezone)",
33
+ name: "intervalFrom"
34
+ }), /* @__PURE__ */ s(t, {
35
+ label: "Report interval ends (ISO with timezone)",
36
+ name: "intervalUntil"
37
+ })]
38
+ }),
39
+ /* @__PURE__ */ c("label", {
40
+ className: "block",
41
+ children: ["Reported basis", /* @__PURE__ */ c("select", {
42
+ className: n,
43
+ value: d,
44
+ onChange: (e) => {
45
+ let t = e.target.value;
46
+ (t === "OBSERVED" || t === "ESTIMATED") && (f(t), g([crypto.randomUUID()]), v([]), b(null));
47
+ },
48
+ children: [/* @__PURE__ */ s("option", {
49
+ value: "OBSERVED",
50
+ children: "OBSERVED measurements"
51
+ }), /* @__PURE__ */ s("option", {
52
+ value: "ESTIMATED",
53
+ children: "ESTIMATED values"
54
+ })]
55
+ })]
56
+ }),
57
+ /* @__PURE__ */ s("p", {
58
+ className: "text-sm",
59
+ children: "Changing the basis clears segment and evidence entries so measurements are not silently converted into estimates."
60
+ }),
61
+ /* @__PURE__ */ c("label", {
62
+ className: "block",
63
+ children: ["Operator-declared interval coverage", /* @__PURE__ */ c("select", {
64
+ className: n,
65
+ value: p,
66
+ onChange: (e) => {
67
+ let t = e.target.value;
68
+ (t === "COMPLETE" || t === "PARTIAL") && m(t);
69
+ },
70
+ children: [/* @__PURE__ */ s("option", {
71
+ value: "PARTIAL",
72
+ children: "PARTIAL — some segments supplied"
73
+ }), /* @__PURE__ */ s("option", {
74
+ value: "COMPLETE",
75
+ children: "COMPLETE — operator declares all segments supplied"
76
+ })]
77
+ })]
78
+ }),
79
+ /* @__PURE__ */ s("p", {
80
+ className: "text-sm",
81
+ children: "COMPLETE is your declaration, not independently certified whole-trip coverage. Receipt time is generated by the server and cannot be entered here."
82
+ }),
83
+ h.map((e, t) => /* @__PURE__ */ s(a, {
84
+ id: e,
85
+ sequence: t + 1,
86
+ basis: d,
87
+ removable: h.length > 1,
88
+ onRemove: () => g((t) => t.filter((t) => t !== e))
89
+ }, e)),
90
+ /* @__PURE__ */ s(e, {
91
+ type: "button",
92
+ variant: "outline",
93
+ disabled: h.length >= 100,
94
+ onClick: () => g((e) => [...e, crypto.randomUUID()]),
95
+ children: "Add next segment"
96
+ }),
97
+ /* @__PURE__ */ s("p", {
98
+ className: "text-sm",
99
+ children: "This manual form supports up to 100 segments. The server report remains authoritative."
100
+ }),
101
+ /* @__PURE__ */ s(r, {
102
+ value: _,
103
+ onChange: v,
104
+ description: "Choose exact readable versions from shared Files for the supplied report sources. Integrity fingerprints do not authenticate the provider or certify measurements."
105
+ }),
106
+ /* @__PURE__ */ s(e, {
107
+ type: "submit",
108
+ children: "Record immutable utilization report"
109
+ })
110
+ ]
111
+ }), y && /* @__PURE__ */ s("p", {
112
+ role: "alert",
113
+ children: y
114
+ })]
115
+ });
116
+ }
117
+ //#endregion
118
+ export { l as TripReportForm };